atomicuilibrary 0.1.0 → 0.1.3
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/dist/cjs/category-section.cjs.entry.js +2 -2
- package/dist/cjs/dom-BvBb0kmW.js +267 -0
- package/dist/cjs/exploration-project-tailwind.cjs.js +2 -2
- package/dist/cjs/{index-ClkOYpT8.js → index-C32cWsm5.js} +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +3 -3
- package/dist/cjs/library-card.cjs.entry.js +2 -2
- package/dist/cjs/lm-container_2.cjs.entry.js +2 -2
- package/dist/cjs/lm-panel_3.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-step.cjs.entry.js +2 -2
- package/dist/cjs/nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/smart-step.cjs.entry.js +3 -3
- package/dist/cjs/timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-accordion_11.cjs.entry.js +132 -50
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2 -2
- package/dist/cjs/ui-anchor.cjs.entry.js +2 -2
- package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +3 -3
- package/dist/cjs/ui-aside-panel.cjs.entry.js +10 -11
- package/dist/cjs/ui-avatar-group_5.cjs.entry.js +1694 -0
- package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ui-callout-banner.cjs.entry.js +2 -2
- package/dist/cjs/ui-card.cjs.entry.js +4 -3
- package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/ui-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/ui-code-preview.cjs.entry.js +2 -2
- package/dist/cjs/ui-color-picker.cjs.entry.js +256 -22
- package/dist/cjs/ui-command-palette.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-box.cjs.entry.js +85 -11
- package/dist/cjs/ui-dialog-content.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +1 -1
- package/dist/cjs/ui-divider.cjs.entry.js +1 -1
- package/dist/cjs/ui-dock-host.cjs.entry.js +4 -4
- package/dist/cjs/ui-dock.cjs.entry.js +2 -2
- package/dist/cjs/ui-drag-drop.cjs.entry.js +2 -2
- package/dist/cjs/ui-dropdown_2.cjs.entry.js +104 -34
- package/dist/cjs/ui-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab-item.cjs.entry.js +2 -2
- package/dist/cjs/ui-fab.cjs.entry.js +4 -4
- package/dist/cjs/ui-file-upload.cjs.entry.js +143 -44
- package/dist/cjs/ui-horizontal-nav.cjs.entry.js +2 -2
- package/dist/cjs/ui-knob.cjs.entry.js +1 -1
- package/dist/cjs/ui-label.cjs.entry.js +473 -0
- package/dist/cjs/ui-library.cjs.entry.js +2 -2
- package/dist/cjs/ui-list-group_2.cjs.entry.js +349 -60
- package/dist/cjs/ui-list.cjs.entry.js +76 -42
- package/dist/cjs/ui-masonry.cjs.entry.js +1 -1
- package/dist/cjs/ui-meter-group.cjs.entry.js +5 -4
- package/dist/cjs/ui-navigation-item.cjs.entry.js +5 -5
- package/dist/cjs/ui-number-input.cjs.entry.js +7 -3
- package/dist/cjs/ui-otp-input.cjs.entry.js +5 -5
- package/dist/cjs/{ui-pagination_4.cjs.entry.js → ui-pagination_3.cjs.entry.js} +35 -506
- package/dist/cjs/ui-panel.cjs.entry.js +1 -1
- package/dist/cjs/ui-pattern-input.cjs.entry.js +46 -11
- package/dist/cjs/ui-progress.cjs.entry.js +66 -9
- package/dist/cjs/ui-range-slider.cjs.entry.js +2 -2
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +2 -2
- package/dist/cjs/ui-scroll-top.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +2 -2
- package/dist/cjs/ui-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/ui-speed-dial.cjs.entry.js +1 -1
- package/dist/cjs/ui-speedometer.cjs.entry.js +28 -17
- package/dist/cjs/ui-splitter.cjs.entry.js +1 -1
- package/dist/cjs/ui-step.cjs.entry.js +2 -2
- package/dist/cjs/ui-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +14 -13
- package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ui-tag.cjs.entry.js +58 -13
- package/dist/cjs/ui-timeline.cjs.entry.js +10 -2
- package/dist/cjs/ui-timer.cjs.entry.js +2 -2
- package/dist/cjs/ui-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/ui-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-transfer-list.cjs.entry.js +6 -6
- package/dist/cjs/ui-tree.cjs.entry.js +30 -15
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +2 -2
- package/dist/collection/assets/js/component-config.js +1 -0
- package/dist/collection/assets/js/demo-loader.js +2 -0
- package/dist/collection/assets/js/demos/about-demo.js +13 -13
- package/dist/collection/assets/js/demos/accordion-demo.js +66 -66
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +102 -102
- package/dist/collection/assets/js/demos/anchor-demo.js +27 -28
- package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +12 -12
- package/dist/collection/assets/js/demos/aside-panel-demo.js +51 -51
- package/dist/collection/assets/js/demos/avatar-demo.js +433 -95
- package/dist/collection/assets/js/demos/badge-demo.js +51 -52
- package/dist/collection/assets/js/demos/breadcrumb-demo.js +7 -7
- package/dist/collection/assets/js/demos/button-demo.js +117 -107
- package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
- package/dist/collection/assets/js/demos/callout-banner-demo.js +23 -23
- package/dist/collection/assets/js/demos/card-demo.js +23 -22
- package/dist/collection/assets/js/demos/carousel-demo.js +632 -360
- package/dist/collection/assets/js/demos/checkbox-demo.js +124 -7
- package/dist/collection/assets/js/demos/color-picker-demo.js +394 -100
- package/dist/collection/assets/js/demos/command-palette-demo.js +182 -65
- package/dist/collection/assets/js/demos/complex-form-demo.js +5 -5
- package/dist/collection/assets/js/demos/context-menu-demo.js +43 -43
- package/dist/collection/assets/js/demos/dialog-demo-temp.js +3 -3
- package/dist/collection/assets/js/demos/dialog-demo.js +336 -230
- package/dist/collection/assets/js/demos/divider-demo.js +59 -62
- package/dist/collection/assets/js/demos/dock-demo.js +12 -12
- package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
- package/dist/collection/assets/js/demos/documentation-demo.js +34 -34
- package/dist/collection/assets/js/demos/drag-drop-demo.js +2 -2
- package/dist/collection/assets/js/demos/dropdown-demo.js +140 -136
- package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +2 -2
- package/dist/collection/assets/js/demos/empty-state-demo.js +294 -78
- package/dist/collection/assets/js/demos/fab-demo.js +95 -11
- package/dist/collection/assets/js/demos/file-upload-demo.js +641 -171
- package/dist/collection/assets/js/demos/home-components.js +2 -2
- package/dist/collection/assets/js/demos/horizontal-nav-demo.js +6 -6
- package/dist/collection/assets/js/demos/icon-demo.js +17 -17
- package/dist/collection/assets/js/demos/input-demo.js +147 -143
- package/dist/collection/assets/js/demos/knob-demo.js +29 -30
- package/dist/collection/assets/js/demos/label-demo.js +697 -0
- package/dist/collection/assets/js/demos/layout-manager-demo.js +55 -55
- package/dist/collection/assets/js/demos/list-demo.js +185 -122
- package/dist/collection/assets/js/demos/loader-demo.js +48 -48
- package/dist/collection/assets/js/demos/masonry-demo.js +568 -140
- package/dist/collection/assets/js/demos/meter-group-demo.js +14 -16
- package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +25 -25
- package/dist/collection/assets/js/demos/my-profile-demo.js +27 -27
- package/dist/collection/assets/js/demos/nav-bar-demo.js +1 -1
- package/dist/collection/assets/js/demos/number-input-demo.js +262 -211
- package/dist/collection/assets/js/demos/pagination-demo.js +29 -29
- package/dist/collection/assets/js/demos/panel-demo.js +18 -25
- package/dist/collection/assets/js/demos/pattern-input-demo.js +278 -40
- package/dist/collection/assets/js/demos/popover-demo.js +240 -149
- package/dist/collection/assets/js/demos/progress-demo.js +170 -156
- package/dist/collection/assets/js/demos/radio-demo.js +73 -12
- package/dist/collection/assets/js/demos/range-slider-demo.js +33 -33
- package/dist/collection/assets/js/demos/rating-demo.js +19 -19
- package/dist/collection/assets/js/demos/scroll-top-demo.js +8 -9
- package/dist/collection/assets/js/demos/skeleton-demo.js +110 -52
- package/dist/collection/assets/js/demos/skeleton-performance-demo.js +2 -2
- package/dist/collection/assets/js/demos/smart-dialog-demo.js +12 -12
- package/dist/collection/assets/js/demos/smart-menu-demo.js +17 -17
- package/dist/collection/assets/js/demos/snackbar-demo.js +53 -53
- package/dist/collection/assets/js/demos/speed-dial-demo.js +14 -14
- package/dist/collection/assets/js/demos/speedometer-demo.js +40 -32
- package/dist/collection/assets/js/demos/split-button-demo.js +2 -2
- package/dist/collection/assets/js/demos/splitter-demo.js +14 -14
- package/dist/collection/assets/js/demos/stack-demo.js +27 -27
- package/dist/collection/assets/js/demos/stepper-demo.js +49 -49
- package/dist/collection/assets/js/demos/switch-demo.js +561 -125
- package/dist/collection/assets/js/demos/tabs-demo.js +22 -22
- package/dist/collection/assets/js/demos/tag-demo.js +62 -62
- package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
- package/dist/collection/assets/js/demos/timeline-demo.js +10 -10
- package/dist/collection/assets/js/demos/timeline-playground.js +2 -2
- package/dist/collection/assets/js/demos/timer-demo.js +10 -10
- package/dist/collection/assets/js/demos/toolbar-demo.js +17 -17
- package/dist/collection/assets/js/demos/tooltip-demo.js +92 -90
- package/dist/collection/assets/js/demos/top-bar-demo.js +6 -6
- package/dist/collection/assets/js/demos/transfer-list-demo.js +20 -20
- package/dist/collection/assets/js/demos/tree-demo.js +50 -66
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/accordion/accordion.css +275 -9
- package/dist/collection/components/accordion/accordion.js +7 -6
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +5 -5
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
- package/dist/collection/components/anchor/anchor.css +1 -0
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
- package/dist/collection/components/aside-panel/aside-panel.css +2 -2
- package/dist/collection/components/aside-panel/aside-panel.js +10 -11
- package/dist/collection/components/avatar/avatar.css +6 -6
- package/dist/collection/components/avatar/avatar.js +63 -11
- package/dist/collection/components/badge/badge.css +27 -17
- package/dist/collection/components/badge/badge.js +6 -3
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
- package/dist/collection/components/button/button.css +1 -0
- package/dist/collection/components/button/button.js +3 -3
- package/dist/collection/components/button-toggle/button-toggle.js +2 -2
- package/dist/collection/components/button-toggle-group/button-toggle-group.css +161 -14
- package/dist/collection/components/button-toggle-group/button-toggle-group.js +2 -2
- package/dist/collection/components/callout-banner/callout-banner.css +75 -0
- package/dist/collection/components/callout-banner/callout-banner.js +1 -1
- package/dist/collection/components/card/card.css +221 -9
- package/dist/collection/components/card/card.js +3 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/code-preview/ui-code-preview.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +110 -6
- package/dist/collection/components/color-picker/color-picker.js +302 -26
- package/dist/collection/components/context-menu/context-menu.css +9 -9
- package/dist/collection/components/dialog-box/dialog-box.js +116 -14
- package/dist/collection/components/dialog-header/dialog-header.js +1 -1
- package/dist/collection/components/dock/dock.css +116 -3
- package/dist/collection/components/dock-host/ui-dock-host.js +3 -3
- package/dist/collection/components/drag-drop/drag-drop.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +101 -8
- package/dist/collection/components/dropdown/dropdown.js +94 -28
- package/dist/collection/components/empty-state/empty-state.js +1 -1
- package/dist/collection/components/fab/fab.css +87 -15
- package/dist/collection/components/fab/fab.js +3 -3
- package/dist/collection/components/fab-item/fab-item.js +1 -1
- package/dist/collection/components/file-upload/file-upload.css +1362 -31
- package/dist/collection/components/file-upload/file-upload.js +171 -50
- package/dist/collection/components/horizontal-nav/horizontal-nav.css +9 -9
- package/dist/collection/components/horizontal-nav/horizontal-nav.js +2 -2
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/input/input.css +9 -0
- package/dist/collection/components/input/input.js +20 -9
- package/dist/collection/components/label/label.css +583 -0
- package/dist/collection/components/label/label.js +1669 -0
- package/dist/collection/components/layout-manager/layout-manager.js +1 -1
- package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +1 -1
- package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +1 -1
- package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +1 -1
- package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +1 -1
- package/dist/collection/components/library/category-section.js +1 -1
- package/dist/collection/components/library/library-card.js +1 -1
- package/dist/collection/components/library/library.js +1 -1
- package/dist/collection/components/list/list.css +46 -5
- package/dist/collection/components/list/list.js +76 -42
- package/dist/collection/components/list-group/list-group.css +0 -2
- package/dist/collection/components/list-group/list-group.js +11 -5
- package/dist/collection/components/list-item/list-item.css +403 -131
- package/dist/collection/components/list-item/list-item.js +345 -61
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +2 -2
- package/dist/collection/components/meter-group/meter-group.css +5 -0
- package/dist/collection/components/meter-group/meter-group.js +3 -2
- package/dist/collection/components/my-step/my-step.js +1 -1
- package/dist/collection/components/nav-bar/nav-bar.css +4 -4
- package/dist/collection/components/nav-bar/nav-bar.js +6 -6
- package/dist/collection/components/number-input/number-input.js +6 -2
- package/dist/collection/components/otp-input/otp-input.css +10 -0
- package/dist/collection/components/otp-input/otp-input.js +3 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pattern-input/pattern-input.css +0 -1
- package/dist/collection/components/pattern-input/pattern-input.js +44 -9
- package/dist/collection/components/popover/popover.css +35 -7
- package/dist/collection/components/popover/popover.js +64 -9
- package/dist/collection/components/progress/progress.css +176 -32
- package/dist/collection/components/progress/progress.js +66 -8
- package/dist/collection/components/radio/radio.css +2 -0
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/range-slider/range-slider.css +284 -31
- package/dist/collection/components/range-slider/range-slider.js +5 -5
- package/dist/collection/components/rating/rating.css +151 -65
- package/dist/collection/components/rating/rating.js +31 -13
- package/dist/collection/components/resizable-panel/resizable-panel.js +1 -1
- package/dist/collection/components/skeleton/skeleton-loader.css +144 -44
- package/dist/collection/components/skeleton/skeleton-loader.js +11 -7
- package/dist/collection/components/smart-stepper/smart-step.js +2 -2
- package/dist/collection/components/smart-stepper/smart-stepper.js +1 -1
- package/dist/collection/components/speedometer/speedometer.css +26 -6
- package/dist/collection/components/speedometer/speedometer.js +26 -15
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/step/step.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/switch/switch.css +367 -8
- package/dist/collection/components/switch/switch.js +13 -12
- package/dist/collection/components/tag/tag.css +38 -12
- package/dist/collection/components/tag/tag.js +58 -13
- package/dist/collection/components/tag-group/tag-group.css +0 -1
- package/dist/collection/components/tag-group/tag-group.js +3 -3
- package/dist/collection/components/timeline/timeline.css +380 -317
- package/dist/collection/components/timeline/timeline.js +8 -0
- package/dist/collection/components/timeline-item/timeline-item.js +1 -1
- package/dist/collection/components/timer/timer.js +1 -1
- package/dist/collection/components/toggle-group/toggle-group.css +7 -3
- package/dist/collection/components/toggle-group/toggle-group.js +7 -3
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +4 -4
- package/dist/collection/components/top-bar/top-bar.js +2 -2
- package/dist/collection/components/transfer-list/transfer-list.css +13 -13
- package/dist/collection/components/transfer-list/transfer-list.js +4 -4
- package/dist/collection/components/tree/tree.css +35 -21
- package/dist/collection/components/tree/tree.js +28 -13
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +34 -16
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +46 -11
- package/dist/collection/components/ui-navigation-bar/navigation-item.css +7 -7
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +3 -3
- package/dist/collection/utils/dom.js +151 -151
- package/dist/components/avatar-group.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button-toggle.js +1 -1
- package/dist/components/button.js +1 -0
- package/dist/components/category-section2.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/context-menu.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/library-card2.js +1 -1
- package/dist/components/list-group.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/lm-container2.js +1 -1
- package/dist/components/lm-floating-window2.js +1 -1
- package/dist/components/lm-panel2.js +1 -1
- package/dist/components/lm-splitter2.js +1 -1
- package/dist/components/lm-tabs2.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/my-step.js +1 -1
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -0
- package/dist/components/radio.js +1 -1
- package/dist/components/range-slider.js +1 -1
- package/dist/components/rating.js +1 -1
- package/dist/components/resizable-panel.js +1 -1
- package/dist/components/skeleton-loader.js +1 -1
- package/dist/components/smart-step.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag-group.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/timeline-item.js +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/ui-accordion.js +1 -1
- package/dist/components/ui-advanced-data-table.js +1 -1
- package/dist/components/ui-anchor.js +1 -1
- package/dist/components/ui-animate-on-scroll.js +1 -1
- package/dist/components/ui-aside-panel.js +1 -1
- package/dist/components/ui-badge.js +1 -1
- package/dist/components/ui-breadcrumb-item.js +1 -1
- package/dist/components/ui-breadcrumb.js +1 -1
- package/dist/components/ui-button-toggle-group.js +1 -1
- package/dist/components/ui-button.js +1 -1
- package/dist/components/ui-callout-banner.js +1 -1
- package/dist/components/ui-card.js +1 -1
- package/dist/components/ui-carousel.js +1 -1
- package/dist/components/ui-code-editor.js +1 -1
- package/dist/components/ui-code-preview.js +1 -1
- package/dist/components/ui-color-picker.js +1 -1
- package/dist/components/ui-command-palette.js +1 -1
- package/dist/components/ui-dialog-box.js +1 -1
- package/dist/components/ui-dock-host.js +1 -1
- package/dist/components/ui-dock.js +1 -1
- package/dist/components/ui-drag-drop.js +1 -1
- package/dist/components/ui-empty-state.js +1 -1
- package/dist/components/ui-fab-item.js +1 -1
- package/dist/components/ui-fab.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- package/dist/components/ui-horizontal-nav.js +1 -1
- package/dist/components/ui-knob.js +1 -1
- package/dist/components/{ui-color-controller.d.ts → ui-label.d.ts} +4 -4
- package/dist/components/ui-label.js +1 -0
- package/dist/components/ui-library.js +1 -1
- package/dist/components/ui-list.js +1 -1
- package/dist/components/ui-masonry.js +1 -1
- package/dist/components/ui-meter-group.js +1 -1
- package/dist/components/ui-navigation-bar.js +1 -1
- package/dist/components/ui-navigation-item.js +1 -1
- package/dist/components/ui-number-input.js +1 -1
- package/dist/components/ui-otp-input.js +1 -1
- package/dist/components/ui-panel.js +1 -1
- package/dist/components/ui-pattern-input.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-scroll-top.js +1 -1
- package/dist/components/ui-smart-stepper.js +1 -1
- package/dist/components/ui-snackbar.js +1 -1
- package/dist/components/ui-speed-dial.js +1 -1
- package/dist/components/ui-speedometer.js +1 -1
- package/dist/components/ui-splitter.js +1 -1
- package/dist/components/ui-step.js +1 -1
- package/dist/components/ui-stepper.js +1 -1
- package/dist/components/ui-tabs.js +1 -1
- package/dist/components/ui-timeline.js +1 -1
- package/dist/components/ui-timer.js +1 -1
- package/dist/components/ui-toolbar.js +1 -1
- package/dist/components/ui-top-bar.js +1 -1
- package/dist/components/ui-transfer-list.js +1 -1
- package/dist/components/ui-tree.js +1 -1
- package/dist/components/ui-workspace-manager.js +1 -1
- package/dist/esm/category-section.entry.js +2 -2
- package/dist/esm/dom-DFBTWhGw.js +262 -0
- package/dist/esm/exploration-project-tailwind.js +3 -3
- package/dist/esm/{index-DUsoYu9r.js → index-Dqu2zaH1.js} +1 -1
- package/dist/esm/layout-manager.entry.js +3 -3
- package/dist/esm/library-card.entry.js +2 -2
- package/dist/esm/lm-container_2.entry.js +2 -2
- package/dist/esm/lm-panel_3.entry.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-step.entry.js +2 -2
- package/dist/esm/nav-bar.entry.js +4 -4
- package/dist/esm/smart-step.entry.js +3 -3
- package/dist/esm/timeline-item.entry.js +2 -2
- package/dist/esm/ui-accordion_11.entry.js +132 -50
- package/dist/esm/ui-advanced-data-table.entry.js +2 -2
- package/dist/esm/ui-anchor.entry.js +2 -2
- package/dist/esm/ui-animate-on-scroll.entry.js +3 -3
- package/dist/esm/ui-aside-panel.entry.js +10 -11
- package/dist/esm/ui-avatar-group_5.entry.js +1688 -0
- package/dist/esm/ui-breadcrumb-item.entry.js +3 -3
- package/dist/esm/ui-breadcrumb.entry.js +1 -1
- package/dist/esm/ui-callout-banner.entry.js +2 -2
- package/dist/esm/ui-card.entry.js +4 -3
- package/dist/esm/ui-carousel.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +3 -3
- package/dist/esm/ui-code-editor.entry.js +2 -2
- package/dist/esm/ui-code-preview.entry.js +2 -2
- package/dist/esm/ui-color-picker.entry.js +256 -22
- package/dist/esm/ui-command-palette.entry.js +1 -1
- package/dist/esm/ui-dialog-box.entry.js +85 -11
- package/dist/esm/ui-dialog-content.entry.js +1 -1
- package/dist/esm/ui-dialog-footer_2.entry.js +1 -1
- package/dist/esm/ui-divider.entry.js +1 -1
- package/dist/esm/ui-dock-host.entry.js +4 -4
- package/dist/esm/ui-dock.entry.js +2 -2
- package/dist/esm/ui-drag-drop.entry.js +2 -2
- package/dist/esm/ui-dropdown_2.entry.js +104 -34
- package/dist/esm/ui-empty-state.entry.js +2 -2
- package/dist/esm/ui-fab-item.entry.js +2 -2
- package/dist/esm/ui-fab.entry.js +4 -4
- package/dist/esm/ui-file-upload.entry.js +143 -44
- package/dist/esm/ui-horizontal-nav.entry.js +2 -2
- package/dist/esm/ui-knob.entry.js +1 -1
- package/dist/esm/ui-label.entry.js +471 -0
- package/dist/esm/ui-library.entry.js +2 -2
- package/dist/esm/ui-list-group_2.entry.js +349 -60
- package/dist/esm/ui-list.entry.js +76 -42
- package/dist/esm/ui-masonry.entry.js +1 -1
- package/dist/esm/ui-meter-group.entry.js +5 -4
- package/dist/esm/ui-navigation-item.entry.js +5 -5
- package/dist/esm/ui-number-input.entry.js +7 -3
- package/dist/esm/ui-otp-input.entry.js +5 -5
- package/dist/esm/{ui-pagination_4.entry.js → ui-pagination_3.entry.js} +36 -506
- package/dist/esm/ui-panel.entry.js +1 -1
- package/dist/esm/ui-pattern-input.entry.js +46 -11
- package/dist/esm/ui-progress.entry.js +66 -9
- package/dist/esm/ui-range-slider.entry.js +2 -2
- package/dist/esm/ui-resizable-panel.entry.js +2 -2
- package/dist/esm/ui-scroll-top.entry.js +1 -1
- package/dist/esm/ui-smart-context-menu.entry.js +1 -1
- package/dist/esm/ui-smart-stepper.entry.js +2 -2
- package/dist/esm/ui-snackbar.entry.js +1 -1
- package/dist/esm/ui-speed-dial.entry.js +1 -1
- package/dist/esm/ui-speedometer.entry.js +28 -17
- package/dist/esm/ui-splitter.entry.js +1 -1
- package/dist/esm/ui-step.entry.js +2 -2
- package/dist/esm/ui-stepper.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +14 -13
- package/dist/esm/ui-tabs.entry.js +2 -2
- package/dist/esm/ui-tag.entry.js +58 -13
- package/dist/esm/ui-timeline.entry.js +10 -2
- package/dist/esm/ui-timer.entry.js +2 -2
- package/dist/esm/ui-toolbar.entry.js +2 -2
- package/dist/esm/ui-tooltip.entry.js +4 -4
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-transfer-list.entry.js +6 -6
- package/dist/esm/ui-tree.entry.js +30 -15
- package/dist/esm/ui-workspace-manager.entry.js +2 -2
- package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -1
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -1
- package/dist/exploration-project-tailwind/{p-7ba2258a.entry.js → p-024a299a.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-0a71896a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-35296877.entry.js → p-0cdeb8d8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a42fdc33.entry.js → p-139cefbc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-036d2a44.entry.js → p-198c83e5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-236f47b1.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-81ebba11.entry.js → p-25530d0d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-41cd6bf0.entry.js → p-298f2057.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85e36111.entry.js → p-2b5a8e3e.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e8c6d395.entry.js → p-2b6aa7bc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-70bacda8.entry.js → p-2cfba753.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-cbee2607.entry.js → p-2fe22958.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-20ecc116.entry.js → p-3012e780.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-321c3f46.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-8b57fe4e.entry.js → p-3ab43638.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-3ad7e47e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3b1ca826.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3ee8ddae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-e22317c1.entry.js → p-3efb44c8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-36861546.entry.js → p-42e3bc28.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4360331a.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-2f961934.entry.js → p-443de32b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-898dd0fa.entry.js → p-44d15451.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4288c158.entry.js → p-46071679.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a3f465d9.entry.js → p-497d6182.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-4ad8c55c.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-4aaa8e40.entry.js → p-4c46ac0b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-98e91da5.entry.js → p-5042ddaa.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-60190e0e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-60530874.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-200241f8.entry.js → p-6108565d.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-fb4aca69.entry.js → p-62889cfe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c02284ea.entry.js → p-66f71613.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-7889bfc4.entry.js → p-67c440b2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c1c8ac28.entry.js → p-6f09503f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-721bdbc3.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-747b02ea.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c6fd72e1.entry.js → p-754cb046.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-97af03cc.entry.js → p-7ed3bba2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d59da767.entry.js → p-864cebb7.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4d73c143.entry.js → p-96ee3196.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-54965530.entry.js → p-97086868.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d114a347.entry.js → p-9c5ced88.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9d3044d4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-9e079be6.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-790556f0.entry.js → p-9e4c45f5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-9eee7394.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-DFBTWhGw.js +1 -0
- package/dist/exploration-project-tailwind/p-Dqu2zaH1.js +2 -0
- package/dist/exploration-project-tailwind/p-a7bdedc2.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c87aeab6.entry.js → p-a8ec29de.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6ddbee42.entry.js → p-ae617f62.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-05a436d3.entry.js → p-aef76052.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-b5f043fa.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-b637b91b.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-d2e45c5e.entry.js → p-bc49a088.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6b838549.entry.js → p-bd9a631f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-e8ba0c95.entry.js → p-bf4b6767.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c0fa400e.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-8578b616.entry.js → p-c4f3d990.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c68ddb2f.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c79574c4.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-c840098d.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-a1ad32a2.entry.js → p-c8663cbe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-cb6e38a6.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-cb9f2df1.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-cfe8b696.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-d00e13ae.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c4ba7e52.entry.js → p-d01ed934.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-aa85ff78.entry.js → p-d4e57d94.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-ccb5c737.entry.js → p-d5bd3a3f.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-45482d86.entry.js → p-d987cebe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-d9ae77c0.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-e9bae5c7.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f516fabc.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f68e2794.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-d30e24bd.entry.js → p-fa034f69.entry.js} +1 -1
- package/dist/types/components/aside-panel/aside-panel.d.ts +0 -3
- package/dist/types/components/avatar/avatar.d.ts +3 -0
- package/dist/types/components/avatar/types.d.ts +2 -0
- package/dist/types/components/badge/badge.d.ts +1 -0
- package/dist/types/components/color-picker/color-picker.d.ts +35 -2
- package/dist/types/components/dialog-box/dialog-box.d.ts +10 -0
- package/dist/types/components/dropdown/dropdown.d.ts +5 -0
- package/dist/types/components/file-upload/file-upload.d.ts +23 -6
- package/dist/types/components/label/label.d.ts +290 -0
- package/dist/types/components/label/types.d.ts +39 -0
- package/dist/types/components/list/list.d.ts +2 -1
- package/dist/types/components/list-group/list-group.d.ts +1 -0
- package/dist/types/components/list-item/list-item.d.ts +45 -17
- package/dist/types/components/pattern-input/pattern-input.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +3 -0
- package/dist/types/components/progress/progress.d.ts +7 -0
- package/dist/types/components/range-slider/range-slider.d.ts +2 -2
- package/dist/types/components/rating/rating.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton-loader.d.ts +1 -1
- package/dist/types/components/speedometer/speedometer.d.ts +1 -0
- package/dist/types/components/tag/tag.d.ts +4 -0
- package/dist/types/components/tree/tree.d.ts +1 -0
- package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +1 -1
- package/dist/types/components.d.ts +742 -425
- package/dist/types/types/common.d.ts +2 -2
- package/dist/types/types/common.type.d.ts +2 -0
- package/dist/types/utils/dom.d.ts +4 -4
- package/package.json +4 -5
- package/dist/cjs/dom-oP1E4Rd3.js +0 -267
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
- package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
- package/dist/cjs/ui-popover.cjs.entry.js +0 -517
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
- package/dist/collection/components/color-controller/color-controller.css +0 -108
- package/dist/collection/components/color-controller/color-controller.js +0 -224
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +0 -357
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +0 -1190
- package/dist/components/ui-color-controller.js +0 -1
- package/dist/components/ui-smart-location-dropdown.d.ts +0 -11
- package/dist/components/ui-smart-location-dropdown.js +0 -1
- package/dist/esm/dom-BMFah5q3.js +0 -262
- package/dist/esm/ui-avatar-group_3.entry.js +0 -630
- package/dist/esm/ui-color-controller.entry.js +0 -148
- package/dist/esm/ui-popover.entry.js +0 -515
- package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
- package/dist/exploration-project-tailwind/p-06f0c679.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-148e81df.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-16bdd162.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-2347d21b.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-3d381f75.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4417a9d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-44742ddd.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4bef8bed.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-4efd63ce.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5c835d90.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-71d95bb1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9bd14f69.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-BMFah5q3.js +0 -1
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +0 -2
- package/dist/exploration-project-tailwind/p-a27f59d2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-a7b07cf4.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-bd89d060.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c63c522e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d6ce9721.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-dc92a343.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e76318c7.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-eab5ad36.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f0bc5d7e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f1beee72.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f543392f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f61cfb7c.entry.js +0 -1
- package/dist/types/components/color-controller/color-controller.d.ts +0 -24
- package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +0 -119
- package/dist/types/components/smart-location-dropdown/types.d.ts +0 -37
- /package/dist/collection/components/{smart-location-dropdown → label}/types.js +0 -0
|
@@ -14,11 +14,11 @@ export function initEmptyStateDemo() {
|
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<p style="color:
|
|
17
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 15px; margin-bottom: 30px; line-height: 1.6;">
|
|
18
18
|
Provide context and call-to-actions when content is missing, errors occur, or results are not found.
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
|
-
<div class="demo-pills" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; background:
|
|
21
|
+
<div class="demo-pills" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 12px; border:1px solid var(--border-subtle,#f1f5f9);">
|
|
22
22
|
<ui-button id="btnEmptyPlayground" variant="outline" color="secondary" label="🎮 Playground" size="md"></ui-button>
|
|
23
23
|
<ui-button id="btnEmptyCommon" variant="outline" color="primary" label="Common Types" size="md"></ui-button>
|
|
24
24
|
<ui-button id="btnEmptyMaster" variant="outline" color="success" label="✨ Master Patterns" size="md"></ui-button>
|
|
@@ -38,22 +38,22 @@ export function initEmptyStateDemo() {
|
|
|
38
38
|
if (!container) return;
|
|
39
39
|
container.innerHTML = `
|
|
40
40
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;">
|
|
41
|
-
<div class="demo-block" style="background:
|
|
41
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
42
42
|
<ui-empty-state type="no-data" compact="true" primary-action="Go to Dashboard"></ui-empty-state>
|
|
43
43
|
</div>
|
|
44
|
-
<div class="demo-block" style="background:
|
|
44
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
45
45
|
<ui-empty-state type="no-results" compact="true" primary-action="Clear Search"></ui-empty-state>
|
|
46
46
|
</div>
|
|
47
|
-
<div class="demo-block" style="background:
|
|
47
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
48
48
|
<ui-empty-state type="accomplishment" compact="true" primary-action="Good Job!"></ui-empty-state>
|
|
49
49
|
</div>
|
|
50
|
-
<div class="demo-block" style="background:
|
|
50
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
51
51
|
<ui-empty-state type="coming-soon" compact="true" primary-action="Notify Me"></ui-empty-state>
|
|
52
52
|
</div>
|
|
53
|
-
<div class="demo-block" style="background:
|
|
53
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
54
54
|
<ui-empty-state type="onboarding" compact="true" primary-action="Start Tour"></ui-empty-state>
|
|
55
55
|
</div>
|
|
56
|
-
<div class="demo-block" style="background:
|
|
56
|
+
<div class="demo-block" style="background:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#eee);">
|
|
57
57
|
<ui-empty-state type="maintenance" compact="true" primary-action="Check Status"></ui-empty-state>
|
|
58
58
|
</div>
|
|
59
59
|
</div>
|
|
@@ -72,11 +72,11 @@ export function initEmptyStateDemo() {
|
|
|
72
72
|
container.innerHTML = `
|
|
73
73
|
<div class="demo-block">
|
|
74
74
|
<h3>✨ Apex Tier Patterns</h3>
|
|
75
|
-
<p style="color:
|
|
75
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Combining items, illustrations, and interactive recovery states.</p>
|
|
76
76
|
|
|
77
77
|
<div style="display: flex; flex-direction: column; gap: 40px;">
|
|
78
|
-
<div style="background:
|
|
79
|
-
<h4 style="margin: 0 0 20px; color:
|
|
78
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 20px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);">
|
|
79
|
+
<h4 style="margin: 0 0 20px; color:var(--accent-cyan,#0ea5e9); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Smart Recovery State</h4>
|
|
80
80
|
<ui-empty-state
|
|
81
81
|
type="no-results"
|
|
82
82
|
items-title="Suggested Actions:"
|
|
@@ -85,8 +85,8 @@ export function initEmptyStateDemo() {
|
|
|
85
85
|
></ui-empty-state>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
88
|
-
<div style="background:
|
|
89
|
-
<h4 style="margin: 0 0 20px; color:
|
|
88
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 32px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0);">
|
|
89
|
+
<h4 style="margin: 0 0 20px; color:var(--accent-pink,#ec4899); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Interactive Loading & Celebration</h4>
|
|
90
90
|
<ui-empty-state
|
|
91
91
|
type="accomplishment"
|
|
92
92
|
id="celebrationDemo"
|
|
@@ -96,8 +96,8 @@ export function initEmptyStateDemo() {
|
|
|
96
96
|
></ui-empty-state>
|
|
97
97
|
</div>
|
|
98
98
|
|
|
99
|
-
<div style="background:
|
|
100
|
-
<h4 style="margin: 0 0 20px; color:
|
|
99
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 20px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);">
|
|
100
|
+
<h4 style="margin: 0 0 20px; color:var(--accent-purple,#8b5cf6); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Premium Paywall Variant</h4>
|
|
101
101
|
<ui-empty-state
|
|
102
102
|
type="paywall"
|
|
103
103
|
variant="filled"
|
|
@@ -134,10 +134,10 @@ export function initEmptyStateDemo() {
|
|
|
134
134
|
container.innerHTML = `
|
|
135
135
|
<div class="demo-block">
|
|
136
136
|
<h3>🔄 Recovery & Search Patterns</h3>
|
|
137
|
-
<p style="color:
|
|
137
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Turning "no data" moments into interactive recovery paths.</p>
|
|
138
138
|
|
|
139
139
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px;">
|
|
140
|
-
<div style="background:
|
|
140
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 20px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);">
|
|
141
141
|
<h4 style="margin: 0 0 20px; color: #10b981; font-size: 14px; text-transform: uppercase;">Inline Search Recovery</h4>
|
|
142
142
|
<ui-empty-state
|
|
143
143
|
type="no-results"
|
|
@@ -148,7 +148,7 @@ export function initEmptyStateDemo() {
|
|
|
148
148
|
></ui-empty-state>
|
|
149
149
|
</div>
|
|
150
150
|
|
|
151
|
-
<div style="background:
|
|
151
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 20px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);">
|
|
152
152
|
<h4 style="margin: 0 0 20px; color: #f43f5e; font-size: 14px; text-transform: uppercase;">Automated Auto-Retry</h4>
|
|
153
153
|
<ui-empty-state
|
|
154
154
|
type="offline"
|
|
@@ -168,13 +168,13 @@ export function initEmptyStateDemo() {
|
|
|
168
168
|
container.innerHTML = `
|
|
169
169
|
<div class="demo-block">
|
|
170
170
|
<h3>🌐 HTTP Error Suite (Routing Patterns)</h3>
|
|
171
|
-
<p style="color:
|
|
171
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Professional error pages with specific animations, status-coded colors, and recovery workflows.</p>
|
|
172
172
|
|
|
173
173
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px;">
|
|
174
174
|
|
|
175
175
|
<!-- 401 Unauthorized -->
|
|
176
|
-
<div style="background:
|
|
177
|
-
<h4 style="margin: 0 0 16px; color:
|
|
176
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 16px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
177
|
+
<h4 style="margin: 0 0 16px; color:var(--accent-purple,#8b5cf6); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Access Denied</h4>
|
|
178
178
|
<ui-empty-state
|
|
179
179
|
type="401"
|
|
180
180
|
variant="default"
|
|
@@ -185,7 +185,7 @@ export function initEmptyStateDemo() {
|
|
|
185
185
|
</div>
|
|
186
186
|
|
|
187
187
|
<!-- 403 Forbidden -->
|
|
188
|
-
<div style="background:
|
|
188
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 16px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
189
189
|
<h4 style="margin: 0 0 16px; color: #f43f5e; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Permissions Required</h4>
|
|
190
190
|
<ui-empty-state
|
|
191
191
|
type="403"
|
|
@@ -197,8 +197,8 @@ export function initEmptyStateDemo() {
|
|
|
197
197
|
</div>
|
|
198
198
|
|
|
199
199
|
<!-- 404 Not Found -->
|
|
200
|
-
<div style="background:
|
|
201
|
-
<h4 style="margin: 0 0 16px; color:
|
|
200
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 16px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
201
|
+
<h4 style="margin: 0 0 16px; color:var(--accent-yellow,#f59e0b); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Missing Resource</h4>
|
|
202
202
|
<ui-empty-state
|
|
203
203
|
type="404"
|
|
204
204
|
variant="default"
|
|
@@ -209,8 +209,8 @@ export function initEmptyStateDemo() {
|
|
|
209
209
|
</div>
|
|
210
210
|
|
|
211
211
|
<!-- 500 Server Error -->
|
|
212
|
-
<div style="background:
|
|
213
|
-
<h4 style="margin: 0 0 16px; color:
|
|
212
|
+
<div style="background:var(--accent-red-soft,#fef2f2); padding: 24px; border-radius: 16px; border: 1px solid #fee2e2;">
|
|
213
|
+
<h4 style="margin: 0 0 16px; color:var(--accent-red,#ef4444); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">System Failure</h4>
|
|
214
214
|
<ui-empty-state
|
|
215
215
|
type="500"
|
|
216
216
|
variant="default"
|
|
@@ -221,8 +221,8 @@ export function initEmptyStateDemo() {
|
|
|
221
221
|
</div>
|
|
222
222
|
|
|
223
223
|
<!-- 503 Service Unavailable -->
|
|
224
|
-
<div style="background:
|
|
225
|
-
<h4 style="margin: 0 0 16px; color:
|
|
224
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 16px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
225
|
+
<h4 style="margin: 0 0 16px; color:var(--accent-purple,#7c3aed); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Under Maintenance</h4>
|
|
226
226
|
<ui-empty-state
|
|
227
227
|
type="503"
|
|
228
228
|
variant="default"
|
|
@@ -233,8 +233,8 @@ export function initEmptyStateDemo() {
|
|
|
233
233
|
</div>
|
|
234
234
|
|
|
235
235
|
<!-- Offline -->
|
|
236
|
-
<div style="background:
|
|
237
|
-
<h4 style="margin: 0 0 16px; color:
|
|
236
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 24px; border-radius: 16px; border:1px solid var(--border-default,#e2e8f0);">
|
|
237
|
+
<h4 style="margin: 0 0 16px; color:var(--text-secondary,#64748b); font-size: 14px; text-transform: uppercase; letter-spacing: 1px;">Connection Lost</h4>
|
|
238
238
|
<ui-empty-state
|
|
239
239
|
type="offline"
|
|
240
240
|
variant="default"
|
|
@@ -252,18 +252,233 @@ export function initEmptyStateDemo() {
|
|
|
252
252
|
const showEmptyStateFullPage = function () {
|
|
253
253
|
const container = document.getElementById('emptyStateDemoContainer');
|
|
254
254
|
if (!container) return;
|
|
255
|
+
|
|
256
|
+
const scenarios = [
|
|
257
|
+
{
|
|
258
|
+
id: 'no-results',
|
|
259
|
+
label: '🔍 No Results',
|
|
260
|
+
bg: 'var(--bg-primary, #ffffff)',
|
|
261
|
+
type: 'no-results',
|
|
262
|
+
primaryAction: 'Clear Filters',
|
|
263
|
+
secondaryAction: 'Browse All',
|
|
264
|
+
description: 'User searched for something with no matches.',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: '404',
|
|
268
|
+
label: '🚧 404 Error',
|
|
269
|
+
bg: 'var(--bg-primary, #ffffff)',
|
|
270
|
+
type: '404',
|
|
271
|
+
primaryAction: 'Return Home',
|
|
272
|
+
secondaryAction: 'Contact Support',
|
|
273
|
+
description: 'Route or resource was not found.',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
id: 'onboarding',
|
|
277
|
+
label: '🚀 Onboarding',
|
|
278
|
+
bg: 'linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%)',
|
|
279
|
+
type: 'onboarding',
|
|
280
|
+
primaryAction: 'Start Setup',
|
|
281
|
+
secondaryAction: 'Import Data',
|
|
282
|
+
description: 'First-time user with nothing created yet.',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
id: 'offline',
|
|
286
|
+
label: '📡 Offline',
|
|
287
|
+
bg: 'var(--bg-secondary, #f8fafc)',
|
|
288
|
+
type: 'offline',
|
|
289
|
+
primaryAction: 'Try Reconnecting',
|
|
290
|
+
secondaryAction: 'Work Offline',
|
|
291
|
+
description: 'Network connectivity was lost.',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
id: 'accomplishment',
|
|
295
|
+
label: '🎉 All Done',
|
|
296
|
+
bg: 'linear-gradient(135deg, #fefce8 0%, #f0fdf4 100%)',
|
|
297
|
+
type: 'accomplishment',
|
|
298
|
+
primaryAction: 'View Summary',
|
|
299
|
+
secondaryAction: 'Add More',
|
|
300
|
+
description: 'Task list or inbox is completely empty.',
|
|
301
|
+
},
|
|
302
|
+
];
|
|
303
|
+
|
|
304
|
+
let activeScenario = scenarios[0];
|
|
305
|
+
|
|
306
|
+
const renderViewport = (scenario) => `
|
|
307
|
+
<div style="
|
|
308
|
+
position: relative;
|
|
309
|
+
width: 100%;
|
|
310
|
+
height: 580px;
|
|
311
|
+
background: ${scenario.bg};
|
|
312
|
+
border-radius: 0 0 12px 12px;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
align-items: center;
|
|
317
|
+
justify-content: center;
|
|
318
|
+
transition: background 0.4s ease;
|
|
319
|
+
">
|
|
320
|
+
<!-- Simulated app shell top bar -->
|
|
321
|
+
<div style="
|
|
322
|
+
position: absolute;
|
|
323
|
+
top: 0; left: 0; right: 0;
|
|
324
|
+
height: 48px;
|
|
325
|
+
background: var(--bg-primary, #fff);
|
|
326
|
+
border-bottom: 1px solid var(--border-default, #e2e8f0);
|
|
327
|
+
display: flex;
|
|
328
|
+
align-items: center;
|
|
329
|
+
padding: 0 20px;
|
|
330
|
+
gap: 12px;
|
|
331
|
+
z-index: 5;
|
|
332
|
+
">
|
|
333
|
+
<div style="display:flex; gap:6px; align-items:center;">
|
|
334
|
+
<div style="width:10px;height:10px;border-radius:50%;background:#ef4444;"></div>
|
|
335
|
+
<div style="width:10px;height:10px;border-radius:50%;background:#f59e0b;"></div>
|
|
336
|
+
<div style="width:10px;height:10px;border-radius:50%;background:#22c55e;"></div>
|
|
337
|
+
</div>
|
|
338
|
+
<div style="flex:1; height:22px; background:var(--bg-secondary,#f1f5f9); border-radius:6px; margin:0 20px; display:flex;align-items:center;padding:0 12px;">
|
|
339
|
+
<span style="font-size:11px; color:var(--text-secondary,#94a3b8); font-family:monospace;">app.example.com${scenario.id === '404' ? '/missing-page' : '/' + scenario.id}</span>
|
|
340
|
+
</div>
|
|
341
|
+
<div style="width:24px;height:24px;border-radius:50%;background:var(--color-primary,#10b981);opacity:0.8;"></div>
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
<!-- Simulated left sidebar -->
|
|
345
|
+
<div style="
|
|
346
|
+
position: absolute;
|
|
347
|
+
top: 48px; left: 0; bottom: 0;
|
|
348
|
+
width: 56px;
|
|
349
|
+
background: var(--bg-primary, #fff);
|
|
350
|
+
border-right: 1px solid var(--border-default, #e2e8f0);
|
|
351
|
+
display: flex;
|
|
352
|
+
flex-direction: column;
|
|
353
|
+
align-items: center;
|
|
354
|
+
padding: 16px 0;
|
|
355
|
+
gap: 20px;
|
|
356
|
+
">
|
|
357
|
+
${[
|
|
358
|
+
'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6',
|
|
359
|
+
'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z',
|
|
360
|
+
'M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z',
|
|
361
|
+
'M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z',
|
|
362
|
+
].map(d => `
|
|
363
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="var(--text-secondary,#94a3b8)" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" style="opacity:0.7;">
|
|
364
|
+
<path d="${d}"/>
|
|
365
|
+
</svg>
|
|
366
|
+
`).join('')}
|
|
367
|
+
</div>
|
|
368
|
+
|
|
369
|
+
<!-- Main content area with Empty State centered -->
|
|
370
|
+
<div style="
|
|
371
|
+
position: absolute;
|
|
372
|
+
top: 48px; left: 56px; right: 0; bottom: 0;
|
|
373
|
+
display: flex;
|
|
374
|
+
flex-direction: column;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: center;
|
|
377
|
+
padding: 32px;
|
|
378
|
+
">
|
|
379
|
+
<ui-empty-state
|
|
380
|
+
type="${scenario.type}"
|
|
381
|
+
full-height="true"
|
|
382
|
+
primary-action="${scenario.primaryAction}"
|
|
383
|
+
secondary-action="${scenario.secondaryAction}"
|
|
384
|
+
style="max-width: 520px; width: 100%;"
|
|
385
|
+
></ui-empty-state>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
`;
|
|
389
|
+
|
|
255
390
|
container.innerHTML = `
|
|
256
|
-
<div
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
391
|
+
<div style="display:flex; flex-direction:column; gap: 20px;">
|
|
392
|
+
|
|
393
|
+
<!-- Section header -->
|
|
394
|
+
<div style="display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px;">
|
|
395
|
+
<div>
|
|
396
|
+
<h3 style="margin:0 0 6px; font-size:18px; color:var(--text-primary,#1e293b);">📺 Full Page Empty State Scenarios</h3>
|
|
397
|
+
<p style="margin:0; font-size:13px; color:var(--text-secondary,#64748b);">Realistic viewport simulations with app chrome (nav bar + sidebar).</p>
|
|
398
|
+
</div>
|
|
399
|
+
<div style="display:flex; gap:8px; align-items:center; background:var(--bg-secondary,#f8fafc); border:1px solid var(--border-default,#e2e8f0); border-radius:8px; padding:4px;">
|
|
400
|
+
<span style="font-size:11px; color:var(--text-secondary,#64748b); padding:0 8px;">Scenario:</span>
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
|
|
404
|
+
<!-- Scenario pill switcher -->
|
|
405
|
+
<div style="display:flex; gap:8px; flex-wrap:wrap;">
|
|
406
|
+
${scenarios.map(s => `
|
|
407
|
+
<button
|
|
408
|
+
id="fpScenario-${s.id}"
|
|
409
|
+
onclick="window._fpSwitch('${s.id}')"
|
|
410
|
+
style="
|
|
411
|
+
padding: 7px 16px;
|
|
412
|
+
border-radius: 20px;
|
|
413
|
+
border: 1.5px solid ${s.id === activeScenario.id ? 'var(--color-primary,#10b981)' : 'var(--border-default,#e2e8f0)'};
|
|
414
|
+
background: ${s.id === activeScenario.id ? 'var(--color-primary,#10b981)' : 'transparent'};
|
|
415
|
+
color: ${s.id === activeScenario.id ? '#fff' : 'var(--text-secondary,#64748b)'};
|
|
416
|
+
font-size: 13px;
|
|
417
|
+
font-weight: 500;
|
|
418
|
+
cursor: pointer;
|
|
419
|
+
transition: all 0.2s ease;
|
|
420
|
+
white-space: nowrap;
|
|
421
|
+
"
|
|
422
|
+
>${s.label}</button>
|
|
423
|
+
`).join('')}
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
<!-- Description bar -->
|
|
427
|
+
<div id="fpDescription" style="
|
|
428
|
+
display:flex; align-items:center; gap:10px;
|
|
429
|
+
background: color-mix(in srgb, var(--color-primary,#10b981) 8%, transparent);
|
|
430
|
+
border: 1px solid color-mix(in srgb, var(--color-primary,#10b981) 25%, transparent);
|
|
431
|
+
border-radius: 8px;
|
|
432
|
+
padding: 10px 16px;
|
|
433
|
+
font-size: 13px;
|
|
434
|
+
color: var(--text-primary,#1e293b);
|
|
435
|
+
">
|
|
436
|
+
<span style="font-size:16px;">💡</span>
|
|
437
|
+
<span id="fpDescText">${activeScenario.description}</span>
|
|
438
|
+
</div>
|
|
439
|
+
|
|
440
|
+
<!-- Browser chrome + viewport -->
|
|
441
|
+
<div style="
|
|
442
|
+
border-radius: 12px;
|
|
443
|
+
border: 1.5px solid var(--border-default, #e2e8f0);
|
|
444
|
+
overflow: hidden;
|
|
445
|
+
box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
|
|
446
|
+
">
|
|
447
|
+
<div id="fpViewport">${renderViewport(activeScenario)}</div>
|
|
448
|
+
</div>
|
|
449
|
+
|
|
450
|
+
<!-- Usage hint -->
|
|
451
|
+
<p style="text-align:center; font-size:12px; color:var(--text-secondary,#94a3b8); margin:0;">
|
|
452
|
+
Use <code style="background:var(--bg-secondary,#f1f5f9);padding:2px 6px;border-radius:4px;">full-height="true"</code> to vertically + horizontally center the empty state inside any container or the full page body.
|
|
453
|
+
</p>
|
|
454
|
+
|
|
264
455
|
</div>
|
|
265
|
-
<p style="margin-top: 12px; font-size: 13px; color: #64748b; text-align: center;">Using <code>full-height="true"</code> inside a container (or body) to center content vertically and horizontally.</p>
|
|
266
456
|
`;
|
|
457
|
+
|
|
458
|
+
// Scenario switcher function
|
|
459
|
+
window._fpSwitch = (id) => {
|
|
460
|
+
const scenario = scenarios.find(s => s.id === id);
|
|
461
|
+
if (!scenario) return;
|
|
462
|
+
activeScenario = scenario;
|
|
463
|
+
|
|
464
|
+
// Update viewport
|
|
465
|
+
const viewport = document.getElementById('fpViewport');
|
|
466
|
+
if (viewport) viewport.innerHTML = renderViewport(scenario);
|
|
467
|
+
|
|
468
|
+
// Update description
|
|
469
|
+
const descText = document.getElementById('fpDescText');
|
|
470
|
+
if (descText) descText.textContent = scenario.description;
|
|
471
|
+
|
|
472
|
+
// Update pill active states
|
|
473
|
+
scenarios.forEach(s => {
|
|
474
|
+
const btn = document.getElementById(`fpScenario-${s.id}`);
|
|
475
|
+
if (!btn) return;
|
|
476
|
+
const isActive = s.id === id;
|
|
477
|
+
btn.style.background = isActive ? 'var(--color-primary,#10b981)' : 'transparent';
|
|
478
|
+
btn.style.color = isActive ? '#fff' : 'var(--text-secondary,#64748b)';
|
|
479
|
+
btn.style.borderColor = isActive ? 'var(--color-primary,#10b981)' : 'var(--border-default,#e2e8f0)';
|
|
480
|
+
});
|
|
481
|
+
};
|
|
267
482
|
};
|
|
268
483
|
|
|
269
484
|
const showEmptyStateAlignment = function () {
|
|
@@ -272,11 +487,11 @@ export function initEmptyStateDemo() {
|
|
|
272
487
|
container.innerHTML = `
|
|
273
488
|
<div class="demo-block">
|
|
274
489
|
<h3>↔️ Alignment Mastery</h3>
|
|
275
|
-
<p style="color:
|
|
490
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Adapt to any layout—sidebars, cards, or hero sections.</p>
|
|
276
491
|
|
|
277
492
|
<div style="display: flex; flex-direction: column; gap: 40px;">
|
|
278
|
-
<div style="background:
|
|
279
|
-
<h5 style="color:
|
|
493
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 12px; border:1px solid var(--border-default,#e2e8f0);">
|
|
494
|
+
<h5 style="color:var(--text-secondary,#64748b); font-size: 11px; margin-bottom: 20px;">LEFT ALIGNED (Sidebar Pattern)</h5>
|
|
280
495
|
<ui-empty-state
|
|
281
496
|
align="left"
|
|
282
497
|
type="no-data"
|
|
@@ -285,8 +500,8 @@ export function initEmptyStateDemo() {
|
|
|
285
500
|
></ui-empty-state>
|
|
286
501
|
</div>
|
|
287
502
|
|
|
288
|
-
<div style="background:
|
|
289
|
-
<h5 style="color:
|
|
503
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 12px; border:1px solid var(--border-default,#e2e8f0);">
|
|
504
|
+
<h5 style="color:var(--text-secondary,#64748b); font-size: 11px; margin-bottom: 20px;">CENTER ALIGNED (Default / Card Pattern)</h5>
|
|
290
505
|
<ui-empty-state
|
|
291
506
|
align="center"
|
|
292
507
|
type="no-results"
|
|
@@ -294,8 +509,8 @@ export function initEmptyStateDemo() {
|
|
|
294
509
|
></ui-empty-state>
|
|
295
510
|
</div>
|
|
296
511
|
|
|
297
|
-
<div style="background:
|
|
298
|
-
<h5 style="color:
|
|
512
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 12px; border:1px solid var(--border-default,#e2e8f0);">
|
|
513
|
+
<h5 style="color:var(--text-secondary,#64748b); font-size: 11px; margin-bottom: 20px;">RIGHT ALIGNED (RTL / Contextual Pattern)</h5>
|
|
299
514
|
<ui-empty-state
|
|
300
515
|
align="right"
|
|
301
516
|
type="coming-soon"
|
|
@@ -314,7 +529,7 @@ export function initEmptyStateDemo() {
|
|
|
314
529
|
container.innerHTML = `
|
|
315
530
|
<div class="demo-block">
|
|
316
531
|
<h3>🖼️ With Custom Illustrations</h3>
|
|
317
|
-
<p style="color:
|
|
532
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Bring your own brand assets or use built-in illustrative patterns.</p>
|
|
318
533
|
|
|
319
534
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px;">
|
|
320
535
|
<div style="background: #fafaf9; padding: 24px; border-radius: 16px; border: 1px solid #e7e5e4;">
|
|
@@ -327,7 +542,7 @@ export function initEmptyStateDemo() {
|
|
|
327
542
|
></ui-empty-state>
|
|
328
543
|
</div>
|
|
329
544
|
|
|
330
|
-
<div style="background:
|
|
545
|
+
<div style="background:var(--accent-pink-soft,#fdf2f8); padding: 24px; border-radius: 16px; border: 1px solid #fce7f3;">
|
|
331
546
|
<h5 style="color: #9d174d; font-size: 11px; margin-bottom: 20px;">KEYWORD: EMPTY-BOX (BUILT-IN)</h5>
|
|
332
547
|
<ui-empty-state
|
|
333
548
|
illustration="empty-box"
|
|
@@ -337,8 +552,8 @@ export function initEmptyStateDemo() {
|
|
|
337
552
|
></ui-empty-state>
|
|
338
553
|
</div>
|
|
339
554
|
|
|
340
|
-
<div style="background:
|
|
341
|
-
<h5 style="color:
|
|
555
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 16px; border:1px solid var(--border-subtle,#f1f5f9); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);">
|
|
556
|
+
<h5 style="color:var(--text-secondary,#64748b); font-size: 11px; margin-bottom: 20px;">EXTERNAL IMAGE URL</h5>
|
|
342
557
|
<ui-empty-state
|
|
343
558
|
illustration="https://img.freepik.com/free-vector/no-data-concept-illustration_114360-536.jpg"
|
|
344
559
|
heading="Not Found"
|
|
@@ -357,7 +572,7 @@ export function initEmptyStateDemo() {
|
|
|
357
572
|
container.innerHTML = `
|
|
358
573
|
<div class="demo-block">
|
|
359
574
|
<h3>⭐ Premium Feature Showcase</h3>
|
|
360
|
-
<p style="color:
|
|
575
|
+
<p style="color:var(--text-secondary,#64748b); margin-bottom: 30px;">Advanced modifiers for elevation, rounding, and sidebar compatibility.</p>
|
|
361
576
|
|
|
362
577
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px;">
|
|
363
578
|
<!-- Elevated & Rounded -->
|
|
@@ -373,8 +588,8 @@ export function initEmptyStateDemo() {
|
|
|
373
588
|
</div>
|
|
374
589
|
|
|
375
590
|
<!-- Sidebar Compact Mode -->
|
|
376
|
-
<div style="width: 320px; background: #
|
|
377
|
-
<h5 style="color:
|
|
591
|
+
<div style="width: 320px; background: var(--bg-secondary, #f8fafc); padding: 20px; border-radius: 16px; height: 100%; border: 1px solid var(--border-default);">
|
|
592
|
+
<h5 style="color:var(--text-secondary,#64748b); font-size: 11px; margin-bottom: 20px;">SIDEBAR COMPACT MODE</h5>
|
|
378
593
|
<ui-empty-state
|
|
379
594
|
variant="minimal"
|
|
380
595
|
align="left"
|
|
@@ -383,7 +598,7 @@ export function initEmptyStateDemo() {
|
|
|
383
598
|
heading="No Feed"
|
|
384
599
|
message="Your activity feed is silent. Connect social accounts."
|
|
385
600
|
primary-action="Connect"
|
|
386
|
-
style="--empty-state-title-color: #f8fafc; --empty-state-message-color:
|
|
601
|
+
style="--empty-state-title-color: #f8fafc; --empty-state-message-color:var(--text-secondary,#64748b);"
|
|
387
602
|
></ui-empty-state>
|
|
388
603
|
</div>
|
|
389
604
|
</div>
|
|
@@ -419,10 +634,10 @@ export function initEmptyStateDemo() {
|
|
|
419
634
|
|
|
420
635
|
let slotContent = '';
|
|
421
636
|
if (useIconSlot) {
|
|
422
|
-
slotContent += `\n <div slot="icon" style="color:
|
|
637
|
+
slotContent += `\n <div slot="icon" style="color:var(--accent-pink,#ec4899);">\n <ui-icon name="heart" library="fontawesome" size="64px"></ui-icon>\n </div>`;
|
|
423
638
|
}
|
|
424
639
|
if (useHeadingSlot) {
|
|
425
|
-
slotContent += `\n <h2 slot="heading" style="color:
|
|
640
|
+
slotContent += `\n <h2 slot="heading" style="color:var(--accent-indigo,#6366f1); border-bottom: 2px solid;">Overridden via Slot</h2>`;
|
|
426
641
|
}
|
|
427
642
|
|
|
428
643
|
const html = `<ui-empty-state
|
|
@@ -447,15 +662,15 @@ export function initEmptyStateDemo() {
|
|
|
447
662
|
const container = document.getElementById('emptyStateDemoContainer');
|
|
448
663
|
if (!container) return;
|
|
449
664
|
container.innerHTML = `
|
|
450
|
-
<div class="demo-block">
|
|
451
|
-
<h3>🎮 Empty State Playground</h3>
|
|
452
|
-
<p style="font-size: 14px; color:
|
|
665
|
+
<div class="demo-block" style="background:var(--bg-primary,white);border-radius:20px;padding:28px;border:1px solid var(--border-default,#e2e8f0);">
|
|
666
|
+
<h3 style="color:var(--text-primary,#1e293b);">🎮 Empty State Playground</h3>
|
|
667
|
+
<p style="font-size: 14px; color:var(--text-secondary,#64748b); margin-bottom: 24px;">Configure the full state and test slot overrides.</p>
|
|
453
668
|
|
|
454
669
|
<div style="display: grid; grid-template-columns: 320px 1fr; gap: 30px;">
|
|
455
|
-
<div style="background:
|
|
670
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#e2e8f0);">
|
|
456
671
|
<div style="display: grid; gap: 16px;">
|
|
457
672
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
|
458
|
-
<label style="font-size: 12px; font-weight: 600;">Type (Presets):</label>
|
|
673
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Type (Presets):</label>
|
|
459
674
|
<ui-dropdown id="empType" value="no-data" options='[
|
|
460
675
|
{"label": "No Data", "value": "no-data"},
|
|
461
676
|
{"label": "No Results", "value": "no-results"},
|
|
@@ -480,7 +695,7 @@ export function initEmptyStateDemo() {
|
|
|
480
695
|
</div>
|
|
481
696
|
|
|
482
697
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
|
483
|
-
<label style="font-size: 12px; font-weight: 600;">Variant:</label>
|
|
698
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Variant:</label>
|
|
484
699
|
<ui-dropdown id="empVariant" value="default" options='[
|
|
485
700
|
{"label": "Default", "value": "default"},
|
|
486
701
|
{"label": "Outlined", "value": "outlined"},
|
|
@@ -491,12 +706,12 @@ export function initEmptyStateDemo() {
|
|
|
491
706
|
</div>
|
|
492
707
|
|
|
493
708
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
|
494
|
-
<label style="font-size: 12px; font-weight: 600;">Description:</label>
|
|
709
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Description:</label>
|
|
495
710
|
<ui-input id="empDesc" placeholder="Sub-tip text..."></ui-input>
|
|
496
711
|
</div>
|
|
497
712
|
|
|
498
713
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
|
499
|
-
<label style="font-size: 12px; font-weight: 600;">Alignment:</label>
|
|
714
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Alignment:</label>
|
|
500
715
|
<ui-dropdown id="empAlign" value="center" options='[
|
|
501
716
|
{"label": "Center (Default)", "value": "center"},
|
|
502
717
|
{"label": "Left", "value": "left"},
|
|
@@ -505,7 +720,7 @@ export function initEmptyStateDemo() {
|
|
|
505
720
|
</div>
|
|
506
721
|
|
|
507
722
|
<div style="display: flex; flex-direction: column; gap: 4px;">
|
|
508
|
-
<label style="font-size: 12px; font-weight: 600;">Size:</label>
|
|
723
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Size:</label>
|
|
509
724
|
<ui-dropdown id="empSize" value="md" options='[
|
|
510
725
|
{"label": "Small", "value": "small"},
|
|
511
726
|
{"label": "Medium", "value": "md"},
|
|
@@ -513,8 +728,8 @@ export function initEmptyStateDemo() {
|
|
|
513
728
|
]'></ui-dropdown>
|
|
514
729
|
</div>
|
|
515
730
|
|
|
516
|
-
<div style="display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 10px; border-top:
|
|
517
|
-
<span style="display: block; font-size: 11px; color:
|
|
731
|
+
<div style="display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding-top: 10px; border-top:1px solid var(--border-default,#e2e8f0);">
|
|
732
|
+
<span style="display: block; font-size: 11px; color:var(--text-secondary,#64748b);">Visual Effects:</span>
|
|
518
733
|
<ui-checkbox id="empElevated" label="Elevated"></ui-checkbox>
|
|
519
734
|
<ui-checkbox id="empRounded" label="Rounded"></ui-checkbox>
|
|
520
735
|
<ui-checkbox id="empCompact" label="Compact (Sidebar mode)"></ui-checkbox>
|
|
@@ -522,13 +737,13 @@ export function initEmptyStateDemo() {
|
|
|
522
737
|
<ui-checkbox id="empShowSearch" label="Show Search"></ui-checkbox>
|
|
523
738
|
|
|
524
739
|
<div style="display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-top: 8px;">
|
|
525
|
-
<label style="font-size: 12px; font-weight: 600;">Retry Delay (s):</label>
|
|
740
|
+
<label style="font-size: 12px; font-weight: 600; color:var(--text-secondary,#64748b);">Retry Delay (s):</label>
|
|
526
741
|
<ui-number-input id="empRetry" value="0" min="0"></ui-number-input>
|
|
527
742
|
</div>
|
|
528
743
|
</div>
|
|
529
744
|
|
|
530
|
-
<div style="margin-top: 10px; padding-top: 10px; border-top:
|
|
531
|
-
<span style="display: block; font-size: 11px; color:
|
|
745
|
+
<div style="margin-top: 10px; padding-top: 10px; border-top:1px solid var(--border-default,#e2e8f0);">
|
|
746
|
+
<span style="display: block; font-size: 11px; color:var(--text-secondary,#64748b); margin-bottom: 8px;">SLOT OVERRIDES:</span>
|
|
532
747
|
<ui-checkbox id="empSlotIcon" label="Custom [icon] slot"></ui-checkbox>
|
|
533
748
|
<ui-checkbox id="empSlotHeading" label="Rich [heading] slot"></ui-checkbox>
|
|
534
749
|
</div>
|
|
@@ -536,8 +751,8 @@ export function initEmptyStateDemo() {
|
|
|
536
751
|
</div>
|
|
537
752
|
|
|
538
753
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
539
|
-
<div id="emptyPreview" style="min-height: 250px; display: flex; align-items: center; justify-content: center; background:
|
|
540
|
-
<div style="background: #
|
|
754
|
+
<div id="emptyPreview" style="min-height: 250px; display: flex; align-items: center; justify-content: center; background:var(--bg-secondary,#f8fafc); border: 1px dashed #2d3f52; border-radius: 12px; padding: 20px;"></div>
|
|
755
|
+
<div style="background: var(--bg-secondary, #f8fafc); color: var(--text-primary, #1e293b); padding: 20px; border-radius: 12px; border: 1px solid var(--border-default); font-family: monospace; font-size: 12px; overflow-x: auto; white-space: pre;" id="emptyCode"></div>
|
|
541
756
|
</div>
|
|
542
757
|
</div>
|
|
543
758
|
</div>
|
|
@@ -567,12 +782,13 @@ export function initEmptyStateDemo() {
|
|
|
567
782
|
};
|
|
568
783
|
|
|
569
784
|
setTimeout(() => {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
785
|
+
const pills = document.querySelector('.demo-pills');
|
|
786
|
+
if (pills) {
|
|
787
|
+
pills.addEventListener('buttonClick', e => {
|
|
788
|
+
const fn = demoMap[e.target?.id];
|
|
789
|
+
if (fn) fn();
|
|
790
|
+
});
|
|
791
|
+
}
|
|
576
792
|
|
|
577
793
|
// Default view
|
|
578
794
|
showEmptyStatePlayground();
|