@ant-design/pro-components 2.2.1 → 2.3.2
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/components.js +228 -167
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/package.json +11 -11
package/dist/components.js
CHANGED
|
@@ -32483,38 +32483,55 @@ var operationUnit_operationUnit = function operationUnit(token) {
|
|
|
32483
32483
|
};
|
|
32484
32484
|
};
|
|
32485
32485
|
;// CONCATENATED MODULE: ./node_modules/antd/es/style/roundedArrow.js
|
|
32486
|
-
var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor) {
|
|
32487
|
-
var
|
|
32488
|
-
var ax =
|
|
32489
|
-
var ay =
|
|
32490
|
-
var bx =
|
|
32491
|
-
var by =
|
|
32492
|
-
var cx = 2 *
|
|
32493
|
-
var cy =
|
|
32494
|
-
var dx =
|
|
32495
|
-
var dy =
|
|
32496
|
-
var
|
|
32497
|
-
var
|
|
32498
|
-
var
|
|
32499
|
-
var
|
|
32486
|
+
var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColor, boxShadow) {
|
|
32487
|
+
var unitWidth = width / 2;
|
|
32488
|
+
var ax = unitWidth - outerRadius * (Math.sqrt(2) - 1);
|
|
32489
|
+
var ay = unitWidth;
|
|
32490
|
+
var bx = unitWidth + outerRadius * (1 - 1 / Math.sqrt(2));
|
|
32491
|
+
var by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));
|
|
32492
|
+
var cx = 2 * unitWidth - innerRadius * (1 / Math.sqrt(2));
|
|
32493
|
+
var cy = innerRadius * (1 / Math.sqrt(2));
|
|
32494
|
+
var dx = 4 * unitWidth - cx;
|
|
32495
|
+
var dy = cy;
|
|
32496
|
+
var ex = 4 * unitWidth - bx;
|
|
32497
|
+
var ey = by;
|
|
32498
|
+
var fx = 4 * unitWidth - ax;
|
|
32499
|
+
var fy = ay;
|
|
32500
32500
|
return {
|
|
32501
32501
|
borderRadius: {
|
|
32502
32502
|
_skip_check_: true,
|
|
32503
|
-
value: "0 0
|
|
32503
|
+
value: "0 0 ".concat(innerRadius, "px")
|
|
32504
32504
|
},
|
|
32505
32505
|
pointerEvents: 'none',
|
|
32506
|
+
width: width * 2,
|
|
32507
|
+
height: width * 2,
|
|
32508
|
+
overflow: 'hidden',
|
|
32509
|
+
'&::after': {
|
|
32510
|
+
content: '""',
|
|
32511
|
+
position: 'absolute',
|
|
32512
|
+
width: width / Math.sqrt(2),
|
|
32513
|
+
height: width / Math.sqrt(2),
|
|
32514
|
+
bottom: 0,
|
|
32515
|
+
insetInline: 0,
|
|
32516
|
+
margin: 'auto',
|
|
32517
|
+
borderRadius: {
|
|
32518
|
+
_skip_check_: true,
|
|
32519
|
+
value: "0 0 ".concat(innerRadius, "px 0")
|
|
32520
|
+
},
|
|
32521
|
+
transform: 'translateY(50%) rotate(-135deg)',
|
|
32522
|
+
boxShadow: boxShadow,
|
|
32523
|
+
zIndex: 0,
|
|
32524
|
+
background: 'transparent'
|
|
32525
|
+
},
|
|
32506
32526
|
'&::before': {
|
|
32507
32527
|
position: 'absolute',
|
|
32508
|
-
|
|
32509
|
-
insetInlineStart:
|
|
32510
|
-
width: width *
|
|
32511
|
-
height: width
|
|
32528
|
+
bottom: 0,
|
|
32529
|
+
insetInlineStart: 0,
|
|
32530
|
+
width: width * 2,
|
|
32531
|
+
height: width / 2,
|
|
32512
32532
|
background: bgColor,
|
|
32513
|
-
|
|
32514
|
-
|
|
32515
|
-
backgroundPosition: "".concat(Math.ceil(-width + 1), "px ").concat(Math.ceil(-width + 1), "px"),
|
|
32516
|
-
content: '""',
|
|
32517
|
-
clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 1 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 0 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 1 ").concat(fx, " ").concat(fy, " Z')")
|
|
32533
|
+
clipPath: "path('M ".concat(ax, " ").concat(ay, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(bx, " ").concat(by, " L ").concat(cx, " ").concat(cy, " A ").concat(innerRadius, " ").concat(innerRadius, " 0 0 1 ").concat(dx, " ").concat(dy, " L ").concat(ex, " ").concat(ey, " A ").concat(outerRadius, " ").concat(outerRadius, " 0 0 0 ").concat(fx, " ").concat(fy, " Z')"),
|
|
32534
|
+
content: '""'
|
|
32518
32535
|
}
|
|
32519
32536
|
};
|
|
32520
32537
|
};
|
|
@@ -32648,7 +32665,7 @@ function withConfigConsumer(config) {
|
|
|
32648
32665
|
};
|
|
32649
32666
|
}
|
|
32650
32667
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
|
|
32651
|
-
/* harmony default export */ var version = ('5.0.0-experimental.
|
|
32668
|
+
/* harmony default export */ var version = ('5.0.0-experimental.22');
|
|
32652
32669
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
|
|
32653
32670
|
/* eslint import/no-unresolved: 0 */
|
|
32654
32671
|
// @ts-ignore
|
|
@@ -32674,7 +32691,7 @@ var defaultPresetColors = {
|
|
|
32674
32691
|
|
|
32675
32692
|
var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
|
|
32676
32693
|
// Color
|
|
32677
|
-
colorPrimary: '#
|
|
32694
|
+
colorPrimary: '#1677ff',
|
|
32678
32695
|
colorSuccess: '#52c41a',
|
|
32679
32696
|
colorWarning: '#faad14',
|
|
32680
32697
|
colorError: '#ff4d4f',
|
|
@@ -32706,7 +32723,7 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
|
|
|
32706
32723
|
// Size
|
|
32707
32724
|
sizeUnit: 4,
|
|
32708
32725
|
sizeBaseStep: 4,
|
|
32709
|
-
sizePopupArrow:
|
|
32726
|
+
sizePopupArrow: 16,
|
|
32710
32727
|
// Control Base
|
|
32711
32728
|
controlHeight: 32,
|
|
32712
32729
|
// zIndex
|
|
@@ -32881,9 +32898,12 @@ var generateColorPalettes = function generateColorPalettes(baseColor) {
|
|
|
32881
32898
|
5: colors[4],
|
|
32882
32899
|
6: colors[5],
|
|
32883
32900
|
7: colors[6],
|
|
32884
|
-
8: colors[
|
|
32885
|
-
9: colors[
|
|
32886
|
-
10: colors[
|
|
32901
|
+
8: colors[4],
|
|
32902
|
+
9: colors[5],
|
|
32903
|
+
10: colors[6] // 8: colors[7],
|
|
32904
|
+
// 9: colors[8],
|
|
32905
|
+
// 10: colors[9],
|
|
32906
|
+
|
|
32887
32907
|
};
|
|
32888
32908
|
};
|
|
32889
32909
|
var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseColor, textBaseColor) {
|
|
@@ -32896,9 +32916,9 @@ var generateNeutralColorPalettes = function generateNeutralColorPalettes(bgBaseC
|
|
|
32896
32916
|
colorTextSecondary: getAlphaColor(colorTextBase, 0.65),
|
|
32897
32917
|
colorTextTertiary: getAlphaColor(colorTextBase, 0.45),
|
|
32898
32918
|
colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),
|
|
32899
|
-
colorFill: getAlphaColor(colorTextBase, 0.
|
|
32900
|
-
colorFillSecondary: getAlphaColor(colorTextBase, 0.
|
|
32901
|
-
colorFillTertiary: getAlphaColor(colorTextBase, 0.
|
|
32919
|
+
colorFill: getAlphaColor(colorTextBase, 0.12),
|
|
32920
|
+
colorFillSecondary: getAlphaColor(colorTextBase, 0.06),
|
|
32921
|
+
colorFillTertiary: getAlphaColor(colorTextBase, 0.04),
|
|
32902
32922
|
colorFillQuaternary: getAlphaColor(colorTextBase, 0.02),
|
|
32903
32923
|
colorBgLayout: getSolidColor(colorBgBase, 4),
|
|
32904
32924
|
colorBgContainer: getSolidColor(colorBgBase, 0),
|
|
@@ -33043,13 +33063,16 @@ function formatToken(derivativeToken) {
|
|
|
33043
33063
|
paddingSM: 12,
|
|
33044
33064
|
paddingLG: 24,
|
|
33045
33065
|
paddingXL: 32,
|
|
33066
|
+
paddingTmp: 20,
|
|
33046
33067
|
marginXXS: 4,
|
|
33047
33068
|
marginXS: 8,
|
|
33048
33069
|
marginSM: 12,
|
|
33049
33070
|
marginLG: 24,
|
|
33050
33071
|
marginXL: 32,
|
|
33051
33072
|
marginXXL: 48,
|
|
33052
|
-
|
|
33073
|
+
marginTmp: 20,
|
|
33074
|
+
boxShadow: "\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",
|
|
33075
|
+
boxShadowSecondary: "\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
33053
33076
|
screenXS: screenXS,
|
|
33054
33077
|
screenXSMin: screenXS,
|
|
33055
33078
|
screenXSMax: screenXS - 1,
|
|
@@ -33070,13 +33093,11 @@ function formatToken(derivativeToken) {
|
|
|
33070
33093
|
screenXXLMax: screenXXL - 1,
|
|
33071
33094
|
// FIXME: component box-shadow, should be removed
|
|
33072
33095
|
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
|
|
33073
|
-
boxShadowPopoverArrowBottom: "2px 2px 5px rgba(0, 0, 0, 0.1)",
|
|
33074
|
-
boxShadowSegmentedSelectedItem: ["0 2px 8px -2px ".concat(new TinyColor('#000').setAlpha(0.05).toRgbString()), "0 1px 4px -1px ".concat(new TinyColor('#000').setAlpha(0.07).toRgbString()), "0 0 1px 0 ".concat(new TinyColor('#000').setAlpha(0.08).toRgbString())].join(','),
|
|
33075
33096
|
boxShadowCard: "\n 0 1px 2px -2px ".concat(new TinyColor('rgba(0, 0, 0, 0.16)').toRgbString(), ",\n 0 3px 6px 0 ").concat(new TinyColor('rgba(0, 0, 0, 0.12)').toRgbString(), ",\n 0 5px 12px 4px ").concat(new TinyColor('rgba(0, 0, 0, 0.09)').toRgbString(), "\n "),
|
|
33076
|
-
boxShadowDrawerRight:
|
|
33077
|
-
boxShadowDrawerLeft:
|
|
33078
|
-
boxShadowDrawerUp:
|
|
33079
|
-
boxShadowDrawerDown:
|
|
33097
|
+
boxShadowDrawerRight: "\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
33098
|
+
boxShadowDrawerLeft: "\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
33099
|
+
boxShadowDrawerUp: "\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
33100
|
+
boxShadowDrawerDown: "\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
33080
33101
|
boxShadowTabsOverflowLeft: "inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
33081
33102
|
boxShadowTabsOverflowRight: "inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",
|
|
33082
33103
|
boxShadowTabsOverflowTop: "inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",
|
|
@@ -33251,7 +33272,7 @@ function genComponentStyleHook_genComponentStyleHook(component, styleFn, getDefa
|
|
|
33251
33272
|
theme: theme,
|
|
33252
33273
|
token: token,
|
|
33253
33274
|
hashId: hashId,
|
|
33254
|
-
path: [component, prefixCls]
|
|
33275
|
+
path: [component, prefixCls, iconPrefixCls]
|
|
33255
33276
|
}, function () {
|
|
33256
33277
|
var _statisticToken = statisticToken(token),
|
|
33257
33278
|
proxyToken = _statisticToken.token,
|
|
@@ -33358,7 +33379,8 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
33358
33379
|
colorTextDisabled = token.colorTextDisabled,
|
|
33359
33380
|
fontSizeIcon = token.fontSizeIcon,
|
|
33360
33381
|
controlPaddingHorizontal = token.controlPaddingHorizontal,
|
|
33361
|
-
colorBgElevated = token.colorBgElevated
|
|
33382
|
+
colorBgElevated = token.colorBgElevated,
|
|
33383
|
+
boxShadowPopoverArrow = token.boxShadowPopoverArrow;
|
|
33362
33384
|
return [defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
33363
33385
|
position: 'absolute',
|
|
33364
33386
|
top: -9999,
|
|
@@ -33394,19 +33416,16 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
33394
33416
|
}), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-arrow"), extends_extends({
|
|
33395
33417
|
position: 'absolute',
|
|
33396
33418
|
zIndex: 1,
|
|
33397
|
-
display: 'block'
|
|
33398
|
-
|
|
33399
|
-
|
|
33400
|
-
|
|
33401
|
-
bottom: sizePopupArrow * Math.sqrt(1 / 2) + 2,
|
|
33402
|
-
boxShadow: token.boxShadowPopoverArrow,
|
|
33403
|
-
transform: 'rotate(45deg)'
|
|
33419
|
+
display: 'block'
|
|
33420
|
+
}, roundedArrow(sizePopupArrow, token.radiusXS, token.radiusOuter, colorBgElevated, boxShadowPopoverArrow))), defineProperty_defineProperty(_extends2, "\n &-placement-top > ".concat(componentCls, "-arrow,\n &-placement-topLeft > ").concat(componentCls, "-arrow,\n &-placement-topRight > ").concat(componentCls, "-arrow\n "), {
|
|
33421
|
+
bottom: dropdownArrowDistance,
|
|
33422
|
+
transform: 'translateY(100%) rotate(180deg)'
|
|
33404
33423
|
}), defineProperty_defineProperty(_extends2, "&-placement-top > ".concat(componentCls, "-arrow"), {
|
|
33405
33424
|
left: {
|
|
33406
33425
|
_skip_check_: true,
|
|
33407
33426
|
value: '50%'
|
|
33408
33427
|
},
|
|
33409
|
-
transform: 'translateX(-50%) rotate(
|
|
33428
|
+
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
|
33410
33429
|
}), defineProperty_defineProperty(_extends2, "&-placement-topLeft > ".concat(componentCls, "-arrow"), {
|
|
33411
33430
|
left: {
|
|
33412
33431
|
_skip_check_: true,
|
|
@@ -33418,16 +33437,14 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
33418
33437
|
value: dropdownArrowOffset
|
|
33419
33438
|
}
|
|
33420
33439
|
}), defineProperty_defineProperty(_extends2, "\n &-placement-bottom > ".concat(componentCls, "-arrow,\n &-placement-bottomLeft > ").concat(componentCls, "-arrow,\n &-placement-bottomRight > ").concat(componentCls, "-arrow\n "), {
|
|
33421
|
-
top:
|
|
33422
|
-
|
|
33423
|
-
transform: "rotate(-135deg) translateY(-0.5px)" // FIXME: hardcode
|
|
33424
|
-
|
|
33440
|
+
top: dropdownArrowDistance,
|
|
33441
|
+
transform: "translateY(-100%)"
|
|
33425
33442
|
}), defineProperty_defineProperty(_extends2, "&-placement-bottom > ".concat(componentCls, "-arrow"), {
|
|
33426
33443
|
left: {
|
|
33427
33444
|
_skip_check_: true,
|
|
33428
33445
|
value: '50%'
|
|
33429
33446
|
},
|
|
33430
|
-
transform: "
|
|
33447
|
+
transform: "translateY(-100%) translateX(-50%)"
|
|
33431
33448
|
}), defineProperty_defineProperty(_extends2, "&-placement-bottomLeft > ".concat(componentCls, "-arrow"), {
|
|
33432
33449
|
left: {
|
|
33433
33450
|
_skip_check_: true,
|
|
@@ -33468,7 +33485,7 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
33468
33485
|
backgroundClip: 'padding-box',
|
|
33469
33486
|
borderRadius: token.controlRadiusLG,
|
|
33470
33487
|
outline: 'none',
|
|
33471
|
-
boxShadow: token.
|
|
33488
|
+
boxShadow: token.boxShadowSecondary
|
|
33472
33489
|
}, defineProperty_defineProperty(_menuCls, "".concat(menuCls, "-item-group-title"), {
|
|
33473
33490
|
padding: "".concat(dropdownPaddingVertical, "px ").concat(controlPaddingHorizontal, "px"),
|
|
33474
33491
|
color: token.colorTextDescription,
|
|
@@ -38712,8 +38729,47 @@ StatisticCard.Group = StatisticCard_Group;
|
|
|
38712
38729
|
;// CONCATENATED MODULE: ./packages/card/es/components/TabPane/index.js
|
|
38713
38730
|
|
|
38714
38731
|
|
|
38715
|
-
var
|
|
38716
|
-
|
|
38732
|
+
var TabPane_excluded = ["key", "tab", "tabKey", "disabled", "destroyInactiveTabPane", "children", "className", "style", "cardProps"];
|
|
38733
|
+
|
|
38734
|
+
|
|
38735
|
+
|
|
38736
|
+
|
|
38737
|
+
|
|
38738
|
+
|
|
38739
|
+
var TabPane = function TabPane(props) {
|
|
38740
|
+
var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
|
|
38741
|
+
getPrefixCls = _useContext.getPrefixCls; // 如果是antd v5 则返回为空
|
|
38742
|
+
|
|
38743
|
+
|
|
38744
|
+
if (external_antd_.version.startsWith('5')) {
|
|
38745
|
+
return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
|
|
38746
|
+
} else {
|
|
38747
|
+
var key = props.key,
|
|
38748
|
+
tab = props.tab,
|
|
38749
|
+
tabKey = props.tabKey,
|
|
38750
|
+
disabled = props.disabled,
|
|
38751
|
+
destroyInactiveTabPane = props.destroyInactiveTabPane,
|
|
38752
|
+
children = props.children,
|
|
38753
|
+
className = props.className,
|
|
38754
|
+
style = props.style,
|
|
38755
|
+
cardProps = props.cardProps,
|
|
38756
|
+
rest = objectWithoutProperties_objectWithoutProperties(props, TabPane_excluded);
|
|
38757
|
+
|
|
38758
|
+
var prefixCls = getPrefixCls('pro-card-tabpane');
|
|
38759
|
+
var tabPaneClassName = classnames_default()(prefixCls, className);
|
|
38760
|
+
return (0,jsx_runtime.jsx)(external_antd_.Tabs.TabPane, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
38761
|
+
tabKey: tabKey,
|
|
38762
|
+
tab: tab,
|
|
38763
|
+
className: tabPaneClassName,
|
|
38764
|
+
style: style,
|
|
38765
|
+
disabled: disabled,
|
|
38766
|
+
destroyInactiveTabPane: destroyInactiveTabPane
|
|
38767
|
+
}, rest), {}, {
|
|
38768
|
+
children: (0,jsx_runtime.jsx)(components_Card, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, cardProps), {}, {
|
|
38769
|
+
children: children
|
|
38770
|
+
}))
|
|
38771
|
+
}), key);
|
|
38772
|
+
}
|
|
38717
38773
|
};
|
|
38718
38774
|
|
|
38719
38775
|
if (false) {}
|
|
@@ -38938,12 +38994,15 @@ var genCardStyle = function genCardStyle(token) {
|
|
|
38938
38994
|
cardHeadHeight = token.cardHeadHeight,
|
|
38939
38995
|
cardHeadPadding = token.cardHeadPadding,
|
|
38940
38996
|
cardPaddingBase = token.cardPaddingBase,
|
|
38941
|
-
colorBorderSecondary = token.colorBorderSecondary
|
|
38997
|
+
colorBorderSecondary = token.colorBorderSecondary,
|
|
38998
|
+
boxShadow = token.boxShadow;
|
|
38942
38999
|
return _ref3 = {}, defineProperty_defineProperty(_ref3, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends3 = {
|
|
38943
39000
|
position: 'relative',
|
|
38944
39001
|
background: token.colorBgContainer,
|
|
38945
39002
|
borderRadius: token.radiusLG
|
|
38946
|
-
}, defineProperty_defineProperty(_extends3, "".concat(componentCls, "-
|
|
39003
|
+
}, defineProperty_defineProperty(_extends3, "&:not(".concat(componentCls, "-bordered)"), {
|
|
39004
|
+
boxShadow: boxShadow
|
|
39005
|
+
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-head"), genCardHeadStyle(token)), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-extra"), {
|
|
38947
39006
|
// https://stackoverflow.com/a/22429853/3040605
|
|
38948
39007
|
marginInlineStart: 'auto',
|
|
38949
39008
|
padding: '',
|
|
@@ -45092,7 +45151,7 @@ var genSingleStyle = function genSingleStyle(token) {
|
|
|
45092
45151
|
backgroundColor: token.colorBgElevated,
|
|
45093
45152
|
borderRadius: token.controlRadiusLG,
|
|
45094
45153
|
outline: 'none',
|
|
45095
|
-
boxShadow: token.
|
|
45154
|
+
boxShadow: token.boxShadowSecondary
|
|
45096
45155
|
}, defineProperty_defineProperty(_extends2, "\n &".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active&-placement-bottomLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active&-placement-bottomLeft\n "), {
|
|
45097
45156
|
animationName: slideUpIn
|
|
45098
45157
|
}), defineProperty_defineProperty(_extends2, "\n &".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active&-placement-topLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active&-placement-topLeft\n "), {
|
|
@@ -50540,7 +50599,8 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
|
50540
50599
|
var _$concat6, _$concat8, _range, _$concat9, _$concat10, _$concat11, _extends3, _rtl2, _extends4;
|
|
50541
50600
|
|
|
50542
50601
|
var componentCls = token.componentCls,
|
|
50543
|
-
antCls = token.antCls
|
|
50602
|
+
antCls = token.antCls,
|
|
50603
|
+
boxShadowPopoverArrow = token.boxShadowPopoverArrow;
|
|
50544
50604
|
return defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends(extends_extends({}, style_resetComponent(token)), genPikerPadding(token, token.controlHeight, token.fontSize, token.inputPaddingHorizontal)), (_extends4 = {
|
|
50545
50605
|
position: 'relative',
|
|
50546
50606
|
display: 'inline-flex',
|
|
@@ -50677,14 +50737,14 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
|
50677
50737
|
display: 'none'
|
|
50678
50738
|
},
|
|
50679
50739
|
'&&-placement-bottomLeft': defineProperty_defineProperty({}, "".concat(componentCls, "-range-arrow"), {
|
|
50680
|
-
top:
|
|
50740
|
+
top: 0,
|
|
50681
50741
|
display: 'block',
|
|
50682
|
-
transform: '
|
|
50742
|
+
transform: 'translateY(-100%)'
|
|
50683
50743
|
}),
|
|
50684
50744
|
'&&-placement-topLeft': defineProperty_defineProperty({}, "".concat(componentCls, "-range-arrow"), {
|
|
50685
|
-
bottom:
|
|
50745
|
+
bottom: 0,
|
|
50686
50746
|
display: 'block',
|
|
50687
|
-
transform: 'rotate(
|
|
50747
|
+
transform: 'translateY(100%) rotate(180deg)'
|
|
50688
50748
|
})
|
|
50689
50749
|
}, defineProperty_defineProperty(_extends3, "&".concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active&-placement-topLeft,\n &").concat(antCls, "-slide-up-enter").concat(antCls, "-slide-up-enter-active&-placement-topRight,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active&-placement-topLeft,\n &").concat(antCls, "-slide-up-appear").concat(antCls, "-slide-up-appear-active&-placement-topRight"), {
|
|
50690
50750
|
animationName: slideDownIn
|
|
@@ -50716,27 +50776,28 @@ var genPickerStyle = function genPickerStyle(token) {
|
|
|
50716
50776
|
}), defineProperty_defineProperty(_$concat9, "".concat(componentCls, "-ok"), {
|
|
50717
50777
|
marginInlineStart: 'auto'
|
|
50718
50778
|
}), _$concat9)), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-range-wrapper"), {
|
|
50719
|
-
display: 'flex'
|
|
50779
|
+
display: 'flex',
|
|
50780
|
+
position: 'relative'
|
|
50720
50781
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-range-arrow"), extends_extends({
|
|
50721
50782
|
position: 'absolute',
|
|
50722
50783
|
zIndex: 1,
|
|
50723
50784
|
display: 'none',
|
|
50724
|
-
width: token.sizePopupArrow,
|
|
50725
|
-
height: token.sizePopupArrow,
|
|
50726
50785
|
marginInlineStart: token.inputPaddingHorizontal * 1.5,
|
|
50727
|
-
boxShadow: token.boxShadowPopoverArrowBottom,
|
|
50728
50786
|
transition: "left ".concat(token.motionDurationSlow, " ease-out")
|
|
50729
|
-
}, roundedArrow(token.sizePopupArrow, token.radiusXS, token.radiusOuter, token.colorBgElevated))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-panel-container"), (_$concat11 = {
|
|
50787
|
+
}, roundedArrow(token.sizePopupArrow, token.radiusXS, token.radiusOuter, token.colorBgElevated, boxShadowPopoverArrow))), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-panel-container"), (_$concat11 = {
|
|
50730
50788
|
overflow: 'hidden',
|
|
50731
50789
|
verticalAlign: 'top',
|
|
50732
50790
|
background: token.colorBgElevated,
|
|
50733
50791
|
borderRadius: token.controlRadiusLG,
|
|
50734
|
-
boxShadow: token.
|
|
50792
|
+
boxShadow: token.boxShadowSecondary,
|
|
50735
50793
|
transition: "margin ".concat(token.motionDurationSlow)
|
|
50736
50794
|
}, defineProperty_defineProperty(_$concat11, "".concat(componentCls, "-panels"), {
|
|
50737
50795
|
display: 'inline-flex',
|
|
50738
50796
|
flexWrap: 'nowrap',
|
|
50739
|
-
direction: 'ltr'
|
|
50797
|
+
direction: 'ltr',
|
|
50798
|
+
'&:last-child': defineProperty_defineProperty({}, "".concat(componentCls, "-panel"), {
|
|
50799
|
+
borderWidth: 0
|
|
50800
|
+
})
|
|
50740
50801
|
}), defineProperty_defineProperty(_$concat11, "".concat(componentCls, "-panel"), (_$concat10 = {
|
|
50741
50802
|
verticalAlign: 'top',
|
|
50742
50803
|
background: 'transparent',
|
|
@@ -51251,9 +51312,19 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
51251
51312
|
renderFormItem = _ref.renderFormItem,
|
|
51252
51313
|
fieldProps = _ref.fieldProps;
|
|
51253
51314
|
var proxyChange = (0,external_React_.useCallback)(function (value) {
|
|
51254
|
-
var
|
|
51315
|
+
var val = value;
|
|
51316
|
+
|
|
51317
|
+
if (typeof value === 'string') {
|
|
51318
|
+
val = Number(val);
|
|
51319
|
+
}
|
|
51320
|
+
|
|
51321
|
+
if (typeof val === 'number') {
|
|
51322
|
+
var _val, _val$toFixed, _fieldProps$precision;
|
|
51323
|
+
|
|
51324
|
+
val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
|
|
51325
|
+
val = Number(val);
|
|
51326
|
+
}
|
|
51255
51327
|
|
|
51256
|
-
var val = Number(value === null || value === void 0 ? void 0 : value.toFixed((_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0));
|
|
51257
51328
|
return fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.onChange(val);
|
|
51258
51329
|
}, [fieldProps]);
|
|
51259
51330
|
|
|
@@ -51464,6 +51535,7 @@ var relativeTime_default = /*#__PURE__*/__webpack_require__.n(relativeTime);
|
|
|
51464
51535
|
|
|
51465
51536
|
// 兼容代码-----------
|
|
51466
51537
|
|
|
51538
|
+
|
|
51467
51539
|
//----------------------
|
|
51468
51540
|
|
|
51469
51541
|
dayjs_min_default().extend((relativeTime_default()));
|
|
@@ -51473,7 +51545,7 @@ dayjs_min_default().extend((relativeTime_default()));
|
|
|
51473
51545
|
* @param
|
|
51474
51546
|
*/
|
|
51475
51547
|
|
|
51476
|
-
var FieldFromNow = function FieldFromNow(_ref) {
|
|
51548
|
+
var FieldFromNow = function FieldFromNow(_ref, ref) {
|
|
51477
51549
|
var text = _ref.text,
|
|
51478
51550
|
mode = _ref.mode,
|
|
51479
51551
|
render = _ref.render,
|
|
@@ -51506,6 +51578,7 @@ var FieldFromNow = function FieldFromNow(_ref) {
|
|
|
51506
51578
|
var momentValue = parseValueToDay(fieldProps.value);
|
|
51507
51579
|
|
|
51508
51580
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.DatePicker, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
51581
|
+
ref: ref,
|
|
51509
51582
|
placeholder: placeholder,
|
|
51510
51583
|
showTime: true
|
|
51511
51584
|
}, fieldProps), {}, {
|
|
@@ -51524,7 +51597,7 @@ var FieldFromNow = function FieldFromNow(_ref) {
|
|
|
51524
51597
|
return null;
|
|
51525
51598
|
};
|
|
51526
51599
|
|
|
51527
|
-
/* harmony default export */ var FromNow = (FieldFromNow);
|
|
51600
|
+
/* harmony default export */ var FromNow = (/*#__PURE__*/external_React_default().forwardRef(FieldFromNow));
|
|
51528
51601
|
;// CONCATENATED MODULE: ./node_modules/antd/es/style/motion/fade.js
|
|
51529
51602
|
|
|
51530
51603
|
|
|
@@ -51833,8 +51906,9 @@ var genModalStyle = function genModalStyle(token) {
|
|
|
51833
51906
|
backgroundClip: 'padding-box',
|
|
51834
51907
|
border: 0,
|
|
51835
51908
|
borderRadius: token.radiusLG,
|
|
51836
|
-
boxShadow: token.
|
|
51837
|
-
pointerEvents: 'auto'
|
|
51909
|
+
boxShadow: token.boxShadowSecondary,
|
|
51910
|
+
pointerEvents: 'auto',
|
|
51911
|
+
padding: "".concat(token.paddingTmp, "px ").concat(token.paddingLG, "px")
|
|
51838
51912
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-close"), {
|
|
51839
51913
|
position: 'absolute',
|
|
51840
51914
|
top: 0,
|
|
@@ -51866,22 +51940,18 @@ var genModalStyle = function genModalStyle(token) {
|
|
|
51866
51940
|
textDecoration: 'none'
|
|
51867
51941
|
}
|
|
51868
51942
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-header"), {
|
|
51869
|
-
padding: token.modalHeaderPadding,
|
|
51870
51943
|
color: token.colorText,
|
|
51871
51944
|
background: token.modalHeaderBg,
|
|
51872
|
-
|
|
51873
|
-
|
|
51945
|
+
borderRadius: "".concat(token.radiusLG, "px ").concat(token.radiusLG, "px 0 0"),
|
|
51946
|
+
marginBottom: token.marginXS
|
|
51874
51947
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-body"), {
|
|
51875
|
-
padding: token.modalBodyPadding,
|
|
51876
51948
|
fontSize: token.fontSizeBase,
|
|
51877
51949
|
lineHeight: token.lineHeight,
|
|
51878
51950
|
wordWrap: 'break-word'
|
|
51879
51951
|
}), defineProperty_defineProperty(_extends3, "".concat(componentCls, "-footer"), defineProperty_defineProperty({
|
|
51880
|
-
padding: "".concat(token.modalFooterPaddingVertical, "px ").concat(token.modalFooterPaddingHorizontal, "px"),
|
|
51881
51952
|
textAlign: 'end',
|
|
51882
51953
|
background: token.modalFooterBg,
|
|
51883
|
-
|
|
51884
|
-
borderRadius: "0 0 ".concat(token.radiusLG, "px ").concat(token.radiusLG, "px")
|
|
51954
|
+
marginTop: token.marginSM
|
|
51885
51955
|
}, "".concat(token.antCls, "-btn + ").concat(token.antCls, "-btn:not(").concat(token.antCls, "-dropdown-trigger)"), {
|
|
51886
51956
|
marginBottom: 0,
|
|
51887
51957
|
marginInlineStart: token.marginXS
|
|
@@ -51905,8 +51975,6 @@ var genModalConfirmStyle = function genModalConfirmStyle(token) {
|
|
|
51905
51975
|
}
|
|
51906
51976
|
}, defineProperty_defineProperty(_confirmComponentCls, "".concat(token.antCls, "-modal-header"), {
|
|
51907
51977
|
display: 'none'
|
|
51908
|
-
}), defineProperty_defineProperty(_confirmComponentCls, "".concat(token.antCls, "-modal-body"), {
|
|
51909
|
-
padding: "".concat(token.padding * 2, "px ").concat(token.padding * 2, "px ").concat(token.paddingLG, "px")
|
|
51910
51978
|
}), defineProperty_defineProperty(_confirmComponentCls, "".concat(confirmComponentCls, "-body-wrapper"), extends_extends({}, clearFix())), defineProperty_defineProperty(_confirmComponentCls, "".concat(confirmComponentCls, "-body"), (_$concat7 = {
|
|
51911
51979
|
display: 'flex',
|
|
51912
51980
|
flexWrap: 'wrap',
|
|
@@ -51926,15 +51994,15 @@ var genModalConfirmStyle = function genModalConfirmStyle(token) {
|
|
|
51926
51994
|
fontSize: token.fontSizeBase
|
|
51927
51995
|
}), defineProperty_defineProperty(_$concat7, "> ".concat(token.iconCls), defineProperty_defineProperty({
|
|
51928
51996
|
flex: 'none',
|
|
51929
|
-
marginInlineEnd: token.
|
|
51997
|
+
marginInlineEnd: token.marginSM,
|
|
51930
51998
|
fontSize: token.modalConfirmIconSize
|
|
51931
51999
|
}, "+ ".concat(confirmComponentCls, "-title + ").concat(confirmComponentCls, "-content"), {
|
|
51932
|
-
marginInlineStart: token.modalConfirmIconSize + token.
|
|
52000
|
+
marginInlineStart: token.modalConfirmIconSize + token.marginSM,
|
|
51933
52001
|
marginBlockStart: token.marginXS,
|
|
51934
52002
|
flexBasis: '100%'
|
|
51935
52003
|
})), _$concat7)), defineProperty_defineProperty(_confirmComponentCls, "".concat(confirmComponentCls, "-btns"), defineProperty_defineProperty({
|
|
51936
52004
|
textAlign: 'end',
|
|
51937
|
-
marginTop: token.
|
|
52005
|
+
marginTop: token.marginSM
|
|
51938
52006
|
}, "".concat(token.antCls, "-btn + ").concat(token.antCls, "-btn"), {
|
|
51939
52007
|
marginBottom: 0,
|
|
51940
52008
|
marginInlineStart: token.marginXS
|
|
@@ -52316,36 +52384,35 @@ function connectArrowCls(classList) {
|
|
|
52316
52384
|
}).join(',');
|
|
52317
52385
|
}
|
|
52318
52386
|
|
|
52319
|
-
function getArrowStyle(token, colorBg, showArrowCls) {
|
|
52387
|
+
function getArrowStyle(token, colorBg, showArrowCls, arrowMargin) {
|
|
52320
52388
|
var _componentCls;
|
|
52321
52389
|
|
|
52322
52390
|
var componentCls = token.componentCls,
|
|
52323
52391
|
sizePopupArrow = token.sizePopupArrow,
|
|
52324
52392
|
marginXXS = token.marginXXS,
|
|
52325
52393
|
radiusXS = token.radiusXS,
|
|
52326
|
-
radiusOuter = token.radiusOuter
|
|
52327
|
-
|
|
52394
|
+
radiusOuter = token.radiusOuter,
|
|
52395
|
+
boxShadowPopoverArrow = token.boxShadowPopoverArrow,
|
|
52396
|
+
marginXS = token.marginXS;
|
|
52397
|
+
var dropdownArrowOffset = arrowMargin !== null && arrowMargin !== void 0 ? arrowMargin : marginXS;
|
|
52328
52398
|
var dropdownArrowDistance = sizePopupArrow + marginXXS;
|
|
52329
52399
|
return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-arrow"), [extends_extends(extends_extends({
|
|
52330
52400
|
position: 'absolute',
|
|
52331
52401
|
zIndex: 1,
|
|
52332
|
-
display: 'block'
|
|
52333
|
-
|
|
52334
|
-
height: sizePopupArrow
|
|
52335
|
-
}, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg)), {
|
|
52402
|
+
display: 'block'
|
|
52403
|
+
}, roundedArrow(sizePopupArrow, radiusXS, radiusOuter, colorBg, boxShadowPopoverArrow)), {
|
|
52336
52404
|
'&:before': {
|
|
52337
52405
|
background: colorBg
|
|
52338
52406
|
}
|
|
52339
52407
|
})]), defineProperty_defineProperty(_componentCls, ["&-placement-top ".concat(componentCls, "-arrow"), "&-placement-topLeft ".concat(componentCls, "-arrow"), "&-placement-topRight ".concat(componentCls, "-arrow")].join(','), {
|
|
52340
52408
|
bottom: 0,
|
|
52341
|
-
|
|
52342
|
-
transform: 'translateY(50%) rotate(45deg)'
|
|
52409
|
+
transform: 'translateY(100%) rotate(180deg)'
|
|
52343
52410
|
}), defineProperty_defineProperty(_componentCls, "&-placement-top ".concat(componentCls, "-arrow"), {
|
|
52344
52411
|
left: {
|
|
52345
52412
|
_skip_check_: true,
|
|
52346
52413
|
value: '50%'
|
|
52347
52414
|
},
|
|
52348
|
-
transform: 'translateX(-50%) translateY(
|
|
52415
|
+
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
|
52349
52416
|
}), defineProperty_defineProperty(_componentCls, "&-placement-topLeft ".concat(componentCls, "-arrow"), {
|
|
52350
52417
|
left: {
|
|
52351
52418
|
_skip_check_: true,
|
|
@@ -52358,14 +52425,13 @@ function getArrowStyle(token, colorBg, showArrowCls) {
|
|
|
52358
52425
|
}
|
|
52359
52426
|
}), defineProperty_defineProperty(_componentCls, ["&-placement-bottom ".concat(componentCls, "-arrow"), "&-placement-bottomLeft ".concat(componentCls, "-arrow"), "&-placement-bottomRight ".concat(componentCls, "-arrow")].join(','), {
|
|
52360
52427
|
top: 0,
|
|
52361
|
-
|
|
52362
|
-
transform: "translateY(-50%) rotate(-135deg)"
|
|
52428
|
+
transform: "translateY(-100%)"
|
|
52363
52429
|
}), defineProperty_defineProperty(_componentCls, "&-placement-bottom ".concat(componentCls, "-arrow"), {
|
|
52364
52430
|
left: {
|
|
52365
52431
|
_skip_check_: true,
|
|
52366
52432
|
value: '50%'
|
|
52367
52433
|
},
|
|
52368
|
-
transform: "translateX(-50%) translateY(-
|
|
52434
|
+
transform: "translateX(-50%) translateY(-100%)"
|
|
52369
52435
|
}), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft ".concat(componentCls, "-arrow"), {
|
|
52370
52436
|
left: {
|
|
52371
52437
|
_skip_check_: true,
|
|
@@ -52381,14 +52447,13 @@ function getArrowStyle(token, colorBg, showArrowCls) {
|
|
|
52381
52447
|
_skip_check_: true,
|
|
52382
52448
|
value: 0
|
|
52383
52449
|
},
|
|
52384
|
-
|
|
52385
|
-
transform: 'translateX(50%) rotate(-45deg)'
|
|
52450
|
+
transform: 'translateX(100%) rotate(90deg)'
|
|
52386
52451
|
}), defineProperty_defineProperty(_componentCls, "&-placement-left ".concat(componentCls, "-arrow"), {
|
|
52387
52452
|
top: {
|
|
52388
52453
|
_skip_check_: true,
|
|
52389
52454
|
value: '50%'
|
|
52390
52455
|
},
|
|
52391
|
-
transform: 'translateY(-50%) translateX(
|
|
52456
|
+
transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
|
|
52392
52457
|
}), defineProperty_defineProperty(_componentCls, "&-placement-leftTop ".concat(componentCls, "-arrow"), {
|
|
52393
52458
|
top: dropdownArrowOffset
|
|
52394
52459
|
}), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom ".concat(componentCls, "-arrow"), {
|
|
@@ -52398,14 +52463,13 @@ function getArrowStyle(token, colorBg, showArrowCls) {
|
|
|
52398
52463
|
_skip_check_: true,
|
|
52399
52464
|
value: 0
|
|
52400
52465
|
},
|
|
52401
|
-
|
|
52402
|
-
transform: 'translateX(-50%) rotate(135deg)'
|
|
52466
|
+
transform: 'translateX(-100%) rotate(-90deg)'
|
|
52403
52467
|
}), defineProperty_defineProperty(_componentCls, "&-placement-right ".concat(componentCls, "-arrow"), {
|
|
52404
52468
|
top: {
|
|
52405
52469
|
_skip_check_: true,
|
|
52406
52470
|
value: '50%'
|
|
52407
52471
|
},
|
|
52408
|
-
transform: 'translateY(-50%) translateX(-
|
|
52472
|
+
transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
|
|
52409
52473
|
}), defineProperty_defineProperty(_componentCls, "&-placement-rightTop ".concat(componentCls, "-arrow"), {
|
|
52410
52474
|
top: dropdownArrowOffset
|
|
52411
52475
|
}), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom ".concat(componentCls, "-arrow"), {
|
|
@@ -52441,18 +52505,13 @@ var popover_style_genBaseStyle = function genBaseStyle(token) {
|
|
|
52441
52505
|
popoverBg = token.popoverBg,
|
|
52442
52506
|
popoverColor = token.popoverColor,
|
|
52443
52507
|
width = token.width,
|
|
52444
|
-
popoverPaddingHorizontal = token.popoverPaddingHorizontal,
|
|
52445
|
-
popoverTitlePaddingBlockTop = token.popoverTitlePaddingBlockTop,
|
|
52446
|
-
popoverTitlePaddingBlockBottom = token.popoverTitlePaddingBlockBottom,
|
|
52447
|
-
lineWidth = token.lineWidth,
|
|
52448
|
-
lineType = token.lineType,
|
|
52449
52508
|
fontWeightStrong = token.fontWeightStrong,
|
|
52450
|
-
|
|
52451
|
-
|
|
52509
|
+
popoverPadding = token.popoverPadding,
|
|
52510
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
|
52452
52511
|
colorTextHeading = token.colorTextHeading,
|
|
52453
52512
|
borderRadius = token.radiusLG,
|
|
52454
|
-
|
|
52455
|
-
|
|
52513
|
+
zIndexPopup = token.zIndexPopup,
|
|
52514
|
+
marginXS = token.marginXS;
|
|
52456
52515
|
return [defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
52457
52516
|
position: 'absolute',
|
|
52458
52517
|
top: 0,
|
|
@@ -52475,16 +52534,14 @@ var popover_style_genBaseStyle = function genBaseStyle(token) {
|
|
|
52475
52534
|
backgroundColor: popoverBg,
|
|
52476
52535
|
backgroundClip: 'padding-box',
|
|
52477
52536
|
borderRadius: borderRadius,
|
|
52478
|
-
boxShadow:
|
|
52537
|
+
boxShadow: boxShadowSecondary,
|
|
52538
|
+
padding: popoverPadding
|
|
52479
52539
|
}), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-title"), {
|
|
52480
52540
|
minWidth: width,
|
|
52481
|
-
|
|
52482
|
-
padding: "".concat(popoverTitlePaddingBlockTop, "px ").concat(popoverPaddingHorizontal, "px ").concat(popoverTitlePaddingBlockBottom, "px"),
|
|
52541
|
+
marginBottom: marginXS,
|
|
52483
52542
|
color: colorTextHeading,
|
|
52484
|
-
fontWeight: fontWeightStrong
|
|
52485
|
-
borderBottom: "".concat(lineWidth, "px ").concat(lineType, " ").concat(colorSplit)
|
|
52543
|
+
fontWeight: fontWeightStrong
|
|
52486
52544
|
}), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-inner-content"), {
|
|
52487
|
-
padding: "".concat(paddingSM, "px ").concat(popoverPaddingHorizontal, "px"),
|
|
52488
52545
|
color: popoverColor
|
|
52489
52546
|
}), _extends2))), // Arrow Style
|
|
52490
52547
|
getArrowStyle(token, token.colorBgElevated), // Pure Render
|
|
@@ -52514,18 +52571,13 @@ var genColorStyle = function genColorStyle(token) {
|
|
|
52514
52571
|
};
|
|
52515
52572
|
|
|
52516
52573
|
/* harmony default export */ var popover_style = (genComponentStyleHook_genComponentStyleHook('Popover', function (token) {
|
|
52517
|
-
var
|
|
52518
|
-
|
|
52519
|
-
|
|
52520
|
-
lineWidth = token.lineWidth,
|
|
52521
|
-
colorBgElevated = token.colorBgElevated;
|
|
52522
|
-
var titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);
|
|
52574
|
+
var colorBgElevated = token.colorBgElevated,
|
|
52575
|
+
colorText = token.colorText,
|
|
52576
|
+
paddingSM = token.paddingSM;
|
|
52523
52577
|
var popoverToken = merge(token, {
|
|
52524
52578
|
popoverBg: colorBgElevated,
|
|
52525
|
-
popoverColor:
|
|
52526
|
-
|
|
52527
|
-
popoverTitlePaddingBlockBottom: titlePaddingBlockDist / 2 - lineWidth,
|
|
52528
|
-
popoverPaddingHorizontal: token.padding
|
|
52579
|
+
popoverColor: colorText,
|
|
52580
|
+
popoverPadding: paddingSM
|
|
52529
52581
|
});
|
|
52530
52582
|
return [popover_style_genBaseStyle(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];
|
|
52531
52583
|
}, function (_ref5) {
|
|
@@ -58554,7 +58606,7 @@ var Group_style_genProStyle = function genProStyle(token) {
|
|
|
58554
58606
|
}), defineProperty_defineProperty(_twoLine, "".concat(token.componentCls, "-container"), {
|
|
58555
58607
|
paddingInlineStart: 16
|
|
58556
58608
|
}), defineProperty_defineProperty(_twoLine, "".concat(token.antCls, "-space-item,").concat(token.antCls, "-form-item"), {
|
|
58557
|
-
|
|
58609
|
+
width: '100%'
|
|
58558
58610
|
}), defineProperty_defineProperty(_twoLine, "".concat(token.antCls, "-form-item"), {
|
|
58559
58611
|
'&-control': {
|
|
58560
58612
|
display: 'flex',
|
|
@@ -64831,7 +64883,7 @@ var genDrawerStyle = function genDrawerStyle(token) {
|
|
|
64831
64883
|
_skip_check_: true,
|
|
64832
64884
|
value: 0
|
|
64833
64885
|
},
|
|
64834
|
-
boxShadow: token.
|
|
64886
|
+
boxShadow: token.boxShadowDrawerLeft
|
|
64835
64887
|
}), defineProperty_defineProperty(_componentCls, "&-right > ".concat(wrapperCls), {
|
|
64836
64888
|
top: 0,
|
|
64837
64889
|
right: {
|
|
@@ -64839,15 +64891,15 @@ var genDrawerStyle = function genDrawerStyle(token) {
|
|
|
64839
64891
|
value: 0
|
|
64840
64892
|
},
|
|
64841
64893
|
bottom: 0,
|
|
64842
|
-
boxShadow: token.
|
|
64894
|
+
boxShadow: token.boxShadowDrawerRight
|
|
64843
64895
|
}), defineProperty_defineProperty(_componentCls, "&-top > ".concat(wrapperCls), {
|
|
64844
64896
|
top: 0,
|
|
64845
64897
|
insetInline: 0,
|
|
64846
|
-
boxShadow: token.
|
|
64898
|
+
boxShadow: token.boxShadowDrawerUp
|
|
64847
64899
|
}), defineProperty_defineProperty(_componentCls, "&-bottom > ".concat(wrapperCls), {
|
|
64848
64900
|
bottom: 0,
|
|
64849
64901
|
insetInline: 0,
|
|
64850
|
-
boxShadow: token.
|
|
64902
|
+
boxShadow: token.boxShadowDrawerDown
|
|
64851
64903
|
}), defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-content"), {
|
|
64852
64904
|
width: '100%',
|
|
64853
64905
|
height: '100%',
|
|
@@ -69871,11 +69923,11 @@ var getVerticalStyle = function getVerticalStyle(token) {
|
|
|
69871
69923
|
fontSizeLG = token.fontSizeLG,
|
|
69872
69924
|
motionDurationSlow = token.motionDurationSlow,
|
|
69873
69925
|
paddingXS = token.paddingXS,
|
|
69874
|
-
|
|
69926
|
+
boxShadowSecondary = token.boxShadowSecondary;
|
|
69875
69927
|
return [(_ref2 = {}, defineProperty_defineProperty(_ref2, componentCls, defineProperty_defineProperty({}, "&-inline, &-vertical", extends_extends(defineProperty_defineProperty({}, "&".concat(componentCls, "-root"), {
|
|
69876
69928
|
boxShadow: 'none'
|
|
69877
69929
|
}), getVerticalInlineStyle(token)))), defineProperty_defineProperty(_ref2, "".concat(componentCls, "-submenu-popup"), defineProperty_defineProperty({}, "".concat(componentCls, "-vertical"), extends_extends(extends_extends({}, getVerticalInlineStyle(token)), {
|
|
69878
|
-
boxShadow:
|
|
69930
|
+
boxShadow: boxShadowSecondary
|
|
69879
69931
|
}))), _ref2), // Vertical only
|
|
69880
69932
|
defineProperty_defineProperty({}, "".concat(componentCls, "-submenu-popup ").concat(componentCls, "-vertical").concat(componentCls, "-sub"), {
|
|
69881
69933
|
minWidth: dropdownWidth,
|
|
@@ -70240,7 +70292,7 @@ var genMessageStyle = function genMessageStyle(token) {
|
|
|
70240
70292
|
|
|
70241
70293
|
var componentCls = token.componentCls,
|
|
70242
70294
|
iconCls = token.iconCls,
|
|
70243
|
-
|
|
70295
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
|
70244
70296
|
colorBgElevated = token.colorBgElevated,
|
|
70245
70297
|
colorSuccess = token.colorSuccess,
|
|
70246
70298
|
colorError = token.colorError,
|
|
@@ -70320,7 +70372,7 @@ var genMessageStyle = function genMessageStyle(token) {
|
|
|
70320
70372
|
padding: messageNoticeContentPadding,
|
|
70321
70373
|
background: colorBgElevated,
|
|
70322
70374
|
borderRadius: radiusLG,
|
|
70323
|
-
boxShadow:
|
|
70375
|
+
boxShadow: boxShadowSecondary,
|
|
70324
70376
|
pointerEvents: 'all'
|
|
70325
70377
|
}), defineProperty_defineProperty(_$concat, "".concat(componentCls, "-success ").concat(iconCls), {
|
|
70326
70378
|
color: colorSuccess
|
|
@@ -70341,7 +70393,7 @@ var genMessageStyle = function genMessageStyle(token) {
|
|
|
70341
70393
|
/* harmony default export */ var message_style = (genComponentStyleHook_genComponentStyleHook('Message', function (token) {
|
|
70342
70394
|
// Gen-style functions here
|
|
70343
70395
|
var combinedToken = merge(token, {
|
|
70344
|
-
messageNoticeContentPadding: "".concat((token.controlHeightLG - token.fontSize * token.lineHeight) / 2, "px ").concat(token.
|
|
70396
|
+
messageNoticeContentPadding: "".concat((token.controlHeightLG - token.fontSize * token.lineHeight) / 2, "px ").concat(token.paddingSM, "px")
|
|
70345
70397
|
});
|
|
70346
70398
|
return [genMessageStyle(combinedToken)];
|
|
70347
70399
|
}, function (token) {
|
|
@@ -70367,7 +70419,6 @@ var generatorTooltipPresetColor = function generatorTooltipPresetColor(token) {
|
|
|
70367
70419
|
previousValue["&".concat(componentCls, "-").concat(currentValue)] = (_previousValue$$conc = {}, defineProperty_defineProperty(_previousValue$$conc, "".concat(componentCls, "-inner"), {
|
|
70368
70420
|
backgroundColor: lightColor
|
|
70369
70421
|
}), defineProperty_defineProperty(_previousValue$$conc, "".concat(componentCls, "-arrow"), {
|
|
70370
|
-
background: lightColor,
|
|
70371
70422
|
'--antd-arrow-background-color': lightColor
|
|
70372
70423
|
}), _previousValue$$conc);
|
|
70373
70424
|
return previousValue;
|
|
@@ -70384,7 +70435,7 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
70384
70435
|
tooltipBorderRadius = token.tooltipBorderRadius,
|
|
70385
70436
|
zIndexPopup = token.zIndexPopup,
|
|
70386
70437
|
controlHeight = token.controlHeight,
|
|
70387
|
-
|
|
70438
|
+
boxShadowSecondary = token.boxShadowSecondary,
|
|
70388
70439
|
paddingSM = token.paddingSM,
|
|
70389
70440
|
paddingXS = token.paddingXS;
|
|
70390
70441
|
return [defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends(extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
@@ -70412,7 +70463,7 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
70412
70463
|
wordWrap: 'break-word',
|
|
70413
70464
|
backgroundColor: tooltipBg,
|
|
70414
70465
|
borderRadius: tooltipBorderRadius,
|
|
70415
|
-
boxShadow:
|
|
70466
|
+
boxShadow: boxShadowSecondary
|
|
70416
70467
|
}), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
|
|
70417
70468
|
position: 'relative'
|
|
70418
70469
|
}), _extends2)), generatorTooltipPresetColor(token)), {
|
|
@@ -70423,7 +70474,7 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
70423
70474
|
})), // Arrow Style
|
|
70424
70475
|
getArrowStyle(merge(token, {
|
|
70425
70476
|
radiusOuter: 5
|
|
70426
|
-
}), 'var(--antd-arrow-background-color)', ''), // Pure Render
|
|
70477
|
+
}), 'var(--antd-arrow-background-color)', '', 0), // Pure Render
|
|
70427
70478
|
defineProperty_defineProperty({}, "".concat(componentCls, "-pure"), {
|
|
70428
70479
|
position: 'relative',
|
|
70429
70480
|
maxWidth: 'none'
|
|
@@ -82001,7 +82052,8 @@ function TableAlert(_ref) {
|
|
|
82001
82052
|
var className = getPrefixCls('pro-table-alert');
|
|
82002
82053
|
|
|
82003
82054
|
var _useStyle = Alert_style_useStyle(className),
|
|
82004
|
-
wrapSSR = _useStyle.wrapSSR
|
|
82055
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
82056
|
+
hashId = _useStyle.hashId;
|
|
82005
82057
|
|
|
82006
82058
|
if (alertInfoRender === false) {
|
|
82007
82059
|
return null;
|
|
@@ -82022,12 +82074,12 @@ function TableAlert(_ref) {
|
|
|
82022
82074
|
className: className,
|
|
82023
82075
|
children: (0,jsx_runtime.jsx)(external_antd_.Alert, {
|
|
82024
82076
|
message: (0,jsx_runtime.jsxs)("div", {
|
|
82025
|
-
className: "".concat(className, "-info"),
|
|
82077
|
+
className: "".concat(className, "-info ").concat(hashId),
|
|
82026
82078
|
children: [(0,jsx_runtime.jsx)("div", {
|
|
82027
|
-
className: "".concat(className, "-info-content"),
|
|
82079
|
+
className: "".concat(className, "-info-content ").concat(hashId),
|
|
82028
82080
|
children: dom
|
|
82029
82081
|
}), option ? (0,jsx_runtime.jsx)("div", {
|
|
82030
|
-
className: "".concat(className, "-info-option"),
|
|
82082
|
+
className: "".concat(className, "-info-option ").concat(hashId),
|
|
82031
82083
|
children: option
|
|
82032
82084
|
}) : null]
|
|
82033
82085
|
}),
|
|
@@ -98303,7 +98355,7 @@ function cssVariables_getStyle(globalPrefixCls, theme) {
|
|
|
98303
98355
|
variables["".concat(type, "-color")] = formatColor(baseColor);
|
|
98304
98356
|
variables["".concat(type, "-color-disabled")] = colorPalettes[1];
|
|
98305
98357
|
variables["".concat(type, "-color-hover")] = colorPalettes[4];
|
|
98306
|
-
variables["".concat(type, "-color-active")] = colorPalettes[
|
|
98358
|
+
variables["".concat(type, "-color-active")] = colorPalettes[6];
|
|
98307
98359
|
variables["".concat(type, "-color-outline")] = baseColor.clone().setAlpha(0.2).toRgbString();
|
|
98308
98360
|
variables["".concat(type, "-color-deprecated-bg")] = colorPalettes[1];
|
|
98309
98361
|
variables["".concat(type, "-color-deprecated-border")] = colorPalettes[3];
|
|
@@ -98544,6 +98596,7 @@ var ProviderChildren = function ProviderChildren(props) {
|
|
|
98544
98596
|
virtual: virtual,
|
|
98545
98597
|
dropdownMatchSelectWidth: dropdownMatchSelectWidth,
|
|
98546
98598
|
getPrefixCls: getPrefixCls,
|
|
98599
|
+
iconPrefixCls: iconPrefixCls !== null && iconPrefixCls !== void 0 ? iconPrefixCls : context_defaultIconPrefixCls,
|
|
98547
98600
|
theme: mergedTheme
|
|
98548
98601
|
}); // Pass the props used by `useContext` directly with child component.
|
|
98549
98602
|
// These props should merged into `config`.
|
|
@@ -99640,8 +99693,10 @@ var genPrimaryButtonStyle = function genPrimaryButtonStyle(token) {
|
|
|
99640
99693
|
backgroundColor: token.colorPrimary,
|
|
99641
99694
|
boxShadow: "0 ".concat(token.controlOutlineWidth, "px 0 ").concat(token.controlOutline)
|
|
99642
99695
|
}), genHoverActiveButtonStyle({
|
|
99696
|
+
color: token.colorTextLightSolid,
|
|
99643
99697
|
backgroundColor: token.colorPrimaryHover
|
|
99644
99698
|
}, {
|
|
99699
|
+
color: token.colorTextLightSolid,
|
|
99645
99700
|
backgroundColor: token.colorPrimaryActive
|
|
99646
99701
|
})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder)), defineProperty_defineProperty({}, "&".concat(token.componentCls, "-dangerous"), extends_extends(extends_extends(extends_extends({
|
|
99647
99702
|
backgroundColor: token.colorError,
|
|
@@ -99680,12 +99735,18 @@ var genLinkButtonStyle = function genLinkButtonStyle(token) {
|
|
|
99680
99735
|
|
|
99681
99736
|
var genTextButtonStyle = function genTextButtonStyle(token) {
|
|
99682
99737
|
return extends_extends(extends_extends(extends_extends({}, genHoverActiveButtonStyle({
|
|
99738
|
+
color: token.colorText,
|
|
99683
99739
|
backgroundColor: token.colorBgTextHover
|
|
99684
99740
|
}, {
|
|
99741
|
+
color: token.colorText,
|
|
99685
99742
|
backgroundColor: token.colorBgTextActive
|
|
99686
|
-
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&".concat(token.componentCls, "-dangerous"), extends_extends({
|
|
99743
|
+
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&".concat(token.componentCls, "-dangerous"), extends_extends(extends_extends({
|
|
99744
|
+
color: token.colorError
|
|
99745
|
+
}, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({
|
|
99687
99746
|
color: token.colorError
|
|
99688
|
-
},
|
|
99747
|
+
}, {
|
|
99748
|
+
color: token.colorError
|
|
99749
|
+
}))));
|
|
99689
99750
|
};
|
|
99690
99751
|
|
|
99691
99752
|
var genTypeButtonStyle = function genTypeButtonStyle(token) {
|
|
@@ -105956,17 +106017,17 @@ function BaseProList(props) {
|
|
|
105956
106017
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
105957
106018
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
105958
106019
|
var version_version = {
|
|
105959
|
-
"@ant-design/pro-card": "2.0.0
|
|
105960
|
-
"@ant-design/pro-components": "2.
|
|
105961
|
-
"@ant-design/pro-descriptions": "2.0.0
|
|
105962
|
-
"@ant-design/pro-field": "2.0.0
|
|
105963
|
-
"@ant-design/pro-form": "2.0.0
|
|
105964
|
-
"@ant-design/pro-layout": "7.0.0
|
|
105965
|
-
"@ant-design/pro-list": "2.0.0
|
|
105966
|
-
"@ant-design/pro-provider": "2.0.0
|
|
105967
|
-
"@ant-design/pro-skeleton": "2.0.0
|
|
105968
|
-
"@ant-design/pro-table": "3.0.0
|
|
105969
|
-
"@ant-design/pro-utils": "2.0.0
|
|
106020
|
+
"@ant-design/pro-card": "2.0.0",
|
|
106021
|
+
"@ant-design/pro-components": "2.3.1",
|
|
106022
|
+
"@ant-design/pro-descriptions": "2.0.0",
|
|
106023
|
+
"@ant-design/pro-field": "2.0.0",
|
|
106024
|
+
"@ant-design/pro-form": "2.0.0",
|
|
106025
|
+
"@ant-design/pro-layout": "7.0.0",
|
|
106026
|
+
"@ant-design/pro-list": "2.0.0",
|
|
106027
|
+
"@ant-design/pro-provider": "2.0.0",
|
|
106028
|
+
"@ant-design/pro-skeleton": "2.0.0",
|
|
106029
|
+
"@ant-design/pro-table": "3.0.0",
|
|
106030
|
+
"@ant-design/pro-utils": "2.0.0"
|
|
105970
106031
|
};
|
|
105971
106032
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
105972
106033
|
|