Skip to content

Commit 0de6172

Browse files
committed
Revert "Fix JS exports"
This reverts commit 279429a.
1 parent 480e509 commit 0de6172

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

src/js/components/calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function initializeCalendarComponents() {
1+
export function initializeCalendarComponents() {
22
document.querySelectorAll('.kroma-calendar').forEach(initCalendar);
33
}
44

src/js/components/codeblock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', () => {
22
initializeCodeblock(document);
33
});
44

5-
function initializeCodeblock() {
5+
export function initializeCodeblock() {
66
document.querySelectorAll('.kroma-code-block').forEach((block) => {
77
// Check if buttons are already rendered to avoid duplication
88
if (block.querySelector('.kroma-code-block-header')) return;

src/js/components/command-palette.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ document.addEventListener('DOMContentLoaded', () => {
22
initializeCommandPalettes();
33
});
44

5-
function initializeCommandPalettes() {
5+
export function initializeCommandPalettes() {
66
// Select all command palettes on the page
77
const palettes = document.querySelectorAll('.kroma-command-palette');
88

src/js/components/datetime-picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class DateTimePicker {
1+
export class DateTimePicker {
22
constructor(elementId, { format = 'YYYY-MM-DD HH:mm', includeTime = true, variant = 'primary' } = {}) {
33
this.container = document.getElementById(elementId);
44
this.format = format;

src/js/components/file-upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function initializeKromaFileUploadComponents() {
1+
export function initializeKromaFileUploadComponents() {
22
document.querySelectorAll('.kroma-file-upload').forEach((fileUpload) => {
33
const dropzone = fileUpload.querySelector('.kroma-file-upload-dropzone');
44
const input = fileUpload.querySelector('.kroma-file-upload-input');

src/js/components/hologram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function showHologram(titleText, subtitleText, variant = 'primary', intensity = 'medium', duration = 6000) {
1+
export function showHologram(titleText, subtitleText, variant = 'primary', intensity = 'medium', duration = 6000) {
22
// Remove any existing holograms and dim overlay
33
document.querySelectorAll('.kroma-hologram-overlay, .kroma-body-dim').forEach(el => el.remove());
44

src/js/components/navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class KromaNavbar {
1+
export class KromaNavbar {
22

33
/*
44
id (string) = navbar element id

src/js/components/rating.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function initializeKromaRatingComponents() {
1+
export function initializeKromaRatingComponents() {
22
// Automatically initialize all rating components on the page
33
document.querySelectorAll('.kroma-rating').forEach(initializeRatingComponent);
44
}

src/js/components/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class KromaSidebar {
1+
export class KromaSidebar {
22

33
/*
44
id (string) = navbar element id

src/js/components/slideshow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class KromaSlideshow {
1+
export class KromaSlideshow {
22

33
/*
44
id (string) = slideshow element id

0 commit comments

Comments
 (0)