@feugene/granularity 0.2.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/{vue.js → vue/index.js} +6 -2
- package/package.json +72 -142
- 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 -297
- 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,530 @@
|
|
|
1
|
+
import { l as e, u as t } from "./fileValidation-LFD-vwil.js";
|
|
2
|
+
import { t as n } from "../components/DsLoading/chunks/DsLoading-uYpDF-nK.js";
|
|
3
|
+
import { createVNode as r, nextTick as i, render as a } from "vue";
|
|
4
|
+
//#region src/directives/autofocus.ts
|
|
5
|
+
function o(e) {
|
|
6
|
+
return e === !1 ? {
|
|
7
|
+
enabled: !1,
|
|
8
|
+
selector: "",
|
|
9
|
+
preventScroll: !0
|
|
10
|
+
} : typeof e == "string" ? {
|
|
11
|
+
enabled: !0,
|
|
12
|
+
selector: e,
|
|
13
|
+
preventScroll: !0
|
|
14
|
+
} : e && typeof e == "object" ? {
|
|
15
|
+
enabled: e.disabled !== !0,
|
|
16
|
+
selector: e.selector,
|
|
17
|
+
preventScroll: e.preventScroll ?? !0
|
|
18
|
+
} : {
|
|
19
|
+
enabled: !0,
|
|
20
|
+
selector: void 0,
|
|
21
|
+
preventScroll: !0
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function s(e, t) {
|
|
25
|
+
if (!e) return;
|
|
26
|
+
let n = e;
|
|
27
|
+
if (typeof n.focus == "function") try {
|
|
28
|
+
n.focus({ preventScroll: t });
|
|
29
|
+
} catch {
|
|
30
|
+
n.focus();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
var c = { mounted(e, t) {
|
|
34
|
+
let { enabled: n, selector: r, preventScroll: a } = o(t.value);
|
|
35
|
+
n && i().then(() => {
|
|
36
|
+
requestAnimationFrame(() => {
|
|
37
|
+
let t = r || "input, textarea, select, button, [tabindex]:not([tabindex=\"-1\"])";
|
|
38
|
+
if (e.matches?.(t)) {
|
|
39
|
+
s(e, a);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let n = e.querySelector?.(t);
|
|
43
|
+
s(n, a);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
} }, l = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
function u(e) {
|
|
48
|
+
return e === !1 ? { enabled: !1 } : e && typeof e == "object" ? { enabled: e.enabled ?? !0 } : { enabled: !0 };
|
|
49
|
+
}
|
|
50
|
+
function d(e) {
|
|
51
|
+
return e instanceof HTMLTextAreaElement ? e : e.querySelector("textarea");
|
|
52
|
+
}
|
|
53
|
+
function f(e) {
|
|
54
|
+
let t = Number.parseFloat(e);
|
|
55
|
+
return Number.isFinite(t) ? t : 0;
|
|
56
|
+
}
|
|
57
|
+
function p(e) {
|
|
58
|
+
e.style.height = "auto";
|
|
59
|
+
let t = getComputedStyle(e), n = f(t.borderTopWidth) + f(t.borderBottomWidth), r = t.boxSizing === "border-box" ? e.scrollHeight + n : e.scrollHeight;
|
|
60
|
+
e.style.height = `${r}px`;
|
|
61
|
+
}
|
|
62
|
+
function m(e) {
|
|
63
|
+
i().then(() => {
|
|
64
|
+
requestAnimationFrame(() => p(e));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var h = {
|
|
68
|
+
mounted(e, t) {
|
|
69
|
+
let { enabled: n } = u(t.value), r = d(e), i = {
|
|
70
|
+
textarea: r,
|
|
71
|
+
onInput: null,
|
|
72
|
+
prevOverflowY: r ? r.style.overflowY : null
|
|
73
|
+
};
|
|
74
|
+
if (l.set(e, i), !n || !r) return;
|
|
75
|
+
r.style.overflowY = "hidden", p(r), m(r);
|
|
76
|
+
let a = () => {
|
|
77
|
+
let t = l.get(e);
|
|
78
|
+
t?.textarea && p(t.textarea);
|
|
79
|
+
};
|
|
80
|
+
i.onInput = a, r.addEventListener("input", a);
|
|
81
|
+
},
|
|
82
|
+
updated(e, t) {
|
|
83
|
+
let { enabled: n } = u(t.value), r = l.get(e);
|
|
84
|
+
if (!r) return;
|
|
85
|
+
let i = d(e);
|
|
86
|
+
if (r.textarea !== i) {
|
|
87
|
+
if (r.textarea && r.onInput && r.textarea.removeEventListener("input", r.onInput), r.textarea = i, r.prevOverflowY = i ? i.style.overflowY : null, r.onInput = null, n && i) {
|
|
88
|
+
i.style.overflowY = "hidden", p(i), m(i);
|
|
89
|
+
let t = () => {
|
|
90
|
+
let t = l.get(e);
|
|
91
|
+
t?.textarea && p(t.textarea);
|
|
92
|
+
};
|
|
93
|
+
r.onInput = t, i.addEventListener("input", t);
|
|
94
|
+
}
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (r.textarea) {
|
|
98
|
+
if (!n) {
|
|
99
|
+
r.onInput &&= (r.textarea.removeEventListener("input", r.onInput), null), r.prevOverflowY !== null && (r.textarea.style.overflowY = r.prevOverflowY);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (!r.onInput) {
|
|
103
|
+
r.prevOverflowY = r.textarea.style.overflowY, r.textarea.style.overflowY = "hidden";
|
|
104
|
+
let t = () => {
|
|
105
|
+
let t = l.get(e);
|
|
106
|
+
t?.textarea && p(t.textarea);
|
|
107
|
+
};
|
|
108
|
+
r.onInput = t, r.textarea.addEventListener("input", t);
|
|
109
|
+
}
|
|
110
|
+
p(r.textarea), m(r.textarea);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
unmounted(e) {
|
|
114
|
+
let t = l.get(e);
|
|
115
|
+
t && (t.textarea && t.onInput && (t.textarea.removeEventListener("input", t.onInput), t.prevOverflowY !== null && (t.textarea.style.overflowY = t.prevOverflowY)), l.delete(e));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/directives/clickOutside.ts
|
|
120
|
+
function g(e) {
|
|
121
|
+
return typeof e == "function" ? {
|
|
122
|
+
enabled: !0,
|
|
123
|
+
capture: !0,
|
|
124
|
+
events: ["click"],
|
|
125
|
+
handler: e,
|
|
126
|
+
exclude: []
|
|
127
|
+
} : e && typeof e == "object" ? {
|
|
128
|
+
enabled: e.enabled ?? !0,
|
|
129
|
+
capture: e.capture ?? !0,
|
|
130
|
+
events: e.events?.length ? e.events : ["click"],
|
|
131
|
+
handler: e.handler,
|
|
132
|
+
exclude: e.exclude ?? []
|
|
133
|
+
} : {
|
|
134
|
+
enabled: !1,
|
|
135
|
+
capture: !0,
|
|
136
|
+
events: ["click"],
|
|
137
|
+
handler: void 0,
|
|
138
|
+
exclude: []
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function _(e, t) {
|
|
142
|
+
let n = t.target;
|
|
143
|
+
if (!n) return !1;
|
|
144
|
+
let r = t.composedPath?.();
|
|
145
|
+
return Array.isArray(r) ? r.includes(e) : e.contains(n);
|
|
146
|
+
}
|
|
147
|
+
function v(e, t) {
|
|
148
|
+
let n = [];
|
|
149
|
+
for (let r of t) {
|
|
150
|
+
if (typeof r == "string") {
|
|
151
|
+
let t = e.querySelector(r);
|
|
152
|
+
t instanceof HTMLElement && n.push(t);
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if (typeof r == "function") {
|
|
156
|
+
let e = r();
|
|
157
|
+
e instanceof HTMLElement && n.push(e);
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
r instanceof HTMLElement && n.push(r);
|
|
161
|
+
}
|
|
162
|
+
return n;
|
|
163
|
+
}
|
|
164
|
+
var y = /* @__PURE__ */ new WeakMap();
|
|
165
|
+
function b(e) {
|
|
166
|
+
let t = y.get(e);
|
|
167
|
+
if (t) {
|
|
168
|
+
for (let e of t.options.events) t.doc.removeEventListener(e, t.listener, t.options.capture);
|
|
169
|
+
y.delete(e);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function x(e, t) {
|
|
173
|
+
let n = g(t), r = e.ownerDocument, i = (t) => {
|
|
174
|
+
let n = y.get(e);
|
|
175
|
+
if (!n) return;
|
|
176
|
+
let { enabled: r, handler: i, exclude: a } = n.options;
|
|
177
|
+
if (!r || !i || "button" in t && typeof t.button == "number" && t.button !== 0 || !e.isConnected || _(e, t)) return;
|
|
178
|
+
let o = v(n.doc, a);
|
|
179
|
+
for (let e of o) if (_(e, t)) return;
|
|
180
|
+
i(t);
|
|
181
|
+
}, a = {
|
|
182
|
+
options: n,
|
|
183
|
+
doc: r,
|
|
184
|
+
listener: i
|
|
185
|
+
};
|
|
186
|
+
if (y.set(e, a), !(!n.enabled || !n.handler)) for (let e of n.events) r.addEventListener(e, i, n.capture);
|
|
187
|
+
}
|
|
188
|
+
var S = {
|
|
189
|
+
mounted(e, t) {
|
|
190
|
+
x(e, t.value);
|
|
191
|
+
},
|
|
192
|
+
updated(e, t) {
|
|
193
|
+
b(e), x(e, t.value);
|
|
194
|
+
},
|
|
195
|
+
unmounted(e) {
|
|
196
|
+
b(e);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/directives/dropzone.ts
|
|
201
|
+
function C(e) {
|
|
202
|
+
return typeof e == "function" ? {
|
|
203
|
+
enabled: !0,
|
|
204
|
+
multiple: !0,
|
|
205
|
+
validators: void 0,
|
|
206
|
+
preventDefault: !0,
|
|
207
|
+
stopPropagation: !1,
|
|
208
|
+
onFiles: e,
|
|
209
|
+
onError: void 0,
|
|
210
|
+
onStateChange: void 0,
|
|
211
|
+
overClass: "ds-dropzone--over"
|
|
212
|
+
} : e && typeof e == "object" ? {
|
|
213
|
+
enabled: e.enabled ?? !0,
|
|
214
|
+
multiple: e.multiple ?? !0,
|
|
215
|
+
validators: e.validators,
|
|
216
|
+
preventDefault: e.preventDefault ?? !0,
|
|
217
|
+
stopPropagation: e.stopPropagation ?? !1,
|
|
218
|
+
onFiles: e.onFiles,
|
|
219
|
+
onError: e.onError,
|
|
220
|
+
onStateChange: e.onStateChange,
|
|
221
|
+
overClass: e.overClass ?? "ds-dropzone--over"
|
|
222
|
+
} : {
|
|
223
|
+
enabled: !1,
|
|
224
|
+
multiple: !0,
|
|
225
|
+
validators: void 0,
|
|
226
|
+
preventDefault: !0,
|
|
227
|
+
stopPropagation: !1,
|
|
228
|
+
onFiles: void 0,
|
|
229
|
+
onError: void 0,
|
|
230
|
+
onStateChange: void 0,
|
|
231
|
+
overClass: "ds-dropzone--over"
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
var w = /* @__PURE__ */ new WeakMap();
|
|
235
|
+
function T(e, t) {
|
|
236
|
+
let n = w.get(e);
|
|
237
|
+
if (!n) return;
|
|
238
|
+
let r = e.dataset.dsDropzoneOver === "true", i = n.isOver;
|
|
239
|
+
n.isOver = t, t ? (e.classList.add(n.options.overClass), e.dataset.dsDropzoneOver = "true") : (e.classList.remove(n.options.overClass), delete e.dataset.dsDropzoneOver), (i !== t || r !== t) && n.options.onStateChange?.({ isOver: t });
|
|
240
|
+
}
|
|
241
|
+
function E(e) {
|
|
242
|
+
let t = w.get(e);
|
|
243
|
+
t && (t.overCounter = 0, T(e, !1), delete e.dataset.dsDropzone, e.removeEventListener("dragenter", t.onDragEnter), e.removeEventListener("dragover", t.onDragOver), e.removeEventListener("dragleave", t.onDragLeave), e.removeEventListener("drop", t.onDrop), w.delete(e));
|
|
244
|
+
}
|
|
245
|
+
function D(n, r) {
|
|
246
|
+
let i = {
|
|
247
|
+
options: C(r),
|
|
248
|
+
overCounter: 0,
|
|
249
|
+
isOver: !1,
|
|
250
|
+
onDragEnter(e) {
|
|
251
|
+
let t = w.get(n);
|
|
252
|
+
t?.options.enabled && (t.options.preventDefault && e.preventDefault(), t.options.stopPropagation && e.stopPropagation(), t.overCounter += 1, T(n, !0));
|
|
253
|
+
},
|
|
254
|
+
onDragOver(e) {
|
|
255
|
+
let t = w.get(n);
|
|
256
|
+
t?.options.enabled && (t.options.preventDefault && e.preventDefault(), t.options.stopPropagation && e.stopPropagation(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy"));
|
|
257
|
+
},
|
|
258
|
+
onDragLeave(e) {
|
|
259
|
+
let t = w.get(n);
|
|
260
|
+
t?.options.enabled && (t.options.preventDefault && e.preventDefault(), t.options.stopPropagation && e.stopPropagation(), t.overCounter = Math.max(0, t.overCounter - 1), t.overCounter === 0 && T(n, !1));
|
|
261
|
+
},
|
|
262
|
+
onDrop(r) {
|
|
263
|
+
let i = w.get(n);
|
|
264
|
+
if (!i?.options.enabled) return;
|
|
265
|
+
i.options.preventDefault && r.preventDefault(), i.options.stopPropagation && r.stopPropagation(), i.overCounter = 0, T(n, !1);
|
|
266
|
+
let a = r.dataTransfer, o = a?.files ? Array.prototype.slice.call(a.files) : [];
|
|
267
|
+
o.length && (async () => {
|
|
268
|
+
try {
|
|
269
|
+
let { files: n, issues: a } = await e(o, i.options.validators ?? [], {
|
|
270
|
+
source: "drop",
|
|
271
|
+
multiple: i.options.multiple
|
|
272
|
+
});
|
|
273
|
+
if (a.length > 0) {
|
|
274
|
+
i.options.onError?.(new t(a, n));
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
if (!n.length) return;
|
|
278
|
+
await i.options.onFiles?.(n, r);
|
|
279
|
+
} catch (e) {
|
|
280
|
+
i.options.onError?.(e);
|
|
281
|
+
}
|
|
282
|
+
})();
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
w.set(n, i), n.dataset.dsDropzone = "true", n.addEventListener("dragenter", i.onDragEnter), n.addEventListener("dragover", i.onDragOver), n.addEventListener("dragleave", i.onDragLeave), n.addEventListener("drop", i.onDrop);
|
|
286
|
+
}
|
|
287
|
+
function O(e, t) {
|
|
288
|
+
let n = w.get(e);
|
|
289
|
+
if (!n) {
|
|
290
|
+
D(e, t);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
let r = n.options.overClass, i = C(t);
|
|
294
|
+
n.options = i, r !== i.overClass && (e.classList.remove(r), n.isOver && e.classList.add(i.overClass)), i.enabled || (n.overCounter = 0, T(e, !1));
|
|
295
|
+
}
|
|
296
|
+
var k = {
|
|
297
|
+
mounted(e, t) {
|
|
298
|
+
D(e, t.value);
|
|
299
|
+
},
|
|
300
|
+
updated(e, t) {
|
|
301
|
+
O(e, t.value);
|
|
302
|
+
},
|
|
303
|
+
unmounted(e) {
|
|
304
|
+
E(e);
|
|
305
|
+
}
|
|
306
|
+
}, A = /* @__PURE__ */ new WeakMap();
|
|
307
|
+
function j(e) {
|
|
308
|
+
if (!(e instanceof HTMLElement)) return !1;
|
|
309
|
+
if (e.isContentEditable) return !0;
|
|
310
|
+
let t = e.tagName;
|
|
311
|
+
return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
|
|
312
|
+
}
|
|
313
|
+
function M(e) {
|
|
314
|
+
if (!e) return {
|
|
315
|
+
enabled: !1,
|
|
316
|
+
handlers: {}
|
|
317
|
+
};
|
|
318
|
+
if ("handlers" in e) {
|
|
319
|
+
let t = e;
|
|
320
|
+
return {
|
|
321
|
+
enabled: t.enabled ?? !0,
|
|
322
|
+
handlers: t.handlers ?? {}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
enabled: !0,
|
|
327
|
+
handlers: e
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function N(e) {
|
|
331
|
+
let t = e.trim().toLowerCase();
|
|
332
|
+
return t === "esc" || t === "escape" ? "Escape" : t === "space" ? " " : t.length === 1 ? t : e.trim();
|
|
333
|
+
}
|
|
334
|
+
function P(e) {
|
|
335
|
+
let t = [];
|
|
336
|
+
for (let [n, r] of Object.entries(e)) {
|
|
337
|
+
let e = n.split("+").map((e) => e.trim()).filter(Boolean);
|
|
338
|
+
if (!e.length) continue;
|
|
339
|
+
let i = !1, a = !1, o = !1, s = !1, c = e.at(-1);
|
|
340
|
+
if (!c) continue;
|
|
341
|
+
for (let t of e.slice(0, -1)) {
|
|
342
|
+
let e = t.toLowerCase();
|
|
343
|
+
e === "ctrl" || e === "control" ? i = !0 : e === "meta" || e === "cmd" || e === "command" || e === "⌘" ? a = !0 : e === "alt" || e === "option" ? o = !0 : e === "shift" && (s = !0);
|
|
344
|
+
}
|
|
345
|
+
let l = N(c);
|
|
346
|
+
t.push({
|
|
347
|
+
original: n,
|
|
348
|
+
key: l,
|
|
349
|
+
ctrl: i,
|
|
350
|
+
meta: a,
|
|
351
|
+
alt: o,
|
|
352
|
+
shift: s,
|
|
353
|
+
entry: r
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
return t;
|
|
357
|
+
}
|
|
358
|
+
function F(e, t) {
|
|
359
|
+
return e === " " ? t === " " || t === "Spacebar" : e.length === 1 ? e.toLowerCase() === t.toLowerCase() : e === t;
|
|
360
|
+
}
|
|
361
|
+
function I(e) {
|
|
362
|
+
return typeof e == "function" ? {
|
|
363
|
+
handler: e,
|
|
364
|
+
preventDefault: void 0,
|
|
365
|
+
stopPropagation: !1,
|
|
366
|
+
allowInEditable: !1
|
|
367
|
+
} : {
|
|
368
|
+
handler: e.handler,
|
|
369
|
+
preventDefault: e.preventDefault,
|
|
370
|
+
stopPropagation: e.stopPropagation ?? !1,
|
|
371
|
+
allowInEditable: e.allowInEditable ?? !1
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
var L = {
|
|
375
|
+
mounted(e, t) {
|
|
376
|
+
if (typeof window > "u") return;
|
|
377
|
+
let { enabled: n, handlers: r } = M(t.value), i = {
|
|
378
|
+
enabled: n,
|
|
379
|
+
hotkeys: P(r),
|
|
380
|
+
listener: (t) => {
|
|
381
|
+
let n = A.get(e);
|
|
382
|
+
if (!n?.enabled || !e.isConnected) return;
|
|
383
|
+
let r = j(t.target);
|
|
384
|
+
for (let e of n.hotkeys) {
|
|
385
|
+
if (e.ctrl !== t.ctrlKey || e.meta !== t.metaKey || e.alt !== t.altKey || e.shift !== t.shiftKey || !F(e.key, t.key)) continue;
|
|
386
|
+
let n = I(e.entry), i = e.ctrl || e.meta || e.alt || e.shift;
|
|
387
|
+
if (!(r && !n.allowInEditable && !i && e.key !== "Escape")) {
|
|
388
|
+
(n.preventDefault ?? (e.ctrl || e.meta || e.alt)) && t.preventDefault(), n.stopPropagation && t.stopPropagation(), n.handler(t);
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
A.set(e, i), window.addEventListener("keydown", i.listener);
|
|
395
|
+
},
|
|
396
|
+
updated(e, t) {
|
|
397
|
+
let n = A.get(e);
|
|
398
|
+
if (!n) return;
|
|
399
|
+
let r = M(t.value);
|
|
400
|
+
n.enabled = r.enabled, n.hotkeys = P(r.handlers);
|
|
401
|
+
},
|
|
402
|
+
unmounted(e) {
|
|
403
|
+
let t = A.get(e);
|
|
404
|
+
t && (window.removeEventListener("keydown", t.listener), A.delete(e));
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region src/directives/loading.ts
|
|
409
|
+
function R(e) {
|
|
410
|
+
return typeof e == "object" && !!e && e.nodeType === 1;
|
|
411
|
+
}
|
|
412
|
+
function z(e, t) {
|
|
413
|
+
if (!e) return t;
|
|
414
|
+
if (typeof e == "string") {
|
|
415
|
+
let n = t.getRootNode?.() ?? document, r = typeof n.querySelector == "function" ? n.querySelector(e) : null;
|
|
416
|
+
if (R(r)) return r;
|
|
417
|
+
let i = document.querySelector(e);
|
|
418
|
+
return R(i) ? i : t;
|
|
419
|
+
}
|
|
420
|
+
return R(e) ? e : t;
|
|
421
|
+
}
|
|
422
|
+
function B(e, t) {
|
|
423
|
+
return e.fullscreen == null ? t === document.body : e.fullscreen;
|
|
424
|
+
}
|
|
425
|
+
function V(e, t) {
|
|
426
|
+
if (t) return () => {};
|
|
427
|
+
let n = e.style.position, r = window.getComputedStyle(e);
|
|
428
|
+
return r.position === "static" || !r.position ? (e.style.position = "relative", () => {
|
|
429
|
+
e.style.position = n;
|
|
430
|
+
}) : () => {};
|
|
431
|
+
}
|
|
432
|
+
function H(e) {
|
|
433
|
+
if (e === !0 || e === !1) return {
|
|
434
|
+
loading: e,
|
|
435
|
+
options: {}
|
|
436
|
+
};
|
|
437
|
+
if (e && typeof e == "object") {
|
|
438
|
+
let { loading: t, ...n } = e;
|
|
439
|
+
return {
|
|
440
|
+
loading: t ?? !0,
|
|
441
|
+
options: n
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return {
|
|
445
|
+
loading: !1,
|
|
446
|
+
options: {}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
var U = Symbol("dsLoadingState");
|
|
450
|
+
function W(e) {
|
|
451
|
+
return e[U] ??= {};
|
|
452
|
+
}
|
|
453
|
+
function G(e = {}, t) {
|
|
454
|
+
let i = z(e.target, t ?? document.body), o = B(e, i), s = o ? document.body : i, c = e.appContext, l = V(s, o), u = document.createElement("div");
|
|
455
|
+
u.setAttribute("data-ds-loading-host", ""), s.appendChild(u), s.setAttribute("aria-busy", "true");
|
|
456
|
+
let d = { ...e }, f = !1;
|
|
457
|
+
function p() {
|
|
458
|
+
if (f) return;
|
|
459
|
+
let e = r(n, {
|
|
460
|
+
text: d.text,
|
|
461
|
+
spinner: d.spinner,
|
|
462
|
+
spinnerClass: d.spinnerClass,
|
|
463
|
+
animated: d.animated,
|
|
464
|
+
background: d.background,
|
|
465
|
+
customClass: d.customClass,
|
|
466
|
+
zIndex: d.zIndex,
|
|
467
|
+
fullscreen: o
|
|
468
|
+
});
|
|
469
|
+
c && (e.appContext = c), a(e, u);
|
|
470
|
+
}
|
|
471
|
+
function m() {
|
|
472
|
+
f || (f = !0, a(null, u), u.remove(), l(), s.removeAttribute("aria-busy"));
|
|
473
|
+
}
|
|
474
|
+
function h(e) {
|
|
475
|
+
d = {
|
|
476
|
+
...d,
|
|
477
|
+
...e
|
|
478
|
+
}, p();
|
|
479
|
+
}
|
|
480
|
+
function g(e) {
|
|
481
|
+
h({ text: e });
|
|
482
|
+
}
|
|
483
|
+
return p(), {
|
|
484
|
+
close: m,
|
|
485
|
+
setOptions: h,
|
|
486
|
+
setText: g,
|
|
487
|
+
get target() {
|
|
488
|
+
return s;
|
|
489
|
+
}
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function K(e, t, n) {
|
|
493
|
+
let { loading: r, options: i } = H(t), a = W(e);
|
|
494
|
+
if (!r) {
|
|
495
|
+
a.controller?.close(), a.controller = void 0, a.target = void 0, a.fullscreen = void 0;
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
let o = z(i.target, e), s = B(i, o), c = s ? document.body : o;
|
|
499
|
+
if (!a.controller || a.target !== c || a.fullscreen !== s) {
|
|
500
|
+
a.controller?.close(), a.controller = G({
|
|
501
|
+
...i,
|
|
502
|
+
fullscreen: s,
|
|
503
|
+
target: c,
|
|
504
|
+
appContext: n
|
|
505
|
+
}, e), a.target = c, a.fullscreen = s;
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
let l = a.controller;
|
|
509
|
+
l && l.setOptions({
|
|
510
|
+
...i,
|
|
511
|
+
fullscreen: s,
|
|
512
|
+
target: c
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
var q = {
|
|
516
|
+
mounted(e, t) {
|
|
517
|
+
let n = t.instance?.$?.appContext;
|
|
518
|
+
K(e, t.value, n);
|
|
519
|
+
},
|
|
520
|
+
updated(e, t) {
|
|
521
|
+
let n = t.instance?.$?.appContext;
|
|
522
|
+
K(e, t.value, n);
|
|
523
|
+
},
|
|
524
|
+
unmounted(e) {
|
|
525
|
+
let t = W(e);
|
|
526
|
+
t.controller?.close(), t.controller = void 0, t.target = void 0, t.fullscreen = void 0;
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
//#endregion
|
|
530
|
+
export { S as a, k as i, q as n, h as o, L as r, c as s, G as t };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
1
|
//#region src/components/DsBadge/dsBadgeStyles.ts
|
|
3
|
-
var
|
|
2
|
+
var e = {
|
|
4
3
|
sm: "px-2 py-0.4 text-[11px]",
|
|
5
4
|
md: "px-2.5 py-0.5 text-[12px]",
|
|
6
5
|
lg: "px-3 py-1 text-[13px]"
|
|
7
|
-
},
|
|
6
|
+
}, t = {
|
|
8
7
|
sm: "rounded-[3px]",
|
|
9
8
|
md: "rounded-[3px]",
|
|
10
9
|
lg: "rounded-[5px]"
|
|
11
|
-
},
|
|
10
|
+
}, n = {
|
|
12
11
|
neutral: "bg-[var(--muted)] text-[var(--fg)] border-[var(--brd)]",
|
|
13
12
|
primary: "bg-[var(--accent)] text-[var(--accent-fg)] border-[color-mix(in_srgb,var(--primary)_30%,var(--accent))]",
|
|
14
13
|
success: "bg-[var(--ds-success-light)] text-[var(--ds-success)] border-[color-mix(in_srgb,var(--ds-success)_30%,var(--ds-success-light))]",
|
|
@@ -17,7 +16,7 @@ var t = {
|
|
|
17
16
|
info: "bg-[var(--ds-info-light)] text-[var(--ds-info)] border-[color-mix(in_srgb,var(--ds-info)_30%,var(--ds-info-light))]",
|
|
18
17
|
slate: "bg-[var(--ds-slate-light)] text-[var(--ds-slate-text)] border-[color-mix(in_srgb,var(--ds-slate)_30%,var(--ds-slate-light))]",
|
|
19
18
|
azure: "bg-[var(--ds-azure-light)] text-[var(--ds-azure-text)] border-[color-mix(in_srgb,var(--ds-azure)_30%,var(--ds-azure-light))]"
|
|
20
|
-
},
|
|
19
|
+
}, r = {
|
|
21
20
|
neutral: "bg-[var(--fg)] text-[var(--bg)] border-[color-mix(in_srgb,var(--fg)_35%,var(--brd))]",
|
|
22
21
|
primary: "bg-[var(--primary)] text-[var(--primary-fg)] border-[var(--primary)]",
|
|
23
22
|
success: "bg-[var(--ds-success)] text-white border-[var(--ds-success)]",
|
|
@@ -27,26 +26,18 @@ var t = {
|
|
|
27
26
|
slate: "bg-[var(--ds-slate)] text-[var(--ds-slate-fg)] border-[var(--ds-slate)]",
|
|
28
27
|
azure: "bg-[var(--ds-azure)] text-[var(--ds-azure-fg)] border-[var(--ds-azure)]"
|
|
29
28
|
};
|
|
30
|
-
function
|
|
31
|
-
return e === "square" ? "rounded-[var(--ds-radius-none)]" : e === "semi" ? n
|
|
29
|
+
function i(e, n) {
|
|
30
|
+
return e === "square" ? "rounded-[var(--ds-radius-none)]" : e === "semi" ? t[n] : "rounded-full";
|
|
32
31
|
}
|
|
33
|
-
function
|
|
34
|
-
return t ?
|
|
32
|
+
function a(e, t) {
|
|
33
|
+
return t ? r[e] : n[e];
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function o(t) {
|
|
37
36
|
return [
|
|
38
|
-
|
|
39
|
-
t
|
|
40
|
-
|
|
37
|
+
i(t.radius, t.size),
|
|
38
|
+
e[t.size],
|
|
39
|
+
a(t.tone, t.dark)
|
|
41
40
|
].join(" ");
|
|
42
41
|
}
|
|
43
|
-
var c = [...new Set([
|
|
44
|
-
...Object.values(t).flatMap(e),
|
|
45
|
-
...Object.values(n).flatMap(e),
|
|
46
|
-
"rounded-[var(--ds-radius-none)]",
|
|
47
|
-
"rounded-full",
|
|
48
|
-
...Object.values(r).flatMap(e),
|
|
49
|
-
...Object.values(i).flatMap(e)
|
|
50
|
-
])];
|
|
51
42
|
//#endregion
|
|
52
|
-
export {
|
|
43
|
+
export { e as a, t as i, o as n, n as r, r as t };
|