@servicetitan/anvil2 3.19.1 → 3.21.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 (270) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/{AiMark-BrpVo9Q3.js → AiMark-ZPUsbzuw.js} +8 -9
  3. package/dist/{AiMark-BrpVo9Q3.js.map → AiMark-ZPUsbzuw.js.map} +1 -1
  4. package/dist/AiMark.css +13 -12
  5. package/dist/AiMark.js +1 -1
  6. package/dist/{Alert-I2aey2tn.js → Alert-DA52LCh2.js} +2 -2
  7. package/dist/{Alert-I2aey2tn.js.map → Alert-DA52LCh2.js.map} +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/{Breadcrumbs-D_eZyRPj.js → Breadcrumbs-CyAGeu_S.js} +2 -2
  10. package/dist/{Breadcrumbs-D_eZyRPj.js.map → Breadcrumbs-CyAGeu_S.js.map} +1 -1
  11. package/dist/Breadcrumbs.js +1 -1
  12. package/dist/{Calendar-CsPlLgz6.js → Calendar--Vo79-vL.js} +9 -4
  13. package/dist/Calendar--Vo79-vL.js.map +1 -0
  14. package/dist/{Calendar-DIrRryEw.js → Calendar-BbstKaKh.js} +2 -2
  15. package/dist/{Calendar-DIrRryEw.js.map → Calendar-BbstKaKh.js.map} +1 -1
  16. package/dist/Calendar.js +2 -2
  17. package/dist/{Checkbox-DIDiV21L.js → Checkbox-B1dGMQeg.js} +2 -2
  18. package/dist/{Checkbox-DIDiV21L.js.map → Checkbox-B1dGMQeg.js.map} +1 -1
  19. package/dist/{Checkbox-B8t9Ci-v.js → Checkbox-DTuiWg1A.js} +2 -2
  20. package/dist/{Checkbox-B8t9Ci-v.js.map → Checkbox-DTuiWg1A.js.map} +1 -1
  21. package/dist/Checkbox.js +1 -1
  22. package/dist/{Chip-VgArZImD.js → Chip-RJ81tOE6.js} +5 -3
  23. package/dist/Chip-RJ81tOE6.js.map +1 -0
  24. package/dist/Chip.js +1 -1
  25. package/dist/Combobox.js +1 -1
  26. package/dist/{DataTableEditColumnsDrawer-BOpdQ-g1.js → DataTableEditColumnsDrawer-DUIpOSE9.js} +1681 -324
  27. package/dist/DataTableEditColumnsDrawer-DUIpOSE9.js.map +1 -0
  28. package/dist/DataTableEditColumnsDrawer.css +72 -0
  29. package/dist/{DateFieldRange-D8Mh3-DR.js → DateFieldRange-Bz8JYNG8.js} +6 -6
  30. package/dist/DateFieldRange-Bz8JYNG8.js.map +1 -0
  31. package/dist/DateFieldRange.js +1 -1
  32. package/dist/{DateFieldSingle-BPfA3WjH.js → DateFieldSingle-brLeR5g8.js} +6 -6
  33. package/dist/DateFieldSingle-brLeR5g8.js.map +1 -0
  34. package/dist/DateFieldSingle.js +1 -1
  35. package/dist/{DateFieldYearless-CPNii0P-.js → DateFieldYearless-BOsu8xsF.js} +3 -3
  36. package/dist/{DateFieldYearless-CPNii0P-.js.map → DateFieldYearless-BOsu8xsF.js.map} +1 -1
  37. package/dist/DateFieldYearless.js +1 -1
  38. package/dist/{DateFieldYearlessRange-zGSVJt8r.js → DateFieldYearlessRange-8634Lo1N.js} +3 -3
  39. package/dist/{DateFieldYearlessRange-zGSVJt8r.js.map → DateFieldYearlessRange-8634Lo1N.js.map} +1 -1
  40. package/dist/DateFieldYearlessRange.js +1 -1
  41. package/dist/{DaysOfTheWeek-B4c5x3dK.js → DaysOfTheWeek-iMk8sVyS.js} +3 -3
  42. package/dist/{DaysOfTheWeek-B4c5x3dK.js.map → DaysOfTheWeek-iMk8sVyS.js.map} +1 -1
  43. package/dist/DaysOfTheWeek.js +1 -1
  44. package/dist/{Details-CG0j1Ozf.js → Details-IvpXegMz.js} +5 -5
  45. package/dist/{Details-CG0j1Ozf.js.map → Details-IvpXegMz.js.map} +1 -1
  46. package/dist/Details.js +1 -1
  47. package/dist/{Dialog-CYEHufmn.js → Dialog-sSjVKcdI.js} +4 -4
  48. package/dist/{Dialog-CYEHufmn.js.map → Dialog-sSjVKcdI.js.map} +1 -1
  49. package/dist/Dialog.js +1 -1
  50. package/dist/DndSort.js +1 -5656
  51. package/dist/DndSort.js.map +1 -1
  52. package/dist/{Drawer-vEp5BF1D.js → Drawer-CwPikeJv.js} +5 -5
  53. package/dist/{Drawer-vEp5BF1D.js.map → Drawer-CwPikeJv.js.map} +1 -1
  54. package/dist/Drawer.js +1 -1
  55. package/dist/DrillDown.js +1 -1
  56. package/dist/EditCard.js +1 -1
  57. package/dist/EditSavedFiltersDrawer-C4_7psz0.js +1256 -0
  58. package/dist/EditSavedFiltersDrawer-C4_7psz0.js.map +1 -0
  59. package/dist/EditSavedFiltersDrawer.css +14 -0
  60. package/dist/{FieldLabel-BKi_gbQd.js → FieldLabel-DxZY9kI9.js} +3 -3
  61. package/dist/{FieldLabel-BKi_gbQd.js.map → FieldLabel-DxZY9kI9.js.map} +1 -1
  62. package/dist/FieldLabel.js +1 -1
  63. package/dist/{FilterBar-CsXkp2gG.js → FilterBar-CDcs_5sU.js} +6 -6
  64. package/dist/{FilterBar-CsXkp2gG.js.map → FilterBar-CDcs_5sU.js.map} +1 -1
  65. package/dist/FilterBar.js +1 -1
  66. package/dist/{InputMask-SD1IFEt0.js → InputMask-D_DfQmMd.js} +3 -3
  67. package/dist/{InputMask-SD1IFEt0.js.map → InputMask-D_DfQmMd.js.map} +1 -1
  68. package/dist/InputMask.js +1 -1
  69. package/dist/{ListView-C1GgiU0v.js → ListView-CZju45Ca.js} +2 -2
  70. package/dist/{ListView-C1GgiU0v.js.map → ListView-CZju45Ca.js.map} +1 -1
  71. package/dist/ListView.js +1 -1
  72. package/dist/{Listbox-BN_xuWXm.js → Listbox-UHfHd7PJ.js} +2 -2
  73. package/dist/{Listbox-BN_xuWXm.js.map → Listbox-UHfHd7PJ.js.map} +1 -1
  74. package/dist/Listbox.js +1 -1
  75. package/dist/{Menu-DqP7YQgE.js → Menu-SqL_1H2z.js} +367 -129
  76. package/dist/Menu-SqL_1H2z.js.map +1 -0
  77. package/dist/Menu.css +58 -22
  78. package/dist/Menu.js +1 -1
  79. package/dist/Menu.module-CC8zaI-6.js +24 -0
  80. package/dist/Menu.module-CC8zaI-6.js.map +1 -0
  81. package/dist/MultiSelectField.js +1 -1
  82. package/dist/{MultiSelectFieldSync-CpCXa5dj.js → MultiSelectFieldSync-d55WX58J.js} +33 -30
  83. package/dist/MultiSelectFieldSync-d55WX58J.js.map +1 -0
  84. package/dist/MultiSelectFieldSync.css +80 -80
  85. package/dist/MultiSelectMenu.js +1 -1
  86. package/dist/{MultiSelectMenuSync-dB05vH-7.js → MultiSelectMenuSync-Dv3bAx0x.js} +4 -4
  87. package/dist/{MultiSelectMenuSync-dB05vH-7.js.map → MultiSelectMenuSync-Dv3bAx0x.js.map} +1 -1
  88. package/dist/{NumberField-_Q_Zboqu.js → NumberField-DzQr8_xt.js} +2 -2
  89. package/dist/{NumberField-_Q_Zboqu.js.map → NumberField-DzQr8_xt.js.map} +1 -1
  90. package/dist/NumberField.js +1 -1
  91. package/dist/{Page-aELdGvmc.js → Page-DkVoIsug.js} +10 -10
  92. package/dist/{Page-aELdGvmc.js.map → Page-DkVoIsug.js.map} +1 -1
  93. package/dist/Page.js +1 -1
  94. package/dist/{Pagination-BiJBrVZ-.js → Pagination-DeJvKhxy.js} +3 -3
  95. package/dist/{Pagination-BiJBrVZ-.js.map → Pagination-DeJvKhxy.js.map} +1 -1
  96. package/dist/Pagination.js +1 -1
  97. package/dist/{Popover-BT5hRXd4.js → Popover-BNmJCpMP.js} +7 -8
  98. package/dist/{Popover-BT5hRXd4.js.map → Popover-BNmJCpMP.js.map} +1 -1
  99. package/dist/Popover.css +13 -12
  100. package/dist/Popover.js +1 -1
  101. package/dist/{ProgressBar-DWMWhwzO.js → ProgressBar-C4OEY-y_.js} +2 -2
  102. package/dist/{ProgressBar-DWMWhwzO.js.map → ProgressBar-C4OEY-y_.js.map} +1 -1
  103. package/dist/ProgressBar.js +1 -1
  104. package/dist/{Radio-BxCntyzK.js → Radio-CqZMJ59P.js} +2 -2
  105. package/dist/{Radio-BxCntyzK.js.map → Radio-CqZMJ59P.js.map} +1 -1
  106. package/dist/{Radio-BigB06fh.js → Radio-MKpTVK0B.js} +2 -2
  107. package/dist/{Radio-BigB06fh.js.map → Radio-MKpTVK0B.js.map} +1 -1
  108. package/dist/Radio.js +1 -1
  109. package/dist/{RichTextEditor-91YvpkRp.js → RichTextEditor-Bl18lkwz.js} +9 -9
  110. package/dist/{RichTextEditor-91YvpkRp.js.map → RichTextEditor-Bl18lkwz.js.map} +1 -1
  111. package/dist/RichTextEditor.js +1 -1
  112. package/dist/SavedFiltersButton-Bk6U9c18.js +221 -0
  113. package/dist/SavedFiltersButton-Bk6U9c18.js.map +1 -0
  114. package/dist/SavedFiltersButton.js +1 -1
  115. package/dist/{SelectCard-C-XW2kkw.js → SelectCard-DLZabbgB.js} +3 -3
  116. package/dist/{SelectCard-C-XW2kkw.js.map → SelectCard-DLZabbgB.js.map} +1 -1
  117. package/dist/SelectCard.js +1 -1
  118. package/dist/SelectField.js +1 -1
  119. package/dist/{SelectFieldLabel-Dd4TTOoQ.js → SelectFieldLabel-Dx_O109p.js} +2 -2
  120. package/dist/{SelectFieldLabel-Dd4TTOoQ.js.map → SelectFieldLabel-Dx_O109p.js.map} +1 -1
  121. package/dist/{SelectFieldSync-7V1ozTSX.js → SelectFieldSync-C5v2XbJz.js} +10 -8
  122. package/dist/SelectFieldSync-C5v2XbJz.js.map +1 -0
  123. package/dist/SelectMenu.js +1 -1
  124. package/dist/{SelectMenuSync-DQO0wVVk.js → SelectMenuSync-C-gvWgY_.js} +4 -4
  125. package/dist/{SelectMenuSync-DQO0wVVk.js.map → SelectMenuSync-C-gvWgY_.js.map} +1 -1
  126. package/dist/{SelectOptions-sFpzWKzp.js → SelectOptions-DXdAlDLk.js} +2 -2
  127. package/dist/{SelectOptions-sFpzWKzp.js.map → SelectOptions-DXdAlDLk.js.map} +1 -1
  128. package/dist/{SelectTrigger-BDkLtDuP.js → SelectTrigger-B4g7-z2t.js} +2 -2
  129. package/dist/{SelectTrigger-BDkLtDuP.js.map → SelectTrigger-B4g7-z2t.js.map} +1 -1
  130. package/dist/SelectTrigger.js +1 -1
  131. package/dist/{SelectTriggerBase-r1wQYPe6.js → SelectTriggerBase-1TdYQMjS.js} +4 -4
  132. package/dist/{SelectTriggerBase-r1wQYPe6.js.map → SelectTriggerBase-1TdYQMjS.js.map} +1 -1
  133. package/dist/SelectTriggerBase.css +61 -61
  134. package/dist/SelectTriggerBase.module-B6akYRk_.js +42 -0
  135. package/dist/SelectTriggerBase.module-B6akYRk_.js.map +1 -0
  136. package/dist/{Slider-C5DpOUcL.js → Slider-yrmVmo3D.js} +2 -2
  137. package/dist/{Slider-C5DpOUcL.js.map → Slider-yrmVmo3D.js.map} +1 -1
  138. package/dist/Slider.js +1 -1
  139. package/dist/{Switch-B9guzVw9.js → Switch-BKYPxW4K.js} +2 -2
  140. package/dist/{Switch-B9guzVw9.js.map → Switch-BKYPxW4K.js.map} +1 -1
  141. package/dist/Switch.js +1 -1
  142. package/dist/Table.js +1 -1
  143. package/dist/{Text-CxB0zvG5.js → Text-QNJBWFFq.js} +2 -2
  144. package/dist/{Text-CxB0zvG5.js.map → Text-QNJBWFFq.js.map} +1 -1
  145. package/dist/Text.js +1 -1
  146. package/dist/{TextField-BLrVtByh.js → TextField-BZeYI4mH.js} +2 -2
  147. package/dist/{TextField-BLrVtByh.js.map → TextField-BZeYI4mH.js.map} +1 -1
  148. package/dist/{TextField-Dl1f63dR.js → TextField-_CqbWqEy.js} +2 -2
  149. package/dist/{TextField-Dl1f63dR.js.map → TextField-_CqbWqEy.js.map} +1 -1
  150. package/dist/TextField.js +1 -1
  151. package/dist/{Textarea-jZE2TYm3.js → Textarea-D8d7Fvuj.js} +2 -2
  152. package/dist/{Textarea-jZE2TYm3.js.map → Textarea-D8d7Fvuj.js.map} +1 -1
  153. package/dist/Textarea.js +1 -1
  154. package/dist/{TimeField-CFJPrGZq.js → TimeField-CdEsL6g3.js} +4 -4
  155. package/dist/{TimeField-CFJPrGZq.js.map → TimeField-CdEsL6g3.js.map} +1 -1
  156. package/dist/TimeField.js +1 -1
  157. package/dist/{TimezoneMessage-CknTwubm.js → TimezoneMessage-DE_V-KTB.js} +3 -3
  158. package/dist/TimezoneMessage-DE_V-KTB.js.map +1 -0
  159. package/dist/Toast.js +2 -2
  160. package/dist/{Toaster-9TVzbuWv.js → Toaster-BDLfmknE.js} +2 -2
  161. package/dist/{Toaster-9TVzbuWv.js.map → Toaster-BDLfmknE.js.map} +1 -1
  162. package/dist/{Toaster-CS-B6MVl.js → Toaster-C8C92j6M.js} +4 -5
  163. package/dist/{Toaster-CS-B6MVl.js.map → Toaster-C8C92j6M.js.map} +1 -1
  164. package/dist/{Toolbar-BeCljCaA.js → Toolbar-BCfebujS.js} +7 -6
  165. package/dist/Toolbar-BCfebujS.js.map +1 -0
  166. package/dist/{Toolbar-B9DQdL0M.js → Toolbar-Clfuy5KZ.js} +4 -4
  167. package/dist/{Toolbar-B9DQdL0M.js.map → Toolbar-Clfuy5KZ.js.map} +1 -1
  168. package/dist/Toolbar.js +2 -2
  169. package/dist/{ToolbarButtonToggle-BHpoVrCy.js → ToolbarButtonToggle-BY46p72Z.js} +2 -2
  170. package/dist/{ToolbarButtonToggle-BHpoVrCy.js.map → ToolbarButtonToggle-BY46p72Z.js.map} +1 -1
  171. package/dist/{Tooltip-CsTkZqMg.js → Tooltip-B9Et440X.js} +7 -11
  172. package/dist/Tooltip-B9Et440X.js.map +1 -0
  173. package/dist/Tooltip.css +7 -6
  174. package/dist/Tooltip.js +1 -1
  175. package/dist/TreeSelectField.js +1 -1
  176. package/dist/{TreeSelectFieldSync-DDMcs43p.js → TreeSelectFieldSync-CcGFTmZR.js} +6 -6
  177. package/dist/{TreeSelectFieldSync-DDMcs43p.js.map → TreeSelectFieldSync-CcGFTmZR.js.map} +1 -1
  178. package/dist/TreeSelectMenu.js +1 -1
  179. package/dist/{TreeSelectMenuSync-Cm9zKjKO.js → TreeSelectMenuSync-BNCKKoX5.js} +3 -3
  180. package/dist/{TreeSelectMenuSync-Cm9zKjKO.js.map → TreeSelectMenuSync-BNCKKoX5.js.map} +1 -1
  181. package/dist/{TypeaheadTextField-CSkWZ-62.js → TypeaheadTextField-0JZbg_nq.js} +4 -4
  182. package/dist/{TypeaheadTextField-CSkWZ-62.js.map → TypeaheadTextField-0JZbg_nq.js.map} +1 -1
  183. package/dist/TypeaheadTextField.js +1 -1
  184. package/dist/{YearlessDateInputWithPicker-CHUxtmBK.js → YearlessDateInputWithPicker-Ci07Qyu2.js} +2 -2
  185. package/dist/{YearlessDateInputWithPicker-CHUxtmBK.js.map → YearlessDateInputWithPicker-Ci07Qyu2.js.map} +1 -1
  186. package/dist/beta.js +19 -19
  187. package/dist/{bulkActionTypes-B0HssR80.js → bulkActionTypes-CEzONeIo.js} +2 -2
  188. package/dist/{bulkActionTypes-B0HssR80.js.map → bulkActionTypes-CEzONeIo.js.map} +1 -1
  189. package/dist/{filter-state-kOnDWwml.js → filter-state-C125Jq7U.js} +22 -22
  190. package/dist/{filter-state-kOnDWwml.js.map → filter-state-C125Jq7U.js.map} +1 -1
  191. package/dist/index-C35w5YI6.js +5685 -0
  192. package/dist/index-C35w5YI6.js.map +1 -0
  193. package/dist/{index-BE4D0nXS.js → index-OO0ikzp1.js} +2 -2
  194. package/dist/{index-BE4D0nXS.js.map → index-OO0ikzp1.js.map} +1 -1
  195. package/dist/index.js +44 -44
  196. package/dist/{floating-ui.react-dom-BIKT960u.js → portalScopeClassNames-M_1IAJ6o.js} +15 -3
  197. package/dist/portalScopeClassNames-M_1IAJ6o.js.map +1 -0
  198. package/dist/src/beta/components/SavedFiltersButton/SavedFiltersButton.d.ts +3 -0
  199. package/dist/src/beta/components/SavedFiltersButton/internal/AddSavedFilterDrawer.d.ts +10 -1
  200. package/dist/src/beta/components/SavedFiltersButton/internal/EditSavedFiltersDrawer.d.ts +43 -1
  201. package/dist/src/beta/components/SavedFiltersButton/parts.d.ts +3 -1
  202. package/dist/src/beta/components/SavedFiltersButton/types.d.ts +8 -3
  203. package/dist/src/beta/components/Table/DataTable/DataTable.d.ts +14 -4
  204. package/dist/src/beta/components/Table/DataTable/internal/DataTableAddRow.d.ts +9 -0
  205. package/dist/src/beta/components/Table/DataTable/internal/DataTableFilterToolbar.d.ts +21 -2
  206. package/dist/src/beta/components/Table/DataTable/internal/DataTableFooter.d.ts +1 -1
  207. package/dist/src/beta/components/Table/DataTable/internal/columnEditing/EditColumnsDrawer.d.ts +12 -0
  208. package/dist/src/beta/components/Table/DataTable/internal/columnEditing/columnLayout.d.ts +18 -1
  209. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/DataTableViewOptionsMenu.d.ts +40 -0
  210. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/SavedViewSortAndColumns.d.ts +21 -0
  211. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/SortByDrawer.d.ts +24 -0
  212. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/ViewOptionsControls.d.ts +9 -0
  213. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/columnOptions.d.ts +31 -0
  214. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/savedViewDirty.d.ts +23 -0
  215. package/dist/src/beta/components/Table/DataTable/internal/viewOptions/sortOrderLabels.d.ts +9 -0
  216. package/dist/src/beta/components/Table/DataTable/parts.d.ts +8 -0
  217. package/dist/src/beta/components/Table/DataTable/stories/pointerDrag.d.ts +5 -0
  218. package/dist/src/beta/components/Table/DataTable/types.d.ts +227 -14
  219. package/dist/src/beta/components/Table/types.d.ts +23 -1
  220. package/dist/src/components/Calendar/Calendar.d.ts +4 -1
  221. package/dist/src/components/DndSort/internal/DndSortAnnouncementsContext.d.ts +12 -0
  222. package/dist/src/components/Menu/Menu.d.ts +33 -7
  223. package/dist/src/components/Menu/MenuGroup.d.ts +14 -0
  224. package/dist/src/components/Menu/MenuItem.d.ts +19 -11
  225. package/dist/src/components/Menu/index.d.ts +1 -0
  226. package/dist/src/components/Menu/internal/MenuContext.d.ts +3 -0
  227. package/dist/src/components/Menu/internal/MenuNested.d.ts +3 -1
  228. package/dist/src/components/Menu/internal/menuSelectors.d.ts +7 -0
  229. package/dist/src/components/Menu/types.d.ts +14 -1
  230. package/dist/src/internal/functions/getBrowserTimeZone.d.ts +6 -0
  231. package/dist/src/internal/functions/index.d.ts +1 -0
  232. package/dist/{syncFilterUtils-MMjNtcOP.js → syncFilterUtils-DHvuD1u_.js} +3 -3
  233. package/dist/{syncFilterUtils-MMjNtcOP.js.map → syncFilterUtils-DHvuD1u_.js.map} +1 -1
  234. package/dist/{treeSync-B4hCuizx.js → treeSync-DthX6nSd.js} +3 -3
  235. package/dist/{treeSync-B4hCuizx.js.map → treeSync-DthX6nSd.js.map} +1 -1
  236. package/dist/{useDrilldown-CqH3Io3l.js → useDrilldown-DdDywAsm.js} +4 -4
  237. package/dist/{useDrilldown-CqH3Io3l.js.map → useDrilldown-DdDywAsm.js.map} +1 -1
  238. package/dist/{useEditCard-DaRvOIEV.js → useEditCard-CQb-8fpN.js} +2 -2
  239. package/dist/{useEditCard-DaRvOIEV.js.map → useEditCard-CQb-8fpN.js.map} +1 -1
  240. package/dist/{useInfiniteCombobox-DPPteKhC.js → useInfiniteCombobox-B2dSuQqF.js} +4 -4
  241. package/dist/{useInfiniteCombobox-DPPteKhC.js.map → useInfiniteCombobox-B2dSuQqF.js.map} +1 -1
  242. package/dist/{useInitialFocus-CcenAq2X.js → useInitialFocus-BZeQY_aY.js} +2 -2
  243. package/dist/{useInitialFocus-CcenAq2X.js.map → useInitialFocus-BZeQY_aY.js.map} +1 -1
  244. package/dist/{useInvalidateOnOptionsChange-Db2AvMj4.js → useInvalidateOnOptionsChange-CHtQ5odJ.js} +6 -7
  245. package/dist/{useInvalidateOnOptionsChange-Db2AvMj4.js.map → useInvalidateOnOptionsChange-CHtQ5odJ.js.map} +1 -1
  246. package/dist/{usePopoverTransitionStates-CDXCdyKa.js → usePopoverTransitionStates-CI2tmBtj.js} +23 -12
  247. package/dist/usePopoverTransitionStates-CI2tmBtj.js.map +1 -0
  248. package/package.json +3 -3
  249. package/dist/Calendar-CsPlLgz6.js.map +0 -1
  250. package/dist/Chip-VgArZImD.js.map +0 -1
  251. package/dist/DataTableEditColumnsDrawer-BOpdQ-g1.js.map +0 -1
  252. package/dist/DateFieldRange-D8Mh3-DR.js.map +0 -1
  253. package/dist/DateFieldSingle-BPfA3WjH.js.map +0 -1
  254. package/dist/Menu-DqP7YQgE.js.map +0 -1
  255. package/dist/Menu.module-CMDgSO9k.js +0 -13
  256. package/dist/Menu.module-CMDgSO9k.js.map +0 -1
  257. package/dist/MultiSelectFieldSync-CpCXa5dj.js.map +0 -1
  258. package/dist/SavedFiltersButton-BiLd3lw2.js +0 -732
  259. package/dist/SavedFiltersButton-BiLd3lw2.js.map +0 -1
  260. package/dist/SelectFieldSync-7V1ozTSX.js.map +0 -1
  261. package/dist/SelectTriggerBase.module-C-NmZbg4.js +0 -41
  262. package/dist/SelectTriggerBase.module-C-NmZbg4.js.map +0 -1
  263. package/dist/TimezoneMessage-CknTwubm.js.map +0 -1
  264. package/dist/Toolbar-BeCljCaA.js.map +0 -1
  265. package/dist/Tooltip-CsTkZqMg.js.map +0 -1
  266. package/dist/floating-ui.react-dom-BIKT960u.js.map +0 -1
  267. package/dist/portalScopeClassNames-CMdDYHE0.js +0 -16
  268. package/dist/portalScopeClassNames-CMdDYHE0.js.map +0 -1
  269. package/dist/usePopoverTransitionStates-CDXCdyKa.js.map +0 -1
  270. /package/dist/{DndSort.css → index3.css} +0 -0
@@ -236,20 +236,32 @@ export type DataTableBulkActions<T> = {
236
236
  */
237
237
  selectableRowCount?: number;
238
238
  };
239
+ /** Options for {@link DataTableRef} `refresh`. */
240
+ export type DataTableRefreshOptions = {
241
+ /**
242
+ * Refetch the page the user is on instead of returning to page `0`. Clears
243
+ * the page cache and keeps table state (column sizing, selection,
244
+ * expansion). With a controlled page, `onPageChange` is not called. If rows
245
+ * may have been deleted, the current page might no longer exist, so use
246
+ * `refresh()` or set `currentPageIndex` yourself. Defaults to `false`.
247
+ */
248
+ keepCurrentPage?: boolean;
249
+ };
239
250
  /**
240
251
  * Imperative handle: refetch the current loader, drop cached pages, or clear
241
252
  * the selection.
242
253
  */
243
254
  export type DataTableRef = {
244
255
  /**
245
- * Bumps the internal refresh counter and sets the page to `0` (calls
246
- * `onPageChange(0)` when page is controlled). Does not by itself call
247
- * `clearCache`.
256
+ * Clears cached pages and refetches. Sets the page to `0` (calls
257
+ * `onPageChange(0)` when page is controlled) unless `keepCurrentPage` is set,
258
+ * which re-reads the current page in place.
248
259
  */
249
- refresh: () => void;
260
+ refresh: (options?: DataTableRefreshOptions) => void;
250
261
  /**
251
262
  * Drops cached pages without refetching. The current page stays until
252
- * `refresh` or a cache-invalidating input changes.
263
+ * `refresh` or a cache-invalidating input changes. To redraw the current page
264
+ * with fresh rows, use `refresh({ keepCurrentPage: true })`.
253
265
  */
254
266
  clearCache: () => void;
255
267
  /**
@@ -272,6 +284,15 @@ export type DataTableColumnPref = {
272
284
  * Turns on the Edit Columns button and drawer. The consumer owns the layout:
273
285
  * DataTable applies it to `columns` and reports Apply and Reset Defaults
274
286
  * through `onLayoutChange`.
287
+ *
288
+ * In the drawer, users can drag a column between Visible Columns and Hidden
289
+ * Columns to show or hide it, and drag a visible column into Locked Columns
290
+ * to pin it. Dragging a pinned column into Hidden Columns unpins and hides
291
+ * it, so the next layout has `visible: false, pinned: false` for that
292
+ * column. Dragging a locked column back to Visible Columns, or a hidden
293
+ * column into Locked Columns, does nothing; the lock button unpins, and a
294
+ * hidden column has to be shown before it can be locked. An `alwaysVisible`
295
+ * column, or the last shown column, can't be dragged into Hidden Columns.
275
296
  */
276
297
  export type DataTableColumnEditing = {
277
298
  /**
@@ -289,7 +310,9 @@ export type DataTableColumnEditing = {
289
310
  onLayoutChange: (layout: DataTableColumnPref[]) => void;
290
311
  /**
291
312
  * Hides the toolbar button while the layout still applies, for a page that
292
- * opens one {@link DataTableEditColumnsDrawer} across several tables.
313
+ * opens one {@link DataTableEditColumnsDrawer} across several tables. With
314
+ * `viewOptions`, the Edit Columns item calls `onEditColumns` instead of
315
+ * opening this table's drawer.
293
316
  * @default false
294
317
  */
295
318
  hideButton?: boolean;
@@ -374,15 +397,179 @@ export type DataTableTools = {
374
397
  */
375
398
  size?: ToolbarSize;
376
399
  };
400
+ /** One action in the Add button's menu. */
401
+ export type DataTableRowAddOption = {
402
+ id: string | number;
403
+ label: string;
404
+ /** Shown before the label. */
405
+ icon?: Svg;
406
+ /** Extra text the menu search matches besides the label. */
407
+ searchText?: string;
408
+ disabled?: boolean;
409
+ /**
410
+ * Heading of the section this option belongs to. Ungrouped options come
411
+ * first; sections follow in the order their first option appears.
412
+ */
413
+ group?: string;
414
+ };
377
415
  /**
378
- * Add row button in a toolbar below the table. DataTable only fires
379
- * `onAddRow`: the page owns the flow, such as a dialog or a takeover, and
380
- * must update `data` when it finishes, or call {@link DataTableRef} `refresh`
381
- * for a table that loads rows with `pagination.loadPageData`.
416
+ * A saved view stores the table's filters, sort, and column layout.
417
+ * Selecting it applies them. The page owns the list.
382
418
  */
383
- export type DataTableRowAdd = {
384
- /** Fires when the Add button is clicked. */
385
- onAddRow: () => void;
419
+ export type DataTableSavedView = {
420
+ /** Stable key used for selection, mutation, and reordering. */
421
+ id: string;
422
+ /** Displayed in the view list. */
423
+ name: string;
424
+ /** Applied to the filter bar when this view is selected. */
425
+ filters: Filter[];
426
+ /**
427
+ * Applied when this view is selected. Omit it for an unsorted table.
428
+ */
429
+ sort?: SortedColumn;
430
+ /**
431
+ * Applied when this view is selected. Omit it to use the table's columns.
432
+ * Choosing this view clears a custom layout.
433
+ */
434
+ columns?: DataTableColumnPref[];
435
+ /**
436
+ * Where the view came from. The menu's Default chip marks `defaultId`, not this field.
437
+ */
438
+ source?: "system" | "user";
439
+ /** Removes the view from update. */
440
+ disableEdit?: boolean;
441
+ /** Removes delete from the edit flow. */
442
+ disableDelete?: boolean;
443
+ };
444
+ /**
445
+ * Saved views shown in View Options. Requires `filters`. Without `filters`,
446
+ * the section is omitted.
447
+ */
448
+ export type DataTableSavedViews = {
449
+ /**
450
+ * Full list. The menu shows the first three, then “N more”, which opens the
451
+ * rest in a submenu. A default stored past those three moves into the menu.
452
+ */
453
+ views: DataTableSavedView[];
454
+ /**
455
+ * Replaces the saved-view list with a load failure. Save, sort, and edit
456
+ * columns stay available.
457
+ */
458
+ loadError?: boolean;
459
+ /** Marks the matching view with a trailing check. */
460
+ activeId?: string;
461
+ /**
462
+ * Persists a named snapshot of the current filters, sort, and column layout.
463
+ * A returned promise controls loading; resolving closes the drawer and
464
+ * rejecting keeps it open.
465
+ */
466
+ onSave?: (payload: {
467
+ name: string;
468
+ filters: Filter[];
469
+ sort?: SortedColumn;
470
+ columns?: DataTableColumnPref[];
471
+ }) => void | Promise<void>;
472
+ /**
473
+ * Overwrites a view. Update Saved View sends the filters, sort, and columns
474
+ * currently on the table. Edit Saved Views sends the name, filters, sort,
475
+ * and column layout from that view's edit screen.
476
+ * A returned promise controls the confirm dialog and the edit drawer:
477
+ * resolving closes that surface, and rejecting keeps it open.
478
+ */
479
+ onUpdate?: (id: string, update: {
480
+ name: string;
481
+ filters: Filter[];
482
+ sort?: SortedColumn;
483
+ columns?: DataTableColumnPref[];
484
+ }) => void | Promise<void>;
485
+ /**
486
+ * Deletes a view. Edit Saved Views calls this from each row and from that view's edit screen.
487
+ * Reject when the view isn't deleted. If it resolves while the page keeps the view in the
488
+ * same `views` array, Apply leaves that view out of the saved order until the page passes a
489
+ * new list or the drawer reopens.
490
+ */
491
+ onDelete?: (id: string) => void | Promise<void>;
492
+ /**
493
+ * Receives the full id order after a reorder in Edit Saved Views. The menu
494
+ * still shows the default first, then the next views from this order.
495
+ */
496
+ onReorder?: (orderedIds: string[]) => void | Promise<void>;
497
+ /**
498
+ * Id of the stored default. The page owns this value. That view shows a
499
+ * Default chip in the menu and in Edit Saved Views, stays first in the menu,
500
+ * and stays in Visible Views. Its edit screen shows a star labelled Default
501
+ * view beside the title.
502
+ */
503
+ defaultId?: string;
504
+ /**
505
+ * Notifies the page of a new default id, or `undefined` when Set Default View is
506
+ * cleared. Omit it to hide Set Default View. DataTable does not store the id
507
+ * or change the filters, sort, columns, or active view. Persist it and pass
508
+ * it back as `defaultId`. The page shows that view when the table first loads.
509
+ */
510
+ onSetDefault?: (id: string | undefined) => void;
511
+ /**
512
+ * Choosing a view calls this with that view's id. Choosing that view again,
513
+ * or Reset Table, calls this with `undefined`. DataTable does not store the active
514
+ * view, so set `activeId` from this callback. Matching filters alone does not
515
+ * identify a view.
516
+ */
517
+ onActiveChange?: (id: string | undefined) => void;
518
+ /**
519
+ * Validates trimmed names in the save and edit flows. Return an error to
520
+ * block submission.
521
+ */
522
+ validateName?: (name: string, currentId?: string) => string | undefined;
523
+ };
524
+ /**
525
+ * View Options menu on the filter row. An empty object shows the shell.
526
+ * Saved views, sorting, and edit columns attach to this same prop.
527
+ */
528
+ export type DataTableViewOptions = {
529
+ /** Called from Save as New View when `savedViews` is omitted. */
530
+ onSaveView?: () => void;
531
+ /** Called from Edit Saved Views when `savedViews` is omitted. */
532
+ onEditViews?: () => void;
533
+ /** Called when Sort By is chosen. */
534
+ onSort?: () => void;
535
+ /**
536
+ * Called from Edit Columns when `columnEditing.hideButton` is set and this
537
+ * table is not opening its own drawer.
538
+ */
539
+ onEditColumns?: () => void;
540
+ /** Saved views. Omitted from the menu when `filters` is not set. */
541
+ savedViews?: DataTableSavedViews;
542
+ };
543
+ /**
544
+ * Options of the Add button's menu, a searchable {@link Menu} of actions:
545
+ * choosing an option calls `onSelectOption` and closes the menu.
546
+ */
547
+ export type DataTableRowAddMenu = {
548
+ /** Actions the user can search and choose, e.g. ways to start a new row. */
549
+ options: DataTableRowAddOption[];
550
+ /** Fires with the chosen option. */
551
+ onSelectOption: (option: DataTableRowAddOption) => void;
552
+ /**
553
+ * Footer button below a divider, e.g. "Add manually" opening a dialog. It
554
+ * stays visible while searching.
555
+ */
556
+ addManual?: {
557
+ /**
558
+ * Static button text.
559
+ * @default "Add new item"
560
+ */
561
+ label?: string;
562
+ /**
563
+ * Shown before the label. Pass `null` for a text-only button.
564
+ * @default the Add icon
565
+ */
566
+ icon?: Svg | null;
567
+ onClick: () => void;
568
+ };
569
+ /** Placeholder of the menu's search field. */
570
+ searchPlaceholder?: string;
571
+ };
572
+ type DataTableRowAddBase = {
386
573
  /**
387
574
  * Label of the Add button.
388
575
  * @default "Add row"
@@ -393,9 +580,35 @@ export type DataTableRowAdd = {
393
580
  /** Shows the Add button as busy, e.g. while an external check runs. */
394
581
  loading?: boolean;
395
582
  /**
396
- * Size of the toolbar controls.
583
+ * Where the Add button sits. `top` places it at the right end of the toolbar
584
+ * above the table, after Edit Columns and View Options; `bottom` places it below the table;
585
+ * `both` renders it in both places.
586
+ * @default "bottom"
587
+ */
588
+ position?: "top" | "bottom" | "both";
589
+ /**
590
+ * Size of the Add button below the table. At the top it takes the size of the
591
+ * toolbar controls.
397
592
  * @default "medium"
398
593
  */
399
594
  size?: ToolbarSize;
400
595
  };
596
+ /**
597
+ * Add row button. DataTable only fires the callback: the page owns the flow,
598
+ * such as a dialog or a takeover, and must update `data` when it finishes, or
599
+ * call {@link DataTableRef} `refresh` for a table that loads rows with
600
+ * `pagination.loadPageData`.
601
+ *
602
+ * Pass `onAddRow` for a plain button, or `menu` to open a menu of options
603
+ * instead.
604
+ */
605
+ export type DataTableRowAdd = DataTableRowAddBase & ({
606
+ /** Fires when the Add button is clicked. */
607
+ onAddRow: () => void;
608
+ menu?: never;
609
+ } | {
610
+ onAddRow?: never;
611
+ /** Turns the Add button into a menu trigger. Replaces `onAddRow`. */
612
+ menu: DataTableRowAddMenu;
613
+ });
401
614
  export {};
@@ -10,6 +10,28 @@ import { MultiSelectMenuProps } from '../../../components/MultiSelectMenu/types'
10
10
  * Built-in display treatments. Each maps to default formatting and alignment.
11
11
  */
12
12
  export type ColumnType = "text" | "number" | "currency" | "percent" | "date" | "dateTime" | "time" | "boolean" | "markdown" | "html";
13
+ /**
14
+ * Sort Order labels for an `html` column. `asc` is the first choice and
15
+ * `desc` is the second.
16
+ */
17
+ export type HtmlSortOrder = {
18
+ /** Label for an ascending sort. */
19
+ asc: string;
20
+ /** Label for a descending sort. */
21
+ desc: string;
22
+ };
23
+ /**
24
+ * Options for an `html` column. Sort Order defaults to A–Z and Z–A.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * type: { type: "html", options: { sortOrder: { asc: "Low–High", desc: "High–Low" } } }
29
+ * ```
30
+ */
31
+ export type HtmlColumnOptions = {
32
+ /** Replaces the Sort Order labels. Other column types ignore this. */
33
+ sortOrder?: HtmlSortOrder;
34
+ };
13
35
  /**
14
36
  * Formatter options accepted by each built-in column type.
15
37
  */
@@ -23,7 +45,7 @@ export type ColumnTypeOptionsMap = {
23
45
  time: TimeFormatterOptions;
24
46
  boolean: BooleanFormatterOptions;
25
47
  markdown: undefined;
26
- html: undefined;
48
+ html: HtmlColumnOptions | undefined;
27
49
  };
28
50
  /**
29
51
  * Built-in type shorthand, or an object that customizes its formatter.
@@ -34,7 +34,10 @@ type CalendarCommonProps = Omit<ComponentPropsWithoutRef<"div">, "value" | "defa
34
34
  };
35
35
  /** Locale for month, weekday, and accessible date labels. Defaults to the browser locale. */
36
36
  locale?: Locale;
37
- /** Zone used to parse dates and determine today. Defaults to the browser time zone. */
37
+ /**
38
+ * Zone used to parse dates and determine today. Defaults to the browser time
39
+ * zone, or `UTC` when that zone is invalid.
40
+ */
38
41
  defaultTimeZone?: IanaZone;
39
42
  /** First column in the month grid. Defaults to `Sunday`. */
40
43
  startDay?: "Sunday" | "Monday";
@@ -0,0 +1,12 @@
1
+ import { DragCancelEvent, DragEndEvent, DragOverEvent, DragStartEvent } from '@dnd-kit/core';
2
+ import { default as announcements } from './announcements';
3
+ type Announce<Event> = (event: Event, defaultMessage: string) => string;
4
+ export type DndSortAnnouncementOverrides = {
5
+ onDragStart?: Announce<DragStartEvent>;
6
+ onDragOver?: Announce<DragOverEvent>;
7
+ onDragEnd?: Announce<DragEndEvent>;
8
+ onDragCancel?: Announce<DragCancelEvent>;
9
+ };
10
+ export declare const DndSortAnnouncementsContext: import('react').Context<DndSortAnnouncementOverrides | undefined>;
11
+ export declare function mergeAnnouncements(overrides: DndSortAnnouncementOverrides | undefined): typeof announcements;
12
+ export {};
@@ -1,14 +1,42 @@
1
1
  import { ButtonProps } from '../Button';
2
2
  import { IconProps } from '../Icon';
3
3
  import { DataTrackingId } from '../../types';
4
- import { MenuCommonProps } from './types';
4
+ import { MenuGroup } from './MenuGroup';
5
+ import { MenuCommonProps, MenuFooterButton } from './types';
5
6
  export type MenuProps = Omit<ButtonProps, "icon"> & MenuCommonProps & {
6
7
  /** Shown before the default trigger's label. */
7
8
  icon?: IconProps["svg"];
9
+ /**
10
+ * Adds a search field that filters `Menu.Item`s by label (and their
11
+ * `searchText`). Nested menus are not filtered. Focus starts in the field, and Enter chooses the first match.
12
+ */
13
+ searchable?: boolean;
14
+ /** Placeholder of the search field. Defaults to `Search`. */
15
+ searchPlaceholder?: string;
16
+ /**
17
+ * Controlled search string. Pair with `onSearchChange`, which also fires
18
+ * with `""` when the menu closes and clears the search.
19
+ */
20
+ searchValue?: string;
21
+ /** Called as the user types or clears the search field. */
22
+ onSearchChange?: (searchValue: string) => void;
23
+ /**
24
+ * Turns off the built-in filtering so you decide which items render for the
25
+ * current search, for example from a server. Pair with `searchValue` or
26
+ * `onSearchChange`. Defaults to `false`.
27
+ */
28
+ manualFilter?: boolean;
29
+ /**
30
+ * Buttons pinned below the items under a divider, e.g. "Add new". They stay
31
+ * visible while searching, close the menu on click, and are reached with
32
+ * Tab or with Arrow Down from the last item.
33
+ */
34
+ footerButtons?: MenuFooterButton[];
8
35
  } & DataTrackingId;
9
36
  /**
10
37
  * Triggered action menu with arrow-key navigation. Nest another `Menu` to
11
- * create a submenu; use a select component for form values.
38
+ * create a submenu, group items with `Menu.Group`, and opt into `searchable`
39
+ * or `footerButtons` for long menus. Use a select component for form values.
12
40
  *
13
41
  * @example
14
42
  * <Menu label="Actions">
@@ -20,9 +48,7 @@ export type MenuProps = Omit<ButtonProps, "icon"> & MenuCommonProps & {
20
48
  */
21
49
  export declare const Menu: ((props: MenuProps) => import("react/jsx-runtime").JSX.Element) & {
22
50
  /** Action item that closes the root menu after selection. */
23
- Item: import('react').ForwardRefExoticComponent<{
24
- icon?: IconProps["svg"];
25
- label: import('react').ReactNode;
26
- disabled?: boolean;
27
- } & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataTrackingId & import('react').ButtonHTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
51
+ Item: import('react').ForwardRefExoticComponent<import('./MenuItem').MenuItemProps & import('react').RefAttributes<HTMLButtonElement>>;
52
+ /** Headed section of items. */
53
+ Group: typeof MenuGroup;
28
54
  };
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ export type MenuGroupProps = {
3
+ /** Heading shown above the group's items. */
4
+ label: string;
5
+ children: ReactNode;
6
+ };
7
+ /**
8
+ * Headed section of `Menu.Item`s. While a `searchable` menu filters, the whole
9
+ * group, heading included, hides once none of its items match.
10
+ */
11
+ export declare function MenuGroup({ label, children }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare namespace MenuGroup {
13
+ var displayName: string;
14
+ }
@@ -1,23 +1,31 @@
1
- import { ButtonHTMLAttributes, ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { DataTrackingId } from '../../types';
3
3
  import { IconProps } from '../Icon';
4
- export type MenuItemProps = {
4
+ type MenuItemShared = {
5
5
  /** Shown before the item label. */
6
6
  icon?: IconProps["svg"];
7
7
  /** Visible item content and the source of its tracking label. */
8
8
  label: ReactNode;
9
9
  /** Prevents selection while retaining the item in keyboard navigation. */
10
10
  disabled?: boolean;
11
- } & ComponentPropsWithoutRef<"button"> & DataTrackingId;
11
+ /**
12
+ * Extra text a `searchable` menu matches besides the label. Needed to search
13
+ * an item whose `label` is not a string.
14
+ */
15
+ searchText?: string;
16
+ } & Omit<ComponentPropsWithoutRef<"button">, "role" | "aria-checked"> & DataTrackingId;
17
+ export type MenuItemProps = (MenuItemShared & {
18
+ /** `menuitemradio` exposes a checked view. Defaults to `menuitem`. */
19
+ role?: "menuitem";
20
+ "aria-checked"?: ComponentPropsWithoutRef<"button">["aria-checked"];
21
+ }) | (MenuItemShared & {
22
+ /** `menuitemradio` exposes a checked view. Defaults to `menuitem`. */
23
+ role: "menuitemradio";
24
+ "aria-checked": NonNullable<ComponentPropsWithoutRef<"button">["aria-checked"]>;
25
+ });
12
26
  /**
13
27
  * Action item within a `Menu`. Selecting it invokes `onClick` and closes
14
28
  * the root menu.
15
29
  */
16
- export declare const MenuItem: import('react').ForwardRefExoticComponent<{
17
- /** Shown before the item label. */
18
- icon?: IconProps["svg"];
19
- /** Visible item content and the source of its tracking label. */
20
- label: ReactNode;
21
- /** Prevents selection while retaining the item in keyboard navigation. */
22
- disabled?: boolean;
23
- } & Omit<import('react').DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataTrackingId & ButtonHTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
30
+ export declare const MenuItem: import('react').ForwardRefExoticComponent<MenuItemProps & import('react').RefAttributes<HTMLButtonElement>>;
31
+ export {};
@@ -1,4 +1,5 @@
1
1
  export * from './Menu';
2
2
  export type { MenuItemProps } from './MenuItem';
3
+ export type { MenuGroupProps } from './MenuGroup';
3
4
  export * from './types';
4
5
  export { Menu as default } from './Menu';
@@ -2,5 +2,8 @@ import { MenuProps } from '../Menu';
2
2
  export type MenuContextProps = {
3
3
  closeRootMenu: () => void;
4
4
  disableAutoHeight: MenuProps["disableAutoHeight"];
5
+ /** Current search text of a `searchable` root menu; empty otherwise. */
6
+ searchText: string;
7
+ searchable: boolean;
5
8
  };
6
9
  export declare const MenuContext: import('react').Context<MenuContextProps | null>;
@@ -1,9 +1,11 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  import { IconProps } from '../../Icon';
3
+ import { DataTrackingId } from '../../../types';
3
4
  import { MenuCommonProps } from '../types';
4
5
  export type MenuNestedProps = ComponentPropsWithoutRef<"button"> & MenuCommonProps & {
5
6
  /** Shown before the default submenu trigger's label. */
6
7
  icon?: IconProps["svg"];
7
- };
8
+ focusOnPointerMove?: boolean;
9
+ } & DataTrackingId;
8
10
  /** Implements nested `Menu` instances as horizontally positioned submenus. */
9
11
  export declare const MenuNested: (props: MenuNestedProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,8 @@
1
1
  export declare const getMenuFocusableItemsSelector: (scrollerId: string) => string;
2
+ /**
3
+ * Whether any of `text` matches `search` under match-sorter's default rules,
4
+ * the same matching the select components use. An empty search matches
5
+ * everything without ranking, since every `Menu.Item` of every menu asks on
6
+ * each render.
7
+ */
8
+ export declare const matchesMenuSearch: (search: string, ...text: string[]) => boolean;
@@ -1,5 +1,6 @@
1
1
  import { Placement, UseFloatingOptions } from '@floating-ui/react';
2
2
  import { AriaAttributes, FocusEvent, KeyboardEvent, MouseEvent, ReactElement, Ref } from 'react';
3
+ import { IconProps } from '../Icon';
3
4
  /**
4
5
  * Props supplied to a custom trigger. Spread them onto the returned element;
5
6
  * nested trigger semantics participate in the parent's keyboard navigation.
@@ -32,8 +33,10 @@ export type MenuReturnProps = {
32
33
  onFocus?: (e: FocusEvent<HTMLElement>) => void;
33
34
  /** Nested only; returns the next rendered `tabIndex` to `-1`. */
34
35
  onBlur?: (e: FocusEvent<HTMLElement>) => void;
35
- /** Focuses nested triggers on pointer entry. */
36
+ /** Nested only; focuses the trigger on pointer entry. Omitted in `searchable` menus. */
36
37
  onMouseEnter?: (e: MouseEvent<HTMLElement>) => void;
38
+ /** Nested only; focuses the trigger on pointer movement. Replaces `onMouseEnter` in `searchable` menus. */
39
+ onMouseMove?: (e: MouseEvent<HTMLElement>) => void;
37
40
  /** Attach to the trigger element for positioning and focus restoration. */
38
41
  ref?: Ref<HTMLButtonElement>;
39
42
  };
@@ -77,3 +80,13 @@ export type MenuCommonProps = {
77
80
  /** Caps root-menu content height after viewport sizing. */
78
81
  maxHeight?: number | string;
79
82
  };
83
+ /** A button in a root `Menu`'s `footerButtons`. */
84
+ export type MenuFooterButton = {
85
+ /** Button text. Static; it does not react to the search field. */
86
+ label: string;
87
+ /** Called after the menu closes. */
88
+ onClick: () => void;
89
+ /** Shown before the label. */
90
+ icon?: IconProps["svg"];
91
+ disabled?: boolean;
92
+ };
@@ -0,0 +1,6 @@
1
+ import { IanaZone } from '../../types';
2
+ /**
3
+ * Browser IANA zone when Luxon accepts it; otherwise `UTC`. Headless Chromium
4
+ * reports `Etc/Unknown` when TZ is unset, which is not a valid Luxon zone.
5
+ */
6
+ export declare function getBrowserTimeZone(): IanaZone;
@@ -2,6 +2,7 @@ export * from './childrenToString';
2
2
  export * from './inlineMarkdown';
3
3
  export * from './stripInlineMarkdown';
4
4
  export * from './getActiveElement';
5
+ export * from './getBrowserTimeZone';
5
6
  export * from './getInitial';
6
7
  export * from './getKeyboardFocusableElements';
7
8
  export * from './kebabize';
@@ -3,12 +3,12 @@ import { S as Spinner } from './Spinner-B7tTWcP6.js';
3
3
  import { c as cx } from './index-De1g9FRV.js';
4
4
  import { useState, useRef, useCallback, useEffect, useMemo, forwardRef, useId, useImperativeHandle, useLayoutEffect } from 'react';
5
5
  import { C as COMMON_PART, A as ANV_PART_ATTR } from './anvParts-DFVq7-Cm.js';
6
- import { T as Text } from './Text-CxB0zvG5.js';
6
+ import { T as Text } from './Text-QNJBWFFq.js';
7
7
  import { D as Divider } from './Divider-C7fp5Xb6.js';
8
8
  import { u as useMergeRefs } from './useMergeRefs-Dfmtq9cI.js';
9
9
  import { I as Icon } from './Icon-B5zwN7GD.js';
10
10
  import { S as SvgCheck } from './check-Cf67OWrZ.js';
11
- import { i as isThenable, c as OptionRow, d as OptionRowSideContent, e as OptionCheckbox, f as OptionContentArea, b as useAdaptiveView } from './useInvalidateOnOptionsChange-Db2AvMj4.js';
11
+ import { i as isThenable, c as OptionRow, d as OptionRowSideContent, e as OptionCheckbox, f as OptionContentArea, b as useAdaptiveView } from './useInvalidateOnOptionsChange-CHtQ5odJ.js';
12
12
  import { B as Button } from './Button-B_E6ybA-.js';
13
13
  import { S as SrOnly } from './SrOnly-pnf8ajnh.js';
14
14
  import { d as defaultRangeExtractor, u as useVirtualizer } from './index-DXeGMe23.js';
@@ -1427,4 +1427,4 @@ const sortByGroup = (options, groupSorter) => {
1427
1427
  };
1428
1428
 
1429
1429
  export { AddNewItemButton as A, OptionsPanel as O, VirtualizedOptionsPanel as V, useProcessedOptions as a, buildSelectItems as b, sortByGroup as c, defaultSyncFilter as d, toSelectItem as e, shouldShowAddNewItem as s, toSyncFilterFn as t, useSelectOrchestration as u };
1430
- //# sourceMappingURL=syncFilterUtils-MMjNtcOP.js.map
1430
+ //# sourceMappingURL=syncFilterUtils-DHvuD1u_.js.map