@cloudscape-design/components-themeable 3.0.155 → 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.
Files changed (88) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/box/text.scss +10 -1
  3. package/lib/internal/scss/button/styles.scss +2 -2
  4. package/lib/internal/scss/expandable-section/styles.scss +1 -0
  5. package/lib/internal/scss/header/styles.scss +17 -7
  6. package/lib/internal/scss/internal/components/menu-dropdown/styles.scss +1 -1
  7. package/lib/internal/scss/internal/styles/links.scss +1 -0
  8. package/lib/internal/scss/internal/styles/typography/mixins.scss +17 -0
  9. package/lib/internal/scss/link/styles.scss +4 -0
  10. package/lib/internal/scss/pagination/styles.scss +1 -0
  11. package/lib/internal/scss/pie-chart/styles.scss +1 -1
  12. package/lib/internal/scss/progress-bar/styles.scss +1 -1
  13. package/lib/internal/scss/segmented-control/segment.scss +2 -2
  14. package/lib/internal/scss/side-navigation/styles.scss +1 -0
  15. package/lib/internal/scss/table/header-cell/styles.scss +1 -0
  16. package/lib/internal/scss/tabs/tab-header-bar.scss +1 -0
  17. package/lib/internal/scss/top-navigation/styles.scss +1 -1
  18. package/lib/internal/template/box/styles.css.js +189 -189
  19. package/lib/internal/template/box/styles.scoped.css +239 -233
  20. package/lib/internal/template/box/styles.selectors.js +189 -189
  21. package/lib/internal/template/button/styles.css.js +18 -18
  22. package/lib/internal/template/button/styles.scoped.css +140 -138
  23. package/lib/internal/template/button/styles.selectors.js +18 -18
  24. package/lib/internal/template/cards/styles.css.js +37 -37
  25. package/lib/internal/template/cards/styles.scoped.css +46 -44
  26. package/lib/internal/template/cards/styles.selectors.js +37 -37
  27. package/lib/internal/template/expandable-section/styles.css.js +21 -21
  28. package/lib/internal/template/expandable-section/styles.scoped.css +44 -42
  29. package/lib/internal/template/expandable-section/styles.selectors.js +21 -21
  30. package/lib/internal/template/header/internal.d.ts.map +1 -1
  31. package/lib/internal/template/header/internal.js +1 -1
  32. package/lib/internal/template/header/internal.js.map +1 -1
  33. package/lib/internal/template/header/styles.css.js +44 -40
  34. package/lib/internal/template/header/styles.scoped.css +74 -52
  35. package/lib/internal/template/header/styles.selectors.js +44 -40
  36. package/lib/internal/template/help-panel/styles.css.js +4 -4
  37. package/lib/internal/template/help-panel/styles.scoped.css +72 -58
  38. package/lib/internal/template/help-panel/styles.selectors.js +4 -4
  39. package/lib/internal/template/internal/base-component/styles.scoped.css +4 -0
  40. package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
  41. package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +16 -14
  42. package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
  43. package/lib/internal/template/internal/environment.js +1 -1
  44. package/lib/internal/template/internal/generated/theming/index.cjs +6 -0
  45. package/lib/internal/template/internal/generated/theming/index.js +6 -0
  46. package/lib/internal/template/link/styles.css.js +20 -20
  47. package/lib/internal/template/link/styles.scoped.css +75 -71
  48. package/lib/internal/template/link/styles.selectors.js +20 -20
  49. package/lib/internal/template/pagination/styles.css.js +9 -9
  50. package/lib/internal/template/pagination/styles.scoped.css +25 -23
  51. package/lib/internal/template/pagination/styles.selectors.js +9 -9
  52. package/lib/internal/template/pie-chart/styles.css.js +27 -27
  53. package/lib/internal/template/pie-chart/styles.scoped.css +45 -43
  54. package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
  55. package/lib/internal/template/popover/styles.css.js +50 -50
  56. package/lib/internal/template/popover/styles.scoped.css +67 -63
  57. package/lib/internal/template/popover/styles.selectors.js +50 -50
  58. package/lib/internal/template/progress-bar/styles.css.js +18 -18
  59. package/lib/internal/template/progress-bar/styles.scoped.css +34 -32
  60. package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
  61. package/lib/internal/template/segmented-control/styles.css.js +14 -14
  62. package/lib/internal/template/segmented-control/styles.scoped.css +37 -35
  63. package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
  64. package/lib/internal/template/side-navigation/styles.css.js +22 -22
  65. package/lib/internal/template/side-navigation/styles.scoped.css +36 -32
  66. package/lib/internal/template/side-navigation/styles.selectors.js +22 -22
  67. package/lib/internal/template/split-panel/styles.css.js +59 -59
  68. package/lib/internal/template/split-panel/styles.scoped.css +83 -81
  69. package/lib/internal/template/split-panel/styles.selectors.js +59 -59
  70. package/lib/internal/template/table/header-cell/styles.css.js +18 -18
  71. package/lib/internal/template/table/header-cell/styles.scoped.css +32 -30
  72. package/lib/internal/template/table/header-cell/styles.selectors.js +18 -18
  73. package/lib/internal/template/tabs/styles.css.js +21 -21
  74. package/lib/internal/template/tabs/styles.scoped.css +40 -38
  75. package/lib/internal/template/tabs/styles.selectors.js +21 -21
  76. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  77. package/lib/internal/template/tag-editor/styles.scoped.css +12 -10
  78. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  79. package/lib/internal/template/text-content/styles.css.js +1 -1
  80. package/lib/internal/template/text-content/styles.scoped.css +70 -60
  81. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  82. package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
  83. package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +44 -42
  84. package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
  85. package/lib/internal/template/top-navigation/styles.css.js +47 -47
  86. package/lib/internal/template/top-navigation/styles.scoped.css +72 -66
  87. package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
  88. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "c5f6ca8ecc4b5cc8bf05f067be53810fdfa5bdcd"
2
+ "commit": "015b28e11a7bb424412e61305a0bb4b9b0a151da"
3
3
  }
@@ -39,7 +39,7 @@
39
39
  @include base-styles.code-extra-defaults;
40
40
  }
41
41
  &.key-label-variant {
42
- font-weight: awsui.$font-display-label-weight;
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;
@@ -63,6 +63,7 @@
63
63
  &-footer {
64
64
  color: awsui.$color-text-expandable-section-default;
65
65
  font-weight: awsui.$font-heading-s-weight;
66
+ @include styles.font-smoothing;
66
67
  font-size: awsui.$font-expandable-heading-size;
67
68
  letter-spacing: awsui.$font-heading-s-letter-spacing;
68
69
 
@@ -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
- @include styles.font-heading-l;
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
- @include styles.font-heading-m;
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-heading-xl;
167
+ @include styles.font(heading-xl);
165
168
  }
166
169
  &-variant-h2 {
167
- font-weight: awsui.$font-heading-l-weight;
168
- line-height: awsui.$font-heading-l-line-height;
170
+ @include styles.font(heading-l);
169
171
  }
170
172
  &-variant-h3 {
171
- font-weight: awsui.$font-heading-m-weight;
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
 
@@ -64,6 +64,7 @@
64
64
  }
65
65
  &.button-current {
66
66
  font-weight: awsui.$font-wayfinding-link-active-weight;
67
+ @include styles.font-smoothing;
67
68
  color: awsui.$color-text-interactive-active;
68
69
  &.button-disabled {
69
70
  color: awsui.$color-text-pagination-page-number-active-disabled;
@@ -131,7 +131,7 @@
131
131
 
132
132
  /* stylelint-disable-next-line selector-max-type */
133
133
  .label-text > text {
134
- font-weight: awsui.$font-display-label-weight;
134
+ @include styles.font-label;
135
135
  fill: awsui.$color-text-heading-default;
136
136
  dominant-baseline: middle;
137
137
  }
@@ -40,7 +40,7 @@
40
40
  font-weight: styles.$font-weight-bold;
41
41
  }
42
42
  &-key-value {
43
- font-weight: awsui.$font-display-label-weight;
43
+ @include styles.font-label;
44
44
  color: awsui.$color-text-label;
45
45
  margin-bottom: awsui.$space-scaled-xxxs;
46
46
  }
@@ -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;
@@ -99,6 +99,7 @@
99
99
 
100
100
  .link-active {
101
101
  font-weight: awsui.$font-wayfinding-link-active-weight;
102
+ @include styles.font-smoothing;
102
103
  color: awsui.$color-text-accent;
103
104
  }
104
105
 
@@ -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 {
@@ -313,7 +313,7 @@
313
313
  }
314
314
 
315
315
  &-utility {
316
- font-weight: awsui.$font-button-weight;
316
+ @include styles.font-button;
317
317
  border-bottom: awsui.$border-divider-section-width solid awsui.$color-border-divider-default;
318
318
  }
319
319