cornet-ui 0.1.0-beta.1
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/LICENSE +21 -0
- package/README.md +95 -0
- package/components/Actions/du-button/du-button.types.ts +14 -0
- package/components/Actions/du-button/du-button.vue +149 -0
- package/components/Actions/du-dropdown/du-dropdown.types.ts +15 -0
- package/components/Actions/du-dropdown/du-dropdown.vue +75 -0
- package/components/Actions/du-fab/du-fab.types.ts +28 -0
- package/components/Actions/du-fab/du-fab.vue +270 -0
- package/components/Actions/du-modal/du-modal.types.ts +10 -0
- package/components/Actions/du-modal/du-modal.vue +123 -0
- package/components/Actions/du-swap/du-swap.types.ts +3 -0
- package/components/Actions/du-swap/du-swap.vue +68 -0
- package/components/DataDisplay/du-accordion/du-accordion-item.vue +37 -0
- package/components/DataDisplay/du-accordion/du-accordion.types.ts +15 -0
- package/components/DataDisplay/du-accordion/du-accordion.vue +73 -0
- package/components/DataDisplay/du-avatar/du-avatar.types.ts +59 -0
- package/components/DataDisplay/du-avatar/du-avatar.vue +139 -0
- package/components/DataDisplay/du-badge/du-badge.types.ts +21 -0
- package/components/DataDisplay/du-badge/du-badge.vue +81 -0
- package/components/DataDisplay/du-card/du-card.types.ts +18 -0
- package/components/DataDisplay/du-card/du-card.vue +86 -0
- package/components/DataDisplay/du-carousel/du-carousel-item.vue +11 -0
- package/components/DataDisplay/du-carousel/du-carousel.types.ts +15 -0
- package/components/DataDisplay/du-carousel/du-carousel.vue +46 -0
- package/components/DataDisplay/du-chat/du-chat-item.vue +56 -0
- package/components/DataDisplay/du-chat/du-chat.types.ts +31 -0
- package/components/DataDisplay/du-chat/du-chat.vue +71 -0
- package/components/DataDisplay/du-collapse/du-collapse.types.ts +15 -0
- package/components/DataDisplay/du-collapse/du-collapse.vue +59 -0
- package/components/DataDisplay/du-countdown/du-countdown-group.vue +88 -0
- package/components/DataDisplay/du-countdown/du-countdown.types.ts +15 -0
- package/components/DataDisplay/du-countdown/du-countdown.vue +180 -0
- package/components/DataDisplay/du-diff/du-diff.types.ts +9 -0
- package/components/DataDisplay/du-diff/du-diff.vue +44 -0
- package/components/DataDisplay/du-kbd/du-kbd.types.ts +9 -0
- package/components/DataDisplay/du-kbd/du-kbd.vue +21 -0
- package/components/DataDisplay/du-list/du-list-row.vue +12 -0
- package/components/DataDisplay/du-list/du-list.types.ts +3 -0
- package/components/DataDisplay/du-list/du-list.vue +11 -0
- package/components/DataDisplay/du-stat/du-stat.types.ts +12 -0
- package/components/DataDisplay/du-stat/du-stat.vue +28 -0
- package/components/DataDisplay/du-stats/du-stats.types.ts +3 -0
- package/components/DataDisplay/du-stats/du-stats.vue +91 -0
- package/components/DataDisplay/du-status/du-status.types.ts +21 -0
- package/components/DataDisplay/du-status/du-status.vue +51 -0
- package/components/DataDisplay/du-table/du-table-item.types.ts +6 -0
- package/components/DataDisplay/du-table/du-table-item.vue +24 -0
- package/components/DataDisplay/du-table/du-table.types.ts +26 -0
- package/components/DataDisplay/du-table/du-table.vue +125 -0
- package/components/DataDisplay/du-timeline/du-timeline-item.vue +85 -0
- package/components/DataDisplay/du-timeline/du-timeline.types.ts +22 -0
- package/components/DataDisplay/du-timeline/du-timeline.vue +138 -0
- package/components/DataInput/du-checkbox/du-checkbox.types.ts +17 -0
- package/components/DataInput/du-checkbox/du-checkbox.vue +40 -0
- package/components/DataInput/du-fieldset/du-fieldset.types.ts +4 -0
- package/components/DataInput/du-fieldset/du-fieldset.vue +16 -0
- package/components/DataInput/du-file-input/du-file-input.types.ts +29 -0
- package/components/DataInput/du-file-input/du-file-input.vue +31 -0
- package/components/DataInput/du-filter/du-filter.types.ts +30 -0
- package/components/DataInput/du-filter/du-filter.vue +47 -0
- package/components/DataInput/du-input-field/du-input-field.types.ts +43 -0
- package/components/DataInput/du-input-field/du-input-field.vue +47 -0
- package/components/DataInput/du-label/du-label.types.ts +3 -0
- package/components/DataInput/du-label/du-label.vue +28 -0
- package/components/DataInput/du-label-input-validator/du-label-input-validator.types.ts +7 -0
- package/components/DataInput/du-label-input-validator/du-label-input-validator.vue +51 -0
- package/components/DataInput/du-radio/du-radio.types.ts +15 -0
- package/components/DataInput/du-radio/du-radio.vue +27 -0
- package/components/DataInput/du-range/du-range.types.ts +18 -0
- package/components/DataInput/du-range/du-range.vue +60 -0
- package/components/DataInput/du-rating/du-rating-item.vue +65 -0
- package/components/DataInput/du-rating/du-rating.types.ts +46 -0
- package/components/DataInput/du-rating/du-rating.vue +127 -0
- package/components/DataInput/du-search/du-search.types.ts +44 -0
- package/components/DataInput/du-search/du-search.vue +425 -0
- package/components/DataInput/du-select/du-select.types.ts +31 -0
- package/components/DataInput/du-select/du-select.vue +384 -0
- package/components/DataInput/du-text-area/du-text-area.types.ts +11 -0
- package/components/DataInput/du-text-area/du-text-area.vue +41 -0
- package/components/Feedback/du-alert/du-alert.types.ts +16 -0
- package/components/Feedback/du-alert/du-alert.vue +113 -0
- package/components/Feedback/du-loading/du-loading.types.ts +11 -0
- package/components/Feedback/du-loading/du-loading.vue +33 -0
- package/components/Feedback/du-progress/du-progress.types.ts +8 -0
- package/components/Feedback/du-progress/du-progress.vue +23 -0
- package/components/Feedback/du-radial-progress/du-radial-progress.types.ts +9 -0
- package/components/Feedback/du-radial-progress/du-radial-progress.vue +64 -0
- package/components/Feedback/du-skeleton/du-skeleton.types.ts +3 -0
- package/components/Feedback/du-skeleton/du-skeleton.vue +11 -0
- package/components/Feedback/du-toast/du-toast.types.ts +11 -0
- package/components/Feedback/du-toast/du-toast.vue +54 -0
- package/components/Feedback/du-tooltip/du-tooltip.types.ts +12 -0
- package/components/Feedback/du-tooltip/du-tooltip.vue +55 -0
- package/components/Layout/du-drawer/du-drawer.types.ts +27 -0
- package/components/Layout/du-drawer/du-drawer.vue +224 -0
- package/components/Layout/du-join/du-join.types.ts +7 -0
- package/components/Layout/du-join/du-join.vue +31 -0
- package/components/Navigation/du-breadcrumbs/du-breadcrumbs.types.ts +13 -0
- package/components/Navigation/du-breadcrumbs/du-breadcrumbs.vue +79 -0
- package/components/Navigation/du-button-link/du-button-link.types.ts +17 -0
- package/components/Navigation/du-button-link/du-button-link.vue +77 -0
- package/components/Navigation/du-dock/du-dock.types.ts +19 -0
- package/components/Navigation/du-dock/du-dock.vue +73 -0
- package/components/Navigation/du-link/du-link.types.ts +7 -0
- package/components/Navigation/du-link/du-link.vue +25 -0
- package/components/Navigation/du-menu/du-menu-item.vue +160 -0
- package/components/Navigation/du-menu/du-menu.types.ts +33 -0
- package/components/Navigation/du-menu/du-menu.vue +87 -0
- package/components/Navigation/du-navbar/du-navbar.types.ts +3 -0
- package/components/Navigation/du-navbar/du-navbar.vue +21 -0
- package/components/Navigation/du-pagination/du-pagination.types.ts +30 -0
- package/components/Navigation/du-pagination/du-pagination.vue +186 -0
- package/components/Navigation/du-step-item/du-step-item.types.ts +9 -0
- package/components/Navigation/du-step-item/du-step-item.vue +46 -0
- package/components/Navigation/du-steps/du-steps.types.ts +20 -0
- package/components/Navigation/du-steps/du-steps.vue +85 -0
- package/components/Navigation/du-tabs/du-tabs.types.ts +25 -0
- package/components/Navigation/du-tabs/du-tabs.vue +96 -0
- package/composables/useSizeProps.ts +26 -0
- package/composables/useVariantProps.ts +18 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/components/Actions/du-button/du-button.js +5 -0
- package/dist/components/Actions/du-button/du-button.types.d.ts +4 -0
- package/dist/components/Actions/du-button/du-button.vue.d.ts +58 -0
- package/dist/components/Actions/du-button/du-button.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/Actions/du-dropdown/du-dropdown.js +5 -0
- package/dist/components/Actions/du-dropdown/du-dropdown.types.d.ts +4 -0
- package/dist/components/Actions/du-dropdown/du-dropdown.vue.d.ts +33 -0
- package/dist/components/Actions/du-dropdown/du-dropdown.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/components/Actions/du-fab/du-fab.js +5 -0
- package/dist/components/Actions/du-fab/du-fab.types.d.ts +24 -0
- package/dist/components/Actions/du-fab/du-fab.vue.d.ts +87 -0
- package/dist/components/Actions/du-fab/du-fab.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/Actions/du-modal/du-modal.js +5 -0
- package/dist/components/Actions/du-modal/du-modal.types.d.ts +2 -0
- package/dist/components/Actions/du-modal/du-modal.vue.d.ts +48 -0
- package/dist/components/Actions/du-modal/du-modal.vue_vue_type_script_setup_true_lang.js +92 -0
- package/dist/components/Actions/du-swap/du-swap.js +5 -0
- package/dist/components/Actions/du-swap/du-swap.types.d.ts +2 -0
- package/dist/components/Actions/du-swap/du-swap.vue.d.ts +36 -0
- package/dist/components/Actions/du-swap/du-swap.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion-item.js +5 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion-item.vue.d.ts +24 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion-item.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion.js +5 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion.types.d.ts +8 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion.vue.d.ts +45 -0
- package/dist/components/DataDisplay/du-accordion/du-accordion.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/DataDisplay/du-avatar/du-avatar.js +7 -0
- package/dist/components/DataDisplay/du-avatar/du-avatar.types.d.ts +12 -0
- package/dist/components/DataDisplay/du-avatar/du-avatar.vue.d.ts +38 -0
- package/dist/components/DataDisplay/du-avatar/du-avatar.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/DataDisplay/du-avatar/du-avatar.vue_vue_type_style_index_0_scoped_fdc61ebe_lang.css +1 -0
- package/dist/components/DataDisplay/du-badge/du-badge.js +5 -0
- package/dist/components/DataDisplay/du-badge/du-badge.types.d.ts +4 -0
- package/dist/components/DataDisplay/du-badge/du-badge.vue.d.ts +32 -0
- package/dist/components/DataDisplay/du-badge/du-badge.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/DataDisplay/du-card/du-card.js +5 -0
- package/dist/components/DataDisplay/du-card/du-card.types.d.ts +4 -0
- package/dist/components/DataDisplay/du-card/du-card.vue.d.ts +43 -0
- package/dist/components/DataDisplay/du-card/du-card.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel-item.js +5 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel-item.vue.d.ts +16 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel-item.vue_vue_type_script_setup_true_lang.js +14 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel.js +5 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel.types.d.ts +9 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel.vue.d.ts +27 -0
- package/dist/components/DataDisplay/du-carousel/du-carousel.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/components/DataDisplay/du-chat/du-chat-item.js +5 -0
- package/dist/components/DataDisplay/du-chat/du-chat-item.vue.d.ts +32 -0
- package/dist/components/DataDisplay/du-chat/du-chat-item.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/DataDisplay/du-chat/du-chat.js +5 -0
- package/dist/components/DataDisplay/du-chat/du-chat.types.d.ts +18 -0
- package/dist/components/DataDisplay/du-chat/du-chat.vue.d.ts +38 -0
- package/dist/components/DataDisplay/du-chat/du-chat.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/DataDisplay/du-collapse/du-collapse.js +5 -0
- package/dist/components/DataDisplay/du-collapse/du-collapse.types.d.ts +8 -0
- package/dist/components/DataDisplay/du-collapse/du-collapse.vue.d.ts +33 -0
- package/dist/components/DataDisplay/du-collapse/du-collapse.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown-group.js +5 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown-group.vue.d.ts +23 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown-group.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown.js +5 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown.types.d.ts +8 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown.vue.d.ts +27 -0
- package/dist/components/DataDisplay/du-countdown/du-countdown.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/DataDisplay/du-diff/du-diff.js +5 -0
- package/dist/components/DataDisplay/du-diff/du-diff.types.d.ts +2 -0
- package/dist/components/DataDisplay/du-diff/du-diff.vue.d.ts +25 -0
- package/dist/components/DataDisplay/du-diff/du-diff.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/components/DataDisplay/du-kbd/du-kbd.js +5 -0
- package/dist/components/DataDisplay/du-kbd/du-kbd.types.d.ts +2 -0
- package/dist/components/DataDisplay/du-kbd/du-kbd.vue.d.ts +19 -0
- package/dist/components/DataDisplay/du-kbd/du-kbd.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/DataDisplay/du-list/du-list-row.js +5 -0
- package/dist/components/DataDisplay/du-list/du-list-row.vue.d.ts +17 -0
- package/dist/components/DataDisplay/du-list/du-list-row.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/DataDisplay/du-list/du-list.js +5 -0
- package/dist/components/DataDisplay/du-list/du-list.types.d.ts +3 -0
- package/dist/components/DataDisplay/du-list/du-list.vue.d.ts +14 -0
- package/dist/components/DataDisplay/du-list/du-list.vue_vue_type_script_setup_true_lang.js +12 -0
- package/dist/components/DataDisplay/du-stat/du-stat.js +5 -0
- package/dist/components/DataDisplay/du-stat/du-stat.types.d.ts +12 -0
- package/dist/components/DataDisplay/du-stat/du-stat.vue.d.ts +27 -0
- package/dist/components/DataDisplay/du-stat/du-stat.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/DataDisplay/du-stats/du-stats.js +7 -0
- package/dist/components/DataDisplay/du-stats/du-stats.types.d.ts +2 -0
- package/dist/components/DataDisplay/du-stats/du-stats.vue.d.ts +40 -0
- package/dist/components/DataDisplay/du-stats/du-stats.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/DataDisplay/du-stats/du-stats.vue_vue_type_style_index_0_scoped_db955aa9_lang.css +1 -0
- package/dist/components/DataDisplay/du-status/du-status.js +5 -0
- package/dist/components/DataDisplay/du-status/du-status.types.d.ts +4 -0
- package/dist/components/DataDisplay/du-status/du-status.vue.d.ts +16 -0
- package/dist/components/DataDisplay/du-status/du-status.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/DataDisplay/du-table/du-table-item.js +5 -0
- package/dist/components/DataDisplay/du-table/du-table-item.types.d.ts +6 -0
- package/dist/components/DataDisplay/du-table/du-table-item.vue.d.ts +19 -0
- package/dist/components/DataDisplay/du-table/du-table-item.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/DataDisplay/du-table/du-table.js +5 -0
- package/dist/components/DataDisplay/du-table/du-table.types.d.ts +23 -0
- package/dist/components/DataDisplay/du-table/du-table.vue.d.ts +42 -0
- package/dist/components/DataDisplay/du-table/du-table.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline-item.js +5 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline-item.vue.d.ts +34 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline-item.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline.js +5 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline.types.d.ts +12 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline.vue.d.ts +61 -0
- package/dist/components/DataDisplay/du-timeline/du-timeline.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/DataInput/du-checkbox/du-checkbox.js +5 -0
- package/dist/components/DataInput/du-checkbox/du-checkbox.types.d.ts +14 -0
- package/dist/components/DataInput/du-checkbox/du-checkbox.vue.d.ts +19 -0
- package/dist/components/DataInput/du-checkbox/du-checkbox.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/DataInput/du-fieldset/du-fieldset.js +5 -0
- package/dist/components/DataInput/du-fieldset/du-fieldset.types.d.ts +4 -0
- package/dist/components/DataInput/du-fieldset/du-fieldset.vue.d.ts +14 -0
- package/dist/components/DataInput/du-fieldset/du-fieldset.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/components/DataInput/du-file-input/du-file-input.js +5 -0
- package/dist/components/DataInput/du-file-input/du-file-input.types.d.ts +10 -0
- package/dist/components/DataInput/du-file-input/du-file-input.vue.d.ts +9 -0
- package/dist/components/DataInput/du-file-input/du-file-input.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/DataInput/du-filter/du-filter.js +5 -0
- package/dist/components/DataInput/du-filter/du-filter.types.d.ts +27 -0
- package/dist/components/DataInput/du-filter/du-filter.vue.d.ts +17 -0
- package/dist/components/DataInput/du-filter/du-filter.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/DataInput/du-input-field/du-input-field.js +5 -0
- package/dist/components/DataInput/du-input-field/du-input-field.types.d.ts +26 -0
- package/dist/components/DataInput/du-input-field/du-input-field.vue.d.ts +21 -0
- package/dist/components/DataInput/du-input-field/du-input-field.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/DataInput/du-label/du-label.js +5 -0
- package/dist/components/DataInput/du-label/du-label.types.d.ts +3 -0
- package/dist/components/DataInput/du-label/du-label.vue.d.ts +14 -0
- package/dist/components/DataInput/du-label/du-label.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/DataInput/du-label-input-validator/du-label-input-validator.js +5 -0
- package/dist/components/DataInput/du-label-input-validator/du-label-input-validator.types.d.ts +5 -0
- package/dist/components/DataInput/du-label-input-validator/du-label-input-validator.vue.d.ts +37 -0
- package/dist/components/DataInput/du-label-input-validator/du-label-input-validator.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/components/DataInput/du-radio/du-radio.js +5 -0
- package/dist/components/DataInput/du-radio/du-radio.types.d.ts +12 -0
- package/dist/components/DataInput/du-radio/du-radio.vue.d.ts +9 -0
- package/dist/components/DataInput/du-radio/du-radio.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/DataInput/du-range/du-range.js +5 -0
- package/dist/components/DataInput/du-range/du-range.types.d.ts +15 -0
- package/dist/components/DataInput/du-range/du-range.vue.d.ts +20 -0
- package/dist/components/DataInput/du-range/du-range.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/DataInput/du-rating/du-rating-item.js +5 -0
- package/dist/components/DataInput/du-rating/du-rating-item.vue.d.ts +15 -0
- package/dist/components/DataInput/du-rating/du-rating-item.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/DataInput/du-rating/du-rating.js +5 -0
- package/dist/components/DataInput/du-rating/du-rating.types.d.ts +38 -0
- package/dist/components/DataInput/du-rating/du-rating.vue.d.ts +34 -0
- package/dist/components/DataInput/du-rating/du-rating.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/DataInput/du-search/du-search.js +5 -0
- package/dist/components/DataInput/du-search/du-search.types.d.ts +40 -0
- package/dist/components/DataInput/du-search/du-search.vue.d.ts +52 -0
- package/dist/components/DataInput/du-search/du-search.vue_vue_type_script_setup_true_lang.js +270 -0
- package/dist/components/DataInput/du-select/du-select.js +7 -0
- package/dist/components/DataInput/du-select/du-select.types.d.ts +28 -0
- package/dist/components/DataInput/du-select/du-select.vue.d.ts +60 -0
- package/dist/components/DataInput/du-select/du-select.vue_vue_type_script_setup_true_lang.js +321 -0
- package/dist/components/DataInput/du-select/du-select.vue_vue_type_style_index_0_scoped_2bcf0acd_lang.css +1 -0
- package/dist/components/DataInput/du-text-area/du-text-area.js +5 -0
- package/dist/components/DataInput/du-text-area/du-text-area.types.d.ts +10 -0
- package/dist/components/DataInput/du-text-area/du-text-area.vue.d.ts +15 -0
- package/dist/components/DataInput/du-text-area/du-text-area.vue_vue_type_script_setup_true_lang.js +46 -0
- package/dist/components/Feedback/du-alert/du-alert.js +5 -0
- package/dist/components/Feedback/du-alert/du-alert.types.d.ts +14 -0
- package/dist/components/Feedback/du-alert/du-alert.vue.d.ts +25 -0
- package/dist/components/Feedback/du-alert/du-alert.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/Feedback/du-loading/du-loading.js +5 -0
- package/dist/components/Feedback/du-loading/du-loading.types.d.ts +9 -0
- package/dist/components/Feedback/du-loading/du-loading.vue.d.ts +8 -0
- package/dist/components/Feedback/du-loading/du-loading.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/Feedback/du-progress/du-progress.js +5 -0
- package/dist/components/Feedback/du-progress/du-progress.types.d.ts +7 -0
- package/dist/components/Feedback/du-progress/du-progress.vue.d.ts +9 -0
- package/dist/components/Feedback/du-progress/du-progress.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/Feedback/du-radial-progress/du-radial-progress.js +7 -0
- package/dist/components/Feedback/du-radial-progress/du-radial-progress.types.d.ts +8 -0
- package/dist/components/Feedback/du-radial-progress/du-radial-progress.vue.d.ts +19 -0
- package/dist/components/Feedback/du-radial-progress/du-radial-progress.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/Feedback/du-radial-progress/du-radial-progress.vue_vue_type_style_index_0_scoped_4d489040_lang.css +1 -0
- package/dist/components/Feedback/du-skeleton/du-skeleton.js +5 -0
- package/dist/components/Feedback/du-skeleton/du-skeleton.types.d.ts +3 -0
- package/dist/components/Feedback/du-skeleton/du-skeleton.vue.d.ts +14 -0
- package/dist/components/Feedback/du-skeleton/du-skeleton.vue_vue_type_script_setup_true_lang.js +12 -0
- package/dist/components/Feedback/du-toast/du-toast.js +5 -0
- package/dist/components/Feedback/du-toast/du-toast.types.d.ts +9 -0
- package/dist/components/Feedback/du-toast/du-toast.vue.d.ts +20 -0
- package/dist/components/Feedback/du-toast/du-toast.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/Feedback/du-tooltip/du-tooltip.js +5 -0
- package/dist/components/Feedback/du-tooltip/du-tooltip.types.d.ts +10 -0
- package/dist/components/Feedback/du-tooltip/du-tooltip.vue.d.ts +22 -0
- package/dist/components/Feedback/du-tooltip/du-tooltip.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/components/Layout/du-drawer/du-drawer.js +5 -0
- package/dist/components/Layout/du-drawer/du-drawer.types.d.ts +23 -0
- package/dist/components/Layout/du-drawer/du-drawer.vue.d.ts +58 -0
- package/dist/components/Layout/du-drawer/du-drawer.vue_vue_type_script_setup_true_lang.js +129 -0
- package/dist/components/Layout/du-join/du-join.js +5 -0
- package/dist/components/Layout/du-join/du-join.types.d.ts +6 -0
- package/dist/components/Layout/du-join/du-join.vue.d.ts +17 -0
- package/dist/components/Layout/du-join/du-join.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/Navigation/du-breadcrumbs/du-breadcrumbs.js +7 -0
- package/dist/components/Navigation/du-breadcrumbs/du-breadcrumbs.types.d.ts +11 -0
- package/dist/components/Navigation/du-breadcrumbs/du-breadcrumbs.vue.d.ts +6 -0
- package/dist/components/Navigation/du-breadcrumbs/du-breadcrumbs.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/components/Navigation/du-breadcrumbs/du-breadcrumbs.vue_vue_type_style_index_0_scoped_9364edec_lang.css +1 -0
- package/dist/components/Navigation/du-button-link/du-button-link.js +5 -0
- package/dist/components/Navigation/du-button-link/du-button-link.types.d.ts +16 -0
- package/dist/components/Navigation/du-button-link/du-button-link.vue.d.ts +27 -0
- package/dist/components/Navigation/du-button-link/du-button-link.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/components/Navigation/du-dock/du-dock.js +5 -0
- package/dist/components/Navigation/du-dock/du-dock.types.d.ts +16 -0
- package/dist/components/Navigation/du-dock/du-dock.vue.d.ts +59 -0
- package/dist/components/Navigation/du-dock/du-dock.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/Navigation/du-link/du-link.js +5 -0
- package/dist/components/Navigation/du-link/du-link.types.d.ts +6 -0
- package/dist/components/Navigation/du-link/du-link.vue.d.ts +18 -0
- package/dist/components/Navigation/du-link/du-link.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/Navigation/du-menu/du-menu-item.js +5 -0
- package/dist/components/Navigation/du-menu/du-menu-item.vue.d.ts +17 -0
- package/dist/components/Navigation/du-menu/du-menu-item.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/Navigation/du-menu/du-menu.js +6 -0
- package/dist/components/Navigation/du-menu/du-menu.types.d.ts +29 -0
- package/dist/components/Navigation/du-menu/du-menu.vue.d.ts +26 -0
- package/dist/components/Navigation/du-menu/du-menu.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/components/Navigation/du-menu/du-menu.vue_vue_type_style_index_0_lang.css +1 -0
- package/dist/components/Navigation/du-navbar/du-navbar.js +5 -0
- package/dist/components/Navigation/du-navbar/du-navbar.types.d.ts +2 -0
- package/dist/components/Navigation/du-navbar/du-navbar.vue.d.ts +20 -0
- package/dist/components/Navigation/du-navbar/du-navbar.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/Navigation/du-pagination/du-pagination.js +7 -0
- package/dist/components/Navigation/du-pagination/du-pagination.types.d.ts +29 -0
- package/dist/components/Navigation/du-pagination/du-pagination.vue.d.ts +51 -0
- package/dist/components/Navigation/du-pagination/du-pagination.vue_vue_type_script_setup_true_lang.js +156 -0
- package/dist/components/Navigation/du-pagination/du-pagination.vue_vue_type_style_index_0_scoped_7407b690_lang.css +1 -0
- package/dist/components/Navigation/du-step-item/du-step-item.js +5 -0
- package/dist/components/Navigation/du-step-item/du-step-item.types.d.ts +8 -0
- package/dist/components/Navigation/du-step-item/du-step-item.vue.d.ts +24 -0
- package/dist/components/Navigation/du-step-item/du-step-item.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Navigation/du-steps/du-steps.js +5 -0
- package/dist/components/Navigation/du-steps/du-steps.types.d.ts +17 -0
- package/dist/components/Navigation/du-steps/du-steps.vue.d.ts +40 -0
- package/dist/components/Navigation/du-steps/du-steps.vue_vue_type_script_setup_true_lang.js +44 -0
- package/dist/components/Navigation/du-tabs/du-tabs.js +5 -0
- package/dist/components/Navigation/du-tabs/du-tabs.types.d.ts +22 -0
- package/dist/components/Navigation/du-tabs/du-tabs.vue.d.ts +50 -0
- package/dist/components/Navigation/du-tabs/du-tabs.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/composables/useSizeProps.d.ts +15 -0
- package/dist/composables/useSizeProps.js +22 -0
- package/dist/composables/useVariantProps.d.ts +14 -0
- package/dist/composables/useVariantProps.js +7 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +65 -0
- package/dist/plugin-vite.d.ts +64 -0
- package/dist/plugin-vite.js +137 -0
- package/dist/types/index.d.ts +58 -0
- package/index.css +5 -0
- package/index.ts +69 -0
- package/package.json +99 -0
- package/plugin-vite.ts +286 -0
- package/types/index.ts +59 -0
- package/types/types.sh +80 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { useSizeMapping as e } from "../../../composables/useSizeProps.js";
|
|
2
|
+
import { useVariantMapping as t } from "../../../composables/useVariantProps.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, defineComponent as a, inject as o, mergeProps as s, openBlock as c, renderSlot as l, resolveDynamicComponent as u, unref as d, withCtx as f } from "vue";
|
|
4
|
+
//#region components/Actions/du-button/du-button.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var p = /*@__PURE__*/ a({
|
|
6
|
+
__name: "du-button",
|
|
7
|
+
props: {
|
|
8
|
+
customClass: { default: void 0 },
|
|
9
|
+
size: { default: "default" },
|
|
10
|
+
variant: { default: "default" },
|
|
11
|
+
outline: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
soft: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
dash: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
active: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
ghost: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
link: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
},
|
|
35
|
+
wide: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: void 0
|
|
42
|
+
},
|
|
43
|
+
square: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
circle: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
block: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
as: {},
|
|
56
|
+
type: { default: void 0 },
|
|
57
|
+
href: { default: void 0 },
|
|
58
|
+
value: { default: void 0 },
|
|
59
|
+
inputType: { default: void 0 },
|
|
60
|
+
label: { default: void 0 }
|
|
61
|
+
},
|
|
62
|
+
setup(a) {
|
|
63
|
+
let p = a, m = o("isDropdownTrigger", !1), h = o("isInJoin", !1), g = o("filterName", void 0), { sizeClass: _ } = e(p, "btn"), { colorClass: v } = t(p, "btn"), y = n(() => p.soft ? "btn-soft" : ""), b = n(() => p.outline ? "btn-outline" : ""), x = n(() => p.dash ? "btn-dash" : ""), S = n(() => p.active ? "btn-active" : ""), C = n(() => p.ghost ? "btn-ghost" : ""), w = n(() => p.link ? "btn-link" : ""), T = n(() => p.wide ? "btn-wide" : ""), E = n(() => p.square ? "btn-square" : ""), D = n(() => p.circle ? "btn-circle" : ""), O = n(() => p.block ? "btn-block" : ""), k = n(() => p.as ? p.as : m ? "div" : g ? "input" : "button"), A = n(() => k.value === "input"), j = n(() => k.value === "a"), M = n(() => {
|
|
64
|
+
let e = {};
|
|
65
|
+
return g ? (e.name = g, e.type = "radio") : A.value ? (e.type = p.inputType || "button", e.value = p.value || "") : j.value ? (e.href = p.href || "#", e.role = "button") : m ? (e.tabindex = "0", e.role = "button") : e.type = p.type || "button", e;
|
|
66
|
+
});
|
|
67
|
+
return (e, t) => (c(), r(u(k.value), s(M.value, {
|
|
68
|
+
class: [
|
|
69
|
+
"btn",
|
|
70
|
+
a.customClass,
|
|
71
|
+
d(_),
|
|
72
|
+
d(v),
|
|
73
|
+
y.value,
|
|
74
|
+
b.value,
|
|
75
|
+
x.value,
|
|
76
|
+
S.value,
|
|
77
|
+
C.value,
|
|
78
|
+
w.value,
|
|
79
|
+
T.value,
|
|
80
|
+
E.value,
|
|
81
|
+
D.value,
|
|
82
|
+
O.value,
|
|
83
|
+
d(h) && "join-item"
|
|
84
|
+
],
|
|
85
|
+
"aria-label": p.label,
|
|
86
|
+
disabled: p.disabled
|
|
87
|
+
}), {
|
|
88
|
+
default: f(() => [A.value ? i("", !0) : l(e.$slots, "default", { key: 0 })]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 16, [
|
|
91
|
+
"class",
|
|
92
|
+
"aria-label",
|
|
93
|
+
"disabled"
|
|
94
|
+
]));
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { p as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DROPDOWN_PLACEMENTS: readonly ["dropdown-start", "dropdown-center", "dropdown-end", "dropdown-top", "dropdown-bottom", "dropdown-left", "dropdown-right"];
|
|
2
|
+
export type DROPDOWNPlacement = (typeof DROPDOWN_PLACEMENTS)[number];
|
|
3
|
+
export type PlacementValue = 'start' | 'center' | 'end' | 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
export type PlacementInput = PlacementValue | string | PlacementValue[] | Partial<Record<PlacementValue, boolean>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type PlacementInput } from './du-dropdown.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
hover?: boolean;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
placement?: PlacementInput;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {
|
|
8
|
+
triggerProps: {
|
|
9
|
+
role: string;
|
|
10
|
+
tabindex: number;
|
|
11
|
+
'aria-haspopup': string;
|
|
12
|
+
};
|
|
13
|
+
}, __VLS_3: {}, __VLS_5: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
16
|
+
} & {
|
|
17
|
+
content?: (props: typeof __VLS_3) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_5) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
+
hover: boolean;
|
|
23
|
+
open: boolean;
|
|
24
|
+
placement: PlacementInput;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
package/dist/components/Actions/du-dropdown/du-dropdown.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, openBlock as a, provide as o, renderSlot as s } from "vue";
|
|
2
|
+
//#region components/Actions/du-dropdown/du-dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var c = {
|
|
4
|
+
class: "dropdown-content",
|
|
5
|
+
tabindex: "0"
|
|
6
|
+
}, l = /*@__PURE__*/ r({
|
|
7
|
+
__name: "du-dropdown",
|
|
8
|
+
props: {
|
|
9
|
+
hover: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
open: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !1
|
|
16
|
+
},
|
|
17
|
+
placement: { default: "bottom" }
|
|
18
|
+
},
|
|
19
|
+
setup(r) {
|
|
20
|
+
let l = r;
|
|
21
|
+
o("isDropdownTrigger", !0);
|
|
22
|
+
let u = (e) => `dropdown-${e}`, d = (e) => {
|
|
23
|
+
if (!e) return [];
|
|
24
|
+
if (typeof e == "string") return e.includes(",") ? e.split(",").map((e) => e.trim()).filter(Boolean).map((e) => u(e)) : [u(e)];
|
|
25
|
+
if (Array.isArray(e)) return e.map(u);
|
|
26
|
+
if (typeof e == "object") {
|
|
27
|
+
let t = Object.keys(e);
|
|
28
|
+
return t.every((e) => e in {
|
|
29
|
+
start: 1,
|
|
30
|
+
center: 1,
|
|
31
|
+
end: 1,
|
|
32
|
+
top: 1,
|
|
33
|
+
bottom: 1,
|
|
34
|
+
left: 1,
|
|
35
|
+
right: 1
|
|
36
|
+
}) ? t.map((e) => u(e)) : Object.entries(e).filter(([, e]) => e).map(([e]) => u(e));
|
|
37
|
+
}
|
|
38
|
+
return [];
|
|
39
|
+
}, f = e(() => d(l.placement).join(" ")), p = e(() => l.hover ? "dropdown-hover" : ""), m = e(() => l.open ? "dropdown-open" : "");
|
|
40
|
+
return (e, r) => (a(), t("div", { class: i([
|
|
41
|
+
"dropdown",
|
|
42
|
+
f.value,
|
|
43
|
+
p.value,
|
|
44
|
+
m.value
|
|
45
|
+
]) }, [s(e.$slots, "trigger", { triggerProps: {
|
|
46
|
+
role: "button",
|
|
47
|
+
tabindex: 0,
|
|
48
|
+
"aria-haspopup": "true"
|
|
49
|
+
} }), n("div", c, [s(e.$slots, "content"), s(e.$slots, "default")])], 2));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
export { l as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const FAB_MODIFIERS: readonly ["fab-flower"];
|
|
2
|
+
export type FABModifier = (typeof FAB_MODIFIERS)[number];
|
|
3
|
+
export interface FABItem {
|
|
4
|
+
label?: string;
|
|
5
|
+
icon?: any;
|
|
6
|
+
customClass?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
tooltipPosition?: 'left' | 'top' | 'right' | 'bottom';
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface FABMainAction {
|
|
13
|
+
label?: string;
|
|
14
|
+
icon?: any;
|
|
15
|
+
customClass?: string;
|
|
16
|
+
variant?: string;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface FABCloseButton {
|
|
20
|
+
label?: string;
|
|
21
|
+
icon?: string;
|
|
22
|
+
customClass?: string;
|
|
23
|
+
variant?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type Size } from '../../../composables/useSizeProps';
|
|
2
|
+
import { type Variant } from '../../../composables/useVariantProps';
|
|
3
|
+
import { type FABItem, type FABMainAction, type FABCloseButton } from './du-fab.types';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
items?: FABItem[];
|
|
6
|
+
modifier?: 'fab-flower';
|
|
7
|
+
customClass?: string;
|
|
8
|
+
size?: Size;
|
|
9
|
+
variant?: Variant;
|
|
10
|
+
circle?: boolean;
|
|
11
|
+
mainAction?: FABMainAction;
|
|
12
|
+
closeButton?: FABCloseButton;
|
|
13
|
+
absolute?: boolean;
|
|
14
|
+
position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {
|
|
17
|
+
closeButton: FABCloseButton;
|
|
18
|
+
}, __VLS_7: {}, __VLS_17: {
|
|
19
|
+
mainAction: FABMainAction;
|
|
20
|
+
}, __VLS_19: {
|
|
21
|
+
mainAction: FABMainAction;
|
|
22
|
+
}, __VLS_40: {
|
|
23
|
+
item: FABItem;
|
|
24
|
+
index: number;
|
|
25
|
+
}, __VLS_43: `item-${number}`, __VLS_44: {
|
|
26
|
+
item: FABItem;
|
|
27
|
+
index: number;
|
|
28
|
+
}, __VLS_59: {
|
|
29
|
+
item: FABItem;
|
|
30
|
+
index: number;
|
|
31
|
+
}, __VLS_62: `item-${number}`, __VLS_63: {
|
|
32
|
+
item: FABItem;
|
|
33
|
+
index: number;
|
|
34
|
+
}, __VLS_78: {
|
|
35
|
+
item: FABItem;
|
|
36
|
+
index: number;
|
|
37
|
+
}, __VLS_81: `item-${number}`, __VLS_82: {
|
|
38
|
+
item: FABItem;
|
|
39
|
+
index: number;
|
|
40
|
+
}, __VLS_89: {};
|
|
41
|
+
type __VLS_Slots = {} & {
|
|
42
|
+
[K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any;
|
|
43
|
+
} & {
|
|
44
|
+
[K in NonNullable<typeof __VLS_62>]?: (props: typeof __VLS_63) => any;
|
|
45
|
+
} & {
|
|
46
|
+
[K in NonNullable<typeof __VLS_81>]?: (props: typeof __VLS_82) => any;
|
|
47
|
+
} & {
|
|
48
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
49
|
+
} & {
|
|
50
|
+
'trigger-icon'?: (props: typeof __VLS_3) => any;
|
|
51
|
+
} & {
|
|
52
|
+
'close-button'?: (props: typeof __VLS_5) => any;
|
|
53
|
+
} & {
|
|
54
|
+
'close-icon'?: (props: typeof __VLS_7) => any;
|
|
55
|
+
} & {
|
|
56
|
+
'main-action'?: (props: typeof __VLS_17) => any;
|
|
57
|
+
} & {
|
|
58
|
+
'main-action-icon'?: (props: typeof __VLS_19) => any;
|
|
59
|
+
} & {
|
|
60
|
+
item?: (props: typeof __VLS_40) => any;
|
|
61
|
+
} & {
|
|
62
|
+
item?: (props: typeof __VLS_59) => any;
|
|
63
|
+
} & {
|
|
64
|
+
item?: (props: typeof __VLS_78) => any;
|
|
65
|
+
} & {
|
|
66
|
+
default?: (props: typeof __VLS_89) => any;
|
|
67
|
+
};
|
|
68
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
69
|
+
customClass: string;
|
|
70
|
+
circle: boolean;
|
|
71
|
+
size: Size;
|
|
72
|
+
variant: Variant;
|
|
73
|
+
closeButton: FABCloseButton;
|
|
74
|
+
items: FABItem[];
|
|
75
|
+
modifier: "fab-flower";
|
|
76
|
+
position: "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
77
|
+
mainAction: FABMainAction;
|
|
78
|
+
absolute: boolean;
|
|
79
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
80
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
81
|
+
declare const _default: typeof __VLS_export;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { useSizeMapping as e } from "../../../composables/useSizeProps.js";
|
|
2
|
+
import { useVariantMapping as t } from "../../../composables/useVariantProps.js";
|
|
3
|
+
import n from "../du-button/du-button.js";
|
|
4
|
+
import r from "../../Feedback/du-tooltip/du-tooltip.js";
|
|
5
|
+
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
6
|
+
//#region components/Actions/du-fab/du-fab.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var x = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "fab-close"
|
|
10
|
+
}, S = ["src", "alt"], C = ["innerHTML"], w = ["src", "alt"], T = ["innerHTML"], E = { key: 0 }, D = ["src", "alt"], O = ["innerHTML"], k = ["src", "alt"], A = ["innerHTML"], j = /*@__PURE__*/ f({
|
|
11
|
+
__name: "du-fab",
|
|
12
|
+
props: {
|
|
13
|
+
items: { default: void 0 },
|
|
14
|
+
modifier: { default: void 0 },
|
|
15
|
+
customClass: { default: "" },
|
|
16
|
+
size: { default: "lg" },
|
|
17
|
+
variant: { default: "primary" },
|
|
18
|
+
circle: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !0
|
|
21
|
+
},
|
|
22
|
+
mainAction: { default: void 0 },
|
|
23
|
+
closeButton: { default: void 0 },
|
|
24
|
+
absolute: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !0
|
|
27
|
+
},
|
|
28
|
+
position: { default: "bottom-right" }
|
|
29
|
+
},
|
|
30
|
+
setup(f) {
|
|
31
|
+
let j = f, { sizeClass: M } = e(j, "btn"), { colorClass: N } = t(j, "btn"), P = a(() => j.modifier ? j.modifier : ""), F = a(() => {
|
|
32
|
+
if (!j.absolute) return "";
|
|
33
|
+
switch (j.position) {
|
|
34
|
+
case "bottom-right": return "absolute bottom-4 right-4";
|
|
35
|
+
case "bottom-left": return "absolute bottom-4 left-4";
|
|
36
|
+
case "top-right": return "absolute top-4 right-4";
|
|
37
|
+
case "top-left": return "absolute top-4 left-4";
|
|
38
|
+
default: return "absolute bottom-4 right-4";
|
|
39
|
+
}
|
|
40
|
+
}), I = a(() => [
|
|
41
|
+
"fab",
|
|
42
|
+
P.value,
|
|
43
|
+
F.value,
|
|
44
|
+
"z-50",
|
|
45
|
+
j.customClass
|
|
46
|
+
]), L = (e) => e || "left";
|
|
47
|
+
return (e, t) => f.items || f.mainAction ? (m(), c("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: p(I.value)
|
|
50
|
+
}, [
|
|
51
|
+
l("div", {
|
|
52
|
+
tabindex: "0",
|
|
53
|
+
role: "button",
|
|
54
|
+
class: p([
|
|
55
|
+
"btn",
|
|
56
|
+
y(M),
|
|
57
|
+
y(N),
|
|
58
|
+
j.circle ? "btn-circle" : ""
|
|
59
|
+
])
|
|
60
|
+
}, [g(e.$slots, "trigger", {}, () => [g(e.$slots, "trigger-icon", {}, () => [t[0] ||= u("F", -1)])])], 2),
|
|
61
|
+
f.closeButton ? (m(), c("div", x, [g(e.$slots, "close-button", { closeButton: f.closeButton }, () => [u(v(f.closeButton.label || "Close") + " ", 1), l("span", { class: p([
|
|
62
|
+
"btn",
|
|
63
|
+
y(M),
|
|
64
|
+
"btn-circle",
|
|
65
|
+
f.closeButton.variant ? `btn-${f.closeButton.variant}` : "btn-error",
|
|
66
|
+
f.closeButton.customClass
|
|
67
|
+
]) }, [g(e.$slots, "close-icon", {}, () => [u(v(f.closeButton.icon || "✕"), 1)])], 2)])])) : s("", !0),
|
|
68
|
+
f.mainAction ? (m(), o(n, {
|
|
69
|
+
key: 1,
|
|
70
|
+
as: "button",
|
|
71
|
+
customClass: "fab-main-action",
|
|
72
|
+
size: j.size,
|
|
73
|
+
variant: f.mainAction.variant || "default",
|
|
74
|
+
circle: "",
|
|
75
|
+
onClick: f.mainAction.onClick
|
|
76
|
+
}, {
|
|
77
|
+
default: b(() => [g(e.$slots, "main-action", { mainAction: f.mainAction }, () => [g(e.$slots, "main-action-icon", { mainAction: f.mainAction }, () => [typeof f.mainAction.icon == "object" || typeof f.mainAction.icon == "function" ? (m(), o(_(f.mainAction.icon), {
|
|
78
|
+
key: 0,
|
|
79
|
+
class: "w-6 h-6"
|
|
80
|
+
})) : typeof f.mainAction.icon == "string" && f.mainAction.icon.startsWith("http") ? (m(), c("img", {
|
|
81
|
+
key: 1,
|
|
82
|
+
src: f.mainAction.icon,
|
|
83
|
+
alt: f.mainAction.label,
|
|
84
|
+
class: "w-6 h-6"
|
|
85
|
+
}, null, 8, S)) : typeof f.mainAction.icon == "string" ? (m(), c("div", {
|
|
86
|
+
key: 2,
|
|
87
|
+
innerHTML: f.mainAction.icon
|
|
88
|
+
}, null, 8, C)) : (m(), c(i, { key: 3 }, [u(v(f.mainAction.label || "M"), 1)], 64))])])]),
|
|
89
|
+
_: 3
|
|
90
|
+
}, 8, [
|
|
91
|
+
"size",
|
|
92
|
+
"variant",
|
|
93
|
+
"onClick"
|
|
94
|
+
])) : s("", !0),
|
|
95
|
+
(m(!0), c(i, null, h(f.items, (t, a) => (m(), c(i, { key: a }, [t.tooltip ? (m(), o(r, {
|
|
96
|
+
key: 0,
|
|
97
|
+
dataTip: t.tooltip,
|
|
98
|
+
position: L(t.tooltipPosition)
|
|
99
|
+
}, {
|
|
100
|
+
default: b(() => [d(n, {
|
|
101
|
+
as: "button",
|
|
102
|
+
size: j.size,
|
|
103
|
+
circle: j.circle,
|
|
104
|
+
customClass: t.customClass,
|
|
105
|
+
onClick: t.onClick
|
|
106
|
+
}, {
|
|
107
|
+
default: b(() => [g(e.$slots, "item", {
|
|
108
|
+
item: t,
|
|
109
|
+
index: a
|
|
110
|
+
}, () => [g(e.$slots, `item-${a}`, {
|
|
111
|
+
item: t,
|
|
112
|
+
index: a
|
|
113
|
+
}, () => [typeof t.icon == "object" || typeof t.icon == "function" ? (m(), o(_(t.icon), {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "w-6 h-6"
|
|
116
|
+
})) : typeof t.icon == "string" && t.icon.startsWith("http") ? (m(), c("img", {
|
|
117
|
+
key: 1,
|
|
118
|
+
src: t.icon,
|
|
119
|
+
alt: t.label,
|
|
120
|
+
class: "w-6 h-6"
|
|
121
|
+
}, null, 8, w)) : typeof t.icon == "string" ? (m(), c("div", {
|
|
122
|
+
key: 2,
|
|
123
|
+
innerHTML: t.icon
|
|
124
|
+
}, null, 8, T)) : (m(), c(i, { key: 3 }, [u(v(t.label || a + 1), 1)], 64))])])]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1032, [
|
|
127
|
+
"size",
|
|
128
|
+
"circle",
|
|
129
|
+
"customClass",
|
|
130
|
+
"onClick"
|
|
131
|
+
])]),
|
|
132
|
+
_: 2
|
|
133
|
+
}, 1032, ["dataTip", "position"])) : (m(), c(i, { key: 1 }, [t.label && !j.modifier ? (m(), c("div", E, [u(v(t.label) + " ", 1), d(n, {
|
|
134
|
+
as: "button",
|
|
135
|
+
size: j.size,
|
|
136
|
+
circle: j.circle,
|
|
137
|
+
customClass: t.customClass,
|
|
138
|
+
onClick: t.onClick
|
|
139
|
+
}, {
|
|
140
|
+
default: b(() => [g(e.$slots, "item", {
|
|
141
|
+
item: t,
|
|
142
|
+
index: a
|
|
143
|
+
}, () => [g(e.$slots, `item-${a}`, {
|
|
144
|
+
item: t,
|
|
145
|
+
index: a
|
|
146
|
+
}, () => [typeof t.icon == "object" || typeof t.icon == "function" ? (m(), o(_(t.icon), {
|
|
147
|
+
key: 0,
|
|
148
|
+
class: "w-6 h-6"
|
|
149
|
+
})) : typeof t.icon == "string" && t.icon.startsWith("http") ? (m(), c("img", {
|
|
150
|
+
key: 1,
|
|
151
|
+
src: t.icon,
|
|
152
|
+
alt: t.label,
|
|
153
|
+
class: "w-6 h-6"
|
|
154
|
+
}, null, 8, D)) : typeof t.icon == "string" ? (m(), c("div", {
|
|
155
|
+
key: 2,
|
|
156
|
+
innerHTML: t.icon
|
|
157
|
+
}, null, 8, O)) : (m(), c(i, { key: 3 }, [u(v(a + 1), 1)], 64))])])]),
|
|
158
|
+
_: 2
|
|
159
|
+
}, 1032, [
|
|
160
|
+
"size",
|
|
161
|
+
"circle",
|
|
162
|
+
"customClass",
|
|
163
|
+
"onClick"
|
|
164
|
+
])])) : (m(), o(n, {
|
|
165
|
+
key: 1,
|
|
166
|
+
as: "button",
|
|
167
|
+
size: j.size,
|
|
168
|
+
circle: j.circle,
|
|
169
|
+
customClass: t.customClass,
|
|
170
|
+
onClick: t.onClick
|
|
171
|
+
}, {
|
|
172
|
+
default: b(() => [g(e.$slots, "item", {
|
|
173
|
+
item: t,
|
|
174
|
+
index: a
|
|
175
|
+
}, () => [g(e.$slots, `item-${a}`, {
|
|
176
|
+
item: t,
|
|
177
|
+
index: a
|
|
178
|
+
}, () => [typeof t.icon == "object" || typeof t.icon == "function" ? (m(), o(_(t.icon), {
|
|
179
|
+
key: 0,
|
|
180
|
+
class: "w-6 h-6"
|
|
181
|
+
})) : typeof t.icon == "string" && t.icon.startsWith("http") ? (m(), c("img", {
|
|
182
|
+
key: 1,
|
|
183
|
+
src: t.icon,
|
|
184
|
+
alt: t.label,
|
|
185
|
+
class: "w-6 h-6"
|
|
186
|
+
}, null, 8, k)) : typeof t.icon == "string" ? (m(), c("div", {
|
|
187
|
+
key: 2,
|
|
188
|
+
innerHTML: t.icon
|
|
189
|
+
}, null, 8, A)) : (m(), c(i, { key: 3 }, [u(v(t.label || a + 1), 1)], 64))])])]),
|
|
190
|
+
_: 2
|
|
191
|
+
}, 1032, [
|
|
192
|
+
"size",
|
|
193
|
+
"circle",
|
|
194
|
+
"customClass",
|
|
195
|
+
"onClick"
|
|
196
|
+
]))], 64))], 64))), 128))
|
|
197
|
+
], 2)) : (m(), c("div", {
|
|
198
|
+
key: 1,
|
|
199
|
+
class: p(I.value)
|
|
200
|
+
}, [g(e.$slots, "default")], 2));
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
//#endregion
|
|
204
|
+
export { j as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
open?: boolean;
|
|
4
|
+
closeButton?: boolean;
|
|
5
|
+
closeOnEscape?: boolean;
|
|
6
|
+
closeBackdrop?: boolean;
|
|
7
|
+
placement?: 'top' | 'middle' | 'bottom' | 'start' | 'end' | 'responsive';
|
|
8
|
+
classBox?: string;
|
|
9
|
+
/** Accessible name of the dialog (use when there is no visible title). */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** id of the element naming the dialog (e.g. your title element). */
|
|
12
|
+
ariaLabelledby?: string;
|
|
13
|
+
/** Accessible label of the close button and backdrop. */
|
|
14
|
+
closeLabel?: string;
|
|
15
|
+
};
|
|
16
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
18
|
+
default?: (props: typeof __VLS_1) => any;
|
|
19
|
+
} & {
|
|
20
|
+
actions?: (props: typeof __VLS_3) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
23
|
+
showModal: () => void;
|
|
24
|
+
closeModal: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:open": (value: boolean) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
id: string;
|
|
31
|
+
open: boolean;
|
|
32
|
+
placement: "top" | "middle" | "bottom" | "start" | "end" | "responsive";
|
|
33
|
+
closeButton: boolean;
|
|
34
|
+
closeOnEscape: boolean;
|
|
35
|
+
closeBackdrop: boolean;
|
|
36
|
+
classBox: string;
|
|
37
|
+
ariaLabel: string;
|
|
38
|
+
ariaLabelledby: string;
|
|
39
|
+
closeLabel: string;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
42
|
+
declare const _default: typeof __VLS_export;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { computed as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, defineComponent as i, normalizeClass as a, onMounted as o, openBlock as s, ref as c, renderSlot as l, toDisplayString as u, watch as d, withKeys as f, withModifiers as p } from "vue";
|
|
2
|
+
//#region components/Actions/du-modal/du-modal.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var m = [
|
|
4
|
+
"id",
|
|
5
|
+
"aria-label",
|
|
6
|
+
"aria-labelledby",
|
|
7
|
+
"onKeydown"
|
|
8
|
+
], h = {
|
|
9
|
+
key: 0,
|
|
10
|
+
method: "dialog"
|
|
11
|
+
}, g = ["aria-label"], _ = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "modal-action"
|
|
14
|
+
}, v = {
|
|
15
|
+
key: 0,
|
|
16
|
+
method: "dialog",
|
|
17
|
+
class: "modal-backdrop"
|
|
18
|
+
}, y = /*@__PURE__*/ i({
|
|
19
|
+
__name: "du-modal",
|
|
20
|
+
props: {
|
|
21
|
+
id: { default: void 0 },
|
|
22
|
+
open: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
closeButton: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
closeOnEscape: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !0
|
|
33
|
+
},
|
|
34
|
+
closeBackdrop: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
placement: { default: "middle" },
|
|
39
|
+
classBox: { default: "" },
|
|
40
|
+
ariaLabel: { default: void 0 },
|
|
41
|
+
ariaLabelledby: { default: void 0 },
|
|
42
|
+
closeLabel: { default: "Close" }
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:open"],
|
|
45
|
+
setup(i, { expose: y, emit: b }) {
|
|
46
|
+
let x = i, S = c(null), C = e(() => {
|
|
47
|
+
switch (x.placement) {
|
|
48
|
+
case "top": return "modal-top";
|
|
49
|
+
case "middle": return "modal-middle";
|
|
50
|
+
case "bottom": return "modal-bottom";
|
|
51
|
+
case "start": return "modal-start";
|
|
52
|
+
case "end": return "modal-end";
|
|
53
|
+
case "responsive": return "modal-bottom sm:modal-middle";
|
|
54
|
+
default: return "";
|
|
55
|
+
}
|
|
56
|
+
}), w = () => {
|
|
57
|
+
S.value && S.value.showModal();
|
|
58
|
+
}, T = () => {
|
|
59
|
+
S.value && S.value.close();
|
|
60
|
+
}, E = b;
|
|
61
|
+
y({
|
|
62
|
+
showModal: w,
|
|
63
|
+
closeModal: T
|
|
64
|
+
}), o(() => {
|
|
65
|
+
x.open && S.value && w();
|
|
66
|
+
}), d(() => x.open, (e) => {
|
|
67
|
+
e && S.value ? w() : !e && S.value && T();
|
|
68
|
+
});
|
|
69
|
+
function D(e) {
|
|
70
|
+
x.closeOnEscape && T();
|
|
71
|
+
}
|
|
72
|
+
return (e, o) => (s(), n("dialog", {
|
|
73
|
+
ref_key: "dialogRef",
|
|
74
|
+
ref: S,
|
|
75
|
+
id: i.id,
|
|
76
|
+
class: a(["modal", C.value]),
|
|
77
|
+
"aria-label": i.ariaLabel,
|
|
78
|
+
"aria-labelledby": i.ariaLabelledby,
|
|
79
|
+
onKeydown: f(p(D, ["prevent"]), ["esc"]),
|
|
80
|
+
onClose: o[0] ||= (e) => E("update:open", !1)
|
|
81
|
+
}, [r("div", { class: a(["modal-box", i.classBox]) }, [
|
|
82
|
+
i.closeButton ? (s(), n("form", h, [r("button", {
|
|
83
|
+
class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
|
|
84
|
+
"aria-label": i.closeLabel
|
|
85
|
+
}, " ✕ ", 8, g)])) : t("", !0),
|
|
86
|
+
l(e.$slots, "default"),
|
|
87
|
+
e.$slots.actions ? (s(), n("div", _, [l(e.$slots, "actions")])) : t("", !0)
|
|
88
|
+
], 2), i.closeBackdrop ? (s(), n("form", v, [r("button", null, u(i.closeLabel), 1)])) : t("", !0)], 42, m));
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
export { y as default };
|