@oceanbase/design 0.4.15 → 1.0.0-alpha.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/dist/design.min.css +1 -1
- package/dist/design.min.js +1 -1
- package/es/_util/genStyle.d.ts +0 -2
- package/es/_util/genStyle.js +0 -77
- package/es/badge/style/index.js +0 -1
- package/es/button/style/index.js +1 -30
- package/es/card/style/index.js +4 -2
- package/es/config-provider/index.js +1 -5
- package/es/descriptions/hooks/useItems.js +3 -2
- package/es/descriptions/style/index.js +1 -3
- package/es/empty/style/index.js +2 -7
- package/es/form/FormItem.d.ts +2 -1
- package/es/form/FormItem.js +1 -0
- package/es/global.css +7 -7
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/es/result/style/index.js +2 -5
- package/es/table/index.d.ts +2 -2
- package/es/table/style/index.js +8 -31
- package/es/tabs/index.d.ts +8 -6
- package/es/tabs/index.js +10 -7
- package/es/tabs/style/index.js +2 -3
- package/es/theme/default.js +62 -39
- package/es/theme/style/aliyun.less +125 -125
- package/es/theme/style/compact.less +135 -135
- package/es/theme/style/dark.less +136 -136
- package/es/theme/style/default.less +135 -135
- package/es/typography/Link.d.ts +5 -1
- package/es/typography/Link.js +1 -0
- package/es/typography/Paragraph.d.ts +5 -1
- package/es/typography/Paragraph.js +1 -0
- package/es/typography/Text.d.ts +5 -1
- package/es/typography/Text.js +1 -0
- package/es/typography/Title.d.ts +5 -1
- package/es/typography/Title.js +1 -0
- package/es/typography/style/index.js +2 -6
- package/lib/_util/genStyle.d.ts +0 -2
- package/lib/_util/genStyle.js +2 -118
- package/lib/badge/style/index.js +0 -1
- package/lib/button/style/index.js +1 -37
- package/lib/card/style/index.js +9 -1
- package/lib/config-provider/index.js +1 -8
- package/lib/descriptions/hooks/useItems.js +3 -2
- package/lib/descriptions/style/index.js +0 -2
- package/lib/empty/style/index.js +0 -5
- package/lib/form/FormItem.d.ts +2 -1
- package/lib/form/FormItem.js +6 -0
- package/lib/global.css +7 -7
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/result/style/index.js +0 -4
- package/lib/table/index.d.ts +2 -2
- package/lib/table/style/index.js +1 -58
- package/lib/tabs/index.d.ts +8 -6
- package/lib/tabs/index.js +68 -62
- package/lib/tabs/style/index.js +6 -4
- package/lib/theme/default.js +62 -38
- package/lib/theme/style/aliyun.less +125 -125
- package/lib/theme/style/compact.less +135 -135
- package/lib/theme/style/dark.less +136 -136
- package/lib/theme/style/default.less +135 -135
- package/lib/typography/Link.d.ts +5 -1
- package/lib/typography/Link.js +1 -0
- package/lib/typography/Paragraph.d.ts +5 -1
- package/lib/typography/Paragraph.js +1 -0
- package/lib/typography/Text.d.ts +5 -1
- package/lib/typography/Text.js +1 -0
- package/lib/typography/Title.d.ts +5 -1
- package/lib/typography/Title.js +1 -0
- package/lib/typography/style/index.js +2 -9
- package/package.json +5 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@blue: #
|
|
1
|
+
@blue: #0d6cf2;
|
|
2
2
|
@purple: #722ED1;
|
|
3
3
|
@cyan: #13C2C2;
|
|
4
4
|
@green: #0ac185;
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
@geekblue: #2F54EB;
|
|
12
12
|
@gold: #FAAD14;
|
|
13
13
|
@lime: #A0D911;
|
|
14
|
-
@colorPrimary: #
|
|
14
|
+
@colorPrimary: #0d6cf2;
|
|
15
15
|
@colorSuccess: #0ac185;
|
|
16
16
|
@colorWarning: #ffa21a;
|
|
17
17
|
@colorError: #f93939;
|
|
18
|
-
@colorInfo: #
|
|
19
|
-
@colorLink: #
|
|
18
|
+
@colorInfo: #0d6cf2;
|
|
19
|
+
@colorLink: #0d6cf2;
|
|
20
20
|
@colorTextBase: #000000;
|
|
21
21
|
@colorBgBase: #ffffff;
|
|
22
22
|
@fontFamily: -apple-system, 'Noto Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
23
23
|
@fontFamilyCode: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
24
|
-
@fontSize:
|
|
25
|
-
@lineWidth:
|
|
24
|
+
@fontSize: 13px;
|
|
25
|
+
@lineWidth: 1px;
|
|
26
26
|
@lineType: solid;
|
|
27
|
-
@motionUnit: 0.
|
|
28
|
-
@motionBase:
|
|
27
|
+
@motionUnit: 0.1s;
|
|
28
|
+
@motionBase: 0s;
|
|
29
29
|
@motionEaseOutCirc: cubic-bezier(0.08, 0.82, 0.17, 1);
|
|
30
30
|
@motionEaseInOutCirc: cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
|
31
31
|
@motionEaseOut: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
@motionEaseInBack: cubic-bezier(0.71, -0.46, 0.88, 0.6);
|
|
35
35
|
@motionEaseInQuint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
|
|
36
36
|
@motionEaseOutQuint: cubic-bezier(0.23, 1, 0.32, 1);
|
|
37
|
-
@borderRadius:
|
|
38
|
-
@sizeUnit:
|
|
39
|
-
@sizeStep:
|
|
40
|
-
@sizePopupArrow:
|
|
41
|
-
@controlHeight:
|
|
37
|
+
@borderRadius: 4px;
|
|
38
|
+
@sizeUnit: 4px;
|
|
39
|
+
@sizeStep: 4px;
|
|
40
|
+
@sizePopupArrow: 16px;
|
|
41
|
+
@controlHeight: 32px;
|
|
42
42
|
@zIndexBase: 0;
|
|
43
43
|
@zIndexPopupBase: 1000;
|
|
44
44
|
@opacityImage: 1;
|
|
@@ -46,24 +46,24 @@
|
|
|
46
46
|
@motion: true;
|
|
47
47
|
@blue-1: #e6f4ff;
|
|
48
48
|
@blue1: #e6f4ff;
|
|
49
|
-
@blue-2: #
|
|
50
|
-
@blue2: #
|
|
51
|
-
@blue-3: #
|
|
52
|
-
@blue3: #
|
|
53
|
-
@blue-4: #
|
|
54
|
-
@blue4: #
|
|
55
|
-
@blue-5: #
|
|
56
|
-
@blue5: #
|
|
57
|
-
@blue-6: #
|
|
58
|
-
@blue6: #
|
|
59
|
-
@blue-7: #
|
|
60
|
-
@blue7: #
|
|
61
|
-
@blue-8: #
|
|
62
|
-
@blue8: #
|
|
63
|
-
@blue-9: #
|
|
64
|
-
@blue9: #
|
|
65
|
-
@blue-10: #
|
|
66
|
-
@blue10: #
|
|
49
|
+
@blue-2: #b0dbff;
|
|
50
|
+
@blue2: #b0dbff;
|
|
51
|
+
@blue-3: #87c5ff;
|
|
52
|
+
@blue3: #87c5ff;
|
|
53
|
+
@blue-4: #5eacff;
|
|
54
|
+
@blue4: #5eacff;
|
|
55
|
+
@blue-5: #3690ff;
|
|
56
|
+
@blue5: #3690ff;
|
|
57
|
+
@blue-6: #0d6cf2;
|
|
58
|
+
@blue6: #0d6cf2;
|
|
59
|
+
@blue-7: #004ecc;
|
|
60
|
+
@blue7: #004ecc;
|
|
61
|
+
@blue-8: #003aa6;
|
|
62
|
+
@blue8: #003aa6;
|
|
63
|
+
@blue-9: #002880;
|
|
64
|
+
@blue9: #002880;
|
|
65
|
+
@blue-10: #001959;
|
|
66
|
+
@blue10: #001959;
|
|
67
67
|
@purple-1: #f9f0ff;
|
|
68
68
|
@purple1: #f9f0ff;
|
|
69
69
|
@purple-2: #efdbff;
|
|
@@ -315,22 +315,22 @@
|
|
|
315
315
|
@colorBgSolid: rgb(0,0,0);
|
|
316
316
|
@colorBgSolidHover: rgba(0,0,0,0.75);
|
|
317
317
|
@colorBgSolidActive: rgba(0,0,0,0.95);
|
|
318
|
-
@colorBgLayout: #
|
|
318
|
+
@colorBgLayout: #f8fafe;
|
|
319
319
|
@colorBgContainer: #ffffff;
|
|
320
320
|
@colorBgElevated: #ffffff;
|
|
321
321
|
@colorBgSpotlight: #ffffff;
|
|
322
322
|
@colorBgBlur: transparent;
|
|
323
323
|
@colorBorder: #cdd5e4;
|
|
324
324
|
@colorBorderSecondary: #e2e8f3;
|
|
325
|
-
@colorPrimaryBg: #
|
|
326
|
-
@colorPrimaryBgHover: #
|
|
327
|
-
@colorPrimaryBorder: #
|
|
328
|
-
@colorPrimaryBorderHover: #
|
|
329
|
-
@colorPrimaryHover: #
|
|
330
|
-
@colorPrimaryActive: #
|
|
331
|
-
@colorPrimaryTextHover: #
|
|
332
|
-
@colorPrimaryText: #
|
|
333
|
-
@colorPrimaryTextActive: #
|
|
325
|
+
@colorPrimaryBg: #e6f4ff;
|
|
326
|
+
@colorPrimaryBgHover: #b0dbff;
|
|
327
|
+
@colorPrimaryBorder: #87c5ff;
|
|
328
|
+
@colorPrimaryBorderHover: #5eacff;
|
|
329
|
+
@colorPrimaryHover: #3690ff;
|
|
330
|
+
@colorPrimaryActive: #004ecc;
|
|
331
|
+
@colorPrimaryTextHover: #3690ff;
|
|
332
|
+
@colorPrimaryText: #0d6cf2;
|
|
333
|
+
@colorPrimaryTextActive: #004ecc;
|
|
334
334
|
@colorSuccessBg: #eef8f5;
|
|
335
335
|
@colorSuccessBgHover: #dbf0e9;
|
|
336
336
|
@colorSuccessBorder: #b3e6d5;
|
|
@@ -360,62 +360,62 @@
|
|
|
360
360
|
@colorWarningTextHover: #ffc166;
|
|
361
361
|
@colorWarningText: #ffa21a;
|
|
362
362
|
@colorWarningTextActive: #ff9700;
|
|
363
|
-
@colorInfoBg: #
|
|
364
|
-
@colorInfoBgHover: #
|
|
365
|
-
@colorInfoBorder: #
|
|
366
|
-
@colorInfoBorderHover: #
|
|
367
|
-
@colorInfoHover: #
|
|
368
|
-
@colorInfoActive: #
|
|
369
|
-
@colorInfoTextHover: #
|
|
370
|
-
@colorInfoText: #
|
|
371
|
-
@colorInfoTextActive: #
|
|
372
|
-
@colorLinkHover: #
|
|
373
|
-
@colorLinkActive: #
|
|
363
|
+
@colorInfoBg: #e6f4ff;
|
|
364
|
+
@colorInfoBgHover: #b0dbff;
|
|
365
|
+
@colorInfoBorder: #87c5ff;
|
|
366
|
+
@colorInfoBorderHover: #5eacff;
|
|
367
|
+
@colorInfoHover: #5eacff;
|
|
368
|
+
@colorInfoActive: #004ecc;
|
|
369
|
+
@colorInfoTextHover: #3690ff;
|
|
370
|
+
@colorInfoText: #0d6cf2;
|
|
371
|
+
@colorInfoTextActive: #004ecc;
|
|
372
|
+
@colorLinkHover: #5eacff;
|
|
373
|
+
@colorLinkActive: #004ecc;
|
|
374
374
|
@colorBgMask: rgba(19, 32, 57, 0.45);
|
|
375
375
|
@colorWhite: #fff;
|
|
376
|
-
@fontSizeSM:
|
|
377
|
-
@fontSizeLG:
|
|
378
|
-
@fontSizeXL:
|
|
379
|
-
@fontSizeHeading1:
|
|
380
|
-
@fontSizeHeading2:
|
|
381
|
-
@fontSizeHeading3:
|
|
382
|
-
@fontSizeHeading4:
|
|
383
|
-
@fontSizeHeading5:
|
|
384
|
-
@lineHeight: 1.
|
|
385
|
-
@lineHeightLG: 1.
|
|
386
|
-
@lineHeightSM: 1.
|
|
387
|
-
@fontHeight:
|
|
388
|
-
@fontHeightLG:
|
|
389
|
-
@fontHeightSM:
|
|
390
|
-
@lineHeightHeading1: 1.
|
|
391
|
-
@lineHeightHeading2: 1.
|
|
392
|
-
@lineHeightHeading3: 1.
|
|
393
|
-
@lineHeightHeading4: 1.
|
|
394
|
-
@lineHeightHeading5: 1.
|
|
395
|
-
@sizeXXL:
|
|
396
|
-
@sizeXL:
|
|
397
|
-
@sizeLG:
|
|
398
|
-
@sizeMD:
|
|
399
|
-
@sizeMS:
|
|
400
|
-
@size:
|
|
401
|
-
@sizeSM:
|
|
402
|
-
@sizeXS:
|
|
403
|
-
@sizeXXS:
|
|
404
|
-
@controlHeightSM:
|
|
405
|
-
@controlHeightXS:
|
|
406
|
-
@controlHeightLG:
|
|
376
|
+
@fontSizeSM: 11px;
|
|
377
|
+
@fontSizeLG: 14px;
|
|
378
|
+
@fontSizeXL: 18px;
|
|
379
|
+
@fontSizeHeading1: 34px;
|
|
380
|
+
@fontSizeHeading2: 28px;
|
|
381
|
+
@fontSizeHeading3: 22px;
|
|
382
|
+
@fontSizeHeading4: 18px;
|
|
383
|
+
@fontSizeHeading5: 14px;
|
|
384
|
+
@lineHeight: 1.6153846153846154;
|
|
385
|
+
@lineHeightLG: 1.5714285714285714;
|
|
386
|
+
@lineHeightSM: 1.8;
|
|
387
|
+
@fontHeight: 21px;
|
|
388
|
+
@fontHeightLG: 22px;
|
|
389
|
+
@fontHeightSM: 18px;
|
|
390
|
+
@lineHeightHeading1: 1.2352941176470589;
|
|
391
|
+
@lineHeightHeading2: 1.2857142857142858;
|
|
392
|
+
@lineHeightHeading3: 1.3636363636363635;
|
|
393
|
+
@lineHeightHeading4: 1.4444444444444444;
|
|
394
|
+
@lineHeightHeading5: 1.5714285714285714;
|
|
395
|
+
@sizeXXL: 48px;
|
|
396
|
+
@sizeXL: 32px;
|
|
397
|
+
@sizeLG: 24px;
|
|
398
|
+
@sizeMD: 20px;
|
|
399
|
+
@sizeMS: 16px;
|
|
400
|
+
@size: 16px;
|
|
401
|
+
@sizeSM: 12px;
|
|
402
|
+
@sizeXS: 8px;
|
|
403
|
+
@sizeXXS: 4px;
|
|
404
|
+
@controlHeightSM: 24px;
|
|
405
|
+
@controlHeightXS: 16px;
|
|
406
|
+
@controlHeightLG: 40px;
|
|
407
407
|
@motionDurationFast: 0.1s;
|
|
408
408
|
@motionDurationMid: 0.2s;
|
|
409
409
|
@motionDurationSlow: 0.3s;
|
|
410
|
-
@lineWidthBold:
|
|
411
|
-
@borderRadiusXS:
|
|
412
|
-
@borderRadiusSM:
|
|
413
|
-
@borderRadiusLG:
|
|
414
|
-
@borderRadiusOuter:
|
|
410
|
+
@lineWidthBold: 2px;
|
|
411
|
+
@borderRadiusXS: 1px;
|
|
412
|
+
@borderRadiusSM: 2px;
|
|
413
|
+
@borderRadiusLG: 8px;
|
|
414
|
+
@borderRadiusOuter: 4px;
|
|
415
415
|
@boxShadow: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
|
|
416
416
|
@boxShadowSecondary: 0 6px 16px 0 rgba(54, 69, 99, 0.08), 0 3px 6px -4px rgba(54, 69, 99, 0.12), 0 9px 28px 8px rgba(54, 69, 99, 0.05);
|
|
417
417
|
@boxShadowTertiary: 0 1px 2px 0 rgba(54, 69, 99, 0.03), 0 1px 6px -1px rgba(54, 69, 99, 0.02), 0 2px 4px 0 rgba(54, 69, 99, 0.02);
|
|
418
|
-
@lineWidthFocus:
|
|
418
|
+
@lineWidthFocus: 3px;
|
|
419
419
|
@colorFillContent: #e2e8f3;
|
|
420
420
|
@colorFillContentHover: #cdd5e4;
|
|
421
421
|
@colorFillAlter: #f8fafe;
|
|
@@ -435,60 +435,60 @@
|
|
|
435
435
|
@colorIconHover: #132039;
|
|
436
436
|
@colorErrorOutline: rgba(255,5,5,0.08);
|
|
437
437
|
@colorWarningOutline: rgba(255,164,19,0.11);
|
|
438
|
-
@fontSizeIcon:
|
|
439
|
-
@controlOutlineWidth:
|
|
440
|
-
@controlInteractiveSize:
|
|
438
|
+
@fontSizeIcon: 11px;
|
|
439
|
+
@controlOutlineWidth: 2px;
|
|
440
|
+
@controlInteractiveSize: 16px;
|
|
441
441
|
@controlItemBgHover: #f3f6fc;
|
|
442
|
-
@controlItemBgActive: #
|
|
443
|
-
@controlItemBgActiveHover: #
|
|
442
|
+
@controlItemBgActive: #e6f4ff;
|
|
443
|
+
@controlItemBgActiveHover: #b0dbff;
|
|
444
444
|
@controlItemBgActiveDisabled: #cdd5e4;
|
|
445
445
|
@controlTmpOutline: #f8fafe;
|
|
446
|
-
@controlOutline: rgba(
|
|
446
|
+
@controlOutline: rgba(5,145,255,0.1);
|
|
447
447
|
@fontWeightStrong: 600;
|
|
448
448
|
@opacityLoading: 0.65;
|
|
449
449
|
@linkDecoration: none;
|
|
450
450
|
@linkHoverDecoration: none;
|
|
451
451
|
@linkFocusDecoration: none;
|
|
452
|
-
@controlPaddingHorizontal:
|
|
453
|
-
@controlPaddingHorizontalSM:
|
|
454
|
-
@paddingXXS:
|
|
455
|
-
@paddingXS:
|
|
456
|
-
@paddingSM:
|
|
457
|
-
@padding:
|
|
458
|
-
@paddingMD:
|
|
459
|
-
@paddingLG:
|
|
460
|
-
@paddingXL:
|
|
461
|
-
@paddingContentHorizontalLG:
|
|
462
|
-
@paddingContentVerticalLG:
|
|
463
|
-
@paddingContentHorizontal:
|
|
464
|
-
@paddingContentVertical:
|
|
465
|
-
@paddingContentHorizontalSM:
|
|
466
|
-
@paddingContentVerticalSM:
|
|
467
|
-
@marginXXS:
|
|
468
|
-
@marginXS:
|
|
469
|
-
@marginSM:
|
|
470
|
-
@margin:
|
|
471
|
-
@marginMD:
|
|
472
|
-
@marginLG:
|
|
473
|
-
@marginXL:
|
|
474
|
-
@marginXXL:
|
|
475
|
-
@screenXS:
|
|
476
|
-
@screenXSMin:
|
|
477
|
-
@screenXSMax:
|
|
478
|
-
@screenSM:
|
|
479
|
-
@screenSMMin:
|
|
480
|
-
@screenSMMax:
|
|
481
|
-
@screenMD:
|
|
482
|
-
@screenMDMin:
|
|
483
|
-
@screenMDMax:
|
|
484
|
-
@screenLG:
|
|
485
|
-
@screenLGMin:
|
|
486
|
-
@screenLGMax:
|
|
487
|
-
@screenXL:
|
|
488
|
-
@screenXLMin:
|
|
489
|
-
@screenXLMax:
|
|
490
|
-
@screenXXL:
|
|
491
|
-
@screenXXLMin:
|
|
452
|
+
@controlPaddingHorizontal: 12px;
|
|
453
|
+
@controlPaddingHorizontalSM: 8px;
|
|
454
|
+
@paddingXXS: 4px;
|
|
455
|
+
@paddingXS: 8px;
|
|
456
|
+
@paddingSM: 12px;
|
|
457
|
+
@padding: 16px;
|
|
458
|
+
@paddingMD: 20px;
|
|
459
|
+
@paddingLG: 24px;
|
|
460
|
+
@paddingXL: 32px;
|
|
461
|
+
@paddingContentHorizontalLG: 24px;
|
|
462
|
+
@paddingContentVerticalLG: 16px;
|
|
463
|
+
@paddingContentHorizontal: 16px;
|
|
464
|
+
@paddingContentVertical: 12px;
|
|
465
|
+
@paddingContentHorizontalSM: 16px;
|
|
466
|
+
@paddingContentVerticalSM: 8px;
|
|
467
|
+
@marginXXS: 4px;
|
|
468
|
+
@marginXS: 8px;
|
|
469
|
+
@marginSM: 12px;
|
|
470
|
+
@margin: 16px;
|
|
471
|
+
@marginMD: 20px;
|
|
472
|
+
@marginLG: 24px;
|
|
473
|
+
@marginXL: 32px;
|
|
474
|
+
@marginXXL: 48px;
|
|
475
|
+
@screenXS: 480px;
|
|
476
|
+
@screenXSMin: 480px;
|
|
477
|
+
@screenXSMax: 575px;
|
|
478
|
+
@screenSM: 576px;
|
|
479
|
+
@screenSMMin: 576px;
|
|
480
|
+
@screenSMMax: 767px;
|
|
481
|
+
@screenMD: 768px;
|
|
482
|
+
@screenMDMin: 768px;
|
|
483
|
+
@screenMDMax: 991px;
|
|
484
|
+
@screenLG: 992px;
|
|
485
|
+
@screenLGMin: 992px;
|
|
486
|
+
@screenLGMax: 1199px;
|
|
487
|
+
@screenXL: 1200px;
|
|
488
|
+
@screenXLMin: 1200px;
|
|
489
|
+
@screenXLMax: 1599px;
|
|
490
|
+
@screenXXL: 1600px;
|
|
491
|
+
@screenXXLMin: 1600px;
|
|
492
492
|
@boxShadowPopoverArrow: 2px 2px 5px rgba(0, 0, 0, 0.05);
|
|
493
493
|
@boxShadowCard:
|
|
494
494
|
0 1px 2px -2px rgba(0,0,0,0.16),
|
package/es/typography/Link.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { LinkProps as AntLinkProps } from 'antd/es/typography/Link';
|
|
|
3
3
|
export * from 'antd/es/typography/Link';
|
|
4
4
|
export interface LinkProps extends AntLinkProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Link: CompoundedComponent;
|
|
7
11
|
export default Link;
|
package/es/typography/Link.js
CHANGED
|
@@ -3,5 +3,9 @@ import type { ParagraphProps as AntParagraphProps } from 'antd/es/typography/Par
|
|
|
3
3
|
export * from 'antd/es/typography/Paragraph';
|
|
4
4
|
export interface ParagraphProps extends AntParagraphProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<ParagraphProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Paragraph: CompoundedComponent;
|
|
7
11
|
export default Paragraph;
|
package/es/typography/Text.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { TextProps as AntTextProps } from 'antd/es/typography/Text';
|
|
|
3
3
|
export * from 'antd/es/typography/Text';
|
|
4
4
|
export interface TextProps extends AntTextProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Text: CompoundedComponent;
|
|
7
11
|
export default Text;
|
package/es/typography/Text.js
CHANGED
package/es/typography/Title.d.ts
CHANGED
|
@@ -3,5 +3,9 @@ import type { TitleProps as AntTitleProps } from 'antd/es/typography/Title';
|
|
|
3
3
|
export * from 'antd/es/typography/Title';
|
|
4
4
|
export interface TitleProps extends AntTitleProps {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type CompoundedComponent = React.ForwardRefExoticComponent<TitleProps & React.RefAttributes<HTMLElement>> & {
|
|
7
|
+
/** @internal */
|
|
8
|
+
__ANT_TYPOGRAPHY: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Title: CompoundedComponent;
|
|
7
11
|
export default Title;
|
package/es/typography/Title.js
CHANGED
|
@@ -9,15 +9,11 @@ export var genTypographyStyle = function genTypographyStyle(token) {
|
|
|
9
9
|
fontSize = token.fontSize,
|
|
10
10
|
lineHeight = token.lineHeight;
|
|
11
11
|
var marginOffset = (controlHeight - fontSize * lineHeight) / 2;
|
|
12
|
-
return _defineProperty(_defineProperty(_defineProperty(
|
|
12
|
+
return _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({
|
|
13
13
|
lineHeight: 'inherit',
|
|
14
14
|
color: 'inherit',
|
|
15
15
|
fontSize: 'inherit'
|
|
16
|
-
}
|
|
17
|
-
lineHeight: 'inherit',
|
|
18
|
-
color: 'inherit',
|
|
19
|
-
fontSize: 'inherit'
|
|
20
|
-
}), "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-edit"), {
|
|
16
|
+
}, "".concat(componentCls, "-edit"), {
|
|
21
17
|
fontSize: token.fontSize
|
|
22
18
|
})), "".concat(componentCls).concat(componentCls, "-editable-text:not(").concat(componentCls, "-edit-content)"), {
|
|
23
19
|
'&:hover': {
|
package/lib/_util/genStyle.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
import type { CSSObject } from '@ant-design/cssinjs';
|
|
2
|
-
import type { FullToken } from 'antd/es/theme/internal';
|
|
3
2
|
export declare const genCompactStyle: (componentCls: string, subComponentCls?: string) => CSSObject;
|
|
4
|
-
export declare const genLargeStyle: (token: FullToken<any>) => CSSObject;
|
package/lib/_util/genStyle.js
CHANGED
|
@@ -19,8 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/_util/genStyle.ts
|
|
20
20
|
var genStyle_exports = {};
|
|
21
21
|
__export(genStyle_exports, {
|
|
22
|
-
genCompactStyle: () => genCompactStyle
|
|
23
|
-
genLargeStyle: () => genLargeStyle
|
|
22
|
+
genCompactStyle: () => genCompactStyle
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(genStyle_exports);
|
|
26
25
|
var genCompactStyle = (componentCls, subComponentCls = "") => {
|
|
@@ -38,122 +37,7 @@ var genCompactStyle = (componentCls, subComponentCls = "") => {
|
|
|
38
37
|
}
|
|
39
38
|
};
|
|
40
39
|
};
|
|
41
|
-
var genLargeStyle = (token) => {
|
|
42
|
-
const {
|
|
43
|
-
antCls,
|
|
44
|
-
iconCls,
|
|
45
|
-
fontSize,
|
|
46
|
-
lineWidth,
|
|
47
|
-
borderRadiusLG,
|
|
48
|
-
controlHeight,
|
|
49
|
-
controlHeightSM,
|
|
50
|
-
controlHeightLG
|
|
51
|
-
} = token;
|
|
52
|
-
const height = controlHeightLG;
|
|
53
|
-
const lineHeight = `${controlHeightLG}px`;
|
|
54
|
-
return {
|
|
55
|
-
// Button
|
|
56
|
-
[`${antCls}-btn`]: {
|
|
57
|
-
// limit min width for icon button
|
|
58
|
-
minWidth: controlHeightLG,
|
|
59
|
-
height,
|
|
60
|
-
fontSize,
|
|
61
|
-
borderRadius: borderRadiusLG,
|
|
62
|
-
// Button in Space.Compact
|
|
63
|
-
...genCompactStyle(`${antCls}-btn`)
|
|
64
|
-
},
|
|
65
|
-
// Radio.Button
|
|
66
|
-
[`${antCls}-radio-group`]: {
|
|
67
|
-
[`${antCls}-radio-button-wrapper`]: {
|
|
68
|
-
height,
|
|
69
|
-
lineHeight: `${height - lineWidth * 2}px`,
|
|
70
|
-
fontSize,
|
|
71
|
-
[`&:first-child`]: {
|
|
72
|
-
borderStartStartRadius: borderRadiusLG,
|
|
73
|
-
borderEndStartRadius: borderRadiusLG
|
|
74
|
-
},
|
|
75
|
-
[`&:last-child`]: {
|
|
76
|
-
borderStartEndRadius: borderRadiusLG,
|
|
77
|
-
borderEndEndRadius: borderRadiusLG
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
// Select
|
|
82
|
-
[`${antCls}-select`]: {
|
|
83
|
-
height,
|
|
84
|
-
fontSize,
|
|
85
|
-
// Select in Space.Compact
|
|
86
|
-
...genCompactStyle(`${antCls}-select`, `${antCls}-select-selector`),
|
|
87
|
-
[`${antCls}-select-selector`]: {
|
|
88
|
-
borderRadius: borderRadiusLG
|
|
89
|
-
},
|
|
90
|
-
[`${antCls}-select-selection-item`]: {
|
|
91
|
-
fontSize
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
[`${antCls}-select-multiple ${antCls}-select-selection-wrap`]: {
|
|
95
|
-
// ref: https://github.com/oceanbase/oceanbase-design/pull/881
|
|
96
|
-
height: "100%"
|
|
97
|
-
},
|
|
98
|
-
// Input
|
|
99
|
-
[`${antCls}-input-wrapper`]: {
|
|
100
|
-
fontSize,
|
|
101
|
-
[`${iconCls}`]: {
|
|
102
|
-
fontSize
|
|
103
|
-
},
|
|
104
|
-
[`${antCls}-input-affix-wrapper`]: {
|
|
105
|
-
borderStartEndRadius: 0,
|
|
106
|
-
borderEndEndRadius: 0
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
[`${antCls}-input-affix-wrapper`]: {
|
|
110
|
-
height,
|
|
111
|
-
borderRadius: borderRadiusLG,
|
|
112
|
-
[`&:not(${antCls}-input-affix-wrapper-lg)`]: {
|
|
113
|
-
lineHeight: `${controlHeight - lineWidth * 2}px`
|
|
114
|
-
},
|
|
115
|
-
// avoid to conflict with `${antCls}-input-affix-wrapper` height
|
|
116
|
-
[`${antCls}-input`]: {
|
|
117
|
-
height: `${controlHeight - lineWidth * 2}px`
|
|
118
|
-
},
|
|
119
|
-
[`${antCls}-input-lg`]: {
|
|
120
|
-
height: controlHeightSM
|
|
121
|
-
},
|
|
122
|
-
[`${antCls}-input-sm`]: {
|
|
123
|
-
height: `${controlHeightLG - lineWidth * 2}px`
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
[`${antCls}-input`]: {
|
|
127
|
-
height,
|
|
128
|
-
fontSize,
|
|
129
|
-
borderRadius: borderRadiusLG,
|
|
130
|
-
// Input in Space.Compact
|
|
131
|
-
...genCompactStyle(`${antCls}-input`)
|
|
132
|
-
},
|
|
133
|
-
[`${antCls}-input-search-button`]: {
|
|
134
|
-
height,
|
|
135
|
-
lineHeight,
|
|
136
|
-
borderStartEndRadius: borderRadiusLG,
|
|
137
|
-
borderEndEndRadius: borderRadiusLG
|
|
138
|
-
},
|
|
139
|
-
[`${antCls}-input-group-addon`]: {
|
|
140
|
-
fontSize,
|
|
141
|
-
borderStartEndRadius: borderRadiusLG,
|
|
142
|
-
borderEndEndRadius: borderRadiusLG
|
|
143
|
-
},
|
|
144
|
-
// set large DatePicker, TimePicker and RangePicker style
|
|
145
|
-
[`${antCls}-picker`]: {
|
|
146
|
-
height,
|
|
147
|
-
borderRadius: borderRadiusLG,
|
|
148
|
-
...genCompactStyle(`${antCls}-picker`),
|
|
149
|
-
[`${antCls}-picker-input>input`]: {
|
|
150
|
-
fontSize
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
156
41
|
0 && (module.exports = {
|
|
157
|
-
genCompactStyle
|
|
158
|
-
genLargeStyle
|
|
42
|
+
genCompactStyle
|
|
159
43
|
});
|
package/lib/badge/style/index.js
CHANGED
|
@@ -25,43 +25,7 @@ __export(style_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(style_exports);
|
|
26
26
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
27
27
|
var genButtonStyle = (token) => {
|
|
28
|
-
|
|
29
|
-
const primaryBtnCls = `${componentCls}${componentCls}-primary:not([disabled]):not(${componentCls}-disabled):not(${componentCls}-dangerous):not(${componentCls}-background-ghost)`;
|
|
30
|
-
const primaryAndCompactItemBtnCls = `${componentCls}-compact-item${primaryBtnCls}`;
|
|
31
|
-
return {
|
|
32
|
-
[`${componentCls}`]: {
|
|
33
|
-
// remove box-shadow for button
|
|
34
|
-
boxShadow: "none !important"
|
|
35
|
-
},
|
|
36
|
-
// primary button
|
|
37
|
-
[`${primaryBtnCls}`]: {
|
|
38
|
-
background: "linear-gradient(-59deg, #002BFF 0%, #0080FF 100%)",
|
|
39
|
-
border: "none",
|
|
40
|
-
["&:hover"]: {
|
|
41
|
-
background: "linear-gradient(120deg, #1AA0FF 0%, #1A53FF 100%)"
|
|
42
|
-
},
|
|
43
|
-
["&:active"]: {
|
|
44
|
-
background: "linear-gradient(120deg, #0060E6 0%, #0013E6 100%)"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
// primary button in compact item
|
|
48
|
-
[`${primaryBtnCls}${componentCls}-compact-last-item`]: {
|
|
49
|
-
background: "linear-gradient(-59deg, #002BFF 0%, #002BFF 100%)",
|
|
50
|
-
["&:hover"]: {
|
|
51
|
-
background: "linear-gradient(120deg, #1AA0FF 0%, #1A53FF 100%)"
|
|
52
|
-
},
|
|
53
|
-
["&:active"]: {
|
|
54
|
-
background: "linear-gradient(120deg, #0060E6 0%, #0013E6 100%)"
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
[`${primaryAndCompactItemBtnCls}+${primaryAndCompactItemBtnCls}:before`]: {
|
|
58
|
-
height: "100%",
|
|
59
|
-
top: 0
|
|
60
|
-
},
|
|
61
|
-
[`${primaryAndCompactItemBtnCls}:hover`]: {
|
|
62
|
-
zIndex: 0
|
|
63
|
-
}
|
|
64
|
-
};
|
|
28
|
+
return {};
|
|
65
29
|
};
|
|
66
30
|
var style_default = (prefixCls, isAliyun) => {
|
|
67
31
|
const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Button", (token) => {
|
package/lib/card/style/index.js
CHANGED
|
@@ -67,7 +67,15 @@ var genCardStyle = (token) => {
|
|
|
67
67
|
[`${componentCls}${componentCls}-no-divider`]: {
|
|
68
68
|
[`${componentCls}-head`]: {
|
|
69
69
|
// should not remove border-bottom to avoid tabs inkbar display correctly
|
|
70
|
-
borderBottomColor: "transparent"
|
|
70
|
+
borderBottomColor: "transparent",
|
|
71
|
+
// remove divider for top and bottom tabs
|
|
72
|
+
[tabsComponentCls]: {
|
|
73
|
+
[`&${tabsComponentCls}-top, &${tabsComponentCls}-bottom`]: {
|
|
74
|
+
[`${tabsComponentCls}-nav::before`]: {
|
|
75
|
+
border: "none"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
71
79
|
}
|
|
72
80
|
},
|
|
73
81
|
[`${componentCls}${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
|
|
@@ -111,14 +111,7 @@ var ConfigProvider = ({
|
|
|
111
111
|
),
|
|
112
112
|
spin: (0, import_lodash.merge)({}, parentContext.spin, spin),
|
|
113
113
|
table: (0, import_lodash.merge)({}, parentContext.table, table),
|
|
114
|
-
tabs: (0, import_lodash.merge)(
|
|
115
|
-
{},
|
|
116
|
-
{
|
|
117
|
-
indicatorSize: (origin) => origin >= 24 ? origin - 16 : origin
|
|
118
|
-
},
|
|
119
|
-
parentContext.tabs,
|
|
120
|
-
tabs
|
|
121
|
-
),
|
|
114
|
+
tabs: (0, import_lodash.merge)({}, parentContext.tabs, tabs),
|
|
122
115
|
theme: (0, import_lodash.merge)({}, mergedTheme, {
|
|
123
116
|
token: (
|
|
124
117
|
// custom fontFamily
|