@cloudscape-design/components-themeable 3.0.1401 → 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/button/styles.scss +3 -0
- package/lib/internal/scss/copy-to-clipboard/styles.scss +0 -41
- 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/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/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/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +16 -36
- 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/icon/generated/icons.d.ts +1 -1
- package/lib/internal/template/icon/generated/icons.js +3 -3
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- 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/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/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-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/toggle/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle/internal.js +1 -1
- package/lib/internal/template/toggle/internal.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/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 → internal/components}/sticky-scrollbar/index.d.ts +0 -0
- /package/lib/internal/template/{table → internal/components}/sticky-scrollbar/index.js +0 -0
|
@@ -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
|
-
opacity: 1;
|
|
24
|
-
transform: scale(1);
|
|
25
|
-
@include motion.entering-with-motion;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.icon-swap-result {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
transform: scale(0);
|
|
31
|
-
@include motion.exiting-with-motion;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.icon-swap > .icon-swap-copy,
|
|
35
|
-
.icon-swap > .icon-swap-result {
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset-block-start: 0;
|
|
38
|
-
inset-inline-start: 0;
|
|
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
|
|
|
@@ -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;
|
|
@@ -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
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
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/utils/theming' as theming;
|
|
11
10
|
|
|
12
11
|
$separator-color: awsui.$color-border-tabs-divider;
|
|
13
12
|
$label-horizontal-spacing: awsui.$space-xs;
|
|
@@ -126,27 +125,6 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
@mixin active-indicator-surface {
|
|
130
|
-
block-size: var(#{custom-props.$styleTabsActiveIndicatorWidth}, awsui.$border-active-width);
|
|
131
|
-
border-start-start-radius: var(
|
|
132
|
-
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
133
|
-
awsui.$border-radius-tabs-focus-ring
|
|
134
|
-
);
|
|
135
|
-
border-start-end-radius: var(
|
|
136
|
-
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
137
|
-
awsui.$border-radius-tabs-focus-ring
|
|
138
|
-
);
|
|
139
|
-
border-end-start-radius: var(
|
|
140
|
-
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
141
|
-
awsui.$border-radius-tabs-focus-ring
|
|
142
|
-
);
|
|
143
|
-
border-end-end-radius: var(
|
|
144
|
-
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
145
|
-
awsui.$border-radius-tabs-focus-ring
|
|
146
|
-
);
|
|
147
|
-
background: var(#{custom-props.$styleTabsActiveIndicatorColor}, awsui.$color-border-tabs-underline);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
128
|
.tabs-tab-header-container:not(.tabs-tab-disabled) {
|
|
151
129
|
// This is the underline for the currently selected tab.
|
|
152
130
|
&:after {
|
|
@@ -155,8 +133,25 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
155
133
|
inset-inline-start: 0;
|
|
156
134
|
inline-size: calc(100% - 1px);
|
|
157
135
|
inset-block-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
136
|
+
block-size: var(#{custom-props.$styleTabsActiveIndicatorWidth}, awsui.$border-active-width);
|
|
137
|
+
border-start-start-radius: var(
|
|
138
|
+
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
139
|
+
awsui.$border-radius-tabs-focus-ring
|
|
140
|
+
);
|
|
141
|
+
border-start-end-radius: var(
|
|
142
|
+
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
143
|
+
awsui.$border-radius-tabs-focus-ring
|
|
144
|
+
);
|
|
145
|
+
border-end-start-radius: var(
|
|
146
|
+
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
147
|
+
awsui.$border-radius-tabs-focus-ring
|
|
148
|
+
);
|
|
149
|
+
border-end-end-radius: var(
|
|
150
|
+
#{custom-props.$styleTabsActiveIndicatorBorderRadius},
|
|
151
|
+
awsui.$border-radius-tabs-focus-ring
|
|
152
|
+
);
|
|
153
|
+
background: var(#{custom-props.$styleTabsActiveIndicatorColor}, awsui.$color-border-tabs-underline);
|
|
158
154
|
opacity: 0;
|
|
159
|
-
@include active-indicator-surface;
|
|
160
155
|
}
|
|
161
156
|
|
|
162
157
|
&.refresh {
|
|
@@ -166,26 +161,9 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
166
161
|
}
|
|
167
162
|
}
|
|
168
163
|
}
|
|
169
|
-
|
|
170
|
-
@include theming.one-theme-only {
|
|
171
|
-
&:after {
|
|
172
|
-
content: none;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.tabs-active-indicator {
|
|
178
|
-
list-style: none;
|
|
179
|
-
position: absolute;
|
|
180
|
-
inset-block-end: 0;
|
|
181
|
-
inset-inline-start: 0;
|
|
182
|
-
inline-size: 0;
|
|
183
|
-
opacity: 0;
|
|
184
|
-
pointer-events: none;
|
|
185
|
-
@include active-indicator-surface;
|
|
186
164
|
}
|
|
187
165
|
|
|
188
|
-
.tabs-tab:
|
|
166
|
+
.tabs-tab:not(:last-child) {
|
|
189
167
|
& > .tabs-tab-header-container {
|
|
190
168
|
margin-inline-end: calc(-1 * #{awsui.$border-divider-section-width});
|
|
191
169
|
// This is the divider for the tab
|
|
@@ -277,7 +255,7 @@ $label-horizontal-spacing: awsui.$space-xs;
|
|
|
277
255
|
}
|
|
278
256
|
|
|
279
257
|
// Remediate focus shadow
|
|
280
|
-
.tabs-tab:
|
|
258
|
+
.tabs-tab:last-child {
|
|
281
259
|
margin-inline-end: 1px;
|
|
282
260
|
scroll-margin-inline-end: 1px;
|
|
283
261
|
& > .tabs-tab-header-container {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
// Keeps the token geometry on top of the button's inline-icon variant, which has no border, no focus ring gutter
|
|
40
40
|
// in visual refresh only, and horizontal padding. The token box ancestor gives the selector enough specificity.
|
|
41
41
|
:is(.token-box, .token-box-inline) > .dismiss-button.dismiss-button {
|
|
42
|
+
display: flex;
|
|
42
43
|
border-block: awsui.$border-width-field solid transparent;
|
|
43
44
|
border-inline: awsui.$border-width-field solid transparent;
|
|
44
45
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"content": "
|
|
5
|
-
"button": "
|
|
6
|
-
"variant-normal": "awsui_variant-
|
|
7
|
-
"disabled": "
|
|
8
|
-
"variant-primary": "awsui_variant-
|
|
9
|
-
"variant-link": "awsui_variant-
|
|
10
|
-
"variant-icon": "awsui_variant-
|
|
11
|
-
"variant-control-group-action": "awsui_variant-control-group-
|
|
12
|
-
"variant-inline-icon": "awsui_variant-inline-
|
|
13
|
-
"variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-
|
|
14
|
-
"variant-inline-link": "awsui_variant-inline-
|
|
15
|
-
"variant-modal-dismiss": "awsui_variant-modal-
|
|
16
|
-
"variant-flashbar-icon": "awsui_variant-flashbar-
|
|
17
|
-
"variant-breadcrumb-group": "awsui_variant-breadcrumb-
|
|
18
|
-
"variant-menu-trigger": "awsui_variant-menu-
|
|
19
|
-
"button-no-text": "awsui_button-no-
|
|
20
|
-
"button-no-wrap": "awsui_button-no-
|
|
21
|
-
"full-width": "awsui_full-
|
|
22
|
-
"button-compact": "awsui_button-
|
|
23
|
-
"icon-left": "awsui_icon-
|
|
24
|
-
"icon-right": "awsui_icon-
|
|
25
|
-
"icon": "
|
|
26
|
-
"link": "
|
|
27
|
-
"disabled-with-reason": "awsui_disabled-with-
|
|
4
|
+
"content": "awsui_content_vjswe_1dgfo_26",
|
|
5
|
+
"button": "awsui_button_vjswe_1dgfo_30",
|
|
6
|
+
"variant-normal": "awsui_variant-normal_vjswe_1dgfo_82",
|
|
7
|
+
"disabled": "awsui_disabled_vjswe_1dgfo_100",
|
|
8
|
+
"variant-primary": "awsui_variant-primary_vjswe_1dgfo_107",
|
|
9
|
+
"variant-link": "awsui_variant-link_vjswe_1dgfo_132",
|
|
10
|
+
"variant-icon": "awsui_variant-icon_vjswe_1dgfo_157",
|
|
11
|
+
"variant-control-group-action": "awsui_variant-control-group-action_vjswe_1dgfo_182",
|
|
12
|
+
"variant-inline-icon": "awsui_variant-inline-icon_vjswe_1dgfo_209",
|
|
13
|
+
"variant-inline-icon-pointer-target": "awsui_variant-inline-icon-pointer-target_vjswe_1dgfo_234",
|
|
14
|
+
"variant-inline-link": "awsui_variant-inline-link_vjswe_1dgfo_259",
|
|
15
|
+
"variant-modal-dismiss": "awsui_variant-modal-dismiss_vjswe_1dgfo_288",
|
|
16
|
+
"variant-flashbar-icon": "awsui_variant-flashbar-icon_vjswe_1dgfo_313",
|
|
17
|
+
"variant-breadcrumb-group": "awsui_variant-breadcrumb-group_vjswe_1dgfo_338",
|
|
18
|
+
"variant-menu-trigger": "awsui_variant-menu-trigger_vjswe_1dgfo_368",
|
|
19
|
+
"button-no-text": "awsui_button-no-text_vjswe_1dgfo_481",
|
|
20
|
+
"button-no-wrap": "awsui_button-no-wrap_vjswe_1dgfo_485",
|
|
21
|
+
"full-width": "awsui_full-width_vjswe_1dgfo_488",
|
|
22
|
+
"button-compact": "awsui_button-compact_vjswe_1dgfo_505",
|
|
23
|
+
"icon-left": "awsui_icon-left_vjswe_1dgfo_535",
|
|
24
|
+
"icon-right": "awsui_icon-right_vjswe_1dgfo_540",
|
|
25
|
+
"icon": "awsui_icon_vjswe_1dgfo_535",
|
|
26
|
+
"link": "awsui_link_vjswe_1dgfo_563",
|
|
27
|
+
"disabled-with-reason": "awsui_disabled-with-reason_vjswe_1dgfo_563"
|
|
28
28
|
};
|
|
29
29
|
|