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