@box/blueprint-web-assets 4.76.1 → 4.76.4

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.
@@ -0,0 +1,79 @@
1
+ /* This file is generated by scripts/create_typography_mixins.js called in `UpdateAssets.Jenkinsfile`. */
2
+
3
+ @mixin font-mixin($variant) {
4
+ font-weight: var(--#{$variant}-font-weight);
5
+ font-size: var(--#{$variant}-font-size);
6
+ font-family: var(--#{$variant}-font-family);
7
+ line-height: var(--#{$variant}-line-height);
8
+ letter-spacing: var(--#{$variant}-letter-spacing);
9
+ text-transform: var(--#{$variant}-text-case);
10
+ text-decoration: var(--#{$variant}-text-decoration);
11
+ }
12
+
13
+ @mixin title-subtitle {
14
+ @include font-mixin('title-subtitle');
15
+ }
16
+
17
+ @mixin title-small {
18
+ @include font-mixin('title-small');
19
+ }
20
+
21
+ @mixin title-medium {
22
+ @include font-mixin('title-medium');
23
+ }
24
+
25
+ @mixin title-large {
26
+ @include font-mixin('title-large');
27
+ }
28
+
29
+ @mixin title-xlarge {
30
+ @include font-mixin('title-x-large');
31
+ }
32
+
33
+ @mixin title-mondo {
34
+ @include font-mixin('title-mondo');
35
+ }
36
+
37
+ @mixin body-large {
38
+ @include font-mixin('body-large');
39
+ }
40
+
41
+ @mixin body-large-bold {
42
+ @include font-mixin('body-large-bold');
43
+ }
44
+
45
+ @mixin body-default-bold {
46
+ @include font-mixin('body-default-bold');
47
+ }
48
+
49
+ @mixin body-default-semibold {
50
+ @include font-mixin('body-default-semibold');
51
+ }
52
+
53
+ @mixin body-default {
54
+ @include font-mixin('body-default');
55
+ }
56
+
57
+ @mixin caption-bold {
58
+ @include font-mixin('caption-bold');
59
+ }
60
+
61
+ @mixin caption-default {
62
+ @include font-mixin('caption-default');
63
+ }
64
+
65
+ @mixin label-bold {
66
+ @include font-mixin('label-bold');
67
+ }
68
+
69
+ @mixin label-default {
70
+ @include font-mixin('label-default');
71
+ }
72
+
73
+ @mixin link-default {
74
+ @include font-mixin('link-default');
75
+ }
76
+
77
+ @mixin notification-default {
78
+ @include font-mixin('notification-default');
79
+ }
@@ -0,0 +1,175 @@
1
+ @mixin bp-title-mondo {
2
+ font-weight: var(--bp-font-weight-black);
3
+ font-size: var(--bp-font-size-11);
4
+ font-family: var(--bp-font-font-family);
5
+ font-style: normal;
6
+ line-height: var(--bp-font-line-height-07);
7
+ letter-spacing: normal;
8
+ }
9
+
10
+ @mixin bp-title-xlarge {
11
+ font-weight: var(--bp-font-weight-black);
12
+ font-size: var(--bp-font-size-10);
13
+ font-family: var(--bp-font-font-family);
14
+ font-style: normal;
15
+ line-height: var(--bp-font-line-height-06);
16
+ letter-spacing: var(--bp-font-letter-spacing-01);
17
+ }
18
+
19
+ @mixin bp-title-large {
20
+ font-weight: var(--bp-font-weight-bold);
21
+ font-size: var(--bp-font-size-09);
22
+ font-family: var(--bp-font-font-family);
23
+ font-style: normal;
24
+ line-height: var(--bp-font-line-height-05);
25
+ letter-spacing: var(--bp-font-letter-spacing-01);
26
+ }
27
+
28
+ @mixin bp-title-medium {
29
+ font-weight: var(--bp-font-weight-bold);
30
+ font-size: var(--bp-font-size-08);
31
+ font-family: var(--bp-font-font-family);
32
+ font-style: normal;
33
+ line-height: var(--bp-font-line-height-05);
34
+ letter-spacing: var(--bp-font-letter-spacing-01);
35
+ }
36
+
37
+ @mixin bp-title-small {
38
+ font-weight: var(--bp-font-weight-bold);
39
+ font-size: var(--bp-font-size-07);
40
+ font-family: var(--bp-font-font-family);
41
+ font-style: normal;
42
+ line-height: var(--bp-font-line-height-04);
43
+ letter-spacing: var(--bp-font-letter-spacing-01);
44
+ }
45
+
46
+ @mixin bp-subtitle {
47
+ font-weight: var(--bp-font-weight-bold);
48
+ font-size: var(--bp-font-size-06);
49
+ font-family: var(--bp-font-font-family);
50
+ font-style: normal;
51
+ line-height: var(--bp-font-line-height-04);
52
+ letter-spacing: var(--bp-font-letter-spacing-01);
53
+ }
54
+
55
+ @mixin bp-body-large-bold {
56
+ font-weight: var(--bp-font-weight-bold);
57
+ font-size: var(--bp-font-size-07);
58
+ font-family: var(--bp-font-font-family);
59
+ font-style: normal;
60
+ line-height: var(--bp-font-line-height-05);
61
+ letter-spacing: var(--bp-font-letter-spacing-01);
62
+ }
63
+
64
+ @mixin bp-body-large {
65
+ font-weight: var(--bp-font-weight-regular);
66
+ font-size: var(--bp-font-size-07);
67
+ font-family: var(--bp-font-font-family);
68
+ font-style: normal;
69
+ line-height: var(--bp-font-line-height-05);
70
+ letter-spacing: var(--bp-font-letter-spacing-01);
71
+ }
72
+
73
+ @mixin bp-body-default-bold {
74
+ font-weight: var(--bp-font-weight-bold);
75
+ font-size: var(--bp-font-size-05);
76
+ font-family: var(--bp-font-font-family);
77
+ font-style: normal;
78
+ line-height: var(--bp-font-line-height-04);
79
+ letter-spacing: var(--bp-font-letter-spacing-01);
80
+ }
81
+
82
+ @mixin bp-body-default-semibold {
83
+ font-weight: var(--bp-font-weight-semibold);
84
+ font-size: var(--bp-font-size-05);
85
+ font-family: var(--bp-font-font-family);
86
+ font-style: normal;
87
+ line-height: var(--bp-font-line-height-04);
88
+ letter-spacing: var(--bp-font-letter-spacing-01);
89
+ }
90
+
91
+ @mixin bp-body-default {
92
+ font-weight: var(--bp-font-weight-regular);
93
+ font-size: var(--bp-font-size-05);
94
+ font-family: var(--bp-font-font-family);
95
+ font-style: normal;
96
+ line-height: var(--bp-font-line-height-04);
97
+ letter-spacing: var(--bp-font-letter-spacing-01);
98
+ }
99
+
100
+ @mixin bp-body-small-semibold {
101
+ font-weight: var(--bp-font-weight-semibold);
102
+ font-size: var(--bp-font-size-04);
103
+ font-family: var(--bp-font-font-family);
104
+ font-style: normal;
105
+ line-height: var(--bp-font-line-height-04);
106
+ letter-spacing: var(--bp-font-letter-spacing-01);
107
+ }
108
+
109
+ @mixin bp-body-small {
110
+ font-weight: var(--bp-font-weight-regular);
111
+ font-size: var(--bp-font-size-04);
112
+ font-family: var(--bp-font-font-family);
113
+ font-style: normal;
114
+ line-height: var(--bp-font-line-height-04);
115
+ letter-spacing: var(--bp-font-letter-spacing-01);
116
+ }
117
+
118
+ @mixin bp-caption-bold {
119
+ font-weight: var(--bp-font-weight-bold);
120
+ font-size: var(--bp-font-size-03);
121
+ font-family: var(--bp-font-font-family);
122
+ font-style: normal;
123
+ line-height: var(--bp-font-line-height-02);
124
+ letter-spacing: var(--bp-font-letter-spacing-01);
125
+ }
126
+
127
+ @mixin bp-caption-default {
128
+ font-weight: var(--bp-font-weight-regular);
129
+ font-size: var(--bp-font-size-03);
130
+ font-family: var(--bp-font-font-family);
131
+ font-style: normal;
132
+ line-height: var(--bp-font-line-height-02);
133
+ letter-spacing: var(--bp-font-letter-spacing-01);
134
+ }
135
+
136
+ @mixin bp-label-bold {
137
+ font-weight: var(--bp-font-weight-bold);
138
+ font-size: var(--bp-font-size-02);
139
+ font-family: var(--bp-font-font-family);
140
+ font-style: normal;
141
+ line-height: var(--bp-font-line-height-03);
142
+ letter-spacing: var(--bp-font-letter-spacing-02);
143
+ }
144
+
145
+ @mixin bp-label-default {
146
+ font-weight: var(--bp-font-weight-regular);
147
+ font-size: var(--bp-font-size-02);
148
+ font-family: var(--bp-font-font-family);
149
+ font-style: normal;
150
+ line-height: var(--bp-font-line-height-03);
151
+ letter-spacing: var(--bp-font-letter-spacing-02);
152
+ }
153
+
154
+ @mixin bp-link-default {
155
+ font-weight: var(--bp-font-weight-regular);
156
+ font-size: var(--bp-font-size-05);
157
+ font-family: var(--bp-font-font-family);
158
+ font-style: normal;
159
+ line-height: var(--bp-font-line-height-04);
160
+ letter-spacing: var(--bp-font-letter-spacing-01);
161
+ text-decoration-line: underline;
162
+ text-decoration-style: solid;
163
+ text-decoration-skip-ink: none;
164
+ text-decoration-thickness: auto;
165
+ text-underline-offset: auto;
166
+ }
167
+
168
+ @mixin bp-notification-default {
169
+ font-weight: var(--bp-font-weight-bold);
170
+ font-size: var(--bp-font-size-01);
171
+ font-family: var(--bp-font-font-family);
172
+ font-style: normal;
173
+ line-height: var(--bp-font-line-height-02);
174
+ letter-spacing: var(--bp-font-letter-spacing-01);
175
+ }
@@ -1,253 +1,2 @@
1
- @mixin font-mixin($variant) {
2
- font-weight: var(--#{$variant}-font-weight);
3
- font-size: var(--#{$variant}-font-size);
4
- font-family: var(--#{$variant}-font-family);
5
- line-height: var(--#{$variant}-line-height);
6
- letter-spacing: var(--#{$variant}-letter-spacing);
7
- text-transform: var(--#{$variant}-text-case);
8
- text-decoration: var(--#{$variant}-text-decoration);
9
- }
10
-
11
- @mixin title-subtitle {
12
- @include font-mixin('title-subtitle');
13
- }
14
-
15
- @mixin title-small {
16
- @include font-mixin('title-small');
17
- }
18
-
19
- @mixin title-medium {
20
- @include font-mixin('title-medium');
21
- }
22
-
23
- @mixin title-large {
24
- @include font-mixin('title-large');
25
- }
26
-
27
- @mixin title-xlarge {
28
- @include font-mixin('title-x-large');
29
- }
30
-
31
- @mixin title-mondo {
32
- @include font-mixin('title-mondo');
33
- }
34
-
35
- @mixin body-large {
36
- @include font-mixin('body-large');
37
- }
38
-
39
- @mixin body-large-bold {
40
- @include font-mixin('body-large-bold');
41
- }
42
-
43
- @mixin body-default-bold {
44
- @include font-mixin('body-default-bold');
45
- }
46
-
47
- @mixin body-default-semibold {
48
- @include font-mixin('body-default-semibold');
49
- }
50
-
51
- @mixin body-default {
52
- @include font-mixin('body-default');
53
- }
54
-
55
- @mixin caption-bold {
56
- @include font-mixin('caption-bold');
57
- }
58
-
59
- @mixin caption-default {
60
- @include font-mixin('caption-default');
61
- }
62
-
63
- @mixin label-bold {
64
- @include font-mixin('label-bold');
65
- }
66
-
67
- @mixin label-default {
68
- @include font-mixin('label-default');
69
- }
70
-
71
- @mixin link-default {
72
- @include font-mixin('link-default');
73
- }
74
-
75
- @mixin notification-default {
76
- @include font-mixin('notification-default');
77
- }
78
-
79
- @mixin bp-title-mondo {
80
- font-weight: var(--bp-font-weight-black);
81
- font-size: var(--bp-font-size-11);
82
- font-family: var(--bp-font-font-family);
83
- font-style: normal;
84
- line-height: var(--bp-font-line-height-07);
85
- letter-spacing: normal;
86
- }
87
-
88
- @mixin bp-title-xlarge {
89
- font-weight: var(--bp-font-weight-black);
90
- font-size: var(--bp-font-size-10);
91
- font-family: var(--bp-font-font-family);
92
- font-style: normal;
93
- line-height: var(--bp-font-line-height-06);
94
- letter-spacing: var(--bp-font-letter-spacing-01);
95
- }
96
-
97
- @mixin bp-title-large {
98
- font-weight: var(--bp-font-weight-bold);
99
- font-size: var(--bp-font-size-09);
100
- font-family: var(--bp-font-font-family);
101
- font-style: normal;
102
- line-height: var(--bp-font-line-height-05);
103
- letter-spacing: var(--bp-font-letter-spacing-01);
104
- }
105
-
106
- @mixin bp-title-medium {
107
- font-weight: var(--bp-font-weight-bold);
108
- font-size: var(--bp-font-size-08);
109
- font-family: var(--bp-font-font-family);
110
- font-style: normal;
111
- line-height: var(--bp-font-line-height-05);
112
- letter-spacing: var(--bp-font-letter-spacing-01);
113
- }
114
-
115
- @mixin bp-title-small {
116
- font-weight: var(--bp-font-weight-bold);
117
- font-size: var(--bp-font-size-07);
118
- font-family: var(--bp-font-font-family);
119
- font-style: normal;
120
- line-height: var(--bp-font-line-height-04);
121
- letter-spacing: var(--bp-font-letter-spacing-01);
122
- }
123
-
124
- @mixin bp-subtitle {
125
- font-weight: var(--bp-font-weight-bold);
126
- font-size: var(--bp-font-size-06);
127
- font-family: var(--bp-font-font-family);
128
- font-style: normal;
129
- line-height: var(--bp-font-line-height-04);
130
- letter-spacing: var(--bp-font-letter-spacing-01);
131
- }
132
-
133
- @mixin bp-body-large-bold {
134
- font-weight: var(--bp-font-weight-bold);
135
- font-size: var(--bp-font-size-07);
136
- font-family: var(--bp-font-font-family);
137
- font-style: normal;
138
- line-height: var(--bp-font-line-height-05);
139
- letter-spacing: var(--bp-font-letter-spacing-01);
140
- }
141
-
142
- @mixin bp-body-large {
143
- font-weight: var(--bp-font-weight-regular);
144
- font-size: var(--bp-font-size-07);
145
- font-family: var(--bp-font-font-family);
146
- font-style: normal;
147
- line-height: var(--bp-font-line-height-05);
148
- letter-spacing: var(--bp-font-letter-spacing-01);
149
- }
150
-
151
- @mixin bp-body-default-bold {
152
- font-weight: var(--bp-font-weight-bold);
153
- font-size: var(--bp-font-size-05);
154
- font-family: var(--bp-font-font-family);
155
- font-style: normal;
156
- line-height: var(--bp-font-line-height-04);
157
- letter-spacing: var(--bp-font-letter-spacing-01);
158
- }
159
-
160
- @mixin bp-body-default-semibold {
161
- font-weight: var(--bp-font-weight-semibold);
162
- font-size: var(--bp-font-size-05);
163
- font-family: var(--bp-font-font-family);
164
- font-style: normal;
165
- line-height: var(--bp-font-line-height-04);
166
- letter-spacing: var(--bp-font-letter-spacing-01);
167
- }
168
-
169
- @mixin bp-body-default {
170
- font-weight: var(--bp-font-weight-regular);
171
- font-size: var(--bp-font-size-05);
172
- font-family: var(--bp-font-font-family);
173
- font-style: normal;
174
- line-height: var(--bp-font-line-height-04);
175
- letter-spacing: var(--bp-font-letter-spacing-01);
176
- }
177
-
178
- @mixin bp-body-small-semibold {
179
- font-weight: var(--bp-font-weight-semibold);
180
- font-size: var(--bp-font-size-04);
181
- font-family: var(--bp-font-font-family);
182
- font-style: normal;
183
- line-height: var(--bp-font-line-height-04);
184
- letter-spacing: var(--bp-font-letter-spacing-01);
185
- }
186
-
187
- @mixin bp-body-small {
188
- font-weight: var(--bp-font-weight-regular);
189
- font-size: var(--bp-font-size-04);
190
- font-family: var(--bp-font-font-family);
191
- font-style: normal;
192
- line-height: var(--bp-font-line-height-04);
193
- letter-spacing: var(--bp-font-letter-spacing-01);
194
- }
195
-
196
- @mixin bp-caption-bold {
197
- font-weight: var(--bp-font-weight-bold);
198
- font-size: var(--bp-font-size-03);
199
- font-family: var(--bp-font-font-family);
200
- font-style: normal;
201
- line-height: var(--bp-font-line-height-02);
202
- letter-spacing: var(--bp-font-letter-spacing-01);
203
- }
204
-
205
- @mixin bp-caption-default {
206
- font-weight: var(--bp-font-weight-regular);
207
- font-size: var(--bp-font-size-03);
208
- font-family: var(--bp-font-font-family);
209
- font-style: normal;
210
- line-height: var(--bp-font-line-height-02);
211
- letter-spacing: var(--bp-font-letter-spacing-01);
212
- }
213
-
214
- @mixin bp-label-bold {
215
- font-weight: var(--bp-font-weight-bold);
216
- font-size: var(--bp-font-size-02);
217
- font-family: var(--bp-font-font-family);
218
- font-style: normal;
219
- line-height: var(--bp-font-line-height-03);
220
- letter-spacing: var(--bp-font-letter-spacing-02);
221
- }
222
-
223
- @mixin bp-label-default {
224
- font-weight: var(--bp-font-weight-regular);
225
- font-size: var(--bp-font-size-02);
226
- font-family: var(--bp-font-font-family);
227
- font-style: normal;
228
- line-height: var(--bp-font-line-height-03);
229
- letter-spacing: var(--bp-font-letter-spacing-02);
230
- }
231
-
232
- @mixin bp-link-default {
233
- font-weight: var(--bp-font-weight-regular);
234
- font-size: var(--bp-font-size-05);
235
- font-family: var(--bp-font-font-family);
236
- font-style: normal;
237
- line-height: var(--bp-font-line-height-04);
238
- letter-spacing: var(--bp-font-letter-spacing-01);
239
- text-decoration-line: underline;
240
- text-decoration-style: solid;
241
- text-decoration-skip-ink: none;
242
- text-decoration-thickness: auto;
243
- text-underline-offset: auto;
244
- }
245
-
246
- @mixin bp-notification-default {
247
- font-weight: var(--bp-font-weight-bold);
248
- font-size: var(--bp-font-size-01);
249
- font-family: var(--bp-font-font-family);
250
- font-style: normal;
251
- line-height: var(--bp-font-line-height-02);
252
- letter-spacing: var(--bp-font-letter-spacing-01);
253
- }
1
+ @forward './mixins-legacy.scss';
2
+ @forward './mixins-modern.scss';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/blueprint-web-assets",
3
- "version": "4.76.1",
3
+ "version": "4.76.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "scripts": {
6
6
  "build-local-all": "yarn nx clone-repo && yarn build-local && nx run blueprint-web-assets:format-lint",
@@ -24,7 +24,7 @@
24
24
  "svgr-animated": "svgr --config-file svgrConfig/animated.svgrrc.js -d src/icons/Animated ./tmp/repo/Icon/Animated",
25
25
  "svgr": "rimraf src/icons/Content src/icons/ContentItemNoBackground src/icons/Fill src/icons/Line src/icons/Logo src/icons/MediumFilled src/icons/Medium src/icons/Animated && concurrently 'yarn svgr-content' 'yarn svgr-content-item-no-background' 'yarn svgr-fill' 'yarn svgr-illustration' 'yarn svgr-line' 'yarn svgr-logo' 'yarn svgr-medium-filled' 'yarn svgr-medium' 'yarn svgr-animated' && yarn remove-clippaths",
26
26
  "tokens-build-styles-all": "yarn tokens-build-styles && yarn tokens-build-styles-create-typography-mixins && yarn build-bp2-tokens",
27
- "tokens-build-styles-create-typography-mixins": "node scripts/create_typography_mixins.js --input tmp/repo/Style/values.json --output src/tokens/mixins.scss",
27
+ "tokens-build-styles-create-typography-mixins": "node scripts/create_typography_mixins.js --input tmp/repo/Style/values.json --output src/tokens/mixins-legacy.scss",
28
28
  "tokens-build-styles": "token-transformer --expandTypography --expandComposition --resolveReferences=false tmp/repo/Style tmp/tokens_output_styles.json light-mode,values && node scripts/build-tokens.mjs",
29
29
  "tokens-build-styles-figma-variables": "node scripts/bp2/create-figma-variables-tokens.mjs",
30
30
  "find-token-usages": "node scripts/find-token-usages.mjs",
@@ -139,7 +139,7 @@
139
139
  }
140
140
  },
141
141
  "devDependencies": {
142
- "@box/storybook-utils": "^0.14.12",
142
+ "@box/storybook-utils": "^0.14.13",
143
143
  "@types/react": "^18.0.0",
144
144
  "@types/react-dom": "^18.0.0",
145
145
  "chalk": "4.1.2",