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
|
@@ -18,6 +18,8 @@ export function initCalloutBannerDemo() {
|
|
|
18
18
|
<ui-button variant="outline" data-tab="autoclose">Auto-Close</ui-button>
|
|
19
19
|
<ui-button variant="outline" data-tab="stack">Stack</ui-button>
|
|
20
20
|
<ui-button variant="outline" data-tab="newfeatures">Industrial Props</ui-button>
|
|
21
|
+
<ui-button variant="outline" data-tab="enterfrom">✨ Enter Animations</ui-button>
|
|
22
|
+
<ui-button variant="outline" data-tab="progressprop">📊 Progress Bar</ui-button>
|
|
21
23
|
<ui-button variant="outline" data-tab="annotations">📍 Annotations</ui-button>
|
|
22
24
|
<ui-button variant="outline" data-tab="extras">Sticky / Truncate</ui-button>
|
|
23
25
|
<ui-button variant="outline" data-tab="tickers">📈 Stock Tickers</ui-button>
|
|
@@ -51,24 +53,38 @@ export function initCalloutBannerDemo() {
|
|
|
51
53
|
const nav = document.getElementById('cbNavPills');
|
|
52
54
|
|
|
53
55
|
const pgUpdate = () => {
|
|
54
|
-
const v
|
|
55
|
-
const p
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
56
|
+
const v = document.getElementById('pg-v')?.value || 'info';
|
|
57
|
+
const p = document.getElementById('pg-p')?.value || 'none';
|
|
58
|
+
const size = document.getElementById('pg-size')?.value || 'md';
|
|
59
|
+
const enter = document.getElementById('pg-enter')?.value || 'top';
|
|
60
|
+
const l = document.getElementById('pg-l')?.checked || false;
|
|
61
|
+
const pu = document.getElementById('pg-pu')?.checked || false;
|
|
62
|
+
const m = document.getElementById('pg-m')?.checked || false;
|
|
63
|
+
const s = document.getElementById('pg-s')?.checked || false;
|
|
64
|
+
const outlined = document.getElementById('pg-outlined')?.checked || false;
|
|
65
|
+
const accbar = document.getElementById('pg-accbar')?.checked || false;
|
|
66
|
+
const noicon = document.getElementById('pg-noicon')?.checked || false;
|
|
67
|
+
const compact = document.getElementById('pg-compact')?.checked || false;
|
|
68
|
+
const banner = document.getElementById('pg-banner')?.checked || false;
|
|
69
|
+
const target = document.getElementById('pg-p-target');
|
|
61
70
|
if (target) {
|
|
62
71
|
target.innerHTML = `
|
|
63
|
-
<ui-callout-banner style="width:100%;
|
|
64
|
-
variant="${v}"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
<ui-callout-banner style="width:100%;"
|
|
73
|
+
variant="${v}"
|
|
74
|
+
size="${size}"
|
|
75
|
+
enter-from="${enter}"
|
|
76
|
+
${p !== 'none' ? `placement="${p}"` : ''}
|
|
77
|
+
${l ? 'loading' : ''}
|
|
78
|
+
${pu ? 'pulse' : ''}
|
|
79
|
+
${m ? 'marquee' : ''}
|
|
80
|
+
${s ? 'solid' : ''}
|
|
81
|
+
${outlined ? 'outlined' : ''}
|
|
82
|
+
${accbar ? 'accent-bar' : ''}
|
|
83
|
+
${noicon ? 'no-icon' : ''}
|
|
84
|
+
${compact ? 'compact' : ''}
|
|
85
|
+
${banner ? 'banner' : ''}
|
|
86
|
+
heading="Sandbox Result"
|
|
87
|
+
message="Testing properties in a unified context.">
|
|
72
88
|
</ui-callout-banner>
|
|
73
89
|
`;
|
|
74
90
|
}
|
|
@@ -89,9 +105,9 @@ export function initCalloutBannerDemo() {
|
|
|
89
105
|
size: () => {
|
|
90
106
|
container.innerHTML = `
|
|
91
107
|
<div class="cb-grid">
|
|
92
|
-
<ui-callout-banner size="
|
|
93
|
-
<ui-callout-banner size="md" variant="info" heading="md
|
|
94
|
-
<ui-callout-banner size="lg" variant="info" heading="Large
|
|
108
|
+
<ui-callout-banner size="sm" variant="info" heading="Small (sm)" message="Compact size, optimized for sidebar data and inline notices."></ui-callout-banner>
|
|
109
|
+
<ui-callout-banner size="md" variant="info" heading="Medium (md — default)" message="Standard industrial UI spacing for general use."></ui-callout-banner>
|
|
110
|
+
<ui-callout-banner size="lg" variant="info" heading="Large (lg)" message="High visibility for critical dashboard views and primary alerts."></ui-callout-banner>
|
|
95
111
|
</div>
|
|
96
112
|
`;
|
|
97
113
|
},
|
|
@@ -156,6 +172,258 @@ export function initCalloutBannerDemo() {
|
|
|
156
172
|
</div>
|
|
157
173
|
`;
|
|
158
174
|
},
|
|
175
|
+
enterfrom: () => {
|
|
176
|
+
container.innerHTML = `
|
|
177
|
+
<div class="cb-grid">
|
|
178
|
+
<span class="cb-section-label">Entrance animation direction — controlled by the <code>enter-from</code> prop</span>
|
|
179
|
+
<ui-callout-banner id="cb-anim-demo" enter-from="top" variant="info" heading="Slide in from Top (default)" message="Animate in from the top edge."></ui-callout-banner>
|
|
180
|
+
<div style="display:flex; gap:8px; flex-wrap:wrap;">
|
|
181
|
+
<ui-button variant="outline" id="cb-anim-top">top</ui-button>
|
|
182
|
+
<ui-button variant="outline" id="cb-anim-bottom">bottom</ui-button>
|
|
183
|
+
<ui-button variant="outline" id="cb-anim-left">left</ui-button>
|
|
184
|
+
<ui-button variant="outline" id="cb-anim-right">right</ui-button>
|
|
185
|
+
<ui-button variant="outline" id="cb-anim-fade">fade</ui-button>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="cb-grid" style="margin-top:16px;">
|
|
188
|
+
<span class="cb-section-label">All directions at once</span>
|
|
189
|
+
<ui-callout-banner enter-from="top" variant="info" heading="enter-from="top"" message="Slides in from the top."></ui-callout-banner>
|
|
190
|
+
<ui-callout-banner enter-from="bottom" variant="success" heading="enter-from="bottom"" message="Slides in from the bottom."></ui-callout-banner>
|
|
191
|
+
<ui-callout-banner enter-from="left" variant="warning" heading="enter-from="left"" message="Slides in from the left."></ui-callout-banner>
|
|
192
|
+
<ui-callout-banner enter-from="right" variant="danger" heading="enter-from="right"" message="Slides in from the right."></ui-callout-banner>
|
|
193
|
+
<ui-callout-banner enter-from="fade" variant="neutral" heading="enter-from="fade"" message="Fades in without directional movement."></ui-callout-banner>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
`;
|
|
197
|
+
|
|
198
|
+
const directions = ['top', 'bottom', 'left', 'right', 'fade'];
|
|
199
|
+
directions.forEach(dir => {
|
|
200
|
+
document.getElementById('cb-anim-' + dir)?.addEventListener('click', () => {
|
|
201
|
+
const wrapper = document.getElementById('cb-anim-demo');
|
|
202
|
+
if (!wrapper) return;
|
|
203
|
+
// Re-create element to re-trigger animation
|
|
204
|
+
const parent = wrapper.parentNode;
|
|
205
|
+
const next = wrapper.nextSibling;
|
|
206
|
+
wrapper.remove();
|
|
207
|
+
const el = document.createElement('ui-callout-banner');
|
|
208
|
+
el.id = 'cb-anim-demo';
|
|
209
|
+
el.setAttribute('enter-from', dir);
|
|
210
|
+
el.setAttribute('variant', 'info');
|
|
211
|
+
el.setAttribute('heading', 'Slide in from ' + dir.charAt(0).toUpperCase() + dir.slice(1));
|
|
212
|
+
el.setAttribute('message', 'Animating with enter-from="' + dir + '"');
|
|
213
|
+
parent.insertBefore(el, next);
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
progressprop: () => {
|
|
219
|
+
container.innerHTML = `
|
|
220
|
+
<div class="cb-grid">
|
|
221
|
+
<span class="cb-section-label">Determinate progress bar — set <code>progress</code> (0–100) to show a fixed-width indicator bar</span>
|
|
222
|
+
<ui-callout-banner progress="25" variant="info" heading="Uploading..." message="package.zip — 25% complete"></ui-callout-banner>
|
|
223
|
+
<ui-callout-banner progress="60" variant="warning" heading="Processing..." message="Analysing 60% of records — please wait."></ui-callout-banner>
|
|
224
|
+
<ui-callout-banner progress="90" variant="success" heading="Almost Done" message="Finalising deployment, 90% complete."></ui-callout-banner>
|
|
225
|
+
<ui-callout-banner progress="100" variant="success" solid heading="Complete!" message="All files transferred successfully."></ui-callout-banner>
|
|
226
|
+
|
|
227
|
+
<span class="cb-section-label" style="margin-top:8px;">Interactive — drag the slider to update progress live</span>
|
|
228
|
+
<div style="display:flex; flex-direction:column; gap:12px;">
|
|
229
|
+
<div style="display:flex; align-items:center; gap:12px;">
|
|
230
|
+
<label style="font-size:13px; font-weight:600; white-space:nowrap;">Progress: <span id="cb-prog-val">45</span>%</label>
|
|
231
|
+
<input type="range" id="cb-prog-slider" min="0" max="100" value="45" style="flex:1;">
|
|
232
|
+
</div>
|
|
233
|
+
<ui-callout-banner id="cb-prog-banner" progress="45" variant="info" heading="Custom Progress" message="Adjust the slider above to see the progress bar update."></ui-callout-banner>
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
`;
|
|
237
|
+
|
|
238
|
+
document.getElementById('cb-prog-slider')?.addEventListener('input', e => {
|
|
239
|
+
const val = e.target.value;
|
|
240
|
+
document.getElementById('cb-prog-val').textContent = val;
|
|
241
|
+
const banner = document.getElementById('cb-prog-banner');
|
|
242
|
+
if (banner) banner.setAttribute('progress', val);
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// ── Status Variant ──────────────────────────────────────────────────────
|
|
246
|
+
container.querySelector('.cb-grid')?.insertAdjacentHTML('beforeend', `
|
|
247
|
+
<span class="cb-section-label" style="margin-top:8px;">Status Variant — <code>ui-progress status-bar</code> on top of a callout banner</span>
|
|
248
|
+
|
|
249
|
+
<!-- 4 lifecycle states -->
|
|
250
|
+
<div style="display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px;">
|
|
251
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
252
|
+
<ui-progress percent="0" status-bar stroke-width="5"></ui-progress>
|
|
253
|
+
<ui-callout-banner variant="neutral" heading="Database Backup" message="Task is queued and waiting to begin." no-icon></ui-callout-banner>
|
|
254
|
+
</div>
|
|
255
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #bfdbfe; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
256
|
+
<ui-progress percent="55" status-bar stroke-width="5" stroke-color="#3b82f6"></ui-progress>
|
|
257
|
+
<ui-callout-banner variant="info" heading="File Upload" message="package.zip — 55% transferred to remote storage." no-icon></ui-callout-banner>
|
|
258
|
+
</div>
|
|
259
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #fed7aa; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
260
|
+
<ui-progress percent="72" status="interrupted" status-bar stroke-width="5" stroke-color="#f59e0b"></ui-progress>
|
|
261
|
+
<ui-callout-banner variant="warning" heading="Deploy Job" message="Deployment halted at 72%. Resume when ready." no-icon></ui-callout-banner>
|
|
262
|
+
</div>
|
|
263
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #bbf7d0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
264
|
+
<ui-progress percent="100" status-bar stroke-width="5" stroke-color="#22c55e"></ui-progress>
|
|
265
|
+
<ui-callout-banner variant="success" heading="Data Migration" message="All 1,248 records transferred successfully." no-icon></ui-callout-banner>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
|
|
269
|
+
<!-- Custom labels -->
|
|
270
|
+
<span class="cb-section-label" style="margin-top:8px;">Custom Labels — override any state text via <code>status-labels</code></span>
|
|
271
|
+
<div style="display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px;">
|
|
272
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
273
|
+
<ui-progress percent="0" status-bar stroke-width="5"
|
|
274
|
+
status-labels='{"notStarted":"Queued","running":"Deploying","interrupted":"Rolled Back","completed":"Live"}'></ui-progress>
|
|
275
|
+
<ui-callout-banner variant="neutral" heading="CI/CD Pipeline" message="Waiting in queue. Labels: Queued / Deploying / Rolled Back / Live." no-icon></ui-callout-banner>
|
|
276
|
+
</div>
|
|
277
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #bfdbfe; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
278
|
+
<ui-progress percent="38" status-bar stroke-width="5" stroke-color="#3b82f6"
|
|
279
|
+
status-labels='{"notStarted":"Pending","running":"Uploading","interrupted":"Paused","completed":"Sent"}'></ui-progress>
|
|
280
|
+
<ui-callout-banner variant="info" heading="File Transfer" message="Custom labels: Pending / Uploading / Paused / Sent." no-icon></ui-callout-banner>
|
|
281
|
+
</div>
|
|
282
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #fed7aa; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
283
|
+
<ui-progress percent="61" status="interrupted" status-bar stroke-width="5" stroke-color="#f59e0b"
|
|
284
|
+
status-labels='{"interrupted":"On Hold"}'></ui-progress>
|
|
285
|
+
<ui-callout-banner variant="warning" heading="Partial Override" message='Only "interrupted" → "On Hold"; other labels stay default.' no-icon></ui-callout-banner>
|
|
286
|
+
</div>
|
|
287
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #bbf7d0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
288
|
+
<ui-progress percent="100" status-bar stroke-width="5" stroke-color="#22c55e"
|
|
289
|
+
status-labels='{"completed":"All Done!"}'></ui-progress>
|
|
290
|
+
<ui-callout-banner variant="success" heading="Batch Job" message='Completed label overridden to "All Done!"' no-icon></ui-callout-banner>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
<!-- Badge alignment -->
|
|
295
|
+
<span class="cb-section-label" style="margin-top:8px;">Badge Alignment — <code>status-bar-align</code>: left · center · right</span>
|
|
296
|
+
<div style="display:flex; flex-direction:column; gap:10px;">
|
|
297
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
298
|
+
<ui-progress percent="60" status-bar status-bar-align="left" stroke-width="5" stroke-color="#3b82f6"></ui-progress>
|
|
299
|
+
<ui-callout-banner variant="info" heading="Align: left (default)" message="Badge on left, percentage on right." no-icon></ui-callout-banner>
|
|
300
|
+
</div>
|
|
301
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
302
|
+
<ui-progress percent="60" status-bar status-bar-align="center" stroke-width="5" stroke-color="#8b5cf6"></ui-progress>
|
|
303
|
+
<ui-callout-banner variant="neutral" heading="Align: center" message="Badge and percentage both centred." no-icon></ui-callout-banner>
|
|
304
|
+
</div>
|
|
305
|
+
<div style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 6px rgba(0,0,0,0.05);">
|
|
306
|
+
<ui-progress percent="60" status-bar status-bar-align="right" stroke-width="5" stroke-color="#22c55e"></ui-progress>
|
|
307
|
+
<ui-callout-banner variant="success" heading="Align: right" message="Percentage on left, badge on right." no-icon></ui-callout-banner>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
|
|
311
|
+
<!-- Interactive -->
|
|
312
|
+
<span class="cb-section-label" style="margin-top:8px;">Interactive — live controls</span>
|
|
313
|
+
<div style="display:flex; flex-direction:column; gap:12px;">
|
|
314
|
+
<!-- Controls row -->
|
|
315
|
+
<div style="display:flex; align-items:center; gap:12px; flex-wrap:wrap;">
|
|
316
|
+
<label style="font-size:13px; font-weight:600; white-space:nowrap;">Progress: <span id="cb-st-val">0</span>%</label>
|
|
317
|
+
<input type="range" id="cb-st-slider" min="0" max="100" value="0" style="flex:1; min-width:120px;">
|
|
318
|
+
<button id="cb-st-interrupt" style="padding:4px 14px; font-size:12px; font-weight:600; border-radius:6px; border:1.5px solid #f59e0b; background:#fff7ed; color:#b45309; cursor:pointer; white-space:nowrap;">⛔ Interrupt</button>
|
|
319
|
+
<button id="cb-st-reset" style="padding:4px 14px; font-size:12px; font-weight:600; border-radius:6px; border:1.5px solid #e2e8f0; background:#f8fafc; color:#475569; cursor:pointer;">↺ Reset</button>
|
|
320
|
+
</div>
|
|
321
|
+
<!-- Alignment + label inputs row -->
|
|
322
|
+
<div style="display:flex; gap:12px; flex-wrap:wrap; align-items:flex-start; padding:14px 16px; background:#f8fafc; border-radius:8px; border:1px solid #e2e8f0;">
|
|
323
|
+
<div style="display:flex; align-items:center; gap:6px; flex-shrink:0;">
|
|
324
|
+
<span style="font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.05em;">Align</span>
|
|
325
|
+
<button id="cb-st-al-left" style="padding:3px 10px; font-size:11px; font-weight:700; border-radius:6px; border:1.5px solid #3b82f6; background:#eff6ff; color:#2563eb; cursor:pointer;">Left</button>
|
|
326
|
+
<button id="cb-st-al-center" style="padding:3px 10px; font-size:11px; font-weight:700; border-radius:6px; border:1.5px solid #e2e8f0; background:#f8fafc; color:#475569; cursor:pointer;">Center</button>
|
|
327
|
+
<button id="cb-st-al-right" style="padding:3px 10px; font-size:11px; font-weight:700; border-radius:6px; border:1.5px solid #e2e8f0; background:#f8fafc; color:#475569; cursor:pointer;">Right</button>
|
|
328
|
+
</div>
|
|
329
|
+
<div style="display:grid; grid-template-columns:repeat(4,1fr); gap:8px; flex:1; min-width:280px;">
|
|
330
|
+
${['notStarted','running','interrupted','completed'].map((k,i) => `
|
|
331
|
+
<label style="display:flex; flex-direction:column; gap:3px; font-size:10px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.05em;">
|
|
332
|
+
${['Not Started','Running','Interrupted','Completed'][i]}
|
|
333
|
+
<input id="cb-st-lbl-${k}" type="text" placeholder="${['Not Started','Running','Interrupted','Completed'][i]}" style="padding:4px 7px; font-size:12px; border-radius:6px; border:1px solid #e2e8f0; outline:none; background:white;">
|
|
334
|
+
</label>`).join('')}
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
<!-- Live banner -->
|
|
338
|
+
<div id="cb-st-wrapper" style="border-radius:10px; overflow:hidden; border:1px solid #e2e8f0; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:border-color 0.3s;">
|
|
339
|
+
<ui-progress id="cb-st-prog" percent="0" status-bar status-bar-align="left" stroke-width="5"></ui-progress>
|
|
340
|
+
<ui-callout-banner id="cb-st-banner" variant="neutral" heading="CI/CD Pipeline" message="Waiting to begin deployment." no-icon></ui-callout-banner>
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
`);
|
|
344
|
+
|
|
345
|
+
const stateConfig = {
|
|
346
|
+
notStarted: { variant:'neutral', color:'#94a3b8', border:'#e2e8f0', status:'normal', message:'Waiting to begin deployment.' },
|
|
347
|
+
running: { variant:'info', color:'#3b82f6', border:'#bfdbfe', status:'running', message:'Deploying to production environment.' },
|
|
348
|
+
interrupted: { variant:'warning', color:'#f59e0b', border:'#fed7aa', status:'interrupted', message:'Deployment halted. Resume when ready.' },
|
|
349
|
+
completed: { variant:'success', color:'#22c55e', border:'#bbf7d0', status:'completed', message:'All services deployed and healthy.' },
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
let stInterrupted = false;
|
|
353
|
+
|
|
354
|
+
function syncStLabels() {
|
|
355
|
+
const labels = {};
|
|
356
|
+
['notStarted','running','interrupted','completed'].forEach(k => {
|
|
357
|
+
const v = document.getElementById(`cb-st-lbl-${k}`)?.value.trim();
|
|
358
|
+
if (v) labels[k] = v;
|
|
359
|
+
});
|
|
360
|
+
const prog = document.getElementById('cb-st-prog');
|
|
361
|
+
if (!prog) return;
|
|
362
|
+
if (Object.keys(labels).length) {
|
|
363
|
+
prog.setAttribute('status-labels', JSON.stringify(labels));
|
|
364
|
+
} else {
|
|
365
|
+
prog.removeAttribute('status-labels');
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function applyStStatus(pct, interrupted) {
|
|
370
|
+
const cfg = interrupted ? stateConfig.interrupted
|
|
371
|
+
: pct === 0 ? stateConfig.notStarted
|
|
372
|
+
: pct >= 100 ? stateConfig.completed
|
|
373
|
+
: stateConfig.running;
|
|
374
|
+
|
|
375
|
+
const prog = document.getElementById('cb-st-prog');
|
|
376
|
+
const wrapper = document.getElementById('cb-st-wrapper');
|
|
377
|
+
const banner = document.getElementById('cb-st-banner');
|
|
378
|
+
const valEl = document.getElementById('cb-st-val');
|
|
379
|
+
|
|
380
|
+
if (valEl) valEl.textContent = pct;
|
|
381
|
+
if (wrapper) wrapper.style.borderColor = cfg.border;
|
|
382
|
+
if (prog) {
|
|
383
|
+
prog.setAttribute('percent', pct);
|
|
384
|
+
prog.setAttribute('status', cfg.status);
|
|
385
|
+
prog.setAttribute('stroke-color', cfg.color);
|
|
386
|
+
}
|
|
387
|
+
if (banner) {
|
|
388
|
+
banner.setAttribute('variant', cfg.variant);
|
|
389
|
+
banner.setAttribute('message', cfg.message + (!interrupted && pct > 0 && pct < 100 ? ` (${pct}%)` : ''));
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
document.getElementById('cb-st-slider')?.addEventListener('input', e => {
|
|
394
|
+
stInterrupted = false;
|
|
395
|
+
applyStStatus(+e.target.value, false);
|
|
396
|
+
});
|
|
397
|
+
document.getElementById('cb-st-interrupt')?.addEventListener('click', () => {
|
|
398
|
+
stInterrupted = true;
|
|
399
|
+
applyStStatus(+document.getElementById('cb-st-slider').value, true);
|
|
400
|
+
});
|
|
401
|
+
document.getElementById('cb-st-reset')?.addEventListener('click', () => {
|
|
402
|
+
stInterrupted = false;
|
|
403
|
+
document.getElementById('cb-st-slider').value = 0;
|
|
404
|
+
applyStStatus(0, false);
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
// Alignment toggles
|
|
408
|
+
['left','center','right'].forEach(a => {
|
|
409
|
+
document.getElementById(`cb-st-al-${a}`)?.addEventListener('click', () => {
|
|
410
|
+
document.getElementById('cb-st-prog')?.setAttribute('status-bar-align', a);
|
|
411
|
+
['left','center','right'].forEach(x => {
|
|
412
|
+
const b = document.getElementById(`cb-st-al-${x}`);
|
|
413
|
+
const on = x === a;
|
|
414
|
+
b.style.borderColor = on ? '#3b82f6' : '#e2e8f0';
|
|
415
|
+
b.style.background = on ? '#eff6ff' : '#f8fafc';
|
|
416
|
+
b.style.color = on ? '#2563eb' : '#475569';
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
});
|
|
420
|
+
|
|
421
|
+
// Custom label inputs
|
|
422
|
+
['notStarted','running','interrupted','completed'].forEach(k => {
|
|
423
|
+
document.getElementById(`cb-st-lbl-${k}`)?.addEventListener('input', syncStLabels);
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
|
|
159
427
|
annotations: () => {
|
|
160
428
|
container.innerHTML = `
|
|
161
429
|
<div class="demo-card-lite">
|
|
@@ -309,11 +577,30 @@ export function initCalloutBannerDemo() {
|
|
|
309
577
|
<option value="right">right</option>
|
|
310
578
|
</ui-dropdown>
|
|
311
579
|
|
|
580
|
+
<ui-dropdown id="pg-size" label="SIZE" value="md">
|
|
581
|
+
<option value="sm">sm</option>
|
|
582
|
+
<option value="md" selected>md</option>
|
|
583
|
+
<option value="lg">lg</option>
|
|
584
|
+
</ui-dropdown>
|
|
585
|
+
|
|
586
|
+
<ui-dropdown id="pg-enter" label="ENTER FROM" value="top">
|
|
587
|
+
<option value="top">top</option>
|
|
588
|
+
<option value="bottom">bottom</option>
|
|
589
|
+
<option value="left">left</option>
|
|
590
|
+
<option value="right">right</option>
|
|
591
|
+
<option value="fade">fade</option>
|
|
592
|
+
</ui-dropdown>
|
|
593
|
+
|
|
312
594
|
<div style="display:flex; flex-direction:column; gap:8px;">
|
|
313
595
|
<ui-checkbox id="pg-l" label="loading"></ui-checkbox>
|
|
314
596
|
<ui-checkbox id="pg-pu" label="pulse"></ui-checkbox>
|
|
315
597
|
<ui-checkbox id="pg-m" label="marquee"></ui-checkbox>
|
|
316
598
|
<ui-checkbox id="pg-s" label="solid"></ui-checkbox>
|
|
599
|
+
<ui-checkbox id="pg-outlined" label="outlined"></ui-checkbox>
|
|
600
|
+
<ui-checkbox id="pg-accbar" label="accent-bar"></ui-checkbox>
|
|
601
|
+
<ui-checkbox id="pg-noicon" label="no-icon"></ui-checkbox>
|
|
602
|
+
<ui-checkbox id="pg-compact" label="compact"></ui-checkbox>
|
|
603
|
+
<ui-checkbox id="pg-banner" label="banner"></ui-checkbox>
|
|
317
604
|
</div>
|
|
318
605
|
</div>
|
|
319
606
|
<div id="pg-p-target" style="background:var(--bg-primary); border-radius:12px; border:2px dashed var(--border-default); display:flex; align-items:center; justify-content:center; padding:20px;"></div>
|
|
@@ -322,12 +609,19 @@ export function initCalloutBannerDemo() {
|
|
|
322
609
|
`;
|
|
323
610
|
|
|
324
611
|
const controls = [
|
|
325
|
-
{ id: 'pg-v',
|
|
326
|
-
{ id: 'pg-p',
|
|
327
|
-
{ id: 'pg-
|
|
328
|
-
{ id: 'pg-
|
|
329
|
-
{ id: 'pg-
|
|
330
|
-
{ id: 'pg-
|
|
612
|
+
{ id: 'pg-v', event: 'dropdownChange' },
|
|
613
|
+
{ id: 'pg-p', event: 'dropdownChange' },
|
|
614
|
+
{ id: 'pg-size', event: 'dropdownChange' },
|
|
615
|
+
{ id: 'pg-enter', event: 'dropdownChange' },
|
|
616
|
+
{ id: 'pg-l', event: 'checkboxChange' },
|
|
617
|
+
{ id: 'pg-pu', event: 'checkboxChange' },
|
|
618
|
+
{ id: 'pg-m', event: 'checkboxChange' },
|
|
619
|
+
{ id: 'pg-s', event: 'checkboxChange' },
|
|
620
|
+
{ id: 'pg-outlined', event: 'checkboxChange' },
|
|
621
|
+
{ id: 'pg-accbar', event: 'checkboxChange' },
|
|
622
|
+
{ id: 'pg-noicon', event: 'checkboxChange' },
|
|
623
|
+
{ id: 'pg-compact', event: 'checkboxChange' },
|
|
624
|
+
{ id: 'pg-banner', event: 'checkboxChange' },
|
|
331
625
|
];
|
|
332
626
|
controls.forEach(c => {
|
|
333
627
|
document.getElementById(c.id)?.addEventListener(c.event, pgUpdate);
|
|
@@ -339,15 +633,11 @@ export function initCalloutBannerDemo() {
|
|
|
339
633
|
const showTab = tab => {
|
|
340
634
|
if (demoMap[tab]) {
|
|
341
635
|
demoMap[tab]();
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
// btn.variant = isMatch ? 'solid' : 'soft';
|
|
348
|
-
// btn.color = isMatch ? (tab === 'playground' ? 'primary' : 'secondary') : 'secondary';
|
|
349
|
-
// });
|
|
350
|
-
// }
|
|
636
|
+
if (nav) {
|
|
637
|
+
nav.querySelectorAll('ui-button').forEach(btn => {
|
|
638
|
+
btn.selected = btn.getAttribute('data-tab') === tab;
|
|
639
|
+
});
|
|
640
|
+
}
|
|
351
641
|
}
|
|
352
642
|
};
|
|
353
643
|
|