@cloudscape-design/components 3.0.12 → 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 (113) 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/calendar/index.d.ts +1 -1
  30. package/date-picker/calendar/index.d.ts.map +1 -1
  31. package/date-picker/calendar/index.js +3 -1
  32. package/date-picker/calendar/index.js.map +1 -1
  33. package/date-picker/embedded.d.ts +3 -0
  34. package/date-picker/embedded.d.ts.map +1 -0
  35. package/date-picker/embedded.js +15 -0
  36. package/date-picker/embedded.js.map +1 -0
  37. package/date-picker/index.d.ts.map +1 -1
  38. package/date-picker/index.js +14 -39
  39. package/date-picker/index.js.map +1 -1
  40. package/date-picker/interfaces.d.ts +12 -10
  41. package/date-picker/interfaces.d.ts.map +1 -1
  42. package/date-picker/interfaces.js.map +1 -1
  43. package/date-picker/styles.scoped.css +0 -2
  44. package/date-picker/use-date-picker.d.ts +17 -0
  45. package/date-picker/use-date-picker.d.ts.map +1 -0
  46. package/date-picker/use-date-picker.js +48 -0
  47. package/date-picker/use-date-picker.js.map +1 -0
  48. package/date-range-picker/calendar/header/button/index.d.ts +1 -2
  49. package/date-range-picker/calendar/header/button/index.d.ts.map +1 -1
  50. package/date-range-picker/calendar/header/button/index.js +2 -3
  51. package/date-range-picker/calendar/header/button/index.js.map +1 -1
  52. package/date-range-picker/calendar/header/index.d.ts +1 -2
  53. package/date-range-picker/calendar/header/index.d.ts.map +1 -1
  54. package/date-range-picker/calendar/header/index.js +3 -3
  55. package/date-range-picker/calendar/header/index.js.map +1 -1
  56. package/date-range-picker/calendar/index.js +1 -1
  57. package/date-range-picker/calendar/index.js.map +1 -1
  58. package/date-range-picker/styles.scoped.css +0 -3
  59. package/expandable-section/styles.scoped.css +0 -1
  60. package/flashbar/styles.scoped.css +0 -1
  61. package/form/styles.scoped.css +0 -1
  62. package/form-field/styles.scoped.css +0 -1
  63. package/grid/styles.scoped.css +0 -1
  64. package/header/styles.scoped.css +0 -1
  65. package/help-panel/styles.scoped.css +0 -1
  66. package/input/styles.scoped.css +0 -1
  67. package/internal/components/abstract-switch/styles.scoped.css +0 -1
  68. package/internal/components/button-trigger/styles.scoped.css +0 -1
  69. package/internal/components/chart-filter/styles.scoped.css +0 -1
  70. package/internal/components/chart-legend/styles.scoped.css +0 -1
  71. package/internal/components/chart-popover/styles.scoped.css +0 -1
  72. package/internal/components/chart-series-details/styles.scoped.css +0 -2
  73. package/internal/components/chart-series-marker/styles.scoped.css +0 -1
  74. package/internal/components/dropdown/styles.scoped.css +0 -2
  75. package/internal/components/dropdown-footer/styles.scoped.css +0 -1
  76. package/internal/components/dropdown-status/styles.scoped.css +0 -1
  77. package/internal/components/menu-dropdown/styles.scoped.css +0 -1
  78. package/internal/components/option/styles.scoped.css +0 -1
  79. package/internal/components/options-list/styles.scoped.css +0 -1
  80. package/internal/environment.js +1 -1
  81. package/link/styles.scoped.css +0 -1
  82. package/mixed-line-bar-chart/styles.scoped.css +0 -1
  83. package/modal/styles.scoped.css +0 -2
  84. package/multiselect/styles.scoped.css +0 -1
  85. package/package.json +1 -1
  86. package/pagination/styles.scoped.css +0 -1
  87. package/pie-chart/styles.scoped.css +0 -1
  88. package/popover/styles.scoped.css +0 -2
  89. package/progress-bar/styles.scoped.css +0 -1
  90. package/property-filter/styles.scoped.css +0 -1
  91. package/radio-group/styles.scoped.css +0 -1
  92. package/segmented-control/styles.scoped.css +0 -7
  93. package/select/styles.scoped.css +0 -1
  94. package/side-navigation/styles.scoped.css +0 -1
  95. package/split-panel/styles.scoped.css +0 -2
  96. package/table/resizer/styles.scoped.css +0 -1
  97. package/tabs/styles.scoped.css +0 -1
  98. package/text-content/styles.scoped.css +0 -1
  99. package/text-filter/styles.scoped.css +0 -1
  100. package/textarea/styles.scoped.css +0 -12
  101. package/tiles/styles.scoped.css +0 -2
  102. package/toggle/styles.scoped.css +0 -1
  103. package/token-group/styles.scoped.css +0 -2
  104. package/top-navigation/1.0-beta/styles.scoped.css +0 -1
  105. package/top-navigation/styles.scoped.css +0 -3
  106. package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +0 -1
  107. package/tutorial-panel/components/tutorial-list/styles.scoped.css +0 -3
  108. package/tutorial-panel/styles.scoped.css +0 -1
  109. package/wizard/styles.scoped.css +0 -1
  110. package/autosuggest/hooks/a11y.d.ts +0 -5
  111. package/autosuggest/hooks/a11y.d.ts.map +0 -1
  112. package/autosuggest/hooks/a11y.js +0 -24
  113. package/autosuggest/hooks/a11y.js.map +0 -1
@@ -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"]}