@carbon/styles 1.63.0 → 1.64.0-rc.0
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/css/styles.css +114 -113
- package/css/styles.min.css +1 -1
- package/package.json +12 -19
- package/scss/_reset.scss +0 -1
- package/scss/components/date-picker/_flatpickr.scss +2 -2
- package/scss/components/pagination-nav/_pagination-nav.scss +12 -7
- package/scss/components/tabs/_tabs.scss +0 -4
- package/scss/components/text-input/_text-input.scss +17 -0
- package/scss/components/ui-shell/header-panel/_header-panel.scss +1 -0
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +180 -180
- package/scss/fonts/_mono.scss +9 -66
- package/scss/fonts/_sans-arabic.scss +8 -17
- package/scss/fonts/_sans-devanagari.scss +8 -17
- package/scss/fonts/_sans-hebrew.scss +8 -17
- package/scss/fonts/_sans-thai-looped.scss +8 -17
- package/scss/fonts/_sans-thai.scss +8 -17
- package/scss/fonts/_sans.scss +9 -66
- package/scss/fonts/_serif.scss +9 -66
- package/scss/fonts/_src.scss +5 -20
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.64.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,32 +40,25 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.
|
|
44
|
-
"@carbon/feature-flags": "^0.
|
|
45
|
-
"@carbon/grid": "^11.
|
|
46
|
-
"@carbon/layout": "^11.
|
|
47
|
-
"@carbon/motion": "^11.
|
|
48
|
-
"@carbon/themes": "^11.
|
|
49
|
-
"@carbon/type": "^11.
|
|
50
|
-
"@ibm/plex
|
|
51
|
-
"@ibm/plex-sans": "0.0.3-alpha.0",
|
|
52
|
-
"@ibm/plex-sans-arabic": "0.0.3-alpha.0",
|
|
53
|
-
"@ibm/plex-sans-devanagari": "0.0.3-alpha.0",
|
|
54
|
-
"@ibm/plex-sans-hebrew": "0.0.3-alpha.0",
|
|
55
|
-
"@ibm/plex-sans-thai": "0.0.3-alpha.0",
|
|
56
|
-
"@ibm/plex-sans-thai-looped": "0.0.3-alpha.0",
|
|
57
|
-
"@ibm/plex-serif": "0.0.3-alpha.0",
|
|
43
|
+
"@carbon/colors": "^11.25.0-rc.0",
|
|
44
|
+
"@carbon/feature-flags": "^0.22.0-rc.0",
|
|
45
|
+
"@carbon/grid": "^11.26.0-rc.0",
|
|
46
|
+
"@carbon/layout": "^11.25.0-rc.0",
|
|
47
|
+
"@carbon/motion": "^11.21.0-rc.0",
|
|
48
|
+
"@carbon/themes": "^11.39.0-rc.0",
|
|
49
|
+
"@carbon/type": "^11.30.0-rc.0",
|
|
50
|
+
"@ibm/plex": "6.0.0-next.6",
|
|
58
51
|
"@ibm/telemetry-js": "^1.5.0"
|
|
59
52
|
},
|
|
60
53
|
"devDependencies": {
|
|
61
|
-
"@carbon/test-utils": "^10.
|
|
54
|
+
"@carbon/test-utils": "^10.31.0-rc.0",
|
|
62
55
|
"autoprefixer": "^10.4.7",
|
|
63
56
|
"browserslist-config-carbon": "^11.2.0",
|
|
64
57
|
"css": "^3.0.0",
|
|
65
58
|
"cssnano": "^7.0.0",
|
|
66
59
|
"postcss": "^8.4.14",
|
|
67
60
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
68
|
-
"rimraf": "^
|
|
61
|
+
"rimraf": "^6.0.0",
|
|
69
62
|
"sass": "^1.51.0"
|
|
70
63
|
},
|
|
71
64
|
"sideEffects": [
|
|
@@ -74,5 +67,5 @@
|
|
|
74
67
|
"scss/**/*.css",
|
|
75
68
|
"css/**/*.css"
|
|
76
69
|
],
|
|
77
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5e14bf5949724bee568601e514b5ce18e50d4525"
|
|
78
71
|
}
|
package/scss/_reset.scss
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use '../../utilities/button-reset';
|
|
16
16
|
@use '../../utilities/focus-outline' as *;
|
|
17
17
|
@use '../../utilities/high-contrast-mode' as *;
|
|
18
|
+
@use '../../utilities/layout';
|
|
18
19
|
@use '../../utilities/visually-hidden' as *;
|
|
19
20
|
|
|
20
21
|
/// Pagination nav base styles
|
|
@@ -26,9 +27,9 @@
|
|
|
26
27
|
/// @param {Color} $background-color-active [initial]
|
|
27
28
|
/// @param {Number} $font-weight [400]
|
|
28
29
|
/// @param {Number} $item-padding [0]
|
|
29
|
-
/// @param {Number} $button-min-width [$spacing-09]
|
|
30
|
-
/// @param {Value} $button-padding [1.0625rem $spacing-02]
|
|
31
|
-
/// @param {Number} $button-direction-size [$spacing-09]
|
|
30
|
+
/// @param {Number} $button-min-width [$spacing-09] TODO: remove in v12
|
|
31
|
+
/// @param {Value} $button-padding [1.0625rem $spacing-02] TODO: remove in v12
|
|
32
|
+
/// @param {Number} $button-direction-size [$spacing-09] TODO: remove in v12
|
|
32
33
|
/// @param {Number} $select-icon-top-position [$spacing-05]
|
|
33
34
|
/// @param {Number} $select-icon-left-position [$spacing-05]
|
|
34
35
|
@mixin pagination-nav(
|
|
@@ -47,6 +48,8 @@
|
|
|
47
48
|
.#{$prefix}--pagination-nav {
|
|
48
49
|
@include reset;
|
|
49
50
|
@include type-style('body-compact-01');
|
|
51
|
+
@include layout.use('size', $default: 'lg', $min: 'sm', $max: 'lg');
|
|
52
|
+
@include layout.use('density', $default: 'normal');
|
|
50
53
|
|
|
51
54
|
line-height: 0;
|
|
52
55
|
}
|
|
@@ -75,12 +78,13 @@
|
|
|
75
78
|
|
|
76
79
|
position: relative;
|
|
77
80
|
display: block;
|
|
78
|
-
|
|
81
|
+
// subtract 0.875rem to account for font-size 14px
|
|
82
|
+
padding: calc((layout.size('height') - 0.875rem) / 2) $spacing-02;
|
|
79
83
|
border-radius: 0;
|
|
80
84
|
color: $text-primary;
|
|
81
85
|
font-weight: $font-weight;
|
|
82
86
|
line-height: 1;
|
|
83
|
-
min-inline-size:
|
|
87
|
+
min-inline-size: layout.size('height');
|
|
84
88
|
outline: 0;
|
|
85
89
|
text-align: center;
|
|
86
90
|
text-decoration: none;
|
|
@@ -119,6 +123,7 @@
|
|
|
119
123
|
}
|
|
120
124
|
}
|
|
121
125
|
|
|
126
|
+
// TODO: remove in v12
|
|
122
127
|
.#{$prefix}--pagination-nav__page--direction {
|
|
123
128
|
display: flex;
|
|
124
129
|
align-items: center;
|
|
@@ -134,7 +139,7 @@
|
|
|
134
139
|
|
|
135
140
|
.#{$prefix}--pagination-nav__page--select {
|
|
136
141
|
appearance: none;
|
|
137
|
-
max-block-size:
|
|
142
|
+
max-block-size: layout.size('height');
|
|
138
143
|
text-indent: calc(50% - 4.5px);
|
|
139
144
|
// Override some Firefox user-agent styles
|
|
140
145
|
@-moz-document url-prefix() {
|
|
@@ -160,7 +165,7 @@
|
|
|
160
165
|
|
|
161
166
|
.#{$prefix}--pagination-nav__select-icon {
|
|
162
167
|
position: absolute;
|
|
163
|
-
inset-block-start: calc(50% - #{$select-icon-top-position * 0.
|
|
168
|
+
inset-block-start: calc(50% - #{$select-icon-top-position * 0.25});
|
|
164
169
|
inset-inline-start: calc(50% - #{$select-icon-top-position * 0.5});
|
|
165
170
|
pointer-events: none;
|
|
166
171
|
}
|
|
@@ -206,6 +206,22 @@
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
.#{$prefix}--text-input--password__visibility__toggle:disabled.#{$prefix}--tooltip__trigger {
|
|
210
|
+
svg {
|
|
211
|
+
fill: $icon-disabled;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
cursor: default;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.#{$prefix}--text-input--password__visibility__toggle:disabled.#{$prefix}--tooltip__trigger:hover {
|
|
218
|
+
svg {
|
|
219
|
+
fill: $icon-disabled;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
cursor: default;
|
|
223
|
+
}
|
|
224
|
+
|
|
209
225
|
.#{$prefix}--text-input__counter-alert {
|
|
210
226
|
position: absolute;
|
|
211
227
|
overflow: hidden;
|
|
@@ -354,6 +370,7 @@
|
|
|
354
370
|
> .#{$prefix}--text-input--warning:focus {
|
|
355
371
|
outline: none;
|
|
356
372
|
}
|
|
373
|
+
|
|
357
374
|
//-----------------------------
|
|
358
375
|
// Inline Text Input
|
|
359
376
|
//-----------------------------
|