@feugene/granularity 0.10.0 → 0.11.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 (442) hide show
  1. package/README.md +44 -45
  2. package/dist/GrButtonGroup.css +1 -1
  3. package/dist/GrFormFile.css +1 -1
  4. package/dist/GrIcon.css +1 -1
  5. package/dist/GrLoading.css +1 -1
  6. package/dist/GrSkeleton.css +1 -1
  7. package/dist/GrToaster.css +1 -0
  8. package/dist/GrTree.css +1 -1
  9. package/dist/chunks/{adapter-BqqjEZGU.js.map → adapter-CAOxmn2G.js.map} +1 -1
  10. package/dist/chunks/arrow-up-C_G4jg8M.js.map +1 -0
  11. package/dist/chunks/{classTokens-BPeBXNzu.js.map → classTokens-BzazaERD.js.map} +1 -1
  12. package/dist/chunks/{config-A-iei0Ux.js → config-1uSYl98Y.js} +5 -5
  13. package/dist/chunks/{config-A-iei0Ux.js.map → config-1uSYl98Y.js.map} +1 -1
  14. package/dist/chunks/{config-DZrlovR42.js.map → config-8Pcutu1j2.js.map} +1 -1
  15. package/dist/chunks/{config-VJuoznpH.js.map → config-B0qIpo8m.js.map} +1 -1
  16. package/dist/chunks/{config-C8MM2Dg0.js → config-B7IIWGt_2.js} +3 -3
  17. package/dist/chunks/config-B7IIWGt_2.js.map +1 -0
  18. package/dist/chunks/{config-DbghHyY_.js.map → config-BEegFP74.js.map} +1 -1
  19. package/dist/chunks/{config-D_Pafsjq2.js → config-BIRO0vDJ2.js} +6 -6
  20. package/dist/chunks/{config-D_Pafsjq2.js.map → config-BIRO0vDJ2.js.map} +1 -1
  21. package/dist/chunks/{config-BeBsN0c12.js.map → config-BLHqZhy-2.js.map} +1 -1
  22. package/dist/chunks/{config-BV4vBzdm.js.map → config-BNu8lFQB.js.map} +1 -1
  23. package/dist/chunks/config-BOlr7qw7.js +106 -0
  24. package/dist/chunks/config-BOlr7qw7.js.map +1 -0
  25. package/dist/chunks/{config-DhQc1TRY.js.map → config-BUHuGBik.js.map} +1 -1
  26. package/dist/chunks/{config-CPSdAjUi.js.map → config-BWGGp7uV.js.map} +1 -1
  27. package/dist/chunks/config-BX1JTrkV2.js +14 -0
  28. package/dist/chunks/config-BX1JTrkV2.js.map +1 -0
  29. package/dist/chunks/{config-BduXEXjt.js.map → config-BXtAmU3s.js.map} +1 -1
  30. package/dist/chunks/{config-CzgNEHKi.js.map → config-Bah4oHwL.js.map} +1 -1
  31. package/dist/chunks/{config-C_egzT_K.js → config-C49QUoJL.js} +3 -3
  32. package/dist/chunks/{config-C_egzT_K.js.map → config-C49QUoJL.js.map} +1 -1
  33. package/dist/chunks/{config-3I3vqDW4.js → config-C4snOIXg.js} +1 -1
  34. package/dist/chunks/{config-3I3vqDW4.js.map → config-C4snOIXg.js.map} +1 -1
  35. package/dist/chunks/{config-DvDNney3.js → config-C7NpDrfO.js} +5 -5
  36. package/dist/chunks/{config-DvDNney3.js.map → config-C7NpDrfO.js.map} +1 -1
  37. package/dist/chunks/{config-lMDE_8A5.js.map → config-C86UzUYf.js.map} +1 -1
  38. package/dist/chunks/{config-BgBWt9-A.js.map → config-C9AcVDkv.js.map} +1 -1
  39. package/dist/chunks/{config-BuoIngj32.js.map → config-CGHLoBlH2.js.map} +1 -1
  40. package/dist/chunks/{config-ChQxl75m.js.map → config-CThzliFi.js.map} +1 -1
  41. package/dist/chunks/{config-DDwBSoc_.js.map → config-Cb2PAlSD.js.map} +1 -1
  42. package/dist/chunks/{config-XspHtPsU.js → config-ClhKPJvg.js} +5 -5
  43. package/dist/chunks/{config-XspHtPsU.js.map → config-ClhKPJvg.js.map} +1 -1
  44. package/dist/chunks/{config-58Mj2rGH.js → config-Cpi9Mh2J.js} +3 -3
  45. package/dist/chunks/{config-58Mj2rGH.js.map → config-Cpi9Mh2J.js.map} +1 -1
  46. package/dist/chunks/{config-nrOj9p6I.js → config-CrG1XiE7.js} +4 -4
  47. package/dist/chunks/{config-nrOj9p6I.js.map → config-CrG1XiE7.js.map} +1 -1
  48. package/dist/chunks/{config-DRpkoSvq.js → config-CziwTDDL.js} +3 -3
  49. package/dist/chunks/{config-DRpkoSvq.js.map → config-CziwTDDL.js.map} +1 -1
  50. package/dist/chunks/{config-C5-ujXCI.js.map → config-D7GZO-Dx.js.map} +1 -1
  51. package/dist/chunks/{config-CUwF4E4R.js.map → config-DBmdgoVf.js.map} +1 -1
  52. package/dist/chunks/{config-C9MblwGq.js.map → config-DICOd-2X.js.map} +1 -1
  53. package/dist/chunks/{config-C6zT56Jc2.js → config-DUcu1D68.js} +3 -3
  54. package/dist/chunks/config-DUcu1D68.js.map +1 -0
  55. package/dist/chunks/{config-8f8624RN.js → config-D_R56_gT.js} +5 -5
  56. package/dist/chunks/{config-8f8624RN.js.map → config-D_R56_gT.js.map} +1 -1
  57. package/dist/chunks/{config-RjfJFv1Y.js → config-DezDih8_.js} +4 -4
  58. package/dist/chunks/config-DezDih8_.js.map +1 -0
  59. package/dist/chunks/{config-B0uUCaJW.js → config-DnvPqu4g.js} +3 -3
  60. package/dist/chunks/{config-B0uUCaJW.js.map → config-DnvPqu4g.js.map} +1 -1
  61. package/dist/chunks/{config-BLa1TEGm2.js.map → config-DpqOnJiz2.js.map} +1 -1
  62. package/dist/chunks/{config-V3LF-b_F.js.map → config-Dxuwwepq.js.map} +1 -1
  63. package/dist/chunks/{config-Doa_gU40.js.map → config-HZto2PVy.js.map} +1 -1
  64. package/dist/chunks/{config-Dl5aZ5VR.js.map → config-JOtB4mzs.js.map} +1 -1
  65. package/dist/chunks/{config-CWTfyPNI.js.map → config-JpHA4Xx0.js.map} +1 -1
  66. package/dist/chunks/{config-DkeLkzxj2.js → config-LGrZIdaZ2.js} +1 -1
  67. package/dist/chunks/{config-DkeLkzxj2.js.map → config-LGrZIdaZ2.js.map} +1 -1
  68. package/dist/chunks/{config-B3dn-gdC.js.map → config-PFg39mYo.js.map} +1 -1
  69. package/dist/chunks/{config-CU_CBd0k.js → config-QYGvEBu5.js} +2 -2
  70. package/dist/chunks/{config-CU_CBd0k.js.map → config-QYGvEBu5.js.map} +1 -1
  71. package/dist/chunks/{config-Bh4NWWsQ.js.map → config-QaIc_gRa.js.map} +1 -1
  72. package/dist/chunks/{config-vcDVCYXo.js.map → config-U4m9PSql.js.map} +1 -1
  73. package/dist/chunks/{config-C_q_4FrU.js.map → config-ZiXWIRBX.js.map} +1 -1
  74. package/dist/chunks/{config-hSlCXHoG.js → config-eYLZYOUS2.js} +63 -63
  75. package/dist/chunks/config-eYLZYOUS2.js.map +1 -0
  76. package/dist/chunks/{config-DDUPnue12.js.map → config-ipvU0lzP2.js.map} +1 -1
  77. package/dist/chunks/{config-B61cX08u.js → config-jBp9wVv-.js} +4 -4
  78. package/dist/chunks/{config-B61cX08u.js.map → config-jBp9wVv-.js.map} +1 -1
  79. package/dist/chunks/{config-D5ek7VSi.js.map → config-xR4XVmcy.js.map} +1 -1
  80. package/dist/chunks/{dialogShared-BtXUk6Zc.js.map → dialogShared-CxW62PQE.js.map} +1 -1
  81. package/dist/chunks/en-BdtiS2d3.js +138 -0
  82. package/dist/chunks/en-BdtiS2d3.js.map +1 -0
  83. package/dist/chunks/es-BGRMZbe9.js +138 -0
  84. package/dist/chunks/es-BGRMZbe9.js.map +1 -0
  85. package/dist/chunks/{es-CISK11Nv.js → es-DBhctWg-.js} +3 -3
  86. package/dist/chunks/{es-CISK11Nv.js.map → es-DBhctWg-.js.map} +1 -1
  87. package/dist/chunks/{fileValidation-c_iBg74s.js → fileValidation-C3WFaWU2.js} +2 -1
  88. package/dist/chunks/{fileValidation-c_iBg74s.js.map → fileValidation-C3WFaWU2.js.map} +1 -1
  89. package/dist/chunks/{grBadgeStyles-Cq0hH2Ls.js → grBadgeStyles-DrycBuKT.js} +13 -13
  90. package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +1 -0
  91. package/dist/chunks/grButtonStyles-C7Yga_Q1.js +191 -0
  92. package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +1 -0
  93. package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js → grDropdownStyles-B_-DKytw.js} +2 -2
  94. package/dist/chunks/{grDropdownStyles-Bqx9hOzU.js.map → grDropdownStyles-B_-DKytw.js.map} +1 -1
  95. package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js.map → grLoadingStyles-R5sreH__.js.map} +1 -1
  96. package/dist/chunks/{grModalStyles-FgaKqx50.js → grModalStyles-DWd3i05Q.js} +6 -6
  97. package/dist/chunks/{grModalStyles-FgaKqx50.js.map → grModalStyles-DWd3i05Q.js.map} +1 -1
  98. package/dist/chunks/{grSelectStyles-AjWWl007.js → grSelectStyles-CLK5hRd3.js} +3 -3
  99. package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +1 -0
  100. package/dist/chunks/{grStyle-D-gPHdyW.js → grStyle-Blc9otAx.js} +6 -6
  101. package/dist/chunks/grStyle-Blc9otAx.js.map +1 -0
  102. package/dist/chunks/{granularityI18n-D_7jowK2.js → granularityI18n-DoV7Ca2m.js} +1 -1
  103. package/dist/chunks/{granularityI18n-D_7jowK2.js.map → granularityI18n-DoV7Ca2m.js.map} +1 -1
  104. package/dist/chunks/info-Be2OccTu.js.map +1 -0
  105. package/dist/chunks/loader-circle-CfVLz7lb.js.map +1 -0
  106. package/dist/chunks/ru-BFCnOiML.js +138 -0
  107. package/dist/chunks/ru-BFCnOiML.js.map +1 -0
  108. package/dist/chunks/{safelist-_UVzJrgE2.js → safelist-CkF4v7DC.js} +3 -3
  109. package/dist/chunks/safelist-CkF4v7DC.js.map +1 -0
  110. package/dist/chunks/{safelist-DccvJqCE.js → safelist-Do2RtzLB.js} +3 -3
  111. package/dist/chunks/{safelist-DccvJqCE.js.map → safelist-Do2RtzLB.js.map} +1 -1
  112. package/dist/chunks/shared-ChvcQgDl.js +168 -0
  113. package/dist/chunks/shared-ChvcQgDl.js.map +1 -0
  114. package/dist/chunks/{transition-mJ3PZCHH.js → transition-TLFw4KBn.js} +26 -12
  115. package/dist/chunks/{transition-mJ3PZCHH.js.map → transition-TLFw4KBn.js.map} +1 -1
  116. package/dist/chunks/useAddonMeasurement-DM0akF4C.js +65 -0
  117. package/dist/chunks/useAddonMeasurement-DM0akF4C.js.map +1 -0
  118. package/dist/chunks/useEscapeToClose-C2t_S1gh.js +27 -0
  119. package/dist/chunks/useEscapeToClose-C2t_S1gh.js.map +1 -0
  120. package/dist/chunks/{useFloating-CLtbU7eD.js → useFloating-DtM6TyE4.js} +19 -4
  121. package/dist/chunks/{useFloating-CLtbU7eD.js.map → useFloating-DtM6TyE4.js.map} +1 -1
  122. package/dist/chunks/x-2KXnqxiD.js.map +1 -0
  123. package/dist/chunks/x-circle-BCBURwyX.js.map +1 -0
  124. package/dist/components/GrAlert/chunks/{GrAlert-HyCjYJeL.js → GrAlert-DPJSU_fG.js} +40 -37
  125. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +1 -0
  126. package/dist/components/GrAlert/index.js +2 -2
  127. package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js → GrAvatar-96CpTCq5.js} +2 -2
  128. package/dist/components/GrAvatar/chunks/{GrAvatar-BjnPKNAL.js.map → GrAvatar-96CpTCq5.js.map} +1 -1
  129. package/dist/components/GrAvatar/index.js +2 -2
  130. package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js → GrBadge-B77XlaqE.js} +3 -3
  131. package/dist/components/GrBadge/chunks/{GrBadge-Cs_cVfuO.js.map → GrBadge-B77XlaqE.js.map} +1 -1
  132. package/dist/components/GrBadge/index.js +2 -2
  133. package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js → GrBadgeWrap-CcktMOdg.js} +2 -2
  134. package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-BEnE9DyJ.js.map → GrBadgeWrap-CcktMOdg.js.map} +1 -1
  135. package/dist/components/GrBadgeWrap/index.js +2 -2
  136. package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js.map → GrBottomNav-usuMgG8_.js.map} +1 -1
  137. package/dist/components/GrBottomNav/index.js +2 -2
  138. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js +124 -0
  139. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +1 -0
  140. package/dist/components/GrButton/index.js +4 -4
  141. package/dist/components/GrButtonGroup/chunks/{GrButtonGroup-CPOH6V-P.js → GrButtonGroup-Bs9dEKfA.js} +1 -1
  142. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-Bs9dEKfA.js.map +1 -0
  143. package/dist/components/GrButtonGroup/index.js +2 -2
  144. package/dist/components/GrCard/chunks/{GrCard-6yk1RRAQ.js → GrCard-DUNMkuHW.js} +3 -3
  145. package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +1 -0
  146. package/dist/components/GrCard/index.js +2 -2
  147. package/dist/components/GrCheckbox/chunks/{GrCheckbox-Bt3d7ckE.js → GrCheckbox-DJhzZZdO.js} +66 -18
  148. package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +1 -0
  149. package/dist/components/GrCheckbox/index.js +2 -2
  150. package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js → GrCollapse-CPPLh_xU.js} +12 -12
  151. package/dist/components/GrCollapse/chunks/{GrCollapse-CU94BTAR.js.map → GrCollapse-CPPLh_xU.js.map} +1 -1
  152. package/dist/components/GrCollapse/index.js +2 -2
  153. package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-Bi2KLumL.js → GrConfirmDialog-BWYKCsHd.js} +20 -14
  154. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-BWYKCsHd.js.map +1 -0
  155. package/dist/components/GrConfirmDialog/index.js +2 -2
  156. package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js → GrDataTable-ptbARmJ3.js} +7 -7
  157. package/dist/components/GrDataTable/chunks/{GrDataTable-ClcYiyc8.js.map → GrDataTable-ptbARmJ3.js.map} +1 -1
  158. package/dist/components/GrDataTable/index.js +2 -2
  159. package/dist/components/GrDialog/chunks/{GrDialog-CxK4Lj4F.js → GrDialog-5DAS-1Lb.js} +14 -12
  160. package/dist/components/GrDialog/chunks/GrDialog-5DAS-1Lb.js.map +1 -0
  161. package/dist/components/GrDialog/index.js +3 -3
  162. package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js +425 -0
  163. package/dist/components/GrDialogService/chunks/GrDialogService-DY_fmaMu.js.map +1 -0
  164. package/dist/components/GrDialogService/index.js +3 -0
  165. package/dist/components/GrDrawer/chunks/{GrDrawer-BW3wtI7h.js → GrDrawer-D1kzsjXN.js} +19 -15
  166. package/dist/components/GrDrawer/chunks/GrDrawer-D1kzsjXN.js.map +1 -0
  167. package/dist/components/GrDrawer/index.js +2 -2
  168. package/dist/components/GrDropdown/chunks/{GrDropdown-BGKeEfZ1.js → GrDropdown-BXb5Cxxf.js} +9 -19
  169. package/dist/components/GrDropdown/chunks/GrDropdown-BXb5Cxxf.js.map +1 -0
  170. package/dist/components/GrDropdown/index.js +2 -2
  171. package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js → GrDropdownMenu-DFEJLPcV.js} +10 -10
  172. package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu-CJom_-c2.js.map → GrDropdownMenu-DFEJLPcV.js.map} +1 -1
  173. package/dist/components/GrDropdownMenu/index.js +2 -2
  174. package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js → GrEmptyState-CA3BiTV7.js} +3 -3
  175. package/dist/components/GrEmptyState/chunks/{GrEmptyState-yOuZW7-t.js.map → GrEmptyState-CA3BiTV7.js.map} +1 -1
  176. package/dist/components/GrEmptyState/index.js +2 -2
  177. package/dist/components/GrFileUpload/chunks/{GrFileUpload-CBKK3dgC.js → GrFileUpload-DvWPpiJS.js} +26 -23
  178. package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +1 -0
  179. package/dist/components/GrFileUpload/index.js +3 -3
  180. package/dist/components/GrFormField/chunks/{GrFormField-U7c_aDPJ.js → GrFormField-BujNQrw8.js} +1 -1
  181. package/dist/components/GrFormField/chunks/{GrFormField-U7c_aDPJ.js.map → GrFormField-BujNQrw8.js.map} +1 -1
  182. package/dist/components/GrFormField/index.js +2 -2
  183. package/dist/components/GrFormFile/chunks/{GrFormFile-CkR6cYqf.js → GrFormFile-CXcqqdvV.js} +38 -31
  184. package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +1 -0
  185. package/dist/components/GrFormFile/index.js +2 -2
  186. package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js → GrFormSection-Ce21jcgo.js} +1 -1
  187. package/dist/components/GrFormSection/chunks/{GrFormSection-dbyzqxYk.js.map → GrFormSection-Ce21jcgo.js.map} +1 -1
  188. package/dist/components/GrFormSection/index.js +2 -2
  189. package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js → GrIcon-D9AWQLk2.js} +3 -3
  190. package/dist/components/GrIcon/chunks/{GrIcon-BV7RBU_0.js.map → GrIcon-D9AWQLk2.js.map} +1 -1
  191. package/dist/components/GrIcon/index.js +2 -2
  192. package/dist/components/GrImageViewer/chunks/{GrImageViewer-BG40DsHa.js → GrImageViewer-OCUIrNh2.js} +44 -33
  193. package/dist/components/GrImageViewer/chunks/GrImageViewer-OCUIrNh2.js.map +1 -0
  194. package/dist/components/GrImageViewer/index.js +2 -2
  195. package/dist/components/GrInput/chunks/{GrInput-gwFQ1sk4.js → GrInput-C8pOJgCi.js} +43 -66
  196. package/dist/components/GrInput/chunks/GrInput-C8pOJgCi.js.map +1 -0
  197. package/dist/components/GrInput/index.js +2 -2
  198. package/dist/components/GrInputTag/chunks/{GrInputTag-g-KdUI_Z.js → GrInputTag-zMgFqp2g.js} +27 -24
  199. package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +1 -0
  200. package/dist/components/GrInputTag/index.js +2 -2
  201. package/dist/components/GrLink/chunks/{GrLink-KSTmk9Yq.js → GrLink-CYUe-Q8k.js} +14 -7
  202. package/dist/components/GrLink/chunks/GrLink-CYUe-Q8k.js.map +1 -0
  203. package/dist/components/GrLink/index.js +2 -2
  204. package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js → GrList-Dx772Ns4.js} +1 -1
  205. package/dist/components/GrList/chunks/{GrList-CUW2sRm_.js.map → GrList-Dx772Ns4.js.map} +1 -1
  206. package/dist/components/GrList/index.js +2 -2
  207. package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js → GrLoading--X_7rdbb.js} +7 -7
  208. package/dist/components/GrLoading/chunks/{GrLoading-mfyfghxs.js.map → GrLoading--X_7rdbb.js.map} +1 -1
  209. package/dist/components/GrLoading/index.js +2 -2
  210. package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js → GrModal-BkjW9jZS.js} +7 -7
  211. package/dist/components/GrModal/chunks/{GrModal-CSOL3fHQ.js.map → GrModal-BkjW9jZS.js.map} +1 -1
  212. package/dist/components/GrModal/index.js +3 -3
  213. package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js → GrNavbar-DW3MiIIf.js} +6 -6
  214. package/dist/components/GrNavbar/chunks/{GrNavbar-CHxwtFIR.js.map → GrNavbar-DW3MiIIf.js.map} +1 -1
  215. package/dist/components/GrNavbar/index.js +2 -2
  216. package/dist/components/GrNumberInput/chunks/{GrNumberInput-ClPBwkxx.js → GrNumberInput-CldPIWQx.js} +51 -61
  217. package/dist/components/GrNumberInput/chunks/GrNumberInput-CldPIWQx.js.map +1 -0
  218. package/dist/components/GrNumberInput/index.js +2 -2
  219. package/dist/components/GrPagination/chunks/{GrPagination-D2GS0ShQ.js → GrPagination-Bu9wv6it.js} +76 -25
  220. package/dist/components/GrPagination/chunks/GrPagination-Bu9wv6it.js.map +1 -0
  221. package/dist/components/GrPagination/index.js +2 -2
  222. package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js → GrProgressBar-CC3z-Zqp.js} +3 -3
  223. package/dist/components/GrProgressBar/chunks/{GrProgressBar-BBSFpVEq.js.map → GrProgressBar-CC3z-Zqp.js.map} +1 -1
  224. package/dist/components/GrProgressBar/index.js +2 -2
  225. package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-D_TFqKsF.js → GrPromptDialog-TmWXbpEP.js} +31 -23
  226. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-TmWXbpEP.js.map +1 -0
  227. package/dist/components/GrPromptDialog/index.js +2 -2
  228. package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js → GrRadio-CPTixXaY.js} +6 -6
  229. package/dist/components/GrRadio/chunks/{GrRadio-CSbTnrom.js.map → GrRadio-CPTixXaY.js.map} +1 -1
  230. package/dist/components/GrRadio/index.js +2 -2
  231. package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js → GrRadioGroup-vKZCbkCp.js} +3 -3
  232. package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-DsrnTygR.js.map → GrRadioGroup-vKZCbkCp.js.map} +1 -1
  233. package/dist/components/GrRadioGroup/index.js +2 -2
  234. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-K1uZ1mYD.js → GrResponseErrorBanner-BWJNe2gr.js} +21 -18
  235. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-BWJNe2gr.js.map +1 -0
  236. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js → GrResponseErrorBanner-Cdu9ekK9.js} +5 -5
  237. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-bM8FC_Bw.js.map → GrResponseErrorBanner-Cdu9ekK9.js.map} +1 -1
  238. package/dist/components/GrResponseErrorBanner/index.js +2 -2
  239. package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js → GrSegmented-C1y0UXpQ.js} +5 -5
  240. package/dist/components/GrSegmented/chunks/{GrSegmented-DpZGs4VX.js.map → GrSegmented-C1y0UXpQ.js.map} +1 -1
  241. package/dist/components/GrSegmented/index.js +2 -2
  242. package/dist/components/GrSelect/chunks/{GrSelect-DSz7jvUb.js → GrSelect-RShK21lK.js} +84 -64
  243. package/dist/components/GrSelect/chunks/GrSelect-RShK21lK.js.map +1 -0
  244. package/dist/components/GrSelect/index.js +2 -2
  245. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js +238 -0
  246. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +1 -0
  247. package/dist/components/GrSidebar/index.js +3 -3
  248. package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js → GrSkeleton-DsN-_CDZ.js} +1 -1
  249. package/dist/components/GrSkeleton/chunks/{GrSkeleton-B05K0QKh.js.map → GrSkeleton-DsN-_CDZ.js.map} +1 -1
  250. package/dist/components/GrSkeleton/index.js +2 -2
  251. package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js → GrSwitch-DAioyccZ.js} +10 -10
  252. package/dist/components/GrSwitch/chunks/{GrSwitch-CSRtcN5-.js.map → GrSwitch-DAioyccZ.js.map} +1 -1
  253. package/dist/components/GrSwitch/index.js +2 -2
  254. package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js → GrTable-Db3hRnKA.js} +3 -3
  255. package/dist/components/GrTable/chunks/{GrTable-dTWUxzRm.js.map → GrTable-Db3hRnKA.js.map} +1 -1
  256. package/dist/components/GrTable/index.js +2 -2
  257. package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js → GrTabs-Z-FDJUr_.js} +3 -3
  258. package/dist/components/GrTabs/chunks/{GrTabs-BfeVNMFJ.js.map → GrTabs-Z-FDJUr_.js.map} +1 -1
  259. package/dist/components/GrTabs/index.js +2 -2
  260. package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js → GrTextarea-D56YxhKq.js} +3 -3
  261. package/dist/components/GrTextarea/chunks/{GrTextarea-CBBzpF2S.js.map → GrTextarea-D56YxhKq.js.map} +1 -1
  262. package/dist/components/GrTextarea/index.js +2 -2
  263. package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js +189 -0
  264. package/dist/components/GrToaster/chunks/GrToaster-eI8YvnIo.js.map +1 -0
  265. package/dist/components/GrToaster/index.js +2 -2
  266. package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js → GrTooltip-BeyZ8ssR.js} +10 -10
  267. package/dist/components/GrTooltip/chunks/{GrTooltip-BC-40SA5.js.map → GrTooltip-BeyZ8ssR.js.map} +1 -1
  268. package/dist/components/GrTooltip/index.js +2 -2
  269. package/dist/components/GrTree/chunks/{GrTree-uZr5SyQI.js → GrTree-D3ODe2dB.js} +40 -35
  270. package/dist/components/GrTree/chunks/GrTree-D3ODe2dB.js.map +1 -0
  271. package/dist/components/GrTree/index.js +2 -2
  272. package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js → GrTreeSelect-B2xBKs5Q.js} +16 -16
  273. package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-CytivcCa.js.map → GrTreeSelect-B2xBKs5Q.js.map} +1 -1
  274. package/dist/components/GrTreeSelect/index.js +2 -2
  275. package/dist/composables/useTheme.js +48 -8
  276. package/dist/composables/useTheme.js.map +1 -1
  277. package/dist/composables/useToast.js +88 -26
  278. package/dist/composables/useToast.js.map +1 -1
  279. package/dist/directives/autofocus.js.map +1 -1
  280. package/dist/directives/autosize.js.map +1 -1
  281. package/dist/directives/clickOutside.js.map +1 -1
  282. package/dist/directives/dropzone.js +6 -5
  283. package/dist/directives/dropzone.js.map +1 -1
  284. package/dist/directives/hotkey.js +24 -7
  285. package/dist/directives/hotkey.js.map +1 -1
  286. package/dist/directives/loading.js +2 -2
  287. package/dist/directives/loading.js.map +1 -1
  288. package/dist/fileValidation/index.js +1 -1
  289. package/dist/granular-provider-node.js +7 -7
  290. package/dist/granular-provider-node.js.map +1 -1
  291. package/dist/granular-provider.js +1 -1
  292. package/dist/granular-provider.js.map +1 -1
  293. package/dist/i18n/all.js +1 -1
  294. package/dist/i18n/all.js.map +1 -1
  295. package/dist/i18n/index.js +2 -2
  296. package/dist/index.js +109 -534
  297. package/dist/index.js.map +1 -1
  298. package/dist/styles/base.css +32 -0
  299. package/dist/styles/index.css +15 -0
  300. package/dist/styles/preflight.css +29 -0
  301. package/dist/styles/themes/dark.css +107 -0
  302. package/dist/styles/themes/light.css +98 -0
  303. package/dist/styles/tokens.css +135 -0
  304. package/dist/types/src/components/GrButton/GrButton.vue.d.ts +25 -2
  305. package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +7 -2
  306. package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +8 -8
  307. package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +1 -1
  308. package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +2 -2
  309. package/dist/types/src/components/GrDialog/GrDialogHeader.vue.d.ts +2 -2
  310. package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +2 -2
  311. package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +4 -4
  312. package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +11 -11
  313. package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +18 -18
  314. package/dist/types/src/components/GrInput/GrInput.vue.d.ts +14 -0
  315. package/dist/types/src/components/GrInput/grInputStyles.d.ts +3 -3
  316. package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +2 -2
  317. package/dist/types/src/components/GrLink/GrLink.vue.d.ts +12 -6
  318. package/dist/types/src/components/GrLink/grLinkStyles.d.ts +31 -3
  319. package/dist/types/src/components/GrLink/index.d.ts +1 -1
  320. package/dist/types/src/components/GrLoading/GrLoading.vue.d.ts +1 -1
  321. package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
  322. package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +17 -4
  323. package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +13 -1
  324. package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +12 -12
  325. package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +1 -1
  326. package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +5 -5
  327. package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +1 -1
  328. package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +2 -1
  329. package/dist/types/src/components/GrSidebar/GrSidebar.vue.d.ts +33 -10
  330. package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +64 -0
  331. package/dist/types/src/components/GrSidebar/index.d.ts +1 -0
  332. package/dist/types/src/components/GrSidebar/sidebarContext.d.ts +9 -0
  333. package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +1 -1
  334. package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
  335. package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +9 -4
  336. package/dist/types/src/components/GrTree/GrTree.vue.d.ts +1 -1
  337. package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +2 -2
  338. package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
  339. package/dist/types/src/components/GrTreeSelect/grTreeSelectTypes.d.ts +1 -1
  340. package/dist/types/src/composables/internal/useAddonMeasurement.d.ts +18 -0
  341. package/dist/types/src/composables/internal/useEscapeToClose.d.ts +11 -0
  342. package/dist/types/src/composables/useTheme.d.ts +5 -2
  343. package/dist/types/src/composables/useToast.d.ts +33 -1
  344. package/dist/types/src/directives/hotkey.d.ts +14 -0
  345. package/dist/types/src/granular-provider/shared.d.ts +1 -3
  346. package/dist/types/src/i18n/messages/en.d.ts +120 -0
  347. package/dist/types/src/i18n/messages/es.d.ts +120 -0
  348. package/dist/types/src/i18n/messages/ru.d.ts +120 -0
  349. package/dist/types/src/index.d.ts +2 -2
  350. package/dist/vue/index.js.map +1 -1
  351. package/dist/web-types.json +4673 -0
  352. package/package.json +26 -20
  353. package/dist/chunks/arrow-up-DZdIrpaF.js.map +0 -1
  354. package/dist/chunks/config-C6zT56Jc2.js.map +0 -1
  355. package/dist/chunks/config-C8MM2Dg0.js.map +0 -1
  356. package/dist/chunks/config-NkbzVFZo.js +0 -59
  357. package/dist/chunks/config-NkbzVFZo.js.map +0 -1
  358. package/dist/chunks/config-RjfJFv1Y.js.map +0 -1
  359. package/dist/chunks/config-hSlCXHoG.js.map +0 -1
  360. package/dist/chunks/en-B_fSdoTi.js +0 -72
  361. package/dist/chunks/en-B_fSdoTi.js.map +0 -1
  362. package/dist/chunks/es-DKP6fLir.js +0 -72
  363. package/dist/chunks/es-DKP6fLir.js.map +0 -1
  364. package/dist/chunks/grBadgeStyles-Cq0hH2Ls.js.map +0 -1
  365. package/dist/chunks/grButtonStyles-DKuXUemw.js +0 -191
  366. package/dist/chunks/grButtonStyles-DKuXUemw.js.map +0 -1
  367. package/dist/chunks/grSelectStyles-AjWWl007.js.map +0 -1
  368. package/dist/chunks/grStyle-D-gPHdyW.js.map +0 -1
  369. package/dist/chunks/info-C0bHmdZq.js.map +0 -1
  370. package/dist/chunks/loader-circle-BUntgosj.js.map +0 -1
  371. package/dist/chunks/ru-S6VlnurJ.js +0 -72
  372. package/dist/chunks/ru-S6VlnurJ.js.map +0 -1
  373. package/dist/chunks/safelist-_UVzJrgE2.js.map +0 -1
  374. package/dist/chunks/shared-DpjTvFno.js +0 -169
  375. package/dist/chunks/shared-DpjTvFno.js.map +0 -1
  376. package/dist/chunks/x-Pa6C2hwi.js.map +0 -1
  377. package/dist/chunks/x-circle-DQSlBLmX.js.map +0 -1
  378. package/dist/components/GrAlert/chunks/GrAlert-HyCjYJeL.js.map +0 -1
  379. package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js +0 -83
  380. package/dist/components/GrButton/chunks/GrButton-CPDKonoB.js.map +0 -1
  381. package/dist/components/GrButtonGroup/chunks/GrButtonGroup-CPOH6V-P.js.map +0 -1
  382. package/dist/components/GrCard/chunks/GrCard-6yk1RRAQ.js.map +0 -1
  383. package/dist/components/GrCheckbox/chunks/GrCheckbox-Bt3d7ckE.js.map +0 -1
  384. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-Bi2KLumL.js.map +0 -1
  385. package/dist/components/GrDialog/chunks/GrDialog-CxK4Lj4F.js.map +0 -1
  386. package/dist/components/GrDrawer/chunks/GrDrawer-BW3wtI7h.js.map +0 -1
  387. package/dist/components/GrDropdown/chunks/GrDropdown-BGKeEfZ1.js.map +0 -1
  388. package/dist/components/GrFileUpload/chunks/GrFileUpload-CBKK3dgC.js.map +0 -1
  389. package/dist/components/GrFormFile/chunks/GrFormFile-CkR6cYqf.js.map +0 -1
  390. package/dist/components/GrImageViewer/chunks/GrImageViewer-BG40DsHa.js.map +0 -1
  391. package/dist/components/GrInput/chunks/GrInput-gwFQ1sk4.js.map +0 -1
  392. package/dist/components/GrInputTag/chunks/GrInputTag-g-KdUI_Z.js.map +0 -1
  393. package/dist/components/GrLink/chunks/GrLink-KSTmk9Yq.js.map +0 -1
  394. package/dist/components/GrNumberInput/chunks/GrNumberInput-ClPBwkxx.js.map +0 -1
  395. package/dist/components/GrPagination/chunks/GrPagination-D2GS0ShQ.js.map +0 -1
  396. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-D_TFqKsF.js.map +0 -1
  397. package/dist/components/GrResponseErrorBanner/chunks/GrResponseErrorBanner-K1uZ1mYD.js.map +0 -1
  398. package/dist/components/GrSelect/chunks/GrSelect-DSz7jvUb.js.map +0 -1
  399. package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js +0 -44
  400. package/dist/components/GrSidebar/chunks/GrSidebar-BW8LRMZ-.js.map +0 -1
  401. package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js +0 -172
  402. package/dist/components/GrToaster/chunks/GrToaster-C6_iHk2J.js.map +0 -1
  403. package/dist/components/GrTree/chunks/GrTree-uZr5SyQI.js.map +0 -1
  404. /package/dist/chunks/{_plugin-vue_export-helper-DQR7Sy7Q.js → _plugin-vue_export-helper-BOaGB7Aw.js} +0 -0
  405. /package/dist/chunks/{adapter-BqqjEZGU.js → adapter-CAOxmn2G.js} +0 -0
  406. /package/dist/chunks/{arrow-up-DZdIrpaF.js → arrow-up-C_G4jg8M.js} +0 -0
  407. /package/dist/chunks/{classTokens-BPeBXNzu.js → classTokens-BzazaERD.js} +0 -0
  408. /package/dist/chunks/{config-DZrlovR42.js → config-8Pcutu1j2.js} +0 -0
  409. /package/dist/chunks/{config-VJuoznpH.js → config-B0qIpo8m.js} +0 -0
  410. /package/dist/chunks/{config-DbghHyY_.js → config-BEegFP74.js} +0 -0
  411. /package/dist/chunks/{config-BeBsN0c12.js → config-BLHqZhy-2.js} +0 -0
  412. /package/dist/chunks/{config-BV4vBzdm.js → config-BNu8lFQB.js} +0 -0
  413. /package/dist/chunks/{config-DhQc1TRY.js → config-BUHuGBik.js} +0 -0
  414. /package/dist/chunks/{config-CPSdAjUi.js → config-BWGGp7uV.js} +0 -0
  415. /package/dist/chunks/{config-BduXEXjt.js → config-BXtAmU3s.js} +0 -0
  416. /package/dist/chunks/{config-CzgNEHKi.js → config-Bah4oHwL.js} +0 -0
  417. /package/dist/chunks/{config-lMDE_8A5.js → config-C86UzUYf.js} +0 -0
  418. /package/dist/chunks/{config-BgBWt9-A.js → config-C9AcVDkv.js} +0 -0
  419. /package/dist/chunks/{config-BuoIngj32.js → config-CGHLoBlH2.js} +0 -0
  420. /package/dist/chunks/{config-ChQxl75m.js → config-CThzliFi.js} +0 -0
  421. /package/dist/chunks/{config-DDwBSoc_.js → config-Cb2PAlSD.js} +0 -0
  422. /package/dist/chunks/{config-C5-ujXCI.js → config-D7GZO-Dx.js} +0 -0
  423. /package/dist/chunks/{config-CUwF4E4R.js → config-DBmdgoVf.js} +0 -0
  424. /package/dist/chunks/{config-C9MblwGq.js → config-DICOd-2X.js} +0 -0
  425. /package/dist/chunks/{config-BLa1TEGm2.js → config-DpqOnJiz2.js} +0 -0
  426. /package/dist/chunks/{config-V3LF-b_F.js → config-Dxuwwepq.js} +0 -0
  427. /package/dist/chunks/{config-Doa_gU40.js → config-HZto2PVy.js} +0 -0
  428. /package/dist/chunks/{config-Dl5aZ5VR.js → config-JOtB4mzs.js} +0 -0
  429. /package/dist/chunks/{config-CWTfyPNI.js → config-JpHA4Xx0.js} +0 -0
  430. /package/dist/chunks/{config-B3dn-gdC.js → config-PFg39mYo.js} +0 -0
  431. /package/dist/chunks/{config-Bh4NWWsQ.js → config-QaIc_gRa.js} +0 -0
  432. /package/dist/chunks/{config-vcDVCYXo.js → config-U4m9PSql.js} +0 -0
  433. /package/dist/chunks/{config-C_q_4FrU.js → config-ZiXWIRBX.js} +0 -0
  434. /package/dist/chunks/{config-DDUPnue12.js → config-ipvU0lzP2.js} +0 -0
  435. /package/dist/chunks/{config-D5ek7VSi.js → config-xR4XVmcy.js} +0 -0
  436. /package/dist/chunks/{dialogShared-BtXUk6Zc.js → dialogShared-CxW62PQE.js} +0 -0
  437. /package/dist/chunks/{grLoadingStyles-DmI-SJ3i.js → grLoadingStyles-R5sreH__.js} +0 -0
  438. /package/dist/chunks/{info-C0bHmdZq.js → info-Be2OccTu.js} +0 -0
  439. /package/dist/chunks/{loader-circle-BUntgosj.js → loader-circle-CfVLz7lb.js} +0 -0
  440. /package/dist/chunks/{x-Pa6C2hwi.js → x-2KXnqxiD.js} +0 -0
  441. /package/dist/chunks/{x-circle-DQSlBLmX.js → x-circle-BCBURwyX.js} +0 -0
  442. /package/dist/components/GrBottomNav/chunks/{GrBottomNav-XPHwd7UQ.js → GrBottomNav-usuMgG8_.js} +0 -0
@@ -1,30 +1,53 @@
1
- /**
2
- * GrSidebar — боковая панель приложения с заголовком и слотом контента.
3
- *
4
- * Слоты `#title` / `#subtitle` имеют приоритет над одноимёнными пропами
5
- * и позволяют передать произвольную разметку (иконки, бейджи, действия).
6
- */
7
1
  export interface GrSidebarProps {
8
2
  title?: string;
9
3
  subtitle?: string;
4
+ /** Свёрнутое состояние. Поддерживает `v-model:collapsed`. */
5
+ collapsed?: boolean;
6
+ /** Показать кнопку сворачивания/разворачивания в хедере. */
7
+ showToggleButton?: boolean;
8
+ /** Ширина в развёрнутом состоянии. */
9
+ width?: string;
10
+ /** Ширина в свёрнутом состоянии. */
11
+ collapsedWidth?: string;
12
+ /** A11y-лейбл кнопки тогла. */
13
+ toggleLabel?: string;
10
14
  }
11
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
15
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_29: {};
12
16
  type __VLS_Slots = {} & {
13
17
  subtitle?: (props: typeof __VLS_1) => any;
14
18
  } & {
15
19
  title?: (props: typeof __VLS_3) => any;
16
20
  } & {
17
- default?: (props: typeof __VLS_5) => any;
21
+ default?: (props: typeof __VLS_29) => any;
18
22
  };
19
23
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrSidebarProps>, {
20
24
  title: undefined;
21
25
  subtitle: undefined;
22
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrSidebarProps>, {
26
+ collapsed: boolean;
27
+ showToggleButton: boolean;
28
+ width: string;
29
+ collapsedWidth: string;
30
+ toggleLabel: undefined;
31
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
+ "update:collapsed": (value: boolean) => void;
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrSidebarProps>, {
23
34
  title: undefined;
24
35
  subtitle: undefined;
25
- }>>> & Readonly<{}>, {
36
+ collapsed: boolean;
37
+ showToggleButton: boolean;
38
+ width: string;
39
+ collapsedWidth: string;
40
+ toggleLabel: undefined;
41
+ }>>> & Readonly<{
42
+ "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
43
+ }>, {
26
44
  title: string;
45
+ width: string;
27
46
  subtitle: string;
47
+ collapsed: boolean;
48
+ showToggleButton: boolean;
49
+ collapsedWidth: string;
50
+ toggleLabel: string;
28
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
52
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
53
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,64 @@
1
+ /**
2
+ * GrSidebarItem — пункт навигации боковой панели `GrSidebar`.
3
+ *
4
+ * Контракт:
5
+ * - развёрнутая панель — `[иконка] метка [бейдж]`;
6
+ * - свёрнутая панель — только иконка; если иконки нет, показывается ПЕРВАЯ БУКВА
7
+ * метки (uppercase). В свёрнутом виде метка уходит в `title`/`aria-label` для
8
+ * доступности и tooltip.
9
+ *
10
+ * Корневой тег: `as` → `<a href>` → `<button>` (в этом порядке).
11
+ */
12
+ import { type Component } from 'vue';
13
+ type __VLS_Props = {
14
+ label: string;
15
+ /** Иконка: класс UnoCSS-иконки (`'i-lucide-home'`) или Vue-компонент. */
16
+ icon?: string | Component;
17
+ href?: string;
18
+ as?: string | Component;
19
+ active?: boolean;
20
+ disabled?: boolean;
21
+ badge?: string | number;
22
+ };
23
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
+ icon: undefined;
25
+ href: undefined;
26
+ as: undefined;
27
+ active: boolean;
28
+ disabled: boolean;
29
+ badge: undefined;
30
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
31
+ icon: undefined;
32
+ href: undefined;
33
+ as: undefined;
34
+ active: boolean;
35
+ disabled: boolean;
36
+ badge: undefined;
37
+ }>>> & Readonly<{}>, {
38
+ icon: string | Component;
39
+ disabled: boolean;
40
+ as: string | Component;
41
+ href: string;
42
+ active: boolean;
43
+ badge: string | number;
44
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_TypePropsToOption<T> = {
48
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
49
+ type: import('vue').PropType<Required<T>[K]>;
50
+ } : {
51
+ type: import('vue').PropType<T[K]>;
52
+ required: true;
53
+ };
54
+ };
55
+ type __VLS_WithDefaults<P, D> = {
56
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
57
+ default: D[K];
58
+ }> : P[K];
59
+ };
60
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
61
+ [K in keyof T]: T[K];
62
+ } : {
63
+ [K in keyof T as K]: T[K];
64
+ }) & {};
@@ -1,3 +1,4 @@
1
1
  export { default } from './GrSidebar.vue';
2
2
  export { default as GrSidebar, type GrSidebarProps } from './GrSidebar.vue';
3
+ export { default as GrSidebarItem } from './GrSidebarItem.vue';
3
4
  export { grSidebarConfig } from './config';
@@ -0,0 +1,9 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ /**
3
+ * Контекст `GrSidebar`, который потребляют `GrSidebarItem`'ы: свёрнута ли панель.
4
+ * В свёрнутом состоянии пункты показывают только иконку (или первую букву метки).
5
+ */
6
+ export interface GrSidebarContext {
7
+ collapsed: Ref<boolean>;
8
+ }
9
+ export declare const GR_SIDEBAR_KEY: InjectionKey<GrSidebarContext>;
@@ -1,7 +1,7 @@
1
1
  import { type GrSwitchSize } from './grSwitchStyles';
2
2
  export type { GrSwitchSize } from './grSwitchStyles';
3
3
  /**
4
- * Пропсы публичного DS-примитива «Switch».
4
+ * Пропсы публичного GR-примитива «Switch».
5
5
  */
6
6
  export interface GrSwitchProps {
7
7
  modelValue: boolean;
@@ -3,9 +3,9 @@ type GrSwitchThumbClassOptions = {
3
3
  checked: boolean;
4
4
  size: GrSwitchSize;
5
5
  };
6
- export declare const trackBase = "relative inline-flex items-center rounded-full border border-[var(--ds-switch-track-brd)] transition-colors duration-150";
6
+ export declare const trackBase = "relative inline-flex shrink-0 items-center rounded-full border border-[var(--gr-switch-track-brd)] transition-colors duration-150";
7
7
  export declare const trackSizes: Record<GrSwitchSize, string>;
8
- export declare const thumbBase = "inline-block rounded-full bg-[var(--card)] shadow-[var(--ds-shadow-1)] transition-transform duration-150";
8
+ export declare const thumbBase = "inline-block shrink-0 rounded-full bg-[var(--card)] shadow-[var(--gr-shadow-1)] transition-transform duration-150";
9
9
  export declare const thumbSizes: Record<GrSwitchSize, string>;
10
10
  export declare const thumbTranslations: Record<GrSwitchSize, {
11
11
  checked: string;
@@ -3,6 +3,8 @@ export type { GrToasterPlacement };
3
3
  export interface GrToasterProps {
4
4
  /** Угол экрана для стека уведомлений. */
5
5
  placement?: GrToasterPlacement;
6
+ /** Максимум одновременно видимых тостов; остальные ждут в очереди. По умолчанию `4`. */
7
+ maxVisible?: number;
6
8
  /** A11y-лейбл кнопки закрытия (i18n). */
7
9
  dismissLabel?: string;
8
10
  /** A11y-лейбл контейнера-региона (i18n). */
@@ -10,16 +12,19 @@ export interface GrToasterProps {
10
12
  }
11
13
  declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrToasterProps>, {
12
14
  placement: string;
13
- dismissLabel: string;
14
- regionLabel: string;
15
+ maxVisible: number;
16
+ dismissLabel: undefined;
17
+ regionLabel: undefined;
15
18
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrToasterProps>, {
16
19
  placement: string;
17
- dismissLabel: string;
18
- regionLabel: string;
20
+ maxVisible: number;
21
+ dismissLabel: undefined;
22
+ regionLabel: undefined;
19
23
  }>>> & Readonly<{}>, {
20
24
  dismissLabel: string;
21
25
  regionLabel: string;
22
26
  placement: GrToasterPlacement;
27
+ maxVisible: number;
23
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
29
  declare const _default: typeof __VLS_export;
25
30
  export default _default;
@@ -24,7 +24,7 @@ declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: N
24
24
  (event: "nodeDrop", draggingNode: GrTreeNode<T>, dropNode: GrTreeNode<T>, dropType: GrTreeNodeDropType): void;
25
25
  };
26
26
  }>) => import("vue").VNode & {
27
- __ctx?: Awaited<typeof __VLS_setup>;
27
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
28
28
  };
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -3,8 +3,8 @@ import type { GrTreeSelectModelValue, GrTreeSelectProps } from './grTreeSelectTy
3
3
  declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrTreeSelectProps<T> & {
5
5
  "onUpdate:modelValue"?: ((value: GrTreeSelectModelValue) => any) | undefined;
6
- onChange?: ((value: GrTreeSelectModelValue) => any) | undefined;
7
6
  onClear?: (() => any) | undefined;
7
+ onChange?: ((value: GrTreeSelectModelValue) => any) | undefined;
8
8
  onNodeClick?: ((data: T, node: GrTreeNode<T>) => any) | undefined;
9
9
  onVisibleChange?: ((visible: boolean) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
@@ -37,7 +37,7 @@ declare const __VLS_export: <T extends Record<string, any> = any>(__VLS_props: N
37
37
  (e: "nodeClick", data: T, node: GrTreeNode<T>): void;
38
38
  };
39
39
  }>) => import("vue").VNode & {
40
- __ctx?: Awaited<typeof __VLS_setup>;
40
+ __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
41
41
  };
42
42
  declare const _default: typeof __VLS_export;
43
43
  export default _default;
@@ -7,4 +7,4 @@ export declare function grTreeSelectClass(options: {
7
7
  state: GrTreeSelectState;
8
8
  invalid: boolean;
9
9
  }): string;
10
- export declare const grTreeSelectPanelClass = "rounded-[var(--ds-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--ds-shadow-2)] overflow-hidden";
10
+ export declare const grTreeSelectPanelClass = "rounded-[var(--gr-radius-xl)] border border-[var(--brd)] bg-[var(--card)] text-[var(--card-fg)] shadow-[var(--gr-shadow-2)] overflow-hidden";
@@ -6,7 +6,7 @@ export type GrTreeSelectModelValue = GrTreeKey | GrTreeKey[] | null;
6
6
  export type GrTreeSelectValueDisplay = 'label' | 'path';
7
7
  type NodeKeyProp<T> = keyof T & string;
8
8
  /**
9
- * Пропсы публичного DS-примитива «TreeSelect».
9
+ * Пропсы публичного GR-примитива «TreeSelect».
10
10
  */
11
11
  export interface GrTreeSelectProps<T extends object = any> {
12
12
  modelValue: GrTreeSelectModelValue;
@@ -0,0 +1,18 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * Измерение фактической ширины prefix/suffix add-on'ов через `ResizeObserver`.
4
+ * Общая логика GrInput/GrNumberInput (раньше дублировалась ~60 строк в каждом).
5
+ *
6
+ * Потребитель вешает возвращённые `prefixEl`/`suffixEl` на DOM-элементы аддонов
7
+ * и передаёт реактивные `hasPrefix`/`hasSuffix` (обычно — наличие слотов).
8
+ * Возвращает измеренные ширины (`"<n>px"` или `undefined`, если элемент
9
+ * отсутствует/скрыт/нулевой — например, в jsdom).
10
+ */
11
+ export declare function useAddonMeasurement(hasPrefix: Ref<boolean>, hasSuffix: Ref<boolean>): {
12
+ prefixEl: Ref<HTMLElement | null, HTMLElement | null>;
13
+ suffixEl: Ref<HTMLElement | null, HTMLElement | null>;
14
+ measuredPrefixWidth: Ref<string | undefined, string | undefined>;
15
+ measuredSuffixWidth: Ref<string | undefined, string | undefined>;
16
+ };
17
+ /** Складывает две CSS-длины: числовые `px` — арифметически, иначе через `calc()`. */
18
+ export declare function addLen(a: string, b: string): string;
@@ -0,0 +1,11 @@
1
+ import type { Ref } from 'vue';
2
+ /**
3
+ * Пока `open` истинно, слушает `keydown` на `document` и вызывает `onEscape`
4
+ * по нажатию Esc; снимает слушатель при закрытии и размонтировании.
5
+ *
6
+ * Общая dismiss-логика floating-компонентов (GrSelect/GrDropdown) — раньше
7
+ * дублировалась (`closeOnEscape` + watch(open) + onUnmounted) в каждом.
8
+ * Click-outside у этих компонентов закрывается общей директивой `vClickOutside`,
9
+ * поэтому здесь только Esc-часть.
10
+ */
11
+ export declare function useEscapeToClose(open: Ref<boolean>, onEscape: () => void): void;
@@ -1,8 +1,9 @@
1
+ import type { Ref } from 'vue';
1
2
  export type ThemeName = 'light' | 'dark';
2
3
  export type UseThemeOptions = {
3
4
  /**
4
5
  * Ключ для хранения выбранной темы в localStorage.
5
- * По умолчанию: `fint-ds-theme`.
6
+ * По умолчанию: `gr-theme`.
6
7
  */
7
8
  storageKey?: string;
8
9
  /**
@@ -13,10 +14,12 @@ export type UseThemeOptions = {
13
14
  };
14
15
  /**
15
16
  * Для применения темы максимально рано (до монтирования Vue), чтобы избежать "мигания".
17
+ * Также сидирует shared-синглтон, чтобы значение в `useTheme()` совпадало с уже
18
+ * применённым к документу.
16
19
  */
17
20
  export declare function initThemeEarly(options?: UseThemeOptions): void;
18
21
  export declare function useTheme(options?: UseThemeOptions): {
19
- theme: import("vue").Ref<ThemeName, ThemeName>;
22
+ theme: Ref<ThemeName, ThemeName>;
20
23
  isDark: import("vue").ComputedRef<boolean>;
21
24
  setTheme: (next: ThemeName) => void;
22
25
  toggleTheme: () => void;
@@ -1,3 +1,4 @@
1
+ import type { App, InjectionKey } from 'vue';
1
2
  import type { GrTone } from '../components/shared/tones';
2
3
  export type GrToastTone = GrTone;
3
4
  export type ToastInput = {
@@ -15,10 +16,41 @@ export type Toast = {
15
16
  title: string;
16
17
  message?: string;
17
18
  tone: GrToastTone;
19
+ /** Исходный таймаут автозакрытия, мс (`0` — без автозакрытия). Нужен для progress-бара. */
20
+ timeoutMs: number;
21
+ };
22
+ type ToastTimer = {
23
+ handle: number | null;
24
+ /** Сколько мс осталось до автозакрытия на момент последней паузы/старта. */
25
+ remaining: number;
26
+ /** `performance.now()` момента запуска текущего отрезка (для вычисления остатка). */
27
+ startedAt: number;
28
+ };
29
+ export type ToastState = {
30
+ toasts: Toast[];
31
+ timers: Map<string, ToastTimer>;
32
+ };
33
+ /** Ключ provide/inject для app-scoped состояния тостов (устанавливает плагин ниже). */
34
+ export declare const GRANULARITY_TOAST_STATE: InjectionKey<ToastState>;
35
+ /**
36
+ * Vue-плагин: даёт каждому приложению собственное изолированное состояние тостов
37
+ * через `app.provide`. Обязателен для (а) нескольких Vue-приложений на одной
38
+ * странице (микрофронтенды — иначе делят один стек тостов) и (б) SSR (иначе
39
+ * модульное состояние течёт между запросами).
40
+ *
41
+ * ```ts
42
+ * app.use(granularityToastPlugin)
43
+ * ```
44
+ */
45
+ export declare const granularityToastPlugin: {
46
+ install(app: App): void;
18
47
  };
19
48
  export declare function useToast(): {
20
- list: import("vue").ComputedRef<import("vue").Reactive<Toast[]>>;
49
+ list: import("vue").ComputedRef<Toast[]>;
21
50
  push: (input: ToastInput) => string;
22
51
  dismiss: (id: string) => void;
23
52
  clear: () => void;
53
+ pause: (id: string) => void;
54
+ resume: (id: string) => void;
24
55
  };
56
+ export {};
@@ -10,9 +10,17 @@ export type HotkeyEntry = HotkeyHandler | {
10
10
  allowInEditable?: boolean;
11
11
  };
12
12
  export type HotkeyMap = Record<string, HotkeyEntry>;
13
+ /**
14
+ * Где слушать клавиатуру:
15
+ * - `'global'` (по умолчанию) — слушатель на `window`; хоткеи работают из любого места страницы.
16
+ * - `'element'` — слушатель на самом элементе; хоткеи срабатывают только когда фокус внутри
17
+ * элемента (событие всплывает до него). Элемент должен быть фокусируемым (`tabindex`).
18
+ */
19
+ export type HotkeyScope = 'global' | 'element';
13
20
  export type HotkeyBindingValue = HotkeyMap | {
14
21
  handlers: HotkeyMap;
15
22
  enabled?: boolean;
23
+ scope?: HotkeyScope;
16
24
  };
17
25
  /**
18
26
  * `v-hotkey` — горячие клавиши на компонент/страницу.
@@ -21,5 +29,11 @@ export type HotkeyBindingValue = HotkeyMap | {
21
29
  * ```vue
22
30
  * <div v-hotkey="{ 'Escape': close, 'Ctrl+K': openSearch }" />
23
31
  * ```
32
+ *
33
+ * По умолчанию слушатель глобальный (`window`). Чтобы хоткеи срабатывали только
34
+ * когда фокус внутри элемента, используйте `scope: 'element'`:
35
+ * ```vue
36
+ * <div tabindex="0" v-hotkey="{ handlers: { 'j': next }, scope: 'element' }" />
37
+ * ```
24
38
  */
25
39
  export declare const vHotkey: Directive<HTMLElement, HotkeyBindingValue>;
@@ -18,9 +18,6 @@ export declare const granularityDefaultThemes: readonly GranularityThemeName[];
18
18
  * остаётся здесь, а node‑вариант подставляется снаружи через
19
19
  * `createGranularityProvider(overrides)` — см. `./index.ts` (browser)
20
20
  * и `./node.ts` (node).
21
- *
22
- * Формат записи `<Name>: ds<Name>Config` критичен для regex‑парсинга
23
- * в `apps/showcase/scripts/generate-component-api.mjs`, не ломайте его.
24
21
  */
25
22
  export declare const granularityComponentConfigs: {
26
23
  GrAlert: GranularComponentDescriptor<"GrAlert">;
@@ -36,6 +33,7 @@ export declare const granularityComponentConfigs: {
36
33
  GrConfirmDialog: GranularComponentDescriptor<"GrConfirmDialog">;
37
34
  GrDataTable: GranularComponentDescriptor<"GrDataTable">;
38
35
  GrDialog: GranularComponentDescriptor<"GrDialog">;
36
+ GrDialogService: GranularComponentDescriptor<"GrDialogServiceHost">;
39
37
  GrDrawer: GranularComponentDescriptor<"GrDrawer">;
40
38
  GrDropdown: GranularComponentDescriptor<"GrDropdown">;
41
39
  GrDropdownMenu: GranularComponentDescriptor<"GrDropdownMenu">;
@@ -23,9 +23,15 @@ export declare const en: {
23
23
  filterPlaceholder: string;
24
24
  empty: string;
25
25
  };
26
+ tree: {
27
+ drag: string;
28
+ expand: string;
29
+ collapse: string;
30
+ };
26
31
  select: {
27
32
  customValuePlaceholder: string;
28
33
  addOption: string;
34
+ clearOption: string;
29
35
  };
30
36
  dialog: {
31
37
  confirm: {
@@ -43,6 +49,8 @@ export declare const en: {
43
49
  prev: string;
44
50
  next: string;
45
51
  page: string;
52
+ first: string;
53
+ last: string;
46
54
  };
47
55
  navbar: {
48
56
  openMenu: string;
@@ -73,6 +81,58 @@ export declare const en: {
73
81
  slate: string;
74
82
  azure: string;
75
83
  };
84
+ drawer: {
85
+ title: string;
86
+ };
87
+ numberInput: {
88
+ increase: string;
89
+ decrease: string;
90
+ };
91
+ toaster: {
92
+ dismiss: string;
93
+ region: string;
94
+ };
95
+ inputTag: {
96
+ removeTag: string;
97
+ };
98
+ fileUpload: {
99
+ placeholder: string;
100
+ progress: string;
101
+ };
102
+ formFile: {
103
+ upload: string;
104
+ change: string;
105
+ remove: string;
106
+ clearAll: string;
107
+ placeholder: string;
108
+ validateError: string;
109
+ };
110
+ imageViewer: {
111
+ close: string;
112
+ prev: string;
113
+ next: string;
114
+ zoomIn: string;
115
+ zoomOut: string;
116
+ resetZoom: string;
117
+ rotateLeft: string;
118
+ rotateRight: string;
119
+ empty: string;
120
+ };
121
+ formErrorBanner: {
122
+ validationTitle: string;
123
+ validationMessage: string;
124
+ clientTitle: string;
125
+ serverTitle: string;
126
+ serverMessage: string;
127
+ };
128
+ uploadErrorBanner: {
129
+ networkTitle: string;
130
+ networkMessage: string;
131
+ validationTitle: string;
132
+ validationMessage: string;
133
+ serverTitle: string;
134
+ serverMessage: string;
135
+ };
76
136
  };
77
137
  common: {
78
138
  confirm: string;
@@ -88,9 +148,15 @@ export declare const en: {
88
148
  filterPlaceholder: string;
89
149
  empty: string;
90
150
  };
151
+ tree: {
152
+ drag: string;
153
+ expand: string;
154
+ collapse: string;
155
+ };
91
156
  select: {
92
157
  customValuePlaceholder: string;
93
158
  addOption: string;
159
+ clearOption: string;
94
160
  };
95
161
  dialog: {
96
162
  confirm: {
@@ -108,6 +174,8 @@ export declare const en: {
108
174
  prev: string;
109
175
  next: string;
110
176
  page: string;
177
+ first: string;
178
+ last: string;
111
179
  };
112
180
  navbar: {
113
181
  openMenu: string;
@@ -138,6 +206,58 @@ export declare const en: {
138
206
  slate: string;
139
207
  azure: string;
140
208
  };
209
+ drawer: {
210
+ title: string;
211
+ };
212
+ numberInput: {
213
+ increase: string;
214
+ decrease: string;
215
+ };
216
+ toaster: {
217
+ dismiss: string;
218
+ region: string;
219
+ };
220
+ inputTag: {
221
+ removeTag: string;
222
+ };
223
+ fileUpload: {
224
+ placeholder: string;
225
+ progress: string;
226
+ };
227
+ formFile: {
228
+ upload: string;
229
+ change: string;
230
+ remove: string;
231
+ clearAll: string;
232
+ placeholder: string;
233
+ validateError: string;
234
+ };
235
+ imageViewer: {
236
+ close: string;
237
+ prev: string;
238
+ next: string;
239
+ zoomIn: string;
240
+ zoomOut: string;
241
+ resetZoom: string;
242
+ rotateLeft: string;
243
+ rotateRight: string;
244
+ empty: string;
245
+ };
246
+ formErrorBanner: {
247
+ validationTitle: string;
248
+ validationMessage: string;
249
+ clientTitle: string;
250
+ serverTitle: string;
251
+ serverMessage: string;
252
+ };
253
+ uploadErrorBanner: {
254
+ networkTitle: string;
255
+ networkMessage: string;
256
+ validationTitle: string;
257
+ validationMessage: string;
258
+ serverTitle: string;
259
+ serverMessage: string;
260
+ };
141
261
  }>;
142
262
  };
143
263
  };