atomicuilibrary 0.0.1 → 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 +5 -5
- 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/{security-E1JcwxGc.js → security-CNaNip8F.js} +88 -154
- 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_10.cjs.entry.js → ui-accordion_11.cjs.entry.js} +730 -61
- 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 +11 -12
- 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 +3 -3
- package/dist/cjs/ui-card.cjs.entry.js +28 -5
- package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ui-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/ui-code-editor.cjs.entry.js +3 -3
- 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 +86 -12
- 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 +351 -58
- 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_3.cjs.entry.js +235 -504
- 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 +164 -23
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/ui-switch.cjs.entry.js +14 -13
- package/dist/cjs/ui-tabs.cjs.entry.js +3 -3
- package/dist/cjs/ui-tag.cjs.entry.js +58 -13
- package/dist/cjs/ui-timeline.cjs.entry.js +11 -3
- 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 +5 -5
- package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
- package/dist/cjs/ui-transfer-list.cjs.entry.js +7 -7
- package/dist/cjs/ui-tree.cjs.entry.js +30 -15
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +3 -3
- package/dist/collection/assets/js/component-config.js +1 -0
- package/dist/collection/assets/js/demo-loader.js +2 -1
- package/dist/collection/assets/js/demos/about-demo.js +13 -13
- package/dist/collection/assets/js/demos/accordion-demo.js +238 -49
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +315 -316
- 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 +57 -57
- 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 +175 -106
- package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
- package/dist/collection/assets/js/demos/callout-banner-demo.js +332 -42
- package/dist/collection/assets/js/demos/card-demo.js +122 -74
- 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 +476 -55
- 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 +92 -72
- package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
- package/dist/collection/assets/js/demos/documentation-demo.js +227 -22
- 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 +304 -88
- 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 +226 -140
- package/dist/collection/assets/js/demos/loader-demo.js +48 -48
- package/dist/collection/assets/js/demos/masonry-demo.js +592 -0
- 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 +768 -61
- 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 +137 -0
- 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 +110 -80
- package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
- package/dist/collection/assets/js/demos/timeline-demo.js +27 -14
- 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 +116 -114
- 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 +72 -70
- package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
- package/dist/collection/collection-manifest.json +2 -6
- package/dist/collection/components/accordion/accordion.css +576 -9
- package/dist/collection/components/accordion/accordion.js +47 -14
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +24 -10
- package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
- package/dist/collection/components/anchor/anchor.css +0 -1
- package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
- package/dist/collection/components/aside-panel/aside-panel.css +3 -5
- package/dist/collection/components/aside-panel/aside-panel.js +12 -13
- package/dist/collection/components/avatar/avatar.css +6 -6
- package/dist/collection/components/avatar/avatar.js +64 -12
- package/dist/collection/components/badge/badge.css +28 -17
- package/dist/collection/components/badge/badge.js +7 -4
- package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/button/button.css +132 -0
- package/dist/collection/components/button/button.js +130 -11
- 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 +304 -40
- package/dist/collection/components/card/card.js +48 -4
- package/dist/collection/components/checkbox/checkbox.css +8 -10
- package/dist/collection/components/checkbox/checkbox.js +5 -5
- 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 +8 -8
- package/dist/collection/components/dialog-box/dialog-box.js +117 -15
- package/dist/collection/components/dialog-header/dialog-header.js +2 -2
- 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 +21 -10
- 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 +427 -131
- package/dist/collection/components/list-item/list-item.js +373 -58
- package/dist/collection/components/loader/loader.css +1635 -0
- package/dist/collection/components/loader/loader.js +1120 -0
- 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 +307 -28
- package/dist/collection/components/progress/progress.js +244 -24
- package/dist/collection/components/radio/radio.css +5 -3
- 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/snackbar/snackbar.js +1 -1
- package/dist/collection/components/speed-dial/speed-dial.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 +14 -13
- 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 +53 -20
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +48 -13
- 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/components.js +1 -0
- 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 -0
- 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-divider.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-input-pair.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-radio-group.d.ts → ui-loader.d.ts} +4 -4
- package/dist/components/ui-loader.js +1 -0
- 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-context-menu.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 +5 -5
- 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/{security-D2WzX6vR.js → security-Dyu3Nplq.js} +88 -154
- package/dist/esm/smart-step.entry.js +3 -3
- package/dist/esm/timeline-item.entry.js +2 -2
- package/dist/esm/{ui-accordion_10.entry.js → ui-accordion_11.entry.js} +730 -62
- 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 +11 -12
- 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 +3 -3
- package/dist/esm/ui-card.entry.js +28 -5
- package/dist/esm/ui-carousel.entry.js +1 -1
- package/dist/esm/ui-checkbox.entry.js +5 -5
- package/dist/esm/ui-code-editor.entry.js +3 -3
- 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 +86 -12
- 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 +351 -58
- 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_3.entry.js +235 -504
- 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 +164 -23
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/ui-switch.entry.js +14 -13
- package/dist/esm/ui-tabs.entry.js +3 -3
- package/dist/esm/ui-tag.entry.js +58 -13
- package/dist/esm/ui-timeline.entry.js +11 -3
- 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 +5 -5
- package/dist/esm/ui-top-bar.entry.js +1 -1
- package/dist/esm/ui-transfer-list.entry.js +7 -7
- package/dist/esm/ui-tree.entry.js +30 -15
- package/dist/esm/ui-workspace-manager.entry.js +3 -3
- 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-f5719913.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-c7e87fbb.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-81961fb1.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-2b6aa7bc.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-7515b1e3.entry.js → p-2cfba753.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c90722ec.entry.js → p-2fe22958.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85bf89fd.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-3d3d48fd.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-4f6bba75.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-e5322e59.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-73d29a4a.entry.js → p-4c46ac0b.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-f0830120.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-77124686.entry.js → p-62889cfe.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-9d0c8760.entry.js → p-66f71613.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-2d273118.entry.js → p-67c440b2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d419eaf0.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-ffb1754a.entry.js → p-7ed3bba2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-77cc333a.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-c5ddc817.entry.js → p-97086868.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-287dbf09.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-0b004861.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-Dyu3Nplq.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-c174a372.entry.js → p-ae617f62.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-62352ef2.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-8d951aef.entry.js → p-bc49a088.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4de419d5.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-5e3e80ae.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-7f91d949.entry.js → p-cb6e38a6.entry.js} +1 -1
- 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/accordion/accordion.d.ts +10 -2
- 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/button/button.d.ts +9 -0
- package/dist/types/components/card/card.d.ts +4 -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 +46 -17
- package/dist/types/components/loader/loader.d.ts +145 -0
- 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 +41 -2
- 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 +1214 -1381
- package/dist/types/types/common.d.ts +2 -2
- package/dist/types/types/common.type.d.ts +3 -1
- package/dist/types/utils/dom.d.ts +4 -4
- package/package.json +4 -4
- package/dist/cjs/dom-oP1E4Rd3.js +0 -267
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +0 -330
- package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
- package/dist/cjs/ui-image-button.cjs.entry.js +0 -67
- package/dist/cjs/ui-input-pair.cjs.entry.js +0 -44
- package/dist/cjs/ui-popover.cjs.entry.js +0 -517
- package/dist/cjs/ui-radio-group.cjs.entry.js +0 -205
- package/dist/cjs/ui-radio.cjs.entry.js +0 -206
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -223
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -1001
- 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/image-button/image-button.css +0 -154
- package/dist/collection/components/image-button/image-button.js +0 -310
- package/dist/collection/components/image-button/types.js +0 -1
- package/dist/collection/components/input-pair/input-pair.css +0 -72
- package/dist/collection/components/input-pair/input-pair.js +0 -309
- package/dist/collection/components/radio-group/radio-group.css +0 -202
- package/dist/collection/components/radio-group/radio-group.js +0 -903
- package/dist/collection/components/radio-group/types.js +0 -1
- 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/collection/components/smart-location-dropdown/types.js +0 -1
- package/dist/components/ui-checkbox-group.d.ts +0 -11
- package/dist/components/ui-checkbox-group.js +0 -1
- package/dist/components/ui-color-controller.d.ts +0 -11
- package/dist/components/ui-color-controller.js +0 -1
- package/dist/components/ui-image-button.d.ts +0 -11
- package/dist/components/ui-image-button.js +0 -1
- package/dist/components/ui-input-pair.js +0 -1
- package/dist/components/ui-radio-group.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-checkbox-group.entry.js +0 -328
- package/dist/esm/ui-color-controller.entry.js +0 -148
- package/dist/esm/ui-image-button.entry.js +0 -65
- package/dist/esm/ui-input-pair.entry.js +0 -42
- package/dist/esm/ui-popover.entry.js +0 -515
- package/dist/esm/ui-radio-group.entry.js +0 -203
- package/dist/esm/ui-radio.entry.js +0 -204
- package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-049744f9.entry.js +0 -1
- 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-2f1aebb3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-46596a28.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-46efdea3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5508874f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-64e3a484.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6fa9dc15.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-70d82d79.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-875be805.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-9fa70359.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-D2WzX6vR.js +0 -2
- package/dist/exploration-project-tailwind/p-DUsoYu9r.js +0 -2
- package/dist/exploration-project-tailwind/p-a4f52a76.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ba21fed3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c2ca71ac.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d16c9635.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-d2308a00.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +0 -1
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -87
- package/dist/types/components/checkbox-group/types.d.ts +0 -8
- package/dist/types/components/color-controller/color-controller.d.ts +0 -24
- package/dist/types/components/image-button/image-button.d.ts +0 -31
- package/dist/types/components/image-button/types.d.ts +0 -1
- package/dist/types/components/input-pair/input-pair.d.ts +0 -28
- package/dist/types/components/radio-group/radio-group.d.ts +0 -74
- package/dist/types/components/radio-group/types.d.ts +0 -2
- 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/{checkbox-group → label}/types.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C32cWsm5.js');
|
|
4
4
|
|
|
5
|
-
const colorPickerCss = () =>
|
|
5
|
+
const colorPickerCss = () => `@charset "UTF-8";.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;font-family:inherit}.cp-label{display:block;font-size:13px;font-weight:600;color:var(--text-secondary, #374151);margin-bottom:6px}.cp-trigger-wrapper{position:relative;display:inline-block}.cp-trigger{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1.5px solid var(--border-strong, #d1d5db);border-radius:10px;background:var(--bg-primary, #ffffff);cursor:pointer;font-size:13px;font-weight:500;color:var(--text-secondary, #374151);transition:border-color 0.2s, box-shadow 0.2s;min-width:140px}.cp-trigger:hover:not(.cp-disabled){border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb, 59, 130, 246), 0.12)}.cp-trigger:hover:not(.cp-disabled).cp-disabled{opacity:0.5;cursor:not-allowed}.cp-trigger-swatch{width:20px;height:20px;border-radius:50%;border:2px solid rgba(0, 0, 0, 0.1);flex-shrink:0}.cp-trigger-value{flex:1;font-family:monospace}.cp-trigger-arrow{font-size:10px;color:var(--text-muted, #9ca3af)}.cp-trigger-compact{display:inline-flex;align-items:center;justify-content:center;padding:3px;border:1.5px solid var(--border-strong, #d1d5db);border-radius:8px;background:var(--bg-primary, #ffffff);cursor:pointer;transition:border-color 0.2s, box-shadow 0.2s}.cp-trigger-compact:hover:not(:disabled){border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb, 59, 130, 246), 0.12)}.cp-trigger-compact.cp-open{border-color:var(--color-primary, #10b981);box-shadow:0 0 0 3px rgba(var(--color-primary-rgb, 59, 130, 246), 0.15)}.cp-trigger-compact:disabled,.cp-trigger-compact.cp-disabled{opacity:0.5;cursor:not-allowed}.cp-trigger-compact-swatch{width:26px;height:26px;border-radius:5px;border:1.5px solid rgba(0, 0, 0, 0.1);display:block}:host(.cp-size-sm) .cp-trigger-compact{border-radius:6px}:host(.cp-size-sm) .cp-trigger-compact-swatch{width:20px;height:20px;border-radius:3px}:host(.cp-size-lg) .cp-trigger-compact{border-radius:10px}:host(.cp-size-lg) .cp-trigger-compact-swatch{width:32px;height:32px;border-radius:7px}.cp-dropdown{position:fixed;z-index:9999;background:var(--bg-primary, #ffffff);border:1px solid var(--border-default, #e5e7eb);border-radius:14px;box-shadow:0 20px 40px rgba(0, 0, 0, 0.15);overflow-x:hidden;animation:cp-drop-in 0.15s ease}@keyframes cp-drop-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.cp-panel{width:430px;padding:14px}.cp-panel-hue{width:280px}.cp-panel-input{width:480px}.cp-panel-input .cp-inputs-grid{grid-template-columns:1fr;gap:16px}.cp-panel-input .cp-input-wrap.cp-full{grid-column:span 1}.cp-gradient{width:100%;height:140px;border-radius:8px;position:relative;cursor:crosshair;margin-bottom:12px;user-select:none}.cp-gradient-thumb{position:absolute;width:14px;height:14px;border-radius:50%;border:2.5px solid var(--border-subtle, #fff);box-shadow:0 1px 4px rgba(0, 0, 0, 0.3);transform:translate(-50%, -50%);pointer-events:none}.cp-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.cp-preview{width:32px;height:32px;border-radius:8px;border:2px solid rgba(0, 0, 0, 0.1);flex-shrink:0}.cp-sliders{flex:1;display:flex;flex-direction:column;gap:12px}.cp-hue-slider,.cp-alpha-slider{width:100%;--slider-track-height:12px;--slider-thumb-size:20px}.cp-hue-slider::part(track),.cp-alpha-slider::part(track){height:12px;border-radius:6px;box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.2)}.cp-hue-slider::part(thumb),.cp-alpha-slider::part(thumb){width:20px;height:20px;border:3px solid #fff;box-shadow:0 4px 10px rgba(0, 0, 0, 0.3);background:transparent}.cp-inputs-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.cp-panel-multi-format .cp-inputs-grid{grid-template-columns:1fr}.cp-panel-multi-format .cp-input-wrap.cp-full{grid-column:span 1}.cp-input-wrap{display:flex;flex-direction:column;gap:8px}.cp-input-wrap.cp-full{grid-column:span 2}.cp-sm-label{font-size:11px;font-weight:800;color:var(--text-muted, #94a3b8);text-transform:uppercase;letter-spacing:0.05em}.cp-input-wrap.cp-inline-row{display:grid;grid-template-columns:60px 1fr;align-items:center;gap:16px;background:rgba(var(--ui-input-bg-rgb, 248, 250, 252), 0.5);padding:12px 16px;border-radius:12px;border:1px solid var(--border-subtle, #f1f5f9);transition:all 0.2s ease}.cp-input-wrap.cp-inline-row:hover{background:#fff;border-color:var(--border-strong, #e2e8f0);box-shadow:0 4px 12px rgba(0, 0, 0, 0.03)}.cp-channel-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(64px, 1fr));gap:10px;width:100%}.cp-channel-field{display:flex;flex-direction:column;gap:6px;align-items:center}.cp-channel-field .cp-channel-label{font-size:10px;font-weight:700;color:var(--text-muted, #94a3b8);margin-bottom:2px}.cp-channel-field ui-input{width:100%;--ui-input-text-align:center}.cp-text-input{--ui-input-text-align:left}.cp-input-field-wrap{display:flex;flex-direction:column;gap:0;flex:1}.cp-channel-col{display:flex;flex-direction:column;gap:0;flex:1}.cp-field-error{display:block;font-size:11px;font-weight:600;color:var(--color-danger, #ef4444);margin-top:5px;padding:3px 8px;background:rgba(239, 68, 68, 0.08);border-radius:6px;border-left:2px solid var(--color-danger, #ef4444);animation:cp-field-error-in 0.25s ease, cp-shake 0.3s ease}@keyframes cp-field-error-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes cp-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}:host(.cp-variant-hue) .cp-panel{padding-block:12px}:host(.cp-variant-hue) .cp-row{margin-bottom:12px}:host(.cp-variant-input) .cp-panel{padding:12px}:host(.cp-variant-input) .cp-name-display,:host(.cp-variant-input) .cp-text-input{min-height:36px}.cp-name-display{width:100%;border:1.5px solid var(--border-subtle, #f3f4f6);background:var(--bg-primary, #f9fafb);border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;color:var(--text-secondary, #4b5563);box-sizing:border-box}.cp-swatches{display:flex;flex-wrap:wrap;gap:6px}.cp-swatch{width:22px;height:22px;border-radius:6px;border:2px solid transparent;cursor:pointer;transition:transform 0.1s, border-color 0.15s, box-shadow 0.15s;padding:0;margin:0;outline:none;box-sizing:border-box;flex-shrink:0}.cp-swatch:hover{transform:scale(1.15)}.cp-swatch.cp-swatch-active{border-color:var(--bg-primary, #ffffff);box-shadow:0 0 0 1px var(--bg-primary, #ffffff), 0 0 0 3px var(--swatch-color, var(--color-primary, #10b981))}`;
|
|
6
6
|
|
|
7
7
|
const ColorPicker = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -16,14 +16,19 @@ const ColorPicker = class {
|
|
|
16
16
|
/** Show hex input field */
|
|
17
17
|
showHex = true;
|
|
18
18
|
/** Show RGB input field */
|
|
19
|
-
showRgb =
|
|
19
|
+
showRgb = false;
|
|
20
20
|
/** Show RGBA input field */
|
|
21
|
-
showRgba =
|
|
21
|
+
showRgba = false;
|
|
22
22
|
/** Show HSL input field */
|
|
23
|
-
showHsl =
|
|
23
|
+
showHsl = false;
|
|
24
24
|
/** Show HSLA input field */
|
|
25
|
-
showHsla =
|
|
26
|
-
|
|
25
|
+
showHsla = false; /**
|
|
26
|
+
* Comma-separated string or array of formats to show.
|
|
27
|
+
* Accepted values: 'hex', 'rgb', 'rgba', 'hsl', 'hsla'.
|
|
28
|
+
* When set, overrides the individual showHex/showRgb/showRgba/showHsl/showHsla flags.
|
|
29
|
+
* Examples: formats="hex,rgb" | :formats="['hex','hsl','hsla']"
|
|
30
|
+
*/
|
|
31
|
+
formats = ''; /** Show alpha channel slider */
|
|
27
32
|
showAlpha = false;
|
|
28
33
|
/** Show preset swatches */
|
|
29
34
|
showSwatches = true;
|
|
@@ -51,6 +56,8 @@ const ColorPicker = class {
|
|
|
51
56
|
showGradient = false;
|
|
52
57
|
/** Display variant: full picker, hue slider only, or direct inputs */
|
|
53
58
|
variant = 'default';
|
|
59
|
+
/** Compact trigger — shows only the color swatch, no hex label or arrow */
|
|
60
|
+
compact = false;
|
|
54
61
|
get el() { return index.getElement(this); }
|
|
55
62
|
internals;
|
|
56
63
|
isOpen = false;
|
|
@@ -65,6 +72,10 @@ const ColorPicker = class {
|
|
|
65
72
|
isGradientMode = false;
|
|
66
73
|
gradientStops = ['#3bf673', '#10b981'];
|
|
67
74
|
activeStopIndex = 0;
|
|
75
|
+
enabledFormatsSet = null;
|
|
76
|
+
dropdownStyle = {};
|
|
77
|
+
/** Prevents refineDropdownPlacement from running more than once per open cycle */
|
|
78
|
+
_placementRefined = false;
|
|
68
79
|
colorChange;
|
|
69
80
|
handleDocumentPointerDown = (event) => {
|
|
70
81
|
if (!this.isOpen || this.inline) {
|
|
@@ -101,13 +112,138 @@ const ColorPicker = class {
|
|
|
101
112
|
}
|
|
102
113
|
}
|
|
103
114
|
}
|
|
115
|
+
handleFormatsChange() {
|
|
116
|
+
this.parseFormats();
|
|
117
|
+
}
|
|
118
|
+
handleIsOpenChange(open) {
|
|
119
|
+
if (open) {
|
|
120
|
+
// Sync input fields to the current color every time the popover opens
|
|
121
|
+
this.hexInput = this.getHexInputValue();
|
|
122
|
+
this.isInvalid = false;
|
|
123
|
+
this.invalidField = null;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
this.dropdownStyle = {};
|
|
127
|
+
this._placementRefined = false;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
componentDidUpdate() {
|
|
131
|
+
// Run placement refinement exactly once after the dropdown is in the DOM
|
|
132
|
+
if (this.isOpen && !this._placementRefined) {
|
|
133
|
+
this._placementRefined = true;
|
|
134
|
+
this.refineDropdownPlacement();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Fast pre-compute using estimated panel height — called synchronously on
|
|
139
|
+
* click so the dropdown renders in the right place from the very first frame.
|
|
140
|
+
*/
|
|
141
|
+
preComputePlacement() {
|
|
142
|
+
const panelHeight = this.isHueVariant() ? 340 : this.isInputVariant() ? 320 : 580;
|
|
143
|
+
const panelWidth = this.isHueVariant() ? 280 : this.isInputVariant() ? 480 : 460;
|
|
144
|
+
this.dropdownStyle = this.buildPositionStyle(panelWidth, panelHeight);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Accurate refinement using the actual rendered dropdown dimensions.
|
|
148
|
+
* Runs once after the first render with the dropdown in the DOM.
|
|
149
|
+
*/
|
|
150
|
+
refineDropdownPlacement() {
|
|
151
|
+
const dropdown = this.el.shadowRoot?.querySelector('.cp-dropdown');
|
|
152
|
+
if (!dropdown)
|
|
153
|
+
return;
|
|
154
|
+
const panelWidth = this.isHueVariant() ? 280 : this.isInputVariant() ? 480 : 460;
|
|
155
|
+
const panelHeight = dropdown.scrollHeight || dropdown.offsetHeight || 580;
|
|
156
|
+
const newStyle = this.buildPositionStyle(panelWidth, panelHeight);
|
|
157
|
+
// Only write state if something changed (prevents an extra re-render)
|
|
158
|
+
const changed = Object.keys(newStyle).some(k => newStyle[k] !== this.dropdownStyle[k]);
|
|
159
|
+
if (changed)
|
|
160
|
+
this.dropdownStyle = newStyle;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Computes position: fixed coordinates so the dropdown is always fully
|
|
164
|
+
* visible within the viewport, preferring below but flipping upward as needed.
|
|
165
|
+
* Always constrains dimensions so the panel never extends past any viewport edge.
|
|
166
|
+
*/
|
|
167
|
+
buildPositionStyle(panelWidth, panelHeight) {
|
|
168
|
+
const hostRect = this.el.getBoundingClientRect();
|
|
169
|
+
// clientWidth/Height excludes scrollbar width — more accurate for layout
|
|
170
|
+
const vw = document.documentElement.clientWidth || window.innerWidth;
|
|
171
|
+
const vh = document.documentElement.clientHeight || window.innerHeight;
|
|
172
|
+
const gap = 6; // gap between trigger and panel
|
|
173
|
+
const edge = 8; // minimum clearance from every viewport edge
|
|
174
|
+
// ── Width — never exceed viewport ───────────────────────────────────────
|
|
175
|
+
const actualWidth = Math.min(panelWidth, vw - 2 * edge);
|
|
176
|
+
// ── Vertical ────────────────────────────────────────────────────────────
|
|
177
|
+
const spaceBelow = vh - hostRect.bottom - gap - edge;
|
|
178
|
+
const spaceAbove = hostRect.top - gap - edge;
|
|
179
|
+
let top;
|
|
180
|
+
let maxHeight;
|
|
181
|
+
if (spaceBelow >= panelHeight || spaceBelow >= spaceAbove) {
|
|
182
|
+
// Open downward
|
|
183
|
+
top = hostRect.bottom + gap;
|
|
184
|
+
maxHeight = Math.max(80, spaceBelow);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
// Open upward
|
|
188
|
+
maxHeight = Math.max(80, spaceAbove);
|
|
189
|
+
top = hostRect.top - gap - Math.min(panelHeight, maxHeight);
|
|
190
|
+
}
|
|
191
|
+
// Hard-clamp: top edge and bottom edge must stay inside viewport
|
|
192
|
+
const clampedHeight = Math.min(panelHeight, maxHeight);
|
|
193
|
+
top = Math.max(edge, Math.min(top, vh - clampedHeight - edge));
|
|
194
|
+
// ── Horizontal ──────────────────────────────────────────────────────────
|
|
195
|
+
let left = hostRect.left;
|
|
196
|
+
if (left + actualWidth > vw - edge) {
|
|
197
|
+
// Would overflow right: align right edges
|
|
198
|
+
left = hostRect.right - actualWidth;
|
|
199
|
+
}
|
|
200
|
+
// Hard-clamp: left edge and right edge must stay inside viewport
|
|
201
|
+
left = Math.max(edge, Math.min(left, vw - actualWidth - edge));
|
|
202
|
+
// ── Apply constraints only when content won't fit — otherwise render naturally ─
|
|
203
|
+
const style = {
|
|
204
|
+
top: `${Math.round(top)}px`,
|
|
205
|
+
left: `${Math.round(left)}px`,
|
|
206
|
+
width: `${Math.round(actualWidth)}px`,
|
|
207
|
+
};
|
|
208
|
+
if (panelHeight > maxHeight) {
|
|
209
|
+
// Content taller than available space — constrain and scroll
|
|
210
|
+
style['max-height'] = `${Math.round(clampedHeight)}px`;
|
|
211
|
+
style['overflow-y'] = 'auto';
|
|
212
|
+
style['overflow-x'] = 'hidden';
|
|
213
|
+
}
|
|
214
|
+
return style;
|
|
215
|
+
}
|
|
104
216
|
componentWillLoad() {
|
|
105
217
|
this.initializeInternals();
|
|
218
|
+
this.parseFormats();
|
|
106
219
|
this.syncValueToState(this.value);
|
|
107
220
|
this.value = this.getFormattedValue();
|
|
108
221
|
this.updateFormValue();
|
|
109
222
|
this.loadHistory();
|
|
110
223
|
}
|
|
224
|
+
parseFormats() {
|
|
225
|
+
if (!this.formats || (Array.isArray(this.formats) ? this.formats.length === 0 : this.formats.trim() === '')) {
|
|
226
|
+
this.enabledFormatsSet = null;
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const arr = Array.isArray(this.formats)
|
|
230
|
+
? this.formats
|
|
231
|
+
: this.formats.split(',');
|
|
232
|
+
const cleaned = arr.map(f => f.trim().toLowerCase()).filter(Boolean);
|
|
233
|
+
this.enabledFormatsSet = cleaned.length > 0 ? new Set(cleaned) : null;
|
|
234
|
+
}
|
|
235
|
+
isFormatEnabled(fmt) {
|
|
236
|
+
if (this.enabledFormatsSet)
|
|
237
|
+
return this.enabledFormatsSet.has(fmt);
|
|
238
|
+
switch (fmt) {
|
|
239
|
+
case 'hex': return this.showHex;
|
|
240
|
+
case 'rgb': return this.showRgb;
|
|
241
|
+
case 'rgba': return this.showRgba;
|
|
242
|
+
case 'hsl': return this.showHsl;
|
|
243
|
+
case 'hsla': return this.showHsla;
|
|
244
|
+
default: return false;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
111
247
|
connectedCallback() {
|
|
112
248
|
document.addEventListener('pointerdown', this.handleDocumentPointerDown, true);
|
|
113
249
|
}
|
|
@@ -414,7 +550,32 @@ const ColorPicker = class {
|
|
|
414
550
|
return this.colorNames[h] || 'Custom';
|
|
415
551
|
}
|
|
416
552
|
handleHexInput = (e) => {
|
|
417
|
-
|
|
553
|
+
const raw = String(e.detail ?? '').replace(/^#/, '').trim();
|
|
554
|
+
this.hexInput = raw;
|
|
555
|
+
if (raw.length === 0) {
|
|
556
|
+
// Empty — clear error, wait for user to finish
|
|
557
|
+
this.isInvalid = false;
|
|
558
|
+
this.invalidField = null;
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
// When alpha is disabled only 3 and 6 char hex are valid.
|
|
562
|
+
// When alpha is enabled, 4 (shorthand + alpha) and 8 (RRGGBBAA) are also accepted.
|
|
563
|
+
const validLengths = this.showAlpha ? [3, 4, 6, 8] : [3, 6];
|
|
564
|
+
const maxLen = this.showAlpha ? 8 : 6;
|
|
565
|
+
if (validLengths.includes(raw.length)) {
|
|
566
|
+
// Complete hex length — validate and apply color
|
|
567
|
+
this.updateColorFromInput(raw, 'hex');
|
|
568
|
+
}
|
|
569
|
+
else if (raw.length > maxLen) {
|
|
570
|
+
// Exceeds maximum — always invalid
|
|
571
|
+
this.isInvalid = true;
|
|
572
|
+
this.invalidField = 'hex';
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
// Incomplete — user is still typing, stay silent
|
|
576
|
+
this.isInvalid = false;
|
|
577
|
+
this.invalidField = null;
|
|
578
|
+
}
|
|
418
579
|
};
|
|
419
580
|
handleSwatch = (color) => {
|
|
420
581
|
const parsedColor = this.parseHex(color);
|
|
@@ -471,8 +632,14 @@ const ColorPicker = class {
|
|
|
471
632
|
// Removed redundant saveHistory call
|
|
472
633
|
}
|
|
473
634
|
handleRgbChannelChange = (channel, event) => {
|
|
474
|
-
const
|
|
635
|
+
const raw = event.detail === null || event.detail === undefined ? '' : String(event.detail).trim();
|
|
475
636
|
const fieldKey = `rgb-${channel}`;
|
|
637
|
+
if (raw === '') {
|
|
638
|
+
// User cleared the field — clear error, wait for a valid value
|
|
639
|
+
this.setChannelValidation(null);
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
const channelValue = this.parseChannelValue(raw);
|
|
476
643
|
if (channelValue === null || channelValue < 0 || channelValue > 255) {
|
|
477
644
|
this.setChannelValidation(fieldKey);
|
|
478
645
|
return;
|
|
@@ -483,8 +650,13 @@ const ColorPicker = class {
|
|
|
483
650
|
this.applyRgbColor(currentRgb.r, currentRgb.g, currentRgb.b);
|
|
484
651
|
};
|
|
485
652
|
handleRgbaChannelChange = (channel, event) => {
|
|
486
|
-
const
|
|
653
|
+
const raw = event.detail === null || event.detail === undefined ? '' : String(event.detail).trim();
|
|
487
654
|
const fieldKey = `rgba-${channel}`;
|
|
655
|
+
if (raw === '') {
|
|
656
|
+
this.setChannelValidation(null);
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
const channelValue = this.parseChannelValue(raw);
|
|
488
660
|
if (channelValue === null) {
|
|
489
661
|
this.setChannelValidation(fieldKey);
|
|
490
662
|
return;
|
|
@@ -509,9 +681,14 @@ const ColorPicker = class {
|
|
|
509
681
|
this.applyRgbColor(currentRgb.r, currentRgb.g, currentRgb.b, nextAlpha);
|
|
510
682
|
};
|
|
511
683
|
handleHslChannelChange = (channel, event) => {
|
|
512
|
-
const
|
|
684
|
+
const raw = event.detail === null || event.detail === undefined ? '' : String(event.detail).trim();
|
|
513
685
|
const fieldKey = `hsl-${channel}`;
|
|
514
686
|
const limits = { h: 360, s: 100, l: 100 };
|
|
687
|
+
if (raw === '') {
|
|
688
|
+
this.setChannelValidation(null);
|
|
689
|
+
return;
|
|
690
|
+
}
|
|
691
|
+
const channelValue = this.parseChannelValue(raw);
|
|
515
692
|
if (channelValue === null || channelValue < 0 || channelValue > limits[channel]) {
|
|
516
693
|
this.setChannelValidation(fieldKey);
|
|
517
694
|
return;
|
|
@@ -526,8 +703,13 @@ const ColorPicker = class {
|
|
|
526
703
|
this.applyHslColor(nextHsl.h, nextHsl.s, nextHsl.l);
|
|
527
704
|
};
|
|
528
705
|
handleHslaChannelChange = (channel, event) => {
|
|
529
|
-
const
|
|
706
|
+
const raw = event.detail === null || event.detail === undefined ? '' : String(event.detail).trim();
|
|
530
707
|
const fieldKey = `hsla-${channel}`;
|
|
708
|
+
if (raw === '') {
|
|
709
|
+
this.setChannelValidation(null);
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
const channelValue = this.parseChannelValue(raw);
|
|
531
713
|
if (channelValue === null) {
|
|
532
714
|
this.setChannelValidation(fieldKey);
|
|
533
715
|
return;
|
|
@@ -569,7 +751,9 @@ const ColorPicker = class {
|
|
|
569
751
|
return !this.isInputVariant();
|
|
570
752
|
}
|
|
571
753
|
showInputSection() {
|
|
572
|
-
return this.
|
|
754
|
+
return this.isFormatEnabled('hex') || this.isFormatEnabled('rgb') ||
|
|
755
|
+
this.isFormatEnabled('rgba') || this.isFormatEnabled('hsl') ||
|
|
756
|
+
this.isFormatEnabled('hsla') || this.isInputVariant();
|
|
573
757
|
}
|
|
574
758
|
getPanelClasses() {
|
|
575
759
|
return {
|
|
@@ -580,18 +764,50 @@ const ColorPicker = class {
|
|
|
580
764
|
};
|
|
581
765
|
}
|
|
582
766
|
renderFormatInput(label, value, onInputChange, formatKey) {
|
|
583
|
-
|
|
767
|
+
const hasError = this.isInvalid && this.invalidField === formatKey;
|
|
768
|
+
const errMsg = this.getFieldError(formatKey);
|
|
769
|
+
return (index.h("div", { class: "cp-input-wrap cp-full cp-inline-row" }, index.h("span", { class: "cp-sm-label" }, label), index.h("div", { class: "cp-input-field-wrap" }, index.h("ui-input", { class: { 'cp-text-input': true, 'cp-input-error': hasError }, type: "text", value: value, prefixText: formatKey === 'hex' ? '#' : undefined, onInputChange: onInputChange, size: "sm" }), errMsg && index.h("span", { class: "cp-field-error" }, errMsg))));
|
|
584
770
|
}
|
|
585
771
|
renderChannelInput(fieldKey, label, value, min, max, step, onInputChange) {
|
|
586
772
|
return (index.h("div", { class: "cp-channel-field" }, index.h("span", { class: "cp-channel-label" }, label), index.h("ui-input", { class: { 'cp-text-input': true, 'cp-channel-input': true, 'cp-input-error': this.isInvalid && this.invalidField === fieldKey }, type: "number", min: min, max: max, step: step, value: value, onInputChange: onInputChange, size: "sm" })));
|
|
587
773
|
}
|
|
588
774
|
renderChannelGroup(label, columns, fields) {
|
|
589
|
-
|
|
775
|
+
const groupPrefix = label.toLowerCase() + '-';
|
|
776
|
+
const errMsg = this.getFieldError(groupPrefix);
|
|
777
|
+
return (index.h("div", { class: "cp-input-wrap cp-full cp-channel-group cp-inline-row" }, index.h("span", { class: "cp-sm-label" }, label), index.h("div", { class: "cp-channel-col" }, index.h("div", { class: { 'cp-channel-grid': true, 'cp-channel-grid-3': columns === 3, 'cp-channel-grid-4': columns === 4 } }, fields), errMsg && index.h("span", { class: "cp-field-error" }, errMsg))));
|
|
778
|
+
}
|
|
779
|
+
getFieldError(prefix) {
|
|
780
|
+
if (!this.isInvalid || !this.invalidField)
|
|
781
|
+
return '';
|
|
782
|
+
if (prefix === 'hex') {
|
|
783
|
+
if (this.invalidField !== 'hex')
|
|
784
|
+
return '';
|
|
785
|
+
return this.showAlpha
|
|
786
|
+
? 'Enter 3, 6, or 8 hex characters (e.g. FF0000 or FF0000FF for alpha)'
|
|
787
|
+
: 'Enter 3 or 6 hex characters (e.g. FF0000)';
|
|
788
|
+
}
|
|
789
|
+
if (!this.invalidField.startsWith(prefix))
|
|
790
|
+
return '';
|
|
791
|
+
if (this.invalidField.endsWith('-r'))
|
|
792
|
+
return 'Red (R) must be 0–255';
|
|
793
|
+
if (this.invalidField.endsWith('-g'))
|
|
794
|
+
return 'Green (G) must be 0–255';
|
|
795
|
+
if (this.invalidField.endsWith('-b'))
|
|
796
|
+
return 'Blue (B) must be 0–255';
|
|
797
|
+
if (this.invalidField.endsWith('-h'))
|
|
798
|
+
return 'Hue (H) must be 0–360';
|
|
799
|
+
if (this.invalidField.endsWith('-s'))
|
|
800
|
+
return 'Saturation (S) must be 0–100';
|
|
801
|
+
if (this.invalidField.endsWith('-l'))
|
|
802
|
+
return 'Lightness (L) must be 0–100';
|
|
803
|
+
if (this.invalidField.endsWith('-a'))
|
|
804
|
+
return 'Alpha (A) must be 0–1 (e.g. 0.5 = 50%)';
|
|
805
|
+
return 'Invalid value';
|
|
590
806
|
}
|
|
591
807
|
render() {
|
|
592
808
|
const currentColor = this.hslToHex(this.hue, this.saturation, this.lightness);
|
|
593
809
|
const swatches = this.getSwatches();
|
|
594
|
-
const picker = (index.h("div", { key: '
|
|
810
|
+
const picker = (index.h("div", { key: '947077dfe39fcd935bc97692b063b91d0fd06a9d', class: this.getPanelClasses() }, this.showGradientSurface() && (index.h("div", { key: 'a6c4878e2a6bca5c6b70af63da25dcd3457a8ec1', class: "cp-gradient", role: "slider", "aria-label": "Saturation and Lightness", "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": this.saturation, "aria-valuetext": `Saturation ${this.saturation}%, Lightness ${this.lightness}%`, tabindex: "0", onKeyDown: (e) => {
|
|
595
811
|
const step = e.shiftKey ? 10 : 1;
|
|
596
812
|
if (e.key === 'ArrowLeft') {
|
|
597
813
|
this.saturation = Math.max(0, this.saturation - step);
|
|
@@ -625,29 +841,47 @@ const ColorPicker = class {
|
|
|
625
841
|
window.addEventListener('mousemove', onMove);
|
|
626
842
|
window.addEventListener('mouseup', onUp);
|
|
627
843
|
onMove(e);
|
|
628
|
-
} }, index.h("div", { key: '
|
|
844
|
+
} }, index.h("div", { key: '393bdcc90e400571ed7a51aaa25ac73868cd1c55', class: "cp-gradient-thumb", style: { left: `${this.saturation}%`, top: `${100 - this.lightness}%`, background: currentColor } }))), this.showSliderSection() && (index.h("div", { key: 'ede35ae4eb38c8b655c7f74075fcfaf8ee9cb7c0', class: "cp-row" }, index.h("div", { key: 'fda077df5270580b81cacd22b252d4acb9a770ed', class: "cp-preview", style: { background: currentColor } }), index.h("div", { key: 'f9f013ad09b24b5d42ac0d46fc60d473dcc699a1', class: "cp-sliders" }, index.h("ui-range-slider", { key: '1a10770920b3d793635794a857fae6653f926757', class: "cp-hue-slider", min: 0, max: 360, value: this.hue, onSliderChange: (e) => { this.hue = Number(e.detail); this.emitChange(); }, "aria-label": "Hue", showTooltip: false, showValue: false, hideRange: true, trackColor: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)" }), this.showAlpha && (index.h("ui-range-slider", { key: '2ba506ea2e7ce927cee0d3da96ac894629832e8e', class: "cp-alpha-slider", min: 0, max: 100, value: Math.round(this.alpha * 100), onSliderChange: (e) => { this.alpha = Number(e.detail) / 100; this.emitChange(); }, "aria-label": "Alpha", showTooltip: false, showValue: false, hideRange: true, trackColor: `linear-gradient(to right, transparent, ${this.hslToHex(this.hue, this.saturation, this.lightness)}), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Crect width='5' height='5' fill='%23ccc'/%3E%3Crect x='5' y='5' width='5' height='5' fill='%23ccc'/%3E%3C/svg%3E")` }))), this.showEyeDropper && 'EyeDropper' in window && (index.h("ui-button", { key: '5bca61232947d6ab735fc58e2a327849b947adda', variant: "ghost", onClick: () => this.handleEyeDropper(), ariaLabel: "Sample color from screen", icon: "pipette", iconLibrary: "lucide", iconOnly: true, size: "sm", title: "Sample color from screen" })))), this.showInputSection() && (index.h("div", { key: 'a7373dc01faaad4b1a29e2e58181121001355efc', class: "cp-inputs-grid" }, this.isFormatEnabled('hex') && (this.renderFormatInput('HEX', this.hexInput || this.getHexInputValue(), this.handleHexInput, 'hex')), this.isFormatEnabled('rgb') && (this.renderChannelGroup('RGB', 3, [
|
|
629
845
|
this.renderChannelInput('rgb-r', 'R', this.getRgbValues().r, 0, 255, 1, (event) => this.handleRgbChannelChange('r', event)),
|
|
630
846
|
this.renderChannelInput('rgb-g', 'G', this.getRgbValues().g, 0, 255, 1, (event) => this.handleRgbChannelChange('g', event)),
|
|
631
847
|
this.renderChannelInput('rgb-b', 'B', this.getRgbValues().b, 0, 255, 1, (event) => this.handleRgbChannelChange('b', event)),
|
|
632
|
-
])), this.
|
|
848
|
+
])), this.isFormatEnabled('rgba') && (this.renderChannelGroup('RGBA', 4, [
|
|
633
849
|
this.renderChannelInput('rgba-r', 'R', this.getRgbValues().r, 0, 255, 1, (event) => this.handleRgbaChannelChange('r', event)),
|
|
634
850
|
this.renderChannelInput('rgba-g', 'G', this.getRgbValues().g, 0, 255, 1, (event) => this.handleRgbaChannelChange('g', event)),
|
|
635
851
|
this.renderChannelInput('rgba-b', 'B', this.getRgbValues().b, 0, 255, 1, (event) => this.handleRgbaChannelChange('b', event)),
|
|
636
852
|
this.renderChannelInput('rgba-a', 'A', this.alpha, 0, 1, 0.01, (event) => this.handleRgbaChannelChange('a', event)),
|
|
637
|
-
])), this.
|
|
853
|
+
])), this.isFormatEnabled('hsl') && (this.renderChannelGroup('HSL', 3, [
|
|
638
854
|
this.renderChannelInput('hsl-h', 'H', this.hue, 0, 360, 1, (event) => this.handleHslChannelChange('h', event)),
|
|
639
855
|
this.renderChannelInput('hsl-s', 'S', this.saturation, 0, 100, 1, (event) => this.handleHslChannelChange('s', event)),
|
|
640
856
|
this.renderChannelInput('hsl-l', 'L', this.lightness, 0, 100, 1, (event) => this.handleHslChannelChange('l', event)),
|
|
641
|
-
])), this.
|
|
857
|
+
])), this.isFormatEnabled('hsla') && (this.renderChannelGroup('HSLA', 4, [
|
|
642
858
|
this.renderChannelInput('hsla-h', 'H', this.hue, 0, 360, 1, (event) => this.handleHslaChannelChange('h', event)),
|
|
643
859
|
this.renderChannelInput('hsla-s', 'S', this.saturation, 0, 100, 1, (event) => this.handleHslaChannelChange('s', event)),
|
|
644
860
|
this.renderChannelInput('hsla-l', 'L', this.lightness, 0, 100, 1, (event) => this.handleHslaChannelChange('l', event)),
|
|
645
861
|
this.renderChannelInput('hsla-a', 'A', this.alpha, 0, 1, 0.01, (event) => this.handleHslaChannelChange('a', event)),
|
|
646
|
-
])), this.showColorName && (index.h("div", { key: '
|
|
647
|
-
return (index.h(index.Host, { key: '
|
|
862
|
+
])), this.showColorName && (index.h("div", { key: '59c6affab34a5d5e8ac1bcbbbd6b596129fc8c01', class: "cp-input-wrap cp-full" }, index.h("span", { key: '416b9dd86cd1b26d166f79799d988a0f31c94c0f', class: "cp-sm-label" }, "NAME"), index.h("div", { key: '0580d021a17ef4791bb693e62ab81328b859e1e3', class: "cp-name-display" }, this.getColorName(currentColor)))), this.showGradient && (index.h("div", { key: '36c26bcd60a6670b5db602cb64c28eb472831b34', class: "cp-gradient-toggle-wrap cp-full" }, index.h("ui-button", { key: 'd66bcf4f0079ebb0a674c4f72d29eddeab535748', variant: 'outline', class: { 'cp-gradient-toggle': true, 'cp-active': this.isGradientMode }, onClick: this.toggleGradientMode, fullWidth: true, label: this.isGradientMode ? 'Disable Gradient' : 'Enable Gradient', size: "sm" }), this.isGradientMode && (index.h("div", { key: 'b5c68733d93b41955a8c869ec413306c4c249fa6', class: "cp-stop-selectors" }, this.gradientStops.map((stop, i) => (index.h("button", { type: "button", class: { 'cp-swatch': true, 'cp-swatch-active': this.activeStopIndex === i }, style: { 'background-color': stop, '--swatch-color': stop, 'border-radius': '50%' }, onClick: () => this.activeStopIndex = i, "aria-label": `Gradient stop ${i + 1}` }))))))))), !this.isInputVariant() && (this.showSwatches || (this.showRecent && this.recentColors.length > 0)) && (index.h("div", { key: '5d0c7ae9c61d21bbc61c825c024cfd4a18969729', class: "cp-swatches-section" }, index.h("div", { key: '561f17394b3e185dba5e0cd0ee33607b72853992', class: "cp-swatches" }, swatches.map(s => (index.h("button", { type: "button", style: { 'background-color': s, '--swatch-color': s }, class: { 'cp-swatch': true, 'cp-swatch-active': s.toLowerCase() === currentColor.toLowerCase() }, onClick: () => this.handleSwatch(s), title: this.getColorName(s), "aria-label": `Color ${this.getColorName(s)}` })))), this.showRecent && this.recentColors.length > 0 && (index.h("div", { key: '961bdc3ff4959328d340dad0eae2ea3ec8f0c6fd', class: "cp-history", style: { marginTop: '16px' } }, index.h("div", { key: '2b0e31318c0be810b2ab1e0f2fa058e838488ce7', class: "cp-sm-label", style: { marginBottom: '8px' } }, "RECENT"), index.h("div", { key: '72ace7d3af678623f196ace590027a3c8e8e4332', class: "cp-swatches" }, this.recentColors.map(s => (index.h("button", { type: "button", style: { 'background-color': s, '--swatch-color': s, 'border-radius': '50%' }, class: { 'cp-swatch': true, 'cp-history-swatch': true, 'cp-swatch-active': s.toLowerCase() === currentColor.toLowerCase() }, onClick: () => this.handleSwatch(s), title: this.getColorName(s), "aria-label": `Recent color ${this.getColorName(s)}` }))))))))));
|
|
863
|
+
return (index.h(index.Host, { key: 'ea389dfa80644128e47af4416097548127585782', class: `cp-size-${this.size} cp-variant-${this.variant}` }, this.label && index.h("label", { key: '36154620d4bfad250103eec666f4c6f7934edd14', class: "cp-label" }, this.label), this.inline ? picker : (index.h("div", { class: `cp-trigger-wrapper${this.compact ? ' cp-trigger-wrapper--compact' : ''}` }, this.compact ? (index.h("button", { class: { 'cp-trigger-compact': true, 'cp-disabled': this.disabled, 'cp-open': this.isOpen }, disabled: this.disabled, "aria-label": `Color picker, current color ${this.getFormattedValue()}`, onClick: () => {
|
|
864
|
+
if (this.disabled)
|
|
865
|
+
return;
|
|
866
|
+
if (!this.isOpen)
|
|
867
|
+
this.preComputePlacement();
|
|
868
|
+
this.isOpen = !this.isOpen;
|
|
869
|
+
} }, index.h("span", { class: "cp-trigger-compact-swatch", style: { background: this.value } }))) : (index.h("ui-button", { variant: "outline", disabled: this.disabled, onClick: () => {
|
|
870
|
+
if (this.disabled)
|
|
871
|
+
return;
|
|
872
|
+
if (!this.isOpen)
|
|
873
|
+
this.preComputePlacement();
|
|
874
|
+
this.isOpen = !this.isOpen;
|
|
875
|
+
}, fullWidth: true }, index.h("span", { class: "cp-trigger-swatch", style: { background: this.value } }), index.h("span", { class: "cp-trigger-value", style: { marginLeft: '8px', flex: '1', textAlign: 'left' } }, this.isGradientMode ? this.value : this.getFormattedValue()), index.h("ui-icon", { name: this.isOpen ? 'chevron-up' : 'chevron-down', size: "18", library: "lucide" }))), this.isOpen && (index.h("div", { class: "cp-dropdown", style: this.dropdownStyle }, picker))))));
|
|
648
876
|
}
|
|
649
877
|
static get formAssociated() { return true; }
|
|
650
878
|
static get watchers() { return {
|
|
879
|
+
"formats": [{
|
|
880
|
+
"handleFormatsChange": 0
|
|
881
|
+
}],
|
|
882
|
+
"isOpen": [{
|
|
883
|
+
"handleIsOpenChange": 0
|
|
884
|
+
}],
|
|
651
885
|
"value": [{
|
|
652
886
|
"valueChanged": 0
|
|
653
887
|
}]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C32cWsm5.js');
|
|
4
4
|
|
|
5
5
|
const commandPaletteCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;position:fixed;z-index:9999;inset:0}:host(.cp-hidden){display:none;pointer-events:none}.cp-backdrop,.cp-modal{pointer-events:auto}.cp-backdrop{position:fixed;inset:0;background:rgba(0, 0, 0, 0.4);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:cp-fade-in 0.25s cubic-bezier(0.4, 0, 0.2, 1)}@keyframes cp-fade-in{from{opacity:0}to{opacity:1}}.cp-modal{position:fixed;top:20%;left:50%;transform:translateX(-50%);width:560px;max-width:calc(100vw - 32px);background:var(--bg-primary, #ffffff);border-radius:16px;box-shadow:0 25px 60px rgba(0, 0, 0, 0.25);overflow:hidden;animation:cp-slide-in 0.15s ease;z-index:10000}@keyframes cp-slide-in{from{opacity:0;transform:translateX(-50%) translateY(-12px) scale(0.97)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}.cp-search-row{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.cp-search-icon{font-size:18px;color:var(--text-muted, #9ca3af);flex-shrink:0}.cp-search-input{flex:1;border:none;outline:none;font-size:16px;color:var(--text-primary, #111827);background:transparent}.cp-search-input::placeholder{color:var(--bg-secondary, #d1d5db)}.cp-clear{border:none;background:none;color:var(--text-muted, #9ca3af);font-size:14px;cursor:pointer;padding:4px;border-radius:50%;line-height:1}.cp-clear:hover{background:var(--bg-secondary, #f3f4f6);color:var(--text-secondary, #374151)}.cp-esc{background:var(--bg-secondary, #f3f4f6);border:1px solid var(--border-default, #e5e7eb);border-radius:5px;padding:2px 7px;font-size:11px;color:var(--text-muted, #6b7280);flex-shrink:0}.cp-results{max-height:380px;overflow-y:auto}.cp-results::-webkit-scrollbar{width:4px}.cp-results::-webkit-scrollbar-thumb{background:var(--bg-primary, #e5e7eb);border-radius:4px}.cp-empty{text-align:center;padding:40px 20px;color:var(--text-muted, #6b7280);font-size:14px}.cp-empty strong{color:var(--text-secondary, #374151)}.cp-group{padding:6px 0}.cp-group-label{padding:6px 16px 4px;font-size:11px;font-weight:700;color:var(--text-muted, #9ca3af);text-transform:uppercase;letter-spacing:0.6px}.cp-item{display:flex;align-items:center;gap:12px;padding:10px 16px;cursor:pointer;border-radius:8px;margin:0 8px;transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);opacity:0;transform:translateY(10px);animation:cp-item-appear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;animation-delay:calc(var(--stagger-idx, 0) * 0.03s)}.cp-item:hover,.cp-item.cp-item-active{background:var(--bg-secondary, #f3f4f6);transform:scale(1.01) translateY(0)}.cp-item:hover .cp-item-label,.cp-item.cp-item-active .cp-item-label{color:var(--color-primary, #10b981)}@keyframes cp-item-appear{to{opacity:1;transform:translateY(0)}}.cp-item-icon{font-size:20px;flex-shrink:0;width:28px;text-align:center}.cp-item-content{flex:1;min-width:0}.cp-item-label{display:block;font-size:14px;font-weight:500;color:var(--text-primary, #111827)}.cp-item-desc{display:block;font-size:12px;color:var(--text-muted, #9ca3af);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cp-shortcut{background:var(--bg-secondary, #f3f4f6);border:1px solid var(--border-default, #e5e7eb);border-radius:5px;padding:2px 8px;font-size:11px;color:var(--text-muted, #6b7280);white-space:nowrap;flex-shrink:0}.cp-footer{display:flex;gap:18px;align-items:center;padding:10px 16px;border-top:1px solid var(--border-subtle, #f3f4f6);background:var(--bg-primary, #fafafa);font-size:11px;color:var(--text-muted, #9ca3af)}.cp-footer kbd{background:var(--bg-primary, #e5e7eb);border:1px solid var(--border-strong, #d1d5db);border-radius:4px;padding:1px 5px;font-size:10px;color:var(--text-secondary, #374151);margin-right:3px}`;
|
|
6
6
|
|