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
|
@@ -11,7 +11,7 @@ window.showSkeletonAriaLive = function () {
|
|
|
11
11
|
<ui-skeleton aria-label="Loading user data" aria-live="polite" width="200px" height="24px"></ui-skeleton>
|
|
12
12
|
</div>
|
|
13
13
|
<ui-button id="toggleAriaLiveBtn" >Toggle Content</ui-button>
|
|
14
|
-
<p style="font-size: 13px; color:
|
|
14
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-top: 8px;">This demonstrates a live region that swaps skeleton for real content. Use a screen reader to hear announcements.</p>
|
|
15
15
|
`;
|
|
16
16
|
document.getElementById('toggleAriaLiveBtn').onclick = function () {
|
|
17
17
|
loading = !loading;
|
|
@@ -49,9 +49,9 @@ export function initSkeletonDemo() {
|
|
|
49
49
|
container.innerHTML = `
|
|
50
50
|
<h4>Accessibility & ARIA</h4>
|
|
51
51
|
<ui-skeleton aria-label="Loading content" aria-live="polite" animated="true" width="200px" height="24px"></ui-skeleton>
|
|
52
|
-
<p style="font-size: 13px; color:
|
|
52
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-top: 8px;">This skeleton uses <code>aria-label</code> and <code>aria-live</code> for screen readers. Try using a screen reader to verify announcements.</p>
|
|
53
53
|
<ui-skeleton aria-label="Loading profile" role="status" animated="true" width="120px" height="120px" shape="circle"></ui-skeleton>
|
|
54
|
-
<p style="font-size: 13px; color:
|
|
54
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-top: 8px;">Role can be set to <code>status</code> or <code>progressbar</code> for accessibility.</p>
|
|
55
55
|
`;
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -83,7 +83,7 @@ export function initSkeletonDemo() {
|
|
|
83
83
|
</div>
|
|
84
84
|
<div style="margin-top: 16px; direction: rtl;">
|
|
85
85
|
<ui-skeleton rtl="true" width="200px" height="24px" animated="true"></ui-skeleton>
|
|
86
|
-
<span style="font-size: 13px; color:
|
|
86
|
+
<span style="font-size: 13px; color:var(--accent-cyan,#0ea5e9);">RTL shimmer direction</span>
|
|
87
87
|
</div>
|
|
88
88
|
<div style="margin-top: 16px;">
|
|
89
89
|
<ui-skeleton width="200px" height="24px" animated="true">
|
|
@@ -103,7 +103,7 @@ export function initSkeletonDemo() {
|
|
|
103
103
|
window.addEventListener('skeletonHide', () => {
|
|
104
104
|
const container = document.getElementById('skeletonDemoContainer');
|
|
105
105
|
if (container) {
|
|
106
|
-
container.insertAdjacentHTML('beforeend', '<div style="color:
|
|
106
|
+
container.insertAdjacentHTML('beforeend', '<div style="color:var(--accent-red,#ef4444); font-size: 13px;">[Event] skeletonHide fired</div>');
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
|
|
@@ -114,13 +114,13 @@ export function initSkeletonDemo() {
|
|
|
114
114
|
<div style="display: flex; flex-direction: column; gap: 40px;">
|
|
115
115
|
<div class="demo-block">
|
|
116
116
|
<h4>Multi-Line Text (Paragraph Mode)</h4>
|
|
117
|
-
<p style="color:
|
|
117
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 12px;">Using <code>rows="3"</code> and <code>last-row-width="60%"</code>. Intermediate rows automatically jitter for a natural feel.</p>
|
|
118
118
|
<ui-skeleton shape="text" rows="3" last-row-width="60%" animated="true"></ui-skeleton>
|
|
119
119
|
</div>
|
|
120
120
|
|
|
121
121
|
<div class="demo-block">
|
|
122
122
|
<h4>Pill Shapes (Tags/Badges)</h4>
|
|
123
|
-
<p style="color:
|
|
123
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 12px;">The <code>pill</code> shape is optimized for chip and tag loading states.</p>
|
|
124
124
|
<div style="display: flex; gap: 8px;">
|
|
125
125
|
<ui-skeleton shape="pill" width="60px" size="md"></ui-skeleton>
|
|
126
126
|
<ui-skeleton shape="pill" width="80px" size="md"></ui-skeleton>
|
|
@@ -130,8 +130,8 @@ export function initSkeletonDemo() {
|
|
|
130
130
|
|
|
131
131
|
<div class="demo-block">
|
|
132
132
|
<h4>Table Row Template</h4>
|
|
133
|
-
<p style="color:
|
|
134
|
-
<div style="background:
|
|
133
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 12px;">A complex compound skeleton for data grids using <code>template="table-row"</code>.</p>
|
|
134
|
+
<div style="background:var(--bg-primary,white); border-radius: 8px; border:1px solid var(--border-default,#e5e7eb); padding: 0 16px;">
|
|
135
135
|
<ui-skeleton template="table-row" animated="true"></ui-skeleton>
|
|
136
136
|
<div style="border-top: 1px solid #f3f4f6;"></div>
|
|
137
137
|
<ui-skeleton template="table-row" animated="true"></ui-skeleton>
|
|
@@ -149,7 +149,7 @@ export function initSkeletonDemo() {
|
|
|
149
149
|
if (!container) return;
|
|
150
150
|
const t0 = performance.now();
|
|
151
151
|
container.innerHTML = `
|
|
152
|
-
<div id="timer-basic" style="font-size: 13px; color:
|
|
152
|
+
<div id="timer-basic" style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 8px;"></div>
|
|
153
153
|
<div style="display: flex; flex-direction: column; gap: 12px;">
|
|
154
154
|
<ui-skeleton width="100%" height="20px"></ui-skeleton>
|
|
155
155
|
<ui-skeleton width="80%" height="20px"></ui-skeleton>
|
|
@@ -165,7 +165,7 @@ export function initSkeletonDemo() {
|
|
|
165
165
|
if (!container) return;
|
|
166
166
|
const t0 = performance.now();
|
|
167
167
|
container.innerHTML = `
|
|
168
|
-
<div id="timer-shapes" style="font-size: 13px; color:
|
|
168
|
+
<div id="timer-shapes" style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 8px;"></div>
|
|
169
169
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px;">
|
|
170
170
|
<div style="text-align: center;">
|
|
171
171
|
<ui-skeleton shape="rectangle" width="120px" height="80px"></ui-skeleton>
|
|
@@ -207,7 +207,7 @@ export function initSkeletonDemo() {
|
|
|
207
207
|
if (!container) return;
|
|
208
208
|
const t0 = performance.now();
|
|
209
209
|
container.innerHTML = `
|
|
210
|
-
<div id="timer-sizes" style="font-size: 13px; color:
|
|
210
|
+
<div id="timer-sizes" style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 8px;"></div>
|
|
211
211
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
212
212
|
<div>
|
|
213
213
|
<h4>Small</h4>
|
|
@@ -232,19 +232,62 @@ export function initSkeletonDemo() {
|
|
|
232
232
|
if (!container) return;
|
|
233
233
|
const t0 = performance.now();
|
|
234
234
|
container.innerHTML = `
|
|
235
|
-
<div id="timer-animations" style="font-size: 13px; color:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
<
|
|
235
|
+
<div id="timer-animations" style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 12px;"></div>
|
|
236
|
+
|
|
237
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;">
|
|
238
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
239
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Pulse (Breathing)</h4>
|
|
240
|
+
<ui-skeleton animation-type="pulse" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
240
241
|
</div>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<
|
|
242
|
+
|
|
243
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
244
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Wave (Diagonal Shimmer)</h4>
|
|
245
|
+
<ui-skeleton animation-type="wave" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
244
246
|
</div>
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
<
|
|
247
|
+
|
|
248
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
249
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Shimmer</h4>
|
|
250
|
+
<ui-skeleton animation-type="shimmer" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
251
|
+
</div>
|
|
252
|
+
|
|
253
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
254
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Sheen</h4>
|
|
255
|
+
<ui-skeleton animation-type="sheen" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
256
|
+
</div>
|
|
257
|
+
|
|
258
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
259
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Glow</h4>
|
|
260
|
+
<ui-skeleton animation-type="glow" width="100%" height="40px" border-radius="6px" color="primary"></ui-skeleton>
|
|
261
|
+
</div>
|
|
262
|
+
|
|
263
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid var(--border-default, #e5e7eb);">
|
|
264
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary);">Flicker</h4>
|
|
265
|
+
<ui-skeleton animation-type="flicker" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
266
|
+
</div>
|
|
267
|
+
|
|
268
|
+
<!-- NEW PREMIUM ANIMATIONS -->
|
|
269
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid #bfdbfe; box-shadow: 0 4px 12px rgba(59,130,246,0.08);">
|
|
270
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary); display: flex; align-items: center; gap: 6px;">
|
|
271
|
+
<span>Neon Sweep</span>
|
|
272
|
+
<span style="font-size:9px; background:#eff6ff; color:#2563eb; padding:2px 6px; border-radius:10px; border: 1px solid #bfdbfe;">PREMIUM</span>
|
|
273
|
+
</h4>
|
|
274
|
+
<ui-skeleton animation-type="neon-sweep" width="100%" height="40px" border-radius="6px" color="primary"></ui-skeleton>
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid #bfdbfe; box-shadow: 0 4px 12px rgba(59,130,246,0.08);">
|
|
278
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary); display: flex; align-items: center; gap: 6px;">
|
|
279
|
+
<span>Liquify</span>
|
|
280
|
+
<span style="font-size:9px; background:#eff6ff; color:#2563eb; padding:2px 6px; border-radius:10px; border: 1px solid #bfdbfe;">PREMIUM</span>
|
|
281
|
+
</h4>
|
|
282
|
+
<ui-skeleton animation-type="liquify" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div style="background: var(--bg-primary, white); padding: 16px; border-radius: 8px; border: 1px solid #c084fc; box-shadow: 0 4px 12px rgba(168,85,247,0.08);">
|
|
286
|
+
<h4 style="margin: 0 0 8px 0; color: var(--text-primary); display: flex; align-items: center; gap: 6px;">
|
|
287
|
+
<span>Aurora</span>
|
|
288
|
+
<span style="font-size:9px; background:#faf5ff; color:#7c3aed; padding:2px 6px; border-radius:10px; border: 1px solid #e9d5ff;">PREMIUM</span>
|
|
289
|
+
</h4>
|
|
290
|
+
<ui-skeleton animation-type="aurora" width="100%" height="40px" border-radius="6px"></ui-skeleton>
|
|
248
291
|
</div>
|
|
249
292
|
</div>
|
|
250
293
|
`;
|
|
@@ -257,46 +300,58 @@ export function initSkeletonDemo() {
|
|
|
257
300
|
if (!container) return;
|
|
258
301
|
const t0 = performance.now();
|
|
259
302
|
container.innerHTML = `
|
|
260
|
-
<div id="timer-layouts" style="font-size: 13px; color:
|
|
303
|
+
<div id="timer-layouts" style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 8px;"></div>
|
|
261
304
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;">
|
|
305
|
+
|
|
262
306
|
<!-- Card Skeleton -->
|
|
263
|
-
<div style="background-color:
|
|
264
|
-
<ui-skeleton shape="rectangle" width="100%" height="
|
|
265
|
-
<
|
|
266
|
-
|
|
267
|
-
|
|
307
|
+
<div style="background-color:var(--bg-primary,white); border-radius: 12px; border:1px solid var(--border-default,#e5e7eb); overflow:hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06);">
|
|
308
|
+
<ui-skeleton shape="rectangle" width="100%" height="180px" border-radius="0"></ui-skeleton>
|
|
309
|
+
<div style="padding: 16px; display:flex; flex-direction:column; gap:10px;">
|
|
310
|
+
<ui-skeleton width="65%" height="20px" border-radius="6px"></ui-skeleton>
|
|
311
|
+
<ui-skeleton width="100%" height="14px" border-radius="4px"></ui-skeleton>
|
|
312
|
+
<ui-skeleton width="85%" height="14px" border-radius="4px"></ui-skeleton>
|
|
313
|
+
<div style="display:flex; gap:8px; margin-top:4px;">
|
|
314
|
+
<ui-skeleton width="80px" height="32px" border-radius="8px"></ui-skeleton>
|
|
315
|
+
<ui-skeleton width="80px" height="32px" border-radius="8px"></ui-skeleton>
|
|
316
|
+
</div>
|
|
317
|
+
</div>
|
|
268
318
|
</div>
|
|
269
319
|
|
|
270
320
|
<!-- Profile Skeleton -->
|
|
271
|
-
<div style="background-color:
|
|
272
|
-
<div style="display: flex; gap:
|
|
273
|
-
<ui-skeleton shape="circle" width="
|
|
274
|
-
<div style="flex: 1;">
|
|
275
|
-
<ui-skeleton width="
|
|
276
|
-
<ui-skeleton width="
|
|
321
|
+
<div style="background-color:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#e5e7eb); display:flex; flex-direction:column; gap:16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);">
|
|
322
|
+
<div style="display: flex; align-items:center; gap: 14px;">
|
|
323
|
+
<ui-skeleton shape="circle" width="56px" height="56px"></ui-skeleton>
|
|
324
|
+
<div style="flex: 1; display:flex; flex-direction:column; gap:8px;">
|
|
325
|
+
<ui-skeleton width="140px" height="18px" border-radius="6px"></ui-skeleton>
|
|
326
|
+
<ui-skeleton width="100px" height="13px" border-radius="4px"></ui-skeleton>
|
|
277
327
|
</div>
|
|
278
328
|
</div>
|
|
279
|
-
<
|
|
280
|
-
|
|
329
|
+
<div style="display:flex; flex-direction:column; gap:8px;">
|
|
330
|
+
<ui-skeleton width="100%" height="13px" border-radius="4px"></ui-skeleton>
|
|
331
|
+
<ui-skeleton width="92%" height="13px" border-radius="4px"></ui-skeleton>
|
|
332
|
+
<ui-skeleton width="75%" height="13px" border-radius="4px"></ui-skeleton>
|
|
333
|
+
</div>
|
|
334
|
+
<div style="display:flex; gap:8px;">
|
|
335
|
+
<ui-skeleton width="70px" height="28px" border-radius="20px"></ui-skeleton>
|
|
336
|
+
<ui-skeleton width="70px" height="28px" border-radius="20px"></ui-skeleton>
|
|
337
|
+
<ui-skeleton width="70px" height="28px" border-radius="20px"></ui-skeleton>
|
|
338
|
+
</div>
|
|
281
339
|
</div>
|
|
282
340
|
|
|
283
341
|
<!-- List Skeleton -->
|
|
284
|
-
<div style="background-color:
|
|
285
|
-
<
|
|
342
|
+
<div style="background-color:var(--bg-primary,white); padding: 20px; border-radius: 12px; border:1px solid var(--border-default,#e5e7eb); display:flex; flex-direction:column; gap:16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);">
|
|
343
|
+
<ui-skeleton width="120px" height="18px" border-radius="6px"></ui-skeleton>
|
|
344
|
+
${[1,2,3].map(() => `
|
|
345
|
+
<div style="display: flex; align-items:center; gap: 12px;">
|
|
286
346
|
<ui-skeleton shape="circle" width="40px" height="40px"></ui-skeleton>
|
|
287
|
-
<div style="flex: 1;">
|
|
288
|
-
<ui-skeleton width="
|
|
289
|
-
<ui-skeleton width="
|
|
347
|
+
<div style="flex: 1; display:flex; flex-direction:column; gap:7px;">
|
|
348
|
+
<ui-skeleton width="75%" height="14px" border-radius="4px"></ui-skeleton>
|
|
349
|
+
<ui-skeleton width="55%" height="11px" border-radius="4px"></ui-skeleton>
|
|
290
350
|
</div>
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
<ui-skeleton shape="circle" width="40px" height="40px"></ui-skeleton>
|
|
294
|
-
<div style="flex: 1;">
|
|
295
|
-
<ui-skeleton width="70%" height="16px"></ui-skeleton>
|
|
296
|
-
<ui-skeleton width="50%" height="12px" style="margin-top: 4px;"></ui-skeleton>
|
|
297
|
-
</div>
|
|
298
|
-
</div>
|
|
351
|
+
<ui-skeleton width="48px" height="24px" border-radius="12px"></ui-skeleton>
|
|
352
|
+
</div>`).join('')}
|
|
299
353
|
</div>
|
|
354
|
+
|
|
300
355
|
</div>
|
|
301
356
|
`;
|
|
302
357
|
const t1 = performance.now();
|
|
@@ -380,6 +435,9 @@ export function initSkeletonDemo() {
|
|
|
380
435
|
<option value="sheen">Sheen</option>
|
|
381
436
|
<option value="glow">Glow</option>
|
|
382
437
|
<option value="flicker">Flicker</option>
|
|
438
|
+
<option value="neon-sweep">Neon Sweep (Premium)</option>
|
|
439
|
+
<option value="liquify">Liquify (Premium)</option>
|
|
440
|
+
<option value="aurora">Aurora (Premium)</option>
|
|
383
441
|
</ui-dropdown>
|
|
384
442
|
</label>
|
|
385
443
|
|
|
@@ -398,8 +456,8 @@ export function initSkeletonDemo() {
|
|
|
398
456
|
<ui-checkbox id="skeletonAnimated" checked label="Animated" oncheckboxchange="updateInteractiveSkeleton()"></ui-checkbox>
|
|
399
457
|
</div>
|
|
400
458
|
|
|
401
|
-
<div style="margin-top: 12px; padding: 12px; background-color:
|
|
402
|
-
<p style="margin: 0; font-size: 13px; color:
|
|
459
|
+
<div style="margin-top: 12px; padding: 12px; background-color:var(--accent-blue-soft,#eff6ff); border-radius: 6px; border: 1px solid #bfdbfe;">
|
|
460
|
+
<p style="margin: 0; font-size: 13px; color:var(--accent-blue,#1e40af);">
|
|
403
461
|
💡 <strong>Tip:</strong> Changes apply instantly as you type or select options!
|
|
404
462
|
</p>
|
|
405
463
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Performance benchmark for skeleton-loader with large lists
|
|
1
|
+
// Performance benchmark for skeleton-loader with large lists
|
|
2
2
|
export function initSkeletonPerformanceDemo() {
|
|
3
3
|
const section = document.getElementById('skeleton');
|
|
4
4
|
if (!section) return;
|
|
@@ -6,7 +6,7 @@ export function initSkeletonPerformanceDemo() {
|
|
|
6
6
|
<h4>Performance Benchmark: 500 Skeletons</h4>
|
|
7
7
|
<ui-button id="startPerfTest" style="padding: 8px 16px; background: #10b981; color: white; border: none; border-radius: 6px; cursor: pointer;">Start Benchmark</ui-button>
|
|
8
8
|
<div id="perfSkeletonContainer" style="margin-top: 20px;"></div>
|
|
9
|
-
<div id="perfResult" style="margin-top: 12px; color:
|
|
9
|
+
<div id="perfResult" style="margin-top: 12px; color:var(--text-secondary,#64748b);"></div>
|
|
10
10
|
`;
|
|
11
11
|
document.getElementById('startPerfTest').onclick = function () {
|
|
12
12
|
const container = document.getElementById('perfSkeletonContainer');
|
|
@@ -17,17 +17,17 @@ export function initSmartDialogDemo() {
|
|
|
17
17
|
|
|
18
18
|
<!-- Basic -->
|
|
19
19
|
<ui-button class="sd-btn" onclick="SD.basic()" style="--c:#10b981">📄 Basic</ui-button>
|
|
20
|
-
<ui-button class="sd-btn" onclick="SD.minimize()" style="--c
|
|
21
|
-
<ui-button class="sd-btn" onclick="SD.multiMinimize()" style="--c
|
|
20
|
+
<ui-button class="sd-btn" onclick="SD.minimize()" style="--c:var(--accent-purple,#8b5cf6)">📌 Minimizable</ui-button>
|
|
21
|
+
<ui-button class="sd-btn" onclick="SD.multiMinimize()" style="--c:var(--accent-purple,#7c3aed)">⬇️ Multi-Minimize Tray</ui-button>
|
|
22
22
|
<ui-button class="sd-btn" onclick="SD.draggable()" style="--c:#10b981">🖱️ Draggable</ui-button>
|
|
23
|
-
<ui-button class="sd-btn" onclick="SD.resizable()" style="--c
|
|
24
|
-
<ui-button class="sd-btn" onclick="SD.maximizable()" style="--c
|
|
25
|
-
<ui-button class="sd-btn" onclick="SD.sizes()" style="--c
|
|
23
|
+
<ui-button class="sd-btn" onclick="SD.resizable()" style="--c:var(--accent-cyan,#0ea5e9)">↔️ Draggable + Resizable</ui-button>
|
|
24
|
+
<ui-button class="sd-btn" onclick="SD.maximizable()" style="--c:var(--accent-yellow,#f59e0b)">🖥️ Maximizable</ui-button>
|
|
25
|
+
<ui-button class="sd-btn" onclick="SD.sizes()" style="--c:var(--accent-red,#ef4444)">📐 Sizes</ui-button>
|
|
26
26
|
|
|
27
27
|
<!-- Variants / Status -->
|
|
28
|
-
<ui-button class="sd-btn" onclick="SD.variants()" style="--c
|
|
29
|
-
<ui-button class="sd-btn" onclick="SD.statusDialogs()" style="--c
|
|
30
|
-
<ui-button class="sd-btn" onclick="SD.glassVariant()" style="--c
|
|
28
|
+
<ui-button class="sd-btn" onclick="SD.variants()" style="--c:var(--accent-indigo,#6366f1)">🎨 Variants</ui-button>
|
|
29
|
+
<ui-button class="sd-btn" onclick="SD.statusDialogs()" style="--c:var(--accent-red,#dc2626)">🚦 Status</ui-button>
|
|
30
|
+
<ui-button class="sd-btn" onclick="SD.glassVariant()" style="--c:var(--accent-cyan,#0891b2)">🪟 Glass</ui-button>
|
|
31
31
|
<ui-button class="sd-btn" onclick="SD.positions()" style="--c:#84cc16">📍 Positions</ui-button>
|
|
32
32
|
<ui-button class="sd-btn" onclick="SD.animations()" style="--c:#f97316">✨ Animations</ui-button>
|
|
33
33
|
|
|
@@ -36,17 +36,17 @@ export function initSmartDialogDemo() {
|
|
|
36
36
|
<ui-button class="sd-btn" onclick="SD.backdropNone()" style="--c:#374151">🚫 No Backdrop</ui-button>
|
|
37
37
|
|
|
38
38
|
<!-- Footer Actions -->
|
|
39
|
-
<ui-button class="sd-btn" onclick="SD.withFooter()" style="--c
|
|
40
|
-
<ui-button class="sd-btn" onclick="SD.confirmDialog()" style="--c
|
|
39
|
+
<ui-button class="sd-btn" onclick="SD.withFooter()" style="--c:var(--accent-green,#059669)">✅ With Footer</ui-button>
|
|
40
|
+
<ui-button class="sd-btn" onclick="SD.confirmDialog()" style="--c:var(--accent-yellow,#b45309)">⚠️ Confirm</ui-button>
|
|
41
41
|
<ui-button class="sd-btn" onclick="SD.autoClose()" style="--c:#e11d48">⏱️ Auto-Close</ui-button>
|
|
42
42
|
|
|
43
43
|
<!-- Advanced -->
|
|
44
|
-
<ui-button class="sd-btn" onclick="SD.formDialog()" style="--c
|
|
44
|
+
<ui-button class="sd-btn" onclick="SD.formDialog()" style="--c:var(--accent-indigo,#4f46e5)">📝 Form Dialog</ui-button>
|
|
45
45
|
<ui-button class="sd-btn" onclick="SD.remember()" style="--c:#0f766e">💾 Remember Position</ui-button>
|
|
46
46
|
<ui-button class="sd-btn" onclick="SD.nested()" style="--c:#9333ea">🪆 Nested Dialogs</ui-button>
|
|
47
47
|
<ui-button class="sd-btn" onclick="SD.scrollable()" style="--c:#0284c7">📜 Scrollable Content</ui-button>
|
|
48
48
|
<ui-button class="sd-btn" onclick="SD.icon()" style="--c:#ca8a04">🖼️ With Icon</ui-button>
|
|
49
|
-
<ui-button class="sd-btn" onclick="SD.customSize()" style="--c
|
|
49
|
+
<ui-button class="sd-btn" onclick="SD.customSize()" style="--c:var(--accent-pink,#be185d)">📏 Custom Size</ui-button>
|
|
50
50
|
<ui-button class="sd-btn" onclick="SD.kitchen()" style="--c:linear-gradient(135deg,#7c3aed,#db2777)">🍽️ Kitchen Sink</ui-button>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Smart Menu Demo Functions
|
|
1
|
+
// Smart Menu Demo Functions
|
|
2
2
|
export function initSmartMenuDemo() {
|
|
3
3
|
const section = document.getElementById('smart-menu');
|
|
4
4
|
if (!section) return;
|
|
@@ -8,10 +8,10 @@ export function initSmartMenuDemo() {
|
|
|
8
8
|
<p>Advanced context menu with smart positioning and submenu support.</p>
|
|
9
9
|
|
|
10
10
|
<div class="demo-controls" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap;">
|
|
11
|
-
<ui-button onclick="showBasicSmartMenu()"
|
|
12
|
-
<ui-button onclick="showNestedSmartMenu()"
|
|
13
|
-
<ui-button onclick="showFileOperationsMenu()"
|
|
14
|
-
<ui-button onclick="showInteractiveSmartMenu()"
|
|
11
|
+
<ui-button onclick="showBasicSmartMenu()" variant="outline">Basic Menu</ui-button>
|
|
12
|
+
<ui-button onclick="showNestedSmartMenu()" variant="outline">Nested Submenus</ui-button>
|
|
13
|
+
<ui-button onclick="showFileOperationsMenu()" variant="outline">File Operations</ui-button>
|
|
14
|
+
<ui-button onclick="showInteractiveSmartMenu()" variant="outline">?? Interactive Playground</ui-button>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<div id="smartMenuDemoContainer" style="margin-top: 20px;"></div>
|
|
@@ -26,10 +26,10 @@ export function initSmartMenuDemo() {
|
|
|
26
26
|
<div style="max-width: 600px; margin: 0 auto;">
|
|
27
27
|
<h4>Basic Smart Menu</h4>
|
|
28
28
|
<p style="color: #6b7280; font-size: 13px;">Right-click on the area below to open the smart menu</p>
|
|
29
|
-
<div id="basicSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:
|
|
29
|
+
<div id="basicSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:var(--bg-secondary,#f9fafb); cursor: context-menu; margin: 20px 0;">
|
|
30
30
|
<div style="text-align: center;">
|
|
31
31
|
<div style="margin-bottom: 10px;">
|
|
32
|
-
<ui-icon name="mouse-pointer-2" library="lucide" size="48px" style="color:
|
|
32
|
+
<ui-icon name="mouse-pointer-2" library="lucide" size="48px" style="color:var(--text-secondary,#64748b);"></ui-icon>
|
|
33
33
|
</div>
|
|
34
34
|
<div style="color: #6b7280; font-size: 14px;">Right-click here to open menu</div>
|
|
35
35
|
</div>
|
|
@@ -48,7 +48,7 @@ export function initSmartMenuDemo() {
|
|
|
48
48
|
function logAction(action) {
|
|
49
49
|
const log = document.querySelector('#smartMenuLog div');
|
|
50
50
|
if (log) {
|
|
51
|
-
log.innerHTML = `<div style="color:
|
|
51
|
+
log.innerHTML = `<div style="color:var(--accent-blue,#1e40af);"><strong>${action}</strong> clicked at ${new Date().toLocaleTimeString()}</div>`;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -81,10 +81,10 @@ export function initSmartMenuDemo() {
|
|
|
81
81
|
<div style="max-width: 600px; margin: 0 auto;">
|
|
82
82
|
<h4>Nested Smart Menu</h4>
|
|
83
83
|
<p style="color: #6b7280; font-size: 13px;">Multi-level menu with submenus</p>
|
|
84
|
-
<div id="nestedSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:
|
|
84
|
+
<div id="nestedSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:var(--bg-secondary,#f9fafb); cursor: context-menu; margin: 20px 0;">
|
|
85
85
|
<div style="text-align: center;">
|
|
86
86
|
<div style="margin-bottom: 10px;">
|
|
87
|
-
<ui-icon name="folder-tree" library="lucide" size="48px" style="color:
|
|
87
|
+
<ui-icon name="folder-tree" library="lucide" size="48px" style="color:var(--text-secondary,#64748b);"></ui-icon>
|
|
88
88
|
</div>
|
|
89
89
|
<div style="color: #6b7280; font-size: 14px;">Right-click for file operations</div>
|
|
90
90
|
</div>
|
|
@@ -184,10 +184,10 @@ export function initSmartMenuDemo() {
|
|
|
184
184
|
<div style="max-width: 600px; margin: 0 auto;">
|
|
185
185
|
<h4>File Operations Menu</h4>
|
|
186
186
|
<p style="color: #6b7280; font-size: 13px;">Complete file management operations</p>
|
|
187
|
-
<div id="fileSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:
|
|
187
|
+
<div id="fileSmartTarget" style="min-height: 200px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:var(--bg-secondary,#f9fafb); cursor: context-menu; margin: 20px 0;">
|
|
188
188
|
<div style="text-align: center;">
|
|
189
189
|
<div style="margin-bottom: 10px;">
|
|
190
|
-
<ui-icon name="folder-open" library="lucide" size="48px" style="color:
|
|
190
|
+
<ui-icon name="folder-open" library="lucide" size="48px" style="color:var(--text-secondary,#64748b);"></ui-icon>
|
|
191
191
|
</div>
|
|
192
192
|
<div style="color: #6b7280; font-size: 14px; font-weight: 600;">Project Files</div>
|
|
193
193
|
<div style="color: #9ca3af; font-size: 12px; margin-top: 4px;">Right-click for file operations</div>
|
|
@@ -242,7 +242,7 @@ window.showInteractiveSmartMenu = function () {
|
|
|
242
242
|
if (!container) return;
|
|
243
243
|
|
|
244
244
|
container.innerHTML = `
|
|
245
|
-
<div style="background-color:
|
|
245
|
+
<div style="background-color:var(--bg-primary,white); border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);">
|
|
246
246
|
<div style="display: flex; gap: 30px; flex-wrap: wrap;">
|
|
247
247
|
<div style="flex: 1; min-width: 250px;">
|
|
248
248
|
<h3 style="margin-top: 0;">?? Interactive Playground</h3>
|
|
@@ -263,17 +263,17 @@ window.showInteractiveSmartMenu = function () {
|
|
|
263
263
|
</div>
|
|
264
264
|
</div>
|
|
265
265
|
|
|
266
|
-
<div style="flex: 1; min-width: 300px; background-color: #f9fafb; padding: 20px; border-radius: 8px; border:
|
|
266
|
+
<div style="flex: 1; min-width: 300px; background-color: #f9fafb; padding: 20px; border-radius: 8px; border:1px solid var(--border-default,#e5e7eb);">
|
|
267
267
|
<h4 style="margin-top: 0;">Preview:</h4>
|
|
268
|
-
<div id="interactiveSmartMenuTarget" style="margin-top: 20px; min-height: 300px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:
|
|
268
|
+
<div id="interactiveSmartMenuTarget" style="margin-top: 20px; min-height: 300px; border: 2px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background:var(--bg-primary,white); cursor: context-menu;">
|
|
269
269
|
<div style="text-align: center;">
|
|
270
270
|
<div style="margin-bottom: 10px;">
|
|
271
|
-
<ui-icon name="mouse-pointer-2" library="lucide" size="48px" style="color:
|
|
271
|
+
<ui-icon name="mouse-pointer-2" library="lucide" size="48px" style="color:var(--text-secondary,#64748b);"></ui-icon>
|
|
272
272
|
</div>
|
|
273
273
|
<div style="color: #6b7280; font-size: 14px;">Right-click here</div>
|
|
274
274
|
</div>
|
|
275
275
|
</div>
|
|
276
|
-
<div id="smartMenuOutput" style="margin-top: 20px; padding: 10px; background-color:
|
|
276
|
+
<div id="smartMenuOutput" style="margin-top: 20px; padding: 10px; background-color:var(--bg-primary,white); border-radius: 4px; font-family: monospace; font-size: 12px; display: none;"></div>
|
|
277
277
|
</div>
|
|
278
278
|
</div>
|
|
279
279
|
</div>
|