@persona/design-system 0.8.1 → 0.8.2

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 (566) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/Accordion.d.mts +1 -1
  3. package/dist/AccordionItem.d.mts +1 -1
  4. package/dist/{Action-BwYS9qaG.d.mts → Action-C6yvIekn.d.mts} +3 -3
  5. package/dist/Action.d.mts +1 -1
  6. package/dist/AdvancedFilterRuleRow.d.mts +2 -2
  7. package/dist/AdvancedFilterRulesPopover.d.mts +2 -2
  8. package/dist/ArrayValueControl.d.mts +1 -1
  9. package/dist/Attribute.d.mts +3 -3
  10. package/dist/{Badge-D-5tbZDw.mjs → Badge-uY8l1p1R.mjs} +2 -2
  11. package/dist/{Badge-D-5tbZDw.mjs.map → Badge-uY8l1p1R.mjs.map} +1 -1
  12. package/dist/BooleanValueControl.d.mts +1 -1
  13. package/dist/{Breadcrumb-BADja8tn.d.mts → Breadcrumb-Tjk9FyiF.d.mts} +1 -1
  14. package/dist/Breadcrumb.d.mts +1 -1
  15. package/dist/{Breadcrumbs-CxP7ktfM.d.mts → Breadcrumbs-DSCbZmAx.d.mts} +2 -2
  16. package/dist/{Breadcrumbs-CNpM0aXm.mjs → Breadcrumbs-EQm5iiRA.mjs} +8 -8
  17. package/dist/{Breadcrumbs-CNpM0aXm.mjs.map → Breadcrumbs-EQm5iiRA.mjs.map} +1 -1
  18. package/dist/Breadcrumbs.d.mts +1 -1
  19. package/dist/{Button-CnswHEJ2.d.mts → Button-22DkIpYp.d.mts} +4 -4
  20. package/dist/Button.d.mts +1 -1
  21. package/dist/{Calendar-Cke5IlMI.d.mts → Calendar-DANGQNlH.d.mts} +1 -1
  22. package/dist/Calendar.d.mts +1 -1
  23. package/dist/CalendarBase.d.mts +1 -1
  24. package/dist/{Card-Dz6jqJuJ.mjs → Card-BXNxWX5C.mjs} +4 -4
  25. package/dist/{Card-Dz6jqJuJ.mjs.map → Card-BXNxWX5C.mjs.map} +1 -1
  26. package/dist/{Card-Bp6L08H4.d.mts → Card-DQE1J3gk.d.mts} +3 -3
  27. package/dist/Card.d.mts +1 -1
  28. package/dist/{CardV2-DEW6mw_o.mjs → CardV2-Ds6e577k.mjs} +9 -9
  29. package/dist/{CardV2-DEW6mw_o.mjs.map → CardV2-Ds6e577k.mjs.map} +1 -1
  30. package/dist/{Checkbox-GibG2pg5.mjs → Checkbox-BQC_SmBt.mjs} +4 -4
  31. package/dist/{Checkbox-GibG2pg5.mjs.map → Checkbox-BQC_SmBt.mjs.map} +1 -1
  32. package/dist/{Checkbox-DUXws1Os.d.mts → Checkbox-CsJlWz-r.d.mts} +1 -1
  33. package/dist/Checkbox.d.mts +1 -1
  34. package/dist/{CheckboxGroupField-DzdOYIjo.d.mts → CheckboxGroupField-DjKp63Dr.d.mts} +3 -3
  35. package/dist/CheckboxGroupField.d.mts +1 -1
  36. package/dist/ChoicesValueControl.d.mts +1 -1
  37. package/dist/{Combobox-CnxmKUQf.d.mts → Combobox-D1iXiYGV.d.mts} +3 -3
  38. package/dist/{Combobox-CCDoNF9Y.mjs → Combobox-MCaDc7h6.mjs} +10 -10
  39. package/dist/{Combobox-CCDoNF9Y.mjs.map → Combobox-MCaDc7h6.mjs.map} +1 -1
  40. package/dist/Combobox.d.mts +2 -2
  41. package/dist/{ComboboxBase-CtNrsPO9.d.mts → ComboboxBase-DXhu2YSh.d.mts} +6 -6
  42. package/dist/ComboboxBase.d.mts +1 -1
  43. package/dist/{ComboboxMultiSelect-CMH6iVu4.d.mts → ComboboxMultiSelect-BSyJc46m.d.mts} +2 -2
  44. package/dist/ComboboxMultiSelect.d.mts +1 -1
  45. package/dist/{ComboboxSingleSelect-BLPbLmMY.d.mts → ComboboxSingleSelect-Dg_6h4iB.d.mts} +4 -4
  46. package/dist/ComboboxSingleSelect.d.mts +1 -1
  47. package/dist/{CompactBar-BwKIIlWz.d.mts → CompactBar-CVGNq7Zu.d.mts} +3 -3
  48. package/dist/CompactBar.d.mts +1 -1
  49. package/dist/{ConfigFormGroup-BQXN2Pgj.mjs → ConfigFormGroup-CidT_cE9.mjs} +2 -2
  50. package/dist/{ConfigFormGroup-BQXN2Pgj.mjs.map → ConfigFormGroup-CidT_cE9.mjs.map} +1 -1
  51. package/dist/{ControlBar-BJUY6GOX.d.mts → ControlBar-K43YI-LU.d.mts} +17 -2
  52. package/dist/ControlBar.d.mts +1 -1
  53. package/dist/DataTable.d.mts +6 -3
  54. package/dist/{DateField-BojOHfrv.d.mts → DateField-DY3xCygL.d.mts} +2 -2
  55. package/dist/DateField.d.mts +1 -1
  56. package/dist/{DatePicker-BHVx_i_F.d.mts → DatePicker-C56kJLiX.d.mts} +2 -2
  57. package/dist/{DatePicker-LPIJrc0n.mjs → DatePicker-CKk6Hnj2.mjs} +40 -8
  58. package/dist/DatePicker-CKk6Hnj2.mjs.map +1 -0
  59. package/dist/DatePicker.d.mts +1 -1
  60. package/dist/{DateRangePicker-CelDK_44.d.mts → DateRangePicker-C96NKOon.d.mts} +3 -3
  61. package/dist/DateRangePicker.d.mts +1 -1
  62. package/dist/DateRangeValueControl.d.mts +2 -2
  63. package/dist/DateValueControl.d.mts +1 -1
  64. package/dist/{DropdownButton-i5Dmxiq1.mjs → DropdownButton-B-cYK2oi.mjs} +3 -3
  65. package/dist/{DropdownButton-i5Dmxiq1.mjs.map → DropdownButton-B-cYK2oi.mjs.map} +1 -1
  66. package/dist/DropdownButton.d.mts +2 -2
  67. package/dist/{DropdownMenu-YtLxcNWt.d.mts → DropdownMenu-BwPtzVWg.d.mts} +2 -2
  68. package/dist/{DropdownMenu-j8NWbAvM.mjs → DropdownMenu-CedsmO5h.mjs} +2 -2
  69. package/dist/{DropdownMenu-j8NWbAvM.mjs.map → DropdownMenu-CedsmO5h.mjs.map} +1 -1
  70. package/dist/DropdownMenu.d.mts +1 -1
  71. package/dist/{ErrorProps-6dRdJ4QQ.d.mts → ErrorProps-C-sfKFxK.d.mts} +1 -1
  72. package/dist/ErrorProps.d.mts +1 -1
  73. package/dist/{FieldRegistry-DqO8HiYb.d.mts → FieldRegistry-C2eIbP1X.d.mts} +2 -2
  74. package/dist/FieldRegistry.d.mts +1 -1
  75. package/dist/{FilterBar-CpAA2Ozk.d.mts → FilterBar-BNbMjWDC.d.mts} +4 -4
  76. package/dist/FilterBar.d.mts +1 -1
  77. package/dist/FilterPickerMenu.d.mts +3 -3
  78. package/dist/FilterPill.d.mts +1 -1
  79. package/dist/FilterPopover.d.mts +1 -1
  80. package/dist/FloatValueControl.d.mts +1 -1
  81. package/dist/{FormControl-bDxFF0hl.mjs → FormControl-C4CiA0H-.mjs} +4 -4
  82. package/dist/{FormControl-bDxFF0hl.mjs.map → FormControl-C4CiA0H-.mjs.map} +1 -1
  83. package/dist/{FormControl-B-s6G9mp.d.mts → FormControl-DICrNHcc.d.mts} +2 -2
  84. package/dist/FormControl.d.mts +1 -1
  85. package/dist/FormControlLabel.d.mts +1 -1
  86. package/dist/{FormField-DbcqNcx2.mjs → FormField-CB0yCMro.mjs} +16 -16
  87. package/dist/{FormField-DbcqNcx2.mjs.map → FormField-CB0yCMro.mjs.map} +1 -1
  88. package/dist/{FormField-D3k-f3-f.d.mts → FormField-D97xQCxF.d.mts} +2 -2
  89. package/dist/FormField.d.mts +1 -1
  90. package/dist/{Grid-CeH9E5Ai.mjs → Grid-D0mlxk8_.mjs} +1 -1
  91. package/dist/{Grid-CeH9E5Ai.mjs.map → Grid-D0mlxk8_.mjs.map} +1 -1
  92. package/dist/{Header-2K49LYkR.d.mts → Header-Ca554S1F.d.mts} +1 -1
  93. package/dist/Header.d.mts +1 -1
  94. package/dist/{HelperTooltip-CTHUM2nC.d.mts → HelperTooltip-Dk2eqeC_.d.mts} +2 -2
  95. package/dist/HelperTooltip.d.mts +1 -1
  96. package/dist/HighlightedText.d.mts +2 -2
  97. package/dist/{HoverCopyableField-BARZLhfO.mjs → HoverCopyableField-CewUtxZl.mjs} +6 -6
  98. package/dist/{HoverCopyableField-BARZLhfO.mjs.map → HoverCopyableField-CewUtxZl.mjs.map} +1 -1
  99. package/dist/I18nContext-DXcImEuM.d.mts +22 -0
  100. package/dist/I18nContext.d.mts +2 -0
  101. package/dist/{IconButton-BHFCjvzs.mjs → IconButton-H5vDZOdo.mjs} +3 -3
  102. package/dist/{IconButton-BHFCjvzs.mjs.map → IconButton-H5vDZOdo.mjs.map} +1 -1
  103. package/dist/{IconButton-D5hx405r.d.mts → IconButton-Vq0MUaNj.d.mts} +2 -2
  104. package/dist/IconButton.d.mts +1 -1
  105. package/dist/ImageTile.d.mts +1 -1
  106. package/dist/InlineCombobox.d.mts +1 -1
  107. package/dist/InlineInput.d.mts +1 -1
  108. package/dist/{Input-BQbcIiVj.d.mts → Input-BRe0qyUe.d.mts} +3 -3
  109. package/dist/{Input-BQN97Hzm.mjs → Input-CY14-YeD.mjs} +4 -4
  110. package/dist/{Input-BQN97Hzm.mjs.map → Input-CY14-YeD.mjs.map} +1 -1
  111. package/dist/Input.d.mts +1 -1
  112. package/dist/{InputProps-DT1ZReZS.d.mts → InputProps-B2ngFfvF.d.mts} +2 -2
  113. package/dist/InputProps.d.mts +1 -1
  114. package/dist/IntegerValueControl.d.mts +1 -1
  115. package/dist/{Link-Bzm4AL5J.mjs → Link-BSuXrvTu.mjs} +2 -2
  116. package/dist/{Link-Bzm4AL5J.mjs.map → Link-BSuXrvTu.mjs.map} +1 -1
  117. package/dist/Link.d.mts +1 -1
  118. package/dist/{ListBox-DOqN9DNl.mjs → ListBox-2aYWNlO_.mjs} +13 -10
  119. package/dist/{ListBox-DOqN9DNl.mjs.map → ListBox-2aYWNlO_.mjs.map} +1 -1
  120. package/dist/{ListBox-CdqRwBvA.d.mts → ListBox-DzZY7IFz.d.mts} +3 -3
  121. package/dist/ListBox.d.mts +1 -1
  122. package/dist/{ListBoxField-Bl2WLplO.d.mts → ListBoxField-DT_-4_Ct.d.mts} +4 -4
  123. package/dist/ListBoxField.d.mts +1 -1
  124. package/dist/{LoadingShimmer-Ds7rvIUN.mjs → LoadingShimmer-Bqjdut7i.mjs} +1 -1
  125. package/dist/{LoadingShimmer-Ds7rvIUN.mjs.map → LoadingShimmer-Bqjdut7i.mjs.map} +1 -1
  126. package/dist/LoadingShimmer.d.mts +1 -1
  127. package/dist/{LogicRow-CwMAn1sh.d.mts → LogicRow-l66qss7_.d.mts} +3 -3
  128. package/dist/LogicRow.d.mts +1 -1
  129. package/dist/MaskedInput.d.mts +2 -2
  130. package/dist/{Menu-CUN9bmc1.d.mts → Menu-DQXbnpDB.d.mts} +3 -3
  131. package/dist/{Menu-DjW2b3Wk.mjs → Menu-Dw6Rcpk6.mjs} +2 -2
  132. package/dist/{Menu-DjW2b3Wk.mjs.map → Menu-Dw6Rcpk6.mjs.map} +1 -1
  133. package/dist/Menu.d.mts +1 -1
  134. package/dist/{Modal-CGXJGrKg.d.mts → Modal-Bz5Rer1b.d.mts} +2 -2
  135. package/dist/{Modal-DHLPK65-.mjs → Modal-dpBu2MKp.mjs} +6 -6
  136. package/dist/{Modal-DHLPK65-.mjs.map → Modal-dpBu2MKp.mjs.map} +1 -1
  137. package/dist/Modal.d.mts +1 -1
  138. package/dist/{PageHeader-eI4RM_uL.mjs → PageHeader-CLO8SMXV.mjs} +3 -3
  139. package/dist/{PageHeader-eI4RM_uL.mjs.map → PageHeader-CLO8SMXV.mjs.map} +1 -1
  140. package/dist/PageHeader.d.mts +1 -1
  141. package/dist/{PageSelector-kAfYxEky.d.mts → PageSelector--kFA7Xt6.d.mts} +3 -3
  142. package/dist/PageSelector.d.mts +1 -1
  143. package/dist/{Pagination-6BDOn9bX.mjs → Pagination-BEddsarh.mjs} +40 -49
  144. package/dist/Pagination-BEddsarh.mjs.map +1 -0
  145. package/dist/{Pagination-Bhr7xyd2.d.mts → Pagination-CglxJr3f.d.mts} +2 -2
  146. package/dist/Pagination.d.mts +1 -1
  147. package/dist/{Pii-DhL1gblz.mjs → Pii-Ct7yDY7d.mjs} +2 -2
  148. package/dist/{Pii-DhL1gblz.mjs.map → Pii-Ct7yDY7d.mjs.map} +1 -1
  149. package/dist/{PillShell-CVJL1k5I.d.mts → PillShell-CvJzkRFh.d.mts} +2 -2
  150. package/dist/PillShell.d.mts +1 -1
  151. package/dist/{Popover-CbYaWrAy.mjs → Popover-532iYFek.mjs} +3 -3
  152. package/dist/{Popover-CbYaWrAy.mjs.map → Popover-532iYFek.mjs.map} +1 -1
  153. package/dist/{ProgressIndicator-CYyM6OSx.d.mts → ProgressIndicator-Cleq0Tfb.d.mts} +1 -1
  154. package/dist/{ProgressIndicator-BpF3XLn3.mjs → ProgressIndicator-STyTM0Hq.mjs} +1 -1
  155. package/dist/{ProgressIndicator-BpF3XLn3.mjs.map → ProgressIndicator-STyTM0Hq.mjs.map} +1 -1
  156. package/dist/ProgressIndicator.d.mts +1 -1
  157. package/dist/{PseudoClassProps-BOVN6Etr.d.mts → PseudoClassProps-B2R2dyr3.d.mts} +1 -1
  158. package/dist/PseudoClassProps.d.mts +1 -1
  159. package/dist/{Radio-DPaX-9LH.mjs → Radio-BtomkCkL.mjs} +2 -2
  160. package/dist/{Radio-DPaX-9LH.mjs.map → Radio-BtomkCkL.mjs.map} +1 -1
  161. package/dist/{RadioGroup-C0l0pdEt.d.mts → RadioGroup-B3B4PCz6.d.mts} +1 -1
  162. package/dist/{RadioGroup-D7f4m2Uc.mjs → RadioGroup-B6UaoJRd.mjs} +2 -2
  163. package/dist/{RadioGroup-D7f4m2Uc.mjs.map → RadioGroup-B6UaoJRd.mjs.map} +1 -1
  164. package/dist/RadioGroup.d.mts +1 -1
  165. package/dist/{RangeCalendar-BJn9V3iN.d.mts → RangeCalendar-C24q-nvR.d.mts} +2 -2
  166. package/dist/RangeCalendar.d.mts +1 -1
  167. package/dist/RangeCalendarPresets.d.mts +1 -1
  168. package/dist/{RouterContext-BLrzYlJ_.d.mts → RouterContext-BhPPG7d3.d.mts} +2 -2
  169. package/dist/{RouterContext-CsPnkNdI.mjs → RouterContext-nPSb55p9.mjs} +1 -1
  170. package/dist/{RouterContext-CsPnkNdI.mjs.map → RouterContext-nPSb55p9.mjs.map} +1 -1
  171. package/dist/RouterContext.d.mts +1 -1
  172. package/dist/{RouterLink-BHXjhqps.d.mts → RouterLink-IDO10cDE.d.mts} +2 -2
  173. package/dist/RouterLink.d.mts +1 -1
  174. package/dist/RuleEditorFields.d.mts +2 -2
  175. package/dist/RulesPill.d.mts +1 -1
  176. package/dist/{SearchInput-Buh8LdIL.d.mts → SearchInput-7pBMxhuN.d.mts} +2 -2
  177. package/dist/SearchInput.d.mts +1 -1
  178. package/dist/SectionHeading.d.mts +1 -1
  179. package/dist/{SegmentedControl-B9qLyIIW.d.mts → SegmentedControl-B9yo9yMy.d.mts} +1 -1
  180. package/dist/{SegmentedControl-zEvBtVj0.mjs → SegmentedControl-BNVwf7nL.mjs} +2 -2
  181. package/dist/{SegmentedControl-zEvBtVj0.mjs.map → SegmentedControl-BNVwf7nL.mjs.map} +1 -1
  182. package/dist/SegmentedControl.d.mts +1 -1
  183. package/dist/{Select-Cv_9PLOt.d.mts → Select-D7_npfZr.d.mts} +3 -3
  184. package/dist/{Select-BoZuM_e9.mjs → Select-DD7mFvR8.mjs} +7 -7
  185. package/dist/{Select-BoZuM_e9.mjs.map → Select-DD7mFvR8.mjs.map} +1 -1
  186. package/dist/Select.d.mts +1 -1
  187. package/dist/SmartTextInput.d.mts +9 -9
  188. package/dist/SmartTextInputField.d.mts +2 -2
  189. package/dist/SmartTextInputFunctionDialog.d.mts +4 -4
  190. package/dist/SmartTextInputListbox.d.mts +2 -2
  191. package/dist/SmartTextInputPopover.d.mts +1 -1
  192. package/dist/{Spacer-BFOuo0sZ.mjs → Spacer-J_HuhxX2.mjs} +1 -1
  193. package/dist/{Spacer-BFOuo0sZ.mjs.map → Spacer-J_HuhxX2.mjs.map} +1 -1
  194. package/dist/{Spinner-CarSRiBF.mjs → Spinner-uVZyOh1T.mjs} +1 -1
  195. package/dist/{Spinner-CarSRiBF.mjs.map → Spinner-uVZyOh1T.mjs.map} +1 -1
  196. package/dist/{Stack-CEPzs4Pb.mjs → Stack-BkC7FCdF.mjs} +1 -1
  197. package/dist/{Stack-CEPzs4Pb.mjs.map → Stack-BkC7FCdF.mjs.map} +1 -1
  198. package/dist/{Stack-XzBzPvSV.d.mts → Stack-opuYfQvc.d.mts} +1 -1
  199. package/dist/Stack.d.mts +1 -1
  200. package/dist/{StatusIndicator-bEnMWV_S.mjs → StatusIndicator-akDwBiBW.mjs} +1 -1
  201. package/dist/{StatusIndicator-bEnMWV_S.mjs.map → StatusIndicator-akDwBiBW.mjs.map} +1 -1
  202. package/dist/{Sticker-B-fU8lgu.mjs → Sticker-DdhSpTcV.mjs} +3 -3
  203. package/dist/{Sticker-B-fU8lgu.mjs.map → Sticker-DdhSpTcV.mjs.map} +1 -1
  204. package/dist/{Sticker-DGfNuxUK.d.mts → Sticker-rxBNVYlX.d.mts} +4 -4
  205. package/dist/Sticker.d.mts +1 -1
  206. package/dist/StringValueControl.d.mts +1 -1
  207. package/dist/Tab.d.mts +1 -1
  208. package/dist/{TabBar-BSl5v5aa.mjs → TabBar-DBOPWUUa.mjs} +6 -9
  209. package/dist/TabBar-DBOPWUUa.mjs.map +1 -0
  210. package/dist/{Table-msXj0glu.mjs → Table--o4ZLRbb.mjs} +4 -4
  211. package/dist/{Table-msXj0glu.mjs.map → Table--o4ZLRbb.mjs.map} +1 -1
  212. package/dist/{Table-B2V5tlfA.d.mts → Table-Bt7zAlgQ.d.mts} +1 -1
  213. package/dist/Table.d.mts +1 -1
  214. package/dist/{TableBody-SlQe4Jyp.d.mts → TableBody-9AYpXi2y.d.mts} +1 -1
  215. package/dist/TableBody.d.mts +1 -1
  216. package/dist/{TableBox-CF1_Fk0j.mjs → TableBox-BGabyY7E.mjs} +10 -10
  217. package/dist/{TableBox-CF1_Fk0j.mjs.map → TableBox-BGabyY7E.mjs.map} +1 -1
  218. package/dist/TableBox.d.mts +2 -2
  219. package/dist/{TableBoxCell-BRhGeUnO.d.mts → TableBoxCell-6ovTrboM.d.mts} +6 -6
  220. package/dist/TableBoxCell.d.mts +1 -1
  221. package/dist/{TableBoxField-Cq9M1upV.d.mts → TableBoxField-mGTYb-Bz.d.mts} +5 -5
  222. package/dist/TableBoxField.d.mts +1 -1
  223. package/dist/{TableBoxRow-DZzRYoID.d.mts → TableBoxRow-56QatuNm.d.mts} +3 -3
  224. package/dist/TableBoxRow.d.mts +1 -1
  225. package/dist/{TableBoxRowActions-4-j3flJq.d.mts → TableBoxRowActions-9rR-k_4H.d.mts} +2 -2
  226. package/dist/TableBoxRowActions.d.mts +1 -1
  227. package/dist/{TableCell-D5Sqb6iO.d.mts → TableCell-WD0ultKh.d.mts} +2 -2
  228. package/dist/TableCell.d.mts +1 -1
  229. package/dist/{TableControls-CqW_nyBY.mjs → TableControls-B5UGCoO-.mjs} +561 -305
  230. package/dist/TableControls-B5UGCoO-.mjs.map +1 -0
  231. package/dist/{TableControls-B-LakH-8.d.mts → TableControls-DVO-obFo.d.mts} +6 -3
  232. package/dist/TableControls.d.mts +1 -1
  233. package/dist/{TableControlsContext-Dh1YVmBM.d.mts → TableControlsContext-BDl9k4o4.d.mts} +2 -2
  234. package/dist/TableControlsContext.d.mts +1 -1
  235. package/dist/{TableHead-BCrVa0BY.d.mts → TableHead-DqcFsWpz.d.mts} +1 -1
  236. package/dist/TableHead.d.mts +1 -1
  237. package/dist/{TableHeaderCell-CcEkDozs.d.mts → TableHeaderCell-C1PJHhXZ.d.mts} +1 -1
  238. package/dist/TableHeaderCell.d.mts +1 -1
  239. package/dist/{TableLayout-Bhj1QBBz.d.mts → TableLayout-B4qzMWXH.d.mts} +1 -1
  240. package/dist/TableLayout.d.mts +1 -1
  241. package/dist/{TableRow-Cy1y7b9S.d.mts → TableRow-B1yeAiVf.d.mts} +2 -2
  242. package/dist/TableRow.d.mts +1 -1
  243. package/dist/TableTH.d.mts +1 -1
  244. package/dist/{TableViewConfigurationDropdown-BzygLtGm.d.mts → TableViewConfigurationDropdown-DBdUHK__.d.mts} +2 -2
  245. package/dist/TableViewConfigurationDropdown.d.mts +1 -1
  246. package/dist/{TechnicalSticker-B6T7cHHc.mjs → TechnicalSticker-CALVwnrT.mjs} +3 -3
  247. package/dist/{TechnicalSticker-B6T7cHHc.mjs.map → TechnicalSticker-CALVwnrT.mjs.map} +1 -1
  248. package/dist/{Text-BdluS7Fy.mjs → Text-CSwFifQF.mjs} +1 -1
  249. package/dist/{Text-BdluS7Fy.mjs.map → Text-CSwFifQF.mjs.map} +1 -1
  250. package/dist/{Text-BVGJ-Nlw.d.mts → Text-D4GzsXFA.d.mts} +3 -3
  251. package/dist/Text.d.mts +1 -1
  252. package/dist/{TextArea-Bzj593VO.d.mts → TextArea-BL8BTgwk.d.mts} +2 -2
  253. package/dist/{TextArea-C1CmFRiz.mjs → TextArea-kOkhZxNR.mjs} +2 -2
  254. package/dist/{TextArea-C1CmFRiz.mjs.map → TextArea-kOkhZxNR.mjs.map} +1 -1
  255. package/dist/TextArea.d.mts +1 -1
  256. package/dist/{TextUnderlineTooltip-CgFmtqF_.d.mts → TextUnderlineTooltip-Sdxqsr6y.d.mts} +2 -2
  257. package/dist/TextUnderlineTooltip.d.mts +1 -1
  258. package/dist/Tile.d.mts +1 -1
  259. package/dist/Toast.d.mts +1 -1
  260. package/dist/{Toggle-CntyMUPJ.mjs → Toggle-CZF6iBql.mjs} +4 -4
  261. package/dist/{Toggle-CntyMUPJ.mjs.map → Toggle-CZF6iBql.mjs.map} +1 -1
  262. package/dist/{Toggle-bSu1xAaq.d.mts → Toggle-cUtrUIIO.d.mts} +1 -1
  263. package/dist/Toggle.d.mts +1 -1
  264. package/dist/{Tooltip-C0FuZS1C.mjs → Tooltip-B-0VRuKT.mjs} +2 -2
  265. package/dist/{Tooltip-C0FuZS1C.mjs.map → Tooltip-B-0VRuKT.mjs.map} +1 -1
  266. package/dist/{Tooltip-Duw4Fz1t.d.mts → Tooltip-CSM977L6.d.mts} +2 -2
  267. package/dist/Tooltip.d.mts +1 -1
  268. package/dist/{TruncatedText-CbTpX_R1.d.mts → TruncatedText-CCUrvW2a.d.mts} +1 -1
  269. package/dist/VersionHistory.d.mts +1 -1
  270. package/dist/{VersionHistoryItem-D05QYej7.d.mts → VersionHistoryItem-DBjL9S5_.d.mts} +1 -1
  271. package/dist/VersionHistoryItem.d.mts +1 -1
  272. package/dist/WizardModal.d.mts +2 -2
  273. package/dist/{accordionTitleTypography-Leehcmb3.d.mts → accordionTitleTypography--GAczLo7.d.mts} +2 -2
  274. package/dist/accordionTitleTypography.d.mts +1 -1
  275. package/dist/{chainTypes-D8SGRGba.d.mts → chainTypes-dY6jc22J.d.mts} +4 -4
  276. package/dist/{codec-Vsztf4fe.d.mts → codec-D2uE0_oJ.d.mts} +2 -2
  277. package/dist/codec.d.mts +1 -1
  278. package/dist/{color-CrlF3pba.d.mts → color-DuKiTH5t.d.mts} +2 -2
  279. package/dist/components/Accordion/index.d.mts +1 -1
  280. package/dist/components/Accordion/index.mjs +2 -2
  281. package/dist/components/Attribute/index.mjs +4 -4
  282. package/dist/components/Badge/index.mjs +1 -1
  283. package/dist/components/Banner/index.mjs +1 -1
  284. package/dist/components/BottomPanel/index.mjs +3 -3
  285. package/dist/components/Breadcrumbs/index.d.mts +1 -1
  286. package/dist/components/Breadcrumbs/index.mjs +1 -1
  287. package/dist/components/Button/index.d.mts +2 -2
  288. package/dist/components/Button/index.mjs +1 -1
  289. package/dist/components/ButtonGroup/index.mjs +2 -2
  290. package/dist/components/Card/index.d.mts +2 -2
  291. package/dist/components/Card/index.mjs +1 -1
  292. package/dist/components/CardV2/index.d.mts +1 -1
  293. package/dist/components/CardV2/index.mjs +1 -1
  294. package/dist/components/Checkbox/index.d.mts +1 -1
  295. package/dist/components/Checkbox/index.mjs +1 -1
  296. package/dist/components/CodeHighlight/index.mjs +2 -2
  297. package/dist/components/Combobox/index.d.mts +2 -2
  298. package/dist/components/Combobox/index.mjs +1 -1
  299. package/dist/components/ConfigFormGroup/index.mjs +2 -2
  300. package/dist/components/DataTable/TableControls/index.d.mts +19 -19
  301. package/dist/components/DataTable/TableControls/index.mjs +1 -1
  302. package/dist/components/DataTable/index.d.mts +2 -2
  303. package/dist/components/DataTable/index.mjs +83 -60
  304. package/dist/components/DataTable/index.mjs.map +1 -1
  305. package/dist/components/DataTable/types.d.mts +9 -2
  306. package/dist/components/DatePicker/index.d.mts +5 -5
  307. package/dist/components/DatePicker/index.mjs +1 -1
  308. package/dist/components/DropdownButton/index.mjs +1 -1
  309. package/dist/components/DropdownMenu/index.d.mts +1 -1
  310. package/dist/components/DropdownMenu/index.mjs +1 -1
  311. package/dist/components/FloatingPanel/index.mjs +3 -3
  312. package/dist/components/FormControl/index.d.mts +2 -2
  313. package/dist/components/FormControl/index.mjs +2 -2
  314. package/dist/components/FormField/index.d.mts +5 -5
  315. package/dist/components/FormField/index.mjs +1 -1
  316. package/dist/components/Grid/index.mjs +1 -1
  317. package/dist/components/HoverCopyableField/index.mjs +1 -1
  318. package/dist/components/ImageTile/index.mjs +7 -7
  319. package/dist/components/Input/index.d.mts +1 -1
  320. package/dist/components/Input/index.mjs +1 -1
  321. package/dist/components/Link/index.mjs +1 -1
  322. package/dist/components/ListBox/index.d.mts +3 -3
  323. package/dist/components/ListBox/index.mjs +1 -1
  324. package/dist/components/LoadingShimmer/index.mjs +1 -1
  325. package/dist/components/MaskedInput/index.mjs +1 -1
  326. package/dist/components/Menu/index.d.mts +1 -1
  327. package/dist/components/Menu/index.mjs +1 -1
  328. package/dist/components/Modal/index.d.mts +1 -1
  329. package/dist/components/Modal/index.mjs +1 -1
  330. package/dist/components/PageHeader/index.mjs +1 -1
  331. package/dist/components/Pagination/index.d.mts +3 -3
  332. package/dist/components/Pagination/index.mjs +1 -1
  333. package/dist/components/Pii/index.mjs +1 -1
  334. package/dist/components/Popover/index.mjs +1 -1
  335. package/dist/components/ProgressBar/index.mjs +1 -1
  336. package/dist/components/ProgressIndicator/index.d.mts +1 -1
  337. package/dist/components/ProgressIndicator/index.mjs +1 -1
  338. package/dist/components/Radio/index.mjs +1 -1
  339. package/dist/components/RadioGroup/index.d.mts +1 -1
  340. package/dist/components/RadioGroup/index.mjs +1 -1
  341. package/dist/components/RightPanel/index.mjs +4 -4
  342. package/dist/components/SegmentedControl/index.d.mts +1 -1
  343. package/dist/components/SegmentedControl/index.mjs +1 -1
  344. package/dist/components/Select/index.d.mts +1 -1
  345. package/dist/components/Select/index.mjs +1 -1
  346. package/dist/components/Slider/index.mjs +1 -1
  347. package/dist/components/SmartTextInput/index.d.mts +2 -2
  348. package/dist/components/SmartTextInput/index.mjs +8 -8
  349. package/dist/components/SmartTextInput/index.mjs.map +1 -1
  350. package/dist/components/SmartTextInput/parser/method-chain/types.d.mts +1 -1
  351. package/dist/components/SmartTextInput/parser/smart-text/types.d.mts +2 -2
  352. package/dist/components/Spacer/index.mjs +1 -1
  353. package/dist/components/Spinner/index.mjs +1 -1
  354. package/dist/components/Stack/index.d.mts +1 -1
  355. package/dist/components/Stack/index.mjs +1 -1
  356. package/dist/components/StatusIndicator/index.mjs +1 -1
  357. package/dist/components/Sticker/index.d.mts +1 -1
  358. package/dist/components/Sticker/index.mjs +1 -1
  359. package/dist/components/TabBar/index.mjs +1 -1
  360. package/dist/components/Table/index.d.mts +8 -8
  361. package/dist/components/Table/index.mjs +1 -1
  362. package/dist/components/TableBox/index.d.mts +2 -2
  363. package/dist/components/TableBox/index.mjs +1 -1
  364. package/dist/components/TechnicalSticker/index.mjs +1 -1
  365. package/dist/components/Text/index.d.mts +1 -1
  366. package/dist/components/Text/index.mjs +1 -1
  367. package/dist/components/TextArea/index.d.mts +1 -1
  368. package/dist/components/TextArea/index.mjs +1 -1
  369. package/dist/components/Tile/index.mjs +4 -4
  370. package/dist/components/Toast/index.mjs +1 -1
  371. package/dist/components/Toggle/index.d.mts +1 -1
  372. package/dist/components/Toggle/index.mjs +1 -1
  373. package/dist/components/Tooltip/index.d.mts +3 -3
  374. package/dist/components/Tooltip/index.mjs +1 -1
  375. package/dist/components/VersionHistory/index.d.mts +1 -1
  376. package/dist/components/VersionHistory/index.mjs +8 -8
  377. package/dist/compound-expression.d.mts +1 -1
  378. package/dist/{constants-CQUCM6__.d.mts → constants-BiOvZGO5.d.mts} +1 -1
  379. package/dist/constants.d.mts +1 -1
  380. package/dist/{createPath-Bq7wYGt_.d.mts → createPath-B8EZDtSz.d.mts} +2 -2
  381. package/dist/createPath.d.mts +1 -1
  382. package/dist/{date-filter-D6IfCkwp.mjs → date-filter-CWgCXz85.mjs} +1 -1
  383. package/dist/{date-filter-D6IfCkwp.mjs.map → date-filter-CWgCXz85.mjs.map} +1 -1
  384. package/dist/{date-range-rule-value-DVhMQP4-.d.mts → date-range-rule-value-DObVM8xO.d.mts} +2 -2
  385. package/dist/date-range-rule-value.d.mts +1 -1
  386. package/dist/{date-rule-intent-BwQ6OTVD.d.mts → date-rule-intent-DhMMe_wq.d.mts} +3 -3
  387. package/dist/date-rule-intent.d.mts +1 -1
  388. package/dist/display.d.mts +12 -4
  389. package/dist/fieldPickerOptions.d.mts +5 -3
  390. package/dist/{filter-size-context-BjTzcZwZ.d.mts → filter-size-context-DaBdvJHf.d.mts} +2 -2
  391. package/dist/filter-size-context.d.mts +1 -1
  392. package/dist/format-date-value.d.mts +6 -1
  393. package/dist/formatDateTime-mPH4DsDC.d.mts +30 -0
  394. package/dist/formatDateTime.d.mts +2 -0
  395. package/dist/helpers.d.mts +24 -10
  396. package/dist/i18n-UiE7OC4k.mjs +203 -0
  397. package/dist/i18n-UiE7OC4k.mjs.map +1 -0
  398. package/dist/{index-BFIFjR7Q.d.mts → index-Blo6W_k0.d.mts} +2 -2
  399. package/dist/{index-BhDvrF4l.d.mts → index-CTcM_LlP.d.mts} +3 -3
  400. package/dist/{index-C-xpEL8b.d.mts → index-CeUb5INA.d.mts} +2 -2
  401. package/dist/index-kxcPLmUx2.d.mts +1 -0
  402. package/dist/index.d.mts +1 -1
  403. package/dist/index2.d.mts +1 -1
  404. package/dist/index3.d.mts +3 -3
  405. package/dist/index4.d.mts +1 -1
  406. package/dist/index5.d.mts +14 -14
  407. package/dist/{input-DpHBIUpP.d.mts → input-D9rsMlzl.d.mts} +3 -3
  408. package/dist/{inputFields-BVDurw3L.d.mts → inputFields-CXelxYhd.d.mts} +11 -11
  409. package/dist/inputFields.d.mts +1 -1
  410. package/dist/{intersperse-bvY2gibK.mjs → intersperse-ObkRVOag.mjs} +1 -1
  411. package/dist/{intersperse-bvY2gibK.mjs.map → intersperse-ObkRVOag.mjs.map} +1 -1
  412. package/dist/{jsonSchema-Bl-qzgrr.d.mts → jsonSchema-BMPLdT4p.d.mts} +1 -1
  413. package/dist/lib/PDSProvider.d.mts +14 -2
  414. package/dist/lib/PDSProvider.mjs +15 -8
  415. package/dist/lib/PDSProvider.mjs.map +1 -1
  416. package/dist/lib/TruncatedText.d.mts +1 -1
  417. package/dist/lib/TruncatedTextWithTooltip.d.mts +1 -1
  418. package/dist/lib/TruncatedTextWithTooltip.mjs +1 -1
  419. package/dist/lib/chainTypes.d.mts +1 -1
  420. package/dist/lib/color.d.mts +1 -1
  421. package/dist/lib/customFunctionSchema.d.mts +1 -1
  422. package/dist/lib/date-filter/index.d.mts +2 -2
  423. package/dist/lib/date-filter/index.mjs +1 -1
  424. package/dist/lib/i18n/index.d.mts +4 -0
  425. package/dist/lib/i18n/index.mjs +2 -0
  426. package/dist/lib/jsonSchema.d.mts +1 -1
  427. package/dist/lib/jsonSchemaType.d.mts +1 -1
  428. package/dist/lib/message.d.mts +1 -1
  429. package/dist/lib/methodChain.d.mts +2 -2
  430. package/dist/lib/methodChain.mjs +1 -1
  431. package/dist/lib/methodChainNormalize.d.mts +2 -2
  432. package/dist/lib/methodChainTypes.d.mts +1 -1
  433. package/dist/lib/objectSchemaTypes.d.mts +1 -1
  434. package/dist/lib/platformObject.d.mts +1 -1
  435. package/dist/lib/pseudoClass.d.mts +1 -1
  436. package/dist/lib/router/adapters/reactRouter.d.mts +1 -1
  437. package/dist/lib/router/adapters/reactRouter.mjs +1 -1
  438. package/dist/lib/router/adapters/tanstack.d.mts +1 -1
  439. package/dist/lib/router/adapters/tanstack.mjs +1 -1
  440. package/dist/lib/router/index.d.mts +5 -5
  441. package/dist/lib/router/index.mjs +2 -2
  442. package/dist/lib/schemaOptions.d.mts +1 -1
  443. package/dist/lib/schemaOptions.mjs +1 -1
  444. package/dist/lib/semanticColor.d.mts +1 -1
  445. package/dist/lib/useChain.d.mts +1 -1
  446. package/dist/lib/useChain.mjs +1 -1
  447. package/dist/{listbox-options-BjOkovND.d.mts → listbox-options-BFaMbK-g.d.mts} +3 -3
  448. package/dist/listbox-options.d.mts +1 -1
  449. package/dist/{message-w_1-kTDE.d.mts → message-BOzjC5yA.d.mts} +1 -1
  450. package/dist/{methodChain-B5vZEOff.d.mts → methodChain-CGTIWafl.d.mts} +4 -4
  451. package/dist/{methodChain-L_h8Z8Bx.mjs → methodChain-xZ1_vhbz.mjs} +1 -1
  452. package/dist/{methodChain-L_h8Z8Bx.mjs.map → methodChain-xZ1_vhbz.mjs.map} +1 -1
  453. package/dist/{methodChainTypes-BVkTI8MX.d.mts → methodChainTypes-BtSMV5OZ.d.mts} +2 -2
  454. package/dist/mixins/focus.d.mts +1 -1
  455. package/dist/mixins/hoverable.d.mts +2 -2
  456. package/dist/mixins/input.d.mts +1 -1
  457. package/dist/mixins/menuItem.d.mts +2 -2
  458. package/dist/mixins/scrollbar.d.mts +1 -1
  459. package/dist/mixins/text.d.mts +1 -1
  460. package/dist/{operators-BG82-g3M.d.mts → operators-DfvW8Kmr.d.mts} +9 -4
  461. package/dist/operators.d.mts +1 -1
  462. package/dist/{palette-C8tyI81D.d.mts → palette-CBOBcVu3.d.mts} +3 -3
  463. package/dist/palette.d.mts +1 -1
  464. package/dist/patterns/LayoutLoadingShimmer/index.mjs +5 -5
  465. package/dist/patterns/PageLayout/index.mjs +2 -2
  466. package/dist/patterns/WizardModal/index.mjs +4 -4
  467. package/dist/reactRouterFallback.d.mts +1 -1
  468. package/dist/relative-date-label.d.mts +1 -1
  469. package/dist/{router-7FYDW80v.mjs → router-COrZcVkf.mjs} +2 -2
  470. package/dist/{router-7FYDW80v.mjs.map → router-COrZcVkf.mjs.map} +1 -1
  471. package/dist/safe-parse.d.mts +1 -1
  472. package/dist/{schemaOptions-DGca6x7E.d.mts → schemaOptions-DTeNBwir.d.mts} +3 -3
  473. package/dist/{semantic-D1661f_6.d.mts → semantic-CfiNA4Yy.d.mts} +1 -1
  474. package/dist/{semanticColor-Bg0H3RUL.d.mts → semanticColor-BCPOKF9L.d.mts} +3 -3
  475. package/dist/strings-BaQZhOjo.d.mts +143 -0
  476. package/dist/strings.d.mts +2 -0
  477. package/dist/{text-Iw9DKpbZ.d.mts → text-ucZmPNyH.d.mts} +1 -1
  478. package/dist/{theme-BB1B6Wkz.d.mts → theme-CAPmp1it.d.mts} +3 -3
  479. package/dist/theme.d.mts +1 -1
  480. package/dist/tone.d.mts +3 -3
  481. package/dist/tree.d.mts +1 -1
  482. package/dist/{types-DdTu747j.d.mts → types-B1KzKgBp.d.mts} +1 -1
  483. package/dist/{types-BYRTxB0a.d.mts → types-BB5WwerD.d.mts} +2 -2
  484. package/dist/{types-B0ilOIfE.d.mts → types-BfrEduGv.d.mts} +2 -2
  485. package/dist/{types-CI2bPi02.d.mts → types-CBfgdnuB.d.mts} +1 -1
  486. package/dist/{types-D1DijcJv.d.mts → types-ClbV4wNp.d.mts} +1 -1
  487. package/dist/{types-DZTbvdpO.d.mts → types-CoTzVfFl.d.mts} +1 -1
  488. package/dist/{types-Cs6CdZCO.d.mts → types-CptsgFbu.d.mts} +4 -4
  489. package/dist/{types-Dy3lZv9z.d.mts → types-Rj-C3LGL.d.mts} +2 -2
  490. package/dist/{types-M-rsm1Km.d.mts → types-l-arEBLb.d.mts} +1 -1
  491. package/dist/types.d.mts +1 -1
  492. package/dist/types2.d.mts +1 -1
  493. package/dist/types3.d.mts +1 -1
  494. package/dist/types4.d.mts +1 -1
  495. package/dist/types5.d.mts +1 -1
  496. package/dist/types6.d.mts +1 -1
  497. package/dist/types7.d.mts +1 -1
  498. package/dist/{url-state-DWA7UFxS.d.mts → url-state-CrnZ3Ocy.d.mts} +2 -2
  499. package/dist/url-state.d.mts +1 -1
  500. package/dist/{useChain-CKqYGdx4.mjs → useChain-Cu4KDfFk.mjs} +2 -2
  501. package/dist/{useChain-CKqYGdx4.mjs.map → useChain-Cu4KDfFk.mjs.map} +1 -1
  502. package/dist/{useChain-CEsXE2Bx.d.mts → useChain-DQq1UsGZ.d.mts} +6 -6
  503. package/dist/useChainAtCursor.d.mts +6 -6
  504. package/dist/useCodeChainFunctionPanel.d.mts +1 -1
  505. package/dist/useComboboxFooterAction.d.mts +1 -1
  506. package/dist/{useFilterStateV2-DoJ9lyJx.d.mts → useFilterStateV2-CGGABOcq.d.mts} +3 -3
  507. package/dist/useFilterStateV2.d.mts +1 -1
  508. package/dist/{useFormField-BtnAYcHV.d.mts → useFormField-4w9TNFgD.d.mts} +2 -2
  509. package/dist/{useFormField-BAmkdxtA.mjs → useFormField-CbNYbDdp.mjs} +2 -2
  510. package/dist/{useFormField-BAmkdxtA.mjs.map → useFormField-CbNYbDdp.mjs.map} +1 -1
  511. package/dist/useFormField.d.mts +1 -1
  512. package/dist/{useFormGroup-BZayb9fZ.mjs → useFormGroup-CsKC93Pt.mjs} +1 -1
  513. package/dist/{useFormGroup-BZayb9fZ.mjs.map → useFormGroup-CsKC93Pt.mjs.map} +1 -1
  514. package/dist/{useLocationPathname-pLyLOrAi.d.mts → useLocationPathname-CZwH8h5n.d.mts} +1 -1
  515. package/dist/useLocationPathname.d.mts +1 -1
  516. package/dist/{useTableBoxDragAndDrop-wjc_LCpC.d.mts → useTableBoxDragAndDrop-Bw93rNFH.d.mts} +1 -1
  517. package/dist/useTableBoxDragAndDrop.d.mts +1 -1
  518. package/dist/{useToggle-DUHQjohK.mjs → useToggle-DRzCDqrc.mjs} +1 -1
  519. package/dist/{useToggle-DUHQjohK.mjs.map → useToggle-DRzCDqrc.mjs.map} +1 -1
  520. package/dist/useTruncation.d.mts +1 -1
  521. package/dist/{utilities-DL18UdPs.d.mts → utilities-B8PzMOza.d.mts} +1 -1
  522. package/dist/utilities.d.mts +1 -1
  523. package/dist/utils/storybook.mjs +1 -1
  524. package/dist/utils/testing.d.mts +1 -1
  525. package/dist/utils.d.mts +1 -1
  526. package/dist/utils4.d.mts +5 -5
  527. package/dist/{validation-PeVTwtd-.d.mts → validation-DP8f6tgh.d.mts} +3 -3
  528. package/dist/validation.d.mts +1 -1
  529. package/dist/validation2.d.mts +4 -4
  530. package/dist/{value-control-resolver-Cx_wXQFv.d.mts → value-control-resolver-CwjOaVAn.d.mts} +2 -2
  531. package/dist/value-control-resolver.d.mts +1 -1
  532. package/dist/variables/effect.d.mts +1 -1
  533. package/dist/variables/semantic.d.mts +1 -1
  534. package/llms.txt +1 -1
  535. package/package.json +3 -1
  536. package/skills/ui-authoring/COMPONENTS.md +1 -0
  537. package/skills/ui-authoring/SKILL.md +23 -0
  538. package/dist/DatePicker-LPIJrc0n.mjs.map +0 -1
  539. package/dist/Pagination-6BDOn9bX.mjs.map +0 -1
  540. package/dist/TabBar-BSl5v5aa.mjs.map +0 -1
  541. package/dist/TableControls-CqW_nyBY.mjs.map +0 -1
  542. /package/dist/{index-7in8TPrM.d.mts → index-1-AkepUA.d.mts} +0 -0
  543. /package/dist/{index-BCq_fh4A2.d.mts → index-B-Y-ZG2x.d.mts} +0 -0
  544. /package/dist/{index-BINnViIh.d.mts → index-BO_854F2.d.mts} +0 -0
  545. /package/dist/{index-BMBcfD_R.d.mts → index-BSVhZrWN.d.mts} +0 -0
  546. /package/dist/{index-BOn0AAue.d.mts → index-BYARwRq7.d.mts} +0 -0
  547. /package/dist/{index-BjgW3E7y.d.mts → index-B_BBnMou.d.mts} +0 -0
  548. /package/dist/{index-BwXb5CoQ.d.mts → index-BbPybiOV.d.mts} +0 -0
  549. /package/dist/{index-C3usUse7.d.mts → index-Bt4QNofW.d.mts} +0 -0
  550. /package/dist/{index-CCKHlTA4.d.mts → index-CCt0lwyI.d.mts} +0 -0
  551. /package/dist/{index-CP2eJYlK.d.mts → index-CIABef8t.d.mts} +0 -0
  552. /package/dist/{index-CWB6exYm.d.mts → index-CTHojwxd.d.mts} +0 -0
  553. /package/dist/{index-CuYZJcK3.d.mts → index-CliqZ9rj.d.mts} +0 -0
  554. /package/dist/{index-CuheJfs-.d.mts → index-Cm-1i165.d.mts} +0 -0
  555. /package/dist/{index-D-9tW2r5.d.mts → index-CzItj62a.d.mts} +0 -0
  556. /package/dist/{index-D9XihFV1.d.mts → index-CzUpNo0e.d.mts} +0 -0
  557. /package/dist/{index-Deol7ZWO.d.mts → index-D-giXKyu.d.mts} +0 -0
  558. /package/dist/{index-Dflz2i1X.d.mts → index-DGsJdI5l.d.mts} +0 -0
  559. /package/dist/{index-DjOaHFU3.d.mts → index-DMRtRo7y.d.mts} +0 -0
  560. /package/dist/{index-DkrC-i1D.d.mts → index-DUF59i3Q2.d.mts} +0 -0
  561. /package/dist/{index-DrK1_jKY.d.mts → index-DgJfEygr.d.mts} +0 -0
  562. /package/dist/{index-Iujpc9_6.d.mts → index-Es5nKSSL.d.mts} +0 -0
  563. /package/dist/{index-e6k85DKM.d.mts → index-NKYLt_R9.d.mts} +0 -0
  564. /package/dist/{index-gpCH5158.d.mts → index-Qwqzz3XM.d.mts} +0 -0
  565. /package/dist/{index-irNqT1qQ2.d.mts → index-T2S0_qsg.d.mts} +0 -0
  566. /package/dist/{index-xmouCHX9.d.mts → index-bHnO4ZKt.d.mts} +0 -0
@@ -1,8 +1,8 @@
1
- import { r as Sticker } from "./Sticker-DGfNuxUK.mjs";
2
- import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-Bl-qzgrr.mjs";
3
- import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BVkTI8MX.mjs";
4
- import { t as Option } from "./schemaOptions-DGca6x7E.mjs";
5
- import { n as PossibleChainSchema, t as ChainRoot } from "./chainTypes-D8SGRGba.mjs";
1
+ import { r as Sticker } from "./Sticker-rxBNVYlX.mjs";
2
+ import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-BMPLdT4p.mjs";
3
+ import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BtSMV5OZ.mjs";
4
+ import { t as Option } from "./schemaOptions-DTeNBwir.mjs";
5
+ import { n as PossibleChainSchema, t as ChainRoot } from "./chainTypes-dY6jc22J.mjs";
6
6
  import { ComponentProps } from "react";
7
7
 
8
8
  //#region lib/useChain.d.ts
@@ -74,4 +74,4 @@ declare const useChainSchema: ({
74
74
  declare const useChain: UseChainHook;
75
75
  //#endregion
76
76
  export { useChain as n, useChainSchema as r, chainRootsFromSchemaProperties as t };
77
- //# sourceMappingURL=useChain-CEsXE2Bx.d.mts.map
77
+ //# sourceMappingURL=useChain-DQq1UsGZ.d.mts.map
@@ -1,9 +1,9 @@
1
- import { t as ASTNode } from "./types-BYRTxB0a.mjs";
2
- import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-Bl-qzgrr.mjs";
3
- import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BVkTI8MX.mjs";
4
- import { n as PossibleChainSchema, t as ChainRoot } from "./chainTypes-D8SGRGba.mjs";
5
- import { u as ValueType } from "./types-Cs6CdZCO.mjs";
6
- import { n as useChain } from "./useChain-CEsXE2Bx.mjs";
1
+ import { t as ASTNode } from "./types-BB5WwerD.mjs";
2
+ import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-BMPLdT4p.mjs";
3
+ import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BtSMV5OZ.mjs";
4
+ import { n as PossibleChainSchema, t as ChainRoot } from "./chainTypes-dY6jc22J.mjs";
5
+ import { u as ValueType } from "./types-CptsgFbu.mjs";
6
+ import { n as useChain } from "./useChain-DQq1UsGZ.mjs";
7
7
 
8
8
  //#region components/SmartTextInput/useChainAtCursor.d.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { o as OpenCodeChainFunctionPanel, t as CodeChainFunctionPanelRenderProps } from "./types-Cs6CdZCO.mjs";
1
+ import { o as OpenCodeChainFunctionPanel, t as CodeChainFunctionPanelRenderProps } from "./types-CptsgFbu.mjs";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region components/SmartTextInput/useCodeChainFunctionPanel.d.ts
@@ -1,4 +1,4 @@
1
- import { p as FooterAction } from "./ComboboxBase-CtNrsPO9.mjs";
1
+ import { p as FooterAction } from "./ComboboxBase-DXhu2YSh.mjs";
2
2
  import { KeyboardEvent } from "react";
3
3
 
4
4
  //#region components/Combobox/useComboboxFooterAction.d.ts
@@ -1,5 +1,5 @@
1
- import { l as FilterRule, n as CompoundExpression, p as FilterStateV2 } from "./types-Dy3lZv9z.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-DqO8HiYb.mjs";
1
+ import { l as FilterRule, n as CompoundExpression, p as FilterStateV2 } from "./types-Rj-C3LGL.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-C2eIbP1X.mjs";
3
3
 
4
4
  //#region components/DataTable/TableControls/FiltersV2/useFilterStateV2.d.ts
5
5
  interface UseFilterStateV2Options {
@@ -90,4 +90,4 @@ interface UseFilterStateV2Result {
90
90
  declare function useFilterStateV2(options: UseFilterStateV2Options): UseFilterStateV2Result;
91
91
  //#endregion
92
92
  export { UseFilterStateV2Result as n, useFilterStateV2 as r, UseFilterStateV2Options as t };
93
- //# sourceMappingURL=useFilterStateV2-DoJ9lyJx.d.mts.map
93
+ //# sourceMappingURL=useFilterStateV2-CGGABOcq.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-DoJ9lyJx.mjs";
1
+ import { n as UseFilterStateV2Result, r as useFilterStateV2, t as UseFilterStateV2Options } from "./useFilterStateV2-CGGABOcq.mjs";
2
2
  export { UseFilterStateV2Options, UseFilterStateV2Result, useFilterStateV2 };
@@ -1,4 +1,4 @@
1
- import { t as ErrorProps } from "./ErrorProps-6dRdJ4QQ.mjs";
1
+ import { t as ErrorProps } from "./ErrorProps-C-sfKFxK.mjs";
2
2
  import * as _$react from "react";
3
3
 
4
4
  //#region components/FormControl/useFormField.d.ts
@@ -29,4 +29,4 @@ declare const useFormField: (props: Partial<FormControlContextProps>) => {
29
29
  };
30
30
  //#endregion
31
31
  export { FormControlContextProps as n, useFormField as r, FormControlContext as t };
32
- //# sourceMappingURL=useFormField-BtnAYcHV.d.mts.map
32
+ //# sourceMappingURL=useFormField-4w9TNFgD.d.mts.map
@@ -1,4 +1,4 @@
1
- import { n as useFormGroup } from "./useFormGroup-BZayb9fZ.mjs";
1
+ import { n as useFormGroup } from "./useFormGroup-CsKC93Pt.mjs";
2
2
  import { createContext, useContext } from "react";
3
3
  //#region components/FormControl/useFormField.ts
4
4
  const FormControlContext = createContext({});
@@ -23,4 +23,4 @@ const useFormField = (props) => {
23
23
  //#endregion
24
24
  export { useFormField as n, FormControlContext as t };
25
25
 
26
- //# sourceMappingURL=useFormField-BAmkdxtA.mjs.map
26
+ //# sourceMappingURL=useFormField-CbNYbDdp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormField-BAmkdxtA.mjs","names":[],"sources":["../components/FormControl/useFormField.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\nexport interface FormControlContextProps extends ErrorProps {\n inputId?: string;\n helperTextId?: string;\n errorTextId?: string;\n warningTextId?: string;\n labelId?: string;\n disabled?: boolean;\n required?: boolean;\n maxLength?: number;\n configField?: boolean;\n}\n\nexport const FormControlContext = createContext<FormControlContextProps>({});\n\nconst useFormField = (props: Partial<FormControlContextProps>) => {\n const group = useFormGroup();\n const field = useContext(FormControlContext);\n\n const inputId = props.inputId ?? field.inputId;\n\n return {\n configField: props.configField ?? group.configField,\n hasError: props.hasError ?? field.hasError,\n hasWarning: props.hasWarning ?? field.hasWarning,\n inputId,\n helperTextId: props.helperTextId ?? field.helperTextId,\n errorTextId: props.errorTextId ?? field.errorTextId,\n warningTextId: props.warningTextId ?? field.warningTextId,\n labelId: props.labelId ?? field.labelId,\n disabled: props.disabled ?? field.disabled,\n required: props.required ?? field.required,\n maxLength: props.maxLength ?? field.maxLength,\n };\n};\n\nexport default useFormField;\n"],"mappings":";;;AAiBA,MAAa,qBAAqB,cAAuC,EAAE,CAAC;AAE5E,MAAM,gBAAgB,UAA4C;CAChE,MAAM,QAAQ,cAAc;CAC5B,MAAM,QAAQ,WAAW,mBAAmB;CAE5C,MAAM,UAAU,MAAM,WAAW,MAAM;AAEvC,QAAO;EACL,aAAa,MAAM,eAAe,MAAM;EACxC,UAAU,MAAM,YAAY,MAAM;EAClC,YAAY,MAAM,cAAc,MAAM;EACtC;EACA,cAAc,MAAM,gBAAgB,MAAM;EAC1C,aAAa,MAAM,eAAe,MAAM;EACxC,eAAe,MAAM,iBAAiB,MAAM;EAC5C,SAAS,MAAM,WAAW,MAAM;EAChC,UAAU,MAAM,YAAY,MAAM;EAClC,UAAU,MAAM,YAAY,MAAM;EAClC,WAAW,MAAM,aAAa,MAAM;EACrC"}
1
+ {"version":3,"file":"useFormField-CbNYbDdp.mjs","names":[],"sources":["../components/FormControl/useFormField.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nimport useFormGroup from 'design-system/components/ConfigFormGroup/useFormGroup';\nimport type ErrorProps from 'design-system/types/ErrorProps';\n\nexport interface FormControlContextProps extends ErrorProps {\n inputId?: string;\n helperTextId?: string;\n errorTextId?: string;\n warningTextId?: string;\n labelId?: string;\n disabled?: boolean;\n required?: boolean;\n maxLength?: number;\n configField?: boolean;\n}\n\nexport const FormControlContext = createContext<FormControlContextProps>({});\n\nconst useFormField = (props: Partial<FormControlContextProps>) => {\n const group = useFormGroup();\n const field = useContext(FormControlContext);\n\n const inputId = props.inputId ?? field.inputId;\n\n return {\n configField: props.configField ?? group.configField,\n hasError: props.hasError ?? field.hasError,\n hasWarning: props.hasWarning ?? field.hasWarning,\n inputId,\n helperTextId: props.helperTextId ?? field.helperTextId,\n errorTextId: props.errorTextId ?? field.errorTextId,\n warningTextId: props.warningTextId ?? field.warningTextId,\n labelId: props.labelId ?? field.labelId,\n disabled: props.disabled ?? field.disabled,\n required: props.required ?? field.required,\n maxLength: props.maxLength ?? field.maxLength,\n };\n};\n\nexport default useFormField;\n"],"mappings":";;;AAiBA,MAAa,qBAAqB,cAAuC,EAAE,CAAC;AAE5E,MAAM,gBAAgB,UAA4C;CAChE,MAAM,QAAQ,cAAc;CAC5B,MAAM,QAAQ,WAAW,mBAAmB;CAE5C,MAAM,UAAU,MAAM,WAAW,MAAM;AAEvC,QAAO;EACL,aAAa,MAAM,eAAe,MAAM;EACxC,UAAU,MAAM,YAAY,MAAM;EAClC,YAAY,MAAM,cAAc,MAAM;EACtC;EACA,cAAc,MAAM,gBAAgB,MAAM;EAC1C,aAAa,MAAM,eAAe,MAAM;EACxC,eAAe,MAAM,iBAAiB,MAAM;EAC5C,SAAS,MAAM,WAAW,MAAM;EAChC,UAAU,MAAM,YAAY,MAAM;EAClC,UAAU,MAAM,YAAY,MAAM;EAClC,WAAW,MAAM,aAAa,MAAM;EACrC"}
@@ -1,2 +1,2 @@
1
- import { n as FormControlContextProps, r as useFormField, t as FormControlContext } from "./useFormField-BtnAYcHV.mjs";
1
+ import { n as FormControlContextProps, r as useFormField, t as FormControlContext } from "./useFormField-4w9TNFgD.mjs";
2
2
  export { FormControlContext, FormControlContextProps, useFormField as default };
@@ -11,4 +11,4 @@ const useFormGroup = (props) => {
11
11
  //#endregion
12
12
  export { useFormGroup as n, FormGroupContext as t };
13
13
 
14
- //# sourceMappingURL=useFormGroup-BZayb9fZ.mjs.map
14
+ //# sourceMappingURL=useFormGroup-CsKC93Pt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormGroup-BZayb9fZ.mjs","names":[],"sources":["../components/ConfigFormGroup/useFormGroup.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport interface FormGroupContextProps {\n configField?: boolean;\n /**\n * The z-index to use when labels are rendered as tooltips (e.g. when configField is true).\n */\n labelTooltipZIndex?: number;\n}\n\nexport const FormGroupContext = createContext<FormGroupContextProps>({});\n\nconst useFormGroup = (props?: Partial<FormGroupContextProps>) => {\n const field = useContext(FormGroupContext);\n\n return {\n configField: props?.configField ?? field.configField,\n labelTooltipZIndex: props?.labelTooltipZIndex ?? field.labelTooltipZIndex,\n };\n};\n\nexport default useFormGroup;\n"],"mappings":";;AAUA,MAAa,mBAAmB,cAAqC,EAAE,CAAC;AAExE,MAAM,gBAAgB,UAA2C;CAC/D,MAAM,QAAQ,WAAW,iBAAiB;AAE1C,QAAO;EACL,aAAa,OAAO,eAAe,MAAM;EACzC,oBAAoB,OAAO,sBAAsB,MAAM;EACxD"}
1
+ {"version":3,"file":"useFormGroup-CsKC93Pt.mjs","names":[],"sources":["../components/ConfigFormGroup/useFormGroup.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nexport interface FormGroupContextProps {\n configField?: boolean;\n /**\n * The z-index to use when labels are rendered as tooltips (e.g. when configField is true).\n */\n labelTooltipZIndex?: number;\n}\n\nexport const FormGroupContext = createContext<FormGroupContextProps>({});\n\nconst useFormGroup = (props?: Partial<FormGroupContextProps>) => {\n const field = useContext(FormGroupContext);\n\n return {\n configField: props?.configField ?? field.configField,\n labelTooltipZIndex: props?.labelTooltipZIndex ?? field.labelTooltipZIndex,\n };\n};\n\nexport default useFormGroup;\n"],"mappings":";;AAUA,MAAa,mBAAmB,cAAqC,EAAE,CAAC;AAExE,MAAM,gBAAgB,UAA2C;CAC/D,MAAM,QAAQ,WAAW,iBAAiB;AAE1C,QAAO;EACL,aAAa,OAAO,eAAe,MAAM;EACzC,oBAAoB,OAAO,sBAAsB,MAAM;EACxD"}
@@ -2,4 +2,4 @@
2
2
  declare const usePathname: () => string;
3
3
  //#endregion
4
4
  export { usePathname as t };
5
- //# sourceMappingURL=useLocationPathname-pLyLOrAi.d.mts.map
5
+ //# sourceMappingURL=useLocationPathname-CZwH8h5n.d.mts.map
@@ -1,2 +1,2 @@
1
- import { t as usePathname } from "./useLocationPathname-pLyLOrAi.mjs";
1
+ import { t as usePathname } from "./useLocationPathname-CZwH8h5n.mjs";
2
2
  export { usePathname };
@@ -66,4 +66,4 @@ declare const useTableBoxDragAndDrop: <T extends object>({
66
66
  }: UseTableBoxDragAndDropArgs<T>) => UseTableBoxDragAndDropResult;
67
67
  //#endregion
68
68
  export { ReorderConfig as n, useTableBoxDragAndDrop as r, DragDirection as t };
69
- //# sourceMappingURL=useTableBoxDragAndDrop-wjc_LCpC.d.mts.map
69
+ //# sourceMappingURL=useTableBoxDragAndDrop-Bw93rNFH.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as ReorderConfig, r as useTableBoxDragAndDrop, t as DragDirection } from "./useTableBoxDragAndDrop-wjc_LCpC.mjs";
1
+ import { n as ReorderConfig, r as useTableBoxDragAndDrop, t as DragDirection } from "./useTableBoxDragAndDrop-Bw93rNFH.mjs";
2
2
  export { DragDirection, ReorderConfig, useTableBoxDragAndDrop };
@@ -18,4 +18,4 @@ function useToggle(initialValue = false) {
18
18
  //#endregion
19
19
  export { useToggle as t };
20
20
 
21
- //# sourceMappingURL=useToggle-DUHQjohK.mjs.map
21
+ //# sourceMappingURL=useToggle-DRzCDqrc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useToggle-DUHQjohK.mjs","names":[],"sources":["../lib/useToggle.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n\ninterface UseToggleCallbacks {\n set: (value: boolean) => void;\n toggle: () => void;\n enable: () => void;\n disable: () => void;\n}\n\n/**\n * useToggle\n *\n * Boolean state hook that provides callbacks for enabling, disabling, flipping\n * and setting state.\n */\nexport default function useToggle(initialValue = false): [boolean, UseToggleCallbacks] {\n const [value, setValue] = useState<boolean>(!!initialValue);\n const set = useCallback((newValue: boolean) => setValue(newValue), []);\n const toggle = useCallback(() => setValue(!value), [value]);\n const enable = useCallback(() => setValue(true), []);\n const disable = useCallback(() => setValue(false), []);\n return [value, { set, toggle, enable, disable }];\n}\n"],"mappings":";;;;;;;;AAeA,SAAwB,UAAU,eAAe,OAAsC;CACrF,MAAM,CAAC,OAAO,YAAY,SAAkB,CAAC,CAAC,aAAa;AAK3D,QAAO,CAAC,OAAO;EAAE,KAJL,aAAa,aAAsB,SAAS,SAAS,EAAE,EAAE,CAIjD;EAAE,QAHP,kBAAkB,SAAS,CAAC,MAAM,EAAE,CAAC,MAAM,CAG9B;EAAE,QAFf,kBAAkB,SAAS,KAAK,EAAE,EAAE,CAEf;EAAE,SADtB,kBAAkB,SAAS,MAAM,EAAE,EAAE,CACR;EAAE,CAAC"}
1
+ {"version":3,"file":"useToggle-DRzCDqrc.mjs","names":[],"sources":["../lib/useToggle.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\n\ninterface UseToggleCallbacks {\n set: (value: boolean) => void;\n toggle: () => void;\n enable: () => void;\n disable: () => void;\n}\n\n/**\n * useToggle\n *\n * Boolean state hook that provides callbacks for enabling, disabling, flipping\n * and setting state.\n */\nexport default function useToggle(initialValue = false): [boolean, UseToggleCallbacks] {\n const [value, setValue] = useState<boolean>(!!initialValue);\n const set = useCallback((newValue: boolean) => setValue(newValue), []);\n const toggle = useCallback(() => setValue(!value), [value]);\n const enable = useCallback(() => setValue(true), []);\n const disable = useCallback(() => setValue(false), []);\n return [value, { set, toggle, enable, disable }];\n}\n"],"mappings":";;;;;;;;AAeA,SAAwB,UAAU,eAAe,OAAsC;CACrF,MAAM,CAAC,OAAO,YAAY,SAAkB,CAAC,CAAC,aAAa;AAK3D,QAAO,CAAC,OAAO;EAAE,KAJL,aAAa,aAAsB,SAAS,SAAS,EAAE,EAAE,CAIjD;EAAE,QAHP,kBAAkB,SAAS,CAAC,MAAM,EAAE,CAAC,MAAM,CAG9B;EAAE,QAFf,kBAAkB,SAAS,KAAK,EAAE,EAAE,CAEf;EAAE,SADtB,kBAAkB,SAAS,MAAM,EAAE,EAAE,CACR;EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { i as ComboboxOption } from "./ComboboxBase-CtNrsPO9.mjs";
1
+ import { i as ComboboxOption } from "./ComboboxBase-DXhu2YSh.mjs";
2
2
  import { MutableRefObject, RefObject } from "react";
3
3
 
4
4
  //#region components/Combobox/useTruncation.d.ts
@@ -6,4 +6,4 @@
6
6
  type RequireOneOf<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & { [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>> }[Keys];
7
7
  //#endregion
8
8
  export { RequireOneOf as t };
9
- //# sourceMappingURL=utilities-DL18UdPs.d.mts.map
9
+ //# sourceMappingURL=utilities-B8PzMOza.d.mts.map
@@ -1,2 +1,2 @@
1
- import { t as RequireOneOf } from "./utilities-DL18UdPs.mjs";
1
+ import { t as RequireOneOf } from "./utilities-B8PzMOza.mjs";
2
2
  export { RequireOneOf };
@@ -1,4 +1,4 @@
1
- import { n as Stack } from "../Stack-CEPzs4Pb.mjs";
1
+ import { n as Stack } from "../Stack-BkC7FCdF.mjs";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  //#region utils/storybook.tsx
4
4
  const withStack = (Story) => {
@@ -1,4 +1,4 @@
1
- import { n as RouterAdapter } from "../types-D1DijcJv.mjs";
1
+ import { n as RouterAdapter } from "../types-ClbV4wNp.mjs";
2
2
  import { ReactElement } from "react";
3
3
  import * as _$_testing_library_react0 from "@testing-library/react";
4
4
  import { RenderOptions, screen } from "@testing-library/react";
package/dist/utils.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { u as FilterRuleValue } from "./types-Dy3lZv9z.mjs";
1
+ import { u as FilterRuleValue } from "./types-Rj-C3LGL.mjs";
2
2
 
3
3
  //#region components/DataTable/TableControls/FiltersV2/value-controls/utils.d.ts
4
4
  /**
package/dist/utils4.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { n as ASTChain } from "./types-M-rsm1Km.mjs";
2
- import { t as ASTNode } from "./types-BYRTxB0a.mjs";
3
- import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BVkTI8MX.mjs";
4
- import { t as ChainRoot } from "./chainTypes-D8SGRGba.mjs";
5
- import { a as Mode, r as FunctionAtCursor, u as ValueType } from "./types-Cs6CdZCO.mjs";
1
+ import { n as ASTChain } from "./types-l-arEBLb.mjs";
2
+ import { t as ASTNode } from "./types-BB5WwerD.mjs";
3
+ import { n as Chain, s as MethodChainNode } from "./methodChainTypes-BtSMV5OZ.mjs";
4
+ import { t as ChainRoot } from "./chainTypes-dY6jc22J.mjs";
5
+ import { a as Mode, r as FunctionAtCursor, u as ValueType } from "./types-CptsgFbu.mjs";
6
6
  import { RefObject } from "react";
7
7
 
8
8
  //#region components/SmartTextInput/utils.d.ts
@@ -1,5 +1,5 @@
1
- import { l as FilterRule, p as FilterStateV2 } from "./types-Dy3lZv9z.mjs";
2
- import { t as FieldRegistry } from "./FieldRegistry-DqO8HiYb.mjs";
1
+ import { l as FilterRule, p as FilterStateV2 } from "./types-Rj-C3LGL.mjs";
2
+ import { t as FieldRegistry } from "./FieldRegistry-C2eIbP1X.mjs";
3
3
 
4
4
  //#region components/DataTable/TableControls/FiltersV2/validation.d.ts
5
5
  /**
@@ -48,4 +48,4 @@ declare function pruneToRegistry(state: FilterStateV2, registry: FieldRegistry |
48
48
  declare function hasCompleteValue(rule: FilterRule, registry: FieldRegistry): boolean;
49
49
  //#endregion
50
50
  export { isFilterStateV2 as n, pruneToRegistry as r, hasCompleteValue as t };
51
- //# sourceMappingURL=validation-PeVTwtd-.d.mts.map
51
+ //# sourceMappingURL=validation-DP8f6tgh.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-PeVTwtd-.mjs";
1
+ import { n as isFilterStateV2, r as pruneToRegistry, t as hasCompleteValue } from "./validation-DP8f6tgh.mjs";
2
2
  export { hasCompleteValue, isFilterStateV2, pruneToRegistry };
@@ -1,7 +1,7 @@
1
- import { t as ASTNode } from "./types-BYRTxB0a.mjs";
2
- import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-Bl-qzgrr.mjs";
3
- import { t as ChainRoot } from "./chainTypes-D8SGRGba.mjs";
4
- import { u as ValueType } from "./types-Cs6CdZCO.mjs";
1
+ import { t as ASTNode } from "./types-BB5WwerD.mjs";
2
+ import { dt as ObjectSchemaMap, n as JsonSchema, st as FunctionJsonSchema } from "./jsonSchema-BMPLdT4p.mjs";
3
+ import { t as ChainRoot } from "./chainTypes-dY6jc22J.mjs";
4
+ import { u as ValueType } from "./types-CptsgFbu.mjs";
5
5
  import { ReactNode } from "react";
6
6
 
7
7
  //#region components/SmartTextInput/validation.d.ts
@@ -1,4 +1,4 @@
1
- import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, l as FilterRule, u as FilterRuleValue } from "./types-Dy3lZv9z.mjs";
1
+ import { a as FilterField, c as FilterOperator, d as FilterRuleValueChange, l as FilterRule, u as FilterRuleValue } from "./types-Rj-C3LGL.mjs";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region components/DataTable/TableControls/FiltersV2/FilterBar/value-control-resolver.d.ts
@@ -46,4 +46,4 @@ type ValueControlResolver = (opts: ResolveValueControlOptions) => ReactNode | un
46
46
  declare function resolveValueControl(opts: ResolveValueControlOptions, hostResolver?: ValueControlResolver): ReactNode;
47
47
  //#endregion
48
48
  export { ValueControlResolver as n, resolveValueControl as r, ResolveValueControlOptions as t };
49
- //# sourceMappingURL=value-control-resolver-Cx_wXQFv.d.mts.map
49
+ //# sourceMappingURL=value-control-resolver-CwjOaVAn.d.mts.map
@@ -1,2 +1,2 @@
1
- import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-Cx_wXQFv.mjs";
1
+ import { n as ValueControlResolver, r as resolveValueControl, t as ResolveValueControlOptions } from "./value-control-resolver-CwjOaVAn.mjs";
2
2
  export { ResolveValueControlOptions, ValueControlResolver, resolveValueControl };
@@ -1,4 +1,4 @@
1
- import { t as MaybeSemanticTheme } from "../semanticColor-Bg0H3RUL.mjs";
1
+ import { t as MaybeSemanticTheme } from "../semanticColor-BCPOKF9L.mjs";
2
2
 
3
3
  //#region variables/effect.d.ts
4
4
  /**
@@ -1,2 +1,2 @@
1
- import { i as semanticLight, n as SemanticTokens, r as semanticDark, t as CssPercentage } from "../semantic-D1661f_6.mjs";
1
+ import { i as semanticLight, n as SemanticTokens, r as semanticDark, t as CssPercentage } from "../semantic-CfiNA4Yy.mjs";
2
2
  export { CssPercentage, SemanticTokens, semanticDark, semanticLight };
package/llms.txt CHANGED
@@ -13,7 +13,7 @@ For exact prop types, prefer the published type declarations (`dist/**/*.d.mts`,
13
13
 
14
14
  ## Skills
15
15
 
16
- - [ui-authoring](skills/ui-authoring/SKILL.md): design tokens, PDS implementation guidelines, table guidelines (DataTable vs TableBox vs TableLayout), routing/link adapters (react-router, TanStack, custom), loading states, testing, Storybook
16
+ - [ui-authoring](skills/ui-authoring/SKILL.md): design tokens, PDS implementation guidelines, table guidelines (DataTable vs TableBox vs TableLayout), routing/link adapters (react-router, TanStack, custom), localization (PDSProvider strings/locale), loading states, testing, Storybook
17
17
  - [Tokens](skills/ui-authoring/TOKENS.md): Color / Spacing / Typography selection and catalog, radius, charts
18
18
  - [Patterns](skills/ui-authoring/PATTERNS.md): forms, layout, indicators, feedback, empty states, charts, panels
19
19
  - [Components](skills/ui-authoring/COMPONENTS.md): which PDS component to use (and its import path); APIs live in that component's `.mdx` when one exists, otherwise in `dist/components/<Name>/index.d.mts`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@persona/design-system",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "React components for Persona UI",
5
5
  "keywords": [
6
6
  "tanstack-intent"
@@ -101,6 +101,7 @@
101
101
  "./lib/errorReporter": "./dist/lib/errorReporter.mjs",
102
102
  "./lib/GlobalStyles": "./dist/lib/GlobalStyles.mjs",
103
103
  "./lib/HeadlessAriaButton": "./dist/lib/HeadlessAriaButton.mjs",
104
+ "./lib/i18n": "./dist/lib/i18n/index.mjs",
104
105
  "./lib/jsonSchema": "./dist/lib/jsonSchema.mjs",
105
106
  "./lib/jsonSchemaType": "./dist/lib/jsonSchemaType.mjs",
106
107
  "./lib/letPointerDownReachDocument": "./dist/lib/letPointerDownReachDocument.mjs",
@@ -355,6 +356,7 @@
355
356
  "./lib/errorReporter": "./dist/lib/errorReporter.mjs",
356
357
  "./lib/GlobalStyles": "./dist/lib/GlobalStyles.mjs",
357
358
  "./lib/HeadlessAriaButton": "./dist/lib/HeadlessAriaButton.mjs",
359
+ "./lib/i18n": "./dist/lib/i18n/index.mjs",
358
360
  "./lib/jsonSchema": "./dist/lib/jsonSchema.mjs",
359
361
  "./lib/jsonSchemaType": "./dist/lib/jsonSchemaType.mjs",
360
362
  "./lib/letPointerDownReachDocument": "./dist/lib/letPointerDownReachDocument.mjs",
@@ -53,6 +53,7 @@ exists. If there is no `.mdx`, use the published type declarations
53
53
  | `SegmentedControl` | Picking one option from a compact set of mutually exclusive choices | `@persona/design-system/components/SegmentedControl` |
54
54
  | `Select` | Dropdown — picking one value from a short, known list with no search. Use `Combobox` when the list needs search | `@persona/design-system/components/Select` |
55
55
  | `Slider` | Picking a numeric value or range along a scale | `@persona/design-system/components/Slider` |
56
+ | `SmartTextInput` | Authoring a value that mixes plain text with structured data references — `{{account.id}}` interpolation or a single `account.id` method chain, with autocomplete, syntax highlighting and schema validation. Use `Input` for plain text | `@persona/design-system/components/SmartTextInput` |
56
57
  | `Spacer` | Prefer `Stack` — leftover gap helper | `@persona/design-system/components/Spacer` |
57
58
  | `Spinner` | Showing that something is loading | `@persona/design-system/components/Spinner` |
58
59
  | `Stack` | Flex column — laying out children vertically with token spacing | `@persona/design-system/components/Stack` |
@@ -125,6 +125,29 @@ Plug in your router once near the root:
125
125
  both adapters only need their router's context above them. The TanStack adapter requires
126
126
  React 18+ (TanStack Router's peer range), while PDS itself still supports React 17.
127
127
 
128
+ ## Localization
129
+
130
+ Built-in copy in the table chrome (DataTable empty states and checkbox labels, `Pagination`,
131
+ the column configuration gear, `ControlBar` saved-view tabs, Filters V2 pills, picker, operators,
132
+ rules builder and value controls) is English by default and translatable through `PDSProvider`:
133
+
134
+ ```tsx
135
+ <PDSProvider strings={translatedStrings} locale='fr-CA'>...</PDSProvider>
136
+ ```
137
+
138
+ - `strings` is a partial `CommonStrings` table (`@persona/design-system/lib/i18n`); omitted keys
139
+ keep their English defaults, and a value of the wrong kind (string vs. formatter) is ignored.
140
+ Persona dashboards pass `useCommonStrings()` from `@persona-id/persona-dashboard-app` straight
141
+ through.
142
+ - `locale` makes table `date` / `datetime` cells and Filters V2 date values use the locale's
143
+ medium `Intl` format ("6 oct. 2026, 16 h 39" for fr-CA). Omitted or `en-US` keeps the
144
+ historical "Oct 6, 2026 4:39 PM". `format: { type: 'datetime', config: { showTimeZone: true } }`
145
+ appends the localized zone name ("EDT" / "HAE").
146
+ - In new components, read copy with `usePDSStrings()` and the locale with `usePDSLocale()`
147
+ rather than hardcoding English; add the key and its English default to `CommonStrings`.
148
+ - `formatDate`, `formatDateTime` and `formatTimeZoneName` from the same module format Luxon
149
+ values the same way outside the table.
150
+
128
151
  ## Testing
129
152
 
130
153
  - Prefer `getByRole`, `getByLabelText`, `getByText` over `getByTestId`.
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatePicker-LPIJrc0n.mjs","names":["useLocale","OpenButton","Popover","Card","RangeCalendarPresets","Popover"],"sources":["../components/DatePicker/Calendar/CalendarBase.tsx","../components/DatePicker/Calendar/CalendarCell.tsx","../components/DatePicker/Calendar/CalendarGrid.tsx","../components/DatePicker/common.ts","../components/DatePicker/Calendar/Calendar.tsx","../components/DatePicker/DateField.tsx","../components/DatePicker/DatePicker.tsx","../components/DatePicker/Calendar/RangeCalendarPresets.tsx","../components/DatePicker/time-range.ts","../components/DatePicker/Calendar/RangeCalendar.tsx","../components/DatePicker/DateRangePicker.tsx"],"sourcesContent":["import { useRef } from 'react';\nimport { useButton } from 'react-aria';\nimport styled from 'styled-components';\n\nimport { Spacing, Typography } from '@persona/design-tokens';\nimport { IconButton } from 'design-system/components/Button';\nimport type { IconButtonProps } from 'design-system/components/Button/IconButton';\n\nexport const CalendarContainer = styled.div`\n display: inline-block;\n`;\n\nexport const CalendarHeader = styled.div`\n display: flex;\n align-items: center;\n margin-bottom: ${Spacing[2]};\n`;\n\nexport const CalendarHeading = styled.div`\n ${Typography.TextLargeBold};\n flex: 1;\n text-align: center;\n`;\n\nconst StyledCalendarButton = styled(IconButton)`\n width: 32px;\n height: 32px;\n`;\n\nexport const CalendarButton = (props: IconButtonProps) => {\n const ref = useRef();\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n const { buttonProps } = useButton(props, ref);\n\n return (\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n <StyledCalendarButton {...buttonProps} className={props.className} ref={ref}>\n {props.children}\n </StyledCalendarButton>\n );\n};\n","import { type CalendarDate, type DateValue, isSameDay, isSameMonth } from '@internationalized/date';\nimport { useRef } from 'react';\nimport { useCalendarCell } from 'react-aria';\nimport type { CalendarState, RangeCalendarState } from 'react-stately';\nimport styled, { css } from 'styled-components';\n\nimport { BorderRadius, Color, Typography } from '@persona/design-tokens';\nimport { withAlpha } from 'design-system/lib/color';\nimport { semanticColor, semanticTokens } from 'design-system/lib/semanticColor';\n\nconst CalendarCellContainer = styled.td`\n text-align: center;\n width: 38px;\n height: 38px;\n padding: 0px;\n`;\n\ninterface CalendarCellButtonProps {\n isSelected?: boolean;\n isSelectionStart?: boolean;\n isSelectionEnd?: boolean;\n isInvalid?: boolean;\n isDisabled?: boolean;\n}\n\nconst CalendarCellButton = styled.button<CalendarCellButtonProps>`\n ${Typography.TextMedium};\n border-style: none;\n padding: 0;\n background: none;\n width: 100%;\n height: 100%;\n cursor: pointer;\n position: relative;\n color: ${({ theme }) => semanticColor(theme, 'FgPrimary', theme.color.text.primary)};\n\n ${({ isSelected, theme }) => {\n if (!isSelected) {\n return null;\n }\n const tokens = semanticTokens(theme);\n return css`\n background: ${tokens ? withAlpha(tokens.SurfaceAccent, tokens.Opacity25) : Color.CorePurple100};\n ${tokens ? `color: ${tokens.FgPrimary};` : ''}\n `;\n }}\n\n ${({ isSelectionStart, theme }) =>\n isSelectionStart &&\n css`\n background: ${semanticColor(theme, 'ActionPrimary', Color.BackgroundButtonPrimary)};\n color: ${semanticColor(theme, 'FgInverse', Color.TextInverse)};\n border-top-left-radius: ${BorderRadius.Sm};\n border-bottom-left-radius: ${BorderRadius.Sm};\n `}\n\n ${({ isSelectionEnd, theme }) =>\n isSelectionEnd &&\n css`\n background: ${semanticColor(theme, 'ActionPrimary', Color.BackgroundButtonPrimary)};\n color: ${semanticColor(theme, 'FgInverse', Color.TextInverse)};\n border-top-right-radius: ${BorderRadius.Sm};\n border-bottom-right-radius: ${BorderRadius.Sm};\n `}\n\n ${({ isDisabled, theme }) =>\n isDisabled &&\n css`\n color: ${semanticColor(theme, 'FgDisabled', Color.CoreSlate300)};\n `}\n\n ${({ isInvalid, theme }) =>\n isInvalid &&\n css`\n background: ${semanticColor(theme, 'FeedbackDanger4', Color.BackgroundButtonDanger)};\n color: ${semanticColor(theme, 'FgInverseStatic', Color.TextInverse)};\n `}\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => semanticColor(theme, 'BorderFocus', Color.BorderFocus)};\n outline-offset: -2px;\n box-shadow: ${({ theme }) => semanticColor(theme, 'SurfacePrimary', Color.PrimaryWhite)} 0px 0px 0px 3px inset;\n z-index: 1;\n }\n`;\n\ninterface CalendarCellProps {\n state: CalendarState | RangeCalendarState;\n date: CalendarDate;\n currentMonth: DateValue;\n}\n\nconst CalendarCell = ({ state, date, currentMonth }: CalendarCellProps) => {\n const ref = useRef();\n const { cellProps, buttonProps, isSelected, isInvalid, isDisabled, formattedDate } =\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n useCalendarCell({ date }, state, ref);\n\n const highlightedRange = 'highlightedRange' in state && state.highlightedRange;\n\n const isOutsideMonth = !isSameMonth(currentMonth, date);\n const isSelectionStart = highlightedRange ? isSameDay(date, highlightedRange.start) : isSelected;\n const isSelectionEnd = highlightedRange ? isSameDay(date, highlightedRange.end) : isSelected;\n\n return (\n <CalendarCellContainer {...cellProps}>\n <CalendarCellButton\n {...buttonProps}\n hidden={isOutsideMonth}\n isSelected={isSelected}\n isSelectionStart={isSelectionStart}\n isSelectionEnd={isSelectionEnd}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n ref={ref}\n >\n {formattedDate}\n </CalendarCellButton>\n </CalendarCellContainer>\n );\n};\n\nexport default CalendarCell;\n","import { type DateDuration, endOfMonth, getWeeksInMonth } from '@internationalized/date';\nimport { useCalendarGrid, useLocale } from 'react-aria';\nimport type { CalendarState, RangeCalendarState } from 'react-stately';\nimport styled from 'styled-components';\n\nimport { Color, Typography } from '@persona/design-tokens';\nimport { semanticColor } from 'design-system/lib/semanticColor';\n\nimport CalendarCell from './CalendarCell';\n\nconst CalendarGridContainer = styled.table`\n width: 266px;\n border-spacing: 0px;\n border-collapse: collapse;\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => semanticColor(theme, 'BorderFocus', Color.BorderFocus)};\n outline-offset: 1px;\n }\n`;\n\nconst CalendarGridDayHeader = styled.th`\n ${Typography.TextMedium};\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', Color.TextSecondary)};\n`;\n\ninterface CalendarGridProps {\n state: CalendarState | RangeCalendarState;\n offset?: DateDuration;\n skipFromTabOrder?: boolean;\n}\n\nconst CalendarGrid = ({ state, offset = {}, skipFromTabOrder = false }: CalendarGridProps) => {\n const { locale } = useLocale();\n const startDate = state.visibleRange.start.add(offset);\n const endDate = endOfMonth(startDate);\n\n const { gridProps, headerProps, weekDays } = useCalendarGrid(\n {\n startDate,\n endDate,\n },\n state,\n );\n\n const weeksInMonth = getWeeksInMonth(startDate, locale);\n\n // Remove second calendar grid from tab order - use arrow keys to navigate between months\n const modifiedGridProps = skipFromTabOrder ? { ...gridProps, tabIndex: -1 } : gridProps;\n\n return (\n <CalendarGridContainer {...modifiedGridProps}>\n <thead {...headerProps}>\n <tr>\n {weekDays.map((day, index) => (\n <CalendarGridDayHeader key={index}>{day}</CalendarGridDayHeader>\n ))}\n </tr>\n </thead>\n <tbody>\n {[...new Array(weeksInMonth).keys()].map((weekIndex) => (\n <tr key={weekIndex}>\n {state\n .getDatesInWeek(weekIndex, startDate)\n .map((date, i) =>\n date ? (\n <CalendarCell key={i} state={state} date={date} currentMonth={startDate} />\n ) : (\n <td key={i} />\n ),\n )}\n </tr>\n ))}\n </tbody>\n </CalendarGridContainer>\n );\n};\n\nexport default CalendarGrid;\n","import { GregorianCalendar } from '@internationalized/date';\n\nexport const createCalendar = () => new GregorianCalendar();\n","import type { Ref } from 'react';\nimport { type AriaCalendarProps, type DateValue, useCalendar, useLocale } from 'react-aria';\nimport { useCalendarState } from 'react-stately';\n\nimport { ArrowLeftIcon, ArrowRightIcon } from '@persona/icons';\nimport {\n CalendarButton,\n CalendarContainer,\n CalendarHeader,\n CalendarHeading,\n} from 'design-system/components/DatePicker/Calendar/CalendarBase';\nimport CalendarGrid from 'design-system/components/DatePicker/Calendar/CalendarGrid';\nimport { createCalendar } from 'design-system/components/DatePicker/common';\n\ninterface CalendarProps extends AriaCalendarProps<DateValue> {\n calendarRef?: Ref<HTMLDivElement>;\n}\n\nconst Calendar = (props: CalendarProps) => {\n const { locale } = useLocale();\n const state = useCalendarState({ ...props, locale, createCalendar });\n const { calendarProps, prevButtonProps, nextButtonProps, title } = useCalendar(props, state);\n\n return (\n <CalendarContainer {...calendarProps} ref={props.calendarRef}>\n <CalendarHeader>\n <CalendarButton {...prevButtonProps}>\n <ArrowLeftIcon />\n </CalendarButton>\n <CalendarHeading>{title}</CalendarHeading>\n <CalendarButton {...nextButtonProps}>\n <ArrowRightIcon />\n </CalendarButton>\n </CalendarHeader>\n <CalendarGrid state={state} />\n </CalendarContainer>\n );\n};\n\nexport default Calendar;\n","import type { DateValue } from '@internationalized/date';\nimport { type AriaDateFieldProps, useDateField, useDateSegment } from '@react-aria/datepicker';\nimport { useLocale } from '@react-aria/i18n';\nimport { mergeRefs } from '@react-aria/utils';\nimport {\n type DateFieldState,\n type DateSegment as DateSegmentObj,\n type SegmentType,\n useDateFieldState,\n} from '@react-stately/datepicker';\nimport { forwardRef, useRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Color, Spacing } from '@persona/design-tokens';\nimport { createCalendar } from 'design-system/components/DatePicker/common';\nimport { withAlpha } from 'design-system/lib/color';\nimport { isFocused, isFocusedVisible, isNotDisabled } from 'design-system/lib/pseudoClass';\nimport { semanticColor, semanticOnly, semanticTokens } from 'design-system/lib/semanticColor';\nimport { focusWithinOutline } from 'design-system/mixins/focus';\nimport inputMixin, { type InputMixinProps, type InputSizes } from 'design-system/mixins/input';\nimport type PseudoClassProps from 'design-system/types/PseudoClassProps';\n\ntype DateSegmentContainerProps = { $isComma?: boolean; $isTimezone?: boolean } & PseudoClassProps;\nconst DateSegmentContainer = styled.div<DateSegmentContainerProps>`\n font-variant-numeric: tabular-nums;\n box-sizing: content-box;\n text-align: end;\n\n ${isFocused} {\n outline: 2px solid ${({ theme }) => semanticColor(theme, 'BorderFocus', Color.BorderFocus)};\n outline-offset: 1px;\n background-color: ${({ theme }) => {\n const tokens = semanticTokens(theme);\n return tokens ? withAlpha(tokens.SurfaceAccent, tokens.Opacity25) : Color.CorePurple200;\n }};\n ${semanticOnly((tokens) => `color: ${tokens.FgAccent};`)}\n }\n\n ${({ $isComma, $isTimezone }) =>\n ($isComma || $isTimezone) &&\n css`\n margin-left: 0.25ch;\n margin-right: 0.25ch;\n `}\n\n ${({ $isTimezone }) =>\n $isTimezone &&\n css`\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', Color.TextSecondary)};\n pointer-events: none;\n\n &:focus {\n outline: none;\n background-color: transparent;\n }\n `}\n`;\n\ntype DateSegmentPlaceholderProps = { isPlaceholder?: boolean; type: SegmentType };\nconst DateSegmentPlaceholder = styled.span<DateSegmentPlaceholderProps>`\n display: block;\n width: 100%;\n pointer-events: none;\n\n &:focus {\n outline: none;\n }\n\n ${({ isPlaceholder }) =>\n isPlaceholder\n ? css`\n height: 100%;\n color: ${({ theme }) => semanticColor(theme, 'FgSecondary', theme.color.text.tertiary)};\n `\n : css`\n visibility: hidden;\n height: 0;\n `}\n ${({ type }) =>\n type === 'literal' &&\n css`\n padding-left: ${Spacing[1]};\n padding-right: ${Spacing[1]};\n `}\n ${({ type, isPlaceholder }) =>\n type === 'month' &&\n isPlaceholder &&\n css`\n width: 3ch;\n `}\n`;\n\ninterface DateSegmentProps {\n segment: DateSegmentObj;\n state: DateFieldState;\n}\n\nfunction DateSegment({ segment, state }: DateSegmentProps) {\n const ref = useRef();\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n const { segmentProps } = useDateSegment(segment, state, ref);\n\n let minWidth: string;\n\n switch (segment.type) {\n case 'dayPeriod': {\n minWidth = '2.75ch';\n break;\n }\n default: {\n minWidth = `${segment.maxValue != null && String(segment.maxValue).length + 0.25}ch`;\n break;\n }\n }\n\n const isComma = segment.type === 'literal' && segment.text === ', ';\n const isTimezone = segment.type === 'timeZoneName';\n\n return (\n <DateSegmentContainer\n {...segmentProps}\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n ref={ref}\n style={{\n ...segmentProps.style,\n minWidth,\n }}\n $isComma={isComma}\n $isTimezone={isTimezone}\n {...(isTimezone && { tabIndex: -1, role: 'presentation' })}\n >\n {/* Always reserve space for the placeholder, to prevent layout shift when editing. */}\n {segment.placeholder && (\n <DateSegmentPlaceholder\n aria-hidden='true'\n isPlaceholder={segment.isPlaceholder}\n type={segment.type}\n >\n {segment.placeholder}\n </DateSegmentPlaceholder>\n )}\n {segment.isPlaceholder ? '' : segment.text}\n </DateSegmentContainer>\n );\n}\n\nconst InputBox = styled.div<InputMixinProps & { $inputPosition: 'start' | 'end' }>`\n ${inputMixin};\n display: flex;\n padding-left: ${Spacing[2]};\n padding-right: ${Spacing[2]};\n line-height: 1;\n position: relative;\n\n &${isFocusedVisible}${isNotDisabled} {\n position: relative;\n z-index: 1;\n }\n\n ${focusWithinOutline}\n\n ${({ $inputPosition }) => {\n switch ($inputPosition) {\n case 'start': {\n return css`\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n `;\n }\n case 'end': {\n return css`\n margin-left: -1px;\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n `;\n }\n }\n }}\n`;\n\ninterface DateFieldProps extends AriaDateFieldProps<DateValue> {\n inputPosition?: 'start' | 'end';\n focused?: boolean;\n readOnly?: boolean;\n value?: DateValue;\n disabled?: boolean;\n size?: InputSizes;\n style?: React.CSSProperties;\n dateFieldProps?: {\n style?: React.CSSProperties;\n };\n hasError?: boolean;\n}\n\nexport const DateField = forwardRef<HTMLDivElement, DateFieldProps>(function DateField(\n props: DateFieldProps,\n forwardedRef,\n) {\n const { locale } = useLocale();\n const state = useDateFieldState({\n ...props,\n locale,\n createCalendar,\n });\n\n const ref = useRef<HTMLDivElement>();\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n const { fieldProps } = useDateField(props, state, ref);\n\n return (\n <InputBox\n {...fieldProps}\n {...(props.dateFieldProps || {})}\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n ref={mergeRefs<HTMLDivElement>(ref, forwardedRef)}\n focused={props.focused}\n disabled={props.disabled}\n aria-label={props['aria-label']}\n $size={props.size ?? 'md'}\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n $inputPosition={props.inputPosition}\n hasError={props.hasError}\n >\n {state.segments.map((segment, i) => (\n <DateSegment key={i} segment={segment} state={state} />\n ))}\n </InputBox>\n );\n});\n\nexport default DateField;\n","import type { DateValue } from '@internationalized/date';\nimport type { DatePickerProps as DatePickerBase } from '@react-types/datepicker';\nimport { type RefObject, useCallback, useRef } from 'react';\nimport { mergeProps, useButton, useDatePicker, useFocusWithin, VisuallyHidden } from 'react-aria';\nimport { useDatePickerState } from 'react-stately';\n\nimport Calendar from 'design-system/components/DatePicker/Calendar/Calendar';\nimport DateField from 'design-system/components/DatePicker/DateField';\nimport Popover from 'design-system/components/Popover';\nimport { Z_INDICES } from 'design-system/lib/zindex';\nimport type { InputSizes } from 'design-system/mixins/input';\n\nexport interface DatePickerProps extends DatePickerBase<DateValue> {\n id?: string;\n dateFieldProps?: {\n style?: React.CSSProperties;\n };\n disabled?: boolean;\n size?: InputSizes;\n useModalZIndex?: boolean;\n}\n\nconst OpenButton = ({ calendarRef }: { calendarRef: RefObject<HTMLElement> }) => {\n const openCalBtnRef = useRef<HTMLButtonElement>(null);\n const { buttonProps } = useButton(\n {\n onPress: () => {\n if (calendarRef.current) {\n (\n calendarRef.current.querySelector('button[aria-label=\"Previous\"]') as HTMLButtonElement\n ).focus();\n }\n },\n },\n openCalBtnRef,\n );\n\n return <button {...buttonProps} ref={openCalBtnRef} aria-label='Open calendar' />;\n};\n\nexport const DatePicker = (props: DatePickerProps) => {\n const state = useDatePickerState(props);\n const ref = useRef<HTMLDivElement>(null);\n const fieldRef = useRef<HTMLDivElement>(null);\n const { groupProps, fieldProps, calendarProps } = useDatePicker(props, state, ref);\n const calendarRef = useRef<HTMLDivElement>(null);\n // A ref, not state: the close sequence focuses the field before a state update would commit.\n const isClosingRef = useRef(false);\n\n const { focusWithinProps } = useFocusWithin({\n onFocusWithin: () => {\n if (!state.isOpen && !isClosingRef.current) {\n state.setOpen(true);\n }\n },\n onBlurWithin: (e) => {\n // Close calendar if next target is not within the calendar\n if (e.relatedTarget && !calendarRef?.current?.contains(e.relatedTarget) && state.isOpen) {\n state.setOpen(false);\n }\n },\n });\n\n const handleOutsideClick = (e: Event) => {\n const target = e.target as Node;\n // Don't close if clicking on the date input itself\n if (ref.current?.contains(target)) {\n return;\n }\n if (state.isOpen) {\n state.setOpen(false);\n }\n };\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === 'Enter' && !state.isOpen) {\n event.preventDefault();\n state.setOpen(true);\n }\n },\n [state],\n );\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column' }}>\n <Popover\n open={state.isOpen}\n modal={false}\n contentProps={{\n style: { zIndex: props.useModalZIndex ? Z_INDICES.modalDropdown : Z_INDICES.dropdown },\n align: 'start',\n 'aria-modal': true,\n onInteractOutside: handleOutsideClick,\n onEscapeKeyDown: () => {\n state.setOpen(false);\n },\n onCloseAutoFocus: (e: Event) => {\n // Prevent Radix's default focus restoration\n e.preventDefault();\n isClosingRef.current = true;\n\n // Manually restore focus to the date field\n if (fieldRef.current) {\n const firstEditableSegment = fieldRef.current.querySelector('[tabindex=\"0\"]');\n if (firstEditableSegment instanceof HTMLElement) {\n firstEditableSegment.focus();\n }\n }\n\n // Reset flag after focus is done\n requestAnimationFrame(() => {\n isClosingRef.current = false;\n });\n },\n noPadding: true,\n }}\n >\n <Popover.Trigger asChild>\n <div\n {...mergeProps(groupProps, focusWithinProps)}\n ref={ref}\n style={{ display: 'flex', position: 'relative' }}\n >\n <DateField\n ref={fieldRef}\n id={props.id}\n dateFieldProps={props.dateFieldProps}\n disabled={props.disabled}\n size={props.size}\n {...mergeProps(fieldProps, { onKeyDown: handleKeyDown })}\n value={fieldProps.value ?? undefined}\n />\n <VisuallyHidden>\n <OpenButton calendarRef={calendarRef} />\n </VisuallyHidden>\n </div>\n </Popover.Trigger>\n <Calendar\n {...{ ...calendarProps, autoFocus: undefined }}\n calendarRef={calendarRef}\n id='calendar-popover'\n />\n </Popover>\n </div>\n );\n};\n\nexport default DatePicker;\n","import {\n type CalendarDate,\n type DateValue,\n endOfMonth,\n endOfYear,\n startOfMonth,\n startOfYear,\n today,\n} from '@internationalized/date';\nimport type { RangeValue } from '@react-types/shared';\nimport { Settings } from 'luxon';\nimport { memo, useRef } from 'react';\nimport { mergeProps, useButton } from 'react-aria';\nimport type { RangeCalendarState } from 'react-stately';\nimport styled, { css } from 'styled-components';\n\nimport type { DateFilterPreset } from '@persona/design-system/lib/date-filter';\nimport { Color } from '@persona/design-tokens';\nimport { MenuItem, MenuList } from 'design-system/components/Menu';\nimport { isFocused, isHovered, isNotDisabled } from 'design-system/lib/pseudoClass';\nimport { semanticColor } from 'design-system/lib/semanticColor';\n\ninterface DateRangePreset {\n id: DateFilterPreset;\n label: string;\n range: RangeValue<CalendarDate>;\n}\n\n/** The preset windows the picker offers; the codec resolves the same ids on read. */\nexport const getDefaultPresets = (tz: string): DateRangePreset[] => {\n const now = today(tz);\n return [\n {\n id: 'last_7_days',\n label: 'Last 7 days',\n range: {\n start: now.subtract({ days: 7 }),\n end: now,\n },\n },\n {\n id: 'last_14_days',\n label: 'Last 14 days',\n range: {\n start: now.subtract({ days: 14 }),\n end: now,\n },\n },\n {\n id: 'last_30_days',\n label: 'Last 30 days',\n range: {\n start: now.subtract({ days: 30 }),\n end: now,\n },\n },\n {\n id: 'this_month',\n label: 'This month',\n range: {\n start: startOfMonth(now),\n // Effectively, this should always be today, since we can't look forward\n end: now,\n },\n },\n {\n id: 'last_month',\n label: 'Last month',\n range: {\n start: startOfMonth(now.subtract({ months: 1 })),\n end: endOfMonth(now.subtract({ months: 1 })),\n },\n },\n {\n id: 'this_year',\n label: 'This year',\n range: {\n start: startOfYear(now),\n end: now,\n },\n },\n {\n id: 'last_year',\n label: 'Last year',\n range: {\n start: startOfYear(now.subtract({ years: 1 })),\n end: endOfYear(now.subtract({ years: 1 })),\n },\n },\n ];\n};\n\n/**\n * Compare two date values by year/month/day only, ignoring time components.\n */\nconst datesMatchByDay = (a: CalendarDate, b: DateValue): boolean =>\n a.year === b.year && a.month === b.month && a.day === b.day;\n\nconst Container = styled.div`\n display: flex;\n flex-direction: column;\n`;\n\ninterface PresetButtonProps {\n state: RangeCalendarState;\n preset: DateRangePreset;\n isSelected: boolean;\n setDateMode: (mode: 'start' | 'end' | null) => void;\n onPresetSelect?: (preset: DateFilterPreset, commit: () => void) => void;\n commitRange: (value: RangeValue<DateValue>) => void;\n}\n\nconst StyledPresetButton = styled(MenuItem)`\n ${({ selected }) =>\n !selected &&\n css`\n &${isNotDisabled}${isHovered}, &${isNotDisabled}${isFocused} {\n background-color: transparent;\n }\n `}\n\n &:focus-visible {\n // MenuItems default to outline: none, so we need to override it here.\n outline: 2px solid ${({ theme }) => semanticColor(theme, 'BorderFocus', Color.BorderFocus)} !important;\n outline-offset: 1px;\n }\n`;\n\ninterface DateRangePickerPresetsProps {\n presetsFn?: (tz: string) => DateRangePreset[];\n state: RangeCalendarState;\n setDateMode: (mode: 'start' | 'end' | null) => void;\n onPresetSelect?: (preset: DateFilterPreset, commit: () => void) => void;\n selectedPreset?: DateFilterPreset | null;\n commitRange: (value: RangeValue<DateValue>) => void;\n}\n\nconst PresetButton = ({\n commitRange,\n state,\n preset,\n isSelected,\n setDateMode,\n onPresetSelect,\n ...props\n}: PresetButtonProps) => {\n const ref = useRef<HTMLDivElement>();\n const { buttonProps } = useButton(\n {\n onPress: () => {\n const commit = () => commitRange(preset.range);\n\n if (onPresetSelect) {\n onPresetSelect(preset.id, commit);\n } else {\n commit();\n }\n setDateMode(null);\n },\n },\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n ref,\n );\n\n // Strip aria-current from useButton's props so it doesn't override MenuItem's.\n const { 'aria-current': _ariaCurrent, ...mergedProps } = mergeProps(props, buttonProps);\n\n return (\n <StyledPresetButton\n selected={isSelected}\n {...mergedProps}\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n ref={ref}\n >\n {preset.label}\n </StyledPresetButton>\n );\n};\n\nconst DateRangePickerPresets = ({\n presetsFn = getDefaultPresets,\n commitRange,\n state,\n setDateMode,\n onPresetSelect,\n selectedPreset,\n ...props\n}: DateRangePickerPresetsProps) => {\n // The reason that we need to do this at render time is because the default timezone for moment is set after\n // the current User's timezone is loaded. Thus we woudln't be getting the right timezone unless if we defer getting\n // the timezone.\n const presets = presetsFn(Settings.defaultZone.name);\n\n // First match wins — prevents multiple presets appearing selected when ranges overlap.\n const { value } = state;\n const selectedPresetIndex = value\n ? presets.findIndex(\n (preset) =>\n datesMatchByDay(preset.range.start, value.start) &&\n datesMatchByDay(preset.range.end, value.end),\n )\n : -1;\n\n // `undefined` falls back to matching on dates; `null` is an explicit \"no preset\".\n const infersSelection = typeof selectedPreset === 'undefined';\n\n return (\n <Container {...props}>\n <MenuList aria-label='Date range presets'>\n {presets.map((preset, i) => (\n <PresetButton\n key={i}\n preset={preset}\n commitRange={commitRange}\n state={state}\n setDateMode={setDateMode}\n onPresetSelect={onPresetSelect}\n isSelected={infersSelection ? i === selectedPresetIndex : preset.id === selectedPreset}\n />\n ))}\n </MenuList>\n </Container>\n );\n};\n\n// Skips re-renders driven by calendar state the preset list does not read —\n// focus and hover updates fire on every pointer move during range selection.\nconst arePropsEqual = (\n prevProps: DateRangePickerPresetsProps,\n nextProps: DateRangePickerPresetsProps,\n) => {\n if (\n prevProps.selectedPreset !== nextProps.selectedPreset ||\n prevProps.onPresetSelect !== nextProps.onPresetSelect ||\n prevProps.commitRange !== nextProps.commitRange ||\n prevProps.setDateMode !== nextProps.setDateMode ||\n prevProps.presetsFn !== nextProps.presetsFn\n ) {\n return false;\n }\n\n const prevValue = prevProps.state.value;\n const nextValue = nextProps.state.value;\n\n if (!prevValue && !nextValue) {\n return true;\n }\n if (!prevValue || !nextValue) {\n return false;\n }\n\n return (\n prevValue.start.compare(nextValue.start) === 0 && prevValue.end.compare(nextValue.end) === 0\n );\n};\n\nexport default memo(DateRangePickerPresets, arePropsEqual);\n","import { type CalendarDateTime, now, toCalendarDateTime } from '@internationalized/date';\nimport { Settings } from 'luxon';\n\nconst earliest = (a: CalendarDateTime, b: CalendarDateTime) => (a.compare(b) <= 0 ? a : b);\n\nexport const presetEnd = (end: CalendarDateTime) =>\n earliest(\n end.set({ hour: 23, minute: 59, second: 59, millisecond: 999 }),\n toCalendarDateTime(now(Settings.defaultZone.name)).set({ second: 0, millisecond: 0 }),\n );\n","import {\n type CalendarDate,\n type DateValue,\n toCalendarDateTime,\n toZoned,\n} from '@internationalized/date';\nimport type { RangeValue } from '@react-types/shared';\nimport { range } from 'lodash-es';\nimport { Settings } from 'luxon';\nimport { type Ref, useCallback, useEffect, useRef } from 'react';\nimport {\n type DateRange,\n type RangeCalendarProps as RangeCalendarBaseProps,\n useDateFormatter,\n useLocale,\n useRangeCalendar,\n VisuallyHidden,\n} from 'react-aria';\nimport { type RangeCalendarState, useRangeCalendarState } from 'react-stately';\nimport styled from 'styled-components';\n\nimport type { DateFilterPreset } from '@persona/design-system/lib/date-filter';\nimport { BorderRadius, Color, Spacing } from '@persona/design-tokens';\nimport { ArrowLeftIcon, ArrowRightIcon } from '@persona/icons';\nimport Card from 'design-system/components/Card';\nimport {\n CalendarButton,\n CalendarContainer,\n CalendarHeader,\n CalendarHeading,\n} from 'design-system/components/DatePicker/Calendar/CalendarBase';\nimport CalendarGrid from 'design-system/components/DatePicker/Calendar/CalendarGrid';\nimport RangeCalendarPresets from 'design-system/components/DatePicker/Calendar/RangeCalendarPresets';\nimport { createCalendar } from 'design-system/components/DatePicker/common';\nimport { presetEnd } from 'design-system/components/DatePicker/time-range';\nimport { semanticColor } from 'design-system/lib/semanticColor';\n\nconst RangeCalendarHeader = styled(CalendarHeader)`\n gap: ${Spacing[5]};\n`;\n\nconst CalendarHeaderMonth = styled.div`\n display: grid;\n grid-template-columns: minmax(auto, 1fr) auto minmax(auto, 1fr);\n grid-template-areas: 'prev title next';\n width: 266px;\n align-items: center;\n`;\n\nconst CalendarGrids = styled.div`\n display: flex;\n gap: ${Spacing[5]};\n align-items: start;\n`;\n\nconst PrevButton = styled(CalendarButton)`\n grid-area: prev;\n justify-self: start;\n border-radius: ${BorderRadius.Sm};\n`;\n\nconst NextButton = styled(CalendarButton)`\n grid-area: next;\n justify-self: end;\n border-radius: ${BorderRadius.Sm};\n`;\n\nconst RangeCalendarHeading = styled(CalendarHeading)`\n grid-area: title;\n`;\n\nconst RangeCalendarContainer = styled.div`\n display: flex;\n`;\n\nconst PresetsContainer = styled(Card.Body)`\n border-right: 1px solid ${({ theme }) => semanticColor(theme, 'BorderDivider', Color.BorderHairline)};\n`;\n\nexport interface RangeCalendarProps extends RangeCalendarBaseProps<DateValue> {\n minDate?: RangeCalendarBaseProps<DateValue>['minValue'];\n maxDate?: RangeCalendarBaseProps<DateValue>['maxValue'];\n calendarRef?: Ref<HTMLDivElement>;\n hidePresets?: boolean;\n visibleMonths?: 1 | 2;\n onSelectDate?: (d: CalendarDate) => void;\n setDateMode: (mode: 'start' | 'end' | null) => void;\n onPresetSelect?: (preset: DateFilterPreset, commit: () => void) => void;\n selectedPreset?: DateFilterPreset | null;\n /**\n * From setValue of DateRangePicker\n */\n setValue: (value: DateRange | null) => void;\n granularity: 'day' | 'hour' | 'minute' | 'second';\n}\n\nconst hasTimeComponent = (date: DateValue) => 'hour' in date;\n\nconst RangeCalendar = ({\n calendarRef,\n onSelectDate,\n minDate,\n maxDate,\n hidePresets,\n visibleMonths = 2,\n setDateMode,\n onPresetSelect,\n selectedPreset,\n setValue,\n granularity,\n ...props\n}: RangeCalendarProps) => {\n const { locale } = useLocale();\n // Must gather the TZ from the user's settings.\n const timezoneName = Settings.defaultZone.name;\n const rangeCalendarState = useRangeCalendarState({\n ...props,\n minValue: minDate,\n maxValue: maxDate,\n visibleDuration: {\n months: visibleMonths,\n },\n locale,\n createCalendar,\n });\n\n const state: RangeCalendarState = {\n ...rangeCalendarState,\n setValue: (value) => {\n if (!value || granularity === 'day') {\n rangeCalendarState.setValue(value);\n return;\n }\n\n setValue({\n start: toZoned(toCalendarDateTime(value.start), timezoneName),\n // A date-only end comes from a preset, where the end date is inclusive.\n end: toZoned(\n hasTimeComponent(value.end)\n ? toCalendarDateTime(value.end)\n : presetEnd(toCalendarDateTime(value.end)),\n timezoneName,\n ),\n });\n },\n selectDate: (date) => {\n if (onSelectDate) {\n onSelectDate(date);\n rangeCalendarState.setAnchorDate(null);\n } else {\n rangeCalendarState.selectDate(date);\n }\n },\n };\n\n // The preset list is memoized on its own props, so it can hold a `state` from\n // an earlier render. Committing through a ref keeps the write on the current\n // `onChange` chain instead of one the parent has already replaced.\n const commitRef = useRef(state.setValue);\n useEffect(() => {\n commitRef.current = state.setValue;\n });\n const commitRange = useCallback((value: RangeValue<DateValue>) => commitRef.current(value), []);\n\n const ref = useRef();\n\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n const { calendarProps, prevButtonProps, nextButtonProps } = useRangeCalendar(props, state, ref);\n\n const monthDateFormatter = useDateFormatter({\n month: 'long',\n year: 'numeric',\n timeZone: timezoneName,\n });\n\n const monthHeaders = range(0, visibleMonths).map((i) => {\n return (\n <CalendarHeaderMonth key={`calendar-month-${i}`}>\n {i === 0 && (\n <PrevButton {...prevButtonProps}>\n <ArrowLeftIcon />\n </PrevButton>\n )}\n <RangeCalendarHeading aria-hidden>\n {monthDateFormatter.format(\n state.visibleRange.start.add({ months: i }).toDate(timezoneName),\n )}\n </RangeCalendarHeading>\n {i === visibleMonths - 1 && (\n <NextButton {...nextButtonProps}>\n <ArrowRightIcon />\n </NextButton>\n )}\n </CalendarHeaderMonth>\n );\n });\n\n const monthGrids = range(0, visibleMonths).map((i) => {\n return (\n <CalendarGrid\n key={`calendar-grid-${i}`}\n state={state}\n offset={{ months: i }}\n skipFromTabOrder={i > 0}\n />\n );\n });\n\n return (\n <RangeCalendarContainer ref={calendarRef}>\n {!hidePresets && (\n <PresetsContainer padding={Spacing[3]}>\n <RangeCalendarPresets\n state={state}\n commitRange={commitRange}\n setDateMode={setDateMode}\n onPresetSelect={onPresetSelect}\n selectedPreset={selectedPreset}\n />\n </PresetsContainer>\n )}\n <Card.Body padding={Spacing[3]}>\n {/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */}\n <CalendarContainer {...calendarProps} ref={ref}>\n {/* Calendar header is separate from grid like this to facilitate a11y. */}\n <RangeCalendarHeader>\n <VisuallyHidden isFocusable={false}>{calendarProps['aria-label']}</VisuallyHidden>\n {monthHeaders}\n </RangeCalendarHeader>\n <CalendarGrids>{monthGrids}</CalendarGrids>\n </CalendarContainer>\n </Card.Body>\n </RangeCalendarContainer>\n );\n};\n\nexport default RangeCalendar;\n","import {\n CalendarDate,\n type CalendarDateTime,\n type DateValue,\n parseAbsolute,\n toCalendarDateTime,\n toZoned,\n} from '@internationalized/date';\nimport type { DateRangePickerProps as DateRangePickerBase } from '@react-types/datepicker';\nimport type { AriaLabelingProps, RangeValue } from '@react-types/shared';\nimport { DateTime, Settings } from 'luxon';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport {\n mergeProps,\n useButton,\n useDateRangePicker,\n useFocusWithin,\n usePress,\n VisuallyHidden,\n} from 'react-aria';\nimport { useDateRangePickerState } from 'react-stately';\nimport styled from 'styled-components';\n\nimport type { DateFilterPreset } from '@persona/design-system/lib/date-filter';\nimport { Spacing, Typography } from '@persona/design-tokens';\nimport { CircleXInverseIcon } from '@persona/icons';\nimport RangeCalendar from 'design-system/components/DatePicker/Calendar/RangeCalendar';\nimport DateField from 'design-system/components/DatePicker/DateField';\nimport { presetEnd } from 'design-system/components/DatePicker/time-range';\nimport { FormLabel } from 'design-system/components/FormControl';\nimport { ClearButton } from 'design-system/components/Input';\nimport Popover from 'design-system/components/Popover';\nimport { isDisabled } from 'design-system/lib/pseudoClass';\nimport type { InputSizes } from 'design-system/mixins/input';\n\nconst DateRangeContainer = styled.div`\n display: inline-flex;\n flex-direction: column;\n width: 100%;\n`;\n\nconst DateRangeInputs = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst CustomFormLabel = styled(FormLabel)`\n margin-bottom: ${Spacing[2]};\n ${Typography.TextMediumBold};\n`;\n\nexport type DateRange = {\n startDate?: DateTime;\n endDate?: DateTime;\n};\n\nexport type DateFilterChange =\n | {\n source: 'preset';\n preset: DateFilterPreset;\n range: RangeValue<DateValue>;\n }\n | {\n source: 'calendar';\n range: RangeValue<DateValue> | null;\n }\n | {\n source: 'clear';\n };\n\n/**\n * `onChange` fires for controlled prop replay as well as user edits, so only the\n * code path that started a write can say what that write meant.\n */\ntype WriteOrigin =\n | { kind: 'interaction' }\n | { kind: 'sync' }\n | { kind: 'clear' }\n | { kind: 'preset'; preset: DateFilterPreset };\n\nexport interface DateRangePickerProps extends DateRangePickerBase<DateValue>, AriaLabelingProps {\n dateRange: DateRange;\n onChange: (range: RangeValue<DateValue> | null) => void;\n disabled?: boolean;\n size?: InputSizes;\n minDate?: DateValue;\n maxDate?: DateValue;\n label?: string | null;\n dataTest?: string;\n id?: string;\n hidePresets?: boolean;\n visibleMonths?: 1 | 2;\n className?: string;\n /**\n * Whether or not to display clear button\n */\n showClear?: boolean;\n /**\n * Called when the clear button is clicked/pressed\n */\n onClear?: () => void;\n /**\n * Additive notification of genuine user interactions. Never fires for\n * controlled prop synchronization. `onChange` is unaffected by this prop.\n */\n onDateFilterChange?: (change: DateFilterChange) => void;\n /** `undefined` infers from dates, `null` selects none, and an id selects that preset. */\n selectedPreset?: DateFilterPreset | null;\n /**\n * z-index of the calendar popover\n */\n calendarZIndex?: number;\n /**\n * Element that should contain the calendar portal.\n */\n portalContainer?: HTMLElement | null;\n}\n\nconst OpenButton = ({ onOpen, disabled }: { onOpen: () => void; disabled?: boolean }) => {\n const openCalBtnRef = useRef<HTMLButtonElement>(null);\n const { buttonProps } = useButton(\n {\n isDisabled: disabled,\n onPress: onOpen,\n },\n openCalBtnRef,\n );\n\n return (\n <button\n {...buttonProps}\n type='button'\n ref={openCalBtnRef}\n aria-label='Open calendar'\n tabIndex={-1}\n />\n );\n};\n\nconst ClearRangeButton = styled(ClearButton)`\n height: 16px;\n width: 16px;\n margin-left: ${Spacing[2]};\n\n &${isDisabled}, &:disabled {\n background-color: transparent;\n }\n`;\n\nconst DateRangePicker = ({\n granularity = 'day',\n hideTimeZone = true,\n className,\n calendarZIndex,\n portalContainer,\n onDateFilterChange,\n selectedPreset,\n ...props\n}: DateRangePickerProps) => {\n const writeOriginRef = useRef<WriteOrigin>({ kind: 'interaction' });\n const writeWithOrigin = useCallback((origin: WriteOrigin, commit: () => void) => {\n writeOriginRef.current = origin;\n try {\n commit();\n } finally {\n writeOriginRef.current = { kind: 'interaction' };\n }\n }, []);\n\n const state = useDateRangePickerState({\n granularity,\n hideTimeZone,\n ...props,\n onChange: (range) => {\n props.onChange(range);\n\n const origin = writeOriginRef.current;\n if (origin.kind === 'sync' || origin.kind === 'clear') {\n return;\n }\n if (origin.kind === 'preset' && range) {\n onDateFilterChange?.({ source: 'preset', preset: origin.preset, range });\n return;\n }\n onDateFilterChange?.({ source: 'calendar', range });\n },\n });\n const ref = useRef<HTMLDivElement>(null);\n const startFieldRef = useRef<HTMLDivElement>(null);\n const endFieldRef = useRef<HTMLDivElement>(null);\n const calendarRef = useRef<HTMLDivElement>(null);\n const [dateMode, setDateMode] = useState<'start' | 'end' | null>(null);\n // A ref, not state: focus can return to a field before a state update would commit.\n const isClosingRef = useRef(false);\n const { groupProps, startFieldProps, endFieldProps, calendarProps, labelProps } =\n useDateRangePicker({ granularity, hideTimeZone, ...props }, state, ref);\n\n const focusCalendar = useCallback(() => {\n requestAnimationFrame(() => {\n const firstFocusableCalendarElement = calendarRef.current?.querySelector<HTMLElement>(\n '[role=\"menuitem\"], button:not(:disabled), [tabindex=\"0\"]',\n );\n firstFocusableCalendarElement?.focus();\n });\n }, []);\n\n const openCalendar = useCallback(() => {\n if (!props.disabled && !state.isOpen && !isClosingRef.current) {\n state.setOpen(true);\n }\n }, [props.disabled, state]);\n\n const openCalendarWithFocus = useCallback(() => {\n openCalendar();\n focusCalendar();\n }, [focusCalendar, openCalendar]);\n\n const handlePresetSelect = useCallback(\n (preset: DateFilterPreset, commit: () => void) =>\n writeWithOrigin({ kind: 'preset', preset }, commit),\n [writeWithOrigin],\n );\n\n // Keyed on instants rather than the `DateTime` identities: a caller that parses\n // its range during render hands us new objects every commit, and syncing on that\n // would call `setValue` -> `onChange` -> re-render without end.\n const startInstant = props.dateRange.startDate?.isValid\n ? props.dateRange.startDate.toMillis()\n : undefined;\n const endInstant = props.dateRange.endDate?.isValid\n ? props.dateRange.endDate.toMillis()\n : undefined;\n\n useEffect(() => {\n // If not set, return early\n if (startInstant == null || endInstant == null) {\n return;\n }\n\n // Find out the real time by adjusting the date to the user's timezone\n const startDate = DateTime.fromMillis(startInstant).setZone(Settings.defaultZone);\n const endDate = DateTime.fromMillis(endInstant).setZone(Settings.defaultZone);\n\n if (!startDate.isValid || !endDate.isValid) {\n return;\n }\n\n // Months are 1-indexed, no translations need to happen to CalendarDates\n const startCalendar = state.hasTime\n ? parseAbsolute(startDate.toISO(), Settings.defaultZone.name)\n : new CalendarDate(startDate.year, startDate.month, startDate.day);\n const endCalendar = state.hasTime\n ? parseAbsolute(endDate.toISO(), Settings.defaultZone.name)\n : new CalendarDate(endDate.year, endDate.month, endDate.day);\n\n const dateRangeV2: RangeValue<DateValue> = {\n start: startCalendar,\n end: endCalendar,\n };\n\n writeWithOrigin({ kind: 'sync' }, () => state.setValue(dateRangeV2));\n }, [startInstant, endInstant, granularity]);\n\n // Auto-close overlay when a complete range is selected (e.g., from presets with time enabled)\n const prevValueRef = useRef<RangeValue<DateValue | null> | null>(state.value);\n // The first calendar click in time mode seeds a distinct end, which must not read as a finished range.\n const skipAutoCloseRef = useRef(false);\n useEffect(() => {\n const prevValue = prevValueRef.current;\n const currentValue = state.value;\n\n // Update ref for next comparison\n prevValueRef.current = currentValue;\n\n if (skipAutoCloseRef.current) {\n skipAutoCloseRef.current = false;\n return;\n }\n\n // Close overlay only if BOTH start and end changed simultaneously to DIFFERENT dates (e.g., preset selection)\n // Do not close during manual date selection where:\n // 1. Only one date changes at a time, OR\n // 2. Both dates are set to the same value (initial selection from empty state)\n // Use value comparison (.compare) instead of object identity to handle controlled component re-renders\n const startChanged =\n prevValue?.start && currentValue?.start\n ? prevValue.start.compare(currentValue.start) !== 0\n : prevValue?.start !== currentValue?.start;\n const endChanged =\n prevValue?.end && currentValue?.end\n ? prevValue.end.compare(currentValue.end) !== 0\n : prevValue?.end !== currentValue?.end;\n const datesAreDifferent =\n currentValue?.start &&\n currentValue?.end &&\n currentValue.start.compare(currentValue.end) !== 0;\n\n if (state.isOpen && startChanged && endChanged && datesAreDifferent) {\n state.setOpen(false);\n }\n }, [state.value, state.isOpen]);\n\n const { focusWithinProps: startFocusWithinProps } = useFocusWithin({\n onFocusWithin: () => {\n setDateMode('start');\n openCalendar();\n },\n });\n\n const { focusWithinProps: endFocusWithinProps } = useFocusWithin({\n onFocusWithin: () => {\n setDateMode('end');\n openCalendar();\n },\n });\n\n const { focusWithinProps: containerFocusProps } = useFocusWithin({\n onBlurWithin: () => {\n requestAnimationFrame(() => {\n // Wait for popover focus transitions to settle before closing.\n const activeElement = document.activeElement;\n const isFocusInDateRangeInput =\n activeElement instanceof Node && ref.current?.contains(activeElement);\n const isFocusInCalendar =\n activeElement instanceof Node && calendarRef.current?.contains(activeElement);\n\n if (isFocusInDateRangeInput || isFocusInCalendar) {\n return;\n }\n\n setDateMode(null);\n if (state.isOpen) {\n state.setOpen(false);\n }\n });\n },\n });\n\n const handleOutsideClick = (e: Event) => {\n const target = e.target as Node;\n // Don't close if clicking on the date inputs themselves\n if (ref.current?.contains(target)) {\n return;\n }\n\n // When there's a click outside of the containers + calendars, reset the highlighted date\n // Only close the calendar if it's open\n // Note: Radix UI's onInteractOutside already ensures the interaction is outside the popover content\n if (state.isOpen) {\n setDateMode(null);\n state.setOpen(false);\n }\n };\n\n const { pressProps: pressClearProps } = usePress({\n onPress: () => {\n writeWithOrigin({ kind: 'clear' }, () => state.setValue(null));\n\n if (props.onClear) {\n props.onClear();\n }\n onDateFilterChange?.({ source: 'clear' });\n },\n });\n\n const handleKeyDown = useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === 'Enter') {\n event.preventDefault(); // Prevent form submission\n openCalendarWithFocus();\n }\n },\n [openCalendarWithFocus],\n );\n\n const isValueNull = state.value && state.value.start == null && state.value.end == null;\n\n return (\n <DateRangeContainer data-test={props.dataTest} className={className}>\n {props.label && <CustomFormLabel {...labelProps}>{props.label}</CustomFormLabel>}\n <Popover\n open={state.isOpen}\n modal={false}\n portalProps={portalContainer ? { container: portalContainer } : undefined}\n contentProps={{\n align: 'start',\n 'aria-modal': true,\n 'aria-label': props['aria-label'] ?? undefined,\n onInteractOutside: handleOutsideClick,\n onOpenAutoFocus: (e: Event) => {\n // Field focus opens the calendar for editing, while Enter/Open calendar moves focus inside.\n e.preventDefault();\n },\n onEscapeKeyDown: () => {\n state.setOpen(false);\n // Restore focus to the date field for keyboard users\n if (dateMode) {\n const fieldRef = dateMode === 'start' ? startFieldRef : endFieldRef;\n const seg = fieldRef.current?.querySelector('[tabindex=\"0\"]');\n if (seg instanceof HTMLElement) {\n seg.focus();\n }\n }\n },\n onCloseAutoFocus: (e: Event) => {\n // Prevent Radix's default focus restoration — Escape handles its own above.\n e.preventDefault();\n isClosingRef.current = true;\n requestAnimationFrame(() => {\n isClosingRef.current = false;\n });\n },\n noPadding: true,\n style: { zIndex: calendarZIndex },\n zIndex: calendarZIndex,\n }}\n >\n <Popover.Trigger asChild>\n <DateRangeInputs {...mergeProps(groupProps, containerFocusProps)} ref={ref}>\n {/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */}\n <DateField\n ref={startFieldRef}\n inputPosition='start'\n focused={dateMode === 'start'}\n disabled={props.disabled}\n size={props.size}\n {...mergeProps(startFieldProps, startFocusWithinProps, { onKeyDown: handleKeyDown })}\n />\n {/* @ts-expect-error [strict-migration] The following line is not strict; please fix! */}\n <DateField\n ref={endFieldRef}\n inputPosition='end'\n focused={dateMode === 'end'}\n disabled={props.disabled}\n size={props.size}\n {...mergeProps(endFieldProps, endFocusWithinProps, { onKeyDown: handleKeyDown })}\n />\n {props.showClear && (\n <ClearRangeButton\n {...pressClearProps}\n type='button'\n disabled={isValueNull}\n aria-label='Clear date range'\n >\n <CircleXInverseIcon />\n </ClearRangeButton>\n )}\n <VisuallyHidden>\n <OpenButton onOpen={openCalendarWithFocus} disabled={props.disabled} />\n </VisuallyHidden>\n </DateRangeInputs>\n </Popover.Trigger>\n <RangeCalendar\n {...{ ...calendarProps, autoFocus: undefined }}\n calendarRef={calendarRef}\n setDateMode={setDateMode}\n setValue={state.setValue}\n granularity={granularity}\n hidePresets={props.hidePresets}\n visibleMonths={props.visibleMonths}\n onPresetSelect={handlePresetSelect}\n selectedPreset={selectedPreset}\n onSelectDate={(dateVal) => {\n const capToMax = <T extends DateValue>(end: T): T => {\n if (!state.hasTime || !props.maxDate) {\n return end;\n }\n const max =\n 'hour' in props.maxDate\n ? toCalendarDateTime(props.maxDate)\n : toCalendarDateTime(props.maxDate).set({\n hour: 23,\n minute: 59,\n second: 59,\n millisecond: 999,\n });\n if (toCalendarDateTime(end).compare(max) <= 0) {\n return end;\n }\n return end.set({\n year: max.year,\n month: max.month,\n day: max.day,\n hour: max.hour,\n minute: max.minute,\n second: max.second,\n millisecond: max.millisecond,\n }) as T;\n };\n /**\n * Please use caution when editing the logic below.\n * It is specific to react-aria's date picker and can be brittle.\n */\n if (dateVal) {\n const calendarDate = state.hasTime ? toCalendarDateTime(dateVal) : dateVal;\n const date = state.hasTime\n ? toZoned(calendarDate as CalendarDateTime, Settings.defaultZone.name)\n : calendarDate;\n const seededEnd = state.hasTime\n ? presetEnd(calendarDate as CalendarDateTime)\n : calendarDate;\n const emptyRangeEndValue =\n seededEnd.compare(calendarDate) < 0\n ? (calendarDate as CalendarDateTime).set({\n hour: 23,\n minute: 59,\n second: 59,\n millisecond: 999,\n })\n : seededEnd;\n const emptyRangeEnd = capToMax(\n state.hasTime\n ? toZoned(emptyRangeEndValue as CalendarDateTime, Settings.defaultZone.name)\n : emptyRangeEndValue,\n );\n // Typed endpoints are unzoned; zone them so both fields render the timezone segment.\n const toViewerZone = (value: DateValue | null) =>\n state.hasTime && value ? toZoned(value, Settings.defaultZone.name) : value;\n const start = toViewerZone(state.value.start);\n const end = toViewerZone(state.value.end);\n\n if (dateMode === 'start') {\n // Handle a case where we've deleted both dates\n if (end == null && start == null) {\n skipAutoCloseRef.current = true;\n state.setValue({\n start: date,\n end: emptyRangeEnd,\n });\n }\n // If end becomes the start\n else if (end && date.compare(end) > 0) {\n state.setValue({\n start: end,\n end: capToMax(end.set(dateVal)), // Preserve time\n });\n } else {\n state.setValue({\n // if start is not set, set it to the date or date + time value, otherwise set the dateVal to preserve time\n start: start == null ? date : start.set(dateVal),\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n\n end,\n });\n }\n setDateMode('end');\n } else {\n // Handle a case where we've deleted both dates\n if (end == null && start == null) {\n state.setValue({\n start: date,\n end: emptyRangeEnd,\n });\n }\n // If start becomes the end\n else if (start && date.compare(start) < 0) {\n state.setValue({\n start: start.set(dateVal),\n end: start,\n });\n } else {\n state.setValue({\n /* @ts-expect-error [strict-migration] The following line is not strict; please fix! */\n start,\n // if end is not set, set it to the date or date + time value, otherwise set the dateVal to preserve time\n end: capToMax(end == null ? date : end.set(dateVal)),\n });\n }\n // Close popover and keep focus on end field\n state.setOpen(false);\n }\n }\n }}\n minDate={props.minDate}\n maxDate={props.maxDate}\n />\n </Popover>\n </DateRangeContainer>\n );\n};\n\nexport default DateRangePicker;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAa,oBAAoB,OAAO,GAAG;;;AAI3C,MAAa,iBAAiB,OAAO,GAAG;;;mBAGrB,QAAQ,GAAG;;AAG9B,MAAa,kBAAkB,OAAO,GAAG;IACrC,WAAW,cAAc;;;;AAK7B,MAAM,uBAAuB,OAAO,WAAW;;;;AAK/C,MAAa,kBAAkB,UAA2B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