@cloudscape-design/components-themeable 3.0.1366 → 3.0.1368
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/action-card/constants.scss +4 -4
- package/lib/internal/scss/button-dropdown/styles.scss +4 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/table/body-cell/styles.scss +72 -124
- package/lib/internal/scss/table/cell-base/_cell-box.scss +73 -0
- package/lib/internal/scss/table/header-cell/styles.scss +2 -3
- package/lib/internal/template/action-card/styles.css.js +17 -17
- package/lib/internal/template/action-card/styles.scoped.css +99 -99
- package/lib/internal/template/action-card/styles.selectors.js +17 -17
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +26 -26
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +4 -4
- package/lib/internal/template/internal/generated/styles/tokens.js +639 -639
- package/lib/internal/template/internal/generated/theming/index.cjs +683 -675
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +36 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +36 -0
- package/lib/internal/template/internal/generated/theming/index.js +683 -675
- package/lib/internal/template/table/body-cell/styles.css.js +46 -48
- package/lib/internal/template/table/body-cell/styles.scoped.css +379 -375
- package/lib/internal/template/table/body-cell/styles.selectors.js +46 -48
- package/lib/internal/template/table/body-cell/td-element.d.ts +0 -2
- package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/td-element.js +2 -2
- package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +4 -10
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/skeleton-rows.d.ts +1 -2
- package/lib/internal/template/table/skeleton-rows.d.ts.map +1 -1
- package/lib/internal/template/table/skeleton-rows.js +2 -4
- package/lib/internal/template/table/skeleton-rows.js.map +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ $states: (
|
|
|
12
12
|
'border-color': awsui.$color-border-action-card-default,
|
|
13
13
|
'border-width': awsui.$border-width-action-card-default,
|
|
14
14
|
'text-color': inherit,
|
|
15
|
-
'icon-color': awsui.$color-
|
|
15
|
+
'icon-color': awsui.$color-text-action-card-icon-default,
|
|
16
16
|
),
|
|
17
17
|
'hover': (
|
|
18
18
|
'background': awsui.$color-background-action-card-hover,
|
|
@@ -20,7 +20,7 @@ $states: (
|
|
|
20
20
|
'border-color': awsui.$color-border-action-card-hover,
|
|
21
21
|
'border-width': awsui.$border-width-action-card-hover,
|
|
22
22
|
'text-color': inherit,
|
|
23
|
-
'icon-color': awsui.$color-
|
|
23
|
+
'icon-color': awsui.$color-text-action-card-icon-hover,
|
|
24
24
|
),
|
|
25
25
|
'active': (
|
|
26
26
|
'background': awsui.$color-background-action-card-active,
|
|
@@ -28,7 +28,7 @@ $states: (
|
|
|
28
28
|
'border-color': awsui.$color-border-action-card-active,
|
|
29
29
|
'border-width': awsui.$border-width-action-card-active,
|
|
30
30
|
'text-color': inherit,
|
|
31
|
-
'icon-color': awsui.$color-
|
|
31
|
+
'icon-color': awsui.$color-text-action-card-icon-active,
|
|
32
32
|
),
|
|
33
33
|
'disabled': (
|
|
34
34
|
'background': awsui.$color-background-action-card-disabled,
|
|
@@ -36,6 +36,6 @@ $states: (
|
|
|
36
36
|
'border-color': awsui.$color-border-action-card-disabled,
|
|
37
37
|
'border-width': awsui.$border-width-action-card-disabled,
|
|
38
38
|
'text-color': awsui.$color-text-action-card-disabled,
|
|
39
|
-
'icon-color': awsui.$color-
|
|
39
|
+
'icon-color': awsui.$color-text-action-card-icon-disabled,
|
|
40
40
|
),
|
|
41
41
|
);
|
|
@@ -88,6 +88,10 @@ $dropdown-trigger-icon-offset: 2px;
|
|
|
88
88
|
&.visual-refresh {
|
|
89
89
|
padding-inline-start: calc(#{awsui.$space-s} - #{$dropdown-trigger-icon-offset});
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
@include theming.one-theme-only {
|
|
93
|
+
padding-inline: awsui.$space-button-icon-only-horizontal;
|
|
94
|
+
}
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -6,30 +6,19 @@
|
|
|
6
6
|
@use '../../internal/styles' as styles;
|
|
7
7
|
@use '../../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
9
|
+
@use '../cell-base/cell-box' as cell-base;
|
|
9
10
|
|
|
10
|
-
$cell-
|
|
11
|
-
// Calculate padding to prevent a shift in content after selection due to the difference
|
|
12
|
-
// between selected border widths and normal row divider widths (visual refresh).
|
|
13
|
-
$cell-vertical-padding-w-border: calc(
|
|
14
|
-
#{$cell-vertical-padding} + (#{awsui.$border-item-width} - #{awsui.$border-divider-list-width})
|
|
15
|
-
);
|
|
16
|
-
$cell-horizontal-padding: awsui.$space-scaled-l;
|
|
17
|
-
$cell-edge-horizontal-padding: calc(#{awsui.$space-l} - #{awsui.$border-item-width});
|
|
18
|
-
$cell-horizontal-padding-w-border: calc(#{$cell-edge-horizontal-padding} + #{awsui.$border-item-width});
|
|
11
|
+
$cell-horizontal-padding-w-border: calc(#{cell-base.$cell-edge-horizontal-padding} + #{awsui.$border-item-width});
|
|
19
12
|
$selected-border: awsui.$border-width-item-selected solid awsui.$color-border-item-selected;
|
|
20
13
|
$selected-border-placeholder: awsui.$border-divider-list-width solid awsui.$color-border-item-placeholder;
|
|
21
|
-
$border-placeholder: awsui.$border-item-width solid transparent;
|
|
22
14
|
$icon-width-with-spacing: calc(#{awsui.$size-icon-normal} + #{awsui.$space-xs});
|
|
23
15
|
// Right paddings of the absolute positioned icons (success icon is shown next to the edit icon)
|
|
24
16
|
$edit-button-padding-right: calc(#{awsui.$space-xs} + #{awsui.$space-xxs});
|
|
25
17
|
// Cell vertical padding + xxs space that would normally come from the button.
|
|
26
18
|
$success-icon-padding-right: calc(#{$edit-button-padding-right} + #{$icon-width-with-spacing});
|
|
27
|
-
$interactive-column-padding-inline-end: calc(#{
|
|
19
|
+
$interactive-column-padding-inline-end: calc(#{cell-base.$cell-horizontal-padding} + #{awsui.$space-l});
|
|
28
20
|
$editing-cell-padding-inline: awsui.$space-xxs;
|
|
29
21
|
$editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
30
|
-
$cell-offset: calc(#{awsui.$space-m} + #{awsui.$space-xs});
|
|
31
|
-
// Ensuring enough space for absolute-positioned focus outlines of focus-able cell content elements.
|
|
32
|
-
$cell-negative-space-vertical: 2px;
|
|
33
22
|
|
|
34
23
|
@mixin safe-focus-highlight($params) {
|
|
35
24
|
@include styles.focus-highlight($params);
|
|
@@ -65,64 +54,9 @@ $cell-negative-space-vertical: 2px;
|
|
|
65
54
|
align-items: center;
|
|
66
55
|
}
|
|
67
56
|
|
|
68
|
-
@mixin cell-padding-inline-start($padding) {
|
|
69
|
-
$max-nesting-levels: 9;
|
|
70
|
-
$offset-padding: calc($padding - 1 * awsui.$border-divider-list-width);
|
|
71
|
-
|
|
72
|
-
> .body-cell-content {
|
|
73
|
-
padding-inline-start: $offset-padding;
|
|
74
|
-
}
|
|
75
|
-
> .expandable-toggle-wrapper {
|
|
76
|
-
margin-inline-start: $offset-padding;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@for $i from 0 through $max-nesting-levels {
|
|
80
|
-
&.expandable-level-#{$i} {
|
|
81
|
-
> .body-cell-content {
|
|
82
|
-
padding-inline-start: calc(#{$offset-padding} / 2);
|
|
83
|
-
margin-inline-start: calc(#{$offset-padding} / 2 + #{$i} * #{$cell-offset});
|
|
84
|
-
}
|
|
85
|
-
> .expandable-toggle-wrapper {
|
|
86
|
-
margin-inline-start: calc($offset-padding + ($i - 1) * $cell-offset);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
&.expandable-level-next {
|
|
91
|
-
> .body-cell-content {
|
|
92
|
-
padding-inline-start: calc(#{$offset-padding} / 2);
|
|
93
|
-
margin-inline-start: calc(#{$offset-padding} / 2 + #{$max-nesting-levels} * #{$cell-offset});
|
|
94
|
-
}
|
|
95
|
-
> .expandable-toggle-wrapper {
|
|
96
|
-
margin-inline-start: calc(#{$offset-padding} + (#{$max-nesting-levels} - 1) * #{$cell-offset});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
@mixin cell-padding-inline-end($padding) {
|
|
101
|
-
> .body-cell-content {
|
|
102
|
-
padding-inline-end: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width});
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
@mixin cell-padding-block($padding) {
|
|
106
|
-
> .body-cell-content {
|
|
107
|
-
padding-block: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
108
|
-
margin-block: calc(-1 * #{$cell-negative-space-vertical});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
@mixin cell-padding-block-start($padding) {
|
|
112
|
-
> .body-cell-content {
|
|
113
|
-
padding-block-start: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
114
|
-
margin-block-start: calc(-1 * #{$cell-negative-space-vertical});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
@mixin cell-padding-block-end($padding) {
|
|
118
|
-
> .body-cell-content {
|
|
119
|
-
padding-block-end: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
120
|
-
margin-block-end: calc(-1 * #{$cell-negative-space-vertical});
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
57
|
@mixin body-cell-active-hover-padding($padding-start) {
|
|
124
58
|
&:not(.body-cell-edit-active):not(.body-cell-expandable).body-cell-editable:hover {
|
|
125
|
-
@include cell-padding-inline-start(calc(#{$padding-start} + #{awsui.$border-divider-list-width}));
|
|
59
|
+
@include cell-base.cell-padding-inline-start(calc(#{$padding-start} + #{awsui.$border-divider-list-width}));
|
|
126
60
|
}
|
|
127
61
|
}
|
|
128
62
|
|
|
@@ -134,11 +68,11 @@ $cell-negative-space-vertical: 2px;
|
|
|
134
68
|
font-weight: inherit;
|
|
135
69
|
text-align: start;
|
|
136
70
|
|
|
137
|
-
@include cell-padding-inline-start(
|
|
138
|
-
@include cell-padding-inline-end(
|
|
71
|
+
@include cell-base.cell-padding-inline-start(cell-base.$cell-horizontal-padding);
|
|
72
|
+
@include cell-base.cell-padding-inline-end(cell-base.$cell-horizontal-padding);
|
|
139
73
|
|
|
140
|
-
@include cell-padding-block-start(
|
|
141
|
-
@include cell-padding-block-end(
|
|
74
|
+
@include cell-base.cell-padding-block-start(cell-base.$cell-vertical-padding);
|
|
75
|
+
@include cell-base.cell-padding-block-end(cell-base.$cell-vertical-padding-w-border);
|
|
142
76
|
|
|
143
77
|
&-align-top {
|
|
144
78
|
vertical-align: top;
|
|
@@ -162,34 +96,34 @@ $cell-negative-space-vertical: 2px;
|
|
|
162
96
|
}
|
|
163
97
|
|
|
164
98
|
&:first-child {
|
|
165
|
-
border-inline-start:
|
|
166
|
-
@include cell-padding-inline-start(
|
|
99
|
+
border-inline-start: cell-base.$border-placeholder;
|
|
100
|
+
@include cell-base.cell-padding-inline-start(cell-base.$cell-edge-horizontal-padding);
|
|
167
101
|
}
|
|
168
102
|
&:last-child {
|
|
169
|
-
border-inline-end:
|
|
170
|
-
@include cell-padding-inline-end(
|
|
103
|
+
border-inline-end: cell-base.$border-placeholder;
|
|
104
|
+
@include cell-base.cell-padding-inline-end(cell-base.$cell-edge-horizontal-padding);
|
|
171
105
|
}
|
|
172
106
|
// Using very small padding for 1st column cells in VR.
|
|
173
107
|
&.is-visual-refresh:first-child {
|
|
174
|
-
@include cell-padding-inline-start(awsui.$space-xxxs);
|
|
108
|
+
@include cell-base.cell-padding-inline-start(awsui.$space-xxxs);
|
|
175
109
|
@include body-cell-active-hover-padding(awsui.$space-xxxs);
|
|
176
110
|
|
|
177
111
|
// Using slightly larger padding for tables with striped rows because the shaded background
|
|
178
112
|
// makes the child content appear too close to the table edge.
|
|
179
113
|
&:first-child.has-striped-rows {
|
|
180
|
-
@include cell-padding-inline-start(awsui.$space-xxs);
|
|
114
|
+
@include cell-base.cell-padding-inline-start(awsui.$space-xxs);
|
|
181
115
|
@include body-cell-active-hover-padding(awsui.$space-xxs);
|
|
182
116
|
|
|
183
117
|
&.sticky-cell-pad-inline-start {
|
|
184
|
-
@include cell-padding-inline-start(
|
|
185
|
-
@include body-cell-active-hover-padding(
|
|
118
|
+
@include cell-base.cell-padding-inline-start(cell-base.$cell-horizontal-padding);
|
|
119
|
+
@include body-cell-active-hover-padding(cell-base.$cell-horizontal-padding);
|
|
186
120
|
}
|
|
187
121
|
}
|
|
188
122
|
|
|
189
123
|
// Using normal padding when 1st column is sticky.
|
|
190
124
|
&.sticky-cell-pad-inline-start:not(.has-selection) {
|
|
191
|
-
@include cell-padding-inline-start(
|
|
192
|
-
@include body-cell-active-hover-padding(
|
|
125
|
+
@include cell-base.cell-padding-inline-start(cell-base.$cell-horizontal-padding);
|
|
126
|
+
@include body-cell-active-hover-padding(cell-base.$cell-horizontal-padding);
|
|
193
127
|
}
|
|
194
128
|
|
|
195
129
|
/*
|
|
@@ -201,39 +135,43 @@ $cell-negative-space-vertical: 2px;
|
|
|
201
135
|
border-inline-start: none;
|
|
202
136
|
}
|
|
203
137
|
}
|
|
204
|
-
|
|
205
|
-
|
|
138
|
+
// Guard selected out: a selected first row must keep its (thicker, coloured) selected
|
|
139
|
+
// top border, which the transparent placeholder would otherwise cover.
|
|
140
|
+
tr:first-child > &:not(.body-cell-selected) {
|
|
141
|
+
border-block-start: cell-base.$border-placeholder;
|
|
206
142
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
*/
|
|
218
|
-
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
|
|
219
|
-
}
|
|
143
|
+
tr:last-child > &:not(.body-cell-selected):not(.has-footer) {
|
|
144
|
+
// skip the border for the last row because the container already has a border
|
|
145
|
+
border-block-end: cell-base.$border-placeholder;
|
|
146
|
+
}
|
|
147
|
+
tr:last-child > &:not(.body-cell-selected).has-footer {
|
|
148
|
+
/*
|
|
149
|
+
Add a bottom border to the body cells of the last row as a separator between the
|
|
150
|
+
table and the footer
|
|
151
|
+
*/
|
|
152
|
+
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
|
|
220
153
|
}
|
|
221
154
|
&-shaded {
|
|
222
155
|
background: awsui.$color-background-cell-shaded;
|
|
223
156
|
}
|
|
224
|
-
&.has-striped-rows:not(.body-cell-selected)
|
|
157
|
+
tr:not(:last-child) > &.has-striped-rows:not(.body-cell-selected) {
|
|
225
158
|
border-block-end-color: awsui.$color-border-cell-shaded;
|
|
226
159
|
}
|
|
227
160
|
&-selected {
|
|
228
161
|
background-color: awsui.$color-background-item-selected;
|
|
229
162
|
border-block-start: $selected-border;
|
|
230
163
|
border-block-end: $selected-border;
|
|
231
|
-
@include cell-padding-block-end(
|
|
164
|
+
@include cell-base.cell-padding-block-end(cell-base.$cell-vertical-padding);
|
|
232
165
|
|
|
233
166
|
// Last selected row has a fixed border-bottom width which do not change on selection in visual refresh.
|
|
234
167
|
// Adjust padding-bottom prevents a slight jump in the table height.
|
|
235
|
-
|
|
236
|
-
|
|
168
|
+
// `:not(.body-cell-edit-active)`: the positional `tr:last-child` raises this rule's specificity
|
|
169
|
+
// above the edit-active padding rule, so an actively-edited selected last row must be excluded
|
|
170
|
+
// here or it would keep the selected padding instead of the editor's.
|
|
171
|
+
tr:last-child > &.is-visual-refresh:not(.body-cell-edit-active) {
|
|
172
|
+
@include cell-base.cell-padding-block-end(
|
|
173
|
+
calc(#{cell-base.$cell-vertical-padding} + #{awsui.$border-divider-list-width})
|
|
174
|
+
);
|
|
237
175
|
}
|
|
238
176
|
|
|
239
177
|
&:first-child {
|
|
@@ -313,15 +251,17 @@ $cell-negative-space-vertical: 2px;
|
|
|
313
251
|
|
|
314
252
|
// Use padding as a selected border placeholder to make sure rows don't change height on selection (visual refresh)
|
|
315
253
|
&-selected:not(:first-child) {
|
|
316
|
-
@include cell-padding-block-start(
|
|
254
|
+
@include cell-base.cell-padding-block-start(cell-base.$cell-vertical-padding-w-border);
|
|
317
255
|
}
|
|
318
256
|
&:not(.body-cell-selected).body-cell-next-selected {
|
|
319
257
|
border-block-end: 0;
|
|
320
|
-
@include cell-padding-block-end(
|
|
258
|
+
@include cell-base.cell-padding-block-end(
|
|
259
|
+
calc(#{cell-base.$cell-vertical-padding} + #{awsui.$border-divider-list-width})
|
|
260
|
+
);
|
|
321
261
|
}
|
|
322
262
|
&-selected.body-cell-prev-selected {
|
|
323
263
|
border-block-start: $selected-border-placeholder;
|
|
324
|
-
@include cell-padding-block-start(
|
|
264
|
+
@include cell-base.cell-padding-block-start(cell-base.$cell-vertical-padding-w-border);
|
|
325
265
|
}
|
|
326
266
|
&-selected.body-cell-next-selected {
|
|
327
267
|
border-block-end-width: awsui.$border-divider-list-width;
|
|
@@ -342,7 +282,7 @@ $cell-negative-space-vertical: 2px;
|
|
|
342
282
|
// Reset padding for selected rows with no adjacent selected row above it,
|
|
343
283
|
// because rows reuse adjacent selected borders (visual refresh)
|
|
344
284
|
&-selected:not(.body-cell-prev-selected) {
|
|
345
|
-
@include cell-padding-block-start(
|
|
285
|
+
@include cell-base.cell-padding-block-start(cell-base.$cell-vertical-padding);
|
|
346
286
|
}
|
|
347
287
|
|
|
348
288
|
&-editor-wrapper {
|
|
@@ -441,20 +381,20 @@ $cell-negative-space-vertical: 2px;
|
|
|
441
381
|
> .body-cell-content {
|
|
442
382
|
overflow: visible;
|
|
443
383
|
}
|
|
444
|
-
@include cell-padding-inline-start($editing-cell-padding-inline);
|
|
445
|
-
@include cell-padding-inline-end($editing-cell-padding-inline);
|
|
446
|
-
@include cell-padding-block-start($editing-cell-padding-block);
|
|
447
|
-
@include cell-padding-block-end(calc($editing-cell-padding-block + 1px));
|
|
384
|
+
@include cell-base.cell-padding-inline-start($editing-cell-padding-inline);
|
|
385
|
+
@include cell-base.cell-padding-inline-end($editing-cell-padding-inline);
|
|
386
|
+
@include cell-base.cell-padding-block-start($editing-cell-padding-block);
|
|
387
|
+
@include cell-base.cell-padding-block-end(calc($editing-cell-padding-block + 1px));
|
|
448
388
|
}
|
|
449
389
|
|
|
450
390
|
&:not(.body-cell-edit-active) {
|
|
451
391
|
// Include interactive padding even when a cell is not hovered to prevent jittering when resizableColumns=false.
|
|
452
392
|
&:not(.resizable-columns) {
|
|
453
|
-
@include cell-padding-inline-end($interactive-column-padding-inline-end);
|
|
393
|
+
@include cell-base.cell-padding-inline-end($interactive-column-padding-inline-end);
|
|
454
394
|
}
|
|
455
395
|
|
|
456
396
|
@mixin focused-editor-styles {
|
|
457
|
-
@include cell-padding-inline-end($interactive-column-padding-inline-end);
|
|
397
|
+
@include cell-base.cell-padding-inline-end($interactive-column-padding-inline-end);
|
|
458
398
|
& > .body-cell-editor-wrapper,
|
|
459
399
|
& > .expandable-cell-content > .body-cell-editor-wrapper {
|
|
460
400
|
opacity: 1;
|
|
@@ -485,8 +425,8 @@ $cell-negative-space-vertical: 2px;
|
|
|
485
425
|
}
|
|
486
426
|
&.body-cell-has-success {
|
|
487
427
|
// After a successful edit, we display the success icon next to the edit button and need additional padding to not let the text overflow the success icon.
|
|
488
|
-
@include cell-padding-inline-end(
|
|
489
|
-
calc(#{
|
|
428
|
+
@include cell-base.cell-padding-inline-end(
|
|
429
|
+
calc(#{cell-base.$cell-horizontal-padding} + #{awsui.$space-l} + #{$icon-width-with-spacing})
|
|
490
430
|
);
|
|
491
431
|
}
|
|
492
432
|
@include focused-editor-styles;
|
|
@@ -526,27 +466,35 @@ $cell-negative-space-vertical: 2px;
|
|
|
526
466
|
|
|
527
467
|
& > .body-cell-editor-wrapper,
|
|
528
468
|
& > .expandable-cell-content > .body-cell-editor-wrapper {
|
|
529
|
-
@include cell-padding-inline-end(
|
|
469
|
+
@include cell-base.cell-padding-inline-end(
|
|
530
470
|
calc(#{$edit-button-padding-right} - (2 * #{awsui.$border-divider-list-width}))
|
|
531
471
|
);
|
|
532
472
|
}
|
|
533
473
|
& > .body-cell-success {
|
|
534
474
|
// Update padding to avoid a jumping icon because of the additional borders added when hovering an editable cell.
|
|
535
|
-
@include cell-padding-inline-end(
|
|
475
|
+
@include cell-base.cell-padding-inline-end(
|
|
536
476
|
calc(#{$success-icon-padding-right} - (2 * #{awsui.$border-divider-list-width}))
|
|
537
477
|
);
|
|
538
478
|
}
|
|
539
|
-
&.body-cell-last-row.body-cell-selected,
|
|
540
479
|
&.body-cell-next-selected {
|
|
541
|
-
@include cell-
|
|
480
|
+
@include cell-base.cell-padding-block(
|
|
481
|
+
calc(#{cell-base.$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width} / 2))
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
tr:last-child > &.body-cell-selected {
|
|
485
|
+
@include cell-base.cell-padding-block(
|
|
486
|
+
calc(#{cell-base.$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width} / 2))
|
|
487
|
+
);
|
|
542
488
|
}
|
|
543
|
-
|
|
544
|
-
@include cell-padding-block-start(
|
|
545
|
-
calc(#{
|
|
489
|
+
tr:last-child > &:not(.body-cell-expandable):not(.body-cell-selected) {
|
|
490
|
+
@include cell-base.cell-padding-block-start(
|
|
491
|
+
calc(#{cell-base.$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width}))
|
|
546
492
|
);
|
|
547
493
|
}
|
|
548
|
-
|
|
549
|
-
@include cell-
|
|
494
|
+
tr:first-child > &:not(.body-cell-expandable):not(.body-cell-selected) {
|
|
495
|
+
@include cell-base.cell-padding-block(
|
|
496
|
+
calc(#{cell-base.$cell-vertical-padding} - calc(#{awsui.$border-divider-list-width}))
|
|
497
|
+
);
|
|
550
498
|
}
|
|
551
499
|
@include focused-editor-styles;
|
|
552
500
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
@use '../../internal/styles/tokens' as awsui;
|
|
5
|
+
|
|
6
|
+
$cell-vertical-padding: awsui.$space-scaled-xs;
|
|
7
|
+
// Calculate padding to prevent a shift in content after selection due to the difference
|
|
8
|
+
// between selected border widths and normal row divider widths (visual refresh).
|
|
9
|
+
$cell-vertical-padding-w-border: calc(
|
|
10
|
+
#{$cell-vertical-padding} + (#{awsui.$border-item-width} - #{awsui.$border-divider-list-width})
|
|
11
|
+
);
|
|
12
|
+
$cell-horizontal-padding: awsui.$space-scaled-l;
|
|
13
|
+
$cell-edge-horizontal-padding: calc(#{awsui.$space-l} - #{awsui.$border-item-width});
|
|
14
|
+
$border-placeholder: awsui.$border-item-width solid transparent;
|
|
15
|
+
$cell-offset: calc(#{awsui.$space-m} + #{awsui.$space-xs});
|
|
16
|
+
// Ensuring enough space for absolute-positioned focus outlines of focus-able cell content elements.
|
|
17
|
+
$cell-negative-space-vertical: 2px;
|
|
18
|
+
|
|
19
|
+
@mixin cell-padding-inline-start($padding) {
|
|
20
|
+
$max-nesting-levels: 9;
|
|
21
|
+
$offset-padding: calc($padding - 1 * awsui.$border-divider-list-width);
|
|
22
|
+
|
|
23
|
+
> .body-cell-content {
|
|
24
|
+
padding-inline-start: $offset-padding;
|
|
25
|
+
}
|
|
26
|
+
> .expandable-toggle-wrapper {
|
|
27
|
+
margin-inline-start: $offset-padding;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@for $i from 0 through $max-nesting-levels {
|
|
31
|
+
&.expandable-level-#{$i} {
|
|
32
|
+
> .body-cell-content {
|
|
33
|
+
padding-inline-start: calc(#{$offset-padding} / 2);
|
|
34
|
+
margin-inline-start: calc(#{$offset-padding} / 2 + #{$i} * #{$cell-offset});
|
|
35
|
+
}
|
|
36
|
+
> .expandable-toggle-wrapper {
|
|
37
|
+
margin-inline-start: calc($offset-padding + ($i - 1) * $cell-offset);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
&.expandable-level-next {
|
|
42
|
+
> .body-cell-content {
|
|
43
|
+
padding-inline-start: calc(#{$offset-padding} / 2);
|
|
44
|
+
margin-inline-start: calc(#{$offset-padding} / 2 + #{$max-nesting-levels} * #{$cell-offset});
|
|
45
|
+
}
|
|
46
|
+
> .expandable-toggle-wrapper {
|
|
47
|
+
margin-inline-start: calc(#{$offset-padding} + (#{$max-nesting-levels} - 1) * #{$cell-offset});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@mixin cell-padding-inline-end($padding) {
|
|
52
|
+
> .body-cell-content {
|
|
53
|
+
padding-inline-end: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@mixin cell-padding-block($padding) {
|
|
57
|
+
> .body-cell-content {
|
|
58
|
+
padding-block: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
59
|
+
margin-block: calc(-1 * #{$cell-negative-space-vertical});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@mixin cell-padding-block-start($padding) {
|
|
63
|
+
> .body-cell-content {
|
|
64
|
+
padding-block-start: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
65
|
+
margin-block-start: calc(-1 * #{$cell-negative-space-vertical});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@mixin cell-padding-block-end($padding) {
|
|
69
|
+
> .body-cell-content {
|
|
70
|
+
padding-block-end: calc(#{$padding} - 1 * #{awsui.$border-divider-list-width} + #{$cell-negative-space-vertical});
|
|
71
|
+
margin-block-end: calc(-1 * #{$cell-negative-space-vertical});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
7
7
|
@use '../../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '../../internal/styles' as styles;
|
|
9
|
-
|
|
10
|
-
$cell-horizontal-padding: awsui.$space-scaled-l;
|
|
9
|
+
@use '../cell-base/cell-box' as cell-base;
|
|
11
10
|
|
|
12
11
|
@mixin when-focus-visible-or-fake {
|
|
13
12
|
@include focus-visible.when-visible {
|
|
@@ -305,6 +304,6 @@ settings icon in the pagination slot.
|
|
|
305
304
|
}
|
|
306
305
|
|
|
307
306
|
&.sticky-cell-pad-inline-start {
|
|
308
|
-
@include cell-offset(
|
|
307
|
+
@include cell-offset(cell-base.$cell-horizontal-padding);
|
|
309
308
|
}
|
|
310
309
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"icon": "
|
|
6
|
-
"header-inner": "awsui_header-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"header": "
|
|
9
|
-
"body": "
|
|
10
|
-
"header-row": "awsui_header-
|
|
11
|
-
"description": "
|
|
12
|
-
"has-header": "awsui_has-
|
|
13
|
-
"header-button": "awsui_header-
|
|
14
|
-
"overlay-button": "awsui_overlay-
|
|
15
|
-
"variant-embedded": "awsui_variant-
|
|
16
|
-
"variant-default": "awsui_variant-
|
|
17
|
-
"inner-card": "awsui_inner-
|
|
18
|
-
"no-padding": "awsui_no-
|
|
19
|
-
"icon-vertical-align-center": "awsui_icon-vertical-align-
|
|
20
|
-
"icon-align-end": "awsui_icon-align-
|
|
4
|
+
"root": "awsui_root_16248_48sij_13",
|
|
5
|
+
"icon": "awsui_icon_16248_48sij_45",
|
|
6
|
+
"header-inner": "awsui_header-inner_16248_48sij_61",
|
|
7
|
+
"disabled": "awsui_disabled_16248_48sij_70",
|
|
8
|
+
"header": "awsui_header_16248_48sij_61",
|
|
9
|
+
"body": "awsui_body_16248_48sij_73",
|
|
10
|
+
"header-row": "awsui_header-row_16248_48sij_77",
|
|
11
|
+
"description": "awsui_description_16248_48sij_90",
|
|
12
|
+
"has-header": "awsui_has-header_16248_48sij_96",
|
|
13
|
+
"header-button": "awsui_header-button_16248_48sij_110",
|
|
14
|
+
"overlay-button": "awsui_overlay-button_16248_48sij_111",
|
|
15
|
+
"variant-embedded": "awsui_variant-embedded_16248_48sij_130",
|
|
16
|
+
"variant-default": "awsui_variant-default_16248_48sij_142",
|
|
17
|
+
"inner-card": "awsui_inner-card_16248_48sij_243",
|
|
18
|
+
"no-padding": "awsui_no-padding_16248_48sij_250",
|
|
19
|
+
"icon-vertical-align-center": "awsui_icon-vertical-align-center_16248_48sij_261",
|
|
20
|
+
"icon-align-end": "awsui_icon-align-end_16248_48sij_397"
|
|
21
21
|
};
|
|
22
22
|
|