atomicuilibrary 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +111 -0
- package/dist/cjs/category-section.cjs.entry.js +30 -0
- package/dist/cjs/component-size-DsYFUZcz.js +29 -0
- package/dist/cjs/dom-oP1E4Rd3.js +267 -0
- package/dist/cjs/event-bus-B6M2f8CQ.js +23 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +24 -0
- package/dist/cjs/focus-trap-i9T6oXLc.js +139 -0
- package/dist/cjs/index-ClkOYpT8.js +2275 -0
- package/dist/cjs/index.cjs.js +260 -0
- package/dist/cjs/layout-manager.cjs.entry.js +616 -0
- package/dist/cjs/library-card.cjs.entry.js +63 -0
- package/dist/cjs/lm-container_2.cjs.entry.js +79 -0
- package/dist/cjs/lm-panel_3.cjs.entry.js +108 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/cjs/my-component.cjs.entry.js +33 -0
- package/dist/cjs/my-step.cjs.entry.js +29 -0
- package/dist/cjs/nav-bar.cjs.entry.js +247 -0
- package/dist/cjs/security-E1JcwxGc.js +1547 -0
- package/dist/cjs/smart-step.cjs.entry.js +47 -0
- package/dist/cjs/timeline-item.cjs.entry.js +29 -0
- package/dist/cjs/ui-accordion_10.cjs.entry.js +5733 -0
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2684 -0
- package/dist/cjs/ui-anchor.cjs.entry.js +558 -0
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +285 -0
- package/dist/cjs/ui-aside-panel.cjs.entry.js +638 -0
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +634 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +56 -0
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +201 -0
- package/dist/cjs/ui-callout-banner.cjs.entry.js +291 -0
- package/dist/cjs/ui-card.cjs.entry.js +411 -0
- package/dist/cjs/ui-carousel.cjs.entry.js +547 -0
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +330 -0
- package/dist/cjs/ui-checkbox.cjs.entry.js +260 -0
- package/dist/cjs/ui-code-editor.cjs.entry.js +961 -0
- package/dist/cjs/ui-code-preview.cjs.entry.js +315 -0
- package/dist/cjs/ui-color-controller.cjs.entry.js +150 -0
- package/dist/cjs/ui-color-picker.cjs.entry.js +658 -0
- package/dist/cjs/ui-command-palette.cjs.entry.js +178 -0
- package/dist/cjs/ui-dialog-box.cjs.entry.js +1808 -0
- package/dist/cjs/ui-dialog-content.cjs.entry.js +31 -0
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +193 -0
- package/dist/cjs/ui-divider.cjs.entry.js +481 -0
- package/dist/cjs/ui-dock-host.cjs.entry.js +128 -0
- package/dist/cjs/ui-dock.cjs.entry.js +221 -0
- package/dist/cjs/ui-drag-drop.cjs.entry.js +172 -0
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +1552 -0
- package/dist/cjs/ui-empty-state.cjs.entry.js +398 -0
- package/dist/cjs/ui-fab-item.cjs.entry.js +39 -0
- package/dist/cjs/ui-fab.cjs.entry.js +277 -0
- package/dist/cjs/ui-file-upload.cjs.entry.js +418 -0
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +135 -0
- package/dist/cjs/ui-image-button.cjs.entry.js +67 -0
- package/dist/cjs/ui-input-pair.cjs.entry.js +44 -0
- package/dist/cjs/ui-knob.cjs.entry.js +447 -0
- package/dist/cjs/ui-library.cjs.entry.js +134 -0
- package/dist/cjs/ui-list-group_2.cjs.entry.js +586 -0
- package/dist/cjs/ui-list.cjs.entry.js +732 -0
- package/dist/cjs/ui-masonry.cjs.entry.js +478 -0
- package/dist/cjs/ui-meter-group.cjs.entry.js +173 -0
- package/dist/cjs/ui-navigation-item.cjs.entry.js +104 -0
- package/dist/cjs/ui-number-input.cjs.entry.js +191 -0
- package/dist/cjs/ui-otp-input.cjs.entry.js +246 -0
- package/dist/cjs/ui-pagination_3.cjs.entry.js +1621 -0
- package/dist/cjs/ui-panel.cjs.entry.js +614 -0
- package/dist/cjs/ui-pattern-input.cjs.entry.js +278 -0
- package/dist/cjs/ui-popover.cjs.entry.js +517 -0
- package/dist/cjs/ui-progress.cjs.entry.js +516 -0
- package/dist/cjs/ui-radio-group.cjs.entry.js +205 -0
- package/dist/cjs/ui-radio.cjs.entry.js +206 -0
- package/dist/cjs/ui-range-slider.cjs.entry.js +637 -0
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +484 -0
- package/dist/cjs/ui-scroll-top.cjs.entry.js +459 -0
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +376 -0
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +565 -0
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +137 -0
- package/dist/cjs/ui-snackbar.cjs.entry.js +863 -0
- package/dist/cjs/ui-speed-dial.cjs.entry.js +520 -0
- package/dist/cjs/ui-speedometer.cjs.entry.js +428 -0
- package/dist/cjs/ui-splitter.cjs.entry.js +282 -0
- package/dist/cjs/ui-step.cjs.entry.js +30 -0
- package/dist/cjs/ui-stepper.cjs.entry.js +640 -0
- package/dist/cjs/ui-switch.cjs.entry.js +405 -0
- package/dist/cjs/ui-tabs.cjs.entry.js +703 -0
- package/dist/cjs/ui-tag.cjs.entry.js +299 -0
- package/dist/cjs/ui-timeline.cjs.entry.js +267 -0
- package/dist/cjs/ui-timer.cjs.entry.js +502 -0
- package/dist/cjs/ui-toolbar.cjs.entry.js +619 -0
- package/dist/cjs/ui-tooltip.cjs.entry.js +697 -0
- package/dist/cjs/ui-top-bar.cjs.entry.js +121 -0
- package/dist/cjs/ui-transfer-list.cjs.entry.js +592 -0
- package/dist/cjs/ui-tree.cjs.entry.js +874 -0
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +1201 -0
- package/dist/cjs/utils-DVZ6gul6.js +26 -0
- package/dist/collection/assets/js/component-config.js +41 -0
- package/dist/collection/assets/js/demo-loader.js +147 -0
- package/dist/collection/assets/js/demo-nav.js +273 -0
- package/dist/collection/assets/js/demos/about-demo.js +60 -0
- package/dist/collection/assets/js/demos/accordion-demo.js +1954 -0
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +2952 -0
- package/dist/collection/assets/js/demos/anchor-demo.js +527 -0
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +174 -0
- package/dist/collection/assets/js/demos/aside-panel-demo.js +1109 -0
- package/dist/collection/assets/js/demos/avatar-demo.js +508 -0
- package/dist/collection/assets/js/demos/badge-demo.js +620 -0
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +365 -0
- package/dist/collection/assets/js/demos/button-demo.js +1223 -0
- package/dist/collection/assets/js/demos/button-toggle-demo.js +978 -0
- package/dist/collection/assets/js/demos/callout-banner-demo.js +366 -0
- package/dist/collection/assets/js/demos/card-demo.js +427 -0
- package/dist/collection/assets/js/demos/carousel-demo.js +360 -0
- package/dist/collection/assets/js/demos/checkbox-demo.js +489 -0
- package/dist/collection/assets/js/demos/code-preview-demo.js +216 -0
- package/dist/collection/assets/js/demos/color-picker-demo.js +117 -0
- package/dist/collection/assets/js/demos/command-palette-demo.js +105 -0
- package/dist/collection/assets/js/demos/complex-form-demo.js +45 -0
- package/dist/collection/assets/js/demos/context-menu-data.js +436 -0
- package/dist/collection/assets/js/demos/context-menu-demo.js +829 -0
- package/dist/collection/assets/js/demos/dashboard-demo.js +5 -0
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +411 -0
- package/dist/collection/assets/js/demos/dialog-demo.js +2567 -0
- package/dist/collection/assets/js/demos/divider-demo.js +853 -0
- package/dist/collection/assets/js/demos/dock-demo.js +422 -0
- package/dist/collection/assets/js/demos/dock-host-init.js +117 -0
- package/dist/collection/assets/js/demos/dock-host-playground.js +59 -0
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -0
- package/dist/collection/assets/js/demos/drag-drop-demo.js +132 -0
- package/dist/collection/assets/js/demos/dropdown-demo.js +1410 -0
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +18 -0
- package/dist/collection/assets/js/demos/empty-state-demo.js +580 -0
- package/dist/collection/assets/js/demos/fab-demo.js +374 -0
- package/dist/collection/assets/js/demos/file-upload-demo.js +171 -0
- package/dist/collection/assets/js/demos/home-components.js +750 -0
- package/dist/collection/assets/js/demos/home-demo.js +441 -0
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +277 -0
- package/dist/collection/assets/js/demos/icon-demo.js +380 -0
- package/dist/collection/assets/js/demos/input-demo.js +1932 -0
- package/dist/collection/assets/js/demos/knob-demo.js +570 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +918 -0
- package/dist/collection/assets/js/demos/list-demo.js +1402 -0
- package/dist/collection/assets/js/demos/loader-demo.js +453 -0
- package/dist/collection/assets/js/demos/meter-group-demo.js +499 -0
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +924 -0
- package/dist/collection/assets/js/demos/my-profile-demo.js +237 -0
- package/dist/collection/assets/js/demos/nav-bar-demo.js +187 -0
- package/dist/collection/assets/js/demos/number-input-demo.js +242 -0
- package/dist/collection/assets/js/demos/overview-demo.js +11 -0
- package/dist/collection/assets/js/demos/pagination-demo.js +1042 -0
- package/dist/collection/assets/js/demos/panel-demo.js +789 -0
- package/dist/collection/assets/js/demos/pattern-input-demo.js +241 -0
- package/dist/collection/assets/js/demos/popover-demo.js +882 -0
- package/dist/collection/assets/js/demos/progress-demo.js +462 -0
- package/dist/collection/assets/js/demos/radio-demo.js +413 -0
- package/dist/collection/assets/js/demos/range-slider-demo.js +1217 -0
- package/dist/collection/assets/js/demos/rating-demo.js +383 -0
- package/dist/collection/assets/js/demos/scroll-top-demo.js +353 -0
- package/dist/collection/assets/js/demos/skeleton-demo.js +490 -0
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +26 -0
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +552 -0
- package/dist/collection/assets/js/demos/smart-menu-demo.js +375 -0
- package/dist/collection/assets/js/demos/smart-stepper-demo.js +50 -0
- package/dist/collection/assets/js/demos/snackbar-demo.js +1040 -0
- package/dist/collection/assets/js/demos/speed-dial-demo.js +764 -0
- package/dist/collection/assets/js/demos/speedometer-demo.js +425 -0
- package/dist/collection/assets/js/demos/split-button-demo.js +201 -0
- package/dist/collection/assets/js/demos/stack-demo.js +228 -0
- package/dist/collection/assets/js/demos/stepper-demo.js +798 -0
- package/dist/collection/assets/js/demos/switch-demo.js +849 -0
- package/dist/collection/assets/js/demos/tabs-demo.js +1032 -0
- package/dist/collection/assets/js/demos/tag-demo.js +842 -0
- package/dist/collection/assets/js/demos/theme-selector-demo.js +466 -0
- package/dist/collection/assets/js/demos/timeline-demo.js +365 -0
- package/dist/collection/assets/js/demos/timeline-playground.js +59 -0
- package/dist/collection/assets/js/demos/timer-demo.js +313 -0
- package/dist/collection/assets/js/demos/toolbar-demo.js +643 -0
- package/dist/collection/assets/js/demos/tooltip-demo.js +730 -0
- package/dist/collection/assets/js/demos/top-bar-demo.js +417 -0
- package/dist/collection/assets/js/demos/transfer-list-demo.js +555 -0
- package/dist/collection/assets/js/demos/tree-demo.js +693 -0
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +241 -0
- package/dist/collection/assets/js/index-boot.js +104 -0
- package/dist/collection/assets/js/nav-bar-demo.js +20 -0
- package/dist/collection/assets/js/nav-bar-init.js +119 -0
- package/dist/collection/assets/js/utils/layout-loader.js +80 -0
- package/dist/collection/collection-manifest.json +113 -0
- package/dist/collection/components/accordion/accordion.css +2090 -0
- package/dist/collection/components/accordion/accordion.js +2955 -0
- package/dist/collection/components/accordion/types.js +1 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +2606 -0
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +5394 -0
- package/dist/collection/components/advanced-data-table/types.js +1 -0
- package/dist/collection/components/anchor/anchor.css +395 -0
- package/dist/collection/components/anchor/anchor.js +1404 -0
- package/dist/collection/components/anchor/types.js +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.css +804 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +696 -0
- package/dist/collection/components/aside-panel/aside-panel.css +472 -0
- package/dist/collection/components/aside-panel/aside-panel.js +1697 -0
- package/dist/collection/components/avatar/avatar.css +696 -0
- package/dist/collection/components/avatar/avatar.js +2007 -0
- package/dist/collection/components/avatar/types.js +1 -0
- package/dist/collection/components/avatar-group/avatar-group.css +253 -0
- package/dist/collection/components/avatar-group/avatar-group.js +405 -0
- package/dist/collection/components/avatar-group/types.js +1 -0
- package/dist/collection/components/badge/badge.css +580 -0
- package/dist/collection/components/badge/badge.js +723 -0
- package/dist/collection/components/badge/types.js +1 -0
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +231 -0
- package/dist/collection/components/breadcrumb/breadcrumb.css +313 -0
- package/dist/collection/components/breadcrumb/breadcrumb.js +510 -0
- package/dist/collection/components/breadcrumb/types.js +1 -0
- package/dist/collection/components/button/button.css +1862 -0
- package/dist/collection/components/button/button.js +1380 -0
- package/dist/collection/components/button/types.js +1 -0
- package/dist/collection/components/button-toggle/button-toggle.css +97 -0
- package/dist/collection/components/button-toggle/button-toggle.js +620 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +401 -0
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +1572 -0
- package/dist/collection/components/button-toggle-group/types.js +1 -0
- package/dist/collection/components/callout-banner/callout-banner.css +684 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1076 -0
- package/dist/collection/components/callout-banner/types.js +1 -0
- package/dist/collection/components/card/card.css +663 -0
- package/dist/collection/components/card/card.js +1697 -0
- package/dist/collection/components/card/types.js +1 -0
- package/dist/collection/components/carousel/carousel.css +549 -0
- package/dist/collection/components/carousel/carousel.js +1512 -0
- package/dist/collection/components/carousel/types.js +1 -0
- package/dist/collection/components/checkbox/checkbox.css +863 -0
- package/dist/collection/components/checkbox/checkbox.js +1201 -0
- package/dist/collection/components/checkbox/types.js +1 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +223 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +1001 -0
- package/dist/collection/components/checkbox-group/types.js +1 -0
- package/dist/collection/components/code-editor/code-editor.css +1081 -0
- package/dist/collection/components/code-editor/code-editor.js +1211 -0
- package/dist/collection/components/code-editor/types.js +1 -0
- package/dist/collection/components/code-preview/types.js +1 -0
- package/dist/collection/components/code-preview/ui-code-preview.css +209 -0
- package/dist/collection/components/code-preview/ui-code-preview.js +548 -0
- package/dist/collection/components/color-controller/color-controller.css +108 -0
- package/dist/collection/components/color-controller/color-controller.js +224 -0
- package/dist/collection/components/color-picker/color-picker.css +323 -0
- package/dist/collection/components/color-picker/color-picker.js +1139 -0
- package/dist/collection/components/color-picker/types.js +1 -0
- package/dist/collection/components/command-palette/command-palette.css +260 -0
- package/dist/collection/components/command-palette/command-palette.js +429 -0
- package/dist/collection/components/command-palette/types.js +1 -0
- package/dist/collection/components/context-menu/context-menu.css +388 -0
- package/dist/collection/components/context-menu/context-menu.js +1412 -0
- package/dist/collection/components/context-menu/types.js +1 -0
- package/dist/collection/components/dialog-box/dialog-box.css +1261 -0
- package/dist/collection/components/dialog-box/dialog-box.js +4314 -0
- package/dist/collection/components/dialog-box/dialog-tray.css +268 -0
- package/dist/collection/components/dialog-box/types.js +1 -0
- package/dist/collection/components/dialog-content/dialog-content.css +83 -0
- package/dist/collection/components/dialog-content/dialog-content.js +96 -0
- package/dist/collection/components/dialog-footer/dialog-footer.css +89 -0
- package/dist/collection/components/dialog-footer/dialog-footer.js +94 -0
- package/dist/collection/components/dialog-footer/types.js +1 -0
- package/dist/collection/components/dialog-header/dialog-header.css +203 -0
- package/dist/collection/components/dialog-header/dialog-header.js +630 -0
- package/dist/collection/components/dialog-header/types.js +1 -0
- package/dist/collection/components/divider/divider.css +948 -0
- package/dist/collection/components/divider/divider.js +1612 -0
- package/dist/collection/components/divider/types.js +1 -0
- package/dist/collection/components/dock/dock.css +348 -0
- package/dist/collection/components/dock/dock.js +464 -0
- package/dist/collection/components/dock/types.js +1 -0
- package/dist/collection/components/dock-host/index.js +1 -0
- package/dist/collection/components/dock-host/types.js +1 -0
- package/dist/collection/components/dock-host/ui-dock-host.css +155 -0
- package/dist/collection/components/dock-host/ui-dock-host.js +226 -0
- package/dist/collection/components/drag-drop/drag-drop.css +103 -0
- package/dist/collection/components/drag-drop/drag-drop.js +385 -0
- package/dist/collection/components/drag-drop/types.js +1 -0
- package/dist/collection/components/dropdown/dropdown.css +1142 -0
- package/dist/collection/components/dropdown/dropdown.js +2033 -0
- package/dist/collection/components/dropdown/types.js +1 -0
- package/dist/collection/components/empty-state/empty-state.css +712 -0
- package/dist/collection/components/empty-state/empty-state.js +1256 -0
- package/dist/collection/components/empty-state/types.js +1 -0
- package/dist/collection/components/fab/fab.css +601 -0
- package/dist/collection/components/fab/fab.js +1124 -0
- package/dist/collection/components/fab-item/fab-item.css +107 -0
- package/dist/collection/components/fab-item/fab-item.js +177 -0
- package/dist/collection/components/fab-item/types.js +1 -0
- package/dist/collection/components/file-upload/file-upload.css +243 -0
- package/dist/collection/components/file-upload/file-upload.js +1022 -0
- package/dist/collection/components/file-upload/types.js +1 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +394 -0
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +375 -0
- package/dist/collection/components/icon/icon.css +113 -0
- package/dist/collection/components/icon/icon.js +583 -0
- package/dist/collection/components/image-button/image-button.css +154 -0
- package/dist/collection/components/image-button/image-button.js +310 -0
- package/dist/collection/components/image-button/types.js +1 -0
- package/dist/collection/components/input/input.css +1544 -0
- package/dist/collection/components/input/input.js +3690 -0
- package/dist/collection/components/input/types.js +1 -0
- package/dist/collection/components/input-pair/input-pair.css +72 -0
- package/dist/collection/components/input-pair/input-pair.js +309 -0
- package/dist/collection/components/knob/knob.css +162 -0
- package/dist/collection/components/knob/knob.js +986 -0
- package/dist/collection/components/knob/types.js +1 -0
- package/dist/collection/components/layout-manager/layout-manager.css +41 -0
- package/dist/collection/components/layout-manager/layout-manager.js +525 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.css +117 -0
- package/dist/collection/components/layout-manager/lm-container/lm-container.js +110 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.css +0 -0
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +49 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.css +97 -0
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +58 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.css +57 -0
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +120 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.css +149 -0
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +130 -0
- package/dist/collection/components/layout-manager/types.js +1 -0
- package/dist/collection/components/library/category-section.css +147 -0
- package/dist/collection/components/library/category-section.js +139 -0
- package/dist/collection/components/library/data.js +74 -0
- package/dist/collection/components/library/library-card.css +181 -0
- package/dist/collection/components/library/library-card.js +203 -0
- package/dist/collection/components/library/library.css +358 -0
- package/dist/collection/components/library/library.js +91 -0
- package/dist/collection/components/list/list.css +1029 -0
- package/dist/collection/components/list/list.js +2167 -0
- package/dist/collection/components/list-group/list-group.css +275 -0
- package/dist/collection/components/list-group/list-group.js +356 -0
- package/dist/collection/components/list-item/list-item.css +1491 -0
- package/dist/collection/components/list-item/list-item.js +2184 -0
- package/dist/collection/components/masonry/masonry.css +414 -0
- package/dist/collection/components/masonry/masonry.js +1104 -0
- package/dist/collection/components/masonry/types.js +1 -0
- package/dist/collection/components/meter-group/meter-group.css +184 -0
- package/dist/collection/components/meter-group/meter-group.js +471 -0
- package/dist/collection/components/meter-group/types.js +1 -0
- package/dist/collection/components/my-component/my-component.css +27 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/my-step/my-step.css +25 -0
- package/dist/collection/components/my-step/my-step.js +237 -0
- package/dist/collection/components/nav-bar/nav-bar.css +448 -0
- package/dist/collection/components/nav-bar/nav-bar.js +608 -0
- package/dist/collection/components/number-input/number-input.css +200 -0
- package/dist/collection/components/number-input/number-input.js +695 -0
- package/dist/collection/components/otp-input/otp-input.css +243 -0
- package/dist/collection/components/otp-input/otp-input.js +761 -0
- package/dist/collection/components/otp-input/types.js +1 -0
- package/dist/collection/components/pagination/pagination.css +1399 -0
- package/dist/collection/components/pagination/pagination.js +2033 -0
- package/dist/collection/components/pagination/types.js +1 -0
- package/dist/collection/components/panel/panel.css +837 -0
- package/dist/collection/components/panel/panel.js +1842 -0
- package/dist/collection/components/panel/types.js +1 -0
- package/dist/collection/components/pattern-input/pattern-input.css +252 -0
- package/dist/collection/components/pattern-input/pattern-input.js +788 -0
- package/dist/collection/components/popover/popover.css +399 -0
- package/dist/collection/components/popover/popover.js +1449 -0
- package/dist/collection/components/popover/types.js +1 -0
- package/dist/collection/components/progress/progress.css +588 -0
- package/dist/collection/components/progress/progress.js +1414 -0
- package/dist/collection/components/progress/types.js +1 -0
- package/dist/collection/components/radio/radio.css +773 -0
- package/dist/collection/components/radio/radio.js +1059 -0
- package/dist/collection/components/radio/types.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +202 -0
- package/dist/collection/components/radio-group/radio-group.js +903 -0
- package/dist/collection/components/radio-group/types.js +1 -0
- package/dist/collection/components/range-slider/range-slider.css +602 -0
- package/dist/collection/components/range-slider/range-slider.js +1369 -0
- package/dist/collection/components/range-slider/types.js +1 -0
- package/dist/collection/components/rating/rating.css +768 -0
- package/dist/collection/components/rating/rating.js +1062 -0
- package/dist/collection/components/rating/types.js +1 -0
- package/dist/collection/components/resizable-panel/resizable-panel.css +247 -0
- package/dist/collection/components/resizable-panel/resizable-panel.js +874 -0
- package/dist/collection/components/resizable-panel/types.js +1 -0
- package/dist/collection/components/scroll-top/scroll-top.css +397 -0
- package/dist/collection/components/scroll-top/scroll-top.js +1178 -0
- package/dist/collection/components/scroll-top/types.js +1 -0
- package/dist/collection/components/skeleton/skeleton-loader.css +429 -0
- package/dist/collection/components/skeleton/skeleton-loader.js +1193 -0
- package/dist/collection/components/skeleton/types.js +1 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +357 -0
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +1190 -0
- package/dist/collection/components/smart-location-dropdown/types.js +1 -0
- package/dist/collection/components/smart-menu/menu-item.interface.js +1 -0
- package/dist/collection/components/smart-menu/smart-menu.css +119 -0
- package/dist/collection/components/smart-menu/smart-menu.js +544 -0
- package/dist/collection/components/smart-stepper/smart-step.css +213 -0
- package/dist/collection/components/smart-stepper/smart-step.js +170 -0
- package/dist/collection/components/smart-stepper/smart-stepper.css +146 -0
- package/dist/collection/components/smart-stepper/smart-stepper.js +338 -0
- package/dist/collection/components/snackbar/snackbar.css +1480 -0
- package/dist/collection/components/snackbar/snackbar.js +1759 -0
- package/dist/collection/components/snackbar/types.js +1 -0
- package/dist/collection/components/speed-dial/speed-dial.css +478 -0
- package/dist/collection/components/speed-dial/speed-dial.js +1183 -0
- package/dist/collection/components/speed-dial/types.js +1 -0
- package/dist/collection/components/speedometer/speedometer.css +95 -0
- package/dist/collection/components/speedometer/speedometer.js +868 -0
- package/dist/collection/components/speedometer/types.js +1 -0
- package/dist/collection/components/splitter/splitter.css +269 -0
- package/dist/collection/components/splitter/splitter.js +713 -0
- package/dist/collection/components/splitter/types.js +1 -0
- package/dist/collection/components/stack/stack.css +269 -0
- package/dist/collection/components/stack/stack.js +297 -0
- package/dist/collection/components/stack/types.js +1 -0
- package/dist/collection/components/step/step.css +77 -0
- package/dist/collection/components/step/step.js +214 -0
- package/dist/collection/components/step/types.js +1 -0
- package/dist/collection/components/stepper/stepper.css +1079 -0
- package/dist/collection/components/stepper/stepper.js +1850 -0
- package/dist/collection/components/stepper/types.js +1 -0
- package/dist/collection/components/switch/switch.css +1099 -0
- package/dist/collection/components/switch/switch.js +1578 -0
- package/dist/collection/components/tabs/tabs.css +1355 -0
- package/dist/collection/components/tabs/tabs.js +1474 -0
- package/dist/collection/components/tabs/types.js +1 -0
- package/dist/collection/components/tag/tag.css +893 -0
- package/dist/collection/components/tag/tag.js +1119 -0
- package/dist/collection/components/tag/types.js +1 -0
- package/dist/collection/components/tag-group/tag-group.css +144 -0
- package/dist/collection/components/tag-group/tag-group.js +887 -0
- package/dist/collection/components/tag-group/types.js +1 -0
- package/dist/collection/components/timeline/timeline.css +1850 -0
- package/dist/collection/components/timeline/timeline.js +889 -0
- package/dist/collection/components/timeline/types.js +1 -0
- package/dist/collection/components/timeline/ui-timeline.stories.js +19 -0
- package/dist/collection/components/timeline-item/timeline-item.css +75 -0
- package/dist/collection/components/timeline-item/timeline-item.js +91 -0
- package/dist/collection/components/timer/timer.css +367 -0
- package/dist/collection/components/timer/timer.js +1292 -0
- package/dist/collection/components/timer/types.js +1 -0
- package/dist/collection/components/timer/ui-timer.stories.js +19 -0
- package/dist/collection/components/toggle-group/toggle-group.css +361 -0
- package/dist/collection/components/toggle-group/toggle-group.js +1212 -0
- package/dist/collection/components/toggle-group/types.js +1 -0
- package/dist/collection/components/toolbar/toolbar-types.js +1 -0
- package/dist/collection/components/toolbar/toolbar.css +1186 -0
- package/dist/collection/components/toolbar/toolbar.js +1635 -0
- package/dist/collection/components/tooltip/tooltip.css +609 -0
- package/dist/collection/components/tooltip/tooltip.js +1882 -0
- package/dist/collection/components/tooltip/types.js +1 -0
- package/dist/collection/components/top-bar/top-bar.css +274 -0
- package/dist/collection/components/top-bar/top-bar.js +383 -0
- package/dist/collection/components/transfer-list/transfer-list.css +520 -0
- package/dist/collection/components/transfer-list/transfer-list.js +1225 -0
- package/dist/collection/components/transfer-list/types.js +1 -0
- package/dist/collection/components/tree/tree.css +1197 -0
- package/dist/collection/components/tree/tree.js +2509 -0
- package/dist/collection/components/tree/types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +830 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +1231 -0
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +679 -0
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +385 -0
- package/dist/collection/components/ui-navigation-bar/navigation-types.js +1 -0
- package/dist/collection/components/workspace-manager/types.js +1 -0
- package/dist/collection/components/workspace-manager/workspace-manager.css +1094 -0
- package/dist/collection/components/workspace-manager/workspace-manager.js +1914 -0
- package/dist/collection/components.js +51 -0
- package/dist/collection/index.js +108 -0
- package/dist/collection/service/drag-manager.js +23 -0
- package/dist/collection/service/event-bus.js +19 -0
- package/dist/collection/service/serialization.js +8 -0
- package/dist/collection/service/state-engine.js +247 -0
- package/dist/collection/service/theme-switcher.js +146 -0
- package/dist/collection/stories/Button.stories.js +15 -0
- package/dist/collection/types/common.js +1 -0
- package/dist/collection/types/index.js +4 -0
- package/dist/collection/utils/aria-live.js +60 -0
- package/dist/collection/utils/component-size.js +25 -0
- package/dist/collection/utils/dom.js +260 -0
- package/dist/collection/utils/focus-trap.js +135 -0
- package/dist/collection/utils/security.js +10 -0
- package/dist/collection/utils/test/setup-component-test-env.js +92 -0
- package/dist/collection/utils/utils.js +21 -0
- package/dist/collection/utils/validation.js +74 -0
- package/dist/components/avatar-group.js +1 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/badge.js +1 -0
- package/dist/components/button-toggle.js +1 -0
- package/dist/components/category-section.d.ts +11 -0
- package/dist/components/category-section.js +1 -0
- package/dist/components/category-section2.js +1 -0
- package/dist/components/checkbox.js +1 -0
- package/dist/components/context-menu.js +1 -0
- package/dist/components/dialog-footer.js +1 -0
- package/dist/components/dialog-header.js +1 -0
- package/dist/components/dom.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/event-bus.js +1 -0
- package/dist/components/focus-trap.js +1 -0
- package/dist/components/icon.js +2 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/layout-manager.d.ts +11 -0
- package/dist/components/layout-manager.js +1 -0
- package/dist/components/library-card.d.ts +11 -0
- package/dist/components/library-card.js +1 -0
- package/dist/components/library-card2.js +1 -0
- package/dist/components/list-group.js +1 -0
- package/dist/components/list-item.js +1 -0
- package/dist/components/lm-container.d.ts +11 -0
- package/dist/components/lm-container.js +1 -0
- package/dist/components/lm-container2.js +1 -0
- package/dist/components/lm-floating-window.d.ts +11 -0
- package/dist/components/lm-floating-window.js +1 -0
- package/dist/components/lm-floating-window2.js +1 -0
- package/dist/components/lm-panel.d.ts +11 -0
- package/dist/components/lm-panel.js +1 -0
- package/dist/components/lm-panel2.js +1 -0
- package/dist/components/lm-splitter.d.ts +11 -0
- package/dist/components/lm-splitter.js +1 -0
- package/dist/components/lm-splitter2.js +1 -0
- package/dist/components/lm-tabs.d.ts +11 -0
- package/dist/components/lm-tabs.js +1 -0
- package/dist/components/lm-tabs2.js +1 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +1 -0
- package/dist/components/my-step.d.ts +11 -0
- package/dist/components/my-step.js +1 -0
- package/dist/components/nav-bar.d.ts +11 -0
- package/dist/components/nav-bar.js +1 -0
- package/dist/components/pagination.js +1 -0
- package/dist/components/radio.js +1 -0
- package/dist/components/range-slider.js +1 -0
- package/dist/components/rating.js +1 -0
- package/dist/components/resizable-panel.js +1 -0
- package/dist/components/skeleton-loader.js +1 -0
- package/dist/components/smart-step.d.ts +11 -0
- package/dist/components/smart-step.js +1 -0
- package/dist/components/stack.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/tag-group.js +1 -0
- package/dist/components/tag.js +1 -0
- package/dist/components/timeline-item.d.ts +11 -0
- package/dist/components/timeline-item.js +1 -0
- package/dist/components/toggle-group.js +1 -0
- package/dist/components/tooltip.js +1 -0
- package/dist/components/ui-accordion.d.ts +11 -0
- package/dist/components/ui-accordion.js +1 -0
- package/dist/components/ui-advanced-data-table.d.ts +11 -0
- package/dist/components/ui-advanced-data-table.js +1 -0
- package/dist/components/ui-anchor.d.ts +11 -0
- package/dist/components/ui-anchor.js +1 -0
- package/dist/components/ui-animate-on-scroll.d.ts +11 -0
- package/dist/components/ui-animate-on-scroll.js +1 -0
- package/dist/components/ui-aside-panel.d.ts +11 -0
- package/dist/components/ui-aside-panel.js +1 -0
- package/dist/components/ui-avatar-group.d.ts +11 -0
- package/dist/components/ui-avatar-group.js +1 -0
- package/dist/components/ui-avatar.d.ts +11 -0
- package/dist/components/ui-avatar.js +1 -0
- package/dist/components/ui-badge.d.ts +11 -0
- package/dist/components/ui-badge.js +1 -0
- package/dist/components/ui-breadcrumb-item.d.ts +11 -0
- package/dist/components/ui-breadcrumb-item.js +1 -0
- package/dist/components/ui-breadcrumb.d.ts +11 -0
- package/dist/components/ui-breadcrumb.js +1 -0
- package/dist/components/ui-button-toggle-group.d.ts +11 -0
- package/dist/components/ui-button-toggle-group.js +1 -0
- package/dist/components/ui-button-toggle.d.ts +11 -0
- package/dist/components/ui-button-toggle.js +1 -0
- package/dist/components/ui-button.d.ts +11 -0
- package/dist/components/ui-button.js +1 -0
- package/dist/components/ui-callout-banner.d.ts +11 -0
- package/dist/components/ui-callout-banner.js +1 -0
- package/dist/components/ui-card.d.ts +11 -0
- package/dist/components/ui-card.js +1 -0
- package/dist/components/ui-carousel.d.ts +11 -0
- package/dist/components/ui-carousel.js +1 -0
- package/dist/components/ui-checkbox-group.d.ts +11 -0
- package/dist/components/ui-checkbox-group.js +1 -0
- package/dist/components/ui-checkbox.d.ts +11 -0
- package/dist/components/ui-checkbox.js +1 -0
- package/dist/components/ui-code-editor.d.ts +11 -0
- package/dist/components/ui-code-editor.js +1 -0
- package/dist/components/ui-code-preview.d.ts +11 -0
- package/dist/components/ui-code-preview.js +1 -0
- package/dist/components/ui-color-controller.d.ts +11 -0
- package/dist/components/ui-color-controller.js +1 -0
- package/dist/components/ui-color-picker.d.ts +11 -0
- package/dist/components/ui-color-picker.js +1 -0
- package/dist/components/ui-command-palette.d.ts +11 -0
- package/dist/components/ui-command-palette.js +1 -0
- package/dist/components/ui-context-menu.d.ts +11 -0
- package/dist/components/ui-context-menu.js +1 -0
- package/dist/components/ui-dialog-box.d.ts +11 -0
- package/dist/components/ui-dialog-box.js +1 -0
- package/dist/components/ui-dialog-content.d.ts +11 -0
- package/dist/components/ui-dialog-content.js +1 -0
- package/dist/components/ui-dialog-footer.d.ts +11 -0
- package/dist/components/ui-dialog-footer.js +1 -0
- package/dist/components/ui-dialog-header.d.ts +11 -0
- package/dist/components/ui-dialog-header.js +1 -0
- package/dist/components/ui-divider.d.ts +11 -0
- package/dist/components/ui-divider.js +1 -0
- package/dist/components/ui-dock-host.d.ts +11 -0
- package/dist/components/ui-dock-host.js +1 -0
- package/dist/components/ui-dock.d.ts +11 -0
- package/dist/components/ui-dock.js +1 -0
- package/dist/components/ui-drag-drop.d.ts +11 -0
- package/dist/components/ui-drag-drop.js +1 -0
- package/dist/components/ui-dropdown.d.ts +11 -0
- package/dist/components/ui-dropdown.js +1 -0
- package/dist/components/ui-empty-state.d.ts +11 -0
- package/dist/components/ui-empty-state.js +1 -0
- package/dist/components/ui-fab-item.d.ts +11 -0
- package/dist/components/ui-fab-item.js +1 -0
- package/dist/components/ui-fab.d.ts +11 -0
- package/dist/components/ui-fab.js +1 -0
- package/dist/components/ui-file-upload.d.ts +11 -0
- package/dist/components/ui-file-upload.js +1 -0
- package/dist/components/ui-horizontal-nav.d.ts +11 -0
- package/dist/components/ui-horizontal-nav.js +1 -0
- package/dist/components/ui-icon.d.ts +11 -0
- package/dist/components/ui-icon.js +1 -0
- package/dist/components/ui-image-button.d.ts +11 -0
- package/dist/components/ui-image-button.js +1 -0
- package/dist/components/ui-input-pair.d.ts +11 -0
- package/dist/components/ui-input-pair.js +1 -0
- package/dist/components/ui-input.d.ts +11 -0
- package/dist/components/ui-input.js +1 -0
- package/dist/components/ui-knob.d.ts +11 -0
- package/dist/components/ui-knob.js +1 -0
- package/dist/components/ui-library.d.ts +11 -0
- package/dist/components/ui-library.js +1 -0
- package/dist/components/ui-list-group.d.ts +11 -0
- package/dist/components/ui-list-group.js +1 -0
- package/dist/components/ui-list-item.d.ts +11 -0
- package/dist/components/ui-list-item.js +1 -0
- package/dist/components/ui-list.d.ts +11 -0
- package/dist/components/ui-list.js +1 -0
- package/dist/components/ui-masonry.d.ts +11 -0
- package/dist/components/ui-masonry.js +1 -0
- package/dist/components/ui-meter-group.d.ts +11 -0
- package/dist/components/ui-meter-group.js +1 -0
- package/dist/components/ui-navigation-bar.d.ts +11 -0
- package/dist/components/ui-navigation-bar.js +1 -0
- package/dist/components/ui-navigation-item.d.ts +11 -0
- package/dist/components/ui-navigation-item.js +1 -0
- package/dist/components/ui-number-input.d.ts +11 -0
- package/dist/components/ui-number-input.js +1 -0
- package/dist/components/ui-otp-input.d.ts +11 -0
- package/dist/components/ui-otp-input.js +1 -0
- package/dist/components/ui-pagination.d.ts +11 -0
- package/dist/components/ui-pagination.js +1 -0
- package/dist/components/ui-panel.d.ts +11 -0
- package/dist/components/ui-panel.js +1 -0
- package/dist/components/ui-pattern-input.d.ts +11 -0
- package/dist/components/ui-pattern-input.js +1 -0
- package/dist/components/ui-popover.d.ts +11 -0
- package/dist/components/ui-popover.js +1 -0
- package/dist/components/ui-progress.d.ts +11 -0
- package/dist/components/ui-progress.js +1 -0
- package/dist/components/ui-radio-group.d.ts +11 -0
- package/dist/components/ui-radio-group.js +1 -0
- package/dist/components/ui-radio.d.ts +11 -0
- package/dist/components/ui-radio.js +1 -0
- package/dist/components/ui-range-slider.d.ts +11 -0
- package/dist/components/ui-range-slider.js +1 -0
- package/dist/components/ui-rating.d.ts +11 -0
- package/dist/components/ui-rating.js +1 -0
- package/dist/components/ui-resizable-panel.d.ts +11 -0
- package/dist/components/ui-resizable-panel.js +1 -0
- package/dist/components/ui-scroll-top.d.ts +11 -0
- package/dist/components/ui-scroll-top.js +1 -0
- package/dist/components/ui-skeleton.d.ts +11 -0
- package/dist/components/ui-skeleton.js +1 -0
- package/dist/components/ui-smart-context-menu.d.ts +11 -0
- package/dist/components/ui-smart-context-menu.js +1 -0
- package/dist/components/ui-smart-location-dropdown.d.ts +11 -0
- package/dist/components/ui-smart-location-dropdown.js +1 -0
- package/dist/components/ui-smart-stepper.d.ts +11 -0
- package/dist/components/ui-smart-stepper.js +1 -0
- package/dist/components/ui-snackbar.d.ts +11 -0
- package/dist/components/ui-snackbar.js +1 -0
- package/dist/components/ui-speed-dial.d.ts +11 -0
- package/dist/components/ui-speed-dial.js +1 -0
- package/dist/components/ui-speedometer.d.ts +11 -0
- package/dist/components/ui-speedometer.js +1 -0
- package/dist/components/ui-splitter.d.ts +11 -0
- package/dist/components/ui-splitter.js +1 -0
- package/dist/components/ui-stack.d.ts +11 -0
- package/dist/components/ui-stack.js +1 -0
- package/dist/components/ui-step.d.ts +11 -0
- package/dist/components/ui-step.js +1 -0
- package/dist/components/ui-stepper.d.ts +11 -0
- package/dist/components/ui-stepper.js +1 -0
- package/dist/components/ui-switch.d.ts +11 -0
- package/dist/components/ui-switch.js +1 -0
- package/dist/components/ui-tabs.d.ts +11 -0
- package/dist/components/ui-tabs.js +1 -0
- package/dist/components/ui-tag-group.d.ts +11 -0
- package/dist/components/ui-tag-group.js +1 -0
- package/dist/components/ui-tag.d.ts +11 -0
- package/dist/components/ui-tag.js +1 -0
- package/dist/components/ui-timeline.d.ts +11 -0
- package/dist/components/ui-timeline.js +1 -0
- package/dist/components/ui-timer.d.ts +11 -0
- package/dist/components/ui-timer.js +1 -0
- package/dist/components/ui-toggle-group.d.ts +11 -0
- package/dist/components/ui-toggle-group.js +1 -0
- package/dist/components/ui-toolbar.d.ts +11 -0
- package/dist/components/ui-toolbar.js +1 -0
- package/dist/components/ui-tooltip.d.ts +11 -0
- package/dist/components/ui-tooltip.js +1 -0
- package/dist/components/ui-top-bar.d.ts +11 -0
- package/dist/components/ui-top-bar.js +1 -0
- package/dist/components/ui-transfer-list.d.ts +11 -0
- package/dist/components/ui-transfer-list.js +1 -0
- package/dist/components/ui-tree.d.ts +11 -0
- package/dist/components/ui-tree.js +1 -0
- package/dist/components/ui-workspace-manager.d.ts +11 -0
- package/dist/components/ui-workspace-manager.js +1 -0
- package/dist/components/utils.js +1 -0
- package/dist/esm/category-section.entry.js +28 -0
- package/dist/esm/component-size-C7gf39HE.js +27 -0
- package/dist/esm/dom-BMFah5q3.js +262 -0
- package/dist/esm/event-bus-vwwmWKs9.js +21 -0
- package/dist/esm/exploration-project-tailwind.js +20 -0
- package/dist/esm/focus-trap-BSQ8klD4.js +137 -0
- package/dist/esm/index-DUsoYu9r.js +2264 -0
- package/dist/esm/index.js +256 -0
- package/dist/esm/layout-manager.entry.js +614 -0
- package/dist/esm/library-card.entry.js +61 -0
- package/dist/esm/lm-container_2.entry.js +76 -0
- package/dist/esm/lm-panel_3.entry.js +104 -0
- package/dist/esm/loader.js +10 -0
- package/dist/esm/my-component.entry.js +31 -0
- package/dist/esm/my-step.entry.js +27 -0
- package/dist/esm/nav-bar.entry.js +245 -0
- package/dist/esm/security-D2WzX6vR.js +1545 -0
- package/dist/esm/smart-step.entry.js +45 -0
- package/dist/esm/timeline-item.entry.js +27 -0
- package/dist/esm/ui-accordion_10.entry.js +5722 -0
- package/dist/esm/ui-advanced-data-table.entry.js +2682 -0
- package/dist/esm/ui-anchor.entry.js +556 -0
- package/dist/esm/ui-animate-on-scroll.entry.js +283 -0
- package/dist/esm/ui-aside-panel.entry.js +636 -0
- package/dist/esm/ui-avatar-group_3.entry.js +630 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +54 -0
- package/dist/esm/ui-breadcrumb.entry.js +199 -0
- package/dist/esm/ui-callout-banner.entry.js +289 -0
- package/dist/esm/ui-card.entry.js +409 -0
- package/dist/esm/ui-carousel.entry.js +545 -0
- package/dist/esm/ui-checkbox-group.entry.js +328 -0
- package/dist/esm/ui-checkbox.entry.js +258 -0
- package/dist/esm/ui-code-editor.entry.js +959 -0
- package/dist/esm/ui-code-preview.entry.js +313 -0
- package/dist/esm/ui-color-controller.entry.js +148 -0
- package/dist/esm/ui-color-picker.entry.js +656 -0
- package/dist/esm/ui-command-palette.entry.js +176 -0
- package/dist/esm/ui-dialog-box.entry.js +1806 -0
- package/dist/esm/ui-dialog-content.entry.js +29 -0
- package/dist/esm/ui-dialog-footer_2.entry.js +190 -0
- package/dist/esm/ui-divider.entry.js +479 -0
- package/dist/esm/ui-dock-host.entry.js +126 -0
- package/dist/esm/ui-dock.entry.js +219 -0
- package/dist/esm/ui-drag-drop.entry.js +170 -0
- package/dist/esm/ui-dropdown_2.entry.js +1549 -0
- package/dist/esm/ui-empty-state.entry.js +396 -0
- package/dist/esm/ui-fab-item.entry.js +37 -0
- package/dist/esm/ui-fab.entry.js +275 -0
- package/dist/esm/ui-file-upload.entry.js +416 -0
- package/dist/esm/ui-horizontal-nav.entry.js +133 -0
- package/dist/esm/ui-image-button.entry.js +65 -0
- package/dist/esm/ui-input-pair.entry.js +42 -0
- package/dist/esm/ui-knob.entry.js +445 -0
- package/dist/esm/ui-library.entry.js +132 -0
- package/dist/esm/ui-list-group_2.entry.js +583 -0
- package/dist/esm/ui-list.entry.js +730 -0
- package/dist/esm/ui-masonry.entry.js +476 -0
- package/dist/esm/ui-meter-group.entry.js +171 -0
- package/dist/esm/ui-navigation-item.entry.js +102 -0
- package/dist/esm/ui-number-input.entry.js +189 -0
- package/dist/esm/ui-otp-input.entry.js +244 -0
- package/dist/esm/ui-pagination_3.entry.js +1617 -0
- package/dist/esm/ui-panel.entry.js +612 -0
- package/dist/esm/ui-pattern-input.entry.js +276 -0
- package/dist/esm/ui-popover.entry.js +515 -0
- package/dist/esm/ui-progress.entry.js +514 -0
- package/dist/esm/ui-radio-group.entry.js +203 -0
- package/dist/esm/ui-radio.entry.js +204 -0
- package/dist/esm/ui-range-slider.entry.js +635 -0
- package/dist/esm/ui-resizable-panel.entry.js +482 -0
- package/dist/esm/ui-scroll-top.entry.js +457 -0
- package/dist/esm/ui-smart-context-menu.entry.js +374 -0
- package/dist/esm/ui-smart-location-dropdown.entry.js +563 -0
- package/dist/esm/ui-smart-stepper.entry.js +135 -0
- package/dist/esm/ui-snackbar.entry.js +861 -0
- package/dist/esm/ui-speed-dial.entry.js +518 -0
- package/dist/esm/ui-speedometer.entry.js +426 -0
- package/dist/esm/ui-splitter.entry.js +280 -0
- package/dist/esm/ui-step.entry.js +28 -0
- package/dist/esm/ui-stepper.entry.js +638 -0
- package/dist/esm/ui-switch.entry.js +403 -0
- package/dist/esm/ui-tabs.entry.js +701 -0
- package/dist/esm/ui-tag.entry.js +297 -0
- package/dist/esm/ui-timeline.entry.js +265 -0
- package/dist/esm/ui-timer.entry.js +500 -0
- package/dist/esm/ui-toolbar.entry.js +617 -0
- package/dist/esm/ui-tooltip.entry.js +695 -0
- package/dist/esm/ui-top-bar.entry.js +119 -0
- package/dist/esm/ui-transfer-list.entry.js +590 -0
- package/dist/esm/ui-tree.entry.js +872 -0
- package/dist/esm/ui-workspace-manager.entry.js +1199 -0
- package/dist/esm/utils-Ck6jDuhz.js +23 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -0
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -0
- package/dist/exploration-project-tailwind/index.esm.js +1 -0
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-049744f9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0b004861.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-200241f8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-287dbf09.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2d273118.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f1aebb3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-2f961934.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-35296877.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-36861546.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3d3d48fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-41cd6bf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-45482d86.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46596a28.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-46efdea3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4d73c143.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4de419d5.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-4f6bba75.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5508874f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-5e3e80ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-61717490.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-62352ef2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-64e3a484.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-70d82d79.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-73d29a4a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7515b1e3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77124686.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-77cc333a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-7f91d949.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-81961fb1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85bf89fd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-85e36111.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-875be805.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-898dd0fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-8d951aef.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9d0c8760.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fa70359.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +1 -0
- package/dist/exploration-project-tailwind/p-BSQ8klD4.js +1 -0
- package/dist/exploration-project-tailwind/p-C7gf39HE.js +1 -0
- package/dist/exploration-project-tailwind/p-Ck6jDuhz.js +1 -0
- package/dist/exploration-project-tailwind/p-D2WzX6vR.js +2 -0
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +2 -0
- package/dist/exploration-project-tailwind/p-a1ad32a2.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a3f465d9.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a42fdc33.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-aa85ff78.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c174a372.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c4ba7e52.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c5ddc817.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c6fd72e1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c7e87fbb.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c87aeab6.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c90722ec.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ccb5c737.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d16c9635.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d2308a00.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d30e24bd.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d419eaf0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-debede45.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e5322e59.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e8ba0c95.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f0830120.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f5719913.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-ffb1754a.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-vwwmWKs9.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +352 -0
- package/dist/types/components/accordion/types.d.ts +69 -0
- package/dist/types/components/advanced-data-table/advanced-data-table.d.ts +697 -0
- package/dist/types/components/advanced-data-table/types.d.ts +120 -0
- package/dist/types/components/anchor/anchor.d.ts +133 -0
- package/dist/types/components/anchor/types.d.ts +17 -0
- package/dist/types/components/animate-on-scroll/animate-on-scroll.d.ts +101 -0
- package/dist/types/components/aside-panel/aside-panel.d.ts +249 -0
- package/dist/types/components/avatar/avatar.d.ts +201 -0
- package/dist/types/components/avatar/types.d.ts +132 -0
- package/dist/types/components/avatar-group/avatar-group.d.ts +52 -0
- package/dist/types/components/avatar-group/types.d.ts +31 -0
- package/dist/types/components/badge/badge.d.ts +109 -0
- package/dist/types/components/badge/types.d.ts +6 -0
- package/dist/types/components/breadcrumb/breadcrumb-item.d.ts +36 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +73 -0
- package/dist/types/components/breadcrumb/types.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +133 -0
- package/dist/types/components/button/types.d.ts +1 -0
- package/dist/types/components/button-toggle/button-toggle.d.ts +64 -0
- package/dist/types/components/button-toggle-group/button-toggle-group.d.ts +141 -0
- package/dist/types/components/button-toggle-group/types.d.ts +7 -0
- package/dist/types/components/callout-banner/callout-banner.d.ts +115 -0
- package/dist/types/components/callout-banner/types.d.ts +7 -0
- package/dist/types/components/card/card.d.ts +160 -0
- package/dist/types/components/card/types.d.ts +13 -0
- package/dist/types/components/carousel/carousel.d.ts +150 -0
- package/dist/types/components/carousel/types.d.ts +8 -0
- package/dist/types/components/checkbox/checkbox.d.ts +92 -0
- package/dist/types/components/checkbox/types.d.ts +5 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +87 -0
- package/dist/types/components/checkbox-group/types.d.ts +8 -0
- package/dist/types/components/code-editor/code-editor.d.ts +147 -0
- package/dist/types/components/code-editor/types.d.ts +20 -0
- package/dist/types/components/code-preview/types.d.ts +5 -0
- package/dist/types/components/code-preview/ui-code-preview.d.ts +69 -0
- package/dist/types/components/color-controller/color-controller.d.ts +24 -0
- package/dist/types/components/color-picker/color-picker.d.ts +116 -0
- package/dist/types/components/color-picker/types.d.ts +24 -0
- package/dist/types/components/command-palette/command-palette.d.ts +41 -0
- package/dist/types/components/command-palette/types.d.ts +7 -0
- package/dist/types/components/context-menu/context-menu.d.ts +135 -0
- package/dist/types/components/context-menu/types.d.ts +20 -0
- package/dist/types/components/dialog-box/dialog-box.d.ts +648 -0
- package/dist/types/components/dialog-box/types.d.ts +1 -0
- package/dist/types/components/dialog-content/dialog-content.d.ts +9 -0
- package/dist/types/components/dialog-footer/dialog-footer.d.ts +9 -0
- package/dist/types/components/dialog-footer/types.d.ts +1 -0
- package/dist/types/components/dialog-header/dialog-header.d.ts +102 -0
- package/dist/types/components/dialog-header/types.d.ts +2 -0
- package/dist/types/components/divider/divider.d.ts +245 -0
- package/dist/types/components/divider/types.d.ts +14 -0
- package/dist/types/components/dock/dock.d.ts +37 -0
- package/dist/types/components/dock/types.d.ts +11 -0
- package/dist/types/components/dock-host/index.d.ts +1 -0
- package/dist/types/components/dock-host/types.d.ts +1 -0
- package/dist/types/components/dock-host/ui-dock-host.d.ts +23 -0
- package/dist/types/components/drag-drop/drag-drop.d.ts +52 -0
- package/dist/types/components/drag-drop/types.d.ts +9 -0
- package/dist/types/components/dropdown/dropdown.d.ts +264 -0
- package/dist/types/components/dropdown/types.d.ts +19 -0
- package/dist/types/components/empty-state/empty-state.d.ts +74 -0
- package/dist/types/components/empty-state/types.d.ts +13 -0
- package/dist/types/components/fab/fab.d.ts +73 -0
- package/dist/types/components/fab-item/fab-item.d.ts +14 -0
- package/dist/types/components/fab-item/types.d.ts +3 -0
- package/dist/types/components/file-upload/file-upload.d.ts +91 -0
- package/dist/types/components/file-upload/types.d.ts +15 -0
- package/dist/types/components/horizontal-nav/horizontal-nav.d.ts +68 -0
- package/dist/types/components/icon/icon.d.ts +66 -0
- package/dist/types/components/image-button/image-button.d.ts +31 -0
- package/dist/types/components/image-button/types.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +217 -0
- package/dist/types/components/input/types.d.ts +6 -0
- package/dist/types/components/input-pair/input-pair.d.ts +28 -0
- package/dist/types/components/knob/knob.d.ts +147 -0
- package/dist/types/components/knob/types.d.ts +4 -0
- package/dist/types/components/layout-manager/layout-manager.d.ts +32 -0
- package/dist/types/components/layout-manager/lm-container/lm-container.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-floating-window/lm-floating-window.d.ts +6 -0
- package/dist/types/components/layout-manager/lm-panel/lm-panel.d.ts +7 -0
- package/dist/types/components/layout-manager/lm-splitter/lm-splitter.d.ts +12 -0
- package/dist/types/components/layout-manager/lm-tabs/lm-tabs.d.ts +12 -0
- package/dist/types/components/layout-manager/types.d.ts +1 -0
- package/dist/types/components/library/category-section.d.ts +15 -0
- package/dist/types/components/library/data.d.ts +11 -0
- package/dist/types/components/library/library-card.d.ts +19 -0
- package/dist/types/components/library/library.d.ts +9 -0
- package/dist/types/components/list/list.d.ts +183 -0
- package/dist/types/components/list-group/list-group.d.ts +28 -0
- package/dist/types/components/list-item/list-item.d.ts +200 -0
- package/dist/types/components/masonry/masonry.d.ts +105 -0
- package/dist/types/components/masonry/types.d.ts +5 -0
- package/dist/types/components/meter-group/meter-group.d.ts +66 -0
- package/dist/types/components/meter-group/types.d.ts +12 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/my-step/index.d.ts +12 -0
- package/dist/types/components/my-step/my-step.d.ts +13 -0
- package/dist/types/components/nav-bar/nav-bar.d.ts +119 -0
- package/dist/types/components/number-input/number-input.d.ts +72 -0
- package/dist/types/components/otp-input/otp-input.d.ts +64 -0
- package/dist/types/components/otp-input/types.d.ts +3 -0
- package/dist/types/components/pagination/pagination.d.ts +295 -0
- package/dist/types/components/pagination/types.d.ts +1 -0
- package/dist/types/components/panel/panel.d.ts +275 -0
- package/dist/types/components/panel/types.d.ts +7 -0
- package/dist/types/components/pattern-input/pattern-input.d.ts +88 -0
- package/dist/types/components/popover/popover.d.ts +161 -0
- package/dist/types/components/popover/types.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +224 -0
- package/dist/types/components/progress/types.d.ts +6 -0
- package/dist/types/components/radio/radio.d.ts +87 -0
- package/dist/types/components/radio/types.d.ts +7 -0
- package/dist/types/components/radio-group/radio-group.d.ts +74 -0
- package/dist/types/components/radio-group/types.d.ts +2 -0
- package/dist/types/components/range-slider/range-slider.d.ts +201 -0
- package/dist/types/components/range-slider/types.d.ts +4 -0
- package/dist/types/components/rating/rating.d.ts +127 -0
- package/dist/types/components/rating/types.d.ts +1 -0
- package/dist/types/components/resizable-panel/resizable-panel.d.ts +59 -0
- package/dist/types/components/resizable-panel/types.d.ts +11 -0
- package/dist/types/components/scroll-top/scroll-top.d.ts +186 -0
- package/dist/types/components/scroll-top/types.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +149 -0
- package/dist/types/components/skeleton/types.d.ts +1 -0
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +119 -0
- package/dist/types/components/smart-location-dropdown/types.d.ts +37 -0
- package/dist/types/components/smart-menu/menu-item.interface.d.ts +10 -0
- package/dist/types/components/smart-menu/smart-menu.d.ts +64 -0
- package/dist/types/components/smart-stepper/smart-step.d.ts +29 -0
- package/dist/types/components/smart-stepper/smart-stepper.d.ts +53 -0
- package/dist/types/components/snackbar/snackbar.d.ts +223 -0
- package/dist/types/components/snackbar/types.d.ts +104 -0
- package/dist/types/components/speed-dial/speed-dial.d.ts +171 -0
- package/dist/types/components/speed-dial/types.d.ts +11 -0
- package/dist/types/components/speedometer/speedometer.d.ts +125 -0
- package/dist/types/components/speedometer/types.d.ts +8 -0
- package/dist/types/components/splitter/splitter.d.ts +63 -0
- package/dist/types/components/splitter/types.d.ts +9 -0
- package/dist/types/components/stack/stack.d.ts +34 -0
- package/dist/types/components/stack/types.d.ts +3 -0
- package/dist/types/components/step/step.d.ts +16 -0
- package/dist/types/components/step/types.d.ts +1 -0
- package/dist/types/components/stepper/stepper.d.ts +218 -0
- package/dist/types/components/stepper/types.d.ts +39 -0
- package/dist/types/components/switch/switch.d.ts +162 -0
- package/dist/types/components/tabs/tabs.d.ts +182 -0
- package/dist/types/components/tabs/types.d.ts +17 -0
- package/dist/types/components/tag/tag.d.ts +172 -0
- package/dist/types/components/tag/types.d.ts +4 -0
- package/dist/types/components/tag-group/tag-group.d.ts +107 -0
- package/dist/types/components/tag-group/types.d.ts +2 -0
- package/dist/types/components/timeline/timeline.d.ts +73 -0
- package/dist/types/components/timeline/types.d.ts +28 -0
- package/dist/types/components/timeline/ui-timeline.stories.d.ts +9 -0
- package/dist/types/components/timeline-item/timeline-item.d.ts +15 -0
- package/dist/types/components/timer/timer.d.ts +123 -0
- package/dist/types/components/timer/types.d.ts +18 -0
- package/dist/types/components/timer/ui-timer.stories.d.ts +9 -0
- package/dist/types/components/toggle-group/toggle-group.d.ts +136 -0
- package/dist/types/components/toggle-group/types.d.ts +5 -0
- package/dist/types/components/toolbar/toolbar-types.d.ts +189 -0
- package/dist/types/components/toolbar/toolbar.d.ts +150 -0
- package/dist/types/components/tooltip/tooltip.d.ts +166 -0
- package/dist/types/components/tooltip/types.d.ts +3 -0
- package/dist/types/components/top-bar/top-bar.d.ts +76 -0
- package/dist/types/components/transfer-list/transfer-list.d.ts +137 -0
- package/dist/types/components/transfer-list/types.d.ts +13 -0
- package/dist/types/components/tree/tree.d.ts +180 -0
- package/dist/types/components/tree/types.d.ts +76 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +108 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-types.d.ts +17 -0
- package/dist/types/components/ui-navigation-bar/navigation-item.d.ts +26 -0
- package/dist/types/components/ui-navigation-bar/navigation-types.d.ts +19 -0
- package/dist/types/components/workspace-manager/types.d.ts +48 -0
- package/dist/types/components/workspace-manager/workspace-manager.d.ts +211 -0
- package/dist/types/components.d.ts +29634 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/service/drag-manager.d.ts +8 -0
- package/dist/types/service/event-bus.d.ts +9 -0
- package/dist/types/service/serialization.d.ts +5 -0
- package/dist/types/service/state-engine.d.ts +25 -0
- package/dist/types/service/theme-switcher.d.ts +46 -0
- package/dist/types/stencil-public-runtime.d.ts +1860 -0
- package/dist/types/types/animation.type.d.ts +96 -0
- package/dist/types/types/common.d.ts +52 -0
- package/dist/types/types/common.type.d.ts +608 -0
- package/dist/types/types/index.d.ts +37 -0
- package/dist/types/types/text.type.d.ts +32 -0
- package/dist/types/utils/aria-live.d.ts +20 -0
- package/dist/types/utils/component-size.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +58 -0
- package/dist/types/utils/focus-trap.d.ts +35 -0
- package/dist/types/utils/security.d.ts +5 -0
- package/dist/types/utils/test/setup-component-test-env.d.ts +14 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/dist/types/utils/validation.d.ts +43 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +77 -0
|
@@ -0,0 +1,882 @@
|
|
|
1
|
+
// Popover Component Demo — Full Feature Coverage
|
|
2
|
+
export function initPopoverDemo() {
|
|
3
|
+
const section = document.getElementById('popover');
|
|
4
|
+
if (!section) return;
|
|
5
|
+
|
|
6
|
+
section.innerHTML = `
|
|
7
|
+
<p>Display rich content in floating popover overlays with smart auto-positioning, semantic variants, and full keyboard support.</p>
|
|
8
|
+
|
|
9
|
+
<div id="popoverDemoControls" class="demo-controls" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap;">
|
|
10
|
+
<ui-button id="btnPlayground" label="🎮 Playground" style="--ui-button-bg: linear-gradient(135deg,#8b5cf6,#6366f1); border: none;" variant="outline"></ui-button>
|
|
11
|
+
<ui-button id="btnBasic" label="Basic" variant="outline"></ui-button>
|
|
12
|
+
<ui-button id="btnTriggers" label="Triggers" variant="outline"></ui-button>
|
|
13
|
+
<ui-button id="btnVariants" label="Variants" variant="outline"></ui-button>
|
|
14
|
+
<ui-button id="btnRich" label="🧩 Rich Content" variant="outline"></ui-button>
|
|
15
|
+
<ui-button id="btnIcon" label="Icon Toolbar" variant="outline"></ui-button>
|
|
16
|
+
<ui-button id="btnPremium" label="✨ Premium" style="--ui-button-bg: #ec4899; --ui-button-border: none;" variant="outline"></ui-button>
|
|
17
|
+
<ui-button id="btnEdge" label="Edge Detection" style="--ui-button-bg: #64748b; --ui-button-border: none;" variant="outline"></ui-button>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div id="popoverDemoContainer" style="margin-top: 20px;"></div>
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
const navMap = {
|
|
25
|
+
btnPlayground: showInteractivePopover,
|
|
26
|
+
btnBasic: showBasicPopover,
|
|
27
|
+
btnTriggers: showTriggersDemo,
|
|
28
|
+
btnVariants: showVariantsDemo,
|
|
29
|
+
btnRich: showAdvancedSlotted,
|
|
30
|
+
btnIcon: showIconPopover,
|
|
31
|
+
btnPremium: showPremiumPopover,
|
|
32
|
+
btnEdge: showEdgeCases,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
Object.entries(navMap).forEach(([id, fn]) => {
|
|
36
|
+
document.getElementById(id)?.addEventListener('click', fn);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
showInteractivePopover();
|
|
40
|
+
}, 100);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// ── Helper ───────────────────────────────────────────────────
|
|
44
|
+
function btn(text, bg = '#10b981', extra = '') {
|
|
45
|
+
let color = 'success';
|
|
46
|
+
if (bg.includes('#f59e0b')) color = 'warning';
|
|
47
|
+
else if (bg.includes('#8b5cf6')) color = 'secondary';
|
|
48
|
+
else if (bg.includes('#6366f1')) color = 'primary';
|
|
49
|
+
else if (bg.includes('#ec4899')) color = 'error';
|
|
50
|
+
else if (bg.includes('#2563eb')) color = 'info';
|
|
51
|
+
else if (bg.includes('#374151')) color = 'secondary';
|
|
52
|
+
|
|
53
|
+
return `<ui-button label="${text}" color="${color}" variant="outline" style="${extra}"></ui-button>`;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// ── Basic ────────────────────────────────────────────────────
|
|
57
|
+
function showBasicPopover() {
|
|
58
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
59
|
+
if (!container) return;
|
|
60
|
+
container.innerHTML = `
|
|
61
|
+
<div class="demo-block">
|
|
62
|
+
<h3>Basic Popovers</h3>
|
|
63
|
+
<p>Click triggers with arrows, headings, and rich HTML content.</p>
|
|
64
|
+
|
|
65
|
+
<h4 style="margin-top:32px;">Click trigger (default)</h4>
|
|
66
|
+
<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:16px;">
|
|
67
|
+
<ui-popover trigger="click" placement="top" heading="Information" content="<p>This is a <strong>popover</strong> with HTML content. Click outside to close.</p>">
|
|
68
|
+
${btn('Top')}
|
|
69
|
+
</ui-popover>
|
|
70
|
+
<ui-popover trigger="click" placement="bottom" heading="Notes" content="<p>Bottom placement — flips to top when near edge.</p>">
|
|
71
|
+
${btn('Bottom', '#10b981')}
|
|
72
|
+
</ui-popover>
|
|
73
|
+
<ui-popover trigger="click" placement="left" content="<p>Left placement</p>">
|
|
74
|
+
${btn('Left', '#f59e0b')}
|
|
75
|
+
</ui-popover>
|
|
76
|
+
<ui-popover trigger="click" placement="right" content="<p>Right placement</p>">
|
|
77
|
+
${btn('Right', '#8b5cf6')}
|
|
78
|
+
</ui-popover>
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
<h4 style="margin-top:40px;">No arrow / No heading</h4>
|
|
82
|
+
<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:16px;">
|
|
83
|
+
<ui-popover trigger="click" placement="bottom" show-arrow="false" content="<p>Arrow-free popover — great for menus and dropdowns.</p>">
|
|
84
|
+
${btn('No Arrow', '#6366f1')}
|
|
85
|
+
</ui-popover>
|
|
86
|
+
<ui-popover trigger="click" placement="bottom" content="<p>No heading, just body content.</p>">
|
|
87
|
+
${btn('No Heading', '#ec4899')}
|
|
88
|
+
</ui-popover>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<h4 style="margin-top:40px;">maxHeight — scrollable body</h4>
|
|
92
|
+
<p style="color:#6b7280;font-size:13px;">Set <code>max-height</code> to enable internal scrolling for long content.</p>
|
|
93
|
+
<ui-popover trigger="click" placement="bottom" heading="Long List" max-height="200px"
|
|
94
|
+
content="<ul style='margin:0;padding-left:18px;line-height:2;'><li>Item 1</li><li>Item 2</li><li>Item 3</li><li>Item 4</li><li>Item 5</li><li>Item 6</li><li>Item 7</li><li>Item 8</li><li>Item 9</li><li>Item 10</li></ul>">
|
|
95
|
+
${btn('Scrollable Content', '#0891b2')}
|
|
96
|
+
</ui-popover>
|
|
97
|
+
</div>
|
|
98
|
+
`;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// ── Triggers ─────────────────────────────────────────────────
|
|
102
|
+
function showTriggersDemo() {
|
|
103
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
104
|
+
if (!container) return;
|
|
105
|
+
container.innerHTML = `
|
|
106
|
+
<div class="demo-block">
|
|
107
|
+
<h3>Trigger Modes</h3>
|
|
108
|
+
|
|
109
|
+
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px;margin-top:24px;">
|
|
110
|
+
|
|
111
|
+
<div style="background:#f9fafb;padding:20px;border-radius:12px;border:1px solid #e5e7eb;">
|
|
112
|
+
<h4 style="margin:0 0 8px;">click</h4>
|
|
113
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">Toggle on click, close on outside click or Esc.</p>
|
|
114
|
+
<ui-popover trigger="click" placement="bottom" heading="Click Trigger" content="<p>Opened by clicking the button.</p>">
|
|
115
|
+
${btn('Click Me', '#10b981')}
|
|
116
|
+
</ui-popover>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div style="background:#f0fdf4;padding:20px;border-radius:12px;border:1px solid #bbf7d0;">
|
|
120
|
+
<h4 style="margin:0 0 8px;">hover</h4>
|
|
121
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">Opens on mouse enter, closes after <code>hide-delay</code> ms. Move cursor into popover body — it stays open (<code>interactive</code>).</p>
|
|
122
|
+
<ui-popover trigger="hover" placement="bottom" show-delay="200" hide-delay="400" heading="Hover Trigger" content="<p>Hover into this area — it stays open!</p>">
|
|
123
|
+
${btn('Hover Me', '#10b981')}
|
|
124
|
+
</ui-popover>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<div style="background:#eff6ff;padding:20px;border-radius:12px;border:1px solid #bfdbfe;">
|
|
128
|
+
<h4 style="margin:0 0 8px;">focus</h4>
|
|
129
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">Opens when trigger receives keyboard focus. Great for form field hints.</p>
|
|
130
|
+
<ui-popover trigger="focus" placement="bottom" content="<p>Tab to focus this input to see the hint.</p>">
|
|
131
|
+
<ui-input placeholder="Focus me..." style="padding:10px 14px;border:2px solid #93c5fd;border-radius:8px;outline:none;font-size:14px;width:100%;box-sizing:border-box;">
|
|
132
|
+
</ui-popover>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div style="background:#fdf4ff;padding:20px;border-radius:12px;border:1px solid #e9d5ff;">
|
|
136
|
+
<h4 style="margin:0 0 8px;">manual</h4>
|
|
137
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">No automatic trigger — control via <code>show()</code> / <code>hide()</code> methods.</p>
|
|
138
|
+
<div style="display:flex;gap:8px;margin-bottom:16px;">
|
|
139
|
+
<ui-button label="Show" variant="outline" color="primary" onclick="document.getElementById('manualPop').show()" style="flex:1;"></ui-button>
|
|
140
|
+
<ui-button label="Hide" variant="outline" color="secondary" onclick="document.getElementById('manualPop').hide()" style="flex:1;"></ui-button>
|
|
141
|
+
<ui-button label="Toggle" variant="outline" color="primary" onclick="document.getElementById('manualPop').toggle()" style="flex:1;"></ui-button>
|
|
142
|
+
</div>
|
|
143
|
+
<ui-popover id="manualPop" trigger="manual" placement="bottom" heading="Manual Mode" content="<p>I'm fully controlled programmatically.</p>">
|
|
144
|
+
<div style="padding:12px;background:#ede9fe;border-radius:8px;text-align:center;font-size:13px;color:#6d28d9;border:2px dashed #c4b5fd;">Target Element</div>
|
|
145
|
+
</ui-popover>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div style="background:#fff7ed;padding:20px;border-radius:12px;border:1px solid #fed7aa;">
|
|
149
|
+
<h4 style="margin:0 0 8px;">interactive: false</h4>
|
|
150
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">In hover mode with <code>interactive="false"</code> — popover closes immediately when cursor leaves trigger (pure tooltip).</p>
|
|
151
|
+
<ui-popover trigger="hover" interactive="false" placement="bottom" hide-delay="0" content="<p>I close instantly when you leave me.</p>">
|
|
152
|
+
${btn('Hover (non-interactive)', '#ea580c')}
|
|
153
|
+
</ui-popover>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
<div style="background:#f0fdf4;padding:20px;border-radius:12px;border:1px solid #bbf7d0;">
|
|
157
|
+
<h4 style="margin:0 0 8px;">closeOnScroll</h4>
|
|
158
|
+
<p style="font-size:13px;color:#6b7280;margin-bottom:16px;">Popover closes automatically when the page is scrolled — ideal for popovers inside scrollable lists.</p>
|
|
159
|
+
<ui-popover trigger="click" close-on-scroll="true" placement="bottom" content="<p>Scroll the page — I'll close automatically.</p>">
|
|
160
|
+
${btn('Open + Scroll closes', '#16a34a')}
|
|
161
|
+
</ui-popover>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
`;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// ── Variants ─────────────────────────────────────────────────
|
|
170
|
+
function showVariantsDemo() {
|
|
171
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
172
|
+
if (!container) return;
|
|
173
|
+
container.innerHTML = `
|
|
174
|
+
<div class="demo-block">
|
|
175
|
+
<h3>Semantic Variants</h3>
|
|
176
|
+
<p>6 colour variants to communicate intent without custom CSS.</p>
|
|
177
|
+
|
|
178
|
+
<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:28px;">
|
|
179
|
+
<ui-popover trigger="click" variant="light" placement="bottom" heading="Light (default)"
|
|
180
|
+
content="<p>Default clean white popover.</p>">
|
|
181
|
+
${btn('Light', '#374151')}
|
|
182
|
+
</ui-popover>
|
|
183
|
+
|
|
184
|
+
<ui-popover trigger="click" variant="dark" placement="bottom" heading="Dark Mode"
|
|
185
|
+
content="<p>Sleek dark variant for dark-theme UIs.</p>">
|
|
186
|
+
${btn('Dark', '#1f2937')}
|
|
187
|
+
</ui-popover>
|
|
188
|
+
|
|
189
|
+
<ui-popover trigger="click" variant="success" placement="bottom" heading="All systems go"
|
|
190
|
+
content="<p>Deployment completed successfully in 2.3s.</p>">
|
|
191
|
+
${btn('Success', '#16a34a')}
|
|
192
|
+
</ui-popover>
|
|
193
|
+
|
|
194
|
+
<ui-popover trigger="click" variant="warning" placement="bottom" heading="Heads up"
|
|
195
|
+
content="<p>Your API quota is at 85%. Consider upgrading.</p>">
|
|
196
|
+
${btn('Warning', '#d97706')}
|
|
197
|
+
</ui-popover>
|
|
198
|
+
|
|
199
|
+
<ui-popover trigger="click" variant="error" placement="bottom" heading="Action failed"
|
|
200
|
+
content="<p>Could not save changes. Please try again.</p>" show-close-button="true">
|
|
201
|
+
${btn('Error', '#dc2626')}
|
|
202
|
+
</ui-popover>
|
|
203
|
+
|
|
204
|
+
<ui-popover trigger="click" variant="info" placement="bottom" heading="Did you know?"
|
|
205
|
+
content="<p>You can use the <code>footer</code> slot for action buttons.</p>">
|
|
206
|
+
${btn('Info', '#2563eb')}
|
|
207
|
+
</ui-popover>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<h4 style="margin-top:40px;">With Footer Slot</h4>
|
|
211
|
+
<p style="color:#6b7280;font-size:13px;">Use <code><div slot="footer"></code> for sticky action buttons at the bottom.</p>
|
|
212
|
+
|
|
213
|
+
<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:16px;">
|
|
214
|
+
<ui-popover id="footerPop1" trigger="click" variant="error" placement="bottom" heading="Delete Project?" show-close-button="true">
|
|
215
|
+
${btn('Delete…', '#dc2626')}
|
|
216
|
+
<div slot="content"><p>This action is permanent and cannot be undone. All project files, history, and collaborators will be removed.</p></div>
|
|
217
|
+
<div slot="footer" style="display:flex;justify-content:flex-end;gap:8px;">
|
|
218
|
+
<ui-button label="Cancel" variant="outline" color="secondary" size="md"click="document.getElementById('footerPop1').hide()"></ui-button>
|
|
219
|
+
<ui-button label="Delete" variant="outline" color="error" size="md"click="document.getElementById('footerPop1').hide()"></ui-button>
|
|
220
|
+
</div>
|
|
221
|
+
</ui-popover>
|
|
222
|
+
|
|
223
|
+
<ui-popover id="footerPop2" trigger="click" variant="info" placement="bottom" heading="Keyboard Shortcuts">
|
|
224
|
+
${btn('Shortcuts', '#2563eb')}
|
|
225
|
+
<div slot="content" style="font-size:13px;">
|
|
226
|
+
<div style="display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #bfdbfe;"><span>Save</span><kbd style="background:#dbeafe;padding:2px 6px;border-radius:4px;">Ctrl+S</kbd></div>
|
|
227
|
+
<div style="display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #bfdbfe;"><span>Undo</span><kbd style="background:#dbeafe;padding:2px 6px;border-radius:4px;">Ctrl+Z</kbd></div>
|
|
228
|
+
<div style="display:flex;justify-content:space-between;padding:6px 0;"><span>Search</span><kbd style="background:#dbeafe;padding:2px 6px;border-radius:4px;">Ctrl+K</kbd></div>
|
|
229
|
+
</div>
|
|
230
|
+
<div slot="footer" style="text-align:center;font-size:12px;color:#1e40af;">
|
|
231
|
+
<a href="#" style="color:#2563eb;">View all shortcuts →</a>
|
|
232
|
+
</div>
|
|
233
|
+
</ui-popover>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
`;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// ── Rich Slotted Content ─────────────────────────────────────
|
|
240
|
+
function showAdvancedSlotted() {
|
|
241
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
242
|
+
if (!container) return;
|
|
243
|
+
|
|
244
|
+
container.innerHTML = `
|
|
245
|
+
<div class="demo-block">
|
|
246
|
+
<h3>Rich Slotted Content</h3>
|
|
247
|
+
<p>Pass full DOM trees through the <code>content</code> slot. Fully interactive.</p>
|
|
248
|
+
|
|
249
|
+
<div style="margin-top:30px;display:grid;grid-template-columns:1fr 1fr;gap:40px;">
|
|
250
|
+
<div>
|
|
251
|
+
<h4>User Profile Card</h4>
|
|
252
|
+
<ui-popover trigger="click" placement="bottom-start" width="300px">
|
|
253
|
+
${btn('View Profile', '#8b5cf6')}
|
|
254
|
+
<div slot="content" style="padding:4px;">
|
|
255
|
+
<div style="display:flex;align-items:center;gap:12px;margin-bottom:12px;">
|
|
256
|
+
<div style="width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:white;font-weight:700;font-size:18px;">JD</div>
|
|
257
|
+
<div>
|
|
258
|
+
<div style="font-weight:700;color:#1f2937;">Jane Doe</div>
|
|
259
|
+
<div style="font-size:12px;color:#6b7280;">Senior Engineer · San Francisco</div>
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
<p style="font-size:13px;color:#4b5563;margin:0 0 12px;">Building resilient distributed systems at scale.</p>
|
|
263
|
+
<div style="display:flex;gap:8px;">
|
|
264
|
+
<ui-button label="Message" variant="outline" color="primary" size="md"yle="flex:1;"></ui-button>
|
|
265
|
+
<ui-button label="View" variant="outline" color="secondary" size="md"yle="flex:1;"></ui-button>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</ui-popover>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
<div>
|
|
272
|
+
<h4>Notifications Panel</h4>
|
|
273
|
+
<ui-popover trigger="click" placement="bottom-end" width="320px" heading="Notifications" show-close-button="true" max-height="240px">
|
|
274
|
+
<ui-button variant="outline" color="secondary" shape="circle" icon="bell" icon-library="lucide" style="position:relative;">
|
|
275
|
+
<span style="position:absolute;top:-4px;right:-4px;width:18px;height:18px;background:#ef4444;border-radius:50%;color:white;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;z-index:10;">3</span>
|
|
276
|
+
</ui-button>
|
|
277
|
+
<div slot="content" style="padding:0;">
|
|
278
|
+
${['Sarah sent you a message', 'Deployment successful', 'Storage at 90%']
|
|
279
|
+
.map(
|
|
280
|
+
(msg, i) => `
|
|
281
|
+
<div style="display:flex;align-items:center;gap:12px;padding:12px 0;${i < 2 ? 'border-bottom:1px solid #f3f4f6;' : ''}">
|
|
282
|
+
<div style="width:36px;height:36px;border-radius:50%;background:${['#dbeafe', '#dcfce7', '#fef3c7'][i]};display:flex;align-items:center;justify-content:center;flex-shrink:0;">
|
|
283
|
+
<ui-icon name="${['message-circle', 'check-circle', 'alert-triangle'][i]}" library="lucide" size="16px" style="color:${['#10b981', '#16a34a', '#d97706'][i]};"></ui-icon>
|
|
284
|
+
</div>
|
|
285
|
+
<div style="flex:1;min-width:0;">
|
|
286
|
+
<div style="font-size:13px;font-weight:600;color:#1f2937;">${msg}</div>
|
|
287
|
+
<div style="font-size:11px;color:#9ca3af;">${['2m ago', '15m ago', '1h ago'][i]}</div>
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
`,
|
|
291
|
+
)
|
|
292
|
+
.join('')}
|
|
293
|
+
</div>
|
|
294
|
+
<div slot="footer" style="text-align:center;">
|
|
295
|
+
<a href="#" style="font-size:13px;color:#10b981;text-decoration:none;font-weight:600;">View all notifications →</a>
|
|
296
|
+
</div>
|
|
297
|
+
</ui-popover>
|
|
298
|
+
</div>
|
|
299
|
+
</div>
|
|
300
|
+
|
|
301
|
+
<div style="margin-top:40px;">
|
|
302
|
+
<h4>Colour Picker</h4>
|
|
303
|
+
<ui-popover trigger="click" placement="bottom" width="240px" heading="Pick a colour">
|
|
304
|
+
${btn('🎨 Choose Colour', '#ec4899')}
|
|
305
|
+
<div slot="content">
|
|
306
|
+
<div style="display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:4px;">
|
|
307
|
+
${['#ef4444', '#f97316', '#eab308', '#22c55e', '#10b981', '#8b5cf6', '#ec4899', '#0ea5e9', '#14b8a6', '#6b7280', '#1f2937', '#ffffff']
|
|
308
|
+
.map(
|
|
309
|
+
c =>
|
|
310
|
+
`<ui-button onclick="this.closest('ui-popover').hide()" style="width:28px;height:28px;background:${c};border:2px solid #e5e7eb;border-radius:6px;cursor:pointer;transition:transform 0.15s;" onmouseover="this.style.transform='scale(1.2)'" onmouseout="this.style.transform=''"></ui-button>`,
|
|
311
|
+
)
|
|
312
|
+
.join('')}
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
</ui-popover>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
318
|
+
`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// ── Icon Toolbar ─────────────────────────────────────────────
|
|
322
|
+
function showIconPopover() {
|
|
323
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
324
|
+
if (!container) return;
|
|
325
|
+
|
|
326
|
+
container.innerHTML = `
|
|
327
|
+
<div class="demo-block">
|
|
328
|
+
<h3>Icon Toolbar with Popovers</h3>
|
|
329
|
+
|
|
330
|
+
<h4 style="margin-top:24px;">Action Icon Tooltips</h4>
|
|
331
|
+
<div style="display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;">
|
|
332
|
+
${[
|
|
333
|
+
{ icon: 'plus', library: 'lucide', label: 'Add Item', color: '#10b981' },
|
|
334
|
+
{ icon: 'pencil', library: 'lucide', label: 'Edit', color: '#10b981' },
|
|
335
|
+
{ icon: 'trash-2', library: 'lucide', label: 'Delete', color: '#ef4444' },
|
|
336
|
+
{ icon: 'settings', library: 'lucide', label: 'Settings', color: '#6b7280' },
|
|
337
|
+
{ icon: 'share-2', library: 'lucide', label: 'Share', color: '#8b5cf6' },
|
|
338
|
+
{ icon: 'download', library: 'lucide', label: 'Download', color: '#f59e0b' },
|
|
339
|
+
]
|
|
340
|
+
.map(
|
|
341
|
+
({ icon, library, label, color }) => `
|
|
342
|
+
<ui-popover trigger="hover" placement="top" interactive="false" hide-delay="0"
|
|
343
|
+
content="<p style='white-space:nowrap;'><strong>${label}</strong></p>">
|
|
344
|
+
<ui-button icon="${icon}" icon-library="${library}" icon-only="true" style="width:40px;height:40px;background:${color};color:white;border:none;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;">
|
|
345
|
+
|
|
346
|
+
</ui-button>
|
|
347
|
+
</ui-popover>
|
|
348
|
+
`,
|
|
349
|
+
)
|
|
350
|
+
.join('')}
|
|
351
|
+
</div>
|
|
352
|
+
|
|
353
|
+
<h4 style="margin-top:40px;">Rich Menu via Click</h4>
|
|
354
|
+
<div style="display:flex;gap:16px;flex-wrap:wrap;margin-top:16px;">
|
|
355
|
+
<ui-popover trigger="click" placement="bottom-end" width="200px" show-arrow="false" popover-role="menu">
|
|
356
|
+
<ui-avatar content="JD" bg-color="#8b5cf6" size="44px" style="cursor:pointer;"></ui-avatar>
|
|
357
|
+
<div slot="content" style="padding:4px 0;">
|
|
358
|
+
${[
|
|
359
|
+
['user', 'lucide', 'Profile'],
|
|
360
|
+
['settings', 'lucide', 'Settings'],
|
|
361
|
+
['credit-card', 'lucide', 'Billing'],
|
|
362
|
+
['circle-help', 'lucide', 'Help'],
|
|
363
|
+
]
|
|
364
|
+
.map(
|
|
365
|
+
([ic, lib, lbl]) =>
|
|
366
|
+
`<ui-button href="#" variant="ghost" icon="${ic}" icon-library="${lib}" style="width:100%; justify-content:flex-start; padding:10px 14px; margin:2px 4px; font-size:14px; color:#374151;">${lbl}</ui-button>`,
|
|
367
|
+
)
|
|
368
|
+
.join('')}
|
|
369
|
+
<div style="height:1px;background:#f3f4f6;margin:4px 0;"></div>
|
|
370
|
+
<a href="#" style="display:flex;align-items:center;gap:10px;padding:10px 14px;text-decoration:none;color:#ef4444;font-size:14px;border-radius:6px;margin:2px 4px;" onmouseover="this.style.background='#fef2f2'" onmouseout="this.style.background=''">
|
|
371
|
+
<ui-icon name="log-out" library="lucide" size="15px"></ui-icon>Sign out
|
|
372
|
+
</a>
|
|
373
|
+
</div>
|
|
374
|
+
</ui-popover>
|
|
375
|
+
|
|
376
|
+
<ui-popover trigger="click" placement="bottom" width="240px" show-arrow="false" animation="slide">
|
|
377
|
+
<ui-button variant="outline" color="secondary" shape="circle" icon="bell" icon-library="lucide" style="position:relative;">
|
|
378
|
+
<span style="position:absolute;top:-2px;right:-2px;width:14px;height:14px;background:#ef4444;border-radius:50%;border:2px solid white;z-index:10;"></span>
|
|
379
|
+
</ui-button>
|
|
380
|
+
<div slot="content" style="padding:4px 0;">
|
|
381
|
+
<div style="padding:8px 12px;font-size:12px;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em;">Notifications</div>
|
|
382
|
+
<div style="padding:10px 12px;font-size:13px;border-radius:6px;background:#eff6ff;margin:4px;">
|
|
383
|
+
<div style="font-weight:600;color:#1e40af;">Build passed ✓</div>
|
|
384
|
+
<div style="color:#10b981;font-size:12px;">pipeline #247 · 1m ago</div>
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</ui-popover>
|
|
388
|
+
</div>
|
|
389
|
+
|
|
390
|
+
<h4 style="margin-top:40px;">Compact Text Toolbar</h4>
|
|
391
|
+
<div style="background:white;border:1px solid #e5e7eb;border-radius:8px;padding:6px;display:inline-flex;gap:2px;box-shadow:0 2px 8px rgba(0,0,0,0.07);margin-top:12px;">
|
|
392
|
+
${[
|
|
393
|
+
{ icon: 'bold', library: 'lucide', label: 'Bold (Ctrl+B)' },
|
|
394
|
+
{ icon: 'italic', library: 'lucide', label: 'Italic (Ctrl+I)' },
|
|
395
|
+
{ icon: 'underline', library: 'lucide', label: 'Underline (Ctrl+U)' },
|
|
396
|
+
null,
|
|
397
|
+
{ icon: 'align-left', library: 'lucide', label: 'Align Left' },
|
|
398
|
+
{ icon: 'align-center', library: 'lucide', label: 'Align Center' },
|
|
399
|
+
{ icon: 'align-right', library: 'lucide', label: 'Align Right' },
|
|
400
|
+
null,
|
|
401
|
+
{ icon: 'link', library: 'lucide', label: 'Insert Link' },
|
|
402
|
+
{ icon: 'image', library: 'lucide', label: 'Insert Image' },
|
|
403
|
+
]
|
|
404
|
+
.map(item =>
|
|
405
|
+
item === null
|
|
406
|
+
? `<div style="width:1px;background:#e5e7eb;margin:4px 2px;"></div>`
|
|
407
|
+
: `<ui-popover trigger="hover" placement="bottom" interactive="false" hide-delay="0" content="<p style='white-space:nowrap;font-size:12px;'>${item.label}</p>">
|
|
408
|
+
<ui-button-toggle variant="ghost" icon="${item.icon}" icon-library="${item.library}" icon-only="true" size="md"yle="width:30px;height:30px;--button-min-width:30px;color:#374151;"></ui-button>
|
|
409
|
+
</ui-popover>`,
|
|
410
|
+
)
|
|
411
|
+
.join('')}
|
|
412
|
+
</div>
|
|
413
|
+
</div>
|
|
414
|
+
`;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// ── Premium ──────────────────────────────────────────────────
|
|
418
|
+
function showPremiumPopover() {
|
|
419
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
420
|
+
if (!container) return;
|
|
421
|
+
container.innerHTML = `
|
|
422
|
+
<div class="demo-block">
|
|
423
|
+
<h3>Premium Features</h3>
|
|
424
|
+
|
|
425
|
+
<h4 style="margin-top:24px;">Animations</h4>
|
|
426
|
+
<div style="display:flex;gap:20px;flex-wrap:wrap;margin-top:16px;">
|
|
427
|
+
<ui-popover trigger="hover" placement="top" animation="scale" content="<p>Scale animation (default).</p>">${btn('Scale', '#8b5cf6')}</ui-popover>
|
|
428
|
+
<ui-popover trigger="hover" placement="top" animation="slide" content="<p>Slides in from below.</p>">${btn('Slide', '#6366f1')}</ui-popover>
|
|
429
|
+
<ui-popover trigger="hover" placement="top" animation="fade" content="<p>Simple opacity fade.</p>">${btn('Fade', '#ec4899')}</ui-popover>
|
|
430
|
+
<ui-popover trigger="hover" placement="top" animation="none" content="<p>No animation — instant show.</p>">${btn('None', '#374151')}</ui-popover>
|
|
431
|
+
</div>
|
|
432
|
+
|
|
433
|
+
<h4 style="margin-top:40px;">Backdrop (modal behaviour)</h4>
|
|
434
|
+
<p style="color:#6b7280;font-size:13px;">Dims the background and traps focus inside the popover.</p>
|
|
435
|
+
<ui-popover id="backdropPop" trigger="click" placement="bottom" backdrop="true" width="320px"
|
|
436
|
+
heading="Important Action" show-close-button="true" variant="error"
|
|
437
|
+
content="<p>This popover acts like a lightweight modal. Click the backdrop or press Esc to close.</p>">
|
|
438
|
+
${btn('Show with Backdrop', '#ef4444')}
|
|
439
|
+
<div slot="footer" style="display:flex;justify-content:flex-end;gap:8px;">
|
|
440
|
+
<ui-button label="Cancel" variant="outline" color="secondary" size="md"click="document.getElementById('backdropPop').hide()"></ui-button>
|
|
441
|
+
<ui-button label="Confirm" variant="outline" color="error" size="md"click="document.getElementById('backdropPop').hide()"></ui-button>
|
|
442
|
+
</div>
|
|
443
|
+
</ui-popover>
|
|
444
|
+
|
|
445
|
+
<h4 style="margin-top:40px;">Cancellable Events</h4>
|
|
446
|
+
<p style="color:#6b7280;font-size:13px;">Listen to <code>uiBeforeOpen</code> / <code>uiBeforeClose</code> and call <code>event.preventDefault()</code> to cancel.</p>
|
|
447
|
+
<div style="display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;">
|
|
448
|
+
<ui-popover id="cancelShowPop" trigger="click" placement="bottom" heading="Before-Show Gated" content="<p>You confirmed you want to open me!</p>">
|
|
449
|
+
${btn('Gated Open', '#059669')}
|
|
450
|
+
</ui-popover>
|
|
451
|
+
<div id="cancelEventLog" style="padding:8px 12px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;font-size:13px;color:#374151;min-width:220px;display:flex;align-items:center;">Waiting for events…</div>
|
|
452
|
+
</div>
|
|
453
|
+
|
|
454
|
+
<h4 style="margin-top:40px;">Disabled</h4>
|
|
455
|
+
<ui-popover trigger="click" placement="bottom" disabled="true" content="<p>You won't see me.</p>">
|
|
456
|
+
<ui-button label="Disabled Trigger" disabled="true" variant="outline" color="secondary"></ui-button>
|
|
457
|
+
</ui-popover>
|
|
458
|
+
<h4 style="margin-top:40px;">Skeleton Loading</h4>
|
|
459
|
+
<ui-popover trigger="click" placement="bottom" skeleton="true" heading="Loading…" width="260px" content="">
|
|
460
|
+
${btn('Show Skeleton', '#6366f1')}
|
|
461
|
+
</ui-popover>
|
|
462
|
+
</div>
|
|
463
|
+
`;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// ── Edge Cases ───────────────────────────────────────────────
|
|
467
|
+
function showEdgeCases() {
|
|
468
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
469
|
+
if (!container) return;
|
|
470
|
+
|
|
471
|
+
// Remove any previously injected fixed buttons
|
|
472
|
+
document.querySelectorAll('.edge-demo-fixed').forEach(function (el) {
|
|
473
|
+
el.remove();
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
container.innerHTML = `
|
|
477
|
+
<div class="demo-block">
|
|
478
|
+
<h3>Edge Detection & Auto-Positioning</h3>
|
|
479
|
+
<p>
|
|
480
|
+
Four buttons are pinned to the <strong>actual viewport edges</strong> using
|
|
481
|
+
<code>position:fixed</code>. Each prefers a placement that would clip off-screen
|
|
482
|
+
— the engine automatically flips and clamps so the panel stays visible.
|
|
483
|
+
</p>
|
|
484
|
+
|
|
485
|
+
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-top:24px;">
|
|
486
|
+
<div style="background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:14px;">
|
|
487
|
+
<div style="font-size:11px;font-weight:700;color:#1e40af;letter-spacing:.05em;margin-bottom:6px;">🔵 TOP EDGE</div>
|
|
488
|
+
<p style="font-size:13px;color:#1e3a8a;margin:0;line-height:1.6;">
|
|
489
|
+
Prefers <code>top</code>. Flips to <strong>bottom</strong> because there's no room above.
|
|
490
|
+
</p>
|
|
491
|
+
</div>
|
|
492
|
+
<div style="background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:14px;">
|
|
493
|
+
<div style="font-size:11px;font-weight:700;color:#14532d;letter-spacing:.05em;margin-bottom:6px;">🟢 BOTTOM EDGE</div>
|
|
494
|
+
<p style="font-size:13px;color:#14532d;margin:0;line-height:1.6;">
|
|
495
|
+
Prefers <code>bottom</code>. Flips to <strong>top</strong> because there's no room below.
|
|
496
|
+
</p>
|
|
497
|
+
</div>
|
|
498
|
+
<div style="background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:14px;">
|
|
499
|
+
<div style="font-size:11px;font-weight:700;color:#78350f;letter-spacing:.05em;margin-bottom:6px;">🟡 LEFT EDGE</div>
|
|
500
|
+
<p style="font-size:13px;color:#78350f;margin:0;line-height:1.6;">
|
|
501
|
+
Prefers <code>left</code>. Flips to <strong>right</strong> because there's no room on the left.
|
|
502
|
+
</p>
|
|
503
|
+
</div>
|
|
504
|
+
<div style="background:#fdf4ff;border:1px solid #e9d5ff;border-radius:10px;padding:14px;">
|
|
505
|
+
<div style="font-size:11px;font-weight:700;color:#581c87;letter-spacing:.05em;margin-bottom:6px;">🟣 RIGHT EDGE</div>
|
|
506
|
+
<p style="font-size:13px;color:#581c87;margin:0;line-height:1.6;">
|
|
507
|
+
Prefers <code>right</code>. Flips to <strong>left</strong> because there's no room on the right.
|
|
508
|
+
</p>
|
|
509
|
+
</div>
|
|
510
|
+
</div>
|
|
511
|
+
|
|
512
|
+
<div style="margin-top:20px;padding:14px 18px;background:#fefce8;border:1px solid #fde68a;border-radius:10px;display:flex;align-items:center;gap:12px;">
|
|
513
|
+
<span style="font-size:22px;">👆</span>
|
|
514
|
+
<span style="font-size:13px;color:#78350f;">
|
|
515
|
+
<strong>Four coloured buttons have been pinned to the edges of your browser window.</strong>
|
|
516
|
+
Scroll up/down to reach the top and bottom buttons, then click each one to see the flip in action.
|
|
517
|
+
</span>
|
|
518
|
+
</div>
|
|
519
|
+
|
|
520
|
+
<h4 style="margin-top:32px;">Horizontal Clamping (always visible)</h4>
|
|
521
|
+
<p style="color:#6b7280;font-size:13px;margin-bottom:16px;">
|
|
522
|
+
<code>bottom-end</code> from the far-right still stays within the viewport.
|
|
523
|
+
<code>bottom-start</code> from the far-left stays clamped inside. Arrow tracks the trigger even after clamping.
|
|
524
|
+
</p>
|
|
525
|
+
<div style="display:flex;justify-content:space-between;align-items:center;background:#f1f5f9;border-radius:10px;padding:24px 20px;">
|
|
526
|
+
<ui-popover trigger="click" placement="bottom-start" heading="Far Left (bottom-start)"
|
|
527
|
+
content="<p>Panel is clamped away from the left edge. Arrow still points to the trigger.</p>">
|
|
528
|
+
<ui-button label="\u25C0 Far Left" color="success" variant="outline" onclick=""></ui-button>
|
|
529
|
+
</ui-popover>
|
|
530
|
+
<ui-popover trigger="click" placement="bottom" heading="Centre (bottom)"
|
|
531
|
+
content="<p>Plenty of space — no flip or clamping needed.</p>">
|
|
532
|
+
<ui-button label="Centre" color="secondary" variant="outline" onclick=""></ui-button>
|
|
533
|
+
</ui-popover>
|
|
534
|
+
<ui-popover trigger="click" placement="bottom-end" heading="Far Right (bottom-end)"
|
|
535
|
+
content="<p>Panel is clamped away from the right edge. Arrow still points to the trigger.</p>">
|
|
536
|
+
<ui-button label="Far Right \u25B6" color="secondary" variant="outline" onclick=""></ui-button>
|
|
537
|
+
</ui-popover>
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
<div style="margin-top:24px;background:#eff6ff;border-radius:10px;padding:20px;border:1px solid #bfdbfe;">
|
|
541
|
+
<h4 style="margin:0 0 10px;color:#1e40af;">💡 Positioning engine features</h4>
|
|
542
|
+
<ul style="margin:0;color:#1e40af;line-height:2;font-size:13px;">
|
|
543
|
+
<li><strong>Top ↔ Bottom flip</strong> — triggered when vertical overflow is detected</li>
|
|
544
|
+
<li><strong>Left ↔ Right flip</strong> — triggered when horizontal overflow is detected</li>
|
|
545
|
+
<li><strong>Horizontal clamping</strong> — guarantees no pixel bleeds off-screen left or right</li>
|
|
546
|
+
<li><strong>Vertical clamping</strong> — applied in both directions for tall content</li>
|
|
547
|
+
<li><strong>First-render safe</strong> — falls back to prop width when layout isn't ready yet</li>
|
|
548
|
+
<li><strong>Arrow compensation</strong> — arrow re-tracks the trigger after clamping</li>
|
|
549
|
+
</ul>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
`;
|
|
553
|
+
|
|
554
|
+
// ── Inject real fixed-position triggers at each viewport edge ──
|
|
555
|
+
var edgeDefs = [
|
|
556
|
+
{
|
|
557
|
+
id: 'edgeFixedTop',
|
|
558
|
+
cssText: 'position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:50000;',
|
|
559
|
+
placement: 'top',
|
|
560
|
+
bg: '#10b981',
|
|
561
|
+
label: '▼ TOP EDGE',
|
|
562
|
+
heading: 'Top Edge — flipped to bottom',
|
|
563
|
+
body: "I preferred to open <em>above</em> but there's no room. I flipped to <strong>below</strong>.",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
id: 'edgeFixedBottom',
|
|
567
|
+
cssText: 'position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:50000;',
|
|
568
|
+
placement: 'bottom',
|
|
569
|
+
bg: '#10b981',
|
|
570
|
+
label: '▲ BOTTOM EDGE',
|
|
571
|
+
heading: 'Bottom Edge — flipped to top',
|
|
572
|
+
body: "I preferred to open <em>below</em> but there's no room. I flipped to <strong>above</strong>.",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
id: 'edgeFixedLeft',
|
|
576
|
+
cssText: 'position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:50000;',
|
|
577
|
+
placement: 'left',
|
|
578
|
+
bg: '#d97706',
|
|
579
|
+
label: '▶ LEFT',
|
|
580
|
+
heading: 'Left Edge — flipped to right',
|
|
581
|
+
body: "I preferred to open to the <em>left</em> but there's no room. I flipped to <strong>right</strong>.",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
id: 'edgeFixedRight',
|
|
585
|
+
cssText: 'position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:50000;',
|
|
586
|
+
placement: 'right',
|
|
587
|
+
bg: '#8b5cf6',
|
|
588
|
+
label: '◀ RIGHT',
|
|
589
|
+
heading: 'Right Edge — flipped to left',
|
|
590
|
+
body: "I preferred to open to the <em>right</em> but there's no room. I flipped to <strong>left</strong>.",
|
|
591
|
+
},
|
|
592
|
+
];
|
|
593
|
+
|
|
594
|
+
edgeDefs.forEach(function (def) {
|
|
595
|
+
var wrap = document.createElement('div');
|
|
596
|
+
wrap.className = 'edge-demo-fixed';
|
|
597
|
+
wrap.style.cssText = def.cssText;
|
|
598
|
+
wrap.innerHTML =
|
|
599
|
+
'<ui-popover id="' +
|
|
600
|
+
def.id +
|
|
601
|
+
'" trigger="click" placement="' +
|
|
602
|
+
def.placement +
|
|
603
|
+
'" heading="' +
|
|
604
|
+
def.heading +
|
|
605
|
+
'" width="280px">' +
|
|
606
|
+
'<ui-button slot="trigger" label="' +
|
|
607
|
+
def.label +
|
|
608
|
+
'" color="secondary" variant="outline" style="box-shadow:0 2px 10px rgba(0,0,0,0.25); background:' +
|
|
609
|
+
def.bg +
|
|
610
|
+
'"></ui-button>' +
|
|
611
|
+
'<div slot="content"><p style="font-size:13px;margin:0;line-height:1.7;">' +
|
|
612
|
+
def.body +
|
|
613
|
+
'</p>' +
|
|
614
|
+
'<p style="font-size:11px;color:#6b7280;margin:8px 0 0;">Preferred: <code>' +
|
|
615
|
+
def.placement +
|
|
616
|
+
'</code></p>' +
|
|
617
|
+
'</div>' +
|
|
618
|
+
'</ui-popover>';
|
|
619
|
+
document.body.appendChild(wrap);
|
|
620
|
+
});
|
|
621
|
+
|
|
622
|
+
// Clean up when user navigates to another section
|
|
623
|
+
function cleanup() {
|
|
624
|
+
document.querySelectorAll('.edge-demo-fixed').forEach(function (el) {
|
|
625
|
+
el.remove();
|
|
626
|
+
});
|
|
627
|
+
}
|
|
628
|
+
document.querySelectorAll('#popover .demo-controls button').forEach(function (b) {
|
|
629
|
+
b.addEventListener('click', cleanup, { once: true });
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// ── Interactive Playground ───────────────────────────────────
|
|
634
|
+
function showInteractivePopover() {
|
|
635
|
+
const container = document.getElementById('popoverDemoContainer');
|
|
636
|
+
if (!container) return;
|
|
637
|
+
|
|
638
|
+
container.innerHTML = `
|
|
639
|
+
<div style="background:white;border-radius:14px;padding:30px;box-shadow:0 4px 24px rgba(0,0,0,0.08);border:1px solid #f1f5f9;">
|
|
640
|
+
<h3 style="margin-top:0;display:flex;align-items:center;gap:10px;">
|
|
641
|
+
<span style="font-size:26px;">🎮</span> Interactive Playground
|
|
642
|
+
</h3>
|
|
643
|
+
<p style="color:#64748b;margin-bottom:28px;">Configure every property and see changes in real-time.</p>
|
|
644
|
+
|
|
645
|
+
<div style="display:grid;grid-template-columns:360px 1fr;gap:28px;">
|
|
646
|
+
|
|
647
|
+
<!-- Config panel -->
|
|
648
|
+
<div style="background:#f8fafc;padding:24px;border-radius:10px;border:1px solid #e5e7eb;height:fit-content;display:flex;flex-direction:column;gap:18px;">
|
|
649
|
+
<h4 style="margin:0 0 4px;color:#1e293b;font-size:13px;text-transform:uppercase;letter-spacing:.06em;">⚙️ Properties</h4>
|
|
650
|
+
|
|
651
|
+
<ui-dropdown id="ppTrigger" label="Trigger" value="click" options='[
|
|
652
|
+
{"label": "Click", "value": "click"},
|
|
653
|
+
{"label": "Hover", "value": "hover"},
|
|
654
|
+
{"label": "Focus", "value": "focus"},
|
|
655
|
+
{"label": "Manual", "value": "manual"}
|
|
656
|
+
]'></ui-dropdown>
|
|
657
|
+
|
|
658
|
+
<ui-dropdown id="ppPlacement" label="Placement" value="top" options='[
|
|
659
|
+
{"label": "Top", "value": "top"}, {"label": "Bottom", "value": "bottom"},
|
|
660
|
+
{"label": "Left", "value": "left"}, {"label": "Right", "value": "right"},
|
|
661
|
+
{"label": "Top Start", "value": "top-start"}, {"label": "Top End", "value": "top-end"},
|
|
662
|
+
{"label": "Bottom Start", "value": "bottom-start"}, {"label": "Bottom End", "value": "bottom-end"},
|
|
663
|
+
{"label": "Left Start", "value": "left-start"}, {"label": "Left End", "value": "left-end"},
|
|
664
|
+
{"label": "Right Start", "value": "right-start"}, {"label": "Right End", "value": "right-end"}
|
|
665
|
+
]'></ui-dropdown>
|
|
666
|
+
|
|
667
|
+
<ui-dropdown id="ppVariant" label="Variant" value="light" options='[
|
|
668
|
+
{"label": "Light", "value": "light"}, {"label": "Dark", "value": "dark"},
|
|
669
|
+
{"label": "Success", "value": "success"}, {"label": "Warning", "value": "warning"},
|
|
670
|
+
{"label": "Error", "value": "error"}, {"label": "Info", "value": "info"}
|
|
671
|
+
]'></ui-dropdown>
|
|
672
|
+
|
|
673
|
+
<ui-dropdown id="ppAnimation" label="Animation" value="scale" options='[
|
|
674
|
+
{"label": "Scale", "value": "scale"}, {"label": "Slide", "value": "slide"},
|
|
675
|
+
{"label": "Fade", "value": "fade"}, {"label": "None", "value": "none"}
|
|
676
|
+
]'></ui-dropdown>
|
|
677
|
+
|
|
678
|
+
<ui-dropdown id="ppRole" label="Role" value="dialog" options='[
|
|
679
|
+
{"label": "Dialog", "value": "dialog"}, {"label": "Tooltip", "value": "tooltip"},
|
|
680
|
+
{"label": "Menu", "value": "menu"}, {"label": "Listbox", "value": "listbox"}
|
|
681
|
+
]'></ui-dropdown>
|
|
682
|
+
|
|
683
|
+
<ui-input id="ppWidth" label="Width" value="280px"></ui-input>
|
|
684
|
+
<ui-input id="ppHeading" label="Heading" value="Information"></ui-input>
|
|
685
|
+
<ui-input id="ppOffset" label="Offset (px)" type="number" value="12"></ui-input>
|
|
686
|
+
<ui-input id="ppShowDelay" label="Show Delay (ms)" type="number" value="0"></ui-input>
|
|
687
|
+
<ui-input id="ppHideDelay" label="Hide Delay (ms)" type="number" value="200"></ui-input>
|
|
688
|
+
<ui-input id="ppMaxHeight" label="Max Height" value="none"></ui-input>
|
|
689
|
+
|
|
690
|
+
<ui-input id="ppContent" label="Content (HTML)" multiline="true" rows="4" value="<p>Edit me to change the <strong>content</strong>!</p>"></ui-input>
|
|
691
|
+
|
|
692
|
+
<div style="background:white;padding:12px;border-radius:8px;border:1px solid #e5e7eb;display:grid;grid-template-columns:1fr 1fr;gap:8px;">
|
|
693
|
+
<ui-checkbox id="ppShowArrow" label="Show Arrow" checked></ui-checkbox>
|
|
694
|
+
<ui-checkbox id="ppShowClose" label="Show Close Button"></ui-checkbox>
|
|
695
|
+
<ui-checkbox id="ppBackdrop" label="Backdrop"></ui-checkbox>
|
|
696
|
+
<ui-checkbox id="ppInteractive" label="Interactive (hover)" checked></ui-checkbox>
|
|
697
|
+
<ui-checkbox id="ppCloseOnScroll" label="Close on Scroll"></ui-checkbox>
|
|
698
|
+
<ui-checkbox id="ppCloseOnEsc" label="Close on Esc" checked></ui-checkbox>
|
|
699
|
+
<ui-checkbox id="ppDisabled" label="Disabled"></ui-checkbox>
|
|
700
|
+
<ui-checkbox id="ppLoading" label="Loading State"></ui-checkbox>
|
|
701
|
+
<ui-checkbox id="ppSkeleton" label="Skeleton State"></ui-checkbox>
|
|
702
|
+
</div>
|
|
703
|
+
|
|
704
|
+
<!-- Manual trigger controls -->
|
|
705
|
+
<div id="manualControls" style="display:none;gap:8px;">
|
|
706
|
+
<ui-button label="Show" variant="filled" color="primary" onclick="document.getElementById('pgPopover')?.show()" style="flex:1;"></ui-button>
|
|
707
|
+
<ui-button label="Hide" variant="filled" color="secondary" onclick="document.getElementById('pgPopover')?.hide()" style="flex:1;"></ui-button>
|
|
708
|
+
<ui-button label="Toggle" variant="outline" color="primary" onclick="document.getElementById('pgPopover')?.toggle()" style="flex:1;"></ui-button>
|
|
709
|
+
</div>
|
|
710
|
+
</div>
|
|
711
|
+
|
|
712
|
+
<!-- Preview panel -->
|
|
713
|
+
<div style="display:flex;flex-direction:column;gap:16px;">
|
|
714
|
+
<div style="background:#f8fafc;border-radius:10px;border:2px solid #e5e7eb;padding:40px;display:flex;justify-content:center;align-items:center;min-height:280px;position:relative;" id="pgPreview"></div>
|
|
715
|
+
|
|
716
|
+
<div id="pgEventLog" style="background:#0f172a;border-radius:10px;padding:14px 18px;font-family:monospace;font-size:12px;color:#94a3b8;min-height:60px;">
|
|
717
|
+
<div style="color:#475569;font-size:10px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px;">Event Log</div>
|
|
718
|
+
<div id="pgEventContent">Waiting for events…</div>
|
|
719
|
+
</div>
|
|
720
|
+
|
|
721
|
+
<!-- Code block -->
|
|
722
|
+
<div style="background:#0f172a;border-radius:10px;padding:16px;position:relative;">
|
|
723
|
+
<div style="color:#475569;font-size:10px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px;">Usage</div>
|
|
724
|
+
<ui-button label="Copy" onclick="copyPopoverCode()" id="copyPopoverBtn" style="position:absolute;top:8px;right:8px;" variant="outline" color="secondary" size="xs"></ui-button>
|
|
725
|
+
<code id="popoverCodeBlock" style="color:#e2e8f0;font-size:12px;display:block;overflow-x:auto;white-space:pre-wrap;line-height:1.7;padding-right:50px;"></code>
|
|
726
|
+
</div>
|
|
727
|
+
</div>
|
|
728
|
+
</div>
|
|
729
|
+
</div>
|
|
730
|
+
`;
|
|
731
|
+
|
|
732
|
+
setTimeout(() => {
|
|
733
|
+
const inputs = ['ppWidth', 'ppHeading', 'ppOffset', 'ppShowDelay', 'ppHideDelay', 'ppMaxHeight', 'ppContent'];
|
|
734
|
+
const dropdowns = ['ppTrigger', 'ppPlacement', 'ppVariant', 'ppAnimation', 'ppRole'];
|
|
735
|
+
const checkboxes = ['ppShowArrow', 'ppShowClose', 'ppBackdrop', 'ppInteractive', 'ppCloseOnScroll', 'ppCloseOnEsc', 'ppDisabled', 'ppLoading', 'ppSkeleton'];
|
|
736
|
+
|
|
737
|
+
inputs.forEach(id => document.getElementById(id)?.addEventListener('inputChange', () => updateInteractivePopover()));
|
|
738
|
+
dropdowns.forEach(id => document.getElementById(id)?.addEventListener('dropdownChange', () => updateInteractivePopover()));
|
|
739
|
+
checkboxes.forEach(id => document.getElementById(id)?.addEventListener('checkboxChange', () => updateInteractivePopover()));
|
|
740
|
+
|
|
741
|
+
updateInteractivePopover();
|
|
742
|
+
}, 100);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
function updateInteractivePopover() {
|
|
746
|
+
const g = id => document.getElementById(id);
|
|
747
|
+
const gv = id => g(id)?.value ?? '';
|
|
748
|
+
const gc = id => g(id)?.checked ?? false;
|
|
749
|
+
|
|
750
|
+
const trigger = gv('ppTrigger') || 'click';
|
|
751
|
+
const placement = gv('ppPlacement') || 'top';
|
|
752
|
+
const variant = gv('ppVariant') || 'light';
|
|
753
|
+
const animation = gv('ppAnimation') || 'scale';
|
|
754
|
+
const role = gv('ppRole') || 'dialog';
|
|
755
|
+
const width = gv('ppWidth') || '280px';
|
|
756
|
+
const heading = gv('ppHeading');
|
|
757
|
+
const offset = gv('ppOffset') || '12';
|
|
758
|
+
const showDelay = gv('ppShowDelay') || '0';
|
|
759
|
+
const hideDelay = gv('ppHideDelay') || '200';
|
|
760
|
+
const maxHeight = gv('ppMaxHeight') || 'none';
|
|
761
|
+
const rawContent = gv('ppContent') || '<p>Content</p>';
|
|
762
|
+
|
|
763
|
+
const showArrow = gc('ppShowArrow');
|
|
764
|
+
const showClose = gc('ppShowClose');
|
|
765
|
+
const backdrop = gc('ppBackdrop');
|
|
766
|
+
const interactive = gc('ppInteractive');
|
|
767
|
+
const closeOnScroll = gc('ppCloseOnScroll');
|
|
768
|
+
const closeOnEsc = gc('ppCloseOnEsc');
|
|
769
|
+
const disabled = gc('ppDisabled');
|
|
770
|
+
const loading = gc('ppLoading');
|
|
771
|
+
const skeleton = gc('ppSkeleton');
|
|
772
|
+
|
|
773
|
+
// Show/hide manual controls
|
|
774
|
+
const manualCtls = g('manualControls');
|
|
775
|
+
if (manualCtls) manualCtls.style.display = trigger === 'manual' ? 'flex' : 'none';
|
|
776
|
+
|
|
777
|
+
const preview = g('pgPreview');
|
|
778
|
+
if (!preview) return;
|
|
779
|
+
|
|
780
|
+
const triggerLabel = { click: 'Click Me', hover: 'Hover Me', focus: 'Focus Me', manual: 'Target Element' }[trigger] || 'Open';
|
|
781
|
+
const triggerEl =
|
|
782
|
+
trigger === 'manual'
|
|
783
|
+
? `<div style="padding:14px 20px;background:#ede9fe;border:2px dashed #a78bfa;border-radius:8px;color:#6d28d9;font-size:13px;cursor:default;">Target Element (use controls above)</div>`
|
|
784
|
+
: `<ui-button >${triggerLabel}</ui-button>`;
|
|
785
|
+
|
|
786
|
+
const escaped = rawContent.replace(/'/g, ''').replace(/"/g, '"');
|
|
787
|
+
|
|
788
|
+
preview.innerHTML = `
|
|
789
|
+
<ui-popover id="pgPopover"
|
|
790
|
+
trigger="${trigger}"
|
|
791
|
+
placement="${placement}"
|
|
792
|
+
variant="${variant}"
|
|
793
|
+
animation="${animation}"
|
|
794
|
+
popover-role="${role}"
|
|
795
|
+
width="${width}"
|
|
796
|
+
${heading ? `heading="${heading}"` : ''}
|
|
797
|
+
offset="${offset}"
|
|
798
|
+
show-delay="${showDelay}"
|
|
799
|
+
hide-delay="${hideDelay}"
|
|
800
|
+
max-height="${maxHeight}"
|
|
801
|
+
show-arrow="${showArrow}"
|
|
802
|
+
show-close-button="${showClose}"
|
|
803
|
+
backdrop="${backdrop}"
|
|
804
|
+
interactive="${interactive}"
|
|
805
|
+
close-on-scroll="${closeOnScroll}"
|
|
806
|
+
close-on-esc="${closeOnEsc}"
|
|
807
|
+
disabled="${disabled}"
|
|
808
|
+
loading="${loading}"
|
|
809
|
+
skeleton="${skeleton}"
|
|
810
|
+
>
|
|
811
|
+
<div slot="trigger">${triggerEl}</div>
|
|
812
|
+
<div slot="content">${rawContent}</div>
|
|
813
|
+
</ui-popover>
|
|
814
|
+
`;
|
|
815
|
+
|
|
816
|
+
// Events
|
|
817
|
+
setTimeout(() => {
|
|
818
|
+
const pop = g('pgPopover');
|
|
819
|
+
const log = g('pgEventContent');
|
|
820
|
+
if (pop && log) {
|
|
821
|
+
const logEvt = (name, color = '#10b981') => {
|
|
822
|
+
log.innerHTML = `<span style="color:${color}">[${new Date().toLocaleTimeString()}] ${name}</span>`;
|
|
823
|
+
};
|
|
824
|
+
const p = document.getElementById('cancelShowPop');
|
|
825
|
+
if (p) {
|
|
826
|
+
p.addEventListener('uiBeforeOpen', e => {
|
|
827
|
+
logEvt('uiBeforeOpen - cancelled!', '#ef4444');
|
|
828
|
+
e.preventDefault(); // Prevents it from showing
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
pop.addEventListener('uiBeforeOpen', () => logEvt('uiBeforeOpen', '#60a5fa'));
|
|
832
|
+
pop.addEventListener('uiOpen', () => logEvt('uiOpen', '#10b981'));
|
|
833
|
+
pop.addEventListener('uiBeforeClose', () => logEvt('uiBeforeClose', '#fbbf24'));
|
|
834
|
+
pop.addEventListener('uiClose', () => logEvt('uiClose', '#f87171'));
|
|
835
|
+
}
|
|
836
|
+
}, 100);
|
|
837
|
+
|
|
838
|
+
// Code gen
|
|
839
|
+
const codeBlock = g('popoverCodeBlock');
|
|
840
|
+
if (codeBlock) {
|
|
841
|
+
const attrs = [
|
|
842
|
+
trigger !== 'click' ? `trigger="${trigger}"` : '',
|
|
843
|
+
placement !== 'top' ? `placement="${placement}"` : '',
|
|
844
|
+
variant !== 'light' ? `variant="${variant}"` : '',
|
|
845
|
+
animation !== 'scale' ? `animation="${animation}"` : '',
|
|
846
|
+
role !== 'dialog' ? `popover-role="${role}"` : '',
|
|
847
|
+
width !== '280px' ? `width="${width}"` : '',
|
|
848
|
+
heading ? `heading="${heading.replace(/"/g, "'")}"` : '',
|
|
849
|
+
offset !== '12' ? `offset="${offset}"` : '',
|
|
850
|
+
parseInt(showDelay) > 0 ? `show-delay="${showDelay}"` : '',
|
|
851
|
+
parseInt(hideDelay) !== 200 ? `hide-delay="${hideDelay}"` : '',
|
|
852
|
+
maxHeight !== 'none' ? `max-height="${maxHeight}"` : '',
|
|
853
|
+
!showArrow ? `show-arrow="false"` : '',
|
|
854
|
+
showClose ? `show-close-button="true"` : '',
|
|
855
|
+
backdrop ? `backdrop="true"` : '',
|
|
856
|
+
!interactive ? `interactive="false"` : '',
|
|
857
|
+
closeOnScroll ? `close-on-scroll="true"` : '',
|
|
858
|
+
!closeOnEsc ? `close-on-esc="false"` : '',
|
|
859
|
+
disabled ? `disabled="true"` : '',
|
|
860
|
+
loading ? `loading="true"` : '',
|
|
861
|
+
skeleton ? `skeleton="true"` : '',
|
|
862
|
+
]
|
|
863
|
+
.filter(Boolean)
|
|
864
|
+
.map(a => ` ${a}`)
|
|
865
|
+
.join('\n');
|
|
866
|
+
|
|
867
|
+
codeBlock.textContent = `<ui-popover\n${attrs}\n>\n <!-- trigger slot -->\n <ui-button slot="trigger">Open</ui-button>\n\n <!-- content slot -->\n <div slot="content">${rawContent.substring(0, 60)}${rawContent.length > 60 ? '…' : ''}</div>\n</ui-popover>`;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
window.copyPopoverCode = () => {
|
|
872
|
+
const code = document.getElementById('popoverCodeBlock').textContent;
|
|
873
|
+
const btn = document.getElementById('copyPopoverBtn');
|
|
874
|
+
navigator.clipboard.writeText(code).then(() => {
|
|
875
|
+
btn.textContent = 'Copied!';
|
|
876
|
+
btn.style.background = '#10b981';
|
|
877
|
+
setTimeout(() => {
|
|
878
|
+
btn.textContent = 'Copy';
|
|
879
|
+
btn.style.background = 'rgba(255,255,255,0.07)';
|
|
880
|
+
}, 2000);
|
|
881
|
+
});
|
|
882
|
+
};
|