@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,28 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
//#region src/components/DsBadgeWrap/safelist.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"relative",
|
|
5
|
+
"inline-flex",
|
|
6
|
+
"absolute",
|
|
7
|
+
"-top-1",
|
|
8
|
+
"-right-1",
|
|
9
|
+
"h-2",
|
|
10
|
+
"w-2",
|
|
11
|
+
"rounded-full",
|
|
12
|
+
"bg-[var(--ds-danger)]",
|
|
13
|
+
"-top-2",
|
|
14
|
+
"-right-2",
|
|
15
|
+
"min-w-5",
|
|
16
|
+
"h-5",
|
|
17
|
+
"px-1",
|
|
18
|
+
"text-[var(--destructive-fg)]",
|
|
19
|
+
"text-[11px]",
|
|
20
|
+
"font-700",
|
|
21
|
+
"items-center",
|
|
22
|
+
"justify-center"
|
|
23
|
+
], n = e(import.meta.url, {
|
|
24
|
+
name: "DsBadgeWrap",
|
|
25
|
+
safelist: t
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
//#region src/components/DsTree/safelist.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"py-2",
|
|
5
|
+
"px-2",
|
|
6
|
+
"ml-6",
|
|
7
|
+
"i-lucide-chevron-right",
|
|
8
|
+
"i-lucide-grip-vertical"
|
|
9
|
+
], n = e(import.meta.url, {
|
|
10
|
+
name: "DsTree",
|
|
11
|
+
safelist: t
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
//#region src/components/DsNavbar/safelist.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"h-[56px]",
|
|
5
|
+
"border-b",
|
|
6
|
+
"border-[var(--brd)]",
|
|
7
|
+
"bg-[var(--bg)]",
|
|
8
|
+
"flex",
|
|
9
|
+
"items-center",
|
|
10
|
+
"justify-between",
|
|
11
|
+
"px-4",
|
|
12
|
+
"sm:px-6",
|
|
13
|
+
"gap-3",
|
|
14
|
+
"h-4",
|
|
15
|
+
"w-4",
|
|
16
|
+
"text-[14px]",
|
|
17
|
+
"font-700"
|
|
18
|
+
], n = e(import.meta.url, {
|
|
19
|
+
name: "DsNavbar",
|
|
20
|
+
dependencies: ["DsButton"],
|
|
21
|
+
safelist: t
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
//#region src/components/DsTooltip/safelist.ts
|
|
3
|
+
var t = /* @__PURE__ */ "group.relative.inline-flex.items-center.justify-center.text-[var(--ds-tooltip-icon-color)].focus:outline-none.h-4.w-4.pointer-events-none.absolute.bottom-[calc(100%+8px)].left-1/2.z-10.-translate-x-1/2.whitespace-nowrap.rounded-md.border.border-[var(--brd)].bg-[var(--popover)].px-2.py-1.text-[12px].text-[var(--popover-fg)].opacity-0.shadow-[var(--ds-shadow-1)].transition-opacity.duration-150.group-hover:opacity-100.group-focus-within:opacity-100".split("."), n = e(import.meta.url, {
|
|
4
|
+
name: "DsTooltip",
|
|
5
|
+
safelist: t
|
|
6
|
+
});
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as n, n as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
import { t } from "./classTokens-CT1tqF2j.js";
|
|
3
|
+
//#region src/components/DsInputTag/dsInputTagStyles.ts
|
|
4
|
+
var n = {
|
|
5
|
+
xs: "min-h-7 px-2.5 py-1 gap-1.5",
|
|
6
|
+
sm: "min-h-8 px-3 py-1 gap-1.5",
|
|
7
|
+
md: "min-h-10 px-3 py-1.5 gap-2",
|
|
8
|
+
lg: "min-h-11 px-4 py-2 gap-2"
|
|
9
|
+
}, r = {
|
|
10
|
+
xs: "text-[12px]",
|
|
11
|
+
sm: "text-[13px]",
|
|
12
|
+
md: "text-[14px]",
|
|
13
|
+
lg: "text-[16px]"
|
|
14
|
+
}, i = {
|
|
15
|
+
default: "border-[var(--brd)]",
|
|
16
|
+
success: "border-[var(--ds-success)] focus-within:ring-[var(--ds-success)]",
|
|
17
|
+
warning: "border-[var(--ds-warning)] focus-within:ring-[var(--ds-warning)]",
|
|
18
|
+
danger: "border-[var(--ds-danger)] focus-within:ring-[var(--ds-danger)]"
|
|
19
|
+
};
|
|
20
|
+
function a(e) {
|
|
21
|
+
return [
|
|
22
|
+
n[e.size],
|
|
23
|
+
e.invalid ? i.danger : i[e.state],
|
|
24
|
+
e.disabled ? "opacity-50 cursor-not-allowed" : "cursor-text"
|
|
25
|
+
].join(" ");
|
|
26
|
+
}
|
|
27
|
+
function o(e) {
|
|
28
|
+
return r[e];
|
|
29
|
+
}
|
|
30
|
+
var s = [...new Set([
|
|
31
|
+
...Object.values(n).flatMap(t),
|
|
32
|
+
...Object.values(r).flatMap(t),
|
|
33
|
+
...Object.values(i).flatMap(t),
|
|
34
|
+
...t("opacity-50 cursor-not-allowed"),
|
|
35
|
+
...t("cursor-text")
|
|
36
|
+
])], c = e(import.meta.url, {
|
|
37
|
+
name: "DsInputTag",
|
|
38
|
+
dependencies: ["DsBadge", "DsInput"],
|
|
39
|
+
safelist: s
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { a as i, o as n, s as r, c as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as e } from "./componentConfig-CQndJxd1.js";
|
|
2
|
+
import { t } from "./classTokens-CT1tqF2j.js";
|
|
3
|
+
//#region src/components/DsProgressBar/dsStyle.ts
|
|
4
|
+
function n(e) {
|
|
5
|
+
return `[${e}]`;
|
|
6
|
+
}
|
|
7
|
+
var r = {
|
|
8
|
+
primary: "var(--pb-bg,var(--primary))",
|
|
9
|
+
neutral: "var(--pb-neutral-bg,var(--secondary))",
|
|
10
|
+
success: "var(--pb-success-bg,var(--ds-success))",
|
|
11
|
+
warning: "var(--pb-warning-bg,var(--ds-warning))",
|
|
12
|
+
danger: "var(--pb-danger-bg,var(--ds-danger))",
|
|
13
|
+
info: "var(--pb-info-bg,var(--ds-info))",
|
|
14
|
+
slate: "var(--pb-slate-bg,var(--ds-slate))",
|
|
15
|
+
azure: "var(--pb-azure-bg,var(--ds-azure))"
|
|
16
|
+
};
|
|
17
|
+
function i(e) {
|
|
18
|
+
return `bg-${n(r[e])}`;
|
|
19
|
+
}
|
|
20
|
+
var a = { fill: Object.keys(r).flatMap((e) => t(i(e))) }, o = [...new Set([...a.fill])], s = e(import.meta.url, {
|
|
21
|
+
name: "DsProgressBar",
|
|
22
|
+
safelist: o,
|
|
23
|
+
cssFiles: ["./tokens.css"]
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as n, o as r, s as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsBadge/dsBadgeStyles.ts
|
|
3
|
+
var t = {
|
|
4
|
+
sm: "px-2 py-0.4 text-[11px]",
|
|
5
|
+
md: "px-2.5 py-0.5 text-[12px]",
|
|
6
|
+
lg: "px-3 py-1 text-[13px]"
|
|
7
|
+
}, n = {
|
|
8
|
+
sm: "rounded-[3px]",
|
|
9
|
+
md: "rounded-[3px]",
|
|
10
|
+
lg: "rounded-[5px]"
|
|
11
|
+
}, r = {
|
|
12
|
+
neutral: "bg-[var(--muted)] text-[var(--fg)] border-[var(--brd)]",
|
|
13
|
+
primary: "bg-[var(--accent)] text-[var(--accent-fg)] border-[color-mix(in_srgb,var(--primary)_30%,var(--accent))]",
|
|
14
|
+
success: "bg-[var(--ds-success-light)] text-[var(--ds-success)] border-[color-mix(in_srgb,var(--ds-success)_30%,var(--ds-success-light))]",
|
|
15
|
+
warning: "bg-[var(--ds-warning-light)] text-[var(--ds-warning)] border-[color-mix(in_srgb,var(--ds-warning)_30%,var(--ds-warning-light))]",
|
|
16
|
+
danger: "bg-[var(--ds-danger-light)] text-[var(--ds-danger)] border-[color-mix(in_srgb,var(--ds-danger)_30%,var(--ds-danger-light))]",
|
|
17
|
+
info: "bg-[var(--ds-info-light)] text-[var(--ds-info)] border-[color-mix(in_srgb,var(--ds-info)_30%,var(--ds-info-light))]",
|
|
18
|
+
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
|
+
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
|
+
}, i = {
|
|
21
|
+
neutral: "bg-[var(--fg)] text-[var(--bg)] border-[color-mix(in_srgb,var(--fg)_35%,var(--brd))]",
|
|
22
|
+
primary: "bg-[var(--primary)] text-[var(--primary-fg)] border-[var(--primary)]",
|
|
23
|
+
success: "bg-[var(--ds-success)] text-white border-[var(--ds-success)]",
|
|
24
|
+
warning: "bg-[var(--ds-warning)] text-white border-[var(--ds-warning)]",
|
|
25
|
+
danger: "bg-[var(--ds-danger)] text-white border-[var(--ds-danger)]",
|
|
26
|
+
info: "bg-[var(--ds-info)] text-white border-[var(--ds-info)]",
|
|
27
|
+
slate: "bg-[var(--ds-slate)] text-[var(--ds-slate-fg)] border-[var(--ds-slate)]",
|
|
28
|
+
azure: "bg-[var(--ds-azure)] text-[var(--ds-azure-fg)] border-[var(--ds-azure)]"
|
|
29
|
+
};
|
|
30
|
+
function a(e, t) {
|
|
31
|
+
return e === "square" ? "rounded-[var(--ds-radius-none)]" : e === "semi" ? n[t] : "rounded-full";
|
|
32
|
+
}
|
|
33
|
+
function o(e, t) {
|
|
34
|
+
return t ? i[e] : r[e];
|
|
35
|
+
}
|
|
36
|
+
function s(e) {
|
|
37
|
+
return [
|
|
38
|
+
a(e.radius, e.size),
|
|
39
|
+
t[e.size],
|
|
40
|
+
o(e.tone, e.dark)
|
|
41
|
+
].join(" ");
|
|
42
|
+
}
|
|
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
|
+
//#endregion
|
|
52
|
+
export { c as n, s as t };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsButton/dsButtonStyles.ts
|
|
3
|
+
var t = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed", n = t, r = {
|
|
4
|
+
xs: "h-7 text-xs px-2.5",
|
|
5
|
+
sm: "h-8 text-sm px-3",
|
|
6
|
+
md: "h-10 text-sm px-4",
|
|
7
|
+
lg: "h-11 text-base px-5"
|
|
8
|
+
}, i = {
|
|
9
|
+
xs: "h-7 w-7 p-0",
|
|
10
|
+
sm: "h-8 w-8 p-0",
|
|
11
|
+
md: "h-10 w-10 p-0",
|
|
12
|
+
lg: "h-11 w-11 p-0"
|
|
13
|
+
}, a = {
|
|
14
|
+
primary: {
|
|
15
|
+
solidBackground: "var(--ds-button-primary-bg,var(--primary))",
|
|
16
|
+
solidBackgroundHover: "var(--ds-button-primary-bg-hover,var(--primary-hover))",
|
|
17
|
+
solidBackgroundActive: "var(--ds-button-primary-bg-active,var(--primary-active))",
|
|
18
|
+
solidForeground: "var(--ds-button-primary-fg,var(--primary-fg))",
|
|
19
|
+
accentText: "var(--accent-fg)",
|
|
20
|
+
softBackground: "var(--ds-button-primary-soft-bg)",
|
|
21
|
+
softBackgroundHover: "var(--ds-button-primary-soft-bg-hover)",
|
|
22
|
+
softBackgroundActive: "var(--ds-button-primary-soft-bg-active)",
|
|
23
|
+
softForeground: "var(--accent-fg)",
|
|
24
|
+
border: "var(--primary)",
|
|
25
|
+
borderHover: "var(--primary-hover)",
|
|
26
|
+
borderActive: "var(--primary-active)"
|
|
27
|
+
},
|
|
28
|
+
neutral: {
|
|
29
|
+
solidBackground: "var(--secondary)",
|
|
30
|
+
solidBackgroundHover: "var(--secondary-hover)",
|
|
31
|
+
solidBackgroundActive: "var(--secondary-active)",
|
|
32
|
+
solidForeground: "var(--secondary-fg)",
|
|
33
|
+
accentText: "var(--fg)",
|
|
34
|
+
softBackground: "var(--secondary)",
|
|
35
|
+
softBackgroundHover: "var(--secondary-hover)",
|
|
36
|
+
softBackgroundActive: "var(--secondary-active)",
|
|
37
|
+
softForeground: "var(--secondary-fg)",
|
|
38
|
+
border: "var(--brd)",
|
|
39
|
+
borderHover: "var(--brd-hover,var(--brd))",
|
|
40
|
+
borderActive: "var(--brd-active,var(--brd))"
|
|
41
|
+
},
|
|
42
|
+
success: {
|
|
43
|
+
solidBackground: "var(--ds-button-success-bg,var(--ds-success))",
|
|
44
|
+
solidBackgroundHover: "var(--ds-button-success-bg-hover,var(--ds-success-hover))",
|
|
45
|
+
solidBackgroundActive: "var(--ds-button-success-bg-active,var(--ds-success-active))",
|
|
46
|
+
solidForeground: "var(--ds-button-success-fg,var(--ds-success-fg,var(--fg)))",
|
|
47
|
+
accentText: "var(--ds-success-text,var(--ds-success))",
|
|
48
|
+
softBackground: "var(--ds-button-success-soft-bg)",
|
|
49
|
+
softBackgroundHover: "var(--ds-button-success-soft-bg-hover)",
|
|
50
|
+
softBackgroundActive: "var(--ds-button-success-soft-bg-active)",
|
|
51
|
+
softForeground: "var(--ds-success-text,var(--ds-success))",
|
|
52
|
+
border: "var(--ds-success)",
|
|
53
|
+
borderHover: "var(--ds-success-hover)",
|
|
54
|
+
borderActive: "var(--ds-success-active)"
|
|
55
|
+
},
|
|
56
|
+
warning: {
|
|
57
|
+
solidBackground: "var(--ds-button-warning-bg,var(--ds-warning))",
|
|
58
|
+
solidBackgroundHover: "var(--ds-button-warning-bg-hover,var(--ds-warning-hover))",
|
|
59
|
+
solidBackgroundActive: "var(--ds-button-warning-bg-active,var(--ds-warning-active))",
|
|
60
|
+
solidForeground: "var(--ds-button-warning-fg,var(--ds-warning-fg,var(--fg)))",
|
|
61
|
+
accentText: "var(--ds-warning-text,var(--ds-warning))",
|
|
62
|
+
softBackground: "var(--ds-button-warning-soft-bg)",
|
|
63
|
+
softBackgroundHover: "var(--ds-button-warning-soft-bg-hover)",
|
|
64
|
+
softBackgroundActive: "var(--ds-button-warning-soft-bg-active)",
|
|
65
|
+
softForeground: "var(--ds-warning-text,var(--ds-warning))",
|
|
66
|
+
border: "var(--ds-warning)",
|
|
67
|
+
borderHover: "var(--ds-warning-hover)",
|
|
68
|
+
borderActive: "var(--ds-warning-active)"
|
|
69
|
+
},
|
|
70
|
+
danger: {
|
|
71
|
+
solidBackground: "var(--ds-button-danger-bg,var(--ds-danger))",
|
|
72
|
+
solidBackgroundHover: "var(--ds-button-danger-bg-hover,var(--ds-danger-hover))",
|
|
73
|
+
solidBackgroundActive: "var(--ds-button-danger-bg-active,var(--ds-danger-active))",
|
|
74
|
+
solidForeground: "var(--ds-button-danger-fg,var(--ds-danger-fg,var(--fg)))",
|
|
75
|
+
accentText: "var(--ds-danger-text,var(--ds-danger))",
|
|
76
|
+
softBackground: "var(--ds-button-danger-soft-bg)",
|
|
77
|
+
softBackgroundHover: "var(--ds-button-danger-soft-bg-hover)",
|
|
78
|
+
softBackgroundActive: "var(--ds-button-danger-soft-bg-active)",
|
|
79
|
+
softForeground: "var(--ds-danger-text,var(--ds-danger))",
|
|
80
|
+
border: "var(--ds-danger)",
|
|
81
|
+
borderHover: "var(--ds-danger-hover)",
|
|
82
|
+
borderActive: "var(--ds-danger-active)"
|
|
83
|
+
},
|
|
84
|
+
info: {
|
|
85
|
+
solidBackground: "var(--ds-button-info-bg,var(--ds-info))",
|
|
86
|
+
solidBackgroundHover: "var(--ds-button-info-bg-hover,var(--ds-info-hover))",
|
|
87
|
+
solidBackgroundActive: "var(--ds-button-info-bg-active,var(--ds-info-active))",
|
|
88
|
+
solidForeground: "var(--ds-button-info-fg,var(--ds-info-fg,var(--fg)))",
|
|
89
|
+
accentText: "var(--ds-info-text,var(--ds-info))",
|
|
90
|
+
softBackground: "var(--ds-button-info-soft-bg)",
|
|
91
|
+
softBackgroundHover: "var(--ds-button-info-soft-bg-hover)",
|
|
92
|
+
softBackgroundActive: "var(--ds-button-info-soft-bg-active)",
|
|
93
|
+
softForeground: "var(--ds-info-text,var(--ds-info))",
|
|
94
|
+
border: "var(--ds-info)",
|
|
95
|
+
borderHover: "var(--ds-info-hover)",
|
|
96
|
+
borderActive: "var(--ds-info-active)"
|
|
97
|
+
},
|
|
98
|
+
slate: {
|
|
99
|
+
solidBackground: "var(--ds-button-slate-bg,var(--ds-slate))",
|
|
100
|
+
solidBackgroundHover: "var(--ds-button-slate-bg-hover,var(--ds-slate-hover))",
|
|
101
|
+
solidBackgroundActive: "var(--ds-button-slate-bg-active,var(--ds-slate-active))",
|
|
102
|
+
solidForeground: "var(--ds-button-slate-fg,var(--ds-slate-fg,var(--fg)))",
|
|
103
|
+
accentText: "var(--ds-slate-text,var(--ds-slate))",
|
|
104
|
+
softBackground: "var(--ds-button-slate-soft-bg)",
|
|
105
|
+
softBackgroundHover: "var(--ds-button-slate-soft-bg-hover)",
|
|
106
|
+
softBackgroundActive: "var(--ds-button-slate-soft-bg-active)",
|
|
107
|
+
softForeground: "var(--ds-slate-text,var(--ds-slate))",
|
|
108
|
+
border: "var(--ds-slate)",
|
|
109
|
+
borderHover: "var(--ds-slate-hover)",
|
|
110
|
+
borderActive: "var(--ds-slate-active)"
|
|
111
|
+
},
|
|
112
|
+
azure: {
|
|
113
|
+
solidBackground: "var(--ds-button-azure-bg,var(--ds-azure))",
|
|
114
|
+
solidBackgroundHover: "var(--ds-button-azure-bg-hover,var(--ds-azure-hover))",
|
|
115
|
+
solidBackgroundActive: "var(--ds-button-azure-bg-active,var(--ds-azure-active))",
|
|
116
|
+
solidForeground: "var(--ds-button-azure-fg,var(--ds-azure-fg,var(--fg)))",
|
|
117
|
+
accentText: "var(--ds-azure-text,var(--ds-azure))",
|
|
118
|
+
softBackground: "var(--ds-button-azure-soft-bg)",
|
|
119
|
+
softBackgroundHover: "var(--ds-button-azure-soft-bg-hover)",
|
|
120
|
+
softBackgroundActive: "var(--ds-button-azure-soft-bg-active)",
|
|
121
|
+
softForeground: "var(--ds-azure-text,var(--ds-azure))",
|
|
122
|
+
border: "var(--ds-azure)",
|
|
123
|
+
borderHover: "var(--ds-azure-hover)",
|
|
124
|
+
borderActive: "var(--ds-azure-active)"
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
function o(e) {
|
|
128
|
+
return `[${e}]`;
|
|
129
|
+
}
|
|
130
|
+
function s(e, t) {
|
|
131
|
+
let n = a[t];
|
|
132
|
+
return e === "primary" ? [
|
|
133
|
+
`bg-${o(n.solidBackground)}`,
|
|
134
|
+
`text-${o(n.solidForeground)}`,
|
|
135
|
+
`border border-${o(n.solidBackground)}`,
|
|
136
|
+
`hover:bg-${o(n.solidBackgroundHover)}`,
|
|
137
|
+
`hover:border-${o(n.solidBackgroundHover)}`,
|
|
138
|
+
`active:bg-${o(n.solidBackgroundActive)}`,
|
|
139
|
+
`hover:active:bg-${o(n.solidBackgroundActive)}`,
|
|
140
|
+
`active:border-${o(n.solidBackgroundActive)}`,
|
|
141
|
+
`hover:active:border-${o(n.solidBackgroundActive)}`
|
|
142
|
+
].join(" ") : e === "secondary" ? [
|
|
143
|
+
`bg-${o(n.softBackground)}`,
|
|
144
|
+
`text-${o(n.softForeground)}`,
|
|
145
|
+
`border border-${o(n.border)}`,
|
|
146
|
+
`hover:bg-${o(n.softBackgroundHover)}`,
|
|
147
|
+
`hover:border-${o(n.borderHover)}`,
|
|
148
|
+
`active:bg-${o(n.softBackgroundActive)}`,
|
|
149
|
+
`hover:active:bg-${o(n.softBackgroundActive)}`,
|
|
150
|
+
`active:border-${o(n.borderActive)}`,
|
|
151
|
+
`hover:active:border-${o(n.borderActive)}`
|
|
152
|
+
].join(" ") : e === "outline" ? [
|
|
153
|
+
"bg-transparent",
|
|
154
|
+
`text-${o(n.accentText)}`,
|
|
155
|
+
`border border-${o(n.border)}`,
|
|
156
|
+
`hover:bg-${o(n.softBackgroundHover)}`,
|
|
157
|
+
`hover:border-${o(n.borderHover)}`,
|
|
158
|
+
`active:bg-${o(n.softBackgroundActive)}`,
|
|
159
|
+
`hover:active:bg-${o(n.softBackgroundActive)}`,
|
|
160
|
+
`active:border-${o(n.borderActive)}`,
|
|
161
|
+
`hover:active:border-${o(n.borderActive)}`
|
|
162
|
+
].join(" ") : e === "ghost" ? [
|
|
163
|
+
"bg-transparent",
|
|
164
|
+
`text-${o(n.accentText)}`,
|
|
165
|
+
`hover:bg-${o(n.softBackgroundHover)}`,
|
|
166
|
+
`active:bg-${o(n.softBackgroundActive)}`,
|
|
167
|
+
`hover:active:bg-${o(n.softBackgroundActive)}`
|
|
168
|
+
].join(" ") : [
|
|
169
|
+
"bg-transparent",
|
|
170
|
+
`text-${o(n.accentText)}`,
|
|
171
|
+
"border border-transparent",
|
|
172
|
+
`hover:bg-${o(n.softBackgroundHover)}`,
|
|
173
|
+
`hover:border-${o(n.borderHover)}`,
|
|
174
|
+
`active:bg-${o(n.softBackgroundActive)}`,
|
|
175
|
+
`hover:active:bg-${o(n.softBackgroundActive)}`,
|
|
176
|
+
`active:border-${o(n.borderActive)}`,
|
|
177
|
+
`hover:active:border-${o(n.borderActive)}`
|
|
178
|
+
].join(" ");
|
|
179
|
+
}
|
|
180
|
+
var c = Object.keys(a).flatMap((t) => [
|
|
181
|
+
"primary",
|
|
182
|
+
"secondary",
|
|
183
|
+
"outline",
|
|
184
|
+
"ghost",
|
|
185
|
+
"ghost-border"
|
|
186
|
+
].flatMap((n) => e(s(n, t)))), l = {
|
|
187
|
+
base: e(t),
|
|
188
|
+
sizes: Object.values(r).flatMap(e),
|
|
189
|
+
squareSizes: Object.values(i).flatMap(e),
|
|
190
|
+
variants: c,
|
|
191
|
+
template: [
|
|
192
|
+
"h-4",
|
|
193
|
+
"w-4",
|
|
194
|
+
"animate-spin"
|
|
195
|
+
]
|
|
196
|
+
}, u = [...new Set([
|
|
197
|
+
...l.base,
|
|
198
|
+
...l.sizes,
|
|
199
|
+
...l.squareSizes,
|
|
200
|
+
...l.variants,
|
|
201
|
+
...l.template
|
|
202
|
+
])];
|
|
203
|
+
function d(e) {
|
|
204
|
+
return [e.square ? i[e.size] : r[e.size], s(e.variant, e.tone)].join(" ");
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
export { u as i, d as n, l as r, n as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsDialog/dsDialogStyles.ts
|
|
3
|
+
var t = "overflow-hidden rounded-[inherit] px-5 py-5", n = "flex items-center justify-between gap-4 flex-1 min-w-0 text-[14px] font-700 border-b border-[var(--brd)] px-5 py-3", r = "border-t border-[var(--brd)] px-5 py-4", i = "px-4 py-2 px-3 py-2 px-2 py-1", a = [...new Set([
|
|
4
|
+
...e(t),
|
|
5
|
+
...e(n),
|
|
6
|
+
...e(r),
|
|
7
|
+
...e(i),
|
|
8
|
+
"sr-only"
|
|
9
|
+
])];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { a as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsDropdown/dsDropdownStyles.ts
|
|
3
|
+
var t = {
|
|
4
|
+
auto: "",
|
|
5
|
+
20: "w-20",
|
|
6
|
+
48: "w-48",
|
|
7
|
+
60: "w-60",
|
|
8
|
+
64: "w-64",
|
|
9
|
+
80: "w-80"
|
|
10
|
+
}, n = {
|
|
11
|
+
left: "origin-top-left",
|
|
12
|
+
right: "origin-top-right -translate-x-full",
|
|
13
|
+
center: "origin-top -translate-x-1/2"
|
|
14
|
+
};
|
|
15
|
+
function r(e) {
|
|
16
|
+
return t[e];
|
|
17
|
+
}
|
|
18
|
+
function i(e) {
|
|
19
|
+
return n[e];
|
|
20
|
+
}
|
|
21
|
+
function a(e) {
|
|
22
|
+
return [
|
|
23
|
+
"rounded-[var(--ds-radius-xl)]",
|
|
24
|
+
"border border-[var(--brd)]",
|
|
25
|
+
"bg-[var(--card)] text-[var(--card-fg)]",
|
|
26
|
+
"shadow-[var(--ds-shadow-2)]",
|
|
27
|
+
"p-1",
|
|
28
|
+
e
|
|
29
|
+
].filter(Boolean).join(" ");
|
|
30
|
+
}
|
|
31
|
+
var o = [...new Set([
|
|
32
|
+
...Object.values(t).flatMap(e),
|
|
33
|
+
...Object.values(n).flatMap(e),
|
|
34
|
+
...e("rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] p-1")
|
|
35
|
+
])];
|
|
36
|
+
//#endregion
|
|
37
|
+
export { r as i, a as n, o as r, i as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsFormField/dsFormFieldStyles.ts
|
|
3
|
+
var t = [...new Set([
|
|
4
|
+
...e("flex flex-col gap-2"),
|
|
5
|
+
...e("text-sm text-[var(--muted-fg)]"),
|
|
6
|
+
...e("text-sm text-[var(--ds-danger)]")
|
|
7
|
+
])];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsLoading/dsLoadingStyles.ts
|
|
3
|
+
var t = {
|
|
4
|
+
fullscreen: "fixed inset-0 z-50",
|
|
5
|
+
inline: "absolute inset-0 z-10"
|
|
6
|
+
}, n = "bg-black/25";
|
|
7
|
+
function r(e) {
|
|
8
|
+
return [
|
|
9
|
+
e.fullscreen ? t.fullscreen : t.inline,
|
|
10
|
+
e.hasBackground ? "" : n,
|
|
11
|
+
e.customClass
|
|
12
|
+
].filter(Boolean).join(" ");
|
|
13
|
+
}
|
|
14
|
+
var i = [...new Set([...Object.values(t).flatMap(e), ...e(n)])];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as n, r as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsModal/dsModalStyles.ts
|
|
3
|
+
var t = "fixed inset-0 z-50", n = "fixed inset-0 overflow-y-auto p-4 sm:p-6", r = "min-h-full flex items-center justify-center", i = "fixed inset-0 z-0 bg-black/40", a = "duration-200 ease-out opacity-0 opacity-100 duration-150 ease-in", o = "w-full overflow-hidden relative z-10 border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] outline-none", s = "duration-200 ease-out opacity-0 translate-y-2 sm:translate-y-0 sm:scale-95 opacity-100 translate-y-0 sm:scale-100 duration-150 ease-in", c = {
|
|
4
|
+
sm: "max-w-[420px]",
|
|
5
|
+
md: "max-w-[560px]",
|
|
6
|
+
lg: "max-w-[720px]",
|
|
7
|
+
xl: "max-w-[920px]",
|
|
8
|
+
full: "max-w-none"
|
|
9
|
+
}, l = {
|
|
10
|
+
sm: "rounded-[var(--ds-radius-xl)]",
|
|
11
|
+
md: "rounded-[var(--ds-radius-xl)]",
|
|
12
|
+
lg: "rounded-[var(--ds-radius-xl)]",
|
|
13
|
+
xl: "rounded-[var(--ds-radius-xl)]",
|
|
14
|
+
full: "rounded-none sm:rounded-[var(--ds-radius-xl)]"
|
|
15
|
+
}, u = {
|
|
16
|
+
sm: "",
|
|
17
|
+
md: "",
|
|
18
|
+
lg: "",
|
|
19
|
+
xl: "",
|
|
20
|
+
full: "h-[100svh] sm:h-auto"
|
|
21
|
+
}, d = {
|
|
22
|
+
root: e(t),
|
|
23
|
+
shell: e(n),
|
|
24
|
+
layout: e(r),
|
|
25
|
+
overlay: e(i),
|
|
26
|
+
overlayTransition: e(a),
|
|
27
|
+
panelBase: e(o),
|
|
28
|
+
panelTransition: e(s),
|
|
29
|
+
panelWidth: Object.values(c).flatMap(e),
|
|
30
|
+
panelRadius: Object.values(l).flatMap(e),
|
|
31
|
+
panelHeight: Object.values(u).flatMap(e)
|
|
32
|
+
}, f = [...new Set([
|
|
33
|
+
...d.root,
|
|
34
|
+
...d.shell,
|
|
35
|
+
...d.layout,
|
|
36
|
+
...d.overlay,
|
|
37
|
+
...d.overlayTransition,
|
|
38
|
+
...d.panelBase,
|
|
39
|
+
...d.panelTransition,
|
|
40
|
+
...d.panelWidth,
|
|
41
|
+
...d.panelRadius,
|
|
42
|
+
...d.panelHeight
|
|
43
|
+
])];
|
|
44
|
+
function p(e) {
|
|
45
|
+
return [
|
|
46
|
+
":uno:",
|
|
47
|
+
o,
|
|
48
|
+
c[e],
|
|
49
|
+
u[e],
|
|
50
|
+
l[e]
|
|
51
|
+
].join(" ");
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { f as n, p as r, d as t };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { t as e } from "./classTokens-CT1tqF2j.js";
|
|
2
|
+
//#region src/components/DsSelect/dsSelectStyles.ts
|
|
3
|
+
var t = "w-full rounded-md border border-[var(--brd)] bg-[var(--bg)] text-[var(--fg)] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", n = "cursor-pointer inline-block w-auto align-baseline appearance-none bg-transparent border border-transparent px-0 py-0 rounded-[6px] transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)]", r = [
|
|
4
|
+
"relative inline-block align-baseline",
|
|
5
|
+
"relative w-full",
|
|
6
|
+
"absolute top-1/2 -translate-y-1/2 right-3 text-[var(--muted-fg)] pointer-events-none",
|
|
7
|
+
"min-w-0 flex-1",
|
|
8
|
+
"block truncate",
|
|
9
|
+
"shrink-0 h-4 w-4",
|
|
10
|
+
"shrink-0 text-[var(--muted-fg)] pointer-events-none",
|
|
11
|
+
"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",
|
|
12
|
+
"fixed w-full",
|
|
13
|
+
"p-2 border-b border-[var(--brd)]",
|
|
14
|
+
"p-1 overflow-auto",
|
|
15
|
+
"w-full rounded-[10px] px-3 py-2 text-left text-[13px] hover:bg-[color-mix(in_srgb,var(--muted)_30%,transparent)]",
|
|
16
|
+
"flex items-center gap-2 min-w-0",
|
|
17
|
+
"h-4 w-4 shrink-0",
|
|
18
|
+
"truncate",
|
|
19
|
+
"i-lucide-chevron-down",
|
|
20
|
+
"i-lucide-x",
|
|
21
|
+
"transition ease-out duration-150",
|
|
22
|
+
"transform opacity-0 scale-95",
|
|
23
|
+
"transform opacity-100 scale-100",
|
|
24
|
+
"transition ease-in duration-100",
|
|
25
|
+
"i-lucide-check"
|
|
26
|
+
], i = {
|
|
27
|
+
xs: "h-7 px-2.5 text-[12px]",
|
|
28
|
+
sm: "h-8 px-3 text-[13px]",
|
|
29
|
+
md: "h-10 px-3 text-[14px]",
|
|
30
|
+
lg: "h-11 px-4 text-[16px]"
|
|
31
|
+
}, a = {
|
|
32
|
+
xs: "text-[12px]",
|
|
33
|
+
sm: "text-[13px]",
|
|
34
|
+
md: "text-[14px]",
|
|
35
|
+
lg: "text-[16px]"
|
|
36
|
+
}, o = {
|
|
37
|
+
primary: "text-[var(--primary)] hover:text-[var(--primary-hover)] active:text-[var(--primary-active)]",
|
|
38
|
+
default: "text-[var(--fg)] hover:text-[var(--primary)] active:text-[var(--primary-active)]",
|
|
39
|
+
muted: "text-[var(--muted-fg)] hover:text-[var(--fg)] active:text-[var(--fg)]",
|
|
40
|
+
danger: "text-[var(--ds-danger)] hover:text-[var(--ds-danger-hover)] active:text-[var(--ds-danger-active)]"
|
|
41
|
+
};
|
|
42
|
+
function s(e) {
|
|
43
|
+
return e.disabled ? "no-underline" : e.underline === "always" ? "underline underline-offset-4" : e.underline === "none" ? "no-underline" : "no-underline hover:underline hover:underline-offset-4";
|
|
44
|
+
}
|
|
45
|
+
function c(e) {
|
|
46
|
+
return e.view === "link" ? [
|
|
47
|
+
a[e.size],
|
|
48
|
+
s({
|
|
49
|
+
underline: e.underline,
|
|
50
|
+
disabled: e.disabled
|
|
51
|
+
}),
|
|
52
|
+
o[e.variant],
|
|
53
|
+
"disabled:opacity-60 disabled:cursor-not-allowed disabled:text-[var(--muted-fg)] disabled:no-underline"
|
|
54
|
+
].join(" ") : [i[e.size], "disabled:opacity-50 disabled:cursor-not-allowed"].join(" ");
|
|
55
|
+
}
|
|
56
|
+
function l(e) {
|
|
57
|
+
return [c(e), e.showNativeChevron ? "appearance-none pr-9" : ""].filter(Boolean).join(" ");
|
|
58
|
+
}
|
|
59
|
+
function u(e) {
|
|
60
|
+
return e.optionsView === "panel" ? e.view === "link" ? [c(e), "inline-flex items-center gap-1 text-left"].join(" ") : [c(e), "flex items-center justify-between text-left"].join(" ") : c(e);
|
|
61
|
+
}
|
|
62
|
+
var d = "rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] overflow-hidden", f = [...new Set([
|
|
63
|
+
...e(t),
|
|
64
|
+
...e(n),
|
|
65
|
+
...Object.values(i).flatMap(e),
|
|
66
|
+
...Object.values(a).flatMap(e),
|
|
67
|
+
...Object.values(o).flatMap(e),
|
|
68
|
+
...[
|
|
69
|
+
"no-underline",
|
|
70
|
+
"underline underline-offset-4",
|
|
71
|
+
"no-underline hover:underline hover:underline-offset-4"
|
|
72
|
+
].flatMap(e),
|
|
73
|
+
...e("disabled:opacity-60 disabled:cursor-not-allowed disabled:text-[var(--muted-fg)] disabled:no-underline"),
|
|
74
|
+
...e("disabled:opacity-50 disabled:cursor-not-allowed"),
|
|
75
|
+
...e("appearance-none pr-9"),
|
|
76
|
+
...e("inline-flex items-center gap-1 text-left"),
|
|
77
|
+
...e("flex items-center justify-between text-left"),
|
|
78
|
+
...e(d),
|
|
79
|
+
...r.flatMap(e)
|
|
80
|
+
])];
|
|
81
|
+
//#endregion
|
|
82
|
+
export { u as i, d as n, f as r, l as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/i18n/locales/en.json
|
|
2
|
+
var e = {
|
|
3
|
+
confirm: "Confirm",
|
|
4
|
+
cancel: "Cancel",
|
|
5
|
+
add: "Add",
|
|
6
|
+
clear: "Clear",
|
|
7
|
+
close: "Close"
|
|
8
|
+
}, t = { defaultText: "Loading..." }, n = {
|
|
9
|
+
filterPlaceholder: "Search…",
|
|
10
|
+
empty: "No data"
|
|
11
|
+
}, r = {
|
|
12
|
+
confirm: { title: "Confirm" },
|
|
13
|
+
prompt: {
|
|
14
|
+
title: "Prompt",
|
|
15
|
+
label: "Value",
|
|
16
|
+
required: "Enter a value."
|
|
17
|
+
}
|
|
18
|
+
}, i = {
|
|
19
|
+
pageSize: "Page size",
|
|
20
|
+
prev: "Prev",
|
|
21
|
+
next: "Next"
|
|
22
|
+
}, a = { openMenu: "Open menu" }, o = {
|
|
23
|
+
neutral: "Neutral",
|
|
24
|
+
success: "Success",
|
|
25
|
+
warning: "Warning",
|
|
26
|
+
danger: "Danger",
|
|
27
|
+
info: "Info",
|
|
28
|
+
primary: "Primary"
|
|
29
|
+
}, s = {
|
|
30
|
+
common: e,
|
|
31
|
+
loading: t,
|
|
32
|
+
treeSelect: n,
|
|
33
|
+
dialog: r,
|
|
34
|
+
pagination: i,
|
|
35
|
+
navbar: a,
|
|
36
|
+
colors: o
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { o as colors, e as common, s as default, r as dialog, t as loading, a as navbar, i as pagination, n as treeSelect };
|