@cloudscape-design/components 3.0.22 → 3.0.25
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.
- package/alert/styles.scoped.css +0 -34
- package/annotation-context/annotation/annotation-popover.d.ts.map +1 -1
- package/annotation-context/annotation/annotation-popover.js +12 -16
- package/annotation-context/annotation/annotation-popover.js.map +1 -1
- package/annotation-context/annotation/styles.scoped.css +0 -18
- package/app-layout/content-wrapper/styles.scoped.css +0 -4
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +6 -4
- package/app-layout/index.js.map +1 -1
- package/app-layout/mobile-toolbar/styles.scoped.css +0 -9
- package/app-layout/styles.scoped.css +0 -20
- package/app-layout/toggles/styles.scoped.css +0 -16
- package/app-layout/visual-refresh/styles.scoped.css +0 -71
- package/area-chart/styles.scoped.css +0 -13
- package/attribute-editor/styles.scoped.css +0 -23
- package/badge/styles.scoped.css +0 -15
- package/bar-chart/interfaces.d.ts +1 -1
- package/bar-chart/interfaces.d.ts.map +1 -1
- package/bar-chart/interfaces.js.map +1 -1
- package/box/styles.scoped.css +0 -171
- package/breadcrumb-group/item/styles.scoped.css +0 -11
- package/breadcrumb-group/styles.scoped.css +0 -10
- package/button/styles.scoped.css +0 -264
- package/button-dropdown/category-elements/styles.scoped.css +0 -26
- package/button-dropdown/item-element/styles.scoped.css +0 -22
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +0 -5
- package/button-dropdown/styles.scoped.css +0 -7
- package/cards/styles.scoped.css +0 -45
- package/checkbox/styles.scoped.css +0 -11
- package/code-editor/styles.scoped.css +0 -87
- package/collection-preferences/styles.scoped.css +0 -12
- package/column-layout/styles.scoped.css +0 -12
- package/container/styles.scoped.css +0 -27
- package/date-picker/calendar/index.d.ts.map +1 -1
- package/date-picker/calendar/index.js +2 -2
- package/date-picker/calendar/index.js.map +1 -1
- package/date-picker/calendar/utils/locales.d.ts +2 -0
- package/date-picker/calendar/utils/locales.d.ts.map +1 -1
- package/date-picker/calendar/utils/locales.js +4 -0
- package/date-picker/calendar/utils/locales.js.map +1 -1
- package/date-picker/styles.scoped.css +0 -45
- package/date-range-picker/calendar/grids/day/styles.scoped.css +0 -45
- package/date-range-picker/calendar/index.js +2 -2
- package/date-range-picker/calendar/index.js.map +1 -1
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +13 -15
- package/date-range-picker/index.js.map +1 -1
- package/date-range-picker/relative-range/styles.scoped.css +0 -3
- package/date-range-picker/styles.css.js +41 -42
- package/date-range-picker/styles.scoped.css +49 -92
- package/date-range-picker/styles.selectors.js +41 -42
- package/expandable-section/styles.scoped.css +0 -33
- package/flashbar/styles.scoped.css +0 -36
- package/form/styles.scoped.css +0 -12
- package/form-field/styles.scoped.css +0 -26
- package/grid/styles.scoped.css +0 -6
- package/header/styles.scoped.css +0 -51
- package/help-panel/styles.scoped.css +0 -73
- package/hotspot/styles.scoped.css +0 -3
- package/icon/styles.scoped.css +0 -33
- package/input/styles.scoped.css +0 -49
- package/internal/base-component/styles.scoped.css +0 -1
- package/internal/components/abstract-switch/styles.scoped.css +0 -7
- package/internal/components/button-trigger/styles.scoped.css +0 -42
- package/internal/components/cartesian-chart/styles.scoped.css +0 -10
- package/internal/components/chart-filter/styles.scoped.css +0 -4
- package/internal/components/chart-legend/styles.scoped.css +0 -8
- package/internal/components/chart-plot/styles.scoped.css +0 -1
- package/internal/components/chart-popover/styles.scoped.css +0 -4
- package/internal/components/chart-series-details/styles.scoped.css +0 -12
- package/internal/components/chart-series-marker/styles.scoped.css +0 -7
- package/internal/components/chart-status-container/styles.scoped.css +0 -1
- package/internal/components/checkbox-icon/styles.scoped.css +0 -10
- package/internal/components/content-layout/styles.scoped.css +0 -5
- package/internal/components/dark-ribbon/styles.scoped.css +0 -1
- package/internal/components/dropdown/styles.scoped.css +0 -17
- package/internal/components/dropdown-footer/styles.scoped.css +0 -6
- package/internal/components/dropdown-status/styles.scoped.css +0 -6
- package/internal/components/filtering-token/styles.scoped.css +0 -21
- package/internal/components/menu-dropdown/styles.scoped.css +0 -17
- package/internal/components/option/index.js +3 -3
- package/internal/components/option/index.js.map +1 -1
- package/internal/components/option/option-parts.js +3 -3
- package/internal/components/option/option-parts.js.map +1 -1
- package/internal/components/option/styles.scoped.css +0 -16
- package/internal/components/options-list/styles.scoped.css +0 -5
- package/internal/components/selectable-item/styles.scoped.css +0 -44
- package/internal/environment.js +1 -1
- package/line-chart/interfaces.d.ts +1 -1
- package/line-chart/interfaces.d.ts.map +1 -1
- package/line-chart/interfaces.js.map +1 -1
- package/link/styles.scoped.css +0 -77
- package/mixed-line-bar-chart/bar-series.d.ts +1 -1
- package/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/bar-series.js.map +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js +9 -10
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/chart-filters.d.ts +2 -2
- package/mixed-line-bar-chart/chart-filters.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-filters.js +1 -2
- package/mixed-line-bar-chart/chart-filters.js.map +1 -1
- package/mixed-line-bar-chart/chart-legend.d.ts +2 -2
- package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-legend.js +1 -2
- package/mixed-line-bar-chart/chart-legend.js.map +1 -1
- package/mixed-line-bar-chart/domain.d.ts +4 -0
- package/mixed-line-bar-chart/domain.d.ts.map +1 -0
- package/mixed-line-bar-chart/domain.js +138 -0
- package/mixed-line-bar-chart/domain.js.map +1 -0
- package/mixed-line-bar-chart/format-highlighted.d.ts +2 -4
- package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.js +26 -15
- package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.d.ts.map +1 -1
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js +3 -2
- package/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.d.ts.map +1 -1
- package/mixed-line-bar-chart/hooks/use-navigation.js +23 -35
- package/mixed-line-bar-chart/hooks/use-navigation.js.map +1 -1
- package/mixed-line-bar-chart/interfaces.d.ts +12 -2
- package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
- package/mixed-line-bar-chart/interfaces.js.map +1 -1
- package/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/mixed-line-bar-chart/internal.js +14 -6
- package/mixed-line-bar-chart/internal.js.map +1 -1
- package/mixed-line-bar-chart/line-series.d.ts +2 -2
- package/mixed-line-bar-chart/line-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/line-series.js +21 -9
- package/mixed-line-bar-chart/line-series.js.map +1 -1
- package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
- package/mixed-line-bar-chart/make-scaled-bar-groups.js +11 -4
- package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
- package/mixed-line-bar-chart/make-scaled-series.d.ts +2 -4
- package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
- package/mixed-line-bar-chart/make-scaled-series.js +89 -25
- package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
- package/mixed-line-bar-chart/styles.scoped.css +0 -13
- package/mixed-line-bar-chart/utils.d.ts +5 -6
- package/mixed-line-bar-chart/utils.d.ts.map +1 -1
- package/mixed-line-bar-chart/utils.js +11 -112
- package/mixed-line-bar-chart/utils.js.map +1 -1
- package/modal/styles.scoped.css +0 -31
- package/multiselect/styles.scoped.css +0 -4
- package/package.json +1 -1
- package/pagination/styles.scoped.css +0 -22
- package/pie-chart/styles.scoped.css +0 -25
- package/popover/styles.scoped.css +0 -35
- package/progress-bar/internal.d.ts.map +1 -1
- package/progress-bar/internal.js +1 -1
- package/progress-bar/internal.js.map +1 -1
- package/progress-bar/styles.scoped.css +0 -25
- package/property-filter/controller.d.ts +3 -3
- package/property-filter/controller.d.ts.map +1 -1
- package/property-filter/interfaces.d.ts +7 -20
- package/property-filter/interfaces.d.ts.map +1 -1
- package/property-filter/interfaces.js.map +1 -1
- package/property-filter/styles.scoped.css +0 -22
- package/property-filter/use-load-items.d.ts +1 -1
- package/radio-group/styles.scoped.css +0 -22
- package/s3-resource-selector/s3-in-context/styles.scoped.css +0 -6
- package/segmented-control/styles.scoped.css +0 -36
- package/select/parts/styles.scoped.css +0 -6
- package/select/styles.scoped.css +0 -4
- package/side-navigation/styles.scoped.css +0 -38
- package/space-between/styles.scoped.css +0 -40
- package/spinner/styles.scoped.css +0 -17
- package/split-panel/styles.scoped.css +0 -65
- package/status-indicator/styles.scoped.css +0 -20
- package/table/body-cell/styles.scoped.css +0 -29
- package/table/header-cell/styles.scoped.css +0 -32
- package/table/resizer/styles.scoped.css +0 -6
- package/table/selection-control/styles.scoped.css +0 -3
- package/table/styles.scoped.css +0 -39
- package/tabs/styles.scoped.css +0 -41
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +3 -1
- package/tabs/tab-header-bar.js.map +1 -1
- package/tag-editor/styles.scoped.css +0 -12
- package/test-utils/dom/split-panel/index.d.ts +1 -0
- package/test-utils/dom/split-panel/index.js +3 -0
- package/test-utils/dom/split-panel/index.js.map +1 -1
- package/test-utils/selectors/split-panel/index.d.ts +1 -0
- package/test-utils/selectors/split-panel/index.js +3 -0
- package/test-utils/selectors/split-panel/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/text-content/styles.scoped.css +0 -54
- package/text-filter/styles.scoped.css +0 -7
- package/textarea/styles.scoped.css +0 -30
- package/tiles/styles.scoped.css +0 -55
- package/toggle/styles.scoped.css +0 -14
- package/token-group/styles.scoped.css +0 -35
- package/top-navigation/1.0-beta/styles.scoped.css +0 -40
- package/top-navigation/styles.scoped.css +0 -75
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +0 -22
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +0 -24
- package/tutorial-panel/styles.scoped.css +0 -5
- package/wizard/styles.scoped.css +0 -54
|
@@ -91,7 +91,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
93
|
.awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
94
|
-
animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_1aum0_1 135ms ease-out;
|
|
95
94
|
animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_1aum0_1 var(--motion-duration-show-quick-tyaalm, 135ms) var(--motion-easing-show-quick-1fcgbv, ease-out);
|
|
96
95
|
}
|
|
97
96
|
@keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_1aum0_1 {
|
|
@@ -115,9 +114,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
115
114
|
.awsui_dropdown-content-wrapper_qwoo0_1aum0_93.awsui_refresh_qwoo0_1aum0_114:not(#\9) {
|
|
116
115
|
transform-origin: top;
|
|
117
116
|
animation-name: awsui_awsui-motion-fade-in-0_qwoo0_1aum0_1;
|
|
118
|
-
animation-duration: 135ms;
|
|
119
117
|
animation-duration: var(--motion-duration-show-quick-tyaalm, 135ms);
|
|
120
|
-
animation-timing-function: ease-out;
|
|
121
118
|
animation-timing-function: var(--motion-easing-show-quick-1fcgbv, ease-out);
|
|
122
119
|
}
|
|
123
120
|
@keyframes awsui_awsui-motion-fade-in-0_qwoo0_1aum0_1 {
|
|
@@ -173,14 +170,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
173
170
|
widows: 2;
|
|
174
171
|
word-spacing: normal;
|
|
175
172
|
box-sizing: border-box;
|
|
176
|
-
font-size: 14px;
|
|
177
173
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
178
|
-
line-height: 22px;
|
|
179
174
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
180
|
-
color: #000716;
|
|
181
175
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
182
176
|
font-weight: 400;
|
|
183
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
184
177
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
185
178
|
position: relative;
|
|
186
179
|
white-space: inherit;
|
|
@@ -202,7 +195,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
195
|
}
|
|
203
196
|
.awsui_dropdown_qwoo0_1aum0_93:not(#\9):not(.awsui_interior_qwoo0_1aum0_155) {
|
|
204
197
|
transform: translateY(0px);
|
|
205
|
-
transition: transform 135ms;
|
|
206
198
|
transition: transform var(--motion-duration-show-quick-tyaalm, 135ms);
|
|
207
199
|
}
|
|
208
200
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -217,14 +209,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
217
209
|
}
|
|
218
210
|
.awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
219
211
|
position: relative;
|
|
220
|
-
background-color: #ffffff;
|
|
221
212
|
background-color: var(--color-background-dropdown-item-default-fzdqsg, #ffffff);
|
|
222
213
|
outline: none;
|
|
223
|
-
box-shadow: 0px 4px 20px 1px rgba(0, 7, 22, 0.1);
|
|
224
214
|
box-shadow: var(--shadow-dropdown-99h0gz, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
|
|
225
|
-
border-radius: 8px;
|
|
226
215
|
border-radius: var(--border-radius-dropdown-ujknaf, 8px);
|
|
227
|
-
border-top: 1px solid transparent;
|
|
228
216
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
229
217
|
box-sizing: border-box;
|
|
230
218
|
border-bottom: none;
|
|
@@ -238,21 +226,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
238
226
|
bottom: 0px;
|
|
239
227
|
right: 0px;
|
|
240
228
|
background-color: transparent;
|
|
241
|
-
border: 2px solid #9ba7b6;
|
|
242
229
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-dropdown-container-tyn0js, #9ba7b6);
|
|
243
|
-
border-radius: 8px;
|
|
244
230
|
border-radius: var(--border-radius-dropdown-ujknaf, 8px);
|
|
245
231
|
pointer-events: none;
|
|
246
232
|
}
|
|
247
233
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
248
234
|
.awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
249
|
-
border: 2px solid transparent;
|
|
250
235
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
251
236
|
}
|
|
252
237
|
}
|
|
253
238
|
.awsui_dropdown-drop-up_qwoo0_1aum0_211 > .awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
254
239
|
transform-origin: bottom;
|
|
255
|
-
box-shadow: 0px 4px 20px 1px rgba(0, 7, 22, 0.1);
|
|
256
240
|
box-shadow: var(--shadow-dropup-11esug, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
|
|
257
241
|
}
|
|
258
242
|
.awsui_dropdown-drop-up_qwoo0_1aum0_211.awsui_with-limited-width_qwoo0_1aum0_215 > .awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
@@ -272,7 +256,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
272
256
|
}
|
|
273
257
|
.awsui_dropdown_qwoo0_1aum0_93.awsui_interior_qwoo0_1aum0_155 > .awsui_dropdown-content-wrapper_qwoo0_1aum0_93:not(#\9) {
|
|
274
258
|
margin-top: -1px;
|
|
275
|
-
border-top: 1px solid transparent;
|
|
276
259
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
277
260
|
}
|
|
278
261
|
.awsui_dropdown_qwoo0_1aum0_93.awsui_open_qwoo0_1aum0_234:not(#\9) {
|
|
@@ -120,21 +120,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
120
120
|
widows: 2;
|
|
121
121
|
word-spacing: normal;
|
|
122
122
|
box-sizing: border-box;
|
|
123
|
-
font-size: 14px;
|
|
124
123
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
125
|
-
line-height: 22px;
|
|
126
124
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
127
|
-
color: #000716;
|
|
128
125
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
129
126
|
font-weight: 400;
|
|
130
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
131
127
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
132
128
|
}
|
|
133
129
|
.awsui_root_1afi9_19bf4_93:not(#\9):not(.awsui_hidden_1afi9_19bf4_103) {
|
|
134
|
-
border-top: 1px solid #e9ebed;
|
|
135
130
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-dropdown-item-default-faosd8, #e9ebed);
|
|
136
131
|
}
|
|
137
132
|
.awsui_root_1afi9_19bf4_93:not(#\9):not(.awsui_hidden_1afi9_19bf4_103).awsui_no-items_1afi9_19bf4_106 {
|
|
138
|
-
border-top: 1px solid transparent;
|
|
139
133
|
border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-dropdown-item-top-xnzq48, transparent);
|
|
140
134
|
}
|
|
@@ -120,18 +120,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
120
120
|
widows: 2;
|
|
121
121
|
word-spacing: normal;
|
|
122
122
|
box-sizing: border-box;
|
|
123
|
-
font-size: 14px;
|
|
124
123
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
125
|
-
line-height: 22px;
|
|
126
124
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
127
|
-
color: #000716;
|
|
128
125
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
129
126
|
font-weight: 400;
|
|
130
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
131
127
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
132
|
-
padding: 4px 12px calc(4px + 2px);
|
|
133
128
|
padding: var(--space-xxs-ynfts5, 4px) var(--space-field-horizontal-89h2yr, 12px) calc(var(--space-xxs-ynfts5, 4px) + var(--space-xxxs-k2w98v, 2px));
|
|
134
|
-
color: #5f6b7a;
|
|
135
129
|
color: var(--color-text-dropdown-footer-rj6jvf, #5f6b7a);
|
|
136
130
|
}
|
|
137
131
|
.awsui_root_vrgzu_1obpu_93 > .awsui_recovery_vrgzu_1obpu_105:not(#\9) {
|
|
@@ -100,15 +100,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.awsui_token_10m3l_anb0r_102:not(#\9) {
|
|
103
|
-
border: 2px solid #0972d3;
|
|
104
103
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
105
104
|
display: flex;
|
|
106
105
|
align-items: stretch;
|
|
107
|
-
background: #f2f8fd;
|
|
108
106
|
background: var(--color-background-item-selected-ebt4bi, #f2f8fd);
|
|
109
|
-
border-radius: 8px;
|
|
110
107
|
border-radius: var(--border-radius-token-wohc9e, 8px);
|
|
111
|
-
color: #000716;
|
|
112
108
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
113
109
|
height: 100%;
|
|
114
110
|
box-sizing: border-box;
|
|
@@ -125,7 +121,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
.awsui_token-content_10m3l_anb0r_123:not(#\9) {
|
|
128
|
-
padding: 4px 12px;
|
|
129
124
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-field-horizontal-89h2yr, 12px);
|
|
130
125
|
}
|
|
131
126
|
|
|
@@ -133,12 +128,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
133
128
|
width: 30px;
|
|
134
129
|
margin: 0;
|
|
135
130
|
border: none;
|
|
136
|
-
padding: 0 4px;
|
|
137
131
|
padding: 0 var(--space-xxs-ynfts5, 4px);
|
|
138
|
-
color: #414d5c;
|
|
139
132
|
color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
140
133
|
background-color: transparent;
|
|
141
|
-
border-left: 2px solid #0972d3;
|
|
142
134
|
border-left: var(--border-field-width-idlekx, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
143
135
|
}
|
|
144
136
|
.awsui_dismiss-button_10m3l_anb0r_127[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
@@ -146,24 +138,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
146
138
|
}
|
|
147
139
|
.awsui_dismiss-button_10m3l_anb0r_127[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
148
140
|
outline: 2px dotted transparent;
|
|
149
|
-
outline-offset: calc(-5px - 1px);
|
|
150
141
|
outline-offset: calc(var(--space-filtering-token-dismiss-button-focus-outline-gutter-itb5fd, -5px) - 1px);
|
|
151
142
|
}
|
|
152
143
|
.awsui_dismiss-button_10m3l_anb0r_127[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
153
144
|
content: " ";
|
|
154
145
|
display: block;
|
|
155
146
|
position: absolute;
|
|
156
|
-
left: calc(-1 * -5px);
|
|
157
147
|
left: calc(-1 * var(--space-filtering-token-dismiss-button-focus-outline-gutter-itb5fd, -5px));
|
|
158
|
-
top: calc(-1 * -5px);
|
|
159
148
|
top: calc(-1 * var(--space-filtering-token-dismiss-button-focus-outline-gutter-itb5fd, -5px));
|
|
160
|
-
width: calc(100% + 2 * -5px);
|
|
161
149
|
width: calc(100% + 2 * var(--space-filtering-token-dismiss-button-focus-outline-gutter-itb5fd, -5px));
|
|
162
|
-
height: calc(100% + 2 * -5px);
|
|
163
150
|
height: calc(100% + 2 * var(--space-filtering-token-dismiss-button-focus-outline-gutter-itb5fd, -5px));
|
|
164
|
-
border-radius: 4px;
|
|
165
151
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
166
|
-
box-shadow: 0 0 0 2px #0972d3;
|
|
167
152
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
168
153
|
}
|
|
169
154
|
.awsui_dismiss-button_10m3l_anb0r_127:not(#\9):focus {
|
|
@@ -172,22 +157,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
172
157
|
}
|
|
173
158
|
.awsui_dismiss-button_10m3l_anb0r_127:not(#\9):hover {
|
|
174
159
|
cursor: pointer;
|
|
175
|
-
color: #000716;
|
|
176
160
|
color: var(--color-text-interactive-hover-v3lasm, #000716);
|
|
177
161
|
}
|
|
178
162
|
|
|
179
163
|
.awsui_token-disabled_10m3l_anb0r_163:not(#\9) {
|
|
180
|
-
border-color: #d1d5db;
|
|
181
164
|
border-color: var(--color-border-control-disabled-vx8bco, #d1d5db);
|
|
182
|
-
background-color: #ffffff;
|
|
183
165
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
184
|
-
color: #9ba7b6;
|
|
185
166
|
color: var(--color-text-disabled-a2nkh4, #9ba7b6);
|
|
186
167
|
pointer-events: none;
|
|
187
168
|
}
|
|
188
169
|
.awsui_token-disabled_10m3l_anb0r_163 > .awsui_dismiss-button_10m3l_anb0r_127:not(#\9) {
|
|
189
|
-
color: #9ba7b6;
|
|
190
170
|
color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
|
|
191
|
-
border-color: #d1d5db;
|
|
192
171
|
border-color: var(--color-border-control-disabled-vx8bco, #d1d5db);
|
|
193
172
|
}
|
|
@@ -120,14 +120,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
120
120
|
widows: 2;
|
|
121
121
|
word-spacing: normal;
|
|
122
122
|
box-sizing: border-box;
|
|
123
|
-
font-size: 14px;
|
|
124
123
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
125
|
-
line-height: 22px;
|
|
126
124
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
127
|
-
color: #000716;
|
|
128
125
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
129
126
|
font-weight: 400;
|
|
130
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
131
127
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
132
128
|
min-width: 0;
|
|
133
129
|
-ms-word-break: break-all;
|
|
@@ -137,31 +133,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
137
133
|
align-items: center;
|
|
138
134
|
white-space: nowrap;
|
|
139
135
|
height: 100%;
|
|
140
|
-
padding-left: 8px;
|
|
141
136
|
padding-left: var(--space-xs-rsr2qu, 8px);
|
|
142
|
-
padding-right: 8px;
|
|
143
137
|
padding-right: var(--space-xs-rsr2qu, 8px);
|
|
144
138
|
text-decoration: none;
|
|
145
139
|
cursor: pointer;
|
|
146
140
|
border: transparent;
|
|
147
141
|
background: transparent;
|
|
148
|
-
font-weight: 800;
|
|
149
142
|
font-weight: var(--font-button-weight-7rj5fx, 800);
|
|
150
|
-
color: #414d5c;
|
|
151
143
|
color: var(--color-text-interactive-default-eg5fsa, #414d5c);
|
|
152
144
|
}
|
|
153
145
|
.awsui_button_m5h9f_vm2i5_93:not(#\9):hover {
|
|
154
|
-
color: #000716;
|
|
155
146
|
color: var(--color-text-interactive-hover-v3lasm, #000716);
|
|
156
147
|
text-decoration: none;
|
|
157
148
|
}
|
|
158
149
|
.awsui_button_m5h9f_vm2i5_93:not(#\9):active, .awsui_button_m5h9f_vm2i5_93.awsui_expanded_m5h9f_vm2i5_123:not(#\9) {
|
|
159
150
|
background: transparent;
|
|
160
|
-
color: #000716;
|
|
161
151
|
color: var(--color-text-interactive-active-vol84d, #000716);
|
|
162
152
|
}
|
|
163
153
|
.awsui_button_m5h9f_vm2i5_93.awsui_expanded_m5h9f_vm2i5_123:not(#\9) {
|
|
164
|
-
color: #0972d3;
|
|
165
154
|
color: var(--color-text-accent-s1eqko, #0972d3);
|
|
166
155
|
}
|
|
167
156
|
.awsui_button_m5h9f_vm2i5_93:not(#\9):focus {
|
|
@@ -172,11 +161,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
172
161
|
margin-right: 0;
|
|
173
162
|
}
|
|
174
163
|
.awsui_button_m5h9f_vm2i5_93.awsui_offset-right-l_m5h9f_vm2i5_137:not(#\9) {
|
|
175
|
-
margin-right: 12px;
|
|
176
164
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
177
165
|
}
|
|
178
166
|
.awsui_button_m5h9f_vm2i5_93.awsui_offset-right-xxl_m5h9f_vm2i5_140:not(#\9) {
|
|
179
|
-
margin-right: 24px;
|
|
180
167
|
margin-right: var(--space-xl-a39hup, 24px);
|
|
181
168
|
}
|
|
182
169
|
.awsui_button_m5h9f_vm2i5_93[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
@@ -194,18 +181,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
181
|
top: calc(-1 * -1px);
|
|
195
182
|
width: calc(100% + 2 * -1px);
|
|
196
183
|
height: calc(100% + 2 * -1px);
|
|
197
|
-
border-radius: 4px;
|
|
198
184
|
border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
|
|
199
|
-
box-shadow: 0 0 0 2px #0972d3;
|
|
200
185
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
|
|
201
186
|
}
|
|
202
187
|
|
|
203
188
|
.awsui_text_m5h9f_vm2i5_162:not(#\9) {
|
|
204
|
-
margin-right: 8px;
|
|
205
189
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
206
190
|
}
|
|
207
191
|
|
|
208
192
|
.awsui_icon_m5h9f_vm2i5_166 + .awsui_text_m5h9f_vm2i5_162:not(#\9) {
|
|
209
|
-
margin-left: 8px;
|
|
210
193
|
margin-left: var(--space-xs-rsr2qu, 8px);
|
|
211
194
|
}
|
|
@@ -34,10 +34,10 @@ var Option = function (_a) {
|
|
|
34
34
|
}
|
|
35
35
|
var className = clsx(styles.option, disabled && styles.disabled, isGroupOption && styles.parent);
|
|
36
36
|
var icon = option.__customIcon || (React.createElement(OptionIcon, { name: option.iconName, url: option.iconUrl, svg: option.iconSvg, alt: option.iconAlt, size: option.description || option.tags ? 'big' : 'normal' }));
|
|
37
|
-
return (React.createElement("
|
|
37
|
+
return (React.createElement("span", __assign({ title: option.label || option.value, "data-value": option.value, className: className, "aria-disabled": disabled }, baseProps),
|
|
38
38
|
icon,
|
|
39
|
-
React.createElement("
|
|
40
|
-
React.createElement("
|
|
39
|
+
React.createElement("span", { className: clsx(styles.content) },
|
|
40
|
+
React.createElement("span", { className: clsx(styles['label-content']) },
|
|
41
41
|
React.createElement(Label, { label: option.label || option.value, prefix: option.__labelPrefix, highlightText: highlightText, triggerVariant: triggerVariant }),
|
|
42
42
|
React.createElement(LabelTag, { labelTag: option.labelTag, highlightText: highlightText, triggerVariant: triggerVariant })),
|
|
43
43
|
React.createElement(Description, { description: option.description, highlightText: highlightText, triggerVariant: triggerVariant }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/option/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIrD,SAAS,mBAAmB,CAAC,KAAyB,EAAE,YAAoB;IAC1E,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7D,QAAQ,CACN,gBAAgB,EAChB,mEAA2D,YAAY,oBAAS,OAAO,KAAK,+CAA4C,CACzI,CAAC;KACH;AACH,CAAC;AAED,IAAM,MAAM,GAAG,UAAC,EAMF;;IALZ,IAAA,MAAM,YAAA,EACN,aAAa,mBAAA,EACb,sBAAsB,EAAtB,cAAc,mBAAG,KAAK,KAAA,EACtB,qBAAqB,EAArB,aAAa,mBAAG,KAAK,KAAA,EAClB,SAAS,cALE,8DAMf,CADa;IAEZ,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IACO,IAAA,QAAQ,GAAK,MAAM,SAAX,CAAY;IAC5B,IAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAE1C,IAAI,aAAa,EAAE;QACjB,mBAAmB,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC3C,mBAAmB,CAAC,MAAM,CAAC,WAAW,EAA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,GAAI;YAC9G,oBAAC,IAAI,IAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,GAAI;YACzF,oBAAC,aAAa,IACZ,aAAa,EAAE,MAAM,CAAC,aAAa,EACnC,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAC9B,CACG,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,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';\nimport styles from './styles.css.js';\nimport { OptionProps } from './interfaces';\nimport { Label, LabelTag, Description, Tags, FilteringTags, OptionIcon } from './option-parts';\nimport { getBaseProps } from '../../base-component';\nimport { warnOnce } from '../../logging';\nimport { isDevelopment } from '../../is-development';\n\nexport { OptionProps };\n\nfunction validateStringValue(value: string | undefined, propertyName: string) {\n if (typeof value !== 'undefined' && typeof value !== 'string') {\n warnOnce(\n 'DropdownOption',\n `This component only supports string values, but \"option.${propertyName}\" has ${typeof value} type. The component may work incorrectly.`\n );\n }\n}\n\nconst Option = ({\n option,\n highlightText,\n triggerVariant = false,\n isGroupOption = false,\n ...restProps\n}: OptionProps) => {\n if (!option) {\n return null;\n }\n const { disabled } = option;\n const baseProps = getBaseProps(restProps);\n\n if (isDevelopment) {\n validateStringValue(option.label, 'label');\n validateStringValue(option.description, 'description');\n validateStringValue(option.labelTag, 'labelTag');\n option.tags?.forEach((tag, index) => {\n validateStringValue(tag, `tags[${index}]`);\n });\n option.filteringTags?.forEach((tag, index) => {\n validateStringValue(tag, `filteringTags[${index}]`);\n });\n }\n\n const className = clsx(styles.option, disabled && styles.disabled, isGroupOption && styles.parent);\n\n const icon = option.__customIcon || (\n <OptionIcon\n name={option.iconName}\n url={option.iconUrl}\n svg={option.iconSvg}\n alt={option.iconAlt}\n size={option.description || option.tags ? 'big' : 'normal'}\n />\n );\n\n return (\n <span\n title={option.label || option.value}\n data-value={option.value}\n className={className}\n aria-disabled={disabled}\n {...baseProps}\n >\n {icon}\n <span className={clsx(styles.content)}>\n <span className={clsx(styles['label-content'])}>\n <Label\n label={option.label || option.value}\n prefix={option.__labelPrefix}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n <LabelTag labelTag={option.labelTag} highlightText={highlightText} triggerVariant={triggerVariant} />\n </span>\n <Description description={option.description} highlightText={highlightText} triggerVariant={triggerVariant} />\n <Tags tags={option.tags} highlightText={highlightText} triggerVariant={triggerVariant} />\n <FilteringTags\n filteringTags={option.filteringTags}\n highlightText={highlightText}\n triggerVariant={triggerVariant}\n />\n </span>\n </span>\n );\n};\n\nexport default Option;\n"]}
|
|
@@ -24,12 +24,12 @@ export var Description = function (_a) {
|
|
|
24
24
|
return description ? (
|
|
25
25
|
// We do not reach AA compliance in Dark mode for highlighted state
|
|
26
26
|
// TODO: Remove aria-disabled={true} when we fix AWSUI-10333
|
|
27
|
-
React.createElement("
|
|
27
|
+
React.createElement("span", { className: clsx(styles.description, triggerVariant && styles['trigger-variant']), "aria-disabled": true },
|
|
28
28
|
React.createElement(HighlightMatch, { str: description, highlightText: highlightText }))) : null;
|
|
29
29
|
};
|
|
30
30
|
export var Tags = function (_a) {
|
|
31
31
|
var tags = _a.tags, highlightText = _a.highlightText, triggerVariant = _a.triggerVariant;
|
|
32
|
-
return tags ? (React.createElement("
|
|
32
|
+
return tags ? (React.createElement("span", { className: clsx(styles.tags) }, tags.map(function (tag, idx) { return (
|
|
33
33
|
// We do not reach AA compliance in Dark mode for highlighted state
|
|
34
34
|
// TODO: Remove aria-disabled={true} when we fix AWSUI-10333
|
|
35
35
|
React.createElement("span", { key: idx, className: clsx(styles.tag, triggerVariant && styles['trigger-variant']), "aria-disabled": true },
|
|
@@ -41,7 +41,7 @@ export var FilteringTags = function (_a) {
|
|
|
41
41
|
return null;
|
|
42
42
|
}
|
|
43
43
|
var searchElement = highlightText.toLowerCase();
|
|
44
|
-
return (React.createElement("
|
|
44
|
+
return (React.createElement("span", { className: clsx(styles.tags) }, filteringTags.map(function (filteringTag, key) {
|
|
45
45
|
var match = filteringTag.toLowerCase().indexOf(searchElement) !== -1;
|
|
46
46
|
if (match) {
|
|
47
47
|
return (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option-parts.js","sourceRoot":"","sources":["../../../../../src/internal/components/option/option-parts.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAQ/C,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,EAA4D;QAA1D,KAAK,WAAA,EAAE,MAAM,YAAA,EAAE,aAAa,mBAAA,EAAE,cAAc,oBAAA;IAAmB,OAAA,CACrF,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAC7E,MAAM,IAAI,CACT,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,cAAc,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAAG,MAAM;gBAAS,CAC7G;QACD,oBAAC,cAAc,IAAC,GAAG,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,GAAI,CACvD,CACR;AAPsF,CAOtF,CAAC;AAOF,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAA0D;QAAxD,QAAQ,cAAA,EAAE,aAAa,mBAAA,EAAE,cAAc,oBAAA;IAChE,OAAA,QAAQ,CAAC,CAAC,CAAC,CACT,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,cA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,KAAK,KAAK,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;QACnF,oBAAC,YAAY,eAAK,KAAK,EAAI,CACtB,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport styles from './styles.css.js';\nimport clsx from 'clsx';\nimport React from 'react';\nimport { IconProps } from '../../../icon/interfaces';\nimport InternalIcon from '../../../icon/internal';\nimport HighlightMatch from './highlight-match';\n\ninterface LabelProps {\n label?: string;\n prefix?: string;\n highlightText?: string;\n triggerVariant: boolean;\n}\nexport const Label = ({ label, prefix, highlightText, triggerVariant }: LabelProps) => (\n <span className={clsx(styles.label, triggerVariant && styles['trigger-variant'])}>\n {prefix && (\n <span className={clsx(styles['label-prefix'], triggerVariant && styles['trigger-variant'])}>{prefix} </span>\n )}\n <HighlightMatch str={label} highlightText={highlightText} />\n </span>\n);\n\ninterface LabelTagProps {\n labelTag?: string;\n highlightText?: string;\n triggerVariant: boolean;\n}\nexport const LabelTag = ({ labelTag, highlightText, triggerVariant }: LabelTagProps) =>\n labelTag ? (\n <span className={clsx(styles['label-tag'], triggerVariant && styles['trigger-variant'])}>\n <HighlightMatch str={labelTag} highlightText={highlightText} />\n </span>\n ) : null;\n\ninterface DescriptionProps {\n description?: string;\n highlightText?: string;\n triggerVariant: boolean;\n}\nexport const Description = ({ description, highlightText, triggerVariant }: DescriptionProps) =>\n description ? (\n // We do not reach AA compliance in Dark mode for highlighted state\n // TODO: Remove aria-disabled={true} when we fix AWSUI-10333\n <span className={clsx(styles.description, triggerVariant && styles['trigger-variant'])} aria-disabled={true}>\n <HighlightMatch str={description} highlightText={highlightText} />\n </span>\n ) : null;\n\ninterface TagsProps {\n tags?: ReadonlyArray<string>;\n highlightText?: string;\n triggerVariant: boolean;\n}\nexport const Tags = ({ tags, highlightText, triggerVariant }: TagsProps) =>\n tags ? (\n <span className={clsx(styles.tags)}>\n {tags.map((tag, idx) => (\n // We do not reach AA compliance in Dark mode for highlighted state\n // TODO: Remove aria-disabled={true} when we fix AWSUI-10333\n <span key={idx} className={clsx(styles.tag, triggerVariant && styles['trigger-variant'])} aria-disabled={true}>\n <HighlightMatch str={tag} highlightText={highlightText} />\n </span>\n ))}\n </span>\n ) : null;\n\ninterface FilteringTagProps {\n filteringTags?: ReadonlyArray<string>;\n highlightText?: string;\n triggerVariant: boolean;\n}\nexport const FilteringTags = ({ filteringTags, highlightText, triggerVariant }: FilteringTagProps) => {\n if (!highlightText || !filteringTags) {\n return null;\n }\n\n const searchElement = highlightText.toLowerCase();\n\n return (\n <span className={clsx(styles.tags)}>\n {filteringTags.map((filteringTag, key) => {\n const match = filteringTag.toLowerCase().indexOf(searchElement) !== -1;\n if (match) {\n return (\n // We do not reach AA compliance in Dark mode for highlighted state\n // TODO: Remove aria-disabled={true} when we fix AWSUI-10333\n <span\n className={clsx(styles.tag, triggerVariant && styles['trigger-variant'])}\n key={key}\n aria-disabled={true}\n >\n <HighlightMatch str={filteringTag} highlightText={highlightText} />\n </span>\n );\n }\n return null;\n })}\n </span>\n );\n};\n\nexport const OptionIcon = (props: IconProps) => {\n if (!props.name && !props.url && !props.svg) {\n return null;\n }\n\n return (\n <span className={clsx(styles.icon, props.size === 'big' && [styles[`icon-size-big`]])}>\n <InternalIcon {...props} />\n </span>\n );\n};\n"]}
|
|
@@ -124,14 +124,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
124
124
|
widows: 2;
|
|
125
125
|
word-spacing: normal;
|
|
126
126
|
box-sizing: border-box;
|
|
127
|
-
font-size: 14px;
|
|
128
127
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
129
|
-
line-height: 22px;
|
|
130
128
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
131
|
-
color: #000716;
|
|
132
129
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
133
130
|
font-weight: 400;
|
|
134
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
135
131
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
136
132
|
display: flex;
|
|
137
133
|
align-items: flex-start;
|
|
@@ -147,7 +143,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
147
143
|
font-weight: bold;
|
|
148
144
|
}
|
|
149
145
|
.awsui_option_1p2cx_1tubf_97.awsui_parent_1p2cx_1tubf_116:not(#\9):not(.awsui_disabled_1p2cx_1tubf_113) {
|
|
150
|
-
color: #414d5c;
|
|
151
146
|
color: var(--color-text-dropdown-group-label-eaqlcl, #414d5c);
|
|
152
147
|
}
|
|
153
148
|
|
|
@@ -182,7 +177,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
177
|
}
|
|
183
178
|
|
|
184
179
|
.awsui_label-tag_1p2cx_1tubf_138:not(#\9) {
|
|
185
|
-
padding-left: 12px;
|
|
186
180
|
padding-left: var(--space-s-hv8c1d, 12px);
|
|
187
181
|
flex: auto;
|
|
188
182
|
text-align: right;
|
|
@@ -193,13 +187,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
193
187
|
|
|
194
188
|
.awsui_tags_1p2cx_1tubf_162:not(#\9),
|
|
195
189
|
.awsui_description_1p2cx_1tubf_163:not(#\9) {
|
|
196
|
-
font-size: 12px;
|
|
197
190
|
font-size: var(--font-body-s-size-ukw2p9, 12px);
|
|
198
|
-
line-height: 16px;
|
|
199
191
|
line-height: var(--font-body-s-line-height-kdsbrl, 16px);
|
|
200
|
-
letter-spacing: 0.005em;
|
|
201
192
|
letter-spacing: var(--font-body-s-letter-spacing-cy0oxj, 0.005em);
|
|
202
|
-
color: #5f6b7a;
|
|
203
193
|
color: var(--color-text-dropdown-item-secondary-0me7js, #5f6b7a);
|
|
204
194
|
flex-wrap: wrap;
|
|
205
195
|
}
|
|
@@ -210,12 +200,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
210
200
|
}
|
|
211
201
|
|
|
212
202
|
.awsui_tag_1p2cx_1tubf_137:not(#\9):not(:last-child) {
|
|
213
|
-
padding-right: 16px;
|
|
214
203
|
padding-right: var(--space-m-17eucw, 16px);
|
|
215
204
|
}
|
|
216
205
|
|
|
217
206
|
.awsui_icon_1p2cx_1tubf_180:not(#\9) {
|
|
218
|
-
padding-right: 8px;
|
|
219
207
|
padding-right: var(--space-xs-rsr2qu, 8px);
|
|
220
208
|
align-content: center;
|
|
221
209
|
display: flex;
|
|
@@ -223,20 +211,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
223
211
|
}
|
|
224
212
|
|
|
225
213
|
.awsui_icon-size-big_1p2cx_1tubf_187:not(#\9) {
|
|
226
|
-
padding-top: 2px;
|
|
227
214
|
padding-top: var(--space-xxxs-k2w98v, 2px);
|
|
228
215
|
}
|
|
229
216
|
|
|
230
217
|
.awsui_filtering-match-highlight_1p2cx_1tubf_191:not(#\9) {
|
|
231
|
-
background-color: #f2f8fd;
|
|
232
218
|
background-color: var(--color-background-dropdown-item-filter-match-6ac2mw, #f2f8fd);
|
|
233
|
-
color: #0972d3;
|
|
234
219
|
color: var(--color-text-dropdown-item-filter-match-x302if, #0972d3);
|
|
235
220
|
font-weight: bold;
|
|
236
221
|
}
|
|
237
222
|
|
|
238
223
|
.awsui_disabled_1p2cx_1tubf_113:not(#\9) {
|
|
239
|
-
color: #9ba7b6;
|
|
240
224
|
color: var(--color-text-dropdown-item-disabled-varol7, #9ba7b6);
|
|
241
225
|
pointer-events: none;
|
|
242
226
|
}
|
|
@@ -124,20 +124,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
124
124
|
widows: 2;
|
|
125
125
|
word-spacing: normal;
|
|
126
126
|
box-sizing: border-box;
|
|
127
|
-
font-size: 14px;
|
|
128
127
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
129
|
-
line-height: 22px;
|
|
130
128
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
131
|
-
color: #000716;
|
|
132
129
|
color: var(--color-text-body-default-ajf1h5, #000716);
|
|
133
130
|
font-weight: 400;
|
|
134
|
-
font-family: "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif;
|
|
135
131
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
136
132
|
white-space: inherit;
|
|
137
133
|
overflow-y: auto;
|
|
138
134
|
flex: 1 1 auto;
|
|
139
135
|
min-height: 0;
|
|
140
|
-
border-radius: 8px;
|
|
141
136
|
border-radius: var(--border-radius-dropdown-ujknaf, 8px);
|
|
142
137
|
}
|
|
143
138
|
|