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,9 @@
|
|
|
1
|
+
export declare const CAROUSEL_POSITIONS: readonly ["carousel-start", "carousel-center", "carousel-end"];
|
|
2
|
+
export type CAROUSELPosition = (typeof CAROUSEL_POSITIONS)[number];
|
|
3
|
+
export interface CarouselItem {
|
|
4
|
+
id?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
content?: string;
|
|
8
|
+
customClass?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CarouselItem } from './du-carousel.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items?: CarouselItem[];
|
|
4
|
+
start?: boolean;
|
|
5
|
+
center?: boolean;
|
|
6
|
+
end?: boolean;
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_7: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_7) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
start: boolean;
|
|
15
|
+
center: boolean;
|
|
16
|
+
end: boolean;
|
|
17
|
+
vertical: boolean;
|
|
18
|
+
items: CarouselItem[];
|
|
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
|
+
};
|
package/dist/components/DataDisplay/du-carousel/du-carousel.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import e from "./du-carousel-item.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, withCtx as p } from "vue";
|
|
3
|
+
//#region components/DataDisplay/du-carousel/du-carousel.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = ["src", "alt"], h = /*@__PURE__*/ s({
|
|
5
|
+
__name: "du-carousel",
|
|
6
|
+
props: {
|
|
7
|
+
items: { default: void 0 },
|
|
8
|
+
start: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !0
|
|
11
|
+
},
|
|
12
|
+
center: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
end: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !1
|
|
19
|
+
},
|
|
20
|
+
vertical: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(s) {
|
|
26
|
+
let h = s, g = n(() => h.center ? "carousel-center" : h.end ? "carousel-end" : h.start ? "carousel-start" : null);
|
|
27
|
+
return (n, h) => (l(), a("div", { class: c([
|
|
28
|
+
"carousel",
|
|
29
|
+
g.value,
|
|
30
|
+
{ "carousel-vertical": s.vertical }
|
|
31
|
+
]) }, [s.items && s.items.length ? (l(!0), a(t, { key: 0 }, u(s.items, (n, s) => (l(), r(e, {
|
|
32
|
+
key: n.id ?? s,
|
|
33
|
+
id: n.id,
|
|
34
|
+
class: c(n.customClass)
|
|
35
|
+
}, {
|
|
36
|
+
default: p(() => [n.src ? (l(), a("img", {
|
|
37
|
+
key: 0,
|
|
38
|
+
src: n.src,
|
|
39
|
+
alt: n.alt ?? `Slide ${s + 1}`
|
|
40
|
+
}, null, 8, m)) : n.content ? (l(), a(t, { key: 1 }, [o(f(n.content), 1)], 64)) : i("", !0)]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1032, ["id", "class"]))), 128)) : d(n.$slots, "default", { key: 1 })], 2));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { h as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Variant } from "../../../composables/useVariantProps";
|
|
2
|
+
import { type ChatPlacement } from "./du-chat.types";
|
|
3
|
+
interface ChatItemProps {
|
|
4
|
+
message?: string;
|
|
5
|
+
placement?: ChatPlacement;
|
|
6
|
+
variant?: Variant;
|
|
7
|
+
customClass?: string;
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
image?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
header?: (props: typeof __VLS_3) => any;
|
|
14
|
+
} & {
|
|
15
|
+
message?: (props: typeof __VLS_5) => any;
|
|
16
|
+
} & {
|
|
17
|
+
footer?: (props: typeof __VLS_7) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<ChatItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatItemProps> & Readonly<{}>, {
|
|
20
|
+
customClass: string;
|
|
21
|
+
variant: Variant;
|
|
22
|
+
placement: ChatPlacement;
|
|
23
|
+
message: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
package/dist/components/DataDisplay/du-chat/du-chat-item.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useVariantMapping as e } from "../../../composables/useVariantProps.js";
|
|
2
|
+
import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, unref as f } from "vue";
|
|
3
|
+
//#region components/DataDisplay/du-chat/du-chat-item.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var p = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "chat-image avatar"
|
|
7
|
+
}, m = { class: "w-10 rounded-full" }, h = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "chat-header"
|
|
10
|
+
}, g = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "chat-footer"
|
|
13
|
+
}, _ = /*@__PURE__*/ o({
|
|
14
|
+
__name: "du-chat-item",
|
|
15
|
+
props: {
|
|
16
|
+
message: { default: "" },
|
|
17
|
+
placement: { default: void 0 },
|
|
18
|
+
variant: { default: "default" },
|
|
19
|
+
customClass: { default: "" }
|
|
20
|
+
},
|
|
21
|
+
setup(o) {
|
|
22
|
+
let _ = o, v = s("defaultChatPlacement", "start"), y = t(() => _.placement || v), { colorClass: b } = e(_, "chat-bubble"), x = t(() => y.value === "end" ? "chat-end" : "chat-start");
|
|
23
|
+
return (e, t) => (l(), r("div", { class: c([
|
|
24
|
+
"chat",
|
|
25
|
+
x.value,
|
|
26
|
+
o.customClass
|
|
27
|
+
]) }, [
|
|
28
|
+
e.$slots.image ? (l(), r("div", p, [i("div", m, [u(e.$slots, "image")])])) : n("", !0),
|
|
29
|
+
e.$slots.header ? (l(), r("div", h, [u(e.$slots, "header")])) : n("", !0),
|
|
30
|
+
i("div", { class: c(["chat-bubble", f(b)]) }, [u(e.$slots, "message", {}, () => [a(d(o.message), 1)])], 2),
|
|
31
|
+
e.$slots.footer ? (l(), r("div", g, [u(e.$slots, "footer")])) : n("", !0)
|
|
32
|
+
], 2));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { _ as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const CHAT_COLORS: readonly ["chat-bubble-primary", "chat-bubble-secondary", "chat-bubble-accent", "chat-bubble-neutral", "chat-bubble-info", "chat-bubble-success", "chat-bubble-warning", "chat-bubble-error"];
|
|
2
|
+
export type CHATColor = (typeof CHAT_COLORS)[number];
|
|
3
|
+
export declare const DU_CHAT_PLACEMENTS: readonly ["start", "end"];
|
|
4
|
+
export type ChatPlacement = (typeof DU_CHAT_PLACEMENTS)[number];
|
|
5
|
+
export interface ChatItem {
|
|
6
|
+
message?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
header?: string;
|
|
9
|
+
footer?: string;
|
|
10
|
+
placement?: ChatPlacement;
|
|
11
|
+
variant?: CHATColor;
|
|
12
|
+
customClass?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ChatProps {
|
|
15
|
+
items?: ChatItem[];
|
|
16
|
+
placement?: ChatPlacement;
|
|
17
|
+
customClass?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ChatProps } from './du-chat.types';
|
|
2
|
+
declare var __VLS_2: `image-${number}`, __VLS_3: {
|
|
3
|
+
item: import("./du-chat.types").ChatItem;
|
|
4
|
+
index: number;
|
|
5
|
+
}, __VLS_6: `header-${number}`, __VLS_7: {
|
|
6
|
+
item: import("./du-chat.types").ChatItem;
|
|
7
|
+
index: number;
|
|
8
|
+
}, __VLS_10: `message-${number}`, __VLS_11: {
|
|
9
|
+
item: import("./du-chat.types").ChatItem;
|
|
10
|
+
index: number;
|
|
11
|
+
}, __VLS_14: `footer-${number}`, __VLS_15: {
|
|
12
|
+
item: import("./du-chat.types").ChatItem;
|
|
13
|
+
index: number;
|
|
14
|
+
}, __VLS_17: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
17
|
+
} & {
|
|
18
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
19
|
+
} & {
|
|
20
|
+
[K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any;
|
|
21
|
+
} & {
|
|
22
|
+
[K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: typeof __VLS_17) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<ChatProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatProps> & Readonly<{}>, {
|
|
27
|
+
customClass: string;
|
|
28
|
+
placement: import("./du-chat.types").ChatPlacement;
|
|
29
|
+
items: import("./du-chat.types").ChatItem[];
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Fragment as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, provide as c, renderList as l, renderSlot as u, toDisplayString as d } from "vue";
|
|
2
|
+
//#region components/DataDisplay/du-chat/du-chat.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "chat-image avatar"
|
|
6
|
+
}, p = { class: "w-10 rounded-full" }, m = ["src"], h = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "chat-header"
|
|
9
|
+
}, g = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "chat-footer"
|
|
12
|
+
}, _ = /*@__PURE__*/ a({
|
|
13
|
+
__name: "du-chat",
|
|
14
|
+
props: {
|
|
15
|
+
items: { default: void 0 },
|
|
16
|
+
placement: { default: "start" },
|
|
17
|
+
customClass: { default: "" }
|
|
18
|
+
},
|
|
19
|
+
setup(a) {
|
|
20
|
+
let _ = a;
|
|
21
|
+
c("defaultChatPlacement", _.placement);
|
|
22
|
+
let v = (e) => (e || _.placement) === "end" ? "chat-end" : "chat-start";
|
|
23
|
+
return (c, _) => a.items ? (s(!0), n(e, { key: 0 }, l(a.items, (e, l) => (s(), n("div", {
|
|
24
|
+
key: l,
|
|
25
|
+
class: o([
|
|
26
|
+
"chat",
|
|
27
|
+
v(e.placement),
|
|
28
|
+
e.customClass || a.customClass
|
|
29
|
+
])
|
|
30
|
+
}, [
|
|
31
|
+
e.image || c.$slots[`image-${l}`] ? (s(), n("div", f, [r("div", p, [u(c.$slots, `image-${l}`, {
|
|
32
|
+
item: e,
|
|
33
|
+
index: l
|
|
34
|
+
}, () => [e.image ? (s(), n("img", {
|
|
35
|
+
key: 0,
|
|
36
|
+
src: e.image,
|
|
37
|
+
alt: "Chat avatar"
|
|
38
|
+
}, null, 8, m)) : t("", !0)])])])) : t("", !0),
|
|
39
|
+
e.header || c.$slots[`header-${l}`] ? (s(), n("div", h, [u(c.$slots, `header-${l}`, {
|
|
40
|
+
item: e,
|
|
41
|
+
index: l
|
|
42
|
+
}, () => [i(d(e.header), 1)])])) : t("", !0),
|
|
43
|
+
r("div", { class: o(["chat-bubble", e.variant ? `chat-bubble-${e.variant}` : ""]) }, [u(c.$slots, `message-${l}`, {
|
|
44
|
+
item: e,
|
|
45
|
+
index: l
|
|
46
|
+
}, () => [i(d(e.message), 1)])], 2),
|
|
47
|
+
e.footer || c.$slots[`footer-${l}`] ? (s(), n("div", g, [u(c.$slots, `footer-${l}`, {
|
|
48
|
+
item: e,
|
|
49
|
+
index: l
|
|
50
|
+
}, () => [i(d(e.footer), 1)])])) : t("", !0)
|
|
51
|
+
], 2))), 128)) : u(c.$slots, "default", { key: 1 });
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { _ as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const COLLAPSE_MODIFIERS: readonly ["collapse-arrow", "collapse-plus", "collapse-open", "collapse-close"];
|
|
2
|
+
export interface COLLAPSEItem {
|
|
3
|
+
title?: string;
|
|
4
|
+
content?: string;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
customClass?: string;
|
|
7
|
+
}
|
|
8
|
+
export type COLLAPSEModifier = (typeof COLLAPSE_MODIFIERS)[number];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type COLLAPSEItem } from './du-collapse.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items?: COLLAPSEItem[];
|
|
4
|
+
modifier?: 'collapse-arrow' | 'collapse-plus' | 'collapse-open' | 'collapse-close';
|
|
5
|
+
customClass?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_2: `title-${number}`, __VLS_3: {
|
|
8
|
+
item: COLLAPSEItem;
|
|
9
|
+
index: number;
|
|
10
|
+
}, __VLS_6: `content-${number}`, __VLS_7: {
|
|
11
|
+
item: COLLAPSEItem;
|
|
12
|
+
index: number;
|
|
13
|
+
}, __VLS_9: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
[K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3) => any;
|
|
16
|
+
} & {
|
|
17
|
+
[K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
|
|
18
|
+
} & {
|
|
19
|
+
default?: (props: typeof __VLS_9) => 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
|
+
customClass: string;
|
|
23
|
+
items: COLLAPSEItem[];
|
|
24
|
+
modifier: "collapse-arrow" | "collapse-plus" | "collapse-open" | "collapse-close";
|
|
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/DataDisplay/du-collapse/du-collapse.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, provide as c, renderList as l, renderSlot as u, toDisplayString as d } from "vue";
|
|
2
|
+
//#region components/DataDisplay/du-collapse/du-collapse.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = ["checked"], p = { class: "collapse-title" }, m = { class: "collapse-content" }, h = /*@__PURE__*/ a({
|
|
4
|
+
__name: "du-collapse",
|
|
5
|
+
props: {
|
|
6
|
+
items: { default: void 0 },
|
|
7
|
+
modifier: { default: void 0 },
|
|
8
|
+
customClass: { default: "" }
|
|
9
|
+
},
|
|
10
|
+
setup(a) {
|
|
11
|
+
return c("collapseId", t(() => `collapse-${Math.random().toString(36).substring(2, 9)}`).value), (t, c) => a.items ? (s(!0), n(e, { key: 0 }, l(a.items, (e, c) => (s(), n("div", {
|
|
12
|
+
key: c,
|
|
13
|
+
class: o([
|
|
14
|
+
"collapse",
|
|
15
|
+
"bg-base-100 border border-base-300",
|
|
16
|
+
a.modifier,
|
|
17
|
+
e.customClass || a.customClass
|
|
18
|
+
])
|
|
19
|
+
}, [
|
|
20
|
+
r("input", {
|
|
21
|
+
type: "checkbox",
|
|
22
|
+
checked: e.open ?? !1
|
|
23
|
+
}, null, 8, f),
|
|
24
|
+
r("div", p, [u(t.$slots, `title-${c}`, {
|
|
25
|
+
item: e,
|
|
26
|
+
index: c
|
|
27
|
+
}, () => [i(d(e.title), 1)])]),
|
|
28
|
+
r("div", m, [u(t.$slots, `content-${c}`, {
|
|
29
|
+
item: e,
|
|
30
|
+
index: c
|
|
31
|
+
}, () => [i(d(e.content), 1)])])
|
|
32
|
+
], 2))), 128)) : u(t.$slots, "default", { key: 1 });
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { h as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type COUNTDOWNLabels } from './du-countdown.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
targetDate?: Date;
|
|
4
|
+
showDays?: boolean;
|
|
5
|
+
showHours?: boolean;
|
|
6
|
+
showMinutes?: boolean;
|
|
7
|
+
showSeconds?: boolean;
|
|
8
|
+
labels?: COUNTDOWNLabels;
|
|
9
|
+
separator?: string;
|
|
10
|
+
customClass?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
customClass: string;
|
|
14
|
+
targetDate: Date;
|
|
15
|
+
separator: string;
|
|
16
|
+
showDays: boolean;
|
|
17
|
+
showHours: boolean;
|
|
18
|
+
showMinutes: boolean;
|
|
19
|
+
showSeconds: boolean;
|
|
20
|
+
labels: COUNTDOWNLabels;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import e from "./du-countdown.js";
|
|
2
|
+
import { createCommentVNode as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, toDisplayString as c } from "vue";
|
|
3
|
+
//#region components/DataDisplay/du-countdown/du-countdown-group.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex flex-col items-center"
|
|
7
|
+
}, u = { class: "text-xs mt-1" }, d = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "text-xl"
|
|
10
|
+
}, f = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "flex flex-col items-center"
|
|
13
|
+
}, p = { class: "text-xs mt-1" }, m = {
|
|
14
|
+
key: 3,
|
|
15
|
+
class: "text-xl"
|
|
16
|
+
}, h = {
|
|
17
|
+
key: 4,
|
|
18
|
+
class: "flex flex-col items-center"
|
|
19
|
+
}, g = { class: "text-xs mt-1" }, _ = {
|
|
20
|
+
key: 5,
|
|
21
|
+
class: "text-xl"
|
|
22
|
+
}, v = {
|
|
23
|
+
key: 6,
|
|
24
|
+
class: "flex flex-col items-center"
|
|
25
|
+
}, y = { class: "text-xs mt-1" }, b = /*@__PURE__*/ a({
|
|
26
|
+
__name: "du-countdown-group",
|
|
27
|
+
props: {
|
|
28
|
+
targetDate: { default: void 0 },
|
|
29
|
+
showDays: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !0
|
|
32
|
+
},
|
|
33
|
+
showHours: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
showMinutes: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !0
|
|
40
|
+
},
|
|
41
|
+
showSeconds: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
labels: { default: () => ({
|
|
46
|
+
days: "days",
|
|
47
|
+
hours: "hours",
|
|
48
|
+
minutes: "min",
|
|
49
|
+
seconds: "sec"
|
|
50
|
+
}) },
|
|
51
|
+
separator: { default: ":" },
|
|
52
|
+
customClass: { default: "" }
|
|
53
|
+
},
|
|
54
|
+
setup(a) {
|
|
55
|
+
return (b, x) => (s(), n("div", { class: o(["flex items-center gap-2", a.customClass]) }, [
|
|
56
|
+
a.showDays ? (s(), n("div", l, [i(e, {
|
|
57
|
+
"target-date": a.targetDate,
|
|
58
|
+
format: "days",
|
|
59
|
+
separator: a.separator
|
|
60
|
+
}, null, 8, ["target-date", "separator"]), r("span", u, c(a.labels.days), 1)])) : t("", !0),
|
|
61
|
+
a.showDays && (a.showHours || a.showMinutes || a.showSeconds) ? (s(), n("span", d, c(a.separator), 1)) : t("", !0),
|
|
62
|
+
a.showHours ? (s(), n("div", f, [i(e, {
|
|
63
|
+
"target-date": a.targetDate,
|
|
64
|
+
format: "hours",
|
|
65
|
+
separator: a.separator
|
|
66
|
+
}, null, 8, ["target-date", "separator"]), r("span", p, c(a.labels.hours), 1)])) : t("", !0),
|
|
67
|
+
a.showHours && (a.showMinutes || a.showSeconds) ? (s(), n("span", m, c(a.separator), 1)) : t("", !0),
|
|
68
|
+
a.showMinutes ? (s(), n("div", h, [i(e, {
|
|
69
|
+
"target-date": a.targetDate,
|
|
70
|
+
format: "minutes",
|
|
71
|
+
separator: a.separator
|
|
72
|
+
}, null, 8, ["target-date", "separator"]), r("span", g, c(a.labels.minutes), 1)])) : t("", !0),
|
|
73
|
+
a.showMinutes && a.showSeconds ? (s(), n("span", _, c(a.separator), 1)) : t("", !0),
|
|
74
|
+
a.showSeconds ? (s(), n("div", v, [i(e, {
|
|
75
|
+
"target-date": a.targetDate,
|
|
76
|
+
format: "seconds",
|
|
77
|
+
separator: a.separator
|
|
78
|
+
}, null, 8, ["target-date", "separator"]), r("span", y, c(a.labels.seconds), 1)])) : t("", !0)
|
|
79
|
+
], 2));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
//#endregion
|
|
83
|
+
export { b as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const COUNTDOWN_FORMATS: readonly ["days", "hours", "minutes", "seconds"];
|
|
2
|
+
export type COUNTDOWNFormat = (typeof COUNTDOWN_FORMATS)[number];
|
|
3
|
+
export interface COUNTDOWNLabels {
|
|
4
|
+
days?: string;
|
|
5
|
+
hours?: string;
|
|
6
|
+
minutes?: string;
|
|
7
|
+
seconds?: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type COUNTDOWNFormat } from './du-countdown.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
value?: number;
|
|
4
|
+
targetDate?: Date;
|
|
5
|
+
format?: COUNTDOWNFormat;
|
|
6
|
+
separator?: string;
|
|
7
|
+
customClass?: string;
|
|
8
|
+
autoStart?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
11
|
+
start: () => void;
|
|
12
|
+
stop: () => void;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
end: () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onEnd?: (() => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
customClass: string;
|
|
20
|
+
value: number;
|
|
21
|
+
targetDate: Date;
|
|
22
|
+
format: COUNTDOWNFormat;
|
|
23
|
+
separator: string;
|
|
24
|
+
autoStart: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
package/dist/components/DataDisplay/du-countdown/du-countdown.vue_vue_type_script_setup_true_lang.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { computed as e, createElementBlock as t, createElementVNode as n, defineComponent as r, normalizeClass as i, normalizeStyle as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, toDisplayString as u, watch as d } from "vue";
|
|
2
|
+
//#region components/DataDisplay/du-countdown/du-countdown.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var f = ["aria-label"], p = /*@__PURE__*/ r({
|
|
4
|
+
__name: "du-countdown",
|
|
5
|
+
props: {
|
|
6
|
+
value: { default: void 0 },
|
|
7
|
+
targetDate: { default: void 0 },
|
|
8
|
+
format: { default: "seconds" },
|
|
9
|
+
separator: { default: ":" },
|
|
10
|
+
customClass: { default: "" },
|
|
11
|
+
autoStart: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["end"],
|
|
17
|
+
setup(r, { expose: p, emit: m }) {
|
|
18
|
+
let h = r, g = l(h.value === void 0 ? 0 : h.value), _ = l(null), v = () => {
|
|
19
|
+
if (!h.targetDate) return 0;
|
|
20
|
+
let e = (/* @__PURE__ */ new Date()).getTime(), t = h.targetDate.getTime(), n = Math.max(0, t - e), r = {
|
|
21
|
+
days: () => Math.floor(n / (1e3 * 60 * 60 * 24)),
|
|
22
|
+
hours: () => Math.floor(n % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)),
|
|
23
|
+
minutes: () => Math.floor(n % (1e3 * 60 * 60) / (1e3 * 60)),
|
|
24
|
+
seconds: () => Math.floor(n % (1e3 * 60) / 1e3)
|
|
25
|
+
};
|
|
26
|
+
return (r[h.format] || r.seconds)();
|
|
27
|
+
}, y = () => {
|
|
28
|
+
if (!h.targetDate) return 0;
|
|
29
|
+
let e = (/* @__PURE__ */ new Date()).getTime(), t = h.targetDate.getTime();
|
|
30
|
+
return Math.max(0, t - e);
|
|
31
|
+
}, b = () => {
|
|
32
|
+
h.targetDate && (g.value = v());
|
|
33
|
+
}, x = e(() => g.value > 99 ? 3 : 2), S = e(() => Math.min(999, Math.max(0, g.value)).toString().padStart(x.value, "0")), C = e(() => `${g.value} ${h.format}`), w = m, T = () => {
|
|
34
|
+
_.value === null && (b(), _.value = window.setInterval(() => {
|
|
35
|
+
h.targetDate ? (b(), y() === 0 && (w("end"), E())) : g.value > 0 ? (g.value--, g.value === 0 && (w("end"), E())) : E();
|
|
36
|
+
}, 1e3));
|
|
37
|
+
}, E = () => {
|
|
38
|
+
_.value !== null && (clearInterval(_.value), _.value = null);
|
|
39
|
+
}, D = () => {
|
|
40
|
+
E(), h.value === void 0 ? h.targetDate ? b() : g.value = 0 : g.value = h.value;
|
|
41
|
+
};
|
|
42
|
+
p({
|
|
43
|
+
start: T,
|
|
44
|
+
stop: E,
|
|
45
|
+
reset: D
|
|
46
|
+
}), d(() => h.value, (e) => {
|
|
47
|
+
e !== void 0 && (g.value = e);
|
|
48
|
+
}), d(() => h.targetDate, () => {
|
|
49
|
+
D(), h.autoStart && T();
|
|
50
|
+
}), s(() => {
|
|
51
|
+
h.autoStart && T();
|
|
52
|
+
}), o(() => {
|
|
53
|
+
E();
|
|
54
|
+
});
|
|
55
|
+
let O = e(() => ({
|
|
56
|
+
"--value": Math.min(999, Math.max(0, g.value)),
|
|
57
|
+
"--digits": x.value
|
|
58
|
+
}));
|
|
59
|
+
return (e, o) => (c(), t("span", {
|
|
60
|
+
class: i(["countdown", r.customClass]),
|
|
61
|
+
"aria-live": "polite",
|
|
62
|
+
"aria-label": C.value
|
|
63
|
+
}, [n("span", { style: a(O.value) }, u(S.value), 5)], 10, f));
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { p as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type DIFFAspectRatio } from './du-diff.types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
item1?: string;
|
|
4
|
+
item2?: string;
|
|
5
|
+
aspectRatio?: DIFFAspectRatio | string | null;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
item1?: (props: typeof __VLS_1) => any;
|
|
10
|
+
} & {
|
|
11
|
+
item2?: (props: typeof __VLS_3) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
item1: string;
|
|
15
|
+
item2: string;
|
|
16
|
+
aspectRatio: DIFFAspectRatio | string | null;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|