atomicuilibrary 0.0.1 → 0.1.0
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 +1 -1
- package/dist/cjs/exploration-project-tailwind.cjs.js +1 -1
- package/dist/cjs/layout-manager.cjs.entry.js +1 -1
- package/dist/cjs/library-card.cjs.entry.js +1 -1
- package/dist/cjs/lm-container_2.cjs.entry.js +1 -1
- package/dist/cjs/lm-panel_3.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/my-step.cjs.entry.js +1 -1
- package/dist/cjs/nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/{security-E1JcwxGc.js → security-CNaNip8F.js} +88 -154
- package/dist/cjs/smart-step.cjs.entry.js +2 -2
- package/dist/cjs/timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/{ui-accordion_10.cjs.entry.js → ui-accordion_11.cjs.entry.js} +613 -26
- package/dist/cjs/ui-advanced-data-table.cjs.entry.js +1 -1
- package/dist/cjs/ui-anchor.cjs.entry.js +1 -1
- package/dist/cjs/ui-aside-panel.cjs.entry.js +5 -5
- package/dist/cjs/ui-avatar-group_3.cjs.entry.js +5 -5
- package/dist/cjs/ui-callout-banner.cjs.entry.js +1 -1
- package/dist/cjs/ui-card.cjs.entry.js +26 -4
- package/dist/cjs/ui-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ui-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/ui-code-preview.cjs.entry.js +1 -1
- package/dist/cjs/ui-color-controller.cjs.entry.js +1 -1
- package/dist/cjs/ui-dialog-box.cjs.entry.js +1 -1
- package/dist/cjs/ui-dock-host.cjs.entry.js +3 -3
- package/dist/cjs/ui-drag-drop.cjs.entry.js +1 -1
- package/dist/cjs/ui-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ui-fab-item.cjs.entry.js +1 -1
- package/dist/cjs/ui-fab.cjs.entry.js +2 -2
- package/dist/cjs/ui-library.cjs.entry.js +1 -1
- package/dist/cjs/ui-list-group_2.cjs.entry.js +9 -5
- package/dist/cjs/ui-list.cjs.entry.js +4 -4
- package/dist/cjs/ui-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/ui-otp-input.cjs.entry.js +2 -2
- package/dist/cjs/{ui-pagination_3.cjs.entry.js → ui-pagination_4.cjs.entry.js} +202 -0
- package/dist/cjs/ui-pattern-input.cjs.entry.js +5 -5
- package/dist/cjs/ui-popover.cjs.entry.js +1 -1
- package/dist/cjs/ui-progress.cjs.entry.js +101 -17
- package/dist/cjs/ui-resizable-panel.cjs.entry.js +1 -1
- package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/ui-smart-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ui-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/ui-step.cjs.entry.js +1 -1
- package/dist/cjs/ui-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ui-switch.cjs.entry.js +9 -9
- package/dist/cjs/ui-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ui-timeline.cjs.entry.js +1 -1
- package/dist/cjs/ui-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/ui-tooltip.cjs.entry.js +4 -4
- package/dist/cjs/ui-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/ui-workspace-manager.cjs.entry.js +1 -1
- package/dist/collection/assets/js/demo-loader.js +0 -1
- package/dist/collection/assets/js/demos/accordion-demo.js +189 -0
- package/dist/collection/assets/js/demos/advanced-data-table-demo.js +213 -214
- package/dist/collection/assets/js/demos/aside-panel-demo.js +6 -6
- package/dist/collection/assets/js/demos/button-demo.js +60 -1
- package/dist/collection/assets/js/demos/callout-banner-demo.js +324 -34
- package/dist/collection/assets/js/demos/card-demo.js +108 -61
- package/dist/collection/assets/js/demos/context-menu-demo.js +433 -12
- package/dist/collection/assets/js/demos/dock-demo.js +80 -60
- package/dist/collection/assets/js/demos/documentation-demo.js +227 -22
- package/dist/collection/assets/js/demos/empty-state-demo.js +10 -10
- package/dist/collection/assets/js/demos/list-demo.js +41 -18
- package/dist/collection/assets/js/demos/masonry-demo.js +164 -0
- package/dist/collection/assets/js/demos/progress-demo.js +701 -8
- package/dist/collection/assets/js/demos/radio-demo.js +1 -1
- package/dist/collection/assets/js/demos/splitter-demo.js +137 -0
- package/dist/collection/assets/js/demos/tag-demo.js +48 -18
- package/dist/collection/assets/js/demos/timeline-demo.js +20 -7
- package/dist/collection/assets/js/demos/tooltip-demo.js +26 -26
- package/dist/collection/assets/js/demos/tree-demo.js +28 -10
- package/dist/collection/collection-manifest.json +1 -4
- package/dist/collection/components/accordion/accordion.css +301 -0
- package/dist/collection/components/accordion/accordion.js +40 -8
- package/dist/collection/components/advanced-data-table/advanced-data-table.css +19 -5
- package/dist/collection/components/anchor/anchor.css +0 -2
- package/dist/collection/components/aside-panel/aside-panel.css +1 -3
- package/dist/collection/components/aside-panel/aside-panel.js +5 -5
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/badge/badge.css +1 -0
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/button/button.css +131 -0
- package/dist/collection/components/button/button.js +128 -9
- package/dist/collection/components/card/card.css +83 -31
- package/dist/collection/components/card/card.js +46 -3
- package/dist/collection/components/checkbox/checkbox.css +8 -10
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- 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-controller/color-controller.js +1 -1
- package/dist/collection/components/context-menu/context-menu.css +3 -3
- package/dist/collection/components/dialog-box/dialog-box.js +1 -1
- package/dist/collection/components/dialog-header/dialog-header.js +1 -1
- 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/empty-state/empty-state.js +1 -1
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab-item/fab-item.js +1 -1
- 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.js +4 -4
- 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.js +4 -4
- package/dist/collection/components/list-item/list-item.css +24 -0
- package/dist/collection/components/list-item/list-item.js +35 -4
- package/dist/collection/components/loader/loader.css +1635 -0
- package/dist/collection/components/loader/loader.js +1120 -0
- package/dist/collection/components/my-step/my-step.js +1 -1
- package/dist/collection/components/nav-bar/nav-bar.js +6 -6
- package/dist/collection/components/otp-input/otp-input.js +2 -2
- package/dist/collection/components/pattern-input/pattern-input.js +5 -5
- package/dist/collection/components/progress/progress.css +150 -15
- package/dist/collection/components/progress/progress.js +180 -18
- package/dist/collection/components/radio/radio.css +3 -3
- package/dist/collection/components/radio/radio.js +1 -1
- package/dist/collection/components/resizable-panel/resizable-panel.js +1 -1
- package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +2 -2
- package/dist/collection/components/smart-stepper/smart-step.js +2 -2
- package/dist/collection/components/smart-stepper/smart-stepper.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/collection/components/speed-dial/speed-dial.js +1 -1
- package/dist/collection/components/stack/stack.js +2 -2
- package/dist/collection/components/step/step.js +1 -1
- package/dist/collection/components/switch/switch.js +10 -10
- package/dist/collection/components/tag-group/tag-group.js +2 -2
- package/dist/collection/components/timeline-item/timeline-item.js +1 -1
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/top-bar/top-bar.js +2 -2
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +19 -4
- package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +6 -6
- package/dist/collection/components/ui-navigation-bar/navigation-item.js +3 -3
- package/dist/collection/components.js +1 -0
- 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/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/dropdown.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +1 -1
- package/dist/components/layout-manager.js +1 -1
- package/dist/components/library-card2.js +1 -1
- package/dist/components/list-group.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/lm-container2.js +1 -1
- package/dist/components/lm-floating-window2.js +1 -1
- package/dist/components/lm-panel2.js +1 -1
- package/dist/components/lm-splitter2.js +1 -1
- package/dist/components/lm-tabs2.js +1 -1
- package/dist/components/loader.js +1 -0
- package/dist/components/my-step.js +1 -1
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/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-aside-panel.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-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-controller.js +1 -1
- package/dist/components/ui-color-picker.js +1 -1
- package/dist/components/ui-command-palette.js +1 -1
- package/dist/components/ui-dialog-box.js +1 -1
- package/dist/components/ui-divider.js +1 -1
- package/dist/components/ui-dock-host.js +1 -1
- package/dist/components/ui-dock.js +1 -1
- package/dist/components/ui-drag-drop.js +1 -1
- package/dist/components/ui-empty-state.js +1 -1
- package/dist/components/ui-fab-item.js +1 -1
- package/dist/components/ui-fab.js +1 -1
- package/dist/components/ui-file-upload.js +1 -1
- package/dist/components/ui-horizontal-nav.js +1 -1
- package/dist/components/ui-knob.js +1 -1
- package/dist/components/ui-library.js +1 -1
- package/dist/components/ui-list.js +1 -1
- package/dist/components/{ui-input-pair.d.ts → ui-loader.d.ts} +4 -4
- package/dist/components/ui-loader.js +1 -0
- package/dist/components/ui-masonry.js +1 -1
- package/dist/components/ui-meter-group.js +1 -1
- package/dist/components/ui-navigation-bar.js +1 -1
- package/dist/components/ui-navigation-item.js +1 -1
- package/dist/components/ui-number-input.js +1 -1
- package/dist/components/ui-otp-input.js +1 -1
- package/dist/components/ui-panel.js +1 -1
- package/dist/components/ui-pattern-input.js +1 -1
- package/dist/components/ui-popover.js +1 -1
- package/dist/components/ui-progress.js +1 -1
- package/dist/components/ui-scroll-top.js +1 -1
- package/dist/components/ui-smart-context-menu.js +1 -1
- package/dist/components/ui-smart-location-dropdown.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-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 +1 -1
- package/dist/esm/exploration-project-tailwind.js +1 -1
- package/dist/esm/layout-manager.entry.js +1 -1
- package/dist/esm/library-card.entry.js +1 -1
- package/dist/esm/lm-container_2.entry.js +1 -1
- package/dist/esm/lm-panel_3.entry.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/my-step.entry.js +1 -1
- package/dist/esm/nav-bar.entry.js +2 -2
- package/dist/esm/{security-D2WzX6vR.js → security-Dyu3Nplq.js} +88 -154
- package/dist/esm/smart-step.entry.js +2 -2
- package/dist/esm/timeline-item.entry.js +1 -1
- package/dist/esm/{ui-accordion_10.entry.js → ui-accordion_11.entry.js} +613 -27
- package/dist/esm/ui-advanced-data-table.entry.js +1 -1
- package/dist/esm/ui-anchor.entry.js +1 -1
- package/dist/esm/ui-aside-panel.entry.js +5 -5
- package/dist/esm/ui-avatar-group_3.entry.js +5 -5
- package/dist/esm/ui-callout-banner.entry.js +1 -1
- package/dist/esm/ui-card.entry.js +26 -4
- package/dist/esm/ui-checkbox.entry.js +2 -2
- package/dist/esm/ui-code-editor.entry.js +2 -2
- package/dist/esm/ui-code-preview.entry.js +1 -1
- package/dist/esm/ui-color-controller.entry.js +1 -1
- package/dist/esm/ui-dialog-box.entry.js +1 -1
- package/dist/esm/ui-dock-host.entry.js +3 -3
- package/dist/esm/ui-drag-drop.entry.js +1 -1
- package/dist/esm/ui-empty-state.entry.js +1 -1
- package/dist/esm/ui-fab-item.entry.js +1 -1
- package/dist/esm/ui-fab.entry.js +2 -2
- package/dist/esm/ui-library.entry.js +1 -1
- package/dist/esm/ui-list-group_2.entry.js +9 -5
- package/dist/esm/ui-list.entry.js +4 -4
- package/dist/esm/ui-navigation-item.entry.js +3 -3
- package/dist/esm/ui-otp-input.entry.js +2 -2
- package/dist/esm/{ui-pagination_3.entry.js → ui-pagination_4.entry.js} +202 -1
- package/dist/esm/ui-pattern-input.entry.js +5 -5
- package/dist/esm/ui-popover.entry.js +1 -1
- package/dist/esm/ui-progress.entry.js +101 -17
- package/dist/esm/ui-resizable-panel.entry.js +1 -1
- package/dist/esm/ui-smart-location-dropdown.entry.js +2 -2
- package/dist/esm/ui-smart-stepper.entry.js +1 -1
- package/dist/esm/ui-snackbar.entry.js +1 -1
- package/dist/esm/ui-step.entry.js +1 -1
- package/dist/esm/ui-stepper.entry.js +1 -1
- package/dist/esm/ui-switch.entry.js +9 -9
- package/dist/esm/ui-tabs.entry.js +1 -1
- package/dist/esm/ui-timeline.entry.js +1 -1
- package/dist/esm/ui-toolbar.entry.js +1 -1
- package/dist/esm/ui-tooltip.entry.js +4 -4
- package/dist/esm/ui-transfer-list.entry.js +1 -1
- package/dist/esm/ui-workspace-manager.entry.js +1 -1
- package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -1
- package/dist/exploration-project-tailwind/{p-c7e87fbb.entry.js → p-036d2a44.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-62352ef2.entry.js → p-05a436d3.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-a4f52a76.entry.js → p-16bdd162.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-85bf89fd.entry.js → p-20ecc116.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-2347d21b.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-3d381f75.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-e5322e59.entry.js → p-4288c158.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-2f1aebb3.entry.js → p-4417a9d8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-049744f9.entry.js → p-44742ddd.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-73d29a4a.entry.js → p-4aaa8e40.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-6fa9dc15.entry.js → p-4bef8bed.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-64e3a484.entry.js → p-4efd63ce.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c5ddc817.entry.js → p-54965530.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-5c835d90.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-4de419d5.entry.js → p-6b838549.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-c174a372.entry.js → p-6ddbee42.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-7515b1e3.entry.js → p-70bacda8.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-9fa70359.entry.js → p-71d95bb1.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-2d273118.entry.js → p-7889bfc4.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-0b004861.entry.js → p-790556f0.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-f5719913.entry.js → p-7ba2258a.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-81961fb1.entry.js → p-81ebba11.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-5e3e80ae.entry.js → p-8578b616.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-3d3d48fd.entry.js → p-8b57fe4e.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-ffb1754a.entry.js → p-97af03cc.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-f0830120.entry.js → p-98e91da5.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d2308a00.entry.js → p-9bd14f69.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-Dyu3Nplq.js +2 -0
- package/dist/exploration-project-tailwind/{p-ba21fed3.entry.js → p-a27f59d2.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-70d82d79.entry.js → p-a7b07cf4.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-5508874f.entry.js → p-bd89d060.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-9d0c8760.entry.js → p-c02284ea.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d419eaf0.entry.js → p-c1c8ac28.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-c63c522e.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c90722ec.entry.js → p-cbee2607.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-287dbf09.entry.js → p-d114a347.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-8d951aef.entry.js → p-d2e45c5e.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-77cc333a.entry.js → p-d59da767.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-46596a28.entry.js → p-d6ce9721.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-875be805.entry.js → p-dc92a343.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-4f6bba75.entry.js → p-e22317c1.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-d16c9635.entry.js → p-e76318c7.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-e8c6d395.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-c2ca71ac.entry.js → p-eab5ad36.entry.js} +1 -1
- package/dist/exploration-project-tailwind/p-f0bc5d7e.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f1beee72.entry.js +1 -0
- package/dist/exploration-project-tailwind/p-f543392f.entry.js +1 -0
- package/dist/exploration-project-tailwind/{p-46efdea3.entry.js → p-f61cfb7c.entry.js} +1 -1
- package/dist/exploration-project-tailwind/{p-77124686.entry.js → p-fb4aca69.entry.js} +1 -1
- package/dist/types/components/accordion/accordion.d.ts +10 -2
- package/dist/types/components/button/button.d.ts +9 -0
- package/dist/types/components/card/card.d.ts +4 -0
- package/dist/types/components/list-item/list-item.d.ts +1 -0
- package/dist/types/components/loader/loader.d.ts +145 -0
- package/dist/types/components/progress/progress.d.ts +34 -2
- package/dist/types/components.d.ts +509 -993
- package/dist/types/types/common.d.ts +1 -1
- package/dist/types/types/common.type.d.ts +1 -1
- package/package.json +8 -7
- package/dist/cjs/ui-checkbox-group.cjs.entry.js +0 -330
- package/dist/cjs/ui-image-button.cjs.entry.js +0 -67
- package/dist/cjs/ui-input-pair.cjs.entry.js +0 -44
- package/dist/cjs/ui-radio-group.cjs.entry.js +0 -205
- package/dist/cjs/ui-radio.cjs.entry.js +0 -206
- package/dist/collection/components/checkbox-group/checkbox-group.css +0 -223
- package/dist/collection/components/checkbox-group/checkbox-group.js +0 -1001
- package/dist/collection/components/checkbox-group/types.js +0 -1
- package/dist/collection/components/image-button/image-button.css +0 -154
- package/dist/collection/components/image-button/image-button.js +0 -310
- package/dist/collection/components/image-button/types.js +0 -1
- package/dist/collection/components/input-pair/input-pair.css +0 -72
- package/dist/collection/components/input-pair/input-pair.js +0 -309
- package/dist/collection/components/radio-group/radio-group.css +0 -202
- package/dist/collection/components/radio-group/radio-group.js +0 -903
- package/dist/collection/components/radio-group/types.js +0 -1
- package/dist/components/ui-checkbox-group.d.ts +0 -11
- package/dist/components/ui-checkbox-group.js +0 -1
- package/dist/components/ui-image-button.d.ts +0 -11
- package/dist/components/ui-image-button.js +0 -1
- package/dist/components/ui-input-pair.js +0 -1
- package/dist/components/ui-radio-group.d.ts +0 -11
- package/dist/components/ui-radio-group.js +0 -1
- package/dist/esm/ui-checkbox-group.entry.js +0 -328
- package/dist/esm/ui-image-button.entry.js +0 -65
- package/dist/esm/ui-input-pair.entry.js +0 -42
- package/dist/esm/ui-radio-group.entry.js +0 -203
- package/dist/esm/ui-radio.entry.js +0 -204
- package/dist/exploration-project-tailwind/p-01c7db7a.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-5ce0dbd8.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6ab80ead.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-6e9694f2.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-7376ac95.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-77a21491.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-7f91d949.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-807c6555.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-D2WzX6vR.js +0 -2
- package/dist/exploration-project-tailwind/p-ab752761.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ce1222a1.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-e90d5307.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-ecda1cc3.entry.js +0 -1
- package/dist/exploration-project-tailwind/p-f11e5cae.entry.js +0 -1
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -87
- package/dist/types/components/checkbox-group/types.d.ts +0 -8
- package/dist/types/components/image-button/image-button.d.ts +0 -31
- package/dist/types/components/image-button/types.d.ts +0 -1
- package/dist/types/components/input-pair/input-pair.d.ts +0 -28
- package/dist/types/components/radio-group/radio-group.d.ts +0 -74
- package/dist/types/components/radio-group/types.d.ts +0 -2
|
@@ -25,7 +25,7 @@ export type ComponentSize = 'xxxs' | 'xxs' | 'xs' | 'sm' | 'small' | 'md' | 'med
|
|
|
25
25
|
/**
|
|
26
26
|
* Common visual variants
|
|
27
27
|
*/
|
|
28
|
-
export type ComponentVariant = 'default' | 'standard' | 'outlined' | 'filled' | 'elevated' | 'soft' | 'ghost' | 'glass' | 'flat' | 'underlined' | 'bordered' | 'text' | 'gradient';
|
|
28
|
+
export type ComponentVariant = 'default' | 'standard' | 'outlined' | 'filled' | 'elevated' | 'soft' | 'ghost' | 'glass' | 'flat' | 'underlined' | 'bordered' | 'text' | 'gradient' | 'status';
|
|
29
29
|
/**
|
|
30
30
|
* Common animation types
|
|
31
31
|
*/
|
|
@@ -162,7 +162,7 @@ export type CoreVariant =
|
|
|
162
162
|
| 'borderless';
|
|
163
163
|
export type BrandVariant = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'surface' | 'neutral' | 'inverse';
|
|
164
164
|
export type StatusVariant = 'success' | 'warning' | 'danger' | 'info' | 'error';
|
|
165
|
-
export type SpecializedVariant = 'segmented' | 'minimal' | 'dots-only' | 'panel' | 'raised' | 'solid' | 'light' | 'dark' | 'color' | 'gradient';
|
|
165
|
+
export type SpecializedVariant = 'segmented' | 'minimal' | 'dots-only' | 'panel' | 'raised' | 'solid' | 'light' | 'dark' | 'color' | 'gradient' | 'status';
|
|
166
166
|
|
|
167
167
|
export type ComponentVariant = CoreVariant | BrandVariant | StatusVariant | SpecializedVariant;
|
|
168
168
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomicuilibrary",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"collection": "dist/collection/collection-manifest.json",
|
|
9
9
|
"collection:main": "dist/collection/index.js",
|
|
10
|
-
"unpkg": "dist/
|
|
10
|
+
"unpkg": "dist/exploration-project-tailwind/exploration-project-tailwind.esm.js",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"import": "./dist/
|
|
14
|
-
"require": "./dist/
|
|
13
|
+
"import": "./dist/exploration-project-tailwind/exploration-project-tailwind.esm.js",
|
|
14
|
+
"require": "./dist/exploration-project-tailwind/exploration-project-tailwind.cjs.js"
|
|
15
15
|
},
|
|
16
16
|
"./loader": {
|
|
17
17
|
"types": "./loader/index.d.ts",
|
|
@@ -43,9 +43,10 @@
|
|
|
43
43
|
"watch:tailwind-dev": " postcss --postcss-config ./postcss.config.js src/global/app.scss -o src/styles/tailwind-optimized.css --watch",
|
|
44
44
|
"clean": "npx -y rimraf dist www loader",
|
|
45
45
|
"build:css": "postcss src/app.scss -o dist/app.css",
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
46
|
+
"version:minor": "npm version minor --no-git-tag-version",
|
|
47
|
+
"predeploy": "npm run version:minor && npm run build",
|
|
48
|
+
"deploy": "node scripts/deploy-gh-pages.cjs"
|
|
49
|
+
},
|
|
49
50
|
"devDependencies": {
|
|
50
51
|
"@stencil/angular-output-target": "^1.1.1",
|
|
51
52
|
"@stencil/sass": "^3.2.3",
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-ClkOYpT8.js');
|
|
4
|
-
|
|
5
|
-
const checkboxGroupCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block}.checkbox-group{display:flex;flex-direction:column;gap:12px}.checkbox-group.is-victory .group-label .selection-count{animation:victory-pulse 2s infinite ease-in-out;background:var(--primary-color);color:var(--text-standard, #ffffff);box-shadow:0 0 15px var(--primary-color)}.group-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;color:var(--label-color, var(--text-primary, #333));margin-bottom:8px;text-transform:uppercase;letter-spacing:0.08em;opacity:0.65;cursor:default}.group-label .selection-count{font-size:10px;font-weight:600;text-transform:none;letter-spacing:normal;opacity:1;color:var(--label-subtitle-color, var(--text-secondary, #666));background:var(--bg-secondary, #f3f4f6);padding:2px 8px;border-radius:10px}.required-indicator{color:var(--danger-color, #f44336);margin-inline-start:4px}.select-all-container{padding-bottom:8px;border-bottom:1px solid var(--border-color, #e0e0e0)}.checkbox-group-items{display:flex}.checkbox-group-vertical .checkbox-group-items{flex-direction:column}.checkbox-group-horizontal .checkbox-group-items{flex-direction:row;flex-wrap:wrap}.checkbox-group-disabled{opacity:0.6;pointer-events:none}.checkbox-group-readonly{pointer-events:none}.checkbox-group-invalid .group-label{color:var(--danger-color, #f44336)}.helper-text{font-size:12px;color:var(--label-subtitle-color, var(--text-secondary, #666));display:flex;align-items:center;gap:6px}.helper-text.error{color:var(--danger-color, #f44336)}.helper-text i{font-size:14px}.checkbox-group-sm .group-label{font-size:12px}.checkbox-group-sm .helper-text{font-size:11px}.checkbox-group-lg .group-label{font-size:16px}.checkbox-group-lg .helper-text{font-size:13px}.checkbox-search{position:relative;margin-bottom:4px;transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1)}.checkbox-search .search-input-wrapper{position:relative;display:flex;align-items:center;background:rgba(var(--primary-rgb, 139, 92, 246), 0.03);border:1px solid rgba(0, 0, 0, 0.05);border-radius:12px;padding:2px 4px;transition:all 0.3s}.checkbox-search .search-input-wrapper:focus-within{background:var(--bg-primary, #ffffff);border-color:var(--primary-color);box-shadow:0 4px 12px rgba(var(--primary-rgb), 0.15);transform:translateY(-1px)}.checkbox-search .search-icon{margin-left:12px;opacity:0.4;font-size:16px;color:var(--primary-color)}.checkbox-search input.search-input{flex:1;border:none;background:transparent;padding:10px 12px;font-size:13px;font-weight:500;color:var(--text-primary);outline:none}.checkbox-search input.search-input::placeholder{opacity:1}.checkbox-search .clear-search{background:rgba(0, 0, 0, 0.05);border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px;color:var(--text-secondary);transition:all 0.2s}.checkbox-search .clear-search:hover{background:rgba(0, 0, 0, 0.1);color:var(--text-primary);transform:scale(1.1)}.checkbox-search .clear-search ui-icon{font-size:14px}@keyframes victory-pulse{0%{transform:scale(1);box-shadow:0 0 0px var(--primary-color)}50%{transform:scale(1.05);box-shadow:0 0 15px var(--primary-color)}100%{transform:scale(1);box-shadow:0 0 0px var(--primary-color)}}.no-results{font-size:14px;color:var(--text-secondary, #999);padding:8px 0;font-style:italic}.checkbox-group-grid .checkbox-group-items{display:grid}`;
|
|
6
|
-
|
|
7
|
-
const CheckboxGroup = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.groupChange = index.createEvent(this, "groupChange");
|
|
11
|
-
this.groupValidation = index.createEvent(this, "groupValidation");
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Ensures value is always a string array
|
|
15
|
-
*/
|
|
16
|
-
normalizeValue(val) {
|
|
17
|
-
if (Array.isArray(val))
|
|
18
|
-
return val;
|
|
19
|
-
if (typeof val === 'string')
|
|
20
|
-
return val ? val.split(',') : [];
|
|
21
|
-
return [];
|
|
22
|
-
}
|
|
23
|
-
get el() { return index.getElement(this); }
|
|
24
|
-
internals;
|
|
25
|
-
value = [];
|
|
26
|
-
name = '';
|
|
27
|
-
label = '';
|
|
28
|
-
helperText = '';
|
|
29
|
-
errorMessage = '';
|
|
30
|
-
required = false;
|
|
31
|
-
disabled = false;
|
|
32
|
-
readonly = false;
|
|
33
|
-
invalid = false;
|
|
34
|
-
orientation = 'vertical';
|
|
35
|
-
gap = '12px';
|
|
36
|
-
showSelectAll = false;
|
|
37
|
-
selectAllLabel = 'Select All';
|
|
38
|
-
buttonGroup = false;
|
|
39
|
-
min = 0;
|
|
40
|
-
max = Infinity;
|
|
41
|
-
validateOnChange = true;
|
|
42
|
-
size = 'md';
|
|
43
|
-
color = 'primary';
|
|
44
|
-
showSelectionCount = false;
|
|
45
|
-
/** Entrance animation */
|
|
46
|
-
reveal = 'none';
|
|
47
|
-
/** Delay for entry animation (ms) */
|
|
48
|
-
revealDelay = 0;
|
|
49
|
-
/** Stagger delay between items */
|
|
50
|
-
revealStagger = 60;
|
|
51
|
-
/** High-Fidelity: Victory glow pulse when all selected */
|
|
52
|
-
victoryGlow = false;
|
|
53
|
-
/** High-Fidelity: RTL support */
|
|
54
|
-
rtl = false;
|
|
55
|
-
selectAllState = 'none';
|
|
56
|
-
isVictory = false;
|
|
57
|
-
groupChange;
|
|
58
|
-
groupValidation;
|
|
59
|
-
componentWillLoad() {
|
|
60
|
-
this.internals = this.el.attachInternals();
|
|
61
|
-
this.updateFormValue();
|
|
62
|
-
this.discoverCheckboxes();
|
|
63
|
-
this.updateCheckboxStates();
|
|
64
|
-
this.updateSelectAllState();
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Stencil form-association callback
|
|
68
|
-
*/
|
|
69
|
-
formResetCallback() {
|
|
70
|
-
this.value = [];
|
|
71
|
-
this.updateCheckboxStates();
|
|
72
|
-
this.updateSelectAllState();
|
|
73
|
-
this.updateFormValue();
|
|
74
|
-
}
|
|
75
|
-
handleValueChange() {
|
|
76
|
-
this.updateCheckboxStates();
|
|
77
|
-
this.updateSelectAllState();
|
|
78
|
-
if (this.validateOnChange) {
|
|
79
|
-
this.validate();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
handleCheckboxChange(event) {
|
|
83
|
-
const { checked, value: checkboxValue } = event.detail;
|
|
84
|
-
if (this.disabled || this.readonly)
|
|
85
|
-
return;
|
|
86
|
-
let valueArr = this.normalizeValue(this.value);
|
|
87
|
-
if (checked) {
|
|
88
|
-
if (!valueArr.includes(checkboxValue)) {
|
|
89
|
-
if (this.max === Infinity || valueArr.length < this.max) {
|
|
90
|
-
valueArr = [...valueArr, checkboxValue];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
valueArr = valueArr.filter(v => v !== checkboxValue);
|
|
96
|
-
}
|
|
97
|
-
this.value = valueArr;
|
|
98
|
-
this.groupChange.emit({ value: this.value });
|
|
99
|
-
this.updateSelectAllState();
|
|
100
|
-
if (this.validateOnChange) {
|
|
101
|
-
this.validate();
|
|
102
|
-
}
|
|
103
|
-
this.updateFormValue();
|
|
104
|
-
}
|
|
105
|
-
updateFormValue() {
|
|
106
|
-
if (this.name) {
|
|
107
|
-
const data = new FormData();
|
|
108
|
-
this.value.forEach(val => data.append(this.name, val));
|
|
109
|
-
this.internals.setFormValue(data);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
this.internals.setFormValue(this.value.join(','));
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
discoverCheckboxes() {
|
|
116
|
-
// This is no longer needed as we use getAllCheckboxes in real-time
|
|
117
|
-
}
|
|
118
|
-
updateCheckboxStates() {
|
|
119
|
-
const allCbs = this.getAllCheckboxes();
|
|
120
|
-
const valueArr = this.normalizeValue(this.value);
|
|
121
|
-
const isMaxReached = this.max !== Infinity && valueArr.length >= this.max;
|
|
122
|
-
allCbs.forEach((checkbox, index) => {
|
|
123
|
-
checkbox.checked = valueArr.includes(checkbox.value);
|
|
124
|
-
checkbox.disabled = this.disabled || (isMaxReached && !checkbox.checked) || checkbox.disabled;
|
|
125
|
-
checkbox.readonly = this.readonly;
|
|
126
|
-
checkbox.size = this.size;
|
|
127
|
-
checkbox.color = this.color;
|
|
128
|
-
checkbox.reveal = this.reveal;
|
|
129
|
-
checkbox.revealDelay = this.revealDelay + (index * this.revealStagger);
|
|
130
|
-
checkbox.rtl = this.rtl;
|
|
131
|
-
checkbox.isButton = this.buttonGroup;
|
|
132
|
-
if (this.name) {
|
|
133
|
-
checkbox.name = this.name;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
getAllCheckboxes() {
|
|
138
|
-
const slotted = Array.from(this.el.querySelectorAll('ui-checkbox'));
|
|
139
|
-
// If we have options prop, we need to consider them too, but they are rendered as components
|
|
140
|
-
// Stencil's shadow DOM might make this tricky if they are inside.
|
|
141
|
-
// Actually, we can just get them from the shadow root if they are rendered in renderDataOptions
|
|
142
|
-
const shadowCbs = Array.from(this.el.shadowRoot.querySelectorAll('ui-checkbox'));
|
|
143
|
-
return [...slotted, ...shadowCbs];
|
|
144
|
-
}
|
|
145
|
-
updateSelectAllState() {
|
|
146
|
-
const allCbs = this.getAllCheckboxes();
|
|
147
|
-
const valueArr = this.normalizeValue(this.value);
|
|
148
|
-
const enabledCheckboxes = allCbs.filter((cb) => !cb.disabled);
|
|
149
|
-
if (enabledCheckboxes.length === 0)
|
|
150
|
-
return;
|
|
151
|
-
const checkedCount = enabledCheckboxes.filter((cb) => valueArr.includes(cb.value)).length;
|
|
152
|
-
if (checkedCount === 0) {
|
|
153
|
-
this.selectAllState = 'none';
|
|
154
|
-
this.isVictory = false;
|
|
155
|
-
}
|
|
156
|
-
else if (checkedCount === enabledCheckboxes.length) {
|
|
157
|
-
this.selectAllState = 'all';
|
|
158
|
-
if (this.victoryGlow)
|
|
159
|
-
this.isVictory = true;
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
this.selectAllState = 'some';
|
|
163
|
-
this.isVictory = false;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
handleSelectAllChange = (event) => {
|
|
167
|
-
if (this.disabled || this.readonly)
|
|
168
|
-
return;
|
|
169
|
-
const target = event.target;
|
|
170
|
-
const allCbs = this.getAllCheckboxes();
|
|
171
|
-
const enabledCheckboxes = allCbs.filter((cb) => !cb.disabled);
|
|
172
|
-
if (target.checked) {
|
|
173
|
-
// Select all enabled checkboxes
|
|
174
|
-
const allValues = enabledCheckboxes.map((cb) => cb.value);
|
|
175
|
-
const uniqueValues = Array.from(new Set([...this.value, ...allValues]));
|
|
176
|
-
// Respect max limit
|
|
177
|
-
if (this.max !== Infinity) {
|
|
178
|
-
this.value = uniqueValues.slice(0, this.max);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
this.value = uniqueValues;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
// Deselect all
|
|
186
|
-
const enabledValues = enabledCheckboxes.map((cb) => cb.value);
|
|
187
|
-
this.value = this.value.filter(v => !enabledValues.includes(v));
|
|
188
|
-
}
|
|
189
|
-
this.groupChange.emit({ value: this.value });
|
|
190
|
-
this.updateSelectAllState();
|
|
191
|
-
if (this.validateOnChange) {
|
|
192
|
-
this.validate();
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
validate() {
|
|
196
|
-
const errors = [];
|
|
197
|
-
if (this.required && this.value.length === 0) {
|
|
198
|
-
errors.push('At least one option must be selected');
|
|
199
|
-
}
|
|
200
|
-
if (this.min > 0 && this.value.length < this.min) {
|
|
201
|
-
errors.push(`At least ${this.min} option${this.min > 1 ? 's' : ''} must be selected`);
|
|
202
|
-
}
|
|
203
|
-
if (this.max !== Infinity && this.value.length > this.max) {
|
|
204
|
-
errors.push(`No more than ${this.max} option${this.max > 1 ? 's' : ''} can be selected`);
|
|
205
|
-
}
|
|
206
|
-
const valid = errors.length === 0;
|
|
207
|
-
this.groupValidation.emit({ valid, errors });
|
|
208
|
-
return valid;
|
|
209
|
-
}
|
|
210
|
-
selectAll() {
|
|
211
|
-
const allCbs = this.getAllCheckboxes();
|
|
212
|
-
const enabledCheckboxes = allCbs.filter((cb) => !cb.disabled);
|
|
213
|
-
const allValues = enabledCheckboxes.map((cb) => cb.value);
|
|
214
|
-
if (this.max !== Infinity) {
|
|
215
|
-
this.value = allValues.slice(0, this.max);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
this.value = allValues;
|
|
219
|
-
}
|
|
220
|
-
this.groupChange.emit({ value: this.value });
|
|
221
|
-
}
|
|
222
|
-
deselectAll() {
|
|
223
|
-
this.value = [];
|
|
224
|
-
this.groupChange.emit({ value: this.value });
|
|
225
|
-
}
|
|
226
|
-
toggleAll() {
|
|
227
|
-
if (this.selectAllState === 'all') {
|
|
228
|
-
this.deselectAll();
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
this.selectAll();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
renderSelectAll() {
|
|
235
|
-
if (!this.showSelectAll)
|
|
236
|
-
return null;
|
|
237
|
-
return (index.h("div", { class: "select-all-container" }, index.h("ui-checkbox", { checked: this.selectAllState === 'all', indeterminate: this.selectAllState === 'some', label: this.selectAllLabel, disabled: this.disabled, readonly: this.readonly, size: this.size, color: this.color, rtl: this.rtl, onCheckboxChange: this.handleSelectAllChange })));
|
|
238
|
-
}
|
|
239
|
-
renderLabel() {
|
|
240
|
-
if (!this.label)
|
|
241
|
-
return null;
|
|
242
|
-
return (index.h("div", { class: "group-label" }, index.h("span", { class: "label-text" }, this.label, this.required && index.h("span", { class: "required-indicator" }, "*")), this.showSelectionCount && (index.h("span", { class: "selection-count" }, "(", this.value.length, this.max !== Infinity ? ` / ${this.max}` : '', " selected)"))));
|
|
243
|
-
}
|
|
244
|
-
renderHelperText() {
|
|
245
|
-
if (this.invalid && this.errorMessage) {
|
|
246
|
-
return (index.h("div", { class: "helper-text error" }, index.h("ui-icon", { name: "fa-exclamation-circle" }), this.errorMessage));
|
|
247
|
-
}
|
|
248
|
-
if (this.helperText) {
|
|
249
|
-
return index.h("div", { class: "helper-text" }, this.helperText);
|
|
250
|
-
}
|
|
251
|
-
if (this.min > 0 || this.max !== Infinity) {
|
|
252
|
-
const count = this.value.length;
|
|
253
|
-
let text = '';
|
|
254
|
-
if (this.min > 0 && this.max !== Infinity) {
|
|
255
|
-
text = `Select ${this.min}-${this.max} options (${count} selected)`;
|
|
256
|
-
}
|
|
257
|
-
else if (this.min > 0) {
|
|
258
|
-
text = `Select at least ${this.min} option${this.min > 1 ? 's' : ''} (${count} selected)`;
|
|
259
|
-
}
|
|
260
|
-
else if (this.max !== Infinity) {
|
|
261
|
-
text = `Select up to ${this.max} option${this.max > 1 ? 's' : ''} (${count} selected)`;
|
|
262
|
-
}
|
|
263
|
-
return index.h("div", { class: "helper-text" }, text);
|
|
264
|
-
}
|
|
265
|
-
return null;
|
|
266
|
-
}
|
|
267
|
-
options = [];
|
|
268
|
-
searchable = false;
|
|
269
|
-
searchPlaceholder = 'Search options...';
|
|
270
|
-
layout = 'list';
|
|
271
|
-
columns = 2; // For grid layout
|
|
272
|
-
searchQuery = '';
|
|
273
|
-
handleSearch = (e) => {
|
|
274
|
-
this.searchQuery = e.target.value.toLowerCase();
|
|
275
|
-
};
|
|
276
|
-
getFilteredOptions() {
|
|
277
|
-
if (!this.options || this.options.length === 0)
|
|
278
|
-
return [];
|
|
279
|
-
// Normalize options
|
|
280
|
-
const normalizedOptions = this.options.map(opt => typeof opt === 'string' ? { label: opt, value: opt, disabled: false } : opt);
|
|
281
|
-
if (!this.searchQuery)
|
|
282
|
-
return normalizedOptions;
|
|
283
|
-
return normalizedOptions.filter(opt => opt.label.toLowerCase().includes(this.searchQuery));
|
|
284
|
-
}
|
|
285
|
-
renderSearch() {
|
|
286
|
-
if (!this.searchable)
|
|
287
|
-
return null;
|
|
288
|
-
return (index.h("div", { class: {
|
|
289
|
-
'checkbox-search': true,
|
|
290
|
-
'search-active': this.searchQuery.length > 0
|
|
291
|
-
} }, index.h("div", { class: "search-input-wrapper" }, index.h("ui-icon", { name: "search", library: "lucide", class: "search-icon" }), index.h("input", { type: "text", placeholder: this.searchPlaceholder, onInput: this.handleSearch, value: this.searchQuery, class: "search-input" }), this.searchQuery.length > 0 && (index.h("ui-button", { variant: "ghost", class: "clear-search", onClick: () => { this.searchQuery = ''; }, icon: "x", iconLibrary: "lucide", iconOnly: true, size: "sm" })))));
|
|
292
|
-
}
|
|
293
|
-
renderDataOptions() {
|
|
294
|
-
const visibleOptions = this.getFilteredOptions();
|
|
295
|
-
if (visibleOptions.length === 0 && this.searchQuery) {
|
|
296
|
-
return index.h("div", { class: "no-results" }, "No options found");
|
|
297
|
-
}
|
|
298
|
-
const valueArr = this.normalizeValue(this.value);
|
|
299
|
-
return visibleOptions.map((opt, index$1) => (index.h("ui-checkbox", { value: opt.value, label: opt.label, disabled: this.disabled || opt.disabled, readonly: this.readonly, size: this.size, color: this.color, variant: opt.variant || 'default', name: this.name, checked: valueArr.includes(opt.value), reveal: this.reveal, revealDelay: this.revealDelay + (index$1 * this.revealStagger), rtl: this.rtl, isButton: this.buttonGroup, onCheckboxChange: this.handleCheckboxChange })));
|
|
300
|
-
}
|
|
301
|
-
render() {
|
|
302
|
-
const containerClasses = {
|
|
303
|
-
'checkbox-group': true,
|
|
304
|
-
[`checkbox-group-${this.orientation}`]: this.layout === 'list',
|
|
305
|
-
[`checkbox-group-grid`]: this.layout === 'grid',
|
|
306
|
-
[`checkbox-group-cols-${this.columns}`]: this.layout === 'grid',
|
|
307
|
-
[`checkbox-group-${this.size}`]: true,
|
|
308
|
-
'checkbox-group-disabled': this.disabled,
|
|
309
|
-
'checkbox-group-readonly': this.readonly,
|
|
310
|
-
'checkbox-group-invalid': this.invalid,
|
|
311
|
-
'checkbox-group-button': this.buttonGroup,
|
|
312
|
-
'is-victory': this.isVictory
|
|
313
|
-
};
|
|
314
|
-
const hasDataOptions = this.options && this.options.length > 0;
|
|
315
|
-
return (index.h("div", { key: '05a2da58c9dd7f3438076d3beb725f3596545cb6', class: containerClasses, dir: this.rtl ? 'rtl' : 'ltr' }, this.renderLabel(), this.renderSearch(), this.renderSelectAll(), index.h("div", { key: '0a64f5ff1b6474c771059e6d856b42a48641d5a1', class: "checkbox-group-items", style: this.layout === 'grid' ? {
|
|
316
|
-
display: 'grid',
|
|
317
|
-
gridTemplateColumns: `repeat(${this.columns}, 1fr)`,
|
|
318
|
-
gap: this.gap
|
|
319
|
-
} : { gap: this.gap }, role: "group", "aria-labelledby": this.label ? 'group-label' : undefined, "aria-required": this.required ? 'true' : 'false', "aria-invalid": this.invalid ? 'true' : 'false' }, hasDataOptions ? this.renderDataOptions() : index.h("slot", null)), this.renderHelperText()));
|
|
320
|
-
}
|
|
321
|
-
static get formAssociated() { return true; }
|
|
322
|
-
static get watchers() { return {
|
|
323
|
-
"value": [{
|
|
324
|
-
"handleValueChange": 0
|
|
325
|
-
}]
|
|
326
|
-
}; }
|
|
327
|
-
};
|
|
328
|
-
CheckboxGroup.style = checkboxGroupCss();
|
|
329
|
-
|
|
330
|
-
exports.ui_checkbox_group = CheckboxGroup;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-ClkOYpT8.js');
|
|
4
|
-
|
|
5
|
-
const imageButtonCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:inline-block;vertical-align:middle;transition:transform 0.2s ease}.image-button{position:relative;overflow:hidden;border-radius:12px;cursor:pointer;background:#f3f4f6;width:100%;height:100%;display:flex;align-items:center;justify-content:center;outline:none}.image-button,.image-button *{transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1)}.image-button-sm{width:120px}.image-button-md{width:240px}.image-button-lg{width:360px}.image-button-xl{width:480px}.image-button-ratio-square{aspect-ratio:1/1}.image-button-ratio-video{aspect-ratio:16/9}.image-button-ratio-portrait{aspect-ratio:3/4}.image-button-ratio-auto{height:auto}.image-button .button-image{width:100%;height:100%;object-fit:cover;display:block}.image-button .image-placeholder{color:#9ca3af}.image-button .button-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);display:flex;align-items:flex-end;padding:1.25rem;color:white}.image-button .overlay-content{display:flex;flex-direction:column;gap:4px}.image-button .button-label{font-weight:700;font-size:1.1rem;line-height:1.2;letter-spacing:-0.01em}.image-button .button-desc{font-size:0.85rem;opacity:0.8}.image-button-effect-zoom:hover .button-image{transform:scale(1.1)}.image-button-effect-lift:hover,.image-button-effect-lift.is-focused{transform:translateY(-8px);box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)}.image-button-effect-brighten:hover .button-image{filter:brightness(1.2)}.image-button.label-mode-hover .button-overlay{opacity:0;transform:translateY(10px)}.image-button.label-mode-hover:hover .button-overlay{opacity:1;transform:translateY(0)}.image-button.is-disabled{cursor:not-allowed;opacity:0.6;filter:grayscale(1)}.image-button.is-disabled:hover{transform:none;box-shadow:none}.image-button.is-loading{cursor:wait}.image-button.is-loading .loading-overlay{position:absolute;inset:0;background:rgba(255, 255, 255, 0.7);display:flex;align-items:center;justify-content:center;color:#10b981;z-index:10}.image-button.is-focused{box-shadow:0 0 0 2px var(--bg-primary, #ffffff), 0 0 0 5px var(--color-primary, #10b981);z-index:10}@media (max-width: 640px){.image-button{width:100% !important}}`;
|
|
6
|
-
|
|
7
|
-
const ImageButton = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.uiClick = index.createEvent(this, "uiClick");
|
|
11
|
-
}
|
|
12
|
-
/** Image source URL */
|
|
13
|
-
src;
|
|
14
|
-
/** Image alt text */
|
|
15
|
-
alt = '';
|
|
16
|
-
/** Button label (overlay) */
|
|
17
|
-
label;
|
|
18
|
-
/** Subtitle or secondary text */
|
|
19
|
-
description;
|
|
20
|
-
/** Hover effect: 'zoom' | 'lift' | 'brighten' | 'none' */
|
|
21
|
-
effect = 'zoom';
|
|
22
|
-
/** Aspect ratio: 'square' | 'video' | 'portrait' | 'auto' */
|
|
23
|
-
ratio = 'square';
|
|
24
|
-
/** Whether the label is always visible or only on hover */
|
|
25
|
-
labelMode = 'hover';
|
|
26
|
-
/** Size variant */
|
|
27
|
-
size = 'md';
|
|
28
|
-
/** Disabled state */
|
|
29
|
-
disabled = false;
|
|
30
|
-
/** Loading state */
|
|
31
|
-
loading = false;
|
|
32
|
-
/** Accessibility label */
|
|
33
|
-
a11yLabel;
|
|
34
|
-
/** Focus state for keyboard accessibility */
|
|
35
|
-
isFocused = false;
|
|
36
|
-
uiClick;
|
|
37
|
-
handleClick = (e) => {
|
|
38
|
-
if (this.disabled || this.loading) {
|
|
39
|
-
e.preventDefault();
|
|
40
|
-
e.stopPropagation();
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
this.uiClick.emit();
|
|
44
|
-
};
|
|
45
|
-
handleKeyDown = (e) => {
|
|
46
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
47
|
-
e.preventDefault();
|
|
48
|
-
this.handleClick(e);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
render() {
|
|
52
|
-
const classes = {
|
|
53
|
-
'image-button': true,
|
|
54
|
-
[`image-button-${this.size}`]: true,
|
|
55
|
-
[`image-button-ratio-${this.ratio}`]: true,
|
|
56
|
-
[`image-button-effect-${this.effect}`]: true,
|
|
57
|
-
[`label-mode-${this.labelMode}`]: true,
|
|
58
|
-
'is-disabled': this.disabled,
|
|
59
|
-
'is-loading': this.loading,
|
|
60
|
-
'is-focused': this.isFocused,
|
|
61
|
-
};
|
|
62
|
-
return (index.h(index.Host, { key: '9f62fc59b4656078cbddd73750e41d03a0f3d2ca' }, index.h("div", { key: 'd6f464e2f65dd0eb5dd40892179432473b3836fe', class: classes, role: "button", tabindex: this.disabled || this.loading ? -1 : 0, "aria-label": this.a11yLabel || this.label || this.alt || 'Image Button', "aria-disabled": this.disabled ? 'true' : 'false', "aria-busy": this.loading ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false }, this.src ? (index.h("img", { class: "button-image", src: this.src, alt: this.alt, loading: "lazy" })) : (index.h("div", { class: "image-placeholder" }, index.h("ui-icon", { name: "image", library: "fontawesome", size: "24px" }))), (this.label || this.description) && (index.h("div", { key: '4f8ce2e322361f645f29bf9c4f48f4c9b151f075', class: "button-overlay" }, index.h("div", { key: 'f3e15b029509d4ed27bef5c03d75d3bd934f190b', class: "overlay-content" }, this.label && index.h("div", { key: 'aac7cac7d8e07014a927acd9f572f7dac2688e3d', class: "button-label" }, this.label), this.description && index.h("div", { key: '1607a06a9fcde90277be03130548d974bf7c6b5c', class: "button-desc" }, this.description)))), this.loading && (index.h("div", { key: '9c9f38dbeb6b77fb2d8eed4ab641498aa5030bf7', class: "loading-overlay" }, index.h("ui-icon", { key: '2bc1e06c7a61a4e7752686d489ea2c092550d2b4', name: "spinner", library: "fontawesome", spin: true, size: "24px" }))))));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
ImageButton.style = imageButtonCss();
|
|
66
|
-
|
|
67
|
-
exports.ui_image_button = ImageButton;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-ClkOYpT8.js');
|
|
4
|
-
|
|
5
|
-
const inputPairCss = () => `.sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}.a11y-sr-only{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border-width:0 !important}:host{display:block;width:auto;min-width:0;--pair-radius:10px}:host.full-width{width:100%}.pair-main-label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.08em;opacity:0.65;color:var(--label-color, var(--text-secondary, #64748b));margin-bottom:8px}.pair-container{display:flex;align-items:flex-end;width:100%}.pair-container .input-item{flex:1;min-width:0}.pair-container{}.pair-container .input-item.left ui-input::part(container),.pair-container .input-item.right ui-input::part(container){border-radius:var(--pair-radius);border-width:1.5px}.pair-container.is-connected .input-item.left ui-input::part(container){border-top-right-radius:0;border-bottom-right-radius:0;border-right-width:0.75px}.pair-container.is-connected .input-item.right ui-input::part(container){border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:0.75px}`;
|
|
6
|
-
|
|
7
|
-
const InputPair = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
/** Left input label */
|
|
12
|
-
labelLeft = '';
|
|
13
|
-
/** Right input label */
|
|
14
|
-
labelRight = '';
|
|
15
|
-
/** Shared main label (optional) */
|
|
16
|
-
label;
|
|
17
|
-
/** Left input value */
|
|
18
|
-
valueLeft = '';
|
|
19
|
-
/** Right input value */
|
|
20
|
-
valueRight = '';
|
|
21
|
-
/** Left input placeholder */
|
|
22
|
-
placeholderLeft = '';
|
|
23
|
-
/** Right input placeholder */
|
|
24
|
-
placeholderRight = '';
|
|
25
|
-
/** Shared type for both inputs */
|
|
26
|
-
type = 'text';
|
|
27
|
-
/** Shared variant */
|
|
28
|
-
variant = 'outlined';
|
|
29
|
-
/** Shared size */
|
|
30
|
-
size = 'md';
|
|
31
|
-
/** Gap between inputs (set to 0 for connected) */
|
|
32
|
-
gap = '0';
|
|
33
|
-
/** Full width behavior */
|
|
34
|
-
fullWidth = false;
|
|
35
|
-
render() {
|
|
36
|
-
return (index.h(index.Host, { key: 'fdf7f4502e0ae69ee732870df215948f6dd343d4', class: { 'full-width': this.fullWidth } }, this.label && index.h("div", { key: 'fab76ee80e86ffb845930a8b2ce26d210da9e72c', class: "pair-main-label" }, this.label), index.h("div", { key: 'cb95a4fda33d88723248c58d57e526f9ab7fc1c6', class: {
|
|
37
|
-
'pair-container': true,
|
|
38
|
-
'is-connected': this.gap === '0'
|
|
39
|
-
}, style: { gap: this.gap !== '0' ? this.gap : undefined } }, index.h("div", { key: '562af03d33b4c7ec4f55ffa805dbbda5fa0e2c95', class: "input-item left" }, index.h("ui-input", { key: 'c75ac1faec6b8b0903d578064ba60529a923d4eb', label: this.labelLeft, placeholder: this.placeholderLeft, value: this.valueLeft, type: this.type, variant: this.variant, size: this.size, "full-width": true })), index.h("div", { key: '2740efa73d5758bf88c58f2853cba1da3f43a420', class: "input-item right" }, index.h("ui-input", { key: '4e110393af0e26ace0de9a68f12a9cb54b90d935', label: this.labelRight, placeholder: this.placeholderRight, value: this.valueRight, type: this.type, variant: this.variant, size: this.size, "full-width": true })))));
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
InputPair.style = inputPairCss();
|
|
43
|
-
|
|
44
|
-
exports.ui_input_pair = InputPair;
|