@cloudscape-design/components-themeable 3.0.154 → 3.0.156
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/box/text.scss +10 -1
- package/lib/internal/scss/button/styles.scss +2 -2
- package/lib/internal/scss/container/styles.scss +11 -7
- package/lib/internal/scss/expandable-section/styles.scss +1 -0
- package/lib/internal/scss/header/styles.scss +17 -7
- package/lib/internal/scss/internal/components/menu-dropdown/styles.scss +1 -1
- package/lib/internal/scss/internal/styles/links.scss +1 -0
- package/lib/internal/scss/internal/styles/typography/mixins.scss +17 -0
- package/lib/internal/scss/link/styles.scss +4 -0
- package/lib/internal/scss/pagination/styles.scss +1 -0
- package/lib/internal/scss/pie-chart/styles.scss +1 -1
- package/lib/internal/scss/progress-bar/styles.scss +1 -1
- package/lib/internal/scss/segmented-control/segment.scss +2 -2
- package/lib/internal/scss/side-navigation/styles.scss +1 -0
- package/lib/internal/scss/table/header-cell/styles.scss +1 -0
- package/lib/internal/scss/tabs/tab-header-bar.scss +1 -0
- package/lib/internal/scss/top-navigation/styles.scss +1 -1
- package/lib/internal/template/box/styles.css.js +189 -189
- package/lib/internal/template/box/styles.scoped.css +239 -233
- package/lib/internal/template/box/styles.selectors.js +189 -189
- package/lib/internal/template/button/styles.css.js +18 -18
- package/lib/internal/template/button/styles.scoped.css +140 -138
- package/lib/internal/template/button/styles.selectors.js +18 -18
- package/lib/internal/template/cards/styles.css.js +37 -37
- package/lib/internal/template/cards/styles.scoped.css +46 -44
- package/lib/internal/template/cards/styles.selectors.js +37 -37
- package/lib/internal/template/container/interfaces.d.ts +8 -0
- package/lib/internal/template/container/interfaces.d.ts.map +1 -1
- package/lib/internal/template/container/interfaces.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts +1 -1
- 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/styles.css.js +17 -16
- package/lib/internal/template/container/styles.scoped.css +34 -33
- package/lib/internal/template/container/styles.selectors.js +17 -16
- package/lib/internal/template/expandable-section/styles.css.js +21 -21
- package/lib/internal/template/expandable-section/styles.scoped.css +44 -42
- package/lib/internal/template/expandable-section/styles.selectors.js +21 -21
- package/lib/internal/template/header/internal.d.ts.map +1 -1
- package/lib/internal/template/header/internal.js +1 -1
- package/lib/internal/template/header/internal.js.map +1 -1
- package/lib/internal/template/header/styles.css.js +44 -40
- package/lib/internal/template/header/styles.scoped.css +74 -52
- package/lib/internal/template/header/styles.selectors.js +44 -40
- package/lib/internal/template/help-panel/styles.css.js +4 -4
- package/lib/internal/template/help-panel/styles.scoped.css +72 -58
- package/lib/internal/template/help-panel/styles.selectors.js +4 -4
- package/lib/internal/template/internal/base-component/styles.scoped.css +4 -0
- package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +16 -14
- package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +6 -0
- package/lib/internal/template/internal/generated/theming/index.js +6 -0
- package/lib/internal/template/link/styles.css.js +20 -20
- package/lib/internal/template/link/styles.scoped.css +75 -71
- package/lib/internal/template/link/styles.selectors.js +20 -20
- package/lib/internal/template/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js +13 -8
- package/lib/internal/template/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/lib/internal/template/pagination/styles.css.js +9 -9
- package/lib/internal/template/pagination/styles.scoped.css +25 -23
- package/lib/internal/template/pagination/styles.selectors.js +9 -9
- package/lib/internal/template/pie-chart/pie-chart.d.ts.map +1 -1
- package/lib/internal/template/pie-chart/pie-chart.js +11 -4
- package/lib/internal/template/pie-chart/pie-chart.js.map +1 -1
- package/lib/internal/template/pie-chart/styles.css.js +27 -27
- package/lib/internal/template/pie-chart/styles.scoped.css +45 -43
- package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
- package/lib/internal/template/popover/styles.css.js +50 -50
- package/lib/internal/template/popover/styles.scoped.css +67 -63
- package/lib/internal/template/popover/styles.selectors.js +50 -50
- package/lib/internal/template/progress-bar/styles.css.js +18 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +34 -32
- package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
- package/lib/internal/template/segmented-control/styles.css.js +14 -14
- package/lib/internal/template/segmented-control/styles.scoped.css +37 -35
- package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
- package/lib/internal/template/side-navigation/styles.css.js +22 -22
- package/lib/internal/template/side-navigation/styles.scoped.css +36 -32
- package/lib/internal/template/side-navigation/styles.selectors.js +22 -22
- package/lib/internal/template/split-panel/styles.css.js +59 -59
- package/lib/internal/template/split-panel/styles.scoped.css +83 -81
- package/lib/internal/template/split-panel/styles.selectors.js +59 -59
- package/lib/internal/template/table/header-cell/styles.css.js +18 -18
- package/lib/internal/template/table/header-cell/styles.scoped.css +32 -30
- package/lib/internal/template/table/header-cell/styles.selectors.js +18 -18
- package/lib/internal/template/tabs/styles.css.js +21 -21
- package/lib/internal/template/tabs/styles.scoped.css +40 -38
- package/lib/internal/template/tabs/styles.selectors.js +21 -21
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +12 -10
- 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 +70 -60
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
- package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +44 -42
- package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +72 -66
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
@include base-styles.code-extra-defaults;
|
|
40
40
|
}
|
|
41
41
|
&.key-label-variant {
|
|
42
|
-
|
|
42
|
+
@include styles.font-label;
|
|
43
43
|
color: awsui.$color-text-label;
|
|
44
44
|
margin-bottom: awsui.$space-scaled-xxxs;
|
|
45
45
|
}
|
|
@@ -48,6 +48,15 @@
|
|
|
48
48
|
font-weight: awsui.$font-box-value-large-weight;
|
|
49
49
|
color: inherit;
|
|
50
50
|
}
|
|
51
|
+
&.h1-variant.font-weight-default,
|
|
52
|
+
&.h2-variant.font-weight-default,
|
|
53
|
+
&.h3-variant.font-weight-default,
|
|
54
|
+
&.h4-variant.font-weight-default,
|
|
55
|
+
&.h5-variant.font-weight-default,
|
|
56
|
+
&.value-large-variant.font-weight-default,
|
|
57
|
+
&.font-weight-heavy {
|
|
58
|
+
@include styles.font-smoothing;
|
|
59
|
+
}
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
.button {
|
|
77
77
|
@include styles.styles-reset;
|
|
78
78
|
@include styles.text-wrapping;
|
|
79
|
+
@include styles.font-button;
|
|
80
|
+
letter-spacing: awsui.$font-button-letter-spacing;
|
|
79
81
|
border-radius: awsui.$border-radius-button;
|
|
80
82
|
border: styles.$control-border-width solid;
|
|
81
83
|
padding: styles.$control-padding-vertical awsui.$space-l;
|
|
82
|
-
font-weight: awsui.$font-button-weight;
|
|
83
|
-
letter-spacing: awsui.$font-button-letter-spacing;
|
|
84
84
|
display: inline-block; // for <a> as a button
|
|
85
85
|
text-decoration: none;
|
|
86
86
|
cursor: pointer;
|
|
@@ -9,10 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
.root {
|
|
11
11
|
@include styles.styles-reset;
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-flow: column nowrap;
|
|
14
12
|
word-wrap: break-word;
|
|
15
13
|
|
|
14
|
+
&-fit-height {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
&.variant {
|
|
17
22
|
&-default,
|
|
18
23
|
&-stacked {
|
|
@@ -35,7 +40,6 @@
|
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
.header {
|
|
38
|
-
flex: 0 0 auto;
|
|
39
43
|
background-color: awsui.$color-background-container-header;
|
|
40
44
|
border-top-left-radius: awsui.$border-radius-container;
|
|
41
45
|
border-top-right-radius: awsui.$border-radius-container;
|
|
@@ -126,8 +130,10 @@ the default white background of the container component.
|
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
.content {
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
.root-fit-height > & {
|
|
134
|
+
flex: 1;
|
|
135
|
+
overflow: auto;
|
|
136
|
+
}
|
|
131
137
|
&.with-paddings {
|
|
132
138
|
padding: awsui.$space-scaled-l awsui.$space-container-horizontal;
|
|
133
139
|
|
|
@@ -138,8 +144,6 @@ the default white background of the container component.
|
|
|
138
144
|
}
|
|
139
145
|
|
|
140
146
|
.footer {
|
|
141
|
-
flex: 0 0 auto;
|
|
142
|
-
|
|
143
147
|
&.with-paddings {
|
|
144
148
|
padding: shared.$footer-padding;
|
|
145
149
|
}
|
|
@@ -106,18 +106,21 @@
|
|
|
106
106
|
@include styles.text-wrapping;
|
|
107
107
|
color: awsui.$color-text-heading-default;
|
|
108
108
|
|
|
109
|
+
&-variant-h1 {
|
|
110
|
+
font-size: awsui.$font-heading-xl-size;
|
|
111
|
+
}
|
|
109
112
|
&-variant-h2,
|
|
110
113
|
&-variant-h3 {
|
|
111
114
|
padding: awsui.$space-scaled-xxs 0;
|
|
112
115
|
}
|
|
113
116
|
&-variant-h2 {
|
|
114
|
-
|
|
117
|
+
font-size: awsui.$font-heading-l-size;
|
|
115
118
|
&-refresh {
|
|
116
119
|
padding-top: awsui.$space-scaled-2x-xxs;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
&-variant-h3 {
|
|
120
|
-
|
|
123
|
+
font-size: awsui.$font-heading-m-size;
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
|
|
@@ -161,20 +164,27 @@
|
|
|
161
164
|
@include styles.info-link-spacing();
|
|
162
165
|
|
|
163
166
|
&-variant-h1 {
|
|
164
|
-
@include styles.font
|
|
167
|
+
@include styles.font(heading-xl);
|
|
165
168
|
}
|
|
166
169
|
&-variant-h2 {
|
|
167
|
-
|
|
168
|
-
line-height: awsui.$font-heading-l-line-height;
|
|
170
|
+
@include styles.font(heading-l);
|
|
169
171
|
}
|
|
170
172
|
&-variant-h3 {
|
|
171
|
-
|
|
172
|
-
line-height: awsui.$font-heading-m-line-height;
|
|
173
|
+
@include styles.font(heading-m);
|
|
173
174
|
}
|
|
174
175
|
}
|
|
175
176
|
|
|
176
177
|
.heading-text {
|
|
177
178
|
/* used in test-utils */
|
|
179
|
+
&-variant-h1 {
|
|
180
|
+
@include styles.font-heading-xl;
|
|
181
|
+
}
|
|
182
|
+
&-variant-h2 {
|
|
183
|
+
@include styles.font-heading-l;
|
|
184
|
+
}
|
|
185
|
+
&-variant-h3 {
|
|
186
|
+
@include styles.font-heading-m;
|
|
187
|
+
}
|
|
178
188
|
}
|
|
179
189
|
|
|
180
190
|
.counter {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
.button {
|
|
11
11
|
@include styles.styles-reset;
|
|
12
12
|
@include styles.text-wrapping;
|
|
13
|
+
@include styles.font-button;
|
|
13
14
|
|
|
14
15
|
display: flex;
|
|
15
16
|
flex-wrap: nowrap;
|
|
@@ -24,7 +25,6 @@
|
|
|
24
25
|
|
|
25
26
|
border: transparent;
|
|
26
27
|
background: transparent;
|
|
27
|
-
font-weight: awsui.$font-button-weight;
|
|
28
28
|
color: awsui.$color-text-interactive-default;
|
|
29
29
|
|
|
30
30
|
&:hover {
|
|
@@ -59,5 +59,6 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
59
59
|
|
|
60
60
|
// Need style as a mixin for tag editor only, because it needs special keyup/keydown behavior and thus cannot use the Link component
|
|
61
61
|
@mixin link-recovery {
|
|
62
|
+
@include typography.font-smoothing;
|
|
62
63
|
@include link-style(map.get(constants.$link-variants, 'recovery'));
|
|
63
64
|
}
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
@use '../tokens' as awsui;
|
|
7
7
|
@use './constants' as constants;
|
|
8
8
|
|
|
9
|
+
// To reduce bluriness of heavy font weight on MacOS
|
|
10
|
+
@mixin font-smoothing {
|
|
11
|
+
-webkit-font-smoothing: awsui.$font-smoothing-webkit;
|
|
12
|
+
-moz-osx-font-smoothing: awsui.$font-smoothing-moz-osx;
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
@mixin default-text-style {
|
|
10
16
|
@include font-body-m;
|
|
11
17
|
color: awsui.$color-text-body-default;
|
|
@@ -29,6 +35,7 @@
|
|
|
29
35
|
line-height: awsui.$font-heading-xs-line-height;
|
|
30
36
|
@if $weight {
|
|
31
37
|
font-weight: awsui.$font-heading-xs-weight;
|
|
38
|
+
@include font-smoothing;
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
|
|
@@ -38,6 +45,7 @@
|
|
|
38
45
|
letter-spacing: awsui.$font-heading-s-letter-spacing;
|
|
39
46
|
@if $weight {
|
|
40
47
|
font-weight: awsui.$font-heading-s-weight;
|
|
48
|
+
@include font-smoothing;
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
|
|
@@ -47,6 +55,7 @@
|
|
|
47
55
|
letter-spacing: awsui.$font-heading-m-letter-spacing;
|
|
48
56
|
@if $weight {
|
|
49
57
|
font-weight: awsui.$font-heading-m-weight;
|
|
58
|
+
@include font-smoothing;
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
|
|
@@ -56,6 +65,7 @@
|
|
|
56
65
|
letter-spacing: awsui.$font-heading-l-letter-spacing;
|
|
57
66
|
@if $weight {
|
|
58
67
|
font-weight: awsui.$font-heading-l-weight;
|
|
68
|
+
@include font-smoothing;
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
71
|
|
|
@@ -65,6 +75,7 @@
|
|
|
65
75
|
letter-spacing: awsui.$font-heading-xl-letter-spacing;
|
|
66
76
|
@if $weight {
|
|
67
77
|
font-weight: awsui.$font-heading-xl-weight;
|
|
78
|
+
@include font-smoothing;
|
|
68
79
|
}
|
|
69
80
|
}
|
|
70
81
|
|
|
@@ -80,6 +91,11 @@
|
|
|
80
91
|
letter-spacing: inherit;
|
|
81
92
|
}
|
|
82
93
|
|
|
94
|
+
@mixin font-button {
|
|
95
|
+
font-weight: awsui.$font-button-weight;
|
|
96
|
+
@include font-smoothing;
|
|
97
|
+
}
|
|
98
|
+
|
|
83
99
|
@mixin font-label {
|
|
84
100
|
@include font-body-m();
|
|
85
101
|
font-weight: awsui.$font-display-label-weight;
|
|
@@ -89,6 +105,7 @@
|
|
|
89
105
|
font-size: awsui.$font-panel-header-size;
|
|
90
106
|
line-height: awsui.$font-panel-header-line-height;
|
|
91
107
|
font-weight: awsui.$font-heading-l-weight;
|
|
108
|
+
@include font-smoothing;
|
|
92
109
|
}
|
|
93
110
|
|
|
94
111
|
@mixin font-code-inline {
|
|
@@ -29,11 +29,15 @@ $font-sizes: (
|
|
|
29
29
|
|
|
30
30
|
@each $variant in map.keys(constants.$link-variants) {
|
|
31
31
|
&.variant-#{$variant} {
|
|
32
|
+
@if $variant == 'info' {
|
|
33
|
+
@include styles.font-smoothing;
|
|
34
|
+
}
|
|
32
35
|
@include styles.link-style(map.get(constants.$link-variants, $variant));
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
&.button {
|
|
40
|
+
@include styles.font-smoothing;
|
|
37
41
|
@include styles.link-style(map.get(constants.$link-styles, 'button'));
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -36,11 +36,11 @@ $selected-color: awsui.$color-text-segment-active;
|
|
|
36
36
|
.segment {
|
|
37
37
|
@include styles.font-body-m;
|
|
38
38
|
@include styles.text-flex-wrapping;
|
|
39
|
+
@include styles.font-button;
|
|
40
|
+
letter-spacing: 0.25px;
|
|
39
41
|
border: styles.$control-border-width solid $default-border-color;
|
|
40
42
|
padding: styles.$control-padding-vertical awsui.$space-l;
|
|
41
43
|
border-right-width: 0;
|
|
42
|
-
font-weight: awsui.$font-button-weight;
|
|
43
|
-
letter-spacing: 0.25px;
|
|
44
44
|
background: $default-background;
|
|
45
45
|
color: $default-color;
|
|
46
46
|
overflow: visible;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
background: awsui.$color-background-table-header;
|
|
16
16
|
color: awsui.$color-text-column-header;
|
|
17
17
|
font-weight: awsui.$font-heading-s-weight;
|
|
18
|
+
@include styles.font-smoothing;
|
|
18
19
|
padding: awsui.$space-scaled-xxs awsui.$space-scaled-xs;
|
|
19
20
|
&-sticky {
|
|
20
21
|
border-bottom: awsui.$border-table-sticky-width solid awsui.$color-border-divider-default;
|
|
@@ -100,6 +100,7 @@ $label-horizontal-spacing: awsui.$space-l;
|
|
|
100
100
|
font-size: awsui.$font-tabs-size;
|
|
101
101
|
line-height: awsui.$font-tabs-line-height;
|
|
102
102
|
font-weight: awsui.$font-wayfinding-link-active-weight;
|
|
103
|
+
@include styles.font-smoothing;
|
|
103
104
|
color: awsui.$color-text-interactive-default;
|
|
104
105
|
|
|
105
106
|
&:hover {
|