@cloudscape-design/components 3.0.14 → 3.0.15

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 (95) hide show
  1. package/alert/styles.scoped.css +0 -2
  2. package/annotation-context/annotation/styles.scoped.css +0 -1
  3. package/area-chart/styles.scoped.css +0 -1
  4. package/attribute-editor/styles.scoped.css +0 -1
  5. package/autosuggest/internal.d.ts.map +1 -1
  6. package/autosuggest/internal.js +19 -33
  7. package/autosuggest/internal.js.map +1 -1
  8. package/autosuggest/options-list.d.ts +19 -0
  9. package/autosuggest/options-list.d.ts.map +1 -0
  10. package/autosuggest/options-list.js +37 -0
  11. package/autosuggest/options-list.js.map +1 -0
  12. package/autosuggest/plain-list.d.ts +3 -5
  13. package/autosuggest/plain-list.d.ts.map +1 -1
  14. package/autosuggest/plain-list.js +7 -7
  15. package/autosuggest/plain-list.js.map +1 -1
  16. package/autosuggest/virtual-list.d.ts +2 -6
  17. package/autosuggest/virtual-list.d.ts.map +1 -1
  18. package/autosuggest/virtual-list.js +7 -7
  19. package/autosuggest/virtual-list.js.map +1 -1
  20. package/badge/styles.scoped.css +0 -1
  21. package/breadcrumb-group/styles.scoped.css +0 -2
  22. package/button/styles.scoped.css +0 -1
  23. package/button-dropdown/mobile-expandable-group/styles.scoped.css +0 -2
  24. package/cards/styles.scoped.css +0 -1
  25. package/checkbox/styles.scoped.css +0 -1
  26. package/code-editor/styles.scoped.css +0 -1
  27. package/column-layout/styles.scoped.css +0 -1
  28. package/container/styles.scoped.css +0 -1
  29. package/date-picker/styles.scoped.css +0 -2
  30. package/date-range-picker/calendar/header/button/index.d.ts +1 -2
  31. package/date-range-picker/calendar/header/button/index.d.ts.map +1 -1
  32. package/date-range-picker/calendar/header/button/index.js +2 -3
  33. package/date-range-picker/calendar/header/button/index.js.map +1 -1
  34. package/date-range-picker/calendar/header/index.d.ts +1 -2
  35. package/date-range-picker/calendar/header/index.d.ts.map +1 -1
  36. package/date-range-picker/calendar/header/index.js +3 -3
  37. package/date-range-picker/calendar/header/index.js.map +1 -1
  38. package/date-range-picker/calendar/index.js +1 -1
  39. package/date-range-picker/calendar/index.js.map +1 -1
  40. package/date-range-picker/styles.scoped.css +0 -3
  41. package/expandable-section/styles.scoped.css +0 -1
  42. package/flashbar/styles.scoped.css +0 -1
  43. package/form/styles.scoped.css +0 -1
  44. package/form-field/styles.scoped.css +0 -1
  45. package/grid/styles.scoped.css +0 -1
  46. package/header/styles.scoped.css +0 -1
  47. package/help-panel/styles.scoped.css +0 -1
  48. package/input/styles.scoped.css +0 -1
  49. package/internal/components/abstract-switch/styles.scoped.css +0 -1
  50. package/internal/components/button-trigger/styles.scoped.css +0 -1
  51. package/internal/components/chart-filter/styles.scoped.css +0 -1
  52. package/internal/components/chart-legend/styles.scoped.css +0 -1
  53. package/internal/components/chart-popover/styles.scoped.css +0 -1
  54. package/internal/components/chart-series-details/styles.scoped.css +0 -2
  55. package/internal/components/chart-series-marker/styles.scoped.css +0 -1
  56. package/internal/components/dropdown/styles.scoped.css +0 -2
  57. package/internal/components/dropdown-footer/styles.scoped.css +0 -1
  58. package/internal/components/dropdown-status/styles.scoped.css +0 -1
  59. package/internal/components/menu-dropdown/styles.scoped.css +0 -1
  60. package/internal/components/option/styles.scoped.css +0 -1
  61. package/internal/components/options-list/styles.scoped.css +0 -1
  62. package/internal/environment.js +1 -1
  63. package/link/styles.scoped.css +0 -1
  64. package/mixed-line-bar-chart/styles.scoped.css +0 -1
  65. package/modal/styles.scoped.css +0 -2
  66. package/multiselect/styles.scoped.css +0 -1
  67. package/package.json +1 -1
  68. package/pagination/styles.scoped.css +0 -1
  69. package/pie-chart/styles.scoped.css +0 -1
  70. package/popover/styles.scoped.css +0 -2
  71. package/progress-bar/styles.scoped.css +0 -1
  72. package/property-filter/styles.scoped.css +0 -1
  73. package/radio-group/styles.scoped.css +0 -1
  74. package/segmented-control/styles.scoped.css +0 -7
  75. package/select/styles.scoped.css +0 -1
  76. package/side-navigation/styles.scoped.css +0 -1
  77. package/split-panel/styles.scoped.css +0 -2
  78. package/table/resizer/styles.scoped.css +0 -1
  79. package/tabs/styles.scoped.css +0 -1
  80. package/text-content/styles.scoped.css +0 -1
  81. package/text-filter/styles.scoped.css +0 -1
  82. package/textarea/styles.scoped.css +0 -12
  83. package/tiles/styles.scoped.css +0 -2
  84. package/toggle/styles.scoped.css +0 -1
  85. package/token-group/styles.scoped.css +0 -2
  86. package/top-navigation/1.0-beta/styles.scoped.css +0 -1
  87. package/top-navigation/styles.scoped.css +0 -3
  88. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +0 -1
  89. package/tutorial-panel/components/tutorial-list/styles.scoped.css +0 -3
  90. package/tutorial-panel/styles.scoped.css +0 -1
  91. package/wizard/styles.scoped.css +0 -1
  92. package/autosuggest/hooks/a11y.d.ts +0 -5
  93. package/autosuggest/hooks/a11y.d.ts.map +0 -1
  94. package/autosuggest/hooks/a11y.js +0 -24
  95. package/autosuggest/hooks/a11y.js.map +0 -1
@@ -344,7 +344,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
344
344
  font-stretch: normal;
345
345
  line-height: normal;
346
346
  -webkit-hyphens: none;
347
- -ms-hyphens: none;
348
347
  hyphens: none;
349
348
  letter-spacing: normal;
350
349
  list-style: disc outside none;
@@ -699,7 +698,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
699
698
  font-stretch: normal;
700
699
  line-height: normal;
701
700
  -webkit-hyphens: none;
702
- -ms-hyphens: none;
703
701
  hyphens: none;
704
702
  letter-spacing: normal;
705
703
  list-style: disc outside none;
@@ -240,7 +240,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
240
240
  font-stretch: normal;
241
241
  line-height: normal;
242
242
  -webkit-hyphens: none;
243
- -ms-hyphens: none;
244
243
  hyphens: none;
245
244
  letter-spacing: normal;
246
245
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -259,7 +259,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
259
259
  font-stretch: normal;
260
260
  line-height: normal;
261
261
  -webkit-hyphens: none;
262
- -ms-hyphens: none;
263
262
  hyphens: none;
264
263
  letter-spacing: normal;
265
264
  list-style: disc outside none;
@@ -286,7 +285,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
286
285
  }
287
286
 
288
287
  .awsui_segment-part_8cbea_l5avo_225:not(#\9) {
289
- display: -ms-inline-grid;
290
288
  display: inline-grid;
291
289
  }
292
290
  @media (max-width: 688px) {
@@ -305,26 +303,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
305
303
  }
306
304
 
307
305
  .awsui_segment-count-2_8cbea_l5avo_244:not(#\9) {
308
- -ms-grid-columns: 1fr 1fr;
309
306
  grid-template-columns: 1fr 1fr;
310
307
  }
311
308
 
312
309
  .awsui_segment-count-3_8cbea_l5avo_249:not(#\9) {
313
- -ms-grid-columns: 1fr 1fr 1fr;
314
310
  grid-template-columns: 1fr 1fr 1fr;
315
311
  }
316
312
 
317
313
  .awsui_segment-count-4_8cbea_l5avo_254:not(#\9) {
318
- -ms-grid-columns: 1fr 1fr 1fr 1fr;
319
314
  grid-template-columns: 1fr 1fr 1fr 1fr;
320
315
  }
321
316
 
322
317
  .awsui_segment-count-5_8cbea_l5avo_259:not(#\9) {
323
- -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr;
324
318
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
325
319
  }
326
320
 
327
321
  .awsui_segment-count-6_8cbea_l5avo_264:not(#\9) {
328
- -ms-grid-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
329
322
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
330
323
  }
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -312,7 +312,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
312
312
  /* stylelint-disable selector-combinator-disallowed-list, selector-max-type, selector-max-universal */
313
313
  .awsui_resize-active_1r9lg_8k188_289 *:not(#\9) {
314
314
  -webkit-user-select: none;
315
- -ms-user-select: none;
316
315
  user-select: none;
317
316
  }
318
317
  .awsui_resize-active_1r9lg_8k188_289 iframe:not(#\9) {
@@ -342,7 +341,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
342
341
  font-stretch: normal;
343
342
  line-height: normal;
344
343
  -webkit-hyphens: none;
345
- -ms-hyphens: none;
346
344
  hyphens: none;
347
345
  letter-spacing: normal;
348
346
  list-style: disc outside none;
@@ -93,7 +93,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
93
93
  .awsui_resize-active_x7peu_1luui_93 *:not(#\9) {
94
94
  cursor: col-resize;
95
95
  -webkit-user-select: none;
96
- -ms-user-select: none;
97
96
  user-select: none;
98
97
  }
99
98
 
@@ -407,7 +407,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
407
407
  font-stretch: normal;
408
408
  line-height: normal;
409
409
  -webkit-hyphens: none;
410
- -ms-hyphens: none;
411
410
  hyphens: none;
412
411
  letter-spacing: normal;
413
412
  list-style: disc outside none;
@@ -107,7 +107,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
107
107
  font-stretch: normal;
108
108
  line-height: normal;
109
109
  -webkit-hyphens: none;
110
- -ms-hyphens: none;
111
110
  hyphens: none;
112
111
  letter-spacing: normal;
113
112
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -110,7 +110,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
110
110
  font-stretch: normal;
111
111
  line-height: normal;
112
112
  -webkit-hyphens: none;
113
- -ms-hyphens: none;
114
113
  hyphens: none;
115
114
  letter-spacing: normal;
116
115
  list-style: disc outside none;
@@ -163,12 +162,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
163
162
  border: 2px solid #e9ebed;
164
163
  border: var(--border-field-width-idlekx, 2px) solid var(--color-border-input-disabled-x2lopj, #e9ebed);
165
164
  }
166
- .awsui_textarea_qk1j1_13ce5_97:not(#\9):-ms-input-placeholder {
167
- color: #5f6b7a;
168
- color: var(--color-text-input-placeholder-j53j3c, #5f6b7a);
169
- font-style: italic;
170
- opacity: 1;
171
- }
172
165
  .awsui_textarea_qk1j1_13ce5_97:not(#\9)::placeholder {
173
166
  color: #5f6b7a;
174
167
  color: var(--color-text-input-placeholder-j53j3c, #5f6b7a);
@@ -202,11 +195,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
202
195
  cursor: auto;
203
196
  cursor: default;
204
197
  }
205
- .awsui_textarea_qk1j1_13ce5_97:not(#\9):disabled:-ms-input-placeholder {
206
- color: #9ba7b6;
207
- color: var(--color-text-input-placeholder-disabled-6928j8, #9ba7b6);
208
- opacity: 1;
209
- }
210
198
  .awsui_textarea_qk1j1_13ce5_97:not(#\9):disabled::placeholder {
211
199
  color: #9ba7b6;
212
200
  color: var(--color-text-input-placeholder-disabled-6928j8, #9ba7b6);
@@ -106,7 +106,6 @@ div.awsui_column-layout_vj6p7_1af46_93:not(#\9) {
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -292,7 +291,6 @@ div.awsui_column-layout_vj6p7_1af46_93 > .awsui_grid_vj6p7_1af46_104.awsui_grid-
292
291
  font-stretch: normal;
293
292
  line-height: normal;
294
293
  -webkit-hyphens: none;
295
- -ms-hyphens: none;
296
294
  hyphens: none;
297
295
  letter-spacing: normal;
298
296
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -110,7 +110,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
110
110
  font-stretch: normal;
111
111
  line-height: normal;
112
112
  -webkit-hyphens: none;
113
- -ms-hyphens: none;
114
113
  hyphens: none;
115
114
  letter-spacing: normal;
116
115
  list-style: disc outside none;
@@ -233,7 +232,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
233
232
  font-stretch: normal;
234
233
  line-height: normal;
235
234
  -webkit-hyphens: none;
236
- -ms-hyphens: none;
237
235
  hyphens: none;
238
236
  letter-spacing: normal;
239
237
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -125,7 +125,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
125
125
  font-stretch: normal;
126
126
  line-height: normal;
127
127
  -webkit-hyphens: none;
128
- -ms-hyphens: none;
129
128
  hyphens: none;
130
129
  letter-spacing: normal;
131
130
  list-style: disc outside none;
@@ -378,7 +377,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
378
377
  font-stretch: normal;
379
378
  line-height: normal;
380
379
  -webkit-hyphens: none;
381
- -ms-hyphens: none;
382
380
  hyphens: none;
383
381
  letter-spacing: normal;
384
382
  list-style: disc outside none;
@@ -466,7 +464,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
466
464
  font-stretch: normal;
467
465
  line-height: normal;
468
466
  -webkit-hyphens: none;
469
- -ms-hyphens: none;
470
467
  hyphens: none;
471
468
  letter-spacing: normal;
472
469
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -133,7 +133,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
133
133
  font-stretch: normal;
134
134
  line-height: normal;
135
135
  -webkit-hyphens: none;
136
- -ms-hyphens: none;
137
136
  hyphens: none;
138
137
  letter-spacing: normal;
139
138
  list-style: disc outside none;
@@ -177,7 +176,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
177
176
  font-stretch: normal;
178
177
  line-height: normal;
179
178
  -webkit-hyphens: none;
180
- -ms-hyphens: none;
181
179
  hyphens: none;
182
180
  letter-spacing: normal;
183
181
  list-style: disc outside none;
@@ -290,7 +288,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
290
288
  font-stretch: normal;
291
289
  line-height: normal;
292
290
  -webkit-hyphens: none;
293
- -ms-hyphens: none;
294
291
  hyphens: none;
295
292
  letter-spacing: normal;
296
293
  list-style: disc outside none;
@@ -106,7 +106,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
106
106
  font-stretch: normal;
107
107
  line-height: normal;
108
108
  -webkit-hyphens: none;
109
- -ms-hyphens: none;
110
109
  hyphens: none;
111
110
  letter-spacing: normal;
112
111
  list-style: disc outside none;
@@ -107,7 +107,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
107
107
  font-stretch: normal;
108
108
  line-height: normal;
109
109
  -webkit-hyphens: none;
110
- -ms-hyphens: none;
111
110
  hyphens: none;
112
111
  letter-spacing: normal;
113
112
  list-style: disc outside none;
@@ -1,5 +0,0 @@
1
- import { AutosuggestItem } from '../interfaces';
2
- declare type NativeAttributes = Record<string, any>;
3
- export declare const useDropdownA11yProps: (listId: string, expanded: boolean, inputAriaLabel?: string | undefined, highlightedOption?: AutosuggestItem | undefined) => [NativeAttributes, NativeAttributes];
4
- export {};
5
- //# sourceMappingURL=a11y.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../../../src/autosuggest/hooks/a11y.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,aAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE5C,eAAO,MAAM,oBAAoB,WACvB,MAAM,YACJ,OAAO,2FAGhB,CAAC,gBAAgB,EAAE,gBAAgB,CAsBrC,CAAC"}
@@ -1,24 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- import { generateUniqueId } from '../../internal/hooks/use-unique-id';
4
- export var useDropdownA11yProps = function (listId, expanded, inputAriaLabel, highlightedOption) {
5
- var itemProps = {};
6
- var inputProps = {
7
- role: 'combobox',
8
- 'aria-autocomplete': 'list',
9
- 'aria-expanded': expanded,
10
- 'aria-controls': listId,
11
- // 'aria-owns' needed for safari+vo to announce activedescendant content
12
- 'aria-owns': listId
13
- };
14
- if (inputAriaLabel) {
15
- inputProps['aria-label'] = inputAriaLabel;
16
- }
17
- if (highlightedOption) {
18
- var id = generateUniqueId();
19
- itemProps.id = id;
20
- inputProps['aria-activedescendant'] = id;
21
- }
22
- return [inputProps, itemProps];
23
- };
24
- //# sourceMappingURL=a11y.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"a11y.js","sourceRoot":"","sources":["../../../../src/autosuggest/hooks/a11y.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAMtE,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAClC,MAAc,EACd,QAAiB,EACjB,cAAuB,EACvB,iBAAmC;IAEnC,IAAM,SAAS,GAA2B,EAAE,CAAC;IAC7C,IAAM,UAAU,GAAqB;QACnC,IAAI,EAAE,UAAU;QAChB,mBAAmB,EAAE,MAAM;QAC3B,eAAe,EAAE,QAAQ;QACzB,eAAe,EAAE,MAAM;QACvB,wEAAwE;QACxE,WAAW,EAAE,MAAM;KACpB,CAAC;IAEF,IAAI,cAAc,EAAE;QAClB,UAAU,CAAC,YAAY,CAAC,GAAG,cAAc,CAAC;KAC3C;IAED,IAAI,iBAAiB,EAAE;QACrB,IAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;QAC9B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;QAClB,UAAU,CAAC,uBAAuB,CAAC,GAAG,EAAE,CAAC;KAC1C;IAED,OAAO,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AACjC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { generateUniqueId } from '../../internal/hooks/use-unique-id';\n\nimport { AutosuggestItem } from '../interfaces';\n\ntype NativeAttributes = Record<string, any>;\n\nexport const useDropdownA11yProps = (\n listId: string,\n expanded: boolean,\n inputAriaLabel?: string,\n highlightedOption?: AutosuggestItem\n): [NativeAttributes, NativeAttributes] => {\n const itemProps: Record<string, string> = {};\n const inputProps: NativeAttributes = {\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-expanded': expanded,\n 'aria-controls': listId,\n // 'aria-owns' needed for safari+vo to announce activedescendant content\n 'aria-owns': listId,\n };\n\n if (inputAriaLabel) {\n inputProps['aria-label'] = inputAriaLabel;\n }\n\n if (highlightedOption) {\n const id = generateUniqueId();\n itemProps.id = id;\n inputProps['aria-activedescendant'] = id;\n }\n\n return [inputProps, itemProps];\n};\n"]}