@douyinfe/semi-foundation 2.35.0 → 2.36.0-beta.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/calendar/calendar.scss +1 -1
- package/datePicker/_utils/getYears.ts +8 -4
- package/datePicker/datePicker.scss +0 -1
- package/datePicker/foundation.ts +1 -1
- package/datePicker/monthsGridFoundation.ts +2 -1
- package/datePicker/yearAndMonthFoundation.ts +3 -1
- package/lib/cjs/calendar/calendar.css +2 -2
- package/lib/cjs/calendar/calendar.scss +1 -1
- package/lib/cjs/datePicker/_utils/getYears.d.ts +1 -1
- package/lib/cjs/datePicker/_utils/getYears.js +11 -5
- package/lib/cjs/datePicker/datePicker.css +0 -1
- package/lib/cjs/datePicker/datePicker.scss +0 -1
- package/lib/cjs/datePicker/foundation.d.ts +1 -1
- package/lib/cjs/datePicker/monthsGridFoundation.d.ts +2 -1
- package/lib/cjs/datePicker/yearAndMonthFoundation.d.ts +2 -0
- package/lib/cjs/table/foundation.js +2 -1
- package/lib/cjs/table/table.css +6 -0
- package/lib/cjs/table/table.scss +12 -0
- package/lib/cjs/tabs/tabs.css +14 -14
- package/lib/cjs/tabs/tabs.scss +16 -14
- package/lib/cjs/timePicker/foundation.d.ts +1 -1
- package/lib/cjs/timePicker/foundation.js +3 -5
- package/lib/cjs/typography/constants.d.ts +1 -0
- package/lib/cjs/typography/constants.js +1 -0
- package/lib/cjs/typography/typography.css +120 -0
- package/lib/cjs/typography/typography.scss +131 -6
- package/lib/cjs/typography/variables.scss +48 -0
- package/lib/es/calendar/calendar.css +2 -2
- package/lib/es/calendar/calendar.scss +1 -1
- package/lib/es/datePicker/_utils/getYears.d.ts +1 -1
- package/lib/es/datePicker/_utils/getYears.js +11 -5
- package/lib/es/datePicker/datePicker.css +0 -1
- package/lib/es/datePicker/datePicker.scss +0 -1
- package/lib/es/datePicker/foundation.d.ts +1 -1
- package/lib/es/datePicker/monthsGridFoundation.d.ts +2 -1
- package/lib/es/datePicker/yearAndMonthFoundation.d.ts +2 -0
- package/lib/es/table/foundation.js +2 -1
- package/lib/es/table/table.css +6 -0
- package/lib/es/table/table.scss +12 -0
- package/lib/es/tabs/tabs.css +14 -14
- package/lib/es/tabs/tabs.scss +16 -14
- package/lib/es/timePicker/foundation.d.ts +1 -1
- package/lib/es/timePicker/foundation.js +3 -5
- package/lib/es/typography/constants.d.ts +1 -0
- package/lib/es/typography/constants.js +1 -0
- package/lib/es/typography/typography.css +120 -0
- package/lib/es/typography/typography.scss +131 -6
- package/lib/es/typography/variables.scss +48 -0
- package/overflowList/foundation.ts +4 -4
- package/package.json +2 -2
- package/table/foundation.ts +1 -0
- package/table/table.scss +12 -0
- package/tabs/tabs.scss +16 -14
- package/timePicker/foundation.ts +4 -6
- package/typography/constants.ts +1 -0
- package/typography/typography.scss +131 -6
- package/typography/variables.scss +48 -0
|
@@ -177,49 +177,174 @@ $module: #{$prefix}-typography;
|
|
|
177
177
|
&-paragraph {
|
|
178
178
|
margin: $spacing-typography_title_paragraph-margin;
|
|
179
179
|
}
|
|
180
|
+
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
// ============ Title ============
|
|
183
184
|
h1.#{$module},
|
|
184
185
|
.#{$module}-h1.#{$module} {
|
|
185
186
|
@include font-size-header-1;
|
|
186
|
-
font-weight: $font-
|
|
187
|
+
font-weight: $font-typography_title1-fontWeight;
|
|
187
188
|
margin: $spacing-typography_title_h1-margin;
|
|
189
|
+
|
|
190
|
+
&.#{$module}-h1-weight-light {
|
|
191
|
+
font-weight: $font-typography_title1-light-fontWeight;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.#{$module}-h1-weight-regular {
|
|
195
|
+
font-weight: $font-typography_title1-regular-fontWeight;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.#{$module}-h1-weight-medium {
|
|
199
|
+
font-weight: $font-typography_title1-medium-fontWeight;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.#{$module}-h1-weight-semibold {
|
|
203
|
+
font-weight: $font-typography_title1-semibold-fontWeight;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.#{$module}-h1-weight-bold {
|
|
207
|
+
font-weight: $font-typography_title1-bold-fontWeight;
|
|
208
|
+
}
|
|
209
|
+
|
|
188
210
|
}
|
|
189
211
|
|
|
190
212
|
h2.#{$module},
|
|
191
213
|
.#{$module}-h2.#{$module} {
|
|
192
214
|
@include font-size-header-2;
|
|
193
|
-
font-weight: $font-
|
|
215
|
+
font-weight: $font-typography_title2-fontWeight;
|
|
194
216
|
margin: $spacing-typography_title_h2-margin;
|
|
217
|
+
|
|
218
|
+
&.#{$module}-h2-weight-light {
|
|
219
|
+
font-weight: $font-typography_title2-light-fontWeight;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&.#{$module}-h2-weight-regular {
|
|
223
|
+
font-weight: $font-typography_title2-regular-fontWeight;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.#{$module}-h2-weight-medium {
|
|
227
|
+
font-weight: $font-typography_title2-medium-fontWeight;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.#{$module}-h2-weight-semibold {
|
|
231
|
+
font-weight: $font-typography_title2-semibold-fontWeight;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.#{$module}-h2-weight-bold {
|
|
235
|
+
font-weight: $font-typography_title2-bold-fontWeight;
|
|
236
|
+
}
|
|
237
|
+
|
|
195
238
|
}
|
|
196
239
|
|
|
197
240
|
h3.#{$module},
|
|
198
241
|
.#{$module}-h3.#{$module} {
|
|
199
242
|
@include font-size-header-3;
|
|
200
|
-
font-weight: $font-
|
|
243
|
+
font-weight: $font-typography_title3-fontWeight;
|
|
201
244
|
margin: $spacing-typography_title_h3-margin;
|
|
245
|
+
|
|
246
|
+
&.#{$module}-h3-weight-light {
|
|
247
|
+
font-weight: $font-typography_title3-light-fontWeight;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&.#{$module}-h3-weight-regular {
|
|
251
|
+
font-weight: $font-typography_title3-regular-fontWeight;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&.#{$module}-h3-weight-medium {
|
|
255
|
+
font-weight: $font-typography_title3-medium-fontWeight;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&.#{$module}-h3-weight-semibold {
|
|
259
|
+
font-weight: $font-typography_title3-semibold-fontWeight;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&.#{$module}-h3-weight-bold {
|
|
263
|
+
font-weight: $font-typography_title3-bold-fontWeight;
|
|
264
|
+
}
|
|
265
|
+
|
|
202
266
|
}
|
|
203
267
|
|
|
204
268
|
h4.#{$module},
|
|
205
269
|
.#{$module}-h4.#{$module} {
|
|
206
270
|
@include font-size-header-4;
|
|
207
|
-
font-weight: $font-
|
|
271
|
+
font-weight: $font-typography_title4-fontWeight;
|
|
208
272
|
margin: $spacing-typography_title_h4-margin;
|
|
273
|
+
|
|
274
|
+
&.#{$module}-h4-weight-light {
|
|
275
|
+
font-weight: $font-typography_title4-light-fontWeight;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&.#{$module}-h4-weight-regular {
|
|
279
|
+
font-weight: $font-typography_title4-regular-fontWeight;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&.#{$module}-h4-weight-medium {
|
|
283
|
+
font-weight: $font-typography_title4-medium-fontWeight;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.#{$module}-h4-weight-semibold {
|
|
287
|
+
font-weight: $font-typography_title4-semibold-fontWeight;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
&.#{$module}-h4-weight-bold {
|
|
291
|
+
font-weight: $font-typography_title4-bold-fontWeight;
|
|
292
|
+
}
|
|
209
293
|
}
|
|
210
294
|
|
|
211
295
|
h5.#{$module},
|
|
212
296
|
.#{$module}-h5.#{$module} {
|
|
213
297
|
@include font-size-header-5;
|
|
214
|
-
font-weight: $font-
|
|
298
|
+
font-weight: $font-typography_title5-fontWeight;
|
|
215
299
|
margin: $spacing-typography_title_h5-margin;
|
|
300
|
+
|
|
301
|
+
&.#{$module}-h5-weight-light {
|
|
302
|
+
font-weight: $font-typography_title5-light-fontWeight;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&.#{$module}-h5-weight-regular {
|
|
306
|
+
font-weight: $font-typography_title5-regular-fontWeight;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
&.#{$module}-h5-weight-medium {
|
|
310
|
+
font-weight: $font-typography_title5-medium-fontWeight;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&.#{$module}-h5-weight-semibold {
|
|
314
|
+
font-weight: $font-typography_title5-semibold-fontWeight;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&.#{$module}-h5-weight-bold {
|
|
318
|
+
font-weight: $font-typography_title5-bold-fontWeight;
|
|
319
|
+
}
|
|
216
320
|
}
|
|
217
321
|
|
|
218
322
|
h6.#{$module},
|
|
219
323
|
.#{$module}-h6.#{$module} {
|
|
220
324
|
@include font-size-header-6;
|
|
221
|
-
font-weight: $font-
|
|
325
|
+
font-weight: $font-typography_title6-fontWeight;
|
|
222
326
|
margin: $spacing-typography_title_h6-margin;
|
|
327
|
+
|
|
328
|
+
&.#{$module}-h6-weight-light {
|
|
329
|
+
font-weight: $font-typography_title6-light-fontWeight;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
&.#{$module}-h6-weight-regular {
|
|
333
|
+
font-weight: $font-typography_title6-regular-fontWeight;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
&.#{$module}-h6-weight-medium {
|
|
337
|
+
font-weight: $font-typography_title6-medium-fontWeight;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&.#{$module}-h6-weight-semibold {
|
|
341
|
+
font-weight: $font-typography_title6-semibold-fontWeight;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&.#{$module}-h6-weight-bold {
|
|
345
|
+
font-weight: $font-typography_title6-bold-fontWeight;
|
|
346
|
+
}
|
|
347
|
+
|
|
223
348
|
}
|
|
224
349
|
|
|
225
350
|
// ============ Paragraph ============
|
|
@@ -27,6 +27,54 @@ $font-typography_link-fontWeight: $font-weight-bold; // 链接文本字重
|
|
|
27
27
|
$font-typography_strong-fontWeight: $font-weight-bold; // 强调文本字重
|
|
28
28
|
$font-typography_paragraph_extended-lineHeight: 24px; // 宽松行距段落文本行高
|
|
29
29
|
|
|
30
|
+
$font-typography_title1-fontWeight: $font-typography_title-fontWeight; // 一级标题文本字重
|
|
31
|
+
$font-typography_title2-fontWeight: $font-typography_title-fontWeight; // 二级标题文本字重
|
|
32
|
+
$font-typography_title3-fontWeight: $font-typography_title-fontWeight; // 三级标题文本字重
|
|
33
|
+
$font-typography_title4-fontWeight: $font-typography_title-fontWeight; // 四级标题文本字重
|
|
34
|
+
$font-typography_title5-fontWeight: $font-typography_title-fontWeight; // 五级标题文本字重
|
|
35
|
+
$font-typography_title6-fontWeight: $font-typography_title-fontWeight; // 六级标题文本字重
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
$font-typography_title1-light-fontWeight: 200; // 一级标题文本字重 - 细
|
|
41
|
+
$font-typography_title2-light-fontWeight: 200; // 二级标题文本字重 - 细
|
|
42
|
+
$font-typography_title3-light-fontWeight: 200; // 三级标题文本字重 - 细
|
|
43
|
+
$font-typography_title4-light-fontWeight: 200; // 四级标题文本字重 - 细
|
|
44
|
+
$font-typography_title5-light-fontWeight: 200; // 五级标题文本字重 - 细
|
|
45
|
+
$font-typography_title6-light-fontWeight: 200; // 六级标题文本字重 - 细
|
|
46
|
+
|
|
47
|
+
$font-typography_title1-regular-fontWeight: 400; // 一级标题文本字重 - 正常
|
|
48
|
+
$font-typography_title2-regular-fontWeight: 400; // 二级标题文本字重 - 正常
|
|
49
|
+
$font-typography_title3-regular-fontWeight: 400; // 三级标题文本字重 - 正常
|
|
50
|
+
$font-typography_title4-regular-fontWeight: 400; // 四级标题文本字重 - 正常
|
|
51
|
+
$font-typography_title5-regular-fontWeight: 400; // 五级标题文本字重 - 正常
|
|
52
|
+
$font-typography_title6-regular-fontWeight: 400; // 六级标题文本字重 - 正常
|
|
53
|
+
|
|
54
|
+
$font-typography_title1-medium-fontWeight: 500; // 一级标题文本字重 - 中等
|
|
55
|
+
$font-typography_title2-medium-fontWeight: 500; // 二级标题文本字重 - 中等
|
|
56
|
+
$font-typography_title3-medium-fontWeight: 500; // 三级标题文本字重 - 中等
|
|
57
|
+
$font-typography_title4-medium-fontWeight: 500; // 四级标题文本字重 - 中等
|
|
58
|
+
$font-typography_title5-medium-fontWeight: 500; // 五级标题文本字重 - 中等
|
|
59
|
+
$font-typography_title6-medium-fontWeight: 500; // 六级标题文本字重 - 中等
|
|
60
|
+
|
|
61
|
+
$font-typography_title1-semibold-fontWeight: 600; // 一级标题文本字重 - 半粗
|
|
62
|
+
$font-typography_title2-semibold-fontWeight: 600; // 二级标题文本字重 - 半粗
|
|
63
|
+
$font-typography_title3-semibold-fontWeight: 600; // 三级标题文本字重 - 半粗
|
|
64
|
+
$font-typography_title4-semibold-fontWeight: 600; // 三级标题文本字重 - 半粗
|
|
65
|
+
$font-typography_title5-semibold-fontWeight: 600; // 三级标题文本字重 - 半粗
|
|
66
|
+
$font-typography_title6-semibold-fontWeight: 600; // 三级标题文本字重 - 半粗
|
|
67
|
+
|
|
68
|
+
$font-typography_title1-bold-fontWeight: 700; // 一级标题文本字重 - 粗
|
|
69
|
+
$font-typography_title2-bold-fontWeight: 700; // 二级标题文本字重 - 粗
|
|
70
|
+
$font-typography_title3-bold-fontWeight: 700; // 三级标题文本字重 - 粗
|
|
71
|
+
$font-typography_title4-bold-fontWeight: 700; // 三级标题文本字重 - 粗
|
|
72
|
+
$font-typography_title5-bold-fontWeight: 700; // 三级标题文本字重 - 粗
|
|
73
|
+
$font-typography_title6-bold-fontWeight: 700; // 三级标题文本字重 - 粗
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
30
78
|
$spacing-typography_iconPrefix-marginRight: 4px; // 带前缀文本图标右侧外边距
|
|
31
79
|
$spacing-typography_expandText-marginLeft: 8px; // 支持展开文本展开按钮左侧外边距
|
|
32
80
|
$spacing-typography_copyIcon-marginLeft: 4px; // 可复制文本复制图标左侧外边距
|