@cloudscape-design/components-themeable 3.0.1316 → 3.0.1318

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (666) 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/interfaces.d.ts +2 -2
  234. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  235. package/lib/internal/template/icon/interfaces.js.map +1 -1
  236. package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
  237. package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
  238. package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
  239. package/lib/internal/template/input/interfaces.d.ts +4 -4
  240. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  241. package/lib/internal/template/input/interfaces.js.map +1 -1
  242. package/lib/internal/template/input/internal.d.ts +3 -3
  243. package/lib/internal/template/input/internal.d.ts.map +1 -1
  244. package/lib/internal/template/input/internal.js.map +1 -1
  245. package/lib/internal/template/interfaces.d.ts +1 -1
  246. package/lib/internal/template/interfaces.d.ts.map +1 -1
  247. package/lib/internal/template/interfaces.js.map +1 -1
  248. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts +2 -1
  249. package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  250. package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
  251. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +2 -1
  252. package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
  253. package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
  254. package/lib/internal/template/internal/analytics/interfaces.d.ts +2 -15
  255. package/lib/internal/template/internal/analytics/interfaces.d.ts.map +1 -1
  256. package/lib/internal/template/internal/analytics/interfaces.js.map +1 -1
  257. package/lib/internal/template/internal/base-component/index.d.ts +3 -15
  258. package/lib/internal/template/internal/base-component/index.d.ts.map +1 -1
  259. package/lib/internal/template/internal/base-component/index.js.map +1 -1
  260. package/lib/internal/template/internal/base-component/styles.scoped.css +23 -17
  261. package/lib/internal/template/internal/breakpoints.d.ts +2 -1
  262. package/lib/internal/template/internal/breakpoints.d.ts.map +1 -1
  263. package/lib/internal/template/internal/breakpoints.js.map +1 -1
  264. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +3 -3
  265. package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
  266. package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
  267. package/lib/internal/template/internal/components/button-trigger/index.d.ts +2 -2
  268. package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
  269. package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
  270. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts +1 -1
  271. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -1
  272. package/lib/internal/template/internal/components/cartesian-chart/block-end-labels.js.map +1 -1
  273. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts +1 -209
  274. package/lib/internal/template/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  275. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js +2 -0
  276. package/lib/internal/template/internal/components/cartesian-chart/interfaces.js.map +1 -1
  277. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts +1 -1
  278. package/lib/internal/template/internal/components/cartesian-chart/label-utils.d.ts.map +1 -1
  279. package/lib/internal/template/internal/components/cartesian-chart/label-utils.js.map +1 -1
  280. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts +1 -1
  281. package/lib/internal/template/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  282. package/lib/internal/template/internal/components/cartesian-chart/scales.js +0 -2
  283. package/lib/internal/template/internal/components/cartesian-chart/scales.js.map +1 -1
  284. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts +1 -1
  285. package/lib/internal/template/internal/components/cartesian-chart/ticks.d.ts.map +1 -1
  286. package/lib/internal/template/internal/components/cartesian-chart/ticks.js.map +1 -1
  287. package/lib/internal/template/internal/components/chart-filter/index.d.ts +1 -1
  288. package/lib/internal/template/internal/components/chart-filter/index.d.ts.map +1 -1
  289. package/lib/internal/template/internal/components/chart-filter/index.js.map +1 -1
  290. package/lib/internal/template/internal/components/chart-series-details/index.d.ts +1 -1
  291. package/lib/internal/template/internal/components/chart-series-details/index.d.ts.map +1 -1
  292. package/lib/internal/template/internal/components/chart-series-details/index.js.map +1 -1
  293. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts +1 -1
  294. package/lib/internal/template/internal/components/chart-series-marker/index.d.ts.map +1 -1
  295. package/lib/internal/template/internal/components/chart-series-marker/index.js.map +1 -1
  296. package/lib/internal/template/internal/components/chart-status-container/index.d.ts +2 -2
  297. package/lib/internal/template/internal/components/chart-status-container/index.d.ts.map +1 -1
  298. package/lib/internal/template/internal/components/chart-status-container/index.js.map +1 -1
  299. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts +1 -1
  300. package/lib/internal/template/internal/components/chart-wrapper/index.d.ts.map +1 -1
  301. package/lib/internal/template/internal/components/chart-wrapper/index.js.map +1 -1
  302. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts +1 -1
  303. package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
  304. package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
  305. package/lib/internal/template/internal/components/dropdown-status/index.d.ts +3 -3
  306. package/lib/internal/template/internal/components/dropdown-status/index.d.ts.map +1 -1
  307. package/lib/internal/template/internal/components/dropdown-status/index.js.map +1 -1
  308. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts +2 -2
  309. package/lib/internal/template/internal/components/masked-input/interfaces.d.ts.map +1 -1
  310. package/lib/internal/template/internal/components/masked-input/interfaces.js.map +1 -1
  311. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts +1 -1
  312. package/lib/internal/template/internal/components/masked-input/use-mask.d.ts.map +1 -1
  313. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  314. package/lib/internal/template/internal/components/option/interfaces.d.ts +3 -26
  315. package/lib/internal/template/internal/components/option/interfaces.d.ts.map +1 -1
  316. package/lib/internal/template/internal/components/option/interfaces.js.map +1 -1
  317. package/lib/internal/template/internal/components/option/option-announcer.d.ts +1 -1
  318. package/lib/internal/template/internal/components/option/option-announcer.d.ts.map +1 -1
  319. package/lib/internal/template/internal/components/option/option-announcer.js.map +1 -1
  320. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts +2 -1
  321. package/lib/internal/template/internal/components/option/utils/filter-options.d.ts.map +1 -1
  322. package/lib/internal/template/internal/components/option/utils/filter-options.js.map +1 -1
  323. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts +2 -1
  324. package/lib/internal/template/internal/components/option/utils/flatten-options.d.ts.map +1 -1
  325. package/lib/internal/template/internal/components/option/utils/flatten-options.js.map +1 -1
  326. package/lib/internal/template/internal/components/options-list/index.d.ts +3 -3
  327. package/lib/internal/template/internal/components/options-list/index.d.ts.map +1 -1
  328. package/lib/internal/template/internal/components/options-list/index.js +1 -1
  329. package/lib/internal/template/internal/components/options-list/index.js.map +1 -1
  330. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts +1 -1
  331. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.d.ts.map +1 -1
  332. package/lib/internal/template/internal/components/options-list/utils/use-keyboard.js.map +1 -1
  333. package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
  334. package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
  335. package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
  336. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts +1 -128
  337. package/lib/internal/template/internal/components/radio-button/interfaces.d.ts.map +1 -1
  338. package/lib/internal/template/internal/components/radio-button/interfaces.js +2 -0
  339. package/lib/internal/template/internal/components/radio-button/interfaces.js.map +1 -1
  340. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts +1 -1
  341. package/lib/internal/template/internal/components/selectable-item/interfaces.d.ts.map +1 -1
  342. package/lib/internal/template/internal/components/selectable-item/interfaces.js.map +1 -1
  343. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts +3 -9
  344. package/lib/internal/template/internal/components/sortable-area/interfaces.d.ts.map +1 -1
  345. package/lib/internal/template/internal/components/sortable-area/interfaces.js.map +1 -1
  346. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts +1 -1
  347. package/lib/internal/template/internal/components/token-list/token-limit-toggle.d.ts.map +1 -1
  348. package/lib/internal/template/internal/components/token-list/token-limit-toggle.js.map +1 -1
  349. package/lib/internal/template/internal/context/form-field-context.d.ts +2 -54
  350. package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
  351. package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
  352. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts +1 -1
  353. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -1
  354. package/lib/internal/template/internal/do-not-use/feature-prompt/interfaces.js.map +1 -1
  355. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts +1 -1
  356. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -1
  357. package/lib/internal/template/internal/do-not-use/feature-prompt/internal.js.map +1 -1
  358. package/lib/internal/template/internal/environment.js +2 -2
  359. package/lib/internal/template/internal/environment.json +2 -2
  360. package/lib/internal/template/internal/events/index.d.ts +2 -24
  361. package/lib/internal/template/internal/events/index.d.ts.map +1 -1
  362. package/lib/internal/template/internal/events/index.js.map +1 -1
  363. package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
  364. package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
  365. package/lib/internal/template/internal/generated/theming/index.cjs +60 -21
  366. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +36 -0
  367. package/lib/internal/template/internal/generated/theming/index.d.ts +36 -0
  368. package/lib/internal/template/internal/generated/theming/index.js +60 -21
  369. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts +1 -1
  370. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  371. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  372. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  373. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  374. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  375. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +1 -1
  376. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  377. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  378. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts +1 -1
  379. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  380. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  381. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  382. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  383. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  384. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +1 -1
  385. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  386. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  387. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts +1 -16
  388. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts.map +1 -1
  389. package/lib/internal/template/internal/utils/date-time/interfaces.js.map +1 -1
  390. package/lib/internal/template/internal/utils/with-native-attributes.d.ts +2 -1
  391. package/lib/internal/template/internal/utils/with-native-attributes.d.ts.map +1 -1
  392. package/lib/internal/template/internal/utils/with-native-attributes.js.map +1 -1
  393. package/lib/internal/template/item-card/interfaces.d.ts +2 -2
  394. package/lib/internal/template/item-card/interfaces.d.ts.map +1 -1
  395. package/lib/internal/template/item-card/interfaces.js.map +1 -1
  396. package/lib/internal/template/key-value-pairs/interfaces.d.ts +1 -1
  397. package/lib/internal/template/key-value-pairs/interfaces.d.ts.map +1 -1
  398. package/lib/internal/template/key-value-pairs/interfaces.js.map +1 -1
  399. package/lib/internal/template/link/interfaces.d.ts +3 -3
  400. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  401. package/lib/internal/template/link/interfaces.js.map +1 -1
  402. package/lib/internal/template/list/interfaces.d.ts +3 -3
  403. package/lib/internal/template/list/interfaces.d.ts.map +1 -1
  404. package/lib/internal/template/list/interfaces.js.map +1 -1
  405. package/lib/internal/template/live-region/interfaces.d.ts +1 -1
  406. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -1
  407. package/lib/internal/template/live-region/interfaces.js.map +1 -1
  408. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +1 -1
  409. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  410. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  411. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  412. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  413. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  414. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +1 -1
  415. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  416. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  417. package/lib/internal/template/modal/interfaces.d.ts +3 -3
  418. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  419. package/lib/internal/template/modal/interfaces.js.map +1 -1
  420. package/lib/internal/template/multiselect/embedded.d.ts +2 -2
  421. package/lib/internal/template/multiselect/interfaces.d.ts +2 -2
  422. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  423. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  424. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  425. package/lib/internal/template/multiselect/use-multiselect.d.ts +8 -8
  426. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  427. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  428. package/lib/internal/template/navigable-group/interfaces.d.ts +1 -1
  429. package/lib/internal/template/navigable-group/interfaces.d.ts.map +1 -1
  430. package/lib/internal/template/navigable-group/interfaces.js.map +1 -1
  431. package/lib/internal/template/pagination/interfaces.d.ts +1 -1
  432. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  433. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  434. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  435. package/lib/internal/template/pagination/internal.js.map +1 -1
  436. package/lib/internal/template/panel-layout/interfaces.d.ts +2 -2
  437. package/lib/internal/template/panel-layout/interfaces.d.ts.map +1 -1
  438. package/lib/internal/template/panel-layout/interfaces.js.map +1 -1
  439. package/lib/internal/template/pie-chart/interfaces.d.ts +2 -2
  440. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  441. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  442. package/lib/internal/template/popover/interfaces.d.ts +1 -1
  443. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  444. package/lib/internal/template/popover/interfaces.js.map +1 -1
  445. package/lib/internal/template/popover/internal.d.ts +1 -1
  446. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  447. package/lib/internal/template/popover/internal.js.map +1 -1
  448. package/lib/internal/template/progress-bar/interfaces.d.ts +2 -2
  449. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  450. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  451. package/lib/internal/template/prompt-input/core/menu-state.d.ts +2 -2
  452. package/lib/internal/template/prompt-input/core/menu-state.d.ts.map +1 -1
  453. package/lib/internal/template/prompt-input/core/menu-state.js.map +1 -1
  454. package/lib/internal/template/prompt-input/interfaces.d.ts +6 -6
  455. package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
  456. package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
  457. package/lib/internal/template/property-filter/controller.d.ts +2 -2
  458. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  459. package/lib/internal/template/property-filter/controller.js.map +1 -1
  460. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  461. package/lib/internal/template/property-filter/interfaces.d.ts +4 -4
  462. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  463. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  464. package/lib/internal/template/property-filter/property-editor.d.ts +2 -2
  465. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  466. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  467. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts +1 -1
  468. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  469. package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
  470. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  471. package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -2
  472. package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
  473. package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
  474. package/lib/internal/template/property-filter/token-editor.d.ts +2 -2
  475. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  476. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  477. package/lib/internal/template/property-filter/token.d.ts +2 -2
  478. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  479. package/lib/internal/template/property-filter/token.js.map +1 -1
  480. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  481. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  482. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  483. package/lib/internal/template/radio-button/interfaces.d.ts +128 -2
  484. package/lib/internal/template/radio-button/interfaces.d.ts.map +1 -1
  485. package/lib/internal/template/radio-button/interfaces.js.map +1 -1
  486. package/lib/internal/template/radio-group/interfaces.d.ts +4 -4
  487. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  488. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  489. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +2 -2
  490. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  491. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  492. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  493. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  494. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  495. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  496. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  497. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  498. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  499. package/lib/internal/template/select/interfaces.d.ts +5 -5
  500. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  501. package/lib/internal/template/select/interfaces.js.map +1 -1
  502. package/lib/internal/template/select/internal.d.ts.map +1 -1
  503. package/lib/internal/template/select/internal.js.map +1 -1
  504. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  505. package/lib/internal/template/select/parts/item.js.map +1 -1
  506. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  507. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  508. package/lib/internal/template/select/parts/trigger.d.ts +2 -2
  509. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  510. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  511. package/lib/internal/template/select/utils/connect-options.d.ts +2 -1
  512. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  513. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  514. package/lib/internal/template/select/utils/use-announcement.d.ts +1 -1
  515. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  516. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  517. package/lib/internal/template/select/utils/use-load-items.d.ts +2 -2
  518. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  519. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  520. package/lib/internal/template/select/utils/use-native-search.d.ts +2 -1
  521. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  522. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  523. package/lib/internal/template/select/utils/use-select.d.ts +4 -3
  524. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  525. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  526. package/lib/internal/template/side-navigation/interfaces.d.ts +2 -2
  527. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  528. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  529. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  530. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  531. package/lib/internal/template/skeleton/interfaces.d.ts +1 -1
  532. package/lib/internal/template/skeleton/interfaces.d.ts.map +1 -1
  533. package/lib/internal/template/skeleton/interfaces.js.map +1 -1
  534. package/lib/internal/template/slider/interfaces.d.ts +3 -3
  535. package/lib/internal/template/slider/interfaces.d.ts.map +1 -1
  536. package/lib/internal/template/slider/interfaces.js.map +1 -1
  537. package/lib/internal/template/space-between/interfaces.d.ts +2 -2
  538. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  539. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  540. package/lib/internal/template/spinner/interfaces.d.ts +2 -2
  541. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  542. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  543. package/lib/internal/template/split-panel/interfaces.d.ts +1 -1
  544. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  545. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  546. package/lib/internal/template/status-indicator/interfaces.d.ts +2 -2
  547. package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
  548. package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
  549. package/lib/internal/template/steps/interfaces.d.ts +1 -1
  550. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  551. package/lib/internal/template/steps/interfaces.js.map +1 -1
  552. package/lib/internal/template/table/interfaces.d.ts +2 -2
  553. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  554. package/lib/internal/template/table/interfaces.js.map +1 -1
  555. package/lib/internal/template/table/thead.d.ts +1 -1
  556. package/lib/internal/template/table/thead.d.ts.map +1 -1
  557. package/lib/internal/template/table/thead.js.map +1 -1
  558. package/lib/internal/template/table/use-cell-editing.d.ts +1 -1
  559. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  560. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  561. package/lib/internal/template/tabs/interfaces.d.ts +2 -2
  562. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  563. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  564. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  565. package/lib/internal/template/tag-editor/index.js.map +1 -1
  566. package/lib/internal/template/tag-editor/interfaces.d.ts +2 -2
  567. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  568. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  569. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  570. package/lib/internal/template/text-content/interfaces.d.ts +1 -1
  571. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  572. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  573. package/lib/internal/template/text-filter/interfaces.d.ts +3 -3
  574. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  575. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  576. package/lib/internal/template/textarea/interfaces.d.ts +4 -4
  577. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  578. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  579. package/lib/internal/template/tiles/interfaces.d.ts +4 -4
  580. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  581. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  582. package/lib/internal/template/time-input/interfaces.d.ts +2 -2
  583. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  584. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  585. package/lib/internal/template/toggle/interfaces.d.ts +2 -2
  586. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  587. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  588. package/lib/internal/template/toggle-button/interfaces.d.ts +2 -2
  589. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  590. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  591. package/lib/internal/template/token/dismiss-button.d.ts +1 -1
  592. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  593. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  594. package/lib/internal/template/token/interfaces.d.ts +2 -2
  595. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  596. package/lib/internal/template/token/interfaces.js.map +1 -1
  597. package/lib/internal/template/token-group/interfaces.d.ts +2 -2
  598. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  599. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  600. package/lib/internal/template/tooltip/interfaces.d.ts +1 -1
  601. package/lib/internal/template/tooltip/interfaces.d.ts.map +1 -1
  602. package/lib/internal/template/tooltip/interfaces.js.map +1 -1
  603. package/lib/internal/template/top-navigation/interfaces.d.ts +2 -2
  604. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  605. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  606. package/lib/internal/template/tree-view/interfaces.d.ts +2 -2
  607. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
  608. package/lib/internal/template/tree-view/interfaces.js.map +1 -1
  609. package/lib/internal/template/truncated-text/interfaces.d.ts +1 -1
  610. package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -1
  611. package/lib/internal/template/truncated-text/interfaces.js.map +1 -1
  612. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  613. package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -2
  614. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  615. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  616. package/lib/internal/template/types/analytics.d.ts +16 -0
  617. package/lib/internal/template/types/analytics.d.ts.map +1 -0
  618. package/lib/internal/template/types/analytics.js +4 -0
  619. package/lib/internal/template/types/analytics.js.map +1 -0
  620. package/lib/internal/template/types/base-component.d.ts +15 -0
  621. package/lib/internal/template/types/base-component.d.ts.map +1 -0
  622. package/lib/internal/template/types/base-component.js +4 -0
  623. package/lib/internal/template/types/base-component.js.map +1 -0
  624. package/lib/internal/template/types/breakpoint.d.ts +2 -0
  625. package/lib/internal/template/types/breakpoint.d.ts.map +1 -0
  626. package/lib/internal/template/types/breakpoint.js +2 -0
  627. package/lib/internal/template/types/breakpoint.js.map +1 -0
  628. package/lib/internal/template/types/cartesian-chart.d.ts +210 -0
  629. package/lib/internal/template/types/cartesian-chart.d.ts.map +1 -0
  630. package/lib/internal/template/types/cartesian-chart.js +2 -0
  631. package/lib/internal/template/types/cartesian-chart.js.map +1 -0
  632. package/lib/internal/template/types/date-time.d.ts +17 -0
  633. package/lib/internal/template/types/date-time.d.ts.map +1 -0
  634. package/lib/internal/template/types/date-time.js +4 -0
  635. package/lib/internal/template/types/date-time.js.map +1 -0
  636. package/lib/internal/template/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +1 -1
  637. package/lib/internal/template/types/dropdown-status.d.ts.map +1 -0
  638. package/lib/internal/template/types/dropdown-status.js +2 -0
  639. package/lib/internal/template/types/dropdown-status.js.map +1 -0
  640. package/lib/internal/template/types/events.d.ts +25 -0
  641. package/lib/internal/template/types/events.d.ts.map +1 -0
  642. package/lib/internal/template/types/events.js +4 -0
  643. package/lib/internal/template/types/events.js.map +1 -0
  644. package/lib/internal/template/types/form-field.d.ts +55 -0
  645. package/lib/internal/template/types/form-field.d.ts.map +1 -0
  646. package/lib/internal/template/types/form-field.js +4 -0
  647. package/lib/internal/template/types/form-field.js.map +1 -0
  648. package/lib/internal/template/types/native-attributes.d.ts +3 -0
  649. package/lib/internal/template/types/native-attributes.d.ts.map +1 -0
  650. package/lib/internal/template/types/native-attributes.js +2 -0
  651. package/lib/internal/template/types/native-attributes.js.map +1 -0
  652. package/lib/internal/template/types/option.d.ts +27 -0
  653. package/lib/internal/template/types/option.d.ts.map +1 -0
  654. package/lib/internal/template/types/option.js +2 -0
  655. package/lib/internal/template/types/option.js.map +1 -0
  656. package/lib/internal/template/types/sortable-area.d.ts +9 -0
  657. package/lib/internal/template/types/sortable-area.d.ts.map +1 -0
  658. package/lib/internal/template/types/sortable-area.js +4 -0
  659. package/lib/internal/template/types/sortable-area.js.map +1 -0
  660. package/lib/internal/template/wizard/interfaces.d.ts +3 -3
  661. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  662. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  663. package/package.json +1 -1
  664. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  665. package/lib/internal/template/internal/components/dropdown-status/interfaces.js +0 -2
  666. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +0 -1
@@ -1403,10 +1403,14 @@ export var preset = {
1403
1403
  "light": "{colorBackgroundLayoutPanelContent}",
1404
1404
  "dark": "{colorBackgroundLayoutPanelContent}"
1405
1405
  },
1406
- "colorBackgroundDrawerBackdrop": {
1406
+ "colorBackgroundBackdrop": {
1407
1407
  "light": "{colorGreyOpaque70}",
1408
1408
  "dark": "{colorGreyOpaque70}"
1409
1409
  },
1410
+ "colorBackgroundDrawerBackdrop": {
1411
+ "light": "{colorBackgroundBackdrop}",
1412
+ "dark": "{colorBackgroundBackdrop}"
1413
+ },
1410
1414
  "colorBackgroundLayoutMobilePanel": {
1411
1415
  "light": "{colorNeutral950}",
1412
1416
  "dark": "{colorNeutral950}"
@@ -1452,8 +1456,8 @@ export var preset = {
1452
1456
  "dark": "{colorPrimary300}"
1453
1457
  },
1454
1458
  "colorBackgroundModalOverlay": {
1455
- "light": "{colorGreyOpaque70}",
1456
- "dark": "{colorGreyOpaque70}"
1459
+ "light": "{colorBackgroundBackdrop}",
1460
+ "dark": "{colorBackgroundBackdrop}"
1457
1461
  },
1458
1462
  "colorBackgroundNotificationBlue": {
1459
1463
  "light": "{colorInfo600}",
@@ -4208,10 +4212,14 @@ export var preset = {
4208
4212
  "light": "{colorBackgroundLayoutPanelContent}",
4209
4213
  "dark": "{colorBackgroundLayoutPanelContent}"
4210
4214
  },
4211
- "colorBackgroundDrawerBackdrop": {
4215
+ "colorBackgroundBackdrop": {
4212
4216
  "light": "{colorGreyOpaque70}",
4213
4217
  "dark": "{colorGreyOpaque70}"
4214
4218
  },
4219
+ "colorBackgroundDrawerBackdrop": {
4220
+ "light": "{colorBackgroundBackdrop}",
4221
+ "dark": "{colorBackgroundBackdrop}"
4222
+ },
4215
4223
  "colorBackgroundLayoutMobilePanel": {
4216
4224
  "light": "{colorNeutral950}",
4217
4225
  "dark": "{colorNeutral950}"
@@ -4257,8 +4265,8 @@ export var preset = {
4257
4265
  "dark": "{colorPrimary300}"
4258
4266
  },
4259
4267
  "colorBackgroundModalOverlay": {
4260
- "light": "{colorGreyOpaque70}",
4261
- "dark": "{colorGreyOpaque70}"
4268
+ "light": "{colorBackgroundBackdrop}",
4269
+ "dark": "{colorBackgroundBackdrop}"
4262
4270
  },
4263
4271
  "colorBackgroundNotificationBlue": {
4264
4272
  "light": "{colorInfo600}",
@@ -5825,10 +5833,14 @@ export var preset = {
5825
5833
  "light": "{colorBackgroundLayoutPanelContent}",
5826
5834
  "dark": "{colorBackgroundLayoutPanelContent}"
5827
5835
  },
5828
- "colorBackgroundDrawerBackdrop": {
5836
+ "colorBackgroundBackdrop": {
5829
5837
  "light": "{colorGreyOpaque70}",
5830
5838
  "dark": "{colorGreyOpaque70}"
5831
5839
  },
5840
+ "colorBackgroundDrawerBackdrop": {
5841
+ "light": "{colorBackgroundBackdrop}",
5842
+ "dark": "{colorBackgroundBackdrop}"
5843
+ },
5832
5844
  "colorBackgroundLayoutMobilePanel": {
5833
5845
  "light": "{colorNeutral950}",
5834
5846
  "dark": "{colorNeutral950}"
@@ -5874,8 +5886,8 @@ export var preset = {
5874
5886
  "dark": "{colorPrimary300}"
5875
5887
  },
5876
5888
  "colorBackgroundModalOverlay": {
5877
- "light": "{colorGreyOpaque70}",
5878
- "dark": "{colorGreyOpaque70}"
5889
+ "light": "{colorBackgroundBackdrop}",
5890
+ "dark": "{colorBackgroundBackdrop}"
5879
5891
  },
5880
5892
  "colorBackgroundNotificationBlue": {
5881
5893
  "light": "{colorInfo600}",
@@ -7370,10 +7382,14 @@ export var preset = {
7370
7382
  "light": "{colorBackgroundLayoutPanelContent}",
7371
7383
  "dark": "{colorBackgroundLayoutPanelContent}"
7372
7384
  },
7373
- "colorBackgroundDrawerBackdrop": {
7385
+ "colorBackgroundBackdrop": {
7374
7386
  "light": "{colorGreyOpaque70}",
7375
7387
  "dark": "{colorGreyOpaque70}"
7376
7388
  },
7389
+ "colorBackgroundDrawerBackdrop": {
7390
+ "light": "{colorBackgroundBackdrop}",
7391
+ "dark": "{colorBackgroundBackdrop}"
7392
+ },
7377
7393
  "colorBackgroundLayoutMobilePanel": {
7378
7394
  "light": "{colorNeutral950}",
7379
7395
  "dark": "{colorNeutral950}"
@@ -7419,8 +7435,8 @@ export var preset = {
7419
7435
  "dark": "{colorPrimary300}"
7420
7436
  },
7421
7437
  "colorBackgroundModalOverlay": {
7422
- "light": "{colorGreyOpaque70}",
7423
- "dark": "{colorGreyOpaque70}"
7438
+ "light": "{colorBackgroundBackdrop}",
7439
+ "dark": "{colorBackgroundBackdrop}"
7424
7440
  },
7425
7441
  "colorBackgroundNotificationBlue": {
7426
7442
  "light": "{colorInfo600}",
@@ -8780,10 +8796,14 @@ export var preset = {
8780
8796
  "light": "{colorBackgroundLayoutPanelContent}",
8781
8797
  "dark": "{colorBackgroundLayoutPanelContent}"
8782
8798
  },
8783
- "colorBackgroundDrawerBackdrop": {
8799
+ "colorBackgroundBackdrop": {
8784
8800
  "light": "{colorGreyOpaque70}",
8785
8801
  "dark": "{colorGreyOpaque70}"
8786
8802
  },
8803
+ "colorBackgroundDrawerBackdrop": {
8804
+ "light": "{colorBackgroundBackdrop}",
8805
+ "dark": "{colorBackgroundBackdrop}"
8806
+ },
8787
8807
  "colorBackgroundLayoutMobilePanel": {
8788
8808
  "light": "{colorNeutral950}",
8789
8809
  "dark": "{colorNeutral950}"
@@ -8829,8 +8849,8 @@ export var preset = {
8829
8849
  "dark": "{colorPrimary300}"
8830
8850
  },
8831
8851
  "colorBackgroundModalOverlay": {
8832
- "light": "{colorGreyOpaque70}",
8833
- "dark": "{colorGreyOpaque70}"
8852
+ "light": "{colorBackgroundBackdrop}",
8853
+ "dark": "{colorBackgroundBackdrop}"
8834
8854
  },
8835
8855
  "colorBackgroundNotificationBlue": {
8836
8856
  "light": "{colorInfo600}",
@@ -10190,10 +10210,14 @@ export var preset = {
10190
10210
  "light": "{colorBackgroundLayoutPanelContent}",
10191
10211
  "dark": "{colorBackgroundLayoutPanelContent}"
10192
10212
  },
10193
- "colorBackgroundDrawerBackdrop": {
10213
+ "colorBackgroundBackdrop": {
10194
10214
  "light": "{colorGreyOpaque70}",
10195
10215
  "dark": "{colorGreyOpaque70}"
10196
10216
  },
10217
+ "colorBackgroundDrawerBackdrop": {
10218
+ "light": "{colorBackgroundBackdrop}",
10219
+ "dark": "{colorBackgroundBackdrop}"
10220
+ },
10197
10221
  "colorBackgroundLayoutMobilePanel": {
10198
10222
  "light": "{colorNeutral950}",
10199
10223
  "dark": "{colorNeutral950}"
@@ -10239,8 +10263,8 @@ export var preset = {
10239
10263
  "dark": "{colorPrimary300}"
10240
10264
  },
10241
10265
  "colorBackgroundModalOverlay": {
10242
- "light": "{colorGreyOpaque70}",
10243
- "dark": "{colorGreyOpaque70}"
10266
+ "light": "{colorBackgroundBackdrop}",
10267
+ "dark": "{colorBackgroundBackdrop}"
10244
10268
  },
10245
10269
  "colorBackgroundNotificationBlue": {
10246
10270
  "light": "{colorInfo600}",
@@ -11602,10 +11626,14 @@ export var preset = {
11602
11626
  "light": "{colorBackgroundLayoutPanelContent}",
11603
11627
  "dark": "{colorBackgroundLayoutPanelContent}"
11604
11628
  },
11605
- "colorBackgroundDrawerBackdrop": {
11629
+ "colorBackgroundBackdrop": {
11606
11630
  "light": "{colorGreyOpaque70}",
11607
11631
  "dark": "{colorGreyOpaque70}"
11608
11632
  },
11633
+ "colorBackgroundDrawerBackdrop": {
11634
+ "light": "{colorBackgroundBackdrop}",
11635
+ "dark": "{colorBackgroundBackdrop}"
11636
+ },
11609
11637
  "colorBackgroundLayoutMobilePanel": {
11610
11638
  "light": "{colorNeutral950}",
11611
11639
  "dark": "{colorNeutral950}"
@@ -11651,8 +11679,8 @@ export var preset = {
11651
11679
  "dark": "{colorPrimary300}"
11652
11680
  },
11653
11681
  "colorBackgroundModalOverlay": {
11654
- "light": "{colorGreyOpaque70}",
11655
- "dark": "{colorGreyOpaque70}"
11682
+ "light": "{colorBackgroundBackdrop}",
11683
+ "dark": "{colorBackgroundBackdrop}"
11656
11684
  },
11657
11685
  "colorBackgroundNotificationBlue": {
11658
11686
  "light": "{colorInfo600}",
@@ -13121,6 +13149,7 @@ export var preset = {
13121
13149
  "colorBackgroundSideNavigationItemActive": "color",
13122
13150
  "colorBackgroundLayoutMain": "color",
13123
13151
  "colorBackgroundDrawer": "color",
13152
+ "colorBackgroundBackdrop": "color",
13124
13153
  "colorBackgroundDrawerBackdrop": "color",
13125
13154
  "colorBackgroundLayoutMobilePanel": "color",
13126
13155
  "colorBackgroundLayoutPanel": "color",
@@ -13937,6 +13966,7 @@ export var preset = {
13937
13966
  "colorBackgroundItemSelected",
13938
13967
  "colorBackgroundSideNavigationItemActive",
13939
13968
  "colorBackgroundLayoutMain",
13969
+ "colorBackgroundBackdrop",
13940
13970
  "colorBackgroundLayoutPanel",
13941
13971
  "colorBackgroundLayoutToolbar",
13942
13972
  "colorBackgroundLayoutToggleActive",
@@ -14055,6 +14085,9 @@ export var preset = {
14055
14085
  "colorTextDropdownItemHighlighted",
14056
14086
  "colorTextDropdownItemSecondary",
14057
14087
  "colorTextEmpty",
14088
+ "colorTextExpandableSectionDefault",
14089
+ "colorTextExpandableSectionHover",
14090
+ "colorTextExpandableSectionNavigationIconDefault",
14058
14091
  "colorBorderExpandableSectionDefault",
14059
14092
  "colorTextFormDefault",
14060
14093
  "colorTextFormLabel",
@@ -14454,6 +14487,7 @@ export var preset = {
14454
14487
  "colorBackgroundItemSelected",
14455
14488
  "colorBackgroundSideNavigationItemActive",
14456
14489
  "colorBackgroundLayoutMain",
14490
+ "colorBackgroundBackdrop",
14457
14491
  "colorBackgroundLayoutPanel",
14458
14492
  "colorBackgroundLayoutToolbar",
14459
14493
  "colorBackgroundLayoutToggleActive",
@@ -14567,6 +14601,9 @@ export var preset = {
14567
14601
  "colorTextDropdownItemHighlighted",
14568
14602
  "colorTextDropdownItemSecondary",
14569
14603
  "colorTextEmpty",
14604
+ "colorTextExpandableSectionDefault",
14605
+ "colorTextExpandableSectionHover",
14606
+ "colorTextExpandableSectionNavigationIconDefault",
14570
14607
  "colorTextFormDefault",
14571
14608
  "colorTextFormSecondary",
14572
14609
  "colorTextGroupLabel",
@@ -15124,6 +15161,7 @@ export var preset = {
15124
15161
  "colorBackgroundSideNavigationItemActive": "color-background-side-navigation-item-active",
15125
15162
  "colorBackgroundLayoutMain": "color-background-layout-main",
15126
15163
  "colorBackgroundDrawer": "color-background-drawer",
15164
+ "colorBackgroundBackdrop": "color-background-backdrop",
15127
15165
  "colorBackgroundDrawerBackdrop": "color-background-drawer-backdrop",
15128
15166
  "colorBackgroundLayoutMobilePanel": "color-background-layout-mobile-panel",
15129
15167
  "colorBackgroundLayoutPanel": "color-background-layout-panel",
@@ -16089,6 +16127,7 @@ export var preset = {
16089
16127
  "colorBackgroundSideNavigationItemActive": "--color-background-side-navigation-item-active-adfprg",
16090
16128
  "colorBackgroundLayoutMain": "--color-background-layout-main-5ilwcb",
16091
16129
  "colorBackgroundDrawer": "--color-background-drawer-5hs0eh",
16130
+ "colorBackgroundBackdrop": "--color-background-backdrop-33f45f",
16092
16131
  "colorBackgroundDrawerBackdrop": "--color-background-drawer-backdrop-ducxi3",
16093
16132
  "colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-ed0ava",
16094
16133
  "colorBackgroundLayoutPanel": "--color-background-layout-panel-jv6exs",
@@ -1,3 +1,3 @@
1
- import { NonCancelableEventHandler } from '../../events';
1
+ import { NonCancelableEventHandler } from '../../../types/events';
2
2
  export default function checkControlled<ValueType, EventDetailType>(componentName: string, propertyName: string, propertyValue: ValueType | undefined, handlerName: string, handlerValue: NonCancelableEventHandler<EventDetailType> | undefined): void;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAGzD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,EAAE,eAAe,EAChE,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,SAAS,GAAG,SAAS,EACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,SAAS,QAQrE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAGlE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,SAAS,EAAE,eAAe,EAChE,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,SAAS,GAAG,SAAS,EACpC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,yBAAyB,CAAC,eAAe,CAAC,GAAG,SAAS,QAQrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '../../events';\nimport { isDevelopment } from '../../is-development';\n\nexport default function checkControlled<ValueType, EventDetailType>(\n componentName: string,\n propertyName: string,\n propertyValue: ValueType | undefined,\n handlerName: string,\n handlerValue: NonCancelableEventHandler<EventDetailType> | undefined\n) {\n if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {\n warnOnce(\n componentName,\n `You provided \\`${propertyName}\\` prop without an \\`${handlerName}\\` handler. This will render a read-only component. If the component should be mutable, set an \\`${handlerName}\\` handler.`\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/check-controlled/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,aAAqB,EACrB,YAAoB,EACpB,aAAoC,EACpC,WAAmB,EACnB,YAAoE;IAEpE,IAAI,aAAa,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/E,QAAQ,CACN,aAAa,EACb,kBAAkB,YAAY,wBAAwB,WAAW,oGAAoG,WAAW,aAAa,CAC9L,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nimport { NonCancelableEventHandler } from '../../../types/events';\nimport { isDevelopment } from '../../is-development';\n\nexport default function checkControlled<ValueType, EventDetailType>(\n componentName: string,\n propertyName: string,\n propertyValue: ValueType | undefined,\n handlerName: string,\n handlerValue: NonCancelableEventHandler<EventDetailType> | undefined\n) {\n if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {\n warnOnce(\n componentName,\n `You provided \\`${propertyName}\\` prop without an \\`${handlerName}\\` handler. This will render a read-only component. If the component should be mutable, set an \\`${handlerName}\\` handler.`\n );\n }\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Breakpoint } from '../../breakpoints';
2
+ import { Breakpoint } from '../../../types/breakpoint';
3
3
  /**
4
4
  * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific
5
5
  * breakpoints you want to break at. "default" is always included as a fallback, so ["xs"] would trigger for
@@ -1 +1 @@
1
- {"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAyB,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,EAAE,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAOvG,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAClD"}
1
+ {"version":3,"file":"use-container-breakpoints.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,EAAE,CAAC,SAAS,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC,EAAE,CAAC,GAOvG,CAAC,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAc,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAEtE;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAA2D,QAAY;IAC5G,+EAA+E;IAC/E,MAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;IACrC,OAAO,iBAAiB,CACtB,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,kBAAkB,CAAC;IACvG,uDAAuD;IACvD,CAAC,WAAW,CAAC,CACkC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { Breakpoint, getMatchingBreakpoint } from '../../breakpoints';\n\n/**\n * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific\n * breakpoints you want to break at. \"default\" is always included as a fallback, so [\"xs\"] would trigger for\n * \"default\" and \"xs\".\n *\n * @param triggers The relevant breakpoints to trigger for.\n */\nexport function useContainerBreakpoints<T extends readonly Breakpoint[], E extends Element = any>(triggers?: T) {\n // triggers.join() gives us a stable value to use for the dependencies argument\n const triggersDep = triggers?.join();\n return useContainerQuery(\n (rect, previousBreakpoint) => getMatchingBreakpoint(rect.contentBoxWidth, triggers, previousBreakpoint),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [triggersDep]\n ) as ['default' | T[number] | null, React.Ref<E>];\n}\n"]}
1
+ {"version":3,"file":"use-container-breakpoints.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-container-breakpoints.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAA2D,QAAY;IAC5G,+EAA+E;IAC/E,MAAM,WAAW,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC;IACrC,OAAO,iBAAiB,CACtB,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,CAAC,qBAAqB,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,kBAAkB,CAAC;IACvG,uDAAuD;IACvD,CAAC,WAAW,CAAC,CACkC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { useContainerQuery } from '@cloudscape-design/component-toolkit';\n\nimport { Breakpoint } from '../../../types/breakpoint';\nimport { getMatchingBreakpoint } from '../../breakpoints';\n\n/**\n * Re-renders the component when the breakpoint for the component changes. Scopes the re-renders to the specific\n * breakpoints you want to break at. \"default\" is always included as a fallback, so [\"xs\"] would trigger for\n * \"default\" and \"xs\".\n *\n * @param triggers The relevant breakpoints to trigger for.\n */\nexport function useContainerBreakpoints<T extends readonly Breakpoint[], E extends Element = any>(triggers?: T) {\n // triggers.join() gives us a stable value to use for the dependencies argument\n const triggersDep = triggers?.join();\n return useContainerQuery(\n (rect, previousBreakpoint) => getMatchingBreakpoint(rect.contentBoxWidth, triggers, previousBreakpoint),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [triggersDep]\n ) as ['default' | T[number] | null, React.Ref<E>];\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentConfiguration } from '@cloudscape-design/component-toolkit/internal';
3
- import { AnalyticsMetadata } from '../../analytics/interfaces';
3
+ import { AnalyticsMetadata } from '../../../types/analytics';
4
4
  export interface InternalBaseComponentProps {
5
5
  __internalRootRef?: React.Ref<any>;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/D,MAAM,WAAW,0BAA0B;IAKzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,iBAAiB,CAAC,EAAE,iBAAiB;;EAatC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK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K,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,GAA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AC,YAAY,GAAK,IAAI,CAAC,YAAY,EAAC;QACvC,MAAA,GAAG,CAAC,gCAAgC,oCAApC,GAAG,CAAC,gCAAgC,GAAK,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 debounce from '../../debounce';\nimport { NonCancelableEventHandler } from '../../events';\nimport { reportRuntimeApiWarning } from '../helpers/metrics';\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\nexport interface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerConfig {\n id: string;\n type?: 'local' | 'global';\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n };\n isExpandable?: boolean;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n orderPriority?: number;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n}\n\nconst updatableProperties = [\n 'badge',\n 'resizable',\n 'defaultSize',\n 'orderPriority',\n 'defaultActive',\n 'onResize',\n] as const;\n\nexport type UpdateDrawerConfig = { id: DrawerConfig['id'] } & Partial<\n Pick<DrawerConfig, (typeof updatableProperties)[number]>\n>;\n\ntype DrawersRegistrationListener = (drawers: Array<DrawerConfig>) => void;\ntype DrawersUpdateListener = (drawers: Array<DrawerConfig>) => void;\n\nexport type DrawersToggledListener = (drawerId: string, params?: OpenCloseDrawerParams) => void;\ntype DrawersResizeListener = (drawerId: string, size: number) => void;\n\ninterface OpenCloseDrawerParams {\n initiatedByUserAction: boolean;\n}\n\nexport interface DrawersApiPublic {\n registerDrawer(config: DrawerConfig): void;\n updateDrawer(config: UpdateDrawerConfig): void;\n openDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n closeDrawer(drawerId: string, params?: OpenCloseDrawerParams): void;\n resizeDrawer(drawerId: string, size: number): void;\n clearRegisteredDrawersForTesting(): void;\n}\n\nexport interface DrawersApiInternal {\n onDrawersRegistered(listener: DrawersRegistrationListener): () => void;\n onDrawerOpened(listener: DrawersToggledListener): () => void;\n onDrawerClosed(listener: DrawersToggledListener): () => void;\n onDrawerResize(listener: DrawersResizeListener): () => void;\n onDrawersUpdated(listener: DrawersUpdateListener): void;\n getDrawersState(): Array<DrawerConfig>;\n}\n\nexport class DrawersController {\n private drawers: Array<DrawerConfig> = [];\n private drawersRegistrationListener: DrawersRegistrationListener | null = null;\n private drawerOpenedListener: DrawersToggledListener | null = null;\n private drawerClosedListener: DrawersToggledListener | null = null;\n private drawersUpdateListeners: Array<DrawersUpdateListener> = [];\n private drawerResizeListener: DrawersResizeListener | null = null;\n\n scheduleUpdate = debounce(() => {\n this.drawersRegistrationListener?.(this.drawers);\n this.drawersUpdateListeners.forEach(drawersUpdateListeners => {\n drawersUpdateListeners?.(this.drawers);\n });\n }, 0);\n\n registerDrawer = (config: DrawerConfig) => {\n if (this.drawers.find(drawer => drawer.id === config.id)) {\n reportRuntimeApiWarning('app-layout-drawers', `drawer with id \"${config.id}\" is already registered`);\n }\n this.drawers = this.drawers.concat(config);\n this.scheduleUpdate();\n };\n\n updateDrawer = ({ id: drawerId, ...rest }: UpdateDrawerConfig) => {\n const drawerIndex = this.drawers.findIndex(({ id }) => id === drawerId);\n const oldDrawerConfig = this.drawers?.[drawerIndex];\n if (!oldDrawerConfig) {\n throw new Error(`[AwsUi] [runtime drawers] drawer with id ${drawerId} not found`);\n }\n const drawers = this.drawers.slice();\n const updatedDrawer = { ...oldDrawerConfig };\n for (const key of updatableProperties) {\n if (key in rest) {\n updatedDrawer[key] = (rest as any)[key];\n }\n }\n drawers[drawerIndex] = updatedDrawer;\n this.drawers = drawers;\n this.scheduleUpdate();\n };\n\n onDrawersRegistered = (listener: DrawersRegistrationListener) => {\n if (this.drawersRegistrationListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawersRegistered'\n );\n }\n this.drawersRegistrationListener = listener;\n this.scheduleUpdate();\n return () => {\n this.drawersRegistrationListener = null;\n this.drawersUpdateListeners = [];\n };\n };\n\n clearRegisteredDrawersForTesting = () => {\n this.drawers = [];\n };\n\n onDrawerOpened = (listener: DrawersToggledListener) => {\n if (this.drawerOpenedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerOpened'\n );\n }\n\n this.drawerOpenedListener = listener;\n\n return () => {\n this.drawerOpenedListener = null;\n };\n };\n\n onDrawerClosed = (listener: DrawersToggledListener) => {\n if (this.drawerClosedListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerClosed'\n );\n }\n\n this.drawerClosedListener = listener;\n\n return () => {\n this.drawerClosedListener = null;\n };\n };\n\n openDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerOpenedListener?.(drawerId, params);\n };\n\n closeDrawer = (drawerId: string, params?: OpenCloseDrawerParams) => {\n this.drawerClosedListener?.(drawerId, params);\n };\n\n onDrawersUpdated = (listener: DrawersUpdateListener) => {\n this.drawersUpdateListeners.push(listener);\n\n return () => {\n this.drawersUpdateListeners = this.drawersUpdateListeners.filter(item => item !== listener);\n };\n };\n\n onDrawerResize = (listener: DrawersResizeListener) => {\n if (this.drawerResizeListener !== null) {\n reportRuntimeApiWarning(\n 'app-layout-drawers',\n 'multiple app layout instances detected when calling onDrawerResize'\n );\n }\n\n this.drawerResizeListener = listener;\n\n return () => {\n this.drawerResizeListener = null;\n };\n };\n\n resizeDrawer = (drawerId: string, size: number) => {\n this.drawerResizeListener?.(drawerId, size);\n };\n\n getDrawersState = () => {\n return this.drawers;\n };\n\n installPublic(api: Partial<DrawersApiPublic> = {}): DrawersApiPublic {\n api.registerDrawer ??= this.registerDrawer;\n api.updateDrawer ??= this.updateDrawer;\n api.openDrawer ??= this.openDrawer;\n api.closeDrawer ??= this.closeDrawer;\n api.resizeDrawer ??= this.resizeDrawer;\n api.clearRegisteredDrawersForTesting ??= this.clearRegisteredDrawersForTesting;\n return api as DrawersApiPublic;\n }\n\n installInternal(internalApi: Partial<DrawersApiInternal> = {}): DrawersApiInternal {\n internalApi.onDrawersRegistered ??= this.onDrawersRegistered;\n internalApi.onDrawerOpened ??= this.onDrawerOpened;\n internalApi.onDrawerClosed ??= this.onDrawerClosed;\n internalApi.onDrawerResize ??= this.onDrawerResize;\n internalApi.onDrawersUpdated ??= this.onDrawersUpdated;\n internalApi.getDrawersState ??= this.getDrawersState;\n return internalApi as DrawersApiInternal;\n }\n}\n"]}
1
+ {"version":3,"file":"drawers.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/controllers/drawers.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AA0C7D,MAAM,mBAAmB,GAAG;IAC1B,OAAO;IACP,WAAW;IACX,aAAa;IACb,eAAe;IACf,eAAe;IACf,UAAU;CACF,CAAC;AAkCX,MAAM,OAAO,iBAAiB;IAA9B;QACU,YAAO,GAAwB,EAAE,CAAC;QAClC,gCAA2B,GAAuC,IAAI,CAAC;QACvE,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,yBAAoB,GAAkC,IAAI,CAAC;QAC3D,2BAAsB,GAAiC,EAAE,CAAC;QAC1D,yBAAoB,GAAiC,IAAI,CAAC;QAElE,mBAAc,GAAG,QAAQ,CAAC,GAAG,EAAE;;YAC7B,MAAA,IAAI,CAAC,2BAA2B,qDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;gBAC3D,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAG,IAAI,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC,CAAC,CAAC;QACL,CAAC,EAAE,CAAC,CAAC,CAAC;QAEN,mBAAc,GAAG,CAAC,MAAoB,EAAE,EAAE;YACxC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;gBACzD,uBAAuB,CAAC,oBAAoB,EAAE,mBAAmB,MAAM,CAA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I,CAAC,WAAW,EAAC;QACrC,MAAA,GAAG,CAAC,YAAY,oCAAhB,GAAG,CAAC,YAAY,GAAK,IAAI,CAAC,YAAY,EAAC;QACvC,MAAA,GAAG,CAAC,gCAAgC,oCAApC,GAAG,CAAC,gCAAgC,GAAK,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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BAAqB,GAAG,mCAAmC,CAAC,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T> = RegisterDrawerMessage | RegisterFeatureNotificationsMessage<T>;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ButtonGroupProps, ItemRuntime } from '../../../button-group/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\ninterface Message<Type, Payload> {\n type: Type;\n payload: Payload;\n}\n\ntype DrawerVisibilityChange = (callback: (isVisible: boolean) => void) => void;\n\ninterface MountContentContext {\n onVisibilityChange: DrawerVisibilityChange;\n}\n\ninterface DrawerStateChangeParams {\n isOpen: boolean;\n initiatedByUserAction?: boolean;\n}\n\nexport interface DrawerPayload {\n id: string;\n ariaLabels: {\n content?: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n expandedModeButton?: string;\n exitExpandedModeButton?: string;\n };\n isExpandable?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number; id: string }>;\n defaultActive?: boolean;\n trigger?: {\n iconSvg?: string;\n customIcon?: string;\n };\n exitExpandedModeTrigger?: {\n customIcon?: string;\n };\n mountContent: (container: HTMLElement, mountContext: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n preserveInactiveContent?: boolean;\n onToggle?: NonCancelableEventHandler<DrawerStateChangeParams>;\n mountHeader?: (container: HTMLElement) => void;\n unmountHeader?: (container: HTMLElement) => void;\n headerActions?: ReadonlyArray<ItemRuntime>;\n onHeaderActionClick?: NonCancelableEventHandler<ButtonGroupProps.ItemClickDetails>;\n onToggleFocusMode?: NonCancelableEventHandler<{ isExpanded: boolean }>;\n position?: 'side' | 'bottom';\n}\n\ntype Destructor = () => void;\nexport type MountContentPart<T> = (container: HTMLElement, data: T) => Destructor | void;\n\n/**\n * Describes a single feature entry in the notification drawer.\n *\n * The generic type `T` determines how feature text content is provided:\n * - When `T` is `string`, the values are rendered as plain text.\n * - When `T` is `ReactNode`, you must also provide `mountItem` on the parent\n * `FeatureNotificationsPayload` so the framework can mount the React content\n * into the DOM container.\n */\nexport interface Feature<T> {\n /** Unique identifier used for persistence tracking (seen/unseen state) and list keying. */\n id: string;\n /** Primary title displayed as the feature heading in both the notification drawer and the feature prompt popover. */\n header: T;\n /** Descriptive body rendered below the header in the notification drawer and the feature prompt popover. */\n content: T;\n /** Optional category label rendered between the release date and the content in the notification drawer. */\n contentCategory?: T;\n /** Publication date of the feature. Used for default filtering (last 90 days), descending sort order, and display formatting. */\n releaseDate: Date;\n}\n\nexport interface FeatureNotificationsPersistenceConfig {\n uniqueKey: string;\n}\n\ntype FeatureId = string;\ntype FeatureReleaseDateString = string;\nexport type PersistedFeaturesDict = Record<FeatureId, FeatureReleaseDateString>;\nexport type PersistFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig,\n value: PersistedFeaturesDict\n) => Promise<void>;\nexport type RetrieveFeatureNotifications = (\n persistenceConfig: FeatureNotificationsPersistenceConfig\n) => Promise<PersistedFeaturesDict>;\n\nexport interface FeatureNotificationsPayload<T> {\n /**\n * Unique identifier for the feature notifications.\n */\n id: string;\n /**\n * When set to `true`, prevents the feature prompt from automatically appearing\n * when unseen features are detected during registration. The prompt can still\n * be shown programmatically via the `showFeaturePromptIfPossible` message.\n *\n * @default false\n */\n suppressFeaturePrompt?: boolean;\n /**\n * List of features to display in the notification drawer. Each feature is filtered\n * by `filterFeatures` (or a default 90-day recency filter), sorted by `releaseDate`\n * in descending order, and tracked for seen/unseen state via persistence. The latest\n * unseen feature is used to populate the feature prompt, and opening the drawer marks\n * all features as seen.\n */\n features: Array<Feature<T>>;\n /**\n * Mounting function used to render each feature's `header`, `content`, and\n * `contentCategory` values into the DOM. Required when `T` is `ReactNode`\n * (or any non-string type) so the framework can mount the content into the\n * provided container element. When `T` is `string`, this can be omitted and\n * values are rendered as plain text.\n *\n * The function receives the target `container` element and the `data` value\n * (one of the feature's text fields), and should return an optional destructor\n * that will be called on unmount to clean up resources (e.g. `root.unmount()`).\n *\n * @example\n * ```ts\n * import { createRoot } from 'react-dom/client';\n *\n * mountItem: (container, data) => {\n * const root = createRoot(container);\n * root.render(data);\n * return () => root.unmount();\n * }\n * ```\n */\n mountItem?: MountContentPart<T>;\n /**\n * Optional URL rendered as a \"View all feature releases\" link at the bottom of the notification\n * drawer, allowing users to navigate to a dedicated page with the full list of\n * features.\n */\n featuresPageLink?: string;\n /**\n * Optional predicate to control which features are displayed. Applied to each\n * feature before sorting. When omitted, a default filter is used that only\n * keeps features with a `releaseDate` within the last 90 days.\n */\n filterFeatures?: (item: Feature<T>) => boolean;\n /**\n * Configuration for persisting seen/unseen state of features. The `uniqueKey`\n * is used as the storage key when saving and retrieving which features the user\n * has already viewed. When omitted, a default key (`'awsui-feature-notifications'`)\n * is used.\n */\n persistenceConfig?: FeatureNotificationsPersistenceConfig;\n /**\n * @internal\n * Optional override for saving the seen/unseen state of features. When provided,\n * this function is called instead of the built-in persistence mechanism when the\n * user opens the notification drawer and all features are marked as seen.\n * Receives the `persistenceConfig` and a dictionary mapping feature IDs to their\n * release date strings.\n */\n __persistFeatureNotifications?: PersistFeatureNotifications;\n /**\n * @internal\n * Optional override for retrieving the previously persisted seen/unseen state of\n * features. When provided, this function is called instead of the built-in retrieval\n * mechanism during registration to determine which features the user has already viewed.\n * Should return a dictionary mapping feature IDs to their release date strings.\n */\n __retrieveFeatureNotifications?: RetrieveFeatureNotifications;\n\n i18nStrings?: {\n titleText?: string;\n viewAllText?: string;\n closeButtonAriaLabel?: string;\n contentAriaLabel?: string;\n triggerButtonAriaLabel?: string;\n resizeHandleAriaLabel?: string;\n };\n}\n\nexport type FeatureNotificationsPayloadPublic<T> = Omit<\n FeatureNotificationsPayload<T>,\n '__persistFeatureNotifications' | '__retrieveFeatureNotifications'\n>;\n\nexport type RegisterDrawerMessage = Message<'registerLeftDrawer' | 'registerBottomDrawer', DrawerPayload>;\nexport type RegisterFeatureNotificationsMessage<T> = Message<\n 'registerFeatureNotifications',\n FeatureNotificationsPayload<T>\n>;\nexport type UpdateDrawerConfigMessage = Message<\n 'updateDrawerConfig',\n Pick<DrawerPayload, 'id'> &\n Partial<Omit<DrawerPayload, 'mountContent' | 'unmountContent' | 'mountHeader' | 'unmountHeader'>>\n>;\nexport type OpenDrawerMessage = Message<'openDrawer', { id: string }>;\nexport type CloseDrawerMessage = Message<'closeDrawer', { id: string }>;\nexport type ResizeDrawerMessage = Message<'resizeDrawer', { id: string; size: number }>;\nexport type ExpandDrawerMessage = Message<'expandDrawer', { id: string }>;\nexport interface ExitExpandedModeMessage {\n type: 'exitExpandedMode';\n}\nexport interface ShowFeaturePromptIfPossible {\n type: 'showFeaturePromptIfPossible';\n}\nexport interface ClearFeatureNotifications {\n type: 'clearFeatureNotifications';\n}\n\nexport type AppLayoutUpdateMessage<T = unknown> =\n | UpdateDrawerConfigMessage\n | OpenDrawerMessage\n | CloseDrawerMessage\n | ResizeDrawerMessage\n | ExpandDrawerMessage\n | ExitExpandedModeMessage\n | RegisterFeatureNotificationsMessage<T>\n | ShowFeaturePromptIfPossible\n | ClearFeatureNotifications;\n\nexport type InitialMessage<T> = RegisterDrawerMessage | RegisterFeatureNotificationsMessage<T>;\n\nexport type WidgetMessage<T = unknown> = InitialMessage<T> | AppLayoutUpdateMessage<T>;\n"]}
@@ -1,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,QAA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