@gobolt/genesis 0.8.0 → 0.8.1
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/SidePanel/SidePanel.d.ts +30 -0
- package/dist/components/SidePanel/__stories__/SidePanel.stories.d.ts +18 -0
- package/dist/components/SidePanel/__tests__/SidePanel.test.d.ts +1 -0
- package/dist/components/SidePanel/index.d.ts +2 -0
- package/dist/components/SidePanel/styles.d.ts +8 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +1392 -269
- package/dist/index.js +1393 -270
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5271,7 +5271,7 @@ function getAlphaColor(frontColor, backgroundColor) {
|
|
|
5271
5271
|
a: 1
|
|
5272
5272
|
}).toRgbString();
|
|
5273
5273
|
}
|
|
5274
|
-
var __rest
|
|
5274
|
+
var __rest$$ = function(s, e3) {
|
|
5275
5275
|
var t2 = {};
|
|
5276
5276
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5277
5277
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5282,7 +5282,7 @@ var __rest$_ = function(s, e3) {
|
|
|
5282
5282
|
function formatToken(derivativeToken) {
|
|
5283
5283
|
const {
|
|
5284
5284
|
override
|
|
5285
|
-
} = derivativeToken, restToken = __rest
|
|
5285
|
+
} = derivativeToken, restToken = __rest$$(derivativeToken, ["override"]);
|
|
5286
5286
|
const overrideTokens = Object.assign({}, override);
|
|
5287
5287
|
Object.keys(seedToken).forEach((token2) => {
|
|
5288
5288
|
delete overrideTokens[token2];
|
|
@@ -5436,7 +5436,7 @@ function formatToken(derivativeToken) {
|
|
|
5436
5436
|
}), overrideTokens);
|
|
5437
5437
|
return aliasToken;
|
|
5438
5438
|
}
|
|
5439
|
-
var __rest$
|
|
5439
|
+
var __rest$_ = function(s, e3) {
|
|
5440
5440
|
var t2 = {};
|
|
5441
5441
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5442
5442
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5486,7 +5486,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5486
5486
|
const derivativeToken = theme.getDerivativeToken(originToken);
|
|
5487
5487
|
const {
|
|
5488
5488
|
override
|
|
5489
|
-
} = overrideToken, components2 = __rest$
|
|
5489
|
+
} = overrideToken, components2 = __rest$_(overrideToken, ["override"]);
|
|
5490
5490
|
let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
|
|
5491
5491
|
override
|
|
5492
5492
|
});
|
|
@@ -5495,7 +5495,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5495
5495
|
Object.entries(components2).forEach(([key, value2]) => {
|
|
5496
5496
|
const {
|
|
5497
5497
|
theme: componentTheme
|
|
5498
|
-
} = value2, componentTokens = __rest$
|
|
5498
|
+
} = value2, componentTokens = __rest$_(value2, ["theme"]);
|
|
5499
5499
|
let mergedComponentToken = componentTokens;
|
|
5500
5500
|
if (componentTheme) {
|
|
5501
5501
|
mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
|
|
@@ -5786,10 +5786,10 @@ function useTheme(theme, parentTheme, config) {
|
|
|
5786
5786
|
return !isEqual(prevTheme, nextTheme, true);
|
|
5787
5787
|
}));
|
|
5788
5788
|
}
|
|
5789
|
-
var _excluded$
|
|
5789
|
+
var _excluded$T = ["children"];
|
|
5790
5790
|
var Context$1 = /* @__PURE__ */ React__namespace.createContext({});
|
|
5791
5791
|
function MotionProvider(_ref) {
|
|
5792
|
-
var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$
|
|
5792
|
+
var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$T);
|
|
5793
5793
|
return /* @__PURE__ */ React__namespace.createElement(Context$1.Provider, {
|
|
5794
5794
|
value: props
|
|
5795
5795
|
}, children2);
|
|
@@ -6308,7 +6308,7 @@ function diffKeys() {
|
|
|
6308
6308
|
});
|
|
6309
6309
|
return list2;
|
|
6310
6310
|
}
|
|
6311
|
-
var _excluded$
|
|
6311
|
+
var _excluded$S = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
|
|
6312
6312
|
var MOTION_PROP_NAMES = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
6313
6313
|
function genCSSMotionList(transitionSupport) {
|
|
6314
6314
|
var CSSMotion$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion;
|
|
@@ -6356,7 +6356,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
6356
6356
|
var keyEntities = this.state.keyEntities;
|
|
6357
6357
|
var _this$props = this.props, component = _this$props.component, children2 = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged;
|
|
6358
6358
|
_this$props.onAllRemoved;
|
|
6359
|
-
var restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
6359
|
+
var restProps = _objectWithoutProperties$1(_this$props, _excluded$S);
|
|
6360
6360
|
var Component = component || React__namespace.Fragment;
|
|
6361
6361
|
var motionProps = {};
|
|
6362
6362
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
@@ -6450,7 +6450,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6450
6450
|
PropWarning$1.displayName = "PropWarning";
|
|
6451
6451
|
}
|
|
6452
6452
|
const PropWarning = process.env.NODE_ENV !== "production" ? PropWarning$1 : () => null;
|
|
6453
|
-
var __rest$
|
|
6453
|
+
var __rest$Z = function(s, e3) {
|
|
6454
6454
|
var t2 = {};
|
|
6455
6455
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
6456
6456
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -6495,7 +6495,7 @@ const ProviderChildren = (props) => {
|
|
|
6495
6495
|
children: children2,
|
|
6496
6496
|
csp: customCsp,
|
|
6497
6497
|
autoInsertSpaceInButton,
|
|
6498
|
-
alert,
|
|
6498
|
+
alert: alert2,
|
|
6499
6499
|
anchor,
|
|
6500
6500
|
form,
|
|
6501
6501
|
locale: locale2,
|
|
@@ -6595,7 +6595,7 @@ const ProviderChildren = (props) => {
|
|
|
6595
6595
|
const baseConfig = {
|
|
6596
6596
|
csp,
|
|
6597
6597
|
autoInsertSpaceInButton,
|
|
6598
|
-
alert,
|
|
6598
|
+
alert: alert2,
|
|
6599
6599
|
anchor,
|
|
6600
6600
|
locale: locale2 || legacyLocale,
|
|
6601
6601
|
direction,
|
|
@@ -6737,7 +6737,7 @@ const ProviderChildren = (props) => {
|
|
|
6737
6737
|
token: token2,
|
|
6738
6738
|
components: components2,
|
|
6739
6739
|
cssVar
|
|
6740
|
-
} = _a, rest = __rest$
|
|
6740
|
+
} = _a, rest = __rest$Z(_a, ["algorithm", "token", "components", "cssVar"]);
|
|
6741
6741
|
const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
|
|
6742
6742
|
const parsedComponents = {};
|
|
6743
6743
|
Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
|
|
@@ -6884,7 +6884,7 @@ var useInsertStyles = function useInsertStyles2(eleRef) {
|
|
|
6884
6884
|
});
|
|
6885
6885
|
}, []);
|
|
6886
6886
|
};
|
|
6887
|
-
var _excluded$
|
|
6887
|
+
var _excluded$R = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
|
6888
6888
|
var twoToneColorPalette = {
|
|
6889
6889
|
primaryColor: "#333",
|
|
6890
6890
|
secondaryColor: "#E6E6E6",
|
|
@@ -6900,7 +6900,7 @@ function getTwoToneColors() {
|
|
|
6900
6900
|
return _objectSpread2({}, twoToneColorPalette);
|
|
6901
6901
|
}
|
|
6902
6902
|
var IconBase$1 = function IconBase(props) {
|
|
6903
|
-
var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
6903
|
+
var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$R);
|
|
6904
6904
|
var svgRef = React__namespace.useRef();
|
|
6905
6905
|
var colors2 = twoToneColorPalette;
|
|
6906
6906
|
if (primaryColor) {
|
|
@@ -6950,10 +6950,10 @@ function getTwoToneColor() {
|
|
|
6950
6950
|
}
|
|
6951
6951
|
return [colors2.primaryColor, colors2.secondaryColor];
|
|
6952
6952
|
}
|
|
6953
|
-
var _excluded$
|
|
6953
|
+
var _excluded$Q = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6954
6954
|
setTwoToneColor(blue.primary);
|
|
6955
6955
|
var Icon$3 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
6956
|
-
var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
6956
|
+
var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$Q);
|
|
6957
6957
|
var _React$useContext = React__namespace.useContext(IconContext$1), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
|
|
6958
6958
|
var classString = classNames(rootClassName, prefixCls, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), className);
|
|
6959
6959
|
var iconTabIndex = tabIndex;
|
|
@@ -7251,7 +7251,7 @@ const genActionStyle = (token2) => {
|
|
|
7251
7251
|
}
|
|
7252
7252
|
};
|
|
7253
7253
|
};
|
|
7254
|
-
const prepareComponentToken$
|
|
7254
|
+
const prepareComponentToken$q = (token2) => {
|
|
7255
7255
|
const paddingHorizontal = 12;
|
|
7256
7256
|
return {
|
|
7257
7257
|
withDescriptionIconSize: token2.fontSizeHeading3,
|
|
@@ -7259,8 +7259,8 @@ const prepareComponentToken$p = (token2) => {
|
|
|
7259
7259
|
withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
|
|
7260
7260
|
};
|
|
7261
7261
|
};
|
|
7262
|
-
const useStyle$
|
|
7263
|
-
var __rest$
|
|
7262
|
+
const useStyle$w = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$q);
|
|
7263
|
+
var __rest$Y = function(s, e3) {
|
|
7264
7264
|
var t2 = {};
|
|
7265
7265
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
7266
7266
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -7327,7 +7327,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7327
7327
|
closeIcon,
|
|
7328
7328
|
action,
|
|
7329
7329
|
id: id2
|
|
7330
|
-
} = props, otherProps = __rest$
|
|
7330
|
+
} = props, otherProps = __rest$Y(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
|
|
7331
7331
|
const [closed, setClosed] = React__namespace.useState(false);
|
|
7332
7332
|
if (process.env.NODE_ENV !== "production") {
|
|
7333
7333
|
const warning3 = devUseWarning("Alert");
|
|
@@ -7346,7 +7346,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7346
7346
|
style: contextStyle
|
|
7347
7347
|
} = useComponentConfig("alert");
|
|
7348
7348
|
const prefixCls = getPrefixCls("alert", customizePrefixCls);
|
|
7349
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
7349
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$w(prefixCls);
|
|
7350
7350
|
const handleClose = (e3) => {
|
|
7351
7351
|
var _a;
|
|
7352
7352
|
setClosed(true);
|
|
@@ -7402,7 +7402,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7402
7402
|
if (typeof merged === "object") {
|
|
7403
7403
|
const {
|
|
7404
7404
|
closeIcon: _
|
|
7405
|
-
} = merged, ariaProps = __rest$
|
|
7405
|
+
} = merged, ariaProps = __rest$Y(merged, ["closeIcon"]);
|
|
7406
7406
|
return ariaProps;
|
|
7407
7407
|
}
|
|
7408
7408
|
return {};
|
|
@@ -8308,7 +8308,7 @@ const genWaveStyle = (token2) => {
|
|
|
8308
8308
|
}
|
|
8309
8309
|
};
|
|
8310
8310
|
};
|
|
8311
|
-
const useStyle$
|
|
8311
|
+
const useStyle$v = genComponentStyleHook("Wave", genWaveStyle);
|
|
8312
8312
|
const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
|
|
8313
8313
|
function isValidWaveColor(color2) {
|
|
8314
8314
|
return color2 && color2 !== "#fff" && color2 !== "#ffffff" && color2 !== "rgb(255, 255, 255)" && color2 !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(color2) && // any transparent rgba color
|
|
@@ -8486,7 +8486,7 @@ const Wave = (props) => {
|
|
|
8486
8486
|
} = React.useContext(ConfigContext);
|
|
8487
8487
|
const containerRef = React.useRef(null);
|
|
8488
8488
|
const prefixCls = getPrefixCls("wave");
|
|
8489
|
-
const [, hashId] = useStyle$
|
|
8489
|
+
const [, hashId] = useStyle$v(prefixCls);
|
|
8490
8490
|
const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
|
|
8491
8491
|
React.useEffect(() => {
|
|
8492
8492
|
const node2 = containerRef.current;
|
|
@@ -8614,7 +8614,7 @@ const genSpaceGapStyle = (token2) => {
|
|
|
8614
8614
|
}
|
|
8615
8615
|
};
|
|
8616
8616
|
};
|
|
8617
|
-
const useStyle$
|
|
8617
|
+
const useStyle$u = genStyleHooks("Space", (token2) => {
|
|
8618
8618
|
const spaceToken = merge$1(token2, {
|
|
8619
8619
|
spaceGapSmallSize: token2.paddingXS,
|
|
8620
8620
|
spaceGapMiddleSize: token2.padding,
|
|
@@ -8626,7 +8626,7 @@ const useStyle$t = genStyleHooks("Space", (token2) => {
|
|
|
8626
8626
|
// https://github.com/ant-design/ant-design/issues/40315
|
|
8627
8627
|
resetStyle: false
|
|
8628
8628
|
});
|
|
8629
|
-
var __rest$
|
|
8629
|
+
var __rest$X = function(s, e3) {
|
|
8630
8630
|
var t2 = {};
|
|
8631
8631
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8632
8632
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8670,7 +8670,7 @@ const NoCompactStyle = (props) => {
|
|
|
8670
8670
|
const CompactItem = (props) => {
|
|
8671
8671
|
const {
|
|
8672
8672
|
children: children2
|
|
8673
|
-
} = props, others = __rest$
|
|
8673
|
+
} = props, others = __rest$X(props, ["children"]);
|
|
8674
8674
|
return /* @__PURE__ */ React__namespace.createElement(SpaceCompactItemContext.Provider, {
|
|
8675
8675
|
value: React__namespace.useMemo(() => others, [others])
|
|
8676
8676
|
}, children2);
|
|
@@ -8688,10 +8688,10 @@ const Compact$1 = (props) => {
|
|
|
8688
8688
|
className,
|
|
8689
8689
|
rootClassName,
|
|
8690
8690
|
children: children2
|
|
8691
|
-
} = props, restProps = __rest$
|
|
8691
|
+
} = props, restProps = __rest$X(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
|
|
8692
8692
|
const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
|
|
8693
8693
|
const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
|
|
8694
|
-
const [wrapCSSVar, hashId] = useStyle$
|
|
8694
|
+
const [wrapCSSVar, hashId] = useStyle$u(prefixCls);
|
|
8695
8695
|
const clx = classNames(prefixCls, hashId, {
|
|
8696
8696
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
8697
8697
|
[`${prefixCls}-block`]: block,
|
|
@@ -8716,7 +8716,7 @@ const Compact$1 = (props) => {
|
|
|
8716
8716
|
className: clx
|
|
8717
8717
|
}, restProps), nodes));
|
|
8718
8718
|
};
|
|
8719
|
-
var __rest$
|
|
8719
|
+
var __rest$W = function(s, e3) {
|
|
8720
8720
|
var t2 = {};
|
|
8721
8721
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8722
8722
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8734,7 +8734,7 @@ const ButtonGroup = (props) => {
|
|
|
8734
8734
|
prefixCls: customizePrefixCls,
|
|
8735
8735
|
size,
|
|
8736
8736
|
className
|
|
8737
|
-
} = props, others = __rest$
|
|
8737
|
+
} = props, others = __rest$W(props, ["prefixCls", "size", "className"]);
|
|
8738
8738
|
const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
|
|
8739
8739
|
const [, , hashId] = useToken();
|
|
8740
8740
|
const sizeCls = React__namespace.useMemo(() => {
|
|
@@ -8969,7 +8969,7 @@ const genGroupStyle$2 = (token2) => {
|
|
|
8969
8969
|
]
|
|
8970
8970
|
};
|
|
8971
8971
|
};
|
|
8972
|
-
var _excluded$
|
|
8972
|
+
var _excluded$P = ["b"], _excluded2$8 = ["v"];
|
|
8973
8973
|
var getRoundNumber = function getRoundNumber2(value2) {
|
|
8974
8974
|
return Math.round(Number(value2 || 0));
|
|
8975
8975
|
};
|
|
@@ -8978,7 +8978,7 @@ var convertHsb2Hsv = function convertHsb2Hsv2(color2) {
|
|
|
8978
8978
|
return color2;
|
|
8979
8979
|
}
|
|
8980
8980
|
if (color2 && _typeof(color2) === "object" && "h" in color2 && "b" in color2) {
|
|
8981
|
-
var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$
|
|
8981
|
+
var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$P);
|
|
8982
8982
|
return _objectSpread2(_objectSpread2({}, resets), {}, {
|
|
8983
8983
|
v: b
|
|
8984
8984
|
});
|
|
@@ -10124,7 +10124,7 @@ const prepareToken$2 = (token2) => {
|
|
|
10124
10124
|
});
|
|
10125
10125
|
return buttonToken;
|
|
10126
10126
|
};
|
|
10127
|
-
const prepareComponentToken$
|
|
10127
|
+
const prepareComponentToken$p = (token2) => {
|
|
10128
10128
|
var _a, _b, _c, _d, _e, _f;
|
|
10129
10129
|
const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
|
|
10130
10130
|
const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
|
|
@@ -10631,7 +10631,7 @@ const genBlockButtonStyle = (token2) => {
|
|
|
10631
10631
|
}
|
|
10632
10632
|
};
|
|
10633
10633
|
};
|
|
10634
|
-
const useStyle$
|
|
10634
|
+
const useStyle$t = genStyleHooks("Button", (token2) => {
|
|
10635
10635
|
const buttonToken = prepareToken$2(token2);
|
|
10636
10636
|
return [
|
|
10637
10637
|
// Shared
|
|
@@ -10649,7 +10649,7 @@ const useStyle$s = genStyleHooks("Button", (token2) => {
|
|
|
10649
10649
|
// Button Group
|
|
10650
10650
|
genGroupStyle$2(buttonToken)
|
|
10651
10651
|
];
|
|
10652
|
-
}, prepareComponentToken$
|
|
10652
|
+
}, prepareComponentToken$p, {
|
|
10653
10653
|
unitless: {
|
|
10654
10654
|
fontWeight: true,
|
|
10655
10655
|
contentLineHeight: true,
|
|
@@ -10797,8 +10797,8 @@ const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
|
|
|
10797
10797
|
genCompactItemVerticalStyle(buttonToken),
|
|
10798
10798
|
genButtonCompactStyle(buttonToken)
|
|
10799
10799
|
];
|
|
10800
|
-
}, prepareComponentToken$
|
|
10801
|
-
var __rest$
|
|
10800
|
+
}, prepareComponentToken$p);
|
|
10801
|
+
var __rest$V = function(s, e3) {
|
|
10802
10802
|
var t2 = {};
|
|
10803
10803
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
10804
10804
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -10854,7 +10854,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
|
|
|
10854
10854
|
style: customStyle = {},
|
|
10855
10855
|
autoInsertSpace,
|
|
10856
10856
|
autoFocus
|
|
10857
|
-
} = props, rest = __rest$
|
|
10857
|
+
} = props, rest = __rest$V(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
10858
10858
|
const mergedType = type4 || "default";
|
|
10859
10859
|
const {
|
|
10860
10860
|
button: button2
|
|
@@ -10889,7 +10889,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
|
|
|
10889
10889
|
} = useComponentConfig("button");
|
|
10890
10890
|
const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
|
|
10891
10891
|
const prefixCls = getPrefixCls("btn", customizePrefixCls);
|
|
10892
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
10892
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
10893
10893
|
const disabled2 = React.useContext(DisabledContext);
|
|
10894
10894
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
|
|
10895
10895
|
const groupSize = React.useContext(GroupSizeContext);
|
|
@@ -12826,7 +12826,7 @@ function move(array4, moveIndex, toIndex) {
|
|
|
12826
12826
|
}
|
|
12827
12827
|
return array4;
|
|
12828
12828
|
}
|
|
12829
|
-
var _excluded$
|
|
12829
|
+
var _excluded$O = ["name"];
|
|
12830
12830
|
var EMPTY_ERRORS = [];
|
|
12831
12831
|
function requireUpdate(shouldUpdate, prev2, next2, prevValue, nextValue, info) {
|
|
12832
12832
|
if (typeof shouldUpdate === "function") {
|
|
@@ -13273,7 +13273,7 @@ _defineProperty$1(Field, "defaultProps", {
|
|
|
13273
13273
|
});
|
|
13274
13274
|
function WrapperField(_ref6) {
|
|
13275
13275
|
var _restProps$isListFiel;
|
|
13276
|
-
var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$
|
|
13276
|
+
var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$O);
|
|
13277
13277
|
var fieldContext = React__namespace.useContext(Context);
|
|
13278
13278
|
var listContext = React__namespace.useContext(ListContext);
|
|
13279
13279
|
var namePath = name2 !== void 0 ? getNamePath(name2) : void 0;
|
|
@@ -13505,7 +13505,7 @@ var NameMap = /* @__PURE__ */ (function() {
|
|
|
13505
13505
|
}]);
|
|
13506
13506
|
return NameMap2;
|
|
13507
13507
|
})();
|
|
13508
|
-
var _excluded$
|
|
13508
|
+
var _excluded$N = ["name"];
|
|
13509
13509
|
var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate) {
|
|
13510
13510
|
var _this = this;
|
|
13511
13511
|
_classCallCheck(this, FormStore2);
|
|
@@ -13907,7 +13907,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
13907
13907
|
var prevStore = _this.store;
|
|
13908
13908
|
var namePathList = [];
|
|
13909
13909
|
fields.forEach(function(fieldData) {
|
|
13910
|
-
var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
13910
|
+
var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$N);
|
|
13911
13911
|
var namePath = getNamePath(name2);
|
|
13912
13912
|
namePathList.push(namePath);
|
|
13913
13913
|
if ("value" in data) {
|
|
@@ -14313,9 +14313,9 @@ var FormProvider$1 = function FormProvider(_ref) {
|
|
|
14313
14313
|
})
|
|
14314
14314
|
}, children2);
|
|
14315
14315
|
};
|
|
14316
|
-
var _excluded$
|
|
14316
|
+
var _excluded$M = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
|
|
14317
14317
|
var Form$4 = function Form(_ref, ref) {
|
|
14318
|
-
var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
14318
|
+
var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$M);
|
|
14319
14319
|
var nativeElementRef = React__namespace.useRef(null);
|
|
14320
14320
|
var formContext = React__namespace.useContext(FormContext$1);
|
|
14321
14321
|
var _useForm = useForm$1(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
|
|
@@ -14561,6 +14561,93 @@ function mergeProps$1(...items) {
|
|
|
14561
14561
|
});
|
|
14562
14562
|
return ret;
|
|
14563
14563
|
}
|
|
14564
|
+
function pickClosable(context) {
|
|
14565
|
+
if (!context) {
|
|
14566
|
+
return void 0;
|
|
14567
|
+
}
|
|
14568
|
+
const {
|
|
14569
|
+
closable,
|
|
14570
|
+
closeIcon
|
|
14571
|
+
} = context;
|
|
14572
|
+
return {
|
|
14573
|
+
closable,
|
|
14574
|
+
closeIcon
|
|
14575
|
+
};
|
|
14576
|
+
}
|
|
14577
|
+
function useClosableConfig(closableCollection) {
|
|
14578
|
+
const {
|
|
14579
|
+
closable,
|
|
14580
|
+
closeIcon
|
|
14581
|
+
} = closableCollection || {};
|
|
14582
|
+
return React.useMemo(() => {
|
|
14583
|
+
if (
|
|
14584
|
+
// If `closable`, whatever rest be should be true
|
|
14585
|
+
!closable && (closable === false || closeIcon === false || closeIcon === null)
|
|
14586
|
+
) {
|
|
14587
|
+
return false;
|
|
14588
|
+
}
|
|
14589
|
+
if (closable === void 0 && closeIcon === void 0) {
|
|
14590
|
+
return null;
|
|
14591
|
+
}
|
|
14592
|
+
let closableConfig = {
|
|
14593
|
+
closeIcon: typeof closeIcon !== "boolean" && closeIcon !== null ? closeIcon : void 0
|
|
14594
|
+
};
|
|
14595
|
+
if (closable && typeof closable === "object") {
|
|
14596
|
+
closableConfig = Object.assign(Object.assign({}, closableConfig), closable);
|
|
14597
|
+
}
|
|
14598
|
+
return closableConfig;
|
|
14599
|
+
}, [closable, closeIcon]);
|
|
14600
|
+
}
|
|
14601
|
+
const EmptyFallbackCloseCollection = {};
|
|
14602
|
+
function useClosable(propCloseCollection, contextCloseCollection, fallbackCloseCollection = EmptyFallbackCloseCollection) {
|
|
14603
|
+
const propCloseConfig = useClosableConfig(propCloseCollection);
|
|
14604
|
+
const contextCloseConfig = useClosableConfig(contextCloseCollection);
|
|
14605
|
+
const [contextLocale] = useLocale$1("global", localeValues.global);
|
|
14606
|
+
const closeBtnIsDisabled = typeof propCloseConfig !== "boolean" ? !!(propCloseConfig === null || propCloseConfig === void 0 ? void 0 : propCloseConfig.disabled) : false;
|
|
14607
|
+
const mergedFallbackCloseCollection = React.useMemo(() => Object.assign({
|
|
14608
|
+
closeIcon: /* @__PURE__ */ React.createElement(RefIcon$D, null)
|
|
14609
|
+
}, fallbackCloseCollection), [fallbackCloseCollection]);
|
|
14610
|
+
const mergedClosableConfig = React.useMemo(() => {
|
|
14611
|
+
if (propCloseConfig === false) {
|
|
14612
|
+
return false;
|
|
14613
|
+
}
|
|
14614
|
+
if (propCloseConfig) {
|
|
14615
|
+
return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig, propCloseConfig);
|
|
14616
|
+
}
|
|
14617
|
+
if (contextCloseConfig === false) {
|
|
14618
|
+
return false;
|
|
14619
|
+
}
|
|
14620
|
+
if (contextCloseConfig) {
|
|
14621
|
+
return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig);
|
|
14622
|
+
}
|
|
14623
|
+
return !mergedFallbackCloseCollection.closable ? false : mergedFallbackCloseCollection;
|
|
14624
|
+
}, [propCloseConfig, contextCloseConfig, mergedFallbackCloseCollection]);
|
|
14625
|
+
return React.useMemo(() => {
|
|
14626
|
+
var _a, _b;
|
|
14627
|
+
if (mergedClosableConfig === false) {
|
|
14628
|
+
return [false, null, closeBtnIsDisabled, {}];
|
|
14629
|
+
}
|
|
14630
|
+
const {
|
|
14631
|
+
closeIconRender
|
|
14632
|
+
} = mergedFallbackCloseCollection;
|
|
14633
|
+
const {
|
|
14634
|
+
closeIcon
|
|
14635
|
+
} = mergedClosableConfig;
|
|
14636
|
+
let mergedCloseIcon = closeIcon;
|
|
14637
|
+
const ariaOrDataProps = pickAttrs(mergedClosableConfig, true);
|
|
14638
|
+
if (mergedCloseIcon !== null && mergedCloseIcon !== void 0) {
|
|
14639
|
+
if (closeIconRender) {
|
|
14640
|
+
mergedCloseIcon = closeIconRender(closeIcon);
|
|
14641
|
+
}
|
|
14642
|
+
mergedCloseIcon = /* @__PURE__ */ React.isValidElement(mergedCloseIcon) ? /* @__PURE__ */ React.cloneElement(mergedCloseIcon, Object.assign(Object.assign(Object.assign({}, mergedCloseIcon.props), {
|
|
14643
|
+
"aria-label": (_b = (_a = mergedCloseIcon.props) === null || _a === void 0 ? void 0 : _a["aria-label"]) !== null && _b !== void 0 ? _b : contextLocale.close
|
|
14644
|
+
}), ariaOrDataProps)) : /* @__PURE__ */ React.createElement("span", Object.assign({
|
|
14645
|
+
"aria-label": contextLocale.close
|
|
14646
|
+
}, ariaOrDataProps), mergedCloseIcon);
|
|
14647
|
+
}
|
|
14648
|
+
return [true, mergedCloseIcon, closeBtnIsDisabled, ariaOrDataProps];
|
|
14649
|
+
}, [mergedClosableConfig, mergedFallbackCloseCollection]);
|
|
14650
|
+
}
|
|
14564
14651
|
var isStyleNameSupport = function isStyleNameSupport2(styleName) {
|
|
14565
14652
|
if (canUseDom() && window.document.documentElement) {
|
|
14566
14653
|
var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
|
|
@@ -14879,7 +14966,7 @@ const genBaseStyle$8 = (token2) => {
|
|
|
14879
14966
|
}
|
|
14880
14967
|
};
|
|
14881
14968
|
};
|
|
14882
|
-
const prepareComponentToken$
|
|
14969
|
+
const prepareComponentToken$o = (token2) => {
|
|
14883
14970
|
const {
|
|
14884
14971
|
colorFillContent,
|
|
14885
14972
|
colorFill
|
|
@@ -14897,7 +14984,7 @@ const prepareComponentToken$n = (token2) => {
|
|
|
14897
14984
|
paragraphLiHeight: token2.controlHeight / 2
|
|
14898
14985
|
};
|
|
14899
14986
|
};
|
|
14900
|
-
const useStyle$
|
|
14987
|
+
const useStyle$s = genStyleHooks("Skeleton", (token2) => {
|
|
14901
14988
|
const {
|
|
14902
14989
|
componentCls,
|
|
14903
14990
|
calc
|
|
@@ -14916,7 +15003,7 @@ const useStyle$r = genStyleHooks("Skeleton", (token2) => {
|
|
|
14916
15003
|
skeletonLoadingMotionDuration: "1.4s"
|
|
14917
15004
|
});
|
|
14918
15005
|
return genBaseStyle$8(skeletonToken);
|
|
14919
|
-
}, prepareComponentToken$
|
|
15006
|
+
}, prepareComponentToken$o, {
|
|
14920
15007
|
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
14921
15008
|
});
|
|
14922
15009
|
const SkeletonAvatar = (props) => {
|
|
@@ -14932,7 +15019,7 @@ const SkeletonAvatar = (props) => {
|
|
|
14932
15019
|
getPrefixCls
|
|
14933
15020
|
} = React__namespace.useContext(ConfigContext);
|
|
14934
15021
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14935
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15022
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14936
15023
|
const otherProps = omit(props, ["prefixCls", "className"]);
|
|
14937
15024
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14938
15025
|
[`${prefixCls}-active`]: active
|
|
@@ -14958,7 +15045,7 @@ const SkeletonButton = (props) => {
|
|
|
14958
15045
|
getPrefixCls
|
|
14959
15046
|
} = React__namespace.useContext(ConfigContext);
|
|
14960
15047
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14961
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15048
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14962
15049
|
const otherProps = omit(props, ["prefixCls"]);
|
|
14963
15050
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14964
15051
|
[`${prefixCls}-active`]: active,
|
|
@@ -14984,7 +15071,7 @@ const SkeletonImage = (props) => {
|
|
|
14984
15071
|
getPrefixCls
|
|
14985
15072
|
} = React__namespace.useContext(ConfigContext);
|
|
14986
15073
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14987
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15074
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14988
15075
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14989
15076
|
[`${prefixCls}-active`]: active
|
|
14990
15077
|
}, className, rootClassName, hashId, cssVarCls);
|
|
@@ -15015,7 +15102,7 @@ const SkeletonInput = (props) => {
|
|
|
15015
15102
|
getPrefixCls
|
|
15016
15103
|
} = React__namespace.useContext(ConfigContext);
|
|
15017
15104
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15018
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15105
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15019
15106
|
const otherProps = omit(props, ["prefixCls"]);
|
|
15020
15107
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15021
15108
|
[`${prefixCls}-active`]: active,
|
|
@@ -15041,7 +15128,7 @@ const SkeletonNode = (props) => {
|
|
|
15041
15128
|
getPrefixCls
|
|
15042
15129
|
} = React__namespace.useContext(ConfigContext);
|
|
15043
15130
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15044
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15131
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15045
15132
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15046
15133
|
[`${prefixCls}-active`]: active
|
|
15047
15134
|
}, hashId, className, rootClassName, cssVarCls);
|
|
@@ -15166,7 +15253,7 @@ const Skeleton$1 = (props) => {
|
|
|
15166
15253
|
style: contextStyle
|
|
15167
15254
|
} = useComponentConfig("skeleton");
|
|
15168
15255
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15169
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15256
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15170
15257
|
if (loading || !("loading" in props)) {
|
|
15171
15258
|
const hasAvatar = !!avatar;
|
|
15172
15259
|
const hasTitle = !!title;
|
|
@@ -15221,6 +15308,26 @@ Skeleton$1.Node = SkeletonNode;
|
|
|
15221
15308
|
if (process.env.NODE_ENV !== "production") {
|
|
15222
15309
|
Skeleton$1.displayName = "Skeleton";
|
|
15223
15310
|
}
|
|
15311
|
+
function voidFunc() {
|
|
15312
|
+
}
|
|
15313
|
+
const WatermarkContext = /* @__PURE__ */ React__namespace.createContext({
|
|
15314
|
+
add: voidFunc,
|
|
15315
|
+
remove: voidFunc
|
|
15316
|
+
});
|
|
15317
|
+
function usePanelRef(panelSelector) {
|
|
15318
|
+
const watermark = React__namespace.useContext(WatermarkContext);
|
|
15319
|
+
const panelEleRef = React__namespace.useRef(null);
|
|
15320
|
+
const panelRef = useEvent((ele) => {
|
|
15321
|
+
if (ele) {
|
|
15322
|
+
const innerContentEle = ele;
|
|
15323
|
+
watermark.add(innerContentEle);
|
|
15324
|
+
panelEleRef.current = innerContentEle;
|
|
15325
|
+
} else {
|
|
15326
|
+
watermark.remove(panelEleRef.current);
|
|
15327
|
+
}
|
|
15328
|
+
});
|
|
15329
|
+
return panelRef;
|
|
15330
|
+
}
|
|
15224
15331
|
const genGridRowStyle = (token2) => {
|
|
15225
15332
|
const {
|
|
15226
15333
|
componentCls
|
|
@@ -15627,10 +15734,10 @@ function isValidateOpenKey(currentKeyCode) {
|
|
|
15627
15734
|
].includes(currentKeyCode)
|
|
15628
15735
|
);
|
|
15629
15736
|
}
|
|
15630
|
-
var _excluded$
|
|
15737
|
+
var _excluded$L = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
|
|
15631
15738
|
var UNDEFINED = void 0;
|
|
15632
15739
|
function InternalItem(props, ref) {
|
|
15633
|
-
var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15740
|
+
var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$L);
|
|
15634
15741
|
var mergedHidden = responsive && !display;
|
|
15635
15742
|
function internalRegisterSize(width) {
|
|
15636
15743
|
registerSize(itemKey2, width);
|
|
@@ -15716,11 +15823,11 @@ function useEffectState(notifyEffectUpdate, defaultValue) {
|
|
|
15716
15823
|
return [stateValue, setEffectVal];
|
|
15717
15824
|
}
|
|
15718
15825
|
var OverflowContext = /* @__PURE__ */ React.createContext(null);
|
|
15719
|
-
var _excluded$
|
|
15826
|
+
var _excluded$K = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
|
|
15720
15827
|
var InternalRawItem = function InternalRawItem2(props, ref) {
|
|
15721
15828
|
var context = React__namespace.useContext(OverflowContext);
|
|
15722
15829
|
if (!context) {
|
|
15723
|
-
var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15830
|
+
var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$K);
|
|
15724
15831
|
return /* @__PURE__ */ React__namespace.createElement(Component, _extends$1({}, _restProps, {
|
|
15725
15832
|
ref
|
|
15726
15833
|
}));
|
|
@@ -15736,14 +15843,14 @@ var InternalRawItem = function InternalRawItem2(props, ref) {
|
|
|
15736
15843
|
};
|
|
15737
15844
|
var RawItem = /* @__PURE__ */ React__namespace.forwardRef(InternalRawItem);
|
|
15738
15845
|
RawItem.displayName = "RawItem";
|
|
15739
|
-
var _excluded$
|
|
15846
|
+
var _excluded$J = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
|
|
15740
15847
|
var RESPONSIVE = "responsive";
|
|
15741
15848
|
var INVALIDATE = "invalidate";
|
|
15742
15849
|
function defaultRenderRest(omittedItems) {
|
|
15743
15850
|
return "+ ".concat(omittedItems.length, " ...");
|
|
15744
15851
|
}
|
|
15745
15852
|
function Overflow(props, ref) {
|
|
15746
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15853
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$J);
|
|
15747
15854
|
var fullySSR = ssr === "full";
|
|
15748
15855
|
var notifyEffectUpdate = useBatcher();
|
|
15749
15856
|
var _useEffectState = useEffectState(notifyEffectUpdate, null), _useEffectState2 = _slicedToArray(_useEffectState, 2), containerWidth = _useEffectState2[0], setContainerWidth = _useEffectState2[1];
|
|
@@ -15958,9 +16065,9 @@ function composeProps(originProps, patchProps, isAll) {
|
|
|
15958
16065
|
});
|
|
15959
16066
|
return composedProps;
|
|
15960
16067
|
}
|
|
15961
|
-
var _excluded$
|
|
16068
|
+
var _excluded$I = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
|
|
15962
16069
|
var Input$6 = function Input(props, ref) {
|
|
15963
|
-
var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
16070
|
+
var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$I);
|
|
15964
16071
|
var inputNode = inputElement || /* @__PURE__ */ React__namespace.createElement("input", null);
|
|
15965
16072
|
var _inputNode = inputNode, originRef = _inputNode.ref, originProps = _inputNode.props;
|
|
15966
16073
|
warning$3(!("maxLength" in inputNode.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.");
|
|
@@ -17157,11 +17264,11 @@ function useWinClick(open, clickToHide, targetEle, popupEle, mask, maskClosable,
|
|
|
17157
17264
|
}
|
|
17158
17265
|
return onPopupPointerDown;
|
|
17159
17266
|
}
|
|
17160
|
-
var _excluded$
|
|
17267
|
+
var _excluded$H = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
|
|
17161
17268
|
function generateTrigger() {
|
|
17162
17269
|
var PortalComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Portal;
|
|
17163
17270
|
var Trigger2 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
17164
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17271
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$1(props, _excluded$H);
|
|
17165
17272
|
var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;
|
|
17166
17273
|
var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
|
|
17167
17274
|
useLayoutEffect$1(function() {
|
|
@@ -17483,7 +17590,7 @@ function generateTrigger() {
|
|
|
17483
17590
|
return Trigger2;
|
|
17484
17591
|
}
|
|
17485
17592
|
const Trigger = generateTrigger(Portal);
|
|
17486
|
-
var _excluded$
|
|
17593
|
+
var _excluded$G = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
|
|
17487
17594
|
var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWidth) {
|
|
17488
17595
|
var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
|
|
17489
17596
|
return {
|
|
@@ -17528,7 +17635,7 @@ var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWi
|
|
|
17528
17635
|
var SelectTrigger$1 = function SelectTrigger(props, ref) {
|
|
17529
17636
|
var prefixCls = props.prefixCls;
|
|
17530
17637
|
props.disabled;
|
|
17531
|
-
var visible = props.visible, children2 = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17638
|
+
var visible = props.visible, children2 = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$G);
|
|
17532
17639
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
17533
17640
|
var popupNode = popupElement;
|
|
17534
17641
|
if (dropdownRender) {
|
|
@@ -17704,14 +17811,14 @@ function Polite(props) {
|
|
|
17704
17811
|
return ["number", "string"].includes(_typeof(label)) ? label : value2;
|
|
17705
17812
|
}).join(", ")), values.length > MAX_COUNT ? ", ..." : null);
|
|
17706
17813
|
}
|
|
17707
|
-
var _excluded$
|
|
17814
|
+
var _excluded$F = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"];
|
|
17708
17815
|
var DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
|
|
17709
17816
|
var isMultiple = function isMultiple2(mode) {
|
|
17710
17817
|
return mode === "tags" || mode === "multiple";
|
|
17711
17818
|
};
|
|
17712
17819
|
var BaseSelect = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
17713
17820
|
var _customizeRawInputEle;
|
|
17714
|
-
var id2 = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, prefix = props.prefix, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17821
|
+
var id2 = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, prefix = props.prefix, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$F);
|
|
17715
17822
|
var multiple = isMultiple(mode);
|
|
17716
17823
|
var mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox";
|
|
17717
17824
|
var domProps = _objectSpread2({}, restProps);
|
|
@@ -18909,14 +19016,14 @@ function getSpinSize() {
|
|
|
18909
19016
|
baseSize = Math.max(baseSize, MIN_SIZE);
|
|
18910
19017
|
return Math.floor(baseSize);
|
|
18911
19018
|
}
|
|
18912
|
-
var _excluded$
|
|
19019
|
+
var _excluded$E = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
|
|
18913
19020
|
var EMPTY_DATA$1 = [];
|
|
18914
19021
|
var ScrollStyle = {
|
|
18915
19022
|
overflowY: "auto",
|
|
18916
19023
|
overflowAnchor: "none"
|
|
18917
19024
|
};
|
|
18918
19025
|
function RawList(props, ref) {
|
|
18919
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
19026
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$E);
|
|
18920
19027
|
var getKey2 = React__namespace.useCallback(function(item) {
|
|
18921
19028
|
if (typeof itemKey2 === "function") {
|
|
18922
19029
|
return itemKey2(item);
|
|
@@ -19315,7 +19422,7 @@ List.displayName = "List";
|
|
|
19315
19422
|
function isPlatformMac() {
|
|
19316
19423
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
19317
19424
|
}
|
|
19318
|
-
var _excluded$
|
|
19425
|
+
var _excluded$D = ["disabled", "title", "children", "style", "className"];
|
|
19319
19426
|
function isTitleType(content2) {
|
|
19320
19427
|
return typeof content2 === "string" || typeof content2 === "number";
|
|
19321
19428
|
}
|
|
@@ -19550,7 +19657,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19550
19657
|
}
|
|
19551
19658
|
var disabled2 = data.disabled, title = data.title;
|
|
19552
19659
|
data.children;
|
|
19553
|
-
var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$
|
|
19660
|
+
var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$D);
|
|
19554
19661
|
var passedProps = omit(otherProps, omitFieldNameList);
|
|
19555
19662
|
var selected = isSelected(value2);
|
|
19556
19663
|
var mergedDisabled = disabled2 || !selected && overMaxCount;
|
|
@@ -19696,9 +19803,9 @@ function useId$1(id2) {
|
|
|
19696
19803
|
}, []);
|
|
19697
19804
|
return id2 || innerId;
|
|
19698
19805
|
}
|
|
19699
|
-
var _excluded$
|
|
19806
|
+
var _excluded$C = ["children", "value"], _excluded2$6 = ["children"];
|
|
19700
19807
|
function convertNodeToOption(node2) {
|
|
19701
|
-
var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$
|
|
19808
|
+
var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$C);
|
|
19702
19809
|
return _objectSpread2({
|
|
19703
19810
|
key,
|
|
19704
19811
|
value: value2 !== void 0 ? value2 : key,
|
|
@@ -19853,13 +19960,13 @@ function warningNullOptions(options, fieldNames) {
|
|
|
19853
19960
|
recursiveOptions(options);
|
|
19854
19961
|
}
|
|
19855
19962
|
}
|
|
19856
|
-
var _excluded$
|
|
19963
|
+
var _excluded$B = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"];
|
|
19857
19964
|
var OMIT_DOM_PROPS = ["inputValue"];
|
|
19858
19965
|
function isRawValue(value2) {
|
|
19859
19966
|
return !value2 || _typeof(value2) !== "object";
|
|
19860
19967
|
}
|
|
19861
19968
|
var Select$2 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
19862
|
-
var id2 = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
19969
|
+
var id2 = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$B);
|
|
19863
19970
|
var mergedId = useId$1(id2);
|
|
19864
19971
|
var multiple = isMultiple(mode);
|
|
19865
19972
|
var childrenAsData = !!(!options && children2);
|
|
@@ -20364,7 +20471,7 @@ const genSharedEmptyStyle = (token2) => {
|
|
|
20364
20471
|
}
|
|
20365
20472
|
};
|
|
20366
20473
|
};
|
|
20367
|
-
const useStyle$
|
|
20474
|
+
const useStyle$r = genStyleHooks("Empty", (token2) => {
|
|
20368
20475
|
const {
|
|
20369
20476
|
componentCls,
|
|
20370
20477
|
controlHeightLG,
|
|
@@ -20378,7 +20485,7 @@ const useStyle$q = genStyleHooks("Empty", (token2) => {
|
|
|
20378
20485
|
});
|
|
20379
20486
|
return genSharedEmptyStyle(emptyToken);
|
|
20380
20487
|
});
|
|
20381
|
-
var __rest$
|
|
20488
|
+
var __rest$U = function(s, e3) {
|
|
20382
20489
|
var t2 = {};
|
|
20383
20490
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
20384
20491
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -20401,7 +20508,7 @@ const Empty = (props) => {
|
|
|
20401
20508
|
style: style2,
|
|
20402
20509
|
classNames: emptyClassNames,
|
|
20403
20510
|
styles
|
|
20404
|
-
} = props, restProps = __rest$
|
|
20511
|
+
} = props, restProps = __rest$U(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
|
|
20405
20512
|
const {
|
|
20406
20513
|
getPrefixCls,
|
|
20407
20514
|
direction,
|
|
@@ -20412,7 +20519,7 @@ const Empty = (props) => {
|
|
|
20412
20519
|
image: contextImage
|
|
20413
20520
|
} = useComponentConfig("empty");
|
|
20414
20521
|
const prefixCls = getPrefixCls("empty", customizePrefixCls);
|
|
20415
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
20522
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
|
|
20416
20523
|
const [locale2] = useLocale$1("Empty");
|
|
20417
20524
|
const des = typeof description !== "undefined" ? description : locale2 === null || locale2 === void 0 ? void 0 : locale2.description;
|
|
20418
20525
|
const alt = typeof des === "string" ? des : "empty";
|
|
@@ -21111,7 +21218,7 @@ function genSingleStyle(token2) {
|
|
|
21111
21218
|
}), "lg")
|
|
21112
21219
|
];
|
|
21113
21220
|
}
|
|
21114
|
-
const prepareComponentToken$
|
|
21221
|
+
const prepareComponentToken$n = (token2) => {
|
|
21115
21222
|
const {
|
|
21116
21223
|
fontSize,
|
|
21117
21224
|
lineHeight,
|
|
@@ -21617,7 +21724,7 @@ const useSelectStyle = genStyleHooks("Select", (token2, {
|
|
|
21617
21724
|
selectHeight: token2.controlHeight
|
|
21618
21725
|
});
|
|
21619
21726
|
return [genSelectStyle(selectToken), genVariantsStyle$1(selectToken)];
|
|
21620
|
-
}, prepareComponentToken$
|
|
21727
|
+
}, prepareComponentToken$n, {
|
|
21621
21728
|
unitless: {
|
|
21622
21729
|
optionLineHeight: true,
|
|
21623
21730
|
optionSelectedFontWeight: true
|
|
@@ -21738,7 +21845,7 @@ function usePopupRender(renderFn) {
|
|
|
21738
21845
|
function useShowArrow(suffixIcon, showArrow) {
|
|
21739
21846
|
return showArrow !== void 0 ? showArrow : suffixIcon !== null;
|
|
21740
21847
|
}
|
|
21741
|
-
var __rest$
|
|
21848
|
+
var __rest$T = function(s, e3) {
|
|
21742
21849
|
var t2 = {};
|
|
21743
21850
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
21744
21851
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -21782,7 +21889,7 @@ const InternalSelect = (props, ref) => {
|
|
|
21782
21889
|
onOpenChange,
|
|
21783
21890
|
styles,
|
|
21784
21891
|
classNames: classNames$1
|
|
21785
|
-
} = props, rest = __rest$
|
|
21892
|
+
} = props, rest = __rest$T(props, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix", "dropdownRender", "popupRender", "onDropdownVisibleChange", "onOpenChange", "styles", "classNames"]);
|
|
21786
21893
|
const {
|
|
21787
21894
|
getPopupContainer: getContextPopupContainer,
|
|
21788
21895
|
getPrefixCls,
|
|
@@ -21941,11 +22048,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
21941
22048
|
InternalSelect.displayName = "Select";
|
|
21942
22049
|
}
|
|
21943
22050
|
const Select$1 = /* @__PURE__ */ React__namespace.forwardRef(InternalSelect);
|
|
21944
|
-
const PurePanel$
|
|
22051
|
+
const PurePanel$6 = genPurePanel(Select$1, "dropdownAlign");
|
|
21945
22052
|
Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
21946
22053
|
Select$1.Option = Option;
|
|
21947
22054
|
Select$1.OptGroup = OptGroup;
|
|
21948
|
-
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
22055
|
+
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
|
|
21949
22056
|
if (process.env.NODE_ENV !== "production") {
|
|
21950
22057
|
Select$1.displayName = "Select";
|
|
21951
22058
|
}
|
|
@@ -22166,7 +22273,7 @@ const genGroupStyle$1 = (token2) => {
|
|
|
22166
22273
|
}
|
|
22167
22274
|
};
|
|
22168
22275
|
};
|
|
22169
|
-
const prepareComponentToken$
|
|
22276
|
+
const prepareComponentToken$m = (token2) => {
|
|
22170
22277
|
const {
|
|
22171
22278
|
controlHeight,
|
|
22172
22279
|
controlHeightLG,
|
|
@@ -22194,7 +22301,7 @@ const prepareComponentToken$l = (token2) => {
|
|
|
22194
22301
|
groupBorderColor: colorBorderBg
|
|
22195
22302
|
};
|
|
22196
22303
|
};
|
|
22197
|
-
const useStyle$
|
|
22304
|
+
const useStyle$q = genStyleHooks("Avatar", (token2) => {
|
|
22198
22305
|
const {
|
|
22199
22306
|
colorTextLightSolid,
|
|
22200
22307
|
colorTextPlaceholder
|
|
@@ -22204,8 +22311,8 @@ const useStyle$p = genStyleHooks("Avatar", (token2) => {
|
|
|
22204
22311
|
avatarColor: colorTextLightSolid
|
|
22205
22312
|
});
|
|
22206
22313
|
return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
|
|
22207
|
-
}, prepareComponentToken$
|
|
22208
|
-
var __rest$
|
|
22314
|
+
}, prepareComponentToken$m);
|
|
22315
|
+
var __rest$S = function(s, e3) {
|
|
22209
22316
|
var t2 = {};
|
|
22210
22317
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
22211
22318
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -22230,7 +22337,7 @@ const Avatar$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
22230
22337
|
crossOrigin,
|
|
22231
22338
|
gap = 4,
|
|
22232
22339
|
onError
|
|
22233
|
-
} = props, others = __rest$
|
|
22340
|
+
} = props, others = __rest$S(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
|
|
22234
22341
|
const [scale, setScale] = React__namespace.useState(1);
|
|
22235
22342
|
const [mounted, setMounted] = React__namespace.useState(false);
|
|
22236
22343
|
const [isImgExist, setIsImgExist] = React__namespace.useState(true);
|
|
@@ -22292,7 +22399,7 @@ const Avatar$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
22292
22399
|
}
|
|
22293
22400
|
const prefixCls = getPrefixCls("avatar", customizePrefixCls);
|
|
22294
22401
|
const rootCls = useCSSVarCls(prefixCls);
|
|
22295
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
22402
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
|
|
22296
22403
|
const sizeCls = classNames({
|
|
22297
22404
|
[`${prefixCls}-lg`]: size === "large",
|
|
22298
22405
|
[`${prefixCls}-sm`]: size === "small"
|
|
@@ -22455,11 +22562,11 @@ var placements$2 = {
|
|
|
22455
22562
|
targetOffset: targetOffset$1
|
|
22456
22563
|
}
|
|
22457
22564
|
};
|
|
22458
|
-
var _excluded$
|
|
22565
|
+
var _excluded$A = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"];
|
|
22459
22566
|
var Tooltip$4 = function Tooltip(props, ref) {
|
|
22460
22567
|
var overlayClassName = props.overlayClassName, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, _props$mouseEnterDela = props.mouseEnterDelay, mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, overlayStyle = props.overlayStyle, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tooltip" : _props$prefixCls, children2 = props.children, onVisibleChange = props.onVisibleChange, afterVisibleChange = props.afterVisibleChange, transitionName = props.transitionName, animation = props.animation, motion2 = props.motion, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$align = props.align, align = _props$align === void 0 ? {} : _props$align, _props$destroyTooltip = props.destroyTooltipOnHide, destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip, defaultVisible = props.defaultVisible, getTooltipContainer = props.getTooltipContainer, overlayInnerStyle = props.overlayInnerStyle;
|
|
22461
22568
|
props.arrowContent;
|
|
22462
|
-
var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
22569
|
+
var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$A);
|
|
22463
22570
|
var mergedId = useId$2(id2);
|
|
22464
22571
|
var triggerRef = React.useRef(null);
|
|
22465
22572
|
React.useImperativeHandle(ref, function() {
|
|
@@ -23000,7 +23107,7 @@ const genTooltipStyle = (token2) => {
|
|
|
23000
23107
|
}
|
|
23001
23108
|
];
|
|
23002
23109
|
};
|
|
23003
|
-
const prepareComponentToken$
|
|
23110
|
+
const prepareComponentToken$l = (token2) => Object.assign(Object.assign({
|
|
23004
23111
|
zIndexPopup: token2.zIndexPopupBase + 70
|
|
23005
23112
|
}, getArrowOffsetToken({
|
|
23006
23113
|
contentRadius: token2.borderRadius,
|
|
@@ -23008,7 +23115,7 @@ const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
|
|
|
23008
23115
|
})), getArrowToken(merge$1(token2, {
|
|
23009
23116
|
borderRadiusOuter: Math.min(token2.borderRadiusOuter, 4)
|
|
23010
23117
|
})));
|
|
23011
|
-
const useStyle$
|
|
23118
|
+
const useStyle$p = (prefixCls, injectStyle = true) => {
|
|
23012
23119
|
const useStyle2 = genStyleHooks("Tooltip", (token2) => {
|
|
23013
23120
|
const {
|
|
23014
23121
|
borderRadius: borderRadius2,
|
|
@@ -23023,7 +23130,7 @@ const useStyle$o = (prefixCls, injectStyle = true) => {
|
|
|
23023
23130
|
tooltipBg: colorBgSpotlight
|
|
23024
23131
|
});
|
|
23025
23132
|
return [genTooltipStyle(TooltipToken), initZoomMotion(token2, "zoom-big-fast")];
|
|
23026
|
-
}, prepareComponentToken$
|
|
23133
|
+
}, prepareComponentToken$l, {
|
|
23027
23134
|
resetStyle: false,
|
|
23028
23135
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
23029
23136
|
injectStyle
|
|
@@ -23058,7 +23165,7 @@ function parseColor(prefixCls, color2) {
|
|
|
23058
23165
|
arrowStyle
|
|
23059
23166
|
};
|
|
23060
23167
|
}
|
|
23061
|
-
const PurePanel$
|
|
23168
|
+
const PurePanel$5 = (props) => {
|
|
23062
23169
|
const {
|
|
23063
23170
|
prefixCls: customizePrefixCls,
|
|
23064
23171
|
className,
|
|
@@ -23071,7 +23178,7 @@ const PurePanel$4 = (props) => {
|
|
|
23071
23178
|
getPrefixCls
|
|
23072
23179
|
} = React__namespace.useContext(ConfigContext);
|
|
23073
23180
|
const prefixCls = getPrefixCls("tooltip", customizePrefixCls);
|
|
23074
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23181
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls);
|
|
23075
23182
|
const colorInfo = parseColor(prefixCls, color2);
|
|
23076
23183
|
const arrowContentStyle = colorInfo.arrowStyle;
|
|
23077
23184
|
const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
@@ -23087,7 +23194,7 @@ const PurePanel$4 = (props) => {
|
|
|
23087
23194
|
overlayInnerStyle: formattedOverlayInnerStyle
|
|
23088
23195
|
}), title)));
|
|
23089
23196
|
};
|
|
23090
|
-
var __rest$
|
|
23197
|
+
var __rest$R = function(s, e3) {
|
|
23091
23198
|
var t2 = {};
|
|
23092
23199
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23093
23200
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23124,7 +23231,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23124
23231
|
overlayClassName,
|
|
23125
23232
|
styles,
|
|
23126
23233
|
classNames: tooltipClassNames
|
|
23127
|
-
} = props, restProps = __rest$
|
|
23234
|
+
} = props, restProps = __rest$R(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
23128
23235
|
const mergedShowArrow = !!arrow;
|
|
23129
23236
|
const [, token2] = useToken();
|
|
23130
23237
|
const {
|
|
@@ -23208,7 +23315,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23208
23315
|
const child = /* @__PURE__ */ React__namespace.isValidElement(children2) && !isFragment(children2) ? children2 : /* @__PURE__ */ React__namespace.createElement("span", null, children2);
|
|
23209
23316
|
const childProps = child.props;
|
|
23210
23317
|
const childCls = !childProps.className || typeof childProps.className === "string" ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;
|
|
23211
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23318
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, !injectFromPopover);
|
|
23212
23319
|
const colorInfo = parseColor(prefixCls, color2);
|
|
23213
23320
|
const arrowContentStyle = colorInfo.arrowStyle;
|
|
23214
23321
|
const rootClassNames = classNames(overlayClassName, {
|
|
@@ -23258,7 +23365,7 @@ const Tooltip$2 = InternalTooltip;
|
|
|
23258
23365
|
if (process.env.NODE_ENV !== "production") {
|
|
23259
23366
|
Tooltip$2.displayName = "Tooltip";
|
|
23260
23367
|
}
|
|
23261
|
-
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
23368
|
+
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
|
|
23262
23369
|
const genBaseStyle$5 = (token2) => {
|
|
23263
23370
|
const {
|
|
23264
23371
|
componentCls,
|
|
@@ -23366,7 +23473,7 @@ const genColorStyle = (token2) => {
|
|
|
23366
23473
|
})
|
|
23367
23474
|
};
|
|
23368
23475
|
};
|
|
23369
|
-
const prepareComponentToken$
|
|
23476
|
+
const prepareComponentToken$k = (token2) => {
|
|
23370
23477
|
const {
|
|
23371
23478
|
lineWidth,
|
|
23372
23479
|
controlHeight,
|
|
@@ -23399,7 +23506,7 @@ const prepareComponentToken$j = (token2) => {
|
|
|
23399
23506
|
innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0
|
|
23400
23507
|
});
|
|
23401
23508
|
};
|
|
23402
|
-
const useStyle$
|
|
23509
|
+
const useStyle$o = genStyleHooks("Popover", (token2) => {
|
|
23403
23510
|
const {
|
|
23404
23511
|
colorBgElevated,
|
|
23405
23512
|
colorText
|
|
@@ -23409,11 +23516,11 @@ const useStyle$n = genStyleHooks("Popover", (token2) => {
|
|
|
23409
23516
|
popoverColor: colorText
|
|
23410
23517
|
});
|
|
23411
23518
|
return [genBaseStyle$5(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
|
|
23412
|
-
}, prepareComponentToken$
|
|
23519
|
+
}, prepareComponentToken$k, {
|
|
23413
23520
|
resetStyle: false,
|
|
23414
23521
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
23415
23522
|
});
|
|
23416
|
-
var __rest$
|
|
23523
|
+
var __rest$Q = function(s, e3) {
|
|
23417
23524
|
var t2 = {};
|
|
23418
23525
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23419
23526
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23463,23 +23570,23 @@ const RawPurePanel = (props) => {
|
|
|
23463
23570
|
content: contentNode
|
|
23464
23571
|
})));
|
|
23465
23572
|
};
|
|
23466
|
-
const PurePanel$
|
|
23573
|
+
const PurePanel$4 = (props) => {
|
|
23467
23574
|
const {
|
|
23468
23575
|
prefixCls: customizePrefixCls,
|
|
23469
23576
|
className
|
|
23470
|
-
} = props, restProps = __rest$
|
|
23577
|
+
} = props, restProps = __rest$Q(props, ["prefixCls", "className"]);
|
|
23471
23578
|
const {
|
|
23472
23579
|
getPrefixCls
|
|
23473
23580
|
} = React__namespace.useContext(ConfigContext);
|
|
23474
23581
|
const prefixCls = getPrefixCls("popover", customizePrefixCls);
|
|
23475
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23582
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
|
|
23476
23583
|
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(RawPurePanel, Object.assign({}, restProps, {
|
|
23477
23584
|
prefixCls,
|
|
23478
23585
|
hashId,
|
|
23479
23586
|
className: classNames(className, cssVarCls)
|
|
23480
23587
|
})));
|
|
23481
23588
|
};
|
|
23482
|
-
var __rest$
|
|
23589
|
+
var __rest$P = function(s, e3) {
|
|
23483
23590
|
var t2 = {};
|
|
23484
23591
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23485
23592
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23503,7 +23610,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23503
23610
|
overlayStyle = {},
|
|
23504
23611
|
styles,
|
|
23505
23612
|
classNames: popoverClassNames
|
|
23506
|
-
} = props, otherProps = __rest$
|
|
23613
|
+
} = props, otherProps = __rest$P(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
|
|
23507
23614
|
const {
|
|
23508
23615
|
getPrefixCls,
|
|
23509
23616
|
className: contextClassName,
|
|
@@ -23512,7 +23619,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23512
23619
|
styles: contextStyles
|
|
23513
23620
|
} = useComponentConfig("popover");
|
|
23514
23621
|
const prefixCls = getPrefixCls("popover", customizePrefixCls);
|
|
23515
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23622
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
|
|
23516
23623
|
const rootPrefixCls = getPrefixCls();
|
|
23517
23624
|
const rootClassNames = classNames(overlayClassName, hashId, cssVarCls, contextClassName, contextClassNames.root, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.root);
|
|
23518
23625
|
const bodyClassNames = classNames(contextClassNames.body, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.body);
|
|
@@ -23570,7 +23677,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23570
23677
|
})));
|
|
23571
23678
|
});
|
|
23572
23679
|
const Popover$2 = InternalPopover;
|
|
23573
|
-
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
23680
|
+
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
|
|
23574
23681
|
if (process.env.NODE_ENV !== "production") {
|
|
23575
23682
|
Popover$2.displayName = "Popover";
|
|
23576
23683
|
}
|
|
@@ -23616,7 +23723,7 @@ const AvatarGroup = (props) => {
|
|
|
23616
23723
|
const prefixCls = getPrefixCls("avatar", customizePrefixCls);
|
|
23617
23724
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
23618
23725
|
const rootCls = useCSSVarCls(prefixCls);
|
|
23619
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23726
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
|
|
23620
23727
|
const cls = classNames(groupPrefixCls, {
|
|
23621
23728
|
[`${groupPrefixCls}-rtl`]: direction === "rtl"
|
|
23622
23729
|
}, cssVarCls, rootCls, className, rootClassName, hashId);
|
|
@@ -23792,10 +23899,10 @@ var placements$1 = {
|
|
|
23792
23899
|
targetOffset
|
|
23793
23900
|
}
|
|
23794
23901
|
};
|
|
23795
|
-
var _excluded$
|
|
23902
|
+
var _excluded$z = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
23796
23903
|
function Dropdown$3(props, ref) {
|
|
23797
23904
|
var _children$props;
|
|
23798
|
-
var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$
|
|
23905
|
+
var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$z);
|
|
23799
23906
|
var _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1];
|
|
23800
23907
|
var mergedVisible = "visible" in props ? visible : triggerVisible;
|
|
23801
23908
|
var triggerRef = React.useRef(null);
|
|
@@ -23893,7 +24000,7 @@ function useMenuId(eventKey) {
|
|
|
23893
24000
|
var id2 = React__namespace.useContext(IdContext);
|
|
23894
24001
|
return getMenuId(id2, eventKey);
|
|
23895
24002
|
}
|
|
23896
|
-
var _excluded$
|
|
24003
|
+
var _excluded$y = ["children", "locked"];
|
|
23897
24004
|
var MenuContext$1 = /* @__PURE__ */ React__namespace.createContext(null);
|
|
23898
24005
|
function mergeProps(origin, target) {
|
|
23899
24006
|
var clone = _objectSpread2({}, origin);
|
|
@@ -23906,7 +24013,7 @@ function mergeProps(origin, target) {
|
|
|
23906
24013
|
return clone;
|
|
23907
24014
|
}
|
|
23908
24015
|
function InheritableContextProvider(_ref) {
|
|
23909
|
-
var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
24016
|
+
var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$y);
|
|
23910
24017
|
var context = React__namespace.useContext(MenuContext$1);
|
|
23911
24018
|
var inheritableContext = useMemo(function() {
|
|
23912
24019
|
return mergeProps(context, restProps);
|
|
@@ -24336,9 +24443,9 @@ function Icon$2(_ref) {
|
|
|
24336
24443
|
}
|
|
24337
24444
|
return iconNode || children2 || null;
|
|
24338
24445
|
}
|
|
24339
|
-
var _excluded$
|
|
24446
|
+
var _excluded$x = ["item"];
|
|
24340
24447
|
function warnItemProp(_ref) {
|
|
24341
|
-
var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$
|
|
24448
|
+
var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$x);
|
|
24342
24449
|
Object.defineProperty(restInfo, "item", {
|
|
24343
24450
|
get: function get2() {
|
|
24344
24451
|
warningOnce(false, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future.");
|
|
@@ -24347,7 +24454,7 @@ function warnItemProp(_ref) {
|
|
|
24347
24454
|
});
|
|
24348
24455
|
return restInfo;
|
|
24349
24456
|
}
|
|
24350
|
-
var _excluded$
|
|
24457
|
+
var _excluded$w = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
|
|
24351
24458
|
var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
|
|
24352
24459
|
_inherits(LegacyMenuItem2, _React$Component);
|
|
24353
24460
|
var _super = _createSuper(LegacyMenuItem2);
|
|
@@ -24358,7 +24465,7 @@ var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
|
|
|
24358
24465
|
_createClass(LegacyMenuItem2, [{
|
|
24359
24466
|
key: "render",
|
|
24360
24467
|
value: function render2() {
|
|
24361
|
-
var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
24468
|
+
var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$w);
|
|
24362
24469
|
var passedProps = omit(restProps, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
24363
24470
|
warningOnce(!attribute, "`attribute` of Menu.Item is deprecated. Please pass attribute directly.");
|
|
24364
24471
|
return /* @__PURE__ */ React__namespace.createElement(ForwardOverflow.Item, _extends$1({}, attribute, {
|
|
@@ -24468,9 +24575,9 @@ function MenuItem$3(props, ref) {
|
|
|
24468
24575
|
}));
|
|
24469
24576
|
}
|
|
24470
24577
|
const MenuItem$2 = /* @__PURE__ */ React__namespace.forwardRef(MenuItem$3);
|
|
24471
|
-
var _excluded$
|
|
24578
|
+
var _excluded$v = ["className", "children"];
|
|
24472
24579
|
var InternalSubMenuList = function InternalSubMenuList2(_ref, ref) {
|
|
24473
|
-
var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
24580
|
+
var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$v);
|
|
24474
24581
|
var _React$useContext = React__namespace.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, rtl = _React$useContext.rtl;
|
|
24475
24582
|
return /* @__PURE__ */ React__namespace.createElement("ul", _extends$1({
|
|
24476
24583
|
className: classNames(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === "inline" ? "inline" : "vertical"), className),
|
|
@@ -24683,9 +24790,9 @@ function InlineSubMenuList(_ref) {
|
|
|
24683
24790
|
}, children2);
|
|
24684
24791
|
}));
|
|
24685
24792
|
}
|
|
24686
|
-
var _excluded$
|
|
24793
|
+
var _excluded$u = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], _excluded2$4 = ["active"];
|
|
24687
24794
|
var InternalSubMenu = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
24688
|
-
var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
24795
|
+
var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$u);
|
|
24689
24796
|
var domDataId = useMenuId(eventKey);
|
|
24690
24797
|
var _React$useContext = React__namespace.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, openKeys = _React$useContext.openKeys, contextDisabled = _React$useContext.disabled, overflowDisabled = _React$useContext.overflowDisabled, activeKey = _React$useContext.activeKey, selectedKeys = _React$useContext.selectedKeys, contextItemIcon = _React$useContext.itemIcon, contextExpandIcon = _React$useContext.expandIcon, onItemClick = _React$useContext.onItemClick, onOpenChange = _React$useContext.onOpenChange, onActive = _React$useContext.onActive;
|
|
24691
24798
|
var _React$useContext2 = React__namespace.useContext(PrivateContext), _internalRenderSubMenuItem = _React$useContext2._internalRenderSubMenuItem;
|
|
@@ -24885,11 +24992,11 @@ function Divider(_ref) {
|
|
|
24885
24992
|
style: style2
|
|
24886
24993
|
});
|
|
24887
24994
|
}
|
|
24888
|
-
var _excluded$
|
|
24995
|
+
var _excluded$t = ["className", "title", "eventKey", "children"];
|
|
24889
24996
|
var InternalMenuItemGroup = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
24890
24997
|
var className = props.className, title = props.title;
|
|
24891
24998
|
props.eventKey;
|
|
24892
|
-
var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
24999
|
+
var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$t);
|
|
24893
25000
|
var _React$useContext = React__namespace.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls;
|
|
24894
25001
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
24895
25002
|
return /* @__PURE__ */ React__namespace.createElement("li", _extends$1({
|
|
@@ -24924,12 +25031,12 @@ var MenuItemGroup = /* @__PURE__ */ React__namespace.forwardRef(function(props,
|
|
|
24924
25031
|
if (process.env.NODE_ENV !== "production") {
|
|
24925
25032
|
MenuItemGroup.displayName = "MenuItemGroup";
|
|
24926
25033
|
}
|
|
24927
|
-
var _excluded$
|
|
25034
|
+
var _excluded$s = ["label", "children", "key", "type", "extra"];
|
|
24928
25035
|
function convertItemsToNodes(list2, components2, prefixCls) {
|
|
24929
25036
|
var MergedMenuItem = components2.item, MergedMenuItemGroup = components2.group, MergedSubMenu = components2.submenu, MergedDivider = components2.divider;
|
|
24930
25037
|
return (list2 || []).map(function(opt, index2) {
|
|
24931
25038
|
if (opt && _typeof(opt) === "object") {
|
|
24932
|
-
var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
25039
|
+
var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
24933
25040
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index2);
|
|
24934
25041
|
if (children2 || type4 === "group") {
|
|
24935
25042
|
if (type4 === "group") {
|
|
@@ -24976,11 +25083,11 @@ function parseItems(children2, items, keyPath, components2, prefixCls) {
|
|
|
24976
25083
|
}
|
|
24977
25084
|
return parseChildren(childNodes, keyPath);
|
|
24978
25085
|
}
|
|
24979
|
-
var _excluded$
|
|
25086
|
+
var _excluded$r = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"];
|
|
24980
25087
|
var EMPTY_LIST$4 = [];
|
|
24981
25088
|
var Menu$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
24982
25089
|
var _childList$;
|
|
24983
|
-
var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
25090
|
+
var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$r);
|
|
24984
25091
|
var _React$useMemo = React__namespace.useMemo(function() {
|
|
24985
25092
|
return [parseItems(children2, items, EMPTY_LIST$4, _internalComponents, prefixCls), parseItems(children2, items, EMPTY_LIST$4, {}, prefixCls)];
|
|
24986
25093
|
}, [children2, items, _internalComponents]), _React$useMemo2 = _slicedToArray(_React$useMemo, 2), childList = _React$useMemo2[0], measureChildList = _React$useMemo2[1];
|
|
@@ -25345,7 +25452,7 @@ const genLayoutStyle = (token2) => {
|
|
|
25345
25452
|
}
|
|
25346
25453
|
};
|
|
25347
25454
|
};
|
|
25348
|
-
const prepareComponentToken$
|
|
25455
|
+
const prepareComponentToken$j = (token2) => {
|
|
25349
25456
|
const {
|
|
25350
25457
|
colorBgLayout,
|
|
25351
25458
|
controlHeight,
|
|
@@ -25381,7 +25488,7 @@ const prepareComponentToken$i = (token2) => {
|
|
|
25381
25488
|
};
|
|
25382
25489
|
};
|
|
25383
25490
|
const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
25384
|
-
genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$
|
|
25491
|
+
genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$j, {
|
|
25385
25492
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
25386
25493
|
});
|
|
25387
25494
|
const genSiderStyle = (token2) => {
|
|
@@ -25491,10 +25598,10 @@ const genSiderStyle = (token2) => {
|
|
|
25491
25598
|
}
|
|
25492
25599
|
};
|
|
25493
25600
|
};
|
|
25494
|
-
const useStyle$
|
|
25601
|
+
const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
|
|
25495
25602
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
25496
25603
|
});
|
|
25497
|
-
var __rest$
|
|
25604
|
+
var __rest$O = function(s, e3) {
|
|
25498
25605
|
var t2 = {};
|
|
25499
25606
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25500
25607
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25536,7 +25643,7 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
25536
25643
|
breakpoint,
|
|
25537
25644
|
onCollapse,
|
|
25538
25645
|
onBreakpoint
|
|
25539
|
-
} = props, otherProps = __rest$
|
|
25646
|
+
} = props, otherProps = __rest$O(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
|
|
25540
25647
|
const {
|
|
25541
25648
|
siderHook
|
|
25542
25649
|
} = React.useContext(LayoutContext);
|
|
@@ -25558,7 +25665,7 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
25558
25665
|
direction
|
|
25559
25666
|
} = React.useContext(ConfigContext);
|
|
25560
25667
|
const prefixCls = getPrefixCls("layout-sider", customizePrefixCls);
|
|
25561
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
25668
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
|
|
25562
25669
|
const responsiveHandlerRef = React.useRef(null);
|
|
25563
25670
|
responsiveHandlerRef.current = (mql) => {
|
|
25564
25671
|
setBelow(mql.matches);
|
|
@@ -25657,7 +25764,7 @@ const MenuContext = /* @__PURE__ */ React.createContext({
|
|
|
25657
25764
|
firstLevel: true,
|
|
25658
25765
|
inlineCollapsed: false
|
|
25659
25766
|
});
|
|
25660
|
-
var __rest$
|
|
25767
|
+
var __rest$N = function(s, e3) {
|
|
25661
25768
|
var t2 = {};
|
|
25662
25769
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25663
25770
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25670,7 +25777,7 @@ const MenuDivider = (props) => {
|
|
|
25670
25777
|
prefixCls: customizePrefixCls,
|
|
25671
25778
|
className,
|
|
25672
25779
|
dashed
|
|
25673
|
-
} = props, restProps = __rest$
|
|
25780
|
+
} = props, restProps = __rest$N(props, ["prefixCls", "className", "dashed"]);
|
|
25674
25781
|
const {
|
|
25675
25782
|
getPrefixCls
|
|
25676
25783
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -25751,7 +25858,7 @@ const MenuItem$1 = (props) => {
|
|
|
25751
25858
|
}
|
|
25752
25859
|
return returnNode;
|
|
25753
25860
|
};
|
|
25754
|
-
var __rest$
|
|
25861
|
+
var __rest$M = function(s, e3) {
|
|
25755
25862
|
var t2 = {};
|
|
25756
25863
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25757
25864
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25763,7 +25870,7 @@ const OverrideContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
|
25763
25870
|
const OverrideProvider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
25764
25871
|
const {
|
|
25765
25872
|
children: children2
|
|
25766
|
-
} = props, restProps = __rest$
|
|
25873
|
+
} = props, restProps = __rest$M(props, ["children"]);
|
|
25767
25874
|
const override = React__namespace.useContext(OverrideContext);
|
|
25768
25875
|
const context = React__namespace.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
|
|
25769
25876
|
override,
|
|
@@ -26590,7 +26697,7 @@ const getBaseStyle = (token2) => {
|
|
|
26590
26697
|
}
|
|
26591
26698
|
];
|
|
26592
26699
|
};
|
|
26593
|
-
const prepareComponentToken$
|
|
26700
|
+
const prepareComponentToken$i = (token2) => {
|
|
26594
26701
|
var _a, _b, _c;
|
|
26595
26702
|
const {
|
|
26596
26703
|
colorPrimary,
|
|
@@ -26708,7 +26815,7 @@ const prepareComponentToken$h = (token2) => {
|
|
|
26708
26815
|
itemWidth: activeBarWidth ? `calc(100% + ${activeBarBorderWidth}px)` : `calc(100% - ${itemMarginInline * 2}px)`
|
|
26709
26816
|
};
|
|
26710
26817
|
};
|
|
26711
|
-
const useStyle$
|
|
26818
|
+
const useStyle$m = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
|
|
26712
26819
|
const useStyle2 = genStyleHooks("Menu", (token2) => {
|
|
26713
26820
|
const {
|
|
26714
26821
|
colorBgElevated,
|
|
@@ -26787,7 +26894,7 @@ const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
|
|
|
26787
26894
|
initSlideMotion(menuToken, "slide-down"),
|
|
26788
26895
|
initZoomMotion(menuToken, "zoom-big")
|
|
26789
26896
|
];
|
|
26790
|
-
}, prepareComponentToken$
|
|
26897
|
+
}, prepareComponentToken$i, {
|
|
26791
26898
|
deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
|
|
26792
26899
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
26793
26900
|
injectStyle,
|
|
@@ -26841,7 +26948,7 @@ const SubMenu = (props) => {
|
|
|
26841
26948
|
}, props.popupStyle)
|
|
26842
26949
|
})));
|
|
26843
26950
|
};
|
|
26844
|
-
var __rest$
|
|
26951
|
+
var __rest$L = function(s, e3) {
|
|
26845
26952
|
var t2 = {};
|
|
26846
26953
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
26847
26954
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -26882,7 +26989,7 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
26882
26989
|
selectable,
|
|
26883
26990
|
onClick,
|
|
26884
26991
|
overflowedIndicatorPopupClassName
|
|
26885
|
-
} = props, restProps = __rest$
|
|
26992
|
+
} = props, restProps = __rest$L(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
|
|
26886
26993
|
const passedProps = omit(restProps, ["collapsedWidth"]);
|
|
26887
26994
|
if (process.env.NODE_ENV !== "production") {
|
|
26888
26995
|
const warning3 = devUseWarning("Menu");
|
|
@@ -26911,7 +27018,7 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
26911
27018
|
};
|
|
26912
27019
|
const prefixCls = getPrefixCls("menu", customizePrefixCls || overrideObj.prefixCls);
|
|
26913
27020
|
const rootCls = useCSSVarCls(prefixCls);
|
|
26914
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27021
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls, rootCls, !override);
|
|
26915
27022
|
const menuClassName = classNames(`${prefixCls}-${theme}`, menu === null || menu === void 0 ? void 0 : menu.className, className);
|
|
26916
27023
|
const mergedExpandIcon = React__namespace.useMemo(() => {
|
|
26917
27024
|
var _a2, _b;
|
|
@@ -27274,14 +27381,14 @@ const genBaseStyle$4 = (token2) => {
|
|
|
27274
27381
|
[initSlideMotion(token2, "slide-up"), initSlideMotion(token2, "slide-down"), initMoveMotion(token2, "move-up"), initMoveMotion(token2, "move-down"), initZoomMotion(token2, "zoom-big")]
|
|
27275
27382
|
];
|
|
27276
27383
|
};
|
|
27277
|
-
const prepareComponentToken$
|
|
27384
|
+
const prepareComponentToken$h = (token2) => Object.assign(Object.assign({
|
|
27278
27385
|
zIndexPopup: token2.zIndexPopupBase + 50,
|
|
27279
27386
|
paddingBlock: (token2.controlHeight - token2.fontSize * token2.lineHeight) / 2
|
|
27280
27387
|
}, getArrowOffsetToken({
|
|
27281
27388
|
contentRadius: token2.borderRadiusLG,
|
|
27282
27389
|
limitVerticalRadius: true
|
|
27283
27390
|
})), getArrowToken(token2));
|
|
27284
|
-
const useStyle$
|
|
27391
|
+
const useStyle$l = genStyleHooks("Dropdown", (token2) => {
|
|
27285
27392
|
const {
|
|
27286
27393
|
marginXXS,
|
|
27287
27394
|
sizePopupArrow,
|
|
@@ -27294,7 +27401,7 @@ const useStyle$k = genStyleHooks("Dropdown", (token2) => {
|
|
|
27294
27401
|
dropdownEdgeChildPadding: paddingXXS
|
|
27295
27402
|
});
|
|
27296
27403
|
return [genBaseStyle$4(dropdownToken), genStatusStyle(dropdownToken)];
|
|
27297
|
-
}, prepareComponentToken$
|
|
27404
|
+
}, prepareComponentToken$h, {
|
|
27298
27405
|
resetStyle: false
|
|
27299
27406
|
});
|
|
27300
27407
|
const Dropdown$1 = (props) => {
|
|
@@ -27370,7 +27477,7 @@ const Dropdown$1 = (props) => {
|
|
|
27370
27477
|
}, [placement, direction]);
|
|
27371
27478
|
const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
|
|
27372
27479
|
const rootCls = useCSSVarCls(prefixCls);
|
|
27373
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27480
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls);
|
|
27374
27481
|
const [, token2] = useToken();
|
|
27375
27482
|
const child = React__namespace.Children.only(isPrimitive(children2) ? /* @__PURE__ */ React__namespace.createElement("span", null, children2) : children2);
|
|
27376
27483
|
const popupTrigger = cloneElement(child, {
|
|
@@ -27472,8 +27579,8 @@ const Dropdown$1 = (props) => {
|
|
|
27472
27579
|
}
|
|
27473
27580
|
return wrapCSSVar(renderNode);
|
|
27474
27581
|
};
|
|
27475
|
-
const PurePanel$
|
|
27476
|
-
const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$
|
|
27582
|
+
const PurePanel$3 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
|
|
27583
|
+
const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$3, Object.assign({}, props), /* @__PURE__ */ React__namespace.createElement("span", null));
|
|
27477
27584
|
Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
|
|
27478
27585
|
if (process.env.NODE_ENV !== "production") {
|
|
27479
27586
|
Dropdown$1.displayName = "Dropdown";
|
|
@@ -27491,7 +27598,7 @@ const BreadcrumbSeparator = ({
|
|
|
27491
27598
|
}, children2 === "" ? children2 : children2 || "/");
|
|
27492
27599
|
};
|
|
27493
27600
|
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
|
27494
|
-
var __rest$
|
|
27601
|
+
var __rest$K = function(s, e3) {
|
|
27495
27602
|
var t2 = {};
|
|
27496
27603
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27497
27604
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27513,7 +27620,7 @@ function renderItem(prefixCls, item, children2, href) {
|
|
|
27513
27620
|
const {
|
|
27514
27621
|
className,
|
|
27515
27622
|
onClick
|
|
27516
|
-
} = item, restItem = __rest$
|
|
27623
|
+
} = item, restItem = __rest$K(item, ["className", "onClick"]);
|
|
27517
27624
|
const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
|
|
27518
27625
|
data: true,
|
|
27519
27626
|
aria: true
|
|
@@ -27540,7 +27647,7 @@ function useItemRender(prefixCls, itemRender) {
|
|
|
27540
27647
|
};
|
|
27541
27648
|
return mergedItemRender;
|
|
27542
27649
|
}
|
|
27543
|
-
var __rest$
|
|
27650
|
+
var __rest$J = function(s, e3) {
|
|
27544
27651
|
var t2 = {};
|
|
27545
27652
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27546
27653
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27568,7 +27675,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27568
27675
|
if (menu) {
|
|
27569
27676
|
const _a = menu || {}, {
|
|
27570
27677
|
items
|
|
27571
|
-
} = _a, menuProps = __rest$
|
|
27678
|
+
} = _a, menuProps = __rest$J(_a, ["items"]);
|
|
27572
27679
|
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
|
27573
27680
|
items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
|
|
27574
27681
|
var {
|
|
@@ -27576,7 +27683,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27576
27683
|
title,
|
|
27577
27684
|
label,
|
|
27578
27685
|
path: path2
|
|
27579
|
-
} = _a2, itemProps = __rest$
|
|
27686
|
+
} = _a2, itemProps = __rest$J(_a2, ["key", "title", "label", "path"]);
|
|
27580
27687
|
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
|
27581
27688
|
if (path2) {
|
|
27582
27689
|
mergedLabel = /* @__PURE__ */ React__namespace.createElement("a", {
|
|
@@ -27611,7 +27718,7 @@ const BreadcrumbItem = (props) => {
|
|
|
27611
27718
|
prefixCls: customizePrefixCls,
|
|
27612
27719
|
children: children2,
|
|
27613
27720
|
href
|
|
27614
|
-
} = props, restProps = __rest$
|
|
27721
|
+
} = props, restProps = __rest$J(props, ["prefixCls", "children", "href"]);
|
|
27615
27722
|
const {
|
|
27616
27723
|
getPrefixCls
|
|
27617
27724
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -27699,7 +27806,7 @@ const genBreadcrumbStyle = (token2) => {
|
|
|
27699
27806
|
})
|
|
27700
27807
|
};
|
|
27701
27808
|
};
|
|
27702
|
-
const prepareComponentToken$
|
|
27809
|
+
const prepareComponentToken$g = (token2) => ({
|
|
27703
27810
|
itemColor: token2.colorTextDescription,
|
|
27704
27811
|
lastItemColor: token2.colorText,
|
|
27705
27812
|
iconFontSize: token2.fontSize,
|
|
@@ -27708,11 +27815,11 @@ const prepareComponentToken$f = (token2) => ({
|
|
|
27708
27815
|
separatorColor: token2.colorTextDescription,
|
|
27709
27816
|
separatorMargin: token2.marginXS
|
|
27710
27817
|
});
|
|
27711
|
-
const useStyle$
|
|
27818
|
+
const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
|
|
27712
27819
|
const breadcrumbToken = merge$1(token2, {});
|
|
27713
27820
|
return genBreadcrumbStyle(breadcrumbToken);
|
|
27714
|
-
}, prepareComponentToken$
|
|
27715
|
-
var __rest$
|
|
27821
|
+
}, prepareComponentToken$g);
|
|
27822
|
+
var __rest$I = function(s, e3) {
|
|
27716
27823
|
var t2 = {};
|
|
27717
27824
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27718
27825
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27724,7 +27831,7 @@ function route2item(route) {
|
|
|
27724
27831
|
const {
|
|
27725
27832
|
breadcrumbName,
|
|
27726
27833
|
children: children2
|
|
27727
|
-
} = route, rest = __rest$
|
|
27834
|
+
} = route, rest = __rest$I(route, ["breadcrumbName", "children"]);
|
|
27728
27835
|
const clone = Object.assign({
|
|
27729
27836
|
title: breadcrumbName
|
|
27730
27837
|
}, rest);
|
|
@@ -27733,7 +27840,7 @@ function route2item(route) {
|
|
|
27733
27840
|
items: children2.map((_a) => {
|
|
27734
27841
|
var {
|
|
27735
27842
|
breadcrumbName: itemBreadcrumbName
|
|
27736
|
-
} = _a, itemProps = __rest$
|
|
27843
|
+
} = _a, itemProps = __rest$I(_a, ["breadcrumbName"]);
|
|
27737
27844
|
return Object.assign(Object.assign({}, itemProps), {
|
|
27738
27845
|
title: itemBreadcrumbName
|
|
27739
27846
|
});
|
|
@@ -27753,7 +27860,7 @@ function useItems(items, routes) {
|
|
|
27753
27860
|
return null;
|
|
27754
27861
|
}, [items, routes]);
|
|
27755
27862
|
}
|
|
27756
|
-
var __rest$
|
|
27863
|
+
var __rest$H = function(s, e3) {
|
|
27757
27864
|
var t2 = {};
|
|
27758
27865
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27759
27866
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27783,7 +27890,7 @@ const Breadcrumb$2 = (props) => {
|
|
|
27783
27890
|
children: children2,
|
|
27784
27891
|
itemRender,
|
|
27785
27892
|
params = {}
|
|
27786
|
-
} = props, restProps = __rest$
|
|
27893
|
+
} = props, restProps = __rest$H(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
|
27787
27894
|
const {
|
|
27788
27895
|
getPrefixCls,
|
|
27789
27896
|
direction,
|
|
@@ -27791,7 +27898,7 @@ const Breadcrumb$2 = (props) => {
|
|
|
27791
27898
|
} = React__namespace.useContext(ConfigContext);
|
|
27792
27899
|
let crumbs;
|
|
27793
27900
|
const prefixCls = getPrefixCls("breadcrumb", customizePrefixCls);
|
|
27794
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27901
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls);
|
|
27795
27902
|
const mergedItems = useItems(items, legacyRoutes);
|
|
27796
27903
|
if (process.env.NODE_ENV !== "production") {
|
|
27797
27904
|
const warning3 = devUseWarning("Breadcrumb");
|
|
@@ -31601,9 +31708,9 @@ function useRootProps(props) {
|
|
|
31601
31708
|
return pickProps(props, propNames);
|
|
31602
31709
|
}, [props]);
|
|
31603
31710
|
}
|
|
31604
|
-
var _excluded$
|
|
31711
|
+
var _excluded$q = ["icon", "type"], _excluded2$3 = ["onClear"];
|
|
31605
31712
|
function Icon$1(props) {
|
|
31606
|
-
var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
31713
|
+
var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$q);
|
|
31607
31714
|
var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
31608
31715
|
return icon ? /* @__PURE__ */ React__namespace.createElement("span", _extends$1({
|
|
31609
31716
|
className: "".concat(prefixCls, "-").concat(type4)
|
|
@@ -31723,11 +31830,11 @@ function getMaskRange(key) {
|
|
|
31723
31830
|
};
|
|
31724
31831
|
return PresetRange[key];
|
|
31725
31832
|
}
|
|
31726
|
-
var _excluded$
|
|
31833
|
+
var _excluded$p = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
|
|
31727
31834
|
var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
31728
31835
|
var active = props.active, _props$showActiveCls = props.showActiveCls, showActiveCls = _props$showActiveCls === void 0 ? true : _props$showActiveCls, suffixIcon = props.suffixIcon, format3 = props.format, validateFormat = props.validateFormat, onChange = props.onChange;
|
|
31729
31836
|
props.onInput;
|
|
31730
|
-
var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
31837
|
+
var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$p);
|
|
31731
31838
|
var value2 = props.value, onFocus = props.onFocus, onBlur = props.onBlur, onMouseUp = props.onMouseUp;
|
|
31732
31839
|
var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp;
|
|
31733
31840
|
var inputPrefixCls = "".concat(prefixCls, "-input");
|
|
@@ -31953,7 +32060,7 @@ var Input$5 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
|
31953
32060
|
if (process.env.NODE_ENV !== "production") {
|
|
31954
32061
|
Input$5.displayName = "Input";
|
|
31955
32062
|
}
|
|
31956
|
-
var _excluded$
|
|
32063
|
+
var _excluded$o = ["id", "prefix", "clearIcon", "suffixIcon", "separator", "activeIndex", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "value", "onChange", "onSubmit", "onInputChange", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onActiveInfo", "placement", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex"], _excluded2$2 = ["index"];
|
|
31957
32064
|
function RangeSelector(props, ref) {
|
|
31958
32065
|
var id2 = props.id, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon, _props$separator = props.separator, separator = _props$separator === void 0 ? "~" : _props$separator, activeIndex = props.activeIndex;
|
|
31959
32066
|
props.activeHelp;
|
|
@@ -31981,7 +32088,7 @@ function RangeSelector(props, ref) {
|
|
|
31981
32088
|
var _onMouseDown = props.onMouseDown;
|
|
31982
32089
|
props.required;
|
|
31983
32090
|
props["aria-required"];
|
|
31984
|
-
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
32091
|
+
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$o);
|
|
31985
32092
|
var rtl = direction === "rtl";
|
|
31986
32093
|
var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
31987
32094
|
var ids = React__namespace.useMemo(function() {
|
|
@@ -32495,7 +32602,7 @@ function MultipleDates(props) {
|
|
|
32495
32602
|
className: "".concat(prefixCls, "-selection-placeholder")
|
|
32496
32603
|
}, placeholder));
|
|
32497
32604
|
}
|
|
32498
|
-
var _excluded$
|
|
32605
|
+
var _excluded$n = ["id", "open", "prefix", "clearIcon", "suffixIcon", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "internalPicker", "value", "onChange", "onSubmit", "onInputChange", "multiple", "maxTagCount", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex", "removeIcon"];
|
|
32499
32606
|
function SingleSelector2(props, ref) {
|
|
32500
32607
|
props.id;
|
|
32501
32608
|
var open = props.open, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon;
|
|
@@ -32519,7 +32626,7 @@ function SingleSelector2(props, ref) {
|
|
|
32519
32626
|
var _onMouseDown = props.onMouseDown;
|
|
32520
32627
|
props.required;
|
|
32521
32628
|
props["aria-required"];
|
|
32522
|
-
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
32629
|
+
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$n);
|
|
32523
32630
|
var rtl = direction === "rtl";
|
|
32524
32631
|
var _React$useContext = React__namespace.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
32525
32632
|
var rootRef = React__namespace.useRef();
|
|
@@ -32922,9 +33029,9 @@ const RadioGroupContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
|
32922
33029
|
const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
32923
33030
|
const RadioOptionTypeContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
32924
33031
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
32925
|
-
var _excluded$
|
|
33032
|
+
var _excluded$m = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
|
|
32926
33033
|
var Checkbox$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
32927
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$
|
|
33034
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$m);
|
|
32928
33035
|
var inputRef = React.useRef(null);
|
|
32929
33036
|
var holderRef = React.useRef(null);
|
|
32930
33037
|
var _useMergedState = useMergedState(defaultChecked, {
|
|
@@ -33398,7 +33505,7 @@ const getRadioButtonStyle = (token2) => {
|
|
|
33398
33505
|
}
|
|
33399
33506
|
};
|
|
33400
33507
|
};
|
|
33401
|
-
const prepareComponentToken$
|
|
33508
|
+
const prepareComponentToken$f = (token2) => {
|
|
33402
33509
|
const {
|
|
33403
33510
|
wireframe,
|
|
33404
33511
|
padding,
|
|
@@ -33440,7 +33547,7 @@ const prepareComponentToken$e = (token2) => {
|
|
|
33440
33547
|
radioBgColor: wireframe ? colorBgContainer : colorPrimary
|
|
33441
33548
|
};
|
|
33442
33549
|
};
|
|
33443
|
-
const useStyle$
|
|
33550
|
+
const useStyle$j = genStyleHooks("Radio", (token2) => {
|
|
33444
33551
|
const {
|
|
33445
33552
|
controlOutline,
|
|
33446
33553
|
controlOutlineWidth
|
|
@@ -33452,13 +33559,13 @@ const useStyle$i = genStyleHooks("Radio", (token2) => {
|
|
|
33452
33559
|
radioButtonFocusShadow
|
|
33453
33560
|
});
|
|
33454
33561
|
return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];
|
|
33455
|
-
}, prepareComponentToken$
|
|
33562
|
+
}, prepareComponentToken$f, {
|
|
33456
33563
|
unitless: {
|
|
33457
33564
|
radioSize: true,
|
|
33458
33565
|
dotSize: true
|
|
33459
33566
|
}
|
|
33460
33567
|
});
|
|
33461
|
-
var __rest$
|
|
33568
|
+
var __rest$G = function(s, e3) {
|
|
33462
33569
|
var t2 = {};
|
|
33463
33570
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33464
33571
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33496,12 +33603,12 @@ const InternalRadio = (props, ref) => {
|
|
|
33496
33603
|
children: children2,
|
|
33497
33604
|
style: style2,
|
|
33498
33605
|
title
|
|
33499
|
-
} = props, restProps = __rest$
|
|
33606
|
+
} = props, restProps = __rest$G(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
|
|
33500
33607
|
const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33501
33608
|
const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
|
|
33502
33609
|
const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
|
|
33503
33610
|
const rootCls = useCSSVarCls(radioPrefixCls);
|
|
33504
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
33611
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(radioPrefixCls, rootCls);
|
|
33505
33612
|
const radioProps = Object.assign({}, restProps);
|
|
33506
33613
|
const disabled2 = React__namespace.useContext(DisabledContext);
|
|
33507
33614
|
if (groupContext) {
|
|
@@ -33577,7 +33684,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
|
|
|
33577
33684
|
}
|
|
33578
33685
|
return status;
|
|
33579
33686
|
}
|
|
33580
|
-
var __rest$
|
|
33687
|
+
var __rest$F = function(s, e3) {
|
|
33581
33688
|
var t2 = {};
|
|
33582
33689
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33583
33690
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33617,7 +33724,7 @@ function useForm(form) {
|
|
|
33617
33724
|
scrollToField: (name2, options = {}) => {
|
|
33618
33725
|
const {
|
|
33619
33726
|
focus
|
|
33620
|
-
} = options, restOpt = __rest$
|
|
33727
|
+
} = options, restOpt = __rest$F(options, ["focus"]);
|
|
33621
33728
|
const node2 = getFieldDOMNode(name2, wrapForm);
|
|
33622
33729
|
if (node2) {
|
|
33623
33730
|
e(node2, Object.assign({
|
|
@@ -33692,7 +33799,7 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
33692
33799
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33693
33800
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
33694
33801
|
const rootCls = useCSSVarCls(prefixCls);
|
|
33695
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
33802
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls, rootCls);
|
|
33696
33803
|
let childrenToRender = children2;
|
|
33697
33804
|
if (options && options.length > 0) {
|
|
33698
33805
|
childrenToRender = options.map((option) => {
|
|
@@ -33750,7 +33857,7 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
33750
33857
|
}, childrenToRender)));
|
|
33751
33858
|
});
|
|
33752
33859
|
const Group$1 = /* @__PURE__ */ React__namespace.memo(RadioGroup$1);
|
|
33753
|
-
var __rest$
|
|
33860
|
+
var __rest$E = function(s, e3) {
|
|
33754
33861
|
var t2 = {};
|
|
33755
33862
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33756
33863
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33764,7 +33871,7 @@ const RadioButton = (props, ref) => {
|
|
|
33764
33871
|
} = React__namespace.useContext(ConfigContext);
|
|
33765
33872
|
const {
|
|
33766
33873
|
prefixCls: customizePrefixCls
|
|
33767
|
-
} = props, radioProps = __rest$
|
|
33874
|
+
} = props, radioProps = __rest$E(props, ["prefixCls"]);
|
|
33768
33875
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33769
33876
|
return /* @__PURE__ */ React__namespace.createElement(RadioOptionTypeContextProvider, {
|
|
33770
33877
|
value: "button"
|
|
@@ -34765,7 +34872,7 @@ const useSharedStyle = genStyleHooks(["Input", "Shared"], (token2) => {
|
|
|
34765
34872
|
}, initComponentToken$1, {
|
|
34766
34873
|
resetFont: false
|
|
34767
34874
|
});
|
|
34768
|
-
const useStyle$
|
|
34875
|
+
const useStyle$i = genStyleHooks(["Input", "Component"], (token2) => {
|
|
34769
34876
|
const inputToken = merge$1(token2, initInputToken(token2));
|
|
34770
34877
|
return [
|
|
34771
34878
|
genGroupStyle(inputToken),
|
|
@@ -35527,7 +35634,7 @@ const initPanelComponentToken = (token2) => {
|
|
|
35527
35634
|
};
|
|
35528
35635
|
return filledToken;
|
|
35529
35636
|
};
|
|
35530
|
-
const prepareComponentToken$
|
|
35637
|
+
const prepareComponentToken$e = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
|
|
35531
35638
|
presetsWidth: 120,
|
|
35532
35639
|
presetsMaxWidth: 200,
|
|
35533
35640
|
zIndexPopup: token2.zIndexPopupBase + 50
|
|
@@ -35979,7 +36086,7 @@ const genPickerStyle = (token2) => {
|
|
|
35979
36086
|
initMoveMotion(token2, "move-down")
|
|
35980
36087
|
];
|
|
35981
36088
|
};
|
|
35982
|
-
const useStyle$
|
|
36089
|
+
const useStyle$h = genStyleHooks("DatePicker", (token2) => {
|
|
35983
36090
|
const pickerToken = merge$1(initInputToken(token2), initPickerPanelToken(token2), {
|
|
35984
36091
|
inputPaddingHorizontalBase: token2.calc(token2.paddingSM).sub(1).equal(),
|
|
35985
36092
|
multipleSelectItemHeight: token2.multipleItemHeight,
|
|
@@ -35998,7 +36105,7 @@ const useStyle$g = genStyleHooks("DatePicker", (token2) => {
|
|
|
35998
36105
|
focusElCls: `${token2.componentCls}-focused`
|
|
35999
36106
|
})
|
|
36000
36107
|
];
|
|
36001
|
-
}, prepareComponentToken$
|
|
36108
|
+
}, prepareComponentToken$e);
|
|
36002
36109
|
var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
|
36003
36110
|
var PlusOutlined = function PlusOutlined2(props, ref) {
|
|
36004
36111
|
return /* @__PURE__ */ React__namespace.createElement(Icon$3, _extends$1({}, props, {
|
|
@@ -37081,9 +37188,9 @@ var TabPane$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref)
|
|
|
37081
37188
|
if (process.env.NODE_ENV !== "production") {
|
|
37082
37189
|
TabPane$1.displayName = "TabPane";
|
|
37083
37190
|
}
|
|
37084
|
-
var _excluded$
|
|
37191
|
+
var _excluded$l = ["renderTabBar"], _excluded2$1 = ["label", "key"];
|
|
37085
37192
|
var TabNavListWrapper = function TabNavListWrapper2(_ref) {
|
|
37086
|
-
var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
37193
|
+
var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$l);
|
|
37087
37194
|
var _React$useContext = React__namespace.useContext(TabContext), tabs = _React$useContext.tabs;
|
|
37088
37195
|
if (renderTabBar) {
|
|
37089
37196
|
var tabNavBarProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
@@ -37104,7 +37211,7 @@ var TabNavListWrapper = function TabNavListWrapper2(_ref) {
|
|
|
37104
37211
|
if (process.env.NODE_ENV !== "production") {
|
|
37105
37212
|
TabNavListWrapper.displayName = "TabNavListWrapper";
|
|
37106
37213
|
}
|
|
37107
|
-
var _excluded$
|
|
37214
|
+
var _excluded$k = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
|
|
37108
37215
|
var TabPanelList = function TabPanelList2(props) {
|
|
37109
37216
|
var id2 = props.id, activeKey = props.activeKey, animated = props.animated, tabPosition = props.tabPosition, destroyInactiveTabPane = props.destroyInactiveTabPane;
|
|
37110
37217
|
var _React$useContext = React__namespace.useContext(TabContext), prefixCls = _React$useContext.prefixCls, tabs = _React$useContext.tabs;
|
|
@@ -37115,7 +37222,7 @@ var TabPanelList = function TabPanelList2(props) {
|
|
|
37115
37222
|
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
37116
37223
|
className: classNames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty$1({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated))
|
|
37117
37224
|
}, tabs.map(function(item) {
|
|
37118
|
-
var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$
|
|
37225
|
+
var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$k);
|
|
37119
37226
|
var active = key === activeKey;
|
|
37120
37227
|
return /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
|
|
37121
37228
|
key,
|
|
@@ -37170,10 +37277,10 @@ function useAnimateConfig$1() {
|
|
|
37170
37277
|
}
|
|
37171
37278
|
return mergedAnimated;
|
|
37172
37279
|
}
|
|
37173
|
-
var _excluded$
|
|
37280
|
+
var _excluded$j = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"];
|
|
37174
37281
|
var uuid$1 = 0;
|
|
37175
37282
|
var Tabs$3 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
37176
|
-
var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
37283
|
+
var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$j);
|
|
37177
37284
|
var tabs = React__namespace.useMemo(function() {
|
|
37178
37285
|
return (items || []).filter(function(item) {
|
|
37179
37286
|
return item && _typeof(item) === "object" && "key" in item;
|
|
@@ -37301,7 +37408,7 @@ function useAnimateConfig(prefixCls, animated = {
|
|
|
37301
37408
|
}
|
|
37302
37409
|
return mergedAnimated;
|
|
37303
37410
|
}
|
|
37304
|
-
var __rest$
|
|
37411
|
+
var __rest$D = function(s, e3) {
|
|
37305
37412
|
var t2 = {};
|
|
37306
37413
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
37307
37414
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -37335,7 +37442,7 @@ function useLegacyItems(items, children2) {
|
|
|
37335
37442
|
} = node2;
|
|
37336
37443
|
const _a = props || {}, {
|
|
37337
37444
|
tab: tab2
|
|
37338
|
-
} = _a, restProps = __rest$
|
|
37445
|
+
} = _a, restProps = __rest$D(_a, ["tab"]);
|
|
37339
37446
|
const item = Object.assign(Object.assign({
|
|
37340
37447
|
key: String(key)
|
|
37341
37448
|
}, restProps), {
|
|
@@ -37347,7 +37454,7 @@ function useLegacyItems(items, children2) {
|
|
|
37347
37454
|
});
|
|
37348
37455
|
return filter$1(childrenItems);
|
|
37349
37456
|
}
|
|
37350
|
-
const genMotionStyle = (token2) => {
|
|
37457
|
+
const genMotionStyle$1 = (token2) => {
|
|
37351
37458
|
const {
|
|
37352
37459
|
componentCls,
|
|
37353
37460
|
motionDurationSlow
|
|
@@ -38183,7 +38290,7 @@ const genTabsStyle = (token2) => {
|
|
|
38183
38290
|
}
|
|
38184
38291
|
};
|
|
38185
38292
|
};
|
|
38186
|
-
const prepareComponentToken$
|
|
38293
|
+
const prepareComponentToken$d = (token2) => {
|
|
38187
38294
|
const {
|
|
38188
38295
|
cardHeight,
|
|
38189
38296
|
cardHeightSM,
|
|
@@ -38228,7 +38335,7 @@ const prepareComponentToken$c = (token2) => {
|
|
|
38228
38335
|
cardGutter: token2.marginXXS / 2
|
|
38229
38336
|
};
|
|
38230
38337
|
};
|
|
38231
|
-
const useStyle$
|
|
38338
|
+
const useStyle$g = genStyleHooks("Tabs", (token2) => {
|
|
38232
38339
|
const tabsToken = merge$1(token2, {
|
|
38233
38340
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
38234
38341
|
tabsCardPadding: token2.cardPadding,
|
|
@@ -38239,13 +38346,13 @@ const useStyle$f = genStyleHooks("Tabs", (token2) => {
|
|
|
38239
38346
|
tabsHorizontalItemMargin: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`,
|
|
38240
38347
|
tabsHorizontalItemMarginRTL: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`
|
|
38241
38348
|
});
|
|
38242
|
-
return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle(tabsToken)];
|
|
38243
|
-
}, prepareComponentToken$
|
|
38349
|
+
return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle$1(tabsToken)];
|
|
38350
|
+
}, prepareComponentToken$d);
|
|
38244
38351
|
const TabPane = () => null;
|
|
38245
38352
|
if (process.env.NODE_ENV !== "production") {
|
|
38246
38353
|
TabPane.displayName = "DeprecatedTabPane";
|
|
38247
38354
|
}
|
|
38248
|
-
var __rest$
|
|
38355
|
+
var __rest$C = function(s, e3) {
|
|
38249
38356
|
var t2 = {};
|
|
38250
38357
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38251
38358
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38276,7 +38383,7 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
38276
38383
|
indicator,
|
|
38277
38384
|
destroyInactiveTabPane,
|
|
38278
38385
|
destroyOnHidden
|
|
38279
|
-
} = props, otherProps = __rest$
|
|
38386
|
+
} = props, otherProps = __rest$C(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
|
|
38280
38387
|
const {
|
|
38281
38388
|
prefixCls: customizePrefixCls
|
|
38282
38389
|
} = otherProps;
|
|
@@ -38288,7 +38395,7 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
38288
38395
|
} = React__namespace.useContext(ConfigContext);
|
|
38289
38396
|
const prefixCls = getPrefixCls("tabs", customizePrefixCls);
|
|
38290
38397
|
const rootCls = useCSSVarCls(prefixCls);
|
|
38291
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
38398
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
|
|
38292
38399
|
const tabsRef = React__namespace.useRef(null);
|
|
38293
38400
|
React__namespace.useImperativeHandle(ref, () => ({
|
|
38294
38401
|
nativeElement: tabsRef.current
|
|
@@ -38353,7 +38460,7 @@ Tabs$2.TabPane = TabPane;
|
|
|
38353
38460
|
if (process.env.NODE_ENV !== "production") {
|
|
38354
38461
|
Tabs$2.displayName = "Tabs";
|
|
38355
38462
|
}
|
|
38356
|
-
var __rest$
|
|
38463
|
+
var __rest$B = function(s, e3) {
|
|
38357
38464
|
var t2 = {};
|
|
38358
38465
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38359
38466
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38366,7 +38473,7 @@ const Grid$1 = (_a) => {
|
|
|
38366
38473
|
prefixCls,
|
|
38367
38474
|
className,
|
|
38368
38475
|
hoverable = true
|
|
38369
|
-
} = _a, props = __rest$
|
|
38476
|
+
} = _a, props = __rest$B(_a, ["prefixCls", "className", "hoverable"]);
|
|
38370
38477
|
const {
|
|
38371
38478
|
getPrefixCls
|
|
38372
38479
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -38684,7 +38791,7 @@ const genCardSizeStyle = (token2) => {
|
|
|
38684
38791
|
}
|
|
38685
38792
|
};
|
|
38686
38793
|
};
|
|
38687
|
-
const prepareComponentToken$
|
|
38794
|
+
const prepareComponentToken$c = (token2) => {
|
|
38688
38795
|
var _a, _b;
|
|
38689
38796
|
return {
|
|
38690
38797
|
headerBg: "transparent",
|
|
@@ -38703,7 +38810,7 @@ const prepareComponentToken$b = (token2) => {
|
|
|
38703
38810
|
headerPadding: (_b = token2.headerPadding) !== null && _b !== void 0 ? _b : token2.paddingLG
|
|
38704
38811
|
};
|
|
38705
38812
|
};
|
|
38706
|
-
const useStyle$
|
|
38813
|
+
const useStyle$f = genStyleHooks("Card", (token2) => {
|
|
38707
38814
|
const cardToken = merge$1(token2, {
|
|
38708
38815
|
cardShadow: token2.boxShadowCard,
|
|
38709
38816
|
cardHeadPadding: token2.padding,
|
|
@@ -38716,8 +38823,8 @@ const useStyle$e = genStyleHooks("Card", (token2) => {
|
|
|
38716
38823
|
// Size
|
|
38717
38824
|
genCardSizeStyle(cardToken)
|
|
38718
38825
|
];
|
|
38719
|
-
}, prepareComponentToken$
|
|
38720
|
-
var __rest$
|
|
38826
|
+
}, prepareComponentToken$c);
|
|
38827
|
+
var __rest$A = function(s, e3) {
|
|
38721
38828
|
var t2 = {};
|
|
38722
38829
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38723
38830
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38770,7 +38877,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38770
38877
|
tabProps = {},
|
|
38771
38878
|
classNames: customClassNames,
|
|
38772
38879
|
styles: customStyles
|
|
38773
|
-
} = props, others = __rest$
|
|
38880
|
+
} = props, others = __rest$A(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
|
|
38774
38881
|
const {
|
|
38775
38882
|
getPrefixCls,
|
|
38776
38883
|
direction,
|
|
@@ -38805,7 +38912,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38805
38912
|
return containGrid;
|
|
38806
38913
|
}, [children2]);
|
|
38807
38914
|
const prefixCls = getPrefixCls("card", customizePrefixCls);
|
|
38808
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
38915
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls);
|
|
38809
38916
|
const loadingBlock = /* @__PURE__ */ React__namespace.createElement(Skeleton$1, {
|
|
38810
38917
|
loading: true,
|
|
38811
38918
|
active: true,
|
|
@@ -38830,7 +38937,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38830
38937
|
items: tabList.map((_a) => {
|
|
38831
38938
|
var {
|
|
38832
38939
|
tab: tab2
|
|
38833
|
-
} = _a, item = __rest$
|
|
38940
|
+
} = _a, item = __rest$A(_a, ["tab"]);
|
|
38834
38941
|
return Object.assign({
|
|
38835
38942
|
label: tab2
|
|
38836
38943
|
}, item);
|
|
@@ -38890,7 +38997,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38890
38997
|
style: mergedStyle
|
|
38891
38998
|
}), head, coverDom, body, actionDom));
|
|
38892
38999
|
});
|
|
38893
|
-
var __rest$
|
|
39000
|
+
var __rest$z = function(s, e3) {
|
|
38894
39001
|
var t2 = {};
|
|
38895
39002
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38896
39003
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38905,7 +39012,7 @@ const Meta = (props) => {
|
|
|
38905
39012
|
avatar,
|
|
38906
39013
|
title,
|
|
38907
39014
|
description
|
|
38908
|
-
} = props, others = __rest$
|
|
39015
|
+
} = props, others = __rest$z(props, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
38909
39016
|
const {
|
|
38910
39017
|
getPrefixCls
|
|
38911
39018
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -38993,7 +39100,7 @@ function debounce(delay, callback, options) {
|
|
|
38993
39100
|
function getEntity(keyEntities, key) {
|
|
38994
39101
|
return keyEntities[key];
|
|
38995
39102
|
}
|
|
38996
|
-
var _excluded$
|
|
39103
|
+
var _excluded$i = ["children"];
|
|
38997
39104
|
function getPosition(level, index2) {
|
|
38998
39105
|
return "".concat(level, "-").concat(index2);
|
|
38999
39106
|
}
|
|
@@ -39041,7 +39148,7 @@ function convertTreeToData(rootNodes) {
|
|
|
39041
39148
|
return null;
|
|
39042
39149
|
}
|
|
39043
39150
|
var key = treeNode.key;
|
|
39044
|
-
var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$
|
|
39151
|
+
var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$i);
|
|
39045
39152
|
var dataNode = _objectSpread2({
|
|
39046
39153
|
key
|
|
39047
39154
|
}, rest);
|
|
@@ -39629,11 +39736,11 @@ function getStyle$1(prefixCls, token2) {
|
|
|
39629
39736
|
});
|
|
39630
39737
|
return genCheckboxStyle(checkboxToken);
|
|
39631
39738
|
}
|
|
39632
|
-
const useStyle$
|
|
39739
|
+
const useStyle$e = genStyleHooks("Checkbox", (token2, {
|
|
39633
39740
|
prefixCls
|
|
39634
39741
|
}) => [getStyle$1(prefixCls, token2)]);
|
|
39635
39742
|
const GroupContext = /* @__PURE__ */ React.createContext(null);
|
|
39636
|
-
var __rest$
|
|
39743
|
+
var __rest$y = function(s, e3) {
|
|
39637
39744
|
var t2 = {};
|
|
39638
39745
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39639
39746
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39654,7 +39761,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
39654
39761
|
onMouseLeave,
|
|
39655
39762
|
skipGroup = false,
|
|
39656
39763
|
disabled: disabled2
|
|
39657
|
-
} = props, restProps = __rest$
|
|
39764
|
+
} = props, restProps = __rest$y(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
|
|
39658
39765
|
const {
|
|
39659
39766
|
getPrefixCls,
|
|
39660
39767
|
direction,
|
|
@@ -39695,7 +39802,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
39695
39802
|
}, [indeterminate]);
|
|
39696
39803
|
const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
|
|
39697
39804
|
const rootCls = useCSSVarCls(prefixCls);
|
|
39698
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
39805
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
|
|
39699
39806
|
const checkboxProps = Object.assign({}, restProps);
|
|
39700
39807
|
if (checkboxGroup && !skipGroup) {
|
|
39701
39808
|
checkboxProps.onChange = (...args) => {
|
|
@@ -39745,7 +39852,7 @@ const Checkbox$2 = /* @__PURE__ */ React__namespace.forwardRef(InternalCheckbox)
|
|
|
39745
39852
|
if (process.env.NODE_ENV !== "production") {
|
|
39746
39853
|
Checkbox$2.displayName = "Checkbox";
|
|
39747
39854
|
}
|
|
39748
|
-
var __rest$
|
|
39855
|
+
var __rest$x = function(s, e3) {
|
|
39749
39856
|
var t2 = {};
|
|
39750
39857
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39751
39858
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39763,7 +39870,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
39763
39870
|
rootClassName,
|
|
39764
39871
|
style: style2,
|
|
39765
39872
|
onChange
|
|
39766
|
-
} = props, restProps = __rest$
|
|
39873
|
+
} = props, restProps = __rest$x(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
|
|
39767
39874
|
const {
|
|
39768
39875
|
getPrefixCls,
|
|
39769
39876
|
direction
|
|
@@ -39810,7 +39917,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
39810
39917
|
const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
|
|
39811
39918
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
39812
39919
|
const rootCls = useCSSVarCls(prefixCls);
|
|
39813
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
39920
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
|
|
39814
39921
|
const domProps = omit(restProps, ["value", "disabled"]);
|
|
39815
39922
|
const childrenNode = options.length ? memoizedOptions.map((option) => /* @__PURE__ */ React__namespace.createElement(Checkbox$2, {
|
|
39816
39923
|
prefixCls,
|
|
@@ -39853,7 +39960,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
39853
39960
|
Checkbox$1.displayName = "Checkbox";
|
|
39854
39961
|
}
|
|
39855
39962
|
const RowContext = /* @__PURE__ */ React.createContext({});
|
|
39856
|
-
var __rest$
|
|
39963
|
+
var __rest$w = function(s, e3) {
|
|
39857
39964
|
var t2 = {};
|
|
39858
39965
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39859
39966
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39891,7 +39998,7 @@ const Col = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
39891
39998
|
children: children2,
|
|
39892
39999
|
flex,
|
|
39893
40000
|
style: style2
|
|
39894
|
-
} = props, others = __rest$
|
|
40001
|
+
} = props, others = __rest$w(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
|
|
39895
40002
|
const prefixCls = getPrefixCls("col", customizePrefixCls);
|
|
39896
40003
|
const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
|
|
39897
40004
|
const sizeStyle = {};
|
|
@@ -39972,7 +40079,7 @@ function useGutter(gutter, screens) {
|
|
|
39972
40079
|
});
|
|
39973
40080
|
return results;
|
|
39974
40081
|
}
|
|
39975
|
-
var __rest$
|
|
40082
|
+
var __rest$v = function(s, e3) {
|
|
39976
40083
|
var t2 = {};
|
|
39977
40084
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39978
40085
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40016,7 +40123,7 @@ const Row$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
40016
40123
|
children: children2,
|
|
40017
40124
|
gutter = 0,
|
|
40018
40125
|
wrap: wrap2
|
|
40019
|
-
} = props, others = __rest$
|
|
40126
|
+
} = props, others = __rest$v(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
|
|
40020
40127
|
const {
|
|
40021
40128
|
getPrefixCls,
|
|
40022
40129
|
direction
|
|
@@ -40198,7 +40305,7 @@ function MotionThumb(props) {
|
|
|
40198
40305
|
return /* @__PURE__ */ React__namespace.createElement("div", motionProps);
|
|
40199
40306
|
});
|
|
40200
40307
|
}
|
|
40201
|
-
var _excluded$
|
|
40308
|
+
var _excluded$h = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
|
|
40202
40309
|
function getValidTitle(option) {
|
|
40203
40310
|
if (typeof option.title !== "undefined") {
|
|
40204
40311
|
return option.title;
|
|
@@ -40253,7 +40360,7 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
|
40253
40360
|
};
|
|
40254
40361
|
var Segmented$1 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
40255
40362
|
var _segmentedOptions$, _classNames2;
|
|
40256
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, vertical = props.vertical, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
40363
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, vertical = props.vertical, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$1(props, _excluded$h);
|
|
40257
40364
|
var containerRef = React__namespace.useRef(null);
|
|
40258
40365
|
var mergedRef = React__namespace.useMemo(function() {
|
|
40259
40366
|
return composeRef(containerRef, ref);
|
|
@@ -40538,7 +40645,7 @@ const genSegmentedStyle = (token2) => {
|
|
|
40538
40645
|
})
|
|
40539
40646
|
};
|
|
40540
40647
|
};
|
|
40541
|
-
const prepareComponentToken$
|
|
40648
|
+
const prepareComponentToken$b = (token2) => {
|
|
40542
40649
|
const {
|
|
40543
40650
|
colorTextLabel,
|
|
40544
40651
|
colorText,
|
|
@@ -40559,7 +40666,7 @@ const prepareComponentToken$a = (token2) => {
|
|
|
40559
40666
|
itemSelectedColor: colorText
|
|
40560
40667
|
};
|
|
40561
40668
|
};
|
|
40562
|
-
const useStyle$
|
|
40669
|
+
const useStyle$d = genStyleHooks("Segmented", (token2) => {
|
|
40563
40670
|
const {
|
|
40564
40671
|
lineWidth,
|
|
40565
40672
|
calc
|
|
@@ -40569,8 +40676,8 @@ const useStyle$c = genStyleHooks("Segmented", (token2) => {
|
|
|
40569
40676
|
segmentedPaddingHorizontalSM: calc(token2.controlPaddingHorizontalSM).sub(lineWidth).equal()
|
|
40570
40677
|
});
|
|
40571
40678
|
return genSegmentedStyle(segmentedToken);
|
|
40572
|
-
}, prepareComponentToken$
|
|
40573
|
-
var __rest$
|
|
40679
|
+
}, prepareComponentToken$b);
|
|
40680
|
+
var __rest$u = function(s, e3) {
|
|
40574
40681
|
var t2 = {};
|
|
40575
40682
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
40576
40683
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40594,7 +40701,7 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
|
|
|
40594
40701
|
vertical,
|
|
40595
40702
|
shape = "default",
|
|
40596
40703
|
name: name2 = defaultName
|
|
40597
|
-
} = props, restProps = __rest$
|
|
40704
|
+
} = props, restProps = __rest$u(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
|
|
40598
40705
|
const {
|
|
40599
40706
|
getPrefixCls,
|
|
40600
40707
|
direction,
|
|
@@ -40602,14 +40709,14 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
|
|
|
40602
40709
|
style: contextStyle
|
|
40603
40710
|
} = useComponentConfig("segmented");
|
|
40604
40711
|
const prefixCls = getPrefixCls("segmented", customizePrefixCls);
|
|
40605
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
40712
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls);
|
|
40606
40713
|
const mergedSize = useSize(customSize);
|
|
40607
40714
|
const extendedOptions = React__namespace.useMemo(() => options.map((option) => {
|
|
40608
40715
|
if (isSegmentedLabeledOptionWithIcon(option)) {
|
|
40609
40716
|
const {
|
|
40610
40717
|
icon,
|
|
40611
40718
|
label
|
|
40612
|
-
} = option, restOption = __rest$
|
|
40719
|
+
} = option, restOption = __rest$u(option, ["icon", "label"]);
|
|
40613
40720
|
return Object.assign(Object.assign({}, restOption), {
|
|
40614
40721
|
label: /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement("span", {
|
|
40615
40722
|
className: `${prefixCls}-item-icon`
|
|
@@ -40787,7 +40894,7 @@ var BaseInput = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
40787
40894
|
hidden
|
|
40788
40895
|
});
|
|
40789
40896
|
});
|
|
40790
|
-
var _excluded$
|
|
40897
|
+
var _excluded$g = ["show"];
|
|
40791
40898
|
function useCount(count, showCount) {
|
|
40792
40899
|
return React__namespace.useMemo(function() {
|
|
40793
40900
|
var mergedConfig = {};
|
|
@@ -40795,7 +40902,7 @@ function useCount(count, showCount) {
|
|
|
40795
40902
|
mergedConfig.show = _typeof(showCount) === "object" && showCount.formatter ? showCount.formatter : !!showCount;
|
|
40796
40903
|
}
|
|
40797
40904
|
mergedConfig = _objectSpread2(_objectSpread2({}, mergedConfig), count);
|
|
40798
|
-
var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
40905
|
+
var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$g);
|
|
40799
40906
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
40800
40907
|
show: !!show,
|
|
40801
40908
|
showFormatter: typeof show === "function" ? show : void 0,
|
|
@@ -40805,9 +40912,9 @@ function useCount(count, showCount) {
|
|
|
40805
40912
|
});
|
|
40806
40913
|
}, [count, showCount]);
|
|
40807
40914
|
}
|
|
40808
|
-
var _excluded$
|
|
40915
|
+
var _excluded$f = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
|
|
40809
40916
|
var Input$4 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
40810
|
-
var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$
|
|
40917
|
+
var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$f);
|
|
40811
40918
|
var _useState = React.useState(false), _useState2 = _slicedToArray(_useState, 2), focused = _useState2[0], setFocused = _useState2[1];
|
|
40812
40919
|
var compositionRef = React.useRef(false);
|
|
40813
40920
|
var keyLockRef = React.useRef(false);
|
|
@@ -41029,7 +41136,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
|
|
|
41029
41136
|
function hasPrefixSuffix(props) {
|
|
41030
41137
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
41031
41138
|
}
|
|
41032
|
-
var __rest$
|
|
41139
|
+
var __rest$t = function(s, e3) {
|
|
41033
41140
|
var t2 = {};
|
|
41034
41141
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41035
41142
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41057,7 +41164,7 @@ const Input$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
41057
41164
|
onChange,
|
|
41058
41165
|
classNames: classNames$1,
|
|
41059
41166
|
variant: customVariant
|
|
41060
|
-
} = props, rest = __rest$
|
|
41167
|
+
} = props, rest = __rest$t(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
41061
41168
|
if (process.env.NODE_ENV !== "production") {
|
|
41062
41169
|
const {
|
|
41063
41170
|
deprecated
|
|
@@ -41078,7 +41185,7 @@ const Input$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
41078
41185
|
const inputRef = React.useRef(null);
|
|
41079
41186
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41080
41187
|
const [wrapSharedCSSVar, hashId, cssVarCls] = useSharedStyle(prefixCls, rootClassName);
|
|
41081
|
-
const [wrapCSSVar] = useStyle$
|
|
41188
|
+
const [wrapCSSVar] = useStyle$i(prefixCls, rootCls);
|
|
41082
41189
|
const {
|
|
41083
41190
|
compactSize,
|
|
41084
41191
|
compactItemClassnames
|
|
@@ -41364,7 +41471,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
|
|
|
41364
41471
|
return [filledClassNames, filledStyles];
|
|
41365
41472
|
}, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
|
|
41366
41473
|
};
|
|
41367
|
-
var __rest$
|
|
41474
|
+
var __rest$s = function(s, e3) {
|
|
41368
41475
|
var t2 = {};
|
|
41369
41476
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41370
41477
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41395,7 +41502,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41395
41502
|
picker,
|
|
41396
41503
|
styles,
|
|
41397
41504
|
classNames: classNames$1
|
|
41398
|
-
} = props, restProps = __rest$
|
|
41505
|
+
} = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
|
|
41399
41506
|
const pickerType = picker === TIME ? "timePicker" : "datePicker";
|
|
41400
41507
|
const innerRef = React__namespace.useRef(null);
|
|
41401
41508
|
const {
|
|
@@ -41412,7 +41519,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41412
41519
|
const rootPrefixCls = getPrefixCls();
|
|
41413
41520
|
const [variant, enableVariantCls] = useVariant("rangePicker", customVariant, bordered);
|
|
41414
41521
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41415
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
41522
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
|
|
41416
41523
|
if (process.env.NODE_ENV !== "production") {
|
|
41417
41524
|
const warning3 = devUseWarning("DatePicker.RangePicker");
|
|
41418
41525
|
const deprecatedProps = {
|
|
@@ -41500,7 +41607,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41500
41607
|
}
|
|
41501
41608
|
return RangePicker2;
|
|
41502
41609
|
};
|
|
41503
|
-
var __rest$
|
|
41610
|
+
var __rest$r = function(s, e3) {
|
|
41504
41611
|
var t2 = {};
|
|
41505
41612
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41506
41613
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41533,7 +41640,7 @@ const generatePicker$1 = (generateConfig2) => {
|
|
|
41533
41640
|
onCalendarChange,
|
|
41534
41641
|
styles,
|
|
41535
41642
|
classNames: classNames$1
|
|
41536
|
-
} = props, restProps = __rest$
|
|
41643
|
+
} = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
|
|
41537
41644
|
const {
|
|
41538
41645
|
getPrefixCls,
|
|
41539
41646
|
direction,
|
|
@@ -41549,7 +41656,7 @@ const generatePicker$1 = (generateConfig2) => {
|
|
|
41549
41656
|
const innerRef = React__namespace.useRef(null);
|
|
41550
41657
|
const [variant, enableVariantCls] = useVariant("datePicker", customVariant, bordered);
|
|
41551
41658
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41552
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
41659
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
|
|
41553
41660
|
React.useImperativeHandle(ref, () => innerRef.current);
|
|
41554
41661
|
const additionalProps = {
|
|
41555
41662
|
showToday: true
|
|
@@ -41690,11 +41797,783 @@ const generatePicker = (generateConfig2) => {
|
|
|
41690
41797
|
return MergedDatePicker;
|
|
41691
41798
|
};
|
|
41692
41799
|
const DatePicker$1 = generatePicker(generateConfig);
|
|
41693
|
-
const PurePanel$
|
|
41694
|
-
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
41800
|
+
const PurePanel$2 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
|
|
41801
|
+
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
|
|
41695
41802
|
const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
|
|
41696
41803
|
DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
|
|
41697
41804
|
DatePicker$1.generatePicker = generatePicker;
|
|
41805
|
+
var DrawerContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
41806
|
+
var RefContext = /* @__PURE__ */ React__namespace.createContext({});
|
|
41807
|
+
var _excluded$e = ["prefixCls", "className", "containerRef"];
|
|
41808
|
+
var DrawerPanel$1 = function DrawerPanel(props) {
|
|
41809
|
+
var prefixCls = props.prefixCls, className = props.className, containerRef = props.containerRef, restProps = _objectWithoutProperties$1(props, _excluded$e);
|
|
41810
|
+
var _React$useContext = React__namespace.useContext(RefContext), panelRef = _React$useContext.panel;
|
|
41811
|
+
var mergedRef = useComposeRef(panelRef, containerRef);
|
|
41812
|
+
return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
|
|
41813
|
+
className: classNames("".concat(prefixCls, "-content"), className),
|
|
41814
|
+
role: "dialog",
|
|
41815
|
+
ref: mergedRef
|
|
41816
|
+
}, pickAttrs(props, {
|
|
41817
|
+
aria: true
|
|
41818
|
+
}), {
|
|
41819
|
+
"aria-modal": "true"
|
|
41820
|
+
}, restProps));
|
|
41821
|
+
};
|
|
41822
|
+
if (process.env.NODE_ENV !== "production") {
|
|
41823
|
+
DrawerPanel$1.displayName = "DrawerPanel";
|
|
41824
|
+
}
|
|
41825
|
+
function parseWidthHeight(value2) {
|
|
41826
|
+
if (typeof value2 === "string" && String(Number(value2)) === value2) {
|
|
41827
|
+
warningOnce(false, "Invalid value type of `width` or `height` which should be number type instead.");
|
|
41828
|
+
return Number(value2);
|
|
41829
|
+
}
|
|
41830
|
+
return value2;
|
|
41831
|
+
}
|
|
41832
|
+
function warnCheck(props) {
|
|
41833
|
+
warningOnce(!("wrapperClassName" in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
|
|
41834
|
+
warningOnce(canUseDom() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
|
|
41835
|
+
}
|
|
41836
|
+
var sentinelStyle = {
|
|
41837
|
+
width: 0,
|
|
41838
|
+
height: 0,
|
|
41839
|
+
overflow: "hidden",
|
|
41840
|
+
outline: "none",
|
|
41841
|
+
position: "absolute"
|
|
41842
|
+
};
|
|
41843
|
+
function DrawerPopup(props, ref) {
|
|
41844
|
+
var _ref, _pushConfig$distance, _pushConfig;
|
|
41845
|
+
var prefixCls = props.prefixCls, open = props.open, placement = props.placement, inline2 = props.inline, push2 = props.push, forceRender = props.forceRender, autoFocus = props.autoFocus, keyboard = props.keyboard, drawerClassNames = props.classNames, rootClassName = props.rootClassName, rootStyle = props.rootStyle, zIndex = props.zIndex, className = props.className, id2 = props.id, style2 = props.style, motion2 = props.motion, width = props.width, height = props.height, children2 = props.children, mask = props.mask, maskClosable = props.maskClosable, maskMotion = props.maskMotion, maskClassName = props.maskClassName, maskStyle = props.maskStyle, afterOpenChange = props.afterOpenChange, onClose = props.onClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, styles = props.styles, drawerRender = props.drawerRender;
|
|
41846
|
+
var panelRef = React__namespace.useRef();
|
|
41847
|
+
var sentinelStartRef = React__namespace.useRef();
|
|
41848
|
+
var sentinelEndRef = React__namespace.useRef();
|
|
41849
|
+
React__namespace.useImperativeHandle(ref, function() {
|
|
41850
|
+
return panelRef.current;
|
|
41851
|
+
});
|
|
41852
|
+
var onPanelKeyDown = function onPanelKeyDown2(event2) {
|
|
41853
|
+
var keyCode = event2.keyCode, shiftKey = event2.shiftKey;
|
|
41854
|
+
switch (keyCode) {
|
|
41855
|
+
// Tab active
|
|
41856
|
+
case KeyCode.TAB: {
|
|
41857
|
+
if (keyCode === KeyCode.TAB) {
|
|
41858
|
+
if (!shiftKey && document.activeElement === sentinelEndRef.current) {
|
|
41859
|
+
var _sentinelStartRef$cur;
|
|
41860
|
+
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
|
41861
|
+
preventScroll: true
|
|
41862
|
+
});
|
|
41863
|
+
} else if (shiftKey && document.activeElement === sentinelStartRef.current) {
|
|
41864
|
+
var _sentinelEndRef$curre;
|
|
41865
|
+
(_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
|
|
41866
|
+
preventScroll: true
|
|
41867
|
+
});
|
|
41868
|
+
}
|
|
41869
|
+
}
|
|
41870
|
+
break;
|
|
41871
|
+
}
|
|
41872
|
+
// Close
|
|
41873
|
+
case KeyCode.ESC: {
|
|
41874
|
+
if (onClose && keyboard) {
|
|
41875
|
+
event2.stopPropagation();
|
|
41876
|
+
onClose(event2);
|
|
41877
|
+
}
|
|
41878
|
+
break;
|
|
41879
|
+
}
|
|
41880
|
+
}
|
|
41881
|
+
};
|
|
41882
|
+
React__namespace.useEffect(function() {
|
|
41883
|
+
if (open && autoFocus) {
|
|
41884
|
+
var _panelRef$current;
|
|
41885
|
+
(_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
|
|
41886
|
+
preventScroll: true
|
|
41887
|
+
});
|
|
41888
|
+
}
|
|
41889
|
+
}, [open]);
|
|
41890
|
+
var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), pushed = _React$useState2[0], setPushed = _React$useState2[1];
|
|
41891
|
+
var parentContext = React__namespace.useContext(DrawerContext);
|
|
41892
|
+
var pushConfig;
|
|
41893
|
+
if (typeof push2 === "boolean") {
|
|
41894
|
+
pushConfig = push2 ? {} : {
|
|
41895
|
+
distance: 0
|
|
41896
|
+
};
|
|
41897
|
+
} else {
|
|
41898
|
+
pushConfig = push2 || {};
|
|
41899
|
+
}
|
|
41900
|
+
var pushDistance = (_ref = (_pushConfig$distance = (_pushConfig = pushConfig) === null || _pushConfig === void 0 ? void 0 : _pushConfig.distance) !== null && _pushConfig$distance !== void 0 ? _pushConfig$distance : parentContext === null || parentContext === void 0 ? void 0 : parentContext.pushDistance) !== null && _ref !== void 0 ? _ref : 180;
|
|
41901
|
+
var mergedContext = React__namespace.useMemo(function() {
|
|
41902
|
+
return {
|
|
41903
|
+
pushDistance,
|
|
41904
|
+
push: function push3() {
|
|
41905
|
+
setPushed(true);
|
|
41906
|
+
},
|
|
41907
|
+
pull: function pull() {
|
|
41908
|
+
setPushed(false);
|
|
41909
|
+
}
|
|
41910
|
+
};
|
|
41911
|
+
}, [pushDistance]);
|
|
41912
|
+
React__namespace.useEffect(function() {
|
|
41913
|
+
if (open) {
|
|
41914
|
+
var _parentContext$push;
|
|
41915
|
+
parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
|
|
41916
|
+
} else {
|
|
41917
|
+
var _parentContext$pull;
|
|
41918
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
|
|
41919
|
+
}
|
|
41920
|
+
}, [open]);
|
|
41921
|
+
React__namespace.useEffect(function() {
|
|
41922
|
+
return function() {
|
|
41923
|
+
var _parentContext$pull2;
|
|
41924
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
|
|
41925
|
+
};
|
|
41926
|
+
}, []);
|
|
41927
|
+
var maskNode = /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
|
|
41928
|
+
key: "mask"
|
|
41929
|
+
}, maskMotion, {
|
|
41930
|
+
visible: mask && open
|
|
41931
|
+
}), function(_ref2, maskRef) {
|
|
41932
|
+
var motionMaskClassName = _ref2.className, motionMaskStyle = _ref2.style;
|
|
41933
|
+
return /* @__PURE__ */ React__namespace.createElement("div", {
|
|
41934
|
+
className: classNames("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
|
|
41935
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
|
|
41936
|
+
onClick: maskClosable && open ? onClose : void 0,
|
|
41937
|
+
ref: maskRef
|
|
41938
|
+
});
|
|
41939
|
+
});
|
|
41940
|
+
var motionProps = typeof motion2 === "function" ? motion2(placement) : motion2;
|
|
41941
|
+
var wrapperStyle = {};
|
|
41942
|
+
if (pushed && pushDistance) {
|
|
41943
|
+
switch (placement) {
|
|
41944
|
+
case "top":
|
|
41945
|
+
wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
|
|
41946
|
+
break;
|
|
41947
|
+
case "bottom":
|
|
41948
|
+
wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
|
|
41949
|
+
break;
|
|
41950
|
+
case "left":
|
|
41951
|
+
wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
|
|
41952
|
+
break;
|
|
41953
|
+
default:
|
|
41954
|
+
wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
|
|
41955
|
+
break;
|
|
41956
|
+
}
|
|
41957
|
+
}
|
|
41958
|
+
if (placement === "left" || placement === "right") {
|
|
41959
|
+
wrapperStyle.width = parseWidthHeight(width);
|
|
41960
|
+
} else {
|
|
41961
|
+
wrapperStyle.height = parseWidthHeight(height);
|
|
41962
|
+
}
|
|
41963
|
+
var eventHandlers = {
|
|
41964
|
+
onMouseEnter,
|
|
41965
|
+
onMouseOver,
|
|
41966
|
+
onMouseLeave,
|
|
41967
|
+
onClick,
|
|
41968
|
+
onKeyDown: onKeyDown2,
|
|
41969
|
+
onKeyUp
|
|
41970
|
+
};
|
|
41971
|
+
var panelNode = /* @__PURE__ */ React__namespace.createElement(CSSMotion, _extends$1({
|
|
41972
|
+
key: "panel"
|
|
41973
|
+
}, motionProps, {
|
|
41974
|
+
visible: open,
|
|
41975
|
+
forceRender,
|
|
41976
|
+
onVisibleChanged: function onVisibleChanged(nextVisible) {
|
|
41977
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
|
41978
|
+
},
|
|
41979
|
+
removeOnLeave: false,
|
|
41980
|
+
leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
|
|
41981
|
+
}), function(_ref3, motionRef) {
|
|
41982
|
+
var motionClassName = _ref3.className, motionStyle = _ref3.style;
|
|
41983
|
+
var content2 = /* @__PURE__ */ React__namespace.createElement(DrawerPanel$1, _extends$1({
|
|
41984
|
+
id: id2,
|
|
41985
|
+
containerRef: motionRef,
|
|
41986
|
+
prefixCls,
|
|
41987
|
+
className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
|
|
41988
|
+
style: _objectSpread2(_objectSpread2({}, style2), styles === null || styles === void 0 ? void 0 : styles.content)
|
|
41989
|
+
}, pickAttrs(props, {
|
|
41990
|
+
aria: true
|
|
41991
|
+
}), eventHandlers), children2);
|
|
41992
|
+
return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
|
|
41993
|
+
className: classNames("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
|
|
41994
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
|
|
41995
|
+
}, pickAttrs(props, {
|
|
41996
|
+
data: true
|
|
41997
|
+
})), drawerRender ? drawerRender(content2) : content2);
|
|
41998
|
+
});
|
|
41999
|
+
var containerStyle = _objectSpread2({}, rootStyle);
|
|
42000
|
+
if (zIndex) {
|
|
42001
|
+
containerStyle.zIndex = zIndex;
|
|
42002
|
+
}
|
|
42003
|
+
return /* @__PURE__ */ React__namespace.createElement(DrawerContext.Provider, {
|
|
42004
|
+
value: mergedContext
|
|
42005
|
+
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42006
|
+
className: classNames(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline2)),
|
|
42007
|
+
style: containerStyle,
|
|
42008
|
+
tabIndex: -1,
|
|
42009
|
+
ref: panelRef,
|
|
42010
|
+
onKeyDown: onPanelKeyDown
|
|
42011
|
+
}, maskNode, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42012
|
+
tabIndex: 0,
|
|
42013
|
+
ref: sentinelStartRef,
|
|
42014
|
+
style: sentinelStyle,
|
|
42015
|
+
"aria-hidden": "true",
|
|
42016
|
+
"data-sentinel": "start"
|
|
42017
|
+
}), panelNode, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42018
|
+
tabIndex: 0,
|
|
42019
|
+
ref: sentinelEndRef,
|
|
42020
|
+
style: sentinelStyle,
|
|
42021
|
+
"aria-hidden": "true",
|
|
42022
|
+
"data-sentinel": "end"
|
|
42023
|
+
})));
|
|
42024
|
+
}
|
|
42025
|
+
var RefDrawerPopup = /* @__PURE__ */ React__namespace.forwardRef(DrawerPopup);
|
|
42026
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42027
|
+
RefDrawerPopup.displayName = "DrawerPopup";
|
|
42028
|
+
}
|
|
42029
|
+
var Drawer$1 = function Drawer(props) {
|
|
42030
|
+
var _props$open = props.open, open = _props$open === void 0 ? false : _props$open, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-drawer" : _props$prefixCls, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, _props$keyboard = props.keyboard, keyboard = _props$keyboard === void 0 ? true : _props$keyboard, _props$width = props.width, width = _props$width === void 0 ? 378 : _props$width, _props$mask = props.mask, mask = _props$mask === void 0 ? true : _props$mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getContainer2 = props.getContainer, forceRender = props.forceRender, afterOpenChange = props.afterOpenChange, destroyOnClose = props.destroyOnClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, panelRef = props.panelRef;
|
|
42031
|
+
var _React$useState = React__namespace.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
|
|
42032
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42033
|
+
warnCheck(props);
|
|
42034
|
+
}
|
|
42035
|
+
var _React$useState3 = React__namespace.useState(false), _React$useState4 = _slicedToArray(_React$useState3, 2), mounted = _React$useState4[0], setMounted = _React$useState4[1];
|
|
42036
|
+
useLayoutEffect$1(function() {
|
|
42037
|
+
setMounted(true);
|
|
42038
|
+
}, []);
|
|
42039
|
+
var mergedOpen = mounted ? open : false;
|
|
42040
|
+
var popupRef = React__namespace.useRef();
|
|
42041
|
+
var lastActiveRef = React__namespace.useRef();
|
|
42042
|
+
useLayoutEffect$1(function() {
|
|
42043
|
+
if (mergedOpen) {
|
|
42044
|
+
lastActiveRef.current = document.activeElement;
|
|
42045
|
+
}
|
|
42046
|
+
}, [mergedOpen]);
|
|
42047
|
+
var internalAfterOpenChange = function internalAfterOpenChange2(nextVisible) {
|
|
42048
|
+
var _popupRef$current;
|
|
42049
|
+
setAnimatedVisible(nextVisible);
|
|
42050
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
|
42051
|
+
if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
|
|
42052
|
+
var _lastActiveRef$curren;
|
|
42053
|
+
(_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
|
|
42054
|
+
preventScroll: true
|
|
42055
|
+
});
|
|
42056
|
+
}
|
|
42057
|
+
};
|
|
42058
|
+
var refContext = React__namespace.useMemo(function() {
|
|
42059
|
+
return {
|
|
42060
|
+
panel: panelRef
|
|
42061
|
+
};
|
|
42062
|
+
}, [panelRef]);
|
|
42063
|
+
if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
|
|
42064
|
+
return null;
|
|
42065
|
+
}
|
|
42066
|
+
var eventHandlers = {
|
|
42067
|
+
onMouseEnter,
|
|
42068
|
+
onMouseOver,
|
|
42069
|
+
onMouseLeave,
|
|
42070
|
+
onClick,
|
|
42071
|
+
onKeyDown: onKeyDown2,
|
|
42072
|
+
onKeyUp
|
|
42073
|
+
};
|
|
42074
|
+
var drawerPopupProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
42075
|
+
open: mergedOpen,
|
|
42076
|
+
prefixCls,
|
|
42077
|
+
placement,
|
|
42078
|
+
autoFocus,
|
|
42079
|
+
keyboard,
|
|
42080
|
+
width,
|
|
42081
|
+
mask,
|
|
42082
|
+
maskClosable,
|
|
42083
|
+
inline: getContainer2 === false,
|
|
42084
|
+
afterOpenChange: internalAfterOpenChange,
|
|
42085
|
+
ref: popupRef
|
|
42086
|
+
}, eventHandlers);
|
|
42087
|
+
return /* @__PURE__ */ React__namespace.createElement(RefContext.Provider, {
|
|
42088
|
+
value: refContext
|
|
42089
|
+
}, /* @__PURE__ */ React__namespace.createElement(Portal, {
|
|
42090
|
+
open: mergedOpen || forceRender || animatedVisible,
|
|
42091
|
+
autoDestroy: false,
|
|
42092
|
+
getContainer: getContainer2,
|
|
42093
|
+
autoLock: mask && (mergedOpen || animatedVisible)
|
|
42094
|
+
}, /* @__PURE__ */ React__namespace.createElement(RefDrawerPopup, drawerPopupProps)));
|
|
42095
|
+
};
|
|
42096
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42097
|
+
Drawer$1.displayName = "Drawer";
|
|
42098
|
+
}
|
|
42099
|
+
const DrawerPanel2 = (props) => {
|
|
42100
|
+
var _a, _b;
|
|
42101
|
+
const {
|
|
42102
|
+
prefixCls,
|
|
42103
|
+
title,
|
|
42104
|
+
footer: footer2,
|
|
42105
|
+
extra,
|
|
42106
|
+
loading,
|
|
42107
|
+
onClose,
|
|
42108
|
+
headerStyle,
|
|
42109
|
+
bodyStyle,
|
|
42110
|
+
footerStyle,
|
|
42111
|
+
children: children2,
|
|
42112
|
+
classNames: drawerClassNames,
|
|
42113
|
+
styles: drawerStyles
|
|
42114
|
+
} = props;
|
|
42115
|
+
const drawerContext = useComponentConfig("drawer");
|
|
42116
|
+
const customCloseIconRender = React__namespace.useCallback((icon) => /* @__PURE__ */ React__namespace.createElement("button", {
|
|
42117
|
+
type: "button",
|
|
42118
|
+
onClick: onClose,
|
|
42119
|
+
className: `${prefixCls}-close`
|
|
42120
|
+
}, icon), [onClose]);
|
|
42121
|
+
const [mergedClosable, mergedCloseIcon] = useClosable(pickClosable(props), pickClosable(drawerContext), {
|
|
42122
|
+
closable: true,
|
|
42123
|
+
closeIconRender: customCloseIconRender
|
|
42124
|
+
});
|
|
42125
|
+
const headerNode = React__namespace.useMemo(() => {
|
|
42126
|
+
var _a2, _b2;
|
|
42127
|
+
if (!title && !mergedClosable) {
|
|
42128
|
+
return null;
|
|
42129
|
+
}
|
|
42130
|
+
return /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42131
|
+
style: Object.assign(Object.assign(Object.assign({}, (_a2 = drawerContext.styles) === null || _a2 === void 0 ? void 0 : _a2.header), headerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.header),
|
|
42132
|
+
className: classNames(`${prefixCls}-header`, {
|
|
42133
|
+
[`${prefixCls}-header-close-only`]: mergedClosable && !title && !extra
|
|
42134
|
+
}, (_b2 = drawerContext.classNames) === null || _b2 === void 0 ? void 0 : _b2.header, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.header)
|
|
42135
|
+
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42136
|
+
className: `${prefixCls}-header-title`
|
|
42137
|
+
}, mergedCloseIcon, title && /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42138
|
+
className: `${prefixCls}-title`
|
|
42139
|
+
}, title)), extra && /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42140
|
+
className: `${prefixCls}-extra`
|
|
42141
|
+
}, extra));
|
|
42142
|
+
}, [mergedClosable, mergedCloseIcon, extra, headerStyle, prefixCls, title]);
|
|
42143
|
+
const footerNode = React__namespace.useMemo(() => {
|
|
42144
|
+
var _a2, _b2;
|
|
42145
|
+
if (!footer2) {
|
|
42146
|
+
return null;
|
|
42147
|
+
}
|
|
42148
|
+
const footerClassName = `${prefixCls}-footer`;
|
|
42149
|
+
return /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42150
|
+
className: classNames(footerClassName, (_a2 = drawerContext.classNames) === null || _a2 === void 0 ? void 0 : _a2.footer, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.footer),
|
|
42151
|
+
style: Object.assign(Object.assign(Object.assign({}, (_b2 = drawerContext.styles) === null || _b2 === void 0 ? void 0 : _b2.footer), footerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.footer)
|
|
42152
|
+
}, footer2);
|
|
42153
|
+
}, [footer2, footerStyle, prefixCls]);
|
|
42154
|
+
return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, headerNode, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
42155
|
+
className: classNames(`${prefixCls}-body`, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.body, (_a = drawerContext.classNames) === null || _a === void 0 ? void 0 : _a.body),
|
|
42156
|
+
style: Object.assign(Object.assign(Object.assign({}, (_b = drawerContext.styles) === null || _b === void 0 ? void 0 : _b.body), bodyStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.body)
|
|
42157
|
+
}, loading ? /* @__PURE__ */ React__namespace.createElement(Skeleton$1, {
|
|
42158
|
+
active: true,
|
|
42159
|
+
title: false,
|
|
42160
|
+
paragraph: {
|
|
42161
|
+
rows: 5
|
|
42162
|
+
},
|
|
42163
|
+
className: `${prefixCls}-body-skeleton`
|
|
42164
|
+
}) : children2), footerNode);
|
|
42165
|
+
};
|
|
42166
|
+
const getMoveTranslate = (direction) => {
|
|
42167
|
+
const value2 = "100%";
|
|
42168
|
+
return {
|
|
42169
|
+
left: `translateX(-${value2})`,
|
|
42170
|
+
right: `translateX(${value2})`,
|
|
42171
|
+
top: `translateY(-${value2})`,
|
|
42172
|
+
bottom: `translateY(${value2})`
|
|
42173
|
+
}[direction];
|
|
42174
|
+
};
|
|
42175
|
+
const getEnterLeaveStyle = (startStyle, endStyle) => ({
|
|
42176
|
+
"&-enter, &-appear": Object.assign(Object.assign({}, startStyle), {
|
|
42177
|
+
"&-active": endStyle
|
|
42178
|
+
}),
|
|
42179
|
+
"&-leave": Object.assign(Object.assign({}, endStyle), {
|
|
42180
|
+
"&-active": startStyle
|
|
42181
|
+
})
|
|
42182
|
+
});
|
|
42183
|
+
const getFadeStyle = (from2, duration) => Object.assign({
|
|
42184
|
+
"&-enter, &-appear, &-leave": {
|
|
42185
|
+
"&-start": {
|
|
42186
|
+
transition: "none"
|
|
42187
|
+
},
|
|
42188
|
+
"&-active": {
|
|
42189
|
+
transition: `all ${duration}`
|
|
42190
|
+
}
|
|
42191
|
+
}
|
|
42192
|
+
}, getEnterLeaveStyle({
|
|
42193
|
+
opacity: from2
|
|
42194
|
+
}, {
|
|
42195
|
+
opacity: 1
|
|
42196
|
+
}));
|
|
42197
|
+
const getPanelMotionStyles = (direction, duration) => [getFadeStyle(0.7, duration), getEnterLeaveStyle({
|
|
42198
|
+
transform: getMoveTranslate(direction)
|
|
42199
|
+
}, {
|
|
42200
|
+
transform: "none"
|
|
42201
|
+
})];
|
|
42202
|
+
const genMotionStyle = (token2) => {
|
|
42203
|
+
const {
|
|
42204
|
+
componentCls,
|
|
42205
|
+
motionDurationSlow
|
|
42206
|
+
} = token2;
|
|
42207
|
+
return {
|
|
42208
|
+
[componentCls]: {
|
|
42209
|
+
// ======================== Mask ========================
|
|
42210
|
+
[`${componentCls}-mask-motion`]: getFadeStyle(0, motionDurationSlow),
|
|
42211
|
+
// ======================= Panel ========================
|
|
42212
|
+
[`${componentCls}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((obj, direction) => Object.assign(Object.assign({}, obj), {
|
|
42213
|
+
[`&-${direction}`]: getPanelMotionStyles(direction, motionDurationSlow)
|
|
42214
|
+
}), {})
|
|
42215
|
+
}
|
|
42216
|
+
};
|
|
42217
|
+
};
|
|
42218
|
+
const genDrawerStyle = (token2) => {
|
|
42219
|
+
const {
|
|
42220
|
+
borderRadiusSM,
|
|
42221
|
+
componentCls,
|
|
42222
|
+
zIndexPopup,
|
|
42223
|
+
colorBgMask,
|
|
42224
|
+
colorBgElevated,
|
|
42225
|
+
motionDurationSlow,
|
|
42226
|
+
motionDurationMid,
|
|
42227
|
+
paddingXS,
|
|
42228
|
+
padding,
|
|
42229
|
+
paddingLG,
|
|
42230
|
+
fontSizeLG,
|
|
42231
|
+
lineHeightLG,
|
|
42232
|
+
lineWidth,
|
|
42233
|
+
lineType,
|
|
42234
|
+
colorSplit,
|
|
42235
|
+
marginXS,
|
|
42236
|
+
colorIcon,
|
|
42237
|
+
colorIconHover,
|
|
42238
|
+
colorBgTextHover,
|
|
42239
|
+
colorBgTextActive,
|
|
42240
|
+
colorText,
|
|
42241
|
+
fontWeightStrong,
|
|
42242
|
+
footerPaddingBlock,
|
|
42243
|
+
footerPaddingInline,
|
|
42244
|
+
calc
|
|
42245
|
+
} = token2;
|
|
42246
|
+
const wrapperCls = `${componentCls}-content-wrapper`;
|
|
42247
|
+
return {
|
|
42248
|
+
[componentCls]: {
|
|
42249
|
+
position: "fixed",
|
|
42250
|
+
inset: 0,
|
|
42251
|
+
zIndex: zIndexPopup,
|
|
42252
|
+
pointerEvents: "none",
|
|
42253
|
+
color: colorText,
|
|
42254
|
+
"&-pure": {
|
|
42255
|
+
position: "relative",
|
|
42256
|
+
background: colorBgElevated,
|
|
42257
|
+
display: "flex",
|
|
42258
|
+
flexDirection: "column",
|
|
42259
|
+
[`&${componentCls}-left`]: {
|
|
42260
|
+
boxShadow: token2.boxShadowDrawerLeft
|
|
42261
|
+
},
|
|
42262
|
+
[`&${componentCls}-right`]: {
|
|
42263
|
+
boxShadow: token2.boxShadowDrawerRight
|
|
42264
|
+
},
|
|
42265
|
+
[`&${componentCls}-top`]: {
|
|
42266
|
+
boxShadow: token2.boxShadowDrawerUp
|
|
42267
|
+
},
|
|
42268
|
+
[`&${componentCls}-bottom`]: {
|
|
42269
|
+
boxShadow: token2.boxShadowDrawerDown
|
|
42270
|
+
}
|
|
42271
|
+
},
|
|
42272
|
+
"&-inline": {
|
|
42273
|
+
position: "absolute"
|
|
42274
|
+
},
|
|
42275
|
+
// ====================== Mask ======================
|
|
42276
|
+
[`${componentCls}-mask`]: {
|
|
42277
|
+
position: "absolute",
|
|
42278
|
+
inset: 0,
|
|
42279
|
+
zIndex: zIndexPopup,
|
|
42280
|
+
background: colorBgMask,
|
|
42281
|
+
pointerEvents: "auto"
|
|
42282
|
+
},
|
|
42283
|
+
// ==================== Content =====================
|
|
42284
|
+
[wrapperCls]: {
|
|
42285
|
+
position: "absolute",
|
|
42286
|
+
zIndex: zIndexPopup,
|
|
42287
|
+
maxWidth: "100vw",
|
|
42288
|
+
transition: `all ${motionDurationSlow}`,
|
|
42289
|
+
"&-hidden": {
|
|
42290
|
+
display: "none"
|
|
42291
|
+
}
|
|
42292
|
+
},
|
|
42293
|
+
// Placement
|
|
42294
|
+
[`&-left > ${wrapperCls}`]: {
|
|
42295
|
+
top: 0,
|
|
42296
|
+
bottom: 0,
|
|
42297
|
+
left: {
|
|
42298
|
+
_skip_check_: true,
|
|
42299
|
+
value: 0
|
|
42300
|
+
},
|
|
42301
|
+
boxShadow: token2.boxShadowDrawerLeft
|
|
42302
|
+
},
|
|
42303
|
+
[`&-right > ${wrapperCls}`]: {
|
|
42304
|
+
top: 0,
|
|
42305
|
+
right: {
|
|
42306
|
+
_skip_check_: true,
|
|
42307
|
+
value: 0
|
|
42308
|
+
},
|
|
42309
|
+
bottom: 0,
|
|
42310
|
+
boxShadow: token2.boxShadowDrawerRight
|
|
42311
|
+
},
|
|
42312
|
+
[`&-top > ${wrapperCls}`]: {
|
|
42313
|
+
top: 0,
|
|
42314
|
+
insetInline: 0,
|
|
42315
|
+
boxShadow: token2.boxShadowDrawerUp
|
|
42316
|
+
},
|
|
42317
|
+
[`&-bottom > ${wrapperCls}`]: {
|
|
42318
|
+
bottom: 0,
|
|
42319
|
+
insetInline: 0,
|
|
42320
|
+
boxShadow: token2.boxShadowDrawerDown
|
|
42321
|
+
},
|
|
42322
|
+
[`${componentCls}-content`]: {
|
|
42323
|
+
display: "flex",
|
|
42324
|
+
flexDirection: "column",
|
|
42325
|
+
width: "100%",
|
|
42326
|
+
height: "100%",
|
|
42327
|
+
overflow: "auto",
|
|
42328
|
+
background: colorBgElevated,
|
|
42329
|
+
pointerEvents: "auto"
|
|
42330
|
+
},
|
|
42331
|
+
// Header
|
|
42332
|
+
[`${componentCls}-header`]: {
|
|
42333
|
+
display: "flex",
|
|
42334
|
+
flex: 0,
|
|
42335
|
+
alignItems: "center",
|
|
42336
|
+
padding: `${unit$2(padding)} ${unit$2(paddingLG)}`,
|
|
42337
|
+
fontSize: fontSizeLG,
|
|
42338
|
+
lineHeight: lineHeightLG,
|
|
42339
|
+
borderBottom: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`,
|
|
42340
|
+
"&-title": {
|
|
42341
|
+
display: "flex",
|
|
42342
|
+
flex: 1,
|
|
42343
|
+
alignItems: "center",
|
|
42344
|
+
minWidth: 0,
|
|
42345
|
+
minHeight: 0
|
|
42346
|
+
}
|
|
42347
|
+
},
|
|
42348
|
+
[`${componentCls}-extra`]: {
|
|
42349
|
+
flex: "none"
|
|
42350
|
+
},
|
|
42351
|
+
[`${componentCls}-close`]: Object.assign({
|
|
42352
|
+
display: "inline-flex",
|
|
42353
|
+
width: calc(fontSizeLG).add(paddingXS).equal(),
|
|
42354
|
+
height: calc(fontSizeLG).add(paddingXS).equal(),
|
|
42355
|
+
borderRadius: borderRadiusSM,
|
|
42356
|
+
justifyContent: "center",
|
|
42357
|
+
alignItems: "center",
|
|
42358
|
+
marginInlineEnd: marginXS,
|
|
42359
|
+
color: colorIcon,
|
|
42360
|
+
fontWeight: fontWeightStrong,
|
|
42361
|
+
fontSize: fontSizeLG,
|
|
42362
|
+
fontStyle: "normal",
|
|
42363
|
+
lineHeight: 1,
|
|
42364
|
+
textAlign: "center",
|
|
42365
|
+
textTransform: "none",
|
|
42366
|
+
textDecoration: "none",
|
|
42367
|
+
background: "transparent",
|
|
42368
|
+
border: 0,
|
|
42369
|
+
cursor: "pointer",
|
|
42370
|
+
transition: `all ${motionDurationMid}`,
|
|
42371
|
+
textRendering: "auto",
|
|
42372
|
+
"&:hover": {
|
|
42373
|
+
color: colorIconHover,
|
|
42374
|
+
backgroundColor: colorBgTextHover,
|
|
42375
|
+
textDecoration: "none"
|
|
42376
|
+
},
|
|
42377
|
+
"&:active": {
|
|
42378
|
+
backgroundColor: colorBgTextActive
|
|
42379
|
+
}
|
|
42380
|
+
}, genFocusStyle(token2)),
|
|
42381
|
+
[`${componentCls}-title`]: {
|
|
42382
|
+
flex: 1,
|
|
42383
|
+
margin: 0,
|
|
42384
|
+
fontWeight: token2.fontWeightStrong,
|
|
42385
|
+
fontSize: fontSizeLG,
|
|
42386
|
+
lineHeight: lineHeightLG
|
|
42387
|
+
},
|
|
42388
|
+
// Body
|
|
42389
|
+
[`${componentCls}-body`]: {
|
|
42390
|
+
flex: 1,
|
|
42391
|
+
minWidth: 0,
|
|
42392
|
+
minHeight: 0,
|
|
42393
|
+
padding: paddingLG,
|
|
42394
|
+
overflow: "auto",
|
|
42395
|
+
[`${componentCls}-body-skeleton`]: {
|
|
42396
|
+
width: "100%",
|
|
42397
|
+
height: "100%",
|
|
42398
|
+
display: "flex",
|
|
42399
|
+
justifyContent: "center"
|
|
42400
|
+
}
|
|
42401
|
+
},
|
|
42402
|
+
// Footer
|
|
42403
|
+
[`${componentCls}-footer`]: {
|
|
42404
|
+
flexShrink: 0,
|
|
42405
|
+
padding: `${unit$2(footerPaddingBlock)} ${unit$2(footerPaddingInline)}`,
|
|
42406
|
+
borderTop: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`
|
|
42407
|
+
},
|
|
42408
|
+
// ====================== RTL =======================
|
|
42409
|
+
"&-rtl": {
|
|
42410
|
+
direction: "rtl"
|
|
42411
|
+
}
|
|
42412
|
+
}
|
|
42413
|
+
};
|
|
42414
|
+
};
|
|
42415
|
+
const prepareComponentToken$a = (token2) => ({
|
|
42416
|
+
zIndexPopup: token2.zIndexPopupBase,
|
|
42417
|
+
footerPaddingBlock: token2.paddingXS,
|
|
42418
|
+
footerPaddingInline: token2.padding
|
|
42419
|
+
});
|
|
42420
|
+
const useStyle$c = genStyleHooks("Drawer", (token2) => {
|
|
42421
|
+
const drawerToken = merge$1(token2, {});
|
|
42422
|
+
return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
|
|
42423
|
+
}, prepareComponentToken$a);
|
|
42424
|
+
var __rest$q = function(s, e3) {
|
|
42425
|
+
var t2 = {};
|
|
42426
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
42427
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42428
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
42429
|
+
}
|
|
42430
|
+
return t2;
|
|
42431
|
+
};
|
|
42432
|
+
const defaultPushState = {
|
|
42433
|
+
distance: 180
|
|
42434
|
+
};
|
|
42435
|
+
const Drawer2 = (props) => {
|
|
42436
|
+
var _a;
|
|
42437
|
+
const {
|
|
42438
|
+
rootClassName,
|
|
42439
|
+
width,
|
|
42440
|
+
height,
|
|
42441
|
+
size = "default",
|
|
42442
|
+
mask = true,
|
|
42443
|
+
push: push2 = defaultPushState,
|
|
42444
|
+
open,
|
|
42445
|
+
afterOpenChange,
|
|
42446
|
+
onClose,
|
|
42447
|
+
prefixCls: customizePrefixCls,
|
|
42448
|
+
getContainer: customizeGetContainer,
|
|
42449
|
+
panelRef = null,
|
|
42450
|
+
style: style2,
|
|
42451
|
+
className,
|
|
42452
|
+
// Deprecated
|
|
42453
|
+
visible,
|
|
42454
|
+
afterVisibleChange,
|
|
42455
|
+
maskStyle,
|
|
42456
|
+
drawerStyle,
|
|
42457
|
+
contentWrapperStyle,
|
|
42458
|
+
destroyOnClose,
|
|
42459
|
+
destroyOnHidden
|
|
42460
|
+
} = props, rest = __rest$q(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
|
|
42461
|
+
const {
|
|
42462
|
+
getPopupContainer,
|
|
42463
|
+
getPrefixCls,
|
|
42464
|
+
direction,
|
|
42465
|
+
className: contextClassName,
|
|
42466
|
+
style: contextStyle,
|
|
42467
|
+
classNames: contextClassNames,
|
|
42468
|
+
styles: contextStyles
|
|
42469
|
+
} = useComponentConfig("drawer");
|
|
42470
|
+
const prefixCls = getPrefixCls("drawer", customizePrefixCls);
|
|
42471
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
|
|
42472
|
+
const getContainer2 = (
|
|
42473
|
+
// 有可能为 false,所以不能直接判断
|
|
42474
|
+
customizeGetContainer === void 0 && getPopupContainer ? () => getPopupContainer(document.body) : customizeGetContainer
|
|
42475
|
+
);
|
|
42476
|
+
const drawerClassName = classNames({
|
|
42477
|
+
"no-mask": !mask,
|
|
42478
|
+
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
42479
|
+
}, rootClassName, hashId, cssVarCls);
|
|
42480
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42481
|
+
const warning3 = devUseWarning("Drawer");
|
|
42482
|
+
[["visible", "open"], ["afterVisibleChange", "afterOpenChange"], ["headerStyle", "styles.header"], ["bodyStyle", "styles.body"], ["footerStyle", "styles.footer"], ["contentWrapperStyle", "styles.wrapper"], ["maskStyle", "styles.mask"], ["drawerStyle", "styles.content"], ["destroyInactivePanel", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
|
|
42483
|
+
warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
42484
|
+
});
|
|
42485
|
+
if (getContainer2 !== void 0 && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.position) === "absolute") {
|
|
42486
|
+
process.env.NODE_ENV !== "production" ? warning3(false, "breaking", "`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.") : void 0;
|
|
42487
|
+
}
|
|
42488
|
+
}
|
|
42489
|
+
const mergedWidth = React__namespace.useMemo(() => width !== null && width !== void 0 ? width : size === "large" ? 736 : 378, [width, size]);
|
|
42490
|
+
const mergedHeight = React__namespace.useMemo(() => height !== null && height !== void 0 ? height : size === "large" ? 736 : 378, [height, size]);
|
|
42491
|
+
const maskMotion = {
|
|
42492
|
+
motionName: getTransitionName(prefixCls, "mask-motion"),
|
|
42493
|
+
motionAppear: true,
|
|
42494
|
+
motionEnter: true,
|
|
42495
|
+
motionLeave: true,
|
|
42496
|
+
motionDeadline: 500
|
|
42497
|
+
};
|
|
42498
|
+
const panelMotion = (motionPlacement) => ({
|
|
42499
|
+
motionName: getTransitionName(prefixCls, `panel-motion-${motionPlacement}`),
|
|
42500
|
+
motionAppear: true,
|
|
42501
|
+
motionEnter: true,
|
|
42502
|
+
motionLeave: true,
|
|
42503
|
+
motionDeadline: 500
|
|
42504
|
+
});
|
|
42505
|
+
const innerPanelRef = usePanelRef();
|
|
42506
|
+
const mergedPanelRef = composeRef(panelRef, innerPanelRef);
|
|
42507
|
+
const [zIndex, contextZIndex] = useZIndex("Drawer", rest.zIndex);
|
|
42508
|
+
const {
|
|
42509
|
+
classNames: propClassNames = {},
|
|
42510
|
+
styles: propStyles = {}
|
|
42511
|
+
} = rest;
|
|
42512
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(ContextIsolator, {
|
|
42513
|
+
form: true,
|
|
42514
|
+
space: true
|
|
42515
|
+
}, /* @__PURE__ */ React__namespace.createElement(zIndexContext.Provider, {
|
|
42516
|
+
value: contextZIndex
|
|
42517
|
+
}, /* @__PURE__ */ React__namespace.createElement(Drawer$1, Object.assign({
|
|
42518
|
+
prefixCls,
|
|
42519
|
+
onClose,
|
|
42520
|
+
maskMotion,
|
|
42521
|
+
motion: panelMotion
|
|
42522
|
+
}, rest, {
|
|
42523
|
+
classNames: {
|
|
42524
|
+
mask: classNames(propClassNames.mask, contextClassNames.mask),
|
|
42525
|
+
content: classNames(propClassNames.content, contextClassNames.content),
|
|
42526
|
+
wrapper: classNames(propClassNames.wrapper, contextClassNames.wrapper)
|
|
42527
|
+
},
|
|
42528
|
+
styles: {
|
|
42529
|
+
mask: Object.assign(Object.assign(Object.assign({}, propStyles.mask), maskStyle), contextStyles.mask),
|
|
42530
|
+
content: Object.assign(Object.assign(Object.assign({}, propStyles.content), drawerStyle), contextStyles.content),
|
|
42531
|
+
wrapper: Object.assign(Object.assign(Object.assign({}, propStyles.wrapper), contentWrapperStyle), contextStyles.wrapper)
|
|
42532
|
+
},
|
|
42533
|
+
open: open !== null && open !== void 0 ? open : visible,
|
|
42534
|
+
mask,
|
|
42535
|
+
push: push2,
|
|
42536
|
+
width: mergedWidth,
|
|
42537
|
+
height: mergedHeight,
|
|
42538
|
+
style: Object.assign(Object.assign({}, contextStyle), style2),
|
|
42539
|
+
className: classNames(contextClassName, className),
|
|
42540
|
+
rootClassName: drawerClassName,
|
|
42541
|
+
getContainer: getContainer2,
|
|
42542
|
+
afterOpenChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
|
|
42543
|
+
panelRef: mergedPanelRef,
|
|
42544
|
+
zIndex,
|
|
42545
|
+
// TODO: In the future, destroyOnClose in rc-drawer needs to be upgrade to destroyOnHidden
|
|
42546
|
+
destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
|
|
42547
|
+
}), /* @__PURE__ */ React__namespace.createElement(DrawerPanel2, Object.assign({
|
|
42548
|
+
prefixCls
|
|
42549
|
+
}, rest, {
|
|
42550
|
+
onClose
|
|
42551
|
+
}))))));
|
|
42552
|
+
};
|
|
42553
|
+
const PurePanel$1 = (props) => {
|
|
42554
|
+
const {
|
|
42555
|
+
prefixCls: customizePrefixCls,
|
|
42556
|
+
style: style2,
|
|
42557
|
+
className,
|
|
42558
|
+
placement = "right"
|
|
42559
|
+
} = props, restProps = __rest$q(props, ["prefixCls", "style", "className", "placement"]);
|
|
42560
|
+
const {
|
|
42561
|
+
getPrefixCls
|
|
42562
|
+
} = React__namespace.useContext(ConfigContext);
|
|
42563
|
+
const prefixCls = getPrefixCls("drawer", customizePrefixCls);
|
|
42564
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
|
|
42565
|
+
const cls = classNames(prefixCls, `${prefixCls}-pure`, `${prefixCls}-${placement}`, hashId, cssVarCls, className);
|
|
42566
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement("div", {
|
|
42567
|
+
className: cls,
|
|
42568
|
+
style: style2
|
|
42569
|
+
}, /* @__PURE__ */ React__namespace.createElement(DrawerPanel2, Object.assign({
|
|
42570
|
+
prefixCls
|
|
42571
|
+
}, restProps))));
|
|
42572
|
+
};
|
|
42573
|
+
Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
|
|
42574
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42575
|
+
Drawer2.displayName = "Drawer";
|
|
42576
|
+
}
|
|
41698
42577
|
function isPresetSize(size) {
|
|
41699
42578
|
return ["small", "middle", "large"].includes(size);
|
|
41700
42579
|
}
|
|
@@ -41771,7 +42650,7 @@ const InternalSpace = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
41771
42650
|
});
|
|
41772
42651
|
const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
|
|
41773
42652
|
const prefixCls = getPrefixCls("space", customizePrefixCls);
|
|
41774
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
42653
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
|
|
41775
42654
|
const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
|
|
41776
42655
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
41777
42656
|
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
|
@@ -43535,7 +44414,7 @@ const Group = (props) => {
|
|
|
43535
44414
|
} = props;
|
|
43536
44415
|
const prefixCls = getPrefixCls("input-group", customizePrefixCls);
|
|
43537
44416
|
const inputPrefixCls = getPrefixCls("input");
|
|
43538
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
44417
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(inputPrefixCls);
|
|
43539
44418
|
const cls = classNames(prefixCls, cssVarCls, {
|
|
43540
44419
|
[`${prefixCls}-lg`]: props.size === "large",
|
|
43541
44420
|
[`${prefixCls}-sm`]: props.size === "small",
|
|
@@ -46672,7 +47551,7 @@ const PurePanel = (props) => {
|
|
|
46672
47551
|
} = React__namespace.useContext(ConfigContext);
|
|
46673
47552
|
const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
|
|
46674
47553
|
const [wrapCSSVar] = useStyle$6(prefixCls);
|
|
46675
|
-
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$
|
|
47554
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$4, {
|
|
46676
47555
|
placement,
|
|
46677
47556
|
className: classNames(prefixCls, className),
|
|
46678
47557
|
style: style2,
|
|
@@ -60719,6 +61598,9 @@ function FaCircleCheck(props) {
|
|
|
60719
61598
|
function HiArrowCircleRight(props) {
|
|
60720
61599
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707l-3-3a1 1 0 00-1.414 1.414L10.586 9H7a1 1 0 100 2h3.586l-1.293 1.293a1 1 0 101.414 1.414l3-3a1 1 0 000-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60721
61600
|
}
|
|
61601
|
+
function HiArrowLeft(props) {
|
|
61602
|
+
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
61603
|
+
}
|
|
60722
61604
|
function HiCheckCircle(props) {
|
|
60723
61605
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60724
61606
|
}
|
|
@@ -60746,6 +61628,9 @@ function HiSearch(props) {
|
|
|
60746
61628
|
function HiXCircle(props) {
|
|
60747
61629
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60748
61630
|
}
|
|
61631
|
+
function HiX(props) {
|
|
61632
|
+
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
61633
|
+
}
|
|
60749
61634
|
function HiOutlineAdjustments(props) {
|
|
60750
61635
|
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" }, "child": [] }] })(props);
|
|
60751
61636
|
}
|
|
@@ -84863,6 +85748,243 @@ const Shapes = ({ variant = "triangle", fill }) => {
|
|
|
84863
85748
|
}
|
|
84864
85749
|
return /* @__PURE__ */ jsxRuntime.jsx(Triangle, { fill, dataTestId: "shape-triangle" });
|
|
84865
85750
|
};
|
|
85751
|
+
const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 }, $type = "float", placement = "right") => {
|
|
85752
|
+
const isFloat = $type === "float";
|
|
85753
|
+
const offset2 = isFloat ? 24 : 0;
|
|
85754
|
+
const edge = placement === "right" ? "right" : "left";
|
|
85755
|
+
return `
|
|
85756
|
+
.ant-drawer-content-wrapper {
|
|
85757
|
+
box-shadow: none !important;
|
|
85758
|
+
}
|
|
85759
|
+
|
|
85760
|
+
.ant-drawer-content {
|
|
85761
|
+
position: relative !important;
|
|
85762
|
+
box-shadow: none !important;
|
|
85763
|
+
${edge}: ${offset2}px !important;
|
|
85764
|
+
top: ${offset2}px !important;
|
|
85765
|
+
height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
|
|
85766
|
+
border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
|
|
85767
|
+
}
|
|
85768
|
+
|
|
85769
|
+
.ant-drawer-footer {
|
|
85770
|
+
padding: 0px !important;
|
|
85771
|
+
}
|
|
85772
|
+
|
|
85773
|
+
.ant-drawer-body {
|
|
85774
|
+
padding: 0px;
|
|
85775
|
+
overflow: hidden;
|
|
85776
|
+
display: flex;
|
|
85777
|
+
flex-direction: column;
|
|
85778
|
+
height: 100%;
|
|
85779
|
+
}
|
|
85780
|
+
`;
|
|
85781
|
+
};
|
|
85782
|
+
const StyledSidePanel = styled(Drawer2).attrs({
|
|
85783
|
+
destroyOnHidden: true,
|
|
85784
|
+
push: false
|
|
85785
|
+
})`
|
|
85786
|
+
${({ theme, $type = "float", placement = "right" }) => {
|
|
85787
|
+
if (!theme) return "";
|
|
85788
|
+
return getGenesisDrawerClass(theme, $type, placement);
|
|
85789
|
+
}}
|
|
85790
|
+
`;
|
|
85791
|
+
const ScrollableContent = styled.div`
|
|
85792
|
+
overflow-y: auto;
|
|
85793
|
+
flex: 1;
|
|
85794
|
+
display: flex;
|
|
85795
|
+
flex-direction: column;
|
|
85796
|
+
`;
|
|
85797
|
+
const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
|
|
85798
|
+
position: sticky;
|
|
85799
|
+
top: 0;
|
|
85800
|
+
z-index: 10;
|
|
85801
|
+
background-color: ${colors2?.surface?.active?.backgroundColor || "#FFFFFF"};
|
|
85802
|
+
`;
|
|
85803
|
+
const StickyHeader = styled(Tile)`
|
|
85804
|
+
${({ theme }) => {
|
|
85805
|
+
if (!theme) return "";
|
|
85806
|
+
return getGenesisStickyHeaderClass(theme);
|
|
85807
|
+
}}
|
|
85808
|
+
`;
|
|
85809
|
+
const SidePanel = ({
|
|
85810
|
+
type: type4 = "float",
|
|
85811
|
+
open,
|
|
85812
|
+
closable = true,
|
|
85813
|
+
children: children2,
|
|
85814
|
+
placement = "right",
|
|
85815
|
+
header,
|
|
85816
|
+
footer: footer2
|
|
85817
|
+
}) => {
|
|
85818
|
+
const theme = styled.useTheme();
|
|
85819
|
+
const {
|
|
85820
|
+
avatar,
|
|
85821
|
+
title,
|
|
85822
|
+
description,
|
|
85823
|
+
showBackBtn = false,
|
|
85824
|
+
actions: headerActions = [],
|
|
85825
|
+
onClose,
|
|
85826
|
+
onBackBtnClick = () => {
|
|
85827
|
+
alert("Back button event not defined");
|
|
85828
|
+
}
|
|
85829
|
+
} = header;
|
|
85830
|
+
const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
|
|
85831
|
+
const spacing = {
|
|
85832
|
+
Size1: theme?.sizing?.Size1 || 4,
|
|
85833
|
+
Size3: theme?.sizing?.Size3 || 12,
|
|
85834
|
+
Size4: theme?.sizing?.Size4 || 16,
|
|
85835
|
+
Size6: theme?.sizing?.Size6 || 24
|
|
85836
|
+
};
|
|
85837
|
+
const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
|
|
85838
|
+
const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
|
|
85839
|
+
const handleClose = () => {
|
|
85840
|
+
onClose();
|
|
85841
|
+
};
|
|
85842
|
+
const BackBtn = () => {
|
|
85843
|
+
return showBackBtn ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
85844
|
+
UtilityButton,
|
|
85845
|
+
{
|
|
85846
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(HiArrowLeft, {}),
|
|
85847
|
+
onClick: onBackBtnClick
|
|
85848
|
+
}
|
|
85849
|
+
) : null;
|
|
85850
|
+
};
|
|
85851
|
+
const HeaderActions = () => {
|
|
85852
|
+
const showMenuBtn = headerActions.length > 1;
|
|
85853
|
+
const menuItems = headerActions.slice(1);
|
|
85854
|
+
return headerActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size4}px` }, children: [
|
|
85855
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
85856
|
+
Button$1,
|
|
85857
|
+
{
|
|
85858
|
+
...headerActions[0].btnProps,
|
|
85859
|
+
onClick: headerActions[0].onClick,
|
|
85860
|
+
children: headerActions[0].label
|
|
85861
|
+
}
|
|
85862
|
+
),
|
|
85863
|
+
showMenuBtn && /* @__PURE__ */ jsxRuntime.jsx(
|
|
85864
|
+
OverflowMenu,
|
|
85865
|
+
{
|
|
85866
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiDotsHorizontal, {}) }),
|
|
85867
|
+
placement: "bottom",
|
|
85868
|
+
alignment: "left",
|
|
85869
|
+
children: menuItems.map((item, index2) => /* @__PURE__ */ React.createElement(
|
|
85870
|
+
OverflowMenuItem,
|
|
85871
|
+
{
|
|
85872
|
+
...item.menuItemProps,
|
|
85873
|
+
key: index2,
|
|
85874
|
+
onClick: item.onClick
|
|
85875
|
+
},
|
|
85876
|
+
item.label
|
|
85877
|
+
))
|
|
85878
|
+
}
|
|
85879
|
+
)
|
|
85880
|
+
] }) : null;
|
|
85881
|
+
};
|
|
85882
|
+
const SidePanelHeader = () => {
|
|
85883
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
85884
|
+
Tile,
|
|
85885
|
+
{
|
|
85886
|
+
isHorizontal: true,
|
|
85887
|
+
style: {
|
|
85888
|
+
overflowY: "auto",
|
|
85889
|
+
alignItems: "center",
|
|
85890
|
+
justifyContent: "space-between",
|
|
85891
|
+
padding: `${spacing.Size6}px`,
|
|
85892
|
+
borderBottom: `1px solid ${borderColor}`
|
|
85893
|
+
},
|
|
85894
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
85895
|
+
Tile,
|
|
85896
|
+
{
|
|
85897
|
+
isHorizontal: true,
|
|
85898
|
+
style: {
|
|
85899
|
+
alignItems: "flexStart",
|
|
85900
|
+
gap: `${spacing.Size4}px`,
|
|
85901
|
+
flex: 1
|
|
85902
|
+
},
|
|
85903
|
+
children: [
|
|
85904
|
+
/* @__PURE__ */ jsxRuntime.jsx(BackBtn, {}),
|
|
85905
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1 }, children: [
|
|
85906
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
85907
|
+
Tile,
|
|
85908
|
+
{
|
|
85909
|
+
isHorizontal: true,
|
|
85910
|
+
style: {
|
|
85911
|
+
gap: `${spacing.Size3}px`,
|
|
85912
|
+
alignItems: "center",
|
|
85913
|
+
height: "40px"
|
|
85914
|
+
},
|
|
85915
|
+
children: [
|
|
85916
|
+
avatar && /* @__PURE__ */ jsxRuntime.jsx(Avatar, { ...avatar, size: 32 }),
|
|
85917
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "24px", fontWeight: 400, color: textColor, children: title })
|
|
85918
|
+
]
|
|
85919
|
+
}
|
|
85920
|
+
),
|
|
85921
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description }),
|
|
85922
|
+
/* @__PURE__ */ jsxRuntime.jsx(HeaderActions, {})
|
|
85923
|
+
] }),
|
|
85924
|
+
/* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiX, {}), onClick: handleClose })
|
|
85925
|
+
]
|
|
85926
|
+
}
|
|
85927
|
+
)
|
|
85928
|
+
}
|
|
85929
|
+
);
|
|
85930
|
+
};
|
|
85931
|
+
const SidePanelFooter = () => {
|
|
85932
|
+
const showMenuBtn = footerActions.length > 1;
|
|
85933
|
+
const menuItems = footerActions.slice(1);
|
|
85934
|
+
return showFooter && footerActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
85935
|
+
Tile,
|
|
85936
|
+
{
|
|
85937
|
+
isHorizontal: true,
|
|
85938
|
+
style: { padding: `${spacing.Size6}px`, gap: `${spacing.Size4}px` },
|
|
85939
|
+
children: [
|
|
85940
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
85941
|
+
Button$1,
|
|
85942
|
+
{
|
|
85943
|
+
...footerActions[0].btnProps,
|
|
85944
|
+
onClick: footerActions[0].onClick,
|
|
85945
|
+
style: { flex: 1, ...footerActions[0].btnProps?.style },
|
|
85946
|
+
children: footerActions[0].label
|
|
85947
|
+
}
|
|
85948
|
+
),
|
|
85949
|
+
showMenuBtn && /* @__PURE__ */ jsxRuntime.jsx(
|
|
85950
|
+
OverflowMenu,
|
|
85951
|
+
{
|
|
85952
|
+
trigger: /* @__PURE__ */ jsxRuntime.jsx(UtilityButton, { icon: /* @__PURE__ */ jsxRuntime.jsx(HiDotsHorizontal, {}) }),
|
|
85953
|
+
placement: "top",
|
|
85954
|
+
alignment: "right",
|
|
85955
|
+
children: menuItems.map((item, index2) => /* @__PURE__ */ React.createElement(
|
|
85956
|
+
OverflowMenuItem,
|
|
85957
|
+
{
|
|
85958
|
+
...item.menuItemProps,
|
|
85959
|
+
key: index2,
|
|
85960
|
+
onClick: item.onClick
|
|
85961
|
+
},
|
|
85962
|
+
item.label
|
|
85963
|
+
))
|
|
85964
|
+
}
|
|
85965
|
+
)
|
|
85966
|
+
]
|
|
85967
|
+
}
|
|
85968
|
+
) : null;
|
|
85969
|
+
};
|
|
85970
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
85971
|
+
StyledSidePanel,
|
|
85972
|
+
{
|
|
85973
|
+
closable: false,
|
|
85974
|
+
maskClosable: closable,
|
|
85975
|
+
onClose,
|
|
85976
|
+
width: 520,
|
|
85977
|
+
footer: /* @__PURE__ */ jsxRuntime.jsx(SidePanelFooter, {}),
|
|
85978
|
+
open,
|
|
85979
|
+
$type: type4,
|
|
85980
|
+
placement,
|
|
85981
|
+
children: [
|
|
85982
|
+
/* @__PURE__ */ jsxRuntime.jsx(StickyHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(SidePanelHeader, {}) }),
|
|
85983
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollableContent, { children: children2 })
|
|
85984
|
+
]
|
|
85985
|
+
}
|
|
85986
|
+
);
|
|
85987
|
+
};
|
|
84866
85988
|
const getGenesisClass$3 = ({ colors: colors2, borderRadius: borderRadius2 }) => `
|
|
84867
85989
|
&.ant-switch {
|
|
84868
85990
|
background-color: ${colors2.primary.active};
|
|
@@ -87590,11 +88712,11 @@ const mockColumns = [
|
|
|
87590
88712
|
render: (appointment, record) => {
|
|
87591
88713
|
const { address } = appointment;
|
|
87592
88714
|
const textColor = record.isSelected ? "white" : "#6c6c6c";
|
|
87593
|
-
return React.createElement(
|
|
87594
|
-
|
|
87595
|
-
color: `${textColor}
|
|
87596
|
-
|
|
87597
|
-
|
|
88715
|
+
return React.createElement(
|
|
88716
|
+
Typography,
|
|
88717
|
+
{ variant: "body2", color: `${textColor}` },
|
|
88718
|
+
typeof address === "string" ? address : JSON.stringify(address)
|
|
88719
|
+
);
|
|
87598
88720
|
}
|
|
87599
88721
|
},
|
|
87600
88722
|
{
|
|
@@ -88272,6 +89394,7 @@ exports.Row = Row;
|
|
|
88272
89394
|
exports.SegmentedControls = SegmentedControls;
|
|
88273
89395
|
exports.Select = Select;
|
|
88274
89396
|
exports.Shapes = Shapes;
|
|
89397
|
+
exports.SidePanel = SidePanel;
|
|
88275
89398
|
exports.Switch = Switch;
|
|
88276
89399
|
exports.Table = TablePagination;
|
|
88277
89400
|
exports.TableWithControls = TableWithControls;
|