@servicetitan/anvil2 3.13.7 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{AiMark-D8dx3b1Q.js → AiMark-CWufA6pV.js} +7 -62
  3. package/dist/{AiMark-D8dx3b1Q.js.map → AiMark-CWufA6pV.js.map} +1 -1
  4. package/dist/AiMark.js +1 -1
  5. package/dist/{Alert-N-Es76Om.js → Alert-RkvFtmRP.js} +2 -2
  6. package/dist/{Alert-N-Es76Om.js.map → Alert-RkvFtmRP.js.map} +1 -1
  7. package/dist/Alert.js +1 -1
  8. package/dist/{AnvilProvider-D8msiELo.js → AnvilProvider-DagOuc9c.js} +2 -3
  9. package/dist/AnvilProvider-DagOuc9c.js.map +1 -0
  10. package/dist/AnvilProvider.js +1 -1
  11. package/dist/Avatar-DZxHhMTP.js.map +1 -1
  12. package/dist/{Breadcrumbs-Di0HJmcH.js → Breadcrumbs-DbOrdao2.js} +2 -2
  13. package/dist/{Breadcrumbs-Di0HJmcH.js.map → Breadcrumbs-DbOrdao2.js.map} +1 -1
  14. package/dist/Breadcrumbs.js +1 -1
  15. package/dist/Button-Dwh_Nd4l.js.map +1 -1
  16. package/dist/{Calendar-kSH8F7gx.js → Calendar-CK-AAaSG.js} +2 -2
  17. package/dist/Calendar-CK-AAaSG.js.map +1 -0
  18. package/dist/{Calendar-DV149Rqb.js → Calendar-DLnn6dJE.js} +2 -2
  19. package/dist/{Calendar-DV149Rqb.js.map → Calendar-DLnn6dJE.js.map} +1 -1
  20. package/dist/Calendar.js +2 -2
  21. package/dist/{Checkbox-CknwM231.js → Checkbox-CboZhOtU.js} +3 -3
  22. package/dist/{Checkbox-CknwM231.js.map → Checkbox-CboZhOtU.js.map} +1 -1
  23. package/dist/{Checkbox-FvMXGsgi.js → Checkbox-Cn4iNLW_.js} +2 -2
  24. package/dist/{Checkbox-FvMXGsgi.js.map → Checkbox-Cn4iNLW_.js.map} +1 -1
  25. package/dist/Checkbox.js +1 -1
  26. package/dist/{Chip-COkotNvt.js → Chip-UbrxYEqs.js} +2 -2
  27. package/dist/{Chip-COkotNvt.js.map → Chip-UbrxYEqs.js.map} +1 -1
  28. package/dist/Chip.js +1 -1
  29. package/dist/Combobox.js +1 -1
  30. package/dist/{DataTable-D0YlJ7IA.js → DataTable-COExZbOC.js} +10 -22
  31. package/dist/DataTable-COExZbOC.js.map +1 -0
  32. package/dist/{DateFieldRange-B7-z7KXC.js → DateFieldRange-CpTxlASD.js} +5 -5
  33. package/dist/{DateFieldRange-B7-z7KXC.js.map → DateFieldRange-CpTxlASD.js.map} +1 -1
  34. package/dist/DateFieldRange.js +1 -1
  35. package/dist/{DateFieldSingle-B3aY-9vO.js → DateFieldSingle-DR2kfrzh.js} +5 -5
  36. package/dist/{DateFieldSingle-B3aY-9vO.js.map → DateFieldSingle-DR2kfrzh.js.map} +1 -1
  37. package/dist/DateFieldSingle.js +1 -1
  38. package/dist/{DateFieldYearless-BYwWvHXD.js → DateFieldYearless-4mS_2Mgw.js} +5 -5
  39. package/dist/{DateFieldYearless-BYwWvHXD.js.map → DateFieldYearless-4mS_2Mgw.js.map} +1 -1
  40. package/dist/DateFieldYearless.js +1 -1
  41. package/dist/{DateFieldYearlessRange-cyDptr2S.js → DateFieldYearlessRange-C-yvKBkJ.js} +4 -4
  42. package/dist/{DateFieldYearlessRange-cyDptr2S.js.map → DateFieldYearlessRange-C-yvKBkJ.js.map} +1 -1
  43. package/dist/DateFieldYearlessRange.js +1 -1
  44. package/dist/{DaysOfTheWeek-Re26vN8g.js → DaysOfTheWeek-Bo4w8SsT.js} +2 -2
  45. package/dist/{DaysOfTheWeek-Re26vN8g.js.map → DaysOfTheWeek-Bo4w8SsT.js.map} +1 -1
  46. package/dist/DaysOfTheWeek.js +1 -1
  47. package/dist/{Dialog-BMPFoRQh.js → Dialog-Ds25dKQp.js} +4 -4
  48. package/dist/{Dialog-BMPFoRQh.js.map → Dialog-Ds25dKQp.js.map} +1 -1
  49. package/dist/Dialog.js +1 -1
  50. package/dist/{Drawer-BCw_ZHSD.js → Drawer-Da-bj_6o.js} +4 -4
  51. package/dist/{Drawer-BCw_ZHSD.js.map → Drawer-Da-bj_6o.js.map} +1 -1
  52. package/dist/Drawer.js +1 -1
  53. package/dist/DrillDown.js +1 -1
  54. package/dist/{EditCard-CTEk64eN.js → EditCard-CocV93gS.js} +2 -2
  55. package/dist/{EditCard-CTEk64eN.js.map → EditCard-CocV93gS.js.map} +1 -1
  56. package/dist/EditCard.js +1 -1
  57. package/dist/{FieldLabel-CYCk2rz-.js → FieldLabel-6aFKQfyD.js} +2 -2
  58. package/dist/FieldLabel-6aFKQfyD.js.map +1 -0
  59. package/dist/FieldLabel.js +1 -1
  60. package/dist/{FilterBar-CrIPZKvL.js → FilterBar-CZT1ryz_.js} +6 -7
  61. package/dist/FilterBar-CZT1ryz_.js.map +1 -0
  62. package/dist/FilterBar.js +1 -1
  63. package/dist/Helper-BHpOgh7k.js.map +1 -1
  64. package/dist/Icon-B5zwN7GD.js.map +1 -1
  65. package/dist/{InputMask-Bm7ZYtQy.js → InputMask-CNV0Ucli.js} +3 -3
  66. package/dist/{InputMask-Bm7ZYtQy.js.map → InputMask-CNV0Ucli.js.map} +1 -1
  67. package/dist/InputMask.js +1 -1
  68. package/dist/{ListView-Bkv1ZCSu.js → ListView-DFAWrwzi.js} +2 -2
  69. package/dist/ListView-DFAWrwzi.js.map +1 -0
  70. package/dist/ListView.js +1 -1
  71. package/dist/{Listbox-BWy_uBqm.js → Listbox-BErqErNN.js} +2 -2
  72. package/dist/Listbox-BErqErNN.js.map +1 -0
  73. package/dist/Listbox.js +1 -1
  74. package/dist/LocalizationContext-UsmB5mnR.js.map +1 -1
  75. package/dist/LocalizationProvider-BPcOU7YX.js.map +1 -1
  76. package/dist/{MenuFooter--lBF8OjJ.js → MenuFooter-fGSZYh8e.js} +2 -2
  77. package/dist/MenuFooter-fGSZYh8e.js.map +1 -0
  78. package/dist/MultiSelectField.js +1 -1
  79. package/dist/{MultiSelectFieldSync-gH-TQnq3.js → MultiSelectFieldSync-CqWUidCm.js} +8 -8
  80. package/dist/MultiSelectFieldSync-CqWUidCm.js.map +1 -0
  81. package/dist/MultiSelectMenu.js +1 -1
  82. package/dist/{MultiSelectMenuSync-QmhjWA05.js → MultiSelectMenuSync-DG3rKyQc.js} +6 -6
  83. package/dist/{MultiSelectMenuSync-QmhjWA05.js.map → MultiSelectMenuSync-DG3rKyQc.js.map} +1 -1
  84. package/dist/{NumberField-BOLMhpdk.js → NumberField-DRYYJHec.js} +3 -3
  85. package/dist/{NumberField-BOLMhpdk.js.map → NumberField-DRYYJHec.js.map} +1 -1
  86. package/dist/NumberField.js +1 -1
  87. package/dist/{Page-D4RYSd8t.js → Page-BmpojvuI.js} +8 -8
  88. package/dist/{Page-D4RYSd8t.js.map → Page-BmpojvuI.js.map} +1 -1
  89. package/dist/Page.js +1 -1
  90. package/dist/{Pagination-Hjalx9ZX.js → Pagination-Bc4fhdNm.js} +3 -3
  91. package/dist/{Pagination-Hjalx9ZX.js.map → Pagination-Bc4fhdNm.js.map} +1 -1
  92. package/dist/Pagination.js +1 -1
  93. package/dist/{Popover-BQ-R2hs0.js → Popover-BgVOsP4J.js} +2 -2
  94. package/dist/{Popover-BQ-R2hs0.js.map → Popover-BgVOsP4J.js.map} +1 -1
  95. package/dist/Popover.js +1 -1
  96. package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
  97. package/dist/{ProgressBar-BUmYFa81.js → ProgressBar-Chb0uKfL.js} +2 -2
  98. package/dist/{ProgressBar-BUmYFa81.js.map → ProgressBar-Chb0uKfL.js.map} +1 -1
  99. package/dist/ProgressBar.js +1 -1
  100. package/dist/{Radio-BgbBIhPS.js → Radio-DcNlFfSu.js} +3 -3
  101. package/dist/{Radio-BgbBIhPS.js.map → Radio-DcNlFfSu.js.map} +1 -1
  102. package/dist/{Radio-C2pWQ84U.js → Radio-gpMEsFss.js} +2 -2
  103. package/dist/{Radio-C2pWQ84U.js.map → Radio-gpMEsFss.js.map} +1 -1
  104. package/dist/Radio.js +1 -1
  105. package/dist/{RichTextEditor-Chzl-zeW.js → RichTextEditor-DeO4p-S-.js} +8 -8
  106. package/dist/{RichTextEditor-Chzl-zeW.js.map → RichTextEditor-DeO4p-S-.js.map} +1 -1
  107. package/dist/RichTextEditor.js +1 -1
  108. package/dist/{SavedFiltersButton-D0J5KTsI.js → SavedFiltersButton-Cvf1mJk8.js} +10 -10
  109. package/dist/{SavedFiltersButton-D0J5KTsI.js.map → SavedFiltersButton-Cvf1mJk8.js.map} +1 -1
  110. package/dist/SavedFiltersButton.js +1 -1
  111. package/dist/{SelectCard-BGTB3ay0.js → SelectCard-bp5hRyHK.js} +3 -3
  112. package/dist/{SelectCard-BGTB3ay0.js.map → SelectCard-bp5hRyHK.js.map} +1 -1
  113. package/dist/SelectCard.js +1 -1
  114. package/dist/SelectField.js +1 -1
  115. package/dist/{SelectFieldLabel-CcX2GAym.js → SelectFieldLabel-DZqxaZsp.js} +2 -2
  116. package/dist/SelectFieldLabel-DZqxaZsp.js.map +1 -0
  117. package/dist/{SelectFieldSync-BjJN7FC3.js → SelectFieldSync-Wkx6DGpg.js} +7 -7
  118. package/dist/{SelectFieldSync-BjJN7FC3.js.map → SelectFieldSync-Wkx6DGpg.js.map} +1 -1
  119. package/dist/SelectMenu.js +1 -1
  120. package/dist/{SelectMenuSync-iZsNTote.js → SelectMenuSync-O55TODxn.js} +6 -6
  121. package/dist/{SelectMenuSync-iZsNTote.js.map → SelectMenuSync-O55TODxn.js.map} +1 -1
  122. package/dist/{SelectOptions-BeehD5VV.js → SelectOptions-0A8BYx1q.js} +2 -2
  123. package/dist/SelectOptions-0A8BYx1q.js.map +1 -0
  124. package/dist/{SelectTrigger-BQAVMm3E.js → SelectTrigger-BfJ7DWYq.js} +2 -2
  125. package/dist/{SelectTrigger-BQAVMm3E.js.map → SelectTrigger-BfJ7DWYq.js.map} +1 -1
  126. package/dist/SelectTrigger.js +1 -1
  127. package/dist/{SelectTriggerBase-BV-QNhII.js → SelectTriggerBase-DvsI-kSG.js} +3 -3
  128. package/dist/{SelectTriggerBase-BV-QNhII.js.map → SelectTriggerBase-DvsI-kSG.js.map} +1 -1
  129. package/dist/StatusIcon-BqorkNJf.js.map +1 -1
  130. package/dist/{Switch-DWaFomvP.js → Switch-CrDmBj4D.js} +2 -2
  131. package/dist/{Switch-DWaFomvP.js.map → Switch-CrDmBj4D.js.map} +1 -1
  132. package/dist/Switch.js +1 -1
  133. package/dist/Table.js +1 -1
  134. package/dist/{Text-D2TIPmZ2.js → Text-CZccJAnm.js} +2 -2
  135. package/dist/{Text-D2TIPmZ2.js.map → Text-CZccJAnm.js.map} +1 -1
  136. package/dist/Text.js +1 -1
  137. package/dist/{TextField-wIc7ic0E.js → TextField-D0f9LwgQ.js} +3 -3
  138. package/dist/{TextField-wIc7ic0E.js.map → TextField-D0f9LwgQ.js.map} +1 -1
  139. package/dist/{TextField-DJaBZ4Je.js → TextField-DX5qyWPo.js} +2 -2
  140. package/dist/{TextField-DJaBZ4Je.js.map → TextField-DX5qyWPo.js.map} +1 -1
  141. package/dist/TextField.js +1 -1
  142. package/dist/{Textarea-D4c6VjNs.js → Textarea-CdTcekFd.js} +3 -3
  143. package/dist/{Textarea-D4c6VjNs.js.map → Textarea-CdTcekFd.js.map} +1 -1
  144. package/dist/Textarea.js +1 -1
  145. package/dist/ThemeProvider-DW-Mflv6.js.map +1 -1
  146. package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
  147. package/dist/{TimeField-DpnX_t31.js → TimeField-BxNglWQt.js} +4 -4
  148. package/dist/TimeField-BxNglWQt.js.map +1 -0
  149. package/dist/TimeField.js +1 -1
  150. package/dist/Toast.js +2 -2
  151. package/dist/{Toaster-Cl9BSxHs.js → Toaster-C-Z_FMbW.js} +3 -3
  152. package/dist/{Toaster-Cl9BSxHs.js.map → Toaster-C-Z_FMbW.js.map} +1 -1
  153. package/dist/{Toaster-11pmgwx5.js → Toaster-nyQgF9Ki.js} +2 -2
  154. package/dist/{Toaster-11pmgwx5.js.map → Toaster-nyQgF9Ki.js.map} +1 -1
  155. package/dist/{Toolbar-C9_Z1wAt.js → Toolbar-BUbMtBVz.js} +4 -4
  156. package/dist/{Toolbar-C9_Z1wAt.js.map → Toolbar-BUbMtBVz.js.map} +1 -1
  157. package/dist/{Toolbar-Dq9KOJoH.js → Toolbar-BxAFPvbn.js} +5 -5
  158. package/dist/{Toolbar-Dq9KOJoH.js.map → Toolbar-BxAFPvbn.js.map} +1 -1
  159. package/dist/Toolbar.js +2 -2
  160. package/dist/{ToolbarButtonToggle-BGnYIt6-.js → ToolbarButtonToggle-NSJ2XfXT.js} +2 -2
  161. package/dist/{ToolbarButtonToggle-BGnYIt6-.js.map → ToolbarButtonToggle-NSJ2XfXT.js.map} +1 -1
  162. package/dist/TrackingProvider-Co4lyoI9.js.map +1 -1
  163. package/dist/TrackingProviderContext-CrVA7KHv.js.map +1 -1
  164. package/dist/TreeSelectField.js +1 -1
  165. package/dist/{TreeSelectFieldSync-CoWxg7tA.js → TreeSelectFieldSync-DpvwlM7B.js} +6 -6
  166. package/dist/{TreeSelectFieldSync-CoWxg7tA.js.map → TreeSelectFieldSync-DpvwlM7B.js.map} +1 -1
  167. package/dist/TreeSelectMenu.js +1 -1
  168. package/dist/{TreeSelectMenuSync-CmJa0lyW.js → TreeSelectMenuSync-BDitYX_k.js} +5 -5
  169. package/dist/{TreeSelectMenuSync-CmJa0lyW.js.map → TreeSelectMenuSync-BDitYX_k.js.map} +1 -1
  170. package/dist/{TypeaheadTextField-2kW-oCMo.js → TypeaheadTextField-Cj09sEji.js} +3 -3
  171. package/dist/{TypeaheadTextField-2kW-oCMo.js.map → TypeaheadTextField-Cj09sEji.js.map} +1 -1
  172. package/dist/TypeaheadTextField.js +1 -1
  173. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js → YearlessDateInputWithPicker-CoomgSEK.js} +3 -3
  174. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js.map → YearlessDateInputWithPicker-CoomgSEK.js.map} +1 -1
  175. package/dist/anvParts-DFVq7-Cm.js +25 -0
  176. package/dist/anvParts-DFVq7-Cm.js.map +1 -0
  177. package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -1
  178. package/dist/assets/icons/st/gnav_automations_active.svg +1 -0
  179. package/dist/assets/icons/st/gnav_automations_inactive.svg +1 -0
  180. package/dist/assets/icons/st/gnav_command_center_active.svg +1 -0
  181. package/dist/assets/icons/st/gnav_command_center_inactive.svg +1 -0
  182. package/dist/assets/icons/st.ts +4 -0
  183. package/dist/beta.js +17 -17
  184. package/dist/{bulkActionTypes-Ct2cwT7b.js → bulkActionTypes-DAo3_ECS.js} +2 -2
  185. package/dist/bulkActionTypes-DAo3_ECS.js.map +1 -0
  186. package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
  187. package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -1
  188. package/dist/{downshift.esm-xtSnQp44.js → downshift.esm-U4VMqrF-.js} +3 -1
  189. package/dist/downshift.esm-U4VMqrF-.js.map +1 -0
  190. package/dist/{filter-state-lWKlYjeQ.js → filter-state-CZcczj37.js} +21 -21
  191. package/dist/{filter-state-lWKlYjeQ.js.map → filter-state-CZcczj37.js.map} +1 -1
  192. package/dist/floating-ui.react-dom-BIKT960u.js.map +1 -1
  193. package/dist/getActiveElement-BcSyVE7S.js.map +1 -1
  194. package/dist/getKeyboardFocusableElements-B_U9rt6y.js.map +1 -1
  195. package/dist/{index-BHztJ8H6.js → index-BFxzUzoz.js} +2 -2
  196. package/dist/{index-BHztJ8H6.js.map → index-BFxzUzoz.js.map} +1 -1
  197. package/dist/index.js +42 -43
  198. package/dist/index.js.map +1 -1
  199. package/dist/portalScopeClassNames-DA28LrXe.js.map +1 -1
  200. package/dist/src/hooks/useAccessibleColor/useAccessibleColor.d.ts +3 -28
  201. package/dist/src/hooks/useBreakpoint/useBreakpoint.d.ts +15 -60
  202. package/dist/src/hooks/useMergeRefs/useMergeRefs.d.ts +3 -20
  203. package/dist/src/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts +2 -11
  204. package/dist/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +2 -10
  205. package/dist/src/hooks/useSize/index.d.ts +2 -13
  206. package/dist/src/hooks/useSwipe/useSwipe.d.ts +3 -20
  207. package/dist/src/hooks/useTrackingId/index.d.ts +6 -17
  208. package/dist/src/internal/components/AddNewItemButton.d.ts +4 -30
  209. package/dist/src/internal/components/Helper/Helper.d.ts +12 -8
  210. package/dist/src/internal/components/InView.d.ts +4 -24
  211. package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +2 -19
  212. package/dist/src/internal/components/Label/Label.d.ts +12 -51
  213. package/dist/src/internal/components/ManualTestLayout/ManualTestLayout.d.ts +3 -2
  214. package/dist/src/internal/components/MenuFooter/MenuFooter.d.ts +11 -17
  215. package/dist/src/internal/components/MultiSelectOptions.d.ts +15 -0
  216. package/dist/src/internal/components/OptionCheckbox.d.ts +2 -0
  217. package/dist/src/internal/components/OptionContentArea.d.ts +4 -0
  218. package/dist/src/internal/components/OptionRow.d.ts +4 -0
  219. package/dist/src/internal/components/OptionsDialog/OptionsDialog.d.ts +13 -1
  220. package/dist/src/internal/components/OptionsPanel.d.ts +16 -0
  221. package/dist/src/internal/components/OptionsPopover/OptionsPopover.d.ts +9 -14
  222. package/dist/src/internal/components/Popover/Popover.d.ts +45 -180
  223. package/dist/src/internal/components/Popover/PopoverButton.d.ts +0 -20
  224. package/dist/src/internal/components/Popover/PopoverClose.d.ts +0 -20
  225. package/dist/src/internal/components/Popover/PopoverContent.d.ts +4 -25
  226. package/dist/src/internal/components/Popover/PopoverTrigger.d.ts +1 -23
  227. package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +0 -21
  228. package/dist/src/internal/components/Popover/internal/usePopoverContext.d.ts +1 -3
  229. package/dist/src/internal/components/SelectOption.d.ts +8 -0
  230. package/dist/src/internal/components/SelectOptions.d.ts +15 -0
  231. package/dist/src/internal/components/Shadow/Shadow.d.ts +1 -0
  232. package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +4 -33
  233. package/dist/src/internal/components/Surface/Surface.d.ts +40 -73
  234. package/dist/src/internal/components/Surface/surfaceGeometry.d.ts +12 -0
  235. package/dist/src/internal/components/VirtualizedOptionsPanel.d.ts +1 -0
  236. package/dist/src/internal/components/YearSelector/YearSelector.d.ts +14 -48
  237. package/dist/src/internal/components/YearSelector/internal/YearItem.d.ts +1 -0
  238. package/dist/src/internal/components/YearSelector/internal/useYearSelectorKeys.d.ts +4 -0
  239. package/dist/src/internal/constants/anvParts.d.ts +3 -55
  240. package/dist/src/internal/flubber/a2c.d.ts +0 -4
  241. package/dist/src/internal/flubber/arc.d.ts +0 -4
  242. package/dist/src/internal/flubber/bezier.d.ts +0 -4
  243. package/dist/src/internal/flubber/errors.d.ts +0 -4
  244. package/dist/src/internal/flubber/index.d.ts +0 -4
  245. package/dist/src/internal/flubber/interpolate.d.ts +3 -0
  246. package/dist/src/internal/flubber/linear.d.ts +0 -4
  247. package/dist/src/internal/flubber/parse.d.ts +0 -4
  248. package/dist/src/internal/flubber/path-properties.d.ts +0 -4
  249. package/dist/src/internal/functions/areOptionsValueEqual.d.ts +2 -5
  250. package/dist/src/internal/functions/buildSelectItems.d.ts +2 -4
  251. package/dist/src/internal/functions/childrenToString.d.ts +3 -21
  252. package/dist/src/internal/functions/getActiveElement.d.ts +4 -0
  253. package/dist/src/internal/functions/getInitial.d.ts +3 -13
  254. package/dist/src/internal/functions/getKeyboardFocusableElements.d.ts +6 -30
  255. package/dist/src/internal/functions/inlineMarkdown.d.ts +3 -16
  256. package/dist/src/internal/functions/isThenable.d.ts +1 -1
  257. package/dist/src/internal/functions/kebabize.d.ts +3 -13
  258. package/dist/src/internal/functions/mapOrder.d.ts +4 -0
  259. package/dist/src/internal/functions/popoverTargetDomProps.d.ts +1 -1
  260. package/dist/src/internal/functions/portalScopeClassNames.d.ts +6 -13
  261. package/dist/src/internal/functions/safePopover.d.ts +2 -0
  262. package/dist/src/internal/functions/sizeToToken.d.ts +1 -0
  263. package/dist/src/internal/functions/stripInlineMarkdown.d.ts +3 -5
  264. package/dist/src/internal/functions/syncFilterUtils.d.ts +4 -2
  265. package/dist/src/internal/functions/warnOnce.d.ts +1 -2
  266. package/dist/src/internal/hooks/useBulkActionRunner.d.ts +4 -27
  267. package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +7 -14
  268. package/dist/src/internal/hooks/useConfirmationDraft.d.ts +4 -4
  269. package/dist/src/internal/hooks/useContainerQuery/useContainerQuery.d.ts +2 -33
  270. package/dist/src/internal/hooks/useDebouncedCallback/useDebouncedCallback.d.ts +3 -25
  271. package/dist/src/internal/hooks/useDialogScrollLock/useDialogScrollLock.d.ts +6 -31
  272. package/dist/src/internal/hooks/useDialogTransitionStates/useDialogTransitionStates.d.ts +2 -27
  273. package/dist/src/internal/hooks/useDownshiftEnvironment/useDownshiftEnvironment.d.ts +8 -24
  274. package/dist/src/internal/hooks/useFocusWithin/useFocusWithin.d.ts +3 -14
  275. package/dist/src/internal/hooks/useGroupedOptions.d.ts +4 -22
  276. package/dist/src/internal/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +4 -47
  277. package/dist/src/internal/hooks/useInvalidateOnOptionsChange.d.ts +2 -7
  278. package/dist/src/internal/hooks/useIsScrollable/useIsScrollable.d.ts +1 -5
  279. package/dist/src/internal/hooks/useKeyboardFocusables/useKeyboardFocusables.d.ts +1 -38
  280. package/dist/src/internal/hooks/useLayoutPropsUtil/useLayoutPropsUtil.d.ts +2 -38
  281. package/dist/src/internal/hooks/useNumberField/internal/createNumberMaskOptions.d.ts +2 -5
  282. package/dist/src/internal/hooks/useNumberField/internal/createTrailingZerosHandlers.d.ts +1 -2
  283. package/dist/src/internal/hooks/useNumberField/internal/numberMaskUtils.d.ts +0 -6
  284. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldInputMode.d.ts +2 -17
  285. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldKeys.d.ts +4 -30
  286. package/dist/src/internal/hooks/useNumberField/useNumberField.d.ts +19 -65
  287. package/dist/src/internal/hooks/useOnClickOutside/useOnClickOutside.d.ts +5 -33
  288. package/dist/src/internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates.d.ts +4 -28
  289. package/dist/src/internal/hooks/useOptionallyControlledState/useOptionallyControlledState.d.ts +2 -46
  290. package/dist/src/internal/hooks/useOptionsSections.d.ts +4 -9
  291. package/dist/src/internal/hooks/usePinnedOptions.d.ts +4 -24
  292. package/dist/src/internal/hooks/usePlatform/usePlatform.d.ts +3 -50
  293. package/dist/src/internal/hooks/usePopoverCloseDelayWorkaround/usePopoverCloseDelayWorkaround.d.ts +4 -0
  294. package/dist/src/internal/hooks/usePopoverTransitionStates/usePopoverTransitionStates.d.ts +1 -21
  295. package/dist/src/internal/hooks/usePrevious/usePrevious.d.ts +1 -0
  296. package/dist/src/internal/hooks/useProcessedOptions.d.ts +2 -3
  297. package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +18 -61
  298. package/dist/src/internal/hooks/useSelectOrchestration.d.ts +4 -3
  299. package/dist/src/internal/hooks/useToggleSelection.d.ts +3 -3
  300. package/dist/src/internal/hooks/useTypeAhead/useTypeAhead.d.ts +3 -11
  301. package/dist/src/internal/testing/anvPartsContract.d.ts +9 -9
  302. package/dist/src/internal/testing/reactHostProps.d.ts +2 -2
  303. package/dist/src/internal/types/addNewItemTypes.d.ts +14 -16
  304. package/dist/src/internal/types/argTypes.d.ts +2 -0
  305. package/dist/src/internal/types/bulkActionTypes.d.ts +12 -41
  306. package/dist/src/internal/types/confirmationTypes.d.ts +6 -7
  307. package/dist/src/internal/types/optionContent.d.ts +6 -9
  308. package/dist/src/internal/types/props.d.ts +6 -1
  309. package/dist/src/internal/types/selectFieldInternalTypes.d.ts +10 -12
  310. package/dist/src/internal/utils/arrayIdsEqual.d.ts +1 -5
  311. package/dist/src/internal/utils/generateChromaticStickersheetProps.d.ts +4 -8
  312. package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +0 -4
  313. package/dist/src/internal/utils/layerManager.d.ts +5 -28
  314. package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +0 -2
  315. package/dist/src/providers/AnvilProvider/AnvilProvider.d.ts +4 -0
  316. package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +16 -6
  317. package/dist/src/providers/LocalizationProvider/LocalizationContext.d.ts +7 -0
  318. package/dist/src/providers/LocalizationProvider/LocalizationProvider.d.ts +6 -0
  319. package/dist/src/providers/LocalizationProvider/LocalizationStoryWrapper.d.ts +1 -0
  320. package/dist/src/providers/LocalizationProvider/useTranslations.d.ts +6 -0
  321. package/dist/src/providers/PortalProvider/PortalProvider.d.ts +1 -0
  322. package/dist/src/providers/PortalProvider/PortalProviderContext.d.ts +3 -0
  323. package/dist/src/providers/ThemeProvider/ThemeProvider.d.ts +16 -0
  324. package/dist/src/providers/ThemeProvider/index.d.ts +1 -1
  325. package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +2 -0
  326. package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +3 -4
  327. package/dist/src/providers/ThemeProvider/useTheme.d.ts +5 -0
  328. package/dist/src/providers/TrackingProvider/TrackingProvider.d.ts +1 -0
  329. package/dist/src/providers/TrackingProvider/TrackingProviderContext.d.ts +7 -0
  330. package/dist/src/providers/TrackingProvider/useTrackingContext.d.ts +5 -0
  331. package/dist/src/themes/carto.d.ts +3 -43
  332. package/dist/src/types/DataTrackingId.d.ts +1 -0
  333. package/dist/src/types/DistributiveOmit.d.ts +1 -14
  334. package/dist/src/types/MaxLengthCounterProps.d.ts +4 -0
  335. package/dist/src/types/PassThroughProps.d.ts +3 -0
  336. package/dist/src/types/ai-marks.d.ts +14 -45
  337. package/dist/src/types/ianaZones.d.ts +2 -0
  338. package/dist/src/types/locales.d.ts +1 -0
  339. package/dist/src/types/props.d.ts +14 -16
  340. package/dist/{stripInlineMarkdown-82hVO9EP.js → stripInlineMarkdown-CosQSmBr.js} +2 -2
  341. package/dist/stripInlineMarkdown-CosQSmBr.js.map +1 -0
  342. package/dist/{syncFilterUtils-CKXbRZG8.js → syncFilterUtils-_uwyt6FD.js} +20 -19
  343. package/dist/syncFilterUtils-_uwyt6FD.js.map +1 -0
  344. package/dist/themes.js.map +1 -1
  345. package/dist/token/core/component-variables.scss +156 -0
  346. package/dist/token/core/component.d.ts +78 -0
  347. package/dist/token/core/component.js +1018 -0
  348. package/dist/token/core/component.scss +82 -0
  349. package/dist/token.js +1096 -0
  350. package/dist/token.js.map +1 -1
  351. package/dist/{treeSync-ONC4TbTR.js → treeSync-Bp80Xduj.js} +4 -4
  352. package/dist/{treeSync-ONC4TbTR.js.map → treeSync-Bp80Xduj.js.map} +1 -1
  353. package/dist/useAccessibleColor-BYKjkGRg.js.map +1 -1
  354. package/dist/useBreakpoint-BBNRlMGZ.js.map +1 -1
  355. package/dist/useDebouncedCallback-DLkapjcP.js.map +1 -1
  356. package/dist/useDialogScrollLock-BW-aVboo.js.map +1 -1
  357. package/dist/{useDrilldown-CicFEJpD.js → useDrilldown-D5XGfAUT.js} +3 -3
  358. package/dist/{useDrilldown-CicFEJpD.js.map → useDrilldown-D5XGfAUT.js.map} +1 -1
  359. package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
  360. package/dist/{useInfiniteCombobox-DJoVEIk6.js → useInfiniteCombobox-ORhH44Rp.js} +6 -6
  361. package/dist/{useInfiniteCombobox-DJoVEIk6.js.map → useInfiniteCombobox-ORhH44Rp.js.map} +1 -1
  362. package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-CGybEc6x.js} +2 -6
  363. package/dist/useInitialFocus-CGybEc6x.js.map +1 -0
  364. package/dist/useIntersectionObserver-BEmMDO3P.js.map +1 -1
  365. package/dist/{useInvalidateOnOptionsChange-C6tF7696.js → useInvalidateOnOptionsChange-ieSgbkwT.js} +4 -4
  366. package/dist/useInvalidateOnOptionsChange-ieSgbkwT.js.map +1 -0
  367. package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
  368. package/dist/useMergeRefs-Dfmtq9cI.js.map +1 -1
  369. package/dist/useNumberField-CXFYUZ_n.js.map +1 -1
  370. package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -1
  371. package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
  372. package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
  373. package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +1 -0
  374. package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -1
  375. package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +1 -1
  376. package/dist/usePrevious-Bvq-5auG.js.map +1 -1
  377. package/dist/useSize.js.map +1 -1
  378. package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
  379. package/dist/useTheme-B4i6a3bM.js.map +1 -1
  380. package/dist/useTrackingContext-C522P4sv.js.map +1 -1
  381. package/dist/useTrackingId.js.map +1 -1
  382. package/dist/warnOnce-Y9PRHcU4.js.map +1 -1
  383. package/package.json +2 -2
  384. package/dist/AnvilProvider-D8msiELo.js.map +0 -1
  385. package/dist/Calendar-kSH8F7gx.js.map +0 -1
  386. package/dist/DataTable-D0YlJ7IA.js.map +0 -1
  387. package/dist/FieldLabel-CYCk2rz-.js.map +0 -1
  388. package/dist/FilterBar-CrIPZKvL.js.map +0 -1
  389. package/dist/ListView-Bkv1ZCSu.js.map +0 -1
  390. package/dist/Listbox-BWy_uBqm.js.map +0 -1
  391. package/dist/MenuFooter--lBF8OjJ.js.map +0 -1
  392. package/dist/MultiSelectFieldSync-gH-TQnq3.js.map +0 -1
  393. package/dist/SelectFieldLabel-CcX2GAym.js.map +0 -1
  394. package/dist/SelectOptions-BeehD5VV.js.map +0 -1
  395. package/dist/TimeField-DpnX_t31.js.map +0 -1
  396. package/dist/anvParts-BGg5dgfl.js +0 -43
  397. package/dist/anvParts-BGg5dgfl.js.map +0 -1
  398. package/dist/bulkActionTypes-Ct2cwT7b.js.map +0 -1
  399. package/dist/downshift.esm-xtSnQp44.js.map +0 -1
  400. package/dist/stripInlineMarkdown-82hVO9EP.js.map +0 -1
  401. package/dist/syncFilterUtils-CKXbRZG8.js.map +0 -1
  402. package/dist/useInitialFocus-BIvXK1Rp.js.map +0 -1
  403. package/dist/useInvalidateOnOptionsChange-C6tF7696.js.map +0 -1
  404. package/dist/usePopoverTransitionStates-B1opfxxn.js.map +0 -1
@@ -1,80 +1,35 @@
1
1
  /**
2
- * Return type for the useBreakpoint hook
2
+ * Viewport measurements and mobile-first flags for the active Hammer breakpoint.
3
3
  */
4
4
  export type BreakpointReturnProps = {
5
- /**
6
- * The breakpoint name
7
- */
5
+ /** Active breakpoint range. */
8
6
  name: "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
9
- /**
10
- * Minimum width for this breakpoint
11
- */
7
+ /** Inclusive lower bound, or `undefined` for `xs`. */
12
8
  min: number | undefined;
13
- /**
14
- * Maximum width for this breakpoint
15
- */
9
+ /** Exclusive upper bound, or `undefined` for `xxl`. */
16
10
  max: number | undefined;
17
- /**
18
- * Current device orientation
19
- */
11
+ /** `"portrait"` when height exceeds width; otherwise `"landscape"`. */
20
12
  orientation: "portrait" | "landscape";
21
- /**
22
- * Current viewport width in CSS pixels (from window.innerWidth)
23
- */
13
+ /** Current viewport width in CSS pixels. */
24
14
  innerWidth: number;
25
- /**
26
- * Current viewport height in CSS pixels (from window.innerHeight)
27
- */
15
+ /** Current viewport height in CSS pixels. */
28
16
  innerHeight: number;
29
- /**
30
- * True for all breakpoints (mobile-first: xs and above)
31
- */
17
+ /** Always true when breakpoint data is available. */
32
18
  xs: boolean;
33
- /**
34
- * True when viewport width >= 640px (mobile-first: sm and above)
35
- */
19
+ /** Whether the active range is `sm` or wider. */
36
20
  sm: boolean;
37
- /**
38
- * True when viewport width >= 768px (mobile-first: md and above)
39
- */
21
+ /** Whether the active range is `md` or wider. */
40
22
  md: boolean;
41
- /**
42
- * True when viewport width >= 1024px (mobile-first: lg and above)
43
- */
23
+ /** Whether the active range is `lg` or wider. */
44
24
  lg: boolean;
45
- /**
46
- * True when viewport width >= 1280px (mobile-first: xl and above)
47
- */
25
+ /** Whether the active range is `xl` or wider. */
48
26
  xl: boolean;
49
- /**
50
- * True when viewport width >= 1536px (mobile-first: xxl and above)
51
- */
27
+ /** Whether the active range is `xxl`. */
52
28
  xxl: boolean;
53
29
  };
54
30
  /**
55
- * Custom hook for detecting current breakpoint and viewport information.
56
- *
57
- * Features:
58
- * - Detects current breakpoint based on viewport width
59
- * - Supports all standard breakpoints (xs, sm, md, lg, xl, xxl)
60
- * - Provides mobile-first boolean props (e.g., `lg` is true for lg, xl, and xxl)
61
- * - Provides device orientation information
62
- * - Returns current viewport dimensions
63
- * - Uses hammer-token breakpoint values for consistency
64
- * - Listens for window resize events
65
- * - Supports optional disable functionality
66
- * - Uses window.innerWidth/innerHeight for viewport measurements
67
- *
68
- * @example
69
- * ```tsx
70
- * const breakpoint = useBreakpoint();
71
- * // Mobile-first approach:
72
- * <div className={cn({ 'p-block-4': breakpoint?.lg })} />
73
- * ```
74
- *
75
- * @param props - Optional configuration object
76
- * @param props.disable - Whether to disable the hook
77
- * @returns Current breakpoint information or undefined if disabled
31
+ * Tracks {@link BreakpointReturnProps} on resize.
32
+ * Returns `undefined` when disabled or Hammer breakpoint tokens are unavailable.
78
33
  */
79
34
  export declare const useBreakpoint: (props?: {
80
35
  disable?: boolean;
@@ -1,28 +1,11 @@
1
1
  import { Ref, RefCallback } from 'react';
2
2
  /**
3
- * Custom hook for merging multiple React refs into a single callback ref.
4
- * @see https://floating-ui.com/docs/react-utils#usemergerefs
5
- *
6
- * Features:
7
- * - Merges an array of refs into a single callback ref
8
- * - Handles both function refs and object refs
9
- * - Optimized with useMemo for performance
10
- * - Returns null when all refs are null/undefined
11
- * - Supports generic types for type safety
12
- * - Automatically handles ref assignment and cleanup
3
+ * Combines React refs into one stable callback ref, or `null` when all are empty.
13
4
  *
14
- * @param refs - Array of React refs to merge
15
- * @returns Single callback ref that handles all provided refs, or null if all refs are null
5
+ * @see https://floating-ui.com/docs/react-utils#usemergerefs
16
6
  */
17
7
  export declare function useMergeRefs<Instance>(refs: Array<Ref<Instance> | undefined>): RefCallback<Instance> | null;
18
8
  /**
19
- * Merges an array of refs into a single callback ref.
20
- *
21
- * Features:
22
- * - Merges an array of refs into a single callback ref
23
- * - Handles both function refs and object refs
24
- *
25
- * @param refs - Array of React refs to merge
26
- * @returns
9
+ * Combines React refs into one callback ref, or `null` when all are empty.
27
10
  */
28
11
  export declare function mergeRefs<Instance>(refs: Array<Ref<Instance> | undefined>): RefCallback<Instance> | null;
@@ -1,15 +1,6 @@
1
1
  /**
2
- * Custom hook for detecting system color scheme preference.
3
- *
4
- * Features:
5
- * - Detects system dark/light mode preference
6
- * - Listens for changes in system color scheme
7
- * - Supports both modern and legacy event listeners
8
- * - Handles SSR environments gracefully
9
- * - Automatically cleans up event listeners
10
- * - Returns consistent light/dark mode values
11
- *
12
- * @returns Object containing current color scheme mode
2
+ * Tracks whether the user's system color scheme is light or dark.
3
+ * Reports `"light"` until the media query is read after mount.
13
4
  */
14
5
  export declare const usePrefersColorScheme: () => {
15
6
  mode: "light" | "dark";
@@ -1,14 +1,6 @@
1
1
  /**
2
- * Custom hook for detecting user's reduced motion preference.
3
- *
4
- * Features:
5
- * - Detects system reduced motion preference
6
- * - Listens for changes in system motion preference
7
- * - Uses `MediaQueryList#addEventListener("change")` when available, with `addListener` / `removeListener` fallback for older browsers
8
- * - Handles SSR environments gracefully
9
- * - Automatically cleans up event listeners
10
- *
11
- * @returns Object containing whether reduced motion is preferred
2
+ * Tracks whether the user has requested reduced motion at the system level.
3
+ * Reports `false` until the media query is read after mount.
12
4
  */
13
5
  export declare const usePrefersReducedMotion: () => {
14
6
  prefersReducedMotion: boolean;
@@ -1,18 +1,7 @@
1
1
  import { RefObject } from 'react';
2
2
  /**
3
- * Custom hook for measuring element dimensions and tracking size changes.
4
- *
5
- * Features:
6
- * - Measures element dimensions using getBoundingClientRect
7
- * - Tracks size changes using ResizeObserver
8
- * - Provides real-time size updates
9
- * - Handles initial size measurement on mount
10
- * - Returns DOMRectReadOnly for comprehensive size information
11
- * - Automatically cleans up observer on unmount
12
- * - Uses useLayoutEffect for immediate initial measurement
13
- *
14
- * @param target - Reference to the element to measure
15
- * @returns Current element size as DOMRectReadOnly or undefined
3
+ * Tracks `target`'s size. `undefined` until the first layout measurement.
4
+ * First read is the border box (`getBoundingClientRect`); later updates are `contentRect`.
16
5
  */
17
6
  export declare const useSize: (target: RefObject<HTMLElement>) => DOMRectReadOnly | undefined;
18
7
  export default useSize;
@@ -1,28 +1,11 @@
1
1
  import { TouchEvent } from 'react';
2
- /**
3
- * Type definition for swipe direction
4
- * @property {string | null} direction - The direction of the swipe (left, right, or null)
5
- */
6
2
  export type UseSwipeFn = {
7
- /**
8
- * The direction of the swipe (left, right, or null)
9
- */
3
+ /** `"left"` or `"right"` after a horizontal swipe of more than 50px; otherwise `null`. */
10
4
  direction: string | null;
11
5
  };
12
6
  /**
13
- * Custom hook for detecting swipe gestures on touch devices.
14
- *
15
- * Features:
16
- * - Detects left and right swipe gestures
17
- * - Configurable minimum swipe distance threshold
18
- * - Provides touch event handlers for easy integration
19
- * - Supports optional callback function for swipe events
20
- * - Tracks current swipe direction state
21
- * - Handles touch start, move, and end events
22
- * - Prevents false positives from regular touch events
23
- *
24
- * @param func - Optional callback function called when a swipe is detected
25
- * @returns Object containing touch event handlers and current swipe direction
7
+ * Horizontal swipe detection. Spread the returned `onTouch*` handlers onto the target.
8
+ * Optional `func` runs when a swipe resolves (including `null` when the gesture is too short).
26
9
  */
27
10
  export declare const useSwipe: (func?: (direction: UseSwipeFn["direction"]) => void) => {
28
11
  onTouchMove: (e: TouchEvent<HTMLElement>) => void;
@@ -1,26 +1,15 @@
1
1
  /**
2
- * Custom hook for generating and managing tracking IDs for analytics.
3
- *
4
- * Features:
5
- * - Generates unique tracking IDs for analytics events
6
- * - Integrates with TrackingProvider for centralized tracking management
7
- * - Supports opt-out functionality for privacy compliance
8
- * - Handles tracking overrides for testing or special cases
9
- * - Uses JSON stringification for consistent data serialization
10
- * - Automatically updates tracking ID when data or name changes
11
- * - Respects user privacy preferences through opt-out mechanism
12
- * - Provides async tracking ID generation
13
- *
14
- * @param props - Configuration object containing tracking parameters
15
- * @param props.name - The name identifier for the tracking event
16
- * @param props.data - The data object to track
17
- * @param props.hasOverride - Whether to override tracking behavior
18
- * @returns Generated tracking ID string or undefined if tracking is disabled
2
+ * Resolves an analytics tracking ID from {@link TrackingProvider}.
3
+ * Returns `undefined` until the async lookup finishes. `hasOverride` and provider
4
+ * `optOut` skip the lookup; they do not clear an already resolved ID.
19
5
  */
20
6
  export declare const useTrackingId: ({ name, data, hasOverride, }: {
7
+ /** Component segment passed as `getTrackingId`'s second argument. */
21
8
  name: string;
9
+ /** Payload serialized with `JSON.stringify` for the lookup key. */
22
10
  data: {
23
11
  [key: string]: unknown;
24
12
  };
13
+ /** Skip the lookup. Same skip path as provider `optOut`. */
25
14
  hasOverride?: boolean;
26
15
  }) => string | undefined;
@@ -1,39 +1,13 @@
1
1
  import { AddNewItemProps } from '../types/addNewItemTypes';
2
- /**
3
- * Props for the AddNewItemButton component.
4
- *
5
- * @property {string} searchText - The current search text, forwarded to the consumer's handler and label callback.
6
- * @property {() => void} [onCloseMenu] - Internal hook for the host menu to close itself when the button is clicked. Fires before the consumer's handler.
7
- * @extends AddNewItemProps
8
- */
9
2
  export type AddNewItemButtonProps = AddNewItemProps & {
10
- /** The current search text, forwarded to the consumer's handler and label callback. */
3
+ /** Passed to the label callback and add-item handler. */
11
4
  searchText: string;
12
- /** Internal hook for the host menu to close itself when the button is clicked. */
5
+ /** Closes the host menu before the add-item handler runs. */
13
6
  onCloseMenu?: () => void;
14
7
  };
15
8
  /**
16
- * AddNewItemButton renders the consumer's "Add new item" affordance for the
17
- * Select* / MultiSelect* components. Positioning, padding, background tint,
18
- * and the visual separator from the option list are owned by the surrounding
19
- * popover/dialog footer slot — this component is only responsible for the
20
- * button itself.
21
- *
22
- * Features:
23
- * - Renders nothing when no `onAddNewItem` handler is provided
24
- * - Renders nothing when `addItemLabel` is a function that returns `null`/`undefined`
25
- * - Static or dynamic label resolved against the current search text
26
- * - Closes the host menu via `onCloseMenu` when clicked, before invoking the consumer's handler
27
- *
28
- * @example
29
- * <AddNewItemButton
30
- * searchText={searchText}
31
- * addItemLabel={(s) => `Add "${s}"`}
32
- * onAddNewItem={(text) => openAddDialog(text)}
33
- * onCloseMenu={closeMenu}
34
- * />
35
- *
36
- * @returns The button, or null when the feature is not enabled / label is hidden.
9
+ * Add-new affordance for select menus. It remains unmounted without a handler
10
+ * or when the label callback returns `null`/`undefined`.
37
11
  */
38
12
  export declare const AddNewItemButton: {
39
13
  ({ searchText, addItemLabel, onAddNewItem, onCloseMenu, }: AddNewItemButtonProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,27 +1,31 @@
1
1
  import { AriaAttributes, ReactElement } from 'react';
2
2
  export type HelperProps = {
3
+ /** `aria-describedby` target on the helper container. */
3
4
  id?: string;
5
+ /** Always-visible hint; forwarded to {@link FieldMessage}. */
4
6
  hint?: ReactElement | string;
7
+ /** Secondary copy under the hint; forwarded to {@link FieldMessage}. */
5
8
  description?: ReactElement | string;
6
- /**
7
- * Error message(s) to display. Supports a single string or an array of strings.
8
- */
9
+ /** Error copy; forwarded to {@link FieldMessage}. */
9
10
  error?: string | string[];
10
- /**
11
- * Warning message(s) to display. Supports a single string or an array of strings.
12
- */
11
+ /** Warning copy; forwarded to {@link FieldMessage}. */
13
12
  warning?: string | string[];
14
13
  /**
15
- * @deprecated Use the `error` prop instead.
14
+ * @deprecated Use `error`.
16
15
  */
17
16
  errorMessage?: ReactElement | string;
18
17
  /**
19
- * @deprecated No longer used. Error messages always use `aria-live="assertive"`.
18
+ * @deprecated Unused. Errors are always `aria-live="assertive"`.
20
19
  */
21
20
  errorAriaLive?: AriaAttributes["aria-live"];
21
+ /** Counter denominator and remaining-character live-region limit. */
22
22
  maxLength?: number;
23
+ /** Current character count. Defaults to `0`. */
23
24
  inputLength?: number;
25
+ /** With a truthy `maxLength`, announces remaining characters (or max reached). */
24
26
  isTyping?: boolean;
27
+ /** Visual `inputLength/maxLength` counter (`aria-hidden`). */
25
28
  showCounter?: boolean;
26
29
  };
30
+ /** {@link FieldMessage} slot plus optional max-length counter and typing live region. */
27
31
  export declare const Helper: import('react').ForwardRefExoticComponent<HelperProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,34 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
- /**
3
- * Props for the InView component
4
- * @property {ReactNode} children - The content to render inside the visibility-tracked container
5
- * @property {(isVisible: boolean) => void} [onVisibilityChange] - Callback fired when visibility changes
6
- */
7
2
  type InViewProps = {
8
- /**
9
- * The content to render inside the visibility-tracked container
10
- */
11
3
  children?: ReactNode;
12
- /**
13
- * Callback fired when the element's visibility in the viewport changes
14
- */
4
+ /** Receives each observed viewport-visibility change. */
15
5
  onVisibilityChange?: (isVisible: boolean) => void;
16
- /**
17
- * The root margin for the intersection observer
18
- */
6
+ /** Expands or contracts the viewport bounds using CSS margin syntax. */
19
7
  rootMargin?: string;
20
8
  };
21
9
  /**
22
- * Internal component that detects when its content is visible in the viewport.
23
- *
24
- * Features:
25
- * - Uses Intersection Observer API for efficient visibility detection
26
- * - Fires callback when visibility state changes
27
- * - Handles browser compatibility gracefully
28
- * - Automatically cleans up observer on unmount
29
- *
30
- * @param props - Component props
31
- * @returns Wrapped children with visibility detection
10
+ * Wraps content in an Intersection Observer target and reports viewport
11
+ * visibility.
32
12
  */
33
13
  export declare const InView: ({ children, onVisibilityChange, rootMargin, }: InViewProps) => import("react/jsx-runtime").JSX.Element;
34
14
  export {};
@@ -1,23 +1,6 @@
1
- /**
2
- * Props for the InlineMarkdown component
3
- * @property {string} [value] - The markdown string to parse and render
4
- */
5
1
  export interface InlineMarkdownProps {
2
+ /** Markdown source. Defaults to `""`. */
6
3
  value?: string;
7
4
  }
8
- /**
9
- * Renders a string with limited inline markdown constructs as formatted React content.
10
- *
11
- * Features:
12
- * - Bold: `**text**`
13
- * - Italic: `*text*`
14
- * - Bold and italic: `***text***`
15
- * - Highlight: `==text==`
16
- * - Inline code: `` `text` ``
17
- * - Memoized rendering for performance
18
- * - Passes through plain strings with no overhead
19
- *
20
- * @example
21
- * <InlineMarkdown value="Save **now** or `discard`" />
22
- */
5
+ /** Turns limited inline markdown into React nodes. */
23
6
  export declare const InlineMarkdown: ({ value }: InlineMarkdownProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,77 +1,38 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { TooltipProps } from '../../../components/Tooltip';
3
- /**
4
- * Props for the Label component.
5
- */
6
3
  export type LabelProps = Omit<ComponentPropsWithoutRef<"label">, "id"> & {
7
- /** Unique identifier for the label element */
8
4
  id?: string;
9
5
  /**
10
- * Whether the field is required. Shows a red asterisk (*) when true.
11
- * @default false
6
+ * Shows a visual asterisk and a screen-reader `Required`. Defaults to
7
+ * omitted / not required.
12
8
  */
13
9
  required?: boolean;
14
- /** Additional information to display in a tooltip */
10
+ /** Tooltip copy on the info icon; also repeated in a visually hidden span. */
15
11
  moreInfo?: ReactNode;
16
12
  /**
17
- * Controls the open state of the more info tooltip.
18
- * @default false
13
+ * Forces the info tooltip open when true. When it becomes falsy, the tooltip
14
+ * closes, then returns to uncontrolled on the next tick.
19
15
  */
20
16
  moreInfoOpen?: TooltipProps["open"];
21
17
  };
22
- /**
23
- * Internal component for rendering the info icon with tooltip.
24
- *
25
- * @param props - Component props
26
- * @param props.moreInfo - The content to display in the tooltip
27
- * @param props.moreInfoOpen - Controls the tooltip open state
28
- */
18
+ /** Info-icon tooltip; `moreInfoOpen` is snap-then-uncontrolled. */
29
19
  export declare const LabelMoreInfoIcon: ({ moreInfo, moreInfoOpen, }: {
30
20
  moreInfo: LabelProps["moreInfo"];
31
21
  moreInfoOpen: LabelProps["moreInfoOpen"];
32
22
  }) => import("react/jsx-runtime").JSX.Element;
33
- /**
34
- * Label component for form field labels with optional required indicator and help tooltip.
35
- *
36
- * Features:
37
- * - Accessible form label with proper semantic HTML
38
- * - Optional required field indicator with red asterisk
39
- * - Help tooltip with info icon for additional context
40
- * - Screen reader support for required field announcement
41
- * - Controlled and uncontrolled tooltip state management
42
- * - Flexible content support for label text and help information
43
- * - Proper ARIA attributes and semantic structure
44
- * - Responsive design with consistent typography
45
- *
46
- * @example
47
- * <Label htmlFor="email" required>
48
- * Email Address
49
- * </Label>
50
- * <input id="email" type="email" />
51
- *
52
- * @example
53
- * <Label
54
- * htmlFor="password"
55
- * required
56
- * moreInfo="Password must be at least 8 characters long"
57
- * >
58
- * Password
59
- * </Label>
60
- * <input id="password" type="password" />
61
- */
23
+ /** Form `<label>` with optional required marker and more-info tooltip. */
62
24
  export declare const Label: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "id"> & {
63
- /** Unique identifier for the label element */
64
25
  id?: string;
65
26
  /**
66
- * Whether the field is required. Shows a red asterisk (*) when true.
67
- * @default false
27
+ * Shows a visual asterisk and a screen-reader `Required`. Defaults to
28
+ * omitted / not required.
68
29
  */
69
30
  required?: boolean;
70
- /** Additional information to display in a tooltip */
31
+ /** Tooltip copy on the info icon; also repeated in a visually hidden span. */
71
32
  moreInfo?: ReactNode;
72
33
  /**
73
- * Controls the open state of the more info tooltip.
74
- * @default false
34
+ * Forces the info tooltip open when true. When it becomes falsy, the tooltip
35
+ * closes, then returns to uncontrolled on the next tick.
75
36
  */
76
37
  moreInfoOpen?: TooltipProps["open"];
77
38
  } & import('react').RefAttributes<HTMLLabelElement>>;
@@ -1,7 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type ManualTestParams = {
3
+ /** Heading shown above the component under test. */
3
4
  title: string;
5
+ /** Screen-reader or a11y tool this procedure is written for. */
4
6
  tool: string;
7
+ /** Ordered instructions. Lines starting with `Expected` are visually emphasized. */
5
8
  steps: string[];
6
9
  };
7
10
  type ManualTestLayoutProps = ManualTestParams & {
@@ -9,8 +12,6 @@ type ManualTestLayoutProps = ManualTestParams & {
9
12
  };
10
13
  /**
11
14
  * Layout helper for manual accessibility test stories.
12
- * Renders the test title, tool, and step-by-step instructions
13
- * visibly above the component under test.
14
15
  */
15
16
  export declare function ManualTestLayout({ title, tool, steps, children, }: ManualTestLayoutProps): import("react/jsx-runtime").JSX.Element;
16
17
  export {};
@@ -1,14 +1,22 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type MenuFooterClearConfig = {
3
+ /** Clears the host's current selection. */
3
4
  onClick: () => void;
5
+ /** Button text. Defaults to `"Clear"`. */
4
6
  label?: string;
7
+ /** Prevents clearing while preserving the control in the layout. */
5
8
  disabled?: boolean;
6
9
  };
7
10
  export type MenuFooterConfirmationConfig = {
11
+ /** Commits the host's pending selection. */
8
12
  onApply: () => void;
13
+ /** Discards the host's pending selection. */
9
14
  onCancel: () => void;
15
+ /** Commit button text. Defaults to `"Apply"`. */
10
16
  applyLabel?: string;
17
+ /** Cancel button text. Defaults to `"Cancel"`. */
11
18
  cancelLabel?: string;
19
+ /** Prevents committing while leaving cancellation available. */
12
20
  applyDisabled?: boolean;
13
21
  };
14
22
  export type MenuFooterProps = {
@@ -16,26 +24,12 @@ export type MenuFooterProps = {
16
24
  clear?: MenuFooterClearConfig;
17
25
  /** Apply/Cancel pair config. Omit when not in confirmation mode. */
18
26
  confirmation?: MenuFooterConfirmationConfig;
19
- /**
20
- * Pre-rendered add-new affordance (AddNewItemButton or similar). Layout owns
21
- * its row vs. inline placement; the caller just provides the node.
22
- */
27
+ /** Pre-rendered affordance; placement depends on the other footer controls. */
23
28
  addNew?: ReactNode;
24
29
  };
25
30
  /**
26
- * MenuFooter composes the footer of a menu popover/dialog from up to three
27
- * optional pieces: a clear-selection button, an Apply/Cancel pair, and an
28
- * add-new affordance.
29
- *
30
- * Layout rules:
31
- * - clear + confirmation + addNew → [addNew full-width row] / [clear | apply cancel]
32
- * - clear + confirmation → [clear | apply cancel]
33
- * - clear + addNew → [addNew] / [clear] (stacked, both full-width)
34
- * - clear → [clear] (full-width)
35
- * - confirmation + addNew → [addNew | apply cancel] (addNew on the leading side)
36
- * - confirmation → [apply | cancel]
37
- * - addNew → [addNew]
38
- * - (none) → null
31
+ * Composes clear, confirmation, and add-new controls into a menu footer.
32
+ * Returns `null` when all three are omitted.
39
33
  */
40
34
  export declare const MenuFooter: {
41
35
  ({ clear, confirmation, addNew, }: MenuFooterProps): import("react/jsx-runtime").JSX.Element | null;
@@ -3,21 +3,36 @@ import { CSSProperties } from 'react';
3
3
  import { OptionsPanelHandle } from './OptionsPanel';
4
4
  import { GetItemPropsFn, GetMenuPropsFn, SectionMeta, SelectItem } from '../types/selectFieldInternalTypes';
5
5
  export type MultiSelectOptionsProps = {
6
+ /** When false, option rows stay unmounted inside the menu scroller. */
6
7
  isOpen: boolean;
8
+ /** Flattened option, pinned/group, and bulk-action rows. */
7
9
  items: SelectItem[];
10
+ /** Downshift getter for the menu scroller. */
8
11
  getMenuProps: GetMenuPropsFn;
12
+ /** Downshift getter for each option row. */
9
13
  getItemProps: GetItemPropsFn;
14
+ /** Host highlight index into `items`. */
10
15
  highlightedIndex: number;
16
+ /** Current multi selection used to derive each row's check state. */
11
17
  selectedOptions: MultiSelectFieldOption[];
18
+ /** When true, shows the load-more control. */
12
19
  hasMore: boolean;
20
+ /** Fetches the next page of options. */
13
21
  onLoadMore: () => void;
22
+ /** Replaces the list with a spinner while the current page loads. */
14
23
  loading: boolean;
24
+ /** Spinner in the load-more slot. */
15
25
  loadingMore: boolean;
26
+ /** Skips automatic next-page fetch; the Load more button remains. */
16
27
  disableAutoLoadMore?: boolean;
28
+ /** Disables every row, in addition to per-item `disabled`. */
17
29
  disabled?: boolean;
18
30
  className?: string;
19
31
  style?: CSSProperties;
32
+ /** Pinned and group ranges over `items`. */
20
33
  sectionsMeta?: SectionMeta[];
34
+ /** Uses the virtualized panel when true. Defaults to the non-virtual list. */
21
35
  virtualize?: boolean;
22
36
  };
37
+ /** Multi-select option list. Forwards to {@link OptionsPanel} or the virtualized panel. */
23
38
  export declare const MultiSelectOptions: import('react').ForwardRefExoticComponent<MultiSelectOptionsProps & import('react').RefAttributes<OptionsPanelHandle>>;
@@ -1,6 +1,8 @@
1
1
  import { CheckState } from '../../types';
2
2
  export type OptionCheckboxProps = {
3
+ /** Selects the checkbox glyph, or shows a spinner while loading. */
3
4
  checkState: CheckState;
4
5
  className?: string;
5
6
  };
7
+ /** Decorative selection-state indicator for a multiple-select option. */
6
8
  export declare function OptionCheckbox({ checkState, className }: OptionCheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { OptionContent } from '../types/optionContent';
3
3
  export type OptionContentAreaProps = {
4
+ /** Fallback title when `content.title` is omitted. */
4
5
  label: string;
6
+ /** Optional structured details for the option. */
5
7
  content?: OptionContent;
8
+ /** Additional content rendered after the option's details. */
6
9
  children?: ReactNode;
7
10
  };
11
+ /** Arranges an option's avatar, text details, tags, and trailing icon. */
8
12
  export declare function OptionContentArea({ label, content, children, }: OptionContentAreaProps): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,14 @@
1
1
  import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  export type OptionRowProps = ComponentPropsWithoutRef<"div"> & {
3
+ /** Applies disabled styling; interaction semantics remain caller-owned. */
3
4
  disabled?: boolean;
4
5
  };
6
+ /** Shared layout and state styling for an option row. */
5
7
  export declare const OptionRow: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
+ /** Applies disabled styling; interaction semantics remain caller-owned. */
6
9
  disabled?: boolean;
7
10
  } & import('react').RefAttributes<HTMLDivElement>>;
11
+ /** Prevents leading or trailing row content from shrinking. */
8
12
  export declare const OptionRowSideContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
13
  children: ReactNode;
10
14
  } & import('react').RefAttributes<HTMLDivElement>>;