@carbon/styles 1.104.0 → 1.105.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 +180 -155
- package/css/styles.min.css +1 -1
- package/package.json +10 -10
- package/scss/__tests__/theme-test.js +2 -0
- package/scss/components/button/_button.scss +21 -9
- package/scss/components/button/_mixins.scss +6 -3
- package/scss/components/dialog/_dialog.scss +8 -1
- package/scss/components/dropdown/_dropdown.scss +3 -3
- package/scss/components/list-box/_list-box.scss +1 -1
- package/scss/components/pagination/_pagination.scss +1 -1
- package/scss/components/search/_search.scss +20 -38
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +21 -0
- package/scss/fonts/__tests__/fonts-test.js +5 -0
- package/scss/fonts/_mono.scss +1 -1
- package/scss/fonts/_sans.scss +1 -1
- package/scss/fonts/_serif.scss +1 -1
- package/scss/fonts/unicode/_index.scss +6 -111
- package/scss/fonts/unicode/_mono.scss +132 -0
- package/scss/fonts/unicode/_sans.scss +140 -0
- package/scss/fonts/unicode/_serif.scss +142 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2026
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
|
|
10
|
+
/// All available unicode ranges where the keys are unicode range names and the
|
|
11
|
+
/// value is the list of unicode ranges that are applicable
|
|
12
|
+
/// @type {List}
|
|
13
|
+
$ranges: (
|
|
14
|
+
Cyrillic: (
|
|
15
|
+
U+0400-045F,
|
|
16
|
+
U+0462-0463,
|
|
17
|
+
U+046A-046B,
|
|
18
|
+
U+0472-0475,
|
|
19
|
+
U+0490-04C2,
|
|
20
|
+
U+04CF-04D9,
|
|
21
|
+
U+04DC-04E9,
|
|
22
|
+
U+04EE-04F9,
|
|
23
|
+
U+0524-0525,
|
|
24
|
+
),
|
|
25
|
+
Greek: (
|
|
26
|
+
U+037E,
|
|
27
|
+
U+0386-038A,
|
|
28
|
+
U+038C,
|
|
29
|
+
U+038E-03A1,
|
|
30
|
+
U+03A3-03CE,
|
|
31
|
+
),
|
|
32
|
+
Latin1: (
|
|
33
|
+
U+0000,
|
|
34
|
+
U+000D,
|
|
35
|
+
U+0020-007E,
|
|
36
|
+
U+00A0-00FF,
|
|
37
|
+
U+0131,
|
|
38
|
+
U+0152-0153,
|
|
39
|
+
U+02C6,
|
|
40
|
+
U+02DA,
|
|
41
|
+
U+02DC,
|
|
42
|
+
U+2013-2014,
|
|
43
|
+
U+2018-201A,
|
|
44
|
+
U+201C-201E,
|
|
45
|
+
U+2020-2022,
|
|
46
|
+
U+2026,
|
|
47
|
+
U+2030,
|
|
48
|
+
U+2039-203A,
|
|
49
|
+
U+2044,
|
|
50
|
+
U+20AC,
|
|
51
|
+
U+2122,
|
|
52
|
+
U+2212,
|
|
53
|
+
U+FB01-FB02,
|
|
54
|
+
),
|
|
55
|
+
Latin2: (
|
|
56
|
+
U+0100-0101,
|
|
57
|
+
U+0104-0130,
|
|
58
|
+
U+0132-0151,
|
|
59
|
+
U+0154-017F,
|
|
60
|
+
U+018F,
|
|
61
|
+
U+0192,
|
|
62
|
+
U+01A0-01A1,
|
|
63
|
+
U+01AF-01B0,
|
|
64
|
+
U+01FA-01FF,
|
|
65
|
+
U+0218-021B,
|
|
66
|
+
U+0237,
|
|
67
|
+
U+0259,
|
|
68
|
+
U+1E80-1E85,
|
|
69
|
+
U+1E9E,
|
|
70
|
+
U+20A1,
|
|
71
|
+
U+20A4,
|
|
72
|
+
U+20A6,
|
|
73
|
+
U+20A8-20AA,
|
|
74
|
+
U+20AD-20AE,
|
|
75
|
+
U+20B1-20B2,
|
|
76
|
+
U+20B4-20B5,
|
|
77
|
+
U+20B8-20BA,
|
|
78
|
+
U+20BD,
|
|
79
|
+
U+20BF,
|
|
80
|
+
),
|
|
81
|
+
Latin3: (
|
|
82
|
+
U+0102-0103,
|
|
83
|
+
U+01CD-01DC,
|
|
84
|
+
U+1EA0-1EF9,
|
|
85
|
+
U+20AB,
|
|
86
|
+
),
|
|
87
|
+
Pi: (
|
|
88
|
+
U+0E3F,
|
|
89
|
+
U+2000-200D,
|
|
90
|
+
U+2015,
|
|
91
|
+
U+2028-2029,
|
|
92
|
+
U+202F,
|
|
93
|
+
U+2032-2033,
|
|
94
|
+
U+2070,
|
|
95
|
+
U+2074-2079,
|
|
96
|
+
U+2080-2089,
|
|
97
|
+
U+2113,
|
|
98
|
+
U+2116,
|
|
99
|
+
U+2126,
|
|
100
|
+
U+212E,
|
|
101
|
+
U+2150-2151,
|
|
102
|
+
U+2153-215E,
|
|
103
|
+
U+2190-2199,
|
|
104
|
+
U+21A9-21AA,
|
|
105
|
+
U+21B0-21B3,
|
|
106
|
+
U+21B6-21B7,
|
|
107
|
+
U+21BA-21BB,
|
|
108
|
+
U+21C4,
|
|
109
|
+
U+21C6,
|
|
110
|
+
U+2202,
|
|
111
|
+
U+2206,
|
|
112
|
+
U+220F,
|
|
113
|
+
U+2211,
|
|
114
|
+
U+2215,
|
|
115
|
+
U+221A,
|
|
116
|
+
U+221E,
|
|
117
|
+
U+222B,
|
|
118
|
+
U+2248,
|
|
119
|
+
U+2260,
|
|
120
|
+
U+2264-2265,
|
|
121
|
+
U+25CA,
|
|
122
|
+
U+2713,
|
|
123
|
+
U+274C,
|
|
124
|
+
U+2B0E-2B11,
|
|
125
|
+
U+ECE0,
|
|
126
|
+
U+EFCC,
|
|
127
|
+
U+FEFF,
|
|
128
|
+
U+FFFD,
|
|
129
|
+
),
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
/// Retrieve the unicode range for a given unicode range name
|
|
133
|
+
/// @param {String} $name
|
|
134
|
+
/// @returns {List}
|
|
135
|
+
@function get-range($name) {
|
|
136
|
+
@if map.has-key($ranges, $name) {
|
|
137
|
+
@return map.get($ranges, $name);
|
|
138
|
+
}
|
|
139
|
+
@error 'Unable to find range with the name: #{$name}';
|
|
140
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2026
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@use 'sass:map';
|
|
9
|
+
|
|
10
|
+
/// All available unicode ranges where the keys are unicode range names and the
|
|
11
|
+
/// value is the list of unicode ranges that are applicable
|
|
12
|
+
/// @type {List}
|
|
13
|
+
$ranges: (
|
|
14
|
+
Cyrillic: (
|
|
15
|
+
U+0400-045F,
|
|
16
|
+
U+0462-0463,
|
|
17
|
+
U+046A-046B,
|
|
18
|
+
U+0472-0475,
|
|
19
|
+
U+0490-04C2,
|
|
20
|
+
U+04CF-04D9,
|
|
21
|
+
U+04DC-04E9,
|
|
22
|
+
U+04EE-04F9,
|
|
23
|
+
U+0524-0525,
|
|
24
|
+
),
|
|
25
|
+
Greek: (
|
|
26
|
+
U+037E,
|
|
27
|
+
U+0386-038A,
|
|
28
|
+
U+038C,
|
|
29
|
+
U+038E-03A1,
|
|
30
|
+
U+03A3-03CE,
|
|
31
|
+
U+03D0-03D1,
|
|
32
|
+
U+03D5,
|
|
33
|
+
),
|
|
34
|
+
Latin1: (
|
|
35
|
+
U+0020-007E,
|
|
36
|
+
U+00A0-00FF,
|
|
37
|
+
U+0131,
|
|
38
|
+
U+0152-0153,
|
|
39
|
+
U+02C6,
|
|
40
|
+
U+02DA,
|
|
41
|
+
U+02DC,
|
|
42
|
+
U+2013-2014,
|
|
43
|
+
U+2018-201A,
|
|
44
|
+
U+201C-201E,
|
|
45
|
+
U+2020-2022,
|
|
46
|
+
U+2026,
|
|
47
|
+
U+2030,
|
|
48
|
+
U+2039-203A,
|
|
49
|
+
U+2044,
|
|
50
|
+
U+20AC,
|
|
51
|
+
U+2122,
|
|
52
|
+
U+2212,
|
|
53
|
+
U+FB01-FB02,
|
|
54
|
+
),
|
|
55
|
+
Latin2: (
|
|
56
|
+
U+0100-0101,
|
|
57
|
+
U+0104-0130,
|
|
58
|
+
U+0132-0151,
|
|
59
|
+
U+0154-017F,
|
|
60
|
+
U+018F,
|
|
61
|
+
U+0192,
|
|
62
|
+
U+01A0-01A1,
|
|
63
|
+
U+01AF-01B0,
|
|
64
|
+
U+01FA-01FF,
|
|
65
|
+
U+0218-021B,
|
|
66
|
+
U+0237,
|
|
67
|
+
U+0259,
|
|
68
|
+
U+1E80-1E85,
|
|
69
|
+
U+1E9E,
|
|
70
|
+
U+20A1,
|
|
71
|
+
U+20A4,
|
|
72
|
+
U+20A6,
|
|
73
|
+
U+20A8-20AA,
|
|
74
|
+
U+20AD-20AE,
|
|
75
|
+
U+20B1-20B2,
|
|
76
|
+
U+20B4-20B5,
|
|
77
|
+
U+20B8-20BA,
|
|
78
|
+
U+20BD,
|
|
79
|
+
U+20BF,
|
|
80
|
+
),
|
|
81
|
+
Latin3: (
|
|
82
|
+
U+0102-0103,
|
|
83
|
+
U+01CD-01DC,
|
|
84
|
+
U+1EA0-1EF9,
|
|
85
|
+
U+20AB,
|
|
86
|
+
),
|
|
87
|
+
Pi: (
|
|
88
|
+
U+0E3F,
|
|
89
|
+
U+2000-200D,
|
|
90
|
+
U+2010-2012,
|
|
91
|
+
U+2015,
|
|
92
|
+
U+2028-2029,
|
|
93
|
+
U+202F,
|
|
94
|
+
U+2032-2033,
|
|
95
|
+
U+2070,
|
|
96
|
+
U+2074-2079,
|
|
97
|
+
U+2080-2089,
|
|
98
|
+
U+2113,
|
|
99
|
+
U+2116,
|
|
100
|
+
U+2126,
|
|
101
|
+
U+212E,
|
|
102
|
+
U+2150-2151,
|
|
103
|
+
U+2153-215E,
|
|
104
|
+
U+2190-2199,
|
|
105
|
+
U+21A9-21AA,
|
|
106
|
+
U+21B0-21B3,
|
|
107
|
+
U+21B6-21B7,
|
|
108
|
+
U+21BA-21BB,
|
|
109
|
+
U+21C4,
|
|
110
|
+
U+21C6,
|
|
111
|
+
U+2202,
|
|
112
|
+
U+2206,
|
|
113
|
+
U+220F,
|
|
114
|
+
U+2211,
|
|
115
|
+
U+2215,
|
|
116
|
+
U+2219-221A,
|
|
117
|
+
U+221E,
|
|
118
|
+
U+222B,
|
|
119
|
+
U+2236,
|
|
120
|
+
U+2248,
|
|
121
|
+
U+2260,
|
|
122
|
+
U+2264-2265,
|
|
123
|
+
U+25CA,
|
|
124
|
+
U+2713,
|
|
125
|
+
U+274C,
|
|
126
|
+
U+2B0E-2B11,
|
|
127
|
+
U+ECE0,
|
|
128
|
+
U+EFCC,
|
|
129
|
+
U+FEFF,
|
|
130
|
+
U+FFFD,
|
|
131
|
+
),
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
/// Retrieve the unicode range for a given unicode range name
|
|
135
|
+
/// @param {String} $name
|
|
136
|
+
/// @returns {List}
|
|
137
|
+
@function get-range($name) {
|
|
138
|
+
@if map.has-key($ranges, $name) {
|
|
139
|
+
@return map.get($ranges, $name);
|
|
140
|
+
}
|
|
141
|
+
@error 'Unable to find range with the name: #{$name}';
|
|
142
|
+
}
|