@cloudscape-design/components-themeable 3.0.1400 → 3.0.1402
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/autosuggest/styles.scss +5 -0
- package/lib/internal/scss/button/styles.scss +3 -0
- package/lib/internal/scss/copy-to-clipboard/styles.scss +0 -41
- package/lib/internal/scss/flashbar/collapsible.scss +21 -11
- package/lib/internal/scss/flashbar/styles.scss +26 -8
- package/lib/internal/scss/icon/hover-motion.scss +21 -0
- package/lib/internal/scss/icon/styles.scss +2 -1
- package/lib/internal/scss/internal/components/option/styles.scss +8 -0
- package/lib/internal/scss/internal/components/radio-button/styles.scss +2 -0
- package/lib/internal/scss/internal/components/sticky-header/mixins.scss +11 -0
- package/lib/internal/scss/internal/components/sticky-scrollbar/mixins.scss +10 -0
- package/lib/internal/scss/{table → internal/components}/sticky-scrollbar/styles.scss +2 -2
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/multiselect/styles.scss +22 -0
- package/lib/internal/scss/radio-button/styles.scss +1 -2
- package/lib/internal/scss/radio-group/styles.scss +3 -0
- package/lib/internal/scss/segmented-control/segment.scss +29 -6
- package/lib/internal/scss/segmented-control/styles.scss +26 -4
- package/lib/internal/scss/select/parts/styles.scss +15 -2
- package/lib/internal/scss/select/styles.scss +20 -0
- package/lib/internal/scss/table/resizer/styles.scss +4 -4
- package/lib/internal/scss/table/styles.scss +2 -5
- package/lib/internal/scss/table-root/styles.scss +3 -0
- package/lib/internal/scss/tabs/styles.scss +0 -1
- package/lib/internal/scss/tabs/tab-header-bar.scss +20 -42
- package/lib/internal/scss/token/styles.scss +1 -0
- package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/index.js +1 -1
- package/lib/internal/template/autosuggest/index.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts +6 -0
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +2 -2
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/styles.css.js +3 -3
- package/lib/internal/template/autosuggest/styles.scoped.css +5 -3
- package/lib/internal/template/autosuggest/styles.selectors.js +3 -3
- package/lib/internal/template/button/styles.css.js +24 -24
- package/lib/internal/template/button/styles.scoped.css +83 -79
- package/lib/internal/template/button/styles.selectors.js +24 -24
- package/lib/internal/template/cards/index.js +1 -1
- package/lib/internal/template/cards/index.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts +3 -2
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +2 -2
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/use-sticky-header.d.ts +0 -8
- package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
- package/lib/internal/template/container/use-sticky-header.js +9 -92
- package/lib/internal/template/container/use-sticky-header.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +16 -50
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/styles.css.js +5 -10
- package/lib/internal/template/copy-to-clipboard/styles.scoped.css +6 -38
- package/lib/internal/template/copy-to-clipboard/styles.selectors.js +5 -10
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.js +10 -4
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/flash.d.ts +6 -0
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +6 -6
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts +11 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js +8 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +184 -161
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/icon/generated/icons.d.ts +4 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +14 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon/styles.css.js +44 -43
- package/lib/internal/template/icon/styles.scoped.css +109 -107
- package/lib/internal/template/icon/styles.selectors.js +44 -43
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/base-theme/styles.scoped.css +1 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +2 -2
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/index.js +2 -2
- package/lib/internal/template/internal/components/option/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +19 -18
- package/lib/internal/template/internal/components/option/styles.scoped.css +39 -33
- package/lib/internal/template/internal/components/option/styles.selectors.js +19 -18
- package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
- package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +36 -12
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/sortable-area/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/index.js +34 -4
- package/lib/internal/template/internal/components/sortable-area/index.js.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js.map +1 -1
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.d.ts +1 -6
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.js +2 -7
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts +2 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js +39 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts +8 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js +35 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts +14 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts.map +1 -0
- package/lib/internal/template/{table/use-sticky-header.js → internal/components/sticky-header/use-sticky-header-copy.js} +7 -8
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts +22 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js +57 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/index.js.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/sticky-scrollbar.d.ts +2 -1
- package/lib/internal/template/internal/components/sticky-scrollbar/sticky-scrollbar.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/sticky-scrollbar.js +8 -5
- package/lib/internal/template/internal/components/sticky-scrollbar/sticky-scrollbar.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/styles.css.js +11 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/styles.scoped.css +8 -8
- package/lib/internal/template/internal/components/sticky-scrollbar/styles.selectors.js +12 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.d.ts +10 -0
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components}/sticky-scrollbar/use-sticky-scrollbar.js +17 -16
- package/lib/internal/template/internal/components/sticky-scrollbar/use-sticky-scrollbar.js.map +1 -0
- 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 +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +4 -0
- package/lib/internal/template/internal/generated/theming/index.d.cts +9 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +9 -0
- package/lib/internal/template/internal/generated/theming/index.js +4 -0
- package/lib/internal/template/multiselect/index.d.ts.map +1 -1
- package/lib/internal/template/multiselect/index.js +1 -1
- package/lib/internal/template/multiselect/index.js.map +1 -1
- package/lib/internal/template/multiselect/internal.d.ts +12 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +9 -5
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/multiselect/styles.css.js +5 -5
- package/lib/internal/template/multiselect/styles.scoped.css +17 -5
- package/lib/internal/template/multiselect/styles.selectors.js +5 -5
- package/lib/internal/template/radio-button/styles.css.js +1 -1
- package/lib/internal/template/radio-button/styles.scoped.css +1 -25
- package/lib/internal/template/radio-button/styles.selectors.js +1 -1
- package/lib/internal/template/radio-group/internal.d.ts +7 -1
- package/lib/internal/template/radio-group/internal.d.ts.map +1 -1
- package/lib/internal/template/radio-group/internal.js +2 -2
- package/lib/internal/template/radio-group/internal.js.map +1 -1
- package/lib/internal/template/radio-group/styles.css.js +5 -5
- package/lib/internal/template/radio-group/styles.scoped.css +7 -6
- package/lib/internal/template/radio-group/styles.selectors.js +5 -5
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts +3 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.js +3 -3
- package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
- package/lib/internal/template/segmented-control/internal.d.ts +11 -2
- package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal.js +3 -2
- package/lib/internal/template/segmented-control/internal.js.map +1 -1
- package/lib/internal/template/segmented-control/segment.d.ts +2 -0
- package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/segment.js +4 -2
- package/lib/internal/template/segmented-control/segment.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +31 -31
- package/lib/internal/template/segmented-control/styles.scoped.css +119 -82
- package/lib/internal/template/segmented-control/styles.selectors.js +31 -31
- package/lib/internal/template/select/index.d.ts.map +1 -1
- package/lib/internal/template/select/index.js +1 -1
- package/lib/internal/template/select/index.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts +8 -0
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +4 -4
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/parts/styles.css.js +22 -21
- package/lib/internal/template/select/parts/styles.scoped.css +28 -24
- package/lib/internal/template/select/parts/styles.selectors.js +22 -21
- package/lib/internal/template/select/parts/trigger.d.ts +6 -0
- package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
- package/lib/internal/template/select/parts/trigger.js +4 -4
- package/lib/internal/template/select/parts/trigger.js.map +1 -1
- package/lib/internal/template/select/styles.css.js +3 -3
- package/lib/internal/template/select/styles.scoped.css +14 -3
- package/lib/internal/template/select/styles.selectors.js +3 -3
- package/lib/internal/template/styling/autosuggest.scss +1 -0
- package/lib/internal/template/styling/flashbar.scss +127 -0
- package/lib/internal/template/styling/multiselect.scss +80 -0
- package/lib/internal/template/styling/radio-group.scss +1 -0
- package/lib/internal/template/styling/segmented-control.scss +111 -0
- package/lib/internal/template/styling/select.scss +80 -0
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +1 -1
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/resizer/styles.css.js +17 -17
- package/lib/internal/template/table/resizer/styles.scoped.css +30 -29
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -17
- package/lib/internal/template/table/sticky-header.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-header.js +8 -2
- package/lib/internal/template/table/sticky-header.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +47 -47
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/table/use-column-widths.d.ts.map +1 -1
- package/lib/internal/template/table/use-column-widths.js +4 -16
- package/lib/internal/template/table/use-column-widths.js.map +1 -1
- package/lib/internal/template/table-root/internal.d.ts.map +1 -1
- package/lib/internal/template/table-root/internal.js +17 -3
- package/lib/internal/template/table-root/internal.js.map +1 -1
- package/lib/internal/template/table-root/styles.css.js +5 -5
- package/lib/internal/template/table-root/styles.scoped.css +10 -6
- package/lib/internal/template/table-root/styles.selectors.js +5 -5
- package/lib/internal/template/tabs/styles.css.js +30 -31
- package/lib/internal/template/tabs/styles.scoped.css +51 -67
- package/lib/internal/template/tabs/styles.selectors.js +30 -31
- package/lib/internal/template/tabs/tab-header-bar.d.ts.map +1 -1
- package/lib/internal/template/tabs/tab-header-bar.js +5 -54
- package/lib/internal/template/tabs/tab-header-bar.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +25 -24
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/token-group/internal.d.ts +5 -1
- package/lib/internal/template/token-group/internal.d.ts.map +1 -1
- package/lib/internal/template/token-group/internal.js +2 -2
- package/lib/internal/template/token-group/internal.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/scss/copy-to-clipboard/motion.scss +0 -31
- package/lib/internal/scss/tabs/motion.scss +0 -22
- package/lib/internal/template/table/sticky-scrollbar/index.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/index.js.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/sticky-scrollbar.js.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/styles.css.js +0 -11
- package/lib/internal/template/table/sticky-scrollbar/styles.selectors.js +0 -12
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.d.ts +0 -4
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrollbar/use-sticky-scrollbar.js.map +0 -1
- package/lib/internal/template/table/sticky-scrolling.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrolling.js.map +0 -1
- package/lib/internal/template/table/use-sticky-header.d.ts +0 -6
- package/lib/internal/template/table/use-sticky-header.d.ts.map +0 -1
- package/lib/internal/template/table/use-sticky-header.js.map +0 -1
- /package/lib/internal/template/{table → internal/components}/sticky-scrollbar/index.d.ts +0 -0
- /package/lib/internal/template/{table → internal/components}/sticky-scrollbar/index.js +0 -0
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
@use '../internal/styles/style-api' as style-api;
|
|
7
|
+
|
|
8
|
+
@include style-api.docs-forward('input', 'input');
|
|
9
|
+
@include style-api.docs-forward('dropdown', 'dropdown', 'container');
|
|
10
|
+
|
|
6
11
|
.root {
|
|
7
12
|
inline-size: 100%;
|
|
8
13
|
}
|
|
@@ -211,6 +211,9 @@ $tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
&.variant-inline-link {
|
|
214
|
+
text-decoration-line: awsui.$font-decoration-line-button-inline-link;
|
|
215
|
+
text-underline-offset: 3.5px;
|
|
216
|
+
|
|
214
217
|
> .icon-left {
|
|
215
218
|
inset-inline-start: 0;
|
|
216
219
|
margin-inline-end: awsui.$space-xs;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use '../internal/styles/tokens' as awsui;
|
|
7
|
-
@use './motion';
|
|
8
7
|
@use '../internal/styles/style-api' as style-api;
|
|
9
8
|
|
|
10
9
|
@include style-api.docs-forward('copyButton', 'button', 'root');
|
|
@@ -14,46 +13,6 @@
|
|
|
14
13
|
display: contents;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
.icon-swap {
|
|
18
|
-
position: absolute;
|
|
19
|
-
inset: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.icon-swap-copy,
|
|
23
|
-
.icon-swap-result {
|
|
24
|
-
position: absolute;
|
|
25
|
-
inset-block-start: 0;
|
|
26
|
-
inset-inline-start: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.icon-swap-copy {
|
|
30
|
-
opacity: 1;
|
|
31
|
-
transform: scale(1);
|
|
32
|
-
@include motion.entering-with-motion;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.icon-swap-result {
|
|
36
|
-
opacity: 0;
|
|
37
|
-
transform: scale(0);
|
|
38
|
-
@include motion.exiting-with-motion;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.icon-swap-copied > .icon-swap-copy {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transform: scale(0);
|
|
44
|
-
@include motion.exiting-with-motion;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.icon-swap-copied > .icon-swap-result {
|
|
48
|
-
opacity: 1;
|
|
49
|
-
transform: scale(1);
|
|
50
|
-
@include motion.entering-with-motion;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.popover-message {
|
|
54
|
-
display: inline;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
16
|
.inline-container {
|
|
58
17
|
word-break: break-all;
|
|
59
18
|
|
|
@@ -9,8 +9,21 @@
|
|
|
9
9
|
@use '../internal/styles' as styles;
|
|
10
10
|
@use '../internal/styles/typography' as typography;
|
|
11
11
|
@use '../internal/styles/utils/theming' as theming;
|
|
12
|
+
@use '../internal/styles/style-api' as style-api;
|
|
12
13
|
@use './collapsible.motion';
|
|
13
14
|
|
|
15
|
+
// Style API v2. The focus-ring tokens are registered once, in styles.scss.
|
|
16
|
+
$_bar-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
17
|
+
@include style-api.docs(
|
|
18
|
+
'notificationBar',
|
|
19
|
+
$_bar-tokens,
|
|
20
|
+
$properties: (color, background, border, border-radius, box-shadow, padding),
|
|
21
|
+
$descriptions: (
|
|
22
|
+
slot:
|
|
23
|
+
'The bar under the stacked messages that expands and collapses the stack. Rendered for `stackItems` with more than one message; use `:hover` and `:active` for interaction states.'
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
|
|
14
27
|
$notification-bar-top-overlap: (
|
|
15
28
|
'collapsed': calc(#{awsui.$space-scaled-xl} + 3px),
|
|
16
29
|
'expanded': awsui.$space-scaled-s,
|
|
@@ -171,6 +184,7 @@ the grid layout will be:
|
|
|
171
184
|
}
|
|
172
185
|
|
|
173
186
|
.stack > .notification-bar {
|
|
187
|
+
@include style-api.carriers($_bar-tokens);
|
|
174
188
|
@include styles.text-wrapping;
|
|
175
189
|
background: var(#{custom-props.$styleBackgroundDefault}, awsui.$color-background-notification-stack-bar);
|
|
176
190
|
border-color: var(#{custom-props.$styleBorderColorDefault}, awsui.$color-border-notification-stack-bar);
|
|
@@ -203,7 +217,7 @@ the grid layout will be:
|
|
|
203
217
|
> .status > .item-count,
|
|
204
218
|
> .button {
|
|
205
219
|
@include typography.default-text-style;
|
|
206
|
-
color:
|
|
220
|
+
color: inherit;
|
|
207
221
|
cursor: pointer;
|
|
208
222
|
margin-block: 0;
|
|
209
223
|
padding-block: 0;
|
|
@@ -278,9 +292,6 @@ the grid layout will be:
|
|
|
278
292
|
@include theming.one-theme-only {
|
|
279
293
|
padding-inline: 0;
|
|
280
294
|
}
|
|
281
|
-
#{custom-props.$styleFocusRingBoxShadow}: 0 0 0
|
|
282
|
-
var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width)
|
|
283
|
-
var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-notification-stack-bar-focused);
|
|
284
295
|
|
|
285
296
|
> .icon {
|
|
286
297
|
@include styles.with-motion {
|
|
@@ -296,13 +307,12 @@ the grid layout will be:
|
|
|
296
307
|
}
|
|
297
308
|
|
|
298
309
|
@include focus-visible.when-visible {
|
|
299
|
-
@include
|
|
300
|
-
$gutter: 0px,
|
|
301
|
-
$
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
$box-shadow: var(#{custom-props.$styleFocusRingBoxShadow})
|
|
310
|
+
@include style-api.focus-highlight(
|
|
311
|
+
$gutter-block: 0px,
|
|
312
|
+
$gutter-inline: 0px,
|
|
313
|
+
$radius: var(#{custom-props.$styleFocusRingBorderRadius}, awsui.$border-radius-control-default-focus-ring),
|
|
314
|
+
$width: var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width),
|
|
315
|
+
$color: var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-notification-stack-bar-focused)
|
|
306
316
|
);
|
|
307
317
|
}
|
|
308
318
|
}
|
|
@@ -8,9 +8,30 @@
|
|
|
8
8
|
@use '../internal/styles' as styles;
|
|
9
9
|
@use '../internal/styles/typography' as typography;
|
|
10
10
|
@use '../internal/styles/foundation' as foundation;
|
|
11
|
+
@use '../internal/styles/style-api' as style-api;
|
|
11
12
|
@use './motion';
|
|
12
13
|
@use './collapsible';
|
|
13
14
|
|
|
15
|
+
// Style API v2. The focus-ring tokens are registered once here, for the item slot and the notificationBar slot
|
|
16
|
+
// (collapsible.scss).
|
|
17
|
+
$_item-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
18
|
+
@include style-api.register($_item-tokens);
|
|
19
|
+
@include style-api.docs(
|
|
20
|
+
'item',
|
|
21
|
+
$_item-tokens,
|
|
22
|
+
$properties: (color, background, border, border-radius, box-shadow, padding),
|
|
23
|
+
$descriptions: (
|
|
24
|
+
slot:
|
|
25
|
+
'One flash message: its box and focus ring. Accepts a class name, or a function of `{ item }` that returns one, so each `type` can take its own class.'
|
|
26
|
+
)
|
|
27
|
+
);
|
|
28
|
+
@include style-api.docs(
|
|
29
|
+
'icon',
|
|
30
|
+
$properties: (color),
|
|
31
|
+
$descriptions: (slot: 'The status icon, or the spinner for `loading`.')
|
|
32
|
+
);
|
|
33
|
+
@include style-api.docs-forward('dismissButton', 'button', 'root');
|
|
34
|
+
|
|
14
35
|
.flashbar {
|
|
15
36
|
position: relative;
|
|
16
37
|
/* stylelint-disable-next-line selector-max-type */
|
|
@@ -26,6 +47,7 @@
|
|
|
26
47
|
}
|
|
27
48
|
|
|
28
49
|
.flash {
|
|
50
|
+
@include style-api.carriers($_item-tokens);
|
|
29
51
|
position: relative;
|
|
30
52
|
display: flex;
|
|
31
53
|
justify-content: flex-start;
|
|
@@ -41,10 +63,6 @@
|
|
|
41
63
|
overflow-wrap: break-word;
|
|
42
64
|
word-wrap: break-word;
|
|
43
65
|
box-shadow: awsui.$shadow-flash-sticky;
|
|
44
|
-
|
|
45
|
-
#{custom-props.$styleFocusRingBoxShadow}: 0 0 0
|
|
46
|
-
var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width)
|
|
47
|
-
var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-item-focused);
|
|
48
66
|
}
|
|
49
67
|
|
|
50
68
|
.initial-hidden {
|
|
@@ -83,10 +101,10 @@
|
|
|
83
101
|
outline: none;
|
|
84
102
|
}
|
|
85
103
|
@include focus-visible.when-visible {
|
|
86
|
-
@include
|
|
87
|
-
$
|
|
88
|
-
$
|
|
89
|
-
$
|
|
104
|
+
@include style-api.focus-highlight(
|
|
105
|
+
$radius: var(#{custom-props.$styleFocusRingBorderRadius}, awsui.$border-radius-control-default-focus-ring),
|
|
106
|
+
$width: var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width),
|
|
107
|
+
$color: var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-item-focused)
|
|
90
108
|
);
|
|
91
109
|
}
|
|
92
110
|
}
|
|
@@ -692,6 +692,17 @@ $icon-hover-motion: (
|
|
|
692
692
|
),
|
|
693
693
|
),
|
|
694
694
|
),
|
|
695
|
+
'view-vertical-start': (
|
|
696
|
+
(
|
|
697
|
+
part: 'awsui-icon-panel',
|
|
698
|
+
animation: icon-panel-slide-left,
|
|
699
|
+
duration: 600ms,
|
|
700
|
+
easing: cubic-bezier(0.65, 0, 0.35, 1),
|
|
701
|
+
base: (
|
|
702
|
+
transform-box: fill-box,
|
|
703
|
+
),
|
|
704
|
+
),
|
|
705
|
+
),
|
|
695
706
|
'zoom-in': (
|
|
696
707
|
(
|
|
697
708
|
part: 'awsui-icon-arm',
|
|
@@ -1920,6 +1931,16 @@ $icon-hover-motion: (
|
|
|
1920
1931
|
}
|
|
1921
1932
|
}
|
|
1922
1933
|
|
|
1934
|
+
@keyframes icon-panel-slide-left {
|
|
1935
|
+
0%,
|
|
1936
|
+
100% {
|
|
1937
|
+
transform: translateX(0);
|
|
1938
|
+
}
|
|
1939
|
+
45% {
|
|
1940
|
+
transform: translateX(-300%);
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1923
1944
|
@keyframes icon-bar-slide-left {
|
|
1924
1945
|
0%,
|
|
1925
1946
|
100% {
|
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
color: awsui.$color-text-dropdown-group-label;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
// Inside a trigger (Select `triggerVariant="option"`, inline Token) the option shows the selected value and
|
|
33
|
+
// takes the trigger's font and color, also when disabled, so a font or color set on the trigger reaches it.
|
|
34
|
+
&.in-trigger {
|
|
35
|
+
font-family: inherit;
|
|
36
|
+
font-size: inherit;
|
|
37
|
+
font-weight: inherit;
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
.content {
|
|
@@ -14,6 +14,8 @@ $radio-size: awsui.$size-control;
|
|
|
14
14
|
|
|
15
15
|
$_control-props: style-api.combine((fill-color, border-color, indicator-color), style-api.$focus-ring);
|
|
16
16
|
$_control-tokens: style-api.resolve($_control-props, carrier);
|
|
17
|
+
// Registered here, next to the carrier, so every component that renders this control loads the registration.
|
|
18
|
+
@include style-api.register($_control-tokens);
|
|
17
19
|
|
|
18
20
|
.radio-control {
|
|
19
21
|
@include style-api.carriers($_control-tokens);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// The sticky copy scrolls horizontally in step with the body, which owns the visible scrollbar.
|
|
5
|
+
@mixin copy-scroller {
|
|
6
|
+
overflow: auto;
|
|
7
|
+
scrollbar-width: none; /* Firefox */
|
|
8
|
+
&::-webkit-scrollbar {
|
|
9
|
+
display: none; /* Safari and Chrome */
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// For a scroller whose horizontal scrollbar is replaced by the sticky scrollbar.
|
|
5
|
+
@mixin hidden-scrollbar {
|
|
6
|
+
scrollbar-width: none; /* Firefox */
|
|
7
|
+
&::-webkit-scrollbar {
|
|
8
|
+
display: none; /* Safari and Chrome */
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
@use '../../
|
|
6
|
-
@use '../../
|
|
5
|
+
@use '../../styles/tokens' as awsui;
|
|
6
|
+
@use '../../styles' as styles;
|
|
7
7
|
|
|
8
8
|
.sticky-scrollbar {
|
|
9
9
|
block-size: 15px;
|
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
|
|
6
6
|
@use '../internal/styles' as styles;
|
|
7
7
|
@use '../internal/styles/tokens' as awsui;
|
|
8
|
+
@use '../internal/styles/style-api' as style-api;
|
|
9
|
+
|
|
10
|
+
// The trigger is the Select trigger part; its placeholder reads the carrier set on `.trigger-button` there.
|
|
11
|
+
$trigger-tokens: style-api.resolve((placeholder-color), carrier);
|
|
12
|
+
@include style-api.register($trigger-tokens);
|
|
13
|
+
@include style-api.docs(
|
|
14
|
+
'trigger',
|
|
15
|
+
$trigger-tokens,
|
|
16
|
+
$properties: (color, background, border, border-radius, box-shadow, padding, font-family, font-size, font-weight),
|
|
17
|
+
$descriptions: (
|
|
18
|
+
slot:
|
|
19
|
+
'The trigger button, which is also the field box. Pass a different class for the states you control (`invalid`, `warning`, `disabled`, `readOnly`); use `:hover` and `:focus` for interaction states.',
|
|
20
|
+
properties: (
|
|
21
|
+
color: 'The placeholder is styled with `--awsui-style-placeholder-color`.',
|
|
22
|
+
box-shadow: 'Also draws the focus ring under `:focus`.',
|
|
23
|
+
)
|
|
24
|
+
)
|
|
25
|
+
);
|
|
26
|
+
@include style-api.docs('inlineLabel', $properties: (color, background, font-family, font-size, font-weight));
|
|
27
|
+
@include style-api.docs-forward('filter', 'input');
|
|
28
|
+
@include style-api.docs-forward('dropdown', 'dropdown', 'container');
|
|
29
|
+
@include style-api.docs-forward('token', 'token');
|
|
8
30
|
|
|
9
31
|
.root {
|
|
10
32
|
@include styles.styles-reset;
|
|
@@ -6,10 +6,9 @@
|
|
|
6
6
|
@use '../internal/styles' as styles;
|
|
7
7
|
@use '../internal/styles/style-api' as style-api;
|
|
8
8
|
|
|
9
|
-
// The control slot is painted by the shared internal radio button, which reads the same token map.
|
|
9
|
+
// The control slot is painted by the shared internal radio button, which reads the same token map and registers it.
|
|
10
10
|
$control-props: style-api.combine((fill-color, border-color, indicator-color), style-api.$focus-ring);
|
|
11
11
|
$control-tokens: style-api.resolve($control-props, carrier);
|
|
12
|
-
@include style-api.register($control-tokens);
|
|
13
12
|
@include style-api.docs('control', $control-tokens);
|
|
14
13
|
|
|
15
14
|
.radio-button {
|
|
@@ -8,8 +8,16 @@
|
|
|
8
8
|
@use '../internal/styles/foundation' as foundation;
|
|
9
9
|
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
10
10
|
@use '../internal/styles/utils/theming' as theming;
|
|
11
|
+
@use '../internal/styles/style-api' as style-api;
|
|
11
12
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
12
13
|
|
|
14
|
+
// Style API v2. The root radius is a carrier so the segments can derive their own radius from it; the segment
|
|
15
|
+
// focus ring and the divider (the ::after of the segment) read carriers re-anchored on the segment.
|
|
16
|
+
$root-tokens: style-api.resolve((border-radius), carrier);
|
|
17
|
+
$segment-tokens: style-api.resolve(style-api.$focus-ring, carrier);
|
|
18
|
+
$divider-tokens: style-api.resolve((color, width), carrier);
|
|
19
|
+
@include style-api.register($segment-tokens, $divider-tokens);
|
|
20
|
+
|
|
13
21
|
$default-background: var(#{custom-props.$styleBackgroundDefault}, awsui.$color-background-segment-default);
|
|
14
22
|
$default-color: var(#{custom-props.$styleColorDefault}, awsui.$color-text-segment-default);
|
|
15
23
|
$hover-background: var(#{custom-props.$styleBackgroundHover}, awsui.$color-background-segment-hover);
|
|
@@ -23,9 +31,12 @@ $segment-border-width: var(#{$segment-border-width-prop}, 0);
|
|
|
23
31
|
$segment-gap: awsui.$space-static-xxs;
|
|
24
32
|
$segment-divider-width: 1px;
|
|
25
33
|
$one-theme-segment-gap: calc(#{$segment-gap} - #{$segment-divider-width});
|
|
26
|
-
$
|
|
34
|
+
$root-radius: style-api.value($root-tokens, border-radius, awsui.$border-radius-button);
|
|
35
|
+
$segment-radius: calc($root-radius - (#{awsui.$border-width-field} + #{awsui.$border-width-button}));
|
|
27
36
|
|
|
28
37
|
.segment {
|
|
38
|
+
@include style-api.carriers($segment-tokens);
|
|
39
|
+
@include style-api.carriers($divider-tokens);
|
|
29
40
|
@include styles.font-body-m;
|
|
30
41
|
@include styles.text-flex-wrapping;
|
|
31
42
|
@include styles.font-button;
|
|
@@ -69,13 +80,25 @@ $segment-radius: calc(awsui.$border-radius-button - (#{awsui.$border-width-field
|
|
|
69
80
|
}
|
|
70
81
|
|
|
71
82
|
#{custom-props.$styleFocusRingBoxShadow}: 0 0 0
|
|
72
|
-
|
|
73
|
-
|
|
83
|
+
style-api.value(
|
|
84
|
+
$segment-tokens,
|
|
85
|
+
focus-ring-width,
|
|
86
|
+
var(#{custom-props.$styleFocusRingBorderWidth}, foundation.$box-shadow-focused-width)
|
|
87
|
+
)
|
|
88
|
+
style-api.value(
|
|
89
|
+
$segment-tokens,
|
|
90
|
+
focus-ring-color,
|
|
91
|
+
var(#{custom-props.$styleFocusRingBorderColor}, awsui.$color-border-item-focused)
|
|
92
|
+
);
|
|
74
93
|
|
|
75
94
|
@include focus-visible.when-visible {
|
|
76
95
|
@include styles.focus-highlight(
|
|
77
96
|
$gutter: awsui.$space-segmented-control-focus-outline-gutter,
|
|
78
|
-
$border-radius:
|
|
97
|
+
$border-radius: style-api.value(
|
|
98
|
+
$segment-tokens,
|
|
99
|
+
focus-ring-radius,
|
|
100
|
+
var(#{custom-props.$styleFocusRingBorderRadius}, awsui.$border-radius-control-default-focus-ring)
|
|
101
|
+
),
|
|
79
102
|
$box-shadow: var(#{custom-props.$styleFocusRingBoxShadow}),
|
|
80
103
|
$z-index: 1 // Prevents adjacent segments from overlapping the focus ring
|
|
81
104
|
);
|
|
@@ -87,8 +110,8 @@ $segment-radius: calc(awsui.$border-radius-button - (#{awsui.$border-width-field
|
|
|
87
110
|
inset-inline-end: calc(-1 * ($segment-gap + $segment-divider-width));
|
|
88
111
|
block-size: calc(100% - (($segment-gap + awsui.$space-static-xxxs) * 2));
|
|
89
112
|
min-block-size: calc(awsui.$line-height-body-m - $segment-gap * 2);
|
|
90
|
-
inline-size: $segment-divider-width;
|
|
91
|
-
background: awsui.$color-border-segment-divider;
|
|
113
|
+
inline-size: style-api.value($divider-tokens, width, $segment-divider-width);
|
|
114
|
+
background: style-api.value($divider-tokens, color, awsui.$color-border-segment-divider);
|
|
92
115
|
z-index: 1;
|
|
93
116
|
}
|
|
94
117
|
&:not(.refresh):not(:last-child)::after {
|
|
@@ -8,8 +8,29 @@
|
|
|
8
8
|
@use 'sass:list' as list;
|
|
9
9
|
@use '../internal/styles/tokens' as awsui;
|
|
10
10
|
@use '../internal/styles/utils/theming' as theming;
|
|
11
|
+
@use '../internal/styles/style-api' as style-api;
|
|
11
12
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
12
13
|
|
|
14
|
+
// Style API v2
|
|
15
|
+
@include style-api.register(seg.$root-tokens);
|
|
16
|
+
@include style-api.docs(
|
|
17
|
+
'root',
|
|
18
|
+
seg.$root-tokens,
|
|
19
|
+
$properties: (background, border),
|
|
20
|
+
$descriptions: (slot: 'The segment group. The radius is also applied to the segments.')
|
|
21
|
+
);
|
|
22
|
+
@include style-api.docs(
|
|
23
|
+
'segment',
|
|
24
|
+
seg.$segment-tokens,
|
|
25
|
+
$properties: (color, background, border, border-radius, box-shadow, padding, font-family, font-size, font-weight),
|
|
26
|
+
$descriptions: (
|
|
27
|
+
slot:
|
|
28
|
+
'Every segment button. Target the selected segment with `[aria-pressed=true]`, a disabled segment with `:disabled` or `[aria-disabled=true]`, and the hover state with `:hover`.'
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
@include style-api.docs('divider', seg.$divider-tokens, $descriptions: (slot: 'The line between two segments.'));
|
|
32
|
+
@include style-api.docs-forward('select', 'select');
|
|
33
|
+
|
|
13
34
|
@function repeatValue($value, $times) {
|
|
14
35
|
$result: ();
|
|
15
36
|
|
|
@@ -25,13 +46,14 @@
|
|
|
25
46
|
}
|
|
26
47
|
|
|
27
48
|
.segment-part {
|
|
49
|
+
@include style-api.carriers(seg.$root-tokens);
|
|
28
50
|
display: inline-grid;
|
|
29
51
|
border-inline: solid awsui.$border-width-field awsui.$color-border-segment-wrapper;
|
|
30
52
|
border-block: solid awsui.$border-width-field awsui.$color-border-segment-wrapper;
|
|
31
|
-
border-start-start-radius:
|
|
32
|
-
border-start-end-radius:
|
|
33
|
-
border-end-start-radius:
|
|
34
|
-
border-end-end-radius:
|
|
53
|
+
border-start-start-radius: seg.$root-radius;
|
|
54
|
+
border-start-end-radius: seg.$root-radius;
|
|
55
|
+
border-end-start-radius: seg.$root-radius;
|
|
56
|
+
border-end-end-radius: seg.$root-radius;
|
|
35
57
|
background-color: awsui.$color-background-segment-wrapper;
|
|
36
58
|
align-items: center;
|
|
37
59
|
min-block-size: calc(awsui.$line-height-body-m + awsui.$space-static-xxs);
|
|
@@ -6,17 +6,30 @@
|
|
|
6
6
|
@use '../../internal/styles' as styles;
|
|
7
7
|
@use '../../internal/styles/tokens' as awsui;
|
|
8
8
|
@use '../../internal/styles/forms/mixins' as forms;
|
|
9
|
+
@use '../../internal/styles/style-api' as style-api;
|
|
9
10
|
@use '@cloudscape-design/component-toolkit/internal/focus-visible' as focus-visible;
|
|
10
11
|
|
|
12
|
+
// The placeholder is a span inside the trigger button, so the token set on the button (the `trigger` slot of
|
|
13
|
+
// Select and Multiselect) is re-anchored as a carrier there and read here.
|
|
14
|
+
$trigger-tokens: style-api.resolve((placeholder-color), carrier);
|
|
15
|
+
|
|
16
|
+
.trigger-button {
|
|
17
|
+
@include style-api.carriers($trigger-tokens);
|
|
18
|
+
}
|
|
19
|
+
|
|
11
20
|
.placeholder {
|
|
12
|
-
@include styles.form-placeholder
|
|
21
|
+
@include styles.form-placeholder(
|
|
22
|
+
$color: style-api.value($trigger-tokens, placeholder-color, awsui.$color-text-input-placeholder)
|
|
23
|
+
);
|
|
13
24
|
// Placeholder text is purely decorative and not intended to be interacted
|
|
14
25
|
// with. Disable selection so that it doesn't become selectable inside
|
|
15
26
|
// read-only triggers (which enable text selection).
|
|
16
27
|
user-select: none;
|
|
17
28
|
|
|
18
29
|
&.disabled {
|
|
19
|
-
@include styles.form-placeholder-disabled
|
|
30
|
+
@include styles.form-placeholder-disabled(
|
|
31
|
+
$color: style-api.value($trigger-tokens, placeholder-color, awsui.$color-text-input-placeholder-disabled)
|
|
32
|
+
);
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
35
|
|
|
@@ -4,6 +4,26 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
@use '../internal/styles' as styles;
|
|
7
|
+
@use '../internal/styles/style-api' as style-api;
|
|
8
|
+
|
|
9
|
+
$trigger-tokens: style-api.resolve((placeholder-color), carrier);
|
|
10
|
+
@include style-api.register($trigger-tokens);
|
|
11
|
+
@include style-api.docs(
|
|
12
|
+
'trigger',
|
|
13
|
+
$trigger-tokens,
|
|
14
|
+
$properties: (color, background, border, border-radius, box-shadow, padding, font-family, font-size, font-weight),
|
|
15
|
+
$descriptions: (
|
|
16
|
+
slot:
|
|
17
|
+
'The trigger button, which is also the field box. Pass a different class for the states you control (`invalid`, `warning`, `disabled`, `readOnly`); use `:hover` and `:focus` for interaction states.',
|
|
18
|
+
properties: (
|
|
19
|
+
color: 'The placeholder is styled with `--awsui-style-placeholder-color`.',
|
|
20
|
+
box-shadow: 'Also draws the focus ring under `:focus`.',
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
@include style-api.docs('inlineLabel', $properties: (color, background, font-family, font-size, font-weight));
|
|
25
|
+
@include style-api.docs-forward('filter', 'input');
|
|
26
|
+
@include style-api.docs-forward('dropdown', 'dropdown', 'container');
|
|
7
27
|
|
|
8
28
|
.root {
|
|
9
29
|
@include styles.styles-reset;
|
|
@@ -25,10 +25,6 @@ $block-gap: cell-base.$divider-block-gap;
|
|
|
25
25
|
inline-size: $handle-width;
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
z-index: 10;
|
|
28
|
-
|
|
29
|
-
th:last-child > &:has(.divider-interactive).is-borderless {
|
|
30
|
-
inset-inline-end: 0;
|
|
31
|
-
}
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
.resizer-button-wrapper {
|
|
@@ -86,6 +82,10 @@ th:not([data-rightmost]) > .divider,
|
|
|
86
82
|
/* used in test-utils */
|
|
87
83
|
}
|
|
88
84
|
|
|
85
|
+
.resizer-wrapper.is-borderless.is-last {
|
|
86
|
+
inset-inline-end: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
89
|
.resizer-wrapper.visual-refresh.is-borderless.is-last {
|
|
90
90
|
> .divider-interactive {
|
|
91
91
|
inset-inline-end: 0;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
@use '../container/shared' as container;
|
|
10
10
|
@use '../internal/generated/custom-css-properties/index.scss' as custom-props;
|
|
11
11
|
@use '../internal/styles/typography/constants.scss' as constants;
|
|
12
|
+
@use '../internal/components/sticky-header/mixins' as sticky-header;
|
|
12
13
|
|
|
13
14
|
.root {
|
|
14
15
|
@include styles.default-text-style;
|
|
@@ -164,8 +165,7 @@ filter search icon.
|
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.header-secondary {
|
|
167
|
-
|
|
168
|
-
scrollbar-width: none; /* Firefox */
|
|
168
|
+
@include sticky-header.copy-scroller;
|
|
169
169
|
box-sizing: border-box;
|
|
170
170
|
inline-size: 100%;
|
|
171
171
|
border-start-start-radius: 0;
|
|
@@ -187,9 +187,6 @@ filter search icon.
|
|
|
187
187
|
border-start-end-radius: awsui.$border-radius-container;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
&::-webkit-scrollbar {
|
|
191
|
-
display: none; /* Safari and Chrome */
|
|
192
|
-
}
|
|
193
190
|
&.table-has-header {
|
|
194
191
|
border-block-start: awsui.$border-divider-list-width solid awsui.$color-border-container-divider;
|
|
195
192
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@use '../internal/styles/index' 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/components/sticky-scrollbar/mixins' as sticky-scrollbar;
|
|
9
10
|
|
|
10
11
|
.root {
|
|
11
12
|
@include styles.styles-reset;
|
|
@@ -16,8 +17,10 @@
|
|
|
16
17
|
background: awsui.$color-background-container-content;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
// Its scrollbar is hidden in favour of the sticky scrollbar, which stays reachable however tall the body is.
|
|
19
21
|
.body-scroller {
|
|
20
22
|
overflow-x: auto;
|
|
23
|
+
@include sticky-scrollbar.hidden-scrollbar;
|
|
21
24
|
@include focus-visible.when-visible {
|
|
22
25
|
@include styles.container-focus();
|
|
23
26
|
}
|