@42-central/ui-react 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (591) hide show
  1. package/dist/{chunk-X6DESK37.js → chunk-2RRTT4AF.js} +17 -5
  2. package/dist/chunk-2RRTT4AF.js.map +1 -0
  3. package/dist/{chunk-TUP7WXQE.js → chunk-322I2RSV.js} +9 -6
  4. package/dist/chunk-322I2RSV.js.map +1 -0
  5. package/dist/{chunk-ISX3AM32.js → chunk-37SRSNLJ.js} +4 -4
  6. package/dist/{chunk-ISX3AM32.js.map → chunk-37SRSNLJ.js.map} +1 -1
  7. package/dist/{chunk-L5GH7LLD.js → chunk-3MFWUG5O.js} +4 -4
  8. package/dist/{chunk-L5GH7LLD.js.map → chunk-3MFWUG5O.js.map} +1 -1
  9. package/dist/{chunk-FQJNQW3G.js → chunk-3XQEOJCE.js} +8 -5
  10. package/dist/chunk-3XQEOJCE.js.map +1 -0
  11. package/dist/{chunk-JKFPRQB2.js → chunk-4LSZ5JWF.js} +3 -3
  12. package/dist/{chunk-JKFPRQB2.js.map → chunk-4LSZ5JWF.js.map} +1 -1
  13. package/dist/{chunk-V2QZG4IT.js → chunk-5HWFYYHW.js} +27 -9
  14. package/dist/chunk-5HWFYYHW.js.map +1 -0
  15. package/dist/{chunk-GEZYGBXY.js → chunk-6MVFCS46.js} +99 -42
  16. package/dist/chunk-6MVFCS46.js.map +1 -0
  17. package/dist/{chunk-NNPSBC7O.js → chunk-6WZSUS3U.js} +10 -9
  18. package/dist/chunk-6WZSUS3U.js.map +1 -0
  19. package/dist/chunk-6YRGP6PS.js +138 -0
  20. package/dist/chunk-6YRGP6PS.js.map +1 -0
  21. package/dist/{chunk-B5YHYI7E.js → chunk-ALANKV5Y.js} +23 -6
  22. package/dist/chunk-ALANKV5Y.js.map +1 -0
  23. package/dist/{chunk-IA6DCC3N.js → chunk-AUQPNDE5.js} +23 -13
  24. package/dist/chunk-AUQPNDE5.js.map +1 -0
  25. package/dist/{chunk-AKXALCUN.js → chunk-D7SW2E24.js} +4 -4
  26. package/dist/chunk-D7SW2E24.js.map +1 -0
  27. package/dist/{chunk-OXR7BXZA.js → chunk-DQIYYDFD.js} +4 -3
  28. package/dist/chunk-DQIYYDFD.js.map +1 -0
  29. package/dist/{chunk-HMNXNKDA.js → chunk-FCBYUN6F.js} +4 -4
  30. package/dist/{chunk-HMNXNKDA.js.map → chunk-FCBYUN6F.js.map} +1 -1
  31. package/dist/{chunk-2W7H43WL.js → chunk-FED6SJWM.js} +23 -14
  32. package/dist/chunk-FED6SJWM.js.map +1 -0
  33. package/dist/{chunk-7E7JNWOC.js → chunk-FEPIHXVI.js} +6 -5
  34. package/dist/chunk-FEPIHXVI.js.map +1 -0
  35. package/dist/{chunk-Y57NW6G7.js → chunk-G3YOSG3U.js} +4 -4
  36. package/dist/{chunk-Y57NW6G7.js.map → chunk-G3YOSG3U.js.map} +1 -1
  37. package/dist/chunk-GZN5CXMR.js +100 -0
  38. package/dist/chunk-GZN5CXMR.js.map +1 -0
  39. package/dist/{chunk-HCHGERDB.js → chunk-HCSZPBWV.js} +17 -115
  40. package/dist/chunk-HCSZPBWV.js.map +1 -0
  41. package/dist/{chunk-I4B3N3UX.js → chunk-HTVICHT4.js} +12 -7
  42. package/dist/chunk-HTVICHT4.js.map +1 -0
  43. package/dist/chunk-I7TC2C3I.js +163 -0
  44. package/dist/chunk-I7TC2C3I.js.map +1 -0
  45. package/dist/{chunk-7FPSQBWB.js → chunk-IBXYLO2J.js} +14 -13
  46. package/dist/chunk-IBXYLO2J.js.map +1 -0
  47. package/dist/{chunk-7KFUFAVP.js → chunk-IRYG6B5A.js} +9 -8
  48. package/dist/chunk-IRYG6B5A.js.map +1 -0
  49. package/dist/{chunk-2RQLPN4U.js → chunk-JCNEW4WJ.js} +8 -8
  50. package/dist/{chunk-2RQLPN4U.js.map → chunk-JCNEW4WJ.js.map} +1 -1
  51. package/dist/{chunk-SP6LCCTZ.js → chunk-KZDMVOL6.js} +35 -8
  52. package/dist/chunk-KZDMVOL6.js.map +1 -0
  53. package/dist/chunk-LR5U6TZZ.js +169 -0
  54. package/dist/chunk-LR5U6TZZ.js.map +1 -0
  55. package/dist/{chunk-MQHD3EJE.js → chunk-LZHZJWVM.js} +6 -4
  56. package/dist/chunk-LZHZJWVM.js.map +1 -0
  57. package/dist/{chunk-5EOMSWNO.js → chunk-MAM2X3MW.js} +5 -5
  58. package/dist/{chunk-5EOMSWNO.js.map → chunk-MAM2X3MW.js.map} +1 -1
  59. package/dist/{chunk-FSPS7TVD.js → chunk-MCMS4NMO.js} +5 -5
  60. package/dist/{chunk-FSPS7TVD.js.map → chunk-MCMS4NMO.js.map} +1 -1
  61. package/dist/{chunk-ZB5VMGKB.js → chunk-MV5DIE2T.js} +15 -4
  62. package/dist/chunk-MV5DIE2T.js.map +1 -0
  63. package/dist/chunk-NDI4HLQE.js +41 -0
  64. package/dist/chunk-NDI4HLQE.js.map +1 -0
  65. package/dist/{chunk-B4GNSSHU.js → chunk-NLJEQZQQ.js} +3 -3
  66. package/dist/{chunk-B4GNSSHU.js.map → chunk-NLJEQZQQ.js.map} +1 -1
  67. package/dist/{chunk-SBZJGFZ6.js → chunk-QHT4DCXE.js} +8 -7
  68. package/dist/chunk-QHT4DCXE.js.map +1 -0
  69. package/dist/{chunk-I4IJOLNA.js → chunk-RMUBCTEF.js} +5 -5
  70. package/dist/{chunk-I4IJOLNA.js.map → chunk-RMUBCTEF.js.map} +1 -1
  71. package/dist/{chunk-G3AD3NJG.js → chunk-RNTDM3RP.js} +9 -5
  72. package/dist/chunk-RNTDM3RP.js.map +1 -0
  73. package/dist/chunk-RPFN6ETQ.js +509 -0
  74. package/dist/chunk-RPFN6ETQ.js.map +1 -0
  75. package/dist/{chunk-HWBFRDX7.js → chunk-SI7C3W5M.js} +28 -9
  76. package/dist/chunk-SI7C3W5M.js.map +1 -0
  77. package/dist/chunk-TPOV3OCC.js +234 -0
  78. package/dist/chunk-TPOV3OCC.js.map +1 -0
  79. package/dist/{chunk-IANYMDKH.js → chunk-UBQ54W46.js} +4 -4
  80. package/dist/chunk-UBQ54W46.js.map +1 -0
  81. package/dist/{chunk-QVOBLRCM.js → chunk-UIKQ4X6W.js} +3 -3
  82. package/dist/{chunk-QVOBLRCM.js.map → chunk-UIKQ4X6W.js.map} +1 -1
  83. package/dist/chunk-UOWQH53N.js +70 -0
  84. package/dist/chunk-UOWQH53N.js.map +1 -0
  85. package/dist/{chunk-QRNQQIQM.js → chunk-WJUY6YWF.js} +52 -20
  86. package/dist/chunk-WJUY6YWF.js.map +1 -0
  87. package/dist/{chunk-3KARNPW4.js → chunk-WKIUMLRT.js} +3 -3
  88. package/dist/{chunk-3KARNPW4.js.map → chunk-WKIUMLRT.js.map} +1 -1
  89. package/dist/chunk-X6RB74JN.js +37 -0
  90. package/dist/chunk-X6RB74JN.js.map +1 -0
  91. package/dist/chunk-XQ6L2CM5.js +83 -0
  92. package/dist/chunk-XQ6L2CM5.js.map +1 -0
  93. package/dist/{chunk-RKCUXOU2.js → chunk-YUVKROMA.js} +44 -7
  94. package/dist/chunk-YUVKROMA.js.map +1 -0
  95. package/dist/components/action-icon/action-icon.d.ts +9 -2
  96. package/dist/components/action-icon/action-icon.d.ts.map +1 -1
  97. package/dist/components/action-icon/index.js +5 -1
  98. package/dist/components/alert/index.js +4 -4
  99. package/dist/components/anchor/anchor.d.ts +45 -0
  100. package/dist/components/anchor/anchor.d.ts.map +1 -0
  101. package/dist/components/anchor/index.d.ts +2 -0
  102. package/dist/components/anchor/index.d.ts.map +1 -0
  103. package/dist/components/anchor/index.js +11 -0
  104. package/dist/components/anchor/index.js.map +1 -0
  105. package/dist/components/app-shell/app-shell.d.ts +10 -6
  106. package/dist/components/app-shell/app-shell.d.ts.map +1 -1
  107. package/dist/components/app-shell/index.js +23 -24
  108. package/dist/components/app-shell/index.js.map +1 -1
  109. package/dist/components/autocomplete/autocomplete.d.ts +1 -1
  110. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  111. package/dist/components/autocomplete/index.js +15 -9
  112. package/dist/components/autocomplete/index.js.map +1 -1
  113. package/dist/components/avatar/index.js +1 -1
  114. package/dist/components/button/button.d.ts +15 -2
  115. package/dist/components/button/button.d.ts.map +1 -1
  116. package/dist/components/button/index.js +5 -1
  117. package/dist/components/button-multi-select/index.js +6 -4
  118. package/dist/components/button-multi-select/index.js.map +1 -1
  119. package/dist/components/button-select/button-select-control.d.ts.map +1 -1
  120. package/dist/components/button-select/button-select.d.ts +2 -2
  121. package/dist/components/button-select/button-select.d.ts.map +1 -1
  122. package/dist/components/button-select/index.js +6 -4
  123. package/dist/components/button-select/index.js.map +1 -1
  124. package/dist/components/calendar/aliases.d.ts +16 -0
  125. package/dist/components/calendar/aliases.d.ts.map +1 -0
  126. package/dist/components/calendar/calendar-body.d.ts +11 -1
  127. package/dist/components/calendar/calendar-body.d.ts.map +1 -1
  128. package/dist/components/calendar/calendar.d.ts +8 -4
  129. package/dist/components/calendar/calendar.d.ts.map +1 -1
  130. package/dist/components/calendar/index.d.ts +2 -1
  131. package/dist/components/calendar/index.d.ts.map +1 -1
  132. package/dist/components/calendar/index.js +15 -5
  133. package/dist/components/calendar/index.js.map +1 -1
  134. package/dist/components/calendar-heatmap/calendar-heatmap.d.ts.map +1 -1
  135. package/dist/components/calendar-heatmap/index.js +85 -73
  136. package/dist/components/calendar-heatmap/index.js.map +1 -1
  137. package/dist/components/camera/index.js +16 -14
  138. package/dist/components/carousel/index.js +3 -3
  139. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  140. package/dist/components/checkbox/index.js +2 -2
  141. package/dist/components/choice-card-group/index.js +2 -2
  142. package/dist/components/choice-card-group/index.js.map +1 -1
  143. package/dist/components/circular-progress/circular-progress.d.ts +22 -11
  144. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  145. package/dist/components/circular-progress/index.d.ts +1 -1
  146. package/dist/components/circular-progress/index.d.ts.map +1 -1
  147. package/dist/components/circular-progress/index.js +68 -49
  148. package/dist/components/circular-progress/index.js.map +1 -1
  149. package/dist/components/clipboard/index.js +7 -3
  150. package/dist/components/clipboard/index.js.map +1 -1
  151. package/dist/components/code/code.d.ts +10 -0
  152. package/dist/components/code/code.d.ts.map +1 -1
  153. package/dist/components/code/index.js +1 -0
  154. package/dist/components/code/index.js.map +1 -1
  155. package/dist/components/code-block/chrome.js +10 -6
  156. package/dist/components/code-block/index.js +10 -7
  157. package/dist/components/code-block/index.js.map +1 -1
  158. package/dist/components/combobox/combobox.d.ts +5 -3
  159. package/dist/components/combobox/combobox.d.ts.map +1 -1
  160. package/dist/components/combobox/index.js +12 -7
  161. package/dist/components/combobox-list/combobox-list.d.ts +1 -1
  162. package/dist/components/combobox-list/combobox-list.d.ts.map +1 -1
  163. package/dist/components/combobox-list/index.js +14 -9
  164. package/dist/components/compare/index.js +1 -1
  165. package/dist/components/data-list/data-list.d.ts +96 -0
  166. package/dist/components/data-list/data-list.d.ts.map +1 -0
  167. package/dist/components/data-list/index.d.ts +2 -0
  168. package/dist/components/data-list/index.d.ts.map +1 -0
  169. package/dist/components/data-list/index.js +147 -0
  170. package/dist/components/data-list/index.js.map +1 -0
  171. package/dist/components/data-table/data-table-group.d.ts.map +1 -1
  172. package/dist/components/data-table/data-table-placeholder.d.ts +12 -1
  173. package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -1
  174. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  175. package/dist/components/data-table/data-table.d.ts +5 -2
  176. package/dist/components/data-table/data-table.d.ts.map +1 -1
  177. package/dist/components/data-table/index.js +163 -168
  178. package/dist/components/data-table/index.js.map +1 -1
  179. package/dist/components/date-picker/aliases.d.ts +16 -0
  180. package/dist/components/date-picker/aliases.d.ts.map +1 -1
  181. package/dist/components/date-picker/date-picker.d.ts +22 -8
  182. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  183. package/dist/components/date-picker/index.d.ts +2 -2
  184. package/dist/components/date-picker/index.d.ts.map +1 -1
  185. package/dist/components/date-picker/index.js +34 -28
  186. package/dist/components/date-picker/index.js.map +1 -1
  187. package/dist/components/download-button/index.js +6 -2
  188. package/dist/components/drawer/drawer.d.ts +7 -4
  189. package/dist/components/drawer/drawer.d.ts.map +1 -1
  190. package/dist/components/drawer/index.js +11 -6
  191. package/dist/components/empty-state/empty-state.d.ts +57 -0
  192. package/dist/components/empty-state/empty-state.d.ts.map +1 -0
  193. package/dist/components/empty-state/index.d.ts +2 -0
  194. package/dist/components/empty-state/index.d.ts.map +1 -0
  195. package/dist/components/empty-state/index.js +8 -0
  196. package/dist/components/empty-state/index.js.map +1 -0
  197. package/dist/components/field/field.d.ts +20 -0
  198. package/dist/components/field/field.d.ts.map +1 -1
  199. package/dist/components/field/index.js +1 -1
  200. package/dist/components/fieldset/fieldset.d.ts +103 -0
  201. package/dist/components/fieldset/fieldset.d.ts.map +1 -0
  202. package/dist/components/fieldset/index.d.ts +2 -0
  203. package/dist/components/fieldset/index.d.ts.map +1 -0
  204. package/dist/components/fieldset/index.js +150 -0
  205. package/dist/components/fieldset/index.js.map +1 -0
  206. package/dist/components/file-item/index.js +10 -7
  207. package/dist/components/file-preview/file-preview.d.ts.map +1 -1
  208. package/dist/components/file-preview/index.js +10 -18
  209. package/dist/components/file-preview/index.js.map +1 -1
  210. package/dist/components/file-trigger/index.js +6 -2
  211. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  212. package/dist/components/file-upload/index.js +18 -14
  213. package/dist/components/file-upload/index.js.map +1 -1
  214. package/dist/components/gallery/index.js +3 -3
  215. package/dist/components/geodesic/a11y.d.ts +3 -3
  216. package/dist/components/geodesic/a11y.d.ts.map +1 -1
  217. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  218. package/dist/components/hover-card/index.js +10 -3
  219. package/dist/components/hover-card/index.js.map +1 -1
  220. package/dist/components/image/index.js +3 -3
  221. package/dist/components/image-cropper/index.js +9 -6
  222. package/dist/components/input/index.js +2 -2
  223. package/dist/components/input/input.d.ts.map +1 -1
  224. package/dist/components/kbd/index.js +3 -3
  225. package/dist/components/kbd/kbd.d.ts +4 -0
  226. package/dist/components/kbd/kbd.d.ts.map +1 -1
  227. package/dist/components/lightbox/index.js +13 -11
  228. package/dist/components/lightbox/index.js.map +1 -1
  229. package/dist/components/menu/index.js +9 -5
  230. package/dist/components/menu/index.js.map +1 -1
  231. package/dist/components/menu/menu.d.ts.map +1 -1
  232. package/dist/components/modal/index.js +11 -6
  233. package/dist/components/modal/modal.d.ts +10 -4
  234. package/dist/components/modal/modal.d.ts.map +1 -1
  235. package/dist/components/multi-combobox-list/index.js +13 -9
  236. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +1 -1
  237. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -1
  238. package/dist/components/multi-select/index.js +13 -10
  239. package/dist/components/multi-select/index.js.map +1 -1
  240. package/dist/components/multi-select/multi-select.d.ts +1 -1
  241. package/dist/components/multi-select/multi-select.d.ts.map +1 -1
  242. package/dist/components/nav-link/index.js +4 -4
  243. package/dist/components/nav-link/tanstack.js +4 -4
  244. package/dist/components/notification/index.js +6 -6
  245. package/dist/components/notification/index.js.map +1 -1
  246. package/dist/components/number-input/index.js +11 -7
  247. package/dist/components/number-input/number-input.d.ts +1 -1
  248. package/dist/components/number-input/number-input.d.ts.map +1 -1
  249. package/dist/components/overlays/dialog-parts.d.ts +10 -1
  250. package/dist/components/overlays/dialog-parts.d.ts.map +1 -1
  251. package/dist/components/overlays/index.js +13 -8
  252. package/dist/components/overlays/index.js.map +1 -1
  253. package/dist/components/pagination/index.d.ts +2 -0
  254. package/dist/components/pagination/index.d.ts.map +1 -0
  255. package/dist/components/pagination/index.js +362 -0
  256. package/dist/components/pagination/index.js.map +1 -0
  257. package/dist/components/pagination/pagination.d.ts +147 -0
  258. package/dist/components/pagination/pagination.d.ts.map +1 -0
  259. package/dist/components/password-input/index.js +6 -5
  260. package/dist/components/password-input/index.js.map +1 -1
  261. package/dist/components/password-input/password-input.d.ts +1 -1
  262. package/dist/components/password-input/password-input.d.ts.map +1 -1
  263. package/dist/components/phone-input/index.js +14 -11
  264. package/dist/components/phone-input/index.js.map +1 -1
  265. package/dist/components/phone-input/phone-input.d.ts +1 -1
  266. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  267. package/dist/components/photo-capture/index.js +19 -17
  268. package/dist/components/photo-capture/index.js.map +1 -1
  269. package/dist/components/pills-input/index.js +4 -4
  270. package/dist/components/pills-input/pills-input.d.ts +1 -1
  271. package/dist/components/pills-input/pills-input.d.ts.map +1 -1
  272. package/dist/components/pin-input/index.js +6 -5
  273. package/dist/components/pin-input/index.js.map +1 -1
  274. package/dist/components/pin-input/pin-input.d.ts.map +1 -1
  275. package/dist/components/popover/index.js +7 -2
  276. package/dist/components/popover/popover.d.ts +41 -16
  277. package/dist/components/popover/popover.d.ts.map +1 -1
  278. package/dist/components/progress/index.d.ts +1 -1
  279. package/dist/components/progress/index.d.ts.map +1 -1
  280. package/dist/components/progress/index.js +4 -1
  281. package/dist/components/progress/progress.d.ts +22 -14
  282. package/dist/components/progress/progress.d.ts.map +1 -1
  283. package/dist/components/prose/index.d.ts +2 -0
  284. package/dist/components/prose/index.d.ts.map +1 -0
  285. package/dist/components/prose/index.js +17 -0
  286. package/dist/components/prose/index.js.map +1 -0
  287. package/dist/components/prose/prose.d.ts +49 -0
  288. package/dist/components/prose/prose.d.ts.map +1 -0
  289. package/dist/components/prose/styles.css +593 -0
  290. package/dist/components/radio-group/index.js +9 -3
  291. package/dist/components/radio-group/index.js.map +1 -1
  292. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  293. package/dist/components/rating/index.js +3 -2
  294. package/dist/components/rating/index.js.map +1 -1
  295. package/dist/components/rating/rating.d.ts.map +1 -1
  296. package/dist/components/schedule/index.js +10 -8
  297. package/dist/components/schedule/index.js.map +1 -1
  298. package/dist/components/scroll-area/index.d.ts +2 -0
  299. package/dist/components/scroll-area/index.d.ts.map +1 -0
  300. package/dist/components/scroll-area/index.js +10 -0
  301. package/dist/components/scroll-area/index.js.map +1 -0
  302. package/dist/components/scroll-area/scroll-area.d.ts +150 -0
  303. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
  304. package/dist/components/segment-group/index.js +2 -2
  305. package/dist/components/segment-group/segment-group.d.ts.map +1 -1
  306. package/dist/components/select/index.js +12 -8
  307. package/dist/components/select/select.d.ts +1 -1
  308. package/dist/components/select/select.d.ts.map +1 -1
  309. package/dist/components/slider/index.js +2 -2
  310. package/dist/components/slider/slider.d.ts.map +1 -1
  311. package/dist/components/splitter/index.d.ts +2 -0
  312. package/dist/components/splitter/index.d.ts.map +1 -0
  313. package/dist/components/splitter/index.js +373 -0
  314. package/dist/components/splitter/index.js.map +1 -0
  315. package/dist/components/splitter/splitter.d.ts +159 -0
  316. package/dist/components/splitter/splitter.d.ts.map +1 -0
  317. package/dist/components/spotlight/index.js +23 -22
  318. package/dist/components/spotlight/index.js.map +1 -1
  319. package/dist/components/spotlight/spotlight.d.ts.map +1 -1
  320. package/dist/components/steps/index.d.ts +4 -0
  321. package/dist/components/steps/index.d.ts.map +1 -0
  322. package/dist/components/steps/index.js +478 -0
  323. package/dist/components/steps/index.js.map +1 -0
  324. package/dist/components/steps/steps-data.d.ts +78 -0
  325. package/dist/components/steps/steps-data.d.ts.map +1 -0
  326. package/dist/components/steps/steps.d.ts +183 -0
  327. package/dist/components/steps/steps.d.ts.map +1 -0
  328. package/dist/components/switch/index.js +4 -3
  329. package/dist/components/switch/index.js.map +1 -1
  330. package/dist/components/switch/switch.d.ts.map +1 -1
  331. package/dist/components/table-of-contents/index.d.ts +2 -0
  332. package/dist/components/table-of-contents/index.d.ts.map +1 -0
  333. package/dist/components/table-of-contents/index.js +471 -0
  334. package/dist/components/table-of-contents/index.js.map +1 -0
  335. package/dist/components/table-of-contents/table-of-contents.d.ts +173 -0
  336. package/dist/components/table-of-contents/table-of-contents.d.ts.map +1 -0
  337. package/dist/components/tags-input/index.js +12 -9
  338. package/dist/components/tags-input/index.js.map +1 -1
  339. package/dist/components/tags-input/tags-input.d.ts +1 -1
  340. package/dist/components/tags-input/tags-input.d.ts.map +1 -1
  341. package/dist/components/text-input/index.js +2 -2
  342. package/dist/components/textarea/index.js +8 -6
  343. package/dist/components/textarea/index.js.map +1 -1
  344. package/dist/components/textarea/textarea.d.ts.map +1 -1
  345. package/dist/components/time-input/index.js +11 -9
  346. package/dist/components/time-input/index.js.map +1 -1
  347. package/dist/components/timeline/index.js +8 -1
  348. package/dist/components/timeline/index.js.map +1 -1
  349. package/dist/components/timeline/timeline.d.ts.map +1 -1
  350. package/dist/components/tooltip/index.js +1 -1
  351. package/dist/components/tooltip/tooltip.d.ts +3 -8
  352. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  353. package/dist/components/tour/conditions.d.ts +83 -0
  354. package/dist/components/tour/conditions.d.ts.map +1 -0
  355. package/dist/components/tour/create-tours.d.ts +49 -0
  356. package/dist/components/tour/create-tours.d.ts.map +1 -0
  357. package/dist/components/tour/index.d.ts +6 -0
  358. package/dist/components/tour/index.d.ts.map +1 -0
  359. package/dist/components/tour/index.js +1449 -0
  360. package/dist/components/tour/index.js.map +1 -0
  361. package/dist/components/tour/runtime.d.ts +57 -0
  362. package/dist/components/tour/runtime.d.ts.map +1 -0
  363. package/dist/components/tour/storage.d.ts +14 -0
  364. package/dist/components/tour/storage.d.ts.map +1 -0
  365. package/dist/components/tour/store.d.ts +62 -0
  366. package/dist/components/tour/store.d.ts.map +1 -0
  367. package/dist/components/tour/tour.d.ts +77 -0
  368. package/dist/components/tour/tour.d.ts.map +1 -0
  369. package/dist/components/tour/types.d.ts +680 -0
  370. package/dist/components/tour/types.d.ts.map +1 -0
  371. package/dist/components/tree/index.d.ts +3 -0
  372. package/dist/components/tree/index.d.ts.map +1 -0
  373. package/dist/components/tree/index.js +457 -0
  374. package/dist/components/tree/index.js.map +1 -0
  375. package/dist/components/tree/tree-row.d.ts +72 -0
  376. package/dist/components/tree/tree-row.d.ts.map +1 -0
  377. package/dist/components/tree/tree.d.ts +193 -0
  378. package/dist/components/tree/tree.d.ts.map +1 -0
  379. package/dist/components/tree-multi-select/index.js +31 -54
  380. package/dist/components/tree-multi-select/index.js.map +1 -1
  381. package/dist/components/tree-multi-select/tree-multi-select.d.ts +16 -1
  382. package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
  383. package/dist/components/tree-select/index.js +30 -24
  384. package/dist/components/tree-select/index.js.map +1 -1
  385. package/dist/components/tree-select/tree-popover.d.ts +20 -31
  386. package/dist/components/tree-select/tree-popover.d.ts.map +1 -1
  387. package/dist/components/tree-select/tree-select.d.ts +1 -1
  388. package/dist/components/tree-select/tree-select.d.ts.map +1 -1
  389. package/dist/index.d.ts +2 -0
  390. package/dist/index.d.ts.map +1 -1
  391. package/dist/index.js +10 -8
  392. package/dist/index.js.map +1 -1
  393. package/dist/lib/date-predicates.d.ts +7 -5
  394. package/dist/lib/date-predicates.d.ts.map +1 -1
  395. package/dist/lib/date-value.d.ts +20 -0
  396. package/dist/lib/date-value.d.ts.map +1 -1
  397. package/dist/lib/floating-arrow.d.ts +53 -0
  398. package/dist/lib/floating-arrow.d.ts.map +1 -0
  399. package/dist/lib/focus-return.d.ts +53 -0
  400. package/dist/lib/focus-return.d.ts.map +1 -0
  401. package/dist/lib/meter.d.ts +104 -0
  402. package/dist/lib/meter.d.ts.map +1 -0
  403. package/dist/lib/overlay-layer.d.ts +26 -8
  404. package/dist/lib/overlay-layer.d.ts.map +1 -1
  405. package/dist/lib/pressed.d.ts +92 -0
  406. package/dist/lib/pressed.d.ts.map +1 -0
  407. package/dist/lib/tree-data.d.ts +18 -2
  408. package/dist/lib/tree-data.d.ts.map +1 -1
  409. package/dist/lib/use-pagination.d.ts +102 -0
  410. package/dist/lib/use-pagination.d.ts.map +1 -0
  411. package/dist/lib/use-scroll-spy.d.ts +126 -0
  412. package/dist/lib/use-scroll-spy.d.ts.map +1 -0
  413. package/dist/theme.css +39 -3
  414. package/package.json +1 -1
  415. package/src/as-child.contract.test.tsx +283 -1
  416. package/src/components/action-icon/action-icon.tsx +34 -4
  417. package/src/components/anchor/anchor.test.tsx +232 -0
  418. package/src/components/anchor/anchor.tsx +187 -0
  419. package/src/components/anchor/index.ts +12 -0
  420. package/src/components/app-shell/app-shell.test.tsx +15 -7
  421. package/src/components/app-shell/app-shell.tsx +27 -20
  422. package/src/components/autocomplete/autocomplete.tsx +11 -3
  423. package/src/components/button/button-pressed.test.tsx +202 -0
  424. package/src/components/button/button.tsx +48 -6
  425. package/src/components/button-select/button-select-control.tsx +2 -2
  426. package/src/components/button-select/button-select.tsx +22 -2
  427. package/src/components/calendar/aliases.tsx +28 -0
  428. package/src/components/calendar/calendar-body.tsx +310 -210
  429. package/src/components/calendar/calendar.tsx +43 -12
  430. package/src/components/calendar/index.ts +7 -1
  431. package/src/components/calendar/month-year-calendar.test.tsx +106 -0
  432. package/src/components/calendar-heatmap/calendar-heatmap.tsx +88 -73
  433. package/src/components/checkbox/checkbox.tsx +7 -2
  434. package/src/components/choice-card-group/choice-card-group.tsx +2 -2
  435. package/src/components/circular-progress/circular-progress.test.tsx +35 -0
  436. package/src/components/circular-progress/circular-progress.tsx +116 -59
  437. package/src/components/circular-progress/index.ts +1 -0
  438. package/src/components/code/code.test.tsx +16 -0
  439. package/src/components/code/code.tsx +11 -0
  440. package/src/components/combobox/combobox.tsx +63 -28
  441. package/src/components/combobox-list/combobox-list.tsx +11 -3
  442. package/src/components/data-list/data-list.test.tsx +149 -0
  443. package/src/components/data-list/data-list.tsx +268 -0
  444. package/src/components/data-list/index.ts +9 -0
  445. package/src/components/data-table/data-table-group.test.tsx +16 -0
  446. package/src/components/data-table/data-table-group.tsx +15 -2
  447. package/src/components/data-table/data-table-placeholder.tsx +28 -36
  448. package/src/components/data-table/data-table-stack.tsx +33 -39
  449. package/src/components/data-table/data-table.test.tsx +31 -0
  450. package/src/components/data-table/data-table.tsx +41 -42
  451. package/src/components/date-picker/aliases.tsx +28 -0
  452. package/src/components/date-picker/date-picker.test.tsx +29 -0
  453. package/src/components/date-picker/date-picker.tsx +164 -45
  454. package/src/components/date-picker/index.ts +5 -1
  455. package/src/components/date-picker/month-year-picker.test.tsx +362 -0
  456. package/src/components/drawer/drawer.test.tsx +41 -0
  457. package/src/components/drawer/drawer.tsx +7 -1
  458. package/src/components/empty-state/empty-state.test.tsx +109 -0
  459. package/src/components/empty-state/empty-state.tsx +180 -0
  460. package/src/components/empty-state/index.ts +9 -0
  461. package/src/components/field/field.tsx +35 -1
  462. package/src/components/fieldset/fieldset.test.tsx +352 -0
  463. package/src/components/fieldset/fieldset.tsx +268 -0
  464. package/src/components/fieldset/index.ts +11 -0
  465. package/src/components/file-preview/file-preview.test.tsx +2 -1
  466. package/src/components/file-preview/file-preview.tsx +7 -13
  467. package/src/components/file-upload/file-upload.tsx +14 -5
  468. package/src/components/hover-card/hover-card.tsx +5 -1
  469. package/src/components/input/input.tsx +12 -5
  470. package/src/components/kbd/kbd.test.tsx +13 -0
  471. package/src/components/kbd/kbd.tsx +6 -0
  472. package/src/components/menu/menu.tsx +6 -2
  473. package/src/components/modal/modal.test.tsx +41 -0
  474. package/src/components/modal/modal.tsx +17 -9
  475. package/src/components/multi-combobox-list/multi-combobox-list.tsx +11 -3
  476. package/src/components/multi-select/multi-select.tsx +11 -3
  477. package/src/components/notification/create-notifier.tsx +1 -1
  478. package/src/components/number-input/number-input.tsx +12 -3
  479. package/src/components/overlays/dialog-parts.tsx +42 -5
  480. package/src/components/pagination/index.ts +19 -0
  481. package/src/components/pagination/pagination.test.tsx +187 -0
  482. package/src/components/pagination/pagination.tsx +563 -0
  483. package/src/components/password-input/password-input.tsx +12 -3
  484. package/src/components/phone-input/phone-input.tsx +12 -3
  485. package/src/components/pills-input/pills-input.tsx +7 -2
  486. package/src/components/pin-input/pin-input.tsx +13 -4
  487. package/src/components/popover/popover.tsx +87 -17
  488. package/src/components/progress/index.ts +1 -0
  489. package/src/components/progress/progress.test.tsx +102 -0
  490. package/src/components/progress/progress.tsx +116 -62
  491. package/src/components/prose/index.ts +1 -0
  492. package/src/components/prose/prose.test.tsx +90 -0
  493. package/src/components/prose/prose.tsx +60 -0
  494. package/src/components/prose/styles.css +593 -0
  495. package/src/components/radio-group/radio-group.tsx +8 -3
  496. package/src/components/rating/rating.tsx +5 -2
  497. package/src/components/scroll-area/index.ts +18 -0
  498. package/src/components/scroll-area/scroll-area.test.tsx +184 -0
  499. package/src/components/scroll-area/scroll-area.tsx +448 -0
  500. package/src/components/segment-group/segment-group.tsx +2 -2
  501. package/src/components/select/select.tsx +37 -18
  502. package/src/components/slider/slider.tsx +2 -2
  503. package/src/components/splitter/index.ts +15 -0
  504. package/src/components/splitter/splitter.test.tsx +244 -0
  505. package/src/components/splitter/splitter.tsx +625 -0
  506. package/src/components/spotlight/spotlight.test.tsx +34 -26
  507. package/src/components/spotlight/spotlight.tsx +7 -9
  508. package/src/components/steps/index.ts +21 -0
  509. package/src/components/steps/steps-data.tsx +179 -0
  510. package/src/components/steps/steps.test.tsx +235 -0
  511. package/src/components/steps/steps.tsx +686 -0
  512. package/src/components/switch/switch.tsx +7 -2
  513. package/src/components/table-of-contents/index.ts +17 -0
  514. package/src/components/table-of-contents/table-of-contents.test.tsx +289 -0
  515. package/src/components/table-of-contents/table-of-contents.tsx +708 -0
  516. package/src/components/tags-input/tags-input.tsx +12 -3
  517. package/src/components/textarea/textarea.tsx +15 -5
  518. package/src/components/timeline/timeline.test.tsx +22 -0
  519. package/src/components/timeline/timeline.tsx +10 -1
  520. package/src/components/tooltip/tooltip.tsx +8 -17
  521. package/src/components/tour/conditions.test.ts +527 -0
  522. package/src/components/tour/conditions.ts +445 -0
  523. package/src/components/tour/create-tours.tsx +150 -0
  524. package/src/components/tour/index.ts +86 -0
  525. package/src/components/tour/runtime.ts +187 -0
  526. package/src/components/tour/storage.test.ts +68 -0
  527. package/src/components/tour/storage.ts +44 -0
  528. package/src/components/tour/store.test.tsx +784 -0
  529. package/src/components/tour/store.ts +661 -0
  530. package/src/components/tour/tour.test.tsx +318 -0
  531. package/src/components/tour/tour.tsx +773 -0
  532. package/src/components/tour/tour.types.test.ts +185 -0
  533. package/src/components/tour/types.ts +904 -0
  534. package/src/components/tree/index.ts +24 -0
  535. package/src/components/tree/tree-row.tsx +179 -0
  536. package/src/components/tree/tree.test.tsx +296 -0
  537. package/src/components/tree/tree.tsx +796 -0
  538. package/src/components/tree-multi-select/tree-multi-select.tsx +29 -58
  539. package/src/components/tree-select/tree-popover.tsx +26 -107
  540. package/src/components/tree-select/tree-select.tsx +24 -16
  541. package/src/icon-stroke.test.tsx +2 -0
  542. package/src/index.ts +16 -0
  543. package/src/lib/date-predicates.test.ts +46 -0
  544. package/src/lib/date-predicates.ts +44 -24
  545. package/src/lib/date-value.test.ts +24 -1
  546. package/src/lib/date-value.ts +42 -1
  547. package/src/lib/floating-arrow.tsx +73 -0
  548. package/src/lib/focus-return.test.tsx +143 -0
  549. package/src/lib/focus-return.ts +106 -0
  550. package/src/lib/meter.test.ts +40 -0
  551. package/src/lib/meter.ts +159 -0
  552. package/src/lib/overlay-layer.test.tsx +47 -1
  553. package/src/lib/overlay-layer.tsx +65 -8
  554. package/src/lib/pressed.ts +130 -0
  555. package/src/lib/tree-data.ts +42 -2
  556. package/src/lib/use-pagination.test.ts +105 -0
  557. package/src/lib/use-pagination.ts +179 -0
  558. package/src/lib/use-scroll-spy.test.tsx +238 -0
  559. package/src/lib/use-scroll-spy.ts +336 -0
  560. package/src/theme.css +39 -3
  561. package/src/theme.test.ts +29 -1
  562. package/src/visually-hidden-containment.test.tsx +9 -0
  563. package/dist/chunk-2W7H43WL.js.map +0 -1
  564. package/dist/chunk-7E7JNWOC.js.map +0 -1
  565. package/dist/chunk-7FPSQBWB.js.map +0 -1
  566. package/dist/chunk-7KFUFAVP.js.map +0 -1
  567. package/dist/chunk-AKXALCUN.js.map +0 -1
  568. package/dist/chunk-B5YHYI7E.js.map +0 -1
  569. package/dist/chunk-FQJNQW3G.js.map +0 -1
  570. package/dist/chunk-G3AD3NJG.js.map +0 -1
  571. package/dist/chunk-GEZYGBXY.js.map +0 -1
  572. package/dist/chunk-HCHGERDB.js.map +0 -1
  573. package/dist/chunk-HWBFRDX7.js.map +0 -1
  574. package/dist/chunk-I4B3N3UX.js.map +0 -1
  575. package/dist/chunk-IA6DCC3N.js.map +0 -1
  576. package/dist/chunk-IANYMDKH.js.map +0 -1
  577. package/dist/chunk-MQHD3EJE.js.map +0 -1
  578. package/dist/chunk-NNPSBC7O.js.map +0 -1
  579. package/dist/chunk-OXR7BXZA.js.map +0 -1
  580. package/dist/chunk-QKSLDQM2.js +0 -120
  581. package/dist/chunk-QKSLDQM2.js.map +0 -1
  582. package/dist/chunk-QRNQQIQM.js.map +0 -1
  583. package/dist/chunk-RKCUXOU2.js.map +0 -1
  584. package/dist/chunk-S5CQRCTF.js +0 -426
  585. package/dist/chunk-S5CQRCTF.js.map +0 -1
  586. package/dist/chunk-SBZJGFZ6.js.map +0 -1
  587. package/dist/chunk-SP6LCCTZ.js.map +0 -1
  588. package/dist/chunk-TUP7WXQE.js.map +0 -1
  589. package/dist/chunk-V2QZG4IT.js.map +0 -1
  590. package/dist/chunk-X6DESK37.js.map +0 -1
  591. package/dist/chunk-ZB5VMGKB.js.map +0 -1
@@ -1,58 +1,61 @@
1
1
  "use client";
2
- import { ThemeIcon } from '../../chunk-YVTM2KRR.js';
3
- import '../../chunk-J2WSKRJW.js';
4
2
  import { Table } from '../../chunk-PEHFWGTT.js';
5
- import '../../chunk-BJZLQTAZ.js';
3
+ import '../../chunk-J2WSKRJW.js';
6
4
  import { Text } from '../../chunk-XKDL4QS6.js';
7
- import '../../chunk-R5GMMWAY.js';
8
- import { Root, Trigger, Content, RadioGroup, ItemGroupLabel, RadioItem, Divider, CheckboxItem } from '../../chunk-TUP7WXQE.js';
9
- import { MultiComboboxList } from '../../chunk-7KFUFAVP.js';
5
+ import '../../chunk-BJZLQTAZ.js';
6
+ import { Root, Trigger, Content, RadioGroup, ItemGroupLabel, RadioItem, Divider, CheckboxItem } from '../../chunk-322I2RSV.js';
7
+ import { MultiComboboxList } from '../../chunk-IRYG6B5A.js';
10
8
  import { Pill } from '../../chunk-6M6YZ3PQ.js';
9
+ import '../../chunk-R5GMMWAY.js';
11
10
  import { Flex } from '../../chunk-UXPINIDN.js';
12
11
  import '../../chunk-XFEPUGUZ.js';
13
12
  import '../../chunk-FMMKEYHB.js';
14
- import { ComboboxList } from '../../chunk-NNPSBC7O.js';
15
- import '../../chunk-ISX3AM32.js';
16
- import { serializeDateValue, DatePicker } from '../../chunk-GEZYGBXY.js';
17
- import { resolveHourCycle } from '../../chunk-HMNXNKDA.js';
18
- import '../../chunk-IANYMDKH.js';
19
- import { NUMBER_INPUT_DEFAULT_TRANSLATIONS, NumberInput } from '../../chunk-SBZJGFZ6.js';
20
- import { Checkbox } from '../../chunk-7E7JNWOC.js';
13
+ import { EmptyState } from '../../chunk-XQ6L2CM5.js';
14
+ import '../../chunk-YVTM2KRR.js';
15
+ import { ComboboxList } from '../../chunk-6WZSUS3U.js';
16
+ import '../../chunk-37SRSNLJ.js';
17
+ import { serializeDateValue, DatePicker } from '../../chunk-6MVFCS46.js';
18
+ import { resolveHourCycle } from '../../chunk-FCBYUN6F.js';
19
+ import '../../chunk-UBQ54W46.js';
20
+ import { NUMBER_INPUT_DEFAULT_TRANSLATIONS, NumberInput } from '../../chunk-QHT4DCXE.js';
21
+ import { Checkbox } from '../../chunk-FEPIHXVI.js';
21
22
  import '../../chunk-NLOBBJAA.js';
22
- import { resolveCalendarTranslations } from '../../chunk-S5CQRCTF.js';
23
- import '../../chunk-ZB5VMGKB.js';
23
+ import '../../chunk-ORTCK34Y.js';
24
+ import { resolveCalendarTranslations } from '../../chunk-RPFN6ETQ.js';
25
+ import '../../chunk-MV5DIE2T.js';
24
26
  import '../../chunk-ZP6EBROY.js';
25
- import { Select } from '../../chunk-IA6DCC3N.js';
27
+ import { Select } from '../../chunk-AUQPNDE5.js';
26
28
  import { Skeleton } from '../../chunk-TWNIAF7K.js';
29
+ import { Button } from '../../chunk-KZDMVOL6.js';
27
30
  import { Card } from '../../chunk-KKLCHLCZ.js';
28
- import { Drawer } from '../../chunk-MQHD3EJE.js';
29
- import '../../chunk-V2QZG4IT.js';
31
+ import { Drawer } from '../../chunk-LZHZJWVM.js';
32
+ import '../../chunk-5HWFYYHW.js';
30
33
  import { normalizeSelectData } from '../../chunk-7TDHT3QD.js';
31
- import { COMBOBOX_DEFAULT_TRANSLATIONS } from '../../chunk-QRNQQIQM.js';
34
+ import { COMBOBOX_DEFAULT_TRANSLATIONS } from '../../chunk-WJUY6YWF.js';
32
35
  import '../../chunk-5FDOOG4J.js';
33
- import { Input } from '../../chunk-I4B3N3UX.js';
34
- import '../../chunk-X6DESK37.js';
36
+ import { Input } from '../../chunk-HTVICHT4.js';
37
+ import '../../chunk-2RRTT4AF.js';
35
38
  import '../../chunk-DHM4IG2O.js';
36
39
  import { Badge } from '../../chunk-KNGSO7A3.js';
37
40
  import '../../chunk-SKPM2FRX.js';
38
- import '../../chunk-ORTCK34Y.js';
39
- import { Button } from '../../chunk-SP6LCCTZ.js';
40
41
  import { useDebouncedCallback } from '../../chunk-ZYX564HO.js';
42
+ import { Popover } from '../../chunk-YUVKROMA.js';
43
+ import '../../chunk-TPOV3OCC.js';
44
+ import '../../chunk-SI7C3W5M.js';
41
45
  import '../../chunk-HBWV5EPU.js';
42
46
  import { useLocale, useTimeZone } from '../../chunk-OBSZ4NE2.js';
43
- import { Popover } from '../../chunk-RKCUXOU2.js';
44
- import '../../chunk-HWBFRDX7.js';
45
- import { Tooltip } from '../../chunk-2W7H43WL.js';
47
+ import { Tooltip } from '../../chunk-FED6SJWM.js';
46
48
  import '../../chunk-V6PY7C6S.js';
47
49
  import '../../chunk-SLUOF7XW.js';
48
- import { ActionIcon } from '../../chunk-B5YHYI7E.js';
50
+ import { ActionIcon } from '../../chunk-ALANKV5Y.js';
51
+ import '../../chunk-NDI4HLQE.js';
49
52
  import '../../chunk-6B2GNPJP.js';
50
- import { devWarnOnce } from '../../chunk-PQZSTI3R.js';
51
- import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
52
- import '../../chunk-BUIHQJGE.js';
53
53
  import '../../chunk-6YNLRQ25.js';
54
54
  import { iconStroke, mergeIcons } from '../../chunk-XXOR34T4.js';
55
55
  import '../../chunk-W3XX7BYT.js';
56
+ import { devWarnOnce } from '../../chunk-PQZSTI3R.js';
57
+ import { useUncontrolled } from '../../chunk-PMUCGFY5.js';
58
+ import '../../chunk-BUIHQJGE.js';
56
59
  import '../../chunk-R5LYFTHA.js';
57
60
  import { props } from '../../chunk-WYCMIIRR.js';
58
61
  import { focusStyles } from '../../chunk-C6NVU4F7.js';
@@ -828,6 +831,13 @@ function DataTableGroupShowMore({
828
831
  const next = grouping.nextCount(node);
829
832
  return /* @__PURE__ */ jsx(Button, { variant: "subtle", color: "neutral", size: "xs", onClick: () => grouping.showMore(node), children: translations.showMore(next, format(next)) });
830
833
  }
834
+ var STICKY_START = {
835
+ xs: "start-2",
836
+ sm: "start-2.5",
837
+ md: "start-3",
838
+ lg: "start-4",
839
+ xl: "start-4"
840
+ };
831
841
  var groupHeaderCell = cn(
832
842
  "bg-black/3 dark:bg-white/4",
833
843
  "border-brand-900/20 dark:border-white/8",
@@ -870,40 +880,46 @@ function DataTableGroupedBody({
870
880
  groupHeaderCell,
871
881
  node.depth === 0 && "[tbody:not(:first-of-type)_&]:border-t"
872
882
  ),
873
- children: /* @__PURE__ */ jsxs("div", { className: "sticky start-3 flex w-max max-w-full items-center gap-2", children: [
874
- selectable && selectableRows.length > 0 && /* @__PURE__ */ jsx(
875
- Checkbox,
876
- {
877
- size,
878
- checked: selected === 0 ? false : allLoadedSelected && !partlyLoaded ? true : "indeterminate",
879
- onCheckedChange: () => (
880
- // Written to the leaf rows directly: the group row itself is never
881
- // selectable, so `rowSelection` only ever holds real row ids. Decided
882
- // from the rows, not from the checkbox: a partly loaded group reads
883
- // indeterminate with every loaded row selected, and must still clear.
884
- table.setRowSelection((old) => ({
885
- ...Object.fromEntries(
886
- Object.entries(old).filter(([id]) => !selectableIds.has(id))
883
+ children: /* @__PURE__ */ jsxs(
884
+ "div",
885
+ {
886
+ className: cn("sticky flex w-max max-w-full items-center gap-2", STICKY_START[size]),
887
+ children: [
888
+ selectable && selectableRows.length > 0 && /* @__PURE__ */ jsx(
889
+ Checkbox,
890
+ {
891
+ size,
892
+ checked: selected === 0 ? false : allLoadedSelected && !partlyLoaded ? true : "indeterminate",
893
+ onCheckedChange: () => (
894
+ // Written to the leaf rows directly: the group row itself is never
895
+ // selectable, so `rowSelection` only ever holds real row ids. Decided
896
+ // from the rows, not from the checkbox: a partly loaded group reads
897
+ // indeterminate with every loaded row selected, and must still clear.
898
+ table.setRowSelection((old) => ({
899
+ ...Object.fromEntries(
900
+ Object.entries(old).filter(([id]) => !selectableIds.has(id))
901
+ ),
902
+ ...allLoadedSelected ? {} : Object.fromEntries(selectableRows.map((row) => [row.id, true]))
903
+ }))
887
904
  ),
888
- ...allLoadedSelected ? {} : Object.fromEntries(selectableRows.map((row) => [row.id, true]))
889
- }))
905
+ label: translations.selectGroup(grouping.label(node)),
906
+ classNames: { label: "sr-only" }
907
+ }
890
908
  ),
891
- label: translations.selectGroup(grouping.label(node)),
892
- classNames: { label: "sr-only" }
893
- }
894
- ),
895
- /* @__PURE__ */ jsx(
896
- DataTableGroupToggle,
897
- {
898
- node,
899
- grouping,
900
- controls,
901
- translations,
902
- icons,
903
- className: node.depth > 0 ? "ms-6" : void 0
904
- }
905
- )
906
- ] })
909
+ /* @__PURE__ */ jsx(
910
+ DataTableGroupToggle,
911
+ {
912
+ node,
913
+ grouping,
914
+ controls,
915
+ translations,
916
+ icons,
917
+ className: node.depth > 0 ? "ms-6" : void 0
918
+ }
919
+ )
920
+ ]
921
+ }
922
+ )
907
923
  }
908
924
  )
909
925
  },
@@ -918,7 +934,7 @@ function DataTableGroupedBody({
918
934
  indent: node.depth > 0
919
935
  })
920
936
  ),
921
- grouping.nextCount(node) > 0 && /* @__PURE__ */ jsx(Table.Row, { testId: `group-${node.id}-more`, "data-placeholder": true, children: /* @__PURE__ */ jsx(Table.Cell, { colSpan, children: /* @__PURE__ */ jsx("div", { className: cn("sticky start-3 w-max", node.depth > 0 && "ps-6"), children: /* @__PURE__ */ jsx(DataTableGroupShowMore, { node, grouping, translations }) }) }) }, `${node.id}-more`)
937
+ grouping.nextCount(node) > 0 && /* @__PURE__ */ jsx(Table.Row, { testId: `group-${node.id}-more`, "data-placeholder": true, children: /* @__PURE__ */ jsx(Table.Cell, { colSpan, children: /* @__PURE__ */ jsx("div", { className: cn("sticky w-max", STICKY_START[size], node.depth > 0 && "ps-6"), children: /* @__PURE__ */ jsx(DataTableGroupShowMore, { node, grouping, translations }) }) }) }, `${node.id}-more`)
922
938
  ];
923
939
  return grouping.groups.map((node, index) => {
924
940
  const bodyId = `${baseId}-group-${index}`;
@@ -1273,30 +1289,25 @@ function DataTablePagination({
1273
1289
  }
1274
1290
  );
1275
1291
  }
1292
+ var isPlaceholder = (node) => !!(node && typeof node === "object" && "title" in node);
1276
1293
  function RenderPlaceholder({
1277
1294
  node,
1278
- defaultActions
1295
+ icon,
1296
+ defaultActions,
1297
+ defaultColor,
1298
+ ...rest
1279
1299
  }) {
1300
+ const placeholder = isPlaceholder(node) ? node : { title: node };
1301
+ const { title, description, actions, color } = placeholder;
1280
1302
  return /* @__PURE__ */ jsx(
1281
- "div",
1303
+ EmptyState,
1282
1304
  {
1283
- className: cn(
1284
- "flex flex-col gap-3 [&_data-title]:text-brand-950 dark:[&_data-title]:text-white",
1285
- "**:data-desc:text-brand-900/40 dark:**:data-desc:text-white/35"
1286
- ),
1287
- children: match(node).when(
1288
- (n) => !!(n && typeof n === "object" && "title" in n),
1289
- ({ title, description, actions }) => /* @__PURE__ */ jsxs(Fragment, { children: [
1290
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
1291
- /* @__PURE__ */ jsx("span", { "data-title": true, children: title }),
1292
- description && /* @__PURE__ */ jsx("span", { "data-desc": true, children: description })
1293
- ] }),
1294
- (actions || defaultActions) && /* @__PURE__ */ jsx("div", { className: "flex flex-row gap-1 justify-center items-center", children: actions ?? defaultActions })
1295
- ] })
1296
- ).otherwise((n) => /* @__PURE__ */ jsxs(Fragment, { children: [
1297
- /* @__PURE__ */ jsx("span", { "data-title": true, children: n }),
1298
- defaultActions && /* @__PURE__ */ jsx("div", { className: "flex flex-row gap-1 justify-center items-center", children: defaultActions })
1299
- ] }))
1305
+ icon,
1306
+ title,
1307
+ description,
1308
+ color: color ?? defaultColor,
1309
+ ...rest,
1310
+ children: actions ?? (defaultActions || void 0)
1300
1311
  }
1301
1312
  );
1302
1313
  }
@@ -1430,31 +1441,24 @@ function DataTableStackedRows({
1430
1441
  icons
1431
1442
  }) {
1432
1443
  const stackId = useId();
1433
- return /* @__PURE__ */ jsx("div", { className: cn("flex flex-1 min-h-0 flex-col gap-2 overflow-y-auto p-3", className), children: match(view).with("error", () => /* @__PURE__ */ jsxs(
1434
- "div",
1444
+ return /* @__PURE__ */ jsx("div", { className: cn("flex flex-1 min-h-0 flex-col gap-2 overflow-y-auto p-3", className), children: match(view).with("error", () => /* @__PURE__ */ jsx(
1445
+ RenderPlaceholder,
1435
1446
  {
1436
1447
  role: "alert",
1437
- className: "flex flex-col gap-3 items-center justify-center py-6 text-center min-h-48.5",
1438
- children: [
1439
- icons.error != null && /* @__PURE__ */ jsx(ThemeIcon, { children: icons.error }),
1440
- /* @__PURE__ */ jsx(
1441
- RenderPlaceholder,
1442
- {
1443
- node: error,
1444
- defaultActions: onRetry && /* @__PURE__ */ jsx(
1445
- Button,
1446
- {
1447
- variant: "light",
1448
- color: "neutral",
1449
- size: "sm",
1450
- startSlot: icons.retry,
1451
- onClick: onRetry,
1452
- children: translations.retry
1453
- }
1454
- )
1455
- }
1456
- )
1457
- ]
1448
+ node: error,
1449
+ icon: icons.error,
1450
+ defaultColor: "red",
1451
+ defaultActions: onRetry && /* @__PURE__ */ jsx(
1452
+ Button,
1453
+ {
1454
+ variant: "light",
1455
+ color: "neutral",
1456
+ size: "sm",
1457
+ startSlot: icons.retry,
1458
+ onClick: onRetry,
1459
+ children: translations.retry
1460
+ }
1461
+ )
1458
1462
  }
1459
1463
  )).with(
1460
1464
  "loading",
@@ -1462,26 +1466,24 @@ function DataTableStackedRows({
1462
1466
  // biome-ignore lint/suspicious/noArrayIndexKey: placeholder cards, no identity
1463
1467
  /* @__PURE__ */ jsx(Card, { padding: "sm", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Flex, { direction: "col", gap: "xs", children: table.getVisibleLeafColumns().slice(0, 4).map((column) => /* @__PURE__ */ jsx("div", { children: column.columnDef.meta?.skeleton ?? /* @__PURE__ */ jsx(Skeleton, { shape: "rectangular", size: "md", className: "w-full" }) }, column.id)) }) }, `skeleton-${cardIndex}`)
1464
1468
  ))
1465
- ).with("empty", () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 items-center justify-center py-6 text-center min-h-48.5", children: [
1466
- icons.empty != null && /* @__PURE__ */ jsx(ThemeIcon, { children: icons.empty }),
1467
- /* @__PURE__ */ jsx(
1468
- RenderPlaceholder,
1469
- {
1470
- node: empty,
1471
- defaultActions: /* @__PURE__ */ jsx(
1472
- Button,
1473
- {
1474
- variant: "light",
1475
- color: "neutral",
1476
- size: "sm",
1477
- startSlot: icons.clear,
1478
- onClick: () => table.resetColumnFilters(),
1479
- children: translations.clearFilters
1480
- }
1481
- )
1482
- }
1483
- )
1484
- ] })).with("items", () => {
1469
+ ).with("empty", () => /* @__PURE__ */ jsx(
1470
+ RenderPlaceholder,
1471
+ {
1472
+ node: empty,
1473
+ icon: icons.empty,
1474
+ defaultActions: /* @__PURE__ */ jsx(
1475
+ Button,
1476
+ {
1477
+ variant: "light",
1478
+ color: "neutral",
1479
+ size: "sm",
1480
+ startSlot: icons.clear,
1481
+ onClick: () => table.resetColumnFilters(),
1482
+ children: translations.clearFilters
1483
+ }
1484
+ )
1485
+ }
1486
+ )).with("items", () => {
1485
1487
  const headersByColumnId = new Map(
1486
1488
  table.getFlatHeaders().map((header) => [header.column.id, header])
1487
1489
  );
@@ -2302,31 +2304,25 @@ function DataTableComponent({
2302
2304
  {
2303
2305
  colSpan: visibleColumnCount,
2304
2306
  className: cn("py-6 text-center", classNames?.error),
2305
- children: /* @__PURE__ */ jsxs(
2306
- "div",
2307
+ children: /* @__PURE__ */ jsx(
2308
+ RenderPlaceholder,
2307
2309
  {
2308
2310
  role: "alert",
2309
- className: "flex flex-col gap-3 items-center justify-center min-h-48.5",
2310
- children: [
2311
- icons.error != null && /* @__PURE__ */ jsx(ThemeIcon, { children: icons.error }),
2312
- /* @__PURE__ */ jsx(
2313
- RenderPlaceholder,
2314
- {
2315
- node: error,
2316
- defaultActions: onRetry && /* @__PURE__ */ jsx(
2317
- Button,
2318
- {
2319
- variant: "light",
2320
- color: "neutral",
2321
- size: "sm",
2322
- startSlot: icons.retry,
2323
- onClick: onRetry,
2324
- children: resolvedTranslations.retry
2325
- }
2326
- )
2327
- }
2328
- )
2329
- ]
2311
+ node: error,
2312
+ icon: icons.error,
2313
+ defaultColor: "red",
2314
+ className: "py-0",
2315
+ defaultActions: onRetry && /* @__PURE__ */ jsx(
2316
+ Button,
2317
+ {
2318
+ variant: "light",
2319
+ color: "neutral",
2320
+ size: "sm",
2321
+ startSlot: icons.retry,
2322
+ onClick: onRetry,
2323
+ children: resolvedTranslations.retry
2324
+ }
2325
+ )
2330
2326
  }
2331
2327
  )
2332
2328
  }
@@ -2335,26 +2331,25 @@ function DataTableComponent({
2335
2331
  {
2336
2332
  colSpan: visibleColumnCount,
2337
2333
  className: cn("py-6 text-center", classNames?.empty),
2338
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 items-center justify-center min-h-48.5", children: [
2339
- icons.empty != null && /* @__PURE__ */ jsx(ThemeIcon, { children: icons.empty }),
2340
- /* @__PURE__ */ jsx(
2341
- RenderPlaceholder,
2342
- {
2343
- node: empty,
2344
- defaultActions: /* @__PURE__ */ jsx(
2345
- Button,
2346
- {
2347
- variant: "light",
2348
- color: "neutral",
2349
- size: "sm",
2350
- startSlot: icons.clear,
2351
- onClick: () => table.resetColumnFilters(),
2352
- children: resolvedTranslations.clearFilters
2353
- }
2354
- )
2355
- }
2356
- )
2357
- ] })
2334
+ children: /* @__PURE__ */ jsx(
2335
+ RenderPlaceholder,
2336
+ {
2337
+ node: empty,
2338
+ icon: icons.empty,
2339
+ className: "py-0",
2340
+ defaultActions: /* @__PURE__ */ jsx(
2341
+ Button,
2342
+ {
2343
+ variant: "light",
2344
+ color: "neutral",
2345
+ size: "sm",
2346
+ startSlot: icons.clear,
2347
+ onClick: () => table.resetColumnFilters(),
2348
+ children: resolvedTranslations.clearFilters
2349
+ }
2350
+ )
2351
+ }
2352
+ )
2358
2353
  }
2359
2354
  ) })).with(
2360
2355
  "loading",