@feugene/granularity 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DsButtonGroup.css +1 -0
- package/dist/DsFormFile.css +1 -0
- package/dist/DsIcon.css +1 -0
- package/dist/DsLoading.css +1 -0
- package/dist/DsSkeleton.css +1 -0
- package/dist/DsTree.css +1 -0
- package/dist/chunks/config-B36QoWkx2.js +8 -0
- package/dist/chunks/config-BG-m3THf.js +17 -0
- package/dist/chunks/config-BNQb1Tdk.js +9 -0
- package/dist/chunks/config-BPuskn3r.js +8 -0
- package/dist/chunks/config-BWJ22IjI2.js +9 -0
- package/dist/chunks/config-BYoxgIeM.js +18 -0
- package/dist/chunks/{config-tQBoBLph.js → config-Bb8NpnGF.js} +14 -6
- package/dist/chunks/config-Bo4SoxQg.js +27 -0
- package/dist/chunks/{config-B-tMv4PT.js → config-BscZj6l42.js} +26 -26
- package/dist/chunks/{config-qlwX-rLq.js → config-C0CVsc4Y.js} +16 -10
- package/dist/chunks/config-C2wd640N.js +9 -0
- package/dist/chunks/{config-CMuBf0u72.js → config-C7KNHOmN.js} +7 -7
- package/dist/chunks/config-CLG4pCF9.js +9 -0
- package/dist/chunks/config-COfLMM02.js +8 -0
- package/dist/chunks/config-C_CXjTfh2.js +9 -0
- package/dist/chunks/config-C_bF_fTb.js +8 -0
- package/dist/chunks/config-CcqnIunr.js +9 -0
- package/dist/chunks/config-Cibru2a2.js +9 -0
- package/dist/chunks/config-CnClbuiL.js +9 -0
- package/dist/chunks/config-CtI_S-zH.js +8 -0
- package/dist/chunks/config-CtgK8aLQ.js +37 -0
- package/dist/chunks/config-CvuvJeih.js +9 -0
- package/dist/chunks/{config-B75oSW74.js → config-CzEeKJ6F2.js} +6 -4
- package/dist/chunks/{config-CTGjkM7q.js → config-D-soL_Ul.js} +45 -36
- package/dist/chunks/config-D3ihNj1i.js +14 -0
- package/dist/chunks/config-D9kbijTN.js +9 -0
- package/dist/chunks/config-DGGgsQ-8.js +47 -0
- package/dist/chunks/{config-G7h6ftb62.js → config-DJxFkysW.js} +10 -9
- package/dist/chunks/config-DN1-oywd.js +13 -0
- package/dist/chunks/config-DO9E5iXl2.js +8 -0
- package/dist/chunks/config-DQdLgKLJ.js +8 -0
- package/dist/chunks/config-DThxz0fj.js +8 -0
- package/dist/chunks/config-DU-WqEnv.js +9 -0
- package/dist/chunks/config-DeL48aIt.js +8 -0
- package/dist/chunks/config-DfTEy9G3.js +14 -0
- package/dist/chunks/config-DoJaEy4X.js +21 -0
- package/dist/chunks/config-DopZCwNe.js +10 -0
- package/dist/chunks/{config-BrwOndwO.js → config-DpluHp1i.js} +2 -3
- package/dist/chunks/config-DrTFt1re.js +8 -0
- package/dist/chunks/config-DwsSjSb4.js +15 -0
- package/dist/chunks/config-E9sOdSx6.js +8 -0
- package/dist/chunks/config-EhfVxSIR.js +9 -0
- package/dist/chunks/config-J_2KglMu.js +8 -0
- package/dist/chunks/config-YyVxx9dW.js +8 -0
- package/dist/chunks/config-Zksyb5FX.js +35 -0
- package/dist/chunks/config-ltfe9Xvy.js +47 -0
- package/dist/chunks/config-udLUeY_k.js +9 -0
- package/dist/chunks/dialogShared-B7Ruf0mn.js +26 -0
- package/dist/chunks/directives-K8Vo0VhP.js +530 -0
- package/dist/chunks/{dsBadgeStyles-yLd1GFUa.js → dsBadgeStyles-2fcy07ls.js} +13 -22
- package/dist/chunks/{dsButtonStyles-C1c_j958.js → dsButtonStyles-xdMl54zJ.js} +46 -70
- package/dist/chunks/{dsDropdownStyles-DXGN-A-d.js → dsDropdownStyles-_XO6eeSE.js} +6 -12
- package/dist/chunks/dsLoadingStyles-lw20OWhs.js +15 -0
- package/dist/chunks/dsModalStyles-DovGcwjh.js +38 -0
- package/dist/chunks/dsSelectStyles-BCrj5Fty.js +40 -0
- package/dist/chunks/{en-CKkdzd7q.js → en-BkL6iabg.js} +3 -1
- package/dist/chunks/{es-CPXSlGMa.js → es-Dh_K9iry.js} +3 -1
- package/dist/chunks/{fileValidation-gR8aUBMZ.js → fileValidation-LFD-vwil.js} +1 -1
- package/dist/chunks/{granularityI18n-DBuOHekC.js → granularityI18n-DYNnonoE.js} +1 -1
- package/dist/chunks/{ru-D7AyvUyA.js → ru-kTbw8Tku.js} +3 -1
- package/dist/chunks/safelist-CQOSs_yj.js +13 -0
- package/dist/chunks/safelist-Gujf4bDO.js +22 -0
- package/dist/chunks/shared-DGhcuSCh.js +124 -0
- package/dist/chunks/{transition-CT9vsWnT.js → transition-BJXMi52x.js} +218 -218
- package/dist/{chunks/DsAlert-r_Ed-JrB.js → components/DsAlert/chunks/DsAlert-2ItscoqG.js} +3 -3
- package/dist/components/DsAlert/index.js +3 -3
- package/dist/{chunks/DsAvatar-cyMI8jUi.js → components/DsAvatar/chunks/DsAvatar-D7tQ9wfl.js} +1 -1
- package/dist/components/DsAvatar/index.js +2 -2
- package/dist/{chunks/DsBadge-Dnd7_I-K.js → components/DsBadge/chunks/DsBadge-B9aZxvZb.js} +1 -1
- package/dist/components/DsBadge/index.js +3 -4
- package/dist/components/DsBadgeWrap/index.js +3 -3
- package/dist/components/DsBottomNav/index.js +3 -3
- package/dist/{chunks/DsButton-CA18Fha-.js → components/DsButton/chunks/DsButton-9cB_fHZt.js} +6 -6
- package/dist/components/DsButton/index.js +5 -4
- package/dist/{chunks/DsButtonGroup-Ceat9ADe.js → components/DsButtonGroup/chunks/DsButtonGroup-DPK1W3Hk.js} +1 -1
- package/dist/components/DsButtonGroup/index.js +3 -3
- package/dist/{chunks/DsCard-GtapCsjq.js → components/DsCard/chunks/DsCard-Bnelx1JF.js} +1 -1
- package/dist/components/DsCard/index.js +3 -3
- package/dist/components/DsCheckbox/chunks/DsCheckbox-B3YN7RYo.js +111 -0
- package/dist/components/DsCheckbox/index.js +3 -3
- package/dist/components/DsCollapse/chunks/DsCollapse-7D6FTuFJ.js +150 -0
- package/dist/components/DsCollapse/index.js +3 -3
- package/dist/components/DsConfirmDialog/chunks/DsConfirmDialog-NkhfmD4Y.js +111 -0
- package/dist/components/DsConfirmDialog/index.js +3 -3
- package/dist/components/DsDataTable/chunks/DsDataTable-nK4XgT1y.js +142 -0
- package/dist/components/DsDataTable/index.js +3 -3
- package/dist/components/DsDialog/chunks/DsDialog-BH23MSq-.js +169 -0
- package/dist/components/DsDialog/index.js +4 -3
- package/dist/components/DsDrawer/chunks/DsDrawer-GW4JyPf_.js +135 -0
- package/dist/components/DsDrawer/index.js +2 -2
- package/dist/{chunks/DsDropdown-BcFjxaMe.js → components/DsDropdown/chunks/DsDropdown-DmR1NWyV.js} +54 -50
- package/dist/components/DsDropdown/index.js +3 -4
- package/dist/{chunks/DsDropdownMenu-CA7259h5.js → components/DsDropdownMenu/chunks/DsDropdownMenu-BlpO8mUO.js} +45 -30
- package/dist/components/DsDropdownMenu/index.js +3 -3
- package/dist/components/DsEmptyState/chunks/DsEmptyState-tKYwSiP1.js +49 -0
- package/dist/components/DsEmptyState/index.js +3 -3
- package/dist/components/DsFileUpload/chunks/DsFileUpload-Dya9vyG0.js +294 -0
- package/dist/components/DsFileUpload/index.js +4 -4
- package/dist/components/DsFormField/index.js +3 -3
- package/dist/components/DsFormFile/chunks/DsFormFile-BFfRuM1G.js +248 -0
- package/dist/components/DsFormFile/index.js +3 -3
- package/dist/components/DsFormSection/chunks/DsFormSection-Dzspqv9R.js +27 -0
- package/dist/components/DsFormSection/index.js +3 -3
- package/dist/components/DsIcon/chunks/DsIcon-Bk6qc4Kh.js +25 -0
- package/dist/components/DsIcon/index.js +3 -3
- package/dist/{chunks/DsImageViewer-C9NZ42St.js → components/DsImageViewer/chunks/DsImageViewer-_LWdAHAd.js} +109 -100
- package/dist/components/DsImageViewer/index.js +3 -3
- package/dist/{chunks/DsInput-DeoAkT6R.js → components/DsInput/chunks/DsInput-B8RhHkKQ.js} +52 -53
- package/dist/components/DsInput/index.js +2 -2
- package/dist/components/DsInputTag/chunks/DsInputTag-DVmvJ0A_.js +214 -0
- package/dist/components/DsInputTag/index.js +2 -2
- package/dist/components/DsLink/chunks/DsLink-DXClMbuX.js +59 -0
- package/dist/components/DsLink/index.js +2 -2
- package/dist/components/DsList/chunks/DsList-BEuPowc2.js +55 -0
- package/dist/components/DsList/index.js +3 -3
- package/dist/{chunks/DsLoading-ogfmbPE4.js → components/DsLoading/chunks/DsLoading-uYpDF-nK.js} +14 -14
- package/dist/components/DsLoading/index.js +3 -4
- package/dist/components/DsModal/chunks/DsModal-B2DLXV7F.js +136 -0
- package/dist/components/DsModal/index.js +4 -4
- package/dist/components/DsNavbar/chunks/DsNavbar-O-ud_du_.js +62 -0
- package/dist/components/DsNavbar/index.js +3 -3
- package/dist/{chunks/DsNumberInput-D-m5QoQJ.js → components/DsNumberInput/chunks/DsNumberInput-BJTpcTRc.js} +70 -56
- package/dist/components/DsNumberInput/index.js +2 -2
- package/dist/{chunks/DsPagination-B28ms0hc.js → components/DsPagination/chunks/DsPagination-hw_-VMRK.js} +33 -21
- package/dist/components/DsPagination/index.js +3 -3
- package/dist/{chunks/DsProgressBar-Bkuqudkg.js → components/DsProgressBar/chunks/DsProgressBar-CgIQj39W.js} +4 -2
- package/dist/components/DsProgressBar/index.js +2 -2
- package/dist/{chunks/DsPromptDialog-DdSca52S.js → components/DsPromptDialog/chunks/DsPromptDialog-_8v3Puaj.js} +42 -17
- package/dist/components/DsPromptDialog/index.js +3 -3
- package/dist/{chunks/DsRadio-x2vmEUCv.js → components/DsRadio/chunks/DsRadio-DKbrUFUZ.js} +21 -15
- package/dist/components/DsRadio/index.js +2 -2
- package/dist/{chunks/DsRadioGroup-CzlzJF2E.js → components/DsRadioGroup/chunks/DsRadioGroup-BQo7Nc5-.js} +13 -10
- package/dist/components/DsRadioGroup/index.js +3 -3
- package/dist/components/DsSegmented/chunks/DsSegmented-SbqzdCNX.js +250 -0
- package/dist/components/DsSegmented/index.js +2 -2
- package/dist/components/DsSelect/chunks/DsSelect-DN-vZIEG.js +314 -0
- package/dist/components/DsSelect/index.js +3 -4
- package/dist/components/DsSidebar/chunks/DsSidebar-DdofI1lo.js +29 -0
- package/dist/components/DsSidebar/index.js +3 -3
- package/dist/{chunks/DsSkeleton-BcXabaQ7.js → components/DsSkeleton/chunks/DsSkeleton-DJSQ4gGR.js} +9 -9
- package/dist/components/DsSkeleton/index.js +3 -3
- package/dist/{chunks/DsSwitch-DBdjltGz.js → components/DsSwitch/chunks/DsSwitch-Dh4_bd6e.js} +8 -4
- package/dist/components/DsSwitch/index.js +2 -2
- package/dist/components/DsTable/chunks/DsTable-C27_FR_h.js +44 -0
- package/dist/components/DsTable/index.js +3 -3
- package/dist/components/DsTabs/chunks/DsTabs-FLWaGtbo.js +98 -0
- package/dist/components/DsTabs/index.js +3 -3
- package/dist/{chunks/DsTextarea-DVSsoqi3.js → components/DsTextarea/chunks/DsTextarea-D61wwTwK.js} +10 -9
- package/dist/components/DsTextarea/index.js +2 -2
- package/dist/components/DsToaster/chunks/DsToaster-KO8wZChw.js +159 -0
- package/dist/components/DsToaster/index.js +2 -2
- package/dist/components/DsTooltip/chunks/DsTooltip-BNkQOtpm.js +37 -0
- package/dist/components/DsTooltip/index.js +3 -3
- package/dist/{chunks/DsTree-Bz37FcIb.js → components/DsTree/chunks/DsTree-DK0aOkKS.js} +19 -7
- package/dist/components/DsTree/index.js +2 -2
- package/dist/components/DsTreeSelect/chunks/DsTreeSelect-BnG-oplE.js +353 -0
- package/dist/components/DsTreeSelect/index.js +2 -2
- package/dist/directives/index.js +2 -0
- package/dist/{fileValidation.js → fileValidation/index.js} +1 -1
- package/dist/granular-provider-node.js +23 -0
- package/dist/granular-provider.js +5 -0
- package/dist/i18n/index.js +9 -0
- package/dist/index.js +147 -115
- package/dist/types/src/components/DsAlert/config.d.ts +1 -1
- package/dist/types/src/components/DsAlert/index.d.ts +0 -1
- package/dist/types/src/components/DsAvatar/config.d.ts +1 -1
- package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +1 -4
- package/dist/types/src/components/DsAvatar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsBadge/config.d.ts +1 -1
- package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +4 -1
- package/dist/types/src/components/DsBadge/safelist.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -1
- package/dist/types/src/components/DsBadgeWrap/index.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/config.d.ts +1 -1
- package/dist/types/src/components/DsBottomNav/index.d.ts +0 -1
- package/dist/types/src/components/DsButton/config.d.ts +1 -1
- package/dist/types/src/components/DsButton/config.node.d.ts +1 -0
- package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -10
- package/dist/types/src/components/DsButton/index.d.ts +2 -1
- package/dist/types/src/components/DsButton/safelist.d.ts +7 -1
- package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsButtonGroup/index.d.ts +0 -1
- package/dist/types/src/components/DsCard/config.d.ts +1 -1
- package/dist/types/src/components/DsCard/index.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +9 -4
- package/dist/types/src/components/DsCheckbox/config.d.ts +1 -1
- package/dist/types/src/components/DsCheckbox/index.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +12 -4
- package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +13 -6
- package/dist/types/src/components/DsCollapse/config.d.ts +1 -1
- package/dist/types/src/components/DsCollapse/index.d.ts +2 -3
- package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +32 -11
- package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsConfirmDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +35 -42
- package/dist/types/src/components/DsDataTable/config.d.ts +1 -1
- package/dist/types/src/components/DsDataTable/index.d.ts +1 -2
- package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +24 -14
- package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +4 -4
- package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +9 -4
- package/dist/types/src/components/DsDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsDialog/dialogShared.d.ts +6 -1
- package/dist/types/src/components/DsDialog/index.d.ts +6 -3
- package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +27 -11
- package/dist/types/src/components/DsDrawer/config.d.ts +1 -1
- package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +8 -19
- package/dist/types/src/components/DsDrawer/index.d.ts +2 -0
- package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +9 -4
- package/dist/types/src/components/DsDropdown/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +2 -1
- package/dist/types/src/components/DsDropdown/index.d.ts +2 -0
- package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +12 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +7 -6
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +4 -4
- package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -1
- package/dist/types/src/components/DsDropdownMenu/index.d.ts +8 -4
- package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +15 -6
- package/dist/types/src/components/DsEmptyState/config.d.ts +1 -1
- package/dist/types/src/components/DsEmptyState/index.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +21 -8
- package/dist/types/src/components/DsFileUpload/config.d.ts +1 -1
- package/dist/types/src/components/DsFileUpload/index.d.ts +1 -1
- package/dist/types/src/components/DsFormField/config.d.ts +1 -1
- package/dist/types/src/components/DsFormField/index.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +13 -7
- package/dist/types/src/components/DsFormFile/config.d.ts +1 -1
- package/dist/types/src/components/DsFormFile/index.d.ts +1 -2
- package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +10 -4
- package/dist/types/src/components/DsFormSection/config.d.ts +1 -1
- package/dist/types/src/components/DsFormSection/index.d.ts +1 -1
- package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +1 -2
- package/dist/types/src/components/DsIcon/config.d.ts +1 -1
- package/dist/types/src/components/DsIcon/index.d.ts +0 -2
- package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +45 -0
- package/dist/types/src/components/DsImageViewer/config.d.ts +1 -1
- package/dist/types/src/components/DsImageViewer/index.d.ts +0 -1
- package/dist/types/src/components/DsInput/config.d.ts +1 -1
- package/dist/types/src/components/DsInput/dsInputStyles.d.ts +17 -1
- package/dist/types/src/components/DsInput/index.d.ts +1 -1
- package/dist/types/src/components/DsInput/safelist.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +15 -5
- package/dist/types/src/components/DsInputTag/config.d.ts +1 -1
- package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +3 -1
- package/dist/types/src/components/DsInputTag/index.d.ts +1 -0
- package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -1
- package/dist/types/src/components/DsLink/DsLink.vue.d.ts +0 -1
- package/dist/types/src/components/DsLink/config.d.ts +1 -1
- package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +6 -1
- package/dist/types/src/components/DsLink/safelist.d.ts +1 -1
- package/dist/types/src/components/DsList/DsList.vue.d.ts +8 -5
- package/dist/types/src/components/DsList/DsListItem.vue.d.ts +39 -6
- package/dist/types/src/components/DsList/config.d.ts +1 -1
- package/dist/types/src/components/DsList/index.d.ts +2 -1
- package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +18 -5
- package/dist/types/src/components/DsLoading/config.d.ts +1 -1
- package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -1
- package/dist/types/src/components/DsLoading/index.d.ts +1 -0
- package/dist/types/src/components/DsLoading/safelist.d.ts +1 -1
- package/dist/types/src/components/DsModal/DsModal.vue.d.ts +17 -10
- package/dist/types/src/components/DsModal/config.d.ts +1 -1
- package/dist/types/src/components/DsModal/dsModalStyles.d.ts +25 -16
- package/dist/types/src/components/DsModal/index.d.ts +4 -2
- package/dist/types/src/components/DsModal/safelist.d.ts +15 -1
- package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +15 -7
- package/dist/types/src/components/DsNavbar/config.d.ts +1 -1
- package/dist/types/src/components/DsNavbar/index.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +17 -5
- package/dist/types/src/components/DsNumberInput/config.d.ts +1 -1
- package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +5 -1
- package/dist/types/src/components/DsNumberInput/index.d.ts +2 -1
- package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -1
- package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +10 -4
- package/dist/types/src/components/DsPagination/config.d.ts +1 -1
- package/dist/types/src/components/DsPagination/index.d.ts +1 -2
- package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +11 -4
- package/dist/types/src/components/DsProgressBar/config.d.ts +1 -1
- package/dist/types/src/components/DsProgressBar/config.node.d.ts +1 -0
- package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +0 -4
- package/dist/types/src/components/DsProgressBar/index.d.ts +2 -1
- package/dist/types/src/components/DsProgressBar/safelist.d.ts +4 -1
- package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +33 -7
- package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -1
- package/dist/types/src/components/DsPromptDialog/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +18 -6
- package/dist/types/src/components/DsRadio/config.d.ts +1 -1
- package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +9 -2
- package/dist/types/src/components/DsRadio/index.d.ts +1 -1
- package/dist/types/src/components/DsRadio/safelist.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +16 -6
- package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -1
- package/dist/types/src/components/DsRadioGroup/index.d.ts +1 -2
- package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +10 -4
- package/dist/types/src/components/DsSegmented/config.d.ts +1 -1
- package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +13 -17
- package/dist/types/src/components/DsSegmented/index.d.ts +1 -0
- package/dist/types/src/components/DsSegmented/safelist.d.ts +17 -1
- package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +13 -5
- package/dist/types/src/components/DsSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +5 -1
- package/dist/types/src/components/DsSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsSelect/safelist.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +20 -7
- package/dist/types/src/components/DsSidebar/config.d.ts +1 -1
- package/dist/types/src/components/DsSidebar/index.d.ts +1 -2
- package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +10 -4
- package/dist/types/src/components/DsSkeleton/config.d.ts +1 -1
- package/dist/types/src/components/DsSkeleton/index.d.ts +1 -2
- package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +10 -5
- package/dist/types/src/components/DsSwitch/config.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +10 -10
- package/dist/types/src/components/DsSwitch/index.d.ts +1 -1
- package/dist/types/src/components/DsSwitch/safelist.d.ts +10 -1
- package/dist/types/src/components/DsTable/DsTable.vue.d.ts +67 -4
- package/dist/types/src/components/DsTable/config.d.ts +1 -1
- package/dist/types/src/components/DsTable/index.d.ts +1 -1
- package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +4 -3
- package/dist/types/src/components/DsTabs/config.d.ts +1 -1
- package/dist/types/src/components/DsTabs/index.d.ts +1 -2
- package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +16 -1
- package/dist/types/src/components/DsTextarea/config.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +1 -1
- package/dist/types/src/components/DsTextarea/index.d.ts +1 -0
- package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -1
- package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +41 -1
- package/dist/types/src/components/DsToaster/config.d.ts +1 -1
- package/dist/types/src/components/DsToaster/dsToasterStyles.d.ts +2 -0
- package/dist/types/src/components/DsToaster/index.d.ts +2 -0
- package/dist/types/src/components/DsToaster/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +5 -4
- package/dist/types/src/components/DsTooltip/config.d.ts +1 -1
- package/dist/types/src/components/DsTooltip/index.d.ts +1 -1
- package/dist/types/src/components/DsTree/config.d.ts +1 -1
- package/dist/types/src/components/DsTree/dsTreeProps.d.ts +6 -0
- package/dist/types/src/components/DsTree/safelist.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +3 -27
- package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +2 -1
- package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +31 -1
- package/dist/types/src/components/DsTreeSelect/index.d.ts +1 -1
- package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -1
- package/dist/types/src/composables/useToast.d.ts +4 -0
- package/dist/types/src/directives/globalDirectives.d.ts +1 -1
- package/dist/types/src/granular-provider/index.d.ts +3 -0
- package/dist/types/src/granular-provider/node.d.ts +3 -0
- package/dist/types/src/granular-provider/shared.d.ts +85 -0
- package/dist/types/src/i18n/messages.d.ts +12 -0
- package/dist/types/src/index.d.ts +11 -16
- package/dist/types/src/vue/index.d.ts +2 -0
- package/dist/types/src/vue/plugin.d.ts +92 -0
- package/dist/vue/index.js +47 -0
- package/package.json +73 -139
- package/dist/assets/granularity-2oOxNk_f.css +0 -2
- package/dist/chunks/DsCheckbox-Afg94qUm.js +0 -101
- package/dist/chunks/DsCollapse-DWfip4gp.js +0 -144
- package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +0 -87
- package/dist/chunks/DsDataTable-DgBkEgDK.js +0 -91
- package/dist/chunks/DsDialog-BAGAa9DN.js +0 -178
- package/dist/chunks/DsDrawer-gmVF_0I0.js +0 -112
- package/dist/chunks/DsEmptyState-BdLoQ0-z.js +0 -46
- package/dist/chunks/DsFileUpload-IwtpKocj.js +0 -282
- package/dist/chunks/DsFormFile-C5ldcCAs.js +0 -219
- package/dist/chunks/DsFormSection-DmIDIQg7.js +0 -18
- package/dist/chunks/DsIcon-Q-KQGAQU.js +0 -25
- package/dist/chunks/DsInputTag-DWip_-Cr.js +0 -201
- package/dist/chunks/DsLink-CWpVQ0ij.js +0 -56
- package/dist/chunks/DsList-XI8AAk9b.js +0 -31
- package/dist/chunks/DsModal-Bl9r6v33.js +0 -75
- package/dist/chunks/DsNavbar-DJ4bv_MR.js +0 -54
- package/dist/chunks/DsSegmented-BwQ8VnOZ.js +0 -250
- package/dist/chunks/DsSelect-DEHGeICn.js +0 -304
- package/dist/chunks/DsSidebar-BNLaBCYD.js +0 -18
- package/dist/chunks/DsTable-apqrsbxV.js +0 -10
- package/dist/chunks/DsTabs-B1kkklFS.js +0 -47
- package/dist/chunks/DsToaster-B9u2x_Ii.js +0 -48
- package/dist/chunks/DsTooltip-BqNVJw2f.js +0 -27
- package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +0 -319
- package/dist/chunks/componentConfig-CQndJxd1.js +0 -14
- package/dist/chunks/config-4vrmi-D0.js +0 -9
- package/dist/chunks/config-ANT_Zf3l.js +0 -18
- package/dist/chunks/config-B7HAOCA1.js +0 -33
- package/dist/chunks/config-B7yrZO9u.js +0 -18
- package/dist/chunks/config-B98-jCfY.js +0 -9
- package/dist/chunks/config-BDJ2JaFs.js +0 -9
- package/dist/chunks/config-BEzNFZ_R.js +0 -10
- package/dist/chunks/config-BKpHj94n.js +0 -13
- package/dist/chunks/config-BLYxW-WQ.js +0 -9
- package/dist/chunks/config-BS0vLD_L.js +0 -41
- package/dist/chunks/config-BXlW2GSa.js +0 -33
- package/dist/chunks/config-BY6edpDp.js +0 -9
- package/dist/chunks/config-BZDKypuQ.js +0 -8
- package/dist/chunks/config-BeJEy8yN.js +0 -9
- package/dist/chunks/config-BnryTLnh.js +0 -47
- package/dist/chunks/config-BqaCteFh2.js +0 -9
- package/dist/chunks/config-BusLdkqX.js +0 -8
- package/dist/chunks/config-CBo4aVMV.js +0 -8
- package/dist/chunks/config-CLyDbB2M.js +0 -14
- package/dist/chunks/config-CML-WrGM.js +0 -10
- package/dist/chunks/config-CVEwIRRR.js +0 -30
- package/dist/chunks/config-Ch0TH9wN.js +0 -42
- package/dist/chunks/config-ClPYX-LP.js +0 -24
- package/dist/chunks/config-DA3cYUSo.js +0 -8
- package/dist/chunks/config-DAiP4yeJ.js +0 -8
- package/dist/chunks/config-DG_de8vE.js +0 -15
- package/dist/chunks/config-DIgvSIEs.js +0 -9
- package/dist/chunks/config-DJ7xDo-q.js +0 -16
- package/dist/chunks/config-DSFnRpu82.js +0 -19
- package/dist/chunks/config-DVHe_id-.js +0 -22
- package/dist/chunks/config-DoT3gzx7.js +0 -9
- package/dist/chunks/config-DuaBaVyF.js +0 -34
- package/dist/chunks/config-F4Bb6hVJ.js +0 -30
- package/dist/chunks/config-aUoIf7kK.js +0 -28
- package/dist/chunks/config-cKk87ycz2.js +0 -14
- package/dist/chunks/config-kfb3OyGZ.js +0 -24
- package/dist/chunks/config-oDjY8ZrP2.js +0 -8
- package/dist/chunks/config-panSV6Wo.js +0 -9
- package/dist/chunks/dsDialogStyles-C7QOvzmt.js +0 -11
- package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +0 -9
- package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +0 -16
- package/dist/chunks/dsModalStyles-C7E5kJ1o.js +0 -54
- package/dist/chunks/dsSelectStyles-Bym0uW4f.js +0 -82
- package/dist/chunks/preset-DBXBjf5u.js +0 -2235
- package/dist/components/DsAlert/styles.css +0 -386
- package/dist/components/DsAvatar/styles.css +0 -373
- package/dist/components/DsBadge/styles.css +0 -422
- package/dist/components/DsBadgeWrap/styles.css +0 -378
- package/dist/components/DsBottomNav/styles.css +0 -388
- package/dist/components/DsButton/styles.css +0 -633
- package/dist/components/DsButton/tokens.css +0 -96
- package/dist/components/DsButtonGroup/styles.css +0 -23
- package/dist/components/DsCard/styles.css +0 -365
- package/dist/components/DsCheckbox/styles.css +0 -394
- package/dist/components/DsCollapse/styles.css +0 -399
- package/dist/components/DsConfirmDialog/styles.css +0 -595
- package/dist/components/DsDataTable/styles.css +0 -387
- package/dist/components/DsDialog/styles.css +0 -592
- package/dist/components/DsDrawer/styles.css +0 -579
- package/dist/components/DsDropdown/styles.css +0 -392
- package/dist/components/DsDropdownMenu/styles.css +0 -430
- package/dist/components/DsEmptyState/styles.css +0 -380
- package/dist/components/DsFileUpload/styles.css +0 -403
- package/dist/components/DsFormField/styles.css +0 -365
- package/dist/components/DsFormFile/styles.css +0 -555
- package/dist/components/DsFormSection/styles.css +0 -365
- package/dist/components/DsIcon/styles.css +0 -20
- package/dist/components/DsIcon/tokens.css +0 -3
- package/dist/components/DsImageViewer/styles.css +0 -465
- package/dist/components/DsInput/styles.css +0 -416
- package/dist/components/DsInputTag/styles.css +0 -498
- package/dist/components/DsLink/styles.css +0 -390
- package/dist/components/DsList/styles.css +0 -376
- package/dist/components/DsLoading/styles.css +0 -381
- package/dist/components/DsModal/styles.css +0 -404
- package/dist/components/DsNavbar/styles.css +0 -549
- package/dist/components/DsNumberInput/styles.css +0 -428
- package/dist/components/DsPagination/styles.css +0 -637
- package/dist/components/DsProgressBar/styles.css +0 -398
- package/dist/components/DsProgressBar/tokens.css +0 -23
- package/dist/components/DsPromptDialog/styles.css +0 -622
- package/dist/components/DsRadio/styles.css +0 -558
- package/dist/components/DsRadioGroup/styles.css +0 -560
- package/dist/components/DsSegmented/styles.css +0 -422
- package/dist/components/DsSegmented/tokens.css +0 -9
- package/dist/components/DsSelect/styles.css +0 -483
- package/dist/components/DsSidebar/styles.css +0 -370
- package/dist/components/DsSkeleton/styles.css +0 -363
- package/dist/components/DsSwitch/styles.css +0 -393
- package/dist/components/DsTable/styles.css +0 -369
- package/dist/components/DsTabs/styles.css +0 -390
- package/dist/components/DsTextarea/styles.css +0 -382
- package/dist/components/DsToaster/styles.css +0 -558
- package/dist/components/DsTooltip/styles.css +0 -388
- package/dist/components/DsTree/styles.css +0 -375
- package/dist/components/DsTreeSelect/styles.css +0 -466
- package/dist/composables/useTheme.js +0 -44
- package/dist/composables/useToast.js +0 -37
- package/dist/directives/autofocus.js +0 -46
- package/dist/directives/autosize.js +0 -62
- package/dist/directives/clickOutside.js +0 -82
- package/dist/directives/dropzone.js +0 -110
- package/dist/directives/globalDirectives.js +0 -0
- package/dist/directives/hotkey.js +0 -104
- package/dist/directives/loading.js +0 -125
- package/dist/directives.js +0 -7
- package/dist/foundation.css +0 -358
- package/dist/i18n.js +0 -9
- package/dist/package.json +0 -293
- package/dist/styles/base.css +0 -33
- package/dist/styles/themes/dark.css +0 -102
- package/dist/styles/themes/light.css +0 -98
- package/dist/styles/tokens.css +0 -118
- package/dist/styles.css +0 -1134
- package/dist/types/src/components/DsAlert/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +0 -1
- package/dist/types/src/components/DsBottomNav/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButton/styles.css.d.ts +0 -4
- package/dist/types/src/components/DsButtonGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsCard/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCheckbox/safelist.d.ts +0 -1
- package/dist/types/src/components/DsCollapse/safelist.d.ts +0 -1
- package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDataTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +0 -1
- package/dist/types/src/components/DsEmptyState/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFileUpload/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +0 -1
- package/dist/types/src/components/DsFormFile/safelist.d.ts +0 -1
- package/dist/types/src/components/DsFormSection/safelist.d.ts +0 -1
- package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +0 -2
- package/dist/types/src/components/DsIcon/styles.css.d.ts +0 -5
- package/dist/types/src/components/DsImageViewer/safelist.d.ts +0 -1
- package/dist/types/src/components/DsList/safelist.d.ts +0 -1
- package/dist/types/src/components/DsModal/styles.css.d.ts +0 -3
- package/dist/types/src/components/DsNavbar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPagination/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/safelist.d.ts +0 -1
- package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsRadioGroup/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSelect/styles.css.d.ts +0 -1
- package/dist/types/src/components/DsSidebar/safelist.d.ts +0 -1
- package/dist/types/src/components/DsSkeleton/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTable/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTabs/safelist.d.ts +0 -1
- package/dist/types/src/components/DsTooltip/safelist.d.ts +0 -1
- package/dist/types/src/registry/componentConfig.d.ts +0 -17
- package/dist/types/src/registry/componentCss.d.ts +0 -3
- package/dist/types/src/registry/componentCss.node.d.ts +0 -5
- package/dist/types/src/registry/components.d.ts +0 -56
- package/dist/types/src/registry/safelist.d.ts +0 -11
- package/dist/types/src/theming/themeRegistry.d.ts +0 -19
- package/dist/types/src/theming/themeRegistry.node.d.ts +0 -14
- package/dist/types/src/unocss/preset.d.ts +0 -18
- package/dist/types/src/unocss/preset.node.d.ts +0 -15
- package/dist/types/src/unocss/rules/animation.d.ts +0 -3
- package/dist/types/src/unocss/rules/colorOpacity.d.ts +0 -2
- package/dist/types/src/unocss/rules/filters.d.ts +0 -8
- package/dist/types/src/unocss/rules/spacing.d.ts +0 -8
- package/dist/uno-node.js +0 -103
- package/dist/uno.js +0 -2
- package/web-types.json +0 -100
- /package/dist/chunks/{_plugin-vue_export-helper-DOgycIVc.js → _plugin-vue_export-helper-CHO2XVys.js} +0 -0
- /package/dist/chunks/{adapter-BKKNB3Ii.js → adapter-veOBOjv3.js} +0 -0
- /package/dist/chunks/{arrow-up-B4OlmAKz.js → arrow-up-Dv3dC3hu.js} +0 -0
- /package/dist/chunks/{info-CmLOtVnO.js → info-CNJnuTYC.js} +0 -0
- /package/dist/chunks/{loader-circle-DtXjkqR7.js → loader-circle-C5vCCMfB.js} +0 -0
- /package/dist/chunks/{x-dGjszOU2.js → x--kxrj3ez.js} +0 -0
- /package/dist/chunks/{x-circle-BZnfL2nz.js → x-circle-ChJ87u1v.js} +0 -0
- /package/dist/{chunks/DsBadgeWrap-UgP-TMdA.js → components/DsBadgeWrap/chunks/DsBadgeWrap-DO8TjFYg.js} +0 -0
- /package/dist/{chunks/DsBottomNav-Dze5cFVz.js → components/DsBottomNav/chunks/DsBottomNav-NRtHfcmQ.js} +0 -0
- /package/dist/{chunks/DsFormField-XVZK7YVU.js → components/DsFormField/chunks/DsFormField-QvWyAReX.js} +0 -0
- /package/dist/types/src/components/DsDialog/{dsDialogStyles.d.ts → safelist.d.ts} +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { t as e } from "../../../chunks/x--kxrj3ez.js";
|
|
2
|
+
import { t } from "../../DsBadge/chunks/DsBadge-B9aZxvZb.js";
|
|
3
|
+
import { t as n } from "../../DsIcon/chunks/DsIcon-Bk6qc4Kh.js";
|
|
4
|
+
import { i as r, r as i } from "../../../chunks/config-C0CVsc4Y.js";
|
|
5
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, withCtx as b, withModifiers as x } from "vue";
|
|
6
|
+
//#region src/components/DsInputTag/DsInputTag.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var S = { class: "truncate max-w-[18rem]" }, C = [
|
|
8
|
+
"aria-label",
|
|
9
|
+
"data-index",
|
|
10
|
+
"onClick"
|
|
11
|
+
], w = [
|
|
12
|
+
"value",
|
|
13
|
+
"disabled",
|
|
14
|
+
"readonly",
|
|
15
|
+
"placeholder",
|
|
16
|
+
"aria-invalid"
|
|
17
|
+
], T = /* @__PURE__ */ f({
|
|
18
|
+
__name: "DsInputTag",
|
|
19
|
+
props: {
|
|
20
|
+
modelValue: {},
|
|
21
|
+
placeholder: { default: void 0 },
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
readonly: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
invalid: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
state: { default: "default" },
|
|
35
|
+
size: { default: "md" },
|
|
36
|
+
separators: { default: () => [","] },
|
|
37
|
+
allowDuplicates: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
41
|
+
trim: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
max: { default: void 0 },
|
|
46
|
+
addOnBlur: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
clearInputOnAdd: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
tagTone: { default: "neutral" },
|
|
55
|
+
tagDark: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1
|
|
58
|
+
},
|
|
59
|
+
tagSize: { default: "md" },
|
|
60
|
+
tagRadius: { default: "round" },
|
|
61
|
+
tagClosable: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: !0
|
|
64
|
+
},
|
|
65
|
+
removeTagLabel: { default: "Remove tag" }
|
|
66
|
+
},
|
|
67
|
+
emits: [
|
|
68
|
+
"update:modelValue",
|
|
69
|
+
"add",
|
|
70
|
+
"remove"
|
|
71
|
+
],
|
|
72
|
+
setup(f, { expose: T, emit: E }) {
|
|
73
|
+
let D = /[.*+?^${}()|[\]\\]/g, O = f, k = E, A = h(""), j = h(null);
|
|
74
|
+
function M() {
|
|
75
|
+
j.value?.focus();
|
|
76
|
+
}
|
|
77
|
+
T({ focus: M });
|
|
78
|
+
let N = o(() => O.max !== void 0 && O.modelValue.length >= O.max), P = o(() => !O.disabled && !O.readonly), F = o(() => O.tagClosable && P.value);
|
|
79
|
+
function I(e) {
|
|
80
|
+
return e.replace(D, "\\$&");
|
|
81
|
+
}
|
|
82
|
+
let L = o(() => {
|
|
83
|
+
let e = (O.separators ?? []).filter(Boolean).map((e) => e[0]), t = [...new Set([
|
|
84
|
+
...e,
|
|
85
|
+
"\n",
|
|
86
|
+
"\r",
|
|
87
|
+
" "
|
|
88
|
+
])].map(I).join("");
|
|
89
|
+
return RegExp(`[${t}]+`, "g");
|
|
90
|
+
});
|
|
91
|
+
function R(e) {
|
|
92
|
+
return O.trim ? e.trim() : e;
|
|
93
|
+
}
|
|
94
|
+
function z(e) {
|
|
95
|
+
return e.split(L.value).map((e) => R(e)).filter(Boolean);
|
|
96
|
+
}
|
|
97
|
+
function B(e) {
|
|
98
|
+
if (!P.value || N.value) return !1;
|
|
99
|
+
let t = O.modelValue.slice(), n = !1;
|
|
100
|
+
for (let r of e) {
|
|
101
|
+
let e = R(r);
|
|
102
|
+
if (e && !(!O.allowDuplicates && t.includes(e))) {
|
|
103
|
+
if (O.max !== void 0 && t.length >= O.max) break;
|
|
104
|
+
t.push(e), n = !0, k("add", e);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return n ? (k("update:modelValue", t), !0) : !1;
|
|
108
|
+
}
|
|
109
|
+
function V() {
|
|
110
|
+
if (!P.value || N.value || !A.value) return;
|
|
111
|
+
let e = z(A.value);
|
|
112
|
+
e.length && B(e) && O.clearInputOnAdd && (A.value = "");
|
|
113
|
+
}
|
|
114
|
+
function H(e) {
|
|
115
|
+
if (!P.value) return;
|
|
116
|
+
let t = O.modelValue.slice(), n = t[e];
|
|
117
|
+
n !== void 0 && (t.splice(e, 1), k("update:modelValue", t), k("remove", n, e));
|
|
118
|
+
}
|
|
119
|
+
function U(e) {
|
|
120
|
+
A.value = e.target.value;
|
|
121
|
+
}
|
|
122
|
+
function W(e) {
|
|
123
|
+
if (P.value) {
|
|
124
|
+
if (e.key === "Enter") {
|
|
125
|
+
e.preventDefault(), V();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if ((O.separators ?? []).includes(e.key)) {
|
|
129
|
+
e.preventDefault(), V();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
e.key === "Backspace" && A.value.length === 0 && O.modelValue.length > 0 && (e.preventDefault(), H(O.modelValue.length - 1));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function G() {
|
|
136
|
+
O.addOnBlur && V();
|
|
137
|
+
}
|
|
138
|
+
function K(e) {
|
|
139
|
+
if (!P.value || N.value) return;
|
|
140
|
+
let t = e.clipboardData?.getData("text");
|
|
141
|
+
if (!t) return;
|
|
142
|
+
let n = z(t);
|
|
143
|
+
n.length <= 1 || (e.preventDefault(), B(n));
|
|
144
|
+
}
|
|
145
|
+
let q = o(() => r({
|
|
146
|
+
size: O.size,
|
|
147
|
+
state: O.state,
|
|
148
|
+
invalid: O.invalid,
|
|
149
|
+
disabled: O.disabled
|
|
150
|
+
})), J = o(() => i(O.size)), Y = o(() => O.modelValue.length > 0 ? void 0 : O.placeholder);
|
|
151
|
+
return (r, i) => (m(), l("div", {
|
|
152
|
+
"data-ds-input-tag": "",
|
|
153
|
+
"data-testid": "ds-input-tag",
|
|
154
|
+
class: p(["w-full flex flex-wrap items-center rounded-md border bg-[var(--bg)] text-[var(--fg)] transition-colors duration-150 focus-within:ring-2 focus-within:ring-[var(--ring)]", q.value]),
|
|
155
|
+
onClick: M
|
|
156
|
+
}, [(m(!0), l(a, null, g(f.modelValue, (a, o) => (m(), s(t, {
|
|
157
|
+
key: `${a}-${o}`,
|
|
158
|
+
tone: f.tagTone,
|
|
159
|
+
dark: f.tagDark,
|
|
160
|
+
size: f.tagSize,
|
|
161
|
+
radius: f.tagRadius,
|
|
162
|
+
class: "gap-1",
|
|
163
|
+
"data-ds-input-tag-item": "",
|
|
164
|
+
"data-testid": "ds-input-tag-item",
|
|
165
|
+
"data-index": o
|
|
166
|
+
}, {
|
|
167
|
+
default: b(() => [_(r.$slots, "tag", {
|
|
168
|
+
tag: a,
|
|
169
|
+
index: o,
|
|
170
|
+
remove: () => H(o)
|
|
171
|
+
}, () => [u("span", S, v(a), 1)]), F.value ? (m(), l("button", {
|
|
172
|
+
key: 0,
|
|
173
|
+
type: "button",
|
|
174
|
+
class: "-mr-0.5 inline-flex items-center justify-center rounded-[6px] p-0.5 opacity-70 hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]",
|
|
175
|
+
"aria-label": f.removeTagLabel,
|
|
176
|
+
"data-ds-input-tag-remove": "",
|
|
177
|
+
"data-testid": "ds-input-tag-remove",
|
|
178
|
+
"data-index": o,
|
|
179
|
+
onMousedown: i[0] ||= x(() => {}, ["prevent", "stop"]),
|
|
180
|
+
onClick: x((e) => H(o), ["stop"])
|
|
181
|
+
}, [d(n, {
|
|
182
|
+
size: "sm",
|
|
183
|
+
"aria-hidden": "true"
|
|
184
|
+
}, {
|
|
185
|
+
default: b(() => [d(y(e))]),
|
|
186
|
+
_: 1
|
|
187
|
+
})], 40, C)) : c("", !0)]),
|
|
188
|
+
_: 2
|
|
189
|
+
}, 1032, [
|
|
190
|
+
"tone",
|
|
191
|
+
"dark",
|
|
192
|
+
"size",
|
|
193
|
+
"radius",
|
|
194
|
+
"data-index"
|
|
195
|
+
]))), 128)), u("input", {
|
|
196
|
+
ref_key: "inputEl",
|
|
197
|
+
ref: j,
|
|
198
|
+
"data-ds-input-tag-input": "",
|
|
199
|
+
"data-testid": "ds-input-tag-input",
|
|
200
|
+
value: A.value,
|
|
201
|
+
disabled: f.disabled || N.value,
|
|
202
|
+
readonly: f.readonly,
|
|
203
|
+
placeholder: Y.value,
|
|
204
|
+
"aria-invalid": f.invalid ? "true" : void 0,
|
|
205
|
+
class: p(["flex-1 min-w-[120px] bg-transparent border-none outline-none placeholder:text-[var(--muted-fg)]", J.value]),
|
|
206
|
+
onInput: U,
|
|
207
|
+
onKeydown: W,
|
|
208
|
+
onBlur: G,
|
|
209
|
+
onPaste: K
|
|
210
|
+
}, null, 42, w)], 2));
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
//#endregion
|
|
214
|
+
export { T as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-C0CVsc4Y.js";
|
|
2
|
+
import { t as n } from "./chunks/DsInputTag-DVmvJ0A_.js";
|
|
3
3
|
export { n as DsInputTag, n as default, t as dsInputTagConfig, e as dsInputTagSafelist };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { a as e, i as t, r as n } from "../../../chunks/config-ltfe9Xvy.js";
|
|
2
|
+
import { computed as r, createElementBlock as i, defineComponent as a, mergeProps as o, openBlock as s, renderSlot as c, unref as l, useAttrs as u } from "vue";
|
|
3
|
+
//#region src/components/DsLink/DsLink.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = [
|
|
5
|
+
"href",
|
|
6
|
+
"target",
|
|
7
|
+
"rel",
|
|
8
|
+
"aria-label"
|
|
9
|
+
], f = ["aria-label", "aria-disabled"], p = /* @__PURE__ */ a({
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "DsLink",
|
|
12
|
+
props: {
|
|
13
|
+
href: { default: void 0 },
|
|
14
|
+
external: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
target: { default: void 0 },
|
|
19
|
+
rel: { default: void 0 },
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
ariaLabel: { default: void 0 },
|
|
25
|
+
variant: { default: "primary" },
|
|
26
|
+
underline: { default: "auto" },
|
|
27
|
+
size: { default: "md" }
|
|
28
|
+
},
|
|
29
|
+
setup(a) {
|
|
30
|
+
let p = a, m = u(), h = r(() => !!p.href && !p.disabled), g = r(() => {
|
|
31
|
+
if (p.target) return p.target;
|
|
32
|
+
if (p.external) return "_blank";
|
|
33
|
+
}), _ = r(() => {
|
|
34
|
+
if (p.rel) return p.rel;
|
|
35
|
+
if (g.value === "_blank") return "noopener noreferrer";
|
|
36
|
+
}), v = r(() => {
|
|
37
|
+
let r = t({
|
|
38
|
+
size: p.size,
|
|
39
|
+
underline: p.underline,
|
|
40
|
+
variant: p.variant,
|
|
41
|
+
disabled: p.disabled
|
|
42
|
+
});
|
|
43
|
+
return p.disabled ? `${n} ${r}` : `${n} ${e} ${r}`;
|
|
44
|
+
});
|
|
45
|
+
return (e, t) => h.value ? (s(), i("a", o({ key: 0 }, l(m), {
|
|
46
|
+
href: a.href,
|
|
47
|
+
target: g.value,
|
|
48
|
+
rel: _.value,
|
|
49
|
+
"aria-label": a.ariaLabel,
|
|
50
|
+
class: v.value
|
|
51
|
+
}), [c(e.$slots, "default")], 16, d)) : (s(), i("span", o({ key: 1 }, l(m), {
|
|
52
|
+
"aria-label": a.ariaLabel,
|
|
53
|
+
"aria-disabled": a.disabled ? "true" : void 0,
|
|
54
|
+
class: v.value
|
|
55
|
+
}), [c(e.$slots, "default")], 16, f));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
|
+
export { p as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as n } from "
|
|
1
|
+
import { n as e, t } from "../../chunks/config-ltfe9Xvy.js";
|
|
2
|
+
import { t as n } from "./chunks/DsLink-DXClMbuX.js";
|
|
3
3
|
export { n as DsLink, n as default, t as dsLinkConfig, e as dsLinkSafelist };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as e } from "../../DsCard/chunks/DsCard-Bnelx1JF.js";
|
|
2
|
+
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, unref as f, useSlots as p, withCtx as m } from "vue";
|
|
3
|
+
//#region src/components/DsList/DsList.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = {
|
|
5
|
+
key: 0,
|
|
6
|
+
role: "list",
|
|
7
|
+
class: "divide-y divide-[var(--brd)]"
|
|
8
|
+
}, g = {
|
|
9
|
+
key: 1,
|
|
10
|
+
role: "list"
|
|
11
|
+
}, _ = /* @__PURE__ */ s({
|
|
12
|
+
__name: "DsList",
|
|
13
|
+
props: { divided: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: !0
|
|
16
|
+
} },
|
|
17
|
+
setup(t) {
|
|
18
|
+
return (r, a) => (l(), n(f(e), null, {
|
|
19
|
+
default: m(() => [t.divided ? (l(), i("div", h, [u(r.$slots, "default")])) : (l(), i("div", g, [u(r.$slots, "default")]))]),
|
|
20
|
+
_: 3
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
}), v = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "shrink-0"
|
|
26
|
+
}, y = { class: "min-w-0 flex-1" }, b = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "text-[13px] font-700"
|
|
29
|
+
}, x = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "text-[13px] text-[var(--muted-fg)] mt-0.5"
|
|
32
|
+
}, S = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "shrink-0"
|
|
35
|
+
}, C = /* @__PURE__ */ s({
|
|
36
|
+
__name: "DsListItem",
|
|
37
|
+
props: {
|
|
38
|
+
title: { default: void 0 },
|
|
39
|
+
description: { default: void 0 },
|
|
40
|
+
density: { default: "regular" }
|
|
41
|
+
},
|
|
42
|
+
setup(e) {
|
|
43
|
+
let n = e, s = p(), f = t(() => n.density === "compact" ? "px-4 py-2" : "px-4 py-3"), m = t(() => !!s.title || !!n.title), h = t(() => !!s.description || !!n.description);
|
|
44
|
+
return (t, n) => (l(), i("div", {
|
|
45
|
+
role: "listitem",
|
|
46
|
+
class: c(["flex items-start justify-between gap-4", f.value])
|
|
47
|
+
}, [
|
|
48
|
+
t.$slots.prefix ? (l(), i("div", v, [u(t.$slots, "prefix")])) : r("", !0),
|
|
49
|
+
a("div", y, [m.value ? (l(), i("div", b, [u(t.$slots, "title", {}, () => [o(d(e.title), 1)])])) : r("", !0), h.value ? (l(), i("div", x, [u(t.$slots, "description", {}, () => [o(d(e.description), 1)])])) : r("", !0)]),
|
|
50
|
+
t.$slots.default ? (l(), i("div", S, [u(t.$slots, "default")])) : r("", !0)
|
|
51
|
+
], 2));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
export { _ as n, C as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsList, e as default, t as DsListItem,
|
|
1
|
+
import { n as e, t } from "./chunks/DsList-BEuPowc2.js";
|
|
2
|
+
import { t as n } from "../../chunks/config-DN1-oywd.js";
|
|
3
|
+
export { e as DsList, e as default, t as DsListItem, n as dsListConfig };
|
package/dist/{chunks/DsLoading-ogfmbPE4.js → components/DsLoading/chunks/DsLoading-uYpDF-nK.js}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import { t } from "
|
|
1
|
+
import { t as e } from "../../../chunks/loader-circle-C5vCCMfB.js";
|
|
2
|
+
import { t } from "../../../chunks/dsLoadingStyles-lw20OWhs.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, resolveDynamicComponent as d, toDisplayString as f } from "vue";
|
|
4
|
-
|
|
5
|
-
var p = {
|
|
6
|
-
|
|
7
|
-
class: "text-
|
|
4
|
+
import '../../../DsLoading.css';//#region src/components/DsLoading/DsLoading.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var p = {
|
|
6
|
+
"data-ds-loading-panel": "",
|
|
7
|
+
class: "flex flex-col items-center justify-center gap-2 text-center rounded-lg bg-[var(--bg)]/55 px-5 py-4 shadow-lg"
|
|
8
|
+
}, m = {
|
|
9
|
+
key: 0,
|
|
10
|
+
"data-ds-loading-text": "",
|
|
11
|
+
class: "text-sm text-[var(--muted-fg)]"
|
|
8
12
|
}, h = "Loading...", g = /* @__PURE__ */ s({
|
|
9
13
|
__name: "DsLoading",
|
|
10
14
|
props: {
|
|
@@ -24,7 +28,7 @@ var p = { class: "flex flex-col items-center justify-center gap-2 px-4 text-cent
|
|
|
24
28
|
customClass: { default: void 0 }
|
|
25
29
|
},
|
|
26
30
|
setup(s) {
|
|
27
|
-
let g = s, _ = n(() => g.spinner ?? e), v = n(() => g.text
|
|
31
|
+
let g = s, _ = n(() => g.spinner ?? e), v = n(() => g.text ?? h), y = n(() => t({
|
|
28
32
|
fullscreen: g.fullscreen,
|
|
29
33
|
hasBackground: g.background !== void 0,
|
|
30
34
|
customClass: g.customClass
|
|
@@ -38,13 +42,9 @@ var p = { class: "flex flex-col items-center justify-center gap-2 px-4 text-cent
|
|
|
38
42
|
style: l(b.value),
|
|
39
43
|
role: "status",
|
|
40
44
|
"aria-live": "polite"
|
|
41
|
-
}, [o("div", p, [
|
|
42
|
-
|
|
43
|
-
class: c(["ds-loading__spinner
|
|
44
|
-
"aria-hidden": "true"
|
|
45
|
-
}, null, 8, ["class"])) : (u(), r(d(_.value), {
|
|
46
|
-
key: 1,
|
|
47
|
-
class: c(["ds-loading__spinner h-7 w-7 text-[var(--muted-fg)]", x.value]),
|
|
45
|
+
}, [o("div", p, [(u(), r(d(_.value), {
|
|
46
|
+
"data-ds-loading-spinner": "",
|
|
47
|
+
class: c(["ds-loading__spinner h-7 w-7 text-[var(--muted-fg)]", [s.animated ? "ds-loading__spinner--animated" : "", x.value]]),
|
|
48
48
|
"aria-hidden": "true"
|
|
49
49
|
}, null, 8, ["class"])), v.value ? (u(), a("div", m, f(v.value), 1)) : i("", !0)])], 6));
|
|
50
50
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../../chunks/
|
|
3
|
-
|
|
4
|
-
export { t as DsLoading, t as default, n as dsLoadingConfig, e as dsLoadingSafelist };
|
|
1
|
+
import { t as e } from "./chunks/DsLoading-uYpDF-nK.js";
|
|
2
|
+
import { n as t, t as n } from "../../chunks/config-D3ihNj1i.js";
|
|
3
|
+
export { e as DsLoading, e as default, n as dsLoadingConfig, t as dsLoadingSafelist };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../chunks/transition-BJXMi52x.js";
|
|
2
|
+
import { c as o, d as s, i as c, n as l, r as u, t as d, u as f } from "../../../chunks/dsModalStyles-DovGcwjh.js";
|
|
3
|
+
import { Teleport as p, computed as m, createBlock as h, createCommentVNode as g, createElementVNode as _, createVNode as v, defineComponent as y, normalizeClass as b, onBeforeUnmount as x, openBlock as S, ref as C, renderSlot as w, unref as T, watch as E, withCtx as D } from "vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/DsModal/DsModal.vue
|
|
6
|
+
var O = /* @__PURE__ */ y({
|
|
7
|
+
__name: "DsModal",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
closeOnBackdrop: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
closeOnEsc: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
size: { default: "md" }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:modelValue"],
|
|
21
|
+
setup(y, { emit: O }) {
|
|
22
|
+
let k = y, A = O, j = m(() => d(k.size)), M = typeof window < "u", N = C(null);
|
|
23
|
+
function P() {
|
|
24
|
+
A("update:modelValue", !1);
|
|
25
|
+
}
|
|
26
|
+
function F() {
|
|
27
|
+
let e = N.value;
|
|
28
|
+
if (N.value = null, e === "esc") {
|
|
29
|
+
k.closeOnEsc && P();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
k.closeOnBackdrop && P();
|
|
33
|
+
}
|
|
34
|
+
function I(e) {
|
|
35
|
+
e.key === "Escape" && (N.value = "esc");
|
|
36
|
+
}
|
|
37
|
+
function L() {
|
|
38
|
+
N.value = "backdrop";
|
|
39
|
+
}
|
|
40
|
+
let R = null;
|
|
41
|
+
function z() {
|
|
42
|
+
M && R === null && (R = document.body.style.overflow, document.body.style.overflow = "hidden");
|
|
43
|
+
}
|
|
44
|
+
function B() {
|
|
45
|
+
M && R !== null && (document.body.style.overflow = R, R = null);
|
|
46
|
+
}
|
|
47
|
+
return E(() => k.modelValue, (e) => {
|
|
48
|
+
e ? z() : B();
|
|
49
|
+
}, { immediate: !0 }), x(B), (d, m) => (S(), h(p, {
|
|
50
|
+
to: "body",
|
|
51
|
+
disabled: !M
|
|
52
|
+
}, [v(T(a), {
|
|
53
|
+
show: y.modelValue,
|
|
54
|
+
as: "template"
|
|
55
|
+
}, {
|
|
56
|
+
default: D(() => [v(T(r), {
|
|
57
|
+
as: "div",
|
|
58
|
+
class: b(T(f)),
|
|
59
|
+
onClose: F,
|
|
60
|
+
onKeydownCapture: I
|
|
61
|
+
}, {
|
|
62
|
+
default: D(() => [_("div", { class: b(T(s)) }, [_("div", { class: b(T(l)) }, [v(T(n), {
|
|
63
|
+
as: "template",
|
|
64
|
+
enter: T(c).enter,
|
|
65
|
+
"enter-from": T(c).enterFrom,
|
|
66
|
+
"enter-to": T(c).enterTo,
|
|
67
|
+
leave: T(c).leave,
|
|
68
|
+
"leave-from": T(c).leaveFrom,
|
|
69
|
+
"leave-to": T(c).leaveTo
|
|
70
|
+
}, {
|
|
71
|
+
default: D(() => [_("div", {
|
|
72
|
+
"data-ds-modal-overlay": "",
|
|
73
|
+
class: b(T(u)),
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
onPointerdown: L
|
|
76
|
+
}, null, 34)]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, [
|
|
79
|
+
"enter",
|
|
80
|
+
"enter-from",
|
|
81
|
+
"enter-to",
|
|
82
|
+
"leave",
|
|
83
|
+
"leave-from",
|
|
84
|
+
"leave-to"
|
|
85
|
+
]), v(T(n), {
|
|
86
|
+
as: "template",
|
|
87
|
+
enter: T(o).enter,
|
|
88
|
+
"enter-from": T(o).enterFrom,
|
|
89
|
+
"enter-to": T(o).enterTo,
|
|
90
|
+
leave: T(o).leave,
|
|
91
|
+
"leave-from": T(o).leaveFrom,
|
|
92
|
+
"leave-to": T(o).leaveTo
|
|
93
|
+
}, {
|
|
94
|
+
default: D(() => [v(T(i), {
|
|
95
|
+
"data-ds-modal-panel": "",
|
|
96
|
+
tabindex: "-1",
|
|
97
|
+
class: b(j.value)
|
|
98
|
+
}, {
|
|
99
|
+
default: D(() => [
|
|
100
|
+
d.$slots.title ? (S(), h(T(e), {
|
|
101
|
+
key: 0,
|
|
102
|
+
as: "div",
|
|
103
|
+
"data-ds-modal-title": ""
|
|
104
|
+
}, {
|
|
105
|
+
default: D(() => [w(d.$slots, "title")]),
|
|
106
|
+
_: 3
|
|
107
|
+
})) : g("", !0),
|
|
108
|
+
d.$slots.description ? (S(), h(T(t), {
|
|
109
|
+
key: 1,
|
|
110
|
+
as: "div",
|
|
111
|
+
"data-ds-modal-description": ""
|
|
112
|
+
}, {
|
|
113
|
+
default: D(() => [w(d.$slots, "description")]),
|
|
114
|
+
_: 3
|
|
115
|
+
})) : g("", !0),
|
|
116
|
+
w(d.$slots, "default")
|
|
117
|
+
]),
|
|
118
|
+
_: 3
|
|
119
|
+
}, 8, ["class"])]),
|
|
120
|
+
_: 3
|
|
121
|
+
}, 8, [
|
|
122
|
+
"enter",
|
|
123
|
+
"enter-from",
|
|
124
|
+
"enter-to",
|
|
125
|
+
"leave",
|
|
126
|
+
"leave-from",
|
|
127
|
+
"leave-to"
|
|
128
|
+
])], 2)], 2)]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 8, ["class"])]),
|
|
131
|
+
_: 3
|
|
132
|
+
}, 8, ["show"])], 8, ["disabled"]));
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
//#endregion
|
|
136
|
+
export { O as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t
|
|
3
|
-
import { t as i } from "../../chunks/config-
|
|
4
|
-
export {
|
|
1
|
+
import { t as e } from "../../chunks/dsModalStyles-DovGcwjh.js";
|
|
2
|
+
import { t } from "./chunks/DsModal-B2DLXV7F.js";
|
|
3
|
+
import { n, r, t as i } from "../../chunks/config-Zksyb5FX.js";
|
|
4
|
+
export { t as DsModal, t as default, n as dsModalClassTokens, i as dsModalConfig, r as dsModalSafelist, e as getDsModalPanelClass };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as e } from "../../DsButton/chunks/DsButton-9cB_fHZt.js";
|
|
2
|
+
import { t } from "../../DsIcon/chunks/DsIcon-Bk6qc4Kh.js";
|
|
3
|
+
import { t as n } from "../../../chunks/granularityI18n-DYNnonoE.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, markRaw as d, normalizeClass as f, openBlock as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
|
|
5
|
+
//#region ~icons/lucide/menu
|
|
6
|
+
var v = {
|
|
7
|
+
viewBox: "0 0 24 24",
|
|
8
|
+
width: "1.2em",
|
|
9
|
+
height: "1.2em"
|
|
10
|
+
};
|
|
11
|
+
function y(e, t) {
|
|
12
|
+
return p(), o("svg", v, [...t[0] ||= [s("path", {
|
|
13
|
+
fill: "none",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
"stroke-linecap": "round",
|
|
16
|
+
"stroke-linejoin": "round",
|
|
17
|
+
"stroke-width": "2",
|
|
18
|
+
d: "M4 5h16M4 12h16M4 19h16"
|
|
19
|
+
}, null, -1)]]);
|
|
20
|
+
}
|
|
21
|
+
var b = d({
|
|
22
|
+
name: "lucide-menu",
|
|
23
|
+
render: y
|
|
24
|
+
}), x = {
|
|
25
|
+
"data-ds-navbar": "",
|
|
26
|
+
class: "h-[56px] border-b border-[var(--brd)] bg-[var(--bg)] flex items-center justify-between px-4 sm:px-6"
|
|
27
|
+
}, S = { class: "flex items-center gap-3" }, C = {
|
|
28
|
+
"data-ds-navbar-title": "",
|
|
29
|
+
class: "text-[14px] font-700"
|
|
30
|
+
}, w = { class: "flex items-center gap-3" }, T = /* @__PURE__ */ u({
|
|
31
|
+
__name: "DsNavbar",
|
|
32
|
+
props: {
|
|
33
|
+
title: {},
|
|
34
|
+
showMenuButton: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
menuButtonClass: { default: "" }
|
|
39
|
+
},
|
|
40
|
+
emits: ["menu"],
|
|
41
|
+
setup(u, { emit: d }) {
|
|
42
|
+
let v = d, { t: y } = n(), T = r(() => y("ds.navbar.openMenu", "Open menu"));
|
|
43
|
+
return (n, r) => (p(), o("header", x, [s("div", S, [u.showMenuButton ? (p(), i(e, {
|
|
44
|
+
key: 0,
|
|
45
|
+
"data-ds-navbar-menu": "",
|
|
46
|
+
variant: "ghost",
|
|
47
|
+
size: "sm",
|
|
48
|
+
square: "",
|
|
49
|
+
"aria-label": T.value,
|
|
50
|
+
class: f(u.menuButtonClass),
|
|
51
|
+
onClick: r[0] ||= (e) => v("menu")
|
|
52
|
+
}, {
|
|
53
|
+
default: _(() => [l(t, { size: 16 }, {
|
|
54
|
+
default: _(() => [l(g(b), { "aria-hidden": "true" })]),
|
|
55
|
+
_: 1
|
|
56
|
+
})]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["aria-label", "class"])) : a("", !0), s("div", C, [m(n.$slots, "title", {}, () => [c(h(u.title), 1)])])]), s("div", w, [m(n.$slots, "default")])]));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { T as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "
|
|
2
|
-
import {
|
|
3
|
-
export { e as DsNavbar, e as default,
|
|
1
|
+
import { t as e } from "./chunks/DsNavbar-O-ud_du_.js";
|
|
2
|
+
import { t } from "../../chunks/config-D9kbijTN.js";
|
|
3
|
+
export { e as DsNavbar, e as default, t as dsNavbarConfig };
|