@cloudscape-design/components-themeable 3.0.1404 → 3.0.1405
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/container/styles.scss +2 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +179 -178
- package/lib/internal/scss/internal/styles/forms/mixins.scss +2 -2
- package/lib/internal/scss/internal/styles/style-api.scss +14 -0
- package/lib/internal/scss/prompt-input/styles.scss +84 -13
- package/lib/internal/scss/table/body-cell/styles.scss +25 -15
- package/lib/internal/scss/table/header-cell/styles.scss +23 -9
- package/lib/internal/scss/table/resizer/styles.scss +13 -8
- package/lib/internal/scss/table/style-api.scss +52 -0
- package/lib/internal/scss/table/styles.scss +83 -0
- package/lib/internal/scss/tabs/styles.scss +3 -1
- package/lib/internal/scss/tabs/tab-header-bar.scss +105 -19
- package/lib/internal/template/alert/styles.css.js +27 -27
- package/lib/internal/template/alert/styles.scoped.css +49 -49
- package/lib/internal/template/alert/styles.selectors.js +27 -27
- package/lib/internal/template/annotation-context/annotation/styles.css.js +13 -13
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +21 -21
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +13 -13
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +89 -89
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +13 -13
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +30 -30
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +68 -68
- package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +30 -30
- package/lib/internal/template/attribute-editor/styles.css.js +15 -15
- package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
- package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/styles.css.js +24 -24
- package/lib/internal/template/button/styles.scoped.css +328 -328
- package/lib/internal/template/button/styles.selectors.js +24 -24
- package/lib/internal/template/button-dropdown/item-element/styles.css.js +21 -21
- package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +37 -37
- package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +21 -21
- package/lib/internal/template/cards/styles.css.js +39 -39
- package/lib/internal/template/cards/styles.scoped.css +41 -41
- package/lib/internal/template/cards/styles.selectors.js +39 -39
- package/lib/internal/template/checkbox/internal.d.ts +1 -1
- package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
- package/lib/internal/template/checkbox/internal.js.map +1 -1
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +10 -10
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/container/styles.css.js +33 -33
- package/lib/internal/template/container/styles.scoped.css +106 -106
- package/lib/internal/template/container/styles.selectors.js +33 -33
- package/lib/internal/template/content-layout/interfaces.d.ts +4 -2
- package/lib/internal/template/content-layout/interfaces.d.ts.map +1 -1
- package/lib/internal/template/content-layout/interfaces.js.map +1 -1
- package/lib/internal/template/content-layout/styles.css.js +14 -14
- package/lib/internal/template/content-layout/styles.scoped.css +27 -27
- package/lib/internal/template/content-layout/styles.selectors.js +14 -14
- package/lib/internal/template/control-group/styles.css.js +27 -27
- package/lib/internal/template/control-group/styles.scoped.css +28 -28
- package/lib/internal/template/control-group/styles.selectors.js +27 -27
- package/lib/internal/template/dropdown/styles.css.js +20 -20
- package/lib/internal/template/dropdown/styles.scoped.css +45 -45
- package/lib/internal/template/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/file-token-group/styles.css.js +23 -23
- package/lib/internal/template/file-token-group/styles.scoped.css +36 -36
- package/lib/internal/template/file-token-group/styles.selectors.js +23 -23
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +182 -182
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +72 -72
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/input/styles.css.js +45 -45
- package/lib/internal/template/input/styles.scoped.css +145 -145
- package/lib/internal/template/input/styles.selectors.js +45 -45
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/lib/internal/template/internal/components/option/styles.css.js +19 -19
- package/lib/internal/template/internal/components/option/styles.scoped.css +36 -36
- package/lib/internal/template/internal/components/option/styles.selectors.js +19 -19
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +17 -17
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +23 -23
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +58 -58
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +23 -23
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +1 -0
- package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +178 -177
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/item-card/styles.css.js +14 -14
- package/lib/internal/template/item-card/styles.scoped.css +73 -73
- package/lib/internal/template/item-card/styles.selectors.js +14 -14
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +104 -104
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/modal/styles.css.js +32 -32
- package/lib/internal/template/modal/styles.scoped.css +49 -49
- package/lib/internal/template/modal/styles.selectors.js +32 -32
- package/lib/internal/template/popover/styles.css.js +58 -58
- package/lib/internal/template/popover/styles.scoped.css +94 -94
- package/lib/internal/template/popover/styles.selectors.js +58 -58
- package/lib/internal/template/progress-bar/styles.css.js +20 -20
- package/lib/internal/template/progress-bar/styles.scoped.css +59 -59
- package/lib/internal/template/progress-bar/styles.selectors.js +20 -20
- package/lib/internal/template/prompt-input/components/token-mode.d.ts +4 -1
- package/lib/internal/template/prompt-input/components/token-mode.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/components/token-mode.js +2 -2
- package/lib/internal/template/prompt-input/components/token-mode.js.map +1 -1
- package/lib/internal/template/prompt-input/internal.d.ts +8 -0
- package/lib/internal/template/prompt-input/internal.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/internal.js +35 -26
- package/lib/internal/template/prompt-input/internal.js.map +1 -1
- package/lib/internal/template/prompt-input/styles.css.js +26 -26
- package/lib/internal/template/prompt-input/styles.scoped.css +136 -107
- package/lib/internal/template/prompt-input/styles.selectors.js +26 -26
- package/lib/internal/template/prompt-input/tokens/use-token-mode.d.ts +4 -0
- package/lib/internal/template/prompt-input/tokens/use-token-mode.d.ts.map +1 -1
- package/lib/internal/template/prompt-input/tokens/use-token-mode.js +3 -3
- package/lib/internal/template/prompt-input/tokens/use-token-mode.js.map +1 -1
- package/lib/internal/template/property-filter/interfaces.d.ts +2 -0
- package/lib/internal/template/property-filter/interfaces.d.ts.map +1 -1
- package/lib/internal/template/property-filter/interfaces.js.map +1 -1
- package/lib/internal/template/property-filter/token-editor-inputs.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token-editor-inputs.js +3 -3
- package/lib/internal/template/property-filter/token-editor-inputs.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +31 -31
- package/lib/internal/template/segmented-control/styles.scoped.css +81 -81
- package/lib/internal/template/segmented-control/styles.selectors.js +31 -31
- package/lib/internal/template/select/parts/styles.css.js +22 -22
- package/lib/internal/template/select/parts/styles.scoped.css +25 -25
- package/lib/internal/template/select/parts/styles.selectors.js +22 -22
- package/lib/internal/template/side-navigation/styles.css.js +65 -65
- package/lib/internal/template/side-navigation/styles.scoped.css +114 -114
- package/lib/internal/template/side-navigation/styles.selectors.js +65 -65
- package/lib/internal/template/slider/styles.css.js +26 -26
- package/lib/internal/template/slider/styles.scoped.css +167 -167
- package/lib/internal/template/slider/styles.selectors.js +26 -26
- package/lib/internal/template/spinner/styles.css.js +14 -14
- package/lib/internal/template/spinner/styles.scoped.css +40 -40
- package/lib/internal/template/spinner/styles.selectors.js +14 -14
- package/lib/internal/template/styling/prompt-input.scss +76 -0
- package/lib/internal/template/styling/table.scss +102 -0
- package/lib/internal/template/styling/tabs.scss +128 -0
- package/lib/internal/template/table/body-cell/styles.css.js +47 -47
- package/lib/internal/template/table/body-cell/styles.scoped.css +426 -418
- package/lib/internal/template/table/body-cell/styles.selectors.js +47 -47
- package/lib/internal/template/table/body-cell/td-element.d.ts +1 -0
- 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/clear-sort.d.ts +2 -1
- package/lib/internal/template/table/clear-sort.d.ts.map +1 -1
- package/lib/internal/template/table/clear-sort.js +2 -2
- package/lib/internal/template/table/clear-sort.js.map +1 -1
- package/lib/internal/template/table/header-cell/common-props.d.ts +2 -0
- package/lib/internal/template/table/header-cell/common-props.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/common-props.js.map +1 -1
- package/lib/internal/template/table/header-cell/group-header-cell.d.ts +1 -1
- package/lib/internal/template/table/header-cell/group-header-cell.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/group-header-cell.js +3 -2
- package/lib/internal/template/table/header-cell/group-header-cell.js.map +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +12 -5
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/sort-menu.d.ts +3 -1
- package/lib/internal/template/table/header-cell/sort-menu.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/sort-menu.js +2 -2
- package/lib/internal/template/table/header-cell/sort-menu.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +39 -39
- package/lib/internal/template/table/header-cell/styles.scoped.css +140 -125
- package/lib/internal/template/table/header-cell/styles.selectors.js +39 -39
- package/lib/internal/template/table/header-cell/th-element.d.ts +2 -1
- package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/th-element.js +2 -2
- package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +20 -7
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/resizer/index.d.ts.map +1 -1
- package/lib/internal/template/table/resizer/index.js +1 -1
- package/lib/internal/template/table/resizer/index.js.map +1 -1
- package/lib/internal/template/table/resizer/styles.css.js +17 -17
- package/lib/internal/template/table/resizer/styles.scoped.css +39 -35
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -17
- package/lib/internal/template/table/selection/selection-cell.d.ts +5 -2
- package/lib/internal/template/table/selection/selection-cell.d.ts.map +1 -1
- package/lib/internal/template/table/selection/selection-cell.js +6 -5
- package/lib/internal/template/table/selection/selection-cell.js.map +1 -1
- package/lib/internal/template/table/selection/selection-control.d.ts +3 -1
- package/lib/internal/template/table/selection/selection-control.d.ts.map +1 -1
- package/lib/internal/template/table/selection/selection-control.js +2 -2
- package/lib/internal/template/table/selection/selection-control.js.map +1 -1
- package/lib/internal/template/table/style-api.d.ts +42 -0
- package/lib/internal/template/table/style-api.d.ts.map +1 -0
- package/lib/internal/template/table/style-api.js +4 -0
- package/lib/internal/template/table/style-api.js.map +1 -0
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +119 -46
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/table/thead.d.ts +2 -0
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +2 -1
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/tabs/index.d.ts.map +1 -1
- package/lib/internal/template/tabs/index.js +3 -2
- package/lib/internal/template/tabs/index.js.map +1 -1
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +137 -81
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/tabs/tab-header-bar.d.ts +11 -1
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +14 -7
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +66 -66
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +9 -9
- package/lib/internal/template/textarea/styles.scoped.css +51 -51
- package/lib/internal/template/textarea/styles.selectors.js +9 -9
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +25 -25
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +57 -57
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/package.json +1 -1
|
@@ -8,10 +8,18 @@
|
|
|
8
8
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
9
9
|
@use '../cell-base/cell-box' as cell-base;
|
|
10
10
|
@use '../sticky-columns/sticky-boundary' as sticky-boundary;
|
|
11
|
+
@use '../../internal/styles/style-api' as style-api;
|
|
12
|
+
@use '../style-api' as table-style-api;
|
|
11
13
|
|
|
12
14
|
$cell-horizontal-padding-w-border: calc(#{cell-base.$cell-edge-horizontal-padding} + #{awsui.$border-item-width});
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
+
$row-divider-color: table-style-api.row(divider-color, awsui.$color-border-divider-secondary);
|
|
16
|
+
$striped-background: table-style-api.cell-background(awsui.$color-background-cell-shaded);
|
|
17
|
+
$selected-background: table-style-api.cell-background(awsui.$color-background-item-selected);
|
|
18
|
+
$selected-border: awsui.$border-width-item-selected solid
|
|
19
|
+
table-style-api.root(selected-row-outline-color, awsui.$color-border-item-selected);
|
|
20
|
+
$selected-radius: table-style-api.root(selected-row-outline-radius, awsui.$border-radius-item);
|
|
21
|
+
$selected-border-placeholder: awsui.$border-divider-list-width solid
|
|
22
|
+
table-style-api.root(selected-row-outline-color, awsui.$color-border-item-placeholder);
|
|
15
23
|
$icon-width-with-spacing: calc(#{awsui.$size-icon-normal} + #{awsui.$space-xs});
|
|
16
24
|
// Right paddings of the absolute positioned icons (success icon is shown next to the edit icon)
|
|
17
25
|
$edit-button-padding-right: calc(#{awsui.$space-xs} + #{awsui.$space-xxs});
|
|
@@ -22,7 +30,7 @@ $editing-cell-padding-inline: awsui.$space-xxs;
|
|
|
22
30
|
$editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
23
31
|
|
|
24
32
|
@mixin safe-focus-highlight($params) {
|
|
25
|
-
@include
|
|
33
|
+
@include table-style-api.focus-highlight(table-style-api.$cell-focus-ring-tokens, $params);
|
|
26
34
|
|
|
27
35
|
// @mixin focus-highlight sets cell's position to "relative".
|
|
28
36
|
// Reinforcing sticky position for it to take precedence.
|
|
@@ -62,9 +70,11 @@ $editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
.body-cell {
|
|
73
|
+
@include style-api.carriers(table-style-api.$cell-focus-ring-tokens);
|
|
65
74
|
box-sizing: border-box;
|
|
66
75
|
border-block-start: awsui.$border-divider-list-width solid transparent;
|
|
67
|
-
border-block-end: awsui.$border-divider-list-width solid
|
|
76
|
+
border-block-end: awsui.$border-divider-list-width solid $row-divider-color;
|
|
77
|
+
background-color: table-style-api.cell-background(transparent);
|
|
68
78
|
word-wrap: break-word;
|
|
69
79
|
font-weight: inherit;
|
|
70
80
|
text-align: start;
|
|
@@ -155,13 +165,13 @@ $editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
|
155
165
|
border-block-end: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
|
|
156
166
|
}
|
|
157
167
|
&-shaded {
|
|
158
|
-
background:
|
|
168
|
+
background: $striped-background;
|
|
159
169
|
}
|
|
160
170
|
tr:not(:last-child) > &.has-striped-rows:not(.body-cell-selected) {
|
|
161
|
-
border-block-end-color: awsui.$color-border-cell-shaded;
|
|
171
|
+
border-block-end-color: table-style-api.row(divider-color, awsui.$color-border-cell-shaded);
|
|
162
172
|
}
|
|
163
173
|
&-selected {
|
|
164
|
-
background-color:
|
|
174
|
+
background-color: $selected-background;
|
|
165
175
|
border-block-start: $selected-border;
|
|
166
176
|
border-block-end: $selected-border;
|
|
167
177
|
@include cell-base.cell-padding-block-end(cell-base.$cell-vertical-padding);
|
|
@@ -179,23 +189,23 @@ $editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
|
179
189
|
|
|
180
190
|
&:first-child {
|
|
181
191
|
border-inline-start: $selected-border;
|
|
182
|
-
border-start-start-radius:
|
|
192
|
+
border-start-start-radius: $selected-radius;
|
|
183
193
|
border-start-end-radius: 0;
|
|
184
|
-
border-end-start-radius:
|
|
194
|
+
border-end-start-radius: $selected-radius;
|
|
185
195
|
border-end-end-radius: 0;
|
|
186
196
|
}
|
|
187
197
|
&:last-child {
|
|
188
198
|
border-inline-end: $selected-border;
|
|
189
199
|
border-start-start-radius: 0;
|
|
190
|
-
border-start-end-radius:
|
|
200
|
+
border-start-end-radius: $selected-radius;
|
|
191
201
|
border-end-start-radius: 0;
|
|
192
|
-
border-end-end-radius:
|
|
202
|
+
border-end-end-radius: $selected-radius;
|
|
193
203
|
}
|
|
194
204
|
}
|
|
195
205
|
|
|
196
206
|
&.sticky-cell {
|
|
197
207
|
position: sticky;
|
|
198
|
-
background: awsui.$color-background-container-content;
|
|
208
|
+
background: table-style-api.cell-background(awsui.$color-background-container-content);
|
|
199
209
|
z-index: 798; // Our sticky elements should have z-index in the range of 800-850, this value needs to be lower
|
|
200
210
|
@include styles.with-motion {
|
|
201
211
|
transition-property: padding;
|
|
@@ -203,13 +213,13 @@ $editing-cell-padding-block: awsui.$space-scaled-xxxs;
|
|
|
203
213
|
transition-timing-function: awsui.$motion-easing-sticky;
|
|
204
214
|
}
|
|
205
215
|
&.table-variant-full-page {
|
|
206
|
-
background: awsui.$color-background-layout-main;
|
|
216
|
+
background: table-style-api.cell-background(awsui.$color-background-layout-main);
|
|
207
217
|
}
|
|
208
218
|
&.body-cell-shaded {
|
|
209
|
-
background:
|
|
219
|
+
background: $striped-background;
|
|
210
220
|
}
|
|
211
221
|
&.body-cell-selected {
|
|
212
|
-
background-color:
|
|
222
|
+
background-color: $selected-background;
|
|
213
223
|
|
|
214
224
|
// Create a background using box-shadow and clip path to hide underlying elements
|
|
215
225
|
&:first-child {
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
@use '../../internal/styles' as styles;
|
|
9
9
|
@use '../cell-base/cell-box' as cell-base;
|
|
10
10
|
@use '../sticky-columns/sticky-boundary' as sticky-boundary;
|
|
11
|
+
@use '../../internal/styles/style-api' as style-api;
|
|
12
|
+
@use '../style-api' as table-style-api;
|
|
13
|
+
|
|
14
|
+
$border-color: table-style-api.header-cell(border-color, awsui.$color-border-divider-default);
|
|
15
|
+
$group-border-color: table-style-api.header-cell(border-color, awsui.$color-border-divider-table-group);
|
|
16
|
+
$group-divider-color: table-style-api.header-cell(divider-color, awsui.$color-border-divider-table-group);
|
|
11
17
|
|
|
12
18
|
@mixin when-focus-visible-or-fake {
|
|
13
19
|
@include focus-visible.when-visible {
|
|
@@ -22,14 +28,15 @@
|
|
|
22
28
|
|
|
23
29
|
@mixin header-cell-focus-outline($gutter) {
|
|
24
30
|
@include when-focus-visible-or-fake {
|
|
25
|
-
@include
|
|
31
|
+
@include table-style-api.focus-highlight(table-style-api.$header-cell-tokens, calc(-1 * #{$gutter}));
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
@mixin header-cell-focus-outline-first($gutter) {
|
|
30
36
|
@include when-focus-visible-or-fake {
|
|
31
37
|
// Give extra space on the left (inline start) to compensate for missing header cell padding.
|
|
32
|
-
@include
|
|
38
|
+
@include table-style-api.focus-highlight(
|
|
39
|
+
table-style-api.$header-cell-tokens,
|
|
33
40
|
(
|
|
34
41
|
'vertical': calc(-1 * #{$gutter}),
|
|
35
42
|
'horizontal': (
|
|
@@ -50,10 +57,11 @@
|
|
|
50
57
|
}
|
|
51
58
|
|
|
52
59
|
.header-cell {
|
|
60
|
+
@include style-api.carriers(table-style-api.$header-cell-tokens);
|
|
53
61
|
position: relative;
|
|
54
62
|
text-align: start;
|
|
55
63
|
box-sizing: border-box;
|
|
56
|
-
border-block-end: awsui.$border-divider-list-width solid
|
|
64
|
+
border-block-end: awsui.$border-divider-list-width solid $border-color;
|
|
57
65
|
background: awsui.$color-background-table-header;
|
|
58
66
|
color: awsui.$color-text-column-header;
|
|
59
67
|
font-weight: awsui.$font-weight-heading-s;
|
|
@@ -68,20 +76,20 @@
|
|
|
68
76
|
&.header-cell-spans-rows {
|
|
69
77
|
padding-block: awsui.$space-xxxs;
|
|
70
78
|
padding-inline: awsui.$space-scaled-xs;
|
|
71
|
-
border-block-end-color:
|
|
79
|
+
border-block-end-color: $group-border-color;
|
|
72
80
|
|
|
73
81
|
> .resize-divider.resize-divider {
|
|
74
|
-
border-inline-start-color:
|
|
82
|
+
border-inline-start-color: $group-divider-color;
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
85
|
|
|
78
86
|
&-sticky {
|
|
79
|
-
border-block-end: awsui.$border-table-sticky-width solid
|
|
87
|
+
border-block-end: awsui.$border-table-sticky-width solid $border-color;
|
|
80
88
|
|
|
81
89
|
&.header-cell-group,
|
|
82
90
|
&.header-cell-grouped,
|
|
83
91
|
&.header-cell-spans-rows {
|
|
84
|
-
border-block-end-color:
|
|
92
|
+
border-block-end-color: $group-border-color;
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
95
|
&-stuck:not(.header-cell-variant-full-page) {
|
|
@@ -248,8 +256,14 @@
|
|
|
248
256
|
|
|
249
257
|
.header-cell-sortable:not(.header-cell-disabled) {
|
|
250
258
|
cursor: pointer;
|
|
251
|
-
|
|
252
|
-
&.header-cell-sorted
|
|
259
|
+
// The sorted color is set on the cell so that a `headerCell` color applies to sorted cells too.
|
|
260
|
+
&.header-cell-sorted {
|
|
261
|
+
color: awsui.$color-text-interactive-active;
|
|
262
|
+
& > .header-cell-main > .header-cell-content > .sorting-icon {
|
|
263
|
+
color: awsui.$color-text-interactive-active;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
& > .header-cell-main > .header-cell-content:hover {
|
|
253
267
|
color: awsui.$color-text-interactive-active;
|
|
254
268
|
& > .sorting-icon {
|
|
255
269
|
color: awsui.$color-text-interactive-active;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use '../../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '../cell-base/cell-box' as cell-base;
|
|
9
9
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
10
|
+
@use '../style-api' as table-style-api;
|
|
10
11
|
|
|
11
12
|
//stylelint-disable-next-line selector-combinator-disallowed-list,selector-max-universal
|
|
12
13
|
.resize-active:not(.resize-active-with-focus) * {
|
|
@@ -43,15 +44,17 @@ th:not([data-rightmost]) > .divider,
|
|
|
43
44
|
max-block-size: calc(100% - #{$block-gap});
|
|
44
45
|
margin-block: auto;
|
|
45
46
|
margin-inline: auto;
|
|
46
|
-
border-inline-start: awsui.$border-divider-list-width solid
|
|
47
|
+
border-inline-start: awsui.$border-divider-list-width solid
|
|
48
|
+
table-style-api.header-cell(divider-color, awsui.$color-border-divider-default);
|
|
47
49
|
box-sizing: border-box;
|
|
48
50
|
|
|
49
51
|
&.divider-interactive {
|
|
50
|
-
border-inline-start: awsui.$border-divider-list-width solid
|
|
52
|
+
border-inline-start: awsui.$border-divider-list-width solid
|
|
53
|
+
table-style-api.header-cell(divider-color, awsui.$color-border-divider-interactive-default);
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
&.divider-grouped {
|
|
54
|
-
border-inline-start-color: awsui.$color-border-divider-table-group;
|
|
57
|
+
border-inline-start-color: table-style-api.header-cell(divider-color, awsui.$color-border-divider-table-group);
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
// Position variants for grouped column headers.
|
|
@@ -86,10 +89,9 @@ th:not([data-rightmost]) > .divider,
|
|
|
86
89
|
inset-inline-end: 0;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
92
|
+
// The divider is nested inside the drag handle wrapper, so a wrapper child selector can't reach it.
|
|
93
|
+
.divider-interactive.divider-edge {
|
|
94
|
+
inset-inline-end: 0;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
.resizer {
|
|
@@ -111,7 +113,10 @@ th:not([data-rightmost]) > .divider,
|
|
|
111
113
|
}
|
|
112
114
|
&.has-focus {
|
|
113
115
|
@include focus-visible.when-visible-unfocused {
|
|
114
|
-
@include
|
|
116
|
+
@include table-style-api.focus-highlight(
|
|
117
|
+
table-style-api.$header-cell-tokens,
|
|
118
|
+
calc(#{awsui.$space-table-header-focus-outline-gutter} - 2px)
|
|
119
|
+
);
|
|
115
120
|
}
|
|
116
121
|
}
|
|
117
122
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
@use '../internal/styles' as styles;
|
|
5
|
+
@use '../internal/styles/tokens' as awsui;
|
|
6
|
+
@use '../internal/styles/foundation' as foundation;
|
|
7
|
+
@use '../internal/styles/style-api' as style-api;
|
|
8
|
+
|
|
9
|
+
// The outline of selected rows is painted by the cells of adjacent rows, so it is table-wide. The sticky
|
|
10
|
+
// header shadow is painted by the container header that wraps the table header.
|
|
11
|
+
$root-tokens: style-api.resolve(
|
|
12
|
+
(selected-row-outline-color, selected-row-outline-radius, sticky-header-shadow),
|
|
13
|
+
carrier
|
|
14
|
+
);
|
|
15
|
+
// Read by the header cell, its resizer and its focus ring.
|
|
16
|
+
$header-cell-tokens: style-api.resolve(
|
|
17
|
+
style-api.combine((border-color, divider-color), style-api.$focus-ring),
|
|
18
|
+
carrier
|
|
19
|
+
);
|
|
20
|
+
// Read by every cell of the row, including sticky cells.
|
|
21
|
+
$row-tokens: style-api.resolve((background-color, divider-color), carrier);
|
|
22
|
+
// Read on the cell itself: a cell carrier would share its name with the row carrier and hide the row value.
|
|
23
|
+
$cell-tokens: style-api.resolve((background-color), public);
|
|
24
|
+
// The focus ring is drawn by the cell's ::before, which only receives inherited values.
|
|
25
|
+
$cell-focus-ring-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
26
|
+
|
|
27
|
+
@function root($token, $fallback) {
|
|
28
|
+
@return style-api.value($root-tokens, $token, $fallback);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@function header-cell($token, $fallback) {
|
|
32
|
+
@return style-api.value($header-cell-tokens, $token, $fallback);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@function row($token, $fallback) {
|
|
36
|
+
@return style-api.value($row-tokens, $token, $fallback);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// The cell background, then the row background, then the state default.
|
|
40
|
+
@function cell-background($fallback) {
|
|
41
|
+
@return style-api.value($cell-tokens, background-color, row(background-color, $fallback));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The keyboard navigation focus ring of a cell or header cell, read from that cell's carriers.
|
|
45
|
+
@mixin focus-highlight($tokens, $gutter) {
|
|
46
|
+
@include styles.focus-highlight(
|
|
47
|
+
$gutter,
|
|
48
|
+
$border-radius: style-api.value($tokens, focus-ring-radius, awsui.$border-radius-control-default-focus-ring),
|
|
49
|
+
$box-shadow: 0 0 0 style-api.value($tokens, focus-ring-width, foundation.$box-shadow-focused-width)
|
|
50
|
+
style-api.value($tokens, focus-ring-color, awsui.$color-border-item-focused)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use 'sass:map';
|
|
6
7
|
@use '../internal/styles/index' as styles;
|
|
7
8
|
@use '../internal/styles/tokens' as awsui;
|
|
8
9
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
@@ -10,8 +11,84 @@
|
|
|
10
11
|
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
11
12
|
@use '../internal/styles/typography/constants.scss' as constants;
|
|
12
13
|
@use '../internal/components/sticky-header/mixins' as sticky-header;
|
|
14
|
+
@use '../internal/styles/style-api' as style-api;
|
|
15
|
+
@use './style-api' as table-style-api;
|
|
16
|
+
|
|
17
|
+
@include style-api.register(
|
|
18
|
+
table-style-api.$root-tokens,
|
|
19
|
+
table-style-api.$header-cell-tokens,
|
|
20
|
+
table-style-api.$row-tokens,
|
|
21
|
+
table-style-api.$cell-tokens,
|
|
22
|
+
table-style-api.$cell-focus-ring-tokens
|
|
23
|
+
);
|
|
24
|
+
@include style-api.docs(
|
|
25
|
+
'root',
|
|
26
|
+
table-style-api.$root-tokens,
|
|
27
|
+
$descriptions: (
|
|
28
|
+
tokens: (
|
|
29
|
+
selected-row-outline-color: 'Line around selected rows, including between consecutive selected rows.',
|
|
30
|
+
selected-row-outline-radius: 'Corner radius of the outline around selected rows.',
|
|
31
|
+
sticky-header-shadow:
|
|
32
|
+
'Shadow below the header while it is stuck. Its first layer draws the line below the header.',
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
@include style-api.docs(
|
|
37
|
+
'headerCell',
|
|
38
|
+
table-style-api.$header-cell-tokens,
|
|
39
|
+
$properties: (background, color, font-family, font-size, font-weight, letter-spacing),
|
|
40
|
+
$descriptions: (
|
|
41
|
+
slot: 'Column, column group and selection header cells.',
|
|
42
|
+
tokens: (
|
|
43
|
+
border-color: 'Line below the cell.',
|
|
44
|
+
divider-color: 'Line at the inline end of the cell, except while resizing.',
|
|
45
|
+
focus-ring-color: 'Keyboard navigation focus ring of the cell and its resize handle.',
|
|
46
|
+
)
|
|
47
|
+
)
|
|
48
|
+
);
|
|
49
|
+
@include style-api.docs(
|
|
50
|
+
'sortingButton',
|
|
51
|
+
$properties: (color),
|
|
52
|
+
$descriptions: (
|
|
53
|
+
slot:
|
|
54
|
+
'Sort button of sortable column header cells. Inherits the header cell color; use `:hover` for the interaction state.'
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
@include style-api.docs(
|
|
58
|
+
'sortingIndicator',
|
|
59
|
+
$properties: (color),
|
|
60
|
+
$descriptions: (slot: 'Sorting indicator of column header cells, including the multi-column sort priority.')
|
|
61
|
+
);
|
|
62
|
+
@include style-api.docs-forward('sortingMenu', 'button-dropdown');
|
|
63
|
+
@include style-api.docs-forward('clearSortButton', 'button', 'root');
|
|
64
|
+
@include style-api.docs(
|
|
65
|
+
'row',
|
|
66
|
+
table-style-api.$row-tokens,
|
|
67
|
+
$descriptions: (
|
|
68
|
+
tokens: (
|
|
69
|
+
background-color: 'Background of every cell in the row, including sticky cells.',
|
|
70
|
+
divider-color: 'Line below the row.',
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
);
|
|
74
|
+
@include style-api.docs(
|
|
75
|
+
'cell',
|
|
76
|
+
map.merge(table-style-api.$cell-tokens, table-style-api.$cell-focus-ring-tokens),
|
|
77
|
+
$descriptions: (
|
|
78
|
+
slot: 'Body cells, including selection cells.',
|
|
79
|
+
tokens: (
|
|
80
|
+
focus-ring-color: 'Keyboard navigation focus ring. Focusable cell content keeps its own focus ring.',
|
|
81
|
+
)
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
@include style-api.docs-forward('selectionCheckbox', 'checkbox');
|
|
85
|
+
@include style-api.docs-forward('selectionRadio', 'radio-button');
|
|
13
86
|
|
|
14
87
|
.root {
|
|
88
|
+
@include style-api.carriers(table-style-api.$root-tokens);
|
|
89
|
+
@if style-api.enabled() {
|
|
90
|
+
#{custom-props.$tableStickyHeaderShadow}: table-style-api.root(sticky-header-shadow, awsui.$shadow-sticky-embedded);
|
|
91
|
+
}
|
|
15
92
|
@include styles.default-text-style;
|
|
16
93
|
inline-size: 100%;
|
|
17
94
|
}
|
|
@@ -71,6 +148,8 @@
|
|
|
71
148
|
}
|
|
72
149
|
|
|
73
150
|
.wrapper {
|
|
151
|
+
// Keeps the sticky header shadow from reaching containers rendered inside cells.
|
|
152
|
+
#{custom-props.$tableStickyHeaderShadow}: initial;
|
|
74
153
|
position: relative;
|
|
75
154
|
box-sizing: border-box;
|
|
76
155
|
inline-size: 100%;
|
|
@@ -238,6 +317,10 @@ filter search icon.
|
|
|
238
317
|
}
|
|
239
318
|
}
|
|
240
319
|
|
|
320
|
+
.row {
|
|
321
|
+
@include style-api.carriers(table-style-api.$row-tokens);
|
|
322
|
+
}
|
|
323
|
+
|
|
241
324
|
.thead-active,
|
|
242
325
|
.row,
|
|
243
326
|
.row-selected {
|
|
@@ -6,6 +6,7 @@
|
|
|
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 '../internal/styles/style-api' as style-api;
|
|
9
10
|
|
|
10
11
|
@use './tab-header-bar';
|
|
11
12
|
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.tabs-content {
|
|
24
|
+
@include style-api.carriers(tab-header-bar.$content-tokens);
|
|
23
25
|
display: none;
|
|
24
26
|
}
|
|
25
27
|
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
display: block;
|
|
34
36
|
flex: 1;
|
|
35
37
|
@include focus-visible.when-visible {
|
|
36
|
-
@include
|
|
38
|
+
@include style-api.container-focus();
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -7,11 +7,64 @@
|
|
|
7
7
|
@use '../internal/styles//foundation' as foundation;
|
|
8
8
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
9
9
|
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
10
|
+
@use '../internal/styles/style-api' as style-api;
|
|
10
11
|
|
|
11
12
|
$separator-color: awsui.$color-border-tabs-divider;
|
|
12
13
|
$label-horizontal-spacing: awsui.$space-xs;
|
|
13
14
|
|
|
15
|
+
// Style API v2
|
|
16
|
+
$header-tokens: style-api.resolve((divider-color, divider-width), carrier);
|
|
17
|
+
$tab-tokens: style-api.resolve(
|
|
18
|
+
(active-indicator-color, active-indicator-width, active-indicator-border-radius),
|
|
19
|
+
public
|
|
20
|
+
);
|
|
21
|
+
$link-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
22
|
+
$content-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
23
|
+
@include style-api.register($header-tokens, $tab-tokens, $link-tokens, $content-tokens);
|
|
24
|
+
@include style-api.docs(
|
|
25
|
+
'tabsHeader',
|
|
26
|
+
$header-tokens,
|
|
27
|
+
$properties: (border),
|
|
28
|
+
$descriptions: (
|
|
29
|
+
slot:
|
|
30
|
+
'The bar with all tabs, the scroll buttons and `actions`. The block-end border is the divider between the tabs and the content.',
|
|
31
|
+
tokens: (
|
|
32
|
+
divider-color: 'The line between two tabs.',
|
|
33
|
+
)
|
|
34
|
+
)
|
|
35
|
+
);
|
|
36
|
+
@include style-api.docs(
|
|
37
|
+
'tab',
|
|
38
|
+
$tab-tokens,
|
|
39
|
+
$properties: (background, border, border-radius),
|
|
40
|
+
$descriptions: (
|
|
41
|
+
slot:
|
|
42
|
+
'One tab: the box around the link, the `action` and the dismiss button, and the underline of the active tab. Accepts a class name or a function of the tab returning one. Pass a different class for `disabled`, and for the active tab when you control `activeTabId`.',
|
|
43
|
+
tokens: (
|
|
44
|
+
active-indicator-color: 'The underline of the active tab.',
|
|
45
|
+
active-indicator-width: 'Thickness of the underline.',
|
|
46
|
+
active-indicator-border-radius: 'Corner radius of the underline, one length.',
|
|
47
|
+
)
|
|
48
|
+
)
|
|
49
|
+
);
|
|
50
|
+
@include style-api.docs(
|
|
51
|
+
'tabLink',
|
|
52
|
+
$link-tokens,
|
|
53
|
+
$properties: (color, padding, font-family, font-size, font-weight),
|
|
54
|
+
$descriptions: (
|
|
55
|
+
slot:
|
|
56
|
+
"The clickable element of a tab, a `button` or an `a` with `href`: its text, padding and focus ring. Use `:hover` for the interaction state; style the link of an active or disabled tab through that tab's class, for example `.my-active-tab .my-link`."
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
@include style-api.docs(
|
|
60
|
+
'content',
|
|
61
|
+
$content-tokens,
|
|
62
|
+
$descriptions: (slot: 'The panel of each tab. The focus ring shows on the active panel on keyboard focus.')
|
|
63
|
+
);
|
|
64
|
+
@include style-api.docs-forward('dismissButton', 'button', 'root');
|
|
65
|
+
|
|
14
66
|
.tabs-header {
|
|
67
|
+
@include style-api.carriers($header-tokens);
|
|
15
68
|
margin-block: 0;
|
|
16
69
|
margin-inline: 0;
|
|
17
70
|
padding-block: 0;
|
|
@@ -133,24 +186,39 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
133
186
|
inset-inline-start: 0;
|
|
134
187
|
inline-size: calc(100% - 1px);
|
|
135
188
|
inset-block-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
136
|
-
block-size:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
awsui.$border-
|
|
189
|
+
block-size: style-api.value(
|
|
190
|
+
$tab-tokens,
|
|
191
|
+
active-indicator-width,
|
|
192
|
+
var(#{custom-props.$styleTabsActiveIndicatorWidth}, awsui.$border-active-width)
|
|
193
|
+
);
|
|
194
|
+
--awsui-style-active-indicator-color: inherit;
|
|
195
|
+
--awsui-style-active-indicator-width: inherit;
|
|
196
|
+
--awsui-style-active-indicator-border-radius: inherit;
|
|
197
|
+
border-start-start-radius: style-api.value(
|
|
198
|
+
$tab-tokens,
|
|
199
|
+
active-indicator-border-radius,
|
|
200
|
+
var(#{custom-props.$styleTabsActiveIndicatorBorderRadius}, awsui.$border-radius-tabs-focus-ring)
|
|
201
|
+
);
|
|
202
|
+
border-start-end-radius: style-api.value(
|
|
203
|
+
$tab-tokens,
|
|
204
|
+
active-indicator-border-radius,
|
|
205
|
+
var(#{custom-props.$styleTabsActiveIndicatorBorderRadius}, awsui.$border-radius-tabs-focus-ring)
|
|
140
206
|
);
|
|
141
|
-
border-start-
|
|
142
|
-
|
|
143
|
-
|
|
207
|
+
border-end-start-radius: style-api.value(
|
|
208
|
+
$tab-tokens,
|
|
209
|
+
active-indicator-border-radius,
|
|
210
|
+
var(#{custom-props.$styleTabsActiveIndicatorBorderRadius}, awsui.$border-radius-tabs-focus-ring)
|
|
144
211
|
);
|
|
145
|
-
border-end-
|
|
146
|
-
|
|
147
|
-
|
|
212
|
+
border-end-end-radius: style-api.value(
|
|
213
|
+
$tab-tokens,
|
|
214
|
+
active-indicator-border-radius,
|
|
215
|
+
var(#{custom-props.$styleTabsActiveIndicatorBorderRadius}, awsui.$border-radius-tabs-focus-ring)
|
|
148
216
|
);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
217
|
+
background: style-api.value(
|
|
218
|
+
$tab-tokens,
|
|
219
|
+
active-indicator-color,
|
|
220
|
+
var(#{custom-props.$styleTabsActiveIndicatorColor}, awsui.$color-border-tabs-underline)
|
|
152
221
|
);
|
|
153
|
-
background: var(#{custom-props.$styleTabsActiveIndicatorColor}, awsui.$color-border-tabs-underline);
|
|
154
222
|
opacity: 0;
|
|
155
223
|
}
|
|
156
224
|
|
|
@@ -170,8 +238,13 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
170
238
|
&:before {
|
|
171
239
|
content: '';
|
|
172
240
|
position: absolute;
|
|
173
|
-
border-inline-end:
|
|
174
|
-
|
|
241
|
+
border-inline-end: style-api.value(
|
|
242
|
+
$header-tokens,
|
|
243
|
+
divider-width,
|
|
244
|
+
var(#{custom-props.$styleTabsSeparatorWidth}, awsui.$border-divider-section-width)
|
|
245
|
+
)
|
|
246
|
+
solid
|
|
247
|
+
style-api.value($header-tokens, divider-color, var(#{custom-props.$styleTabsSeparatorColor}, $separator-color));
|
|
175
248
|
inset: awsui.$space-scaled-s 0;
|
|
176
249
|
opacity: 1;
|
|
177
250
|
}
|
|
@@ -183,6 +256,7 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
183
256
|
}
|
|
184
257
|
|
|
185
258
|
.tabs-tab-link {
|
|
259
|
+
@include style-api.carriers($link-tokens);
|
|
186
260
|
position: relative;
|
|
187
261
|
display: flex;
|
|
188
262
|
align-items: stretch;
|
|
@@ -231,12 +305,24 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
231
305
|
|
|
232
306
|
@include focus-visible.when-visible {
|
|
233
307
|
#{custom-props.$styleFocusRingBoxShadow}: 0 0 0
|
|
234
|
-
|
|
235
|
-
|
|
308
|
+
style-api.value(
|
|
309
|
+
$link-tokens,
|
|
310
|
+
focus-ring-width,
|
|
311
|
+
var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width)
|
|
312
|
+
)
|
|
313
|
+
style-api.value(
|
|
314
|
+
$link-tokens,
|
|
315
|
+
focus-ring-color,
|
|
316
|
+
var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-item-focused)
|
|
317
|
+
);
|
|
236
318
|
|
|
237
319
|
@include styles.focus-highlight(
|
|
238
320
|
$gutter: awsui.$space-tabs-focus-outline-gutter,
|
|
239
|
-
$border-radius:
|
|
321
|
+
$border-radius: style-api.value(
|
|
322
|
+
$link-tokens,
|
|
323
|
+
focus-ring-radius,
|
|
324
|
+
var(#{custom-props.$styleFocusRingBorderRadius}, awsui.$border-radius-control-default-focus-ring)
|
|
325
|
+
),
|
|
240
326
|
$box-shadow: var(#{custom-props.$styleFocusRingBoxShadow}),
|
|
241
327
|
// Positions focus ring above the underline to prevent the bottom edge from being obscured.
|
|
242
328
|
// Previously used z-index on the button, but that hides the underline when the button has a background color.
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"alert": "
|
|
5
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
6
|
-
"root": "
|
|
7
|
-
"hidden": "
|
|
8
|
-
"alert-wrapper": "awsui_alert-
|
|
9
|
-
"initial-hidden": "awsui_initial-
|
|
10
|
-
"header": "
|
|
11
|
-
"header-replacement": "awsui_header-
|
|
12
|
-
"action": "
|
|
13
|
-
"action-slot": "awsui_action-
|
|
14
|
-
"action-button": "awsui_action-
|
|
15
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
16
|
-
"text": "
|
|
17
|
-
"icon": "
|
|
18
|
-
"message": "
|
|
19
|
-
"action-wrapped": "awsui_action-
|
|
20
|
-
"icon-size-medium": "awsui_icon-size-
|
|
21
|
-
"icon-size-big": "awsui_icon-size-
|
|
22
|
-
"icon-size-normal": "awsui_icon-size-
|
|
23
|
-
"content": "
|
|
24
|
-
"content-replacement": "awsui_content-
|
|
25
|
-
"dismiss": "
|
|
26
|
-
"dismiss-button": "awsui_dismiss-
|
|
27
|
-
"type-error": "awsui_type-
|
|
28
|
-
"type-warning": "awsui_type-
|
|
29
|
-
"type-success": "awsui_type-
|
|
30
|
-
"type-info": "awsui_type-
|
|
4
|
+
"alert": "awsui_alert_mx3cw_1w5kd_13",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_1w5kd_1",
|
|
6
|
+
"root": "awsui_root_mx3cw_1w5kd_48",
|
|
7
|
+
"hidden": "awsui_hidden_mx3cw_1w5kd_83",
|
|
8
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_1w5kd_139",
|
|
9
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_1w5kd_151",
|
|
10
|
+
"header": "awsui_header_mx3cw_1w5kd_156",
|
|
11
|
+
"header-replacement": "awsui_header-replacement_mx3cw_1w5kd_157",
|
|
12
|
+
"action": "awsui_action_mx3cw_1w5kd_161",
|
|
13
|
+
"action-slot": "awsui_action-slot_mx3cw_1w5kd_165",
|
|
14
|
+
"action-button": "awsui_action-button_mx3cw_1w5kd_166",
|
|
15
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_1w5kd_170",
|
|
16
|
+
"text": "awsui_text_mx3cw_1w5kd_202",
|
|
17
|
+
"icon": "awsui_icon_mx3cw_1w5kd_209",
|
|
18
|
+
"message": "awsui_message_mx3cw_1w5kd_212",
|
|
19
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_1w5kd_216",
|
|
20
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_1w5kd_220",
|
|
21
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_1w5kd_224",
|
|
22
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_1w5kd_228",
|
|
23
|
+
"content": "awsui_content_mx3cw_1w5kd_232",
|
|
24
|
+
"content-replacement": "awsui_content-replacement_mx3cw_1w5kd_233",
|
|
25
|
+
"dismiss": "awsui_dismiss_mx3cw_1w5kd_237",
|
|
26
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_1w5kd_243",
|
|
27
|
+
"type-error": "awsui_type-error_mx3cw_1w5kd_247",
|
|
28
|
+
"type-warning": "awsui_type-warning_mx3cw_1w5kd_255",
|
|
29
|
+
"type-success": "awsui_type-success_mx3cw_1w5kd_263",
|
|
30
|
+
"type-info": "awsui_type-info_mx3cw_1w5kd_271"
|
|
31
31
|
};
|
|
32
32
|
|