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,863 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-ClkOYpT8.js');
|
|
4
|
+
var security = require('./security-E1JcwxGc.js');
|
|
5
|
+
|
|
6
|
+
const snackbarCss = () => `@charset "UTF-8";.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.snackbar-quick-input{width:100%;margin:12px 0 0 0;display:flex;align-items:center;pointer-events:auto}.snackbar-quick-input input{width:100%;min-width:0;box-sizing:border-box;padding:8px 12px;border-radius:6px;border:1px solid var(--border-default, #e5e7eb);font-size:15px;background:var(--bg-primary, #ffffff);outline:none;transition:border 0.2s, box-shadow 0.2s}.snackbar-quick-input input:focus{border:1.5px solid var(--color-primary, #6366f1);box-shadow:0 0 0 2px var(--color-primary, #c7d2fe)}:host{display:block;position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;z-index:var(--snackbar-z-index, 10500);transform:translateZ(0);--snackbar-radius:12px;--snackbar-font:inherit;--snackbar-min-width:320px;--snackbar-max-width:440px;--snackbar-z-index:10500;--snackbar-bg:var(--bg-primary, #fdfdfd);--snackbar-color:var(--text-primary, #1f2937);--snackbar-border:rgba(0, 0, 0, 0.08);--snackbar-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);--snackbar-success-bg:var(--color-success-hover, #059669);--snackbar-error-bg:var(--color-danger-hover, #dc2626);--snackbar-warning-bg:var(--color-warning-hover, #d97706);--snackbar-info-bg:var(--color-primary-hover, #2563eb);--snackbar-neutral-bg:var(--color-primary, #4b5563);--snackbar-badge-bg:rgba(15, 23, 42, 0.85);--snackbar-badge-color:var(--color-primary, #60a5fa)}.snackbar-container{display:block;position:absolute;z-index:10501;pointer-events:none;width:auto;max-width:100vw;box-sizing:border-box;padding:16px;display:flex;flex-direction:column;gap:12px;transition:all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);max-height:calc(100vh - 40px)}.snackbar-clear-all{pointer-events:auto;align-self:center;margin-bottom:8px;background:rgba(255, 255, 255, 0.9);border:1px solid rgba(0, 0, 0, 0.1);border-radius:20px;padding:6px 14px;font-size:11px;font-weight:600;color:var(--text-secondary, #4b5563);display:flex;align-items:center;gap:6px;cursor:pointer;box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1);backdrop-filter:blur(8px);transition:all 0.2s;z-index:2000;}.snackbar-container.card-stack:not(.hovered) .snackbar-clear-all{display:none}.snackbar-clear-all:hover{background:var(--bg-primary, #ffffff);transform:translateY(-1px);box-shadow:0 6px 10px -1px rgba(0, 0, 0, 0.15)}.snackbar-clear-all .kb-hint{background:rgba(0, 0, 0, 0.05);padding:1px 4px;border-radius:3px;font-size:9px;opacity:0.6}.snackbar-badge-btn{background:var(--snackbar-badge-bg, rgba(15, 23, 42, 0.85));color:#fff;border-radius:12px;padding:2px 8px;font-size:10px;border:none;cursor:pointer;display:flex;align-items:center;transition:transform 0.2s;pointer-events:auto}.snackbar-badge-btn:hover{transform:scale(1.05)}.snackbar-badge-btn ui-icon{margin-left:4px;display:flex}.snackbar-history{margin-top:8px;padding:8px;background:rgba(0, 0, 0, 0.03);border-radius:6px;font-size:12px;max-height:120px;overflow-y:auto;scrollbar-width:thin}.snackbar-history .history-item{display:flex;gap:8px;padding:4px 0;border-bottom:1px solid rgba(0, 0, 0, 0.05)}.snackbar-history .history-item:last-child{border-bottom:none}.snackbar-history .history-item .history-time{color:var(--text-secondary, #6b7280);font-family:monospace;white-space:nowrap}.snackbar-history .history-item .history-msg{color:var(--text-primary, #111827)}.theme-dark .snackbar-clear-all{background:var(--bg-primary, #1e293b);color:var(--text-standard, #e2e8f0);border-color:rgba(255, 255, 255, 0.1)}.snackbar-countdown{position:absolute;bottom:28px;right:12px;background:rgba(0, 0, 0, 0.55);color:rgba(255, 255, 255, 0.9);border-radius:10px;padding:2px 7px;font-size:10px;font-weight:700;letter-spacing:0.02em;pointer-events:none;opacity:1;transition:opacity 0.3s ease;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:10;min-width:24px;text-align:center;font-variant-numeric:tabular-nums;}.snackbar-container.rtl .snackbar-countdown{right:auto;left:12px}.snackbar-container:hover .snackbar-countdown{opacity:0}.snackbar-container.top-left{top:0;left:0;align-items:flex-start}.snackbar-container.top-right{top:0;right:0;align-items:flex-end}.snackbar-container.top-center{top:0;left:50%;transform:translateX(-50%);align-items:center}.snackbar-container.bottom-left{bottom:0;left:0;flex-direction:column-reverse;align-items:flex-start}.snackbar-container.bottom-right{bottom:0;right:0;flex-direction:column-reverse;align-items:flex-end}.snackbar-container.bottom-center{bottom:0;left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center}.snackbar-container.rtl.top-left{left:auto;right:0;align-items:flex-end}.snackbar-container.rtl.top-right{right:auto;left:0;align-items:flex-start}.snackbar-container.rtl.bottom-left{left:auto;right:0;align-items:flex-end}.snackbar-container.rtl.bottom-right{right:auto;left:0;align-items:flex-start}.snackbar-container.rtl .snackbar-item.slide-right{animation-name:slideInLeft}.snackbar-container.rtl .snackbar-item.slide-left{animation-name:slideInRight}.snackbar-container:not(.bottom-left):not(.bottom-right):not(.bottom-center) .snackbar-item{order:var(--stack-index)}.snackbar-container.bottom-left,.snackbar-container.bottom-right,.snackbar-container.bottom-center{padding-bottom:24px}.snackbar-container.top-left,.snackbar-container.top-right,.snackbar-container.top-center{padding-top:24px}.stack-count-badge{position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:4px;background:rgba(15, 23, 42, 0.85);color:var(--text-standard, #ffffff);border-radius:20px;padding:4px 12px;font-size:11px;font-weight:700;cursor:pointer;z-index:200;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255, 255, 255, 0.15);transition:all 0.2s ease;pointer-events:auto;white-space:nowrap}.stack-count-badge:hover{background:rgba(15, 23, 42, 0.98);transform:translateX(-50%) translateY(-2px);box-shadow:0 4px 12px rgba(0, 0, 0, 0.3)}.stack-count-badge .stack-count-number{font-size:13px;font-weight:800;color:var(--color-primary, #60a5fa)}.stack-count-badge .stack-count-label{opacity:0.7;font-weight:500}.snackbar-container.bottom-left .stack-count-badge,.snackbar-container.bottom-right .stack-count-badge,.snackbar-container.bottom-center .stack-count-badge{bottom:auto;top:-18px}.snackbar-container.bottom-left .stack-count-badge:hover,.snackbar-container.bottom-right .stack-count-badge:hover,.snackbar-container.bottom-center .stack-count-badge:hover{transform:translateX(-50%) translateY(2px)}.snackbar-container.top-right .stack-count-badge,.snackbar-container.bottom-right .stack-count-badge{left:auto;right:0;transform:none}.snackbar-container.top-right .stack-count-badge:hover,.snackbar-container.bottom-right .stack-count-badge:hover{transform:translateY(-2px)}.snackbar-container.top-left .stack-count-badge,.snackbar-container.bottom-left .stack-count-badge{left:0;transform:none}.snackbar-container.top-left .stack-count-badge:hover,.snackbar-container.bottom-left .stack-count-badge:hover{transform:translateY(-2px)}.snackbar-container.card-stack{display:flex !important;flex-direction:column;width:360px;max-width:calc(100vw - 32px);min-height:160px;padding:16px;pointer-events:none;overflow:visible;--stack-gap:8px;--stack-shrink:0.04;--stack-opacity:0.15;}.snackbar-container.card-stack::before{content:"";position:absolute;inset:-8px;background:transparent;pointer-events:auto;z-index:0}.snackbar-container.card-stack:not(.hovered) .snackbar-item{position:absolute !important;margin:0 !important;pointer-events:none;transition:transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, width 0.5s ease;width:calc(100% - var(--stack-index, 0) * 14px);opacity:calc(1 - var(--stack-index, 0) * var(--stack-opacity));filter:brightness(calc(1 - var(--stack-index, 0) * 0.08));z-index:calc(50 - var(--stack-index, 0))}.snackbar-container.card-stack.top-left:not(.hovered) .snackbar-item,.snackbar-container.card-stack.top-right:not(.hovered) .snackbar-item,.snackbar-container.card-stack.top-center:not(.hovered) .snackbar-item{top:16px;transform:translateY(calc(var(--stack-index, 0) * var(--stack-gap)))}.snackbar-container.card-stack.bottom-left:not(.hovered) .snackbar-item,.snackbar-container.card-stack.bottom-right:not(.hovered) .snackbar-item,.snackbar-container.card-stack.bottom-center:not(.hovered) .snackbar-item{bottom:16px;transform:translateY(calc(var(--stack-index, 0) * var(--stack-gap) * -1))}.snackbar-container.card-stack.top-right:not(.hovered) .snackbar-item,.snackbar-container.card-stack.bottom-right:not(.hovered) .snackbar-item{right:0;left:auto !important}.snackbar-container.card-stack.top-left:not(.hovered) .snackbar-item,.snackbar-container.card-stack.bottom-left:not(.hovered) .snackbar-item{left:0 !important;right:auto}.snackbar-container.card-stack.top-center:not(.hovered) .snackbar-item,.snackbar-container.card-stack.bottom-center:not(.hovered) .snackbar-item{left:50% !important;right:auto;transform:translateX(-50%) translateY(calc(var(--stack-index, 0) * var(--stack-gap)))}.snackbar-container.card-stack.bottom-center:not(.hovered) .snackbar-item{transform:translateX(-50%) translateY(calc(var(--stack-index, 0) * var(--stack-gap) * -1))}@keyframes stackSlideFromTop{from{transform:translateX(-50%) translateY(-40px);opacity:0}to{transform:translateX(-50%) translateY(calc(var(--stack-index, 0) * var(--stack-gap)));opacity:calc(1 - var(--stack-index, 0) * var(--stack-opacity))}}@keyframes stackSlideFromBottom{from{transform:translateX(-50%) translateY(40px);opacity:0}to{transform:translateX(-50%) translateY(calc(var(--stack-index, 0) * var(--stack-gap) * -1));opacity:calc(1 - var(--stack-index, 0) * var(--stack-opacity))}}.snackbar-container.card-stack.top-center:not(.hovered) .snackbar-item{animation:stackSlideFromTop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;animation-delay:calc(var(--stack-index, 0) * 60ms)}.snackbar-container.card-stack.bottom-center:not(.hovered) .snackbar-item{animation:stackSlideFromBottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;animation-delay:calc(var(--stack-index, 0) * 60ms)}.snackbar-container.card-stack:not(.hovered) .snackbar-item[data-stack-index="0"]{pointer-events:auto;opacity:1 !important;filter:none !important;z-index:100 !important;box-shadow:0 8px 24px rgba(0, 0, 0, 0.18)}.snackbar-container.card-stack.top-center:not(.hovered) .snackbar-item[data-stack-index="0"],.snackbar-container.card-stack.bottom-center:not(.hovered) .snackbar-item[data-stack-index="0"]{transform:translateX(-50%) !important}.snackbar-container.card-stack.hovered{pointer-events:auto;align-items:stretch;}.snackbar-container.card-stack.hovered .snackbar-item{position:relative !important;left:auto !important;right:auto !important;top:auto !important;bottom:auto !important;width:100% !important;transform:none !important;opacity:1 !important;filter:none !important;pointer-events:auto;margin:0 0 8px 0 !important;z-index:auto !important;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);transition:transform 0.3s ease, box-shadow 0.2s ease}.snackbar-container.card-stack.hovered .snackbar-item:last-child{margin-bottom:0 !important}.snackbar-container.card-stack.hovered .snackbar-item:hover{transform:translateY(-2px) !important;box-shadow:0 12px 24px rgba(0, 0, 0, 0.14)}.snackbar-item{box-sizing:border-box;display:flex;flex-direction:column;width:auto;min-width:var(--snackbar-min-width, 320px);max-width:var(--snackbar-max-width, 440px);padding:16px;border-radius:var(--snackbar-radius, 12px);pointer-events:auto;box-shadow:var(--snackbar-shadow, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05));background:var(--snackbar-bg, #fdfdfd);color:var(--snackbar-color, var(--text-primary, #1f2937));transition:all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28), transform 0.2s ease;position:relative;overflow:visible;backdrop-filter:blur(16px);border:1px solid var(--snackbar-border, rgba(0, 0, 0, 0.08));z-index:calc(100 - var(--stack-index))}.snackbar-item:hover{transform:translateY(-2px);box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.snackbar-item:focus-visible{outline:2px solid var(--color-primary, #10b981);outline-offset:4px;box-shadow:0 0 0 4px rgba(var(--color-primary-rgb, 59, 130, 246), 0.4);background:var(--bg-primary, #ffffff) !important}.snackbar-item{}.snackbar-item.sm{min-width:280px;padding:10px 12px;--snackbar-title-size:13px;--snackbar-msg-size:12px;--snackbar-icon-size:1.1rem;gap:8px}.snackbar-item.md{min-width:320px;padding:16px;--snackbar-title-size:15px;--snackbar-msg-size:14px;--snackbar-icon-size:1.25rem}.snackbar-item.lg{min-width:400px;padding:20px 24px;--snackbar-title-size:18px;--snackbar-msg-size:16px;--snackbar-icon-size:1.5rem;gap:16px}.item-main-row{display:flex;align-items:flex-start;gap:12px;width:100%}.snackbar-content{flex:1;min-width:0}.snackbar-title{font-weight:700;font-size:var(--snackbar-title-size, 15px);color:inherit;margin-bottom:2px;display:flex;align-items:center;gap:8px}.snackbar-message{font-size:var(--snackbar-msg-size, 14px);line-height:1.5;color:inherit;opacity:0.9;margin:0;word-break:break-word;white-space:pre-wrap}.snackbar-icon,.snackbar-custom-icon{font-size:var(--snackbar-icon-size, 1.25rem)}.snackbar-badge{background:rgba(0, 0, 0, 0.1);padding:2px 8px;border-radius:12px;font-size:11px;font-weight:800;transition:all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)}.snackbar-badge.pulse{animation:badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)}@keyframes badgePop{0%{transform:scale(1)}50%{transform:scale(1.6);background:var(--color-danger, #fbbf24);color:var(--text-primary, #000);box-shadow:0 0 15px rgba(251, 191, 36, 0.5)}100%{transform:scale(1)}}.snackbar-item.filled{color:var(--text-standard, #ffffff);border:none}.snackbar-item.filled.success{background:var(--snackbar-success-bg, var(--color-success-hover, #059669))}.snackbar-item.filled.error{background:var(--snackbar-error-bg, var(--color-danger-hover, #dc2626))}.snackbar-item.filled.warning{background:var(--snackbar-warning-bg, var(--color-warning-hover, #d97706))}.snackbar-item.filled.info{background:var(--snackbar-info-bg, var(--color-primary-hover, #2563eb))}.snackbar-item.filled.neutral{background:var(--snackbar-neutral-bg, #4b5563)}.snackbar-item.filled.loading{background:var(--snackbar-neutral-bg, #4b5563)}.snackbar-item.glass{background:rgba(255, 255, 255, 0.6);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border:1px solid rgba(255, 255, 255, 0.4);box-shadow:0 8px 32px 0 rgba(31, 38, 135, 0.15);color:var(--text-primary, #1e293b)}.snackbar-item.glass.success{border-left:4px solid var(--color-success, #10b981);background:rgba(236, 253, 245, 0.6)}.snackbar-item.glass.error{border-left:4px solid var(--color-danger, #ef4444);background:rgba(254, 242, 242, 0.6)}.snackbar-item.glass.warning{border-left:4px solid var(--color-warning, #f59e0b);background:rgba(255, 251, 235, 0.6)}.snackbar-item.glass.info{border-left:4px solid var(--color-primary, #10b981);background:rgba(239, 246, 255, 0.6)}.snackbar-item.glass .snackbar-action-btn:not(.variant-danger){background:rgba(0, 0, 0, 0.05);border-color:rgba(0, 0, 0, 0.1);color:var(--color-primary, #334155)}.snackbar-item.glass .snackbar-action-btn:not(.variant-danger):hover{background:rgba(0, 0, 0, 0.1)}.snackbar-item.outlined{background:rgba(255, 255, 255, 0.9);border-width:1.5px;border-style:solid}.snackbar-item.outlined.success{border-color:var(--color-success-hover, #059669);color:var(--color-success-hover, #059669)}.snackbar-item.outlined.error{border-color:var(--color-danger-hover, #dc2626);color:var(--color-danger-hover, #dc2626)}.snackbar-item.outlined.warning{border-color:var(--color-warning-hover, #d97706);color:var(--color-warning-hover, #d97706)}.snackbar-item.outlined.info{border-color:var(--color-primary-hover, #2563eb);color:var(--color-primary-hover, #2563eb)}.snackbar-item.outlined.neutral{border-color:var(--border-strong, #4b5563);color:var(--text-secondary, #4b5563)}.snackbar-item.soft{background:rgba(255, 255, 255, 0.95)}.snackbar-item.soft.success{border-left:4px solid var(--color-success, #10b981);background:var(--bg-primary, #ecfdf5);color:var(--color-primary, #065f46)}.snackbar-item.soft.success .snackbar-title,.snackbar-item.soft.success .snackbar-icon{color:var(--color-success-hover, #059669)}.snackbar-item.soft.error{border-left:4px solid var(--color-danger, #ef4444);background:var(--bg-primary, #fef2f2);color:var(--color-danger, #991b1b)}.snackbar-item.soft.error .snackbar-title,.snackbar-item.soft.error .snackbar-icon{color:var(--color-danger-hover, #dc2626)}.snackbar-item.soft.warning{border-left:4px solid var(--color-warning, #f59e0b);background:var(--bg-primary, #fffbeb);color:var(--color-danger, #92400e)}.snackbar-item.soft.warning .snackbar-title,.snackbar-item.soft.warning .snackbar-icon{color:var(--color-warning-hover, #d97706)}.snackbar-item.soft.info{border-left:4px solid var(--color-primary, #10b981);background:var(--bg-primary, #eff6ff);color:var(--color-primary, #1e40af)}.snackbar-item.soft.info .snackbar-title,.snackbar-item.soft.info .snackbar-icon{color:var(--color-primary-hover, #2563eb)}.snackbar-item.soft.neutral{border-left:4px solid var(--color-primary, #475569);background:var(--bg-secondary, #f3f4f6);color:var(--text-secondary, #374151)}.snackbar-item.soft.neutral .snackbar-title,.snackbar-item.soft.neutral .snackbar-icon{color:var(--color-primary, #475569)}.snackbar-item.neutral:not(.filled),.snackbar-item.loading:not(.filled){background:var(--bg-primary, #f8fafc);border-color:var(--border-subtle, #e2e8f0);color:var(--color-primary, #334155)}.snackbar-item.filled.success{background:var(--color-success, #10b981);color:var(--text-standard, #ffffff)}.snackbar-item.filled.error{background:var(--color-danger, #ef4444);color:var(--text-standard, #ffffff)}.snackbar-item.filled.warning{background:var(--color-warning, #f59e0b);color:var(--text-standard, #ffffff)}.snackbar-item.filled.info{background:var(--color-primary, #10b981);color:var(--text-standard, #ffffff)}.snackbar-item.filled.neutral{background:var(--color-primary, #334155);color:var(--text-standard, #ffffff)}.snackbar-item.filled.loading{background:var(--color-primary, #475569);color:var(--text-standard, #ffffff)}.snackbar-item.sovereign{background:linear-gradient(135deg, var(--bg-primary, #1e293b) 0%, var(--bg-secondary, #0f172a) 100%);color:var(--color-danger, #fbbf24);border:1px solid rgba(251, 191, 36, 0.4);box-shadow:0 0 20px rgba(251, 191, 36, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.3);overflow:hidden}.snackbar-item.sovereign::after{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);opacity:0.5;animation:sovereignPulse 4s infinite alternate}.snackbar-item.sovereign .snackbar-title{color:var(--color-danger, #fbbf24);text-shadow:0 0 8px rgba(251, 191, 36, 0.4);letter-spacing:0.05em}.snackbar-item.sovereign .snackbar-badge{background:var(--color-danger, #fbbf24);color:var(--text-primary, #0f172a)}.snackbar-item.sovereign .snackbar-progress{background:var(--color-danger, #fbbf24);box-shadow:0 0 10px var(--color-danger, #fbbf24);height:3px}.snackbar-item.sovereign .snackbar-icon{color:var(--color-danger, #fbbf24);filter:drop-shadow(0 0 5px rgba(251, 191, 36, 0.6))}@keyframes sovereignPulse{0%{transform:scale(1) translate(0, 0);opacity:0.3}100%{transform:scale(1.2) translate(5%, 5%);opacity:0.6}}.snackbar-item.theme-dark{background:var(--bg-secondary, #111827);color:var(--text-standard, #ffffff);border-color:rgba(255, 255, 255, 0.1);box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.5)}.snackbar-item{opacity:0;transition:all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;max-height:200px}.snackbar-item.slide-up{transform:translateY(40px) scale(0.9)}.snackbar-item.slide-down{transform:translateY(-40px) scale(0.9)}.snackbar-item.slide-left{transform:translateX(-100%) scale(0.9)}.snackbar-item.slide-right{transform:translateX(100%) scale(0.9)}.snackbar-item.fade{transform:scale(0.95)}.snackbar-item.scale{transform:scale(0.1)}.snackbar-item.spring{transform:translateY(100px)}.snackbar-item.show{opacity:1;transform:translate(0, 0) scale(1)}.snackbar-item.closing{opacity:0 !important;transform:scale(0.8) translateY(20px) !important;pointer-events:none;max-height:0 !important;margin-top:0 !important;margin-bottom:0 !important;padding-top:0 !important;padding-bottom:0 !important;overflow:hidden;filter:blur(8px)}.snackbar-container.top-left .snackbar-item.closing,.snackbar-container.top-right .snackbar-item.closing,.snackbar-container.top-center .snackbar-item.closing{transform:scale(0.8) translateY(-20px) !important}.snackbar-item.spring.show{animation:springEntry 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards}@keyframes springEntry{0%{transform:translateY(100px) scale(0.4);opacity:0}70%{transform:translateY(-10px) scale(1.05);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}.snackbar-item.bounce.show{animation:bounceIn 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards}@keyframes bounceIn{0%{transform:scale(0.3);opacity:0}50%{transform:scale(1.1);opacity:1}70%{transform:scale(0.9)}100%{transform:scale(1)}}.snackbar-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.snackbar-action-btn{padding:4px 10px;border-radius:6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;background:rgba(0, 0, 0, 0.1);border:1px solid rgba(0, 0, 0, 0.1);color:inherit;cursor:pointer;transition:all 0.2s}.snackbar-action-btn:hover{background:rgba(0, 0, 0, 0.2)}.snackbar-item.filled .snackbar-action-btn{background:rgba(255, 255, 255, 0.2);border-color:rgba(255, 255, 255, 0.3)}.snackbar-item.filled .snackbar-action-btn:hover{background:rgba(255, 255, 255, 0.3)}.snackbar-action-btn.variant-primary{background:var(--color-primary, #10b981);color:var(--text-standard, #ffffff);border-color:var(--color-primary-hover, #2563eb)}.snackbar-action-btn.variant-primary:hover{background:var(--color-primary-hover, #2563eb)}.snackbar-action-btn.variant-danger{background:var(--color-danger, #ef4444);color:var(--text-standard, #ffffff);border-color:var(--color-danger-hover, #dc2626)}.snackbar-action-btn.variant-danger:hover{background:var(--color-danger-hover, #dc2626)}.snackbar-action-btn.variant-text{background:transparent;border:none;font-weight:600;padding:4px 6px}.snackbar-action-btn.variant-text:hover{text-decoration:underline;background:rgba(0, 0, 0, 0.05)}.snackbar-link{font-size:12px;text-decoration:underline;color:inherit;opacity:0.8;font-weight:500}.snackbar-link:hover{opacity:1}.snackbar-progress{position:absolute;bottom:0;left:0;height:4px;background:rgba(255, 255, 255, 0.5);width:0%;transition:width linear;}.snackbar-container.hovered .snackbar-progress{animation:progressPulse 2s infinite ease-in-out}@keyframes progressPulse{0%,100%{opacity:0.5}50%{opacity:0.8}}.snackbar-item:not(.filled) .snackbar-progress,.snackbar-item.neutral.filled .snackbar-progress,.snackbar-item.outlined .snackbar-progress,.snackbar-item.soft .snackbar-progress{background:currentColor;opacity:0.15}.snackbar-progress-ring{position:absolute;top:12px;right:12px;width:20px;height:20px;transform:rotate(-90deg)}.snackbar-progress-ring circle{fill:none;stroke:currentColor;stroke-width:2;stroke-dasharray:56.5;stroke-dashoffset:56.5;opacity:0.3}.snackbar-close{background:none;border:none;color:inherit;cursor:pointer;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0.6;transition:all 0.2s}.snackbar-close:hover{opacity:1;background:rgba(0, 0, 0, 0.05)}.snackbar-icon-draw{width:24px;height:24px}.circle{stroke-dasharray:157;stroke-dashoffset:157;stroke-width:2;stroke-miterlimit:10;stroke:currentColor;fill:none;animation:stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards}.check{transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;stroke:currentColor;stroke-width:3;animation:stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards}@keyframes stroke{100%{stroke-dashoffset:0}}.snackbar-history-indicator{margin-top:12px;border-top:1px solid rgba(0, 0, 0, 0.05);padding-top:8px;width:100%}.expand-history-btn{background:transparent;border:none;font-size:11px;font-weight:600;color:inherit;opacity:0.6;cursor:pointer;padding:4px 0;display:flex;align-items:center;gap:4px}.expand-history-btn:hover{opacity:1;text-decoration:underline}.snackbar-history-list{max-height:0;overflow:hidden;transition:max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);display:flex;flex-direction:column;gap:6px}.snackbar-item.history-expanded .snackbar-history-list{max-height:150px;margin-top:8px;overflow-y:auto}.history-item{display:flex;flex-direction:column;padding:6px 8px;background:rgba(0, 0, 0, 0.03);border-radius:4px;font-size:12px}.history-item .history-time{font-size:10px;font-weight:700;opacity:0.5}.history-item .history-msg{opacity:0.8}.theme-dark .history-item{background:rgba(255, 255, 255, 0.05)}.snackbar-item.filled .history-item{background:rgba(255, 255, 255, 0.1)}.snackbar-loading-spinner{width:18px;height:18px;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:var(--bg-primary, #ffffff);animation:spin 0.8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.snackbar-quick-input{width:100%;margin-top:8px}.snackbar-quick-input input{width:100%;padding:8px 12px;border-radius:6px;border:1px solid rgba(0, 0, 0, 0.1);background:rgba(255, 255, 255, 0.5);font-size:13px;outline:none}.snackbar-quick-input input:focus{border-color:var(--color-primary, #10b981);background:var(--bg-primary, #ffffff)}@media (max-width: 500px){.snackbar-container{left:0 !important;right:0 !important;width:100% !important;max-width:100% !important;transform:none !important;padding:12px !important;bottom:0 !important;top:auto !important;}.snackbar-container.top-left,.snackbar-container.top-right,.snackbar-container.top-center{top:0 !important;bottom:auto !important}.snackbar-item{width:100% !important;min-width:0 !important;max-width:100% !important;margin-left:0 !important;margin-right:0 !important}.snackbar-clear-all{width:auto;align-self:center}.snackbar-container.card-stack{min-width:0 !important}.snackbar-container.card-stack::before{display:none}.snackbar-container.card-stack{}}@keyframes sb-particle-burst{0%{transform:translate(-50%, -50%) translate(0, 0) scale(0) rotate(0deg);opacity:0}15%{opacity:1;transform:translate(-50%, -50%) translate(calc(var(--tx) * 0.25px), calc(var(--ty) * 0.25px)) scale(var(--s)) rotate(calc(var(--r) * 0.2deg))}80%{opacity:0.7}100%{transform:translate(-50%, -50%) translate(calc(var(--tx) * 1px), calc(var(--ty) * 1px)) scale(0) rotate(calc(var(--r) * 1deg));opacity:0}}@keyframes sb-particle-float{0%{transform:translate(-50%, -50%) translate(0, 0) scale(0.5) rotate(0deg);opacity:0}20%{opacity:1}100%{transform:translate(-50%, -50%) translate(calc(var(--tx) * 0.5px), calc(var(--ty) * 1px)) scale(0) rotate(calc(var(--r) * 0.5deg));opacity:0}}@keyframes sb-particle-glint{0%{transform:translate(-50%, -50%) scale(0);opacity:0}30%{transform:translate(-50%, -50%) scale(1.6);opacity:1}100%{transform:translate(-50%, -50%) scale(0.3);opacity:0}}.sb-particle{position:absolute;top:50%;left:50%;pointer-events:none;will-change:transform, opacity;z-index:1000;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(0.19, 1, 0.22, 1);animation-duration:var(--d, 1.2s);animation-delay:var(--delay, 0s)}.sb-particle.sb-particle--burst{width:var(--size, 8px);height:var(--size, 8px);border-radius:50%;background:radial-gradient(circle, #fbbf24 0%, #f97316 60%, transparent 100%);box-shadow:0 0 6px 1px rgba(251, 191, 36, 0.5019607843);animation-name:sb-particle-burst}.sb-particle.sb-particle--float{font-size:var(--size, 14px);line-height:1;animation-name:sb-particle-float}.sb-particle.sb-particle--glint{width:var(--size, 6px);height:var(--size, 6px);border-radius:50%;background:#fff;box-shadow:0 0 4px 2px rgba(255, 255, 255, 0.5019607843);animation-name:sb-particle-glint}.snackbar-particle{position:absolute;top:50%;left:50%;pointer-events:none;z-index:1000;opacity:0;will-change:transform, opacity}.snackbar-particle.type-glow{width:8px;height:8px;background:radial-gradient(circle, #fbbf24 0%, transparent 70%);border-radius:50%;box-shadow:0 0 10px #fbbf24;animation:snackbarParticleExplode 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards}.snackbar-particle.type-emoji{animation:snackbarParticleExplodeRotate 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;white-space:nowrap}@keyframes snackbarParticleExplode{0%{transform:translate(-50%, -50%) scale(0);opacity:0}20%{transform:translate(-50%, -50%) scale(1.5);opacity:1}100%{transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);opacity:0}}@keyframes snackbarParticleExplodeRotate{0%{transform:translate(-50%, -50%) scale(0) rotate(0deg);opacity:0}20%{transform:translate(-50%, -50%) scale(1.5) rotate(0deg);opacity:1}100%{transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0) rotate(var(--rot));opacity:0}}`;
|
|
7
|
+
|
|
8
|
+
const Snackbar = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.snackbarClosed = index.createEvent(this, "snackbarClosed");
|
|
12
|
+
this.snackbarAdded = index.createEvent(this, "snackbarAdded");
|
|
13
|
+
this.snackbarUpdated = index.createEvent(this, "snackbarUpdated");
|
|
14
|
+
this.snackbarLinkClicked = index.createEvent(this, "snackbarLinkClicked");
|
|
15
|
+
this.snackbarActionClicked = index.createEvent(this, "snackbarActionClicked");
|
|
16
|
+
}
|
|
17
|
+
get element() { return index.getElement(this); }
|
|
18
|
+
/**
|
|
19
|
+
* Position of the snackbar container
|
|
20
|
+
*/
|
|
21
|
+
position = 'top-right';
|
|
22
|
+
/**
|
|
23
|
+
* Maximum number of visible snackbars
|
|
24
|
+
*/
|
|
25
|
+
maxVisible = 5;
|
|
26
|
+
/**
|
|
27
|
+
* Stack mode for snackbars (only applies when maxVisible > 1)
|
|
28
|
+
*/
|
|
29
|
+
stackMode = 'stack';
|
|
30
|
+
/**
|
|
31
|
+
* Open animation mode for snackbars
|
|
32
|
+
*/
|
|
33
|
+
openMode = 'slide-down';
|
|
34
|
+
/**
|
|
35
|
+
* Default variant for snackbars
|
|
36
|
+
*/
|
|
37
|
+
variant = 'filled';
|
|
38
|
+
/**
|
|
39
|
+
* Default size for snackbars
|
|
40
|
+
*/
|
|
41
|
+
size = 'md';
|
|
42
|
+
/**
|
|
43
|
+
* Default theme for notifications
|
|
44
|
+
*/
|
|
45
|
+
theme = 'auto';
|
|
46
|
+
/**
|
|
47
|
+
* Enable card stacking mode - notifications stack like cards and expand on hover
|
|
48
|
+
*/
|
|
49
|
+
cardStack = false;
|
|
50
|
+
/**
|
|
51
|
+
* Default group threshold (ms) - identical messages within this window are coalesced
|
|
52
|
+
*/
|
|
53
|
+
groupThreshold = 3000;
|
|
54
|
+
/**
|
|
55
|
+
* Global default duration (ms) for notifications. 0 is infinite.
|
|
56
|
+
*/
|
|
57
|
+
duration = 5000;
|
|
58
|
+
/**
|
|
59
|
+
* Enable smart grouping (coalescing) of identical messages
|
|
60
|
+
*/
|
|
61
|
+
coalesce = false;
|
|
62
|
+
/**
|
|
63
|
+
* Maximum duration cap (ms). Any item duration above this value is clamped. 0 = no cap.
|
|
64
|
+
*/
|
|
65
|
+
maxDuration = 0;
|
|
66
|
+
/**
|
|
67
|
+
* Show a live countdown chip (e.g. "3s") inside the notification before it closes.
|
|
68
|
+
* Only visible when duration > 0 and progress is set to 'bar' or 'ring'.
|
|
69
|
+
*/
|
|
70
|
+
showCountdown = false;
|
|
71
|
+
/**
|
|
72
|
+
* Explicit text direction for this notification instance only.
|
|
73
|
+
* 'auto' reads the CSS computed direction of the element.
|
|
74
|
+
* 'rtl' / 'ltr' override immediately without touching the page layout.
|
|
75
|
+
*/
|
|
76
|
+
textDirection = 'auto';
|
|
77
|
+
onTextDirectionChange() {
|
|
78
|
+
this.updateDir();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Default library for icons
|
|
82
|
+
*/
|
|
83
|
+
iconLibrary = 'lucide';
|
|
84
|
+
/**
|
|
85
|
+
* Move snackbar to the bottom of the body automatically on load
|
|
86
|
+
*/
|
|
87
|
+
portal = true;
|
|
88
|
+
/**
|
|
89
|
+
* Pause timers when the cursor hovers over the snackbar
|
|
90
|
+
*/
|
|
91
|
+
pauseOnHover = true;
|
|
92
|
+
/**
|
|
93
|
+
* Pause timers when the window loses focus (e.g. tab switch)
|
|
94
|
+
*/
|
|
95
|
+
pauseOnFocusLoss = true;
|
|
96
|
+
/**
|
|
97
|
+
* Sound mode: 'none' | 'synth' | 'custom'
|
|
98
|
+
*/
|
|
99
|
+
soundMode = 'synth';
|
|
100
|
+
/**
|
|
101
|
+
* Enable CSS particle burst on 'sovereign' type notifications.
|
|
102
|
+
* Set to false to disable all particle effects.
|
|
103
|
+
*/
|
|
104
|
+
particles = true;
|
|
105
|
+
/**
|
|
106
|
+
* Enable slot support for custom notification layouts
|
|
107
|
+
*/
|
|
108
|
+
enableSlots = false;
|
|
109
|
+
/**
|
|
110
|
+
* Event emitted when a snackbar is closed
|
|
111
|
+
*/
|
|
112
|
+
snackbarClosed;
|
|
113
|
+
/**
|
|
114
|
+
* Event emitted when a snackbar is added
|
|
115
|
+
*/
|
|
116
|
+
snackbarAdded;
|
|
117
|
+
/**
|
|
118
|
+
* Event emitted when a snackbar is updated
|
|
119
|
+
*/
|
|
120
|
+
snackbarUpdated;
|
|
121
|
+
/**
|
|
122
|
+
* Event emitted when a snackbar link is clicked
|
|
123
|
+
*/
|
|
124
|
+
snackbarLinkClicked;
|
|
125
|
+
/**
|
|
126
|
+
* Event emitted when a snackbar action button is clicked
|
|
127
|
+
*/
|
|
128
|
+
snackbarActionClicked;
|
|
129
|
+
snackbars = [];
|
|
130
|
+
visibleSnackbars = [];
|
|
131
|
+
animatedItems = new Set();
|
|
132
|
+
isHovered = false;
|
|
133
|
+
expandedSnackbars = new Set();
|
|
134
|
+
dragX = {};
|
|
135
|
+
isDragging = null;
|
|
136
|
+
dir = 'ltr';
|
|
137
|
+
/** Per-notification remaining seconds for the countdown chip (reactive) */
|
|
138
|
+
countdownSeconds = {};
|
|
139
|
+
timers = {};
|
|
140
|
+
startX = 0;
|
|
141
|
+
componentWillLoad() {
|
|
142
|
+
this.updateVisibleSnackbars();
|
|
143
|
+
// Detect RTL direction from ancestral context
|
|
144
|
+
this.updateDir();
|
|
145
|
+
// Add global key listener
|
|
146
|
+
window.addEventListener('keydown', this.handleGlobalKeyDown);
|
|
147
|
+
// Portal to body if requested
|
|
148
|
+
if (this.portal && document.body && this.element.parentElement !== document.body) {
|
|
149
|
+
document.body.appendChild(this.element);
|
|
150
|
+
}
|
|
151
|
+
window.addEventListener('blur', () => this.handleWindowBlur());
|
|
152
|
+
window.addEventListener('focus', () => this.handleWindowFocus());
|
|
153
|
+
}
|
|
154
|
+
updateDir() {
|
|
155
|
+
// Explicit prop takes priority — never reads nor touches the page dir
|
|
156
|
+
if (this.textDirection === 'rtl') {
|
|
157
|
+
this.dir = 'rtl';
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (this.textDirection === 'ltr') {
|
|
161
|
+
this.dir = 'ltr';
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
// 'auto': respect only the element's own CSS computed direction
|
|
165
|
+
// (inherited from a parent that has dir set — NOT the global html element)
|
|
166
|
+
const computed = getComputedStyle(this.element).direction;
|
|
167
|
+
this.dir = (computed === 'rtl') ? 'rtl' : 'ltr';
|
|
168
|
+
}
|
|
169
|
+
disconnectedCallback() {
|
|
170
|
+
window.removeEventListener('keydown', this.handleGlobalKeyDown);
|
|
171
|
+
window.removeEventListener('blur', () => this.handleWindowBlur());
|
|
172
|
+
window.removeEventListener('focus', () => this.handleWindowFocus());
|
|
173
|
+
}
|
|
174
|
+
handleGlobalKeyDown = (e) => {
|
|
175
|
+
if (e.key === 'Escape' && this.snackbars.length > 0) {
|
|
176
|
+
e.preventDefault();
|
|
177
|
+
e.stopPropagation();
|
|
178
|
+
this.closeAll();
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
positionChanged() {
|
|
182
|
+
this.updateVisibleSnackbars();
|
|
183
|
+
}
|
|
184
|
+
maxVisibleChanged() {
|
|
185
|
+
this.updateVisibleSnackbars();
|
|
186
|
+
}
|
|
187
|
+
stackModeChanged() {
|
|
188
|
+
this.updateVisibleSnackbars();
|
|
189
|
+
}
|
|
190
|
+
handleWindowBlur() {
|
|
191
|
+
if (this.pauseOnFocusLoss)
|
|
192
|
+
this.isHovered = true;
|
|
193
|
+
}
|
|
194
|
+
handleWindowFocus() {
|
|
195
|
+
if (this.pauseOnFocusLoss) {
|
|
196
|
+
this.isHovered = false;
|
|
197
|
+
// Reset times to avoid jumps
|
|
198
|
+
const now = Date.now();
|
|
199
|
+
Object.values(this.timers).forEach(timer => {
|
|
200
|
+
timer.lastTime = now;
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
updateVisibleSnackbars() {
|
|
205
|
+
this.visibleSnackbars = [...this.snackbars]
|
|
206
|
+
.sort((a, b) => {
|
|
207
|
+
if (a.priority === 'urgent' && b.priority !== 'urgent')
|
|
208
|
+
return -1;
|
|
209
|
+
if (a.priority !== 'urgent' && b.priority === 'urgent')
|
|
210
|
+
return 1;
|
|
211
|
+
return 0;
|
|
212
|
+
})
|
|
213
|
+
.slice(0, this.maxVisible);
|
|
214
|
+
}
|
|
215
|
+
async add(item) {
|
|
216
|
+
if (this.coalesce) {
|
|
217
|
+
const existingIndex = this.snackbars.findIndex(it => it.message === item.message &&
|
|
218
|
+
it.type === item.type);
|
|
219
|
+
if (existingIndex !== -1) {
|
|
220
|
+
const existingId = this.snackbars[existingIndex].id;
|
|
221
|
+
const history = this.snackbars[existingIndex].history || [];
|
|
222
|
+
this.update(existingId, {
|
|
223
|
+
count: (this.snackbars[existingIndex].count || 1) + 1,
|
|
224
|
+
duration: item.duration || this.snackbars[existingIndex].duration || this.duration,
|
|
225
|
+
history: [...history, { message: item.message, title: item.title, timestamp: Date.now() }]
|
|
226
|
+
});
|
|
227
|
+
return existingId;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
const id = this.generateId();
|
|
231
|
+
const snackbarItem = {
|
|
232
|
+
id,
|
|
233
|
+
type: item.type || 'info',
|
|
234
|
+
title: item.title,
|
|
235
|
+
message: item.message,
|
|
236
|
+
html: item.html || false,
|
|
237
|
+
avatar: item.avatar,
|
|
238
|
+
icon: item.icon,
|
|
239
|
+
iconLibrary: item.iconLibrary || this.iconLibrary,
|
|
240
|
+
link: item.link,
|
|
241
|
+
action: item.action,
|
|
242
|
+
actions: item.actions || [],
|
|
243
|
+
duration: item.duration === 0 ? 0 : this.clampDuration(item.duration || this.duration),
|
|
244
|
+
variant: item.variant || this.variant,
|
|
245
|
+
size: item.size || this.size,
|
|
246
|
+
customClass: item.customClass,
|
|
247
|
+
closable: item.closable !== false,
|
|
248
|
+
count: 1,
|
|
249
|
+
haptic: item.haptic || (item.type === 'error'),
|
|
250
|
+
sound: item.sound,
|
|
251
|
+
progress: item.progress || 'bar',
|
|
252
|
+
priority: item.priority || (item.type === 'error' ? 'urgent' : 'high'),
|
|
253
|
+
theme: item.theme || this.theme,
|
|
254
|
+
input: item.input,
|
|
255
|
+
sticky: !!item.sticky,
|
|
256
|
+
onClose: item.onClose,
|
|
257
|
+
slot: item.slot,
|
|
258
|
+
history: [{ message: item.message, title: item.title, timestamp: Date.now() }]
|
|
259
|
+
};
|
|
260
|
+
if (snackbarItem.type === 'sovereign' && this.particles) {
|
|
261
|
+
this.spawnParticles(id);
|
|
262
|
+
}
|
|
263
|
+
if (snackbarItem.haptic && 'vibrate' in navigator) {
|
|
264
|
+
if (snackbarItem.type === 'sovereign') {
|
|
265
|
+
navigator.vibrate([100, 30, 100, 30, 100]);
|
|
266
|
+
}
|
|
267
|
+
else {
|
|
268
|
+
navigator.vibrate(snackbarItem.type === 'error' ? [50, 50, 50] : 30);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
if (this.soundMode === 'synth') {
|
|
272
|
+
this.playSynthSound(snackbarItem.type);
|
|
273
|
+
}
|
|
274
|
+
else if (snackbarItem.sound) {
|
|
275
|
+
new Audio(snackbarItem.sound).play().catch(() => { });
|
|
276
|
+
}
|
|
277
|
+
if (this.stackMode === 'stack' || this.stackMode === 'lifo') {
|
|
278
|
+
this.snackbars = [snackbarItem, ...this.snackbars];
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
this.snackbars = [...this.snackbars, snackbarItem];
|
|
282
|
+
}
|
|
283
|
+
if (this.snackbars.length > this.maxVisible) {
|
|
284
|
+
const toRemove = this.snackbars[this.snackbars.length - 1];
|
|
285
|
+
this.close(toRemove.id);
|
|
286
|
+
}
|
|
287
|
+
this.updateVisibleSnackbars();
|
|
288
|
+
this.startTimer(id, snackbarItem.duration ?? 0);
|
|
289
|
+
this.snackbarAdded.emit({ id, item: snackbarItem });
|
|
290
|
+
return id;
|
|
291
|
+
}
|
|
292
|
+
clampDuration(ms) {
|
|
293
|
+
if (this.maxDuration > 0 && ms > this.maxDuration)
|
|
294
|
+
return this.maxDuration;
|
|
295
|
+
return ms;
|
|
296
|
+
}
|
|
297
|
+
async close(id) {
|
|
298
|
+
const index = this.snackbars.findIndex(item => item.id === id);
|
|
299
|
+
if (index === -1)
|
|
300
|
+
return;
|
|
301
|
+
if (this.timers[id]) {
|
|
302
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
303
|
+
delete this.timers[id];
|
|
304
|
+
}
|
|
305
|
+
this.animatedItems.add(`${id}-closing`);
|
|
306
|
+
// Immediate removal to keep UI responsive as requested
|
|
307
|
+
if (this.snackbars[index]?.onClose)
|
|
308
|
+
this.snackbars[index].onClose();
|
|
309
|
+
this.snackbarClosed.emit({ id, item: this.snackbars[index] });
|
|
310
|
+
this.snackbars = this.snackbars.filter(item => item.id !== id);
|
|
311
|
+
this.animatedItems.delete(id);
|
|
312
|
+
this.animatedItems.delete(`${id}-closing`);
|
|
313
|
+
// Clean up countdown state for this item
|
|
314
|
+
if (this.countdownSeconds[id] !== undefined) {
|
|
315
|
+
const { [id]: _removed, ...rest } = this.countdownSeconds;
|
|
316
|
+
this.countdownSeconds = rest;
|
|
317
|
+
}
|
|
318
|
+
this.updateVisibleSnackbars();
|
|
319
|
+
}
|
|
320
|
+
async closeAll() {
|
|
321
|
+
Object.values(this.timers).forEach(t => cancelAnimationFrame(t.id));
|
|
322
|
+
this.timers = {};
|
|
323
|
+
this.snackbars.forEach(item => {
|
|
324
|
+
if (item.onClose)
|
|
325
|
+
item.onClose();
|
|
326
|
+
this.snackbarClosed.emit({ id: item.id, item });
|
|
327
|
+
});
|
|
328
|
+
this.snackbars = [];
|
|
329
|
+
this.visibleSnackbars = [];
|
|
330
|
+
this.animatedItems.clear();
|
|
331
|
+
}
|
|
332
|
+
async closeNext() {
|
|
333
|
+
if (this.snackbars.length === 0)
|
|
334
|
+
return;
|
|
335
|
+
let idToClose;
|
|
336
|
+
if (this.stackMode === 'queue') {
|
|
337
|
+
// FIFO: close the oldest item (last in array since newest is first)
|
|
338
|
+
idToClose = this.snackbars[this.snackbars.length - 1].id;
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
// stack / lifo: close the top-most (first in array = newest)
|
|
342
|
+
idToClose = this.snackbars[0].id;
|
|
343
|
+
}
|
|
344
|
+
await this.close(idToClose);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Returns all current notifications
|
|
348
|
+
*/
|
|
349
|
+
async getAll() {
|
|
350
|
+
return [...this.snackbars];
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Pause timer for a specific notification
|
|
354
|
+
*/
|
|
355
|
+
async pause(id) {
|
|
356
|
+
if (this.timers[id]) {
|
|
357
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
358
|
+
this.timers[id].id = 0;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Resume timer for a specific notification
|
|
363
|
+
*/
|
|
364
|
+
async resume(id) {
|
|
365
|
+
if (this.timers[id] && this.timers[id].id === 0 && this.timers[id].remaining > 0) {
|
|
366
|
+
this.timers[id].lastTime = Date.now();
|
|
367
|
+
const loop = () => {
|
|
368
|
+
if (!this.timers[id])
|
|
369
|
+
return;
|
|
370
|
+
const now = Date.now();
|
|
371
|
+
const delta = now - this.timers[id].lastTime;
|
|
372
|
+
this.timers[id].lastTime = now;
|
|
373
|
+
if (!this.isHovered)
|
|
374
|
+
this.timers[id].remaining -= delta;
|
|
375
|
+
if (this.timers[id].remaining <= 0) {
|
|
376
|
+
this.close(id);
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Replace an existing notification completely
|
|
387
|
+
*/
|
|
388
|
+
async replace(id, newItem) {
|
|
389
|
+
const index = this.snackbars.findIndex(it => it.id === id);
|
|
390
|
+
if (index === -1)
|
|
391
|
+
return;
|
|
392
|
+
const replacedItem = { ...newItem, id };
|
|
393
|
+
const newSnackbars = [...this.snackbars];
|
|
394
|
+
newSnackbars[index] = replacedItem;
|
|
395
|
+
this.snackbars = newSnackbars;
|
|
396
|
+
this.updateVisibleSnackbars();
|
|
397
|
+
// Restart timer
|
|
398
|
+
if (this.timers[id]) {
|
|
399
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
400
|
+
delete this.timers[id];
|
|
401
|
+
}
|
|
402
|
+
if ((replacedItem.duration ?? 0) > 0)
|
|
403
|
+
this.startTimer(id, replacedItem.duration);
|
|
404
|
+
this.snackbarUpdated.emit({ id, item: replacedItem });
|
|
405
|
+
}
|
|
406
|
+
async promise(promise, data) {
|
|
407
|
+
const id = await this.add({
|
|
408
|
+
type: 'loading',
|
|
409
|
+
message: data.loading,
|
|
410
|
+
duration: 0,
|
|
411
|
+
closable: true
|
|
412
|
+
});
|
|
413
|
+
try {
|
|
414
|
+
const res = await (typeof promise === 'function' ? promise() : promise);
|
|
415
|
+
const successMsg = typeof data.success === 'function' ? data.success(res) : data.success;
|
|
416
|
+
this.update(id, {
|
|
417
|
+
type: 'success',
|
|
418
|
+
message: successMsg,
|
|
419
|
+
duration: data.duration || 4000,
|
|
420
|
+
closable: true
|
|
421
|
+
});
|
|
422
|
+
return res;
|
|
423
|
+
}
|
|
424
|
+
catch (err) {
|
|
425
|
+
const errorMsg = typeof data.error === 'function' ? data.error(err) : data.error;
|
|
426
|
+
this.update(id, {
|
|
427
|
+
type: 'error',
|
|
428
|
+
message: errorMsg,
|
|
429
|
+
duration: data.duration || 5000,
|
|
430
|
+
closable: true
|
|
431
|
+
});
|
|
432
|
+
throw err;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
async undoable(data) {
|
|
436
|
+
const id = await this.add({
|
|
437
|
+
message: data.message,
|
|
438
|
+
title: data.title,
|
|
439
|
+
type: data.type || 'neutral',
|
|
440
|
+
duration: data.duration || 6000,
|
|
441
|
+
action: data.action || {
|
|
442
|
+
label: 'UNDO',
|
|
443
|
+
onClick: () => {
|
|
444
|
+
data.onUndo();
|
|
445
|
+
this.close(id);
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
link: data.link
|
|
449
|
+
});
|
|
450
|
+
const listener = (event) => {
|
|
451
|
+
if (event.detail.id === id) {
|
|
452
|
+
if (data.onDismiss)
|
|
453
|
+
data.onDismiss();
|
|
454
|
+
this.element.removeEventListener('snackbarClosed', listener);
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
this.element.addEventListener('snackbarClosed', listener);
|
|
458
|
+
return id;
|
|
459
|
+
}
|
|
460
|
+
async update(id, updates) {
|
|
461
|
+
const index = this.snackbars.findIndex(it => it.id === id);
|
|
462
|
+
if (index !== -1) {
|
|
463
|
+
const countChanged = updates.count !== undefined && updates.count !== this.snackbars[index].count;
|
|
464
|
+
const updatedItem = { ...this.snackbars[index], ...updates };
|
|
465
|
+
const newSnackbars = [...this.snackbars];
|
|
466
|
+
newSnackbars[index] = updatedItem;
|
|
467
|
+
this.snackbars = newSnackbars;
|
|
468
|
+
this.updateVisibleSnackbars();
|
|
469
|
+
if (countChanged) {
|
|
470
|
+
this.triggerBadgePulse(id);
|
|
471
|
+
}
|
|
472
|
+
if (updates.duration !== undefined) {
|
|
473
|
+
if (this.timers[id]) {
|
|
474
|
+
cancelAnimationFrame(this.timers[id].id);
|
|
475
|
+
delete this.timers[id];
|
|
476
|
+
}
|
|
477
|
+
if (updates.duration > 0) {
|
|
478
|
+
this.startTimer(id, updates.duration);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
this.snackbarUpdated.emit({ id, item: updatedItem });
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
generateId() {
|
|
485
|
+
return `snackbar-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
486
|
+
}
|
|
487
|
+
startTimer(id, duration) {
|
|
488
|
+
const item = this.snackbars.find(s => s.id === id);
|
|
489
|
+
if (duration <= 0 || (item && item.sticky))
|
|
490
|
+
return;
|
|
491
|
+
this.timers[id] = {
|
|
492
|
+
remaining: duration,
|
|
493
|
+
lastTime: Date.now(),
|
|
494
|
+
duration: duration,
|
|
495
|
+
id: 0
|
|
496
|
+
};
|
|
497
|
+
const loop = () => {
|
|
498
|
+
if (!this.timers[id])
|
|
499
|
+
return;
|
|
500
|
+
const now = Date.now();
|
|
501
|
+
const delta = now - this.timers[id].lastTime;
|
|
502
|
+
this.timers[id].lastTime = now;
|
|
503
|
+
if (!this.isHovered) {
|
|
504
|
+
this.timers[id].remaining -= delta;
|
|
505
|
+
}
|
|
506
|
+
const progress = Math.min(100, Math.max(0, 100 - (this.timers[id].remaining / this.timers[id].duration) * 100));
|
|
507
|
+
const progressBar = this.getProgressBarElement(id);
|
|
508
|
+
if (progressBar) {
|
|
509
|
+
progressBar.style.width = `${progress}%`;
|
|
510
|
+
}
|
|
511
|
+
const progressRing = this.getProgressRingElement(id);
|
|
512
|
+
if (progressRing) {
|
|
513
|
+
const offset = 56.5 - (progress / 100) * 56.5;
|
|
514
|
+
progressRing.style.strokeDashoffset = `${offset}`;
|
|
515
|
+
}
|
|
516
|
+
// Countdown chip — update reactive state once per second so Stencil
|
|
517
|
+
// re-renders the value without direct DOM manipulation (which would be
|
|
518
|
+
// overwritten on the next virtual-DOM reconciliation).
|
|
519
|
+
if (this.showCountdown) {
|
|
520
|
+
const newSecs = Math.ceil(this.timers[id].remaining / 1000);
|
|
521
|
+
if (this.countdownSeconds[id] !== newSecs) {
|
|
522
|
+
this.countdownSeconds = { ...this.countdownSeconds, [id]: newSecs };
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
if (this.timers[id].remaining <= 0) {
|
|
526
|
+
this.close(id);
|
|
527
|
+
}
|
|
528
|
+
else {
|
|
529
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
this.timers[id].id = requestAnimationFrame(loop);
|
|
533
|
+
}
|
|
534
|
+
getProgressBarElement(id) {
|
|
535
|
+
return this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-progress`);
|
|
536
|
+
}
|
|
537
|
+
getProgressRingElement(id) {
|
|
538
|
+
return this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-progress-ring circle`);
|
|
539
|
+
}
|
|
540
|
+
handleCloseClick = (id) => {
|
|
541
|
+
this.close(id);
|
|
542
|
+
};
|
|
543
|
+
handleLinkClick = (id, item) => {
|
|
544
|
+
if (item.link) {
|
|
545
|
+
this.snackbarLinkClicked.emit({ id, item, link: item.link });
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
playSynthSound(type) {
|
|
549
|
+
try {
|
|
550
|
+
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();
|
|
551
|
+
const oscillator = audioCtx.createOscillator();
|
|
552
|
+
const gainNode = audioCtx.createGain();
|
|
553
|
+
oscillator.connect(gainNode);
|
|
554
|
+
gainNode.connect(audioCtx.destination);
|
|
555
|
+
if (type === 'success' || type === 'sovereign') {
|
|
556
|
+
oscillator.type = 'sine';
|
|
557
|
+
oscillator.frequency.setValueAtTime(880, audioCtx.currentTime);
|
|
558
|
+
oscillator.frequency.exponentialRampToValueAtTime(1320, audioCtx.currentTime + 0.1);
|
|
559
|
+
gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime);
|
|
560
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.3);
|
|
561
|
+
}
|
|
562
|
+
else if (type === 'error' || type === 'warning') {
|
|
563
|
+
oscillator.type = 'square';
|
|
564
|
+
oscillator.frequency.setValueAtTime(220, audioCtx.currentTime);
|
|
565
|
+
oscillator.frequency.exponentialRampToValueAtTime(110, audioCtx.currentTime + 0.1);
|
|
566
|
+
gainNode.gain.setValueAtTime(0.05, audioCtx.currentTime);
|
|
567
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.4);
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
oscillator.type = 'sine';
|
|
571
|
+
oscillator.frequency.setValueAtTime(440, audioCtx.currentTime);
|
|
572
|
+
gainNode.gain.setValueAtTime(0.03, audioCtx.currentTime);
|
|
573
|
+
gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.2);
|
|
574
|
+
}
|
|
575
|
+
oscillator.start();
|
|
576
|
+
oscillator.stop(audioCtx.currentTime + 0.5);
|
|
577
|
+
}
|
|
578
|
+
catch (e) { }
|
|
579
|
+
}
|
|
580
|
+
toggleExpand(id) {
|
|
581
|
+
const newExpanded = new Set(this.expandedSnackbars);
|
|
582
|
+
if (newExpanded.has(id)) {
|
|
583
|
+
newExpanded.delete(id);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
newExpanded.add(id);
|
|
587
|
+
}
|
|
588
|
+
this.expandedSnackbars = newExpanded;
|
|
589
|
+
}
|
|
590
|
+
triggerBadgePulse(id) {
|
|
591
|
+
const badge = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"] .snackbar-badge`);
|
|
592
|
+
if (badge) {
|
|
593
|
+
badge.classList.remove('pulse');
|
|
594
|
+
badge.classList.add('pulse');
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
spawnParticles(id) {
|
|
598
|
+
if (typeof window === 'undefined')
|
|
599
|
+
return;
|
|
600
|
+
// Lightweight CSS-only particle burst.
|
|
601
|
+
// All motion is handled by @keyframes in snackbar.scss — no WAAPI needed.
|
|
602
|
+
const EMOJIS = ['✨', '⭐', '💫', '🌟'];
|
|
603
|
+
const COUNTS = { burst: 10, float: 8, glint: 6 };
|
|
604
|
+
setTimeout(() => {
|
|
605
|
+
const container = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${id}"]`);
|
|
606
|
+
if (!container)
|
|
607
|
+
return;
|
|
608
|
+
if (getComputedStyle(container).position === 'static') {
|
|
609
|
+
container.style.position = 'relative';
|
|
610
|
+
container.style.overflow = 'visible';
|
|
611
|
+
}
|
|
612
|
+
const spawn = (type, index, total) => {
|
|
613
|
+
const p = document.createElement('span');
|
|
614
|
+
p.className = `sb-particle sb-particle--${type}`;
|
|
615
|
+
const angle = (Math.PI * 2 * index) / total;
|
|
616
|
+
const velocity = 80 + Math.random() * 120;
|
|
617
|
+
const tx = Math.round(Math.cos(angle) * velocity);
|
|
618
|
+
const ty = Math.round(Math.sin(angle) * velocity);
|
|
619
|
+
const rotation = Math.round(Math.random() * 1080 - 540);
|
|
620
|
+
const duration = (1.0 + Math.random() * 0.8).toFixed(2);
|
|
621
|
+
const delay = (Math.random() * 0.15).toFixed(2);
|
|
622
|
+
if (type === 'burst') {
|
|
623
|
+
const size = (6 + Math.random() * 6).toFixed(1);
|
|
624
|
+
p.style.cssText = `--tx:${tx};--ty:${ty};--r:${rotation};--d:${duration}s;--delay:${delay}s;--size:${size}px`;
|
|
625
|
+
}
|
|
626
|
+
else if (type === 'float') {
|
|
627
|
+
const size = (12 + Math.random() * 10).toFixed(1);
|
|
628
|
+
p.textContent = EMOJIS[Math.floor(Math.random() * EMOJIS.length)];
|
|
629
|
+
p.style.cssText = `--tx:${tx};--ty:${ty};--r:${rotation};--d:${duration}s;--delay:${delay}s;--size:${size}px`;
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
const size = (4 + Math.random() * 5).toFixed(1);
|
|
633
|
+
const ox = Math.round((Math.random() - 0.5) * 60);
|
|
634
|
+
const oy = Math.round((Math.random() - 0.5) * 30);
|
|
635
|
+
p.style.cssText = `top:calc(50% + ${oy}px);left:calc(50% + ${ox}px);--d:${(0.6 + Math.random() * 0.5).toFixed(2)}s;--delay:${delay}s;--size:${size}px`;
|
|
636
|
+
}
|
|
637
|
+
container.appendChild(p);
|
|
638
|
+
// Remove after the animation finishes (duration + delay + 50ms grace)
|
|
639
|
+
const cleanupMs = (parseFloat(duration) + parseFloat(delay)) * 1000 + 50;
|
|
640
|
+
setTimeout(() => p.remove(), cleanupMs);
|
|
641
|
+
};
|
|
642
|
+
let bi = 0, fi = 0, gi = 0;
|
|
643
|
+
const total = COUNTS.burst + COUNTS.float + COUNTS.glint;
|
|
644
|
+
for (let i = 0; i < total; i++) {
|
|
645
|
+
const roll = i % 3;
|
|
646
|
+
if (roll === 0 && bi < COUNTS.burst) {
|
|
647
|
+
spawn('burst', bi++, COUNTS.burst);
|
|
648
|
+
}
|
|
649
|
+
else if (roll === 1 && fi < COUNTS.float) {
|
|
650
|
+
spawn('float', fi++, COUNTS.float);
|
|
651
|
+
}
|
|
652
|
+
else if (gi < COUNTS.glint) {
|
|
653
|
+
spawn('glint', gi++, COUNTS.glint);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}, 80);
|
|
657
|
+
}
|
|
658
|
+
handleKeyDown = (e, id, index) => {
|
|
659
|
+
if (e.key === 'Delete' || e.key === 'Backspace') {
|
|
660
|
+
this.close(id);
|
|
661
|
+
}
|
|
662
|
+
else if (e.key === 'ArrowDown') {
|
|
663
|
+
const next = this.element.shadowRoot?.querySelector(`[data-stack-index="${index + 1}"]`);
|
|
664
|
+
if (next)
|
|
665
|
+
next.focus();
|
|
666
|
+
}
|
|
667
|
+
else if (e.key === 'ArrowUp') {
|
|
668
|
+
const prev = this.element.shadowRoot?.querySelector(`[data-stack-index="${index - 1}"]`);
|
|
669
|
+
if (prev)
|
|
670
|
+
prev.focus();
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
handleActionClick = (id, item) => {
|
|
674
|
+
this.snackbarActionClicked.emit({ id, item });
|
|
675
|
+
if (item.action && item.action.onClick) {
|
|
676
|
+
item.action.onClick();
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
handleMouseDown = (e, id) => {
|
|
680
|
+
this.isDragging = id;
|
|
681
|
+
this.startX = e.clientX;
|
|
682
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
683
|
+
document.addEventListener('mousemove', this.handleMouseMove);
|
|
684
|
+
document.addEventListener('mouseup', this.handleMouseUp);
|
|
685
|
+
};
|
|
686
|
+
handleMouseMove = (e) => {
|
|
687
|
+
if (!this.isDragging)
|
|
688
|
+
return;
|
|
689
|
+
const currentX = e.clientX;
|
|
690
|
+
const diff = currentX - this.startX;
|
|
691
|
+
this.dragX = { ...this.dragX, [this.isDragging]: diff };
|
|
692
|
+
};
|
|
693
|
+
handleMouseUp = () => {
|
|
694
|
+
if (!this.isDragging)
|
|
695
|
+
return;
|
|
696
|
+
const id = this.isDragging;
|
|
697
|
+
const offset = this.dragX[id] || 0;
|
|
698
|
+
if (Math.abs(offset) > 120) {
|
|
699
|
+
this.dragX = { ...this.dragX, [id]: offset > 0 ? 500 : -500 };
|
|
700
|
+
setTimeout(() => this.close(id), 200);
|
|
701
|
+
}
|
|
702
|
+
else {
|
|
703
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
704
|
+
}
|
|
705
|
+
this.isDragging = null;
|
|
706
|
+
document.removeEventListener('mousemove', this.handleMouseMove);
|
|
707
|
+
document.removeEventListener('mouseup', this.handleMouseUp);
|
|
708
|
+
};
|
|
709
|
+
handleMouseEnter = () => {
|
|
710
|
+
if (!this.pauseOnHover)
|
|
711
|
+
return;
|
|
712
|
+
this.isHovered = true;
|
|
713
|
+
const now = Date.now();
|
|
714
|
+
Object.values(this.timers).forEach(timer => {
|
|
715
|
+
timer.lastTime = now;
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
handleTouchStart = (e, id) => {
|
|
719
|
+
this.isDragging = id;
|
|
720
|
+
this.startX = e.touches[0].clientX;
|
|
721
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
722
|
+
};
|
|
723
|
+
handleTouchMove = (e, id) => {
|
|
724
|
+
if (this.isDragging !== id)
|
|
725
|
+
return;
|
|
726
|
+
const currentX = e.touches[0].clientX;
|
|
727
|
+
const diff = currentX - this.startX;
|
|
728
|
+
// RTL: invert resistance direction
|
|
729
|
+
const isRight = this.dir === 'rtl' ? this.position.includes('left') : this.position.includes('right');
|
|
730
|
+
const isLeft = this.dir === 'rtl' ? this.position.includes('right') : this.position.includes('left');
|
|
731
|
+
const resistance = (isRight && diff < 0) || (isLeft && diff > 0) ? 0.2 : 1;
|
|
732
|
+
this.dragX = { ...this.dragX, [id]: diff * resistance };
|
|
733
|
+
if (Math.abs(diff) > 10)
|
|
734
|
+
e.preventDefault();
|
|
735
|
+
};
|
|
736
|
+
handleTouchEnd = (id) => {
|
|
737
|
+
if (this.isDragging !== id)
|
|
738
|
+
return;
|
|
739
|
+
const offset = this.dragX[id] || 0;
|
|
740
|
+
const threshold = 100;
|
|
741
|
+
// RTL: mirror the dismiss direction for left/right anchored positions
|
|
742
|
+
const isRight = this.dir === 'rtl' ? this.position.includes('left') : this.position.includes('right');
|
|
743
|
+
const isLeft = this.dir === 'rtl' ? this.position.includes('right') : this.position.includes('left');
|
|
744
|
+
const shouldDismiss = (isRight && offset > threshold) ||
|
|
745
|
+
(isLeft && offset < -threshold) ||
|
|
746
|
+
(this.position.includes('center') && Math.abs(offset) > threshold);
|
|
747
|
+
if (shouldDismiss) {
|
|
748
|
+
this.dragX = { ...this.dragX, [id]: offset > 0 ? 500 : -500 };
|
|
749
|
+
setTimeout(() => this.close(id), 200);
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
this.dragX = { ...this.dragX, [id]: 0 };
|
|
753
|
+
}
|
|
754
|
+
this.isDragging = null;
|
|
755
|
+
};
|
|
756
|
+
handleMouseLeave = () => {
|
|
757
|
+
if (!this.pauseOnHover)
|
|
758
|
+
return;
|
|
759
|
+
this.isHovered = false;
|
|
760
|
+
const now = Date.now();
|
|
761
|
+
Object.values(this.timers).forEach(timer => {
|
|
762
|
+
timer.lastTime = now;
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
handleInputSubmit = (id, item, value) => {
|
|
766
|
+
if (item.input && item.input.onSubmit) {
|
|
767
|
+
item.input.onSubmit(value);
|
|
768
|
+
this.close(id);
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
renderIcon(item) {
|
|
772
|
+
if (item.avatar) {
|
|
773
|
+
return (index.h("div", { class: "snackbar-avatar" }, index.h("img", { src: item.avatar, alt: "" })));
|
|
774
|
+
}
|
|
775
|
+
if (item.icon) {
|
|
776
|
+
return (index.h("div", { class: "snackbar-custom-icon" }, index.h("ui-icon", { name: item.icon, library: item.iconLibrary || this.iconLibrary, size: "1.5rem" })));
|
|
777
|
+
}
|
|
778
|
+
const type = item.type;
|
|
779
|
+
if (type === 'success') {
|
|
780
|
+
return (index.h("div", { class: `snackbar-icon-draw ${type}` }, index.h("svg", { viewBox: "0 0 52 52" }, index.h("circle", { class: "circle", cx: "26", cy: "26", r: "25", fill: "none" }), index.h("path", { class: "check", fill: "none", d: "M14.1 27.2l7.1 7.2 16.7-16.8" }))));
|
|
781
|
+
}
|
|
782
|
+
if (type === 'error') {
|
|
783
|
+
return (index.h("div", { class: `snackbar-icon-draw ${type}` }, index.h("svg", { viewBox: "0 0 52 52" }, index.h("circle", { class: "circle", cx: "26", cy: "26", r: "25", fill: "none" }), index.h("path", { class: "cross", fill: "none", d: "M16 16 36 36 M36 16 16 36" }))));
|
|
784
|
+
}
|
|
785
|
+
const icons = {
|
|
786
|
+
success: index.h("ui-icon", { name: "check-circle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-success-600)' } }),
|
|
787
|
+
error: index.h("ui-icon", { name: "alert-circle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-danger-600)' } }),
|
|
788
|
+
warning: index.h("ui-icon", { name: "alert-triangle", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-warning-600)' } }),
|
|
789
|
+
info: index.h("ui-icon", { name: "info", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-info-600)' } }),
|
|
790
|
+
neutral: index.h("ui-icon", { name: "bell", library: this.iconLibrary, size: "1.25em", style: { color: 'var(--color-neutral-600, #6b7280)' } }),
|
|
791
|
+
loading: index.h("span", { class: "snackbar-loading-spinner" }),
|
|
792
|
+
sovereign: index.h("ui-icon", { name: "crown", library: this.iconLibrary, size: "1.25em", style: { color: '#fbbf24' } })
|
|
793
|
+
};
|
|
794
|
+
return index.h("div", { class: `snackbar-icon ${type}` }, icons[type]);
|
|
795
|
+
}
|
|
796
|
+
getAriaLive(item) {
|
|
797
|
+
if (item.priority === 'urgent')
|
|
798
|
+
return 'assertive';
|
|
799
|
+
return (item.priority === 'high' || item.type === 'error') ? 'polite' : 'off';
|
|
800
|
+
}
|
|
801
|
+
render() {
|
|
802
|
+
const containerClasses = `snackbar-container ${this.position} ${this.cardStack ? 'card-stack' : ''} ${this.isHovered ? 'hovered' : ''} ${this.dir === 'rtl' ? 'rtl' : ''}`;
|
|
803
|
+
return (index.h("div", { key: '2ca2794f89a74dc183c6490ffcc65e493eaaea30', class: containerClasses, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, role: (this.visibleSnackbars.some(s => s.type === 'error' || s.priority === 'urgent')) ? 'alert' : 'status', "aria-atomic": "true" }, this.snackbars.length > 1 && (index.h("ui-button", { key: 'e8288b58adc2f402e120dcacbb3d88993d535123', variant: "ghost", size: "sm", icon: "list-x", iconLibrary: this.iconLibrary, iconSize: "14px", onClick: () => this.closeAll(), ariaLabel: "Clear all notifications", class: "snackbar-clear-all", label: `Clear All (${this.snackbars.length})` }, index.h("span", { key: '608cb677315ac751d626e2d615ca4636e9d4a11e', class: "kb-hint", slot: "end" }, "Esc"))), this.cardStack && !this.isHovered && this.snackbars.length > 1 && (index.h("div", { key: '63bfc95aa5d3b7b5daa77cd286eadf2a57fcfcb4', class: "stack-count-badge", onClick: () => { this.isHovered = true; }, title: "Click to expand all notifications" }, index.h("span", { key: '1b3e099e53747efe22a51b6d27aacf7e7b2ad069', class: "stack-count-number" }, this.snackbars.length), index.h("span", { key: 'e2c05e3e0334dfe39043a0bdbc05680de497f473', class: "stack-count-label" }, "notifications"))), this.visibleSnackbars.map((item, index$1) => {
|
|
804
|
+
const stackOffset = this.cardStack && !this.isHovered ? index$1 : 0;
|
|
805
|
+
const isClosing = this.animatedItems.has(`${item.id}-closing`);
|
|
806
|
+
return (index.h("div", { key: item.id, "data-snackbar-id": item.id, "data-stack-index": index$1, class: `snackbar-item ${item.type} ${item.variant || 'filled'} ${item.size || 'md'} ${this.openMode} ${item.customClass || ''} ${this.isDragging === item.id ? 'dragging' : ''} ${isClosing ? 'closing' : ''} theme-${item.theme || this.theme}`, style: {
|
|
807
|
+
animationDelay: `${index$1 * 0.1}s`,
|
|
808
|
+
'--stack-index': `${stackOffset}`,
|
|
809
|
+
'transform': this.dragX[item.id] ? `translateX(${this.dragX[item.id]}px) rotate(${this.dragX[item.id] / 20}deg)` : undefined,
|
|
810
|
+
'opacity': this.dragX[item.id] ? `${Math.max(0, 1 - Math.abs(this.dragX[item.id]) / 400)}` : undefined,
|
|
811
|
+
'cursor': this.isDragging === item.id ? 'grabbing' : undefined
|
|
812
|
+
}, role: this.getAriaLive(item) !== 'off' ? 'log' : undefined, "aria-live": this.getAriaLive(item), onMouseDown: (e) => this.handleMouseDown(e, item.id), onKeyDown: (e) => this.handleKeyDown(e, item.id, index$1), onTouchStart: (e) => this.handleTouchStart(e, item.id), onTouchMove: (e) => this.handleTouchMove(e, item.id), onTouchEnd: () => this.handleTouchEnd(item.id), tabIndex: 0 }, index.h("div", { class: "item-main-row" }, this.renderIcon(item), index.h("div", { class: "snackbar-content" }, index.h("div", { style: { display: 'flex', alignItems: 'center', gap: '8px' } }, item.title && index.h("div", { class: "snackbar-title", "aria-label": `Title: ${item.title}` }, item.title), (item.count ?? 0) > 1 && (index.h("ui-button", { variant: "ghost", size: "sm", onClick: () => this.toggleExpand(item.id), ariaLabel: `${item.count} occurrences. Click to toggle history.`, label: `${item.count}`, icon: this.expandedSnackbars.has(item.id) ? 'chevron-up' : 'chevron-down', iconLibrary: this.iconLibrary, iconSize: "10px", iconPosition: "right" }))), this.expandedSnackbars.has(item.id) && item.history && (index.h("div", { class: "snackbar-history" }, item.history.map((historyEntry, i) => (index.h("div", { class: "history-item", key: i }, index.h("span", { class: "history-time" }, new Date(historyEntry.timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })), index.h("span", { class: "history-msg" }, historyEntry.message)))))), item.html ? (index.h("div", { class: "snackbar-message", innerHTML: security.sanitizeHTML(item.message), role: "document" })) : item.slot ? (index.h("div", { class: "snackbar-slot-content" }, index.h("slot", { name: item.slot }))) : (index.h("p", { class: "snackbar-message", "aria-label": `Message: ${item.message}` }, item.message))), item.closable !== false && (index.h("ui-button", { variant: "ghost", size: "sm", iconOnly: true, icon: "x", iconLibrary: this.iconLibrary, iconSize: "1.2em", onButtonClick: () => this.handleCloseClick(item.id), ariaLabel: "Close snackbar", class: "snackbar-close" }))), item.input && (index.h("div", { class: "snackbar-quick-input" }, index.h("ui-input", { type: item.input.type || 'text', placeholder: item.input.placeholder, onInputKeydown: (e) => {
|
|
813
|
+
if (e.detail.key === 'Enter')
|
|
814
|
+
this.handleInputSubmit(item.id, item, e.detail.target.value);
|
|
815
|
+
}, autoFocus: true, size: "sm", fullWidth: true }))), (item.link || item.action || (item.actions && item.actions.length > 0)) && (index.h("div", { class: "snackbar-actions" }, item.action && (index.h("ui-button", { variant: "ghost", size: "sm", onButtonClick: () => this.handleActionClick(item.id, item), icon: item.action.icon, iconLibrary: this.iconLibrary, iconSize: "12px", label: item.action.label })), item.actions && item.actions.map(action => (index.h("ui-button", { variant: action.variant, size: "sm", onButtonClick: () => {
|
|
816
|
+
if (action.onClick)
|
|
817
|
+
action.onClick();
|
|
818
|
+
this.handleActionClick(item.id, item);
|
|
819
|
+
},
|
|
820
|
+
// class={`snackbar-action-btn variant-${action.variant || 'secondary'}`}
|
|
821
|
+
icon: action.icon, iconLibrary: this.iconLibrary, iconSize: "12px", label: action.label }))), item.link && (index.h("a", { class: "snackbar-link", href: item.link.url, onClick: (e) => {
|
|
822
|
+
e.preventDefault();
|
|
823
|
+
this.handleLinkClick(item.id, item);
|
|
824
|
+
} }, item.link.text)))), (item.duration ?? 0) > 0 && item.progress === 'ring' && (index.h("svg", { class: "snackbar-progress-ring", viewBox: "0 0 20 20", "aria-hidden": "true" }, index.h("circle", { cx: "10", cy: "10", r: "9" }))), (item.duration ?? 0) > 0 && item.progress !== 'ring' && (index.h("div", { class: `snackbar-progress ${item.type}`, "aria-hidden": "true" })), (item.duration ?? 0) > 0 && this.showCountdown && !item.sticky && (index.h("span", { class: "snackbar-countdown", "aria-hidden": "true" }, this.countdownSeconds[item.id] ?? Math.ceil((item.duration ?? 0) / 1000), "s")), item.history && item.history.length > 1 && (index.h("div", { class: "snackbar-history-indicator" }, index.h("ui-button", { variant: "ghost", size: "sm", onButtonClick: (e) => {
|
|
825
|
+
const originalEvent = e.detail; // Get the native event from CustomEvent detail
|
|
826
|
+
originalEvent.stopPropagation();
|
|
827
|
+
const itemEl = originalEvent.currentTarget.closest('.snackbar-item');
|
|
828
|
+
const isExpanded = itemEl?.classList.toggle('history-expanded');
|
|
829
|
+
const btn = originalEvent.currentTarget;
|
|
830
|
+
btn.label = isExpanded ? `Hide history` : `View previous history (${(item.history ?? []).length - 1})`;
|
|
831
|
+
}, label: `View previous history (${(item.history ?? []).length - 1})` }), index.h("div", { class: "snackbar-history-list" }, item.history.slice(0, -1).reverse().map(historyEntry => (index.h("div", { class: "history-item" }, index.h("span", { class: "history-time" }, new Date(historyEntry.timestamp).toLocaleTimeString()), index.h("span", { class: "history-msg" }, historyEntry.message)))))))));
|
|
832
|
+
}), this.enableSlots && index.h("slot", { key: '5a2fd1ebe5ba293ecf8dae3e83cbfe40ce25c995' })));
|
|
833
|
+
}
|
|
834
|
+
componentDidRender() {
|
|
835
|
+
this.visibleSnackbars.forEach(item => {
|
|
836
|
+
if (!this.animatedItems.has(item.id)) {
|
|
837
|
+
this.animatedItems.add(item.id);
|
|
838
|
+
setTimeout(() => {
|
|
839
|
+
const element = this.element.shadowRoot?.querySelector(`[data-snackbar-id="${item.id}"]`);
|
|
840
|
+
if (element)
|
|
841
|
+
element.classList.add('show');
|
|
842
|
+
}, 10);
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
static get watchers() { return {
|
|
847
|
+
"textDirection": [{
|
|
848
|
+
"onTextDirectionChange": 0
|
|
849
|
+
}],
|
|
850
|
+
"position": [{
|
|
851
|
+
"positionChanged": 0
|
|
852
|
+
}],
|
|
853
|
+
"maxVisible": [{
|
|
854
|
+
"maxVisibleChanged": 0
|
|
855
|
+
}],
|
|
856
|
+
"stackMode": [{
|
|
857
|
+
"stackModeChanged": 0
|
|
858
|
+
}]
|
|
859
|
+
}; }
|
|
860
|
+
};
|
|
861
|
+
Snackbar.style = snackbarCss();
|
|
862
|
+
|
|
863
|
+
exports.ui_snackbar = Snackbar;
|