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
|
@@ -54,7 +54,7 @@ export function initInputDemo() {
|
|
|
54
54
|
<ui-input id="rgb-b" type="number" min="0" max="255" value="129" label="B" size="md" style="width:70px;"></ui-input>
|
|
55
55
|
<span id="rgb-preview" style="display:inline-block;width:36px;height:36px;border-radius:8px;border:1.5px solid #e5e7eb;margin-left:16px;"></span>
|
|
56
56
|
</div>
|
|
57
|
-
<div id="rgb-error" style="color
|
|
57
|
+
<div id="rgb-error" style="color:var(--accent-red,#ef4444);font-size:12px;margin-top:6px;display:none;"></div>
|
|
58
58
|
</div>
|
|
59
59
|
<div>
|
|
60
60
|
<div style="font-size:12px;color: var(--label-subtitle-color);font-weight:600;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:8px;">RGBA Example</div>
|
|
@@ -65,7 +65,7 @@ export function initInputDemo() {
|
|
|
65
65
|
<ui-input id="rgba-a" type="number" min="0" max="1" step="0.01" value="0.7" label="A" size="md" style="width:70px;"></ui-input>
|
|
66
66
|
<span id="rgba-preview" style="display:inline-block;width:36px;height:36px;border-radius:8px;border:1.5px solid #e5e7eb;margin-left:16px;"></span>
|
|
67
67
|
</div>
|
|
68
|
-
<div id="rgba-error" style="color
|
|
68
|
+
<div id="rgba-error" style="color:var(--accent-red,#ef4444);font-size:12px;margin-top:6px;display:none;"></div>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
</div>
|
|
@@ -152,7 +152,7 @@ export function initInputDemo() {
|
|
|
152
152
|
</div>
|
|
153
153
|
</div>
|
|
154
154
|
|
|
155
|
-
<div style="border-top:
|
|
155
|
+
<div style="border-top:1px solid var(--border-default,#e2e8f0); paddingTop: 24px;">
|
|
156
156
|
<div style="margin-bottom: 12px; font-weight: 600; color: #475569;">Responsive Percentage Widths</div>
|
|
157
157
|
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
158
158
|
<ui-input width="25%" label="25% Width" placeholder="Small"></ui-input>
|
|
@@ -204,9 +204,9 @@ export function initInputDemo() {
|
|
|
204
204
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 16px;">
|
|
205
205
|
<ui-input type="color" label="Standard Color Picker (Native)" value="#10b981" size="md"></ui-input>
|
|
206
206
|
<ui-input type="file" label="File Upload" placeholder="Choose files..." size="md"></ui-input>
|
|
207
|
-
<div style="background:
|
|
207
|
+
<div style="background:var(--bg-primary,white); padding: 20px; border-radius: 16px; border:1px solid var(--border-default,#e2e8f0); grid-row: span 2;">
|
|
208
208
|
<ui-color-controller label="Professional Color Studio" value="#8b5cf6" size="md"></ui-color-controller>
|
|
209
|
-
<p style="font-size: 11px; color:
|
|
209
|
+
<p style="font-size: 11px; color:var(--text-secondary,#64748b); margin-top: 16px; line-height: 1.4;">Advanced side-by-side editing for HSL, RGB, and HEX formats with real-time synchronization.</p>
|
|
210
210
|
</div>
|
|
211
211
|
<ui-input type="file" label="Multiple Files" multiple="true" placeholder="Choose multiple..." size="md"></ui-input>
|
|
212
212
|
</div>
|
|
@@ -229,19 +229,19 @@ export function initInputDemo() {
|
|
|
229
229
|
if (!container) return;
|
|
230
230
|
|
|
231
231
|
container.innerHTML = `
|
|
232
|
-
<div class="demo-block premium-playground" style="background: #f1f7ff; border: 1px solid #d0e1ff; border-radius: 20px; padding: 24px;">
|
|
232
|
+
<div class="demo-block premium-playground" style="background: var(--bg-secondary, #f1f7ff); border: 1px solid var(--border-default, #d0e1ff); border-radius: 20px; padding: 24px;">
|
|
233
233
|
<h3 style="color: var(--label-color); display: flex; align-items: center; gap: 8px; margin-top: 0; font-size: 1.1rem; opacity: 0.8;">
|
|
234
234
|
<ui-icon library="lucide" name="layout-template"></ui-icon>
|
|
235
235
|
Live Preview Context
|
|
236
236
|
</h3>
|
|
237
|
-
<div class="playground-workspace" style="display: flex; height: 85vh; min-height: 700px; background:
|
|
237
|
+
<div class="playground-workspace" style="display: flex; height: 85vh; min-height: 700px; background:var(--bg-primary,white); border-radius: 24px; border:1px solid var(--border-default,#e2e8f0); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.12); margin-top: 32px; position: relative;">
|
|
238
238
|
<!-- Custom Scrollbar Style -->
|
|
239
239
|
<style>
|
|
240
240
|
.playground-sidebar-scroll::-webkit-scrollbar { width: 5px; }
|
|
241
241
|
.playground-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
|
|
242
242
|
.playground-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
|
|
243
243
|
.playground-sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
|
|
244
|
-
.setting-card { background:
|
|
244
|
+
.setting-card { background:var(--bg-primary,white); border-radius: 16px; padding: 20px; border: 1px solid rgba(208,225,255,0.3); transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
|
|
245
245
|
.setting-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.05); border-color: rgba(139,92,246,0.3); }
|
|
246
246
|
</style>
|
|
247
247
|
|
|
@@ -258,7 +258,7 @@ export function initInputDemo() {
|
|
|
258
258
|
<!-- Group Card: Identity -->
|
|
259
259
|
<div class="setting-card">
|
|
260
260
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
261
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
261
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--bg-tertiary,#f1f5f9); display: flex; align-items: center; justify-content: center;"><ui-icon name="database" size="16px" color="primary"></ui-icon></div>
|
|
262
262
|
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; font-weight: 700;">Data & Identity</h4>
|
|
263
263
|
</div>
|
|
264
264
|
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
@@ -299,8 +299,8 @@ export function initInputDemo() {
|
|
|
299
299
|
<!-- Group Card: Atmosphere -->
|
|
300
300
|
<div class="setting-card" style="border-left: 4px solid #8b5cf6;">
|
|
301
301
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
302
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
303
|
-
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color:
|
|
302
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--accent-purple-soft,#f5f3ff); display: flex; align-items: center; justify-content: center;"><ui-icon name="sparkles" size="16px" color="primary"></ui-icon></div>
|
|
303
|
+
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color:var(--accent-purple,#7c3aed); font-weight: 700;">Zenith Atmosphere</h4>
|
|
304
304
|
</div>
|
|
305
305
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px;">
|
|
306
306
|
<ui-checkbox id="inpGradient" label="Atmospheric Shader" size="md"></ui-checkbox>
|
|
@@ -313,9 +313,10 @@ export function initInputDemo() {
|
|
|
313
313
|
<!-- Group Card: Aesthetics -->
|
|
314
314
|
<div class="setting-card">
|
|
315
315
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
316
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
316
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--bg-tertiary,#f1f5f9); display: flex; align-items: center; justify-content: center;"><ui-icon name="palette" size="16px" color="primary"></ui-icon></div>
|
|
317
317
|
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; font-weight: 700;">Visual Synthesis</h4>
|
|
318
318
|
</div>
|
|
319
|
+
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
319
320
|
<ui-dropdown id="inpVariant" label="Render Engine" value="outlined" options='[
|
|
320
321
|
{"label": "Outlined Modern", "value": "outlined"}, {"label": "Frosted Glass", "value": "glass"}, {"label": "Depth Shadow", "value": "raised"},
|
|
321
322
|
{"label": "Subtle Soft", "value": "soft"}, {"label": "Minimalist", "value": "borderless"}, {"label": "Plain", "value": "plain"}
|
|
@@ -357,8 +358,8 @@ export function initInputDemo() {
|
|
|
357
358
|
<!-- Group Card: Features -->
|
|
358
359
|
<div class="setting-card">
|
|
359
360
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
360
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
361
|
-
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color:
|
|
361
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--accent-pink-soft,#fdf2f8); display: flex; align-items: center; justify-content: center;"><ui-icon name="zap" size="16px" color="danger"></ui-icon></div>
|
|
362
|
+
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color:var(--accent-pink,#be185d); font-weight: 700;">Operational Logic</h4>
|
|
362
363
|
</div>
|
|
363
364
|
<ui-checkbox id="inpFloating" label="Floating Title" size="md"></ui-checkbox>
|
|
364
365
|
<ui-checkbox id="inpAlwaysFloated" label="Always Floated" size="md"></ui-checkbox>
|
|
@@ -369,14 +370,15 @@ export function initInputDemo() {
|
|
|
369
370
|
<ui-checkbox id="inpCopy" label="Clone Master (Copy)" size="md"></ui-checkbox>
|
|
370
371
|
<ui-checkbox id="inpShake" label="Seismic Error (Shake)" size="md"></ui-checkbox>
|
|
371
372
|
<ui-checkbox id="inpRtl" label="Middle East Layout (RTL)" size="md"></ui-checkbox>
|
|
373
|
+
<ui-checkbox id="inpIconOnly" label="Icon Only (Hide Label & Text)" size="md"></ui-checkbox>
|
|
372
374
|
</div>
|
|
373
375
|
</div>
|
|
374
376
|
|
|
375
377
|
<!-- Group Card: Multi-line Hub -->
|
|
376
378
|
<div class="setting-card">
|
|
377
379
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
378
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
379
|
-
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color:
|
|
380
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--accent-green-soft,#f0fdf4); display: flex; align-items: center; justify-content: center;"><ui-icon name="align-left" size="16px" color="success"></ui-icon></div>
|
|
381
|
+
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-green,#166534); font-weight: 700;">Multi-line Hub</h4>
|
|
380
382
|
</div>
|
|
381
383
|
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
382
384
|
<ui-checkbox id="inpMultiline" label="Enable Multi-line" size="md"></ui-checkbox>
|
|
@@ -420,7 +422,7 @@ export function initInputDemo() {
|
|
|
420
422
|
<!-- Group Card: Constraints -->
|
|
421
423
|
<div class="setting-card">
|
|
422
424
|
<div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
|
|
423
|
-
<div style="width: 32px; height: 32px; border-radius: 8px; background:
|
|
425
|
+
<div style="width: 32px; height: 32px; border-radius: 8px; background:var(--accent-orange-soft,#fff7ed); display: flex; align-items: center; justify-content: center;"><ui-icon name="lock" size="16px" color="warning"></ui-icon></div>
|
|
424
426
|
<h4 style="margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #9a3412; font-weight: 700;">Limiter & Constraints</h4>
|
|
425
427
|
</div>
|
|
426
428
|
<div style="display: flex; flex-direction: column; gap: 16px;">
|
|
@@ -435,16 +437,16 @@ export function initInputDemo() {
|
|
|
435
437
|
</div>
|
|
436
438
|
|
|
437
439
|
<!-- Main: Canvas & Action Hub -->
|
|
438
|
-
<div class="playground-main" style="flex-grow: 1; display: flex; flex-direction: column; background: rgba(255,255,255,0.4);">
|
|
440
|
+
<div class="playground-main" style="flex-grow: 1; display: flex; flex-direction: column; background: var(--bg-tertiary, rgba(255,255,255,0.4));">
|
|
439
441
|
<!-- Canvas Toolbar -->
|
|
440
|
-
<div style="padding: 20px 32px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.9);">
|
|
442
|
+
<div style="padding: 20px 32px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; background: var(--bg-primary, rgba(255,255,255,0.9));">
|
|
441
443
|
<div style="display: flex; gap: 12px; align-items: center;">
|
|
442
|
-
<div style="display: flex; padding: 4px; background:
|
|
444
|
+
<div style="display: flex; padding: 4px; background:var(--bg-tertiary,#f1f5f9); border-radius: 8px; gap: 4px; align-items: center;">
|
|
443
445
|
<ui-button id="btnCanvasBgWhite" title="Light Cloud" style="--ui-button-bg: #fff; width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 6px; border: 1px solid rgba(0,0,0,0.05);"></ui-button>
|
|
444
446
|
<ui-button id="btnCanvasBgDark" title="Deep Slate" style="--ui-button-bg: #0f172a; width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 6px; border: none;"></ui-button>
|
|
445
447
|
<ui-button id="btnCanvasBgGrid" title="Blueprint Grid" icon="grid" variant="outlined" color="secondary" style="width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 6px; --ui-button-icon-size: 14px;"></ui-button>
|
|
446
448
|
</div>
|
|
447
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color:
|
|
449
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color:var(--text-secondary,#64748b); font-weight: 700; margin-left: 12px;">Visual Laboratory</span>
|
|
448
450
|
</div>
|
|
449
451
|
<div style="display: flex; gap: 8px;">
|
|
450
452
|
<div style="padding: 6px 12px; background: #e0f2fe; color: #0369a1; border-radius: 100px; font-size: 10px; font-weight: 700;">VERSION 2.0.4 - ZENITH</div>
|
|
@@ -457,27 +459,27 @@ export function initInputDemo() {
|
|
|
457
459
|
</div>
|
|
458
460
|
|
|
459
461
|
<!-- Action Hub: Markup & Instrumentation -->
|
|
460
|
-
<div style="height: 320px; border-top: 1px solid rgba(0,0,0,0.05); display: grid; grid-template-columns: 1fr 1fr; background: #fff;">
|
|
462
|
+
<div style="height: 320px; border-top: 1px solid rgba(0,0,0,0.05); display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-primary, #fff);">
|
|
461
463
|
<div style="padding: 24px; border-right: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column;">
|
|
462
464
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;">
|
|
463
|
-
<h5 style="margin: 0; font-size: 11px; color:
|
|
465
|
+
<h5 style="margin: 0; font-size: 11px; color:var(--text-secondary,#64748b); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;">⚡ Implementation Blueprint</h5>
|
|
464
466
|
<ui-button id="btnCopyMarkup" label="Grab Markup" size="xxs" variant="outlined" color="primary" icon="copy"></ui-button>
|
|
465
467
|
</div>
|
|
466
|
-
<div style="flex-grow: 1; background: #
|
|
468
|
+
<div style="flex-grow: 1; background: var(--bg-secondary, #f8fafc); border-radius: 16px; padding: 20px; border: 1px solid var(--border-default); position: relative; overflow: auto;">
|
|
467
469
|
<ui-code-preview id="markupDisplay" language="html" code="<ui-input></ui-input>"></ui-code-preview>
|
|
468
470
|
</div>
|
|
469
471
|
</div>
|
|
470
472
|
<div style="padding: 24px; display: flex; flex-direction: column;">
|
|
471
|
-
<h5 style="margin: 0 0 16px 0; font-size: 11px; color:
|
|
472
|
-
<div id="playgroundLog" style="flex-grow: 1; background:
|
|
473
|
+
<h5 style="margin: 0 0 16px 0; font-size: 11px; color:var(--text-secondary,#64748b); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;">📜 Atmospheric Telemetry</h5>
|
|
474
|
+
<div id="playgroundLog" style="flex-grow: 1; background:var(--bg-secondary,#f8fafc); border:1px solid var(--border-default,#eef2f6); border-radius: 16px; padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #475569; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;">
|
|
473
475
|
<div style="text-align: center; color: #cbd5e1; margin-top: 30px;">Instrumenting component events...</div>
|
|
474
476
|
</div>
|
|
475
477
|
</div>
|
|
476
478
|
</div>
|
|
477
479
|
|
|
478
480
|
<!-- Validation Strategy -->
|
|
479
|
-
<div class="master-card" style="background:
|
|
480
|
-
<h4 style="margin-top:0; color:
|
|
481
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); grid-column: 1 / -1;">
|
|
482
|
+
<h4 style="margin-top:0; color:var(--accent-yellow,#f59e0b);">🛡️ Validation Strategy</h4>
|
|
481
483
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Control when validation occurs: real-time or deferred after interaction.</p>
|
|
482
484
|
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;">
|
|
483
485
|
<ui-input
|
|
@@ -574,6 +576,7 @@ export function initInputDemo() {
|
|
|
574
576
|
'inpMaxLength',
|
|
575
577
|
'inpCounter',
|
|
576
578
|
'inpPattern',
|
|
579
|
+
'inpIconOnly',
|
|
577
580
|
];
|
|
578
581
|
|
|
579
582
|
allControls.forEach(id => {
|
|
@@ -646,6 +649,7 @@ export function initInputDemo() {
|
|
|
646
649
|
const maxLength = parseInt(getVal('inpMaxLength')) || undefined;
|
|
647
650
|
const counter = getChecked('inpCounter');
|
|
648
651
|
const pattern = getVal('inpPattern');
|
|
652
|
+
const iconOnly = getChecked('inpIconOnly');
|
|
649
653
|
|
|
650
654
|
const preview = document.getElementById('inpInteractivePreviewContent');
|
|
651
655
|
if (!preview) return;
|
|
@@ -655,8 +659,8 @@ export function initInputDemo() {
|
|
|
655
659
|
|
|
656
660
|
// Core Props
|
|
657
661
|
component.type = type;
|
|
658
|
-
component.label = label;
|
|
659
|
-
component.placeholder = placeholder;
|
|
662
|
+
component.label = iconOnly ? '' : label;
|
|
663
|
+
component.placeholder = iconOnly ? '' : placeholder;
|
|
660
664
|
component.value = value;
|
|
661
665
|
component.helperText = helperText;
|
|
662
666
|
component.variant = variant;
|
|
@@ -724,7 +728,7 @@ export function initInputDemo() {
|
|
|
724
728
|
// Update Markup Display
|
|
725
729
|
const markup = `<ui-input
|
|
726
730
|
type="${type}"
|
|
727
|
-
label="${label}"
|
|
731
|
+
${!iconOnly ? `label="${label}"` : ''}
|
|
728
732
|
variant="${variant}"
|
|
729
733
|
color="${color}"
|
|
730
734
|
size="${size}"
|
|
@@ -773,7 +777,7 @@ export function initInputDemo() {
|
|
|
773
777
|
entry.style.borderRadius = '4px';
|
|
774
778
|
entry.style.background = '#fff';
|
|
775
779
|
entry.style.border = '1px solid #eef2f6';
|
|
776
|
-
entry.innerHTML = `<span style="color: #10b981; font-weight: 700;">${type.toUpperCase()}</span>: <span style="color:
|
|
780
|
+
entry.innerHTML = `<span style="color: #10b981; font-weight: 700;">${type.toUpperCase()}</span>: <span style="color:var(--text-primary,#1e293b);">${JSON.stringify(detail) || 'N/A'}</span> <span style="float: right; opacity: 0.5;">${new Date().toLocaleTimeString()}</span>`;
|
|
777
781
|
log.appendChild(entry);
|
|
778
782
|
if (log.children.length > 20) log.removeChild(log.firstChild);
|
|
779
783
|
};
|
|
@@ -836,7 +840,7 @@ export function initInputDemo() {
|
|
|
836
840
|
<ui-input label="Suffix Icon" suffix-icon="search" placeholder="Search..."></ui-input>
|
|
837
841
|
|
|
838
842
|
<ui-input label="Custom Prefix Slot" placeholder="Using SVG inside slot">
|
|
839
|
-
<div slot="prefix-icon" style="color:
|
|
843
|
+
<div slot="prefix-icon" style="color:var(--accent-purple,#8b5cf6); display: flex; align-items: center; padding-right: 8px;">
|
|
840
844
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
|
|
841
845
|
</div>
|
|
842
846
|
</ui-input>
|
|
@@ -870,7 +874,7 @@ export function initInputDemo() {
|
|
|
870
874
|
<p style="margin-bottom: 24px; opacity: 0.8;">Trigger validation states, messages, and shake animations programmatically.</p>
|
|
871
875
|
|
|
872
876
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;">
|
|
873
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
877
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
874
878
|
<h4>Live Email Validation</h4>
|
|
875
879
|
<ui-input
|
|
876
880
|
id="dynamicEmailInput"
|
|
@@ -878,10 +882,10 @@ export function initInputDemo() {
|
|
|
878
882
|
placeholder="type something..."
|
|
879
883
|
prefix-icon="mail"
|
|
880
884
|
></ui-input>
|
|
881
|
-
<p style="font-size: 12px; color:
|
|
885
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-top: 12px;">State updates as you type (minimum 5 chars + @).</p>
|
|
882
886
|
</div>
|
|
883
887
|
|
|
884
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
888
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
885
889
|
<h4>Manual Trigger Controls</h4>
|
|
886
890
|
<ui-input
|
|
887
891
|
id="manualValInput"
|
|
@@ -954,24 +958,24 @@ export function initInputDemo() {
|
|
|
954
958
|
<p style="margin-bottom: 24px; opacity: 0.8;">The standard input component now supports premium range slider styling with dynamic track filling.</p>
|
|
955
959
|
|
|
956
960
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;">
|
|
957
|
-
<div class="demo-card-inner" style="padding: 20px; border:
|
|
961
|
+
<div class="demo-card-inner" style="padding: 20px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
958
962
|
<h4>Default Outlined</h4>
|
|
959
963
|
<ui-input type="range" label="Volume Control" min="0" max="100" value="65"></ui-input>
|
|
960
|
-
<pre style="background:
|
|
964
|
+
<pre style="background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 8px; font-size: 11px; margin-top: 16px;"><code><ui-input type="range" label="..."/></code></pre>
|
|
961
965
|
</div>
|
|
962
966
|
|
|
963
|
-
<div class="demo-card-inner" style="padding: 20px; border:
|
|
967
|
+
<div class="demo-card-inner" style="padding: 20px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
964
968
|
<h4>Soft Variant (Green Theme)</h4>
|
|
965
969
|
<ui-input type="range" label="Brightness" variant="outline" min="0" max="100" value="40" prefix-icon="sun"></ui-input>
|
|
966
|
-
<pre style="background:
|
|
970
|
+
<pre style="background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 8px; font-size: 11px; margin-top: 16px;"><code><ui-input type="range" variant="outline"/></code></pre>
|
|
967
971
|
</div>
|
|
968
972
|
|
|
969
|
-
<div class="demo-card-inner" style="padding: 20px; border:
|
|
973
|
+
<div class="demo-card-inner" style="padding: 20px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
970
974
|
<h4>Large Sizing</h4>
|
|
971
975
|
<ui-input type="range" label="Opacity" size="xl" min="0" max="1" step="0.01" value="0.85"></ui-input>
|
|
972
976
|
</div>
|
|
973
977
|
|
|
974
|
-
<div class="demo-card-inner" style="padding: 20px; border:
|
|
978
|
+
<div class="demo-card-inner" style="padding: 20px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
975
979
|
<h4>Validation & Disabled</h4>
|
|
976
980
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
977
981
|
<ui-input type="range" label="Required Level" validation-state="error" error-text="Level too low" value="10"></ui-input>
|
|
@@ -991,13 +995,13 @@ export function initInputDemo() {
|
|
|
991
995
|
<p style="margin-bottom: 24px; opacity: 0.8;">The color input features a live swatch preview and supports direct hex value editing.</p>
|
|
992
996
|
|
|
993
997
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;">
|
|
994
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
998
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
995
999
|
<h4>Theme Color</h4>
|
|
996
1000
|
<ui-input type="color" label="Primary Color" value="#3DCD58"></ui-input>
|
|
997
|
-
<p style="font-size: 12px; color:
|
|
1001
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-top: 12px;">Click the swatch to open picker or type directly. Invalid hex codes trigger an error state automatically.</p>
|
|
998
1002
|
</div>
|
|
999
1003
|
|
|
1000
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1004
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1001
1005
|
<h4>Variants & Sizes</h4>
|
|
1002
1006
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1003
1007
|
<ui-input type="color" label="Background" variant="outline" value="#f1f5f9"></ui-input>
|
|
@@ -1017,17 +1021,17 @@ export function initInputDemo() {
|
|
|
1017
1021
|
<p style="margin-bottom: 24px; opacity: 0.8;">Premium file upload experience with a custom 'Browse' button and selected filename display.</p>
|
|
1018
1022
|
|
|
1019
1023
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;">
|
|
1020
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1024
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1021
1025
|
<h4>Single File</h4>
|
|
1022
1026
|
<ui-input type="file" label="Profile Picture" placeholder="Choose an image..." accept="image/*"></ui-input>
|
|
1023
1027
|
</div>
|
|
1024
1028
|
|
|
1025
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1029
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1026
1030
|
<h4>Multiple Files</h4>
|
|
1027
1031
|
<ui-input type="file" label="Documents" multiple="true" placeholder="Upload multiple files..."></ui-input>
|
|
1028
1032
|
</div>
|
|
1029
1033
|
|
|
1030
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1034
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1031
1035
|
<h4>With Icons & Variants</h4>
|
|
1032
1036
|
<ui-input type="file" label="Project Files" variant="filled" prefix-icon="file-text"></ui-input>
|
|
1033
1037
|
</div>
|
|
@@ -1049,45 +1053,45 @@ export function initInputDemo() {
|
|
|
1049
1053
|
|
|
1050
1054
|
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;">
|
|
1051
1055
|
<!-- Phone Mask -->
|
|
1052
|
-
<div style="background:
|
|
1056
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 24px; border: 1px solid #fee2e2; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.05); display: flex; flex-direction: column;">
|
|
1053
1057
|
<div style="display: flex; align-items: center; gap: 16px; margin-bottom: 24px;">
|
|
1054
1058
|
<div style="width: 44px; height: 44px; background: #fff1f2; border-radius: 14px; color: #f43f5e; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 4px rgba(244, 63, 94, 0.1);">
|
|
1055
1059
|
<ui-icon library="lucide" name="phone" style="font-size: 20px;"></ui-icon>
|
|
1056
1060
|
</div>
|
|
1057
|
-
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:
|
|
1061
|
+
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:var(--text-primary,#1e293b);">Contact Information</h4>
|
|
1058
1062
|
</div>
|
|
1059
1063
|
<ui-input label="Cellular Phone" mask="phone" prefix-icon="phone" helper-text="Auto-formatting as you type" full-width="true"></ui-input>
|
|
1060
1064
|
</div>
|
|
1061
1065
|
|
|
1062
1066
|
<!-- Credit Card Mask -->
|
|
1063
|
-
<div style="background:
|
|
1067
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 24px; border: 1px solid #fee2e2; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.05); display: flex; flex-direction: column;">
|
|
1064
1068
|
<div style="display: flex; align-items: center; gap: 16px; margin-bottom: 24px;">
|
|
1065
1069
|
<div style="width: 44px; height: 44px; background: #fff1f2; border-radius: 14px; color: #f43f5e; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 4px rgba(244, 63, 94, 0.1);">
|
|
1066
1070
|
<ui-icon library="lucide" name="credit-card" style="font-size: 20px;"></ui-icon>
|
|
1067
1071
|
</div>
|
|
1068
|
-
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:
|
|
1072
|
+
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:var(--text-primary,#1e293b);">Secure Payment</h4>
|
|
1069
1073
|
</div>
|
|
1070
1074
|
<ui-input label="Card Number" mask="credit-card" prefix-icon="credit-card" placeholder="XXXX XXXX XXXX XXXX" full-width="true"></ui-input>
|
|
1071
1075
|
</div>
|
|
1072
1076
|
|
|
1073
1077
|
<!-- Currency Mask -->
|
|
1074
|
-
<div style="background:
|
|
1078
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 24px; border: 1px solid #fee2e2; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.05); display: flex; flex-direction: column;">
|
|
1075
1079
|
<div style="display: flex; align-items: center; gap: 16px; margin-bottom: 24px;">
|
|
1076
1080
|
<div style="width: 44px; height: 44px; background: #fff1f2; border-radius: 14px; color: #f43f5e; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 4px rgba(244, 63, 94, 0.1);">
|
|
1077
1081
|
<ui-icon library="lucide" name="banknote" style="font-size: 20px;"></ui-icon>
|
|
1078
1082
|
</div>
|
|
1079
|
-
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:
|
|
1083
|
+
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:var(--text-primary,#1e293b);">Transactional</h4>
|
|
1080
1084
|
</div>
|
|
1081
1085
|
<ui-input label="Funding Amount" mask="currency" prefix-icon="dollar-sign" full-width="true"></ui-input>
|
|
1082
1086
|
</div>
|
|
1083
1087
|
|
|
1084
1088
|
<!-- Date & Security -->
|
|
1085
|
-
<div style="background:
|
|
1089
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 24px; border: 1px solid #fee2e2; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.05); display: flex; flex-direction: column; grid-column: span 2;">
|
|
1086
1090
|
<div style="display: flex; align-items: center; gap: 16px; margin-bottom: 24px;">
|
|
1087
1091
|
<div style="width: 44px; height: 44px; background: #fff1f2; border-radius: 14px; color: #f43f5e; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 2px 4px rgba(244, 63, 94, 0.1);">
|
|
1088
1092
|
<ui-icon library="lucide" name="shield-check" style="font-size: 20px;"></ui-icon>
|
|
1089
1093
|
</div>
|
|
1090
|
-
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:
|
|
1094
|
+
<h4 style="margin: 0; font-size: 1.25rem; font-weight: 700; color:var(--text-primary,#1e293b);">Security & Date Modules</h4>
|
|
1091
1095
|
</div>
|
|
1092
1096
|
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;">
|
|
1093
1097
|
<ui-input label="Birth Date" mask="date" prefix-icon="calendar" full-width="true"></ui-input>
|
|
@@ -1096,10 +1100,10 @@ export function initInputDemo() {
|
|
|
1096
1100
|
</div>
|
|
1097
1101
|
|
|
1098
1102
|
<!-- SSN & Status -->
|
|
1099
|
-
<div style="background:
|
|
1103
|
+
<div style="background:var(--bg-primary,white); padding: 32px; border-radius: 24px; border: 1px solid #fee2e2; box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.05); display: flex; flex-direction: column;">
|
|
1100
1104
|
<div style="display: flex; align-items: center; gap: 16px; margin-bottom: 16px;">
|
|
1101
1105
|
<ui-icon library="lucide" name="fingerprint" style="color: #f43f5e;"></ui-icon>
|
|
1102
|
-
<h4 style="margin: 0; font-size: 1.1rem; color:
|
|
1106
|
+
<h4 style="margin: 0; font-size: 1.1rem; color:var(--text-primary,#1e293b);">Compliance</h4>
|
|
1103
1107
|
</div>
|
|
1104
1108
|
<ui-input label="Social Security" mask="ssn" type="password" show-password-toggle="true" full-width="true"></ui-input>
|
|
1105
1109
|
<div style="margin-top: 16px;">
|
|
@@ -1108,23 +1112,23 @@ export function initInputDemo() {
|
|
|
1108
1112
|
</div>
|
|
1109
1113
|
</div>
|
|
1110
1114
|
|
|
1111
|
-
<div style="margin-top: 64px; padding: 48px; background:
|
|
1115
|
+
<div style="margin-top: 64px; padding: 48px; background: var(--bg-secondary, #fff1f2); border-radius: 32px; border: 1px solid var(--border-default, #fee2e2); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.05);">
|
|
1112
1116
|
<h4 style="margin-top: 0; margin-bottom: 32px; color: #e11d48; display: flex; align-items: center; gap: 12px; font-size: 1.5rem;">
|
|
1113
|
-
<ui-icon library="lucide" name="zap" style="color:
|
|
1117
|
+
<ui-icon library="lucide" name="zap" style="color:var(--accent-yellow,#f59e0b);"></ui-icon>
|
|
1114
1118
|
Advanced Architectural Logic
|
|
1115
1119
|
</h4>
|
|
1116
1120
|
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;">
|
|
1117
1121
|
<div>
|
|
1118
|
-
<strong style="color:
|
|
1119
|
-
<span style="font-size: 15px; color:
|
|
1122
|
+
<strong style="color:var(--text-primary,#1e293b); display: block; margin-bottom: 12px; font-size: 1.1rem;">Dynamic Hinting</strong>
|
|
1123
|
+
<span style="font-size: 15px; color:var(--text-secondary,#64748b); line-height: 1.6;">The component automatically injects context-aware placeholders (e.g. XXX-XXX-XXXX) if no custom label is provided.</span>
|
|
1120
1124
|
</div>
|
|
1121
1125
|
<div>
|
|
1122
|
-
<strong style="color:
|
|
1123
|
-
<span style="font-size: 15px; color:
|
|
1126
|
+
<strong style="color:var(--text-primary,#1e293b); display: block; margin-bottom: 12px; font-size: 1.1rem;">Self-Healing Separators</strong>
|
|
1127
|
+
<span style="font-size: 15px; color:var(--text-secondary,#64748b); line-height: 1.6;">Intelligent separator injection ("-", "/", "$") happens in real-time without disrupting the user's cursor position.</span>
|
|
1124
1128
|
</div>
|
|
1125
1129
|
<div>
|
|
1126
|
-
<strong style="color:
|
|
1127
|
-
<span style="font-size: 15px; color:
|
|
1130
|
+
<strong style="color:var(--text-primary,#1e293b); display: block; margin-bottom: 12px; font-size: 1.1rem;">Financial Precision</strong>
|
|
1131
|
+
<span style="font-size: 15px; color:var(--text-secondary,#64748b); line-height: 1.6;">Currency masking utilizes the browser's native <code>Intl</code> API for bulletproof localization and grouping.</span>
|
|
1128
1132
|
</div>
|
|
1129
1133
|
</div>
|
|
1130
1134
|
</div>
|
|
@@ -1140,22 +1144,22 @@ export function initInputDemo() {
|
|
|
1140
1144
|
<p style="margin-bottom: 24px; opacity: 0.8;">The <code>type="currency"</code> property automatically handles prefix symbols and financial masking.</p>
|
|
1141
1145
|
|
|
1142
1146
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;">
|
|
1143
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1147
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1144
1148
|
<h4>US Dollar (Default)</h4>
|
|
1145
1149
|
<ui-input type="currency" label="Unit Price" value="4500"></ui-input>
|
|
1146
1150
|
</div>
|
|
1147
1151
|
|
|
1148
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1152
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1149
1153
|
<h4>Euro (EUR)</h4>
|
|
1150
1154
|
<ui-input type="currency" currency="EUR" label="EU Subtotal" variant="outlined" value="12550"></ui-input>
|
|
1151
1155
|
</div>
|
|
1152
1156
|
|
|
1153
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1157
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1154
1158
|
<h4>British Pound (GBP)</h4>
|
|
1155
1159
|
<ui-input type="currency" currency="GBP" label="London Branch" variant="outline" value="380.50"></ui-input>
|
|
1156
1160
|
</div>
|
|
1157
1161
|
|
|
1158
|
-
<div class="demo-card-inner" style="padding: 24px; border:
|
|
1162
|
+
<div class="demo-card-inner" style="padding: 24px; border:1px solid var(--border-default,#eef2f6); border-radius: 12px; background:var(--bg-primary,white);">
|
|
1159
1163
|
<h4>Japanese Yen (JPY)</h4>
|
|
1160
1164
|
<ui-input type="currency" currency="JPY" label="Tokyo Branch" variant="filled" value="1500000"></ui-input>
|
|
1161
1165
|
</div>
|
|
@@ -1167,14 +1171,14 @@ export function initInputDemo() {
|
|
|
1167
1171
|
function showMasterTierFeatures() {
|
|
1168
1172
|
const container = document.getElementById('inputDemoContainer');
|
|
1169
1173
|
container.innerHTML = `
|
|
1170
|
-
<div class="demo-block master-tier-block" style="background:
|
|
1174
|
+
<div class="demo-block master-tier-block" style="background: var(--bg-secondary, #f1f5f9); padding: 32px; border-radius: 24px;">
|
|
1171
1175
|
<h2 style="font-size: 2.2rem; margin-bottom: 8px; background: linear-gradient(135deg, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">🌟 Master Tier Showcase</h2>
|
|
1172
1176
|
<p style="opacity: 0.7; font-size: 1.1rem; margin-bottom: 40px;">Experience the next generation of cinematic input controls with advanced functional modules.</p>
|
|
1173
1177
|
|
|
1174
1178
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;">
|
|
1175
1179
|
<!-- OTP & Security -->
|
|
1176
|
-
<div class="master-card" style="background:
|
|
1177
|
-
<h4 style="margin-top:0; color:
|
|
1180
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);">
|
|
1181
|
+
<h4 style="margin-top:0; color:var(--accent-purple,#8b5cf6);">🔐 Security Modules</h4>
|
|
1178
1182
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Segmented verification fields with elite focus transitions.</p>
|
|
1179
1183
|
<ui-input type="otp" otp-length="6" label="Verification Code" helper-text="Check your email for the 6-digit code"></ui-input>
|
|
1180
1184
|
<div style="margin-top: 24px;">
|
|
@@ -1183,7 +1187,7 @@ export function initInputDemo() {
|
|
|
1183
1187
|
</div>
|
|
1184
1188
|
|
|
1185
1189
|
<!-- Voice & Status -->
|
|
1186
|
-
<div class="master-card" style="background:
|
|
1190
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);">
|
|
1187
1191
|
<h4 style="margin-top:0; color: #10b981;">🎙️ Smart Context</h4>
|
|
1188
1192
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Integrated AI dictation and real-time connectivity status.</p>
|
|
1189
1193
|
<ui-input
|
|
@@ -1192,7 +1196,7 @@ export function initInputDemo() {
|
|
|
1192
1196
|
voice-enabled="true"
|
|
1193
1197
|
placeholder="Click the mic to speak..."
|
|
1194
1198
|
></ui-input>
|
|
1195
|
-
<p style="font-size: 11px; color:
|
|
1199
|
+
<p style="font-size: 11px; color:var(--text-secondary,#64748b); margin-top: 8px; margin-bottom: 0;">
|
|
1196
1200
|
🎙️ Click the mic → icon switches to <b>mic-off</b> while listening. Click again to stop.
|
|
1197
1201
|
</p>
|
|
1198
1202
|
<div style="margin-top: 24px;">
|
|
@@ -1205,8 +1209,8 @@ export function initInputDemo() {
|
|
|
1205
1209
|
</div>
|
|
1206
1210
|
|
|
1207
1211
|
<!-- Atmospheric Shaders -->
|
|
1208
|
-
<div class="master-card" style="background:
|
|
1209
|
-
<h4 style="margin-top:0; color:
|
|
1212
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);">
|
|
1213
|
+
<h4 style="margin-top:0; color:var(--accent-pink,#ec4899);">🌈 Atmospheric Shaders</h4>
|
|
1210
1214
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Advanced CSS shaders for elite design systems.</p>
|
|
1211
1215
|
<ui-input
|
|
1212
1216
|
label="Gradient Horizon"
|
|
@@ -1225,8 +1229,8 @@ export function initInputDemo() {
|
|
|
1225
1229
|
</div>
|
|
1226
1230
|
|
|
1227
1231
|
<!-- Feedback & Velocity -->
|
|
1228
|
-
<div class="master-card" style="background:
|
|
1229
|
-
<h4 style="margin-top:0; color:
|
|
1232
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);">
|
|
1233
|
+
<h4 style="margin-top:0; color:var(--accent-yellow,#f59e0b);">⚡ Velocity Feedback</h4>
|
|
1230
1234
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Low-friction progress indicators and unsaved change detection.</p>
|
|
1231
1235
|
<ui-input
|
|
1232
1236
|
label="Content Velocity"
|
|
@@ -1247,7 +1251,7 @@ export function initInputDemo() {
|
|
|
1247
1251
|
</div>
|
|
1248
1252
|
|
|
1249
1253
|
<!-- AI Integration (Elite) -->
|
|
1250
|
-
<div class="master-card" style="background:
|
|
1254
|
+
<div class="master-card" style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); grid-column: 1 / -1;">
|
|
1251
1255
|
<h4 style="margin-top:0; color: #10b981;">🧠 AI Integration (Ghost Text)</h4>
|
|
1252
1256
|
<p style="font-size: 14px; opacity: 0.7; margin-bottom: 24px;">Experience 'God-tier' predictive typing with cinematic ghost text overlays.</p>
|
|
1253
1257
|
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px;">
|
|
@@ -1281,7 +1285,7 @@ export function initInputDemo() {
|
|
|
1281
1285
|
<p style="margin-bottom: 24px; opacity: 0.8;">Seamlessly connect multiple inputs for range selection or multi-part data entry.</p>
|
|
1282
1286
|
|
|
1283
1287
|
<div style="display: flex; flex-direction: column; gap: 40px;">
|
|
1284
|
-
<div class="demo-card-inner" style="padding: 24px; background:
|
|
1288
|
+
<div class="demo-card-inner" style="padding: 24px; background:var(--bg-secondary,#f8fafc); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); max-width: 600px;">
|
|
1285
1289
|
<h4 style="margin-top:0;">Price Filter (Connected)</h4>
|
|
1286
1290
|
<ui-input-pair
|
|
1287
1291
|
type="currency"
|
|
@@ -1294,7 +1298,7 @@ export function initInputDemo() {
|
|
|
1294
1298
|
></ui-input-pair>
|
|
1295
1299
|
</div>
|
|
1296
1300
|
|
|
1297
|
-
<div class="demo-card-inner" style="padding: 24px; background:
|
|
1301
|
+
<div class="demo-card-inner" style="padding: 24px; background:var(--bg-primary,white); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); max-width: 600px;">
|
|
1298
1302
|
<h4 style="margin-top:0;">Profile Info (With Gap)</h4>
|
|
1299
1303
|
<ui-input-pair
|
|
1300
1304
|
label-left="First Name"
|
|
@@ -1306,7 +1310,7 @@ export function initInputDemo() {
|
|
|
1306
1310
|
></ui-input-pair>
|
|
1307
1311
|
</div>
|
|
1308
1312
|
|
|
1309
|
-
<div class="demo-card-inner" style="padding: 24px; background:
|
|
1313
|
+
<div class="demo-card-inner" style="padding: 24px; background:var(--bg-primary,white); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); max-width: 600px;">
|
|
1310
1314
|
<h4 style="margin-top:0;">Shared Type (Number Range)</h4>
|
|
1311
1315
|
<ui-input-pair
|
|
1312
1316
|
type="number"
|
|
@@ -1333,7 +1337,7 @@ export function initInputDemo() {
|
|
|
1333
1337
|
|
|
1334
1338
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;">
|
|
1335
1339
|
<!-- Security Case -->
|
|
1336
|
-
<div style="background:
|
|
1340
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1337
1341
|
<h4 style="margin-top: 0; color: #10b981; margin-bottom: 20px;">🔒 Security & Verification</h4>
|
|
1338
1342
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1339
1343
|
<ui-input label="SECURE DOMAIN" prefix-text="https://" prefix-color="success" placeholder="example.com"></ui-input>
|
|
@@ -1342,7 +1346,7 @@ export function initInputDemo() {
|
|
|
1342
1346
|
</div>
|
|
1343
1347
|
|
|
1344
1348
|
<!-- Action Case -->
|
|
1345
|
-
<div style="background:
|
|
1349
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1346
1350
|
<h4 style="margin-top: 0; color: #10b981; margin-bottom: 20px;">🚀 Contextual Actions</h4>
|
|
1347
1351
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1348
1352
|
<ui-input label="GLOBAL SEARCH" suffix-icon="search" suffix-color="primary" suffix-clickable="true" placeholder="Search entire cloud..."></ui-input>
|
|
@@ -1351,8 +1355,8 @@ export function initInputDemo() {
|
|
|
1351
1355
|
</div>
|
|
1352
1356
|
|
|
1353
1357
|
<!-- Utility Case -->
|
|
1354
|
-
<div style="background:
|
|
1355
|
-
<h4 style="margin-top: 0; color:
|
|
1358
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1359
|
+
<h4 style="margin-top: 0; color:var(--text-secondary,#64748b); margin-bottom: 20px;">🛠️ Engineering Utility</h4>
|
|
1356
1360
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1357
1361
|
<ui-input label="SUBDOMAIN" suffix-text=".dream.io" suffix-color="secondary" placeholder="myspace"></ui-input>
|
|
1358
1362
|
<ui-input label="CURRENCY" prefix-text="USD" prefix-color="info" type="number" placeholder="0.00"></ui-input>
|
|
@@ -1360,8 +1364,8 @@ export function initInputDemo() {
|
|
|
1360
1364
|
</div>
|
|
1361
1365
|
|
|
1362
1366
|
<!-- Status Case -->
|
|
1363
|
-
<div style="background:
|
|
1364
|
-
<h4 style="margin-top: 0; color:
|
|
1367
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1368
|
+
<h4 style="margin-top: 0; color:var(--accent-yellow,#f59e0b); margin-bottom: 20px;">⚠️ Notification Cues</h4>
|
|
1365
1369
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1366
1370
|
<ui-input label="CRITICAL FIELD" suffix-icon="alert-triangle" suffix-color="danger" placeholder="Required for compliance"></ui-input>
|
|
1367
1371
|
<ui-input label="HINTED FIELD" prefix-icon="info" prefix-color="warning" placeholder="Check tooltip first"></ui-input>
|
|
@@ -1396,10 +1400,10 @@ export function initInputDemo() {
|
|
|
1396
1400
|
${colors
|
|
1397
1401
|
.map(
|
|
1398
1402
|
color => `
|
|
1399
|
-
<div style="background:
|
|
1403
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1400
1404
|
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 20px;">
|
|
1401
1405
|
<div style="width: 10px; height: 10px; background: var(--ui-input-focus); border-radius: 50%; opacity: 0.8; box-shadow: 0 0 10px var(--ui-input-focus);"></div>
|
|
1402
|
-
<h4 style="margin: 0; color:
|
|
1406
|
+
<h4 style="margin: 0; color:var(--text-primary,#1e293b);">${color.label}</h4>
|
|
1403
1407
|
</div>
|
|
1404
1408
|
|
|
1405
1409
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
@@ -1441,23 +1445,23 @@ export function initInputDemo() {
|
|
|
1441
1445
|
<div style="margin-bottom: 48px;">
|
|
1442
1446
|
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-left: 4px solid #f59e0b; padding-left: 16px;">
|
|
1443
1447
|
<ui-icon library="lucide" name="sliders" style="opacity: 0.6; height: 18px;"></ui-icon>
|
|
1444
|
-
<h4 style="margin: 0; color:
|
|
1448
|
+
<h4 style="margin: 0; color:var(--text-primary,#1e293b); font-size: 1.1rem;">Custom Granular Widths</h4>
|
|
1445
1449
|
</div>
|
|
1446
|
-
<div style="display: flex; gap: 24px; background: rgba(248, 250, 252, 0.5); padding: 24px; border-radius: 16px; border:
|
|
1450
|
+
<div style="display: flex; gap: 24px; background: rgba(248, 250, 252, 0.5); padding: 24px; border-radius: 16px; border:1px solid var(--border-default,#e2e8f0); flex-wrap: wrap;">
|
|
1447
1451
|
<div>
|
|
1448
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:
|
|
1452
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:var(--text-secondary,#64748b); display: block; margin-bottom: 8px;">Tiny (Width: 60px)</span>
|
|
1449
1453
|
<ui-input type="number" size="md" width="60px" placeholder="Age"></ui-input>
|
|
1450
1454
|
</div>
|
|
1451
1455
|
<div>
|
|
1452
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:
|
|
1456
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:var(--text-secondary,#64748b); display: block; margin-bottom: 8px;">Small (Width: 100px)</span>
|
|
1453
1457
|
<ui-input size="md" width="100px" placeholder="CVV"></ui-input>
|
|
1454
1458
|
</div>
|
|
1455
1459
|
<div>
|
|
1456
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:
|
|
1460
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:var(--text-secondary,#64748b); display: block; margin-bottom: 8px;">Medium (Width: 250px)</span>
|
|
1457
1461
|
<ui-input width="250px" placeholder="First Name" size="md"></ui-input>
|
|
1458
1462
|
</div>
|
|
1459
1463
|
<div style="flex-grow: 1;">
|
|
1460
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:
|
|
1464
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:var(--text-secondary,#64748b); display: block; margin-bottom: 8px;">Full Width (flex-grow: 1)</span>
|
|
1461
1465
|
<ui-input full-width="true" placeholder="Street Address" size="md"></ui-input>
|
|
1462
1466
|
</div>
|
|
1463
1467
|
</div>
|
|
@@ -1470,15 +1474,15 @@ export function initInputDemo() {
|
|
|
1470
1474
|
<div>
|
|
1471
1475
|
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-left: 4px solid #10b981; padding-left: 16px;">
|
|
1472
1476
|
<ui-icon library="lucide" name="${size.icon}" style="opacity: 0.6; height: 18px;"></ui-icon>
|
|
1473
|
-
<h4 style="margin: 0; color:
|
|
1477
|
+
<h4 style="margin: 0; color:var(--text-primary,#1e293b); font-size: 1.1rem;">${size.label}</h4>
|
|
1474
1478
|
</div>
|
|
1475
1479
|
|
|
1476
|
-
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; background: rgba(248, 250, 252, 0.5); padding: 24px; border-radius: 16px; border:
|
|
1480
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; background: rgba(248, 250, 252, 0.5); padding: 24px; border-radius: 16px; border:1px solid var(--border-default,#e2e8f0);">
|
|
1477
1481
|
${colors
|
|
1478
1482
|
.map(
|
|
1479
1483
|
color => `
|
|
1480
1484
|
<div>
|
|
1481
|
-
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:
|
|
1485
|
+
<span style="font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color:var(--text-secondary,#64748b); display: block; margin-bottom: 8px;">${color}</span>
|
|
1482
1486
|
<ui-input size="${size.id}" color="${color}" placeholder="${color} state" prefix-icon="feather"></ui-input>
|
|
1483
1487
|
</div>
|
|
1484
1488
|
`,
|
|
@@ -1491,12 +1495,12 @@ export function initInputDemo() {
|
|
|
1491
1495
|
.join('')}
|
|
1492
1496
|
</div>
|
|
1493
1497
|
|
|
1494
|
-
<div style="margin-top: 48px; background:
|
|
1495
|
-
<h4 style="color:
|
|
1498
|
+
<div style="margin-top: 48px; background:var(--accent-yellow-soft,#fffbeb); border: 1px solid #fde68a; border-radius: 16px; padding: 24px;">
|
|
1499
|
+
<h4 style="color:var(--accent-yellow,#92400e); display: flex; align-items: center; gap: 8px; margin-top: 0;">
|
|
1496
1500
|
<ui-icon library="lucide" name="info" style="height: 16px;"></ui-icon>
|
|
1497
1501
|
Managed Height Logic
|
|
1498
1502
|
</h4>
|
|
1499
|
-
<p style="font-size: 14px; color:
|
|
1503
|
+
<p style="font-size: 14px; color:var(--accent-yellow,#b45309); margin-bottom: 0;">
|
|
1500
1504
|
Each <code>size</code> variant explicitly manages the <code>min-height</code> of the input container (32px, 38px, 42px, 48px, 54px) to ensure horizontal alignment regardless of whether prefix icons or suffix adornments are used.
|
|
1501
1505
|
</p>
|
|
1502
1506
|
</div>
|
|
@@ -1509,11 +1513,11 @@ export function initInputDemo() {
|
|
|
1509
1513
|
container.innerHTML = `
|
|
1510
1514
|
<div class="demo-block animate-in">
|
|
1511
1515
|
<div style="text-align: center; margin-bottom: 40px;">
|
|
1512
|
-
<h2 style="font-size: 2.2rem; color:
|
|
1516
|
+
<h2 style="font-size: 2.2rem; color:var(--text-primary,#1e293b); font-weight: 800; margin-bottom: 8px;">Basic Input Types</h2>
|
|
1513
1517
|
<p style="font-size: 1.1rem; opacity: 0.7; margin-bottom: 0;">Standard input types with various configurations</p>
|
|
1514
1518
|
</div>
|
|
1515
1519
|
|
|
1516
|
-
<div style="background:
|
|
1520
|
+
<div style="background:var(--accent-green-soft,#f0fdf4); border-radius: 16px; padding: 32px; border: 1px solid #dcfce7; box-shadow: 0 4px 20px rgba(0,0,0,0.03);">
|
|
1517
1521
|
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 48px;">
|
|
1518
1522
|
<ui-input label="USERNAME" placeholder="Enter your username" full-width="true" size="md"></ui-input>
|
|
1519
1523
|
<ui-input label="EMAIL ADDRESS" placeholder="user@example.com" type="email" full-width="true" size="md"></ui-input>
|
|
@@ -1538,16 +1542,16 @@ export function initInputDemo() {
|
|
|
1538
1542
|
</div>
|
|
1539
1543
|
|
|
1540
1544
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;">
|
|
1541
|
-
<div style="background:
|
|
1542
|
-
<h4 style="margin-top: 0; color:
|
|
1545
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1546
|
+
<h4 style="margin-top: 0; color:var(--accent-pink,#ec4899); margin-bottom: 20px;">Pink Branding (#EC4899)</h4>
|
|
1543
1547
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1544
1548
|
<ui-input color="#ec4899" label="Brand Identity" prefix-icon="heart" variant="outlined"></ui-input>
|
|
1545
1549
|
<ui-input color="#ec4899" label="Subscription" prefix-icon="star" variant="outline" value="Premium Plan"></ui-input>
|
|
1546
1550
|
</div>
|
|
1547
1551
|
</div>
|
|
1548
1552
|
|
|
1549
|
-
<div style="background:
|
|
1550
|
-
<h4 style="margin-top: 0; color:
|
|
1553
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1554
|
+
<h4 style="margin-top: 0; color:var(--accent-purple,#8b5cf6); margin-bottom: 20px;">Purple Branding (#8B5CF6)</h4>
|
|
1551
1555
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
1552
1556
|
<ui-input color="#8b5cf6" label="Creative Studio" prefix-icon="image" variant="outlined"></ui-input>
|
|
1553
1557
|
<ui-input color="#8b5cf6" label="Artist Tag" prefix-icon="user" variant="outline" value="@designer"></ui-input>
|
|
@@ -1579,8 +1583,8 @@ export function initInputDemo() {
|
|
|
1579
1583
|
|
|
1580
1584
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;">
|
|
1581
1585
|
<!-- Standard TextArea -->
|
|
1582
|
-
<div style="background:
|
|
1583
|
-
<h4 style="margin-top: 0; color:
|
|
1586
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1587
|
+
<h4 style="margin-top: 0; color:var(--text-primary,#1e293b); margin-bottom: 20px;">Manual Resize (Both Axis)</h4>
|
|
1584
1588
|
<ui-input
|
|
1585
1589
|
multiline="true"
|
|
1586
1590
|
resize="both"
|
|
@@ -1593,8 +1597,8 @@ export function initInputDemo() {
|
|
|
1593
1597
|
</div>
|
|
1594
1598
|
|
|
1595
1599
|
<!-- Auto-Resize TextArea -->
|
|
1596
|
-
<div style="background:
|
|
1597
|
-
<h4 style="margin-top: 0; color:
|
|
1600
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1601
|
+
<h4 style="margin-top: 0; color:var(--accent-purple,#8b5cf6); margin-bottom: 20px;">Dynamic Auto-Resize</h4>
|
|
1598
1602
|
<ui-input
|
|
1599
1603
|
multiline="true"
|
|
1600
1604
|
auto-resize="true"
|
|
@@ -1608,7 +1612,7 @@ export function initInputDemo() {
|
|
|
1608
1612
|
</div>
|
|
1609
1613
|
|
|
1610
1614
|
<!-- Branded Multiline -->
|
|
1611
|
-
<div style="background:
|
|
1615
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0);">
|
|
1612
1616
|
<h4 style="margin-top: 0; color: #0d9488; margin-bottom: 20px;">Branded & Constrained</h4>
|
|
1613
1617
|
<ui-input
|
|
1614
1618
|
multiline="true"
|
|
@@ -1640,8 +1644,8 @@ export function initInputDemo() {
|
|
|
1640
1644
|
|
|
1641
1645
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px;">
|
|
1642
1646
|
<!-- Density Showcase -->
|
|
1643
|
-
<div style="background:
|
|
1644
|
-
<h4 style="margin-top: 0; color:
|
|
1647
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1648
|
+
<h4 style="margin-top: 0; color:var(--text-primary,#1e293b); margin-bottom: 20px;">📦 Visual Density & Dividers</h4>
|
|
1645
1649
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
1646
1650
|
<ui-input density="standard" label="Standard (Default)" prefix-icon="zap" show-dividers="true"></ui-input>
|
|
1647
1651
|
<ui-input density="cozy" label="Cozy (Relaxed)" prefix-icon="box" show-dividers="true" color="#10b981"></ui-input>
|
|
@@ -1650,26 +1654,26 @@ export function initInputDemo() {
|
|
|
1650
1654
|
</div>
|
|
1651
1655
|
|
|
1652
1656
|
<!-- Rich Suggestions -->
|
|
1653
|
-
<div style="background:
|
|
1654
|
-
<h4 style="margin-top: 0; color:
|
|
1657
|
+
<div style="background:var(--bg-primary,white); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 12px rgba(0,0,0,0.03);">
|
|
1658
|
+
<h4 style="margin-top: 0; color:var(--accent-purple,#7c3aed); margin-bottom: 20px;">🔍 Rich Autocomplete</h4>
|
|
1655
1659
|
<ui-input
|
|
1656
1660
|
label="Search Users"
|
|
1657
1661
|
placeholder="Type '@' or name..."
|
|
1658
1662
|
id="zenithAutocomplete"
|
|
1659
1663
|
prefix-icon="user"
|
|
1660
1664
|
></ui-input>
|
|
1661
|
-
<p style="font-size: 12px; color:
|
|
1665
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-top: 12px;">Rich metadata suggestions with avatars/icons and subtitles.</p>
|
|
1662
1666
|
</div>
|
|
1663
1667
|
|
|
1664
1668
|
<!-- Input Stitching/Grouping -->
|
|
1665
|
-
<div style="background:
|
|
1666
|
-
<h4 style="margin-top: 0; color:
|
|
1669
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 24px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0);">
|
|
1670
|
+
<h4 style="margin-top: 0; color:var(--accent-pink,#db2777); margin-bottom: 20px;">🧩 Group Stitching (Pseudo-Group)</h4>
|
|
1667
1671
|
<div style="display: flex; align-items: flex-end;">
|
|
1668
1672
|
<ui-input label="Protocol" value="https://" class="group-stuck-right" style="width: 100px; flex-shrink: 0;"></ui-input>
|
|
1669
1673
|
<ui-input label="Domain Name" placeholder="example.com" class="group-stuck-middle" style="flex: 1;"></ui-input>
|
|
1670
1674
|
<ui-input label="Extension" value=".io" class="group-stuck-left" style="width: 100px; flex-shrink: 0;"></ui-input>
|
|
1671
1675
|
</div>
|
|
1672
|
-
<p style="font-size: 11px; color:
|
|
1676
|
+
<p style="font-size: 11px; color:var(--text-secondary,#64748b); margin-top: 16px;">Combined multiple inputs into a single cohesive visual unit.</p>
|
|
1673
1677
|
</div>
|
|
1674
1678
|
</div>
|
|
1675
1679
|
</div>
|
|
@@ -1704,12 +1708,12 @@ export function initInputDemo() {
|
|
|
1704
1708
|
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 32px;">
|
|
1705
1709
|
|
|
1706
1710
|
<!-- Search Launch -->
|
|
1707
|
-
<div style="background:
|
|
1708
|
-
<h4 style="margin-top: 0; color:
|
|
1711
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 16px rgba(0,0,0,0.04);">
|
|
1712
|
+
<h4 style="margin-top: 0; color:var(--accent-indigo,#6366f1); display:flex; align-items:center; gap:8px;">
|
|
1709
1713
|
<ui-icon library="lucide" name="search" style="height:18px;"></ui-icon>
|
|
1710
1714
|
Clickable Suffix — Search Trigger
|
|
1711
1715
|
</h4>
|
|
1712
|
-
<p style="font-size: 13px; color:
|
|
1716
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 20px;">Click the search icon button on the right to launch search. Event log updates below.</p>
|
|
1713
1717
|
<ui-input
|
|
1714
1718
|
id="clickSuffixSearch"
|
|
1715
1719
|
label="Global Search"
|
|
@@ -1719,18 +1723,18 @@ export function initInputDemo() {
|
|
|
1719
1723
|
suffix-clickable="true"
|
|
1720
1724
|
full-width="true"
|
|
1721
1725
|
></ui-input>
|
|
1722
|
-
<div id="searchClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:
|
|
1726
|
+
<div id="searchClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:var(--bg-secondary,#f8fafc); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); font-size: 13px; color: #475569; font-family: monospace;">
|
|
1723
1727
|
<span style="opacity:0.5;">awaiting suffixClick event…</span>
|
|
1724
1728
|
</div>
|
|
1725
1729
|
</div>
|
|
1726
1730
|
|
|
1727
1731
|
<!-- Copy to Clipboard -->
|
|
1728
|
-
<div style="background:
|
|
1732
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 16px rgba(0,0,0,0.04);">
|
|
1729
1733
|
<h4 style="margin-top: 0; color: #10b981; display:flex; align-items:center; gap:8px;">
|
|
1730
1734
|
<ui-icon library="lucide" name="clipboard" style="height:18px;"></ui-icon>
|
|
1731
1735
|
Clickable Suffix — Copy to Clipboard
|
|
1732
1736
|
</h4>
|
|
1733
|
-
<p style="font-size: 13px; color:
|
|
1737
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 20px;">Click the copy icon to copy the input value. The icon will turn green momentarily on success.</p>
|
|
1734
1738
|
<ui-input
|
|
1735
1739
|
id="clickSuffixCopy"
|
|
1736
1740
|
label="API Key"
|
|
@@ -1740,18 +1744,18 @@ export function initInputDemo() {
|
|
|
1740
1744
|
suffix-clickable="true"
|
|
1741
1745
|
full-width="true"
|
|
1742
1746
|
></ui-input>
|
|
1743
|
-
<div id="copyClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:
|
|
1747
|
+
<div id="copyClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:var(--bg-secondary,#f8fafc); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); font-size: 13px; color: #475569; font-family: monospace;">
|
|
1744
1748
|
<span style="opacity:0.5;">awaiting suffixClick event…</span>
|
|
1745
1749
|
</div>
|
|
1746
1750
|
</div>
|
|
1747
1751
|
|
|
1748
1752
|
<!-- QR Scan Launch -->
|
|
1749
|
-
<div style="background:
|
|
1750
|
-
<h4 style="margin-top: 0; color:
|
|
1753
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 16px rgba(0,0,0,0.04);">
|
|
1754
|
+
<h4 style="margin-top: 0; color:var(--accent-yellow,#f59e0b); display:flex; align-items:center; gap:8px;">
|
|
1751
1755
|
<ui-icon library="lucide" name="qr-code" style="height:18px;"></ui-icon>
|
|
1752
1756
|
Clickable Prefix — QR Scanner
|
|
1753
1757
|
</h4>
|
|
1754
|
-
<p style="font-size: 13px; color:
|
|
1758
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 20px;">Click the QR icon on the left to simulate opening a QR code scanner. Emits <code>prefixClick</code>.</p>
|
|
1755
1759
|
<ui-input
|
|
1756
1760
|
id="clickPrefixQR"
|
|
1757
1761
|
label="Voucher Code"
|
|
@@ -1761,18 +1765,18 @@ export function initInputDemo() {
|
|
|
1761
1765
|
prefix-clickable="true"
|
|
1762
1766
|
full-width="true"
|
|
1763
1767
|
></ui-input>
|
|
1764
|
-
<div id="qrClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:
|
|
1768
|
+
<div id="qrClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:var(--bg-secondary,#f8fafc); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); font-size: 13px; color: #475569; font-family: monospace;">
|
|
1765
1769
|
<span style="opacity:0.5;">awaiting prefixClick event…</span>
|
|
1766
1770
|
</div>
|
|
1767
1771
|
</div>
|
|
1768
1772
|
|
|
1769
1773
|
<!-- Dual Addon -->
|
|
1770
|
-
<div style="background:
|
|
1771
|
-
<h4 style="margin-top: 0; color:
|
|
1774
|
+
<div style="background:var(--bg-primary,white); padding: 28px; border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 4px 16px rgba(0,0,0,0.04);">
|
|
1775
|
+
<h4 style="margin-top: 0; color:var(--accent-red,#ef4444); display:flex; align-items:center; gap:8px;">
|
|
1772
1776
|
<ui-icon library="lucide" name="zap" style="height:18px;"></ui-icon>
|
|
1773
1777
|
Both Prefix & Suffix Clickable
|
|
1774
1778
|
</h4>
|
|
1775
|
-
<p style="font-size: 13px; color:
|
|
1779
|
+
<p style="font-size: 13px; color:var(--text-secondary,#64748b); margin-bottom: 20px;">Both sides are independently clickable. Prefix opens country picker, suffix resets the field.</p>
|
|
1776
1780
|
<ui-input
|
|
1777
1781
|
id="clickBothInput"
|
|
1778
1782
|
label="Phone Number"
|
|
@@ -1785,7 +1789,7 @@ export function initInputDemo() {
|
|
|
1785
1789
|
suffix-clickable="true"
|
|
1786
1790
|
full-width="true"
|
|
1787
1791
|
></ui-input>
|
|
1788
|
-
<div id="dualClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:
|
|
1792
|
+
<div id="dualClickLog" style="margin-top: 16px; min-height: 40px; padding: 12px 16px; background:var(--bg-secondary,#f8fafc); border-radius: 12px; border:1px solid var(--border-default,#e2e8f0); font-size: 13px; color: #475569; font-family: monospace;">
|
|
1789
1793
|
<span style="opacity:0.5;">awaiting events…</span>
|
|
1790
1794
|
</div>
|
|
1791
1795
|
</div>
|
|
@@ -1793,27 +1797,27 @@ export function initInputDemo() {
|
|
|
1793
1797
|
</div>
|
|
1794
1798
|
|
|
1795
1799
|
<!-- Event Legend -->
|
|
1796
|
-
<div style="margin-top: 40px; padding: 24px; background:
|
|
1797
|
-
<h4 style="margin: 0 0 16px; color:
|
|
1800
|
+
<div style="margin-top: 40px; padding: 24px; background: var(--bg-secondary, #f1f5f9); border-radius: 16px; border:1px solid var(--border-default,#e2e8f0);">
|
|
1801
|
+
<h4 style="margin: 0 0 16px; color:var(--text-primary,#1e293b); display:flex; align-items:center; gap:8px;">
|
|
1798
1802
|
<ui-icon library="lucide" name="code" style="height:16px;"></ui-icon>
|
|
1799
1803
|
Event API Reference
|
|
1800
1804
|
</h4>
|
|
1801
1805
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 24px;">
|
|
1802
1806
|
<div style="background: #1e293b; border-radius: 12px; padding: 20px; color: #e2e8f0; font-family: monospace; font-size: 13px; line-height: 1.7;">
|
|
1803
|
-
<div style="color:
|
|
1807
|
+
<div style="color:var(--text-secondary,#64748b); margin-bottom: 8px;">// HTML attribute usage</div>
|
|
1804
1808
|
<div><span style="color:#f472b6;">prefix-clickable</span>=<span style="color:#86efac;">"true"</span></div>
|
|
1805
1809
|
<div><span style="color:#f472b6;">suffix-clickable</span>=<span style="color:#86efac;">"true"</span></div>
|
|
1806
1810
|
<br>
|
|
1807
|
-
<div style="color:
|
|
1811
|
+
<div style="color:var(--text-secondary,#64748b); margin-bottom: 8px;">// Event listener</div>
|
|
1808
1812
|
<div>el.<span style="color:#60a5fa;">addEventListener</span>(<span style="color:#86efac;">"prefixClick"</span>, fn)</div>
|
|
1809
1813
|
<div>el.<span style="color:#60a5fa;">addEventListener</span>(<span style="color:#86efac;">"suffixClick"</span>, fn)</div>
|
|
1810
1814
|
</div>
|
|
1811
1815
|
<div style="background: #1e293b; border-radius: 12px; padding: 20px; color: #e2e8f0; font-family: monospace; font-size: 13px; line-height: 1.7;">
|
|
1812
|
-
<div style="color:
|
|
1816
|
+
<div style="color:var(--text-secondary,#64748b); margin-bottom: 8px;">// Angular binding</div>
|
|
1813
1817
|
<div>(<span style="color:#f472b6;">prefixClick</span>)=<span style="color:#86efac;">"onPrefix($event)"</span></div>
|
|
1814
1818
|
<div>(<span style="color:#f472b6;">suffixClick</span>)=<span style="color:#86efac;">"onSuffix($event)"</span></div>
|
|
1815
1819
|
<br>
|
|
1816
|
-
<div style="color:
|
|
1820
|
+
<div style="color:var(--text-secondary,#64748b); margin-bottom: 8px;">// Hover cursor</div>
|
|
1817
1821
|
<div>Applied via CSS: <span style="color:#f472b6;">cursor: pointer</span></div>
|
|
1818
1822
|
<div>Class: <span style="color:#86efac;">.prefix-icon--clickable</span></div>
|
|
1819
1823
|
</div>
|