@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
|
@@ -146,6 +146,26 @@ h1.semi-typography,
|
|
|
146
146
|
font-weight: 600;
|
|
147
147
|
margin: 0;
|
|
148
148
|
}
|
|
149
|
+
h1.semi-typography.semi-typography-h1-weight-light,
|
|
150
|
+
.semi-typography-h1.semi-typography.semi-typography-h1-weight-light {
|
|
151
|
+
font-weight: 200;
|
|
152
|
+
}
|
|
153
|
+
h1.semi-typography.semi-typography-h1-weight-regular,
|
|
154
|
+
.semi-typography-h1.semi-typography.semi-typography-h1-weight-regular {
|
|
155
|
+
font-weight: 400;
|
|
156
|
+
}
|
|
157
|
+
h1.semi-typography.semi-typography-h1-weight-medium,
|
|
158
|
+
.semi-typography-h1.semi-typography.semi-typography-h1-weight-medium {
|
|
159
|
+
font-weight: 500;
|
|
160
|
+
}
|
|
161
|
+
h1.semi-typography.semi-typography-h1-weight-semibold,
|
|
162
|
+
.semi-typography-h1.semi-typography.semi-typography-h1-weight-semibold {
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
}
|
|
165
|
+
h1.semi-typography.semi-typography-h1-weight-bold,
|
|
166
|
+
.semi-typography-h1.semi-typography.semi-typography-h1-weight-bold {
|
|
167
|
+
font-weight: 700;
|
|
168
|
+
}
|
|
149
169
|
|
|
150
170
|
h2.semi-typography,
|
|
151
171
|
.semi-typography-h2.semi-typography {
|
|
@@ -155,6 +175,26 @@ h2.semi-typography,
|
|
|
155
175
|
font-weight: 600;
|
|
156
176
|
margin: 0;
|
|
157
177
|
}
|
|
178
|
+
h2.semi-typography.semi-typography-h2-weight-light,
|
|
179
|
+
.semi-typography-h2.semi-typography.semi-typography-h2-weight-light {
|
|
180
|
+
font-weight: 200;
|
|
181
|
+
}
|
|
182
|
+
h2.semi-typography.semi-typography-h2-weight-regular,
|
|
183
|
+
.semi-typography-h2.semi-typography.semi-typography-h2-weight-regular {
|
|
184
|
+
font-weight: 400;
|
|
185
|
+
}
|
|
186
|
+
h2.semi-typography.semi-typography-h2-weight-medium,
|
|
187
|
+
.semi-typography-h2.semi-typography.semi-typography-h2-weight-medium {
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
}
|
|
190
|
+
h2.semi-typography.semi-typography-h2-weight-semibold,
|
|
191
|
+
.semi-typography-h2.semi-typography.semi-typography-h2-weight-semibold {
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
}
|
|
194
|
+
h2.semi-typography.semi-typography-h2-weight-bold,
|
|
195
|
+
.semi-typography-h2.semi-typography.semi-typography-h2-weight-bold {
|
|
196
|
+
font-weight: 700;
|
|
197
|
+
}
|
|
158
198
|
|
|
159
199
|
h3.semi-typography,
|
|
160
200
|
.semi-typography-h3.semi-typography {
|
|
@@ -164,6 +204,26 @@ h3.semi-typography,
|
|
|
164
204
|
font-weight: 600;
|
|
165
205
|
margin: 0;
|
|
166
206
|
}
|
|
207
|
+
h3.semi-typography.semi-typography-h3-weight-light,
|
|
208
|
+
.semi-typography-h3.semi-typography.semi-typography-h3-weight-light {
|
|
209
|
+
font-weight: 200;
|
|
210
|
+
}
|
|
211
|
+
h3.semi-typography.semi-typography-h3-weight-regular,
|
|
212
|
+
.semi-typography-h3.semi-typography.semi-typography-h3-weight-regular {
|
|
213
|
+
font-weight: 400;
|
|
214
|
+
}
|
|
215
|
+
h3.semi-typography.semi-typography-h3-weight-medium,
|
|
216
|
+
.semi-typography-h3.semi-typography.semi-typography-h3-weight-medium {
|
|
217
|
+
font-weight: 500;
|
|
218
|
+
}
|
|
219
|
+
h3.semi-typography.semi-typography-h3-weight-semibold,
|
|
220
|
+
.semi-typography-h3.semi-typography.semi-typography-h3-weight-semibold {
|
|
221
|
+
font-weight: 600;
|
|
222
|
+
}
|
|
223
|
+
h3.semi-typography.semi-typography-h3-weight-bold,
|
|
224
|
+
.semi-typography-h3.semi-typography.semi-typography-h3-weight-bold {
|
|
225
|
+
font-weight: 700;
|
|
226
|
+
}
|
|
167
227
|
|
|
168
228
|
h4.semi-typography,
|
|
169
229
|
.semi-typography-h4.semi-typography {
|
|
@@ -173,6 +233,26 @@ h4.semi-typography,
|
|
|
173
233
|
font-weight: 600;
|
|
174
234
|
margin: 0;
|
|
175
235
|
}
|
|
236
|
+
h4.semi-typography.semi-typography-h4-weight-light,
|
|
237
|
+
.semi-typography-h4.semi-typography.semi-typography-h4-weight-light {
|
|
238
|
+
font-weight: 200;
|
|
239
|
+
}
|
|
240
|
+
h4.semi-typography.semi-typography-h4-weight-regular,
|
|
241
|
+
.semi-typography-h4.semi-typography.semi-typography-h4-weight-regular {
|
|
242
|
+
font-weight: 400;
|
|
243
|
+
}
|
|
244
|
+
h4.semi-typography.semi-typography-h4-weight-medium,
|
|
245
|
+
.semi-typography-h4.semi-typography.semi-typography-h4-weight-medium {
|
|
246
|
+
font-weight: 500;
|
|
247
|
+
}
|
|
248
|
+
h4.semi-typography.semi-typography-h4-weight-semibold,
|
|
249
|
+
.semi-typography-h4.semi-typography.semi-typography-h4-weight-semibold {
|
|
250
|
+
font-weight: 600;
|
|
251
|
+
}
|
|
252
|
+
h4.semi-typography.semi-typography-h4-weight-bold,
|
|
253
|
+
.semi-typography-h4.semi-typography.semi-typography-h4-weight-bold {
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
}
|
|
176
256
|
|
|
177
257
|
h5.semi-typography,
|
|
178
258
|
.semi-typography-h5.semi-typography {
|
|
@@ -182,6 +262,26 @@ h5.semi-typography,
|
|
|
182
262
|
font-weight: 600;
|
|
183
263
|
margin: 0;
|
|
184
264
|
}
|
|
265
|
+
h5.semi-typography.semi-typography-h5-weight-light,
|
|
266
|
+
.semi-typography-h5.semi-typography.semi-typography-h5-weight-light {
|
|
267
|
+
font-weight: 200;
|
|
268
|
+
}
|
|
269
|
+
h5.semi-typography.semi-typography-h5-weight-regular,
|
|
270
|
+
.semi-typography-h5.semi-typography.semi-typography-h5-weight-regular {
|
|
271
|
+
font-weight: 400;
|
|
272
|
+
}
|
|
273
|
+
h5.semi-typography.semi-typography-h5-weight-medium,
|
|
274
|
+
.semi-typography-h5.semi-typography.semi-typography-h5-weight-medium {
|
|
275
|
+
font-weight: 500;
|
|
276
|
+
}
|
|
277
|
+
h5.semi-typography.semi-typography-h5-weight-semibold,
|
|
278
|
+
.semi-typography-h5.semi-typography.semi-typography-h5-weight-semibold {
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
}
|
|
281
|
+
h5.semi-typography.semi-typography-h5-weight-bold,
|
|
282
|
+
.semi-typography-h5.semi-typography.semi-typography-h5-weight-bold {
|
|
283
|
+
font-weight: 700;
|
|
284
|
+
}
|
|
185
285
|
|
|
186
286
|
h6.semi-typography,
|
|
187
287
|
.semi-typography-h6.semi-typography {
|
|
@@ -191,6 +291,26 @@ h6.semi-typography,
|
|
|
191
291
|
font-weight: 600;
|
|
192
292
|
margin: 0;
|
|
193
293
|
}
|
|
294
|
+
h6.semi-typography.semi-typography-h6-weight-light,
|
|
295
|
+
.semi-typography-h6.semi-typography.semi-typography-h6-weight-light {
|
|
296
|
+
font-weight: 200;
|
|
297
|
+
}
|
|
298
|
+
h6.semi-typography.semi-typography-h6-weight-regular,
|
|
299
|
+
.semi-typography-h6.semi-typography.semi-typography-h6-weight-regular {
|
|
300
|
+
font-weight: 400;
|
|
301
|
+
}
|
|
302
|
+
h6.semi-typography.semi-typography-h6-weight-medium,
|
|
303
|
+
.semi-typography-h6.semi-typography.semi-typography-h6-weight-medium {
|
|
304
|
+
font-weight: 500;
|
|
305
|
+
}
|
|
306
|
+
h6.semi-typography.semi-typography-h6-weight-semibold,
|
|
307
|
+
.semi-typography-h6.semi-typography.semi-typography-h6-weight-semibold {
|
|
308
|
+
font-weight: 600;
|
|
309
|
+
}
|
|
310
|
+
h6.semi-typography.semi-typography-h6-weight-bold,
|
|
311
|
+
.semi-typography-h6.semi-typography.semi-typography-h6-weight-bold {
|
|
312
|
+
font-weight: 700;
|
|
313
|
+
}
|
|
194
314
|
|
|
195
315
|
p.semi-typography-extended,
|
|
196
316
|
.semi-typography-paragraph.semi-typography-extended {
|
|
@@ -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; // 可复制文本复制图标左侧外边距
|
|
@@ -8,7 +8,7 @@ export interface OverflowListAdapter extends DefaultAdapter {
|
|
|
8
8
|
updateStates: (state: any) => void;
|
|
9
9
|
updateVisibleState: (visible: Map<string, boolean>) => void;
|
|
10
10
|
notifyIntersect: (res: any) => void;
|
|
11
|
-
getItemSizeMap: ()=>Map<string, number>
|
|
11
|
+
getItemSizeMap: () => Map<string, number>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class OverflowListFoundation extends BaseFoundation<OverflowListAdapter> {
|
|
@@ -46,7 +46,7 @@ class OverflowListFoundation extends BaseFoundation<OverflowListAdapter> {
|
|
|
46
46
|
|
|
47
47
|
const res = {};
|
|
48
48
|
entries.forEach(entry => {
|
|
49
|
-
const itemKey = get(entry, 'target.dataset.scrollkey');
|
|
49
|
+
const itemKey: string = get(entry, 'target.dataset.scrollkey');
|
|
50
50
|
const visible = entry.isIntersecting;
|
|
51
51
|
res[itemKey] = entry;
|
|
52
52
|
visibleState.set(itemKey, visible);
|
|
@@ -77,7 +77,7 @@ class OverflowListFoundation extends BaseFoundation<OverflowListAdapter> {
|
|
|
77
77
|
const { items } = this.getProps();
|
|
78
78
|
return cloneDeep(items).reverse();
|
|
79
79
|
}
|
|
80
|
-
handleCollapseOverflow(){
|
|
80
|
+
handleCollapseOverflow() {
|
|
81
81
|
const { minVisibleItems, collapseFrom } = this.getProps();
|
|
82
82
|
const { overflowWidth, containerWidth, pivot: statePivot, overflowStatus } = this.getStates();
|
|
83
83
|
const { items, onOverflow } = this.getProps();
|
|
@@ -114,7 +114,7 @@ class OverflowListFoundation extends BaseFoundation<OverflowListAdapter> {
|
|
|
114
114
|
overflow,
|
|
115
115
|
});
|
|
116
116
|
// trigger onOverflow
|
|
117
|
-
if (statePivot !== pivot){
|
|
117
|
+
if (statePivot !== pivot) {
|
|
118
118
|
onOverflow(overflow);
|
|
119
119
|
}
|
|
120
120
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "e973ed0dc3b8cd37e9c737f1548e386d814f787b",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/table/foundation.ts
CHANGED
package/table/table.scss
CHANGED
|
@@ -83,6 +83,18 @@ $module: #{$prefix}-table;
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
&-align-center {
|
|
87
|
+
.#{$module}-operate-wrapper {
|
|
88
|
+
justify-content: center;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-align-right {
|
|
93
|
+
.#{$module}-operate-wrapper {
|
|
94
|
+
justify-content: flex-end;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
86
98
|
&-operate-wrapper {
|
|
87
99
|
display: flex;
|
|
88
100
|
justify-content: flex-start;
|
package/tabs/tabs.scss
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
$module: #{$prefix}-tabs;
|
|
7
|
+
// Prevent the Radio and Checkbox in ReactNode passed in through the tab attribute in Tabs from being affected by the icon style override
|
|
8
|
+
$ignoreIcon: '.#{$prefix}-icon-checkbox_tick, .#{$prefix}-icon-radio, .#{$prefix}-icon-checkbox_indeterminate';
|
|
7
9
|
|
|
8
10
|
.#{$module} {
|
|
9
11
|
box-sizing: border-box;
|
|
@@ -41,7 +43,7 @@ $module: #{$prefix}-tabs;
|
|
|
41
43
|
|
|
42
44
|
user-select: none;
|
|
43
45
|
|
|
44
|
-
.#{$prefix}-icon {
|
|
46
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
45
47
|
position: relative;
|
|
46
48
|
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
47
49
|
top: $spacing-tabs_tab_icon-top;
|
|
@@ -50,7 +52,7 @@ $module: #{$prefix}-tabs;
|
|
|
50
52
|
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
.#{$prefix}-icon-close {
|
|
55
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close {
|
|
54
56
|
margin-right: 0;
|
|
55
57
|
font-size: 14px;
|
|
56
58
|
color: var(--semi-color-text-2);
|
|
@@ -61,7 +63,7 @@ $module: #{$prefix}-tabs;
|
|
|
61
63
|
&:hover {
|
|
62
64
|
color: $color-tabs_tab_line_default-text-hover;
|
|
63
65
|
|
|
64
|
-
.#{$prefix}-icon {
|
|
66
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
65
67
|
color: $color-tabs_tab-icon-hover;
|
|
66
68
|
}
|
|
67
69
|
}
|
|
@@ -69,7 +71,7 @@ $module: #{$prefix}-tabs;
|
|
|
69
71
|
&:active {
|
|
70
72
|
color: $color-tabs_tab_line_default-text-active;
|
|
71
73
|
|
|
72
|
-
.#{$prefix}-icon {
|
|
74
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
73
75
|
color: $color-tabs_tab-icon-active;
|
|
74
76
|
}
|
|
75
77
|
}
|
|
@@ -84,16 +86,16 @@ $module: #{$prefix}-tabs;
|
|
|
84
86
|
font-weight: $font-tabs_tab_active-fontWeight;
|
|
85
87
|
color: $color-tabs_tab_line_selected-text-default;
|
|
86
88
|
|
|
87
|
-
.#{$prefix}-icon {
|
|
89
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
88
90
|
color: $color-tabs_tab_selected-icon-default;
|
|
89
91
|
}
|
|
90
92
|
|
|
91
|
-
.#{$prefix}-icon-close {
|
|
93
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close {
|
|
92
94
|
color: var(--semi-color-text-2);
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
.#{$prefix}-icon-close:hover {
|
|
98
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close:hover {
|
|
97
99
|
color: var(--semi-color-text-1);
|
|
98
100
|
}
|
|
99
101
|
}
|
|
@@ -123,7 +125,7 @@ $module: #{$prefix}-tabs;
|
|
|
123
125
|
|
|
124
126
|
user-select: none;
|
|
125
127
|
|
|
126
|
-
.#{$prefix}-icon {
|
|
128
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
127
129
|
position: relative;
|
|
128
130
|
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
129
131
|
top: $spacing-tabs_tab_icon-top;
|
|
@@ -132,7 +134,7 @@ $module: #{$prefix}-tabs;
|
|
|
132
134
|
|
|
133
135
|
}
|
|
134
136
|
|
|
135
|
-
.#{$prefix}-icon-close {
|
|
137
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close {
|
|
136
138
|
margin-right: 0;
|
|
137
139
|
font-size: 14px;
|
|
138
140
|
color: var(--semi-color-text-2);
|
|
@@ -143,7 +145,7 @@ $module: #{$prefix}-tabs;
|
|
|
143
145
|
&:hover {
|
|
144
146
|
color: $color-tabs_tab_line_default-text-hover;
|
|
145
147
|
|
|
146
|
-
.#{$prefix}-icon {
|
|
148
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
147
149
|
color: $color-tabs_tab-icon-hover;
|
|
148
150
|
}
|
|
149
151
|
}
|
|
@@ -151,7 +153,7 @@ $module: #{$prefix}-tabs;
|
|
|
151
153
|
&:active {
|
|
152
154
|
color: $color-tabs_tab_line_default-text-active;
|
|
153
155
|
|
|
154
|
-
.#{$prefix}-icon {
|
|
156
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
155
157
|
color: $color-tabs_tab-icon-active;
|
|
156
158
|
}
|
|
157
159
|
}
|
|
@@ -166,16 +168,16 @@ $module: #{$prefix}-tabs;
|
|
|
166
168
|
font-weight: $font-tabs_tab_active-fontWeight;
|
|
167
169
|
color: $color-tabs_tab_line_selected-text-default;
|
|
168
170
|
|
|
169
|
-
.#{$prefix}-icon {
|
|
171
|
+
.#{$prefix}-icon:not(#{$ignoreIcon}) {
|
|
170
172
|
color: $color-tabs_tab_selected-icon-default;
|
|
171
173
|
}
|
|
172
174
|
|
|
173
|
-
.#{$prefix}-icon-close {
|
|
175
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close {
|
|
174
176
|
color: var(--semi-color-text-2);
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
|
|
178
|
-
.#{$prefix}-icon-close:hover {
|
|
180
|
+
.#{$prefix}-icon.#{$module}-tab-icon-close:hover {
|
|
179
181
|
color: var(--semi-color-text-1);
|
|
180
182
|
}
|
|
181
183
|
}
|
package/timePicker/foundation.ts
CHANGED
|
@@ -84,10 +84,8 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
84
84
|
return hDis || mDis || sDis;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
isValidTimeZone(timeZone
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return ['string', 'number'].includes(typeof _timeZone) && _timeZone !== '';
|
|
87
|
+
isValidTimeZone(timeZone: string | number) {
|
|
88
|
+
return ['string', 'number'].includes(typeof timeZone) && timeZone !== '';
|
|
91
89
|
}
|
|
92
90
|
|
|
93
91
|
getDefaultFormatIfNeed(): string {
|
|
@@ -121,7 +119,7 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
121
119
|
(value as any[]).forEach(v => {
|
|
122
120
|
const pv = parseToDate(v, formatToken, dateFnsLocale);
|
|
123
121
|
if (!isNaN(pv.getTime())) {
|
|
124
|
-
parsedValues.push(this.isValidTimeZone() ? utcToZonedTime(pv, timeZone) : pv);
|
|
122
|
+
parsedValues.push(this.isValidTimeZone(timeZone) ? utcToZonedTime(pv, timeZone) : pv);
|
|
125
123
|
}
|
|
126
124
|
});
|
|
127
125
|
|
|
@@ -422,7 +420,7 @@ class TimePickerFoundation<P = Record<string, any>, S = Record<string, any>> ext
|
|
|
422
420
|
_value = Array.isArray(_value) ? _value[0] : _value;
|
|
423
421
|
}
|
|
424
422
|
|
|
425
|
-
if (this.isValidTimeZone() && _value) {
|
|
423
|
+
if (this.isValidTimeZone(timeZone) && _value) {
|
|
426
424
|
const formatToken = this.getValidFormat();
|
|
427
425
|
if (Array.isArray(_value)) {
|
|
428
426
|
_value = _value.map(v => zonedTimeToUtc(v, timeZone));
|
package/typography/constants.ts
CHANGED
|
@@ -5,6 +5,7 @@ const cssClasses = {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
const strings = {
|
|
8
|
+
WEIGHT: ['light', 'regular', 'medium', 'semibold', 'bold', "default"],
|
|
8
9
|
TYPE: ['primary', 'secondary', 'danger', 'warning', 'success', 'tertiary', 'quaternary'],
|
|
9
10
|
SIZE: ['normal', 'small'],
|
|
10
11
|
SPACING: ['normal', 'extended'],
|