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
|
@@ -123,7 +123,7 @@ export class AsidePanel {
|
|
|
123
123
|
/**
|
|
124
124
|
* Animation transition duration (e.g. '0.3s' or '500ms')
|
|
125
125
|
*/
|
|
126
|
-
transitionDuration = '
|
|
126
|
+
transitionDuration = '0.3s';
|
|
127
127
|
/**
|
|
128
128
|
* Animation style for opening and closing
|
|
129
129
|
* @default 'slide-in-out'
|
|
@@ -587,7 +587,7 @@ export class AsidePanel {
|
|
|
587
587
|
}
|
|
588
588
|
render() {
|
|
589
589
|
const activeTheme = this.theme !== 'default' ? this.theme : this.variant;
|
|
590
|
-
return (h(Host, { key: '
|
|
590
|
+
return (h(Host, { key: '6fe78ffb52aa0a9d3c2659ab49da7bbb8220cd73', class: {
|
|
591
591
|
'aside-container': true,
|
|
592
592
|
'open': this.open,
|
|
593
593
|
'mini': this.mini,
|
|
@@ -598,7 +598,7 @@ export class AsidePanel {
|
|
|
598
598
|
[`animation-${this.animationType}`]: true,
|
|
599
599
|
'is-pinned': this.pinned,
|
|
600
600
|
'rtl': this.rtl
|
|
601
|
-
}, style: this.hostStyle(), role: "complementary", "aria-expanded": this.open.toString(), "aria-hidden": (!this.open).toString() }, this.showOverlay && !this.mini && (h("div", { key: '
|
|
601
|
+
}, style: this.hostStyle(), role: "complementary", "aria-expanded": this.open.toString(), "aria-hidden": (!this.open).toString() }, this.showOverlay && !this.mini && (h("div", { key: 'b377c132e1a18b11fe14fea92fb42edea15e7931', class: { 'overlay': true, 'visible': this.open }, style: { backdropFilter: this.backdropBlur !== '0' ? `blur(${this.backdropBlur})` : 'none' }, onClick: this.handleOverlayClick })), h("div", { key: '64557685915ff59acf459637b07eb27a2cdd7960', class: {
|
|
602
602
|
'panel': true,
|
|
603
603
|
[`panel-${this.direction}`]: true,
|
|
604
604
|
'open': this.open,
|
|
@@ -606,7 +606,7 @@ export class AsidePanel {
|
|
|
606
606
|
'resizing': this.isResizing,
|
|
607
607
|
'loading': this.loading,
|
|
608
608
|
'parallax-active': this.enableParallax
|
|
609
|
-
}, style: this.hostStyle(), onMouseMove: this.handleParallax, onMouseLeave: this.resetParallax }, this.loading && (h("div", { key: '
|
|
609
|
+
}, style: this.hostStyle(), onMouseMove: this.handleParallax, onMouseLeave: this.resetParallax }, this.loading && (h("div", { key: '0944112418e5cff5052444dfe972b9097c8a87cc', class: "loading-overlay" }, h("div", { key: 'd78691ea1bd174e74431b7f1e937f5c3a15a7480', class: "spinner" }))), this.resizable && !this.mini && (h("div", { key: 'b6c3327d7f2b2b390e7034f99f26baa9fb5a8e78', class: `resize-handle resize-handle-${this.direction}`, style: this.resizeHandleColor ? { backgroundColor: this.resizeHandleColor } : {}, onMouseDown: this.handleResizeStart }, this.showResizeIndicator && (h("div", { key: '7d0446ab14ce40d3de648647d10b825c4e17255b', class: "resize-indicator" }, h("span", { key: 'fd5a84994e2e84d3934404fe01d990b0741cf69d' }), h("span", { key: '3f5bb3beb076185b6b375485c2eda33a86ce1af4' }), h("span", { key: '1e2fc6fe5129ee60dc91816fb0aecb367a0f5d48' }))))), h("div", { key: 'd5f732ce0f5c0263a47821107c68fb42491423ac', class: "panel-header-toolbar" }, h("div", { key: 'f7c0483a59e5ca7b0e1a1b63f564f0662f92fbf4', class: "toolbar-left" }, this.mini ? (h("ui-button", { variant: "ghost", size: "sm", icon: "chevron-right", iconLibrary: "lucide", iconSize: "14px", ariaLabel: "Expand", onClick: () => this.toggleMini() })) : (h("div", { style: { display: 'flex', gap: '4px' } }, h("ui-button", { variant: "ghost", size: "sm", icon: "chevron-left", iconLibrary: "lucide", iconSize: "14px", ariaLabel: "Collapse to Mini", onClick: () => this.toggleMini() }), !this.mini && (h("ui-button", { variant: "ghost", size: "sm", icon: this.maximized ? 'minimize' : 'maximize', iconLibrary: "lucide", iconSize: "14px", ariaLabel: this.maximized ? 'Restore' : 'Maximize', onClick: () => this.toggleMaximize() })))), this.enableVoiceControl && (h("ui-button", { key: '779b43eae11da432d5c6f093d8b18bbbb6555d90', variant: "ghost", size: "sm", icon: "mic", iconLibrary: "lucide", iconSize: "14px", ariaLabel: "Voice Interaction", class: this.isListening ? 'active' : '', onClick: () => this.initVoice() }))), h("div", { key: 'abb834e57587a11fc4cee2868cfdff72989aafa6', class: "toolbar-right" }, this.showActions && (h("ui-button", { key: '727b404a4d895d83802bf906f77cbf78b79ed4df', id: "aside-actions-trigger", variant: "ghost", size: "sm", icon: "ellipsis-vertical", iconLibrary: "lucide", iconSize: "16px", ariaLabel: "More Actions", onClick: () => this.asideActionClick.emit() })), this.showActions && (h("ui-context-menu", { key: 'b79ede6b5aafe1ab1bfe2dd48b1392aa261c6149', items: this.actionItems, target: "#aside-actions-trigger", openOn: "click", placement: "bottom", onItemSelect: (ev) => this.asideActionClick.emit(ev.detail) })), this.pinned && h("ui-icon", { key: '2c959558d6431ce998868df3f11d0a46e708a8c6', name: "pin", library: "lucide", size: "14px", class: "pin-status" }), this.closeable && !this.pinned && (h("ui-button", { key: '3e09ac4d9d907ffa6479774ae1fe8af67dd48173', variant: "ghost", size: "sm", icon: "x", iconLibrary: "lucide", iconSize: "16px", ariaLabel: "Close panel", onClick: this.handleClose })))), h("div", { key: '88b297a05ea5c189d4301b5fa6ae6da924234f9d', class: "panel-header" }, h("div", { key: '769c42bf0fafef4cd5dd67e19a8c834edd47c212', class: "header-main" }, h("slot", { key: 'b2332bf17c6ad844421beba7842d1195c9b23dd2', name: "header" }), this.badge && h("span", { key: '51ec6d287c748533e817a9d1ac6d5f08ef2a723e', class: "header-badge" }, this.badge)), this.progress > -1 && (h("div", { key: '20cef73dab1865d28bc0c116b55d1fdfed6fb315', class: "header-progress" }, h("div", { key: '7f5ae92599c2625da1e29fb1b1e1d890a7de61d3', class: "progress-bar", style: { width: `${Math.min(100, Math.max(0, this.progress))}%` } })))), h("div", { key: 'd38f06820140b669ab0db1160adbd39718cf1d85', class: "panel-content" }, h("slot", { key: 'fd4171defde8576a75373d1f68f47b816fb7f638', name: "content" }), h("slot", { key: 'ed33565d953da868b3039684239aae6029582e2f' })), !this.mini && (h("div", { key: 'c58ffbd97eceba87ff9f85d1782cb357b5e87229', class: "panel-footer" }, h("slot", { key: '5ddc80b5ca138471895d9f86733c524094f4da8d', name: "footer" }))))));
|
|
610
610
|
}
|
|
611
611
|
static get is() { return "ui-aside-panel"; }
|
|
612
612
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1268,7 +1268,7 @@ export class AsidePanel {
|
|
|
1268
1268
|
"setter": false,
|
|
1269
1269
|
"reflect": false,
|
|
1270
1270
|
"attribute": "transition-duration",
|
|
1271
|
-
"defaultValue": "'
|
|
1271
|
+
"defaultValue": "'0.3s'"
|
|
1272
1272
|
},
|
|
1273
1273
|
"animationType": {
|
|
1274
1274
|
"type": "string",
|
|
@@ -1293,7 +1293,7 @@ export class Avatar {
|
|
|
1293
1293
|
"mutable": false,
|
|
1294
1294
|
"complexType": {
|
|
1295
1295
|
"original": "ComponentVariant | 'glass'",
|
|
1296
|
-
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
1296
|
+
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"status\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
1297
1297
|
"references": {
|
|
1298
1298
|
"ComponentVariant": {
|
|
1299
1299
|
"location": "import",
|
|
@@ -321,7 +321,7 @@ export class Badge {
|
|
|
321
321
|
"mutable": false,
|
|
322
322
|
"complexType": {
|
|
323
323
|
"original": "ComponentVariant",
|
|
324
|
-
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
324
|
+
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"status\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
325
325
|
"references": {
|
|
326
326
|
"ComponentVariant": {
|
|
327
327
|
"location": "import",
|
|
@@ -412,7 +412,7 @@ export class Breadcrumb {
|
|
|
412
412
|
"mutable": false,
|
|
413
413
|
"complexType": {
|
|
414
414
|
"original": "ComponentVariant | 'pills'",
|
|
415
|
-
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"pills\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
415
|
+
"resolved": "\"bordered\" | \"borderless\" | \"color\" | \"danger\" | \"dark\" | \"default\" | \"dots-only\" | \"elevated\" | \"error\" | \"filled\" | \"flat\" | \"ghost\" | \"glass\" | \"gradient\" | \"info\" | \"inverse\" | \"light\" | \"minimal\" | \"neutral\" | \"outlined\" | \"panel\" | \"pills\" | \"plain\" | \"primary\" | \"quaternary\" | \"raised\" | \"secondary\" | \"segmented\" | \"soft\" | \"solid\" | \"standard\" | \"status\" | \"success\" | \"surface\" | \"tertiary\" | \"text\" | \"underlined\" | \"warning\"",
|
|
416
416
|
"references": {
|
|
417
417
|
"ComponentVariant": {
|
|
418
418
|
"location": "import",
|
|
@@ -102,9 +102,24 @@
|
|
|
102
102
|
vertical-align: middle;
|
|
103
103
|
box-sizing: border-box;
|
|
104
104
|
position: relative;
|
|
105
|
+
border-radius: var(--button-border-radius, 8px);
|
|
105
106
|
/* Added for absolute badge positioning */
|
|
106
107
|
}
|
|
107
108
|
|
|
109
|
+
:host([shape=square]) {
|
|
110
|
+
border-radius: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host([shape=circle]),
|
|
114
|
+
:host([circle]) {
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:host([shape=pill]),
|
|
119
|
+
:host([pill]) {
|
|
120
|
+
border-radius: 9999px;
|
|
121
|
+
}
|
|
122
|
+
|
|
108
123
|
:host(.is-full-width) {
|
|
109
124
|
display: block;
|
|
110
125
|
width: 100%;
|
|
@@ -1028,6 +1043,7 @@ ui-badge.is-absolute {
|
|
|
1028
1043
|
pointer-events: none;
|
|
1029
1044
|
width: 0;
|
|
1030
1045
|
height: 0;
|
|
1046
|
+
--badge-border: 2px solid var(--btn-badge-border, var(--bg-primary, #ffffff));
|
|
1031
1047
|
}
|
|
1032
1048
|
|
|
1033
1049
|
/* Perfect Corner Anchors - Let ui-badge's internal transforms handle the overlap */
|
|
@@ -1859,4 +1875,119 @@ ui-badge.is-absolute {
|
|
|
1859
1875
|
object-fit: cover;
|
|
1860
1876
|
border-radius: inherit;
|
|
1861
1877
|
display: block;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/* ===== INLINE COUNTER BADGE ===== */
|
|
1881
|
+
.btn-counter-badge {
|
|
1882
|
+
display: inline-flex;
|
|
1883
|
+
align-items: center;
|
|
1884
|
+
justify-content: center;
|
|
1885
|
+
font-size: 10px;
|
|
1886
|
+
font-weight: 700;
|
|
1887
|
+
height: 18px;
|
|
1888
|
+
min-width: 18px;
|
|
1889
|
+
padding: 0 6px;
|
|
1890
|
+
border-radius: 999px;
|
|
1891
|
+
background: var(--btn-counter-bg, rgba(0, 0, 0, 0.08));
|
|
1892
|
+
color: var(--btn-counter-color, inherit);
|
|
1893
|
+
margin-inline-start: 8px;
|
|
1894
|
+
line-height: 1;
|
|
1895
|
+
flex-shrink: 0;
|
|
1896
|
+
box-sizing: border-box;
|
|
1897
|
+
text-shadow: none;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/* Solid color variants: Use vibrant high-contrast white semi-transparent background with pure white text */
|
|
1901
|
+
.btn-primary .btn-counter-badge,
|
|
1902
|
+
.btn-success .btn-counter-badge,
|
|
1903
|
+
.btn-danger .btn-counter-badge,
|
|
1904
|
+
.btn-warning .btn-counter-badge,
|
|
1905
|
+
.btn-info .btn-counter-badge,
|
|
1906
|
+
.btn-dark .btn-counter-badge {
|
|
1907
|
+
background: var(--btn-counter-bg, rgba(255, 255, 255, 0.25));
|
|
1908
|
+
color: var(--btn-counter-color, #ffffff);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
.btn-secondary .btn-counter-badge {
|
|
1912
|
+
background: var(--btn-counter-bg, rgba(0, 0, 0, 0.12));
|
|
1913
|
+
color: var(--btn-counter-color, inherit);
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/* Outline & Ghost variants: Use a soft gray/tinted background with proper readable label/text color */
|
|
1917
|
+
.btn-outline .btn-counter-badge,
|
|
1918
|
+
.btn-ghost .btn-counter-badge {
|
|
1919
|
+
background: var(--btn-counter-bg, rgba(0, 0, 0, 0.08));
|
|
1920
|
+
color: var(--btn-counter-color, var(--btn-label-color, var(--label-color, var(--text-secondary, #374151))));
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
/* Soft color variants: Use custom premium semi-transparent tinted backgrounds matching their theme color */
|
|
1924
|
+
.btn-soft .btn-counter-badge {
|
|
1925
|
+
background: var(--btn-counter-bg, rgba(0, 0, 0, 0.06));
|
|
1926
|
+
color: var(--btn-counter-color, inherit);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
.btn-soft.btn-primary .btn-counter-badge {
|
|
1930
|
+
background: var(--btn-counter-bg, rgba(59, 130, 246, 0.15));
|
|
1931
|
+
color: var(--btn-counter-color, var(--color-primary, #3b82f6));
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
.btn-soft.btn-success .btn-counter-badge {
|
|
1935
|
+
background: var(--btn-counter-bg, rgba(16, 185, 129, 0.15));
|
|
1936
|
+
color: var(--btn-counter-color, var(--color-success, #10b981));
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
.btn-soft.btn-danger .btn-counter-badge {
|
|
1940
|
+
background: var(--btn-counter-bg, rgba(239, 68, 68, 0.15));
|
|
1941
|
+
color: var(--btn-counter-color, var(--color-danger, #ef4444));
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
.btn-soft.btn-warning .btn-counter-badge {
|
|
1945
|
+
background: var(--btn-counter-bg, rgba(245, 158, 11, 0.15));
|
|
1946
|
+
color: var(--btn-counter-color, var(--color-warning, #f59e0b));
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
.btn-soft.btn-info .btn-counter-badge {
|
|
1950
|
+
background: var(--btn-counter-bg, rgba(6, 182, 212, 0.15));
|
|
1951
|
+
color: var(--btn-counter-color, var(--color-info, #06b6d4));
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/* Gradient variants: Use beautiful glassmorphic white semi-transparent bubble to let gradient shine */
|
|
1955
|
+
.btn-gradient .btn-counter-badge,
|
|
1956
|
+
.btn-gradient-blue .btn-counter-badge,
|
|
1957
|
+
.btn-gradient-purple .btn-counter-badge,
|
|
1958
|
+
.btn-gradient-orange .btn-counter-badge,
|
|
1959
|
+
.btn-gradient-ocean .btn-counter-badge,
|
|
1960
|
+
.btn-gradient-sunset .btn-counter-badge,
|
|
1961
|
+
.btn-gradient-candy .btn-counter-badge,
|
|
1962
|
+
.btn-gradient-gold .btn-counter-badge,
|
|
1963
|
+
.btn-gradient-midnight .btn-counter-badge,
|
|
1964
|
+
.btn-gradient-forest .btn-counter-badge,
|
|
1965
|
+
.btn-gradient-blaze .btn-counter-badge {
|
|
1966
|
+
background: var(--btn-counter-bg, rgba(255, 255, 255, 0.25));
|
|
1967
|
+
color: var(--btn-counter-color, #ffffff);
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
.btn-counter-badge.counter-primary {
|
|
1971
|
+
background-color: var(--color-primary, #3b82f6) !important;
|
|
1972
|
+
color: #ffffff !important;
|
|
1973
|
+
}
|
|
1974
|
+
.btn-counter-badge.counter-success {
|
|
1975
|
+
background-color: var(--color-success, #10b981) !important;
|
|
1976
|
+
color: #ffffff !important;
|
|
1977
|
+
}
|
|
1978
|
+
.btn-counter-badge.counter-danger {
|
|
1979
|
+
background-color: var(--color-danger, #ef4444) !important;
|
|
1980
|
+
color: #ffffff !important;
|
|
1981
|
+
}
|
|
1982
|
+
.btn-counter-badge.counter-warning {
|
|
1983
|
+
background-color: var(--color-warning, #f59e0b) !important;
|
|
1984
|
+
color: #ffffff !important;
|
|
1985
|
+
}
|
|
1986
|
+
.btn-counter-badge.counter-info {
|
|
1987
|
+
background-color: var(--color-info, #06b6d4) !important;
|
|
1988
|
+
color: #ffffff !important;
|
|
1989
|
+
}
|
|
1990
|
+
.btn-counter-badge.counter-secondary {
|
|
1991
|
+
background-color: var(--color-secondary, #6b7280) !important;
|
|
1992
|
+
color: #ffffff !important;
|
|
1862
1993
|
}
|
|
@@ -85,6 +85,14 @@ export class Button {
|
|
|
85
85
|
grow = false;
|
|
86
86
|
/** Badge content */
|
|
87
87
|
badge;
|
|
88
|
+
/** Counter badge content (inline right side of text) */
|
|
89
|
+
counter;
|
|
90
|
+
/** Counter badge color variant (primary, success, danger, etc.) */
|
|
91
|
+
counterColor;
|
|
92
|
+
/** Custom background color for the counter badge */
|
|
93
|
+
counterCustomColor;
|
|
94
|
+
/** Custom text color for the counter badge */
|
|
95
|
+
counterCustomTextColor;
|
|
88
96
|
/** Badge color variant (primary, success, danger, etc.) */
|
|
89
97
|
badgeColor = 'danger';
|
|
90
98
|
/** Custom background color for the badge */
|
|
@@ -114,6 +122,21 @@ export class Button {
|
|
|
114
122
|
copied = false;
|
|
115
123
|
/** Click event */
|
|
116
124
|
buttonClick;
|
|
125
|
+
getBadgeColor() {
|
|
126
|
+
const finalBadgeColor = this.badgeColor;
|
|
127
|
+
if (finalBadgeColor === this.color) {
|
|
128
|
+
if (this.color === 'danger') {
|
|
129
|
+
return 'warning';
|
|
130
|
+
}
|
|
131
|
+
else if (this.color === 'warning') {
|
|
132
|
+
return 'danger';
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
return 'danger';
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return finalBadgeColor;
|
|
139
|
+
}
|
|
117
140
|
handleClick = (event) => {
|
|
118
141
|
if (this.disabled || this.loading) {
|
|
119
142
|
event.preventDefault();
|
|
@@ -173,7 +196,8 @@ export class Button {
|
|
|
173
196
|
* are not needed — the DOM order itself drives the visual order.
|
|
174
197
|
*/
|
|
175
198
|
renderButtonContent(iconElement, avatarElement, spinner) {
|
|
176
|
-
const
|
|
199
|
+
const hostTitle = this.el.getAttribute('title') || '';
|
|
200
|
+
const trimmedLabel = (this.label || hostTitle).trim();
|
|
177
201
|
const trimmedDescription = (this.description || this.subtitle || '').trim();
|
|
178
202
|
const hasLabel = !!trimmedLabel;
|
|
179
203
|
const hasDescription = !!trimmedDescription;
|
|
@@ -183,14 +207,25 @@ export class Button {
|
|
|
183
207
|
return this.loading ? spinner : (avatarElement || iconElement || h("slot", null));
|
|
184
208
|
}
|
|
185
209
|
const badgeInlineLeft = this.badge && (this.badgePosition === 'inline-left' ||
|
|
186
|
-
(this.rtl && this.badgePosition === 'inline-right')) ? (h("ui-badge", { class: "btn-badge-inline", value: this.badge.toString(), color: this.
|
|
210
|
+
(this.rtl && this.badgePosition === 'inline-right')) ? (h("ui-badge", { class: "btn-badge-inline", value: this.badge.toString(), color: this.getBadgeColor(), "custom-color": this.badgeCustomColor, "custom-text-color": this.badgeCustomTextColor, size: "sm" })) : null;
|
|
187
211
|
const badgeInlineRight = this.badge && (this.badgePosition === 'inline-right' ||
|
|
188
|
-
(this.rtl && this.badgePosition === 'inline-left')) ? (h("ui-badge", { class: "btn-badge-inline", value: this.badge.toString(), color: this.
|
|
212
|
+
(this.rtl && this.badgePosition === 'inline-left')) ? (h("ui-badge", { class: "btn-badge-inline", value: this.badge.toString(), color: this.getBadgeColor(), "custom-color": this.badgeCustomColor, "custom-text-color": this.badgeCustomTextColor, size: "sm" })) : null;
|
|
189
213
|
const showSpinnerAtStart = this.loading && (this.loadingPosition === 'left' || (this.loadingPosition === 'icon' && !iconElement && !avatarElement));
|
|
190
214
|
const showSpinnerAtEnd = this.loading && this.loadingPosition === 'right';
|
|
191
215
|
const showSpinnerCentered = this.loading && (this.loadingPosition === 'center' || this.loadingPosition === 'icon');
|
|
192
216
|
const iconBlock = (avatarElement || iconElement || showSpinnerCentered) ? (h("div", { class: "btn-icon-block", part: "icon-block" }, showSpinnerCentered ? spinner : (avatarElement || iconElement))) : null;
|
|
193
|
-
const
|
|
217
|
+
const counterStyles = {};
|
|
218
|
+
if (this.counterCustomColor) {
|
|
219
|
+
counterStyles['background-color'] = this.counterCustomColor;
|
|
220
|
+
}
|
|
221
|
+
if (this.counterCustomTextColor) {
|
|
222
|
+
counterStyles['color'] = this.counterCustomTextColor;
|
|
223
|
+
}
|
|
224
|
+
const counterElement = this.counter !== undefined && this.counter !== '' ? (h("span", { class: {
|
|
225
|
+
'btn-counter-badge': true,
|
|
226
|
+
[`counter-${this.counterColor}`]: !!this.counterColor
|
|
227
|
+
}, style: counterStyles, part: "counter" }, this.counter)) : null;
|
|
228
|
+
const labelBlock = showLabel ? (h("div", { class: "btn-label-block", part: "label-block" }, h("div", { class: "btn-title", part: "title" }, this.copied ? '✓ Copied!' : (hasLabel ? trimmedLabel : h("slot", null)), counterElement), hasDescription && (h("div", { class: `btn-subtitle btn-subtitle-${this.descriptionPosition}`, part: "subtitle" }, trimmedDescription)))) : null;
|
|
194
229
|
return (h("div", { class: {
|
|
195
230
|
'btn-label-row': true,
|
|
196
231
|
[`icon-pos-${this.iconPosition}`]: true
|
|
@@ -203,7 +238,8 @@ export class Button {
|
|
|
203
238
|
const Tag = (this.href ? 'a' : 'button');
|
|
204
239
|
const normalizedSize = normalizeComponentSize(this.size, 'md');
|
|
205
240
|
const spinner = this.loading ? (h("span", { class: `btn-spinner btn-spinner-${this.loadingPosition}` }, h("ui-loader", { size: "xs", color: "currentColor" }))) : null;
|
|
206
|
-
const
|
|
241
|
+
const hostTitle = this.el.getAttribute('title') || '';
|
|
242
|
+
const sanitizedLabel = this.ariaLabel || (this.label || hostTitle || this.el.textContent || '').trim();
|
|
207
243
|
const finalAriaLabel = sanitizeHTML(sanitizedLabel);
|
|
208
244
|
const renderProps = this.href ? {
|
|
209
245
|
href: this.href,
|
|
@@ -252,7 +288,7 @@ export class Button {
|
|
|
252
288
|
this.rtl && 'btn-rtl',
|
|
253
289
|
this.reveal !== 'none' && `reveal-${this.reveal}`,
|
|
254
290
|
].filter(Boolean).join(' ');
|
|
255
|
-
return (h(Tag, { key: '
|
|
291
|
+
return (h(Tag, { key: '1a633068acc34fcf0fa27d2035b26452c17446c1', ...renderProps, style: styles, class: hostClass, part: "button", dir: this.rtl ? 'rtl' : 'ltr', onClick: this.handleClick, ref: (el) => (this.nativeButton = el) }, !this.noRipple && h("span", { key: 'c39b6a3c884ddcb8b1123a92fd325a39b6749bdf', class: "btn-ripple-container" }), h("span", { key: 'f7ef1d361081711c95019718ca64b7215b59f235', class: "btn-content" }, isImageButton ? (h("fragment", null, this.loading && spinner, h("img", { src: this.imgSrc, alt: this.imgAlt || '', class: "btn-image" }))) : (this.renderButtonContent(iconElement, avatarElement, spinner))), this.badge && !this.badgePosition.startsWith('inline') && (h("ui-badge", { key: '63cf65ca304184c969dedd157730c116823d9ba9', class: `btn-badge is-absolute pos-${this.badgePosition}`, value: this.badge.toString(), color: this.getBadgeColor(), "custom-color": this.badgeCustomColor, "custom-text-color": this.badgeCustomTextColor, size: "sm" })), this.progress !== undefined && (h("span", { key: 'e9ea36586c110dc064dc9b8676b83765d5ce281a', class: "btn-progress-fill", style: { width: `${Math.min(100, Math.max(0, this.progress))}%` } }))));
|
|
256
292
|
}
|
|
257
293
|
static get is() { return "ui-button"; }
|
|
258
294
|
static get encapsulation() { return "shadow"; }
|
|
@@ -897,7 +933,7 @@ export class Button {
|
|
|
897
933
|
},
|
|
898
934
|
"getter": false,
|
|
899
935
|
"setter": false,
|
|
900
|
-
"reflect":
|
|
936
|
+
"reflect": true,
|
|
901
937
|
"attribute": "shape",
|
|
902
938
|
"defaultValue": "'rounded'"
|
|
903
939
|
},
|
|
@@ -937,7 +973,7 @@ export class Button {
|
|
|
937
973
|
},
|
|
938
974
|
"getter": false,
|
|
939
975
|
"setter": false,
|
|
940
|
-
"reflect":
|
|
976
|
+
"reflect": true,
|
|
941
977
|
"attribute": "pill",
|
|
942
978
|
"defaultValue": "false"
|
|
943
979
|
},
|
|
@@ -957,7 +993,7 @@ export class Button {
|
|
|
957
993
|
},
|
|
958
994
|
"getter": false,
|
|
959
995
|
"setter": false,
|
|
960
|
-
"reflect":
|
|
996
|
+
"reflect": true,
|
|
961
997
|
"attribute": "circle",
|
|
962
998
|
"defaultValue": "false"
|
|
963
999
|
},
|
|
@@ -1057,6 +1093,89 @@ export class Button {
|
|
|
1057
1093
|
"reflect": false,
|
|
1058
1094
|
"attribute": "badge"
|
|
1059
1095
|
},
|
|
1096
|
+
"counter": {
|
|
1097
|
+
"type": "any",
|
|
1098
|
+
"mutable": false,
|
|
1099
|
+
"complexType": {
|
|
1100
|
+
"original": "string | number",
|
|
1101
|
+
"resolved": "number | string",
|
|
1102
|
+
"references": {}
|
|
1103
|
+
},
|
|
1104
|
+
"required": false,
|
|
1105
|
+
"optional": true,
|
|
1106
|
+
"docs": {
|
|
1107
|
+
"tags": [],
|
|
1108
|
+
"text": "Counter badge content (inline right side of text)"
|
|
1109
|
+
},
|
|
1110
|
+
"getter": false,
|
|
1111
|
+
"setter": false,
|
|
1112
|
+
"reflect": false,
|
|
1113
|
+
"attribute": "counter"
|
|
1114
|
+
},
|
|
1115
|
+
"counterColor": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"mutable": false,
|
|
1118
|
+
"complexType": {
|
|
1119
|
+
"original": "StatusColor",
|
|
1120
|
+
"resolved": "\"borderless\" | \"danger\" | \"default\" | \"elevated\" | \"error\" | \"flat\" | \"ghost\" | \"glass\" | \"info\" | \"inverse\" | \"loading\" | \"neutral\" | \"none\" | \"outline\" | \"plain\" | \"primary\" | \"raised\" | \"secondary\" | \"soft\" | \"sovereign\" | \"success\" | \"surface\" | \"tertiary\" | \"warning\"",
|
|
1121
|
+
"references": {
|
|
1122
|
+
"StatusColor": {
|
|
1123
|
+
"location": "import",
|
|
1124
|
+
"path": "../../types",
|
|
1125
|
+
"id": "src/types/index.ts::StatusColor",
|
|
1126
|
+
"referenceLocation": "StatusColor"
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"required": false,
|
|
1131
|
+
"optional": true,
|
|
1132
|
+
"docs": {
|
|
1133
|
+
"tags": [],
|
|
1134
|
+
"text": "Counter badge color variant (primary, success, danger, etc.)"
|
|
1135
|
+
},
|
|
1136
|
+
"getter": false,
|
|
1137
|
+
"setter": false,
|
|
1138
|
+
"reflect": false,
|
|
1139
|
+
"attribute": "counter-color"
|
|
1140
|
+
},
|
|
1141
|
+
"counterCustomColor": {
|
|
1142
|
+
"type": "string",
|
|
1143
|
+
"mutable": false,
|
|
1144
|
+
"complexType": {
|
|
1145
|
+
"original": "string",
|
|
1146
|
+
"resolved": "string",
|
|
1147
|
+
"references": {}
|
|
1148
|
+
},
|
|
1149
|
+
"required": false,
|
|
1150
|
+
"optional": true,
|
|
1151
|
+
"docs": {
|
|
1152
|
+
"tags": [],
|
|
1153
|
+
"text": "Custom background color for the counter badge"
|
|
1154
|
+
},
|
|
1155
|
+
"getter": false,
|
|
1156
|
+
"setter": false,
|
|
1157
|
+
"reflect": false,
|
|
1158
|
+
"attribute": "counter-custom-color"
|
|
1159
|
+
},
|
|
1160
|
+
"counterCustomTextColor": {
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"mutable": false,
|
|
1163
|
+
"complexType": {
|
|
1164
|
+
"original": "string",
|
|
1165
|
+
"resolved": "string",
|
|
1166
|
+
"references": {}
|
|
1167
|
+
},
|
|
1168
|
+
"required": false,
|
|
1169
|
+
"optional": true,
|
|
1170
|
+
"docs": {
|
|
1171
|
+
"tags": [],
|
|
1172
|
+
"text": "Custom text color for the counter badge"
|
|
1173
|
+
},
|
|
1174
|
+
"getter": false,
|
|
1175
|
+
"setter": false,
|
|
1176
|
+
"reflect": false,
|
|
1177
|
+
"attribute": "counter-custom-text-color"
|
|
1178
|
+
},
|
|
1060
1179
|
"badgeColor": {
|
|
1061
1180
|
"type": "string",
|
|
1062
1181
|
"mutable": false,
|