@feugene/granularity 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +79 -0
- package/dist/assets/granularity-2oOxNk_f.css +2 -0
- package/dist/chunks/DsAlert-r_Ed-JrB.js +129 -0
- package/dist/chunks/DsAvatar-cyMI8jUi.js +32 -0
- package/dist/chunks/DsBadge-Dnd7_I-K.js +27 -0
- package/dist/chunks/DsBadgeWrap-UgP-TMdA.js +26 -0
- package/dist/chunks/DsBottomNav-Dze5cFVz.js +21 -0
- package/dist/chunks/DsButton-CA18Fha-.js +67 -0
- package/dist/chunks/DsButtonGroup-Ceat9ADe.js +16 -0
- package/dist/chunks/DsCard-GtapCsjq.js +10 -0
- package/dist/chunks/DsCheckbox-Afg94qUm.js +101 -0
- package/dist/chunks/DsCollapse-DWfip4gp.js +144 -0
- package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +87 -0
- package/dist/chunks/DsDataTable-DgBkEgDK.js +91 -0
- package/dist/chunks/DsDialog-BAGAa9DN.js +178 -0
- package/dist/chunks/DsDrawer-gmVF_0I0.js +112 -0
- package/dist/chunks/DsDropdown-BcFjxaMe.js +106 -0
- package/dist/chunks/DsDropdownMenu-CA7259h5.js +218 -0
- package/dist/chunks/DsEmptyState-BdLoQ0-z.js +46 -0
- package/dist/chunks/DsFileUpload-IwtpKocj.js +282 -0
- package/dist/chunks/DsFormField-XVZK7YVU.js +28 -0
- package/dist/chunks/DsFormFile-C5ldcCAs.js +219 -0
- package/dist/chunks/DsFormSection-DmIDIQg7.js +18 -0
- package/dist/chunks/DsIcon-Q-KQGAQU.js +25 -0
- package/dist/chunks/DsImageViewer-C9NZ42St.js +313 -0
- package/dist/chunks/DsInput-DeoAkT6R.js +159 -0
- package/dist/chunks/DsInputTag-DWip_-Cr.js +201 -0
- package/dist/chunks/DsLink-CWpVQ0ij.js +56 -0
- package/dist/chunks/DsList-XI8AAk9b.js +31 -0
- package/dist/chunks/DsLoading-ogfmbPE4.js +53 -0
- package/dist/chunks/DsModal-Bl9r6v33.js +75 -0
- package/dist/chunks/DsNavbar-DJ4bv_MR.js +54 -0
- package/dist/chunks/DsNumberInput-D-m5QoQJ.js +301 -0
- package/dist/chunks/DsPagination-B28ms0hc.js +81 -0
- package/dist/chunks/DsProgressBar-Bkuqudkg.js +27 -0
- package/dist/chunks/DsPromptDialog-DdSca52S.js +133 -0
- package/dist/chunks/DsRadio-x2vmEUCv.js +141 -0
- package/dist/chunks/DsRadioGroup-CzlzJF2E.js +63 -0
- package/dist/chunks/DsSegmented-BwQ8VnOZ.js +250 -0
- package/dist/chunks/DsSelect-DEHGeICn.js +304 -0
- package/dist/chunks/DsSidebar-BNLaBCYD.js +18 -0
- package/dist/chunks/DsSkeleton-BcXabaQ7.js +25 -0
- package/dist/chunks/DsSwitch-DBdjltGz.js +60 -0
- package/dist/chunks/DsTable-apqrsbxV.js +10 -0
- package/dist/chunks/DsTabs-B1kkklFS.js +47 -0
- package/dist/chunks/DsTextarea-DVSsoqi3.js +56 -0
- package/dist/chunks/DsToaster-B9u2x_Ii.js +48 -0
- package/dist/chunks/DsTooltip-BqNVJw2f.js +27 -0
- package/dist/chunks/DsTree-Bz37FcIb.js +602 -0
- package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +319 -0
- package/dist/chunks/_plugin-vue_export-helper-DOgycIVc.js +8 -0
- package/dist/chunks/adapter-BKKNB3Ii.js +4 -0
- package/dist/chunks/arrow-up-B4OlmAKz.js +23 -0
- package/dist/chunks/classTokens-CT1tqF2j.js +6 -0
- package/dist/chunks/componentConfig-CQndJxd1.js +14 -0
- package/dist/chunks/config-4vrmi-D0.js +9 -0
- package/dist/chunks/config-ANT_Zf3l.js +18 -0
- package/dist/chunks/config-B-tMv4PT.js +66 -0
- package/dist/chunks/config-B75oSW74.js +18 -0
- package/dist/chunks/config-B7HAOCA1.js +33 -0
- package/dist/chunks/config-B7yrZO9u.js +18 -0
- package/dist/chunks/config-B98-jCfY.js +9 -0
- package/dist/chunks/config-BDJ2JaFs.js +9 -0
- package/dist/chunks/config-BEzNFZ_R.js +10 -0
- package/dist/chunks/config-BKpHj94n.js +13 -0
- package/dist/chunks/config-BLYxW-WQ.js +9 -0
- package/dist/chunks/config-BS0vLD_L.js +41 -0
- package/dist/chunks/config-BXlW2GSa.js +33 -0
- package/dist/chunks/config-BY6edpDp.js +9 -0
- package/dist/chunks/config-BZDKypuQ.js +8 -0
- package/dist/chunks/config-BeJEy8yN.js +9 -0
- package/dist/chunks/config-BnryTLnh.js +47 -0
- package/dist/chunks/config-BqaCteFh2.js +9 -0
- package/dist/chunks/config-BrwOndwO.js +9 -0
- package/dist/chunks/config-BusLdkqX.js +8 -0
- package/dist/chunks/config-CBo4aVMV.js +8 -0
- package/dist/chunks/config-CLyDbB2M.js +14 -0
- package/dist/chunks/config-CML-WrGM.js +10 -0
- package/dist/chunks/config-CMuBf0u72.js +33 -0
- package/dist/chunks/config-CTGjkM7q.js +140 -0
- package/dist/chunks/config-CVEwIRRR.js +30 -0
- package/dist/chunks/config-Ch0TH9wN.js +42 -0
- package/dist/chunks/config-ClPYX-LP.js +24 -0
- package/dist/chunks/config-DA3cYUSo.js +8 -0
- package/dist/chunks/config-DAiP4yeJ.js +8 -0
- package/dist/chunks/config-DG_de8vE.js +15 -0
- package/dist/chunks/config-DIgvSIEs.js +9 -0
- package/dist/chunks/config-DJ7xDo-q.js +16 -0
- package/dist/chunks/config-DSFnRpu82.js +19 -0
- package/dist/chunks/config-DVHe_id-.js +22 -0
- package/dist/chunks/config-DoT3gzx7.js +9 -0
- package/dist/chunks/config-DuaBaVyF.js +34 -0
- package/dist/chunks/config-F4Bb6hVJ.js +30 -0
- package/dist/chunks/config-G7h6ftb62.js +39 -0
- package/dist/chunks/config-aUoIf7kK.js +28 -0
- package/dist/chunks/config-cKk87ycz2.js +14 -0
- package/dist/chunks/config-kfb3OyGZ.js +24 -0
- package/dist/chunks/config-oDjY8ZrP2.js +8 -0
- package/dist/chunks/config-panSV6Wo.js +9 -0
- package/dist/chunks/config-qlwX-rLq.js +42 -0
- package/dist/chunks/config-tQBoBLph.js +26 -0
- package/dist/chunks/dsBadgeStyles-yLd1GFUa.js +52 -0
- package/dist/chunks/dsButtonStyles-C1c_j958.js +207 -0
- package/dist/chunks/dsDialogStyles-C7QOvzmt.js +11 -0
- package/dist/chunks/dsDropdownStyles-DXGN-A-d.js +37 -0
- package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +9 -0
- package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +16 -0
- package/dist/chunks/dsModalStyles-C7E5kJ1o.js +54 -0
- package/dist/chunks/dsSelectStyles-Bym0uW4f.js +82 -0
- package/dist/chunks/en-CKkdzd7q.js +39 -0
- package/dist/chunks/es-CPXSlGMa.js +39 -0
- package/dist/chunks/fileValidation-gR8aUBMZ.js +193 -0
- package/dist/chunks/granularityI18n-DBuOHekC.js +24 -0
- package/dist/chunks/info-CmLOtVnO.js +26 -0
- package/dist/chunks/loader-circle-DtXjkqR7.js +23 -0
- package/dist/chunks/preset-DBXBjf5u.js +2235 -0
- package/dist/chunks/ru-D7AyvUyA.js +39 -0
- package/dist/chunks/transition-CT9vsWnT.js +1617 -0
- package/dist/chunks/x-circle-BZnfL2nz.js +61 -0
- package/dist/chunks/x-dGjszOU2.js +23 -0
- package/dist/components/DsAlert/index.js +3 -0
- package/dist/components/DsAlert/styles.css +386 -0
- package/dist/components/DsAvatar/index.js +3 -0
- package/dist/components/DsAvatar/styles.css +373 -0
- package/dist/components/DsBadge/index.js +4 -0
- package/dist/components/DsBadge/styles.css +422 -0
- package/dist/components/DsBadgeWrap/index.js +3 -0
- package/dist/components/DsBadgeWrap/styles.css +378 -0
- package/dist/components/DsBottomNav/index.js +3 -0
- package/dist/components/DsBottomNav/styles.css +388 -0
- package/dist/components/DsButton/index.js +4 -0
- package/dist/components/DsButton/styles.css +633 -0
- package/dist/components/DsButton/tokens.css +96 -0
- package/dist/components/DsButtonGroup/index.js +3 -0
- package/dist/components/DsButtonGroup/styles.css +23 -0
- package/dist/components/DsCard/index.js +3 -0
- package/dist/components/DsCard/styles.css +365 -0
- package/dist/components/DsCheckbox/index.js +3 -0
- package/dist/components/DsCheckbox/styles.css +394 -0
- package/dist/components/DsCollapse/index.js +3 -0
- package/dist/components/DsCollapse/styles.css +399 -0
- package/dist/components/DsConfirmDialog/index.js +3 -0
- package/dist/components/DsConfirmDialog/styles.css +595 -0
- package/dist/components/DsDataTable/index.js +3 -0
- package/dist/components/DsDataTable/styles.css +387 -0
- package/dist/components/DsDialog/index.js +3 -0
- package/dist/components/DsDialog/styles.css +592 -0
- package/dist/components/DsDrawer/index.js +3 -0
- package/dist/components/DsDrawer/styles.css +579 -0
- package/dist/components/DsDropdown/index.js +4 -0
- package/dist/components/DsDropdown/styles.css +392 -0
- package/dist/components/DsDropdownMenu/index.js +3 -0
- package/dist/components/DsDropdownMenu/styles.css +430 -0
- package/dist/components/DsEmptyState/index.js +3 -0
- package/dist/components/DsEmptyState/styles.css +380 -0
- package/dist/components/DsFileUpload/index.js +4 -0
- package/dist/components/DsFileUpload/styles.css +403 -0
- package/dist/components/DsFormField/index.js +3 -0
- package/dist/components/DsFormField/styles.css +365 -0
- package/dist/components/DsFormFile/index.js +3 -0
- package/dist/components/DsFormFile/styles.css +555 -0
- package/dist/components/DsFormSection/index.js +3 -0
- package/dist/components/DsFormSection/styles.css +365 -0
- package/dist/components/DsIcon/index.js +3 -0
- package/dist/components/DsIcon/styles.css +20 -0
- package/dist/components/DsIcon/tokens.css +3 -0
- package/dist/components/DsImageViewer/index.js +3 -0
- package/dist/components/DsImageViewer/styles.css +465 -0
- package/dist/components/DsInput/index.js +3 -0
- package/dist/components/DsInput/styles.css +416 -0
- package/dist/components/DsInputTag/index.js +3 -0
- package/dist/components/DsInputTag/styles.css +498 -0
- package/dist/components/DsLink/index.js +3 -0
- package/dist/components/DsLink/styles.css +390 -0
- package/dist/components/DsList/index.js +3 -0
- package/dist/components/DsList/styles.css +376 -0
- package/dist/components/DsLoading/index.js +4 -0
- package/dist/components/DsLoading/styles.css +381 -0
- package/dist/components/DsModal/index.js +4 -0
- package/dist/components/DsModal/styles.css +404 -0
- package/dist/components/DsNavbar/index.js +3 -0
- package/dist/components/DsNavbar/styles.css +549 -0
- package/dist/components/DsNumberInput/index.js +3 -0
- package/dist/components/DsNumberInput/styles.css +428 -0
- package/dist/components/DsPagination/index.js +3 -0
- package/dist/components/DsPagination/styles.css +637 -0
- package/dist/components/DsProgressBar/index.js +3 -0
- package/dist/components/DsProgressBar/styles.css +398 -0
- package/dist/components/DsProgressBar/tokens.css +23 -0
- package/dist/components/DsPromptDialog/index.js +3 -0
- package/dist/components/DsPromptDialog/styles.css +622 -0
- package/dist/components/DsRadio/index.js +3 -0
- package/dist/components/DsRadio/styles.css +558 -0
- package/dist/components/DsRadioGroup/index.js +3 -0
- package/dist/components/DsRadioGroup/styles.css +560 -0
- package/dist/components/DsSegmented/index.js +3 -0
- package/dist/components/DsSegmented/styles.css +422 -0
- package/dist/components/DsSegmented/tokens.css +9 -0
- package/dist/components/DsSelect/index.js +4 -0
- package/dist/components/DsSelect/styles.css +483 -0
- package/dist/components/DsSidebar/index.js +3 -0
- package/dist/components/DsSidebar/styles.css +370 -0
- package/dist/components/DsSkeleton/index.js +3 -0
- package/dist/components/DsSkeleton/styles.css +363 -0
- package/dist/components/DsSwitch/index.js +3 -0
- package/dist/components/DsSwitch/styles.css +393 -0
- package/dist/components/DsTable/index.js +3 -0
- package/dist/components/DsTable/styles.css +369 -0
- package/dist/components/DsTabs/index.js +3 -0
- package/dist/components/DsTabs/styles.css +390 -0
- package/dist/components/DsTextarea/index.js +3 -0
- package/dist/components/DsTextarea/styles.css +382 -0
- package/dist/components/DsToaster/index.js +3 -0
- package/dist/components/DsToaster/styles.css +558 -0
- package/dist/components/DsTooltip/index.js +3 -0
- package/dist/components/DsTooltip/styles.css +388 -0
- package/dist/components/DsTree/index.js +3 -0
- package/dist/components/DsTree/styles.css +375 -0
- package/dist/components/DsTreeSelect/index.js +3 -0
- package/dist/components/DsTreeSelect/styles.css +466 -0
- package/dist/composables/useTheme.js +44 -0
- package/dist/composables/useToast.js +37 -0
- package/dist/directives/autofocus.js +46 -0
- package/dist/directives/autosize.js +62 -0
- package/dist/directives/clickOutside.js +82 -0
- package/dist/directives/dropzone.js +110 -0
- package/dist/directives/globalDirectives.js +0 -0
- package/dist/directives/hotkey.js +104 -0
- package/dist/directives/loading.js +125 -0
- package/dist/directives.js +7 -0
- package/dist/fileValidation.js +2 -0
- package/dist/foundation.css +358 -0
- package/dist/i18n.js +9 -0
- package/dist/index.js +124 -0
- package/dist/package.json +293 -0
- package/dist/styles/base.css +33 -0
- package/dist/styles/themes/dark.css +102 -0
- package/dist/styles/themes/light.css +98 -0
- package/dist/styles/tokens.css +118 -0
- package/dist/styles.css +1134 -0
- package/dist/types/src/components/DsAlert/DsAlert.vue.d.ts +70 -0
- package/dist/types/src/components/DsAlert/config.d.ts +1 -0
- package/dist/types/src/components/DsAlert/index.d.ts +5 -0
- package/dist/types/src/components/DsAlert/safelist.d.ts +1 -0
- package/dist/types/src/components/DsAvatar/DsAvatar.vue.d.ts +53 -0
- package/dist/types/src/components/DsAvatar/config.d.ts +1 -0
- package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +6 -0
- package/dist/types/src/components/DsAvatar/index.d.ts +5 -0
- package/dist/types/src/components/DsAvatar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBadge/DsBadge.vue.d.ts +54 -0
- package/dist/types/src/components/DsBadge/config.d.ts +1 -0
- package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +10 -0
- package/dist/types/src/components/DsBadge/index.d.ts +5 -0
- package/dist/types/src/components/DsBadge/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBadgeWrap/DsBadgeWrap.vue.d.ts +44 -0
- package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -0
- package/dist/types/src/components/DsBadgeWrap/index.d.ts +4 -0
- package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +1 -0
- package/dist/types/src/components/DsBottomNav/DsBottomNav.vue.d.ts +23 -0
- package/dist/types/src/components/DsBottomNav/config.d.ts +1 -0
- package/dist/types/src/components/DsBottomNav/index.d.ts +5 -0
- package/dist/types/src/components/DsBottomNav/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButton/DsButton.vue.d.ts +70 -0
- package/dist/types/src/components/DsButton/config.d.ts +1 -0
- package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -0
- package/dist/types/src/components/DsButton/index.d.ts +5 -0
- package/dist/types/src/components/DsButton/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButton/styles.css.d.ts +4 -0
- package/dist/types/src/components/DsButtonGroup/DsButtonGroup.vue.d.ts +40 -0
- package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -0
- package/dist/types/src/components/DsButtonGroup/index.d.ts +4 -0
- package/dist/types/src/components/DsButtonGroup/safelist.d.ts +1 -0
- package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +3 -0
- package/dist/types/src/components/DsCard/DsCard.vue.d.ts +13 -0
- package/dist/types/src/components/DsCard/config.d.ts +1 -0
- package/dist/types/src/components/DsCard/index.d.ts +4 -0
- package/dist/types/src/components/DsCard/safelist.d.ts +1 -0
- package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +64 -0
- package/dist/types/src/components/DsCheckbox/config.d.ts +1 -0
- package/dist/types/src/components/DsCheckbox/index.d.ts +4 -0
- package/dist/types/src/components/DsCheckbox/safelist.d.ts +1 -0
- package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +59 -0
- package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +51 -0
- package/dist/types/src/components/DsCollapse/config.d.ts +1 -0
- package/dist/types/src/components/DsCollapse/dsCollapseContext.d.ts +10 -0
- package/dist/types/src/components/DsCollapse/index.d.ts +7 -0
- package/dist/types/src/components/DsCollapse/safelist.d.ts +1 -0
- package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +93 -0
- package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsConfirmDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +58 -0
- package/dist/types/src/components/DsDataTable/config.d.ts +1 -0
- package/dist/types/src/components/DsDataTable/index.d.ts +5 -0
- package/dist/types/src/components/DsDataTable/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +76 -0
- package/dist/types/src/components/DsDialog/DsDialogCloseButton.vue.d.ts +7 -0
- package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +41 -0
- package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +54 -0
- package/dist/types/src/components/DsDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsDialog/dialogShared.d.ts +10 -0
- package/dist/types/src/components/DsDialog/dsDialogStyles.d.ts +1 -0
- package/dist/types/src/components/DsDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +61 -0
- package/dist/types/src/components/DsDrawer/config.d.ts +1 -0
- package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +21 -0
- package/dist/types/src/components/DsDrawer/index.d.ts +4 -0
- package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +67 -0
- package/dist/types/src/components/DsDropdown/config.d.ts +1 -0
- package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +6 -0
- package/dist/types/src/components/DsDropdown/index.d.ts +4 -0
- package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +78 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +40 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +40 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +30 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +53 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +49 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +55 -0
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +48 -0
- package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -0
- package/dist/types/src/components/DsDropdownMenu/index.d.ts +14 -0
- package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +1 -0
- package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +41 -0
- package/dist/types/src/components/DsEmptyState/config.d.ts +1 -0
- package/dist/types/src/components/DsEmptyState/index.d.ts +4 -0
- package/dist/types/src/components/DsEmptyState/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +136 -0
- package/dist/types/src/components/DsFileUpload/FileValidationError.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/acceptValidator.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/config.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/index.d.ts +5 -0
- package/dist/types/src/components/DsFileUpload/matchAccept.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/maxSizeMbValidator.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/runFileValidators.d.ts +2 -0
- package/dist/types/src/components/DsFileUpload/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFileUpload/types.d.ts +1 -0
- package/dist/types/src/components/DsFormField/DsFormField.vue.d.ts +53 -0
- package/dist/types/src/components/DsFormField/config.d.ts +1 -0
- package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +1 -0
- package/dist/types/src/components/DsFormField/index.d.ts +3 -0
- package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +102 -0
- package/dist/types/src/components/DsFormFile/config.d.ts +1 -0
- package/dist/types/src/components/DsFormFile/index.d.ts +5 -0
- package/dist/types/src/components/DsFormFile/safelist.d.ts +1 -0
- package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +41 -0
- package/dist/types/src/components/DsFormSection/config.d.ts +1 -0
- package/dist/types/src/components/DsFormSection/index.d.ts +4 -0
- package/dist/types/src/components/DsFormSection/safelist.d.ts +1 -0
- package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +26 -0
- package/dist/types/src/components/DsIcon/config.d.ts +1 -0
- package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +2 -0
- package/dist/types/src/components/DsIcon/index.d.ts +5 -0
- package/dist/types/src/components/DsIcon/styles.css.d.ts +5 -0
- package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +121 -0
- package/dist/types/src/components/DsImageViewer/config.d.ts +1 -0
- package/dist/types/src/components/DsImageViewer/index.d.ts +4 -0
- package/dist/types/src/components/DsImageViewer/safelist.d.ts +1 -0
- package/dist/types/src/components/DsInput/DsInput.vue.d.ts +109 -0
- package/dist/types/src/components/DsInput/config.d.ts +1 -0
- package/dist/types/src/components/DsInput/dsInputStyles.d.ts +1 -0
- package/dist/types/src/components/DsInput/index.d.ts +5 -0
- package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +123 -0
- package/dist/types/src/components/DsInputTag/config.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +11 -0
- package/dist/types/src/components/DsInputTag/index.d.ts +5 -0
- package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -0
- package/dist/types/src/components/DsLink/DsLink.vue.d.ts +76 -0
- package/dist/types/src/components/DsLink/config.d.ts +1 -0
- package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +10 -0
- package/dist/types/src/components/DsLink/index.d.ts +5 -0
- package/dist/types/src/components/DsLink/safelist.d.ts +1 -0
- package/dist/types/src/components/DsList/DsList.vue.d.ts +40 -0
- package/dist/types/src/components/DsList/DsListItem.vue.d.ts +25 -0
- package/dist/types/src/components/DsList/config.d.ts +1 -0
- package/dist/types/src/components/DsList/index.d.ts +5 -0
- package/dist/types/src/components/DsList/safelist.d.ts +1 -0
- package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +59 -0
- package/dist/types/src/components/DsLoading/config.d.ts +1 -0
- package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -0
- package/dist/types/src/components/DsLoading/index.d.ts +4 -0
- package/dist/types/src/components/DsLoading/safelist.d.ts +1 -0
- package/dist/types/src/components/DsModal/DsModal.vue.d.ts +51 -0
- package/dist/types/src/components/DsModal/config.d.ts +1 -0
- package/dist/types/src/components/DsModal/dsModalStyles.d.ts +17 -0
- package/dist/types/src/components/DsModal/index.d.ts +5 -0
- package/dist/types/src/components/DsModal/safelist.d.ts +1 -0
- package/dist/types/src/components/DsModal/styles.css.d.ts +3 -0
- package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +52 -0
- package/dist/types/src/components/DsNavbar/config.d.ts +1 -0
- package/dist/types/src/components/DsNavbar/index.d.ts +4 -0
- package/dist/types/src/components/DsNavbar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +135 -0
- package/dist/types/src/components/DsNumberInput/config.d.ts +1 -0
- package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +15 -0
- package/dist/types/src/components/DsNumberInput/index.d.ts +5 -0
- package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +39 -0
- package/dist/types/src/components/DsPagination/config.d.ts +1 -0
- package/dist/types/src/components/DsPagination/index.d.ts +4 -0
- package/dist/types/src/components/DsPagination/safelist.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +36 -0
- package/dist/types/src/components/DsProgressBar/config.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +6 -0
- package/dist/types/src/components/DsProgressBar/index.d.ts +4 -0
- package/dist/types/src/components/DsProgressBar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +108 -0
- package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/index.d.ts +4 -0
- package/dist/types/src/components/DsPromptDialog/safelist.d.ts +1 -0
- package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +1 -0
- package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +94 -0
- package/dist/types/src/components/DsRadio/config.d.ts +1 -0
- package/dist/types/src/components/DsRadio/dsRadioGroupContext.d.ts +10 -0
- package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +16 -0
- package/dist/types/src/components/DsRadio/index.d.ts +7 -0
- package/dist/types/src/components/DsRadio/safelist.d.ts +1 -0
- package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +69 -0
- package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -0
- package/dist/types/src/components/DsRadioGroup/index.d.ts +5 -0
- package/dist/types/src/components/DsRadioGroup/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +77 -0
- package/dist/types/src/components/DsSegmented/config.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +45 -0
- package/dist/types/src/components/DsSegmented/index.d.ts +5 -0
- package/dist/types/src/components/DsSegmented/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +132 -0
- package/dist/types/src/components/DsSelect/config.d.ts +1 -0
- package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +35 -0
- package/dist/types/src/components/DsSelect/index.d.ts +5 -0
- package/dist/types/src/components/DsSelect/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSelect/styles.css.d.ts +1 -0
- package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +41 -0
- package/dist/types/src/components/DsSidebar/config.d.ts +1 -0
- package/dist/types/src/components/DsSidebar/index.d.ts +4 -0
- package/dist/types/src/components/DsSidebar/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +38 -0
- package/dist/types/src/components/DsSkeleton/config.d.ts +1 -0
- package/dist/types/src/components/DsSkeleton/index.d.ts +4 -0
- package/dist/types/src/components/DsSkeleton/safelist.d.ts +1 -0
- package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +63 -0
- package/dist/types/src/components/DsSwitch/config.d.ts +1 -0
- package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +19 -0
- package/dist/types/src/components/DsSwitch/index.d.ts +5 -0
- package/dist/types/src/components/DsSwitch/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTable/DsTable.vue.d.ts +15 -0
- package/dist/types/src/components/DsTable/config.d.ts +1 -0
- package/dist/types/src/components/DsTable/index.d.ts +4 -0
- package/dist/types/src/components/DsTable/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +24 -0
- package/dist/types/src/components/DsTabs/config.d.ts +1 -0
- package/dist/types/src/components/DsTabs/index.d.ts +5 -0
- package/dist/types/src/components/DsTabs/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +65 -0
- package/dist/types/src/components/DsTextarea/config.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +6 -0
- package/dist/types/src/components/DsTextarea/index.d.ts +5 -0
- package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -0
- package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +3 -0
- package/dist/types/src/components/DsToaster/config.d.ts +1 -0
- package/dist/types/src/components/DsToaster/index.d.ts +4 -0
- package/dist/types/src/components/DsToaster/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +41 -0
- package/dist/types/src/components/DsTooltip/config.d.ts +1 -0
- package/dist/types/src/components/DsTooltip/index.d.ts +4 -0
- package/dist/types/src/components/DsTooltip/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTree/DsTree.vue.d.ts +35 -0
- package/dist/types/src/components/DsTree/config.d.ts +1 -0
- package/dist/types/src/components/DsTree/dsTreeDataAdapter.d.ts +14 -0
- package/dist/types/src/components/DsTree/dsTreeInteractionContext.d.ts +31 -0
- package/dist/types/src/components/DsTree/dsTreeProps.d.ts +57 -0
- package/dist/types/src/components/DsTree/dsTreeStore.d.ts +45 -0
- package/dist/types/src/components/DsTree/dsTreeTypes.d.ts +24 -0
- package/dist/types/src/components/DsTree/index.d.ts +6 -0
- package/dist/types/src/components/DsTree/safelist.d.ts +1 -0
- package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +72 -0
- package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -0
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +9 -0
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +3 -0
- package/dist/types/src/components/DsTreeSelect/index.d.ts +5 -0
- package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -0
- package/dist/types/src/components/shared/classTokens.d.ts +1 -0
- package/dist/types/src/composables/useTheme.d.ts +24 -0
- package/dist/types/src/composables/useToast.d.ts +19 -0
- package/dist/types/src/directives/autofocus.d.ts +11 -0
- package/dist/types/src/directives/autosize.d.ts +13 -0
- package/dist/types/src/directives/clickOutside.d.ts +18 -0
- package/dist/types/src/directives/dropzone.d.ts +30 -0
- package/dist/types/src/directives/globalDirectives.d.ts +18 -0
- package/dist/types/src/directives/hotkey.d.ts +25 -0
- package/dist/types/src/directives/index.d.ts +13 -0
- package/dist/types/src/directives/loading.d.ts +38 -0
- package/dist/types/src/fileValidation/FileValidationError.d.ts +7 -0
- package/dist/types/src/fileValidation/acceptValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/allowedExtensionsValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/allowedMimeTypesValidator.d.ts +9 -0
- package/dist/types/src/fileValidation/index.d.ts +11 -0
- package/dist/types/src/fileValidation/matchAccept.d.ts +1 -0
- package/dist/types/src/fileValidation/maxFileSizeBytesValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/maxSizeMbValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/maxTotalSizeBytesValidator.d.ts +2 -0
- package/dist/types/src/fileValidation/runFileValidators.d.ts +7 -0
- package/dist/types/src/fileValidation/types.d.ts +27 -0
- package/dist/types/src/i18n/adapter.d.ts +8 -0
- package/dist/types/src/i18n/index.d.ts +2 -0
- package/dist/types/src/i18n/messages.d.ts +268 -0
- package/dist/types/src/index.d.ts +59 -0
- package/dist/types/src/internal/granularityI18n.d.ts +8 -0
- package/dist/types/src/registry/componentConfig.d.ts +17 -0
- package/dist/types/src/registry/componentCss.d.ts +3 -0
- package/dist/types/src/registry/componentCss.node.d.ts +5 -0
- package/dist/types/src/registry/components.d.ts +56 -0
- package/dist/types/src/registry/safelist.d.ts +11 -0
- package/dist/types/src/theming/themeRegistry.d.ts +19 -0
- package/dist/types/src/theming/themeRegistry.node.d.ts +14 -0
- package/dist/types/src/unocss/preset.d.ts +18 -0
- package/dist/types/src/unocss/preset.node.d.ts +15 -0
- package/dist/types/src/unocss/rules/animation.d.ts +3 -0
- package/dist/types/src/unocss/rules/colorOpacity.d.ts +2 -0
- package/dist/types/src/unocss/rules/filters.d.ts +8 -0
- package/dist/types/src/unocss/rules/spacing.d.ts +8 -0
- package/dist/uno-node.js +103 -0
- package/dist/uno.js +2 -0
- package/package.json +367 -0
- package/web-types.json +100 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { vClickOutside as e } from "../directives/clickOutside.js";
|
|
2
|
+
import { t } from "./DsInput-DeoAkT6R.js";
|
|
3
|
+
import { i as n, n as r, t as i } from "./dsSelectStyles-Bym0uW4f.js";
|
|
4
|
+
import { Fragment as a, Teleport as ee, Transition as te, computed as o, createBlock as ne, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onUnmounted as h, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as re, vShow as ie, watch as ae, withCtx as oe, withDirectives as x, withKeys as se, withModifiers as S } from "vue";
|
|
5
|
+
//#region src/components/DsSelect/DsSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var ce = [
|
|
7
|
+
"value",
|
|
8
|
+
"multiple",
|
|
9
|
+
"disabled",
|
|
10
|
+
"aria-label"
|
|
11
|
+
], C = {
|
|
12
|
+
key: 0,
|
|
13
|
+
value: ""
|
|
14
|
+
}, w = ["value"], T = ["value"], le = {
|
|
15
|
+
key: 0,
|
|
16
|
+
"data-testid": "ds-select-chevron",
|
|
17
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 text-[var(--muted-fg)] pointer-events-none"
|
|
18
|
+
}, ue = [
|
|
19
|
+
"disabled",
|
|
20
|
+
"aria-label",
|
|
21
|
+
"aria-expanded"
|
|
22
|
+
], de = { class: "min-w-0 flex-1" }, fe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "shrink-0 h-4 w-4",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
}, pe = {
|
|
27
|
+
key: 1,
|
|
28
|
+
"data-testid": "ds-select-chevron",
|
|
29
|
+
class: "shrink-0 text-[var(--muted-fg)] pointer-events-none"
|
|
30
|
+
}, me = ["disabled"], he = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "p-2 border-b border-[var(--brd)]"
|
|
33
|
+
}, ge = ["aria-multiselectable"], _e = ["aria-selected", "onClick"], ve = { class: "flex items-center gap-2 min-w-0" }, ye = { class: "truncate" }, E = /* @__PURE__ */ d({
|
|
34
|
+
__name: "DsSelect",
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: {},
|
|
37
|
+
options: { default: void 0 },
|
|
38
|
+
disabled: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
ariaLabel: { default: void 0 },
|
|
43
|
+
view: { default: "default" },
|
|
44
|
+
size: { default: "md" },
|
|
45
|
+
placeholder: { default: void 0 },
|
|
46
|
+
multiple: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
optionsView: { default: "native" },
|
|
51
|
+
allowCustomValue: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
customValuePlaceholder: { default: "Add value…" },
|
|
56
|
+
dropdownMaxHeight: { default: 280 },
|
|
57
|
+
closeOnSelect: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !0
|
|
60
|
+
},
|
|
61
|
+
clearable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !1
|
|
64
|
+
},
|
|
65
|
+
variant: { default: "primary" },
|
|
66
|
+
underline: { default: "auto" }
|
|
67
|
+
},
|
|
68
|
+
emits: ["update:modelValue"],
|
|
69
|
+
setup(d, { emit: E }) {
|
|
70
|
+
let D = d, O = E, k = o(() => D.options ?? []);
|
|
71
|
+
function A(e) {
|
|
72
|
+
return Array.isArray(e) ? e : e ? [e] : [];
|
|
73
|
+
}
|
|
74
|
+
let j = o(() => Array.isArray(D.modelValue) ? D.modelValue[0] ?? "" : D.modelValue), M = o(() => A(D.modelValue)), N = o(() => D.multiple ? M.value : j.value ? [j.value] : []), P = o(() => N.value.length > 0), F = o(() => {
|
|
75
|
+
let e = new Map(k.value.map((e) => [e.value, e]));
|
|
76
|
+
return N.value.map((t) => e.get(t) ?? {
|
|
77
|
+
value: t,
|
|
78
|
+
label: t
|
|
79
|
+
});
|
|
80
|
+
}), I = o(() => D.multiple ? !1 : k.value.some((e) => e.value === j.value)), L = o(() => D.multiple ? N.value.length ? N.value.map((e) => k.value.find((t) => t.value === e)?.label ?? e).join(", ") : "" : k.value.find((e) => e.value === j.value)?.label ?? j.value), be = o(() => P.value ? L.value : D.placeholder ?? ""), xe = o(() => !D.allowCustomValue || D.optionsView !== "native" || D.multiple || !D.options || j.value === "" ? !1 : !I.value), R = _(""), z = _(!1), B = _(null), V = _(null), H = _(null), Se = [() => V.value], U = _({
|
|
81
|
+
left: "0px",
|
|
82
|
+
top: "0px",
|
|
83
|
+
width: "0px",
|
|
84
|
+
zIndex: "2147483647"
|
|
85
|
+
});
|
|
86
|
+
function W() {
|
|
87
|
+
if (typeof window > "u") return;
|
|
88
|
+
let e = B.value;
|
|
89
|
+
if (!e) return;
|
|
90
|
+
let t = e.getBoundingClientRect();
|
|
91
|
+
U.value = {
|
|
92
|
+
left: `${t.left}px`,
|
|
93
|
+
top: `${t.bottom + 8}px`,
|
|
94
|
+
width: `${t.width}px`,
|
|
95
|
+
zIndex: "2147483647"
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function Ce() {
|
|
99
|
+
typeof window > "u" || (window.addEventListener("resize", W), window.addEventListener("scroll", W, !0));
|
|
100
|
+
}
|
|
101
|
+
function G() {
|
|
102
|
+
typeof window > "u" || (window.removeEventListener("resize", W), window.removeEventListener("scroll", W, !0));
|
|
103
|
+
}
|
|
104
|
+
function K() {
|
|
105
|
+
z.value = !1;
|
|
106
|
+
}
|
|
107
|
+
function we() {
|
|
108
|
+
D.disabled || (z.value = !z.value);
|
|
109
|
+
}
|
|
110
|
+
function q(e) {
|
|
111
|
+
e.key === "Escape" && K();
|
|
112
|
+
}
|
|
113
|
+
ae(z, async (e) => {
|
|
114
|
+
if (!(typeof document > "u")) {
|
|
115
|
+
if (document.removeEventListener("keydown", q), G(), e && document.addEventListener("keydown", q), !e) {
|
|
116
|
+
R.value = "";
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
Ce(), await f(), W(), D.allowCustomValue && H.value?.focus();
|
|
120
|
+
}
|
|
121
|
+
}, { immediate: !0 }), h(() => {
|
|
122
|
+
typeof document > "u" || (document.removeEventListener("keydown", q), G());
|
|
123
|
+
});
|
|
124
|
+
let Te = o(() => r), Ee = o(() => {
|
|
125
|
+
let e = k.value, t = !D.allowCustomValue || D.multiple || j.value === "" || I.value ? e : [{
|
|
126
|
+
value: j.value,
|
|
127
|
+
label: j.value
|
|
128
|
+
}, ...e];
|
|
129
|
+
if (!D.allowCustomValue) return t;
|
|
130
|
+
let n = R.value.trim().toLowerCase();
|
|
131
|
+
return n ? t.filter((e) => e.label.toLowerCase().includes(n) || e.value.toLowerCase().includes(n)) : t;
|
|
132
|
+
}), De = o(() => {
|
|
133
|
+
if (!D.allowCustomValue || D.optionsView !== "panel") return !1;
|
|
134
|
+
let e = R.value.trim();
|
|
135
|
+
return e ? D.multiple ? N.value.includes(e) ? !1 : !k.value.some((t) => t.value === e) : e === j.value ? !1 : !k.value.some((t) => t.value === e) : !1;
|
|
136
|
+
});
|
|
137
|
+
function J(e) {
|
|
138
|
+
O("update:modelValue", e);
|
|
139
|
+
}
|
|
140
|
+
function Y(e) {
|
|
141
|
+
return N.value.includes(e);
|
|
142
|
+
}
|
|
143
|
+
function Oe(e) {
|
|
144
|
+
J(e), D.closeOnSelect && K();
|
|
145
|
+
}
|
|
146
|
+
function X(e) {
|
|
147
|
+
if (!D.multiple) {
|
|
148
|
+
Oe(e);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
let t = N.value.slice(), n = t.indexOf(e);
|
|
152
|
+
n >= 0 ? t.splice(n, 1) : t.push(e), J(t), D.closeOnSelect && K();
|
|
153
|
+
}
|
|
154
|
+
function Z() {
|
|
155
|
+
let e = R.value.trim();
|
|
156
|
+
e && X(e);
|
|
157
|
+
}
|
|
158
|
+
let Q = o(() => D.optionsView === "native" && D.view !== "link" && !D.multiple), ke = o(() => !D.clearable || D.optionsView !== "native" || D.multiple ? !1 : D.options ? !D.options.some((e) => e.value === "") : !0), $ = o(() => !D.clearable || D.optionsView !== "panel" || D.view === "link" ? !1 : P.value), Ae = o(() => i({
|
|
159
|
+
view: D.view,
|
|
160
|
+
size: D.size,
|
|
161
|
+
disabled: D.disabled,
|
|
162
|
+
variant: D.variant,
|
|
163
|
+
underline: D.underline,
|
|
164
|
+
showNativeChevron: Q.value
|
|
165
|
+
})), je = o(() => n({
|
|
166
|
+
view: D.view,
|
|
167
|
+
optionsView: D.optionsView,
|
|
168
|
+
size: D.size,
|
|
169
|
+
disabled: D.disabled,
|
|
170
|
+
variant: D.variant,
|
|
171
|
+
underline: D.underline
|
|
172
|
+
}));
|
|
173
|
+
function Me(e) {
|
|
174
|
+
let t = e.target;
|
|
175
|
+
if (D.multiple) {
|
|
176
|
+
O("update:modelValue", Array.from(t.selectedOptions, (e) => e.value));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
O("update:modelValue", t.value);
|
|
180
|
+
}
|
|
181
|
+
function Ne() {
|
|
182
|
+
D.disabled || J(D.multiple ? [] : "");
|
|
183
|
+
}
|
|
184
|
+
return (n, r) => D.optionsView === "native" ? (g(), c("div", {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: p(D.view === "link" ? "relative inline-block align-baseline" : "relative w-full")
|
|
187
|
+
}, [l("select", {
|
|
188
|
+
value: D.multiple ? M.value : j.value,
|
|
189
|
+
multiple: D.multiple,
|
|
190
|
+
disabled: D.disabled,
|
|
191
|
+
"aria-label": D.ariaLabel,
|
|
192
|
+
class: p([D.view === "link" ? "cursor-pointer inline-block w-auto align-baseline appearance-none bg-transparent border border-transparent px-0 py-0 rounded-[6px] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]" : "w-full rounded-md border border-[var(--brd)] bg-[var(--bg)] text-[var(--fg)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", Ae.value]),
|
|
193
|
+
onChange: Me
|
|
194
|
+
}, [ke.value ? (g(), c("option", C)) : s("", !0), y(n.$slots, "default", {}, () => [xe.value ? (g(), c("option", {
|
|
195
|
+
key: 0,
|
|
196
|
+
value: j.value
|
|
197
|
+
}, b(j.value), 9, w)) : s("", !0), (g(!0), c(a, null, v(D.options, (e) => (g(), c("option", {
|
|
198
|
+
key: e.value,
|
|
199
|
+
value: e.value
|
|
200
|
+
}, b(e.label), 9, T))), 128))])], 42, ce), Q.value ? (g(), c("span", le, [...r[1] ||= [l("span", {
|
|
201
|
+
class: "i-lucide-chevron-down h-4 w-4",
|
|
202
|
+
"aria-hidden": "true"
|
|
203
|
+
}, null, -1)]])) : s("", !0)], 2)) : x((g(), c("div", {
|
|
204
|
+
key: 1,
|
|
205
|
+
ref_key: "rootEl",
|
|
206
|
+
ref: B,
|
|
207
|
+
class: p(D.view === "link" ? "relative inline-block align-baseline" : "relative w-full")
|
|
208
|
+
}, [
|
|
209
|
+
l("button", {
|
|
210
|
+
"data-testid": "ds-select-trigger",
|
|
211
|
+
type: "button",
|
|
212
|
+
disabled: D.disabled,
|
|
213
|
+
"aria-label": D.ariaLabel,
|
|
214
|
+
role: "combobox",
|
|
215
|
+
"aria-readonly": "true",
|
|
216
|
+
"aria-expanded": z.value ? "true" : "false",
|
|
217
|
+
class: p([D.view === "link" ? "cursor-pointer inline-block w-auto align-baseline appearance-none bg-transparent border border-transparent px-0 py-0 rounded-[6px] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]" : "w-full rounded-md border border-[var(--brd)] bg-[var(--bg)] text-[var(--fg)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", je.value]),
|
|
218
|
+
onClick: we
|
|
219
|
+
}, [l("span", de, [y(n.$slots, "value", {
|
|
220
|
+
selectedOptions: F.value,
|
|
221
|
+
selectedValues: N.value,
|
|
222
|
+
displayLabel: L.value,
|
|
223
|
+
placeholder: D.placeholder,
|
|
224
|
+
hasSelection: P.value
|
|
225
|
+
}, () => [l("span", { class: p(["block truncate", P.value ? "" : "text-[var(--muted-fg)]"]) }, b(be.value), 3)])]), $.value ? (g(), c("span", fe)) : (g(), c("span", pe, [...r[2] ||= [l("span", {
|
|
226
|
+
class: "i-lucide-chevron-down h-4 w-4",
|
|
227
|
+
"aria-hidden": "true"
|
|
228
|
+
}, null, -1)]]))], 10, ue),
|
|
229
|
+
$.value ? (g(), c("button", {
|
|
230
|
+
key: 0,
|
|
231
|
+
"data-testid": "ds-select-clear",
|
|
232
|
+
type: "button",
|
|
233
|
+
class: "absolute top-1/2 -translate-y-1/2 right-3 h-6 w-6 inline-flex items-center justify-center rounded-md text-[var(--muted-fg)] hover:text-[var(--fg)] hover:bg-[color-mix(in_srgb,var(--muted)_25%,transparent)] disabled:opacity-50",
|
|
234
|
+
disabled: D.disabled,
|
|
235
|
+
"aria-label": "Clear",
|
|
236
|
+
onClick: S(Ne, ["stop"])
|
|
237
|
+
}, [...r[3] ||= [l("span", {
|
|
238
|
+
class: "i-lucide-x h-4 w-4",
|
|
239
|
+
"aria-hidden": "true"
|
|
240
|
+
}, null, -1)]], 8, me)) : s("", !0),
|
|
241
|
+
(g(), ne(ee, { to: "body" }, [u(te, {
|
|
242
|
+
"enter-active-class": "transition ease-out duration-150",
|
|
243
|
+
"enter-from-class": "transform opacity-0 scale-95",
|
|
244
|
+
"enter-to-class": "transform opacity-100 scale-100",
|
|
245
|
+
"leave-active-class": "transition ease-in duration-100",
|
|
246
|
+
"leave-from-class": "transform opacity-100 scale-100",
|
|
247
|
+
"leave-to-class": "transform opacity-0 scale-95"
|
|
248
|
+
}, {
|
|
249
|
+
default: oe(() => [x(l("div", {
|
|
250
|
+
ref_key: "panelEl",
|
|
251
|
+
ref: V,
|
|
252
|
+
"data-testid": "ds-select-panel",
|
|
253
|
+
class: "fixed w-full",
|
|
254
|
+
style: m(U.value)
|
|
255
|
+
}, [l("div", { class: p(Te.value) }, [D.allowCustomValue ? (g(), c("div", he, [u(t, {
|
|
256
|
+
ref_key: "customInputRef",
|
|
257
|
+
ref: H,
|
|
258
|
+
modelValue: R.value,
|
|
259
|
+
"onUpdate:modelValue": r[0] ||= (e) => R.value = e,
|
|
260
|
+
"data-testid": "ds-select-custom-input",
|
|
261
|
+
type: "text",
|
|
262
|
+
placeholder: D.customValuePlaceholder,
|
|
263
|
+
size: "sm",
|
|
264
|
+
onKeydown: se(S(Z, ["prevent"]), ["enter"])
|
|
265
|
+
}, null, 8, [
|
|
266
|
+
"modelValue",
|
|
267
|
+
"placeholder",
|
|
268
|
+
"onKeydown"
|
|
269
|
+
])])) : s("", !0), l("div", {
|
|
270
|
+
class: "p-1 overflow-auto",
|
|
271
|
+
style: m({ maxHeight: `${D.dropdownMaxHeight}px` }),
|
|
272
|
+
role: "listbox",
|
|
273
|
+
"aria-multiselectable": D.multiple ? "true" : void 0
|
|
274
|
+
}, [De.value ? (g(), c("button", {
|
|
275
|
+
key: 0,
|
|
276
|
+
"data-testid": "ds-select-add-option",
|
|
277
|
+
type: "button",
|
|
278
|
+
class: "w-full rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
279
|
+
onClick: Z
|
|
280
|
+
}, " Add “" + b(R.value.trim()) + "” ", 1)) : s("", !0), (g(!0), c(a, null, v(Ee.value, (e) => (g(), c("button", {
|
|
281
|
+
key: e.value,
|
|
282
|
+
type: "button",
|
|
283
|
+
role: "option",
|
|
284
|
+
"aria-selected": Y(e.value) ? "true" : "false",
|
|
285
|
+
class: "w-full rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
286
|
+
onClick: (t) => X(e.value)
|
|
287
|
+
}, [y(n.$slots, "option", {
|
|
288
|
+
option: e,
|
|
289
|
+
selected: Y(e.value)
|
|
290
|
+
}, () => [l("span", ve, [l("span", {
|
|
291
|
+
class: p(["h-4 w-4 shrink-0", Y(e.value) ? "i-lucide-check text-[var(--primary)]" : ""]),
|
|
292
|
+
"aria-hidden": "true"
|
|
293
|
+
}, null, 2), l("span", ye, b(e.label), 1)])])], 8, _e))), 128))], 12, ge)], 2)], 4), [[ie, z.value]])]),
|
|
294
|
+
_: 3
|
|
295
|
+
})]))
|
|
296
|
+
], 2)), [[re(e), {
|
|
297
|
+
handler: K,
|
|
298
|
+
enabled: z.value,
|
|
299
|
+
exclude: Se
|
|
300
|
+
}]]);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
//#endregion
|
|
304
|
+
export { E as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, defineComponent as r, openBlock as i, renderSlot as a, toDisplayString as o } from "vue";
|
|
2
|
+
//#region src/components/DsSidebar/DsSidebar.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var s = { class: "border-r border-[var(--sidebar-brd)] bg-[var(--sidebar)] text-[var(--sidebar-fg)]" }, c = { class: "border-b border-[var(--sidebar-brd)] px-4 py-4" }, l = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "text-[14px] ds-muted"
|
|
6
|
+
}, u = { class: "text-[18px] font-700" }, d = { class: "p-3" }, f = /* @__PURE__ */ r({
|
|
7
|
+
__name: "DsSidebar",
|
|
8
|
+
props: {
|
|
9
|
+
title: {},
|
|
10
|
+
subtitle: { default: void 0 }
|
|
11
|
+
},
|
|
12
|
+
setup(r) {
|
|
13
|
+
let f = r;
|
|
14
|
+
return (r, p) => (i(), t("aside", s, [n("div", c, [f.subtitle ? (i(), t("div", l, o(f.subtitle), 1)) : e("", !0), n("div", u, o(f.title), 1)]), n("div", d, [a(r.$slots, "default")])]));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { f as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/components/DsSkeleton/DsSkeleton.vue
|
|
4
|
+
var i = /* @__PURE__ */ t({
|
|
5
|
+
__name: "DsSkeleton",
|
|
6
|
+
props: {
|
|
7
|
+
height: { default: "12px" },
|
|
8
|
+
width: { default: "100%" },
|
|
9
|
+
rounded: { default: "9999px" }
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
let i = t;
|
|
13
|
+
return (t, a) => (r(), e("div", {
|
|
14
|
+
class: "animate-pulse bg-[var(--muted)] border border-[var(--brd)]",
|
|
15
|
+
style: n({
|
|
16
|
+
height: i.height,
|
|
17
|
+
width: i.width,
|
|
18
|
+
borderRadius: i.rounded
|
|
19
|
+
}),
|
|
20
|
+
"aria-hidden": "true"
|
|
21
|
+
}, null, 4));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { i as t };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { a as e, i as t, n } from "./config-B-tMv4PT.js";
|
|
2
|
+
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderSlot as d } from "vue";
|
|
3
|
+
//#region src/components/DsSwitch/DsSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var f = [
|
|
5
|
+
"aria-checked",
|
|
6
|
+
"aria-label",
|
|
7
|
+
"disabled"
|
|
8
|
+
], p = /* @__PURE__ */ s({
|
|
9
|
+
__name: "DsSwitch",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: { type: Boolean },
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
ariaLabel: { default: void 0 },
|
|
17
|
+
size: { default: "md" },
|
|
18
|
+
activeBackgroundColor: { default: void 0 },
|
|
19
|
+
inactiveBackgroundColor: { default: void 0 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(s, { emit: p }) {
|
|
23
|
+
let m = (e) => e?.trim() || void 0, h = s, g = p, _ = r(() => e(h.size)), v = r(() => {
|
|
24
|
+
let e = h.modelValue, t = e ? "var(--primary)" : "var(--muted)", n = m(e ? h.activeBackgroundColor : h.inactiveBackgroundColor), r = n ?? t;
|
|
25
|
+
return {
|
|
26
|
+
"--ds-switch-track-bg": r,
|
|
27
|
+
"--ds-switch-track-brd": n ? r : e ? "var(--primary)" : "var(--brd)",
|
|
28
|
+
backgroundColor: "var(--ds-switch-track-bg)"
|
|
29
|
+
};
|
|
30
|
+
}), y = r(() => t({
|
|
31
|
+
size: h.size,
|
|
32
|
+
checked: h.modelValue
|
|
33
|
+
})), b = r(() => n(h.size));
|
|
34
|
+
function x() {
|
|
35
|
+
h.disabled || g("update:modelValue", !h.modelValue);
|
|
36
|
+
}
|
|
37
|
+
return (e, t) => (u(), a("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
role: "switch",
|
|
40
|
+
"aria-checked": h.modelValue ? "true" : "false",
|
|
41
|
+
"aria-label": h.ariaLabel,
|
|
42
|
+
disabled: h.disabled,
|
|
43
|
+
class: "inline-flex items-center gap-2 select-none disabled:opacity-50 disabled:cursor-not-allowed",
|
|
44
|
+
onClick: x
|
|
45
|
+
}, [o("span", {
|
|
46
|
+
"data-testid": "ds-switch-track",
|
|
47
|
+
class: c(_.value),
|
|
48
|
+
style: l(v.value)
|
|
49
|
+
}, [o("span", {
|
|
50
|
+
"data-testid": "ds-switch-thumb",
|
|
51
|
+
class: c(y.value),
|
|
52
|
+
"aria-hidden": "true"
|
|
53
|
+
}, null, 2)], 6), e.$slots.default ? (u(), a("span", {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: c(b.value)
|
|
56
|
+
}, [d(e.$slots, "default")], 2)) : i("", !0)], 8, f));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-DOgycIVc.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, openBlock as r, renderSlot as i } from "vue";
|
|
3
|
+
//#region src/components/DsTable/DsTable.vue
|
|
4
|
+
var a = {}, o = { class: "overflow-x-auto rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)]" }, s = { class: "min-w-full text-sm" }, c = { class: "bg-[var(--muted)] text-[var(--muted-fg)]" }, l = { class: "text-[var(--fg)]" };
|
|
5
|
+
function u(e, a) {
|
|
6
|
+
return r(), t("div", o, [n("table", s, [n("thead", c, [i(e.$slots, "head")]), n("tbody", l, [i(e.$slots, "default")])])]);
|
|
7
|
+
}
|
|
8
|
+
var d = /* @__PURE__ */ e(a, [["render", u]]);
|
|
9
|
+
//#endregion
|
|
10
|
+
export { d as t };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderList as c, toDisplayString as l } from "vue";
|
|
2
|
+
//#region src/components/DsTabs/DsTabs.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var u = ["aria-selected", "onClick"], d = { class: "inline-flex items-center gap-2" }, f = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "text-[11px] px-1.5 py-0.5 rounded-full bg-[var(--secondary)] text-[var(--secondary-fg)]"
|
|
6
|
+
}, p = /* @__PURE__ */ a({
|
|
7
|
+
__name: "DsTabs",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: {},
|
|
10
|
+
tabs: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(a, { emit: p }) {
|
|
14
|
+
let m = a, h = p, g = t(() => m.tabs.findIndex((e) => e.value === m.modelValue));
|
|
15
|
+
function _(e) {
|
|
16
|
+
h("update:modelValue", e);
|
|
17
|
+
}
|
|
18
|
+
function v(e) {
|
|
19
|
+
if (m.tabs.length === 0) return;
|
|
20
|
+
let t = g.value < 0 ? 0 : g.value;
|
|
21
|
+
if (e.key === "ArrowRight") {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
let n = m.tabs[(t + 1) % m.tabs.length];
|
|
24
|
+
n && _(n.value);
|
|
25
|
+
}
|
|
26
|
+
if (e.key === "ArrowLeft") {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
let n = m.tabs[(t - 1 + m.tabs.length) % m.tabs.length];
|
|
29
|
+
n && _(n.value);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return (t, a) => (s(), r("div", {
|
|
33
|
+
role: "tablist",
|
|
34
|
+
class: "inline-flex flex-wrap gap-1 rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--muted)] p-1",
|
|
35
|
+
onKeydown: v
|
|
36
|
+
}, [(s(!0), r(e, null, c(m.tabs, (e) => (s(), r("button", {
|
|
37
|
+
key: e.value,
|
|
38
|
+
type: "button",
|
|
39
|
+
role: "tab",
|
|
40
|
+
"aria-selected": e.value === m.modelValue ? "true" : "false",
|
|
41
|
+
class: o(["h-9 px-3 rounded-[10px] text-sm font-600 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", e.value === m.modelValue ? "bg-[var(--card)] text-[var(--fg)] border border-[var(--brd)]" : "text-[var(--muted-fg)] hover:text-[var(--fg)] hover:bg-[color-mix(in_srgb,var(--card)_70%,transparent)]"]),
|
|
42
|
+
onClick: (t) => _(e.value)
|
|
43
|
+
}, [i("span", d, [i("span", null, l(e.label), 1), e.badge ? (s(), r("span", f, l(e.badge), 1)) : n("", !0)])], 10, u))), 128))], 32));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { p as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { n as e } from "./config-B75oSW74.js";
|
|
2
|
+
import { computed as t, createElementBlock as n, defineComponent as r, normalizeClass as i, openBlock as a } from "vue";
|
|
3
|
+
//#region src/components/DsTextarea/DsTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var o = [
|
|
5
|
+
"id",
|
|
6
|
+
"name",
|
|
7
|
+
"rows",
|
|
8
|
+
"autocomplete",
|
|
9
|
+
"placeholder",
|
|
10
|
+
"disabled",
|
|
11
|
+
"value",
|
|
12
|
+
"aria-invalid"
|
|
13
|
+
], s = /* @__PURE__ */ r({
|
|
14
|
+
__name: "DsTextarea",
|
|
15
|
+
props: {
|
|
16
|
+
modelValue: {},
|
|
17
|
+
placeholder: { default: void 0 },
|
|
18
|
+
autocomplete: { default: void 0 },
|
|
19
|
+
disabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
invalid: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
state: { default: "default" },
|
|
28
|
+
name: { default: void 0 },
|
|
29
|
+
id: { default: void 0 },
|
|
30
|
+
rows: { default: 4 }
|
|
31
|
+
},
|
|
32
|
+
emits: ["update:modelValue"],
|
|
33
|
+
setup(r, { emit: s }) {
|
|
34
|
+
let c = r, l = s, u = t(() => e({
|
|
35
|
+
state: c.state,
|
|
36
|
+
invalid: c.invalid
|
|
37
|
+
}));
|
|
38
|
+
function d(e) {
|
|
39
|
+
l("update:modelValue", e.target.value);
|
|
40
|
+
}
|
|
41
|
+
return (e, t) => (a(), n("textarea", {
|
|
42
|
+
id: c.id,
|
|
43
|
+
name: c.name,
|
|
44
|
+
rows: c.rows,
|
|
45
|
+
autocomplete: c.autocomplete,
|
|
46
|
+
placeholder: c.placeholder,
|
|
47
|
+
disabled: c.disabled,
|
|
48
|
+
value: c.modelValue,
|
|
49
|
+
"aria-invalid": c.invalid ? "true" : void 0,
|
|
50
|
+
class: i(["w-full rounded-md border bg-[var(--bg)] px-3 py-2 text-[14px] text-[var(--fg)] placeholder:text-[var(--muted-fg)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed", u.value]),
|
|
51
|
+
onInput: d
|
|
52
|
+
}, null, 42, o));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { s as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { n as e, r as t, t as n } from "./x-circle-BZnfL2nz.js";
|
|
2
|
+
import { t as r } from "./info-CmLOtVnO.js";
|
|
3
|
+
import { t as i } from "./x-dGjszOU2.js";
|
|
4
|
+
import { t as a } from "./DsButton-CA18Fha-.js";
|
|
5
|
+
import { useToast as o } from "../composables/useToast.js";
|
|
6
|
+
import { Fragment as s, Teleport as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, normalizeStyle as g, openBlock as _, renderList as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
7
|
+
//#region src/components/DsToaster/DsToaster.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
+
var C = { class: "fixed right-4 top-4 z-50 grid w-[360px] max-w-[calc(100vw-2rem)] gap-3" }, w = { class: "flex items-start gap-3" }, T = { class: "min-w-0 flex-1" }, E = { class: "text-[13px] font-700" }, D = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "mt-0.5 text-[13px] ds-muted"
|
|
11
|
+
}, O = /* @__PURE__ */ h({
|
|
12
|
+
__name: "DsToaster",
|
|
13
|
+
setup(h) {
|
|
14
|
+
let { list: O, dismiss: k } = o(), A = l(() => O.value);
|
|
15
|
+
function j(i) {
|
|
16
|
+
return i === "success" ? e : i === "warning" ? t : i === "danger" ? n : r;
|
|
17
|
+
}
|
|
18
|
+
function M(e) {
|
|
19
|
+
return e === "success" ? "var(--ds-success)" : e === "warning" ? "var(--ds-warning)" : e === "danger" ? "var(--ds-danger)" : "var(--ds-info)";
|
|
20
|
+
}
|
|
21
|
+
return (e, t) => (_(), u(c, { to: "body" }, [p("div", C, [(_(!0), f(s, null, v(A.value, (e) => (_(), f("div", {
|
|
22
|
+
key: e.id,
|
|
23
|
+
class: "rounded-[var(--ds-radius-lg)] border border-[var(--brd)] bg-[var(--card)] px-4 py-3 shadow-[var(--ds-shadow-2)]"
|
|
24
|
+
}, [p("div", w, [
|
|
25
|
+
(_(), u(y(j(e.variant)), {
|
|
26
|
+
class: "mt-0.5 h-5 w-5",
|
|
27
|
+
style: g({ color: M(e.variant) }),
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}, null, 8, ["style"])),
|
|
30
|
+
p("div", T, [p("div", E, b(e.title), 1), e.message ? (_(), f("div", D, b(e.message), 1)) : d("", !0)]),
|
|
31
|
+
m(x(a), {
|
|
32
|
+
variant: "ghost",
|
|
33
|
+
size: "sm",
|
|
34
|
+
square: "",
|
|
35
|
+
"aria-label": "Dismiss",
|
|
36
|
+
onClick: (t) => x(k)(e.id)
|
|
37
|
+
}, {
|
|
38
|
+
default: S(() => [m(x(i), {
|
|
39
|
+
class: "h-4 w-4",
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
})]),
|
|
42
|
+
_: 1
|
|
43
|
+
}, 8, ["onClick"])
|
|
44
|
+
])]))), 128))])]));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
//#endregion
|
|
48
|
+
export { O as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./info-CmLOtVnO.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, openBlock as a, renderSlot as o, toDisplayString as s, unref as c } from "vue";
|
|
3
|
+
//#region src/components/DsTooltip/DsTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var l = { class: "group relative inline-flex" }, u = {
|
|
5
|
+
role: "tooltip",
|
|
6
|
+
class: "pointer-events-none absolute bottom-[calc(100%+8px)] left-1/2 z-10 -translate-x-1/2 whitespace-nowrap rounded-md border border-[var(--brd)] bg-[var(--popover)] px-2 py-1 text-[12px] text-[var(--popover-fg)] opacity-0 shadow-[var(--ds-shadow-1)] transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100"
|
|
7
|
+
}, d = /* @__PURE__ */ i({
|
|
8
|
+
__name: "DsTooltip",
|
|
9
|
+
props: {
|
|
10
|
+
text: {},
|
|
11
|
+
iconColor: { default: "var(--muted-fg)" }
|
|
12
|
+
},
|
|
13
|
+
setup(i) {
|
|
14
|
+
let d = i, f = { "--ds-tooltip-icon-color": d.iconColor };
|
|
15
|
+
return (i, p) => (a(), t("span", l, [n("span", {
|
|
16
|
+
tabindex: "0",
|
|
17
|
+
class: "inline-flex items-center justify-center text-[var(--ds-tooltip-icon-color)] focus:outline-none",
|
|
18
|
+
"data-testid": "ds-tooltip-trigger",
|
|
19
|
+
style: f
|
|
20
|
+
}, [o(i.$slots, "default", {}, () => [r(c(e), {
|
|
21
|
+
class: "h-4 w-4",
|
|
22
|
+
"aria-hidden": "true"
|
|
23
|
+
})])]), n("span", u, s(d.text), 1)]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { d as t };
|