@servicetitan/anvil2 3.13.7 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{AiMark-D8dx3b1Q.js → AiMark-CWufA6pV.js} +7 -62
  3. package/dist/{AiMark-D8dx3b1Q.js.map → AiMark-CWufA6pV.js.map} +1 -1
  4. package/dist/AiMark.js +1 -1
  5. package/dist/{Alert-N-Es76Om.js → Alert-RkvFtmRP.js} +2 -2
  6. package/dist/{Alert-N-Es76Om.js.map → Alert-RkvFtmRP.js.map} +1 -1
  7. package/dist/Alert.js +1 -1
  8. package/dist/{AnvilProvider-D8msiELo.js → AnvilProvider-DagOuc9c.js} +2 -3
  9. package/dist/AnvilProvider-DagOuc9c.js.map +1 -0
  10. package/dist/AnvilProvider.js +1 -1
  11. package/dist/Avatar-DZxHhMTP.js.map +1 -1
  12. package/dist/{Breadcrumbs-Di0HJmcH.js → Breadcrumbs-DbOrdao2.js} +2 -2
  13. package/dist/{Breadcrumbs-Di0HJmcH.js.map → Breadcrumbs-DbOrdao2.js.map} +1 -1
  14. package/dist/Breadcrumbs.js +1 -1
  15. package/dist/Button-Dwh_Nd4l.js.map +1 -1
  16. package/dist/{Calendar-kSH8F7gx.js → Calendar-CK-AAaSG.js} +2 -2
  17. package/dist/Calendar-CK-AAaSG.js.map +1 -0
  18. package/dist/{Calendar-DV149Rqb.js → Calendar-DLnn6dJE.js} +2 -2
  19. package/dist/{Calendar-DV149Rqb.js.map → Calendar-DLnn6dJE.js.map} +1 -1
  20. package/dist/Calendar.js +2 -2
  21. package/dist/{Checkbox-CknwM231.js → Checkbox-CboZhOtU.js} +3 -3
  22. package/dist/{Checkbox-CknwM231.js.map → Checkbox-CboZhOtU.js.map} +1 -1
  23. package/dist/{Checkbox-FvMXGsgi.js → Checkbox-Cn4iNLW_.js} +2 -2
  24. package/dist/{Checkbox-FvMXGsgi.js.map → Checkbox-Cn4iNLW_.js.map} +1 -1
  25. package/dist/Checkbox.js +1 -1
  26. package/dist/{Chip-COkotNvt.js → Chip-UbrxYEqs.js} +2 -2
  27. package/dist/{Chip-COkotNvt.js.map → Chip-UbrxYEqs.js.map} +1 -1
  28. package/dist/Chip.js +1 -1
  29. package/dist/Combobox.js +1 -1
  30. package/dist/{DataTable-D0YlJ7IA.js → DataTable-COExZbOC.js} +10 -22
  31. package/dist/DataTable-COExZbOC.js.map +1 -0
  32. package/dist/{DateFieldRange-B7-z7KXC.js → DateFieldRange-CpTxlASD.js} +5 -5
  33. package/dist/{DateFieldRange-B7-z7KXC.js.map → DateFieldRange-CpTxlASD.js.map} +1 -1
  34. package/dist/DateFieldRange.js +1 -1
  35. package/dist/{DateFieldSingle-B3aY-9vO.js → DateFieldSingle-DR2kfrzh.js} +5 -5
  36. package/dist/{DateFieldSingle-B3aY-9vO.js.map → DateFieldSingle-DR2kfrzh.js.map} +1 -1
  37. package/dist/DateFieldSingle.js +1 -1
  38. package/dist/{DateFieldYearless-BYwWvHXD.js → DateFieldYearless-4mS_2Mgw.js} +5 -5
  39. package/dist/{DateFieldYearless-BYwWvHXD.js.map → DateFieldYearless-4mS_2Mgw.js.map} +1 -1
  40. package/dist/DateFieldYearless.js +1 -1
  41. package/dist/{DateFieldYearlessRange-cyDptr2S.js → DateFieldYearlessRange-C-yvKBkJ.js} +4 -4
  42. package/dist/{DateFieldYearlessRange-cyDptr2S.js.map → DateFieldYearlessRange-C-yvKBkJ.js.map} +1 -1
  43. package/dist/DateFieldYearlessRange.js +1 -1
  44. package/dist/{DaysOfTheWeek-Re26vN8g.js → DaysOfTheWeek-Bo4w8SsT.js} +2 -2
  45. package/dist/{DaysOfTheWeek-Re26vN8g.js.map → DaysOfTheWeek-Bo4w8SsT.js.map} +1 -1
  46. package/dist/DaysOfTheWeek.js +1 -1
  47. package/dist/{Dialog-BMPFoRQh.js → Dialog-Ds25dKQp.js} +4 -4
  48. package/dist/{Dialog-BMPFoRQh.js.map → Dialog-Ds25dKQp.js.map} +1 -1
  49. package/dist/Dialog.js +1 -1
  50. package/dist/{Drawer-BCw_ZHSD.js → Drawer-Da-bj_6o.js} +4 -4
  51. package/dist/{Drawer-BCw_ZHSD.js.map → Drawer-Da-bj_6o.js.map} +1 -1
  52. package/dist/Drawer.js +1 -1
  53. package/dist/DrillDown.js +1 -1
  54. package/dist/{EditCard-CTEk64eN.js → EditCard-CocV93gS.js} +2 -2
  55. package/dist/{EditCard-CTEk64eN.js.map → EditCard-CocV93gS.js.map} +1 -1
  56. package/dist/EditCard.js +1 -1
  57. package/dist/{FieldLabel-CYCk2rz-.js → FieldLabel-6aFKQfyD.js} +2 -2
  58. package/dist/FieldLabel-6aFKQfyD.js.map +1 -0
  59. package/dist/FieldLabel.js +1 -1
  60. package/dist/{FilterBar-CrIPZKvL.js → FilterBar-CZT1ryz_.js} +6 -7
  61. package/dist/FilterBar-CZT1ryz_.js.map +1 -0
  62. package/dist/FilterBar.js +1 -1
  63. package/dist/Helper-BHpOgh7k.js.map +1 -1
  64. package/dist/Icon-B5zwN7GD.js.map +1 -1
  65. package/dist/{InputMask-Bm7ZYtQy.js → InputMask-CNV0Ucli.js} +3 -3
  66. package/dist/{InputMask-Bm7ZYtQy.js.map → InputMask-CNV0Ucli.js.map} +1 -1
  67. package/dist/InputMask.js +1 -1
  68. package/dist/{ListView-Bkv1ZCSu.js → ListView-DFAWrwzi.js} +2 -2
  69. package/dist/ListView-DFAWrwzi.js.map +1 -0
  70. package/dist/ListView.js +1 -1
  71. package/dist/{Listbox-BWy_uBqm.js → Listbox-BErqErNN.js} +2 -2
  72. package/dist/Listbox-BErqErNN.js.map +1 -0
  73. package/dist/Listbox.js +1 -1
  74. package/dist/LocalizationContext-UsmB5mnR.js.map +1 -1
  75. package/dist/LocalizationProvider-BPcOU7YX.js.map +1 -1
  76. package/dist/{MenuFooter--lBF8OjJ.js → MenuFooter-fGSZYh8e.js} +2 -2
  77. package/dist/MenuFooter-fGSZYh8e.js.map +1 -0
  78. package/dist/MultiSelectField.js +1 -1
  79. package/dist/{MultiSelectFieldSync-gH-TQnq3.js → MultiSelectFieldSync-CqWUidCm.js} +8 -8
  80. package/dist/MultiSelectFieldSync-CqWUidCm.js.map +1 -0
  81. package/dist/MultiSelectMenu.js +1 -1
  82. package/dist/{MultiSelectMenuSync-QmhjWA05.js → MultiSelectMenuSync-DG3rKyQc.js} +6 -6
  83. package/dist/{MultiSelectMenuSync-QmhjWA05.js.map → MultiSelectMenuSync-DG3rKyQc.js.map} +1 -1
  84. package/dist/{NumberField-BOLMhpdk.js → NumberField-DRYYJHec.js} +3 -3
  85. package/dist/{NumberField-BOLMhpdk.js.map → NumberField-DRYYJHec.js.map} +1 -1
  86. package/dist/NumberField.js +1 -1
  87. package/dist/{Page-D4RYSd8t.js → Page-BmpojvuI.js} +8 -8
  88. package/dist/{Page-D4RYSd8t.js.map → Page-BmpojvuI.js.map} +1 -1
  89. package/dist/Page.js +1 -1
  90. package/dist/{Pagination-Hjalx9ZX.js → Pagination-Bc4fhdNm.js} +3 -3
  91. package/dist/{Pagination-Hjalx9ZX.js.map → Pagination-Bc4fhdNm.js.map} +1 -1
  92. package/dist/Pagination.js +1 -1
  93. package/dist/{Popover-BQ-R2hs0.js → Popover-BgVOsP4J.js} +2 -2
  94. package/dist/{Popover-BQ-R2hs0.js.map → Popover-BgVOsP4J.js.map} +1 -1
  95. package/dist/Popover.js +1 -1
  96. package/dist/PortalProvider-Cj_y3gbC.js.map +1 -1
  97. package/dist/{ProgressBar-BUmYFa81.js → ProgressBar-Chb0uKfL.js} +2 -2
  98. package/dist/{ProgressBar-BUmYFa81.js.map → ProgressBar-Chb0uKfL.js.map} +1 -1
  99. package/dist/ProgressBar.js +1 -1
  100. package/dist/{Radio-BgbBIhPS.js → Radio-DcNlFfSu.js} +3 -3
  101. package/dist/{Radio-BgbBIhPS.js.map → Radio-DcNlFfSu.js.map} +1 -1
  102. package/dist/{Radio-C2pWQ84U.js → Radio-gpMEsFss.js} +2 -2
  103. package/dist/{Radio-C2pWQ84U.js.map → Radio-gpMEsFss.js.map} +1 -1
  104. package/dist/Radio.js +1 -1
  105. package/dist/{RichTextEditor-Chzl-zeW.js → RichTextEditor-DeO4p-S-.js} +8 -8
  106. package/dist/{RichTextEditor-Chzl-zeW.js.map → RichTextEditor-DeO4p-S-.js.map} +1 -1
  107. package/dist/RichTextEditor.js +1 -1
  108. package/dist/{SavedFiltersButton-D0J5KTsI.js → SavedFiltersButton-Cvf1mJk8.js} +10 -10
  109. package/dist/{SavedFiltersButton-D0J5KTsI.js.map → SavedFiltersButton-Cvf1mJk8.js.map} +1 -1
  110. package/dist/SavedFiltersButton.js +1 -1
  111. package/dist/{SelectCard-BGTB3ay0.js → SelectCard-bp5hRyHK.js} +3 -3
  112. package/dist/{SelectCard-BGTB3ay0.js.map → SelectCard-bp5hRyHK.js.map} +1 -1
  113. package/dist/SelectCard.js +1 -1
  114. package/dist/SelectField.js +1 -1
  115. package/dist/{SelectFieldLabel-CcX2GAym.js → SelectFieldLabel-DZqxaZsp.js} +2 -2
  116. package/dist/SelectFieldLabel-DZqxaZsp.js.map +1 -0
  117. package/dist/{SelectFieldSync-BjJN7FC3.js → SelectFieldSync-Wkx6DGpg.js} +7 -7
  118. package/dist/{SelectFieldSync-BjJN7FC3.js.map → SelectFieldSync-Wkx6DGpg.js.map} +1 -1
  119. package/dist/SelectMenu.js +1 -1
  120. package/dist/{SelectMenuSync-iZsNTote.js → SelectMenuSync-O55TODxn.js} +6 -6
  121. package/dist/{SelectMenuSync-iZsNTote.js.map → SelectMenuSync-O55TODxn.js.map} +1 -1
  122. package/dist/{SelectOptions-BeehD5VV.js → SelectOptions-0A8BYx1q.js} +2 -2
  123. package/dist/SelectOptions-0A8BYx1q.js.map +1 -0
  124. package/dist/{SelectTrigger-BQAVMm3E.js → SelectTrigger-BfJ7DWYq.js} +2 -2
  125. package/dist/{SelectTrigger-BQAVMm3E.js.map → SelectTrigger-BfJ7DWYq.js.map} +1 -1
  126. package/dist/SelectTrigger.js +1 -1
  127. package/dist/{SelectTriggerBase-BV-QNhII.js → SelectTriggerBase-DvsI-kSG.js} +3 -3
  128. package/dist/{SelectTriggerBase-BV-QNhII.js.map → SelectTriggerBase-DvsI-kSG.js.map} +1 -1
  129. package/dist/StatusIcon-BqorkNJf.js.map +1 -1
  130. package/dist/{Switch-DWaFomvP.js → Switch-CrDmBj4D.js} +2 -2
  131. package/dist/{Switch-DWaFomvP.js.map → Switch-CrDmBj4D.js.map} +1 -1
  132. package/dist/Switch.js +1 -1
  133. package/dist/Table.js +1 -1
  134. package/dist/{Text-D2TIPmZ2.js → Text-CZccJAnm.js} +2 -2
  135. package/dist/{Text-D2TIPmZ2.js.map → Text-CZccJAnm.js.map} +1 -1
  136. package/dist/Text.js +1 -1
  137. package/dist/{TextField-wIc7ic0E.js → TextField-D0f9LwgQ.js} +3 -3
  138. package/dist/{TextField-wIc7ic0E.js.map → TextField-D0f9LwgQ.js.map} +1 -1
  139. package/dist/{TextField-DJaBZ4Je.js → TextField-DX5qyWPo.js} +2 -2
  140. package/dist/{TextField-DJaBZ4Je.js.map → TextField-DX5qyWPo.js.map} +1 -1
  141. package/dist/TextField.js +1 -1
  142. package/dist/{Textarea-D4c6VjNs.js → Textarea-CdTcekFd.js} +3 -3
  143. package/dist/{Textarea-D4c6VjNs.js.map → Textarea-CdTcekFd.js.map} +1 -1
  144. package/dist/Textarea.js +1 -1
  145. package/dist/ThemeProvider-DW-Mflv6.js.map +1 -1
  146. package/dist/ThemeProviderContext-l52GohYT.js.map +1 -1
  147. package/dist/{TimeField-DpnX_t31.js → TimeField-BxNglWQt.js} +4 -4
  148. package/dist/TimeField-BxNglWQt.js.map +1 -0
  149. package/dist/TimeField.js +1 -1
  150. package/dist/Toast.js +2 -2
  151. package/dist/{Toaster-Cl9BSxHs.js → Toaster-C-Z_FMbW.js} +3 -3
  152. package/dist/{Toaster-Cl9BSxHs.js.map → Toaster-C-Z_FMbW.js.map} +1 -1
  153. package/dist/{Toaster-11pmgwx5.js → Toaster-nyQgF9Ki.js} +2 -2
  154. package/dist/{Toaster-11pmgwx5.js.map → Toaster-nyQgF9Ki.js.map} +1 -1
  155. package/dist/{Toolbar-C9_Z1wAt.js → Toolbar-BUbMtBVz.js} +4 -4
  156. package/dist/{Toolbar-C9_Z1wAt.js.map → Toolbar-BUbMtBVz.js.map} +1 -1
  157. package/dist/{Toolbar-Dq9KOJoH.js → Toolbar-BxAFPvbn.js} +5 -5
  158. package/dist/{Toolbar-Dq9KOJoH.js.map → Toolbar-BxAFPvbn.js.map} +1 -1
  159. package/dist/Toolbar.js +2 -2
  160. package/dist/{ToolbarButtonToggle-BGnYIt6-.js → ToolbarButtonToggle-NSJ2XfXT.js} +2 -2
  161. package/dist/{ToolbarButtonToggle-BGnYIt6-.js.map → ToolbarButtonToggle-NSJ2XfXT.js.map} +1 -1
  162. package/dist/TrackingProvider-Co4lyoI9.js.map +1 -1
  163. package/dist/TrackingProviderContext-CrVA7KHv.js.map +1 -1
  164. package/dist/TreeSelectField.js +1 -1
  165. package/dist/{TreeSelectFieldSync-CoWxg7tA.js → TreeSelectFieldSync-DpvwlM7B.js} +6 -6
  166. package/dist/{TreeSelectFieldSync-CoWxg7tA.js.map → TreeSelectFieldSync-DpvwlM7B.js.map} +1 -1
  167. package/dist/TreeSelectMenu.js +1 -1
  168. package/dist/{TreeSelectMenuSync-CmJa0lyW.js → TreeSelectMenuSync-BDitYX_k.js} +5 -5
  169. package/dist/{TreeSelectMenuSync-CmJa0lyW.js.map → TreeSelectMenuSync-BDitYX_k.js.map} +1 -1
  170. package/dist/{TypeaheadTextField-2kW-oCMo.js → TypeaheadTextField-Cj09sEji.js} +3 -3
  171. package/dist/{TypeaheadTextField-2kW-oCMo.js.map → TypeaheadTextField-Cj09sEji.js.map} +1 -1
  172. package/dist/TypeaheadTextField.js +1 -1
  173. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js → YearlessDateInputWithPicker-CoomgSEK.js} +3 -3
  174. package/dist/{YearlessDateInputWithPicker-C0FwNBKR.js.map → YearlessDateInputWithPicker-CoomgSEK.js.map} +1 -1
  175. package/dist/anvParts-DFVq7-Cm.js +25 -0
  176. package/dist/anvParts-DFVq7-Cm.js.map +1 -0
  177. package/dist/arrayIdsEqual-DnevhwqN.js.map +1 -1
  178. package/dist/assets/icons/st/gnav_automations_active.svg +1 -0
  179. package/dist/assets/icons/st/gnav_automations_inactive.svg +1 -0
  180. package/dist/assets/icons/st/gnav_command_center_active.svg +1 -0
  181. package/dist/assets/icons/st/gnav_command_center_inactive.svg +1 -0
  182. package/dist/assets/icons/st.ts +4 -0
  183. package/dist/beta.js +17 -17
  184. package/dist/{bulkActionTypes-Ct2cwT7b.js → bulkActionTypes-DAo3_ECS.js} +2 -2
  185. package/dist/bulkActionTypes-DAo3_ECS.js.map +1 -0
  186. package/dist/childrenToString-Bz9MqbHb.js.map +1 -1
  187. package/dist/confirmationTypes-DeRtO_Cw.js.map +1 -1
  188. package/dist/{downshift.esm-xtSnQp44.js → downshift.esm-U4VMqrF-.js} +3 -1
  189. package/dist/downshift.esm-U4VMqrF-.js.map +1 -0
  190. package/dist/{filter-state-lWKlYjeQ.js → filter-state-CZcczj37.js} +21 -21
  191. package/dist/{filter-state-lWKlYjeQ.js.map → filter-state-CZcczj37.js.map} +1 -1
  192. package/dist/floating-ui.react-dom-BIKT960u.js.map +1 -1
  193. package/dist/getActiveElement-BcSyVE7S.js.map +1 -1
  194. package/dist/getKeyboardFocusableElements-B_U9rt6y.js.map +1 -1
  195. package/dist/{index-BHztJ8H6.js → index-BFxzUzoz.js} +2 -2
  196. package/dist/{index-BHztJ8H6.js.map → index-BFxzUzoz.js.map} +1 -1
  197. package/dist/index.js +42 -43
  198. package/dist/index.js.map +1 -1
  199. package/dist/portalScopeClassNames-DA28LrXe.js.map +1 -1
  200. package/dist/src/hooks/useAccessibleColor/useAccessibleColor.d.ts +3 -28
  201. package/dist/src/hooks/useBreakpoint/useBreakpoint.d.ts +15 -60
  202. package/dist/src/hooks/useMergeRefs/useMergeRefs.d.ts +3 -20
  203. package/dist/src/hooks/usePrefersColorScheme/usePrefersColorScheme.d.ts +2 -11
  204. package/dist/src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.d.ts +2 -10
  205. package/dist/src/hooks/useSize/index.d.ts +2 -13
  206. package/dist/src/hooks/useSwipe/useSwipe.d.ts +3 -20
  207. package/dist/src/hooks/useTrackingId/index.d.ts +6 -17
  208. package/dist/src/internal/components/AddNewItemButton.d.ts +4 -30
  209. package/dist/src/internal/components/Helper/Helper.d.ts +12 -8
  210. package/dist/src/internal/components/InView.d.ts +4 -24
  211. package/dist/src/internal/components/InlineMarkdown/InlineMarkdown.d.ts +2 -19
  212. package/dist/src/internal/components/Label/Label.d.ts +12 -51
  213. package/dist/src/internal/components/ManualTestLayout/ManualTestLayout.d.ts +3 -2
  214. package/dist/src/internal/components/MenuFooter/MenuFooter.d.ts +11 -17
  215. package/dist/src/internal/components/MultiSelectOptions.d.ts +15 -0
  216. package/dist/src/internal/components/OptionCheckbox.d.ts +2 -0
  217. package/dist/src/internal/components/OptionContentArea.d.ts +4 -0
  218. package/dist/src/internal/components/OptionRow.d.ts +4 -0
  219. package/dist/src/internal/components/OptionsDialog/OptionsDialog.d.ts +13 -1
  220. package/dist/src/internal/components/OptionsPanel.d.ts +16 -0
  221. package/dist/src/internal/components/OptionsPopover/OptionsPopover.d.ts +9 -14
  222. package/dist/src/internal/components/Popover/Popover.d.ts +45 -180
  223. package/dist/src/internal/components/Popover/PopoverButton.d.ts +0 -20
  224. package/dist/src/internal/components/Popover/PopoverClose.d.ts +0 -20
  225. package/dist/src/internal/components/Popover/PopoverContent.d.ts +4 -25
  226. package/dist/src/internal/components/Popover/PopoverTrigger.d.ts +1 -23
  227. package/dist/src/internal/components/Popover/internal/PopoverContext.d.ts +0 -21
  228. package/dist/src/internal/components/Popover/internal/usePopoverContext.d.ts +1 -3
  229. package/dist/src/internal/components/SelectOption.d.ts +8 -0
  230. package/dist/src/internal/components/SelectOptions.d.ts +15 -0
  231. package/dist/src/internal/components/Shadow/Shadow.d.ts +1 -0
  232. package/dist/src/internal/components/StatusIcon/StatusIcon.d.ts +4 -33
  233. package/dist/src/internal/components/Surface/Surface.d.ts +40 -73
  234. package/dist/src/internal/components/Surface/surfaceGeometry.d.ts +12 -0
  235. package/dist/src/internal/components/VirtualizedOptionsPanel.d.ts +1 -0
  236. package/dist/src/internal/components/YearSelector/YearSelector.d.ts +14 -48
  237. package/dist/src/internal/components/YearSelector/internal/YearItem.d.ts +1 -0
  238. package/dist/src/internal/components/YearSelector/internal/useYearSelectorKeys.d.ts +4 -0
  239. package/dist/src/internal/constants/anvParts.d.ts +3 -55
  240. package/dist/src/internal/flubber/a2c.d.ts +0 -4
  241. package/dist/src/internal/flubber/arc.d.ts +0 -4
  242. package/dist/src/internal/flubber/bezier.d.ts +0 -4
  243. package/dist/src/internal/flubber/errors.d.ts +0 -4
  244. package/dist/src/internal/flubber/index.d.ts +0 -4
  245. package/dist/src/internal/flubber/interpolate.d.ts +3 -0
  246. package/dist/src/internal/flubber/linear.d.ts +0 -4
  247. package/dist/src/internal/flubber/parse.d.ts +0 -4
  248. package/dist/src/internal/flubber/path-properties.d.ts +0 -4
  249. package/dist/src/internal/functions/areOptionsValueEqual.d.ts +2 -5
  250. package/dist/src/internal/functions/buildSelectItems.d.ts +2 -4
  251. package/dist/src/internal/functions/childrenToString.d.ts +3 -21
  252. package/dist/src/internal/functions/getActiveElement.d.ts +4 -0
  253. package/dist/src/internal/functions/getInitial.d.ts +3 -13
  254. package/dist/src/internal/functions/getKeyboardFocusableElements.d.ts +6 -30
  255. package/dist/src/internal/functions/inlineMarkdown.d.ts +3 -16
  256. package/dist/src/internal/functions/isThenable.d.ts +1 -1
  257. package/dist/src/internal/functions/kebabize.d.ts +3 -13
  258. package/dist/src/internal/functions/mapOrder.d.ts +4 -0
  259. package/dist/src/internal/functions/popoverTargetDomProps.d.ts +1 -1
  260. package/dist/src/internal/functions/portalScopeClassNames.d.ts +6 -13
  261. package/dist/src/internal/functions/safePopover.d.ts +2 -0
  262. package/dist/src/internal/functions/sizeToToken.d.ts +1 -0
  263. package/dist/src/internal/functions/stripInlineMarkdown.d.ts +3 -5
  264. package/dist/src/internal/functions/syncFilterUtils.d.ts +4 -2
  265. package/dist/src/internal/functions/warnOnce.d.ts +1 -2
  266. package/dist/src/internal/hooks/useBulkActionRunner.d.ts +4 -27
  267. package/dist/src/internal/hooks/useCommitSelectionIfChanged.d.ts +7 -14
  268. package/dist/src/internal/hooks/useConfirmationDraft.d.ts +4 -4
  269. package/dist/src/internal/hooks/useContainerQuery/useContainerQuery.d.ts +2 -33
  270. package/dist/src/internal/hooks/useDebouncedCallback/useDebouncedCallback.d.ts +3 -25
  271. package/dist/src/internal/hooks/useDialogScrollLock/useDialogScrollLock.d.ts +6 -31
  272. package/dist/src/internal/hooks/useDialogTransitionStates/useDialogTransitionStates.d.ts +2 -27
  273. package/dist/src/internal/hooks/useDownshiftEnvironment/useDownshiftEnvironment.d.ts +8 -24
  274. package/dist/src/internal/hooks/useFocusWithin/useFocusWithin.d.ts +3 -14
  275. package/dist/src/internal/hooks/useGroupedOptions.d.ts +4 -22
  276. package/dist/src/internal/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +4 -47
  277. package/dist/src/internal/hooks/useInvalidateOnOptionsChange.d.ts +2 -7
  278. package/dist/src/internal/hooks/useIsScrollable/useIsScrollable.d.ts +1 -5
  279. package/dist/src/internal/hooks/useKeyboardFocusables/useKeyboardFocusables.d.ts +1 -38
  280. package/dist/src/internal/hooks/useLayoutPropsUtil/useLayoutPropsUtil.d.ts +2 -38
  281. package/dist/src/internal/hooks/useNumberField/internal/createNumberMaskOptions.d.ts +2 -5
  282. package/dist/src/internal/hooks/useNumberField/internal/createTrailingZerosHandlers.d.ts +1 -2
  283. package/dist/src/internal/hooks/useNumberField/internal/numberMaskUtils.d.ts +0 -6
  284. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldInputMode.d.ts +2 -17
  285. package/dist/src/internal/hooks/useNumberField/internal/useNumberFieldKeys.d.ts +4 -30
  286. package/dist/src/internal/hooks/useNumberField/useNumberField.d.ts +19 -65
  287. package/dist/src/internal/hooks/useOnClickOutside/useOnClickOutside.d.ts +5 -33
  288. package/dist/src/internal/hooks/useOpenCloseTransitionStates/useOpenCloseTransitionStates.d.ts +4 -28
  289. package/dist/src/internal/hooks/useOptionallyControlledState/useOptionallyControlledState.d.ts +2 -46
  290. package/dist/src/internal/hooks/useOptionsSections.d.ts +4 -9
  291. package/dist/src/internal/hooks/usePinnedOptions.d.ts +4 -24
  292. package/dist/src/internal/hooks/usePlatform/usePlatform.d.ts +3 -50
  293. package/dist/src/internal/hooks/usePopoverCloseDelayWorkaround/usePopoverCloseDelayWorkaround.d.ts +4 -0
  294. package/dist/src/internal/hooks/usePopoverTransitionStates/usePopoverTransitionStates.d.ts +1 -21
  295. package/dist/src/internal/hooks/usePrevious/usePrevious.d.ts +1 -0
  296. package/dist/src/internal/hooks/useProcessedOptions.d.ts +2 -3
  297. package/dist/src/internal/hooks/useSelectFieldLoading/useSelectFieldLoading.d.ts +18 -61
  298. package/dist/src/internal/hooks/useSelectOrchestration.d.ts +4 -3
  299. package/dist/src/internal/hooks/useToggleSelection.d.ts +3 -3
  300. package/dist/src/internal/hooks/useTypeAhead/useTypeAhead.d.ts +3 -11
  301. package/dist/src/internal/testing/anvPartsContract.d.ts +9 -9
  302. package/dist/src/internal/testing/reactHostProps.d.ts +2 -2
  303. package/dist/src/internal/types/addNewItemTypes.d.ts +14 -16
  304. package/dist/src/internal/types/argTypes.d.ts +2 -0
  305. package/dist/src/internal/types/bulkActionTypes.d.ts +12 -41
  306. package/dist/src/internal/types/confirmationTypes.d.ts +6 -7
  307. package/dist/src/internal/types/optionContent.d.ts +6 -9
  308. package/dist/src/internal/types/props.d.ts +6 -1
  309. package/dist/src/internal/types/selectFieldInternalTypes.d.ts +10 -12
  310. package/dist/src/internal/utils/arrayIdsEqual.d.ts +1 -5
  311. package/dist/src/internal/utils/generateChromaticStickersheetProps.d.ts +4 -8
  312. package/dist/src/internal/utils/inlineMarkdownRegex.d.ts +0 -4
  313. package/dist/src/internal/utils/layerManager.d.ts +5 -28
  314. package/dist/src/internal/utils/uniquifySvgDomIds.d.ts +0 -2
  315. package/dist/src/providers/AnvilProvider/AnvilProvider.d.ts +4 -0
  316. package/dist/src/providers/AnvilProvider/AnvilProviderContext.d.ts +16 -6
  317. package/dist/src/providers/LocalizationProvider/LocalizationContext.d.ts +7 -0
  318. package/dist/src/providers/LocalizationProvider/LocalizationProvider.d.ts +6 -0
  319. package/dist/src/providers/LocalizationProvider/LocalizationStoryWrapper.d.ts +1 -0
  320. package/dist/src/providers/LocalizationProvider/useTranslations.d.ts +6 -0
  321. package/dist/src/providers/PortalProvider/PortalProvider.d.ts +1 -0
  322. package/dist/src/providers/PortalProvider/PortalProviderContext.d.ts +3 -0
  323. package/dist/src/providers/ThemeProvider/ThemeProvider.d.ts +16 -0
  324. package/dist/src/providers/ThemeProvider/index.d.ts +1 -1
  325. package/dist/src/providers/ThemeProvider/internal/ThemeProviderContext.d.ts +2 -0
  326. package/dist/src/providers/ThemeProvider/themeToCssVars.d.ts +3 -4
  327. package/dist/src/providers/ThemeProvider/useTheme.d.ts +5 -0
  328. package/dist/src/providers/TrackingProvider/TrackingProvider.d.ts +1 -0
  329. package/dist/src/providers/TrackingProvider/TrackingProviderContext.d.ts +7 -0
  330. package/dist/src/providers/TrackingProvider/useTrackingContext.d.ts +5 -0
  331. package/dist/src/themes/carto.d.ts +3 -43
  332. package/dist/src/types/DataTrackingId.d.ts +1 -0
  333. package/dist/src/types/DistributiveOmit.d.ts +1 -14
  334. package/dist/src/types/MaxLengthCounterProps.d.ts +4 -0
  335. package/dist/src/types/PassThroughProps.d.ts +3 -0
  336. package/dist/src/types/ai-marks.d.ts +14 -45
  337. package/dist/src/types/ianaZones.d.ts +2 -0
  338. package/dist/src/types/locales.d.ts +1 -0
  339. package/dist/src/types/props.d.ts +14 -16
  340. package/dist/{stripInlineMarkdown-82hVO9EP.js → stripInlineMarkdown-CosQSmBr.js} +2 -2
  341. package/dist/stripInlineMarkdown-CosQSmBr.js.map +1 -0
  342. package/dist/{syncFilterUtils-CKXbRZG8.js → syncFilterUtils-_uwyt6FD.js} +20 -19
  343. package/dist/syncFilterUtils-_uwyt6FD.js.map +1 -0
  344. package/dist/themes.js.map +1 -1
  345. package/dist/token/core/component-variables.scss +156 -0
  346. package/dist/token/core/component.d.ts +78 -0
  347. package/dist/token/core/component.js +1018 -0
  348. package/dist/token/core/component.scss +82 -0
  349. package/dist/token.js +1096 -0
  350. package/dist/token.js.map +1 -1
  351. package/dist/{treeSync-ONC4TbTR.js → treeSync-Bp80Xduj.js} +4 -4
  352. package/dist/{treeSync-ONC4TbTR.js.map → treeSync-Bp80Xduj.js.map} +1 -1
  353. package/dist/useAccessibleColor-BYKjkGRg.js.map +1 -1
  354. package/dist/useBreakpoint-BBNRlMGZ.js.map +1 -1
  355. package/dist/useDebouncedCallback-DLkapjcP.js.map +1 -1
  356. package/dist/useDialogScrollLock-BW-aVboo.js.map +1 -1
  357. package/dist/{useDrilldown-CicFEJpD.js → useDrilldown-D5XGfAUT.js} +3 -3
  358. package/dist/{useDrilldown-CicFEJpD.js.map → useDrilldown-D5XGfAUT.js.map} +1 -1
  359. package/dist/useFocusWithin-hi77jsrB.js.map +1 -1
  360. package/dist/{useInfiniteCombobox-DJoVEIk6.js → useInfiniteCombobox-ORhH44Rp.js} +6 -6
  361. package/dist/{useInfiniteCombobox-DJoVEIk6.js.map → useInfiniteCombobox-ORhH44Rp.js.map} +1 -1
  362. package/dist/{useInitialFocus-BIvXK1Rp.js → useInitialFocus-CGybEc6x.js} +2 -6
  363. package/dist/useInitialFocus-CGybEc6x.js.map +1 -0
  364. package/dist/useIntersectionObserver-BEmMDO3P.js.map +1 -1
  365. package/dist/{useInvalidateOnOptionsChange-C6tF7696.js → useInvalidateOnOptionsChange-ieSgbkwT.js} +4 -4
  366. package/dist/useInvalidateOnOptionsChange-ieSgbkwT.js.map +1 -0
  367. package/dist/useLayoutPropsUtil-DjqeAJZ9.js.map +1 -1
  368. package/dist/useMergeRefs-Dfmtq9cI.js.map +1 -1
  369. package/dist/useNumberField-CXFYUZ_n.js.map +1 -1
  370. package/dist/useOnClickOutside-Zw5vzxSq.js.map +1 -1
  371. package/dist/useOptionallyControlledState-DbDuos5L.js.map +1 -1
  372. package/dist/{usePopoverTransitionStates-B1opfxxn.js → usePopoverTransitionStates-CDXCdyKa.js} +2 -1
  373. package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +1 -0
  374. package/dist/usePrefersColorScheme-CwOF0TjZ.js.map +1 -1
  375. package/dist/usePrefersReducedMotion-DR9B_D6w.js.map +1 -1
  376. package/dist/usePrevious-Bvq-5auG.js.map +1 -1
  377. package/dist/useSize.js.map +1 -1
  378. package/dist/useSwipe-Cp-CJxLU.js.map +1 -1
  379. package/dist/useTheme-B4i6a3bM.js.map +1 -1
  380. package/dist/useTrackingContext-C522P4sv.js.map +1 -1
  381. package/dist/useTrackingId.js.map +1 -1
  382. package/dist/warnOnce-Y9PRHcU4.js.map +1 -1
  383. package/package.json +2 -2
  384. package/dist/AnvilProvider-D8msiELo.js.map +0 -1
  385. package/dist/Calendar-kSH8F7gx.js.map +0 -1
  386. package/dist/DataTable-D0YlJ7IA.js.map +0 -1
  387. package/dist/FieldLabel-CYCk2rz-.js.map +0 -1
  388. package/dist/FilterBar-CrIPZKvL.js.map +0 -1
  389. package/dist/ListView-Bkv1ZCSu.js.map +0 -1
  390. package/dist/Listbox-BWy_uBqm.js.map +0 -1
  391. package/dist/MenuFooter--lBF8OjJ.js.map +0 -1
  392. package/dist/MultiSelectFieldSync-gH-TQnq3.js.map +0 -1
  393. package/dist/SelectFieldLabel-CcX2GAym.js.map +0 -1
  394. package/dist/SelectOptions-BeehD5VV.js.map +0 -1
  395. package/dist/TimeField-DpnX_t31.js.map +0 -1
  396. package/dist/anvParts-BGg5dgfl.js +0 -43
  397. package/dist/anvParts-BGg5dgfl.js.map +0 -1
  398. package/dist/bulkActionTypes-Ct2cwT7b.js.map +0 -1
  399. package/dist/downshift.esm-xtSnQp44.js.map +0 -1
  400. package/dist/stripInlineMarkdown-82hVO9EP.js.map +0 -1
  401. package/dist/syncFilterUtils-CKXbRZG8.js.map +0 -1
  402. package/dist/useInitialFocus-BIvXK1Rp.js.map +0 -1
  403. package/dist/useInvalidateOnOptionsChange-C6tF7696.js.map +0 -1
  404. package/dist/usePopoverTransitionStates-B1opfxxn.js.map +0 -1
@@ -1,11 +1,4 @@
1
- /**
2
- * Global layer manager for tracking overlay component stacking order.
3
- * Uses window-level state to support cross-bundle communication (e.g., MFEs).
4
- *
5
- * When multiple Dialog/Drawer components are open, only the topmost layer
6
- * should respond to outside click events. This manager tracks the z-order
7
- * to enable that behavior.
8
- */
1
+ /** Window key shared by separately bundled Anvil2 instances. */
9
2
  declare const WINDOW_PROPERTY_LAYER_STACK: "__ANVIL_LAYER_MANAGER__";
10
3
  declare global {
11
4
  interface Window {
@@ -13,31 +6,15 @@ declare global {
13
6
  }
14
7
  }
15
8
  /**
16
- * Register a new layer in the stack.
17
- * If the layer is already registered, this is a no-op.
18
- *
19
- * @param id - Unique identifier for the layer
9
+ * Adds an unregistered layer to the top of the global stack.
20
10
  */
21
11
  export declare const registerLayer: (id: string) => void;
22
12
  /**
23
- * Unregister a layer from the stack.
24
- * If the layer is not found, this is a no-op.
25
- *
26
- * @param id - Unique identifier for the layer
13
+ * Removes a registered layer without disturbing the remaining order.
27
14
  */
28
15
  export declare const unregisterLayer: (id: string) => void;
29
- /**
30
- * Check if a layer is the topmost layer in the stack.
31
- *
32
- * @param id - Unique identifier for the layer
33
- * @returns True if the layer is on top, false otherwise
34
- */
16
+ /** Checks whether a layer is currently at the top of the global stack. */
35
17
  export declare const isTopLayer: (id: string) => boolean;
36
- /**
37
- * Get all registered layers in order (bottom to top).
38
- * Returns a readonly copy for debugging purposes.
39
- *
40
- * @returns Readonly array of layer IDs
41
- */
18
+ /** Returns a bottom-to-top snapshot of the registered layer IDs. */
42
19
  export declare const getLayers: () => readonly string[];
43
20
  export {};
@@ -3,8 +3,6 @@
3
3
  * `svgRoot` so multiple instances of the same SVG do not collide in the
4
4
  * document. Idempotent when called again with the same `idPrefix`.
5
5
  *
6
- * Fast path: returns immediately when the SVG has no `[id]` attributes.
7
- *
8
6
  * Walks elements and reads attributes directly instead of building attribute
9
7
  * selectors — namespaced attrs like `xlink:href` are not valid in
10
8
  * `querySelectorAll('[xlink:href]')`.
@@ -1,2 +1,6 @@
1
1
  import { AnvilProviderProps } from './AnvilProviderContext';
2
+ /**
3
+ * Root provider for an Anvil2 application subtree. Establishes the scoped
4
+ * styles and shared defaults expected by Anvil2 components.
5
+ */
2
6
  export declare const AnvilProvider: (props: AnvilProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,11 +4,8 @@ import { LayoutUtilProps } from '../../types';
4
4
  import { ITranslations } from '../LocalizationProvider/LocalizationProvider';
5
5
  import { BreakpointReturnProps } from '../../hooks/useBreakpoint';
6
6
  /**
7
- * @deprecated No longer has any effect. Automatically loading these
8
- * stylesheets through a dynamic import broke CSS delivery when
9
- * `AnvilProvider` is shared between a host application and its
10
- * micro-frontends. Import the `@servicetitan/anvil2/assets/css-utils/*.css`
11
- * file(s) you need directly instead. See the CSS Utilities docs.
7
+ * @deprecated No longer has any effect. Import the required
8
+ * `@servicetitan/anvil2/assets/css-utils/*.css` files directly.
12
9
  */
13
10
  export type CssUtilsOptions = boolean | {
14
11
  spacing?: boolean;
@@ -18,34 +15,47 @@ export type CssUtilsOptions = boolean | {
18
15
  };
19
16
  export type AnvilProviderProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
20
17
  children?: ReactNode;
18
+ /** Configures the nested theme provider; omitted values inherit. */
21
19
  themeData?: {
20
+ /** Custom token values. Inherits the nearest theme when omitted. */
22
21
  theme?: ThemeProviderProps["theme"];
22
+ /** Color mode. Inherits the nearest mode when omitted. */
23
23
  mode?: ThemeProviderProps["mode"];
24
24
  };
25
+ /** Establishes locale, direction, and messages for localized descendants. */
25
26
  localizationData?: {
27
+ /** Language tag exposed to localized descendants. Defaults to `"en"`. */
26
28
  locale?: ITranslations["locale"];
29
+ /** Text direction applied to the provider wrapper. Defaults to `"ltr"`. */
27
30
  dir?: ITranslations["dir"];
31
+ /** Messages resolved by localized descendants. Defaults to an empty map. */
28
32
  translations?: ITranslations["translations"];
29
33
  };
30
34
  /**
31
35
  * @deprecated No longer has any effect. Import the
32
36
  * `@servicetitan/anvil2/assets/css-utils/*.css` file(s) you need
33
- * directly instead. See the CSS Utilities docs.
37
+ * directly instead.
34
38
  */
35
39
  cssUtils?: CssUtilsOptions;
36
40
  } & {
41
+ /** Controls the scope and opt-out policy for descendant tracking IDs. */
37
42
  trackingIdData?: {
43
+ /** Prefix included in generated tracking IDs. Defaults to `"ST"`. */
38
44
  scope?: string;
45
+ /** Whether descendants should omit tracking IDs. Defaults to `false`. */
39
46
  optOut?: boolean;
40
47
  };
41
48
  };
42
49
  export type AnvilProviderContextProps = {
50
+ /** Current viewport breakpoint, or `undefined` when unavailable. */
43
51
  breakpoint?: BreakpointReturnProps;
44
52
  };
53
+ /** Breakpoint context populated by {@link AnvilProvider}. */
45
54
  export declare const AnvilProviderContext: import('react').Context<AnvilProviderContextProps>;
46
55
  export declare const TooltipLegacyGroupContext: import('react').Context<{
47
56
  disableDelayGroup: Dispatch<SetStateAction<boolean>>;
48
57
  } | null>;
58
+ /** Reads legacy tooltip delay-group controls from {@link AnvilProvider}. */
49
59
  export declare const useTooltipLegacyGroup: () => {
50
60
  disableDelayGroup: Dispatch<SetStateAction<boolean>>;
51
61
  };
@@ -1,6 +1,13 @@
1
1
  export type TranslationContext = {
2
+ /** Language tag published to descendants. */
2
3
  locale: string;
4
+ /** Resolves a dotted key; returns the key when missing or not a string. */
3
5
  t(value: string): string;
4
6
  };
7
+ /** Locale and `t` published by the nearest {@link LocalizationProvider}. */
5
8
  export declare const LocalizationContext: import('react').Context<TranslationContext>;
9
+ /**
10
+ * Returns locale and `t` from the nearest {@link LocalizationContext}.
11
+ * Outside a provider, `locale` is `"en"` and `t` echoes the key.
12
+ */
6
13
  export declare const useLocalizationContext: () => TranslationContext;
@@ -2,16 +2,22 @@ import { default as React, ReactNode, ComponentPropsWithoutRef } from 'react';
2
2
  import { LayoutUtilProps } from '../../types';
3
3
  type LocalizationProviderProps = ComponentPropsWithoutRef<"div"> & LayoutUtilProps & {
4
4
  children: ReactNode;
5
+ /** Locale, text direction, and message map for this subtree. */
5
6
  translationData: ITranslations;
6
7
  };
8
+ /** Intermediate node while walking a dotted key through {@link Translations}. */
7
9
  export type TranslationResult = string | Translations | undefined;
8
10
  export interface Translations {
9
11
  [key: string]: TranslationResult;
10
12
  }
11
13
  export interface ITranslations {
14
+ /** Text direction applied to the provider wrapper. */
12
15
  dir: "ltr" | "rtl";
16
+ /** Language tag exposed to descendants. Defaults to `"en"` when omitted. */
13
17
  locale?: string;
18
+ /** Message tree walked by dotted keys (`"x.y.z"`). */
14
19
  translations: Translations;
15
20
  }
21
+ /** Applies `dir` on a wrapper and publishes locale plus `t()` to descendants. */
16
22
  export declare const LocalizationProvider: React.FC<LocalizationProviderProps>;
17
23
  export {};
@@ -2,5 +2,6 @@ import { FC, ReactNode } from 'react';
2
2
  interface WrapperProps {
3
3
  children: ReactNode;
4
4
  }
5
+ /** Story helper: locale picker plus {@link LocalizationProvider}. */
5
6
  export declare const Wrapper: FC<WrapperProps>;
6
7
  export {};
@@ -1,4 +1,10 @@
1
1
  import { ITranslations } from './LocalizationProvider';
2
+ /**
3
+ * Builds a `t` that walks dotted keys (`"x.y.z"`) through `translations`.
4
+ * Missing paths and non-string nodes return the key.
5
+ *
6
+ * @returns `{ translations }` where `translations` is that lookup function.
7
+ */
2
8
  export declare const useTranslations: (translations: ITranslations["translations"]) => {
3
9
  translations: (key: string) => string;
4
10
  };
@@ -1,2 +1,3 @@
1
1
  import { PortalProviderProps } from './PortalProviderContext';
2
+ /** Publishes a portal destination to a React subtree. */
2
3
  export declare const PortalProvider: (props: PortalProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  export type PortalProviderProps = {
3
+ /** Element or mutable ref published as the portal destination. */
3
4
  root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null;
4
5
  children?: ReactNode;
5
6
  };
6
7
  export type PortalProviderContextProps = {
8
+ /** Published portal destination, or `undefined` when none is configured. */
7
9
  root?: HTMLElement | React.MutableRefObject<HTMLElement | null> | null;
8
10
  };
11
+ /** Destination published by {@link PortalProvider}; empty outside a provider. */
9
12
  export declare const PortalProviderContext: import('react').Context<PortalProviderContextProps>;
@@ -2,14 +2,30 @@ import { ComponentPropsWithoutRef, FC, ReactNode } from 'react';
2
2
  import { LayoutUtilProps } from '../../types';
3
3
  import { Token } from '@servicetitan/hammer-token';
4
4
  export type CustomThemeType = {
5
+ /** Overrides foundational token values. */
5
6
  primitive?: Partial<Token["primitive"]>;
7
+ /** Overrides semantic token values consumed across components. */
6
8
  semantic?: Partial<Token["semantic"]>;
9
+ /** Overrides tokens scoped to individual components. */
7
10
  component?: Partial<Token["component"]>;
8
11
  };
9
12
  export type ThemeProviderProps = Omit<ComponentPropsWithoutRef<"div">, "prefix"> & LayoutUtilProps & {
13
+ /**
14
+ * Partial Hammer token values emitted as CSS custom properties. Inherits
15
+ * the nearest theme when omitted.
16
+ */
10
17
  theme?: CustomThemeType;
18
+ /**
19
+ * Color mode for this subtree. Inherits the nearest mode; otherwise no
20
+ * mode class is applied.
21
+ */
11
22
  mode?: "light" | "dark";
12
23
  children?: ReactNode;
24
+ /** Prefix for generated CSS custom properties. Defaults to `"a2"`. */
13
25
  prefix?: string;
14
26
  };
27
+ /**
28
+ * Scopes Hammer token overrides and color mode to a wrapper element. Nested
29
+ * providers inherit an omitted theme or mode.
30
+ */
15
31
  export declare const ThemeProvider: FC<ThemeProviderProps>;
@@ -1,7 +1,7 @@
1
1
  export { ThemeProvider, type ThemeProviderProps, type CustomThemeType, } from './ThemeProvider';
2
2
  export type {
3
3
  /**
4
- * @deprecated internal context type
4
+ * @deprecated Internal context contract; may change without notice.
5
5
  */
6
6
  ThemeProviderContextProps, } from './internal/ThemeProviderContext';
7
7
  export { useTheme } from './useTheme';
@@ -1,6 +1,8 @@
1
1
  import { CustomThemeType } from '../ThemeProvider';
2
2
  export type ThemeProviderContextProps = {
3
+ /** Effective custom theme after provider inheritance. */
3
4
  theme?: CustomThemeType;
5
+ /** Effective color mode after provider inheritance. */
4
6
  mode?: "light" | "dark";
5
7
  /**
6
8
  * CSS custom properties derived from `theme`. Top-layer surfaces that
@@ -5,10 +5,9 @@ type ThemeTokenBags = {
5
5
  component?: Record<string, TokenObj>;
6
6
  };
7
7
  /**
8
- * Convert a custom theme object into CSS custom properties (`--a2-*`).
9
- *
10
- * Used by `ThemeProvider` on its wrapper and by top-layer surfaces that
11
- * re-apply `.theme-core` (which otherwise resets tokens to core defaults).
8
+ * Converts custom theme tokens into CSS custom properties, including
9
+ * `light-dark()` pairs when a dark appearance is available.
10
+ * Returns `undefined` when no theme is provided.
12
11
  */
13
12
  export declare function themeToCssVars(theme: ThemeTokenBags | undefined, prefix?: string): {
14
13
  [key: string]: string;
@@ -1 +1,6 @@
1
+ /**
2
+ * Returns the effective custom theme, color mode, and CSS variables from the
3
+ * nearest {@link ThemeProvider}. Each field is `undefined` until supplied by a
4
+ * provider.
5
+ */
1
6
  export declare const useTheme: () => import('.').ThemeProviderContextProps;
@@ -1,3 +1,4 @@
1
1
  import { FC } from 'react';
2
2
  import { TrackingProviderProps } from './TrackingProviderContext';
3
+ /** Publishes `scope`, `optOut`, and `getTrackingId` to descendants. */
3
4
  export declare const TrackingProvider: FC<TrackingProviderProps>;
@@ -1,13 +1,20 @@
1
1
  import { ReactNode } from 'react';
2
+ /** Builds `_scope_component_` plus a truncated cipher of `data`. */
2
3
  export declare const getTrackingIdHelper: (data: string, component: string, scope: string) => Promise<string>;
3
4
  export interface TrackingProviderContextProps {
5
+ /** Prefix included in generated tracking IDs. */
4
6
  scope: string;
7
+ /** Deterministic id; same `data` + `component` + `scope` always match. */
5
8
  getTrackingId: (data: string, component: string) => Promise<string>;
9
+ /** When true, {@link useTrackingId} skips the lookup. */
6
10
  optOut: boolean;
7
11
  }
8
12
  export interface TrackingProviderProps {
9
13
  children: ReactNode;
14
+ /** Prefix included in generated tracking IDs. */
10
15
  scope: string;
16
+ /** Skip descendant tracking-id lookups. Defaults to `false`. */
11
17
  optOut?: boolean;
12
18
  }
19
+ /** Tracking-id config published by the nearest {@link TrackingProvider}. */
13
20
  export declare const TrackingContext: import('react').Context<TrackingProviderContextProps>;
@@ -1 +1,6 @@
1
+ /**
2
+ * Returns `scope`, `optOut`, and `getTrackingId` from the nearest
3
+ * {@link TrackingProvider}. Outside a provider, `scope` is `"ST"` and
4
+ * `optOut` is `false`.
5
+ */
1
6
  export declare const useTrackingContext: () => import('./TrackingProviderContext').TrackingProviderContextProps;
@@ -1,47 +1,7 @@
1
1
  /**
2
- * Anvil2 theme overrides aligned with AI Kit (Carto) font families and radius
3
- * scale.
4
- *
5
- * Radius (Carto → Anvil2):
6
- * - `radius.sharp` → `BorderRadiusNone` (`0`)
7
- * - `radius.100` → `BorderRadiusSmall` (`0.25rem`, checkboxes)
8
- * - `radius.trim` → `BorderRadiusMedium` (`0.75rem`, buttons / inputs)
9
- * - `radius.moderate` → `BorderRadiusLarge` (`1rem`, cards / menus)
10
- * - `radius.generous` → `BorderRadiusXlarge` (`1.5rem`, panels)
11
- * - `radius.full` → `BorderRadiusCircular` (`50%`)
12
- *
13
- * Typography (Carto → Anvil2):
14
- * - `typography.fontFamily.functional` → base / paragraph / label family (Inter)
15
- * - `typography.fontFamily.expressive` → display / heading family (Sofia Pro)
16
- * - `typography.weight.neutral` → paragraph weight (`400`)
17
- * - `typography.weight.structured` → `FontWeightSemibold` (`500`; buttons, chips, labels)
18
- * - `typography.weight.emphatic` → heading weight (`700`)
19
- * - Bold UI emphasis → `FontWeightBold` (`600`; calendar selection, stepper, avatar, etc.)
20
- *
21
- * Components keep `$font-weight-semibold` / `$font-weight-bold` (and semantic
22
- * typography tokens for real text roles). Carto retunes those primitives so
23
- * existing component CSS picks up the new weights without per-component remaps.
24
- *
25
- * Surfaces (Carto → Anvil2):
26
- * - Popover / Menu content and arrow fills → `BackgroundColorDefault`
27
- * (`var(--a2-background-color-default)`, which resolves via `light-dark()`).
28
- * Applies anywhere that consumes `$popover-content-background-color` /
29
- * `$popover-arrow-fill-color` (public Popover, internal Popover,
30
- * OptionsPopover) or `$menu-content-background-color` /
31
- * `$menu-arrow-background-color` (Menu). Tooltip uses a separate token and
32
- * is unaffected.
33
- *
34
- * Consumers still need to load Inter (and Sofia Pro when using headings). The
35
- * kit loads Inter from Google Fonts; AnvilProvider already pulls in Sofia Pro
36
- * via `@servicetitan/anvil-fonts`.
37
- *
38
- * @example
39
- * ```tsx
40
- * import { ThemeProvider } from "@servicetitan/anvil2";
41
- * import { carto } from "@servicetitan/anvil2/themes";
42
- *
43
- * <ThemeProvider theme={carto}>{children}</ThemeProvider>
44
- * ```
2
+ * Carto-aligned {@link CustomThemeType}: Inter/Sofia Pro, retuned radius and
3
+ * weights, and default-background Popover/Menu surfaces. Tooltip tokens are
4
+ * unchanged. Load Inter yourself; {@link AnvilProvider} already loads Sofia Pro.
45
5
  */
46
6
  export declare const carto: {
47
7
  readonly primitive: {
@@ -1,3 +1,4 @@
1
+ /** Mix-in for the `data-tracking-id` attribute. */
1
2
  export type DataTrackingId = {
2
3
  ["data-tracking-id"]?: string;
3
4
  };
@@ -1,15 +1,2 @@
1
- /**
2
- * Use to Omit props from types that include unions.
3
- *
4
- * Example:
5
- * type A = {
6
- * prop?: string;
7
- * otherProp?: false;
8
- * } | {
9
- * prop: string;
10
- * otherProp: true;
11
- * };
12
- * type B = A & { thirdProp: boolean; };
13
- * type C = DistributiveOmit<C, "thirdProp">;
14
- */
1
+ /** `Omit` that distributes over unions so unused-branch keys are not required. */
15
2
  export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
@@ -1,4 +1,8 @@
1
1
  import { HelperProps } from '../internal/components/Helper';
2
+ /**
3
+ * When `showCounter` is `true`, `maxLength` is required for the visible
4
+ * `inputLength/maxLength` counter.
5
+ */
2
6
  export type MaxLengthCounterProps = {
3
7
  showCounter: true;
4
8
  maxLength: HelperProps["maxLength"];
@@ -1,4 +1,7 @@
1
1
  import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
2
+ /** String-valued `data-*` attributes. */
2
3
  export type DataAttributes = Record<`data-${string}`, string>;
4
+ /** Native element props plus `data-*` attributes. */
3
5
  export type PassThroughProps<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithoutRef<T> & DataAttributes;
6
+ /** {@link PassThroughProps} including `ref`. */
4
7
  export type PassThroughPropsWithRef<T extends keyof JSX.IntrinsicElements> = ComponentPropsWithRef<T> & DataAttributes;
@@ -1,72 +1,41 @@
1
1
  import { PopoverContentProps, PopoverDialogRoleProps } from '../internal/components/Popover';
2
2
  import { TooltipProps } from '../components';
3
- /**
4
- * Minimal props for showing an AI mark as a boolean flag (for example on `Chip`).
5
- * For the standalone icon component, use `AiMarkProps` on `AiMark` instead.
6
- */
3
+ /** Sparkle-only mark; no tooltip or popover. */
7
4
  export type AiMarkBooleanProps = {
8
- /**
9
- * When `true`, displays the AI indicator icon with no additional context.
10
- */
5
+ /** When `true`, shows the indicator with no extra context. */
11
6
  aiMark?: boolean;
12
7
  };
13
8
  /**
14
- * Configuration for an AI mark that opens a tooltip or popover for additional context.
15
- * Discriminated union: set `type` to `"tooltip"` or `"popover"` to select the corresponding configuration shape.
9
+ * `type` selects tooltip vs popover.
16
10
  */
17
11
  export type AiMarkWithTooltipOrPopoverConfig = {
18
- /** Discriminant for the popover variant. */
19
12
  type: "popover";
20
- /**
21
- * The content displayed inside the popover. When omitted, defaults to the standard AI disclaimer message and a Learn more link to the privacy policy.
22
- */
13
+ /** Popover body. Defaults to the AI disclaimer plus a privacy-policy link. */
23
14
  content?: React.ReactNode;
24
- /**
25
- * Additional props passed to the underlying `Popover` component.
26
- */
15
+ /** Forwarded to the popover; the mark owns `children`. */
27
16
  props?: Omit<PopoverDialogRoleProps, "children">;
28
- /**
29
- * Accessible label for the trigger button that opens the popover.
30
- */
17
+ /** Accessible name for the trigger. */
31
18
  triggerLabel: string;
32
- /**
33
- * Additional props passed to the popover content container.
34
- */
19
+ /** Forwarded to popover content. */
35
20
  contentProps?: Pick<PopoverContentProps, "hideWhileClosed" | "scrollerRef">;
36
21
  } | {
37
- /** Discriminant for the tooltip variant. */
38
22
  type: "tooltip";
39
- /**
40
- * The text content displayed inside the tooltip. When omitted, defaults to "AI can make mistakes."
41
- */
23
+ /** Tooltip text. Defaults to `"AI can make mistakes."`. */
42
24
  content?: string;
43
- /**
44
- * Additional props passed to the underlying `Tooltip` component.
45
- */
25
+ /** Forwarded to the tooltip; the mark owns `children`. */
46
26
  props?: Omit<TooltipProps, "children">;
47
- /**
48
- * Accessible label for the trigger button that opens the tooltip.
49
- */
27
+ /** Accessible name for the trigger. */
50
28
  triggerLabel: string;
51
29
  };
52
- /**
53
- * Props that include an optional AI mark on a label or field.
54
- */
55
30
  export type AiMarkWithTooltipOrPopoverProps = {
56
31
  /**
57
- * Accepts either a `boolean` or an `AiMarkWithTooltipOrPopoverConfig` object.
58
- * - `true` — Displays the AI indicator icon with no additional context.
59
- * - `AiMarkWithTooltipOrPopoverConfig` — Displays the AI indicator icon with a tooltip or popover for additional context.
32
+ * `true` is sparkle-only; pass {@link AiMarkWithTooltipOrPopoverConfig} for
33
+ * tooltip or popover context.
60
34
  */
61
35
  aiMark?: boolean | AiMarkWithTooltipOrPopoverConfig;
62
36
  };
63
37
  /**
64
- * Controls which axes have their padding collapsed so the component's layout
65
- * footprint matches a plain inline icon on those axes. For interactive variants,
66
- * the ghost button's hit area is unchanged; for non-interactive variants, padding
67
- * is added to the non-collapsed axes.
68
- * - `"inline"` — collapse the inline axis (left/right)
69
- * - `"block"` — collapse the block axis (top/bottom)
70
- * - `"all"` — collapse both axes
38
+ * Axes whose padding collapses so the mark lays out like a plain icon.
39
+ * Interactive variants keep the ghost-button hit area; others pad remaining axes.
71
40
  */
72
41
  export type AiMarkCollapsePadding = "inline" | "block" | "all";
@@ -1,2 +1,4 @@
1
+ /** IANA timezone names accepted by date/calendar timezone props. */
1
2
  export declare const IANA_TIMEZONES: readonly ["Pacific/Kiritimati", "Pacific/Apia", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Tongatapu", "Pacific/Chatham", "Antarctica/McMurdo", "Asia/Anadyr", "Asia/Kamchatka", "Pacific/Auckland", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Nauru", "Pacific/Tarawa", "Pacific/Wake", "Pacific/Wallis", "Antarctica/Casey", "Antarctica/Macquarie", "Asia/Magadan", "Asia/Sakhalin", "Asia/Srednekolymsk", "Pacific/Bougainville", "Pacific/Efate", "Pacific/Guadalcanal", "Pacific/Kosrae", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pohnpei", "Australia/Lord_Howe", "Antarctica/DumontDUrville", "Asia/Ust-Nera", "Asia/Vladivostok", "Australia/Brisbane", "Australia/Currie", "Australia/Hobart", "Australia/Lindeman", "Australia/Melbourne", "Australia/Sydney", "Pacific/Chuuk", "Pacific/Guam", "Pacific/Port_Moresby", "Pacific/Saipan", "Australia/Adelaide", "Australia/Broken_Hill", "Australia/Darwin", "Asia/Chita", "Asia/Dili", "Asia/Jayapura", "Asia/Khandyga", "Asia/Seoul", "Asia/Tokyo", "Asia/Yakutsk", "Pacific/Palau", "Australia/Eucla", "Asia/Pyongyang", "Asia/Brunei", "Asia/Choibalsan", "Asia/Hong_Kong", "Asia/Irkutsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Macau", "Asia/Makassar", "Asia/Manila", "Asia/Shanghai", "Asia/Singapore", "Asia/Taipei", "Asia/Ulaanbaatar", "Australia/Perth", "Antarctica/Davis", "Asia/Bangkok", "Asia/Barnaul", "Asia/Ho_Chi_Minh", "Asia/Hovd", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Tomsk", "Asia/Vientiane", "Indian/Christmas", "Asia/Yangon", "Indian/Cocos", "Antarctica/Vostok", "Asia/Almaty", "Asia/Bishkek", "Asia/Dhaka", "Asia/Omsk", "Asia/Qyzylorda", "Asia/Thimphu", "Asia/Urumqi", "Indian/Chagos", "Asia/Kathmandu", "Asia/Colombo", "Asia/Kolkata", "Antarctica/Mawson", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Dushanbe", "Asia/Karachi", "Asia/Oral", "Asia/Samarkand", "Asia/Tashkent", "Asia/Yekaterinburg", "Indian/Kerguelen", "Indian/Maldives", "Asia/Kabul", "Asia/Tehran", "Asia/Baku", "Asia/Dubai", "Asia/Muscat", "Asia/Tbilisi", "Asia/Yerevan", "Europe/Astrakhan", "Europe/Samara", "Europe/Saratov", "Europe/Ulyanovsk", "Indian/Mahe", "Indian/Mauritius", "Indian/Reunion", "Africa/Addis_Ababa", "Africa/Asmara", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Mogadishu", "Africa/Nairobi", "Antarctica/Syowa", "Asia/Aden", "Asia/Amman", "Asia/Baghdad", "Asia/Bahrain", "Asia/Beirut", "Asia/Damascus", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Jerusalem", "Asia/Kuwait", "Asia/Nicosia", "Asia/Qatar", "Asia/Riyadh", "Europe/Athens", "Europe/Bucharest", "Europe/Chisinau", "Europe/Helsinki", "Europe/Istanbul", "Europe/Kiev", "Europe/Kirov", "Europe/Mariehamn", "Europe/Minsk", "Europe/Moscow", "Europe/Riga", "Europe/Simferopol", "Europe/Sofia", "Europe/Tallinn", "Europe/Uzhgorod", "Europe/Vilnius", "Europe/Volgograd", "Europe/Zaporozhye", "Indian/Antananarivo", "Indian/Comoro", "Indian/Mayotte", "Africa/Blantyre", "Africa/Bujumbura", "Africa/Cairo", "Africa/Ceuta", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Kigali", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Tripoli", "Antarctica/Troll", "Arctic/Longyearbyen", "Europe/Amsterdam", "Europe/Andorra", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Budapest", "Europe/Busingen", "Europe/Copenhagen", "Europe/Gibraltar", "Europe/Kaliningrad", "Europe/Ljubljana", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Monaco", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Rome", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Skopje", "Europe/Stockholm", "Europe/Tirane", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "Africa/Algiers", "Africa/Bangui", "Africa/Brazzaville", "Africa/Casablanca", "Africa/Douala", "Africa/El_Aaiun", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Luanda", "Africa/Malabo", "Africa/Ndjamena", "Africa/Niamey", "Africa/Porto-Novo", "Africa/Tunis", "Africa/Windhoek", "Atlantic/Canary", "Atlantic/Faroe", "Atlantic/Madeira", "Europe/Dublin", "Europe/Guernsey", "Europe/Isle_of_Man", "Europe/Jersey", "Europe/Lisbon", "Europe/London", "Africa/Abidjan", "Africa/Accra", "Africa/Bamako", "Africa/Banjul", "Africa/Bissau", "Africa/Conakry", "Africa/Dakar", "Africa/Freetown", "Africa/Lome", "Africa/Monrovia", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Sao_Tome", "America/Danmarkshavn", "America/Scoresbysund", "Atlantic/Azores", "Atlantic/Reykjavik", "Atlantic/St_Helena", "UTC", "Atlantic/Cape_Verde", "America/Godthab", "America/Miquelon", "America/Noronha", "Atlantic/South_Georgia", "America/St_Johns", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Bahia", "America/Belem", "America/Cayenne", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Halifax", "America/Maceio", "America/Moncton", "America/Montevideo", "America/Paramaribo", "America/Punta_Arenas", "America/Recife", "America/Santarem", "America/Sao_Paulo", "America/Thule", "Antarctica/Palmer", "Antarctica/Rothera", "Atlantic/Bermuda", "Atlantic/Stanley", "America/Anguilla", "America/Antigua", "America/Aruba", "America/Asuncion", "America/Barbados", "America/Blanc-Sablon", "America/Boa_Vista", "America/Campo_Grande", "America/Caracas", "America/Cuiaba", "America/Curacao", "America/Detroit", "America/Dominica", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guyana", "America/Havana", "America/Indiana/Indianapolis", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Iqaluit", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lower_Princes", "America/Manaus", "America/Marigot", "America/Martinique", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Pangnirtung", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Santiago", "America/Santo_Domingo", "America/St_Barthelemy", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Thunder_Bay", "America/Toronto", "America/Tortola", "America/Atikokan", "America/Bahia_Banderas", "America/Bogota", "America/Cancun", "America/Cayman", "America/Chicago", "America/Eirunepe", "America/Guayaquil", "America/Indiana/Knox", "America/Indiana/Tell_City", "America/Jamaica", "America/Lima", "America/Matamoros", "America/Menominee", "America/Merida", "America/Mexico_City", "America/Monterrey", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Panama", "America/Rainy_River", "America/Rankin_Inlet", "America/Resolute", "America/Rio_Branco", "America/Winnipeg", "America/Belize", "America/Boise", "America/Cambridge_Bay", "America/Chihuahua", "America/Costa_Rica", "America/Denver", "America/Edmonton", "America/El_Salvador", "America/Guatemala", "America/Inuvik", "America/Managua", "America/Mazatlan", "America/Ojinaga", "America/Regina", "America/Swift_Current", "America/Tegucigalpa", "America/Yellowknife", "Pacific/Easter", "Pacific/Galapagos", "America/Creston", "America/Dawson", "America/Dawson_Creek", "America/Fort_Nelson", "America/Hermosillo", "America/Los_Angeles", "America/Phoenix", "America/Tijuana", "America/Vancouver", "America/Whitehorse", "America/Anchorage", "America/Juneau", "America/Metlakatla", "America/Nome", "America/Sitka", "America/Yakutat", "Pacific/Pitcairn", "America/Adak", "Pacific/Gambier", "Pacific/Marquesas", "Pacific/Honolulu", "Pacific/Rarotonga", "Pacific/Tahiti", "Pacific/Midway", "Pacific/Niue", "Pacific/Pago_Pago"];
3
+ /** Member of {@link IANA_TIMEZONES}. */
2
4
  export type IanaZone = (typeof IANA_TIMEZONES)[number];
@@ -1,3 +1,4 @@
1
1
  declare const _locales: readonly ["af-ZA", "sq-AL", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE", "hy-AM", "az-AZ", "eu-ES", "be-BY", "bn-IN", "bs-BA", "bg-BG", "ca-ES", "zh-CN", "zh-HK", "zh-MO", "zh-SG", "zh-TW", "hr-HR", "cs-CZ", "da-DK", "nl-BE", "nl-NL", "en-AU", "en-BZ", "en-CA", "en-IE", "en-JM", "en-NZ", "en-PH", "en-ZA", "en-TT", "en-VI", "en-GB", "en-US", "en-ZW", "et-EE", "fo-FO", "fi-FI", "fr-BE", "fr-CA", "fr-FR", "fr-LU", "fr-MC", "fr-CH", "gl-ES", "ka-GE", "de-AT", "de-DE", "de-LI", "de-LU", "de-CH", "el-GR", "gu-IN", "he-IL", "hi-IN", "hu-HU", "is-IS", "id-ID", "it-IT", "it-CH", "ja-JP", "kn-IN", "kk-KZ", "kok-IN", "ko-KR", "lv-LV", "lt-LT", "mk-MK", "ms-BN", "ms-MY", "ml-IN", "mt-MT", "mr-IN", "mn-MN", "se-NO", "nb-NO", "nn-NO", "fa-IR", "pl-PL", "pt-BR", "pt-PT", "pa-IN", "ro-RO", "ru-RU", "sr-BA", "sr-CS", "sk-SK", "sl-SI", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-SV", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PY", "es-PE", "es-PR", "es-ES", "es-UY", "es-VE", "sw-KE", "sv-FI", "sv-SE", "syr-SY", "ta-IN", "te-IN", "th-TH", "tn-ZA", "tr-TR", "uk-UA", "uz-UZ", "vi-VN", "cy-GB", "xh-ZA", "zu-ZA"];
2
+ /** BCP 47 language tags used by locale-typed props. */
2
3
  export type Locale = (typeof _locales)[number];
3
4
  export {};
@@ -1,28 +1,28 @@
1
1
  import { CSSProperties, FC, SVGProps } from 'react';
2
2
  import { ButtonProps } from '../components';
3
+ /** Element that can receive focus, from `tabbable`. */
3
4
  export type { FocusableElement } from 'tabbable';
4
5
  export type ButtonAppearance = "primary" | "secondary" | "ghost" | "danger" | "danger-secondary";
5
6
  export type OnCloseProps = {
6
- /**
7
- * Called when the component is closed. If supplied, a close button will be rendered.
8
- * @returns void
9
- */
7
+ /** When set, renders a close control and is called on close. */
10
8
  onClose?: ButtonProps["onClick"];
11
9
  };
12
10
  type Copy<T> = Pick<T, keyof T>;
13
11
  export type DisableCloseOnEscapeOrClickProps = {
14
- /**
15
- * Determines whether to disable pressing "escape" to close the component.
16
- * @default false
17
- */
12
+ /** Skip Escape-to-close. Defaults to `false`. */
18
13
  disableCloseOnEscape?: boolean;
19
- /**
20
- * Determines whether to disable clicking outside of the component to close it.
21
- * @default false
22
- */
14
+ /** Skip outside-click-to-close. Defaults to `false`. */
23
15
  disableCloseOnClickOutside?: boolean;
24
16
  };
17
+ /**
18
+ * Spacing scale. Numbers and numeric strings match (`4` / `"4"`). `"half"` is
19
+ * the half-step.
20
+ */
25
21
  export type GapSize = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | "0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14";
22
+ /**
23
+ * Flex/grid utilities applied as inline styles. Nested `sm`–`xxl` bags apply
24
+ * the same utilities from that breakpoint up.
25
+ */
26
26
  export type LayoutUtilProps = {
27
27
  flex?: CSSProperties["flex"];
28
28
  flexDirection?: CSSProperties["flexDirection"];
@@ -55,6 +55,7 @@ export type LayoutUtilProps = {
55
55
  xl?: Omit<LayoutUtilProps, "sm" | "md" | "lg" | "xl" | "xxl">;
56
56
  xxl?: Omit<LayoutUtilProps, "sm" | "md" | "lg" | "xl" | "xxl">;
57
57
  };
58
+ /** Makes keys in `K` required on `T`. Omit `K` to require every key of `T`. */
58
59
  export type RequiredByKeys<T, K extends keyof T = keyof T> = Copy<{
59
60
  [P in keyof T as P extends K ? P : never]-?: T[P];
60
61
  } & {
@@ -64,8 +65,5 @@ export type SemanticColor = "primary" | "secondary" | "critical" | "warning";
64
65
  export type Size = "0" | "xsmall" | "small" | "medium" | "large" | "xlarge";
65
66
  export type Status = "info" | "success" | "warning" | "danger";
66
67
  export type Svg = FC<SVGProps<SVGSVGElement>>;
67
- /**
68
- * Represents the state of a checkbox-style selection.
69
- * Used by SelectField, MultiSelectField, and similar components.
70
- */
68
+ /** Checkbox-style selection, including indeterminate and loading. */
71
69
  export type CheckState = "indeterminate" | "loading" | "checked" | "unchecked";
@@ -1,4 +1,4 @@
1
- import { I as INLINE_MARKDOWN_REGEX } from './FieldLabel-CYCk2rz-.js';
1
+ import { I as INLINE_MARKDOWN_REGEX } from './FieldLabel-6aFKQfyD.js';
2
2
 
3
3
  const stripInlineMarkdown = (str) => {
4
4
  const parts = [];
@@ -22,4 +22,4 @@ const stripInlineMarkdown = (str) => {
22
22
  };
23
23
 
24
24
  export { stripInlineMarkdown as s };
25
- //# sourceMappingURL=stripInlineMarkdown-82hVO9EP.js.map
25
+ //# sourceMappingURL=stripInlineMarkdown-CosQSmBr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripInlineMarkdown-CosQSmBr.js","sources":["../src/internal/functions/stripInlineMarkdown.ts"],"sourcesContent":["import { INLINE_MARKDOWN_REGEX } from \"../utils/inlineMarkdownRegex\";\n\n/**\n * Drops inline markdown markers and returns the inner text (for `aria-label`).\n * Shared global regex: reset `lastIndex` per call and save it around nested\n * strips. Code spans are not reparsed.\n */\nexport const stripInlineMarkdown = (str: string): string => {\n const parts: string[] = [];\n let lastIndex = 0;\n\n INLINE_MARKDOWN_REGEX.lastIndex = 0;\n let match: RegExpExecArray | null;\n\n while ((match = INLINE_MARKDOWN_REGEX.exec(str)) !== null) {\n if (match.index > lastIndex) {\n parts.push(str.substring(lastIndex, match.index));\n }\n\n const savedIndex = INLINE_MARKDOWN_REGEX.lastIndex;\n const inner =\n match[1] ?? match[2] ?? match[3] ?? match[4] ?? match[5] ?? \"\";\n\n parts.push(match[5] ? inner : stripInlineMarkdown(inner));\n\n INLINE_MARKDOWN_REGEX.lastIndex = savedIndex;\n lastIndex = savedIndex;\n }\n\n if (lastIndex < str.length) {\n parts.push(str.substring(lastIndex));\n }\n\n return parts.join(\"\");\n};\n"],"names":[],"mappings":";;AAOO,MAAM,mBAAA,GAAsB,CAAC,GAAA,KAAwB;AAC1D,EAAA,MAAM,QAAkB,EAAC;AACzB,EAAA,IAAI,SAAA,GAAY,CAAA;AAEhB,EAAA,qBAAA,CAAsB,SAAA,GAAY,CAAA;AAClC,EAAA,IAAI,KAAA;AAEJ,EAAA,OAAA,CAAQ,KAAA,GAAQ,qBAAA,CAAsB,IAAA,CAAK,GAAG,OAAO,IAAA,EAAM;AACzD,IAAA,IAAI,KAAA,CAAM,QAAQ,SAAA,EAAW;AAC3B,MAAA,KAAA,CAAM,KAAK,GAAA,CAAI,SAAA,CAAU,SAAA,EAAW,KAAA,CAAM,KAAK,CAAC,CAAA;AAAA,IAClD;AAEA,IAAA,MAAM,aAAa,qBAAA,CAAsB,SAAA;AACzC,IAAA,MAAM,KAAA,GACJ,KAAA,CAAM,CAAC,CAAA,IAAK,MAAM,CAAC,CAAA,IAAK,KAAA,CAAM,CAAC,KAAK,KAAA,CAAM,CAAC,CAAA,IAAK,KAAA,CAAM,CAAC,CAAA,IAAK,EAAA;AAE9D,IAAA,KAAA,CAAM,KAAK,KAAA,CAAM,CAAC,IAAI,KAAA,GAAQ,mBAAA,CAAoB,KAAK,CAAC,CAAA;AAExD,IAAA,qBAAA,CAAsB,SAAA,GAAY,UAAA;AAClC,IAAA,SAAA,GAAY,UAAA;AAAA,EACd;AAEA,EAAA,IAAI,SAAA,GAAY,IAAI,MAAA,EAAQ;AAC1B,IAAA,KAAA,CAAM,IAAA,CAAK,GAAA,CAAI,SAAA,CAAU,SAAS,CAAC,CAAA;AAAA,EACrC;AAEA,EAAA,OAAO,KAAA,CAAM,KAAK,EAAE,CAAA;AACtB;;;;"}