@techzyapp/ui-library 1.0.27 → 1.0.29

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 (617) hide show
  1. package/dist/AdminRoot-9HGp3Mds.js +55 -0
  2. package/dist/AdminRoot-9HGp3Mds.js.map +1 -0
  3. package/dist/AdminRoot-D24UJ-4a.cjs +2 -0
  4. package/dist/AdminRoot-D24UJ-4a.cjs.map +1 -0
  5. package/dist/{Alert-rNjfqj2Z.js → Alert-CJono1TJ.js} +3 -3
  6. package/dist/{Alert-rNjfqj2Z.js.map → Alert-CJono1TJ.js.map} +1 -1
  7. package/dist/{Alert-DeGgilkH.cjs → Alert-VFQuuII6.cjs} +2 -2
  8. package/dist/{Alert-DeGgilkH.cjs.map → Alert-VFQuuII6.cjs.map} +1 -1
  9. package/dist/{AuthLayout-zAS3jlYc.js → AuthLayout-DOFYw_z5.js} +3 -3
  10. package/dist/{AuthLayout-zAS3jlYc.js.map → AuthLayout-DOFYw_z5.js.map} +1 -1
  11. package/dist/{AuthLayout-ChILVWZ-.cjs → AuthLayout-QAtW2GAT.cjs} +2 -2
  12. package/dist/{AuthLayout-ChILVWZ-.cjs.map → AuthLayout-QAtW2GAT.cjs.map} +1 -1
  13. package/dist/Avatar-DXNPg23a.js +90 -0
  14. package/dist/Avatar-DXNPg23a.js.map +1 -0
  15. package/dist/Avatar-DrV_F7Ex.cjs +2 -0
  16. package/dist/Avatar-DrV_F7Ex.cjs.map +1 -0
  17. package/dist/{AvatarGroup-Bnf_RSc9.cjs → AvatarGroup-CHesdo-M.cjs} +2 -2
  18. package/dist/{AvatarGroup-Bnf_RSc9.cjs.map → AvatarGroup-CHesdo-M.cjs.map} +1 -1
  19. package/dist/{AvatarGroup-Difz4lLR.js → AvatarGroup-CwlYqDCI.js} +2 -2
  20. package/dist/{AvatarGroup-Difz4lLR.js.map → AvatarGroup-CwlYqDCI.js.map} +1 -1
  21. package/dist/{Breadcrumbs-CGcpMlxm.cjs → Breadcrumbs-DCEHxpSi.cjs} +2 -2
  22. package/dist/{Breadcrumbs-CGcpMlxm.cjs.map → Breadcrumbs-DCEHxpSi.cjs.map} +1 -1
  23. package/dist/{Breadcrumbs-BJHKk0Sn.js → Breadcrumbs-XWU8tRvs.js} +3 -3
  24. package/dist/{Breadcrumbs-BJHKk0Sn.js.map → Breadcrumbs-XWU8tRvs.js.map} +1 -1
  25. package/dist/{Button-obe6rono.js → Button-CWMNNiia.js} +2 -2
  26. package/dist/{Button-obe6rono.js.map → Button-CWMNNiia.js.map} +1 -1
  27. package/dist/{Button-BZ_o-akc.cjs → Button-CusxDmfq.cjs} +2 -2
  28. package/dist/{Button-BZ_o-akc.cjs.map → Button-CusxDmfq.cjs.map} +1 -1
  29. package/dist/{Calendar-lfpNwivC.cjs → Calendar-BEQbZixA.cjs} +2 -2
  30. package/dist/{Calendar-lfpNwivC.cjs.map → Calendar-BEQbZixA.cjs.map} +1 -1
  31. package/dist/{Calendar-SCih0NtS.js → Calendar-Db3rr1VD.js} +3 -3
  32. package/dist/{Calendar-SCih0NtS.js.map → Calendar-Db3rr1VD.js.map} +1 -1
  33. package/dist/Card-CUUh4mlB.cjs +2 -0
  34. package/dist/Card-CUUh4mlB.cjs.map +1 -0
  35. package/dist/Card-MxYfQTOY.js +121 -0
  36. package/dist/Card-MxYfQTOY.js.map +1 -0
  37. package/dist/Checkbox-CTp1xFW7.cjs +2 -0
  38. package/dist/{Checkbox-fzJCwe0j.cjs.map → Checkbox-CTp1xFW7.cjs.map} +1 -1
  39. package/dist/Checkbox-DyKBIgVT.js +98 -0
  40. package/dist/{Checkbox-ZYOSBYRt.js.map → Checkbox-DyKBIgVT.js.map} +1 -1
  41. package/dist/{Chip-CYz4vxHm.cjs → Chip-D12KcV4_.cjs} +2 -2
  42. package/dist/{Chip-CYz4vxHm.cjs.map → Chip-D12KcV4_.cjs.map} +1 -1
  43. package/dist/{Chip-CQ4cYVl_.js → Chip-Zh1OB9nV.js} +2 -2
  44. package/dist/{Chip-CQ4cYVl_.js.map → Chip-Zh1OB9nV.js.map} +1 -1
  45. package/dist/{ChoiceCardGroup-pIOKIUI0.cjs → ChoiceCardGroup-BSagRbPI.cjs} +2 -2
  46. package/dist/{ChoiceCardGroup-pIOKIUI0.cjs.map → ChoiceCardGroup-BSagRbPI.cjs.map} +1 -1
  47. package/dist/{ChoiceCardGroup-D3HL7dHj.js → ChoiceCardGroup-CEniY_HJ.js} +2 -2
  48. package/dist/{ChoiceCardGroup-D3HL7dHj.js.map → ChoiceCardGroup-CEniY_HJ.js.map} +1 -1
  49. package/dist/{CodeBlock-DddGTLu1.js → CodeBlock-CkrTnpcj.js} +3 -3
  50. package/dist/{CodeBlock-DddGTLu1.js.map → CodeBlock-CkrTnpcj.js.map} +1 -1
  51. package/dist/{CodeBlock-H75dbOvg.cjs → CodeBlock-DAM7BkHK.cjs} +2 -2
  52. package/dist/{CodeBlock-H75dbOvg.cjs.map → CodeBlock-DAM7BkHK.cjs.map} +1 -1
  53. package/dist/{ColorPicker-CKc8k-Dp.cjs → ColorPicker-BcCozxIe.cjs} +2 -2
  54. package/dist/{ColorPicker-CKc8k-Dp.cjs.map → ColorPicker-BcCozxIe.cjs.map} +1 -1
  55. package/dist/{ColorPicker-Cw-2X6u9.js → ColorPicker-DqxVgUoD.js} +5 -5
  56. package/dist/{ColorPicker-Cw-2X6u9.js.map → ColorPicker-DqxVgUoD.js.map} +1 -1
  57. package/dist/{ColorPickerPanel-DQ4CFnGa.cjs → ColorPickerPanel-DAOESLCe.cjs} +2 -2
  58. package/dist/{ColorPickerPanel-DQ4CFnGa.cjs.map → ColorPickerPanel-DAOESLCe.cjs.map} +1 -1
  59. package/dist/{ColorPickerPanel-PYaF5wPL.js → ColorPickerPanel-DZjN8NNn.js} +2 -2
  60. package/dist/{ColorPickerPanel-PYaF5wPL.js.map → ColorPickerPanel-DZjN8NNn.js.map} +1 -1
  61. package/dist/{ColorRamp-DnlJNKfy.js → ColorRamp-DS5LVpRF.js} +3 -3
  62. package/dist/{ColorRamp-DnlJNKfy.js.map → ColorRamp-DS5LVpRF.js.map} +1 -1
  63. package/dist/{ColorRamp-AkY9gq6Y.cjs → ColorRamp-_KwlPQ-T.cjs} +2 -2
  64. package/dist/{ColorRamp-AkY9gq6Y.cjs.map → ColorRamp-_KwlPQ-T.cjs.map} +1 -1
  65. package/dist/{ConfigProvider-DL9fylMo.js → ConfigProvider-BbsI15b-.js} +2 -2
  66. package/dist/{ConfigProvider-DL9fylMo.js.map → ConfigProvider-BbsI15b-.js.map} +1 -1
  67. package/dist/{ConfigProvider-BicoaBLj.cjs → ConfigProvider-ByLHqXpv.cjs} +2 -2
  68. package/dist/{ConfigProvider-BicoaBLj.cjs.map → ConfigProvider-ByLHqXpv.cjs.map} +1 -1
  69. package/dist/{CopyButton-D6-kcVCA.js → CopyButton-D4s8aeSE.js} +3 -3
  70. package/dist/{CopyButton-D6-kcVCA.js.map → CopyButton-D4s8aeSE.js.map} +1 -1
  71. package/dist/{CopyButton-BqFGC-Ca.cjs → CopyButton-SFwjKod9.cjs} +2 -2
  72. package/dist/{CopyButton-BqFGC-Ca.cjs.map → CopyButton-SFwjKod9.cjs.map} +1 -1
  73. package/dist/{DatePicker-DP7yASzq.js → DatePicker-DGwjCHfd.js} +6 -6
  74. package/dist/{DatePicker-DP7yASzq.js.map → DatePicker-DGwjCHfd.js.map} +1 -1
  75. package/dist/{DatePicker-BvGFP2AL.cjs → DatePicker-ENbn2Vab.cjs} +2 -2
  76. package/dist/{DatePicker-BvGFP2AL.cjs.map → DatePicker-ENbn2Vab.cjs.map} +1 -1
  77. package/dist/{DateTimePicker-DOzft9kg.cjs → DateTimePicker-BQUmsFwX.cjs} +2 -2
  78. package/dist/{DateTimePicker-DOzft9kg.cjs.map → DateTimePicker-BQUmsFwX.cjs.map} +1 -1
  79. package/dist/{DateTimePicker-CzRduOFz.js → DateTimePicker-CwVkQiun.js} +9 -9
  80. package/dist/{DateTimePicker-CzRduOFz.js.map → DateTimePicker-CwVkQiun.js.map} +1 -1
  81. package/dist/DescriptionList-0qjKr6GN.js +176 -0
  82. package/dist/DescriptionList-0qjKr6GN.js.map +1 -0
  83. package/dist/DescriptionList-U5z2Faf4.cjs +2 -0
  84. package/dist/DescriptionList-U5z2Faf4.cjs.map +1 -0
  85. package/dist/{Dropdown-FfkmluRu.js → Dropdown--1mNTVZJ.js} +2 -2
  86. package/dist/{Dropdown-FfkmluRu.js.map → Dropdown--1mNTVZJ.js.map} +1 -1
  87. package/dist/{Dropdown-Ui7h2TGd.cjs → Dropdown-DNZ9S_zQ.cjs} +2 -2
  88. package/dist/{Dropdown-Ui7h2TGd.cjs.map → Dropdown-DNZ9S_zQ.cjs.map} +1 -1
  89. package/dist/EmptyState-B2_4BN4l.cjs +2 -0
  90. package/dist/EmptyState-B2_4BN4l.cjs.map +1 -0
  91. package/dist/EmptyState-DwT9_HW7.js +58 -0
  92. package/dist/EmptyState-DwT9_HW7.js.map +1 -0
  93. package/dist/ErrorBoundary-CYSOAQlB.cjs +2 -0
  94. package/dist/ErrorBoundary-CYSOAQlB.cjs.map +1 -0
  95. package/dist/ErrorBoundary-CsDHKYB4.js +163 -0
  96. package/dist/ErrorBoundary-CsDHKYB4.js.map +1 -0
  97. package/dist/FileCard-B9f9RoXS.js +149 -0
  98. package/dist/FileCard-B9f9RoXS.js.map +1 -0
  99. package/dist/FileCard-zuUYik-F.cjs +2 -0
  100. package/dist/FileCard-zuUYik-F.cjs.map +1 -0
  101. package/dist/FileUploader-Dh2zA50t.js +707 -0
  102. package/dist/FileUploader-Dh2zA50t.js.map +1 -0
  103. package/dist/FileUploader-Y8hiyIpp.cjs +2 -0
  104. package/dist/FileUploader-Y8hiyIpp.cjs.map +1 -0
  105. package/dist/{Flag-BM_2VJ1v.cjs → Flag-BpTQAgbD.cjs} +2 -2
  106. package/dist/{Flag-BM_2VJ1v.cjs.map → Flag-BpTQAgbD.cjs.map} +1 -1
  107. package/dist/{Flag-CzCEpB8E.js → Flag-CmDXvd7j.js} +2 -2
  108. package/dist/{Flag-CzCEpB8E.js.map → Flag-CmDXvd7j.js.map} +1 -1
  109. package/dist/FloatingPanel-BIC4WrFa.cjs +2 -0
  110. package/dist/FloatingPanel-BIC4WrFa.cjs.map +1 -0
  111. package/dist/FloatingPanel-CeSOtE_D.js +135 -0
  112. package/dist/FloatingPanel-CeSOtE_D.js.map +1 -0
  113. package/dist/{FullscreenToggle-HZQOIa21.js → FullscreenToggle-2IYIS5KF.js} +3 -3
  114. package/dist/{FullscreenToggle-HZQOIa21.js.map → FullscreenToggle-2IYIS5KF.js.map} +1 -1
  115. package/dist/{FullscreenToggle-BL0nBrsL.cjs → FullscreenToggle-CeGgw3z1.cjs} +2 -2
  116. package/dist/{FullscreenToggle-BL0nBrsL.cjs.map → FullscreenToggle-CeGgw3z1.cjs.map} +1 -1
  117. package/dist/{IconButton-B87ipBK3.cjs → IconButton-BNa0yLcv.cjs} +2 -2
  118. package/dist/{IconButton-B87ipBK3.cjs.map → IconButton-BNa0yLcv.cjs.map} +1 -1
  119. package/dist/{IconButton-CBp8QuTO.js → IconButton-GU3Ud4Zg.js} +2 -2
  120. package/dist/{IconButton-CBp8QuTO.js.map → IconButton-GU3Ud4Zg.js.map} +1 -1
  121. package/dist/List-9lUjapQ5.cjs +2 -0
  122. package/dist/List-9lUjapQ5.cjs.map +1 -0
  123. package/dist/List-CZwNGxuP.js +107 -0
  124. package/dist/List-CZwNGxuP.js.map +1 -0
  125. package/dist/{Loader-fffFnQqS.js → Loader-C1uaCtx6.js} +2 -2
  126. package/dist/{Loader-fffFnQqS.js.map → Loader-C1uaCtx6.js.map} +1 -1
  127. package/dist/{Loader-0Imnbael.cjs → Loader-Cpr9-OOZ.cjs} +2 -2
  128. package/dist/{Loader-0Imnbael.cjs.map → Loader-Cpr9-OOZ.cjs.map} +1 -1
  129. package/dist/Modal-DFeBHv-Q.cjs +2 -0
  130. package/dist/Modal-DFeBHv-Q.cjs.map +1 -0
  131. package/dist/Modal-DHP2R3K3.js +196 -0
  132. package/dist/Modal-DHP2R3K3.js.map +1 -0
  133. package/dist/MultiSelect-B-FPQ08c.js +219 -0
  134. package/dist/MultiSelect-B-FPQ08c.js.map +1 -0
  135. package/dist/MultiSelect-S5VG9g3l.cjs +2 -0
  136. package/dist/MultiSelect-S5VG9g3l.cjs.map +1 -0
  137. package/dist/{MultilineTextField-Dz6Fg8RJ.cjs → MultilineTextField-B6EYAdik.cjs} +2 -2
  138. package/dist/{MultilineTextField-Dz6Fg8RJ.cjs.map → MultilineTextField-B6EYAdik.cjs.map} +1 -1
  139. package/dist/{MultilineTextField-CwNCJ9lZ.js → MultilineTextField-BgfBFeeF.js} +2 -2
  140. package/dist/{MultilineTextField-CwNCJ9lZ.js.map → MultilineTextField-BgfBFeeF.js.map} +1 -1
  141. package/dist/{NumberField-DYGVQdL5.js → NumberField-CzyvDMRV.js} +4 -4
  142. package/dist/{NumberField-DYGVQdL5.js.map → NumberField-CzyvDMRV.js.map} +1 -1
  143. package/dist/{NumberField-C_HZXBuw.cjs → NumberField-SSGXlF8U.cjs} +2 -2
  144. package/dist/{NumberField-C_HZXBuw.cjs.map → NumberField-SSGXlF8U.cjs.map} +1 -1
  145. package/dist/{OtpField-CpQr_ZqL.js → OtpField-CMoJqcx1.js} +3 -3
  146. package/dist/{OtpField-CpQr_ZqL.js.map → OtpField-CMoJqcx1.js.map} +1 -1
  147. package/dist/{OtpField-DKbUP0F6.cjs → OtpField-Pr7Ch0El.cjs} +2 -2
  148. package/dist/{OtpField-DKbUP0F6.cjs.map → OtpField-Pr7Ch0El.cjs.map} +1 -1
  149. package/dist/{PageLayout-CuWXukUv.cjs → PageLayout-BIMkjq-q.cjs} +2 -2
  150. package/dist/{PageLayout-CuWXukUv.cjs.map → PageLayout-BIMkjq-q.cjs.map} +1 -1
  151. package/dist/{PageLayout-CCcPCfJF.js → PageLayout-Ctr-IEzX.js} +2 -2
  152. package/dist/{PageLayout-CCcPCfJF.js.map → PageLayout-Ctr-IEzX.js.map} +1 -1
  153. package/dist/{PageNotFound-JKOnpyHD.cjs → PageNotFound-CnhBheI4.cjs} +2 -2
  154. package/dist/PageNotFound-CnhBheI4.cjs.map +1 -0
  155. package/dist/{PageNotFound-LWH2tU5E.js → PageNotFound-KKJTeaRF.js} +5 -5
  156. package/dist/PageNotFound-KKJTeaRF.js.map +1 -0
  157. package/dist/{Pagination-M7njqOUt.cjs → Pagination-BD5WOW98.cjs} +2 -2
  158. package/dist/{Pagination-M7njqOUt.cjs.map → Pagination-BD5WOW98.cjs.map} +1 -1
  159. package/dist/{Pagination-BwtbmITJ.js → Pagination-Oyms2ERd.js} +2 -2
  160. package/dist/{Pagination-BwtbmITJ.js.map → Pagination-Oyms2ERd.js.map} +1 -1
  161. package/dist/{PaletteField-CUyzLrny.js → PaletteField-BHzzzdou.js} +3 -3
  162. package/dist/{PaletteField-CUyzLrny.js.map → PaletteField-BHzzzdou.js.map} +1 -1
  163. package/dist/{PaletteField-iBIvOvNi.cjs → PaletteField-CCQGW5LC.cjs} +2 -2
  164. package/dist/{PaletteField-iBIvOvNi.cjs.map → PaletteField-CCQGW5LC.cjs.map} +1 -1
  165. package/dist/PhoneField-5zGY4Wko.cjs +2 -0
  166. package/dist/PhoneField-5zGY4Wko.cjs.map +1 -0
  167. package/dist/PhoneField-CBfmChPx.js +372 -0
  168. package/dist/PhoneField-CBfmChPx.js.map +1 -0
  169. package/dist/Popconfirm-BtGDhqrc.js +113 -0
  170. package/dist/Popconfirm-BtGDhqrc.js.map +1 -0
  171. package/dist/Popconfirm-CkBdntxV.cjs +2 -0
  172. package/dist/Popconfirm-CkBdntxV.cjs.map +1 -0
  173. package/dist/{Popover-CgIU4Rhg.js → Popover-B82Id9Ut.js} +2 -2
  174. package/dist/{Popover-CgIU4Rhg.js.map → Popover-B82Id9Ut.js.map} +1 -1
  175. package/dist/{Popover-CBI1icIM.cjs → Popover-DAT6DcM9.cjs} +2 -2
  176. package/dist/{Popover-CBI1icIM.cjs.map → Popover-DAT6DcM9.cjs.map} +1 -1
  177. package/dist/Progress-Bwxx71Ns.cjs +2 -0
  178. package/dist/Progress-Bwxx71Ns.cjs.map +1 -0
  179. package/dist/Progress-pTbaOSDd.js +119 -0
  180. package/dist/Progress-pTbaOSDd.js.map +1 -0
  181. package/dist/QrCode-BQ1eUiAJ.cjs +2 -0
  182. package/dist/QrCode-BQ1eUiAJ.cjs.map +1 -0
  183. package/dist/QrCode-osD23Vkt.js +80 -0
  184. package/dist/QrCode-osD23Vkt.js.map +1 -0
  185. package/dist/QueryError-Bu_MNGek.js +19 -0
  186. package/dist/QueryError-Bu_MNGek.js.map +1 -0
  187. package/dist/QueryError-C01oichG.cjs +2 -0
  188. package/dist/QueryError-C01oichG.cjs.map +1 -0
  189. package/dist/RadioGroup-BcFBdFhh.cjs +2 -0
  190. package/dist/{RadioGroup-Byy-eSY3.cjs.map → RadioGroup-BcFBdFhh.cjs.map} +1 -1
  191. package/dist/RadioGroup-dVx_hMCY.js +141 -0
  192. package/dist/{RadioGroup-D_1_Heta.js.map → RadioGroup-dVx_hMCY.js.map} +1 -1
  193. package/dist/RemoveDialog-Bm2mJB3l.cjs +2 -0
  194. package/dist/RemoveDialog-Bm2mJB3l.cjs.map +1 -0
  195. package/dist/RemoveDialog-C2uJzWi-.js +109 -0
  196. package/dist/RemoveDialog-C2uJzWi-.js.map +1 -0
  197. package/dist/{RichTextEditor-CG6LoNiw.js → RichTextEditor-BDAWmQrN.js} +11 -11
  198. package/dist/{RichTextEditor-CG6LoNiw.js.map → RichTextEditor-BDAWmQrN.js.map} +1 -1
  199. package/dist/RichTextEditor-D4HpPT3C.cjs +2 -0
  200. package/dist/{RichTextEditor-mpMCG8jX.cjs.map → RichTextEditor-D4HpPT3C.cjs.map} +1 -1
  201. package/dist/{RootLayout-D3K-pAMO.js → RootLayout-CxncyjCz.js} +19 -19
  202. package/dist/{RootLayout-D3K-pAMO.js.map → RootLayout-CxncyjCz.js.map} +1 -1
  203. package/dist/RootLayout-XEcU_MBs.cjs +2 -0
  204. package/dist/{RootLayout-CPxDqfGb.cjs.map → RootLayout-XEcU_MBs.cjs.map} +1 -1
  205. package/dist/Select-CVVJKAtS.cjs +2 -0
  206. package/dist/Select-CVVJKAtS.cjs.map +1 -0
  207. package/dist/Select-d9LDI8O3.js +199 -0
  208. package/dist/Select-d9LDI8O3.js.map +1 -0
  209. package/dist/Sidebar-B8ecHwZr.cjs +2 -0
  210. package/dist/Sidebar-B8ecHwZr.cjs.map +1 -0
  211. package/dist/{Sidebar-CsPnv4mu.js → Sidebar-BgCfnZBF.js} +173 -163
  212. package/dist/Sidebar-BgCfnZBF.js.map +1 -0
  213. package/dist/Skeleton-DK0lAjS9.cjs +2 -0
  214. package/dist/Skeleton-DK0lAjS9.cjs.map +1 -0
  215. package/dist/Skeleton-_-uGax2j.js +56 -0
  216. package/dist/Skeleton-_-uGax2j.js.map +1 -0
  217. package/dist/{Slider-D3dbEOQY.cjs → Slider-Cu1FhxR2.cjs} +2 -2
  218. package/dist/{Slider-D3dbEOQY.cjs.map → Slider-Cu1FhxR2.cjs.map} +1 -1
  219. package/dist/{Slider-D7SvowmM.js → Slider-DoQJWgGU.js} +2 -2
  220. package/dist/{Slider-D7SvowmM.js.map → Slider-DoQJWgGU.js.map} +1 -1
  221. package/dist/{SpeedDial-B8XMUATN.js → SpeedDial-CBVwgnFp.js} +2 -2
  222. package/dist/{SpeedDial-B8XMUATN.js.map → SpeedDial-CBVwgnFp.js.map} +1 -1
  223. package/dist/{SpeedDial-CZ22T8GL.cjs → SpeedDial-CEr2JWQb.cjs} +2 -2
  224. package/dist/{SpeedDial-CZ22T8GL.cjs.map → SpeedDial-CEr2JWQb.cjs.map} +1 -1
  225. package/dist/{Stepper-BjkkWawQ.cjs → Stepper-DOSc03YV.cjs} +2 -2
  226. package/dist/{Stepper-BjkkWawQ.cjs.map → Stepper-DOSc03YV.cjs.map} +1 -1
  227. package/dist/{Stepper-B_e_PGZE.js → Stepper-DtYamv1q.js} +2 -2
  228. package/dist/{Stepper-B_e_PGZE.js.map → Stepper-DtYamv1q.js.map} +1 -1
  229. package/dist/{SwatchPicker-C8amdDnA.cjs → SwatchPicker-BWXqgsEy.cjs} +2 -2
  230. package/dist/{SwatchPicker-C8amdDnA.cjs.map → SwatchPicker-BWXqgsEy.cjs.map} +1 -1
  231. package/dist/{SwatchPicker-DXEE9xqY.js → SwatchPicker-Bpxk0IOe.js} +2 -2
  232. package/dist/{SwatchPicker-DXEE9xqY.js.map → SwatchPicker-Bpxk0IOe.js.map} +1 -1
  233. package/dist/Switch-DSs2Y0IR.cjs +2 -0
  234. package/dist/{Switch-CodRZD3y.cjs.map → Switch-DSs2Y0IR.cjs.map} +1 -1
  235. package/dist/Switch-Jh2Ch8GO.js +85 -0
  236. package/dist/{Switch-ESrhkpJC.js.map → Switch-Jh2Ch8GO.js.map} +1 -1
  237. package/dist/Table-AzNzUAkl.js +1170 -0
  238. package/dist/Table-AzNzUAkl.js.map +1 -0
  239. package/dist/Table-CrpWhZUg.cjs +2 -0
  240. package/dist/Table-CrpWhZUg.cjs.map +1 -0
  241. package/dist/{Tabs-CZDX7BN-.cjs → Tabs-CMnLXRjA.cjs} +2 -2
  242. package/dist/{Tabs-CZDX7BN-.cjs.map → Tabs-CMnLXRjA.cjs.map} +1 -1
  243. package/dist/{Tabs-v1GEGUDQ.js → Tabs-D1RGhKsa.js} +2 -2
  244. package/dist/{Tabs-v1GEGUDQ.js.map → Tabs-D1RGhKsa.js.map} +1 -1
  245. package/dist/{TagsField-OfrpyHZO.cjs → TagsField-DcuSn7wL.cjs} +2 -2
  246. package/dist/{TagsField-OfrpyHZO.cjs.map → TagsField-DcuSn7wL.cjs.map} +1 -1
  247. package/dist/{TagsField-B389eDp4.js → TagsField-DuQEFHZ3.js} +5 -5
  248. package/dist/{TagsField-B389eDp4.js.map → TagsField-DuQEFHZ3.js.map} +1 -1
  249. package/dist/{TextField-B785pRgK.cjs → TextField-E85pvJQC.cjs} +2 -2
  250. package/dist/{TextField-B785pRgK.cjs.map → TextField-E85pvJQC.cjs.map} +1 -1
  251. package/dist/{TextField-7MobCad5.js → TextField-SGYWviFf.js} +4 -4
  252. package/dist/{TextField-7MobCad5.js.map → TextField-SGYWviFf.js.map} +1 -1
  253. package/dist/{ThemeToggle-BkmZ7s_u.cjs → ThemeToggle-BdlxzYNt.cjs} +2 -2
  254. package/dist/{ThemeToggle-BkmZ7s_u.cjs.map → ThemeToggle-BdlxzYNt.cjs.map} +1 -1
  255. package/dist/{ThemeToggle-BGdvqXad.js → ThemeToggle-C2kjFrD_.js} +3 -3
  256. package/dist/{ThemeToggle-BGdvqXad.js.map → ThemeToggle-C2kjFrD_.js.map} +1 -1
  257. package/dist/{TimeColumns-BRlDKx_i.js → TimeColumns-BS1d0qOp.js} +2 -2
  258. package/dist/{TimeColumns-BRlDKx_i.js.map → TimeColumns-BS1d0qOp.js.map} +1 -1
  259. package/dist/{TimeColumns-B-xm1DGM.cjs → TimeColumns-D7-O4Qyt.cjs} +2 -2
  260. package/dist/{TimeColumns-B-xm1DGM.cjs.map → TimeColumns-D7-O4Qyt.cjs.map} +1 -1
  261. package/dist/{TimePicker-B_3Ubip0.js → TimePicker-DlzYNDN1.js} +7 -7
  262. package/dist/{TimePicker-B_3Ubip0.js.map → TimePicker-DlzYNDN1.js.map} +1 -1
  263. package/dist/{TimePicker-DvEIdE4v.cjs → TimePicker-Dzb3gycP.cjs} +2 -2
  264. package/dist/{TimePicker-DvEIdE4v.cjs.map → TimePicker-Dzb3gycP.cjs.map} +1 -1
  265. package/dist/{Toaster-BIFRuqbC.cjs → Toaster-Cummylmj.cjs} +2 -2
  266. package/dist/{Toaster-BIFRuqbC.cjs.map → Toaster-Cummylmj.cjs.map} +1 -1
  267. package/dist/{Toaster-DuzcRbio.js → Toaster-cu5XyKeE.js} +2 -2
  268. package/dist/{Toaster-DuzcRbio.js.map → Toaster-cu5XyKeE.js.map} +1 -1
  269. package/dist/{TranslatedFields-D_a0NVKI.cjs → TranslatedFields-CbTlgKnh.cjs} +2 -2
  270. package/dist/{TranslatedFields-D_a0NVKI.cjs.map → TranslatedFields-CbTlgKnh.cjs.map} +1 -1
  271. package/dist/{TranslatedFields-HmP0Mg5t.js → TranslatedFields-Ccjhq2YL.js} +5 -5
  272. package/dist/{TranslatedFields-HmP0Mg5t.js.map → TranslatedFields-Ccjhq2YL.js.map} +1 -1
  273. package/dist/Typography-B6ASPrzT.cjs +2 -0
  274. package/dist/Typography-B6ASPrzT.cjs.map +1 -0
  275. package/dist/Typography-CJv5AnRP.js +70 -0
  276. package/dist/Typography-CJv5AnRP.js.map +1 -0
  277. package/dist/UserCard-BfHHfkDr.cjs +2 -0
  278. package/dist/UserCard-BfHHfkDr.cjs.map +1 -0
  279. package/dist/UserCard-Bs8kuV2j.js +78 -0
  280. package/dist/UserCard-Bs8kuV2j.js.map +1 -0
  281. package/dist/app/AdminRoot.d.cts +10 -3
  282. package/dist/app/AdminRoot.d.ts +10 -3
  283. package/dist/components/Alert/index.cjs +1 -1
  284. package/dist/components/Alert/index.js +1 -1
  285. package/dist/components/AuthLayout/index.cjs +1 -1
  286. package/dist/components/AuthLayout/index.js +1 -1
  287. package/dist/components/Avatar/Avatar.d.cts +7 -1
  288. package/dist/components/Avatar/Avatar.d.ts +7 -1
  289. package/dist/components/Avatar/index.cjs +1 -1
  290. package/dist/components/Avatar/index.js +2 -2
  291. package/dist/components/Breadcrumbs/index.cjs +1 -1
  292. package/dist/components/Breadcrumbs/index.js +1 -1
  293. package/dist/components/Button/index.cjs +1 -1
  294. package/dist/components/Button/index.js +1 -1
  295. package/dist/components/Card/Card.d.cts +2 -0
  296. package/dist/components/Card/Card.d.ts +2 -0
  297. package/dist/components/Card/index.cjs +1 -1
  298. package/dist/components/Card/index.js +1 -1
  299. package/dist/components/Checkbox/index.cjs +1 -1
  300. package/dist/components/Checkbox/index.js +1 -1
  301. package/dist/components/Chip/index.cjs +1 -1
  302. package/dist/components/Chip/index.js +1 -1
  303. package/dist/components/ChoiceCard/index.cjs +1 -1
  304. package/dist/components/ChoiceCard/index.js +1 -1
  305. package/dist/components/CodeBlock/index.cjs +1 -1
  306. package/dist/components/CodeBlock/index.js +1 -1
  307. package/dist/components/ColorPicker/index.cjs +1 -1
  308. package/dist/components/ColorPicker/index.js +1 -1
  309. package/dist/components/ColorRamp/index.cjs +1 -1
  310. package/dist/components/ColorRamp/index.js +1 -1
  311. package/dist/components/CopyButton/index.cjs +1 -1
  312. package/dist/components/CopyButton/index.js +1 -1
  313. package/dist/components/DatePicker/index.cjs +1 -1
  314. package/dist/components/DatePicker/index.js +1 -1
  315. package/dist/components/DateTimePicker/index.cjs +1 -1
  316. package/dist/components/DateTimePicker/index.js +1 -1
  317. package/dist/components/DescriptionList/DescriptionList.d.cts +76 -0
  318. package/dist/components/DescriptionList/DescriptionList.d.ts +76 -0
  319. package/dist/components/DescriptionList/index.cjs +2 -0
  320. package/dist/components/DescriptionList/index.cjs.map +1 -0
  321. package/dist/components/DescriptionList/index.d.cts +2 -0
  322. package/dist/components/DescriptionList/index.d.ts +2 -0
  323. package/dist/components/DescriptionList/index.js +6 -0
  324. package/dist/components/DescriptionList/index.js.map +1 -0
  325. package/dist/components/Dropdown/index.cjs +1 -1
  326. package/dist/components/Dropdown/index.js +1 -1
  327. package/dist/components/EmptyState/EmptyState.d.cts +4 -1
  328. package/dist/components/EmptyState/EmptyState.d.ts +4 -1
  329. package/dist/components/EmptyState/index.cjs +1 -1
  330. package/dist/components/EmptyState/index.js +1 -1
  331. package/dist/components/ErrorState/ErrorBoundary.d.cts +35 -0
  332. package/dist/components/ErrorState/ErrorBoundary.d.ts +35 -0
  333. package/dist/components/ErrorState/ErrorState.d.cts +48 -0
  334. package/dist/components/ErrorState/ErrorState.d.ts +48 -0
  335. package/dist/components/ErrorState/QueryError.d.cts +18 -0
  336. package/dist/components/ErrorState/QueryError.d.ts +18 -0
  337. package/dist/components/ErrorState/errorMessage.d.cts +26 -0
  338. package/dist/components/ErrorState/errorMessage.d.ts +26 -0
  339. package/dist/components/ErrorState/index.cjs +2 -0
  340. package/dist/components/ErrorState/index.cjs.map +1 -0
  341. package/dist/components/ErrorState/index.d.cts +7 -0
  342. package/dist/components/ErrorState/index.d.ts +7 -0
  343. package/dist/components/ErrorState/index.js +13 -0
  344. package/dist/components/ErrorState/index.js.map +1 -0
  345. package/dist/components/FileCard/index.cjs +1 -1
  346. package/dist/components/FileCard/index.js +1 -1
  347. package/dist/components/FileUploader/index.cjs +1 -1
  348. package/dist/components/FileUploader/index.js +1 -1
  349. package/dist/components/Flag/index.cjs +1 -1
  350. package/dist/components/Flag/index.js +1 -1
  351. package/dist/components/FloatingPanel/FloatingPanel.d.cts +4 -0
  352. package/dist/components/FloatingPanel/FloatingPanel.d.ts +4 -0
  353. package/dist/components/FullscreenToggle/index.cjs +1 -1
  354. package/dist/components/FullscreenToggle/index.js +1 -1
  355. package/dist/components/IconButton/index.cjs +1 -1
  356. package/dist/components/IconButton/index.js +1 -1
  357. package/dist/components/List/List.d.cts +13 -3
  358. package/dist/components/List/List.d.ts +13 -3
  359. package/dist/components/List/ListItem.d.cts +5 -0
  360. package/dist/components/List/ListItem.d.ts +5 -0
  361. package/dist/components/List/index.cjs +1 -1
  362. package/dist/components/List/index.js +4 -5
  363. package/dist/components/List/index.js.map +1 -1
  364. package/dist/components/List/listContext.d.cts +9 -3
  365. package/dist/components/List/listContext.d.ts +9 -3
  366. package/dist/components/Loader/index.cjs +1 -1
  367. package/dist/components/Loader/index.js +1 -1
  368. package/dist/components/Modal/Modal.d.cts +2 -0
  369. package/dist/components/Modal/Modal.d.ts +2 -0
  370. package/dist/components/Modal/index.cjs +1 -1
  371. package/dist/components/Modal/index.js +1 -1
  372. package/dist/components/MultiSelect/index.cjs +1 -1
  373. package/dist/components/MultiSelect/index.js +1 -1
  374. package/dist/components/MultilineTextField/index.cjs +1 -1
  375. package/dist/components/MultilineTextField/index.js +1 -1
  376. package/dist/components/NumberField/index.cjs +1 -1
  377. package/dist/components/NumberField/index.js +1 -1
  378. package/dist/components/OptionMenu/OptionMenu.d.cts +40 -0
  379. package/dist/components/OptionMenu/OptionMenu.d.ts +40 -0
  380. package/dist/components/OptionMenu/useOptionMenu.d.cts +81 -0
  381. package/dist/components/OptionMenu/useOptionMenu.d.ts +81 -0
  382. package/dist/components/OtpField/index.cjs +1 -1
  383. package/dist/components/OtpField/index.js +1 -1
  384. package/dist/components/PageLayout/index.cjs +1 -1
  385. package/dist/components/PageLayout/index.js +1 -1
  386. package/dist/components/PageNotFound/PageNotFound.d.cts +1 -1
  387. package/dist/components/PageNotFound/PageNotFound.d.ts +1 -1
  388. package/dist/components/PageNotFound/index.cjs +1 -1
  389. package/dist/components/PageNotFound/index.js +1 -1
  390. package/dist/components/Pagination/index.cjs +1 -1
  391. package/dist/components/Pagination/index.js +1 -1
  392. package/dist/components/PaletteField/index.cjs +1 -1
  393. package/dist/components/PaletteField/index.js +1 -1
  394. package/dist/components/PhoneField/PhoneField.d.cts +54 -0
  395. package/dist/components/PhoneField/PhoneField.d.ts +54 -0
  396. package/dist/components/PhoneField/index.cjs +2 -0
  397. package/dist/components/PhoneField/index.cjs.map +1 -0
  398. package/dist/components/PhoneField/index.d.cts +4 -0
  399. package/dist/components/PhoneField/index.d.ts +4 -0
  400. package/dist/components/PhoneField/index.js +7 -0
  401. package/dist/components/PhoneField/index.js.map +1 -0
  402. package/dist/components/PhoneField/phone.d.cts +50 -0
  403. package/dist/components/PhoneField/phone.d.ts +50 -0
  404. package/dist/components/Popconfirm/Popconfirm.d.cts +53 -0
  405. package/dist/components/Popconfirm/Popconfirm.d.ts +53 -0
  406. package/dist/components/Popconfirm/index.cjs +2 -0
  407. package/dist/components/Popconfirm/index.cjs.map +1 -0
  408. package/dist/components/Popconfirm/index.d.cts +2 -0
  409. package/dist/components/Popconfirm/index.d.ts +2 -0
  410. package/dist/components/Popconfirm/index.js +6 -0
  411. package/dist/components/Popconfirm/index.js.map +1 -0
  412. package/dist/components/Popover/index.cjs +1 -1
  413. package/dist/components/Popover/index.js +1 -1
  414. package/dist/components/Progress/Progress.d.cts +50 -0
  415. package/dist/components/Progress/Progress.d.ts +50 -0
  416. package/dist/components/Progress/index.cjs +2 -0
  417. package/dist/components/Progress/index.cjs.map +1 -0
  418. package/dist/components/Progress/index.d.cts +2 -0
  419. package/dist/components/Progress/index.d.ts +2 -0
  420. package/dist/components/Progress/index.js +6 -0
  421. package/dist/components/Progress/index.js.map +1 -0
  422. package/dist/components/QrCode/QrCode.d.cts +3 -0
  423. package/dist/components/QrCode/QrCode.d.ts +3 -0
  424. package/dist/components/QrCode/index.cjs +1 -1
  425. package/dist/components/QrCode/index.js +1 -1
  426. package/dist/components/Radio/index.cjs +1 -1
  427. package/dist/components/Radio/index.js +1 -1
  428. package/dist/components/RemoveDialog/RemoveDialog.d.cts +8 -1
  429. package/dist/components/RemoveDialog/RemoveDialog.d.ts +8 -1
  430. package/dist/components/RemoveDialog/index.cjs +1 -1
  431. package/dist/components/RemoveDialog/index.js +1 -1
  432. package/dist/components/RichTextEditor/index.cjs +1 -1
  433. package/dist/components/RichTextEditor/index.js +1 -1
  434. package/dist/components/RootLayout/index.cjs +1 -1
  435. package/dist/components/RootLayout/index.js +1 -1
  436. package/dist/components/Select/Select.d.cts +2 -12
  437. package/dist/components/Select/Select.d.ts +2 -12
  438. package/dist/components/Select/index.cjs +1 -1
  439. package/dist/components/Select/index.js +1 -1
  440. package/dist/components/Sidebar/index.cjs +1 -1
  441. package/dist/components/Sidebar/index.js +1 -1
  442. package/dist/components/Skeleton/Skeleton.d.cts +31 -0
  443. package/dist/components/Skeleton/Skeleton.d.ts +31 -0
  444. package/dist/components/Skeleton/index.cjs +2 -0
  445. package/dist/components/Skeleton/index.cjs.map +1 -0
  446. package/dist/components/Skeleton/index.d.cts +2 -0
  447. package/dist/components/Skeleton/index.d.ts +2 -0
  448. package/dist/components/Skeleton/index.js +6 -0
  449. package/dist/components/Skeleton/index.js.map +1 -0
  450. package/dist/components/Slider/index.cjs +1 -1
  451. package/dist/components/Slider/index.js +1 -1
  452. package/dist/components/SpeedDial/index.cjs +1 -1
  453. package/dist/components/SpeedDial/index.js +1 -1
  454. package/dist/components/Stepper/index.cjs +1 -1
  455. package/dist/components/Stepper/index.js +1 -1
  456. package/dist/components/SwatchPicker/index.cjs +1 -1
  457. package/dist/components/SwatchPicker/index.js +1 -1
  458. package/dist/components/Switch/index.cjs +1 -1
  459. package/dist/components/Switch/index.js +1 -1
  460. package/dist/components/Table/Table.d.cts +7 -1
  461. package/dist/components/Table/Table.d.ts +7 -1
  462. package/dist/components/Table/index.cjs +1 -1
  463. package/dist/components/Table/index.js +1 -1
  464. package/dist/components/Tabs/index.cjs +1 -1
  465. package/dist/components/Tabs/index.js +1 -1
  466. package/dist/components/TagsField/index.cjs +1 -1
  467. package/dist/components/TagsField/index.js +1 -1
  468. package/dist/components/TextField/index.cjs +1 -1
  469. package/dist/components/TextField/index.js +1 -1
  470. package/dist/components/ThemeToggle/index.cjs +1 -1
  471. package/dist/components/ThemeToggle/index.js +1 -1
  472. package/dist/components/TimePicker/index.cjs +1 -1
  473. package/dist/components/TimePicker/index.js +1 -1
  474. package/dist/components/Toast/index.cjs +1 -1
  475. package/dist/components/Toast/index.js +1 -1
  476. package/dist/components/TranslatedFields/index.cjs +1 -1
  477. package/dist/components/TranslatedFields/index.js +1 -1
  478. package/dist/components/Typography/Typography.d.cts +10 -3
  479. package/dist/components/Typography/Typography.d.ts +10 -3
  480. package/dist/components/Typography/index.cjs +1 -1
  481. package/dist/components/Typography/index.js +1 -1
  482. package/dist/components/UserCard/UserCard.d.cts +3 -1
  483. package/dist/components/UserCard/UserCard.d.ts +3 -1
  484. package/dist/components/UserCard/index.cjs +1 -1
  485. package/dist/components/UserCard/index.js +1 -1
  486. package/dist/components/index.d.cts +6 -0
  487. package/dist/components/index.d.ts +6 -0
  488. package/dist/entries/app.cjs +1 -1
  489. package/dist/entries/app.js +1 -1
  490. package/dist/entries/components.cjs +1 -1
  491. package/dist/entries/components.js +171 -152
  492. package/dist/entries/components.js.map +1 -1
  493. package/dist/entries/hooks.cjs +1 -1
  494. package/dist/entries/hooks.d.cts +2 -0
  495. package/dist/entries/hooks.d.ts +2 -0
  496. package/dist/entries/hooks.js +9 -8
  497. package/dist/entries/i18n.cjs +1 -1
  498. package/dist/entries/i18n.js +2 -2
  499. package/dist/entries/theme.cjs +1 -1
  500. package/dist/entries/theme.js +1 -1
  501. package/dist/hooks/index.d.cts +2 -0
  502. package/dist/hooks/index.d.ts +2 -0
  503. package/dist/hooks/useOptionalPeer.d.cts +21 -0
  504. package/dist/hooks/useOptionalPeer.d.ts +21 -0
  505. package/dist/hooks/useTableQuery.d.cts +56 -0
  506. package/dist/hooks/useTableQuery.d.ts +56 -0
  507. package/dist/i18n/messages.d.cts +14 -0
  508. package/dist/i18n/messages.d.ts +14 -0
  509. package/dist/index.cjs +1 -1
  510. package/dist/index.css +1 -1
  511. package/dist/index.js +244 -224
  512. package/dist/index.js.map +1 -1
  513. package/dist/{messages-B06Kl5rI.js → messages-DCefu6Pn.js} +128 -30
  514. package/dist/messages-DCefu6Pn.js.map +1 -0
  515. package/dist/messages-FiUqCKjJ.cjs +36 -0
  516. package/dist/messages-FiUqCKjJ.cjs.map +1 -0
  517. package/dist/useForm-CN-qCrP7.js +144 -0
  518. package/dist/useForm-CN-qCrP7.js.map +1 -0
  519. package/dist/useForm-WvV361y6.cjs +2 -0
  520. package/dist/useForm-WvV361y6.cjs.map +1 -0
  521. package/dist/useOptionMenu-BoWyPgbY.cjs +2 -0
  522. package/dist/useOptionMenu-BoWyPgbY.cjs.map +1 -0
  523. package/dist/useOptionMenu-D7EbYG9A.js +286 -0
  524. package/dist/useOptionMenu-D7EbYG9A.js.map +1 -0
  525. package/dist/useOptionalPeer-49f3XcO5.js +28 -0
  526. package/dist/useOptionalPeer-49f3XcO5.js.map +1 -0
  527. package/dist/useOptionalPeer-9Fkx5Leb.cjs +2 -0
  528. package/dist/useOptionalPeer-9Fkx5Leb.cjs.map +1 -0
  529. package/package.json +7 -1
  530. package/dist/AdminRoot-C4OyuOIr.js +0 -50
  531. package/dist/AdminRoot-C4OyuOIr.js.map +0 -1
  532. package/dist/AdminRoot-bHywlbML.cjs +0 -2
  533. package/dist/AdminRoot-bHywlbML.cjs.map +0 -1
  534. package/dist/Avatar-BGPGxry2.js +0 -60
  535. package/dist/Avatar-BGPGxry2.js.map +0 -1
  536. package/dist/Avatar-D_YivyqV.cjs +0 -2
  537. package/dist/Avatar-D_YivyqV.cjs.map +0 -1
  538. package/dist/Card-BRJV2JZE.js +0 -118
  539. package/dist/Card-BRJV2JZE.js.map +0 -1
  540. package/dist/Card-KvvNlchc.cjs +0 -2
  541. package/dist/Card-KvvNlchc.cjs.map +0 -1
  542. package/dist/Checkbox-ZYOSBYRt.js +0 -98
  543. package/dist/Checkbox-fzJCwe0j.cjs +0 -2
  544. package/dist/EmptyState-A5nPGnHA.js +0 -38
  545. package/dist/EmptyState-A5nPGnHA.js.map +0 -1
  546. package/dist/EmptyState-CTTOy9aY.cjs +0 -2
  547. package/dist/EmptyState-CTTOy9aY.cjs.map +0 -1
  548. package/dist/FileCard-BmPEEcue.js +0 -148
  549. package/dist/FileCard-BmPEEcue.js.map +0 -1
  550. package/dist/FileCard-C4BkGMtK.cjs +0 -2
  551. package/dist/FileCard-C4BkGMtK.cjs.map +0 -1
  552. package/dist/FileUploader-D_F64mob.cjs +0 -2
  553. package/dist/FileUploader-D_F64mob.cjs.map +0 -1
  554. package/dist/FileUploader-Dv_3bjZA.js +0 -684
  555. package/dist/FileUploader-Dv_3bjZA.js.map +0 -1
  556. package/dist/FloatingPanel-BG9Uag__.js +0 -131
  557. package/dist/FloatingPanel-BG9Uag__.js.map +0 -1
  558. package/dist/FloatingPanel-U6sGYiSK.cjs +0 -2
  559. package/dist/FloatingPanel-U6sGYiSK.cjs.map +0 -1
  560. package/dist/List-ChXO0Hz-.cjs +0 -2
  561. package/dist/List-ChXO0Hz-.cjs.map +0 -1
  562. package/dist/List-LqbfF6gU.js +0 -26
  563. package/dist/List-LqbfF6gU.js.map +0 -1
  564. package/dist/ListItem-Cn15lJBr.js +0 -74
  565. package/dist/ListItem-Cn15lJBr.js.map +0 -1
  566. package/dist/ListItem-yXXjtepZ.cjs +0 -2
  567. package/dist/ListItem-yXXjtepZ.cjs.map +0 -1
  568. package/dist/Modal--e2qGisF.cjs +0 -2
  569. package/dist/Modal--e2qGisF.cjs.map +0 -1
  570. package/dist/Modal-DJljaPqV.js +0 -195
  571. package/dist/Modal-DJljaPqV.js.map +0 -1
  572. package/dist/MultiSelect-CvecZeMU.cjs +0 -2
  573. package/dist/MultiSelect-CvecZeMU.cjs.map +0 -1
  574. package/dist/MultiSelect-DLoS04lZ.js +0 -350
  575. package/dist/MultiSelect-DLoS04lZ.js.map +0 -1
  576. package/dist/PageNotFound-JKOnpyHD.cjs.map +0 -1
  577. package/dist/PageNotFound-LWH2tU5E.js.map +0 -1
  578. package/dist/QrCode-Bcj9_Emc.js +0 -70
  579. package/dist/QrCode-Bcj9_Emc.js.map +0 -1
  580. package/dist/QrCode-DfDfGhG-.cjs +0 -2
  581. package/dist/QrCode-DfDfGhG-.cjs.map +0 -1
  582. package/dist/RadioGroup-Byy-eSY3.cjs +0 -2
  583. package/dist/RadioGroup-D_1_Heta.js +0 -141
  584. package/dist/RemoveDialog-DUrD2Em8.js +0 -47
  585. package/dist/RemoveDialog-DUrD2Em8.js.map +0 -1
  586. package/dist/RemoveDialog-FZWYAxRy.cjs +0 -2
  587. package/dist/RemoveDialog-FZWYAxRy.cjs.map +0 -1
  588. package/dist/RichTextEditor-mpMCG8jX.cjs +0 -2
  589. package/dist/RootLayout-CPxDqfGb.cjs +0 -2
  590. package/dist/Select-BB9oOoWZ.js +0 -338
  591. package/dist/Select-BB9oOoWZ.js.map +0 -1
  592. package/dist/Select-iP2p5jad.cjs +0 -2
  593. package/dist/Select-iP2p5jad.cjs.map +0 -1
  594. package/dist/Sidebar-Boi7UgHV.cjs +0 -2
  595. package/dist/Sidebar-Boi7UgHV.cjs.map +0 -1
  596. package/dist/Sidebar-CsPnv4mu.js.map +0 -1
  597. package/dist/Switch-CodRZD3y.cjs +0 -2
  598. package/dist/Switch-ESrhkpJC.js +0 -85
  599. package/dist/Table-Cr1zUtNQ.cjs +0 -2
  600. package/dist/Table-Cr1zUtNQ.cjs.map +0 -1
  601. package/dist/Table-DdoUcZoN.js +0 -1099
  602. package/dist/Table-DdoUcZoN.js.map +0 -1
  603. package/dist/Typography-BFatE1_A.cjs +0 -2
  604. package/dist/Typography-BFatE1_A.cjs.map +0 -1
  605. package/dist/Typography-Cta6Rg4L.js +0 -51
  606. package/dist/Typography-Cta6Rg4L.js.map +0 -1
  607. package/dist/UserCard-B1phOVKj.js +0 -74
  608. package/dist/UserCard-B1phOVKj.js.map +0 -1
  609. package/dist/UserCard-BvOcDm5W.cjs +0 -2
  610. package/dist/UserCard-BvOcDm5W.cjs.map +0 -1
  611. package/dist/messages-B06Kl5rI.js.map +0 -1
  612. package/dist/messages-CJqxqL3t.cjs +0 -36
  613. package/dist/messages-CJqxqL3t.cjs.map +0 -1
  614. package/dist/useForm-B_5wDIER.js +0 -126
  615. package/dist/useForm-B_5wDIER.js.map +0 -1
  616. package/dist/useForm-C7erBHt0.cjs +0 -2
  617. package/dist/useForm-C7erBHt0.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TranslatedFields-D_a0NVKI.cjs","sources":["../src/components/TranslatedFields/TranslatedFields.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react'\nimport { useFormContext } from '../../form/formContext'\nimport { useLocales, useTranslationsNamespace, type LocaleConfig } from '../../theme'\nimport { buildTranslationName } from '../../helpers/translations'\nimport { flagFor } from '../../i18n/messages'\nimport type { IconName } from '../../icons/names'\nimport { Flag } from '../Flag'\nimport { Tabs, type TabsSize, type TabsVariant } from '../Tabs'\nimport styles from './TranslatedFields.module.css'\n\n/** Builds a field's namespaced form name for the active locale (`(field) => name`). */\nexport type TranslatedFieldName = (field: string) => string\n\nexport interface TranslatedFieldsProps {\n /**\n * Render the fields for one locale. `name(field)` returns the namespaced form name to put on each\n * control (e.g. `translations[en-US].title`); `locale` is the active code. The same render runs per\n * locale, so the fields are identical bar their names.\n */\n children: (name: TranslatedFieldName, locale: string) => ReactNode\n /**\n * Locales (one tab each). Defaults to the app's configured locales\n * (`<ConfigProvider config={{ locales }}>`).\n */\n locales?: LocaleConfig[]\n /**\n * Top-level namespace for the field names (`<namespace>[<locale>].<field>`) and the nested object.\n * Falls back to `<ConfigProvider config={{ keys: { translationsNamespace } }}>`, then `'translations'`.\n * Pass to override per-instance (e.g. `'languages'`).\n */\n namespace?: string\n /** Controlled active locale code. */\n value?: string\n /** Initial active locale code (uncontrolled). Defaults to the first locale. */\n defaultValue?: string\n /** Fires with the next active locale code. */\n onChange?: (locale: string) => void\n /**\n * Show each locale's **flag** on its tab (matched by the language via `flagFor`). A language with no\n * built-in flag falls back to the `icon`. Defaults to `true`; pass `false` to always use `icon`.\n */\n showFlags?: boolean\n /** Fallback icon shown on a locale tab when its language has no flag (or `showFlags={false}`). Defaults to `'Global'`. */\n icon?: IconName\n /** Tab strip variant. Defaults to `Tabs`' default (`underline`). */\n variant?: TabsVariant\n /** Tab + field density. Defaults to `Tabs`' default (`md`). */\n size?: TabsSize\n /** Accessible label for the tablist. Defaults to `'Translations'`. */\n 'aria-label'?: string\n className?: string\n style?: CSSProperties\n}\n\n/**\n * A tabbed group of **per-locale** form fields — one tab per content locale, each rendering the same\n * fields with locale-namespaced `name`s (`translations[<locale>].<field>` by default), so a `<Form>`\n * submits e.g. `translations[en-US].title` / `translations[ka-GE].title`. You supply the fields once\n * via a render function that receives a `name(field)` builder for the active locale; bring any field\n * component (`TextField`, `MultilineTextField`, a rich-text editor, …). Locales come from\n * `<ConfigProvider config={{ locales }}>` (override with the `locales` prop). The top-level word is the\n * `namespace` (default `'translations'`, e.g. `'languages'`). Each tab shows its language's **flag**\n * (matched via `flagFor`); a language with no built-in flag falls back to the `icon` (a `Global` icon by\n * default), and `showFlags={false}` uses the `icon` for every tab. While inside a `<Form>`, an incomplete\n * locale's tab shows a **dot**, and on submit the strip auto-advances to the first locale with errors\n * and focuses its field. Build the schema / defaults with `buildTranslations`; the form values stay\n * **flat** (`translations[en-US].title` — the `FormData` shape) — convert to/from the **nested** JSON\n * shape (`{ translations: { 'en-US': { title } } }`) with `nestTranslations` / `flattenTranslations`.\n * Requires the `Tabs` component.\n */\nexport const TranslatedFields = forwardRef<HTMLDivElement, TranslatedFieldsProps>(\n function TranslatedFields(\n {\n children,\n locales: localesProp,\n namespace: namespaceProp,\n value,\n defaultValue,\n onChange,\n showFlags = true,\n icon = 'Global',\n variant,\n size,\n 'aria-label': ariaLabel = 'Translations',\n className,\n style,\n },\n ref,\n ) {\n const configLocales = useLocales()\n const locales = localesProp ?? configLocales\n // namespace: the `namespace` prop wins, else the ConfigProvider's (which falls back to the default)\n const configNamespace = useTranslationsNamespace()\n const namespace = namespaceProp ?? configNamespace\n const form = useFormContext()\n\n // active locale — controlled (`value`) or internal; falls back to the first locale\n const isControlled = value !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const active = (isControlled ? value : internal) ?? locales[0]?.code ?? ''\n const setActive = (next: string) => {\n if (!isControlled) setInternal(next)\n onChange?.(next)\n }\n\n // the namespaced-name prefix for a locale (e.g. `translations[en-US].`)\n const prefixOf = (code: string) => buildTranslationName(code, '', namespace)\n // a locale's tab is flagged when any of its fields is invalid AND the error is shown (submitted/touched)\n const localeHasError = (code: string): boolean =>\n !!form &&\n Object.keys(form.errors).some(\n (key) => key.startsWith(prefixOf(code)) && (form.isSubmitted || form.touched[key] === true),\n )\n\n // merge the forwarded ref with an internal one (to query the mounted fields for scroll/focus)\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRootRef = (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as { current: HTMLDivElement | null }).current = node\n }\n\n // on each submit, if the active tab is complete but another locale has the only remaining errors,\n // switch to it and focus its first invalid field (the form's own scroll can't reach an unmounted tab)\n const lastSubmit = useRef(0)\n const pendingFocus = useRef<string | null>(null)\n useEffect(() => {\n const count = form?.submitCount ?? 0\n if (!form || count === lastSubmit.current) return\n lastSubmit.current = count\n const errorKeys = Object.keys(form.errors)\n if (errorKeys.length === 0) return\n const isTranslationKey = (k: string) => locales.some((l) => k.startsWith(prefixOf(l.code)))\n // a non-translation field is still invalid → the form's scroll-to-error handles it (above the tabs)\n if (!errorKeys.every(isTranslationKey)) return\n // active locale already shows its (mounted) errors → nothing to switch to\n if (errorKeys.some((k) => k.startsWith(prefixOf(active)))) return\n const firstBad = locales.find((l) => errorKeys.some((k) => k.startsWith(prefixOf(l.code))))\n if (firstBad && firstBad.code !== active) {\n pendingFocus.current = firstBad.code\n setActive(firstBad.code)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form?.submitCount])\n\n // once the auto-switched tab has mounted, focus its first invalid field\n useEffect(() => {\n if (pendingFocus.current == null || pendingFocus.current !== active) return\n pendingFocus.current = null\n const root = rootRef.current\n if (!root || !form) return\n const errorKeys = new Set(Object.keys(form.errors))\n const target = Array.from(root.querySelectorAll<HTMLElement>('[name]')).find((el) =>\n errorKeys.has(el.getAttribute('name') ?? ''),\n )\n target?.scrollIntoView?.({ behavior: 'smooth', block: 'center' })\n target?.focus({ preventScroll: true })\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active])\n\n if (locales.length === 0) return null\n\n const items = locales.map((loc) => ({\n value: loc.code,\n label: loc.label ?? loc.code,\n // the locale's flag when it has one (and flags are enabled), else the fallback `icon` (Global)\n icon: showFlags && flagFor(loc.code) ? <Flag code={loc.code} /> : icon,\n // an invalid locale shows the Tabs error dot (a small red dot — no full-tab tint)\n error: localeHasError(loc.code),\n // keyed by locale so switching tabs remounts the fields (no value/state bleed between locales)\n content: (\n <div key={loc.code} className={styles.fields}>\n {children((field) => buildTranslationName(loc.code, field, namespace), loc.code)}\n </div>\n ),\n }))\n\n return (\n <Tabs\n ref={setRootRef}\n className={className}\n style={style}\n items={items}\n value={active}\n onChange={setActive}\n variant={variant}\n size={size}\n // locale tabs are internal UI — never sync them to the page URL\n queryKey={null}\n aria-label={ariaLabel}\n />\n )\n },\n)\n"],"names":["TranslatedFields","forwardRef","children","localesProp","namespaceProp","value","defaultValue","onChange","showFlags","icon","variant","size","ariaLabel","className","style","ref","configLocales","useLocales","locales","configNamespace","useTranslationsNamespace","namespace","form","useFormContext","isControlled","internal","setInternal","useState","active","_a","setActive","next","prefixOf","code","buildTranslationName","localeHasError","key","rootRef","useRef","setRootRef","node","lastSubmit","pendingFocus","useEffect","count","errorKeys","isTranslationKey","k","l","firstBad","root","target","el","items","loc","flagFor","jsx","Flag","styles","field","Tabs"],"mappings":"yUAsEaA,EAAmBC,EAAAA,WAC9B,SACE,CACE,SAAAC,EACA,QAASC,EACT,UAAWC,EACX,MAAAC,EACA,aAAAC,EACA,SAAAC,EACA,UAAAC,EAAY,GACZ,KAAAC,EAAO,SACP,QAAAC,EACA,KAAAC,EACA,aAAcC,EAAY,eAC1B,UAAAC,EACA,MAAAC,CAAA,EAEFC,EACA,OACA,MAAMC,EAAgBC,EAAAA,WAAA,EAChBC,EAAUf,GAAea,EAEzBG,EAAkBC,EAAAA,yBAAA,EAClBC,EAAYjB,GAAiBe,EAC7BG,EAAOC,EAAAA,eAAA,EAGPC,EAAenB,IAAU,OACzB,CAACoB,EAAUC,CAAW,EAAIC,EAAAA,SAA6BrB,CAAY,EACnEsB,GAAUJ,EAAenB,EAAQoB,MAAaI,EAAAX,EAAQ,CAAC,IAAT,YAAAW,EAAY,OAAQ,GAClEC,EAAaC,GAAiB,CAC7BP,GAAcE,EAAYK,CAAI,EACnCxB,GAAA,MAAAA,EAAWwB,EACb,EAGMC,EAAYC,GAAiBC,EAAAA,qBAAqBD,EAAM,GAAIZ,CAAS,EAErEc,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Q,CAAC5B,EAAM,OACpB,MAAMuB,EAAY,IAAI,IAAI,OAAO,KAAKvB,EAAK,MAAM,CAAC,EAC5C6B,EAAS,MAAM,KAAKD,EAAK,iBAA8B,QAAQ,CAAC,EAAE,KAAME,GAC5EP,EAAU,IAAIO,EAAG,aAAa,MAAM,GAAK,EAAE,CAAA,GAE7CvB,EAAAsB,GAAA,YAAAA,EAAQ,iBAAR,MAAAtB,EAAA,KAAAsB,EAAyB,CAAE,SAAU,SAAU,MAAO,WACtDA,GAAA,MAAAA,EAAQ,MAAM,CAAE,cAAe,EAAA,EAEjC,EAAG,CAACvB,CAAM,CAAC,EAEPV,EAAQ,SAAW,EAAG,OAAO,KAEjC,MAAMmC,EAAQnC,EAAQ,IAAKoC,IAAS,CAClC,MAAOA,EAAI,KACX,MAAOA,EAAI,OAASA,EAAI,KAExB,KAAM9C,GAAa+C,EAAAA,QAAQD,EAAI,IAAI,EAAIE,EAAAA,IAACC,EAAAA,KAAA,CAAK,KAAMH,EAAI,IAAA,CAAM,EAAK7C,EAElE,MAAO0B,EAAemB,EAAI,IAAI,EAE9B,QACEE,EAAAA,IAAC,MAAA,CAAmB,UAAWE,EAAO,OACnC,WAAUC,GAAUzB,EAAAA,qBAAqBoB,EAAI,KAAMK,EAAOtC,CAAS,EAAGiC,EAAI,IAAI,GADvEA,EAAI,IAEd,CAAA,EAEF,EAEF,OACEE,EAAAA,IAACI,EAAAA,KAAA,CACC,IAAKrB,EACL,UAAA1B,EACA,MAAAC,EACA,MAAAuC,EACA,MAAOzB,EACP,SAAUE,EACV,QAAApB,EACA,KAAAC,EAEA,SAAU,KACV,aAAYC,CAAA,CAAA,CAGlB,CACF"}
1
+ {"version":3,"file":"TranslatedFields-CbTlgKnh.cjs","sources":["../src/components/TranslatedFields/TranslatedFields.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react'\nimport { useFormContext } from '../../form/formContext'\nimport { useLocales, useTranslationsNamespace, type LocaleConfig } from '../../theme'\nimport { buildTranslationName } from '../../helpers/translations'\nimport { flagFor } from '../../i18n/messages'\nimport type { IconName } from '../../icons/names'\nimport { Flag } from '../Flag'\nimport { Tabs, type TabsSize, type TabsVariant } from '../Tabs'\nimport styles from './TranslatedFields.module.css'\n\n/** Builds a field's namespaced form name for the active locale (`(field) => name`). */\nexport type TranslatedFieldName = (field: string) => string\n\nexport interface TranslatedFieldsProps {\n /**\n * Render the fields for one locale. `name(field)` returns the namespaced form name to put on each\n * control (e.g. `translations[en-US].title`); `locale` is the active code. The same render runs per\n * locale, so the fields are identical bar their names.\n */\n children: (name: TranslatedFieldName, locale: string) => ReactNode\n /**\n * Locales (one tab each). Defaults to the app's configured locales\n * (`<ConfigProvider config={{ locales }}>`).\n */\n locales?: LocaleConfig[]\n /**\n * Top-level namespace for the field names (`<namespace>[<locale>].<field>`) and the nested object.\n * Falls back to `<ConfigProvider config={{ keys: { translationsNamespace } }}>`, then `'translations'`.\n * Pass to override per-instance (e.g. `'languages'`).\n */\n namespace?: string\n /** Controlled active locale code. */\n value?: string\n /** Initial active locale code (uncontrolled). Defaults to the first locale. */\n defaultValue?: string\n /** Fires with the next active locale code. */\n onChange?: (locale: string) => void\n /**\n * Show each locale's **flag** on its tab (matched by the language via `flagFor`). A language with no\n * built-in flag falls back to the `icon`. Defaults to `true`; pass `false` to always use `icon`.\n */\n showFlags?: boolean\n /** Fallback icon shown on a locale tab when its language has no flag (or `showFlags={false}`). Defaults to `'Global'`. */\n icon?: IconName\n /** Tab strip variant. Defaults to `Tabs`' default (`underline`). */\n variant?: TabsVariant\n /** Tab + field density. Defaults to `Tabs`' default (`md`). */\n size?: TabsSize\n /** Accessible label for the tablist. Defaults to `'Translations'`. */\n 'aria-label'?: string\n className?: string\n style?: CSSProperties\n}\n\n/**\n * A tabbed group of **per-locale** form fields — one tab per content locale, each rendering the same\n * fields with locale-namespaced `name`s (`translations[<locale>].<field>` by default), so a `<Form>`\n * submits e.g. `translations[en-US].title` / `translations[ka-GE].title`. You supply the fields once\n * via a render function that receives a `name(field)` builder for the active locale; bring any field\n * component (`TextField`, `MultilineTextField`, a rich-text editor, …). Locales come from\n * `<ConfigProvider config={{ locales }}>` (override with the `locales` prop). The top-level word is the\n * `namespace` (default `'translations'`, e.g. `'languages'`). Each tab shows its language's **flag**\n * (matched via `flagFor`); a language with no built-in flag falls back to the `icon` (a `Global` icon by\n * default), and `showFlags={false}` uses the `icon` for every tab. While inside a `<Form>`, an incomplete\n * locale's tab shows a **dot**, and on submit the strip auto-advances to the first locale with errors\n * and focuses its field. Build the schema / defaults with `buildTranslations`; the form values stay\n * **flat** (`translations[en-US].title` — the `FormData` shape) — convert to/from the **nested** JSON\n * shape (`{ translations: { 'en-US': { title } } }`) with `nestTranslations` / `flattenTranslations`.\n * Requires the `Tabs` component.\n */\nexport const TranslatedFields = forwardRef<HTMLDivElement, TranslatedFieldsProps>(\n function TranslatedFields(\n {\n children,\n locales: localesProp,\n namespace: namespaceProp,\n value,\n defaultValue,\n onChange,\n showFlags = true,\n icon = 'Global',\n variant,\n size,\n 'aria-label': ariaLabel = 'Translations',\n className,\n style,\n },\n ref,\n ) {\n const configLocales = useLocales()\n const locales = localesProp ?? configLocales\n // namespace: the `namespace` prop wins, else the ConfigProvider's (which falls back to the default)\n const configNamespace = useTranslationsNamespace()\n const namespace = namespaceProp ?? configNamespace\n const form = useFormContext()\n\n // active locale — controlled (`value`) or internal; falls back to the first locale\n const isControlled = value !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const active = (isControlled ? value : internal) ?? locales[0]?.code ?? ''\n const setActive = (next: string) => {\n if (!isControlled) setInternal(next)\n onChange?.(next)\n }\n\n // the namespaced-name prefix for a locale (e.g. `translations[en-US].`)\n const prefixOf = (code: string) => buildTranslationName(code, '', namespace)\n // a locale's tab is flagged when any of its fields is invalid AND the error is shown (submitted/touched)\n const localeHasError = (code: string): boolean =>\n !!form &&\n Object.keys(form.errors).some(\n (key) => key.startsWith(prefixOf(code)) && (form.isSubmitted || form.touched[key] === true),\n )\n\n // merge the forwarded ref with an internal one (to query the mounted fields for scroll/focus)\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRootRef = (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as { current: HTMLDivElement | null }).current = node\n }\n\n // on each submit, if the active tab is complete but another locale has the only remaining errors,\n // switch to it and focus its first invalid field (the form's own scroll can't reach an unmounted tab)\n const lastSubmit = useRef(0)\n const pendingFocus = useRef<string | null>(null)\n useEffect(() => {\n const count = form?.submitCount ?? 0\n if (!form || count === lastSubmit.current) return\n lastSubmit.current = count\n const errorKeys = Object.keys(form.errors)\n if (errorKeys.length === 0) return\n const isTranslationKey = (k: string) => locales.some((l) => k.startsWith(prefixOf(l.code)))\n // a non-translation field is still invalid → the form's scroll-to-error handles it (above the tabs)\n if (!errorKeys.every(isTranslationKey)) return\n // active locale already shows its (mounted) errors → nothing to switch to\n if (errorKeys.some((k) => k.startsWith(prefixOf(active)))) return\n const firstBad = locales.find((l) => errorKeys.some((k) => k.startsWith(prefixOf(l.code))))\n if (firstBad && firstBad.code !== active) {\n pendingFocus.current = firstBad.code\n setActive(firstBad.code)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form?.submitCount])\n\n // once the auto-switched tab has mounted, focus its first invalid field\n useEffect(() => {\n if (pendingFocus.current == null || pendingFocus.current !== active) return\n pendingFocus.current = null\n const root = rootRef.current\n if (!root || !form) return\n const errorKeys = new Set(Object.keys(form.errors))\n const target = Array.from(root.querySelectorAll<HTMLElement>('[name]')).find((el) =>\n errorKeys.has(el.getAttribute('name') ?? ''),\n )\n target?.scrollIntoView?.({ behavior: 'smooth', block: 'center' })\n target?.focus({ preventScroll: true })\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active])\n\n if (locales.length === 0) return null\n\n const items = locales.map((loc) => ({\n value: loc.code,\n label: loc.label ?? loc.code,\n // the locale's flag when it has one (and flags are enabled), else the fallback `icon` (Global)\n icon: showFlags && flagFor(loc.code) ? <Flag code={loc.code} /> : icon,\n // an invalid locale shows the Tabs error dot (a small red dot — no full-tab tint)\n error: localeHasError(loc.code),\n // keyed by locale so switching tabs remounts the fields (no value/state bleed between locales)\n content: (\n <div key={loc.code} className={styles.fields}>\n {children((field) => buildTranslationName(loc.code, field, namespace), loc.code)}\n </div>\n ),\n }))\n\n return (\n <Tabs\n ref={setRootRef}\n className={className}\n style={style}\n items={items}\n value={active}\n onChange={setActive}\n variant={variant}\n size={size}\n // locale tabs are internal UI — never sync them to the page URL\n queryKey={null}\n aria-label={ariaLabel}\n />\n )\n },\n)\n"],"names":["TranslatedFields","forwardRef","children","localesProp","namespaceProp","value","defaultValue","onChange","showFlags","icon","variant","size","ariaLabel","className","style","ref","configLocales","useLocales","locales","configNamespace","useTranslationsNamespace","namespace","form","useFormContext","isControlled","internal","setInternal","useState","active","_a","setActive","next","prefixOf","code","buildTranslationName","localeHasError","key","rootRef","useRef","setRootRef","node","lastSubmit","pendingFocus","useEffect","count","errorKeys","isTranslationKey","k","l","firstBad","root","target","el","items","loc","flagFor","jsx","Flag","styles","field","Tabs"],"mappings":"yUAsEaA,EAAmBC,EAAAA,WAC9B,SACE,CACE,SAAAC,EACA,QAASC,EACT,UAAWC,EACX,MAAAC,EACA,aAAAC,EACA,SAAAC,EACA,UAAAC,EAAY,GACZ,KAAAC,EAAO,SACP,QAAAC,EACA,KAAAC,EACA,aAAcC,EAAY,eAC1B,UAAAC,EACA,MAAAC,CAAA,EAEFC,EACA,OACA,MAAMC,EAAgBC,EAAAA,WAAA,EAChBC,EAAUf,GAAea,EAEzBG,EAAkBC,EAAAA,yBAAA,EAClBC,EAAYjB,GAAiBe,EAC7BG,EAAOC,EAAAA,eAAA,EAGPC,EAAenB,IAAU,OACzB,CAACoB,EAAUC,CAAW,EAAIC,EAAAA,SAA6BrB,CAAY,EACnEsB,GAAUJ,EAAenB,EAAQoB,MAAaI,EAAAX,EA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 -2,10 +2,10 @@ import { jsx as d } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useState as z, useRef as b, useEffect as R } from "react";
3
3
  import { u as D } from "./formContext-B7ln1Miy.js";
4
4
  import { b as j } from "./translations-D15tFHM1.js";
5
- import { f as J } from "./messages-B06Kl5rI.js";
6
- import { F as M } from "./Flag-CzCEpB8E.js";
7
- import { T as P } from "./Tabs-v1GEGUDQ.js";
8
- import { h as Q, n as U } from "./ConfigProvider-DL9fylMo.js";
5
+ import { f as J } from "./messages-DCefu6Pn.js";
6
+ import { F as M } from "./Flag-CmDXvd7j.js";
7
+ import { T as P } from "./Tabs-D1RGhKsa.js";
8
+ import { h as Q, n as U } from "./ConfigProvider-BbsI15b-.js";
9
9
  const X = "_fields_aawaf_4", Y = {
10
10
  fields: X
11
11
  }, ie = g(
@@ -83,4 +83,4 @@ const X = "_fields_aawaf_4", Y = {
83
83
  export {
84
84
  ie as T
85
85
  };
86
- //# sourceMappingURL=TranslatedFields-HmP0Mg5t.js.map
86
+ //# sourceMappingURL=TranslatedFields-Ccjhq2YL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranslatedFields-HmP0Mg5t.js","sources":["../src/components/TranslatedFields/TranslatedFields.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react'\nimport { useFormContext } from '../../form/formContext'\nimport { useLocales, useTranslationsNamespace, type LocaleConfig } from '../../theme'\nimport { buildTranslationName } from '../../helpers/translations'\nimport { flagFor } from '../../i18n/messages'\nimport type { IconName } from '../../icons/names'\nimport { Flag } from '../Flag'\nimport { Tabs, type TabsSize, type TabsVariant } from '../Tabs'\nimport styles from './TranslatedFields.module.css'\n\n/** Builds a field's namespaced form name for the active locale (`(field) => name`). */\nexport type TranslatedFieldName = (field: string) => string\n\nexport interface TranslatedFieldsProps {\n /**\n * Render the fields for one locale. `name(field)` returns the namespaced form name to put on each\n * control (e.g. `translations[en-US].title`); `locale` is the active code. The same render runs per\n * locale, so the fields are identical bar their names.\n */\n children: (name: TranslatedFieldName, locale: string) => ReactNode\n /**\n * Locales (one tab each). Defaults to the app's configured locales\n * (`<ConfigProvider config={{ locales }}>`).\n */\n locales?: LocaleConfig[]\n /**\n * Top-level namespace for the field names (`<namespace>[<locale>].<field>`) and the nested object.\n * Falls back to `<ConfigProvider config={{ keys: { translationsNamespace } }}>`, then `'translations'`.\n * Pass to override per-instance (e.g. `'languages'`).\n */\n namespace?: string\n /** Controlled active locale code. */\n value?: string\n /** Initial active locale code (uncontrolled). Defaults to the first locale. */\n defaultValue?: string\n /** Fires with the next active locale code. */\n onChange?: (locale: string) => void\n /**\n * Show each locale's **flag** on its tab (matched by the language via `flagFor`). A language with no\n * built-in flag falls back to the `icon`. Defaults to `true`; pass `false` to always use `icon`.\n */\n showFlags?: boolean\n /** Fallback icon shown on a locale tab when its language has no flag (or `showFlags={false}`). Defaults to `'Global'`. */\n icon?: IconName\n /** Tab strip variant. Defaults to `Tabs`' default (`underline`). */\n variant?: TabsVariant\n /** Tab + field density. Defaults to `Tabs`' default (`md`). */\n size?: TabsSize\n /** Accessible label for the tablist. Defaults to `'Translations'`. */\n 'aria-label'?: string\n className?: string\n style?: CSSProperties\n}\n\n/**\n * A tabbed group of **per-locale** form fields — one tab per content locale, each rendering the same\n * fields with locale-namespaced `name`s (`translations[<locale>].<field>` by default), so a `<Form>`\n * submits e.g. `translations[en-US].title` / `translations[ka-GE].title`. You supply the fields once\n * via a render function that receives a `name(field)` builder for the active locale; bring any field\n * component (`TextField`, `MultilineTextField`, a rich-text editor, …). Locales come from\n * `<ConfigProvider config={{ locales }}>` (override with the `locales` prop). The top-level word is the\n * `namespace` (default `'translations'`, e.g. `'languages'`). Each tab shows its language's **flag**\n * (matched via `flagFor`); a language with no built-in flag falls back to the `icon` (a `Global` icon by\n * default), and `showFlags={false}` uses the `icon` for every tab. While inside a `<Form>`, an incomplete\n * locale's tab shows a **dot**, and on submit the strip auto-advances to the first locale with errors\n * and focuses its field. Build the schema / defaults with `buildTranslations`; the form values stay\n * **flat** (`translations[en-US].title` — the `FormData` shape) — convert to/from the **nested** JSON\n * shape (`{ translations: { 'en-US': { title } } }`) with `nestTranslations` / `flattenTranslations`.\n * Requires the `Tabs` component.\n */\nexport const TranslatedFields = forwardRef<HTMLDivElement, TranslatedFieldsProps>(\n function TranslatedFields(\n {\n children,\n locales: localesProp,\n namespace: namespaceProp,\n value,\n defaultValue,\n onChange,\n showFlags = true,\n icon = 'Global',\n variant,\n size,\n 'aria-label': ariaLabel = 'Translations',\n className,\n style,\n },\n ref,\n ) {\n const configLocales = useLocales()\n const locales = localesProp ?? configLocales\n // namespace: the `namespace` prop wins, else the ConfigProvider's (which falls back to the default)\n const configNamespace = useTranslationsNamespace()\n const namespace = namespaceProp ?? configNamespace\n const form = useFormContext()\n\n // active locale — controlled (`value`) or internal; falls back to the first locale\n const isControlled = value !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const active = (isControlled ? value : internal) ?? locales[0]?.code ?? ''\n const setActive = (next: string) => {\n if (!isControlled) setInternal(next)\n onChange?.(next)\n }\n\n // the namespaced-name prefix for a locale (e.g. `translations[en-US].`)\n const prefixOf = (code: string) => buildTranslationName(code, '', namespace)\n // a locale's tab is flagged when any of its fields is invalid AND the error is shown (submitted/touched)\n const localeHasError = (code: string): boolean =>\n !!form &&\n Object.keys(form.errors).some(\n (key) => key.startsWith(prefixOf(code)) && (form.isSubmitted || form.touched[key] === true),\n )\n\n // merge the forwarded ref with an internal one (to query the mounted fields for scroll/focus)\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRootRef = (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as { current: HTMLDivElement | null }).current = node\n }\n\n // on each submit, if the active tab is complete but another locale has the only remaining errors,\n // switch to it and focus its first invalid field (the form's own scroll can't reach an unmounted tab)\n const lastSubmit = useRef(0)\n const pendingFocus = useRef<string | null>(null)\n useEffect(() => {\n const count = form?.submitCount ?? 0\n if (!form || count === lastSubmit.current) return\n lastSubmit.current = count\n const errorKeys = Object.keys(form.errors)\n if (errorKeys.length === 0) return\n const isTranslationKey = (k: string) => locales.some((l) => k.startsWith(prefixOf(l.code)))\n // a non-translation field is still invalid → the form's scroll-to-error handles it (above the tabs)\n if (!errorKeys.every(isTranslationKey)) return\n // active locale already shows its (mounted) errors → nothing to switch to\n if (errorKeys.some((k) => k.startsWith(prefixOf(active)))) return\n const firstBad = locales.find((l) => errorKeys.some((k) => k.startsWith(prefixOf(l.code))))\n if (firstBad && firstBad.code !== active) {\n pendingFocus.current = firstBad.code\n setActive(firstBad.code)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form?.submitCount])\n\n // once the auto-switched tab has mounted, focus its first invalid field\n useEffect(() => {\n if (pendingFocus.current == null || pendingFocus.current !== active) return\n pendingFocus.current = null\n const root = rootRef.current\n if (!root || !form) return\n const errorKeys = new Set(Object.keys(form.errors))\n const target = Array.from(root.querySelectorAll<HTMLElement>('[name]')).find((el) =>\n errorKeys.has(el.getAttribute('name') ?? ''),\n )\n target?.scrollIntoView?.({ behavior: 'smooth', block: 'center' })\n target?.focus({ preventScroll: true })\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active])\n\n if (locales.length === 0) return null\n\n const items = locales.map((loc) => ({\n value: loc.code,\n label: loc.label ?? loc.code,\n // the locale's flag when it has one (and flags are enabled), else the fallback `icon` (Global)\n icon: showFlags && flagFor(loc.code) ? <Flag code={loc.code} /> : icon,\n // an invalid locale shows the Tabs error dot (a small red dot — no full-tab tint)\n error: localeHasError(loc.code),\n // keyed by locale so switching tabs remounts the fields (no value/state bleed between locales)\n content: (\n <div key={loc.code} className={styles.fields}>\n {children((field) => buildTranslationName(loc.code, field, namespace), loc.code)}\n </div>\n ),\n }))\n\n return (\n <Tabs\n ref={setRootRef}\n className={className}\n style={style}\n items={items}\n value={active}\n onChange={setActive}\n variant={variant}\n size={size}\n // locale tabs are internal UI — never sync them to the page URL\n queryKey={null}\n aria-label={ariaLabel}\n />\n )\n },\n)\n"],"names":["TranslatedFields","forwardRef","children","localesProp","namespaceProp","value","defaultValue","onChange","showFlags","icon","variant","size","ariaLabel","className","style","ref","configLocales","useLocales","locales","configNamespace","useTranslationsNamespace","namespace","form","useFormContext","isControlled","internal","setInternal","useState","active","_a","setActive","next","prefixOf","code","buildTranslationName","localeHasError","key","rootRef","useRef","setRootRef","node","lastSubmit","pendingFocus","useEffect","count","errorKeys","isTranslationKey","k","l","firstBad","root","target","el","items","loc","flagFor","jsx","Flag","styles","field","Tabs"],"mappings":";;;;;;;;;;GAsEaA,KAAmBC;AAAA,EAC9B,SACE;AAAA,IACE,UAAAC;AAAA,IACA,SAASC;AAAA,IACT,WAAWC;AAAA,IACX,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC,IAAY;AAAA,IAC1B,WAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,GAEFC,GACA;;AACA,UAAMC,IAAgBC,EAAA,GAChBC,IAAUf,KAAea,GAEzBG,IAAkBC,EAAA,GAClBC,IAAYjB,KAAiBe,GAC7BG,IAAOC,EAAA,GAGPC,IAAenB,MAAU,QACzB,CAACoB,GAAUC,CAAW,IAAIC,EAA6BrB,CAAY,GACnEsB,KAAUJ,IAAenB,IAAQoB,QAAaI,IAAAX,EAAQ,CAAC,MAAT,gBAAAW,EAAY,SAAQ,IAClEC,IAAY,CAACC,MAAiB;AAClC,MAAKP,KAAcE,EAAYK,CAAI,GACnCxB,KAAA,QAAAA,EAAWwB;AAAA,IACb,GAGMC,IAAW,CAACC,MAAiBC,EAAqBD,GAAM,IAAIZ,CAAS,GAErEc,IAAiB,CAACF,MACtB,CAAC,CAACX,KACF,OAAO,KAAKA,EAAK,MAAM,EAAE;AAAA,MACvB,CAACc,MAA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slatedFields.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef, useState, type CSSProperties, type ReactNode } from 'react'\nimport { useFormContext } from '../../form/formContext'\nimport { useLocales, useTranslationsNamespace, type LocaleConfig } from '../../theme'\nimport { buildTranslationName } from '../../helpers/translations'\nimport { flagFor } from '../../i18n/messages'\nimport type { IconName } from '../../icons/names'\nimport { Flag } from '../Flag'\nimport { Tabs, type TabsSize, type TabsVariant } from '../Tabs'\nimport styles from './TranslatedFields.module.css'\n\n/** Builds a field's namespaced form name for the active locale (`(field) => name`). */\nexport type TranslatedFieldName = (field: string) => string\n\nexport interface TranslatedFieldsProps {\n /**\n * Render the fields for one locale. `name(field)` returns the namespaced form name to put on each\n * control (e.g. `translations[en-US].title`); `locale` is the active code. The same render runs per\n * locale, so the fields are identical bar their names.\n */\n children: (name: TranslatedFieldName, locale: string) => ReactNode\n /**\n * Locales (one tab each). Defaults to the app's configured locales\n * (`<ConfigProvider config={{ locales }}>`).\n */\n locales?: LocaleConfig[]\n /**\n * Top-level namespace for the field names (`<namespace>[<locale>].<field>`) and the nested object.\n * Falls back to `<ConfigProvider config={{ keys: { translationsNamespace } }}>`, then `'translations'`.\n * Pass to override per-instance (e.g. `'languages'`).\n */\n namespace?: string\n /** Controlled active locale code. */\n value?: string\n /** Initial active locale code (uncontrolled). Defaults to the first locale. */\n defaultValue?: string\n /** Fires with the next active locale code. */\n onChange?: (locale: string) => void\n /**\n * Show each locale's **flag** on its tab (matched by the language via `flagFor`). A language with no\n * built-in flag falls back to the `icon`. Defaults to `true`; pass `false` to always use `icon`.\n */\n showFlags?: boolean\n /** Fallback icon shown on a locale tab when its language has no flag (or `showFlags={false}`). Defaults to `'Global'`. */\n icon?: IconName\n /** Tab strip variant. Defaults to `Tabs`' default (`underline`). */\n variant?: TabsVariant\n /** Tab + field density. Defaults to `Tabs`' default (`md`). */\n size?: TabsSize\n /** Accessible label for the tablist. Defaults to `'Translations'`. */\n 'aria-label'?: string\n className?: string\n style?: CSSProperties\n}\n\n/**\n * A tabbed group of **per-locale** form fields — one tab per content locale, each rendering the same\n * fields with locale-namespaced `name`s (`translations[<locale>].<field>` by default), so a `<Form>`\n * submits e.g. `translations[en-US].title` / `translations[ka-GE].title`. You supply the fields once\n * via a render function that receives a `name(field)` builder for the active locale; bring any field\n * component (`TextField`, `MultilineTextField`, a rich-text editor, …). Locales come from\n * `<ConfigProvider config={{ locales }}>` (override with the `locales` prop). The top-level word is the\n * `namespace` (default `'translations'`, e.g. `'languages'`). Each tab shows its language's **flag**\n * (matched via `flagFor`); a language with no built-in flag falls back to the `icon` (a `Global` icon by\n * default), and `showFlags={false}` uses the `icon` for every tab. While inside a `<Form>`, an incomplete\n * locale's tab shows a **dot**, and on submit the strip auto-advances to the first locale with errors\n * and focuses its field. Build the schema / defaults with `buildTranslations`; the form values stay\n * **flat** (`translations[en-US].title` — the `FormData` shape) — convert to/from the **nested** JSON\n * shape (`{ translations: { 'en-US': { title } } }`) with `nestTranslations` / `flattenTranslations`.\n * Requires the `Tabs` component.\n */\nexport const TranslatedFields = forwardRef<HTMLDivElement, TranslatedFieldsProps>(\n function TranslatedFields(\n {\n children,\n locales: localesProp,\n namespace: namespaceProp,\n value,\n defaultValue,\n onChange,\n showFlags = true,\n icon = 'Global',\n variant,\n size,\n 'aria-label': ariaLabel = 'Translations',\n className,\n style,\n },\n ref,\n ) {\n const configLocales = useLocales()\n const locales = localesProp ?? configLocales\n // namespace: the `namespace` prop wins, else the ConfigProvider's (which falls back to the default)\n const configNamespace = useTranslationsNamespace()\n const namespace = namespaceProp ?? configNamespace\n const form = useFormContext()\n\n // active locale — controlled (`value`) or internal; falls back to the first locale\n const isControlled = value !== undefined\n const [internal, setInternal] = useState<string | undefined>(defaultValue)\n const active = (isControlled ? value : internal) ?? locales[0]?.code ?? ''\n const setActive = (next: string) => {\n if (!isControlled) setInternal(next)\n onChange?.(next)\n }\n\n // the namespaced-name prefix for a locale (e.g. `translations[en-US].`)\n const prefixOf = (code: string) => buildTranslationName(code, '', namespace)\n // a locale's tab is flagged when any of its fields is invalid AND the error is shown (submitted/touched)\n const localeHasError = (code: string): boolean =>\n !!form &&\n Object.keys(form.errors).some(\n (key) => key.startsWith(prefixOf(code)) && (form.isSubmitted || form.touched[key] === true),\n )\n\n // merge the forwarded ref with an internal one (to query the mounted fields for scroll/focus)\n const rootRef = useRef<HTMLDivElement | null>(null)\n const setRootRef = (node: HTMLDivElement | null) => {\n rootRef.current = node\n if (typeof ref === 'function') ref(node)\n else if (ref) (ref as { current: HTMLDivElement | null }).current = node\n }\n\n // on each submit, if the active tab is complete but another locale has the only remaining errors,\n // switch to it and focus its first invalid field (the form's own scroll can't reach an unmounted tab)\n const lastSubmit = useRef(0)\n const pendingFocus = useRef<string | null>(null)\n useEffect(() => {\n const count = form?.submitCount ?? 0\n if (!form || count === lastSubmit.current) return\n lastSubmit.current = count\n const errorKeys = Object.keys(form.errors)\n if (errorKeys.length === 0) return\n const isTranslationKey = (k: string) => locales.some((l) => k.startsWith(prefixOf(l.code)))\n // a non-translation field is still invalid → the form's scroll-to-error handles it (above the tabs)\n if (!errorKeys.every(isTranslationKey)) return\n // active locale already shows its (mounted) errors → nothing to switch to\n if (errorKeys.some((k) => k.startsWith(prefixOf(active)))) return\n const firstBad = locales.find((l) => errorKeys.some((k) => k.startsWith(prefixOf(l.code))))\n if (firstBad && firstBad.code !== active) {\n pendingFocus.current = firstBad.code\n setActive(firstBad.code)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form?.submitCount])\n\n // once the auto-switched tab has mounted, focus its first invalid field\n useEffect(() => {\n if (pendingFocus.current == null || pendingFocus.current !== active) return\n pendingFocus.current = null\n const root = rootRef.current\n if (!root || !form) return\n const errorKeys = new Set(Object.keys(form.errors))\n const target = Array.from(root.querySelectorAll<HTMLElement>('[name]')).find((el) =>\n errorKeys.has(el.getAttribute('name') ?? ''),\n )\n target?.scrollIntoView?.({ behavior: 'smooth', block: 'center' })\n target?.focus({ preventScroll: true })\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [active])\n\n if (locales.length === 0) return null\n\n const items = locales.map((loc) => ({\n value: loc.code,\n label: loc.label ?? loc.code,\n // the locale's flag when it has one (and flags are enabled), else the fallback `icon` (Global)\n icon: showFlags && flagFor(loc.code) ? <Flag code={loc.code} /> : icon,\n // an invalid locale shows the Tabs error dot (a small red dot — no full-tab tint)\n error: localeHasError(loc.code),\n // keyed by locale so switching tabs remounts the fields (no value/state bleed between locales)\n content: (\n <div key={loc.code} className={styles.fields}>\n {children((field) => buildTranslationName(loc.code, field, namespace), loc.code)}\n </div>\n ),\n }))\n\n return (\n <Tabs\n ref={setRootRef}\n className={className}\n style={style}\n items={items}\n value={active}\n onChange={setActive}\n variant={variant}\n size={size}\n // locale tabs are internal UI — never sync them to the page URL\n queryKey={null}\n aria-label={ariaLabel}\n />\n )\n },\n)\n"],"names":["TranslatedFields","forwardRef","children","localesProp","namespaceProp","value","defaultValue","onChange","showFlags","icon","variant","size","ariaLabel","className","style","ref","configLocales","useLocales","locales","configNamespace","useTranslationsNamespace","namespace","form","useFormContext","isControlled","internal","setInternal","useState","active","_a","setActive","next","prefixOf","code","buildTranslationName","localeHasError","key","rootRef","useRef","setRootRef","node","lastSubmit","pendingFocus","useEffect","count","errorKeys","isTranslationKey","k","l","firstBad","root","target","el","items","loc","flagFor","jsx","Flag","styles","field","Tabs"],"mappings":";;;;;;;;;;GAsEaA,KAAmBC;AAAA,EAC9B,SACE;AAAA,IACE,UAAAC;AAAA,IACA,SAASC;AAAA,IACT,WAAWC;AAAA,IACX,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,MAAAC,IAAO;AAAA,IACP,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC,IAAY;AAAA,IAC1B,WAAAC;AAAA,IACA,OAAAC;AAAA,EAAA,GAEFC,GACA;;AACA,UAAMC,IAAgBC,EAAA,GAChBC,IAAUf,KA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AA,EAAmB,WAAWE,EAAO,QACnC,YAAS,CAACC,MAAUzB,EAAqBoB,EAAI,MAAMK,GAAOtC,CAAS,GAAGiC,EAAI,IAAI,KADvEA,EAAI,IAEd;AAAA,IAAA,EAEF;AAEF,WACE,gBAAAE;AAAA,MAACI;AAAA,MAAA;AAAA,QACC,KAAKrB;AAAA,QACL,WAAA1B;AAAA,QACA,OAAAC;AAAA,QACA,OAAAuC;AAAA,QACA,OAAOzB;AAAA,QACP,UAAUE;AAAA,QACV,SAAApB;AAAA,QACA,MAAAC;AAAA,QAEA,UAAU;AAAA,QACV,cAAYC;AAAA,MAAA;AAAA,IAAA;AAAA,EAGlB;AACF;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const b=require("react/jsx-runtime"),w=require("react"),v=require("clsx"),m="_typography_1s1ws_2",f="_h1_1s1ws_10",g="_h2_1s1ws_15",x="_h3_1s1ws_20",S="_h4_1s1ws_25",q="_subtitle_1s1ws_30",z="_body_1s1ws_34",C="_bodySmall_1s1ws_38",T="_caption_1s1ws_42",j="_overline_1s1ws_47",R="_uppercase_1s1ws_55",A="_truncate_1s1ws_58",t={typography:m,h1:f,h2:g,h3:x,h4:S,subtitle:q,body:z,bodySmall:C,caption:T,overline:j,uppercase:R,truncate:A},E={h1:"h1",h2:"h2",h3:"h3",h4:"h4",subtitle:"h6",body:"p",bodySmall:"p",caption:"span",overline:"span",uppercase:"span"};function N(s){if(s)return s==="text"?"var(--tz-color-text)":s==="muted"?"var(--tz-color-primary-shade600)":`var(--tz-color-${s})`}const V=w.forwardRef(function({variant:e="body",as:c,color:a,align:o,truncate:p=!1,uppercase:_=!1,className:l,style:h,children:u,...i},y){const r=e==="uppercase"?"overline":e,d=c??E[r],n=N(a);return b.jsx(d,{ref:y,className:v.clsx(t.typography,t[r],p&&t.truncate,_&&t.uppercase,l),style:{...n&&{color:n},...o&&{textAlign:o},...h},...i,children:u})});exports.Typography=V;
2
+ //# sourceMappingURL=Typography-B6ASPrzT.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography-B6ASPrzT.cjs","sources":["../src/components/Typography/Typography.tsx"],"sourcesContent":["import {\n forwardRef,\n type CSSProperties,\n type ElementType,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport type { ThemeColor } from '../../theme'\nimport styles from './Typography.module.css'\n\nexport type TypographyVariant =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'subtitle'\n | 'body'\n | 'bodySmall'\n | 'caption'\n | 'overline'\n /** @deprecated Use `overline` (same look) — or the `uppercase` prop to capitalize any variant. */\n | 'uppercase'\n\nexport type TypographyAlign = 'left' | 'center' | 'right' | 'justify'\n\n/**\n * Text color: a theme palette token, the semantic `text` role, or `muted` (a soft primary shade for\n * secondary text). Omit to inherit the surrounding color.\n */\nexport type TypographyColor = ThemeColor | 'text' | 'muted'\n\n/** Default HTML element rendered for each variant. Override with the `as` prop. */\nconst variantElement: Record<TypographyVariant, ElementType> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n subtitle: 'h6',\n body: 'p',\n bodySmall: 'p',\n caption: 'span',\n overline: 'span',\n uppercase: 'span',\n}\n\nfunction resolveColor(color?: TypographyColor): string | undefined {\n if (!color) return undefined\n if (color === 'text') return 'var(--tz-color-text)'\n if (color === 'muted') return 'var(--tz-color-primary-shade600)'\n return `var(--tz-color-${color})`\n}\n\nexport interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {\n /**\n * Type scale + default element. `h1`–`h4` headings · `subtitle` · `body` (default) · `bodySmall` · `caption` ·\n * `overline` (a small, spaced-out, all-caps eyebrow label). `uppercase` is a deprecated alias of `overline`.\n */\n variant?: TypographyVariant\n /** Render a different HTML element (or component) than the variant's default — keeps the styling, changes the tag. */\n as?: ElementType\n /** Text color. Omit to inherit the surrounding color. */\n color?: TypographyColor\n /** Horizontal text alignment. */\n align?: TypographyAlign\n /** Clamp to a single line, hiding overflow with an ellipsis. */\n truncate?: boolean\n /** Render the text in capitals (`text-transform: uppercase`) — any variant, size and spacing untouched. */\n uppercase?: boolean\n children?: ReactNode\n}\n\n/**\n * Text primitive for the design system. Each `variant` maps to a sensible HTML\n * element and a font size from the `--tz-font-size-*` scale; override the tag\n * with `as` when the semantics differ from the look. Default browser margins are\n * removed. Without a `color` it inherits the surrounding text color, mirroring\n * `Icon` and `Loader`. `uppercase` capitalizes any variant; `truncate` clamps to one line.\n */\nexport const Typography = forwardRef<HTMLElement, TypographyProps>(function Typography(\n {\n variant = 'body',\n as,\n color,\n align,\n truncate = false,\n uppercase = false,\n className,\n style,\n children,\n ...props\n },\n ref,\n) {\n // `uppercase` the VARIANT is the old name of `overline` (kept as an alias); `uppercase` the PROP is the\n // plain capitals modifier — so the variant resolves to the `.overline` class, freeing `.uppercase`\n const resolvedVariant = variant === 'uppercase' ? 'overline' : variant\n const Component = (as ?? variantElement[resolvedVariant]) as ElementType\n const resolvedColor = resolveColor(color)\n\n return (\n <Component\n ref={ref}\n className={clsx(\n styles.typography,\n styles[resolvedVariant],\n truncate && styles.truncate,\n uppercase && styles.uppercase,\n className,\n )}\n style={\n {\n ...(resolvedColor && { color: resolvedColor }),\n ...(align && { textAlign: align }),\n ...style,\n } as CSSProperties\n }\n {...props}\n >\n {children}\n </Component>\n )\n})\n"],"names":["variantElement","resolveColor","color","Typography","forwardRef","variant","as","align","truncate","uppercase","className","style","children","props","ref","resolvedVariant","Component","resolvedColor","jsx","clsx","styles"],"mappings":"gcAiCMA,EAAyD,CAC7D,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,SAAU,KACV,KAAM,IACN,UAAW,IACX,QAAS,OACT,SAAU,OACV,UAAW,MACb,EAEA,SAASC,EAAaC,EAA6C,CACjE,GAAKA,EACL,OAAIA,IAAU,OAAe,uBACzBA,IAAU,QAAgB,mCACvB,kBAAkBA,CAAK,GAChC,CA4BO,MAAMC,EAAaC,EAAAA,WAAyC,SACjE,CACE,QAAAC,EAAU,OACV,GAAAC,EACA,MAAAJ,EACA,MAAAK,EACA,SAAAC,EAAW,GACX,UAAAC,EAAY,GACZ,UAAAC,EACA,MAAAC,EACA,SAAAC,EACA,GAAGC,CACL,EACAC,EACA,CAGA,MAAMC,EAAkBV,IAAY,YAAc,WAAaA,EACzDW,EAAaV,GAAMN,EAAee,CAAe,EACjDE,EAAgBhB,EAAaC,CAAK,EAExC,OACEgB,EAAAA,IAACF,EAAA,CACC,IAAAF,EACA,UAAWK,EAAAA,KACTC,EAAO,WACPA,EAAOL,CAAe,EACtBP,GAAYY,EAAO,SACnBX,GAAaW,EAAO,UACpBV,CAAA,EAEF,MACE,CACE,GAAIO,GAAiB,CAAE,MAAOA,CAAA,EAC9B,GAAIV,GAAS,CAAE,UAAWA,CAAA,EAC1B,GAAGI,CAAA,EAGN,GAAGE,EAEH,SAAAD,CAAA,CAAA,CAGP,CAAC"}
@@ -0,0 +1,70 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { forwardRef as b } from "react";
3
+ import { clsx as w } from "clsx";
4
+ const f = "_typography_1s1ws_2", v = "_h1_1s1ws_10", g = "_h2_1s1ws_15", x = "_h3_1s1ws_20", S = "_h4_1s1ws_25", z = "_subtitle_1s1ws_30", C = "_body_1s1ws_34", T = "_bodySmall_1s1ws_38", j = "_caption_1s1ws_42", A = "_overline_1s1ws_47", E = "_uppercase_1s1ws_55", N = "_truncate_1s1ws_58", t = {
5
+ typography: f,
6
+ h1: v,
7
+ h2: g,
8
+ h3: x,
9
+ h4: S,
10
+ subtitle: z,
11
+ body: C,
12
+ bodySmall: T,
13
+ caption: j,
14
+ overline: A,
15
+ uppercase: E,
16
+ truncate: N
17
+ }, R = {
18
+ h1: "h1",
19
+ h2: "h2",
20
+ h3: "h3",
21
+ h4: "h4",
22
+ subtitle: "h6",
23
+ body: "p",
24
+ bodySmall: "p",
25
+ caption: "span",
26
+ overline: "span",
27
+ uppercase: "span"
28
+ };
29
+ function V(s) {
30
+ if (s)
31
+ return s === "text" ? "var(--tz-color-text)" : s === "muted" ? "var(--tz-color-primary-shade600)" : `var(--tz-color-${s})`;
32
+ }
33
+ const B = b(function({
34
+ variant: o = "body",
35
+ as: a,
36
+ color: p,
37
+ align: e,
38
+ truncate: c = !1,
39
+ uppercase: _ = !1,
40
+ className: l,
41
+ style: h,
42
+ children: i,
43
+ ...y
44
+ }, u) {
45
+ const r = o === "uppercase" ? "overline" : o, d = a ?? R[r], n = V(p);
46
+ return /* @__PURE__ */ m(
47
+ d,
48
+ {
49
+ ref: u,
50
+ className: w(
51
+ t.typography,
52
+ t[r],
53
+ c && t.truncate,
54
+ _ && t.uppercase,
55
+ l
56
+ ),
57
+ style: {
58
+ ...n && { color: n },
59
+ ...e && { textAlign: e },
60
+ ...h
61
+ },
62
+ ...y,
63
+ children: i
64
+ }
65
+ );
66
+ });
67
+ export {
68
+ B as T
69
+ };
70
+ //# sourceMappingURL=Typography-CJv5AnRP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography-CJv5AnRP.js","sources":["../src/components/Typography/Typography.tsx"],"sourcesContent":["import {\n forwardRef,\n type CSSProperties,\n type ElementType,\n type HTMLAttributes,\n type ReactNode,\n} from 'react'\nimport { clsx } from 'clsx'\nimport type { ThemeColor } from '../../theme'\nimport styles from './Typography.module.css'\n\nexport type TypographyVariant =\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'subtitle'\n | 'body'\n | 'bodySmall'\n | 'caption'\n | 'overline'\n /** @deprecated Use `overline` (same look) — or the `uppercase` prop to capitalize any variant. */\n | 'uppercase'\n\nexport type TypographyAlign = 'left' | 'center' | 'right' | 'justify'\n\n/**\n * Text color: a theme palette token, the semantic `text` role, or `muted` (a soft primary shade for\n * secondary text). Omit to inherit the surrounding color.\n */\nexport type TypographyColor = ThemeColor | 'text' | 'muted'\n\n/** Default HTML element rendered for each variant. Override with the `as` prop. */\nconst variantElement: Record<TypographyVariant, ElementType> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n subtitle: 'h6',\n body: 'p',\n bodySmall: 'p',\n caption: 'span',\n overline: 'span',\n uppercase: 'span',\n}\n\nfunction resolveColor(color?: TypographyColor): string | undefined {\n if (!color) return undefined\n if (color === 'text') return 'var(--tz-color-text)'\n if (color === 'muted') return 'var(--tz-color-primary-shade600)'\n return `var(--tz-color-${color})`\n}\n\nexport interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {\n /**\n * Type scale + default element. `h1`–`h4` headings · `subtitle` · `body` (default) · `bodySmall` · `caption` ·\n * `overline` (a small, spaced-out, all-caps eyebrow label). `uppercase` is a deprecated alias of `overline`.\n */\n variant?: TypographyVariant\n /** Render a different HTML element (or component) than the variant's default — keeps the styling, changes the tag. */\n as?: ElementType\n /** Text color. Omit to inherit the surrounding color. */\n color?: TypographyColor\n /** Horizontal text alignment. */\n align?: TypographyAlign\n /** Clamp to a single line, hiding overflow with an ellipsis. */\n truncate?: boolean\n /** Render the text in capitals (`text-transform: uppercase`) — any variant, size and spacing untouched. */\n uppercase?: boolean\n children?: ReactNode\n}\n\n/**\n * Text primitive for the design system. Each `variant` maps to a sensible HTML\n * element and a font size from the `--tz-font-size-*` scale; override the tag\n * with `as` when the semantics differ from the look. Default browser margins are\n * removed. Without a `color` it inherits the surrounding text color, mirroring\n * `Icon` and `Loader`. `uppercase` capitalizes any variant; `truncate` clamps to one line.\n */\nexport const Typography = forwardRef<HTMLElement, TypographyProps>(function Typography(\n {\n variant = 'body',\n as,\n color,\n align,\n truncate = false,\n uppercase = false,\n className,\n style,\n children,\n ...props\n },\n ref,\n) {\n // `uppercase` the VARIANT is the old name of `overline` (kept as an alias); `uppercase` the PROP is the\n // plain capitals modifier — so the variant resolves to the `.overline` class, freeing `.uppercase`\n const resolvedVariant = variant === 'uppercase' ? 'overline' : variant\n const Component = (as ?? variantElement[resolvedVariant]) as ElementType\n const resolvedColor = resolveColor(color)\n\n return (\n <Component\n ref={ref}\n className={clsx(\n styles.typography,\n styles[resolvedVariant],\n truncate && styles.truncate,\n uppercase && styles.uppercase,\n className,\n )}\n style={\n {\n ...(resolvedColor && { color: resolvedColor }),\n ...(align && { textAlign: align }),\n ...style,\n } as CSSProperties\n }\n {...props}\n >\n {children}\n </Component>\n )\n})\n"],"names":["variantElement","resolveColor","color","Typography","forwardRef","variant","as","align","truncate","uppercase","className","style","children","props","ref","resolvedVariant","Component","resolvedColor","jsx","clsx","styles"],"mappings":";;;;;;;;;;;;;;;;GAiCMA,IAAyD;AAAA,EAC7D,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,UAAU;AAAA,EACV,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AACb;AAEA,SAASC,EAAaC,GAA6C;AACjE,MAAKA;AACL,WAAIA,MAAU,SAAe,yBACzBA,MAAU,UAAgB,qCACvB,kBAAkBA,CAAK;AAChC;AA4BO,MAAMC,IAAaC,EAAyC,SACjE;AAAA,EACE,SAAAC,IAAU;AAAA,EACV,IAAAC;AAAA,EACA,OAAAJ;AAAA,EACA,OAAAK;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,WAAAC,IAAY;AAAA,EACZ,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AAGA,QAAMC,IAAkBV,MAAY,cAAc,aAAaA,GACzDW,IAAaV,KAAMN,EAAee,CAAe,GACjDE,IAAgBhB,EAAaC,CAAK;AAExC,SACE,gBAAAgB;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,WAAWK;AAAA,QACTC,EAAO;AAAA,QACPA,EAAOL,CAAe;AAAA,QACtBP,KAAYY,EAAO;AAAA,QACnBX,KAAaW,EAAO;AAAA,QACpBV;AAAA,MAAA;AAAA,MAEF,OACE;AAAA,QACE,GAAIO,KAAiB,EAAE,OAAOA,EAAA;AAAA,QAC9B,GAAIV,KAAS,EAAE,WAAWA,EAAA;AAAA,QAC1B,GAAGI;AAAA,MAAA;AAAA,MAGN,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP,CAAC;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=require("react/jsx-runtime"),q=require("react"),p=require("clsx"),g=require("./Avatar-DrV_F7Ex.cjs"),C=require("./Button-CusxDmfq.cjs"),S=require("./Icon-BVULqOJD.cjs"),a=require("./Skeleton-DK0lAjS9.cjs"),d=require("./Typography-B6ASPrzT.cjs"),w=require("./ConfigProvider-ByLHqXpv.cjs"),T="_card_1fykc_3",U="_identity_1fykc_16",b="_text_1fykc_20",I="_sm_1fykc_33",N="_lg_1fykc_37",s={card:T,identity:U,text:b,sm:I,lg:N},A=q.forwardRef(function({name:c,email:n,avatar:l,icon:u="User",color:y="primary",size:e="md",onLogout:i,logoutLabel:x,children:m,loading:r=!1,className:_,style:f,...h},v){const o=w.useT(),j=e==="lg"?"lg":e==="sm"?"sm":"md",k=e==="lg"?"md":"sm";return t.jsxs("div",{ref:v,className:p.clsx(s.card,s[e],_),style:f,"aria-busy":r||void 0,...h,children:[t.jsxs("div",{className:s.identity,children:[t.jsx(g.Avatar,{size:j,name:c,src:l,icon:c?void 0:u,color:y,loading:r}),t.jsxs("div",{className:s.text,children:[t.jsx(d.Typography,{variant:"bodySmall",truncate:!0,children:r?t.jsx(a.Skeleton,{width:"60%"}):c??o("userCard.welcome")}),(r||n!=null)&&t.jsx(d.Typography,{variant:"caption",color:"muted",truncate:!0,children:r?t.jsx(a.Skeleton,{width:"85%"}):n})]})]}),m,i?t.jsx(C.Button,{variant:"filled",color:"error",size:k,fullWidth:!0,startIcon:t.jsx(S.Icon,{name:"Logout2"}),onClick:i,children:x??o("userCard.signOut")}):null]})});exports.UserCard=A;
2
+ //# sourceMappingURL=UserCard-BfHHfkDr.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserCard-BfHHfkDr.cjs","sources":["../src/components/UserCard/UserCard.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport type { IconName } from '../../icons/names'\nimport { Avatar } from '../Avatar'\nimport { Button } from '../Button'\nimport { Icon } from '../Icon'\nimport { Skeleton } from '../Skeleton'\nimport { Typography } from '../Typography'\nimport styles from './UserCard.module.css'\n\nexport type UserCardSize = 'sm' | 'md' | 'lg'\n\nexport interface UserCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /**\n * Display name — the primary line, and the source of the avatar initials. When omitted, the primary\n * line falls back to a localized **\"Welcome\"** greeting (and the avatar shows the `icon`).\n */\n name?: string\n /** Secondary line under the name (usually the email). */\n email?: ReactNode\n /** Avatar image URL (falls back to the initials from `name`, else the `icon`). */\n avatar?: string\n /** Fallback avatar icon when there's no image or name. Defaults to `'User'`. */\n icon?: IconName\n /** Theme palette token tinting the avatar. Defaults to `'primary'`. */\n color?: ThemeColor\n /** Preset size (avatar + fonts + button). Defaults to `'md'`. */\n size?: UserCardSize\n /** When provided, a **Sign out** button is shown that calls this. */\n onLogout?: () => void\n /** Sign-out button label. Defaults to `'Sign out'`. */\n logoutLabel?: ReactNode\n /** Extra content between the identity row and the sign-out button (e.g. a link or menu). */\n children?: ReactNode\n /** Show skeletons for the avatar, name and email while the user is being fetched (sign-out stays usable). Defaults to `false`. */\n loading?: boolean\n}\n\n/**\n * A compact account card — an `Avatar` + name/email and an optional **Sign out** button. Drop it into\n * the `RootLayout` `sidebarFooter` (or anywhere) for a consistent signed-in-user block across apps,\n * instead of hand-rolling the markup each time. Shows the image (`avatar`) → initials (from `name`) →\n * `icon` (default `User`) in priority order; renders the sign-out `Button` (filled `error`) only when\n * `onLogout` is given. `size` (`sm`/`md`/`lg`) scales the avatar + type; `color` (default `primary`)\n * tints the avatar. `loading` swaps the avatar + name + email for skeletons. Own CSS module (token-only).\n */\nexport const UserCard = forwardRef<HTMLDivElement, UserCardProps>(function UserCard(\n {\n name,\n email,\n avatar,\n icon = 'User',\n color = 'primary',\n size = 'md',\n onLogout,\n logoutLabel,\n children,\n loading = false,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n // the identity row + the sign-out button share the same visual size step\n const avatarSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md'\n const buttonSize = size === 'lg' ? 'md' : 'sm'\n\n return (\n <div\n ref={ref}\n className={clsx(styles.card, styles[size], className)}\n style={style as CSSProperties}\n aria-busy={loading || undefined}\n {...props}\n >\n <div className={styles.identity}>\n {/* Avatar priority is image → icon → initials, so pass `icon` only as the last resort (no\n name), otherwise a name would still show the icon instead of its initials */}\n <Avatar\n size={avatarSize}\n name={name}\n src={avatar}\n icon={name ? undefined : icon}\n color={color}\n loading={loading}\n />\n <div className={styles.text}>\n {/* primary line: the name, or a \"Welcome\" greeting fallback when no name is given */}\n <Typography variant=\"bodySmall\" truncate>\n {loading ? <Skeleton width=\"60%\" /> : (name ?? t('userCard.welcome'))}\n </Typography>\n {(loading || email != null) && (\n <Typography variant=\"caption\" color=\"muted\" truncate>\n {loading ? <Skeleton width=\"85%\" /> : email}\n </Typography>\n )}\n </div>\n </div>\n\n {children}\n\n {onLogout ? (\n <Button\n variant=\"filled\"\n color=\"error\"\n size={buttonSize}\n fullWidth\n startIcon={<Icon name=\"Logout2\" />}\n onClick={onLogout}\n >\n {logoutLabel ?? t('userCard.signOut')}\n </Button>\n ) : null}\n </div>\n )\n})\n"],"names":["UserCard","forwardRef","name","email","avatar","icon","color","size","onLogout","logoutLabel","children","loading","className","style","props","ref","t","useT","avatarSize","buttonSize","jsxs","clsx","styles","jsx","Avatar","Typography","Skeleton","Button","Icon"],"mappings":"0bA+CaA,EAAWC,EAAAA,WAA0C,SAChE,CACE,KAAAC,EACA,MAAAC,EACA,OAAAC,EACA,KAAAC,EAAO,OACP,MAAAC,EAAQ,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AEpC,IAAA,CAAA,CAAA,CAGV,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as S } from "react";
3
+ import { clsx as g } from "clsx";
4
+ import { A as w } from "./Avatar-DXNPg23a.js";
5
+ import { B as U } from "./Button-CWMNNiia.js";
6
+ import { I as b } from "./Icon-DaTvzLBu.js";
7
+ import { S as m } from "./Skeleton-_-uGax2j.js";
8
+ import { T as d } from "./Typography-CJv5AnRP.js";
9
+ import { a as I } from "./ConfigProvider-BbsI15b-.js";
10
+ const N = "_card_1fykc_3", T = "_identity_1fykc_16", j = "_text_1fykc_20", A = "_sm_1fykc_33", B = "_lg_1fykc_37", o = {
11
+ card: N,
12
+ identity: T,
13
+ text: j,
14
+ sm: A,
15
+ lg: B
16
+ }, J = S(function({
17
+ name: c,
18
+ email: a,
19
+ avatar: l,
20
+ icon: f = "User",
21
+ color: u = "primary",
22
+ size: s = "md",
23
+ onLogout: i,
24
+ logoutLabel: y,
25
+ children: _,
26
+ loading: r = !1,
27
+ className: p,
28
+ style: h,
29
+ ...v
30
+ }, x) {
31
+ const n = I(), k = s === "lg" ? "lg" : s === "sm" ? "sm" : "md", C = s === "lg" ? "md" : "sm";
32
+ return /* @__PURE__ */ e(
33
+ "div",
34
+ {
35
+ ref: x,
36
+ className: g(o.card, o[s], p),
37
+ style: h,
38
+ "aria-busy": r || void 0,
39
+ ...v,
40
+ children: [
41
+ /* @__PURE__ */ e("div", { className: o.identity, children: [
42
+ /* @__PURE__ */ t(
43
+ w,
44
+ {
45
+ size: k,
46
+ name: c,
47
+ src: l,
48
+ icon: c ? void 0 : f,
49
+ color: u,
50
+ loading: r
51
+ }
52
+ ),
53
+ /* @__PURE__ */ e("div", { className: o.text, children: [
54
+ /* @__PURE__ */ t(d, { variant: "bodySmall", truncate: !0, children: r ? /* @__PURE__ */ t(m, { width: "60%" }) : c ?? n("userCard.welcome") }),
55
+ (r || a != null) && /* @__PURE__ */ t(d, { variant: "caption", color: "muted", truncate: !0, children: r ? /* @__PURE__ */ t(m, { width: "85%" }) : a })
56
+ ] })
57
+ ] }),
58
+ _,
59
+ i ? /* @__PURE__ */ t(
60
+ U,
61
+ {
62
+ variant: "filled",
63
+ color: "error",
64
+ size: C,
65
+ fullWidth: !0,
66
+ startIcon: /* @__PURE__ */ t(b, { name: "Logout2" }),
67
+ onClick: i,
68
+ children: y ?? n("userCard.signOut")
69
+ }
70
+ ) : null
71
+ ]
72
+ }
73
+ );
74
+ });
75
+ export {
76
+ J as U
77
+ };
78
+ //# sourceMappingURL=UserCard-Bs8kuV2j.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserCard-Bs8kuV2j.js","sources":["../src/components/UserCard/UserCard.tsx"],"sourcesContent":["import { forwardRef, type CSSProperties, type HTMLAttributes, type ReactNode } from 'react'\nimport { clsx } from 'clsx'\nimport { useT, type ThemeColor } from '../../theme'\nimport type { IconName } from '../../icons/names'\nimport { Avatar } from '../Avatar'\nimport { Button } from '../Button'\nimport { Icon } from '../Icon'\nimport { Skeleton } from '../Skeleton'\nimport { Typography } from '../Typography'\nimport styles from './UserCard.module.css'\n\nexport type UserCardSize = 'sm' | 'md' | 'lg'\n\nexport interface UserCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'> {\n /**\n * Display name — the primary line, and the source of the avatar initials. When omitted, the primary\n * line falls back to a localized **\"Welcome\"** greeting (and the avatar shows the `icon`).\n */\n name?: string\n /** Secondary line under the name (usually the email). */\n email?: ReactNode\n /** Avatar image URL (falls back to the initials from `name`, else the `icon`). */\n avatar?: string\n /** Fallback avatar icon when there's no image or name. Defaults to `'User'`. */\n icon?: IconName\n /** Theme palette token tinting the avatar. Defaults to `'primary'`. */\n color?: ThemeColor\n /** Preset size (avatar + fonts + button). Defaults to `'md'`. */\n size?: UserCardSize\n /** When provided, a **Sign out** button is shown that calls this. */\n onLogout?: () => void\n /** Sign-out button label. Defaults to `'Sign out'`. */\n logoutLabel?: ReactNode\n /** Extra content between the identity row and the sign-out button (e.g. a link or menu). */\n children?: ReactNode\n /** Show skeletons for the avatar, name and email while the user is being fetched (sign-out stays usable). Defaults to `false`. */\n loading?: boolean\n}\n\n/**\n * A compact account card — an `Avatar` + name/email and an optional **Sign out** button. Drop it into\n * the `RootLayout` `sidebarFooter` (or anywhere) for a consistent signed-in-user block across apps,\n * instead of hand-rolling the markup each time. Shows the image (`avatar`) → initials (from `name`) →\n * `icon` (default `User`) in priority order; renders the sign-out `Button` (filled `error`) only when\n * `onLogout` is given. `size` (`sm`/`md`/`lg`) scales the avatar + type; `color` (default `primary`)\n * tints the avatar. `loading` swaps the avatar + name + email for skeletons. Own CSS module (token-only).\n */\nexport const UserCard = forwardRef<HTMLDivElement, UserCardProps>(function UserCard(\n {\n name,\n email,\n avatar,\n icon = 'User',\n color = 'primary',\n size = 'md',\n onLogout,\n logoutLabel,\n children,\n loading = false,\n className,\n style,\n ...props\n },\n ref,\n) {\n const t = useT()\n // the identity row + the sign-out button share the same visual size step\n const avatarSize = size === 'lg' ? 'lg' : size === 'sm' ? 'sm' : 'md'\n const buttonSize = size === 'lg' ? 'md' : 'sm'\n\n return (\n <div\n ref={ref}\n className={clsx(styles.card, styles[size], className)}\n style={style as CSSProperties}\n aria-busy={loading || undefined}\n {...props}\n >\n <div className={styles.identity}>\n {/* Avatar priority is image → icon → initials, so pass `icon` only as the last resort (no\n name), otherwise a name would still show the icon instead of its initials */}\n <Avatar\n size={avatarSize}\n name={name}\n src={avatar}\n icon={name ? undefined : icon}\n color={color}\n loading={loading}\n />\n <div className={styles.text}>\n {/* primary line: the name, or a \"Welcome\" greeting fallback when no name is given */}\n <Typography variant=\"bodySmall\" truncate>\n {loading ? <Skeleton width=\"60%\" /> : (name ?? t('userCard.welcome'))}\n </Typography>\n {(loading || email != null) && (\n <Typography variant=\"caption\" color=\"muted\" truncate>\n {loading ? <Skeleton width=\"85%\" /> : email}\n </Typography>\n )}\n </div>\n </div>\n\n {children}\n\n {onLogout ? (\n <Button\n variant=\"filled\"\n color=\"error\"\n size={buttonSize}\n fullWidth\n startIcon={<Icon name=\"Logout2\" />}\n onClick={onLogout}\n >\n {logoutLabel ?? t('userCard.signOut')}\n </Button>\n ) : null}\n </div>\n )\n})\n"],"names":["UserCard","forwardRef","name","email","avatar","icon","color","size","onLogout","logoutLabel","children","loading","className","style","props","ref","t","useT","avatarSize","buttonSize","jsxs","clsx","styles","jsx","Avatar","Typography","Skeleton","Button","Icon"],"mappings":";;;;;;;;;;;;;;;GA+CaA,IAAWC,EAA0C,SAChE;AAAA,EACE,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,GACAC,GACA;AACA,QAAMC,IAAIC,EAAA,GAEJC,IAAaX,MAAS,OAAO,OAAOA,MAAS,OAAO,OAAO,MAC3DY,IAAaZ,MAAS,OAAO,OAAO;AAE1C,SACE,gBAAAa;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAL;AAAA,MACA,WAAWM,EAAKC,EAAO,MAAMA,EAAOf,CAAI,GAAGK,CAAS;AAAA,MACpD,OAAAC;AAAA,MACA,aAAWF,KAAW;AAAA,MACrB,GAAGG;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAM,EAAC,OAAA,EAAI,WAAWE,EAAO,UAGrB,UAAA;AAAA,UAAA,gBAAAC;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,MAAMN;AAAA,cACN,MAAAhB;AAAA,cACA,KAAKE;AAAA,cACL,MAAMF,IAAO,SAAYG;AAAA,cACzB,OAAAC;AAAA,cACA,SAAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAEF,gBAAAS,EAAC,OAAA,EAAI,WAAWE,EAAO,MAErB,UAAA;AAAA,YAAA,gBAAAC,EAACE,GAAA,EAAW,SAAQ,aAAY,UAAQ,IACrC,UAAAd,IAAU,gBAAAY,EAACG,GAAA,EAAS,OAAM,MAAA,CAAM,IAAMxB,KAAQc,EAAE,kBAAkB,GACrE;AAAA,aACEL,KAAWR,KAAS,SACpB,gBAAAoB,EAACE,GAAA,EAAW,SAAQ,WAAU,OAAM,SAAQ,UAAQ,IACjD,UAAAd,IAAU,gBAAAY,EAACG,KAAS,OAAM,OAAM,IAAKvB,EAAA,CACxC;AAAA,UAAA,EAAA,CAEJ;AAAA,QAAA,GACF;AAAA,QAECO;AAAA,QAEAF,IACC,gBAAAe;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,MAAMR;AAAA,YACN,WAAS;AAAA,YACT,WAAW,gBAAAI,EAACK,GAAA,EAAK,MAAK,UAAA,CAAU;AAAA,YAChC,SAASpB;AAAA,YAER,UAAAC,KAAeO,EAAE,kBAAkB;AAAA,UAAA;AAAA,QAAA,IAEpC;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type RootLayoutHeader } from '../components';
2
+ import { type ErrorBoundaryProps, type RootLayoutHeader } from '../components';
3
3
  /** The minimal user shape `AdminRoot` reads — apps pass their own richer type via the generic. */
4
4
  export interface AdminUser {
5
5
  name?: string;
@@ -24,13 +24,20 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
24
24
  * unchanged — e.g. **`header.menu`** (`HeaderMenuItem[]`) adds items to the account menu above Sign out.
25
25
  */
26
26
  header?: RootLayoutHeader;
27
+ /**
28
+ * Wrap the page content in an `ErrorBoundary` (reset on navigation), so a crashing page shows an
29
+ * `ErrorState` inside the shell instead of a white screen. Default `true`; `false` opts out; an object
30
+ * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`).
31
+ */
32
+ errorBoundary?: boolean | Omit<ErrorBoundaryProps, 'children' | 'resetKeys'>;
27
33
  }
28
34
  /**
29
35
  * Root-route component for admin apps — it wires up the whole shell orchestration so an app only has to
30
36
  * supply `logo` + `getUser` + `onLogout`. Public pages (route id under `authRouteId`) render standalone;
31
37
  * everything else renders inside the guarded admin shell (`RootLayout` + a sidebar `UserCard`), gated by
32
38
  * `AuthGuard` (signed-out visitors bounce to `loginPath`). Logout clears the session and navigates to
33
- * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`).
39
+ * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`),
40
+ * and wraps the page in an `ErrorBoundary` that resets on navigation (`errorBoundary`, default on).
34
41
  *
35
42
  * `loginPath` is a plain string, cast loosely to the router's `to` type (the library can't know the
36
43
  * app's typed route tree). The generic `<U>` preserves the app's own user type through `getUser`.
@@ -41,4 +48,4 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
41
48
  * component: () => <AdminRoot<AuthUser> logo={<Logo />} getUser={getUser} onLogout={logout} />,
42
49
  * })
43
50
  */
44
- export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type RootLayoutHeader } from '../components';
2
+ import { type ErrorBoundaryProps, type RootLayoutHeader } from '../components';
3
3
  /** The minimal user shape `AdminRoot` reads — apps pass their own richer type via the generic. */
4
4
  export interface AdminUser {
5
5
  name?: string;
@@ -24,13 +24,20 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
24
24
  * unchanged — e.g. **`header.menu`** (`HeaderMenuItem[]`) adds items to the account menu above Sign out.
25
25
  */
26
26
  header?: RootLayoutHeader;
27
+ /**
28
+ * Wrap the page content in an `ErrorBoundary` (reset on navigation), so a crashing page shows an
29
+ * `ErrorState` inside the shell instead of a white screen. Default `true`; `false` opts out; an object
30
+ * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`).
31
+ */
32
+ errorBoundary?: boolean | Omit<ErrorBoundaryProps, 'children' | 'resetKeys'>;
27
33
  }
28
34
  /**
29
35
  * Root-route component for admin apps — it wires up the whole shell orchestration so an app only has to
30
36
  * supply `logo` + `getUser` + `onLogout`. Public pages (route id under `authRouteId`) render standalone;
31
37
  * everything else renders inside the guarded admin shell (`RootLayout` + a sidebar `UserCard`), gated by
32
38
  * `AuthGuard` (signed-out visitors bounce to `loginPath`). Logout clears the session and navigates to
33
- * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`).
39
+ * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`),
40
+ * and wraps the page in an `ErrorBoundary` that resets on navigation (`errorBoundary`, default on).
34
41
  *
35
42
  * `loginPath` is a plain string, cast loosely to the router's `to` type (the library can't know the
36
43
  * app's typed route tree). The generic `<U>` preserves the app's own user type through `getUser`.
@@ -41,4 +48,4 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
41
48
  * component: () => <AdminRoot<AuthUser> logo={<Logo />} getUser={getUser} onLogout={logout} />,
42
49
  * })
43
50
  */
44
- export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
51
+ export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-DeGgilkH.cjs");exports.Alert=e.Alert;exports.default=e.Alert;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Alert-VFQuuII6.cjs");exports.Alert=e.Alert;exports.default=e.Alert;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { A as r, A as t } from "../../Alert-rNjfqj2Z.js";
1
+ import { A as r, A as t } from "../../Alert-CJono1TJ.js";
2
2
  export {
3
3
  r as Alert,
4
4
  t as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../AuthLayout-ChILVWZ-.cjs");exports.AuthLayout=t.AuthLayout;exports.default=t.AuthLayout;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../AuthLayout-QAtW2GAT.cjs");exports.AuthLayout=t.AuthLayout;exports.default=t.AuthLayout;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { A as o, A as u } from "../../AuthLayout-zAS3jlYc.js";
1
+ import { A as o, A as u } from "../../AuthLayout-DOFYw_z5.js";
2
2
  export {
3
3
  o as AuthLayout,
4
4
  u as default
@@ -18,11 +18,17 @@ export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color
18
18
  shape?: AvatarShape;
19
19
  /** Theme palette token for the icon/initials background. Defaults to `accent`. */
20
20
  color?: ThemeColor;
21
+ /**
22
+ * Render a skeleton disc (same size / shape) instead of any content — while the user is still being
23
+ * fetched. An image avatar also shows the skeleton on its own until the photo has loaded. Defaults to `false`.
24
+ */
25
+ loading?: boolean;
21
26
  }
22
27
  /**
23
28
  * A user avatar that shows — in priority order — an image (`src`), an `icon`, explicit `children`
24
29
  * (e.g. initials `"D.S."`), initials derived from `name`, or a default user icon. If the image fails
25
- * to load it falls back automatically. The icon/initials background is tinted by `color` via the
30
+ * to load it falls back automatically; until it has loaded (and whenever `loading` is set) a `Skeleton`
31
+ * of the same size / shape stands in. The icon/initials background is tinted by `color` via the
26
32
  * shared `--tz-btn-rgb` / `--tz-btn-on` pattern. Token-only styling; pairs with `AvatarGroup`.
27
33
  */
28
34
  export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -18,11 +18,17 @@ export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color
18
18
  shape?: AvatarShape;
19
19
  /** Theme palette token for the icon/initials background. Defaults to `accent`. */
20
20
  color?: ThemeColor;
21
+ /**
22
+ * Render a skeleton disc (same size / shape) instead of any content — while the user is still being
23
+ * fetched. An image avatar also shows the skeleton on its own until the photo has loaded. Defaults to `false`.
24
+ */
25
+ loading?: boolean;
21
26
  }
22
27
  /**
23
28
  * A user avatar that shows — in priority order — an image (`src`), an `icon`, explicit `children`
24
29
  * (e.g. initials `"D.S."`), initials derived from `name`, or a default user icon. If the image fails
25
- * to load it falls back automatically. The icon/initials background is tinted by `color` via the
30
+ * to load it falls back automatically; until it has loaded (and whenever `loading` is set) a `Skeleton`
31
+ * of the same size / shape stands in. The icon/initials background is tinted by `color` via the
26
32
  * shared `--tz-btn-rgb` / `--tz-btn-on` pattern. Token-only styling; pairs with `AvatarGroup`.
27
33
  */
28
34
  export declare const Avatar: import("react").ForwardRefExoticComponent<AvatarProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../Avatar-D_YivyqV.cjs"),a=require("../../AvatarGroup-Bnf_RSc9.cjs");exports.Avatar=r.Avatar;exports.default=r.Avatar;exports.AvatarGroup=a.AvatarGroup;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../Avatar-DrV_F7Ex.cjs"),a=require("../../AvatarGroup-CHesdo-M.cjs");exports.Avatar=r.Avatar;exports.default=r.Avatar;exports.AvatarGroup=a.AvatarGroup;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { A as o, A as t } from "../../Avatar-BGPGxry2.js";
2
- import { A as e } from "../../AvatarGroup-Difz4lLR.js";
1
+ import { A as o, A as t } from "../../Avatar-DXNPg23a.js";
2
+ import { A as e } from "../../AvatarGroup-CwlYqDCI.js";
3
3
  export {
4
4
  o as Avatar,
5
5
  e as AvatarGroup,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-CGcpMlxm.cjs");exports.Breadcrumbs=e.Breadcrumbs;exports.default=e.Breadcrumbs;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-DCEHxpSi.cjs");exports.Breadcrumbs=e.Breadcrumbs;exports.default=e.Breadcrumbs;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { B as e, B as s } from "../../Breadcrumbs-BJHKk0Sn.js";
1
+ import { B as e, B as s } from "../../Breadcrumbs-XWU8tRvs.js";
2
2
  export {
3
3
  e as Breadcrumbs,
4
4
  s as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-BZ_o-akc.cjs");exports.Button=t.Button;exports.default=t.Button;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../Button-CusxDmfq.cjs");exports.Button=t.Button;exports.default=t.Button;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { B as o, B } from "../../Button-obe6rono.js";
1
+ import { B as o, B } from "../../Button-CWMNNiia.js";
2
2
  export {
3
3
  o as Button,
4
4
  B as default
@@ -26,6 +26,8 @@ export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
26
26
  defaultCollapsed?: boolean;
27
27
  /** Fires with the next collapsed state when the toggle is clicked. */
28
28
  onCollapsedChange?: (collapsed: boolean) => void;
29
+ /** Replace the body with skeleton lines while its data loads (header + footer stay). Defaults to `false`. */
30
+ loading?: boolean;
29
31
  /** Card body. */
30
32
  children?: ReactNode;
31
33
  }
@@ -26,6 +26,8 @@ export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
26
26
  defaultCollapsed?: boolean;
27
27
  /** Fires with the next collapsed state when the toggle is clicked. */
28
28
  onCollapsedChange?: (collapsed: boolean) => void;
29
+ /** Replace the body with skeleton lines while its data loads (header + footer stay). Defaults to `false`. */
30
+ loading?: boolean;
29
31
  /** Card body. */
30
32
  children?: ReactNode;
31
33
  }
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-KvvNlchc.cjs");exports.Card=e.Card;exports.default=e.Card;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-CUUh4mlB.cjs");exports.Card=e.Card;exports.default=e.Card;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C, C as d } from "../../Card-BRJV2JZE.js";
1
+ import { C, C as d } from "../../Card-MxYfQTOY.js";
2
2
  export {
3
3
  C as Card,
4
4
  d as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Checkbox-fzJCwe0j.cjs");exports.Checkbox=e.Checkbox;exports.default=e.Checkbox;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Checkbox-CTp1xFW7.cjs");exports.Checkbox=e.Checkbox;exports.default=e.Checkbox;
2
2
  //# sourceMappingURL=index.cjs.map