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
|
@@ -9,7 +9,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
9
9
|
<ui-pill color="secondary" variant="outline" label="V4.0" size="md"ui-pill>
|
|
10
10
|
</div>
|
|
11
11
|
<h2>Avatar & Social Suite</h2>
|
|
12
|
-
<p style="color:
|
|
12
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 1.1rem; max-width: 800px;">The industry's most advanced avatar component. Support for 4 custom shapes, status management, social story rings, 3D interactions, and enterprise-grade group stacking.</p>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div id="avatarNavPills_${targetId}" class="demo-nav-pills" style="margin: 24px 0; display: flex; gap: 10px; flex-wrap: wrap;">
|
|
@@ -18,9 +18,10 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
18
18
|
<ui-button label="🟢 Presence & Status" data-demo="presence"></ui-button>
|
|
19
19
|
<ui-button label="📸 Social & Effects" data-demo="social"></ui-button>
|
|
20
20
|
<ui-button label="👥 Managed Groups" data-demo="groups"></ui-button>
|
|
21
|
+
<ui-button label="🧪 Reference Coverage" data-demo="reference"></ui-button>
|
|
21
22
|
</div>
|
|
22
23
|
|
|
23
|
-
<div id="avatarDemoContainer_${targetId}" class="avatar-demo-content-area" style="min-height: 500px; padding: 40px; background:
|
|
24
|
+
<div id="avatarDemoContainer_${targetId}" class="avatar-demo-content-area" style="min-height: 500px; padding: 40px; background:var(--bg-primary,white); border-radius: 20px; border:1px solid var(--border-default,#e2e8f0); box-shadow: 0 10px 40px rgba(0,0,0,0.03);"></div>
|
|
24
25
|
`;
|
|
25
26
|
|
|
26
27
|
const containerId = `avatarDemoContainer_${targetId}`;
|
|
@@ -30,7 +31,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
30
31
|
const nav = section.querySelector(`#avatarNavPills_${targetId}`);
|
|
31
32
|
if (!nav) return;
|
|
32
33
|
nav.querySelectorAll('ui-button').forEach(btn => {
|
|
33
|
-
btn.selected = btn.
|
|
34
|
+
btn.selected = btn.dataset.demo === name;
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
37
|
|
|
@@ -41,43 +42,43 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
41
42
|
container.innerHTML = `
|
|
42
43
|
<div class="demo-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px;">
|
|
43
44
|
<div class="demo-card">
|
|
44
|
-
<h4 style="margin-bottom: 24px; color:
|
|
45
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Geometric Shapes</h4>
|
|
45
46
|
<div style="display: flex; gap: 24px; align-items: center;">
|
|
46
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
47
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
48
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
49
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
47
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" shape="circle" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">CIRCLE</p></div>
|
|
48
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" shape="squircle" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">SQUIRCLE</p></div>
|
|
49
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" shape="hexagon" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">HEXAGON</p></div>
|
|
50
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" shape="square" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">SQUARE</p></div>
|
|
50
51
|
</div>
|
|
51
52
|
</div>
|
|
52
53
|
|
|
53
54
|
<div class="demo-card">
|
|
54
|
-
<h4 style="margin-bottom: 24px; color:
|
|
55
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Sizing Scale</h4>
|
|
55
56
|
<div style="display: flex; gap: 16px; align-items: flex-end;">
|
|
56
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
57
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
58
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
59
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
60
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
61
|
-
<div style="text-align: center;"><ui-avatar src="
|
|
57
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="xs"></ui-avatar><p style="font-size: 9px;">XS</p></div>
|
|
58
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="s"></ui-avatar><p style="font-size: 9px;">S</p></div>
|
|
59
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="m"></ui-avatar><p style="font-size: 9px;">M</p></div>
|
|
60
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="l"></ui-avatar><p style="font-size: 9px;">L</p></div>
|
|
61
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="xl"></ui-avatar><p style="font-size: 9px;">XL</p></div>
|
|
62
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="120"></ui-avatar><p style="font-size: 9px;">120px</p></div>
|
|
62
63
|
</div>
|
|
63
64
|
</div>
|
|
64
65
|
|
|
65
66
|
<div class="demo-card">
|
|
66
|
-
<h4 style="margin-bottom: 24px; color:
|
|
67
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Source Types</h4>
|
|
67
68
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
|
|
68
|
-
<div style="display: flex; align-items: center; gap: 12px; background:
|
|
69
|
-
<ui-avatar src="
|
|
69
|
+
<div style="display: flex; align-items: center; gap: 12px; background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 12px;">
|
|
70
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m"></ui-avatar>
|
|
70
71
|
<div><strong style="font-size: 13px;">Image</strong><p style="font-size: 11px; margin: 0; opacity: 0.7;">Remote URL</p></div>
|
|
71
72
|
</div>
|
|
72
|
-
<div style="display: flex; align-items: center; gap: 12px; background:
|
|
73
|
+
<div style="display: flex; align-items: center; gap: 12px; background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 12px;">
|
|
73
74
|
<ui-avatar name="Steve Rogers" size="m" auto-color="true"></ui-avatar>
|
|
74
75
|
<div><strong style="font-size: 13px;">Initials</strong><p style="font-size: 11px; margin: 0; opacity: 0.7;">Auto-Generated</p></div>
|
|
75
76
|
</div>
|
|
76
|
-
<div style="display: flex; align-items: center; gap: 12px; background:
|
|
77
|
+
<div style="display: flex; align-items: center; gap: 12px; background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 12px;">
|
|
77
78
|
<ui-avatar icon="bell" icon-library="lucide" bg-color="#10b981" size="m"></ui-avatar>
|
|
78
79
|
<div><strong style="font-size: 13px;">Icon</strong><p style="font-size: 11px; margin: 0; opacity: 0.7;">Lucide Library</p></div>
|
|
79
80
|
</div>
|
|
80
|
-
<div style="display: flex; align-items: center; gap: 12px; background:
|
|
81
|
+
<div style="display: flex; align-items: center; gap: 12px; background:var(--bg-secondary,#f8fafc); padding: 12px; border-radius: 12px;">
|
|
81
82
|
<ui-avatar name="Broken Link" src="https://invalid-url.com" size="m"></ui-avatar>
|
|
82
83
|
<div><strong style="font-size: 13px;">Fallback</strong><p style="font-size: 11px; margin: 0; opacity: 0.7;">Auto-Recovery</p></div>
|
|
83
84
|
</div>
|
|
@@ -85,11 +86,57 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
85
86
|
</div>
|
|
86
87
|
|
|
87
88
|
<div class="demo-card">
|
|
88
|
-
<h4 style="margin-bottom: 24px; color:
|
|
89
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">System States</h4>
|
|
89
90
|
<div style="display: flex; gap: 32px; align-items: center;">
|
|
90
91
|
<div style="text-align: center;"><ui-avatar loading="true" size="l"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">LOADING</p></div>
|
|
91
92
|
<div style="text-align: center;"><ui-avatar skeleton="true" size="l"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">SKELETON</p></div>
|
|
92
|
-
<div style="text-align: center;"><ui-avatar editable="true" src="
|
|
93
|
+
<div style="text-align: center;"><ui-avatar editable="true" src="/build/assets/images/logo.png" size="l"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">UPLOADABLE</p></div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<div class="demo-card">
|
|
98
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Auto-Scale Font Size</h4>
|
|
99
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">For letter-type avatars, use <code>gap</code> to set the minimum padding — the font will auto-shrink to fit longer text.</p>
|
|
100
|
+
<div style="display: flex; gap: 20px; align-items: center; flex-wrap: wrap;">
|
|
101
|
+
<div style="text-align: center;"><ui-avatar content="U" gap="4" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">1 letter</p></div>
|
|
102
|
+
<div style="text-align: center;"><ui-avatar content="AB" gap="4" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">2 letters</p></div>
|
|
103
|
+
<div style="text-align: center;"><ui-avatar content="USER" gap="4" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">4 letters</p></div>
|
|
104
|
+
<div style="text-align: center;"><ui-avatar content="UserName" gap="4" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Long name</p></div>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div class="demo-card">
|
|
109
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Auto Color from Name</h4>
|
|
110
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">Set <code>auto-color="true"</code> to deterministically generate a background color from the <code>name</code> prop.</p>
|
|
111
|
+
<div style="display: flex; gap: 20px; align-items: center; flex-wrap: wrap;">
|
|
112
|
+
<div style="text-align: center;"><ui-avatar name="Alice Anderson" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Alice A.</p></div>
|
|
113
|
+
<div style="text-align: center;"><ui-avatar name="Bob Baker" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Bob B.</p></div>
|
|
114
|
+
<div style="text-align: center;"><ui-avatar name="Charlie Clark" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Charlie C.</p></div>
|
|
115
|
+
<div style="text-align: center;"><ui-avatar name="Diana Davis" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Diana D.</p></div>
|
|
116
|
+
<div style="text-align: center;"><ui-avatar name="Steve Rogers" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Steve R.</p></div>
|
|
117
|
+
<div style="text-align: center;"><ui-avatar name="Tony Stark" auto-color="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Tony S.</p></div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
<div class="demo-card">
|
|
122
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Custom Colors</h4>
|
|
123
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">Use <code>bg-color</code> to set the background and <code>color</code> for text/icon foreground. Works for icon, initial, and content types.</p>
|
|
124
|
+
<div style="display: flex; gap: 20px; align-items: center; flex-wrap: wrap;">
|
|
125
|
+
<div style="text-align: center;"><ui-avatar icon="user" icon-library="fontawesome" bg-color="#f56a00" color="#fff" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">#f56a00</p></div>
|
|
126
|
+
<div style="text-align: center;"><ui-avatar content="U" bg-color="#87d068" color="#fff" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">#87d068</p></div>
|
|
127
|
+
<div style="text-align: center;"><ui-avatar content="USER" bg-color="#1890ff" color="#fff" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">#1890ff</p></div>
|
|
128
|
+
<div style="text-align: center;"><ui-avatar icon="crown" icon-library="fontawesome" bg-color="#722ed1" color="#fff" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">#722ed1</p></div>
|
|
129
|
+
<div style="text-align: center;"><ui-avatar content="G" bg-color="#eb2f96" color="#fff" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">#eb2f96</p></div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div class="demo-card">
|
|
134
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Animations</h4>
|
|
135
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">Use the <code>animation</code> prop to apply a looping visual effect. Choose from <code>pulse</code>, <code>ring</code>, or <code>glow</code>.</p>
|
|
136
|
+
<div style="display: flex; gap: 40px; align-items: center; flex-wrap: wrap;">
|
|
137
|
+
<div style="text-align: center;"><ui-avatar name="Pulse" animation="pulse" size="l" bg-color="#6366f1"></ui-avatar><p style="font-size: 11px; margin-top: 10px; font-weight: 600;">pulse</p></div>
|
|
138
|
+
<div style="text-align: center;"><ui-avatar name="Ring" animation="ring" size="l" bg-color="#10b981"></ui-avatar><p style="font-size: 11px; margin-top: 10px; font-weight: 600;">ring</p></div>
|
|
139
|
+
<div style="text-align: center;"><ui-avatar name="Glow" animation="glow" size="l" bg-color="#f59e0b"></ui-avatar><p style="font-size: 11px; margin-top: 10px; font-weight: 600;">glow</p></div>
|
|
93
140
|
</div>
|
|
94
141
|
</div>
|
|
95
142
|
</div>
|
|
@@ -101,44 +148,55 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
101
148
|
container.innerHTML = `
|
|
102
149
|
<div class="demo-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px;">
|
|
103
150
|
<div class="demo-card">
|
|
104
|
-
<h4 style="margin-bottom: 24px; color:
|
|
151
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Semantic Presence Indicators</h4>
|
|
105
152
|
<div style="display: flex; gap: 24px; align-items: center;">
|
|
106
|
-
<ui-avatar src="
|
|
107
|
-
<ui-avatar src="
|
|
108
|
-
<ui-avatar src="
|
|
109
|
-
<ui-avatar src="
|
|
110
|
-
<ui-avatar src="
|
|
153
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" tooltip-text="Online"></ui-avatar>
|
|
154
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="away" tooltip-text="Away"></ui-avatar>
|
|
155
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="busy" tooltip-text="Busy (In Call)"></ui-avatar>
|
|
156
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="dnd" tooltip-text="Do Not Disturb"></ui-avatar>
|
|
157
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="offline" tooltip-text="Offline"></ui-avatar>
|
|
111
158
|
</div>
|
|
112
159
|
</div>
|
|
113
160
|
|
|
114
161
|
<div class="demo-card">
|
|
115
|
-
<h4 style="margin-bottom: 24px; color:
|
|
162
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Presence Motion (Attention-Grabbing)</h4>
|
|
116
163
|
<div style="display: flex; gap: 32px; align-items: center;">
|
|
117
164
|
<div style="text-align: center;">
|
|
118
|
-
<ui-avatar src="
|
|
165
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" status-pulse="true"></ui-avatar>
|
|
119
166
|
<p style="font-size: 10px; margin-top: 8px;">STATUS PULSE</p>
|
|
120
167
|
</div>
|
|
121
168
|
<div style="text-align: center;">
|
|
122
|
-
<ui-avatar src="
|
|
169
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" active-speaker="true"></ui-avatar>
|
|
123
170
|
<p style="font-size: 10px; margin-top: 8px;">ACTIVE SPEAKER RING</p>
|
|
124
171
|
</div>
|
|
125
172
|
<div style="text-align: center;">
|
|
126
|
-
<ui-avatar src="
|
|
173
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" animation="pulse"></ui-avatar>
|
|
127
174
|
<p style="font-size: 10px; margin-top: 8px;">AVATAR PULSE</p>
|
|
128
175
|
</div>
|
|
129
176
|
</div>
|
|
130
177
|
</div>
|
|
131
178
|
|
|
132
179
|
<div class="demo-card">
|
|
133
|
-
<h4 style="margin-bottom: 24px; color:
|
|
180
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Positioning Logic</h4>
|
|
134
181
|
<div style="display: flex; gap: 24px;">
|
|
135
|
-
<ui-avatar src="
|
|
136
|
-
<ui-avatar src="
|
|
137
|
-
<ui-avatar src="
|
|
138
|
-
<ui-avatar src="
|
|
182
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" status-position="top-right"></ui-avatar>
|
|
183
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" status-position="top-left"></ui-avatar>
|
|
184
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" status-position="bottom-left"></ui-avatar>
|
|
185
|
+
<ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" status-position="bottom-right"></ui-avatar>
|
|
139
186
|
</div>
|
|
140
187
|
<p style="font-size: 11px; opacity: 0.6; margin-top: 12px;">TR, TL, BL, BR Anchor points for status indicators</p>
|
|
141
188
|
</div>
|
|
189
|
+
|
|
190
|
+
<div class="demo-card">
|
|
191
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Indicator Size Control</h4>
|
|
192
|
+
<div style="display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap;">
|
|
193
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" indicator-size="8"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">8px</p></div>
|
|
194
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" indicator-size="12"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">12px</p></div>
|
|
195
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="online" indicator-size="16"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">16px</p></div>
|
|
196
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" size="l" show-status="true" status="busy" indicator-size="1rem"></ui-avatar><p style="font-size: 10px; margin-top: 8px;">1rem</p></div>
|
|
197
|
+
</div>
|
|
198
|
+
<p style="font-size: 11px; opacity: 0.6; margin-top: 12px;">Use <code>indicator-size</code> with either pixel values or CSS units.</p>
|
|
199
|
+
</div>
|
|
142
200
|
</div>
|
|
143
201
|
`;
|
|
144
202
|
};
|
|
@@ -148,57 +206,120 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
148
206
|
container.innerHTML = `
|
|
149
207
|
<div class="demo-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px;">
|
|
150
208
|
<div class="demo-card">
|
|
151
|
-
<h4 style="margin-bottom: 24px; color:
|
|
209
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Instagram Style "Stories"</h4>
|
|
152
210
|
<div style="display: flex; gap: 32px; align-items: center;">
|
|
153
211
|
<div style="text-align: center;">
|
|
154
|
-
<ui-avatar src="
|
|
155
|
-
<p style="font-size: 9px; margin-top: 8px; color:
|
|
212
|
+
<ui-avatar src="/build/assets/images/logo.png" size="xl" story="true"></ui-avatar>
|
|
213
|
+
<p style="font-size: 9px; margin-top: 8px; color:var(--accent-pink,#ec4899); font-weight: bold;">NEW STORY</p>
|
|
156
214
|
</div>
|
|
157
215
|
<div style="text-align: center;">
|
|
158
|
-
<ui-avatar src="
|
|
216
|
+
<ui-avatar src="/build/assets/images/logo.png" size="xl" story="true" story-seen="true"></ui-avatar>
|
|
159
217
|
<p style="font-size: 9px; margin-top: 8px; opacity: 0.5;">SEEN STORY</p>
|
|
160
218
|
</div>
|
|
161
219
|
<div style="text-align: center;">
|
|
162
|
-
<ui-avatar src="
|
|
220
|
+
<ui-avatar src="/build/assets/images/logo.png" size="xl" story="true" segments="6"></ui-avatar>
|
|
163
221
|
<p style="font-size: 9px; margin-top: 8px; color: #10b981; font-weight: bold;">6 SEGMENTS</p>
|
|
164
222
|
</div>
|
|
165
223
|
</div>
|
|
166
224
|
</div>
|
|
167
225
|
|
|
168
226
|
<div class="demo-card">
|
|
169
|
-
<h4 style="margin-bottom: 24px; color:
|
|
227
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Premium Effects Suite</h4>
|
|
170
228
|
<div style="display: flex; gap: 32px; align-items: center; flex-wrap: wrap;">
|
|
171
229
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
172
230
|
<div style="display: flex; align-items: center; gap: 12px;">
|
|
173
|
-
<ui-avatar src="
|
|
231
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m" verified="true"></ui-avatar>
|
|
174
232
|
<span style="font-size: 12px; font-weight: 500;">VERIFIED BADGE</span>
|
|
175
233
|
</div>
|
|
176
234
|
<div style="display: flex; align-items: center; gap: 12px;">
|
|
177
|
-
<ui-avatar src="
|
|
235
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m" reflection="true"></ui-avatar>
|
|
178
236
|
<span style="font-size: 12px; font-weight: 500;">PREMIUM REFLECTION</span>
|
|
179
237
|
</div>
|
|
180
238
|
</div>
|
|
181
239
|
<div style="display: flex; flex-direction: column; gap: 20px;">
|
|
182
240
|
<div style="display: flex; align-items: center; gap: 12px;">
|
|
183
|
-
<ui-avatar src="
|
|
241
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m" glass="true" variant="glass"></ui-avatar>
|
|
184
242
|
<span style="font-size: 12px; font-weight: 500;">GLASSMORPHISM</span>
|
|
185
243
|
</div>
|
|
186
244
|
<div style="display: flex; align-items: center; gap: 12px;">
|
|
187
|
-
<ui-avatar src="
|
|
245
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m" three-d="true"></ui-avatar>
|
|
188
246
|
<span style="font-size: 12px; font-weight: 500;">3D HOVER FIELD</span>
|
|
189
247
|
</div>
|
|
190
248
|
</div>
|
|
191
249
|
</div>
|
|
192
250
|
</div>
|
|
193
251
|
|
|
194
|
-
<div class="demo-card" style="grid-column: span 1; background: #
|
|
195
|
-
<h4 style="margin-bottom: 24px; color:
|
|
252
|
+
<div class="demo-card" style="grid-column: span 1; background: var(--bg-tertiary, #f1f5f9); border: 1px solid var(--border-default); color: var(--text-primary);">
|
|
253
|
+
<h4 style="margin-bottom: 24px; color: var(--text-primary); border-bottom: 1px solid var(--border-default); padding-bottom: 12px;">Premium Gradient & Ring Highlights</h4>
|
|
196
254
|
<div style="display: flex; gap: 32px; align-items: center;">
|
|
197
255
|
<ui-avatar gradient="true" gradient-colors="#f43f5e, #fb923c" shape="squircle" size="xl" content="★"></ui-avatar>
|
|
198
|
-
<ui-avatar animation="glow" ring-color="#10b981" src="
|
|
199
|
-
<ui-avatar animation="ring" ring-color="#ec4899" src="
|
|
256
|
+
<ui-avatar animation="glow" ring-color="#10b981" src="/build/assets/images/logo.png" size="xl"></ui-avatar>
|
|
257
|
+
<ui-avatar animation="ring" ring-color="#ec4899" src="/build/assets/images/logo.png" size="xl"></ui-avatar>
|
|
258
|
+
</div>
|
|
259
|
+
<p style="font-size: 11px; opacity: 0.6; margin-top: 16px;">Vibrant gradients and glowing rings for premium interfaces</p>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<div class="demo-card">
|
|
263
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Gradient Backgrounds</h4>
|
|
264
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">Use <code>gradient="true"</code> alone for a default rainbow gradient, or set <code>gradient-colors</code> for a custom linear gradient.</p>
|
|
265
|
+
<div style="display: flex; gap: 24px; align-items: center; flex-wrap: wrap;">
|
|
266
|
+
<div style="text-align: center;"><ui-avatar content="GR" gradient="true" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Default</p></div>
|
|
267
|
+
<div style="text-align: center;"><ui-avatar content="CG" gradient="true" gradient-colors="#ff0080,#7928ca" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Purple Burst</p></div>
|
|
268
|
+
<div style="text-align: center;"><ui-avatar content="BG" gradient="true" gradient-colors="#00d2ff,#3a47d5" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Ocean Blue</p></div>
|
|
269
|
+
<div style="text-align: center;"><ui-avatar content="★" gradient="true" gradient-colors="#f43f5e,#fb923c" shape="squircle" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Sunset</p></div>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
|
|
273
|
+
<div class="demo-card">
|
|
274
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Ring Color</h4>
|
|
275
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 16px;">Use <code>ring-color</code> to add a coloured ring border around any avatar. Works alongside <code>animation="glow"</code> or <code>"ring"</code>.</p>
|
|
276
|
+
<div style="display: flex; gap: 24px; align-items: center; flex-wrap: wrap;">
|
|
277
|
+
<div style="text-align: center;"><ui-avatar name="Blue Ring" ring-color="#3b82f6" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Blue</p></div>
|
|
278
|
+
<div style="text-align: center;"><ui-avatar name="Red Ring" ring-color="#ef4444" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Red</p></div>
|
|
279
|
+
<div style="text-align: center;"><ui-avatar name="Green Ring" ring-color="#10b981" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Green</p></div>
|
|
280
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" ring-color="#ec4899" animation="glow" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Glow + Ring</p></div>
|
|
281
|
+
<div style="text-align: center;"><ui-avatar src="/build/assets/images/logo.png" ring-color="#f59e0b" animation="ring" size="l"></ui-avatar><p style="font-size: 11px; margin-top: 8px;">Anim Ring</p></div>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div class="demo-card" style="grid-column: 1 / -1; background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%); border: 1px solid rgba(102,126,234,0.2);">
|
|
286
|
+
<h4 style="margin-bottom: 8px; color: #4338ca;">⭐ Phase 7: Premium Showcase</h4>
|
|
287
|
+
<p style="font-size: 12px; color: #4b5563; margin-bottom: 24px;">High-end UX enhancements: skeleton shimmer, glassmorphism, 3D parallax hover, and multi-segment story rings.</p>
|
|
288
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;">
|
|
289
|
+
<div style="background:white; padding:24px; border-radius:16px; box-shadow:0 4px 12px rgba(0,0,0,0.04); text-align:center;">
|
|
290
|
+
<h5 style="color:#6366f1; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; margin:0 0 16px;">Skeleton Shimmer</h5>
|
|
291
|
+
<div style="display:flex; gap:16px; justify-content:center;">
|
|
292
|
+
<ui-avatar skeleton="true" size="l"></ui-avatar>
|
|
293
|
+
<ui-avatar skeleton="true" shape="square" size="l"></ui-avatar>
|
|
294
|
+
</div>
|
|
295
|
+
<p style="font-size:10px; color:#6366f1; font-weight:700; margin:12px 0 0; text-transform:uppercase; letter-spacing:0.05em;">Shimmer Active</p>
|
|
296
|
+
</div>
|
|
297
|
+
<div style="background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=400&q=80') center/cover; padding:24px; border-radius:16px; text-align:center; position:relative; overflow:hidden;">
|
|
298
|
+
<div style="position:absolute;inset:0;background:rgba(0,0,0,0.15);"></div>
|
|
299
|
+
<h5 style="color:white; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; margin:0 0 16px; position:relative; z-index:1; text-shadow:0 1px 4px rgba(0,0,0,0.4);">Glassmorphism</h5>
|
|
300
|
+
<div style="display:flex; gap:12px; justify-content:center; position:relative; z-index:1;">
|
|
301
|
+
<ui-avatar glass="true" size="l" content="G"></ui-avatar>
|
|
302
|
+
<ui-avatar glass="true" shape="square" size="l" content="G"></ui-avatar>
|
|
303
|
+
</div>
|
|
304
|
+
<p style="font-size:10px; color:white; font-weight:700; margin:12px 0 0; text-transform:uppercase; letter-spacing:0.05em; text-shadow:0 1px 4px rgba(0,0,0,0.5); position:relative; z-index:1;">Frosted Glass</p>
|
|
305
|
+
</div>
|
|
306
|
+
<div style="background:white; padding:24px; border-radius:16px; box-shadow:0 4px 12px rgba(0,0,0,0.04); text-align:center;">
|
|
307
|
+
<h5 style="color:#ec4899; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; margin:0 0 16px;">3D & Reflection</h5>
|
|
308
|
+
<div style="display:flex; gap:16px; justify-content:center;">
|
|
309
|
+
<ui-avatar size="l" bg-color="#0f172a" color="#fff" reflection="true" clickable="true" content="JD"></ui-avatar>
|
|
310
|
+
<ui-avatar size="l" src="https://api.dicebear.com/7.x/miniavs/svg?seed=VIP" reflection="true" clickable="true"></ui-avatar>
|
|
311
|
+
</div>
|
|
312
|
+
<p style="font-size:10px; color:#ec4899; font-weight:700; margin:12px 0 0; text-transform:uppercase; letter-spacing:0.05em;">Hover for 3D</p>
|
|
313
|
+
</div>
|
|
314
|
+
<div style="background:white; padding:24px; border-radius:16px; box-shadow:0 4px 12px rgba(0,0,0,0.04); text-align:center;">
|
|
315
|
+
<h5 style="color:#f59e0b; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; margin:0 0 16px;">Segmented Stories</h5>
|
|
316
|
+
<div style="display:flex; gap:16px; justify-content:center;">
|
|
317
|
+
<ui-avatar size="l" story="true" segments="4" src="https://api.dicebear.com/7.x/miniavs/svg?seed=S1"></ui-avatar>
|
|
318
|
+
<ui-avatar size="l" story="true" segments="8" src="https://api.dicebear.com/7.x/miniavs/svg?seed=S2"></ui-avatar>
|
|
319
|
+
</div>
|
|
320
|
+
<p style="font-size:10px; color:#f59e0b; font-weight:700; margin:12px 0 0; text-transform:uppercase; letter-spacing:0.05em;">4 & 8 Segments</p>
|
|
321
|
+
</div>
|
|
200
322
|
</div>
|
|
201
|
-
<p style="font-size: 11px; opacity: 0.5; margin-top: 16px;">Vibrant gradients and glowing rings for dark mode UIs</p>
|
|
202
323
|
</div>
|
|
203
324
|
</div>
|
|
204
325
|
`;
|
|
@@ -209,24 +330,24 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
209
330
|
container.innerHTML = `
|
|
210
331
|
<div class="demo-grid" style="display: grid; grid-template-columns: 1fr; gap: 40px;">
|
|
211
332
|
<div class="demo-card">
|
|
212
|
-
<h4 style="margin-bottom: 24px; color:
|
|
213
|
-
<p style="color:
|
|
333
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Managed Stacking (Hover Shift)</h4>
|
|
334
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">Automatically stacks children with 3D shifting effect on hover. Excess avatars are grouped into a roster (+X).</p>
|
|
214
335
|
|
|
215
336
|
<div style="display: flex; flex-direction: column; gap: 40px;">
|
|
216
337
|
<div>
|
|
217
|
-
<p style="font-size: 11px; font-weight: 600; color:
|
|
338
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin-bottom: 12px;">SIZE: XL | MAX: 4</p>
|
|
218
339
|
<ui-avatar group="true" size="xl" max-visible="4" animated="true">
|
|
219
|
-
<ui-avatar name="Alice Miller" src="
|
|
220
|
-
<ui-avatar name="Bob Smith" src="
|
|
221
|
-
<ui-avatar name="Charlie Brown" src="
|
|
222
|
-
<ui-avatar name="David Grey" src="
|
|
223
|
-
<ui-avatar name="Eve Wilson" src="
|
|
224
|
-
<ui-avatar name="Frank Castle" src="
|
|
340
|
+
<ui-avatar name="Alice Miller" src="/build/assets/images/logo.png"></ui-avatar>
|
|
341
|
+
<ui-avatar name="Bob Smith" src="/build/assets/images/logo.png" status="online" show-status="true"></ui-avatar>
|
|
342
|
+
<ui-avatar name="Charlie Brown" src="/build/assets/images/logo.png"></ui-avatar>
|
|
343
|
+
<ui-avatar name="David Grey" src="/build/assets/images/logo.png"></ui-avatar>
|
|
344
|
+
<ui-avatar name="Eve Wilson" src="/build/assets/images/logo.png"></ui-avatar>
|
|
345
|
+
<ui-avatar name="Frank Castle" src="/build/assets/images/logo.png"></ui-avatar>
|
|
225
346
|
</ui-avatar>
|
|
226
347
|
</div>
|
|
227
348
|
|
|
228
349
|
<div>
|
|
229
|
-
<p style="font-size: 11px; font-weight: 600; color:
|
|
350
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin-bottom: 12px;">SHAPE: SQUIRCLE | BORDERED</p>
|
|
230
351
|
<ui-avatar group="true" size="l" shape="squircle" group-border-color="#10b981" group-border-width="3">
|
|
231
352
|
<ui-avatar name="User A"></ui-avatar>
|
|
232
353
|
<ui-avatar name="User B" auto-color="true"></ui-avatar>
|
|
@@ -239,25 +360,229 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
239
360
|
</div>
|
|
240
361
|
|
|
241
362
|
<div class="demo-card">
|
|
242
|
-
<h4 style="margin-bottom: 24px; color:
|
|
243
|
-
<p style="color:
|
|
363
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Responsive Grid Layout</h4>
|
|
364
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">For displaying a large number of participants in a compact space.</p>
|
|
244
365
|
<ui-avatar group="true" layout="grid" spacing="8" size="m" shape="squircle">
|
|
245
|
-
<ui-avatar name="Participant 1" src="
|
|
246
|
-
<ui-avatar name="Participant 2" src="
|
|
247
|
-
<ui-avatar name="Participant 3" src="
|
|
248
|
-
<ui-avatar name="Participant 4" src="
|
|
249
|
-
<ui-avatar name="Participant 5" src="
|
|
250
|
-
<ui-avatar name="Participant 6" src="
|
|
251
|
-
<ui-avatar name="Participant 7" src="
|
|
252
|
-
<ui-avatar name="Participant 8" src="
|
|
253
|
-
<ui-avatar name="Participant 9" src="
|
|
254
|
-
<ui-avatar name="Participant 10" src="
|
|
255
|
-
<ui-avatar name="Participant 11" src="
|
|
256
|
-
<ui-avatar name="Participant 12" src="
|
|
366
|
+
<ui-avatar name="Participant 1" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
367
|
+
<ui-avatar name="Participant 2" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
368
|
+
<ui-avatar name="Participant 3" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
369
|
+
<ui-avatar name="Participant 4" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
370
|
+
<ui-avatar name="Participant 5" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
371
|
+
<ui-avatar name="Participant 6" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
372
|
+
<ui-avatar name="Participant 7" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
373
|
+
<ui-avatar name="Participant 8" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
374
|
+
<ui-avatar name="Participant 9" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
375
|
+
<ui-avatar name="Participant 10" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
376
|
+
<ui-avatar name="Participant 11" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
377
|
+
<ui-avatar name="Participant 12" auto-color="true" src="/build/assets/images/logo.png"></ui-avatar>
|
|
378
|
+
</ui-avatar>
|
|
379
|
+
</div>
|
|
380
|
+
|
|
381
|
+
<div class="demo-card">
|
|
382
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Animated Group — Smooth Hover Shift</h4>
|
|
383
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">Add <code>animated="true"</code> and <code>overlap</code> to the group for the Phase 8 hover-shift effect — hover an avatar to see siblings smoothly shift away.</p>
|
|
384
|
+
<ui-avatar group="true" animated="true" overlap="-12" size="l">
|
|
385
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=1" tooltip-text="Alice"></ui-avatar>
|
|
386
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=2" tooltip-text="Bob"></ui-avatar>
|
|
387
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=3" tooltip-text="Charlie"></ui-avatar>
|
|
388
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=4" tooltip-text="Diana"></ui-avatar>
|
|
389
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=5" tooltip-text="Ethan"></ui-avatar>
|
|
390
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=6" tooltip-text="Fiona"></ui-avatar>
|
|
391
|
+
</ui-avatar>
|
|
392
|
+
<p style="font-size: 11px; color:var(--text-secondary,#64748b); margin-top: 12px;">Usage: <code><ui-avatar group="true" animated="true" overlap="-12"></code></p>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<div class="demo-card">
|
|
396
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Size Comparison</h4>
|
|
397
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">Groups scale uniformly across the standard size scale — <code>s</code>, <code>m</code>, and <code>l</code> shown side-by-side.</p>
|
|
398
|
+
<div style="display: flex; gap: 48px; align-items: center; flex-wrap: wrap;">
|
|
399
|
+
<div>
|
|
400
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin: 0 0 12px; text-transform: uppercase;">Small (s)</p>
|
|
401
|
+
<ui-avatar group="true" size="s">
|
|
402
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=10" tooltip-text="User A"></ui-avatar>
|
|
403
|
+
<ui-avatar icon="user" icon-library="fontawesome" bg-color="#f56a00" tooltip-text="User B"></ui-avatar>
|
|
404
|
+
<ui-avatar content="A" bg-color="#87d068" tooltip-text="User C"></ui-avatar>
|
|
405
|
+
</ui-avatar>
|
|
406
|
+
</div>
|
|
407
|
+
<div>
|
|
408
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin: 0 0 12px; text-transform: uppercase;">Medium (m)</p>
|
|
409
|
+
<ui-avatar group="true" size="m">
|
|
410
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=11" tooltip-text="User A"></ui-avatar>
|
|
411
|
+
<ui-avatar icon="user" icon-library="fontawesome" bg-color="#f56a00" tooltip-text="User B"></ui-avatar>
|
|
412
|
+
<ui-avatar content="A" bg-color="#87d068" tooltip-text="User C"></ui-avatar>
|
|
413
|
+
</ui-avatar>
|
|
414
|
+
</div>
|
|
415
|
+
<div>
|
|
416
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin: 0 0 12px; text-transform: uppercase;">Large (l)</p>
|
|
417
|
+
<ui-avatar group="true" size="l">
|
|
418
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=12" tooltip-text="User A"></ui-avatar>
|
|
419
|
+
<ui-avatar icon="user" icon-library="fontawesome" bg-color="#f56a00" tooltip-text="User B"></ui-avatar>
|
|
420
|
+
<ui-avatar content="A" bg-color="#87d068" tooltip-text="User C"></ui-avatar>
|
|
421
|
+
</ui-avatar>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
<div class="demo-card">
|
|
427
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Text Avatars — Shape Variants & Overflow Popover</h4>
|
|
428
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">Initial-based avatars in groups. Set <code>max-visible</code> to cap the count and <code>enable-popover</code> for the overflow roster popup.</p>
|
|
429
|
+
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
430
|
+
<div>
|
|
431
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin: 0 0 12px; text-transform: uppercase;">Circle (default) — max-visible=4</p>
|
|
432
|
+
<ui-avatar group="true" max-visible="4" enable-popover="true" size="m">
|
|
433
|
+
<ui-avatar content="A" bg-color="#1890ff" tooltip-text="Alice Johnson"></ui-avatar>
|
|
434
|
+
<ui-avatar content="B" bg-color="#52c41a" tooltip-text="Bob Smith"></ui-avatar>
|
|
435
|
+
<ui-avatar content="C" bg-color="#faad14" tooltip-text="Charlie Brown"></ui-avatar>
|
|
436
|
+
<ui-avatar content="D" bg-color="#f5222d" tooltip-text="Diana Prince"></ui-avatar>
|
|
437
|
+
<ui-avatar content="E" bg-color="#722ed1" tooltip-text="Emily Davis"></ui-avatar>
|
|
438
|
+
<ui-avatar content="F" bg-color="#eb2f96" tooltip-text="Frank Miller"></ui-avatar>
|
|
439
|
+
</ui-avatar>
|
|
440
|
+
</div>
|
|
441
|
+
<div>
|
|
442
|
+
<p style="font-size: 11px; font-weight: 600; color:var(--text-secondary,#64748b); margin: 0 0 12px; text-transform: uppercase;">Square shape — max-visible=4</p>
|
|
443
|
+
<ui-avatar group="true" max-visible="4" shape="square" size="m">
|
|
444
|
+
<ui-avatar content="A" bg-color="#1890ff" tooltip-text="Alice Johnson"></ui-avatar>
|
|
445
|
+
<ui-avatar content="B" bg-color="#52c41a" tooltip-text="Bob Smith"></ui-avatar>
|
|
446
|
+
<ui-avatar content="C" bg-color="#faad14" tooltip-text="Charlie Brown"></ui-avatar>
|
|
447
|
+
<ui-avatar content="D" bg-color="#f5222d" tooltip-text="Diana Prince"></ui-avatar>
|
|
448
|
+
<ui-avatar content="E" bg-color="#722ed1" tooltip-text="Emily Davis"></ui-avatar>
|
|
449
|
+
<ui-avatar content="F" bg-color="#eb2f96" tooltip-text="Frank Miller"></ui-avatar>
|
|
450
|
+
</ui-avatar>
|
|
451
|
+
</div>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
|
|
455
|
+
<div class="demo-card">
|
|
456
|
+
<h4 style="margin-bottom: 24px; color:var(--text-primary,#1e293b); border-bottom: 1px solid #f1f5f9; padding-bottom: 12px;">Group with Mixed Status</h4>
|
|
457
|
+
<p style="color:var(--text-secondary,#64748b); font-size: 13px; margin-bottom: 24px;">Status indicators are preserved per-avatar inside groups — showing each member's individual presence state.</p>
|
|
458
|
+
<ui-avatar group="true" max-visible="5" size="l">
|
|
459
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=30" show-status="true" status="online" tooltip-text="Sarah — Online"></ui-avatar>
|
|
460
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=31" show-status="true" status="away" tooltip-text="Mike — Away"></ui-avatar>
|
|
461
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=32" show-status="true" status="busy" tooltip-text="Alex — Busy"></ui-avatar>
|
|
462
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=33" show-status="true" status="offline" tooltip-text="Emma — Offline"></ui-avatar>
|
|
463
|
+
<ui-avatar content="+3" bg-color="#1890ff" show-status="true" status="dnd" tooltip-text="+3 others (DND)"></ui-avatar>
|
|
464
|
+
</ui-avatar>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
`;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
const showReferenceCoverage = () => {
|
|
471
|
+
updateActiveBtn('reference');
|
|
472
|
+
const responsiveAvatarId = `responsiveAvatar_${targetId}`;
|
|
473
|
+
const clickAvatarId = `clickableAvatar_${targetId}`;
|
|
474
|
+
const clickMsgId = `clickMessage_${targetId}`;
|
|
475
|
+
|
|
476
|
+
container.innerHTML = `
|
|
477
|
+
<div class="demo-grid" style="display:grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px;">
|
|
478
|
+
<div class="demo-card">
|
|
479
|
+
<h4 style="margin-bottom: 14px;">Badge Overlay Positions</h4>
|
|
480
|
+
<div style="display:flex; gap:16px; flex-wrap:wrap; align-items:center;">
|
|
481
|
+
<ui-avatar name="Jane Doe" badge="3" badge-position="top-right" badge-color="#ef4444" size="l"></ui-avatar>
|
|
482
|
+
<ui-avatar name="John Smith" badge="99+" badge-position="bottom-right" badge-color="#10b981" size="l"></ui-avatar>
|
|
483
|
+
<ui-avatar name="Alice Brown" badge="NEW" badge-position="top-left" badge-color="#f59e0b" size="l"></ui-avatar>
|
|
484
|
+
<ui-avatar name="Bob Wilson" badge="!" badge-position="bottom-left" badge-color="#0ea5e9" size="l"></ui-avatar>
|
|
485
|
+
</div>
|
|
486
|
+
</div>
|
|
487
|
+
|
|
488
|
+
<div class="demo-card">
|
|
489
|
+
<h4 style="margin-bottom: 14px;">Image Fit Modes</h4>
|
|
490
|
+
<div style="display:flex; gap:16px; flex-wrap:wrap; align-items:center;">
|
|
491
|
+
<div style="text-align:center;"><ui-avatar src="https://i.pravatar.cc/150?img=8" fit="cover" size="l"></ui-avatar><p style="font-size:11px;margin-top:6px;">cover</p></div>
|
|
492
|
+
<div style="text-align:center;"><ui-avatar src="https://i.pravatar.cc/150?img=8" fit="contain" size="l"></ui-avatar><p style="font-size:11px;margin-top:6px;">contain</p></div>
|
|
493
|
+
<div style="text-align:center;"><ui-avatar src="https://i.pravatar.cc/150?img=8" fit="fill" size="l"></ui-avatar><p style="font-size:11px;margin-top:6px;">fill</p></div>
|
|
494
|
+
<div style="text-align:center;"><ui-avatar src="https://i.pravatar.cc/150?img=8" fit="scale-down" size="l"></ui-avatar><p style="font-size:11px;margin-top:6px;">scale-down</p></div>
|
|
495
|
+
</div>
|
|
496
|
+
</div>
|
|
497
|
+
|
|
498
|
+
<div class="demo-card">
|
|
499
|
+
<h4 style="margin-bottom: 14px;">Custom Borders + Tooltip</h4>
|
|
500
|
+
<div style="display:flex; gap:16px; align-items:center; flex-wrap:wrap;">
|
|
501
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=14" border="2px solid #1890ff" tooltip-text="Premium User" size="l"></ui-avatar>
|
|
502
|
+
<ui-avatar icon="user" icon-library="fontawesome" bg-color="#87d068" border="3px dashed #f56a00" tooltip-text="Active Member" size="l"></ui-avatar>
|
|
503
|
+
<ui-avatar content="VIP" bg-color="#722ed1" color="#fff" border="2px solid #eb2f96" tooltip-text="VIP Member" size="l"></ui-avatar>
|
|
504
|
+
</div>
|
|
505
|
+
</div>
|
|
506
|
+
|
|
507
|
+
<div class="demo-card">
|
|
508
|
+
<h4 style="margin-bottom: 14px;">Lazy Loading + Clickable Event</h4>
|
|
509
|
+
<div style="display:flex; gap:20px; align-items:center; flex-wrap:wrap;">
|
|
510
|
+
<div style="text-align:center;">
|
|
511
|
+
<ui-avatar src="https://i.pravatar.cc/150?img=20" lazy="true" size="l"></ui-avatar>
|
|
512
|
+
<p style="font-size:11px;margin-top:6px;">lazy=true</p>
|
|
513
|
+
</div>
|
|
514
|
+
<div style="text-align:center;">
|
|
515
|
+
<ui-avatar id="${clickAvatarId}" name="Click Me" clickable="true" size="xl" animation="pulse"></ui-avatar>
|
|
516
|
+
<p style="font-size:11px;margin-top:6px;">clickable</p>
|
|
517
|
+
</div>
|
|
518
|
+
</div>
|
|
519
|
+
<div id="${clickMsgId}" style="margin-top:8px; font-size:12px; color:var(--text-secondary,#64748b);">Click the avatar to trigger interaction.</div>
|
|
520
|
+
</div>
|
|
521
|
+
|
|
522
|
+
<div class="demo-card">
|
|
523
|
+
<h4 style="margin-bottom: 14px;">Responsive Size</h4>
|
|
524
|
+
<p style="font-size:12px; color:var(--text-secondary,#64748b); margin-bottom:12px;">Resize viewport: avatar adapts per breakpoint map.</p>
|
|
525
|
+
<div style="display:flex; align-items:center; gap:16px;">
|
|
526
|
+
<ui-avatar id="${responsiveAvatarId}" icon="user" icon-library="fontawesome" size="m"></ui-avatar>
|
|
527
|
+
<code style="font-size:11px;">{ xs:24, sm:32, md:40, lg:48, xl:64 }</code>
|
|
528
|
+
</div>
|
|
529
|
+
</div>
|
|
530
|
+
|
|
531
|
+
<div class="demo-card">
|
|
532
|
+
<h4 style="margin-bottom: 14px;">Icon Matrix</h4>
|
|
533
|
+
<div style="display:flex; gap:12px; flex-wrap:wrap; align-items:center;">
|
|
534
|
+
<ui-avatar icon="user" icon-library="fontawesome" bg-color="#1890ff"></ui-avatar>
|
|
535
|
+
<ui-avatar icon="robot" icon-library="fontawesome" bg-color="#722ed1"></ui-avatar>
|
|
536
|
+
<ui-avatar icon="crown" icon-library="fontawesome" bg-color="#f56a00"></ui-avatar>
|
|
537
|
+
<ui-avatar icon="star" icon-library="fontawesome" bg-color="#faad14"></ui-avatar>
|
|
538
|
+
<ui-avatar icon="heart" icon-library="fontawesome" bg-color="#eb2f96"></ui-avatar>
|
|
539
|
+
<ui-avatar icon="github" icon-library="fontawesome" bg-color="#000"></ui-avatar>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
|
|
543
|
+
<div class="demo-card">
|
|
544
|
+
<h4 style="margin-bottom: 14px;">Tooltips & Group Popover</h4>
|
|
545
|
+
<p style="font-size: 12px; color:var(--text-secondary,#64748b); margin-bottom: 12px;">Hover over individual avatars to see <code>tooltip-text</code>. Hover over the <strong>+N</strong> overflow counter to see a popover listing all hidden members via <code>enable-popover</code>.</p>
|
|
546
|
+
<div style="display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-bottom:20px;">
|
|
547
|
+
<ui-avatar content="AJ" bg-color="#1890ff" tooltip-text="Alice Johnson — Product Manager" size="l"></ui-avatar>
|
|
548
|
+
<ui-avatar icon="code" icon-library="lucide" bg-color="#52c41a" tooltip-text="Bob Smith — Senior Developer" size="l"></ui-avatar>
|
|
549
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=20" tooltip-text="Charlie Brown — UX Designer" size="l"></ui-avatar>
|
|
550
|
+
</div>
|
|
551
|
+
<p style="font-size: 11px; font-weight:600; color:var(--text-secondary,#64748b); margin-bottom:10px; text-transform:uppercase;">Group with overflow popover (max=3)</p>
|
|
552
|
+
<ui-avatar group="true" max-visible="3" enable-popover="true" size="l">
|
|
553
|
+
<ui-avatar content="AJ" bg-color="#1890ff" tooltip-text="Alice Johnson"></ui-avatar>
|
|
554
|
+
<ui-avatar content="BS" bg-color="#52c41a" tooltip-text="Bob Smith"></ui-avatar>
|
|
555
|
+
<ui-avatar content="CB" bg-color="#faad14" tooltip-text="Charlie Brown"></ui-avatar>
|
|
556
|
+
<ui-avatar content="DP" bg-color="#f5222d" tooltip-text="Diana Prince"></ui-avatar>
|
|
557
|
+
<ui-avatar content="ED" bg-color="#722ed1" tooltip-text="Emily Davis"></ui-avatar>
|
|
558
|
+
<ui-avatar content="FM" bg-color="#eb2f96" tooltip-text="Frank Miller"></ui-avatar>
|
|
559
|
+
</ui-avatar>
|
|
560
|
+
<p style="font-size: 11px; font-weight:600; color:var(--text-secondary,#64748b); margin-top:16px; margin-bottom:10px; text-transform:uppercase;">Image group with popover (max=4)</p>
|
|
561
|
+
<ui-avatar group="true" max-visible="4" enable-popover="true" size="l">
|
|
562
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=21" tooltip-text="Alex Turner — CEO"></ui-avatar>
|
|
563
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=22" tooltip-text="Sarah Connor — CTO"></ui-avatar>
|
|
564
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=23" tooltip-text="Mike Ross — CFO"></ui-avatar>
|
|
565
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=24" tooltip-text="Rachel Green — CMO"></ui-avatar>
|
|
566
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=25" tooltip-text="Tom Hardy — VP Engineering"></ui-avatar>
|
|
567
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=26" tooltip-text="Emma Watson — VP Design"></ui-avatar>
|
|
568
|
+
<ui-avatar src="https://api.dicebear.com/7.x/miniavs/svg?seed=27" tooltip-text="Chris Evans — VP Sales"></ui-avatar>
|
|
257
569
|
</ui-avatar>
|
|
258
570
|
</div>
|
|
259
571
|
</div>
|
|
260
572
|
`;
|
|
573
|
+
|
|
574
|
+
const responsiveAvatar = section.querySelector(`#${responsiveAvatarId}`);
|
|
575
|
+
if (responsiveAvatar) {
|
|
576
|
+
responsiveAvatar.responsiveSize = { xs: 24, sm: 32, md: 40, lg: 48, xl: 64 };
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
const clickableAvatar = section.querySelector(`#${clickAvatarId}`);
|
|
580
|
+
const clickMsg = section.querySelector(`#${clickMsgId}`);
|
|
581
|
+
if (clickableAvatar && clickMsg) {
|
|
582
|
+
clickableAvatar.addEventListener('avatarClick', () => {
|
|
583
|
+
clickMsg.textContent = `Avatar clicked at ${new Date().toLocaleTimeString()}`;
|
|
584
|
+
});
|
|
585
|
+
}
|
|
261
586
|
};
|
|
262
587
|
|
|
263
588
|
const updateAvatarPlayground = () => {
|
|
@@ -267,6 +592,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
267
592
|
const library = section.querySelector('#playLibrary').value;
|
|
268
593
|
const status = section.querySelector('#playStatus').value;
|
|
269
594
|
const statusPos = section.querySelector('#playStatusPos').value;
|
|
595
|
+
const indicatorSize = section.querySelector('#playIndicatorSize').value;
|
|
270
596
|
const anim = section.querySelector('#playAnim').value;
|
|
271
597
|
|
|
272
598
|
const showStatus = section.querySelector('#playShowStatus')?.checked || section.querySelector('#playShowStatus')?.getAttribute('checked') === 'true';
|
|
@@ -296,9 +622,10 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
296
622
|
statusCheckbox.checked = true;
|
|
297
623
|
}
|
|
298
624
|
|
|
299
|
-
if (showStatus ||
|
|
625
|
+
if (showStatus || statusCheckbox?.checked) props.push(`show-status`);
|
|
300
626
|
if (status) props.push(`status="${status}"`);
|
|
301
627
|
if ((showStatus || status) && statusPos !== 'bottom-right') props.push(`status-position="${statusPos}"`);
|
|
628
|
+
if (indicatorSize) props.push(`indicator-size="${indicatorSize}"`);
|
|
302
629
|
if (pulse) props.push(`status-pulse`);
|
|
303
630
|
|
|
304
631
|
if (anim !== 'none') props.push(`animation="${anim}"`);
|
|
@@ -340,10 +667,10 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
340
667
|
container.innerHTML = `
|
|
341
668
|
<div style="display: grid; grid-template-columns: 350px 1fr; gap: 40px;">
|
|
342
669
|
<!-- Controls -->
|
|
343
|
-
<div style="background:
|
|
344
|
-
<h5 style="margin: 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:
|
|
670
|
+
<div style="background:var(--bg-secondary,#f8fafc); padding: 24px; border-radius: 16px; border:1px solid var(--border-default,#e2e8f0); display: flex; flex-direction: column; gap: 20px;">
|
|
671
|
+
<h5 style="margin: 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:var(--text-secondary,#64748b);">Visual Configuration</h5>
|
|
345
672
|
|
|
346
|
-
<ui-input id="playValue" label="Source Value" value="
|
|
673
|
+
<ui-input id="playValue" label="Source Value" value="/build/assets/images/logo.png" placeholder="URL, Initials or Icon name"></ui-input>
|
|
347
674
|
|
|
348
675
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
|
349
676
|
<ui-dropdown id="playShape" label="Shape" value="circle">
|
|
@@ -377,7 +704,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
377
704
|
<option value="se">SE Icons</option>
|
|
378
705
|
</ui-dropdown>
|
|
379
706
|
|
|
380
|
-
<h5 style="margin: 20px 0 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:
|
|
707
|
+
<h5 style="margin: 20px 0 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:var(--text-secondary,#64748b);">Presence & Status</h5>
|
|
381
708
|
|
|
382
709
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px;">
|
|
383
710
|
<ui-dropdown id="playStatus" label="Status" value="">
|
|
@@ -395,6 +722,15 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
395
722
|
</ui-dropdown>
|
|
396
723
|
</div>
|
|
397
724
|
|
|
725
|
+
<ui-dropdown id="playIndicatorSize" label="Indicator Size" value="">
|
|
726
|
+
<option value="">Default</option>
|
|
727
|
+
<option value="8">8px</option>
|
|
728
|
+
<option value="10">10px</option>
|
|
729
|
+
<option value="14">14px</option>
|
|
730
|
+
<option value="18">18px</option>
|
|
731
|
+
<option value="1rem">1rem</option>
|
|
732
|
+
</ui-dropdown>
|
|
733
|
+
|
|
398
734
|
<ui-dropdown id="playAnim" label="Animation" value="none">
|
|
399
735
|
<option value="none">None</option>
|
|
400
736
|
<option value="pulse">Pulse</option>
|
|
@@ -409,7 +745,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
409
745
|
<ui-checkbox id="playStory" label="Story Ring"></ui-checkbox>
|
|
410
746
|
</div>
|
|
411
747
|
|
|
412
|
-
<h5 style="margin: 20px 0 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:
|
|
748
|
+
<h5 style="margin: 20px 0 0; font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; color:var(--text-secondary,#64748b);">Advanced Effects</h5>
|
|
413
749
|
|
|
414
750
|
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px;">
|
|
415
751
|
<ui-checkbox id="playVerified" label="Verified"></ui-checkbox>
|
|
@@ -421,12 +757,12 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
421
757
|
|
|
422
758
|
<!-- Preview -->
|
|
423
759
|
<div style="display: flex; flex-direction: column; gap: 24px;">
|
|
424
|
-
<div style="flex: 1; min-height: 300px; background:
|
|
760
|
+
<div style="flex: 1; min-height: 300px; background:var(--bg-tertiary,#f1f5f9); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;">
|
|
425
761
|
<!-- Background pattern -->
|
|
426
762
|
<div style="position: absolute; inset: 0; opacity: 0.05; background-image: radial-gradient(#000 1px, transparent 1px); background-size: 20px 20px;"></div>
|
|
427
763
|
|
|
428
764
|
<div id="playOutput" style="transform: scale(2.5);">
|
|
429
|
-
<ui-avatar src="
|
|
765
|
+
<ui-avatar src="/build/assets/images/logo.png" size="m"></ui-avatar>
|
|
430
766
|
</div>
|
|
431
767
|
</div>
|
|
432
768
|
|
|
@@ -439,21 +775,22 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
439
775
|
|
|
440
776
|
<style>
|
|
441
777
|
.control-label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #475569; }
|
|
442
|
-
.control-input, .control-select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; color:
|
|
778
|
+
.control-input, .control-select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; color:var(--text-primary,#1e293b); transition: border-color 0.2s; }
|
|
443
779
|
.control-input:focus, .control-select:focus { border-color: #10b981; outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
|
|
444
|
-
.demo-card { padding: 24px; background:
|
|
445
|
-
.demo-card:hover { transform: translateY(-4px); border-color:
|
|
780
|
+
.demo-card { padding: 24px; background:var(--bg-primary,white); border:1px solid var(--border-subtle,#f1f5f9); border-radius: 16px; transition: transform 0.3s ease; }
|
|
781
|
+
.demo-card:hover { transform: translateY(-4px); border-color:var(--border-default,#e2e8f0); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
|
|
446
782
|
</style>
|
|
447
783
|
`;
|
|
448
784
|
|
|
449
785
|
const playgroundControls = [
|
|
450
786
|
{ id: 'playValue', event: 'inputChange' },
|
|
451
|
-
{ id: 'playShape', event: '
|
|
452
|
-
{ id: 'playSize', event: '
|
|
453
|
-
{ id: 'playLibrary', event: '
|
|
454
|
-
{ id: 'playStatus', event: '
|
|
455
|
-
{ id: 'playStatusPos', event: '
|
|
456
|
-
{ id: '
|
|
787
|
+
{ id: 'playShape', event: 'valueChange' },
|
|
788
|
+
{ id: 'playSize', event: 'valueChange' },
|
|
789
|
+
{ id: 'playLibrary', event: 'valueChange' },
|
|
790
|
+
{ id: 'playStatus', event: 'valueChange' },
|
|
791
|
+
{ id: 'playStatusPos', event: 'valueChange' },
|
|
792
|
+
{ id: 'playIndicatorSize', event: 'valueChange' },
|
|
793
|
+
{ id: 'playAnim', event: 'valueChange' },
|
|
457
794
|
{ id: 'playShowStatus', event: 'checkboxChange' },
|
|
458
795
|
{ id: 'playPulse', event: 'checkboxChange' },
|
|
459
796
|
{ id: 'playSpeaker', event: 'checkboxChange' },
|
|
@@ -485,6 +822,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
485
822
|
presence: showStatusAndPresence,
|
|
486
823
|
social: showSocialFeatures,
|
|
487
824
|
groups: showAvatarGroups,
|
|
825
|
+
reference: showReferenceCoverage,
|
|
488
826
|
};
|
|
489
827
|
|
|
490
828
|
// --- Initialization ---
|
|
@@ -493,7 +831,7 @@ export function initAvatarDemo(targetId = 'avatar') {
|
|
|
493
831
|
if (nav) {
|
|
494
832
|
nav.querySelectorAll('ui-button').forEach(btn => {
|
|
495
833
|
btn.addEventListener('click', () => {
|
|
496
|
-
const demo = btn.
|
|
834
|
+
const demo = btn.dataset.demo;
|
|
497
835
|
if (demoMap[demo]) demoMap[demo]();
|
|
498
836
|
});
|
|
499
837
|
});
|