@oceanbase/design 0.4.16 → 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.
Files changed (46) hide show
  1. package/dist/design.min.js +1 -1
  2. package/es/_util/genStyle.d.ts +0 -2
  3. package/es/_util/genStyle.js +0 -77
  4. package/es/badge/style/index.js +0 -1
  5. package/es/button/style/index.js +1 -30
  6. package/es/card/style/index.js +4 -2
  7. package/es/config-provider/index.js +1 -5
  8. package/es/empty/style/index.js +2 -7
  9. package/es/form/FormItem.d.ts +2 -1
  10. package/es/form/FormItem.js +1 -0
  11. package/es/index.d.ts +0 -1
  12. package/es/index.js +1 -2
  13. package/es/result/style/index.js +2 -5
  14. package/es/table/style/index.js +8 -31
  15. package/es/tabs/index.d.ts +8 -6
  16. package/es/tabs/index.js +10 -7
  17. package/es/tabs/style/index.js +2 -3
  18. package/es/theme/default.js +62 -39
  19. package/es/theme/style/aliyun.less +125 -125
  20. package/es/theme/style/compact.less +135 -135
  21. package/es/theme/style/dark.less +136 -136
  22. package/es/theme/style/default.less +135 -135
  23. package/es/typography/style/index.js +2 -6
  24. package/lib/_util/genStyle.d.ts +0 -2
  25. package/lib/_util/genStyle.js +2 -118
  26. package/lib/badge/style/index.js +0 -1
  27. package/lib/button/style/index.js +1 -37
  28. package/lib/card/style/index.js +9 -1
  29. package/lib/config-provider/index.js +1 -8
  30. package/lib/empty/style/index.js +0 -5
  31. package/lib/form/FormItem.d.ts +2 -1
  32. package/lib/form/FormItem.js +6 -0
  33. package/lib/index.d.ts +0 -1
  34. package/lib/index.js +0 -3
  35. package/lib/result/style/index.js +0 -4
  36. package/lib/table/style/index.js +1 -58
  37. package/lib/tabs/index.d.ts +8 -6
  38. package/lib/tabs/index.js +68 -62
  39. package/lib/tabs/style/index.js +6 -4
  40. package/lib/theme/default.js +62 -38
  41. package/lib/theme/style/aliyun.less +125 -125
  42. package/lib/theme/style/compact.less +135 -135
  43. package/lib/theme/style/dark.less +136 -136
  44. package/lib/theme/style/default.less +135 -135
  45. package/lib/typography/style/index.js +2 -9
  46. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- @blue: #006aff;
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: #006aff;
14
+ @colorPrimary: #0d6cf2;
15
15
  @colorSuccess: #0ac185;
16
16
  @colorWarning: #ffa21a;
17
17
  @colorError: #f93939;
18
- @colorInfo: #006aff;
19
- @colorLink: #006aff;
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: 14;
25
- @lineWidth: 1;
24
+ @fontSize: 13px;
25
+ @lineWidth: 1px;
26
26
  @lineType: solid;
27
- @motionUnit: 0.1;
28
- @motionBase: 0;
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: 6;
38
- @sizeUnit: 4;
39
- @sizeStep: 4;
40
- @sizePopupArrow: 16;
41
- @controlHeight: 32;
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: #a3d6ff;
50
- @blue2: #a3d6ff;
51
- @blue-3: #7abfff;
52
- @blue3: #7abfff;
53
- @blue-4: #52a5ff;
54
- @blue4: #52a5ff;
55
- @blue-5: #2989ff;
56
- @blue5: #2989ff;
57
- @blue-6: #006aff;
58
- @blue6: #006aff;
59
- @blue-7: #0053d9;
60
- @blue7: #0053d9;
61
- @blue-8: #003eb3;
62
- @blue8: #003eb3;
63
- @blue-9: #002c8c;
64
- @blue9: #002c8c;
65
- @blue-10: #001d66;
66
- @blue10: #001d66;
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: #f3f6fc;
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: #eaf1ff;
326
- @colorPrimaryBgHover: #eaf1ff;
327
- @colorPrimaryBorder: #b3ccff;
328
- @colorPrimaryBorderHover: #5189fb;
329
- @colorPrimaryHover: #5189fb;
330
- @colorPrimaryActive: #004ce6;
331
- @colorPrimaryTextHover: #5189fb;
332
- @colorPrimaryText: #006aff;
333
- @colorPrimaryTextActive: #004ce6;
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: #eaf1ff;
364
- @colorInfoBgHover: #eaf1ff;
365
- @colorInfoBorder: #b3ccff;
366
- @colorInfoBorderHover: #5189fb;
367
- @colorInfoHover: #5189fb;
368
- @colorInfoActive: #004ce6;
369
- @colorInfoTextHover: #5189fb;
370
- @colorInfoText: #006aff;
371
- @colorInfoTextActive: #004ce6;
372
- @colorLinkHover: #52a5ff;
373
- @colorLinkActive: #0053d9;
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: 12;
377
- @fontSizeLG: 16;
378
- @fontSizeXL: 20;
379
- @fontSizeHeading1: 38;
380
- @fontSizeHeading2: 30;
381
- @fontSizeHeading3: 24;
382
- @fontSizeHeading4: 20;
383
- @fontSizeHeading5: 16;
384
- @lineHeight: 1.5714285714285714;
385
- @lineHeightLG: 1.5;
386
- @lineHeightSM: 1.6666666666666667;
387
- @fontHeight: 22;
388
- @fontHeightLG: 24;
389
- @fontHeightSM: 20;
390
- @lineHeightHeading1: 1.2105263157894737;
391
- @lineHeightHeading2: 1.2666666666666666;
392
- @lineHeightHeading3: 1.3333333333333333;
393
- @lineHeightHeading4: 1.4;
394
- @lineHeightHeading5: 1.5;
395
- @sizeXXL: 48;
396
- @sizeXL: 32;
397
- @sizeLG: 24;
398
- @sizeMD: 20;
399
- @sizeMS: 16;
400
- @size: 16;
401
- @sizeSM: 12;
402
- @sizeXS: 8;
403
- @sizeXXS: 4;
404
- @controlHeightSM: 24;
405
- @controlHeightXS: 16;
406
- @controlHeightLG: 40;
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: 2;
411
- @borderRadiusXS: 2;
412
- @borderRadiusSM: 4;
413
- @borderRadiusLG: 8;
414
- @borderRadiusOuter: 4;
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: 3;
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: 12;
439
- @controlOutlineWidth: 2;
440
- @controlInteractiveSize: 16;
438
+ @fontSizeIcon: 11px;
439
+ @controlOutlineWidth: 2px;
440
+ @controlInteractiveSize: 16px;
441
441
  @controlItemBgHover: #f3f6fc;
442
- @controlItemBgActive: #eaf1ff;
443
- @controlItemBgActiveHover: #eaf1ff;
442
+ @controlItemBgActive: #e6f4ff;
443
+ @controlItemBgActiveHover: #b0dbff;
444
444
  @controlItemBgActiveDisabled: #cdd5e4;
445
445
  @controlTmpOutline: #f8fafe;
446
- @controlOutline: rgba(22,99,255,0.09);
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: 12;
453
- @controlPaddingHorizontalSM: 8;
454
- @paddingXXS: 4;
455
- @paddingXS: 8;
456
- @paddingSM: 12;
457
- @padding: 16;
458
- @paddingMD: 20;
459
- @paddingLG: 24;
460
- @paddingXL: 32;
461
- @paddingContentHorizontalLG: 24;
462
- @paddingContentVerticalLG: 16;
463
- @paddingContentHorizontal: 16;
464
- @paddingContentVertical: 12;
465
- @paddingContentHorizontalSM: 16;
466
- @paddingContentVerticalSM: 8;
467
- @marginXXS: 4;
468
- @marginXS: 8;
469
- @marginSM: 12;
470
- @margin: 16;
471
- @marginMD: 20;
472
- @marginLG: 24;
473
- @marginXL: 32;
474
- @marginXXL: 48;
475
- @screenXS: 480;
476
- @screenXSMin: 480;
477
- @screenXSMax: 575;
478
- @screenSM: 576;
479
- @screenSMMin: 576;
480
- @screenSMMax: 767;
481
- @screenMD: 768;
482
- @screenMDMin: 768;
483
- @screenMDMax: 991;
484
- @screenLG: 992;
485
- @screenLGMin: 992;
486
- @screenLGMax: 1199;
487
- @screenXL: 1200;
488
- @screenXLMin: 1200;
489
- @screenXLMax: 1599;
490
- @screenXXL: 1600;
491
- @screenXXLMin: 1600;
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),
@@ -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(_defineProperty(_defineProperty({}, "span".concat(componentCls), {
12
+ return _defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({
13
13
  lineHeight: 'inherit',
14
14
  color: 'inherit',
15
15
  fontSize: 'inherit'
16
- }), "div".concat(componentCls), {
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': {
@@ -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;
@@ -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
  });
@@ -43,7 +43,6 @@ var genBadgeStyle = (token) => {
43
43
  },
44
44
  // icon style
45
45
  [`${componentCls}-status-icon`]: {
46
- fontSize: token.fontSizeSM,
47
46
  // remove dot style
48
47
  backgroundColor: "transparent",
49
48
  ["&::after"]: {
@@ -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
- const { componentCls } = token;
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) => {
@@ -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
@@ -24,7 +24,6 @@ __export(style_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(style_exports);
26
26
  var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
- var import_genStyle = require("../../_util/genStyle");
28
27
  var genEmptyStyle = (token) => {
29
28
  const { antCls, componentCls, colorTextTertiary, colorText, colorTextSecondary } = token;
30
29
  return {
@@ -87,10 +86,6 @@ var genEmptyStyle = (token) => {
87
86
  }
88
87
  }
89
88
  }
90
- },
91
- [`${componentCls}-footer`]: {
92
- marginTop: token.marginLG,
93
- ...(0, import_genStyle.genLargeStyle)(token)
94
89
  }
95
90
  },
96
91
  [`${componentCls}-horizontal`]: {
@@ -4,11 +4,12 @@ import type { FormItemProps as AntFormItemProps } from 'antd/es/form';
4
4
  import type { TooltipProps } from '../tooltip';
5
5
  declare const AntFormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
6
6
  useStatus: () => {
7
- status?: "" | "error" | "warning" | "success" | "validating";
7
+ status?: "" | "warning" | "error" | "success" | "validating";
8
8
  errors: React.ReactNode[];
9
9
  warnings: React.ReactNode[];
10
10
  };
11
11
  };
12
+ export * from 'antd/es/form/FormItem';
12
13
  export type WrapperTooltipProps = Omit<TooltipProps, 'mouseFollow'> & {
13
14
  icon?: React.ReactElement;
14
15
  };
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
21
  // If the importer is in node compatibility mode or this is not an ESM
21
22
  // file that has been converted to a CommonJS file using a Babel-
@@ -40,6 +41,7 @@ var import_classnames = __toESM(require("classnames"));
40
41
  var import_config_provider = __toESM(require("../config-provider"));
41
42
  var import_useTooltipTypeList = require("../tooltip/hooks/useTooltipTypeList");
42
43
  var import_style = __toESM(require("./style"));
44
+ __reExport(FormItem_exports, require("antd/es/form/FormItem"), module.exports);
43
45
  var AntFormItem = import_antd.Form.Item;
44
46
  var FormItem = ({
45
47
  children,
@@ -95,3 +97,7 @@ var FormItem = ({
95
97
  };
96
98
  FormItem.useStatus = AntFormItem.useStatus;
97
99
  var FormItem_default = FormItem;
100
+ // Annotate the CommonJS export names for ESM import in node:
101
+ 0 && (module.exports = {
102
+ ...require("antd/es/form/FormItem")
103
+ });
package/lib/index.d.ts CHANGED
@@ -74,4 +74,3 @@ declare const useToken: () => {
74
74
  };
75
75
  export { useToken };
76
76
  export type { PresetStatusColorType } from 'antd/es/_util/colors';
77
- export { genLargeStyle } from './_util/genStyle';
package/lib/index.js CHANGED
@@ -63,7 +63,6 @@ __export(src_exports, {
63
63
  Tooltip: () => import_tooltip.default,
64
64
  TreeSelect: () => import_tree_select.default,
65
65
  Typography: () => import_typography.default,
66
- genLargeStyle: () => import_genStyle.genLargeStyle,
67
66
  message: () => import_static_function.message,
68
67
  notification: () => import_static_function.notification,
69
68
  theme: () => import_theme.default,
@@ -110,7 +109,6 @@ var import_badge = __toESM(require("./badge"));
110
109
  var import_lottie = __toESM(require("./lottie"));
111
110
  var import_theme = __toESM(require("./theme"));
112
111
  var import_theme2 = __toESM(require("./theme"));
113
- var import_genStyle = require("./_util/genStyle");
114
112
  var { useToken } = import_theme2.default;
115
113
  // Annotate the CommonJS export names for ESM import in node:
116
114
  0 && (module.exports = {
@@ -147,7 +145,6 @@ var { useToken } = import_theme2.default;
147
145
  Tooltip,
148
146
  TreeSelect,
149
147
  Typography,
150
- genLargeStyle,
151
148
  message,
152
149
  notification,
153
150
  theme,