@gobolt/genesis 0.8.5 → 0.9.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/Modal/Modal.d.ts +25 -0
- package/dist/components/Modal/__stories__/Modal.stories.d.ts +14 -0
- package/dist/components/Modal/__tests__/Modal.test.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/styles.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs +2046 -226
- package/dist/index.js +2046 -226
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1860,18 +1860,18 @@ var ThemeCache = /* @__PURE__ */ (function() {
|
|
|
1860
1860
|
})();
|
|
1861
1861
|
_defineProperty$1(ThemeCache, "MAX_CACHE_SIZE", 20);
|
|
1862
1862
|
_defineProperty$1(ThemeCache, "MAX_CACHE_OFFSET", 5);
|
|
1863
|
-
var uuid$
|
|
1863
|
+
var uuid$6 = 0;
|
|
1864
1864
|
var Theme = /* @__PURE__ */ (function() {
|
|
1865
1865
|
function Theme2(derivatives) {
|
|
1866
1866
|
_classCallCheck(this, Theme2);
|
|
1867
1867
|
_defineProperty$1(this, "derivatives", void 0);
|
|
1868
1868
|
_defineProperty$1(this, "id", void 0);
|
|
1869
1869
|
this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];
|
|
1870
|
-
this.id = uuid$
|
|
1870
|
+
this.id = uuid$6;
|
|
1871
1871
|
if (derivatives.length === 0) {
|
|
1872
1872
|
warning$3(derivatives.length > 0, "[Ant Design CSS-in-JS] Theme should have at least one derivative function.");
|
|
1873
1873
|
}
|
|
1874
|
-
uuid$
|
|
1874
|
+
uuid$6 += 1;
|
|
1875
1875
|
}
|
|
1876
1876
|
_createClass(Theme2, [{
|
|
1877
1877
|
key: "getDerivativeToken",
|
|
@@ -3410,20 +3410,23 @@ const localeValues = {
|
|
|
3410
3410
|
gradientColor: "Gradient"
|
|
3411
3411
|
}
|
|
3412
3412
|
};
|
|
3413
|
-
Object.assign({}, localeValues.Modal);
|
|
3413
|
+
let runtimeLocale = Object.assign({}, localeValues.Modal);
|
|
3414
3414
|
let localeList = [];
|
|
3415
3415
|
const generateLocale = () => localeList.reduce((merged, locale2) => Object.assign(Object.assign({}, merged), locale2), localeValues.Modal);
|
|
3416
3416
|
function changeConfirmLocale(newLocale) {
|
|
3417
3417
|
if (newLocale) {
|
|
3418
3418
|
const cloneLocale = Object.assign({}, newLocale);
|
|
3419
3419
|
localeList.push(cloneLocale);
|
|
3420
|
-
generateLocale();
|
|
3420
|
+
runtimeLocale = generateLocale();
|
|
3421
3421
|
return () => {
|
|
3422
3422
|
localeList = localeList.filter((locale2) => locale2 !== cloneLocale);
|
|
3423
|
-
generateLocale();
|
|
3423
|
+
runtimeLocale = generateLocale();
|
|
3424
3424
|
};
|
|
3425
3425
|
}
|
|
3426
|
-
Object.assign({}, localeValues.Modal);
|
|
3426
|
+
runtimeLocale = Object.assign({}, localeValues.Modal);
|
|
3427
|
+
}
|
|
3428
|
+
function getConfirmLocale() {
|
|
3429
|
+
return runtimeLocale;
|
|
3427
3430
|
}
|
|
3428
3431
|
const LocaleContext = /* @__PURE__ */ React.createContext(void 0);
|
|
3429
3432
|
const useLocale$1 = (componentName, defaultLocale2) => {
|
|
@@ -5271,7 +5274,7 @@ function getAlphaColor(frontColor, backgroundColor) {
|
|
|
5271
5274
|
a: 1
|
|
5272
5275
|
}).toRgbString();
|
|
5273
5276
|
}
|
|
5274
|
-
var __rest
|
|
5277
|
+
var __rest$13 = function(s, e3) {
|
|
5275
5278
|
var t2 = {};
|
|
5276
5279
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5277
5280
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5282,7 +5285,7 @@ var __rest$$ = function(s, e3) {
|
|
|
5282
5285
|
function formatToken(derivativeToken) {
|
|
5283
5286
|
const {
|
|
5284
5287
|
override
|
|
5285
|
-
} = derivativeToken, restToken = __rest
|
|
5288
|
+
} = derivativeToken, restToken = __rest$13(derivativeToken, ["override"]);
|
|
5286
5289
|
const overrideTokens = Object.assign({}, override);
|
|
5287
5290
|
Object.keys(seedToken).forEach((token2) => {
|
|
5288
5291
|
delete overrideTokens[token2];
|
|
@@ -5436,7 +5439,7 @@ function formatToken(derivativeToken) {
|
|
|
5436
5439
|
}), overrideTokens);
|
|
5437
5440
|
return aliasToken;
|
|
5438
5441
|
}
|
|
5439
|
-
var __rest$
|
|
5442
|
+
var __rest$12 = function(s, e3) {
|
|
5440
5443
|
var t2 = {};
|
|
5441
5444
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5442
5445
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5486,7 +5489,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5486
5489
|
const derivativeToken = theme.getDerivativeToken(originToken);
|
|
5487
5490
|
const {
|
|
5488
5491
|
override
|
|
5489
|
-
} = overrideToken, components2 = __rest$
|
|
5492
|
+
} = overrideToken, components2 = __rest$12(overrideToken, ["override"]);
|
|
5490
5493
|
let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
|
|
5491
5494
|
override
|
|
5492
5495
|
});
|
|
@@ -5495,7 +5498,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5495
5498
|
Object.entries(components2).forEach(([key, value2]) => {
|
|
5496
5499
|
const {
|
|
5497
5500
|
theme: componentTheme
|
|
5498
|
-
} = value2, componentTokens = __rest$
|
|
5501
|
+
} = value2, componentTokens = __rest$12(value2, ["theme"]);
|
|
5499
5502
|
let mergedComponentToken = componentTokens;
|
|
5500
5503
|
if (componentTheme) {
|
|
5501
5504
|
mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
|
|
@@ -6450,7 +6453,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6450
6453
|
PropWarning$1.displayName = "PropWarning";
|
|
6451
6454
|
}
|
|
6452
6455
|
const PropWarning = process.env.NODE_ENV !== "production" ? PropWarning$1 : () => null;
|
|
6453
|
-
var __rest$
|
|
6456
|
+
var __rest$11 = function(s, e3) {
|
|
6454
6457
|
var t2 = {};
|
|
6455
6458
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
6456
6459
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -6459,7 +6462,7 @@ var __rest$Z = function(s, e3) {
|
|
|
6459
6462
|
return t2;
|
|
6460
6463
|
};
|
|
6461
6464
|
let existThemeConfig = false;
|
|
6462
|
-
process.env.NODE_ENV !== "production" ? (componentName) => {
|
|
6465
|
+
const warnContext = process.env.NODE_ENV !== "production" ? (componentName) => {
|
|
6463
6466
|
process.env.NODE_ENV !== "production" ? warning$2(!existThemeConfig, componentName, `Static function can not consume context like dynamic theme. Please use 'App' component instead.`) : void 0;
|
|
6464
6467
|
} : (
|
|
6465
6468
|
/* istanbul ignore next */
|
|
@@ -6467,9 +6470,15 @@ process.env.NODE_ENV !== "production" ? (componentName) => {
|
|
|
6467
6470
|
);
|
|
6468
6471
|
const PASSED_PROPS = ["getTargetContainer", "getPopupContainer", "renderEmpty", "input", "pagination", "form", "select", "button"];
|
|
6469
6472
|
let globalPrefixCls;
|
|
6473
|
+
let globalIconPrefixCls;
|
|
6474
|
+
let globalTheme;
|
|
6475
|
+
let globalHolderRender;
|
|
6470
6476
|
function getGlobalPrefixCls() {
|
|
6471
6477
|
return globalPrefixCls || defaultPrefixCls;
|
|
6472
6478
|
}
|
|
6479
|
+
function getGlobalIconPrefixCls() {
|
|
6480
|
+
return globalIconPrefixCls || defaultIconPrefixCls;
|
|
6481
|
+
}
|
|
6473
6482
|
function isLegacyTheme(theme) {
|
|
6474
6483
|
return Object.keys(theme).some((key) => key.endsWith("Color"));
|
|
6475
6484
|
}
|
|
@@ -6483,13 +6492,38 @@ const setGlobalConfig = (props) => {
|
|
|
6483
6492
|
if (prefixCls !== void 0) {
|
|
6484
6493
|
globalPrefixCls = prefixCls;
|
|
6485
6494
|
}
|
|
6495
|
+
if (iconPrefixCls !== void 0) {
|
|
6496
|
+
globalIconPrefixCls = iconPrefixCls;
|
|
6497
|
+
}
|
|
6498
|
+
if ("holderRender" in props) {
|
|
6499
|
+
globalHolderRender = holderRender;
|
|
6500
|
+
}
|
|
6486
6501
|
if (theme) {
|
|
6487
6502
|
if (isLegacyTheme(theme)) {
|
|
6488
6503
|
process.env.NODE_ENV !== "production" ? warning$2(false, "ConfigProvider", "`config` of css variable theme is not work in v5. Please use new `theme` config instead.") : void 0;
|
|
6489
6504
|
registerTheme(getGlobalPrefixCls(), theme);
|
|
6505
|
+
} else {
|
|
6506
|
+
globalTheme = theme;
|
|
6490
6507
|
}
|
|
6491
6508
|
}
|
|
6492
6509
|
};
|
|
6510
|
+
const globalConfig = () => ({
|
|
6511
|
+
getPrefixCls: (suffixCls, customizePrefixCls) => {
|
|
6512
|
+
if (customizePrefixCls) {
|
|
6513
|
+
return customizePrefixCls;
|
|
6514
|
+
}
|
|
6515
|
+
return suffixCls ? `${getGlobalPrefixCls()}-${suffixCls}` : getGlobalPrefixCls();
|
|
6516
|
+
},
|
|
6517
|
+
getIconPrefixCls: getGlobalIconPrefixCls,
|
|
6518
|
+
getRootPrefixCls: () => {
|
|
6519
|
+
if (globalPrefixCls) {
|
|
6520
|
+
return globalPrefixCls;
|
|
6521
|
+
}
|
|
6522
|
+
return getGlobalPrefixCls();
|
|
6523
|
+
},
|
|
6524
|
+
getTheme: () => globalTheme,
|
|
6525
|
+
holderRender: globalHolderRender
|
|
6526
|
+
});
|
|
6493
6527
|
const ProviderChildren = (props) => {
|
|
6494
6528
|
const {
|
|
6495
6529
|
children: children2,
|
|
@@ -6737,7 +6771,7 @@ const ProviderChildren = (props) => {
|
|
|
6737
6771
|
token: token2,
|
|
6738
6772
|
components: components2,
|
|
6739
6773
|
cssVar
|
|
6740
|
-
} = _a, rest = __rest$
|
|
6774
|
+
} = _a, rest = __rest$11(_a, ["algorithm", "token", "components", "cssVar"]);
|
|
6741
6775
|
const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
|
|
6742
6776
|
const parsedComponents = {};
|
|
6743
6777
|
Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
|
|
@@ -7251,7 +7285,7 @@ const genActionStyle = (token2) => {
|
|
|
7251
7285
|
}
|
|
7252
7286
|
};
|
|
7253
7287
|
};
|
|
7254
|
-
const prepareComponentToken$
|
|
7288
|
+
const prepareComponentToken$r = (token2) => {
|
|
7255
7289
|
const paddingHorizontal = 12;
|
|
7256
7290
|
return {
|
|
7257
7291
|
withDescriptionIconSize: token2.fontSizeHeading3,
|
|
@@ -7259,8 +7293,8 @@ const prepareComponentToken$q = (token2) => {
|
|
|
7259
7293
|
withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
|
|
7260
7294
|
};
|
|
7261
7295
|
};
|
|
7262
|
-
const useStyle$
|
|
7263
|
-
var __rest$
|
|
7296
|
+
const useStyle$x = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$r);
|
|
7297
|
+
var __rest$10 = function(s, e3) {
|
|
7264
7298
|
var t2 = {};
|
|
7265
7299
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
7266
7300
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -7327,7 +7361,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7327
7361
|
closeIcon,
|
|
7328
7362
|
action,
|
|
7329
7363
|
id: id2
|
|
7330
|
-
} = props, otherProps = __rest$
|
|
7364
|
+
} = props, otherProps = __rest$10(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
|
|
7331
7365
|
const [closed, setClosed] = React__namespace.useState(false);
|
|
7332
7366
|
if (process.env.NODE_ENV !== "production") {
|
|
7333
7367
|
const warning3 = devUseWarning("Alert");
|
|
@@ -7346,7 +7380,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7346
7380
|
style: contextStyle
|
|
7347
7381
|
} = useComponentConfig("alert");
|
|
7348
7382
|
const prefixCls = getPrefixCls("alert", customizePrefixCls);
|
|
7349
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
7383
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$x(prefixCls);
|
|
7350
7384
|
const handleClose = (e3) => {
|
|
7351
7385
|
var _a;
|
|
7352
7386
|
setClosed(true);
|
|
@@ -7402,7 +7436,7 @@ const Alert$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
7402
7436
|
if (typeof merged === "object") {
|
|
7403
7437
|
const {
|
|
7404
7438
|
closeIcon: _
|
|
7405
|
-
} = merged, ariaProps = __rest$
|
|
7439
|
+
} = merged, ariaProps = __rest$10(merged, ["closeIcon"]);
|
|
7406
7440
|
return ariaProps;
|
|
7407
7441
|
}
|
|
7408
7442
|
return {};
|
|
@@ -7592,7 +7626,7 @@ function e(e3, r2) {
|
|
|
7592
7626
|
function isWindow(obj) {
|
|
7593
7627
|
return obj !== null && obj !== void 0 && obj === obj.window;
|
|
7594
7628
|
}
|
|
7595
|
-
const getScroll = (target) => {
|
|
7629
|
+
const getScroll$1 = (target) => {
|
|
7596
7630
|
var _a, _b;
|
|
7597
7631
|
if (typeof window === "undefined") {
|
|
7598
7632
|
return 0;
|
|
@@ -7627,7 +7661,7 @@ function scrollTo(y2, options = {}) {
|
|
|
7627
7661
|
duration = 450
|
|
7628
7662
|
} = options;
|
|
7629
7663
|
const container = getContainer2();
|
|
7630
|
-
const scrollTop = getScroll(container);
|
|
7664
|
+
const scrollTop = getScroll$1(container);
|
|
7631
7665
|
const startTime = Date.now();
|
|
7632
7666
|
const frameFunc = () => {
|
|
7633
7667
|
const timestamp = Date.now();
|
|
@@ -7868,6 +7902,16 @@ const useZIndex = (componentType, customZIndex) => {
|
|
|
7868
7902
|
}
|
|
7869
7903
|
return result;
|
|
7870
7904
|
};
|
|
7905
|
+
function usePatchElement() {
|
|
7906
|
+
const [elements, setElements] = React__namespace.useState([]);
|
|
7907
|
+
const patchElement = React__namespace.useCallback((element2) => {
|
|
7908
|
+
setElements((originElements) => [].concat(_toConsumableArray(originElements), [element2]));
|
|
7909
|
+
return () => {
|
|
7910
|
+
setElements((originElements) => originElements.filter((ele) => ele !== element2));
|
|
7911
|
+
};
|
|
7912
|
+
}, []);
|
|
7913
|
+
return [elements, patchElement];
|
|
7914
|
+
}
|
|
7871
7915
|
function _OverloadYield(e3, d) {
|
|
7872
7916
|
this.v = e3, this.k = d;
|
|
7873
7917
|
}
|
|
@@ -8308,7 +8352,7 @@ const genWaveStyle = (token2) => {
|
|
|
8308
8352
|
}
|
|
8309
8353
|
};
|
|
8310
8354
|
};
|
|
8311
|
-
const useStyle$
|
|
8355
|
+
const useStyle$w = genComponentStyleHook("Wave", genWaveStyle);
|
|
8312
8356
|
const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
|
|
8313
8357
|
function isValidWaveColor(color2) {
|
|
8314
8358
|
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 +8530,7 @@ const Wave = (props) => {
|
|
|
8486
8530
|
} = React.useContext(ConfigContext);
|
|
8487
8531
|
const containerRef = React.useRef(null);
|
|
8488
8532
|
const prefixCls = getPrefixCls("wave");
|
|
8489
|
-
const [, hashId] = useStyle$
|
|
8533
|
+
const [, hashId] = useStyle$w(prefixCls);
|
|
8490
8534
|
const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
|
|
8491
8535
|
React.useEffect(() => {
|
|
8492
8536
|
const node2 = containerRef.current;
|
|
@@ -8614,7 +8658,7 @@ const genSpaceGapStyle = (token2) => {
|
|
|
8614
8658
|
}
|
|
8615
8659
|
};
|
|
8616
8660
|
};
|
|
8617
|
-
const useStyle$
|
|
8661
|
+
const useStyle$v = genStyleHooks("Space", (token2) => {
|
|
8618
8662
|
const spaceToken = merge$1(token2, {
|
|
8619
8663
|
spaceGapSmallSize: token2.paddingXS,
|
|
8620
8664
|
spaceGapMiddleSize: token2.padding,
|
|
@@ -8626,7 +8670,7 @@ const useStyle$u = genStyleHooks("Space", (token2) => {
|
|
|
8626
8670
|
// https://github.com/ant-design/ant-design/issues/40315
|
|
8627
8671
|
resetStyle: false
|
|
8628
8672
|
});
|
|
8629
|
-
var __rest
|
|
8673
|
+
var __rest$$ = function(s, e3) {
|
|
8630
8674
|
var t2 = {};
|
|
8631
8675
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8632
8676
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8670,7 +8714,7 @@ const NoCompactStyle = (props) => {
|
|
|
8670
8714
|
const CompactItem = (props) => {
|
|
8671
8715
|
const {
|
|
8672
8716
|
children: children2
|
|
8673
|
-
} = props, others = __rest
|
|
8717
|
+
} = props, others = __rest$$(props, ["children"]);
|
|
8674
8718
|
return /* @__PURE__ */ React__namespace.createElement(SpaceCompactItemContext.Provider, {
|
|
8675
8719
|
value: React__namespace.useMemo(() => others, [others])
|
|
8676
8720
|
}, children2);
|
|
@@ -8688,10 +8732,10 @@ const Compact$1 = (props) => {
|
|
|
8688
8732
|
className,
|
|
8689
8733
|
rootClassName,
|
|
8690
8734
|
children: children2
|
|
8691
|
-
} = props, restProps = __rest
|
|
8735
|
+
} = props, restProps = __rest$$(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
|
|
8692
8736
|
const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
|
|
8693
8737
|
const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
|
|
8694
|
-
const [wrapCSSVar, hashId] = useStyle$
|
|
8738
|
+
const [wrapCSSVar, hashId] = useStyle$v(prefixCls);
|
|
8695
8739
|
const clx = classNames(prefixCls, hashId, {
|
|
8696
8740
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
8697
8741
|
[`${prefixCls}-block`]: block,
|
|
@@ -8716,7 +8760,7 @@ const Compact$1 = (props) => {
|
|
|
8716
8760
|
className: clx
|
|
8717
8761
|
}, restProps), nodes));
|
|
8718
8762
|
};
|
|
8719
|
-
var __rest$
|
|
8763
|
+
var __rest$_ = function(s, e3) {
|
|
8720
8764
|
var t2 = {};
|
|
8721
8765
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8722
8766
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8734,7 +8778,7 @@ const ButtonGroup = (props) => {
|
|
|
8734
8778
|
prefixCls: customizePrefixCls,
|
|
8735
8779
|
size,
|
|
8736
8780
|
className
|
|
8737
|
-
} = props, others = __rest$
|
|
8781
|
+
} = props, others = __rest$_(props, ["prefixCls", "size", "className"]);
|
|
8738
8782
|
const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
|
|
8739
8783
|
const [, , hashId] = useToken();
|
|
8740
8784
|
const sizeCls = React__namespace.useMemo(() => {
|
|
@@ -9634,6 +9678,41 @@ const initMotion = (motionCls, inKeyframes, outKeyframes, duration, sameLevel =
|
|
|
9634
9678
|
}
|
|
9635
9679
|
};
|
|
9636
9680
|
};
|
|
9681
|
+
const fadeIn = new Keyframe("antFadeIn", {
|
|
9682
|
+
"0%": {
|
|
9683
|
+
opacity: 0
|
|
9684
|
+
},
|
|
9685
|
+
"100%": {
|
|
9686
|
+
opacity: 1
|
|
9687
|
+
}
|
|
9688
|
+
});
|
|
9689
|
+
const fadeOut = new Keyframe("antFadeOut", {
|
|
9690
|
+
"0%": {
|
|
9691
|
+
opacity: 1
|
|
9692
|
+
},
|
|
9693
|
+
"100%": {
|
|
9694
|
+
opacity: 0
|
|
9695
|
+
}
|
|
9696
|
+
});
|
|
9697
|
+
const initFadeMotion = (token2, sameLevel = false) => {
|
|
9698
|
+
const {
|
|
9699
|
+
antCls
|
|
9700
|
+
} = token2;
|
|
9701
|
+
const motionCls = `${antCls}-fade`;
|
|
9702
|
+
const sameLevelPrefix = sameLevel ? "&" : "";
|
|
9703
|
+
return [initMotion(motionCls, fadeIn, fadeOut, token2.motionDurationMid, sameLevel), {
|
|
9704
|
+
[`
|
|
9705
|
+
${sameLevelPrefix}${motionCls}-enter,
|
|
9706
|
+
${sameLevelPrefix}${motionCls}-appear
|
|
9707
|
+
`]: {
|
|
9708
|
+
opacity: 0,
|
|
9709
|
+
animationTimingFunction: "linear"
|
|
9710
|
+
},
|
|
9711
|
+
[`${sameLevelPrefix}${motionCls}-leave`]: {
|
|
9712
|
+
animationTimingFunction: "linear"
|
|
9713
|
+
}
|
|
9714
|
+
}];
|
|
9715
|
+
};
|
|
9637
9716
|
const moveDownIn = new Keyframe("antMoveDownIn", {
|
|
9638
9717
|
"0%": {
|
|
9639
9718
|
transform: "translate3d(0, 100%, 0)",
|
|
@@ -10112,7 +10191,7 @@ const isBright = (value2, bgColorToken) => {
|
|
|
10112
10191
|
}
|
|
10113
10192
|
return r2 * 0.299 + g * 0.587 + b * 0.114 > 192;
|
|
10114
10193
|
};
|
|
10115
|
-
const prepareToken$
|
|
10194
|
+
const prepareToken$3 = (token2) => {
|
|
10116
10195
|
const {
|
|
10117
10196
|
paddingInline,
|
|
10118
10197
|
onlyIconSize
|
|
@@ -10124,7 +10203,7 @@ const prepareToken$2 = (token2) => {
|
|
|
10124
10203
|
});
|
|
10125
10204
|
return buttonToken;
|
|
10126
10205
|
};
|
|
10127
|
-
const prepareComponentToken$
|
|
10206
|
+
const prepareComponentToken$q = (token2) => {
|
|
10128
10207
|
var _a, _b, _c, _d, _e, _f;
|
|
10129
10208
|
const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
|
|
10130
10209
|
const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
|
|
@@ -10631,8 +10710,8 @@ const genBlockButtonStyle = (token2) => {
|
|
|
10631
10710
|
}
|
|
10632
10711
|
};
|
|
10633
10712
|
};
|
|
10634
|
-
const useStyle$
|
|
10635
|
-
const buttonToken = prepareToken$
|
|
10713
|
+
const useStyle$u = genStyleHooks("Button", (token2) => {
|
|
10714
|
+
const buttonToken = prepareToken$3(token2);
|
|
10636
10715
|
return [
|
|
10637
10716
|
// Shared
|
|
10638
10717
|
genSharedButtonStyle(buttonToken),
|
|
@@ -10649,7 +10728,7 @@ const useStyle$t = genStyleHooks("Button", (token2) => {
|
|
|
10649
10728
|
// Button Group
|
|
10650
10729
|
genGroupStyle$2(buttonToken)
|
|
10651
10730
|
];
|
|
10652
|
-
}, prepareComponentToken$
|
|
10731
|
+
}, prepareComponentToken$q, {
|
|
10653
10732
|
unitless: {
|
|
10654
10733
|
fontWeight: true,
|
|
10655
10734
|
contentLineHeight: true,
|
|
@@ -10790,15 +10869,15 @@ const genButtonCompactStyle = (token2) => {
|
|
|
10790
10869
|
return Object.assign(Object.assign({}, getCompactBorderStyle()), getCompactBorderStyle(true));
|
|
10791
10870
|
};
|
|
10792
10871
|
const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
|
|
10793
|
-
const buttonToken = prepareToken$
|
|
10872
|
+
const buttonToken = prepareToken$3(token2);
|
|
10794
10873
|
return [
|
|
10795
10874
|
// Space Compact
|
|
10796
10875
|
genCompactItemStyle(buttonToken),
|
|
10797
10876
|
genCompactItemVerticalStyle(buttonToken),
|
|
10798
10877
|
genButtonCompactStyle(buttonToken)
|
|
10799
10878
|
];
|
|
10800
|
-
}, prepareComponentToken$
|
|
10801
|
-
var __rest$
|
|
10879
|
+
}, prepareComponentToken$q);
|
|
10880
|
+
var __rest$Z = function(s, e3) {
|
|
10802
10881
|
var t2 = {};
|
|
10803
10882
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
10804
10883
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -10854,7 +10933,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
|
|
|
10854
10933
|
style: customStyle = {},
|
|
10855
10934
|
autoInsertSpace,
|
|
10856
10935
|
autoFocus
|
|
10857
|
-
} = props, rest = __rest$
|
|
10936
|
+
} = props, rest = __rest$Z(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
10858
10937
|
const mergedType = type4 || "default";
|
|
10859
10938
|
const {
|
|
10860
10939
|
button: button2
|
|
@@ -10889,7 +10968,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React.forwardRef((props, ref) =
|
|
|
10889
10968
|
} = useComponentConfig("button");
|
|
10890
10969
|
const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
|
|
10891
10970
|
const prefixCls = getPrefixCls("btn", customizePrefixCls);
|
|
10892
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
10971
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
|
|
10893
10972
|
const disabled2 = React.useContext(DisabledContext);
|
|
10894
10973
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
|
|
10895
10974
|
const groupSize = React.useContext(GroupSizeContext);
|
|
@@ -11134,6 +11213,59 @@ const ActionButton$1 = (props) => {
|
|
|
11134
11213
|
ref: buttonRef
|
|
11135
11214
|
}), children2);
|
|
11136
11215
|
};
|
|
11216
|
+
const ModalContext = /* @__PURE__ */ React.createContext({});
|
|
11217
|
+
const {
|
|
11218
|
+
Provider: ModalContextProvider
|
|
11219
|
+
} = ModalContext;
|
|
11220
|
+
const ConfirmCancelBtn = () => {
|
|
11221
|
+
const {
|
|
11222
|
+
autoFocusButton,
|
|
11223
|
+
cancelButtonProps,
|
|
11224
|
+
cancelTextLocale,
|
|
11225
|
+
isSilent,
|
|
11226
|
+
mergedOkCancel,
|
|
11227
|
+
rootPrefixCls,
|
|
11228
|
+
close,
|
|
11229
|
+
onCancel,
|
|
11230
|
+
onConfirm
|
|
11231
|
+
} = React.useContext(ModalContext);
|
|
11232
|
+
return mergedOkCancel ? /* @__PURE__ */ React.createElement(ActionButton$1, {
|
|
11233
|
+
isSilent,
|
|
11234
|
+
actionFn: onCancel,
|
|
11235
|
+
close: (...args) => {
|
|
11236
|
+
close === null || close === void 0 ? void 0 : close.apply(void 0, args);
|
|
11237
|
+
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);
|
|
11238
|
+
},
|
|
11239
|
+
autoFocus: autoFocusButton === "cancel",
|
|
11240
|
+
buttonProps: cancelButtonProps,
|
|
11241
|
+
prefixCls: `${rootPrefixCls}-btn`
|
|
11242
|
+
}, cancelTextLocale) : null;
|
|
11243
|
+
};
|
|
11244
|
+
const ConfirmOkBtn = () => {
|
|
11245
|
+
const {
|
|
11246
|
+
autoFocusButton,
|
|
11247
|
+
close,
|
|
11248
|
+
isSilent,
|
|
11249
|
+
okButtonProps,
|
|
11250
|
+
rootPrefixCls,
|
|
11251
|
+
okTextLocale,
|
|
11252
|
+
okType,
|
|
11253
|
+
onConfirm,
|
|
11254
|
+
onOk
|
|
11255
|
+
} = React.useContext(ModalContext);
|
|
11256
|
+
return /* @__PURE__ */ React.createElement(ActionButton$1, {
|
|
11257
|
+
isSilent,
|
|
11258
|
+
type: okType || "primary",
|
|
11259
|
+
actionFn: onOk,
|
|
11260
|
+
close: (...args) => {
|
|
11261
|
+
close === null || close === void 0 ? void 0 : close.apply(void 0, args);
|
|
11262
|
+
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(true);
|
|
11263
|
+
},
|
|
11264
|
+
autoFocus: autoFocusButton === "ok",
|
|
11265
|
+
buttonProps: okButtonProps,
|
|
11266
|
+
prefixCls: `${rootPrefixCls}-btn`
|
|
11267
|
+
}, okTextLocale);
|
|
11268
|
+
};
|
|
11137
11269
|
var OrderContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
11138
11270
|
var EMPTY_LIST$5 = [];
|
|
11139
11271
|
function useDom(render2, debug) {
|
|
@@ -11252,12 +11384,12 @@ function isBodyOverflowing() {
|
|
|
11252
11384
|
return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
|
|
11253
11385
|
}
|
|
11254
11386
|
var UNIQUE_ID = "rc-util-locker-".concat(Date.now());
|
|
11255
|
-
var uuid$
|
|
11387
|
+
var uuid$5 = 0;
|
|
11256
11388
|
function useScrollLocker(lock) {
|
|
11257
11389
|
var mergedLock = !!lock;
|
|
11258
11390
|
var _React$useState = React__namespace.useState(function() {
|
|
11259
|
-
uuid$
|
|
11260
|
-
return "".concat(UNIQUE_ID, "_").concat(uuid$
|
|
11391
|
+
uuid$5 += 1;
|
|
11392
|
+
return "".concat(UNIQUE_ID, "_").concat(uuid$5);
|
|
11261
11393
|
}), _React$useState2 = _slicedToArray(_React$useState, 1), id2 = _React$useState2[0];
|
|
11262
11394
|
useLayoutEffect$1(function() {
|
|
11263
11395
|
if (mergedLock) {
|
|
@@ -11336,11 +11468,12 @@ var Portal = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
|
11336
11468
|
if (process.env.NODE_ENV !== "production") {
|
|
11337
11469
|
Portal.displayName = "Portal";
|
|
11338
11470
|
}
|
|
11471
|
+
var RefContext$1 = /* @__PURE__ */ React__namespace.createContext({});
|
|
11339
11472
|
function getUseId() {
|
|
11340
11473
|
var fullClone2 = _objectSpread2({}, React__namespace);
|
|
11341
11474
|
return fullClone2.useId;
|
|
11342
11475
|
}
|
|
11343
|
-
var uuid$
|
|
11476
|
+
var uuid$4 = 0;
|
|
11344
11477
|
var useOriginId = getUseId();
|
|
11345
11478
|
const useId$2 = useOriginId ? (
|
|
11346
11479
|
// Use React `useId`
|
|
@@ -11359,8 +11492,8 @@ const useId$2 = useOriginId ? (
|
|
|
11359
11492
|
function useCompatId(id2) {
|
|
11360
11493
|
var _React$useState = React__namespace.useState("ssr-id"), _React$useState2 = _slicedToArray(_React$useState, 2), innerId = _React$useState2[0], setInnerId = _React$useState2[1];
|
|
11361
11494
|
React__namespace.useEffect(function() {
|
|
11362
|
-
var nextId = uuid$
|
|
11363
|
-
uuid$
|
|
11495
|
+
var nextId = uuid$4;
|
|
11496
|
+
uuid$4 += 1;
|
|
11364
11497
|
setInnerId("rc_unique_".concat(nextId));
|
|
11365
11498
|
}, []);
|
|
11366
11499
|
if (id2) {
|
|
@@ -11372,6 +11505,366 @@ const useId$2 = useOriginId ? (
|
|
|
11372
11505
|
return innerId;
|
|
11373
11506
|
}
|
|
11374
11507
|
);
|
|
11508
|
+
function getMotionName(prefixCls, transitionName, animationName) {
|
|
11509
|
+
var motionName = transitionName;
|
|
11510
|
+
if (!motionName && animationName) {
|
|
11511
|
+
motionName = "".concat(prefixCls, "-").concat(animationName);
|
|
11512
|
+
}
|
|
11513
|
+
return motionName;
|
|
11514
|
+
}
|
|
11515
|
+
function getScroll(w, top) {
|
|
11516
|
+
var ret = w["page".concat(top ? "Y" : "X", "Offset")];
|
|
11517
|
+
var method4 = "scroll".concat(top ? "Top" : "Left");
|
|
11518
|
+
if (typeof ret !== "number") {
|
|
11519
|
+
var d = w.document;
|
|
11520
|
+
ret = d.documentElement[method4];
|
|
11521
|
+
if (typeof ret !== "number") {
|
|
11522
|
+
ret = d.body[method4];
|
|
11523
|
+
}
|
|
11524
|
+
}
|
|
11525
|
+
return ret;
|
|
11526
|
+
}
|
|
11527
|
+
function offset$1(el) {
|
|
11528
|
+
var rect = el.getBoundingClientRect();
|
|
11529
|
+
var pos = {
|
|
11530
|
+
left: rect.left,
|
|
11531
|
+
top: rect.top
|
|
11532
|
+
};
|
|
11533
|
+
var doc = el.ownerDocument;
|
|
11534
|
+
var w = doc.defaultView || doc.parentWindow;
|
|
11535
|
+
pos.left += getScroll(w);
|
|
11536
|
+
pos.top += getScroll(w, true);
|
|
11537
|
+
return pos;
|
|
11538
|
+
}
|
|
11539
|
+
const MemoChildren = /* @__PURE__ */ React__namespace.memo(function(_ref) {
|
|
11540
|
+
var children2 = _ref.children;
|
|
11541
|
+
return children2;
|
|
11542
|
+
}, function(_, _ref2) {
|
|
11543
|
+
var shouldUpdate = _ref2.shouldUpdate;
|
|
11544
|
+
return !shouldUpdate;
|
|
11545
|
+
});
|
|
11546
|
+
var sentinelStyle$1 = {
|
|
11547
|
+
width: 0,
|
|
11548
|
+
height: 0,
|
|
11549
|
+
overflow: "hidden",
|
|
11550
|
+
outline: "none"
|
|
11551
|
+
};
|
|
11552
|
+
var entityStyle = {
|
|
11553
|
+
outline: "none"
|
|
11554
|
+
};
|
|
11555
|
+
var Panel$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
11556
|
+
var prefixCls = props.prefixCls, className = props.className, style2 = props.style, title = props.title, ariaId = props.ariaId, footer2 = props.footer, closable = props.closable, closeIcon = props.closeIcon, onClose = props.onClose, children2 = props.children, bodyStyle = props.bodyStyle, bodyProps = props.bodyProps, modalRender = props.modalRender, onMouseDown = props.onMouseDown, onMouseUp = props.onMouseUp, holderRef = props.holderRef, visible = props.visible, forceRender = props.forceRender, width = props.width, height = props.height, modalClassNames = props.classNames, modalStyles = props.styles;
|
|
11557
|
+
var _React$useContext = React.useContext(RefContext$1), panelRef = _React$useContext.panel;
|
|
11558
|
+
var mergedRef = useComposeRef(holderRef, panelRef);
|
|
11559
|
+
var sentinelStartRef = React.useRef();
|
|
11560
|
+
var sentinelEndRef = React.useRef();
|
|
11561
|
+
React.useImperativeHandle(ref, function() {
|
|
11562
|
+
return {
|
|
11563
|
+
focus: function focus() {
|
|
11564
|
+
var _sentinelStartRef$cur;
|
|
11565
|
+
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
|
11566
|
+
preventScroll: true
|
|
11567
|
+
});
|
|
11568
|
+
},
|
|
11569
|
+
changeActive: function changeActive(next2) {
|
|
11570
|
+
var _document = document, activeElement = _document.activeElement;
|
|
11571
|
+
if (next2 && activeElement === sentinelEndRef.current) {
|
|
11572
|
+
sentinelStartRef.current.focus({
|
|
11573
|
+
preventScroll: true
|
|
11574
|
+
});
|
|
11575
|
+
} else if (!next2 && activeElement === sentinelStartRef.current) {
|
|
11576
|
+
sentinelEndRef.current.focus({
|
|
11577
|
+
preventScroll: true
|
|
11578
|
+
});
|
|
11579
|
+
}
|
|
11580
|
+
}
|
|
11581
|
+
};
|
|
11582
|
+
});
|
|
11583
|
+
var contentStyle = {};
|
|
11584
|
+
if (width !== void 0) {
|
|
11585
|
+
contentStyle.width = width;
|
|
11586
|
+
}
|
|
11587
|
+
if (height !== void 0) {
|
|
11588
|
+
contentStyle.height = height;
|
|
11589
|
+
}
|
|
11590
|
+
var footerNode = footer2 ? /* @__PURE__ */ React.createElement("div", {
|
|
11591
|
+
className: classNames("".concat(prefixCls, "-footer"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.footer),
|
|
11592
|
+
style: _objectSpread2({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.footer)
|
|
11593
|
+
}, footer2) : null;
|
|
11594
|
+
var headerNode = title ? /* @__PURE__ */ React.createElement("div", {
|
|
11595
|
+
className: classNames("".concat(prefixCls, "-header"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.header),
|
|
11596
|
+
style: _objectSpread2({}, modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.header)
|
|
11597
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
11598
|
+
className: "".concat(prefixCls, "-title"),
|
|
11599
|
+
id: ariaId
|
|
11600
|
+
}, title)) : null;
|
|
11601
|
+
var closableObj = React.useMemo(function() {
|
|
11602
|
+
if (_typeof(closable) === "object" && closable !== null) {
|
|
11603
|
+
return closable;
|
|
11604
|
+
}
|
|
11605
|
+
if (closable) {
|
|
11606
|
+
return {
|
|
11607
|
+
closeIcon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : /* @__PURE__ */ React.createElement("span", {
|
|
11608
|
+
className: "".concat(prefixCls, "-close-x")
|
|
11609
|
+
})
|
|
11610
|
+
};
|
|
11611
|
+
}
|
|
11612
|
+
return {};
|
|
11613
|
+
}, [closable, closeIcon, prefixCls]);
|
|
11614
|
+
var ariaProps = pickAttrs(closableObj, true);
|
|
11615
|
+
var closeBtnIsDisabled = _typeof(closable) === "object" && closable.disabled;
|
|
11616
|
+
var closerNode = closable ? /* @__PURE__ */ React.createElement("button", _extends$1({
|
|
11617
|
+
type: "button",
|
|
11618
|
+
onClick: onClose,
|
|
11619
|
+
"aria-label": "Close"
|
|
11620
|
+
}, ariaProps, {
|
|
11621
|
+
className: "".concat(prefixCls, "-close"),
|
|
11622
|
+
disabled: closeBtnIsDisabled
|
|
11623
|
+
}), closableObj.closeIcon) : null;
|
|
11624
|
+
var content2 = /* @__PURE__ */ React.createElement("div", {
|
|
11625
|
+
className: classNames("".concat(prefixCls, "-content"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.content),
|
|
11626
|
+
style: modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.content
|
|
11627
|
+
}, closerNode, headerNode, /* @__PURE__ */ React.createElement("div", _extends$1({
|
|
11628
|
+
className: classNames("".concat(prefixCls, "-body"), modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.body),
|
|
11629
|
+
style: _objectSpread2(_objectSpread2({}, bodyStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.body)
|
|
11630
|
+
}, bodyProps), children2), footerNode);
|
|
11631
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
11632
|
+
key: "dialog-element",
|
|
11633
|
+
role: "dialog",
|
|
11634
|
+
"aria-labelledby": title ? ariaId : null,
|
|
11635
|
+
"aria-modal": "true",
|
|
11636
|
+
ref: mergedRef,
|
|
11637
|
+
style: _objectSpread2(_objectSpread2({}, style2), contentStyle),
|
|
11638
|
+
className: classNames(prefixCls, className),
|
|
11639
|
+
onMouseDown,
|
|
11640
|
+
onMouseUp
|
|
11641
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
11642
|
+
ref: sentinelStartRef,
|
|
11643
|
+
tabIndex: 0,
|
|
11644
|
+
style: entityStyle
|
|
11645
|
+
}, /* @__PURE__ */ React.createElement(MemoChildren, {
|
|
11646
|
+
shouldUpdate: visible || forceRender
|
|
11647
|
+
}, modalRender ? modalRender(content2) : content2)), /* @__PURE__ */ React.createElement("div", {
|
|
11648
|
+
tabIndex: 0,
|
|
11649
|
+
ref: sentinelEndRef,
|
|
11650
|
+
style: sentinelStyle$1
|
|
11651
|
+
}));
|
|
11652
|
+
});
|
|
11653
|
+
if (process.env.NODE_ENV !== "production") {
|
|
11654
|
+
Panel$1.displayName = "Panel";
|
|
11655
|
+
}
|
|
11656
|
+
var Content$3 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
11657
|
+
var prefixCls = props.prefixCls, title = props.title, style2 = props.style, className = props.className, visible = props.visible, forceRender = props.forceRender, destroyOnClose = props.destroyOnClose, motionName = props.motionName, ariaId = props.ariaId, onVisibleChanged = props.onVisibleChanged, mousePosition2 = props.mousePosition;
|
|
11658
|
+
var dialogRef = React.useRef();
|
|
11659
|
+
var _React$useState = React__namespace.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), transformOrigin = _React$useState2[0], setTransformOrigin = _React$useState2[1];
|
|
11660
|
+
var contentStyle = {};
|
|
11661
|
+
if (transformOrigin) {
|
|
11662
|
+
contentStyle.transformOrigin = transformOrigin;
|
|
11663
|
+
}
|
|
11664
|
+
function onPrepare() {
|
|
11665
|
+
var elementOffset = offset$1(dialogRef.current);
|
|
11666
|
+
setTransformOrigin(mousePosition2 && (mousePosition2.x || mousePosition2.y) ? "".concat(mousePosition2.x - elementOffset.left, "px ").concat(mousePosition2.y - elementOffset.top, "px") : "");
|
|
11667
|
+
}
|
|
11668
|
+
return /* @__PURE__ */ React__namespace.createElement(CSSMotion, {
|
|
11669
|
+
visible,
|
|
11670
|
+
onVisibleChanged,
|
|
11671
|
+
onAppearPrepare: onPrepare,
|
|
11672
|
+
onEnterPrepare: onPrepare,
|
|
11673
|
+
forceRender,
|
|
11674
|
+
motionName,
|
|
11675
|
+
removeOnLeave: destroyOnClose,
|
|
11676
|
+
ref: dialogRef
|
|
11677
|
+
}, function(_ref, motionRef) {
|
|
11678
|
+
var motionClassName = _ref.className, motionStyle = _ref.style;
|
|
11679
|
+
return /* @__PURE__ */ React__namespace.createElement(Panel$1, _extends$1({}, props, {
|
|
11680
|
+
ref,
|
|
11681
|
+
title,
|
|
11682
|
+
ariaId,
|
|
11683
|
+
prefixCls,
|
|
11684
|
+
holderRef: motionRef,
|
|
11685
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), style2), contentStyle),
|
|
11686
|
+
className: classNames(className, motionClassName)
|
|
11687
|
+
}));
|
|
11688
|
+
});
|
|
11689
|
+
});
|
|
11690
|
+
Content$3.displayName = "Content";
|
|
11691
|
+
var Mask$1 = function Mask(props) {
|
|
11692
|
+
var prefixCls = props.prefixCls, style2 = props.style, visible = props.visible, maskProps = props.maskProps, motionName = props.motionName, className = props.className;
|
|
11693
|
+
return /* @__PURE__ */ React__namespace.createElement(CSSMotion, {
|
|
11694
|
+
key: "mask",
|
|
11695
|
+
visible,
|
|
11696
|
+
motionName,
|
|
11697
|
+
leavedClassName: "".concat(prefixCls, "-mask-hidden")
|
|
11698
|
+
}, function(_ref, ref) {
|
|
11699
|
+
var motionClassName = _ref.className, motionStyle = _ref.style;
|
|
11700
|
+
return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
|
|
11701
|
+
ref,
|
|
11702
|
+
style: _objectSpread2(_objectSpread2({}, motionStyle), style2),
|
|
11703
|
+
className: classNames("".concat(prefixCls, "-mask"), motionClassName, className)
|
|
11704
|
+
}, maskProps));
|
|
11705
|
+
});
|
|
11706
|
+
};
|
|
11707
|
+
var Dialog = function Dialog2(props) {
|
|
11708
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dialog" : _props$prefixCls, zIndex = props.zIndex, _props$visible = props.visible, visible = _props$visible === void 0 ? false : _props$visible, _props$keyboard = props.keyboard, keyboard = _props$keyboard === void 0 ? true : _props$keyboard, _props$focusTriggerAf = props.focusTriggerAfterClose, focusTriggerAfterClose = _props$focusTriggerAf === void 0 ? true : _props$focusTriggerAf, wrapStyle = props.wrapStyle, wrapClassName = props.wrapClassName, wrapProps = props.wrapProps, onClose = props.onClose, afterOpenChange = props.afterOpenChange, afterClose = props.afterClose, transitionName = props.transitionName, animation = props.animation, _props$closable = props.closable, closable = _props$closable === void 0 ? true : _props$closable, _props$mask = props.mask, mask = _props$mask === void 0 ? true : _props$mask, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, maskStyle = props.maskStyle, maskProps = props.maskProps, rootClassName = props.rootClassName, modalClassNames = props.classNames, modalStyles = props.styles;
|
|
11709
|
+
if (process.env.NODE_ENV !== "production") {
|
|
11710
|
+
["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(prop) {
|
|
11711
|
+
warning$3(!(prop in props), "".concat(prop, " is deprecated, please use styles instead."));
|
|
11712
|
+
});
|
|
11713
|
+
if ("wrapClassName" in props) {
|
|
11714
|
+
warning$3(false, "wrapClassName is deprecated, please use classNames instead.");
|
|
11715
|
+
}
|
|
11716
|
+
}
|
|
11717
|
+
var lastOutSideActiveElementRef = React.useRef();
|
|
11718
|
+
var wrapperRef = React.useRef();
|
|
11719
|
+
var contentRef = React.useRef();
|
|
11720
|
+
var _React$useState = React__namespace.useState(visible), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
|
|
11721
|
+
var ariaId = useId$2();
|
|
11722
|
+
function saveLastOutSideActiveElementRef() {
|
|
11723
|
+
if (!contains(wrapperRef.current, document.activeElement)) {
|
|
11724
|
+
lastOutSideActiveElementRef.current = document.activeElement;
|
|
11725
|
+
}
|
|
11726
|
+
}
|
|
11727
|
+
function focusDialogContent() {
|
|
11728
|
+
if (!contains(wrapperRef.current, document.activeElement)) {
|
|
11729
|
+
var _contentRef$current;
|
|
11730
|
+
(_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 || _contentRef$current.focus();
|
|
11731
|
+
}
|
|
11732
|
+
}
|
|
11733
|
+
function onDialogVisibleChanged(newVisible) {
|
|
11734
|
+
if (newVisible) {
|
|
11735
|
+
focusDialogContent();
|
|
11736
|
+
} else {
|
|
11737
|
+
setAnimatedVisible(false);
|
|
11738
|
+
if (mask && lastOutSideActiveElementRef.current && focusTriggerAfterClose) {
|
|
11739
|
+
try {
|
|
11740
|
+
lastOutSideActiveElementRef.current.focus({
|
|
11741
|
+
preventScroll: true
|
|
11742
|
+
});
|
|
11743
|
+
} catch (e3) {
|
|
11744
|
+
}
|
|
11745
|
+
lastOutSideActiveElementRef.current = null;
|
|
11746
|
+
}
|
|
11747
|
+
if (animatedVisible) {
|
|
11748
|
+
afterClose === null || afterClose === void 0 || afterClose();
|
|
11749
|
+
}
|
|
11750
|
+
}
|
|
11751
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(newVisible);
|
|
11752
|
+
}
|
|
11753
|
+
function onInternalClose(e3) {
|
|
11754
|
+
onClose === null || onClose === void 0 || onClose(e3);
|
|
11755
|
+
}
|
|
11756
|
+
var contentClickRef = React.useRef(false);
|
|
11757
|
+
var contentTimeoutRef = React.useRef();
|
|
11758
|
+
var onContentMouseDown = function onContentMouseDown2() {
|
|
11759
|
+
clearTimeout(contentTimeoutRef.current);
|
|
11760
|
+
contentClickRef.current = true;
|
|
11761
|
+
};
|
|
11762
|
+
var onContentMouseUp = function onContentMouseUp2() {
|
|
11763
|
+
contentTimeoutRef.current = setTimeout(function() {
|
|
11764
|
+
contentClickRef.current = false;
|
|
11765
|
+
});
|
|
11766
|
+
};
|
|
11767
|
+
var onWrapperClick = null;
|
|
11768
|
+
if (maskClosable) {
|
|
11769
|
+
onWrapperClick = function onWrapperClick2(e3) {
|
|
11770
|
+
if (contentClickRef.current) {
|
|
11771
|
+
contentClickRef.current = false;
|
|
11772
|
+
} else if (wrapperRef.current === e3.target) {
|
|
11773
|
+
onInternalClose(e3);
|
|
11774
|
+
}
|
|
11775
|
+
};
|
|
11776
|
+
}
|
|
11777
|
+
function onWrapperKeyDown(e3) {
|
|
11778
|
+
if (keyboard && e3.keyCode === KeyCode.ESC) {
|
|
11779
|
+
e3.stopPropagation();
|
|
11780
|
+
onInternalClose(e3);
|
|
11781
|
+
return;
|
|
11782
|
+
}
|
|
11783
|
+
if (visible && e3.keyCode === KeyCode.TAB) {
|
|
11784
|
+
contentRef.current.changeActive(!e3.shiftKey);
|
|
11785
|
+
}
|
|
11786
|
+
}
|
|
11787
|
+
React.useEffect(function() {
|
|
11788
|
+
if (visible) {
|
|
11789
|
+
setAnimatedVisible(true);
|
|
11790
|
+
saveLastOutSideActiveElementRef();
|
|
11791
|
+
}
|
|
11792
|
+
}, [visible]);
|
|
11793
|
+
React.useEffect(function() {
|
|
11794
|
+
return function() {
|
|
11795
|
+
clearTimeout(contentTimeoutRef.current);
|
|
11796
|
+
};
|
|
11797
|
+
}, []);
|
|
11798
|
+
var mergedStyle = _objectSpread2(_objectSpread2(_objectSpread2({
|
|
11799
|
+
zIndex
|
|
11800
|
+
}, wrapStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.wrapper), {}, {
|
|
11801
|
+
display: !animatedVisible ? "none" : null
|
|
11802
|
+
});
|
|
11803
|
+
return /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
|
|
11804
|
+
className: classNames("".concat(prefixCls, "-root"), rootClassName)
|
|
11805
|
+
}, pickAttrs(props, {
|
|
11806
|
+
data: true
|
|
11807
|
+
})), /* @__PURE__ */ React__namespace.createElement(Mask$1, {
|
|
11808
|
+
prefixCls,
|
|
11809
|
+
visible: mask && visible,
|
|
11810
|
+
motionName: getMotionName(prefixCls, maskTransitionName, maskAnimation),
|
|
11811
|
+
style: _objectSpread2(_objectSpread2({
|
|
11812
|
+
zIndex
|
|
11813
|
+
}, maskStyle), modalStyles === null || modalStyles === void 0 ? void 0 : modalStyles.mask),
|
|
11814
|
+
maskProps,
|
|
11815
|
+
className: modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.mask
|
|
11816
|
+
}), /* @__PURE__ */ React__namespace.createElement("div", _extends$1({
|
|
11817
|
+
tabIndex: -1,
|
|
11818
|
+
onKeyDown: onWrapperKeyDown,
|
|
11819
|
+
className: classNames("".concat(prefixCls, "-wrap"), wrapClassName, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper),
|
|
11820
|
+
ref: wrapperRef,
|
|
11821
|
+
onClick: onWrapperClick,
|
|
11822
|
+
style: mergedStyle
|
|
11823
|
+
}, wrapProps), /* @__PURE__ */ React__namespace.createElement(Content$3, _extends$1({}, props, {
|
|
11824
|
+
onMouseDown: onContentMouseDown,
|
|
11825
|
+
onMouseUp: onContentMouseUp,
|
|
11826
|
+
ref: contentRef,
|
|
11827
|
+
closable,
|
|
11828
|
+
ariaId,
|
|
11829
|
+
prefixCls,
|
|
11830
|
+
visible: visible && animatedVisible,
|
|
11831
|
+
onClose: onInternalClose,
|
|
11832
|
+
onVisibleChanged: onDialogVisibleChanged,
|
|
11833
|
+
motionName: getMotionName(prefixCls, transitionName, animation)
|
|
11834
|
+
}))));
|
|
11835
|
+
};
|
|
11836
|
+
var DialogWrap = function DialogWrap2(props) {
|
|
11837
|
+
var visible = props.visible, getContainer2 = props.getContainer, forceRender = props.forceRender, _props$destroyOnClose = props.destroyOnClose, destroyOnClose = _props$destroyOnClose === void 0 ? false : _props$destroyOnClose, _afterClose = props.afterClose, panelRef = props.panelRef;
|
|
11838
|
+
var _React$useState = React__namespace.useState(visible), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
|
|
11839
|
+
var refContext = React__namespace.useMemo(function() {
|
|
11840
|
+
return {
|
|
11841
|
+
panel: panelRef
|
|
11842
|
+
};
|
|
11843
|
+
}, [panelRef]);
|
|
11844
|
+
React__namespace.useEffect(function() {
|
|
11845
|
+
if (visible) {
|
|
11846
|
+
setAnimatedVisible(true);
|
|
11847
|
+
}
|
|
11848
|
+
}, [visible]);
|
|
11849
|
+
if (!forceRender && destroyOnClose && !animatedVisible) {
|
|
11850
|
+
return null;
|
|
11851
|
+
}
|
|
11852
|
+
return /* @__PURE__ */ React__namespace.createElement(RefContext$1.Provider, {
|
|
11853
|
+
value: refContext
|
|
11854
|
+
}, /* @__PURE__ */ React__namespace.createElement(Portal, {
|
|
11855
|
+
open: visible || forceRender || animatedVisible,
|
|
11856
|
+
autoDestroy: false,
|
|
11857
|
+
getContainer: getContainer2,
|
|
11858
|
+
autoLock: visible || animatedVisible
|
|
11859
|
+
}, /* @__PURE__ */ React__namespace.createElement(Dialog, _extends$1({}, props, {
|
|
11860
|
+
destroyOnClose,
|
|
11861
|
+
afterClose: function afterClose() {
|
|
11862
|
+
_afterClose === null || _afterClose === void 0 || _afterClose();
|
|
11863
|
+
setAnimatedVisible(false);
|
|
11864
|
+
}
|
|
11865
|
+
}))));
|
|
11866
|
+
};
|
|
11867
|
+
DialogWrap.displayName = "Dialog";
|
|
11375
11868
|
var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
|
|
11376
11869
|
var warningFunc = function warningFunc2() {
|
|
11377
11870
|
warningOnce(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
@@ -14673,6 +15166,7 @@ function isStyleSupport(styleName, styleValue2) {
|
|
|
14673
15166
|
}
|
|
14674
15167
|
return isStyleNameSupport(styleName);
|
|
14675
15168
|
}
|
|
15169
|
+
const canUseDocElement = () => canUseDom() && window.document.documentElement;
|
|
14676
15170
|
const Element$1 = (props) => {
|
|
14677
15171
|
const {
|
|
14678
15172
|
prefixCls,
|
|
@@ -14966,7 +15460,7 @@ const genBaseStyle$8 = (token2) => {
|
|
|
14966
15460
|
}
|
|
14967
15461
|
};
|
|
14968
15462
|
};
|
|
14969
|
-
const prepareComponentToken$
|
|
15463
|
+
const prepareComponentToken$p = (token2) => {
|
|
14970
15464
|
const {
|
|
14971
15465
|
colorFillContent,
|
|
14972
15466
|
colorFill
|
|
@@ -14984,7 +15478,7 @@ const prepareComponentToken$o = (token2) => {
|
|
|
14984
15478
|
paragraphLiHeight: token2.controlHeight / 2
|
|
14985
15479
|
};
|
|
14986
15480
|
};
|
|
14987
|
-
const useStyle$
|
|
15481
|
+
const useStyle$t = genStyleHooks("Skeleton", (token2) => {
|
|
14988
15482
|
const {
|
|
14989
15483
|
componentCls,
|
|
14990
15484
|
calc
|
|
@@ -15003,7 +15497,7 @@ const useStyle$s = genStyleHooks("Skeleton", (token2) => {
|
|
|
15003
15497
|
skeletonLoadingMotionDuration: "1.4s"
|
|
15004
15498
|
});
|
|
15005
15499
|
return genBaseStyle$8(skeletonToken);
|
|
15006
|
-
}, prepareComponentToken$
|
|
15500
|
+
}, prepareComponentToken$p, {
|
|
15007
15501
|
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
15008
15502
|
});
|
|
15009
15503
|
const SkeletonAvatar = (props) => {
|
|
@@ -15019,7 +15513,7 @@ const SkeletonAvatar = (props) => {
|
|
|
15019
15513
|
getPrefixCls
|
|
15020
15514
|
} = React__namespace.useContext(ConfigContext);
|
|
15021
15515
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15022
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15516
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15023
15517
|
const otherProps = omit(props, ["prefixCls", "className"]);
|
|
15024
15518
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15025
15519
|
[`${prefixCls}-active`]: active
|
|
@@ -15045,7 +15539,7 @@ const SkeletonButton = (props) => {
|
|
|
15045
15539
|
getPrefixCls
|
|
15046
15540
|
} = React__namespace.useContext(ConfigContext);
|
|
15047
15541
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15048
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15542
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15049
15543
|
const otherProps = omit(props, ["prefixCls"]);
|
|
15050
15544
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15051
15545
|
[`${prefixCls}-active`]: active,
|
|
@@ -15071,7 +15565,7 @@ const SkeletonImage = (props) => {
|
|
|
15071
15565
|
getPrefixCls
|
|
15072
15566
|
} = React__namespace.useContext(ConfigContext);
|
|
15073
15567
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15074
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15568
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15075
15569
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15076
15570
|
[`${prefixCls}-active`]: active
|
|
15077
15571
|
}, className, rootClassName, hashId, cssVarCls);
|
|
@@ -15102,7 +15596,7 @@ const SkeletonInput = (props) => {
|
|
|
15102
15596
|
getPrefixCls
|
|
15103
15597
|
} = React__namespace.useContext(ConfigContext);
|
|
15104
15598
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15105
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15599
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15106
15600
|
const otherProps = omit(props, ["prefixCls"]);
|
|
15107
15601
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15108
15602
|
[`${prefixCls}-active`]: active,
|
|
@@ -15128,7 +15622,7 @@ const SkeletonNode = (props) => {
|
|
|
15128
15622
|
getPrefixCls
|
|
15129
15623
|
} = React__namespace.useContext(ConfigContext);
|
|
15130
15624
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15131
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15625
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15132
15626
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15133
15627
|
[`${prefixCls}-active`]: active
|
|
15134
15628
|
}, hashId, className, rootClassName, cssVarCls);
|
|
@@ -15253,7 +15747,7 @@ const Skeleton$1 = (props) => {
|
|
|
15253
15747
|
style: contextStyle
|
|
15254
15748
|
} = useComponentConfig("skeleton");
|
|
15255
15749
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15256
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15750
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
15257
15751
|
if (loading || !("loading" in props)) {
|
|
15258
15752
|
const hasAvatar = !!avatar;
|
|
15259
15753
|
const hasTitle = !!title;
|
|
@@ -15319,7 +15813,7 @@ function usePanelRef(panelSelector) {
|
|
|
15319
15813
|
const panelEleRef = React__namespace.useRef(null);
|
|
15320
15814
|
const panelRef = useEvent((ele) => {
|
|
15321
15815
|
if (ele) {
|
|
15322
|
-
const innerContentEle = ele;
|
|
15816
|
+
const innerContentEle = panelSelector ? ele.querySelector(panelSelector) : ele;
|
|
15323
15817
|
watermark.add(innerContentEle);
|
|
15324
15818
|
panelEleRef.current = innerContentEle;
|
|
15325
15819
|
} else {
|
|
@@ -15328,6 +15822,81 @@ function usePanelRef(panelSelector) {
|
|
|
15328
15822
|
});
|
|
15329
15823
|
return panelRef;
|
|
15330
15824
|
}
|
|
15825
|
+
const NormalCancelBtn = () => {
|
|
15826
|
+
const {
|
|
15827
|
+
cancelButtonProps,
|
|
15828
|
+
cancelTextLocale,
|
|
15829
|
+
onCancel
|
|
15830
|
+
} = React.useContext(ModalContext);
|
|
15831
|
+
return /* @__PURE__ */ React.createElement(Button$4, Object.assign({
|
|
15832
|
+
onClick: onCancel
|
|
15833
|
+
}, cancelButtonProps), cancelTextLocale);
|
|
15834
|
+
};
|
|
15835
|
+
const NormalOkBtn = () => {
|
|
15836
|
+
const {
|
|
15837
|
+
confirmLoading,
|
|
15838
|
+
okButtonProps,
|
|
15839
|
+
okType,
|
|
15840
|
+
okTextLocale,
|
|
15841
|
+
onOk
|
|
15842
|
+
} = React.useContext(ModalContext);
|
|
15843
|
+
return /* @__PURE__ */ React.createElement(Button$4, Object.assign({}, convertLegacyProps(okType), {
|
|
15844
|
+
loading: confirmLoading,
|
|
15845
|
+
onClick: onOk
|
|
15846
|
+
}, okButtonProps), okTextLocale);
|
|
15847
|
+
};
|
|
15848
|
+
function renderCloseIcon(prefixCls, closeIcon) {
|
|
15849
|
+
return /* @__PURE__ */ React.createElement("span", {
|
|
15850
|
+
className: `${prefixCls}-close-x`
|
|
15851
|
+
}, closeIcon || /* @__PURE__ */ React.createElement(RefIcon$D, {
|
|
15852
|
+
className: `${prefixCls}-close-icon`
|
|
15853
|
+
}));
|
|
15854
|
+
}
|
|
15855
|
+
const Footer$3 = (props) => {
|
|
15856
|
+
const {
|
|
15857
|
+
okText,
|
|
15858
|
+
okType = "primary",
|
|
15859
|
+
cancelText,
|
|
15860
|
+
confirmLoading,
|
|
15861
|
+
onOk,
|
|
15862
|
+
onCancel,
|
|
15863
|
+
okButtonProps,
|
|
15864
|
+
cancelButtonProps,
|
|
15865
|
+
footer: footer2
|
|
15866
|
+
} = props;
|
|
15867
|
+
const [locale2] = useLocale$1("Modal", getConfirmLocale());
|
|
15868
|
+
const okTextLocale = okText || (locale2 === null || locale2 === void 0 ? void 0 : locale2.okText);
|
|
15869
|
+
const cancelTextLocale = cancelText || (locale2 === null || locale2 === void 0 ? void 0 : locale2.cancelText);
|
|
15870
|
+
const btnCtxValue = {
|
|
15871
|
+
confirmLoading,
|
|
15872
|
+
okButtonProps,
|
|
15873
|
+
cancelButtonProps,
|
|
15874
|
+
okTextLocale,
|
|
15875
|
+
cancelTextLocale,
|
|
15876
|
+
okType,
|
|
15877
|
+
onOk,
|
|
15878
|
+
onCancel
|
|
15879
|
+
};
|
|
15880
|
+
const btnCtxValueMemo = React.useMemo(() => btnCtxValue, _toConsumableArray(Object.values(btnCtxValue)));
|
|
15881
|
+
let footerNode;
|
|
15882
|
+
if (typeof footer2 === "function" || typeof footer2 === "undefined") {
|
|
15883
|
+
footerNode = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(NormalCancelBtn, null), /* @__PURE__ */ React.createElement(NormalOkBtn, null));
|
|
15884
|
+
if (typeof footer2 === "function") {
|
|
15885
|
+
footerNode = footer2(footerNode, {
|
|
15886
|
+
OkBtn: NormalOkBtn,
|
|
15887
|
+
CancelBtn: NormalCancelBtn
|
|
15888
|
+
});
|
|
15889
|
+
}
|
|
15890
|
+
footerNode = /* @__PURE__ */ React.createElement(ModalContextProvider, {
|
|
15891
|
+
value: btnCtxValueMemo
|
|
15892
|
+
}, footerNode);
|
|
15893
|
+
} else {
|
|
15894
|
+
footerNode = footer2;
|
|
15895
|
+
}
|
|
15896
|
+
return /* @__PURE__ */ React.createElement(DisabledContextProvider, {
|
|
15897
|
+
disabled: false
|
|
15898
|
+
}, footerNode);
|
|
15899
|
+
};
|
|
15331
15900
|
const genGridRowStyle = (token2) => {
|
|
15332
15901
|
const {
|
|
15333
15902
|
componentCls
|
|
@@ -15485,6 +16054,1002 @@ const useColStyle = genStyleHooks("Grid", (token2) => {
|
|
|
15485
16054
|
delete gridMediaSizesMap.xs;
|
|
15486
16055
|
return [genGridColStyle(gridToken), genGridStyle(gridToken, ""), genGridStyle(gridToken, "-xs"), Object.keys(gridMediaSizesMap).map((key) => genGridMediaStyle(gridToken, gridMediaSizesMap[key], `-${key}`)).reduce((pre, cur) => Object.assign(Object.assign({}, pre), cur), {})];
|
|
15487
16056
|
}, prepareColComponentToken);
|
|
16057
|
+
function box(position2) {
|
|
16058
|
+
return {
|
|
16059
|
+
position: position2,
|
|
16060
|
+
inset: 0
|
|
16061
|
+
};
|
|
16062
|
+
}
|
|
16063
|
+
const genModalMaskStyle = (token2) => {
|
|
16064
|
+
const {
|
|
16065
|
+
componentCls,
|
|
16066
|
+
antCls
|
|
16067
|
+
} = token2;
|
|
16068
|
+
return [{
|
|
16069
|
+
[`${componentCls}-root`]: {
|
|
16070
|
+
[`${componentCls}${antCls}-zoom-enter, ${componentCls}${antCls}-zoom-appear`]: {
|
|
16071
|
+
// reset scale avoid mousePosition bug
|
|
16072
|
+
transform: "none",
|
|
16073
|
+
opacity: 0,
|
|
16074
|
+
animationDuration: token2.motionDurationSlow,
|
|
16075
|
+
// https://github.com/ant-design/ant-design/issues/11777
|
|
16076
|
+
userSelect: "none"
|
|
16077
|
+
},
|
|
16078
|
+
// https://github.com/ant-design/ant-design/issues/37329
|
|
16079
|
+
// https://github.com/ant-design/ant-design/issues/40272
|
|
16080
|
+
[`${componentCls}${antCls}-zoom-leave ${componentCls}-content`]: {
|
|
16081
|
+
pointerEvents: "none"
|
|
16082
|
+
},
|
|
16083
|
+
[`${componentCls}-mask`]: Object.assign(Object.assign({}, box("fixed")), {
|
|
16084
|
+
zIndex: token2.zIndexPopupBase,
|
|
16085
|
+
height: "100%",
|
|
16086
|
+
backgroundColor: token2.colorBgMask,
|
|
16087
|
+
pointerEvents: "none",
|
|
16088
|
+
[`${componentCls}-hidden`]: {
|
|
16089
|
+
display: "none"
|
|
16090
|
+
}
|
|
16091
|
+
}),
|
|
16092
|
+
[`${componentCls}-wrap`]: Object.assign(Object.assign({}, box("fixed")), {
|
|
16093
|
+
zIndex: token2.zIndexPopupBase,
|
|
16094
|
+
overflow: "auto",
|
|
16095
|
+
outline: 0,
|
|
16096
|
+
WebkitOverflowScrolling: "touch"
|
|
16097
|
+
})
|
|
16098
|
+
}
|
|
16099
|
+
}, {
|
|
16100
|
+
[`${componentCls}-root`]: initFadeMotion(token2)
|
|
16101
|
+
}];
|
|
16102
|
+
};
|
|
16103
|
+
const genModalStyle = (token2) => {
|
|
16104
|
+
const {
|
|
16105
|
+
componentCls
|
|
16106
|
+
} = token2;
|
|
16107
|
+
return [
|
|
16108
|
+
// ======================== Root =========================
|
|
16109
|
+
{
|
|
16110
|
+
[`${componentCls}-root`]: {
|
|
16111
|
+
[`${componentCls}-wrap-rtl`]: {
|
|
16112
|
+
direction: "rtl"
|
|
16113
|
+
},
|
|
16114
|
+
[`${componentCls}-centered`]: {
|
|
16115
|
+
textAlign: "center",
|
|
16116
|
+
"&::before": {
|
|
16117
|
+
display: "inline-block",
|
|
16118
|
+
width: 0,
|
|
16119
|
+
height: "100%",
|
|
16120
|
+
verticalAlign: "middle",
|
|
16121
|
+
content: '""'
|
|
16122
|
+
},
|
|
16123
|
+
[componentCls]: {
|
|
16124
|
+
top: 0,
|
|
16125
|
+
display: "inline-block",
|
|
16126
|
+
paddingBottom: 0,
|
|
16127
|
+
textAlign: "start",
|
|
16128
|
+
verticalAlign: "middle"
|
|
16129
|
+
}
|
|
16130
|
+
},
|
|
16131
|
+
[`@media (max-width: ${token2.screenSMMax}px)`]: {
|
|
16132
|
+
[componentCls]: {
|
|
16133
|
+
maxWidth: "calc(100vw - 16px)",
|
|
16134
|
+
margin: `${unit$2(token2.marginXS)} auto`
|
|
16135
|
+
},
|
|
16136
|
+
[`${componentCls}-centered`]: {
|
|
16137
|
+
[componentCls]: {
|
|
16138
|
+
flex: 1
|
|
16139
|
+
}
|
|
16140
|
+
}
|
|
16141
|
+
}
|
|
16142
|
+
}
|
|
16143
|
+
},
|
|
16144
|
+
// ======================== Modal ========================
|
|
16145
|
+
{
|
|
16146
|
+
[componentCls]: Object.assign(Object.assign({}, resetComponent(token2)), {
|
|
16147
|
+
pointerEvents: "none",
|
|
16148
|
+
position: "relative",
|
|
16149
|
+
top: 100,
|
|
16150
|
+
width: "auto",
|
|
16151
|
+
maxWidth: `calc(100vw - ${unit$2(token2.calc(token2.margin).mul(2).equal())})`,
|
|
16152
|
+
margin: "0 auto",
|
|
16153
|
+
paddingBottom: token2.paddingLG,
|
|
16154
|
+
[`${componentCls}-title`]: {
|
|
16155
|
+
margin: 0,
|
|
16156
|
+
color: token2.titleColor,
|
|
16157
|
+
fontWeight: token2.fontWeightStrong,
|
|
16158
|
+
fontSize: token2.titleFontSize,
|
|
16159
|
+
lineHeight: token2.titleLineHeight,
|
|
16160
|
+
wordWrap: "break-word"
|
|
16161
|
+
},
|
|
16162
|
+
[`${componentCls}-content`]: {
|
|
16163
|
+
position: "relative",
|
|
16164
|
+
backgroundColor: token2.contentBg,
|
|
16165
|
+
backgroundClip: "padding-box",
|
|
16166
|
+
border: 0,
|
|
16167
|
+
borderRadius: token2.borderRadiusLG,
|
|
16168
|
+
boxShadow: token2.boxShadow,
|
|
16169
|
+
pointerEvents: "auto",
|
|
16170
|
+
padding: token2.contentPadding
|
|
16171
|
+
},
|
|
16172
|
+
[`${componentCls}-close`]: Object.assign({
|
|
16173
|
+
position: "absolute",
|
|
16174
|
+
top: token2.calc(token2.modalHeaderHeight).sub(token2.modalCloseBtnSize).div(2).equal(),
|
|
16175
|
+
insetInlineEnd: token2.calc(token2.modalHeaderHeight).sub(token2.modalCloseBtnSize).div(2).equal(),
|
|
16176
|
+
zIndex: token2.calc(token2.zIndexPopupBase).add(10).equal(),
|
|
16177
|
+
padding: 0,
|
|
16178
|
+
color: token2.modalCloseIconColor,
|
|
16179
|
+
fontWeight: token2.fontWeightStrong,
|
|
16180
|
+
lineHeight: 1,
|
|
16181
|
+
textDecoration: "none",
|
|
16182
|
+
background: "transparent",
|
|
16183
|
+
borderRadius: token2.borderRadiusSM,
|
|
16184
|
+
width: token2.modalCloseBtnSize,
|
|
16185
|
+
height: token2.modalCloseBtnSize,
|
|
16186
|
+
border: 0,
|
|
16187
|
+
outline: 0,
|
|
16188
|
+
cursor: "pointer",
|
|
16189
|
+
transition: `color ${token2.motionDurationMid}, background-color ${token2.motionDurationMid}`,
|
|
16190
|
+
"&-x": {
|
|
16191
|
+
display: "flex",
|
|
16192
|
+
fontSize: token2.fontSizeLG,
|
|
16193
|
+
fontStyle: "normal",
|
|
16194
|
+
lineHeight: unit$2(token2.modalCloseBtnSize),
|
|
16195
|
+
justifyContent: "center",
|
|
16196
|
+
textTransform: "none",
|
|
16197
|
+
textRendering: "auto"
|
|
16198
|
+
},
|
|
16199
|
+
"&:disabled": {
|
|
16200
|
+
pointerEvents: "none"
|
|
16201
|
+
},
|
|
16202
|
+
"&:hover": {
|
|
16203
|
+
color: token2.modalCloseIconHoverColor,
|
|
16204
|
+
backgroundColor: token2.colorBgTextHover,
|
|
16205
|
+
textDecoration: "none"
|
|
16206
|
+
},
|
|
16207
|
+
"&:active": {
|
|
16208
|
+
backgroundColor: token2.colorBgTextActive
|
|
16209
|
+
}
|
|
16210
|
+
}, genFocusStyle(token2)),
|
|
16211
|
+
[`${componentCls}-header`]: {
|
|
16212
|
+
color: token2.colorText,
|
|
16213
|
+
background: token2.headerBg,
|
|
16214
|
+
borderRadius: `${unit$2(token2.borderRadiusLG)} ${unit$2(token2.borderRadiusLG)} 0 0`,
|
|
16215
|
+
marginBottom: token2.headerMarginBottom,
|
|
16216
|
+
padding: token2.headerPadding,
|
|
16217
|
+
borderBottom: token2.headerBorderBottom
|
|
16218
|
+
},
|
|
16219
|
+
[`${componentCls}-body`]: {
|
|
16220
|
+
fontSize: token2.fontSize,
|
|
16221
|
+
lineHeight: token2.lineHeight,
|
|
16222
|
+
wordWrap: "break-word",
|
|
16223
|
+
padding: token2.bodyPadding,
|
|
16224
|
+
[`${componentCls}-body-skeleton`]: {
|
|
16225
|
+
width: "100%",
|
|
16226
|
+
height: "100%",
|
|
16227
|
+
display: "flex",
|
|
16228
|
+
justifyContent: "center",
|
|
16229
|
+
alignItems: "center",
|
|
16230
|
+
margin: `${unit$2(token2.margin)} auto`
|
|
16231
|
+
}
|
|
16232
|
+
},
|
|
16233
|
+
[`${componentCls}-footer`]: {
|
|
16234
|
+
textAlign: "end",
|
|
16235
|
+
background: token2.footerBg,
|
|
16236
|
+
marginTop: token2.footerMarginTop,
|
|
16237
|
+
padding: token2.footerPadding,
|
|
16238
|
+
borderTop: token2.footerBorderTop,
|
|
16239
|
+
borderRadius: token2.footerBorderRadius,
|
|
16240
|
+
[`> ${token2.antCls}-btn + ${token2.antCls}-btn`]: {
|
|
16241
|
+
marginInlineStart: token2.marginXS
|
|
16242
|
+
}
|
|
16243
|
+
},
|
|
16244
|
+
[`${componentCls}-open`]: {
|
|
16245
|
+
overflow: "hidden"
|
|
16246
|
+
}
|
|
16247
|
+
})
|
|
16248
|
+
},
|
|
16249
|
+
// ======================== Pure =========================
|
|
16250
|
+
{
|
|
16251
|
+
[`${componentCls}-pure-panel`]: {
|
|
16252
|
+
top: "auto",
|
|
16253
|
+
padding: 0,
|
|
16254
|
+
display: "flex",
|
|
16255
|
+
flexDirection: "column",
|
|
16256
|
+
[`${componentCls}-content,
|
|
16257
|
+
${componentCls}-body,
|
|
16258
|
+
${componentCls}-confirm-body-wrapper`]: {
|
|
16259
|
+
display: "flex",
|
|
16260
|
+
flexDirection: "column",
|
|
16261
|
+
flex: "auto"
|
|
16262
|
+
},
|
|
16263
|
+
[`${componentCls}-confirm-body`]: {
|
|
16264
|
+
marginBottom: "auto"
|
|
16265
|
+
}
|
|
16266
|
+
}
|
|
16267
|
+
}
|
|
16268
|
+
];
|
|
16269
|
+
};
|
|
16270
|
+
const genRTLStyle = (token2) => {
|
|
16271
|
+
const {
|
|
16272
|
+
componentCls
|
|
16273
|
+
} = token2;
|
|
16274
|
+
return {
|
|
16275
|
+
[`${componentCls}-root`]: {
|
|
16276
|
+
[`${componentCls}-wrap-rtl`]: {
|
|
16277
|
+
direction: "rtl",
|
|
16278
|
+
[`${componentCls}-confirm-body`]: {
|
|
16279
|
+
direction: "rtl"
|
|
16280
|
+
}
|
|
16281
|
+
}
|
|
16282
|
+
}
|
|
16283
|
+
};
|
|
16284
|
+
};
|
|
16285
|
+
const genResponsiveWidthStyle = (token2) => {
|
|
16286
|
+
const {
|
|
16287
|
+
componentCls
|
|
16288
|
+
} = token2;
|
|
16289
|
+
const oriGridMediaSizesMap = getMediaSize(token2);
|
|
16290
|
+
const gridMediaSizesMap = Object.assign({}, oriGridMediaSizesMap);
|
|
16291
|
+
delete gridMediaSizesMap.xs;
|
|
16292
|
+
const cssVarPrefix = `--${componentCls.replace(".", "")}-`;
|
|
16293
|
+
const responsiveStyles = Object.keys(gridMediaSizesMap).map((key) => ({
|
|
16294
|
+
[`@media (min-width: ${unit$2(gridMediaSizesMap[key])})`]: {
|
|
16295
|
+
width: `var(${cssVarPrefix}${key}-width)`
|
|
16296
|
+
}
|
|
16297
|
+
}));
|
|
16298
|
+
return {
|
|
16299
|
+
[`${componentCls}-root`]: {
|
|
16300
|
+
[componentCls]: [].concat(_toConsumableArray(Object.keys(oriGridMediaSizesMap).map((currentKey, index2) => {
|
|
16301
|
+
const previousKey = Object.keys(oriGridMediaSizesMap)[index2 - 1];
|
|
16302
|
+
return previousKey ? {
|
|
16303
|
+
[`${cssVarPrefix}${currentKey}-width`]: `var(${cssVarPrefix}${previousKey}-width)`
|
|
16304
|
+
} : null;
|
|
16305
|
+
})), [{
|
|
16306
|
+
width: `var(${cssVarPrefix}xs-width)`
|
|
16307
|
+
}], _toConsumableArray(responsiveStyles))
|
|
16308
|
+
}
|
|
16309
|
+
};
|
|
16310
|
+
};
|
|
16311
|
+
const prepareToken$2 = (token2) => {
|
|
16312
|
+
const headerPaddingVertical = token2.padding;
|
|
16313
|
+
const headerFontSize = token2.fontSizeHeading5;
|
|
16314
|
+
const headerLineHeight = token2.lineHeightHeading5;
|
|
16315
|
+
const modalToken = merge$1(token2, {
|
|
16316
|
+
modalHeaderHeight: token2.calc(token2.calc(headerLineHeight).mul(headerFontSize).equal()).add(token2.calc(headerPaddingVertical).mul(2).equal()).equal(),
|
|
16317
|
+
modalFooterBorderColorSplit: token2.colorSplit,
|
|
16318
|
+
modalFooterBorderStyle: token2.lineType,
|
|
16319
|
+
modalFooterBorderWidth: token2.lineWidth,
|
|
16320
|
+
modalCloseIconColor: token2.colorIcon,
|
|
16321
|
+
modalCloseIconHoverColor: token2.colorIconHover,
|
|
16322
|
+
modalCloseBtnSize: token2.controlHeight,
|
|
16323
|
+
modalConfirmIconSize: token2.fontHeight,
|
|
16324
|
+
modalTitleHeight: token2.calc(token2.titleFontSize).mul(token2.titleLineHeight).equal()
|
|
16325
|
+
});
|
|
16326
|
+
return modalToken;
|
|
16327
|
+
};
|
|
16328
|
+
const prepareComponentToken$o = (token2) => ({
|
|
16329
|
+
footerBg: "transparent",
|
|
16330
|
+
headerBg: token2.colorBgElevated,
|
|
16331
|
+
titleLineHeight: token2.lineHeightHeading5,
|
|
16332
|
+
titleFontSize: token2.fontSizeHeading5,
|
|
16333
|
+
contentBg: token2.colorBgElevated,
|
|
16334
|
+
titleColor: token2.colorTextHeading,
|
|
16335
|
+
// internal
|
|
16336
|
+
contentPadding: token2.wireframe ? 0 : `${unit$2(token2.paddingMD)} ${unit$2(token2.paddingContentHorizontalLG)}`,
|
|
16337
|
+
headerPadding: token2.wireframe ? `${unit$2(token2.padding)} ${unit$2(token2.paddingLG)}` : 0,
|
|
16338
|
+
headerBorderBottom: token2.wireframe ? `${unit$2(token2.lineWidth)} ${token2.lineType} ${token2.colorSplit}` : "none",
|
|
16339
|
+
headerMarginBottom: token2.wireframe ? 0 : token2.marginXS,
|
|
16340
|
+
bodyPadding: token2.wireframe ? token2.paddingLG : 0,
|
|
16341
|
+
footerPadding: token2.wireframe ? `${unit$2(token2.paddingXS)} ${unit$2(token2.padding)}` : 0,
|
|
16342
|
+
footerBorderTop: token2.wireframe ? `${unit$2(token2.lineWidth)} ${token2.lineType} ${token2.colorSplit}` : "none",
|
|
16343
|
+
footerBorderRadius: token2.wireframe ? `0 0 ${unit$2(token2.borderRadiusLG)} ${unit$2(token2.borderRadiusLG)}` : 0,
|
|
16344
|
+
footerMarginTop: token2.wireframe ? 0 : token2.marginSM,
|
|
16345
|
+
confirmBodyPadding: token2.wireframe ? `${unit$2(token2.padding * 2)} ${unit$2(token2.padding * 2)} ${unit$2(token2.paddingLG)}` : 0,
|
|
16346
|
+
confirmIconMarginInlineEnd: token2.wireframe ? token2.margin : token2.marginSM,
|
|
16347
|
+
confirmBtnsMarginTop: token2.wireframe ? token2.marginLG : token2.marginSM
|
|
16348
|
+
});
|
|
16349
|
+
const useStyle$s = genStyleHooks("Modal", (token2) => {
|
|
16350
|
+
const modalToken = prepareToken$2(token2);
|
|
16351
|
+
return [genModalStyle(modalToken), genRTLStyle(modalToken), genModalMaskStyle(modalToken), initZoomMotion(modalToken, "zoom"), genResponsiveWidthStyle(modalToken)];
|
|
16352
|
+
}, prepareComponentToken$o, {
|
|
16353
|
+
unitless: {
|
|
16354
|
+
titleLineHeight: true
|
|
16355
|
+
}
|
|
16356
|
+
});
|
|
16357
|
+
var __rest$Y = function(s, e3) {
|
|
16358
|
+
var t2 = {};
|
|
16359
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
16360
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16361
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
16362
|
+
}
|
|
16363
|
+
return t2;
|
|
16364
|
+
};
|
|
16365
|
+
let mousePosition;
|
|
16366
|
+
const getClickPosition = (e3) => {
|
|
16367
|
+
mousePosition = {
|
|
16368
|
+
x: e3.pageX,
|
|
16369
|
+
y: e3.pageY
|
|
16370
|
+
};
|
|
16371
|
+
setTimeout(() => {
|
|
16372
|
+
mousePosition = null;
|
|
16373
|
+
}, 100);
|
|
16374
|
+
};
|
|
16375
|
+
if (canUseDocElement()) {
|
|
16376
|
+
document.documentElement.addEventListener("click", getClickPosition, true);
|
|
16377
|
+
}
|
|
16378
|
+
const Modal$2 = (props) => {
|
|
16379
|
+
const {
|
|
16380
|
+
prefixCls: customizePrefixCls,
|
|
16381
|
+
className,
|
|
16382
|
+
rootClassName,
|
|
16383
|
+
open,
|
|
16384
|
+
wrapClassName,
|
|
16385
|
+
centered,
|
|
16386
|
+
getContainer: getContainer2,
|
|
16387
|
+
focusTriggerAfterClose = true,
|
|
16388
|
+
style: style2,
|
|
16389
|
+
// Deprecated
|
|
16390
|
+
visible,
|
|
16391
|
+
width = 520,
|
|
16392
|
+
footer: footer2,
|
|
16393
|
+
classNames: modalClassNames,
|
|
16394
|
+
styles: modalStyles,
|
|
16395
|
+
children: children2,
|
|
16396
|
+
loading,
|
|
16397
|
+
confirmLoading,
|
|
16398
|
+
zIndex: customizeZIndex,
|
|
16399
|
+
mousePosition: customizeMousePosition,
|
|
16400
|
+
onOk,
|
|
16401
|
+
onCancel,
|
|
16402
|
+
destroyOnHidden,
|
|
16403
|
+
destroyOnClose,
|
|
16404
|
+
panelRef = null
|
|
16405
|
+
} = props, restProps = __rest$Y(props, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading", "confirmLoading", "zIndex", "mousePosition", "onOk", "onCancel", "destroyOnHidden", "destroyOnClose", "panelRef"]);
|
|
16406
|
+
const {
|
|
16407
|
+
getPopupContainer: getContextPopupContainer,
|
|
16408
|
+
getPrefixCls,
|
|
16409
|
+
direction,
|
|
16410
|
+
modal: modalContext
|
|
16411
|
+
} = React__namespace.useContext(ConfigContext);
|
|
16412
|
+
const handleCancel = (e3) => {
|
|
16413
|
+
if (confirmLoading) {
|
|
16414
|
+
return;
|
|
16415
|
+
}
|
|
16416
|
+
onCancel === null || onCancel === void 0 ? void 0 : onCancel(e3);
|
|
16417
|
+
};
|
|
16418
|
+
const handleOk = (e3) => {
|
|
16419
|
+
onOk === null || onOk === void 0 ? void 0 : onOk(e3);
|
|
16420
|
+
};
|
|
16421
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16422
|
+
const warning3 = devUseWarning("Modal");
|
|
16423
|
+
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"], ["destroyOnClose", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
|
|
16424
|
+
warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
16425
|
+
});
|
|
16426
|
+
}
|
|
16427
|
+
const prefixCls = getPrefixCls("modal", customizePrefixCls);
|
|
16428
|
+
const rootPrefixCls = getPrefixCls();
|
|
16429
|
+
const rootCls = useCSSVarCls(prefixCls);
|
|
16430
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls, rootCls);
|
|
16431
|
+
const wrapClassNameExtended = classNames(wrapClassName, {
|
|
16432
|
+
[`${prefixCls}-centered`]: centered !== null && centered !== void 0 ? centered : modalContext === null || modalContext === void 0 ? void 0 : modalContext.centered,
|
|
16433
|
+
[`${prefixCls}-wrap-rtl`]: direction === "rtl"
|
|
16434
|
+
});
|
|
16435
|
+
const dialogFooter = footer2 !== null && !loading ? /* @__PURE__ */ React__namespace.createElement(Footer$3, Object.assign({}, props, {
|
|
16436
|
+
onOk: handleOk,
|
|
16437
|
+
onCancel: handleCancel
|
|
16438
|
+
})) : null;
|
|
16439
|
+
const [mergedClosable, mergedCloseIcon, closeBtnIsDisabled, ariaProps] = useClosable(pickClosable(props), pickClosable(modalContext), {
|
|
16440
|
+
closable: true,
|
|
16441
|
+
closeIcon: /* @__PURE__ */ React__namespace.createElement(RefIcon$D, {
|
|
16442
|
+
className: `${prefixCls}-close-icon`
|
|
16443
|
+
}),
|
|
16444
|
+
closeIconRender: (icon) => renderCloseIcon(prefixCls, icon)
|
|
16445
|
+
});
|
|
16446
|
+
const innerPanelRef = usePanelRef(`.${prefixCls}-content`);
|
|
16447
|
+
const mergedPanelRef = composeRef(panelRef, innerPanelRef);
|
|
16448
|
+
const [zIndex, contextZIndex] = useZIndex("Modal", customizeZIndex);
|
|
16449
|
+
const [numWidth, responsiveWidth] = React__namespace.useMemo(() => {
|
|
16450
|
+
if (width && typeof width === "object") {
|
|
16451
|
+
return [void 0, width];
|
|
16452
|
+
}
|
|
16453
|
+
return [width, void 0];
|
|
16454
|
+
}, [width]);
|
|
16455
|
+
const responsiveWidthVars = React__namespace.useMemo(() => {
|
|
16456
|
+
const vars = {};
|
|
16457
|
+
if (responsiveWidth) {
|
|
16458
|
+
Object.keys(responsiveWidth).forEach((breakpoint) => {
|
|
16459
|
+
const breakpointWidth = responsiveWidth[breakpoint];
|
|
16460
|
+
if (breakpointWidth !== void 0) {
|
|
16461
|
+
vars[`--${prefixCls}-${breakpoint}-width`] = typeof breakpointWidth === "number" ? `${breakpointWidth}px` : breakpointWidth;
|
|
16462
|
+
}
|
|
16463
|
+
});
|
|
16464
|
+
}
|
|
16465
|
+
return vars;
|
|
16466
|
+
}, [responsiveWidth]);
|
|
16467
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(ContextIsolator, {
|
|
16468
|
+
form: true,
|
|
16469
|
+
space: true
|
|
16470
|
+
}, /* @__PURE__ */ React__namespace.createElement(zIndexContext.Provider, {
|
|
16471
|
+
value: contextZIndex
|
|
16472
|
+
}, /* @__PURE__ */ React__namespace.createElement(DialogWrap, Object.assign({
|
|
16473
|
+
width: numWidth
|
|
16474
|
+
}, restProps, {
|
|
16475
|
+
zIndex,
|
|
16476
|
+
getContainer: getContainer2 === void 0 ? getContextPopupContainer : getContainer2,
|
|
16477
|
+
prefixCls,
|
|
16478
|
+
rootClassName: classNames(hashId, rootClassName, cssVarCls, rootCls),
|
|
16479
|
+
footer: dialogFooter,
|
|
16480
|
+
visible: open !== null && open !== void 0 ? open : visible,
|
|
16481
|
+
mousePosition: customizeMousePosition !== null && customizeMousePosition !== void 0 ? customizeMousePosition : mousePosition,
|
|
16482
|
+
onClose: handleCancel,
|
|
16483
|
+
closable: mergedClosable ? Object.assign({
|
|
16484
|
+
disabled: closeBtnIsDisabled,
|
|
16485
|
+
closeIcon: mergedCloseIcon
|
|
16486
|
+
}, ariaProps) : mergedClosable,
|
|
16487
|
+
closeIcon: mergedCloseIcon,
|
|
16488
|
+
focusTriggerAfterClose,
|
|
16489
|
+
transitionName: getTransitionName(rootPrefixCls, "zoom", props.transitionName),
|
|
16490
|
+
maskTransitionName: getTransitionName(rootPrefixCls, "fade", props.maskTransitionName),
|
|
16491
|
+
className: classNames(hashId, className, modalContext === null || modalContext === void 0 ? void 0 : modalContext.className),
|
|
16492
|
+
style: Object.assign(Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.style), style2), responsiveWidthVars),
|
|
16493
|
+
classNames: Object.assign(Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.classNames), modalClassNames), {
|
|
16494
|
+
wrapper: classNames(wrapClassNameExtended, modalClassNames === null || modalClassNames === void 0 ? void 0 : modalClassNames.wrapper)
|
|
16495
|
+
}),
|
|
16496
|
+
styles: Object.assign(Object.assign({}, modalContext === null || modalContext === void 0 ? void 0 : modalContext.styles), modalStyles),
|
|
16497
|
+
panelRef: mergedPanelRef,
|
|
16498
|
+
// TODO: In the future, destroyOnClose in rc-dialog needs to be upgrade to destroyOnHidden
|
|
16499
|
+
destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
|
|
16500
|
+
}), loading ? /* @__PURE__ */ React__namespace.createElement(Skeleton$1, {
|
|
16501
|
+
active: true,
|
|
16502
|
+
title: false,
|
|
16503
|
+
paragraph: {
|
|
16504
|
+
rows: 4
|
|
16505
|
+
},
|
|
16506
|
+
className: `${prefixCls}-body-skeleton`
|
|
16507
|
+
}) : children2))));
|
|
16508
|
+
};
|
|
16509
|
+
const genModalConfirmStyle = (token2) => {
|
|
16510
|
+
const {
|
|
16511
|
+
componentCls,
|
|
16512
|
+
titleFontSize,
|
|
16513
|
+
titleLineHeight,
|
|
16514
|
+
modalConfirmIconSize,
|
|
16515
|
+
fontSize,
|
|
16516
|
+
lineHeight,
|
|
16517
|
+
modalTitleHeight,
|
|
16518
|
+
fontHeight,
|
|
16519
|
+
confirmBodyPadding
|
|
16520
|
+
} = token2;
|
|
16521
|
+
const confirmComponentCls = `${componentCls}-confirm`;
|
|
16522
|
+
return {
|
|
16523
|
+
[confirmComponentCls]: {
|
|
16524
|
+
"&-rtl": {
|
|
16525
|
+
direction: "rtl"
|
|
16526
|
+
},
|
|
16527
|
+
[`${token2.antCls}-modal-header`]: {
|
|
16528
|
+
display: "none"
|
|
16529
|
+
},
|
|
16530
|
+
[`${confirmComponentCls}-body-wrapper`]: Object.assign({}, clearFix()),
|
|
16531
|
+
[`&${componentCls} ${componentCls}-body`]: {
|
|
16532
|
+
padding: confirmBodyPadding
|
|
16533
|
+
},
|
|
16534
|
+
// ====================== Body ======================
|
|
16535
|
+
[`${confirmComponentCls}-body`]: {
|
|
16536
|
+
display: "flex",
|
|
16537
|
+
flexWrap: "nowrap",
|
|
16538
|
+
alignItems: "start",
|
|
16539
|
+
[`> ${token2.iconCls}`]: {
|
|
16540
|
+
flex: "none",
|
|
16541
|
+
fontSize: modalConfirmIconSize,
|
|
16542
|
+
marginInlineEnd: token2.confirmIconMarginInlineEnd,
|
|
16543
|
+
marginTop: token2.calc(token2.calc(fontHeight).sub(modalConfirmIconSize).equal()).div(2).equal()
|
|
16544
|
+
},
|
|
16545
|
+
[`&-has-title > ${token2.iconCls}`]: {
|
|
16546
|
+
marginTop: token2.calc(token2.calc(modalTitleHeight).sub(modalConfirmIconSize).equal()).div(2).equal()
|
|
16547
|
+
}
|
|
16548
|
+
},
|
|
16549
|
+
[`${confirmComponentCls}-paragraph`]: {
|
|
16550
|
+
display: "flex",
|
|
16551
|
+
flexDirection: "column",
|
|
16552
|
+
flex: "auto",
|
|
16553
|
+
rowGap: token2.marginXS,
|
|
16554
|
+
// https://github.com/ant-design/ant-design/issues/51912
|
|
16555
|
+
maxWidth: `calc(100% - ${unit$2(token2.marginSM)})`
|
|
16556
|
+
},
|
|
16557
|
+
// https://github.com/ant-design/ant-design/issues/48159
|
|
16558
|
+
[`${token2.iconCls} + ${confirmComponentCls}-paragraph`]: {
|
|
16559
|
+
maxWidth: `calc(100% - ${unit$2(token2.calc(token2.modalConfirmIconSize).add(token2.marginSM).equal())})`
|
|
16560
|
+
},
|
|
16561
|
+
[`${confirmComponentCls}-title`]: {
|
|
16562
|
+
color: token2.colorTextHeading,
|
|
16563
|
+
fontWeight: token2.fontWeightStrong,
|
|
16564
|
+
fontSize: titleFontSize,
|
|
16565
|
+
lineHeight: titleLineHeight
|
|
16566
|
+
},
|
|
16567
|
+
[`${confirmComponentCls}-content`]: {
|
|
16568
|
+
color: token2.colorText,
|
|
16569
|
+
fontSize,
|
|
16570
|
+
lineHeight
|
|
16571
|
+
},
|
|
16572
|
+
// ===================== Footer =====================
|
|
16573
|
+
[`${confirmComponentCls}-btns`]: {
|
|
16574
|
+
textAlign: "end",
|
|
16575
|
+
marginTop: token2.confirmBtnsMarginTop,
|
|
16576
|
+
[`${token2.antCls}-btn + ${token2.antCls}-btn`]: {
|
|
16577
|
+
marginBottom: 0,
|
|
16578
|
+
marginInlineStart: token2.marginXS
|
|
16579
|
+
}
|
|
16580
|
+
}
|
|
16581
|
+
},
|
|
16582
|
+
[`${confirmComponentCls}-error ${confirmComponentCls}-body > ${token2.iconCls}`]: {
|
|
16583
|
+
color: token2.colorError
|
|
16584
|
+
},
|
|
16585
|
+
[`${confirmComponentCls}-warning ${confirmComponentCls}-body > ${token2.iconCls},
|
|
16586
|
+
${confirmComponentCls}-confirm ${confirmComponentCls}-body > ${token2.iconCls}`]: {
|
|
16587
|
+
color: token2.colorWarning
|
|
16588
|
+
},
|
|
16589
|
+
[`${confirmComponentCls}-info ${confirmComponentCls}-body > ${token2.iconCls}`]: {
|
|
16590
|
+
color: token2.colorInfo
|
|
16591
|
+
},
|
|
16592
|
+
[`${confirmComponentCls}-success ${confirmComponentCls}-body > ${token2.iconCls}`]: {
|
|
16593
|
+
color: token2.colorSuccess
|
|
16594
|
+
}
|
|
16595
|
+
};
|
|
16596
|
+
};
|
|
16597
|
+
const Confirm = genSubStyleComponent(["Modal", "confirm"], (token2) => {
|
|
16598
|
+
const modalToken = prepareToken$2(token2);
|
|
16599
|
+
return genModalConfirmStyle(modalToken);
|
|
16600
|
+
}, prepareComponentToken$o, {
|
|
16601
|
+
// confirm is weak than modal since no conflict here
|
|
16602
|
+
order: -1e3
|
|
16603
|
+
});
|
|
16604
|
+
var __rest$X = function(s, e3) {
|
|
16605
|
+
var t2 = {};
|
|
16606
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
16607
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16608
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
16609
|
+
}
|
|
16610
|
+
return t2;
|
|
16611
|
+
};
|
|
16612
|
+
function ConfirmContent(props) {
|
|
16613
|
+
const {
|
|
16614
|
+
prefixCls,
|
|
16615
|
+
icon,
|
|
16616
|
+
okText,
|
|
16617
|
+
cancelText,
|
|
16618
|
+
confirmPrefixCls,
|
|
16619
|
+
type: type4,
|
|
16620
|
+
okCancel,
|
|
16621
|
+
footer: footer2,
|
|
16622
|
+
// Legacy for static function usage
|
|
16623
|
+
locale: staticLocale
|
|
16624
|
+
} = props, resetProps = __rest$X(props, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
|
|
16625
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16626
|
+
const warning3 = devUseWarning("Modal");
|
|
16627
|
+
process.env.NODE_ENV !== "production" ? warning3(!(typeof icon === "string" && icon.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${icon}\` at https://ant.design/components/icon`) : void 0;
|
|
16628
|
+
}
|
|
16629
|
+
let mergedIcon = icon;
|
|
16630
|
+
if (!icon && icon !== null) {
|
|
16631
|
+
switch (type4) {
|
|
16632
|
+
case "info":
|
|
16633
|
+
mergedIcon = /* @__PURE__ */ React__namespace.createElement(RefIcon$B, null);
|
|
16634
|
+
break;
|
|
16635
|
+
case "success":
|
|
16636
|
+
mergedIcon = /* @__PURE__ */ React__namespace.createElement(RefIcon$F, null);
|
|
16637
|
+
break;
|
|
16638
|
+
case "error":
|
|
16639
|
+
mergedIcon = /* @__PURE__ */ React__namespace.createElement(RefIcon$E, null);
|
|
16640
|
+
break;
|
|
16641
|
+
default:
|
|
16642
|
+
mergedIcon = /* @__PURE__ */ React__namespace.createElement(RefIcon$C, null);
|
|
16643
|
+
}
|
|
16644
|
+
}
|
|
16645
|
+
const mergedOkCancel = okCancel !== null && okCancel !== void 0 ? okCancel : type4 === "confirm";
|
|
16646
|
+
const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || "ok";
|
|
16647
|
+
const [locale2] = useLocale$1("Modal");
|
|
16648
|
+
const mergedLocale = staticLocale || locale2;
|
|
16649
|
+
const okTextLocale = okText || (mergedOkCancel ? mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.okText : mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.justOkText);
|
|
16650
|
+
const cancelTextLocale = cancelText || (mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.cancelText);
|
|
16651
|
+
const btnCtxValue = Object.assign({
|
|
16652
|
+
autoFocusButton,
|
|
16653
|
+
cancelTextLocale,
|
|
16654
|
+
okTextLocale,
|
|
16655
|
+
mergedOkCancel
|
|
16656
|
+
}, resetProps);
|
|
16657
|
+
const btnCtxValueMemo = React__namespace.useMemo(() => btnCtxValue, _toConsumableArray(Object.values(btnCtxValue)));
|
|
16658
|
+
const footerOriginNode = /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement(ConfirmCancelBtn, null), /* @__PURE__ */ React__namespace.createElement(ConfirmOkBtn, null));
|
|
16659
|
+
const hasTitle = props.title !== void 0 && props.title !== null;
|
|
16660
|
+
const bodyCls = `${confirmPrefixCls}-body`;
|
|
16661
|
+
return /* @__PURE__ */ React__namespace.createElement("div", {
|
|
16662
|
+
className: `${confirmPrefixCls}-body-wrapper`
|
|
16663
|
+
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
16664
|
+
className: classNames(bodyCls, {
|
|
16665
|
+
[`${bodyCls}-has-title`]: hasTitle
|
|
16666
|
+
})
|
|
16667
|
+
}, mergedIcon, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
16668
|
+
className: `${confirmPrefixCls}-paragraph`
|
|
16669
|
+
}, hasTitle && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
16670
|
+
className: `${confirmPrefixCls}-title`
|
|
16671
|
+
}, props.title), /* @__PURE__ */ React__namespace.createElement("div", {
|
|
16672
|
+
className: `${confirmPrefixCls}-content`
|
|
16673
|
+
}, props.content))), footer2 === void 0 || typeof footer2 === "function" ? /* @__PURE__ */ React__namespace.createElement(ModalContextProvider, {
|
|
16674
|
+
value: btnCtxValueMemo
|
|
16675
|
+
}, /* @__PURE__ */ React__namespace.createElement("div", {
|
|
16676
|
+
className: `${confirmPrefixCls}-btns`
|
|
16677
|
+
}, typeof footer2 === "function" ? footer2(footerOriginNode, {
|
|
16678
|
+
OkBtn: ConfirmOkBtn,
|
|
16679
|
+
CancelBtn: ConfirmCancelBtn
|
|
16680
|
+
}) : footerOriginNode)) : footer2, /* @__PURE__ */ React__namespace.createElement(Confirm, {
|
|
16681
|
+
prefixCls
|
|
16682
|
+
}));
|
|
16683
|
+
}
|
|
16684
|
+
const ConfirmDialog = (props) => {
|
|
16685
|
+
const {
|
|
16686
|
+
close,
|
|
16687
|
+
zIndex,
|
|
16688
|
+
maskStyle,
|
|
16689
|
+
direction,
|
|
16690
|
+
prefixCls,
|
|
16691
|
+
wrapClassName,
|
|
16692
|
+
rootPrefixCls,
|
|
16693
|
+
bodyStyle,
|
|
16694
|
+
closable = false,
|
|
16695
|
+
onConfirm,
|
|
16696
|
+
styles
|
|
16697
|
+
} = props;
|
|
16698
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16699
|
+
const warning3 = devUseWarning("Modal");
|
|
16700
|
+
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([deprecatedName, newName]) => {
|
|
16701
|
+
warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
16702
|
+
});
|
|
16703
|
+
}
|
|
16704
|
+
const confirmPrefixCls = `${prefixCls}-confirm`;
|
|
16705
|
+
const width = props.width || 416;
|
|
16706
|
+
const style2 = props.style || {};
|
|
16707
|
+
const mask = props.mask === void 0 ? true : props.mask;
|
|
16708
|
+
const maskClosable = props.maskClosable === void 0 ? false : props.maskClosable;
|
|
16709
|
+
const classString = classNames(confirmPrefixCls, `${confirmPrefixCls}-${props.type}`, {
|
|
16710
|
+
[`${confirmPrefixCls}-rtl`]: direction === "rtl"
|
|
16711
|
+
}, props.className);
|
|
16712
|
+
const [, token2] = useToken();
|
|
16713
|
+
const mergedZIndex = React__namespace.useMemo(() => {
|
|
16714
|
+
if (zIndex !== void 0) {
|
|
16715
|
+
return zIndex;
|
|
16716
|
+
}
|
|
16717
|
+
return token2.zIndexPopupBase + CONTAINER_MAX_OFFSET;
|
|
16718
|
+
}, [zIndex, token2]);
|
|
16719
|
+
return /* @__PURE__ */ React__namespace.createElement(Modal$2, Object.assign({}, props, {
|
|
16720
|
+
className: classString,
|
|
16721
|
+
wrapClassName: classNames({
|
|
16722
|
+
[`${confirmPrefixCls}-centered`]: !!props.centered
|
|
16723
|
+
}, wrapClassName),
|
|
16724
|
+
onCancel: () => {
|
|
16725
|
+
close === null || close === void 0 ? void 0 : close({
|
|
16726
|
+
triggerCancel: true
|
|
16727
|
+
});
|
|
16728
|
+
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);
|
|
16729
|
+
},
|
|
16730
|
+
title: "",
|
|
16731
|
+
footer: null,
|
|
16732
|
+
transitionName: getTransitionName(rootPrefixCls || "", "zoom", props.transitionName),
|
|
16733
|
+
maskTransitionName: getTransitionName(rootPrefixCls || "", "fade", props.maskTransitionName),
|
|
16734
|
+
mask,
|
|
16735
|
+
maskClosable,
|
|
16736
|
+
style: style2,
|
|
16737
|
+
styles: Object.assign({
|
|
16738
|
+
body: bodyStyle,
|
|
16739
|
+
mask: maskStyle
|
|
16740
|
+
}, styles),
|
|
16741
|
+
width,
|
|
16742
|
+
zIndex: mergedZIndex,
|
|
16743
|
+
closable
|
|
16744
|
+
}), /* @__PURE__ */ React__namespace.createElement(ConfirmContent, Object.assign({}, props, {
|
|
16745
|
+
confirmPrefixCls
|
|
16746
|
+
})));
|
|
16747
|
+
};
|
|
16748
|
+
const ConfirmDialogWrapper$1 = (props) => {
|
|
16749
|
+
const {
|
|
16750
|
+
rootPrefixCls,
|
|
16751
|
+
iconPrefixCls,
|
|
16752
|
+
direction,
|
|
16753
|
+
theme
|
|
16754
|
+
} = props;
|
|
16755
|
+
return /* @__PURE__ */ React__namespace.createElement(ConfigProvider, {
|
|
16756
|
+
prefixCls: rootPrefixCls,
|
|
16757
|
+
iconPrefixCls,
|
|
16758
|
+
direction,
|
|
16759
|
+
theme
|
|
16760
|
+
}, /* @__PURE__ */ React__namespace.createElement(ConfirmDialog, Object.assign({}, props)));
|
|
16761
|
+
};
|
|
16762
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16763
|
+
ConfirmDialog.displayName = "ConfirmDialog";
|
|
16764
|
+
ConfirmDialogWrapper$1.displayName = "ConfirmDialogWrapper";
|
|
16765
|
+
}
|
|
16766
|
+
const destroyFns = [];
|
|
16767
|
+
let defaultRootPrefixCls = "";
|
|
16768
|
+
function getRootPrefixCls() {
|
|
16769
|
+
return defaultRootPrefixCls;
|
|
16770
|
+
}
|
|
16771
|
+
const ConfirmDialogWrapper = (props) => {
|
|
16772
|
+
var _a, _b;
|
|
16773
|
+
const {
|
|
16774
|
+
prefixCls: customizePrefixCls,
|
|
16775
|
+
getContainer: getContainer2,
|
|
16776
|
+
direction
|
|
16777
|
+
} = props;
|
|
16778
|
+
const runtimeLocale2 = getConfirmLocale();
|
|
16779
|
+
const config = React.useContext(ConfigContext);
|
|
16780
|
+
const rootPrefixCls = getRootPrefixCls() || config.getPrefixCls();
|
|
16781
|
+
const prefixCls = customizePrefixCls || `${rootPrefixCls}-modal`;
|
|
16782
|
+
let mergedGetContainer = getContainer2;
|
|
16783
|
+
if (mergedGetContainer === false) {
|
|
16784
|
+
mergedGetContainer = void 0;
|
|
16785
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16786
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.") : void 0;
|
|
16787
|
+
}
|
|
16788
|
+
}
|
|
16789
|
+
return /* @__PURE__ */ React.createElement(ConfirmDialogWrapper$1, Object.assign({}, props, {
|
|
16790
|
+
rootPrefixCls,
|
|
16791
|
+
prefixCls,
|
|
16792
|
+
iconPrefixCls: config.iconPrefixCls,
|
|
16793
|
+
theme: config.theme,
|
|
16794
|
+
direction: direction !== null && direction !== void 0 ? direction : config.direction,
|
|
16795
|
+
locale: (_b = (_a = config.locale) === null || _a === void 0 ? void 0 : _a.Modal) !== null && _b !== void 0 ? _b : runtimeLocale2,
|
|
16796
|
+
getContainer: mergedGetContainer
|
|
16797
|
+
}));
|
|
16798
|
+
};
|
|
16799
|
+
function confirm(config) {
|
|
16800
|
+
const global2 = globalConfig();
|
|
16801
|
+
if (process.env.NODE_ENV !== "production" && !global2.holderRender) {
|
|
16802
|
+
warnContext("Modal");
|
|
16803
|
+
}
|
|
16804
|
+
const container = document.createDocumentFragment();
|
|
16805
|
+
let currentConfig = Object.assign(Object.assign({}, config), {
|
|
16806
|
+
close,
|
|
16807
|
+
open: true
|
|
16808
|
+
});
|
|
16809
|
+
let timeoutId;
|
|
16810
|
+
let reactUnmount;
|
|
16811
|
+
function destroy(...args) {
|
|
16812
|
+
var _a;
|
|
16813
|
+
const triggerCancel = args.some((param) => param === null || param === void 0 ? void 0 : param.triggerCancel);
|
|
16814
|
+
if (triggerCancel) {
|
|
16815
|
+
var _a2;
|
|
16816
|
+
(_a = config.onCancel) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [config, () => {
|
|
16817
|
+
}].concat(_toConsumableArray(args.slice(1))));
|
|
16818
|
+
}
|
|
16819
|
+
for (let i = 0; i < destroyFns.length; i++) {
|
|
16820
|
+
const fn = destroyFns[i];
|
|
16821
|
+
if (fn === close) {
|
|
16822
|
+
destroyFns.splice(i, 1);
|
|
16823
|
+
break;
|
|
16824
|
+
}
|
|
16825
|
+
}
|
|
16826
|
+
reactUnmount();
|
|
16827
|
+
}
|
|
16828
|
+
function render2(props) {
|
|
16829
|
+
clearTimeout(timeoutId);
|
|
16830
|
+
timeoutId = setTimeout(() => {
|
|
16831
|
+
const rootPrefixCls = global2.getPrefixCls(void 0, getRootPrefixCls());
|
|
16832
|
+
const iconPrefixCls = global2.getIconPrefixCls();
|
|
16833
|
+
const theme = global2.getTheme();
|
|
16834
|
+
const dom = /* @__PURE__ */ React.createElement(ConfirmDialogWrapper, Object.assign({}, props));
|
|
16835
|
+
const reactRender2 = unstableSetRender();
|
|
16836
|
+
reactUnmount = reactRender2(/* @__PURE__ */ React.createElement(ConfigProvider, {
|
|
16837
|
+
prefixCls: rootPrefixCls,
|
|
16838
|
+
iconPrefixCls,
|
|
16839
|
+
theme
|
|
16840
|
+
}, global2.holderRender ? global2.holderRender(dom) : dom), container);
|
|
16841
|
+
});
|
|
16842
|
+
}
|
|
16843
|
+
function close(...args) {
|
|
16844
|
+
currentConfig = Object.assign(Object.assign({}, currentConfig), {
|
|
16845
|
+
open: false,
|
|
16846
|
+
afterClose: () => {
|
|
16847
|
+
if (typeof config.afterClose === "function") {
|
|
16848
|
+
config.afterClose();
|
|
16849
|
+
}
|
|
16850
|
+
destroy.apply(this, args);
|
|
16851
|
+
}
|
|
16852
|
+
});
|
|
16853
|
+
if (currentConfig.visible) {
|
|
16854
|
+
delete currentConfig.visible;
|
|
16855
|
+
}
|
|
16856
|
+
render2(currentConfig);
|
|
16857
|
+
}
|
|
16858
|
+
function update(configUpdate) {
|
|
16859
|
+
if (typeof configUpdate === "function") {
|
|
16860
|
+
currentConfig = configUpdate(currentConfig);
|
|
16861
|
+
} else {
|
|
16862
|
+
currentConfig = Object.assign(Object.assign({}, currentConfig), configUpdate);
|
|
16863
|
+
}
|
|
16864
|
+
render2(currentConfig);
|
|
16865
|
+
}
|
|
16866
|
+
render2(currentConfig);
|
|
16867
|
+
destroyFns.push(close);
|
|
16868
|
+
return {
|
|
16869
|
+
destroy: close,
|
|
16870
|
+
update
|
|
16871
|
+
};
|
|
16872
|
+
}
|
|
16873
|
+
function withWarn(props) {
|
|
16874
|
+
return Object.assign(Object.assign({}, props), {
|
|
16875
|
+
type: "warning"
|
|
16876
|
+
});
|
|
16877
|
+
}
|
|
16878
|
+
function withInfo(props) {
|
|
16879
|
+
return Object.assign(Object.assign({}, props), {
|
|
16880
|
+
type: "info"
|
|
16881
|
+
});
|
|
16882
|
+
}
|
|
16883
|
+
function withSuccess(props) {
|
|
16884
|
+
return Object.assign(Object.assign({}, props), {
|
|
16885
|
+
type: "success"
|
|
16886
|
+
});
|
|
16887
|
+
}
|
|
16888
|
+
function withError(props) {
|
|
16889
|
+
return Object.assign(Object.assign({}, props), {
|
|
16890
|
+
type: "error"
|
|
16891
|
+
});
|
|
16892
|
+
}
|
|
16893
|
+
function withConfirm(props) {
|
|
16894
|
+
return Object.assign(Object.assign({}, props), {
|
|
16895
|
+
type: "confirm"
|
|
16896
|
+
});
|
|
16897
|
+
}
|
|
16898
|
+
function modalGlobalConfig({
|
|
16899
|
+
rootPrefixCls
|
|
16900
|
+
}) {
|
|
16901
|
+
process.env.NODE_ENV !== "production" ? warning$2(false, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead.") : void 0;
|
|
16902
|
+
defaultRootPrefixCls = rootPrefixCls;
|
|
16903
|
+
}
|
|
16904
|
+
var __rest$W = function(s, e3) {
|
|
16905
|
+
var t2 = {};
|
|
16906
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
16907
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16908
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
16909
|
+
}
|
|
16910
|
+
return t2;
|
|
16911
|
+
};
|
|
16912
|
+
const HookModal$1 = (_a, ref) => {
|
|
16913
|
+
var _b;
|
|
16914
|
+
var {
|
|
16915
|
+
afterClose: hookAfterClose,
|
|
16916
|
+
config
|
|
16917
|
+
} = _a, restProps = __rest$W(_a, ["afterClose", "config"]);
|
|
16918
|
+
const [open, setOpen] = React__namespace.useState(true);
|
|
16919
|
+
const [innerConfig, setInnerConfig] = React__namespace.useState(config);
|
|
16920
|
+
const {
|
|
16921
|
+
direction,
|
|
16922
|
+
getPrefixCls
|
|
16923
|
+
} = React__namespace.useContext(ConfigContext);
|
|
16924
|
+
const prefixCls = getPrefixCls("modal");
|
|
16925
|
+
const rootPrefixCls = getPrefixCls();
|
|
16926
|
+
const afterClose = () => {
|
|
16927
|
+
var _a2;
|
|
16928
|
+
hookAfterClose();
|
|
16929
|
+
(_a2 = innerConfig.afterClose) === null || _a2 === void 0 ? void 0 : _a2.call(innerConfig);
|
|
16930
|
+
};
|
|
16931
|
+
const close = (...args) => {
|
|
16932
|
+
var _a2;
|
|
16933
|
+
setOpen(false);
|
|
16934
|
+
const triggerCancel = args.some((param) => param === null || param === void 0 ? void 0 : param.triggerCancel);
|
|
16935
|
+
if (triggerCancel) {
|
|
16936
|
+
var _a22;
|
|
16937
|
+
(_a2 = innerConfig.onCancel) === null || _a2 === void 0 ? void 0 : (_a22 = _a2).call.apply(_a22, [innerConfig, () => {
|
|
16938
|
+
}].concat(_toConsumableArray(args.slice(1))));
|
|
16939
|
+
}
|
|
16940
|
+
};
|
|
16941
|
+
React__namespace.useImperativeHandle(ref, () => ({
|
|
16942
|
+
destroy: close,
|
|
16943
|
+
update: (newConfig) => {
|
|
16944
|
+
setInnerConfig((originConfig) => {
|
|
16945
|
+
const nextConfig = typeof newConfig === "function" ? newConfig(originConfig) : newConfig;
|
|
16946
|
+
return Object.assign(Object.assign({}, originConfig), nextConfig);
|
|
16947
|
+
});
|
|
16948
|
+
}
|
|
16949
|
+
}));
|
|
16950
|
+
const mergedOkCancel = (_b = innerConfig.okCancel) !== null && _b !== void 0 ? _b : innerConfig.type === "confirm";
|
|
16951
|
+
const [contextLocale] = useLocale$1("Modal", localeValues.Modal);
|
|
16952
|
+
return /* @__PURE__ */ React__namespace.createElement(ConfirmDialogWrapper$1, Object.assign({
|
|
16953
|
+
prefixCls,
|
|
16954
|
+
rootPrefixCls
|
|
16955
|
+
}, innerConfig, {
|
|
16956
|
+
close,
|
|
16957
|
+
open,
|
|
16958
|
+
afterClose,
|
|
16959
|
+
okText: innerConfig.okText || (mergedOkCancel ? contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.okText : contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.justOkText),
|
|
16960
|
+
direction: innerConfig.direction || direction,
|
|
16961
|
+
cancelText: innerConfig.cancelText || (contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.cancelText)
|
|
16962
|
+
}, restProps));
|
|
16963
|
+
};
|
|
16964
|
+
const HookModal = /* @__PURE__ */ React__namespace.forwardRef(HookModal$1);
|
|
16965
|
+
let uuid$3 = 0;
|
|
16966
|
+
const ElementsHolder = /* @__PURE__ */ React__namespace.memo(/* @__PURE__ */ React__namespace.forwardRef((_props, ref) => {
|
|
16967
|
+
const [elements, patchElement] = usePatchElement();
|
|
16968
|
+
React__namespace.useImperativeHandle(ref, () => ({
|
|
16969
|
+
patchElement
|
|
16970
|
+
}), []);
|
|
16971
|
+
return /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, elements);
|
|
16972
|
+
}));
|
|
16973
|
+
function useModal() {
|
|
16974
|
+
const holderRef = React__namespace.useRef(null);
|
|
16975
|
+
const [actionQueue, setActionQueue] = React__namespace.useState([]);
|
|
16976
|
+
React__namespace.useEffect(() => {
|
|
16977
|
+
if (actionQueue.length) {
|
|
16978
|
+
const cloneQueue = _toConsumableArray(actionQueue);
|
|
16979
|
+
cloneQueue.forEach((action) => {
|
|
16980
|
+
action();
|
|
16981
|
+
});
|
|
16982
|
+
setActionQueue([]);
|
|
16983
|
+
}
|
|
16984
|
+
}, [actionQueue]);
|
|
16985
|
+
const getConfirmFunc = React__namespace.useCallback((withFunc) => function hookConfirm(config) {
|
|
16986
|
+
var _a;
|
|
16987
|
+
uuid$3 += 1;
|
|
16988
|
+
const modalRef = /* @__PURE__ */ React__namespace.createRef();
|
|
16989
|
+
let resolvePromise;
|
|
16990
|
+
const promise = new Promise((resolve) => {
|
|
16991
|
+
resolvePromise = resolve;
|
|
16992
|
+
});
|
|
16993
|
+
let silent = false;
|
|
16994
|
+
let closeFunc;
|
|
16995
|
+
const modal = /* @__PURE__ */ React__namespace.createElement(HookModal, {
|
|
16996
|
+
key: `modal-${uuid$3}`,
|
|
16997
|
+
config: withFunc(config),
|
|
16998
|
+
ref: modalRef,
|
|
16999
|
+
afterClose: () => {
|
|
17000
|
+
closeFunc === null || closeFunc === void 0 ? void 0 : closeFunc();
|
|
17001
|
+
},
|
|
17002
|
+
isSilent: () => silent,
|
|
17003
|
+
onConfirm: (confirmed) => {
|
|
17004
|
+
resolvePromise(confirmed);
|
|
17005
|
+
}
|
|
17006
|
+
});
|
|
17007
|
+
closeFunc = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.patchElement(modal);
|
|
17008
|
+
if (closeFunc) {
|
|
17009
|
+
destroyFns.push(closeFunc);
|
|
17010
|
+
}
|
|
17011
|
+
const instance = {
|
|
17012
|
+
destroy: () => {
|
|
17013
|
+
function destroyAction() {
|
|
17014
|
+
var _a2;
|
|
17015
|
+
(_a2 = modalRef.current) === null || _a2 === void 0 ? void 0 : _a2.destroy();
|
|
17016
|
+
}
|
|
17017
|
+
if (modalRef.current) {
|
|
17018
|
+
destroyAction();
|
|
17019
|
+
} else {
|
|
17020
|
+
setActionQueue((prev2) => [].concat(_toConsumableArray(prev2), [destroyAction]));
|
|
17021
|
+
}
|
|
17022
|
+
},
|
|
17023
|
+
update: (newConfig) => {
|
|
17024
|
+
function updateAction() {
|
|
17025
|
+
var _a2;
|
|
17026
|
+
(_a2 = modalRef.current) === null || _a2 === void 0 ? void 0 : _a2.update(newConfig);
|
|
17027
|
+
}
|
|
17028
|
+
if (modalRef.current) {
|
|
17029
|
+
updateAction();
|
|
17030
|
+
} else {
|
|
17031
|
+
setActionQueue((prev2) => [].concat(_toConsumableArray(prev2), [updateAction]));
|
|
17032
|
+
}
|
|
17033
|
+
},
|
|
17034
|
+
then: (resolve) => {
|
|
17035
|
+
silent = true;
|
|
17036
|
+
return promise.then(resolve);
|
|
17037
|
+
}
|
|
17038
|
+
};
|
|
17039
|
+
return instance;
|
|
17040
|
+
}, []);
|
|
17041
|
+
const fns = React__namespace.useMemo(() => ({
|
|
17042
|
+
info: getConfirmFunc(withInfo),
|
|
17043
|
+
success: getConfirmFunc(withSuccess),
|
|
17044
|
+
error: getConfirmFunc(withError),
|
|
17045
|
+
warning: getConfirmFunc(withWarn),
|
|
17046
|
+
confirm: getConfirmFunc(withConfirm)
|
|
17047
|
+
}), []);
|
|
17048
|
+
return [fns, /* @__PURE__ */ React__namespace.createElement(ElementsHolder, {
|
|
17049
|
+
key: "modal-holder",
|
|
17050
|
+
ref: holderRef
|
|
17051
|
+
})];
|
|
17052
|
+
}
|
|
15488
17053
|
function withPureRenderTheme(Component) {
|
|
15489
17054
|
return (props) => /* @__PURE__ */ React__namespace.createElement(ConfigProvider, {
|
|
15490
17055
|
theme: {
|
|
@@ -16486,7 +18051,7 @@ function Arrow(props) {
|
|
|
16486
18051
|
style: alignStyle
|
|
16487
18052
|
}, content2);
|
|
16488
18053
|
}
|
|
16489
|
-
function
|
|
18054
|
+
function Mask2(props) {
|
|
16490
18055
|
var prefixCls = props.prefixCls, open = props.open, zIndex = props.zIndex, mask = props.mask, motion2 = props.motion;
|
|
16491
18056
|
if (!mask) {
|
|
16492
18057
|
return null;
|
|
@@ -16578,7 +18143,7 @@ var Popup$2 = /* @__PURE__ */ React__namespace.forwardRef(function(props, ref) {
|
|
|
16578
18143
|
return getPopupContainer(target);
|
|
16579
18144
|
},
|
|
16580
18145
|
autoDestroy
|
|
16581
|
-
}, /* @__PURE__ */ React__namespace.createElement(
|
|
18146
|
+
}, /* @__PURE__ */ React__namespace.createElement(Mask2, {
|
|
16582
18147
|
prefixCls,
|
|
16583
18148
|
open,
|
|
16584
18149
|
zIndex,
|
|
@@ -20485,7 +22050,7 @@ const useStyle$r = genStyleHooks("Empty", (token2) => {
|
|
|
20485
22050
|
});
|
|
20486
22051
|
return genSharedEmptyStyle(emptyToken);
|
|
20487
22052
|
});
|
|
20488
|
-
var __rest$
|
|
22053
|
+
var __rest$V = function(s, e3) {
|
|
20489
22054
|
var t2 = {};
|
|
20490
22055
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
20491
22056
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -20508,7 +22073,7 @@ const Empty = (props) => {
|
|
|
20508
22073
|
style: style2,
|
|
20509
22074
|
classNames: emptyClassNames,
|
|
20510
22075
|
styles
|
|
20511
|
-
} = props, restProps = __rest$
|
|
22076
|
+
} = props, restProps = __rest$V(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
|
|
20512
22077
|
const {
|
|
20513
22078
|
getPrefixCls,
|
|
20514
22079
|
direction,
|
|
@@ -21845,7 +23410,7 @@ function usePopupRender(renderFn) {
|
|
|
21845
23410
|
function useShowArrow(suffixIcon, showArrow) {
|
|
21846
23411
|
return showArrow !== void 0 ? showArrow : suffixIcon !== null;
|
|
21847
23412
|
}
|
|
21848
|
-
var __rest$
|
|
23413
|
+
var __rest$U = function(s, e3) {
|
|
21849
23414
|
var t2 = {};
|
|
21850
23415
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
21851
23416
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -21889,7 +23454,7 @@ const InternalSelect = (props, ref) => {
|
|
|
21889
23454
|
onOpenChange,
|
|
21890
23455
|
styles,
|
|
21891
23456
|
classNames: classNames$1
|
|
21892
|
-
} = props, rest = __rest$
|
|
23457
|
+
} = props, rest = __rest$U(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"]);
|
|
21893
23458
|
const {
|
|
21894
23459
|
getPopupContainer: getContextPopupContainer,
|
|
21895
23460
|
getPrefixCls,
|
|
@@ -22048,11 +23613,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
22048
23613
|
InternalSelect.displayName = "Select";
|
|
22049
23614
|
}
|
|
22050
23615
|
const Select$1 = /* @__PURE__ */ React__namespace.forwardRef(InternalSelect);
|
|
22051
|
-
const PurePanel$
|
|
23616
|
+
const PurePanel$8 = genPurePanel(Select$1, "dropdownAlign");
|
|
22052
23617
|
Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
22053
23618
|
Select$1.Option = Option;
|
|
22054
23619
|
Select$1.OptGroup = OptGroup;
|
|
22055
|
-
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
23620
|
+
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$8;
|
|
22056
23621
|
if (process.env.NODE_ENV !== "production") {
|
|
22057
23622
|
Select$1.displayName = "Select";
|
|
22058
23623
|
}
|
|
@@ -22312,7 +23877,7 @@ const useStyle$q = genStyleHooks("Avatar", (token2) => {
|
|
|
22312
23877
|
});
|
|
22313
23878
|
return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
|
|
22314
23879
|
}, prepareComponentToken$m);
|
|
22315
|
-
var __rest$
|
|
23880
|
+
var __rest$T = function(s, e3) {
|
|
22316
23881
|
var t2 = {};
|
|
22317
23882
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
22318
23883
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -22337,7 +23902,7 @@ const Avatar$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
22337
23902
|
crossOrigin,
|
|
22338
23903
|
gap = 4,
|
|
22339
23904
|
onError
|
|
22340
|
-
} = props, others = __rest$
|
|
23905
|
+
} = props, others = __rest$T(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
|
|
22341
23906
|
const [scale, setScale] = React__namespace.useState(1);
|
|
22342
23907
|
const [mounted, setMounted] = React__namespace.useState(false);
|
|
22343
23908
|
const [isImgExist, setIsImgExist] = React__namespace.useState(true);
|
|
@@ -23165,7 +24730,7 @@ function parseColor(prefixCls, color2) {
|
|
|
23165
24730
|
arrowStyle
|
|
23166
24731
|
};
|
|
23167
24732
|
}
|
|
23168
|
-
const PurePanel$
|
|
24733
|
+
const PurePanel$7 = (props) => {
|
|
23169
24734
|
const {
|
|
23170
24735
|
prefixCls: customizePrefixCls,
|
|
23171
24736
|
className,
|
|
@@ -23194,7 +24759,7 @@ const PurePanel$5 = (props) => {
|
|
|
23194
24759
|
overlayInnerStyle: formattedOverlayInnerStyle
|
|
23195
24760
|
}), title)));
|
|
23196
24761
|
};
|
|
23197
|
-
var __rest$
|
|
24762
|
+
var __rest$S = function(s, e3) {
|
|
23198
24763
|
var t2 = {};
|
|
23199
24764
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23200
24765
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23231,7 +24796,7 @@ const InternalTooltip = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23231
24796
|
overlayClassName,
|
|
23232
24797
|
styles,
|
|
23233
24798
|
classNames: tooltipClassNames
|
|
23234
|
-
} = props, restProps = __rest$
|
|
24799
|
+
} = props, restProps = __rest$S(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"]);
|
|
23235
24800
|
const mergedShowArrow = !!arrow;
|
|
23236
24801
|
const [, token2] = useToken();
|
|
23237
24802
|
const {
|
|
@@ -23365,7 +24930,7 @@ const Tooltip$2 = InternalTooltip;
|
|
|
23365
24930
|
if (process.env.NODE_ENV !== "production") {
|
|
23366
24931
|
Tooltip$2.displayName = "Tooltip";
|
|
23367
24932
|
}
|
|
23368
|
-
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
24933
|
+
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$7;
|
|
23369
24934
|
const genBaseStyle$5 = (token2) => {
|
|
23370
24935
|
const {
|
|
23371
24936
|
componentCls,
|
|
@@ -23520,7 +25085,7 @@ const useStyle$o = genStyleHooks("Popover", (token2) => {
|
|
|
23520
25085
|
resetStyle: false,
|
|
23521
25086
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
23522
25087
|
});
|
|
23523
|
-
var __rest$
|
|
25088
|
+
var __rest$R = function(s, e3) {
|
|
23524
25089
|
var t2 = {};
|
|
23525
25090
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23526
25091
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23570,11 +25135,11 @@ const RawPurePanel = (props) => {
|
|
|
23570
25135
|
content: contentNode
|
|
23571
25136
|
})));
|
|
23572
25137
|
};
|
|
23573
|
-
const PurePanel$
|
|
25138
|
+
const PurePanel$6 = (props) => {
|
|
23574
25139
|
const {
|
|
23575
25140
|
prefixCls: customizePrefixCls,
|
|
23576
25141
|
className
|
|
23577
|
-
} = props, restProps = __rest$
|
|
25142
|
+
} = props, restProps = __rest$R(props, ["prefixCls", "className"]);
|
|
23578
25143
|
const {
|
|
23579
25144
|
getPrefixCls
|
|
23580
25145
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -23586,7 +25151,7 @@ const PurePanel$4 = (props) => {
|
|
|
23586
25151
|
className: classNames(className, cssVarCls)
|
|
23587
25152
|
})));
|
|
23588
25153
|
};
|
|
23589
|
-
var __rest$
|
|
25154
|
+
var __rest$Q = function(s, e3) {
|
|
23590
25155
|
var t2 = {};
|
|
23591
25156
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23592
25157
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23610,7 +25175,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23610
25175
|
overlayStyle = {},
|
|
23611
25176
|
styles,
|
|
23612
25177
|
classNames: popoverClassNames
|
|
23613
|
-
} = props, otherProps = __rest$
|
|
25178
|
+
} = props, otherProps = __rest$Q(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
|
|
23614
25179
|
const {
|
|
23615
25180
|
getPrefixCls,
|
|
23616
25181
|
className: contextClassName,
|
|
@@ -23677,7 +25242,7 @@ const InternalPopover = /* @__PURE__ */ React__namespace.forwardRef((props, ref)
|
|
|
23677
25242
|
})));
|
|
23678
25243
|
});
|
|
23679
25244
|
const Popover$2 = InternalPopover;
|
|
23680
|
-
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
25245
|
+
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
|
|
23681
25246
|
if (process.env.NODE_ENV !== "production") {
|
|
23682
25247
|
Popover$2.displayName = "Popover";
|
|
23683
25248
|
}
|
|
@@ -25601,7 +27166,7 @@ const genSiderStyle = (token2) => {
|
|
|
25601
27166
|
const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
|
|
25602
27167
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
25603
27168
|
});
|
|
25604
|
-
var __rest$
|
|
27169
|
+
var __rest$P = function(s, e3) {
|
|
25605
27170
|
var t2 = {};
|
|
25606
27171
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25607
27172
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25643,7 +27208,7 @@ const Sider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
25643
27208
|
breakpoint,
|
|
25644
27209
|
onCollapse,
|
|
25645
27210
|
onBreakpoint
|
|
25646
|
-
} = props, otherProps = __rest$
|
|
27211
|
+
} = props, otherProps = __rest$P(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
|
|
25647
27212
|
const {
|
|
25648
27213
|
siderHook
|
|
25649
27214
|
} = React.useContext(LayoutContext);
|
|
@@ -25764,7 +27329,7 @@ const MenuContext = /* @__PURE__ */ React.createContext({
|
|
|
25764
27329
|
firstLevel: true,
|
|
25765
27330
|
inlineCollapsed: false
|
|
25766
27331
|
});
|
|
25767
|
-
var __rest$
|
|
27332
|
+
var __rest$O = function(s, e3) {
|
|
25768
27333
|
var t2 = {};
|
|
25769
27334
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25770
27335
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25777,7 +27342,7 @@ const MenuDivider = (props) => {
|
|
|
25777
27342
|
prefixCls: customizePrefixCls,
|
|
25778
27343
|
className,
|
|
25779
27344
|
dashed
|
|
25780
|
-
} = props, restProps = __rest$
|
|
27345
|
+
} = props, restProps = __rest$O(props, ["prefixCls", "className", "dashed"]);
|
|
25781
27346
|
const {
|
|
25782
27347
|
getPrefixCls
|
|
25783
27348
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -25858,7 +27423,7 @@ const MenuItem$1 = (props) => {
|
|
|
25858
27423
|
}
|
|
25859
27424
|
return returnNode;
|
|
25860
27425
|
};
|
|
25861
|
-
var __rest$
|
|
27426
|
+
var __rest$N = function(s, e3) {
|
|
25862
27427
|
var t2 = {};
|
|
25863
27428
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25864
27429
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25870,7 +27435,7 @@ const OverrideContext = /* @__PURE__ */ React__namespace.createContext(null);
|
|
|
25870
27435
|
const OverrideProvider = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
25871
27436
|
const {
|
|
25872
27437
|
children: children2
|
|
25873
|
-
} = props, restProps = __rest$
|
|
27438
|
+
} = props, restProps = __rest$N(props, ["children"]);
|
|
25874
27439
|
const override = React__namespace.useContext(OverrideContext);
|
|
25875
27440
|
const context = React__namespace.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
|
|
25876
27441
|
override,
|
|
@@ -26948,7 +28513,7 @@ const SubMenu = (props) => {
|
|
|
26948
28513
|
}, props.popupStyle)
|
|
26949
28514
|
})));
|
|
26950
28515
|
};
|
|
26951
|
-
var __rest$
|
|
28516
|
+
var __rest$M = function(s, e3) {
|
|
26952
28517
|
var t2 = {};
|
|
26953
28518
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
26954
28519
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -26989,7 +28554,7 @@ const InternalMenu = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
26989
28554
|
selectable,
|
|
26990
28555
|
onClick,
|
|
26991
28556
|
overflowedIndicatorPopupClassName
|
|
26992
|
-
} = props, restProps = __rest$
|
|
28557
|
+
} = props, restProps = __rest$M(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
|
|
26993
28558
|
const passedProps = omit(restProps, ["collapsedWidth"]);
|
|
26994
28559
|
if (process.env.NODE_ENV !== "production") {
|
|
26995
28560
|
const warning3 = devUseWarning("Menu");
|
|
@@ -27579,8 +29144,8 @@ const Dropdown$1 = (props) => {
|
|
|
27579
29144
|
}
|
|
27580
29145
|
return wrapCSSVar(renderNode);
|
|
27581
29146
|
};
|
|
27582
|
-
const PurePanel$
|
|
27583
|
-
const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$
|
|
29147
|
+
const PurePanel$5 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
|
|
29148
|
+
const WrapPurePanel = (props) => /* @__PURE__ */ React__namespace.createElement(PurePanel$5, Object.assign({}, props), /* @__PURE__ */ React__namespace.createElement("span", null));
|
|
27584
29149
|
Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
|
|
27585
29150
|
if (process.env.NODE_ENV !== "production") {
|
|
27586
29151
|
Dropdown$1.displayName = "Dropdown";
|
|
@@ -27598,7 +29163,7 @@ const BreadcrumbSeparator = ({
|
|
|
27598
29163
|
}, children2 === "" ? children2 : children2 || "/");
|
|
27599
29164
|
};
|
|
27600
29165
|
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
|
27601
|
-
var __rest$
|
|
29166
|
+
var __rest$L = function(s, e3) {
|
|
27602
29167
|
var t2 = {};
|
|
27603
29168
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27604
29169
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27620,7 +29185,7 @@ function renderItem(prefixCls, item, children2, href) {
|
|
|
27620
29185
|
const {
|
|
27621
29186
|
className,
|
|
27622
29187
|
onClick
|
|
27623
|
-
} = item, restItem = __rest$
|
|
29188
|
+
} = item, restItem = __rest$L(item, ["className", "onClick"]);
|
|
27624
29189
|
const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
|
|
27625
29190
|
data: true,
|
|
27626
29191
|
aria: true
|
|
@@ -27647,7 +29212,7 @@ function useItemRender(prefixCls, itemRender) {
|
|
|
27647
29212
|
};
|
|
27648
29213
|
return mergedItemRender;
|
|
27649
29214
|
}
|
|
27650
|
-
var __rest$
|
|
29215
|
+
var __rest$K = function(s, e3) {
|
|
27651
29216
|
var t2 = {};
|
|
27652
29217
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27653
29218
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27675,7 +29240,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27675
29240
|
if (menu) {
|
|
27676
29241
|
const _a = menu || {}, {
|
|
27677
29242
|
items
|
|
27678
|
-
} = _a, menuProps = __rest$
|
|
29243
|
+
} = _a, menuProps = __rest$K(_a, ["items"]);
|
|
27679
29244
|
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
|
27680
29245
|
items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
|
|
27681
29246
|
var {
|
|
@@ -27683,7 +29248,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27683
29248
|
title,
|
|
27684
29249
|
label,
|
|
27685
29250
|
path: path2
|
|
27686
|
-
} = _a2, itemProps = __rest$
|
|
29251
|
+
} = _a2, itemProps = __rest$K(_a2, ["key", "title", "label", "path"]);
|
|
27687
29252
|
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
|
27688
29253
|
if (path2) {
|
|
27689
29254
|
mergedLabel = /* @__PURE__ */ React__namespace.createElement("a", {
|
|
@@ -27718,7 +29283,7 @@ const BreadcrumbItem = (props) => {
|
|
|
27718
29283
|
prefixCls: customizePrefixCls,
|
|
27719
29284
|
children: children2,
|
|
27720
29285
|
href
|
|
27721
|
-
} = props, restProps = __rest$
|
|
29286
|
+
} = props, restProps = __rest$K(props, ["prefixCls", "children", "href"]);
|
|
27722
29287
|
const {
|
|
27723
29288
|
getPrefixCls
|
|
27724
29289
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -27819,7 +29384,7 @@ const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
|
|
|
27819
29384
|
const breadcrumbToken = merge$1(token2, {});
|
|
27820
29385
|
return genBreadcrumbStyle(breadcrumbToken);
|
|
27821
29386
|
}, prepareComponentToken$g);
|
|
27822
|
-
var __rest$
|
|
29387
|
+
var __rest$J = function(s, e3) {
|
|
27823
29388
|
var t2 = {};
|
|
27824
29389
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27825
29390
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27831,7 +29396,7 @@ function route2item(route) {
|
|
|
27831
29396
|
const {
|
|
27832
29397
|
breadcrumbName,
|
|
27833
29398
|
children: children2
|
|
27834
|
-
} = route, rest = __rest$
|
|
29399
|
+
} = route, rest = __rest$J(route, ["breadcrumbName", "children"]);
|
|
27835
29400
|
const clone = Object.assign({
|
|
27836
29401
|
title: breadcrumbName
|
|
27837
29402
|
}, rest);
|
|
@@ -27840,7 +29405,7 @@ function route2item(route) {
|
|
|
27840
29405
|
items: children2.map((_a) => {
|
|
27841
29406
|
var {
|
|
27842
29407
|
breadcrumbName: itemBreadcrumbName
|
|
27843
|
-
} = _a, itemProps = __rest$
|
|
29408
|
+
} = _a, itemProps = __rest$J(_a, ["breadcrumbName"]);
|
|
27844
29409
|
return Object.assign(Object.assign({}, itemProps), {
|
|
27845
29410
|
title: itemBreadcrumbName
|
|
27846
29411
|
});
|
|
@@ -27860,7 +29425,7 @@ function useItems(items, routes) {
|
|
|
27860
29425
|
return null;
|
|
27861
29426
|
}, [items, routes]);
|
|
27862
29427
|
}
|
|
27863
|
-
var __rest$
|
|
29428
|
+
var __rest$I = function(s, e3) {
|
|
27864
29429
|
var t2 = {};
|
|
27865
29430
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27866
29431
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27890,7 +29455,7 @@ const Breadcrumb$2 = (props) => {
|
|
|
27890
29455
|
children: children2,
|
|
27891
29456
|
itemRender,
|
|
27892
29457
|
params = {}
|
|
27893
|
-
} = props, restProps = __rest$
|
|
29458
|
+
} = props, restProps = __rest$I(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
|
27894
29459
|
const {
|
|
27895
29460
|
getPrefixCls,
|
|
27896
29461
|
direction,
|
|
@@ -33565,7 +35130,7 @@ const useStyle$j = genStyleHooks("Radio", (token2) => {
|
|
|
33565
35130
|
dotSize: true
|
|
33566
35131
|
}
|
|
33567
35132
|
});
|
|
33568
|
-
var __rest$
|
|
35133
|
+
var __rest$H = function(s, e3) {
|
|
33569
35134
|
var t2 = {};
|
|
33570
35135
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33571
35136
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33603,7 +35168,7 @@ const InternalRadio = (props, ref) => {
|
|
|
33603
35168
|
children: children2,
|
|
33604
35169
|
style: style2,
|
|
33605
35170
|
title
|
|
33606
|
-
} = props, restProps = __rest$
|
|
35171
|
+
} = props, restProps = __rest$H(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
|
|
33607
35172
|
const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33608
35173
|
const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
|
|
33609
35174
|
const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
|
|
@@ -33684,7 +35249,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
|
|
|
33684
35249
|
}
|
|
33685
35250
|
return status;
|
|
33686
35251
|
}
|
|
33687
|
-
var __rest$
|
|
35252
|
+
var __rest$G = function(s, e3) {
|
|
33688
35253
|
var t2 = {};
|
|
33689
35254
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33690
35255
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33724,7 +35289,7 @@ function useForm(form) {
|
|
|
33724
35289
|
scrollToField: (name2, options = {}) => {
|
|
33725
35290
|
const {
|
|
33726
35291
|
focus
|
|
33727
|
-
} = options, restOpt = __rest$
|
|
35292
|
+
} = options, restOpt = __rest$G(options, ["focus"]);
|
|
33728
35293
|
const node2 = getFieldDOMNode(name2, wrapForm);
|
|
33729
35294
|
if (node2) {
|
|
33730
35295
|
e(node2, Object.assign({
|
|
@@ -33857,7 +35422,7 @@ const RadioGroup$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
33857
35422
|
}, childrenToRender)));
|
|
33858
35423
|
});
|
|
33859
35424
|
const Group$1 = /* @__PURE__ */ React__namespace.memo(RadioGroup$1);
|
|
33860
|
-
var __rest$
|
|
35425
|
+
var __rest$F = function(s, e3) {
|
|
33861
35426
|
var t2 = {};
|
|
33862
35427
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33863
35428
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33871,7 +35436,7 @@ const RadioButton = (props, ref) => {
|
|
|
33871
35436
|
} = React__namespace.useContext(ConfigContext);
|
|
33872
35437
|
const {
|
|
33873
35438
|
prefixCls: customizePrefixCls
|
|
33874
|
-
} = props, radioProps = __rest$
|
|
35439
|
+
} = props, radioProps = __rest$F(props, ["prefixCls"]);
|
|
33875
35440
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33876
35441
|
return /* @__PURE__ */ React__namespace.createElement(RadioOptionTypeContextProvider, {
|
|
33877
35442
|
value: "button"
|
|
@@ -37408,7 +38973,7 @@ function useAnimateConfig(prefixCls, animated = {
|
|
|
37408
38973
|
}
|
|
37409
38974
|
return mergedAnimated;
|
|
37410
38975
|
}
|
|
37411
|
-
var __rest$
|
|
38976
|
+
var __rest$E = function(s, e3) {
|
|
37412
38977
|
var t2 = {};
|
|
37413
38978
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
37414
38979
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -37442,7 +39007,7 @@ function useLegacyItems(items, children2) {
|
|
|
37442
39007
|
} = node2;
|
|
37443
39008
|
const _a = props || {}, {
|
|
37444
39009
|
tab: tab2
|
|
37445
|
-
} = _a, restProps = __rest$
|
|
39010
|
+
} = _a, restProps = __rest$E(_a, ["tab"]);
|
|
37446
39011
|
const item = Object.assign(Object.assign({
|
|
37447
39012
|
key: String(key)
|
|
37448
39013
|
}, restProps), {
|
|
@@ -38352,7 +39917,7 @@ const TabPane = () => null;
|
|
|
38352
39917
|
if (process.env.NODE_ENV !== "production") {
|
|
38353
39918
|
TabPane.displayName = "DeprecatedTabPane";
|
|
38354
39919
|
}
|
|
38355
|
-
var __rest$
|
|
39920
|
+
var __rest$D = function(s, e3) {
|
|
38356
39921
|
var t2 = {};
|
|
38357
39922
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38358
39923
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38383,7 +39948,7 @@ const InternalTabs = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =>
|
|
|
38383
39948
|
indicator,
|
|
38384
39949
|
destroyInactiveTabPane,
|
|
38385
39950
|
destroyOnHidden
|
|
38386
|
-
} = props, otherProps = __rest$
|
|
39951
|
+
} = props, otherProps = __rest$D(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
|
|
38387
39952
|
const {
|
|
38388
39953
|
prefixCls: customizePrefixCls
|
|
38389
39954
|
} = otherProps;
|
|
@@ -38460,7 +40025,7 @@ Tabs$2.TabPane = TabPane;
|
|
|
38460
40025
|
if (process.env.NODE_ENV !== "production") {
|
|
38461
40026
|
Tabs$2.displayName = "Tabs";
|
|
38462
40027
|
}
|
|
38463
|
-
var __rest$
|
|
40028
|
+
var __rest$C = function(s, e3) {
|
|
38464
40029
|
var t2 = {};
|
|
38465
40030
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38466
40031
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38473,7 +40038,7 @@ const Grid$1 = (_a) => {
|
|
|
38473
40038
|
prefixCls,
|
|
38474
40039
|
className,
|
|
38475
40040
|
hoverable = true
|
|
38476
|
-
} = _a, props = __rest$
|
|
40041
|
+
} = _a, props = __rest$C(_a, ["prefixCls", "className", "hoverable"]);
|
|
38477
40042
|
const {
|
|
38478
40043
|
getPrefixCls
|
|
38479
40044
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -38824,7 +40389,7 @@ const useStyle$f = genStyleHooks("Card", (token2) => {
|
|
|
38824
40389
|
genCardSizeStyle(cardToken)
|
|
38825
40390
|
];
|
|
38826
40391
|
}, prepareComponentToken$c);
|
|
38827
|
-
var __rest$
|
|
40392
|
+
var __rest$B = function(s, e3) {
|
|
38828
40393
|
var t2 = {};
|
|
38829
40394
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38830
40395
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38877,7 +40442,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38877
40442
|
tabProps = {},
|
|
38878
40443
|
classNames: customClassNames,
|
|
38879
40444
|
styles: customStyles
|
|
38880
|
-
} = props, others = __rest$
|
|
40445
|
+
} = props, others = __rest$B(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"]);
|
|
38881
40446
|
const {
|
|
38882
40447
|
getPrefixCls,
|
|
38883
40448
|
direction,
|
|
@@ -38937,7 +40502,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38937
40502
|
items: tabList.map((_a) => {
|
|
38938
40503
|
var {
|
|
38939
40504
|
tab: tab2
|
|
38940
|
-
} = _a, item = __rest$
|
|
40505
|
+
} = _a, item = __rest$B(_a, ["tab"]);
|
|
38941
40506
|
return Object.assign({
|
|
38942
40507
|
label: tab2
|
|
38943
40508
|
}, item);
|
|
@@ -38997,7 +40562,7 @@ const Card$3 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
38997
40562
|
style: mergedStyle
|
|
38998
40563
|
}), head, coverDom, body, actionDom));
|
|
38999
40564
|
});
|
|
39000
|
-
var __rest$
|
|
40565
|
+
var __rest$A = function(s, e3) {
|
|
39001
40566
|
var t2 = {};
|
|
39002
40567
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39003
40568
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39012,7 +40577,7 @@ const Meta = (props) => {
|
|
|
39012
40577
|
avatar,
|
|
39013
40578
|
title,
|
|
39014
40579
|
description
|
|
39015
|
-
} = props, others = __rest$
|
|
40580
|
+
} = props, others = __rest$A(props, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
39016
40581
|
const {
|
|
39017
40582
|
getPrefixCls
|
|
39018
40583
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -39740,7 +41305,7 @@ const useStyle$e = genStyleHooks("Checkbox", (token2, {
|
|
|
39740
41305
|
prefixCls
|
|
39741
41306
|
}) => [getStyle$1(prefixCls, token2)]);
|
|
39742
41307
|
const GroupContext = /* @__PURE__ */ React.createContext(null);
|
|
39743
|
-
var __rest$
|
|
41308
|
+
var __rest$z = function(s, e3) {
|
|
39744
41309
|
var t2 = {};
|
|
39745
41310
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39746
41311
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39761,7 +41326,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
39761
41326
|
onMouseLeave,
|
|
39762
41327
|
skipGroup = false,
|
|
39763
41328
|
disabled: disabled2
|
|
39764
|
-
} = props, restProps = __rest$
|
|
41329
|
+
} = props, restProps = __rest$z(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
|
|
39765
41330
|
const {
|
|
39766
41331
|
getPrefixCls,
|
|
39767
41332
|
direction,
|
|
@@ -39852,7 +41417,7 @@ const Checkbox$2 = /* @__PURE__ */ React__namespace.forwardRef(InternalCheckbox)
|
|
|
39852
41417
|
if (process.env.NODE_ENV !== "production") {
|
|
39853
41418
|
Checkbox$2.displayName = "Checkbox";
|
|
39854
41419
|
}
|
|
39855
|
-
var __rest$
|
|
41420
|
+
var __rest$y = function(s, e3) {
|
|
39856
41421
|
var t2 = {};
|
|
39857
41422
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39858
41423
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39870,7 +41435,7 @@ const CheckboxGroup = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
39870
41435
|
rootClassName,
|
|
39871
41436
|
style: style2,
|
|
39872
41437
|
onChange
|
|
39873
|
-
} = props, restProps = __rest$
|
|
41438
|
+
} = props, restProps = __rest$y(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
|
|
39874
41439
|
const {
|
|
39875
41440
|
getPrefixCls,
|
|
39876
41441
|
direction
|
|
@@ -39960,7 +41525,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
39960
41525
|
Checkbox$1.displayName = "Checkbox";
|
|
39961
41526
|
}
|
|
39962
41527
|
const RowContext = /* @__PURE__ */ React.createContext({});
|
|
39963
|
-
var __rest$
|
|
41528
|
+
var __rest$x = function(s, e3) {
|
|
39964
41529
|
var t2 = {};
|
|
39965
41530
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39966
41531
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39998,7 +41563,7 @@ const Col = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
39998
41563
|
children: children2,
|
|
39999
41564
|
flex,
|
|
40000
41565
|
style: style2
|
|
40001
|
-
} = props, others = __rest$
|
|
41566
|
+
} = props, others = __rest$x(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
|
|
40002
41567
|
const prefixCls = getPrefixCls("col", customizePrefixCls);
|
|
40003
41568
|
const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
|
|
40004
41569
|
const sizeStyle = {};
|
|
@@ -40079,7 +41644,7 @@ function useGutter(gutter, screens) {
|
|
|
40079
41644
|
});
|
|
40080
41645
|
return results;
|
|
40081
41646
|
}
|
|
40082
|
-
var __rest$
|
|
41647
|
+
var __rest$w = function(s, e3) {
|
|
40083
41648
|
var t2 = {};
|
|
40084
41649
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
40085
41650
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40123,7 +41688,7 @@ const Row$1 = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
40123
41688
|
children: children2,
|
|
40124
41689
|
gutter = 0,
|
|
40125
41690
|
wrap: wrap2
|
|
40126
|
-
} = props, others = __rest$
|
|
41691
|
+
} = props, others = __rest$w(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
|
|
40127
41692
|
const {
|
|
40128
41693
|
getPrefixCls,
|
|
40129
41694
|
direction
|
|
@@ -40677,7 +42242,7 @@ const useStyle$d = genStyleHooks("Segmented", (token2) => {
|
|
|
40677
42242
|
});
|
|
40678
42243
|
return genSegmentedStyle(segmentedToken);
|
|
40679
42244
|
}, prepareComponentToken$b);
|
|
40680
|
-
var __rest$
|
|
42245
|
+
var __rest$v = function(s, e3) {
|
|
40681
42246
|
var t2 = {};
|
|
40682
42247
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
40683
42248
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40701,7 +42266,7 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
|
|
|
40701
42266
|
vertical,
|
|
40702
42267
|
shape = "default",
|
|
40703
42268
|
name: name2 = defaultName
|
|
40704
|
-
} = props, restProps = __rest$
|
|
42269
|
+
} = props, restProps = __rest$v(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
|
|
40705
42270
|
const {
|
|
40706
42271
|
getPrefixCls,
|
|
40707
42272
|
direction,
|
|
@@ -40716,7 +42281,7 @@ const InternalSegmented = /* @__PURE__ */ React__namespace.forwardRef((props, re
|
|
|
40716
42281
|
const {
|
|
40717
42282
|
icon,
|
|
40718
42283
|
label
|
|
40719
|
-
} = option, restOption = __rest$
|
|
42284
|
+
} = option, restOption = __rest$v(option, ["icon", "label"]);
|
|
40720
42285
|
return Object.assign(Object.assign({}, restOption), {
|
|
40721
42286
|
label: /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, /* @__PURE__ */ React__namespace.createElement("span", {
|
|
40722
42287
|
className: `${prefixCls}-item-icon`
|
|
@@ -41136,7 +42701,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
|
|
|
41136
42701
|
function hasPrefixSuffix(props) {
|
|
41137
42702
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
41138
42703
|
}
|
|
41139
|
-
var __rest$
|
|
42704
|
+
var __rest$u = function(s, e3) {
|
|
41140
42705
|
var t2 = {};
|
|
41141
42706
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41142
42707
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41164,7 +42729,7 @@ const Input$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
41164
42729
|
onChange,
|
|
41165
42730
|
classNames: classNames$1,
|
|
41166
42731
|
variant: customVariant
|
|
41167
|
-
} = props, rest = __rest$
|
|
42732
|
+
} = props, rest = __rest$u(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
41168
42733
|
if (process.env.NODE_ENV !== "production") {
|
|
41169
42734
|
const {
|
|
41170
42735
|
deprecated
|
|
@@ -41471,7 +43036,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
|
|
|
41471
43036
|
return [filledClassNames, filledStyles];
|
|
41472
43037
|
}, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
|
|
41473
43038
|
};
|
|
41474
|
-
var __rest$
|
|
43039
|
+
var __rest$t = function(s, e3) {
|
|
41475
43040
|
var t2 = {};
|
|
41476
43041
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41477
43042
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41502,7 +43067,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41502
43067
|
picker,
|
|
41503
43068
|
styles,
|
|
41504
43069
|
classNames: classNames$1
|
|
41505
|
-
} = props, restProps = __rest$
|
|
43070
|
+
} = props, restProps = __rest$t(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
|
|
41506
43071
|
const pickerType = picker === TIME ? "timePicker" : "datePicker";
|
|
41507
43072
|
const innerRef = React__namespace.useRef(null);
|
|
41508
43073
|
const {
|
|
@@ -41607,7 +43172,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41607
43172
|
}
|
|
41608
43173
|
return RangePicker2;
|
|
41609
43174
|
};
|
|
41610
|
-
var __rest$
|
|
43175
|
+
var __rest$s = function(s, e3) {
|
|
41611
43176
|
var t2 = {};
|
|
41612
43177
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41613
43178
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41640,7 +43205,7 @@ const generatePicker$1 = (generateConfig2) => {
|
|
|
41640
43205
|
onCalendarChange,
|
|
41641
43206
|
styles,
|
|
41642
43207
|
classNames: classNames$1
|
|
41643
|
-
} = props, restProps = __rest$
|
|
43208
|
+
} = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
|
|
41644
43209
|
const {
|
|
41645
43210
|
getPrefixCls,
|
|
41646
43211
|
direction,
|
|
@@ -41797,8 +43362,8 @@ const generatePicker = (generateConfig2) => {
|
|
|
41797
43362
|
return MergedDatePicker;
|
|
41798
43363
|
};
|
|
41799
43364
|
const DatePicker$1 = generatePicker(generateConfig);
|
|
41800
|
-
const PurePanel$
|
|
41801
|
-
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
43365
|
+
const PurePanel$4 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
|
|
43366
|
+
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
|
|
41802
43367
|
const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
|
|
41803
43368
|
DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
|
|
41804
43369
|
DatePicker$1.generatePicker = generatePicker;
|
|
@@ -42421,7 +43986,7 @@ const useStyle$c = genStyleHooks("Drawer", (token2) => {
|
|
|
42421
43986
|
const drawerToken = merge$1(token2, {});
|
|
42422
43987
|
return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
|
|
42423
43988
|
}, prepareComponentToken$a);
|
|
42424
|
-
var __rest$
|
|
43989
|
+
var __rest$r = function(s, e3) {
|
|
42425
43990
|
var t2 = {};
|
|
42426
43991
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
42427
43992
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -42457,7 +44022,7 @@ const Drawer2 = (props) => {
|
|
|
42457
44022
|
contentWrapperStyle,
|
|
42458
44023
|
destroyOnClose,
|
|
42459
44024
|
destroyOnHidden
|
|
42460
|
-
} = props, rest = __rest$
|
|
44025
|
+
} = props, rest = __rest$r(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
|
|
42461
44026
|
const {
|
|
42462
44027
|
getPopupContainer,
|
|
42463
44028
|
getPrefixCls,
|
|
@@ -42550,13 +44115,13 @@ const Drawer2 = (props) => {
|
|
|
42550
44115
|
onClose
|
|
42551
44116
|
}))))));
|
|
42552
44117
|
};
|
|
42553
|
-
const PurePanel$
|
|
44118
|
+
const PurePanel$3 = (props) => {
|
|
42554
44119
|
const {
|
|
42555
44120
|
prefixCls: customizePrefixCls,
|
|
42556
44121
|
style: style2,
|
|
42557
44122
|
className,
|
|
42558
44123
|
placement = "right"
|
|
42559
|
-
} = props, restProps = __rest$
|
|
44124
|
+
} = props, restProps = __rest$r(props, ["prefixCls", "style", "className", "placement"]);
|
|
42560
44125
|
const {
|
|
42561
44126
|
getPrefixCls
|
|
42562
44127
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -42570,7 +44135,7 @@ const PurePanel$1 = (props) => {
|
|
|
42570
44135
|
prefixCls
|
|
42571
44136
|
}, restProps))));
|
|
42572
44137
|
};
|
|
42573
|
-
Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
44138
|
+
Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$3;
|
|
42574
44139
|
if (process.env.NODE_ENV !== "production") {
|
|
42575
44140
|
Drawer2.displayName = "Drawer";
|
|
42576
44141
|
}
|
|
@@ -42607,7 +44172,7 @@ const Item = ({
|
|
|
42607
44172
|
className: `${className}-split`
|
|
42608
44173
|
}, split));
|
|
42609
44174
|
};
|
|
42610
|
-
var __rest$
|
|
44175
|
+
var __rest$q = function(s, e3) {
|
|
42611
44176
|
var t2 = {};
|
|
42612
44177
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
42613
44178
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -42639,7 +44204,7 @@ const InternalSpace = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
42639
44204
|
wrap: wrap2 = false,
|
|
42640
44205
|
classNames: customClassNames,
|
|
42641
44206
|
styles
|
|
42642
|
-
} = props, otherProps = __rest$
|
|
44207
|
+
} = props, otherProps = __rest$q(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
|
|
42643
44208
|
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
|
|
42644
44209
|
const isPresetVerticalSize = isPresetSize(verticalSize);
|
|
42645
44210
|
const isPresetHorizontalSize = isPresetSize(horizontalSize);
|
|
@@ -42650,7 +44215,7 @@ const InternalSpace = /* @__PURE__ */ React__namespace.forwardRef((props, ref) =
|
|
|
42650
44215
|
});
|
|
42651
44216
|
const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
|
|
42652
44217
|
const prefixCls = getPrefixCls("space", customizePrefixCls);
|
|
42653
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
44218
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$v(prefixCls);
|
|
42654
44219
|
const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
|
|
42655
44220
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
42656
44221
|
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
|
@@ -42702,7 +44267,7 @@ Space.Compact = Compact$1;
|
|
|
42702
44267
|
if (process.env.NODE_ENV !== "production") {
|
|
42703
44268
|
Space.displayName = "Space";
|
|
42704
44269
|
}
|
|
42705
|
-
var __rest$
|
|
44270
|
+
var __rest$p = function(s, e3) {
|
|
42706
44271
|
var t2 = {};
|
|
42707
44272
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
42708
44273
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -42748,7 +44313,7 @@ const DropdownButton = (props) => {
|
|
|
42748
44313
|
destroyPopupOnHide,
|
|
42749
44314
|
dropdownRender,
|
|
42750
44315
|
popupRender
|
|
42751
|
-
} = props, restProps = __rest$
|
|
44316
|
+
} = props, restProps = __rest$p(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyOnHidden", "destroyPopupOnHide", "dropdownRender", "popupRender"]);
|
|
42752
44317
|
const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
|
|
42753
44318
|
const buttonPrefixCls = `${prefixCls}-button`;
|
|
42754
44319
|
const mergedPopupRender = popupRender || dropdownRender;
|
|
@@ -43441,7 +45006,7 @@ function useFormWarning({
|
|
|
43441
45006
|
}
|
|
43442
45007
|
}, [name2]);
|
|
43443
45008
|
}
|
|
43444
|
-
var __rest$
|
|
45009
|
+
var __rest$o = function(s, e3) {
|
|
43445
45010
|
var t2 = {};
|
|
43446
45011
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
43447
45012
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -43481,7 +45046,7 @@ const InternalForm = (props, ref) => {
|
|
|
43481
45046
|
style: style2,
|
|
43482
45047
|
feedbackIcons,
|
|
43483
45048
|
variant
|
|
43484
|
-
} = props, restFormProps = __rest$
|
|
45049
|
+
} = props, restFormProps = __rest$o(props, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]);
|
|
43485
45050
|
const mergedSize = useSize(size);
|
|
43486
45051
|
const contextValidateMessages = React__namespace.useContext(ValidateMessagesContext);
|
|
43487
45052
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -43680,7 +45245,7 @@ const FallbackCmp = genSubStyleComponent(["Form", "item-item"], (token2, {
|
|
|
43680
45245
|
const formToken = prepareToken$1(token2, rootPrefixCls);
|
|
43681
45246
|
return genFallbackStyle(formToken);
|
|
43682
45247
|
});
|
|
43683
|
-
var __rest$
|
|
45248
|
+
var __rest$n = function(s, e3) {
|
|
43684
45249
|
var t2 = {};
|
|
43685
45250
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
43686
45251
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -43730,7 +45295,7 @@ const FormItemInput = (props) => {
|
|
|
43730
45295
|
const {
|
|
43731
45296
|
labelCol: labelCol2,
|
|
43732
45297
|
wrapperCol: wrapperCol2
|
|
43733
|
-
} = formContext, rest = __rest$
|
|
45298
|
+
} = formContext, rest = __rest$n(formContext, ["labelCol", "wrapperCol"]);
|
|
43734
45299
|
return rest;
|
|
43735
45300
|
}, [formContext]);
|
|
43736
45301
|
const extraRef = React__namespace.useRef(null);
|
|
@@ -43800,7 +45365,7 @@ var RefIcon$o = /* @__PURE__ */ React__namespace.forwardRef(QuestionCircleOutlin
|
|
|
43800
45365
|
if (process.env.NODE_ENV !== "production") {
|
|
43801
45366
|
RefIcon$o.displayName = "QuestionCircleOutlined";
|
|
43802
45367
|
}
|
|
43803
|
-
var __rest$
|
|
45368
|
+
var __rest$m = function(s, e3) {
|
|
43804
45369
|
var t2 = {};
|
|
43805
45370
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
43806
45371
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -43847,7 +45412,7 @@ const FormItemLabel = ({
|
|
|
43847
45412
|
if (tooltipProps) {
|
|
43848
45413
|
const {
|
|
43849
45414
|
icon = /* @__PURE__ */ React__namespace.createElement(RefIcon$o, null)
|
|
43850
|
-
} = tooltipProps, restTooltipProps = __rest$
|
|
45415
|
+
} = tooltipProps, restTooltipProps = __rest$m(tooltipProps, ["icon"]);
|
|
43851
45416
|
const tooltipNode = /* @__PURE__ */ React__namespace.createElement(Tooltip$2, Object.assign({}, restTooltipProps), /* @__PURE__ */ React__namespace.cloneElement(icon, {
|
|
43852
45417
|
className: `${prefixCls}-item-tooltip`,
|
|
43853
45418
|
title: "",
|
|
@@ -43956,7 +45521,7 @@ function StatusProvider({
|
|
|
43956
45521
|
value: formItemStatusContext
|
|
43957
45522
|
}, children2);
|
|
43958
45523
|
}
|
|
43959
|
-
var __rest$
|
|
45524
|
+
var __rest$l = function(s, e3) {
|
|
43960
45525
|
var t2 = {};
|
|
43961
45526
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
43962
45527
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -43984,7 +45549,7 @@ function ItemHolder(props) {
|
|
|
43984
45549
|
onSubItemMetaChange,
|
|
43985
45550
|
layout: propsLayout,
|
|
43986
45551
|
name: name2
|
|
43987
|
-
} = props, restProps = __rest$
|
|
45552
|
+
} = props, restProps = __rest$l(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]);
|
|
43988
45553
|
const itemPrefixCls = `${prefixCls}-item`;
|
|
43989
45554
|
const {
|
|
43990
45555
|
requiredMark,
|
|
@@ -44326,7 +45891,7 @@ function InternalFormItem(props) {
|
|
|
44326
45891
|
}
|
|
44327
45892
|
const FormItem$1 = InternalFormItem;
|
|
44328
45893
|
FormItem$1.useStatus = useFormItemStatus;
|
|
44329
|
-
var __rest$
|
|
45894
|
+
var __rest$k = function(s, e3) {
|
|
44330
45895
|
var t2 = {};
|
|
44331
45896
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
44332
45897
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -44338,7 +45903,7 @@ const FormList = (_a) => {
|
|
|
44338
45903
|
var {
|
|
44339
45904
|
prefixCls: customizePrefixCls,
|
|
44340
45905
|
children: children2
|
|
44341
|
-
} = _a, props = __rest$
|
|
45906
|
+
} = _a, props = __rest$k(_a, ["prefixCls", "children"]);
|
|
44342
45907
|
if (process.env.NODE_ENV !== "production") {
|
|
44343
45908
|
const warning3 = devUseWarning("Form.List");
|
|
44344
45909
|
process.env.NODE_ENV !== "production" ? warning3(typeof props.name === "number" || (Array.isArray(props.name) ? !!props.name.length : !!props.name), "usage", "Miss `name` prop.") : void 0;
|
|
@@ -44494,7 +46059,7 @@ const useStyle$a = genStyleHooks(["Input", "OTP"], (token2) => {
|
|
|
44494
46059
|
const inputToken = merge$1(token2, initInputToken(token2));
|
|
44495
46060
|
return genOTPStyle(inputToken);
|
|
44496
46061
|
}, initComponentToken$1);
|
|
44497
|
-
var __rest$
|
|
46062
|
+
var __rest$j = function(s, e3) {
|
|
44498
46063
|
var t2 = {};
|
|
44499
46064
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
44500
46065
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -44510,7 +46075,7 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44510
46075
|
onActiveChange,
|
|
44511
46076
|
index: index2,
|
|
44512
46077
|
mask
|
|
44513
|
-
} = props, restProps = __rest$
|
|
46078
|
+
} = props, restProps = __rest$j(props, ["className", "value", "onChange", "onActiveChange", "index", "mask"]);
|
|
44514
46079
|
const {
|
|
44515
46080
|
getPrefixCls
|
|
44516
46081
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -44574,7 +46139,7 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44574
46139
|
})
|
|
44575
46140
|
})));
|
|
44576
46141
|
});
|
|
44577
|
-
var __rest$
|
|
46142
|
+
var __rest$i = function(s, e3) {
|
|
44578
46143
|
var t2 = {};
|
|
44579
46144
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
44580
46145
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -44617,7 +46182,7 @@ const OTP = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44617
46182
|
type: type4,
|
|
44618
46183
|
onInput,
|
|
44619
46184
|
inputMode
|
|
44620
|
-
} = props, restProps = __rest$
|
|
46185
|
+
} = props, restProps = __rest$i(props, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "separator", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
|
|
44621
46186
|
if (process.env.NODE_ENV !== "production") {
|
|
44622
46187
|
const warning3 = devUseWarning("Input.OTP");
|
|
44623
46188
|
process.env.NODE_ENV !== "production" ? warning3(!(typeof mask === "string" && mask.length > 1), "usage", "`mask` prop should be a single character.") : void 0;
|
|
@@ -44768,7 +46333,7 @@ var RefIcon$m = /* @__PURE__ */ React__namespace.forwardRef(EyeInvisibleOutlined
|
|
|
44768
46333
|
if (process.env.NODE_ENV !== "production") {
|
|
44769
46334
|
RefIcon$m.displayName = "EyeInvisibleOutlined";
|
|
44770
46335
|
}
|
|
44771
|
-
var __rest$
|
|
46336
|
+
var __rest$h = function(s, e3) {
|
|
44772
46337
|
var t2 = {};
|
|
44773
46338
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
44774
46339
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -44835,7 +46400,7 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44835
46400
|
prefixCls: customizePrefixCls,
|
|
44836
46401
|
inputPrefixCls: customizeInputPrefixCls,
|
|
44837
46402
|
size
|
|
44838
|
-
} = props, restProps = __rest$
|
|
46403
|
+
} = props, restProps = __rest$h(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
|
44839
46404
|
const {
|
|
44840
46405
|
getPrefixCls
|
|
44841
46406
|
} = React__namespace.useContext(ConfigContext);
|
|
@@ -44861,7 +46426,7 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44861
46426
|
if (process.env.NODE_ENV !== "production") {
|
|
44862
46427
|
Password.displayName = "Input.Password";
|
|
44863
46428
|
}
|
|
44864
|
-
var __rest$
|
|
46429
|
+
var __rest$g = function(s, e3) {
|
|
44865
46430
|
var t2 = {};
|
|
44866
46431
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
44867
46432
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -44886,7 +46451,7 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
44886
46451
|
onCompositionEnd,
|
|
44887
46452
|
variant,
|
|
44888
46453
|
onPressEnter: customOnPressEnter
|
|
44889
|
-
} = props, restProps = __rest$
|
|
46454
|
+
} = props, restProps = __rest$g(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
|
|
44890
46455
|
const {
|
|
44891
46456
|
getPrefixCls,
|
|
44892
46457
|
direction
|
|
@@ -45443,7 +47008,7 @@ const useStyle$9 = genStyleHooks(["Input", "TextArea"], (token2) => {
|
|
|
45443
47008
|
}, initComponentToken$1, {
|
|
45444
47009
|
resetFont: false
|
|
45445
47010
|
});
|
|
45446
|
-
var __rest$
|
|
47011
|
+
var __rest$f = function(s, e3) {
|
|
45447
47012
|
var t2 = {};
|
|
45448
47013
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
45449
47014
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -45469,7 +47034,7 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
45469
47034
|
showCount,
|
|
45470
47035
|
onMouseDown,
|
|
45471
47036
|
onResize: onResize2
|
|
45472
|
-
} = props, rest = __rest$
|
|
47037
|
+
} = props, rest = __rest$f(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
|
|
45473
47038
|
if (process.env.NODE_ENV !== "production") {
|
|
45474
47039
|
const {
|
|
45475
47040
|
deprecated
|
|
@@ -46746,7 +48311,7 @@ function useShowSizeChanger(showSizeChanger) {
|
|
|
46746
48311
|
return [void 0, void 0];
|
|
46747
48312
|
}, [showSizeChanger]);
|
|
46748
48313
|
}
|
|
46749
|
-
var __rest$
|
|
48314
|
+
var __rest$e = function(s, e3) {
|
|
46750
48315
|
var t2 = {};
|
|
46751
48316
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
46752
48317
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -46768,7 +48333,7 @@ const Pagination2 = (props) => {
|
|
|
46768
48333
|
showSizeChanger,
|
|
46769
48334
|
selectComponentClass,
|
|
46770
48335
|
pageSizeOptions
|
|
46771
|
-
} = props, restProps = __rest$
|
|
48336
|
+
} = props, restProps = __rest$e(props, ["align", "prefixCls", "selectPrefixCls", "className", "rootClassName", "style", "size", "locale", "responsive", "showSizeChanger", "selectComponentClass", "pageSizeOptions"]);
|
|
46772
48337
|
const {
|
|
46773
48338
|
xs
|
|
46774
48339
|
} = useBreakpoint$1(responsive);
|
|
@@ -47302,7 +48867,7 @@ function usePercent(spinning, percent) {
|
|
|
47302
48867
|
}, [isAuto, spinning]);
|
|
47303
48868
|
return isAuto ? mockPercent : percent;
|
|
47304
48869
|
}
|
|
47305
|
-
var __rest$
|
|
48870
|
+
var __rest$d = function(s, e3) {
|
|
47306
48871
|
var t2 = {};
|
|
47307
48872
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
47308
48873
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -47330,7 +48895,7 @@ const Spin = (props) => {
|
|
|
47330
48895
|
fullscreen = false,
|
|
47331
48896
|
indicator,
|
|
47332
48897
|
percent
|
|
47333
|
-
} = props, restProps = __rest$
|
|
48898
|
+
} = props, restProps = __rest$d(props, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen", "indicator", "percent"]);
|
|
47334
48899
|
const {
|
|
47335
48900
|
getPrefixCls,
|
|
47336
48901
|
direction,
|
|
@@ -47415,6 +48980,95 @@ const toList$1 = (candidate, skipEmpty = false) => {
|
|
|
47415
48980
|
}
|
|
47416
48981
|
return Array.isArray(candidate) ? candidate : [candidate];
|
|
47417
48982
|
};
|
|
48983
|
+
var __rest$c = function(s, e3) {
|
|
48984
|
+
var t2 = {};
|
|
48985
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
48986
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
48987
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
48988
|
+
}
|
|
48989
|
+
return t2;
|
|
48990
|
+
};
|
|
48991
|
+
const PurePanel$2 = (props) => {
|
|
48992
|
+
const {
|
|
48993
|
+
prefixCls: customizePrefixCls,
|
|
48994
|
+
className,
|
|
48995
|
+
closeIcon,
|
|
48996
|
+
closable,
|
|
48997
|
+
type: type4,
|
|
48998
|
+
title,
|
|
48999
|
+
children: children2,
|
|
49000
|
+
footer: footer2
|
|
49001
|
+
} = props, restProps = __rest$c(props, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]);
|
|
49002
|
+
const {
|
|
49003
|
+
getPrefixCls
|
|
49004
|
+
} = React__namespace.useContext(ConfigContext);
|
|
49005
|
+
const rootPrefixCls = getPrefixCls();
|
|
49006
|
+
const prefixCls = customizePrefixCls || getPrefixCls("modal");
|
|
49007
|
+
const rootCls = useCSSVarCls(rootPrefixCls);
|
|
49008
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls, rootCls);
|
|
49009
|
+
const confirmPrefixCls = `${prefixCls}-confirm`;
|
|
49010
|
+
let additionalProps = {};
|
|
49011
|
+
if (type4) {
|
|
49012
|
+
additionalProps = {
|
|
49013
|
+
closable: closable !== null && closable !== void 0 ? closable : false,
|
|
49014
|
+
title: "",
|
|
49015
|
+
footer: "",
|
|
49016
|
+
children: /* @__PURE__ */ React__namespace.createElement(ConfirmContent, Object.assign({}, props, {
|
|
49017
|
+
prefixCls,
|
|
49018
|
+
confirmPrefixCls,
|
|
49019
|
+
rootPrefixCls,
|
|
49020
|
+
content: children2
|
|
49021
|
+
}))
|
|
49022
|
+
};
|
|
49023
|
+
} else {
|
|
49024
|
+
additionalProps = {
|
|
49025
|
+
closable: closable !== null && closable !== void 0 ? closable : true,
|
|
49026
|
+
title,
|
|
49027
|
+
footer: footer2 !== null && /* @__PURE__ */ React__namespace.createElement(Footer$3, Object.assign({}, props)),
|
|
49028
|
+
children: children2
|
|
49029
|
+
};
|
|
49030
|
+
}
|
|
49031
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(Panel$1, Object.assign({
|
|
49032
|
+
prefixCls,
|
|
49033
|
+
className: classNames(hashId, `${prefixCls}-pure-panel`, type4 && confirmPrefixCls, type4 && `${confirmPrefixCls}-${type4}`, className, cssVarCls, rootCls)
|
|
49034
|
+
}, restProps, {
|
|
49035
|
+
closeIcon: renderCloseIcon(prefixCls, closeIcon),
|
|
49036
|
+
closable
|
|
49037
|
+
}, additionalProps)));
|
|
49038
|
+
};
|
|
49039
|
+
const PurePanel$1 = withPureRenderTheme(PurePanel$2);
|
|
49040
|
+
function modalWarn(props) {
|
|
49041
|
+
return confirm(withWarn(props));
|
|
49042
|
+
}
|
|
49043
|
+
const Modal$1 = Modal$2;
|
|
49044
|
+
Modal$1.useModal = useModal;
|
|
49045
|
+
Modal$1.info = function infoFn(props) {
|
|
49046
|
+
return confirm(withInfo(props));
|
|
49047
|
+
};
|
|
49048
|
+
Modal$1.success = function successFn(props) {
|
|
49049
|
+
return confirm(withSuccess(props));
|
|
49050
|
+
};
|
|
49051
|
+
Modal$1.error = function errorFn(props) {
|
|
49052
|
+
return confirm(withError(props));
|
|
49053
|
+
};
|
|
49054
|
+
Modal$1.warning = modalWarn;
|
|
49055
|
+
Modal$1.warn = modalWarn;
|
|
49056
|
+
Modal$1.confirm = function confirmFn(props) {
|
|
49057
|
+
return confirm(withConfirm(props));
|
|
49058
|
+
};
|
|
49059
|
+
Modal$1.destroyAll = function destroyAllFn() {
|
|
49060
|
+
while (destroyFns.length) {
|
|
49061
|
+
const close = destroyFns.pop();
|
|
49062
|
+
if (close) {
|
|
49063
|
+
close();
|
|
49064
|
+
}
|
|
49065
|
+
}
|
|
49066
|
+
};
|
|
49067
|
+
Modal$1.config = modalGlobalConfig;
|
|
49068
|
+
Modal$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
|
|
49069
|
+
if (process.env.NODE_ENV !== "production") {
|
|
49070
|
+
Modal$1.displayName = "Modal";
|
|
49071
|
+
}
|
|
47418
49072
|
const genBaseStyle$3 = (token2) => {
|
|
47419
49073
|
const {
|
|
47420
49074
|
componentCls,
|
|
@@ -47551,7 +49205,7 @@ const PurePanel = (props) => {
|
|
|
47551
49205
|
} = React__namespace.useContext(ConfigContext);
|
|
47552
49206
|
const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
|
|
47553
49207
|
const [wrapCSSVar] = useStyle$6(prefixCls);
|
|
47554
|
-
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$
|
|
49208
|
+
return wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(PurePanel$6, {
|
|
47555
49209
|
placement,
|
|
47556
49210
|
className: classNames(prefixCls, className),
|
|
47557
49211
|
style: style2,
|
|
@@ -51684,11 +53338,11 @@ function Panel(_ref) {
|
|
|
51684
53338
|
}
|
|
51685
53339
|
function getOffset(node2) {
|
|
51686
53340
|
var element2 = getDOM(node2);
|
|
51687
|
-
var
|
|
53341
|
+
var box2 = element2.getBoundingClientRect();
|
|
51688
53342
|
var docElem = document.documentElement;
|
|
51689
53343
|
return {
|
|
51690
|
-
left:
|
|
51691
|
-
top:
|
|
53344
|
+
left: box2.left + (window.pageXOffset || docElem.scrollLeft) - (docElem.clientLeft || document.body.clientLeft || 0),
|
|
53345
|
+
top: box2.top + (window.pageYOffset || docElem.scrollTop) - (docElem.clientTop || document.body.clientTop || 0)
|
|
51692
53346
|
};
|
|
51693
53347
|
}
|
|
51694
53348
|
var StickyScrollBar$1 = function StickyScrollBar(_ref, ref) {
|
|
@@ -56178,13 +57832,13 @@ const FilterDropdown = (props) => {
|
|
|
56178
57832
|
internalTriggerFilter(getFilteredKeysSync());
|
|
56179
57833
|
};
|
|
56180
57834
|
const onReset = ({
|
|
56181
|
-
confirm,
|
|
57835
|
+
confirm: confirm2,
|
|
56182
57836
|
closeDropdown
|
|
56183
57837
|
} = {
|
|
56184
57838
|
confirm: false,
|
|
56185
57839
|
closeDropdown: false
|
|
56186
57840
|
}) => {
|
|
56187
|
-
if (
|
|
57841
|
+
if (confirm2) {
|
|
56188
57842
|
internalTriggerFilter([]);
|
|
56189
57843
|
}
|
|
56190
57844
|
if (closeDropdown) {
|
|
@@ -80493,6 +82147,164 @@ const Message = ({
|
|
|
80493
82147
|
) : null
|
|
80494
82148
|
] });
|
|
80495
82149
|
};
|
|
82150
|
+
const getGenesisModalClass = ({ borderRadius: borderRadius2, shadows: shadows2 }) => `
|
|
82151
|
+
.ant-modal-content {
|
|
82152
|
+
padding: 0 !important;
|
|
82153
|
+
border-radius: ${borderRadius2.BorderRadiusMd}px !important;
|
|
82154
|
+
box-shadow: ${shadows2.general["2"]} !important;
|
|
82155
|
+
overflow: hidden;
|
|
82156
|
+
}
|
|
82157
|
+
|
|
82158
|
+
.ant-modal-body {
|
|
82159
|
+
display: flex;
|
|
82160
|
+
flex-direction: column;
|
|
82161
|
+
max-height: 80vh;
|
|
82162
|
+
}
|
|
82163
|
+
|
|
82164
|
+
.ant-modal-footer {
|
|
82165
|
+
margin: 0 !important;
|
|
82166
|
+
padding: 0 !important;
|
|
82167
|
+
}
|
|
82168
|
+
`;
|
|
82169
|
+
const StyledModal = styled(Modal$1).attrs({
|
|
82170
|
+
destroyOnHidden: true,
|
|
82171
|
+
closable: false,
|
|
82172
|
+
footer: null
|
|
82173
|
+
})`
|
|
82174
|
+
${({ theme }) => {
|
|
82175
|
+
if (!theme) return "";
|
|
82176
|
+
return getGenesisModalClass(theme);
|
|
82177
|
+
}}
|
|
82178
|
+
`;
|
|
82179
|
+
const ScrollableContent$1 = styled.div`
|
|
82180
|
+
overflow-y: auto;
|
|
82181
|
+
flex: 1;
|
|
82182
|
+
display: flex;
|
|
82183
|
+
flex-direction: column;
|
|
82184
|
+
|
|
82185
|
+
scrollbar-width: thin;
|
|
82186
|
+
scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
|
|
82187
|
+
|
|
82188
|
+
&::-webkit-scrollbar {
|
|
82189
|
+
width: 4px;
|
|
82190
|
+
}
|
|
82191
|
+
|
|
82192
|
+
&::-webkit-scrollbar-track {
|
|
82193
|
+
background: transparent;
|
|
82194
|
+
}
|
|
82195
|
+
|
|
82196
|
+
&::-webkit-scrollbar-thumb {
|
|
82197
|
+
background: rgba(0, 0, 0, 0.15);
|
|
82198
|
+
border-radius: 4px;
|
|
82199
|
+
}
|
|
82200
|
+
|
|
82201
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
82202
|
+
background: rgba(0, 0, 0, 0.3);
|
|
82203
|
+
}
|
|
82204
|
+
`;
|
|
82205
|
+
const MODAL_WIDTHS = {
|
|
82206
|
+
sm: 400,
|
|
82207
|
+
md: 540,
|
|
82208
|
+
lg: 720
|
|
82209
|
+
};
|
|
82210
|
+
const Modal = ({
|
|
82211
|
+
open,
|
|
82212
|
+
size = "md",
|
|
82213
|
+
closable = true,
|
|
82214
|
+
children: children2,
|
|
82215
|
+
header,
|
|
82216
|
+
footer: footer2
|
|
82217
|
+
}) => {
|
|
82218
|
+
const theme = styled.useTheme();
|
|
82219
|
+
const { title, description, onClose } = header;
|
|
82220
|
+
const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
|
|
82221
|
+
const spacing = {
|
|
82222
|
+
Size3: theme?.sizing?.Size3 || 12,
|
|
82223
|
+
Size4: theme?.sizing?.Size4 || 16,
|
|
82224
|
+
Size6: theme?.sizing?.Size6 || 24
|
|
82225
|
+
};
|
|
82226
|
+
const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
|
|
82227
|
+
const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
|
|
82228
|
+
const ModalHeader = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
82229
|
+
Tile,
|
|
82230
|
+
{
|
|
82231
|
+
isHorizontal: true,
|
|
82232
|
+
style: {
|
|
82233
|
+
alignItems: "center",
|
|
82234
|
+
justifyContent: "space-between",
|
|
82235
|
+
padding: `${spacing.Size6}px`,
|
|
82236
|
+
borderBottom: `1px solid ${borderColor}`
|
|
82237
|
+
},
|
|
82238
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
82239
|
+
Tile,
|
|
82240
|
+
{
|
|
82241
|
+
isHorizontal: true,
|
|
82242
|
+
style: {
|
|
82243
|
+
alignItems: "flexStart",
|
|
82244
|
+
gap: `${spacing.Size4}px`,
|
|
82245
|
+
flex: 1
|
|
82246
|
+
},
|
|
82247
|
+
children: [
|
|
82248
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1 }, children: [
|
|
82249
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
82250
|
+
Tile,
|
|
82251
|
+
{
|
|
82252
|
+
isHorizontal: true,
|
|
82253
|
+
style: {
|
|
82254
|
+
gap: `${spacing.Size3}px`,
|
|
82255
|
+
alignItems: "center",
|
|
82256
|
+
height: "40px"
|
|
82257
|
+
},
|
|
82258
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "24px", fontWeight: 400, color: textColor, children: title })
|
|
82259
|
+
}
|
|
82260
|
+
),
|
|
82261
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description })
|
|
82262
|
+
] }),
|
|
82263
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
82264
|
+
Button$1,
|
|
82265
|
+
{
|
|
82266
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(HiX, { size: 24 }),
|
|
82267
|
+
themeType: "utility",
|
|
82268
|
+
onClick: onClose,
|
|
82269
|
+
style: { padding: "4px", height: "fit-content" }
|
|
82270
|
+
}
|
|
82271
|
+
)
|
|
82272
|
+
]
|
|
82273
|
+
}
|
|
82274
|
+
)
|
|
82275
|
+
}
|
|
82276
|
+
);
|
|
82277
|
+
const ModalFooter = () => {
|
|
82278
|
+
const visibleActions = footerActions.slice(0, 2);
|
|
82279
|
+
return showFooter && visibleActions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
82280
|
+
Tile,
|
|
82281
|
+
{
|
|
82282
|
+
isHorizontal: true,
|
|
82283
|
+
style: {
|
|
82284
|
+
padding: `${spacing.Size6}px`,
|
|
82285
|
+
gap: `${spacing.Size4}px`,
|
|
82286
|
+
// borderTop: `1px solid ${borderColor}`,
|
|
82287
|
+
justifyContent: "flex-end"
|
|
82288
|
+
},
|
|
82289
|
+
children: visibleActions.map((action, index2) => /* @__PURE__ */ jsxRuntime.jsx(Button$1, { ...action.btnProps, onClick: action.onClick, children: action.label }, index2))
|
|
82290
|
+
}
|
|
82291
|
+
) : null;
|
|
82292
|
+
};
|
|
82293
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
82294
|
+
StyledModal,
|
|
82295
|
+
{
|
|
82296
|
+
open,
|
|
82297
|
+
width: MODAL_WIDTHS[size],
|
|
82298
|
+
maskClosable: closable,
|
|
82299
|
+
onCancel: onClose,
|
|
82300
|
+
children: [
|
|
82301
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalHeader, {}),
|
|
82302
|
+
/* @__PURE__ */ jsxRuntime.jsx(ScrollableContent$1, { children: children2 }),
|
|
82303
|
+
/* @__PURE__ */ jsxRuntime.jsx(ModalFooter, {})
|
|
82304
|
+
]
|
|
82305
|
+
}
|
|
82306
|
+
);
|
|
82307
|
+
};
|
|
80496
82308
|
styled.nav`
|
|
80497
82309
|
display: flex;
|
|
80498
82310
|
align-items: center;
|
|
@@ -85557,6 +87369,7 @@ const Select = ({
|
|
|
85557
87369
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
85558
87370
|
const [dropdownAnimation, setDropdownAnimation] = React.useState("entered");
|
|
85559
87371
|
const selectReference = React.useRef(null);
|
|
87372
|
+
const [dropdownRect, setDropdownRect] = React.useState(null);
|
|
85560
87373
|
const { theme } = useGenesis();
|
|
85561
87374
|
React.useEffect(() => {
|
|
85562
87375
|
const handleClickOutside = (event2) => {
|
|
@@ -85585,6 +87398,9 @@ const Select = ({
|
|
|
85585
87398
|
if (isOpen) {
|
|
85586
87399
|
handleClose();
|
|
85587
87400
|
} else {
|
|
87401
|
+
if (selectReference.current) {
|
|
87402
|
+
setDropdownRect(selectReference.current.getBoundingClientRect());
|
|
87403
|
+
}
|
|
85588
87404
|
setIsOpen(true);
|
|
85589
87405
|
setDropdownAnimation("entering");
|
|
85590
87406
|
setTimeout(() => {
|
|
@@ -85619,18 +87435,18 @@ const Select = ({
|
|
|
85619
87435
|
return value22;
|
|
85620
87436
|
};
|
|
85621
87437
|
const modeValue = getSelectModeValue(value2);
|
|
85622
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
85623
|
-
|
|
85624
|
-
|
|
85625
|
-
|
|
85626
|
-
|
|
85627
|
-
|
|
85628
|
-
|
|
85629
|
-
|
|
85630
|
-
|
|
85631
|
-
|
|
85632
|
-
|
|
85633
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
87438
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { position: "relative", width }, children: [
|
|
87439
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
87440
|
+
SelectWrapper,
|
|
87441
|
+
{
|
|
87442
|
+
ref: selectReference,
|
|
87443
|
+
$isFocused: isFocused,
|
|
87444
|
+
type: type4,
|
|
87445
|
+
disabled: disabled2,
|
|
87446
|
+
onFocus: () => !disabled2 && setIsFocused(true),
|
|
87447
|
+
onBlur: () => !isOpen && setIsFocused(false),
|
|
87448
|
+
tabIndex: disabled2 ? -1 : 0,
|
|
87449
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
85634
87450
|
SelectTrigger2,
|
|
85635
87451
|
{
|
|
85636
87452
|
theme,
|
|
@@ -85644,46 +87460,49 @@ const Select = ({
|
|
|
85644
87460
|
disabled: disabled2,
|
|
85645
87461
|
variant
|
|
85646
87462
|
}
|
|
85647
|
-
),
|
|
85648
|
-
isOpen && !disabled2 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
85649
|
-
SelectDropdown,
|
|
85650
|
-
{
|
|
85651
|
-
type: type4,
|
|
85652
|
-
state,
|
|
85653
|
-
className: dropdownAnimation,
|
|
85654
|
-
style: {
|
|
85655
|
-
position: "absolute",
|
|
85656
|
-
top: "calc(100% + 4px)",
|
|
85657
|
-
left: 0,
|
|
85658
|
-
right: 0,
|
|
85659
|
-
zIndex: 1e3,
|
|
85660
|
-
backgroundColor: "white",
|
|
85661
|
-
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
85662
|
-
border: "1px solid #d9d9d9",
|
|
85663
|
-
transformOrigin: "top"
|
|
85664
|
-
},
|
|
85665
|
-
children: options.map((option) => {
|
|
85666
|
-
const isSelected = Array.isArray(value2) ? value2.map(String).includes(option.value) : String(value2) === option.value;
|
|
85667
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
85668
|
-
MenuItem,
|
|
85669
|
-
{
|
|
85670
|
-
onClick: () => handleOptionSelect(option.value),
|
|
85671
|
-
$isSelected: isSelected,
|
|
85672
|
-
type: type4,
|
|
85673
|
-
disabled: disabled2,
|
|
85674
|
-
children: [
|
|
85675
|
-
option.label,
|
|
85676
|
-
isSelected && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: "8px" }, children: "✓" })
|
|
85677
|
-
]
|
|
85678
|
-
},
|
|
85679
|
-
option.value
|
|
85680
|
-
);
|
|
85681
|
-
})
|
|
85682
|
-
}
|
|
85683
87463
|
)
|
|
85684
|
-
|
|
85685
|
-
|
|
85686
|
-
|
|
87464
|
+
}
|
|
87465
|
+
),
|
|
87466
|
+
isOpen && !disabled2 && dropdownRect && ReactDOM.createPortal(
|
|
87467
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
87468
|
+
SelectDropdown,
|
|
87469
|
+
{
|
|
87470
|
+
type: type4,
|
|
87471
|
+
state,
|
|
87472
|
+
className: dropdownAnimation,
|
|
87473
|
+
style: {
|
|
87474
|
+
position: "fixed",
|
|
87475
|
+
top: dropdownRect.bottom + 4,
|
|
87476
|
+
left: dropdownRect.left,
|
|
87477
|
+
width: dropdownRect.width,
|
|
87478
|
+
zIndex: 1050,
|
|
87479
|
+
backgroundColor: "white",
|
|
87480
|
+
boxShadow: "0 2px 8px rgba(0, 0, 0, 0.15)",
|
|
87481
|
+
border: "1px solid #d9d9d9",
|
|
87482
|
+
transformOrigin: "top"
|
|
87483
|
+
},
|
|
87484
|
+
children: options.map((option) => {
|
|
87485
|
+
const isSelected = Array.isArray(value2) ? value2.map(String).includes(option.value) : String(value2) === option.value;
|
|
87486
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
87487
|
+
MenuItem,
|
|
87488
|
+
{
|
|
87489
|
+
onClick: () => handleOptionSelect(option.value),
|
|
87490
|
+
$isSelected: isSelected,
|
|
87491
|
+
type: type4,
|
|
87492
|
+
disabled: disabled2,
|
|
87493
|
+
children: [
|
|
87494
|
+
option.label,
|
|
87495
|
+
isSelected && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { marginLeft: "8px" }, children: "✓" })
|
|
87496
|
+
]
|
|
87497
|
+
},
|
|
87498
|
+
option.value
|
|
87499
|
+
);
|
|
87500
|
+
})
|
|
87501
|
+
}
|
|
87502
|
+
),
|
|
87503
|
+
document.body
|
|
87504
|
+
)
|
|
87505
|
+
] });
|
|
85687
87506
|
};
|
|
85688
87507
|
const Circle2 = ({ fill = "#CF3237", dataTestId }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
85689
87508
|
"svg",
|
|
@@ -89465,6 +91284,7 @@ exports.InputAddon = InputAddon;
|
|
|
89465
91284
|
exports.Layout = Layout;
|
|
89466
91285
|
exports.LineChart = LineChart;
|
|
89467
91286
|
exports.Message = Message;
|
|
91287
|
+
exports.Modal = Modal;
|
|
89468
91288
|
exports.NavBar = NavBar;
|
|
89469
91289
|
exports.Notification = Notification;
|
|
89470
91290
|
exports.OverflowMenu = OverflowMenu;
|