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
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-C32cWsm5.js');
|
|
4
|
+
|
|
5
|
+
const labelCss = () => `.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;--ui-label-color:var(--label-color, var(--text-primary, #0f172a));--ui-label-muted-color:var(--label-subtitle-color, var(--text-secondary, #64748b));--ui-label-primary-color:var(--color-primary, #22c55e);--ui-label-secondary-color:var(--text-secondary, #64748b);--ui-label-success-color:var(--color-success, #10b981);--ui-label-warning-color:var(--color-warning, #f59e0b);--ui-label-danger-color:var(--color-danger, #ef4444);--ui-label-info-color:var(--color-info, #3b82f6);--ui-label-font-size:0.875rem;--ui-label-font-weight:500;--ui-label-line-height:1.4;--ui-label-letter-spacing:0;--ui-label-gap:4px;--ui-label-icon-gap:6px;--ui-label-tooltip-gap:6px;--ui-label-required-color:var(--color-danger, #ef4444);--ui-label-required-font-size:0.875em;--ui-label-disabled-opacity:0.45;--ui-label-error-color:var(--color-danger, #ef4444);--ui-label-success-color-msg:var(--color-success, #10b981);--ui-label-hint-color:var(--label-subtitle-color, var(--text-muted, #94a3b8));--ui-label-skeleton-bg:var(--border-default, #e2e8f0);--ui-label-skeleton-shine:var(--bg-primary, #f8fafc);--ui-label-tooltip-bg:var(--bg-primary, #1e293b);--ui-label-tooltip-color:var(--text-primary, #f8fafc);--ui-label-tooltip-radius:8px;--ui-label-tooltip-shadow:0 4px 16px rgba(0, 0, 0, 0.15);--ui-label-copy-color:var(--text-muted, #94a3b8);--ui-label-copy-hover-color:var(--color-primary, #22c55e)}:host-context(.dark),:host-context([data-theme=dark]),:host-context([data-theme=violet]),:host-context([data-theme=pink]),:host-context([data-theme=blue]),:host-context([data-theme=green]){--ui-label-color:var(--label-color, #f1f5f9);--ui-label-muted-color:var(--label-subtitle-color, #94a3b8);--ui-label-hint-color:var(--label-subtitle-color, #94a3b8);--ui-label-skeleton-bg:var(--border-default, #334155);--ui-label-skeleton-shine:var(--bg-secondary, #1e293b)}:host(.is-inline){display:inline}:host(.is-block){display:block;width:100%}.label-root{display:inline-flex;align-items:center;gap:var(--ui-label-icon-gap);color:var(--ui-label-color);font-size:var(--ui-label-font-size);font-weight:var(--ui-label-font-weight);line-height:var(--ui-label-line-height);letter-spacing:var(--ui-label-letter-spacing);cursor:default;user-select:none;white-space:nowrap;box-sizing:border-box;max-width:100%;position:relative;margin:0}.label-align-start{justify-content:flex-start}.label-align-center{justify-content:center}.label-align-end{justify-content:flex-end}.label-align-between{justify-content:space-between;width:100%}.label-orientation-vertical{flex-direction:row}.label-orientation-horizontal{flex-direction:row}.label-size-xxs{--ui-label-font-size:0.5rem}.label-size-xs{--ui-label-font-size:0.625rem}.label-size-sm{--ui-label-font-size:0.75rem}.label-size-md{--ui-label-font-size:0.875rem}.label-size-lg{--ui-label-font-size:1rem}.label-size-xl{--ui-label-font-size:1.125rem}.label-size-xxl{--ui-label-font-size:1.25rem}.label-size-xxxl{--ui-label-font-size:1.5rem}.label-size-jumbo{--ui-label-font-size:2rem}.label-weight-light{--ui-label-font-weight:300}.label-weight-normal{--ui-label-font-weight:400}.label-weight-medium{--ui-label-font-weight:500}.label-weight-semibold{--ui-label-font-weight:600}.label-weight-bold{--ui-label-font-weight:700}.label-variant-default{color:var(--ui-label-color)}.label-variant-muted{color:var(--ui-label-muted-color)}.label-variant-primary{color:var(--ui-label-primary-color)}.label-variant-secondary{color:var(--ui-label-secondary-color)}.label-variant-success{color:var(--ui-label-success-color)}.label-variant-warning{color:var(--ui-label-warning-color)}.label-variant-danger{color:var(--ui-label-danger-color)}.label-variant-info{color:var(--ui-label-info-color)}.label-truncate .label-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}.label-multiline{white-space:normal}.label-multiline .label-text{white-space:normal}.label-root.label-block,.label-root.label-align-between{display:flex;width:100%}.label-inline{display:inline-flex}.label-text{flex:1 1 auto;min-width:0}.label-icon{display:inline-flex;align-items:center;flex-shrink:0;font-size:1em;color:inherit;opacity:0.7}.label-icon-start{order:-1}.label-icon-end{order:1}.label-required{color:var(--ui-label-required-color);font-size:var(--ui-label-required-font-size);font-weight:700;margin-inline-start:2px;line-height:1;flex-shrink:0;cursor:default}.label-optional{font-size:0.75em;font-weight:400;color:var(--ui-label-muted-color);margin-inline-start:4px;flex-shrink:0}.label-selectable{user-select:text;cursor:text}.label-clickable{cursor:pointer;transition:color 0.2s ease, opacity 0.2s ease}.label-clickable:hover{color:var(--ui-label-primary-color);text-decoration:underline;text-decoration-skip-ink:auto}.label-clickable:active{opacity:0.8}.label-root:focus-visible{outline:2px solid var(--ui-label-primary-color);outline-offset:2px;border-radius:2px}.label-disabled{opacity:var(--ui-label-disabled-opacity);pointer-events:none;cursor:not-allowed}.label-readonly{opacity:0.75;cursor:default}.label-invalid{color:var(--ui-label-error-color)}.label-invalid .label-required{color:var(--ui-label-error-color)}.label-focused{color:var(--ui-label-primary-color)}.label-icon-only .label-text .visually-hidden{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}.label-skeleton{display:inline-block;width:8em;line-height:inherit;vertical-align:middle}.label-skeleton-bar{display:block;height:0.9em;border-radius:4px;background:var(--ui-label-skeleton-bg);position:relative;overflow:hidden}.label-skeleton-bar::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent 0%, var(--ui-label-skeleton-shine) 50%, transparent 100%);animation:label-shimmer 1.4s ease-in-out infinite}@keyframes label-shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}.label-tooltip-trigger{background:transparent;border:none;padding:0;margin:0;margin-inline-start:var(--ui-label-tooltip-gap);cursor:pointer;font-size:0.9em;color:var(--ui-label-muted-color);line-height:1;display:inline-flex;align-items:center;border-radius:50%;flex-shrink:0;transition:color 0.2s ease}.label-tooltip-trigger:hover,.label-tooltip-trigger.is-open{color:var(--ui-label-primary-color)}.label-tooltip-trigger:focus-visible{outline:2px solid var(--ui-label-primary-color);outline-offset:2px}.label-tooltip{position:absolute;z-index:100;background:var(--ui-label-tooltip-bg);color:var(--ui-label-tooltip-color);padding:8px 12px;border-radius:var(--ui-label-tooltip-radius);font-size:0.75rem;font-weight:400;line-height:1.4;max-width:240px;white-space:normal;pointer-events:none;box-shadow:var(--ui-label-tooltip-shadow);animation:label-tooltip-in 0.15s ease}@keyframes label-tooltip-in{from{opacity:0;transform:scale(0.95)}to{opacity:1;transform:scale(1)}}.label-tooltip-top{bottom:calc(100% + 8px);left:50%;transform:translateX(-50%)}.label-tooltip-top::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--ui-label-tooltip-bg)}.label-tooltip-bottom{top:calc(100% + 8px);left:50%;transform:translateX(-50%)}.label-tooltip-bottom::after{content:"";position:absolute;bottom:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-bottom-color:var(--ui-label-tooltip-bg)}.label-tooltip-left{right:calc(100% + 8px);top:50%;transform:translateY(-50%)}.label-tooltip-left::after{content:"";position:absolute;left:100%;top:50%;transform:translateY(-50%);border:5px solid transparent;border-left-color:var(--ui-label-tooltip-bg)}.label-tooltip-right{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}.label-tooltip-right::after{content:"";position:absolute;right:100%;top:50%;transform:translateY(-50%);border:5px solid transparent;border-right-color:var(--ui-label-tooltip-bg)}.label-copy-btn{background:transparent;border:none;padding:2px;margin:0;margin-inline-start:4px;cursor:pointer;color:var(--ui-label-copy-color);display:inline-flex;align-items:center;border-radius:3px;opacity:0;transition:opacity 0.2s ease, color 0.2s ease;flex-shrink:0}.label-copy-btn:hover{color:var(--ui-label-copy-hover-color)}.label-copy-btn:focus-visible{outline:2px solid var(--ui-label-primary-color);outline-offset:2px;opacity:1}.label-copyable:hover .label-copy-btn,.label-copyable:focus-within .label-copy-btn{opacity:1}.label-sub{margin-top:var(--ui-label-gap);display:flex;flex-direction:column;gap:2px}.label-hint-text{font-size:0.75rem;font-weight:400;color:var(--ui-label-hint-color);line-height:1.4}.label-error-text{font-size:0.75rem;font-weight:500;color:var(--ui-label-error-color);line-height:1.4;display:flex;align-items:center;gap:4px}.label-success-text{font-size:0.75rem;font-weight:500;color:var(--ui-label-success-color-msg);line-height:1.4;display:flex;align-items:center;gap:4px}.label-sub-icon{flex-shrink:0;font-style:normal;font-size:0.9em}.label-responsive{--ui-label-font-size:clamp(0.75rem, 0.5rem + 0.5vw, 1rem)}@media (max-width: 640px){.label-mobile-stack{flex-direction:column;align-items:flex-start;gap:4px}}.label-rtl,:host([dir=rtl]) .label-root{direction:rtl}.label-rtl .label-icon-start,:host([dir=rtl]) .label-root .label-icon-start{order:1}.label-rtl .label-icon-end,:host([dir=rtl]) .label-root .label-icon-end{order:-1}@media (forced-colors: active){.label-root{forced-color-adjust:auto}.label-required{color:LinkText}.label-error-text{color:Mark}.label-disabled{opacity:1;color:GrayText}}`;
|
|
6
|
+
|
|
7
|
+
const UILabel = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.labelClick = index.createEvent(this, "labelClick");
|
|
11
|
+
this.labelFocus = index.createEvent(this, "labelFocus");
|
|
12
|
+
this.labelBlur = index.createEvent(this, "labelBlur");
|
|
13
|
+
this.labelCopy = index.createEvent(this, "labelCopy");
|
|
14
|
+
}
|
|
15
|
+
get el() { return index.getElement(this); }
|
|
16
|
+
/** Tracks whether the associated control is currently focused (managed externally or via the focused prop). */
|
|
17
|
+
_isFocused = false;
|
|
18
|
+
/** Toggle state for tooltip open/close. */
|
|
19
|
+
_tooltipOpen = false;
|
|
20
|
+
// ─── Form Association ────────────────────────────────────────────────────
|
|
21
|
+
/**
|
|
22
|
+
* ID of the form control this label is associated with.
|
|
23
|
+
* Renders as a native `for` attribute on the underlying `<label>` element.
|
|
24
|
+
* Supports all standard form controls as well as custom web components.
|
|
25
|
+
*/
|
|
26
|
+
htmlFor;
|
|
27
|
+
/**
|
|
28
|
+
* Alias for `htmlFor`. `controlId` takes precedence if both are supplied.
|
|
29
|
+
*/
|
|
30
|
+
controlId;
|
|
31
|
+
/**
|
|
32
|
+
* Deprecated alias kept for back-compat. Prefer `htmlFor`.
|
|
33
|
+
*/
|
|
34
|
+
target;
|
|
35
|
+
// ─── Content ────────────────────────────────────────────────────────────
|
|
36
|
+
/**
|
|
37
|
+
* Plain-text label. Use the default slot for rich/HTML content instead.
|
|
38
|
+
*/
|
|
39
|
+
label = '';
|
|
40
|
+
// ─── Typography ─────────────────────────────────────────────────────────
|
|
41
|
+
/**
|
|
42
|
+
* Semantic size token.
|
|
43
|
+
* @default 'md'
|
|
44
|
+
*/
|
|
45
|
+
size = 'md';
|
|
46
|
+
/**
|
|
47
|
+
* Font-weight scale.
|
|
48
|
+
* @default 'medium'
|
|
49
|
+
*/
|
|
50
|
+
weight = 'medium';
|
|
51
|
+
/**
|
|
52
|
+
* CSS text-transform value.
|
|
53
|
+
* @default 'none'
|
|
54
|
+
*/
|
|
55
|
+
transform = 'none';
|
|
56
|
+
/**
|
|
57
|
+
* Single-line truncation with ellipsis.
|
|
58
|
+
*/
|
|
59
|
+
truncate = false;
|
|
60
|
+
/**
|
|
61
|
+
* Allow text to wrap across multiple lines (disables truncation).
|
|
62
|
+
*/
|
|
63
|
+
multiline = false;
|
|
64
|
+
/**
|
|
65
|
+
* Clamp to N visible lines (CSS `line-clamp`). Requires `multiline` to be true.
|
|
66
|
+
*/
|
|
67
|
+
lineClamp = 0;
|
|
68
|
+
// ─── Variant ────────────────────────────────────────────────────────────
|
|
69
|
+
/**
|
|
70
|
+
* Colour variant.
|
|
71
|
+
* @default 'default'
|
|
72
|
+
*/
|
|
73
|
+
variant = 'default';
|
|
74
|
+
// ─── Form States ─────────────────────────────────────────────────────────
|
|
75
|
+
/**
|
|
76
|
+
* Marks the associated field as required.
|
|
77
|
+
* Shows a required indicator (asterisk by default) and sets `aria-required` on the
|
|
78
|
+
* linked control if possible.
|
|
79
|
+
*/
|
|
80
|
+
required = false;
|
|
81
|
+
/**
|
|
82
|
+
* Shows "(optional)" hint text next to the label.
|
|
83
|
+
* Mutually exclusive with `required` — `required` wins if both are set.
|
|
84
|
+
*/
|
|
85
|
+
optional = false;
|
|
86
|
+
/**
|
|
87
|
+
* Applies disabled styling and prevents interaction.
|
|
88
|
+
*/
|
|
89
|
+
disabled = false;
|
|
90
|
+
/**
|
|
91
|
+
* Applies read-only styling (dimmed, no pointer events).
|
|
92
|
+
*/
|
|
93
|
+
readonly = false;
|
|
94
|
+
/**
|
|
95
|
+
* Applies invalid / error styling to the label.
|
|
96
|
+
*/
|
|
97
|
+
invalid = false;
|
|
98
|
+
/**
|
|
99
|
+
* Mirrors the focused state of the associated control so the label can react visually.
|
|
100
|
+
*/
|
|
101
|
+
focused = false;
|
|
102
|
+
/**
|
|
103
|
+
* Shows a loading skeleton overlaid on the label text.
|
|
104
|
+
*/
|
|
105
|
+
loading = false;
|
|
106
|
+
// ─── Validation messaging ────────────────────────────────────────────────
|
|
107
|
+
/**
|
|
108
|
+
* Error message shown below the label when `invalid` is true.
|
|
109
|
+
*/
|
|
110
|
+
errorText = '';
|
|
111
|
+
/**
|
|
112
|
+
* Success message shown below the label when the field is valid and this text is set.
|
|
113
|
+
*/
|
|
114
|
+
successText = '';
|
|
115
|
+
/**
|
|
116
|
+
* Helper / hint text shown below the label.
|
|
117
|
+
*/
|
|
118
|
+
helperText = '';
|
|
119
|
+
// ─── Accessibility ───────────────────────────────────────────────────────
|
|
120
|
+
/**
|
|
121
|
+
* Sets `aria-label` on the root element.
|
|
122
|
+
*/
|
|
123
|
+
ariaLabel = '';
|
|
124
|
+
/**
|
|
125
|
+
* IDs of elements that describe this label (space-separated).
|
|
126
|
+
*/
|
|
127
|
+
ariaDescribedby = '';
|
|
128
|
+
/**
|
|
129
|
+
* Live-region politeness for dynamic content announcements.
|
|
130
|
+
* @default 'off'
|
|
131
|
+
*/
|
|
132
|
+
ariaLive = 'off';
|
|
133
|
+
// ─── Layout ─────────────────────────────────────────────────────────────
|
|
134
|
+
/**
|
|
135
|
+
* Stack direction when used alongside a form control.
|
|
136
|
+
* @default 'vertical'
|
|
137
|
+
*/
|
|
138
|
+
orientation = 'vertical';
|
|
139
|
+
/**
|
|
140
|
+
* Horizontal alignment of label content.
|
|
141
|
+
* @default 'start'
|
|
142
|
+
*/
|
|
143
|
+
align = 'start';
|
|
144
|
+
/**
|
|
145
|
+
* Renders as an inline-level element.
|
|
146
|
+
*/
|
|
147
|
+
inline = false;
|
|
148
|
+
/**
|
|
149
|
+
* Forces 100 % width block layout (useful inside flex/grid parents).
|
|
150
|
+
*/
|
|
151
|
+
block = false;
|
|
152
|
+
// ─── Spacing ─────────────────────────────────────────────────────────────
|
|
153
|
+
/**
|
|
154
|
+
* Gap between the label row and the hint / error message.
|
|
155
|
+
* Accepts any valid CSS length (e.g. `'4px'`, `'0.5rem'`).
|
|
156
|
+
* Maps to `--ui-label-gap`.
|
|
157
|
+
*/
|
|
158
|
+
gap = '';
|
|
159
|
+
/**
|
|
160
|
+
* External margin override (CSS shorthand string).
|
|
161
|
+
*/
|
|
162
|
+
margin = '';
|
|
163
|
+
/**
|
|
164
|
+
* External padding override (CSS shorthand string).
|
|
165
|
+
*/
|
|
166
|
+
padding = '';
|
|
167
|
+
// ─── Icons ───────────────────────────────────────────────────────────────
|
|
168
|
+
/**
|
|
169
|
+
* Icon name rendered before the label text.
|
|
170
|
+
* Uses the same icon library as the rest of the design system.
|
|
171
|
+
*/
|
|
172
|
+
startIcon = '';
|
|
173
|
+
/**
|
|
174
|
+
* Icon name rendered after the label text.
|
|
175
|
+
*/
|
|
176
|
+
endIcon = '';
|
|
177
|
+
/**
|
|
178
|
+
* When true, only icons are shown — label text is visually hidden.
|
|
179
|
+
*/
|
|
180
|
+
iconOnly = false;
|
|
181
|
+
/**
|
|
182
|
+
* Icon name or URL for the tooltip trigger button.
|
|
183
|
+
* Defaults to an 'ⓘ' info glyph.
|
|
184
|
+
*/
|
|
185
|
+
tooltipIcon = 'ⓘ';
|
|
186
|
+
// ─── Tooltip ─────────────────────────────────────────────────────────────
|
|
187
|
+
/**
|
|
188
|
+
* Plain-text tooltip content. Use the `tooltip` slot for rich markup.
|
|
189
|
+
*/
|
|
190
|
+
tooltip = '';
|
|
191
|
+
/**
|
|
192
|
+
* Preferred position for the tooltip callout.
|
|
193
|
+
* @default 'top'
|
|
194
|
+
*/
|
|
195
|
+
tooltipPosition = 'top';
|
|
196
|
+
// ─── Interaction ─────────────────────────────────────────────────────────
|
|
197
|
+
/**
|
|
198
|
+
* Makes the label itself clickable (fires `labelClick`).
|
|
199
|
+
*/
|
|
200
|
+
clickable = false;
|
|
201
|
+
/**
|
|
202
|
+
* Enables text-selection on the label (disabled by default for form labels).
|
|
203
|
+
*/
|
|
204
|
+
selectable = false;
|
|
205
|
+
/**
|
|
206
|
+
* Shows a copy-to-clipboard button on hover and fires `labelCopy`.
|
|
207
|
+
*/
|
|
208
|
+
copyable = false;
|
|
209
|
+
// ─── Responsive ──────────────────────────────────────────────────────────
|
|
210
|
+
/**
|
|
211
|
+
* Enable responsive font-size scaling via fluid typography.
|
|
212
|
+
*/
|
|
213
|
+
responsive = false;
|
|
214
|
+
/**
|
|
215
|
+
* On narrow viewports, switches from `horizontal` to `vertical` orientation.
|
|
216
|
+
*/
|
|
217
|
+
mobileStack = false;
|
|
218
|
+
// ─── Internationalisation ─────────────────────────────────────────────────
|
|
219
|
+
/**
|
|
220
|
+
* Text direction.
|
|
221
|
+
* @default 'ltr'
|
|
222
|
+
*/
|
|
223
|
+
labelDir = 'ltr';
|
|
224
|
+
/**
|
|
225
|
+
* BCP-47 language tag (e.g. `'en'`, `'ar'`, `'fr'`).
|
|
226
|
+
*/
|
|
227
|
+
labelLang = '';
|
|
228
|
+
// ─── Enterprise attributes ────────────────────────────────────────────────
|
|
229
|
+
/**
|
|
230
|
+
* DOM `id` for the root element. Auto-generated if not provided.
|
|
231
|
+
*/
|
|
232
|
+
labelId = '';
|
|
233
|
+
/**
|
|
234
|
+
* Logical name (maps to `name` attribute on the inner label).
|
|
235
|
+
*/
|
|
236
|
+
name = '';
|
|
237
|
+
/**
|
|
238
|
+
* `data-testid` attribute for automated testing.
|
|
239
|
+
*/
|
|
240
|
+
testId = '';
|
|
241
|
+
/**
|
|
242
|
+
* `data-automation-id` attribute for RPA / automation tooling.
|
|
243
|
+
*/
|
|
244
|
+
automationId = '';
|
|
245
|
+
// ─── Events ───────────────────────────────────────────────────────────────
|
|
246
|
+
/**
|
|
247
|
+
* Fired when the label element is clicked (requires `clickable` or naturally via `for`).
|
|
248
|
+
*/
|
|
249
|
+
labelClick;
|
|
250
|
+
/**
|
|
251
|
+
* Fired when the label receives focus (passes through from the native label).
|
|
252
|
+
*/
|
|
253
|
+
labelFocus;
|
|
254
|
+
/**
|
|
255
|
+
* Fired when the label loses focus.
|
|
256
|
+
*/
|
|
257
|
+
labelBlur;
|
|
258
|
+
/**
|
|
259
|
+
* Fired after text is successfully copied to the clipboard (`copyable` must be true).
|
|
260
|
+
*/
|
|
261
|
+
labelCopy;
|
|
262
|
+
// ─── Watchers ─────────────────────────────────────────────────────────────
|
|
263
|
+
onFocusedChanged(val) {
|
|
264
|
+
this._isFocused = val;
|
|
265
|
+
}
|
|
266
|
+
// ─── Lifecycle ────────────────────────────────────────────────────────────
|
|
267
|
+
componentWillLoad() {
|
|
268
|
+
// Sync prop → state so imperative updates also trigger re-render.
|
|
269
|
+
this._isFocused = this.focused;
|
|
270
|
+
// Auto-generate a stable ID when none is supplied (needed for aria-describedby linkage).
|
|
271
|
+
if (!this.labelId) {
|
|
272
|
+
this.labelId = `ui-label-${Math.random().toString(36).slice(2, 9)}`;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// ─── Public API (Methods) ─────────────────────────────────────────────────
|
|
276
|
+
/**
|
|
277
|
+
* Programmatically focus the label element.
|
|
278
|
+
* Useful when the owning form-field component proxies focus behaviour.
|
|
279
|
+
*/
|
|
280
|
+
async setFocus() {
|
|
281
|
+
this.el.shadowRoot?.querySelector('.label-root')?.focus();
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Programmatically trigger the copy-to-clipboard action.
|
|
285
|
+
*/
|
|
286
|
+
async copyText() {
|
|
287
|
+
await this._handleCopy();
|
|
288
|
+
}
|
|
289
|
+
// ─── Private helpers ─────────────────────────────────────────────────────
|
|
290
|
+
/** Resolve the `for`/`htmlFor` target ID with fallback chain. */
|
|
291
|
+
get _forId() {
|
|
292
|
+
return this.controlId || this.htmlFor || this.target || undefined;
|
|
293
|
+
}
|
|
294
|
+
/** Build the `aria-describedby` string used by the inner label. */
|
|
295
|
+
get _describedBy() {
|
|
296
|
+
const parts = [];
|
|
297
|
+
if (this.ariaDescribedby)
|
|
298
|
+
parts.push(this.ariaDescribedby);
|
|
299
|
+
if (this.helperText)
|
|
300
|
+
parts.push(`${this.labelId}-hint`);
|
|
301
|
+
if (this.invalid && this.errorText)
|
|
302
|
+
parts.push(`${this.labelId}-error`);
|
|
303
|
+
if (this.successText && !this.invalid)
|
|
304
|
+
parts.push(`${this.labelId}-success`);
|
|
305
|
+
return parts.join(' ');
|
|
306
|
+
}
|
|
307
|
+
/** Resolved label text — prefer the `label` prop, child text is handled via slot. */
|
|
308
|
+
get _text() {
|
|
309
|
+
return this.label || '';
|
|
310
|
+
}
|
|
311
|
+
_handleClick = (e) => {
|
|
312
|
+
if (this.disabled)
|
|
313
|
+
return;
|
|
314
|
+
this.labelClick.emit({
|
|
315
|
+
originalEvent: e,
|
|
316
|
+
text: this._text || this.el.textContent?.trim() || '',
|
|
317
|
+
targetId: this._forId,
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
_handleFocus = () => {
|
|
321
|
+
this._isFocused = true;
|
|
322
|
+
this.labelFocus.emit();
|
|
323
|
+
};
|
|
324
|
+
_handleBlur = () => {
|
|
325
|
+
this._isFocused = false;
|
|
326
|
+
this.labelBlur.emit();
|
|
327
|
+
};
|
|
328
|
+
_handleCopy = async () => {
|
|
329
|
+
const text = this._text || this.el.textContent?.trim() || '';
|
|
330
|
+
if (!text)
|
|
331
|
+
return;
|
|
332
|
+
try {
|
|
333
|
+
await navigator.clipboard.writeText(text);
|
|
334
|
+
this.labelCopy.emit({ text });
|
|
335
|
+
}
|
|
336
|
+
catch {
|
|
337
|
+
// Clipboard API unavailable — silent failure.
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
_toggleTooltip = () => {
|
|
341
|
+
this._tooltipOpen = !this._tooltipOpen;
|
|
342
|
+
};
|
|
343
|
+
_closeTooltip = () => {
|
|
344
|
+
this._tooltipOpen = false;
|
|
345
|
+
};
|
|
346
|
+
// ─── CSS class helpers ────────────────────────────────────────────────────
|
|
347
|
+
_rootClasses() {
|
|
348
|
+
return {
|
|
349
|
+
'label-root': true,
|
|
350
|
+
[`label-size-${this.size}`]: true,
|
|
351
|
+
[`label-weight-${this.weight}`]: true,
|
|
352
|
+
[`label-variant-${this.variant}`]: true,
|
|
353
|
+
[`label-align-${this.align}`]: true,
|
|
354
|
+
[`label-orientation-${this.orientation}`]: true,
|
|
355
|
+
'label-truncate': this.truncate && !this.multiline,
|
|
356
|
+
'label-multiline': this.multiline,
|
|
357
|
+
'label-inline': this.inline,
|
|
358
|
+
'label-block': this.block,
|
|
359
|
+
'label-disabled': this.disabled,
|
|
360
|
+
'label-readonly': this.readonly,
|
|
361
|
+
'label-invalid': this.invalid,
|
|
362
|
+
'label-focused': this._isFocused,
|
|
363
|
+
'label-loading': this.loading,
|
|
364
|
+
'label-clickable': this.clickable,
|
|
365
|
+
'label-selectable': this.selectable,
|
|
366
|
+
'label-copyable': this.copyable,
|
|
367
|
+
'label-icon-only': this.iconOnly,
|
|
368
|
+
'label-responsive': this.responsive,
|
|
369
|
+
'label-mobile-stack': this.mobileStack,
|
|
370
|
+
'label-rtl': this.labelDir === 'rtl',
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
// ─── Sub-renders ──────────────────────────────────────────────────────────
|
|
374
|
+
_renderRequiredIndicator() {
|
|
375
|
+
// Custom slot wins
|
|
376
|
+
const slotContent = this.el.querySelector('[slot="required-indicator"]');
|
|
377
|
+
if (slotContent) {
|
|
378
|
+
return index.h("slot", { name: "required-indicator" });
|
|
379
|
+
}
|
|
380
|
+
return (index.h("span", { class: "label-required", "aria-hidden": "true", title: "Required field" }, "*"));
|
|
381
|
+
}
|
|
382
|
+
_renderOptionalBadge() {
|
|
383
|
+
return (index.h("span", { class: "label-optional", "aria-hidden": "true" }, "(optional)"));
|
|
384
|
+
}
|
|
385
|
+
_renderIcon(name, position) {
|
|
386
|
+
return (index.h("span", { class: `label-icon label-icon-${position}`, "aria-hidden": "true", innerHTML: name }));
|
|
387
|
+
}
|
|
388
|
+
_renderTooltipTrigger() {
|
|
389
|
+
const hasTooltip = this.tooltip || this.el.querySelector('[slot="tooltip"]');
|
|
390
|
+
if (!hasTooltip)
|
|
391
|
+
return null;
|
|
392
|
+
return (index.h("button", { type: "button", class: `label-tooltip-trigger${this._tooltipOpen ? ' is-open' : ''}`, "aria-label": "More information", "aria-expanded": this._tooltipOpen ? 'true' : 'false', "aria-haspopup": "true", onClick: this._toggleTooltip, onBlur: this._closeTooltip }, index.h("span", { "aria-hidden": "true" }, this.tooltipIcon)));
|
|
393
|
+
}
|
|
394
|
+
_renderTooltipCallout() {
|
|
395
|
+
if (!this._tooltipOpen)
|
|
396
|
+
return null;
|
|
397
|
+
return (index.h("div", { role: "tooltip", class: `label-tooltip label-tooltip-${this.tooltipPosition}`, id: `${this.labelId}-tooltip` }, this.tooltip ? (index.h("span", { class: "label-tooltip-text" }, this.tooltip)) : (index.h("slot", { name: "tooltip" }))));
|
|
398
|
+
}
|
|
399
|
+
_renderCopyButton() {
|
|
400
|
+
return (index.h("button", { type: "button", class: "label-copy-btn", "aria-label": "Copy to clipboard", onClick: this._handleCopy, tabIndex: -1 }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", width: "14", height: "14", "aria-hidden": "true" }, index.h("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }), index.h("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }))));
|
|
401
|
+
}
|
|
402
|
+
_renderSubText() {
|
|
403
|
+
const showError = this.invalid && this.errorText;
|
|
404
|
+
const showSuccess = !this.invalid && this.successText;
|
|
405
|
+
const showHelper = !showError && !showSuccess && this.helperText;
|
|
406
|
+
const hasHintSlot = !!this.el.querySelector('[slot="hint"]');
|
|
407
|
+
if (!showError && !showSuccess && !showHelper && !hasHintSlot)
|
|
408
|
+
return null;
|
|
409
|
+
return (index.h("div", { class: "label-sub" }, showError && (index.h("span", { id: `${this.labelId}-error`, class: "label-error-text", role: "alert", "aria-live": "assertive" }, index.h("span", { class: "label-sub-icon", "aria-hidden": "true" }, "\u2715"), this.errorText)), showSuccess && (index.h("span", { id: `${this.labelId}-success`, class: "label-success-text" }, index.h("span", { class: "label-sub-icon", "aria-hidden": "true" }, "\u2713"), this.successText)), showHelper && (index.h("span", { id: `${this.labelId}-hint`, class: "label-hint-text" }, this.helperText)), hasHintSlot && (index.h("span", { id: `${this.labelId}-hint`, class: "label-hint-text" }, index.h("slot", { name: "hint" })))));
|
|
410
|
+
}
|
|
411
|
+
_renderLoadingSkeleton() {
|
|
412
|
+
return (index.h("span", { class: "label-skeleton", "aria-hidden": "true" }, index.h("span", { class: "label-skeleton-bar" })));
|
|
413
|
+
}
|
|
414
|
+
// ─── Inline styles ────────────────────────────────────────────────────────
|
|
415
|
+
_hostStyle() {
|
|
416
|
+
const s = {};
|
|
417
|
+
if (this.gap)
|
|
418
|
+
s['--ui-label-gap'] = this.gap;
|
|
419
|
+
if (this.margin)
|
|
420
|
+
s['margin'] = this.margin;
|
|
421
|
+
if (this.padding)
|
|
422
|
+
s['padding'] = this.padding;
|
|
423
|
+
return s;
|
|
424
|
+
}
|
|
425
|
+
_lineClampStyle() {
|
|
426
|
+
if (this.multiline && this.lineClamp > 0) {
|
|
427
|
+
return {
|
|
428
|
+
'-webkit-line-clamp': String(this.lineClamp),
|
|
429
|
+
'line-clamp': String(this.lineClamp),
|
|
430
|
+
'display': '-webkit-box',
|
|
431
|
+
'-webkit-box-orient': 'vertical',
|
|
432
|
+
'overflow': 'hidden',
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
return undefined;
|
|
436
|
+
}
|
|
437
|
+
// ─── Render ───────────────────────────────────────────────────────────────
|
|
438
|
+
render() {
|
|
439
|
+
const labelFor = this._forId;
|
|
440
|
+
const describedBy = this._describedBy;
|
|
441
|
+
const labelProps = {
|
|
442
|
+
class: this._rootClasses(),
|
|
443
|
+
id: this.labelId || undefined,
|
|
444
|
+
for: labelFor,
|
|
445
|
+
'aria-label': this.ariaLabel || undefined,
|
|
446
|
+
'aria-describedby': describedBy || undefined,
|
|
447
|
+
'aria-live': this.ariaLive !== 'off' ? this.ariaLive : undefined,
|
|
448
|
+
'aria-disabled': this.disabled ? 'true' : undefined,
|
|
449
|
+
'data-testid': this.testId || undefined,
|
|
450
|
+
'data-automation-id': this.automationId || undefined,
|
|
451
|
+
onClick: this._handleClick,
|
|
452
|
+
onFocus: this._handleFocus,
|
|
453
|
+
onBlur: this._handleBlur,
|
|
454
|
+
};
|
|
455
|
+
if (this.name)
|
|
456
|
+
labelProps['name'] = this.name;
|
|
457
|
+
if (this.labelLang)
|
|
458
|
+
labelProps['lang'] = this.labelLang;
|
|
459
|
+
return (index.h(index.Host, { key: 'b67618ecbef75ae6ead3a609ff206a36b11de621', dir: this.labelDir, style: this._hostStyle(), class: {
|
|
460
|
+
'ui-label-host': true,
|
|
461
|
+
'is-inline': this.inline,
|
|
462
|
+
'is-block': this.block,
|
|
463
|
+
} }, index.h("label", { key: 'dc257dd21c76648e75c1e14204668a19e1baf662', ...labelProps }, index.h("slot", { key: 'c6932b813c6b1f83ea7e56101214cc7c55405fae', name: "start" }), this.startIcon && !this.iconOnly && this._renderIcon(this.startIcon, 'start'), index.h("span", { key: '30a20e30976ba791ebcf4f0644c3ebf0987970a6', class: "label-text", style: this._lineClampStyle() }, this.loading ? (this._renderLoadingSkeleton()) : (index.h("span", { class: this.iconOnly ? 'visually-hidden' : undefined }, this._text, index.h("slot", null)))), this.required && !this.disabled && this._renderRequiredIndicator(), this.optional && !this.required && this._renderOptionalBadge(), this.endIcon && this._renderIcon(this.endIcon, 'end'), index.h("slot", { key: '2ac12fa6019e520ad11ceead3d3f1b08dd29482d', name: "end" }), this._renderTooltipTrigger(), this.copyable && this._renderCopyButton()), this._renderTooltipCallout(), this._renderSubText()));
|
|
464
|
+
}
|
|
465
|
+
static get watchers() { return {
|
|
466
|
+
"focused": [{
|
|
467
|
+
"onFocusedChanged": 0
|
|
468
|
+
}]
|
|
469
|
+
}; }
|
|
470
|
+
};
|
|
471
|
+
UILabel.style = labelCss();
|
|
472
|
+
|
|
473
|
+
exports.ui_label = UILabel;
|
|
@@ -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 componentsData = [
|
|
6
6
|
// Foundation & Layout
|
|
@@ -126,7 +126,7 @@ const Library = class {
|
|
|
126
126
|
render() {
|
|
127
127
|
const filteredByCategory = this.getFilteredComponents();
|
|
128
128
|
const totalComponents = componentsData.length;
|
|
129
|
-
return (index.h(index.Host, { key: '
|
|
129
|
+
return (index.h(index.Host, { key: '7af3d689184e46c3bd02292ea4f22f5ca9945764' }, index.h("div", { key: 'f41481a5c1883d92bcb031ad2ad870fb986af516', class: "library-container" }, index.h("header", { key: '1e8e42ce418dfff3bb91c83e14420dedffdf3cbc', class: "library-header" }, index.h("div", { key: '49f0832b98cbe019ef9a258cbef8616efbb865e9', class: "header-content" }, index.h("div", { key: 'f7461ed7219a059a49e4049a8f17dd0b93688f05', class: "logo-section" }, index.h("div", { key: 'd4ab4bcb3909ed5a3af30ae89f0e4d58b5eb35ae', class: "logo" }, index.h("span", { key: '9513f4ceb1723af068920240c5dd4fc99e736911', class: "logo-icon" }, "\uD83C\uDFA8"), index.h("span", { key: '8bc28122c5e22e0f4c5f912fcd4d653065c47c16', class: "logo-text" }, "App UI")), index.h("span", { key: '81f34ec0b03d9a5ab174c8fc7cc28b48da656c77', class: "version-badge" }, "v0.1.0")), index.h("div", { key: '3b3ef085d16c1efbc8cfe3ccdc72b0ebc57e4666', class: "search-container" }, index.h("ui-input", { key: '5adcc741e1ed654686012689e9a92e8f6dfc22ac', class: "search-input", placeholder: "Search components...", value: this.searchQuery, onInputChange: (e) => this.searchQuery = e.detail, "prefix-icon": "search", "icon-library": "lucide", clearable: true })), index.h("div", { key: '61baaadd9b86a0c20c3a6b81fd1614a5089b3554', class: "header-stats" }, index.h("span", { key: '046d0fd0c233314bb30bf75d469e5a9c496647fa', class: "stat" }, totalComponents, " components"), index.h("span", { key: '455a288e2b0553687ea61c88b6b4728bc02860dc', class: "stat" }, categories.length, " categories")))), index.h("nav", { key: '2cedaba54c9a0d8dae53d8c04c82e21ac233fc9a', class: "category-nav" }, index.h("ui-button", { key: 'a20b92b2c7f5fa8366457f3a6721bfa81ee62bab', label: "All", variant: this.selectedCategory === null ? 'filled' : 'ghost', color: "primary", size: "md", onClick: () => this.handleCategoryClick(null), style: { borderRadius: '20px' } }), categories.map(cat => (index.h("ui-button", { key: cat, label: `${this.getCategoryIcon(cat)} ${cat}`, variant: this.selectedCategory === cat ? 'filled' : 'ghost', color: "primary", size: "md", onClick: () => this.handleCategoryClick(cat), style: { borderRadius: '20px' } })))), index.h("main", { key: '25b1de0ed093c1bf9593c959ab6e4d69cde3f2b3', class: "library-content" }, Object.keys(filteredByCategory).length === 0 ? (index.h("div", { class: "no-results" }, index.h("ui-icon", { name: "search", library: "lucide", size: "2em", class: "no-results-icon" }), index.h("h3", null, "No components found"), index.h("p", null, "Try adjusting your search or filter criteria"))) : (Object.entries(filteredByCategory).map(([category, components]) => (index.h("category-section", { key: category, "category-name": category, "category-icon": this.getCategoryIcon(category), components: components, mode: this.mode }))))), index.h("footer", { key: '479b967ddb3281c318b60300da1c4b9eb3976189', class: "library-footer" }, index.h("p", { key: 'f1832bdca4a507ea2f74c4332b2936a6a37b33ab' }, "Built with \u2764\uFE0F using Stencil.js"), index.h("div", { key: 'f2b462bb1a0ae1133ec02a246cbfcfd27ec0d501', class: "footer-links" }, index.h("a", { key: '0780dd9f9a59efcd69d21910551cbd2ce25eafbc', href: "#", class: "footer-link" }, "Documentation"), index.h("a", { key: '224e2da3c34d7362ee42f8a207a9f64e556bb0bc', href: "#", class: "footer-link" }, "GitHub"), index.h("a", { key: '82c37c06125ddafcd54246b5df31dfe213538853', href: "#", class: "footer-link" }, "Changelog"))))));
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
Library.style = libraryCss();
|