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
|
@@ -0,0 +1,697 @@
|
|
|
1
|
+
export function initLabelDemo() {
|
|
2
|
+
const section = document.getElementById('label');
|
|
3
|
+
if (!section) return;
|
|
4
|
+
|
|
5
|
+
section.innerHTML = `
|
|
6
|
+
<p style="margin-top: 0; opacity: 0.7; font-size: 14px; margin-bottom: 24px;">Enterprise-grade, fully accessible form label component with 30+ features including variants, states, icons, tooltips, and copy-to-clipboard.</p>
|
|
7
|
+
|
|
8
|
+
<div class="demo-controls" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap;">
|
|
9
|
+
<ui-button id="btnLabelPlayground" label="🎮 Playground" data-demo="playground" variant="outline"></ui-button>
|
|
10
|
+
<ui-button id="btnLabelBasic" label="🏷️ Basic" data-demo="basic" variant="outline"></ui-button>
|
|
11
|
+
<ui-button id="btnLabelSizes" label="📐 Sizes" data-demo="sizes" variant="outline"></ui-button>
|
|
12
|
+
<ui-button id="btnLabelWeights" label="⚖️ Weights" data-demo="weights" variant="outline"></ui-button>
|
|
13
|
+
<ui-button id="btnLabelVariants" label="🎨 Variants" data-demo="variants" variant="outline"></ui-button>
|
|
14
|
+
<ui-button id="btnLabelStates" label="🔘 Form States" data-demo="states" variant="outline"></ui-button>
|
|
15
|
+
<ui-button id="btnLabelValidation" label="✅ Validation" data-demo="validation" variant="outline"></ui-button>
|
|
16
|
+
<ui-button id="btnLabelIcons" label="🖼️ Icons" data-demo="icons" variant="outline"></ui-button>
|
|
17
|
+
<ui-button id="btnLabelTooltip" label="💬 Tooltip" data-demo="tooltip" variant="outline"></ui-button>
|
|
18
|
+
<ui-button id="btnLabelInteractive" label="👆 Interactive" data-demo="interactive" variant="outline"></ui-button>
|
|
19
|
+
<ui-button id="btnLabelLayout" label="📐 Layout" data-demo="layout" variant="outline"></ui-button>
|
|
20
|
+
<ui-button id="btnLabelTypography" label="✍️ Typography" data-demo="typography" variant="outline"></ui-button>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<div id="labelDemoContainer" style="margin-top: 20px;"></div>
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
const container = section.querySelector('#labelDemoContainer');
|
|
27
|
+
|
|
28
|
+
const updateActiveBtn = demoName => {
|
|
29
|
+
section.querySelectorAll('.demo-controls ui-button').forEach(btn => {
|
|
30
|
+
btn.selected = btn.getAttribute('data-demo') === demoName;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// ─── Demo renderers ────────────────────────────────────────────────────────
|
|
35
|
+
|
|
36
|
+
function showPlayground() {
|
|
37
|
+
updateActiveBtn('playground');
|
|
38
|
+
container.innerHTML = `
|
|
39
|
+
<div class="demo-block">
|
|
40
|
+
<h3 style="margin-bottom: 24px;">Interactive Playground</h3>
|
|
41
|
+
<div style="display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start;">
|
|
42
|
+
<!-- Controls -->
|
|
43
|
+
<div style="background: var(--bg-secondary, #f8fafc); border: 1px solid var(--border-default, #e2e8f0); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px;">
|
|
44
|
+
<div>
|
|
45
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Label Text</label>
|
|
46
|
+
<input id="pgLabelText" type="text" value="Email address" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box;" />
|
|
47
|
+
</div>
|
|
48
|
+
<div>
|
|
49
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Size</label>
|
|
50
|
+
<select id="pgLabelSize" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;">
|
|
51
|
+
<option value="xxs">xxs</option>
|
|
52
|
+
<option value="xs">xs</option>
|
|
53
|
+
<option value="sm">sm</option>
|
|
54
|
+
<option value="md" selected>md (default)</option>
|
|
55
|
+
<option value="lg">lg</option>
|
|
56
|
+
<option value="xl">xl</option>
|
|
57
|
+
<option value="xxl">xxl</option>
|
|
58
|
+
<option value="xxxl">xxxl</option>
|
|
59
|
+
<option value="jumbo">jumbo</option>
|
|
60
|
+
</select>
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Weight</label>
|
|
64
|
+
<select id="pgLabelWeight" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;">
|
|
65
|
+
<option value="light">light</option>
|
|
66
|
+
<option value="normal">normal</option>
|
|
67
|
+
<option value="medium" selected>medium (default)</option>
|
|
68
|
+
<option value="semibold">semibold</option>
|
|
69
|
+
<option value="bold">bold</option>
|
|
70
|
+
</select>
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Variant</label>
|
|
74
|
+
<select id="pgLabelVariant" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px;">
|
|
75
|
+
<option value="default" selected>default</option>
|
|
76
|
+
<option value="muted">muted</option>
|
|
77
|
+
<option value="primary">primary</option>
|
|
78
|
+
<option value="secondary">secondary</option>
|
|
79
|
+
<option value="success">success</option>
|
|
80
|
+
<option value="warning">warning</option>
|
|
81
|
+
<option value="danger">danger</option>
|
|
82
|
+
<option value="info">info</option>
|
|
83
|
+
</select>
|
|
84
|
+
</div>
|
|
85
|
+
<div style="display: flex; flex-direction: column; gap: 8px;">
|
|
86
|
+
<label style="font-size: 12px; font-weight: 600; opacity: 0.7;">Options</label>
|
|
87
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
88
|
+
<input type="checkbox" id="pgRequired" /> Required
|
|
89
|
+
</label>
|
|
90
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
91
|
+
<input type="checkbox" id="pgOptional" /> Optional
|
|
92
|
+
</label>
|
|
93
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
94
|
+
<input type="checkbox" id="pgDisabled" /> Disabled
|
|
95
|
+
</label>
|
|
96
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
97
|
+
<input type="checkbox" id="pgLoading" /> Loading
|
|
98
|
+
</label>
|
|
99
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
100
|
+
<input type="checkbox" id="pgCopyable" /> Copyable
|
|
101
|
+
</label>
|
|
102
|
+
<label style="display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer;">
|
|
103
|
+
<input type="checkbox" id="pgClickable" /> Clickable
|
|
104
|
+
</label>
|
|
105
|
+
</div>
|
|
106
|
+
<div>
|
|
107
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Helper Text</label>
|
|
108
|
+
<input id="pgHelperText" type="text" placeholder="optional helper text" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box;" />
|
|
109
|
+
</div>
|
|
110
|
+
<div>
|
|
111
|
+
<label style="font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; opacity: 0.7;">Start Icon (HTML/emoji)</label>
|
|
112
|
+
<input id="pgStartIcon" type="text" placeholder="e.g. ✉️ or SVG string" style="width: 100%; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box;" />
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- Preview -->
|
|
117
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
118
|
+
<div style="background: var(--bg-primary, #fff); border: 1px solid var(--border-default, #e2e8f0); border-radius: 12px; padding: 32px; min-height: 120px; display: flex; align-items: center; justify-content: center;">
|
|
119
|
+
<ui-label id="pgLabelPreview" label="Email address" size="md" weight="medium" variant="default"></ui-label>
|
|
120
|
+
</div>
|
|
121
|
+
<div>
|
|
122
|
+
<div style="font-size: 11px; font-weight: 600; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;">Code</div>
|
|
123
|
+
<pre id="pgLabelCode" style="background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; font-size: 13px; overflow-x: auto; margin: 0; white-space: pre-wrap;"></pre>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
`;
|
|
129
|
+
|
|
130
|
+
const preview = section.querySelector('#pgLabelPreview');
|
|
131
|
+
const code = section.querySelector('#pgLabelCode');
|
|
132
|
+
|
|
133
|
+
function updatePreview() {
|
|
134
|
+
const text = section.querySelector('#pgLabelText').value || 'Label';
|
|
135
|
+
const size = section.querySelector('#pgLabelSize').value;
|
|
136
|
+
const weight = section.querySelector('#pgLabelWeight').value;
|
|
137
|
+
const variant = section.querySelector('#pgLabelVariant').value;
|
|
138
|
+
const req = section.querySelector('#pgRequired').checked;
|
|
139
|
+
const opt = section.querySelector('#pgOptional').checked;
|
|
140
|
+
const dis = section.querySelector('#pgDisabled').checked;
|
|
141
|
+
const load = section.querySelector('#pgLoading').checked;
|
|
142
|
+
const copy = section.querySelector('#pgCopyable').checked;
|
|
143
|
+
const click = section.querySelector('#pgClickable').checked;
|
|
144
|
+
const helper = section.querySelector('#pgHelperText').value;
|
|
145
|
+
const startIc = section.querySelector('#pgStartIcon').value;
|
|
146
|
+
|
|
147
|
+
preview.setAttribute('label', text);
|
|
148
|
+
preview.setAttribute('size', size);
|
|
149
|
+
preview.setAttribute('weight', weight);
|
|
150
|
+
preview.setAttribute('variant', variant);
|
|
151
|
+
preview.toggleAttribute('required', req);
|
|
152
|
+
preview.toggleAttribute('optional', opt && !req);
|
|
153
|
+
preview.toggleAttribute('disabled', dis);
|
|
154
|
+
preview.toggleAttribute('loading', load);
|
|
155
|
+
preview.toggleAttribute('copyable', copy);
|
|
156
|
+
preview.toggleAttribute('clickable', click);
|
|
157
|
+
if (helper) preview.setAttribute('helper-text', helper); else preview.removeAttribute('helper-text');
|
|
158
|
+
if (startIc) preview.setAttribute('start-icon', startIc); else preview.removeAttribute('start-icon');
|
|
159
|
+
|
|
160
|
+
let attrs = ` label="${text}"`;
|
|
161
|
+
if (size !== 'md') attrs += ` size="${size}"`;
|
|
162
|
+
if (weight !== 'medium') attrs += ` weight="${weight}"`;
|
|
163
|
+
if (variant !== 'default') attrs += ` variant="${variant}"`;
|
|
164
|
+
if (req) attrs += ' required';
|
|
165
|
+
if (opt && !req) attrs += ' optional';
|
|
166
|
+
if (dis) attrs += ' disabled';
|
|
167
|
+
if (load) attrs += ' loading';
|
|
168
|
+
if (copy) attrs += ' copyable';
|
|
169
|
+
if (click) attrs += ' clickable';
|
|
170
|
+
if (helper) attrs += ` helper-text="${helper}"`;
|
|
171
|
+
if (startIc) attrs += ` start-icon="${startIc}"`;
|
|
172
|
+
code.textContent = `<ui-label${attrs}></ui-label>`;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
['input', 'change'].forEach(ev => {
|
|
176
|
+
['pgLabelText','pgLabelSize','pgLabelWeight','pgLabelVariant','pgHelperText','pgStartIcon'].forEach(id => {
|
|
177
|
+
section.querySelector('#' + id)?.addEventListener(ev, updatePreview);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
['pgRequired','pgOptional','pgDisabled','pgLoading','pgCopyable','pgClickable'].forEach(id => {
|
|
181
|
+
section.querySelector('#' + id)?.addEventListener('change', updatePreview);
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
updatePreview();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function showBasic() {
|
|
188
|
+
updateActiveBtn('basic');
|
|
189
|
+
container.innerHTML = `
|
|
190
|
+
<div class="demo-block">
|
|
191
|
+
<h3 style="margin-bottom: 20px;">Basic Labels</h3>
|
|
192
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
193
|
+
|
|
194
|
+
<div>
|
|
195
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Default</h4>
|
|
196
|
+
<div style="display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;">
|
|
197
|
+
<ui-label label="First name"></ui-label>
|
|
198
|
+
<ui-label label="Email address"></ui-label>
|
|
199
|
+
<ui-label label="Phone number"></ui-label>
|
|
200
|
+
<ui-label label="Date of birth"></ui-label>
|
|
201
|
+
</div>
|
|
202
|
+
<pre class="demo-code"><code><ui-label label="First name"></ui-label></code></pre>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
<div>
|
|
206
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">With Input Association</h4>
|
|
207
|
+
<div style="display: flex; flex-direction: column; gap: 12px; max-width: 360px;">
|
|
208
|
+
<div>
|
|
209
|
+
<ui-label label="Username" html-for="demo-input-user" required></ui-label>
|
|
210
|
+
<input id="demo-input-user" type="text" placeholder="johndoe" style="display: block; width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; box-sizing: border-box;" />
|
|
211
|
+
</div>
|
|
212
|
+
<div>
|
|
213
|
+
<ui-label label="Password" html-for="demo-input-pwd" required helper-text="Must be at least 8 characters"></ui-label>
|
|
214
|
+
<input id="demo-input-pwd" type="password" placeholder="••••••••" style="display: block; width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; box-sizing: border-box;" />
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
<pre class="demo-code"><code><ui-label label="Username" html-for="my-input" required></ui-label>
|
|
218
|
+
<input id="my-input" type="text" /></code></pre>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
<div>
|
|
222
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Slot Content</h4>
|
|
223
|
+
<div style="display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;">
|
|
224
|
+
<ui-label>Rich <strong>content</strong> label</ui-label>
|
|
225
|
+
<ui-label>Label with <span style="color:var(--accent-indigo,#6366f1)">colored</span> text</ui-label>
|
|
226
|
+
<ui-label>Label with <code style="background:var(--bg-tertiary,#f1f5f9);padding:0 4px;border-radius:3px;font-size:0.85em;">code</code></ui-label>
|
|
227
|
+
</div>
|
|
228
|
+
<pre class="demo-code"><code><ui-label>Rich <strong>content</strong> label</ui-label></code></pre>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
`;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function showSizes() {
|
|
237
|
+
updateActiveBtn('sizes');
|
|
238
|
+
container.innerHTML = `
|
|
239
|
+
<div class="demo-block">
|
|
240
|
+
<h3 style="margin-bottom: 20px;">Size Scale</h3>
|
|
241
|
+
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
242
|
+
${['xxs','xs','sm','md','lg','xl','xxl','xxxl','jumbo'].map(s => `
|
|
243
|
+
<div style="display: flex; align-items: baseline; gap: 24px; padding: 12px 16px; border-radius: 8px; background: var(--bg-secondary, #f8fafc);">
|
|
244
|
+
<span style="font-size: 11px; font-weight: 600; opacity: 0.5; min-width: 32px; text-transform: uppercase;">${s}</span>
|
|
245
|
+
<ui-label label="Form field label" size="${s}"></ui-label>
|
|
246
|
+
<ui-label label="Required field" size="${s}" required></ui-label>
|
|
247
|
+
</div>
|
|
248
|
+
`).join('')}
|
|
249
|
+
</div>
|
|
250
|
+
<pre class="demo-code" style="margin-top: 20px;"><code><ui-label label="Field label" size="xxs"></ui-label>
|
|
251
|
+
<ui-label label="Field label" size="xs"></ui-label>
|
|
252
|
+
<ui-label label="Field label" size="sm"></ui-label>
|
|
253
|
+
<ui-label label="Field label" size="md"></ui-label>
|
|
254
|
+
<ui-label label="Field label" size="lg"></ui-label>
|
|
255
|
+
<ui-label label="Field label" size="xl"></ui-label>
|
|
256
|
+
<ui-label label="Field label" size="xxl"></ui-label>
|
|
257
|
+
<ui-label label="Field label" size="xxxl"></ui-label>
|
|
258
|
+
<ui-label label="Field label" size="jumbo"></ui-label></code></pre>
|
|
259
|
+
</div>
|
|
260
|
+
`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function showWeights() {
|
|
264
|
+
updateActiveBtn('weights');
|
|
265
|
+
container.innerHTML = `
|
|
266
|
+
<div class="demo-block">
|
|
267
|
+
<h3 style="margin-bottom: 20px;">Font Weights</h3>
|
|
268
|
+
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
269
|
+
${[['light','300'],['normal','400'],['medium','500 (default)'],['semibold','600'],['bold','700']].map(([w, label]) => `
|
|
270
|
+
<div style="display: flex; align-items: center; gap: 24px; padding: 12px 16px; border-radius: 8px; background: var(--bg-secondary, #f8fafc);">
|
|
271
|
+
<span style="font-size: 11px; font-weight: 600; opacity: 0.5; min-width: 80px; text-transform: uppercase;">${w}</span>
|
|
272
|
+
<ui-label label="Field label" weight="${w}" size="lg"></ui-label>
|
|
273
|
+
<span style="font-size: 11px; opacity: 0.40; margin-left: auto;">font-weight: ${label}</span>
|
|
274
|
+
</div>
|
|
275
|
+
`).join('')}
|
|
276
|
+
</div>
|
|
277
|
+
<pre class="demo-code" style="margin-top: 20px;"><code><ui-label label="Field label" weight="light"></ui-label>
|
|
278
|
+
<ui-label label="Field label" weight="bold"></ui-label></code></pre>
|
|
279
|
+
</div>
|
|
280
|
+
`;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function showVariants() {
|
|
284
|
+
updateActiveBtn('variants');
|
|
285
|
+
container.innerHTML = `
|
|
286
|
+
<div class="demo-block">
|
|
287
|
+
<h3 style="margin-bottom: 20px;">Color Variants</h3>
|
|
288
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;">
|
|
289
|
+
${['default','muted','primary','secondary','success','warning','danger','info'].map(v => `
|
|
290
|
+
<div style="padding: 16px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0); background: var(--bg-primary,#fff); display: flex; flex-direction: column; gap: 8px;">
|
|
291
|
+
<span style="font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: 0.5; letter-spacing: 0.08em;">${v}</span>
|
|
292
|
+
<ui-label label="Form field label" variant="${v}" size="md" weight="semibold"></ui-label>
|
|
293
|
+
<ui-label label="Required field" variant="${v}" required></ui-label>
|
|
294
|
+
</div>
|
|
295
|
+
`).join('')}
|
|
296
|
+
</div>
|
|
297
|
+
<pre class="demo-code" style="margin-top: 20px;"><code><ui-label label="Field label" variant="primary"></ui-label>
|
|
298
|
+
<ui-label label="Warning label" variant="warning"></ui-label>
|
|
299
|
+
<ui-label label="Danger label" variant="danger"></ui-label></code></pre>
|
|
300
|
+
</div>
|
|
301
|
+
`;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function showStates() {
|
|
305
|
+
updateActiveBtn('states');
|
|
306
|
+
container.innerHTML = `
|
|
307
|
+
<div class="demo-block">
|
|
308
|
+
<h3 style="margin-bottom: 20px;">Form States</h3>
|
|
309
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px;">
|
|
310
|
+
|
|
311
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
312
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Required</div>
|
|
313
|
+
<ui-label label="Email address" required></ui-label>
|
|
314
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Email" required></ui-label></code></pre>
|
|
315
|
+
</div>
|
|
316
|
+
|
|
317
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
318
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Optional</div>
|
|
319
|
+
<ui-label label="Middle name" optional></ui-label>
|
|
320
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Middle name" optional></ui-label></code></pre>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
324
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Disabled</div>
|
|
325
|
+
<ui-label label="Locked field" disabled></ui-label>
|
|
326
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Locked field" disabled></ui-label></code></pre>
|
|
327
|
+
</div>
|
|
328
|
+
|
|
329
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
330
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Read-only</div>
|
|
331
|
+
<ui-label label="Read-only label" readonly></ui-label>
|
|
332
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Read-only label" readonly></ui-label></code></pre>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
336
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Invalid / Error</div>
|
|
337
|
+
<ui-label label="Email address" invalid required error-text="Please enter a valid email"></ui-label>
|
|
338
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Email" invalid
|
|
339
|
+
error-text="Invalid email"></ui-label></code></pre>
|
|
340
|
+
</div>
|
|
341
|
+
|
|
342
|
+
<div style="min-width: 0; padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
343
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.5; text-transform: uppercase; margin-bottom: 12px;">Loading Skeleton</div>
|
|
344
|
+
<ui-label label="Loading label" loading></ui-label>
|
|
345
|
+
<pre class="demo-code" style="margin-top: 12px; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;"><code><ui-label label="Loading label" loading></ui-label></code></pre>
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
`;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
function showValidation() {
|
|
354
|
+
updateActiveBtn('validation');
|
|
355
|
+
container.innerHTML = `
|
|
356
|
+
<div class="demo-block">
|
|
357
|
+
<h3 style="margin-bottom: 20px;">Validation Messages</h3>
|
|
358
|
+
<div style="display: flex; flex-direction: column; gap: 20px; max-width: 500px;">
|
|
359
|
+
|
|
360
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid #ef4444; background: #fff5f5;">
|
|
361
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.6; text-transform: uppercase; margin-bottom: 12px; color:var(--accent-red,#ef4444);">Error State</div>
|
|
362
|
+
<ui-label label="Email address" required invalid error-text="Please enter a valid email address" size="md"></ui-label>
|
|
363
|
+
</div>
|
|
364
|
+
|
|
365
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid #10b981; background: #f0fdf9;">
|
|
366
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.6; text-transform: uppercase; margin-bottom: 12px; color: #10b981;">Success State</div>
|
|
367
|
+
<ui-label label="Email address" required success-text="Email is valid and available!" size="md"></ui-label>
|
|
368
|
+
</div>
|
|
369
|
+
|
|
370
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
371
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.6; text-transform: uppercase; margin-bottom: 12px;">Helper Text</div>
|
|
372
|
+
<ui-label label="Password" required helper-text="Must be at least 8 characters with one uppercase and one number" size="md"></ui-label>
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
376
|
+
<div style="font-size: 11px; font-weight: 700; opacity: 0.6; text-transform: uppercase; margin-bottom: 12px;">Hint Slot</div>
|
|
377
|
+
<ui-label label="API Key" required>
|
|
378
|
+
<span slot="hint">Get your key from the <a href="#" style="color:var(--accent-indigo,#6366f1);">developer portal</a></span>
|
|
379
|
+
</ui-label>
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
</div>
|
|
383
|
+
<pre class="demo-code" style="margin-top: 20px;"><code><!-- Error message -->
|
|
384
|
+
<ui-label label="Email" invalid error-text="Invalid email"></ui-label>
|
|
385
|
+
|
|
386
|
+
<!-- Success message -->
|
|
387
|
+
<ui-label label="Email" success-text="Email verified!"></ui-label>
|
|
388
|
+
|
|
389
|
+
<!-- Helper text -->
|
|
390
|
+
<ui-label label="Password" helper-text="Min 8 chars"></ui-label>
|
|
391
|
+
|
|
392
|
+
<!-- Hint slot -->
|
|
393
|
+
<ui-label label="API Key">
|
|
394
|
+
<span slot="hint">Get from <a href="/portal">portal</a></span>
|
|
395
|
+
</ui-label></code></pre>
|
|
396
|
+
</div>
|
|
397
|
+
`;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function showIcons() {
|
|
401
|
+
updateActiveBtn('icons');
|
|
402
|
+
container.innerHTML = `
|
|
403
|
+
<div class="demo-block">
|
|
404
|
+
<h3 style="margin-bottom: 20px;">Icons</h3>
|
|
405
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
406
|
+
|
|
407
|
+
<div>
|
|
408
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Start Icon</h4>
|
|
409
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;">
|
|
410
|
+
<ui-label label="Email" start-icon="✉️"></ui-label>
|
|
411
|
+
<ui-label label="Phone" start-icon="📞"></ui-label>
|
|
412
|
+
<ui-label label="Password" start-icon="🔒" required></ui-label>
|
|
413
|
+
<ui-label label="Location" start-icon="📍" variant="info"></ui-label>
|
|
414
|
+
<ui-label label="Date" start-icon="📅" optional></ui-label>
|
|
415
|
+
</div>
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
<div>
|
|
419
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">End Icon</h4>
|
|
420
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;">
|
|
421
|
+
<ui-label label="Verified field" end-icon="✅"></ui-label>
|
|
422
|
+
<ui-label label="Required" end-icon="⚠️" required></ui-label>
|
|
423
|
+
<ui-label label="External link" end-icon="🔗" clickable></ui-label>
|
|
424
|
+
</div>
|
|
425
|
+
</div>
|
|
426
|
+
|
|
427
|
+
<div>
|
|
428
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Both Icons</h4>
|
|
429
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;">
|
|
430
|
+
<ui-label label="Credit card" start-icon="💳" end-icon="🔒"></ui-label>
|
|
431
|
+
<ui-label label="Pro feature" start-icon="⭐" end-icon="→" variant="primary" weight="semibold"></ui-label>
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
|
|
435
|
+
<div>
|
|
436
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Slot: start / end</h4>
|
|
437
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;">
|
|
438
|
+
<ui-label label="Custom slot icon">
|
|
439
|
+
<span slot="start" style="display:inline-flex;width:16px;height:16px;background:var(--accent-indigo,#6366f1);border-radius:50%;"></span>
|
|
440
|
+
</ui-label>
|
|
441
|
+
<ui-label label="Badge in end slot">
|
|
442
|
+
<span slot="end" style="font-size:10px;font-weight:700;background:var(--accent-red,#ef4444);color:#fff;border-radius:4px;padding:1px 5px;">HOT</span>
|
|
443
|
+
</ui-label>
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
|
|
447
|
+
</div>
|
|
448
|
+
<pre class="demo-code" style="margin-top: 20px;"><code><ui-label label="Email" start-icon="✉️"></ui-label>
|
|
449
|
+
<ui-label label="Done" end-icon="✅"></ui-label>
|
|
450
|
+
<ui-label label="Card" start-icon="💳" end-icon="🔒"></ui-label></code></pre>
|
|
451
|
+
</div>
|
|
452
|
+
`;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function showTooltip() {
|
|
456
|
+
updateActiveBtn('tooltip');
|
|
457
|
+
container.innerHTML = `
|
|
458
|
+
<div class="demo-block">
|
|
459
|
+
<h3 style="margin-bottom: 20px;">Tooltips</h3>
|
|
460
|
+
<div style="display: flex; flex-direction: column; gap: 32px; padding: 24px;">
|
|
461
|
+
|
|
462
|
+
<div>
|
|
463
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;">Text Tooltip (click ⓘ to open)</h4>
|
|
464
|
+
<div style="display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 24px 0;">
|
|
465
|
+
<ui-label label="IBAN number" tooltip="International Bank Account Number — a standard format used globally to identify bank accounts." required></ui-label>
|
|
466
|
+
<ui-label label="Tax ID" tooltip="Your unique tax identification number issued by your country's revenue authority." optional></ui-label>
|
|
467
|
+
<ui-label label="VAT rate" tooltip="Value Added Tax rate applicable in your jurisdiction." variant="info"></ui-label>
|
|
468
|
+
</div>
|
|
469
|
+
</div>
|
|
470
|
+
|
|
471
|
+
<div>
|
|
472
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;">Tooltip Positions</h4>
|
|
473
|
+
<div style="display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 40px 0;">
|
|
474
|
+
<ui-label label="Tooltip top" tooltip="Appears on top" tooltip-position="top" required></ui-label>
|
|
475
|
+
<ui-label label="Tooltip bottom" tooltip="Appears below" tooltip-position="bottom" required></ui-label>
|
|
476
|
+
<ui-label label="Tooltip left" tooltip="Appears to the left" tooltip-position="left" required></ui-label>
|
|
477
|
+
<ui-label label="Tooltip right" tooltip="Appears to the right" tooltip-position="right" required></ui-label>
|
|
478
|
+
</div>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
<div>
|
|
482
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px;">Rich Tooltip (slot)</h4>
|
|
483
|
+
<div style="padding: 24px 0;">
|
|
484
|
+
<ui-label label="Advanced setting" required>
|
|
485
|
+
<div slot="tooltip" style="font-size: 12px; line-height: 1.6;">
|
|
486
|
+
<strong>Advanced configuration</strong><br>
|
|
487
|
+
This setting controls the behavior of the advanced module. Consult the
|
|
488
|
+
<a href="#" style="color:#a5b4fc;">documentation</a> for details.
|
|
489
|
+
</div>
|
|
490
|
+
</ui-label>
|
|
491
|
+
</div>
|
|
492
|
+
</div>
|
|
493
|
+
|
|
494
|
+
</div>
|
|
495
|
+
<pre class="demo-code"><code><!-- Text tooltip -->
|
|
496
|
+
<ui-label label="IBAN" tooltip="International Bank Account Number"></ui-label>
|
|
497
|
+
|
|
498
|
+
<!-- Positioned tooltip -->
|
|
499
|
+
<ui-label label="Field" tooltip="Info" tooltip-position="bottom"></ui-label>
|
|
500
|
+
|
|
501
|
+
<!-- Rich tooltip slot -->
|
|
502
|
+
<ui-label label="Setting">
|
|
503
|
+
<div slot="tooltip"><strong>Title</strong><br>Details here.</div>
|
|
504
|
+
</ui-label></code></pre>
|
|
505
|
+
</div>
|
|
506
|
+
`;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
function showInteractive() {
|
|
510
|
+
updateActiveBtn('interactive');
|
|
511
|
+
container.innerHTML = `
|
|
512
|
+
<div class="demo-block">
|
|
513
|
+
<h3 style="margin-bottom: 20px;">Interactive Features</h3>
|
|
514
|
+
<div style="display: flex; flex-direction: column; gap: 28px;">
|
|
515
|
+
|
|
516
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
517
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Clickable</h4>
|
|
518
|
+
<p style="font-size: 13px; opacity: 0.7; margin: 0 0 12px;">Label fires <code>labelClick</code> event when clicked.</p>
|
|
519
|
+
<ui-label id="clickableLabel" label="Click me to select all" clickable variant="primary" weight="semibold"></ui-label>
|
|
520
|
+
<div id="clickLog" style="margin-top: 12px; font-size: 12px; color: #10b981; min-height: 18px;"></div>
|
|
521
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="Click me" clickable variant="primary"></ui-label></code></pre>
|
|
522
|
+
</div>
|
|
523
|
+
|
|
524
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
525
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Copy to Clipboard (hover to reveal)</h4>
|
|
526
|
+
<p style="font-size: 13px; opacity: 0.7; margin: 0 0 12px;">Hover over the label to reveal the copy icon.</p>
|
|
527
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px;">
|
|
528
|
+
<ui-label id="copyLabel1" label="API_KEY_12345_ABCDE" copyable></ui-label>
|
|
529
|
+
<ui-label id="copyLabel2" label="user@example.com" copyable variant="primary"></ui-label>
|
|
530
|
+
<ui-label id="copyLabel3" label="0x1A2B3C4D5E6F" copyable weight="semibold" start-icon="📋"></ui-label>
|
|
531
|
+
</div>
|
|
532
|
+
<div id="copyLog" style="margin-top: 12px; font-size: 12px; color: #10b981; min-height: 18px;"></div>
|
|
533
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="API_KEY_12345" copyable></ui-label></code></pre>
|
|
534
|
+
</div>
|
|
535
|
+
|
|
536
|
+
<div style="padding: 20px; border-radius: 10px; border: 1px solid var(--border-default,#e2e8f0);">
|
|
537
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Selectable Text</h4>
|
|
538
|
+
<p style="font-size: 13px; opacity: 0.7; margin: 0 0 12px;">Allows text selection (disabled by default on labels).</p>
|
|
539
|
+
<ui-label label="You can select this label text" selectable size="lg"></ui-label>
|
|
540
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="Selectable text" selectable></ui-label></code></pre>
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
`;
|
|
546
|
+
|
|
547
|
+
setTimeout(() => {
|
|
548
|
+
const clickable = document.getElementById('clickableLabel');
|
|
549
|
+
const clickLog = document.getElementById('clickLog');
|
|
550
|
+
if (clickable && clickLog) {
|
|
551
|
+
clickable.addEventListener('labelClick', e => {
|
|
552
|
+
clickLog.textContent = `✓ labelClick fired! Text: "${e.detail?.text}"`;
|
|
553
|
+
setTimeout(() => { clickLog.textContent = ''; }, 3000);
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
['copyLabel1','copyLabel2','copyLabel3'].forEach(id => {
|
|
558
|
+
const el = document.getElementById(id);
|
|
559
|
+
const copyLog = document.getElementById('copyLog');
|
|
560
|
+
if (el && copyLog) {
|
|
561
|
+
el.addEventListener('labelCopy', e => {
|
|
562
|
+
copyLog.textContent = `✓ Copied to clipboard: "${e.detail?.text}"`;
|
|
563
|
+
setTimeout(() => { copyLog.textContent = ''; }, 3000);
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}, 100);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
function showLayout() {
|
|
571
|
+
updateActiveBtn('layout');
|
|
572
|
+
container.innerHTML = `
|
|
573
|
+
<div class="demo-block">
|
|
574
|
+
<h3 style="margin-bottom: 20px;">Layout Options</h3>
|
|
575
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
576
|
+
|
|
577
|
+
<div>
|
|
578
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Alignment</h4>
|
|
579
|
+
<div style="display: flex; flex-direction: column; gap: 10px;">
|
|
580
|
+
<div style="border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px; background: var(--bg-secondary,#f8fafc);">
|
|
581
|
+
<ui-label label="Align start (default)" align="start" block></ui-label>
|
|
582
|
+
</div>
|
|
583
|
+
<div style="border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px; background: var(--bg-secondary,#f8fafc);">
|
|
584
|
+
<ui-label label="Align center" align="center" block></ui-label>
|
|
585
|
+
</div>
|
|
586
|
+
<div style="border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px; background: var(--bg-secondary,#f8fafc);">
|
|
587
|
+
<ui-label label="Align end" align="end" block></ui-label>
|
|
588
|
+
</div>
|
|
589
|
+
<div style="border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px; background: var(--bg-secondary,#f8fafc);">
|
|
590
|
+
<ui-label label="Align between" align="between" block end-icon="ⓘ"></ui-label>
|
|
591
|
+
</div>
|
|
592
|
+
</div>
|
|
593
|
+
</div>
|
|
594
|
+
|
|
595
|
+
<div>
|
|
596
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Inline vs Block</h4>
|
|
597
|
+
<div style="display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px;">
|
|
598
|
+
<ui-label label="Inline label" inline></ui-label>
|
|
599
|
+
<span style="opacity: 0.4;">|</span>
|
|
600
|
+
<ui-label label="Another inline" inline variant="primary"></ui-label>
|
|
601
|
+
<span style="opacity: 0.4;">|</span>
|
|
602
|
+
<ui-label label="Also inline" inline></ui-label>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
|
|
606
|
+
<div>
|
|
607
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">RTL Direction</h4>
|
|
608
|
+
<div style="direction: rtl; padding: 16px; border: 1px solid var(--border-default,#e2e8f0); border-radius: 8px; background: var(--bg-secondary,#f8fafc);">
|
|
609
|
+
<ui-label label="اسم المستخدم" required dir="rtl" start-icon="👤"></ui-label>
|
|
610
|
+
<br/><br/>
|
|
611
|
+
<ui-label label="البريد الإلكتروني" optional dir="rtl" start-icon="✉️"></ui-label>
|
|
612
|
+
</div>
|
|
613
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="اسم المستخدم" dir="rtl" required></ui-label></code></pre>
|
|
614
|
+
</div>
|
|
615
|
+
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
`;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function showTypography() {
|
|
622
|
+
updateActiveBtn('typography');
|
|
623
|
+
container.innerHTML = `
|
|
624
|
+
<div class="demo-block">
|
|
625
|
+
<h3 style="margin-bottom: 20px;">Typography</h3>
|
|
626
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
627
|
+
|
|
628
|
+
<div>
|
|
629
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Text Transform</h4>
|
|
630
|
+
<div style="display: flex; flex-wrap: wrap; gap: 20px;">
|
|
631
|
+
<ui-label label="none (default)" transform="none" size="lg"></ui-label>
|
|
632
|
+
<ui-label label="UPPERCASE transform" transform="uppercase" size="lg"></ui-label>
|
|
633
|
+
<ui-label label="Lowercase Transform" transform="lowercase" size="lg"></ui-label>
|
|
634
|
+
<ui-label label="capitalize every word" transform="capitalize" size="lg"></ui-label>
|
|
635
|
+
</div>
|
|
636
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="uppercase label" transform="uppercase"></ui-label></code></pre>
|
|
637
|
+
</div>
|
|
638
|
+
|
|
639
|
+
<div>
|
|
640
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Truncation</h4>
|
|
641
|
+
<div style="max-width: 300px; display: flex; flex-direction: column; gap: 12px;">
|
|
642
|
+
<div style="border:1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px;">
|
|
643
|
+
<div style="font-size: 11px; opacity: 0.5; margin-bottom: 6px;">Single-line truncate</div>
|
|
644
|
+
<ui-label label="This is a very long label text that will be truncated with an ellipsis when it overflows" truncate></ui-label>
|
|
645
|
+
</div>
|
|
646
|
+
<div style="border:1px solid var(--border-default,#e2e8f0); border-radius: 8px; padding: 12px;">
|
|
647
|
+
<div style="font-size: 11px; opacity: 0.5; margin-bottom: 6px;">Multi-line clamp (2 lines)</div>
|
|
648
|
+
<ui-label label="This is a very long label text that demonstrates multi-line clamping at exactly two lines before showing ellipsis." multiline line-clamp="2"></ui-label>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><!-- Truncate -->
|
|
652
|
+
<ui-label label="Very long label..." truncate></ui-label>
|
|
653
|
+
|
|
654
|
+
<!-- Line clamp -->
|
|
655
|
+
<ui-label label="Multi line label..." multiline line-clamp="2"></ui-label></code></pre>
|
|
656
|
+
</div>
|
|
657
|
+
|
|
658
|
+
<div>
|
|
659
|
+
<h4 style="font-size: 13px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;">Custom Spacing</h4>
|
|
660
|
+
<div style="display: flex; flex-direction: column; gap: 16px; max-width: 400px;">
|
|
661
|
+
<ui-label label="Custom margin" required margin="0 0 16px" helper-text="This label has a bottom margin of 16px"></ui-label>
|
|
662
|
+
<ui-label label="Custom gap (12px)" required helper-text="Larger gap between label and hint text" gap="12px"></ui-label>
|
|
663
|
+
</div>
|
|
664
|
+
<pre class="demo-code" style="margin-top: 12px;"><code><ui-label label="Spaced" margin="0 0 16px" gap="12px"></ui-label></code></pre>
|
|
665
|
+
</div>
|
|
666
|
+
|
|
667
|
+
</div>
|
|
668
|
+
</div>
|
|
669
|
+
`;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// ─── Button wiring ─────────────────────────────────────────────────────────
|
|
673
|
+
const demoMap = {
|
|
674
|
+
playground: showPlayground,
|
|
675
|
+
basic: showBasic,
|
|
676
|
+
sizes: showSizes,
|
|
677
|
+
weights: showWeights,
|
|
678
|
+
variants: showVariants,
|
|
679
|
+
states: showStates,
|
|
680
|
+
validation: showValidation,
|
|
681
|
+
icons: showIcons,
|
|
682
|
+
tooltip: showTooltip,
|
|
683
|
+
interactive: showInteractive,
|
|
684
|
+
layout: showLayout,
|
|
685
|
+
typography: showTypography,
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
setTimeout(() => {
|
|
689
|
+
section.querySelectorAll('.demo-controls ui-button').forEach(btn => {
|
|
690
|
+
btn.addEventListener('click', () => {
|
|
691
|
+
const demo = btn.getAttribute('data-demo');
|
|
692
|
+
if (demoMap[demo]) demoMap[demo]();
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
showPlayground();
|
|
696
|
+
}, 100);
|
|
697
|
+
}
|