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,16 @@
|
|
|
1
|
+
import { type Variant } from "../../../composables/useVariantProps";
|
|
2
|
+
import { type Size } from "../../../composables/useSizeProps";
|
|
3
|
+
export interface ButtonLinkProps {
|
|
4
|
+
size?: Size;
|
|
5
|
+
variant?: Variant;
|
|
6
|
+
outline?: boolean;
|
|
7
|
+
soft?: boolean;
|
|
8
|
+
dash?: boolean;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
ghost?: boolean;
|
|
11
|
+
link?: boolean;
|
|
12
|
+
wide?: boolean;
|
|
13
|
+
square?: boolean;
|
|
14
|
+
circle?: boolean;
|
|
15
|
+
block?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ButtonLinkProps } from './du-button-link.types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<ButtonLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
|
|
7
|
+
square: boolean;
|
|
8
|
+
circle: boolean;
|
|
9
|
+
size: import("../../..").Size;
|
|
10
|
+
ghost: boolean;
|
|
11
|
+
variant: import("../../..").Variant;
|
|
12
|
+
active: boolean;
|
|
13
|
+
outline: boolean;
|
|
14
|
+
soft: boolean;
|
|
15
|
+
dash: boolean;
|
|
16
|
+
link: boolean;
|
|
17
|
+
wide: boolean;
|
|
18
|
+
block: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { useSizeMapping as e } from "../../../composables/useSizeProps.js";
|
|
2
|
+
import { useVariantMapping as t } from "../../../composables/useVariantProps.js";
|
|
3
|
+
import { computed as n, createElementBlock as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s, unref as c } from "vue";
|
|
4
|
+
//#region components/Navigation/du-button-link/du-button-link.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var l = /*@__PURE__*/ i({
|
|
6
|
+
__name: "du-button-link",
|
|
7
|
+
props: {
|
|
8
|
+
size: { default: "default" },
|
|
9
|
+
variant: { default: "default" },
|
|
10
|
+
outline: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !1
|
|
13
|
+
},
|
|
14
|
+
soft: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
dash: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
active: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
ghost: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
link: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
wide: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
square: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
circle: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
block: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
setup(i) {
|
|
52
|
+
let l = i, { sizeClass: u } = e(l, "btn"), { colorClass: d } = t(l, "btn"), f = n(() => l.soft ? "btn-soft" : ""), p = n(() => l.outline ? "btn-outline" : ""), m = n(() => l.dash ? "btn-dash" : ""), h = n(() => l.active ? "btn-active" : ""), g = n(() => l.ghost ? "btn-ghost" : ""), _ = n(() => l.link ? "btn-link" : ""), v = n(() => l.wide ? "btn-wide" : ""), y = n(() => l.square ? "btn-square" : ""), b = n(() => l.circle ? "btn-circle" : ""), x = n(() => l.block ? "btn-block" : "");
|
|
53
|
+
return (e, t) => (o(), r("a", { class: a([
|
|
54
|
+
"btn",
|
|
55
|
+
c(u),
|
|
56
|
+
c(d),
|
|
57
|
+
f.value,
|
|
58
|
+
p.value,
|
|
59
|
+
m.value,
|
|
60
|
+
h.value,
|
|
61
|
+
g.value,
|
|
62
|
+
_.value,
|
|
63
|
+
v.value,
|
|
64
|
+
y.value,
|
|
65
|
+
b.value,
|
|
66
|
+
x.value
|
|
67
|
+
]) }, [s(e.$slots, "default")], 2));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { l as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Size } from "../../../composables/useSizeProps";
|
|
2
|
+
export declare const DOCK_SIZES: readonly ["dock-xs", "dock-sm", "dock-md", "dock-lg", "dock-xl"];
|
|
3
|
+
export type DOCKSize = (typeof DOCK_SIZES)[number];
|
|
4
|
+
export interface DockItem {
|
|
5
|
+
label?: string;
|
|
6
|
+
icon?: any;
|
|
7
|
+
class?: string;
|
|
8
|
+
active?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface DockProps {
|
|
13
|
+
size?: Size;
|
|
14
|
+
items?: DockItem[];
|
|
15
|
+
reverseTheme?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type DockItem, type DockProps } from './du-dock.types';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {
|
|
3
|
+
item: DockItem;
|
|
4
|
+
index: number;
|
|
5
|
+
}, __VLS_6: `icon-${number}`, __VLS_7: {
|
|
6
|
+
item: DockItem;
|
|
7
|
+
index: number;
|
|
8
|
+
}, __VLS_14: {
|
|
9
|
+
item: DockItem;
|
|
10
|
+
index: number;
|
|
11
|
+
}, __VLS_17: `label-${number}`, __VLS_18: {
|
|
12
|
+
item: DockItem;
|
|
13
|
+
index: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
17
|
+
} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_17>]?: (props: typeof __VLS_18) => any;
|
|
19
|
+
} & {
|
|
20
|
+
default?: (props: typeof __VLS_1) => any;
|
|
21
|
+
} & {
|
|
22
|
+
icon?: (props: typeof __VLS_3) => any;
|
|
23
|
+
} & {
|
|
24
|
+
label?: (props: typeof __VLS_14) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<DockProps, {
|
|
27
|
+
activeItem: import("vue").Ref<number, number>;
|
|
28
|
+
selectedItem: import("vue").Ref<{
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
label?: string | undefined;
|
|
31
|
+
icon?: any;
|
|
32
|
+
class?: string | undefined;
|
|
33
|
+
active?: boolean | undefined;
|
|
34
|
+
onClick?: (() => void) | undefined;
|
|
35
|
+
} | undefined, DockItem | {
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
label?: string | undefined;
|
|
38
|
+
icon?: any;
|
|
39
|
+
class?: string | undefined;
|
|
40
|
+
active?: boolean | undefined;
|
|
41
|
+
onClick?: (() => void) | undefined;
|
|
42
|
+
} | undefined>;
|
|
43
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
change: (item: DockItem | undefined) => any;
|
|
45
|
+
}, string, import("vue").PublicProps, Readonly<DockProps> & Readonly<{
|
|
46
|
+
onChange?: ((item: DockItem | undefined) => any) | undefined;
|
|
47
|
+
}>, {
|
|
48
|
+
size: import("../../..").Size;
|
|
49
|
+
items: DockItem[];
|
|
50
|
+
reverseTheme: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useSizeMapping as e } from "../../../composables/useSizeProps.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createTextVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, renderSlot as d, resolveDynamicComponent as f, toDisplayString as p, unref as m } from "vue";
|
|
3
|
+
//#region components/Navigation/du-dock/du-dock.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = ["onClick"], g = ["src", "alt"], _ = ["innerHTML"], v = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: /*@__PURE__*/ s("dock-label")
|
|
7
|
+
}, y = /*@__PURE__*/ o({
|
|
8
|
+
__name: "du-dock",
|
|
9
|
+
props: {
|
|
10
|
+
size: { default: "default" },
|
|
11
|
+
items: { default: void 0 },
|
|
12
|
+
reverseTheme: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: ["change"],
|
|
18
|
+
setup(o, { expose: y, emit: b }) {
|
|
19
|
+
let x = o, { sizeClass: S } = e(x, "dock"), C = b, w = x.items?.findIndex((e) => e.active) ?? 0, T = l(w > -1 ? w : 0), E = l(x.items?.[T.value]), D = (e) => {
|
|
20
|
+
T.value = e, E.value = x.items?.[T.value], C("change", E.value), E.value?.onClick?.();
|
|
21
|
+
}, O = (e) => T.value === e;
|
|
22
|
+
return y({
|
|
23
|
+
activeItem: T,
|
|
24
|
+
selectedItem: E
|
|
25
|
+
}), (e, l) => (c(), i("div", { class: s([
|
|
26
|
+
"dock",
|
|
27
|
+
m(S),
|
|
28
|
+
o.reverseTheme && "bg-neutral text-neutral-content"
|
|
29
|
+
]) }, [e.$slots.default ? d(e.$slots, "default", { key: 0 }) : o.items ? (c(!0), i(t, { key: 1 }, u(o.items, (t, o) => (c(), i("button", {
|
|
30
|
+
key: o,
|
|
31
|
+
onClick: (e) => D(o),
|
|
32
|
+
class: s([t.class, O(o) && "dock-active"])
|
|
33
|
+
}, [d(e.$slots, "icon", {
|
|
34
|
+
item: t,
|
|
35
|
+
index: o
|
|
36
|
+
}, () => [d(e.$slots, `icon-${o}`, {
|
|
37
|
+
item: t,
|
|
38
|
+
index: o
|
|
39
|
+
}, () => [typeof t.icon == "object" ? (c(), n(f(t.icon), { key: 0 })) : typeof t.icon == "string" && t.icon.startsWith("http") ? (c(), i("img", {
|
|
40
|
+
key: 1,
|
|
41
|
+
src: t.icon,
|
|
42
|
+
alt: t.label
|
|
43
|
+
}, null, 8, g)) : typeof t.icon == "string" ? (c(), i("div", {
|
|
44
|
+
key: 2,
|
|
45
|
+
innerHTML: t.icon
|
|
46
|
+
}, null, 8, _)) : r("", !0)])]), t.label || e.$slots.label ? (c(), i("span", v, [d(e.$slots, "label", {
|
|
47
|
+
item: t,
|
|
48
|
+
index: o
|
|
49
|
+
}, () => [d(e.$slots, `label-${o}`, {
|
|
50
|
+
item: t,
|
|
51
|
+
index: o
|
|
52
|
+
}, () => [a(p(t.label), 1)])])])) : r("", !0)], 10, h))), 128)) : r("", !0)], 2));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { y as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type LinkProps } from './du-link.types';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
7
|
+
ghost: boolean;
|
|
8
|
+
variant: import("../../..").Variant;
|
|
9
|
+
onlyUnderlineOnHover: boolean;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useVariantMapping as e } from "../../../composables/useVariantProps.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a, renderSlot as o, unref as s } from "vue";
|
|
3
|
+
//#region components/Navigation/du-link/du-link.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = /*@__PURE__*/ r({
|
|
5
|
+
__name: "du-link",
|
|
6
|
+
props: {
|
|
7
|
+
variant: { default: "default" },
|
|
8
|
+
onlyUnderlineOnHover: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
ghost: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(r) {
|
|
18
|
+
let c = r, { colorClass: l } = e(c, "link"), u = t(() => c.onlyUnderlineOnHover ? "link-hover" : ""), d = t(() => c.ghost ? "link-ghost" : "");
|
|
19
|
+
return (e, t) => (a(), n("a", { class: i([
|
|
20
|
+
"link",
|
|
21
|
+
s(l),
|
|
22
|
+
u.value,
|
|
23
|
+
d.value
|
|
24
|
+
]) }, [o(e.$slots, "default")], 2));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { c as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type MenuItem } from './du-menu.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item: MenuItem;
|
|
4
|
+
index: number;
|
|
5
|
+
parentIndex?: string;
|
|
6
|
+
onItemClick?: (item: MenuItem) => void;
|
|
7
|
+
onSubItemClick?: (item: MenuItem) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/dist/components/Navigation/du-menu/du-menu-item.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, resolveComponent as m, resolveDynamicComponent as h, toDisplayString as g, useSlots as _, withCtx as v, withModifiers as y } from "vue";
|
|
2
|
+
//#region components/Navigation/du-menu/du-menu-item.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var b = {
|
|
4
|
+
key: 2,
|
|
5
|
+
class: "menu-title"
|
|
6
|
+
}, x = { role: "listbox" }, S = { role: "listbox" }, C = { key: 2 }, w = { class: "menu-title" }, T = { role: "listbox" }, E = { key: 2 }, D = ["src", "alt"], O = ["innerHTML"], k = { role: "listbox" }, A = ["checked"], j = ["src", "alt"], M = ["innerHTML"], N = /*@__PURE__*/ c({
|
|
7
|
+
__name: "du-menu-item",
|
|
8
|
+
props: {
|
|
9
|
+
item: {},
|
|
10
|
+
index: {},
|
|
11
|
+
parentIndex: {},
|
|
12
|
+
onItemClick: { type: Function },
|
|
13
|
+
onSubItemClick: { type: Function }
|
|
14
|
+
},
|
|
15
|
+
setup(c) {
|
|
16
|
+
let N = c;
|
|
17
|
+
_();
|
|
18
|
+
let P = t(() => N.parentIndex ? `${N.parentIndex}-${N.index}` : `${N.index}`), F = [
|
|
19
|
+
"RouterLink",
|
|
20
|
+
"router-link",
|
|
21
|
+
"NuxtLink",
|
|
22
|
+
"nuxt-link"
|
|
23
|
+
], I = t(() => N.item.as || "a"), L = t(() => {
|
|
24
|
+
let e = N.item.as;
|
|
25
|
+
return e ? typeof e == "string" ? F.includes(e) : e.name ? F.includes(e.name) : !1 : !1;
|
|
26
|
+
}), R = t(() => L.value ? { to: N.item.href } : { href: N.item.href }), z = t(() => N.item.multiple ? N.item.checked : N.item.checked || N.item.active);
|
|
27
|
+
function B() {
|
|
28
|
+
N.item.onClick?.(), (N.parentIndex ? N.onSubItemClick : N.onItemClick)?.(N.item);
|
|
29
|
+
}
|
|
30
|
+
return (t, _) => {
|
|
31
|
+
let N = m("du-menu-item", !0);
|
|
32
|
+
return c.item.isTitle && !c.item.subItems ? (d(), i(e, { key: 0 }, [t.$slots[`title-${P.value}`] ? p(t.$slots, `title-${P.value}`, {
|
|
33
|
+
key: 0,
|
|
34
|
+
item: c.item,
|
|
35
|
+
index: c.index
|
|
36
|
+
}) : t.$slots.title ? p(t.$slots, "title", {
|
|
37
|
+
key: 1,
|
|
38
|
+
item: c.item,
|
|
39
|
+
index: c.index
|
|
40
|
+
}) : (d(), i("li", b, g(c.item.label), 1))], 64)) : c.item.isTitle && c.item.subItems ? (d(), i(e, { key: 1 }, [t.$slots[`title-${P.value}`] ? (d(), i(e, { key: 0 }, [p(t.$slots, `title-${P.value}`, {
|
|
41
|
+
item: c.item,
|
|
42
|
+
index: c.index
|
|
43
|
+
}), a("ul", x, [(d(!0), i(e, null, f(c.item.subItems, (e, r) => (d(), n(N, l({
|
|
44
|
+
key: r,
|
|
45
|
+
item: e,
|
|
46
|
+
index: r,
|
|
47
|
+
"parent-index": P.value,
|
|
48
|
+
onItemClick: c.onItemClick,
|
|
49
|
+
onSubItemClick: c.onSubItemClick
|
|
50
|
+
}, { ref_for: !0 }, t.$attrs), o({ _: 2 }, [f(t.$slots, (e, n) => ({
|
|
51
|
+
name: n,
|
|
52
|
+
fn: v((e) => [p(t.$slots, n, l({ ref_for: !0 }, e))])
|
|
53
|
+
}))]), 1040, [
|
|
54
|
+
"item",
|
|
55
|
+
"index",
|
|
56
|
+
"parent-index",
|
|
57
|
+
"onItemClick",
|
|
58
|
+
"onSubItemClick"
|
|
59
|
+
]))), 128))])], 64)) : t.$slots.title ? (d(), i(e, { key: 1 }, [p(t.$slots, "title", {
|
|
60
|
+
item: c.item,
|
|
61
|
+
index: c.index
|
|
62
|
+
}), a("ul", S, [(d(!0), i(e, null, f(c.item.subItems, (e, r) => (d(), n(N, l({
|
|
63
|
+
key: r,
|
|
64
|
+
item: e,
|
|
65
|
+
index: r,
|
|
66
|
+
"parent-index": P.value,
|
|
67
|
+
onItemClick: c.onItemClick,
|
|
68
|
+
onSubItemClick: c.onSubItemClick
|
|
69
|
+
}, { ref_for: !0 }, t.$attrs), o({ _: 2 }, [f(t.$slots, (e, n) => ({
|
|
70
|
+
name: n,
|
|
71
|
+
fn: v((e) => [p(t.$slots, n, l({ ref_for: !0 }, e))])
|
|
72
|
+
}))]), 1040, [
|
|
73
|
+
"item",
|
|
74
|
+
"index",
|
|
75
|
+
"parent-index",
|
|
76
|
+
"onItemClick",
|
|
77
|
+
"onSubItemClick"
|
|
78
|
+
]))), 128))])], 64)) : (d(), i("li", C, [a("h2", w, g(c.item.label), 1), a("ul", T, [(d(!0), i(e, null, f(c.item.subItems, (e, r) => (d(), n(N, l({
|
|
79
|
+
key: r,
|
|
80
|
+
item: e,
|
|
81
|
+
index: r,
|
|
82
|
+
"parent-index": P.value,
|
|
83
|
+
onItemClick: c.onItemClick,
|
|
84
|
+
onSubItemClick: c.onSubItemClick
|
|
85
|
+
}, { ref_for: !0 }, t.$attrs), o({ _: 2 }, [f(t.$slots, (e, n) => ({
|
|
86
|
+
name: n,
|
|
87
|
+
fn: v((e) => [p(t.$slots, n, l({ ref_for: !0 }, e))])
|
|
88
|
+
}))]), 1040, [
|
|
89
|
+
"item",
|
|
90
|
+
"index",
|
|
91
|
+
"parent-index",
|
|
92
|
+
"onItemClick",
|
|
93
|
+
"onSubItemClick"
|
|
94
|
+
]))), 128))])]))], 64)) : c.item.subItems ? (d(), i(e, { key: 2 }, [t.$slots[`submenu-${P.value}`] ? p(t.$slots, `submenu-${P.value}`, {
|
|
95
|
+
key: 0,
|
|
96
|
+
item: c.item,
|
|
97
|
+
index: c.index
|
|
98
|
+
}) : t.$slots.submenu ? p(t.$slots, "submenu", {
|
|
99
|
+
key: 1,
|
|
100
|
+
item: c.item,
|
|
101
|
+
index: c.index
|
|
102
|
+
}) : (d(), i("li", E, [(d(), n(h(I.value), l({ role: c.item.disabled ? void 0 : "option" }, R.value, {
|
|
103
|
+
class: {
|
|
104
|
+
"menu-disabled": c.item.disabled,
|
|
105
|
+
"menu-active": z.value
|
|
106
|
+
},
|
|
107
|
+
onClick: y(B, ["stop"])
|
|
108
|
+
}), {
|
|
109
|
+
default: v(() => [
|
|
110
|
+
typeof c.item.icon == "object" ? (d(), n(h(c.item.icon), { key: 0 })) : typeof c.item.icon == "string" && c.item.icon.startsWith("http") ? (d(), i("img", {
|
|
111
|
+
key: 1,
|
|
112
|
+
src: c.item.icon,
|
|
113
|
+
alt: c.item.label,
|
|
114
|
+
class: "w-5 h-5"
|
|
115
|
+
}, null, 8, D)) : typeof c.item.icon == "string" ? (d(), i("div", {
|
|
116
|
+
key: 2,
|
|
117
|
+
innerHTML: c.item.icon
|
|
118
|
+
}, null, 8, O)) : r("", !0),
|
|
119
|
+
s(" " + g(c.item.label) + " ", 1),
|
|
120
|
+
p(t.$slots, "additional", {
|
|
121
|
+
item: c.item,
|
|
122
|
+
index: c.index
|
|
123
|
+
})
|
|
124
|
+
]),
|
|
125
|
+
_: 3
|
|
126
|
+
}, 16, ["role", "class"])), a("ul", k, [(d(!0), i(e, null, f(c.item.subItems, (e, r) => (d(), n(N, l({
|
|
127
|
+
key: r,
|
|
128
|
+
item: e,
|
|
129
|
+
index: r,
|
|
130
|
+
"parent-index": P.value,
|
|
131
|
+
onItemClick: c.onItemClick,
|
|
132
|
+
onSubItemClick: c.onSubItemClick
|
|
133
|
+
}, { ref_for: !0 }, t.$attrs), o({ _: 2 }, [f(t.$slots, (e, n) => ({
|
|
134
|
+
name: n,
|
|
135
|
+
fn: v((e) => [p(t.$slots, n, l({ ref_for: !0 }, e))])
|
|
136
|
+
}))]), 1040, [
|
|
137
|
+
"item",
|
|
138
|
+
"index",
|
|
139
|
+
"parent-index",
|
|
140
|
+
"onItemClick",
|
|
141
|
+
"onSubItemClick"
|
|
142
|
+
]))), 128))])]))], 64)) : (d(), i(e, { key: 3 }, [t.$slots[`item-${P.value}`] ? p(t.$slots, `item-${P.value}`, {
|
|
143
|
+
key: 0,
|
|
144
|
+
item: c.item,
|
|
145
|
+
index: c.index
|
|
146
|
+
}) : t.$slots.item ? p(t.$slots, "item", {
|
|
147
|
+
key: 1,
|
|
148
|
+
item: c.item,
|
|
149
|
+
index: c.index
|
|
150
|
+
}) : (d(), i("li", {
|
|
151
|
+
key: 2,
|
|
152
|
+
class: u({ "menu-disabled": c.item.disabled })
|
|
153
|
+
}, [(d(), n(h(I.value), l({ role: c.item.disabled ? void 0 : "option" }, R.value, {
|
|
154
|
+
class: { "menu-active": z.value },
|
|
155
|
+
onClick: y(B, ["stop"])
|
|
156
|
+
}), {
|
|
157
|
+
default: v(() => [
|
|
158
|
+
c.item.multiple && c.item.value !== void 0 ? (d(), i("input", {
|
|
159
|
+
key: 0,
|
|
160
|
+
type: "checkbox",
|
|
161
|
+
class: "invisible w-0 h-0 overflow-clip",
|
|
162
|
+
checked: c.item.checked,
|
|
163
|
+
disabled: ""
|
|
164
|
+
}, null, 8, A)) : r("", !0),
|
|
165
|
+
typeof c.item.icon == "object" ? (d(), n(h(c.item.icon), { key: 1 })) : typeof c.item.icon == "string" && c.item.icon.startsWith("http") ? (d(), i("img", {
|
|
166
|
+
key: 2,
|
|
167
|
+
src: c.item.icon,
|
|
168
|
+
alt: c.item.label,
|
|
169
|
+
class: "w-5 h-5"
|
|
170
|
+
}, null, 8, j)) : typeof c.item.icon == "string" ? (d(), i("div", {
|
|
171
|
+
key: 3,
|
|
172
|
+
innerHTML: c.item.icon
|
|
173
|
+
}, null, 8, M)) : r("", !0),
|
|
174
|
+
s(" " + g(c.item.label) + " ", 1),
|
|
175
|
+
p(t.$slots, "additional", {
|
|
176
|
+
item: c.item,
|
|
177
|
+
index: c.index
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
_: 3
|
|
181
|
+
}, 16, ["role", "class"]))], 2))], 64));
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
//#endregion
|
|
186
|
+
export { N as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import { type Size } from "../../../composables/useSizeProps";
|
|
3
|
+
export declare const DU_MENU_DIRECTIONS: readonly ["default", "vertical", "horizontal", "responsive"];
|
|
4
|
+
export type MenuDirection = (typeof DU_MENU_DIRECTIONS)[number];
|
|
5
|
+
export declare const MENU_SIZES: readonly ["menu-xs", "menu-sm", "menu-md", "menu-lg", "menu-xl"];
|
|
6
|
+
export type MENUSize = (typeof MENU_SIZES)[number];
|
|
7
|
+
export interface MenuItem {
|
|
8
|
+
label: string;
|
|
9
|
+
href?: string;
|
|
10
|
+
as?: string | Component;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isTitle?: boolean;
|
|
13
|
+
subItems?: MenuItem[];
|
|
14
|
+
value?: string | number;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
active?: boolean;
|
|
19
|
+
icon?: Component | string | object | unknown;
|
|
20
|
+
}
|
|
21
|
+
export interface MenuProps {
|
|
22
|
+
direction?: MenuDirection;
|
|
23
|
+
size?: Size;
|
|
24
|
+
rounded?: boolean;
|
|
25
|
+
items?: MenuItem[];
|
|
26
|
+
activeItem?: string;
|
|
27
|
+
onItemClick?: (item: MenuItem) => void;
|
|
28
|
+
onSubItemClick?: (item: MenuItem) => void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type MenuProps, type MenuItem } from './du-menu.types';
|
|
2
|
+
declare var __VLS_9: string, __VLS_10: any, __VLS_12: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_12) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<MenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
itemClick: (item: MenuItem) => any;
|
|
10
|
+
subItemClick: (item: MenuItem) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<MenuProps> & Readonly<{
|
|
12
|
+
onItemClick?: ((item: MenuItem) => any) | undefined;
|
|
13
|
+
onSubItemClick?: ((item: MenuItem) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
rounded: boolean;
|
|
16
|
+
size: import("../../../index.ts").Size;
|
|
17
|
+
direction: import("./du-menu.types").MenuDirection;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useSizeMapping as e } from "../../../composables/useSizeProps.js";
|
|
2
|
+
import t from "./du-menu-item.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createSlots as o, defineComponent as s, inject as c, mergeProps as l, normalizeClass as u, openBlock as d, renderList as f, renderSlot as p, unref as m, withCtx as h } from "vue";
|
|
4
|
+
//#region components/Navigation/du-menu/du-menu.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = ["aria-orientation"], _ = /*@__PURE__*/ s({
|
|
6
|
+
__name: "du-menu",
|
|
7
|
+
props: {
|
|
8
|
+
direction: { default: "vertical" },
|
|
9
|
+
size: { default: "default" },
|
|
10
|
+
rounded: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
items: {},
|
|
15
|
+
activeItem: {},
|
|
16
|
+
onItemClick: {},
|
|
17
|
+
onSubItemClick: {}
|
|
18
|
+
},
|
|
19
|
+
emits: ["itemClick", "subItemClick"],
|
|
20
|
+
setup(s, { emit: _ }) {
|
|
21
|
+
let v = s, y = _;
|
|
22
|
+
function b(e) {
|
|
23
|
+
v.onItemClick?.(e), y("itemClick", e);
|
|
24
|
+
}
|
|
25
|
+
function x(e) {
|
|
26
|
+
v.onSubItemClick?.(e), y("subItemClick", e);
|
|
27
|
+
}
|
|
28
|
+
let S = c("isDropdownTrigger", !1), C = r(() => ({
|
|
29
|
+
default: "",
|
|
30
|
+
vertical: "menu-vertical",
|
|
31
|
+
horizontal: "menu-horizontal",
|
|
32
|
+
responsive: "menu-vertical lg:menu-horizontal"
|
|
33
|
+
})[v.direction]), { sizeClass: w } = e(v, "menu"), T = r(() => v.rounded ? "rounded-box" : "[&_li>*]:rounded-none p-0"), E = r(() => S ? "" : "bg-base-200"), D = r(() => v.direction === "horizontal" || v.direction === "responsive" ? "horizontal" : "vertical");
|
|
34
|
+
return (e, r) => (d(), a("ul", {
|
|
35
|
+
role: "listbox",
|
|
36
|
+
"aria-orientation": D.value,
|
|
37
|
+
class: u([
|
|
38
|
+
"menu",
|
|
39
|
+
E.value,
|
|
40
|
+
T.value,
|
|
41
|
+
C.value,
|
|
42
|
+
m(w)
|
|
43
|
+
])
|
|
44
|
+
}, [s.items && !e.$slots.default ? (d(!0), a(n, { key: 0 }, f(s.items, (n, r) => (d(), i(t, {
|
|
45
|
+
key: r,
|
|
46
|
+
item: n,
|
|
47
|
+
index: r,
|
|
48
|
+
onItemClick: b,
|
|
49
|
+
onSubItemClick: x
|
|
50
|
+
}, o({ _: 2 }, [f(e.$slots, (t, n) => ({
|
|
51
|
+
name: n,
|
|
52
|
+
fn: h((t) => [p(e.$slots, n, l({ ref_for: !0 }, t))])
|
|
53
|
+
}))]), 1032, ["item", "index"]))), 128)) : p(e.$slots, "default", { key: 1 })], 10, g));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { _ as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.menu * a,.menu * button{margin:.125rem 0}
|