@cloudscape-design/components-themeable 3.0.1317 → 3.0.1319

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/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  3. package/lib/internal/template/action-card/interfaces.d.ts +3 -3
  4. package/lib/internal/template/action-card/interfaces.d.ts.map +1 -1
  5. package/lib/internal/template/action-card/interfaces.js.map +1 -1
  6. package/lib/internal/template/alert/interfaces.d.ts +3 -3
  7. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  8. package/lib/internal/template/alert/interfaces.js.map +1 -1
  9. package/lib/internal/template/anchor-navigation/interfaces.d.ts +2 -2
  10. package/lib/internal/template/anchor-navigation/interfaces.d.ts.map +1 -1
  11. package/lib/internal/template/anchor-navigation/interfaces.js.map +1 -1
  12. package/lib/internal/template/annotation-context/interfaces.d.ts +1 -1
  13. package/lib/internal/template/annotation-context/interfaces.d.ts.map +1 -1
  14. package/lib/internal/template/annotation-context/interfaces.js.map +1 -1
  15. package/lib/internal/template/app-layout/classic.d.ts +1 -1
  16. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts +1 -1
  17. package/lib/internal/template/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  18. package/lib/internal/template/app-layout/drawer/overflow-menu.js.map +1 -1
  19. package/lib/internal/template/app-layout/index.js.map +1 -1
  20. package/lib/internal/template/app-layout/interfaces.d.ts +3 -3
  21. package/lib/internal/template/app-layout/interfaces.d.ts.map +1 -1
  22. package/lib/internal/template/app-layout/interfaces.js.map +1 -1
  23. package/lib/internal/template/app-layout/internal.d.ts +1 -1
  24. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts +1 -1
  25. package/lib/internal/template/app-layout/runtime-drawer/index.d.ts.map +1 -1
  26. package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
  27. package/lib/internal/template/app-layout/visual-refresh/index.d.ts +1 -1
  28. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts +1 -1
  29. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.d.ts.map +1 -1
  30. package/lib/internal/template/app-layout/visual-refresh-toolbar/interfaces.js.map +1 -1
  31. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-ai-drawer.d.ts +4 -4
  32. package/lib/internal/template/app-layout/visual-refresh-toolbar/state/use-bottom-drawers.d.ts +4 -4
  33. package/lib/internal/template/app-layout-toolbar/index.js.map +1 -1
  34. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts +1 -1
  35. package/lib/internal/template/area-chart/elements/use-highlight-details.d.ts.map +1 -1
  36. package/lib/internal/template/area-chart/elements/use-highlight-details.js.map +1 -1
  37. package/lib/internal/template/area-chart/interfaces.d.ts +1 -1
  38. package/lib/internal/template/area-chart/interfaces.d.ts.map +1 -1
  39. package/lib/internal/template/area-chart/interfaces.js.map +1 -1
  40. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts +2 -2
  41. package/lib/internal/template/area-chart/model/compute-chart-props.d.ts.map +1 -1
  42. package/lib/internal/template/area-chart/model/compute-chart-props.js +2 -0
  43. package/lib/internal/template/area-chart/model/compute-chart-props.js.map +1 -1
  44. package/lib/internal/template/area-chart/model/index.d.ts +1 -1
  45. package/lib/internal/template/area-chart/model/index.d.ts.map +1 -1
  46. package/lib/internal/template/area-chart/model/index.js.map +1 -1
  47. package/lib/internal/template/area-chart/model/use-chart-model.d.ts +1 -1
  48. package/lib/internal/template/area-chart/model/use-chart-model.d.ts.map +1 -1
  49. package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
  50. package/lib/internal/template/area-chart/model/use-filter-props.d.ts +1 -1
  51. package/lib/internal/template/area-chart/model/use-filter-props.d.ts.map +1 -1
  52. package/lib/internal/template/area-chart/model/use-filter-props.js.map +1 -1
  53. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts +1 -1
  54. package/lib/internal/template/area-chart/model/use-highlight-props.d.ts.map +1 -1
  55. package/lib/internal/template/area-chart/model/use-highlight-props.js.map +1 -1
  56. package/lib/internal/template/area-chart/model/utils.d.ts +1 -1
  57. package/lib/internal/template/area-chart/model/utils.d.ts.map +1 -1
  58. package/lib/internal/template/area-chart/model/utils.js.map +1 -1
  59. package/lib/internal/template/attribute-editor/interfaces.d.ts +3 -3
  60. package/lib/internal/template/attribute-editor/interfaces.d.ts.map +1 -1
  61. package/lib/internal/template/attribute-editor/interfaces.js.map +1 -1
  62. package/lib/internal/template/attribute-editor/row.d.ts +2 -2
  63. package/lib/internal/template/attribute-editor/row.d.ts.map +1 -1
  64. package/lib/internal/template/attribute-editor/row.js.map +1 -1
  65. package/lib/internal/template/autosuggest/autosuggest-option.d.ts +1 -1
  66. package/lib/internal/template/autosuggest/autosuggest-option.d.ts.map +1 -1
  67. package/lib/internal/template/autosuggest/autosuggest-option.js.map +1 -1
  68. package/lib/internal/template/autosuggest/interfaces.d.ts +5 -5
  69. package/lib/internal/template/autosuggest/interfaces.d.ts.map +1 -1
  70. package/lib/internal/template/autosuggest/interfaces.js.map +1 -1
  71. package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
  72. package/lib/internal/template/autosuggest/internal.js +1 -1
  73. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  74. package/lib/internal/template/autosuggest/load-more-controller.d.ts +1 -1
  75. package/lib/internal/template/autosuggest/load-more-controller.d.ts.map +1 -1
  76. package/lib/internal/template/autosuggest/load-more-controller.js.map +1 -1
  77. package/lib/internal/template/badge/interfaces.d.ts +2 -2
  78. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  79. package/lib/internal/template/badge/interfaces.js.map +1 -1
  80. package/lib/internal/template/bar-chart/interfaces.d.ts +1 -1
  81. package/lib/internal/template/bar-chart/interfaces.d.ts.map +1 -1
  82. package/lib/internal/template/bar-chart/interfaces.js.map +1 -1
  83. package/lib/internal/template/box/interfaces.d.ts +2 -2
  84. package/lib/internal/template/box/interfaces.d.ts.map +1 -1
  85. package/lib/internal/template/box/interfaces.js.map +1 -1
  86. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts +1 -1
  87. package/lib/internal/template/breadcrumb-group/all-items-dropdown.d.ts.map +1 -1
  88. package/lib/internal/template/breadcrumb-group/all-items-dropdown.js.map +1 -1
  89. package/lib/internal/template/breadcrumb-group/interfaces.d.ts +2 -2
  90. package/lib/internal/template/breadcrumb-group/interfaces.d.ts.map +1 -1
  91. package/lib/internal/template/breadcrumb-group/interfaces.js.map +1 -1
  92. package/lib/internal/template/button/interfaces.d.ts +3 -3
  93. package/lib/internal/template/button/interfaces.d.ts.map +1 -1
  94. package/lib/internal/template/button/interfaces.js.map +1 -1
  95. package/lib/internal/template/button-dropdown/interfaces.d.ts +3 -3
  96. package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
  97. package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
  98. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts +1 -1
  99. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  100. package/lib/internal/template/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  101. package/lib/internal/template/button-group/file-input-item.d.ts +1 -1
  102. package/lib/internal/template/button-group/file-input-item.d.ts.map +1 -1
  103. package/lib/internal/template/button-group/file-input-item.js.map +1 -1
  104. package/lib/internal/template/button-group/icon-button-item.d.ts +1 -1
  105. package/lib/internal/template/button-group/icon-button-item.d.ts.map +1 -1
  106. package/lib/internal/template/button-group/icon-button-item.js +1 -1
  107. package/lib/internal/template/button-group/icon-button-item.js.map +1 -1
  108. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts +1 -1
  109. package/lib/internal/template/button-group/icon-toggle-button-item.d.ts.map +1 -1
  110. package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
  111. package/lib/internal/template/button-group/interfaces.d.ts +10 -2
  112. package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
  113. package/lib/internal/template/button-group/interfaces.js.map +1 -1
  114. package/lib/internal/template/button-group/item-element.d.ts +1 -1
  115. package/lib/internal/template/button-group/item-element.d.ts.map +1 -1
  116. package/lib/internal/template/button-group/item-element.js.map +1 -1
  117. package/lib/internal/template/button-group/menu-dropdown-item.d.ts +1 -1
  118. package/lib/internal/template/button-group/menu-dropdown-item.d.ts.map +1 -1
  119. package/lib/internal/template/button-group/menu-dropdown-item.js.map +1 -1
  120. package/lib/internal/template/calendar/interfaces.d.ts +3 -3
  121. package/lib/internal/template/calendar/interfaces.d.ts.map +1 -1
  122. package/lib/internal/template/calendar/interfaces.js.map +1 -1
  123. package/lib/internal/template/cards/interfaces.d.ts +2 -2
  124. package/lib/internal/template/cards/interfaces.d.ts.map +1 -1
  125. package/lib/internal/template/cards/interfaces.js.map +1 -1
  126. package/lib/internal/template/checkbox/base-checkbox.d.ts +3 -3
  127. package/lib/internal/template/checkbox/base-checkbox.d.ts.map +1 -1
  128. package/lib/internal/template/checkbox/base-checkbox.js.map +1 -1
  129. package/lib/internal/template/checkbox/interfaces.d.ts +2 -2
  130. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  131. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  132. package/lib/internal/template/code-editor/error-screen.d.ts +1 -1
  133. package/lib/internal/template/code-editor/error-screen.d.ts.map +1 -1
  134. package/lib/internal/template/code-editor/error-screen.js.map +1 -1
  135. package/lib/internal/template/code-editor/interfaces.d.ts +3 -3
  136. package/lib/internal/template/code-editor/interfaces.d.ts.map +1 -1
  137. package/lib/internal/template/code-editor/interfaces.js.map +1 -1
  138. package/lib/internal/template/code-editor/listeners.d.ts +1 -1
  139. package/lib/internal/template/code-editor/listeners.d.ts.map +1 -1
  140. package/lib/internal/template/code-editor/listeners.js.map +1 -1
  141. package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
  142. package/lib/internal/template/collection-preferences/interfaces.d.ts +4 -4
  143. package/lib/internal/template/collection-preferences/interfaces.d.ts.map +1 -1
  144. package/lib/internal/template/collection-preferences/interfaces.js.map +1 -1
  145. package/lib/internal/template/column-layout/interfaces.d.ts +1 -1
  146. package/lib/internal/template/column-layout/interfaces.d.ts.map +1 -1
  147. package/lib/internal/template/column-layout/interfaces.js.map +1 -1
  148. package/lib/internal/template/container/interfaces.d.ts +1 -1
  149. package/lib/internal/template/container/interfaces.d.ts.map +1 -1
  150. package/lib/internal/template/container/interfaces.js.map +1 -1
  151. package/lib/internal/template/content-layout/interfaces.d.ts +1 -1
  152. package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
  153. package/lib/internal/template/content-layout/interfaces.js.map +1 -1
  154. package/lib/internal/template/contexts/form-field.d.ts +2 -1
  155. package/lib/internal/template/contexts/form-field.d.ts.map +1 -1
  156. package/lib/internal/template/contexts/form-field.js +1 -1
  157. package/lib/internal/template/contexts/form-field.js.map +1 -1
  158. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts +2 -2
  159. package/lib/internal/template/copy-to-clipboard/interfaces.d.ts.map +1 -1
  160. package/lib/internal/template/copy-to-clipboard/interfaces.js.map +1 -1
  161. package/lib/internal/template/date-input/interfaces.d.ts +3 -3
  162. package/lib/internal/template/date-input/interfaces.d.ts.map +1 -1
  163. package/lib/internal/template/date-input/interfaces.js.map +1 -1
  164. package/lib/internal/template/date-input/internal.d.ts.map +1 -1
  165. package/lib/internal/template/date-input/internal.js.map +1 -1
  166. package/lib/internal/template/date-picker/interfaces.d.ts +4 -4
  167. package/lib/internal/template/date-picker/interfaces.d.ts.map +1 -1
  168. package/lib/internal/template/date-picker/interfaces.js.map +1 -1
  169. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts +1 -1
  170. package/lib/internal/template/date-range-picker/calendar/interfaces.d.ts.map +1 -1
  171. package/lib/internal/template/date-range-picker/calendar/interfaces.js.map +1 -1
  172. package/lib/internal/template/date-range-picker/interfaces.d.ts +4 -4
  173. package/lib/internal/template/date-range-picker/interfaces.d.ts.map +1 -1
  174. package/lib/internal/template/date-range-picker/interfaces.js.map +1 -1
  175. package/lib/internal/template/divider/interfaces.d.ts +2 -2
  176. package/lib/internal/template/divider/interfaces.d.ts.map +1 -1
  177. package/lib/internal/template/divider/interfaces.js.map +1 -1
  178. package/lib/internal/template/drawer/interfaces.d.ts +2 -2
  179. package/lib/internal/template/drawer/interfaces.d.ts.map +1 -1
  180. package/lib/internal/template/drawer/interfaces.js.map +1 -1
  181. package/lib/internal/template/dropdown/interfaces.d.ts +1 -1
  182. package/lib/internal/template/dropdown/interfaces.d.ts.map +1 -1
  183. package/lib/internal/template/dropdown/interfaces.js.map +1 -1
  184. package/lib/internal/template/dropdown/internal.d.ts +1 -1
  185. package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
  186. package/lib/internal/template/dropdown/internal.js.map +1 -1
  187. package/lib/internal/template/error-boundary/interfaces.d.ts +1 -1
  188. package/lib/internal/template/error-boundary/interfaces.d.ts.map +1 -1
  189. package/lib/internal/template/error-boundary/interfaces.js.map +1 -1
  190. package/lib/internal/template/expandable-section/interfaces.d.ts +2 -2
  191. package/lib/internal/template/expandable-section/interfaces.d.ts.map +1 -1
  192. package/lib/internal/template/expandable-section/interfaces.js.map +1 -1
  193. package/lib/internal/template/file-dropzone/interfaces.d.ts +2 -2
  194. package/lib/internal/template/file-dropzone/interfaces.d.ts.map +1 -1
  195. package/lib/internal/template/file-dropzone/interfaces.js.map +1 -1
  196. package/lib/internal/template/file-input/interfaces.d.ts +3 -3
  197. package/lib/internal/template/file-input/interfaces.d.ts.map +1 -1
  198. package/lib/internal/template/file-input/interfaces.js.map +1 -1
  199. package/lib/internal/template/file-token-group/file-token.d.ts +1 -1
  200. package/lib/internal/template/file-token-group/file-token.d.ts.map +1 -1
  201. package/lib/internal/template/file-token-group/file-token.js.map +1 -1
  202. package/lib/internal/template/file-token-group/interfaces.d.ts +2 -2
  203. package/lib/internal/template/file-token-group/interfaces.d.ts.map +1 -1
  204. package/lib/internal/template/file-token-group/interfaces.js.map +1 -1
  205. package/lib/internal/template/file-upload/interfaces.d.ts +3 -3
  206. package/lib/internal/template/file-upload/interfaces.d.ts.map +1 -1
  207. package/lib/internal/template/file-upload/interfaces.js.map +1 -1
  208. package/lib/internal/template/flashbar/common.d.ts +1 -1
  209. package/lib/internal/template/flashbar/interfaces.d.ts +2 -2
  210. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  211. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  212. package/lib/internal/template/form/interfaces.d.ts +2 -2
  213. package/lib/internal/template/form/interfaces.d.ts.map +1 -1
  214. package/lib/internal/template/form/interfaces.js.map +1 -1
  215. package/lib/internal/template/form-field/interfaces.d.ts +2 -2
  216. package/lib/internal/template/form-field/interfaces.d.ts.map +1 -1
  217. package/lib/internal/template/form-field/interfaces.js.map +1 -1
  218. package/lib/internal/template/grid/interfaces.d.ts +2 -2
  219. package/lib/internal/template/grid/interfaces.d.ts.map +1 -1
  220. package/lib/internal/template/grid/interfaces.js.map +1 -1
  221. package/lib/internal/template/grid/internal.d.ts +1 -1
  222. package/lib/internal/template/grid/internal.d.ts.map +1 -1
  223. package/lib/internal/template/grid/internal.js.map +1 -1
  224. package/lib/internal/template/header/interfaces.d.ts +1 -1
  225. package/lib/internal/template/header/interfaces.d.ts.map +1 -1
  226. package/lib/internal/template/header/interfaces.js.map +1 -1
  227. package/lib/internal/template/help-panel/interfaces.d.ts +1 -1
  228. package/lib/internal/template/help-panel/interfaces.d.ts.map +1 -1
  229. package/lib/internal/template/help-panel/interfaces.js.map +1 -1
  230. package/lib/internal/template/hotspot/interfaces.d.ts +1 -1
  231. package/lib/internal/template/hotspot/interfaces.d.ts.map +1 -1
  232. package/lib/internal/template/hotspot/interfaces.js.map +1 -1
  233. package/lib/internal/template/icon/generated/icons.d.ts +2 -0
  234. package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
  235. package/lib/internal/template/icon/generated/icons.js +7 -0
  236. package/lib/internal/template/icon/generated/icons.js.map +1 -1
  237. package/lib/internal/template/icon/interfaces.d.ts +2 -2
  238. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  239. package/lib/internal/template/icon/interfaces.js.map +1 -1
  240. package/lib/internal/template/icon-provider/interfaces.d.ts +2 -2
  241. package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
  242. package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
  243. package/lib/internal/template/input/interfaces.d.ts +4 -4
  244. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  245. package/lib/internal/template/input/interfaces.js.map +1 -1
  246. package/lib/internal/template/input/internal.d.ts +3 -3
  247. package/lib/internal/template/input/internal.d.ts.map +1 -1
  248. package/lib/internal/template/input/internal.js.map +1 -1
  249. package/lib/internal/template/interfaces.d.ts +1 -1
  250. package/lib/internal/template/interfaces.d.ts.map +1 -1
  251. package/lib/internal/template/interfaces.js.map +1 -1
  252. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts +2 -1
  253. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  254. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  255. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +2 -1
  256. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  257. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  258. package/lib/internal/template/internal/analytics/interfaces.d.ts +2 -15
  259. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  260. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  261. package/lib/internal/template/internal/base-component/index.d.ts +3 -15
  262. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  263. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  264. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  265. package/lib/internal/template/internal/breakpoints.d.ts +2 -1
  266. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  267. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  268. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +3 -3
  269. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  270. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  271. package/lib/internal/template/internal/components/button-trigger/index.d.ts +2 -2
  272. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  273. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  274. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
  275. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
  276. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
  277. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts +1 -209
  278. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  279. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js +2 -0
  280. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  281. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts +1 -1
  282. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  283. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  284. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts +1 -1
  285. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  286. package/lib/internal/template/internal/components/cartesian-chart/scales.js +0 -2
  287. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  288. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts +1 -1
  289. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  290. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  291. package/lib/internal/template/internal/components/chart-filter/index.d.ts +1 -1
  292. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  293. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  294. package/lib/internal/template/internal/components/chart-series-details/index.d.ts +1 -1
  295. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  296. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  297. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts +1 -1
  298. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  299. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  300. package/lib/internal/template/internal/components/chart-status-container/index.d.ts +2 -2
  301. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  302. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  303. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts +1 -1
  304. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -1
  305. package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -1
  306. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts +1 -1
  307. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  308. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  309. package/lib/internal/template/internal/components/dropdown-status/index.d.ts +3 -3
  310. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  311. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  312. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts +2 -2
  313. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  314. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  315. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts +1 -1
  316. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  317. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  318. package/lib/internal/template/internal/components/option/interfaces.d.ts +3 -26
  319. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  320. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  321. package/lib/internal/template/internal/components/option/option-announcer.d.ts +1 -1
  322. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  323. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  324. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts +2 -1
  325. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  326. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  327. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts +2 -1
  328. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  329. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  330. package/lib/internal/template/internal/components/options-list/index.d.ts +3 -3
  331. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  332. package/lib/internal/template/internal/components/options-list/index.js +1 -1
  333. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  334. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
  335. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  336. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  337. package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
  338. package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
  339. package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
  340. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts +1 -128
  341. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts.map +1 -1
  342. package/lib/internal/template/internal/components/radio-button/interfaces.js +2 -0
  343. package/lib/internal/template/internal/components/radio-button/interfaces.js.map +1 -1
  344. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts +1 -1
  345. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  346. package/lib/internal/template/internal/components/selectable-item/interfaces.js.map +1 -1
  347. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts +3 -9
  348. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts.map +1 -1
  349. package/lib/internal/template/internal/components/sortable-area/interfaces.js.map +1 -1
  350. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts +1 -1
  351. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  352. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  353. package/lib/internal/template/internal/context/form-field-context.d.ts +2 -54
  354. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  355. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  356. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
  357. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
  358. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
  359. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
  360. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
  361. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js.map +1 -1
  362. package/lib/internal/template/internal/environment.js +2 -2
  363. package/lib/internal/template/internal/environment.json +2 -2
  364. package/lib/internal/template/internal/events/index.d.ts +2 -24
  365. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  366. package/lib/internal/template/internal/events/index.js.map +1 -1
  367. package/lib/internal/template/internal/generated/theming/index.cjs +6 -0
  368. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +27 -0
  369. package/lib/internal/template/internal/generated/theming/index.d.ts +27 -0
  370. package/lib/internal/template/internal/generated/theming/index.js +6 -0
  371. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts +1 -1
  372. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  373. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  374. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  375. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  376. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  377. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +1 -1
  378. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  379. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  380. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts +1 -1
  381. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  382. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  383. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  384. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  385. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  386. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +1 -1
  387. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  388. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  389. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts +1 -16
  390. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts.map +1 -1
  391. package/lib/internal/template/internal/utils/date-time/interfaces.js.map +1 -1
  392. package/lib/internal/template/internal/utils/with-native-attributes.d.ts +2 -1
  393. package/lib/internal/template/internal/utils/with-native-attributes.d.ts.map +1 -1
  394. package/lib/internal/template/internal/utils/with-native-attributes.js.map +1 -1
  395. package/lib/internal/template/item-card/interfaces.d.ts +2 -2
  396. package/lib/internal/template/item-card/interfaces.d.ts.map +1 -1
  397. package/lib/internal/template/item-card/interfaces.js.map +1 -1
  398. package/lib/internal/template/key-value-pairs/interfaces.d.ts +1 -1
  399. package/lib/internal/template/key-value-pairs/interfaces.d.ts.map +1 -1
  400. package/lib/internal/template/key-value-pairs/interfaces.js.map +1 -1
  401. package/lib/internal/template/link/interfaces.d.ts +3 -3
  402. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  403. package/lib/internal/template/link/interfaces.js.map +1 -1
  404. package/lib/internal/template/list/interfaces.d.ts +3 -3
  405. package/lib/internal/template/list/interfaces.d.ts.map +1 -1
  406. package/lib/internal/template/list/interfaces.js.map +1 -1
  407. package/lib/internal/template/live-region/interfaces.d.ts +1 -1
  408. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -1
  409. package/lib/internal/template/live-region/interfaces.js.map +1 -1
  410. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +1 -1
  411. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  412. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  413. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  414. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  415. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  416. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +1 -1
  417. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  418. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  419. package/lib/internal/template/modal/interfaces.d.ts +3 -3
  420. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  421. package/lib/internal/template/modal/interfaces.js.map +1 -1
  422. package/lib/internal/template/multiselect/embedded.d.ts +2 -2
  423. package/lib/internal/template/multiselect/interfaces.d.ts +2 -2
  424. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  425. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  426. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  427. package/lib/internal/template/multiselect/use-multiselect.d.ts +8 -8
  428. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  429. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  430. package/lib/internal/template/navigable-group/interfaces.d.ts +1 -1
  431. package/lib/internal/template/navigable-group/interfaces.d.ts.map +1 -1
  432. package/lib/internal/template/navigable-group/interfaces.js.map +1 -1
  433. package/lib/internal/template/pagination/interfaces.d.ts +1 -1
  434. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  435. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  436. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  437. package/lib/internal/template/pagination/internal.js.map +1 -1
  438. package/lib/internal/template/panel-layout/interfaces.d.ts +2 -2
  439. package/lib/internal/template/panel-layout/interfaces.d.ts.map +1 -1
  440. package/lib/internal/template/panel-layout/interfaces.js.map +1 -1
  441. package/lib/internal/template/pie-chart/interfaces.d.ts +2 -2
  442. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  443. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  444. package/lib/internal/template/popover/interfaces.d.ts +1 -1
  445. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  446. package/lib/internal/template/popover/interfaces.js.map +1 -1
  447. package/lib/internal/template/popover/internal.d.ts +1 -1
  448. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  449. package/lib/internal/template/popover/internal.js.map +1 -1
  450. package/lib/internal/template/progress-bar/interfaces.d.ts +2 -2
  451. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  452. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  453. package/lib/internal/template/prompt-input/core/menu-state.d.ts +2 -2
  454. package/lib/internal/template/prompt-input/core/menu-state.d.ts.map +1 -1
  455. package/lib/internal/template/prompt-input/core/menu-state.js.map +1 -1
  456. package/lib/internal/template/prompt-input/interfaces.d.ts +6 -6
  457. package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
  458. package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
  459. package/lib/internal/template/property-filter/controller.d.ts +2 -2
  460. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  461. package/lib/internal/template/property-filter/controller.js.map +1 -1
  462. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  463. package/lib/internal/template/property-filter/interfaces.d.ts +4 -4
  464. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  465. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  466. package/lib/internal/template/property-filter/property-editor.d.ts +2 -2
  467. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  468. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  469. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts +1 -1
  470. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  471. package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
  472. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  473. package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -2
  474. package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
  475. package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
  476. package/lib/internal/template/property-filter/token-editor.d.ts +2 -2
  477. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  478. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  479. package/lib/internal/template/property-filter/token.d.ts +2 -2
  480. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  481. package/lib/internal/template/property-filter/token.js.map +1 -1
  482. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  483. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  484. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  485. package/lib/internal/template/radio-button/interfaces.d.ts +128 -2
  486. package/lib/internal/template/radio-button/interfaces.d.ts.map +1 -1
  487. package/lib/internal/template/radio-button/interfaces.js.map +1 -1
  488. package/lib/internal/template/radio-group/interfaces.d.ts +4 -4
  489. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  490. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  491. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +2 -2
  492. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  493. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  494. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  495. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  496. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  497. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  498. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  499. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  500. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  501. package/lib/internal/template/select/interfaces.d.ts +5 -5
  502. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  503. package/lib/internal/template/select/interfaces.js.map +1 -1
  504. package/lib/internal/template/select/internal.d.ts.map +1 -1
  505. package/lib/internal/template/select/internal.js.map +1 -1
  506. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  507. package/lib/internal/template/select/parts/item.js.map +1 -1
  508. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  509. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  510. package/lib/internal/template/select/parts/trigger.d.ts +2 -2
  511. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  512. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  513. package/lib/internal/template/select/utils/connect-options.d.ts +2 -1
  514. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  515. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  516. package/lib/internal/template/select/utils/use-announcement.d.ts +1 -1
  517. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  518. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  519. package/lib/internal/template/select/utils/use-load-items.d.ts +2 -2
  520. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  521. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  522. package/lib/internal/template/select/utils/use-native-search.d.ts +2 -1
  523. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  524. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  525. package/lib/internal/template/select/utils/use-select.d.ts +4 -3
  526. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  527. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  528. package/lib/internal/template/side-navigation/interfaces.d.ts +2 -2
  529. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  530. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  531. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  532. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  533. package/lib/internal/template/skeleton/interfaces.d.ts +1 -1
  534. package/lib/internal/template/skeleton/interfaces.d.ts.map +1 -1
  535. package/lib/internal/template/skeleton/interfaces.js.map +1 -1
  536. package/lib/internal/template/slider/interfaces.d.ts +3 -3
  537. package/lib/internal/template/slider/interfaces.d.ts.map +1 -1
  538. package/lib/internal/template/slider/interfaces.js.map +1 -1
  539. package/lib/internal/template/space-between/interfaces.d.ts +2 -2
  540. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  541. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  542. package/lib/internal/template/spinner/interfaces.d.ts +2 -2
  543. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  544. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  545. package/lib/internal/template/split-panel/interfaces.d.ts +1 -1
  546. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  547. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  548. package/lib/internal/template/status-indicator/interfaces.d.ts +2 -2
  549. package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
  550. package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
  551. package/lib/internal/template/steps/interfaces.d.ts +1 -1
  552. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  553. package/lib/internal/template/steps/interfaces.js.map +1 -1
  554. package/lib/internal/template/table/interfaces.d.ts +2 -2
  555. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  556. package/lib/internal/template/table/interfaces.js.map +1 -1
  557. package/lib/internal/template/table/thead.d.ts +1 -1
  558. package/lib/internal/template/table/thead.d.ts.map +1 -1
  559. package/lib/internal/template/table/thead.js.map +1 -1
  560. package/lib/internal/template/table/use-cell-editing.d.ts +1 -1
  561. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  562. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  563. package/lib/internal/template/tabs/interfaces.d.ts +2 -2
  564. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  565. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  566. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  567. package/lib/internal/template/tag-editor/index.js.map +1 -1
  568. package/lib/internal/template/tag-editor/interfaces.d.ts +2 -2
  569. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  570. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  571. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  572. package/lib/internal/template/text-content/interfaces.d.ts +1 -1
  573. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  574. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  575. package/lib/internal/template/text-filter/interfaces.d.ts +3 -3
  576. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  577. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  578. package/lib/internal/template/textarea/interfaces.d.ts +4 -4
  579. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  580. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  581. package/lib/internal/template/tiles/interfaces.d.ts +4 -4
  582. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  583. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  584. package/lib/internal/template/time-input/interfaces.d.ts +2 -2
  585. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  586. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  587. package/lib/internal/template/toggle/interfaces.d.ts +2 -2
  588. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  589. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  590. package/lib/internal/template/toggle-button/interfaces.d.ts +2 -2
  591. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  592. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  593. package/lib/internal/template/token/dismiss-button.d.ts +1 -1
  594. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  595. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  596. package/lib/internal/template/token/interfaces.d.ts +2 -2
  597. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  598. package/lib/internal/template/token/interfaces.js.map +1 -1
  599. package/lib/internal/template/token-group/interfaces.d.ts +2 -2
  600. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  601. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  602. package/lib/internal/template/tooltip/interfaces.d.ts +1 -1
  603. package/lib/internal/template/tooltip/interfaces.d.ts.map +1 -1
  604. package/lib/internal/template/tooltip/interfaces.js.map +1 -1
  605. package/lib/internal/template/top-navigation/interfaces.d.ts +2 -2
  606. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  607. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  608. package/lib/internal/template/tree-view/interfaces.d.ts +2 -2
  609. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
  610. package/lib/internal/template/tree-view/interfaces.js.map +1 -1
  611. package/lib/internal/template/truncated-text/interfaces.d.ts +1 -1
  612. package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -1
  613. package/lib/internal/template/truncated-text/interfaces.js.map +1 -1
  614. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  615. package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -2
  616. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  617. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  618. package/lib/internal/template/types/analytics.d.ts +16 -0
  619. package/lib/internal/template/types/analytics.d.ts.map +1 -0
  620. package/lib/internal/template/types/analytics.js +4 -0
  621. package/lib/internal/template/types/analytics.js.map +1 -0
  622. package/lib/internal/template/types/base-component.d.ts +15 -0
  623. package/lib/internal/template/types/base-component.d.ts.map +1 -0
  624. package/lib/internal/template/types/base-component.js +4 -0
  625. package/lib/internal/template/types/base-component.js.map +1 -0
  626. package/lib/internal/template/types/breakpoint.d.ts +2 -0
  627. package/lib/internal/template/types/breakpoint.d.ts.map +1 -0
  628. package/lib/internal/template/types/breakpoint.js +2 -0
  629. package/lib/internal/template/types/breakpoint.js.map +1 -0
  630. package/lib/internal/template/types/cartesian-chart.d.ts +210 -0
  631. package/lib/internal/template/types/cartesian-chart.d.ts.map +1 -0
  632. package/lib/internal/template/types/cartesian-chart.js +2 -0
  633. package/lib/internal/template/types/cartesian-chart.js.map +1 -0
  634. package/lib/internal/template/types/date-time.d.ts +17 -0
  635. package/lib/internal/template/types/date-time.d.ts.map +1 -0
  636. package/lib/internal/template/types/date-time.js +4 -0
  637. package/lib/internal/template/types/date-time.js.map +1 -0
  638. package/lib/internal/template/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +1 -1
  639. package/lib/internal/template/types/dropdown-status.d.ts.map +1 -0
  640. package/lib/internal/template/types/dropdown-status.js +2 -0
  641. package/lib/internal/template/types/dropdown-status.js.map +1 -0
  642. package/lib/internal/template/types/events.d.ts +25 -0
  643. package/lib/internal/template/types/events.d.ts.map +1 -0
  644. package/lib/internal/template/types/events.js +4 -0
  645. package/lib/internal/template/types/events.js.map +1 -0
  646. package/lib/internal/template/types/form-field.d.ts +55 -0
  647. package/lib/internal/template/types/form-field.d.ts.map +1 -0
  648. package/lib/internal/template/types/form-field.js +4 -0
  649. package/lib/internal/template/types/form-field.js.map +1 -0
  650. package/lib/internal/template/types/native-attributes.d.ts +3 -0
  651. package/lib/internal/template/types/native-attributes.d.ts.map +1 -0
  652. package/lib/internal/template/types/native-attributes.js +2 -0
  653. package/lib/internal/template/types/native-attributes.js.map +1 -0
  654. package/lib/internal/template/types/option.d.ts +27 -0
  655. package/lib/internal/template/types/option.d.ts.map +1 -0
  656. package/lib/internal/template/types/option.js +2 -0
  657. package/lib/internal/template/types/option.js.map +1 -0
  658. package/lib/internal/template/types/sortable-area.d.ts +9 -0
  659. package/lib/internal/template/types/sortable-area.d.ts.map +1 -0
  660. package/lib/internal/template/types/sortable-area.js +4 -0
  661. package/lib/internal/template/types/sortable-area.js.map +1 -0
  662. package/lib/internal/template/wizard/interfaces.d.ts +3 -3
  663. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  664. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  665. package/package.json +1 -1
  666. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  667. package/lib/internal/template/internal/components/dropdown-status/interfaces.js +0 -2
  668. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +0 -1
@@ -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,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,MAAM,cAAc,CAAC;AAGzD,KAAK,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,CAAC;AAE/E,UAAU,mBAAmB;IAC3B,kBAAkB,EAAE,sBAAsB,CAAC;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1B,UAAU,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MA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C;IAED,eAAe,CAAC,cAA2C,EAAE;;QAC3D,MAAA,WAAW,CAAC,mBAAmB,oCAA/B,WAAW,CAAC,mBAAmB,GAAK,IAAI,CAAC,mBAAmB,EAAC;QAC7D,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,gBAAgB,oCAA5B,WAAW,CAAC,gBAAgB,GAAK,IAAI,CAAC,gBAAgB,EAAC;QACvD,MAAA,WAAW,CAAC,eAAe,oCAA3B,WAAW,CAAC,eAAe,GAAK,IAAI,CAAC,eAAe,EAAC;QACrD,OAAO,WAAiC,CAAC;IAC3C,CAAC;CACF","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 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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AAK,IAAI,CAAC,gCAAgC,EAAC;QAC/E,OAAO,GAAuB,CAAC;IACjC,CAAC;IAED,eAAe,CAAC,cAA2C,EAAE;;QAC3D,MAAA,WAAW,CAAC,mBAAmB,oCAA/B,WAAW,CAAC,mBAAmB,GAAK,IAAI,CAAC,mBAAmB,EAAC;QAC7D,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,cAAc,oCAA1B,WAAW,CAAC,cAAc,GAAK,IAAI,CAAC,cAAc,EAAC;QACnD,MAAA,WAAW,CAAC,gBAAgB,oCAA5B,WAAW,CAAC,gBAAgB,GAAK,IAAI,CAAC,gBAAgB,EAAC;QACvD,MAAA,WAAW,CAAC,eAAe,oCAA3B,WAAW,CAAC,eAAe,GAAK,IAAI,CAAC,eAAe,EAAC;QACrD,OAAO,WAAiC,CAAC;IAC3C,CAAC;CACF","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';\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,kBAAkB,EAAE,sBAAsB,CAAC;CAC5C;AAED,UAAU,uBAAuB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,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 -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,17 +1,2 @@
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';
17
2
  //# sourceMappingURL=interfaces.d.ts.map
@@ -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;
@@ -16,4 +16,5 @@ interface ForwardRefType {
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
18
  export default _default;
19
+ export { NativeAttributes } from '../../types/native-attributes';
19
20
  //# sourceMappingURL=with-native-attributes.d.ts.map
@@ -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,CAAC,IACpE,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,QAAQ,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC,GACxD,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC;AAE9C,KAAK,qBAAqB,CAAC,EAAE,SAAS,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI;IACzE,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC;IACvC,aAAa,EAAE,MAAM,CAAC;CACvB,GAAG,gBAAgB,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AC;AACzB,UAAU,cAAc;IACtB,CAAC,EAAE,SAAS,WAAW,EAAE,EAAE,SAAS,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,EAC1D,KAAK,EAAE,qBAAqB,CAAC,EAAE,CAAC,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;KAAE,GACzD,GAAG,CAAC,OAAO,CAAC;CAChB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,WAAW,EAAE,EAAE,SAAS,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,EAC3F,IAAI,EAAE,IAAI,CAAC,qBAAqB,CAAC,EAAE,CAAC,EAAE,UAAU,GAAG,KAAK,GAAG,cAAc,GAAG,eAAe,GAAG,kBAAkB,CAAC,EACjH,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,EACtC,aAAa,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,YAAY,OAgC5B;wBAiBI,cAAc;AAfnB,wBAeoB;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"with-native-attributes.js","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAqBzE,MAAM,UAAU,iBAAiB,CAC/B,IAAiH,EACjH,gBAAsC,EACtC,aAAqB,EACrB,YAA2B;IAE3B,OAAO,MAAM,CAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,MAAM,CAClD,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACpB,wBAAwB;QACxB,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;YACxB,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AG,CAAC;IAEhB,MAAM,mBAAmB,GAAG,iBAAiB,CAAS,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAE3G,OAAO,CACL,oBAAC,GAAG,OAAK,mBAAmB,EAAE,GAAG,EAAE,GAAG,IACnC,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nexport type NativeAttributes<T extends React.HTMLAttributes<HTMLElement>> =\n | (Omit<T, 'children'> & Record<`data-${string}`, string>)\n | undefined;\n\nexport type SkipWarnings = boolean | string[];\n\ntype NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {\n tag: string;\n children?: ReactNode;\n skipWarnings?: SkipWarnings;\n nativeAttributes: NativeAttributes<AT>;\n componentName: string;\n} & NativeAttributes<AT>;\ninterface ForwardRefType {\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n props: NativeAttributesProps<AT> & { ref?: React.Ref<ET> }\n ): JSX.Element;\n}\n\nexport function processAttributes<ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n rest: Omit<NativeAttributesProps<AT>, 'children' | 'tag' | 'skipWarnings' | 'componentName' | 'nativeAttributes'>,\n nativeAttributes: NativeAttributes<AT>,\n componentName: string,\n skipWarnings?: SkipWarnings\n) {\n return Object.entries(nativeAttributes || {}).reduce(\n (acc, [key, value]) => {\n // concatenate className\n if (key === 'className') {\n acc[key] = clsx(rest.className, value);\n\n // merge style\n } else if (key === 'style') {\n acc[key] = { ...rest.style, ...value };\n\n // chain event handlers\n } else if (key.match(/^on[A-Z]/) && typeof value === 'function' && key in rest) {\n acc[key] = (event: Event) => {\n value(event);\n if (!event.defaultPrevented) {\n (rest as any)[key](event);\n }\n };\n\n // override other attributes, warning if it already exists\n } else {\n if (key in rest && (!skipWarnings || (skipWarnings !== true && !skipWarnings.includes(key)))) {\n warnOnce(componentName, `Overriding native attribute [${key}] which has a Cloudscape-provided value`);\n }\n acc[key] = value;\n }\n return acc;\n },\n { ...rest } as any\n );\n}\n\nexport default React.forwardRef(\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n { tag, nativeAttributes, children, skipWarnings, componentName, ...rest }: NativeAttributesProps<AT>,\n ref: React.Ref<ET>\n ) => {\n const Tag = tag;\n\n const processedAttributes = processAttributes<ET, AT>(rest, nativeAttributes, componentName, skipWarnings);\n\n return (\n <Tag {...processedAttributes} ref={ref}>\n {children}\n </Tag>\n );\n }\n) as ForwardRefType;\n"]}
1
+ {"version":3,"file":"with-native-attributes.js","sourceRoot":"","sources":["../../../../src/internal/utils/with-native-attributes.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAmBzE,MAAM,UAAU,iBAAiB,CAC/B,IAAiH,EACjH,gBAAsC,EACtC,aAAqB,EACrB,YAA2B;IAE3B,OAAO,MAAM,CAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,MAAM,CAClD,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACpB,wBAAwB;QACxB,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;YAEvC,cAAc;QAChB,CAAC;aAAM,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;YAC3B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAA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Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { ReactNode } from 'react';\nimport clsx from 'clsx';\n\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NativeAttributes } from '../../types/native-attributes';\n\nexport type SkipWarnings = boolean | string[];\n\ntype NativeAttributesProps<AT extends React.HTMLAttributes<HTMLElement>> = {\n tag: string;\n children?: ReactNode;\n skipWarnings?: SkipWarnings;\n nativeAttributes: NativeAttributes<AT>;\n componentName: string;\n} & NativeAttributes<AT>;\ninterface ForwardRefType {\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n props: NativeAttributesProps<AT> & { ref?: React.Ref<ET> }\n ): JSX.Element;\n}\n\nexport function processAttributes<ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n rest: Omit<NativeAttributesProps<AT>, 'children' | 'tag' | 'skipWarnings' | 'componentName' | 'nativeAttributes'>,\n nativeAttributes: NativeAttributes<AT>,\n componentName: string,\n skipWarnings?: SkipWarnings\n) {\n return Object.entries(nativeAttributes || {}).reduce(\n (acc, [key, value]) => {\n // concatenate className\n if (key === 'className') {\n acc[key] = clsx(rest.className, value);\n\n // merge style\n } else if (key === 'style') {\n acc[key] = { ...rest.style, ...value };\n\n // chain event handlers\n } else if (key.match(/^on[A-Z]/) && typeof value === 'function' && key in rest) {\n acc[key] = (event: Event) => {\n value(event);\n if (!event.defaultPrevented) {\n (rest as any)[key](event);\n }\n };\n\n // override other attributes, warning if it already exists\n } else {\n if (key in rest && (!skipWarnings || (skipWarnings !== true && !skipWarnings.includes(key)))) {\n warnOnce(componentName, `Overriding native attribute [${key}] which has a Cloudscape-provided value`);\n }\n acc[key] = value;\n }\n return acc;\n },\n { ...rest } as any\n );\n}\n\nexport default React.forwardRef(\n <ET extends HTMLElement, AT extends React.HTMLAttributes<ET>>(\n { tag, nativeAttributes, children, skipWarnings, componentName, ...rest }: NativeAttributesProps<AT>,\n ref: React.Ref<ET>\n ) => {\n const Tag = tag;\n\n const processedAttributes = processAttributes<ET, AT>(rest, nativeAttributes, componentName, skipWarnings);\n\n return (\n <Tag {...processedAttributes} ref={ref}>\n {children}\n </Tag>\n );\n }\n) as ForwardRefType;\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport { NativeAttributes } from '../../types/native-attributes';\n"]}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../internal/base-component';
3
2
  import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
3
+ import { BaseComponentProps } from '../types/base-component';
4
4
  /**
5
5
  * @awsuiSystem core
6
6
  */
7
- import { NativeAttributes } from '../internal/utils/with-native-attributes';
7
+ import { NativeAttributes } from '../types/native-attributes';
8
8
  export interface ItemCardProps extends BaseComponentProps {
9
9
  /**
10
10
  * Heading element of the item card. Use this to add a title or header text.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/item-card/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAA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AM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/item-card/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface ItemCardProps extends BaseComponentProps {\n /**\n * Heading element of the item card. Use this to add a title or header text.\n */\n header?: React.ReactNode;\n\n /**\n * A description or subtitle displayed below the header.\n */\n description?: React.ReactNode;\n\n /**\n * Footer content displayed at the bottom of the item card.\n */\n footer?: React.ReactNode;\n\n /**\n * Actions to display in the item card header area, typically buttons or links.\n */\n actions?: React.ReactNode;\n\n /**\n * Main content of the item card.\n */\n children?: React.ReactNode;\n\n /**\n * Icon content displayed next to the header.\n */\n icon?: React.ReactNode;\n\n /**\n * Removes the default padding from the header area.\n * @default false\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Removes the default padding from the content area.\n * @default false\n */\n disableContentPaddings?: boolean;\n\n /**\n * Removes the default padding from the footer area.\n * @default false\n */\n disableFooterPaddings?: boolean;\n\n /**\n * Specifies the visual variant of the item card, which controls the border radius and padding.\n *\n * - `default` - Uses container-level border radius and padding (larger).\n * - `embedded` - Uses compact border radius and padding (smaller).\n *\n * @default 'default'\n */\n variant?: ItemCardProps.Variant;\n\n /**\n * An object containing CSS properties to customize the item card's visual appearance.\n * Refer to the [style](/components/item-card/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: ItemCardProps.Style;\n\n /**\n * Attributes to add to the native root element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLDivElement>>;\n}\n\nexport namespace ItemCardProps {\n export type Variant = 'embedded' | 'default';\n\n export interface Style {\n root?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: string;\n };\n content?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n header?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n footer?: {\n root?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n divider?: {\n borderColor?: string;\n borderWidth?: string;\n };\n };\n }\n}\n\nexport interface InternalItemCardProps extends ItemCardProps, InternalBaseComponentProps {\n /**\n * Called when the user clicks on the item card.\n */\n onClick?: React.MouseEventHandler<HTMLElement>;\n\n /**\n * Specifies whether the item card is in highlighted state.\n */\n highlighted?: boolean;\n\n /**\n * Makes the item card stretch to fill the full height of its container.\n */\n fullHeight?: boolean;\n\n /**\n * Specifies metadata for analytics in cards\n */\n metadataAttributes?: Record<string, string | undefined>;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/item-card/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { BaseComponentProps } from '../types/base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface ItemCardProps extends BaseComponentProps {\n /**\n * Heading element of the item card. Use this to add a title or header text.\n */\n header?: React.ReactNode;\n\n /**\n * A description or subtitle displayed below the header.\n */\n description?: React.ReactNode;\n\n /**\n * Footer content displayed at the bottom of the item card.\n */\n footer?: React.ReactNode;\n\n /**\n * Actions to display in the item card header area, typically buttons or links.\n */\n actions?: React.ReactNode;\n\n /**\n * Main content of the item card.\n */\n children?: React.ReactNode;\n\n /**\n * Icon content displayed next to the header.\n */\n icon?: React.ReactNode;\n\n /**\n * Removes the default padding from the header area.\n * @default false\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Removes the default padding from the content area.\n * @default false\n */\n disableContentPaddings?: boolean;\n\n /**\n * Removes the default padding from the footer area.\n * @default false\n */\n disableFooterPaddings?: boolean;\n\n /**\n * Specifies the visual variant of the item card, which controls the border radius and padding.\n *\n * - `default` - Uses container-level border radius and padding (larger).\n * - `embedded` - Uses compact border radius and padding (smaller).\n *\n * @default 'default'\n */\n variant?: ItemCardProps.Variant;\n\n /**\n * An object containing CSS properties to customize the item card's visual appearance.\n * Refer to the [style](/components/item-card/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: ItemCardProps.Style;\n\n /**\n * Attributes to add to the native root element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLDivElement>>;\n}\n\nexport namespace ItemCardProps {\n export type Variant = 'embedded' | 'default';\n\n export interface Style {\n root?: {\n background?: string;\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: string;\n };\n content?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n header?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n footer?: {\n root?: {\n paddingBlock?: string;\n paddingInline?: string;\n };\n divider?: {\n borderColor?: string;\n borderWidth?: string;\n };\n };\n }\n}\n\nexport interface InternalItemCardProps extends ItemCardProps, InternalBaseComponentProps {\n /**\n * Called when the user clicks on the item card.\n */\n onClick?: React.MouseEventHandler<HTMLElement>;\n\n /**\n * Specifies whether the item card is in highlighted state.\n */\n highlighted?: boolean;\n\n /**\n * Makes the item card stretch to fill the full height of its container.\n */\n fullHeight?: boolean;\n\n /**\n * Specifies metadata for analytics in cards\n */\n metadataAttributes?: Record<string, string | undefined>;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../internal/base-component';
2
+ import { BaseComponentProps } from '../types/base-component';
3
3
  export interface KeyValuePairsProps extends BaseComponentProps {
4
4
  /**
5
5
  * Specifies the number of columns in each grid row.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/key-value-pairs/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;IAEhC,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KAC5B;IAED,UAAiB,IAAK,SAAQ,kBAAkB;QAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/key-value-pairs/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;IAEhC,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KAC5B;IAED,UAAiB,IAAK,SAAQ,kBAAkB;QAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACxB;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/key-value-pairs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface KeyValuePairsProps extends BaseComponentProps {\n /**\n * Specifies the number of columns in each grid row.\n * Valid values are any integer between 1 and 4. It defaults to 1.\n */\n columns?: number;\n /**\n * An array of either key-value pairs individual items or groups.\n * They could be combined.\n * Each item has `type` prop, which might be either `group` or `pair`. Defaults to `pair` if not specified.\n *\n * Each key-value pair definition has the following properties:\n * * `type` (string) - (Optional) Item type (pair).\n * * `label` (React.ReactNode) - The key label.\n * * `info` (React.ReactNode) - (Optional) Area next to the key to display an info link.\n * * `value` (React.ReactNode) - The corresponding value for the key.\n *\n * Each group definition has the following properties:\n * * `type` (string) - Item type (group).\n * * `title` (string) - (Optional) An optional title for this column.\n * * `items` (ReadonlyArray<KeyValuePairProps.KeyValuePair>) - An array of\n * key-value pair items.\n */\n items: ReadonlyArray<KeyValuePairsProps.Item>;\n /**\n * Provides an `aria-label` to the Key-value pairs container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the Key-value pairs container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Use to specify the desired minimum width for each column in pixels.\n *\n * The number of columns is determined by the value of this property, the available space,\n * and the maximum number of columns as defined by the `columns` property.\n * If not set, defaults to 150.\n */\n minColumnWidth?: number;\n}\n\nexport namespace KeyValuePairsProps {\n export type Item = Group | Pair;\n\n export interface Group {\n type: 'group';\n title?: string;\n items: ReadonlyArray<Pair>;\n }\n\n export interface Pair extends BaseComponentProps {\n type?: 'pair';\n label: React.ReactNode;\n value: React.ReactNode;\n info?: React.ReactNode;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/key-value-pairs/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface KeyValuePairsProps extends BaseComponentProps {\n /**\n * Specifies the number of columns in each grid row.\n * Valid values are any integer between 1 and 4. It defaults to 1.\n */\n columns?: number;\n /**\n * An array of either key-value pairs individual items or groups.\n * They could be combined.\n * Each item has `type` prop, which might be either `group` or `pair`. Defaults to `pair` if not specified.\n *\n * Each key-value pair definition has the following properties:\n * * `type` (string) - (Optional) Item type (pair).\n * * `label` (React.ReactNode) - The key label.\n * * `info` (React.ReactNode) - (Optional) Area next to the key to display an info link.\n * * `value` (React.ReactNode) - The corresponding value for the key.\n *\n * Each group definition has the following properties:\n * * `type` (string) - Item type (group).\n * * `title` (string) - (Optional) An optional title for this column.\n * * `items` (ReadonlyArray<KeyValuePairProps.KeyValuePair>) - An array of\n * key-value pair items.\n */\n items: ReadonlyArray<KeyValuePairsProps.Item>;\n /**\n * Provides an `aria-label` to the Key-value pairs container.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n /**\n * Sets the `aria-labelledby` property on the Key-value pairs container.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Use to specify the desired minimum width for each column in pixels.\n *\n * The number of columns is determined by the value of this property, the available space,\n * and the maximum number of columns as defined by the `columns` property.\n * If not set, defaults to 150.\n */\n minColumnWidth?: number;\n}\n\nexport namespace KeyValuePairsProps {\n export type Item = Group | Pair;\n\n export interface Group {\n type: 'group';\n title?: string;\n items: ReadonlyArray<Pair>;\n }\n\n export interface Pair extends BaseComponentProps {\n type?: 'pair';\n label: React.ReactNode;\n value: React.ReactNode;\n info?: React.ReactNode;\n }\n}\n"]}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { BaseComponentProps } from '../internal/base-component';
3
- import { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail, NonCancelableEventHandler } from '../internal/events';
2
+ import { BaseComponentProps } from '../types/base-component';
3
+ import { BaseNavigationDetail, CancelableEventHandler, ClickDetail as _ClickDetail, NonCancelableEventHandler } from '../types/events';
4
4
  /**
5
5
  * @awsuiSystem core
6
6
  */
7
- import { NativeAttributes } from '../internal/utils/with-native-attributes';
7
+ import { NativeAttributes } from '../types/native-attributes';
8
8
  export interface LinkProps extends BaseComponentProps {
9
9
  /**
10
10
  * Determines the visual style of the link as follows:
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/link/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,WAAW,IAAI,YAAY,EAC3B,yBAAyB,EAC1B,MAAM,oBAAoB,CAAC;AAC5B;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC;IAE9B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAE1D;;OAEG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAE3D;;;OAGG;IACH,GAAG,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AAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,SAAS,CAAC;IACd,KAAY,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;IAE1C,KAAY,YAAY,GAAG,oBAAoB,CAAC;IAEhD,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;IAED,KAAY,WAAW,GAAG,YAAY,CAAC;IACvC,UAAiB,KAAK;QACpB,IAAI,CAAC,EAAE;YACL,KAAK,CAAC,EAAE;gBACN,MAAM,CAAC,EAAE,MAAM,CAAC;gBAChB,OAAO,CAAC,EAAE,MAAM,CAAC;gBACjB,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,CAAC;YACF,SAAS,CAAC,EAAE;gBACV,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,WAAW,CAAC,EAAE,MAAM,CAAC;aACtB,CAAC;SACH,CAAC;KACH;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/link/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport {\n BaseNavigationDetail,\n CancelableEventHandler,\n ClickDetail as _ClickDetail,\n NonCancelableEventHandler,\n} from '../internal/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface LinkProps extends BaseComponentProps {\n /**\n * Determines the visual style of the link as follows:\n *\n * - `primary` - Displays the link text with an underline for sufficient contrast with surrounding text.\n * Use this for links adjacent to other text, such as inside a paragraph, a \"Learn more\" link,\n * an item ID in a table, a link in a key-value pair, or a link in an alert.\n * - `secondary` - Uses regular font weight without additional interactivity indicators (except for an underline on hover).\n * Use this where context implies interactivity and users can identify links easily,\n * such as in a list of links inside a container.\n * - `info` - Use for \"info\" links that link to content in a help panel.\n *\n * The default is `secondary`, except inside the following components where it defaults to `primary`:\n * - Table\n * - Cards\n * - Alert\n * - Popover\n * - Help Panel (main `content` only)\n */\n variant?: LinkProps.Variant;\n\n /**\n * Determines the font size and line height.\n * This property is overridden if the variant is `info`.\n */\n fontSize?: LinkProps.FontSize;\n\n /**\n * Determines the text color of the link and its icon.\n *\n * - `normal`: Use in most cases where a link is required.\n * - `inverted`: Use to style links inside Flashbars.\n *\n * This property is overridden if the variant is `info`.\n */\n color?: LinkProps.Color;\n\n /**\n * Marks the link as external by adding an icon after the text. If `href`\n * is provided, opens the link in a new tab when clicked.\n */\n external?: boolean;\n\n /**\n * Specifies where to open the linked URL. Set this to `_blank` to open the URL\n * in a new tab. If you set this property to `_blank`, the component\n * automatically adds `rel=\"noopener noreferrer\"` to avoid performance\n * and security issues.\n *\n * For other options see the documentation for <a> tag's\n * [target attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: string;\n\n /**\n * The URL that the link points to.\n * If an `href` is not provided, the component will render using a\n * \"button\" role and `target` will not be used.\n */\n href?: string;\n\n /**\n * The text to render inside the link.\n */\n children?: React.ReactNode;\n\n /**\n * Adds an aria-label to the HTML element.\n */\n ariaLabel?: string;\n\n /**\n * Adds an aria-label to the external icon.\n * @i18n\n */\n externalIconAriaLabel?: string;\n\n /**\n * Called when a link is clicked without any modifier keys. If the link has no `href` provided, it will be called on\n * all clicks.\n *\n * If you want to implement client-side routing yourself, use this event and prevent default browser navigation\n * (by calling `preventDefault`).\n */\n onFollow?: CancelableEventHandler<LinkProps.FollowDetail>;\n\n /**\n * Called when the user clicks on the link. Do not use this handler for navigation, use the `onFollow` event instead.\n */\n onClick?: NonCancelableEventHandler<LinkProps.ClickDetail>;\n\n /**\n * Adds a `rel` attribute to the link. If the `rel` property is provided, it overrides the default behaviour.\n * By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `external` is `true` or `target` is `\"_blank\"`.\n */\n rel?: string;\n\n /**\n * An object containing CSS properties to customize the link's visual appearance.\n * Refer to the [style](/components/link/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: LinkProps.Style;\n\n /**\n * Attributes to add to the native element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n}\n\nexport namespace LinkProps {\n export type Variant = 'primary' | 'secondary' | 'info' | 'awsui-value-large';\n export type FontSize =\n | 'body-s'\n | 'body-m'\n | 'heading-xs'\n | 'heading-s'\n | 'heading-m'\n | 'heading-l'\n | 'heading-xl'\n | 'display-l'\n | 'inherit';\n export type Color = 'normal' | 'inverted';\n\n export type FollowDetail = BaseNavigationDetail;\n\n export interface Ref {\n /**\n * Sets the browser focus on the anchor element.\n */\n focus(): void;\n }\n\n export type ClickDetail = _ClickDetail;\n export interface Style {\n root?: {\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/link/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\nimport {\n BaseNavigationDetail,\n CancelableEventHandler,\n ClickDetail as _ClickDetail,\n NonCancelableEventHandler,\n} from '../types/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface LinkProps extends BaseComponentProps {\n /**\n * Determines the visual style of the link as follows:\n *\n * - `primary` - Displays the link text with an underline for sufficient contrast with surrounding text.\n * Use this for links adjacent to other text, such as inside a paragraph, a \"Learn more\" link,\n * an item ID in a table, a link in a key-value pair, or a link in an alert.\n * - `secondary` - Uses regular font weight without additional interactivity indicators (except for an underline on hover).\n * Use this where context implies interactivity and users can identify links easily,\n * such as in a list of links inside a container.\n * - `info` - Use for \"info\" links that link to content in a help panel.\n *\n * The default is `secondary`, except inside the following components where it defaults to `primary`:\n * - Table\n * - Cards\n * - Alert\n * - Popover\n * - Help Panel (main `content` only)\n */\n variant?: LinkProps.Variant;\n\n /**\n * Determines the font size and line height.\n * This property is overridden if the variant is `info`.\n */\n fontSize?: LinkProps.FontSize;\n\n /**\n * Determines the text color of the link and its icon.\n *\n * - `normal`: Use in most cases where a link is required.\n * - `inverted`: Use to style links inside Flashbars.\n *\n * This property is overridden if the variant is `info`.\n */\n color?: LinkProps.Color;\n\n /**\n * Marks the link as external by adding an icon after the text. If `href`\n * is provided, opens the link in a new tab when clicked.\n */\n external?: boolean;\n\n /**\n * Specifies where to open the linked URL. Set this to `_blank` to open the URL\n * in a new tab. If you set this property to `_blank`, the component\n * automatically adds `rel=\"noopener noreferrer\"` to avoid performance\n * and security issues.\n *\n * For other options see the documentation for <a> tag's\n * [target attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target).\n */\n target?: string;\n\n /**\n * The URL that the link points to.\n * If an `href` is not provided, the component will render using a\n * \"button\" role and `target` will not be used.\n */\n href?: string;\n\n /**\n * The text to render inside the link.\n */\n children?: React.ReactNode;\n\n /**\n * Adds an aria-label to the HTML element.\n */\n ariaLabel?: string;\n\n /**\n * Adds an aria-label to the external icon.\n * @i18n\n */\n externalIconAriaLabel?: string;\n\n /**\n * Called when a link is clicked without any modifier keys. If the link has no `href` provided, it will be called on\n * all clicks.\n *\n * If you want to implement client-side routing yourself, use this event and prevent default browser navigation\n * (by calling `preventDefault`).\n */\n onFollow?: CancelableEventHandler<LinkProps.FollowDetail>;\n\n /**\n * Called when the user clicks on the link. Do not use this handler for navigation, use the `onFollow` event instead.\n */\n onClick?: NonCancelableEventHandler<LinkProps.ClickDetail>;\n\n /**\n * Adds a `rel` attribute to the link. If the `rel` property is provided, it overrides the default behaviour.\n * By default, the component sets the `rel` attribute to \"noopener noreferrer\" when `external` is `true` or `target` is `\"_blank\"`.\n */\n rel?: string;\n\n /**\n * An object containing CSS properties to customize the link's visual appearance.\n * Refer to the [style](/components/link/?tabId=style) tab for more details.\n * @awsuiSystem core\n */\n style?: LinkProps.Style;\n\n /**\n * Attributes to add to the native element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.AnchorHTMLAttributes<HTMLAnchorElement>>;\n}\n\nexport namespace LinkProps {\n export type Variant = 'primary' | 'secondary' | 'info' | 'awsui-value-large';\n export type FontSize =\n | 'body-s'\n | 'body-m'\n | 'heading-xs'\n | 'heading-s'\n | 'heading-m'\n | 'heading-l'\n | 'heading-xl'\n | 'display-l'\n | 'inherit';\n export type Color = 'normal' | 'inverted';\n\n export type FollowDetail = BaseNavigationDetail;\n\n export interface Ref {\n /**\n * Sets the browser focus on the anchor element.\n */\n focus(): void;\n }\n\n export type ClickDetail = _ClickDetail;\n export interface Style {\n root?: {\n color?: {\n active?: string;\n default?: string;\n hover?: string;\n };\n focusRing?: {\n borderColor?: string;\n borderRadius?: string;\n borderWidth?: string;\n };\n };\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { SortableAreaProps } from '../internal/components/sortable-area';
3
- import { NonCancelableEventHandler } from '../internal/events';
2
+ import { NonCancelableEventHandler } from '../types/events';
3
+ import { DndAreaI18nStrings } from '../types/sortable-area';
4
4
  export interface ListProps<T = any> {
5
5
  /**
6
6
  * The items to display in the list.
@@ -78,6 +78,6 @@ export declare namespace ListProps {
78
78
  interface SortingState<T> {
79
79
  items: ReadonlyArray<T>;
80
80
  }
81
- type I18nStrings = SortableAreaProps.DndAreaI18nStrings;
81
+ type I18nStrings = DndAreaI18nStrings;
82
82
  }
83
83
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/list/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB;;;;;;;;;OASG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK;QACvB,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,SAAS,CAAC;QACnB,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,OAAO,CAAC,EAAE,SAAS,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE;;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B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IACvE;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;CACrC;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAiB,YAAY,CAAC,CAAC;QAC7B,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACzB;IAED,KAAY,WAAW,GAAG,kBAAkB,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/list/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\nimport { ReactNode } from 'react';\n\nimport { SortableAreaProps } from '../internal/components/sortable-area';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface ListProps<T = any> {\n /**\n * The items to display in the list.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Render an item. The function should return an object with the following keys:\n * * `id` (string) - A unique identifier for the item.\n * * `content` (React.ReactNode) - The content of the item.\n * * `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.\n * * `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.\n * * `actions` (React.ReactNode) - (Optional) Action button(s).\n * * `announcementLabel` (string) - (Optional) An announcement label for the item, used when sorting.\n * By default, the `content` is used: a custom label should be provided if `content` is not a string.\n */\n renderItem: (item: T) => {\n id: string;\n content: ReactNode;\n secondaryContent?: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n announcementLabel?: string;\n };\n\n /**\n * The HTML tag to render. By default `ul` is used for standard lists and `ol` for sortable lists.\n */\n tagOverride?: 'ol' | 'ul';\n\n /**\n * Adds an aria-label to the list.\n */\n ariaLabel?: string;\n /**\n * Adds an aria-labelledby to the list.\n */\n ariaLabelledby?: string;\n /**\n * Adds an aria-describedby to the list.\n */\n ariaDescribedby?: string;\n /**\n * Makes the list sortable by enabling drag and drop functionality.\n */\n sortable?: boolean;\n /**\n * Disables sorting drag handles. Use this to temporarily prevent users from reordering the list.\n */\n sortDisabled?: boolean;\n /**\n * Removes padding around and inside list items.\n */\n disableItemPaddings?: boolean;\n /**\n * Removes top and bottom padding around the list. Does not apply for sortable lists.\n */\n disablePaddings?: boolean;\n /**\n * Called when items are reordered in a sortable list.\n */\n onSortingChange?: NonCancelableEventHandler<ListProps.SortingState<T>>;\n /**\n * An object containing all the localized strings required by the component.\n *\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is picked for reordering.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * @i18n\n */\n i18nStrings?: ListProps.I18nStrings;\n}\n\nexport namespace ListProps {\n export interface SortingState<T> {\n items: ReadonlyArray<T>;\n }\n\n export type I18nStrings = SortableAreaProps.DndAreaI18nStrings;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/list/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\nimport { ReactNode } from 'react';\n\nimport { NonCancelableEventHandler } from '../types/events';\nimport { DndAreaI18nStrings } from '../types/sortable-area';\n\nexport interface ListProps<T = any> {\n /**\n * The items to display in the list.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Render an item. The function should return an object with the following keys:\n * * `id` (string) - A unique identifier for the item.\n * * `content` (React.ReactNode) - The content of the item.\n * * `secondaryContent` (React.ReactNode) - (Optional) Secondary content, for example item description.\n * * `icon` (React.ReactNode) - (Optional) An icon, displayed at the start.\n * * `actions` (React.ReactNode) - (Optional) Action button(s).\n * * `announcementLabel` (string) - (Optional) An announcement label for the item, used when sorting.\n * By default, the `content` is used: a custom label should be provided if `content` is not a string.\n */\n renderItem: (item: T) => {\n id: string;\n content: ReactNode;\n secondaryContent?: ReactNode;\n icon?: ReactNode;\n actions?: ReactNode;\n announcementLabel?: string;\n };\n\n /**\n * The HTML tag to render. By default `ul` is used for standard lists and `ol` for sortable lists.\n */\n tagOverride?: 'ol' | 'ul';\n\n /**\n * Adds an aria-label to the list.\n */\n ariaLabel?: string;\n /**\n * Adds an aria-labelledby to the list.\n */\n ariaLabelledby?: string;\n /**\n * Adds an aria-describedby to the list.\n */\n ariaDescribedby?: string;\n /**\n * Makes the list sortable by enabling drag and drop functionality.\n */\n sortable?: boolean;\n /**\n * Disables sorting drag handles. Use this to temporarily prevent users from reordering the list.\n */\n sortDisabled?: boolean;\n /**\n * Removes padding around and inside list items.\n */\n disableItemPaddings?: boolean;\n /**\n * Removes top and bottom padding around the list. Does not apply for sortable lists.\n */\n disablePaddings?: boolean;\n /**\n * Called when items are reordered in a sortable list.\n */\n onSortingChange?: NonCancelableEventHandler<ListProps.SortingState<T>>;\n /**\n * An object containing all the localized strings required by the component.\n *\n * - `liveAnnouncementDndStarted` ((position: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is picked for reordering.\n * - `liveAnnouncementDndDiscarded` (string) - (Optional) Adds a message to be announced by screen readers when a reordering action is canceled.\n * - `liveAnnouncementDndItemReordered` ((initialPosition: number, currentPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when an item is being moved.\n * - `liveAnnouncementDndItemCommitted` ((initialPosition: number, finalPosition: number, total: number) => string) - (Optional) Adds a message to be announced by screen readers when a reordering action is committed.\n * - `dragHandleAriaDescription` (string) - (Optional) Adds an ARIA description for the drag handle.\n * - `dragHandleAriaLabel` (string) - (Optional) Adds an ARIA label for the drag handle.\n *\n * @i18n\n */\n i18nStrings?: ListProps.I18nStrings;\n}\n\nexport namespace ListProps {\n export interface SortingState<T> {\n items: ReadonlyArray<T>;\n }\n\n export type I18nStrings = DndAreaI18nStrings;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { BaseComponentProps } from '../internal/base-component';
1
+ import { BaseComponentProps } from '../types/base-component';
2
2
  export interface LiveRegionProps extends BaseComponentProps {
3
3
  /**
4
4
  * Whether the announcements should be made using assertive aria-live.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/live-region/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC;IAElC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,yBAAiB,eAAe,CAAC;IAC/B,KAAY,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;CACtC"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/live-region/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,eAAgB,SAAQ,kBAAkB;IACzD;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC;IAElC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,yBAAiB,eAAe,CAAC;IAC/B,KAAY,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;CACtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/live-region/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\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface LiveRegionProps extends BaseComponentProps {\n /**\n * Whether the announcements should be made using assertive aria-live.\n * Assertive announcements interrupt the user's action, so they should only\n * be used when absolutely necessary.\n */\n assertive?: boolean;\n\n /**\n * The tag name to use for the wrapper around the `children` slot.\n */\n tagName?: LiveRegionProps.TagName;\n\n /**\n * Determines whether to visually hide the contents of the `children` slot.\n */\n hidden?: boolean;\n\n /**\n * Use the rendered content as the source for the announcement text. When the\n * text content inside this slot changes, it will be re-announced to\n * assistive technologies.\n */\n children?: React.ReactNode;\n}\n\nexport namespace LiveRegionProps {\n export type TagName = 'span' | 'div';\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/live-region/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\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface LiveRegionProps extends BaseComponentProps {\n /**\n * Whether the announcements should be made using assertive aria-live.\n * Assertive announcements interrupt the user's action, so they should only\n * be used when absolutely necessary.\n */\n assertive?: boolean;\n\n /**\n * The tag name to use for the wrapper around the `children` slot.\n */\n tagName?: LiveRegionProps.TagName;\n\n /**\n * Determines whether to visually hide the contents of the `children` slot.\n */\n hidden?: boolean;\n\n /**\n * Use the rendered content as the source for the announcement text. When the\n * text content inside this slot changes, it will be re-announced to\n * assistive technologies.\n */\n children?: React.ReactNode;\n}\n\nexport namespace LiveRegionProps {\n export type TagName = 'span' | 'div';\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { CartesianChartProps } from '../internal/components/cartesian-chart/interfaces';
1
+ import { CartesianChartProps } from '../types/cartesian-chart';
2
2
  import { ChartDataTypes, InternalChartSeries, MixedLineBarChartProps, ScaleType } from './interfaces';
3
3
  import { ScaledPoint } from './make-scaled-series';
4
4
  export interface ChartContainerProps<T extends ChartDataTypes> {