Newer
Older
vmk-ui-kit / src / js / index.js
@Eugene Sukhodolskiy Eugene Sukhodolskiy 1 day ago 587 bytes Add overlay components: Modal, Drawer, Toast system
/**
 * 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";

const api = {
  Icons,
  Toasts,
  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 };
export default api;