@cloudscape-design/components 3.0.1316 → 3.0.1318

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 (668) hide show
  1. package/action-card/interfaces.d.ts +3 -3
  2. package/action-card/interfaces.d.ts.map +1 -1
  3. package/action-card/interfaces.js.map +1 -1
  4. package/alert/interfaces.d.ts +3 -3
  5. package/alert/interfaces.d.ts.map +1 -1
  6. package/alert/interfaces.js.map +1 -1
  7. package/anchor-navigation/interfaces.d.ts +2 -2
  8. package/anchor-navigation/interfaces.d.ts.map +1 -1
  9. package/anchor-navigation/interfaces.js.map +1 -1
  10. package/annotation-context/interfaces.d.ts +1 -1
  11. package/annotation-context/interfaces.d.ts.map +1 -1
  12. package/annotation-context/interfaces.js.map +1 -1
  13. package/app-layout/classic.d.ts +1 -1
  14. package/app-layout/drawer/overflow-menu.d.ts +1 -1
  15. package/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  16. package/app-layout/drawer/overflow-menu.js.map +1 -1
  17. package/app-layout/index.js.map +1 -1
  18. package/app-layout/interfaces.d.ts +3 -3
  19. package/app-layout/interfaces.d.ts.map +1 -1
  20. package/app-layout/interfaces.js.map +1 -1
  21. package/app-layout/internal.d.ts +1 -1
  22. package/app-layout/runtime-drawer/index.d.ts +1 -1
  23. package/app-layout/runtime-drawer/index.d.ts.map +1 -1
  24. package/app-layout/runtime-drawer/index.js.map +1 -1
  25. package/app-layout/visual-refresh/index.d.ts +1 -1
  26. package/app-layout/visual-refresh-toolbar/interfaces.d.ts +1 -1
  27. package/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  28. package/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  29. package/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +4 -4
  30. package/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +4 -4
  31. package/app-layout-toolbar/index.js.map +1 -1
  32. package/area-chart/elements/use-highlight-details.d.ts +1 -1
  33. package/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  34. package/area-chart/elements/use-highlight-details.js.map +1 -1
  35. package/area-chart/interfaces.d.ts +1 -1
  36. package/area-chart/interfaces.d.ts.map +1 -1
  37. package/area-chart/interfaces.js.map +1 -1
  38. package/area-chart/model/compute-chart-props.d.ts +2 -2
  39. package/area-chart/model/compute-chart-props.d.ts.map +1 -1
  40. package/area-chart/model/compute-chart-props.js +2 -0
  41. package/area-chart/model/compute-chart-props.js.map +1 -1
  42. package/area-chart/model/index.d.ts +1 -1
  43. package/area-chart/model/index.d.ts.map +1 -1
  44. package/area-chart/model/index.js.map +1 -1
  45. package/area-chart/model/use-chart-model.d.ts +1 -1
  46. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  47. package/area-chart/model/use-chart-model.js.map +1 -1
  48. package/area-chart/model/use-filter-props.d.ts +1 -1
  49. package/area-chart/model/use-filter-props.d.ts.map +1 -1
  50. package/area-chart/model/use-filter-props.js.map +1 -1
  51. package/area-chart/model/use-highlight-props.d.ts +1 -1
  52. package/area-chart/model/use-highlight-props.d.ts.map +1 -1
  53. package/area-chart/model/use-highlight-props.js.map +1 -1
  54. package/area-chart/model/utils.d.ts +1 -1
  55. package/area-chart/model/utils.d.ts.map +1 -1
  56. package/area-chart/model/utils.js.map +1 -1
  57. package/attribute-editor/interfaces.d.ts +3 -3
  58. package/attribute-editor/interfaces.d.ts.map +1 -1
  59. package/attribute-editor/interfaces.js.map +1 -1
  60. package/attribute-editor/row.d.ts +2 -2
  61. package/attribute-editor/row.d.ts.map +1 -1
  62. package/attribute-editor/row.js.map +1 -1
  63. package/autosuggest/autosuggest-option.d.ts +1 -1
  64. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  65. package/autosuggest/autosuggest-option.js.map +1 -1
  66. package/autosuggest/interfaces.d.ts +5 -5
  67. package/autosuggest/interfaces.d.ts.map +1 -1
  68. package/autosuggest/interfaces.js.map +1 -1
  69. package/autosuggest/internal.d.ts.map +1 -1
  70. package/autosuggest/internal.js +1 -1
  71. package/autosuggest/internal.js.map +1 -1
  72. package/autosuggest/load-more-controller.d.ts +1 -1
  73. package/autosuggest/load-more-controller.d.ts.map +1 -1
  74. package/autosuggest/load-more-controller.js.map +1 -1
  75. package/badge/interfaces.d.ts +2 -2
  76. package/badge/interfaces.d.ts.map +1 -1
  77. package/badge/interfaces.js.map +1 -1
  78. package/bar-chart/interfaces.d.ts +1 -1
  79. package/bar-chart/interfaces.d.ts.map +1 -1
  80. package/bar-chart/interfaces.js.map +1 -1
  81. package/box/interfaces.d.ts +2 -2
  82. package/box/interfaces.d.ts.map +1 -1
  83. package/box/interfaces.js.map +1 -1
  84. package/breadcrumb-group/all-items-dropdown.d.ts +1 -1
  85. package/breadcrumb-group/all-items-dropdown.d.ts.map +1 -1
  86. package/breadcrumb-group/all-items-dropdown.js.map +1 -1
  87. package/breadcrumb-group/interfaces.d.ts +2 -2
  88. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  89. package/breadcrumb-group/interfaces.js.map +1 -1
  90. package/button/interfaces.d.ts +3 -3
  91. package/button/interfaces.d.ts.map +1 -1
  92. package/button/interfaces.js.map +1 -1
  93. package/button-dropdown/interfaces.d.ts +3 -3
  94. package/button-dropdown/interfaces.d.ts.map +1 -1
  95. package/button-dropdown/interfaces.js.map +1 -1
  96. package/button-dropdown/utils/use-button-dropdown.d.ts +1 -1
  97. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  98. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  99. package/button-group/file-input-item.d.ts +1 -1
  100. package/button-group/file-input-item.d.ts.map +1 -1
  101. package/button-group/file-input-item.js.map +1 -1
  102. package/button-group/icon-button-item.d.ts +1 -1
  103. package/button-group/icon-button-item.d.ts.map +1 -1
  104. package/button-group/icon-button-item.js +1 -1
  105. package/button-group/icon-button-item.js.map +1 -1
  106. package/button-group/icon-toggle-button-item.d.ts +1 -1
  107. package/button-group/icon-toggle-button-item.d.ts.map +1 -1
  108. package/button-group/icon-toggle-button-item.js.map +1 -1
  109. package/button-group/interfaces.d.ts +10 -2
  110. package/button-group/interfaces.d.ts.map +1 -1
  111. package/button-group/interfaces.js.map +1 -1
  112. package/button-group/item-element.d.ts +1 -1
  113. package/button-group/item-element.d.ts.map +1 -1
  114. package/button-group/item-element.js.map +1 -1
  115. package/button-group/menu-dropdown-item.d.ts +1 -1
  116. package/button-group/menu-dropdown-item.d.ts.map +1 -1
  117. package/button-group/menu-dropdown-item.js.map +1 -1
  118. package/calendar/interfaces.d.ts +3 -3
  119. package/calendar/interfaces.d.ts.map +1 -1
  120. package/calendar/interfaces.js.map +1 -1
  121. package/cards/interfaces.d.ts +2 -2
  122. package/cards/interfaces.d.ts.map +1 -1
  123. package/cards/interfaces.js.map +1 -1
  124. package/checkbox/base-checkbox.d.ts +3 -3
  125. package/checkbox/base-checkbox.d.ts.map +1 -1
  126. package/checkbox/base-checkbox.js.map +1 -1
  127. package/checkbox/interfaces.d.ts +2 -2
  128. package/checkbox/interfaces.d.ts.map +1 -1
  129. package/checkbox/interfaces.js.map +1 -1
  130. package/code-editor/error-screen.d.ts +1 -1
  131. package/code-editor/error-screen.d.ts.map +1 -1
  132. package/code-editor/error-screen.js.map +1 -1
  133. package/code-editor/interfaces.d.ts +3 -3
  134. package/code-editor/interfaces.d.ts.map +1 -1
  135. package/code-editor/interfaces.js.map +1 -1
  136. package/code-editor/listeners.d.ts +1 -1
  137. package/code-editor/listeners.d.ts.map +1 -1
  138. package/code-editor/listeners.js.map +1 -1
  139. package/code-editor/preferences-modal.js.map +1 -1
  140. package/collection-preferences/interfaces.d.ts +4 -4
  141. package/collection-preferences/interfaces.d.ts.map +1 -1
  142. package/collection-preferences/interfaces.js.map +1 -1
  143. package/column-layout/interfaces.d.ts +1 -1
  144. package/column-layout/interfaces.d.ts.map +1 -1
  145. package/column-layout/interfaces.js.map +1 -1
  146. package/container/interfaces.d.ts +1 -1
  147. package/container/interfaces.d.ts.map +1 -1
  148. package/container/interfaces.js.map +1 -1
  149. package/content-layout/interfaces.d.ts +1 -1
  150. package/content-layout/interfaces.d.ts.map +1 -1
  151. package/content-layout/interfaces.js.map +1 -1
  152. package/contexts/form-field.d.ts +2 -1
  153. package/contexts/form-field.d.ts.map +1 -1
  154. package/contexts/form-field.js +1 -1
  155. package/contexts/form-field.js.map +1 -1
  156. package/copy-to-clipboard/interfaces.d.ts +2 -2
  157. package/copy-to-clipboard/interfaces.d.ts.map +1 -1
  158. package/copy-to-clipboard/interfaces.js.map +1 -1
  159. package/date-input/interfaces.d.ts +3 -3
  160. package/date-input/interfaces.d.ts.map +1 -1
  161. package/date-input/interfaces.js.map +1 -1
  162. package/date-input/internal.d.ts.map +1 -1
  163. package/date-input/internal.js.map +1 -1
  164. package/date-picker/interfaces.d.ts +4 -4
  165. package/date-picker/interfaces.d.ts.map +1 -1
  166. package/date-picker/interfaces.js.map +1 -1
  167. package/date-range-picker/calendar/interfaces.d.ts +1 -1
  168. package/date-range-picker/calendar/interfaces.d.ts.map +1 -1
  169. package/date-range-picker/calendar/interfaces.js.map +1 -1
  170. package/date-range-picker/interfaces.d.ts +4 -4
  171. package/date-range-picker/interfaces.d.ts.map +1 -1
  172. package/date-range-picker/interfaces.js.map +1 -1
  173. package/divider/interfaces.d.ts +2 -2
  174. package/divider/interfaces.d.ts.map +1 -1
  175. package/divider/interfaces.js.map +1 -1
  176. package/drawer/interfaces.d.ts +2 -2
  177. package/drawer/interfaces.d.ts.map +1 -1
  178. package/drawer/interfaces.js.map +1 -1
  179. package/dropdown/interfaces.d.ts +1 -1
  180. package/dropdown/interfaces.d.ts.map +1 -1
  181. package/dropdown/interfaces.js.map +1 -1
  182. package/dropdown/internal.d.ts +1 -1
  183. package/dropdown/internal.d.ts.map +1 -1
  184. package/dropdown/internal.js.map +1 -1
  185. package/error-boundary/interfaces.d.ts +1 -1
  186. package/error-boundary/interfaces.d.ts.map +1 -1
  187. package/error-boundary/interfaces.js.map +1 -1
  188. package/expandable-section/interfaces.d.ts +2 -2
  189. package/expandable-section/interfaces.d.ts.map +1 -1
  190. package/expandable-section/interfaces.js.map +1 -1
  191. package/file-dropzone/interfaces.d.ts +2 -2
  192. package/file-dropzone/interfaces.d.ts.map +1 -1
  193. package/file-dropzone/interfaces.js.map +1 -1
  194. package/file-input/interfaces.d.ts +3 -3
  195. package/file-input/interfaces.d.ts.map +1 -1
  196. package/file-input/interfaces.js.map +1 -1
  197. package/file-token-group/file-token.d.ts +1 -1
  198. package/file-token-group/file-token.d.ts.map +1 -1
  199. package/file-token-group/file-token.js.map +1 -1
  200. package/file-token-group/interfaces.d.ts +2 -2
  201. package/file-token-group/interfaces.d.ts.map +1 -1
  202. package/file-token-group/interfaces.js.map +1 -1
  203. package/file-upload/interfaces.d.ts +3 -3
  204. package/file-upload/interfaces.d.ts.map +1 -1
  205. package/file-upload/interfaces.js.map +1 -1
  206. package/flashbar/common.d.ts +1 -1
  207. package/flashbar/interfaces.d.ts +2 -2
  208. package/flashbar/interfaces.d.ts.map +1 -1
  209. package/flashbar/interfaces.js.map +1 -1
  210. package/form/interfaces.d.ts +2 -2
  211. package/form/interfaces.d.ts.map +1 -1
  212. package/form/interfaces.js.map +1 -1
  213. package/form-field/interfaces.d.ts +2 -2
  214. package/form-field/interfaces.d.ts.map +1 -1
  215. package/form-field/interfaces.js.map +1 -1
  216. package/grid/interfaces.d.ts +2 -2
  217. package/grid/interfaces.d.ts.map +1 -1
  218. package/grid/interfaces.js.map +1 -1
  219. package/grid/internal.d.ts +1 -1
  220. package/grid/internal.d.ts.map +1 -1
  221. package/grid/internal.js.map +1 -1
  222. package/header/interfaces.d.ts +1 -1
  223. package/header/interfaces.d.ts.map +1 -1
  224. package/header/interfaces.js.map +1 -1
  225. package/help-panel/interfaces.d.ts +1 -1
  226. package/help-panel/interfaces.d.ts.map +1 -1
  227. package/help-panel/interfaces.js.map +1 -1
  228. package/hotspot/interfaces.d.ts +1 -1
  229. package/hotspot/interfaces.d.ts.map +1 -1
  230. package/hotspot/interfaces.js.map +1 -1
  231. package/icon/generated/icons.d.ts +2 -0
  232. package/icon/generated/icons.d.ts.map +1 -1
  233. package/icon/generated/icons.js +7 -0
  234. package/icon/generated/icons.js.map +1 -1
  235. package/icon/interfaces.d.ts +2 -2
  236. package/icon/interfaces.d.ts.map +1 -1
  237. package/icon/interfaces.js.map +1 -1
  238. package/icon-provider/interfaces.d.ts +2 -2
  239. package/icon-provider/interfaces.d.ts.map +1 -1
  240. package/icon-provider/interfaces.js.map +1 -1
  241. package/input/interfaces.d.ts +4 -4
  242. package/input/interfaces.d.ts.map +1 -1
  243. package/input/interfaces.js.map +1 -1
  244. package/input/internal.d.ts +3 -3
  245. package/input/internal.d.ts.map +1 -1
  246. package/input/internal.js.map +1 -1
  247. package/interfaces.d.ts +1 -1
  248. package/interfaces.d.ts.map +1 -1
  249. package/interfaces.js.map +1 -1
  250. package/internal/analytics/components/analytics-funnel.d.ts +2 -1
  251. package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  252. package/internal/analytics/components/analytics-funnel.js.map +1 -1
  253. package/internal/analytics/context/analytics-context.d.ts +2 -1
  254. package/internal/analytics/context/analytics-context.d.ts.map +1 -1
  255. package/internal/analytics/context/analytics-context.js.map +1 -1
  256. package/internal/analytics/interfaces.d.ts +2 -15
  257. package/internal/analytics/interfaces.d.ts.map +1 -1
  258. package/internal/analytics/interfaces.js.map +1 -1
  259. package/internal/base-component/index.d.ts +4 -16
  260. package/internal/base-component/index.d.ts.map +1 -1
  261. package/internal/base-component/index.js.map +1 -1
  262. package/internal/base-component/styles.scoped.css +1 -1
  263. package/internal/breakpoints.d.ts +3 -2
  264. package/internal/breakpoints.d.ts.map +1 -1
  265. package/internal/breakpoints.js.map +1 -1
  266. package/internal/components/autosuggest-input/index.d.ts +3 -3
  267. package/internal/components/autosuggest-input/index.d.ts.map +1 -1
  268. package/internal/components/autosuggest-input/index.js.map +1 -1
  269. package/internal/components/button-trigger/index.d.ts +2 -2
  270. package/internal/components/button-trigger/index.d.ts.map +1 -1
  271. package/internal/components/button-trigger/index.js.map +1 -1
  272. package/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
  273. package/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
  274. package/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
  275. package/internal/components/cartesian-chart/interfaces.d.ts +1 -209
  276. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  277. package/internal/components/cartesian-chart/interfaces.js +2 -0
  278. package/internal/components/cartesian-chart/interfaces.js.map +1 -1
  279. package/internal/components/cartesian-chart/label-utils.d.ts +1 -1
  280. package/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  281. package/internal/components/cartesian-chart/label-utils.js.map +1 -1
  282. package/internal/components/cartesian-chart/scales.d.ts +1 -1
  283. package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  284. package/internal/components/cartesian-chart/scales.js +0 -2
  285. package/internal/components/cartesian-chart/scales.js.map +1 -1
  286. package/internal/components/cartesian-chart/ticks.d.ts +1 -1
  287. package/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  288. package/internal/components/cartesian-chart/ticks.js.map +1 -1
  289. package/internal/components/chart-filter/index.d.ts +1 -1
  290. package/internal/components/chart-filter/index.d.ts.map +1 -1
  291. package/internal/components/chart-filter/index.js.map +1 -1
  292. package/internal/components/chart-series-details/index.d.ts +1 -1
  293. package/internal/components/chart-series-details/index.d.ts.map +1 -1
  294. package/internal/components/chart-series-details/index.js.map +1 -1
  295. package/internal/components/chart-series-marker/index.d.ts +1 -1
  296. package/internal/components/chart-series-marker/index.d.ts.map +1 -1
  297. package/internal/components/chart-series-marker/index.js.map +1 -1
  298. package/internal/components/chart-status-container/index.d.ts +2 -2
  299. package/internal/components/chart-status-container/index.d.ts.map +1 -1
  300. package/internal/components/chart-status-container/index.js.map +1 -1
  301. package/internal/components/chart-wrapper/index.d.ts +1 -1
  302. package/internal/components/chart-wrapper/index.d.ts.map +1 -1
  303. package/internal/components/chart-wrapper/index.js.map +1 -1
  304. package/internal/components/checkbox-icon/index.d.ts +1 -1
  305. package/internal/components/checkbox-icon/index.d.ts.map +1 -1
  306. package/internal/components/checkbox-icon/index.js.map +1 -1
  307. package/internal/components/dropdown-status/index.d.ts +4 -4
  308. package/internal/components/dropdown-status/index.d.ts.map +1 -1
  309. package/internal/components/dropdown-status/index.js.map +1 -1
  310. package/internal/components/masked-input/interfaces.d.ts +2 -2
  311. package/internal/components/masked-input/interfaces.d.ts.map +1 -1
  312. package/internal/components/masked-input/interfaces.js.map +1 -1
  313. package/internal/components/masked-input/use-mask.d.ts +1 -1
  314. package/internal/components/masked-input/use-mask.d.ts.map +1 -1
  315. package/internal/components/masked-input/use-mask.js.map +1 -1
  316. package/internal/components/option/interfaces.d.ts +3 -26
  317. package/internal/components/option/interfaces.d.ts.map +1 -1
  318. package/internal/components/option/interfaces.js.map +1 -1
  319. package/internal/components/option/option-announcer.d.ts +1 -1
  320. package/internal/components/option/option-announcer.d.ts.map +1 -1
  321. package/internal/components/option/option-announcer.js.map +1 -1
  322. package/internal/components/option/utils/filter-options.d.ts +2 -1
  323. package/internal/components/option/utils/filter-options.d.ts.map +1 -1
  324. package/internal/components/option/utils/filter-options.js.map +1 -1
  325. package/internal/components/option/utils/flatten-options.d.ts +2 -1
  326. package/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  327. package/internal/components/option/utils/flatten-options.js.map +1 -1
  328. package/internal/components/options-list/index.d.ts +3 -3
  329. package/internal/components/options-list/index.d.ts.map +1 -1
  330. package/internal/components/options-list/index.js +1 -1
  331. package/internal/components/options-list/index.js.map +1 -1
  332. package/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
  333. package/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  334. package/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  335. package/internal/components/radio-button/index.d.ts +1 -1
  336. package/internal/components/radio-button/index.d.ts.map +1 -1
  337. package/internal/components/radio-button/index.js.map +1 -1
  338. package/internal/components/radio-button/interfaces.d.ts +1 -128
  339. package/internal/components/radio-button/interfaces.d.ts.map +1 -1
  340. package/internal/components/radio-button/interfaces.js +2 -0
  341. package/internal/components/radio-button/interfaces.js.map +1 -1
  342. package/internal/components/selectable-item/interfaces.d.ts +1 -1
  343. package/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  344. package/internal/components/selectable-item/interfaces.js.map +1 -1
  345. package/internal/components/sortable-area/interfaces.d.ts +3 -9
  346. package/internal/components/sortable-area/interfaces.d.ts.map +1 -1
  347. package/internal/components/sortable-area/interfaces.js.map +1 -1
  348. package/internal/components/token-list/token-limit-toggle.d.ts +1 -1
  349. package/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  350. package/internal/components/token-list/token-limit-toggle.js.map +1 -1
  351. package/internal/context/form-field-context.d.ts +3 -55
  352. package/internal/context/form-field-context.d.ts.map +1 -1
  353. package/internal/context/form-field-context.js.map +1 -1
  354. package/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
  355. package/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
  356. package/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
  357. package/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
  358. package/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
  359. package/internal/do-not-use/feature-prompt/internal.js.map +1 -1
  360. package/internal/environment.js +2 -2
  361. package/internal/environment.json +2 -2
  362. package/internal/events/index.d.ts +2 -24
  363. package/internal/events/index.d.ts.map +1 -1
  364. package/internal/events/index.js.map +1 -1
  365. package/internal/generated/theming/index.cjs +6 -0
  366. package/internal/generated/theming/index.cjs.d.ts +27 -0
  367. package/internal/generated/theming/index.d.ts +27 -0
  368. package/internal/generated/theming/index.js +6 -0
  369. package/internal/hooks/check-controlled/index.d.ts +1 -1
  370. package/internal/hooks/check-controlled/index.d.ts.map +1 -1
  371. package/internal/hooks/check-controlled/index.js.map +1 -1
  372. package/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  373. package/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  374. package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  375. package/internal/hooks/use-base-component/index.d.ts +1 -1
  376. package/internal/hooks/use-base-component/index.d.ts.map +1 -1
  377. package/internal/hooks/use-base-component/index.js.map +1 -1
  378. package/internal/hooks/use-focus-tracker.d.ts +1 -1
  379. package/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  380. package/internal/hooks/use-focus-tracker.js.map +1 -1
  381. package/internal/manifest.json +1 -1
  382. package/internal/plugins/controllers/drawers.d.ts +1 -1
  383. package/internal/plugins/controllers/drawers.d.ts.map +1 -1
  384. package/internal/plugins/controllers/drawers.js.map +1 -1
  385. package/internal/plugins/widget/interfaces.d.ts +1 -1
  386. package/internal/plugins/widget/interfaces.d.ts.map +1 -1
  387. package/internal/plugins/widget/interfaces.js.map +1 -1
  388. package/internal/utils/date-time/interfaces.d.ts +1 -16
  389. package/internal/utils/date-time/interfaces.d.ts.map +1 -1
  390. package/internal/utils/date-time/interfaces.js.map +1 -1
  391. package/internal/utils/with-native-attributes.d.ts +3 -2
  392. package/internal/utils/with-native-attributes.d.ts.map +1 -1
  393. package/internal/utils/with-native-attributes.js.map +1 -1
  394. package/item-card/interfaces.d.ts +2 -2
  395. package/item-card/interfaces.d.ts.map +1 -1
  396. package/item-card/interfaces.js.map +1 -1
  397. package/key-value-pairs/interfaces.d.ts +1 -1
  398. package/key-value-pairs/interfaces.d.ts.map +1 -1
  399. package/key-value-pairs/interfaces.js.map +1 -1
  400. package/link/interfaces.d.ts +3 -3
  401. package/link/interfaces.d.ts.map +1 -1
  402. package/link/interfaces.js.map +1 -1
  403. package/list/interfaces.d.ts +3 -3
  404. package/list/interfaces.d.ts.map +1 -1
  405. package/list/interfaces.js.map +1 -1
  406. package/live-region/interfaces.d.ts +1 -1
  407. package/live-region/interfaces.d.ts.map +1 -1
  408. package/live-region/interfaces.js.map +1 -1
  409. package/manifest.json +2 -2
  410. package/mixed-line-bar-chart/chart-container.d.ts +1 -1
  411. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  412. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  413. package/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  414. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  415. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  416. package/mixed-line-bar-chart/interfaces.d.ts +1 -1
  417. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  418. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  419. package/modal/interfaces.d.ts +3 -3
  420. package/modal/interfaces.d.ts.map +1 -1
  421. package/modal/interfaces.js.map +1 -1
  422. package/multiselect/embedded.d.ts +2 -2
  423. package/multiselect/interfaces.d.ts +2 -2
  424. package/multiselect/interfaces.d.ts.map +1 -1
  425. package/multiselect/interfaces.js.map +1 -1
  426. package/multiselect/internal.d.ts +1 -1
  427. package/multiselect/use-multiselect.d.ts +8 -8
  428. package/multiselect/use-multiselect.d.ts.map +1 -1
  429. package/multiselect/use-multiselect.js.map +1 -1
  430. package/navigable-group/interfaces.d.ts +1 -1
  431. package/navigable-group/interfaces.d.ts.map +1 -1
  432. package/navigable-group/interfaces.js.map +1 -1
  433. package/package.json +1 -1
  434. package/pagination/interfaces.d.ts +1 -1
  435. package/pagination/interfaces.d.ts.map +1 -1
  436. package/pagination/interfaces.js.map +1 -1
  437. package/pagination/internal.d.ts.map +1 -1
  438. package/pagination/internal.js.map +1 -1
  439. package/panel-layout/interfaces.d.ts +2 -2
  440. package/panel-layout/interfaces.d.ts.map +1 -1
  441. package/panel-layout/interfaces.js.map +1 -1
  442. package/pie-chart/interfaces.d.ts +2 -2
  443. package/pie-chart/interfaces.d.ts.map +1 -1
  444. package/pie-chart/interfaces.js.map +1 -1
  445. package/popover/interfaces.d.ts +1 -1
  446. package/popover/interfaces.d.ts.map +1 -1
  447. package/popover/interfaces.js.map +1 -1
  448. package/popover/internal.d.ts +1 -1
  449. package/popover/internal.d.ts.map +1 -1
  450. package/popover/internal.js.map +1 -1
  451. package/progress-bar/interfaces.d.ts +2 -2
  452. package/progress-bar/interfaces.d.ts.map +1 -1
  453. package/progress-bar/interfaces.js.map +1 -1
  454. package/prompt-input/core/menu-state.d.ts +2 -2
  455. package/prompt-input/core/menu-state.d.ts.map +1 -1
  456. package/prompt-input/core/menu-state.js.map +1 -1
  457. package/prompt-input/interfaces.d.ts +6 -6
  458. package/prompt-input/interfaces.d.ts.map +1 -1
  459. package/prompt-input/interfaces.js.map +1 -1
  460. package/property-filter/controller.d.ts +2 -2
  461. package/property-filter/controller.d.ts.map +1 -1
  462. package/property-filter/controller.js.map +1 -1
  463. package/property-filter/filter-options.js.map +1 -1
  464. package/property-filter/interfaces.d.ts +4 -4
  465. package/property-filter/interfaces.d.ts.map +1 -1
  466. package/property-filter/interfaces.js.map +1 -1
  467. package/property-filter/property-editor.d.ts +2 -2
  468. package/property-filter/property-editor.d.ts.map +1 -1
  469. package/property-filter/property-editor.js.map +1 -1
  470. package/property-filter/property-filter-autosuggest.d.ts +1 -1
  471. package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  472. package/property-filter/property-filter-autosuggest.js +1 -1
  473. package/property-filter/property-filter-autosuggest.js.map +1 -1
  474. package/property-filter/token-editor-inputs.d.ts +2 -2
  475. package/property-filter/token-editor-inputs.d.ts.map +1 -1
  476. package/property-filter/token-editor-inputs.js.map +1 -1
  477. package/property-filter/token-editor.d.ts +2 -2
  478. package/property-filter/token-editor.d.ts.map +1 -1
  479. package/property-filter/token-editor.js.map +1 -1
  480. package/property-filter/token.d.ts +2 -2
  481. package/property-filter/token.d.ts.map +1 -1
  482. package/property-filter/token.js.map +1 -1
  483. package/property-filter/use-load-items.d.ts +1 -1
  484. package/property-filter/use-load-items.d.ts.map +1 -1
  485. package/property-filter/use-load-items.js.map +1 -1
  486. package/radio-button/interfaces.d.ts +128 -2
  487. package/radio-button/interfaces.d.ts.map +1 -1
  488. package/radio-button/interfaces.js.map +1 -1
  489. package/radio-group/interfaces.d.ts +4 -4
  490. package/radio-group/interfaces.d.ts.map +1 -1
  491. package/radio-group/interfaces.js.map +1 -1
  492. package/s3-resource-selector/interfaces.d.ts +2 -2
  493. package/s3-resource-selector/interfaces.d.ts.map +1 -1
  494. package/s3-resource-selector/interfaces.js.map +1 -1
  495. package/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  496. package/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  497. package/s3-resource-selector/s3-in-context/index.js.map +1 -1
  498. package/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  499. package/segmented-control/interfaces.d.ts +2 -2
  500. package/segmented-control/interfaces.d.ts.map +1 -1
  501. package/segmented-control/interfaces.js.map +1 -1
  502. package/select/interfaces.d.ts +5 -5
  503. package/select/interfaces.d.ts.map +1 -1
  504. package/select/interfaces.js.map +1 -1
  505. package/select/internal.d.ts.map +1 -1
  506. package/select/internal.js.map +1 -1
  507. package/select/parts/item.d.ts.map +1 -1
  508. package/select/parts/item.js.map +1 -1
  509. package/select/parts/multiselect-item.d.ts.map +1 -1
  510. package/select/parts/multiselect-item.js.map +1 -1
  511. package/select/parts/trigger.d.ts +2 -2
  512. package/select/parts/trigger.d.ts.map +1 -1
  513. package/select/parts/trigger.js.map +1 -1
  514. package/select/utils/connect-options.d.ts +2 -1
  515. package/select/utils/connect-options.d.ts.map +1 -1
  516. package/select/utils/connect-options.js.map +1 -1
  517. package/select/utils/use-announcement.d.ts +1 -1
  518. package/select/utils/use-announcement.d.ts.map +1 -1
  519. package/select/utils/use-announcement.js.map +1 -1
  520. package/select/utils/use-load-items.d.ts +2 -2
  521. package/select/utils/use-load-items.d.ts.map +1 -1
  522. package/select/utils/use-load-items.js.map +1 -1
  523. package/select/utils/use-native-search.d.ts +2 -1
  524. package/select/utils/use-native-search.d.ts.map +1 -1
  525. package/select/utils/use-native-search.js.map +1 -1
  526. package/select/utils/use-select.d.ts +4 -3
  527. package/select/utils/use-select.d.ts.map +1 -1
  528. package/select/utils/use-select.js.map +1 -1
  529. package/side-navigation/interfaces.d.ts +2 -2
  530. package/side-navigation/interfaces.d.ts.map +1 -1
  531. package/side-navigation/interfaces.js.map +1 -1
  532. package/side-navigation/parts.d.ts.map +1 -1
  533. package/side-navigation/parts.js.map +1 -1
  534. package/skeleton/interfaces.d.ts +1 -1
  535. package/skeleton/interfaces.d.ts.map +1 -1
  536. package/skeleton/interfaces.js.map +1 -1
  537. package/slider/interfaces.d.ts +3 -3
  538. package/slider/interfaces.d.ts.map +1 -1
  539. package/slider/interfaces.js.map +1 -1
  540. package/space-between/interfaces.d.ts +2 -2
  541. package/space-between/interfaces.d.ts.map +1 -1
  542. package/space-between/interfaces.js.map +1 -1
  543. package/spinner/interfaces.d.ts +2 -2
  544. package/spinner/interfaces.d.ts.map +1 -1
  545. package/spinner/interfaces.js.map +1 -1
  546. package/split-panel/interfaces.d.ts +1 -1
  547. package/split-panel/interfaces.d.ts.map +1 -1
  548. package/split-panel/interfaces.js.map +1 -1
  549. package/status-indicator/interfaces.d.ts +2 -2
  550. package/status-indicator/interfaces.d.ts.map +1 -1
  551. package/status-indicator/interfaces.js.map +1 -1
  552. package/steps/interfaces.d.ts +1 -1
  553. package/steps/interfaces.d.ts.map +1 -1
  554. package/steps/interfaces.js.map +1 -1
  555. package/table/interfaces.d.ts +2 -2
  556. package/table/interfaces.d.ts.map +1 -1
  557. package/table/interfaces.js.map +1 -1
  558. package/table/thead.d.ts +1 -1
  559. package/table/thead.d.ts.map +1 -1
  560. package/table/thead.js.map +1 -1
  561. package/table/use-cell-editing.d.ts +1 -1
  562. package/table/use-cell-editing.d.ts.map +1 -1
  563. package/table/use-cell-editing.js.map +1 -1
  564. package/tabs/interfaces.d.ts +2 -2
  565. package/tabs/interfaces.d.ts.map +1 -1
  566. package/tabs/interfaces.js.map +1 -1
  567. package/tag-editor/index.d.ts.map +1 -1
  568. package/tag-editor/index.js.map +1 -1
  569. package/tag-editor/interfaces.d.ts +2 -2
  570. package/tag-editor/interfaces.d.ts.map +1 -1
  571. package/tag-editor/interfaces.js.map +1 -1
  572. package/tag-editor/internal.js.map +1 -1
  573. package/text-content/interfaces.d.ts +1 -1
  574. package/text-content/interfaces.d.ts.map +1 -1
  575. package/text-content/interfaces.js.map +1 -1
  576. package/text-filter/interfaces.d.ts +3 -3
  577. package/text-filter/interfaces.d.ts.map +1 -1
  578. package/text-filter/interfaces.js.map +1 -1
  579. package/textarea/interfaces.d.ts +4 -4
  580. package/textarea/interfaces.d.ts.map +1 -1
  581. package/textarea/interfaces.js.map +1 -1
  582. package/tiles/interfaces.d.ts +4 -4
  583. package/tiles/interfaces.d.ts.map +1 -1
  584. package/tiles/interfaces.js.map +1 -1
  585. package/time-input/interfaces.d.ts +2 -2
  586. package/time-input/interfaces.d.ts.map +1 -1
  587. package/time-input/interfaces.js.map +1 -1
  588. package/toggle/interfaces.d.ts +2 -2
  589. package/toggle/interfaces.d.ts.map +1 -1
  590. package/toggle/interfaces.js.map +1 -1
  591. package/toggle-button/interfaces.d.ts +2 -2
  592. package/toggle-button/interfaces.d.ts.map +1 -1
  593. package/toggle-button/interfaces.js.map +1 -1
  594. package/token/dismiss-button.d.ts +1 -1
  595. package/token/dismiss-button.d.ts.map +1 -1
  596. package/token/dismiss-button.js.map +1 -1
  597. package/token/interfaces.d.ts +2 -2
  598. package/token/interfaces.d.ts.map +1 -1
  599. package/token/interfaces.js.map +1 -1
  600. package/token-group/interfaces.d.ts +2 -2
  601. package/token-group/interfaces.d.ts.map +1 -1
  602. package/token-group/interfaces.js.map +1 -1
  603. package/tooltip/interfaces.d.ts +1 -1
  604. package/tooltip/interfaces.d.ts.map +1 -1
  605. package/tooltip/interfaces.js.map +1 -1
  606. package/top-navigation/interfaces.d.ts +2 -2
  607. package/top-navigation/interfaces.d.ts.map +1 -1
  608. package/top-navigation/interfaces.js.map +1 -1
  609. package/tree-view/interfaces.d.ts +2 -2
  610. package/tree-view/interfaces.d.ts.map +1 -1
  611. package/tree-view/interfaces.js.map +1 -1
  612. package/truncated-text/interfaces.d.ts +1 -1
  613. package/truncated-text/interfaces.d.ts.map +1 -1
  614. package/truncated-text/interfaces.js.map +1 -1
  615. package/tutorial-panel/index.js.map +1 -1
  616. package/tutorial-panel/interfaces.d.ts +2 -2
  617. package/tutorial-panel/interfaces.d.ts.map +1 -1
  618. package/tutorial-panel/interfaces.js.map +1 -1
  619. package/types/analytics.d.ts +15 -0
  620. package/types/analytics.d.ts.map +1 -0
  621. package/types/analytics.js +4 -0
  622. package/types/analytics.js.map +1 -0
  623. package/types/base-component.d.ts +14 -0
  624. package/types/base-component.d.ts.map +1 -0
  625. package/types/base-component.js +4 -0
  626. package/types/base-component.js.map +1 -0
  627. package/types/breakpoint.d.ts +1 -0
  628. package/types/breakpoint.d.ts.map +1 -0
  629. package/types/breakpoint.js +2 -0
  630. package/types/breakpoint.js.map +1 -0
  631. package/types/cartesian-chart.d.ts +209 -0
  632. package/types/cartesian-chart.d.ts.map +1 -0
  633. package/types/cartesian-chart.js +2 -0
  634. package/types/cartesian-chart.js.map +1 -0
  635. package/types/date-time.d.ts +16 -0
  636. package/types/date-time.d.ts.map +1 -0
  637. package/types/date-time.js +4 -0
  638. package/types/date-time.js.map +1 -0
  639. package/types/dropdown-status.d.ts.map +1 -0
  640. package/types/dropdown-status.js +2 -0
  641. package/types/dropdown-status.js.map +1 -0
  642. package/types/events.d.ts +24 -0
  643. package/types/events.d.ts.map +1 -0
  644. package/types/events.js +4 -0
  645. package/types/events.js.map +1 -0
  646. package/types/form-field.d.ts +54 -0
  647. package/types/form-field.d.ts.map +1 -0
  648. package/types/form-field.js +4 -0
  649. package/types/form-field.js.map +1 -0
  650. package/types/native-attributes.d.ts +2 -0
  651. package/types/native-attributes.d.ts.map +1 -0
  652. package/types/native-attributes.js +2 -0
  653. package/types/native-attributes.js.map +1 -0
  654. package/types/option.d.ts +26 -0
  655. package/types/option.d.ts.map +1 -0
  656. package/types/option.js +2 -0
  657. package/types/option.js.map +1 -0
  658. package/types/sortable-area.d.ts +8 -0
  659. package/types/sortable-area.d.ts.map +1 -0
  660. package/types/sortable-area.js +4 -0
  661. package/types/sortable-area.js.map +1 -0
  662. package/wizard/interfaces.d.ts +3 -3
  663. package/wizard/interfaces.d.ts.map +1 -1
  664. package/wizard/interfaces.js.map +1 -1
  665. package/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  666. package/internal/components/dropdown-status/interfaces.js +0 -2
  667. package/internal/components/dropdown-status/interfaces.js.map +0 -1
  668. /package/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +0 -0
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
236
236
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
237
237
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
238
238
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
242
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
243
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
244
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
663
666
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
664
667
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
665
668
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
669
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
670
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
671
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
666
672
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
667
673
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
668
674
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
1090
1096
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1091
1097
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1092
1098
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1099
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1100
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1101
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1093
1102
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1094
1103
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1095
1104
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
1517
1526
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1518
1527
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1519
1528
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1529
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1530
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1531
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
1532
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
1533
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1522
1534
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
1944
1956
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1945
1957
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1946
1958
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1959
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1960
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1961
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1947
1962
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1948
1963
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1949
1964
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
2371
2386
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2372
2387
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2373
2388
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2389
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2390
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2391
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2374
2392
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2375
2393
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2376
2394
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
2798
2816
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2799
2817
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2800
2818
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2819
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2820
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2821
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2801
2822
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2802
2823
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2803
2824
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
3225
3246
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3226
3247
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3227
3248
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3249
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3250
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3251
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3228
3252
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3229
3253
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3230
3254
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
3652
3676
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3653
3677
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3654
3678
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3679
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3680
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3681
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3655
3682
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3656
3683
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3657
3684
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
236
236
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
237
237
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
238
238
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
242
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
243
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
244
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
663
666
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
664
667
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
665
668
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
669
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
670
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
671
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
666
672
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
667
673
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
668
674
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
1090
1096
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1091
1097
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1092
1098
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1099
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1100
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1101
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1093
1102
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1094
1103
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1095
1104
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
1517
1526
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1518
1527
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1519
1528
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1529
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1530
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1531
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
1532
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
1533
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1522
1534
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
1944
1956
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1945
1957
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1946
1958
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1959
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1960
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1961
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1947
1962
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1948
1963
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1949
1964
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
2371
2386
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2372
2387
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2373
2388
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2389
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2390
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2391
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2374
2392
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2375
2393
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2376
2394
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
2798
2816
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2799
2817
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2800
2818
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2819
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2820
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2821
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2801
2822
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2802
2823
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2803
2824
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
3225
3246
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3226
3247
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3227
3248
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3249
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3250
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3251
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3228
3252
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3229
3253
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3230
3254
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
3652
3676
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3653
3677
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3654
3678
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3679
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3680
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3681
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3655
3682
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3656
3683
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3657
3684
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -14085,6 +14085,9 @@ export var preset = {
14085
14085
  "colorTextDropdownItemHighlighted",
14086
14086
  "colorTextDropdownItemSecondary",
14087
14087
  "colorTextEmpty",
14088
+ "colorTextExpandableSectionDefault",
14089
+ "colorTextExpandableSectionHover",
14090
+ "colorTextExpandableSectionNavigationIconDefault",
14088
14091
  "colorBorderExpandableSectionDefault",
14089
14092
  "colorTextFormDefault",
14090
14093
  "colorTextFormLabel",
@@ -14598,6 +14601,9 @@ export var preset = {
14598
14601
  "colorTextDropdownItemHighlighted",
14599
14602
  "colorTextDropdownItemSecondary",
14600
14603
  "colorTextEmpty",
14604
+ "colorTextExpandableSectionDefault",
14605
+ "colorTextExpandableSectionHover",
14606
+ "colorTextExpandableSectionNavigationIconDefault",
14601
14607
  "colorTextFormDefault",
14602
14608
  "colorTextFormSecondary",
14603
14609
  "colorTextGroupLabel",
@@ -1,2 +1,2 @@
1
- import { NonCancelableEventHandler } from '../../events';
1
+ import { NonCancelableEventHandler } from '../../../types/events';
2
2
  export default function checkControlled<ValueType, EventDetailType>(componentName: string, propertyName: string, propertyValue: ValueType | undefined, handlerName: string, handlerValue: NonCancelableEventHandler<EventDetailType> | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,EAAE,eAAe,EAChE,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,SAAS,GAAG,SAAS,EACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,SAAS,QAQrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,EAAE,eAAe,EAChE,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,SAAS,GAAG,SAAS,EACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,SAAS,QAQrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '../../events';\nimport { isDevelopment } from '../../is-development';\n\nexport default function checkControlled<ValueType, EventDetailType>(\n componentName: string,\n propertyName: string,\n propertyValue: ValueType | undefined,\n handlerName: string,\n handlerValue: NonCancelableEventHandler<EventDetailType> | undefined\n) {\n if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {\n warnOnce(\n componentName,\n `You provided \\`${propertyName}\\` prop without an \\`${handlerName}\\` handler. This will render a read-only component. If the component should be mutable, set an \\`${handlerName}\\` handler.`\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { isDevelopment } from '../../is-development';\n\nexport default function checkControlled<ValueType, EventDetailType>(\n componentName: string,\n propertyName: string,\n propertyValue: ValueType | undefined,\n handlerName: string,\n handlerValue: NonCancelableEventHandler<EventDetailType> | undefined\n) {\n if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {\n warnOnce(\n componentName,\n `You provided \\`${propertyName}\\` prop without an \\`${handlerName}\\` handler. This will render a read-only component. If the component should be mutable, set an \\`${handlerName}\\` handler.`\n );\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Breakpoint } from '../../breakpoints';
2
+ import { Breakpoint } from '../../../types/breakpoint';
3
3
  /**
4
4
  * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific
5
5
  * breakpoints you want to break at. "default" is always included as a fallback, so ["xs"] would trigger for
@@ -1 +1 @@
1
- {"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAyB,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,EAAE,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAOvG,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAClD"}
1
+ {"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,EAAE,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAOvG,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAc,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAA2D,QAAY;IAC5G,+EAA+E;IAC/E,MAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;IACrC,OAAO,iBAAiB,CACtB,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,kBAAkB,CAAC;IACvG,uDAAuD;IACvD,CAAC,WAAW,CAAC,CACkC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { Breakpoint, getMatchingBreakpoint } from '../../breakpoints';\n\n/**\n * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific\n * breakpoints you want to break at. \"default\" is always included as a fallback, so [\"xs\"] would trigger for\n * \"default\" and \"xs\".\n *\n * @param triggers The relevant breakpoints to trigger for.\n */\nexport function useContainerBreakpoints<T extends readonly Breakpoint[], E extends Element = any>(triggers?: T) {\n // triggers.join() gives us a stable value to use for the dependencies argument\n const triggersDep = triggers?.join();\n return useContainerQuery(\n (rect, previousBreakpoint) => getMatchingBreakpoint(rect.contentBoxWidth, triggers, previousBreakpoint),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [triggersDep]\n ) as ['default' | T[number] | null, React.Ref<E>];\n}\n"]}
1
+ {"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAA2D,QAAY;IAC5G,+EAA+E;IAC/E,MAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;IACrC,OAAO,iBAAiB,CACtB,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,kBAAkB,CAAC;IACvG,uDAAuD;IACvD,CAAC,WAAW,CAAC,CACkC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { Breakpoint } from '../../../types/breakpoint';\nimport { getMatchingBreakpoint } from '../../breakpoints';\n\n/**\n * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific\n * breakpoints you want to break at. \"default\" is always included as a fallback, so [\"xs\"] would trigger for\n * \"default\" and \"xs\".\n *\n * @param triggers The relevant breakpoints to trigger for.\n */\nexport function useContainerBreakpoints<T extends readonly Breakpoint[], E extends Element = any>(triggers?: T) {\n // triggers.join() gives us a stable value to use for the dependencies argument\n const triggersDep = triggers?.join();\n return useContainerQuery(\n (rect, previousBreakpoint) => getMatchingBreakpoint(rect.contentBoxWidth, triggers, previousBreakpoint),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [triggersDep]\n ) as ['default' | T[number] | null, React.Ref<E>];\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentConfiguration } from '@cloudscape-design/component-toolkit/internal';
3
- import { AnalyticsMetadata } from '../../analytics/interfaces';
3
+ import { AnalyticsMetadata } from '../../../types/analytics';
4
4
  export interface InternalBaseComponentProps {
5
5
  __internalRootRef?: React.Ref<any>;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/D,MAAM,WAAW,0BAA0B;IAKzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,iBAAiB,CAAC,EAAE,iBAAiB;;EAatC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAKzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,iBAAiB,CAAC,EAAE,iBAAiB;;EAatC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../../analytics/interfaces';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { getVisualTheme } from '../../utils/get-visual-theme';\nimport { useVisualRefresh } from '../use-visual-mode';\nimport { useMissingStylesCheck } from './styles-check';\n\nexport interface InternalBaseComponentProps {\n // Typescript requires Ref type to be exact DOM element type it is assigned to, e.g. HTMLDivElement\n // Typical community practice is explicit type casting: https://stackoverflow.com/questions/61102101/cannot-assign-refobjecthtmldivelement-to-refobjecthtmlelement-instance\n // To avoid doing this, we use any to skip type checks. Treat this type as pass through, never\n // read `__internalRootRef.current`, use your own refs if you need\n __internalRootRef?: React.Ref<any>;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent(\n componentName: string,\n config?: ComponentConfiguration,\n analyticsMetadata?: AnalyticsMetadata\n) {\n const isVisualRefresh = useVisualRefresh();\n const theme = getVisualTheme(THEME, isVisualRefresh);\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n const elementRef = useComponentMetadata(\n componentName,\n { packageName: PACKAGE_SOURCE, version: PACKAGE_VERSION, theme },\n analyticsMetadata as any\n );\n useMissingStylesCheck(elementRef);\n useFocusVisible(elementRef);\n return { __internalRootRef: elementRef };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../../../types/analytics';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { getVisualTheme } from '../../utils/get-visual-theme';\nimport { useVisualRefresh } from '../use-visual-mode';\nimport { useMissingStylesCheck } from './styles-check';\n\nexport interface InternalBaseComponentProps {\n // Typescript requires Ref type to be exact DOM element type it is assigned to, e.g. HTMLDivElement\n // Typical community practice is explicit type casting: https://stackoverflow.com/questions/61102101/cannot-assign-refobjecthtmldivelement-to-refobjecthtmlelement-instance\n // To avoid doing this, we use any to skip type checks. Treat this type as pass through, never\n // read `__internalRootRef.current`, use your own refs if you need\n __internalRootRef?: React.Ref<any>;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent(\n componentName: string,\n config?: ComponentConfiguration,\n analyticsMetadata?: AnalyticsMetadata\n) {\n const isVisualRefresh = useVisualRefresh();\n const theme = getVisualTheme(THEME, isVisualRefresh);\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n const elementRef = useComponentMetadata(\n componentName,\n { packageName: PACKAGE_SOURCE, version: PACKAGE_VERSION, theme },\n analyticsMetadata as any\n );\n useMissingStylesCheck(elementRef);\n useFocusVisible(elementRef);\n return { __internalRootRef: elementRef };\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { NonCancelableEventHandler } from '../events';
2
+ import { NonCancelableEventHandler } from '../../types/events';
3
3
  interface UseFocusTracker {
4
4
  (inputProps: {
5
5
  onBlur?: NonCancelableEventHandler<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,OAAO,CAAC;AAE5D,OAAO,EAA0B,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAG9E,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,MAAM,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;KAC/C,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,EAAE,eAoB7B,CAAC"}
1
+ {"version":3,"file":"use-focus-tracker.d.ts","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAqB,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAI/D,UAAU,eAAe;IACvB,CAAC,UAAU,EAAE;QACX,MAAM,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,CAAC,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC;QACzC,OAAO,EAAE,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;KAC/C,GAAG,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,EAAE,eAoB7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-focus-tracker.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,sBAAsB,EAA6B,MAAM,WAAW,CAAC;AAC9E,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAU5C,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,YAAY,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,GAAG,EAAE;;YACV,MAAA,YAAY,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { MutableRefObject, useEffect, useRef } from 'react';\n\nimport { fireNonCancelableEvent, NonCancelableEventHandler } from '../events';\nimport FocusTracker from '../focus-tracker';\n\ninterface UseFocusTracker {\n (inputProps: {\n onBlur?: NonCancelableEventHandler<any>;\n onFocus?: NonCancelableEventHandler<any>;\n rootRef: MutableRefObject<HTMLElement | null>;\n }): void;\n}\n\nexport const useFocusTracker: UseFocusTracker = ({ rootRef, onBlur, onFocus }) => {\n const focusTracker = useRef<FocusTracker | null>(null);\n\n useEffect(() => {\n if (!rootRef.current) {\n return;\n }\n focusTracker.current = new FocusTracker(rootRef.current, {\n onFocusLeave: () => {\n fireNonCancelableEvent(onBlur);\n },\n onFocusEnter: () => {\n fireNonCancelableEvent(onFocus);\n },\n });\n focusTracker.current.initialize();\n return () => {\n focusTracker.current?.destroy();\n };\n }, [rootRef, onBlur, onFocus]);\n};\n"]}
1
+ {"version":3,"file":"use-focus-tracker.js","sourceRoot":"","sources":["../../../../src/internal/hooks/use-focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAU5C,MAAM,CAAC,MAAM,eAAe,GAAoB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,YAAY,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,YAAY,CAAC,OAAO,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE;YACvD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,MAAM,CAAC,CAAC;YACjC,CAAC;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,sBAAsB,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;SACF,CAAC,CAAC;QACH,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,GAAG,EAAE;;YACV,MAAA,YAAY,CAAC,OAAO,0CAAE,OAAO,EAAE,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { MutableRefObject, useEffect, useRef } from 'react';\n\nimport { NonCancelableEventHandler } from '../../types/events';\nimport { fireNonCancelableEvent } from '../events';\nimport FocusTracker from '../focus-tracker';\n\ninterface UseFocusTracker {\n (inputProps: {\n onBlur?: NonCancelableEventHandler<any>;\n onFocus?: NonCancelableEventHandler<any>;\n rootRef: MutableRefObject<HTMLElement | null>;\n }): void;\n}\n\nexport const useFocusTracker: UseFocusTracker = ({ rootRef, onBlur, onFocus }) => {\n const focusTracker = useRef<FocusTracker | null>(null);\n\n useEffect(() => {\n if (!rootRef.current) {\n return;\n }\n focusTracker.current = new FocusTracker(rootRef.current, {\n onFocusLeave: () => {\n fireNonCancelableEvent(onBlur);\n },\n onFocusEnter: () => {\n fireNonCancelableEvent(onFocus);\n },\n });\n focusTracker.current.initialize();\n return () => {\n focusTracker.current?.destroy();\n };\n }, [rootRef, onBlur, onFocus]);\n};\n"]}
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "b33ca59da0ba9c5ed895fa948378938a64fe66e2"
2
+ "commit": "12fae2db6a28caa0931aef82514f99961872d701"
3
3
  }
@@ -1,5 +1,5 @@
1
1
  import { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';
2
- import { NonCancelableEventHandler } from '../../events';
2
+ import { NonCancelableEventHandler } from '../../../types/events';
3
3
  type DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;
4
4
  interface MountContentContext {
5
5
  onVisibilityChange: DrawerVisibilityChange;
@@ -1 +1 @@
1
- {"version":3,"file":"drawers.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAE,yBAAyB,EAAE,M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ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport debounce from '../../debounce';\nimport { NonCancelableEventHandler } from '../../events';\nimport { reportRuntimeApiWarning } from '../helpers/metrics';\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\nexport interface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerConfig {\n id: string;\n type?: 'local' | 'global';\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n };\n isExpandable?: boolean;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n orderPriority?: number;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n}\n\nconst updatableProperties = [\n 'badge',\n 'resizable',\n 'defaultSize',\n 'orderPriority',\n 'defaultActive',\n 'onResize',\n] as const;\n\nexport type UpdateDrawerConfig = { id: DrawerConfig['id'] } & Partial<\n Pick<DrawerConfig, (typeof updatableProperties)[number]>\n>;\n\ntype DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\ntype DrawersUpdateListener = (drawers: Array<DrawerConfig>) => void;\n\nexport type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;\ntype DrawersResizeListener = (drawerId: string, size: number) => void;\n\ninterface OpenCloseDrawerParams {\n initiatedByUserAction: boolean;\n}\n\nexport interface DrawersApiPublic {\n registerDrawer(config: DrawerConfig): void;\n updateDrawer(config: UpdateDrawerConfig): void;\n openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n resizeDrawer(drawerId: string, size: number): void;\n clearRegisteredDrawersForTesting(): void;\n}\n\nexport interface DrawersApiInternal {\n onDrawersRegistered(listener: DrawersRegistrationListener): () => void;\n onDrawerOpened(listener: DrawersToggledListener): () => void;\n onDrawerClosed(listener: DrawersToggledListener): () => void;\n onDrawerResize(listener: DrawersResizeListener): () => void;\n onDrawersUpdated(listener: DrawersUpdateListener): void;\n getDrawersState(): Array<DrawerConfig>;\n}\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private drawerOpenedListener: DrawersToggledListener | null = null;\n private drawerClosedListener: DrawersToggledListener | null = null;\n private drawersUpdateListeners: Array<DrawersUpdateListener> = [];\n private drawerResizeListener: DrawersResizeListener | null = null;\n\n scheduleUpdate = debounce(() => {\n this.drawersRegistrationListener?.(this.drawers);\n this.drawersUpdateListeners.forEach(drawersUpdateListeners => {\n drawersUpdateListeners?.(this.drawers);\n });\n }, 0);\n\n registerDrawer = (config: DrawerConfig) => {\n if (this.drawers.find(drawer => drawer.id === config.id)) {\n reportRuntimeApiWarning('app-layout-drawers', `drawer with id \"${config.id}\" is already registered`);\n }\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n updateDrawer = ({ id: drawerId, ...rest }: UpdateDrawerConfig) => {\n const drawerIndex = this.drawers.findIndex(({ id }) => id === drawerId);\n const oldDrawerConfig = this.drawers?.[drawerIndex];\n if (!oldDrawerConfig) {\n throw new Error(`[AwsUi] [runtime drawers] drawer with id ${drawerId} not found`);\n }\n const drawers = this.drawers.slice();\n const updatedDrawer = { ...oldDrawerConfig };\n for (const key of updatableProperties) {\n if (key in rest) {\n updatedDrawer[key] = (rest as any)[key];\n }\n }\n drawers[drawerIndex] = updatedDrawer;\n this.drawers = drawers;\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawersRegistered'\n );\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n this.drawersUpdateListeners = [];\n };\n };\n\n clearRegisteredDrawersForTesting = () => {\n this.drawers = [];\n };\n\n onDrawerOpened = (listener: DrawersToggledListener) => {\n if (this.drawerOpenedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerOpened'\n );\n }\n\n this.drawerOpenedListener = listener;\n\n return () => {\n this.drawerOpenedListener = null;\n };\n };\n\n onDrawerClosed = (listener: DrawersToggledListener) => {\n if (this.drawerClosedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerClosed'\n );\n }\n\n this.drawerClosedListener = listener;\n\n return () => {\n this.drawerClosedListener = null;\n };\n };\n\n openDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerOpenedListener?.(drawerId, params);\n };\n\n closeDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerClosedListener?.(drawerId, params);\n };\n\n onDrawersUpdated = (listener: DrawersUpdateListener) => {\n this.drawersUpdateListeners.push(listener);\n\n return () => {\n this.drawersUpdateListeners = this.drawersUpdateListeners.filter(item => item !== listener);\n };\n };\n\n onDrawerResize = (listener: DrawersResizeListener) => {\n if (this.drawerResizeListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerResize'\n );\n }\n\n this.drawerResizeListener = listener;\n\n return () => {\n this.drawerResizeListener = null;\n };\n };\n\n resizeDrawer = (drawerId: string, size: number) => {\n this.drawerResizeListener?.(drawerId, size);\n };\n\n getDrawersState = () => {\n return this.drawers;\n };\n\n installPublic(api: Partial<DrawersApiPublic> = {}): DrawersApiPublic {\n api.registerDrawer ??= this.registerDrawer;\n api.updateDrawer ??= this.updateDrawer;\n api.openDrawer ??= this.openDrawer;\n api.closeDrawer ??= this.closeDrawer;\n api.resizeDrawer ??= this.resizeDrawer;\n api.clearRegisteredDrawersForTesting ??= this.clearRegisteredDrawersForTesting;\n return api as DrawersApiPublic;\n }\n\n installInternal(internalApi: Partial<DrawersApiInternal> = {}): DrawersApiInternal {\n internalApi.onDrawersRegistered ??= this.onDrawersRegistered;\n internalApi.onDrawerOpened ??= this.onDrawerOpened;\n internalApi.onDrawerClosed ??= this.onDrawerClosed;\n internalApi.onDrawerResize ??= this.onDrawerResize;\n internalApi.onDrawersUpdated ??= this.onDrawersUpdated;\n internalApi.getDrawersState ??= this.getDrawersState;\n return internalApi as DrawersApiInternal;\n }\n}\n"]}
1
+ {"version":3,"file":"drawers.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AA0C7D,MAAM,mBAAmB,GAAG;IAC1B,OAAO;IACP,WAAW;IACX,aAAa;IACb,eAAe;IACf,eAAe;IACf,UAAU;CACF,CAAC;AAkCX,MAAM,OAAO,iBAAiB;IAA9B;QACU,YAAO,GAAwB,EAAE,CAAC;QAClC,gCAA2B,GAAuC,IAAI,CAAC;QACvE,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,2BAAsB,GAAiC,EAAE,CAAC;QAC1D,yBAAoB,GAAiC,IAAI,CAAC;QAElE,mBAAc,GAAG,QAAQ,CAAC,GAAG,EAAE;;YAC7B,MAAA,IAAI,CAAC,2BAA2B,qDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;gBAC3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yright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport debounce from '../../debounce';\nimport { reportRuntimeApiWarning } from '../helpers/metrics';\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\nexport interface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerConfig {\n id: string;\n type?: 'local' | 'global';\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n };\n isExpandable?: boolean;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n orderPriority?: number;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n}\n\nconst updatableProperties = [\n 'badge',\n 'resizable',\n 'defaultSize',\n 'orderPriority',\n 'defaultActive',\n 'onResize',\n] as const;\n\nexport type UpdateDrawerConfig = { id: DrawerConfig['id'] } & Partial<\n Pick<DrawerConfig, (typeof updatableProperties)[number]>\n>;\n\ntype DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\ntype DrawersUpdateListener = (drawers: Array<DrawerConfig>) => void;\n\nexport type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;\ntype DrawersResizeListener = (drawerId: string, size: number) => void;\n\ninterface OpenCloseDrawerParams {\n initiatedByUserAction: boolean;\n}\n\nexport interface DrawersApiPublic {\n registerDrawer(config: DrawerConfig): void;\n updateDrawer(config: UpdateDrawerConfig): void;\n openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n resizeDrawer(drawerId: string, size: number): void;\n clearRegisteredDrawersForTesting(): void;\n}\n\nexport interface DrawersApiInternal {\n onDrawersRegistered(listener: DrawersRegistrationListener): () => void;\n onDrawerOpened(listener: DrawersToggledListener): () => void;\n onDrawerClosed(listener: DrawersToggledListener): () => void;\n onDrawerResize(listener: DrawersResizeListener): () => void;\n onDrawersUpdated(listener: DrawersUpdateListener): void;\n getDrawersState(): Array<DrawerConfig>;\n}\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private drawerOpenedListener: DrawersToggledListener | null = null;\n private drawerClosedListener: DrawersToggledListener | null = null;\n private drawersUpdateListeners: Array<DrawersUpdateListener> = [];\n private drawerResizeListener: DrawersResizeListener | null = null;\n\n scheduleUpdate = debounce(() => {\n this.drawersRegistrationListener?.(this.drawers);\n this.drawersUpdateListeners.forEach(drawersUpdateListeners => {\n drawersUpdateListeners?.(this.drawers);\n });\n }, 0);\n\n registerDrawer = (config: DrawerConfig) => {\n if (this.drawers.find(drawer => drawer.id === config.id)) {\n reportRuntimeApiWarning('app-layout-drawers', `drawer with id \"${config.id}\" is already registered`);\n }\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n updateDrawer = ({ id: drawerId, ...rest }: UpdateDrawerConfig) => {\n const drawerIndex = this.drawers.findIndex(({ id }) => id === drawerId);\n const oldDrawerConfig = this.drawers?.[drawerIndex];\n if (!oldDrawerConfig) {\n throw new Error(`[AwsUi] [runtime drawers] drawer with id ${drawerId} not found`);\n }\n const drawers = this.drawers.slice();\n const updatedDrawer = { ...oldDrawerConfig };\n for (const key of updatableProperties) {\n if (key in rest) {\n updatedDrawer[key] = (rest as any)[key];\n }\n }\n drawers[drawerIndex] = updatedDrawer;\n this.drawers = drawers;\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawersRegistered'\n );\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n this.drawersUpdateListeners = [];\n };\n };\n\n clearRegisteredDrawersForTesting = () => {\n this.drawers = [];\n };\n\n onDrawerOpened = (listener: DrawersToggledListener) => {\n if (this.drawerOpenedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerOpened'\n );\n }\n\n this.drawerOpenedListener = listener;\n\n return () => {\n this.drawerOpenedListener = null;\n };\n };\n\n onDrawerClosed = (listener: DrawersToggledListener) => {\n if (this.drawerClosedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerClosed'\n );\n }\n\n this.drawerClosedListener = listener;\n\n return () => {\n this.drawerClosedListener = null;\n };\n };\n\n openDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerOpenedListener?.(drawerId, params);\n };\n\n closeDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerClosedListener?.(drawerId, params);\n };\n\n onDrawersUpdated = (listener: DrawersUpdateListener) => {\n this.drawersUpdateListeners.push(listener);\n\n return () => {\n this.drawersUpdateListeners = this.drawersUpdateListeners.filter(item => item !== listener);\n };\n };\n\n onDrawerResize = (listener: DrawersResizeListener) => {\n if (this.drawerResizeListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerResize'\n );\n }\n\n this.drawerResizeListener = listener;\n\n return () => {\n this.drawerResizeListener = null;\n };\n };\n\n resizeDrawer = (drawerId: string, size: number) => {\n this.drawerResizeListener?.(drawerId, size);\n };\n\n getDrawersState = () => {\n return this.drawers;\n };\n\n installPublic(api: Partial<DrawersApiPublic> = {}): DrawersApiPublic {\n api.registerDrawer ??= this.registerDrawer;\n api.updateDrawer ??= this.updateDrawer;\n api.openDrawer ??= this.openDrawer;\n api.closeDrawer ??= this.closeDrawer;\n api.resizeDrawer ??= this.resizeDrawer;\n api.clearRegisteredDrawersForTesting ??= this.clearRegisteredDrawersForTesting;\n return api as DrawersApiPublic;\n }\n\n installInternal(internalApi: Partial<DrawersApiInternal> = {}): DrawersApiInternal {\n internalApi.onDrawersRegistered ??= this.onDrawersRegistered;\n internalApi.onDrawerOpened ??= this.onDrawerOpened;\n internalApi.onDrawerClosed ??= this.onDrawerClosed;\n internalApi.onDrawerResize ??= this.onDrawerResize;\n internalApi.onDrawersUpdated ??= this.onDrawersUpdated;\n internalApi.getDrawersState ??= this.getDrawersState;\n return internalApi as DrawersApiInternal;\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';
2
- import { NonCancelableEventHandler } from '../../events';
2
+ import { NonCancelableEventHandler } from '../../../types/events';
3
3
  interface Message<Type, Payload> {
4
4
  type: Type;
5
5
  payload: Payload;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,KAAK,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;AAE/E,UAAU,mBAAmB;IAC3B,k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,WAAW,2BAA2B;IAC1C,IAAI,EAAE,6BAA6B,CAAC;CACrC;AACD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,OAAO,IAC1C,yBAAyB,GACzB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,mBAAmB,GACnB,uBAAuB,GACvB,mCAAmC,CAAC,CAAC,CAAC,GACtC,2BAA2B,GAC3B,yBAAyB,CAAC;AAE9B,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,qBAAqB,GAAG,mCAAmC,CAAC,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T> = RegisterDrawerMessage | RegisterFeatureNotificationsMessage<T>;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T> = RegisterDrawerMessage | RegisterFeatureNotificationsMessage<T>;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
@@ -1,16 +1 @@
1
- /**
2
- * Specifies the granularity at which a date will be displayed.
3
- **/
4
- export type DateGranularity = 'day' | 'month';
5
- /**
6
- * The formats that allow for an editable value:
7
- * * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).
8
- * * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).
9
- **/
10
- export type EditableDateFormat = 'iso' | 'slashed';
11
- /**
12
- * The format that does note allow for an editable value
13
- * * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).
14
- **/
15
- export type StaticDateFormat = 'long-localized';
16
- export type DateFormat = EditableDateFormat | StaticDateFormat;
1
+ export { DateFormat, DateGranularity, EditableDateFormat, StaticDateFormat } from '../../../types/date-time';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAGA;;IAEI;AACJ,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,OAAO,CAAC;AAE9C;;;;IAII;AACJ,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,SAAS,CAAC;AAEnD;;;IAGI;AACJ,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAEhD,MAAM,MAAM,UAAU,GAAG,kBAAkB,GAAG,gBAAgB,CAAC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Specifies the granularity at which a date will be displayed.\n **/\nexport type DateGranularity = 'day' | 'month';\n\n/**\n * The formats that allow for an editable value:\n * * `iso`: ISO 8601 format without time, e.g.: 2024-01-30 (or 2024-01).\n * * `slashed`: similar to ISO 8601 but with '/' in place of '-'. e.g.: 2024/01/30 (or 2024/01).\n **/\nexport type EditableDateFormat = 'iso' | 'slashed';\n\n/**\n * The format that does note allow for an editable value\n * * `long-localized`: a more human-readable, localized format, e.g.: January 30, 2024 (or January, 2024).\n **/\nexport type StaticDateFormat = 'long-localized';\n\nexport type DateFormat = EditableDateFormat | StaticDateFormat;\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/utils/date-time/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { DateFormat, DateGranularity, EditableDateFormat, StaticDateFormat } from '../../../types/date-time';\n"]}
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export type NativeAttributes<T extends React.HTMLAttributes<HTMLElement>> = (Omit<T, 'children'> & Record<`data-${string}`, string>) | undefined;
2
+ import { NativeAttributes } from '../../types/native-attributes';
3
3
  export type SkipWarnings = boolean | string[];
4
4
  type NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {
5
5
  tag: string;
@@ -15,4 +15,5 @@ interface ForwardRefType {
15
15
  }
16
16
  export declare function processAttributes<ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(rest: Omit<NativeAttributesProps<AT>, 'children' | 'tag' | 'skipWarnings' | 'componentName' | 'nativeAttributes'>, nativeAttributes: NativeAttributes<AT>, componentName: string, skipWarnings?: SkipWarnings): any;
17
17
  declare const _default: ForwardRefType;
18
- export default _default;
18
+ export default _default;
19
+ export { NativeAttributes } from '../../types/native-attributes';
@@ -1 +1 @@
1
- {"version":3,"file":"with-native-attributes.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,cAAc,CAAC,WAAW,C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