@feugene/granularity 0.12.0 → 0.13.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 (496) hide show
  1. package/dist/GrBadge.css +1 -1
  2. package/dist/GrFormFile.css +1 -1
  3. package/dist/GrToaster.css +1 -1
  4. package/dist/GrTree.css +1 -1
  5. package/dist/chunks/{config-ClhKPJvg.js → config-23WtUiAL.js} +1 -1
  6. package/dist/chunks/config-23WtUiAL.js.map +1 -0
  7. package/dist/chunks/config-8Pcutu1j.js.map +1 -0
  8. package/dist/chunks/{config-1uSYl98Y2.js → config-B0i5r8kH.js} +1 -1
  9. package/dist/chunks/config-B0i5r8kH.js.map +1 -0
  10. package/dist/chunks/{config-BOlr7qw7.js → config-B5Rknzkd.js} +33 -39
  11. package/dist/chunks/config-B5Rknzkd.js.map +1 -0
  12. package/dist/chunks/config-B7W9VlZ7.js +5 -0
  13. package/dist/chunks/config-B7W9VlZ7.js.map +1 -0
  14. package/dist/chunks/config-BDSHekVC.js +84 -0
  15. package/dist/chunks/config-BDSHekVC.js.map +1 -0
  16. package/dist/chunks/config-BLHqZhy-.js.map +1 -0
  17. package/dist/chunks/{config-eYLZYOUS2.js → config-BMKNHFMD2.js} +15 -15
  18. package/dist/chunks/config-BMKNHFMD2.js.map +1 -0
  19. package/dist/chunks/config-BUHuGBik2.js.map +1 -0
  20. package/dist/chunks/config-BX1JTrkV.js.map +1 -0
  21. package/dist/chunks/config-BXtAmU3s.js.map +1 -0
  22. package/dist/chunks/config-BZFUM3Ky.js +75 -0
  23. package/dist/chunks/config-BZFUM3Ky.js.map +1 -0
  24. package/dist/chunks/{config-DUcu1D682.js → config-BmNT0Fmx.js} +2 -2
  25. package/dist/chunks/config-BmNT0Fmx.js.map +1 -0
  26. package/dist/chunks/{config-C49QUoJL.js → config-BvVq2gbd.js} +1 -1
  27. package/dist/chunks/{config-C49QUoJL.js.map → config-BvVq2gbd.js.map} +1 -1
  28. package/dist/chunks/{config-CrG1XiE72.js → config-C4hJxXDa.js} +5 -5
  29. package/dist/chunks/config-C4hJxXDa.js.map +1 -0
  30. package/dist/chunks/config-CB4RVt9M.js +66 -0
  31. package/dist/chunks/config-CB4RVt9M.js.map +1 -0
  32. package/dist/chunks/config-CGHLoBlH2.js.map +1 -0
  33. package/dist/chunks/config-COE_vZ-l.js +52 -0
  34. package/dist/chunks/config-COE_vZ-l.js.map +1 -0
  35. package/dist/chunks/{config-CziwTDDL.js → config-CPdmr7tC.js} +1 -1
  36. package/dist/chunks/{config-CziwTDDL.js.map → config-CPdmr7tC.js.map} +1 -1
  37. package/dist/chunks/{config-BIRO0vDJ.js → config-DPDFYzIa.js} +2 -2
  38. package/dist/chunks/config-DPDFYzIa.js.map +1 -0
  39. package/dist/chunks/{config-DnvPqu4g2.js → config-DRKXJ9PW2.js} +1 -1
  40. package/dist/chunks/{config-DnvPqu4g2.js.map → config-DRKXJ9PW2.js.map} +1 -1
  41. package/dist/chunks/config-DToHb81g.js +45 -0
  42. package/dist/chunks/config-DToHb81g.js.map +1 -0
  43. package/dist/chunks/{config-jBp9wVv-.js → config-D_myOZbA.js} +1 -1
  44. package/dist/chunks/{config-jBp9wVv-.js.map → config-D_myOZbA.js.map} +1 -1
  45. package/dist/chunks/{config-D_R56_gT.js → config-Dg_6FTvJ.js} +1 -1
  46. package/dist/chunks/config-Dg_6FTvJ.js.map +1 -0
  47. package/dist/chunks/config-Dqy0rPPO2.js.map +1 -0
  48. package/dist/chunks/config-Droqn55j.js +8 -0
  49. package/dist/chunks/config-Droqn55j.js.map +1 -0
  50. package/dist/chunks/config-JpHA4Xx0.js.map +1 -0
  51. package/dist/chunks/{config-C4snOIXg.js → config-KXuionN3.js} +1 -1
  52. package/dist/chunks/{config-C4snOIXg.js.map → config-KXuionN3.js.map} +1 -1
  53. package/dist/chunks/{config-DezDih8_.js → config-LqDC_rvp.js} +2 -2
  54. package/dist/chunks/config-LqDC_rvp.js.map +1 -0
  55. package/dist/chunks/config-QaIc_gRa2.js.map +1 -0
  56. package/dist/chunks/config-U4m9PSql2.js.map +1 -0
  57. package/dist/chunks/{config-B7IIWGt_2.js → config-XmTv4pnI.js} +2 -2
  58. package/dist/chunks/config-XmTv4pnI.js.map +1 -0
  59. package/dist/chunks/config-eXB87DOi.js.map +1 -0
  60. package/dist/chunks/{config-C7NpDrfO.js → config-gZWR75Bh2.js} +1 -1
  61. package/dist/chunks/config-gZWR75Bh2.js.map +1 -0
  62. package/dist/chunks/config-ipvU0lzP.js.map +1 -0
  63. package/dist/chunks/config-xR4XVmcy2.js.map +1 -0
  64. package/dist/chunks/context-Bfrgsluh.js +9 -0
  65. package/dist/chunks/context-Bfrgsluh.js.map +1 -0
  66. package/dist/chunks/context-DfWYCBB-.js +129 -0
  67. package/dist/chunks/context-DfWYCBB-.js.map +1 -0
  68. package/dist/chunks/{en-CfkDa4GX.js → en-Cr6EkG8c.js} +46 -4
  69. package/dist/chunks/en-Cr6EkG8c.js.map +1 -0
  70. package/dist/chunks/{es-CgaLnFYx.js → es-DuYb1Qju.js} +3 -3
  71. package/dist/chunks/{es-CgaLnFYx.js.map → es-DuYb1Qju.js.map} +1 -1
  72. package/dist/chunks/{es-FkgECuCm.js → es-i08e9Sdo.js} +46 -4
  73. package/dist/chunks/es-i08e9Sdo.js.map +1 -0
  74. package/dist/chunks/{grBadgeStyles-DrycBuKT.js → grBadgeStyles-D3dFjr_N.js} +12 -12
  75. package/dist/chunks/grBadgeStyles-D3dFjr_N.js.map +1 -0
  76. package/dist/chunks/{grButtonStyles-C7Yga_Q1.js → grButtonStyles-DRBgDmOp.js} +28 -28
  77. package/dist/chunks/grButtonStyles-DRBgDmOp.js.map +1 -0
  78. package/dist/chunks/{grDropdownStyles-B_-DKytw.js → grDropdownStyles-HBPkghVr.js} +2 -2
  79. package/dist/chunks/{grDropdownStyles-B_-DKytw.js.map → grDropdownStyles-HBPkghVr.js.map} +1 -1
  80. package/dist/chunks/{grModalStyles-DWd3i05Q.js → grModalStyles-D8-shx9A.js} +1 -1
  81. package/dist/chunks/grModalStyles-D8-shx9A.js.map +1 -0
  82. package/dist/chunks/{grSelectStyles-CLK5hRd3.js → grSelectStyles-CwMUQrBZ.js} +12 -12
  83. package/dist/chunks/grSelectStyles-CwMUQrBZ.js.map +1 -0
  84. package/dist/chunks/{grStyle-Blc9otAx.js → grStyle-CdvxTXPH.js} +2 -2
  85. package/dist/chunks/grStyle-CdvxTXPH.js.map +1 -0
  86. package/dist/chunks/{granularityI18n-DoV7Ca2m.js → granularityI18n-SH0I--GW.js} +1 -1
  87. package/dist/chunks/{granularityI18n-DoV7Ca2m.js.map → granularityI18n-SH0I--GW.js.map} +1 -1
  88. package/dist/chunks/{ru-Bl8CxpEa.js → ru-B5XOOYZt.js} +46 -4
  89. package/dist/chunks/ru-B5XOOYZt.js.map +1 -0
  90. package/dist/chunks/{safelist-Do2RtzLB.js → safelist-BvO8HPnE.js} +1 -1
  91. package/dist/chunks/{safelist-Do2RtzLB.js.map → safelist-BvO8HPnE.js.map} +1 -1
  92. package/dist/chunks/shared-D-v9lit0.js +188 -0
  93. package/dist/chunks/shared-D-v9lit0.js.map +1 -0
  94. package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js +251 -0
  95. package/dist/components/GrAlert/chunks/GrAlert-B9gmpoPC.js.map +1 -0
  96. package/dist/components/GrAlert/index.js +2 -2
  97. package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js +499 -0
  98. package/dist/components/GrAutocomplete/chunks/GrAutocomplete-BVLoQ5tZ.js.map +1 -0
  99. package/dist/components/GrAutocomplete/index.js +3 -0
  100. package/dist/components/GrAvatar/chunks/{GrAvatar-96CpTCq5.js → GrAvatar-CTOUVBF7.js} +1 -1
  101. package/dist/components/GrAvatar/chunks/GrAvatar-CTOUVBF7.js.map +1 -0
  102. package/dist/components/GrAvatar/index.js +1 -1
  103. package/dist/components/GrBadge/chunks/{GrBadge-B77XlaqE.js → GrBadge-D1jefy4S.js} +12 -8
  104. package/dist/components/GrBadge/chunks/GrBadge-D1jefy4S.js.map +1 -0
  105. package/dist/components/GrBadge/index.js +2 -2
  106. package/dist/components/GrBadgeWrap/chunks/{GrBadgeWrap-CcktMOdg.js → GrBadgeWrap-DWDxHdiQ.js} +1 -1
  107. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-DWDxHdiQ.js.map +1 -0
  108. package/dist/components/GrBadgeWrap/index.js +1 -1
  109. package/dist/components/GrBottomNav/chunks/{GrBottomNav-usuMgG8_.js → GrBottomNav-vSE4LXmk.js} +2 -2
  110. package/dist/components/GrBottomNav/chunks/GrBottomNav-vSE4LXmk.js.map +1 -0
  111. package/dist/components/GrBottomNav/index.js +1 -1
  112. package/dist/components/GrButton/chunks/{GrButton-BlffdeJr.js → GrButton-DCi4CUpo.js} +18 -14
  113. package/dist/components/GrButton/chunks/GrButton-DCi4CUpo.js.map +1 -0
  114. package/dist/components/GrButton/index.js +4 -4
  115. package/dist/components/GrCard/chunks/{GrCard-DUNMkuHW.js → GrCard-CxCjyHMb.js} +1 -1
  116. package/dist/components/GrCard/chunks/GrCard-CxCjyHMb.js.map +1 -0
  117. package/dist/components/GrCard/index.js +1 -1
  118. package/dist/components/GrCheckbox/chunks/{GrCheckbox-DJhzZZdO.js → GrCheckbox-BbIDRXtl.js} +5 -5
  119. package/dist/components/GrCheckbox/chunks/GrCheckbox-BbIDRXtl.js.map +1 -0
  120. package/dist/components/GrCheckbox/index.js +1 -1
  121. package/dist/components/GrCollapse/chunks/{GrCollapse-CPPLh_xU.js → GrCollapse-DApXztn8.js} +6 -6
  122. package/dist/components/GrCollapse/chunks/GrCollapse-DApXztn8.js.map +1 -0
  123. package/dist/components/GrCollapse/index.js +2 -2
  124. package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js +410 -0
  125. package/dist/components/GrCommandPalette/chunks/GrCommandPalette-6OyvNbek.js.map +1 -0
  126. package/dist/components/GrCommandPalette/index.js +3 -0
  127. package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js +57 -0
  128. package/dist/components/GrConfigProvider/chunks/GrConfigProvider-BtyeBGm8.js.map +1 -0
  129. package/dist/components/GrConfigProvider/index.js +4 -0
  130. package/dist/components/GrConfirmDialog/chunks/{GrConfirmDialog-D8CkOtqv.js → GrConfirmDialog-e4120mWw.js} +5 -5
  131. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-e4120mWw.js.map +1 -0
  132. package/dist/components/GrConfirmDialog/index.js +2 -2
  133. package/dist/components/GrDataTable/chunks/{GrDataTable-Ds5OeGat.js → GrDataTable-C1CzxV0p.js} +127 -25
  134. package/dist/components/GrDataTable/chunks/GrDataTable-C1CzxV0p.js.map +1 -0
  135. package/dist/components/GrDataTable/index.js +2 -2
  136. package/dist/components/GrDialog/chunks/{GrDialog-Ctucxju9.js → GrDialog-BPMvDHOz.js} +5 -5
  137. package/dist/components/GrDialog/chunks/GrDialog-BPMvDHOz.js.map +1 -0
  138. package/dist/components/GrDialog/index.js +1 -1
  139. package/dist/components/GrDialogService/chunks/{GrDialogService-CU1Fbonc.js → GrDialogService-CYXCTGm3.js} +36 -11
  140. package/dist/components/GrDialogService/chunks/GrDialogService-CYXCTGm3.js.map +1 -0
  141. package/dist/components/GrDialogService/index.js +2 -2
  142. package/dist/components/GrDivider/chunks/{GrDivider-5bcE-BB4.js → GrDivider-BdENZ1w0.js} +5 -5
  143. package/dist/components/GrDivider/chunks/GrDivider-BdENZ1w0.js.map +1 -0
  144. package/dist/components/GrDivider/index.js +1 -1
  145. package/dist/components/GrDrawer/chunks/{GrDrawer-SLGKCY2A.js → GrDrawer-KevdZ5BB.js} +5 -5
  146. package/dist/components/GrDrawer/chunks/GrDrawer-KevdZ5BB.js.map +1 -0
  147. package/dist/components/GrDrawer/index.js +2 -2
  148. package/dist/components/GrDropdown/chunks/{GrDropdown-BnDMYP8v.js → GrDropdown-BKoy8hm-.js} +1 -1
  149. package/dist/components/GrDropdown/chunks/{GrDropdown-BnDMYP8v.js.map → GrDropdown-BKoy8hm-.js.map} +1 -1
  150. package/dist/components/GrDropdown/index.js +2 -2
  151. package/dist/components/GrDropdownMenu/chunks/{GrDropdownMenu--g9Vofcq.js → GrDropdownMenu-zCatXzmt.js} +11 -11
  152. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu-zCatXzmt.js.map +1 -0
  153. package/dist/components/GrDropdownMenu/index.js +1 -1
  154. package/dist/components/GrEmptyState/chunks/{GrEmptyState-CA3BiTV7.js → GrEmptyState-CNb0BzjG.js} +3 -3
  155. package/dist/components/GrEmptyState/chunks/GrEmptyState-CNb0BzjG.js.map +1 -0
  156. package/dist/components/GrEmptyState/index.js +1 -1
  157. package/dist/components/GrFileUpload/chunks/{GrFileUpload-DvWPpiJS.js → GrFileUpload-CnLgUGDF.js} +12 -12
  158. package/dist/components/GrFileUpload/chunks/GrFileUpload-CnLgUGDF.js.map +1 -0
  159. package/dist/components/GrFileUpload/index.js +1 -1
  160. package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js +234 -0
  161. package/dist/components/GrForm/chunks/GrForm-CdaFjcyl.js.map +1 -0
  162. package/dist/components/GrForm/index.js +4 -0
  163. package/dist/components/GrFormField/chunks/{GrFormField-DnfMHx_U.js → GrFormField-CXCDBd99.js} +41 -14
  164. package/dist/components/GrFormField/chunks/GrFormField-CXCDBd99.js.map +1 -0
  165. package/dist/components/GrFormField/index.js +1 -1
  166. package/dist/components/GrFormFile/chunks/{GrFormFile-CXcqqdvV.js → GrFormFile-CqacSbUl.js} +9 -9
  167. package/dist/components/GrFormFile/chunks/GrFormFile-CqacSbUl.js.map +1 -0
  168. package/dist/components/GrFormFile/index.js +1 -1
  169. package/dist/components/GrFormSection/chunks/{GrFormSection-Ce21jcgo.js → GrFormSection-C3w9DQJf.js} +1 -1
  170. package/dist/components/GrFormSection/chunks/GrFormSection-C3w9DQJf.js.map +1 -0
  171. package/dist/components/GrFormSection/index.js +1 -1
  172. package/dist/components/GrImageViewer/chunks/{GrImageViewer-Dla9IBkd.js → GrImageViewer-DDLJkvIU.js} +1 -1
  173. package/dist/components/GrImageViewer/chunks/{GrImageViewer-Dla9IBkd.js.map → GrImageViewer-DDLJkvIU.js.map} +1 -1
  174. package/dist/components/GrImageViewer/index.js +1 -1
  175. package/dist/components/GrInput/chunks/{GrInput-B8dd3JaA.js → GrInput-C1VBL0dg.js} +18 -15
  176. package/dist/components/GrInput/chunks/GrInput-C1VBL0dg.js.map +1 -0
  177. package/dist/components/GrInput/index.js +2 -2
  178. package/dist/components/GrInputTag/chunks/{GrInputTag-zMgFqp2g.js → GrInputTag-BMk9jm42.js} +6 -6
  179. package/dist/components/GrInputTag/chunks/GrInputTag-BMk9jm42.js.map +1 -0
  180. package/dist/components/GrInputTag/index.js +2 -2
  181. package/dist/components/GrKbd/chunks/{GrKbd-BEoYxWhE.js → GrKbd-DTspwtoN.js} +1 -1
  182. package/dist/components/GrKbd/chunks/GrKbd-DTspwtoN.js.map +1 -0
  183. package/dist/components/GrKbd/index.js +1 -1
  184. package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js → GrLink-BP0YrnL9.js} +1 -1
  185. package/dist/components/GrLink/chunks/{GrLink-CYUe-Q8k.js.map → GrLink-BP0YrnL9.js.map} +1 -1
  186. package/dist/components/GrLink/index.js +2 -2
  187. package/dist/components/GrList/chunks/{GrList-Dx772Ns4.js → GrList-5RA-tZzE.js} +3 -3
  188. package/dist/components/GrList/chunks/GrList-5RA-tZzE.js.map +1 -0
  189. package/dist/components/GrList/index.js +1 -1
  190. package/dist/components/GrLoading/chunks/{GrLoading--X_7rdbb.js → GrLoading-fRDtVfi7.js} +3 -3
  191. package/dist/components/GrLoading/chunks/GrLoading-fRDtVfi7.js.map +1 -0
  192. package/dist/components/GrLoading/index.js +2 -2
  193. package/dist/components/GrModal/chunks/{GrModal-C0GZrHN3.js → GrModal-BTu1-5eY.js} +1 -1
  194. package/dist/components/GrModal/chunks/{GrModal-C0GZrHN3.js.map → GrModal-BTu1-5eY.js.map} +1 -1
  195. package/dist/components/GrModal/index.js +3 -3
  196. package/dist/components/GrNavbar/chunks/{GrNavbar-DW3MiIIf.js → GrNavbar-keKT_mIM.js} +3 -3
  197. package/dist/components/GrNavbar/chunks/GrNavbar-keKT_mIM.js.map +1 -0
  198. package/dist/components/GrNavbar/index.js +1 -1
  199. package/dist/components/GrNumberInput/chunks/{GrNumberInput-DxCEvL7V.js → GrNumberInput-l9ZOHG9D.js} +19 -17
  200. package/dist/components/GrNumberInput/chunks/GrNumberInput-l9ZOHG9D.js.map +1 -0
  201. package/dist/components/GrNumberInput/index.js +2 -2
  202. package/dist/components/GrPagination/chunks/{GrPagination-mlyfLjQY.js → GrPagination-C5Y69CuK.js} +59 -16
  203. package/dist/components/GrPagination/chunks/GrPagination-C5Y69CuK.js.map +1 -0
  204. package/dist/components/GrPagination/index.js +2 -2
  205. package/dist/components/GrProgressBar/chunks/{GrProgressBar-CC3z-Zqp.js → GrProgressBar-Dqg4Fj9S.js} +2 -2
  206. package/dist/components/GrProgressBar/chunks/GrProgressBar-Dqg4Fj9S.js.map +1 -0
  207. package/dist/components/GrProgressBar/index.js +2 -2
  208. package/dist/components/GrPromptDialog/chunks/{GrPromptDialog-C-_BMNuY.js → GrPromptDialog-DNUjRVB9.js} +7 -7
  209. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-DNUjRVB9.js.map +1 -0
  210. package/dist/components/GrPromptDialog/index.js +2 -2
  211. package/dist/components/GrRadio/chunks/{GrRadio-Dr-pvs_9.js → GrRadio-DlhxPGqf.js} +5 -7
  212. package/dist/components/GrRadio/chunks/GrRadio-DlhxPGqf.js.map +1 -0
  213. package/dist/components/GrRadio/index.js +2 -2
  214. package/dist/components/GrRadioGroup/chunks/{GrRadioGroup-nOdvfV_g.js → GrRadioGroup-BXt9iw4q.js} +7 -5
  215. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-BXt9iw4q.js.map +1 -0
  216. package/dist/components/GrRadioGroup/index.js +2 -2
  217. package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js +241 -0
  218. package/dist/components/GrRating/chunks/GrRating-Co-3Rk4h.js.map +1 -0
  219. package/dist/components/GrRating/index.js +3 -0
  220. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js → GrResponseErrorBanner-2CvM7Z08.js} +2 -2
  221. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-BWJNe2gr.js.map → GrResponseErrorBanner-2CvM7Z08.js.map} +1 -1
  222. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js → GrResponseErrorBanner-C8NGx8pE.js} +3 -3
  223. package/dist/components/GrResponseErrorBanner/chunks/{GrResponseErrorBanner-Cdu9ekK9.js.map → GrResponseErrorBanner-C8NGx8pE.js.map} +1 -1
  224. package/dist/components/GrResponseErrorBanner/index.js +2 -2
  225. package/dist/components/GrSegmented/chunks/{GrSegmented-C1y0UXpQ.js → GrSegmented-CTd3n4PA.js} +14 -11
  226. package/dist/components/GrSegmented/chunks/GrSegmented-CTd3n4PA.js.map +1 -0
  227. package/dist/components/GrSegmented/index.js +2 -2
  228. package/dist/components/GrSelect/chunks/{GrSelect-BVCmitqa.js → GrSelect-Dn3FgJ3Z.js} +161 -75
  229. package/dist/components/GrSelect/chunks/GrSelect-Dn3FgJ3Z.js.map +1 -0
  230. package/dist/components/GrSelect/index.js +2 -2
  231. package/dist/components/GrSidebar/chunks/{GrSidebar-DkWozzwA.js → GrSidebar-cvnzBfj3.js} +7 -7
  232. package/dist/components/GrSidebar/chunks/GrSidebar-cvnzBfj3.js.map +1 -0
  233. package/dist/components/GrSidebar/index.js +2 -2
  234. package/dist/components/GrSkeleton/chunks/{GrSkeleton-DsN-_CDZ.js → GrSkeleton-BucA5F4J.js} +1 -1
  235. package/dist/components/GrSkeleton/chunks/GrSkeleton-BucA5F4J.js.map +1 -0
  236. package/dist/components/GrSkeleton/index.js +2 -2
  237. package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js +286 -0
  238. package/dist/components/GrSlider/chunks/GrSlider-CzzJ3bD-.js.map +1 -0
  239. package/dist/components/GrSlider/index.js +3 -0
  240. package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js +128 -0
  241. package/dist/components/GrStatistic/chunks/GrStatistic-gHiAwrX5.js.map +1 -0
  242. package/dist/components/GrStatistic/index.js +3 -0
  243. package/dist/components/GrSwitch/chunks/{GrSwitch-DAioyccZ.js → GrSwitch-CJdRvS0s.js} +16 -7
  244. package/dist/components/GrSwitch/chunks/GrSwitch-CJdRvS0s.js.map +1 -0
  245. package/dist/components/GrSwitch/index.js +2 -2
  246. package/dist/components/GrTabPanels/chunks/{GrTabPanels-DbKybwe-.js → GrTabPanels-DeEMgb_y.js} +1 -1
  247. package/dist/components/GrTabPanels/chunks/{GrTabPanels-DbKybwe-.js.map → GrTabPanels-DeEMgb_y.js.map} +1 -1
  248. package/dist/components/GrTabPanels/index.js +2 -2
  249. package/dist/components/GrTable/chunks/{GrTable-Db3hRnKA.js → GrTable-sNvsA8wa.js} +24 -11
  250. package/dist/components/GrTable/chunks/GrTable-sNvsA8wa.js.map +1 -0
  251. package/dist/components/GrTable/index.js +2 -2
  252. package/dist/components/GrTabs/chunks/{GrTabs-DsLwWoRz.js → GrTabs-BqTak0SR.js} +3 -3
  253. package/dist/components/GrTabs/chunks/GrTabs-BqTak0SR.js.map +1 -0
  254. package/dist/components/GrTabs/index.js +2 -2
  255. package/dist/components/GrTextarea/chunks/{GrTextarea-CKukGlNl.js → GrTextarea-DIYBAPpP.js} +2 -2
  256. package/dist/components/GrTextarea/chunks/GrTextarea-DIYBAPpP.js.map +1 -0
  257. package/dist/components/GrTextarea/index.js +2 -2
  258. package/dist/components/GrToaster/chunks/{GrToaster-L2cu6cSR.js → GrToaster-BVHjIHcM.js} +51 -10
  259. package/dist/components/GrToaster/chunks/GrToaster-BVHjIHcM.js.map +1 -0
  260. package/dist/components/GrToaster/index.js +1 -1
  261. package/dist/components/GrTooltip/chunks/{GrTooltip-BeyZ8ssR.js → GrTooltip-BMKH2lIx.js} +3 -3
  262. package/dist/components/GrTooltip/chunks/GrTooltip-BMKH2lIx.js.map +1 -0
  263. package/dist/components/GrTooltip/index.js +1 -1
  264. package/dist/components/GrTree/chunks/{GrTree-B2_yW6g1.js → GrTree-_12ChXRQ.js} +3 -3
  265. package/dist/components/GrTree/chunks/GrTree-_12ChXRQ.js.map +1 -0
  266. package/dist/components/GrTree/index.js +1 -1
  267. package/dist/components/GrTreeSelect/chunks/{GrTreeSelect-0aM62xyu.js → GrTreeSelect-CdaLG7Xq.js} +10 -10
  268. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-CdaLG7Xq.js.map +1 -0
  269. package/dist/components/GrTreeSelect/index.js +2 -2
  270. package/dist/composables/useToast.js +3 -1
  271. package/dist/composables/useToast.js.map +1 -1
  272. package/dist/directives/loading.js +1 -1
  273. package/dist/granular-provider-node.js +6 -6
  274. package/dist/granular-provider-node.js.map +1 -1
  275. package/dist/granular-provider.js +1 -1
  276. package/dist/i18n/all.js +1 -1
  277. package/dist/i18n/index.js +1 -1
  278. package/dist/index.js +111 -93
  279. package/dist/index.js.map +1 -1
  280. package/dist/styles/base.css +2 -2
  281. package/dist/styles/index.css +6 -3
  282. package/dist/styles/preflight.css +3 -3
  283. package/dist/styles/themes/dark.css +52 -40
  284. package/dist/styles/themes/light.css +70 -45
  285. package/dist/styles/tokens.css +20 -20
  286. package/dist/types/src/components/GrAlert/GrAlert.vue.d.ts +26 -14
  287. package/dist/types/src/components/GrAlert/defaults.d.ts +17 -0
  288. package/dist/types/src/components/GrAlert/grAlertStyles.d.ts +55 -0
  289. package/dist/types/src/components/GrAlert/index.d.ts +4 -1
  290. package/dist/types/src/components/GrAutocomplete/GrAutocomplete.vue.d.ts +153 -0
  291. package/dist/types/src/components/GrAutocomplete/config.d.ts +1 -0
  292. package/dist/types/src/components/GrAutocomplete/defaults.d.ts +15 -0
  293. package/dist/types/src/components/GrAutocomplete/grAutocompleteStyles.d.ts +27 -0
  294. package/dist/types/src/components/GrAutocomplete/index.d.ts +6 -0
  295. package/dist/types/src/components/GrAutocomplete/safelist.d.ts +1 -0
  296. package/dist/types/src/components/GrAvatar/GrAvatar.vue.d.ts +1 -1
  297. package/dist/types/src/components/GrBadge/GrBadge.vue.d.ts +7 -7
  298. package/dist/types/src/components/GrBadge/defaults.d.ts +15 -0
  299. package/dist/types/src/components/GrBadge/index.d.ts +1 -0
  300. package/dist/types/src/components/GrBadgeWrap/GrBadgeWrap.vue.d.ts +1 -1
  301. package/dist/types/src/components/GrButton/GrButton.vue.d.ts +12 -12
  302. package/dist/types/src/components/GrButton/defaults.d.ts +25 -0
  303. package/dist/types/src/components/GrButton/grButtonStyles.d.ts +2 -2
  304. package/dist/types/src/components/GrButton/index.d.ts +1 -0
  305. package/dist/types/src/components/GrCheckbox/GrCheckbox.vue.d.ts +4 -4
  306. package/dist/types/src/components/GrCollapse/GrCollapse.vue.d.ts +2 -2
  307. package/dist/types/src/components/GrCollapse/GrCollapseItem.vue.d.ts +1 -1
  308. package/dist/types/src/components/GrCommandPalette/GrCommandPalette.vue.d.ts +128 -0
  309. package/dist/types/src/components/GrCommandPalette/config.d.ts +1 -0
  310. package/dist/types/src/components/GrCommandPalette/filtering.d.ts +35 -0
  311. package/dist/types/src/components/GrCommandPalette/grCommandPaletteStyles.d.ts +20 -0
  312. package/dist/types/src/components/GrCommandPalette/hotkey.d.ts +23 -0
  313. package/dist/types/src/components/GrCommandPalette/index.d.ts +6 -0
  314. package/dist/types/src/components/GrCommandPalette/safelist.d.ts +1 -0
  315. package/dist/types/src/components/GrConfigProvider/GrConfigProvider.vue.d.ts +59 -0
  316. package/dist/types/src/components/GrConfigProvider/config.d.ts +1 -0
  317. package/dist/types/src/components/GrConfigProvider/context.d.ts +131 -0
  318. package/dist/types/src/components/GrConfigProvider/index.d.ts +5 -0
  319. package/dist/types/src/components/GrConfirmDialog/GrConfirmDialog.vue.d.ts +2 -2
  320. package/dist/types/src/components/GrDataTable/GrDataTable.vue.d.ts +20 -0
  321. package/dist/types/src/components/GrDialog/GrDialog.vue.d.ts +1 -1
  322. package/dist/types/src/components/GrDialogService/store.d.ts +18 -0
  323. package/dist/types/src/components/GrDrawer/GrDrawer.vue.d.ts +1 -1
  324. package/dist/types/src/components/GrDropdown/GrDropdown.vue.d.ts +1 -1
  325. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenu.vue.d.ts +1 -1
  326. package/dist/types/src/components/GrDropdownMenu/GrDropdownMenuItem.vue.d.ts +1 -1
  327. package/dist/types/src/components/GrFileUpload/GrFileUpload.vue.d.ts +3 -3
  328. package/dist/types/src/components/GrForm/GrForm.vue.d.ts +93 -0
  329. package/dist/types/src/components/GrForm/config.d.ts +1 -0
  330. package/dist/types/src/components/GrForm/context.d.ts +27 -0
  331. package/dist/types/src/components/GrForm/index.d.ts +6 -0
  332. package/dist/types/src/components/GrForm/validation.d.ts +52 -0
  333. package/dist/types/src/components/GrFormField/GrFormField.vue.d.ts +11 -1
  334. package/dist/types/src/components/GrFormFile/GrFormFile.vue.d.ts +4 -4
  335. package/dist/types/src/components/GrImageViewer/GrImageViewer.vue.d.ts +3 -3
  336. package/dist/types/src/components/GrInput/GrInput.vue.d.ts +12 -12
  337. package/dist/types/src/components/GrInput/defaults.d.ts +18 -0
  338. package/dist/types/src/components/GrInput/grInputStyles.d.ts +1 -1
  339. package/dist/types/src/components/GrInput/index.d.ts +1 -0
  340. package/dist/types/src/components/GrInputTag/GrInputTag.vue.d.ts +3 -3
  341. package/dist/types/src/components/GrLink/GrLink.vue.d.ts +3 -3
  342. package/dist/types/src/components/GrLink/grLinkStyles.d.ts +3 -3
  343. package/dist/types/src/components/GrModal/grModalStyles.d.ts +1 -1
  344. package/dist/types/src/components/GrNumberInput/GrNumberInput.vue.d.ts +10 -10
  345. package/dist/types/src/components/GrNumberInput/defaults.d.ts +14 -0
  346. package/dist/types/src/components/GrNumberInput/index.d.ts +1 -0
  347. package/dist/types/src/components/GrPagination/GrPagination.vue.d.ts +18 -0
  348. package/dist/types/src/components/GrPromptDialog/GrPromptDialog.vue.d.ts +4 -4
  349. package/dist/types/src/components/GrRadio/GrRadio.vue.d.ts +5 -5
  350. package/dist/types/src/components/GrRadio/defaults.d.ts +14 -0
  351. package/dist/types/src/components/GrRadio/grRadioStyles.d.ts +3 -3
  352. package/dist/types/src/components/GrRadio/index.d.ts +1 -0
  353. package/dist/types/src/components/GrRadioGroup/GrRadioGroup.vue.d.ts +4 -4
  354. package/dist/types/src/components/GrRadioGroup/defaults.d.ts +14 -0
  355. package/dist/types/src/components/GrRadioGroup/index.d.ts +1 -0
  356. package/dist/types/src/components/GrRating/GrRating.vue.d.ts +124 -0
  357. package/dist/types/src/components/GrRating/config.d.ts +1 -0
  358. package/dist/types/src/components/GrRating/defaults.d.ts +14 -0
  359. package/dist/types/src/components/GrRating/grRatingStyles.d.ts +21 -0
  360. package/dist/types/src/components/GrRating/index.d.ts +6 -0
  361. package/dist/types/src/components/GrRating/safelist.d.ts +1 -0
  362. package/dist/types/src/components/GrResponseErrorBanner/GrUploadErrorBanner.vue.d.ts +1 -1
  363. package/dist/types/src/components/GrSegmented/GrSegmented.vue.d.ts +7 -7
  364. package/dist/types/src/components/GrSegmented/defaults.d.ts +15 -0
  365. package/dist/types/src/components/GrSegmented/grSegmentedStyles.d.ts +1 -1
  366. package/dist/types/src/components/GrSegmented/index.d.ts +1 -0
  367. package/dist/types/src/components/GrSelect/GrSelect.vue.d.ts +57 -17
  368. package/dist/types/src/components/GrSelect/defaults.d.ts +17 -0
  369. package/dist/types/src/components/GrSelect/grSelectStyles.d.ts +3 -3
  370. package/dist/types/src/components/GrSelect/index.d.ts +1 -0
  371. package/dist/types/src/components/GrSidebar/GrSidebarItem.vue.d.ts +2 -2
  372. package/dist/types/src/components/GrSkeleton/GrSkeleton.vue.d.ts +1 -1
  373. package/dist/types/src/components/GrSlider/GrSlider.vue.d.ts +88 -0
  374. package/dist/types/src/components/GrSlider/config.d.ts +1 -0
  375. package/dist/types/src/components/GrSlider/defaults.d.ts +14 -0
  376. package/dist/types/src/components/GrSlider/grSliderStyles.d.ts +36 -0
  377. package/dist/types/src/components/GrSlider/index.d.ts +6 -0
  378. package/dist/types/src/components/GrSlider/safelist.d.ts +1 -0
  379. package/dist/types/src/components/GrStatistic/GrStatistic.vue.d.ts +116 -0
  380. package/dist/types/src/components/GrStatistic/config.d.ts +1 -0
  381. package/dist/types/src/components/GrStatistic/formatStatisticValue.d.ts +16 -0
  382. package/dist/types/src/components/GrStatistic/grStatisticStyles.d.ts +24 -0
  383. package/dist/types/src/components/GrStatistic/index.d.ts +6 -0
  384. package/dist/types/src/components/GrStatistic/safelist.d.ts +1 -0
  385. package/dist/types/src/components/GrSwitch/GrSwitch.vue.d.ts +4 -4
  386. package/dist/types/src/components/GrSwitch/defaults.d.ts +14 -0
  387. package/dist/types/src/components/GrSwitch/grSwitchStyles.d.ts +2 -2
  388. package/dist/types/src/components/GrSwitch/index.d.ts +1 -0
  389. package/dist/types/src/components/GrTable/GrTable.vue.d.ts +16 -0
  390. package/dist/types/src/components/GrTextarea/GrTextarea.vue.d.ts +5 -5
  391. package/dist/types/src/components/GrToaster/GrToaster.vue.d.ts +19 -2
  392. package/dist/types/src/components/GrToaster/index.d.ts +1 -1
  393. package/dist/types/src/components/GrTooltip/GrTooltip.vue.d.ts +1 -1
  394. package/dist/types/src/components/GrTreeSelect/GrTreeSelect.vue.d.ts +1 -1
  395. package/dist/types/src/components/GrTreeSelect/grTreeSelectStyles.d.ts +1 -1
  396. package/dist/types/src/composables/useToast.d.ts +24 -0
  397. package/dist/types/src/granular-provider/shared.d.ts +7 -0
  398. package/dist/types/src/i18n/messages/en.d.ts +74 -0
  399. package/dist/types/src/i18n/messages/es.d.ts +74 -0
  400. package/dist/types/src/i18n/messages/ru.d.ts +74 -0
  401. package/dist/types/src/index.d.ts +7 -0
  402. package/dist/web-types.json +1308 -271
  403. package/package.json +29 -1
  404. package/dist/chunks/config-1uSYl98Y2.js.map +0 -1
  405. package/dist/chunks/config-8Pcutu1j2.js.map +0 -1
  406. package/dist/chunks/config-B7IIWGt_2.js.map +0 -1
  407. package/dist/chunks/config-BIRO0vDJ.js.map +0 -1
  408. package/dist/chunks/config-BLHqZhy-2.js.map +0 -1
  409. package/dist/chunks/config-BOlr7qw7.js.map +0 -1
  410. package/dist/chunks/config-BUHuGBik.js.map +0 -1
  411. package/dist/chunks/config-BX1JTrkV2.js.map +0 -1
  412. package/dist/chunks/config-BXtAmU3s2.js.map +0 -1
  413. package/dist/chunks/config-C7NpDrfO.js.map +0 -1
  414. package/dist/chunks/config-CGHLoBlH.js.map +0 -1
  415. package/dist/chunks/config-ClhKPJvg.js.map +0 -1
  416. package/dist/chunks/config-Cpi9Mh2J.js.map +0 -1
  417. package/dist/chunks/config-CrG1XiE72.js.map +0 -1
  418. package/dist/chunks/config-DUcu1D682.js.map +0 -1
  419. package/dist/chunks/config-D_R56_gT.js.map +0 -1
  420. package/dist/chunks/config-DezDih8_.js.map +0 -1
  421. package/dist/chunks/config-JpHA4Xx02.js.map +0 -1
  422. package/dist/chunks/config-QaIc_gRa.js.map +0 -1
  423. package/dist/chunks/config-U4m9PSql.js.map +0 -1
  424. package/dist/chunks/config-eXB87DOi2.js.map +0 -1
  425. package/dist/chunks/config-eYLZYOUS2.js.map +0 -1
  426. package/dist/chunks/config-ipvU0lzP2.js.map +0 -1
  427. package/dist/chunks/config-xR4XVmcy.js.map +0 -1
  428. package/dist/chunks/en-CfkDa4GX.js.map +0 -1
  429. package/dist/chunks/es-FkgECuCm.js.map +0 -1
  430. package/dist/chunks/grBadgeStyles-DrycBuKT.js.map +0 -1
  431. package/dist/chunks/grButtonStyles-C7Yga_Q1.js.map +0 -1
  432. package/dist/chunks/grModalStyles-DWd3i05Q.js.map +0 -1
  433. package/dist/chunks/grSelectStyles-CLK5hRd3.js.map +0 -1
  434. package/dist/chunks/grStyle-Blc9otAx.js.map +0 -1
  435. package/dist/chunks/ru-Bl8CxpEa.js.map +0 -1
  436. package/dist/chunks/shared-B6Ay2081.js +0 -174
  437. package/dist/chunks/shared-B6Ay2081.js.map +0 -1
  438. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js +0 -163
  439. package/dist/components/GrAlert/chunks/GrAlert-DPJSU_fG.js.map +0 -1
  440. package/dist/components/GrAvatar/chunks/GrAvatar-96CpTCq5.js.map +0 -1
  441. package/dist/components/GrBadge/chunks/GrBadge-B77XlaqE.js.map +0 -1
  442. package/dist/components/GrBadgeWrap/chunks/GrBadgeWrap-CcktMOdg.js.map +0 -1
  443. package/dist/components/GrBottomNav/chunks/GrBottomNav-usuMgG8_.js.map +0 -1
  444. package/dist/components/GrButton/chunks/GrButton-BlffdeJr.js.map +0 -1
  445. package/dist/components/GrCard/chunks/GrCard-DUNMkuHW.js.map +0 -1
  446. package/dist/components/GrCheckbox/chunks/GrCheckbox-DJhzZZdO.js.map +0 -1
  447. package/dist/components/GrCollapse/chunks/GrCollapse-CPPLh_xU.js.map +0 -1
  448. package/dist/components/GrConfirmDialog/chunks/GrConfirmDialog-D8CkOtqv.js.map +0 -1
  449. package/dist/components/GrDataTable/chunks/GrDataTable-Ds5OeGat.js.map +0 -1
  450. package/dist/components/GrDialog/chunks/GrDialog-Ctucxju9.js.map +0 -1
  451. package/dist/components/GrDialogService/chunks/GrDialogService-CU1Fbonc.js.map +0 -1
  452. package/dist/components/GrDivider/chunks/GrDivider-5bcE-BB4.js.map +0 -1
  453. package/dist/components/GrDrawer/chunks/GrDrawer-SLGKCY2A.js.map +0 -1
  454. package/dist/components/GrDropdownMenu/chunks/GrDropdownMenu--g9Vofcq.js.map +0 -1
  455. package/dist/components/GrEmptyState/chunks/GrEmptyState-CA3BiTV7.js.map +0 -1
  456. package/dist/components/GrFileUpload/chunks/GrFileUpload-DvWPpiJS.js.map +0 -1
  457. package/dist/components/GrFormField/chunks/GrFormField-DnfMHx_U.js.map +0 -1
  458. package/dist/components/GrFormFile/chunks/GrFormFile-CXcqqdvV.js.map +0 -1
  459. package/dist/components/GrFormSection/chunks/GrFormSection-Ce21jcgo.js.map +0 -1
  460. package/dist/components/GrInput/chunks/GrInput-B8dd3JaA.js.map +0 -1
  461. package/dist/components/GrInputTag/chunks/GrInputTag-zMgFqp2g.js.map +0 -1
  462. package/dist/components/GrKbd/chunks/GrKbd-BEoYxWhE.js.map +0 -1
  463. package/dist/components/GrList/chunks/GrList-Dx772Ns4.js.map +0 -1
  464. package/dist/components/GrLoading/chunks/GrLoading--X_7rdbb.js.map +0 -1
  465. package/dist/components/GrNavbar/chunks/GrNavbar-DW3MiIIf.js.map +0 -1
  466. package/dist/components/GrNumberInput/chunks/GrNumberInput-DxCEvL7V.js.map +0 -1
  467. package/dist/components/GrPagination/chunks/GrPagination-mlyfLjQY.js.map +0 -1
  468. package/dist/components/GrProgressBar/chunks/GrProgressBar-CC3z-Zqp.js.map +0 -1
  469. package/dist/components/GrPromptDialog/chunks/GrPromptDialog-C-_BMNuY.js.map +0 -1
  470. package/dist/components/GrRadio/chunks/GrRadio-Dr-pvs_9.js.map +0 -1
  471. package/dist/components/GrRadioGroup/chunks/GrRadioGroup-nOdvfV_g.js.map +0 -1
  472. package/dist/components/GrSegmented/chunks/GrSegmented-C1y0UXpQ.js.map +0 -1
  473. package/dist/components/GrSelect/chunks/GrSelect-BVCmitqa.js.map +0 -1
  474. package/dist/components/GrSidebar/chunks/GrSidebar-DkWozzwA.js.map +0 -1
  475. package/dist/components/GrSkeleton/chunks/GrSkeleton-DsN-_CDZ.js.map +0 -1
  476. package/dist/components/GrSwitch/chunks/GrSwitch-DAioyccZ.js.map +0 -1
  477. package/dist/components/GrTable/chunks/GrTable-Db3hRnKA.js.map +0 -1
  478. package/dist/components/GrTabs/chunks/GrTabs-DsLwWoRz.js.map +0 -1
  479. package/dist/components/GrTextarea/chunks/GrTextarea-CKukGlNl.js.map +0 -1
  480. package/dist/components/GrToaster/chunks/GrToaster-L2cu6cSR.js.map +0 -1
  481. package/dist/components/GrTooltip/chunks/GrTooltip-BeyZ8ssR.js.map +0 -1
  482. package/dist/components/GrTree/chunks/GrTree-B2_yW6g1.js.map +0 -1
  483. package/dist/components/GrTreeSelect/chunks/GrTreeSelect-0aM62xyu.js.map +0 -1
  484. package/dist/chunks/{config-8Pcutu1j2.js → config-8Pcutu1j.js} +0 -0
  485. package/dist/chunks/{config-BLHqZhy-2.js → config-BLHqZhy-.js} +0 -0
  486. package/dist/chunks/{config-BUHuGBik.js → config-BUHuGBik2.js} +0 -0
  487. package/dist/chunks/{config-BX1JTrkV2.js → config-BX1JTrkV.js} +0 -0
  488. package/dist/chunks/{config-BXtAmU3s2.js → config-BXtAmU3s.js} +0 -0
  489. package/dist/chunks/{config-CGHLoBlH.js → config-CGHLoBlH2.js} +0 -0
  490. package/dist/chunks/{config-Cpi9Mh2J.js → config-Dqy0rPPO2.js} +1 -1
  491. /package/dist/chunks/{config-JpHA4Xx02.js → config-JpHA4Xx0.js} +0 -0
  492. /package/dist/chunks/{config-QaIc_gRa.js → config-QaIc_gRa2.js} +0 -0
  493. /package/dist/chunks/{config-U4m9PSql.js → config-U4m9PSql2.js} +0 -0
  494. /package/dist/chunks/{config-eXB87DOi2.js → config-eXB87DOi.js} +0 -0
  495. /package/dist/chunks/{config-ipvU0lzP2.js → config-ipvU0lzP.js} +0 -0
  496. /package/dist/chunks/{config-xR4XVmcy.js → config-xR4XVmcy2.js} +0 -0
@@ -23,12 +23,12 @@ type __VLS_Slots = {} & {
23
23
  default?: (props: typeof __VLS_15) => any;
24
24
  };
25
25
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
26
- variant: string;
27
- tone: string;
28
- size: string;
26
+ variant: undefined;
27
+ tone: undefined;
28
+ size: undefined;
29
29
  loading: boolean;
30
30
  disabled: boolean;
31
- square: boolean;
31
+ square: undefined;
32
32
  type: string;
33
33
  ariaLabel: undefined;
34
34
  as: undefined;
@@ -37,12 +37,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
37
37
  rel: undefined;
38
38
  external: boolean;
39
39
  }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
40
- variant: string;
41
- tone: string;
42
- size: string;
40
+ variant: undefined;
41
+ tone: undefined;
42
+ size: undefined;
43
43
  loading: boolean;
44
44
  disabled: boolean;
45
- square: boolean;
45
+ square: undefined;
46
46
  type: string;
47
47
  ariaLabel: undefined;
48
48
  as: undefined;
@@ -53,15 +53,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
53
53
  }>>> & Readonly<{}>, {
54
54
  tone: GrButtonTone;
55
55
  variant: GrButtonVariant;
56
- type: "button" | "submit" | "reset";
57
- square: boolean;
58
56
  size: GrButtonSize;
57
+ square: boolean;
58
+ type: "button" | "submit" | "reset";
59
+ target: string;
60
+ href: string;
59
61
  loading: boolean;
60
62
  disabled: boolean;
61
63
  ariaLabel: string;
62
64
  as: string | Component;
63
- href: string;
64
- target: string;
65
65
  rel: string;
66
66
  external: boolean;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,25 @@
1
+ import type { GrButtonSize, GrButtonTone, GrButtonVariant } from './grButtonStyles';
2
+ /**
3
+ * Пропы `GrButton`, которые можно задать глобально через
4
+ * `<GrConfigProvider :component-defaults="{ GrButton: { … } }">`.
5
+ *
6
+ * Набор закрытый и осознанный: только оформление. `modelValue`, обработчики и
7
+ * всё, что относится к конкретному экземпляру, через конфиг настраиваться не
8
+ * должно — иначе получим глобальное состояние, которое ищется часами.
9
+ */
10
+ export interface GrButtonConfigurableProps {
11
+ variant: GrButtonVariant;
12
+ tone: GrButtonTone;
13
+ size: GrButtonSize;
14
+ square: boolean;
15
+ }
16
+ /**
17
+ * Регистрация контракта в открытом реестре провайдера. Живёт здесь, а не в
18
+ * `GrConfigProvider`, чтобы провайдер не знал про конкретные компоненты: тип
19
+ * приезжает к потребителю ровно тогда, когда он импортирует сам `GrButton`.
20
+ */
21
+ declare module '../GrConfigProvider/context' {
22
+ interface GrComponentDefaultsRegistry {
23
+ GrButton: GrButtonConfigurableProps;
24
+ }
25
+ }
@@ -22,8 +22,8 @@ export type GrButtonToneTokens = {
22
22
  borderHover: string;
23
23
  borderActive: string;
24
24
  };
25
- export declare const base = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed";
26
- export declare const grButtonBaseClass = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] disabled:opacity-50 disabled:cursor-not-allowed";
25
+ export declare const base = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] disabled:opacity-50 disabled:cursor-not-allowed";
26
+ export declare const grButtonBaseClass = "inline-flex items-center justify-center gap-2 select-none whitespace-nowrap rounded-md transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--gr-ring)] disabled:opacity-50 disabled:cursor-not-allowed";
27
27
  export declare const sizes: Record<GrButtonSize, string>;
28
28
  export declare const squareSizes: Record<GrButtonSize, string>;
29
29
  export declare const tones: Record<GrButtonTone, GrButtonToneTokens>;
@@ -1,6 +1,7 @@
1
1
  export { default } from './GrButton.vue';
2
2
  export { default as GrButton } from './GrButton.vue';
3
3
  export { grButtonConfig } from './config';
4
+ export type { GrButtonConfigurableProps } from './defaults';
4
5
  export type { GrButtonSize, GrButtonTone, GrButtonVariant } from './grButtonStyles';
5
6
  export { grButtonClass } from './grButtonStyles';
6
7
  export { grButtonClassTokens, grButtonSafelist } from './safelist';
@@ -38,12 +38,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
38
38
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
39
39
  }>, {
40
40
  form: string;
41
- value: string;
41
+ id: string;
42
+ name: string;
43
+ disabled: boolean;
42
44
  modelValue: boolean;
45
+ value: string;
43
46
  required: boolean;
44
- disabled: boolean;
45
- name: string;
46
- id: string;
47
47
  indeterminate: boolean;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
49
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -31,11 +31,11 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
31
31
  disabled: boolean;
32
32
  divided: boolean;
33
33
  }>>> & Readonly<{
34
- "onUpdate:modelValue"?: ((value: GrCollapseModelValue) => any) | undefined;
35
34
  onChange?: ((value: GrCollapseModelValue) => any) | undefined;
35
+ "onUpdate:modelValue"?: ((value: GrCollapseModelValue) => any) | undefined;
36
36
  }>, {
37
- modelValue: GrCollapseValue | GrCollapseValue[];
38
37
  disabled: boolean;
38
+ modelValue: GrCollapseValue | GrCollapseValue[];
39
39
  accordion: boolean;
40
40
  divided: boolean;
41
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
27
27
  disabled: boolean;
28
28
  }>>> & Readonly<{}>, {
29
29
  title: string;
30
- disabled: boolean;
31
30
  name: GrCollapseValue;
31
+ disabled: boolean;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
33
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
34
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,128 @@
1
+ import { type GrCommandFilter, type GrCommandItem } from './filtering';
2
+ import { type GrCommandPaletteSize } from './grCommandPaletteStyles';
3
+ export type { GrCommandFilter, GrCommandGroup, GrCommandItem } from './filtering';
4
+ export type { GrCommandPaletteSize } from './grCommandPaletteStyles';
5
+ /**
6
+ * Публичный GR-примитив «Command palette» (⌘K) — модальный поиск по командам
7
+ * приложения с группировкой, подсказками сочетаний и клавиатурной навигацией.
8
+ *
9
+ * A11y: WAI-ARIA combobox поверх модалки — `role="combobox"` на поле ввода,
10
+ * `role="listbox"` на списке, `aria-activedescendant` на активной команде
11
+ * (фокус остаётся в поле). Esc, фокус-ловушка и блокировка скролла приходят
12
+ * из `GrModal`.
13
+ *
14
+ * Открытие по глобальному сочетанию (`hotkey`, по умолчанию `mod+k` — Cmd на
15
+ * macOS, Ctrl на прочих) компонент берёт на себя; передайте `hotkey: null`,
16
+ * чтобы управлять открытием только через `v-model`.
17
+ */
18
+ export interface GrCommandPaletteProps {
19
+ /** Открыта ли палитра. */
20
+ modelValue: boolean;
21
+ /** Плоский список команд; группировка — по полю `group` самой команды. */
22
+ items?: GrCommandItem[];
23
+ placeholder?: string;
24
+ size?: GrCommandPaletteSize;
25
+ /** Глобальное сочетание открытия. `null` — не вешать слушатель. */
26
+ hotkey?: string | null;
27
+ /** Локальная фильтрация по запросу. `false` — фильтрует владелец по событию `search`. */
28
+ filterable?: boolean;
29
+ /** Кастомный матчер локальной фильтрации. */
30
+ filter?: GrCommandFilter;
31
+ /** Внешне управляемое состояние загрузки (для remote-поиска). */
32
+ loading?: boolean;
33
+ /** Закрывать палитру после выбора команды. */
34
+ closeOnSelect?: boolean;
35
+ /** Максимальная высота списка, px. */
36
+ maxHeight?: number;
37
+ /** Показывать подсказку сочетания в поле ввода. */
38
+ showHotkeyHint?: boolean;
39
+ emptyText?: string;
40
+ ariaLabel?: string;
41
+ }
42
+ declare var __VLS_16: {
43
+ item: GrCommandItem;
44
+ active: boolean;
45
+ }, __VLS_24: {
46
+ query: string;
47
+ }, __VLS_26: {};
48
+ type __VLS_Slots = {} & {
49
+ item?: (props: typeof __VLS_16) => any;
50
+ } & {
51
+ empty?: (props: typeof __VLS_24) => any;
52
+ } & {
53
+ footer?: (props: typeof __VLS_26) => any;
54
+ };
55
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrCommandPaletteProps>, {
56
+ items: undefined;
57
+ placeholder: undefined;
58
+ size: string;
59
+ hotkey: string;
60
+ filterable: boolean;
61
+ filter: undefined;
62
+ loading: boolean;
63
+ closeOnSelect: boolean;
64
+ maxHeight: number;
65
+ showHotkeyHint: boolean;
66
+ emptyText: undefined;
67
+ ariaLabel: undefined;
68
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
+ "update:modelValue": (value: boolean) => void;
70
+ select: (item: GrCommandItem) => void;
71
+ search: (query: string) => void;
72
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<GrCommandPaletteProps>, {
73
+ items: undefined;
74
+ placeholder: undefined;
75
+ size: string;
76
+ hotkey: string;
77
+ filterable: boolean;
78
+ filter: undefined;
79
+ loading: boolean;
80
+ closeOnSelect: boolean;
81
+ maxHeight: number;
82
+ showHotkeyHint: boolean;
83
+ emptyText: undefined;
84
+ ariaLabel: undefined;
85
+ }>>> & Readonly<{
86
+ onSearch?: ((query: string) => any) | undefined;
87
+ onSelect?: ((item: GrCommandItem) => any) | undefined;
88
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
89
+ }>, {
90
+ size: GrCommandPaletteSize;
91
+ filter: GrCommandFilter;
92
+ loading: boolean;
93
+ maxHeight: number;
94
+ placeholder: string;
95
+ ariaLabel: string;
96
+ filterable: boolean;
97
+ closeOnSelect: boolean;
98
+ items: GrCommandItem[];
99
+ hotkey: string | null;
100
+ showHotkeyHint: boolean;
101
+ emptyText: string;
102
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
103
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
104
+ declare const _default: typeof __VLS_export;
105
+ export default _default;
106
+ type __VLS_TypePropsToOption<T> = {
107
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
108
+ type: import('vue').PropType<Required<T>[K]>;
109
+ } : {
110
+ type: import('vue').PropType<T[K]>;
111
+ required: true;
112
+ };
113
+ };
114
+ type __VLS_WithDefaults<P, D> = {
115
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
116
+ default: D[K];
117
+ }> : P[K];
118
+ };
119
+ type __VLS_WithSlots<T, S> = T & {
120
+ new (): {
121
+ $slots: S;
122
+ };
123
+ };
124
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
125
+ [K in keyof T]: T[K];
126
+ } : {
127
+ [K in keyof T as K]: T[K];
128
+ }) & {};
@@ -0,0 +1 @@
1
+ export declare const grCommandPaletteConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrCommandPalette">;
@@ -0,0 +1,35 @@
1
+ /** Команда палитры. `id` обязателен — он же ключ рендера и цель `aria-activedescendant`. */
2
+ export type GrCommandItem = {
3
+ id: string;
4
+ label: string;
5
+ /** Пояснение под меткой. */
6
+ description?: string;
7
+ /** UnoCSS-класс иконки (например `i-lucide-file-plus`). */
8
+ icon?: string;
9
+ /** Подсказка сочетания клавиш — массив клавиш, каждая рисуется отдельным `GrKbd`. */
10
+ shortcut?: string[];
11
+ /** Заголовок группы, под которой команда показывается в списке. */
12
+ group?: string;
13
+ /** Дополнительные слова для поиска (синонимы, транслитерация). */
14
+ keywords?: string[];
15
+ disabled?: boolean;
16
+ };
17
+ /** Команды, сгруппированные для рендера: порядок групп — порядок первого вхождения. */
18
+ export type GrCommandGroup = {
19
+ /** `undefined` — команды без группы (рендерятся без заголовка). */
20
+ name: string | undefined;
21
+ items: GrCommandItem[];
22
+ };
23
+ export type GrCommandFilter = (item: GrCommandItem, query: string) => boolean;
24
+ /**
25
+ * Матчер по умолчанию: подстрока (без учёта регистра) в метке, описании,
26
+ * названии группы или ключевых словах.
27
+ */
28
+ export declare function matchCommandItem(item: GrCommandItem, query: string): boolean;
29
+ export declare function filterCommandItems(items: GrCommandItem[], query: string, filter?: GrCommandFilter): GrCommandItem[];
30
+ /**
31
+ * Раскладывает плоский список по группам, сохраняя порядок первого появления
32
+ * группы. Команды без `group` собираются в единственную безымянную группу,
33
+ * которая остаётся на своём месте в общем порядке.
34
+ */
35
+ export declare function groupCommandItems(items: GrCommandItem[]): GrCommandGroup[];
@@ -0,0 +1,20 @@
1
+ export type GrCommandPaletteSize = 'md' | 'lg' | 'xl';
2
+ /**
3
+ * Кастомизация через CSS-переменные:
4
+ *
5
+ * - `--gr-command-active-bg` — фон активной (подсвеченной) команды.
6
+ * - `--gr-command-list-max-height` — максимальная высота списка (иначе — проп `maxHeight`).
7
+ */
8
+ export declare const commandPaletteModalSizeBySize: Record<GrCommandPaletteSize, 'md' | 'lg' | 'xl'>;
9
+ export declare const commandSearchRowClass = "flex items-center gap-2 border-b border-[var(--gr-brd)] px-4";
10
+ export declare const commandSearchInputClass = "min-w-0 flex-1 bg-transparent py-3.5 text-[15px] text-[var(--gr-fg)] placeholder:text-[var(--gr-muted-fg)] focus:outline-none";
11
+ export declare const commandGroupLabelClass = "px-3 pb-1 pt-3 text-[11px] font-medium uppercase tracking-wide text-[var(--gr-muted-fg)]";
12
+ export declare const commandItemBaseClass = "flex w-full items-center gap-3 rounded-[10px] px-3 py-2 text-left text-[14px] text-[var(--gr-fg)]";
13
+ export declare const commandItemActiveClass = "bg-[var(--gr-command-active-bg,color-mix(in_srgb,var(--gr-muted)_45%,transparent))]";
14
+ export declare const commandItemDisabledClass = "cursor-not-allowed opacity-50";
15
+ export declare function commandItemClass(options: {
16
+ active: boolean;
17
+ disabled: boolean;
18
+ }): string;
19
+ export declare const commandEmptyClass = "px-4 py-10 text-center text-[13px] text-[var(--gr-muted-fg)]";
20
+ export declare const commandFooterClass = "flex items-center gap-3 border-t border-[var(--gr-brd)] px-4 py-2 text-[11px] text-[var(--gr-muted-fg)]";
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Разбор и матчинг сочетания открытия палитры.
3
+ *
4
+ * Директива `v-hotkey` здесь не подходит: ей нужен смонтированный элемент, а
5
+ * палитра в закрытом состоянии не рендерит ничего (весь UI живёт внутри
6
+ * `GrModal`, который скрыт). Поэтому — минимальный собственный матчер на
7
+ * `window`, с тем же синтаксисом комбинаций плюс токен `mod`.
8
+ */
9
+ export type ParsedCommandHotkey = {
10
+ key: string;
11
+ ctrl: boolean;
12
+ meta: boolean;
13
+ alt: boolean;
14
+ shift: boolean;
15
+ /** `mod` — Cmd на macOS, Ctrl на остальных платформах. */
16
+ mod: boolean;
17
+ };
18
+ export declare function parseCommandHotkey(combo: string): ParsedCommandHotkey | null;
19
+ /** macOS определяем по платформе — от неё зависит, чем является `mod`. */
20
+ export declare function isAppleDevice(): boolean;
21
+ export declare function matchesCommandHotkey(event: KeyboardEvent, hotkey: ParsedCommandHotkey, apple?: boolean): boolean;
22
+ /** Человекочитаемые клавиши для подсказки в поле ввода (`⌘` / `Ctrl`). */
23
+ export declare function formatCommandHotkey(hotkey: ParsedCommandHotkey, apple?: boolean): string[];
@@ -0,0 +1,6 @@
1
+ export { default } from './GrCommandPalette.vue';
2
+ export { default as GrCommandPalette } from './GrCommandPalette.vue';
3
+ export { grCommandPaletteConfig } from './config';
4
+ export { filterCommandItems, groupCommandItems, matchCommandItem, } from './filtering';
5
+ export type { GrCommandFilter, GrCommandGroup, GrCommandItem, GrCommandPaletteProps, GrCommandPaletteSize, } from './GrCommandPalette.vue';
6
+ export { grCommandPaletteSafelist } from './safelist';
@@ -0,0 +1 @@
1
+ export declare const grCommandPaletteSafelist: string[];
@@ -0,0 +1,59 @@
1
+ import { type GranularityI18nAdapter } from '../../i18n/adapter';
2
+ import { type GrComponentDefaults, type GrComponentSize } from './context';
3
+ export type { GrComponentDefaults, GrComponentSize } from './context';
4
+ type __VLS_Props = {
5
+ /** Дефолтный размер контролов для вложенных компонентов. */
6
+ size?: GrComponentSize;
7
+ /** Дефолтные пропсы по компонентам: `{ GrButton: { variant: 'secondary' } }`. */
8
+ componentDefaults?: GrComponentDefaults;
9
+ /** Адаптер переводов (fint-i18n-совместимый). Прокидывается вложенным компонентам. */
10
+ i18n?: GranularityI18nAdapter | null;
11
+ /** Тег обёртки. По умолчанию прозрачный `<div style="display:contents">`. */
12
+ tag?: string;
13
+ };
14
+ declare var __VLS_8: {};
15
+ type __VLS_Slots = {} & {
16
+ default?: (props: typeof __VLS_8) => any;
17
+ };
18
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
19
+ size: undefined;
20
+ componentDefaults: undefined;
21
+ i18n: undefined;
22
+ tag: string;
23
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
24
+ size: undefined;
25
+ componentDefaults: undefined;
26
+ i18n: undefined;
27
+ tag: string;
28
+ }>>> & Readonly<{}>, {
29
+ size: GrComponentSize;
30
+ componentDefaults: GrComponentDefaults;
31
+ tag: string;
32
+ i18n: GranularityI18nAdapter | null;
33
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
35
+ declare const _default: typeof __VLS_export;
36
+ export default _default;
37
+ type __VLS_TypePropsToOption<T> = {
38
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
39
+ type: import('vue').PropType<Required<T>[K]>;
40
+ } : {
41
+ type: import('vue').PropType<T[K]>;
42
+ required: true;
43
+ };
44
+ };
45
+ type __VLS_WithDefaults<P, D> = {
46
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
47
+ default: D[K];
48
+ }> : P[K];
49
+ };
50
+ type __VLS_WithSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
55
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
56
+ [K in keyof T]: T[K];
57
+ } : {
58
+ [K in keyof T as K]: T[K];
59
+ }) & {};
@@ -0,0 +1 @@
1
+ export declare const grConfigProviderConfig: import("@feugene/unocss-preset-granular").GranularComponentDescriptor<"GrConfigProvider">;
@@ -0,0 +1,131 @@
1
+ import { type ComputedRef, type InjectionKey } from 'vue';
2
+ /**
3
+ * Контекст `GrConfigProvider` — глобальные дефолты для вложенных GR-компонентов:
4
+ * размер контролов и per-component дефолтные пропсы.
5
+ *
6
+ * Компоненты читают его через {@link useGrConfig} (или хелперы ниже) и используют
7
+ * как fallback, когда соответствующий проп не задан на самом компоненте. Провайдер
8
+ * можно вкладывать — дочерний мержится поверх родительского.
9
+ */
10
+ /**
11
+ * Размеры, которыми оперирует провайдер. Это «размеры контролов» — общий
12
+ * знаменатель формных компонентов, а не объединение всех size-шкал пакета
13
+ * (у оверлеев есть свои `xl`/`full`, у слайдера нет `xs`).
14
+ */
15
+ export declare const GR_COMPONENT_SIZES: readonly ["xs", "sm", "md", "lg"];
16
+ export type GrComponentSize = typeof GR_COMPONENT_SIZES[number];
17
+ /**
18
+ * Открытый реестр компонентов, у которых есть настраиваемые через конфиг пропы.
19
+ *
20
+ * Пустой по умолчанию: каждый компонент дополняет его **из своей папки** через
21
+ * declaration merging (`GrButton/defaults.ts` и т. п.). Так провайдер не знает
22
+ * ни имён, ни типов конкретных компонентов — контракт объявляет тот, кто им
23
+ * владеет, а не общий модуль.
24
+ *
25
+ * Практическое следствие: реестр состоит ровно из тех компонентов, которые
26
+ * попали в граф типов потребителя. Импортировали только `GrButton` — в
27
+ * `componentDefaults` типизирована только кнопка, типы `GrBadge` в проект не
28
+ * приезжают.
29
+ *
30
+ * ```ts
31
+ * // GrButton/defaults.ts
32
+ * declare module '../GrConfigProvider/context' {
33
+ * interface GrComponentDefaultsRegistry {
34
+ * GrButton: GrButtonConfigurableProps
35
+ * }
36
+ * }
37
+ * ```
38
+ */
39
+ export interface GrComponentDefaultsRegistry {
40
+ }
41
+ /** Имя компонента, у которого есть настраиваемые через конфиг пропы. */
42
+ export type GrConfigurableComponent = keyof GrComponentDefaultsRegistry;
43
+ /**
44
+ * Дефолтные пропсы по имени компонента: `{ GrButton: { variant: 'secondary' } }`.
45
+ *
46
+ * Набор ключей закрыт реестром, а не `Record<string, unknown>`: через конфиг
47
+ * должны настраиваться только «оформительские» пропы. Пустить туда что угодно —
48
+ * значит разрешить задать глобальный `modelValue` или обработчик и получить баг,
49
+ * который ищется часами.
50
+ */
51
+ export type GrComponentDefaults = {
52
+ [TComponent in GrConfigurableComponent]?: Partial<GrComponentDefaultsRegistry[TComponent]>;
53
+ };
54
+ type GrDefaultsOf<TComponent extends GrConfigurableComponent> = Partial<GrComponentDefaultsRegistry[TComponent]>;
55
+ export interface GrConfigContext {
56
+ /** Дефолтный размер контролов (если проп `size` не задан на компоненте). */
57
+ size: ComputedRef<GrComponentSize | undefined>;
58
+ /** Дефолтные пропсы по компонентам. */
59
+ componentDefaults: ComputedRef<GrComponentDefaults>;
60
+ }
61
+ export declare const GR_CONFIG_KEY: InjectionKey<GrConfigContext>;
62
+ /** Возвращает ближайший `GrConfigProvider` или пустой конфиг, если провайдера нет. */
63
+ export declare function useGrConfig(): GrConfigContext;
64
+ /**
65
+ * Источник конфига для {@link resolveGrConfig}: сам контекст, `AppContext` или
66
+ * инстанс компонента — у двух последних читается `provides`.
67
+ */
68
+ export type GrConfigSource = GrConfigContext | {
69
+ provides?: Record<symbol | string, unknown>;
70
+ };
71
+ /**
72
+ * Конфиг там, где `inject` недоступен — вне `setup`: в директивах, императивных
73
+ * сервисах, утилитах. Порядок: явный контекст → `provides` источника → `inject`
74
+ * (если есть активный инстанс) → пустой конфиг.
75
+ *
76
+ * Важно понимать границу: `provides` у `AppContext` содержит только то, что
77
+ * роздано через `app.provide()`. Значения от `<GrConfigProvider>` живут в дереве
78
+ * компонентов, и достать их можно лишь оттуда, где это дерево ещё есть — то есть
79
+ * захватом в `setup`. Просто передать `appContext` в отрыве от дерева
80
+ * недостаточно; см. `SPEC-GrConfig-resolver.md`.
81
+ */
82
+ export declare function resolveGrConfig(source?: GrConfigSource | null): GrConfigContext;
83
+ export type UseGrComponentSizeOptions<TSize extends string> = {
84
+ /**
85
+ * Имя компонента, чтобы учесть точечный `componentDefaults[Component].size`.
86
+ * Без него читается только глобальный `size` провайдера.
87
+ */
88
+ component?: GrConfigurableComponent;
89
+ /** Размер, когда ни проп, ни конфиг ничего не дали. По умолчанию `md`. */
90
+ fallback?: TSize;
91
+ /**
92
+ * Размеры, которые компонент реально умеет. Значение из конфига вне этого
93
+ * списка игнорируется в пользу `fallback`.
94
+ *
95
+ * Обязателен для компонентов, у которых size-шкала уже общей (`GrSlider`,
96
+ * `GrRating`, `GrSwitch`, `GrLink`, `GrStatistic` не знают про `xs`): без него
97
+ * `<GrConfigProvider size="xs">` дал бы `sizeMap['xs'] === undefined`, то есть
98
+ * компонент без размерных классов — молча, без ошибки сборки.
99
+ */
100
+ supported?: readonly TSize[];
101
+ };
102
+ /** Сброс дедупликации предупреждений. Внутреннее API — нужно тестам. */
103
+ export declare function resetUnsupportedSizeWarnings(): void;
104
+ /**
105
+ * Эффективный размер компонента. Приоритет:
106
+ * локальный проп → `componentDefaults[Component].size` → глобальный `size`
107
+ * провайдера → `fallback`. Точечная настройка компонента должна побеждать
108
+ * общую — иначе `componentDefaults` нельзя было бы использовать как исключение
109
+ * из глобального правила.
110
+ *
111
+ * Передавайте `size` геттером, чтобы сохранить реактивность.
112
+ *
113
+ * Локальный проп не проверяется по `supported`: он уже сужен типом пропа самого
114
+ * компонента, и передать туда лишнее — явная ошибка вызывающего кода. Проверка
115
+ * нужна конфигу: это глобальный канал, который не знает, кто его читает.
116
+ */
117
+ export declare function useGrComponentSize<TSize extends string = GrComponentSize>(localSize: () => TSize | undefined, options?: UseGrComponentSizeOptions<TSize>): ComputedRef<TSize>;
118
+ /** Дефолтные пропсы конкретного компонента из ближайшего провайдера. */
119
+ export declare function useGrComponentDefaults<TComponent extends GrConfigurableComponent>(name: TComponent): ComputedRef<GrDefaultsOf<TComponent>>;
120
+ /**
121
+ * Эффективное значение «оформительского» пропа: локальный проп →
122
+ * `componentDefaults[Component][prop]` → собственный дефолт компонента.
123
+ *
124
+ * Обязательное условие на стороне компонента: у такого пропа в `withDefaults`
125
+ * должен стоять `undefined`, а «настоящий» дефолт — переехать сюда, в `fallback`.
126
+ * Иначе конфиг не сработает никогда: Vue отдаёт `props.x` уже с подставленным
127
+ * дефолтом, и отличить «пользователь передал значение» от «сработал дефолт»
128
+ * изнутри компонента невозможно.
129
+ */
130
+ export declare function useGrComponentProp<TComponent extends GrConfigurableComponent, TProp extends keyof GrDefaultsOf<TComponent>>(component: TComponent, prop: TProp, localValue: () => GrDefaultsOf<TComponent>[TProp], fallback: NonNullable<GrDefaultsOf<TComponent>[TProp]>): ComputedRef<NonNullable<GrDefaultsOf<TComponent>[TProp]>>;
131
+ export {};
@@ -0,0 +1,5 @@
1
+ export { default } from './GrConfigProvider.vue';
2
+ export { default as GrConfigProvider } from './GrConfigProvider.vue';
3
+ export type { GrComponentDefaults, GrComponentSize } from './GrConfigProvider.vue';
4
+ export { GR_COMPONENT_SIZES, GR_CONFIG_KEY, type GrComponentDefaultsRegistry, type GrConfigContext, type GrConfigSource, type GrConfigurableComponent, resolveGrConfig, useGrComponentDefaults, useGrComponentProp, useGrComponentSize, type UseGrComponentSizeOptions, useGrConfig, } from './context';
5
+ export { grConfigProviderConfig } from './config';
@@ -94,12 +94,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
94
94
  confirmDisabled: boolean;
95
95
  closeOnConfirm: boolean;
96
96
  }>>> & Readonly<{
97
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
98
97
  onCancel?: (() => any) | undefined;
98
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
99
99
  onConfirm?: (() => any) | undefined;
100
100
  }>, {
101
- title: string;
102
101
  size: GrDialogSize;
102
+ title: string;
103
103
  error: ResponseErrorInfo | null;
104
104
  closeOnBackdrop: boolean;
105
105
  closeOnEsc: boolean;
@@ -25,11 +25,29 @@ export interface GrDataTableProps<TRow extends Record<string, unknown> = Record<
25
25
  * `sort-change`. `rows` при этом должны приходить уже отсортированными.
26
26
  */
27
27
  externalSort?: boolean;
28
+ /**
29
+ * Выбор строк: добавляет ведущую колонку с чекбоксами (+ «выбрать все» в шапке).
30
+ * Выбранные ключи строк — через `v-model:selected`.
31
+ */
32
+ selectable?: boolean;
33
+ /** Контролируемый список выбранных ключей строк: `v-model:selected`. */
34
+ selected?: Array<string | number>;
35
+ /**
36
+ * Состояние загрузки: тело таблицы заменяется строкой-индикатором.
37
+ * `empty`-состояние при этом не показывается.
38
+ */
39
+ loading?: boolean;
40
+ /** Текст индикатора загрузки. i18n: fallback `gr.dataTable.loading`. */
41
+ loadingText?: string;
28
42
  density?: GrTableDensity;
29
43
  caption?: string;
30
44
  ariaLabel?: string;
31
45
  ariaLabelledby?: string;
32
46
  regionLabel?: string;
47
+ /** Прилипающий заголовок при вертикальном скролле (нужен `maxHeight`). */
48
+ stickyHeader?: boolean;
49
+ /** Максимальная высота таблицы (вертикальный скролл). Число — в пикселях. */
50
+ maxHeight?: string | number;
33
51
  }
34
52
  declare const __VLS_export: <TRow extends Record<string, unknown> = Record<string, unknown>>(__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<{
35
53
  props: import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & __VLS_PrettifyLocal<GrDataTableProps<TRow> & {
@@ -39,6 +57,7 @@ declare const __VLS_export: <TRow extends Record<string, unknown> = Record<strin
39
57
  key: string;
40
58
  dir: "asc" | "desc";
41
59
  }) => any) | undefined;
60
+ "onUpdate:selected"?: ((value: (string | number)[]) => any) | undefined;
42
61
  }> & (typeof globalThis extends {
43
62
  __VLS_PROPS_FALLBACK: infer P;
44
63
  } ? P : {});
@@ -62,6 +81,7 @@ declare const __VLS_export: <TRow extends Record<string, unknown> = Record<strin
62
81
  key: string;
63
82
  dir: "asc" | "desc";
64
83
  }): void;
84
+ (e: "update:selected", value: Array<string | number>): void;
65
85
  };
66
86
  }>) => import("vue").VNode & {
67
87
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
47
47
  }>>> & Readonly<{
48
48
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
49
49
  }>, {
50
- title: string;
51
50
  size: GrDialogSize;
51
+ title: string;
52
52
  closeOnBackdrop: boolean;
53
53
  closeOnEsc: boolean;
54
54
  showCloseButton: boolean;