@servicetitan/anvil2 3.13.7 → 3.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/CHANGELOG.md +18 -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/Card-Bt0F6RTq.js.map +1 -1
  22. package/dist/{Checkbox-CknwM231.js → Checkbox-CboZhOtU.js} +3 -3
  23. package/dist/{Checkbox-CknwM231.js.map → Checkbox-CboZhOtU.js.map} +1 -1
  24. package/dist/{Checkbox-FvMXGsgi.js → Checkbox-Cn4iNLW_.js} +2 -2
  25. package/dist/{Checkbox-FvMXGsgi.js.map → Checkbox-Cn4iNLW_.js.map} +1 -1
  26. package/dist/Checkbox.js +1 -1
  27. package/dist/{Chip-COkotNvt.js → Chip-UbrxYEqs.js} +2 -2
  28. package/dist/{Chip-COkotNvt.js.map → Chip-UbrxYEqs.js.map} +1 -1
  29. package/dist/Chip.js +1 -1
  30. package/dist/Combobox.js +1 -1
  31. package/dist/{DataTable-D0YlJ7IA.js → DataTable-COExZbOC.js} +10 -22
  32. package/dist/DataTable-COExZbOC.js.map +1 -0
  33. package/dist/{DateFieldRange-B7-z7KXC.js → DateFieldRange-CpTxlASD.js} +5 -5
  34. package/dist/{DateFieldRange-B7-z7KXC.js.map → DateFieldRange-CpTxlASD.js.map} +1 -1
  35. package/dist/DateFieldRange.js +1 -1
  36. package/dist/{DateFieldSingle-B3aY-9vO.js → DateFieldSingle-DR2kfrzh.js} +5 -5
  37. package/dist/{DateFieldSingle-B3aY-9vO.js.map → DateFieldSingle-DR2kfrzh.js.map} +1 -1
  38. package/dist/DateFieldSingle.js +1 -1
  39. package/dist/{DateFieldYearless-BYwWvHXD.js → DateFieldYearless-4mS_2Mgw.js} +5 -5
  40. package/dist/{DateFieldYearless-BYwWvHXD.js.map → DateFieldYearless-4mS_2Mgw.js.map} +1 -1
  41. package/dist/DateFieldYearless.js +1 -1
  42. package/dist/{DateFieldYearlessRange-cyDptr2S.js → DateFieldYearlessRange-C-yvKBkJ.js} +4 -4
  43. package/dist/{DateFieldYearlessRange-cyDptr2S.js.map → DateFieldYearlessRange-C-yvKBkJ.js.map} +1 -1
  44. package/dist/DateFieldYearlessRange.js +1 -1
  45. package/dist/{DaysOfTheWeek-Re26vN8g.js → DaysOfTheWeek-Bo4w8SsT.js} +2 -2
  46. package/dist/{DaysOfTheWeek-Re26vN8g.js.map → DaysOfTheWeek-Bo4w8SsT.js.map} +1 -1
  47. package/dist/DaysOfTheWeek.js +1 -1
  48. package/dist/{Dialog-BMPFoRQh.js → Dialog-Ds25dKQp.js} +4 -4
  49. package/dist/{Dialog-BMPFoRQh.js.map → Dialog-Ds25dKQp.js.map} +1 -1
  50. package/dist/Dialog.js +1 -1
  51. package/dist/{Drawer-BCw_ZHSD.js → Drawer-Da-bj_6o.js} +4 -4
  52. package/dist/{Drawer-BCw_ZHSD.js.map → Drawer-Da-bj_6o.js.map} +1 -1
  53. package/dist/Drawer.js +1 -1
  54. package/dist/DrillDown.js +1 -1
  55. package/dist/{EditCard-CTEk64eN.js → EditCard-CocV93gS.js} +2 -2
  56. package/dist/{EditCard-CTEk64eN.js.map → EditCard-CocV93gS.js.map} +1 -1
  57. package/dist/EditCard.js +1 -1
  58. package/dist/{FieldLabel-CYCk2rz-.js → FieldLabel-6aFKQfyD.js} +2 -2
  59. package/dist/FieldLabel-6aFKQfyD.js.map +1 -0
  60. package/dist/FieldLabel.js +1 -1
  61. package/dist/{FilterBar-CrIPZKvL.js → FilterBar-CZT1ryz_.js} +6 -7
  62. package/dist/FilterBar-CZT1ryz_.js.map +1 -0
  63. package/dist/FilterBar.js +1 -1
  64. package/dist/Helper-BHpOgh7k.js.map +1 -1
  65. package/dist/Icon-B5zwN7GD.js.map +1 -1
  66. package/dist/{InputMask-Bm7ZYtQy.js → InputMask-CNV0Ucli.js} +3 -3
  67. package/dist/{InputMask-Bm7ZYtQy.js.map → InputMask-CNV0Ucli.js.map} +1 -1
  68. package/dist/InputMask.js +1 -1
  69. package/dist/Layout-C2Q2hyLG.js.map +1 -1
  70. package/dist/{ListView-Bkv1ZCSu.js → ListView-DFAWrwzi.js} +2 -2
  71. package/dist/ListView-DFAWrwzi.js.map +1 -0
  72. package/dist/ListView.js +1 -1
  73. package/dist/{Listbox-BWy_uBqm.js → Listbox-BErqErNN.js} +2 -2
  74. package/dist/Listbox-BErqErNN.js.map +1 -0
  75. package/dist/Listbox.js +1 -1
  76. package/dist/LocalizationContext-UsmB5mnR.js.map +1 -1
  77. package/dist/LocalizationProvider-BPcOU7YX.js.map +1 -1
  78. package/dist/{MenuFooter--lBF8OjJ.js → MenuFooter-fGSZYh8e.js} +2 -2
  79. package/dist/MenuFooter-fGSZYh8e.js.map +1 -0
  80. package/dist/MultiSelectField.js +1 -1
  81. package/dist/{MultiSelectFieldSync-gH-TQnq3.js → MultiSelectFieldSync-CqWUidCm.js} +8 -8
  82. package/dist/MultiSelectFieldSync-CqWUidCm.js.map +1 -0
  83. package/dist/MultiSelectMenu.js +1 -1
  84. package/dist/{MultiSelectMenuSync-QmhjWA05.js → MultiSelectMenuSync-DG3rKyQc.js} +6 -6
  85. package/dist/{MultiSelectMenuSync-QmhjWA05.js.map → MultiSelectMenuSync-DG3rKyQc.js.map} +1 -1
  86. package/dist/{NumberField-BOLMhpdk.js → NumberField-DRYYJHec.js} +3 -3
  87. package/dist/{NumberField-BOLMhpdk.js.map → NumberField-DRYYJHec.js.map} +1 -1
  88. package/dist/NumberField.js +1 -1
  89. package/dist/{Page-D4RYSd8t.js → Page-pfK5iSmv.js} +9 -9
  90. package/dist/Page-pfK5iSmv.js.map +1 -0
  91. package/dist/Page.js +1 -1
  92. package/dist/{Pagination-Hjalx9ZX.js → Pagination-Bc4fhdNm.js} +3 -3
  93. package/dist/{Pagination-Hjalx9ZX.js.map → Pagination-Bc4fhdNm.js.map} +1 -1
  94. package/dist/Pagination.js +1 -1
  95. package/dist/{Popover-BQ-R2hs0.js → Popover-BgVOsP4J.js} +2 -2
  96. package/dist/{Popover-BQ-R2hs0.js.map → Popover-BgVOsP4J.js.map} +1 -1
  97. package/dist/Popover.js +1 -1
  98. package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
  99. package/dist/{ProgressBar-BUmYFa81.js → ProgressBar-Chb0uKfL.js} +2 -2
  100. package/dist/{ProgressBar-BUmYFa81.js.map → ProgressBar-Chb0uKfL.js.map} +1 -1
  101. package/dist/ProgressBar.js +1 -1
  102. package/dist/{Radio-BgbBIhPS.js → Radio-DcNlFfSu.js} +3 -3
  103. package/dist/{Radio-BgbBIhPS.js.map → Radio-DcNlFfSu.js.map} +1 -1
  104. package/dist/{Radio-C2pWQ84U.js → Radio-gpMEsFss.js} +2 -2
  105. package/dist/{Radio-C2pWQ84U.js.map → Radio-gpMEsFss.js.map} +1 -1
  106. package/dist/Radio.js +1 -1
  107. package/dist/{RichTextEditor-Chzl-zeW.js → RichTextEditor-DeO4p-S-.js} +8 -8
  108. package/dist/{RichTextEditor-Chzl-zeW.js.map → RichTextEditor-DeO4p-S-.js.map} +1 -1
  109. package/dist/RichTextEditor.js +1 -1
  110. package/dist/{SavedFiltersButton-D0J5KTsI.js → SavedFiltersButton-Cvf1mJk8.js} +10 -10
  111. package/dist/{SavedFiltersButton-D0J5KTsI.js.map → SavedFiltersButton-Cvf1mJk8.js.map} +1 -1
  112. package/dist/SavedFiltersButton.js +1 -1
  113. package/dist/{SelectCard-BGTB3ay0.js → SelectCard-bp5hRyHK.js} +3 -3
  114. package/dist/{SelectCard-BGTB3ay0.js.map → SelectCard-bp5hRyHK.js.map} +1 -1
  115. package/dist/SelectCard.js +1 -1
  116. package/dist/SelectField.js +1 -1
  117. package/dist/{SelectFieldLabel-CcX2GAym.js → SelectFieldLabel-DZqxaZsp.js} +2 -2
  118. package/dist/SelectFieldLabel-DZqxaZsp.js.map +1 -0
  119. package/dist/{SelectFieldSync-BjJN7FC3.js → SelectFieldSync-Wkx6DGpg.js} +7 -7
  120. package/dist/{SelectFieldSync-BjJN7FC3.js.map → SelectFieldSync-Wkx6DGpg.js.map} +1 -1
  121. package/dist/SelectMenu.js +1 -1
  122. package/dist/{SelectMenuSync-iZsNTote.js → SelectMenuSync-O55TODxn.js} +6 -6
  123. package/dist/{SelectMenuSync-iZsNTote.js.map → SelectMenuSync-O55TODxn.js.map} +1 -1
  124. package/dist/{SelectOptions-BeehD5VV.js → SelectOptions-0A8BYx1q.js} +2 -2
  125. package/dist/SelectOptions-0A8BYx1q.js.map +1 -0
  126. package/dist/{SelectTrigger-BQAVMm3E.js → SelectTrigger-BfJ7DWYq.js} +2 -2
  127. package/dist/{SelectTrigger-BQAVMm3E.js.map → SelectTrigger-BfJ7DWYq.js.map} +1 -1
  128. package/dist/SelectTrigger.js +1 -1
  129. package/dist/{SelectTriggerBase-BV-QNhII.js → SelectTriggerBase-DvsI-kSG.js} +3 -3
  130. package/dist/{SelectTriggerBase-BV-QNhII.js.map → SelectTriggerBase-DvsI-kSG.js.map} +1 -1
  131. package/dist/StatusIcon-BqorkNJf.js.map +1 -1
  132. package/dist/{Switch-DWaFomvP.js → Switch-CrDmBj4D.js} +2 -2
  133. package/dist/{Switch-DWaFomvP.js.map → Switch-CrDmBj4D.js.map} +1 -1
  134. package/dist/Switch.js +1 -1
  135. package/dist/Table.js +1 -1
  136. package/dist/{Text-D2TIPmZ2.js → Text-CZccJAnm.js} +2 -2
  137. package/dist/{Text-D2TIPmZ2.js.map → Text-CZccJAnm.js.map} +1 -1
  138. package/dist/Text.js +1 -1
  139. package/dist/{TextField-wIc7ic0E.js → TextField-D0f9LwgQ.js} +3 -3
  140. package/dist/{TextField-wIc7ic0E.js.map → TextField-D0f9LwgQ.js.map} +1 -1
  141. package/dist/{TextField-DJaBZ4Je.js → TextField-DX5qyWPo.js} +2 -2
  142. package/dist/{TextField-DJaBZ4Je.js.map → TextField-DX5qyWPo.js.map} +1 -1
  143. package/dist/TextField.js +1 -1
  144. package/dist/{Textarea-D4c6VjNs.js → Textarea-CdTcekFd.js} +3 -3
  145. package/dist/{Textarea-D4c6VjNs.js.map → Textarea-CdTcekFd.js.map} +1 -1
  146. package/dist/Textarea.js +1 -1
  147. package/dist/ThemeProvider-DW-Mflv6.js.map +1 -1
  148. package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
  149. package/dist/{TimeField-DpnX_t31.js → TimeField-BxNglWQt.js} +4 -4
  150. package/dist/TimeField-BxNglWQt.js.map +1 -0
  151. package/dist/TimeField.js +1 -1
  152. package/dist/Toast.js +2 -2
  153. package/dist/{Toaster-Cl9BSxHs.js → Toaster-C-Z_FMbW.js} +3 -3
  154. package/dist/{Toaster-Cl9BSxHs.js.map → Toaster-C-Z_FMbW.js.map} +1 -1
  155. package/dist/{Toaster-11pmgwx5.js → Toaster-nyQgF9Ki.js} +2 -2
  156. package/dist/{Toaster-11pmgwx5.js.map → Toaster-nyQgF9Ki.js.map} +1 -1
  157. package/dist/{Toolbar-C9_Z1wAt.js → Toolbar-BUbMtBVz.js} +4 -4
  158. package/dist/{Toolbar-C9_Z1wAt.js.map → Toolbar-BUbMtBVz.js.map} +1 -1
  159. package/dist/{Toolbar-Dq9KOJoH.js → Toolbar-BxAFPvbn.js} +5 -5
  160. package/dist/{Toolbar-Dq9KOJoH.js.map → Toolbar-BxAFPvbn.js.map} +1 -1
  161. package/dist/Toolbar.js +2 -2
  162. package/dist/{ToolbarButtonToggle-BGnYIt6-.js → ToolbarButtonToggle-NSJ2XfXT.js} +2 -2
  163. package/dist/{ToolbarButtonToggle-BGnYIt6-.js.map → ToolbarButtonToggle-NSJ2XfXT.js.map} +1 -1
  164. package/dist/TrackingProvider-Co4lyoI9.js.map +1 -1
  165. package/dist/TrackingProviderContext-CrVA7KHv.js.map +1 -1
  166. package/dist/TreeSelectField.js +1 -1
  167. package/dist/{TreeSelectFieldSync-CoWxg7tA.js → TreeSelectFieldSync-DpvwlM7B.js} +6 -6
  168. package/dist/{TreeSelectFieldSync-CoWxg7tA.js.map → TreeSelectFieldSync-DpvwlM7B.js.map} +1 -1
  169. package/dist/TreeSelectMenu.js +1 -1
  170. package/dist/{TreeSelectMenuSync-CmJa0lyW.js → TreeSelectMenuSync-BDitYX_k.js} +5 -5
  171. package/dist/{TreeSelectMenuSync-CmJa0lyW.js.map → TreeSelectMenuSync-BDitYX_k.js.map} +1 -1
  172. package/dist/{TypeaheadTextField-2kW-oCMo.js → TypeaheadTextField-Cj09sEji.js} +3 -3
  173. package/dist/{TypeaheadTextField-2kW-oCMo.js.map → TypeaheadTextField-Cj09sEji.js.map} +1 -1
  174. package/dist/TypeaheadTextField.js +1 -1
  175. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js → YearlessDateInputWithPicker-CoomgSEK.js} +3 -3
  176. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js.map → YearlessDateInputWithPicker-CoomgSEK.js.map} +1 -1
  177. package/dist/anvParts-DFVq7-Cm.js +25 -0
  178. package/dist/anvParts-DFVq7-Cm.js.map +1 -0
  179. package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -1
  180. package/dist/assets/icons/st/gnav_automations_active.svg +1 -0
  181. package/dist/assets/icons/st/gnav_automations_inactive.svg +1 -0
  182. package/dist/assets/icons/st/gnav_command_center_active.svg +1 -0
  183. package/dist/assets/icons/st/gnav_command_center_inactive.svg +1 -0
  184. package/dist/assets/icons/st.ts +4 -0
  185. package/dist/beta.js +17 -17
  186. package/dist/{bulkActionTypes-Ct2cwT7b.js → bulkActionTypes-DAo3_ECS.js} +2 -2
  187. package/dist/bulkActionTypes-DAo3_ECS.js.map +1 -0
  188. package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
  189. package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -1
  190. package/dist/{downshift.esm-xtSnQp44.js → downshift.esm-U4VMqrF-.js} +3 -1
  191. package/dist/downshift.esm-U4VMqrF-.js.map +1 -0
  192. package/dist/{filter-state-lWKlYjeQ.js → filter-state-CZcczj37.js} +21 -21
  193. package/dist/{filter-state-lWKlYjeQ.js.map → filter-state-CZcczj37.js.map} +1 -1
  194. package/dist/floating-ui.react-dom-BIKT960u.js.map +1 -1
  195. package/dist/getActiveElement-BcSyVE7S.js.map +1 -1
  196. package/dist/getKeyboardFocusableElements-B_U9rt6y.js.map +1 -1
  197. package/dist/{index-BHztJ8H6.js → index-BFxzUzoz.js} +2 -2
  198. package/dist/{index-BHztJ8H6.js.map → index-BFxzUzoz.js.map} +1 -1
  199. package/dist/index.js +43 -44
  200. package/dist/index.js.map +1 -1
  201. package/dist/portalScopeClassNames-DA28LrXe.js.map +1 -1
  202. package/dist/src/beta/components/Page/Page.d.ts +1 -1
  203. package/dist/src/beta/components/Page/PageHeader.d.ts +7 -3
  204. package/dist/src/components/Card/Card.d.ts +5 -12
  205. package/dist/src/components/Layout/Layout.d.ts +15 -3
  206. package/dist/src/components/Page/Page.d.ts +1 -1
  207. package/dist/src/components/Page/PageHeader.d.ts +7 -3
  208. package/dist/src/hooks/useAccessibleColor/useAccessibleColor.d.ts +3 -28
  209. package/dist/src/hooks/useBreakpoint/useBreakpoint.d.ts +15 -60
  210. package/dist/src/hooks/useMergeRefs/useMergeRefs.d.ts +3 -20
  211. package/dist/src/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts +2 -11
  212. package/dist/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +2 -10
  213. package/dist/src/hooks/useSize/index.d.ts +2 -13
  214. package/dist/src/hooks/useSwipe/useSwipe.d.ts +3 -20
  215. package/dist/src/hooks/useTrackingId/index.d.ts +6 -17
  216. package/dist/src/internal/components/AddNewItemButton.d.ts +4 -30
  217. package/dist/src/internal/components/Helper/Helper.d.ts +12 -8
  218. package/dist/src/internal/components/InView.d.ts +4 -24
  219. package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +2 -19
  220. package/dist/src/internal/components/Label/Label.d.ts +12 -51
  221. package/dist/src/internal/components/ManualTestLayout/ManualTestLayout.d.ts +3 -2
  222. package/dist/src/internal/components/MenuFooter/MenuFooter.d.ts +11 -17
  223. package/dist/src/internal/components/MultiSelectOptions.d.ts +15 -0
  224. package/dist/src/internal/components/OptionCheckbox.d.ts +2 -0
  225. package/dist/src/internal/components/OptionContentArea.d.ts +4 -0
  226. package/dist/src/internal/components/OptionRow.d.ts +4 -0
  227. package/dist/src/internal/components/OptionsDialog/OptionsDialog.d.ts +13 -1
  228. package/dist/src/internal/components/OptionsPanel.d.ts +16 -0
  229. package/dist/src/internal/components/OptionsPopover/OptionsPopover.d.ts +9 -14
  230. package/dist/src/internal/components/Popover/Popover.d.ts +45 -180
  231. package/dist/src/internal/components/Popover/PopoverButton.d.ts +0 -20
  232. package/dist/src/internal/components/Popover/PopoverClose.d.ts +0 -20
  233. package/dist/src/internal/components/Popover/PopoverContent.d.ts +4 -25
  234. package/dist/src/internal/components/Popover/PopoverTrigger.d.ts +1 -23
  235. package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +0 -21
  236. package/dist/src/internal/components/Popover/internal/usePopoverContext.d.ts +1 -3
  237. package/dist/src/internal/components/SelectOption.d.ts +8 -0
  238. package/dist/src/internal/components/SelectOptions.d.ts +15 -0
  239. package/dist/src/internal/components/Shadow/Shadow.d.ts +1 -0
  240. package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +4 -33
  241. package/dist/src/internal/components/Surface/Surface.d.ts +40 -73
  242. package/dist/src/internal/components/Surface/surfaceGeometry.d.ts +12 -0
  243. package/dist/src/internal/components/VirtualizedOptionsPanel.d.ts +1 -0
  244. package/dist/src/internal/components/YearSelector/YearSelector.d.ts +14 -48
  245. package/dist/src/internal/components/YearSelector/internal/YearItem.d.ts +1 -0
  246. package/dist/src/internal/components/YearSelector/internal/useYearSelectorKeys.d.ts +4 -0
  247. package/dist/src/internal/constants/anvParts.d.ts +3 -55
  248. package/dist/src/internal/flubber/a2c.d.ts +0 -4
  249. package/dist/src/internal/flubber/arc.d.ts +0 -4
  250. package/dist/src/internal/flubber/bezier.d.ts +0 -4
  251. package/dist/src/internal/flubber/errors.d.ts +0 -4
  252. package/dist/src/internal/flubber/index.d.ts +0 -4
  253. package/dist/src/internal/flubber/interpolate.d.ts +3 -0
  254. package/dist/src/internal/flubber/linear.d.ts +0 -4
  255. package/dist/src/internal/flubber/parse.d.ts +0 -4
  256. package/dist/src/internal/flubber/path-properties.d.ts +0 -4
  257. package/dist/src/internal/functions/areOptionsValueEqual.d.ts +2 -5
  258. package/dist/src/internal/functions/buildSelectItems.d.ts +2 -4
  259. package/dist/src/internal/functions/childrenToString.d.ts +3 -21
  260. package/dist/src/internal/functions/getActiveElement.d.ts +4 -0
  261. package/dist/src/internal/functions/getInitial.d.ts +3 -13
  262. package/dist/src/internal/functions/getKeyboardFocusableElements.d.ts +6 -30
  263. package/dist/src/internal/functions/inlineMarkdown.d.ts +3 -16
  264. package/dist/src/internal/functions/isThenable.d.ts +1 -1
  265. package/dist/src/internal/functions/kebabize.d.ts +3 -13
  266. package/dist/src/internal/functions/mapOrder.d.ts +4 -0
  267. package/dist/src/internal/functions/popoverTargetDomProps.d.ts +1 -1
  268. package/dist/src/internal/functions/portalScopeClassNames.d.ts +6 -13
  269. package/dist/src/internal/functions/safePopover.d.ts +2 -0
  270. package/dist/src/internal/functions/sizeToToken.d.ts +1 -0
  271. package/dist/src/internal/functions/stripInlineMarkdown.d.ts +3 -5
  272. package/dist/src/internal/functions/syncFilterUtils.d.ts +4 -2
  273. package/dist/src/internal/functions/warnOnce.d.ts +1 -2
  274. package/dist/src/internal/hooks/useBulkActionRunner.d.ts +4 -27
  275. package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +7 -14
  276. package/dist/src/internal/hooks/useConfirmationDraft.d.ts +4 -4
  277. package/dist/src/internal/hooks/useContainerQuery/useContainerQuery.d.ts +2 -33
  278. package/dist/src/internal/hooks/useDebouncedCallback/useDebouncedCallback.d.ts +3 -25
  279. package/dist/src/internal/hooks/useDialogScrollLock/useDialogScrollLock.d.ts +6 -31
  280. package/dist/src/internal/hooks/useDialogTransitionStates/useDialogTransitionStates.d.ts +2 -27
  281. package/dist/src/internal/hooks/useDownshiftEnvironment/useDownshiftEnvironment.d.ts +8 -24
  282. package/dist/src/internal/hooks/useFocusWithin/useFocusWithin.d.ts +3 -14
  283. package/dist/src/internal/hooks/useGroupedOptions.d.ts +4 -22
  284. package/dist/src/internal/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +4 -47
  285. package/dist/src/internal/hooks/useInvalidateOnOptionsChange.d.ts +2 -7
  286. package/dist/src/internal/hooks/useIsScrollable/useIsScrollable.d.ts +1 -5
  287. package/dist/src/internal/hooks/useKeyboardFocusables/useKeyboardFocusables.d.ts +1 -38
  288. package/dist/src/internal/hooks/useLayoutPropsUtil/useLayoutPropsUtil.d.ts +2 -38
  289. package/dist/src/internal/hooks/useNumberField/internal/createNumberMaskOptions.d.ts +2 -5
  290. package/dist/src/internal/hooks/useNumberField/internal/createTrailingZerosHandlers.d.ts +1 -2
  291. package/dist/src/internal/hooks/useNumberField/internal/numberMaskUtils.d.ts +0 -6
  292. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldInputMode.d.ts +2 -17
  293. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldKeys.d.ts +4 -30
  294. package/dist/src/internal/hooks/useNumberField/useNumberField.d.ts +19 -65
  295. package/dist/src/internal/hooks/useOnClickOutside/useOnClickOutside.d.ts +5 -33
  296. package/dist/src/internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates.d.ts +4 -28
  297. package/dist/src/internal/hooks/useOptionallyControlledState/useOptionallyControlledState.d.ts +2 -46
  298. package/dist/src/internal/hooks/useOptionsSections.d.ts +4 -9
  299. package/dist/src/internal/hooks/usePinnedOptions.d.ts +4 -24
  300. package/dist/src/internal/hooks/usePlatform/usePlatform.d.ts +3 -50
  301. package/dist/src/internal/hooks/usePopoverCloseDelayWorkaround/usePopoverCloseDelayWorkaround.d.ts +4 -0
  302. package/dist/src/internal/hooks/usePopoverTransitionStates/usePopoverTransitionStates.d.ts +1 -21
  303. package/dist/src/internal/hooks/usePrevious/usePrevious.d.ts +1 -0
  304. package/dist/src/internal/hooks/useProcessedOptions.d.ts +2 -3
  305. package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +18 -61
  306. package/dist/src/internal/hooks/useSelectOrchestration.d.ts +4 -3
  307. package/dist/src/internal/hooks/useToggleSelection.d.ts +3 -3
  308. package/dist/src/internal/hooks/useTypeAhead/useTypeAhead.d.ts +3 -11
  309. package/dist/src/internal/testing/anvPartsContract.d.ts +9 -9
  310. package/dist/src/internal/testing/reactHostProps.d.ts +2 -2
  311. package/dist/src/internal/types/addNewItemTypes.d.ts +14 -16
  312. package/dist/src/internal/types/argTypes.d.ts +2 -0
  313. package/dist/src/internal/types/bulkActionTypes.d.ts +12 -41
  314. package/dist/src/internal/types/confirmationTypes.d.ts +6 -7
  315. package/dist/src/internal/types/optionContent.d.ts +6 -9
  316. package/dist/src/internal/types/props.d.ts +6 -1
  317. package/dist/src/internal/types/selectFieldInternalTypes.d.ts +10 -12
  318. package/dist/src/internal/utils/arrayIdsEqual.d.ts +1 -5
  319. package/dist/src/internal/utils/generateChromaticStickersheetProps.d.ts +4 -8
  320. package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +0 -4
  321. package/dist/src/internal/utils/layerManager.d.ts +5 -28
  322. package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +0 -2
  323. package/dist/src/providers/AnvilProvider/AnvilProvider.d.ts +4 -0
  324. package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +16 -6
  325. package/dist/src/providers/LocalizationProvider/LocalizationContext.d.ts +7 -0
  326. package/dist/src/providers/LocalizationProvider/LocalizationProvider.d.ts +6 -0
  327. package/dist/src/providers/LocalizationProvider/LocalizationStoryWrapper.d.ts +1 -0
  328. package/dist/src/providers/LocalizationProvider/useTranslations.d.ts +6 -0
  329. package/dist/src/providers/PortalProvider/PortalProvider.d.ts +1 -0
  330. package/dist/src/providers/PortalProvider/PortalProviderContext.d.ts +3 -0
  331. package/dist/src/providers/ThemeProvider/ThemeProvider.d.ts +16 -0
  332. package/dist/src/providers/ThemeProvider/index.d.ts +1 -1
  333. package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +2 -0
  334. package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +3 -4
  335. package/dist/src/providers/ThemeProvider/useTheme.d.ts +5 -0
  336. package/dist/src/providers/TrackingProvider/TrackingProvider.d.ts +1 -0
  337. package/dist/src/providers/TrackingProvider/TrackingProviderContext.d.ts +7 -0
  338. package/dist/src/providers/TrackingProvider/useTrackingContext.d.ts +5 -0
  339. package/dist/src/themes/carto.d.ts +3 -43
  340. package/dist/src/types/DataTrackingId.d.ts +1 -0
  341. package/dist/src/types/DistributiveOmit.d.ts +1 -14
  342. package/dist/src/types/MaxLengthCounterProps.d.ts +4 -0
  343. package/dist/src/types/PassThroughProps.d.ts +3 -0
  344. package/dist/src/types/ai-marks.d.ts +14 -45
  345. package/dist/src/types/ianaZones.d.ts +2 -0
  346. package/dist/src/types/locales.d.ts +1 -0
  347. package/dist/src/types/props.d.ts +14 -16
  348. package/dist/{stripInlineMarkdown-82hVO9EP.js → stripInlineMarkdown-CosQSmBr.js} +2 -2
  349. package/dist/stripInlineMarkdown-CosQSmBr.js.map +1 -0
  350. package/dist/{syncFilterUtils-CKXbRZG8.js → syncFilterUtils-_uwyt6FD.js} +20 -19
  351. package/dist/syncFilterUtils-_uwyt6FD.js.map +1 -0
  352. package/dist/themes.js.map +1 -1
  353. package/dist/token/core/component-variables.scss +234 -0
  354. package/dist/token/core/component.d.ts +117 -0
  355. package/dist/token/core/component.js +1525 -0
  356. package/dist/token/core/component.scss +121 -0
  357. package/dist/token.js +1642 -0
  358. package/dist/token.js.map +1 -1
  359. package/dist/{treeSync-ONC4TbTR.js → treeSync-Bp80Xduj.js} +4 -4
  360. package/dist/{treeSync-ONC4TbTR.js.map → treeSync-Bp80Xduj.js.map} +1 -1
  361. package/dist/useAccessibleColor-BYKjkGRg.js.map +1 -1
  362. package/dist/useBreakpoint-BBNRlMGZ.js.map +1 -1
  363. package/dist/useDebouncedCallback-DLkapjcP.js.map +1 -1
  364. package/dist/useDialogScrollLock-BW-aVboo.js.map +1 -1
  365. package/dist/{useDrilldown-CicFEJpD.js → useDrilldown-D5XGfAUT.js} +3 -3
  366. package/dist/{useDrilldown-CicFEJpD.js.map → useDrilldown-D5XGfAUT.js.map} +1 -1
  367. package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
  368. package/dist/{useInfiniteCombobox-DJoVEIk6.js → useInfiniteCombobox-ORhH44Rp.js} +6 -6
  369. package/dist/{useInfiniteCombobox-DJoVEIk6.js.map → useInfiniteCombobox-ORhH44Rp.js.map} +1 -1
  370. package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-CGybEc6x.js} +2 -6
  371. package/dist/useInitialFocus-CGybEc6x.js.map +1 -0
  372. package/dist/useIntersectionObserver-BEmMDO3P.js.map +1 -1
  373. package/dist/{useInvalidateOnOptionsChange-C6tF7696.js → useInvalidateOnOptionsChange-ieSgbkwT.js} +4 -4
  374. package/dist/useInvalidateOnOptionsChange-ieSgbkwT.js.map +1 -0
  375. package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
  376. package/dist/useMergeRefs-Dfmtq9cI.js.map +1 -1
  377. package/dist/useNumberField-CXFYUZ_n.js.map +1 -1
  378. package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -1
  379. package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
  380. package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
  381. package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +1 -0
  382. package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -1
  383. package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +1 -1
  384. package/dist/usePrevious-Bvq-5auG.js.map +1 -1
  385. package/dist/useSize.js.map +1 -1
  386. package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
  387. package/dist/useTheme-B4i6a3bM.js.map +1 -1
  388. package/dist/useTrackingContext-C522P4sv.js.map +1 -1
  389. package/dist/useTrackingId.js.map +1 -1
  390. package/dist/warnOnce-Y9PRHcU4.js.map +1 -1
  391. package/package.json +2 -2
  392. package/dist/AnvilProvider-D8msiELo.js.map +0 -1
  393. package/dist/Calendar-kSH8F7gx.js.map +0 -1
  394. package/dist/DataTable-D0YlJ7IA.js.map +0 -1
  395. package/dist/FieldLabel-CYCk2rz-.js.map +0 -1
  396. package/dist/FilterBar-CrIPZKvL.js.map +0 -1
  397. package/dist/ListView-Bkv1ZCSu.js.map +0 -1
  398. package/dist/Listbox-BWy_uBqm.js.map +0 -1
  399. package/dist/MenuFooter--lBF8OjJ.js.map +0 -1
  400. package/dist/MultiSelectFieldSync-gH-TQnq3.js.map +0 -1
  401. package/dist/Page-D4RYSd8t.js.map +0 -1
  402. package/dist/SelectFieldLabel-CcX2GAym.js.map +0 -1
  403. package/dist/SelectOptions-BeehD5VV.js.map +0 -1
  404. package/dist/TimeField-DpnX_t31.js.map +0 -1
  405. package/dist/anvParts-BGg5dgfl.js +0 -43
  406. package/dist/anvParts-BGg5dgfl.js.map +0 -1
  407. package/dist/bulkActionTypes-Ct2cwT7b.js.map +0 -1
  408. package/dist/downshift.esm-xtSnQp44.js.map +0 -1
  409. package/dist/stripInlineMarkdown-82hVO9EP.js.map +0 -1
  410. package/dist/syncFilterUtils-CKXbRZG8.js.map +0 -1
  411. package/dist/useInitialFocus-BIvXK1Rp.js.map +0 -1
  412. package/dist/useInvalidateOnOptionsChange-C6tF7696.js.map +0 -1
  413. package/dist/usePopoverTransitionStates-B1opfxxn.js.map +0 -1
@@ -2,50 +2,29 @@ import { CSSProperties, RefObject, HTMLProps } from 'react';
2
2
  import { FloatingContext, MiddlewareData, Placement } from '@floating-ui/react';
3
3
  import { PopoverRole } from '../Popover';
4
4
  export type PopoverContextProps = {
5
- /** Context object from useFloating; required by FloatingFocusManager and interaction hooks. */
6
5
  floatingContext: FloatingContext;
7
- /** Callback refs from useFloating; setReference for the trigger, setFloating for the content. */
8
6
  refs: {
9
7
  setReference: (node: Element | null) => void;
10
8
  setFloating: (node: HTMLElement | null) => void;
11
9
  };
12
- /** Inline positioning styles from useFloating; applied to the content element. */
13
10
  floatingStyles: CSSProperties;
14
- /** Middleware output from useFloating; used for arrow positioning via middlewareData.arrow. */
15
11
  middlewareData: MiddlewareData;
16
- /** Merged prop getter for the trigger; spreads ARIA attributes and event handlers. */
17
12
  getReferenceProps: (userProps?: HTMLProps<Element>) => Record<string, unknown>;
18
- /** Merged prop getter for the content; spreads ARIA attributes and event handlers. */
19
13
  getFloatingProps: (userProps?: HTMLProps<HTMLElement>) => Record<string, unknown>;
20
- /** Auto-generated id for the trigger element; used as the default aria-labelledby on content. */
21
14
  triggerId: string;
22
- /** Current open/closed state. */
23
15
  openState: boolean;
24
- /** Opens the popover. */
25
16
  openPopover: () => void;
26
- /** Closes the popover. Fires onClose unless opened via hover. */
27
17
  closePopover: () => void;
28
- /** Whether the open state is externally controlled. */
29
18
  controlled: boolean;
30
- /** Resolved placement after flip/shift middleware; may differ from the placement prop. */
31
19
  actualPlacement: Placement;
32
- /** Ref attached to the arrow span element inside PopoverContent. */
33
20
  arrowRef: RefObject<HTMLSpanElement>;
34
- /** Whether the most recent close was keyboard-driven (e.g. Escape); drives the focus ring on the returned-to trigger. */
35
21
  closedViaKeyboardRef: RefObject<boolean>;
36
- /** Whether the most recent close was FloatingFocusManager's non-modal Tab-out guard (reported via a FocusEvent); tells the focus-return effect to reclaim focus even though the browser's native Tab has already moved it past the trigger. */
37
22
  closedViaTabOutRef: RefObject<boolean>;
38
- /** Clears closedViaKeyboardRef/closedViaTabOutRef. Call once the focus-return effect has reacted to a close event, so a later unrelated re-run of that effect (while still closed) doesn't reuse a stale close-reason signal. */
39
23
  clearCloseReasonRefs: () => void;
40
- /** Whether the popover traps focus (modal) or closes on Tab-out (non-modal). Only applies when role is "dialog". */
41
24
  modal?: boolean;
42
- /** Whether the popover opens on hover/focus instead of click. Only applies when role is "dialog". */
43
25
  openOnHover: boolean;
44
- /** Whether to remove default padding from the content area. */
45
26
  noPadding?: boolean;
46
- /** Whether to show the arrow/caret indicator. */
47
27
  enableCaret?: boolean;
48
- /** The ARIA role of the popup. Drives FloatingFocusManager and ARIA attribute behavior. */
49
28
  role: PopoverRole;
50
29
  };
51
30
  export declare const PopoverContext: import('react').Context<PopoverContextProps | null>;
@@ -1,6 +1,4 @@
1
1
  /**
2
- * Returns the PopoverContext for use within Popover compound components.
3
- * @returns The current PopoverContextProps value.
4
- * @throws Error if called outside a Popover component.
2
+ * Reads the enclosing popover state and rejects use outside the compound root.
5
3
  */
6
4
  export declare function usePopoverContext(): import('./PopoverContext').PopoverContextProps;
@@ -2,12 +2,20 @@ import { SelectItem, GetItemPropsFn } from '../types/selectFieldInternalTypes';
2
2
  import { CheckState } from '../../types';
3
3
  export type SelectOptionProps = {
4
4
  item: SelectItem;
5
+ /** Position passed to the host's item-prop getter. */
5
6
  index: number;
7
+ /** Whether the host currently highlights this row. */
6
8
  highlighted: boolean;
9
+ /** Applies disabled row styling. */
7
10
  disabled: boolean;
11
+ /** Supplies the host listbox's interaction and accessibility props. */
8
12
  getItemProps: GetItemPropsFn;
13
+ /** Chooses a leading checkbox or trailing selected checkmark. */
9
14
  selectionType: "single" | "multiple";
15
+ /** Selection state shown by the row indicator. */
10
16
  checked: CheckState;
17
+ /** Adds separation styling to sticky bulk-action rows after scrolling. */
11
18
  isListScrolled?: boolean;
12
19
  };
20
+ /** Renders a select item with its content and selection indicator. */
13
21
  export declare const SelectOption: ({ item, index, highlighted, disabled, getItemProps, selectionType, checked, isListScrolled, }: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
@@ -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 SelectOptionsProps = {
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 single selection; pinned/grouped copies match on `original.id`. */
11
17
  selectedOption: SelectFieldOption | null;
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
+ /** Single-select option list. Forwards to {@link OptionsPanel} or the virtualized panel. */
23
38
  export declare const SelectOptions: import('react').ForwardRefExoticComponent<SelectOptionsProps & import('react').RefAttributes<OptionsPanelHandle>>;
@@ -1,4 +1,5 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  export type ShadowProps = ComponentPropsWithoutRef<"div">;
3
+ /** Open shadow-root test host. Clones document styles into the tree. */
3
4
  export declare const Shadow: ({ children, ...rest }: ShadowProps) => import("react/jsx-runtime").JSX.Element;
4
5
  export default Shadow;
@@ -1,44 +1,15 @@
1
1
  import { PassThroughPropsWithRef, Size } from '../../../types';
2
- /**
3
- * The visual variant of the StatusIcon.
4
- */
5
2
  export type StatusIconVariant = "info" | "success" | "warning" | "error";
6
- /**
7
- * Props for the StatusIcon component
8
- * @property {StatusIconVariant} variant - The visual variant of the status icon
9
- */
10
3
  export type StatusIconProps = {
11
- /**
12
- * The visual variant of the status icon.
13
- */
4
+ /** Includes `info`. `error` uses the danger glyph. */
14
5
  variant: StatusIconVariant;
15
- /**
16
- * Props spread onto the root `<span>` element.
17
- */
6
+ /** Extra attributes on the root `<span>`. Merged `className` is concatenated. */
18
7
  rootProps?: PassThroughPropsWithRef<"span">;
19
- /**
20
- * Additional class names to apply to the root `<span>` element.
21
- */
22
8
  className?: string;
23
- /**
24
- * The size of the status icon.
25
- */
9
+ /** Glyph size. Defaults to `medium`. */
26
10
  size?: Extract<Size, "small" | "medium" | "large" | "xlarge">;
27
11
  };
28
- /**
29
- * StatusIcon component for displaying a status indicator icon.
30
- *
31
- * Features:
32
- * - Supports success, warning, and error variants
33
- * - Uses semantic status colors from design tokens
34
- * - Lightweight and composable
35
- *
36
- * @example
37
- * <StatusIcon variant="info" />
38
- * <StatusIcon variant="success" />
39
- * <StatusIcon variant="warning" />
40
- * <StatusIcon variant="error" />
41
- */
12
+ /** Status glyph. */
42
13
  export declare const StatusIcon: {
43
14
  (props: StatusIconProps): import("react/jsx-runtime").JSX.Element;
44
15
  displayName: string;
@@ -1,25 +1,14 @@
1
1
  import { ComponentPropsWithoutRef, ReactElement, ReactNode, RefObject } from 'react';
2
- /**
3
- * Props for the Surface component.
4
- * @property {ReactNode} [children] - Content rendered inside the Surface provider.
5
- * @property {boolean} open - Controls whether the associated surface content is visible.
6
- * @property {string} [id] - Stable id used to connect the trigger and content for accessibility.
7
- */
8
2
  export type SurfaceProps = {
3
+ /** Compound `Trigger` and `Content`. */
9
4
  children?: ReactNode;
5
+ /** Whether `Content` is shown. */
10
6
  open: boolean;
7
+ /** Shared id for trigger and content. Defaults to a generated `surface-*` id. */
11
8
  id?: string;
12
9
  };
13
- /**
14
- * Props passed to the Surface trigger render function.
15
- * @property {(node: Element | null) => void} ref - Assigns the trigger element as the positioning reference.
16
- * @property {string} id - Id used by the content element to identify its trigger.
17
- * @property {string} aria-controls - Id of the controlled surface content element.
18
- * @property {"dialog"} aria-haspopup - Identifies the controlled content as dialog-like UI.
19
- * @property {boolean} aria-expanded - Indicates whether the surface content is currently open.
20
- * @property {"open" | "closed"} data-state - Mirrors the open state for styling hooks.
21
- */
22
10
  export type SurfaceTriggerChildrenProps = {
11
+ /** Assigns the trigger as the floating-ui reference. */
23
12
  ref: (node: Element | null) => void;
24
13
  id: string;
25
14
  "aria-controls": string;
@@ -27,83 +16,63 @@ export type SurfaceTriggerChildrenProps = {
27
16
  "aria-expanded": boolean;
28
17
  "data-state": "open" | "closed";
29
18
  };
30
- /**
31
- * Props for the SurfaceTrigger component.
32
- * @property {(props: SurfaceTriggerChildrenProps) => ReactElement} children - Render prop receiving accessibility and positioning props for the trigger element.
33
- */
34
19
  export type SurfaceTriggerProps = {
20
+ /** Render prop: spread the bag onto the real trigger element. */
35
21
  children: (props: SurfaceTriggerChildrenProps) => ReactElement;
36
22
  };
37
- /**
38
- * SurfaceTrigger component for wiring a trigger element to Surface content.
39
- *
40
- * Features:
41
- * - Provides ARIA attributes and open state for the trigger.
42
- * - Registers the trigger as the positioning reference.
43
- *
44
- * @param props SurfaceTrigger props including a trigger render function.
45
- * @returns The trigger element returned by the render function.
46
- */
23
+ /** Wires a trigger element to Surface content via a render prop. */
47
24
  export declare function SurfaceTrigger({ children }: SurfaceTriggerProps): ReactElement<any, string | import('react').JSXElementConstructor<any>>;
48
25
  /**
49
- * Props for the SurfaceContent component.
50
- * @property {ReactNode} children - Main body rendered inside the positioned surface.
51
- * @property {() => void} onClose - Called when the user requests the surface to close and commit behavior is desired.
52
- * @property {() => void} [onCancel] - Called for cancellation flows such as Escape; falls back to onClose when omitted.
53
- * @property {ReactNode} [title] - Header title used as the default accessible label.
54
- * @property {ReactNode} [headerContent] - Additional header actions rendered before the close button.
55
- * @property {RefObject<HTMLElement | null>} [initialFocusRef] - Element focused after the surface opens.
56
- * @property {RefObject<HTMLElement | null>} [intersectionBoundaryRef] - Optional element that positioned content should intersect after placement or drag.
57
- * @property {number | string} [width] - Surface width as pixels or a CSS dimension.
58
- * @property {number | string} [maxHeight] - Maximum surface height as pixels or a CSS dimension.
59
- * @property {string} [closeButtonLabel] - Accessible label for the header close button.
60
26
  * @extends ComponentPropsWithoutRef<"div">
61
27
  */
62
28
  export type SurfaceContentProps = Omit<ComponentPropsWithoutRef<"div">, "children" | "id" | "title"> & {
29
+ /** Body below the header. */
63
30
  children: ReactNode;
31
+ /** Close / commit (click-outside, header close). */
64
32
  onClose: () => void;
33
+ /** Escape. Defaults to `onClose`. */
65
34
  onCancel?: () => void;
35
+ /** Header title; also the default accessible name via `aria-labelledby`. */
66
36
  title?: ReactNode;
37
+ /** Extra header actions, rendered before the close button. */
67
38
  headerContent?: ReactNode;
39
+ /** Focused on open (next animation frame). */
68
40
  initialFocusRef?: RefObject<HTMLElement | null>;
41
+ /** After place/drag/resize, keep overlapping this element's box. */
69
42
  intersectionBoundaryRef?: RefObject<HTMLElement | null>;
43
+ /** CSS width. Numbers become `px`. Defaults to `325px`. */
70
44
  width?: number | string;
45
+ /** CSS max-height. Numbers become `px`. Defaults to `450px`. */
71
46
  maxHeight?: number | string;
47
+ /** Close-button accessible name. Defaults to `"Close surface"`. */
72
48
  closeButtonLabel?: string;
73
49
  };
74
- /**
75
- * SurfaceContent component for rendering positioned, non-modal content as a manual popover.
76
- *
77
- * Features:
78
- * - Positions content relative to the Surface trigger.
79
- * - Supports accessible labels, close behavior, and viewport-aware sizing.
80
- *
81
- * @param props SurfaceContent props including close handlers, labels, dimensions, and content.
82
- * @param ref Ref forwarded to the surface content element.
83
- * @returns Positioned surface content when rendered within a Surface provider.
84
- */
50
+ /** Positioned non-modal content (`popover="manual"`); below `md` it becomes a drawer. */
85
51
  export declare const SurfaceContent: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title" | "id" | "children"> & {
52
+ /** Body below the header. */
86
53
  children: ReactNode;
54
+ /** Close / commit (click-outside, header close). */
87
55
  onClose: () => void;
56
+ /** Escape. Defaults to `onClose`. */
88
57
  onCancel?: () => void;
58
+ /** Header title; also the default accessible name via `aria-labelledby`. */
89
59
  title?: ReactNode;
60
+ /** Extra header actions, rendered before the close button. */
90
61
  headerContent?: ReactNode;
62
+ /** Focused on open (next animation frame). */
91
63
  initialFocusRef?: RefObject<HTMLElement | null>;
64
+ /** After place/drag/resize, keep overlapping this element's box. */
92
65
  intersectionBoundaryRef?: RefObject<HTMLElement | null>;
66
+ /** CSS width. Numbers become `px`. Defaults to `325px`. */
93
67
  width?: number | string;
68
+ /** CSS max-height. Numbers become `px`. Defaults to `450px`. */
94
69
  maxHeight?: number | string;
70
+ /** Close-button accessible name. Defaults to `"Close surface"`. */
95
71
  closeButtonLabel?: string;
96
72
  } & import('react').RefAttributes<HTMLDivElement>>;
97
73
  /**
98
- * Surface component for coordinating trigger and content state in compound overlay UI.
99
- *
100
- * Features:
101
- * - Connects trigger and content with shared accessibility ids.
102
- * - Tracks the trigger element for floating positioning.
103
- * - Exposes Surface.Trigger and Surface.Content compound components.
74
+ * Compound overlay: `Trigger` (render prop) plus positioned `Content`.
104
75
  *
105
- * @param props Surface props including open state, optional id, and compound children.
106
- * @returns A Surface context provider that coordinates compound components.
107
76
  * @example
108
77
  * <Surface open={open}>
109
78
  * <Surface.Trigger>
@@ -115,31 +84,29 @@ export declare const SurfaceContent: import('react').ForwardRefExoticComponent<O
115
84
  * </Surface>
116
85
  */
117
86
  export declare const Surface: (({ children, open, id }: SurfaceProps) => import("react/jsx-runtime").JSX.Element) & {
118
- /**
119
- * SurfaceTrigger component for wiring a trigger element to Surface content.
120
- *
121
- * Features:
122
- * - Provides ARIA attributes and open state for the trigger.
123
- * - Registers the trigger as the positioning reference.
124
- */
87
+ /** Render-prop trigger that registers the positioning reference. */
125
88
  Trigger: typeof SurfaceTrigger;
126
- /**
127
- * SurfaceContent component for rendering positioned, non-modal content as a manual popover.
128
- *
129
- * Features:
130
- * - Positions content relative to the Surface trigger.
131
- * - Supports accessible labels, close behavior, and viewport-aware sizing.
132
- */
89
+ /** Positioned non-modal content; drawer below `md`. */
133
90
  Content: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "title" | "id" | "children"> & {
91
+ /** Body below the header. */
134
92
  children: ReactNode;
93
+ /** Close / commit (click-outside, header close). */
135
94
  onClose: () => void;
95
+ /** Escape. Defaults to `onClose`. */
136
96
  onCancel?: () => void;
97
+ /** Header title; also the default accessible name via `aria-labelledby`. */
137
98
  title?: ReactNode;
99
+ /** Extra header actions, rendered before the close button. */
138
100
  headerContent?: ReactNode;
101
+ /** Focused on open (next animation frame). */
139
102
  initialFocusRef?: RefObject<HTMLElement | null>;
103
+ /** After place/drag/resize, keep overlapping this element's box. */
140
104
  intersectionBoundaryRef?: RefObject<HTMLElement | null>;
105
+ /** CSS width. Numbers become `px`. Defaults to `325px`. */
141
106
  width?: number | string;
107
+ /** CSS max-height. Numbers become `px`. Defaults to `450px`. */
142
108
  maxHeight?: number | string;
109
+ /** Close-button accessible name. Defaults to `"Close surface"`. */
143
110
  closeButtonLabel?: string;
144
111
  } & import('react').RefAttributes<HTMLDivElement>>;
145
112
  };
@@ -1,3 +1,4 @@
1
+ /** Inset from the viewport edge used when clamping position and size. */
1
2
  export declare const SURFACE_VIEWPORT_PADDING = 8;
2
3
  export declare const SURFACE_MIN_WIDTH = 240;
3
4
  export declare const SURFACE_MIN_HEIGHT = 120;
@@ -5,8 +6,11 @@ export type SurfaceGeometry = {
5
6
  x: number;
6
7
  y: number;
7
8
  width: number;
9
+ /** Explicit height after resize; `null` means auto height. */
8
10
  height: number | null;
11
+ /** When true, auto-placement must not overwrite user x/y/width. */
9
12
  isUserModified: boolean;
13
+ /** When true, an explicit height is applied instead of max-height. */
10
14
  hasUserResized: boolean;
11
15
  };
12
16
  export type SurfaceViewport = {
@@ -20,12 +24,20 @@ export type SurfaceRect = {
20
24
  height: number;
21
25
  };
22
26
  export type ClampSurfaceGeometryOptions = {
27
+ /** Used when `height` is `null`. */
23
28
  measuredHeight?: number;
29
+ /** After clamp, keep at least 1px overlap with this rect when possible. */
24
30
  intersectionBoundary?: SurfaceRect | null;
25
31
  };
32
+ /** Remaining viewport width to the right of `x`, floored at {@link SURFACE_MIN_WIDTH}. */
26
33
  export declare function getMaxSurfaceWidth(viewport: SurfaceViewport, x: number): number;
34
+ /** Remaining viewport height below `y`, floored at {@link SURFACE_MIN_HEIGHT}. */
27
35
  export declare function getMaxSurfaceHeight(viewport: SurfaceViewport, y: number): number;
36
+ /** True when the rects overlap by more than a shared edge. */
28
37
  export declare function hasStrictRectIntersection(rect: SurfaceRect, boundary: SurfaceRect): boolean;
38
+ /** Clamps to the padded viewport, then restores optional boundary overlap. */
29
39
  export declare function clampSurfaceGeometry(geometry: SurfaceGeometry, viewport: SurfaceViewport, options?: ClampSurfaceGeometryOptions): SurfaceGeometry;
40
+ /** Size-only clamp so a live resize does not slide `x`/`y` out from under the pointer. */
30
41
  export declare function clampActiveResizeSurfaceGeometry(geometry: SurfaceGeometry, viewport: SurfaceViewport): SurfaceGeometry;
42
+ /** After resize ends, slides position so the surface intersects the boundary again. */
31
43
  export declare function restoreSurfaceGeometryIntersection(geometry: SurfaceGeometry, viewport: SurfaceViewport, options?: ClampSurfaceGeometryOptions): SurfaceGeometry;
@@ -1,2 +1,3 @@
1
1
  import { OptionsPanelProps, OptionsPanelHandle } from './OptionsPanel';
2
+ /** Virtualized {@link OptionsPanel} scroller. */
2
3
  export declare const VirtualizedOptionsPanel: import('react').ForwardRefExoticComponent<OptionsPanelProps & import('react').RefAttributes<OptionsPanelHandle>>;
@@ -1,67 +1,33 @@
1
1
  import { PassThroughProps } from '../../../types';
2
2
  export interface YearSelectorProps {
3
- /**
4
- * The minimum selectable year
5
- * Defaults to 1900.
6
- */
3
+ /** Inclusive lower bound. Defaults to `1900`. */
7
4
  min?: number;
8
- /**
9
- * The maximum selectable year.
10
- * Defaults to 2200.
11
- */
5
+ /** Inclusive upper bound. Defaults to `2200`. */
12
6
  max?: number;
13
- /**
14
- * The currently selected year
15
- */
7
+ /** Controlled selected year. `null` means none. */
16
8
  value?: number | null;
17
- /**
18
- * The default value of the selected year
19
- */
9
+ /** Uncontrolled initial selection. Defaults to none. */
20
10
  defaultValue?: number;
21
- /**
22
- * The function to call when the selected year changes
23
- *
24
- * @param year - The year that is selected.
25
- */
11
+ /** Fires when the selected year changes, including keyboard moves. */
26
12
  onChange?: (year: number | null) => void;
27
- /**
28
- * The function to call when the selected year is affirmatively changed.
29
- * This is called when the user confirms the selection by pressing Enter, pressing Space, or clicking.
30
- *
31
- * @param year - The year that is selected.
32
- */
13
+ /** Fires on click, Enter, or Space — not on arrow-key moves. */
33
14
  onConfirm?: (year: number | null) => void;
34
15
  /**
35
- * If a `value` or `defaultValue` is not provided, this will be used as the starting scroll position (and initial focus for accessibility).
16
+ * Scroll and roving-focus target when nothing is selected.
17
+ * Defaults to the current calendar year.
36
18
  */
37
19
  startingYear?: number;
38
- /**
39
- * The number of columns to display.
40
- * @default 2
41
- */
20
+ /** Grid column count. Values below `1` become `1`. Defaults to `2`. */
42
21
  columns?: number;
43
- /**
44
- * The class name to apply to the component.
45
- */
46
22
  className?: string;
47
- /**
48
- * Controls whether a year can be deselected, i.e. set to null.
49
- * @default false
50
- */
23
+ /** When true, the selection cannot be cleared to `null`. Defaults to `false`. */
51
24
  required?: boolean;
52
- /**
53
- * Controls whether the component allows the user to select a year.
54
- * @default false
55
- */
25
+ /** Blocks selection changes; the list still scrolls and receives keys. Defaults to `false`. */
56
26
  disabled?: boolean;
57
- /**
58
- * The aria-label for the component.
59
- * @default "Year selection"
60
- */
27
+ /** Accessible name on the spinbutton. Defaults to `"Year selection"`. */
61
28
  ariaLabel?: string;
62
- /**
63
- * Props forwarded onto the root element of the component.
64
- */
29
+ /** Merged last onto the spinbutton, so it can override the built-in ARIA. */
65
30
  rootProps?: PassThroughProps<"div">;
66
31
  }
32
+ /** Virtualized year grid with spinbutton keyboard behavior. */
67
33
  export declare const YearSelector: import('react').ForwardRefExoticComponent<YearSelectorProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -6,5 +6,6 @@ type YearItemProps = Omit<ComponentPropsWithoutRef<"div">, "onChange"> & {
6
6
  pseudoFocused: boolean;
7
7
  disabled: boolean;
8
8
  };
9
+ /** One year cell in the virtualized grid. */
9
10
  export declare const YearItem: ({ year, onChange, selected, pseudoFocused, disabled, onFocus, ...rest }: YearItemProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -16,4 +16,8 @@ export type UseYearSelectorKeysParams = {
16
16
  export type UseYearSelectorKeysReturn = {
17
17
  listRef: React.RefObject<HTMLDivElement>;
18
18
  };
19
+ /**
20
+ * Binds arrow / page / home keys to move-and-select, Enter and Space to
21
+ * confirm, and Backspace / Delete to clear when not required.
22
+ */
19
23
  export declare const useYearSelectorKeys: ({ columns, scrollToYear, initialFocus, onSelect, onConfirm, pseudoFocused, setPseudoFocused, min, max, disabled, required, }: UseYearSelectorKeysParams) => UseYearSelectorKeysReturn;
@@ -1,38 +1,4 @@
1
- /**
2
- * `data-anv-part` — the internally-managed test attribute for targeting the
3
- * interactive sub-elements of complex Anvil2 components in end-to-end tests.
4
- *
5
- * Scoping model (two independent axes — use either or both):
6
- * - **Component type**: the component's existing `data-anv` root value
7
- * (e.g. `data-anv="data-table-base"`). Stable, already present on most roots.
8
- * - **Instance**: a consumer-supplied `data-*` (e.g. `data-cy`) forwarded to the
9
- * root. The consumer owns this.
10
- *
11
- * A test then queries `[data-anv="<component>"] [data-anv-part="row"]` or
12
- * `[data-cy="x"] [data-anv-part="row"]`. Because the part is always read in the
13
- * context of a component, **part names only need to be unique within a single
14
- * component** — `header`, `row`, and `item` may repeat across components.
15
- *
16
- * Kept separate from `data-anv` (which holds structural/decorative values like
17
- * "popover-content" or "button"); the two attributes coexist on an element.
18
- *
19
- * ## Where part names live
20
- *
21
- * Each component owns its part names in a co-located `parts.ts` next to its
22
- * source (e.g. `beta/components/Table/parts.ts`):
23
- *
24
- * import { ANV_PART_ATTR } from "../../../internal/constants/anvParts";
25
- * export const PARTS = {
26
- * row: "row",
27
- * cell: "cell",
28
- * sortToggle: "sort-toggle",
29
- * } as const;
30
- *
31
- * This file centralizes only (1) the attribute name and (2) the small set of
32
- * roles that recur across many components, so their *string values* stay
33
- * identical everywhere. Prefer a `COMMON_PART` value when one fits; otherwise
34
- * define a component-specific name in that component's `parts.ts`.
35
- */
1
+ /** Internally-managed test hook attribute. Distinct from `data-anv` (structural). */
36
2
  export declare const ANV_PART_ATTR: "data-anv-part";
37
3
  /**
38
4
  * Cross-cutting part roles whose string values must match across components so
@@ -40,42 +6,24 @@ export declare const ANV_PART_ATTR: "data-anv-part";
40
6
  * co-located `parts.ts` rather than re-typing the literals.
41
7
  */
42
8
  export declare const COMMON_PART: {
43
- /** Element that opens a menu/popover/dialog/drawer. */
44
9
  readonly trigger: "trigger";
45
- /** Free-text entry. */
46
10
  readonly input: "input";
47
- /** Button that clears the current value/selection. */
48
11
  readonly clearButton: "clear-button";
49
- /** Button that opens/closes an adjacent surface. */
12
+ /** Opens or closes an adjacent surface — not the overlay `trigger`. */
50
13
  readonly toggleButton: "toggle-button";
51
- /** Button that commits a pending selection. */
52
14
  readonly applyButton: "apply-button";
53
- /** Button that dismisses a surface without committing. */
54
15
  readonly cancelButton: "cancel-button";
55
- /** Listbox/menu container. */
56
16
  readonly menu: "menu";
57
- /** A single option/row within a menu. */
58
17
  readonly option: "option";
59
- /** A selected-value chip. */
60
18
  readonly chip: "chip";
61
- /** Dialog container (top layer). */
62
19
  readonly dialog: "dialog";
63
- /** Popover container (top layer). */
64
20
  readonly popover: "popover";
65
- /** Drawer container (top layer). */
66
21
  readonly drawer: "drawer";
67
- /** Masked text input of a date / date-range field. */
68
22
  readonly dateInput: "date-input";
69
- /** Calendar surface of a date / date-range field. */
70
23
  readonly dateCalendar: "date-calendar";
71
- /** Affordance that adds a new item from a select/combobox menu. */
72
24
  readonly addNewItemButton: "add-new-item-button";
73
- /** Lazy-load control inside a virtualized/paged options list. */
74
25
  readonly loadMoreButton: "load-more-button";
75
- /**
76
- * "+N" overflow indicator when selected-value chips exceed the visible
77
- * budget. Distinct from `chip` (real selected values).
78
- */
26
+ /** "+N" overflow indicator. Distinct from `chip` (a real selected value). */
79
27
  readonly overflowChip: "overflow-chip";
80
28
  };
81
29
  export type CommonPart = (typeof COMMON_PART)[keyof typeof COMMON_PART];
@@ -1,7 +1,3 @@
1
- /**
2
- * Derived from svg-path-properties@0.2.2 and svgpath/a2c vendored by flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  type ArcCurve = [
6
2
  number,
7
3
  number,
@@ -1,7 +1,3 @@
1
- /**
2
- * Derived from svg-path-properties@0.2.2 vendored by flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  type Point = {
6
2
  x: number;
7
3
  y: number;
@@ -1,7 +1,3 @@
1
- /**
2
- * Derived from svg-path-properties@0.2.2 vendored by flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  type Point = {
6
2
  x: number;
7
3
  y: number;
@@ -1,5 +1 @@
1
- /**
2
- * Derived from flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  export declare const INVALID_INPUT = "All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).\nExample valid ways of supplying a shape would be:\n[[0, 0], [10, 0], [10, 10]]\n\"M0,0 L10,0 L10,10Z\"\n";
@@ -1,6 +1,2 @@
1
- /**
2
- * Derived from flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  export { interpolate } from './interpolate';
6
2
  export type { InterpolateOptions } from './interpolate';
@@ -1,7 +1,10 @@
1
1
  import { normalizeRing } from './normalize';
2
2
  export type InterpolateOptions = {
3
+ /** Maximum straight-segment length used to approximate curves. Defaults to `10`. */
3
4
  maxSegmentLength?: number;
5
+ /** Returns SVG path data when true and point rings when false. Defaults to `true`. */
4
6
  string?: boolean;
5
7
  };
8
+ /** Creates a point-wise morph between two SVG paths. */
6
9
  export declare function interpolate(fromShape: string, toShape: string, { maxSegmentLength, string }?: InterpolateOptions): (t: number) => string | import('./math').RingPoint[];
7
10
  export declare function interpolateRing(fromRing: ReturnType<typeof normalizeRing>, toRing: ReturnType<typeof normalizeRing>, string: boolean): (t: number) => string | import('./math').RingPoint[];
@@ -1,7 +1,3 @@
1
- /**
2
- * Derived from svg-path-properties@0.2.2 vendored by flubber@0.4.2 (MIT).
3
- * Adapted for dependency-free internal ESM use in anvil2.
4
- */
5
1
  type Point = {
6
2
  x: number;
7
3
  y: number;