@cloudscape-design/components-themeable 3.0.1317 → 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 (664) 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 +1 -1
  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/theming/index.cjs +6 -0
  364. package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +27 -0
  365. package/lib/internal/template/internal/generated/theming/index.d.ts +27 -0
  366. package/lib/internal/template/internal/generated/theming/index.js +6 -0
  367. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts +1 -1
  368. package/lib/internal/template/internal/hooks/check-controlled/index.d.ts.map +1 -1
  369. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  370. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts +1 -1
  371. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.d.ts.map +1 -1
  372. package/lib/internal/template/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  373. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts +1 -1
  374. package/lib/internal/template/internal/hooks/use-base-component/index.d.ts.map +1 -1
  375. package/lib/internal/template/internal/hooks/use-base-component/index.js.map +1 -1
  376. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts +1 -1
  377. package/lib/internal/template/internal/hooks/use-focus-tracker.d.ts.map +1 -1
  378. package/lib/internal/template/internal/hooks/use-focus-tracker.js.map +1 -1
  379. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts +1 -1
  380. package/lib/internal/template/internal/plugins/controllers/drawers.d.ts.map +1 -1
  381. package/lib/internal/template/internal/plugins/controllers/drawers.js.map +1 -1
  382. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts +1 -1
  383. package/lib/internal/template/internal/plugins/widget/interfaces.d.ts.map +1 -1
  384. package/lib/internal/template/internal/plugins/widget/interfaces.js.map +1 -1
  385. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts +1 -16
  386. package/lib/internal/template/internal/utils/date-time/interfaces.d.ts.map +1 -1
  387. package/lib/internal/template/internal/utils/date-time/interfaces.js.map +1 -1
  388. package/lib/internal/template/internal/utils/with-native-attributes.d.ts +2 -1
  389. package/lib/internal/template/internal/utils/with-native-attributes.d.ts.map +1 -1
  390. package/lib/internal/template/internal/utils/with-native-attributes.js.map +1 -1
  391. package/lib/internal/template/item-card/interfaces.d.ts +2 -2
  392. package/lib/internal/template/item-card/interfaces.d.ts.map +1 -1
  393. package/lib/internal/template/item-card/interfaces.js.map +1 -1
  394. package/lib/internal/template/key-value-pairs/interfaces.d.ts +1 -1
  395. package/lib/internal/template/key-value-pairs/interfaces.d.ts.map +1 -1
  396. package/lib/internal/template/key-value-pairs/interfaces.js.map +1 -1
  397. package/lib/internal/template/link/interfaces.d.ts +3 -3
  398. package/lib/internal/template/link/interfaces.d.ts.map +1 -1
  399. package/lib/internal/template/link/interfaces.js.map +1 -1
  400. package/lib/internal/template/list/interfaces.d.ts +3 -3
  401. package/lib/internal/template/list/interfaces.d.ts.map +1 -1
  402. package/lib/internal/template/list/interfaces.js.map +1 -1
  403. package/lib/internal/template/live-region/interfaces.d.ts +1 -1
  404. package/lib/internal/template/live-region/interfaces.d.ts.map +1 -1
  405. package/lib/internal/template/live-region/interfaces.js.map +1 -1
  406. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts +1 -1
  407. package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  408. package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
  409. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts +1 -1
  410. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  411. package/lib/internal/template/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  412. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts +1 -1
  413. package/lib/internal/template/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  414. package/lib/internal/template/mixed-line-bar-chart/interfaces.js.map +1 -1
  415. package/lib/internal/template/modal/interfaces.d.ts +3 -3
  416. package/lib/internal/template/modal/interfaces.d.ts.map +1 -1
  417. package/lib/internal/template/modal/interfaces.js.map +1 -1
  418. package/lib/internal/template/multiselect/embedded.d.ts +2 -2
  419. package/lib/internal/template/multiselect/interfaces.d.ts +2 -2
  420. package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
  421. package/lib/internal/template/multiselect/interfaces.js.map +1 -1
  422. package/lib/internal/template/multiselect/internal.d.ts +1 -1
  423. package/lib/internal/template/multiselect/use-multiselect.d.ts +8 -8
  424. package/lib/internal/template/multiselect/use-multiselect.d.ts.map +1 -1
  425. package/lib/internal/template/multiselect/use-multiselect.js.map +1 -1
  426. package/lib/internal/template/navigable-group/interfaces.d.ts +1 -1
  427. package/lib/internal/template/navigable-group/interfaces.d.ts.map +1 -1
  428. package/lib/internal/template/navigable-group/interfaces.js.map +1 -1
  429. package/lib/internal/template/pagination/interfaces.d.ts +1 -1
  430. package/lib/internal/template/pagination/interfaces.d.ts.map +1 -1
  431. package/lib/internal/template/pagination/interfaces.js.map +1 -1
  432. package/lib/internal/template/pagination/internal.d.ts.map +1 -1
  433. package/lib/internal/template/pagination/internal.js.map +1 -1
  434. package/lib/internal/template/panel-layout/interfaces.d.ts +2 -2
  435. package/lib/internal/template/panel-layout/interfaces.d.ts.map +1 -1
  436. package/lib/internal/template/panel-layout/interfaces.js.map +1 -1
  437. package/lib/internal/template/pie-chart/interfaces.d.ts +2 -2
  438. package/lib/internal/template/pie-chart/interfaces.d.ts.map +1 -1
  439. package/lib/internal/template/pie-chart/interfaces.js.map +1 -1
  440. package/lib/internal/template/popover/interfaces.d.ts +1 -1
  441. package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
  442. package/lib/internal/template/popover/interfaces.js.map +1 -1
  443. package/lib/internal/template/popover/internal.d.ts +1 -1
  444. package/lib/internal/template/popover/internal.d.ts.map +1 -1
  445. package/lib/internal/template/popover/internal.js.map +1 -1
  446. package/lib/internal/template/progress-bar/interfaces.d.ts +2 -2
  447. package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
  448. package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
  449. package/lib/internal/template/prompt-input/core/menu-state.d.ts +2 -2
  450. package/lib/internal/template/prompt-input/core/menu-state.d.ts.map +1 -1
  451. package/lib/internal/template/prompt-input/core/menu-state.js.map +1 -1
  452. package/lib/internal/template/prompt-input/interfaces.d.ts +6 -6
  453. package/lib/internal/template/prompt-input/interfaces.d.ts.map +1 -1
  454. package/lib/internal/template/prompt-input/interfaces.js.map +1 -1
  455. package/lib/internal/template/property-filter/controller.d.ts +2 -2
  456. package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
  457. package/lib/internal/template/property-filter/controller.js.map +1 -1
  458. package/lib/internal/template/property-filter/filter-options.js.map +1 -1
  459. package/lib/internal/template/property-filter/interfaces.d.ts +4 -4
  460. package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
  461. package/lib/internal/template/property-filter/interfaces.js.map +1 -1
  462. package/lib/internal/template/property-filter/property-editor.d.ts +2 -2
  463. package/lib/internal/template/property-filter/property-editor.d.ts.map +1 -1
  464. package/lib/internal/template/property-filter/property-editor.js.map +1 -1
  465. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts +1 -1
  466. package/lib/internal/template/property-filter/property-filter-autosuggest.d.ts.map +1 -1
  467. package/lib/internal/template/property-filter/property-filter-autosuggest.js +1 -1
  468. package/lib/internal/template/property-filter/property-filter-autosuggest.js.map +1 -1
  469. package/lib/internal/template/property-filter/token-editor-inputs.d.ts +2 -2
  470. package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
  471. package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
  472. package/lib/internal/template/property-filter/token-editor.d.ts +2 -2
  473. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  474. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  475. package/lib/internal/template/property-filter/token.d.ts +2 -2
  476. package/lib/internal/template/property-filter/token.d.ts.map +1 -1
  477. package/lib/internal/template/property-filter/token.js.map +1 -1
  478. package/lib/internal/template/property-filter/use-load-items.d.ts +1 -1
  479. package/lib/internal/template/property-filter/use-load-items.d.ts.map +1 -1
  480. package/lib/internal/template/property-filter/use-load-items.js.map +1 -1
  481. package/lib/internal/template/radio-button/interfaces.d.ts +128 -2
  482. package/lib/internal/template/radio-button/interfaces.d.ts.map +1 -1
  483. package/lib/internal/template/radio-button/interfaces.js.map +1 -1
  484. package/lib/internal/template/radio-group/interfaces.d.ts +4 -4
  485. package/lib/internal/template/radio-group/interfaces.d.ts.map +1 -1
  486. package/lib/internal/template/radio-group/interfaces.js.map +1 -1
  487. package/lib/internal/template/s3-resource-selector/interfaces.d.ts +2 -2
  488. package/lib/internal/template/s3-resource-selector/interfaces.d.ts.map +1 -1
  489. package/lib/internal/template/s3-resource-selector/interfaces.js.map +1 -1
  490. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts +1 -1
  491. package/lib/internal/template/s3-resource-selector/s3-in-context/index.d.ts.map +1 -1
  492. package/lib/internal/template/s3-resource-selector/s3-in-context/index.js.map +1 -1
  493. package/lib/internal/template/s3-resource-selector/s3-in-context/use-versions-fetch.d.ts +1 -1
  494. package/lib/internal/template/segmented-control/interfaces.d.ts +2 -2
  495. package/lib/internal/template/segmented-control/interfaces.d.ts.map +1 -1
  496. package/lib/internal/template/segmented-control/interfaces.js.map +1 -1
  497. package/lib/internal/template/select/interfaces.d.ts +5 -5
  498. package/lib/internal/template/select/interfaces.d.ts.map +1 -1
  499. package/lib/internal/template/select/interfaces.js.map +1 -1
  500. package/lib/internal/template/select/internal.d.ts.map +1 -1
  501. package/lib/internal/template/select/internal.js.map +1 -1
  502. package/lib/internal/template/select/parts/item.d.ts.map +1 -1
  503. package/lib/internal/template/select/parts/item.js.map +1 -1
  504. package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
  505. package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
  506. package/lib/internal/template/select/parts/trigger.d.ts +2 -2
  507. package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
  508. package/lib/internal/template/select/parts/trigger.js.map +1 -1
  509. package/lib/internal/template/select/utils/connect-options.d.ts +2 -1
  510. package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
  511. package/lib/internal/template/select/utils/connect-options.js.map +1 -1
  512. package/lib/internal/template/select/utils/use-announcement.d.ts +1 -1
  513. package/lib/internal/template/select/utils/use-announcement.d.ts.map +1 -1
  514. package/lib/internal/template/select/utils/use-announcement.js.map +1 -1
  515. package/lib/internal/template/select/utils/use-load-items.d.ts +2 -2
  516. package/lib/internal/template/select/utils/use-load-items.d.ts.map +1 -1
  517. package/lib/internal/template/select/utils/use-load-items.js.map +1 -1
  518. package/lib/internal/template/select/utils/use-native-search.d.ts +2 -1
  519. package/lib/internal/template/select/utils/use-native-search.d.ts.map +1 -1
  520. package/lib/internal/template/select/utils/use-native-search.js.map +1 -1
  521. package/lib/internal/template/select/utils/use-select.d.ts +4 -3
  522. package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
  523. package/lib/internal/template/select/utils/use-select.js.map +1 -1
  524. package/lib/internal/template/side-navigation/interfaces.d.ts +2 -2
  525. package/lib/internal/template/side-navigation/interfaces.d.ts.map +1 -1
  526. package/lib/internal/template/side-navigation/interfaces.js.map +1 -1
  527. package/lib/internal/template/side-navigation/parts.d.ts.map +1 -1
  528. package/lib/internal/template/side-navigation/parts.js.map +1 -1
  529. package/lib/internal/template/skeleton/interfaces.d.ts +1 -1
  530. package/lib/internal/template/skeleton/interfaces.d.ts.map +1 -1
  531. package/lib/internal/template/skeleton/interfaces.js.map +1 -1
  532. package/lib/internal/template/slider/interfaces.d.ts +3 -3
  533. package/lib/internal/template/slider/interfaces.d.ts.map +1 -1
  534. package/lib/internal/template/slider/interfaces.js.map +1 -1
  535. package/lib/internal/template/space-between/interfaces.d.ts +2 -2
  536. package/lib/internal/template/space-between/interfaces.d.ts.map +1 -1
  537. package/lib/internal/template/space-between/interfaces.js.map +1 -1
  538. package/lib/internal/template/spinner/interfaces.d.ts +2 -2
  539. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  540. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  541. package/lib/internal/template/split-panel/interfaces.d.ts +1 -1
  542. package/lib/internal/template/split-panel/interfaces.d.ts.map +1 -1
  543. package/lib/internal/template/split-panel/interfaces.js.map +1 -1
  544. package/lib/internal/template/status-indicator/interfaces.d.ts +2 -2
  545. package/lib/internal/template/status-indicator/interfaces.d.ts.map +1 -1
  546. package/lib/internal/template/status-indicator/interfaces.js.map +1 -1
  547. package/lib/internal/template/steps/interfaces.d.ts +1 -1
  548. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  549. package/lib/internal/template/steps/interfaces.js.map +1 -1
  550. package/lib/internal/template/table/interfaces.d.ts +2 -2
  551. package/lib/internal/template/table/interfaces.d.ts.map +1 -1
  552. package/lib/internal/template/table/interfaces.js.map +1 -1
  553. package/lib/internal/template/table/thead.d.ts +1 -1
  554. package/lib/internal/template/table/thead.d.ts.map +1 -1
  555. package/lib/internal/template/table/thead.js.map +1 -1
  556. package/lib/internal/template/table/use-cell-editing.d.ts +1 -1
  557. package/lib/internal/template/table/use-cell-editing.d.ts.map +1 -1
  558. package/lib/internal/template/table/use-cell-editing.js.map +1 -1
  559. package/lib/internal/template/tabs/interfaces.d.ts +2 -2
  560. package/lib/internal/template/tabs/interfaces.d.ts.map +1 -1
  561. package/lib/internal/template/tabs/interfaces.js.map +1 -1
  562. package/lib/internal/template/tag-editor/index.d.ts.map +1 -1
  563. package/lib/internal/template/tag-editor/index.js.map +1 -1
  564. package/lib/internal/template/tag-editor/interfaces.d.ts +2 -2
  565. package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
  566. package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
  567. package/lib/internal/template/tag-editor/internal.js.map +1 -1
  568. package/lib/internal/template/text-content/interfaces.d.ts +1 -1
  569. package/lib/internal/template/text-content/interfaces.d.ts.map +1 -1
  570. package/lib/internal/template/text-content/interfaces.js.map +1 -1
  571. package/lib/internal/template/text-filter/interfaces.d.ts +3 -3
  572. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  573. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  574. package/lib/internal/template/textarea/interfaces.d.ts +4 -4
  575. package/lib/internal/template/textarea/interfaces.d.ts.map +1 -1
  576. package/lib/internal/template/textarea/interfaces.js.map +1 -1
  577. package/lib/internal/template/tiles/interfaces.d.ts +4 -4
  578. package/lib/internal/template/tiles/interfaces.d.ts.map +1 -1
  579. package/lib/internal/template/tiles/interfaces.js.map +1 -1
  580. package/lib/internal/template/time-input/interfaces.d.ts +2 -2
  581. package/lib/internal/template/time-input/interfaces.d.ts.map +1 -1
  582. package/lib/internal/template/time-input/interfaces.js.map +1 -1
  583. package/lib/internal/template/toggle/interfaces.d.ts +2 -2
  584. package/lib/internal/template/toggle/interfaces.d.ts.map +1 -1
  585. package/lib/internal/template/toggle/interfaces.js.map +1 -1
  586. package/lib/internal/template/toggle-button/interfaces.d.ts +2 -2
  587. package/lib/internal/template/toggle-button/interfaces.d.ts.map +1 -1
  588. package/lib/internal/template/toggle-button/interfaces.js.map +1 -1
  589. package/lib/internal/template/token/dismiss-button.d.ts +1 -1
  590. package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
  591. package/lib/internal/template/token/dismiss-button.js.map +1 -1
  592. package/lib/internal/template/token/interfaces.d.ts +2 -2
  593. package/lib/internal/template/token/interfaces.d.ts.map +1 -1
  594. package/lib/internal/template/token/interfaces.js.map +1 -1
  595. package/lib/internal/template/token-group/interfaces.d.ts +2 -2
  596. package/lib/internal/template/token-group/interfaces.d.ts.map +1 -1
  597. package/lib/internal/template/token-group/interfaces.js.map +1 -1
  598. package/lib/internal/template/tooltip/interfaces.d.ts +1 -1
  599. package/lib/internal/template/tooltip/interfaces.d.ts.map +1 -1
  600. package/lib/internal/template/tooltip/interfaces.js.map +1 -1
  601. package/lib/internal/template/top-navigation/interfaces.d.ts +2 -2
  602. package/lib/internal/template/top-navigation/interfaces.d.ts.map +1 -1
  603. package/lib/internal/template/top-navigation/interfaces.js.map +1 -1
  604. package/lib/internal/template/tree-view/interfaces.d.ts +2 -2
  605. package/lib/internal/template/tree-view/interfaces.d.ts.map +1 -1
  606. package/lib/internal/template/tree-view/interfaces.js.map +1 -1
  607. package/lib/internal/template/truncated-text/interfaces.d.ts +1 -1
  608. package/lib/internal/template/truncated-text/interfaces.d.ts.map +1 -1
  609. package/lib/internal/template/truncated-text/interfaces.js.map +1 -1
  610. package/lib/internal/template/tutorial-panel/index.js.map +1 -1
  611. package/lib/internal/template/tutorial-panel/interfaces.d.ts +2 -2
  612. package/lib/internal/template/tutorial-panel/interfaces.d.ts.map +1 -1
  613. package/lib/internal/template/tutorial-panel/interfaces.js.map +1 -1
  614. package/lib/internal/template/types/analytics.d.ts +16 -0
  615. package/lib/internal/template/types/analytics.d.ts.map +1 -0
  616. package/lib/internal/template/types/analytics.js +4 -0
  617. package/lib/internal/template/types/analytics.js.map +1 -0
  618. package/lib/internal/template/types/base-component.d.ts +15 -0
  619. package/lib/internal/template/types/base-component.d.ts.map +1 -0
  620. package/lib/internal/template/types/base-component.js +4 -0
  621. package/lib/internal/template/types/base-component.js.map +1 -0
  622. package/lib/internal/template/types/breakpoint.d.ts +2 -0
  623. package/lib/internal/template/types/breakpoint.d.ts.map +1 -0
  624. package/lib/internal/template/types/breakpoint.js +2 -0
  625. package/lib/internal/template/types/breakpoint.js.map +1 -0
  626. package/lib/internal/template/types/cartesian-chart.d.ts +210 -0
  627. package/lib/internal/template/types/cartesian-chart.d.ts.map +1 -0
  628. package/lib/internal/template/types/cartesian-chart.js +2 -0
  629. package/lib/internal/template/types/cartesian-chart.js.map +1 -0
  630. package/lib/internal/template/types/date-time.d.ts +17 -0
  631. package/lib/internal/template/types/date-time.d.ts.map +1 -0
  632. package/lib/internal/template/types/date-time.js +4 -0
  633. package/lib/internal/template/types/date-time.js.map +1 -0
  634. package/lib/internal/template/{internal/components/dropdown-status/interfaces.d.ts → types/dropdown-status.d.ts} +1 -1
  635. package/lib/internal/template/types/dropdown-status.d.ts.map +1 -0
  636. package/lib/internal/template/types/dropdown-status.js +2 -0
  637. package/lib/internal/template/types/dropdown-status.js.map +1 -0
  638. package/lib/internal/template/types/events.d.ts +25 -0
  639. package/lib/internal/template/types/events.d.ts.map +1 -0
  640. package/lib/internal/template/types/events.js +4 -0
  641. package/lib/internal/template/types/events.js.map +1 -0
  642. package/lib/internal/template/types/form-field.d.ts +55 -0
  643. package/lib/internal/template/types/form-field.d.ts.map +1 -0
  644. package/lib/internal/template/types/form-field.js +4 -0
  645. package/lib/internal/template/types/form-field.js.map +1 -0
  646. package/lib/internal/template/types/native-attributes.d.ts +3 -0
  647. package/lib/internal/template/types/native-attributes.d.ts.map +1 -0
  648. package/lib/internal/template/types/native-attributes.js +2 -0
  649. package/lib/internal/template/types/native-attributes.js.map +1 -0
  650. package/lib/internal/template/types/option.d.ts +27 -0
  651. package/lib/internal/template/types/option.d.ts.map +1 -0
  652. package/lib/internal/template/types/option.js +2 -0
  653. package/lib/internal/template/types/option.js.map +1 -0
  654. package/lib/internal/template/types/sortable-area.d.ts +9 -0
  655. package/lib/internal/template/types/sortable-area.d.ts.map +1 -0
  656. package/lib/internal/template/types/sortable-area.js +4 -0
  657. package/lib/internal/template/types/sortable-area.js.map +1 -0
  658. package/lib/internal/template/wizard/interfaces.d.ts +3 -3
  659. package/lib/internal/template/wizard/interfaces.d.ts.map +1 -1
  660. package/lib/internal/template/wizard/interfaces.js.map +1 -1
  661. package/package.json +1 -1
  662. package/lib/internal/template/internal/components/dropdown-status/interfaces.d.ts.map +0 -1
  663. package/lib/internal/template/internal/components/dropdown-status/interfaces.js +0 -2
  664. package/lib/internal/template/internal/components/dropdown-status/interfaces.js.map +0 -1
@@ -1,57 +1,5 @@
1
- export interface FormFieldControlProps {
2
- /**
3
- * Specifies the ID of the native form element. You can use it to relate
4
- * a label element's `for` attribute to this control.
5
- *
6
- * It defaults to an automatically generated ID that
7
- * is provided by its parent form field component.
8
- */
9
- controlId?: string;
10
- /**
11
- * Adds `aria-labelledby` to the component. If you're using this component within a form field,
12
- * don't set this property because the form field component automatically sets it.
13
- *
14
- * Use this property if the component isn't surrounded by a form field, or you want to override the value
15
- * automatically set by the form field (for example, if you have two components within a single form field).
16
- *
17
- * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.
18
- */
19
- ariaLabelledby?: string;
20
- /**
21
- * Adds `aria-describedby` to the component. If you're using this component within a form field,
22
- * don't set this property because the form field component automatically sets it.
23
- *
24
- * Use this property if the component isn't surrounded by a form field, or you want to override the value
25
- * automatically set by the form field (for example, if you have two components within a single form field).
26
- *
27
- * To use it correctly, define an ID for each element that you want to use as a description
28
- * and set the property to a string of each ID separated by spaces (for example, `"id1 id2 id3"`).
29
- */
30
- ariaDescribedby?: string;
31
- }
32
- export interface FormFieldCommonValidationControlProps extends FormFieldControlProps {
33
- /**
34
- * Overrides the invalidation state. Usually the invalid state
35
- * comes from the parent `FormField`component,
36
- * however sometimes you need to override its
37
- * state when you have more than one input within a
38
- * single form field.
39
- */
40
- invalid?: boolean;
41
- }
42
- export interface FormFieldValidationControlProps extends FormFieldCommonValidationControlProps {
43
- /**
44
- * Overrides the warning state. Usually the warning state
45
- * comes from the parent `FormField`component,
46
- * however sometimes you need to override its
47
- * state when you have more than one input within a
48
- * single form field.
49
- * When you use it, provide additional context with
50
- * information on the input state, and associate it
51
- * with the input using `ariaDescribedby`.
52
- */
53
- warning?: boolean;
54
- }
1
+ import { FormFieldValidationControlProps } from '../../types/form-field';
55
2
  export declare const FormFieldContext: import("react").Context<FormFieldValidationControlProps>;
56
3
  export declare function useFormFieldContext(props: FormFieldValidationControlProps): FormFieldValidationControlProps;
4
+ export { FormFieldCommonValidationControlProps, FormFieldControlProps, FormFieldValidationControlProps, } from '../../types/form-field';
57
5
  //# sourceMappingURL=form-field-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,qCAAsC,SAAQ,qBAAqB;IAClF;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,+BAAgC,SAAQ,qCAAqC;IAC5F;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,0DAAqD,CAAC;AAUnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,+BAA+B,mCAGzE"}
1
+ {"version":3,"file":"form-field-context.d.ts","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAEzE,eAAO,MAAM,gBAAgB,0DAAqD,CAAC;AAUnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,+BAA+B,mCAGzE;AAGD,OAAO,EACL,qCAAqC,EACrC,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AA6DlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAkC,EAAE,CAAC,CAAC;AAEnF,SAAS,YAAY,CAAI,MAAS,EAAE,QAAW,EAAE,IAAiB;IAChE,MAAM,MAAM,GAAM,EAAE,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAsC;IACxE,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createContext, useContext } from 'react';\n\nexport interface FormFieldControlProps {\n /**\n * Specifies the ID of the native form element. You can use it to relate\n * a label element's `for` attribute to this control.\n *\n * It defaults to an automatically generated ID that\n * is provided by its parent form field component.\n */\n controlId?: string;\n\n /**\n * Adds `aria-labelledby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for the element you want to use as label and set the property to that ID.\n */\n ariaLabelledby?: string;\n\n /**\n * Adds `aria-describedby` to the component. If you're using this component within a form field,\n * don't set this property because the form field component automatically sets it.\n *\n * Use this property if the component isn't surrounded by a form field, or you want to override the value\n * automatically set by the form field (for example, if you have two components within a single form field).\n *\n * To use it correctly, define an ID for each element that you want to use as a description\n * and set the property to a string of each ID separated by spaces (for example, `\"id1 id2 id3\"`).\n */\n ariaDescribedby?: string;\n}\n\nexport interface FormFieldCommonValidationControlProps extends FormFieldControlProps {\n /**\n * Overrides the invalidation state. Usually the invalid state\n * comes from the parent `FormField`component,\n * however sometimes you need to override its\n * state when you have more than one input within a\n * single form field.\n */\n invalid?: boolean;\n}\n\nexport interface FormFieldValidationControlProps extends FormFieldCommonValidationControlProps {\n /**\n * Overrides the warning state. Usually the warning state\n * comes from the parent `FormField`component,\n * however sometimes you need to override its\n * state when you have more than one input within a\n * single form field.\n * When you use it, provide additional context with\n * information on the input state, and associate it\n * with the input using `ariaDescribedby`.\n */\n warning?: boolean;\n}\n\nexport const FormFieldContext = createContext<FormFieldValidationControlProps>({});\n\nfunction applyDefault<T>(fields: T, defaults: T, keys: (keyof T)[]) {\n const result = <T>{};\n keys.forEach(key => {\n result[key] = fields[key] === undefined ? defaults[key] : fields[key];\n });\n return result;\n}\n\nexport function useFormFieldContext(props: FormFieldValidationControlProps) {\n const context = useContext(FormFieldContext);\n return applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);\n}\n"]}
1
+ {"version":3,"file":"form-field-context.js","sourceRoot":"","sources":["../../../../src/internal/context/form-field-context.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAkC,EAAE,CAAC,CAAC;AAEnF,SAAS,YAAY,CAAI,MAAS,EAAE,QAAW,EAAE,IAAiB;IAChE,MAAM,MAAM,GAAM,EAAE,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAsC;IACxE,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAC7C,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createContext, useContext } from 'react';\n\nimport { FormFieldValidationControlProps } from '../../types/form-field';\n\nexport const FormFieldContext = createContext<FormFieldValidationControlProps>({});\n\nfunction applyDefault<T>(fields: T, defaults: T, keys: (keyof T)[]) {\n const result = <T>{};\n keys.forEach(key => {\n result[key] = fields[key] === undefined ? defaults[key] : fields[key];\n });\n return result;\n}\n\nexport function useFormFieldContext(props: FormFieldValidationControlProps) {\n const context = useContext(FormFieldContext);\n return applyDefault(props, context, ['invalid', 'warning', 'controlId', 'ariaLabelledby', 'ariaDescribedby']);\n}\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport {\n FormFieldCommonValidationControlProps,\n FormFieldControlProps,\n FormFieldValidationControlProps,\n} from '../../types/form-field';\n"]}
@@ -1,5 +1,5 @@
1
1
  import { PopoverProps } from '../../../popover/interfaces';
2
- import { NonCancelableEventHandler } from '../../events';
2
+ import { NonCancelableEventHandler } from '../../../types/events';
3
3
  export interface FeaturePromptProps {
4
4
  /**
5
5
  * Called when the feature prompt shows.
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;QAAE,MAAM,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAA;KAAE,CAAC,CAAC;IAErF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;IAEhD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,yBAAiB,kBAAkB,CAAC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;CAC5B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,aAAa,GAAG,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,CAAC;IACjF,KAAY,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;IAC7C,KAAY,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IACrC,UAAiB,WAAW;QAC1B;;;WAGG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;IACD,UAAiB,GAAG;QAClB;;WAEG;QACH,OAAO,IAAI,IAAI,CAAC;QAEhB;;WAEG;QACH,IAAI,IAAI,IAAI,CAAC;KACd;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { NonCancelableEventHandler } from '../../events';\n\nexport interface FeaturePromptProps {\n /**\n * Called when the feature prompt shows.\n */\n onShow?: NonCancelableEventHandler<null>;\n\n /**\n * Called when a user closes the prompt by using the close icon button,\n * clicking outside the prompt, shifting focus out of the prompt or pressing ESC.\n */\n onDismiss?: NonCancelableEventHandler<{ method?: FeaturePromptProps.DismissMethod }>;\n\n /**\n * Determines where the feature prompt is displayed when opened, relative to the trigger.\n * If the feature prompt doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: FeaturePromptProps.Position;\n\n /**\n * Determines the maximum width for the feature prompt.\n */\n size?: FeaturePromptProps.Size;\n\n /**\n * Specifies header content for the feature prompt.\n */\n header: React.ReactNode;\n\n /**\n * Content of the feature prompt.\n */\n content: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FeaturePromptProps.I18nStrings;\n\n /**\n * Function that returns the element to track for positioning the prompt.\n * Use this when you want to position the prompt relative to an external element.\n * Cannot be used together with the children prop.\n */\n getTrack: () => null | HTMLElement | SVGElement;\n\n /**\n * Unique identifier for the tracked element. Used for tracking position changes\n * when using getTrack.\n */\n trackKey?: string | number;\n}\n\nexport namespace FeaturePromptProps {\n export type DismissMethod = 'click-outside' | 'blur' | 'escape' | 'close-button';\n export type Position = PopoverProps.Position;\n export type Size = PopoverProps.Size;\n export interface I18nStrings {\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n }\n export interface Ref {\n /**\n * Use only if an element other than the trigger needs to be focused after dismissing the prompt.\n */\n dismiss(): void;\n\n /**\n * Shows the prompt and focuses its close button.\n */\n show(): void;\n }\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { NonCancelableEventHandler } from '../../../types/events';\n\nexport interface FeaturePromptProps {\n /**\n * Called when the feature prompt shows.\n */\n onShow?: NonCancelableEventHandler<null>;\n\n /**\n * Called when a user closes the prompt by using the close icon button,\n * clicking outside the prompt, shifting focus out of the prompt or pressing ESC.\n */\n onDismiss?: NonCancelableEventHandler<{ method?: FeaturePromptProps.DismissMethod }>;\n\n /**\n * Determines where the feature prompt is displayed when opened, relative to the trigger.\n * If the feature prompt doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: FeaturePromptProps.Position;\n\n /**\n * Determines the maximum width for the feature prompt.\n */\n size?: FeaturePromptProps.Size;\n\n /**\n * Specifies header content for the feature prompt.\n */\n header: React.ReactNode;\n\n /**\n * Content of the feature prompt.\n */\n content: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FeaturePromptProps.I18nStrings;\n\n /**\n * Function that returns the element to track for positioning the prompt.\n * Use this when you want to position the prompt relative to an external element.\n * Cannot be used together with the children prop.\n */\n getTrack: () => null | HTMLElement | SVGElement;\n\n /**\n * Unique identifier for the tracked element. Used for tracking position changes\n * when using getTrack.\n */\n trackKey?: string | number;\n}\n\nexport namespace FeaturePromptProps {\n export type DismissMethod = 'click-outside' | 'blur' | 'escape' | 'close-button';\n export type Position = PopoverProps.Position;\n export type Size = PopoverProps.Size;\n export interface I18nStrings {\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n }\n export interface Ref {\n /**\n * Use only if an element other than the trigger needs to be focused after dismissing the prompt.\n */\n dismiss(): void;\n\n /**\n * Shows the prompt and focuses its close button.\n */\n show(): void;\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
+ import { SomeRequired } from '../../../internal/types';
2
3
  import { InternalBaseComponentProps } from '../../hooks/use-base-component';
3
- import { SomeRequired } from '../../types';
4
4
  import { FeaturePromptProps } from './interfaces';
5
5
  interface InternalFeaturePromptProps extends SomeRequired<FeaturePromptProps, 'size' | 'position'>, InternalBaseComponentProps {
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAUhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3D,0BAA0B;CAAG;;AA6GjC,wBAAuD"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2D,MAAM,OAAO,CAAC;AAIhF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3D,0BAA0B;CAAG;;AA6GjC,wBAAuD"}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,SAAS,qBAAqB,CAC5B,EACE,MAAM,EACN,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,SAAS,EACe,EAC7B,GAAsC;IAEtC,MAAM,SAAS,GAAG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f,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;oBAChD,CAAC,EACD,MAAM,EAAE,KAAK,CAAC,EAAE;wBACd,IAAI,KAAK,CAAC,aAAa,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC;4BAC9E,OAAO,CAAC,KAAK,CAAC,CAAC;4BACf,sBAAsB,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;wBACxD,CAAC;oBACH,CAAC,EACD,OAAO,EAAC,gBAAgB,EACxB,eAAe,EAAC,SAAS,IAExB,OAAO,CACI,CACG,CACG,CACjB,CACV,CACI,CACR,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { Portal } from '@cloudscape-design/component-toolkit/internal';\n\nimport Arrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { getBaseProps } from '../../base-component';\nimport ResetContextsForModal from '../../context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { SomeRequired } from '../../types';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport { FeaturePromptProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalFeaturePromptProps\n extends SomeRequired<FeaturePromptProps, 'size' | 'position'>,\n InternalBaseComponentProps {}\n\nfunction InternalFeaturePrompt(\n {\n onShow,\n onDismiss,\n header,\n content,\n i18nStrings,\n size,\n position,\n getTrack,\n trackKey,\n __internalRootRef,\n ...restProps\n }: InternalFeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const [show, setShow] = useState(false);\n\n const popoverBodyRef = useRef<HTMLDivElement | null>(null);\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n },\n show: () => {\n setShow(true);\n fireNonCancelableEvent(onShow);\n },\n }));\n\n useEffect(() => {\n if (!show) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n if (!nodeBelongs(popoverBodyRef.current, target)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n // Listen for blur events on the window to detect clicks in iframes\n const blurListener = () => {\n if (document.activeElement?.tagName === 'IFRAME') {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n const controller = new AbortController();\n window.addEventListener('click', clickListener, { signal: controller.signal, capture: true });\n window.addEventListener('blur', blurListener, { signal: controller.signal, capture: true });\n\n return () => {\n controller.abort();\n };\n }, [show, onDismiss]);\n\n return (\n <span {...baseProps} className={styles.root} ref={__internalRootRef}>\n {show && (\n <Portal>\n <ResetContextsForModal>\n <PopoverContainer\n size={size}\n fixedWidth={false}\n position={position}\n getTrack={getTrack}\n trackKey={trackKey}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n ref={popoverBodyRef}\n dismissButton={true}\n dismissAriaLabel={i18nStrings?.dismissAriaLabel}\n header={header}\n onDismiss={method => {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method });\n }}\n onBlur={event => {\n if (event.relatedTarget && !event.currentTarget.contains(event.relatedTarget)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'blur' });\n }\n }}\n variant=\"feature-prompt\"\n overflowVisible=\"content\"\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n </ResetContextsForModal>\n </Portal>\n )}\n </span>\n );\n}\n\nexport default React.forwardRef(InternalFeaturePrompt);\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAGvE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,SAAS,qBAAqB,CAC5B,EACE,MAAM,EACN,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,GAAG,SAAS,EACe,EAC7B,GAAsC;IAEtC,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,cAAc,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAE3D,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,OAAO,EAAE,GAAG,EAAE;YACZ,OAAO,CAAC,KAAK,CAAC,CAAC;YACf,sBAAsB,C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AAE,MAAM,EAAE,CAAC,CAAC;wBACxD,CAAC;oBACH,CAAC,EACD,OAAO,EAAC,gBAAgB,EACxB,eAAe,EAAC,SAAS,IAExB,OAAO,CACI,CACG,CACG,CACjB,CACV,CACI,CACR,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { Portal } from '@cloudscape-design/component-toolkit/internal';\n\nimport { SomeRequired } from '../../../internal/types';\nimport Arrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { getBaseProps } from '../../base-component';\nimport ResetContextsForModal from '../../context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { nodeBelongs } from '../../utils/node-belongs';\nimport { FeaturePromptProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalFeaturePromptProps\n extends SomeRequired<FeaturePromptProps, 'size' | 'position'>,\n InternalBaseComponentProps {}\n\nfunction InternalFeaturePrompt(\n {\n onShow,\n onDismiss,\n header,\n content,\n i18nStrings,\n size,\n position,\n getTrack,\n trackKey,\n __internalRootRef,\n ...restProps\n }: InternalFeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const [show, setShow] = useState(false);\n\n const popoverBodyRef = useRef<HTMLDivElement | null>(null);\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n },\n show: () => {\n setShow(true);\n fireNonCancelableEvent(onShow);\n },\n }));\n\n useEffect(() => {\n if (!show) {\n return;\n }\n const clickListener = (event: MouseEvent) => {\n // Since the listener is registered on the window, `event.target` will incorrectly point at the\n // shadow root if the component is rendered inside shadow DOM.\n const target = event.composedPath ? event.composedPath()[0] : event.target;\n if (!nodeBelongs(popoverBodyRef.current, target)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n // Listen for blur events on the window to detect clicks in iframes\n const blurListener = () => {\n if (document.activeElement?.tagName === 'IFRAME') {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'click-outside' });\n }\n };\n\n const controller = new AbortController();\n window.addEventListener('click', clickListener, { signal: controller.signal, capture: true });\n window.addEventListener('blur', blurListener, { signal: controller.signal, capture: true });\n\n return () => {\n controller.abort();\n };\n }, [show, onDismiss]);\n\n return (\n <span {...baseProps} className={styles.root} ref={__internalRootRef}>\n {show && (\n <Portal>\n <ResetContextsForModal>\n <PopoverContainer\n size={size}\n fixedWidth={false}\n position={position}\n getTrack={getTrack}\n trackKey={trackKey}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n ref={popoverBodyRef}\n dismissButton={true}\n dismissAriaLabel={i18nStrings?.dismissAriaLabel}\n header={header}\n onDismiss={method => {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method });\n }}\n onBlur={event => {\n if (event.relatedTarget && !event.currentTarget.contains(event.relatedTarget)) {\n setShow(false);\n fireNonCancelableEvent(onDismiss, { method: 'blur' });\n }\n }}\n variant=\"feature-prompt\"\n overflowVisible=\"content\"\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n </ResetContextsForModal>\n </Portal>\n )}\n </span>\n );\n}\n\nexport default React.forwardRef(InternalFeaturePrompt);\n"]}
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (b33ca59d)";
3
- export var GIT_SHA = "b33ca59d";
2
+ export var PACKAGE_VERSION = "3.0.0 (bf4d1c4a)";
3
+ export var GIT_SHA = "bf4d1c4a";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "core";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (b33ca59d)",
4
- "GIT_SHA": "b33ca59d",
3
+ "PACKAGE_VERSION": "3.0.0 (bf4d1c4a)",
4
+ "GIT_SHA": "bf4d1c4a",
5
5
  "THEME": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false,
@@ -1,28 +1,6 @@
1
1
  import React from 'react';
2
- export type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;
3
- export type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;
4
- export type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;
5
- export interface BaseKeyDetail {
6
- keyCode: number;
7
- key: string;
8
- ctrlKey: boolean;
9
- shiftKey: boolean;
10
- altKey: boolean;
11
- metaKey: boolean;
12
- isComposing: boolean;
13
- }
14
- export interface ClickDetail {
15
- button: number;
16
- ctrlKey: boolean;
17
- shiftKey: boolean;
18
- altKey: boolean;
19
- metaKey: boolean;
20
- }
21
- export interface BaseNavigationDetail {
22
- href: string | undefined;
23
- external?: boolean;
24
- target?: string;
25
- }
2
+ import { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../../types/events';
3
+ export { BaseKeyDetail, BaseNavigationDetail, CancelableEventHandler, ClickDetail, NonCancelableCustomEvent, NonCancelableEventHandler, } from '../../types/events';
26
4
  export declare function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T>;
27
5
  export declare function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T): void;
28
6
  export declare function fireCancelableEvent<T>(handler: CancelableEventHandler<T> | undefined, detail: T, sourceEvent?: React.SyntheticEvent | Event): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":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,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\n// This is a part of our public types API. We cannot change this in the current major version\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport type CancelableEventHandler<Detail = {}> = (event: CustomEvent<Detail>) => void;\n\nexport type NonCancelableCustomEvent<DetailType> = Omit<CustomEvent<DetailType>, 'preventDefault'>;\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(\n public cancelable: boolean = false,\n public detail: T | null = null\n ) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport interface BaseKeyDetail {\n keyCode: number;\n key: string;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n isComposing: boolean;\n}\n\nexport interface ClickDetail {\n button: number;\n ctrlKey: boolean;\n shiftKey: boolean;\n altKey: boolean;\n metaKey: boolean;\n}\n\nexport interface BaseNavigationDetail {\n href: string | undefined;\n external?: boolean;\n target?: string;\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(\n handler: CancelableEventHandler<BaseKeyDetail> | undefined,\n reactEvent: React.KeyboardEvent\n) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n isComposing: reactEvent.nativeEvent.isComposing,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent) {\n return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;\n}\n\nexport function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent) {\n return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAgBA,MAAM,eAAe;IAGnB,YACS,aAAsB,KAAK,EAC3B,SAAmB,IAAI;QADvB,eAAU,GAAV,UAAU,CAAiB;QAC3B,WAAM,GAAN,MAAM,CAAiB;QAJhC,qBAAgB,GAAG,KAAK,CAAC;QACzB,iBAAY,GAAG,KAAK,CAAC;IAIlB,CAAC;IAEJ,cAAc;QACZ,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAC/B,CAAC;IAED,eAAe;QACb,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,UAAU,iBAAiB,CAAI,EAAE,UAAU,EAAE,MAAM,EAAsB;IAC7E,OAAO,IAAI,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,MAAM,YAAY,GAAG,CAAC,CAAyC,EAAyB,EAAE;IACxF,OAAQ,CAAsB,CAAC,MAAM,KAAK,SAAS,CAAC;AACtD,CAAC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,KAA6C;IAC3E,OAAO,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAA6C;IAC5E,OAAO,KAAK,IAAI,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;AAC1F,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 { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../../types/events';\n\n// Backward-compatibility re-export for consumers importing this public type from the internal path.\nexport {\n BaseKeyDetail,\n BaseNavigationDetail,\n CancelableEventHandler,\n ClickDetail,\n NonCancelableCustomEvent,\n NonCancelableEventHandler,\n} from '../../types/events';\n\nclass CustomEventStub<T> {\n defaultPrevented = false;\n cancelBubble = false;\n constructor(\n public cancelable: boolean = false,\n public detail: T | null = null\n ) {}\n\n preventDefault() {\n this.defaultPrevented = true;\n }\n\n stopPropagation() {\n this.cancelBubble = true;\n }\n}\n\nexport function createCustomEvent<T>({ cancelable, detail }: CustomEventInit<T>): CustomEvent<T> {\n return new CustomEventStub(cancelable, detail) as CustomEvent;\n}\n\nexport function fireNonCancelableEvent<T = null>(handler: NonCancelableEventHandler<T> | undefined, detail?: T) {\n if (!handler) {\n return;\n }\n const event = createCustomEvent({ cancelable: false, detail });\n handler(event);\n}\n\nexport function fireCancelableEvent<T>(\n handler: CancelableEventHandler<T> | undefined,\n detail: T,\n sourceEvent?: React.SyntheticEvent | Event\n) {\n if (!handler) {\n return false;\n }\n const event = createCustomEvent({ cancelable: true, detail });\n handler(event);\n if (event.defaultPrevented && sourceEvent) {\n sourceEvent.preventDefault();\n }\n if (event.cancelBubble && sourceEvent) {\n sourceEvent.stopPropagation();\n }\n return event.defaultPrevented;\n}\n\nexport function fireKeyboardEvent(\n handler: CancelableEventHandler<BaseKeyDetail> | undefined,\n reactEvent: React.KeyboardEvent\n) {\n return fireCancelableEvent(\n handler,\n {\n keyCode: reactEvent.keyCode,\n key: reactEvent.key,\n ctrlKey: reactEvent.ctrlKey,\n shiftKey: reactEvent.shiftKey,\n altKey: reactEvent.altKey,\n metaKey: reactEvent.metaKey,\n isComposing: reactEvent.nativeEvent.isComposing,\n },\n reactEvent\n );\n}\n\nconst isMouseEvent = (e: React.MouseEvent | React.KeyboardEvent): e is React.MouseEvent => {\n return (e as React.MouseEvent).button !== undefined;\n};\n\nexport function hasModifierKeys(event: React.MouseEvent | React.KeyboardEvent) {\n return event.ctrlKey || event.altKey || event.shiftKey || event.metaKey;\n}\n\nexport function isPlainLeftClick(event: React.MouseEvent | React.KeyboardEvent) {\n return event && (!isMouseEvent(event) || event.button === 0) && !hasModifierKeys(event);\n}\n"]}
@@ -14085,6 +14085,9 @@ module.exports.preset = {
14085
14085
  "colorTextDropdownItemHighlighted",
14086
14086
  "colorTextDropdownItemSecondary",
14087
14087
  "colorTextEmpty",
14088
+ "colorTextExpandableSectionDefault",
14089
+ "colorTextExpandableSectionHover",
14090
+ "colorTextExpandableSectionNavigationIconDefault",
14088
14091
  "colorBorderExpandableSectionDefault",
14089
14092
  "colorTextFormDefault",
14090
14093
  "colorTextFormLabel",
@@ -14598,6 +14601,9 @@ module.exports.preset = {
14598
14601
  "colorTextDropdownItemHighlighted",
14599
14602
  "colorTextDropdownItemSecondary",
14600
14603
  "colorTextEmpty",
14604
+ "colorTextExpandableSectionDefault",
14605
+ "colorTextExpandableSectionHover",
14606
+ "colorTextExpandableSectionNavigationIconDefault",
14601
14607
  "colorTextFormDefault",
14602
14608
  "colorTextFormSecondary",
14603
14609
  "colorTextGroupLabel",
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
236
236
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
237
237
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
238
238
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
242
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
243
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
244
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
663
666
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
664
667
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
665
668
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
669
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
670
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
671
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
666
672
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
667
673
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
668
674
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
1090
1096
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1091
1097
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1092
1098
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1099
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1100
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1101
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1093
1102
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1094
1103
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1095
1104
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
1517
1526
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1518
1527
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1519
1528
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1529
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1530
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1531
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
1532
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
1533
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1522
1534
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
1944
1956
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1945
1957
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1946
1958
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1959
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1960
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1961
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1947
1962
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1948
1963
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1949
1964
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
2371
2386
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2372
2387
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2373
2388
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2389
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2390
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2391
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2374
2392
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2375
2393
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2376
2394
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
2798
2816
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2799
2817
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2800
2818
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2819
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2820
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2821
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2801
2822
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2802
2823
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2803
2824
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
3225
3246
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3226
3247
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3227
3248
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3249
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3250
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3251
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3228
3252
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3229
3253
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3230
3254
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
3652
3676
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3653
3677
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3654
3678
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3679
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3680
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3681
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3655
3682
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3656
3683
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3657
3684
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -236,6 +236,9 @@ export declare interface TypedOverride {
236
236
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
237
237
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
238
238
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
239
242
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
240
243
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
241
244
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -663,6 +666,9 @@ export declare interface TypedOverride {
663
666
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
664
667
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
665
668
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
669
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
670
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
671
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
666
672
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
667
673
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
668
674
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1090,6 +1096,9 @@ export declare interface TypedOverride {
1090
1096
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1091
1097
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1092
1098
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1099
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1100
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1101
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1093
1102
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1094
1103
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1095
1104
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1517,6 +1526,9 @@ export declare interface TypedOverride {
1517
1526
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1518
1527
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1519
1528
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1529
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1530
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1531
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1520
1532
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1521
1533
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1522
1534
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -1944,6 +1956,9 @@ export declare interface TypedOverride {
1944
1956
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1945
1957
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1946
1958
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1959
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1960
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1961
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1947
1962
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1948
1963
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
1949
1964
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2371,6 +2386,9 @@ export declare interface TypedOverride {
2371
2386
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2372
2387
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2373
2388
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2389
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2390
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2391
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2374
2392
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2375
2393
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2376
2394
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -2798,6 +2816,9 @@ export declare interface TypedOverride {
2798
2816
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2799
2817
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2800
2818
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2819
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2820
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2821
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2801
2822
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2802
2823
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
2803
2824
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3225,6 +3246,9 @@ export declare interface TypedOverride {
3225
3246
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3226
3247
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3227
3248
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3249
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3250
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3251
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3228
3252
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3229
3253
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3230
3254
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -3652,6 +3676,9 @@ export declare interface TypedOverride {
3652
3676
  colorTextDropdownItemHighlighted?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3653
3677
  colorTextDropdownItemSecondary?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3654
3678
  colorTextEmpty?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3679
+ colorTextExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3680
+ colorTextExpandableSectionHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3681
+ colorTextExpandableSectionNavigationIconDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3655
3682
  colorBorderExpandableSectionDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3656
3683
  colorTextFormDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
3657
3684
  colorTextFormLabel?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
@@ -14085,6 +14085,9 @@ export var preset = {
14085
14085
  "colorTextDropdownItemHighlighted",
14086
14086
  "colorTextDropdownItemSecondary",
14087
14087
  "colorTextEmpty",
14088
+ "colorTextExpandableSectionDefault",
14089
+ "colorTextExpandableSectionHover",
14090
+ "colorTextExpandableSectionNavigationIconDefault",
14088
14091
  "colorBorderExpandableSectionDefault",
14089
14092
  "colorTextFormDefault",
14090
14093
  "colorTextFormLabel",
@@ -14598,6 +14601,9 @@ export var preset = {
14598
14601
  "colorTextDropdownItemHighlighted",
14599
14602
  "colorTextDropdownItemSecondary",
14600
14603
  "colorTextEmpty",
14604
+ "colorTextExpandableSectionDefault",
14605
+ "colorTextExpandableSectionHover",
14606
+ "colorTextExpandableSectionNavigationIconDefault",
14601
14607
  "colorTextFormDefault",
14602
14608
  "colorTextFormSecondary",
14603
14609
  "colorTextGroupLabel",
@@ -1,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,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,sBAAsB,EAIvB,MAAM,+CAA+C,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAM7D,MAAM,WAAW,0BAA0B;IAKzC,iBAAiB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,iBAAiB,CAAC,EAAE,iBAAiB;;EAatC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../../analytics/interfaces';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { getVisualTheme } from '../../utils/get-visual-theme';\nimport { useVisualRefresh } from '../use-visual-mode';\nimport { useMissingStylesCheck } from './styles-check';\n\nexport interface InternalBaseComponentProps {\n // Typescript requires Ref type to be exact DOM element type it is assigned to, e.g. HTMLDivElement\n // Typical community practice is explicit type casting: https://stackoverflow.com/questions/61102101/cannot-assign-refobjecthtmldivelement-to-refobjecthtmlelement-instance\n // To avoid doing this, we use any to skip type checks. Treat this type as pass through, never\n // read `__internalRootRef.current`, use your own refs if you need\n __internalRootRef?: React.Ref<any>;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent(\n componentName: string,\n config?: ComponentConfiguration,\n analyticsMetadata?: AnalyticsMetadata\n) {\n const isVisualRefresh = useVisualRefresh();\n const theme = getVisualTheme(THEME, isVisualRefresh);\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n const elementRef = useComponentMetadata(\n componentName,\n { packageName: PACKAGE_SOURCE, version: PACKAGE_VERSION, theme },\n analyticsMetadata as any\n );\n useMissingStylesCheck(elementRef);\n useFocusVisible(elementRef);\n return { __internalRootRef: elementRef };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-base-component/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,aAAqB,EACrB,MAA+B,EAC/B,iBAAqC;IAErC,MAAM,eAAe,GAAG,gBAAgB,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;IACrD,mBAAmB,CAAC,aAAa,EAAE,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,CAAC;IACtH,MAAM,UAAU,GAAG,oBAAoB,CACrC,aAAa,EACb,EAAE,WAAW,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,EAChE,iBAAwB,CACzB,CAAC;IACF,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport {\n ComponentConfiguration,\n useComponentMetadata,\n useComponentMetrics,\n useFocusVisible,\n} from '@cloudscape-design/component-toolkit/internal';\n\nimport { AnalyticsMetadata } from '../../../types/analytics';\nimport { PACKAGE_SOURCE, PACKAGE_VERSION, THEME } from '../../environment';\nimport { getVisualTheme } from '../../utils/get-visual-theme';\nimport { useVisualRefresh } from '../use-visual-mode';\nimport { useMissingStylesCheck } from './styles-check';\n\nexport interface InternalBaseComponentProps {\n // Typescript requires Ref type to be exact DOM element type it is assigned to, e.g. HTMLDivElement\n // Typical community practice is explicit type casting: https://stackoverflow.com/questions/61102101/cannot-assign-refobjecthtmldivelement-to-refobjecthtmlelement-instance\n // To avoid doing this, we use any to skip type checks. Treat this type as pass through, never\n // read `__internalRootRef.current`, use your own refs if you need\n __internalRootRef?: React.Ref<any>;\n}\n\n/**\n * This hook is used for components which are exported to customers. The returned __internalRootRef needs to be\n * attached to the (internal) component's root DOM node. The hook takes care of attaching the metadata to this\n * root DOM node and emits the telemetry for this component.\n */\nexport default function useBaseComponent(\n componentName: string,\n config?: ComponentConfiguration,\n analyticsMetadata?: AnalyticsMetadata\n) {\n const isVisualRefresh = useVisualRefresh();\n const theme = getVisualTheme(THEME, isVisualRefresh);\n useComponentMetrics(componentName, { packageSource: PACKAGE_SOURCE, packageVersion: PACKAGE_VERSION, theme }, config);\n const elementRef = useComponentMetadata(\n componentName,\n { packageName: PACKAGE_SOURCE, version: PACKAGE_VERSION, theme },\n analyticsMetadata as any\n );\n useMissingStylesCheck(elementRef);\n useFocusVisible(elementRef);\n return { __internalRootRef: elementRef };\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { NonCancelableEventHandler } from '../events';
2
+ import { NonCancelableEventHandler } from '../../types/events';
3
3
  interface UseFocusTracker {
4
4
  (inputProps: {
5
5
  onBlur?: NonCancelableEventHandler<any>;