@42-central/ui-react 0.18.2 → 0.19.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 (432) hide show
  1. package/dist/{chunk-YXE4B6X3.js → chunk-2NNZHVKD.js} +3 -3
  2. package/dist/{chunk-YXE4B6X3.js.map → chunk-2NNZHVKD.js.map} +1 -1
  3. package/dist/{chunk-5JHDSVEZ.js → chunk-4NNGTNPV.js} +10 -8
  4. package/dist/chunk-4NNGTNPV.js.map +1 -0
  5. package/dist/{chunk-7NZSTCJO.js → chunk-57BTVRRB.js} +4 -9
  6. package/dist/chunk-57BTVRRB.js.map +1 -0
  7. package/dist/{chunk-S2HWWR2H.js → chunk-64T6Z7BA.js} +3 -3
  8. package/dist/{chunk-S2HWWR2H.js.map → chunk-64T6Z7BA.js.map} +1 -1
  9. package/dist/{chunk-MI2WZRK3.js → chunk-A6MYJTJI.js} +4 -4
  10. package/dist/{chunk-MI2WZRK3.js.map → chunk-A6MYJTJI.js.map} +1 -1
  11. package/dist/{chunk-RQL7FVCS.js → chunk-BTFBBNRW.js} +11 -6
  12. package/dist/chunk-BTFBBNRW.js.map +1 -0
  13. package/dist/{chunk-OWG4BCQR.js → chunk-CYWMES5P.js} +4 -4
  14. package/dist/{chunk-OWG4BCQR.js.map → chunk-CYWMES5P.js.map} +1 -1
  15. package/dist/{chunk-YBJB7FGE.js → chunk-CZEKZ5HR.js} +6 -6
  16. package/dist/chunk-CZEKZ5HR.js.map +1 -0
  17. package/dist/{chunk-HAQJQFE6.js → chunk-DBTJEBMO.js} +11 -4
  18. package/dist/{chunk-HAQJQFE6.js.map → chunk-DBTJEBMO.js.map} +1 -1
  19. package/dist/{chunk-AE7QTLJ5.js → chunk-FAOBC4IS.js} +4 -4
  20. package/dist/{chunk-AE7QTLJ5.js.map → chunk-FAOBC4IS.js.map} +1 -1
  21. package/dist/{chunk-NF5JM2YO.js → chunk-FOMR74VE.js} +3 -3
  22. package/dist/{chunk-NF5JM2YO.js.map → chunk-FOMR74VE.js.map} +1 -1
  23. package/dist/{chunk-FZIHZT5R.js → chunk-GCGX4FEF.js} +16 -10
  24. package/dist/chunk-GCGX4FEF.js.map +1 -0
  25. package/dist/{chunk-B2YJKRNQ.js → chunk-HCYULRWT.js} +13 -9
  26. package/dist/chunk-HCYULRWT.js.map +1 -0
  27. package/dist/{chunk-B2LCHXUB.js → chunk-INJUILCN.js} +9 -4
  28. package/dist/chunk-INJUILCN.js.map +1 -0
  29. package/dist/{chunk-ZDXQ64A7.js → chunk-K5UWVH6P.js} +5 -5
  30. package/dist/{chunk-ZDXQ64A7.js.map → chunk-K5UWVH6P.js.map} +1 -1
  31. package/dist/{chunk-6GDMSENK.js → chunk-LM6F6DLR.js} +3 -24
  32. package/dist/chunk-LM6F6DLR.js.map +1 -0
  33. package/dist/{chunk-KHMFNH3X.js → chunk-MQO42HZL.js} +7 -7
  34. package/dist/chunk-MQO42HZL.js.map +1 -0
  35. package/dist/chunk-OC7I2CTA.js +8 -0
  36. package/dist/chunk-OC7I2CTA.js.map +1 -0
  37. package/dist/{chunk-O23Y5ML4.js → chunk-OGJFDNIS.js} +249 -231
  38. package/dist/chunk-OGJFDNIS.js.map +1 -0
  39. package/dist/{chunk-6OLTJYSX.js → chunk-PINENGML.js} +12 -5
  40. package/dist/chunk-PINENGML.js.map +1 -0
  41. package/dist/{chunk-NSDM3FEB.js → chunk-PS2PZFXH.js} +5 -3
  42. package/dist/chunk-PS2PZFXH.js.map +1 -0
  43. package/dist/{chunk-RAUOFTUH.js → chunk-QIDAXFKK.js} +4 -4
  44. package/dist/{chunk-RAUOFTUH.js.map → chunk-QIDAXFKK.js.map} +1 -1
  45. package/dist/{chunk-S7N4LGLZ.js → chunk-RIP5G47F.js} +4 -4
  46. package/dist/{chunk-S7N4LGLZ.js.map → chunk-RIP5G47F.js.map} +1 -1
  47. package/dist/{chunk-Z2Z5EXVT.js → chunk-RKYXG6X7.js} +3 -3
  48. package/dist/{chunk-Z2Z5EXVT.js.map → chunk-RKYXG6X7.js.map} +1 -1
  49. package/dist/{chunk-WQN64ZHG.js → chunk-SVKU3GUN.js} +10 -6
  50. package/dist/chunk-SVKU3GUN.js.map +1 -0
  51. package/dist/{chunk-FHG54IT5.js → chunk-TBTSEPGP.js} +13 -4
  52. package/dist/chunk-TBTSEPGP.js.map +1 -0
  53. package/dist/{chunk-HT5JAHR3.js → chunk-UJZIF2BA.js} +20 -9
  54. package/dist/chunk-UJZIF2BA.js.map +1 -0
  55. package/dist/{chunk-UHNRAI6V.js → chunk-VZBUQNLX.js} +68 -29
  56. package/dist/chunk-VZBUQNLX.js.map +1 -0
  57. package/dist/{chunk-JITF6I7N.js → chunk-WJOHNCYY.js} +11 -4
  58. package/dist/{chunk-JITF6I7N.js.map → chunk-WJOHNCYY.js.map} +1 -1
  59. package/dist/{chunk-EBREIC3L.js → chunk-YQHOKMSV.js} +26 -8
  60. package/dist/chunk-YQHOKMSV.js.map +1 -0
  61. package/dist/{chunk-WHKKN3ZK.js → chunk-YW6Q6ERX.js} +10 -8
  62. package/dist/chunk-YW6Q6ERX.js.map +1 -0
  63. package/dist/{chunk-PH354ECN.js → chunk-Z43YWH4R.js} +13 -4
  64. package/dist/chunk-Z43YWH4R.js.map +1 -0
  65. package/dist/{chunk-5OQLFX47.js → chunk-Z6RPMRFH.js} +3 -3
  66. package/dist/{chunk-5OQLFX47.js.map → chunk-Z6RPMRFH.js.map} +1 -1
  67. package/dist/{chunk-TCWYBVIL.js → chunk-ZB5VMGKB.js} +10 -7
  68. package/dist/chunk-ZB5VMGKB.js.map +1 -0
  69. package/dist/colors.css +15 -10
  70. package/dist/components/accordion/index.js +1 -1
  71. package/dist/components/action-icon/index.js +3 -3
  72. package/dist/components/alert/index.js +3 -3
  73. package/dist/components/app-shell/index.js +4 -4
  74. package/dist/components/autocomplete/autocomplete.d.ts +8 -1
  75. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  76. package/dist/components/autocomplete/index.d.ts +1 -1
  77. package/dist/components/autocomplete/index.d.ts.map +1 -1
  78. package/dist/components/autocomplete/index.js +10 -7
  79. package/dist/components/autocomplete/index.js.map +1 -1
  80. package/dist/components/badge/index.js +1 -1
  81. package/dist/components/button/index.js +3 -3
  82. package/dist/components/button-multi-select/index.js +5 -5
  83. package/dist/components/button-select/index.js +5 -5
  84. package/dist/components/calendar/calendar-zone-sync.d.ts +41 -0
  85. package/dist/components/calendar/calendar-zone-sync.d.ts.map +1 -0
  86. package/dist/components/calendar/calendar.d.ts +6 -5
  87. package/dist/components/calendar/calendar.d.ts.map +1 -1
  88. package/dist/components/calendar/index.js +8 -5
  89. package/dist/components/chart/chart.d.ts +17 -10
  90. package/dist/components/chart/chart.d.ts.map +1 -1
  91. package/dist/components/chart/index.js +50 -7
  92. package/dist/components/chart/index.js.map +1 -1
  93. package/dist/components/chart/styles.css +100 -0
  94. package/dist/components/checkbox/index.js +4 -4
  95. package/dist/components/choice-card-group/index.d.ts.map +1 -1
  96. package/dist/components/choice-card-group/index.js +4 -3
  97. package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
  98. package/dist/components/circular-progress/index.js.map +1 -1
  99. package/dist/components/clipboard/clipboard.d.ts.map +1 -1
  100. package/dist/components/clipboard/copy.d.ts.map +1 -1
  101. package/dist/components/clipboard/index.js +5 -5
  102. package/dist/components/clipboard/index.js.map +1 -1
  103. package/dist/components/code-block/chrome.js +4 -4
  104. package/dist/components/code-block/index.js +5 -5
  105. package/dist/components/combobox/combobox.d.ts +20 -1
  106. package/dist/components/combobox/combobox.d.ts.map +1 -1
  107. package/dist/components/combobox/index.d.ts +1 -1
  108. package/dist/components/combobox/index.d.ts.map +1 -1
  109. package/dist/components/combobox/index.js +4 -4
  110. package/dist/components/combobox-list/combobox-list.d.ts +8 -1
  111. package/dist/components/combobox-list/combobox-list.d.ts.map +1 -1
  112. package/dist/components/combobox-list/index.d.ts +1 -1
  113. package/dist/components/combobox-list/index.d.ts.map +1 -1
  114. package/dist/components/combobox-list/index.js +5 -5
  115. package/dist/components/data-table/data-table-filter/data-table-date-filter.d.ts.map +1 -1
  116. package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts +4 -1
  117. package/dist/components/data-table/data-table-filter/data-table-number-filter.d.ts.map +1 -1
  118. package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts +4 -1
  119. package/dist/components/data-table/data-table-filter/data-table-select-filter.d.ts.map +1 -1
  120. package/dist/components/data-table/data-table-filter/index.d.ts +5 -1
  121. package/dist/components/data-table/data-table-filter/index.d.ts.map +1 -1
  122. package/dist/components/data-table/data-table-header-cell.d.ts +11 -15
  123. package/dist/components/data-table/data-table-header-cell.d.ts.map +1 -1
  124. package/dist/components/data-table/data-table-meta.d.ts +2 -2
  125. package/dist/components/data-table/data-table-meta.d.ts.map +1 -1
  126. package/dist/components/data-table/data-table-pagination.d.ts +3 -0
  127. package/dist/components/data-table/data-table-pagination.d.ts.map +1 -1
  128. package/dist/components/data-table/data-table-stack.d.ts +5 -2
  129. package/dist/components/data-table/data-table-stack.d.ts.map +1 -1
  130. package/dist/components/data-table/data-table-toolbar.d.ts +3 -1
  131. package/dist/components/data-table/data-table-toolbar.d.ts.map +1 -1
  132. package/dist/components/data-table/data-table-translations.d.ts +68 -0
  133. package/dist/components/data-table/data-table-translations.d.ts.map +1 -0
  134. package/dist/components/data-table/data-table.d.ts +5 -8
  135. package/dist/components/data-table/data-table.d.ts.map +1 -1
  136. package/dist/components/data-table/index.d.ts +2 -1
  137. package/dist/components/data-table/index.d.ts.map +1 -1
  138. package/dist/components/data-table/index.js +162 -79
  139. package/dist/components/data-table/index.js.map +1 -1
  140. package/dist/components/date-picker/date-picker.d.ts +13 -9
  141. package/dist/components/date-picker/date-picker.d.ts.map +1 -1
  142. package/dist/components/date-picker/index.js +16 -15
  143. package/dist/components/date-picker/index.js.map +1 -1
  144. package/dist/components/drawer/drawer.d.ts +9 -1
  145. package/dist/components/drawer/drawer.d.ts.map +1 -1
  146. package/dist/components/drawer/index.d.ts +1 -1
  147. package/dist/components/drawer/index.d.ts.map +1 -1
  148. package/dist/components/drawer/index.js +4 -4
  149. package/dist/components/field/field.d.ts +9 -2
  150. package/dist/components/field/field.d.ts.map +1 -1
  151. package/dist/components/field/index.js +1 -1
  152. package/dist/components/file-upload/file-upload.d.ts +13 -2
  153. package/dist/components/file-upload/file-upload.d.ts.map +1 -1
  154. package/dist/components/file-upload/index.d.ts +1 -1
  155. package/dist/components/file-upload/index.d.ts.map +1 -1
  156. package/dist/components/file-upload/index.js +16 -7
  157. package/dist/components/file-upload/index.js.map +1 -1
  158. package/dist/components/hover-card/index.js +1 -1
  159. package/dist/components/input/index.js +2 -2
  160. package/dist/components/kbd/index.js +1 -1
  161. package/dist/components/menu/index.js +2 -2
  162. package/dist/components/modal/index.d.ts +1 -1
  163. package/dist/components/modal/index.d.ts.map +1 -1
  164. package/dist/components/modal/index.js +4 -4
  165. package/dist/components/modal/modal.d.ts +9 -1
  166. package/dist/components/modal/modal.d.ts.map +1 -1
  167. package/dist/components/multi-combobox-list/index.d.ts +1 -1
  168. package/dist/components/multi-combobox-list/index.d.ts.map +1 -1
  169. package/dist/components/multi-combobox-list/index.js +7 -5
  170. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts +8 -1
  171. package/dist/components/multi-combobox-list/multi-combobox-list.d.ts.map +1 -1
  172. package/dist/components/multi-select/index.d.ts +1 -1
  173. package/dist/components/multi-select/index.d.ts.map +1 -1
  174. package/dist/components/multi-select/index.js +20 -9
  175. package/dist/components/multi-select/index.js.map +1 -1
  176. package/dist/components/multi-select/multi-select.d.ts +11 -1
  177. package/dist/components/multi-select/multi-select.d.ts.map +1 -1
  178. package/dist/components/nav-link/index.d.ts +1 -1
  179. package/dist/components/nav-link/index.d.ts.map +1 -1
  180. package/dist/components/nav-link/index.js +2 -2
  181. package/dist/components/nav-link/nav-link.d.ts +12 -0
  182. package/dist/components/nav-link/nav-link.d.ts.map +1 -1
  183. package/dist/components/nav-link/navigation.d.ts +3 -1
  184. package/dist/components/nav-link/navigation.d.ts.map +1 -1
  185. package/dist/components/nav-link/tanstack.js +2 -2
  186. package/dist/components/notification/create-notifier.d.ts +12 -1
  187. package/dist/components/notification/create-notifier.d.ts.map +1 -1
  188. package/dist/components/notification/index.d.ts +2 -2
  189. package/dist/components/notification/index.d.ts.map +1 -1
  190. package/dist/components/notification/index.js +9 -6
  191. package/dist/components/notification/index.js.map +1 -1
  192. package/dist/components/notification/notification.d.ts +14 -1
  193. package/dist/components/notification/notification.d.ts.map +1 -1
  194. package/dist/components/number-input/index.d.ts +1 -1
  195. package/dist/components/number-input/index.d.ts.map +1 -1
  196. package/dist/components/number-input/index.js +4 -4
  197. package/dist/components/number-input/number-input.d.ts +20 -2
  198. package/dist/components/number-input/number-input.d.ts.map +1 -1
  199. package/dist/components/overlays/index.js +6 -6
  200. package/dist/components/password-input/index.d.ts +1 -1
  201. package/dist/components/password-input/index.d.ts.map +1 -1
  202. package/dist/components/password-input/index.js +68 -7
  203. package/dist/components/password-input/index.js.map +1 -1
  204. package/dist/components/password-input/password-input.d.ts +45 -6
  205. package/dist/components/password-input/password-input.d.ts.map +1 -1
  206. package/dist/components/pill/index.js +2 -2
  207. package/dist/components/pills-input/index.js +5 -5
  208. package/dist/components/pin-input/index.js +2 -2
  209. package/dist/components/popover/index.js +1 -1
  210. package/dist/components/popover/popover.d.ts +0 -10
  211. package/dist/components/popover/popover.d.ts.map +1 -1
  212. package/dist/components/progress/index.js.map +1 -1
  213. package/dist/components/progress/progress.d.ts.map +1 -1
  214. package/dist/components/radio-group/index.js +3 -3
  215. package/dist/components/rating/index.js +2 -2
  216. package/dist/components/rating/index.js.map +1 -1
  217. package/dist/components/rating/rating.d.ts.map +1 -1
  218. package/dist/components/schedule/index.js +60 -48
  219. package/dist/components/schedule/index.js.map +1 -1
  220. package/dist/components/schedule/now-cursor-line.d.ts +10 -5
  221. package/dist/components/schedule/now-cursor-line.d.ts.map +1 -1
  222. package/dist/components/schedule/schedule-dates.d.ts +11 -26
  223. package/dist/components/schedule/schedule-dates.d.ts.map +1 -1
  224. package/dist/components/schedule/schedule-event-chip.d.ts +4 -1
  225. package/dist/components/schedule/schedule-event-chip.d.ts.map +1 -1
  226. package/dist/components/schedule/schedule-event-details.d.ts +3 -2
  227. package/dist/components/schedule/schedule-event-details.d.ts.map +1 -1
  228. package/dist/components/schedule/schedule-geometry.d.ts +20 -21
  229. package/dist/components/schedule/schedule-geometry.d.ts.map +1 -1
  230. package/dist/components/schedule/schedule-grid-gesture.d.ts +5 -9
  231. package/dist/components/schedule/schedule-grid-gesture.d.ts.map +1 -1
  232. package/dist/components/schedule/schedule-segments.d.ts +2 -3
  233. package/dist/components/schedule/schedule-segments.d.ts.map +1 -1
  234. package/dist/components/schedule/schedule-timed-grid.d.ts.map +1 -1
  235. package/dist/components/schedule/use-event-resize.d.ts.map +1 -1
  236. package/dist/components/segment-group/index.js +4 -3
  237. package/dist/components/segment-group/segment-group.d.ts +3 -2
  238. package/dist/components/segment-group/segment-group.d.ts.map +1 -1
  239. package/dist/components/select/index.d.ts +1 -1
  240. package/dist/components/select/index.d.ts.map +1 -1
  241. package/dist/components/select/index.js +6 -4
  242. package/dist/components/select/select.d.ts +12 -2
  243. package/dist/components/select/select.d.ts.map +1 -1
  244. package/dist/components/slider/index.js +2 -2
  245. package/dist/components/spinner/index.js +1 -1
  246. package/dist/components/spinner/spinner.d.ts.map +1 -1
  247. package/dist/components/switch/index.js +2 -2
  248. package/dist/components/table/index.js +1 -1
  249. package/dist/components/table/table.d.ts.map +1 -1
  250. package/dist/components/tabs/index.js +4 -3
  251. package/dist/components/tabs/tabs.d.ts +3 -1
  252. package/dist/components/tabs/tabs.d.ts.map +1 -1
  253. package/dist/components/tags-input/index.d.ts +1 -1
  254. package/dist/components/tags-input/index.d.ts.map +1 -1
  255. package/dist/components/tags-input/index.js +9 -7
  256. package/dist/components/tags-input/index.js.map +1 -1
  257. package/dist/components/tags-input/tags-input.d.ts +9 -2
  258. package/dist/components/tags-input/tags-input.d.ts.map +1 -1
  259. package/dist/components/text-input/index.js +2 -2
  260. package/dist/components/textarea/index.js +2 -2
  261. package/dist/components/theme-icon/index.js +2 -2
  262. package/dist/components/theme-icon/theme-icon.d.ts.map +1 -1
  263. package/dist/components/time-input/index.js +24 -8
  264. package/dist/components/time-input/index.js.map +1 -1
  265. package/dist/components/time-input/time-input.d.ts.map +1 -1
  266. package/dist/components/time-input/time-row.d.ts +16 -3
  267. package/dist/components/time-input/time-row.d.ts.map +1 -1
  268. package/dist/components/timeline/index.js +11 -3
  269. package/dist/components/timeline/index.js.map +1 -1
  270. package/dist/components/timeline/timeline.d.ts.map +1 -1
  271. package/dist/components/tooltip/index.js +2 -2
  272. package/dist/components/tree-multi-select/index.d.ts +1 -1
  273. package/dist/components/tree-multi-select/index.d.ts.map +1 -1
  274. package/dist/components/tree-multi-select/index.js +62 -44
  275. package/dist/components/tree-multi-select/index.js.map +1 -1
  276. package/dist/components/tree-multi-select/tree-multi-select.d.ts +10 -1
  277. package/dist/components/tree-multi-select/tree-multi-select.d.ts.map +1 -1
  278. package/dist/components/tree-select/index.d.ts +1 -1
  279. package/dist/components/tree-select/index.d.ts.map +1 -1
  280. package/dist/components/tree-select/index.js +45 -15
  281. package/dist/components/tree-select/index.js.map +1 -1
  282. package/dist/components/tree-select/tree-select.d.ts +10 -1
  283. package/dist/components/tree-select/tree-select.d.ts.map +1 -1
  284. package/dist/index.js +3 -2
  285. package/dist/index.js.map +1 -1
  286. package/dist/lib/date-value.d.ts +14 -1
  287. package/dist/lib/date-value.d.ts.map +1 -1
  288. package/dist/lib/focus-styles.d.ts +13 -5
  289. package/dist/lib/focus-styles.d.ts.map +1 -1
  290. package/dist/theme.css +24 -2
  291. package/package.json +1 -1
  292. package/src/colors.css +15 -10
  293. package/src/components/autocomplete/autocomplete.test.tsx +32 -0
  294. package/src/components/autocomplete/autocomplete.tsx +17 -5
  295. package/src/components/autocomplete/index.ts +5 -1
  296. package/src/components/button/button.test.tsx +6 -0
  297. package/src/components/calendar/calendar-zone-sync.tsx +79 -0
  298. package/src/components/calendar/calendar.test.tsx +134 -14
  299. package/src/components/calendar/calendar.tsx +36 -22
  300. package/src/components/chart/chart.test.tsx +115 -8
  301. package/src/components/chart/chart.tsx +115 -25
  302. package/src/components/chart/styles.css +100 -0
  303. package/src/components/choice-card-group/index.ts +2 -0
  304. package/src/components/circular-progress/circular-progress.tsx +2 -0
  305. package/src/components/clipboard/clipboard.test.tsx +54 -22
  306. package/src/components/clipboard/clipboard.tsx +2 -0
  307. package/src/components/clipboard/copy.tsx +2 -0
  308. package/src/components/clipboard/index.ts +3 -3
  309. package/src/components/combobox/combobox.test.tsx +22 -0
  310. package/src/components/combobox/combobox.tsx +20 -0
  311. package/src/components/combobox/index.ts +1 -0
  312. package/src/components/combobox-list/combobox-list.test.tsx +19 -0
  313. package/src/components/combobox-list/combobox-list.tsx +16 -2
  314. package/src/components/combobox-list/index.ts +5 -1
  315. package/src/components/data-table/data-table-filter/data-table-date-filter.tsx +5 -4
  316. package/src/components/data-table/data-table-filter/data-table-number-filter.tsx +16 -2
  317. package/src/components/data-table/data-table-filter/data-table-select-filter.tsx +9 -1
  318. package/src/components/data-table/data-table-filter/index.tsx +15 -1
  319. package/src/components/data-table/data-table-filter.test.tsx +33 -0
  320. package/src/components/data-table/data-table-header-cell.tsx +37 -22
  321. package/src/components/data-table/data-table-meta.ts +2 -2
  322. package/src/components/data-table/data-table-pagination.tsx +6 -0
  323. package/src/components/data-table/data-table-stack.tsx +26 -14
  324. package/src/components/data-table/data-table-toolbar.tsx +4 -1
  325. package/src/components/data-table/data-table-translations.ts +105 -0
  326. package/src/components/data-table/data-table.test.tsx +121 -0
  327. package/src/components/data-table/data-table.tsx +37 -17
  328. package/src/components/data-table/index.ts +9 -1
  329. package/src/components/date-picker/date-picker.test.tsx +197 -5
  330. package/src/components/date-picker/date-picker.tsx +42 -16
  331. package/src/components/drawer/drawer.tsx +14 -1
  332. package/src/components/drawer/index.ts +1 -0
  333. package/src/components/field/field.tsx +29 -3
  334. package/src/components/file-upload/file-upload.test.tsx +21 -0
  335. package/src/components/file-upload/file-upload.tsx +26 -3
  336. package/src/components/file-upload/index.ts +1 -1
  337. package/src/components/modal/index.ts +1 -0
  338. package/src/components/modal/modal-translations.test.tsx +27 -0
  339. package/src/components/modal/modal.tsx +14 -1
  340. package/src/components/multi-combobox-list/index.ts +5 -1
  341. package/src/components/multi-combobox-list/multi-combobox-list.test.tsx +19 -0
  342. package/src/components/multi-combobox-list/multi-combobox-list.tsx +26 -4
  343. package/src/components/multi-select/index.ts +1 -1
  344. package/src/components/multi-select/multi-select.test.tsx +38 -0
  345. package/src/components/multi-select/multi-select.tsx +28 -4
  346. package/src/components/nav-link/index.ts +6 -1
  347. package/src/components/nav-link/nav-link.test.tsx +16 -0
  348. package/src/components/nav-link/nav-link.tsx +19 -1
  349. package/src/components/nav-link/navigation.test.tsx +18 -0
  350. package/src/components/nav-link/navigation.tsx +8 -4
  351. package/src/components/notification/create-notifier.tsx +20 -4
  352. package/src/components/notification/index.ts +7 -1
  353. package/src/components/notification/notification.test.tsx +49 -0
  354. package/src/components/notification/notification.tsx +39 -5
  355. package/src/components/number-input/index.ts +1 -1
  356. package/src/components/number-input/number-input.test.tsx +37 -0
  357. package/src/components/number-input/number-input.tsx +33 -4
  358. package/src/components/password-input/index.ts +5 -1
  359. package/src/components/password-input/password-input.test.tsx +201 -4
  360. package/src/components/password-input/password-input.tsx +162 -13
  361. package/src/components/popover/popover.tsx +0 -29
  362. package/src/components/progress/index.ts +3 -3
  363. package/src/components/progress/progress.tsx +2 -0
  364. package/src/components/rating/rating.tsx +2 -0
  365. package/src/components/schedule/now-cursor-line.test.tsx +56 -28
  366. package/src/components/schedule/now-cursor-line.tsx +30 -16
  367. package/src/components/schedule/schedule-agenda-view.test.tsx +1 -1
  368. package/src/components/schedule/schedule-dates.test.ts +19 -0
  369. package/src/components/schedule/schedule-dates.ts +16 -30
  370. package/src/components/schedule/schedule-details-popover.test.tsx +77 -6
  371. package/src/components/schedule/schedule-event-chip.tsx +17 -6
  372. package/src/components/schedule/schedule-event-details.test.tsx +38 -0
  373. package/src/components/schedule/schedule-event-details.tsx +7 -5
  374. package/src/components/schedule/schedule-geometry.test.ts +21 -18
  375. package/src/components/schedule/schedule-geometry.ts +37 -24
  376. package/src/components/schedule/schedule-grid-gesture.ts +5 -9
  377. package/src/components/schedule/schedule-segments.ts +2 -3
  378. package/src/components/schedule/schedule-timed-grid.tsx +43 -20
  379. package/src/components/schedule/schedule.test.tsx +34 -11
  380. package/src/components/schedule/use-event-resize.ts +6 -13
  381. package/src/components/segment-group/segment-group.test.tsx +23 -0
  382. package/src/components/segment-group/segment-group.tsx +13 -7
  383. package/src/components/select/index.ts +1 -1
  384. package/src/components/select/select.test.tsx +32 -0
  385. package/src/components/select/select.tsx +15 -1
  386. package/src/components/spinner/spinner.test.tsx +26 -0
  387. package/src/components/spinner/spinner.tsx +4 -1
  388. package/src/components/table/table.test.tsx +13 -0
  389. package/src/components/table/table.tsx +9 -5
  390. package/src/components/tabs/tabs.test.tsx +11 -0
  391. package/src/components/tabs/tabs.tsx +6 -4
  392. package/src/components/tags-input/index.ts +1 -1
  393. package/src/components/tags-input/tags-input.test.tsx +28 -0
  394. package/src/components/tags-input/tags-input.tsx +17 -1
  395. package/src/components/theme-icon/theme-icon.tsx +8 -3
  396. package/src/components/time-input/time-input.test.tsx +75 -0
  397. package/src/components/time-input/time-input.tsx +27 -3
  398. package/src/components/time-input/time-row.tsx +27 -3
  399. package/src/components/timeline/timeline.test.tsx +4 -1
  400. package/src/components/timeline/timeline.tsx +11 -3
  401. package/src/components/tree-multi-select/index.ts +5 -1
  402. package/src/components/tree-multi-select/tree-multi-select.test.tsx +72 -0
  403. package/src/components/tree-multi-select/tree-multi-select.tsx +156 -115
  404. package/src/components/tree-select/index.ts +1 -1
  405. package/src/components/tree-select/tree-select.test.tsx +69 -0
  406. package/src/components/tree-select/tree-select.tsx +128 -74
  407. package/src/lib/date-value.test.ts +19 -0
  408. package/src/lib/date-value.ts +21 -5
  409. package/src/lib/focus-styles.test.ts +21 -2
  410. package/src/lib/focus-styles.ts +24 -5
  411. package/src/theme.css +24 -2
  412. package/src/use-client-barrels.test.ts +80 -0
  413. package/dist/chunk-5JHDSVEZ.js.map +0 -1
  414. package/dist/chunk-6GDMSENK.js.map +0 -1
  415. package/dist/chunk-6OLTJYSX.js.map +0 -1
  416. package/dist/chunk-7NZSTCJO.js.map +0 -1
  417. package/dist/chunk-B2LCHXUB.js.map +0 -1
  418. package/dist/chunk-B2YJKRNQ.js.map +0 -1
  419. package/dist/chunk-EBREIC3L.js.map +0 -1
  420. package/dist/chunk-FHG54IT5.js.map +0 -1
  421. package/dist/chunk-FZIHZT5R.js.map +0 -1
  422. package/dist/chunk-HT5JAHR3.js.map +0 -1
  423. package/dist/chunk-KHMFNH3X.js.map +0 -1
  424. package/dist/chunk-NSDM3FEB.js.map +0 -1
  425. package/dist/chunk-O23Y5ML4.js.map +0 -1
  426. package/dist/chunk-PH354ECN.js.map +0 -1
  427. package/dist/chunk-RQL7FVCS.js.map +0 -1
  428. package/dist/chunk-TCWYBVIL.js.map +0 -1
  429. package/dist/chunk-UHNRAI6V.js.map +0 -1
  430. package/dist/chunk-WHKKN3ZK.js.map +0 -1
  431. package/dist/chunk-WQN64ZHG.js.map +0 -1
  432. package/dist/chunk-YBJB7FGE.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/date-value.ts"],"names":[],"mappings":";;;AAqBO,SAAS,mBAAA,CAAoB,MAAY,QAAA,EAA6B;AAC3E,EAAA,OAAO,QAAA,CAAS,MAAM,QAAQ,CAAA;AAChC;AAcO,SAAS,cAAA,CAAe,MAAY,QAAA,EAA6B;AACtE,EAAA,OAAO,kBAAA,CAAmB,QAAA,CAAS,IAAA,EAAM,QAAQ,CAAC,CAAA;AACpD;AAUO,SAAS,mBAAA,CAAoB,OAAkB,QAAA,EAAwB;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↔ DateValue` boundary (RFC §4/§13, `docs/rfcs/date-picker.md`) — the one place a\n * native `Date` *instant* converts to/from Ark's wall-calendar `DateValue`\n * (`CalendarDate | CalendarDateTime | ZonedDateTime`). `Calendar` and (later) `DatePicker` both\n * funnel every conversion through here, so there is exactly one audited crossing point instead\n * of one per component.\n *\n * `@internationalized/date` internals are deliberately NOT re-exported from this module — keep\n * the public surface to the boundary functions below (PR3's `date-picker/index.ts` re-exports\n * exactly one unrelated helper, `getLocalTimeZone`, directly from the library itself).\n */\n\n/**\n * A range value: `{ start, end }`, each independently nullable (a real \"unset\" endpoint, never\n * `undefined`). Mirrors `Calendar`/`DatePicker`'s `range` value shape.\n */\nexport type DateRangeValue = { start: Date | null; end: Date | null }\n\n/** Convert a native `Date` instant to Ark's `DateValue`, interpreted in `timeZone`. */\nexport function dateToCalendarValue(date: Date, timeZone: string): DateValue {\n return fromDate(date, timeZone)\n}\n\n/**\n * Convert a native `Date` instant to the value handed to Ark's machine: the wall-clock date and\n * time it reads as in `timeZone`, as a zone-free `CalendarDateTime`.\n *\n * Not a `ZonedDateTime`, although that is what `dateToCalendarValue` returns, because Ark copies\n * the zone of whatever it is handed into everything it derives from it: the focused day, the\n * visible month, and through those every grid cell, and a pick keeps the zone of the cell it came\n * from. So when the component's zone changes (`timeZone=\"auto\"` after hydration, or the app's\n * `IntlProvider`), the grid would go on producing picks in the *old* zone. Kept zone-free, the\n * machine only ever holds wall-clock values, and the one zone that turns them back into instants\n * is the component's current one, passed to `calendarValueToDate`.\n */\nexport function dateToArkValue(date: Date, timeZone: string): DateValue {\n return toCalendarDateTime(fromDate(date, timeZone))\n}\n\n/**\n * Convert Ark's `DateValue` back to a native `Date`. A `ZonedDateTime` (what `dateToCalendarValue`\n * produces) already carries its own zone/offset — its `toDate()` takes no argument and would\n * silently ignore a mismatched `timeZone` here — while a plain `CalendarDate`/`CalendarDateTime`\n * (what the day-grid's own calendar arithmetic produces) needs one to resolve to an instant, so\n * branch on which shape we actually got rather than assuming the caller's `dateToCalendarValue`\n * origin.\n */\nexport function calendarValueToDate(value: DateValue, timeZone: string): Date {\n return \"timeZone\" in value ? value.toDate() : value.toDate(timeZone)\n}\n\n/**\n * Wrap a public value into Ark's array contract, each `Date` through `dateToArkValue`. `undefined` stays uncontrolled (Ark's own\n * default takes over); `null` — or an all-null range — clears to `[]`; a single `Date` becomes a\n * one-element array; a range pushes only its defined ends, so a mid-selection range\n * (`{ start, end: null }`) naturally comes out length 1.\n */\nexport function toArkValues(\n value: Date | DateRangeValue | null | undefined,\n timeZone: string,\n): DateValue[] | undefined {\n if (value === undefined) return undefined\n if (value === null) return []\n if (value instanceof Date) return [dateToArkValue(value, timeZone)]\n const values: DateValue[] = []\n if (value.start !== null) values.push(dateToArkValue(value.start, timeZone))\n if (value.end !== null) values.push(dateToArkValue(value.end, timeZone))\n return values\n}\n\n/**\n * The inverse of `toArkValues` — Ark's `value` array back to the public shape. `range` picks\n * which shape to produce; a length-1 array under `range` is a mid-selection (`start` set,\n * `end` still `null`), not an error.\n */\nexport function fromArkValues(\n values: DateValue[],\n range: boolean,\n timeZone: string,\n): Date | DateRangeValue | null {\n if (!range) {\n const [only] = values\n return only ? calendarValueToDate(only, timeZone) : null\n }\n const [start, end] = values\n return {\n start: start ? calendarValueToDate(start, timeZone) : null,\n end: end ? calendarValueToDate(end, timeZone) : null,\n }\n}\n"]}
package/dist/colors.css CHANGED
@@ -31,7 +31,9 @@
31
31
  *
32
32
  * Disabled slots (--c-*-disabled):
33
33
  * A disabled control reads as inactive, so these are deliberately
34
- * palette-independent — neutral grays that mute the accent. They are
34
+ * palette-independent — translucent neutral washes (black in light, white
35
+ * in dark) that mute the accent. Translucent, not opaque gray steps, so
36
+ * they take the tint of whatever surface they sit on. They are
35
37
  * declared once on `:root` / `[data-theme="dark"]`; every `[data-color]`
36
38
  * inherits the same muted appearance, so they are *not* repeated per color.
37
39
  * Consumers wanting a palette-specific disabled look can still override
@@ -55,11 +57,12 @@
55
57
  --c-soft-hover: color-mix(in oklab, var(--color-black) 35%, transparent);
56
58
  --c-text: var(--color-gray-light-700);
57
59
 
58
- /* Neutral disabled slots — shared across every palette (see header). */
59
- --c-solid-disabled: var(--color-gray-light-300);
60
- --c-on-solid-disabled: var(--color-gray-light-500);
61
- --c-soft-disabled: var(--color-gray-light-100);
62
- --c-text-disabled: var(--color-gray-light-400);
60
+ /* Neutral disabled slots — shared across every palette (see header).
61
+ Translucent black washes, so they pick up whatever surface they sit on. */
62
+ --c-solid-disabled: color-mix(in oklab, var(--color-black) 16%, transparent);
63
+ --c-on-solid-disabled: color-mix(in oklab, var(--color-black) 55%, transparent);
64
+ --c-soft-disabled: color-mix(in oklab, var(--color-black) 4%, transparent);
65
+ --c-text-disabled: color-mix(in oklab, var(--color-black) 38%, transparent);
63
66
  }
64
67
  [data-theme="dark"] {
65
68
  --c-solid: var(--color-white);
@@ -69,10 +72,12 @@
69
72
  --c-soft-hover: color-mix(in oklab, var(--color-white) 35%, transparent);
70
73
  --c-text: var(--color-gray-dark-300);
71
74
 
72
- --c-solid-disabled: var(--color-gray-dark-700);
73
- --c-on-solid-disabled: var(--color-gray-dark-500);
74
- --c-soft-disabled: var(--color-gray-dark-800);
75
- --c-text-disabled: var(--color-gray-dark-600);
75
+ /* Translucent white washes: on the blue-tinted brand-950 surface they
76
+ take its tint instead of reading as a flat foreign gray. */
77
+ --c-solid-disabled: color-mix(in oklab, var(--color-white) 20%, transparent);
78
+ --c-on-solid-disabled: color-mix(in oklab, var(--color-white) 50%, transparent);
79
+ --c-soft-disabled: color-mix(in oklab, var(--color-white) 8%, transparent);
80
+ --c-text-disabled: color-mix(in oklab, var(--color-white) 35%, transparent);
76
81
  }
77
82
 
78
83
  [data-color="brand"] {
@@ -5,7 +5,7 @@ import { ChevronIcon } from '../../chunk-IG7FBZVM.js';
5
5
  import { Collapse } from '../../chunk-WSIVRDRB.js';
6
6
  import { composeChildren } from '../../chunk-I4SQQIP5.js';
7
7
  import { props } from '../../chunk-WYCMIIRR.js';
8
- import { focusStyles } from '../../chunk-B2LCHXUB.js';
8
+ import { focusStyles } from '../../chunk-INJUILCN.js';
9
9
  import { cn } from '../../chunk-QP4I37PA.js';
10
10
  import { Accordion as Accordion$1 } from '@ark-ui/react/accordion';
11
11
  import { cva } from 'class-variance-authority';
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- export { ActionIcon } from '../../chunk-S7N4LGLZ.js';
3
- import '../../chunk-NSDM3FEB.js';
2
+ export { ActionIcon } from '../../chunk-RIP5G47F.js';
3
+ import '../../chunk-PS2PZFXH.js';
4
4
  import '../../chunk-I4SQQIP5.js';
5
5
  import '../../chunk-WYCMIIRR.js';
6
- import '../../chunk-B2LCHXUB.js';
6
+ import '../../chunk-INJUILCN.js';
7
7
  import '../../chunk-QP4I37PA.js';
8
8
  //# sourceMappingURL=index.js.map
9
9
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { CloseTrigger, ActionTrigger, Description, Title, Icon, TOAST_STATUS } from '../../chunk-EBREIC3L.js';
2
+ import { CloseTrigger, ActionTrigger, Description, Title, Icon, TOAST_STATUS } from '../../chunk-YQHOKMSV.js';
3
3
  import '../../chunk-BEL75C7N.js';
4
4
  import '../../chunk-IG7FBZVM.js';
5
5
  import '../../chunk-WSIVRDRB.js';
6
- import '../../chunk-NSDM3FEB.js';
6
+ import '../../chunk-PS2PZFXH.js';
7
7
  import { withAsChildContent } from '../../chunk-I4SQQIP5.js';
8
8
  import { props } from '../../chunk-WYCMIIRR.js';
9
- import { focusStyles } from '../../chunk-B2LCHXUB.js';
9
+ import { focusStyles } from '../../chunk-INJUILCN.js';
10
10
  import { cn } from '../../chunk-QP4I37PA.js';
11
11
  import { ark } from '@ark-ui/react';
12
12
  import { cva } from 'class-variance-authority';
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { mergeRefs } from '../../chunk-UVYTJQTJ.js';
3
- import { Drawer } from '../../chunk-HAQJQFE6.js';
3
+ import { Drawer } from '../../chunk-DBTJEBMO.js';
4
4
  import { useContainerQuery } from '../../chunk-P3XMBETI.js';
5
5
  import '../../chunk-AIQG7IIT.js';
6
6
  import '../../chunk-7P32XCEU.js';
7
7
  import '../../chunk-BUIHQJGE.js';
8
- import '../../chunk-S7N4LGLZ.js';
9
- import '../../chunk-NSDM3FEB.js';
8
+ import '../../chunk-RIP5G47F.js';
9
+ import '../../chunk-PS2PZFXH.js';
10
10
  import '../../chunk-I4SQQIP5.js';
11
11
  import { props } from '../../chunk-WYCMIIRR.js';
12
- import '../../chunk-B2LCHXUB.js';
12
+ import '../../chunk-INJUILCN.js';
13
13
  import { cn } from '../../chunk-QP4I37PA.js';
14
14
  import { ark } from '@ark-ui/react';
15
15
  import { createContext, useRef, useState, useContext } from 'react';
@@ -1,6 +1,7 @@
1
1
  import { type FocusEvent, type ReactNode, type Ref } from "react";
2
2
  import { type ClearSectionMode, type ItemRenderState, type NormalizedItem, type SelectData, type SelectPayload } from "../../lib/select-data";
3
3
  import type { WithTestId } from "../../lib/test-id";
4
+ import { type ComboboxTranslations } from "../combobox/combobox";
4
5
  import { type FieldProps } from "../field/field";
5
6
  import { type InputSize, type InputVariant } from "../input/input";
6
7
  /**
@@ -64,7 +65,13 @@ export type AutocompleteProps<Data extends SelectData = SelectData> = Pick<Field
64
65
  ref?: Ref<HTMLInputElement>;
65
66
  className?: string;
66
67
  classNames?: AutocompleteClassNames;
68
+ /** Overrides the clear button's (`clearTriggerLabel`, default `"Clear value"`) and the
69
+ * chevron's (`triggerLabel`, default `"Show options"`) accessible names. A partial
70
+ * override keeps the other default. */
71
+ translations?: AutocompleteTranslations;
67
72
  };
68
- export declare const Autocomplete: <const Data extends SelectData = SelectData>({ data, value, defaultValue, onChange, renderItem, placeholder, clearable, clearSectionMode, startSlot, endSlot, empty, size, variant, disabled, readOnly, required, invalid, name, onBlur, ref, label, description, error, className, classNames, testId, }: AutocompleteProps<Data>) => import("react").JSX.Element;
73
+ /** The combobox family's wording, as `Autocomplete` uses it — see `ComboboxTranslations`. */
74
+ export type AutocompleteTranslations = ComboboxTranslations;
75
+ export declare const Autocomplete: <const Data extends SelectData = SelectData>({ data, value, defaultValue, onChange, renderItem, placeholder, clearable, clearSectionMode, startSlot, endSlot, empty, size, variant, disabled, readOnly, required, invalid, name, onBlur, ref, label, description, error, className, classNames, testId, translations, }: AutocompleteProps<Data>) => import("react").JSX.Element;
69
76
  export {};
70
77
  //# sourceMappingURL=autocomplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAW,MAAM,OAAO,CAAA;AAI1E,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,eAAe,EACpB,KAAK,cAAc,EAEnB,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAGnD,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAkC,MAAM,gBAAgB,CAAA;AAIlG;;;;;;;;;;GAUG;AAEH,KAAK,sBAAsB,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,iBAAiB,CAAC,IAAI,SAAS,UAAU,GAAG,UAAU,IAAI,IAAI,CACxE,UAAU,EACV,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,UAAU,CAC/C,GACC,UAAU,GAAG;IACX,0FAA0F;IAC1F,IAA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@
1
1
  export type { ItemRenderState, NormalizedItem, SelectData, SelectGroup, SelectItem, SelectPayload, } from "../../lib/select-data";
2
- export { Autocomplete, type AutocompleteProps } from "./autocomplete";
2
+ export { Autocomplete, type AutocompleteProps, type AutocompleteTranslations, } from "./autocomplete";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,gBAAgB,CAAA"}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { controlOpenProps } from '../../chunk-5FDOOG4J.js';
3
3
  import { normalizeSelectData, filterSelectData } from '../../chunk-TWGCWKRV.js';
4
- import { Combobox } from '../../chunk-6OLTJYSX.js';
5
- import { inputControlClasses, inputSlot } from '../../chunk-5OQLFX47.js';
6
- import { FieldShell } from '../../chunk-FHG54IT5.js';
7
- import { popoverClearTrigger } from '../../chunk-6GDMSENK.js';
4
+ import { resolveComboboxTranslations, Combobox } from '../../chunk-PINENGML.js';
5
+ import { inputControlClasses, inputSlot } from '../../chunk-Z6RPMRFH.js';
6
+ import { FieldShell } from '../../chunk-TBTSEPGP.js';
7
+ import { popoverClearTrigger } from '../../chunk-LM6F6DLR.js';
8
8
  import '../../chunk-AIQG7IIT.js';
9
9
  import '../../chunk-7P32XCEU.js';
10
10
  import '../../chunk-BUIHQJGE.js';
@@ -43,8 +43,10 @@ var Autocomplete = ({
43
43
  error,
44
44
  className,
45
45
  classNames,
46
- testId
46
+ testId,
47
+ translations
47
48
  }) => {
49
+ const resolvedTranslations = resolveComboboxTranslations(translations);
48
50
  const isInvalid = invalid || error != null;
49
51
  const [query, setQuery] = useUncontrolled({
50
52
  value,
@@ -86,6 +88,7 @@ var Autocomplete = ({
86
88
  size,
87
89
  variant,
88
90
  className,
91
+ translations: resolvedTranslations,
89
92
  children: [
90
93
  /* @__PURE__ */ jsx(Combobox.Context, { children: (api) => /* @__PURE__ */ jsxs(
91
94
  Combobox.Control,
@@ -112,14 +115,14 @@ var Autocomplete = ({
112
115
  "button",
113
116
  {
114
117
  type: "button",
115
- "aria-label": "Clear value",
118
+ "aria-label": resolvedTranslations.clearTriggerLabel,
116
119
  onPointerDown: (event) => event.preventDefault(),
117
120
  onClick: () => setQuery(""),
118
121
  className: popoverClearTrigger,
119
122
  children: /* @__PURE__ */ jsx(CloseIcon, {})
120
123
  }
121
124
  ),
122
- (clearSectionMode === "both" || !showClear) && /* @__PURE__ */ jsx(Combobox.Trigger, { "aria-label": "Show options", "data-chevron": true })
125
+ (clearSectionMode === "both" || !showClear) && /* @__PURE__ */ jsx(Combobox.Trigger, { "data-chevron": true })
123
126
  ]
124
127
  }
125
128
  ) }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":["ArkCombobox"],"mappings":";;;;;;;;;;;;;;;;;;AA6FO,IAAM,eAAe,CAA6C;AAAA,EACvE,IAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,gBAAA,GAAmB,SAAA;AAAA,EACnB,SAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA,GAAQ,eAAA;AAAA,EACR,IA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EAAA,KAAA,EAAM;AAAA,SAAA,EAC3C;AAAA;AAAA;AAAA,GACF;AAGF,EAAA,uBACE,GAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,KAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,WAAW,UAAA,EAAY,KAAA;AAAA,MAEtB,QAAA,EAAA;AAAA;AAAA,GACH;AAEJ","file":"index.js","sourcesContent":["\"use client\"\n\nimport { Combobox as ArkCombobox } from \"@ark-ui/react/combobox\"\nimport { type FocusEvent, type ReactNode, type Ref, useMemo } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport { controlOpenProps } from \"../../lib/control-open\"\nimport { props } from \"../../lib/props\"\nimport {\n type ClearSectionMode,\n filterSelectData,\n type ItemRenderState,\n type NormalizedItem,\n normalizeSelectData,\n type SelectData,\n type SelectPayload,\n} from \"../../lib/select-data\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { useUncontrolled } from \"../../lib/use-uncontrolled\"\nimport { Combobox } from \"../combobox/combobox\"\nimport { type FieldProps, FieldShell } from \"../field/field\"\nimport { type InputSize, type InputVariant, inputControlClasses, inputSlot } from \"../input/input\"\nimport { CloseIcon } from \"../popover/icons\"\nimport { popoverClearTrigger } from \"../popover/popover\"\n\n/**\n * Autocomplete — free-text input with a suggestion popover, on the `Combobox`\n * engine. Unlike `Select`, the **value is the typed string** (`allowCustomValue`):\n * `data` are only suggestions, and the user can type anything or pick one.\n *\n * - `data` accepts the same shapes as `Select` (strings / objects / groups).\n * - Suggestions filter as you type. Once the query exactly\n * matches a suggestion (e.g. right after picking one) the full list shows\n * again rather than collapsing to that single match.\n * - Label / description / error come from the built-in `Field` wrapper.\n */\n\ntype AutocompleteClassNames = {\n field?: string\n control?: string\n input?: string\n option?: string\n popover?: string\n}\n\nexport type AutocompleteProps<Data extends SelectData = SelectData> = Pick<\n FieldProps,\n \"label\" | \"description\" | \"error\" | \"required\"\n> &\n WithTestId & {\n /** Suggestions: `string[]`, `{ value, label?, disabled? }[]`, or `{ group, items }[]`. */\n data: Data\n /** Controlled input text (this is the value). */\n value?: string\n /** Uncontrolled initial text. */\n defaultValue?: string\n /** Fires with the input text on every change (typing or picking a suggestion). */\n onChange?: (value: string) => void\n /**\n * Render each suggestion yourself. Receives the item — including its typed\n * `payload` — and its live `{ selected, highlighted }` state; you own the whole\n * row, including any check affordance. Omit it to render the label + selected\n * check.\n */\n renderItem?: (item: NormalizedItem<SelectPayload<Data>>, state: ItemRenderState) => ReactNode\n /** Placeholder shown while the field is empty — this same field also filters the\n * suggestion list, so there's no separate search placeholder. */\n placeholder?: string\n /** Show a clear button once there's text. */\n clearable?: boolean\n /** Whether the clear button replaces the chevron (`\"replace\"`, default) or sits beside it (`\"both\"`). */\n clearSectionMode?: ClearSectionMode\n /** Inline-start adornment (icon, label). */\n startSlot?: ReactNode\n /** Inline-end adornment — rendered before the clear button / chevron. */\n endSlot?: ReactNode\n /** Message shown when no suggestion matches. Pass `null` to render nothing. */\n empty?: ReactNode\n size?: InputSize\n variant?: InputVariant\n disabled?: boolean\n readOnly?: boolean\n /** Red invalid state, independent of (and OR'd with) `error`. */\n invalid?: boolean\n /** Name for the underlying input (form submission). */\n name?: string\n /** Forwarded to the input; drives touched/blurred validation. */\n onBlur?: (event: FocusEvent<HTMLInputElement>) => void\n /** Lands on the focusable `<input>` for focus-on-error. */\n ref?: Ref<HTMLInputElement>\n className?: string\n classNames?: AutocompleteClassNames\n }\n\nexport const Autocomplete = <const Data extends SelectData = SelectData>({\n data,\n value,\n defaultValue,\n onChange,\n renderItem,\n placeholder,\n clearable,\n clearSectionMode = \"replace\",\n startSlot,\n endSlot,\n empty = \"Nothing found\",\n size = \"md\",\n variant = \"default\",\n disabled,\n readOnly,\n required,\n invalid,\n name,\n onBlur,\n ref,\n label,\n description,\n error,\n className,\n classNames,\n testId,\n}: AutocompleteProps<Data>) => {\n // Red state is driven independently of the `Field` error slot so a form\n // library can flip it from `fieldState.invalid` (see FormControlProps).\n const isInvalid = invalid || error != null\n\n const [query, setQuery] = useUncontrolled({\n value,\n defaultValue,\n onChange,\n finalValue: \"\",\n })\n\n // Clear shows once there's text; in \"replace\" mode it hides the chevron.\n const showClear = Boolean(clearable && query)\n\n // Normalize once per `data`; only the filter re-runs as the query changes.\n const normalized = useMemo(() => normalizeSelectData(data), [data])\n const { collection, items, groups } = useMemo(() => {\n const q = query.trim().toLowerCase()\n // Once the query exactly matches an option (e.g. right after\n // picking one) show the full list again rather than just that match.\n const exact = normalized.items.some((i) => i.label.toLowerCase() === q)\n const shouldFilter = q.length > 0 && !exact\n return filterSelectData(\n normalized,\n (item) => !shouldFilter || item.label.toLowerCase().includes(q),\n )\n }, [normalized, query])\n\n const renderOption = (item: NormalizedItem) => (\n <Combobox.Item\n key={item.value}\n item={item}\n data-testid={item.testId}\n className={classNames?.option}\n >\n {renderItem\n ? (state) => renderItem(item as NormalizedItem<SelectPayload<Data>>, state)\n : item.label}\n </Combobox.Item>\n )\n\n const control = (\n <Combobox.Root\n collection={collection}\n inputValue={query}\n onInputValueChange={(details) => setQuery(details.inputValue)}\n allowCustomValue\n openOnClick\n disabled={disabled}\n readOnly={readOnly}\n size={size}\n variant={variant}\n className={className}\n >\n <Combobox.Context>\n {(api) => (\n <Combobox.Control\n className={classNames?.control}\n startSlot={startSlot}\n {...props({ \"data-invalid\": isInvalid })}\n // Tablet affordance: a tap on the field's dead zones (start/end slots,\n // padding) opens the suggestions and focuses the input. The input,\n // clear ✕ and chevron keep their own taps. Inert when disabled/readOnly.\n {...(disabled || readOnly ? {} : controlOpenProps(() => api.setOpen(true)))}\n >\n {/* Ark's own Input (a forwardRef) so the caller's `ref` lands on the\n real focusable `<input>` for RHF focus-on-error; the kit's\n `Combobox.Input` wrapper only adds `inputControlClasses`, replicated\n here. `onBlur` / `aria-invalid` pass straight through. */}\n <ArkCombobox.Input\n placeholder={placeholder}\n name={name}\n onBlur={onBlur}\n ref={ref}\n aria-invalid={isInvalid || undefined}\n {...props({ \"data-testid\": testId })}\n className={cn(inputControlClasses, classNames?.input)}\n />\n {endSlot != null && <span className={inputSlot}>{endSlot}</span>}\n {/* The value here is the typed text, not a machine selection, so Ark's\n `value`-gated ClearTrigger stays hidden — clear the input directly\n instead. A real (tabbable) button; `preventDefault` keeps focus on\n the input through the tap. */}\n {showClear && (\n <button\n type=\"button\"\n aria-label=\"Clear value\"\n onPointerDown={(event) => event.preventDefault()}\n onClick={() => setQuery(\"\")}\n className={popoverClearTrigger}\n >\n <CloseIcon />\n </button>\n )}\n {(clearSectionMode === \"both\" || !showClear) && (\n <Combobox.Trigger aria-label=\"Show options\" data-chevron />\n )}\n </Combobox.Control>\n )}\n </Combobox.Context>\n\n <Combobox.Content className={classNames?.popover}>\n {groups\n ? groups.map((group) => (\n <Combobox.Group key={group.group} label={group.group}>\n {group.items.map(renderOption)}\n </Combobox.Group>\n ))\n : items.map(renderOption)}\n {empty != null && <Combobox.Empty>{empty}</Combobox.Empty>}\n </Combobox.Content>\n </Combobox.Root>\n )\n\n return (\n <FieldShell\n label={label}\n description={description}\n error={error}\n required={required}\n disabled={disabled}\n size={size}\n className={classNames?.field}\n >\n {control}\n </FieldShell>\n )\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":["ArkCombobox"],"mappings":";;;;;;;;;;;;;;;;;;AAwGO,IAAM,eAAe,CAA6C;AAAA,EACvE,IAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,gBAAA,GAAmB,SAAA;AAAA,EACnB,SAAA;AAAA,EACA,OAAA;AAAA,EACA,KAAA,GAAQ,eAAA;AAAA,EACR,IAAA,GAAO,IAAA;AAAA,EACP,OAAA,GAAU,SAAA;AAAA,EACV,QAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;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AA,EAC3C;AAAA;AAAA;AAAA,GACF;AAGF,EAAA,uBACE,GAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,KAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,QAAA;AAAA,MACA,QAAA;AAAA,MACA,IAAA;AAAA,MACA,WAAW,UAAA,EAAY,KAAA;AAAA,MAEtB,QAAA,EAAA;AAAA;AAAA,GACH;AAEJ","file":"index.js","sourcesContent":["\"use client\"\n\nimport { Combobox as ArkCombobox } from \"@ark-ui/react/combobox\"\nimport { type FocusEvent, type ReactNode, type Ref, useMemo } from \"react\"\nimport { cn } from \"../../lib/cn\"\nimport { controlOpenProps } from \"../../lib/control-open\"\nimport { props } from \"../../lib/props\"\nimport {\n type ClearSectionMode,\n filterSelectData,\n type ItemRenderState,\n type NormalizedItem,\n normalizeSelectData,\n type SelectData,\n type SelectPayload,\n} from \"../../lib/select-data\"\nimport type { WithTestId } from \"../../lib/test-id\"\nimport { useUncontrolled } from \"../../lib/use-uncontrolled\"\nimport {\n Combobox,\n type ComboboxTranslations,\n resolveComboboxTranslations,\n} from \"../combobox/combobox\"\nimport { type FieldProps, FieldShell } from \"../field/field\"\nimport { type InputSize, type InputVariant, inputControlClasses, inputSlot } from \"../input/input\"\nimport { CloseIcon } from \"../popover/icons\"\nimport { popoverClearTrigger } from \"../popover/popover\"\n\n/**\n * Autocomplete — free-text input with a suggestion popover, on the `Combobox`\n * engine. Unlike `Select`, the **value is the typed string** (`allowCustomValue`):\n * `data` are only suggestions, and the user can type anything or pick one.\n *\n * - `data` accepts the same shapes as `Select` (strings / objects / groups).\n * - Suggestions filter as you type. Once the query exactly\n * matches a suggestion (e.g. right after picking one) the full list shows\n * again rather than collapsing to that single match.\n * - Label / description / error come from the built-in `Field` wrapper.\n */\n\ntype AutocompleteClassNames = {\n field?: string\n control?: string\n input?: string\n option?: string\n popover?: string\n}\n\nexport type AutocompleteProps<Data extends SelectData = SelectData> = Pick<\n FieldProps,\n \"label\" | \"description\" | \"error\" | \"required\"\n> &\n WithTestId & {\n /** Suggestions: `string[]`, `{ value, label?, disabled? }[]`, or `{ group, items }[]`. */\n data: Data\n /** Controlled input text (this is the value). */\n value?: string\n /** Uncontrolled initial text. */\n defaultValue?: string\n /** Fires with the input text on every change (typing or picking a suggestion). */\n onChange?: (value: string) => void\n /**\n * Render each suggestion yourself. Receives the item — including its typed\n * `payload` — and its live `{ selected, highlighted }` state; you own the whole\n * row, including any check affordance. Omit it to render the label + selected\n * check.\n */\n renderItem?: (item: NormalizedItem<SelectPayload<Data>>, state: ItemRenderState) => ReactNode\n /** Placeholder shown while the field is empty — this same field also filters the\n * suggestion list, so there's no separate search placeholder. */\n placeholder?: string\n /** Show a clear button once there's text. */\n clearable?: boolean\n /** Whether the clear button replaces the chevron (`\"replace\"`, default) or sits beside it (`\"both\"`). */\n clearSectionMode?: ClearSectionMode\n /** Inline-start adornment (icon, label). */\n startSlot?: ReactNode\n /** Inline-end adornment — rendered before the clear button / chevron. */\n endSlot?: ReactNode\n /** Message shown when no suggestion matches. Pass `null` to render nothing. */\n empty?: ReactNode\n size?: InputSize\n variant?: InputVariant\n disabled?: boolean\n readOnly?: boolean\n /** Red invalid state, independent of (and OR'd with) `error`. */\n invalid?: boolean\n /** Name for the underlying input (form submission). */\n name?: string\n /** Forwarded to the input; drives touched/blurred validation. */\n onBlur?: (event: FocusEvent<HTMLInputElement>) => void\n /** Lands on the focusable `<input>` for focus-on-error. */\n ref?: Ref<HTMLInputElement>\n className?: string\n classNames?: AutocompleteClassNames\n /** Overrides the clear button's (`clearTriggerLabel`, default `\"Clear value\"`) and the\n * chevron's (`triggerLabel`, default `\"Show options\"`) accessible names. A partial\n * override keeps the other default. */\n translations?: AutocompleteTranslations\n }\n\n/** The combobox family's wording, as `Autocomplete` uses it — see `ComboboxTranslations`. */\nexport type AutocompleteTranslations = ComboboxTranslations\n\nexport const Autocomplete = <const Data extends SelectData = SelectData>({\n data,\n value,\n defaultValue,\n onChange,\n renderItem,\n placeholder,\n clearable,\n clearSectionMode = \"replace\",\n startSlot,\n endSlot,\n empty = \"Nothing found\",\n size = \"md\",\n variant = \"default\",\n disabled,\n readOnly,\n required,\n invalid,\n name,\n onBlur,\n ref,\n label,\n description,\n error,\n className,\n classNames,\n testId,\n translations,\n}: AutocompleteProps<Data>) => {\n const resolvedTranslations = resolveComboboxTranslations(translations)\n // Red state is driven independently of the `Field` error slot so a form\n // library can flip it from `fieldState.invalid` (see FormControlProps).\n const isInvalid = invalid || error != null\n\n const [query, setQuery] = useUncontrolled({\n value,\n defaultValue,\n onChange,\n finalValue: \"\",\n })\n\n // Clear shows once there's text; in \"replace\" mode it hides the chevron.\n const showClear = Boolean(clearable && query)\n\n // Normalize once per `data`; only the filter re-runs as the query changes.\n const normalized = useMemo(() => normalizeSelectData(data), [data])\n const { collection, items, groups } = useMemo(() => {\n const q = query.trim().toLowerCase()\n // Once the query exactly matches an option (e.g. right after\n // picking one) show the full list again rather than just that match.\n const exact = normalized.items.some((i) => i.label.toLowerCase() === q)\n const shouldFilter = q.length > 0 && !exact\n return filterSelectData(\n normalized,\n (item) => !shouldFilter || item.label.toLowerCase().includes(q),\n )\n }, [normalized, query])\n\n const renderOption = (item: NormalizedItem) => (\n <Combobox.Item\n key={item.value}\n item={item}\n data-testid={item.testId}\n className={classNames?.option}\n >\n {renderItem\n ? (state) => renderItem(item as NormalizedItem<SelectPayload<Data>>, state)\n : item.label}\n </Combobox.Item>\n )\n\n const control = (\n <Combobox.Root\n collection={collection}\n inputValue={query}\n onInputValueChange={(details) => setQuery(details.inputValue)}\n allowCustomValue\n openOnClick\n disabled={disabled}\n readOnly={readOnly}\n size={size}\n variant={variant}\n className={className}\n translations={resolvedTranslations}\n >\n <Combobox.Context>\n {(api) => (\n <Combobox.Control\n className={classNames?.control}\n startSlot={startSlot}\n {...props({ \"data-invalid\": isInvalid })}\n // Tablet affordance: a tap on the field's dead zones (start/end slots,\n // padding) opens the suggestions and focuses the input. The input,\n // clear ✕ and chevron keep their own taps. Inert when disabled/readOnly.\n {...(disabled || readOnly ? {} : controlOpenProps(() => api.setOpen(true)))}\n >\n {/* Ark's own Input (a forwardRef) so the caller's `ref` lands on the\n real focusable `<input>` for RHF focus-on-error; the kit's\n `Combobox.Input` wrapper only adds `inputControlClasses`, replicated\n here. `onBlur` / `aria-invalid` pass straight through. */}\n <ArkCombobox.Input\n placeholder={placeholder}\n name={name}\n onBlur={onBlur}\n ref={ref}\n aria-invalid={isInvalid || undefined}\n {...props({ \"data-testid\": testId })}\n className={cn(inputControlClasses, classNames?.input)}\n />\n {endSlot != null && <span className={inputSlot}>{endSlot}</span>}\n {/* The value here is the typed text, not a machine selection, so Ark's\n `value`-gated ClearTrigger stays hidden — clear the input directly\n instead. A real (tabbable) button; `preventDefault` keeps focus on\n the input through the tap. */}\n {showClear && (\n <button\n type=\"button\"\n aria-label={resolvedTranslations.clearTriggerLabel}\n onPointerDown={(event) => event.preventDefault()}\n onClick={() => setQuery(\"\")}\n className={popoverClearTrigger}\n >\n <CloseIcon />\n </button>\n )}\n {(clearSectionMode === \"both\" || !showClear) && <Combobox.Trigger data-chevron />}\n </Combobox.Control>\n )}\n </Combobox.Context>\n\n <Combobox.Content className={classNames?.popover}>\n {groups\n ? groups.map((group) => (\n <Combobox.Group key={group.group} label={group.group}>\n {group.items.map(renderOption)}\n </Combobox.Group>\n ))\n : items.map(renderOption)}\n {empty != null && <Combobox.Empty>{empty}</Combobox.Empty>}\n </Combobox.Content>\n </Combobox.Root>\n )\n\n return (\n <FieldShell\n label={label}\n description={description}\n error={error}\n required={required}\n disabled={disabled}\n size={size}\n className={classNames?.field}\n >\n {control}\n </FieldShell>\n )\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { GRADIENT_DIR_CLASS, buildGradientVars } from '../../chunk-SKPM2FRX.js';
2
2
  import { props } from '../../chunk-WYCMIIRR.js';
3
- import { focusStyles } from '../../chunk-B2LCHXUB.js';
3
+ import { focusStyles } from '../../chunk-INJUILCN.js';
4
4
  import { cn } from '../../chunk-QP4I37PA.js';
5
5
  import { ark } from '@ark-ui/react';
6
6
  import { cva } from 'class-variance-authority';
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import '../../chunk-ORTCK34Y.js';
3
- export { Button } from '../../chunk-RAUOFTUH.js';
4
- import '../../chunk-NSDM3FEB.js';
3
+ export { Button } from '../../chunk-QIDAXFKK.js';
4
+ import '../../chunk-PS2PZFXH.js';
5
5
  import '../../chunk-I4SQQIP5.js';
6
6
  import '../../chunk-WYCMIIRR.js';
7
- import '../../chunk-B2LCHXUB.js';
7
+ import '../../chunk-INJUILCN.js';
8
8
  import '../../chunk-QP4I37PA.js';
9
9
  //# sourceMappingURL=index.js.map
10
10
  //# sourceMappingURL=index.js.map
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Context, Item, MultiRoot, ButtonSelectControl } from '../../chunk-MI2WZRK3.js';
3
- import '../../chunk-FHG54IT5.js';
4
- import '../../chunk-RAUOFTUH.js';
2
+ import { Context, Item, MultiRoot, ButtonSelectControl } from '../../chunk-A6MYJTJI.js';
3
+ import '../../chunk-TBTSEPGP.js';
4
+ import '../../chunk-QIDAXFKK.js';
5
5
  import '../../chunk-2SVX3MQQ.js';
6
6
  import { useUncontrolled } from '../../chunk-BEL75C7N.js';
7
- import '../../chunk-NSDM3FEB.js';
7
+ import '../../chunk-PS2PZFXH.js';
8
8
  import '../../chunk-I4SQQIP5.js';
9
9
  import '../../chunk-WYCMIIRR.js';
10
- import '../../chunk-B2LCHXUB.js';
10
+ import '../../chunk-INJUILCN.js';
11
11
  import '../../chunk-QP4I37PA.js';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { Context, Item, Root, ButtonSelectControl } from '../../chunk-MI2WZRK3.js';
3
- import '../../chunk-FHG54IT5.js';
4
- import '../../chunk-RAUOFTUH.js';
2
+ import { Context, Item, Root, ButtonSelectControl } from '../../chunk-A6MYJTJI.js';
3
+ import '../../chunk-TBTSEPGP.js';
4
+ import '../../chunk-QIDAXFKK.js';
5
5
  import '../../chunk-2SVX3MQQ.js';
6
6
  import { useUncontrolled } from '../../chunk-BEL75C7N.js';
7
- import '../../chunk-NSDM3FEB.js';
7
+ import '../../chunk-PS2PZFXH.js';
8
8
  import '../../chunk-I4SQQIP5.js';
9
9
  import '../../chunk-WYCMIIRR.js';
10
- import '../../chunk-B2LCHXUB.js';
10
+ import '../../chunk-INJUILCN.js';
11
11
  import '../../chunk-QP4I37PA.js';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
@@ -0,0 +1,41 @@
1
+ import { type DateValue } from "@ark-ui/react/date-picker";
2
+ import { type RefObject } from "react";
3
+ /** A stable fingerprint of Ark's value array, to recognise one specific `setValue` echo. */
4
+ export declare const hashArkValues: (values: DateValue[]) => string;
5
+ /**
6
+ * The value Ark is about to report back from a zone re-seed, or `null`. The root's
7
+ * `onValueChange` swallows the one change whose hash matches it, because re-expressing the
8
+ * selection in a new zone is not a change the user made.
9
+ */
10
+ export type ZoneReseedRef = RefObject<string | null>;
11
+ /**
12
+ * Keeps an Ark `date-picker` machine's selection on the same **instant** when its `timeZone`
13
+ * changes, without remounting it. Renders nothing; mount it inside `Ark.Root`.
14
+ *
15
+ * Ark reads `defaultValue` once, at mount, and from then on holds the selection as a wall-calendar
16
+ * `DateValue`. A grid pick is a plain `CalendarDate` with no zone at all, so on its own a zone
17
+ * change would keep the *day* and silently move the instant the app was handed by `onChange`. The
18
+ * one zone change every SSR app sees is `timeZone="auto"` going from the UTC hydration snapshot
19
+ * to the host zone, and there the uncontrolled `defaultValue` would stay on the UTC day.
20
+ *
21
+ * So, in a layout effect after the render that changed the zone:
22
+ *
23
+ * - **Uncontrolled**: each value is read back as an instant in the *old* zone (what `onChange`
24
+ * reported) and handed to Ark again in the new one, through `api.setValue`. That may land on
25
+ * another calendar day near midnight, which is the point. `pendingRef` marks the echo so the
26
+ * root doesn't report it through `onChange`.
27
+ * - **Controlled**: nothing to do. The root re-derives Ark's `value` from the app's `Date`s in
28
+ * the new zone on every render, which is already the same instant.
29
+ * - **Focus**: the machine's focused day (the keyboard's roving cell, and the month on show)
30
+ * follows its anchor, the selection or else today, when it sat on that anchor before the
31
+ * change. A month the user navigated to stays put. `setFocusedValue` never moves DOM focus.
32
+ *
33
+ * A remount would do all of this too, but it also resets everything the user did since mount: a
34
+ * pick goes back to `defaultValue`, typed text is cleared, and DOM focus drops to `<body>`.
35
+ */
36
+ export declare const CalendarZoneSync: ({ timeZone, controlled, pendingRef, }: {
37
+ timeZone: string;
38
+ controlled: boolean;
39
+ pendingRef: ZoneReseedRef;
40
+ }) => null;
41
+ //# sourceMappingURL=calendar-zone-sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-zone-sync.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/calendar-zone-sync.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,2BAA2B,CAAA;AAEhF,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAI9C,4FAA4F;AAC5F,eAAO,MAAM,aAAa,WAAY,SAAS,EAAE,KAAG,MAAsC,CAAA;AAE1F;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;AAEpD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,0CAI1B;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,aAAa,CAAA;CAC1B,SA2BA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { DatePicker as Ark, type DatePickerDateView as DateView } from "@ark-ui/react/date-picker";
2
- import type { ComponentProps, ReactNode } from "react";
2
+ import { type ComponentProps, type ReactNode } from "react";
3
3
  import type { DatePredicate } from "../../lib/date-predicates";
4
4
  import { type DateRangeValue } from "../../lib/date-value";
5
5
  import type { FormControlProps } from "../../lib/form-control";
@@ -70,10 +70,11 @@ export type CalendarProps<Range extends boolean = false> = FormControlProps<Rang
70
70
  withWeekNumbers?: boolean;
71
71
  /** Overrides the active locale context. Drives month/day names and first-day-of-week. */
72
72
  locale?: string;
73
- /** Overrides the local time zone for every `Date ↔ DateValue` conversion. Default
74
- * `getLocalTimeZone()` — **not** Ark's own machine default (`"UTC"`), which is why this is
75
- * forwarded to `Ark.Root` explicitly rather than only used in this component's own
76
- * conversions (see `lib/date-value.ts`'s module doc). */
73
+ /** Overrides the time zone for every `Date ↔ DateValue` conversion. Resolves
74
+ * **prop → `IntlProvider` → host zone**, through `useTimeZone` like `Schedule` — **not** Ark's
75
+ * own machine default (`"UTC"`), which is why the resolved zone is forwarded to `Ark.Root`
76
+ * explicitly rather than only used in this component's own conversions (see
77
+ * `lib/date-value.ts`'s module doc). Accepts `"auto"` to follow the host zone. */
77
78
  timeZone?: string;
78
79
  /** Overrides Ark's own built-in aria-label/accessible-name strings (day cells, prev/next, the
79
80
  * view-cycling header, week numbers) — English by default. Unlike `locale`, nothing here
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,IAAI,GAAG,EAAE,KAAK,kBAAkB,IAAI,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAGlG,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAEL,KAAK,cAAc,EAIpB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE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AAyF;IACzF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;uFAImF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;qGAEiG;IACjG,YAAY,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAA;IAC5C,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC,CAAA;AAEH,eAAO,MAAM,QAAQ,GAAI,KAAK,SAAS,OAAO,GAAG,KAAK,oRA6BnD,aAAa,CAAC,KAAK,CAAC,gCAoFtB,CAAA"}
@@ -1,12 +1,15 @@
1
1
  "use client";
2
- export { Calendar } from '../../chunk-UHNRAI6V.js';
3
- import '../../chunk-TCWYBVIL.js';
4
- import '../../chunk-S7N4LGLZ.js';
2
+ export { Calendar } from '../../chunk-VZBUQNLX.js';
3
+ import '../../chunk-ZB5VMGKB.js';
4
+ import '../../chunk-57BTVRRB.js';
5
+ import '../../chunk-OC7I2CTA.js';
6
+ import '../../chunk-BUIHQJGE.js';
7
+ import '../../chunk-RIP5G47F.js';
5
8
  import '../../chunk-IG7FBZVM.js';
6
- import '../../chunk-NSDM3FEB.js';
9
+ import '../../chunk-PS2PZFXH.js';
7
10
  import '../../chunk-I4SQQIP5.js';
8
11
  import '../../chunk-WYCMIIRR.js';
9
- import '../../chunk-B2LCHXUB.js';
12
+ import '../../chunk-INJUILCN.js';
10
13
  import '../../chunk-QP4I37PA.js';
11
14
  //# sourceMappingURL=index.js.map
12
15
  //# sourceMappingURL=index.js.map
@@ -13,8 +13,9 @@ import type { WithTestId } from "../../lib/test-id";
13
13
  * of this kit's own hues that clears every check in the dataviz skill's
14
14
  * `validate_palette.js` (lightness band, CVD Delta E, and normal-vision
15
15
  * separation, all-pairs, not just adjacent) without relying on a specific
16
- * order. Every other pairing among the remaining five hues fails outright at
17
- * the "solid" (500) step this palette resolves to — `red`/`orange` and
16
+ * order, as measured at the 500 step (the dark-mode fill; light mode reads
17
+ * one step darker, see `styles.css`). Every other pairing among the
18
+ * remaining five hues fails outright there — `red`/`orange` and
18
19
  * `teal`/`green` read as near-duplicates even to normal color vision, and
19
20
  * `purple`/`blue` and `cyan`/`pink` fail the colorblind-safety floor. Rather
20
21
  * than drop those five hues from a consumer's options entirely, they're
@@ -36,15 +37,17 @@ export declare const CHART_PALETTE: Color[];
36
37
  export declare function chartColors(colors?: Color[]): string[];
37
38
  export type ChartProps<TDatum = unknown, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue> = Omit<TanStackChartProps<TDatum, TXValue, TYValue>, "renderSvg"> & WithTestId & {
38
39
  /**
39
- * Single accent for a one-series chart: sets `data-color` and TanStack's
40
- * first categorical slot (`--ts-chart-1`) to this color. Ignored for the
41
- * palette slots when `colors` is also given (still sets `data-color`, if
42
- * `colors` isn't a multi-entry array).
40
+ * Single accent for a one-series chart: sets `data-color` on the root,
41
+ * and the series paints with that palette's chart fill — its 600 step in
42
+ * light mode, its `--c-solid` in dark (also mirrored into
43
+ * `--ts-chart-1`). Omitted, a one-series chart inherits the nearest
44
+ * ancestor's `data-color` instead, like every other colored component.
45
+ * Ignored for the palette slots when `colors` has several entries.
43
46
  */
44
47
  color?: Color;
45
48
  /**
46
49
  * Ordered palette for a multi-series chart — see `CHART_PALETTE`/
47
- * `chartColors`. Sets `--ts-chart-1` through `--ts-chart-N`, one per
50
+ * `chartColors`. A single entry behaves exactly like `color`. Otherwise sets `--ts-chart-1` through `--ts-chart-N`, one per
48
51
  * entry, for TanStack's own default categorical color scale to pick up
49
52
  * with zero changes to how the chart's `definition` builds its scales.
50
53
  * Beyond `--ts-chart-6`, only a custom `scaleOrdinal().range(...)` (see
@@ -85,8 +88,12 @@ export type ChartProps<TDatum = unknown, TXValue extends ChartValue = ChartValue
85
88
  * - The DOM tooltip surface/text/shadow/border and its "active row"
86
89
  * highlight theme through `--ts-chart-tooltip-*` / `--ts-chart-tooltip-
87
90
  * active-row-*`, also set in `styles.css`.
88
- * - `color`/`colors` (above) theme the categorical series palette via
89
- * `--ts-chart-N`, TanStack's own default color-scale slots.
91
+ * - A one-series chart paints with `--chart-solid`, so it follows `color`
92
+ * or an inherited `data-color` (see `inheritedColorScale`); `colors`
93
+ * themes a multi-series palette via `--ts-chart-N`, TanStack's own
94
+ * default color-scale slots. Both read `styles.css`'s per-color chart
95
+ * fill: the 600 step in light mode, so a mark clears 3:1 against the
96
+ * page, and the unchanged solid in dark.
90
97
  *
91
98
  * Not routed through Ark's `ark.*` factory (no `asChild`): TanStack's
92
99
  * `<Chart>` owns its entire internal DOM/SVG tree end to end, so there's no
@@ -99,5 +106,5 @@ export type ChartProps<TDatum = unknown, TXValue extends ChartValue = ChartValue
99
106
  * `className`/`style` reach its DOM), so this root is the only element that
100
107
  * can carry them.
101
108
  */
102
- export declare function Chart<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>({ color, colors, className, style, testId, renderer, renderSvg, onRender, ...rest }: ChartProps<TDatum, TXValue, TYValue>): import("react").JSX.Element;
109
+ export declare function Chart<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>({ color, colors, className, style, testId, definition, renderer, renderSvg, onRender, ...rest }: ChartProps<TDatum, TXValue, TYValue>): import("react").JSX.Element;
103
110
  //# sourceMappingURL=chart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/chart/chart.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAEL,KAAK,UAAU,IAAI,kBAAkB,EACtC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAEL,KAAK,UAAU,IAAI,0BAA0B,EAC9C,MAAM,6BAA6B,CAAA;AAGpC,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE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