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
|
@@ -1,16 +1,437 @@
|
|
|
1
1
|
// Component Demo Functions
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
const basicMenuItems = [
|
|
3
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
4
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
5
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard' },
|
|
6
|
+
{ id: 'sep1', separator: true },
|
|
7
|
+
{
|
|
8
|
+
id: 'more',
|
|
9
|
+
label: 'More Options',
|
|
10
|
+
icon: 'more-horizontal',
|
|
11
|
+
children: [
|
|
12
|
+
{ id: 'select-all', label: 'Select All', icon: 'check-square' },
|
|
13
|
+
{ id: 'sep2', separator: true },
|
|
14
|
+
{
|
|
15
|
+
id: 'format',
|
|
16
|
+
label: 'Format',
|
|
17
|
+
icon: 'palette',
|
|
18
|
+
children: [
|
|
19
|
+
{ id: 'bold', label: 'Bold', icon: 'bold' },
|
|
20
|
+
{ id: 'italic', label: 'Italic', icon: 'italic' },
|
|
21
|
+
{ id: 'underline', label: 'Underline', icon: 'underline' },
|
|
22
|
+
{ id: 'sep3', separator: true },
|
|
23
|
+
{
|
|
24
|
+
id: 'color',
|
|
25
|
+
label: 'Text Color',
|
|
26
|
+
icon: 'droplet',
|
|
27
|
+
children: [
|
|
28
|
+
{ id: 'red', label: 'Red', icon: 'circle' },
|
|
29
|
+
{ id: 'green', label: 'Green', icon: 'circle' },
|
|
30
|
+
{ id: 'blue', label: 'Blue', icon: 'circle' }
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'share',
|
|
37
|
+
label: 'Share',
|
|
38
|
+
icon: 'share-2',
|
|
39
|
+
children: [
|
|
40
|
+
{ id: 'email', label: 'Email', icon: 'mail' },
|
|
41
|
+
{ id: 'link', label: 'Copy Link', icon: 'link' }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{ id: 'sep4', separator: true },
|
|
47
|
+
{ id: 'delete', label: 'Delete', icon: 'trash-2' }
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
const nestedMenuItems = [
|
|
51
|
+
{
|
|
52
|
+
id: 'new',
|
|
53
|
+
label: 'New',
|
|
54
|
+
icon: 'plus',
|
|
55
|
+
children: [
|
|
56
|
+
{ id: 'file', label: 'File', icon: 'file' },
|
|
57
|
+
{ id: 'folder', label: 'Folder', icon: 'folder' },
|
|
58
|
+
{ id: 'sep1', separator: true },
|
|
59
|
+
{
|
|
60
|
+
id: 'more',
|
|
61
|
+
label: 'More Options',
|
|
62
|
+
icon: 'more-horizontal',
|
|
63
|
+
children: [
|
|
64
|
+
{ id: 'text', label: 'Text Document', icon: 'file-text' },
|
|
65
|
+
{ id: 'image', label: 'Image', icon: 'image' },
|
|
66
|
+
{ id: 'video', label: 'Video', icon: 'video' }
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'open',
|
|
73
|
+
label: 'Open With',
|
|
74
|
+
icon: 'folder-open',
|
|
75
|
+
children: [
|
|
76
|
+
{ id: 'notepad', label: 'Notepad', icon: 'file-text' },
|
|
77
|
+
{ id: 'vscode', label: 'VS Code', icon: 'code' },
|
|
78
|
+
{ id: 'browser', label: 'Browser', icon: 'globe' }
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{ id: 'sep2', separator: true },
|
|
82
|
+
{
|
|
83
|
+
id: 'share',
|
|
84
|
+
label: 'Share',
|
|
85
|
+
icon: 'share-2',
|
|
86
|
+
children: [
|
|
87
|
+
{ id: 'email', label: 'Email', icon: 'mail' },
|
|
88
|
+
{ id: 'link', label: 'Copy Link', icon: 'link' },
|
|
89
|
+
{
|
|
90
|
+
id: 'social',
|
|
91
|
+
label: 'Social Media',
|
|
92
|
+
icon: 'smartphone',
|
|
93
|
+
children: [
|
|
94
|
+
{ id: 'twitter', label: 'Twitter', icon: 'twitter' },
|
|
95
|
+
{ id: 'facebook', label: 'Facebook', icon: 'facebook' }
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
const iconMenuItems = [
|
|
103
|
+
{
|
|
104
|
+
id: 'format',
|
|
105
|
+
label: 'Format',
|
|
106
|
+
icon: 'palette',
|
|
107
|
+
children: [
|
|
108
|
+
{ id: 'bold', label: 'Bold', icon: 'bold' },
|
|
109
|
+
{ id: 'italic', label: 'Italic', icon: 'italic' },
|
|
110
|
+
{ id: 'underline', label: 'Underline', icon: 'underline' }
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'align',
|
|
115
|
+
label: 'Alignment',
|
|
116
|
+
icon: 'align-justify',
|
|
117
|
+
children: [
|
|
118
|
+
{ id: 'left', label: 'Left', icon: 'align-left' },
|
|
119
|
+
{ id: 'center', label: 'Center', icon: 'align-center' },
|
|
120
|
+
{ id: 'right', label: 'Right', icon: 'align-right' },
|
|
121
|
+
{ id: 'justify', label: 'Justify', icon: 'align-justify' }
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{ id: 'sep1', separator: true },
|
|
125
|
+
{
|
|
126
|
+
id: 'insert',
|
|
127
|
+
label: 'Insert',
|
|
128
|
+
icon: 'plus-circle',
|
|
129
|
+
children: [
|
|
130
|
+
{ id: 'image', label: 'Image', icon: 'image' },
|
|
131
|
+
{ id: 'table', label: 'Table', icon: 'table' },
|
|
132
|
+
{ id: 'link', label: 'Link', icon: 'link' },
|
|
133
|
+
{ id: 'emoji', label: 'Emoji', icon: 'smile' }
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
|
|
138
|
+
const fourLevelMenuItems = [
|
|
139
|
+
{
|
|
140
|
+
id: 'level-1',
|
|
141
|
+
label: 'Level 1',
|
|
142
|
+
icon: 'layers',
|
|
143
|
+
children: [
|
|
144
|
+
{
|
|
145
|
+
id: 'level-2',
|
|
146
|
+
label: 'Level 2',
|
|
147
|
+
icon: 'layers',
|
|
148
|
+
children: [
|
|
149
|
+
{
|
|
150
|
+
id: 'level-3',
|
|
151
|
+
label: 'Level 3',
|
|
152
|
+
icon: 'layers',
|
|
153
|
+
children: [
|
|
154
|
+
{ id: 'level-4-a', label: 'Level 4 - A', icon: 'type' },
|
|
155
|
+
{ id: 'level-4-b', label: 'Level 4 - B', icon: 'bold' },
|
|
156
|
+
{ id: 'level-4-c', label: 'Level 4 - C', icon: 'case-sensitive' }
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{ id: 'sep1', separator: true },
|
|
164
|
+
{
|
|
165
|
+
id: 'tools',
|
|
166
|
+
label: 'Tools',
|
|
167
|
+
icon: 'tool',
|
|
168
|
+
children: [
|
|
169
|
+
{
|
|
170
|
+
id: 'format',
|
|
171
|
+
label: 'Format',
|
|
172
|
+
icon: 'palette',
|
|
173
|
+
children: [
|
|
174
|
+
{
|
|
175
|
+
id: 'colors',
|
|
176
|
+
label: 'Colors',
|
|
177
|
+
icon: 'droplet',
|
|
178
|
+
children: [
|
|
179
|
+
{ id: 'red', label: 'Red', icon: 'circle' },
|
|
180
|
+
{ id: 'green', label: 'Green', icon: 'circle' },
|
|
181
|
+
{ id: 'blue', label: 'Blue', icon: 'circle' }
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: 'export',
|
|
188
|
+
label: 'Export',
|
|
189
|
+
icon: 'download',
|
|
190
|
+
children: [
|
|
191
|
+
{ id: 'pdf', label: 'Export as PDF', icon: 'file-text' },
|
|
192
|
+
{ id: 'html', label: 'Export as HTML', icon: 'globe' }
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{ id: 'sep2', separator: true },
|
|
198
|
+
{ id: 'help', label: 'Help', icon: 'help-circle' }
|
|
199
|
+
];
|
|
200
|
+
|
|
201
|
+
const editorMenuItems = [
|
|
202
|
+
{ id: 'undo', label: 'Undo', icon: 'undo' },
|
|
203
|
+
{ id: 'redo', label: 'Redo', icon: 'redo' },
|
|
204
|
+
{ id: 'sep1', separator: true },
|
|
205
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
206
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
207
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard' },
|
|
208
|
+
{ id: 'sep2', separator: true },
|
|
209
|
+
{
|
|
210
|
+
id: 'text',
|
|
211
|
+
label: 'Text Style',
|
|
212
|
+
icon: 'type',
|
|
213
|
+
children: [
|
|
214
|
+
{ id: 'bold', label: 'Bold', icon: 'bold' },
|
|
215
|
+
{ id: 'italic', label: 'Italic', icon: 'italic' },
|
|
216
|
+
{ id: 'underline', label: 'Underline', icon: 'underline' },
|
|
217
|
+
{ id: 'strike', label: 'Strikethrough', icon: 'strikethrough' },
|
|
218
|
+
{ id: 'sep3', separator: true },
|
|
219
|
+
{
|
|
220
|
+
id: 'font',
|
|
221
|
+
label: 'Font Family',
|
|
222
|
+
icon: 'type',
|
|
223
|
+
children: [
|
|
224
|
+
{ id: 'arial', label: 'Arial' },
|
|
225
|
+
{ id: 'times', label: 'Times New Roman' },
|
|
226
|
+
{ id: 'courier', label: 'Courier New' }
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: 'size',
|
|
231
|
+
label: 'Font Size',
|
|
232
|
+
icon: 'maximize',
|
|
233
|
+
children: [
|
|
234
|
+
{ id: 'small', label: 'Small' },
|
|
235
|
+
{ id: 'md', label: 'md' },
|
|
236
|
+
{ id: 'large', label: 'Large' }
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: 'paragraph',
|
|
243
|
+
label: 'Paragraph',
|
|
244
|
+
icon: 'align-justify',
|
|
245
|
+
children: [
|
|
246
|
+
{
|
|
247
|
+
id: 'align',
|
|
248
|
+
label: 'Alignment',
|
|
249
|
+
icon: 'align-justify',
|
|
250
|
+
children: [
|
|
251
|
+
{ id: 'left', label: 'Left', icon: 'align-left' },
|
|
252
|
+
{ id: 'center', label: 'Center', icon: 'align-center' },
|
|
253
|
+
{ id: 'right', label: 'Right', icon: 'align-right' }
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: 'spacing',
|
|
258
|
+
label: 'Line Spacing',
|
|
259
|
+
icon: 'arrow-up-down',
|
|
260
|
+
children: [
|
|
261
|
+
{ id: '1', label: 'Single' },
|
|
262
|
+
{ id: '1.5', label: '1.5 Lines' },
|
|
263
|
+
{ id: '2', label: 'Double' }
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
];
|
|
269
|
+
|
|
270
|
+
const fileMenuItems = [
|
|
271
|
+
{ id: 'open', label: 'Open', icon: 'folder-open' },
|
|
272
|
+
{
|
|
273
|
+
id: 'open-with',
|
|
274
|
+
label: 'Open With',
|
|
275
|
+
icon: 'settings',
|
|
276
|
+
children: [
|
|
277
|
+
{ id: 'notepad', label: 'Notepad', icon: 'file-text' },
|
|
278
|
+
{ id: 'vscode', label: 'VS Code', icon: 'code' },
|
|
279
|
+
{ id: 'browser', label: 'Web Browser', icon: 'globe' },
|
|
280
|
+
{ id: 'sep1', separator: true },
|
|
281
|
+
{ id: 'choose', label: 'Choose Program...', icon: 'more-horizontal' }
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{ id: 'sep2', separator: true },
|
|
285
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
286
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
287
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard' },
|
|
288
|
+
{ id: 'sep3', separator: true },
|
|
289
|
+
{
|
|
290
|
+
id: 'share',
|
|
291
|
+
label: 'Share',
|
|
292
|
+
icon: 'share-2',
|
|
293
|
+
children: [
|
|
294
|
+
{ id: 'email', label: 'Send to Email', icon: 'mail' },
|
|
295
|
+
{ id: 'compress', label: 'Compress & Share', icon: 'package' },
|
|
296
|
+
{ id: 'cloud', label: 'Upload to Cloud', icon: 'cloud' }
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: 'export',
|
|
301
|
+
label: 'Export As',
|
|
302
|
+
icon: 'save',
|
|
303
|
+
children: [
|
|
304
|
+
{ id: 'pdf', label: 'PDF Document', icon: 'file-text' },
|
|
305
|
+
{ id: 'csv', label: 'CSV File', icon: 'bar-chart-2' },
|
|
306
|
+
{ id: 'json', label: 'JSON Data', icon: 'file-json' },
|
|
307
|
+
{ id: 'xml', label: 'XML File', icon: 'database' }
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{ id: 'sep4', separator: true },
|
|
311
|
+
{ id: 'rename', label: 'Rename', icon: 'edit-2' },
|
|
312
|
+
{ id: 'delete', label: 'Delete', icon: 'trash-2' },
|
|
313
|
+
{ id: 'sep5', separator: true },
|
|
314
|
+
{ id: 'properties', label: 'Properties', icon: 'settings' }
|
|
315
|
+
];
|
|
316
|
+
|
|
317
|
+
const actionMenuItems = [
|
|
318
|
+
{
|
|
319
|
+
id: 'quick',
|
|
320
|
+
label: 'Quick Actions',
|
|
321
|
+
icon: 'zap',
|
|
322
|
+
children: [
|
|
323
|
+
{ id: 'save', label: 'Save', icon: 'save' },
|
|
324
|
+
{ id: 'refresh', label: 'Refresh', icon: 'refresh-cw' },
|
|
325
|
+
{ id: 'print', label: 'Print', icon: 'printer' }
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
id: 'edit',
|
|
330
|
+
label: 'Edit',
|
|
331
|
+
icon: 'edit',
|
|
332
|
+
children: [
|
|
333
|
+
{ id: 'undo', label: 'Undo', icon: 'undo' },
|
|
334
|
+
{ id: 'redo', label: 'Redo', icon: 'redo' },
|
|
335
|
+
{ id: 'sep1', separator: true },
|
|
336
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
337
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
338
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard' }
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: 'tools',
|
|
343
|
+
label: 'Tools',
|
|
344
|
+
icon: 'tool',
|
|
345
|
+
children: [
|
|
346
|
+
{
|
|
347
|
+
id: 'validate',
|
|
348
|
+
label: 'Validate',
|
|
349
|
+
icon: 'check-circle',
|
|
350
|
+
children: [
|
|
351
|
+
{ id: 'html', label: 'HTML' },
|
|
352
|
+
{ id: 'css', label: 'CSS' },
|
|
353
|
+
{ id: 'js', label: 'JavaScript' }
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
id: 'optimize',
|
|
358
|
+
label: 'Optimize',
|
|
359
|
+
icon: 'sliders',
|
|
360
|
+
children: [
|
|
361
|
+
{ id: 'minify', label: 'Minify' },
|
|
362
|
+
{ id: 'compress', label: 'Compress' }
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
{ id: 'sep2', separator: true },
|
|
368
|
+
{ id: 'help', label: 'Help', icon: 'help-circle' }
|
|
369
|
+
];
|
|
370
|
+
|
|
371
|
+
const homeContextMenuItems = [
|
|
372
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
373
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
374
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard' },
|
|
375
|
+
{ id: 'sep1', separator: true },
|
|
376
|
+
{ id: 'delete', label: 'Delete', icon: 'trash-2' }
|
|
377
|
+
];
|
|
378
|
+
|
|
379
|
+
const interactiveDefaultItems = [
|
|
380
|
+
{"id": "cut", "label": "Cut", "icon": "scissors"},
|
|
381
|
+
{"id": "copy", "label": "Copy", "icon": "copy"},
|
|
382
|
+
{"id": "paste", "label": "Paste", "icon": "clipboard"},
|
|
383
|
+
{"id": "sep1", "separator": true},
|
|
384
|
+
{
|
|
385
|
+
"id": "more",
|
|
386
|
+
"label": "More Options",
|
|
387
|
+
"icon": "more-horizontal",
|
|
388
|
+
"children": [
|
|
389
|
+
{"id": "select-all", "label": "Select All", "icon": "check-square"},
|
|
390
|
+
{"id": "sep2", "separator": true},
|
|
391
|
+
{
|
|
392
|
+
"id": "format",
|
|
393
|
+
"label": "Format",
|
|
394
|
+
"icon": "palette",
|
|
395
|
+
"children": [
|
|
396
|
+
{"id": "bold", "label": "Bold", "icon": "bold"},
|
|
397
|
+
{"id": "italic", "label": "Italic", "icon": "italic"},
|
|
398
|
+
{"id": "underline", "label": "Underline", "icon": "underline"}
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
]
|
|
402
|
+
},
|
|
403
|
+
{"id": "sep3", "separator": true},
|
|
404
|
+
{"id": "delete", "label": "Delete", "icon": "trash-2"}
|
|
405
|
+
];
|
|
406
|
+
|
|
407
|
+
const disabledItemsMenu = [
|
|
408
|
+
{ id: 'cut', label: 'Cut', icon: 'scissors' },
|
|
409
|
+
{ id: 'copy', label: 'Copy', icon: 'copy' },
|
|
410
|
+
{ id: 'paste', label: 'Paste', icon: 'clipboard', disabled: true },
|
|
411
|
+
{ id: 'sep1', separator: true },
|
|
412
|
+
{
|
|
413
|
+
id: 'more',
|
|
414
|
+
label: 'More Options',
|
|
415
|
+
icon: 'more-horizontal',
|
|
416
|
+
children: [
|
|
417
|
+
{ id: 'select-all', label: 'Select All', icon: 'check-square' },
|
|
418
|
+
{ id: 'sep2', separator: true },
|
|
419
|
+
{ id: 'disabled-item', label: 'Disabled Item', icon: 'ban', disabled: true },
|
|
420
|
+
{
|
|
421
|
+
id: 'format',
|
|
422
|
+
label: 'Format',
|
|
423
|
+
icon: 'palette',
|
|
424
|
+
children: [
|
|
425
|
+
{ id: 'bold', label: 'Bold', icon: 'bold' },
|
|
426
|
+
{ id: 'italic', label: 'Italic', icon: 'italic', disabled: true },
|
|
427
|
+
{ id: 'underline', label: 'Underline', icon: 'underline' }
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
{ id: 'sep3', separator: true },
|
|
433
|
+
{ id: 'delete', label: 'Delete', icon: 'trash-2', disabled: true }
|
|
434
|
+
];
|
|
14
435
|
|
|
15
436
|
export function initContextMenuDemo() {
|
|
16
437
|
const section = document.getElementById('context-menu');
|