Newer
Older
vmk-ui-kit / src / js / index.js
/**
 * VMK UI Kit browser bundle entry.
 * Mirrors the public API surface of gnexus-ui-kit for compatibility.
 */

import * as Icons from "./components/icon-helper.js";
import Toasts from "./components/toasts.js";
import Tabs from "./components/tabs.js";
import Progress from "./components/progress.js";
import Tables from "./components/tables.js";
import Lists from "./components/lists.js";
import Skeleton from "./components/skeleton.js";
import Tooltips from "./components/tooltips.js";
import Dropdowns from "./components/dropdowns.js";
import NavigationShell from "./components/navigation-shell.js";

const api = {
  Icons,
  Toasts,
  Tabs,
  Progress,
  Tables,
  Lists,
  Skeleton,
  Tooltips,
  Dropdowns,
  NavigationShell,
  Helper: {
    iconSvg: Icons.iconSvg,
    iconNode: Icons.iconNode,
    iconHtml: Icons.iconHtml
  }
};

if (typeof window !== "undefined") {
  window.VMKUIKit = api;

  document.addEventListener("DOMContentLoaded", () => {
    // Component initialisation hooks will be wired here.
  });
}

export { Icons, Toasts, Tabs, Progress, Tables, Lists, Skeleton, Tooltips, Dropdowns, NavigationShell };
export default api;