@cloudscape-design/components 3.0.1135 → 3.0.1137

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 (40) hide show
  1. package/button-dropdown/interfaces.d.ts +11 -2
  2. package/button-dropdown/interfaces.d.ts.map +1 -1
  3. package/button-dropdown/interfaces.js.map +1 -1
  4. package/button-dropdown/item-element/index.d.ts.map +1 -1
  5. package/button-dropdown/item-element/index.js +10 -5
  6. package/button-dropdown/item-element/index.js.map +1 -1
  7. package/button-dropdown/item-element/styles.css.js +20 -16
  8. package/button-dropdown/item-element/styles.scoped.css +57 -24
  9. package/button-dropdown/item-element/styles.selectors.js +20 -16
  10. package/internal/base-component/styles.scoped.css +1 -1
  11. package/internal/components/option/utils/unflatten-options.js +1 -1
  12. package/internal/components/option/utils/unflatten-options.js.map +1 -1
  13. package/internal/components/selectable-item/styles.css.js +22 -22
  14. package/internal/components/selectable-item/styles.scoped.css +42 -74
  15. package/internal/components/selectable-item/styles.selectors.js +22 -22
  16. package/internal/environment.js +2 -2
  17. package/internal/environment.json +2 -2
  18. package/internal/manifest.json +1 -1
  19. package/internal/plugins/widget/index.d.ts.map +1 -1
  20. package/internal/plugins/widget/index.js +8 -1
  21. package/internal/plugins/widget/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/radio-group/index.d.ts.map +1 -1
  24. package/radio-group/interfaces.d.ts +5 -0
  25. package/radio-group/interfaces.d.ts.map +1 -1
  26. package/radio-group/interfaces.js.map +1 -1
  27. package/radio-group/internal-do-not-use-core.js +4 -1
  28. package/radio-group/internal-do-not-use-core.js.map +1 -1
  29. package/radio-group/internal.d.ts.map +1 -1
  30. package/radio-group/internal.js +3 -3
  31. package/radio-group/internal.js.map +1 -1
  32. package/radio-group/styles.css.js +5 -3
  33. package/radio-group/styles.scoped.css +15 -3
  34. package/radio-group/styles.selectors.js +5 -3
  35. package/select/parts/virtual-list.d.ts.map +1 -1
  36. package/select/parts/virtual-list.js +1 -4
  37. package/select/parts/virtual-list.js.map +1 -1
  38. package/select/utils/render-options.d.ts.map +1 -1
  39. package/select/utils/render-options.js +1 -4
  40. package/select/utils/render-options.js.map +1 -1
@@ -1,27 +1,27 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "selectable-item": "awsui_selectable-item_15o6u_xfvek_145",
5
- "pad-bottom": "awsui_pad-bottom_15o6u_xfvek_167",
6
- "virtual": "awsui_virtual_15o6u_xfvek_171",
7
- "has-background": "awsui_has-background_15o6u_xfvek_174",
8
- "highlighted": "awsui_highlighted_15o6u_xfvek_177",
9
- "selected": "awsui_selected_15o6u_xfvek_177",
10
- "disabled": "awsui_disabled_15o6u_xfvek_195",
11
- "is-keyboard": "awsui_is-keyboard_15o6u_xfvek_200",
12
- "visual-refresh": "awsui_visual-refresh_15o6u_xfvek_203",
13
- "next-item-selected": "awsui_next-item-selected_15o6u_xfvek_211",
14
- "previous-item-selected": "awsui_previous-item-selected_15o6u_xfvek_232",
15
- "parent": "awsui_parent_15o6u_xfvek_236",
16
- "interactiveGroups": "awsui_interactiveGroups_15o6u_xfvek_240",
17
- "child": "awsui_child_15o6u_xfvek_256",
18
- "sticky": "awsui_sticky_15o6u_xfvek_262",
19
- "with-scrollbar": "awsui_with-scrollbar_15o6u_xfvek_274",
20
- "after-header": "awsui_after-header_15o6u_xfvek_280",
21
- "measure-strut": "awsui_measure-strut_15o6u_xfvek_347",
22
- "measure-strut-first": "awsui_measure-strut-first_15o6u_xfvek_356",
23
- "screenreader-content": "awsui_screenreader-content_15o6u_xfvek_360",
24
- "option-content": "awsui_option-content_15o6u_xfvek_366",
25
- "select-all": "awsui_select-all_15o6u_xfvek_370"
4
+ "selectable-item": "awsui_selectable-item_15o6u_d2ghy_145",
5
+ "pad-bottom": "awsui_pad-bottom_15o6u_d2ghy_167",
6
+ "virtual": "awsui_virtual_15o6u_d2ghy_171",
7
+ "has-background": "awsui_has-background_15o6u_d2ghy_174",
8
+ "highlighted": "awsui_highlighted_15o6u_d2ghy_177",
9
+ "selected": "awsui_selected_15o6u_d2ghy_177",
10
+ "disabled": "awsui_disabled_15o6u_d2ghy_195",
11
+ "is-keyboard": "awsui_is-keyboard_15o6u_d2ghy_200",
12
+ "visual-refresh": "awsui_visual-refresh_15o6u_d2ghy_203",
13
+ "next-item-selected": "awsui_next-item-selected_15o6u_d2ghy_211",
14
+ "previous-item-selected": "awsui_previous-item-selected_15o6u_d2ghy_232",
15
+ "parent": "awsui_parent_15o6u_d2ghy_236",
16
+ "interactiveGroups": "awsui_interactiveGroups_15o6u_d2ghy_240",
17
+ "child": "awsui_child_15o6u_d2ghy_256",
18
+ "sticky": "awsui_sticky_15o6u_d2ghy_262",
19
+ "with-scrollbar": "awsui_with-scrollbar_15o6u_d2ghy_274",
20
+ "after-header": "awsui_after-header_15o6u_d2ghy_280",
21
+ "measure-strut": "awsui_measure-strut_15o6u_d2ghy_315",
22
+ "measure-strut-first": "awsui_measure-strut-first_15o6u_d2ghy_324",
23
+ "screenreader-content": "awsui_screenreader-content_15o6u_d2ghy_328",
24
+ "option-content": "awsui_option-content_15o6u_d2ghy_334",
25
+ "select-all": "awsui_select-all_15o6u_d2ghy_338"
26
26
  };
27
27
 
@@ -142,7 +142,7 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_selectable-item_15o6u_xfvek_145:not(#\9) {
145
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9) {
146
146
  font-size: var(--font-size-body-m-a7nh2n, 14px);
147
147
  line-height: var(--line-height-body-m-2mh3ke, 20px);
148
148
  color: var(--color-text-body-default-vvtq8u, #0f141a);
@@ -164,17 +164,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
164
164
  padding-block: calc(var(--space-xxs-hwfkai, 4px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
165
165
  padding-inline: calc(var(--space-field-horizontal-0aq2ch, 12px) + var(--border-item-width-miijiw, 2px));
166
166
  }
167
- .awsui_selectable-item_15o6u_xfvek_145.awsui_pad-bottom_15o6u_xfvek_167:not(#\9) {
167
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9) {
168
168
  padding-block-end: calc(calc(var(--space-xxs-hwfkai, 4px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) + var(--space-xxxs-pajhad, 2px));
169
169
  border-block-end-color: transparent;
170
170
  }
171
- .awsui_selectable-item_15o6u_xfvek_145:not(#\9):not(:first-child), .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171:not(#\9) {
171
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9):not(:first-child), .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9) {
172
172
  margin-block-start: calc(-1 * var(--border-item-width-miijiw, 2px));
173
173
  }
174
- .awsui_selectable-item_15o6u_xfvek_145.awsui_has-background_15o6u_xfvek_174:not(#\9) {
174
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_has-background_15o6u_d2ghy_174:not(#\9) {
175
175
  background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
176
176
  }
177
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177:not(#\9) {
177
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9) {
178
178
  color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
179
179
  border-width: var(--border-item-width-miijiw, 2px);
180
180
  border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
@@ -184,167 +184,135 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
184
184
  padding-block: var(--space-xxs-hwfkai, 4px);
185
185
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
186
186
  }
187
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177.awsui_pad-bottom_15o6u_xfvek_167:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_pad-bottom_15o6u_xfvek_167:not(#\9) {
187
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_pad-bottom_15o6u_d2ghy_167:not(#\9) {
188
188
  padding-block-end: calc(var(--space-xxs-hwfkai, 4px) + var(--space-xxxs-pajhad, 2px));
189
189
  }
190
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177:not(#\9) {
190
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
191
191
  z-index: 3;
192
192
  background-color: var(--color-background-dropdown-item-hover-yunepc, #f3f3f7);
193
193
  border-color: var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
194
194
  }
195
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177.awsui_disabled_15o6u_xfvek_195:not(#\9) {
195
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_disabled_15o6u_d2ghy_195:not(#\9) {
196
196
  color: var(--color-text-dropdown-item-dimmed-tq8vh3, #b4b4bb);
197
197
  border-color: var(--color-border-dropdown-item-dimmed-hover-ga9sch, #8c8c94);
198
198
  background-color: var(--color-background-dropdown-item-dimmed-dhho03, transparent);
199
199
  }
200
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177.awsui_is-keyboard_15o6u_xfvek_200:not(#\9) {
200
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9) {
201
201
  border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
202
202
  }
203
- .awsui_selectable-item_15o6u_xfvek_145.awsui_highlighted_15o6u_xfvek_177.awsui_is-keyboard_15o6u_xfvek_200:not(#\9):not(.awsui_visual-refresh_15o6u_xfvek_203) {
203
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203) {
204
204
  box-shadow: inset 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
205
205
  }
206
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177:not(#\9) {
206
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9) {
207
207
  z-index: 2;
208
208
  background-color: var(--color-background-dropdown-item-selected-f3v6te, #f0fbff);
209
209
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
210
210
  }
211
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_next-item-selected_15o6u_xfvek_211:not(#\9) {
211
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_next-item-selected_15o6u_d2ghy_211:not(#\9) {
212
212
  border-end-start-radius: 0;
213
213
  border-end-end-radius: 0;
214
214
  }
215
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177:not(#\9) {
215
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
216
216
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
217
217
  z-index: 3;
218
218
  outline: var(--border-item-width-miijiw, 2px) solid var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
219
219
  outline-offset: calc(-2 * var(--border-item-width-miijiw, 2px));
220
220
  }
221
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177.awsui_is-keyboard_15o6u_xfvek_200:not(#\9) {
221
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177.awsui_is-keyboard_15o6u_d2ghy_200:not(#\9) {
222
222
  border-color: var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
223
223
  outline-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
224
224
  }
225
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_visual-refresh_15o6u_xfvek_203) {
225
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203) {
226
226
  border-color: var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
227
227
  outline: none;
228
228
  }
229
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_visual-refresh_15o6u_xfvek_203).awsui_is-keyboard_15o6u_xfvek_200 {
229
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_highlighted_15o6u_d2ghy_177:not(#\9):not(.awsui_visual-refresh_15o6u_d2ghy_203).awsui_is-keyboard_15o6u_d2ghy_200 {
230
230
  border-color: var(--color-border-dropdown-item-focused-zacqlp, #424650);
231
231
  }
232
- .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177 + .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_selected_15o6u_xfvek_177.awsui_previous-item-selected_15o6u_xfvek_232:not(#\9) {
232
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177 + .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_selected_15o6u_d2ghy_177.awsui_previous-item-selected_15o6u_d2ghy_232:not(#\9) {
233
233
  border-start-start-radius: 0;
234
234
  border-start-end-radius: 0;
235
235
  }
236
- .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236:not(#\9) {
236
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236:not(#\9) {
237
237
  font-weight: bold;
238
238
  color: var(--color-text-dropdown-group-label-2tmyik, #424650);
239
239
  }
240
- .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236:not(#\9):not(.awsui_interactiveGroups_15o6u_xfvek_240) {
240
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236:not(#\9):not(.awsui_interactiveGroups_15o6u_d2ghy_240) {
241
241
  border-block-start-color: var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
242
242
  padding-block: var(--space-xs-ymlm0b, 8px);
243
243
  padding-inline: var(--space-xs-ymlm0b, 8px);
244
244
  }
245
- .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240:not(#\9) {
245
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240:not(#\9) {
246
246
  padding-block: calc(var(--space-xs-ymlm0b, 8px) + var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
247
247
  padding-inline: calc(var(--space-field-horizontal-0aq2ch, 12px) + var(--border-item-width-miijiw, 2px));
248
248
  }
249
- .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240.awsui_highlighted_15o6u_xfvek_177:not(#\9) {
249
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_highlighted_15o6u_d2ghy_177:not(#\9) {
250
250
  color: var(--color-text-dropdown-item-highlighted-yr1px8, #0f141a);
251
251
  }
252
- .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240.awsui_highlighted_15o6u_xfvek_177:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240.awsui_selected_15o6u_xfvek_177:not(#\9) {
252
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_parent_15o6u_d2ghy_236.awsui_interactiveGroups_15o6u_d2ghy_240.awsui_selected_15o6u_d2ghy_177:not(#\9) {
253
253
  padding-block: var(--space-xs-ymlm0b, 8px);
254
254
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
255
255
  }
256
- .awsui_selectable-item_15o6u_xfvek_145.awsui_child_15o6u_xfvek_256:not(#\9) {
256
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256:not(#\9) {
257
257
  padding-inline-start: calc(var(--space-xxl-32srm4, 32px) + var(--border-item-width-miijiw, 2px));
258
258
  }
259
- .awsui_selectable-item_15o6u_xfvek_145.awsui_child_15o6u_xfvek_256.awsui_highlighted_15o6u_xfvek_177:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_child_15o6u_xfvek_256.awsui_selected_15o6u_xfvek_177:not(#\9) {
259
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_child_15o6u_d2ghy_256.awsui_selected_15o6u_d2ghy_177:not(#\9) {
260
260
  padding-inline-start: var(--space-xxl-32srm4, 32px);
261
261
  }
262
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9) {
262
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9) {
263
263
  position: sticky;
264
264
  inset-block-start: 0;
265
265
  margin-block-end: calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px));
266
266
  z-index: 4;
267
267
  }
268
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177) {
268
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177) {
269
269
  border-inline-start-width: var(--border-item-width-miijiw, 2px);
270
270
  border-inline-start-color: var(--color-border-dropdown-container-cmthq7, #b4b4bb);
271
271
  border-inline-end-color: var(--color-border-dropdown-container-cmthq7, #b4b4bb);
272
272
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
273
273
  }
274
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177):not(.awsui_with-scrollbar_15o6u_xfvek_274) {
274
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_with-scrollbar_15o6u_d2ghy_274) {
275
275
  border-inline-end-width: var(--border-item-width-miijiw, 2px);
276
276
  }
277
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177).awsui_with-scrollbar_15o6u_xfvek_274 {
277
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177).awsui_with-scrollbar_15o6u_d2ghy_274 {
278
278
  border-inline-end-width: 0;
279
279
  }
280
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177):not(.awsui_after-header_15o6u_xfvek_280) {
280
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280) {
281
281
  border-start-start-radius: var(--border-radius-item-iwaia5, 8px);
282
282
  }
283
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177):not(.awsui_after-header_15o6u_xfvek_280):not(.awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177):not(.awsui_after-header_15o6u_xfvek_280).awsui_with-scrollbar_15o6u_xfvek_274) {
283
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280):not(.awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177):not(.awsui_after-header_15o6u_d2ghy_280).awsui_with-scrollbar_15o6u_d2ghy_274) {
284
284
  border-start-end-radius: var(--border-radius-item-iwaia5, 8px);
285
285
  }
286
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262:not(#\9):not(.awsui_highlighted_15o6u_xfvek_177):not(.awsui_selected_15o6u_xfvek_177).awsui_after-header_15o6u_xfvek_280 {
286
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262:not(#\9):not(.awsui_highlighted_15o6u_d2ghy_177):not(.awsui_selected_15o6u_d2ghy_177).awsui_after-header_15o6u_d2ghy_280 {
287
287
  border-block-start-color: var(--color-background-dropdown-item-default-qmc033, #ffffff);
288
288
  }
289
- .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262.awsui_disabled_15o6u_xfvek_195.awsui_highlighted_15o6u_xfvek_177:not(#\9), .awsui_selectable-item_15o6u_xfvek_145.awsui_sticky_15o6u_xfvek_262.awsui_disabled_15o6u_xfvek_195.awsui_selected_15o6u_xfvek_177:not(#\9) {
289
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262.awsui_disabled_15o6u_d2ghy_195.awsui_highlighted_15o6u_d2ghy_177:not(#\9), .awsui_selectable-item_15o6u_d2ghy_145.awsui_sticky_15o6u_d2ghy_262.awsui_disabled_15o6u_d2ghy_195.awsui_selected_15o6u_d2ghy_177:not(#\9) {
290
290
  border-block-end-color: transparent;
291
291
  border-block-start-color: transparent;
292
292
  border-inline-start-color: transparent;
293
293
  border-inline-end-color: transparent;
294
294
  }
295
- .awsui_selectable-item_15o6u_xfvek_145.awsui_disabled_15o6u_xfvek_195:not(#\9) {
295
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_disabled_15o6u_d2ghy_195:not(#\9) {
296
296
  color: var(--color-text-dropdown-item-disabled-8m65hf, #b4b4bb);
297
297
  }
298
- .awsui_selectable-item_15o6u_xfvek_145:not(#\9):not(.awsui_disabled_15o6u_xfvek_195):not(.awsui_parent_15o6u_xfvek_236) {
298
+ .awsui_selectable-item_15o6u_d2ghy_145:not(#\9):not(.awsui_disabled_15o6u_d2ghy_195):not(.awsui_parent_15o6u_d2ghy_236) {
299
299
  cursor: pointer;
300
300
  }
301
- .awsui_selectable-item_15o6u_xfvek_145.awsui_interactiveGroups_15o6u_xfvek_240:not(#\9):not(.awsui_disabled_15o6u_xfvek_195) {
301
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_interactiveGroups_15o6u_d2ghy_240:not(#\9):not(.awsui_disabled_15o6u_d2ghy_195) {
302
302
  cursor: pointer;
303
303
  }
304
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171:not(#\9) {
304
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9) {
305
305
  position: absolute;
306
306
  inset-block-start: var(--border-dropdown-virtual-offset-width-3wp954, 2px);
307
307
  inset-inline-start: 0;
308
308
  inline-size: 100%;
309
309
  box-sizing: border-box;
310
310
  }
311
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171:not(#\9):first-of-type:not(.awsui_selected_15o6u_xfvek_177, .awsui_highlighted_15o6u_xfvek_177) {
311
+ .awsui_selectable-item_15o6u_d2ghy_145.awsui_virtual_15o6u_d2ghy_171:not(#\9):first-of-type:not(.awsui_selected_15o6u_d2ghy_177, .awsui_highlighted_15o6u_d2ghy_177) {
312
312
  border-block-start-color: var(--color-border-dropdown-item-top-gp2d1p, transparent);
313
313
  }
314
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177), .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177:not(#\9) {
315
- border-width: var(--border-divider-list-width-tdfx1x, 1px);
316
- padding-block: calc(var(--space-xxs-hwfkai, 4px) + calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)));
317
- padding-inline: calc(var(--space-field-horizontal-0aq2ch, 12px) + calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)));
318
- }
319
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177).awsui_pad-bottom_15o6u_xfvek_167, .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177.awsui_pad-bottom_15o6u_xfvek_167:not(#\9) {
320
- padding-block-end: calc(var(--space-xxs-hwfkai, 4px) + var(--space-xxxs-pajhad, 2px) + calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)));
321
- }
322
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177).awsui_child_15o6u_xfvek_256, .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177.awsui_child_15o6u_xfvek_256:not(#\9) {
323
- padding-inline-start: calc(var(--space-xxl-32srm4, 32px) + calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)));
324
- }
325
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177).awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240, .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177.awsui_parent_15o6u_xfvek_236.awsui_interactiveGroups_15o6u_xfvek_240:not(#\9) {
326
- padding-block: calc(var(--space-xs-ymlm0b, 8px) + calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)));
327
- }
328
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177) {
329
- box-shadow: inset 0 0 0 calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
330
- }
331
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_highlighted_15o6u_xfvek_177:not(#\9):not(.awsui_selected_15o6u_xfvek_177).awsui_is-keyboard_15o6u_xfvek_200 {
332
- box-shadow: inset 0 0 0 calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-focused-zacqlp, #424650);
333
- }
334
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177:not(#\9) {
335
- box-shadow: inset 0 0 0 calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-selected-dl2ezh, #006ce0);
336
- }
337
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177:not(#\9) {
338
- box-shadow: inset 0 0 0 calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-selected-dl2ezh, #006ce0), inset 0 0 0 calc(2 * var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-hover-aqfuxq, #8c8c94);
339
- }
340
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_selected_15o6u_xfvek_177.awsui_highlighted_15o6u_xfvek_177.awsui_is-keyboard_15o6u_xfvek_200:not(#\9) {
341
- box-shadow: inset 0 0 0 calc(var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-selected-dl2ezh, #006ce0), inset 0 0 0 calc(2 * var(--border-item-width-miijiw, 2px) - var(--border-divider-list-width-tdfx1x, 1px)) var(--color-border-dropdown-item-focused-zacqlp, #424650);
342
- }
343
- .awsui_selectable-item_15o6u_xfvek_145.awsui_virtual_15o6u_xfvek_171.awsui_parent_15o6u_xfvek_236:not(#\9):not(.awsui_interactiveGroups_15o6u_xfvek_240) {
344
- border-block-start-color: var(--color-border-dropdown-group-ylcnh8, #c6c6cd);
345
- }
346
314
 
347
- .awsui_measure-strut_15o6u_xfvek_347:not(#\9) {
315
+ .awsui_measure-strut_15o6u_d2ghy_315:not(#\9) {
348
316
  position: absolute;
349
317
  pointer-events: none;
350
318
  block-size: 100%;
@@ -353,20 +321,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
353
321
  inset-inline-start: 0;
354
322
  padding-block-start: var(--border-divider-list-width-tdfx1x, 1px);
355
323
  }
356
- .awsui_measure-strut-first_15o6u_xfvek_356:not(#\9) {
324
+ .awsui_measure-strut-first_15o6u_d2ghy_324:not(#\9) {
357
325
  padding-block-end: var(--border-divider-list-width-tdfx1x, 1px);
358
326
  }
359
327
 
360
- .awsui_screenreader-content_15o6u_xfvek_360:not(#\9) {
328
+ .awsui_screenreader-content_15o6u_d2ghy_328:not(#\9) {
361
329
  position: absolute !important;
362
330
  inset-block-start: -9999px !important;
363
331
  inset-inline-start: -9999px !important;
364
332
  }
365
333
 
366
- .awsui_option-content_15o6u_xfvek_366:not(#\9) {
334
+ .awsui_option-content_15o6u_d2ghy_334:not(#\9) {
367
335
  /* used in test-utils */
368
336
  }
369
337
 
370
- .awsui_select-all_15o6u_xfvek_370:not(#\9) {
338
+ .awsui_select-all_15o6u_d2ghy_338:not(#\9) {
371
339
  /* used in test-utils */
372
340
  }
@@ -2,27 +2,27 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "selectable-item": "awsui_selectable-item_15o6u_xfvek_145",
6
- "pad-bottom": "awsui_pad-bottom_15o6u_xfvek_167",
7
- "virtual": "awsui_virtual_15o6u_xfvek_171",
8
- "has-background": "awsui_has-background_15o6u_xfvek_174",
9
- "highlighted": "awsui_highlighted_15o6u_xfvek_177",
10
- "selected": "awsui_selected_15o6u_xfvek_177",
11
- "disabled": "awsui_disabled_15o6u_xfvek_195",
12
- "is-keyboard": "awsui_is-keyboard_15o6u_xfvek_200",
13
- "visual-refresh": "awsui_visual-refresh_15o6u_xfvek_203",
14
- "next-item-selected": "awsui_next-item-selected_15o6u_xfvek_211",
15
- "previous-item-selected": "awsui_previous-item-selected_15o6u_xfvek_232",
16
- "parent": "awsui_parent_15o6u_xfvek_236",
17
- "interactiveGroups": "awsui_interactiveGroups_15o6u_xfvek_240",
18
- "child": "awsui_child_15o6u_xfvek_256",
19
- "sticky": "awsui_sticky_15o6u_xfvek_262",
20
- "with-scrollbar": "awsui_with-scrollbar_15o6u_xfvek_274",
21
- "after-header": "awsui_after-header_15o6u_xfvek_280",
22
- "measure-strut": "awsui_measure-strut_15o6u_xfvek_347",
23
- "measure-strut-first": "awsui_measure-strut-first_15o6u_xfvek_356",
24
- "screenreader-content": "awsui_screenreader-content_15o6u_xfvek_360",
25
- "option-content": "awsui_option-content_15o6u_xfvek_366",
26
- "select-all": "awsui_select-all_15o6u_xfvek_370"
5
+ "selectable-item": "awsui_selectable-item_15o6u_d2ghy_145",
6
+ "pad-bottom": "awsui_pad-bottom_15o6u_d2ghy_167",
7
+ "virtual": "awsui_virtual_15o6u_d2ghy_171",
8
+ "has-background": "awsui_has-background_15o6u_d2ghy_174",
9
+ "highlighted": "awsui_highlighted_15o6u_d2ghy_177",
10
+ "selected": "awsui_selected_15o6u_d2ghy_177",
11
+ "disabled": "awsui_disabled_15o6u_d2ghy_195",
12
+ "is-keyboard": "awsui_is-keyboard_15o6u_d2ghy_200",
13
+ "visual-refresh": "awsui_visual-refresh_15o6u_d2ghy_203",
14
+ "next-item-selected": "awsui_next-item-selected_15o6u_d2ghy_211",
15
+ "previous-item-selected": "awsui_previous-item-selected_15o6u_d2ghy_232",
16
+ "parent": "awsui_parent_15o6u_d2ghy_236",
17
+ "interactiveGroups": "awsui_interactiveGroups_15o6u_d2ghy_240",
18
+ "child": "awsui_child_15o6u_d2ghy_256",
19
+ "sticky": "awsui_sticky_15o6u_d2ghy_262",
20
+ "with-scrollbar": "awsui_with-scrollbar_15o6u_d2ghy_274",
21
+ "after-header": "awsui_after-header_15o6u_d2ghy_280",
22
+ "measure-strut": "awsui_measure-strut_15o6u_d2ghy_315",
23
+ "measure-strut-first": "awsui_measure-strut-first_15o6u_d2ghy_324",
24
+ "screenreader-content": "awsui_screenreader-content_15o6u_d2ghy_328",
25
+ "option-content": "awsui_option-content_15o6u_d2ghy_334",
26
+ "select-all": "awsui_select-all_15o6u_d2ghy_338"
27
27
  };
28
28
 
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (fdcaf655)";
3
- export var GIT_SHA = "fdcaf655";
2
+ export var PACKAGE_VERSION = "3.0.0 (36c25023)";
3
+ export var GIT_SHA = "36c25023";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "console";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (fdcaf655)",
4
- "GIT_SHA": "fdcaf655",
3
+ "PACKAGE_VERSION": "3.0.0 (36c25023)",
4
+ "GIT_SHA": "36c25023",
5
5
  "THEME": "open-source-visual-refresh",
6
6
  "SYSTEM": "console",
7
7
  "ALWAYS_VISUAL_REFRESH": true
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "fdcaf6555e7ca1c075fcfd49fd6a8102073e610a"
2
+ "commit": "36c25023676eb416b0d78445bee84b827227bddd"
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAyB,MAAM,cAAc,CAAC;AAE5F;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,QAIvD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,QAIzD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,sBAAsB,QAE3D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAyB,MAAM,cAAc,CAAC;AAE5F;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,QAIvD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,QAIzD;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,sBAAsB,QAS3D"}
@@ -1,6 +1,6 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { getAppLayoutMessageHandler, pushInitialMessage } from './core';
3
+ import { getAppLayoutInitialMessages, getAppLayoutMessageHandler, pushInitialMessage } from './core';
4
4
  /**
5
5
  * Registers a new left runtime drawer to app layout
6
6
  * @param drawer
@@ -27,6 +27,13 @@ export function registerBottomDrawer(drawer) {
27
27
  */
28
28
  export function updateDrawer(message) {
29
29
  var _a;
30
+ if (message.type === 'updateDrawerConfig') {
31
+ getAppLayoutInitialMessages().forEach(initialMessage => {
32
+ if (initialMessage.payload.id === message.payload.id) {
33
+ initialMessage.payload = { ...initialMessage.payload, ...message.payload };
34
+ }
35
+ });
36
+ }
30
37
  (_a = getAppLayoutMessageHandler()) === null || _a === void 0 ? void 0 : _a(message);
31
38
  }
32
39
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAGxE;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAqB;;IACtD,MAAM,OAAO,GAA0B,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACvF,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC5B,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAqB;;IACxD,MAAM,OAAO,GAA0B,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CAAC;IACpH,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC5B,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,OAA+B;;IAC1D,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getAppLayoutMessageHandler, pushInitialMessage } from './core';\nimport { AppLayoutUpdateMessage, DrawerPayload, RegisterDrawerMessage } from './interfaces';\n\n/**\n * Registers a new left runtime drawer to app layout\n * @param drawer\n */\nexport function registerLeftDrawer(drawer: DrawerPayload) {\n const message: RegisterDrawerMessage = { type: 'registerLeftDrawer', payload: drawer };\n pushInitialMessage(message);\n getAppLayoutMessageHandler()?.(message);\n}\n\n/**\n * Registers a new bottom runtime drawer to app layout\n * @param drawer\n */\nexport function registerBottomDrawer(drawer: DrawerPayload) {\n const message: RegisterDrawerMessage = { type: 'registerBottomDrawer', payload: { ...drawer, position: 'bottom' } };\n pushInitialMessage(message);\n getAppLayoutMessageHandler()?.(message);\n}\n\n/**\n * Interact with already registered app layout drawers\n * @param message\n */\nexport function updateDrawer(message: AppLayoutUpdateMessage) {\n getAppLayoutMessageHandler()?.(message);\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/widget/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAGrG;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAqB;;IACtD,MAAM,OAAO,GAA0B,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACvF,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC5B,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,MAAqB;;IACxD,MAAM,OAAO,GAA0B,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,CAAC;IACpH,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAC5B,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,OAA+B;;IAC1D,IAAI,OAAO,CAAC,IAAI,KAAK,oBAAoB,EAAE,CAAC;QAC1C,2BAA2B,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;YACrD,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;gBACrD,cAAc,CAAC,OAAO,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;YAC7E,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IACD,MAAA,0BAA0B,EAAE,0CAAG,OAAO,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { getAppLayoutInitialMessages, getAppLayoutMessageHandler, pushInitialMessage } from './core';\nimport { AppLayoutUpdateMessage, DrawerPayload, RegisterDrawerMessage } from './interfaces';\n\n/**\n * Registers a new left runtime drawer to app layout\n * @param drawer\n */\nexport function registerLeftDrawer(drawer: DrawerPayload) {\n const message: RegisterDrawerMessage = { type: 'registerLeftDrawer', payload: drawer };\n pushInitialMessage(message);\n getAppLayoutMessageHandler()?.(message);\n}\n\n/**\n * Registers a new bottom runtime drawer to app layout\n * @param drawer\n */\nexport function registerBottomDrawer(drawer: DrawerPayload) {\n const message: RegisterDrawerMessage = { type: 'registerBottomDrawer', payload: { ...drawer, position: 'bottom' } };\n pushInitialMessage(message);\n getAppLayoutMessageHandler()?.(message);\n}\n\n/**\n * Interact with already registered app layout drawers\n * @param message\n */\nexport function updateDrawer(message: AppLayoutUpdateMessage) {\n if (message.type === 'updateDrawerConfig') {\n getAppLayoutInitialMessages().forEach(initialMessage => {\n if (initialMessage.payload.id === message.payload.id) {\n initialMessage.payload = { ...initialMessage.payload, ...message.payload };\n }\n });\n }\n getAppLayoutMessageHandler()?.(message);\n}\n"]}
package/package.json CHANGED
@@ -154,7 +154,7 @@
154
154
  "./internal/base-component/index.js",
155
155
  "./internal/base-component/styles.css.js"
156
156
  ],
157
- "version": "3.0.1135",
157
+ "version": "3.0.1137",
158
158
  "repository": {
159
159
  "type": "git",
160
160
  "url": "https://github.com/cloudscape-design/components.git"
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio-group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,uJAmBd,CAAC;AAGH,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio-group/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK/C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,QAAA,MAAM,UAAU,uJAqBd,CAAC;AAGH,eAAe,UAAU,CAAC"}
@@ -54,6 +54,11 @@ export interface RadioGroupProps extends BaseComponentProps, FormFieldControlPro
54
54
  /**
55
55
  * @awsuiSystem core
56
56
  */
57
+
58
+ /**
59
+ * Defines the direction in which the radio buttons are laid out.
60
+ */
61
+ direction?: 'horizontal' | 'vertical';
57
62
  }
58
63
  export declare namespace RadioGroupProps {
59
64
  interface RadioButtonDefinition {
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/radio-group/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACh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AAC;KACpB;IAED,UAAiB,YAAY;QAC3B,KAAK,EAAE,MAAM,CAAC;KACf;IAED,KAAY,GAAG,GAAG,gBAAgB,CAAC,GAAG,CAAC;IAEvC,KAAY,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC;CAC5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/radio-group/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { RadioButtonProps } from '../internal/components/radio-button/interfaces';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface RadioGroupProps extends BaseComponentProps, FormFieldControlProps {\n /**\n * Specify a custom name for the radio buttons. If not provided, the radio group generates a random name.\n */\n name?: string;\n\n /**\n * Sets the value of the selected radio button.\n * If you want to clear the selection, use `null`.\n */\n value: string | null;\n\n /**\n * Specifies an array of radio buttons to display. Each of these objects have the following properties:\n *\n * - `value` (string) - Sets the value of the radio button. Assigned to the radio group when a user selects the radio button.\n * - `label` (ReactNode) - Specifies a label for the radio button.\n * - `description` (ReactNode) - (Optional) Specifies descriptive text that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the radio button is disabled, which prevents the user from selecting it.\n * - `controlId` (string) - (Optional) Sets the ID of the internal input. You can use it to relate a label element's `for` attribute to this control.\n * In general it's not recommended to set this because the ID is automatically set by the radio group component.\n */\n items?: ReadonlyArray<RadioGroupProps.RadioButtonDefinition>;\n\n /**\n * Adds `aria-label` to the group. If you are using this form element within a form field,\n * don't set this property because the form field component automatically sets the correct labels to make the component accessible.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-required` to the group.\n */\n ariaRequired?: boolean;\n\n /**\n * Adds `aria-controls` attribute to the radio group.\n * If the radio group controls any secondary content (for example, another form field), use this to provide an ID referring to the secondary content.\n */\n ariaControls?: string;\n\n /**\n * Called when the user selects a different radio button. The event `detail` contains the current `value`.\n */\n onChange?: NonCancelableEventHandler<RadioGroupProps.ChangeDetail>;\n\n /**\n * @deprecated Has no effect.\n */\n controlId?: string;\n\n /**\n * Specifies if the whole group is read-only, which prevents the\n * user from modifying the value, but does not prevent the value from\n * being included in a form submission. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /**\n * @awsuiSystem core\n */\n style?: RadioGroupProps.Style;\n}\n\nexport namespace RadioGroupProps {\n export interface RadioButtonDefinition {\n value: string;\n label: React.ReactNode;\n description?: React.ReactNode;\n disabled?: boolean;\n controlId?: string;\n }\n\n export interface ChangeDetail {\n value: string;\n }\n\n export type Ref = RadioButtonProps.Ref;\n\n export type Style = RadioButtonProps.Style;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/radio-group/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { RadioButtonProps } from '../internal/components/radio-button/interfaces';\nimport { FormFieldControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface RadioGroupProps extends BaseComponentProps, FormFieldControlProps {\n /**\n * Specify a custom name for the radio buttons. If not provided, the radio group generates a random name.\n */\n name?: string;\n\n /**\n * Sets the value of the selected radio button.\n * If you want to clear the selection, use `null`.\n */\n value: string | null;\n\n /**\n * Specifies an array of radio buttons to display. Each of these objects have the following properties:\n *\n * - `value` (string) - Sets the value of the radio button. Assigned to the radio group when a user selects the radio button.\n * - `label` (ReactNode) - Specifies a label for the radio button.\n * - `description` (ReactNode) - (Optional) Specifies descriptive text that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the radio button is disabled, which prevents the user from selecting it.\n * - `controlId` (string) - (Optional) Sets the ID of the internal input. You can use it to relate a label element's `for` attribute to this control.\n * In general it's not recommended to set this because the ID is automatically set by the radio group component.\n */\n items?: ReadonlyArray<RadioGroupProps.RadioButtonDefinition>;\n\n /**\n * Adds `aria-label` to the group. If you are using this form element within a form field,\n * don't set this property because the form field component automatically sets the correct labels to make the component accessible.\n */\n ariaLabel?: string;\n\n /**\n * Adds `aria-required` to the group.\n */\n ariaRequired?: boolean;\n\n /**\n * Adds `aria-controls` attribute to the radio group.\n * If the radio group controls any secondary content (for example, another form field), use this to provide an ID referring to the secondary content.\n */\n ariaControls?: string;\n\n /**\n * Called when the user selects a different radio button. The event `detail` contains the current `value`.\n */\n onChange?: NonCancelableEventHandler<RadioGroupProps.ChangeDetail>;\n\n /**\n * @deprecated Has no effect.\n */\n controlId?: string;\n\n /**\n * Specifies if the whole group is read-only, which prevents the\n * user from modifying the value, but does not prevent the value from\n * being included in a form submission. A read-only control is still focusable.\n */\n readOnly?: boolean;\n\n /**\n * @awsuiSystem core\n */\n style?: RadioGroupProps.Style;\n\n /**\n * Defines the direction in which the radio buttons are laid out.\n */\n direction?: 'horizontal' | 'vertical';\n}\n\nexport namespace RadioGroupProps {\n export interface RadioButtonDefinition {\n value: string;\n label: React.ReactNode;\n description?: React.ReactNode;\n disabled?: boolean;\n controlId?: string;\n }\n\n export interface ChangeDetail {\n value: string;\n }\n\n export type Ref = RadioButtonProps.Ref;\n\n export type Style = RadioButtonProps.Style;\n}\n"]}
@@ -8,7 +8,10 @@ import { applyDisplayName } from '../internal/utils/apply-display-name';
8
8
  import InternalRadioGroup from './internal';
9
9
  import analyticsSelectors from './analytics-metadata/styles.css.js';
10
10
  const RadioGroup = React.forwardRef((props, ref) => {
11
- const baseComponentProps = useBaseComponent('RadioGroup', { props: { readOnly: props.readOnly } });
11
+ var _a;
12
+ const baseComponentProps = useBaseComponent('RadioGroup', {
13
+ props: { readOnly: props.readOnly, direction: (_a = props.direction) !== null && _a !== void 0 ? _a : 'vertical' },
14
+ });
12
15
  return (React.createElement(InternalRadioGroup, { ref: ref, ...props, ...baseComponentProps, ...getAnalyticsMetadataAttribute({
13
16
  component: {
14
17
  name: 'awsui.RadioGroup',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/radio-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAE5C,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAIpE,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAAmC,EAAE,EAAE;IAClG,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACnG,OAAO,CACL,oBAAC,kBAAkB,IACjB,GAAG,EAAE,GAAG,KACJ,KAAK,KACL,kBAAkB,KAClB,6BAA6B,CAAC;YAChC,SAAS,EAAE;gBACT,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACvB,UAAU,EAAE;oBACV,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE;oBACvB,UAAU,EAAE,IAAI,kBAAkB,CAAC,QAAQ,EAAE;iBAC9C;aAC+C;SACnD,CAAC,GACF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataRadioGroupComponent } from './analytics-metadata/interfaces';\nimport { RadioGroupProps } from './interfaces';\nimport InternalRadioGroup from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { RadioGroupProps };\n\nconst RadioGroup = React.forwardRef((props: RadioGroupProps, ref: React.Ref<RadioGroupProps.Ref>) => {\n const baseComponentProps = useBaseComponent('RadioGroup', { props: { readOnly: props.readOnly } });\n return (\n <InternalRadioGroup\n ref={ref}\n {...props}\n {...baseComponentProps}\n {...getAnalyticsMetadataAttribute({\n component: {\n name: 'awsui.RadioGroup',\n label: { root: 'self' },\n properties: {\n value: `${props.value}`,\n valueLabel: `.${analyticsSelectors.selected}`,\n },\n } as GeneratedAnalyticsMetadataRadioGroupComponent,\n })}\n />\n );\n});\n\napplyDisplayName(RadioGroup, 'RadioGroup');\nexport default RadioGroup;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/radio-group/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,kBAAkB,MAAM,YAAY,CAAC;AAE5C,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AAIpE,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,KAAsB,EAAE,GAAmC,EAAE,EAAE;;IAClG,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,YAAY,EAAE;QACxD,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,MAAA,KAAK,CAAC,SAAS,mCAAI,UAAU,EAAE;KAC9E,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,kBAAkB,IACjB,GAAG,EAAE,GAAG,KACJ,KAAK,KACL,kBAAkB,KAClB,6BAA6B,CAAC;YAChC,SAAS,EAAE;gBACT,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;gBACvB,UAAU,EAAE;oBACV,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE;oBACvB,UAAU,EAAE,IAAI,kBAAkB,CAAC,QAAQ,EAAE;iBAC9C;aAC+C;SACnD,CAAC,GACF,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,gBAAgB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;AAC3C,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataRadioGroupComponent } from './analytics-metadata/interfaces';\nimport { RadioGroupProps } from './interfaces';\nimport InternalRadioGroup from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { RadioGroupProps };\n\nconst RadioGroup = React.forwardRef((props: RadioGroupProps, ref: React.Ref<RadioGroupProps.Ref>) => {\n const baseComponentProps = useBaseComponent('RadioGroup', {\n props: { readOnly: props.readOnly, direction: props.direction ?? 'vertical' },\n });\n return (\n <InternalRadioGroup\n ref={ref}\n {...props}\n {...baseComponentProps}\n {...getAnalyticsMetadataAttribute({\n component: {\n name: 'awsui.RadioGroup',\n label: { root: 'self' },\n properties: {\n value: `${props.value}`,\n valueLabel: `.${analyticsSelectors.selected}`,\n },\n } as GeneratedAnalyticsMetadataRadioGroupComponent,\n })}\n />\n );\n});\n\napplyDisplayName(RadioGroup, 'RadioGroup');\nexport default RadioGroup;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/radio-group/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQ/C,QAAA,MAAM,kBAAkB,oLA4EvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/radio-group/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAQ/C,QAAA,MAAM,kBAAkB,oLAmFvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -12,13 +12,13 @@ import useRadioGroupForwardFocus from '../internal/hooks/forward-focus/radio-gro
12
12
  import analyticsSelectors from './analytics-metadata/styles.css.js';
13
13
  import styles from './styles.css.js';
14
14
  import testUtilStyles from './test-classes/styles.css.js';
15
- const InternalRadioGroup = React.forwardRef(({ name, value, items, ariaLabel, ariaRequired, ariaControls, onChange, readOnly, __internalRootRef, style, ...props }, ref) => {
15
+ const InternalRadioGroup = React.forwardRef(({ name, value, items, ariaLabel, ariaRequired, ariaControls, onChange, readOnly, __internalRootRef, style, direction, ...props }, ref) => {
16
16
  const { ariaDescribedby, ariaLabelledby } = useFormFieldContext(props);
17
17
  const baseProps = getBaseProps(props);
18
18
  const generatedName = useUniqueId('awsui-radio-');
19
19
  const [radioButtonRef, radioButtonRefIndex] = useRadioGroupForwardFocus(ref, items, value);
20
- return (React.createElement("div", { role: "radiogroup", "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, "aria-required": ariaRequired, "aria-controls": ariaControls, "aria-readonly": readOnly ? 'true' : undefined, ...baseProps, className: clsx(baseProps.className, testUtilStyles.root, styles['radio-group']), ref: __internalRootRef }, items &&
21
- items.map((item, index) => (React.createElement(RadioButton, { key: item.value, ref: index === radioButtonRefIndex ? radioButtonRef : undefined, className: clsx(styles.radio, item.description && styles['radio--has-description'], item.value === value && analyticsSelectors.selected), checked: item.value === value, name: name || generatedName, value: item.value, description: item.description, disabled: item.disabled, onChange: ({ detail }) => {
20
+ return (React.createElement("div", { role: "radiogroup", "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, "aria-required": ariaRequired, "aria-controls": ariaControls, "aria-readonly": readOnly ? 'true' : undefined, ...baseProps, className: clsx(baseProps.className, testUtilStyles.root, styles['radio-group'], direction === 'horizontal' && styles['horizontal-group']), ref: __internalRootRef }, items &&
21
+ items.map((item, index) => (React.createElement(RadioButton, { key: item.value, ref: index === radioButtonRefIndex ? radioButtonRef : undefined, className: clsx(styles.radio, item.description && styles['radio--has-description'], direction === 'horizontal' && styles.horizontal, item.value === value && analyticsSelectors.selected), checked: item.value === value, name: name || generatedName, value: item.value, description: item.description, disabled: item.disabled, onChange: ({ detail }) => {
22
22
  if (onChange && detail.checked) {
23
23
  fireNonCancelableEvent(onChange, { value: item.value });
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/radio-group/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAA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ACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { getBaseProps } from '../internal/base-component';\nimport RadioButton from '../internal/components/radio-button';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport useRadioGroupForwardFocus from '../internal/hooks/forward-focus/radio-group';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { GeneratedAnalyticsMetadataRadioGroupSelect } from './analytics-metadata/interfaces';\nimport { RadioGroupProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ntype InternalRadioGroupProps = RadioGroupProps & InternalBaseComponentProps;\n\nconst InternalRadioGroup = React.forwardRef(\n (\n {\n name,\n value,\n items,\n ariaLabel,\n ariaRequired,\n ariaControls,\n onChange,\n readOnly,\n __internalRootRef,\n style,\n ...props\n }: InternalRadioGroupProps,\n ref: React.Ref<RadioGroupProps.Ref>\n ) => {\n const { ariaDescribedby, ariaLabelledby } = useFormFieldContext(props);\n const baseProps = getBaseProps(props);\n const generatedName = useUniqueId('awsui-radio-');\n\n const [radioButtonRef, radioButtonRefIndex] = useRadioGroupForwardFocus(ref, items, value);\n\n return (\n <div\n role=\"radiogroup\"\n aria-labelledby={ariaLabelledby}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-required={ariaRequired}\n aria-controls={ariaControls}\n aria-readonly={readOnly ? 'true' : undefined}\n {...baseProps}\n className={clsx(baseProps.className, testUtilStyles.root, styles['radio-group'])}\n ref={__internalRootRef}\n >\n {items &&\n items.map((item, index) => (\n <RadioButton\n key={item.value}\n ref={index === radioButtonRefIndex ? radioButtonRef : undefined}\n className={clsx(\n styles.radio,\n item.description && styles['radio--has-description'],\n item.value === value && analyticsSelectors.selected\n )}\n checked={item.value === value}\n name={name || generatedName}\n value={item.value}\n description={item.description}\n disabled={item.disabled}\n onChange={({ detail }) => {\n if (onChange && detail.checked) {\n fireNonCancelableEvent(onChange, { value: item.value });\n }\n }}\n controlId={item.controlId}\n readOnly={readOnly}\n style={style}\n {...getAnalyticsMetadataAttribute(\n !item.disabled && !readOnly\n ? {\n detail: {\n position: `${index + 1}`,\n value: item.value,\n } as Partial<GeneratedAnalyticsMetadataRadioGroupSelect['detail']>,\n }\n : {}\n )}\n >\n {item.label}\n </RadioButton>\n ))}\n </div>\n );\n }\n);\n\nexport default InternalRadioGroup;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/radio-group/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,yBAAyB,MAAM,6CAA6C,CAAC;AAKpF,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAI1D,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CACzC,CACE,EACE,IAAI,E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AAK,KAAK,IAAI,kBAAkB,CAAC,QAAQ,CACpD,EACD,OAAO,EAAE,IAAI,CAAC,KAAK,KAAK,KAAK,EAC7B,IAAI,EAAE,IAAI,IAAI,aAAa,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE;gBACvB,IAAI,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBAC/B,sBAAsB,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;gBAC1D,CAAC;YACH,CAAC,EACD,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,KACR,6BAA6B,CAC/B,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ;gBACzB,CAAC,CAAC;oBACE,MAAM,EAAE;wBACN,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC,EAAE;wBACxB,KAAK,EAAE,IAAI,CAAC,KAAK;qBAC+C;iBACnE;gBACH,CAAC,CAAC,EAAE,CACP,IAEA,IAAI,CAAC,KAAK,CACC,CACf,CAAC,CACA,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { getBaseProps } from '../internal/base-component';\nimport RadioButton from '../internal/components/radio-button';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport useRadioGroupForwardFocus from '../internal/hooks/forward-focus/radio-group';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { GeneratedAnalyticsMetadataRadioGroupSelect } from './analytics-metadata/interfaces';\nimport { RadioGroupProps } from './interfaces';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ntype InternalRadioGroupProps = RadioGroupProps & InternalBaseComponentProps;\n\nconst InternalRadioGroup = React.forwardRef(\n (\n {\n name,\n value,\n items,\n ariaLabel,\n ariaRequired,\n ariaControls,\n onChange,\n readOnly,\n __internalRootRef,\n style,\n direction,\n ...props\n }: InternalRadioGroupProps,\n ref: React.Ref<RadioGroupProps.Ref>\n ) => {\n const { ariaDescribedby, ariaLabelledby } = useFormFieldContext(props);\n const baseProps = getBaseProps(props);\n const generatedName = useUniqueId('awsui-radio-');\n\n const [radioButtonRef, radioButtonRefIndex] = useRadioGroupForwardFocus(ref, items, value);\n\n return (\n <div\n role=\"radiogroup\"\n aria-labelledby={ariaLabelledby}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedby}\n aria-required={ariaRequired}\n aria-controls={ariaControls}\n aria-readonly={readOnly ? 'true' : undefined}\n {...baseProps}\n className={clsx(\n baseProps.className,\n testUtilStyles.root,\n styles['radio-group'],\n direction === 'horizontal' && styles['horizontal-group']\n )}\n ref={__internalRootRef}\n >\n {items &&\n items.map((item, index) => (\n <RadioButton\n key={item.value}\n ref={index === radioButtonRefIndex ? radioButtonRef : undefined}\n className={clsx(\n styles.radio,\n item.description && styles['radio--has-description'],\n direction === 'horizontal' && styles.horizontal,\n item.value === value && analyticsSelectors.selected\n )}\n checked={item.value === value}\n name={name || generatedName}\n value={item.value}\n description={item.description}\n disabled={item.disabled}\n onChange={({ detail }) => {\n if (onChange && detail.checked) {\n fireNonCancelableEvent(onChange, { value: item.value });\n }\n }}\n controlId={item.controlId}\n readOnly={readOnly}\n style={style}\n {...getAnalyticsMetadataAttribute(\n !item.disabled && !readOnly\n ? {\n detail: {\n position: `${index + 1}`,\n value: item.value,\n } as Partial<GeneratedAnalyticsMetadataRadioGroupSelect['detail']>,\n }\n : {}\n )}\n >\n {item.label}\n </RadioButton>\n ))}\n </div>\n );\n }\n);\n\nexport default InternalRadioGroup;\n"]}