@cloudscape-design/components 3.0.621 → 3.0.623

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 (192) hide show
  1. package/annotation-context/annotation/styles.css.js +24 -24
  2. package/annotation-context/annotation/styles.scoped.css +31 -31
  3. package/annotation-context/annotation/styles.selectors.js +24 -24
  4. package/app-layout/classic.js.map +1 -1
  5. package/app-layout/notifications/styles.css.js +3 -3
  6. package/app-layout/notifications/styles.scoped.css +7 -7
  7. package/app-layout/notifications/styles.selectors.js +3 -3
  8. package/app-layout/visual-refresh/styles.css.js +81 -81
  9. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  10. package/app-layout/visual-refresh/styles.selectors.js +81 -81
  11. package/area-chart/chart-container.js +11 -11
  12. package/area-chart/chart-container.js.map +1 -1
  13. package/area-chart/elements/use-highlight-details.js.map +1 -1
  14. package/area-chart/internal.d.ts.map +1 -1
  15. package/area-chart/internal.js +3 -0
  16. package/area-chart/internal.js.map +1 -1
  17. package/area-chart/model/compute-chart-props.d.ts +4 -3
  18. package/area-chart/model/compute-chart-props.d.ts.map +1 -1
  19. package/area-chart/model/compute-chart-props.js +5 -2
  20. package/area-chart/model/compute-chart-props.js.map +1 -1
  21. package/area-chart/model/index.d.ts +1 -1
  22. package/area-chart/model/index.d.ts.map +1 -1
  23. package/area-chart/model/index.js.map +1 -1
  24. package/area-chart/model/use-chart-model.d.ts +2 -1
  25. package/area-chart/model/use-chart-model.d.ts.map +1 -1
  26. package/area-chart/model/use-chart-model.js +23 -14
  27. package/area-chart/model/use-chart-model.js.map +1 -1
  28. package/code-editor/interfaces.d.ts +2 -2
  29. package/code-editor/interfaces.d.ts.map +1 -1
  30. package/code-editor/interfaces.js.map +1 -1
  31. package/code-editor/util.js.map +1 -1
  32. package/column-layout/internal.d.ts +1 -1
  33. package/column-layout/internal.d.ts.map +1 -1
  34. package/column-layout/internal.js.map +1 -1
  35. package/container/use-sticky-header.js +1 -1
  36. package/container/use-sticky-header.js.map +1 -1
  37. package/flashbar/styles.css.js +47 -47
  38. package/flashbar/styles.scoped.css +171 -171
  39. package/flashbar/styles.selectors.js +47 -47
  40. package/i18n/dynamic.js +30 -30
  41. package/i18n/messages/all.all.d.ts +1 -1
  42. package/i18n/messages/all.all.js +1 -14558
  43. package/i18n/messages/all.all.json +1 -14615
  44. package/i18n/messages/all.de.d.ts +1 -1
  45. package/i18n/messages/all.de.js +1 -1086
  46. package/i18n/messages/all.de.json +1 -1096
  47. package/i18n/messages/all.en-GB.d.ts +1 -1
  48. package/i18n/messages/all.en-GB.js +1 -1064
  49. package/i18n/messages/all.en-GB.json +1 -1067
  50. package/i18n/messages/all.en.d.ts +1 -1
  51. package/i18n/messages/all.en.js +1 -1064
  52. package/i18n/messages/all.en.json +1 -1063
  53. package/i18n/messages/all.es.d.ts +1 -1
  54. package/i18n/messages/all.es.js +1 -1080
  55. package/i18n/messages/all.es.json +1 -1083
  56. package/i18n/messages/all.fr.d.ts +1 -1
  57. package/i18n/messages/all.fr.js +1 -1104
  58. package/i18n/messages/all.fr.json +1 -1110
  59. package/i18n/messages/all.id.d.ts +1 -1
  60. package/i18n/messages/all.id.js +1 -1049
  61. package/i18n/messages/all.id.json +1 -1054
  62. package/i18n/messages/all.it.d.ts +1 -1
  63. package/i18n/messages/all.it.js +1 -1042
  64. package/i18n/messages/all.it.json +1 -1046
  65. package/i18n/messages/all.ja.d.ts +1 -1
  66. package/i18n/messages/all.ja.js +1 -1081
  67. package/i18n/messages/all.ja.json +1 -1083
  68. package/i18n/messages/all.ko.d.ts +1 -1
  69. package/i18n/messages/all.ko.js +1 -1054
  70. package/i18n/messages/all.ko.json +1 -1065
  71. package/i18n/messages/all.pt-BR.d.ts +1 -1
  72. package/i18n/messages/all.pt-BR.js +1 -1074
  73. package/i18n/messages/all.pt-BR.json +1 -1082
  74. package/i18n/messages/all.th.d.ts +1 -1
  75. package/i18n/messages/all.th.js +1 -733
  76. package/i18n/messages/all.th.json +1 -734
  77. package/i18n/messages/all.tr.d.ts +1 -1
  78. package/i18n/messages/all.tr.js +1 -1072
  79. package/i18n/messages/all.tr.json +1 -1079
  80. package/i18n/messages/all.zh-CN.d.ts +1 -1
  81. package/i18n/messages/all.zh-CN.js +1 -1054
  82. package/i18n/messages/all.zh-CN.json +1 -1053
  83. package/i18n/messages/all.zh-TW.d.ts +1 -1
  84. package/i18n/messages/all.zh-TW.js +1 -1053
  85. package/i18n/messages/all.zh-TW.json +1 -1052
  86. package/i18n/messages-types.d.ts +7 -0
  87. package/i18n/messages-types.d.ts.map +1 -1
  88. package/i18n/messages-types.js.map +1 -1
  89. package/index.d.ts +1 -0
  90. package/index.d.ts.map +1 -1
  91. package/index.js +1 -0
  92. package/index.js.map +1 -1
  93. package/internal/animate.js.map +1 -1
  94. package/internal/base-component/styles.scoped.css +25 -0
  95. package/internal/components/cartesian-chart/{bottom-labels.d.ts → block-end-labels.d.ts} +5 -5
  96. package/internal/components/cartesian-chart/block-end-labels.d.ts.map +1 -0
  97. package/internal/components/cartesian-chart/{bottom-labels.js → block-end-labels.js} +5 -5
  98. package/internal/components/cartesian-chart/block-end-labels.js.map +1 -0
  99. package/internal/components/cartesian-chart/{left-labels.d.ts → inline-start-labels.d.ts} +4 -4
  100. package/internal/components/cartesian-chart/inline-start-labels.d.ts.map +1 -0
  101. package/internal/components/cartesian-chart/{left-labels.js → inline-start-labels.js} +9 -6
  102. package/internal/components/cartesian-chart/inline-start-labels.js.map +1 -0
  103. package/internal/components/cartesian-chart/labels-measure.js +2 -2
  104. package/internal/components/cartesian-chart/labels-measure.js.map +1 -1
  105. package/internal/components/cartesian-chart/styles.css.js +27 -27
  106. package/internal/components/cartesian-chart/styles.scoped.css +31 -31
  107. package/internal/components/cartesian-chart/styles.selectors.js +27 -27
  108. package/internal/components/chart-legend/index.d.ts.map +1 -1
  109. package/internal/components/chart-legend/index.js +7 -10
  110. package/internal/components/chart-legend/index.js.map +1 -1
  111. package/internal/components/dropdown/dropdown-fit-handler.js.map +1 -1
  112. package/internal/components/dropdown/styles.css.js +20 -20
  113. package/internal/components/dropdown/styles.scoped.css +41 -41
  114. package/internal/components/dropdown/styles.selectors.js +20 -20
  115. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  116. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  117. package/internal/environment.d.ts +1 -1
  118. package/internal/environment.js +1 -1
  119. package/internal/environment.json +2 -2
  120. package/internal/events/index.d.ts.map +1 -1
  121. package/internal/events/index.js.map +1 -1
  122. package/internal/focus-tracker.d.ts.map +1 -1
  123. package/internal/focus-tracker.js.map +1 -1
  124. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  125. package/internal/generated/custom-css-properties/index.js +51 -43
  126. package/internal/generated/custom-css-properties/index.js.map +1 -1
  127. package/internal/generated/styles/tokens.d.ts +5 -0
  128. package/internal/generated/styles/tokens.js +5 -0
  129. package/internal/generated/theming/index.cjs +159 -0
  130. package/internal/generated/theming/index.cjs.d.ts +16 -0
  131. package/internal/generated/theming/index.d.ts +16 -0
  132. package/internal/generated/theming/index.js +159 -0
  133. package/internal/hooks/container-queries/use-container-breakpoints.js.map +1 -1
  134. package/internal/manifest.json +1 -1
  135. package/internal/utils/handle-key.d.ts +1 -1
  136. package/internal/utils/handle-key.d.ts.map +1 -1
  137. package/internal/utils/handle-key.js +1 -1
  138. package/internal/utils/handle-key.js.map +1 -1
  139. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  140. package/mixed-line-bar-chart/chart-container.js +12 -12
  141. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  142. package/package.json +2 -1
  143. package/pie-chart/utils.d.ts.map +1 -1
  144. package/pie-chart/utils.js.map +1 -1
  145. package/slider/index.d.ts +5 -0
  146. package/slider/index.d.ts.map +1 -0
  147. package/slider/index.js +14 -0
  148. package/slider/index.js.map +1 -0
  149. package/slider/interfaces.d.ts +75 -0
  150. package/slider/interfaces.d.ts.map +1 -0
  151. package/slider/interfaces.js +2 -0
  152. package/slider/interfaces.js.map +1 -0
  153. package/slider/internal.d.ts +7 -0
  154. package/slider/internal.d.ts.map +1 -0
  155. package/slider/internal.js +119 -0
  156. package/slider/internal.js.map +1 -0
  157. package/slider/slider-labels.d.ts +11 -0
  158. package/slider/slider-labels.d.ts.map +1 -0
  159. package/slider/slider-labels.js +76 -0
  160. package/slider/slider-labels.js.map +1 -0
  161. package/slider/styles.css.js +28 -0
  162. package/slider/styles.scoped.css +411 -0
  163. package/slider/styles.selectors.js +29 -0
  164. package/slider/tick-marks.d.ts +16 -0
  165. package/slider/tick-marks.d.ts.map +1 -0
  166. package/slider/tick-marks.js +37 -0
  167. package/slider/tick-marks.js.map +1 -0
  168. package/slider/utils.d.ts +9 -0
  169. package/slider/utils.d.ts.map +1 -0
  170. package/slider/utils.js +26 -0
  171. package/slider/utils.js.map +1 -0
  172. package/spinner/styles.css.js +13 -13
  173. package/spinner/styles.scoped.css +39 -39
  174. package/spinner/styles.selectors.js +13 -13
  175. package/table/internal.js.map +1 -1
  176. package/test-utils/dom/index.d.ts +3 -0
  177. package/test-utils/dom/index.js +12 -7
  178. package/test-utils/dom/index.js.map +1 -1
  179. package/test-utils/dom/slider/index.d.ts +6 -0
  180. package/test-utils/dom/slider/index.js +12 -0
  181. package/test-utils/dom/slider/index.js.map +1 -0
  182. package/test-utils/selectors/index.d.ts +3 -0
  183. package/test-utils/selectors/index.js +10 -4
  184. package/test-utils/selectors/index.js.map +1 -1
  185. package/test-utils/selectors/slider/index.d.ts +6 -0
  186. package/test-utils/selectors/slider/index.js +12 -0
  187. package/test-utils/selectors/slider/index.js.map +1 -0
  188. package/test-utils/tsconfig.tsbuildinfo +1 -1
  189. package/internal/components/cartesian-chart/bottom-labels.d.ts.map +0 -1
  190. package/internal/components/cartesian-chart/bottom-labels.js.map +0 -1
  191. package/internal/components/cartesian-chart/left-labels.d.ts.map +0 -1
  192. package/internal/components/cartesian-chart/left-labels.js.map +0 -1
@@ -96,10 +96,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
96
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
97
97
  SPDX-License-Identifier: Apache-2.0
98
98
  */
99
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
100
- animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_1wj13_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
99
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
100
+ animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_kabis_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
101
101
  }
102
- @keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_1wj13_1 {
102
+ @keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_kabis_1 {
103
103
  from {
104
104
  opacity: 0.4;
105
105
  }
@@ -108,22 +108,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
108
108
  }
109
109
  }
110
110
  @media (prefers-reduced-motion: reduce) {
111
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
111
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
112
112
  animation: none;
113
113
  transition: none;
114
114
  }
115
115
  }
116
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
116
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
117
117
  animation: none;
118
118
  transition: none;
119
119
  }
120
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99.awsui_refresh_qwoo0_1wj13_120:not(#\9) {
120
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99.awsui_refresh_qwoo0_kabis_120:not(#\9) {
121
121
  transform-origin: top;
122
- animation-name: awsui_awsui-motion-fade-in-0_qwoo0_1wj13_1;
122
+ animation-name: awsui_awsui-motion-fade-in-0_qwoo0_kabis_1;
123
123
  animation-duration: var(--motion-duration-show-quick-aq3ump, 135ms);
124
124
  animation-timing-function: var(--motion-easing-show-quick-vc5zgd, ease-out);
125
125
  }
126
- @keyframes awsui_awsui-motion-fade-in-0_qwoo0_1wj13_1 {
126
+ @keyframes awsui_awsui-motion-fade-in-0_qwoo0_kabis_1 {
127
127
  from {
128
128
  opacity: 0;
129
129
  }
@@ -132,12 +132,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
132
132
  }
133
133
  }
134
134
  @media (prefers-reduced-motion: reduce) {
135
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99.awsui_refresh_qwoo0_1wj13_120:not(#\9) {
135
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99.awsui_refresh_qwoo0_kabis_120:not(#\9) {
136
136
  animation: none;
137
137
  transition: none;
138
138
  }
139
139
  }
140
- .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_1wj13_99.awsui_refresh_qwoo0_1wj13_120:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_1wj13_99.awsui_refresh_qwoo0_1wj13_120:not(#\9) {
140
+ .awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_kabis_99.awsui_refresh_qwoo0_kabis_120:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_kabis_99.awsui_refresh_qwoo0_kabis_120:not(#\9) {
141
141
  animation: none;
142
142
  transition: none;
143
143
  }
@@ -146,7 +146,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
146
146
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
147
147
  SPDX-License-Identifier: Apache-2.0
148
148
  */
149
- .awsui_root_qwoo0_1wj13_149:not(#\9) {
149
+ .awsui_root_qwoo0_kabis_149:not(#\9) {
150
150
  border-collapse: separate;
151
151
  border-spacing: 0;
152
152
  box-sizing: border-box;
@@ -183,11 +183,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
183
183
  position: relative;
184
184
  white-space: inherit;
185
185
  }
186
- .awsui_root_qwoo0_1wj13_149.awsui_interior_qwoo0_1wj13_185:not(#\9) {
186
+ .awsui_root_qwoo0_kabis_149.awsui_interior_qwoo0_kabis_185:not(#\9) {
187
187
  position: static;
188
188
  }
189
189
 
190
- .awsui_dropdown_qwoo0_1wj13_99:not(#\9) {
190
+ .awsui_dropdown_qwoo0_kabis_99:not(#\9) {
191
191
  position: absolute;
192
192
  display: none;
193
193
  z-index: 2000;
@@ -195,24 +195,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
195
195
  user-select: none;
196
196
  transform-origin: top;
197
197
  }
198
- .awsui_dropdown_qwoo0_1wj13_99.awsui_use-portal_qwoo0_1wj13_196:not(#\9) {
198
+ .awsui_dropdown_qwoo0_kabis_99.awsui_use-portal_qwoo0_kabis_196:not(#\9) {
199
199
  z-index: 7000;
200
200
  }
201
- .awsui_dropdown_qwoo0_1wj13_99:not(#\9):not(.awsui_interior_qwoo0_1wj13_185) {
201
+ .awsui_dropdown_qwoo0_kabis_99:not(#\9):not(.awsui_interior_qwoo0_kabis_185) {
202
202
  transform: translateY(0px);
203
203
  transition: transform var(--motion-duration-show-quick-aq3ump, 135ms);
204
204
  }
205
205
  @media (prefers-reduced-motion: reduce) {
206
- .awsui_dropdown_qwoo0_1wj13_99:not(#\9):not(.awsui_interior_qwoo0_1wj13_185) {
206
+ .awsui_dropdown_qwoo0_kabis_99:not(#\9):not(.awsui_interior_qwoo0_kabis_185) {
207
207
  animation: none;
208
208
  transition: none;
209
209
  }
210
210
  }
211
- .awsui-motion-disabled .awsui_dropdown_qwoo0_1wj13_99:not(#\9):not(.awsui_interior_qwoo0_1wj13_185), .awsui-mode-entering .awsui_dropdown_qwoo0_1wj13_99:not(#\9):not(.awsui_interior_qwoo0_1wj13_185) {
211
+ .awsui-motion-disabled .awsui_dropdown_qwoo0_kabis_99:not(#\9):not(.awsui_interior_qwoo0_kabis_185), .awsui-mode-entering .awsui_dropdown_qwoo0_kabis_99:not(#\9):not(.awsui_interior_qwoo0_kabis_185) {
212
212
  animation: none;
213
213
  transition: none;
214
214
  }
215
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
215
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
216
216
  position: relative;
217
217
  background-color: var(--color-background-dropdown-item-default-be16w5, #ffffff);
218
218
  outline: none;
@@ -224,7 +224,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
224
224
  border-block: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-container-top-736buh, transparent);
225
225
  box-sizing: border-box;
226
226
  }
227
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9)::after {
227
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9)::after {
228
228
  content: "";
229
229
  position: absolute;
230
230
  z-index: 1;
@@ -242,76 +242,76 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
242
242
  pointer-events: none;
243
243
  }
244
244
  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
245
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
245
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
246
246
  border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
247
247
  border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
248
248
  }
249
249
  }
250
- .awsui_dropdown-content-wrapper_qwoo0_1wj13_99.awsui_is-empty_qwoo0_1wj13_248:not(#\9)::after {
250
+ .awsui_dropdown-content-wrapper_qwoo0_kabis_99.awsui_is-empty_qwoo0_kabis_248:not(#\9)::after {
251
251
  display: none;
252
252
  }
253
- .awsui_dropdown_qwoo0_1wj13_99 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
253
+ .awsui_dropdown_qwoo0_kabis_99 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
254
254
  border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-container-top-736buh, transparent);
255
255
  border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-dropdown-group-yakmix, #b6bec9);
256
256
  }
257
- .awsui_dropdown-drop-up_qwoo0_1wj13_255 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
257
+ .awsui_dropdown-drop-up_qwoo0_kabis_255 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
258
258
  transform-origin: bottom;
259
259
  box-shadow: var(--shadow-dropup-xqkiza, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
260
260
  }
261
- .awsui_dropdown-drop-up_qwoo0_1wj13_255.awsui_with-limited-width_qwoo0_1wj13_259 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
261
+ .awsui_dropdown-drop-up_qwoo0_kabis_255.awsui_with-limited-width_qwoo0_kabis_259 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
262
262
  border-block-start: none;
263
263
  }
264
- .awsui_dropdown-drop-left_qwoo0_1wj13_262:not(#\9) {
264
+ .awsui_dropdown-drop-left_qwoo0_kabis_262:not(#\9) {
265
265
  inset-inline-end: 0;
266
266
  }
267
- .awsui_dropdown-drop-left_qwoo0_1wj13_262:not(#\9):dir(rtl) {
267
+ .awsui_dropdown-drop-left_qwoo0_kabis_262:not(#\9):dir(rtl) {
268
268
  inset-inline-end: unset;
269
269
  }
270
- .awsui_dropdown-drop-right_qwoo0_1wj13_268:not(#\9) {
270
+ .awsui_dropdown-drop-right_qwoo0_kabis_268:not(#\9) {
271
271
  inset-inline-start: 0;
272
272
  }
273
- .awsui_dropdown-drop-right_qwoo0_1wj13_268:not(#\9):dir(rtl) {
273
+ .awsui_dropdown-drop-right_qwoo0_kabis_268:not(#\9):dir(rtl) {
274
274
  inset-inline-start: unset;
275
275
  }
276
- .awsui_dropdown_qwoo0_1wj13_99.awsui_occupy-entire-width_qwoo0_1wj13_274:not(#\9) {
276
+ .awsui_dropdown_qwoo0_kabis_99.awsui_occupy-entire-width_qwoo0_kabis_274:not(#\9) {
277
277
  min-inline-size: 100%;
278
278
  }
279
- .awsui_dropdown_qwoo0_1wj13_99.awsui_stretch-beyond-trigger-width_qwoo0_1wj13_277:not(#\9) {
279
+ .awsui_dropdown_qwoo0_kabis_99.awsui_stretch-beyond-trigger-width_qwoo0_kabis_277:not(#\9) {
280
280
  inline-size: max-content;
281
- max-inline-size: var(--awsui-dropdown-default-max-width-ud5fvm, 100%);
281
+ max-inline-size: var(--awsui-dropdown-default-max-width-tkr9yl, 100%);
282
282
  }
283
- .awsui_dropdown_qwoo0_1wj13_99.awsui_interior_qwoo0_1wj13_185 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
283
+ .awsui_dropdown_qwoo0_kabis_99.awsui_interior_qwoo0_kabis_185 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
284
284
  margin-block-start: -1px;
285
285
  }
286
- .awsui_dropdown_qwoo0_1wj13_99.awsui_hide-block-border_qwoo0_1wj13_284 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
286
+ .awsui_dropdown_qwoo0_kabis_99.awsui_hide-block-border_qwoo0_kabis_284 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
287
287
  border-block-start: none;
288
288
  }
289
- .awsui_dropdown_qwoo0_1wj13_99.awsui_hide-block-border_qwoo0_1wj13_284:not(#\9):not(.awsui_dropdown-drop-up_qwoo0_1wj13_255) > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99 {
289
+ .awsui_dropdown_qwoo0_kabis_99.awsui_hide-block-border_qwoo0_kabis_284:not(#\9):not(.awsui_dropdown-drop-up_qwoo0_kabis_255) > .awsui_dropdown-content-wrapper_qwoo0_kabis_99 {
290
290
  border-block-end: none;
291
291
  }
292
- .awsui_dropdown_qwoo0_1wj13_99.awsui_hide-block-border_qwoo0_1wj13_284.awsui_refresh_qwoo0_1wj13_120 > .awsui_dropdown-content-wrapper_qwoo0_1wj13_99:not(#\9) {
292
+ .awsui_dropdown_qwoo0_kabis_99.awsui_hide-block-border_qwoo0_kabis_284.awsui_refresh_qwoo0_kabis_120 > .awsui_dropdown-content-wrapper_qwoo0_kabis_99:not(#\9) {
293
293
  border-block-end: none;
294
294
  }
295
- .awsui_dropdown_qwoo0_1wj13_99.awsui_open_qwoo0_1wj13_293:not(#\9) {
295
+ .awsui_dropdown_qwoo0_kabis_99.awsui_open_qwoo0_kabis_293:not(#\9) {
296
296
  display: block;
297
297
  }
298
- .awsui_dropdown_qwoo0_1wj13_99.awsui_open_qwoo0_1wj13_293:not(#\9):not(.awsui_interior_qwoo0_1wj13_185).awsui_refresh_qwoo0_1wj13_120[data-animating=true] {
298
+ .awsui_dropdown_qwoo0_kabis_99.awsui_open_qwoo0_kabis_293:not(#\9):not(.awsui_interior_qwoo0_kabis_185).awsui_refresh_qwoo0_kabis_120[data-animating=true] {
299
299
  transform: translateY(4px);
300
300
  }
301
- .awsui_dropdown_qwoo0_1wj13_99.awsui_open_qwoo0_1wj13_293:not(#\9):not(.awsui_interior_qwoo0_1wj13_185).awsui_refresh_qwoo0_1wj13_120[data-animating=true].awsui_dropdown-drop-up_qwoo0_1wj13_255 {
301
+ .awsui_dropdown_qwoo0_kabis_99.awsui_open_qwoo0_kabis_293:not(#\9):not(.awsui_interior_qwoo0_kabis_185).awsui_refresh_qwoo0_kabis_120[data-animating=true].awsui_dropdown-drop-up_qwoo0_kabis_255 {
302
302
  transform: translateY(-4px);
303
303
  }
304
- .awsui_dropdown_qwoo0_1wj13_99.awsui_open_qwoo0_1wj13_293.awsui_nowrap_qwoo0_1wj13_302:not(#\9) {
304
+ .awsui_dropdown_qwoo0_kabis_99.awsui_open_qwoo0_kabis_293.awsui_nowrap_qwoo0_kabis_302:not(#\9) {
305
305
  white-space: nowrap;
306
306
  overflow: scroll;
307
307
  }
308
308
 
309
- .awsui_dropdown-content_qwoo0_1wj13_99:not(#\9) {
309
+ .awsui_dropdown-content_qwoo0_kabis_99:not(#\9) {
310
310
  display: flex;
311
311
  flex-direction: column;
312
312
  inline-size: 100%;
313
313
  }
314
314
 
315
- .awsui_stretch-trigger-height_qwoo0_1wj13_313:not(#\9) {
315
+ .awsui_stretch-trigger-height_qwoo0_kabis_313:not(#\9) {
316
316
  block-size: 100%;
317
317
  }
@@ -2,25 +2,25 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_1wj13_99",
6
- "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_1wj13_1",
7
- "refresh": "awsui_refresh_qwoo0_1wj13_120",
8
- "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_1wj13_1",
9
- "root": "awsui_root_qwoo0_1wj13_149",
10
- "interior": "awsui_interior_qwoo0_1wj13_185",
11
- "dropdown": "awsui_dropdown_qwoo0_1wj13_99",
12
- "use-portal": "awsui_use-portal_qwoo0_1wj13_196",
13
- "is-empty": "awsui_is-empty_qwoo0_1wj13_248",
14
- "dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_1wj13_255",
15
- "with-limited-width": "awsui_with-limited-width_qwoo0_1wj13_259",
16
- "dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_1wj13_262",
17
- "dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_1wj13_268",
18
- "occupy-entire-width": "awsui_occupy-entire-width_qwoo0_1wj13_274",
19
- "stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_1wj13_277",
20
- "hide-block-border": "awsui_hide-block-border_qwoo0_1wj13_284",
21
- "open": "awsui_open_qwoo0_1wj13_293",
22
- "nowrap": "awsui_nowrap_qwoo0_1wj13_302",
23
- "dropdown-content": "awsui_dropdown-content_qwoo0_1wj13_99",
24
- "stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_1wj13_313"
5
+ "dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_kabis_99",
6
+ "awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_kabis_1",
7
+ "refresh": "awsui_refresh_qwoo0_kabis_120",
8
+ "awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_kabis_1",
9
+ "root": "awsui_root_qwoo0_kabis_149",
10
+ "interior": "awsui_interior_qwoo0_kabis_185",
11
+ "dropdown": "awsui_dropdown_qwoo0_kabis_99",
12
+ "use-portal": "awsui_use-portal_qwoo0_kabis_196",
13
+ "is-empty": "awsui_is-empty_qwoo0_kabis_248",
14
+ "dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_kabis_255",
15
+ "with-limited-width": "awsui_with-limited-width_qwoo0_kabis_259",
16
+ "dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_kabis_262",
17
+ "dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_kabis_268",
18
+ "occupy-entire-width": "awsui_occupy-entire-width_qwoo0_kabis_274",
19
+ "stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_kabis_277",
20
+ "hide-block-border": "awsui_hide-block-border_qwoo0_kabis_284",
21
+ "open": "awsui_open_qwoo0_kabis_293",
22
+ "nowrap": "awsui_nowrap_qwoo0_kabis_302",
23
+ "dropdown-content": "awsui_dropdown-content_qwoo0_kabis_99",
24
+ "stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_kabis_313"
25
25
  };
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-highlight-option.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IACL,IAAI,EAAE,UAAU,GAAG,OAAO;IAAS,SAAS,EAAE,OAAO;gBAArD,IAAI,EAAE,UAAU,GAAG,OAAO,EAAS,SAAS,GAAE,OAA6B;CAC/F;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,eAAe,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB,CAAC,UAAU;IAEnD,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvE,yBAAyB,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACnD,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACtD,0BAA0B,IAAI,IAAI,CAAC;IACnC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,iBAAiB,IAAI,IAAI,CAAC;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,EAC/C,OAAO,EACP,eAAe,GAChB,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC,CA8ClH"}
1
+ {"version":3,"file":"use-highlight-option.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IAEf,IAAI,EAAE,UAAU,GAAG,OAAO;IAC1B,SAAS,EAAE,OAAO;gBADlB,IAAI,EAAE,UAAU,GAAG,OAAO,EAC1B,SAAS,GAAE,OAA6B;CAElD;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,eAAe,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,OAAO,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB,CAAC,UAAU;IAChD,aAAa,EAAE,aAAa,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC;AAED,MAAM,WAAW,yBAAyB,CAAC,UAAU;IAEnD,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvE,yBAAyB,CAAC,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IACnD,2BAA2B,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACtD,0BAA0B,IAAI,IAAI,CAAC;IACnC,kBAAkB,IAAI,IAAI,CAAC;IAC3B,iBAAiB,IAAI,IAAI,CAAC;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,EAC/C,OAAO,EACP,eAAe,GAChB,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC,UAAU,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAC,CA8ClH"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-highlight-option.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,OAAO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AAa,CAAC,UAAU,CAAC,CAAC;SAC9F;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useState } from 'react';\n\nexport class HighlightType {\n constructor(public type: 'keyboard' | 'mouse', public moveFocus: boolean = type === 'keyboard') {}\n}\n\nexport interface HighlightedOptionProps<OptionType> {\n options: readonly OptionType[];\n isHighlightable: (option: OptionType) => boolean;\n}\n\nexport interface HighlightedOptionState<OptionType> {\n highlightType: HighlightType;\n highlightedIndex: number;\n highlightedOption?: OptionType;\n}\n\nexport interface HighlightedOptionHandlers<OptionType> {\n // Mouse handlers\n setHighlightedIndexWithMouse(index: number, moveFocus?: boolean): void;\n // Keyboard handlers\n moveHighlightWithKeyboard(direction: -1 | 1): void;\n highlightOptionWithKeyboard(option: OptionType): void;\n resetHighlightWithKeyboard(): void;\n goHomeWithKeyboard(): void;\n goEndWithKeyboard(): void;\n}\n\nexport function useHighlightedOption<OptionType>({\n options,\n isHighlightable,\n}: HighlightedOptionProps<OptionType>): [HighlightedOptionState<OptionType>, HighlightedOptionHandlers<OptionType>] {\n const [highlightedIndex, setHighlightedIndexState] = useState(-1);\n const [highlightType, setHighlightType] = useState<HighlightType>(new HighlightType('keyboard'));\n const setHighlightedIndex = useCallback((index: number, highlightType: HighlightType) => {\n setHighlightedIndexState(index);\n setHighlightType(highlightType);\n }, []);\n\n const highlightedOption =\n options[highlightedIndex] && isHighlightable(options[highlightedIndex]) ? options[highlightedIndex] : undefined;\n\n const moveHighlightFrom = (direction: -1 | 1, startIndex = highlightedIndex, highlightType: HighlightType) => {\n const fromBottomEnd = startIndex === -1 && direction === -1;\n let newIndex = fromBottomEnd ? options.length : startIndex;\n do {\n newIndex += direction;\n } while (options[newIndex] && !isHighlightable(options[newIndex]));\n\n if (options[newIndex]) {\n setHighlightedIndex(newIndex, highlightType);\n }\n };\n\n const moveHighlight = (direction: -1 | 1, highlightType: HighlightType) =>\n moveHighlightFrom(direction, highlightedIndex, highlightType);\n\n const highlightOption = useCallback(\n (option: OptionType, highlightType: HighlightType) => {\n const index = options.indexOf(option);\n setHighlightedIndex(index, highlightType);\n },\n [options, setHighlightedIndex]\n );\n\n return [\n { highlightType, highlightedIndex, highlightedOption },\n {\n setHighlightedIndexWithMouse: (index: number, moveFocus = false) =>\n setHighlightedIndex(index, new HighlightType('mouse', moveFocus)),\n moveHighlightWithKeyboard: (direction: -1 | 1) => moveHighlight(direction, new HighlightType('keyboard')),\n highlightOptionWithKeyboard: (option: OptionType) => highlightOption(option, new HighlightType('keyboard')),\n resetHighlightWithKeyboard: () => setHighlightedIndex(-1, new HighlightType('keyboard')),\n goHomeWithKeyboard: () => moveHighlightFrom(1, -1, new HighlightType('keyboard')),\n goEndWithKeyboard: () => moveHighlightFrom(-1, options.length, new HighlightType('keyboard')),\n },\n ];\n}\n"]}
1
+ {"version":3,"file":"use-highlight-option.js","sourceRoot":"","sources":["../../../../../../src/internal/components/options-list/utils/use-highlight-option.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,OAAO,aAAa;IACxB,YACS,IAA0B,EAC1B,YAAqB,IAAI,KAAK,UAAU;QADxC,SAAI,GAAJ,IAAI,CAAsB;QAC1B,cAAS,GAAT,SAAS,CAA+B;IAC9C,CAAC;CACL;AAwBD,MAAM,UAAU,oBAAoB,CAAa,EAC/C,OAAO,EACP,eAAe,GACoB;IACnC,MAAM,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAClE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAgB,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjG,MAAM,mBAAmB,GAAG,WAAW,CAAC,CAAC,KAAa,EAAE,aAA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EF,OAAO;QACL,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE;QACtD;YACE,4BAA4B,EAAE,CAAC,KAAa,EAAE,SAAS,GAAG,KAAK,EAAE,EAAE,CACjE,mBAAmB,CAAC,KAAK,EAAE,IAAI,aAAa,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;YACnE,yBAAyB,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACzG,2BAA2B,EAAE,CAAC,MAAkB,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YAC3G,0BAA0B,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACxF,kBAAkB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;YACjF,iBAAiB,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,EAAE,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;SAC9F;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { useCallback, useState } from 'react';\n\nexport class HighlightType {\n constructor(\n public type: 'keyboard' | 'mouse',\n public moveFocus: boolean = type === 'keyboard'\n ) {}\n}\n\nexport interface HighlightedOptionProps<OptionType> {\n options: readonly OptionType[];\n isHighlightable: (option: OptionType) => boolean;\n}\n\nexport interface HighlightedOptionState<OptionType> {\n highlightType: HighlightType;\n highlightedIndex: number;\n highlightedOption?: OptionType;\n}\n\nexport interface HighlightedOptionHandlers<OptionType> {\n // Mouse handlers\n setHighlightedIndexWithMouse(index: number, moveFocus?: boolean): void;\n // Keyboard handlers\n moveHighlightWithKeyboard(direction: -1 | 1): void;\n highlightOptionWithKeyboard(option: OptionType): void;\n resetHighlightWithKeyboard(): void;\n goHomeWithKeyboard(): void;\n goEndWithKeyboard(): void;\n}\n\nexport function useHighlightedOption<OptionType>({\n options,\n isHighlightable,\n}: HighlightedOptionProps<OptionType>): [HighlightedOptionState<OptionType>, HighlightedOptionHandlers<OptionType>] {\n const [highlightedIndex, setHighlightedIndexState] = useState(-1);\n const [highlightType, setHighlightType] = useState<HighlightType>(new HighlightType('keyboard'));\n const setHighlightedIndex = useCallback((index: number, highlightType: HighlightType) => {\n setHighlightedIndexState(index);\n setHighlightType(highlightType);\n }, []);\n\n const highlightedOption =\n options[highlightedIndex] && isHighlightable(options[highlightedIndex]) ? options[highlightedIndex] : undefined;\n\n const moveHighlightFrom = (direction: -1 | 1, startIndex = highlightedIndex, highlightType: HighlightType) => {\n const fromBottomEnd = startIndex === -1 && direction === -1;\n let newIndex = fromBottomEnd ? options.length : startIndex;\n do {\n newIndex += direction;\n } while (options[newIndex] && !isHighlightable(options[newIndex]));\n\n if (options[newIndex]) {\n setHighlightedIndex(newIndex, highlightType);\n }\n };\n\n const moveHighlight = (direction: -1 | 1, highlightType: HighlightType) =>\n moveHighlightFrom(direction, highlightedIndex, highlightType);\n\n const highlightOption = useCallback(\n (option: OptionType, highlightType: HighlightType) => {\n const index = options.indexOf(option);\n setHighlightedIndex(index, highlightType);\n },\n [options, setHighlightedIndex]\n );\n\n return [\n { highlightType, highlightedIndex, highlightedOption },\n {\n setHighlightedIndexWithMouse: (index: number, moveFocus = false) =>\n setHighlightedIndex(index, new HighlightType('mouse', moveFocus)),\n moveHighlightWithKeyboard: (direction: -1 | 1) => moveHighlight(direction, new HighlightType('keyboard')),\n highlightOptionWithKeyboard: (option: OptionType) => highlightOption(option, new HighlightType('keyboard')),\n resetHighlightWithKeyboard: () => setHighlightedIndex(-1, new HighlightType('keyboard')),\n goHomeWithKeyboard: () => moveHighlightFrom(1, -1, new HighlightType('keyboard')),\n goEndWithKeyboard: () => moveHighlightFrom(-1, options.length, new HighlightType('keyboard')),\n },\n ];\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  export const PACKAGE_SOURCE: string;
2
2
  export const PACKAGE_VERSION: string;
3
3
  export const THEME: string;
4
- export const ALWAYS_VISUAL_REFRESH: string;
4
+ export const ALWAYS_VISUAL_REFRESH: string;
@@ -1,4 +1,4 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (501edea5)";
2
+ export var PACKAGE_VERSION = "3.0.0 (23c9b8eb)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (501edea5)",
3
+ "PACKAGE_VERSION": "3.0.0 (23c9b8eb)",
4
4
  "THEME": "default",
5
5
  "ALWAYS_VISUAL_REFRESH": false
6
- }
6
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,yBAAyB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEvG,MAAM,MAAM,sBAAsB,CAAC,MAAM,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEvF,MAAM,MAAM,wBAAwB,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAgBnG,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EA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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/ban-types\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/ban-types\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(public cancelable: boolean = false, public detail: T | null = null) {}\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}\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(handler: CancelableEventHandler<BaseKeyDetail>, reactEvent: React.KeyboardEvent) {\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 },\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":"AAYA,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;AAyBD,MAAM,UAAU,iBAAiB,CAAI,EAAE,UAAU,EAAE,MAAM,EAAsB;IAC7E,OAAO,IAAI,eAAe,CAAC,UAAU,EAAE,MAAM,CAAgB,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAW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,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\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/ban-types\nexport type NonCancelableEventHandler<Detail = {}> = (event: NonCancelableCustomEvent<Detail>) => void;\n// eslint-disable-next-line @typescript-eslint/ban-types\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}\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(handler: CancelableEventHandler<BaseKeyDetail>, reactEvent: React.KeyboardEvent) {\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 },\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 +1 @@
1
- {"version":3,"file":"focus-tracker.d.ts","sourceRoot":"","sources":["../../../src/internal/focus-tracker.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAMnB,OAAO,CAAC,IAAI;IALxB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAE1C,OAAO,CAAC,gBAAgB,CAAS;gBAEb,IAAI,EAAE,WAAW,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,mBAAmB;IAK1F,UAAU;IAMV,OAAO;IAKP,OAAO,CAAC,eAAe,CAKrB;IAEF,OAAO,CAAC,gBAAgB,CAMtB;IAEF,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,YAAY;CAIrB"}
1
+ {"version":3,"file":"focus-tracker.d.ts","sourceRoot":"","sources":["../../../src/internal/focus-tracker.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAO7B,OAAO,CAAC,IAAI;IANd,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAC1C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;IAE1C,OAAO,CAAC,gBAAgB,CAAS;gBAGvB,IAAI,EAAE,WAAW,EACzB,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,mBAAmB;IAMrD,UAAU;IAMV,OAAO;IAKP,OAAO,CAAC,eAAe,CAKrB;IAEF,OAAO,CAAC,gBAAgB,CAMtB;IAEF,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,YAAY;CAIrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"focus-tracker.js","sourceRoot":"","sources":["../../../src/internal/focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD,MAAM,CAAC,OAAO,OAAO,YAAY;IAM/B,YAAoB,IAAiB,EAAE,EAAE,YAAY,EAAE,YAAY,EAAuB;QAAtE,SAAI,GAAJ,IAAI,CAAa;QAF7B,qBAAgB,GAAG,KAAK,CAAC;QAkBzB,oBAAe,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC9C,MAAM,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAA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AAC;IACtB,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nodeBelongs } from './utils/node-belongs';\n\ninterface FocusTrackerOptions {\n onFocusEnter: () => void;\n onFocusLeave: () => void;\n}\n\nexport default class FocusTracker {\n private readonly onFocusLeave: () => void;\n private readonly onFocusEnter: () => void;\n\n private currentlyFocused = false;\n\n constructor(private node: HTMLElement, { onFocusEnter, onFocusLeave }: FocusTrackerOptions) {\n this.onFocusEnter = onFocusEnter;\n this.onFocusLeave = onFocusLeave;\n }\n\n initialize() {\n this.currentlyFocused = nodeBelongs(this.node, document.activeElement);\n document.addEventListener('focusin', this.focusInListener);\n document.addEventListener('focusout', this.focusOutListener);\n }\n\n destroy() {\n document.removeEventListener('focusin', this.focusInListener);\n document.removeEventListener('focusout', this.focusOutListener);\n }\n\n private focusInListener = (event: FocusEvent) => {\n const focusIsInside = nodeBelongs(this.node, event.target);\n if (!this.currentlyFocused && focusIsInside) {\n this.triggerFocus();\n }\n };\n\n private focusOutListener = (event: FocusEvent) => {\n const nextFocused = event.relatedTarget;\n const isNextFocusedInParent = !nodeBelongs(this.node, nextFocused);\n if (this.currentlyFocused && (nextFocused === null || isNextFocusedInParent)) {\n this.triggerBlur();\n }\n };\n\n private triggerBlur() {\n this.currentlyFocused = false;\n this.onFocusLeave();\n }\n\n private triggerFocus() {\n this.currentlyFocused = true;\n this.onFocusEnter();\n }\n}\n"]}
1
+ {"version":3,"file":"focus-tracker.js","sourceRoot":"","sources":["../../../src/internal/focus-tracker.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOnD,MAAM,CAAC,OAAO,OAAO,YAAY;IAM/B,YACU,IAAiB,EACzB,EAAE,YAAY,EAAE,YAAY,EAAuB;QAD3C,SAAI,GAAJ,IAAI,CAAa;QAHnB,qBAAgB,GAAG,KA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Y,EAAE,CAAC;IACtB,CAAC;IAEO,YAAY;QAClB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nodeBelongs } from './utils/node-belongs';\n\ninterface FocusTrackerOptions {\n onFocusEnter: () => void;\n onFocusLeave: () => void;\n}\n\nexport default class FocusTracker {\n private readonly onFocusLeave: () => void;\n private readonly onFocusEnter: () => void;\n\n private currentlyFocused = false;\n\n constructor(\n private node: HTMLElement,\n { onFocusEnter, onFocusLeave }: FocusTrackerOptions\n ) {\n this.onFocusEnter = onFocusEnter;\n this.onFocusLeave = onFocusLeave;\n }\n\n initialize() {\n this.currentlyFocused = nodeBelongs(this.node, document.activeElement);\n document.addEventListener('focusin', this.focusInListener);\n document.addEventListener('focusout', this.focusOutListener);\n }\n\n destroy() {\n document.removeEventListener('focusin', this.focusInListener);\n document.removeEventListener('focusout', this.focusOutListener);\n }\n\n private focusInListener = (event: FocusEvent) => {\n const focusIsInside = nodeBelongs(this.node, event.target);\n if (!this.currentlyFocused && focusIsInside) {\n this.triggerFocus();\n }\n };\n\n private focusOutListener = (event: FocusEvent) => {\n const nextFocused = event.relatedTarget;\n const isNextFocusedInParent = !nodeBelongs(this.node, nextFocused);\n if (this.currentlyFocused && (nextFocused === null || isNextFocusedInParent)) {\n this.triggerBlur();\n }\n };\n\n private triggerBlur() {\n this.currentlyFocused = false;\n this.onFocusLeave();\n }\n\n private triggerFocus() {\n this.currentlyFocused = true;\n this.onFocusEnter();\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4ClD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAC,MAAM,CAoDjD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
@@ -1,47 +1,55 @@
1
1
  const customCSSPropertiesMap = {
2
- breadcrumbsGap: '--awsui-breadcrumbs-gap-ud5fvm',
3
- contentGapLeft: '--awsui-content-gap-left-ud5fvm',
4
- contentGapRight: '--awsui-content-gap-right-ud5fvm',
5
- contentHeight: '--awsui-content-height-ud5fvm',
6
- defaultMaxContentWidth: '--awsui-default-max-content-width-ud5fvm',
7
- defaultMinContentWidth: '--awsui-default-min-content-width-ud5fvm',
8
- drawerSize: '--awsui-drawer-size-ud5fvm',
9
- footerHeight: '--awsui-footer-height-ud5fvm',
10
- headerGap: '--awsui-header-gap-ud5fvm',
11
- headerHeight: '--awsui-header-height-ud5fvm',
12
- layoutWidth: '--awsui-layout-width-ud5fvm',
13
- mainGap: '--awsui-main-gap-ud5fvm',
14
- mainOffsetLeft: '--awsui-main-offset-left-ud5fvm',
15
- mainTemplateRows: '--awsui-main-template-rows-ud5fvm',
16
- maxContentWidth: '--awsui-max-content-width-ud5fvm',
17
- minContentWidth: '--awsui-min-content-width-ud5fvm',
18
- mobileBarHeight: '--awsui-mobile-bar-height-ud5fvm',
19
- notificationsGap: '--awsui-notifications-gap-ud5fvm',
20
- notificationsHeight: '--awsui-notifications-height-ud5fvm',
21
- offsetTop: '--awsui-offset-top-ud5fvm',
22
- overlapHeight: '--awsui-overlap-height-ud5fvm',
23
- navigationWidth: '--awsui-navigation-width-ud5fvm',
24
- splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-ud5fvm',
25
- splitPanelReportedSize: '--awsui-split-panel-reported-size-ud5fvm',
26
- splitPanelHeight: '--awsui-split-panel-height-ud5fvm',
27
- splitPanelMinWidth: '--awsui-split-panel-min-width-ud5fvm',
28
- splitPanelMaxWidth: '--awsui-split-panel-max-width-ud5fvm',
29
- toolsMaxWidth: '--awsui-tools-max-width-ud5fvm',
30
- toolsWidth: '--awsui-tools-width-ud5fvm',
31
- toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-ud5fvm',
32
- contentScrollMargin: '--awsui-content-scroll-margin-ud5fvm',
33
- flashbarStackDepth: '--awsui-flashbar-stack-depth-ud5fvm',
34
- flashbarStackIndex: '--awsui-flashbar-stack-index-ud5fvm',
35
- flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-ud5fvm',
36
- stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-ud5fvm',
37
- stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-ud5fvm',
38
- dropdownDefaultMaxWidth: '--awsui-dropdown-default-max-width-ud5fvm',
39
- spinnerRotatorFrom: '--awsui-spinner-rotator-from-ud5fvm',
40
- spinnerRotatorTo: '--awsui-spinner-rotator-to-ud5fvm',
41
- spinnerLineLeftFrom: '--awsui-spinner-line-left-from-ud5fvm',
42
- spinnerLineLeftTo: '--awsui-spinner-line-left-to-ud5fvm',
43
- spinnerLineRightFrom: '--awsui-spinner-line-right-from-ud5fvm',
44
- spinnerLineRightTo: '--awsui-spinner-line-right-to-ud5fvm',
2
+ "breadcrumbsGap": "--awsui-breadcrumbs-gap-tkr9yl",
3
+ "contentGapLeft": "--awsui-content-gap-left-tkr9yl",
4
+ "contentGapRight": "--awsui-content-gap-right-tkr9yl",
5
+ "contentHeight": "--awsui-content-height-tkr9yl",
6
+ "defaultMaxContentWidth": "--awsui-default-max-content-width-tkr9yl",
7
+ "defaultMinContentWidth": "--awsui-default-min-content-width-tkr9yl",
8
+ "drawerSize": "--awsui-drawer-size-tkr9yl",
9
+ "footerHeight": "--awsui-footer-height-tkr9yl",
10
+ "headerGap": "--awsui-header-gap-tkr9yl",
11
+ "headerHeight": "--awsui-header-height-tkr9yl",
12
+ "layoutWidth": "--awsui-layout-width-tkr9yl",
13
+ "mainGap": "--awsui-main-gap-tkr9yl",
14
+ "mainOffsetLeft": "--awsui-main-offset-left-tkr9yl",
15
+ "mainTemplateRows": "--awsui-main-template-rows-tkr9yl",
16
+ "maxContentWidth": "--awsui-max-content-width-tkr9yl",
17
+ "minContentWidth": "--awsui-min-content-width-tkr9yl",
18
+ "mobileBarHeight": "--awsui-mobile-bar-height-tkr9yl",
19
+ "notificationsGap": "--awsui-notifications-gap-tkr9yl",
20
+ "notificationsHeight": "--awsui-notifications-height-tkr9yl",
21
+ "offsetTop": "--awsui-offset-top-tkr9yl",
22
+ "overlapHeight": "--awsui-overlap-height-tkr9yl",
23
+ "navigationWidth": "--awsui-navigation-width-tkr9yl",
24
+ "splitPanelReportedHeaderSize": "--awsui-split-panel-reported-header-size-tkr9yl",
25
+ "splitPanelReportedSize": "--awsui-split-panel-reported-size-tkr9yl",
26
+ "splitPanelHeight": "--awsui-split-panel-height-tkr9yl",
27
+ "splitPanelMinWidth": "--awsui-split-panel-min-width-tkr9yl",
28
+ "splitPanelMaxWidth": "--awsui-split-panel-max-width-tkr9yl",
29
+ "toolsMaxWidth": "--awsui-tools-max-width-tkr9yl",
30
+ "toolsWidth": "--awsui-tools-width-tkr9yl",
31
+ "toolsAnimationStartingOpacity": "--awsui-tools-animation-starting-opacity-tkr9yl",
32
+ "contentScrollMargin": "--awsui-content-scroll-margin-tkr9yl",
33
+ "flashbarStackDepth": "--awsui-flashbar-stack-depth-tkr9yl",
34
+ "flashbarStackIndex": "--awsui-flashbar-stack-index-tkr9yl",
35
+ "flashbarStickyBottomMargin": "--awsui-flashbar-sticky-bottom-margin-tkr9yl",
36
+ "stackedNotificationsBottomMargin": "--awsui-stacked-notifications-bottom-margin-tkr9yl",
37
+ "stackedNotificationsDefaultBottomMargin": "--awsui-stacked-notifications-default-bottom-margin-tkr9yl",
38
+ "dropdownDefaultMaxWidth": "--awsui-dropdown-default-max-width-tkr9yl",
39
+ "spinnerRotatorFrom": "--awsui-spinner-rotator-from-tkr9yl",
40
+ "spinnerRotatorTo": "--awsui-spinner-rotator-to-tkr9yl",
41
+ "spinnerLineLeftFrom": "--awsui-spinner-line-left-from-tkr9yl",
42
+ "spinnerLineLeftTo": "--awsui-spinner-line-left-to-tkr9yl",
43
+ "spinnerLineRightFrom": "--awsui-spinner-line-right-from-tkr9yl",
44
+ "spinnerLineRightTo": "--awsui-spinner-line-right-to-tkr9yl",
45
+ "sliderLabelCount": "--awsui-slider-label-count-tkr9yl",
46
+ "sliderTickCount": "--awsui-slider-tick-count-tkr9yl",
47
+ "sliderReferenceColumn": "--awsui-slider-reference-column-tkr9yl",
48
+ "sliderNextReferenceColumn": "--awsui-slider-next-reference-column-tkr9yl",
49
+ "sliderMaxStart": "--awsui-slider-max-start-tkr9yl",
50
+ "sliderMinEnd": "--awsui-slider-min-end-tkr9yl",
51
+ "sliderRangeInlineSize": "--awsui-slider-range-inline-size-tkr9yl",
52
+ "sliderTooltipPosition": "--awsui-slider-tooltip-position-tkr9yl",
45
53
  };
46
54
  export default customCSSPropertiesMap;
47
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAA2B;IACrD,cAAc,EAAE,gCAAgC;IAChD,cAAc,EAAE,iCAAiC;IACjD,eAAe,EAAE,kCAAkC;IACnD,aAAa,EAAE,+BAA+B;IAC9C,sBAAsB,EAAE,0CAA0C;IAClE,sBAAsB,EAAE,0CAA0C;IAClE,UAAU,EAAE,4BAA4B;IACxC,YAAY,EAAE,8BAA8B;IAC5C,SAAS,EAAE,2BAA2B;IACtC,YAAY,EAAE,8BAA8B;IAC5C,WAAW,EAAE,6BAA6B;IAC1C,OAAO,EAAE,yBAAyB;IAClC,cAAc,EAAE,iCAAiC;IACjD,gBAAgB,EAAE,mCAAmC;IACrD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,eAAe,EAAE,kCAAkC;IACnD,gBAAgB,EAAE,kCAAkC;IACpD,mBAAmB,EAAE,qCAAqC;IAC1D,SAAS,EAAE,2BAA2B;IACtC,aAAa,EAAE,+BAA+B;IAC9C,eAAe,EAAE,iCAAiC;IAClD,4BAA4B,EAAE,iDAAiD;IAC/E,sBAAsB,EAAE,0CAA0C;IAClE,gBAAgB,EAAE,mCAAmC;IACrD,kBAAkB,EAAE,sCAAsC;IAC1D,kBAAkB,EAAE,sCAAsC;IAC1D,aAAa,EAAE,gCAAgC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,6BAA6B,EAAE,iDAAiD;IAChF,mBAAmB,EAAE,sCAAsC;IAC3D,kBAAkB,EAAE,qCAAqC;IACzD,kBAAkB,EAAE,qCAAqC;IACzD,0BAA0B,EAAE,8CAA8C;IAC1E,gCAAgC,EAAE,oDAAoD;IACtF,uCAAuC,EAAE,4DAA4D;IACrG,uBAAuB,EAAE,2CAA2C;IACpE,kBAAkB,EAAE,qCAAqC;IACzD,gBAAgB,EAAE,mCAAmC;IACrD,mBAAmB,EAAE,uCAAuC;IAC5D,iBAAiB,EAAE,qCAAqC;IACxD,oBAAoB,EAAE,wCAAwC;IAC9D,kBAAkB,EAAE,sCAAsC;CAC3D,CAAC;AACF,eAAe,sBAAsB,CAAC","sourcesContent":["const customCSSPropertiesMap: Record<string, string> = {\n breadcrumbsGap: '--awsui-breadcrumbs-gap-ud5fvm',\n contentGapLeft: '--awsui-content-gap-left-ud5fvm',\n contentGapRight: '--awsui-content-gap-right-ud5fvm',\n contentHeight: '--awsui-content-height-ud5fvm',\n defaultMaxContentWidth: '--awsui-default-max-content-width-ud5fvm',\n defaultMinContentWidth: '--awsui-default-min-content-width-ud5fvm',\n drawerSize: '--awsui-drawer-size-ud5fvm',\n footerHeight: '--awsui-footer-height-ud5fvm',\n headerGap: '--awsui-header-gap-ud5fvm',\n headerHeight: '--awsui-header-height-ud5fvm',\n layoutWidth: '--awsui-layout-width-ud5fvm',\n mainGap: '--awsui-main-gap-ud5fvm',\n mainOffsetLeft: '--awsui-main-offset-left-ud5fvm',\n mainTemplateRows: '--awsui-main-template-rows-ud5fvm',\n maxContentWidth: '--awsui-max-content-width-ud5fvm',\n minContentWidth: '--awsui-min-content-width-ud5fvm',\n mobileBarHeight: '--awsui-mobile-bar-height-ud5fvm',\n notificationsGap: '--awsui-notifications-gap-ud5fvm',\n notificationsHeight: '--awsui-notifications-height-ud5fvm',\n offsetTop: '--awsui-offset-top-ud5fvm',\n overlapHeight: '--awsui-overlap-height-ud5fvm',\n navigationWidth: '--awsui-navigation-width-ud5fvm',\n splitPanelReportedHeaderSize: '--awsui-split-panel-reported-header-size-ud5fvm',\n splitPanelReportedSize: '--awsui-split-panel-reported-size-ud5fvm',\n splitPanelHeight: '--awsui-split-panel-height-ud5fvm',\n splitPanelMinWidth: '--awsui-split-panel-min-width-ud5fvm',\n splitPanelMaxWidth: '--awsui-split-panel-max-width-ud5fvm',\n toolsMaxWidth: '--awsui-tools-max-width-ud5fvm',\n toolsWidth: '--awsui-tools-width-ud5fvm',\n toolsAnimationStartingOpacity: '--awsui-tools-animation-starting-opacity-ud5fvm',\n contentScrollMargin: '--awsui-content-scroll-margin-ud5fvm',\n flashbarStackDepth: '--awsui-flashbar-stack-depth-ud5fvm',\n flashbarStackIndex: '--awsui-flashbar-stack-index-ud5fvm',\n flashbarStickyBottomMargin: '--awsui-flashbar-sticky-bottom-margin-ud5fvm',\n stackedNotificationsBottomMargin: '--awsui-stacked-notifications-bottom-margin-ud5fvm',\n stackedNotificationsDefaultBottomMargin: '--awsui-stacked-notifications-default-bottom-margin-ud5fvm',\n dropdownDefaultMaxWidth: '--awsui-dropdown-default-max-width-ud5fvm',\n spinnerRotatorFrom: '--awsui-spinner-rotator-from-ud5fvm',\n spinnerRotatorTo: '--awsui-spinner-rotator-to-ud5fvm',\n spinnerLineLeftFrom: '--awsui-spinner-line-left-from-ud5fvm',\n spinnerLineLeftTo: '--awsui-spinner-line-left-to-ud5fvm',\n spinnerLineRightFrom: '--awsui-spinner-line-right-from-ud5fvm',\n spinnerLineRightTo: '--awsui-spinner-line-right-to-ud5fvm',\n};\nexport default customCSSPropertiesMap;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AACM,MAAM,sBAAsB,GAA0B;IACpD,gBAAgB,EAAE,gCAAgC;IAC1D,gBAAgB,EAAE,iCAAiC;IACnD,iBAAiB,EAAE,kCAAkC;IACrD,eAAe,EAAE,+BAA+B;IAChD,wBAAwB,EAAE,0CAA0C;IACpE,wBAAwB,EAAE,0CAA0C;IACpE,YAAY,EAAE,4BAA4B;IAC1C,cAAc,EAAE,8BAA8B;IAC9C,WAAW,EAAE,2BAA2B;IACxC,cAAc,EAAE,8BAA8B;IAC9C,aAAa,EAAE,6BAA6B;IAC5C,SAAS,EAAE,yBAAyB;IACpC,gBAAgB,EAAE,iCAAiC;IACnD,kBAAkB,EAAE,mCAAmC;IACvD,iBAAiB,EAAE,kCAAkC;IACrD,iBAAiB,EAAE,kCAAkC;IACrD,iBAAiB,EAAE,kCAAkC;IACrD,kBAAkB,EAAE,kCAAkC;IACtD,qBAAqB,EAAE,qCAAqC;IAC5D,WAAW,EAAE,2BAA2B;IACxC,eAAe,EAAE,+BAA+B;IAChD,iBAAiB,EAAE,iCAAiC;IACpD,8BAA8B,EAAE,iDAAiD;IACjF,wBAAwB,EAAE,0CAA0C;IACpE,kBAAkB,EAAE,mCAAmC;IACvD,oBAAoB,EAAE,sCAAsC;IAC5D,oBAAoB,EAAE,sCAAsC;IAC5D,eAAe,EAAE,gCAAgC;IACjD,YAAY,EAAE,4BAA4B;IAC1C,+BAA+B,EAAE,iDAAiD;IAClF,qBAAqB,EAAE,sCAAsC;IAC7D,oBAAoB,EAAE,qCAAqC;IAC3D,oBAAoB,EAAE,qCAAqC;IAC3D,4BAA4B,EAAE,8CAA8C;IAC5E,kCAAkC,EAAE,oDAAoD;IACxF,yCAAyC,EAAE,4DAA4D;IACvG,yBAAyB,EAAE,2CAA2C;IACtE,oBAAoB,EAAE,qCAAqC;IAC3D,kBAAkB,EAAE,mCAAmC;IACvD,qBAAqB,EAAE,uCAAuC;IAC9D,mBAAmB,EAAE,qCAAqC;IAC1D,sBAAsB,EAAE,wCAAwC;IAChE,oBAAoB,EAAE,sCAAsC;IAC5D,kBAAkB,EAAE,mCAAmC;IACvD,iBAAiB,EAAE,kCAAkC;IACrD,uBAAuB,EAAE,wCAAwC;IACjE,2BAA2B,EAAE,6CAA6C;IAC1E,gBAAgB,EAAE,iCAAiC;IACnD,cAAc,EAAE,+BAA+B;IAC/C,uBAAuB,EAAE,yCAAyC;IAClE,uBAAuB,EAAE,wCAAwC;CAC1D,CAAC;AACF,eAAe,sBAAsB,CAAC","sourcesContent":["\n const customCSSPropertiesMap: Record<string,string> = {\n \"breadcrumbsGap\": \"--awsui-breadcrumbs-gap-tkr9yl\",\n\"contentGapLeft\": \"--awsui-content-gap-left-tkr9yl\",\n\"contentGapRight\": \"--awsui-content-gap-right-tkr9yl\",\n\"contentHeight\": \"--awsui-content-height-tkr9yl\",\n\"defaultMaxContentWidth\": \"--awsui-default-max-content-width-tkr9yl\",\n\"defaultMinContentWidth\": \"--awsui-default-min-content-width-tkr9yl\",\n\"drawerSize\": \"--awsui-drawer-size-tkr9yl\",\n\"footerHeight\": \"--awsui-footer-height-tkr9yl\",\n\"headerGap\": \"--awsui-header-gap-tkr9yl\",\n\"headerHeight\": \"--awsui-header-height-tkr9yl\",\n\"layoutWidth\": \"--awsui-layout-width-tkr9yl\",\n\"mainGap\": \"--awsui-main-gap-tkr9yl\",\n\"mainOffsetLeft\": \"--awsui-main-offset-left-tkr9yl\",\n\"mainTemplateRows\": \"--awsui-main-template-rows-tkr9yl\",\n\"maxContentWidth\": \"--awsui-max-content-width-tkr9yl\",\n\"minContentWidth\": \"--awsui-min-content-width-tkr9yl\",\n\"mobileBarHeight\": \"--awsui-mobile-bar-height-tkr9yl\",\n\"notificationsGap\": \"--awsui-notifications-gap-tkr9yl\",\n\"notificationsHeight\": \"--awsui-notifications-height-tkr9yl\",\n\"offsetTop\": \"--awsui-offset-top-tkr9yl\",\n\"overlapHeight\": \"--awsui-overlap-height-tkr9yl\",\n\"navigationWidth\": \"--awsui-navigation-width-tkr9yl\",\n\"splitPanelReportedHeaderSize\": \"--awsui-split-panel-reported-header-size-tkr9yl\",\n\"splitPanelReportedSize\": \"--awsui-split-panel-reported-size-tkr9yl\",\n\"splitPanelHeight\": \"--awsui-split-panel-height-tkr9yl\",\n\"splitPanelMinWidth\": \"--awsui-split-panel-min-width-tkr9yl\",\n\"splitPanelMaxWidth\": \"--awsui-split-panel-max-width-tkr9yl\",\n\"toolsMaxWidth\": \"--awsui-tools-max-width-tkr9yl\",\n\"toolsWidth\": \"--awsui-tools-width-tkr9yl\",\n\"toolsAnimationStartingOpacity\": \"--awsui-tools-animation-starting-opacity-tkr9yl\",\n\"contentScrollMargin\": \"--awsui-content-scroll-margin-tkr9yl\",\n\"flashbarStackDepth\": \"--awsui-flashbar-stack-depth-tkr9yl\",\n\"flashbarStackIndex\": \"--awsui-flashbar-stack-index-tkr9yl\",\n\"flashbarStickyBottomMargin\": \"--awsui-flashbar-sticky-bottom-margin-tkr9yl\",\n\"stackedNotificationsBottomMargin\": \"--awsui-stacked-notifications-bottom-margin-tkr9yl\",\n\"stackedNotificationsDefaultBottomMargin\": \"--awsui-stacked-notifications-default-bottom-margin-tkr9yl\",\n\"dropdownDefaultMaxWidth\": \"--awsui-dropdown-default-max-width-tkr9yl\",\n\"spinnerRotatorFrom\": \"--awsui-spinner-rotator-from-tkr9yl\",\n\"spinnerRotatorTo\": \"--awsui-spinner-rotator-to-tkr9yl\",\n\"spinnerLineLeftFrom\": \"--awsui-spinner-line-left-from-tkr9yl\",\n\"spinnerLineLeftTo\": \"--awsui-spinner-line-left-to-tkr9yl\",\n\"spinnerLineRightFrom\": \"--awsui-spinner-line-right-from-tkr9yl\",\n\"spinnerLineRightTo\": \"--awsui-spinner-line-right-to-tkr9yl\",\n\"sliderLabelCount\": \"--awsui-slider-label-count-tkr9yl\",\n\"sliderTickCount\": \"--awsui-slider-tick-count-tkr9yl\",\n\"sliderReferenceColumn\": \"--awsui-slider-reference-column-tkr9yl\",\n\"sliderNextReferenceColumn\": \"--awsui-slider-next-reference-column-tkr9yl\",\n\"sliderMaxStart\": \"--awsui-slider-max-start-tkr9yl\",\n\"sliderMinEnd\": \"--awsui-slider-min-end-tkr9yl\",\n\"sliderRangeInlineSize\": \"--awsui-slider-range-inline-size-tkr9yl\",\n\"sliderTooltipPosition\": \"--awsui-slider-tooltip-position-tkr9yl\",\n };\n export default customCSSPropertiesMap;\n "]}
@@ -276,6 +276,11 @@ export const colorBackgroundSegmentActive: string;
276
276
  export const colorBackgroundSegmentDefault: string;
277
277
  export const colorBackgroundSegmentDisabled: string;
278
278
  export const colorBackgroundSegmentHover: string;
279
+ export const colorBackgroundSliderHandleDefault: string;
280
+ export const colorBackgroundSliderHandleActive: string;
281
+ export const colorBackgroundSliderTrack: string;
282
+ export const colorBackgroundSliderHandleRing: string;
283
+ export const colorBackgroundSliderErrorPressed: string;
279
284
  export const colorBackgroundStatusError: string;
280
285
  export const colorBackgroundStatusInfo: string;
281
286
  export const colorBackgroundStatusSuccess: string;
@@ -276,6 +276,11 @@ export var colorBackgroundSegmentActive = "var(--color-background-segment-active
276
276
  export var colorBackgroundSegmentDefault = "var(--color-background-segment-default-3arros, #ffffff)";
277
277
  export var colorBackgroundSegmentDisabled = "var(--color-background-segment-disabled-o4y9v5, #ffffff)";
278
278
  export var colorBackgroundSegmentHover = "var(--color-background-segment-hover-jysoxv, #ffffff)";
279
+ export var colorBackgroundSliderHandleDefault = "var(--color-background-slider-handle-default-atrlod, #0972d3)";
280
+ export var colorBackgroundSliderHandleActive = "var(--color-background-slider-handle-active-ccegzg, #065299)";
281
+ export var colorBackgroundSliderTrack = "var(--color-background-slider-track-3m68rn, #7d8998)";
282
+ export var colorBackgroundSliderHandleRing = "var(--color-background-slider-handle-ring-31445h, #ffffff)";
283
+ export var colorBackgroundSliderErrorPressed = "var(--color-background-slider-error-pressed-g7oqnt, #7c2718)";
279
284
  export var colorBackgroundStatusError = "var(--color-background-status-error-pbprvn, #fff7f7)";
280
285
  export var colorBackgroundStatusInfo = "var(--color-background-status-info-mvnbre, #f2f8fd)";
281
286
  export var colorBackgroundStatusSuccess = "var(--color-background-status-success-jp14wa, #f2fcf3)";