@cloudscape-design/components 3.0.1006 → 3.0.1008

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 (1146) hide show
  1. package/alert/actions-wrapper/index.d.ts +14 -22
  2. package/alert/analytics-metadata/interfaces.d.ts +15 -14
  3. package/alert/index.d.ts +2 -1
  4. package/alert/interfaces.d.ts +87 -86
  5. package/alert/internal.d.ts +4 -3
  6. package/anchor-navigation/anchor-item/index.d.ts +8 -13
  7. package/anchor-navigation/index.d.ts +2 -4
  8. package/anchor-navigation/interfaces.d.ts +56 -55
  9. package/anchor-navigation/internal.d.ts +2 -10
  10. package/anchor-navigation/use-scroll-spy.d.ts +6 -9
  11. package/anchor-navigation/utils.d.ts +4 -3
  12. package/annotation-context/annotation/annotation-icon.d.ts +4 -5
  13. package/annotation-context/annotation/annotation-popover.d.ts +19 -35
  14. package/annotation-context/annotation/annotation-trigger.d.ts +7 -6
  15. package/annotation-context/annotation/closed-annotation.d.ts +9 -15
  16. package/annotation-context/annotation/open-annotation.d.ts +18 -33
  17. package/annotation-context/context.d.ts +9 -8
  18. package/annotation-context/index.d.ts +2 -9
  19. package/annotation-context/interfaces.d.ts +68 -67
  20. package/annotation-context/utils.d.ts +10 -9
  21. package/app-layout/classic.d.ts +15 -14
  22. package/app-layout/classic.js +1 -1
  23. package/app-layout/classic.js.map +1 -1
  24. package/app-layout/content-wrapper/index.d.ts +11 -10
  25. package/app-layout/defaults.d.ts +5 -4
  26. package/app-layout/drawer/drawers-helpers.d.ts +7 -6
  27. package/app-layout/drawer/index.d.ts +2 -10
  28. package/app-layout/drawer/interfaces.d.ts +51 -50
  29. package/app-layout/drawer/overflow-menu.d.ts +9 -14
  30. package/app-layout/drawer/resizable-drawer.d.ts +2 -9
  31. package/app-layout/index.d.ts +2 -1
  32. package/app-layout/interfaces.d.ts +296 -294
  33. package/app-layout/internal.d.ts +15 -14
  34. package/app-layout/mobile-toolbar/index.d.ts +20 -34
  35. package/app-layout/notifications/index.d.ts +8 -7
  36. package/app-layout/runtime-drawer/index.d.ts +6 -5
  37. package/app-layout/runtime-drawer/use-runtime-drawer-context.d.ts +4 -5
  38. package/app-layout/split-panel/constants.d.ts +2 -1
  39. package/app-layout/split-panel/drawer.d.ts +5 -7
  40. package/app-layout/split-panel/index.d.ts +2 -1
  41. package/app-layout/split-panel/provider.d.ts +7 -14
  42. package/app-layout/split-panel/split-panel-forced-position.d.ts +5 -7
  43. package/app-layout/toggles/index.d.ts +22 -21
  44. package/app-layout/toggles/interfaces.d.ts +12 -11
  45. package/app-layout/utils/feature-flags.d.ts +2 -1
  46. package/app-layout/utils/interfaces.d.ts +6 -5
  47. package/app-layout/utils/sticky-offsets.d.ts +3 -2
  48. package/app-layout/utils/use-app-layout-placement.d.ts +7 -6
  49. package/app-layout/utils/use-drawers.d.ts +35 -48
  50. package/app-layout/utils/use-drawers.js +2 -2
  51. package/app-layout/utils/use-drawers.js.map +1 -1
  52. package/app-layout/utils/use-focus-control.d.ts +16 -15
  53. package/app-layout/utils/use-keyboard-events.d.ts +5 -8
  54. package/app-layout/utils/use-observed-element.d.ts +2 -1
  55. package/app-layout/utils/use-pointer-events.d.ts +2 -6
  56. package/app-layout/utils/use-resize.d.ts +15 -22
  57. package/app-layout/utils/use-split-panel-focus-control.d.ts +10 -9
  58. package/app-layout/utils/visibility-context.d.ts +2 -1
  59. package/app-layout/visual-refresh/background.d.ts +2 -1
  60. package/app-layout/visual-refresh/breadcrumbs.d.ts +2 -1
  61. package/app-layout/visual-refresh/context.d.ts +56 -55
  62. package/app-layout/visual-refresh/context.js +1 -1
  63. package/app-layout/visual-refresh/context.js.map +1 -1
  64. package/app-layout/visual-refresh/drawers.d.ts +2 -1
  65. package/app-layout/visual-refresh/header.d.ts +2 -1
  66. package/app-layout/visual-refresh/index.d.ts +15 -14
  67. package/app-layout/visual-refresh/layout.d.ts +4 -5
  68. package/app-layout/visual-refresh/main.d.ts +2 -1
  69. package/app-layout/visual-refresh/mobile-toolbar.d.ts +2 -1
  70. package/app-layout/visual-refresh/navigation.d.ts +2 -1
  71. package/app-layout/visual-refresh/notifications.d.ts +2 -1
  72. package/app-layout/visual-refresh/split-panel.d.ts +5 -6
  73. package/app-layout/visual-refresh/tools.d.ts +4 -5
  74. package/app-layout/visual-refresh/trigger-button.d.ts +20 -19
  75. package/app-layout/visual-refresh/use-background-overlap.d.ts +8 -11
  76. package/app-layout/visual-refresh-toolbar/compute-layout.d.ts +44 -67
  77. package/app-layout/visual-refresh-toolbar/compute-layout.js +3 -3
  78. package/app-layout/visual-refresh-toolbar/compute-layout.js.map +1 -1
  79. package/app-layout/visual-refresh-toolbar/contexts.d.ts +3 -2
  80. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.d.ts +6 -9
  81. package/app-layout/visual-refresh-toolbar/drawer/global-drawers.d.ts +4 -5
  82. package/app-layout/visual-refresh-toolbar/drawer/index.d.ts +2 -1
  83. package/app-layout/visual-refresh-toolbar/drawer/local-drawer.d.ts +4 -5
  84. package/app-layout/visual-refresh-toolbar/drawer/use-resize.d.ts +13 -19
  85. package/app-layout/visual-refresh-toolbar/index.d.ts +2 -1
  86. package/app-layout/visual-refresh-toolbar/interfaces.d.ts +53 -52
  87. package/app-layout/visual-refresh-toolbar/internal.d.ts +2 -1
  88. package/app-layout/visual-refresh-toolbar/multi-layout.d.ts +27 -26
  89. package/app-layout/visual-refresh-toolbar/navigation/index.d.ts +4 -5
  90. package/app-layout/visual-refresh-toolbar/notifications/index.d.ts +5 -7
  91. package/app-layout/visual-refresh-toolbar/skeleton/breadcrumbs/index.d.ts +5 -7
  92. package/app-layout/visual-refresh-toolbar/skeleton/index.d.ts +13 -12
  93. package/app-layout/visual-refresh-toolbar/skeleton/slot-skeletons.d.ts +2 -1
  94. package/app-layout/visual-refresh-toolbar/skeleton/slot-wrappers.d.ts +8 -7
  95. package/app-layout/visual-refresh-toolbar/split-panel/index.d.ts +10 -17
  96. package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts +25 -42
  97. package/app-layout/visual-refresh-toolbar/toolbar/index.d.ts +25 -27
  98. package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts +48 -47
  99. package/app-layout-toolbar/analytics-metadata/interfaces.d.ts +12 -11
  100. package/app-layout-toolbar/index.d.ts +2 -1
  101. package/app-layout-toolbar/interfaces.d.ts +48 -46
  102. package/area-chart/async-store/index.d.ts +12 -11
  103. package/area-chart/chart-container.d.ts +8 -34
  104. package/area-chart/elements/area-chart-filter.d.ts +7 -11
  105. package/area-chart/elements/area-chart-legend.d.ts +7 -11
  106. package/area-chart/elements/area-series.d.ts +5 -8
  107. package/area-chart/elements/chart-popover.d.ts +9 -15
  108. package/area-chart/elements/data-series.d.ts +4 -5
  109. package/area-chart/elements/highlighted-point.d.ts +4 -3
  110. package/area-chart/elements/threshold-series.d.ts +6 -10
  111. package/area-chart/elements/use-highlight-details.d.ts +17 -22
  112. package/area-chart/elements/vertical-marker.d.ts +4 -5
  113. package/area-chart/index.d.ts +3 -10
  114. package/area-chart/interfaces.d.ts +52 -51
  115. package/area-chart/internal.d.ts +3 -38
  116. package/area-chart/model/compute-chart-props.d.ts +22 -30
  117. package/area-chart/model/create-series-decorator.d.ts +2 -1
  118. package/area-chart/model/index.d.ts +73 -72
  119. package/area-chart/model/interactions-store.d.ts +16 -15
  120. package/area-chart/model/use-chart-model.d.ts +17 -32
  121. package/area-chart/model/use-filter-props.d.ts +2 -1
  122. package/area-chart/model/use-highlight-props.d.ts +2 -1
  123. package/area-chart/model/utils.d.ts +5 -4
  124. package/attribute-editor/additional-info.d.ts +5 -7
  125. package/attribute-editor/grid-defaults.d.ts +2 -1
  126. package/attribute-editor/index.d.ts +2 -1
  127. package/attribute-editor/interfaces.d.ts +149 -148
  128. package/attribute-editor/internal.d.ts +2 -1
  129. package/attribute-editor/row.d.ts +14 -13
  130. package/attribute-editor/utils.d.ts +4 -3
  131. package/autosuggest/analytics-metadata/interfaces.d.ts +7 -6
  132. package/autosuggest/autosuggest-option.d.ts +13 -12
  133. package/autosuggest/index.d.ts +2 -1
  134. package/autosuggest/interfaces.d.ts +119 -118
  135. package/autosuggest/internal.d.ts +4 -2
  136. package/autosuggest/load-more-controller.d.ts +10 -13
  137. package/autosuggest/options-controller.d.ts +17 -24
  138. package/autosuggest/options-list.d.ts +14 -28
  139. package/autosuggest/plain-list.d.ts +15 -23
  140. package/autosuggest/utils/utils.d.ts +2 -1
  141. package/autosuggest/virtual-list.d.ts +3 -11
  142. package/badge/index.d.ts +2 -5
  143. package/badge/interfaces.d.ts +10 -9
  144. package/bar-chart/index.d.ts +3 -14
  145. package/bar-chart/interfaces.d.ts +28 -27
  146. package/box/index.d.ts +2 -6
  147. package/box/interfaces.d.ts +131 -130
  148. package/box/internal.d.ts +3 -16
  149. package/breadcrumb-group/all-items-dropdown.d.ts +10 -13
  150. package/breadcrumb-group/analytics-metadata/interfaces.d.ts +18 -17
  151. package/breadcrumb-group/implementation.d.ts +3 -11
  152. package/breadcrumb-group/index.d.ts +2 -4
  153. package/breadcrumb-group/interfaces.d.ts +59 -56
  154. package/breadcrumb-group/internal.d.ts +2 -1
  155. package/breadcrumb-group/item/funnel.d.ts +7 -6
  156. package/breadcrumb-group/item/item.d.ts +2 -9
  157. package/breadcrumb-group/skeleton.d.ts +3 -2
  158. package/breadcrumb-group/utils.d.ts +6 -5
  159. package/button/analytics-metadata/interfaces.d.ts +13 -12
  160. package/button/icon-helper.d.ts +12 -11
  161. package/button/index.d.ts +2 -1
  162. package/button/index.js +13 -11
  163. package/button/interfaces.d.ts +216 -214
  164. package/button/internal.d.ts +20 -19
  165. package/button-dropdown/analytics-metadata/interfaces.d.ts +27 -26
  166. package/button-dropdown/category-elements/category-element.d.ts +3 -15
  167. package/button-dropdown/category-elements/expandable-category-element.d.ts +3 -16
  168. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +3 -15
  169. package/button-dropdown/index.d.ts +2 -1
  170. package/button-dropdown/interfaces.d.ts +257 -256
  171. package/button-dropdown/internal.d.ts +2 -1
  172. package/button-dropdown/item-element/index.d.ts +3 -15
  173. package/button-dropdown/items-list.d.ts +2 -19
  174. package/button-dropdown/mobile-expandable-group/mobile-expandable-group.d.ts +15 -18
  175. package/button-dropdown/tooltip.d.ts +7 -11
  176. package/button-dropdown/utils/create-items-tree.d.ts +6 -5
  177. package/button-dropdown/utils/menu-item.d.ts +6 -5
  178. package/button-dropdown/utils/move-highlight.d.ts +12 -17
  179. package/button-dropdown/utils/use-button-dropdown.d.ts +18 -25
  180. package/button-dropdown/utils/use-highlighted-menu.d.ts +11 -14
  181. package/button-dropdown/utils/utils.d.ts +2 -1
  182. package/button-group/analytics-metadata/interfaces.d.ts +4 -3
  183. package/button-group/file-input-item.d.ts +6 -5
  184. package/button-group/icon-button-item.d.ts +7 -6
  185. package/button-group/icon-toggle-button-item.d.ts +7 -6
  186. package/button-group/icon-toggle-button-item.js +1 -1
  187. package/button-group/icon-toggle-button-item.js.map +1 -1
  188. package/button-group/index.d.ts +2 -1
  189. package/button-group/interfaces.d.ts +166 -164
  190. package/button-group/internal.d.ts +2 -1
  191. package/button-group/item-element.d.ts +15 -14
  192. package/button-group/menu-dropdown-item.d.ts +8 -7
  193. package/calendar/grid/calendar-grid-header.d.ts +5 -7
  194. package/calendar/grid/index.d.ts +18 -32
  195. package/calendar/grid/use-calendar-grid-keyboard-navigation.d.ts +11 -19
  196. package/calendar/grid/use-calendar-grid-rows.d.ts +7 -11
  197. package/calendar/header/header-button.d.ts +6 -11
  198. package/calendar/header/index.d.ts +8 -13
  199. package/calendar/index.d.ts +2 -6
  200. package/calendar/interfaces.d.ts +98 -97
  201. package/calendar/internal.d.ts +2 -18
  202. package/calendar/use-calendar-labels.d.ts +15 -21
  203. package/calendar/utils/intl.d.ts +2 -1
  204. package/calendar/utils/navigation-day.d.ts +2 -1
  205. package/calendar/utils/navigation-month.d.ts +2 -1
  206. package/cards/cards-layout-helper.d.ts +2 -1
  207. package/cards/index.d.ts +2 -1
  208. package/cards/interfaces.d.ts +229 -228
  209. package/checkbox/analytics-metadata/interfaces.d.ts +12 -11
  210. package/checkbox/base-checkbox.d.ts +52 -51
  211. package/checkbox/index.d.ts +2 -1
  212. package/checkbox/interfaces.d.ts +31 -30
  213. package/checkbox/internal.d.ts +5 -4
  214. package/code-editor/ace-modes.d.ts +330 -329
  215. package/code-editor/ace-themes.d.ts +82 -81
  216. package/code-editor/error-screen.d.ts +6 -9
  217. package/code-editor/index.d.ts +2 -1
  218. package/code-editor/interfaces.d.ts +147 -146
  219. package/code-editor/listeners.d.ts +2 -1
  220. package/code-editor/loading-screen.d.ts +3 -2
  221. package/code-editor/pane.d.ts +15 -27
  222. package/code-editor/preferences-modal.d.ts +21 -20
  223. package/code-editor/resizable-box/index.d.ts +8 -14
  224. package/code-editor/setup-editor.d.ts +2 -1
  225. package/code-editor/status-bar.d.ts +20 -36
  226. package/code-editor/tab-button.d.ts +17 -16
  227. package/code-editor/use-editor.d.ts +13 -20
  228. package/code-editor/util.d.ts +7 -9
  229. package/collection-preferences/analytics-metadata/interfaces.d.ts +34 -33
  230. package/collection-preferences/analytics-metadata/utils.d.ts +4 -3
  231. package/collection-preferences/content-display/content-display-option.d.ts +5 -4
  232. package/collection-preferences/content-display/index.d.ts +5 -18
  233. package/collection-preferences/content-display/utils.d.ts +6 -8
  234. package/collection-preferences/index.d.ts +2 -22
  235. package/collection-preferences/interfaces.d.ts +299 -298
  236. package/collection-preferences/utils.d.ts +30 -70
  237. package/collection-preferences/visible-content.d.ts +5 -9
  238. package/column-layout/flexible-column-layout/index.d.ts +4 -10
  239. package/column-layout/grid-column-layout.d.ts +5 -12
  240. package/column-layout/index.d.ts +2 -7
  241. package/column-layout/interfaces.d.ts +39 -38
  242. package/column-layout/internal.d.ts +2 -12
  243. package/column-layout/util.d.ts +2 -1
  244. package/container/analytics-metadata/interfaces.d.ts +4 -3
  245. package/container/index.d.ts +2 -7
  246. package/container/index.js +30 -13
  247. package/container/interfaces.d.ts +88 -87
  248. package/container/internal.d.ts +20 -41
  249. package/container/use-sticky-header.d.ts +19 -24
  250. package/container/use-sticky-header.js +1 -1
  251. package/container/use-sticky-header.js.map +1 -1
  252. package/content-layout/index.d.ts +2 -1
  253. package/content-layout/interfaces.d.ts +69 -68
  254. package/content-layout/internal.d.ts +3 -15
  255. package/contexts/form-field.d.ts +2 -1
  256. package/copy-to-clipboard/index.d.ts +2 -5
  257. package/copy-to-clipboard/interfaces.d.ts +55 -54
  258. package/copy-to-clipboard/internal.d.ts +5 -16
  259. package/date-input/index.d.ts +2 -1
  260. package/date-input/interfaces.d.ts +7 -6
  261. package/date-input/internal.d.ts +3 -2
  262. package/date-input/utils.d.ts +3 -5
  263. package/date-picker/index.d.ts +2 -1
  264. package/date-picker/interfaces.d.ts +80 -79
  265. package/date-picker/utils.d.ts +13 -23
  266. package/date-range-picker/calendar/grids/grid-cell.d.ts +3 -2
  267. package/date-range-picker/calendar/grids/grid.d.ts +2 -22
  268. package/date-range-picker/calendar/grids/index.d.ts +2 -18
  269. package/date-range-picker/calendar/grids/interfaces.d.ts +38 -37
  270. package/date-range-picker/calendar/grids/intl.d.ts +8 -13
  271. package/date-range-picker/calendar/header/header-button.d.ts +6 -11
  272. package/date-range-picker/calendar/header/index.d.ts +10 -18
  273. package/date-range-picker/calendar/index.d.ts +12 -23
  274. package/date-range-picker/calendar/range-inputs.d.ts +14 -26
  275. package/date-range-picker/calendar/utils.d.ts +2 -1
  276. package/date-range-picker/dropdown.d.ts +8 -31
  277. package/date-range-picker/index.d.ts +2 -1
  278. package/date-range-picker/index.js +1 -1
  279. package/date-range-picker/index.js.map +1 -1
  280. package/date-range-picker/interfaces.d.ts +374 -373
  281. package/date-range-picker/mode-switcher.d.ts +5 -8
  282. package/date-range-picker/relative-range/index.d.ts +10 -18
  283. package/date-range-picker/time-offset.d.ts +10 -9
  284. package/date-range-picker/utils.d.ts +10 -13
  285. package/drawer/implementation.d.ts +3 -11
  286. package/drawer/index.d.ts +2 -1
  287. package/drawer/interfaces.d.ts +34 -33
  288. package/drawer/internal.d.ts +2 -1
  289. package/expandable-section/analytics-metadata/interfaces.d.ts +16 -15
  290. package/expandable-section/expandable-section-container.d.ts +10 -19
  291. package/expandable-section/expandable-section-header.d.ts +23 -41
  292. package/expandable-section/index.d.ts +2 -4
  293. package/expandable-section/interfaces.d.ts +88 -87
  294. package/expandable-section/internal.d.ts +4 -21
  295. package/expandable-section/utils.d.ts +2 -1
  296. package/file-dropzone/index.d.ts +2 -1
  297. package/file-dropzone/interfaces.d.ts +14 -13
  298. package/file-dropzone/internal.d.ts +2 -6
  299. package/file-dropzone/use-files-dragging.d.ts +3 -2
  300. package/file-input/analytics-metadata/interfaces.d.ts +8 -7
  301. package/file-input/index.d.ts +2 -1
  302. package/file-input/interfaces.d.ts +47 -46
  303. package/file-input/internal.d.ts +5 -4
  304. package/file-token-group/default-formatters.d.ts +2 -1
  305. package/file-token-group/file-token.d.ts +25 -39
  306. package/file-token-group/index.d.ts +3 -9
  307. package/file-token-group/interfaces.d.ts +80 -79
  308. package/file-token-group/internal.d.ts +3 -14
  309. package/file-token-group/thumbnail.d.ts +4 -5
  310. package/file-upload/index.d.ts +2 -1
  311. package/file-upload/interfaces.d.ts +102 -101
  312. package/file-upload/internal.d.ts +2 -1
  313. package/flashbar/analytics-metadata/interfaces.d.ts +31 -30
  314. package/flashbar/analytics-metadata/utils.d.ts +3 -2
  315. package/flashbar/collapsible-flashbar.d.ts +9 -12
  316. package/flashbar/common.d.ts +15 -20
  317. package/flashbar/constant.d.ts +2 -1
  318. package/flashbar/flash.d.ts +6 -5
  319. package/flashbar/index.d.ts +2 -1
  320. package/flashbar/index.js +11 -13
  321. package/flashbar/interfaces.d.ts +175 -154
  322. package/flashbar/interfaces.d.ts.map +1 -1
  323. package/flashbar/interfaces.js.map +1 -1
  324. package/flashbar/non-collapsible-flashbar.d.ts +2 -6
  325. package/flashbar/utils.d.ts +7 -6
  326. package/form/analytics-metadata/interfaces.d.ts +8 -7
  327. package/form/index.d.ts +2 -4
  328. package/form/interfaces.d.ts +49 -48
  329. package/form/internal.d.ts +5 -15
  330. package/form-field/analytics-metadata/interfaces.d.ts +4 -3
  331. package/form-field/index.d.ts +2 -4
  332. package/form-field/interfaces.d.ts +92 -91
  333. package/form-field/internal.d.ts +15 -44
  334. package/form-field/util.d.ts +9 -13
  335. package/grid/index.d.ts +2 -6
  336. package/grid/interfaces.d.ts +48 -47
  337. package/grid/internal.d.ts +11 -10
  338. package/header/analytics/use-table-integration.d.ts +2 -1
  339. package/header/index.d.ts +2 -4
  340. package/header/interfaces.d.ts +41 -40
  341. package/header/internal.d.ts +9 -24
  342. package/help-panel/implementation.d.ts +3 -10
  343. package/help-panel/index.d.ts +2 -1
  344. package/help-panel/interfaces.d.ts +28 -27
  345. package/help-panel/internal.d.ts +2 -1
  346. package/hotspot/index.d.ts +2 -7
  347. package/hotspot/interfaces.d.ts +32 -31
  348. package/i18n/context.d.ts +10 -9
  349. package/i18n/dynamic.d.ts +2 -1
  350. package/i18n/get-matchable-locales.d.ts +2 -1
  351. package/i18n/index.d.ts +2 -1
  352. package/i18n/messages/all.all.d.ts +1 -1
  353. package/i18n/messages/all.ar.d.ts +1 -1
  354. package/i18n/messages/all.de.d.ts +1 -1
  355. package/i18n/messages/all.en-GB.d.ts +1 -1
  356. package/i18n/messages/all.en.d.ts +1 -1
  357. package/i18n/messages/all.es.d.ts +1 -1
  358. package/i18n/messages/all.fr.d.ts +1 -1
  359. package/i18n/messages/all.id.d.ts +1 -1
  360. package/i18n/messages/all.it.d.ts +1 -1
  361. package/i18n/messages/all.ja.d.ts +1 -1
  362. package/i18n/messages/all.ko.d.ts +1 -1
  363. package/i18n/messages/all.pt-BR.d.ts +1 -1
  364. package/i18n/messages/all.th.d.ts +1 -1
  365. package/i18n/messages/all.tr.d.ts +1 -1
  366. package/i18n/messages/all.zh-CN.d.ts +1 -1
  367. package/i18n/messages/all.zh-TW.d.ts +1 -1
  368. package/i18n/messages-types.d.ts +569 -568
  369. package/i18n/provider.d.ts +13 -16
  370. package/i18n/testing.d.ts +6 -9
  371. package/icon/generated/icons.d.ts +129 -128
  372. package/icon/index.d.ts +2 -5
  373. package/icon/interfaces.d.ts +63 -62
  374. package/icon/internal.d.ts +4 -14
  375. package/index.d.ts +2 -1
  376. package/input/analytics-metadata/interfaces.d.ts +6 -5
  377. package/input/index.d.ts +2 -1
  378. package/input/interfaces.d.ts +137 -136
  379. package/input/internal.d.ts +15 -14
  380. package/input/utils.d.ts +2 -1
  381. package/interfaces.d.ts +2 -1
  382. package/internal/analytics/components/analytics-funnel.d.ts +23 -26
  383. package/internal/analytics/context/analytics-context.d.ts +52 -51
  384. package/internal/analytics/hooks/use-funnel.d.ts +14 -13
  385. package/internal/analytics/index.d.ts +2 -1
  386. package/internal/analytics/interfaces.d.ts +99 -98
  387. package/internal/analytics/selectors.d.ts +2 -1
  388. package/internal/analytics/utils/parse-count-text.d.ts +2 -1
  389. package/internal/animate.d.ts +10 -14
  390. package/internal/base-component/index.d.ts +16 -15
  391. package/internal/base-component/styles.scoped.css +1 -1
  392. package/internal/breakpoints.d.ts +2 -1
  393. package/internal/components/abstract-switch/index.d.ts +18 -36
  394. package/internal/components/autosuggest-input/index.d.ts +20 -19
  395. package/internal/components/button-trigger/analytics-metadata/interfaces.d.ts +10 -9
  396. package/internal/components/button-trigger/index.d.ts +28 -27
  397. package/internal/components/cartesian-chart/axis-label.d.ts +5 -8
  398. package/internal/components/cartesian-chart/block-end-labels.d.ts +20 -35
  399. package/internal/components/cartesian-chart/chart-container.d.ts +10 -9
  400. package/internal/components/cartesian-chart/constants.d.ts +2 -1
  401. package/internal/components/cartesian-chart/emphasized-baseline.d.ts +6 -10
  402. package/internal/components/cartesian-chart/highlighted-point.d.ts +11 -10
  403. package/internal/components/cartesian-chart/inline-start-labels.d.ts +11 -20
  404. package/internal/components/cartesian-chart/interfaces.d.ts +197 -196
  405. package/internal/components/cartesian-chart/label-utils.d.ts +12 -16
  406. package/internal/components/cartesian-chart/labels-measure.d.ts +7 -12
  407. package/internal/components/cartesian-chart/scales.d.ts +32 -31
  408. package/internal/components/cartesian-chart/ticks.d.ts +2 -1
  409. package/internal/components/cartesian-chart/vertical-grid-lines.d.ts +6 -9
  410. package/internal/components/cartesian-chart/vertical-marker.d.ts +10 -9
  411. package/internal/components/chart-filter/index.d.ts +12 -17
  412. package/internal/components/chart-legend/index.d.ts +11 -17
  413. package/internal/components/chart-plot/application-controller.d.ts +8 -7
  414. package/internal/components/chart-plot/focus-outline.d.ts +6 -9
  415. package/internal/components/chart-plot/index.d.ts +31 -30
  416. package/internal/components/chart-plot/interfaces.d.ts +4 -3
  417. package/internal/components/chart-popover/index.d.ts +31 -30
  418. package/internal/components/chart-series-details/index.d.ts +14 -13
  419. package/internal/components/chart-series-details/series-details-text.d.ts +2 -1
  420. package/internal/components/chart-series-marker/index.d.ts +4 -6
  421. package/internal/components/chart-status-container/index.d.ts +20 -34
  422. package/internal/components/chart-wrapper/index.d.ts +13 -12
  423. package/internal/components/checkbox-icon/index.d.ts +7 -12
  424. package/internal/components/drag-handle/button.d.ts +2 -1
  425. package/internal/components/drag-handle/hooks/interfaces.d.ts +37 -36
  426. package/internal/components/drag-handle/hooks/use-drag-handle-interaction-state.d.ts +11 -10
  427. package/internal/components/drag-handle/index.d.ts +2 -1
  428. package/internal/components/drag-handle/interfaces.d.ts +35 -34
  429. package/internal/components/drag-handle/resize-icon.d.ts +4 -5
  430. package/internal/components/drag-handle-wrapper/direction-button.d.ts +7 -11
  431. package/internal/components/drag-handle-wrapper/index.d.ts +2 -10
  432. package/internal/components/drag-handle-wrapper/interfaces.d.ts +10 -9
  433. package/internal/components/drag-handle-wrapper/portal-overlay.d.ts +6 -9
  434. package/internal/components/dropdown/context.d.ts +6 -8
  435. package/internal/components/dropdown/dropdown-fit-handler.d.ts +27 -44
  436. package/internal/components/dropdown/dropdown-position.d.ts +13 -17
  437. package/internal/components/dropdown/index.d.ts +3 -29
  438. package/internal/components/dropdown/interfaces.d.ts +147 -146
  439. package/internal/components/dropdown-footer/index.d.ts +5 -4
  440. package/internal/components/dropdown-status/index.d.ts +25 -40
  441. package/internal/components/dropdown-status/interfaces.d.ts +39 -38
  442. package/internal/components/focus-lock/index.d.ts +11 -10
  443. package/internal/components/focus-lock/utils.d.ts +2 -1
  444. package/internal/components/interfaces.d.ts +4 -3
  445. package/internal/components/masked-input/index.d.ts +2 -1
  446. package/internal/components/masked-input/interfaces.d.ts +21 -20
  447. package/internal/components/masked-input/keyboard-handler.d.ts +4 -3
  448. package/internal/components/masked-input/use-mask.d.ts +17 -26
  449. package/internal/components/masked-input/utils/keys.d.ts +2 -1
  450. package/internal/components/masked-input/utils/mask-format.d.ts +39 -42
  451. package/internal/components/masked-input/utils/strings.d.ts +2 -1
  452. package/internal/components/menu-dropdown/index.d.ts +3 -11
  453. package/internal/components/menu-dropdown/interfaces.d.ts +21 -20
  454. package/internal/components/option/highlight-match.d.ts +5 -7
  455. package/internal/components/option/index.d.ts +3 -11
  456. package/internal/components/option/interfaces.d.ts +30 -29
  457. package/internal/components/option/option-announcer.d.ts +6 -9
  458. package/internal/components/option/option-parts.d.ts +29 -55
  459. package/internal/components/option/utils/filter-options.d.ts +2 -1
  460. package/internal/components/option/utils/flatten-options.d.ts +4 -3
  461. package/internal/components/option/utils/prepare-options.d.ts +7 -6
  462. package/internal/components/options-list/index.d.ts +28 -27
  463. package/internal/components/options-list/utils/test-indexes.d.ts +6 -5
  464. package/internal/components/options-list/utils/use-highlight-option.d.ts +18 -20
  465. package/internal/components/options-list/utils/use-ids.d.ts +2 -1
  466. package/internal/components/options-list/utils/use-keyboard.d.ts +15 -14
  467. package/internal/components/options-list/utils/use-open-state.d.ts +11 -14
  468. package/internal/components/panel-resize-handle/index.d.ts +10 -9
  469. package/internal/components/responsive-text/index.d.ts +8 -13
  470. package/internal/components/responsive-text/responsive-text-utils.d.ts +2 -1
  471. package/internal/components/screenreader-only/index.d.ts +5 -4
  472. package/internal/components/selectable-item/analytics-metadata/interfaces.d.ts +9 -8
  473. package/internal/components/selectable-item/analytics-metadata/utils.d.ts +2 -5
  474. package/internal/components/selectable-item/index.d.ts +2 -1
  475. package/internal/components/selectable-item/interfaces.d.ts +31 -30
  476. package/internal/components/sortable-area/index.d.ts +3 -9
  477. package/internal/components/sortable-area/interfaces.d.ts +36 -35
  478. package/internal/components/sortable-area/keyboard-sensor/defaults.d.ts +2 -1
  479. package/internal/components/sortable-area/keyboard-sensor/index.d.ts +16 -15
  480. package/internal/components/sortable-area/keyboard-sensor/utilities/events.d.ts +6 -5
  481. package/internal/components/sortable-area/keyboard-sensor/utilities/listeners.d.ts +7 -6
  482. package/internal/components/sortable-area/keyboard-sensor/utilities/scroll.d.ts +7 -11
  483. package/internal/components/sortable-area/use-drag-and-drop-reorder.d.ts +11 -13
  484. package/internal/components/sortable-area/use-live-announcements.d.ts +10 -25
  485. package/internal/components/tab-trap/index.d.ts +5 -7
  486. package/internal/components/token-list/analytics-metadata/interfaces.d.ts +10 -9
  487. package/internal/components/token-list/index.d.ts +2 -11
  488. package/internal/components/token-list/interfaces.d.ts +13 -12
  489. package/internal/components/token-list/token-limit-toggle.d.ts +11 -19
  490. package/internal/components/tooltip/index.d.ts +11 -20
  491. package/internal/components/transition/index.d.ts +11 -18
  492. package/internal/components/visual-context/index.d.ts +6 -9
  493. package/internal/context/button-context.d.ts +5 -6
  494. package/internal/context/collection-label-context.d.ts +3 -2
  495. package/internal/context/collection-preferences-metadata-context.d.ts +6 -5
  496. package/internal/context/container-header.d.ts +4 -5
  497. package/internal/context/dynamic-overlap-context.d.ts +2 -1
  498. package/internal/context/form-field-context.d.ts +50 -49
  499. package/internal/context/info-link-label-context.d.ts +2 -1
  500. package/internal/context/link-default-variant-context.d.ts +4 -3
  501. package/internal/context/modal-context.d.ts +5 -4
  502. package/internal/context/reset-contexts-for-modal.d.ts +4 -5
  503. package/internal/context/single-tab-stop-navigation-context.d.ts +18 -17
  504. package/internal/context/single-tab-stop-navigation-context.js +1 -1
  505. package/internal/context/single-tab-stop-navigation-context.js.map +1 -1
  506. package/internal/context/split-panel-context.d.ts +28 -27
  507. package/internal/context/table-component-context.d.ts +16 -15
  508. package/internal/debounce.d.ts +2 -1
  509. package/internal/do-not-use/chart-filter.d.ts +2 -1
  510. package/internal/do-not-use/chart-tooltip.d.ts +2 -1
  511. package/internal/do-not-use/drag-handle.d.ts +2 -1
  512. package/internal/do-not-use/expandable-section.d.ts +2 -1
  513. package/internal/do-not-use/i18n.d.ts +2 -1
  514. package/internal/do-not-use/tooltip.d.ts +2 -1
  515. package/internal/environment.js +2 -2
  516. package/internal/environment.json +2 -2
  517. package/internal/events/index.d.ts +18 -20
  518. package/internal/focus-tracker.d.ts +16 -18
  519. package/internal/generated/custom-css-properties/index.d.ts +77 -76
  520. package/internal/generated/theming/index.cjs.d.ts +13 -12
  521. package/internal/generated/theming/index.d.ts +13 -12
  522. package/internal/hooks/check-controlled/index.d.ts +2 -1
  523. package/internal/hooks/container-queries/index.d.ts +2 -1
  524. package/internal/hooks/container-queries/use-container-breakpoints.d.ts +2 -1
  525. package/internal/hooks/container-queries/use-height-measure.d.ts +2 -1
  526. package/internal/hooks/forward-focus/index.d.ts +4 -3
  527. package/internal/hooks/forward-focus/radio-group.d.ts +4 -3
  528. package/internal/hooks/use-base-component/index.d.ts +4 -3
  529. package/internal/hooks/use-base-component/styles-check.d.ts +2 -1
  530. package/internal/hooks/use-controllable/index.d.ts +6 -9
  531. package/internal/hooks/use-date-cache/index.d.ts +2 -1
  532. package/internal/hooks/use-debounce-callback/index.d.ts +2 -1
  533. package/internal/hooks/use-dom-attribute/index.d.ts +3 -2
  534. package/internal/hooks/use-dynamic-overlap/index.d.ts +6 -5
  535. package/internal/hooks/use-effect-on-update.d.ts +2 -1
  536. package/internal/hooks/use-focus-tracker.d.ts +7 -6
  537. package/internal/hooks/use-has-rendered/index.d.ts +2 -1
  538. package/internal/hooks/use-hidden-description/index.d.ts +7 -6
  539. package/internal/hooks/use-intersection-observer/index.d.ts +6 -7
  540. package/internal/hooks/use-list-focus-controller.d.ts +8 -13
  541. package/internal/hooks/use-mobile/index.d.ts +2 -1
  542. package/internal/hooks/use-modal-component-analytics/index.d.ts +2 -1
  543. package/internal/hooks/use-mouse-down-target.d.ts +2 -1
  544. package/internal/hooks/use-performance-marks/index.d.ts +3 -2
  545. package/internal/hooks/use-performance-marks/is-in-viewport.d.ts +2 -1
  546. package/internal/hooks/use-portal-mode-classes/index.d.ts +2 -1
  547. package/internal/hooks/use-previous/index.d.ts +2 -1
  548. package/internal/hooks/use-scroll-sync/index.d.ts +2 -1
  549. package/internal/hooks/use-table-interaction-metrics/index.d.ts +15 -23
  550. package/internal/hooks/use-virtual/index.d.ts +10 -14
  551. package/internal/hooks/use-virtual/sticky-range-extractor.d.ts +6 -5
  552. package/internal/hooks/use-visual-mode/index.d.ts +2 -1
  553. package/internal/is-development.d.ts +2 -1
  554. package/internal/keycode.d.ts +15 -14
  555. package/internal/manifest.json +1 -1
  556. package/internal/metrics.d.ts +2 -1
  557. package/internal/plugins/api.d.ts +21 -20
  558. package/internal/plugins/controllers/action-buttons.d.ts +21 -20
  559. package/internal/plugins/controllers/alert-flash-content.d.ts +37 -36
  560. package/internal/plugins/controllers/app-layout-widget.d.ts +20 -19
  561. package/internal/plugins/controllers/breadcrumbs.d.ts +24 -23
  562. package/internal/plugins/controllers/drawers.d.ts +61 -63
  563. package/internal/plugins/controllers/shared-react-contexts.d.ts +6 -5
  564. package/internal/plugins/helpers/index.d.ts +2 -1
  565. package/internal/plugins/helpers/metrics.d.ts +2 -1
  566. package/internal/plugins/helpers/use-discovered-action.d.ts +5 -4
  567. package/internal/plugins/helpers/use-discovered-content.d.ts +13 -16
  568. package/internal/plugins/helpers/use-global-breadcrumbs.d.ts +2 -1
  569. package/internal/plugins/helpers/utils.d.ts +4 -3
  570. package/internal/plugins/index.d.ts +2 -1
  571. package/internal/styles/colors.d.ts +2 -1
  572. package/internal/styles/global-vars.d.ts +4 -3
  573. package/internal/styles/motion/utils.d.ts +2 -1
  574. package/internal/tooltip-do-not-use/index.d.ts +2 -1
  575. package/internal/types.d.ts +5 -2
  576. package/internal/utils/apply-display-name.d.ts +2 -1
  577. package/internal/utils/browser-scrollbar-size.d.ts +4 -3
  578. package/internal/utils/calculate-once.d.ts +2 -1
  579. package/internal/utils/check-safe-url.d.ts +2 -1
  580. package/internal/utils/circle-index.d.ts +2 -1
  581. package/internal/utils/content-header-utils.d.ts +2 -1
  582. package/internal/utils/create-category-color-scale.d.ts +2 -1
  583. package/internal/utils/date-time/calendar.d.ts +34 -44
  584. package/internal/utils/date-time/display-format.d.ts +2 -1
  585. package/internal/utils/date-time/format-date-iso.d.ts +8 -13
  586. package/internal/utils/date-time/format-date-localized.d.ts +9 -15
  587. package/internal/utils/date-time/format-date-time-with-offset.d.ts +8 -13
  588. package/internal/utils/date-time/format-date-time.d.ts +2 -1
  589. package/internal/utils/date-time/format-date.d.ts +2 -1
  590. package/internal/utils/date-time/format-time-offset.d.ts +2 -1
  591. package/internal/utils/date-time/format-time.d.ts +2 -1
  592. package/internal/utils/date-time/index.d.ts +2 -1
  593. package/internal/utils/date-time/is-iso-only.d.ts +2 -1
  594. package/internal/utils/date-time/join-date-time.d.ts +4 -3
  595. package/internal/utils/date-time/parse-date.d.ts +2 -1
  596. package/internal/utils/date-time/parse-timezone-offset.d.ts +2 -1
  597. package/internal/utils/date-time/shift-timezone-offset.d.ts +2 -1
  598. package/internal/utils/dom.d.ts +5 -7
  599. package/internal/utils/external-props.d.ts +2 -1
  600. package/internal/utils/get-visual-theme.d.ts +2 -1
  601. package/internal/utils/handle-key.d.ts +16 -27
  602. package/internal/utils/has-value.d.ts +2 -1
  603. package/internal/utils/locale/index.d.ts +2 -1
  604. package/internal/utils/locale/merge-locales.d.ts +2 -1
  605. package/internal/utils/locale/normalize-locale.d.ts +2 -1
  606. package/internal/utils/locale/normalize-start-of-week.d.ts +2 -1
  607. package/internal/utils/node-belongs.d.ts +2 -1
  608. package/internal/utils/pointer-events-mock.d.ts +4 -3
  609. package/internal/utils/promises.d.ts +7 -5
  610. package/internal/utils/scrollable-containers.d.ts +12 -19
  611. package/internal/utils/strings/index.d.ts +2 -1
  612. package/internal/utils/strings/join-strings.d.ts +2 -1
  613. package/internal/utils/strings/pad-left-zeros.d.ts +2 -1
  614. package/internal/utils/throttle.d.ts +6 -7
  615. package/internal/utils/use-container-width.d.ts +2 -1
  616. package/internal/widget-exports.d.ts +4 -3
  617. package/internal/widgets/index.d.ts +2 -1
  618. package/key-value-pairs/index.d.ts +2 -8
  619. package/key-value-pairs/interfaces.d.ts +56 -55
  620. package/key-value-pairs/internal.d.ts +2 -1
  621. package/line-chart/index.d.ts +3 -11
  622. package/line-chart/interfaces.d.ts +14 -13
  623. package/link/analytics-metadata/interfaces.d.ts +14 -13
  624. package/link/index.d.ts +2 -1
  625. package/link/interfaces.d.ts +97 -96
  626. package/link/internal.d.ts +3 -2
  627. package/live-region/controller.d.ts +26 -28
  628. package/live-region/index.d.ts +3 -7
  629. package/live-region/interfaces.d.ts +23 -22
  630. package/live-region/internal.d.ts +23 -22
  631. package/mixed-line-bar-chart/bar-groups.d.ts +9 -15
  632. package/mixed-line-bar-chart/bar-series.d.ts +17 -31
  633. package/mixed-line-bar-chart/chart-container.d.ts +31 -59
  634. package/mixed-line-bar-chart/chart-container.js +1 -1
  635. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  636. package/mixed-line-bar-chart/chart-legend.d.ts +10 -17
  637. package/mixed-line-bar-chart/chart-popover.d.ts +15 -14
  638. package/mixed-line-bar-chart/create-one-side-rounded-rect-path.d.ts +7 -11
  639. package/mixed-line-bar-chart/data-series.d.ts +14 -25
  640. package/mixed-line-bar-chart/domain.d.ts +2 -1
  641. package/mixed-line-bar-chart/format-highlighted.d.ts +9 -13
  642. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts +16 -26
  643. package/mixed-line-bar-chart/hooks/use-navigation.d.ts +23 -41
  644. package/mixed-line-bar-chart/hooks/use-popover.d.ts +7 -6
  645. package/mixed-line-bar-chart/index.d.ts +3 -13
  646. package/mixed-line-bar-chart/interfaces.d.ts +107 -106
  647. package/mixed-line-bar-chart/internal.d.ts +3 -41
  648. package/mixed-line-bar-chart/line-series.d.ts +9 -15
  649. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts +11 -10
  650. package/mixed-line-bar-chart/make-scaled-series.d.ts +7 -6
  651. package/mixed-line-bar-chart/utils.d.ts +4 -3
  652. package/modal/analytics-metadata/interfaces.d.ts +8 -7
  653. package/modal/body-scroll.d.ts +2 -1
  654. package/modal/index.d.ts +2 -4
  655. package/modal/interfaces.d.ts +75 -74
  656. package/modal/internal.d.ts +10 -14
  657. package/multiselect/analytics-metadata/interfaces.d.ts +8 -7
  658. package/multiselect/embedded.d.ts +8 -7
  659. package/multiselect/index.d.ts +2 -1
  660. package/multiselect/interfaces.d.ts +81 -80
  661. package/multiselect/internal.d.ts +8 -7
  662. package/multiselect/use-multiselect.d.ts +59 -87
  663. package/package.json +1 -1
  664. package/pagination/analytics-metadata/interfaces.d.ts +14 -13
  665. package/pagination/index.d.ts +2 -1
  666. package/pagination/interfaces.d.ts +73 -72
  667. package/pagination/internal.d.ts +3 -13
  668. package/pagination/utils.d.ts +6 -5
  669. package/pie-chart/index.d.ts +3 -21
  670. package/pie-chart/interfaces.d.ts +222 -221
  671. package/pie-chart/labels.d.ts +11 -19
  672. package/pie-chart/pie-chart.d.ts +13 -35
  673. package/pie-chart/responsive-text.d.ts +11 -17
  674. package/pie-chart/segments.d.ts +13 -23
  675. package/pie-chart/utils.d.ts +19 -22
  676. package/popover/arrow.d.ts +3 -2
  677. package/popover/body.d.ts +12 -22
  678. package/popover/container.d.ts +31 -48
  679. package/popover/index.d.ts +2 -1
  680. package/popover/interfaces.d.ts +81 -80
  681. package/popover/internal.d.ts +9 -8
  682. package/popover/use-popover-position.d.ts +20 -32
  683. package/popover/utils/positions.d.ts +20 -30
  684. package/progress-bar/index.d.ts +2 -15
  685. package/progress-bar/interfaces.d.ts +71 -70
  686. package/progress-bar/internal.d.ts +19 -35
  687. package/prompt-input/index.d.ts +2 -1
  688. package/prompt-input/interfaces.d.ts +93 -92
  689. package/prompt-input/internal.d.ts +4 -2
  690. package/property-filter/analytics-metadata/interfaces.d.ts +25 -24
  691. package/property-filter/controller.d.ts +41 -45
  692. package/property-filter/filter-options.d.ts +2 -1
  693. package/property-filter/filtering-token/index.d.ts +28 -27
  694. package/property-filter/i18n-utils.d.ts +15 -14
  695. package/property-filter/i18n-utils.js +1 -1
  696. package/property-filter/i18n-utils.js.map +1 -1
  697. package/property-filter/index.d.ts +2 -1
  698. package/property-filter/interfaces.d.ts +326 -325
  699. package/property-filter/internal.d.ts +8 -7
  700. package/property-filter/internal.js +3 -3
  701. package/property-filter/internal.js.map +1 -1
  702. package/property-filter/property-editor.d.ts +24 -45
  703. package/property-filter/property-filter-autosuggest.d.ts +11 -10
  704. package/property-filter/token-editor-inputs.d.ts +26 -41
  705. package/property-filter/token-editor.d.ts +18 -34
  706. package/property-filter/token.d.ts +21 -39
  707. package/property-filter/use-load-items.d.ts +5 -4
  708. package/property-filter/utils.d.ts +6 -9
  709. package/radio-group/analytics-metadata/interfaces.d.ts +10 -9
  710. package/radio-group/index.d.ts +2 -1
  711. package/radio-group/interfaces.d.ts +65 -64
  712. package/radio-group/internal.d.ts +2 -1
  713. package/radio-group/radio-button.d.ts +7 -6
  714. package/s3-resource-selector/index.d.ts +2 -1
  715. package/s3-resource-selector/interfaces.d.ts +232 -231
  716. package/s3-resource-selector/s3-in-context/index.d.ts +13 -12
  717. package/s3-resource-selector/s3-in-context/search-input.d.ts +2 -1
  718. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +10 -9
  719. package/s3-resource-selector/s3-in-context/validation.d.ts +2 -1
  720. package/s3-resource-selector/s3-modal/basic-table.d.ts +26 -35
  721. package/s3-resource-selector/s3-modal/buckets-table.d.ts +12 -21
  722. package/s3-resource-selector/s3-modal/column-formats.d.ts +2 -1
  723. package/s3-resource-selector/s3-modal/empty-state.d.ts +6 -9
  724. package/s3-resource-selector/s3-modal/index.d.ts +18 -34
  725. package/s3-resource-selector/s3-modal/objects-table.d.ts +13 -23
  726. package/s3-resource-selector/s3-modal/table-utils.d.ts +2 -4
  727. package/s3-resource-selector/s3-modal/versions-table.d.ts +11 -19
  728. package/s3-resource-selector/utils.d.ts +2 -1
  729. package/segmented-control/index.d.ts +2 -1
  730. package/segmented-control/interfaces.d.ts +48 -47
  731. package/segmented-control/internal-segmented-control.d.ts +2 -7
  732. package/segmented-control/internal.d.ts +3 -10
  733. package/segmented-control/segment.d.ts +6 -5
  734. package/select/analytics-metadata/interfaces.d.ts +7 -6
  735. package/select/index.d.ts +2 -1
  736. package/select/interfaces.d.ts +183 -182
  737. package/select/internal.d.ts +3 -2
  738. package/select/parts/common.d.ts +2 -1
  739. package/select/parts/filter.d.ts +4 -3
  740. package/select/parts/item.d.ts +16 -15
  741. package/select/parts/multiselect-item.d.ts +3 -2
  742. package/select/parts/plain-list.d.ts +14 -13
  743. package/select/parts/trigger.d.ts +12 -11
  744. package/select/parts/virtual-list.d.ts +2 -1
  745. package/select/utils/check-option-value-field.d.ts +2 -1
  746. package/select/utils/connect-options.d.ts +2 -1
  747. package/select/utils/get-item-props.d.ts +8 -13
  748. package/select/utils/render-options.d.ts +16 -29
  749. package/select/utils/scroll-to-index.d.ts +5 -7
  750. package/select/utils/use-announcement.d.ts +10 -16
  751. package/select/utils/use-load-items.d.ts +9 -12
  752. package/select/utils/use-native-search.d.ts +8 -13
  753. package/select/utils/use-select.d.ts +34 -50
  754. package/side-navigation/analytics-metadata/interfaces.d.ts +14 -13
  755. package/side-navigation/implementation.d.ts +3 -11
  756. package/side-navigation/index.d.ts +2 -4
  757. package/side-navigation/interfaces.d.ts +172 -171
  758. package/side-navigation/internal.d.ts +2 -1
  759. package/side-navigation/parts.d.ts +11 -21
  760. package/side-navigation/util.d.ts +2 -1
  761. package/slider/index.d.ts +2 -5
  762. package/slider/interfaces.d.ts +75 -74
  763. package/slider/internal.d.ts +5 -20
  764. package/slider/slider-labels.d.ts +9 -15
  765. package/slider/tick-marks.d.ts +12 -11
  766. package/slider/utils.d.ts +4 -3
  767. package/space-between/index.d.ts +2 -4
  768. package/space-between/interfaces.d.ts +21 -20
  769. package/space-between/internal.d.ts +2 -1
  770. package/spinner/index.d.ts +2 -5
  771. package/spinner/interfaces.d.ts +12 -11
  772. package/spinner/internal.d.ts +5 -8
  773. package/split-panel/bottom.d.ts +5 -16
  774. package/split-panel/icons/bottom-icon-refresh.d.ts +2 -1
  775. package/split-panel/icons/bottom-icon.d.ts +2 -1
  776. package/split-panel/icons/side-position-refresh.d.ts +5 -4
  777. package/split-panel/icons/side-position.d.ts +2 -1
  778. package/split-panel/implementation.d.ts +3 -10
  779. package/split-panel/index.d.ts +2 -6
  780. package/split-panel/interfaces.d.ts +54 -53
  781. package/split-panel/internal.d.ts +2 -1
  782. package/split-panel/preferences-modal.d.ts +21 -20
  783. package/split-panel/side.d.ts +6 -19
  784. package/split-panel/utils/size-utils.d.ts +2 -1
  785. package/status-indicator/index.d.ts +2 -5
  786. package/status-indicator/internal.d.ts +38 -48
  787. package/steps/index.d.ts +3 -5
  788. package/steps/interfaces.d.ts +34 -33
  789. package/steps/internal.d.ts +3 -9
  790. package/table/analytics-metadata/interfaces.d.ts +45 -44
  791. package/table/body-cell/click-away.d.ts +2 -1
  792. package/table/body-cell/disabled-inline-editor.d.ts +4 -12
  793. package/table/body-cell/index.d.ts +9 -8
  794. package/table/body-cell/inline-editor.d.ts +11 -17
  795. package/table/body-cell/td-element.d.ts +37 -36
  796. package/table/column-widths-utils.d.ts +5 -4
  797. package/table/expandable-rows/expand-toggle-button.d.ts +7 -11
  798. package/table/expandable-rows/expandable-rows-utils.d.ts +20 -24
  799. package/table/header-cell/index.d.ts +29 -56
  800. package/table/header-cell/th-element.d.ts +20 -39
  801. package/table/header-cell/utils.d.ts +2 -1
  802. package/table/index.d.ts +2 -1
  803. package/table/interfaces.d.ts +515 -514
  804. package/table/internal.d.ts +2 -1
  805. package/table/internal.js +1 -1
  806. package/table/internal.js.map +1 -1
  807. package/table/no-data-cell.d.ts +10 -17
  808. package/table/progressive-loading/items-loader.d.ts +12 -22
  809. package/table/progressive-loading/loader-cell.d.ts +4 -7
  810. package/table/progressive-loading/progressive-loading-utils.d.ts +12 -15
  811. package/table/resizer/index.d.ts +13 -23
  812. package/table/resizer/resizer-lookup.d.ts +6 -5
  813. package/table/selection/index.d.ts +2 -1
  814. package/table/selection/interfaces.d.ts +11 -10
  815. package/table/selection/selection-cell.d.ts +9 -17
  816. package/table/selection/selection-control.d.ts +11 -23
  817. package/table/selection/use-selection-focus-move.d.ts +8 -7
  818. package/table/selection/use-selection.d.ts +7 -6
  819. package/table/selection/utils.d.ts +17 -16
  820. package/table/sticky-columns/index.d.ts +2 -1
  821. package/table/sticky-columns/interfaces.d.ts +22 -21
  822. package/table/sticky-columns/use-sticky-columns.d.ts +19 -26
  823. package/table/sticky-columns/utils.d.ts +2 -1
  824. package/table/sticky-header.d.ts +15 -14
  825. package/table/sticky-scrollbar/index.d.ts +2 -1
  826. package/table/sticky-scrollbar/sticky-scrollbar.d.ts +6 -5
  827. package/table/sticky-scrollbar/use-sticky-scrollbar.d.ts +2 -1
  828. package/table/sticky-scrolling.d.ts +4 -3
  829. package/table/table-role/grid-navigation.d.ts +2 -6
  830. package/table/table-role/index.d.ts +3 -2
  831. package/table/table-role/interfaces.d.ts +10 -9
  832. package/table/table-role/table-role-helper.d.ts +24 -23
  833. package/table/table-role/utils.d.ts +2 -1
  834. package/table/thead.d.ts +28 -27
  835. package/table/tools-header.d.ts +8 -13
  836. package/table/use-cell-editing.d.ts +14 -22
  837. package/table/use-column-widths.d.ts +12 -16
  838. package/table/use-prevent-sticky-click-scroll.d.ts +2 -1
  839. package/table/use-row-events.d.ts +5 -7
  840. package/table/use-sticky-header.d.ts +4 -3
  841. package/table/use-table-focus-navigation.d.ts +9 -14
  842. package/table/utils.d.ts +7 -10
  843. package/tabs/analytics-metadata/interfaces.d.ts +28 -27
  844. package/tabs/index.d.ts +2 -14
  845. package/tabs/interfaces.d.ts +155 -154
  846. package/tabs/native-smooth-scroll-supported.d.ts +2 -1
  847. package/tabs/scroll-utils.d.ts +2 -1
  848. package/tabs/smooth-scroll.d.ts +2 -1
  849. package/tabs/tab-header-bar.d.ts +16 -29
  850. package/tag-editor/index.d.ts +2 -1
  851. package/tag-editor/index.js +1 -1
  852. package/tag-editor/index.js.map +1 -1
  853. package/tag-editor/interfaces.d.ts +113 -112
  854. package/tag-editor/internal.d.ts +21 -20
  855. package/tag-editor/utils.d.ts +4 -3
  856. package/tag-editor/validation.d.ts +4 -3
  857. package/test-utils/dom/alert/index.d.ts +21 -21
  858. package/test-utils/dom/anchor-navigation/index.d.ts +12 -12
  859. package/test-utils/dom/annotation/index.d.ts +9 -9
  860. package/test-utils/dom/app-layout/index.d.ts +32 -32
  861. package/test-utils/dom/app-layout-toolbar/index.d.ts +2 -2
  862. package/test-utils/dom/area-chart/index.d.ts +8 -8
  863. package/test-utils/dom/attribute-editor/index.d.ts +30 -30
  864. package/test-utils/dom/autosuggest/index.d.ts +87 -87
  865. package/test-utils/dom/badge/index.d.ts +2 -2
  866. package/test-utils/dom/bar-chart/index.d.ts +2 -2
  867. package/test-utils/dom/box/index.d.ts +2 -2
  868. package/test-utils/dom/breadcrumb-group/index.d.ts +18 -18
  869. package/test-utils/dom/button/index.d.ts +6 -6
  870. package/test-utils/dom/button-dropdown/index.d.ts +41 -41
  871. package/test-utils/dom/button-group/index.d.ts +26 -26
  872. package/test-utils/dom/calendar/index.d.ts +24 -24
  873. package/test-utils/dom/cards/index.d.ts +31 -31
  874. package/test-utils/dom/checkbox/index.d.ts +6 -6
  875. package/test-utils/dom/code-editor/index.d.ts +17 -17
  876. package/test-utils/dom/collection-preferences/content-display-preference.d.ts +40 -40
  877. package/test-utils/dom/collection-preferences/index.d.ts +16 -16
  878. package/test-utils/dom/collection-preferences/page-size-preference.d.ts +4 -4
  879. package/test-utils/dom/collection-preferences/sticky-columns-preference.d.ts +6 -6
  880. package/test-utils/dom/collection-preferences/visible-content-preference.d.ts +12 -12
  881. package/test-utils/dom/column-layout/index.d.ts +2 -2
  882. package/test-utils/dom/container/index.d.ts +6 -6
  883. package/test-utils/dom/content-layout/index.d.ts +7 -7
  884. package/test-utils/dom/copy-to-clipboard/index.d.ts +15 -15
  885. package/test-utils/dom/date-input/index.d.ts +2 -2
  886. package/test-utils/dom/date-picker/index.d.ts +19 -19
  887. package/test-utils/dom/date-range-picker/index.d.ts +82 -82
  888. package/test-utils/dom/drawer/index.d.ts +5 -5
  889. package/test-utils/dom/expandable-section/index.d.ts +9 -9
  890. package/test-utils/dom/file-dropzone/index.d.ts +3 -3
  891. package/test-utils/dom/file-input/index.d.ts +4 -4
  892. package/test-utils/dom/file-token-group/index.d.ts +17 -17
  893. package/test-utils/dom/file-upload/index.d.ts +18 -18
  894. package/test-utils/dom/flashbar/flash.d.ts +20 -20
  895. package/test-utils/dom/flashbar/index.d.ts +20 -20
  896. package/test-utils/dom/form/index.d.ts +7 -7
  897. package/test-utils/dom/form-field/index.d.ts +10 -10
  898. package/test-utils/dom/grid/index.d.ts +7 -7
  899. package/test-utils/dom/header/index.d.ts +7 -7
  900. package/test-utils/dom/help-panel/index.d.ts +5 -5
  901. package/test-utils/dom/hotspot/index.d.ts +4 -4
  902. package/test-utils/dom/icon/index.d.ts +2 -2
  903. package/test-utils/dom/index.d.ts +1443 -1443
  904. package/test-utils/dom/input/base-input.d.ts +17 -17
  905. package/test-utils/dom/input/index.d.ts +3 -3
  906. package/test-utils/dom/internal/abstract-switch.d.ts +5 -5
  907. package/test-utils/dom/internal/autosuggest-input.d.ts +4 -4
  908. package/test-utils/dom/internal/chart-filter.d.ts +4 -4
  909. package/test-utils/dom/internal/chart-legend.d.ts +6 -6
  910. package/test-utils/dom/internal/chart-popover.d.ts +9 -9
  911. package/test-utils/dom/internal/chart-tooltip.d.ts +6 -6
  912. package/test-utils/dom/internal/charts.d.ts +5 -5
  913. package/test-utils/dom/internal/drag-handle.d.ts +7 -7
  914. package/test-utils/dom/internal/dropdown-host.d.ts +119 -119
  915. package/test-utils/dom/internal/dropdown.d.ts +3 -3
  916. package/test-utils/dom/internal/option.d.ts +7 -7
  917. package/test-utils/dom/internal/options-list.d.ts +2 -2
  918. package/test-utils/dom/internal/tooltip.d.ts +2 -2
  919. package/test-utils/dom/key-value-pairs/index.d.ts +8 -8
  920. package/test-utils/dom/line-chart/index.d.ts +2 -2
  921. package/test-utils/dom/link/index.d.ts +2 -2
  922. package/test-utils/dom/live-region/index.d.ts +2 -2
  923. package/test-utils/dom/mixed-line-bar-chart/index.d.ts +21 -21
  924. package/test-utils/dom/modal/index.d.ts +7 -7
  925. package/test-utils/dom/multiselect/index.d.ts +38 -38
  926. package/test-utils/dom/pagination/index.d.ts +13 -13
  927. package/test-utils/dom/pie-chart/index.d.ts +13 -13
  928. package/test-utils/dom/popover/index.d.ts +24 -24
  929. package/test-utils/dom/progress-bar/index.d.ts +14 -14
  930. package/test-utils/dom/prompt-input/index.d.ts +18 -18
  931. package/test-utils/dom/property-filter/index.d.ts +68 -68
  932. package/test-utils/dom/radio-group/index.d.ts +4 -4
  933. package/test-utils/dom/radio-group/radio-button.d.ts +5 -5
  934. package/test-utils/dom/s3-resource-selector/index.d.ts +11 -11
  935. package/test-utils/dom/segmented-control/index.d.ts +11 -11
  936. package/test-utils/dom/select/index.d.ts +28 -28
  937. package/test-utils/dom/side-navigation/index.d.ts +18 -18
  938. package/test-utils/dom/slider/index.d.ts +3 -3
  939. package/test-utils/dom/space-between/index.d.ts +2 -2
  940. package/test-utils/dom/spinner/index.d.ts +2 -2
  941. package/test-utils/dom/split-panel/index.d.ts +17 -17
  942. package/test-utils/dom/status-indicator/index.d.ts +2 -2
  943. package/test-utils/dom/steps/index.d.ts +14 -14
  944. package/test-utils/dom/table/index.d.ts +91 -91
  945. package/test-utils/dom/tabs/index.d.ts +68 -68
  946. package/test-utils/dom/tag-editor/index.d.ts +17 -17
  947. package/test-utils/dom/text-content/index.d.ts +2 -2
  948. package/test-utils/dom/text-filter/index.d.ts +4 -4
  949. package/test-utils/dom/textarea/index.d.ts +15 -15
  950. package/test-utils/dom/tiles/index.d.ts +5 -5
  951. package/test-utils/dom/tiles/tile.d.ts +7 -7
  952. package/test-utils/dom/time-input/index.d.ts +2 -2
  953. package/test-utils/dom/toggle/index.d.ts +6 -6
  954. package/test-utils/dom/toggle-button/index.d.ts +3 -3
  955. package/test-utils/dom/token-group/index.d.ts +13 -13
  956. package/test-utils/dom/token-group/token.d.ts +5 -5
  957. package/test-utils/dom/top-navigation/1.0-beta/index.d.ts +17 -17
  958. package/test-utils/dom/top-navigation/index.d.ts +23 -23
  959. package/test-utils/dom/tutorial-panel/index.d.ts +12 -12
  960. package/test-utils/dom/tutorial-panel/tutorial.d.ts +10 -10
  961. package/test-utils/dom/wizard/index.d.ts +22 -22
  962. package/test-utils/selectors/alert/index.d.ts +21 -21
  963. package/test-utils/selectors/anchor-navigation/index.d.ts +11 -11
  964. package/test-utils/selectors/annotation/index.d.ts +9 -9
  965. package/test-utils/selectors/app-layout/index.d.ts +32 -32
  966. package/test-utils/selectors/app-layout-toolbar/index.d.ts +2 -2
  967. package/test-utils/selectors/area-chart/index.d.ts +8 -8
  968. package/test-utils/selectors/attribute-editor/index.d.ts +30 -30
  969. package/test-utils/selectors/autosuggest/index.d.ts +67 -67
  970. package/test-utils/selectors/badge/index.d.ts +2 -2
  971. package/test-utils/selectors/bar-chart/index.d.ts +2 -2
  972. package/test-utils/selectors/box/index.d.ts +2 -2
  973. package/test-utils/selectors/breadcrumb-group/index.d.ts +18 -18
  974. package/test-utils/selectors/button/index.d.ts +5 -5
  975. package/test-utils/selectors/button-dropdown/index.d.ts +39 -39
  976. package/test-utils/selectors/button-group/index.d.ts +26 -26
  977. package/test-utils/selectors/calendar/index.d.ts +24 -24
  978. package/test-utils/selectors/cards/index.d.ts +31 -31
  979. package/test-utils/selectors/checkbox/index.d.ts +6 -6
  980. package/test-utils/selectors/code-editor/index.d.ts +11 -11
  981. package/test-utils/selectors/collection-preferences/content-display-preference.d.ts +40 -40
  982. package/test-utils/selectors/collection-preferences/index.d.ts +16 -16
  983. package/test-utils/selectors/collection-preferences/page-size-preference.d.ts +4 -4
  984. package/test-utils/selectors/collection-preferences/sticky-columns-preference.d.ts +6 -6
  985. package/test-utils/selectors/collection-preferences/visible-content-preference.d.ts +12 -12
  986. package/test-utils/selectors/column-layout/index.d.ts +2 -2
  987. package/test-utils/selectors/container/index.d.ts +6 -6
  988. package/test-utils/selectors/content-layout/index.d.ts +7 -7
  989. package/test-utils/selectors/copy-to-clipboard/index.d.ts +15 -15
  990. package/test-utils/selectors/date-input/index.d.ts +2 -2
  991. package/test-utils/selectors/date-picker/index.d.ts +11 -11
  992. package/test-utils/selectors/date-range-picker/index.d.ts +81 -81
  993. package/test-utils/selectors/drawer/index.d.ts +5 -5
  994. package/test-utils/selectors/expandable-section/index.d.ts +9 -9
  995. package/test-utils/selectors/file-dropzone/index.d.ts +3 -3
  996. package/test-utils/selectors/file-input/index.d.ts +4 -4
  997. package/test-utils/selectors/file-token-group/index.d.ts +17 -17
  998. package/test-utils/selectors/file-upload/index.d.ts +18 -18
  999. package/test-utils/selectors/flashbar/flash.d.ts +20 -20
  1000. package/test-utils/selectors/flashbar/index.d.ts +20 -20
  1001. package/test-utils/selectors/form/index.d.ts +7 -7
  1002. package/test-utils/selectors/form-field/index.d.ts +10 -10
  1003. package/test-utils/selectors/grid/index.d.ts +7 -7
  1004. package/test-utils/selectors/header/index.d.ts +7 -7
  1005. package/test-utils/selectors/help-panel/index.d.ts +5 -5
  1006. package/test-utils/selectors/hotspot/index.d.ts +4 -4
  1007. package/test-utils/selectors/icon/index.d.ts +2 -2
  1008. package/test-utils/selectors/index.d.ts +1283 -1283
  1009. package/test-utils/selectors/input/base-input.d.ts +2 -2
  1010. package/test-utils/selectors/input/index.d.ts +3 -3
  1011. package/test-utils/selectors/internal/abstract-switch.d.ts +5 -5
  1012. package/test-utils/selectors/internal/autosuggest-input.d.ts +4 -4
  1013. package/test-utils/selectors/internal/chart-filter.d.ts +4 -4
  1014. package/test-utils/selectors/internal/chart-legend.d.ts +6 -6
  1015. package/test-utils/selectors/internal/chart-popover.d.ts +9 -9
  1016. package/test-utils/selectors/internal/chart-tooltip.d.ts +6 -6
  1017. package/test-utils/selectors/internal/charts.d.ts +5 -5
  1018. package/test-utils/selectors/internal/drag-handle.d.ts +7 -7
  1019. package/test-utils/selectors/internal/dropdown-host.d.ts +56 -56
  1020. package/test-utils/selectors/internal/dropdown.d.ts +3 -3
  1021. package/test-utils/selectors/internal/option.d.ts +7 -7
  1022. package/test-utils/selectors/internal/options-list.d.ts +2 -2
  1023. package/test-utils/selectors/internal/tooltip.d.ts +2 -2
  1024. package/test-utils/selectors/key-value-pairs/index.d.ts +8 -8
  1025. package/test-utils/selectors/line-chart/index.d.ts +2 -2
  1026. package/test-utils/selectors/link/index.d.ts +2 -2
  1027. package/test-utils/selectors/live-region/index.d.ts +2 -2
  1028. package/test-utils/selectors/mixed-line-bar-chart/index.d.ts +21 -21
  1029. package/test-utils/selectors/modal/index.d.ts +6 -6
  1030. package/test-utils/selectors/multiselect/index.d.ts +37 -37
  1031. package/test-utils/selectors/pagination/index.d.ts +12 -12
  1032. package/test-utils/selectors/pie-chart/index.d.ts +13 -13
  1033. package/test-utils/selectors/popover/index.d.ts +24 -24
  1034. package/test-utils/selectors/progress-bar/index.d.ts +14 -14
  1035. package/test-utils/selectors/prompt-input/index.d.ts +6 -6
  1036. package/test-utils/selectors/property-filter/index.d.ts +68 -68
  1037. package/test-utils/selectors/radio-group/index.d.ts +4 -4
  1038. package/test-utils/selectors/radio-group/radio-button.d.ts +5 -5
  1039. package/test-utils/selectors/s3-resource-selector/index.d.ts +11 -11
  1040. package/test-utils/selectors/segmented-control/index.d.ts +11 -11
  1041. package/test-utils/selectors/select/index.d.ts +27 -27
  1042. package/test-utils/selectors/side-navigation/index.d.ts +18 -18
  1043. package/test-utils/selectors/slider/index.d.ts +3 -3
  1044. package/test-utils/selectors/space-between/index.d.ts +2 -2
  1045. package/test-utils/selectors/spinner/index.d.ts +2 -2
  1046. package/test-utils/selectors/split-panel/index.d.ts +17 -17
  1047. package/test-utils/selectors/status-indicator/index.d.ts +2 -2
  1048. package/test-utils/selectors/steps/index.d.ts +14 -14
  1049. package/test-utils/selectors/table/index.d.ts +90 -90
  1050. package/test-utils/selectors/tabs/index.d.ts +68 -68
  1051. package/test-utils/selectors/tag-editor/index.d.ts +17 -17
  1052. package/test-utils/selectors/text-content/index.d.ts +2 -2
  1053. package/test-utils/selectors/text-filter/index.d.ts +4 -4
  1054. package/test-utils/selectors/textarea/index.d.ts +3 -3
  1055. package/test-utils/selectors/tiles/index.d.ts +5 -5
  1056. package/test-utils/selectors/tiles/tile.d.ts +7 -7
  1057. package/test-utils/selectors/time-input/index.d.ts +2 -2
  1058. package/test-utils/selectors/toggle/index.d.ts +6 -6
  1059. package/test-utils/selectors/toggle-button/index.d.ts +2 -2
  1060. package/test-utils/selectors/token-group/index.d.ts +13 -13
  1061. package/test-utils/selectors/token-group/token.d.ts +5 -5
  1062. package/test-utils/selectors/top-navigation/1.0-beta/index.d.ts +17 -17
  1063. package/test-utils/selectors/top-navigation/index.d.ts +23 -23
  1064. package/test-utils/selectors/tutorial-panel/index.d.ts +12 -12
  1065. package/test-utils/selectors/tutorial-panel/tutorial.d.ts +10 -10
  1066. package/test-utils/selectors/wizard/index.d.ts +22 -22
  1067. package/text-content/index.d.ts +2 -4
  1068. package/text-content/interfaces.d.ts +7 -6
  1069. package/text-filter/analytics/use-table-integration.d.ts +2 -1
  1070. package/text-filter/analytics-metadata/interfaces.d.ts +7 -6
  1071. package/text-filter/index.d.ts +2 -1
  1072. package/text-filter/interfaces.d.ts +55 -54
  1073. package/text-filter/internal.d.ts +2 -1
  1074. package/text-filter/search-results.d.ts +5 -4
  1075. package/text-filter/use-debounce-search-result-callback.d.ts +6 -10
  1076. package/textarea/index.d.ts +2 -1
  1077. package/textarea/interfaces.d.ts +27 -26
  1078. package/theming/index.d.ts +8 -13
  1079. package/tiles/analytics-metadata/interfaces.d.ts +10 -9
  1080. package/tiles/index.d.ts +2 -1
  1081. package/tiles/interfaces.d.ts +71 -70
  1082. package/tiles/internal.d.ts +2 -1
  1083. package/tiles/tile.d.ts +8 -7
  1084. package/time-input/index.d.ts +2 -1
  1085. package/time-input/interfaces.d.ts +27 -26
  1086. package/time-input/internal.d.ts +2 -1
  1087. package/toggle/analytics-metadata/interfaces.d.ts +12 -11
  1088. package/toggle/index.d.ts +2 -1
  1089. package/toggle/interfaces.d.ts +17 -16
  1090. package/toggle/internal.d.ts +3 -2
  1091. package/toggle-button/index.d.ts +2 -1
  1092. package/toggle-button/index.js +15 -11
  1093. package/toggle-button/interfaces.d.ts +69 -68
  1094. package/toggle-button/internal.d.ts +3 -2
  1095. package/toggle-button/util.d.ts +2 -1
  1096. package/token-group/analytics-metadata/interfaces.d.ts +12 -11
  1097. package/token-group/dismiss-button.d.ts +6 -5
  1098. package/token-group/index.d.ts +2 -5
  1099. package/token-group/interfaces.d.ts +76 -75
  1100. package/token-group/internal.d.ts +3 -14
  1101. package/token-group/token.d.ts +10 -17
  1102. package/top-navigation/1.0-beta/index.d.ts +2 -4
  1103. package/top-navigation/1.0-beta/interfaces.d.ts +95 -94
  1104. package/top-navigation/1.0-beta/internal.d.ts +3 -9
  1105. package/top-navigation/1.0-beta/parts/overflow-menu.d.ts +10 -13
  1106. package/top-navigation/1.0-beta/parts/utility.d.ts +6 -10
  1107. package/top-navigation/1.0-beta/use-top-navigation.d.ts +17 -21
  1108. package/top-navigation/index.d.ts +2 -4
  1109. package/top-navigation/interfaces.d.ts +109 -108
  1110. package/top-navigation/internal.d.ts +3 -9
  1111. package/top-navigation/parts/overflow-menu/header.d.ts +8 -7
  1112. package/top-navigation/parts/overflow-menu/index.d.ts +9 -14
  1113. package/top-navigation/parts/overflow-menu/menu-item.d.ts +5 -4
  1114. package/top-navigation/parts/overflow-menu/router.d.ts +11 -15
  1115. package/top-navigation/parts/overflow-menu/views/submenu.d.ts +5 -12
  1116. package/top-navigation/parts/overflow-menu/views/utilities.d.ts +5 -10
  1117. package/top-navigation/parts/utility.d.ts +5 -8
  1118. package/top-navigation/use-top-navigation.d.ts +26 -29
  1119. package/tutorial-panel/components/tutorial-detail-view/congratulation-screen.d.ts +6 -9
  1120. package/tutorial-panel/components/tutorial-detail-view/index.d.ts +8 -13
  1121. package/tutorial-panel/components/tutorial-detail-view/task-list.d.ts +7 -11
  1122. package/tutorial-panel/components/tutorial-detail-view/task.d.ts +9 -15
  1123. package/tutorial-panel/components/tutorial-list/index.d.ts +8 -13
  1124. package/tutorial-panel/index.d.ts +2 -8
  1125. package/tutorial-panel/interfaces.d.ts +170 -169
  1126. package/wizard/analytics-metadata/interfaces.d.ts +26 -25
  1127. package/wizard/analytics-metadata/utils.d.ts +4 -3
  1128. package/wizard/analytics.d.ts +6 -5
  1129. package/wizard/index.d.ts +3 -6
  1130. package/wizard/interfaces.d.ts +146 -145
  1131. package/wizard/internal.d.ts +4 -16
  1132. package/wizard/unmount.d.ts +6 -5
  1133. package/wizard/wizard-actions.d.ts +18 -33
  1134. package/wizard/wizard-form-header.d.ts +4 -5
  1135. package/wizard/wizard-form.d.ts +14 -13
  1136. package/wizard/wizard-form.js +1 -1
  1137. package/wizard/wizard-form.js.map +1 -1
  1138. package/wizard/wizard-navigation.d.ts +12 -21
  1139. package/button/internal-do-not-use-core.js +0 -20
  1140. package/container/internal-do-not-use-core.js +0 -35
  1141. package/flashbar/internal-do-not-use-core.js +0 -16
  1142. package/toggle-button/internal-do-not-use-core.js +0 -22
  1143. /package/button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
  1144. /package/container/{internal-do-not-use-core.js.map → index.js.map} +0 -0
  1145. /package/flashbar/{internal-do-not-use-core.js.map → index.js.map} +0 -0
  1146. /package/toggle-button/{internal-do-not-use-core.js.map → index.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tag-editor/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAGlF,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAEnE,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAA4B,MAAM,oBAAoB,CAAC;AACtF,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAmB,MAAM,cAAc,CAAC;AAEzD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAkB,WAAW,EAAE,CAAC;AAOvC,MAAM,eAAe,GAAG,CAAC,EAAE,GAAG,EAAe,EAAE,EAAE,CAAC,CAAC,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AAE,UAAU,EACtB,WAAW,EAAE,oBAAoB,IACjC,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACzC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useImperativeHandle, useLayoutEffect, useMemo, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nimport { AttributeEditorProps } from '../attribute-editor/interfaces';\nimport InternalAttributeEditor from '../attribute-editor/internal';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport InternalBox from '../box/internal';\nimport { FormFieldError } from '../form-field/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { InputProps } from '../input/interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent, NonCancelableCustomEvent } from '../internal/events';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalLiveRegion from '../live-region/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { TagEditorProps } from './interfaces';\nimport { TagControl, UndoButton } from './internal';\nimport { findIndex, useMemoizedArray } from './utils';\nimport { getTagsDiff } from './utils';\nimport { validate, ValidationError } from './validation';\n\nimport styles from './styles.css.js';\n\nexport { TagEditorProps, getTagsDiff };\n\ninterface InternalTag {\n tag: TagEditorProps.Tag;\n error?: ValidationError;\n}\n\nconst isItemRemovable = ({ tag }: InternalTag) => !tag.markedForRemoval;\n\nconst TagEditor = React.forwardRef(\n (\n {\n tags = [],\n i18nStrings,\n loading = false,\n tagLimit = 50,\n allowedCharacterPattern,\n keysRequest,\n valuesRequest,\n onChange,\n ...restProps\n }: TagEditorProps,\n ref: React.Ref<TagEditorProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('TagEditor', {\n props: { tagLimit, allowedCharacterPattern },\n });\n const i18n = useInternalI18n('tag-editor');\n\n const remainingTags = tagLimit - tags.filter(tag => !tag.markedForRemoval).length;\n\n const attributeEditorRef = useRef<AttributeEditorProps.Ref>(null);\n const keyInputRefs = useRef<(InputProps.Ref | undefined | null)[]>([]);\n const valueInputRefs = useRef<(InputProps.Ref | undefined | null)[]>([]);\n const undoButtonRefs = useRef<(HTMLAnchorElement | undefined | null)[]>([]);\n\n const initialKeyOptionsRef = useRef<AutosuggestProps.Options>([]);\n const keyDirtyStateRef = useRef<boolean[]>([]);\n const focusEventRef = useRef<() => void>();\n\n useLayoutEffect(() => {\n focusEventRef.current?.apply(undefined);\n focusEventRef.current = undefined;\n });\n\n const errors = validate(\n tags,\n keyDirtyStateRef.current,\n i18n,\n i18nStrings,\n allowedCharacterPattern ? new RegExp(allowedCharacterPattern) : undefined\n );\n\n const internalTags = useMemoizedArray(\n tags.map((tag, i) => ({ tag, error: errors[i] })),\n (prev, next) => {\n return prev.tag === next.tag && prev.error?.key === next.error?.key && prev.error?.value === next.error?.value;\n }\n );\n\n useImperativeHandle(\n ref,\n () => ({\n focus() {\n const errorIndex = findIndex(internalTags, ({ error }) => error?.key || error?.value);\n if (errorIndex !== -1) {\n const refArray = internalTags[errorIndex].error?.key ? keyInputRefs : valueInputRefs;\n refArray.current[errorIndex]?.focus();\n }\n },\n }),\n [internalTags]\n );\n\n const validateAndFire = useCallback(\n (newTags: ReadonlyArray<TagEditorProps.Tag>) => {\n fireNonCancelableEvent(onChange, {\n tags: newTags,\n valid: !validate(\n newTags,\n keyDirtyStateRef.current,\n i18n,\n i18nStrings,\n allowedCharacterPattern ? new RegExp(allowedCharacterPattern) : undefined\n ).some(error => error),\n });\n },\n [onChange, i18n, i18nStrings, allowedCharacterPattern]\n );\n\n const onAddButtonClick = () => {\n validateAndFire([...tags, { key: '', value: '', existing: false }]);\n focusEventRef.current = () => {\n keyInputRefs.current[tags.length]?.focus();\n };\n };\n\n const onRemoveButtonClick = useStableCallback(\n ({ detail }: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>) => {\n const existing = tags[detail.itemIndex].existing;\n validateAndFire([\n ...tags.slice(0, detail.itemIndex),\n ...(existing ? [{ ...tags[detail.itemIndex], markedForRemoval: true }] : []),\n ...tags.slice(detail.itemIndex + 1),\n ]);\n if (existing) {\n focusEventRef.current = () => {\n undoButtonRefs.current[detail.itemIndex]?.focus();\n };\n } else {\n keyDirtyStateRef.current.splice(detail.itemIndex, 1);\n const nextKey = keyInputRefs.current[detail.itemIndex + 1];\n if (nextKey) {\n // if next key is present, focus _current_ key which will be replaced by next after state update\n keyInputRefs.current[detail.itemIndex]?.focus();\n } else if (detail.itemIndex > 0) {\n // otherwise focus previous key/value/undo button\n const previousIsExisting = tags[detail.itemIndex - 1].existing;\n if (previousIsExisting) {\n if (tags[detail.itemIndex - 1].markedForRemoval) {\n undoButtonRefs.current[detail.itemIndex - 1]?.focus();\n } else {\n valueInputRefs.current[detail.itemIndex - 1]?.focus();\n }\n } else {\n keyInputRefs.current[detail.itemIndex - 1]?.focus();\n }\n } else {\n // or the 'add' button\n attributeEditorRef.current?.focusAddButton();\n }\n }\n }\n );\n\n const onKeyChange = useStableCallback((value: string, row: number) => {\n keyDirtyStateRef.current[row] = true;\n validateAndFire([...tags.slice(0, row), { ...tags[row], key: value }, ...tags.slice(row + 1)]);\n });\n\n const onKeyBlur = useStableCallback((row: number) => {\n keyDirtyStateRef.current[row] = true;\n // Force re-render by providing a new array reference\n validateAndFire([...tags]);\n });\n\n const onValueChange = useStableCallback((value: string, row: number) => {\n validateAndFire([...tags.slice(0, row), { ...tags[row], value }, ...tags.slice(row + 1)]);\n });\n\n const onUndoRemoval = useStableCallback((row: number) => {\n validateAndFire([...tags.slice(0, row), { ...tags[row], markedForRemoval: false }, ...tags.slice(row + 1)]);\n focusEventRef.current = () => {\n attributeEditorRef.current?.focusRemoveButton(row);\n };\n });\n\n const definition = useMemo(\n () => [\n {\n label: i18n('i18nStrings.keyHeader', i18nStrings?.keyHeader),\n control: ({ tag }: InternalTag, row: number) => (\n <TagControl\n row={row}\n value={tag.key}\n readOnly={tag.existing}\n limit={200}\n defaultOptions={[]}\n placeholder={i18n('i18nStrings.keyPlaceholder', i18nStrings?.keyPlaceholder)}\n errorText={i18n('i18nStrings.keysSuggestionError', i18nStrings?.keysSuggestionError)}\n loadingText={i18n('i18nStrings.keysSuggestionLoading', i18nStrings?.keysSuggestionLoading)}\n suggestionText={i18n('i18nStrings.keySuggestion', i18nStrings?.keySuggestion)}\n tooManySuggestionText={i18n('i18nStrings.tooManyKeysSuggestion', i18nStrings?.tooManyKeysSuggestion)}\n enteredTextLabel={i18nStrings?.enteredKeyLabel}\n clearAriaLabel={i18nStrings?.clearAriaLabel}\n onRequest={keysRequest}\n onChange={onKeyChange}\n onBlur={onKeyBlur}\n initialOptionsRef={initialKeyOptionsRef}\n ref={ref => {\n keyInputRefs.current[row] = ref;\n }}\n />\n ),\n errorText: ({ error }: InternalTag) => error?.key,\n },\n {\n label: (\n <span>\n {i18n('i18nStrings.valueHeader', i18nStrings?.valueHeader)} -{' '}\n <i>{i18n('i18nStrings.optional', i18nStrings?.optional)}</i>\n </span>\n ),\n control: ({ tag }: InternalTag, row: number) =>\n tag.markedForRemoval ? (\n <div role=\"alert\">\n <InternalBox margin={{ top: 'xxs' }}>\n {i18n('i18nStrings.undoPrompt', i18nStrings?.undoPrompt)}{' '}\n <UndoButton\n onClick={() => onUndoRemoval(row)}\n ref={elem => {\n undoButtonRefs.current[row] = elem;\n }}\n >\n {i18n('i18nStrings.undoButton', i18nStrings?.undoButton)}\n </UndoButton>\n </InternalBox>\n </div>\n ) : (\n <TagControl\n row={row}\n value={tag.value}\n readOnly={false}\n limit={200}\n defaultOptions={tag.valueSuggestionOptions ?? []}\n placeholder={i18n('i18nStrings.valuePlaceholder', i18nStrings?.valuePlaceholder)}\n errorText={i18n('i18nStrings.valuesSuggestionError', i18nStrings?.valuesSuggestionError)}\n loadingText={i18n('i18nStrings.valuesSuggestionLoading', i18nStrings?.valuesSuggestionLoading)}\n suggestionText={i18n('i18nStrings.valueSuggestion', i18nStrings?.valueSuggestion)}\n tooManySuggestionText={i18n(\n 'i18nStrings.tooManyValuesSuggestion',\n i18nStrings?.tooManyValuesSuggestion\n )}\n enteredTextLabel={i18nStrings?.enteredValueLabel}\n clearAriaLabel={i18nStrings?.clearAriaLabel}\n filteringKey={tag.key}\n onRequest={valuesRequest && (value => valuesRequest(tag.key, value))}\n onChange={onValueChange}\n ref={ref => {\n valueInputRefs.current[row] = ref;\n }}\n />\n ),\n errorText: ({ error }: InternalTag) => error?.value,\n },\n ],\n [i18n, i18nStrings, keysRequest, onKeyChange, onKeyBlur, valuesRequest, onValueChange, onUndoRemoval]\n );\n\n const forwardedI18nStrings = useMemo<AttributeEditorProps.I18nStrings<InternalTag>>(\n () => ({\n errorIconAriaLabel: i18nStrings?.errorIconAriaLabel,\n itemRemovedAriaLive: i18nStrings?.itemRemovedAriaLive,\n removeButtonAriaLabel: i18n(\n 'i18nStrings.removeButtonAriaLabel',\n i18nStrings?.removeButtonAriaLabel && (({ tag }) => i18nStrings.removeButtonAriaLabel!(tag)),\n format =>\n ({ tag }) =>\n format({ tag__key: tag.key })\n ),\n }),\n [i18nStrings, i18n]\n );\n\n if (loading) {\n return (\n <div className={styles.root} ref={baseComponentProps.__internalRootRef}>\n <InternalStatusIndicator className={styles.loading} type=\"loading\">\n <InternalLiveRegion tagName=\"span\">{i18n('i18nStrings.loading', i18nStrings?.loading)}</InternalLiveRegion>\n </InternalStatusIndicator>\n </div>\n );\n }\n\n const baseProps = getBaseProps(restProps);\n return (\n <InternalAttributeEditor<InternalTag>\n {...baseProps}\n {...baseComponentProps}\n ref={attributeEditorRef}\n className={clsx(styles.root, baseProps.className)}\n items={internalTags}\n isItemRemovable={isItemRemovable}\n onAddButtonClick={onAddButtonClick}\n onRemoveButtonClick={onRemoveButtonClick}\n addButtonText={i18n('i18nStrings.addButton', i18nStrings?.addButton) ?? ''}\n removeButtonText={i18nStrings?.removeButton}\n disableAddButton={remainingTags <= 0}\n empty={i18n('i18nStrings.emptyTags', i18nStrings?.emptyTags)}\n addButtonVariant=\"normal\"\n additionalInfo={\n remainingTags < 0 ? (\n <FormFieldError errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {i18n('i18nStrings.tagLimitExceeded', i18nStrings?.tagLimitExceeded?.(tagLimit), format =>\n format({ tagLimit })\n ) ?? ''}\n </FormFieldError>\n ) : remainingTags === 0 ? (\n i18n('i18nStrings.tagLimitReached', i18nStrings?.tagLimitReached?.(tagLimit), format =>\n format({ tagLimit })\n ) ?? ''\n ) : (\n i18n('i18nStrings.tagLimit', i18nStrings?.tagLimit?.(remainingTags, tagLimit), format =>\n format({ tagLimitAvailable: `${remainingTags === tagLimit}`, availableTags: remainingTags, tagLimit })\n )\n )\n }\n definition={definition}\n i18nStrings={forwardedI18nStrings}\n />\n );\n }\n);\n\napplyDisplayName(TagEditor, 'TagEditor');\nexport default TagEditor;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tag-editor/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAGlF,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AAEnE,OAAO,WAAW,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAA4B,MAAM,oBAAoB,CAAC;AACtF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C,CAAC,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,CACxB,CAAC,MAAA,IAAI,CAAC,6BAA6B,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,eAAe,4DAAG,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,CACtF,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CACrB,mCAAI,EAAE,CAAC,CACT,CAAC,CAAC,CAAC,CACF,IAAI,CAAC,sBAAsB,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,QAAQ,4DAAG,aAAa,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,EAAE,CACtF,MAAM,CAAC,EAAE,iBAAiB,EAAE,GAAG,aAAa,KAAK,QAAQ,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,CACvG,CACF,EAEH,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,oBAAoB,IACjC,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACzC,eAAe,SAAS,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useCallback, useImperativeHandle, useLayoutEffect, useMemo, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\nimport { AttributeEditorProps } from '../attribute-editor/interfaces';\nimport InternalAttributeEditor from '../attribute-editor/internal';\nimport { AutosuggestProps } from '../autosuggest/interfaces';\nimport InternalBox from '../box/internal';\nimport { FormFieldError } from '../form-field/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { InputProps } from '../input/interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent, NonCancelableCustomEvent } from '../internal/events';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport InternalLiveRegion from '../live-region/internal';\nimport InternalStatusIndicator from '../status-indicator/internal';\nimport { TagEditorProps } from './interfaces';\nimport { TagControl, UndoButton } from './internal';\nimport { findIndex, useMemoizedArray } from './utils';\nimport { getTagsDiff } from './utils';\nimport { validate, ValidationError } from './validation';\n\nimport styles from './styles.css.js';\n\nexport { TagEditorProps, getTagsDiff };\n\ninterface InternalTag {\n tag: TagEditorProps.Tag;\n error?: ValidationError;\n}\n\nconst isItemRemovable = ({ tag }: InternalTag) => !tag.markedForRemoval;\n\nconst TagEditor = React.forwardRef(\n (\n {\n tags = [],\n i18nStrings,\n loading = false,\n tagLimit = 50,\n allowedCharacterPattern,\n keysRequest,\n valuesRequest,\n onChange,\n ...restProps\n }: TagEditorProps,\n ref: React.Ref<TagEditorProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('TagEditor', {\n props: { tagLimit, allowedCharacterPattern },\n });\n const i18n = useInternalI18n('tag-editor');\n\n const remainingTags = tagLimit - tags.filter(tag => !tag.markedForRemoval).length;\n\n const attributeEditorRef = useRef<AttributeEditorProps.Ref>(null);\n const keyInputRefs = useRef<(InputProps.Ref | undefined | null)[]>([]);\n const valueInputRefs = useRef<(InputProps.Ref | undefined | null)[]>([]);\n const undoButtonRefs = useRef<(HTMLAnchorElement | undefined | null)[]>([]);\n\n const initialKeyOptionsRef = useRef<AutosuggestProps.Options>([]);\n const keyDirtyStateRef = useRef<boolean[]>([]);\n const focusEventRef = useRef<() => void>();\n\n useLayoutEffect(() => {\n focusEventRef.current?.apply(undefined);\n focusEventRef.current = undefined;\n });\n\n const errors = validate(\n tags,\n keyDirtyStateRef.current,\n i18n,\n i18nStrings,\n allowedCharacterPattern ? new RegExp(allowedCharacterPattern) : undefined\n );\n\n const internalTags = useMemoizedArray(\n tags.map((tag, i) => ({ tag, error: errors[i] })),\n (prev, next) => {\n return prev.tag === next.tag && prev.error?.key === next.error?.key && prev.error?.value === next.error?.value;\n }\n );\n\n useImperativeHandle(\n ref,\n () => ({\n focus() {\n const errorIndex = findIndex(internalTags, ({ error }) => error?.key || error?.value);\n if (errorIndex !== -1) {\n const refArray = internalTags[errorIndex].error?.key ? keyInputRefs : valueInputRefs;\n refArray.current[errorIndex]?.focus();\n }\n },\n }),\n [internalTags]\n );\n\n const validateAndFire = useCallback(\n (newTags: ReadonlyArray<TagEditorProps.Tag>) => {\n fireNonCancelableEvent(onChange, {\n tags: newTags,\n valid: !validate(\n newTags,\n keyDirtyStateRef.current,\n i18n,\n i18nStrings,\n allowedCharacterPattern ? new RegExp(allowedCharacterPattern) : undefined\n ).some(error => error),\n });\n },\n [onChange, i18n, i18nStrings, allowedCharacterPattern]\n );\n\n const onAddButtonClick = () => {\n validateAndFire([...tags, { key: '', value: '', existing: false }]);\n focusEventRef.current = () => {\n keyInputRefs.current[tags.length]?.focus();\n };\n };\n\n const onRemoveButtonClick = useStableCallback(\n ({ detail }: NonCancelableCustomEvent<AttributeEditorProps.RemoveButtonClickDetail>) => {\n const existing = tags[detail.itemIndex].existing;\n validateAndFire([\n ...tags.slice(0, detail.itemIndex),\n ...(existing ? [{ ...tags[detail.itemIndex], markedForRemoval: true }] : []),\n ...tags.slice(detail.itemIndex + 1),\n ]);\n if (existing) {\n focusEventRef.current = () => {\n undoButtonRefs.current[detail.itemIndex]?.focus();\n };\n } else {\n keyDirtyStateRef.current.splice(detail.itemIndex, 1);\n const nextKey = keyInputRefs.current[detail.itemIndex + 1];\n if (nextKey) {\n // if next key is present, focus _current_ key which will be replaced by next after state update\n keyInputRefs.current[detail.itemIndex]?.focus();\n } else if (detail.itemIndex > 0) {\n // otherwise focus previous key/value/undo button\n const previousIsExisting = tags[detail.itemIndex - 1].existing;\n if (previousIsExisting) {\n if (tags[detail.itemIndex - 1].markedForRemoval) {\n undoButtonRefs.current[detail.itemIndex - 1]?.focus();\n } else {\n valueInputRefs.current[detail.itemIndex - 1]?.focus();\n }\n } else {\n keyInputRefs.current[detail.itemIndex - 1]?.focus();\n }\n } else {\n // or the 'add' button\n attributeEditorRef.current?.focusAddButton();\n }\n }\n }\n );\n\n const onKeyChange = useStableCallback((value: string, row: number) => {\n keyDirtyStateRef.current[row] = true;\n validateAndFire([...tags.slice(0, row), { ...tags[row], key: value }, ...tags.slice(row + 1)]);\n });\n\n const onKeyBlur = useStableCallback((row: number) => {\n keyDirtyStateRef.current[row] = true;\n // Force re-render by providing a new array reference\n validateAndFire([...tags]);\n });\n\n const onValueChange = useStableCallback((value: string, row: number) => {\n validateAndFire([...tags.slice(0, row), { ...tags[row], value }, ...tags.slice(row + 1)]);\n });\n\n const onUndoRemoval = useStableCallback((row: number) => {\n validateAndFire([...tags.slice(0, row), { ...tags[row], markedForRemoval: false }, ...tags.slice(row + 1)]);\n focusEventRef.current = () => {\n attributeEditorRef.current?.focusRemoveButton(row);\n };\n });\n\n const definition = useMemo(\n () => [\n {\n label: i18n('i18nStrings.keyHeader', i18nStrings?.keyHeader),\n control: ({ tag }: InternalTag, row: number) => (\n <TagControl\n row={row}\n value={tag.key}\n readOnly={tag.existing}\n limit={200}\n defaultOptions={[]}\n placeholder={i18n('i18nStrings.keyPlaceholder', i18nStrings?.keyPlaceholder)}\n errorText={i18n('i18nStrings.keysSuggestionError', i18nStrings?.keysSuggestionError)}\n loadingText={i18n('i18nStrings.keysSuggestionLoading', i18nStrings?.keysSuggestionLoading)}\n suggestionText={i18n('i18nStrings.keySuggestion', i18nStrings?.keySuggestion)}\n tooManySuggestionText={i18n('i18nStrings.tooManyKeysSuggestion', i18nStrings?.tooManyKeysSuggestion)}\n enteredTextLabel={i18nStrings?.enteredKeyLabel}\n clearAriaLabel={i18nStrings?.clearAriaLabel}\n onRequest={keysRequest}\n onChange={onKeyChange}\n onBlur={onKeyBlur}\n initialOptionsRef={initialKeyOptionsRef}\n ref={ref => {\n keyInputRefs.current[row] = ref;\n }}\n />\n ),\n errorText: ({ error }: InternalTag) => error?.key,\n },\n {\n label: (\n <span>\n {i18n('i18nStrings.valueHeader', i18nStrings?.valueHeader)} -{' '}\n <i>{i18n('i18nStrings.optional', i18nStrings?.optional)}</i>\n </span>\n ),\n control: ({ tag }: InternalTag, row: number) =>\n tag.markedForRemoval ? (\n <div role=\"alert\">\n <InternalBox margin={{ top: 'xxs' }}>\n {i18n('i18nStrings.undoPrompt', i18nStrings?.undoPrompt)}{' '}\n <UndoButton\n onClick={() => onUndoRemoval(row)}\n ref={elem => {\n undoButtonRefs.current[row] = elem;\n }}\n >\n {i18n('i18nStrings.undoButton', i18nStrings?.undoButton)}\n </UndoButton>\n </InternalBox>\n </div>\n ) : (\n <TagControl\n row={row}\n value={tag.value}\n readOnly={false}\n limit={200}\n defaultOptions={tag.valueSuggestionOptions ?? []}\n placeholder={i18n('i18nStrings.valuePlaceholder', i18nStrings?.valuePlaceholder)}\n errorText={i18n('i18nStrings.valuesSuggestionError', i18nStrings?.valuesSuggestionError)}\n loadingText={i18n('i18nStrings.valuesSuggestionLoading', i18nStrings?.valuesSuggestionLoading)}\n suggestionText={i18n('i18nStrings.valueSuggestion', i18nStrings?.valueSuggestion)}\n tooManySuggestionText={i18n(\n 'i18nStrings.tooManyValuesSuggestion',\n i18nStrings?.tooManyValuesSuggestion\n )}\n enteredTextLabel={i18nStrings?.enteredValueLabel}\n clearAriaLabel={i18nStrings?.clearAriaLabel}\n filteringKey={tag.key}\n onRequest={valuesRequest && (value => valuesRequest(tag.key, value))}\n onChange={onValueChange}\n ref={ref => {\n valueInputRefs.current[row] = ref;\n }}\n />\n ),\n errorText: ({ error }: InternalTag) => error?.value,\n },\n ],\n [i18n, i18nStrings, keysRequest, onKeyChange, onKeyBlur, valuesRequest, onValueChange, onUndoRemoval]\n );\n\n const forwardedI18nStrings = useMemo<AttributeEditorProps.I18nStrings<InternalTag>>(\n () => ({\n errorIconAriaLabel: i18nStrings?.errorIconAriaLabel,\n itemRemovedAriaLive: i18nStrings?.itemRemovedAriaLive,\n removeButtonAriaLabel: i18n(\n 'i18nStrings.removeButtonAriaLabel',\n i18nStrings?.removeButtonAriaLabel && (({ tag }) => i18nStrings.removeButtonAriaLabel!(tag)),\n format =>\n ({ tag }) =>\n format({ tag__key: tag.key })\n ),\n }),\n [i18nStrings, i18n]\n );\n\n if (loading) {\n return (\n <div className={styles.root} ref={baseComponentProps.__internalRootRef}>\n <InternalStatusIndicator className={styles.loading} type=\"loading\">\n <InternalLiveRegion tagName=\"span\">{i18n('i18nStrings.loading', i18nStrings?.loading)}</InternalLiveRegion>\n </InternalStatusIndicator>\n </div>\n );\n }\n\n const baseProps = getBaseProps(restProps);\n return (\n <InternalAttributeEditor<InternalTag>\n {...baseProps}\n {...baseComponentProps}\n ref={attributeEditorRef}\n className={clsx(styles.root, baseProps.className)}\n items={internalTags}\n isItemRemovable={isItemRemovable}\n onAddButtonClick={onAddButtonClick}\n onRemoveButtonClick={onRemoveButtonClick}\n addButtonText={i18n('i18nStrings.addButton', i18nStrings?.addButton) ?? ''}\n removeButtonText={i18nStrings?.removeButton}\n disableAddButton={remainingTags <= 0}\n empty={i18n('i18nStrings.emptyTags', i18nStrings?.emptyTags)}\n addButtonVariant=\"normal\"\n additionalInfo={\n remainingTags < 0 ? (\n <FormFieldError errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {i18n('i18nStrings.tagLimitExceeded', i18nStrings?.tagLimitExceeded?.(tagLimit), format =>\n format({ tagLimit })\n ) ?? ''}\n </FormFieldError>\n ) : remainingTags === 0 ? (\n (i18n('i18nStrings.tagLimitReached', i18nStrings?.tagLimitReached?.(tagLimit), format =>\n format({ tagLimit })\n ) ?? '')\n ) : (\n i18n('i18nStrings.tagLimit', i18nStrings?.tagLimit?.(remainingTags, tagLimit), format =>\n format({ tagLimitAvailable: `${remainingTags === tagLimit}`, availableTags: remainingTags, tagLimit })\n )\n )\n }\n definition={definition}\n i18nStrings={forwardedI18nStrings}\n />\n );\n }\n);\n\napplyDisplayName(TagEditor, 'TagEditor');\nexport default TagEditor;\n"]}
@@ -2,127 +2,128 @@ import { AutosuggestProps } from '../autosuggest/interfaces';
2
2
  import { BaseComponentProps } from '../internal/base-component';
3
3
  import { NonCancelableEventHandler } from '../internal/events';
4
4
  export interface TagEditorProps extends BaseComponentProps {
5
- /**
6
- * Specifies an array of tags that are displayed to the user. Each tag item has the following properties:
7
- * - `key` (string) - The key of the tag that's displayed in the corresponding key field.
8
- * - `value` (string) - The value of the tag that's displayed in the corresponding value field.
9
- * - `existing` (boolean) - Specifies if this is an existing tag for the resource.
10
- * When set to `true`, if the tag is deleted its `markedForRemoval` property is to `true`.
11
- * When set to `false`, deletion of the tag removes the tag from the `tags` list.
12
- * - `markedForRemoval` (boolean) - Specifies if this tag has been marked for removal.
13
- * This property is set to `true` by the component when a user removes an existing tag.
14
- * The item will remain in the `tags` list. When set to `true`, the user is presented with the option to undo the removal operation.
15
- * - `valueSuggestionOptions` (Array<AutosuggestProps.Option>) - An array of autosuggest suggestion options associated with the specified tag key.
16
- */
17
- tags?: ReadonlyArray<TagEditorProps.Tag>;
18
- /**
19
- * An object containing all the necessary localized strings required by the component.
20
- * @i18n
21
- */
22
- i18nStrings?: TagEditorProps.I18nStrings;
23
- /**
24
- * Renders the component in a loading state.
25
- */
26
- loading?: boolean;
27
- /**
28
- * Specifies the maximum number of tags that a customer can add.
29
- */
30
- tagLimit?: number;
31
- /**
32
- * Specifies a regular expression string that overrides the default acceptable
33
- * character validation. You should use this property only when absolutely necessary.
34
- */
35
- allowedCharacterPattern?: string;
36
- /**
37
- * Specifies a function that returns all the keys for a resource.
38
- * The expected return type of the function should be a promise that
39
- * resolves to a list of strings of all the keys (for example, `['key1', 'key2']`).
40
- */
41
- keysRequest?: (key: string) => Promise<ReadonlyArray<string>>;
42
- /**
43
- * Specifies a function that returns all the values for a specified key
44
- * of a resource. The expected return type of the function should be a promise
45
- * that resolves to a list of strings of all the values (for example, `['value1', 'value2']`).
46
- *
47
- * You should return a rejected promise when the `key` parameter is an empty string.
48
- */
49
- valuesRequest?: (key: string, value: string) => Promise<ReadonlyArray<string>>;
50
- /**
51
- * Called when any tag operation occurs.
52
- * The event `detail` object contains the full updated state of `tags`,
53
- * and whether the component is in a `valid` state.
54
- */
55
- onChange?: NonCancelableEventHandler<TagEditorProps.ChangeDetail>;
56
- }
57
- export declare namespace TagEditorProps {
58
- interface Tag {
59
5
  /**
60
- * The key of the tag that will be displayed in the corresponding key field.
6
+ * Specifies an array of tags that are displayed to the user. Each tag item has the following properties:
7
+ * - `key` (string) - The key of the tag that's displayed in the corresponding key field.
8
+ * - `value` (string) - The value of the tag that's displayed in the corresponding value field.
9
+ * - `existing` (boolean) - Specifies if this is an existing tag for the resource.
10
+ * When set to `true`, if the tag is deleted its `markedForRemoval` property is to `true`.
11
+ * When set to `false`, deletion of the tag removes the tag from the `tags` list.
12
+ * - `markedForRemoval` (boolean) - Specifies if this tag has been marked for removal.
13
+ * This property is set to `true` by the component when a user removes an existing tag.
14
+ * The item will remain in the `tags` list. When set to `true`, the user is presented with the option to undo the removal operation.
15
+ * - `valueSuggestionOptions` (Array<AutosuggestProps.Option>) - An array of autosuggest suggestion options associated with the specified tag key.
61
16
  */
62
- key: string;
17
+ tags?: ReadonlyArray<TagEditorProps.Tag>;
63
18
  /**
64
- * The value of the tag that will be displayed in the corresponding value field.
19
+ * An object containing all the necessary localized strings required by the component.
20
+ * @i18n
65
21
  */
66
- value: string;
22
+ i18nStrings?: TagEditorProps.I18nStrings;
67
23
  /**
68
- * Whether this is an existing tag for the resource. If set to `true`, deletion of the tag will set the `markedForRemoval` property to `true`. If set to `false`, deletion of the tag will remove the tag from the `tags` list.
24
+ * Renders the component in a loading state.
69
25
  */
70
- existing: boolean;
26
+ loading?: boolean;
71
27
  /**
72
- * Whether this tag has been marked for removal. This property will be set to `true` by the component when a user tries to remove an existing tag. The item will remain in the `tags` list. When set to `true`, the user will be presented with the option to undo the removal operation.
28
+ * Specifies the maximum number of tags that a customer can add.
73
29
  */
74
- markedForRemoval?: boolean;
30
+ tagLimit?: number;
75
31
  /**
76
- * An array of suggested values for the specified tag key.
32
+ * Specifies a regular expression string that overrides the default acceptable
33
+ * character validation. You should use this property only when absolutely necessary.
77
34
  */
78
- valueSuggestionOptions?: ReadonlyArray<AutosuggestProps.Option>;
79
- }
80
- interface I18nStrings {
81
- keyPlaceholder?: string;
82
- valuePlaceholder?: string;
83
- addButton?: string;
84
- removeButton?: string;
85
- undoButton?: string;
86
- undoPrompt?: string;
87
- loading?: string;
88
- keyHeader?: string;
89
- valueHeader?: string;
90
- optional?: string;
91
- keySuggestion?: string;
92
- valueSuggestion?: string;
93
- tooManyKeysSuggestion?: string;
94
- tooManyValuesSuggestion?: string;
95
- emptyTags?: string;
96
- errorIconAriaLabel?: string;
97
- keysSuggestionLoading?: string;
98
- keysSuggestionError?: string;
99
- valuesSuggestionError?: string;
100
- valuesSuggestionLoading?: string;
101
- emptyKeyError?: string;
102
- maxKeyCharLengthError?: string;
103
- maxValueCharLengthError?: string;
104
- duplicateKeyError?: string;
105
- invalidKeyError?: string;
106
- invalidValueError?: string;
107
- awsPrefixError?: string;
108
- clearAriaLabel?: string;
109
- itemRemovedAriaLive?: string;
110
- tagLimit?: (availableTags: number, tagLimit: number) => string;
111
- tagLimitReached?: (tagLimit: number) => string;
112
- tagLimitExceeded?: (tagLimit: number) => string;
113
- enteredKeyLabel?: (enteredText: string) => string;
114
- enteredValueLabel?: (enteredText: string) => string;
115
- removeButtonAriaLabel?: (item: TagEditorProps.Tag) => string;
116
- }
117
- interface ChangeDetail {
118
- tags: ReadonlyArray<TagEditorProps.Tag>;
119
- valid: boolean;
120
- }
121
- interface Ref {
35
+ allowedCharacterPattern?: string;
122
36
  /**
123
- * Focuses the first error within the component.
124
- * If no error is present, no element is focused.
37
+ * Specifies a function that returns all the keys for a resource.
38
+ * The expected return type of the function should be a promise that
39
+ * resolves to a list of strings of all the keys (for example, `['key1', 'key2']`).
125
40
  */
126
- focus(): void;
127
- }
128
- }
41
+ keysRequest?: (key: string) => Promise<ReadonlyArray<string>>;
42
+ /**
43
+ * Specifies a function that returns all the values for a specified key
44
+ * of a resource. The expected return type of the function should be a promise
45
+ * that resolves to a list of strings of all the values (for example, `['value1', 'value2']`).
46
+ *
47
+ * You should return a rejected promise when the `key` parameter is an empty string.
48
+ */
49
+ valuesRequest?: (key: string, value: string) => Promise<ReadonlyArray<string>>;
50
+ /**
51
+ * Called when any tag operation occurs.
52
+ * The event `detail` object contains the full updated state of `tags`,
53
+ * and whether the component is in a `valid` state.
54
+ */
55
+ onChange?: NonCancelableEventHandler<TagEditorProps.ChangeDetail>;
56
+ }
57
+ export declare namespace TagEditorProps {
58
+ interface Tag {
59
+ /**
60
+ * The key of the tag that will be displayed in the corresponding key field.
61
+ */
62
+ key: string;
63
+ /**
64
+ * The value of the tag that will be displayed in the corresponding value field.
65
+ */
66
+ value: string;
67
+ /**
68
+ * Whether this is an existing tag for the resource. If set to `true`, deletion of the tag will set the `markedForRemoval` property to `true`. If set to `false`, deletion of the tag will remove the tag from the `tags` list.
69
+ */
70
+ existing: boolean;
71
+ /**
72
+ * Whether this tag has been marked for removal. This property will be set to `true` by the component when a user tries to remove an existing tag. The item will remain in the `tags` list. When set to `true`, the user will be presented with the option to undo the removal operation.
73
+ */
74
+ markedForRemoval?: boolean;
75
+ /**
76
+ * An array of suggested values for the specified tag key.
77
+ */
78
+ valueSuggestionOptions?: ReadonlyArray<AutosuggestProps.Option>;
79
+ }
80
+ interface I18nStrings {
81
+ keyPlaceholder?: string;
82
+ valuePlaceholder?: string;
83
+ addButton?: string;
84
+ removeButton?: string;
85
+ undoButton?: string;
86
+ undoPrompt?: string;
87
+ loading?: string;
88
+ keyHeader?: string;
89
+ valueHeader?: string;
90
+ optional?: string;
91
+ keySuggestion?: string;
92
+ valueSuggestion?: string;
93
+ tooManyKeysSuggestion?: string;
94
+ tooManyValuesSuggestion?: string;
95
+ emptyTags?: string;
96
+ errorIconAriaLabel?: string;
97
+ keysSuggestionLoading?: string;
98
+ keysSuggestionError?: string;
99
+ valuesSuggestionError?: string;
100
+ valuesSuggestionLoading?: string;
101
+ emptyKeyError?: string;
102
+ maxKeyCharLengthError?: string;
103
+ maxValueCharLengthError?: string;
104
+ duplicateKeyError?: string;
105
+ invalidKeyError?: string;
106
+ invalidValueError?: string;
107
+ awsPrefixError?: string;
108
+ clearAriaLabel?: string;
109
+ itemRemovedAriaLive?: string;
110
+ tagLimit?: (availableTags: number, tagLimit: number) => string;
111
+ tagLimitReached?: (tagLimit: number) => string;
112
+ tagLimitExceeded?: (tagLimit: number) => string;
113
+ enteredKeyLabel?: (enteredText: string) => string;
114
+ enteredValueLabel?: (enteredText: string) => string;
115
+ removeButtonAriaLabel?: (item: TagEditorProps.Tag) => string;
116
+ }
117
+ interface ChangeDetail {
118
+ tags: ReadonlyArray<TagEditorProps.Tag>;
119
+ valid: boolean;
120
+ }
121
+ interface Ref {
122
+ /**
123
+ * Focuses the first error within the component.
124
+ * If no error is present, no element is focused.
125
+ */
126
+ focus(): void;
127
+ }
128
+ }
129
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -2,28 +2,29 @@ import React from 'react';
2
2
  import { AutosuggestProps } from '../autosuggest/interfaces';
3
3
  import { InputProps } from '../input/interfaces';
4
4
  export interface TagControlProps {
5
- row: number;
6
- value: string;
7
- readOnly: boolean;
8
- defaultOptions: AutosuggestProps.Options;
9
- placeholder?: string;
10
- errorText?: string;
11
- loadingText?: string;
12
- suggestionText?: string;
13
- tooManySuggestionText?: string;
14
- limit: number;
15
- filteringKey?: string;
16
- clearAriaLabel?: string;
17
- enteredTextLabel?: (value: string) => string;
18
- onChange: (value: string, row: number) => void;
19
- onBlur?: (row: number) => void;
20
- onRequest?: (value: string) => Promise<readonly string[]>;
21
- initialOptionsRef?: React.MutableRefObject<AutosuggestProps.Options>;
5
+ row: number;
6
+ value: string;
7
+ readOnly: boolean;
8
+ defaultOptions: AutosuggestProps.Options;
9
+ placeholder?: string;
10
+ errorText?: string;
11
+ loadingText?: string;
12
+ suggestionText?: string;
13
+ tooManySuggestionText?: string;
14
+ limit: number;
15
+ filteringKey?: string;
16
+ clearAriaLabel?: string;
17
+ enteredTextLabel?: (value: string) => string;
18
+ onChange: (value: string, row: number) => void;
19
+ onBlur?: (row: number) => void;
20
+ onRequest?: (value: string) => Promise<readonly string[]>;
21
+ initialOptionsRef?: React.MutableRefObject<AutosuggestProps.Options>;
22
22
  }
23
23
  export declare const TagControl: React.ForwardRefExoticComponent<TagControlProps & React.RefAttributes<InputProps.Ref>>;
24
24
  interface UndoButtonProps {
25
- children: React.ReactNode;
26
- onClick: () => void;
25
+ children: React.ReactNode;
26
+ onClick: () => void;
27
27
  }
28
28
  export declare const UndoButton: React.ForwardRefExoticComponent<UndoButtonProps & React.RefAttributes<HTMLAnchorElement>>;
29
- export {};
29
+ export {};
30
+ //# sourceMappingURL=internal.d.ts.map
@@ -5,8 +5,8 @@ import { TagEditorProps } from './interfaces';
5
5
  export declare function findIndex<T>(array: ReadonlyArray<T>, condition: (t: T) => unknown): number;
6
6
  export declare function useMemoizedArray<T>(array: ReadonlyArray<T>, isEqual: (prev: T, next: T) => boolean): ReadonlyArray<T>;
7
7
  interface GetTagsDiffResult {
8
- created: Record<string, string>;
9
- removed: string[];
8
+ created: Record<string, string>;
9
+ removed: string[];
10
10
  }
11
11
  /**
12
12
  * Compares the initial tags with the current tags passed to the tag editor
@@ -25,4 +25,5 @@ interface GetTagsDiffResult {
25
25
  * Updated tags are treated as both `created` and `removed` tags.
26
26
  */
27
27
  export declare function getTagsDiff(initialTags: readonly TagEditorProps.Tag[], tags: readonly TagEditorProps.Tag[]): GetTagsDiffResult;
28
- export {};
28
+ export {};
29
+ //# sourceMappingURL=utils.d.ts.map
@@ -1,8 +1,8 @@
1
1
  import { ComponentFormatFunction } from '../i18n/context';
2
2
  import { TagEditorProps } from './interfaces';
3
3
  export interface ValidationError {
4
- key?: string;
5
- value?: string;
4
+ key?: string;
5
+ value?: string;
6
6
  }
7
7
  export declare function validate(tags: ReadonlyArray<TagEditorProps.Tag>, keyDirtyState: ReadonlyArray<boolean>, i18n: ComponentFormatFunction<'tag-editor'>, i18nStrings: TagEditorProps.I18nStrings | undefined, charRegex?: RegExp): ReadonlyArray<ValidationError | undefined>;
8
8
  export declare const awsPrefixCheck: (value: string) => boolean;
@@ -10,4 +10,5 @@ export declare const emptyKeyCheck: (value: string) => boolean;
10
10
  export declare const maxKeyLengthCheck: (value: string) => boolean | "";
11
11
  export declare const duplicateKeyCheck: (value: string, keyCache?: Record<string, number | undefined>) => boolean;
12
12
  export declare const maxValueLengthCheck: (value: string) => boolean | "";
13
- export declare const invalidCharCheck: (value: string, validCharRegex?: RegExp) => boolean;
13
+ export declare const invalidCharCheck: (value: string, validCharRegex?: RegExp) => boolean;
14
+ //# sourceMappingURL=validation.d.ts.map
@@ -1,24 +1,24 @@
1
1
  import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
2
2
  import ButtonWrapper from '../button';
3
3
  export default class AlertWrapper extends ComponentWrapper {
4
- static rootSelector: string;
5
- /**
6
- * Returns the container node of the component.
7
- */
8
- findRootElement(): ElementWrapper;
9
- /**
10
- * Returns the dismiss button.
11
- *
12
- * The dismiss button is only rendered when the `dismissible` property is set to `true`.
13
- */
14
- findDismissButton(): ButtonWrapper | null;
15
- /**
16
- * Returns the action button.
17
- *
18
- * The action button is only rendered when the `buttonText` property is set.
19
- */
20
- findActionButton(): ButtonWrapper | null;
21
- findHeader(): ElementWrapper | null;
22
- findContent(): ElementWrapper;
23
- findActionSlot(): ElementWrapper | null;
24
- }
4
+ static rootSelector: string;
5
+ /**
6
+ * Returns the container node of the component.
7
+ */
8
+ findRootElement(): ElementWrapper;
9
+ /**
10
+ * Returns the dismiss button.
11
+ *
12
+ * The dismiss button is only rendered when the `dismissible` property is set to `true`.
13
+ */
14
+ findDismissButton(): ButtonWrapper | null;
15
+ /**
16
+ * Returns the action button.
17
+ *
18
+ * The action button is only rendered when the `buttonText` property is set.
19
+ */
20
+ findActionButton(): ButtonWrapper | null;
21
+ findHeader(): ElementWrapper | null;
22
+ findContent(): ElementWrapper;
23
+ findActionSlot(): ElementWrapper | null;
24
+ }
@@ -1,17 +1,17 @@
1
1
  import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
2
2
  export default class AnchorNavigationWrapper extends ComponentWrapper {
3
- static rootSelector: string;
4
- findAnchorNavigation(): ElementWrapper<HTMLOListElement> | null;
5
- findAnchorNavigationList(): ElementWrapper<HTMLOListElement> | null;
6
- findAnchors(): Array<AnchorItemWrapper>;
7
- findAnchorByIndex(index: number): AnchorItemWrapper | null;
8
- findActiveAnchor(): AnchorItemWrapper | null;
9
- findAnchorLinkByHref(href: string): ElementWrapper<HTMLAnchorElement> | null;
3
+ static rootSelector: string;
4
+ findAnchorNavigation(): ElementWrapper<HTMLOListElement> | null;
5
+ findAnchorNavigationList(): ElementWrapper<HTMLOListElement> | null;
6
+ findAnchors(): Array<AnchorItemWrapper>;
7
+ findAnchorByIndex(index: number): AnchorItemWrapper | null;
8
+ findActiveAnchor(): AnchorItemWrapper | null;
9
+ findAnchorLinkByHref(href: string): ElementWrapper<HTMLAnchorElement> | null;
10
10
  }
11
11
  declare class AnchorItemWrapper extends ComponentWrapper {
12
- findLink(): ElementWrapper<HTMLAnchorElement> | null;
13
- findText(): ElementWrapper | null;
14
- findInfo(): ElementWrapper | null;
15
- isActive(): boolean;
12
+ findLink(): ElementWrapper<HTMLAnchorElement> | null;
13
+ findText(): ElementWrapper | null;
14
+ findInfo(): ElementWrapper | null;
15
+ isActive(): boolean;
16
16
  }
17
- export {};
17
+ export {};
@@ -1,12 +1,12 @@
1
1
  import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom';
2
2
  import ButtonWrapper from '../button';
3
3
  export default class AnnotationWrapper extends ComponentWrapper {
4
- static rootSelector: string;
5
- findNextButton(): ButtonWrapper;
6
- findPreviousButton(): ButtonWrapper;
7
- findFinishButton(): ButtonWrapper;
8
- findStepCounter(): ElementWrapper;
9
- findHeader(): ElementWrapper;
10
- findContent(): ElementWrapper;
11
- findDismissButton(): ButtonWrapper;
12
- }
4
+ static rootSelector: string;
5
+ findNextButton(): ButtonWrapper;
6
+ findPreviousButton(): ButtonWrapper;
7
+ findFinishButton(): ButtonWrapper;
8
+ findStepCounter(): ElementWrapper;
9
+ findHeader(): ElementWrapper;
10
+ findContent(): ElementWrapper;
11
+ findDismissButton(): ButtonWrapper;
12
+ }
@@ -2,35 +2,35 @@ import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-
2
2
  import ButtonDropdownWrapper from '../button-dropdown';
3
3
  import SplitPanelWrapper from '../split-panel';
4
4
  export default class AppLayoutWrapper extends ComponentWrapper {
5
- static rootSelector: string;
6
- findNavigation(): ElementWrapper;
7
- findOpenNavigationPanel(): ElementWrapper | null;
8
- findNavigationToggle(): ElementWrapper<HTMLButtonElement>;
9
- findNavigationClose(): ElementWrapper<HTMLButtonElement>;
10
- findContentRegion(): ElementWrapper;
11
- findNotifications(): ElementWrapper | null;
12
- findBreadcrumbs(): ElementWrapper | null;
13
- findTools(): ElementWrapper;
14
- findOpenToolsPanel(): ElementWrapper | null;
15
- findToolsClose(): ElementWrapper<HTMLButtonElement>;
16
- findToolsToggle(): ElementWrapper<HTMLButtonElement>;
17
- findSplitPanel(): SplitPanelWrapper | null;
18
- findSplitPanelOpenButton(): ElementWrapper | null;
19
- findActiveDrawer(): ElementWrapper | null;
20
- findActiveDrawerCloseButton(): ElementWrapper<HTMLButtonElement> | null;
21
- findDrawersTriggers(): ElementWrapper<HTMLButtonElement>[];
22
- /**
23
- * Finds a drawer trigger by the given id.
24
- *
25
- * @param id id of the trigger to find
26
- * @param options
27
- * * hasBadge (boolean) - If provided, only finds drawers with the badge or without badge respectively
28
- */
29
- findDrawerTriggerById(id: string, options?: {
30
- hasBadge?: boolean;
31
- }): ElementWrapper<HTMLButtonElement> | null;
32
- findDrawersOverflowTrigger(): ButtonDropdownWrapper | null;
33
- findActiveDrawerResizeHandle(): ElementWrapper | null;
34
- findToolbar(): ElementWrapper | null;
35
- findDrawerTriggerTooltip(): ElementWrapper | null;
36
- }
5
+ static rootSelector: string;
6
+ findNavigation(): ElementWrapper;
7
+ findOpenNavigationPanel(): ElementWrapper | null;
8
+ findNavigationToggle(): ElementWrapper<HTMLButtonElement>;
9
+ findNavigationClose(): ElementWrapper<HTMLButtonElement>;
10
+ findContentRegion(): ElementWrapper;
11
+ findNotifications(): ElementWrapper | null;
12
+ findBreadcrumbs(): ElementWrapper | null;
13
+ findTools(): ElementWrapper;
14
+ findOpenToolsPanel(): ElementWrapper | null;
15
+ findToolsClose(): ElementWrapper<HTMLButtonElement>;
16
+ findToolsToggle(): ElementWrapper<HTMLButtonElement>;
17
+ findSplitPanel(): SplitPanelWrapper | null;
18
+ findSplitPanelOpenButton(): ElementWrapper | null;
19
+ findActiveDrawer(): ElementWrapper | null;
20
+ findActiveDrawerCloseButton(): ElementWrapper<HTMLButtonElement> | null;
21
+ findDrawersTriggers(): ElementWrapper<HTMLButtonElement>[];
22
+ /**
23
+ * Finds a drawer trigger by the given id.
24
+ *
25
+ * @param id id of the trigger to find
26
+ * @param options
27
+ * * hasBadge (boolean) - If provided, only finds drawers with the badge or without badge respectively
28
+ */
29
+ findDrawerTriggerById(id: string, options?: {
30
+ hasBadge?: boolean;
31
+ }): ElementWrapper<HTMLButtonElement> | null;
32
+ findDrawersOverflowTrigger(): ButtonDropdownWrapper | null;
33
+ findActiveDrawerResizeHandle(): ElementWrapper | null;
34
+ findToolbar(): ElementWrapper | null;
35
+ findDrawerTriggerTooltip(): ElementWrapper | null;
36
+ }
@@ -1,4 +1,4 @@
1
1
  import AppLayoutWrapper from '../app-layout';
2
2
  export default class AppLayoutToolbarWrapper extends AppLayoutWrapper {
3
- static rootSelector: string;
4
- }
3
+ static rootSelector: string;
4
+ }