@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.
Files changed (527) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +79 -0
  3. package/dist/assets/granularity-2oOxNk_f.css +2 -0
  4. package/dist/chunks/DsAlert-r_Ed-JrB.js +129 -0
  5. package/dist/chunks/DsAvatar-cyMI8jUi.js +32 -0
  6. package/dist/chunks/DsBadge-Dnd7_I-K.js +27 -0
  7. package/dist/chunks/DsBadgeWrap-UgP-TMdA.js +26 -0
  8. package/dist/chunks/DsBottomNav-Dze5cFVz.js +21 -0
  9. package/dist/chunks/DsButton-CA18Fha-.js +67 -0
  10. package/dist/chunks/DsButtonGroup-Ceat9ADe.js +16 -0
  11. package/dist/chunks/DsCard-GtapCsjq.js +10 -0
  12. package/dist/chunks/DsCheckbox-Afg94qUm.js +101 -0
  13. package/dist/chunks/DsCollapse-DWfip4gp.js +144 -0
  14. package/dist/chunks/DsConfirmDialog-DdUrG-DW.js +87 -0
  15. package/dist/chunks/DsDataTable-DgBkEgDK.js +91 -0
  16. package/dist/chunks/DsDialog-BAGAa9DN.js +178 -0
  17. package/dist/chunks/DsDrawer-gmVF_0I0.js +112 -0
  18. package/dist/chunks/DsDropdown-BcFjxaMe.js +106 -0
  19. package/dist/chunks/DsDropdownMenu-CA7259h5.js +218 -0
  20. package/dist/chunks/DsEmptyState-BdLoQ0-z.js +46 -0
  21. package/dist/chunks/DsFileUpload-IwtpKocj.js +282 -0
  22. package/dist/chunks/DsFormField-XVZK7YVU.js +28 -0
  23. package/dist/chunks/DsFormFile-C5ldcCAs.js +219 -0
  24. package/dist/chunks/DsFormSection-DmIDIQg7.js +18 -0
  25. package/dist/chunks/DsIcon-Q-KQGAQU.js +25 -0
  26. package/dist/chunks/DsImageViewer-C9NZ42St.js +313 -0
  27. package/dist/chunks/DsInput-DeoAkT6R.js +159 -0
  28. package/dist/chunks/DsInputTag-DWip_-Cr.js +201 -0
  29. package/dist/chunks/DsLink-CWpVQ0ij.js +56 -0
  30. package/dist/chunks/DsList-XI8AAk9b.js +31 -0
  31. package/dist/chunks/DsLoading-ogfmbPE4.js +53 -0
  32. package/dist/chunks/DsModal-Bl9r6v33.js +75 -0
  33. package/dist/chunks/DsNavbar-DJ4bv_MR.js +54 -0
  34. package/dist/chunks/DsNumberInput-D-m5QoQJ.js +301 -0
  35. package/dist/chunks/DsPagination-B28ms0hc.js +81 -0
  36. package/dist/chunks/DsProgressBar-Bkuqudkg.js +27 -0
  37. package/dist/chunks/DsPromptDialog-DdSca52S.js +133 -0
  38. package/dist/chunks/DsRadio-x2vmEUCv.js +141 -0
  39. package/dist/chunks/DsRadioGroup-CzlzJF2E.js +63 -0
  40. package/dist/chunks/DsSegmented-BwQ8VnOZ.js +250 -0
  41. package/dist/chunks/DsSelect-DEHGeICn.js +304 -0
  42. package/dist/chunks/DsSidebar-BNLaBCYD.js +18 -0
  43. package/dist/chunks/DsSkeleton-BcXabaQ7.js +25 -0
  44. package/dist/chunks/DsSwitch-DBdjltGz.js +60 -0
  45. package/dist/chunks/DsTable-apqrsbxV.js +10 -0
  46. package/dist/chunks/DsTabs-B1kkklFS.js +47 -0
  47. package/dist/chunks/DsTextarea-DVSsoqi3.js +56 -0
  48. package/dist/chunks/DsToaster-B9u2x_Ii.js +48 -0
  49. package/dist/chunks/DsTooltip-BqNVJw2f.js +27 -0
  50. package/dist/chunks/DsTree-Bz37FcIb.js +602 -0
  51. package/dist/chunks/DsTreeSelect-CU0aC9Mz.js +319 -0
  52. package/dist/chunks/_plugin-vue_export-helper-DOgycIVc.js +8 -0
  53. package/dist/chunks/adapter-BKKNB3Ii.js +4 -0
  54. package/dist/chunks/arrow-up-B4OlmAKz.js +23 -0
  55. package/dist/chunks/classTokens-CT1tqF2j.js +6 -0
  56. package/dist/chunks/componentConfig-CQndJxd1.js +14 -0
  57. package/dist/chunks/config-4vrmi-D0.js +9 -0
  58. package/dist/chunks/config-ANT_Zf3l.js +18 -0
  59. package/dist/chunks/config-B-tMv4PT.js +66 -0
  60. package/dist/chunks/config-B75oSW74.js +18 -0
  61. package/dist/chunks/config-B7HAOCA1.js +33 -0
  62. package/dist/chunks/config-B7yrZO9u.js +18 -0
  63. package/dist/chunks/config-B98-jCfY.js +9 -0
  64. package/dist/chunks/config-BDJ2JaFs.js +9 -0
  65. package/dist/chunks/config-BEzNFZ_R.js +10 -0
  66. package/dist/chunks/config-BKpHj94n.js +13 -0
  67. package/dist/chunks/config-BLYxW-WQ.js +9 -0
  68. package/dist/chunks/config-BS0vLD_L.js +41 -0
  69. package/dist/chunks/config-BXlW2GSa.js +33 -0
  70. package/dist/chunks/config-BY6edpDp.js +9 -0
  71. package/dist/chunks/config-BZDKypuQ.js +8 -0
  72. package/dist/chunks/config-BeJEy8yN.js +9 -0
  73. package/dist/chunks/config-BnryTLnh.js +47 -0
  74. package/dist/chunks/config-BqaCteFh2.js +9 -0
  75. package/dist/chunks/config-BrwOndwO.js +9 -0
  76. package/dist/chunks/config-BusLdkqX.js +8 -0
  77. package/dist/chunks/config-CBo4aVMV.js +8 -0
  78. package/dist/chunks/config-CLyDbB2M.js +14 -0
  79. package/dist/chunks/config-CML-WrGM.js +10 -0
  80. package/dist/chunks/config-CMuBf0u72.js +33 -0
  81. package/dist/chunks/config-CTGjkM7q.js +140 -0
  82. package/dist/chunks/config-CVEwIRRR.js +30 -0
  83. package/dist/chunks/config-Ch0TH9wN.js +42 -0
  84. package/dist/chunks/config-ClPYX-LP.js +24 -0
  85. package/dist/chunks/config-DA3cYUSo.js +8 -0
  86. package/dist/chunks/config-DAiP4yeJ.js +8 -0
  87. package/dist/chunks/config-DG_de8vE.js +15 -0
  88. package/dist/chunks/config-DIgvSIEs.js +9 -0
  89. package/dist/chunks/config-DJ7xDo-q.js +16 -0
  90. package/dist/chunks/config-DSFnRpu82.js +19 -0
  91. package/dist/chunks/config-DVHe_id-.js +22 -0
  92. package/dist/chunks/config-DoT3gzx7.js +9 -0
  93. package/dist/chunks/config-DuaBaVyF.js +34 -0
  94. package/dist/chunks/config-F4Bb6hVJ.js +30 -0
  95. package/dist/chunks/config-G7h6ftb62.js +39 -0
  96. package/dist/chunks/config-aUoIf7kK.js +28 -0
  97. package/dist/chunks/config-cKk87ycz2.js +14 -0
  98. package/dist/chunks/config-kfb3OyGZ.js +24 -0
  99. package/dist/chunks/config-oDjY8ZrP2.js +8 -0
  100. package/dist/chunks/config-panSV6Wo.js +9 -0
  101. package/dist/chunks/config-qlwX-rLq.js +42 -0
  102. package/dist/chunks/config-tQBoBLph.js +26 -0
  103. package/dist/chunks/dsBadgeStyles-yLd1GFUa.js +52 -0
  104. package/dist/chunks/dsButtonStyles-C1c_j958.js +207 -0
  105. package/dist/chunks/dsDialogStyles-C7QOvzmt.js +11 -0
  106. package/dist/chunks/dsDropdownStyles-DXGN-A-d.js +37 -0
  107. package/dist/chunks/dsFormFieldStyles-DspgXEqY.js +9 -0
  108. package/dist/chunks/dsLoadingStyles-B2ScgHwn.js +16 -0
  109. package/dist/chunks/dsModalStyles-C7E5kJ1o.js +54 -0
  110. package/dist/chunks/dsSelectStyles-Bym0uW4f.js +82 -0
  111. package/dist/chunks/en-CKkdzd7q.js +39 -0
  112. package/dist/chunks/es-CPXSlGMa.js +39 -0
  113. package/dist/chunks/fileValidation-gR8aUBMZ.js +193 -0
  114. package/dist/chunks/granularityI18n-DBuOHekC.js +24 -0
  115. package/dist/chunks/info-CmLOtVnO.js +26 -0
  116. package/dist/chunks/loader-circle-DtXjkqR7.js +23 -0
  117. package/dist/chunks/preset-DBXBjf5u.js +2235 -0
  118. package/dist/chunks/ru-D7AyvUyA.js +39 -0
  119. package/dist/chunks/transition-CT9vsWnT.js +1617 -0
  120. package/dist/chunks/x-circle-BZnfL2nz.js +61 -0
  121. package/dist/chunks/x-dGjszOU2.js +23 -0
  122. package/dist/components/DsAlert/index.js +3 -0
  123. package/dist/components/DsAlert/styles.css +386 -0
  124. package/dist/components/DsAvatar/index.js +3 -0
  125. package/dist/components/DsAvatar/styles.css +373 -0
  126. package/dist/components/DsBadge/index.js +4 -0
  127. package/dist/components/DsBadge/styles.css +422 -0
  128. package/dist/components/DsBadgeWrap/index.js +3 -0
  129. package/dist/components/DsBadgeWrap/styles.css +378 -0
  130. package/dist/components/DsBottomNav/index.js +3 -0
  131. package/dist/components/DsBottomNav/styles.css +388 -0
  132. package/dist/components/DsButton/index.js +4 -0
  133. package/dist/components/DsButton/styles.css +633 -0
  134. package/dist/components/DsButton/tokens.css +96 -0
  135. package/dist/components/DsButtonGroup/index.js +3 -0
  136. package/dist/components/DsButtonGroup/styles.css +23 -0
  137. package/dist/components/DsCard/index.js +3 -0
  138. package/dist/components/DsCard/styles.css +365 -0
  139. package/dist/components/DsCheckbox/index.js +3 -0
  140. package/dist/components/DsCheckbox/styles.css +394 -0
  141. package/dist/components/DsCollapse/index.js +3 -0
  142. package/dist/components/DsCollapse/styles.css +399 -0
  143. package/dist/components/DsConfirmDialog/index.js +3 -0
  144. package/dist/components/DsConfirmDialog/styles.css +595 -0
  145. package/dist/components/DsDataTable/index.js +3 -0
  146. package/dist/components/DsDataTable/styles.css +387 -0
  147. package/dist/components/DsDialog/index.js +3 -0
  148. package/dist/components/DsDialog/styles.css +592 -0
  149. package/dist/components/DsDrawer/index.js +3 -0
  150. package/dist/components/DsDrawer/styles.css +579 -0
  151. package/dist/components/DsDropdown/index.js +4 -0
  152. package/dist/components/DsDropdown/styles.css +392 -0
  153. package/dist/components/DsDropdownMenu/index.js +3 -0
  154. package/dist/components/DsDropdownMenu/styles.css +430 -0
  155. package/dist/components/DsEmptyState/index.js +3 -0
  156. package/dist/components/DsEmptyState/styles.css +380 -0
  157. package/dist/components/DsFileUpload/index.js +4 -0
  158. package/dist/components/DsFileUpload/styles.css +403 -0
  159. package/dist/components/DsFormField/index.js +3 -0
  160. package/dist/components/DsFormField/styles.css +365 -0
  161. package/dist/components/DsFormFile/index.js +3 -0
  162. package/dist/components/DsFormFile/styles.css +555 -0
  163. package/dist/components/DsFormSection/index.js +3 -0
  164. package/dist/components/DsFormSection/styles.css +365 -0
  165. package/dist/components/DsIcon/index.js +3 -0
  166. package/dist/components/DsIcon/styles.css +20 -0
  167. package/dist/components/DsIcon/tokens.css +3 -0
  168. package/dist/components/DsImageViewer/index.js +3 -0
  169. package/dist/components/DsImageViewer/styles.css +465 -0
  170. package/dist/components/DsInput/index.js +3 -0
  171. package/dist/components/DsInput/styles.css +416 -0
  172. package/dist/components/DsInputTag/index.js +3 -0
  173. package/dist/components/DsInputTag/styles.css +498 -0
  174. package/dist/components/DsLink/index.js +3 -0
  175. package/dist/components/DsLink/styles.css +390 -0
  176. package/dist/components/DsList/index.js +3 -0
  177. package/dist/components/DsList/styles.css +376 -0
  178. package/dist/components/DsLoading/index.js +4 -0
  179. package/dist/components/DsLoading/styles.css +381 -0
  180. package/dist/components/DsModal/index.js +4 -0
  181. package/dist/components/DsModal/styles.css +404 -0
  182. package/dist/components/DsNavbar/index.js +3 -0
  183. package/dist/components/DsNavbar/styles.css +549 -0
  184. package/dist/components/DsNumberInput/index.js +3 -0
  185. package/dist/components/DsNumberInput/styles.css +428 -0
  186. package/dist/components/DsPagination/index.js +3 -0
  187. package/dist/components/DsPagination/styles.css +637 -0
  188. package/dist/components/DsProgressBar/index.js +3 -0
  189. package/dist/components/DsProgressBar/styles.css +398 -0
  190. package/dist/components/DsProgressBar/tokens.css +23 -0
  191. package/dist/components/DsPromptDialog/index.js +3 -0
  192. package/dist/components/DsPromptDialog/styles.css +622 -0
  193. package/dist/components/DsRadio/index.js +3 -0
  194. package/dist/components/DsRadio/styles.css +558 -0
  195. package/dist/components/DsRadioGroup/index.js +3 -0
  196. package/dist/components/DsRadioGroup/styles.css +560 -0
  197. package/dist/components/DsSegmented/index.js +3 -0
  198. package/dist/components/DsSegmented/styles.css +422 -0
  199. package/dist/components/DsSegmented/tokens.css +9 -0
  200. package/dist/components/DsSelect/index.js +4 -0
  201. package/dist/components/DsSelect/styles.css +483 -0
  202. package/dist/components/DsSidebar/index.js +3 -0
  203. package/dist/components/DsSidebar/styles.css +370 -0
  204. package/dist/components/DsSkeleton/index.js +3 -0
  205. package/dist/components/DsSkeleton/styles.css +363 -0
  206. package/dist/components/DsSwitch/index.js +3 -0
  207. package/dist/components/DsSwitch/styles.css +393 -0
  208. package/dist/components/DsTable/index.js +3 -0
  209. package/dist/components/DsTable/styles.css +369 -0
  210. package/dist/components/DsTabs/index.js +3 -0
  211. package/dist/components/DsTabs/styles.css +390 -0
  212. package/dist/components/DsTextarea/index.js +3 -0
  213. package/dist/components/DsTextarea/styles.css +382 -0
  214. package/dist/components/DsToaster/index.js +3 -0
  215. package/dist/components/DsToaster/styles.css +558 -0
  216. package/dist/components/DsTooltip/index.js +3 -0
  217. package/dist/components/DsTooltip/styles.css +388 -0
  218. package/dist/components/DsTree/index.js +3 -0
  219. package/dist/components/DsTree/styles.css +375 -0
  220. package/dist/components/DsTreeSelect/index.js +3 -0
  221. package/dist/components/DsTreeSelect/styles.css +466 -0
  222. package/dist/composables/useTheme.js +44 -0
  223. package/dist/composables/useToast.js +37 -0
  224. package/dist/directives/autofocus.js +46 -0
  225. package/dist/directives/autosize.js +62 -0
  226. package/dist/directives/clickOutside.js +82 -0
  227. package/dist/directives/dropzone.js +110 -0
  228. package/dist/directives/globalDirectives.js +0 -0
  229. package/dist/directives/hotkey.js +104 -0
  230. package/dist/directives/loading.js +125 -0
  231. package/dist/directives.js +7 -0
  232. package/dist/fileValidation.js +2 -0
  233. package/dist/foundation.css +358 -0
  234. package/dist/i18n.js +9 -0
  235. package/dist/index.js +124 -0
  236. package/dist/package.json +293 -0
  237. package/dist/styles/base.css +33 -0
  238. package/dist/styles/themes/dark.css +102 -0
  239. package/dist/styles/themes/light.css +98 -0
  240. package/dist/styles/tokens.css +118 -0
  241. package/dist/styles.css +1134 -0
  242. package/dist/types/src/components/DsAlert/DsAlert.vue.d.ts +70 -0
  243. package/dist/types/src/components/DsAlert/config.d.ts +1 -0
  244. package/dist/types/src/components/DsAlert/index.d.ts +5 -0
  245. package/dist/types/src/components/DsAlert/safelist.d.ts +1 -0
  246. package/dist/types/src/components/DsAvatar/DsAvatar.vue.d.ts +53 -0
  247. package/dist/types/src/components/DsAvatar/config.d.ts +1 -0
  248. package/dist/types/src/components/DsAvatar/dsAvatarStyles.d.ts +6 -0
  249. package/dist/types/src/components/DsAvatar/index.d.ts +5 -0
  250. package/dist/types/src/components/DsAvatar/safelist.d.ts +1 -0
  251. package/dist/types/src/components/DsBadge/DsBadge.vue.d.ts +54 -0
  252. package/dist/types/src/components/DsBadge/config.d.ts +1 -0
  253. package/dist/types/src/components/DsBadge/dsBadgeStyles.d.ts +10 -0
  254. package/dist/types/src/components/DsBadge/index.d.ts +5 -0
  255. package/dist/types/src/components/DsBadge/safelist.d.ts +1 -0
  256. package/dist/types/src/components/DsBadgeWrap/DsBadgeWrap.vue.d.ts +44 -0
  257. package/dist/types/src/components/DsBadgeWrap/config.d.ts +1 -0
  258. package/dist/types/src/components/DsBadgeWrap/index.d.ts +4 -0
  259. package/dist/types/src/components/DsBadgeWrap/safelist.d.ts +1 -0
  260. package/dist/types/src/components/DsBottomNav/DsBottomNav.vue.d.ts +23 -0
  261. package/dist/types/src/components/DsBottomNav/config.d.ts +1 -0
  262. package/dist/types/src/components/DsBottomNav/index.d.ts +5 -0
  263. package/dist/types/src/components/DsBottomNav/safelist.d.ts +1 -0
  264. package/dist/types/src/components/DsButton/DsButton.vue.d.ts +70 -0
  265. package/dist/types/src/components/DsButton/config.d.ts +1 -0
  266. package/dist/types/src/components/DsButton/dsButtonStyles.d.ts +20 -0
  267. package/dist/types/src/components/DsButton/index.d.ts +5 -0
  268. package/dist/types/src/components/DsButton/safelist.d.ts +1 -0
  269. package/dist/types/src/components/DsButton/styles.css.d.ts +4 -0
  270. package/dist/types/src/components/DsButtonGroup/DsButtonGroup.vue.d.ts +40 -0
  271. package/dist/types/src/components/DsButtonGroup/config.d.ts +1 -0
  272. package/dist/types/src/components/DsButtonGroup/index.d.ts +4 -0
  273. package/dist/types/src/components/DsButtonGroup/safelist.d.ts +1 -0
  274. package/dist/types/src/components/DsButtonGroup/styles.css.d.ts +3 -0
  275. package/dist/types/src/components/DsCard/DsCard.vue.d.ts +13 -0
  276. package/dist/types/src/components/DsCard/config.d.ts +1 -0
  277. package/dist/types/src/components/DsCard/index.d.ts +4 -0
  278. package/dist/types/src/components/DsCard/safelist.d.ts +1 -0
  279. package/dist/types/src/components/DsCheckbox/DsCheckbox.vue.d.ts +64 -0
  280. package/dist/types/src/components/DsCheckbox/config.d.ts +1 -0
  281. package/dist/types/src/components/DsCheckbox/index.d.ts +4 -0
  282. package/dist/types/src/components/DsCheckbox/safelist.d.ts +1 -0
  283. package/dist/types/src/components/DsCollapse/DsCollapse.vue.d.ts +59 -0
  284. package/dist/types/src/components/DsCollapse/DsCollapseItem.vue.d.ts +51 -0
  285. package/dist/types/src/components/DsCollapse/config.d.ts +1 -0
  286. package/dist/types/src/components/DsCollapse/dsCollapseContext.d.ts +10 -0
  287. package/dist/types/src/components/DsCollapse/index.d.ts +7 -0
  288. package/dist/types/src/components/DsCollapse/safelist.d.ts +1 -0
  289. package/dist/types/src/components/DsConfirmDialog/DsConfirmDialog.vue.d.ts +93 -0
  290. package/dist/types/src/components/DsConfirmDialog/config.d.ts +1 -0
  291. package/dist/types/src/components/DsConfirmDialog/index.d.ts +4 -0
  292. package/dist/types/src/components/DsConfirmDialog/safelist.d.ts +1 -0
  293. package/dist/types/src/components/DsDataTable/DsDataTable.vue.d.ts +58 -0
  294. package/dist/types/src/components/DsDataTable/config.d.ts +1 -0
  295. package/dist/types/src/components/DsDataTable/index.d.ts +5 -0
  296. package/dist/types/src/components/DsDataTable/safelist.d.ts +1 -0
  297. package/dist/types/src/components/DsDialog/DsDialog.vue.d.ts +76 -0
  298. package/dist/types/src/components/DsDialog/DsDialogCloseButton.vue.d.ts +7 -0
  299. package/dist/types/src/components/DsDialog/DsDialogFooter.vue.d.ts +41 -0
  300. package/dist/types/src/components/DsDialog/DsDialogHeader.vue.d.ts +54 -0
  301. package/dist/types/src/components/DsDialog/config.d.ts +1 -0
  302. package/dist/types/src/components/DsDialog/dialogShared.d.ts +10 -0
  303. package/dist/types/src/components/DsDialog/dsDialogStyles.d.ts +1 -0
  304. package/dist/types/src/components/DsDialog/index.d.ts +4 -0
  305. package/dist/types/src/components/DsDrawer/DsDrawer.vue.d.ts +61 -0
  306. package/dist/types/src/components/DsDrawer/config.d.ts +1 -0
  307. package/dist/types/src/components/DsDrawer/dsDrawerStyles.d.ts +21 -0
  308. package/dist/types/src/components/DsDrawer/index.d.ts +4 -0
  309. package/dist/types/src/components/DsDrawer/safelist.d.ts +1 -0
  310. package/dist/types/src/components/DsDropdown/DsDropdown.vue.d.ts +67 -0
  311. package/dist/types/src/components/DsDropdown/config.d.ts +1 -0
  312. package/dist/types/src/components/DsDropdown/dsDropdownStyles.d.ts +6 -0
  313. package/dist/types/src/components/DsDropdown/index.d.ts +4 -0
  314. package/dist/types/src/components/DsDropdown/safelist.d.ts +1 -0
  315. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenu.vue.d.ts +78 -0
  316. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumn.vue.d.ts +40 -0
  317. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuColumns.vue.d.ts +40 -0
  318. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuDivider.vue.d.ts +30 -0
  319. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuGroup.vue.d.ts +53 -0
  320. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuHeader.vue.d.ts +49 -0
  321. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuItem.vue.d.ts +55 -0
  322. package/dist/types/src/components/DsDropdownMenu/DsDropdownMenuList.vue.d.ts +48 -0
  323. package/dist/types/src/components/DsDropdownMenu/config.d.ts +1 -0
  324. package/dist/types/src/components/DsDropdownMenu/index.d.ts +14 -0
  325. package/dist/types/src/components/DsDropdownMenu/safelist.d.ts +1 -0
  326. package/dist/types/src/components/DsEmptyState/DsEmptyState.vue.d.ts +41 -0
  327. package/dist/types/src/components/DsEmptyState/config.d.ts +1 -0
  328. package/dist/types/src/components/DsEmptyState/index.d.ts +4 -0
  329. package/dist/types/src/components/DsEmptyState/safelist.d.ts +1 -0
  330. package/dist/types/src/components/DsFileUpload/DsFileUpload.vue.d.ts +136 -0
  331. package/dist/types/src/components/DsFileUpload/FileValidationError.d.ts +1 -0
  332. package/dist/types/src/components/DsFileUpload/acceptValidator.d.ts +1 -0
  333. package/dist/types/src/components/DsFileUpload/config.d.ts +1 -0
  334. package/dist/types/src/components/DsFileUpload/index.d.ts +5 -0
  335. package/dist/types/src/components/DsFileUpload/matchAccept.d.ts +1 -0
  336. package/dist/types/src/components/DsFileUpload/maxSizeMbValidator.d.ts +1 -0
  337. package/dist/types/src/components/DsFileUpload/runFileValidators.d.ts +2 -0
  338. package/dist/types/src/components/DsFileUpload/safelist.d.ts +1 -0
  339. package/dist/types/src/components/DsFileUpload/types.d.ts +1 -0
  340. package/dist/types/src/components/DsFormField/DsFormField.vue.d.ts +53 -0
  341. package/dist/types/src/components/DsFormField/config.d.ts +1 -0
  342. package/dist/types/src/components/DsFormField/dsFormFieldStyles.d.ts +1 -0
  343. package/dist/types/src/components/DsFormField/index.d.ts +3 -0
  344. package/dist/types/src/components/DsFormFile/DsFormFile.vue.d.ts +102 -0
  345. package/dist/types/src/components/DsFormFile/config.d.ts +1 -0
  346. package/dist/types/src/components/DsFormFile/index.d.ts +5 -0
  347. package/dist/types/src/components/DsFormFile/safelist.d.ts +1 -0
  348. package/dist/types/src/components/DsFormSection/DsFormSection.vue.d.ts +41 -0
  349. package/dist/types/src/components/DsFormSection/config.d.ts +1 -0
  350. package/dist/types/src/components/DsFormSection/index.d.ts +4 -0
  351. package/dist/types/src/components/DsFormSection/safelist.d.ts +1 -0
  352. package/dist/types/src/components/DsIcon/DsIcon.vue.d.ts +26 -0
  353. package/dist/types/src/components/DsIcon/config.d.ts +1 -0
  354. package/dist/types/src/components/DsIcon/dsIconStyles.d.ts +2 -0
  355. package/dist/types/src/components/DsIcon/index.d.ts +5 -0
  356. package/dist/types/src/components/DsIcon/styles.css.d.ts +5 -0
  357. package/dist/types/src/components/DsImageViewer/DsImageViewer.vue.d.ts +121 -0
  358. package/dist/types/src/components/DsImageViewer/config.d.ts +1 -0
  359. package/dist/types/src/components/DsImageViewer/index.d.ts +4 -0
  360. package/dist/types/src/components/DsImageViewer/safelist.d.ts +1 -0
  361. package/dist/types/src/components/DsInput/DsInput.vue.d.ts +109 -0
  362. package/dist/types/src/components/DsInput/config.d.ts +1 -0
  363. package/dist/types/src/components/DsInput/dsInputStyles.d.ts +1 -0
  364. package/dist/types/src/components/DsInput/index.d.ts +5 -0
  365. package/dist/types/src/components/DsInputTag/DsInputTag.vue.d.ts +123 -0
  366. package/dist/types/src/components/DsInputTag/config.d.ts +1 -0
  367. package/dist/types/src/components/DsInputTag/dsInputTagStyles.d.ts +11 -0
  368. package/dist/types/src/components/DsInputTag/index.d.ts +5 -0
  369. package/dist/types/src/components/DsInputTag/safelist.d.ts +1 -0
  370. package/dist/types/src/components/DsLink/DsLink.vue.d.ts +76 -0
  371. package/dist/types/src/components/DsLink/config.d.ts +1 -0
  372. package/dist/types/src/components/DsLink/dsLinkStyles.d.ts +10 -0
  373. package/dist/types/src/components/DsLink/index.d.ts +5 -0
  374. package/dist/types/src/components/DsLink/safelist.d.ts +1 -0
  375. package/dist/types/src/components/DsList/DsList.vue.d.ts +40 -0
  376. package/dist/types/src/components/DsList/DsListItem.vue.d.ts +25 -0
  377. package/dist/types/src/components/DsList/config.d.ts +1 -0
  378. package/dist/types/src/components/DsList/index.d.ts +5 -0
  379. package/dist/types/src/components/DsList/safelist.d.ts +1 -0
  380. package/dist/types/src/components/DsLoading/DsLoading.vue.d.ts +59 -0
  381. package/dist/types/src/components/DsLoading/config.d.ts +1 -0
  382. package/dist/types/src/components/DsLoading/dsLoadingStyles.d.ts +6 -0
  383. package/dist/types/src/components/DsLoading/index.d.ts +4 -0
  384. package/dist/types/src/components/DsLoading/safelist.d.ts +1 -0
  385. package/dist/types/src/components/DsModal/DsModal.vue.d.ts +51 -0
  386. package/dist/types/src/components/DsModal/config.d.ts +1 -0
  387. package/dist/types/src/components/DsModal/dsModalStyles.d.ts +17 -0
  388. package/dist/types/src/components/DsModal/index.d.ts +5 -0
  389. package/dist/types/src/components/DsModal/safelist.d.ts +1 -0
  390. package/dist/types/src/components/DsModal/styles.css.d.ts +3 -0
  391. package/dist/types/src/components/DsNavbar/DsNavbar.vue.d.ts +52 -0
  392. package/dist/types/src/components/DsNavbar/config.d.ts +1 -0
  393. package/dist/types/src/components/DsNavbar/index.d.ts +4 -0
  394. package/dist/types/src/components/DsNavbar/safelist.d.ts +1 -0
  395. package/dist/types/src/components/DsNumberInput/DsNumberInput.vue.d.ts +135 -0
  396. package/dist/types/src/components/DsNumberInput/config.d.ts +1 -0
  397. package/dist/types/src/components/DsNumberInput/dsNumberInputStyles.d.ts +15 -0
  398. package/dist/types/src/components/DsNumberInput/index.d.ts +5 -0
  399. package/dist/types/src/components/DsNumberInput/safelist.d.ts +1 -0
  400. package/dist/types/src/components/DsPagination/DsPagination.vue.d.ts +39 -0
  401. package/dist/types/src/components/DsPagination/config.d.ts +1 -0
  402. package/dist/types/src/components/DsPagination/index.d.ts +4 -0
  403. package/dist/types/src/components/DsPagination/safelist.d.ts +1 -0
  404. package/dist/types/src/components/DsProgressBar/DsProgressBar.vue.d.ts +36 -0
  405. package/dist/types/src/components/DsProgressBar/config.d.ts +1 -0
  406. package/dist/types/src/components/DsProgressBar/dsStyle.d.ts +6 -0
  407. package/dist/types/src/components/DsProgressBar/index.d.ts +4 -0
  408. package/dist/types/src/components/DsProgressBar/safelist.d.ts +1 -0
  409. package/dist/types/src/components/DsPromptDialog/DsPromptDialog.vue.d.ts +108 -0
  410. package/dist/types/src/components/DsPromptDialog/config.d.ts +1 -0
  411. package/dist/types/src/components/DsPromptDialog/index.d.ts +4 -0
  412. package/dist/types/src/components/DsPromptDialog/safelist.d.ts +1 -0
  413. package/dist/types/src/components/DsPromptDialog/styles.css.d.ts +1 -0
  414. package/dist/types/src/components/DsRadio/DsRadio.vue.d.ts +94 -0
  415. package/dist/types/src/components/DsRadio/config.d.ts +1 -0
  416. package/dist/types/src/components/DsRadio/dsRadioGroupContext.d.ts +10 -0
  417. package/dist/types/src/components/DsRadio/dsRadioStyles.d.ts +16 -0
  418. package/dist/types/src/components/DsRadio/index.d.ts +7 -0
  419. package/dist/types/src/components/DsRadio/safelist.d.ts +1 -0
  420. package/dist/types/src/components/DsRadioGroup/DsRadioGroup.vue.d.ts +69 -0
  421. package/dist/types/src/components/DsRadioGroup/config.d.ts +1 -0
  422. package/dist/types/src/components/DsRadioGroup/index.d.ts +5 -0
  423. package/dist/types/src/components/DsRadioGroup/safelist.d.ts +1 -0
  424. package/dist/types/src/components/DsSegmented/DsSegmented.vue.d.ts +77 -0
  425. package/dist/types/src/components/DsSegmented/config.d.ts +1 -0
  426. package/dist/types/src/components/DsSegmented/dsSegmentedStyles.d.ts +45 -0
  427. package/dist/types/src/components/DsSegmented/index.d.ts +5 -0
  428. package/dist/types/src/components/DsSegmented/safelist.d.ts +1 -0
  429. package/dist/types/src/components/DsSelect/DsSelect.vue.d.ts +132 -0
  430. package/dist/types/src/components/DsSelect/config.d.ts +1 -0
  431. package/dist/types/src/components/DsSelect/dsSelectStyles.d.ts +35 -0
  432. package/dist/types/src/components/DsSelect/index.d.ts +5 -0
  433. package/dist/types/src/components/DsSelect/safelist.d.ts +1 -0
  434. package/dist/types/src/components/DsSelect/styles.css.d.ts +1 -0
  435. package/dist/types/src/components/DsSidebar/DsSidebar.vue.d.ts +41 -0
  436. package/dist/types/src/components/DsSidebar/config.d.ts +1 -0
  437. package/dist/types/src/components/DsSidebar/index.d.ts +4 -0
  438. package/dist/types/src/components/DsSidebar/safelist.d.ts +1 -0
  439. package/dist/types/src/components/DsSkeleton/DsSkeleton.vue.d.ts +38 -0
  440. package/dist/types/src/components/DsSkeleton/config.d.ts +1 -0
  441. package/dist/types/src/components/DsSkeleton/index.d.ts +4 -0
  442. package/dist/types/src/components/DsSkeleton/safelist.d.ts +1 -0
  443. package/dist/types/src/components/DsSwitch/DsSwitch.vue.d.ts +63 -0
  444. package/dist/types/src/components/DsSwitch/config.d.ts +1 -0
  445. package/dist/types/src/components/DsSwitch/dsSwitchStyles.d.ts +19 -0
  446. package/dist/types/src/components/DsSwitch/index.d.ts +5 -0
  447. package/dist/types/src/components/DsSwitch/safelist.d.ts +1 -0
  448. package/dist/types/src/components/DsTable/DsTable.vue.d.ts +15 -0
  449. package/dist/types/src/components/DsTable/config.d.ts +1 -0
  450. package/dist/types/src/components/DsTable/index.d.ts +4 -0
  451. package/dist/types/src/components/DsTable/safelist.d.ts +1 -0
  452. package/dist/types/src/components/DsTabs/DsTabs.vue.d.ts +24 -0
  453. package/dist/types/src/components/DsTabs/config.d.ts +1 -0
  454. package/dist/types/src/components/DsTabs/index.d.ts +5 -0
  455. package/dist/types/src/components/DsTabs/safelist.d.ts +1 -0
  456. package/dist/types/src/components/DsTextarea/DsTextarea.vue.d.ts +65 -0
  457. package/dist/types/src/components/DsTextarea/config.d.ts +1 -0
  458. package/dist/types/src/components/DsTextarea/dsTextareaStyles.d.ts +6 -0
  459. package/dist/types/src/components/DsTextarea/index.d.ts +5 -0
  460. package/dist/types/src/components/DsTextarea/safelist.d.ts +1 -0
  461. package/dist/types/src/components/DsToaster/DsToaster.vue.d.ts +3 -0
  462. package/dist/types/src/components/DsToaster/config.d.ts +1 -0
  463. package/dist/types/src/components/DsToaster/index.d.ts +4 -0
  464. package/dist/types/src/components/DsToaster/safelist.d.ts +1 -0
  465. package/dist/types/src/components/DsTooltip/DsTooltip.vue.d.ts +41 -0
  466. package/dist/types/src/components/DsTooltip/config.d.ts +1 -0
  467. package/dist/types/src/components/DsTooltip/index.d.ts +4 -0
  468. package/dist/types/src/components/DsTooltip/safelist.d.ts +1 -0
  469. package/dist/types/src/components/DsTree/DsTree.vue.d.ts +35 -0
  470. package/dist/types/src/components/DsTree/config.d.ts +1 -0
  471. package/dist/types/src/components/DsTree/dsTreeDataAdapter.d.ts +14 -0
  472. package/dist/types/src/components/DsTree/dsTreeInteractionContext.d.ts +31 -0
  473. package/dist/types/src/components/DsTree/dsTreeProps.d.ts +57 -0
  474. package/dist/types/src/components/DsTree/dsTreeStore.d.ts +45 -0
  475. package/dist/types/src/components/DsTree/dsTreeTypes.d.ts +24 -0
  476. package/dist/types/src/components/DsTree/index.d.ts +6 -0
  477. package/dist/types/src/components/DsTree/safelist.d.ts +1 -0
  478. package/dist/types/src/components/DsTreeSelect/DsTreeSelect.vue.d.ts +72 -0
  479. package/dist/types/src/components/DsTreeSelect/config.d.ts +1 -0
  480. package/dist/types/src/components/DsTreeSelect/dsTreeSelectStyles.d.ts +9 -0
  481. package/dist/types/src/components/DsTreeSelect/dsTreeSelectTypes.d.ts +3 -0
  482. package/dist/types/src/components/DsTreeSelect/index.d.ts +5 -0
  483. package/dist/types/src/components/DsTreeSelect/safelist.d.ts +1 -0
  484. package/dist/types/src/components/shared/classTokens.d.ts +1 -0
  485. package/dist/types/src/composables/useTheme.d.ts +24 -0
  486. package/dist/types/src/composables/useToast.d.ts +19 -0
  487. package/dist/types/src/directives/autofocus.d.ts +11 -0
  488. package/dist/types/src/directives/autosize.d.ts +13 -0
  489. package/dist/types/src/directives/clickOutside.d.ts +18 -0
  490. package/dist/types/src/directives/dropzone.d.ts +30 -0
  491. package/dist/types/src/directives/globalDirectives.d.ts +18 -0
  492. package/dist/types/src/directives/hotkey.d.ts +25 -0
  493. package/dist/types/src/directives/index.d.ts +13 -0
  494. package/dist/types/src/directives/loading.d.ts +38 -0
  495. package/dist/types/src/fileValidation/FileValidationError.d.ts +7 -0
  496. package/dist/types/src/fileValidation/acceptValidator.d.ts +2 -0
  497. package/dist/types/src/fileValidation/allowedExtensionsValidator.d.ts +2 -0
  498. package/dist/types/src/fileValidation/allowedMimeTypesValidator.d.ts +9 -0
  499. package/dist/types/src/fileValidation/index.d.ts +11 -0
  500. package/dist/types/src/fileValidation/matchAccept.d.ts +1 -0
  501. package/dist/types/src/fileValidation/maxFileSizeBytesValidator.d.ts +2 -0
  502. package/dist/types/src/fileValidation/maxSizeMbValidator.d.ts +2 -0
  503. package/dist/types/src/fileValidation/maxTotalSizeBytesValidator.d.ts +2 -0
  504. package/dist/types/src/fileValidation/runFileValidators.d.ts +7 -0
  505. package/dist/types/src/fileValidation/types.d.ts +27 -0
  506. package/dist/types/src/i18n/adapter.d.ts +8 -0
  507. package/dist/types/src/i18n/index.d.ts +2 -0
  508. package/dist/types/src/i18n/messages.d.ts +268 -0
  509. package/dist/types/src/index.d.ts +59 -0
  510. package/dist/types/src/internal/granularityI18n.d.ts +8 -0
  511. package/dist/types/src/registry/componentConfig.d.ts +17 -0
  512. package/dist/types/src/registry/componentCss.d.ts +3 -0
  513. package/dist/types/src/registry/componentCss.node.d.ts +5 -0
  514. package/dist/types/src/registry/components.d.ts +56 -0
  515. package/dist/types/src/registry/safelist.d.ts +11 -0
  516. package/dist/types/src/theming/themeRegistry.d.ts +19 -0
  517. package/dist/types/src/theming/themeRegistry.node.d.ts +14 -0
  518. package/dist/types/src/unocss/preset.d.ts +18 -0
  519. package/dist/types/src/unocss/preset.node.d.ts +15 -0
  520. package/dist/types/src/unocss/rules/animation.d.ts +3 -0
  521. package/dist/types/src/unocss/rules/colorOpacity.d.ts +2 -0
  522. package/dist/types/src/unocss/rules/filters.d.ts +8 -0
  523. package/dist/types/src/unocss/rules/spacing.d.ts +8 -0
  524. package/dist/uno-node.js +103 -0
  525. package/dist/uno.js +2 -0
  526. package/package.json +367 -0
  527. package/web-types.json +100 -0
@@ -0,0 +1,30 @@
1
+ import type { Directive } from 'vue';
2
+ import type { FileValidator } from '../fileValidation';
3
+ export type DropzoneOnFiles = (files: File[], event: DragEvent) => void | Promise<void>;
4
+ export type DropzoneBindingValue = DropzoneOnFiles | {
5
+ onFiles: DropzoneOnFiles;
6
+ /** По умолчанию `true`. */
7
+ enabled?: boolean;
8
+ /** По умолчанию `true`. */
9
+ multiple?: boolean;
10
+ /** Валидаторы, которые будут запущены перед `onFiles`. */
11
+ validators?: FileValidator[];
12
+ /** По умолчанию `true` (предотвращаем дефолтное поведение браузера при drop). */
13
+ preventDefault?: boolean;
14
+ /** По умолчанию `false`. */
15
+ stopPropagation?: boolean;
16
+ /** Вызывается, если валидация файлов не прошла. */
17
+ onError?: (error: unknown) => void;
18
+ /** Вызывается при изменении состояния drag-over. */
19
+ onStateChange?: (state: {
20
+ isOver: boolean;
21
+ }) => void;
22
+ /** CSS-класс, который навешивается на элемент, пока курсор с файлами над зоной. */
23
+ overClass?: string;
24
+ };
25
+ /**
26
+ * `v-dropzone` — декларативная DnD-зона для файлов (перетаскивание + drop).
27
+ *
28
+ * Директива не делает загрузку сама — только нормализует события и отдаёт `File[]`.
29
+ */
30
+ export declare const vDropzone: Directive<HTMLElement, DropzoneBindingValue>;
@@ -0,0 +1,18 @@
1
+ import type { Directive } from 'vue';
2
+ import type { AutofocusBindingValue } from './autofocus';
3
+ import type { AutosizeBindingValue } from './autosize';
4
+ import type { ClickOutsideBindingValue } from './clickOutside';
5
+ import type { DropzoneBindingValue } from './dropzone';
6
+ import type { HotkeyBindingValue } from './hotkey';
7
+ import type { LoadingBindingValue } from './loading';
8
+ declare module 'vue' {
9
+ interface GlobalDirectives {
10
+ vAutofocus: Directive<HTMLElement, AutofocusBindingValue>;
11
+ vAutosize: Directive<HTMLTextAreaElement, AutosizeBindingValue>;
12
+ vClickOutside: Directive<HTMLElement, ClickOutsideBindingValue>;
13
+ vDropzone: Directive<HTMLElement, DropzoneBindingValue>;
14
+ vHotkey: Directive<HTMLElement, HotkeyBindingValue>;
15
+ vLoading: Directive<HTMLElement, LoadingBindingValue>;
16
+ }
17
+ }
18
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { Directive } from 'vue';
2
+ export type HotkeyHandler = (event: KeyboardEvent) => void;
3
+ export type HotkeyEntry = HotkeyHandler | {
4
+ handler: HotkeyHandler;
5
+ /** По умолчанию: `true` для комбинаций с Ctrl/Meta/Alt, иначе `false`. */
6
+ preventDefault?: boolean;
7
+ /** По умолчанию `false`. */
8
+ stopPropagation?: boolean;
9
+ /** Разрешить срабатывать, когда фокус в `input/textarea/[contenteditable]`. */
10
+ allowInEditable?: boolean;
11
+ };
12
+ export type HotkeyMap = Record<string, HotkeyEntry>;
13
+ export type HotkeyBindingValue = HotkeyMap | {
14
+ handlers: HotkeyMap;
15
+ enabled?: boolean;
16
+ };
17
+ /**
18
+ * `v-hotkey` — горячие клавиши на компонент/страницу.
19
+ *
20
+ * Пример:
21
+ * ```vue
22
+ * <div v-hotkey="{ 'Escape': close, 'Ctrl+K': openSearch }" />
23
+ * ```
24
+ */
25
+ export declare const vHotkey: Directive<HTMLElement, HotkeyBindingValue>;
@@ -0,0 +1,13 @@
1
+ export type {} from './globalDirectives';
2
+ export { vAutofocus } from './autofocus';
3
+ export type { AutofocusBindingValue } from './autofocus';
4
+ export { vAutosize } from './autosize';
5
+ export type { AutosizeBindingValue } from './autosize';
6
+ export { vClickOutside } from './clickOutside';
7
+ export type { ClickOutsideBindingValue, ClickOutsideExclude, ClickOutsideHandler, } from './clickOutside';
8
+ export { vDropzone } from './dropzone';
9
+ export type { DropzoneBindingValue, DropzoneOnFiles } from './dropzone';
10
+ export { vHotkey } from './hotkey';
11
+ export type { HotkeyBindingValue, HotkeyEntry, HotkeyHandler, HotkeyMap } from './hotkey';
12
+ export { createLoading, vLoading } from './loading';
13
+ export type { LoadingBindingValue, LoadingController, LoadingOptions, LoadingTarget, } from './loading';
@@ -0,0 +1,38 @@
1
+ import type { AppContext, Component, Directive } from 'vue';
2
+ export type LoadingTarget = string | HTMLElement;
3
+ export type LoadingOptions = {
4
+ /**
5
+ * Контейнер, куда будет вставлен оверлей.
6
+ * - если не задано, то для директивы используется сам `el`
7
+ * - для ручного вызова (`createLoading`) по умолчанию используется `document.body`
8
+ */
9
+ target?: LoadingTarget;
10
+ /**
11
+ * Полноэкранный лоадер (рендерится в `document.body`).
12
+ * По умолчанию включается, если `target` = `document.body`.
13
+ */
14
+ fullscreen?: boolean;
15
+ text?: string;
16
+ spinner?: Component;
17
+ spinnerClass?: string;
18
+ animated?: boolean;
19
+ background?: string;
20
+ zIndex?: number;
21
+ customClass?: string;
22
+ /**
23
+ * Внутренний контекст Vue-приложения.
24
+ * Нужен, чтобы кастомный `spinner` мог использовать `inject()` даже при ручном `render()`.
25
+ */
26
+ appContext?: AppContext;
27
+ };
28
+ export type LoadingController = {
29
+ close: () => void;
30
+ setText: (text?: string) => void;
31
+ setOptions: (next: Partial<LoadingOptions>) => void;
32
+ readonly target: HTMLElement;
33
+ };
34
+ export type LoadingBindingValue = boolean | (Omit<LoadingOptions, 'appContext'> & {
35
+ loading?: boolean;
36
+ });
37
+ export declare function createLoading(options?: LoadingOptions, fallbackTarget?: HTMLElement): LoadingController;
38
+ export declare const vLoading: Directive<HTMLElement, LoadingBindingValue>;
@@ -0,0 +1,7 @@
1
+ import type { FileValidationIssue, FileValidationIssueCode } from './types';
2
+ export declare class FileValidationError extends Error {
3
+ code: FileValidationIssueCode;
4
+ file?: File;
5
+ issues: FileValidationIssue[];
6
+ constructor(issues: FileValidationIssue[], files?: File[], message?: string);
7
+ }
@@ -0,0 +1,2 @@
1
+ import type { FileValidator } from './types';
2
+ export declare function acceptValidator(accept: string | undefined): FileValidator;
@@ -0,0 +1,2 @@
1
+ import type { FileValidator } from './types';
2
+ export declare function allowedExtensionsValidator(exts: string[]): FileValidator;
@@ -0,0 +1,9 @@
1
+ import type { FileValidator } from './types';
2
+ export type AllowedMimeTypesValidatorOptions = {
3
+ /**
4
+ * Если `true`, то для fallback-типа (`''`/`application/octet-stream`) валидация по MIME пропускается,
5
+ * предполагая проверку расширения отдельным валидатором.
6
+ */
7
+ allowFallbackByExtension?: boolean;
8
+ };
9
+ export declare function allowedMimeTypesValidator(allowed: string[], options?: AllowedMimeTypesValidatorOptions): FileValidator;
@@ -0,0 +1,11 @@
1
+ export type * from './types';
2
+ export { FileValidationError } from './FileValidationError';
3
+ export { normalizeFiles, runFileValidators } from './runFileValidators';
4
+ export { matchAccept } from './matchAccept';
5
+ export { acceptValidator } from './acceptValidator';
6
+ export { allowedExtensionsValidator } from './allowedExtensionsValidator';
7
+ export { allowedMimeTypesValidator } from './allowedMimeTypesValidator';
8
+ export type { AllowedMimeTypesValidatorOptions } from './allowedMimeTypesValidator';
9
+ export { maxFileSizeBytesValidator } from './maxFileSizeBytesValidator';
10
+ export { maxSizeMbValidator } from './maxSizeMbValidator';
11
+ export { maxTotalSizeBytesValidator } from './maxTotalSizeBytesValidator';
@@ -0,0 +1 @@
1
+ export declare function matchAccept(file: File, accept: string | undefined): boolean;
@@ -0,0 +1,2 @@
1
+ import type { FileValidator } from './types';
2
+ export declare function maxFileSizeBytesValidator(maxBytes: number | undefined): FileValidator;
@@ -0,0 +1,2 @@
1
+ import type { FileValidator } from './types';
2
+ export declare function maxSizeMbValidator(maxSizeMb: number | undefined): FileValidator;
@@ -0,0 +1,2 @@
1
+ import type { FileValidator } from './types';
2
+ export declare function maxTotalSizeBytesValidator(maxBytes: number | undefined): FileValidator;
@@ -0,0 +1,7 @@
1
+ import type { FileValidationIssue, FileValidator, FileValidatorContext } from './types';
2
+ export declare function normalizeFiles(files: File[], multiple: boolean): File[];
3
+ export type RunFileValidatorsResult = {
4
+ files: File[];
5
+ issues: FileValidationIssue[];
6
+ };
7
+ export declare function runFileValidators(files: File[], validators: FileValidator[] | undefined, context: FileValidatorContext): RunFileValidatorsResult | Promise<RunFileValidatorsResult>;
@@ -0,0 +1,27 @@
1
+ export type FileValidationIssueCode = 'accept' | 'mimeType' | 'extension' | 'maxSize' | 'maxFileSize' | 'maxTotalSize' | (string & {});
2
+ export type FileValidationIssue = {
3
+ fileName?: string;
4
+ code: FileValidationIssueCode;
5
+ message: string;
6
+ /**
7
+ * Доп. данные для UI/логирования (не использовать для логики, если можно опереться на `code`).
8
+ */
9
+ meta?: Record<string, unknown>;
10
+ /**
11
+ * Опциональная поддержка i18n: ключ + параметры.
12
+ * `message` остаётся обязательным как безопасный fallback.
13
+ */
14
+ i18nKey?: string;
15
+ i18nParams?: Record<string, unknown>;
16
+ };
17
+ export type FileValidatorSource = 'input' | 'drop';
18
+ export type FileValidatorContext = {
19
+ source: FileValidatorSource;
20
+ multiple: boolean;
21
+ accept?: string;
22
+ };
23
+ export type FileValidatorInput = {
24
+ files: File[];
25
+ context: FileValidatorContext;
26
+ };
27
+ export type FileValidator = (input: FileValidatorInput) => FileValidationIssue[] | Promise<FileValidationIssue[]>;
@@ -0,0 +1,8 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ export type GranularityI18nParams = Record<string, unknown>;
3
+ export type GranularityI18nAdapter = {
4
+ t: (key: string, params?: GranularityI18nParams) => string;
5
+ locale?: Readonly<Ref<string>>;
6
+ syncLocale?: (locale: string) => void | Promise<void>;
7
+ };
8
+ export declare const GRANULARITY_I18N_KEY: InjectionKey<GranularityI18nAdapter | null>;
@@ -0,0 +1,2 @@
1
+ export * from './adapter';
2
+ export * from './messages';
@@ -0,0 +1,268 @@
1
+ type GranularityLocalePayload = Record<string, unknown>;
2
+ type GranularityLocaleModule = {
3
+ default: GranularityLocalePayload;
4
+ };
5
+ type GranularityLocaleLoader = () => Promise<GranularityLocaleModule>;
6
+ export type GranularityLocaleLoaderCollection = Record<string, Record<string, GranularityLocaleLoader>>;
7
+ export declare const DS_I18N_BLOCK = "ds";
8
+ export declare const dsLocaleLoaders: {
9
+ en: {
10
+ ds: () => Promise<{
11
+ default: {
12
+ common: {
13
+ confirm: string;
14
+ cancel: string;
15
+ add: string;
16
+ clear: string;
17
+ close: string;
18
+ };
19
+ loading: {
20
+ defaultText: string;
21
+ };
22
+ treeSelect: {
23
+ filterPlaceholder: string;
24
+ empty: string;
25
+ };
26
+ dialog: {
27
+ confirm: {
28
+ title: string;
29
+ };
30
+ prompt: {
31
+ title: string;
32
+ label: string;
33
+ required: string;
34
+ };
35
+ };
36
+ pagination: {
37
+ pageSize: string;
38
+ prev: string;
39
+ next: string;
40
+ };
41
+ navbar: {
42
+ openMenu: string;
43
+ };
44
+ colors: {
45
+ neutral: string;
46
+ success: string;
47
+ warning: string;
48
+ danger: string;
49
+ info: string;
50
+ primary: string;
51
+ };
52
+ };
53
+ common: {
54
+ confirm: string;
55
+ cancel: string;
56
+ add: string;
57
+ clear: string;
58
+ close: string;
59
+ };
60
+ loading: {
61
+ defaultText: string;
62
+ };
63
+ treeSelect: {
64
+ filterPlaceholder: string;
65
+ empty: string;
66
+ };
67
+ dialog: {
68
+ confirm: {
69
+ title: string;
70
+ };
71
+ prompt: {
72
+ title: string;
73
+ label: string;
74
+ required: string;
75
+ };
76
+ };
77
+ pagination: {
78
+ pageSize: string;
79
+ prev: string;
80
+ next: string;
81
+ };
82
+ navbar: {
83
+ openMenu: string;
84
+ };
85
+ colors: {
86
+ neutral: string;
87
+ success: string;
88
+ warning: string;
89
+ danger: string;
90
+ info: string;
91
+ primary: string;
92
+ };
93
+ }>;
94
+ };
95
+ ru: {
96
+ ds: () => Promise<{
97
+ default: {
98
+ common: {
99
+ confirm: string;
100
+ cancel: string;
101
+ add: string;
102
+ clear: string;
103
+ close: string;
104
+ };
105
+ loading: {
106
+ defaultText: string;
107
+ };
108
+ treeSelect: {
109
+ filterPlaceholder: string;
110
+ empty: string;
111
+ };
112
+ dialog: {
113
+ confirm: {
114
+ title: string;
115
+ };
116
+ prompt: {
117
+ title: string;
118
+ label: string;
119
+ required: string;
120
+ };
121
+ };
122
+ pagination: {
123
+ pageSize: string;
124
+ prev: string;
125
+ next: string;
126
+ };
127
+ navbar: {
128
+ openMenu: string;
129
+ };
130
+ colors: {
131
+ neutral: string;
132
+ success: string;
133
+ warning: string;
134
+ danger: string;
135
+ info: string;
136
+ primary: string;
137
+ };
138
+ };
139
+ common: {
140
+ confirm: string;
141
+ cancel: string;
142
+ add: string;
143
+ clear: string;
144
+ close: string;
145
+ };
146
+ loading: {
147
+ defaultText: string;
148
+ };
149
+ treeSelect: {
150
+ filterPlaceholder: string;
151
+ empty: string;
152
+ };
153
+ dialog: {
154
+ confirm: {
155
+ title: string;
156
+ };
157
+ prompt: {
158
+ title: string;
159
+ label: string;
160
+ required: string;
161
+ };
162
+ };
163
+ pagination: {
164
+ pageSize: string;
165
+ prev: string;
166
+ next: string;
167
+ };
168
+ navbar: {
169
+ openMenu: string;
170
+ };
171
+ colors: {
172
+ neutral: string;
173
+ success: string;
174
+ warning: string;
175
+ danger: string;
176
+ info: string;
177
+ primary: string;
178
+ };
179
+ }>;
180
+ };
181
+ es: {
182
+ ds: () => Promise<{
183
+ default: {
184
+ common: {
185
+ confirm: string;
186
+ cancel: string;
187
+ add: string;
188
+ clear: string;
189
+ close: string;
190
+ };
191
+ loading: {
192
+ defaultText: string;
193
+ };
194
+ treeSelect: {
195
+ filterPlaceholder: string;
196
+ empty: string;
197
+ };
198
+ dialog: {
199
+ confirm: {
200
+ title: string;
201
+ };
202
+ prompt: {
203
+ title: string;
204
+ label: string;
205
+ required: string;
206
+ };
207
+ };
208
+ pagination: {
209
+ pageSize: string;
210
+ prev: string;
211
+ next: string;
212
+ };
213
+ navbar: {
214
+ openMenu: string;
215
+ };
216
+ colors: {
217
+ neutral: string;
218
+ success: string;
219
+ warning: string;
220
+ danger: string;
221
+ info: string;
222
+ primary: string;
223
+ };
224
+ };
225
+ common: {
226
+ confirm: string;
227
+ cancel: string;
228
+ add: string;
229
+ clear: string;
230
+ close: string;
231
+ };
232
+ loading: {
233
+ defaultText: string;
234
+ };
235
+ treeSelect: {
236
+ filterPlaceholder: string;
237
+ empty: string;
238
+ };
239
+ dialog: {
240
+ confirm: {
241
+ title: string;
242
+ };
243
+ prompt: {
244
+ title: string;
245
+ label: string;
246
+ required: string;
247
+ };
248
+ };
249
+ pagination: {
250
+ pageSize: string;
251
+ prev: string;
252
+ next: string;
253
+ };
254
+ navbar: {
255
+ openMenu: string;
256
+ };
257
+ colors: {
258
+ neutral: string;
259
+ success: string;
260
+ warning: string;
261
+ danger: string;
262
+ info: string;
263
+ primary: string;
264
+ };
265
+ }>;
266
+ };
267
+ };
268
+ export {};
@@ -0,0 +1,59 @@
1
+ export * from './components/DsAlert';
2
+ export * from './components/DsAvatar';
3
+ export * from './components/DsBadge';
4
+ export * from './components/DsBadgeWrap';
5
+ export * from './components/DsBottomNav';
6
+ export * from './components/DsButton';
7
+ export * from './components/DsButtonGroup';
8
+ export * from './components/DsCard';
9
+ export * from './components/DsCollapse';
10
+ export * from './components/DsConfirmDialog';
11
+ export * from './components/DsCheckbox';
12
+ export * from './components/DsDataTable';
13
+ export * from './components/DsDrawer';
14
+ export * from './components/DsDropdown';
15
+ export * from './components/DsDropdownMenu';
16
+ export { default as DsDialog } from './components/DsDialog';
17
+ export { dsDialogSafelist } from './components/DsDialog';
18
+ export type { DsDialogSectionConfig, DsDialogSize } from './components/DsDialog';
19
+ export * from './components/DsEmptyState';
20
+ export * from './components/DsFileUpload';
21
+ export * from './components/DsFormFile';
22
+ export * from './components/DsFormField';
23
+ export * from './components/DsFormSection';
24
+ export * from './components/DsIcon';
25
+ export * from './components/DsImageViewer';
26
+ export * from './components/DsInput';
27
+ export * from './components/DsNumberInput';
28
+ export * from './components/DsInputTag';
29
+ export * from './components/DsList';
30
+ export * from './components/DsLink';
31
+ export * from './components/DsLoading';
32
+ export { default as DsModal } from './components/DsModal';
33
+ export { dsModalConfig } from './components/DsModal';
34
+ export { dsModalClassTokens, dsModalSafelist, getDsModalPanelClass } from './components/DsModal';
35
+ export * from './components/DsNavbar';
36
+ export * from './components/DsPagination';
37
+ export * from './components/DsProgressBar';
38
+ export * from './components/DsPromptDialog';
39
+ export * from './components/DsRadio';
40
+ export * from './components/DsRadioGroup';
41
+ export * from './components/DsSelect';
42
+ export * from './components/DsSidebar';
43
+ export * from './components/DsSkeleton';
44
+ export * from './components/DsSegmented';
45
+ export * from './components/DsSwitch';
46
+ export * from './components/DsTable';
47
+ export * from './components/DsTabs';
48
+ export * from './components/DsToaster';
49
+ export * from './components/DsTextarea';
50
+ export * from './components/DsTree';
51
+ export * from './components/DsTreeSelect';
52
+ export * from './components/DsTooltip';
53
+ export * from './directives';
54
+ export * from './fileValidation';
55
+ export * from './i18n';
56
+ export { initThemeEarly, useTheme } from './composables/useTheme';
57
+ export type { ThemeName, UseThemeOptions } from './composables/useTheme';
58
+ export { useToast } from './composables/useToast';
59
+ export type { Toast, ToastInput, ToastVariant } from './composables/useToast';
@@ -0,0 +1,8 @@
1
+ import { type AppContext } from 'vue';
2
+ import { type GranularityI18nAdapter } from '../i18n/adapter';
3
+ export type GranularityI18nLike = GranularityI18nAdapter;
4
+ export declare function resolveGranularityI18n(context?: AppContext | GranularityI18nLike | null): GranularityI18nLike | null;
5
+ export declare function useGranularityTranslations(context?: AppContext | GranularityI18nLike | null): {
6
+ i18n: GranularityI18nAdapter | null;
7
+ t: (key: string, fallback: string, params?: Record<string, any>) => string;
8
+ };
@@ -0,0 +1,17 @@
1
+ export type GranularityComponentConfig<Name extends string = string> = {
2
+ name: Name;
3
+ dependencies: readonly string[];
4
+ safelist: readonly string[];
5
+ cssFiles: readonly string[];
6
+ cssFileAssetNames: readonly string[];
7
+ styleAssetFileName: string | null;
8
+ };
9
+ type DefineGranularityComponentConfigOptions<Name extends string> = {
10
+ name: Name;
11
+ dependencies?: readonly string[];
12
+ safelist: readonly string[];
13
+ cssFiles?: readonly string[];
14
+ emitStyleAsset?: boolean;
15
+ };
16
+ export declare function defineGranularityComponentConfig<Name extends string>(importMetaUrl: string, options: DefineGranularityComponentConfigOptions<Name>): GranularityComponentConfig<Name>;
17
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type GranularityComponentSelection, type GranularityComponentName } from './components';
2
+ export declare const granularityComponentCssUrls: Record<GranularityComponentName, readonly string[]>;
3
+ export declare function getGranularityComponentCssUrls(selection?: GranularityComponentSelection): string[];
@@ -0,0 +1,5 @@
1
+ import type { Preflight } from '@unocss/core';
2
+ import type { GranularityComponentSelection } from './components';
3
+ export declare function getGranularityComponentCssFiles(selection?: GranularityComponentSelection): Promise<string[]>;
4
+ export declare function getGranularityComponentCss(selection?: GranularityComponentSelection): Promise<string>;
5
+ export declare function getGranularityComponentPreflights(selection?: GranularityComponentSelection): Preflight[];
@@ -0,0 +1,56 @@
1
+ import type { GranularityComponentConfig } from './componentConfig';
2
+ export declare const granularityComponentConfigs: {
3
+ readonly DsAlert: GranularityComponentConfig<"DsAlert">;
4
+ readonly DsAvatar: GranularityComponentConfig<"DsAvatar">;
5
+ readonly DsBadge: GranularityComponentConfig<"DsBadge">;
6
+ readonly DsBadgeWrap: GranularityComponentConfig<"DsBadgeWrap">;
7
+ readonly DsBottomNav: GranularityComponentConfig<"DsBottomNav">;
8
+ readonly DsButton: GranularityComponentConfig<"DsButton">;
9
+ readonly DsButtonGroup: GranularityComponentConfig<"DsButtonGroup">;
10
+ readonly DsCard: GranularityComponentConfig<"DsCard">;
11
+ readonly DsCollapse: GranularityComponentConfig<"DsCollapse">;
12
+ readonly DsConfirmDialog: GranularityComponentConfig<"DsConfirmDialog">;
13
+ readonly DsDataTable: GranularityComponentConfig<"DsDataTable">;
14
+ readonly DsDrawer: GranularityComponentConfig<"DsDrawer">;
15
+ readonly DsDropdown: GranularityComponentConfig<"DsDropdown">;
16
+ readonly DsDropdownMenu: GranularityComponentConfig<"DsDropdownMenu">;
17
+ readonly DsCheckbox: GranularityComponentConfig<"DsCheckbox">;
18
+ readonly DsDialog: GranularityComponentConfig<"DsDialog">;
19
+ readonly DsEmptyState: GranularityComponentConfig<"DsEmptyState">;
20
+ readonly DsFileUpload: GranularityComponentConfig<"DsFileUpload">;
21
+ readonly DsFormFile: GranularityComponentConfig<"DsFormFile">;
22
+ readonly DsFormField: GranularityComponentConfig<"DsFormField">;
23
+ readonly DsFormSection: GranularityComponentConfig<"DsFormSection">;
24
+ readonly DsIcon: GranularityComponentConfig<"DsIcon">;
25
+ readonly DsImageViewer: GranularityComponentConfig<"DsImageViewer">;
26
+ readonly DsInput: GranularityComponentConfig<"DsInput">;
27
+ readonly DsNumberInput: GranularityComponentConfig<"DsNumberInput">;
28
+ readonly DsInputTag: GranularityComponentConfig<"DsInputTag">;
29
+ readonly DsList: GranularityComponentConfig<"DsList">;
30
+ readonly DsLink: GranularityComponentConfig<"DsLink">;
31
+ readonly DsLoading: GranularityComponentConfig<"DsLoading">;
32
+ readonly DsModal: GranularityComponentConfig<"DsModal">;
33
+ readonly DsNavbar: GranularityComponentConfig<"DsNavbar">;
34
+ readonly DsPagination: GranularityComponentConfig<"DsPagination">;
35
+ readonly DsProgressBar: GranularityComponentConfig<"DsProgressBar">;
36
+ readonly DsPromptDialog: GranularityComponentConfig<"DsPromptDialog">;
37
+ readonly DsRadio: GranularityComponentConfig<"DsRadio">;
38
+ readonly DsRadioGroup: GranularityComponentConfig<"DsRadioGroup">;
39
+ readonly DsSelect: GranularityComponentConfig<"DsSelect">;
40
+ readonly DsSegmented: GranularityComponentConfig<"DsSegmented">;
41
+ readonly DsSidebar: GranularityComponentConfig<"DsSidebar">;
42
+ readonly DsSkeleton: GranularityComponentConfig<"DsSkeleton">;
43
+ readonly DsSwitch: GranularityComponentConfig<"DsSwitch">;
44
+ readonly DsTable: GranularityComponentConfig<"DsTable">;
45
+ readonly DsTabs: GranularityComponentConfig<"DsTabs">;
46
+ readonly DsToaster: GranularityComponentConfig<"DsToaster">;
47
+ readonly DsTextarea: GranularityComponentConfig<"DsTextarea">;
48
+ readonly DsTree: GranularityComponentConfig<"DsTree">;
49
+ readonly DsTreeSelect: GranularityComponentConfig<"DsTreeSelect">;
50
+ readonly DsTooltip: GranularityComponentConfig<"DsTooltip">;
51
+ };
52
+ export type GranularityComponentName = keyof typeof granularityComponentConfigs;
53
+ export type GranularityComponentSelection = 'all' | GranularityComponentName[];
54
+ export declare function resolveGranularityComponentSelection(selection?: GranularityComponentSelection): readonly GranularityComponentName[];
55
+ export declare function resolveGranularityComponentNames(selection?: GranularityComponentSelection): GranularityComponentName[];
56
+ export declare const granularityComponents: Record<GranularityComponentName, readonly string[]>;