@servicetitan/anvil2 3.13.6 → 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 (414) hide show
  1. package/CHANGELOG.md +27 -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-DcYAaAvs.js → AnvilProvider-DagOuc9c.js} +13 -7
  9. package/dist/AnvilProvider-DagOuc9c.js.map +1 -0
  10. package/dist/AnvilProvider.js +1 -1
  11. package/dist/{Avatar-D31JDNrs.js → Avatar-DZxHhMTP.js} +2 -4
  12. package/dist/Avatar-DZxHhMTP.js.map +1 -0
  13. package/dist/{Avatar-DXI-w1Vi.js → Avatar-DkWoRhJu.js} +2 -2
  14. package/dist/{Avatar-DXI-w1Vi.js.map → Avatar-DkWoRhJu.js.map} +1 -1
  15. package/dist/Avatar.js +2 -2
  16. package/dist/{Breadcrumbs-Di0HJmcH.js → Breadcrumbs-DbOrdao2.js} +2 -2
  17. package/dist/{Breadcrumbs-Di0HJmcH.js.map → Breadcrumbs-DbOrdao2.js.map} +1 -1
  18. package/dist/Breadcrumbs.js +1 -1
  19. package/dist/Button-Dwh_Nd4l.js.map +1 -1
  20. package/dist/{Calendar-DnK6UwPE.js → Calendar-CK-AAaSG.js} +33 -41
  21. package/dist/Calendar-CK-AAaSG.js.map +1 -0
  22. package/dist/{Calendar-C1mgmbWt.js → Calendar-DLnn6dJE.js} +2 -2
  23. package/dist/{Calendar-C1mgmbWt.js.map → Calendar-DLnn6dJE.js.map} +1 -1
  24. package/dist/Calendar.css +50 -48
  25. package/dist/Calendar.js +2 -2
  26. package/dist/{Checkbox-CknwM231.js → Checkbox-CboZhOtU.js} +3 -3
  27. package/dist/{Checkbox-CknwM231.js.map → Checkbox-CboZhOtU.js.map} +1 -1
  28. package/dist/{Checkbox-FvMXGsgi.js → Checkbox-Cn4iNLW_.js} +2 -2
  29. package/dist/{Checkbox-FvMXGsgi.js.map → Checkbox-Cn4iNLW_.js.map} +1 -1
  30. package/dist/Checkbox.js +1 -1
  31. package/dist/{Chip-AILbiVZ6.js → Chip-UbrxYEqs.js} +4 -6
  32. package/dist/Chip-UbrxYEqs.js.map +1 -0
  33. package/dist/Chip.js +1 -1
  34. package/dist/Combobox.js +1 -1
  35. package/dist/{DataTable-BE1YvSto.js → DataTable-COExZbOC.js} +11 -25
  36. package/dist/DataTable-COExZbOC.js.map +1 -0
  37. package/dist/{DateFieldRange-VK82YRwV.js → DateFieldRange-CpTxlASD.js} +5 -5
  38. package/dist/{DateFieldRange-VK82YRwV.js.map → DateFieldRange-CpTxlASD.js.map} +1 -1
  39. package/dist/DateFieldRange.js +1 -1
  40. package/dist/{DateFieldSingle-BikPSISX.js → DateFieldSingle-DR2kfrzh.js} +5 -5
  41. package/dist/{DateFieldSingle-BikPSISX.js.map → DateFieldSingle-DR2kfrzh.js.map} +1 -1
  42. package/dist/DateFieldSingle.js +1 -1
  43. package/dist/{DateFieldYearless-DQIEBYKe.js → DateFieldYearless-4mS_2Mgw.js} +5 -5
  44. package/dist/{DateFieldYearless-DQIEBYKe.js.map → DateFieldYearless-4mS_2Mgw.js.map} +1 -1
  45. package/dist/DateFieldYearless.js +1 -1
  46. package/dist/{DateFieldYearlessRange-BpQqvD9U.js → DateFieldYearlessRange-C-yvKBkJ.js} +4 -4
  47. package/dist/{DateFieldYearlessRange-BpQqvD9U.js.map → DateFieldYearlessRange-C-yvKBkJ.js.map} +1 -1
  48. package/dist/DateFieldYearlessRange.js +1 -1
  49. package/dist/{DaysOfTheWeek-Re26vN8g.js → DaysOfTheWeek-Bo4w8SsT.js} +2 -2
  50. package/dist/{DaysOfTheWeek-Re26vN8g.js.map → DaysOfTheWeek-Bo4w8SsT.js.map} +1 -1
  51. package/dist/DaysOfTheWeek.js +1 -1
  52. package/dist/{Dialog-BMPFoRQh.js → Dialog-Ds25dKQp.js} +4 -4
  53. package/dist/{Dialog-BMPFoRQh.js.map → Dialog-Ds25dKQp.js.map} +1 -1
  54. package/dist/Dialog.js +1 -1
  55. package/dist/{Drawer-BCw_ZHSD.js → Drawer-Da-bj_6o.js} +4 -4
  56. package/dist/{Drawer-BCw_ZHSD.js.map → Drawer-Da-bj_6o.js.map} +1 -1
  57. package/dist/Drawer.js +1 -1
  58. package/dist/DrillDown.js +1 -1
  59. package/dist/{EditCard-CTEk64eN.js → EditCard-CocV93gS.js} +2 -2
  60. package/dist/{EditCard-CTEk64eN.js.map → EditCard-CocV93gS.js.map} +1 -1
  61. package/dist/EditCard.js +1 -1
  62. package/dist/{FieldLabel-CYCk2rz-.js → FieldLabel-6aFKQfyD.js} +2 -2
  63. package/dist/FieldLabel-6aFKQfyD.js.map +1 -0
  64. package/dist/FieldLabel.js +1 -1
  65. package/dist/{FilterBar-XMZ-Q-aW.js → FilterBar-CZT1ryz_.js} +6 -7
  66. package/dist/FilterBar-CZT1ryz_.js.map +1 -0
  67. package/dist/FilterBar.js +1 -1
  68. package/dist/Helper-BHpOgh7k.js.map +1 -1
  69. package/dist/Icon-B5zwN7GD.js.map +1 -1
  70. package/dist/{InputMask-Bm7ZYtQy.js → InputMask-CNV0Ucli.js} +3 -3
  71. package/dist/{InputMask-Bm7ZYtQy.js.map → InputMask-CNV0Ucli.js.map} +1 -1
  72. package/dist/InputMask.js +1 -1
  73. package/dist/{ListView-Bkv1ZCSu.js → ListView-DFAWrwzi.js} +2 -2
  74. package/dist/ListView-DFAWrwzi.js.map +1 -0
  75. package/dist/ListView.js +1 -1
  76. package/dist/{Listbox-BWy_uBqm.js → Listbox-BErqErNN.js} +2 -2
  77. package/dist/Listbox-BErqErNN.js.map +1 -0
  78. package/dist/Listbox.js +1 -1
  79. package/dist/LocalizationContext-UsmB5mnR.js.map +1 -1
  80. package/dist/LocalizationProvider-BPcOU7YX.js.map +1 -1
  81. package/dist/{MenuFooter--lBF8OjJ.js → MenuFooter-fGSZYh8e.js} +2 -2
  82. package/dist/MenuFooter-fGSZYh8e.js.map +1 -0
  83. package/dist/MultiSelectField.js +1 -1
  84. package/dist/{MultiSelectFieldSync-C57Hms2z.js → MultiSelectFieldSync-CqWUidCm.js} +8 -8
  85. package/dist/MultiSelectFieldSync-CqWUidCm.js.map +1 -0
  86. package/dist/MultiSelectMenu.js +1 -1
  87. package/dist/{MultiSelectMenuSync-DxU1AtCL.js → MultiSelectMenuSync-DG3rKyQc.js} +6 -6
  88. package/dist/{MultiSelectMenuSync-DxU1AtCL.js.map → MultiSelectMenuSync-DG3rKyQc.js.map} +1 -1
  89. package/dist/{NumberField-BOLMhpdk.js → NumberField-DRYYJHec.js} +3 -3
  90. package/dist/{NumberField-BOLMhpdk.js.map → NumberField-DRYYJHec.js.map} +1 -1
  91. package/dist/NumberField.js +1 -1
  92. package/dist/{Page-CBmCe-YR.js → Page-BmpojvuI.js} +8 -8
  93. package/dist/{Page-CBmCe-YR.js.map → Page-BmpojvuI.js.map} +1 -1
  94. package/dist/Page.js +1 -1
  95. package/dist/{Pagination-Hjalx9ZX.js → Pagination-Bc4fhdNm.js} +3 -3
  96. package/dist/{Pagination-Hjalx9ZX.js.map → Pagination-Bc4fhdNm.js.map} +1 -1
  97. package/dist/Pagination.js +1 -1
  98. package/dist/{Popover-BQ-R2hs0.js → Popover-BgVOsP4J.js} +2 -2
  99. package/dist/{Popover-BQ-R2hs0.js.map → Popover-BgVOsP4J.js.map} +1 -1
  100. package/dist/Popover.js +1 -1
  101. package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
  102. package/dist/{ProgressBar-BUmYFa81.js → ProgressBar-Chb0uKfL.js} +2 -2
  103. package/dist/{ProgressBar-BUmYFa81.js.map → ProgressBar-Chb0uKfL.js.map} +1 -1
  104. package/dist/ProgressBar.js +1 -1
  105. package/dist/{Radio-BgbBIhPS.js → Radio-DcNlFfSu.js} +3 -3
  106. package/dist/{Radio-BgbBIhPS.js.map → Radio-DcNlFfSu.js.map} +1 -1
  107. package/dist/{Radio-C2pWQ84U.js → Radio-gpMEsFss.js} +2 -2
  108. package/dist/{Radio-C2pWQ84U.js.map → Radio-gpMEsFss.js.map} +1 -1
  109. package/dist/Radio.js +1 -1
  110. package/dist/{RichTextEditor-Chzl-zeW.js → RichTextEditor-DeO4p-S-.js} +8 -8
  111. package/dist/{RichTextEditor-Chzl-zeW.js.map → RichTextEditor-DeO4p-S-.js.map} +1 -1
  112. package/dist/RichTextEditor.js +1 -1
  113. package/dist/{SavedFiltersButton-DFy_R8yv.js → SavedFiltersButton-Cvf1mJk8.js} +10 -10
  114. package/dist/{SavedFiltersButton-DFy_R8yv.js.map → SavedFiltersButton-Cvf1mJk8.js.map} +1 -1
  115. package/dist/SavedFiltersButton.js +1 -1
  116. package/dist/{SelectCard-BGTB3ay0.js → SelectCard-bp5hRyHK.js} +3 -3
  117. package/dist/{SelectCard-BGTB3ay0.js.map → SelectCard-bp5hRyHK.js.map} +1 -1
  118. package/dist/SelectCard.js +1 -1
  119. package/dist/SelectField.js +1 -1
  120. package/dist/{SelectFieldLabel-CcX2GAym.js → SelectFieldLabel-DZqxaZsp.js} +2 -2
  121. package/dist/SelectFieldLabel-DZqxaZsp.js.map +1 -0
  122. package/dist/{SelectFieldSync-CLpTOgdr.js → SelectFieldSync-Wkx6DGpg.js} +7 -7
  123. package/dist/{SelectFieldSync-CLpTOgdr.js.map → SelectFieldSync-Wkx6DGpg.js.map} +1 -1
  124. package/dist/SelectMenu.js +1 -1
  125. package/dist/{SelectMenuSync-DqUIPJtu.js → SelectMenuSync-O55TODxn.js} +6 -6
  126. package/dist/{SelectMenuSync-DqUIPJtu.js.map → SelectMenuSync-O55TODxn.js.map} +1 -1
  127. package/dist/{SelectOptions-BkqBzRiG.js → SelectOptions-0A8BYx1q.js} +2 -2
  128. package/dist/SelectOptions-0A8BYx1q.js.map +1 -0
  129. package/dist/{SelectTrigger-DdIvzkNw.js → SelectTrigger-BfJ7DWYq.js} +3 -3
  130. package/dist/{SelectTrigger-DdIvzkNw.js.map → SelectTrigger-BfJ7DWYq.js.map} +1 -1
  131. package/dist/SelectTrigger.js +1 -1
  132. package/dist/{SelectTriggerBase-f2z0XQDf.js → SelectTriggerBase-DvsI-kSG.js} +3 -3
  133. package/dist/{SelectTriggerBase-f2z0XQDf.js.map → SelectTriggerBase-DvsI-kSG.js.map} +1 -1
  134. package/dist/StatusIcon-BqorkNJf.js.map +1 -1
  135. package/dist/{Switch-DWaFomvP.js → Switch-CrDmBj4D.js} +2 -2
  136. package/dist/{Switch-DWaFomvP.js.map → Switch-CrDmBj4D.js.map} +1 -1
  137. package/dist/Switch.js +1 -1
  138. package/dist/Table.js +1 -1
  139. package/dist/{Text-D2TIPmZ2.js → Text-CZccJAnm.js} +2 -2
  140. package/dist/{Text-D2TIPmZ2.js.map → Text-CZccJAnm.js.map} +1 -1
  141. package/dist/Text.js +1 -1
  142. package/dist/{TextField-wIc7ic0E.js → TextField-D0f9LwgQ.js} +3 -3
  143. package/dist/{TextField-wIc7ic0E.js.map → TextField-D0f9LwgQ.js.map} +1 -1
  144. package/dist/{TextField-DJaBZ4Je.js → TextField-DX5qyWPo.js} +2 -2
  145. package/dist/{TextField-DJaBZ4Je.js.map → TextField-DX5qyWPo.js.map} +1 -1
  146. package/dist/TextField.js +1 -1
  147. package/dist/{Textarea-D4c6VjNs.js → Textarea-CdTcekFd.js} +3 -3
  148. package/dist/{Textarea-D4c6VjNs.js.map → Textarea-CdTcekFd.js.map} +1 -1
  149. package/dist/Textarea.js +1 -1
  150. package/dist/ThemeProvider-DW-Mflv6.js.map +1 -1
  151. package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
  152. package/dist/{TimeField-DpnX_t31.js → TimeField-BxNglWQt.js} +4 -4
  153. package/dist/TimeField-BxNglWQt.js.map +1 -0
  154. package/dist/TimeField.js +1 -1
  155. package/dist/Toast.js +2 -2
  156. package/dist/{Toaster-Cl9BSxHs.js → Toaster-C-Z_FMbW.js} +3 -3
  157. package/dist/{Toaster-Cl9BSxHs.js.map → Toaster-C-Z_FMbW.js.map} +1 -1
  158. package/dist/{Toaster-11pmgwx5.js → Toaster-nyQgF9Ki.js} +2 -2
  159. package/dist/{Toaster-11pmgwx5.js.map → Toaster-nyQgF9Ki.js.map} +1 -1
  160. package/dist/{Toolbar-C9_Z1wAt.js → Toolbar-BUbMtBVz.js} +4 -4
  161. package/dist/{Toolbar-C9_Z1wAt.js.map → Toolbar-BUbMtBVz.js.map} +1 -1
  162. package/dist/{Toolbar-Dq9KOJoH.js → Toolbar-BxAFPvbn.js} +5 -5
  163. package/dist/{Toolbar-Dq9KOJoH.js.map → Toolbar-BxAFPvbn.js.map} +1 -1
  164. package/dist/Toolbar.js +2 -2
  165. package/dist/{ToolbarButtonToggle-BGnYIt6-.js → ToolbarButtonToggle-NSJ2XfXT.js} +2 -2
  166. package/dist/{ToolbarButtonToggle-BGnYIt6-.js.map → ToolbarButtonToggle-NSJ2XfXT.js.map} +1 -1
  167. package/dist/TrackingProvider-Co4lyoI9.js.map +1 -1
  168. package/dist/TrackingProviderContext-CrVA7KHv.js.map +1 -1
  169. package/dist/TreeSelectField.js +1 -1
  170. package/dist/{TreeSelectFieldSync-nD0qctC8.js → TreeSelectFieldSync-DpvwlM7B.js} +6 -6
  171. package/dist/{TreeSelectFieldSync-nD0qctC8.js.map → TreeSelectFieldSync-DpvwlM7B.js.map} +1 -1
  172. package/dist/TreeSelectMenu.js +1 -1
  173. package/dist/{TreeSelectMenuSync-B8pwy4dA.js → TreeSelectMenuSync-BDitYX_k.js} +5 -5
  174. package/dist/{TreeSelectMenuSync-B8pwy4dA.js.map → TreeSelectMenuSync-BDitYX_k.js.map} +1 -1
  175. package/dist/{TypeaheadTextField-2kW-oCMo.js → TypeaheadTextField-Cj09sEji.js} +3 -3
  176. package/dist/{TypeaheadTextField-2kW-oCMo.js.map → TypeaheadTextField-Cj09sEji.js.map} +1 -1
  177. package/dist/TypeaheadTextField.js +1 -1
  178. package/dist/{YearlessDateInputWithPicker-CuHWd_Vp.js → YearlessDateInputWithPicker-CoomgSEK.js} +8 -6
  179. package/dist/YearlessDateInputWithPicker-CoomgSEK.js.map +1 -0
  180. package/dist/anvParts-DFVq7-Cm.js +25 -0
  181. package/dist/anvParts-DFVq7-Cm.js.map +1 -0
  182. package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -1
  183. package/dist/assets/icons/st/gnav_automations_active.svg +1 -0
  184. package/dist/assets/icons/st/gnav_automations_inactive.svg +1 -0
  185. package/dist/assets/icons/st/gnav_command_center_active.svg +1 -0
  186. package/dist/assets/icons/st/gnav_command_center_inactive.svg +1 -0
  187. package/dist/assets/icons/st.ts +4 -0
  188. package/dist/beta.js +17 -17
  189. package/dist/{bulkActionTypes-cnslVUIT.js → bulkActionTypes-DAo3_ECS.js} +2 -2
  190. package/dist/bulkActionTypes-DAo3_ECS.js.map +1 -0
  191. package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
  192. package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -1
  193. package/dist/{downshift.esm-xtSnQp44.js → downshift.esm-U4VMqrF-.js} +3 -1
  194. package/dist/downshift.esm-U4VMqrF-.js.map +1 -0
  195. package/dist/{filter-state-B7lCzjsR.js → filter-state-CZcczj37.js} +21 -21
  196. package/dist/{filter-state-B7lCzjsR.js.map → filter-state-CZcczj37.js.map} +1 -1
  197. package/dist/floating-ui.react-dom-BIKT960u.js.map +1 -1
  198. package/dist/getActiveElement-BcSyVE7S.js.map +1 -1
  199. package/dist/getKeyboardFocusableElements-B_U9rt6y.js.map +1 -1
  200. package/dist/{index-BHztJ8H6.js → index-BFxzUzoz.js} +2 -2
  201. package/dist/{index-BHztJ8H6.js.map → index-BFxzUzoz.js.map} +1 -1
  202. package/dist/index.js +44 -45
  203. package/dist/index.js.map +1 -1
  204. package/dist/portalScopeClassNames-DA28LrXe.js.map +1 -1
  205. package/dist/src/components/DateFieldYearless/internal/YearlessDateSelectionPopover.d.ts +2 -2
  206. package/dist/src/hooks/useAccessibleColor/useAccessibleColor.d.ts +3 -28
  207. package/dist/src/hooks/useBreakpoint/useBreakpoint.d.ts +15 -60
  208. package/dist/src/hooks/useMergeRefs/useMergeRefs.d.ts +3 -20
  209. package/dist/src/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts +2 -11
  210. package/dist/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +2 -10
  211. package/dist/src/hooks/useSize/index.d.ts +2 -13
  212. package/dist/src/hooks/useSwipe/useSwipe.d.ts +3 -20
  213. package/dist/src/hooks/useTrackingId/index.d.ts +6 -17
  214. package/dist/src/internal/components/AddNewItemButton.d.ts +4 -30
  215. package/dist/src/internal/components/Helper/Helper.d.ts +12 -8
  216. package/dist/src/internal/components/InView.d.ts +4 -24
  217. package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +2 -19
  218. package/dist/src/internal/components/Label/Label.d.ts +12 -51
  219. package/dist/src/internal/components/ManualTestLayout/ManualTestLayout.d.ts +3 -2
  220. package/dist/src/internal/components/MenuFooter/MenuFooter.d.ts +11 -17
  221. package/dist/src/internal/components/MultiSelectOptions.d.ts +15 -0
  222. package/dist/src/internal/components/OptionCheckbox.d.ts +2 -0
  223. package/dist/src/internal/components/OptionContentArea.d.ts +4 -0
  224. package/dist/src/internal/components/OptionRow.d.ts +4 -0
  225. package/dist/src/internal/components/OptionsDialog/OptionsDialog.d.ts +13 -1
  226. package/dist/src/internal/components/OptionsPanel.d.ts +16 -0
  227. package/dist/src/internal/components/OptionsPopover/OptionsPopover.d.ts +9 -14
  228. package/dist/src/internal/components/Popover/Popover.d.ts +45 -180
  229. package/dist/src/internal/components/Popover/PopoverButton.d.ts +0 -20
  230. package/dist/src/internal/components/Popover/PopoverClose.d.ts +0 -20
  231. package/dist/src/internal/components/Popover/PopoverContent.d.ts +4 -25
  232. package/dist/src/internal/components/Popover/PopoverTrigger.d.ts +1 -23
  233. package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +0 -21
  234. package/dist/src/internal/components/Popover/internal/usePopoverContext.d.ts +1 -3
  235. package/dist/src/internal/components/SelectOption.d.ts +8 -0
  236. package/dist/src/internal/components/SelectOptions.d.ts +15 -0
  237. package/dist/src/internal/components/Shadow/Shadow.d.ts +1 -0
  238. package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +4 -33
  239. package/dist/src/internal/components/Surface/Surface.d.ts +40 -73
  240. package/dist/src/internal/components/Surface/surfaceGeometry.d.ts +12 -0
  241. package/dist/src/internal/components/VirtualizedOptionsPanel.d.ts +1 -0
  242. package/dist/src/internal/components/YearSelector/YearSelector.d.ts +14 -48
  243. package/dist/src/internal/components/YearSelector/internal/YearItem.d.ts +1 -0
  244. package/dist/src/internal/components/YearSelector/internal/useYearSelectorKeys.d.ts +4 -0
  245. package/dist/src/internal/constants/anvParts.d.ts +3 -55
  246. package/dist/src/internal/flubber/a2c.d.ts +0 -4
  247. package/dist/src/internal/flubber/arc.d.ts +0 -4
  248. package/dist/src/internal/flubber/bezier.d.ts +0 -4
  249. package/dist/src/internal/flubber/errors.d.ts +0 -4
  250. package/dist/src/internal/flubber/index.d.ts +0 -4
  251. package/dist/src/internal/flubber/interpolate.d.ts +3 -0
  252. package/dist/src/internal/flubber/linear.d.ts +0 -4
  253. package/dist/src/internal/flubber/parse.d.ts +0 -4
  254. package/dist/src/internal/flubber/path-properties.d.ts +0 -4
  255. package/dist/src/internal/functions/areOptionsValueEqual.d.ts +2 -5
  256. package/dist/src/internal/functions/buildSelectItems.d.ts +2 -4
  257. package/dist/src/internal/functions/childrenToString.d.ts +3 -21
  258. package/dist/src/internal/functions/getActiveElement.d.ts +4 -0
  259. package/dist/src/internal/functions/getInitial.d.ts +3 -13
  260. package/dist/src/internal/functions/getKeyboardFocusableElements.d.ts +6 -30
  261. package/dist/src/internal/functions/inlineMarkdown.d.ts +3 -16
  262. package/dist/src/internal/functions/isThenable.d.ts +1 -1
  263. package/dist/src/internal/functions/kebabize.d.ts +3 -13
  264. package/dist/src/internal/functions/mapOrder.d.ts +4 -0
  265. package/dist/src/internal/functions/popoverTargetDomProps.d.ts +1 -1
  266. package/dist/src/internal/functions/portalScopeClassNames.d.ts +6 -13
  267. package/dist/src/internal/functions/safePopover.d.ts +2 -0
  268. package/dist/src/internal/functions/sizeToToken.d.ts +1 -0
  269. package/dist/src/internal/functions/stripInlineMarkdown.d.ts +3 -5
  270. package/dist/src/internal/functions/syncFilterUtils.d.ts +4 -2
  271. package/dist/src/internal/functions/warnOnce.d.ts +1 -2
  272. package/dist/src/internal/hooks/useBulkActionRunner.d.ts +4 -27
  273. package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +7 -14
  274. package/dist/src/internal/hooks/useConfirmationDraft.d.ts +4 -4
  275. package/dist/src/internal/hooks/useContainerQuery/useContainerQuery.d.ts +2 -33
  276. package/dist/src/internal/hooks/useDebouncedCallback/useDebouncedCallback.d.ts +3 -25
  277. package/dist/src/internal/hooks/useDialogScrollLock/useDialogScrollLock.d.ts +6 -31
  278. package/dist/src/internal/hooks/useDialogTransitionStates/useDialogTransitionStates.d.ts +2 -27
  279. package/dist/src/internal/hooks/useDownshiftEnvironment/useDownshiftEnvironment.d.ts +8 -24
  280. package/dist/src/internal/hooks/useFocusWithin/useFocusWithin.d.ts +3 -14
  281. package/dist/src/internal/hooks/useGroupedOptions.d.ts +4 -22
  282. package/dist/src/internal/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +4 -47
  283. package/dist/src/internal/hooks/useInvalidateOnOptionsChange.d.ts +2 -7
  284. package/dist/src/internal/hooks/useIsScrollable/useIsScrollable.d.ts +1 -5
  285. package/dist/src/internal/hooks/useKeyboardFocusables/useKeyboardFocusables.d.ts +1 -38
  286. package/dist/src/internal/hooks/useLayoutPropsUtil/useLayoutPropsUtil.d.ts +2 -38
  287. package/dist/src/internal/hooks/useNumberField/internal/createNumberMaskOptions.d.ts +2 -5
  288. package/dist/src/internal/hooks/useNumberField/internal/createTrailingZerosHandlers.d.ts +1 -2
  289. package/dist/src/internal/hooks/useNumberField/internal/numberMaskUtils.d.ts +0 -6
  290. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldInputMode.d.ts +2 -17
  291. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldKeys.d.ts +4 -30
  292. package/dist/src/internal/hooks/useNumberField/useNumberField.d.ts +19 -65
  293. package/dist/src/internal/hooks/useOnClickOutside/useOnClickOutside.d.ts +5 -33
  294. package/dist/src/internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates.d.ts +4 -28
  295. package/dist/src/internal/hooks/useOptionallyControlledState/useOptionallyControlledState.d.ts +2 -46
  296. package/dist/src/internal/hooks/useOptionsSections.d.ts +4 -9
  297. package/dist/src/internal/hooks/usePinnedOptions.d.ts +4 -24
  298. package/dist/src/internal/hooks/usePlatform/usePlatform.d.ts +3 -50
  299. package/dist/src/internal/hooks/usePopoverCloseDelayWorkaround/usePopoverCloseDelayWorkaround.d.ts +4 -0
  300. package/dist/src/internal/hooks/usePopoverTransitionStates/usePopoverTransitionStates.d.ts +1 -21
  301. package/dist/src/internal/hooks/usePrevious/usePrevious.d.ts +1 -0
  302. package/dist/src/internal/hooks/useProcessedOptions.d.ts +2 -3
  303. package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +18 -61
  304. package/dist/src/internal/hooks/useSelectOrchestration.d.ts +4 -3
  305. package/dist/src/internal/hooks/useToggleSelection.d.ts +3 -3
  306. package/dist/src/internal/hooks/useTypeAhead/useTypeAhead.d.ts +3 -11
  307. package/dist/src/internal/testing/anvPartsContract.d.ts +9 -9
  308. package/dist/src/internal/testing/prefersColorScheme.d.ts +7 -0
  309. package/dist/src/internal/testing/reactHostProps.d.ts +2 -2
  310. package/dist/src/internal/types/addNewItemTypes.d.ts +14 -16
  311. package/dist/src/internal/types/argTypes.d.ts +2 -0
  312. package/dist/src/internal/types/bulkActionTypes.d.ts +12 -41
  313. package/dist/src/internal/types/confirmationTypes.d.ts +6 -7
  314. package/dist/src/internal/types/optionContent.d.ts +6 -9
  315. package/dist/src/internal/types/props.d.ts +6 -1
  316. package/dist/src/internal/types/selectFieldInternalTypes.d.ts +10 -12
  317. package/dist/src/internal/utils/arrayIdsEqual.d.ts +1 -5
  318. package/dist/src/internal/utils/generateChromaticStickersheetProps.d.ts +4 -8
  319. package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +0 -4
  320. package/dist/src/internal/utils/layerManager.d.ts +5 -28
  321. package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +0 -2
  322. package/dist/src/providers/AnvilProvider/AnvilProvider.d.ts +4 -0
  323. package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +16 -6
  324. package/dist/src/providers/LocalizationProvider/LocalizationContext.d.ts +7 -0
  325. package/dist/src/providers/LocalizationProvider/LocalizationProvider.d.ts +6 -0
  326. package/dist/src/providers/LocalizationProvider/LocalizationStoryWrapper.d.ts +1 -0
  327. package/dist/src/providers/LocalizationProvider/useTranslations.d.ts +6 -0
  328. package/dist/src/providers/PortalProvider/PortalProvider.d.ts +1 -0
  329. package/dist/src/providers/PortalProvider/PortalProviderContext.d.ts +3 -0
  330. package/dist/src/providers/ThemeProvider/ThemeProvider.d.ts +16 -0
  331. package/dist/src/providers/ThemeProvider/index.d.ts +1 -1
  332. package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +2 -0
  333. package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +3 -4
  334. package/dist/src/providers/ThemeProvider/useTheme.d.ts +5 -0
  335. package/dist/src/providers/TrackingProvider/TrackingProvider.d.ts +1 -0
  336. package/dist/src/providers/TrackingProvider/TrackingProviderContext.d.ts +7 -0
  337. package/dist/src/providers/TrackingProvider/useTrackingContext.d.ts +5 -0
  338. package/dist/src/themes/carto.d.ts +3 -43
  339. package/dist/src/types/DataTrackingId.d.ts +1 -0
  340. package/dist/src/types/DistributiveOmit.d.ts +1 -14
  341. package/dist/src/types/MaxLengthCounterProps.d.ts +4 -0
  342. package/dist/src/types/PassThroughProps.d.ts +3 -0
  343. package/dist/src/types/ai-marks.d.ts +14 -45
  344. package/dist/src/types/ianaZones.d.ts +2 -0
  345. package/dist/src/types/locales.d.ts +1 -0
  346. package/dist/src/types/props.d.ts +14 -16
  347. package/dist/{stripInlineMarkdown-82hVO9EP.js → stripInlineMarkdown-CosQSmBr.js} +2 -2
  348. package/dist/stripInlineMarkdown-CosQSmBr.js.map +1 -0
  349. package/dist/{syncFilterUtils-CMH8ApTo.js → syncFilterUtils-_uwyt6FD.js} +20 -19
  350. package/dist/syncFilterUtils-_uwyt6FD.js.map +1 -0
  351. package/dist/themes.js.map +1 -1
  352. package/dist/token/core/component-variables.scss +156 -0
  353. package/dist/token/core/component.d.ts +78 -0
  354. package/dist/token/core/component.js +1018 -0
  355. package/dist/token/core/component.scss +82 -0
  356. package/dist/token.js +1096 -0
  357. package/dist/token.js.map +1 -1
  358. package/dist/{treeSync-8byHuYib.js → treeSync-Bp80Xduj.js} +4 -4
  359. package/dist/{treeSync-8byHuYib.js.map → treeSync-Bp80Xduj.js.map} +1 -1
  360. package/dist/useAccessibleColor-BYKjkGRg.js.map +1 -1
  361. package/dist/useBreakpoint-BBNRlMGZ.js.map +1 -1
  362. package/dist/useDebouncedCallback-DLkapjcP.js.map +1 -1
  363. package/dist/useDialogScrollLock-BW-aVboo.js.map +1 -1
  364. package/dist/{useDrilldown-CicFEJpD.js → useDrilldown-D5XGfAUT.js} +3 -3
  365. package/dist/{useDrilldown-CicFEJpD.js.map → useDrilldown-D5XGfAUT.js.map} +1 -1
  366. package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
  367. package/dist/{useInfiniteCombobox-BS7W8JkW.js → useInfiniteCombobox-ORhH44Rp.js} +7 -7
  368. package/dist/{useInfiniteCombobox-BS7W8JkW.js.map → useInfiniteCombobox-ORhH44Rp.js.map} +1 -1
  369. package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-CGybEc6x.js} +2 -6
  370. package/dist/useInitialFocus-CGybEc6x.js.map +1 -0
  371. package/dist/useIntersectionObserver-BEmMDO3P.js.map +1 -1
  372. package/dist/{useInvalidateOnOptionsChange-BKKS9HXb.js → useInvalidateOnOptionsChange-ieSgbkwT.js} +5 -5
  373. package/dist/useInvalidateOnOptionsChange-ieSgbkwT.js.map +1 -0
  374. package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
  375. package/dist/useMergeRefs-Dfmtq9cI.js.map +1 -1
  376. package/dist/useNumberField-CXFYUZ_n.js.map +1 -1
  377. package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -1
  378. package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
  379. package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
  380. package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +1 -0
  381. package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -1
  382. package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +1 -1
  383. package/dist/usePrevious-Bvq-5auG.js.map +1 -1
  384. package/dist/useSize.js.map +1 -1
  385. package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
  386. package/dist/useTheme-B4i6a3bM.js.map +1 -1
  387. package/dist/useTrackingContext-C522P4sv.js.map +1 -1
  388. package/dist/useTrackingId.js.map +1 -1
  389. package/dist/warnOnce-Y9PRHcU4.js.map +1 -1
  390. package/package.json +3 -3
  391. package/dist/AnvilProvider-DcYAaAvs.js.map +0 -1
  392. package/dist/Avatar-D31JDNrs.js.map +0 -1
  393. package/dist/Calendar-DnK6UwPE.js.map +0 -1
  394. package/dist/Chip-AILbiVZ6.js.map +0 -1
  395. package/dist/DataTable-BE1YvSto.js.map +0 -1
  396. package/dist/FieldLabel-CYCk2rz-.js.map +0 -1
  397. package/dist/FilterBar-XMZ-Q-aW.js.map +0 -1
  398. package/dist/ListView-Bkv1ZCSu.js.map +0 -1
  399. package/dist/Listbox-BWy_uBqm.js.map +0 -1
  400. package/dist/MenuFooter--lBF8OjJ.js.map +0 -1
  401. package/dist/MultiSelectFieldSync-C57Hms2z.js.map +0 -1
  402. package/dist/SelectFieldLabel-CcX2GAym.js.map +0 -1
  403. package/dist/SelectOptions-BkqBzRiG.js.map +0 -1
  404. package/dist/TimeField-DpnX_t31.js.map +0 -1
  405. package/dist/YearlessDateInputWithPicker-CuHWd_Vp.js.map +0 -1
  406. package/dist/anvParts-BGg5dgfl.js +0 -43
  407. package/dist/anvParts-BGg5dgfl.js.map +0 -1
  408. package/dist/bulkActionTypes-cnslVUIT.js.map +0 -1
  409. package/dist/downshift.esm-xtSnQp44.js.map +0 -1
  410. package/dist/stripInlineMarkdown-82hVO9EP.js.map +0 -1
  411. package/dist/syncFilterUtils-CMH8ApTo.js.map +0 -1
  412. package/dist/useInitialFocus-BIvXK1Rp.js.map +0 -1
  413. package/dist/useInvalidateOnOptionsChange-BKKS9HXb.js.map +0 -1
  414. package/dist/usePopoverTransitionStates-B1opfxxn.js.map +0 -1
@@ -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;
@@ -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 ParsedSegment = [string, ...number[]];
6
2
  export default function parse(path: string): ParsedSegment[];
7
3
  export {};
@@ -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 PathPoint = {
6
2
  x: number;
7
3
  y: number;
@@ -1,8 +1,5 @@
1
1
  /**
2
- * Deep value equality for select option lists (and nested tree nodes).
3
- *
4
- * Compares arrays and plain objects by contents so a new array/object identity
5
- * with the same data is treated as unchanged. Functions and React elements are
6
- * compared by reference.
2
+ * Compares option data deeply while keeping functions and React elements
3
+ * identity-sensitive.
7
4
  */
8
5
  export declare function areOptionsValueEqual(a: unknown, b: unknown): boolean;
@@ -10,10 +10,8 @@ type BuildSelectItemsParams<TID extends string | number> = {
10
10
  ungroupedItems: SelectItem<TID>[];
11
11
  };
12
12
  /**
13
- * Assembles the flat items array and sectionsMeta.
14
- * Order: prefixItems → pinned sections → group sections → ungrouped items.
15
- * Multi-select hooks pass bulk action items (select-all / select-filtered) as prefixItems;
16
- * single-select hooks omit it.
13
+ * Flattens normalized select sections into render items and indexed section
14
+ * metadata.
17
15
  */
18
16
  export declare function buildSelectItems<TID extends string | number>({ prefixItems, pinnedSections, groupSections, ungroupedItems, }: BuildSelectItemsParams<TID>): {
19
17
  items: SelectItem<TID>[];
@@ -1,25 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  /**
3
- * Recursively extracts text content from React children nodes.
4
- *
5
- * Features:
6
- * - Converts React children to plain text string
7
- * - Handles all React node types (strings, numbers, booleans, arrays, elements)
8
- * - Recursively processes nested React elements
9
- * - Extracts text from element children props
10
- * - Handles empty and null children gracefully
11
- * - Joins array children into single string
12
- * - Filters out non-text content automatically
13
- * - Returns empty string for unsupported node types
14
- *
15
- * Supported Node Types:
16
- * - String, number, boolean (converted to string)
17
- * - React elements (extracts children recursively)
18
- * - Arrays (processes each item and joins)
19
- * - Null, undefined (returns empty string)
20
- * - Objects (returns empty string)
21
- *
22
- * @param node - React node to convert to string
23
- * @returns Extracted text content as string, or empty string if no text content
3
+ * Flattens React children to concatenated text. Numbers and booleans stringify;
4
+ * elements contribute `props.children`; null, undefined, and plain objects
5
+ * become `""`.
24
6
  */
25
7
  export declare function childrenToString(node: ReactNode | object): string;
@@ -1 +1,5 @@
1
+ /**
2
+ * Deepest focused element, walking into open shadow roots and same-origin
3
+ * iframe documents.
4
+ */
1
5
  export declare const getActiveElement: (activeDocument: Document | ShadowRoot) => HTMLElement | null;