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
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
// Showcases ui-list + ui-list-item + ui-list-group features
|
|
4
4
|
// ============================================================
|
|
5
5
|
|
|
6
|
+
function updateListActiveBtn(demoName) {
|
|
7
|
+
const section = document.getElementById('list');
|
|
8
|
+
if (!section) return;
|
|
9
|
+
section.querySelectorAll('.demo-controls ui-button').forEach(btn => {
|
|
10
|
+
btn.selected = btn.getAttribute('data-demo') === demoName;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
export function initListDemo() {
|
|
7
15
|
const section = document.getElementById('list');
|
|
8
16
|
if (!section) return;
|
|
@@ -17,21 +25,21 @@ export function initListDemo() {
|
|
|
17
25
|
</p>
|
|
18
26
|
|
|
19
27
|
<div class="demo-controls" style="display:flex; gap:10px; flex-wrap:wrap; margin-bottom:24px;">
|
|
20
|
-
<ui-button onclick="window.showListBasic()"
|
|
21
|
-
<ui-button onclick="window.showListVariants()"
|
|
22
|
-
<ui-button onclick="window.showListIcons()"
|
|
23
|
-
<ui-button onclick="window.showListCollapsible()"
|
|
24
|
-
<ui-button onclick="window.showListSearch()"
|
|
25
|
-
<ui-button onclick="window.showListGrouped()"
|
|
26
|
-
<ui-button onclick="window.showListDraggable()"
|
|
27
|
-
<ui-button onclick="window.showListPaginated()"
|
|
28
|
-
<ui-button onclick="window.showListInteractions()"
|
|
29
|
-
<ui-button onclick="window.showListMasterpiece()"
|
|
30
|
-
<ui-button onclick="window.showListGrid()"
|
|
31
|
-
<ui-button onclick="window.showListTree()"
|
|
32
|
-
<ui-button onclick="window.showListVirtual()"
|
|
33
|
-
<ui-button onclick="window.showListLarge()"
|
|
34
|
-
<ui-button onclick="window.showListApex()"
|
|
28
|
+
<ui-button onclick="window.showListBasic()" data-demo="basic" variant="outline">📄 Basic</ui-button>
|
|
29
|
+
<ui-button onclick="window.showListVariants()" data-demo="variants" variant="outline">🎨 Variants</ui-button>
|
|
30
|
+
<ui-button onclick="window.showListIcons()" data-demo="icons" variant="outline">🏷️ Icons & Badges</ui-button>
|
|
31
|
+
<ui-button onclick="window.showListCollapsible()" data-demo="collapsible" variant="outline">📂 Collapsible</ui-button>
|
|
32
|
+
<ui-button onclick="window.showListSearch()" data-demo="search" variant="outline">🔍 Search</ui-button>
|
|
33
|
+
<ui-button onclick="window.showListGrouped()" data-demo="grouped" variant="outline">📁 Grouped</ui-button>
|
|
34
|
+
<ui-button onclick="window.showListDraggable()" data-demo="draggable" variant="outline">↕️ Draggable</ui-button>
|
|
35
|
+
<ui-button onclick="window.showListPaginated()" data-demo="paginated" variant="outline">📑 Paginated</ui-button>
|
|
36
|
+
<ui-button onclick="window.showListInteractions()" data-demo="interactions" variant="outline">✨ Interactions</ui-button>
|
|
37
|
+
<ui-button onclick="window.showListMasterpiece()" data-demo="masterpiece" variant="outline">💎 Masterpiece</ui-button>
|
|
38
|
+
<ui-button onclick="window.showListGrid()" data-demo="grid" variant="outline">🔲 Grid</ui-button>
|
|
39
|
+
<ui-button onclick="window.showListTree()" data-demo="tree" variant="outline">🌲 Tree</ui-button>
|
|
40
|
+
<ui-button onclick="window.showListVirtual()" data-demo="virtual" variant="outline">⚡ Virtual</ui-button>
|
|
41
|
+
<ui-button onclick="window.showListLarge()" data-demo="large" variant="outline">📦 100+ Items</ui-button>
|
|
42
|
+
<ui-button onclick="window.showListApex()" data-demo="apex" variant="outline">🚀 Apex Masterclass</ui-button>
|
|
35
43
|
</div>
|
|
36
44
|
|
|
37
45
|
<div id="listDemoContainer" style="margin-top:8px;"></div>
|
|
@@ -44,6 +52,7 @@ export function initListDemo() {
|
|
|
44
52
|
// 1. Basic List
|
|
45
53
|
// ─────────────────────────────────────────────
|
|
46
54
|
window.showListBasic = function () {
|
|
55
|
+
updateListActiveBtn('basic');
|
|
47
56
|
const c = document.getElementById('listDemoContainer');
|
|
48
57
|
if (!c) return;
|
|
49
58
|
|
|
@@ -146,6 +155,7 @@ window.showListBasic = function () {
|
|
|
146
155
|
// 2. Variants
|
|
147
156
|
// ─────────────────────────────────────────────
|
|
148
157
|
window.showListVariants = function () {
|
|
158
|
+
updateListActiveBtn('variants');
|
|
149
159
|
const c = document.getElementById('listDemoContainer');
|
|
150
160
|
if (!c) return;
|
|
151
161
|
|
|
@@ -214,6 +224,7 @@ window.showListVariants = function () {
|
|
|
214
224
|
// 3. Icons, Badges, Sub-labels, Counters, Pills, Tags
|
|
215
225
|
// ─────────────────────────────────────────────
|
|
216
226
|
window.showListIcons = function () {
|
|
227
|
+
updateListActiveBtn('icons');
|
|
217
228
|
const c = document.getElementById('listDemoContainer');
|
|
218
229
|
if (!c) return;
|
|
219
230
|
|
|
@@ -223,11 +234,11 @@ window.showListIcons = function () {
|
|
|
223
234
|
<div class="demo-block" style="background:white;border-radius:12px;padding:24px;box-shadow:0 2px 12px rgba(0,0,0,0.08);">
|
|
224
235
|
<h3 style="margin-top:0;font-size:15px;">Icons + Badges + Counters</h3>
|
|
225
236
|
<ui-list dividers>
|
|
226
|
-
<ui-list-item label="Inbox" icon="fas fa-inbox" value="inbox" badge="12" badge-color="primary" counter="12"></ui-list-item>
|
|
237
|
+
<ui-list-item label="Inbox" icon="fas fa-inbox" value="inbox" badge="12" badge-color="primary" counter="12" counter-color="info"></ui-list-item>
|
|
227
238
|
<ui-list-item label="Promotions" icon="fas fa-tag" value="promo" badge="New" badge-color="success"></ui-list-item>
|
|
228
|
-
<ui-list-item label="Updates" icon="fas fa-refresh" value="updates" counter="3"></ui-list-item>
|
|
239
|
+
<ui-list-item label="Updates" icon="fas fa-refresh" value="updates" counter="3" counter-color="warning"></ui-list-item>
|
|
229
240
|
<ui-list-item label="Forums" icon="fas fa-comments" value="forums"></ui-list-item>
|
|
230
|
-
<ui-list-item label="Spam" icon="fas fa-ban" value="spam" badge="99+" badge-color="danger" counter="99"></ui-list-item>
|
|
241
|
+
<ui-list-item label="Spam" icon="fas fa-ban" value="spam" badge="99+" badge-color="danger" counter="99" counter-color="secondary"></ui-list-item>
|
|
231
242
|
</ui-list>
|
|
232
243
|
</div>
|
|
233
244
|
|
|
@@ -333,6 +344,7 @@ window.showListIcons = function () {
|
|
|
333
344
|
// 4. Collapsible Items
|
|
334
345
|
// ─────────────────────────────────────────────
|
|
335
346
|
window.showListCollapsible = function () {
|
|
347
|
+
updateListActiveBtn('collapsible');
|
|
336
348
|
const c = document.getElementById('listDemoContainer');
|
|
337
349
|
if (!c) return;
|
|
338
350
|
|
|
@@ -402,6 +414,7 @@ window.showListCollapsible = function () {
|
|
|
402
414
|
// 5. Search
|
|
403
415
|
// ─────────────────────────────────────────────
|
|
404
416
|
window.showListSearch = function () {
|
|
417
|
+
updateListActiveBtn('search');
|
|
405
418
|
const c = document.getElementById('listDemoContainer');
|
|
406
419
|
if (!c) return;
|
|
407
420
|
|
|
@@ -459,6 +472,7 @@ window.showListSearch = function () {
|
|
|
459
472
|
// 6. Grouped
|
|
460
473
|
// ─────────────────────────────────────────────
|
|
461
474
|
window.showListGrouped = function () {
|
|
475
|
+
updateListActiveBtn('grouped');
|
|
462
476
|
const c = document.getElementById('listDemoContainer');
|
|
463
477
|
if (!c) return;
|
|
464
478
|
|
|
@@ -508,6 +522,7 @@ window.showListGrouped = function () {
|
|
|
508
522
|
// 7. Drag-and-Drop Reorder
|
|
509
523
|
// ─────────────────────────────────────────────
|
|
510
524
|
window.showListDraggable = function () {
|
|
525
|
+
updateListActiveBtn('draggable');
|
|
511
526
|
const c = document.getElementById('listDemoContainer');
|
|
512
527
|
if (!c) return;
|
|
513
528
|
|
|
@@ -566,6 +581,7 @@ window.showListDraggable = function () {
|
|
|
566
581
|
// 8. Paginated
|
|
567
582
|
// ─────────────────────────────────────────────
|
|
568
583
|
window.showListPaginated = function () {
|
|
584
|
+
updateListActiveBtn('paginated');
|
|
569
585
|
const c = document.getElementById('listDemoContainer');
|
|
570
586
|
if (!c) return;
|
|
571
587
|
|
|
@@ -634,6 +650,7 @@ window.showListPaginated = function () {
|
|
|
634
650
|
// 9. Virtual Scroll
|
|
635
651
|
// ─────────────────────────────────────────────
|
|
636
652
|
window.showListVirtual = function () {
|
|
653
|
+
updateListActiveBtn('virtual');
|
|
637
654
|
const c = document.getElementById('listDemoContainer');
|
|
638
655
|
if (!c) return;
|
|
639
656
|
|
|
@@ -682,6 +699,7 @@ window.showListVirtual = function () {
|
|
|
682
699
|
// 9. Interactions & Custom Colors
|
|
683
700
|
// ─────────────────────────────────────────────
|
|
684
701
|
window.showListInteractions = function () {
|
|
702
|
+
updateListActiveBtn('interactions');
|
|
685
703
|
const c = document.getElementById('listDemoContainer');
|
|
686
704
|
if (!c) return;
|
|
687
705
|
|
|
@@ -811,6 +829,7 @@ window.showListInteractions = function () {
|
|
|
811
829
|
// 10. The God-Tier Masterpiece
|
|
812
830
|
// ─────────────────────────────────────────────
|
|
813
831
|
window.showListMasterpiece = function () {
|
|
832
|
+
updateListActiveBtn('masterpiece');
|
|
814
833
|
const c = document.getElementById('listDemoContainer');
|
|
815
834
|
if (!c) return;
|
|
816
835
|
|
|
@@ -965,6 +984,7 @@ window.showListMasterpiece = function () {
|
|
|
965
984
|
// 11. Responsive Grid Mode
|
|
966
985
|
// ─────────────────────────────────────────────
|
|
967
986
|
window.showListGrid = function () {
|
|
987
|
+
updateListActiveBtn('grid');
|
|
968
988
|
const c = document.getElementById('listDemoContainer');
|
|
969
989
|
if (!c) return;
|
|
970
990
|
|
|
@@ -1021,6 +1041,7 @@ window.showListGrid = function () {
|
|
|
1021
1041
|
// 12. Tree View with Branch Lines
|
|
1022
1042
|
// ─────────────────────────────────────────────
|
|
1023
1043
|
window.showListTree = function () {
|
|
1044
|
+
updateListActiveBtn('tree');
|
|
1024
1045
|
const c = document.getElementById('listDemoContainer');
|
|
1025
1046
|
if (!c) return;
|
|
1026
1047
|
|
|
@@ -1052,6 +1073,7 @@ window.showListTree = function () {
|
|
|
1052
1073
|
// 13. Large List (100+ items)
|
|
1053
1074
|
// ─────────────────────────────────────────────
|
|
1054
1075
|
window.showListLarge = function () {
|
|
1076
|
+
updateListActiveBtn('large');
|
|
1055
1077
|
const c = document.getElementById('listDemoContainer');
|
|
1056
1078
|
if (!c) return;
|
|
1057
1079
|
|
|
@@ -1232,6 +1254,7 @@ window.showListAdvanced = function () {
|
|
|
1232
1254
|
// 10. Apex List Masterclass
|
|
1233
1255
|
// ─────────────────────────────────────────────
|
|
1234
1256
|
window.showListApex = function () {
|
|
1257
|
+
updateListActiveBtn('apex');
|
|
1235
1258
|
const c = document.getElementById('listDemoContainer');
|
|
1236
1259
|
if (!c) return;
|
|
1237
1260
|
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// Masonry Layout Demo
|
|
2
|
+
export function initMasonryDemo() {
|
|
3
|
+
const section = document.getElementById('masonry');
|
|
4
|
+
if (!section) return;
|
|
5
|
+
|
|
6
|
+
section.innerHTML = `
|
|
7
|
+
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;">
|
|
8
|
+
<h2 style="margin: 0; display: flex; align-items: center; gap: 10px;">
|
|
9
|
+
<ui-icon name="layout-grid" library="lucide" size="24px"></ui-icon> Masonry Grid Layout
|
|
10
|
+
</h2>
|
|
11
|
+
<div style="display: flex; gap: 10px;">
|
|
12
|
+
<ui-button onclick="showBasicMasonry()"
|
|
13
|
+
style="background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px;">
|
|
14
|
+
<ui-icon name="rotate-ccw" library="lucide" size="14px"></ui-icon> Reset View
|
|
15
|
+
</ui-button>
|
|
16
|
+
<ui-button onclick="showSection('home')"
|
|
17
|
+
style="background-color: #6b7280; color: white; border: none; padding: 6px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 6px;">
|
|
18
|
+
<ui-icon name="arrow-left" library="lucide" size="12px"></ui-icon> Back to Home
|
|
19
|
+
</ui-button>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<p>A responsive masonry-style grid layout with filtering, custom search, and dynamic card selection overlays.</p>
|
|
23
|
+
|
|
24
|
+
<div class="demo-controls" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap;">
|
|
25
|
+
<ui-button onclick="showBasicMasonry()" variant="outline"><ui-icon name="image" library="lucide" size="16px"></ui-icon> Basic Grid</ui-button>
|
|
26
|
+
<ui-button onclick="showFilteredMasonry()" variant="outline"><ui-icon name="filter" library="lucide" size="16px"></ui-icon> Categorized & Searchable</ui-button>
|
|
27
|
+
<ui-button onclick="showSelectableMasonry()" variant="outline"><ui-icon name="check-square" library="lucide" size="16px"></ui-icon> Selection & Batch Actions</ui-button>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div id="masonryDemoContainer" style="margin-top: 20px;"></div>
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
showBasicMasonry();
|
|
35
|
+
}, 100);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Basic Masonry Demo
|
|
39
|
+
window.showBasicMasonry = function () {
|
|
40
|
+
const container = document.getElementById('masonryDemoContainer');
|
|
41
|
+
if (!container) return;
|
|
42
|
+
|
|
43
|
+
container.innerHTML = `
|
|
44
|
+
<div class="demo-block" style="background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);">
|
|
45
|
+
<h3 style="margin-top: 0; display: flex; align-items: center; gap: 10px;">
|
|
46
|
+
<span style="font-size: 24px;">🖼️</span>
|
|
47
|
+
Fluid Masonry Gallery
|
|
48
|
+
</h3>
|
|
49
|
+
<p style="color: #6b7280;">Smooth cascading multi-column layout with fluid heights and instant image loading.</p>
|
|
50
|
+
|
|
51
|
+
<div style="margin-top: 30px;">
|
|
52
|
+
<ui-masonry id="basicMasonry" columns="3" gap="20" layout-type="masonry"></ui-masonry>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
const masonry = document.getElementById('basicMasonry');
|
|
59
|
+
if (masonry) {
|
|
60
|
+
const items = [
|
|
61
|
+
{ id: 1, title: 'Mountain Wilderness', category: 'nature', image: 'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=600&auto=format&fit=crop' },
|
|
62
|
+
{ id: 2, title: 'Downtown Rush', category: 'urban', image: 'https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=600&auto=format&fit=crop' },
|
|
63
|
+
{ id: 3, title: 'Misty Evergreen Forest', category: 'nature', image: 'https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=600&auto=format&fit=crop' },
|
|
64
|
+
{ id: 4, title: 'Cyberpunk Streets', category: 'urban', image: 'https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=600&auto=format&fit=crop' },
|
|
65
|
+
{ id: 5, title: 'Sleepy Red Fox', category: 'animals', image: 'https://images.unsplash.com/photo-1474511320723-9a56873867b5?w=600&auto=format&fit=crop' },
|
|
66
|
+
{ id: 6, title: 'Playful Kitten', category: 'animals', image: 'https://images.unsplash.com/photo-1533738363-b7f9aef128ce?w=600&auto=format&fit=crop' }
|
|
67
|
+
];
|
|
68
|
+
masonry.items = JSON.stringify(items);
|
|
69
|
+
}
|
|
70
|
+
}, 200);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// Filtered & Searchable Masonry Demo
|
|
74
|
+
window.showFilteredMasonry = function () {
|
|
75
|
+
const container = document.getElementById('masonryDemoContainer');
|
|
76
|
+
if (!container) return;
|
|
77
|
+
|
|
78
|
+
container.innerHTML = `
|
|
79
|
+
<div class="demo-block" style="background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);">
|
|
80
|
+
<h3 style="margin-top: 0; display: flex; align-items: center; gap: 10px;">
|
|
81
|
+
<ui-icon name="filter" library="lucide" size="24px"></ui-icon>
|
|
82
|
+
Categorized & Searchable Grid
|
|
83
|
+
</h3>
|
|
84
|
+
<p style="color: #6b7280;">Filter items dynamically by category tabs or run real-time search queries across fields.</p>
|
|
85
|
+
|
|
86
|
+
<div style="margin-top: 30px;">
|
|
87
|
+
<ui-masonry id="filteredMasonry" columns="3" gap="16" show-filters="true" layout-type="masonry"></ui-masonry>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
91
|
+
|
|
92
|
+
setTimeout(() => {
|
|
93
|
+
const masonry = document.getElementById('filteredMasonry');
|
|
94
|
+
if (masonry) {
|
|
95
|
+
const filterOptions = [
|
|
96
|
+
{ key: 'all', label: '🌟 All' },
|
|
97
|
+
{ key: 'nature', label: '🌲 Nature' },
|
|
98
|
+
{ key: 'urban', label: '🏙️ Urban' },
|
|
99
|
+
{ key: 'animals', label: '🦊 Animals' }
|
|
100
|
+
];
|
|
101
|
+
const items = [
|
|
102
|
+
{ id: 1, title: 'Mountain Wilderness', category: 'nature', image: 'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=600&auto=format&fit=crop' },
|
|
103
|
+
{ id: 2, title: 'Downtown Rush', category: 'urban', image: 'https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=600&auto=format&fit=crop' },
|
|
104
|
+
{ id: 3, title: 'Misty Evergreen Forest', category: 'nature', image: 'https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=600&auto=format&fit=crop' },
|
|
105
|
+
{ id: 4, title: 'Cyberpunk Streets', category: 'urban', image: 'https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=600&auto=format&fit=crop' },
|
|
106
|
+
{ id: 5, title: 'Sleepy Red Fox', category: 'animals', image: 'https://images.unsplash.com/photo-1474511320723-9a56873867b5?w=600&auto=format&fit=crop' },
|
|
107
|
+
{ id: 6, title: 'Playful Kitten', category: 'animals', image: 'https://images.unsplash.com/photo-1533738363-b7f9aef128ce?w=600&auto=format&fit=crop' }
|
|
108
|
+
];
|
|
109
|
+
masonry.filterOptions = JSON.stringify(filterOptions);
|
|
110
|
+
masonry.items = JSON.stringify(items);
|
|
111
|
+
}
|
|
112
|
+
}, 200);
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// Selection & Batch Actions Masonry Demo
|
|
116
|
+
window.showSelectableMasonry = function () {
|
|
117
|
+
const container = document.getElementById('masonryDemoContainer');
|
|
118
|
+
if (!container) return;
|
|
119
|
+
|
|
120
|
+
container.innerHTML = `
|
|
121
|
+
<div class="demo-block" style="background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);">
|
|
122
|
+
<div style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;">
|
|
123
|
+
<div>
|
|
124
|
+
<h3 style="margin-top: 0; display: flex; align-items: center; gap: 10px;">
|
|
125
|
+
<ui-icon name="check-square" library="lucide" size="24px"></ui-icon>
|
|
126
|
+
Interactive Selection & Batch Control
|
|
127
|
+
</h3>
|
|
128
|
+
<p style="color: #6b7280; margin: 0;">Check checkboxes on hover, select all using hotkeys, or use batch deletions.</p>
|
|
129
|
+
</div>
|
|
130
|
+
<div id="selectionStatusBadge" style="background: #10b98115; border: 1px solid #10b98144; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: #059669; font-weight: 600;">
|
|
131
|
+
0 items selected
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div style="margin-top: 30px;">
|
|
136
|
+
<ui-masonry id="selectableMasonry" columns="3" gap="16" selectable="true" show-batch-actions="true" layout-type="masonry"></ui-masonry>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
`;
|
|
140
|
+
|
|
141
|
+
setTimeout(() => {
|
|
142
|
+
const masonry = document.getElementById('selectableMasonry');
|
|
143
|
+
const badge = document.getElementById('selectionStatusBadge');
|
|
144
|
+
if (masonry) {
|
|
145
|
+
const items = [
|
|
146
|
+
{ id: 1, title: 'Mountain Wilderness', category: 'nature', image: 'https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=600&auto=format&fit=crop' },
|
|
147
|
+
{ id: 2, title: 'Downtown Rush', category: 'urban', image: 'https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=600&auto=format&fit=crop' },
|
|
148
|
+
{ id: 3, title: 'Misty Evergreen Forest', category: 'nature', image: 'https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=600&auto=format&fit=crop' },
|
|
149
|
+
{ id: 4, title: 'Cyberpunk Streets', category: 'urban', image: 'https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=600&auto=format&fit=crop' }
|
|
150
|
+
];
|
|
151
|
+
masonry.items = JSON.stringify(items);
|
|
152
|
+
|
|
153
|
+
masonry.addEventListener('itemSelectionChange', (e) => {
|
|
154
|
+
const count = e.detail?.selectedItems?.length || 0;
|
|
155
|
+
badge.innerText = `${count} ${count === 1 ? 'item' : 'items'} selected`;
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
masonry.addEventListener('batchDelete', (e) => {
|
|
159
|
+
alert(`Deleted items: ${e.detail.items.map(i => i.title).join(', ')}`);
|
|
160
|
+
badge.innerText = '0 items selected';
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
}, 200);
|
|
164
|
+
};
|