@42-central/ui-react 0.29.1 → 0.30.1

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 (592) 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/breadcrumb/breadcrumb.d.ts +5 -1
  115. package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -1
  116. package/dist/components/breadcrumb/index.js +12 -0
  117. package/dist/components/breadcrumb/index.js.map +1 -1
  118. package/dist/components/button/button.d.ts +15 -2
  119. package/dist/components/button/button.d.ts.map +1 -1
  120. package/dist/components/button/index.js +5 -1
  121. package/dist/components/button-multi-select/index.js +6 -4
  122. package/dist/components/button-multi-select/index.js.map +1 -1
  123. package/dist/components/button-select/button-select-control.d.ts.map +1 -1
  124. package/dist/components/button-select/button-select.d.ts +2 -2
  125. package/dist/components/button-select/button-select.d.ts.map +1 -1
  126. package/dist/components/button-select/index.js +6 -4
  127. package/dist/components/button-select/index.js.map +1 -1
  128. package/dist/components/calendar/aliases.d.ts +16 -0
  129. package/dist/components/calendar/aliases.d.ts.map +1 -0
  130. package/dist/components/calendar/calendar-body.d.ts +11 -1
  131. package/dist/components/calendar/calendar-body.d.ts.map +1 -1
  132. package/dist/components/calendar/calendar.d.ts +8 -4
  133. package/dist/components/calendar/calendar.d.ts.map +1 -1
  134. package/dist/components/calendar/index.d.ts +2 -1
  135. package/dist/components/calendar/index.d.ts.map +1 -1
  136. package/dist/components/calendar/index.js +15 -5
  137. package/dist/components/calendar/index.js.map +1 -1
  138. package/dist/components/calendar-heatmap/calendar-heatmap.d.ts.map +1 -1
  139. package/dist/components/calendar-heatmap/index.js +85 -73
  140. package/dist/components/calendar-heatmap/index.js.map +1 -1
  141. package/dist/components/camera/index.js +16 -14
  142. package/dist/components/carousel/index.js +3 -3
  143. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  144. package/dist/components/checkbox/index.js +2 -2
  145. package/dist/components/choice-card-group/index.js +2 -2
  146. package/dist/components/choice-card-group/index.js.map +1 -1
  147. package/dist/components/circular-progress/circular-progress.d.ts +22 -11
  148. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  149. package/dist/components/circular-progress/index.d.ts +1 -1
  150. package/dist/components/circular-progress/index.d.ts.map +1 -1
  151. package/dist/components/circular-progress/index.js +68 -49
  152. package/dist/components/circular-progress/index.js.map +1 -1
  153. package/dist/components/clipboard/index.js +7 -3
  154. package/dist/components/clipboard/index.js.map +1 -1
  155. package/dist/components/code/code.d.ts +10 -0
  156. package/dist/components/code/code.d.ts.map +1 -1
  157. package/dist/components/code/index.js +1 -0
  158. package/dist/components/code/index.js.map +1 -1
  159. package/dist/components/code-block/chrome.js +10 -6
  160. package/dist/components/code-block/index.js +10 -7
  161. package/dist/components/code-block/index.js.map +1 -1
  162. package/dist/components/combobox/combobox.d.ts +5 -3
  163. package/dist/components/combobox/combobox.d.ts.map +1 -1
  164. package/dist/components/combobox/index.js +12 -7
  165. package/dist/components/combobox-list/combobox-list.d.ts +1 -1
  166. package/dist/components/combobox-list/combobox-list.d.ts.map +1 -1
  167. package/dist/components/combobox-list/index.js +14 -9
  168. package/dist/components/compare/index.js +1 -1
  169. package/dist/components/data-list/data-list.d.ts +96 -0
  170. package/dist/components/data-list/data-list.d.ts.map +1 -0
  171. package/dist/components/data-list/index.d.ts +2 -0
  172. package/dist/components/data-list/index.d.ts.map +1 -0
  173. package/dist/components/data-list/index.js +147 -0
  174. package/dist/components/data-list/index.js.map +1 -0
  175. package/dist/components/data-table/data-table-group.d.ts.map +1 -1
  176. package/dist/components/data-table/data-table-placeholder.d.ts +12 -1
  177. package/dist/components/data-table/data-table-placeholder.d.ts.map +1 -1
  178. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  179. package/dist/components/data-table/data-table.d.ts +5 -2
  180. package/dist/components/data-table/data-table.d.ts.map +1 -1
  181. package/dist/components/data-table/index.js +163 -168
  182. package/dist/components/data-table/index.js.map +1 -1
  183. package/dist/components/date-picker/aliases.d.ts +16 -0
  184. package/dist/components/date-picker/aliases.d.ts.map +1 -1
  185. package/dist/components/date-picker/date-picker.d.ts +22 -8
  186. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  187. package/dist/components/date-picker/index.d.ts +2 -2
  188. package/dist/components/date-picker/index.d.ts.map +1 -1
  189. package/dist/components/date-picker/index.js +34 -28
  190. package/dist/components/date-picker/index.js.map +1 -1
  191. package/dist/components/download-button/index.js +6 -2
  192. package/dist/components/drawer/drawer.d.ts +7 -4
  193. package/dist/components/drawer/drawer.d.ts.map +1 -1
  194. package/dist/components/drawer/index.js +11 -6
  195. package/dist/components/empty-state/empty-state.d.ts +57 -0
  196. package/dist/components/empty-state/empty-state.d.ts.map +1 -0
  197. package/dist/components/empty-state/index.d.ts +2 -0
  198. package/dist/components/empty-state/index.d.ts.map +1 -0
  199. package/dist/components/empty-state/index.js +8 -0
  200. package/dist/components/empty-state/index.js.map +1 -0
  201. package/dist/components/field/field.d.ts +20 -0
  202. package/dist/components/field/field.d.ts.map +1 -1
  203. package/dist/components/field/index.js +1 -1
  204. package/dist/components/fieldset/fieldset.d.ts +103 -0
  205. package/dist/components/fieldset/fieldset.d.ts.map +1 -0
  206. package/dist/components/fieldset/index.d.ts +2 -0
  207. package/dist/components/fieldset/index.d.ts.map +1 -0
  208. package/dist/components/fieldset/index.js +150 -0
  209. package/dist/components/fieldset/index.js.map +1 -0
  210. package/dist/components/file-item/index.js +10 -7
  211. package/dist/components/file-preview/file-preview.d.ts.map +1 -1
  212. package/dist/components/file-preview/index.js +10 -18
  213. package/dist/components/file-preview/index.js.map +1 -1
  214. package/dist/components/file-trigger/index.js +6 -2
  215. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  216. package/dist/components/file-upload/index.js +18 -14
  217. package/dist/components/file-upload/index.js.map +1 -1
  218. package/dist/components/gallery/index.js +3 -3
  219. package/dist/components/geodesic/a11y.d.ts +3 -3
  220. package/dist/components/geodesic/a11y.d.ts.map +1 -1
  221. package/dist/components/hover-card/hover-card.d.ts.map +1 -1
  222. package/dist/components/hover-card/index.js +10 -3
  223. package/dist/components/hover-card/index.js.map +1 -1
  224. package/dist/components/image/index.js +3 -3
  225. package/dist/components/image-cropper/index.js +9 -6
  226. package/dist/components/input/index.js +2 -2
  227. package/dist/components/input/input.d.ts.map +1 -1
  228. package/dist/components/kbd/index.js +3 -3
  229. package/dist/components/kbd/kbd.d.ts +4 -0
  230. package/dist/components/kbd/kbd.d.ts.map +1 -1
  231. package/dist/components/lightbox/index.js +13 -11
  232. package/dist/components/lightbox/index.js.map +1 -1
  233. package/dist/components/menu/index.js +9 -5
  234. package/dist/components/menu/index.js.map +1 -1
  235. package/dist/components/menu/menu.d.ts.map +1 -1
  236. package/dist/components/modal/index.js +11 -6
  237. package/dist/components/modal/modal.d.ts +10 -4
  238. package/dist/components/modal/modal.d.ts.map +1 -1
  239. package/dist/components/multi-combobox-list/index.js +13 -9
  240. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +1 -1
  241. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -1
  242. package/dist/components/multi-select/index.js +13 -10
  243. package/dist/components/multi-select/index.js.map +1 -1
  244. package/dist/components/multi-select/multi-select.d.ts +1 -1
  245. package/dist/components/multi-select/multi-select.d.ts.map +1 -1
  246. package/dist/components/nav-link/index.js +4 -4
  247. package/dist/components/nav-link/tanstack.js +4 -4
  248. package/dist/components/notification/index.js +6 -6
  249. package/dist/components/notification/index.js.map +1 -1
  250. package/dist/components/number-input/index.js +11 -7
  251. package/dist/components/number-input/number-input.d.ts +1 -1
  252. package/dist/components/number-input/number-input.d.ts.map +1 -1
  253. package/dist/components/overlays/dialog-parts.d.ts +10 -1
  254. package/dist/components/overlays/dialog-parts.d.ts.map +1 -1
  255. package/dist/components/overlays/index.js +13 -8
  256. package/dist/components/overlays/index.js.map +1 -1
  257. package/dist/components/pagination/index.d.ts +2 -0
  258. package/dist/components/pagination/index.d.ts.map +1 -0
  259. package/dist/components/pagination/index.js +362 -0
  260. package/dist/components/pagination/index.js.map +1 -0
  261. package/dist/components/pagination/pagination.d.ts +147 -0
  262. package/dist/components/pagination/pagination.d.ts.map +1 -0
  263. package/dist/components/password-input/index.js +6 -5
  264. package/dist/components/password-input/index.js.map +1 -1
  265. package/dist/components/password-input/password-input.d.ts +1 -1
  266. package/dist/components/password-input/password-input.d.ts.map +1 -1
  267. package/dist/components/phone-input/index.js +14 -11
  268. package/dist/components/phone-input/index.js.map +1 -1
  269. package/dist/components/phone-input/phone-input.d.ts +1 -1
  270. package/dist/components/phone-input/phone-input.d.ts.map +1 -1
  271. package/dist/components/photo-capture/index.js +19 -17
  272. package/dist/components/photo-capture/index.js.map +1 -1
  273. package/dist/components/pills-input/index.js +4 -4
  274. package/dist/components/pills-input/pills-input.d.ts +1 -1
  275. package/dist/components/pills-input/pills-input.d.ts.map +1 -1
  276. package/dist/components/pin-input/index.js +6 -5
  277. package/dist/components/pin-input/index.js.map +1 -1
  278. package/dist/components/pin-input/pin-input.d.ts.map +1 -1
  279. package/dist/components/popover/index.js +7 -2
  280. package/dist/components/popover/popover.d.ts +41 -16
  281. package/dist/components/popover/popover.d.ts.map +1 -1
  282. package/dist/components/progress/index.d.ts +1 -1
  283. package/dist/components/progress/index.d.ts.map +1 -1
  284. package/dist/components/progress/index.js +4 -1
  285. package/dist/components/progress/progress.d.ts +22 -14
  286. package/dist/components/progress/progress.d.ts.map +1 -1
  287. package/dist/components/prose/index.d.ts +2 -0
  288. package/dist/components/prose/index.d.ts.map +1 -0
  289. package/dist/components/prose/index.js +17 -0
  290. package/dist/components/prose/index.js.map +1 -0
  291. package/dist/components/prose/prose.d.ts +49 -0
  292. package/dist/components/prose/prose.d.ts.map +1 -0
  293. package/dist/components/prose/styles.css +593 -0
  294. package/dist/components/radio-group/index.js +9 -3
  295. package/dist/components/radio-group/index.js.map +1 -1
  296. package/dist/components/radio-group/radio-group.d.ts.map +1 -1
  297. package/dist/components/rating/index.js +3 -2
  298. package/dist/components/rating/index.js.map +1 -1
  299. package/dist/components/rating/rating.d.ts.map +1 -1
  300. package/dist/components/schedule/index.js +10 -8
  301. package/dist/components/schedule/index.js.map +1 -1
  302. package/dist/components/scroll-area/index.d.ts +2 -0
  303. package/dist/components/scroll-area/index.d.ts.map +1 -0
  304. package/dist/components/scroll-area/index.js +10 -0
  305. package/dist/components/scroll-area/index.js.map +1 -0
  306. package/dist/components/scroll-area/scroll-area.d.ts +150 -0
  307. package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
  308. package/dist/components/segment-group/index.js +2 -2
  309. package/dist/components/segment-group/segment-group.d.ts.map +1 -1
  310. package/dist/components/select/index.js +12 -8
  311. package/dist/components/select/select.d.ts +1 -1
  312. package/dist/components/select/select.d.ts.map +1 -1
  313. package/dist/components/slider/index.js +2 -2
  314. package/dist/components/slider/slider.d.ts.map +1 -1
  315. package/dist/components/splitter/index.d.ts +2 -0
  316. package/dist/components/splitter/index.d.ts.map +1 -0
  317. package/dist/components/splitter/index.js +373 -0
  318. package/dist/components/splitter/index.js.map +1 -0
  319. package/dist/components/splitter/splitter.d.ts +159 -0
  320. package/dist/components/splitter/splitter.d.ts.map +1 -0
  321. package/dist/components/spotlight/index.js +23 -22
  322. package/dist/components/spotlight/index.js.map +1 -1
  323. package/dist/components/spotlight/spotlight.d.ts.map +1 -1
  324. package/dist/components/steps/index.d.ts +4 -0
  325. package/dist/components/steps/index.d.ts.map +1 -0
  326. package/dist/components/steps/index.js +478 -0
  327. package/dist/components/steps/index.js.map +1 -0
  328. package/dist/components/steps/steps-data.d.ts +78 -0
  329. package/dist/components/steps/steps-data.d.ts.map +1 -0
  330. package/dist/components/steps/steps.d.ts +183 -0
  331. package/dist/components/steps/steps.d.ts.map +1 -0
  332. package/dist/components/switch/index.js +4 -3
  333. package/dist/components/switch/index.js.map +1 -1
  334. package/dist/components/switch/switch.d.ts.map +1 -1
  335. package/dist/components/table-of-contents/index.d.ts +2 -0
  336. package/dist/components/table-of-contents/index.d.ts.map +1 -0
  337. package/dist/components/table-of-contents/index.js +471 -0
  338. package/dist/components/table-of-contents/index.js.map +1 -0
  339. package/dist/components/table-of-contents/table-of-contents.d.ts +173 -0
  340. package/dist/components/table-of-contents/table-of-contents.d.ts.map +1 -0
  341. package/dist/components/tags-input/index.js +12 -9
  342. package/dist/components/tags-input/index.js.map +1 -1
  343. package/dist/components/tags-input/tags-input.d.ts +1 -1
  344. package/dist/components/tags-input/tags-input.d.ts.map +1 -1
  345. package/dist/components/text-input/index.js +2 -2
  346. package/dist/components/textarea/index.js +8 -6
  347. package/dist/components/textarea/index.js.map +1 -1
  348. package/dist/components/textarea/textarea.d.ts.map +1 -1
  349. package/dist/components/time-input/index.js +11 -9
  350. package/dist/components/time-input/index.js.map +1 -1
  351. package/dist/components/tooltip/index.js +1 -1
  352. package/dist/components/tooltip/tooltip.d.ts +3 -8
  353. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  354. package/dist/components/tour/conditions.d.ts +83 -0
  355. package/dist/components/tour/conditions.d.ts.map +1 -0
  356. package/dist/components/tour/create-tours.d.ts +49 -0
  357. package/dist/components/tour/create-tours.d.ts.map +1 -0
  358. package/dist/components/tour/index.d.ts +6 -0
  359. package/dist/components/tour/index.d.ts.map +1 -0
  360. package/dist/components/tour/index.js +1449 -0
  361. package/dist/components/tour/index.js.map +1 -0
  362. package/dist/components/tour/runtime.d.ts +57 -0
  363. package/dist/components/tour/runtime.d.ts.map +1 -0
  364. package/dist/components/tour/storage.d.ts +14 -0
  365. package/dist/components/tour/storage.d.ts.map +1 -0
  366. package/dist/components/tour/store.d.ts +62 -0
  367. package/dist/components/tour/store.d.ts.map +1 -0
  368. package/dist/components/tour/tour.d.ts +77 -0
  369. package/dist/components/tour/tour.d.ts.map +1 -0
  370. package/dist/components/tour/types.d.ts +680 -0
  371. package/dist/components/tour/types.d.ts.map +1 -0
  372. package/dist/components/tree/index.d.ts +3 -0
  373. package/dist/components/tree/index.d.ts.map +1 -0
  374. package/dist/components/tree/index.js +457 -0
  375. package/dist/components/tree/index.js.map +1 -0
  376. package/dist/components/tree/tree-row.d.ts +72 -0
  377. package/dist/components/tree/tree-row.d.ts.map +1 -0
  378. package/dist/components/tree/tree.d.ts +193 -0
  379. package/dist/components/tree/tree.d.ts.map +1 -0
  380. package/dist/components/tree-multi-select/index.js +31 -54
  381. package/dist/components/tree-multi-select/index.js.map +1 -1
  382. package/dist/components/tree-multi-select/tree-multi-select.d.ts +16 -1
  383. package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
  384. package/dist/components/tree-select/index.js +30 -24
  385. package/dist/components/tree-select/index.js.map +1 -1
  386. package/dist/components/tree-select/tree-popover.d.ts +20 -31
  387. package/dist/components/tree-select/tree-popover.d.ts.map +1 -1
  388. package/dist/components/tree-select/tree-select.d.ts +1 -1
  389. package/dist/components/tree-select/tree-select.d.ts.map +1 -1
  390. package/dist/index.d.ts +2 -0
  391. package/dist/index.d.ts.map +1 -1
  392. package/dist/index.js +10 -8
  393. package/dist/index.js.map +1 -1
  394. package/dist/lib/date-predicates.d.ts +7 -5
  395. package/dist/lib/date-predicates.d.ts.map +1 -1
  396. package/dist/lib/date-value.d.ts +20 -0
  397. package/dist/lib/date-value.d.ts.map +1 -1
  398. package/dist/lib/floating-arrow.d.ts +53 -0
  399. package/dist/lib/floating-arrow.d.ts.map +1 -0
  400. package/dist/lib/focus-return.d.ts +53 -0
  401. package/dist/lib/focus-return.d.ts.map +1 -0
  402. package/dist/lib/meter.d.ts +104 -0
  403. package/dist/lib/meter.d.ts.map +1 -0
  404. package/dist/lib/overlay-layer.d.ts +26 -8
  405. package/dist/lib/overlay-layer.d.ts.map +1 -1
  406. package/dist/lib/pressed.d.ts +92 -0
  407. package/dist/lib/pressed.d.ts.map +1 -0
  408. package/dist/lib/tree-data.d.ts +18 -2
  409. package/dist/lib/tree-data.d.ts.map +1 -1
  410. package/dist/lib/use-pagination.d.ts +102 -0
  411. package/dist/lib/use-pagination.d.ts.map +1 -0
  412. package/dist/lib/use-scroll-spy.d.ts +126 -0
  413. package/dist/lib/use-scroll-spy.d.ts.map +1 -0
  414. package/dist/theme.css +39 -3
  415. package/package.json +1 -1
  416. package/src/as-child.contract.test.tsx +283 -1
  417. package/src/components/action-icon/action-icon.tsx +34 -4
  418. package/src/components/anchor/anchor.test.tsx +232 -0
  419. package/src/components/anchor/anchor.tsx +187 -0
  420. package/src/components/anchor/index.ts +12 -0
  421. package/src/components/app-shell/app-shell.test.tsx +15 -7
  422. package/src/components/app-shell/app-shell.tsx +27 -20
  423. package/src/components/autocomplete/autocomplete.tsx +11 -3
  424. package/src/components/breadcrumb/breadcrumb.test.tsx +24 -0
  425. package/src/components/breadcrumb/breadcrumb.tsx +20 -1
  426. package/src/components/button/button-pressed.test.tsx +202 -0
  427. package/src/components/button/button.tsx +48 -6
  428. package/src/components/button-select/button-select-control.tsx +2 -2
  429. package/src/components/button-select/button-select.tsx +22 -2
  430. package/src/components/calendar/aliases.tsx +28 -0
  431. package/src/components/calendar/calendar-body.tsx +310 -210
  432. package/src/components/calendar/calendar.tsx +43 -12
  433. package/src/components/calendar/index.ts +7 -1
  434. package/src/components/calendar/month-year-calendar.test.tsx +106 -0
  435. package/src/components/calendar-heatmap/calendar-heatmap.tsx +88 -73
  436. package/src/components/checkbox/checkbox.tsx +7 -2
  437. package/src/components/choice-card-group/choice-card-group.tsx +2 -2
  438. package/src/components/circular-progress/circular-progress.test.tsx +35 -0
  439. package/src/components/circular-progress/circular-progress.tsx +116 -59
  440. package/src/components/circular-progress/index.ts +1 -0
  441. package/src/components/code/code.test.tsx +16 -0
  442. package/src/components/code/code.tsx +11 -0
  443. package/src/components/combobox/combobox.tsx +63 -28
  444. package/src/components/combobox-list/combobox-list.tsx +11 -3
  445. package/src/components/data-list/data-list.test.tsx +149 -0
  446. package/src/components/data-list/data-list.tsx +268 -0
  447. package/src/components/data-list/index.ts +9 -0
  448. package/src/components/data-table/data-table-group.test.tsx +16 -0
  449. package/src/components/data-table/data-table-group.tsx +15 -2
  450. package/src/components/data-table/data-table-placeholder.tsx +28 -36
  451. package/src/components/data-table/data-table-stack.tsx +33 -39
  452. package/src/components/data-table/data-table.test.tsx +31 -0
  453. package/src/components/data-table/data-table.tsx +41 -42
  454. package/src/components/date-picker/aliases.tsx +28 -0
  455. package/src/components/date-picker/date-picker.test.tsx +29 -0
  456. package/src/components/date-picker/date-picker.tsx +164 -45
  457. package/src/components/date-picker/index.ts +5 -1
  458. package/src/components/date-picker/month-year-picker.test.tsx +362 -0
  459. package/src/components/drawer/drawer.test.tsx +41 -0
  460. package/src/components/drawer/drawer.tsx +7 -1
  461. package/src/components/empty-state/empty-state.test.tsx +109 -0
  462. package/src/components/empty-state/empty-state.tsx +180 -0
  463. package/src/components/empty-state/index.ts +9 -0
  464. package/src/components/field/field.tsx +35 -1
  465. package/src/components/fieldset/fieldset.test.tsx +352 -0
  466. package/src/components/fieldset/fieldset.tsx +268 -0
  467. package/src/components/fieldset/index.ts +11 -0
  468. package/src/components/file-preview/file-preview.test.tsx +2 -1
  469. package/src/components/file-preview/file-preview.tsx +7 -13
  470. package/src/components/file-upload/file-upload.tsx +14 -5
  471. package/src/components/hover-card/hover-card.tsx +5 -1
  472. package/src/components/input/input.tsx +12 -5
  473. package/src/components/kbd/kbd.test.tsx +13 -0
  474. package/src/components/kbd/kbd.tsx +6 -0
  475. package/src/components/menu/menu.tsx +6 -2
  476. package/src/components/modal/modal.test.tsx +41 -0
  477. package/src/components/modal/modal.tsx +17 -9
  478. package/src/components/multi-combobox-list/multi-combobox-list.tsx +11 -3
  479. package/src/components/multi-select/multi-select.tsx +11 -3
  480. package/src/components/notification/create-notifier.tsx +1 -1
  481. package/src/components/number-input/number-input.tsx +12 -3
  482. package/src/components/overlays/dialog-parts.tsx +42 -5
  483. package/src/components/pagination/index.ts +19 -0
  484. package/src/components/pagination/pagination.test.tsx +187 -0
  485. package/src/components/pagination/pagination.tsx +563 -0
  486. package/src/components/password-input/password-input.tsx +12 -3
  487. package/src/components/phone-input/phone-input.tsx +12 -3
  488. package/src/components/pills-input/pills-input.tsx +7 -2
  489. package/src/components/pin-input/pin-input.tsx +13 -4
  490. package/src/components/popover/popover.tsx +87 -17
  491. package/src/components/progress/index.ts +1 -0
  492. package/src/components/progress/progress.test.tsx +102 -0
  493. package/src/components/progress/progress.tsx +116 -62
  494. package/src/components/prose/index.ts +1 -0
  495. package/src/components/prose/prose.test.tsx +90 -0
  496. package/src/components/prose/prose.tsx +60 -0
  497. package/src/components/prose/styles.css +593 -0
  498. package/src/components/radio-group/radio-group.tsx +8 -3
  499. package/src/components/rating/rating.tsx +5 -2
  500. package/src/components/scroll-area/index.ts +18 -0
  501. package/src/components/scroll-area/scroll-area.test.tsx +184 -0
  502. package/src/components/scroll-area/scroll-area.tsx +448 -0
  503. package/src/components/segment-group/segment-group.tsx +2 -2
  504. package/src/components/select/select.tsx +37 -18
  505. package/src/components/slider/slider.tsx +2 -2
  506. package/src/components/splitter/index.ts +15 -0
  507. package/src/components/splitter/splitter.test.tsx +244 -0
  508. package/src/components/splitter/splitter.tsx +625 -0
  509. package/src/components/spotlight/spotlight.test.tsx +34 -26
  510. package/src/components/spotlight/spotlight.tsx +7 -9
  511. package/src/components/steps/index.ts +21 -0
  512. package/src/components/steps/steps-data.tsx +179 -0
  513. package/src/components/steps/steps.test.tsx +235 -0
  514. package/src/components/steps/steps.tsx +686 -0
  515. package/src/components/switch/switch.tsx +7 -2
  516. package/src/components/table-of-contents/index.ts +17 -0
  517. package/src/components/table-of-contents/table-of-contents.test.tsx +289 -0
  518. package/src/components/table-of-contents/table-of-contents.tsx +708 -0
  519. package/src/components/tags-input/tags-input.tsx +12 -3
  520. package/src/components/textarea/textarea.tsx +15 -5
  521. package/src/components/tooltip/tooltip.tsx +8 -17
  522. package/src/components/tour/conditions.test.ts +527 -0
  523. package/src/components/tour/conditions.ts +445 -0
  524. package/src/components/tour/create-tours.tsx +150 -0
  525. package/src/components/tour/index.ts +86 -0
  526. package/src/components/tour/runtime.ts +187 -0
  527. package/src/components/tour/storage.test.ts +68 -0
  528. package/src/components/tour/storage.ts +44 -0
  529. package/src/components/tour/store.test.tsx +784 -0
  530. package/src/components/tour/store.ts +661 -0
  531. package/src/components/tour/tour.test.tsx +318 -0
  532. package/src/components/tour/tour.tsx +773 -0
  533. package/src/components/tour/tour.types.test.ts +185 -0
  534. package/src/components/tour/types.ts +904 -0
  535. package/src/components/tree/index.ts +24 -0
  536. package/src/components/tree/tree-row.tsx +179 -0
  537. package/src/components/tree/tree.test.tsx +296 -0
  538. package/src/components/tree/tree.tsx +796 -0
  539. package/src/components/tree-multi-select/tree-multi-select.tsx +29 -58
  540. package/src/components/tree-select/tree-popover.tsx +26 -107
  541. package/src/components/tree-select/tree-select.tsx +24 -16
  542. package/src/icon-stroke.test.tsx +2 -0
  543. package/src/index.ts +16 -0
  544. package/src/lib/date-predicates.test.ts +46 -0
  545. package/src/lib/date-predicates.ts +44 -24
  546. package/src/lib/date-value.test.ts +24 -1
  547. package/src/lib/date-value.ts +42 -1
  548. package/src/lib/floating-arrow.tsx +73 -0
  549. package/src/lib/focus-return.test.tsx +143 -0
  550. package/src/lib/focus-return.ts +106 -0
  551. package/src/lib/meter.test.ts +40 -0
  552. package/src/lib/meter.ts +159 -0
  553. package/src/lib/overlay-layer.test.tsx +47 -1
  554. package/src/lib/overlay-layer.tsx +65 -8
  555. package/src/lib/pressed.ts +130 -0
  556. package/src/lib/tree-data.ts +42 -2
  557. package/src/lib/use-pagination.test.ts +105 -0
  558. package/src/lib/use-pagination.ts +179 -0
  559. package/src/lib/use-scroll-spy.test.tsx +238 -0
  560. package/src/lib/use-scroll-spy.ts +336 -0
  561. package/src/theme.css +39 -3
  562. package/src/theme.test.ts +29 -1
  563. package/src/visually-hidden-containment.test.tsx +9 -0
  564. package/dist/chunk-2W7H43WL.js.map +0 -1
  565. package/dist/chunk-7E7JNWOC.js.map +0 -1
  566. package/dist/chunk-7FPSQBWB.js.map +0 -1
  567. package/dist/chunk-7KFUFAVP.js.map +0 -1
  568. package/dist/chunk-AKXALCUN.js.map +0 -1
  569. package/dist/chunk-B5YHYI7E.js.map +0 -1
  570. package/dist/chunk-FQJNQW3G.js.map +0 -1
  571. package/dist/chunk-G3AD3NJG.js.map +0 -1
  572. package/dist/chunk-GEZYGBXY.js.map +0 -1
  573. package/dist/chunk-HCHGERDB.js.map +0 -1
  574. package/dist/chunk-HWBFRDX7.js.map +0 -1
  575. package/dist/chunk-I4B3N3UX.js.map +0 -1
  576. package/dist/chunk-IA6DCC3N.js.map +0 -1
  577. package/dist/chunk-IANYMDKH.js.map +0 -1
  578. package/dist/chunk-MQHD3EJE.js.map +0 -1
  579. package/dist/chunk-NNPSBC7O.js.map +0 -1
  580. package/dist/chunk-OXR7BXZA.js.map +0 -1
  581. package/dist/chunk-QKSLDQM2.js +0 -120
  582. package/dist/chunk-QKSLDQM2.js.map +0 -1
  583. package/dist/chunk-QRNQQIQM.js.map +0 -1
  584. package/dist/chunk-RKCUXOU2.js.map +0 -1
  585. package/dist/chunk-S5CQRCTF.js +0 -426
  586. package/dist/chunk-S5CQRCTF.js.map +0 -1
  587. package/dist/chunk-SBZJGFZ6.js.map +0 -1
  588. package/dist/chunk-SP6LCCTZ.js.map +0 -1
  589. package/dist/chunk-TUP7WXQE.js.map +0 -1
  590. package/dist/chunk-V2QZG4IT.js.map +0 -1
  591. package/dist/chunk-X6DESK37.js.map +0 -1
  592. package/dist/chunk-ZB5VMGKB.js.map +0 -1
@@ -15,4 +15,20 @@ export declare const DateTimePicker: (props: DateTimePickerProps) => import("rea
15
15
  export type DateTimeRangePickerProps = Omit<DatePickerProps<true>, "range" | "withTime">;
16
16
  /** `DateTimeRangePicker` === `<DatePicker range withTime />`. */
17
17
  export declare const DateTimeRangePicker: (props: DateTimeRangePickerProps) => import("react").JSX.Element;
18
+ /** The props a month or year picker doesn't take: its unit is pinned, and a time of day, a typed
19
+ * day and several months side by side are all day-picker concerns. */
20
+ type DayOnlyProps = "minView" | "withTime" | "typeable" | "numOfMonths" | "fixedWeeks";
21
+ type TimeProps = "format" | "hourCycle" | "minuteStep" | "withSeconds" | "timePlaceholder";
22
+ export type MonthPickerProps<Range extends boolean = false> = Omit<DatePickerProps<Range>, DayOnlyProps | TimeProps>;
23
+ /**
24
+ * `MonthPicker` === `<DatePicker minView="month" />`: a month is the value, as its first day at
25
+ * midnight in the picker's `timeZone` (`{ start, end }` of first days under `range`). The popover
26
+ * opens on the month grid; its header steps a year at a time and climbs to the year grid.
27
+ */
28
+ export declare const MonthPicker: <Range extends boolean = false>(props: MonthPickerProps<Range>) => import("react").JSX.Element;
29
+ export type YearPickerProps<Range extends boolean = false> = Omit<DatePickerProps<Range>, DayOnlyProps | TimeProps | "maxView">;
30
+ /** `YearPicker` === `<DatePicker minView="year" maxView="year" />`: a year is the value, as
31
+ * January 1st at midnight in the picker's `timeZone`. The popover is a decade of years. */
32
+ export declare const YearPicker: <Range extends boolean = false>(props: YearPickerProps<Range>) => import("react").JSX.Element;
33
+ export {};
18
34
  //# sourceMappingURL=aliases.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/aliases.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAA;AAEhE;;;;;;GAMG;AAEH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;AACvE,0FAA0F;AAC1F,eAAO,MAAM,eAAe,UAAW,oBAAoB,gCAAoC,CAAA;AAE/F,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAA;AAC1E,sDAAsD;AACtD,eAAO,MAAM,cAAc,UAAW,mBAAmB,gCAAuC,CAAA;AAEhG,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAA;AACxF,iEAAi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/D,eAAe,CAAC,KAAK,CAAC,EACtB,YAAY,GAAG,SAAS,GAAG,SAAS,CACrC,CAAA;AACD;4FAC4F;AAC5F,eAAO,MAAM,UAAU,GAAI,KAAK,SAAS,OAAO,GAAG,KAAK,SAAS,eAAe,CAAC,KAAK,CAAC,gCAEtF,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { DatePicker as Ark, type DatePickerDateRangePreset as DateRangePreset, type DateValue, type DatePickerDateView as DateView } from "@ark-ui/react/date-picker";
2
2
  import { type ReactNode } from "react";
3
3
  import type { DatePredicate } from "../../lib/date-predicates";
4
- import { type DateRangeValue } from "../../lib/date-value";
4
+ import { type DateRangeValue, type DateUnit } from "../../lib/date-value";
5
5
  import type { FormControlProps } from "../../lib/form-control";
6
6
  import type { Size } from "../../lib/sizes";
7
7
  import type { WithTestId } from "../../lib/test-id";
@@ -20,7 +20,10 @@ import { TimeRow, type TimeRowTranslations } from "../time-input/time-row";
20
20
  * is driven by the picker's own `withTime` flag, not by whether the value happens to carry an
21
21
  * `hour` field — a `CalendarDateTime` always has one (even at local midnight), so that structural
22
22
  * check can't tell "date-only" from "with time" apart. */
23
- export declare const serializeDateValue: (value: DateValue, withTime: boolean) => string;
23
+ export declare const serializeDateValue: (value: DateValue, withTime: boolean,
24
+ /** A month or year picker's value serializes as `YYYY-MM` (the `<input type="month">` format)
25
+ * or `YYYY`, never as its placeholder first day. */
26
+ unit?: DateUnit) => string;
24
27
  export type DatePickerClassNames = {
25
28
  field?: string;
26
29
  control?: string;
@@ -53,8 +56,9 @@ export type DatePreset = {
53
56
  date: Date | null;
54
57
  };
55
58
  /** Identifies each entry `getDefaultPresets` builds for `presets={true}`, so a `translations`
56
- * override can target one label without redefining the whole set. */
57
- export type DatePickerPresetId = "today" | "yesterday" | "tomorrow" | "nextWeek" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "thisYear" | "allTime";
59
+ * override can target one label without redefining the whole set. `nextMonth`, `lastYear` and
60
+ * `nextYear` are the month and year pickers' own. */
61
+ export type DatePickerPresetId = "today" | "yesterday" | "tomorrow" | "nextWeek" | "thisWeek" | "lastWeek" | "thisMonth" | "lastMonth" | "nextMonth" | "thisYear" | "lastYear" | "nextYear" | "allTime";
58
62
  /** One unified `translations` prop rather than one per string source — Ark's own accessible
59
63
  * names, the `presets={true}` default labels, and the embedded time row's strings all belong to
60
64
  * the same `DatePicker` instance a consumer is localizing. English defaults throughout;
@@ -97,7 +101,9 @@ export type DatePickerProps<Range extends boolean = false> = FormControlProps<Ra
97
101
  clearable?: boolean;
98
102
  /** Restriction predicate over a native `Date`. Compose with `lib/date-predicates.ts`'s helpers.
99
103
  * Called with this component's own resolved `timeZone` as its second argument, so a predicate
100
- * reads the candidate day in the same zone the grid renders it in. */
104
+ * reads the candidate day in the same zone the grid renders it in. Under a month or year
105
+ * `minView` it is asked about each month or year cell instead, as that unit's first day, with
106
+ * the unit (`"month"` / `"year"`) as a third argument. */
101
107
  isDateUnavailable?: DatePredicate;
102
108
  /** Renders a text input (typing, blur-to-parse, `Enter`-to-commit) alongside the
103
109
  * calendar-icon trigger, instead of the plain button-only trigger. Opt-in — default `false`
@@ -111,7 +117,11 @@ export type DatePickerProps<Range extends boolean = false> = FormControlProps<Ra
111
117
  typeable?: boolean;
112
118
  min?: Date;
113
119
  max?: Date;
114
- /** Bounds the view levels reachable via navigation (e.g. `minView="month"`). */
120
+ /** The lowest view the popover reaches, and so what one pick commits. `"day"` (default)
121
+ * picks a day; `"month"` / `"year"` make it a month or year picker (`MonthPicker`,
122
+ * `YearPicker`): the value is that month's or year's first day, the trigger shows the month
123
+ * or year, `min`/`max` widen to the whole month or year they fall in, `isDateUnavailable` is
124
+ * asked about each cell, and `withTime` / `typeable` / `numOfMonths` don't apply. */
115
125
  minView?: DateView;
116
126
  maxView?: DateView;
117
127
  /** Overrides the active locale context. Drives month/day names, first-day-of-week, and the
@@ -139,7 +149,8 @@ export type DatePickerProps<Range extends boolean = false> = FormControlProps<Ra
139
149
  /** Replaces the calendar's default icons: `prev`, `next`, passed through to its grid like
140
150
  * `translations`. The kit's chevrons mirror under RTL; an icon passed here is drawn as given. */
141
151
  icons?: DatePickerIcons;
142
- /** Placeholder shown while no date is selected. */
152
+ /** Placeholder shown while nothing is selected. Default `"Pick a date"` (`"Pick a month"` /
153
+ * `"Pick a year"` under `minView`). */
143
154
  placeholder?: string;
144
155
  /** Inline-start adornment. Defaults to a calendar icon. */
145
156
  startSlot?: ReactNode;
@@ -154,7 +165,7 @@ export type DatePickerProps<Range extends boolean = false> = FormControlProps<Ra
154
165
  className?: string;
155
166
  classNames?: DatePickerClassNames;
156
167
  };
157
- declare const PresetsRail: ({ presets, range, timeZone, locale, withConfirm, translations, className, }: {
168
+ declare const PresetsRail: ({ presets, range, timeZone, locale, withConfirm, translations, unit, className, }: {
158
169
  presets: DatePreset[] | boolean;
159
170
  /** Which default set `presets === true` resolves to — irrelevant once `presets` is a concrete array. */
160
171
  range?: boolean;
@@ -165,6 +176,9 @@ declare const PresetsRail: ({ presets, range, timeZone, locale, withConfirm, tra
165
176
  /** Overrides individual `presets={true}` default-set labels, keyed by id. No effect on a
166
177
  * custom `DatePreset[]`. */
167
178
  translations?: Partial<Record<DatePickerPresetId, string>>;
179
+ /** The picker's value unit (its `minView`). Picks the `presets === true` set, and snaps every
180
+ * preset's dates to the first day of their month or year, like a picked cell. */
181
+ unit?: DateUnit;
168
182
  className?: string;
169
183
  }) => import("react").JSX.Element | null;
170
184
  export type TimePanelRowProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/date-picker.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,IAAI,GAAG,EACjB,KAAK,yBAAyB,IAAI,eAAe,EACjD,KAAK,SAAS,EACd,KAAK,kBAAkB,IAAI,QAAQ,EAEpC,MAAM,2BAA2B,CAAA;AAKlC,OAAO,EAAmB,KAAK,SAAS,EAAqC,MAAM,OAAO,CAAA;AAG1F,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@ark-ui/react/date-picker";
2
2
  export { getLocalTimeZone } from "@internationalized/date";
3
3
  export { afterDate, allOf, anyOf, beforeDate, type DatePredicate, disableDates, disableFuture, disablePast, disableWeekends, } from "../../lib/date-predicates";
4
- export type { DateRangeValue } from "../../lib/date-value";
5
- export { DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, } from "./aliases";
4
+ export type { DateRangeValue, DateUnit } from "../../lib/date-value";
5
+ export { DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, MonthPicker, type MonthPickerProps, YearPicker, type YearPickerProps, } from "./aliases";
6
6
  export { DatePicker, type DatePickerClassNames, type DatePickerIcons, type DatePickerPresetId, type DatePickerProps, type DatePickerTranslations, type DatePreset, } from "./date-picker";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,yBAAyB,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,EACL,UAAU,EACV,KAAK,aAAa,EAClB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,2BAA2B,CAAA;AAClC,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,cAAc,EACd,KAAK,mBAAmB,EACxB,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,GAChB,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,yBAAyB,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EACL,SAAS,EACT,KAAK,EACL,KAAK,EACL,UAAU,EACV,KAAK,aAAa,EAClB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,eAAe,GAChB,MAAM,2BAA2B,CAAA;AAClC,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,EACzB,cAAc,EACd,KAAK,mBAAmB,EACxB,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,WAAW,EACX,KAAK,gBAAgB,EACrB,UAAU,EACV,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAClB,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,GAChB,MAAM,eAAe,CAAA"}
@@ -1,55 +1,61 @@
1
1
  "use client";
2
- import { DatePicker } from '../../chunk-GEZYGBXY.js';
3
- export { DatePicker } from '../../chunk-GEZYGBXY.js';
4
- import '../../chunk-HMNXNKDA.js';
5
- import '../../chunk-IANYMDKH.js';
6
- import '../../chunk-SBZJGFZ6.js';
7
- import '../../chunk-S5CQRCTF.js';
8
- import { dateToCalendarValue } from '../../chunk-ZB5VMGKB.js';
2
+ import { DatePicker } from '../../chunk-6MVFCS46.js';
3
+ export { DatePicker } from '../../chunk-6MVFCS46.js';
4
+ import '../../chunk-FCBYUN6F.js';
5
+ import '../../chunk-UBQ54W46.js';
6
+ import '../../chunk-QHT4DCXE.js';
7
+ import '../../chunk-RPFN6ETQ.js';
8
+ import { dateToCalendarValue, snapToUnit } from '../../chunk-MV5DIE2T.js';
9
+ import '../../chunk-KZDMVOL6.js';
9
10
  import '../../chunk-5FDOOG4J.js';
10
- import '../../chunk-I4B3N3UX.js';
11
- import '../../chunk-X6DESK37.js';
11
+ import '../../chunk-HTVICHT4.js';
12
+ import '../../chunk-2RRTT4AF.js';
12
13
  import '../../chunk-DHM4IG2O.js';
13
- import '../../chunk-SP6LCCTZ.js';
14
+ import '../../chunk-YUVKROMA.js';
15
+ import '../../chunk-TPOV3OCC.js';
16
+ import '../../chunk-SI7C3W5M.js';
14
17
  import '../../chunk-HBWV5EPU.js';
15
18
  import '../../chunk-OBSZ4NE2.js';
16
- import '../../chunk-RKCUXOU2.js';
17
- import '../../chunk-HWBFRDX7.js';
18
19
  import '../../chunk-V6PY7C6S.js';
19
20
  import '../../chunk-SLUOF7XW.js';
20
- import '../../chunk-B5YHYI7E.js';
21
+ import '../../chunk-ALANKV5Y.js';
22
+ import '../../chunk-NDI4HLQE.js';
21
23
  import '../../chunk-6B2GNPJP.js';
22
- import '../../chunk-PQZSTI3R.js';
23
- import '../../chunk-PMUCGFY5.js';
24
- import '../../chunk-BUIHQJGE.js';
25
24
  import '../../chunk-6YNLRQ25.js';
26
25
  import '../../chunk-XXOR34T4.js';
27
26
  import '../../chunk-W3XX7BYT.js';
27
+ import '../../chunk-PQZSTI3R.js';
28
+ import '../../chunk-PMUCGFY5.js';
29
+ import '../../chunk-BUIHQJGE.js';
28
30
  import '../../chunk-R5LYFTHA.js';
29
31
  import '../../chunk-WYCMIIRR.js';
30
32
  import '../../chunk-C6NVU4F7.js';
31
33
  import '../../chunk-GIPQUKCN.js';
32
34
  import '../../chunk-4ASNIDV7.js';
33
- import { today, getLocalTimeZone, isWeekend, isSameDay } from '@internationalized/date';
35
+ import { getLocalTimeZone, isWeekend, isSameDay, today } from '@internationalized/date';
34
36
  export { getLocalTimeZone } from '@internationalized/date';
35
37
  import { jsx } from 'react/jsx-runtime';
36
38
 
37
39
  var WEEKEND_LOCALE = "en-US";
38
- var disablePast = () => (date, timeZone = getLocalTimeZone()) => dateToCalendarValue(date, timeZone).compare(today(timeZone)) < 0;
39
- var disableFuture = () => (date, timeZone = getLocalTimeZone()) => dateToCalendarValue(date, timeZone).compare(today(timeZone)) > 0;
40
- var disableWeekends = () => (date, timeZone = getLocalTimeZone()) => isWeekend(dateToCalendarValue(date, timeZone), WEEKEND_LOCALE);
41
- var beforeDate = (boundary) => (date, timeZone = getLocalTimeZone()) => dateToCalendarValue(date, timeZone).compare(dateToCalendarValue(boundary, timeZone)) < 0;
42
- var afterDate = (boundary) => (date, timeZone = getLocalTimeZone()) => dateToCalendarValue(date, timeZone).compare(dateToCalendarValue(boundary, timeZone)) > 0;
43
- var disableDates = (dates) => (date, timeZone = getLocalTimeZone()) => {
44
- const value = dateToCalendarValue(date, timeZone);
45
- return dates.some((boundary) => isSameDay(value, dateToCalendarValue(boundary, timeZone)));
40
+ var at = (date, timeZone, unit = "day") => snapToUnit(dateToCalendarValue(date, timeZone), unit);
41
+ var now = (timeZone, unit = "day") => snapToUnit(today(timeZone), unit);
42
+ var disablePast = () => (date, timeZone = getLocalTimeZone(), unit) => at(date, timeZone, unit).compare(now(timeZone, unit)) < 0;
43
+ var disableFuture = () => (date, timeZone = getLocalTimeZone(), unit) => at(date, timeZone, unit).compare(now(timeZone, unit)) > 0;
44
+ var disableWeekends = () => (date, timeZone = getLocalTimeZone(), unit = "day") => unit === "day" && isWeekend(dateToCalendarValue(date, timeZone), WEEKEND_LOCALE);
45
+ var beforeDate = (boundary) => (date, timeZone = getLocalTimeZone(), unit) => at(date, timeZone, unit).compare(at(boundary, timeZone, unit)) < 0;
46
+ var afterDate = (boundary) => (date, timeZone = getLocalTimeZone(), unit) => at(date, timeZone, unit).compare(at(boundary, timeZone, unit)) > 0;
47
+ var disableDates = (dates) => (date, timeZone = getLocalTimeZone(), unit) => {
48
+ const value = at(date, timeZone, unit);
49
+ return dates.some((other) => isSameDay(value, at(other, timeZone, unit)));
46
50
  };
47
- var anyOf = (...predicates) => (date, timeZone) => predicates.some((predicate) => predicate(date, timeZone));
48
- var allOf = (...predicates) => (date, timeZone) => predicates.every((predicate) => predicate(date, timeZone));
51
+ var anyOf = (...predicates) => (date, timeZone, unit) => predicates.some((predicate) => predicate(date, timeZone, unit));
52
+ var allOf = (...predicates) => (date, timeZone, unit) => predicates.every((predicate) => predicate(date, timeZone, unit));
49
53
  var DateRangePicker = (props) => /* @__PURE__ */ jsx(DatePicker, { ...props, range: true });
50
54
  var DateTimePicker = (props) => /* @__PURE__ */ jsx(DatePicker, { ...props, withTime: true });
51
55
  var DateTimeRangePicker = (props) => /* @__PURE__ */ jsx(DatePicker, { ...props, range: true, withTime: true });
56
+ var MonthPicker = (props) => /* @__PURE__ */ jsx(DatePicker, { ...props, minView: "month" });
57
+ var YearPicker = (props) => /* @__PURE__ */ jsx(DatePicker, { ...props, minView: "year", maxView: "year" });
52
58
 
53
- export { DateRangePicker, DateTimePicker, DateTimeRangePicker, afterDate, allOf, anyOf, beforeDate, disableDates, disableFuture, disablePast, disableWeekends };
59
+ export { DateRangePicker, DateTimePicker, DateTimeRangePicker, MonthPicker, YearPicker, afterDate, allOf, anyOf, beforeDate, disableDates, disableFuture, disablePast, disableWeekends };
54
60
  //# sourceMappingURL=index.js.map
55
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/date-predicates.ts","../../../src/components/date-picker/aliases.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,IAAM,cAAA,GAAiB,OAAA;AAchB,IAAM,WAAA,GACX,MACA,CAAC,IAAA,EAAM,WAAW,gBAAA,EAAiB,KACjC,mBAAA,CAAoB,IAAA,EAAM,QAAQ,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAM,QAAQ,CAAC,CAAA,GAAI;AAI5D,IAAM,aAAA,GACX,MACA,CAAC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,QAAQ,CAAC;ACtEtD,IAAM,eAAA,GAAkB,CAAC,KAAA,qBAAgC,GAAA,CAAC,cAAY,GAAG,KAAA,EAAO,OAAK,IAAA,EAAC;AAItF,IAAM,cAAA,GAAiB,CAAC,KAAA,qBAA+B,GAAA,CAAC,cAAY,GAAG,KAAA,EAAO,UAAQ,IAAA,EAAC;AAIvF,IAAM,mBAAA,GAAsB,CAAC,KAAA,qBAClC,GAAA,CAAC,UAAA,EAAA,EAAY,GAAG,KAAA,EAAO,KAAA,EAAK,IAAA,EAAC,QAAA,EAAQ,IAAA,EAAC","file":"index.js","sourcesContent":["import { getLocalTimeZone, isSameDay, isWeekend, today } from \"@internationalized/date\"\nimport { dateToCalendarValue } from \"./date-value\"\n\n/**\n * RFC §7 (`docs/rfcs/date-picker.md`) restriction-predicate helpers — composable `DatePredicate`\n * callbacks for `Calendar`/`DatePicker`'s `isDateUnavailable`. They present a pure-`Date` surface,\n * converting internally via `lib/date-value.ts`'s boundary.\n *\n * isDateUnavailable={anyOf(disablePast(), disableWeekends())}\n *\n * The factories stay zero-arg (or value-only) so they read naturally at the call site; the zone\n * every conversion is interpreted in arrives as the predicate's *second argument*, which\n * `Calendar`/`DatePicker` fill in with the very `timeZone` they were given. A predicate therefore\n * can't disagree with the component restricting by it — `<Calendar timeZone=\"UTC\"\n * isDateUnavailable={disableWeekends()} />` disables UTC Saturdays whatever the host zone is,\n * instead of whichever days happened to be weekends where the code ran.\n */\n\n/** `isWeekend` needs a locale; these helpers don't take one, so the Gregorian Saturday/Sunday\n * convention is the v1 default. */\nconst WEEKEND_LOCALE = \"en-US\"\n\n/**\n * A day-restriction predicate: the candidate day, plus the `timeZone` to read it in.\n *\n * `Calendar`/`DatePicker` always pass their own resolved `timeZone` — the argument is optional\n * only so a predicate stays callable on its own (filtering a plain `Date[]`, a unit test), where\n * it falls back to the host zone exactly as before.\n */\nexport type DatePredicate = (date: Date, timeZone?: string) => boolean\n\n/** Disable every day before today, today itself included as available. Reads the clock on every\n * call rather than once at factory time, so a long-lived predicate's boundary keeps up as time\n * passes instead of going stale — same rationale as `schedule-predicates.ts`'s own `disablePast`. */\nexport const disablePast =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) =>\n dateToCalendarValue(date, timeZone).compare(today(timeZone)) < 0\n\n/** Disable every day after today, today itself included as available. Same per-call clock read as\n * `disablePast`. */\nexport const disableFuture =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) =>\n dateToCalendarValue(date, timeZone).compare(today(timeZone)) > 0\n\n/** Disable Saturdays/Sundays. */\nexport const disableWeekends =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) =>\n isWeekend(dateToCalendarValue(date, timeZone), WEEKEND_LOCALE)\n\n/** Disable every day strictly before `boundary`. */\nexport const beforeDate =\n (boundary: Date): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) =>\n dateToCalendarValue(date, timeZone).compare(dateToCalendarValue(boundary, timeZone)) < 0\n\n/** Disable every day strictly after `boundary`. */\nexport const afterDate =\n (boundary: Date): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) =>\n dateToCalendarValue(date, timeZone).compare(dateToCalendarValue(boundary, timeZone)) > 0\n\n/** Disable an explicit set of days (matched by calendar day, not exact instant). */\nexport const disableDates =\n (dates: Date[]): DatePredicate =>\n (date, timeZone = getLocalTimeZone()) => {\n const value = dateToCalendarValue(date, timeZone)\n return dates.some((boundary) => isSameDay(value, dateToCalendarValue(boundary, timeZone)))\n }\n\n/** OR-combine predicates — unavailable if ANY predicate disables the day. */\nexport const anyOf =\n (...predicates: DatePredicate[]): DatePredicate =>\n (date, timeZone) =>\n predicates.some((predicate) => predicate(date, timeZone))\n\n/** AND-combine predicates — unavailable only if EVERY predicate disables the day. */\nexport const allOf =\n (...predicates: DatePredicate[]): DatePredicate =>\n (date, timeZone) =>\n predicates.every((predicate) => predicate(date, timeZone))\n","import { DatePicker, type DatePickerProps } from \"./date-picker\"\n\n/**\n * Named presets of `DatePicker`, not separate components. code-style.md's \"generic over\n * bespoke\" rule still holds: each one is a single line that pins `range` / `withTime`, with no\n * markup or behaviour of its own. They exist because these are the names people search for\n * (Mantine and MUI ship them), and because pinning `range` fixes the value type\n * (`DateRangeValue` instead of `Date | null`) without the caller writing the generic.\n */\n\nexport type DateRangePickerProps = Omit<DatePickerProps<true>, \"range\">\n/** `DateRangePicker` === `<DatePicker range />` — same component, narrowed value type. */\nexport const DateRangePicker = (props: DateRangePickerProps) => <DatePicker {...props} range />\n\nexport type DateTimePickerProps = Omit<DatePickerProps<false>, \"withTime\">\n/** `DateTimePicker` === `<DatePicker withTime />`. */\nexport const DateTimePicker = (props: DateTimePickerProps) => <DatePicker {...props} withTime />\n\nexport type DateTimeRangePickerProps = Omit<DatePickerProps<true>, \"range\" | \"withTime\">\n/** `DateTimeRangePicker` === `<DatePicker range withTime />`. */\nexport const DateTimeRangePicker = (props: DateTimeRangePickerProps) => (\n <DatePicker {...props} range withTime />\n)\n"]}
1
+ {"version":3,"sources":["../../../src/lib/date-predicates.ts","../../../src/components/date-picker/aliases.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,IAAM,cAAA,GAAiB,OAAA;AAYvB,IAAM,EAAA,GAAK,CAAC,IAAA,EAAY,QAAA,EAAkB,IAAA,GAAiB,KAAA,KACzD,UAAA,CAAW,mBAAA,CAAoB,IAAA,EAAM,QAAQ,CAAA,EAAG,IAAI,CAAA;AAGtD,IAAM,GAAA,GAAM,CAAC,QAAA,EAAkB,IAAA,GAAiB,UAC9C,UAAA,CAAW,KAAA,CAAM,QAAQ,CAAA,EAAG,IAAI,CAAA;AAK3B,IAAM,cACX,MACA,CAAC,MAAM,QAAA,GAAW,gBAAA,IAAoB,IAAA,KACpC,EAAA,CAAG,IAAA,EAAM,QAAA,EAAU,IAAI,CAAA,CAAE,OAAA,CAAQ,IAAI,QAAA,EAAU,IAAI,CAAC,CAAA,GAAI;AAIrD,IAAM,gBACX,MACA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3D,IAAM,KAAA,GACX,CAAA,GAAI,UAAA,KACJ,CAAC,MAAM,QAAA,EAAU,IAAA,KACf,UAAA,CAAW,KAAA,CAAM,CAAC,SAAA,KAAc,SAAA,CAAU,IAAA,EAAM,QAAA,EAAU,IAAI,CAAC;AC1F5D,IAAM,eAAA,GAAkB,CAAC,KAAA,qBAAgC,GAAA,CAAC,cAAY,GAAG,KAAA,EAAO,OAAK,IAAA,EAAC;AAItF,IAAM,cAAA,GAAiB,CAAC,KAAA,qBAA+B,GAAA,CAAC,cAAY,GAAG,KAAA,EAAO,UAAQ,IAAA,EAAC;AAIvF,IAAM,mBAAA,GAAsB,CAAC,KAAA,qBAClC,GAAA,CAAC,UAAA,EAAA,EAAY,GAAG,KAAA,EAAO,KAAA,EAAK,IAAA,EAAC,QAAA,EAAQ,IAAA,EAAC;AAiBjC,IAAM,WAAA,GAAc,CAAgC,KAAA,qBACzD,GAAA,CAAC,cAAmB,GAAG,KAAA,EAAO,SAAQ,OAAA,EAAQ;AASzC,IAAM,UAAA,GAAa,CAAgC,KAAA,qBACxD,GAAA,CAAC,UAAA,EAAA,EAAmB,GAAG,KAAA,EAAO,OAAA,EAAQ,MAAA,EAAO,OAAA,EAAQ,MAAA,EAAO","file":"index.js","sourcesContent":["import {\n type DateValue,\n getLocalTimeZone,\n isSameDay,\n isWeekend,\n today,\n} from \"@internationalized/date\"\nimport { type DateUnit, dateToCalendarValue, snapToUnit } from \"./date-value\"\n\n/**\n * RFC §7 (`docs/rfcs/date-picker.md`) restriction-predicate helpers — composable `DatePredicate`\n * callbacks for `Calendar`/`DatePicker`'s `isDateUnavailable`. They present a pure-`Date` surface,\n * converting internally via `lib/date-value.ts`'s boundary.\n *\n * isDateUnavailable={anyOf(disablePast(), disableWeekends())}\n *\n * The factories stay zero-arg (or value-only) so they read naturally at the call site; the zone\n * every conversion is interpreted in arrives as the predicate's *second argument*, which\n * `Calendar`/`DatePicker` fill in with the very `timeZone` they were given. A predicate therefore\n * can't disagree with the component restricting by it — `<Calendar timeZone=\"UTC\"\n * isDateUnavailable={disableWeekends()} />` disables UTC Saturdays whatever the host zone is,\n * instead of whichever days happened to be weekends where the code ran.\n *\n * A month or year picker calls the same predicate once per *cell*, with that month's or year's\n * first day and a third `unit` argument. The helpers compare at that unit, so `disablePast()`\n * keeps the current month open in a `MonthPicker` (its first day is past, the month isn't), and\n * the day-only `disableWeekends()` disables nothing there.\n */\n\n/** `isWeekend` needs a locale; these helpers don't take one, so the Gregorian Saturday/Sunday\n * convention is the v1 default. */\nconst WEEKEND_LOCALE = \"en-US\"\n\n/**\n * A day-restriction predicate: the candidate day, plus the `timeZone` to read it in.\n *\n * `Calendar`/`DatePicker` always pass their own resolved `timeZone` — the argument is optional\n * only so a predicate stays callable on its own (filtering a plain `Date[]`, a unit test), where\n * it falls back to the host zone exactly as before.\n */\nexport type DatePredicate = (date: Date, timeZone?: string, unit?: DateUnit) => boolean\n\n/** `date` as the first day of its `unit`, read in `timeZone`: the one thing every helper compares. */\nconst at = (date: Date, timeZone: string, unit: DateUnit = \"day\"): DateValue =>\n snapToUnit(dateToCalendarValue(date, timeZone), unit)\n\n/** `today`, as the first day of its `unit`. */\nconst now = (timeZone: string, unit: DateUnit = \"day\"): DateValue =>\n snapToUnit(today(timeZone), unit)\n\n/** Disable every day before today, today itself included as available. Reads the clock on every\n * call rather than once at factory time, so a long-lived predicate's boundary keeps up as time\n * passes instead of going stale — same rationale as `schedule-predicates.ts`'s own `disablePast`. */\nexport const disablePast =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit) =>\n at(date, timeZone, unit).compare(now(timeZone, unit)) < 0\n\n/** Disable every day after today, today itself included as available. Same per-call clock read as\n * `disablePast`. */\nexport const disableFuture =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit) =>\n at(date, timeZone, unit).compare(now(timeZone, unit)) > 0\n\n/** Disable Saturdays/Sundays. A day-only rule: a month or year cell is never a weekend. */\nexport const disableWeekends =\n (): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit = \"day\") =>\n unit === \"day\" && isWeekend(dateToCalendarValue(date, timeZone), WEEKEND_LOCALE)\n\n/** Disable every day strictly before `boundary` (every month or year before its own, at that unit). */\nexport const beforeDate =\n (boundary: Date): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit) =>\n at(date, timeZone, unit).compare(at(boundary, timeZone, unit)) < 0\n\n/** Disable every day strictly after `boundary` (every month or year after its own, at that unit). */\nexport const afterDate =\n (boundary: Date): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit) =>\n at(date, timeZone, unit).compare(at(boundary, timeZone, unit)) > 0\n\n/** Disable an explicit set of days (matched by calendar day, not exact instant). At a month or\n * year unit, the months or years holding them. */\nexport const disableDates =\n (dates: Date[]): DatePredicate =>\n (date, timeZone = getLocalTimeZone(), unit) => {\n const value = at(date, timeZone, unit)\n return dates.some((other) => isSameDay(value, at(other, timeZone, unit)))\n }\n\n/** OR-combine predicates — unavailable if ANY predicate disables the day. */\nexport const anyOf =\n (...predicates: DatePredicate[]): DatePredicate =>\n (date, timeZone, unit) =>\n predicates.some((predicate) => predicate(date, timeZone, unit))\n\n/** AND-combine predicates — unavailable only if EVERY predicate disables the day. */\nexport const allOf =\n (...predicates: DatePredicate[]): DatePredicate =>\n (date, timeZone, unit) =>\n predicates.every((predicate) => predicate(date, timeZone, unit))\n","import { DatePicker, type DatePickerProps } from \"./date-picker\"\n\n/**\n * Named presets of `DatePicker`, not separate components. code-style.md's \"generic over\n * bespoke\" rule still holds: each one is a single line that pins `range` / `withTime`, with no\n * markup or behaviour of its own. They exist because these are the names people search for\n * (Mantine and MUI ship them), and because pinning `range` fixes the value type\n * (`DateRangeValue` instead of `Date | null`) without the caller writing the generic.\n */\n\nexport type DateRangePickerProps = Omit<DatePickerProps<true>, \"range\">\n/** `DateRangePicker` === `<DatePicker range />` — same component, narrowed value type. */\nexport const DateRangePicker = (props: DateRangePickerProps) => <DatePicker {...props} range />\n\nexport type DateTimePickerProps = Omit<DatePickerProps<false>, \"withTime\">\n/** `DateTimePicker` === `<DatePicker withTime />`. */\nexport const DateTimePicker = (props: DateTimePickerProps) => <DatePicker {...props} withTime />\n\nexport type DateTimeRangePickerProps = Omit<DatePickerProps<true>, \"range\" | \"withTime\">\n/** `DateTimeRangePicker` === `<DatePicker range withTime />`. */\nexport const DateTimeRangePicker = (props: DateTimeRangePickerProps) => (\n <DatePicker {...props} range withTime />\n)\n\n/** The props a month or year picker doesn't take: its unit is pinned, and a time of day, a typed\n * day and several months side by side are all day-picker concerns. */\ntype DayOnlyProps = \"minView\" | \"withTime\" | \"typeable\" | \"numOfMonths\" | \"fixedWeeks\"\ntype TimeProps = \"format\" | \"hourCycle\" | \"minuteStep\" | \"withSeconds\" | \"timePlaceholder\"\n\nexport type MonthPickerProps<Range extends boolean = false> = Omit<\n DatePickerProps<Range>,\n DayOnlyProps | TimeProps\n>\n/**\n * `MonthPicker` === `<DatePicker minView=\"month\" />`: a month is the value, as its first day at\n * midnight in the picker's `timeZone` (`{ start, end }` of first days under `range`). The popover\n * opens on the month grid; its header steps a year at a time and climbs to the year grid.\n */\nexport const MonthPicker = <Range extends boolean = false>(props: MonthPickerProps<Range>) => (\n <DatePicker<Range> {...props} minView=\"month\" />\n)\n\nexport type YearPickerProps<Range extends boolean = false> = Omit<\n DatePickerProps<Range>,\n DayOnlyProps | TimeProps | \"maxView\"\n>\n/** `YearPicker` === `<DatePicker minView=\"year\" maxView=\"year\" />`: a year is the value, as\n * January 1st at midnight in the picker's `timeZone`. The popover is a decade of years. */\nexport const YearPicker = <Range extends boolean = false>(props: YearPickerProps<Range>) => (\n <DatePicker<Range> {...props} minView=\"year\" maxView=\"year\" />\n)\n"]}
@@ -1,10 +1,14 @@
1
1
  "use client";
2
- export { DownloadButton } from '../../chunk-B4GNSSHU.js';
3
- import '../../chunk-SP6LCCTZ.js';
2
+ export { DownloadButton } from '../../chunk-NLJEQZQQ.js';
3
+ import '../../chunk-KZDMVOL6.js';
4
4
  import '../../chunk-EIBDLRAR.js';
5
+ import '../../chunk-NDI4HLQE.js';
5
6
  import '../../chunk-6B2GNPJP.js';
6
7
  import '../../chunk-XXOR34T4.js';
7
8
  import '../../chunk-W3XX7BYT.js';
9
+ import '../../chunk-PQZSTI3R.js';
10
+ import '../../chunk-PMUCGFY5.js';
11
+ import '../../chunk-BUIHQJGE.js';
8
12
  import '../../chunk-R5LYFTHA.js';
9
13
  import '../../chunk-WYCMIIRR.js';
10
14
  import '../../chunk-C6NVU4F7.js';
@@ -4,7 +4,7 @@ import { type ComponentPropsWithoutRef, type ReactNode } from "react";
4
4
  import type { NoAsChild } from "../../lib/as-child";
5
5
  import type { Size } from "../../lib/sizes";
6
6
  import type { WithTestId } from "../../lib/test-id";
7
- import { type DialogCloseTriggerProps, type DialogIconSlot, type DialogIcons, type DialogSectionProps } from "../overlays/dialog-parts";
7
+ import { type DialogBodyProps, type DialogCloseTriggerProps, type DialogIconSlot, type DialogIcons, type DialogSectionProps } from "../overlays/dialog-parts";
8
8
  /**
9
9
  * Drawer — edge-anchored panel on top of Ark UI's Drawer state machine. Ark
10
10
  * owns swipe-to-dismiss, snap points, focus-trap, scroll-lock and the
@@ -64,7 +64,7 @@ export type DrawerContentProps = ComponentPropsWithoutRef<typeof Ark.Content> &
64
64
  declare const DrawerContent: ({ className, size, radius, testId, ...rest }: DrawerContentProps) => import("react").JSX.Element;
65
65
  export type DrawerCloseTriggerProps = DialogCloseTriggerProps;
66
66
  export type DrawerHeaderProps = DialogSectionProps;
67
- export type DrawerBodyProps = DialogSectionProps;
67
+ export type DrawerBodyProps = DialogBodyProps;
68
68
  export type DrawerFooterProps = DialogSectionProps;
69
69
  export type DrawerGrabberProps = NoAsChild<ComponentPropsWithoutRef<typeof Ark.Grabber>> & WithTestId;
70
70
  declare const DrawerGrabber: ({ className, testId, asChild: _asChild, ...rest }: DrawerGrabberProps) => import("react").JSX.Element;
@@ -94,6 +94,9 @@ export type DrawerProps = Omit<ArkRootProps, "open" | "defaultOpen" | "onOpenCha
94
94
  "aria-labelledby"?: string;
95
95
  /** Render the default close button in the header. @default true */
96
96
  withCloseButton?: boolean;
97
+ /** Scroll the body (a `ScrollArea`). `false` for content that owns its own scroller; see
98
+ * `Drawer.Body`'s `scrollable`. @default true */
99
+ scrollable?: boolean;
97
100
  /** Show the drag grabber handle. @default false */
98
101
  withGrabber?: boolean;
99
102
  /**
@@ -127,7 +130,7 @@ export type DrawerProps = Omit<ArkRootProps, "open" | "defaultOpen" | "onOpenCha
127
130
  export type DrawerTranslations = {
128
131
  closeTriggerLabel?: string;
129
132
  };
130
- declare const DrawerComponent: ({ open, defaultOpen, onOpenChange, onClose, placement, size, radius, title, description, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, withCloseButton, withGrabber, withBackdrop, padding, closeOnEscape, closeOnInteractOutside, role, onExitComplete, container, children, className, classNames, testId, translations, icons, ...rest }: DrawerProps) => import("react").JSX.Element;
133
+ declare const DrawerComponent: ({ open, defaultOpen, onOpenChange, onClose, placement, size, radius, title, description, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, withCloseButton, scrollable, withGrabber, withBackdrop, padding, closeOnEscape, closeOnInteractOutside, role, onExitComplete, container, children, className, classNames, testId, translations, icons, ...rest }: DrawerProps) => import("react").JSX.Element;
131
134
  export declare const Drawer: typeof DrawerComponent & {
132
135
  Root: typeof DrawerRoot;
133
136
  Trigger: import("react").ForwardRefExoticComponent<Ark.TriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -140,7 +143,7 @@ export declare const Drawer: typeof DrawerComponent & {
140
143
  CloseTrigger: ({ children, className, "aria-label": ariaLabel, testId, asChild, ...rest }: DialogCloseTriggerProps) => import("react").JSX.Element;
141
144
  Grabber: typeof DrawerGrabber;
142
145
  Header: ({ className, testId, ...rest }: DialogSectionProps) => import("react").JSX.Element;
143
- Body: ({ className, testId, ...rest }: DialogSectionProps) => import("react").JSX.Element;
146
+ Body: ({ className, testId, scrollable, ...rest }: DialogBodyProps) => import("react").JSX.Element;
144
147
  Footer: ({ className, testId, ...rest }: DialogSectionProps) => import("react").JSX.Element;
145
148
  };
146
149
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EACL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EAGf,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAKnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EACnB,KAAK,WAAW,EAEhB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAA;AAEjC;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAiChE,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,wBAAwB,CAAC,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC,GAC5F,UAAU,CAAA;AAEZ;;;mCAGmC;AACnC,QAAA,MAAM,gBAAgB,gEAMnB,qBAAqB,gCAcvB,CAAA;AAED,QAAA,MAAM,aAAa;;;;8EAyDlB,CAAA;AAMD,MAAM,MAAM,cAAc,GAAG,cAAc,CAAA;AAC3C,MAAM,MAAM,WAAW,GAAG,WAAW,CAAA;AAErC,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG;IACxE;2EACuE;IACvE,SAAS,CAAC,EAAE,eAAe,CAAA;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;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,gBAAgB,CAAA;IAC7B;iGAC6F;IAC7F,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,sEAAsE;IACtE,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB,CAAA;AAEH;oBACoB;AACpB,MAAM,MAAM,kBAAkB,GAAG;IAAE,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/D,QAAA,MAAM,eAAe,0WA6BlB,WAAW,gCA+Eb,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAcjB,CAAA"}
@@ -1,15 +1,20 @@
1
1
  "use client";
2
2
  import '../../chunk-FMMKEYHB.js';
3
- export { Drawer } from '../../chunk-MQHD3EJE.js';
4
- import '../../chunk-V2QZG4IT.js';
5
- import '../../chunk-HWBFRDX7.js';
3
+ export { Drawer } from '../../chunk-LZHZJWVM.js';
4
+ import '../../chunk-5HWFYYHW.js';
5
+ import '../../chunk-TPOV3OCC.js';
6
+ import '../../chunk-SI7C3W5M.js';
7
+ import '../../chunk-HBWV5EPU.js';
8
+ import '../../chunk-OBSZ4NE2.js';
6
9
  import '../../chunk-SLUOF7XW.js';
7
- import '../../chunk-B5YHYI7E.js';
10
+ import '../../chunk-ALANKV5Y.js';
11
+ import '../../chunk-NDI4HLQE.js';
8
12
  import '../../chunk-6B2GNPJP.js';
9
- import '../../chunk-PQZSTI3R.js';
10
- import '../../chunk-BUIHQJGE.js';
11
13
  import '../../chunk-XXOR34T4.js';
12
14
  import '../../chunk-W3XX7BYT.js';
15
+ import '../../chunk-PQZSTI3R.js';
16
+ import '../../chunk-PMUCGFY5.js';
17
+ import '../../chunk-BUIHQJGE.js';
13
18
  import '../../chunk-R5LYFTHA.js';
14
19
  import '../../chunk-WYCMIIRR.js';
15
20
  import '../../chunk-C6NVU4F7.js';
@@ -0,0 +1,57 @@
1
+ import { type HTMLArkProps } from "@ark-ui/react";
2
+ import type { ReactNode, Ref } from "react";
3
+ import type { Color } from "../../lib/colors";
4
+ import type { WithTestId } from "../../lib/test-id";
5
+ import { type ThemeIconProps } from "../theme-icon";
6
+ export type EmptyStateRootProps = HTMLArkProps<"div"> & WithTestId & {
7
+ /** Palette for the icon and title. Omitted, everything stays neutral. */
8
+ color?: Color;
9
+ ref?: Ref<HTMLDivElement>;
10
+ };
11
+ declare const Root: ({ className, color, testId, ...rest }: EmptyStateRootProps) => import("react").JSX.Element;
12
+ export type EmptyStateIconProps = ThemeIconProps;
13
+ /** The icon badge: a `ThemeIcon`, decorative (`aria-hidden`). Without a
14
+ * `color` it is the muted `default` tile; with one, the `light` tile of that
15
+ * palette. Pass the same `color` as the root when composing by hand. */
16
+ declare const Icon: ({ color, variant, ...rest }: EmptyStateIconProps) => import("react").JSX.Element;
17
+ export type EmptyStateTitleProps = HTMLArkProps<"p">;
18
+ declare const Title: ({ className, ...rest }: EmptyStateTitleProps) => import("react").JSX.Element;
19
+ export type EmptyStateDescriptionProps = HTMLArkProps<"p">;
20
+ declare const Description: ({ className, ...rest }: EmptyStateDescriptionProps) => import("react").JSX.Element;
21
+ export type EmptyStateActionsProps = HTMLArkProps<"div">;
22
+ declare const Actions: ({ className, ...rest }: EmptyStateActionsProps) => import("react").JSX.Element;
23
+ export type EmptyStateProps = Omit<EmptyStateRootProps, "title"> & {
24
+ /** The glyph, drawn in a `ThemeIcon`. Omitted or `null`, no badge. */
25
+ icon?: ReactNode;
26
+ /** The headline: what the list shows instead of rows. */
27
+ title: ReactNode;
28
+ /** A muted line under the title: why, or what to do next. */
29
+ description?: ReactNode;
30
+ /** A class per part, on top of the kit's. */
31
+ classNames?: {
32
+ icon?: string;
33
+ title?: string;
34
+ description?: string;
35
+ actions?: string;
36
+ };
37
+ };
38
+ /**
39
+ * The ready-made **`EmptyState`**: lays out `icon`, `title` and `description`,
40
+ * skipping the ones not given, and puts its children (the buttons: clear the
41
+ * filters, retry, create the first item) in the actions row under the text. For a bespoke layout, compose the
42
+ * parts: `EmptyState.Root`, `.Icon`, `.Title`, `.Description`, `.Actions`.
43
+ */
44
+ declare function EmptyStateComponent({ icon, title, description, color, classNames, asChild, children, ...rest }: EmptyStateProps): import("react").JSX.Element;
45
+ /**
46
+ * `EmptyState` — the ready-made block, with its parts attached for bespoke
47
+ * composition (`EmptyState.Root`, `.Icon`, `.Title`, `.Description`, `.Actions`).
48
+ */
49
+ export declare const EmptyState: typeof EmptyStateComponent & {
50
+ Root: typeof Root;
51
+ Icon: typeof Icon;
52
+ Title: typeof Title;
53
+ Description: typeof Description;
54
+ Actions: typeof Actions;
55
+ };
56
+ export {};
57
+ //# sourceMappingURL=empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../../src/components/empty-state/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,eAAe,CAAA;AA4C9D,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,KAAK,CAAC,GACnD,UAAU,GAAG;IACX,yEAAyE;IACzE,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B,CAAA;AAEH,QAAA,MAAM,IAAI,0CAA2C,mBAAmB,gCAOvE,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAA;AAEhD;;yEAEyE;AACzE,QAAA,MAAM,IAAI,gCAAiC,mBAAmB,gCAO7D,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,GAAG,CAAC,CAAA;AAEpD,QAAA,MAAM,KAAK,2BAA4B,oBAAoB,gCAE1D,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC,GAAG,CAAC,CAAA;AAE1D,QAAA,MAAM,WAAW,2BAA4B,0BAA0B,gCAEtE,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,KAAK,CAAC,CAAA;AAExD,QAAA,MAAM,OAAO,2BAA4B,sBAAsB,gCAK9D,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IACjE,sEAAsE;IACtE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,yDAAyD;IACzD,KAAK,EAAE,SAAS,CAAA;IAChB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,6CAA6C;IAC7C,UAAU,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACvF,CAAA;AAED;;;;;GAKG;AACH,iBAAS,mBAAmB,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,eAAe,+BAuCjB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;CAMrB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { EmptyState, type EmptyStateActionsProps, type EmptyStateDescriptionProps, type EmptyStateIconProps, type EmptyStateProps, type EmptyStateRootProps, type EmptyStateTitleProps, } from "./empty-state";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/empty-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAA"}
@@ -0,0 +1,8 @@
1
+ export { EmptyState } from '../../chunk-XQ6L2CM5.js';
2
+ import '../../chunk-YVTM2KRR.js';
3
+ import '../../chunk-R5LYFTHA.js';
4
+ import '../../chunk-WYCMIIRR.js';
5
+ import '../../chunk-C6NVU4F7.js';
6
+ import '../../chunk-4ASNIDV7.js';
7
+ //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -20,6 +20,9 @@ import type { WithTestId } from "../../lib/test-id";
20
20
  * - `size` scales only the field's own typography; set the control's `size`
21
21
  * separately (the family components forward both).
22
22
  *
23
+ * Inside a `Fieldset`, the field takes the group's `disabled` and `invalid`
24
+ * unless it sets its own.
25
+ *
23
26
  * Every other prop (incl. `disabled`, `readOnly`, `id`) forwards to Ark's
24
27
  * `Field.Root`. `asChild` is a compile error: the field renders its label,
25
28
  * helper and error rows around the control, which can't live inside one
@@ -55,6 +58,23 @@ export type FieldSize = NonNullable<VariantProps<typeof fieldRoot>["size"]>;
55
58
  export declare const requiredMark: {
56
59
  readonly className: string;
57
60
  };
61
+ /**
62
+ * Whether a control is disabled once its surroundings are counted: its own
63
+ * prop, else the enclosing `Field`'s, else the enclosing `Fieldset`'s. The
64
+ * nearest one wins, since a `Field` has already taken its fieldset's state
65
+ * unless it set its own. Ark's own machines read a `Field` this way; this is
66
+ * for the kit's controls whose machine reads neither (a `Popover` trigger, a
67
+ * toggle group, a file upload) or that render with no `Field` at all (an
68
+ * unlabelled `Input`). It works at the control's top level, above its own
69
+ * `FieldShell`.
70
+ */
71
+ export declare const useInheritedDisabled: (disabled?: boolean) => boolean;
72
+ /**
73
+ * `invalid`'s twin of `useInheritedDisabled`: the control's own flag, else the
74
+ * nearest `Field`'s, else the nearest `Fieldset`'s. Ark's `Field` doesn't take
75
+ * a fieldset's `invalid`; the kit's `Field` below does.
76
+ */
77
+ export declare const useInheritedInvalid: (invalid?: boolean) => boolean;
58
78
  export declare const fieldA11yProps: (field: UseFieldContext) => {
59
79
  "aria-describedby": string | undefined;
60
80
  "aria-errormessage": string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,IAAI,GAAG,EAAE,KAAK,eAAe,EAAmB,MAAM,qBAAqB,CAAA;AACzF,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,eAAO,MAAM,SAAS;;8EAKpB,CAAA;AAMF,eAAO,MAAM,gBAAgB;;8EAQ5B,CAAA;AAED,eAAO,MAAM,UAAU;;8EAkBtB,CAAA;AA6BD,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAE3E;;;;;;;;;;;GAWG;AACH;;;;GAIG;AACH,eAAO,MAAM,YAAY;aAAK,SAAS;CAAmD,CAAA;AAE1F,eAAO,MAAM,cAAc,UAAW,eAAe;IACnD,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;CACjB,CAAA;AAEF,KAAK,eAAe,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;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O,CAAA;IACnB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,eAAe,CAAA;CAC7B,CAAA;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,iHAYpB,IAAI,CACL,UAAU,EACR,OAAO,GACP,aAAa,GACb,OAAO,GACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,WAAW,CACd,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gUAmB1B,CAAA;AAeD,eAAO,MAAM,KAAK,2IAcf,UAAU,gCAiDZ,CAAA"}
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- export { Field } from '../../chunk-X6DESK37.js';
2
+ export { Field } from '../../chunk-2RRTT4AF.js';
3
3
  import '../../chunk-WYCMIIRR.js';
4
4
  import '../../chunk-GIPQUKCN.js';
5
5
  import '../../chunk-4ASNIDV7.js';