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
|
@@ -34,28 +34,27 @@ export function initDockDemo() {
|
|
|
34
34
|
const container = document.getElementById('dockDemoContainer');
|
|
35
35
|
if (!container) return;
|
|
36
36
|
|
|
37
|
-
const items = JSON.stringify([
|
|
38
|
-
{ id: 'finder', label: 'Finder', icon: 'smile' },
|
|
39
|
-
{ id: 'mail', label: 'Mail', icon: 'mail' },
|
|
40
|
-
{ id: 'browser', label: 'Browser', icon: 'globe' },
|
|
41
|
-
{ id: 'music', label: 'Music', icon: 'music' },
|
|
42
|
-
{ id: 'photos', label: 'Photos', icon: 'image' },
|
|
43
|
-
{ id: 'settings', label: 'Settings', icon: 'settings' },
|
|
44
|
-
]);
|
|
45
|
-
|
|
46
37
|
container.innerHTML = `
|
|
47
38
|
<div style="margin-bottom: 30px;">
|
|
48
39
|
<h4>Bottom Dock (Default)</h4>
|
|
49
40
|
<p style="color: #6b7280; font-size: 14px; margin-bottom: 16px;">Hover over icons to see magnification effect</p>
|
|
50
41
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
51
|
-
<ui-dock
|
|
42
|
+
<ui-dock id="basicDock" icon-library="lucide"></ui-dock>
|
|
52
43
|
</div>
|
|
53
44
|
</div>
|
|
54
45
|
`;
|
|
55
46
|
|
|
56
47
|
setTimeout(() => {
|
|
57
|
-
const dock =
|
|
48
|
+
const dock = document.getElementById('basicDock');
|
|
58
49
|
if (dock) {
|
|
50
|
+
dock.items = JSON.stringify([
|
|
51
|
+
{ id: 'finder', label: 'Finder', icon: 'smile' },
|
|
52
|
+
{ id: 'mail', label: 'Mail', icon: 'mail' },
|
|
53
|
+
{ id: 'browser', label: 'Browser', icon: 'globe' },
|
|
54
|
+
{ id: 'music', label: 'Music', icon: 'music' },
|
|
55
|
+
{ id: 'photos', label: 'Photos', icon: 'image' },
|
|
56
|
+
{ id: 'settings', label: 'Settings', icon: 'settings' },
|
|
57
|
+
]);
|
|
59
58
|
dock.addEventListener('dockItemClick', e => {
|
|
60
59
|
console.log('Dock item clicked:', e.detail);
|
|
61
60
|
});
|
|
@@ -67,26 +66,18 @@ export function initDockDemo() {
|
|
|
67
66
|
const container = document.getElementById('dockDemoContainer');
|
|
68
67
|
if (!container) return;
|
|
69
68
|
|
|
70
|
-
const items = JSON.stringify([
|
|
71
|
-
{ id: '1', label: 'Home', icon: 'home' },
|
|
72
|
-
{ id: '2', label: 'Search', icon: 'search' },
|
|
73
|
-
{ id: '3', label: 'Heart', icon: 'heart' },
|
|
74
|
-
{ id: '4', label: 'Star', icon: 'star' },
|
|
75
|
-
{ id: '5', label: 'Settings', icon: 'settings' },
|
|
76
|
-
]);
|
|
77
|
-
|
|
78
69
|
container.innerHTML = `
|
|
79
70
|
<div style="margin-bottom: 30px;">
|
|
80
71
|
<h4>Bottom Position</h4>
|
|
81
72
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
82
|
-
<ui-dock
|
|
73
|
+
<ui-dock id="dockPosBottom" position="bottom" icon-library="lucide"></ui-dock>
|
|
83
74
|
</div>
|
|
84
75
|
</div>
|
|
85
76
|
|
|
86
77
|
<div style="margin-bottom: 30px;">
|
|
87
78
|
<h4>Top Position</h4>
|
|
88
79
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
89
|
-
<ui-dock
|
|
80
|
+
<ui-dock id="dockPosTop" position="top" icon-library="lucide"></ui-dock>
|
|
90
81
|
</div>
|
|
91
82
|
</div>
|
|
92
83
|
|
|
@@ -94,98 +85,107 @@ export function initDockDemo() {
|
|
|
94
85
|
<div>
|
|
95
86
|
<h4>Left Position</h4>
|
|
96
87
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
97
|
-
<ui-dock
|
|
88
|
+
<ui-dock id="dockPosLeft" position="left" icon-library="lucide"></ui-dock>
|
|
98
89
|
</div>
|
|
99
90
|
</div>
|
|
100
91
|
|
|
101
92
|
<div>
|
|
102
93
|
<h4>Right Position</h4>
|
|
103
94
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
104
|
-
<ui-dock
|
|
95
|
+
<ui-dock id="dockPosRight" position="right" icon-library="lucide"></ui-dock>
|
|
105
96
|
</div>
|
|
106
97
|
</div>
|
|
107
98
|
</div>
|
|
108
99
|
`;
|
|
100
|
+
|
|
101
|
+
setTimeout(() => {
|
|
102
|
+
const itemsList = JSON.stringify([
|
|
103
|
+
{ id: '1', label: 'Home', icon: 'home' },
|
|
104
|
+
{ id: '2', label: 'Search', icon: 'search' },
|
|
105
|
+
{ id: '3', label: 'Heart', icon: 'heart' },
|
|
106
|
+
{ id: '4', label: 'Star', icon: 'star' },
|
|
107
|
+
{ id: '5', label: 'Settings', icon: 'settings' },
|
|
108
|
+
]);
|
|
109
|
+
['dockPosBottom', 'dockPosTop', 'dockPosLeft', 'dockPosRight'].forEach(id => {
|
|
110
|
+
const d = document.getElementById(id);
|
|
111
|
+
if (d) d.items = itemsList;
|
|
112
|
+
});
|
|
113
|
+
}, 100);
|
|
109
114
|
};
|
|
110
115
|
|
|
111
116
|
window.showDockSizes = function () {
|
|
112
117
|
const container = document.getElementById('dockDemoContainer');
|
|
113
118
|
if (!container) return;
|
|
114
119
|
|
|
115
|
-
const items = JSON.stringify([
|
|
116
|
-
{ id: '1', label: 'File', icon: 'file-text' },
|
|
117
|
-
{ id: '2', label: 'Folder', icon: 'folder' },
|
|
118
|
-
{ id: '3', label: 'Image', icon: 'image' },
|
|
119
|
-
{ id: '4', label: 'Video', icon: 'clapperboard' },
|
|
120
|
-
]);
|
|
121
|
-
|
|
122
120
|
container.innerHTML = `
|
|
123
121
|
<div style="margin-bottom: 30px;">
|
|
124
122
|
<h4>Small Size</h4>
|
|
125
123
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
126
|
-
<ui-dock
|
|
124
|
+
<ui-dock id="dockSizeSm" size="sm" icon-library="lucide"></ui-dock>
|
|
127
125
|
</div>
|
|
128
126
|
</div>
|
|
129
127
|
|
|
130
128
|
<div style="margin-bottom: 30px;">
|
|
131
129
|
<h4>md Size (Default)</h4>
|
|
132
130
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
133
|
-
<ui-dock
|
|
131
|
+
<ui-dock id="dockSizeMd" size="md" icon-library="lucide"></ui-dock>
|
|
134
132
|
</div>
|
|
135
133
|
</div>
|
|
136
134
|
|
|
137
135
|
<div>
|
|
138
136
|
<h4>Large Size</h4>
|
|
139
137
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
140
|
-
<ui-dock
|
|
138
|
+
<ui-dock id="dockSizeLg" size="lg" icon-library="lucide"></ui-dock>
|
|
141
139
|
</div>
|
|
142
140
|
</div>
|
|
143
141
|
`;
|
|
142
|
+
|
|
143
|
+
setTimeout(() => {
|
|
144
|
+
const itemsList = JSON.stringify([
|
|
145
|
+
{ id: '1', label: 'File', icon: 'file-text' },
|
|
146
|
+
{ id: '2', label: 'Folder', icon: 'folder' },
|
|
147
|
+
{ id: '3', label: 'Image', icon: 'image' },
|
|
148
|
+
{ id: '4', label: 'Video', icon: 'clapperboard' },
|
|
149
|
+
]);
|
|
150
|
+
['dockSizeSm', 'dockSizeMd', 'dockSizeLg'].forEach(id => {
|
|
151
|
+
const d = document.getElementById(id);
|
|
152
|
+
if (d) d.items = itemsList;
|
|
153
|
+
});
|
|
154
|
+
}, 100);
|
|
144
155
|
};
|
|
145
156
|
|
|
146
157
|
window.showDockWithBadges = function () {
|
|
147
158
|
const container = document.getElementById('dockDemoContainer');
|
|
148
159
|
if (!container) return;
|
|
149
160
|
|
|
150
|
-
const items = JSON.stringify([
|
|
151
|
-
{ id: 'mail', label: 'Mail', icon: 'mail', badge: 12 },
|
|
152
|
-
{ id: 'messages', label: 'Messages', icon: 'message-square', badge: 5 },
|
|
153
|
-
{ id: 'notifications', label: 'Notifications', icon: 'bell', badge: 99 },
|
|
154
|
-
{ id: 'calendar', label: 'Calendar', icon: 'calendar' },
|
|
155
|
-
{ id: 'tasks', label: 'Tasks', icon: 'check-square', badge: 3 },
|
|
156
|
-
]);
|
|
157
|
-
|
|
158
161
|
container.innerHTML = `
|
|
159
162
|
<div style="margin-bottom: 30px;">
|
|
160
163
|
<h4>Dock with Badge Indicators</h4>
|
|
161
164
|
<p style="color: #6b7280; font-size: 14px; margin-bottom: 16px;">Icons can display notification badges</p>
|
|
162
165
|
<div style="display: flex; justify-content: center; padding: 40px; background-color: #f3f4f6; border-radius: 8px;">
|
|
163
|
-
<ui-dock
|
|
166
|
+
<ui-dock id="dockWithBadges" icon-library="lucide"></ui-dock>
|
|
164
167
|
</div>
|
|
165
168
|
</div>
|
|
166
169
|
`;
|
|
170
|
+
|
|
171
|
+
setTimeout(() => {
|
|
172
|
+
const d = document.getElementById('dockWithBadges');
|
|
173
|
+
if (d) {
|
|
174
|
+
d.items = JSON.stringify([
|
|
175
|
+
{ id: 'mail', label: 'Mail', icon: 'mail', badge: 12 },
|
|
176
|
+
{ id: 'messages', label: 'Messages', icon: 'message-square', badge: 5 },
|
|
177
|
+
{ id: 'notifications', label: 'Notifications', icon: 'bell', badge: 99 },
|
|
178
|
+
{ id: 'calendar', label: 'Calendar', icon: 'calendar' },
|
|
179
|
+
{ id: 'tasks', label: 'Tasks', icon: 'check-square', badge: 3 },
|
|
180
|
+
]);
|
|
181
|
+
}
|
|
182
|
+
}, 100);
|
|
167
183
|
};
|
|
168
184
|
|
|
169
185
|
window.showPremiumDock = function () {
|
|
170
186
|
const container = document.getElementById('dockDemoContainer');
|
|
171
187
|
if (!container) return;
|
|
172
188
|
|
|
173
|
-
// Simulate OS Dock
|
|
174
|
-
const items = JSON.stringify([
|
|
175
|
-
{ id: 'finder', label: 'Finder', icon: 'smile', active: true },
|
|
176
|
-
{ id: 'launchpad', label: 'Launchpad', icon: 'rocket' },
|
|
177
|
-
{ id: 'browser', label: 'Safari', icon: 'compass', active: true },
|
|
178
|
-
{ id: 'mail', label: 'Mail', icon: 'mail', badge: 3, bounce: true },
|
|
179
|
-
{ id: 'maps', label: 'Maps', icon: 'map' },
|
|
180
|
-
{ id: 'separator1', separator: true },
|
|
181
|
-
{ id: 'music', label: 'Music', icon: 'music', active: true },
|
|
182
|
-
{ id: 'podcasts', label: 'Podcasts', icon: 'mic' },
|
|
183
|
-
{ id: 'tv', label: 'TV', icon: 'tv' },
|
|
184
|
-
{ id: 'separator2', separator: true },
|
|
185
|
-
{ id: 'settings', label: 'System Settings', icon: 'settings' },
|
|
186
|
-
{ id: 'trash', label: 'Trash', icon: 'trash-2' },
|
|
187
|
-
]);
|
|
188
|
-
|
|
189
189
|
container.innerHTML = `
|
|
190
190
|
<div style="margin-bottom: 30px;">
|
|
191
191
|
<h3>✨ OS Experience</h3>
|
|
@@ -212,7 +212,7 @@ export function initDockDemo() {
|
|
|
212
212
|
|
|
213
213
|
<!-- The Dock -->
|
|
214
214
|
<ui-dock
|
|
215
|
-
|
|
215
|
+
id="premiumDock"
|
|
216
216
|
position="bottom"
|
|
217
217
|
size="md"
|
|
218
218
|
magnify="true"
|
|
@@ -227,6 +227,26 @@ export function initDockDemo() {
|
|
|
227
227
|
</div>
|
|
228
228
|
`;
|
|
229
229
|
|
|
230
|
+
setTimeout(() => {
|
|
231
|
+
const d = document.getElementById('premiumDock');
|
|
232
|
+
if (d) {
|
|
233
|
+
d.items = JSON.stringify([
|
|
234
|
+
{ id: 'finder', label: 'Finder', icon: 'smile', active: true },
|
|
235
|
+
{ id: 'launchpad', label: 'Launchpad', icon: 'rocket' },
|
|
236
|
+
{ id: 'browser', label: 'Safari', icon: 'compass', active: true },
|
|
237
|
+
{ id: 'mail', label: 'Mail', icon: 'mail', badge: 3, bounce: true },
|
|
238
|
+
{ id: 'maps', label: 'Maps', icon: 'map' },
|
|
239
|
+
{ id: 'separator1', separator: true },
|
|
240
|
+
{ id: 'music', label: 'Music', icon: 'music', active: true },
|
|
241
|
+
{ id: 'podcasts', label: 'Podcasts', icon: 'mic' },
|
|
242
|
+
{ id: 'tv', label: 'TV', icon: 'tv' },
|
|
243
|
+
{ id: 'separator2', separator: true },
|
|
244
|
+
{ id: 'settings', label: 'System Settings', icon: 'settings' },
|
|
245
|
+
{ id: 'trash', label: 'Trash', icon: 'trash-2' },
|
|
246
|
+
]);
|
|
247
|
+
}
|
|
248
|
+
}, 100);
|
|
249
|
+
|
|
230
250
|
window.toggleBounce = function () {
|
|
231
251
|
alert("In a real React/Angular app, you'd update the 'items' prop to remove 'bounce: true'.");
|
|
232
252
|
};
|
|
@@ -313,7 +333,7 @@ export function initDockDemo() {
|
|
|
313
333
|
</div>
|
|
314
334
|
|
|
315
335
|
<div style="margin-top: 20px; background: #1e293b; padding: 16px; border-radius: 8px; position: relative;">
|
|
316
|
-
<ui-button id="btnCopyDockCode" variant="ghost" color="secondary" label="Copy" size="md"
|
|
336
|
+
<ui-button id="btnCopyDockCode" variant="ghost" color="secondary" label="Copy" size="md" style="position: absolute; top: 10px; right: 10px; --btn-bg: rgba(255,255,255,0.1); --btn-text: white;"></ui-button>
|
|
317
337
|
<code id="dockCodeBlock" style="color: #e2e8f0; font-family: monospace; font-size: 13px; display: block; overflow-x: auto; padding-right: 50px; white-space: pre-wrap;">
|
|
318
338
|
<ui-dock ...></ui-dock>
|
|
319
339
|
</code>
|
|
@@ -1,34 +1,239 @@
|
|
|
1
1
|
export function initDocumentationDemo() {
|
|
2
2
|
const section = document.getElementById('documentation');
|
|
3
3
|
if (!section) return;
|
|
4
|
+
|
|
4
5
|
section.innerHTML = `
|
|
5
|
-
<div style="padding:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
<div style="padding:40px 32px; max-width:860px; margin:0 auto; font-family:inherit;">
|
|
7
|
+
|
|
8
|
+
<!-- Header -->
|
|
9
|
+
<div style="margin-bottom:40px;">
|
|
10
|
+
<div style="display:flex; align-items:center; gap:12px; margin-bottom:8px;">
|
|
11
|
+
<span style="font-size:2rem;">🚀</span>
|
|
12
|
+
<h1 style="font-size:2rem; font-weight:800; margin:0; color:var(--text-primary,#0f172a);">Installation</h1>
|
|
13
|
+
<span style="font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; background:#dcfce7; color:#15803d; border:1px solid #bbf7d0;">v0.0.1 — latest</span>
|
|
14
|
+
</div>
|
|
15
|
+
<p style="font-size:15px; color:var(--text-secondary,#64748b); margin:0; line-height:1.7;">
|
|
16
|
+
App UI is a <strong>Stencil.js</strong> web-component library — framework-agnostic, tree-shakable, and zero runtime dependencies.
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- Prerequisites -->
|
|
21
|
+
<div style="margin-bottom:36px;">
|
|
22
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
23
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#f59e0b; display:inline-flex; align-items:center; justify-content:center; font-size:11px;">⚡</span>
|
|
24
|
+
Prerequisites
|
|
25
|
+
</h2>
|
|
26
|
+
<div style="display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px;">
|
|
27
|
+
${[
|
|
28
|
+
{ icon: '🟢', name: 'Node.js', version: '≥ 18.0', note: 'LTS recommended', ok: true },
|
|
29
|
+
{ icon: '📦', name: 'npm', version: '≥ 9.0', note: 'or yarn ≥ 1.22', ok: true },
|
|
30
|
+
{ icon: '🌐', name: 'Browser', version: 'Evergreen', note: 'Chrome, Firefox, Edge, Safari', ok: true },
|
|
31
|
+
{ icon: '🔷', name: 'TypeScript', version: '≥ 5.0', note: 'optional but recommended', ok: false },
|
|
32
|
+
].map(p => `
|
|
33
|
+
<div style="padding:14px 16px; border-radius:10px; background:var(--bg-surface,#f8fafc); border:1px solid var(--border,#e2e8f0); display:flex; gap:12px; align-items:flex-start;">
|
|
34
|
+
<span style="font-size:1.4rem; line-height:1;">${p.icon}</span>
|
|
35
|
+
<div>
|
|
36
|
+
<p style="margin:0; font-size:13px; font-weight:700; color:var(--text-primary,#0f172a);">${p.name}</p>
|
|
37
|
+
<p style="margin:2px 0 0; font-size:12px; color:var(--text-secondary,#64748b);">${p.version}</p>
|
|
38
|
+
<p style="margin:2px 0 0; font-size:11px; color:${p.ok ? '#16a34a' : '#94a3b8'};">${p.note}</p>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
`).join('')}
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Install commands -->
|
|
46
|
+
<div style="margin-bottom:36px;">
|
|
47
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
48
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#3b82f6; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:#fff;">📥</span>
|
|
49
|
+
Install
|
|
50
|
+
</h2>
|
|
51
|
+
${[
|
|
52
|
+
{ label: 'npm', color: '#dc2626', cmd: 'npm install atomicuilibrary' },
|
|
53
|
+
{ label: 'yarn', color: '#2563eb', cmd: 'yarn add atomicuilibrary' },
|
|
54
|
+
{ label: 'pnpm', color: '#f59e0b', cmd: 'pnpm add atomicuilibrary' },
|
|
55
|
+
].map(t => `
|
|
56
|
+
<div style="margin-bottom:10px;">
|
|
57
|
+
<div style="display:flex; align-items:center; gap:8px; margin-bottom:6px;">
|
|
58
|
+
<span style="font-size:11px; font-weight:700; padding:2px 8px; border-radius:4px; background:${t.color}22; color:${t.color};">${t.label}</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div style="position:relative; background:#0f172a; border-radius:8px; padding:14px 48px 14px 18px; border:1px solid #1e293b; display:flex; align-items:center; gap:8px; font-family:'Courier New',monospace; font-size:13px;">
|
|
61
|
+
<span style="color:#4ade80;">$</span>
|
|
62
|
+
<span style="color:#e2e8f0;">${t.cmd}</span>
|
|
63
|
+
<button onclick="navigator.clipboard.writeText('${t.cmd}')" title="Copy" style="position:absolute; right:10px; top:50%; transform:translateY(-50%); background:transparent; border:none; cursor:pointer; opacity:0.5; font-size:14px; padding:4px;">📋</button>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
`).join('')}
|
|
11
67
|
</div>
|
|
12
68
|
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<h4 style="margin-bottom: 8px;">React</h4>
|
|
25
|
-
<p style="font-size: 14px; color: #64748b;">Full type support and event mapping for React 18+ applications.</p>
|
|
69
|
+
<!-- Framework Setup -->
|
|
70
|
+
<div style="margin-bottom:36px;">
|
|
71
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
72
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#8b5cf6; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:#fff;">🔌</span>
|
|
73
|
+
Framework Setup
|
|
74
|
+
</h2>
|
|
75
|
+
<!-- Tabs -->
|
|
76
|
+
<div id="doc-fw-tabs" style="display:flex; gap:4px; margin-bottom:0; border-bottom:2px solid #e2e8f0; padding-bottom:0;">
|
|
77
|
+
${['Vanilla JS','React','Angular','Vue'].map((fw,i) => `
|
|
78
|
+
<button data-fw="${fw}" onclick="docShowFw(this)" style="padding:7px 16px; font-size:12px; font-weight:600; border:none; background:transparent; cursor:pointer; border-bottom:2px solid ${i===0?'#3b82f6':'transparent'}; margin-bottom:-2px; color:${i===0?'#2563eb':'#64748b'}; transition:all .2s;">${fw}</button>
|
|
79
|
+
`).join('')}
|
|
26
80
|
</div>
|
|
27
|
-
<div style="padding:
|
|
28
|
-
<
|
|
29
|
-
|
|
81
|
+
<div id="doc-fw-content" style="background:#0f172a; border-radius:0 0 10px 10px; padding:20px 22px; font-family:'Courier New',monospace; font-size:12px; line-height:2; color:#e2e8f0; border:1px solid #1e293b; border-top:none;">
|
|
82
|
+
<div id="doc-fw-Vanilla JS">
|
|
83
|
+
<span style="color:#64748b;">// 1. Import styles</span><br>
|
|
84
|
+
<span style="color:#86efac;">import</span> <span style="color:#fbbf24;">'atomicuilibrary/dist/atomicuilibrary/atomicuilibrary.css'</span>;<br><br>
|
|
85
|
+
<span style="color:#64748b;">// 2. Register web components</span><br>
|
|
86
|
+
<span style="color:#86efac;">import</span> { <span style="color:#7dd3fc;">defineCustomElements</span> } <span style="color:#86efac;">from</span> <span style="color:#fbbf24;">'atomicuilibrary/loader'</span>;<br>
|
|
87
|
+
<span style="color:#7dd3fc;">defineCustomElements</span>();<br><br>
|
|
88
|
+
<span style="color:#64748b;">// 3. Use in HTML</span><br>
|
|
89
|
+
<span style="color:#f87171;"><ui-button</span> <span style="color:#86efac;">variant</span>=<span style="color:#fbbf24;">"primary"</span><span style="color:#f87171;">></span>Click me<span style="color:#f87171;"></ui-button></span>
|
|
90
|
+
</div>
|
|
91
|
+
<div id="doc-fw-React" style="display:none;">
|
|
92
|
+
<span style="color:#64748b;">// main.tsx</span><br>
|
|
93
|
+
<span style="color:#86efac;">import</span> <span style="color:#fbbf24;">'atomicuilibrary/dist/atomicuilibrary/atomicuilibrary.css'</span>;<br>
|
|
94
|
+
<span style="color:#86efac;">import</span> { <span style="color:#7dd3fc;">applyPolyfills</span>, <span style="color:#7dd3fc;">defineCustomElements</span> } <span style="color:#86efac;">from</span> <span style="color:#fbbf24;">'atomicuilibrary/loader'</span>;<br>
|
|
95
|
+
<span style="color:#7dd3fc;">applyPolyfills</span>().<span style="color:#7dd3fc;">then</span>(() => <span style="color:#7dd3fc;">defineCustomElements</span>());<br><br>
|
|
96
|
+
<span style="color:#64748b;">// Component.tsx — declare module for JSX</span><br>
|
|
97
|
+
<span style="color:#86efac;">declare</span> <span style="color:#7dd3fc;">namespace</span> JSX {<br>
|
|
98
|
+
<span style="color:#86efac;">interface</span> <span style="color:#7dd3fc;">IntrinsicElements</span> { [elem: <span style="color:#fbbf24;">string</span>]: any }<br>
|
|
99
|
+
}<br><br>
|
|
100
|
+
<span style="color:#86efac;">export default function</span> <span style="color:#7dd3fc;">App</span>() {<br>
|
|
101
|
+
<span style="color:#86efac;">return</span> <<span style="color:#f87171;">ui-button</span> <span style="color:#86efac;">variant</span>=<span style="color:#fbbf24;">"primary"</span>>Click me</<span style="color:#f87171;">ui-button</span>>;<br>
|
|
102
|
+
}
|
|
103
|
+
</div>
|
|
104
|
+
<div id="doc-fw-Angular" style="display:none;">
|
|
105
|
+
<span style="color:#64748b;">// app.module.ts</span><br>
|
|
106
|
+
<span style="color:#86efac;">import</span> { <span style="color:#7dd3fc;">NgModule</span>, <span style="color:#7dd3fc;">CUSTOM_ELEMENTS_SCHEMA</span> } <span style="color:#86efac;">from</span> <span style="color:#fbbf24;">'@angular/core'</span>;<br>
|
|
107
|
+
<span style="color:#86efac;">import</span> { <span style="color:#7dd3fc;">defineCustomElements</span> } <span style="color:#86efac;">from</span> <span style="color:#fbbf24;">'atomicuilibrary/loader'</span>;<br>
|
|
108
|
+
<span style="color:#7dd3fc;">defineCustomElements</span>();<br><br>
|
|
109
|
+
<span style="color:#7dd3fc;">@NgModule</span>({<br>
|
|
110
|
+
schemas: [<span style="color:#7dd3fc;">CUSTOM_ELEMENTS_SCHEMA</span>],<br>
|
|
111
|
+
<span style="color:#64748b;">// ...</span><br>
|
|
112
|
+
})<br>
|
|
113
|
+
<span style="color:#86efac;">export class</span> <span style="color:#7dd3fc;">AppModule</span> {}
|
|
114
|
+
</div>
|
|
115
|
+
<div id="doc-fw-Vue" style="display:none;">
|
|
116
|
+
<span style="color:#64748b;">// main.ts</span><br>
|
|
117
|
+
<span style="color:#86efac;">import</span> <span style="color:#fbbf24;">'atomicuilibrary/dist/atomicuilibrary/atomicuilibrary.css'</span>;<br>
|
|
118
|
+
<span style="color:#86efac;">import</span> { <span style="color:#7dd3fc;">defineCustomElements</span> } <span style="color:#86efac;">from</span> <span style="color:#fbbf24;">'atomicuilibrary/loader'</span>;<br>
|
|
119
|
+
<span style="color:#7dd3fc;">defineCustomElements</span>();<br><br>
|
|
120
|
+
<span style="color:#64748b;">// vite.config.ts — suppress web component warnings</span><br>
|
|
121
|
+
<span style="color:#86efac;">export default</span> <span style="color:#7dd3fc;">defineConfig</span>({<br>
|
|
122
|
+
plugins: [<span style="color:#7dd3fc;">vue</span>({<br>
|
|
123
|
+
template: { compilerOptions: { isCustomElement: t => t.startsWith(<span style="color:#fbbf24;">'ui-'</span>) } }<br>
|
|
124
|
+
})]<br>
|
|
125
|
+
});
|
|
126
|
+
</div>
|
|
30
127
|
</div>
|
|
31
128
|
</div>
|
|
129
|
+
|
|
130
|
+
<!-- Supported versions table -->
|
|
131
|
+
<div style="margin-bottom:36px;">
|
|
132
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
133
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#22c55e; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:#fff;">✓</span>
|
|
134
|
+
Supported Versions
|
|
135
|
+
</h2>
|
|
136
|
+
<div style="overflow-x:auto; border-radius:10px; border:1px solid #e2e8f0;">
|
|
137
|
+
<table style="width:100%; border-collapse:collapse; font-size:13px;">
|
|
138
|
+
<thead>
|
|
139
|
+
<tr style="background:#f1f5f9;">
|
|
140
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Version</th>
|
|
141
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Release</th>
|
|
142
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Status</th>
|
|
143
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Node</th>
|
|
144
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Stencil</th>
|
|
145
|
+
<th style="text-align:left; padding:10px 16px; font-weight:700; color:#475569; border-bottom:1px solid #e2e8f0;">Changelog</th>
|
|
146
|
+
</tr>
|
|
147
|
+
</thead>
|
|
148
|
+
<tbody>
|
|
149
|
+
${[
|
|
150
|
+
{ ver:'0.0.1', date:'May 2025', status:'active', node:'≥ 18', stencil:'4.x', link:'#' },
|
|
151
|
+
{ ver:'0.0.1-beta', date:'Mar 2025', status:'maintenance', node:'≥ 16', stencil:'4.x', link:'#' },
|
|
152
|
+
{ ver:'0.0.1-alpha', date:'Jan 2025', status:'eol', node:'≥ 16', stencil:'3.x', link:'#' },
|
|
153
|
+
].map((r,i) => {
|
|
154
|
+
const statusMap = {
|
|
155
|
+
active: { label:'✅ Active', bg:'#f0fdf4', color:'#15803d', border:'#bbf7d0' },
|
|
156
|
+
maintenance: { label:'🔧 Maintenance', bg:'#fffbeb', color:'#b45309', border:'#fde68a' },
|
|
157
|
+
eol: { label:'🔴 End of Life', bg:'#fff1f2', color:'#b91c1c', border:'#fecaca' },
|
|
158
|
+
};
|
|
159
|
+
const s = statusMap[r.status];
|
|
160
|
+
return `
|
|
161
|
+
<tr style="background:${i%2===1?'#f8fafc':'white'}; border-bottom:1px solid #f1f5f9;">
|
|
162
|
+
<td style="padding:10px 16px; font-weight:700; color:#0f172a; font-family:'Courier New',monospace;">${r.ver}</td>
|
|
163
|
+
<td style="padding:10px 16px; color:#64748b;">${r.date}</td>
|
|
164
|
+
<td style="padding:10px 16px;">
|
|
165
|
+
<span style="font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; background:${s.bg}; color:${s.color}; border:1px solid ${s.border};">${s.label}</span>
|
|
166
|
+
</td>
|
|
167
|
+
<td style="padding:10px 16px; color:#64748b; font-family:monospace;">${r.node}</td>
|
|
168
|
+
<td style="padding:10px 16px; color:#64748b; font-family:monospace;">${r.stencil}</td>
|
|
169
|
+
<td style="padding:10px 16px;">
|
|
170
|
+
<a href="${r.link}" style="font-size:12px; color:#3b82f6; text-decoration:none; font-weight:600;">View →</a>
|
|
171
|
+
</td>
|
|
172
|
+
</tr>`;
|
|
173
|
+
}).join('')}
|
|
174
|
+
</tbody>
|
|
175
|
+
</table>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<!-- Older versions -->
|
|
180
|
+
<div style="margin-bottom:36px;">
|
|
181
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
182
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#64748b; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:#fff;">📂</span>
|
|
183
|
+
Older Versions
|
|
184
|
+
</h2>
|
|
185
|
+
<div style="padding:16px 20px; background:#f8fafc; border-radius:10px; border:1px solid #e2e8f0; display:flex; flex-direction:column; gap:10px;">
|
|
186
|
+
<p style="margin:0; font-size:13px; color:#64748b; line-height:1.6;">
|
|
187
|
+
Older releases are still available on npm and GitHub. We recommend upgrading to the latest version for security patches and new features.
|
|
188
|
+
</p>
|
|
189
|
+
<div style="display:flex; flex-wrap:wrap; gap:10px; margin-top:4px;">
|
|
190
|
+
<a href="https://www.npmjs.com/package/atomicuilibrary?activeTab=versions" target="_blank"
|
|
191
|
+
style="display:inline-flex; align-items:center; gap:6px; padding:7px 14px; font-size:12px; font-weight:600; border-radius:8px; background:#fff; border:1px solid #e2e8f0; color:#0f172a; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,0.06);">
|
|
192
|
+
📦 All versions on npm
|
|
193
|
+
</a>
|
|
194
|
+
<a href="https://github.com/kmn/atomicUILibrary/releases" target="_blank"
|
|
195
|
+
style="display:inline-flex; align-items:center; gap:6px; padding:7px 14px; font-size:12px; font-weight:600; border-radius:8px; background:#fff; border:1px solid #e2e8f0; color:#0f172a; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,0.06);">
|
|
196
|
+
🏷️ GitHub Releases
|
|
197
|
+
</a>
|
|
198
|
+
<a href="https://github.com/kmn/atomicUILibrary/blob/main/CHANGELOG.md" target="_blank"
|
|
199
|
+
style="display:inline-flex; align-items:center; gap:6px; padding:7px 14px; font-size:12px; font-weight:600; border-radius:8px; background:#fff; border:1px solid #e2e8f0; color:#0f172a; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,0.06);">
|
|
200
|
+
📝 Changelog
|
|
201
|
+
</a>
|
|
202
|
+
</div>
|
|
203
|
+
<div style="margin-top:6px; padding:12px 16px; background:#fffbeb; border-radius:8px; border:1px solid #fde68a; font-size:12px; color:#92400e; display:flex; gap:8px;">
|
|
204
|
+
<span>⚠️</span>
|
|
205
|
+
<span>Versions <strong>0.0.1-alpha</strong> and below have reached <strong>End of Life</strong> and no longer receive security updates. Please migrate to v0.0.1.</span>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<!-- CDN -->
|
|
211
|
+
<div style="margin-bottom:36px;">
|
|
212
|
+
<h2 style="font-size:1.1rem; font-weight:700; margin:0 0 14px; color:var(--text-primary,#0f172a); display:flex; align-items:center; gap:8px;">
|
|
213
|
+
<span style="width:20px; height:20px; border-radius:4px; background:#06b6d4; display:inline-flex; align-items:center; justify-content:center; font-size:11px; color:#fff;">🌐</span>
|
|
214
|
+
CDN (Quick Prototype)
|
|
215
|
+
</h2>
|
|
216
|
+
<div style="background:#0f172a; border-radius:10px; padding:18px 22px; font-family:'Courier New',monospace; font-size:12px; line-height:1.9; color:#e2e8f0; overflow-x:auto; border:1px solid #1e293b;">
|
|
217
|
+
<span style="color:#64748b;"><!-- Styles --></span><br>
|
|
218
|
+
<span style="color:#f87171;"><link</span> <span style="color:#86efac;">rel</span>=<span style="color:#fbbf24;">"stylesheet"</span> <span style="color:#86efac;">href</span>=<span style="color:#fbbf24;">"https://unpkg.com/atomicuilibrary/dist/atomicuilibrary/atomicuilibrary.css"</span><span style="color:#f87171;">/></span><br><br>
|
|
219
|
+
<span style="color:#64748b;"><!-- ES Module --></span><br>
|
|
220
|
+
<span style="color:#f87171;"><script</span> <span style="color:#86efac;">type</span>=<span style="color:#fbbf24;">"module"</span><br>
|
|
221
|
+
<span style="color:#86efac;">src</span>=<span style="color:#fbbf24;">"https://unpkg.com/atomicuilibrary/dist/atomicuilibrary/atomicuilibrary.esm.js"</span><span style="color:#f87171;">></script></span>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
32
225
|
</div>
|
|
33
226
|
`;
|
|
227
|
+
|
|
228
|
+
// Framework tab switcher
|
|
229
|
+
window.docShowFw = function(btn) {
|
|
230
|
+
const fw = btn.getAttribute('data-fw');
|
|
231
|
+
document.querySelectorAll('#doc-fw-content > div').forEach(p => p.style.display = 'none');
|
|
232
|
+
document.getElementById('doc-fw-' + fw).style.display = '';
|
|
233
|
+
document.querySelectorAll('#doc-fw-tabs button').forEach(b => {
|
|
234
|
+
const on = b.getAttribute('data-fw') === fw;
|
|
235
|
+
b.style.borderBottomColor = on ? '#3b82f6' : 'transparent';
|
|
236
|
+
b.style.color = on ? '#2563eb' : '#64748b';
|
|
237
|
+
});
|
|
238
|
+
};
|
|
34
239
|
}
|
|
@@ -10,7 +10,7 @@ export function initEmptyStateDemo() {
|
|
|
10
10
|
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;">
|
|
11
11
|
<h2>Empty State</h2>
|
|
12
12
|
<div style="display: flex; gap: 8px;">
|
|
13
|
-
<ui-tag label="NEW" color="info" size="md"ui-tag>
|
|
13
|
+
<ui-tag label="NEW" color="info" size="md"></ui-tag>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -19,15 +19,15 @@ export function initEmptyStateDemo() {
|
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
<div class="demo-pills" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; background: #f8fafc; padding: 12px; border-radius: 12px; border: 1px solid #f1f5f9;">
|
|
22
|
-
<ui-button id="btnEmptyPlayground" variant="outline" color="secondary" label="🎮 Playground" size="md"ui-button>
|
|
23
|
-
<ui-button id="btnEmptyCommon" variant="outline" color="primary" label="Common Types" size="md"ui-button>
|
|
24
|
-
<ui-button id="btnEmptyMaster" variant="outline" color="success" label="✨ Master Patterns" size="md"ui-button>
|
|
25
|
-
<ui-button id="btnEmptyAlignment" variant="outline" color="info" label="↔️ Alignment" size="md"ui-button>
|
|
26
|
-
<ui-button id="btnEmptyImages" variant="outline" color="warning" label="🖼️ Images" size="md"ui-button>
|
|
27
|
-
<ui-button id="btnEmptySpecial" variant="outline" color="secondary" label="⭐ Special" size="md"ui-button>
|
|
28
|
-
<ui-button id="btnEmptyRecovery" variant="outline" color="success" label="🔄 Recovery & Search" size="md"ui-button>
|
|
29
|
-
<ui-button id="btnEmptyErrors" variant="outline" color="danger" label="🚫 Errors" size="md"ui-button>
|
|
30
|
-
<ui-button id="btnEmptyFullPage" variant="outline" color="neutral" label="📺 Full Page" size="md"ui-button>
|
|
22
|
+
<ui-button id="btnEmptyPlayground" variant="outline" color="secondary" label="🎮 Playground" size="md"></ui-button>
|
|
23
|
+
<ui-button id="btnEmptyCommon" variant="outline" color="primary" label="Common Types" size="md"></ui-button>
|
|
24
|
+
<ui-button id="btnEmptyMaster" variant="outline" color="success" label="✨ Master Patterns" size="md"></ui-button>
|
|
25
|
+
<ui-button id="btnEmptyAlignment" variant="outline" color="info" label="↔️ Alignment" size="md"></ui-button>
|
|
26
|
+
<ui-button id="btnEmptyImages" variant="outline" color="warning" label="🖼️ Images" size="md"></ui-button>
|
|
27
|
+
<ui-button id="btnEmptySpecial" variant="outline" color="secondary" label="⭐ Special" size="md"></ui-button>
|
|
28
|
+
<ui-button id="btnEmptyRecovery" variant="outline" color="success" label="🔄 Recovery & Search" size="md"></ui-button>
|
|
29
|
+
<ui-button id="btnEmptyErrors" variant="outline" color="danger" label="🚫 Errors" size="md"></ui-button>
|
|
30
|
+
<ui-button id="btnEmptyFullPage" variant="outline" color="neutral" label="📺 Full Page" size="md"></ui-button>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<div id="emptyStateDemoContainer" style="margin-top: 40px;"></div>
|