@cloudscape-design/components 3.0.459 → 3.0.460
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.css.js +25 -25
- package/alert/styles.scoped.css +59 -53
- package/alert/styles.selectors.js +25 -25
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +39 -30
- package/anchor-navigation/styles.selectors.js +8 -8
- package/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +55 -48
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/content-wrapper/styles.css.js +3 -3
- package/app-layout/content-wrapper/styles.scoped.css +15 -15
- package/app-layout/content-wrapper/styles.selectors.js +3 -3
- package/app-layout/drawer/styles.css.js +12 -12
- package/app-layout/drawer/styles.scoped.css +29 -30
- package/app-layout/drawer/styles.selectors.js +12 -12
- package/app-layout/interfaces.d.ts +3 -4
- package/app-layout/interfaces.d.ts.map +1 -1
- package/app-layout/interfaces.js.map +1 -1
- package/app-layout/mobile-toolbar/styles.css.js +8 -8
- package/app-layout/mobile-toolbar/styles.scoped.css +18 -17
- package/app-layout/mobile-toolbar/styles.selectors.js +8 -8
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +6 -6
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/split-panel/styles.css.js +2 -2
- package/app-layout/split-panel/styles.scoped.css +3 -3
- package/app-layout/split-panel/styles.selectors.js +2 -2
- package/app-layout/styles.css.js +16 -16
- package/app-layout/styles.scoped.css +26 -26
- package/app-layout/styles.selectors.js +16 -16
- package/app-layout/toggles/styles.css.js +2 -2
- package/app-layout/toggles/styles.scoped.css +10 -9
- package/app-layout/toggles/styles.selectors.js +2 -2
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/visual-refresh/context.js +1 -1
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +80 -80
- package/app-layout/visual-refresh/styles.scoped.css +268 -251
- package/app-layout/visual-refresh/styles.selectors.js +80 -80
- package/area-chart/styles.css.js +6 -6
- package/area-chart/styles.scoped.css +12 -11
- package/area-chart/styles.selectors.js +6 -6
- package/attribute-editor/styles.css.js +14 -14
- package/attribute-editor/styles.scoped.css +30 -29
- package/attribute-editor/styles.selectors.js +14 -14
- package/autosuggest/styles.css.js +3 -3
- package/autosuggest/styles.scoped.css +5 -5
- package/autosuggest/styles.selectors.js +3 -3
- package/badge/styles.css.js +5 -5
- package/badge/styles.scoped.css +11 -7
- package/badge/styles.selectors.js +5 -5
- package/bar-chart/index.d.ts +1 -1
- package/bar-chart/index.d.ts.map +1 -1
- package/bar-chart/index.js +2 -2
- package/bar-chart/index.js.map +1 -1
- package/bar-chart/interfaces.d.ts +8 -3
- package/bar-chart/interfaces.d.ts.map +1 -1
- package/bar-chart/interfaces.js.map +1 -1
- package/box/styles.css.js +190 -190
- package/box/styles.scoped.css +244 -240
- package/box/styles.selectors.js +190 -190
- package/breadcrumb-group/item/styles.css.js +9 -9
- package/breadcrumb-group/item/styles.scoped.css +20 -19
- package/breadcrumb-group/item/styles.selectors.js +9 -9
- package/breadcrumb-group/styles.css.js +7 -7
- package/breadcrumb-group/styles.scoped.css +28 -21
- package/breadcrumb-group/styles.selectors.js +7 -7
- package/button/styles.css.js +20 -20
- package/button/styles.scoped.css +155 -153
- package/button/styles.selectors.js +20 -20
- package/button-dropdown/category-elements/styles.css.js +13 -13
- package/button-dropdown/category-elements/styles.scoped.css +60 -50
- package/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/button-dropdown/item-element/styles.css.js +15 -15
- package/button-dropdown/item-element/styles.scoped.css +38 -33
- package/button-dropdown/item-element/styles.selectors.js +15 -15
- package/button-dropdown/mobile-expandable-group/styles.css.js +5 -5
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +8 -8
- package/button-dropdown/mobile-expandable-group/styles.selectors.js +5 -5
- package/button-dropdown/styles.css.js +15 -15
- package/button-dropdown/styles.scoped.css +39 -36
- package/button-dropdown/styles.selectors.js +15 -15
- package/calendar/styles.css.js +18 -18
- package/calendar/styles.scoped.css +75 -59
- package/calendar/styles.selectors.js +18 -18
- package/cards/styles.css.js +38 -38
- package/cards/styles.scoped.css +110 -94
- package/cards/styles.selectors.js +38 -38
- package/code-editor/resizable-box/styles.css.js +3 -3
- package/code-editor/resizable-box/styles.scoped.css +10 -10
- package/code-editor/resizable-box/styles.selectors.js +3 -3
- package/code-editor/styles.css.js +32 -32
- package/code-editor/styles.scoped.css +210 -198
- package/code-editor/styles.selectors.js +32 -32
- package/collection-preferences/content-display/styles.css.js +11 -11
- package/collection-preferences/content-display/styles.scoped.css +40 -30
- package/collection-preferences/content-display/styles.selectors.js +11 -11
- package/collection-preferences/styles.css.js +37 -37
- package/collection-preferences/styles.scoped.css +79 -66
- package/collection-preferences/styles.selectors.js +37 -37
- package/column-layout/flexible-column-layout/styles.css.js +5 -5
- package/column-layout/flexible-column-layout/styles.scoped.css +8 -9
- package/column-layout/flexible-column-layout/styles.selectors.js +5 -5
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +70 -64
- package/column-layout/styles.selectors.js +13 -13
- package/container/styles.css.js +28 -28
- package/container/styles.scoped.css +106 -98
- package/container/styles.selectors.js +28 -28
- package/content-layout/styles.css.js +7 -7
- package/content-layout/styles.scoped.css +15 -15
- package/content-layout/styles.selectors.js +7 -7
- package/date-picker/styles.css.js +7 -7
- package/date-picker/styles.scoped.css +12 -12
- package/date-picker/styles.selectors.js +7 -7
- package/date-range-picker/calendar/grids/styles.css.js +25 -25
- package/date-range-picker/calendar/grids/styles.scoped.css +71 -60
- package/date-range-picker/calendar/grids/styles.selectors.js +25 -25
- package/date-range-picker/relative-range/styles.css.js +9 -9
- package/date-range-picker/relative-range/styles.scoped.css +21 -21
- package/date-range-picker/relative-range/styles.selectors.js +9 -9
- package/date-range-picker/styles.css.js +38 -38
- package/date-range-picker/styles.scoped.css +73 -68
- package/date-range-picker/styles.selectors.js +38 -38
- package/drawer/styles.css.js +3 -3
- package/drawer/styles.scoped.css +21 -18
- package/drawer/styles.selectors.js +3 -3
- package/expandable-section/expandable-section-container.d.ts +2 -2
- package/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/expandable-section/expandable-section-container.js.map +1 -1
- package/expandable-section/expandable-section-header.d.ts +3 -2
- package/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/expandable-section/expandable-section-header.js +7 -11
- package/expandable-section/expandable-section-header.js.map +1 -1
- package/expandable-section/interfaces.d.ts +0 -1
- package/expandable-section/interfaces.d.ts.map +1 -1
- package/expandable-section/interfaces.js.map +1 -1
- package/expandable-section/internal.d.ts +2 -4
- package/expandable-section/internal.d.ts.map +1 -1
- package/expandable-section/internal.js.map +1 -1
- package/expandable-section/styles.css.js +29 -32
- package/expandable-section/styles.scoped.css +99 -106
- package/expandable-section/styles.selectors.js +29 -32
- package/expandable-section/utils.d.ts +2 -3
- package/expandable-section/utils.d.ts.map +1 -1
- package/expandable-section/utils.js +1 -4
- package/expandable-section/utils.js.map +1 -1
- package/file-upload/dropzone/styles.css.js +2 -2
- package/file-upload/dropzone/styles.scoped.css +8 -4
- package/file-upload/dropzone/styles.selectors.js +2 -2
- package/file-upload/file-option/styles.css.js +7 -7
- package/file-upload/file-option/styles.scoped.css +15 -15
- package/file-upload/file-option/styles.selectors.js +7 -7
- package/file-upload/styles.css.js +2 -2
- package/file-upload/styles.scoped.css +4 -4
- package/file-upload/styles.selectors.js +2 -2
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +220 -215
- package/flashbar/styles.selectors.js +47 -47
- package/form/styles.css.js +9 -9
- package/form/styles.scoped.css +18 -18
- package/form/styles.selectors.js +9 -9
- package/form-field/styles.css.js +19 -19
- package/form-field/styles.scoped.css +34 -34
- package/form-field/styles.selectors.js +19 -19
- package/internal/components/cartesian-chart/interfaces.d.ts.map +1 -1
- package/internal/components/cartesian-chart/interfaces.js.map +1 -1
- package/internal/components/chart-plot/index.d.ts +1 -1
- package/internal/components/chart-plot/index.d.ts.map +1 -1
- package/internal/components/chart-plot/index.js.map +1 -1
- package/internal/components/chart-series-details/index.d.ts +4 -12
- package/internal/components/chart-series-details/index.d.ts.map +1 -1
- package/internal/components/chart-series-details/index.js +10 -46
- package/internal/components/chart-series-details/index.js.map +1 -1
- package/internal/components/chart-series-details/styles.css.js +5 -19
- package/internal/components/chart-series-details/styles.scoped.css +15 -141
- package/internal/components/chart-series-details/styles.selectors.js +5 -19
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/line-chart/interfaces.d.ts +8 -2
- package/line-chart/interfaces.d.ts.map +1 -1
- package/line-chart/interfaces.js.map +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts +1 -2
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js +8 -17
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/mixed-line-bar-chart/chart-popover.d.ts +0 -1
- package/mixed-line-bar-chart/chart-popover.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-popover.js +3 -13
- package/mixed-line-bar-chart/chart-popover.js.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.d.ts +2 -7
- package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
- package/mixed-line-bar-chart/format-highlighted.js +5 -25
- package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
- package/mixed-line-bar-chart/interfaces.d.ts +6 -38
- 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 +1 -1
- package/mixed-line-bar-chart/internal.d.ts.map +1 -1
- package/mixed-line-bar-chart/internal.js +2 -2
- package/mixed-line-bar-chart/internal.js.map +1 -1
- package/modal/styles.css.js +23 -23
- package/modal/styles.scoped.css +39 -39
- package/modal/styles.selectors.js +23 -23
- package/package.json +1 -1
- package/pie-chart/interfaces.d.ts +5 -5
- package/pie-chart/interfaces.d.ts.map +1 -1
- package/pie-chart/interfaces.js.map +1 -1
- package/pie-chart/pie-chart.d.ts +1 -1
- package/pie-chart/pie-chart.d.ts.map +1 -1
- package/pie-chart/pie-chart.js +18 -21
- package/pie-chart/pie-chart.js.map +1 -1
- package/table/column-widths-utils.d.ts +0 -1
- package/table/column-widths-utils.d.ts.map +1 -1
- package/table/column-widths-utils.js +0 -18
- package/table/column-widths-utils.js.map +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +6 -7
- package/table/internal.js.map +1 -1
- package/table/node-data-cell.d.ts +15 -0
- package/table/node-data-cell.d.ts.map +1 -0
- package/table/node-data-cell.js +25 -0
- package/table/node-data-cell.js.map +1 -0
- package/table/sticky-columns/use-sticky-columns.js +1 -1
- package/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/table/thead.d.ts +1 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +18 -3
- package/table/thead.js.map +1 -1
- package/table/use-column-widths.d.ts +3 -5
- package/table/use-column-widths.d.ts.map +1 -1
- package/table/use-column-widths.js +11 -61
- package/table/use-column-widths.js.map +1 -1
- package/table/use-sticky-header.d.ts.map +1 -1
- package/table/use-sticky-header.js +13 -0
- package/table/use-sticky-header.js.map +1 -1
- package/test-utils/dom/internal/chart-popover.d.ts +0 -8
- package/test-utils/dom/internal/chart-popover.js +0 -23
- package/test-utils/dom/internal/chart-popover.js.map +1 -1
- package/test-utils/selectors/internal/chart-popover.d.ts +0 -8
- package/test-utils/selectors/internal/chart-popover.js +0 -22
- package/test-utils/selectors/internal/chart-popover.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/tiles/styles.css.js +29 -29
- package/tiles/styles.scoped.css +97 -91
- package/tiles/styles.selectors.js +29 -29
- package/internal/components/chart-series-details/series-details-text.d.ts +0 -2
- package/internal/components/chart-series-details/series-details-text.d.ts.map +0 -1
- package/internal/components/chart-series-details/series-details-text.js +0 -17
- package/internal/components/chart-series-details/series-details-text.js.map +0 -1
- package/table/no-data-cell.d.ts +0 -13
- package/table/no-data-cell.d.ts.map +0 -1
- package/table/no-data-cell.js +0 -24
- package/table/no-data-cell.js.map +0 -1
|
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
94
|
-
animation: awsui_awsui-motion-fade-in-
|
|
93
|
+
.awsui_calendar_mgja0_1xhaq_93:not(#\9) {
|
|
94
|
+
animation: awsui_awsui-motion-fade-in-0_mgja0_1xhaq_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
|
|
95
95
|
animation-fill-mode: both;
|
|
96
96
|
}
|
|
97
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
97
|
+
@keyframes awsui_awsui-motion-fade-in-0_mgja0_1xhaq_1 {
|
|
98
98
|
from {
|
|
99
99
|
opacity: 0;
|
|
100
100
|
}
|
|
@@ -103,12 +103,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
@media (prefers-reduced-motion: reduce) {
|
|
106
|
-
.
|
|
106
|
+
.awsui_calendar_mgja0_1xhaq_93:not(#\9) {
|
|
107
107
|
animation: none;
|
|
108
108
|
transition: none;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
.awsui-motion-disabled .
|
|
111
|
+
.awsui-motion-disabled .awsui_calendar_mgja0_1xhaq_93:not(#\9), .awsui-mode-entering .awsui_calendar_mgja0_1xhaq_93:not(#\9) {
|
|
112
112
|
animation: none;
|
|
113
113
|
transition: none;
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
117
117
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
118
118
|
SPDX-License-Identifier: Apache-2.0
|
|
119
119
|
*/
|
|
120
|
-
.
|
|
120
|
+
.awsui_root_mgja0_1xhaq_120:not(#\9) {
|
|
121
121
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
122
122
|
border-collapse: separate;
|
|
123
123
|
border-spacing: 0;
|
|
@@ -154,48 +154,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-family: var(--font-family-base-dnvic8, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
155
155
|
-webkit-font-smoothing: auto;
|
|
156
156
|
-moz-osx-font-smoothing: auto;
|
|
157
|
-
max-
|
|
157
|
+
max-inline-size: 32em;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.awsui_focus-
|
|
160
|
+
.awsui_focus-lock_mgja0_1xhaq_134:not(#\9) {
|
|
161
161
|
display: contents;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
.awsui_trigger-
|
|
165
|
-
min-
|
|
164
|
+
.awsui_trigger-wrapper_mgja0_1xhaq_138:not(#\9) {
|
|
165
|
+
min-inline-size: calc(var(--size-calendar-grid-width-lrunz7, 238px) + 2 * var(--space-l-t419sm, 20px));
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.awsui_trigger-
|
|
168
|
+
.awsui_trigger-flexbox_mgja0_1xhaq_142:not(#\9) {
|
|
169
169
|
display: flex;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.awsui_calendar-
|
|
173
|
-
|
|
172
|
+
.awsui_calendar-container_mgja0_1xhaq_146:not(#\9) {
|
|
173
|
+
inline-size: calc(2 * var(--size-calendar-grid-width-lrunz7, 238px) + var(--space-xs-zb16t3, 8px));
|
|
174
174
|
}
|
|
175
|
-
.awsui_calendar-
|
|
176
|
-
|
|
175
|
+
.awsui_calendar-container_mgja0_1xhaq_146.awsui_one-grid_mgja0_1xhaq_149:not(#\9) {
|
|
176
|
+
inline-size: var(--size-calendar-grid-width-lrunz7, 238px);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.awsui_calendar-
|
|
179
|
+
.awsui_calendar-header_mgja0_1xhaq_153:not(#\9) {
|
|
180
180
|
display: flex;
|
|
181
181
|
justify-content: space-between;
|
|
182
182
|
align-items: center;
|
|
183
183
|
position: relative;
|
|
184
184
|
}
|
|
185
|
-
.awsui_calendar-header-months-
|
|
185
|
+
.awsui_calendar-header-months-wrapper_mgja0_1xhaq_159:not(#\9) {
|
|
186
186
|
position: absolute;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
bottom: 0;
|
|
191
|
-
margin: 0;
|
|
187
|
+
inset: 0;
|
|
188
|
+
margin-block: 0;
|
|
189
|
+
margin-inline: 0;
|
|
192
190
|
display: flex;
|
|
193
191
|
justify-content: space-around;
|
|
194
192
|
align-items: center;
|
|
195
193
|
flex: 1;
|
|
196
194
|
pointer-events: none;
|
|
197
195
|
}
|
|
198
|
-
.awsui_calendar-header-
|
|
196
|
+
.awsui_calendar-header-month_mgja0_1xhaq_159:not(#\9) {
|
|
199
197
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
200
198
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
201
199
|
font-weight: 700;
|
|
@@ -203,133 +201,140 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
203
201
|
display: flex;
|
|
204
202
|
pointer-events: auto;
|
|
205
203
|
}
|
|
206
|
-
.awsui_calendar-next-month-
|
|
204
|
+
.awsui_calendar-next-month-btn_mgja0_1xhaq_178:not(#\9) {
|
|
207
205
|
/* used for identifying element */
|
|
208
206
|
}
|
|
209
|
-
.awsui_calendar-prev-month-
|
|
207
|
+
.awsui_calendar-prev-month-btn_mgja0_1xhaq_181:not(#\9) {
|
|
210
208
|
/* used for identifying element */
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
.awsui_first-
|
|
214
|
-
.awsui_second-
|
|
211
|
+
.awsui_first-grid_mgja0_1xhaq_185:not(#\9),
|
|
212
|
+
.awsui_second-grid_mgja0_1xhaq_186:not(#\9) {
|
|
215
213
|
/* used in test-utils */
|
|
216
214
|
}
|
|
217
215
|
|
|
218
|
-
.awsui_date-and-time-
|
|
216
|
+
.awsui_date-and-time-container_mgja0_1xhaq_190:not(#\9) {
|
|
219
217
|
display: grid;
|
|
220
218
|
grid-template-columns: repeat(auto-fit, minmax(var(--size-calendar-grid-width-lrunz7, 238px), 1fr));
|
|
221
219
|
gap: var(--space-xs-zb16t3, 8px);
|
|
222
220
|
}
|
|
223
221
|
|
|
224
|
-
.awsui_date-and-time-
|
|
225
|
-
|
|
222
|
+
.awsui_date-and-time-wrapper_mgja0_1xhaq_196:not(#\9) {
|
|
223
|
+
inline-size: var(--size-calendar-grid-width-lrunz7, 238px);
|
|
226
224
|
display: grid;
|
|
227
225
|
gap: var(--space-xs-zb16t3, 8px);
|
|
228
226
|
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
|
|
229
227
|
}
|
|
230
228
|
|
|
231
|
-
.
|
|
229
|
+
.awsui_footer_mgja0_1xhaq_203:not(#\9) {
|
|
232
230
|
display: flex;
|
|
233
231
|
flex-wrap: wrap;
|
|
234
232
|
justify-content: flex-end;
|
|
235
|
-
border-
|
|
236
|
-
padding: 0
|
|
233
|
+
border-block-start: 1px solid var(--color-border-dropdown-item-default-dofu99, #e9ebed);
|
|
234
|
+
padding-block-start: 0;
|
|
235
|
+
padding-block-end: var(--space-s-34lx8l, 12px);
|
|
236
|
+
padding-inline: var(--space-l-t419sm, 20px);
|
|
237
237
|
}
|
|
238
|
-
.
|
|
238
|
+
.awsui_footer_mgja0_1xhaq_203.awsui_has-clear-button_mgja0_1xhaq_212:not(#\9) {
|
|
239
239
|
justify-content: space-between;
|
|
240
240
|
}
|
|
241
|
-
.
|
|
242
|
-
padding: 0
|
|
241
|
+
.awsui_footer_mgja0_1xhaq_203.awsui_one-grid_mgja0_1xhaq_149:not(#\9) {
|
|
242
|
+
padding-block-start: 0;
|
|
243
|
+
padding-block-end: var(--space-s-34lx8l, 12px);
|
|
244
|
+
padding-inline: var(--space-xs-zb16t3, 8px);
|
|
243
245
|
}
|
|
244
246
|
|
|
245
|
-
.awsui_footer-button-
|
|
246
|
-
padding-
|
|
247
|
+
.awsui_footer-button-wrapper_mgja0_1xhaq_221:not(#\9) {
|
|
248
|
+
padding-block-start: var(--space-s-34lx8l, 12px);
|
|
247
249
|
}
|
|
248
|
-
.awsui_footer-button-
|
|
249
|
-
margin-
|
|
250
|
+
.awsui_footer-button-wrapper_mgja0_1xhaq_221:not(#\9):last-child {
|
|
251
|
+
margin-inline-start: auto;
|
|
250
252
|
}
|
|
251
253
|
|
|
252
|
-
.awsui_icon-
|
|
254
|
+
.awsui_icon-wrapper_mgja0_1xhaq_228:not(#\9) {
|
|
253
255
|
color: var(--color-text-interactive-default-lnx6lk, #414d5c);
|
|
254
|
-
margin-
|
|
256
|
+
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
255
257
|
}
|
|
256
258
|
|
|
257
|
-
.
|
|
259
|
+
.awsui_label_mgja0_1xhaq_233:not(#\9) {
|
|
258
260
|
-webkit-user-select: text;
|
|
259
261
|
user-select: text;
|
|
260
262
|
cursor: default;
|
|
261
263
|
}
|
|
262
264
|
|
|
263
|
-
.
|
|
265
|
+
.awsui_label_mgja0_1xhaq_233.awsui_label-enabled_mgja0_1xhaq_238:not(#\9):hover > .awsui_trigger-flexbox_mgja0_1xhaq_142 > .awsui_icon-wrapper_mgja0_1xhaq_228 {
|
|
264
266
|
color: var(--color-text-interactive-hover-mj8add, #000716);
|
|
265
267
|
}
|
|
266
268
|
|
|
267
|
-
.awsui_label-
|
|
269
|
+
.awsui_label-text_mgja0_1xhaq_242:not(#\9) {
|
|
268
270
|
color: var(--color-text-input-placeholder-qrb8p3, #5f6b7a);
|
|
269
271
|
font-style: italic;
|
|
270
272
|
}
|
|
271
273
|
|
|
272
|
-
.awsui_label-token-
|
|
274
|
+
.awsui_label-token-nowrap_mgja0_1xhaq_247:not(#\9) {
|
|
273
275
|
white-space: nowrap;
|
|
274
276
|
}
|
|
275
277
|
|
|
276
|
-
.awsui_mode-
|
|
278
|
+
.awsui_mode-switch_mgja0_1xhaq_251:not(#\9) {
|
|
277
279
|
/* used in test-utils */
|
|
278
280
|
}
|
|
279
281
|
|
|
280
|
-
.
|
|
282
|
+
.awsui_dropdown_mgja0_1xhaq_255:not(#\9) {
|
|
281
283
|
overflow: auto;
|
|
282
|
-
border-
|
|
283
|
-
border-
|
|
284
|
-
border-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
border-block-start: 1px solid var(--color-border-container-top-736buh, transparent);
|
|
285
|
+
border-block-end: 1px solid var(--color-border-container-top-736buh, transparent);
|
|
286
|
+
border-start-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
287
|
+
border-start-end-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
288
|
+
border-end-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
289
|
+
border-end-end-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
290
|
+
}
|
|
291
|
+
.awsui_dropdown_mgja0_1xhaq_255:not(#\9):focus {
|
|
287
292
|
outline: none;
|
|
288
293
|
}
|
|
289
|
-
body[data-awsui-focus-visible=true] .
|
|
294
|
+
body[data-awsui-focus-visible=true] .awsui_dropdown_mgja0_1xhaq_255:not(#\9):focus {
|
|
290
295
|
outline: 2px dotted transparent;
|
|
291
296
|
outline-offset: 2px;
|
|
292
297
|
border-radius: var(--border-radius-dropdown-0dhh79, 8px);
|
|
293
298
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
294
299
|
}
|
|
295
300
|
|
|
296
|
-
.awsui_dropdown-
|
|
301
|
+
.awsui_dropdown-content_mgja0_1xhaq_274:not(#\9) {
|
|
297
302
|
-webkit-user-select: text;
|
|
298
303
|
user-select: text;
|
|
299
304
|
background-color: var(--color-background-container-content-4un1ap, #ffffff);
|
|
300
|
-
|
|
305
|
+
inline-size: calc(2 * var(--size-calendar-grid-width-lrunz7, 238px) + var(--space-xs-zb16t3, 8px) + 2 * var(--space-l-t419sm, 20px));
|
|
301
306
|
}
|
|
302
|
-
.awsui_dropdown-
|
|
303
|
-
|
|
307
|
+
.awsui_dropdown-content_mgja0_1xhaq_274.awsui_one-grid_mgja0_1xhaq_149:not(#\9) {
|
|
308
|
+
inline-size: calc(var(--size-calendar-grid-width-lrunz7, 238px) + 2 * var(--space-l-t419sm, 20px));
|
|
304
309
|
}
|
|
305
310
|
|
|
306
|
-
.awsui_start-date-
|
|
307
|
-
.awsui_start-time-
|
|
308
|
-
.awsui_end-date-
|
|
309
|
-
.awsui_end-time-
|
|
311
|
+
.awsui_start-date-input_mgja0_1xhaq_283:not(#\9),
|
|
312
|
+
.awsui_start-time-input_mgja0_1xhaq_284:not(#\9),
|
|
313
|
+
.awsui_end-date-input_mgja0_1xhaq_285:not(#\9),
|
|
314
|
+
.awsui_end-time-input_mgja0_1xhaq_286:not(#\9) {
|
|
310
315
|
/* used in test-utils */
|
|
311
316
|
}
|
|
312
317
|
|
|
313
|
-
.awsui_validation-
|
|
318
|
+
.awsui_validation-section_mgja0_1xhaq_290:not(#\9) {
|
|
314
319
|
/* used in test-utils */
|
|
315
320
|
}
|
|
316
321
|
|
|
317
|
-
.awsui_validation-
|
|
322
|
+
.awsui_validation-error_mgja0_1xhaq_294:not(#\9) {
|
|
318
323
|
/* used in test-utils */
|
|
319
324
|
}
|
|
320
325
|
|
|
321
|
-
.awsui_clear-
|
|
326
|
+
.awsui_clear-button_mgja0_1xhaq_298:not(#\9) {
|
|
322
327
|
/* used in test-utils */
|
|
323
328
|
}
|
|
324
329
|
|
|
325
|
-
.awsui_apply-
|
|
330
|
+
.awsui_apply-button_mgja0_1xhaq_302:not(#\9) {
|
|
326
331
|
/* used in test-utils */
|
|
327
332
|
}
|
|
328
333
|
|
|
329
|
-
.awsui_cancel-
|
|
334
|
+
.awsui_cancel-button_mgja0_1xhaq_306:not(#\9) {
|
|
330
335
|
/* used in test-utils */
|
|
331
336
|
}
|
|
332
337
|
|
|
333
|
-
.awsui_calendar-aria-
|
|
338
|
+
.awsui_calendar-aria-live_mgja0_1xhaq_310:not(#\9) {
|
|
334
339
|
/* used in test-utils */
|
|
335
340
|
}
|
|
@@ -2,43 +2,43 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"calendar": "
|
|
6
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
7
|
-
"root": "
|
|
8
|
-
"focus-lock": "awsui_focus-
|
|
9
|
-
"trigger-wrapper": "awsui_trigger-
|
|
10
|
-
"trigger-flexbox": "awsui_trigger-
|
|
11
|
-
"calendar-container": "awsui_calendar-
|
|
12
|
-
"one-grid": "awsui_one-
|
|
13
|
-
"calendar-header": "awsui_calendar-
|
|
14
|
-
"calendar-header-months-wrapper": "awsui_calendar-header-months-
|
|
15
|
-
"calendar-header-month": "awsui_calendar-header-
|
|
16
|
-
"calendar-next-month-btn": "awsui_calendar-next-month-
|
|
17
|
-
"calendar-prev-month-btn": "awsui_calendar-prev-month-
|
|
18
|
-
"first-grid": "awsui_first-
|
|
19
|
-
"second-grid": "awsui_second-
|
|
20
|
-
"date-and-time-container": "awsui_date-and-time-
|
|
21
|
-
"date-and-time-wrapper": "awsui_date-and-time-
|
|
22
|
-
"footer": "
|
|
23
|
-
"has-clear-button": "awsui_has-clear-
|
|
24
|
-
"footer-button-wrapper": "awsui_footer-button-
|
|
25
|
-
"icon-wrapper": "awsui_icon-
|
|
26
|
-
"label": "
|
|
27
|
-
"label-enabled": "awsui_label-
|
|
28
|
-
"label-text": "awsui_label-
|
|
29
|
-
"label-token-nowrap": "awsui_label-token-
|
|
30
|
-
"mode-switch": "awsui_mode-
|
|
31
|
-
"dropdown": "
|
|
32
|
-
"dropdown-content": "awsui_dropdown-
|
|
33
|
-
"start-date-input": "awsui_start-date-
|
|
34
|
-
"start-time-input": "awsui_start-time-
|
|
35
|
-
"end-date-input": "awsui_end-date-
|
|
36
|
-
"end-time-input": "awsui_end-time-
|
|
37
|
-
"validation-section": "awsui_validation-
|
|
38
|
-
"validation-error": "awsui_validation-
|
|
39
|
-
"clear-button": "awsui_clear-
|
|
40
|
-
"apply-button": "awsui_apply-
|
|
41
|
-
"cancel-button": "awsui_cancel-
|
|
42
|
-
"calendar-aria-live": "awsui_calendar-aria-
|
|
5
|
+
"calendar": "awsui_calendar_mgja0_1xhaq_93",
|
|
6
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_mgja0_1xhaq_1",
|
|
7
|
+
"root": "awsui_root_mgja0_1xhaq_120",
|
|
8
|
+
"focus-lock": "awsui_focus-lock_mgja0_1xhaq_134",
|
|
9
|
+
"trigger-wrapper": "awsui_trigger-wrapper_mgja0_1xhaq_138",
|
|
10
|
+
"trigger-flexbox": "awsui_trigger-flexbox_mgja0_1xhaq_142",
|
|
11
|
+
"calendar-container": "awsui_calendar-container_mgja0_1xhaq_146",
|
|
12
|
+
"one-grid": "awsui_one-grid_mgja0_1xhaq_149",
|
|
13
|
+
"calendar-header": "awsui_calendar-header_mgja0_1xhaq_153",
|
|
14
|
+
"calendar-header-months-wrapper": "awsui_calendar-header-months-wrapper_mgja0_1xhaq_159",
|
|
15
|
+
"calendar-header-month": "awsui_calendar-header-month_mgja0_1xhaq_159",
|
|
16
|
+
"calendar-next-month-btn": "awsui_calendar-next-month-btn_mgja0_1xhaq_178",
|
|
17
|
+
"calendar-prev-month-btn": "awsui_calendar-prev-month-btn_mgja0_1xhaq_181",
|
|
18
|
+
"first-grid": "awsui_first-grid_mgja0_1xhaq_185",
|
|
19
|
+
"second-grid": "awsui_second-grid_mgja0_1xhaq_186",
|
|
20
|
+
"date-and-time-container": "awsui_date-and-time-container_mgja0_1xhaq_190",
|
|
21
|
+
"date-and-time-wrapper": "awsui_date-and-time-wrapper_mgja0_1xhaq_196",
|
|
22
|
+
"footer": "awsui_footer_mgja0_1xhaq_203",
|
|
23
|
+
"has-clear-button": "awsui_has-clear-button_mgja0_1xhaq_212",
|
|
24
|
+
"footer-button-wrapper": "awsui_footer-button-wrapper_mgja0_1xhaq_221",
|
|
25
|
+
"icon-wrapper": "awsui_icon-wrapper_mgja0_1xhaq_228",
|
|
26
|
+
"label": "awsui_label_mgja0_1xhaq_233",
|
|
27
|
+
"label-enabled": "awsui_label-enabled_mgja0_1xhaq_238",
|
|
28
|
+
"label-text": "awsui_label-text_mgja0_1xhaq_242",
|
|
29
|
+
"label-token-nowrap": "awsui_label-token-nowrap_mgja0_1xhaq_247",
|
|
30
|
+
"mode-switch": "awsui_mode-switch_mgja0_1xhaq_251",
|
|
31
|
+
"dropdown": "awsui_dropdown_mgja0_1xhaq_255",
|
|
32
|
+
"dropdown-content": "awsui_dropdown-content_mgja0_1xhaq_274",
|
|
33
|
+
"start-date-input": "awsui_start-date-input_mgja0_1xhaq_283",
|
|
34
|
+
"start-time-input": "awsui_start-time-input_mgja0_1xhaq_284",
|
|
35
|
+
"end-date-input": "awsui_end-date-input_mgja0_1xhaq_285",
|
|
36
|
+
"end-time-input": "awsui_end-time-input_mgja0_1xhaq_286",
|
|
37
|
+
"validation-section": "awsui_validation-section_mgja0_1xhaq_290",
|
|
38
|
+
"validation-error": "awsui_validation-error_mgja0_1xhaq_294",
|
|
39
|
+
"clear-button": "awsui_clear-button_mgja0_1xhaq_298",
|
|
40
|
+
"apply-button": "awsui_apply-button_mgja0_1xhaq_302",
|
|
41
|
+
"cancel-button": "awsui_cancel-button_mgja0_1xhaq_306",
|
|
42
|
+
"calendar-aria-live": "awsui_calendar-aria-live_mgja0_1xhaq_310"
|
|
43
43
|
};
|
|
44
44
|
|
package/drawer/styles.css.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"drawer": "
|
|
5
|
-
"header": "
|
|
6
|
-
"test-utils-drawer-content": "awsui_test-utils-drawer-
|
|
4
|
+
"drawer": "awsui_drawer_1sxt8_16fgq_94",
|
|
5
|
+
"header": "awsui_header_1sxt8_16fgq_112",
|
|
6
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_16fgq_141"
|
|
7
7
|
};
|
|
8
8
|
|
package/drawer/styles.scoped.css
CHANGED
|
@@ -91,7 +91,7 @@ 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
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
94
|
-
.
|
|
94
|
+
.awsui_drawer_1sxt8_16fgq_94:not(#\9) {
|
|
95
95
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
96
96
|
border-collapse: separate;
|
|
97
97
|
border-spacing: 0;
|
|
@@ -129,38 +129,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
129
129
|
-webkit-font-smoothing: auto;
|
|
130
130
|
-moz-osx-font-smoothing: auto;
|
|
131
131
|
word-wrap: break-word;
|
|
132
|
-
padding: var(--space-scaled-l-0hpmd7, 20px)
|
|
132
|
+
padding-block-start: var(--space-scaled-l-0hpmd7, 20px);
|
|
133
|
+
padding-block-end: var(--space-scaled-xxxl-fdg8ai, 40px);
|
|
134
|
+
padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
|
|
135
|
+
padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
.
|
|
138
|
+
.awsui_header_1sxt8_16fgq_112:not(#\9) {
|
|
136
139
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
137
140
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
138
141
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
139
142
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
140
143
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
141
144
|
color: var(--color-text-heading-default-rtslvy, #000716);
|
|
142
|
-
padding-
|
|
143
|
-
padding-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
margin
|
|
145
|
+
padding-block-end: var(--space-scaled-l-0hpmd7, 20px);
|
|
146
|
+
padding-inline: var(--space-panel-side-left-5t0who, 28px) calc(var(--space-xl-lmui9r, 24px) + var(--space-scaled-xxl-wbot5q, 32px));
|
|
147
|
+
border-block-end: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
|
|
148
|
+
margin-block-start: 0;
|
|
149
|
+
margin-block-end: var(--space-scaled-l-0hpmd7, 20px);
|
|
150
|
+
margin-inline-end: calc(-1 * var(--space-panel-side-right-xofg51, 24px));
|
|
151
|
+
margin-inline-start: calc(-1 * var(--space-panel-side-left-5t0who, 28px));
|
|
147
152
|
}
|
|
148
|
-
.
|
|
149
|
-
.
|
|
150
|
-
.
|
|
151
|
-
.
|
|
152
|
-
.
|
|
153
|
+
.awsui_header_1sxt8_16fgq_112 h2:not(#\9),
|
|
154
|
+
.awsui_header_1sxt8_16fgq_112 h3:not(#\9),
|
|
155
|
+
.awsui_header_1sxt8_16fgq_112 h4:not(#\9),
|
|
156
|
+
.awsui_header_1sxt8_16fgq_112 h5:not(#\9),
|
|
157
|
+
.awsui_header_1sxt8_16fgq_112 h6:not(#\9) {
|
|
153
158
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
154
159
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
155
160
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
156
161
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
157
162
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
158
|
-
padding-
|
|
159
|
-
|
|
160
|
-
margin-top: 0;
|
|
161
|
-
margin-bottom: 0;
|
|
163
|
+
padding-block: 0;
|
|
164
|
+
margin-block: 0;
|
|
162
165
|
}
|
|
163
166
|
|
|
164
|
-
.awsui_test-utils-drawer-
|
|
167
|
+
.awsui_test-utils-drawer-content_1sxt8_16fgq_141:not(#\9) {
|
|
165
168
|
/* used in test-utils */
|
|
166
169
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drawer": "
|
|
6
|
-
"header": "
|
|
7
|
-
"test-utils-drawer-content": "awsui_test-utils-drawer-
|
|
5
|
+
"drawer": "awsui_drawer_1sxt8_16fgq_94",
|
|
6
|
+
"header": "awsui_header_1sxt8_16fgq_112",
|
|
7
|
+
"test-utils-drawer-content": "awsui_test-utils-drawer-content_1sxt8_16fgq_141"
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ExpandableSectionProps } from './interfaces';
|
|
3
3
|
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
|
|
4
4
|
export interface ExpandableSectionContainerProps extends InternalBaseComponentProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
header: React.ReactNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
-
variant:
|
|
8
|
+
variant: ExpandableSectionProps.Variant;
|
|
9
9
|
expanded: boolean | undefined;
|
|
10
10
|
disableContentPaddings: boolean | undefined;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"expandable-section-container.d.ts","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-container.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAIlF,MAAM,WAAW,+BAAgC,SAAQ,0BAA0B;IACjF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IACxC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,0BAA0B,2GASpC,+BAA+B,gBA0BjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-container.js","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-container.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAW3F,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAST,EAAE,EAAE;QATK,EACzC,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,OAEe,EAD7B,IAAI,cARkC,yGAS1C,CADQ;IAEP,IAAI,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,SAAS,EAAE;QACpD,OAAO,CACL,oBAAC,sBAAsB;YACrB,oBAAC,0BAA0B,oBACrB,IAAI,IACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACtD,sBAAsB,EAAE,sBAAsB,IAAI,CAAC,QAAQ,EAC3D,qBAAqB,EAAE,IAAI,EAC3B,eAAe,EAAE,CAAC,QAAQ,EAC1B,iBAAiB,EAAE,iBAAiB,KAEnC,QAAQ,CACkB,CACN,CAC1B,CAAC;KACH;IAED,OAAO,CACL,2CAAK,SAAS,EAAE,SAAS,IAAM,IAAI,IAAE,GAAG,EAAE,iBAAiB;QACxD,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { InternalContainerAsSubstep } from '../container/internal';\nimport React from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"expandable-section-container.js","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-container.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAW3F,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,EAST,EAAE,EAAE;QATK,EACzC,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,OAEe,EAD7B,IAAI,cARkC,yGAS1C,CADQ;IAEP,IAAI,OAAO,KAAK,WAAW,IAAI,OAAO,KAAK,SAAS,EAAE;QACpD,OAAO,CACL,oBAAC,sBAAsB;YACrB,oBAAC,0BAA0B,oBACrB,IAAI,IACR,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EACtD,sBAAsB,EAAE,sBAAsB,IAAI,CAAC,QAAQ,EAC3D,qBAAqB,EAAE,IAAI,EAC3B,eAAe,EAAE,CAAC,QAAQ,EAC1B,iBAAiB,EAAE,iBAAiB,KAEnC,QAAQ,CACkB,CACN,CAC1B,CAAC;KACH;IAED,OAAO,CACL,2CAAK,SAAS,EAAE,SAAS,IAAM,IAAI,IAAE,GAAG,EAAE,iBAAiB;QACxD,MAAM;QACN,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { InternalContainerAsSubstep } from '../container/internal';\nimport React from 'react';\nimport { ExpandableSectionProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\n\nimport { AnalyticsFunnelSubStep } from '../internal/analytics/components/analytics-funnel';\n\nexport interface ExpandableSectionContainerProps extends InternalBaseComponentProps {\n className?: string;\n header: React.ReactNode;\n children?: React.ReactNode;\n variant: ExpandableSectionProps.Variant;\n expanded: boolean | undefined;\n disableContentPaddings: boolean | undefined;\n}\n\nexport const ExpandableSectionContainer = ({\n className,\n children,\n header,\n variant,\n expanded,\n disableContentPaddings,\n __internalRootRef,\n ...rest\n}: ExpandableSectionContainerProps) => {\n if (variant === 'container' || variant === 'stacked') {\n return (\n <AnalyticsFunnelSubStep>\n <InternalContainerAsSubstep\n {...rest}\n className={className}\n header={header}\n variant={variant === 'stacked' ? 'stacked' : 'default'}\n disableContentPaddings={disableContentPaddings || !expanded}\n disableHeaderPaddings={true}\n __hiddenContent={!expanded}\n __internalRootRef={__internalRootRef}\n >\n {children}\n </InternalContainerAsSubstep>\n </AnalyticsFunnelSubStep>\n );\n }\n\n return (\n <div className={className} {...rest} ref={__internalRootRef}>\n {header}\n {children}\n </div>\n );\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpandableSectionProps
|
|
1
|
+
import { ExpandableSectionProps } from './interfaces';
|
|
2
2
|
import { KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
|
|
3
3
|
export declare const componentName = "ExpandableSection";
|
|
4
4
|
interface ExpandableDefaultHeaderProps {
|
|
@@ -13,9 +13,10 @@ interface ExpandableDefaultHeaderProps {
|
|
|
13
13
|
onKeyDown: KeyboardEventHandler;
|
|
14
14
|
onClick: MouseEventHandler;
|
|
15
15
|
icon: JSX.Element;
|
|
16
|
-
variant:
|
|
16
|
+
variant: ExpandableSectionProps.Variant;
|
|
17
17
|
}
|
|
18
18
|
interface ExpandableSectionHeaderProps extends Omit<ExpandableDefaultHeaderProps, 'children' | 'icon'> {
|
|
19
|
+
variant: ExpandableSectionProps.Variant;
|
|
19
20
|
header?: ReactNode;
|
|
20
21
|
headerText?: ReactNode;
|
|
21
22
|
headerDescription?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandable-section-header.d.ts","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"expandable-section-header.d.ts","sourceRoot":"lib/default/","sources":["expandable-section/expandable-section-header.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASlF,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD,UAAU,4BAA4B;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,SAAS,EAAE,oBAAoB,CAAC;IAChC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC;IAClB,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;CACzC;AAcD,UAAU,4BAA6B,SAAQ,IAAI,CAAC,4BAA4B,EAAE,UAAU,GAAG,MAAM,CAAC;IACpG,OAAO,EAAE,sBAAsB,CAAC,OAAO,CAAC;IACxC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,kBAAkB,CAAC,EAAE,sBAAsB,CAAC,UAAU,CAAC;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA0JD,eAAO,MAAM,uBAAuB,oOAmBjC,4BAA4B,gBA2E9B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import styles from './styles.css.js';
|
|
|
5
5
|
import InternalHeader, { Description as HeaderDescription } from '../header/internal';
|
|
6
6
|
import { isDevelopment } from '../internal/is-development';
|
|
7
7
|
import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
|
|
8
|
-
import { variantSupportsDescription
|
|
8
|
+
import { variantSupportsDescription } from './utils';
|
|
9
9
|
export const componentName = 'ExpandableSection';
|
|
10
10
|
const ExpandableDeprecatedHeader = ({ id, className, onClick, ariaLabel, ariaControls, expanded, children, icon, onKeyUp, onKeyDown, variant, }) => {
|
|
11
11
|
return (React.createElement("div", { id: id, role: "button", className: clsx(className, styles['expand-button'], styles['click-target'], styles['header-deprecated']), tabIndex: 0, onKeyUp: onKeyUp, onKeyDown: onKeyDown, onClick: onClick, "aria-label": ariaLabel, "aria-controls": ariaControls, "aria-expanded": expanded },
|
|
@@ -20,14 +20,12 @@ const ExpandableNavigationHeader = ({ id, className, onClick, ariaLabelledBy, ar
|
|
|
20
20
|
const ExpandableHeaderTextWrapper = ({ id, descriptionId, className, onClick, ariaLabel, ariaControls, expanded, children, icon, headerDescription, headerCounter, headerInfo, headerActions, variant, headingTagOverride, onKeyUp, onKeyDown, }) => {
|
|
21
21
|
const isContainer = variant === 'container';
|
|
22
22
|
const HeadingTag = headingTagOverride || 'div';
|
|
23
|
-
const
|
|
24
|
-
const restrictClickableArea = supportsInteractiveElements && (headerInfo || headerActions);
|
|
25
|
-
const actions = supportsInteractiveElements && headerActions;
|
|
26
|
-
const description = variantSupportsDescription(variant) && headerDescription && (React.createElement("span", { id: descriptionId, className: styles[`description-${variant}`] }, headerDescription));
|
|
23
|
+
const hasInteractiveElements = isContainer && (headerInfo || headerActions);
|
|
27
24
|
const listeners = { onClick, onKeyDown, onKeyUp };
|
|
25
|
+
const description = variantSupportsDescription(variant) && headerDescription && (React.createElement("span", { id: descriptionId, className: styles[`description-${variant}`] }, headerDescription));
|
|
28
26
|
// If interactive elements are present, constrain the clickable area to only the icon and the header text
|
|
29
27
|
// to prevent nesting interactive elements.
|
|
30
|
-
const headerButtonListeners =
|
|
28
|
+
const headerButtonListeners = hasInteractiveElements ? listeners : undefined;
|
|
31
29
|
// For the default and footer variants with description,
|
|
32
30
|
// include also the immediate wrapper around it to include the entire row for backwards compatibility,
|
|
33
31
|
// but exclude the description.
|
|
@@ -37,10 +35,8 @@ const ExpandableHeaderTextWrapper = ({ id, descriptionId, className, onClick, ar
|
|
|
37
35
|
const headerButton = (React.createElement("span", Object.assign({ className: clsx(styles['expand-button'], isContainer ? styles['header-container-button'] : styles['header-button'], headerButtonListeners && styles['click-target']), role: "button", tabIndex: 0, "aria-label": ariaLabel, "aria-labelledby": !ariaLabel && description ? id : undefined, "aria-describedby": description ? descriptionId : undefined, "aria-controls": ariaControls, "aria-expanded": expanded }, headerButtonListeners),
|
|
38
36
|
React.createElement("span", { className: clsx(styles['icon-container'], styles[`icon-container-${variant}`]) }, icon),
|
|
39
37
|
React.createElement("span", { id: id, className: styles['header-text'] }, children)));
|
|
40
|
-
return (React.createElement("div", Object.assign({ className: clsx(className, wrapperListeners && styles['click-target']) }, wrapperListeners), isContainer ? (React.createElement(InternalHeader, { variant: "h2", description: description, counter: headerCounter, info: headerInfo, actions:
|
|
41
|
-
React.createElement(
|
|
42
|
-
React.createElement(HeadingTag, Object.assign({ className: clsx(styles['header-wrapper'], headingTagListeners && styles['click-target']) }, headingTagListeners), headerButton),
|
|
43
|
-
actions),
|
|
38
|
+
return (React.createElement("div", Object.assign({ className: clsx(className, wrapperListeners && styles['click-target']) }, wrapperListeners), isContainer ? (React.createElement(InternalHeader, { variant: "h2", description: description, counter: headerCounter, info: headerInfo, actions: headerActions, headingTagOverride: headingTagOverride }, headerButton)) : (React.createElement(React.Fragment, null,
|
|
39
|
+
React.createElement(HeadingTag, Object.assign({ className: clsx(styles['header-wrapper'], headingTagListeners && styles['click-target']) }, headingTagListeners), headerButton),
|
|
44
40
|
description && React.createElement(HeaderDescription, { variantOverride: "h3" }, description)))));
|
|
45
41
|
};
|
|
46
42
|
export const ExpandableSectionHeader = ({ id, descriptionId, className, variant, header, headerText, headerDescription, headerCounter, headerInfo, headerActions, headingTagOverride, expanded, ariaControls, ariaLabel, ariaLabelledBy, onKeyUp, onKeyDown, onClick, }) => {
|
|
@@ -54,7 +50,7 @@ export const ExpandableSectionHeader = ({ id, descriptionId, className, variant,
|
|
|
54
50
|
onClick: onClick,
|
|
55
51
|
variant,
|
|
56
52
|
};
|
|
57
|
-
if ((headerCounter || headerInfo || headerActions) &&
|
|
53
|
+
if ((headerCounter || headerInfo || headerActions) && variant !== 'container' && isDevelopment) {
|
|
58
54
|
warnOnce(componentName, 'The `headerCounter`, `headerInfo` and `headerActions` props are only supported for the "container" variant.');
|
|
59
55
|
}
|
|
60
56
|
if (headerDescription && !variantSupportsDescription(variant) && isDevelopment) {
|