@cloudscape-design/components 3.0.135 → 3.0.137

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 (310) hide show
  1. package/alert/internal.d.ts +1 -1
  2. package/alert/internal.d.ts.map +1 -1
  3. package/app-layout/visual-refresh/styles.css.js +60 -60
  4. package/app-layout/visual-refresh/styles.scoped.css +148 -148
  5. package/app-layout/visual-refresh/styles.selectors.js +60 -60
  6. package/area-chart/chart-container.d.ts.map +1 -1
  7. package/area-chart/chart-container.js +2 -1
  8. package/area-chart/chart-container.js.map +1 -1
  9. package/area-chart/internal.d.ts +1 -1
  10. package/area-chart/internal.d.ts.map +1 -1
  11. package/area-chart/model/async-store.d.ts +2 -2
  12. package/area-chart/model/async-store.d.ts.map +1 -1
  13. package/area-chart/model/interactions-store.d.ts.map +1 -1
  14. package/area-chart/model/interactions-store.js +1 -1
  15. package/area-chart/model/interactions-store.js.map +1 -1
  16. package/area-chart/model/use-chart-model.d.ts +1 -2
  17. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  18. package/area-chart/model/use-chart-model.js +46 -10
  19. package/area-chart/model/use-chart-model.js.map +1 -1
  20. package/area-chart/model/use-filter-props.d.ts +1 -1
  21. package/area-chart/model/use-filter-props.d.ts.map +1 -1
  22. package/area-chart/model/use-highlight-props.d.ts +1 -1
  23. package/area-chart/model/use-highlight-props.d.ts.map +1 -1
  24. package/attribute-editor/internal.js.map +1 -1
  25. package/autosuggest/interfaces.d.ts +1 -1
  26. package/autosuggest/interfaces.d.ts.map +1 -1
  27. package/autosuggest/options-controller.d.ts +1 -1
  28. package/autosuggest/options-controller.d.ts.map +1 -1
  29. package/autosuggest/plain-list.d.ts +1 -1
  30. package/autosuggest/plain-list.d.ts.map +1 -1
  31. package/bar-chart/interfaces.d.ts +1 -1
  32. package/bar-chart/interfaces.d.ts.map +1 -1
  33. package/box/internal.d.ts +1 -1
  34. package/box/internal.d.ts.map +1 -1
  35. package/breadcrumb-group/internal.d.ts +1 -1
  36. package/breadcrumb-group/internal.d.ts.map +1 -1
  37. package/button-dropdown/interfaces.d.ts +2 -2
  38. package/button-dropdown/interfaces.d.ts.map +1 -1
  39. package/button-dropdown/utils/create-items-tree.d.ts +1 -1
  40. package/button-dropdown/utils/create-items-tree.d.ts.map +1 -1
  41. package/calendar/internal.d.ts +1 -1
  42. package/calendar/internal.d.ts.map +1 -1
  43. package/code-editor/interfaces.d.ts +2 -2
  44. package/code-editor/interfaces.d.ts.map +1 -1
  45. package/code-editor/util.d.ts +1 -1
  46. package/code-editor/util.d.ts.map +1 -1
  47. package/collection-preferences/index.d.ts +1 -1
  48. package/collection-preferences/index.d.ts.map +1 -1
  49. package/collection-preferences/index.js +10 -5
  50. package/collection-preferences/index.js.map +1 -1
  51. package/collection-preferences/interfaces.d.ts +17 -0
  52. package/collection-preferences/interfaces.d.ts.map +1 -1
  53. package/collection-preferences/interfaces.js.map +1 -1
  54. package/collection-preferences/styles.css.js +20 -19
  55. package/collection-preferences/styles.scoped.css +21 -20
  56. package/collection-preferences/styles.selectors.js +20 -19
  57. package/collection-preferences/utils.d.ts +6 -1
  58. package/collection-preferences/utils.d.ts.map +1 -1
  59. package/collection-preferences/utils.js +10 -1
  60. package/collection-preferences/utils.js.map +1 -1
  61. package/column-layout/internal.d.ts +2 -2
  62. package/column-layout/internal.d.ts.map +1 -1
  63. package/container/use-sticky-header.d.ts +1 -1
  64. package/container/use-sticky-header.d.ts.map +1 -1
  65. package/date-range-picker/calendar/range-inputs.d.ts +1 -1
  66. package/date-range-picker/calendar/range-inputs.d.ts.map +1 -1
  67. package/date-range-picker/interfaces.d.ts +2 -2
  68. package/date-range-picker/interfaces.d.ts.map +1 -1
  69. package/expandable-section/internal.d.ts +1 -1
  70. package/expandable-section/internal.d.ts.map +1 -1
  71. package/form/internal.d.ts +1 -1
  72. package/form/internal.d.ts.map +1 -1
  73. package/icon/internal.d.ts +1 -1
  74. package/icon/internal.d.ts.map +1 -1
  75. package/input/index.js.map +1 -1
  76. package/internal/base-component/styles.scoped.css +4 -0
  77. package/internal/breakpoints.d.ts +1 -1
  78. package/internal/breakpoints.d.ts.map +1 -1
  79. package/internal/components/autosuggest-input/index.js.map +1 -1
  80. package/internal/components/cartesian-chart/bottom-labels.d.ts.map +1 -1
  81. package/internal/components/cartesian-chart/bottom-labels.js +1 -1
  82. package/internal/components/cartesian-chart/bottom-labels.js.map +1 -1
  83. package/internal/components/cartesian-chart/interfaces.d.ts +8 -8
  84. package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
  85. package/internal/components/cartesian-chart/scales.d.ts +2 -2
  86. package/internal/components/cartesian-chart/scales.d.ts.map +1 -1
  87. package/internal/components/chart-plot/application-controller.js +1 -1
  88. package/internal/components/chart-plot/application-controller.js.map +1 -1
  89. package/internal/components/chart-plot/focus-outline.d.ts +2 -1
  90. package/internal/components/chart-plot/focus-outline.d.ts.map +1 -1
  91. package/internal/components/chart-plot/focus-outline.js +6 -4
  92. package/internal/components/chart-plot/focus-outline.js.map +1 -1
  93. package/internal/components/chart-plot/index.d.ts +3 -2
  94. package/internal/components/chart-plot/index.d.ts.map +1 -1
  95. package/internal/components/chart-plot/index.js.map +1 -1
  96. package/internal/components/chart-plot/interfaces.d.ts +5 -0
  97. package/internal/components/chart-plot/interfaces.d.ts.map +1 -0
  98. package/internal/components/chart-plot/interfaces.js +2 -0
  99. package/internal/components/chart-plot/interfaces.js.map +1 -0
  100. package/internal/components/chart-series-marker/index.d.ts +1 -1
  101. package/internal/components/chart-series-marker/index.d.ts.map +1 -1
  102. package/internal/components/dropdown/context.d.ts +1 -1
  103. package/internal/components/dropdown/context.d.ts.map +1 -1
  104. package/internal/components/dropdown/dropdown-fit-handler.d.ts +5 -5
  105. package/internal/components/dropdown/dropdown-fit-handler.d.ts.map +1 -1
  106. package/internal/components/dropdown/interfaces.d.ts +1 -1
  107. package/internal/components/dropdown/interfaces.d.ts.map +1 -1
  108. package/internal/components/dropdown-status/index.d.ts +1 -1
  109. package/internal/components/dropdown-status/index.d.ts.map +1 -1
  110. package/internal/components/interfaces.d.ts +5 -0
  111. package/internal/components/interfaces.d.ts.map +1 -0
  112. package/internal/components/interfaces.js +2 -0
  113. package/internal/components/interfaces.js.map +1 -0
  114. package/internal/components/live-region/index.d.ts +1 -1
  115. package/internal/components/live-region/index.d.ts.map +1 -1
  116. package/internal/components/option/utils/filter-options.d.ts +3 -3
  117. package/internal/components/option/utils/filter-options.d.ts.map +1 -1
  118. package/internal/components/options-list/utils/use-highlight-option.d.ts +1 -1
  119. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  120. package/internal/components/selectable-item/index.d.ts +1 -1
  121. package/internal/components/selectable-item/index.d.ts.map +1 -1
  122. package/internal/components/transition/index.d.ts +1 -1
  123. package/internal/components/transition/index.d.ts.map +1 -1
  124. package/internal/context/split-panel-context.d.ts +1 -1
  125. package/internal/context/split-panel-context.d.ts.map +1 -1
  126. package/internal/environment.js +1 -1
  127. package/internal/events/index.d.ts +3 -3
  128. package/internal/events/index.d.ts.map +1 -1
  129. package/internal/generated/theming/index.cjs +26 -0
  130. package/internal/generated/theming/index.js +26 -0
  131. package/internal/hooks/container-queries/use-resize-observer.d.ts +1 -1
  132. package/internal/hooks/container-queries/use-resize-observer.d.ts.map +1 -1
  133. package/internal/hooks/forward-focus/index.js.map +1 -1
  134. package/internal/hooks/use-singleton-handler/index.d.ts +3 -3
  135. package/internal/hooks/use-singleton-handler/index.d.ts.map +1 -1
  136. package/internal/manifest.json +1 -1
  137. package/internal/metrics.d.ts +2 -2
  138. package/internal/metrics.d.ts.map +1 -1
  139. package/internal/metrics.js.map +1 -1
  140. package/internal/types.d.ts +1 -1
  141. package/internal/types.d.ts.map +1 -1
  142. package/internal/utils/locale/normalize-start-of-week.d.ts +1 -1
  143. package/internal/utils/locale/normalize-start-of-week.d.ts.map +1 -1
  144. package/internal/utils/scrollable-containers.d.ts +1 -1
  145. package/internal/utils/scrollable-containers.d.ts.map +1 -1
  146. package/internal/vendor/d3-scale.js +185 -186
  147. package/line-chart/interfaces.d.ts +1 -1
  148. package/line-chart/interfaces.d.ts.map +1 -1
  149. package/mixed-line-bar-chart/chart-container.d.ts +1 -2
  150. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  151. package/mixed-line-bar-chart/chart-container.js +55 -41
  152. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  153. package/mixed-line-bar-chart/domain.js +4 -4
  154. package/mixed-line-bar-chart/domain.js.map +1 -1
  155. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts +3 -4
  156. package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
  157. package/mixed-line-bar-chart/hooks/use-mouse-hover.js +22 -18
  158. package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
  159. package/mixed-line-bar-chart/hooks/use-navigation.d.ts +7 -4
  160. package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
  161. package/mixed-line-bar-chart/hooks/use-navigation.js +61 -31
  162. package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
  163. package/mixed-line-bar-chart/interfaces.d.ts +8 -4
  164. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  165. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  166. package/mixed-line-bar-chart/internal.d.ts +1 -1
  167. package/mixed-line-bar-chart/internal.d.ts.map +1 -1
  168. package/mixed-line-bar-chart/internal.js +1 -1
  169. package/mixed-line-bar-chart/internal.js.map +1 -1
  170. package/mixed-line-bar-chart/utils.d.ts +1 -1
  171. package/mixed-line-bar-chart/utils.d.ts.map +1 -1
  172. package/modal/internal.d.ts +1 -1
  173. package/modal/internal.d.ts.map +1 -1
  174. package/package.json +1 -1
  175. package/pagination/internal.d.ts +1 -1
  176. package/pagination/internal.d.ts.map +1 -1
  177. package/popover/interfaces.d.ts +2 -2
  178. package/popover/interfaces.d.ts.map +1 -1
  179. package/property-filter/interfaces.d.ts +16 -16
  180. package/property-filter/interfaces.d.ts.map +1 -1
  181. package/property-filter/use-load-items.d.ts +2 -1
  182. package/property-filter/use-load-items.d.ts.map +1 -1
  183. package/s3-resource-selector/interfaces.d.ts +1 -1
  184. package/s3-resource-selector/interfaces.d.ts.map +1 -1
  185. package/segmented-control/internal.d.ts +1 -1
  186. package/segmented-control/internal.d.ts.map +1 -1
  187. package/select/utils/use-select.d.ts +3 -3
  188. package/select/utils/use-select.d.ts.map +1 -1
  189. package/select/utils/use-select.js +4 -3
  190. package/select/utils/use-select.js.map +1 -1
  191. package/side-navigation/util.d.ts +1 -1
  192. package/side-navigation/util.d.ts.map +1 -1
  193. package/space-between/internal.d.ts +1 -1
  194. package/space-between/internal.d.ts.map +1 -1
  195. package/table/body-cell/index.d.ts +3 -1
  196. package/table/body-cell/index.d.ts.map +1 -1
  197. package/table/body-cell/index.js +2 -2
  198. package/table/body-cell/index.js.map +1 -1
  199. package/table/body-cell/styles.css.js +8 -7
  200. package/table/body-cell/styles.scoped.css +21 -18
  201. package/table/body-cell/styles.selectors.js +8 -7
  202. package/table/header-cell/utils.d.ts +1 -1
  203. package/table/header-cell/utils.d.ts.map +1 -1
  204. package/table/interfaces.d.ts +4 -0
  205. package/table/interfaces.d.ts.map +1 -1
  206. package/table/interfaces.js.map +1 -1
  207. package/table/internal.d.ts.map +1 -1
  208. package/table/internal.js +4 -3
  209. package/table/internal.js.map +1 -1
  210. package/table/use-sticky-header.d.ts.map +1 -1
  211. package/table/use-sticky-header.js +4 -1
  212. package/table/use-sticky-header.js.map +1 -1
  213. package/tag-editor/validation.d.ts +1 -1
  214. package/tag-editor/validation.d.ts.map +1 -1
  215. package/test-utils/dom/collection-preferences/index.d.ts +1 -0
  216. package/test-utils/dom/collection-preferences/index.js +3 -0
  217. package/test-utils/dom/collection-preferences/index.js.map +1 -1
  218. package/test-utils/selectors/alert/index.js.map +1 -1
  219. package/test-utils/selectors/annotation/index.js.map +1 -1
  220. package/test-utils/selectors/app-layout/index.js.map +1 -1
  221. package/test-utils/selectors/area-chart/index.js.map +1 -1
  222. package/test-utils/selectors/attribute-editor/index.js.map +1 -1
  223. package/test-utils/selectors/autosuggest/index.js.map +1 -1
  224. package/test-utils/selectors/breadcrumb-group/index.js.map +1 -1
  225. package/test-utils/selectors/button/index.js.map +1 -1
  226. package/test-utils/selectors/button-dropdown/index.js.map +1 -1
  227. package/test-utils/selectors/calendar/index.js.map +1 -1
  228. package/test-utils/selectors/cards/index.js.map +1 -1
  229. package/test-utils/selectors/checkbox/index.js.map +1 -1
  230. package/test-utils/selectors/code-editor/index.js.map +1 -1
  231. package/test-utils/selectors/collection-preferences/index.d.ts +1 -0
  232. package/test-utils/selectors/collection-preferences/index.js +3 -0
  233. package/test-utils/selectors/collection-preferences/index.js.map +1 -1
  234. package/test-utils/selectors/collection-preferences/page-size-preference.js.map +1 -1
  235. package/test-utils/selectors/collection-preferences/visible-content-preference.js.map +1 -1
  236. package/test-utils/selectors/container/index.js.map +1 -1
  237. package/test-utils/selectors/content-layout/index.js.map +1 -1
  238. package/test-utils/selectors/date-picker/index.js +2 -2
  239. package/test-utils/selectors/date-picker/index.js.map +1 -1
  240. package/test-utils/selectors/date-range-picker/index.js +6 -3
  241. package/test-utils/selectors/date-range-picker/index.js.map +1 -1
  242. package/test-utils/selectors/expandable-section/index.js.map +1 -1
  243. package/test-utils/selectors/flashbar/flash.js.map +1 -1
  244. package/test-utils/selectors/flashbar/index.js.map +1 -1
  245. package/test-utils/selectors/form/index.js.map +1 -1
  246. package/test-utils/selectors/form-field/index.js.map +1 -1
  247. package/test-utils/selectors/grid/index.js.map +1 -1
  248. package/test-utils/selectors/header/index.js.map +1 -1
  249. package/test-utils/selectors/help-panel/index.js.map +1 -1
  250. package/test-utils/selectors/hotspot/index.js.map +1 -1
  251. package/test-utils/selectors/input/base-input.js.map +1 -1
  252. package/test-utils/selectors/input/index.js.map +1 -1
  253. package/test-utils/selectors/internal/abstract-switch.js.map +1 -1
  254. package/test-utils/selectors/internal/autosuggest-input.js.map +1 -1
  255. package/test-utils/selectors/internal/chart-filter.js.map +1 -1
  256. package/test-utils/selectors/internal/chart-legend.js.map +1 -1
  257. package/test-utils/selectors/internal/chart-popover.js.map +1 -1
  258. package/test-utils/selectors/internal/charts.js.map +1 -1
  259. package/test-utils/selectors/internal/dropdown-host.js.map +1 -1
  260. package/test-utils/selectors/internal/dropdown.js.map +1 -1
  261. package/test-utils/selectors/internal/filtering-token.js.map +1 -1
  262. package/test-utils/selectors/internal/option.js.map +1 -1
  263. package/test-utils/selectors/mixed-line-bar-chart/index.js.map +1 -1
  264. package/test-utils/selectors/modal/index.js.map +1 -1
  265. package/test-utils/selectors/multiselect/index.js.map +1 -1
  266. package/test-utils/selectors/pagination/index.js.map +1 -1
  267. package/test-utils/selectors/pie-chart/index.js.map +1 -1
  268. package/test-utils/selectors/popover/index.js.map +1 -1
  269. package/test-utils/selectors/progress-bar/index.js.map +1 -1
  270. package/test-utils/selectors/property-filter/index.js.map +1 -1
  271. package/test-utils/selectors/radio-group/index.js.map +1 -1
  272. package/test-utils/selectors/radio-group/radio-button.js.map +1 -1
  273. package/test-utils/selectors/s3-resource-selector/index.js.map +1 -1
  274. package/test-utils/selectors/segmented-control/index.js.map +1 -1
  275. package/test-utils/selectors/select/index.js.map +1 -1
  276. package/test-utils/selectors/side-navigation/index.js.map +1 -1
  277. package/test-utils/selectors/split-panel/index.js.map +1 -1
  278. package/test-utils/selectors/table/index.js +2 -1
  279. package/test-utils/selectors/table/index.js.map +1 -1
  280. package/test-utils/selectors/tabs/index.js.map +1 -1
  281. package/test-utils/selectors/tag-editor/index.js.map +1 -1
  282. package/test-utils/selectors/text-filter/index.js.map +1 -1
  283. package/test-utils/selectors/textarea/index.js.map +1 -1
  284. package/test-utils/selectors/tiles/index.js.map +1 -1
  285. package/test-utils/selectors/tiles/tile.js.map +1 -1
  286. package/test-utils/selectors/toggle/index.js.map +1 -1
  287. package/test-utils/selectors/token-group/index.js.map +1 -1
  288. package/test-utils/selectors/token-group/token.js.map +1 -1
  289. package/test-utils/selectors/top-navigation/1.0-beta/index.js.map +1 -1
  290. package/test-utils/selectors/top-navigation/index.js.map +1 -1
  291. package/test-utils/selectors/tutorial-panel/index.js.map +1 -1
  292. package/test-utils/selectors/tutorial-panel/tutorial.js.map +1 -1
  293. package/test-utils/selectors/wizard/index.js.map +1 -1
  294. package/test-utils/tsconfig.tsbuildinfo +1 -1
  295. package/theming/index.d.ts +1 -1
  296. package/theming/index.d.ts.map +1 -1
  297. package/token-group/internal.d.ts +1 -1
  298. package/token-group/internal.d.ts.map +1 -1
  299. package/top-navigation/1.0-beta/internal.d.ts +1 -1
  300. package/top-navigation/1.0-beta/internal.d.ts.map +1 -1
  301. package/top-navigation/internal.d.ts +1 -1
  302. package/top-navigation/internal.d.ts.map +1 -1
  303. package/top-navigation/parts/overflow-menu/menu-item.d.ts +2 -2
  304. package/top-navigation/parts/overflow-menu/menu-item.d.ts.map +1 -1
  305. package/top-navigation/parts/overflow-menu/menu-item.js.map +1 -1
  306. package/top-navigation/parts/overflow-menu/router.d.ts +1 -1
  307. package/top-navigation/parts/overflow-menu/router.d.ts.map +1 -1
  308. package/wizard/styles.css.js +32 -32
  309. package/wizard/styles.scoped.css +61 -60
  310. package/wizard/styles.selectors.js +32 -32
@@ -57,6 +57,7 @@ module.exports.preset = {
57
57
  "colorGreen700": "#1a520f",
58
58
  "colorGreen900": "#001a02",
59
59
  "colorGrey100": "#fbfbfb",
60
+ "colorGrey125": "#f8f8f8",
60
61
  "colorGrey150": "#f4f4f4",
61
62
  "colorGrey200": "#e9ebed",
62
63
  "colorGrey300": "#d1d5db",
@@ -778,6 +779,10 @@ module.exports.preset = {
778
779
  "light": "{colorGrey150}",
779
780
  "dark": "{colorGrey650}"
780
781
  },
782
+ "colorBackgroundCellShaded": {
783
+ "light": "{colorGrey125}",
784
+ "dark": "{colorGrey700}"
785
+ },
781
786
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
782
787
  "light": "{colorGrey550}",
783
788
  "dark": "{colorGrey500}"
@@ -2302,6 +2307,10 @@ module.exports.preset = {
2302
2307
  "light": "{colorGrey650}",
2303
2308
  "dark": "{colorGrey650}"
2304
2309
  },
2310
+ "colorBackgroundCellShaded": {
2311
+ "light": "{colorGrey700}",
2312
+ "dark": "{colorGrey700}"
2313
+ },
2305
2314
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
2306
2315
  "light": "{colorGrey500}",
2307
2316
  "dark": "{colorGrey500}"
@@ -3208,6 +3217,10 @@ module.exports.preset = {
3208
3217
  "light": "{colorGrey650}",
3209
3218
  "dark": "{colorGrey650}"
3210
3219
  },
3220
+ "colorBackgroundCellShaded": {
3221
+ "light": "{colorGrey700}",
3222
+ "dark": "{colorGrey700}"
3223
+ },
3211
3224
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
3212
3225
  "light": "{colorGrey500}",
3213
3226
  "dark": "{colorGrey500}"
@@ -4062,6 +4075,10 @@ module.exports.preset = {
4062
4075
  "light": "{colorGrey150}",
4063
4076
  "dark": "{colorGrey650}"
4064
4077
  },
4078
+ "colorBackgroundCellShaded": {
4079
+ "light": "{colorGrey125}",
4080
+ "dark": "{colorGrey700}"
4081
+ },
4065
4082
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
4066
4083
  "light": "{colorGrey550}",
4067
4084
  "dark": "{colorGrey500}"
@@ -4916,6 +4933,10 @@ module.exports.preset = {
4916
4933
  "light": "{colorGrey150}",
4917
4934
  "dark": "{colorGrey650}"
4918
4935
  },
4936
+ "colorBackgroundCellShaded": {
4937
+ "light": "{colorGrey125}",
4938
+ "dark": "{colorGrey700}"
4939
+ },
4919
4940
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
4920
4941
  "light": "{colorGrey550}",
4921
4942
  "dark": "{colorGrey500}"
@@ -5862,6 +5883,7 @@ module.exports.preset = {
5862
5883
  "colorBackgroundButtonPrimaryDisabled": "color",
5863
5884
  "colorBackgroundButtonPrimaryHover": "color",
5864
5885
  "colorBackgroundCalendarToday": "color",
5886
+ "colorBackgroundCellShaded": "color",
5865
5887
  "colorBackgroundCodeEditorGutterActiveLineDefault": "color",
5866
5888
  "colorBackgroundCodeEditorGutterActiveLineError": "color",
5867
5889
  "colorBackgroundCodeEditorGutterDefault": "color",
@@ -6667,6 +6689,7 @@ module.exports.preset = {
6667
6689
  "colorGreen700": "color-green-700",
6668
6690
  "colorGreen900": "color-green-900",
6669
6691
  "colorGrey100": "color-grey-100",
6692
+ "colorGrey125": "color-grey-125",
6670
6693
  "colorGrey150": "color-grey-150",
6671
6694
  "colorGrey200": "color-grey-200",
6672
6695
  "colorGrey300": "color-grey-300",
@@ -6866,6 +6889,7 @@ module.exports.preset = {
6866
6889
  "colorBackgroundButtonPrimaryDisabled": "color-background-button-primary-disabled",
6867
6890
  "colorBackgroundButtonPrimaryHover": "color-background-button-primary-hover",
6868
6891
  "colorBackgroundCalendarToday": "color-background-calendar-today",
6892
+ "colorBackgroundCellShaded": "color-background-cell-shaded",
6869
6893
  "colorBackgroundCodeEditorGutterActiveLineDefault": "color-background-code-editor-gutter-active-line-default",
6870
6894
  "colorBackgroundCodeEditorGutterActiveLineError": "color-background-code-editor-gutter-active-line-error",
6871
6895
  "colorBackgroundCodeEditorGutterDefault": "color-background-code-editor-gutter-default",
@@ -7311,6 +7335,7 @@ module.exports.preset = {
7311
7335
  "colorGreen700": "--color-green-700-mxknm4",
7312
7336
  "colorGreen900": "--color-green-900-mcc3zx",
7313
7337
  "colorGrey100": "--color-grey-100-yub70k",
7338
+ "colorGrey125": "--color-grey-125-cl5sjj",
7314
7339
  "colorGrey150": "--color-grey-150-4ycuod",
7315
7340
  "colorGrey200": "--color-grey-200-llwxhx",
7316
7341
  "colorGrey300": "--color-grey-300-gjxrd6",
@@ -7510,6 +7535,7 @@ module.exports.preset = {
7510
7535
  "colorBackgroundButtonPrimaryDisabled": "--color-background-button-primary-disabled-eon7km",
7511
7536
  "colorBackgroundButtonPrimaryHover": "--color-background-button-primary-hover-qu1zio",
7512
7537
  "colorBackgroundCalendarToday": "--color-background-calendar-today-762czq",
7538
+ "colorBackgroundCellShaded": "--color-background-cell-shaded-26ubfj",
7513
7539
  "colorBackgroundCodeEditorGutterActiveLineDefault": "--color-background-code-editor-gutter-active-line-default-p2p8kl",
7514
7540
  "colorBackgroundCodeEditorGutterActiveLineError": "--color-background-code-editor-gutter-active-line-error-lfh0u4",
7515
7541
  "colorBackgroundCodeEditorGutterDefault": "--color-background-code-editor-gutter-default-l5k65m",
@@ -57,6 +57,7 @@ export var preset = {
57
57
  "colorGreen700": "#1a520f",
58
58
  "colorGreen900": "#001a02",
59
59
  "colorGrey100": "#fbfbfb",
60
+ "colorGrey125": "#f8f8f8",
60
61
  "colorGrey150": "#f4f4f4",
61
62
  "colorGrey200": "#e9ebed",
62
63
  "colorGrey300": "#d1d5db",
@@ -778,6 +779,10 @@ export var preset = {
778
779
  "light": "{colorGrey150}",
779
780
  "dark": "{colorGrey650}"
780
781
  },
782
+ "colorBackgroundCellShaded": {
783
+ "light": "{colorGrey125}",
784
+ "dark": "{colorGrey700}"
785
+ },
781
786
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
782
787
  "light": "{colorGrey550}",
783
788
  "dark": "{colorGrey500}"
@@ -2302,6 +2307,10 @@ export var preset = {
2302
2307
  "light": "{colorGrey650}",
2303
2308
  "dark": "{colorGrey650}"
2304
2309
  },
2310
+ "colorBackgroundCellShaded": {
2311
+ "light": "{colorGrey700}",
2312
+ "dark": "{colorGrey700}"
2313
+ },
2305
2314
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
2306
2315
  "light": "{colorGrey500}",
2307
2316
  "dark": "{colorGrey500}"
@@ -3208,6 +3217,10 @@ export var preset = {
3208
3217
  "light": "{colorGrey650}",
3209
3218
  "dark": "{colorGrey650}"
3210
3219
  },
3220
+ "colorBackgroundCellShaded": {
3221
+ "light": "{colorGrey700}",
3222
+ "dark": "{colorGrey700}"
3223
+ },
3211
3224
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
3212
3225
  "light": "{colorGrey500}",
3213
3226
  "dark": "{colorGrey500}"
@@ -4062,6 +4075,10 @@ export var preset = {
4062
4075
  "light": "{colorGrey150}",
4063
4076
  "dark": "{colorGrey650}"
4064
4077
  },
4078
+ "colorBackgroundCellShaded": {
4079
+ "light": "{colorGrey125}",
4080
+ "dark": "{colorGrey700}"
4081
+ },
4065
4082
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
4066
4083
  "light": "{colorGrey550}",
4067
4084
  "dark": "{colorGrey500}"
@@ -4916,6 +4933,10 @@ export var preset = {
4916
4933
  "light": "{colorGrey150}",
4917
4934
  "dark": "{colorGrey650}"
4918
4935
  },
4936
+ "colorBackgroundCellShaded": {
4937
+ "light": "{colorGrey125}",
4938
+ "dark": "{colorGrey700}"
4939
+ },
4919
4940
  "colorBackgroundCodeEditorGutterActiveLineDefault": {
4920
4941
  "light": "{colorGrey550}",
4921
4942
  "dark": "{colorGrey500}"
@@ -5862,6 +5883,7 @@ export var preset = {
5862
5883
  "colorBackgroundButtonPrimaryDisabled": "color",
5863
5884
  "colorBackgroundButtonPrimaryHover": "color",
5864
5885
  "colorBackgroundCalendarToday": "color",
5886
+ "colorBackgroundCellShaded": "color",
5865
5887
  "colorBackgroundCodeEditorGutterActiveLineDefault": "color",
5866
5888
  "colorBackgroundCodeEditorGutterActiveLineError": "color",
5867
5889
  "colorBackgroundCodeEditorGutterDefault": "color",
@@ -6667,6 +6689,7 @@ export var preset = {
6667
6689
  "colorGreen700": "color-green-700",
6668
6690
  "colorGreen900": "color-green-900",
6669
6691
  "colorGrey100": "color-grey-100",
6692
+ "colorGrey125": "color-grey-125",
6670
6693
  "colorGrey150": "color-grey-150",
6671
6694
  "colorGrey200": "color-grey-200",
6672
6695
  "colorGrey300": "color-grey-300",
@@ -6866,6 +6889,7 @@ export var preset = {
6866
6889
  "colorBackgroundButtonPrimaryDisabled": "color-background-button-primary-disabled",
6867
6890
  "colorBackgroundButtonPrimaryHover": "color-background-button-primary-hover",
6868
6891
  "colorBackgroundCalendarToday": "color-background-calendar-today",
6892
+ "colorBackgroundCellShaded": "color-background-cell-shaded",
6869
6893
  "colorBackgroundCodeEditorGutterActiveLineDefault": "color-background-code-editor-gutter-active-line-default",
6870
6894
  "colorBackgroundCodeEditorGutterActiveLineError": "color-background-code-editor-gutter-active-line-error",
6871
6895
  "colorBackgroundCodeEditorGutterDefault": "color-background-code-editor-gutter-default",
@@ -7311,6 +7335,7 @@ export var preset = {
7311
7335
  "colorGreen700": "--color-green-700-mxknm4",
7312
7336
  "colorGreen900": "--color-green-900-mcc3zx",
7313
7337
  "colorGrey100": "--color-grey-100-yub70k",
7338
+ "colorGrey125": "--color-grey-125-cl5sjj",
7314
7339
  "colorGrey150": "--color-grey-150-4ycuod",
7315
7340
  "colorGrey200": "--color-grey-200-llwxhx",
7316
7341
  "colorGrey300": "--color-grey-300-gjxrd6",
@@ -7510,6 +7535,7 @@ export var preset = {
7510
7535
  "colorBackgroundButtonPrimaryDisabled": "--color-background-button-primary-disabled-eon7km",
7511
7536
  "colorBackgroundButtonPrimaryHover": "--color-background-button-primary-hover-qu1zio",
7512
7537
  "colorBackgroundCalendarToday": "--color-background-calendar-today-762czq",
7538
+ "colorBackgroundCellShaded": "--color-background-cell-shaded-26ubfj",
7513
7539
  "colorBackgroundCodeEditorGutterActiveLineDefault": "--color-background-code-editor-gutter-active-line-default-p2p8kl",
7514
7540
  "colorBackgroundCodeEditorGutterActiveLineError": "--color-background-code-editor-gutter-active-line-error-lfh0u4",
7515
7541
  "colorBackgroundCodeEditorGutterDefault": "--color-background-code-editor-gutter-default-l5k65m",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ContainerQueryEntry } from './interfaces';
3
- declare type ElementReference = (() => Element | null) | React.RefObject<Element>;
3
+ type ElementReference = (() => Element | null) | React.RefObject<Element>;
4
4
  /**
5
5
  * Attaches resize-observer to the referenced element.
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-resize-observer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,aAAK,gBAAgB,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,QAmC9G"}
1
+ {"version":3,"file":"use-resize-observer.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/container-queries/use-resize-observer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,KAAK,gBAAgB,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,QAmC9G"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAMnD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAuB,EACvB,UAA4D;IAE5D,mBAAmB,CACjB,OAAO,EACP,cAAM,OAAA,CAAC;QACL,KAAK,EAAL;;YAAM,cAAyC;iBAAzC,UAAyC,EAAzC,qBAAyC,EAAzC,IAAyC;gBAAzC,yBAAyC;;YAC7C,MAAA,UAAU,CAAC,OAAO,0CAAE,KAAK,WAAI,IAAI,CAAC,CAAC;QACrC,CAAC;KACF,CAAC,EAJI,CAIJ,EACF,CAAC,UAAU,CAAC,CACb,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\nexport default function useForwardFocus(\n mainRef: React.Ref<any>,\n controlRef: React.RefObject<{ focus: HTMLElement['focus'] }>\n) {\n useImperativeHandle(\n mainRef,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n controlRef.current?.focus(...args);\n },\n }),\n [controlRef]\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/forward-focus/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAMnD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,OAAuB,EACvB,UAA4D;IAE5D,mBAAmB,CACjB,OAAO,EACP,cAAM,OAAA,CAAC;QACL,KAAK;;YAAC,cAAyC;iBAAzC,UAAyC,EAAzC,qBAAyC,EAAzC,IAAyC;gBAAzC,yBAAyC;;YAC7C,MAAA,UAAU,CAAC,OAAO,0CAAE,KAAK,WAAI,IAAI,CAAC,CAAC;QACrC,CAAC;KACF,CAAC,EAJI,CAIJ,EACF,CAAC,UAAU,CAAC,CACb,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useImperativeHandle } from 'react';\n\nexport interface ForwardFocusRef {\n focus(): void;\n}\n\nexport default function useForwardFocus(\n mainRef: React.Ref<any>,\n controlRef: React.RefObject<{ focus: HTMLElement['focus'] }>\n) {\n useImperativeHandle(\n mainRef,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n controlRef.current?.focus(...args);\n },\n }),\n [controlRef]\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
- declare type ValueCallback<T> = (value: T) => void;
2
- declare type CleanupCallback = () => void;
3
- export declare type UseSingleton<T> = (listener: ValueCallback<T>) => void;
1
+ type ValueCallback<T> = (value: T) => void;
2
+ type CleanupCallback = () => void;
3
+ export type UseSingleton<T> = (listener: ValueCallback<T>) => void;
4
4
  export declare function createSingletonHandler<T>(factory: (handler: ValueCallback<T>) => CleanupCallback): UseSingleton<T>;
5
5
  interface SingletonStateOptions<T> {
6
6
  factory: (handler: ValueCallback<T>) => CleanupCallback;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-singleton-handler/index.ts"],"names":[],"mappings":"AAKA,aAAK,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAC3C,aAAK,eAAe,GAAG,MAAM,IAAI,CAAC;AAClC,oBAAY,YAAY,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CA6BlH;AAED,UAAU,qBAAqB,CAAC,CAAC;IAC/B,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC;IACxD,YAAY,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CAC7B;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,WAW1F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-singleton-handler/index.ts"],"names":[],"mappings":"AAKA,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AAC3C,KAAK,eAAe,GAAG,MAAM,IAAI,CAAC;AAClC,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CA6BlH;AAED,UAAU,qBAAqB,CAAC,CAAC;IAC/B,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,eAAe,CAAC;IACxD,YAAY,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;CAC7B;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,WAW1F"}
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "d708896775df56ecef13f1d94f223e75b8fc0460"
2
+ "commit": "fe9e4c3f1b1082fad0ddfe885386c9495cbfa417"
3
3
  }
@@ -9,10 +9,10 @@ export declare const Metrics: {
9
9
  * Calls Console Platform's client logging JS API with provided metric name, value, and detail.
10
10
  * Does nothing if Console Platform client logging JS is not present in page.
11
11
  */
12
- sendMetric(metricName: string, value: number, detail?: string | undefined): void;
12
+ sendMetric(metricName: string, value: number, detail?: string): void;
13
13
  sendMetricObject(metric: MetricsLogItem, value: number): void;
14
14
  sendMetricObjectOnce(metric: MetricsLogItem, value: number): void;
15
- sendMetricOnce(metricName: string, value: number, detail?: string | undefined): void;
15
+ sendMetricOnce(metricName: string, value: number, detail?: string): void;
16
16
  logComponentLoaded(): void;
17
17
  logComponentUsed(componentName: string): void;
18
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/internal/metrics.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAwED,eAAO,MAAM,OAAO;qBACD,MAAM;IAIvB;;;OAGG;2BACoB,MAAM,SAAS,MAAM,gCAAoB,IAAI;6BAe3C,cAAc,SAAS,MAAM,GAAG,IAAI;iCAIhC,cAAc,SAAS,MAAM,GAAG,IAAI;+BAYtC,MAAM,SAAS,MAAM,gCAAoB,IAAI;;oCA4BxC,MAAM;CAUvC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;iDAjIsB,MAAM;wCAIf,MAAM,WAAW,MAAM;CAqIjE,CAAC"}
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/internal/metrics.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAwED,eAAO,MAAM,OAAO;qBACD,MAAM;IAIvB;;;OAGG;2BACoB,MAAM,SAAS,MAAM,WAAW,MAAM,GAAG,IAAI;6BAe3C,cAAc,SAAS,MAAM,GAAG,IAAI;iCAIhC,cAAc,SAAS,MAAM,GAAG,IAAI;+BAYtC,MAAM,SAAS,MAAM,WAAW,MAAM,GAAG,IAAI;;oCA4BxC,MAAM;CAUvC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;iDAjIsB,MAAM;wCAIf,MAAM,WAAW,MAAM;CAqIjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/internal/metrics.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,E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AM,EAAE,YAAY;YACpB,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,eAAe;SACzB,EACD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,gBAAgB,EAAhB,UAAiB,aAAqB;QACpC,IAAI,CAAC,oBAAoB,CACvB;YACE,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,eAAe;SACzB,EACD,CAAC,CACF,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,iBAAiB,GAAG;IAC/B,wBAAwB,EAAE;QACxB,KAAK,IAAM,IAAI,IAAI,cAAc,EAAE;YACjC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;SAC7B;IACH,CAAC;IACD,iCAAiC,mCAAA;IACjC,0BAA0B,4BAAA;CAC3B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { THEME, PACKAGE_VERSION } from './environment';\n\nexport interface MetricsLogItem {\n source: string;\n action: string;\n version: string;\n}\n\ninterface AWSC {\n Clog: any;\n}\n\ninterface MetricsWindow extends Window {\n AWSC?: AWSC;\n}\n\ndeclare const AWSUI_METRIC_ORIGIN: string | undefined;\n\nconst oneTimeMetrics: Record<string, boolean> = {};\n\nconst buildMetricHash = ({ source, action }: MetricsLogItem): string => {\n return [`src${source}`, `action${action}`].join('_');\n};\n\nconst getMajorVersion = (versionString: string): string => {\n const majorVersionMatch = versionString.match(/^(\\d+\\.\\d+)/);\n return majorVersionMatch ? majorVersionMatch[1] : '';\n};\n\nconst formatMajorVersionForMetricDetail = (version: string) => {\n return version.replace(/\\s/g, '');\n};\n\nconst formatVersionForMetricName = (theme: string, version: string) => {\n return `${theme.charAt(0)}${getMajorVersion(version).replace('.', '')}`;\n};\n\nconst buildMetricDetail = ({ source, action, version }: MetricsLogItem): string => {\n const metricOrigin = typeof AWSUI_METRIC_ORIGIN !== 'undefined' ? AWSUI_METRIC_ORIGIN : 'main';\n const detailObject = {\n o: metricOrigin,\n s: source,\n t: THEME,\n a: action,\n f: framework,\n v: formatMajorVersionForMetricDetail(version),\n };\n return JSON.stringify(detailObject);\n};\n\nconst buildMetricName = ({ source, version }: MetricsLogItem): string => {\n return ['awsui', source, `${formatVersionForMetricName(THEME, version)}`].join('_');\n};\n\nconst findAWSC = (currentWindow?: MetricsWindow): AWSC | undefined => {\n try {\n if (typeof currentWindow?.AWSC === 'object') {\n return currentWindow?.AWSC;\n }\n\n if (!currentWindow || currentWindow.parent === currentWindow) {\n // When the window has no more parents, it references itself\n return undefined;\n }\n\n return findAWSC(currentWindow.parent);\n } catch (ex) {\n // Most likely a cross-origin access error\n return undefined;\n }\n};\n\n// react is the default framework we're logging, for angular we need to set it explicitly\nlet framework = 'react';\nfunction setFramework(fwk: string) {\n framework = fwk;\n}\n\nexport const Metrics = {\n initMetrics(fwk: string) {\n setFramework(fwk);\n },\n\n /**\n * Calls Console Platform's client logging JS API with provided metric name, value, and detail.\n * Does nothing if Console Platform client logging JS is not present in page.\n */\n sendMetric(metricName: string, value: number, detail?: string): void {\n if (!metricName || !/^[a-zA-Z0-9_-]{1,32}$/.test(metricName)) {\n console.error(`Invalid metric name: ${metricName}`);\n return;\n }\n if (detail && detail.length > 200) {\n console.error(`Detail for metric ${metricName} is too long: ${detail}`);\n return;\n }\n const AWSC = findAWSC(window);\n if (typeof AWSC === 'object' && typeof AWSC.Clog === 'object' && typeof AWSC.Clog.log === 'function') {\n AWSC.Clog.log(metricName, value, detail);\n }\n },\n\n sendMetricObject(metric: MetricsLogItem, value: number): void {\n this.sendMetric(buildMetricName(metric), value, buildMetricDetail(metric));\n },\n\n sendMetricObjectOnce(metric: MetricsLogItem, value: number): void {\n const metricHash = buildMetricHash(metric);\n if (!oneTimeMetrics[metricHash]) {\n this.sendMetricObject(metric, value);\n oneTimeMetrics[metricHash] = true;\n }\n },\n\n /*\n * Calls Console Platform's client logging only the first time the provided metricName is used.\n * Subsequent calls with the same metricName are ignored.\n */\n sendMetricOnce(metricName: string, value: number, detail?: string): void {\n if (!oneTimeMetrics[metricName]) {\n this.sendMetric(metricName, value, detail);\n oneTimeMetrics[metricName] = true;\n }\n },\n\n /*\n * Reports a metric value 1 to Console Platform's client logging service to indicate that the\n * component was loaded. The component load event will only be reported as used to client logging\n * service once per page view.\n */\n logComponentLoaded() {\n this.sendMetricObjectOnce(\n {\n source: 'components',\n action: 'loaded',\n version: PACKAGE_VERSION,\n },\n 1\n );\n },\n\n /*\n * Reports a metric value 1 to Console Platform's client logging service to indicate that the\n * component was used in the page. A component will only be reported as used to client logging\n * service once per page view.\n */\n logComponentUsed(componentName: string) {\n this.sendMetricObjectOnce(\n {\n source: componentName,\n action: 'used',\n version: PACKAGE_VERSION,\n },\n 1\n );\n },\n};\n\nexport const MetricsTestHelper = {\n resetOneTimeMetricsCache: () => {\n for (const prop in oneTimeMetrics) {\n delete oneTimeMetrics[prop];\n }\n },\n formatMajorVersionForMetricDetail,\n formatVersionForMetricName,\n};\n"]}
1
+ {"version":3,"file":"metrics.js","sourceRoot":"","sources":["../../../src/internal/metrics.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAkBvD,IAAM,cAAc,GAA4B,EAAE,CAAC;AAEnD,IAAM,eAAe,GAAG,UAAC,EAAkC;QAAhC,MAAM,YAAA,EAAE,MAAM,YAAA;IACvC,OAAO,CAAC,aAAM,MAAM,CAAE,EAAE,gBAAS,MAAM,CAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvD,CAAC,CAAC;AAEF,IAAM,eAAe,GAAG,UAAC,aAAqB;IAC5C,IAAM,iBAAiB,GAAG,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC7D,OAAO,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CA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AA;CAC3B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { THEME, PACKAGE_VERSION } from './environment';\n\nexport interface MetricsLogItem {\n source: string;\n action: string;\n version: string;\n}\n\ninterface AWSC {\n Clog: any;\n}\n\ninterface MetricsWindow extends Window {\n AWSC?: AWSC;\n}\n\ndeclare const AWSUI_METRIC_ORIGIN: string | undefined;\n\nconst oneTimeMetrics: Record<string, boolean> = {};\n\nconst buildMetricHash = ({ source, action }: MetricsLogItem): string => {\n return [`src${source}`, `action${action}`].join('_');\n};\n\nconst getMajorVersion = (versionString: string): string => {\n const majorVersionMatch = versionString.match(/^(\\d+\\.\\d+)/);\n return majorVersionMatch ? majorVersionMatch[1] : '';\n};\n\nconst formatMajorVersionForMetricDetail = (version: string) => {\n return version.replace(/\\s/g, '');\n};\n\nconst formatVersionForMetricName = (theme: string, version: string) => {\n return `${theme.charAt(0)}${getMajorVersion(version).replace('.', '')}`;\n};\n\nconst buildMetricDetail = ({ source, action, version }: MetricsLogItem): string => {\n const metricOrigin = typeof AWSUI_METRIC_ORIGIN !== 'undefined' ? AWSUI_METRIC_ORIGIN : 'main';\n const detailObject = {\n o: metricOrigin,\n s: source,\n t: THEME,\n a: action,\n f: framework,\n v: formatMajorVersionForMetricDetail(version),\n };\n return JSON.stringify(detailObject);\n};\n\nconst buildMetricName = ({ source, version }: MetricsLogItem): string => {\n return ['awsui', source, `${formatVersionForMetricName(THEME, version)}`].join('_');\n};\n\nconst findAWSC = (currentWindow?: MetricsWindow): AWSC | undefined => {\n try {\n if (typeof currentWindow?.AWSC === 'object') {\n return currentWindow?.AWSC;\n }\n\n if (!currentWindow || currentWindow.parent === currentWindow) {\n // When the window has no more parents, it references itself\n return undefined;\n }\n\n return findAWSC(currentWindow.parent);\n } catch (ex) {\n // Most likely a cross-origin access error\n return undefined;\n }\n};\n\n// react is the default framework we're logging, for angular we need to set it explicitly\nlet framework = 'react';\nfunction setFramework(fwk: string) {\n framework = fwk;\n}\n\nexport const Metrics = {\n initMetrics(fwk: string) {\n setFramework(fwk);\n },\n\n /**\n * Calls Console Platform's client logging JS API with provided metric name, value, and detail.\n * Does nothing if Console Platform client logging JS is not present in page.\n */\n sendMetric(metricName: string, value: number, detail?: string): void {\n if (!metricName || !/^[a-zA-Z0-9_-]{1,32}$/.test(metricName)) {\n console.error(`Invalid metric name: ${metricName}`);\n return;\n }\n if (detail && detail.length > 200) {\n console.error(`Detail for metric ${metricName} is too long: ${detail}`);\n return;\n }\n const AWSC = findAWSC(window);\n if (typeof AWSC === 'object' && typeof AWSC.Clog === 'object' && typeof AWSC.Clog.log === 'function') {\n AWSC.Clog.log(metricName, value, detail);\n }\n },\n\n sendMetricObject(metric: MetricsLogItem, value: number): void {\n this.sendMetric(buildMetricName(metric), value, buildMetricDetail(metric));\n },\n\n sendMetricObjectOnce(metric: MetricsLogItem, value: number): void {\n const metricHash = buildMetricHash(metric);\n if (!oneTimeMetrics[metricHash]) {\n this.sendMetricObject(metric, value);\n oneTimeMetrics[metricHash] = true;\n }\n },\n\n /*\n * Calls Console Platform's client logging only the first time the provided metricName is used.\n * Subsequent calls with the same metricName are ignored.\n */\n sendMetricOnce(metricName: string, value: number, detail?: string): void {\n if (!oneTimeMetrics[metricName]) {\n this.sendMetric(metricName, value, detail);\n oneTimeMetrics[metricName] = true;\n }\n },\n\n /*\n * Reports a metric value 1 to Console Platform's client logging service to indicate that the\n * component was loaded. The component load event will only be reported as used to client logging\n * service once per page view.\n */\n logComponentLoaded() {\n this.sendMetricObjectOnce(\n {\n source: 'components',\n action: 'loaded',\n version: PACKAGE_VERSION,\n },\n 1\n );\n },\n\n /*\n * Reports a metric value 1 to Console Platform's client logging service to indicate that the\n * component was used in the page. A component will only be reported as used to client logging\n * service once per page view.\n */\n logComponentUsed(componentName: string) {\n this.sendMetricObjectOnce(\n {\n source: componentName,\n action: 'used',\n version: PACKAGE_VERSION,\n },\n 1\n );\n },\n};\n\nexport const MetricsTestHelper = {\n resetOneTimeMetricsCache: () => {\n for (const prop in oneTimeMetrics) {\n delete oneTimeMetrics[prop];\n }\n },\n formatMajorVersionForMetricDetail,\n formatVersionForMetricName,\n};\n"]}
@@ -11,7 +11,7 @@
11
11
  * function InternalAlert(props: InternalAlertProps) { ... }
12
12
  * ```
13
13
  */
14
- export declare type SomeRequired<Type, Keys extends keyof Type> = Type & {
14
+ export type SomeRequired<Type, Keys extends keyof Type> = Type & {
15
15
  [Key in Keys]-?: Type[Key];
16
16
  };
17
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,oBAAY,YAAY,CAAC,IAAI,EAAE,IAAI,SAAS,MAAM,IAAI,IAAI,IAAI,GAAG;KAC9D,GAAG,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;CAC3B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,YAAY,CAAC,IAAI,EAAE,IAAI,SAAS,MAAM,IAAI,IAAI,IAAI,GAAG;KAC9D,GAAG,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC;CAC3B,CAAC"}
@@ -1,4 +1,4 @@
1
- declare type DayIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6;
1
+ type DayIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6;
2
2
  export declare function normalizeStartOfWeek(startOfWeek: number | undefined, locale: string): DayIndex;
3
3
  export {};
4
4
  //# sourceMappingURL=normalize-start-of-week.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-start-of-week.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/locale/normalize-start-of-week.ts"],"names":[],"mappings":"AAKA,aAAK,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,YAEnF"}
1
+ {"version":3,"file":"normalize-start-of-week.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/locale/normalize-start-of-week.ts"],"names":[],"mappings":"AAKA,KAAK,QAAQ,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,YAEnF"}
@@ -6,7 +6,7 @@ export interface Dimensions {
6
6
  }
7
7
  export declare const getOverflowParents: (element: HTMLElement) => HTMLElement[];
8
8
  export declare const getOverflowParentDimensions: (element: HTMLElement, excludeClosestParent?: boolean, expandToViewport?: boolean, canExpandOutsideViewport?: boolean) => Dimensions[];
9
- declare type ScrollIntoViewOptions = Parameters<HTMLElement['scrollIntoView']>[0];
9
+ type ScrollIntoViewOptions = Parameters<HTMLElement['scrollIntoView']>[0];
10
10
  /**
11
11
  * Calls `scrollIntoView` on the provided element with sensible defaults. If
12
12
  * the element does not existed or does not support the `scrollIntoView`
@@ -1 +1 @@
1
- {"version":3,"file":"scrollable-containers.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/scrollable-containers.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,WAAW,EAQpE,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAC7B,WAAW,qGAInB,UAAU,EAqCZ,CAAC;AAEF,aAAK,qBAAqB,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,OAAO,GAAE,qBAA+D,QAGzE"}
1
+ {"version":3,"file":"scrollable-containers.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/scrollable-containers.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,kBAAkB,YAAa,WAAW,KAAG,WAAW,EAQpE,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAC7B,WAAW,qGAInB,UAAU,EAqCZ,CAAC;AAEF,KAAK,qBAAqB,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,WAAW,GAAG,SAAS,EAChC,OAAO,GAAE,qBAA+D,QAGzE"}