@techzyapp/ui-library 1.0.32 → 1.0.34

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 (481) hide show
  1. package/dist/AdminRoot-C_SNXQkB.js +107 -0
  2. package/dist/AdminRoot-C_SNXQkB.js.map +1 -0
  3. package/dist/AdminRoot-D97qDVTM.cjs +2 -0
  4. package/dist/AdminRoot-D97qDVTM.cjs.map +1 -0
  5. package/dist/{Alert-B7w9xD2p.js → Alert-BXtQFAVl.js} +3 -3
  6. package/dist/{Alert-B7w9xD2p.js.map → Alert-BXtQFAVl.js.map} +1 -1
  7. package/dist/{Alert-B9l1VhIr.cjs → Alert-CggrNMn5.cjs} +2 -2
  8. package/dist/{Alert-B9l1VhIr.cjs.map → Alert-CggrNMn5.cjs.map} +1 -1
  9. package/dist/{AuthLayout-m1BQ6Ixx.js → AuthLayout-C47vXKYp.js} +2 -2
  10. package/dist/{AuthLayout-m1BQ6Ixx.js.map → AuthLayout-C47vXKYp.js.map} +1 -1
  11. package/dist/{AuthLayout-DIcR__vo.cjs → AuthLayout-Cl3tb4-E.cjs} +2 -2
  12. package/dist/{AuthLayout-DIcR__vo.cjs.map → AuthLayout-Cl3tb4-E.cjs.map} +1 -1
  13. package/dist/{Breadcrumbs-B1JMwCjO.cjs → Breadcrumbs-Cpa_LSY2.cjs} +2 -2
  14. package/dist/{Breadcrumbs-B1JMwCjO.cjs.map → Breadcrumbs-Cpa_LSY2.cjs.map} +1 -1
  15. package/dist/{Breadcrumbs-Cl1CgKkk.js → Breadcrumbs-D_QnKw8q.js} +3 -3
  16. package/dist/{Breadcrumbs-Cl1CgKkk.js.map → Breadcrumbs-D_QnKw8q.js.map} +1 -1
  17. package/dist/{Button-BJ5Xd10u.js → Button-BQ7jsm5P.js} +2 -2
  18. package/dist/{Button-BJ5Xd10u.js.map → Button-BQ7jsm5P.js.map} +1 -1
  19. package/dist/{Button-BZq1mIUH.cjs → Button-Cm64ROip.cjs} +2 -2
  20. package/dist/{Button-BZq1mIUH.cjs.map → Button-Cm64ROip.cjs.map} +1 -1
  21. package/dist/{Calendar-rRPnaU9M.js → Calendar-BrpJOBTt.js} +3 -3
  22. package/dist/{Calendar-rRPnaU9M.js.map → Calendar-BrpJOBTt.js.map} +1 -1
  23. package/dist/{Calendar-r-dDXWEp.cjs → Calendar-C2x9ZtPV.cjs} +2 -2
  24. package/dist/{Calendar-r-dDXWEp.cjs.map → Calendar-C2x9ZtPV.cjs.map} +1 -1
  25. package/dist/{Card-Cr3D2bzJ.js → Card-kizK1B7N.js} +2 -2
  26. package/dist/{Card-Cr3D2bzJ.js.map → Card-kizK1B7N.js.map} +1 -1
  27. package/dist/{Card-KsczbH5c.cjs → Card-yhly3Xdp.cjs} +2 -2
  28. package/dist/{Card-KsczbH5c.cjs.map → Card-yhly3Xdp.cjs.map} +1 -1
  29. package/dist/{Chip-BZ3I4Lbe.cjs → Chip-BPcnO5WI.cjs} +2 -2
  30. package/dist/{Chip-BZ3I4Lbe.cjs.map → Chip-BPcnO5WI.cjs.map} +1 -1
  31. package/dist/{Chip-DEp1zWh1.js → Chip-BzyzLEeX.js} +2 -2
  32. package/dist/{Chip-DEp1zWh1.js.map → Chip-BzyzLEeX.js.map} +1 -1
  33. package/dist/{ChoiceCardGroup-BTbKjJdp.js → ChoiceCardGroup-BBD8ai4s.js} +2 -2
  34. package/dist/{ChoiceCardGroup-BTbKjJdp.js.map → ChoiceCardGroup-BBD8ai4s.js.map} +1 -1
  35. package/dist/{ChoiceCardGroup-Bg2jtFpe.cjs → ChoiceCardGroup-BWsG_Vh5.cjs} +2 -2
  36. package/dist/{ChoiceCardGroup-Bg2jtFpe.cjs.map → ChoiceCardGroup-BWsG_Vh5.cjs.map} +1 -1
  37. package/dist/{CodeBlock-CMHqvoBJ.js → CodeBlock-BTt40oh5.js} +3 -3
  38. package/dist/{CodeBlock-CMHqvoBJ.js.map → CodeBlock-BTt40oh5.js.map} +1 -1
  39. package/dist/{CodeBlock-DIkyeG4S.cjs → CodeBlock-BgSum_bB.cjs} +2 -2
  40. package/dist/{CodeBlock-DIkyeG4S.cjs.map → CodeBlock-BgSum_bB.cjs.map} +1 -1
  41. package/dist/{ColorPicker-5SMyU5oh.js → ColorPicker-BNM75F5E.js} +4 -4
  42. package/dist/{ColorPicker-5SMyU5oh.js.map → ColorPicker-BNM75F5E.js.map} +1 -1
  43. package/dist/{ColorPicker-B1riGs1z.cjs → ColorPicker-C33dlkhN.cjs} +2 -2
  44. package/dist/{ColorPicker-B1riGs1z.cjs.map → ColorPicker-C33dlkhN.cjs.map} +1 -1
  45. package/dist/{ColorPickerPanel-CzBlh0zw.cjs → ColorPickerPanel-BZ_ZNu2B.cjs} +2 -2
  46. package/dist/{ColorPickerPanel-CzBlh0zw.cjs.map → ColorPickerPanel-BZ_ZNu2B.cjs.map} +1 -1
  47. package/dist/{ColorPickerPanel-4Y6oXL7v.js → ColorPickerPanel-Bh1K0YS8.js} +2 -2
  48. package/dist/{ColorPickerPanel-4Y6oXL7v.js.map → ColorPickerPanel-Bh1K0YS8.js.map} +1 -1
  49. package/dist/{ColorRamp-D_h-hp7n.cjs → ColorRamp-BJWNKzoX.cjs} +2 -2
  50. package/dist/{ColorRamp-D_h-hp7n.cjs.map → ColorRamp-BJWNKzoX.cjs.map} +1 -1
  51. package/dist/{ColorRamp-Qc8ZtPDh.js → ColorRamp-BnuXrSxa.js} +3 -3
  52. package/dist/{ColorRamp-Qc8ZtPDh.js.map → ColorRamp-BnuXrSxa.js.map} +1 -1
  53. package/dist/{ConfigProvider-D2svpXFu.js → ConfigProvider-DZMtq2Fz.js} +2 -2
  54. package/dist/ConfigProvider-DZMtq2Fz.js.map +1 -0
  55. package/dist/{ConfigProvider-CzAQf_d_.cjs → ConfigProvider-th4GYhcU.cjs} +2 -2
  56. package/dist/ConfigProvider-th4GYhcU.cjs.map +1 -0
  57. package/dist/{CopyButton-DUtx2-Gi.cjs → CopyButton-C9oHGs6W.cjs} +2 -2
  58. package/dist/{CopyButton-DUtx2-Gi.cjs.map → CopyButton-C9oHGs6W.cjs.map} +1 -1
  59. package/dist/{CopyButton-BNcW9-KU.js → CopyButton-hZqLdXJq.js} +3 -3
  60. package/dist/{CopyButton-BNcW9-KU.js.map → CopyButton-hZqLdXJq.js.map} +1 -1
  61. package/dist/{DatePicker-D2PyGdec.js → DatePicker-B6ZL_T-E.js} +5 -5
  62. package/dist/{DatePicker-D2PyGdec.js.map → DatePicker-B6ZL_T-E.js.map} +1 -1
  63. package/dist/{DatePicker-D_PqDvKt.cjs → DatePicker-DXwJB4MH.cjs} +2 -2
  64. package/dist/{DatePicker-D_PqDvKt.cjs.map → DatePicker-DXwJB4MH.cjs.map} +1 -1
  65. package/dist/{DateTimePicker-DdXFzqO_.js → DateTimePicker-BynW1Eeg.js} +8 -8
  66. package/dist/{DateTimePicker-DdXFzqO_.js.map → DateTimePicker-BynW1Eeg.js.map} +1 -1
  67. package/dist/{DateTimePicker-C3Kq5hKE.cjs → DateTimePicker-CHi1H2k1.cjs} +2 -2
  68. package/dist/{DateTimePicker-C3Kq5hKE.cjs.map → DateTimePicker-CHi1H2k1.cjs.map} +1 -1
  69. package/dist/{DescriptionList-C7AOcw_2.cjs → DescriptionList-BqYwp08t.cjs} +2 -2
  70. package/dist/{DescriptionList-C7AOcw_2.cjs.map → DescriptionList-BqYwp08t.cjs.map} +1 -1
  71. package/dist/{DescriptionList-DxRgKNEJ.js → DescriptionList-C6Gfk6I_.js} +5 -5
  72. package/dist/{DescriptionList-DxRgKNEJ.js.map → DescriptionList-C6Gfk6I_.js.map} +1 -1
  73. package/dist/{EmptyState-CvpKSYY4.js → EmptyState-BvAA5mYO.js} +2 -2
  74. package/dist/{EmptyState-CvpKSYY4.js.map → EmptyState-BvAA5mYO.js.map} +1 -1
  75. package/dist/{EmptyState-ECc6e_En.cjs → EmptyState-CZ6X5-Zy.cjs} +2 -2
  76. package/dist/{EmptyState-ECc6e_En.cjs.map → EmptyState-CZ6X5-Zy.cjs.map} +1 -1
  77. package/dist/ErrorBoundary-BS0x9RVO.js +57 -0
  78. package/dist/ErrorBoundary-BS0x9RVO.js.map +1 -0
  79. package/dist/ErrorBoundary-WwmJrL6o.cjs +2 -0
  80. package/dist/ErrorBoundary-WwmJrL6o.cjs.map +1 -0
  81. package/dist/ErrorState-BTSGKrJq.js +178 -0
  82. package/dist/ErrorState-BTSGKrJq.js.map +1 -0
  83. package/dist/ErrorState-DRXuV6na.cjs +4 -0
  84. package/dist/ErrorState-DRXuV6na.cjs.map +1 -0
  85. package/dist/{FileCard-D4t0-ms2.js → FileCard-CxZ3o4BO.js} +4 -4
  86. package/dist/{FileCard-D4t0-ms2.js.map → FileCard-CxZ3o4BO.js.map} +1 -1
  87. package/dist/{FileCard-Bjqsgi7S.cjs → FileCard-ZZNd_tUN.cjs} +2 -2
  88. package/dist/{FileCard-Bjqsgi7S.cjs.map → FileCard-ZZNd_tUN.cjs.map} +1 -1
  89. package/dist/{FileUploader-DWM8WrY6.cjs → FileUploader-B--hPV3b.cjs} +2 -2
  90. package/dist/{FileUploader-DWM8WrY6.cjs.map → FileUploader-B--hPV3b.cjs.map} +1 -1
  91. package/dist/{FileUploader-DdcvZoUb.js → FileUploader-CPah0hUe.js} +6 -6
  92. package/dist/{FileUploader-DdcvZoUb.js.map → FileUploader-CPah0hUe.js.map} +1 -1
  93. package/dist/{Flag-D5rqScYG.cjs → Flag-C4La35rA.cjs} +2 -2
  94. package/dist/{Flag-D5rqScYG.cjs.map → Flag-C4La35rA.cjs.map} +1 -1
  95. package/dist/{Flag-BLEBMdb-.js → Flag-DikEV1jI.js} +2 -2
  96. package/dist/{Flag-BLEBMdb-.js.map → Flag-DikEV1jI.js.map} +1 -1
  97. package/dist/{FullscreenToggle-DZnKK1Lj.js → FullscreenToggle-CTt7_Kv_.js} +3 -3
  98. package/dist/{FullscreenToggle-DZnKK1Lj.js.map → FullscreenToggle-CTt7_Kv_.js.map} +1 -1
  99. package/dist/{FullscreenToggle-CZoc5pYg.cjs → FullscreenToggle-ejjFFd9a.cjs} +2 -2
  100. package/dist/{FullscreenToggle-CZoc5pYg.cjs.map → FullscreenToggle-ejjFFd9a.cjs.map} +1 -1
  101. package/dist/{IconButton-CqFgam3J.js → IconButton-BUmXN_lD.js} +2 -2
  102. package/dist/{IconButton-CqFgam3J.js.map → IconButton-BUmXN_lD.js.map} +1 -1
  103. package/dist/{IconButton-V8tjArlt.cjs → IconButton-CYMvszcM.cjs} +2 -2
  104. package/dist/{IconButton-V8tjArlt.cjs.map → IconButton-CYMvszcM.cjs.map} +1 -1
  105. package/dist/{Loader-CqRaCdzF.cjs → Loader-DkwiCGbB.cjs} +2 -2
  106. package/dist/{Loader-CqRaCdzF.cjs.map → Loader-DkwiCGbB.cjs.map} +1 -1
  107. package/dist/{Loader-Bsz0BkGr.js → Loader-jh7XMRhy.js} +2 -2
  108. package/dist/{Loader-Bsz0BkGr.js.map → Loader-jh7XMRhy.js.map} +1 -1
  109. package/dist/{LocationPicker-DtMDpPFZ.js → LocationPicker-Cdm7BCX5.js} +7 -7
  110. package/dist/{LocationPicker-DtMDpPFZ.js.map → LocationPicker-Cdm7BCX5.js.map} +1 -1
  111. package/dist/{LocationPicker-BRGNcTd_.cjs → LocationPicker-D-9mrCVD.cjs} +2 -2
  112. package/dist/{LocationPicker-BRGNcTd_.cjs.map → LocationPicker-D-9mrCVD.cjs.map} +1 -1
  113. package/dist/{Modal-DCee1a9m.js → Modal-CrvOHbNy.js} +3 -3
  114. package/dist/{Modal-DCee1a9m.js.map → Modal-CrvOHbNy.js.map} +1 -1
  115. package/dist/{Modal-CcrqM4kn.cjs → Modal-eI6QL-LM.cjs} +2 -2
  116. package/dist/{Modal-CcrqM4kn.cjs.map → Modal-eI6QL-LM.cjs.map} +1 -1
  117. package/dist/{MultiSelect-JQ6iKHyI.js → MultiSelect-BTilYrXp.js} +5 -5
  118. package/dist/{MultiSelect-JQ6iKHyI.js.map → MultiSelect-BTilYrXp.js.map} +1 -1
  119. package/dist/{MultiSelect-BJ-qMpA5.cjs → MultiSelect-B_Jenpgv.cjs} +2 -2
  120. package/dist/{MultiSelect-BJ-qMpA5.cjs.map → MultiSelect-B_Jenpgv.cjs.map} +1 -1
  121. package/dist/{MultilineTextField-BgfBFeeF.js → MultilineTextField-DJ26nTdF.js} +2 -2
  122. package/dist/{MultilineTextField-BgfBFeeF.js.map → MultilineTextField-DJ26nTdF.js.map} +1 -1
  123. package/dist/{MultilineTextField-B6EYAdik.cjs → MultilineTextField-ihcPDX3D.cjs} +2 -2
  124. package/dist/{MultilineTextField-B6EYAdik.cjs.map → MultilineTextField-ihcPDX3D.cjs.map} +1 -1
  125. package/dist/{NumberField-Bf-vDNLy.js → NumberField-DEoaxFJj.js} +4 -4
  126. package/dist/{NumberField-Bf-vDNLy.js.map → NumberField-DEoaxFJj.js.map} +1 -1
  127. package/dist/{NumberField-mZjwZB8E.cjs → NumberField-czWHuAyt.cjs} +2 -2
  128. package/dist/{NumberField-mZjwZB8E.cjs.map → NumberField-czWHuAyt.cjs.map} +1 -1
  129. package/dist/{OtpField-TdjMkgQi.cjs → OtpField-DK5KikOt.cjs} +2 -2
  130. package/dist/{OtpField-TdjMkgQi.cjs.map → OtpField-DK5KikOt.cjs.map} +1 -1
  131. package/dist/{OtpField-DaAIBp6C.js → OtpField-v2RuXdsE.js} +3 -3
  132. package/dist/{OtpField-DaAIBp6C.js.map → OtpField-v2RuXdsE.js.map} +1 -1
  133. package/dist/PageError-CIVYNLTW.cjs +2 -0
  134. package/dist/PageError-CIVYNLTW.cjs.map +1 -0
  135. package/dist/PageError-CyMdVrxL.js +70 -0
  136. package/dist/PageError-CyMdVrxL.js.map +1 -0
  137. package/dist/{PageLayout-Bwv8Oohb.js → PageLayout-BtukUUfe.js} +2 -2
  138. package/dist/{PageLayout-Bwv8Oohb.js.map → PageLayout-BtukUUfe.js.map} +1 -1
  139. package/dist/{PageLayout-BoHvt2cT.cjs → PageLayout-C_daDKkg.cjs} +2 -2
  140. package/dist/{PageLayout-BoHvt2cT.cjs.map → PageLayout-C_daDKkg.cjs.map} +1 -1
  141. package/dist/PageNotFound-CHb8DlqC.cjs +2 -0
  142. package/dist/PageNotFound-CHb8DlqC.cjs.map +1 -0
  143. package/dist/PageNotFound-DQ-OvU_O.js +24 -0
  144. package/dist/PageNotFound-DQ-OvU_O.js.map +1 -0
  145. package/dist/{Pagination-C0xr3D-g.js → Pagination-BjufY1mt.js} +2 -2
  146. package/dist/{Pagination-C0xr3D-g.js.map → Pagination-BjufY1mt.js.map} +1 -1
  147. package/dist/{Pagination-DzkTjEZL.cjs → Pagination-jLyJa8iL.cjs} +2 -2
  148. package/dist/{Pagination-DzkTjEZL.cjs.map → Pagination-jLyJa8iL.cjs.map} +1 -1
  149. package/dist/{PaletteField-CQV2dll0.cjs → PaletteField-DGaV7VJ9.cjs} +2 -2
  150. package/dist/{PaletteField-CQV2dll0.cjs.map → PaletteField-DGaV7VJ9.cjs.map} +1 -1
  151. package/dist/{PaletteField-CQv6MBKe.js → PaletteField-DTfV8Lny.js} +3 -3
  152. package/dist/{PaletteField-CQv6MBKe.js.map → PaletteField-DTfV8Lny.js.map} +1 -1
  153. package/dist/{PhoneField-Bqj5-33G.js → PhoneField-BSIhBMW2.js} +5 -5
  154. package/dist/{PhoneField-Bqj5-33G.js.map → PhoneField-BSIhBMW2.js.map} +1 -1
  155. package/dist/{PhoneField-Dzdm5hfY.cjs → PhoneField-DchrnSiE.cjs} +2 -2
  156. package/dist/{PhoneField-Dzdm5hfY.cjs.map → PhoneField-DchrnSiE.cjs.map} +1 -1
  157. package/dist/{Popconfirm-DS6tCxV0.cjs → Popconfirm-l9au66oY.cjs} +2 -2
  158. package/dist/{Popconfirm-DS6tCxV0.cjs.map → Popconfirm-l9au66oY.cjs.map} +1 -1
  159. package/dist/{Popconfirm-CYkwGTh-.js → Popconfirm-p2O8Vmz0.js} +3 -3
  160. package/dist/{Popconfirm-CYkwGTh-.js.map → Popconfirm-p2O8Vmz0.js.map} +1 -1
  161. package/dist/{Progress-DZUtn3Sh.js → Progress-C-VGs3yJ.js} +2 -2
  162. package/dist/{Progress-DZUtn3Sh.js.map → Progress-C-VGs3yJ.js.map} +1 -1
  163. package/dist/{Progress-lf9vIKIk.cjs → Progress-Cqr2_BF1.cjs} +2 -2
  164. package/dist/{Progress-lf9vIKIk.cjs.map → Progress-Cqr2_BF1.cjs.map} +1 -1
  165. package/dist/{QrCode-osD23Vkt.js → QrCode-B9YbQNVc.js} +2 -2
  166. package/dist/{QrCode-osD23Vkt.js.map → QrCode-B9YbQNVc.js.map} +1 -1
  167. package/dist/{QrCode-BQ1eUiAJ.cjs → QrCode-CNVYpz9j.cjs} +2 -2
  168. package/dist/{QrCode-BQ1eUiAJ.cjs.map → QrCode-CNVYpz9j.cjs.map} +1 -1
  169. package/dist/{RadioGroup-CvC2yc4p.cjs → RadioGroup-687BVZ7k.cjs} +2 -2
  170. package/dist/{RadioGroup-CvC2yc4p.cjs.map → RadioGroup-687BVZ7k.cjs.map} +1 -1
  171. package/dist/{RadioGroup-CTAayuMv.js → RadioGroup-CD209tlb.js} +2 -2
  172. package/dist/{RadioGroup-CTAayuMv.js.map → RadioGroup-CD209tlb.js.map} +1 -1
  173. package/dist/{RemoveDialog-DaWh4xmW.js → RemoveDialog-BKgWohkG.js} +6 -6
  174. package/dist/{RemoveDialog-DaWh4xmW.js.map → RemoveDialog-BKgWohkG.js.map} +1 -1
  175. package/dist/{RemoveDialog-Csfhv9ve.cjs → RemoveDialog-eGCbOuuM.cjs} +2 -2
  176. package/dist/{RemoveDialog-Csfhv9ve.cjs.map → RemoveDialog-eGCbOuuM.cjs.map} +1 -1
  177. package/dist/{RichTextEditor-Eo8uLXlI.cjs → RichTextEditor-BPAD4ISz.cjs} +2 -2
  178. package/dist/{RichTextEditor-Eo8uLXlI.cjs.map → RichTextEditor-BPAD4ISz.cjs.map} +1 -1
  179. package/dist/{RichTextEditor-BLEDQq2H.js → RichTextEditor-C24uBIWh.js} +8 -8
  180. package/dist/{RichTextEditor-BLEDQq2H.js.map → RichTextEditor-C24uBIWh.js.map} +1 -1
  181. package/dist/RootLayout-BY_BxQ0C.cjs +2 -0
  182. package/dist/RootLayout-BY_BxQ0C.cjs.map +1 -0
  183. package/dist/RootLayout-CicjlAUF.js +641 -0
  184. package/dist/RootLayout-CicjlAUF.js.map +1 -0
  185. package/dist/{Select-CH3mF6y1.cjs → Select-BbgueWwN.cjs} +2 -2
  186. package/dist/{Select-CH3mF6y1.cjs.map → Select-BbgueWwN.cjs.map} +1 -1
  187. package/dist/{Select-C0UBQXhg.js → Select-DEi_ZUHR.js} +4 -4
  188. package/dist/{Select-C0UBQXhg.js.map → Select-DEi_ZUHR.js.map} +1 -1
  189. package/dist/{Sidebar-6wu2fuPT.cjs → Sidebar-D-nR8Cu6.cjs} +2 -2
  190. package/dist/{Sidebar-6wu2fuPT.cjs.map → Sidebar-D-nR8Cu6.cjs.map} +1 -1
  191. package/dist/{Sidebar--rOPtrqa.js → Sidebar-nORfjIg8.js} +4 -4
  192. package/dist/{Sidebar--rOPtrqa.js.map → Sidebar-nORfjIg8.js.map} +1 -1
  193. package/dist/{Slider-Cu1FhxR2.cjs → Slider-0joKXhPo.cjs} +2 -2
  194. package/dist/{Slider-Cu1FhxR2.cjs.map → Slider-0joKXhPo.cjs.map} +1 -1
  195. package/dist/{Slider-DoQJWgGU.js → Slider-CwZYxDO0.js} +2 -2
  196. package/dist/{Slider-DoQJWgGU.js.map → Slider-CwZYxDO0.js.map} +1 -1
  197. package/dist/{SpeedDial-BIodC6td.js → SpeedDial-BMpJtYP6.js} +2 -2
  198. package/dist/{SpeedDial-BIodC6td.js.map → SpeedDial-BMpJtYP6.js.map} +1 -1
  199. package/dist/{SpeedDial-BtxXH6Ij.cjs → SpeedDial-D5uk_E5v.cjs} +2 -2
  200. package/dist/{SpeedDial-BtxXH6Ij.cjs.map → SpeedDial-D5uk_E5v.cjs.map} +1 -1
  201. package/dist/{Stepper-B38I8PBS.cjs → Stepper-BRksGDK1.cjs} +2 -2
  202. package/dist/{Stepper-B38I8PBS.cjs.map → Stepper-BRksGDK1.cjs.map} +1 -1
  203. package/dist/{Stepper-CPBPTxbP.js → Stepper-D8bRyyhl.js} +2 -2
  204. package/dist/{Stepper-CPBPTxbP.js.map → Stepper-D8bRyyhl.js.map} +1 -1
  205. package/dist/{SwatchPicker-CpwVq0xp.cjs → SwatchPicker-BVW_yhRU.cjs} +2 -2
  206. package/dist/{SwatchPicker-CpwVq0xp.cjs.map → SwatchPicker-BVW_yhRU.cjs.map} +1 -1
  207. package/dist/{SwatchPicker-BAKslSY4.js → SwatchPicker-C-_wLaf6.js} +2 -2
  208. package/dist/{SwatchPicker-BAKslSY4.js.map → SwatchPicker-C-_wLaf6.js.map} +1 -1
  209. package/dist/{Table-BV-dr36o.js → Table-C0RDylA0.js} +155 -154
  210. package/dist/Table-C0RDylA0.js.map +1 -0
  211. package/dist/Table-CGIip6UL.cjs +2 -0
  212. package/dist/Table-CGIip6UL.cjs.map +1 -0
  213. package/dist/{Tabs-DIs8iFA-.cjs → Tabs-BzbSNmBj.cjs} +2 -2
  214. package/dist/{Tabs-DIs8iFA-.cjs.map → Tabs-BzbSNmBj.cjs.map} +1 -1
  215. package/dist/{Tabs-RjyUkLTB.js → Tabs-CQvfqazt.js} +2 -2
  216. package/dist/{Tabs-RjyUkLTB.js.map → Tabs-CQvfqazt.js.map} +1 -1
  217. package/dist/{TagsField-B3MtFiFs.js → TagsField-BdM-xre0.js} +5 -5
  218. package/dist/{TagsField-B3MtFiFs.js.map → TagsField-BdM-xre0.js.map} +1 -1
  219. package/dist/{TagsField-CJ10-kFr.cjs → TagsField-CGL1oI7b.cjs} +2 -2
  220. package/dist/{TagsField-CJ10-kFr.cjs.map → TagsField-CGL1oI7b.cjs.map} +1 -1
  221. package/dist/{TextField-D_hzd5Gf.cjs → TextField-D49Lpbjt.cjs} +2 -2
  222. package/dist/{TextField-D_hzd5Gf.cjs.map → TextField-D49Lpbjt.cjs.map} +1 -1
  223. package/dist/{TextField-CInaL0FR.js → TextField-otYGVuwF.js} +4 -4
  224. package/dist/{TextField-CInaL0FR.js.map → TextField-otYGVuwF.js.map} +1 -1
  225. package/dist/{ThemeToggle-DkhhlH_r.cjs → ThemeToggle-B8rkRTis.cjs} +2 -2
  226. package/dist/{ThemeToggle-DkhhlH_r.cjs.map → ThemeToggle-B8rkRTis.cjs.map} +1 -1
  227. package/dist/{ThemeToggle-CWfuK0tZ.js → ThemeToggle-D33Tqv2F.js} +3 -3
  228. package/dist/{ThemeToggle-CWfuK0tZ.js.map → ThemeToggle-D33Tqv2F.js.map} +1 -1
  229. package/dist/{TimeColumns-fD6dosYP.js → TimeColumns-DyjTpZbD.js} +2 -2
  230. package/dist/{TimeColumns-fD6dosYP.js.map → TimeColumns-DyjTpZbD.js.map} +1 -1
  231. package/dist/{TimeColumns-t3Pn01v5.cjs → TimeColumns-qEHHZC1N.cjs} +2 -2
  232. package/dist/{TimeColumns-t3Pn01v5.cjs.map → TimeColumns-qEHHZC1N.cjs.map} +1 -1
  233. package/dist/{TimePicker-DOwQF7sX.cjs → TimePicker-DJrNO01U.cjs} +2 -2
  234. package/dist/{TimePicker-DOwQF7sX.cjs.map → TimePicker-DJrNO01U.cjs.map} +1 -1
  235. package/dist/{TimePicker-DypTHDW0.js → TimePicker-yfYqLbj3.js} +6 -6
  236. package/dist/{TimePicker-DypTHDW0.js.map → TimePicker-yfYqLbj3.js.map} +1 -1
  237. package/dist/{Toaster-DdUOwi7L.cjs → Toaster-B7Xd2IaM.cjs} +2 -2
  238. package/dist/{Toaster-DdUOwi7L.cjs.map → Toaster-B7Xd2IaM.cjs.map} +1 -1
  239. package/dist/{Toaster-BwNAKDMc.js → Toaster-D8cxkhwr.js} +2 -2
  240. package/dist/{Toaster-BwNAKDMc.js.map → Toaster-D8cxkhwr.js.map} +1 -1
  241. package/dist/{TranslatedFields-D9FQlxiQ.cjs → TranslatedFields-BvqqdNWz.cjs} +2 -2
  242. package/dist/{TranslatedFields-D9FQlxiQ.cjs.map → TranslatedFields-BvqqdNWz.cjs.map} +1 -1
  243. package/dist/{TranslatedFields-C_-qPixE.js → TranslatedFields-CsSsTrnF.js} +5 -5
  244. package/dist/{TranslatedFields-C_-qPixE.js.map → TranslatedFields-CsSsTrnF.js.map} +1 -1
  245. package/dist/Typography-ChSuxgkc.js +74 -0
  246. package/dist/Typography-ChSuxgkc.js.map +1 -0
  247. package/dist/Typography-d97DdbNd.cjs +2 -0
  248. package/dist/Typography-d97DdbNd.cjs.map +1 -0
  249. package/dist/{UserCard-CwWv0HXD.js → UserCard-CsZ4Ogac.js} +4 -4
  250. package/dist/{UserCard-CwWv0HXD.js.map → UserCard-CsZ4Ogac.js.map} +1 -1
  251. package/dist/{UserCard-C-q2s2Cw.cjs → UserCard-Die7JV4z.cjs} +2 -2
  252. package/dist/{UserCard-C-q2s2Cw.cjs.map → UserCard-Die7JV4z.cjs.map} +1 -1
  253. package/dist/app/AdminRoot.d.cts +75 -4
  254. package/dist/app/AdminRoot.d.ts +75 -4
  255. package/dist/components/Alert/index.cjs +1 -1
  256. package/dist/components/Alert/index.js +1 -1
  257. package/dist/components/AuthLayout/index.cjs +1 -1
  258. package/dist/components/AuthLayout/index.js +1 -1
  259. package/dist/components/Breadcrumbs/index.cjs +1 -1
  260. package/dist/components/Breadcrumbs/index.js +1 -1
  261. package/dist/components/Button/index.cjs +1 -1
  262. package/dist/components/Button/index.js +1 -1
  263. package/dist/components/Card/index.cjs +1 -1
  264. package/dist/components/Card/index.js +1 -1
  265. package/dist/components/Chip/index.cjs +1 -1
  266. package/dist/components/Chip/index.js +1 -1
  267. package/dist/components/ChoiceCard/index.cjs +1 -1
  268. package/dist/components/ChoiceCard/index.js +1 -1
  269. package/dist/components/CodeBlock/index.cjs +1 -1
  270. package/dist/components/CodeBlock/index.js +1 -1
  271. package/dist/components/ColorPicker/index.cjs +1 -1
  272. package/dist/components/ColorPicker/index.js +1 -1
  273. package/dist/components/ColorRamp/index.cjs +1 -1
  274. package/dist/components/ColorRamp/index.js +1 -1
  275. package/dist/components/CopyButton/index.cjs +1 -1
  276. package/dist/components/CopyButton/index.js +1 -1
  277. package/dist/components/DatePicker/index.cjs +1 -1
  278. package/dist/components/DatePicker/index.js +1 -1
  279. package/dist/components/DateTimePicker/index.cjs +1 -1
  280. package/dist/components/DateTimePicker/index.js +1 -1
  281. package/dist/components/DescriptionList/index.cjs +1 -1
  282. package/dist/components/DescriptionList/index.js +1 -1
  283. package/dist/components/EmptyState/index.cjs +1 -1
  284. package/dist/components/EmptyState/index.js +1 -1
  285. package/dist/components/ErrorState/ErrorBoundary.d.cts +3 -3
  286. package/dist/components/ErrorState/ErrorBoundary.d.ts +3 -3
  287. package/dist/components/ErrorState/ErrorDetailsModal.d.cts +12 -0
  288. package/dist/components/ErrorState/ErrorDetailsModal.d.ts +12 -0
  289. package/dist/components/ErrorState/ErrorState.d.cts +45 -18
  290. package/dist/components/ErrorState/ErrorState.d.ts +45 -18
  291. package/dist/components/ErrorState/QueryError.d.cts +3 -3
  292. package/dist/components/ErrorState/QueryError.d.ts +3 -3
  293. package/dist/components/ErrorState/errorMessage.d.cts +35 -3
  294. package/dist/components/ErrorState/errorMessage.d.ts +35 -3
  295. package/dist/components/ErrorState/index.cjs +1 -1
  296. package/dist/components/ErrorState/index.d.cts +2 -2
  297. package/dist/components/ErrorState/index.d.ts +2 -2
  298. package/dist/components/ErrorState/index.js +15 -10
  299. package/dist/components/ErrorState/index.js.map +1 -1
  300. package/dist/components/FileCard/index.cjs +1 -1
  301. package/dist/components/FileCard/index.js +1 -1
  302. package/dist/components/FileUploader/index.cjs +1 -1
  303. package/dist/components/FileUploader/index.js +1 -1
  304. package/dist/components/Flag/index.cjs +1 -1
  305. package/dist/components/Flag/index.js +1 -1
  306. package/dist/components/FullscreenToggle/index.cjs +1 -1
  307. package/dist/components/FullscreenToggle/index.js +1 -1
  308. package/dist/components/IconButton/index.cjs +1 -1
  309. package/dist/components/IconButton/index.js +1 -1
  310. package/dist/components/Loader/index.cjs +1 -1
  311. package/dist/components/Loader/index.js +1 -1
  312. package/dist/components/LocationPicker/index.cjs +1 -1
  313. package/dist/components/LocationPicker/index.js +1 -1
  314. package/dist/components/Modal/index.cjs +1 -1
  315. package/dist/components/Modal/index.js +1 -1
  316. package/dist/components/MultiSelect/MultiSelect.d.cts +1 -1
  317. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  318. package/dist/components/MultiSelect/index.cjs +1 -1
  319. package/dist/components/MultiSelect/index.js +1 -1
  320. package/dist/components/MultilineTextField/index.cjs +1 -1
  321. package/dist/components/MultilineTextField/index.js +1 -1
  322. package/dist/components/NumberField/index.cjs +1 -1
  323. package/dist/components/NumberField/index.js +1 -1
  324. package/dist/components/OptionMenu/OptionMenu.d.cts +1 -1
  325. package/dist/components/OptionMenu/OptionMenu.d.ts +1 -1
  326. package/dist/components/OtpField/index.cjs +1 -1
  327. package/dist/components/OtpField/index.js +1 -1
  328. package/dist/components/PageError/PageError.d.cts +53 -0
  329. package/dist/components/PageError/PageError.d.ts +53 -0
  330. package/dist/components/PageError/index.cjs +2 -0
  331. package/dist/components/PageError/index.cjs.map +1 -0
  332. package/dist/components/PageError/index.d.cts +2 -0
  333. package/dist/components/PageError/index.d.ts +2 -0
  334. package/dist/components/PageError/index.js +6 -0
  335. package/dist/components/PageError/index.js.map +1 -0
  336. package/dist/components/PageLayout/index.cjs +1 -1
  337. package/dist/components/PageLayout/index.js +1 -1
  338. package/dist/components/PageNotFound/index.cjs +1 -1
  339. package/dist/components/PageNotFound/index.js +1 -1
  340. package/dist/components/PageNotFound/useHomeTo.d.cts +10 -0
  341. package/dist/components/PageNotFound/useHomeTo.d.ts +10 -0
  342. package/dist/components/Pagination/index.cjs +1 -1
  343. package/dist/components/Pagination/index.js +1 -1
  344. package/dist/components/PaletteField/index.cjs +1 -1
  345. package/dist/components/PaletteField/index.js +1 -1
  346. package/dist/components/PhoneField/index.cjs +1 -1
  347. package/dist/components/PhoneField/index.js +1 -1
  348. package/dist/components/Popconfirm/index.cjs +1 -1
  349. package/dist/components/Popconfirm/index.js +1 -1
  350. package/dist/components/Progress/index.cjs +1 -1
  351. package/dist/components/Progress/index.js +1 -1
  352. package/dist/components/QrCode/index.cjs +1 -1
  353. package/dist/components/QrCode/index.js +1 -1
  354. package/dist/components/Radio/index.cjs +1 -1
  355. package/dist/components/Radio/index.js +1 -1
  356. package/dist/components/RemoveDialog/index.cjs +1 -1
  357. package/dist/components/RemoveDialog/index.js +1 -1
  358. package/dist/components/RichTextEditor/index.cjs +1 -1
  359. package/dist/components/RichTextEditor/index.js +1 -1
  360. package/dist/components/RootLayout/RootLayout.d.cts +6 -1
  361. package/dist/components/RootLayout/RootLayout.d.ts +6 -1
  362. package/dist/components/RootLayout/index.cjs +1 -1
  363. package/dist/components/RootLayout/index.js +1 -1
  364. package/dist/components/Select/Select.d.cts +1 -1
  365. package/dist/components/Select/Select.d.ts +1 -1
  366. package/dist/components/Select/index.cjs +1 -1
  367. package/dist/components/Select/index.js +1 -1
  368. package/dist/components/Sidebar/index.cjs +1 -1
  369. package/dist/components/Sidebar/index.js +1 -1
  370. package/dist/components/Slider/index.cjs +1 -1
  371. package/dist/components/Slider/index.js +1 -1
  372. package/dist/components/SpeedDial/index.cjs +1 -1
  373. package/dist/components/SpeedDial/index.js +1 -1
  374. package/dist/components/Stepper/index.cjs +1 -1
  375. package/dist/components/Stepper/index.js +1 -1
  376. package/dist/components/SwatchPicker/index.cjs +1 -1
  377. package/dist/components/SwatchPicker/index.js +1 -1
  378. package/dist/components/Table/Table.d.cts +1 -1
  379. package/dist/components/Table/Table.d.ts +1 -1
  380. package/dist/components/Table/index.cjs +1 -1
  381. package/dist/components/Table/index.js +1 -1
  382. package/dist/components/Tabs/index.cjs +1 -1
  383. package/dist/components/Tabs/index.js +1 -1
  384. package/dist/components/TagsField/TagsField.d.cts +1 -1
  385. package/dist/components/TagsField/TagsField.d.ts +1 -1
  386. package/dist/components/TagsField/index.cjs +1 -1
  387. package/dist/components/TagsField/index.js +1 -1
  388. package/dist/components/TextField/TextField.d.cts +1 -1
  389. package/dist/components/TextField/TextField.d.ts +1 -1
  390. package/dist/components/TextField/index.cjs +1 -1
  391. package/dist/components/TextField/index.js +1 -1
  392. package/dist/components/ThemeToggle/index.cjs +1 -1
  393. package/dist/components/ThemeToggle/index.js +1 -1
  394. package/dist/components/TimePicker/index.cjs +1 -1
  395. package/dist/components/TimePicker/index.js +1 -1
  396. package/dist/components/Toast/index.cjs +1 -1
  397. package/dist/components/Toast/index.js +1 -1
  398. package/dist/components/TranslatedFields/index.cjs +1 -1
  399. package/dist/components/TranslatedFields/index.js +1 -1
  400. package/dist/components/Typography/Typography.d.cts +7 -1
  401. package/dist/components/Typography/Typography.d.ts +7 -1
  402. package/dist/components/Typography/index.cjs +1 -1
  403. package/dist/components/Typography/index.js +1 -1
  404. package/dist/components/UserCard/UserCard.d.cts +1 -1
  405. package/dist/components/UserCard/UserCard.d.ts +1 -1
  406. package/dist/components/UserCard/index.cjs +1 -1
  407. package/dist/components/UserCard/index.js +1 -1
  408. package/dist/components/index.d.cts +1 -0
  409. package/dist/components/index.d.ts +1 -0
  410. package/dist/entries/app.cjs +1 -1
  411. package/dist/entries/app.d.cts +1 -1
  412. package/dist/entries/app.d.ts +1 -1
  413. package/dist/entries/app.js +1 -1
  414. package/dist/entries/components.cjs +1 -1
  415. package/dist/entries/components.js +168 -161
  416. package/dist/entries/components.js.map +1 -1
  417. package/dist/entries/i18n.cjs +1 -1
  418. package/dist/entries/i18n.js +2 -2
  419. package/dist/entries/theme.cjs +1 -1
  420. package/dist/entries/theme.d.cts +1 -1
  421. package/dist/entries/theme.d.ts +1 -1
  422. package/dist/entries/theme.js +1 -1
  423. package/dist/errorMessage-C7N4KvUS.cjs +2 -0
  424. package/dist/errorMessage-C7N4KvUS.cjs.map +1 -0
  425. package/dist/errorMessage-C83fB2h5.js +98 -0
  426. package/dist/errorMessage-C83fB2h5.js.map +1 -0
  427. package/dist/i18n/messages.d.cts +21 -1
  428. package/dist/i18n/messages.d.ts +21 -1
  429. package/dist/index.cjs +1 -1
  430. package/dist/index.css +1 -1
  431. package/dist/index.js +213 -206
  432. package/dist/index.js.map +1 -1
  433. package/dist/messages-DYXyWU3X.cjs +36 -0
  434. package/dist/messages-DYXyWU3X.cjs.map +1 -0
  435. package/dist/{messages-BOJsnD0O.js → messages-zarEtcsN.js} +147 -77
  436. package/dist/messages-zarEtcsN.js.map +1 -0
  437. package/dist/theme/ConfigProvider.d.cts +38 -5
  438. package/dist/theme/ConfigProvider.d.ts +38 -5
  439. package/dist/theme/index.d.cts +1 -1
  440. package/dist/theme/index.d.ts +1 -1
  441. package/dist/useHomeTo-DVMyLZbb.js +25 -0
  442. package/dist/useHomeTo-DVMyLZbb.js.map +1 -0
  443. package/dist/useHomeTo-Dnu6VAvU.cjs +2 -0
  444. package/dist/useHomeTo-Dnu6VAvU.cjs.map +1 -0
  445. package/dist/{useOptionMenu-C1wOZ9NT.js → useOptionMenu-DNYlfNO_.js} +4 -4
  446. package/dist/{useOptionMenu-C1wOZ9NT.js.map → useOptionMenu-DNYlfNO_.js.map} +1 -1
  447. package/dist/{useOptionMenu-8hjCTNL4.cjs → useOptionMenu-OAYGUWP_.cjs} +2 -2
  448. package/dist/{useOptionMenu-8hjCTNL4.cjs.map → useOptionMenu-OAYGUWP_.cjs.map} +1 -1
  449. package/package.json +1 -1
  450. package/dist/AdminRoot-B9A4Hoz0.js +0 -57
  451. package/dist/AdminRoot-B9A4Hoz0.js.map +0 -1
  452. package/dist/AdminRoot-BVUEWczU.cjs +0 -2
  453. package/dist/AdminRoot-BVUEWczU.cjs.map +0 -1
  454. package/dist/ConfigProvider-CzAQf_d_.cjs.map +0 -1
  455. package/dist/ConfigProvider-D2svpXFu.js.map +0 -1
  456. package/dist/ErrorBoundary-CJx5E9wJ.js +0 -163
  457. package/dist/ErrorBoundary-CJx5E9wJ.js.map +0 -1
  458. package/dist/ErrorBoundary-DbKRtdgS.cjs +0 -2
  459. package/dist/ErrorBoundary-DbKRtdgS.cjs.map +0 -1
  460. package/dist/PageNotFound-CMt8vnky.js +0 -39
  461. package/dist/PageNotFound-CMt8vnky.js.map +0 -1
  462. package/dist/PageNotFound-DDm6nwQh.cjs +0 -2
  463. package/dist/PageNotFound-DDm6nwQh.cjs.map +0 -1
  464. package/dist/QueryError-Dl8yzdxw.js +0 -19
  465. package/dist/QueryError-Dl8yzdxw.js.map +0 -1
  466. package/dist/QueryError-RF7Mh5zg.cjs +0 -2
  467. package/dist/QueryError-RF7Mh5zg.cjs.map +0 -1
  468. package/dist/RootLayout-BvyeNM9_.cjs +0 -2
  469. package/dist/RootLayout-BvyeNM9_.cjs.map +0 -1
  470. package/dist/RootLayout-D-ZlsTXF.js +0 -604
  471. package/dist/RootLayout-D-ZlsTXF.js.map +0 -1
  472. package/dist/Table-1RVWzyS6.cjs +0 -2
  473. package/dist/Table-1RVWzyS6.cjs.map +0 -1
  474. package/dist/Table-BV-dr36o.js.map +0 -1
  475. package/dist/Typography-B6ASPrzT.cjs +0 -2
  476. package/dist/Typography-B6ASPrzT.cjs.map +0 -1
  477. package/dist/Typography-CJv5AnRP.js +0 -70
  478. package/dist/Typography-CJv5AnRP.js.map +0 -1
  479. package/dist/messages-BOJsnD0O.js.map +0 -1
  480. package/dist/messages-ejfYfHwL.cjs +0 -36
  481. package/dist/messages-ejfYfHwL.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"UserCard-C-q2s2Cw.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,UACR,KAAAC,EAAO,KACP,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EAEJC,EAAaX,IAAS,KAAO,KAAOA,IAAS,KAAO,KAAO,KAC3DY,EAAaZ,IAAS,KAAO,KAAO,KAE1C,OACEa,EAAAA,KAAC,MAAA,CACC,IAAAL,EACA,UAAWM,EAAAA,KAAKC,EAAO,KAAMA,EAAOf,CAAI,EAAGK,CAAS,EACpD,MAAAC,EACA,YAAWF,GAAW,OACrB,GAAGG,EAEJ,SAAA,CAAAM,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,SAGrB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CACC,KAAMN,EACN,KAAAhB,EACA,IAAKE,EACL,KAAMF,EAAO,OAAYG,EACzB,MAAAC,EACA,QAAAK,CAAA,CAAA,EAEFS,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,KAErB,SAAA,CAAAC,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,YAAY,SAAQ,GACrC,SAAAd,EAAUY,EAAAA,IAACG,WAAA,CAAS,MAAM,KAAA,CAAM,EAAMxB,GAAQc,EAAE,kBAAkB,EACrE,GACEL,GAAWR,GAAS,OACpBoB,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,UAAU,MAAM,QAAQ,SAAQ,GACjD,SAAAd,EAAUY,MAACG,EAAAA,UAAS,MAAM,MAAM,EAAKvB,CAAA,CACxC,CAAA,CAAA,CAEJ,CAAA,EACF,EAECO,EAEAF,EACCe,EAAAA,IAACI,EAAAA,OAAA,CACC,QAAQ,SACR,MAAM,QACN,KAAMR,EACN,UAAS,GACT,UAAWI,EAAAA,IAACK,EAAAA,KAAA,CAAK,KAAK,SAAA,CAAU,EAChC,QAASpB,EAER,SAAAC,GAAeO,EAAE,kBAAkB,CAAA,CAAA,EAEpC,IAAA,CAAA,CAAA,CAGV,CAAC"}
1
+ {"version":3,"file":"UserCard-Die7JV4z.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,UACR,KAAAC,EAAO,KACP,SAAAC,EACA,YAAAC,EACA,SAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,EACAC,EACA,CACA,MAAMC,EAAIC,EAAAA,KAAA,EAEJC,EAAaX,IAAS,KAAO,KAAOA,IAAS,KAAO,KAAO,KAC3DY,EAAaZ,IAAS,KAAO,KAAO,KAE1C,OACEa,EAAAA,KAAC,MAAA,CACC,IAAAL,EACA,UAAWM,EAAAA,KAAKC,EAAO,KAAMA,EAAOf,CAAI,EAAGK,CAAS,EACpD,MAAAC,EACA,YAAWF,GAAW,OACrB,GAAGG,EAEJ,SAAA,CAAAM,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,SAGrB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CACC,KAAMN,EACN,KAAAhB,EACA,IAAKE,EACL,KAAMF,EAAO,OAAYG,EACzB,MAAAC,EACA,QAAAK,CAAA,CAAA,EAEFS,EAAAA,KAAC,MAAA,CAAI,UAAWE,EAAO,KAErB,SAAA,CAAAC,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,YAAY,SAAQ,GACrC,SAAAd,EAAUY,EAAAA,IAACG,WAAA,CAAS,MAAM,KAAA,CAAM,EAAMxB,GAAQc,EAAE,kBAAkB,EACrE,GACEL,GAAWR,GAAS,OACpBoB,EAAAA,IAACE,EAAAA,WAAA,CAAW,QAAQ,UAAU,MAAM,QAAQ,SAAQ,GACjD,SAAAd,EAAUY,MAACG,EAAAA,UAAS,MAAM,MAAM,EAAKvB,CAAA,CACxC,CAAA,CAAA,CAEJ,CAAA,EACF,EAECO,EAEAF,EACCe,EAAAA,IAACI,EAAAA,OAAA,CACC,QAAQ,SACR,MAAM,QACN,KAAMR,EACN,UAAS,GACT,UAAWI,EAAAA,IAACK,EAAAA,KAAA,CAAK,KAAK,SAAA,CAAU,EAChC,QAASpB,EAER,SAAAC,GAAeO,EAAE,kBAAkB,CAAA,CAAA,EAEpC,IAAA,CAAA,CAAA,CAGV,CAAC"}
@@ -1,5 +1,39 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type ErrorBoundaryProps, type RootLayoutHeader, type RootLayoutProps } from '../components';
2
+ import { type ErrorBoundaryProps, type IconName, type RootLayoutHeader, type RootLayoutProps } from '../components';
3
+ import { type ThemeColor } from '../theme';
4
+ /** Why the session can't be used — see `AdminRootUnavailable.reason`. */
5
+ export type AdminRootUnavailableReason = 'forbidden' | 'unreachable';
6
+ /** The `unavailable` state of `AdminRoot` — the session could not be checked, or may not be used here. */
7
+ export interface AdminRootUnavailable {
8
+ /** What failed — passed to `QueryError` (message, trace id). */
9
+ error: unknown;
10
+ /**
11
+ * Why. `'forbidden'` = a valid session this panel may not use (no retry, only Sign Out).
12
+ * `'unreachable'` = the check itself failed (Try Again + Sign Out). Defaults to `'forbidden'` when the
13
+ * error carries HTTP status 403 (`error.status` or `error.response.status`), else `'unreachable'`.
14
+ */
15
+ reason?: AdminRootUnavailableReason;
16
+ /** Re-runs the session check. Shown as "Try Again" for `'unreachable'` only. */
17
+ onRetry?: () => void;
18
+ /**
19
+ * The `AuthLayout` icon. Default: none — apps differ here (one shows a tinted `CloudCross`, another keeps
20
+ * every auth page icon-free), so it's the app's choice.
21
+ */
22
+ icon?: IconName | false;
23
+ /** Tint for `icon` (`AuthLayout`'s `color`). Default `'error'`. */
24
+ color?: ThemeColor;
25
+ }
26
+ /** What an `unavailableFallback` receives. */
27
+ export interface AdminRootUnavailableFallbackProps {
28
+ /** The `unavailable.error`. */
29
+ error: unknown;
30
+ /** The resolved reason (explicit, or inferred from a 403). */
31
+ reason: AdminRootUnavailableReason;
32
+ /** `unavailable.onRetry`, when given — whatever the reason (the fallback decides whether to offer it). */
33
+ retry?: () => void;
34
+ /** The shell's Sign Out: `onLogout()`, then navigate to `loginPath`. */
35
+ signOut: () => void;
36
+ }
3
37
  /** The minimal user shape `AdminRoot` reads — apps pass their own richer type via the generic. */
4
38
  export interface AdminUser {
5
39
  name?: string;
@@ -32,9 +66,31 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
32
66
  /**
33
67
  * Wrap the page content in an `ErrorBoundary` (reset on navigation), so a crashing page shows an
34
68
  * `ErrorState` inside the shell instead of a white screen. Default `true`; `false` opts out; an object
35
- * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`).
69
+ * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`). It only catches what
70
+ * the router doesn't: TanStack Router catches a route's component / `loader` / `beforeLoad` errors in its own
71
+ * per-route boundary, so page crashes need `createRouter({ defaultErrorComponent: PageError })`.
36
72
  */
37
73
  errorBoundary?: boolean | Omit<ErrorBoundaryProps, 'children' | 'resetKeys'>;
74
+ /**
75
+ * The app is still finding out who is signed in (e.g. verifying a stored token or refreshing a cookie
76
+ * session). While `true`, AdminRoot renders only `pendingFallback` — no shell, no public page, no
77
+ * `AuthGuard`, and `getUser()` isn't read — so a signed-in admin is never redirected to sign-in before the
78
+ * check resolves. Route `beforeLoad` guards (e.g. `authLayoutRoute`) still run in the router, independent
79
+ * of this — they must tolerate the unknown state themselves. No minimum display time. Default `false`.
80
+ */
81
+ pending?: boolean;
82
+ /** What to show while `pending`. Default: a `Loader size="lg"` centred in the full viewport. */
83
+ pendingFallback?: ReactNode;
84
+ /**
85
+ * The session could not be checked, or the server will not serve this account here. While set, AdminRoot
86
+ * renders a standalone `AuthLayout` screen (the app's `logo`, a `QueryError`, Try Again / Sign Out) instead
87
+ * of the shell or a public page — and never redirects. Sign Out calls `onLogout` then navigates to
88
+ * `loginPath`, so **`onLogout` must clear whatever set `unavailable`** (or this screen shows again).
89
+ * `pending` wins when both are set. `null` / `undefined` = not unavailable (the default).
90
+ */
91
+ unavailable?: AdminRootUnavailable | null;
92
+ /** Replaces the whole `unavailable` screen — for an app that needs its own wording or extra actions. */
93
+ unavailableFallback?: (props: AdminRootUnavailableFallbackProps) => ReactNode;
38
94
  }
39
95
  /**
40
96
  * Root-route component for admin apps — it wires up the whole shell orchestration so an app only has to
@@ -43,6 +99,10 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
43
99
  * `AuthGuard` (signed-out visitors bounce to `loginPath`). Logout clears the session and navigates to
44
100
  * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`),
45
101
  * and wraps the page in an `ErrorBoundary` that resets on navigation (`errorBoundary`, default on).
102
+ * While the app is still checking the session, pass `pending` (a full-screen loader instead of a premature
103
+ * sign-in redirect); when the check failed or the server refuses this account, pass `unavailable` (a
104
+ * standalone "Cannot Reach the Server" / "No Access" screen with Try Again / Sign Out). The `Toaster` stays
105
+ * mounted in both.
46
106
  *
47
107
  * `loginPath` is a plain string, cast loosely to the router's `to` type (the library can't know the
48
108
  * app's typed route tree). The generic `<U>` preserves the app's own user type through `getUser`.
@@ -50,7 +110,18 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
50
110
  * @example
51
111
  * // routes/__root.tsx
52
112
  * export const Route = createRootRoute({
53
- * component: () => <AdminRoot<AuthUser> logo={<Logo />} getUser={getUser} onLogout={logout} />,
113
+ * component: () => {
114
+ * const { status, error, retry } = useSession()
115
+ * return (
116
+ * <AdminRoot<AuthUser>
117
+ * pending={status === 'loading'}
118
+ * unavailable={status === 'unavailable' ? { error, onRetry: retry } : null}
119
+ * logo={<Logo />}
120
+ * getUser={getUser}
121
+ * onLogout={logout}
122
+ * />
123
+ * )
124
+ * },
54
125
  * })
55
126
  */
56
- export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, logoTo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
127
+ export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, logoTo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, pending, pendingFallback, unavailable, unavailableFallback, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,39 @@
1
1
  import type { ReactNode } from 'react';
2
- import { type ErrorBoundaryProps, type RootLayoutHeader, type RootLayoutProps } from '../components';
2
+ import { type ErrorBoundaryProps, type IconName, type RootLayoutHeader, type RootLayoutProps } from '../components';
3
+ import { type ThemeColor } from '../theme';
4
+ /** Why the session can't be used — see `AdminRootUnavailable.reason`. */
5
+ export type AdminRootUnavailableReason = 'forbidden' | 'unreachable';
6
+ /** The `unavailable` state of `AdminRoot` — the session could not be checked, or may not be used here. */
7
+ export interface AdminRootUnavailable {
8
+ /** What failed — passed to `QueryError` (message, trace id). */
9
+ error: unknown;
10
+ /**
11
+ * Why. `'forbidden'` = a valid session this panel may not use (no retry, only Sign Out).
12
+ * `'unreachable'` = the check itself failed (Try Again + Sign Out). Defaults to `'forbidden'` when the
13
+ * error carries HTTP status 403 (`error.status` or `error.response.status`), else `'unreachable'`.
14
+ */
15
+ reason?: AdminRootUnavailableReason;
16
+ /** Re-runs the session check. Shown as "Try Again" for `'unreachable'` only. */
17
+ onRetry?: () => void;
18
+ /**
19
+ * The `AuthLayout` icon. Default: none — apps differ here (one shows a tinted `CloudCross`, another keeps
20
+ * every auth page icon-free), so it's the app's choice.
21
+ */
22
+ icon?: IconName | false;
23
+ /** Tint for `icon` (`AuthLayout`'s `color`). Default `'error'`. */
24
+ color?: ThemeColor;
25
+ }
26
+ /** What an `unavailableFallback` receives. */
27
+ export interface AdminRootUnavailableFallbackProps {
28
+ /** The `unavailable.error`. */
29
+ error: unknown;
30
+ /** The resolved reason (explicit, or inferred from a 403). */
31
+ reason: AdminRootUnavailableReason;
32
+ /** `unavailable.onRetry`, when given — whatever the reason (the fallback decides whether to offer it). */
33
+ retry?: () => void;
34
+ /** The shell's Sign Out: `onLogout()`, then navigate to `loginPath`. */
35
+ signOut: () => void;
36
+ }
3
37
  /** The minimal user shape `AdminRoot` reads — apps pass their own richer type via the generic. */
4
38
  export interface AdminUser {
5
39
  name?: string;
@@ -32,9 +66,31 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
32
66
  /**
33
67
  * Wrap the page content in an `ErrorBoundary` (reset on navigation), so a crashing page shows an
34
68
  * `ErrorState` inside the shell instead of a white screen. Default `true`; `false` opts out; an object
35
- * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`).
69
+ * configures it (e.g. `{ onError: Sentry.captureException }` or a custom `fallback`). It only catches what
70
+ * the router doesn't: TanStack Router catches a route's component / `loader` / `beforeLoad` errors in its own
71
+ * per-route boundary, so page crashes need `createRouter({ defaultErrorComponent: PageError })`.
36
72
  */
37
73
  errorBoundary?: boolean | Omit<ErrorBoundaryProps, 'children' | 'resetKeys'>;
74
+ /**
75
+ * The app is still finding out who is signed in (e.g. verifying a stored token or refreshing a cookie
76
+ * session). While `true`, AdminRoot renders only `pendingFallback` — no shell, no public page, no
77
+ * `AuthGuard`, and `getUser()` isn't read — so a signed-in admin is never redirected to sign-in before the
78
+ * check resolves. Route `beforeLoad` guards (e.g. `authLayoutRoute`) still run in the router, independent
79
+ * of this — they must tolerate the unknown state themselves. No minimum display time. Default `false`.
80
+ */
81
+ pending?: boolean;
82
+ /** What to show while `pending`. Default: a `Loader size="lg"` centred in the full viewport. */
83
+ pendingFallback?: ReactNode;
84
+ /**
85
+ * The session could not be checked, or the server will not serve this account here. While set, AdminRoot
86
+ * renders a standalone `AuthLayout` screen (the app's `logo`, a `QueryError`, Try Again / Sign Out) instead
87
+ * of the shell or a public page — and never redirects. Sign Out calls `onLogout` then navigates to
88
+ * `loginPath`, so **`onLogout` must clear whatever set `unavailable`** (or this screen shows again).
89
+ * `pending` wins when both are set. `null` / `undefined` = not unavailable (the default).
90
+ */
91
+ unavailable?: AdminRootUnavailable | null;
92
+ /** Replaces the whole `unavailable` screen — for an app that needs its own wording or extra actions. */
93
+ unavailableFallback?: (props: AdminRootUnavailableFallbackProps) => ReactNode;
38
94
  }
39
95
  /**
40
96
  * Root-route component for admin apps — it wires up the whole shell orchestration so an app only has to
@@ -43,6 +99,10 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
43
99
  * `AuthGuard` (signed-out visitors bounce to `loginPath`). Logout clears the session and navigates to
44
100
  * `loginPath`. Mounts exactly one app-wide `<Toaster/>` (the inner `RootLayout` gets `toaster={false}`),
45
101
  * and wraps the page in an `ErrorBoundary` that resets on navigation (`errorBoundary`, default on).
102
+ * While the app is still checking the session, pass `pending` (a full-screen loader instead of a premature
103
+ * sign-in redirect); when the check failed or the server refuses this account, pass `unavailable` (a
104
+ * standalone "Cannot Reach the Server" / "No Access" screen with Try Again / Sign Out). The `Toaster` stays
105
+ * mounted in both.
46
106
  *
47
107
  * `loginPath` is a plain string, cast loosely to the router's `to` type (the library can't know the
48
108
  * app's typed route tree). The generic `<U>` preserves the app's own user type through `getUser`.
@@ -50,7 +110,18 @@ export interface AdminRootProps<U extends AdminUser = AdminUser> {
50
110
  * @example
51
111
  * // routes/__root.tsx
52
112
  * export const Route = createRootRoute({
53
- * component: () => <AdminRoot<AuthUser> logo={<Logo />} getUser={getUser} onLogout={logout} />,
113
+ * component: () => {
114
+ * const { status, error, retry } = useSession()
115
+ * return (
116
+ * <AdminRoot<AuthUser>
117
+ * pending={status === 'loading'}
118
+ * unavailable={status === 'unavailable' ? { error, onRetry: retry } : null}
119
+ * logo={<Logo />}
120
+ * getUser={getUser}
121
+ * onLogout={logout}
122
+ * />
123
+ * )
124
+ * },
54
125
  * })
55
126
  */
56
- export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, logoTo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, }: AdminRootProps<U>) => import("react/jsx-runtime").JSX.Element;
127
+ export declare const AdminRoot: <U extends AdminUser = AdminUser>({ logo, logoTo, getUser, onLogout, authRouteId, loginPath, showUserCard, header, errorBoundary, pending, pendingFallback, unavailable, unavailableFallback, }: 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-B9l1VhIr.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-CggrNMn5.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-B7w9xD2p.js";
1
+ import { A as r, A as t } from "../../Alert-BXtQFAVl.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-DIcR__vo.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-Cl3tb4-E.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-m1BQ6Ixx.js";
1
+ import { A as o, A as u } from "../../AuthLayout-C47vXKYp.js";
2
2
  export {
3
3
  o as AuthLayout,
4
4
  u as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Breadcrumbs-B1JMwCjO.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-Cpa_LSY2.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-Cl1CgKkk.js";
1
+ import { B as e, B as s } from "../../Breadcrumbs-D_QnKw8q.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-BZq1mIUH.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-Cm64ROip.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-BJ5Xd10u.js";
1
+ import { B as o, B } from "../../Button-BQ7jsm5P.js";
2
2
  export {
3
3
  o as Button,
4
4
  B as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Card-KsczbH5c.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-yhly3Xdp.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-Cr3D2bzJ.js";
1
+ import { C, C as d } from "../../Card-kizK1B7N.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("../../Chip-BZ3I4Lbe.cjs");exports.Chip=e.Chip;exports.default=e.Chip;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../Chip-BPcnO5WI.cjs");exports.Chip=e.Chip;exports.default=e.Chip;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as e, C as f } from "../../Chip-DEp1zWh1.js";
1
+ import { C as e, C as f } from "../../Chip-BzyzLEeX.js";
2
2
  export {
3
3
  e as Chip,
4
4
  f as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ChoiceCardGroup-Bg2jtFpe.cjs");exports.ChoiceCard=e.ChoiceCard;exports.ChoiceCardGroup=e.ChoiceCardGroup;exports.default=e.ChoiceCard;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ChoiceCardGroup-BWsG_Vh5.cjs");exports.ChoiceCard=e.ChoiceCard;exports.ChoiceCardGroup=e.ChoiceCardGroup;exports.default=e.ChoiceCard;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as o, a as r, C as e } from "../../ChoiceCardGroup-BTbKjJdp.js";
1
+ import { C as o, a as r, C as e } from "../../ChoiceCardGroup-BBD8ai4s.js";
2
2
  export {
3
3
  o as ChoiceCard,
4
4
  r as ChoiceCardGroup,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../CodeBlock-DIkyeG4S.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../CodeBlock-BgSum_bB.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as e, C } from "../../CodeBlock-CMHqvoBJ.js";
1
+ import { C as e, C } from "../../CodeBlock-BTt40oh5.js";
2
2
  export {
3
3
  e as CodeBlock,
4
4
  C as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorPicker-B1riGs1z.cjs");exports.ColorPicker=e.ColorPicker;exports.default=e.ColorPicker;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorPicker-C33dlkhN.cjs");exports.ColorPicker=e.ColorPicker;exports.default=e.ColorPicker;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as a, C as e } from "../../ColorPicker-5SMyU5oh.js";
1
+ import { C as a, C as e } from "../../ColorPicker-BNM75F5E.js";
2
2
  export {
3
3
  a as ColorPicker,
4
4
  e as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorRamp-D_h-hp7n.cjs");exports.ColorRamp=e.ColorRamp;exports.default=e.ColorRamp;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../ColorRamp-BJWNKzoX.cjs");exports.ColorRamp=e.ColorRamp;exports.default=e.ColorRamp;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as r, C } from "../../ColorRamp-Qc8ZtPDh.js";
1
+ import { C as r, C } from "../../ColorRamp-BnuXrSxa.js";
2
2
  export {
3
3
  r as ColorRamp,
4
4
  C as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../CopyButton-DUtx2-Gi.cjs");exports.CopyButton=t.CopyButton;exports.default=t.CopyButton;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../CopyButton-C9oHGs6W.cjs");exports.CopyButton=t.CopyButton;exports.default=t.CopyButton;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as a, C } from "../../CopyButton-BNcW9-KU.js";
1
+ import { C as a, C } from "../../CopyButton-hZqLdXJq.js";
2
2
  export {
3
3
  a as CopyButton,
4
4
  C as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-D_PqDvKt.cjs");exports.DatePicker=e.DatePicker;exports.default=e.DatePicker;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DatePicker-DXwJB4MH.cjs");exports.DatePicker=e.DatePicker;exports.default=e.DatePicker;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { D as r, D as t } from "../../DatePicker-D2PyGdec.js";
1
+ import { D as r, D as t } from "../../DatePicker-B6ZL_T-E.js";
2
2
  export {
3
3
  r as DatePicker,
4
4
  t as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DateTimePicker-C3Kq5hKE.cjs");exports.DateTimePicker=e.DateTimePicker;exports.default=e.DateTimePicker;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DateTimePicker-CHi1H2k1.cjs");exports.DateTimePicker=e.DateTimePicker;exports.default=e.DateTimePicker;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { D as r, D as t } from "../../DateTimePicker-DdXFzqO_.js";
1
+ import { D as r, D as t } from "../../DateTimePicker-BynW1Eeg.js";
2
2
  export {
3
3
  r as DateTimePicker,
4
4
  t as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DescriptionList-C7AOcw_2.cjs");exports.DescriptionList=e.DescriptionList;exports.default=e.DescriptionList;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../DescriptionList-BqYwp08t.cjs");exports.DescriptionList=e.DescriptionList;exports.default=e.DescriptionList;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { D as a, D as e } from "../../DescriptionList-DxRgKNEJ.js";
1
+ import { D as a, D as e } from "../../DescriptionList-C6Gfk6I_.js";
2
2
  export {
3
3
  a as DescriptionList,
4
4
  e as default
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../EmptyState-ECc6e_En.cjs");exports.EmptyState=t.EmptyState;exports.default=t.EmptyState;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../EmptyState-CZ6X5-Zy.cjs");exports.EmptyState=t.EmptyState;exports.default=t.EmptyState;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { E as e, E } from "../../EmptyState-CvpKSYY4.js";
1
+ import { E as e, E } from "../../EmptyState-BvAA5mYO.js";
2
2
  export {
3
3
  e as EmptyState,
4
4
  E as default
@@ -2,12 +2,12 @@ import { Component, type ErrorInfo, type ReactNode } from 'react';
2
2
  export interface ErrorBoundaryProps {
3
3
  /**
4
4
  * What to render after a crash — a node, or `(error, reset) => node`. Defaults to an `ErrorState` with
5
- * a friendly description, a **Try again** button (`reset`) and the stack in dev.
5
+ * a friendly description, a **Try Again** button (`reset`) and the stack in dev.
6
6
  */
7
7
  fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
8
8
  /** Report the crash (e.g. `Sentry.captureException`). */
9
9
  onError?: (error: Error, info: ErrorInfo) => void;
10
- /** Called after the boundary resets (Try again, or a `resetKeys` change). */
10
+ /** Called after the boundary resets (Try Again, or a `resetKeys` change). */
11
11
  onReset?: () => void;
12
12
  /** Reset automatically when any of these change (shallow) — e.g. `[location.pathname]` clears on navigation. */
13
13
  resetKeys?: unknown[];
@@ -19,7 +19,7 @@ interface ErrorBoundaryState {
19
19
  /**
20
20
  * Catches render errors in its subtree and shows a fallback instead of unmounting the whole app (a
21
21
  * white screen). The one class component in the library — React only offers error boundaries as
22
- * classes. `fallback` is a node or `(error, reset) => node` (default: an `ErrorState` with Try again);
22
+ * classes. `fallback` is a node or `(error, reset) => node` (default: an `ErrorState` with Try Again);
23
23
  * `onError` reports the crash (Sentry); `resetKeys` resets it when they change (e.g. the route path, so
24
24
  * navigating away recovers); `onReset` runs after any reset. `AdminRoot` mounts one around the page
25
25
  * content automatically, so a crashing page keeps the sidebar + header.
@@ -2,12 +2,12 @@ import { Component, type ErrorInfo, type ReactNode } from 'react';
2
2
  export interface ErrorBoundaryProps {
3
3
  /**
4
4
  * What to render after a crash — a node, or `(error, reset) => node`. Defaults to an `ErrorState` with
5
- * a friendly description, a **Try again** button (`reset`) and the stack in dev.
5
+ * a friendly description, a **Try Again** button (`reset`) and the stack in dev.
6
6
  */
7
7
  fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
8
8
  /** Report the crash (e.g. `Sentry.captureException`). */
9
9
  onError?: (error: Error, info: ErrorInfo) => void;
10
- /** Called after the boundary resets (Try again, or a `resetKeys` change). */
10
+ /** Called after the boundary resets (Try Again, or a `resetKeys` change). */
11
11
  onReset?: () => void;
12
12
  /** Reset automatically when any of these change (shallow) — e.g. `[location.pathname]` clears on navigation. */
13
13
  resetKeys?: unknown[];
@@ -19,7 +19,7 @@ interface ErrorBoundaryState {
19
19
  /**
20
20
  * Catches render errors in its subtree and shows a fallback instead of unmounting the whole app (a
21
21
  * white screen). The one class component in the library — React only offers error boundaries as
22
- * classes. `fallback` is a node or `(error, reset) => node` (default: an `ErrorState` with Try again);
22
+ * classes. `fallback` is a node or `(error, reset) => node` (default: an `ErrorState` with Try Again);
23
23
  * `onError` reports the crash (Sentry); `resetKeys` resets it when they change (e.g. the route path, so
24
24
  * navigating away recovers); `onReset` runs after any reset. `AdminRoot` mounts one around the page
25
25
  * content automatically, so a crashing page keeps the sidebar + header.
@@ -0,0 +1,12 @@
1
+ export interface ErrorDetailsModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ /** The whole report — shown as-is and copied by the Copy button. */
5
+ report: string;
6
+ }
7
+ /**
8
+ * Internal to `ErrorState`: the "Details" dialog — the error report (trace id, status, message, then the stack /
9
+ * raw dump when allowed) in one monospace block, with **Copy** (the whole report, flips to "Copied!") and
10
+ * **Close** in the footer, so a user can paste it into a support ticket in one go.
11
+ */
12
+ export declare function ErrorDetailsModal({ open, onClose, report }: ErrorDetailsModalProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export interface ErrorDetailsModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ /** The whole report — shown as-is and copied by the Copy button. */
5
+ report: string;
6
+ }
7
+ /**
8
+ * Internal to `ErrorState`: the "Details" dialog — the error report (trace id, status, message, then the stack /
9
+ * raw dump when allowed) in one monospace block, with **Copy** (the whole report, flips to "Copied!") and
10
+ * **Close** in the footer, so a user can paste it into a support ticket in one go.
11
+ */
12
+ export declare function ErrorDetailsModal({ open, onClose, report }: ErrorDetailsModalProps): import("react/jsx-runtime").JSX.Element;