@gobolt/genesis 0.6.2 → 0.7.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/SidePanel/SidePanel.d.ts +29 -0
- package/dist/components/SidePanel/index.d.ts +2 -0
- package/dist/components/SidePanel/styles.d.ts +8 -0
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.d.ts +1 -5
- package/dist/components/Table/TableControls/TableControls.d.ts +0 -6
- package/dist/components/Table/TableControls/index.d.ts +1 -1
- package/dist/components/Typography/styles.d.ts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.cjs +1390 -325
- package/dist/index.js +1391 -326
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { useTheme as useTheme$1, keyframes, ThemeProvider, createGlobalStyle } from "styled-components";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import React__default, { isValidElement, version as version$2, useContext as useContext$1, createContext as createContext$1, useRef, useLayoutEffect as useLayoutEffect$2, useEffect, forwardRef, useState, useMemo as useMemo$1, Children, useCallback, useImperativeHandle, cloneElement as cloneElement$1, useSyncExternalStore } from "react";
|
|
4
|
+
import React__default, { isValidElement, version as version$2, useContext as useContext$1, createContext as createContext$1, useRef, useLayoutEffect as useLayoutEffect$2, useEffect, forwardRef, useState, useMemo as useMemo$1, Children, useCallback, useImperativeHandle, cloneElement as cloneElement$1, useSyncExternalStore, createElement } from "react";
|
|
5
5
|
import * as ReactDOM from "react-dom";
|
|
6
6
|
import ReactDOM__default, { createPortal, unstable_batchedUpdates, flushSync } from "react-dom";
|
|
7
7
|
function getDefaultExportFromCjs(x2) {
|
|
@@ -5276,7 +5276,7 @@ function getAlphaColor(frontColor, backgroundColor) {
|
|
|
5276
5276
|
a: 1
|
|
5277
5277
|
}).toRgbString();
|
|
5278
5278
|
}
|
|
5279
|
-
var __rest
|
|
5279
|
+
var __rest$$ = function(s, e3) {
|
|
5280
5280
|
var t2 = {};
|
|
5281
5281
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5282
5282
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5287,7 +5287,7 @@ var __rest$_ = function(s, e3) {
|
|
|
5287
5287
|
function formatToken(derivativeToken) {
|
|
5288
5288
|
const {
|
|
5289
5289
|
override
|
|
5290
|
-
} = derivativeToken, restToken = __rest
|
|
5290
|
+
} = derivativeToken, restToken = __rest$$(derivativeToken, ["override"]);
|
|
5291
5291
|
const overrideTokens = Object.assign({}, override);
|
|
5292
5292
|
Object.keys(seedToken).forEach((token2) => {
|
|
5293
5293
|
delete overrideTokens[token2];
|
|
@@ -5441,7 +5441,7 @@ function formatToken(derivativeToken) {
|
|
|
5441
5441
|
}), overrideTokens);
|
|
5442
5442
|
return aliasToken;
|
|
5443
5443
|
}
|
|
5444
|
-
var __rest$
|
|
5444
|
+
var __rest$_ = function(s, e3) {
|
|
5445
5445
|
var t2 = {};
|
|
5446
5446
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
5447
5447
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -5491,7 +5491,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5491
5491
|
const derivativeToken = theme.getDerivativeToken(originToken);
|
|
5492
5492
|
const {
|
|
5493
5493
|
override
|
|
5494
|
-
} = overrideToken, components2 = __rest$
|
|
5494
|
+
} = overrideToken, components2 = __rest$_(overrideToken, ["override"]);
|
|
5495
5495
|
let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {
|
|
5496
5496
|
override
|
|
5497
5497
|
});
|
|
@@ -5500,7 +5500,7 @@ const getComputedToken2 = (originToken, overrideToken, theme) => {
|
|
|
5500
5500
|
Object.entries(components2).forEach(([key, value2]) => {
|
|
5501
5501
|
const {
|
|
5502
5502
|
theme: componentTheme
|
|
5503
|
-
} = value2, componentTokens = __rest$
|
|
5503
|
+
} = value2, componentTokens = __rest$_(value2, ["theme"]);
|
|
5504
5504
|
let mergedComponentToken = componentTokens;
|
|
5505
5505
|
if (componentTheme) {
|
|
5506
5506
|
mergedComponentToken = getComputedToken2(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {
|
|
@@ -5791,10 +5791,10 @@ function useTheme(theme, parentTheme, config) {
|
|
|
5791
5791
|
return !isEqual(prevTheme, nextTheme, true);
|
|
5792
5792
|
}));
|
|
5793
5793
|
}
|
|
5794
|
-
var _excluded$
|
|
5794
|
+
var _excluded$T = ["children"];
|
|
5795
5795
|
var Context$1 = /* @__PURE__ */ React.createContext({});
|
|
5796
5796
|
function MotionProvider(_ref) {
|
|
5797
|
-
var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$
|
|
5797
|
+
var children2 = _ref.children, props = _objectWithoutProperties$1(_ref, _excluded$T);
|
|
5798
5798
|
return /* @__PURE__ */ React.createElement(Context$1.Provider, {
|
|
5799
5799
|
value: props
|
|
5800
5800
|
}, children2);
|
|
@@ -6313,7 +6313,7 @@ function diffKeys() {
|
|
|
6313
6313
|
});
|
|
6314
6314
|
return list2;
|
|
6315
6315
|
}
|
|
6316
|
-
var _excluded$
|
|
6316
|
+
var _excluded$S = ["component", "children", "onVisibleChanged", "onAllRemoved"], _excluded2$9 = ["status"];
|
|
6317
6317
|
var MOTION_PROP_NAMES = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
6318
6318
|
function genCSSMotionList(transitionSupport) {
|
|
6319
6319
|
var CSSMotion$1 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : CSSMotion;
|
|
@@ -6361,7 +6361,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
6361
6361
|
var keyEntities = this.state.keyEntities;
|
|
6362
6362
|
var _this$props = this.props, component = _this$props.component, children2 = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged;
|
|
6363
6363
|
_this$props.onAllRemoved;
|
|
6364
|
-
var restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
6364
|
+
var restProps = _objectWithoutProperties$1(_this$props, _excluded$S);
|
|
6365
6365
|
var Component = component || React.Fragment;
|
|
6366
6366
|
var motionProps = {};
|
|
6367
6367
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
@@ -6455,7 +6455,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
6455
6455
|
PropWarning.displayName = "PropWarning";
|
|
6456
6456
|
}
|
|
6457
6457
|
const PropWarning$1 = process.env.NODE_ENV !== "production" ? PropWarning : () => null;
|
|
6458
|
-
var __rest$
|
|
6458
|
+
var __rest$Z = function(s, e3) {
|
|
6459
6459
|
var t2 = {};
|
|
6460
6460
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
6461
6461
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -6500,7 +6500,7 @@ const ProviderChildren = (props) => {
|
|
|
6500
6500
|
children: children2,
|
|
6501
6501
|
csp: customCsp,
|
|
6502
6502
|
autoInsertSpaceInButton,
|
|
6503
|
-
alert,
|
|
6503
|
+
alert: alert2,
|
|
6504
6504
|
anchor,
|
|
6505
6505
|
form,
|
|
6506
6506
|
locale: locale2,
|
|
@@ -6600,7 +6600,7 @@ const ProviderChildren = (props) => {
|
|
|
6600
6600
|
const baseConfig = {
|
|
6601
6601
|
csp,
|
|
6602
6602
|
autoInsertSpaceInButton,
|
|
6603
|
-
alert,
|
|
6603
|
+
alert: alert2,
|
|
6604
6604
|
anchor,
|
|
6605
6605
|
locale: locale2 || legacyLocale,
|
|
6606
6606
|
direction,
|
|
@@ -6742,7 +6742,7 @@ const ProviderChildren = (props) => {
|
|
|
6742
6742
|
token: token2,
|
|
6743
6743
|
components: components2,
|
|
6744
6744
|
cssVar
|
|
6745
|
-
} = _a, rest = __rest$
|
|
6745
|
+
} = _a, rest = __rest$Z(_a, ["algorithm", "token", "components", "cssVar"]);
|
|
6746
6746
|
const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;
|
|
6747
6747
|
const parsedComponents = {};
|
|
6748
6748
|
Object.entries(components2 || {}).forEach(([componentName, componentToken]) => {
|
|
@@ -6889,7 +6889,7 @@ var useInsertStyles = function useInsertStyles2(eleRef) {
|
|
|
6889
6889
|
});
|
|
6890
6890
|
}, []);
|
|
6891
6891
|
};
|
|
6892
|
-
var _excluded$
|
|
6892
|
+
var _excluded$R = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
|
6893
6893
|
var twoToneColorPalette = {
|
|
6894
6894
|
primaryColor: "#333",
|
|
6895
6895
|
secondaryColor: "#E6E6E6",
|
|
@@ -6905,7 +6905,7 @@ function getTwoToneColors() {
|
|
|
6905
6905
|
return _objectSpread2({}, twoToneColorPalette);
|
|
6906
6906
|
}
|
|
6907
6907
|
var IconBase$1 = function IconBase(props) {
|
|
6908
|
-
var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
6908
|
+
var icon = props.icon, className = props.className, onClick = props.onClick, style2 = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$1(props, _excluded$R);
|
|
6909
6909
|
var svgRef = React.useRef();
|
|
6910
6910
|
var colors2 = twoToneColorPalette;
|
|
6911
6911
|
if (primaryColor) {
|
|
@@ -6955,10 +6955,10 @@ function getTwoToneColor() {
|
|
|
6955
6955
|
}
|
|
6956
6956
|
return [colors2.primaryColor, colors2.secondaryColor];
|
|
6957
6957
|
}
|
|
6958
|
-
var _excluded$
|
|
6958
|
+
var _excluded$Q = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
6959
6959
|
setTwoToneColor(blue.primary);
|
|
6960
6960
|
var Icon$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
6961
|
-
var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
6961
|
+
var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$1(props, _excluded$Q);
|
|
6962
6962
|
var _React$useContext = React.useContext(IconContext$1), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre, rootClassName = _React$useContext.rootClassName;
|
|
6963
6963
|
var classString = classNames(rootClassName, prefixCls, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), className);
|
|
6964
6964
|
var iconTabIndex = tabIndex;
|
|
@@ -7256,7 +7256,7 @@ const genActionStyle = (token2) => {
|
|
|
7256
7256
|
}
|
|
7257
7257
|
};
|
|
7258
7258
|
};
|
|
7259
|
-
const prepareComponentToken$
|
|
7259
|
+
const prepareComponentToken$q = (token2) => {
|
|
7260
7260
|
const paddingHorizontal = 12;
|
|
7261
7261
|
return {
|
|
7262
7262
|
withDescriptionIconSize: token2.fontSizeHeading3,
|
|
@@ -7264,8 +7264,8 @@ const prepareComponentToken$p = (token2) => {
|
|
|
7264
7264
|
withDescriptionPadding: `${token2.paddingMD}px ${token2.paddingContentHorizontalLG}px`
|
|
7265
7265
|
};
|
|
7266
7266
|
};
|
|
7267
|
-
const useStyle$
|
|
7268
|
-
var __rest$
|
|
7267
|
+
const useStyle$w = genStyleHooks("Alert", (token2) => [genBaseStyle$9(token2), genTypeStyle(token2), genActionStyle(token2)], prepareComponentToken$q);
|
|
7268
|
+
var __rest$Y = function(s, e3) {
|
|
7269
7269
|
var t2 = {};
|
|
7270
7270
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
7271
7271
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -7332,7 +7332,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
7332
7332
|
closeIcon,
|
|
7333
7333
|
action,
|
|
7334
7334
|
id: id2
|
|
7335
|
-
} = props, otherProps = __rest$
|
|
7335
|
+
} = props, otherProps = __rest$Y(props, ["description", "prefixCls", "message", "banner", "className", "rootClassName", "style", "onMouseEnter", "onMouseLeave", "onClick", "afterClose", "showIcon", "closable", "closeText", "closeIcon", "action", "id"]);
|
|
7336
7336
|
const [closed, setClosed] = React.useState(false);
|
|
7337
7337
|
if (process.env.NODE_ENV !== "production") {
|
|
7338
7338
|
const warning3 = devUseWarning("Alert");
|
|
@@ -7351,7 +7351,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
7351
7351
|
style: contextStyle
|
|
7352
7352
|
} = useComponentConfig("alert");
|
|
7353
7353
|
const prefixCls = getPrefixCls("alert", customizePrefixCls);
|
|
7354
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
7354
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$w(prefixCls);
|
|
7355
7355
|
const handleClose = (e3) => {
|
|
7356
7356
|
var _a;
|
|
7357
7357
|
setClosed(true);
|
|
@@ -7407,7 +7407,7 @@ const Alert$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
7407
7407
|
if (typeof merged === "object") {
|
|
7408
7408
|
const {
|
|
7409
7409
|
closeIcon: _
|
|
7410
|
-
} = merged, ariaProps = __rest$
|
|
7410
|
+
} = merged, ariaProps = __rest$Y(merged, ["closeIcon"]);
|
|
7411
7411
|
return ariaProps;
|
|
7412
7412
|
}
|
|
7413
7413
|
return {};
|
|
@@ -8314,7 +8314,7 @@ const genWaveStyle = (token2) => {
|
|
|
8314
8314
|
}
|
|
8315
8315
|
};
|
|
8316
8316
|
};
|
|
8317
|
-
const useStyle$
|
|
8317
|
+
const useStyle$v = genComponentStyleHook("Wave", genWaveStyle);
|
|
8318
8318
|
const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
|
|
8319
8319
|
function isValidWaveColor(color2) {
|
|
8320
8320
|
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
|
|
@@ -8492,7 +8492,7 @@ const Wave = (props) => {
|
|
|
8492
8492
|
} = useContext$1(ConfigContext);
|
|
8493
8493
|
const containerRef = useRef(null);
|
|
8494
8494
|
const prefixCls = getPrefixCls("wave");
|
|
8495
|
-
const [, hashId] = useStyle$
|
|
8495
|
+
const [, hashId] = useStyle$v(prefixCls);
|
|
8496
8496
|
const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
|
|
8497
8497
|
React__default.useEffect(() => {
|
|
8498
8498
|
const node2 = containerRef.current;
|
|
@@ -8620,7 +8620,7 @@ const genSpaceGapStyle = (token2) => {
|
|
|
8620
8620
|
}
|
|
8621
8621
|
};
|
|
8622
8622
|
};
|
|
8623
|
-
const useStyle$
|
|
8623
|
+
const useStyle$u = genStyleHooks("Space", (token2) => {
|
|
8624
8624
|
const spaceToken = merge$1(token2, {
|
|
8625
8625
|
spaceGapSmallSize: token2.paddingXS,
|
|
8626
8626
|
spaceGapMiddleSize: token2.padding,
|
|
@@ -8632,7 +8632,7 @@ const useStyle$t = genStyleHooks("Space", (token2) => {
|
|
|
8632
8632
|
// https://github.com/ant-design/ant-design/issues/40315
|
|
8633
8633
|
resetStyle: false
|
|
8634
8634
|
});
|
|
8635
|
-
var __rest$
|
|
8635
|
+
var __rest$X = function(s, e3) {
|
|
8636
8636
|
var t2 = {};
|
|
8637
8637
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8638
8638
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8676,7 +8676,7 @@ const NoCompactStyle = (props) => {
|
|
|
8676
8676
|
const CompactItem = (props) => {
|
|
8677
8677
|
const {
|
|
8678
8678
|
children: children2
|
|
8679
|
-
} = props, others = __rest$
|
|
8679
|
+
} = props, others = __rest$X(props, ["children"]);
|
|
8680
8680
|
return /* @__PURE__ */ React.createElement(SpaceCompactItemContext.Provider, {
|
|
8681
8681
|
value: React.useMemo(() => others, [others])
|
|
8682
8682
|
}, children2);
|
|
@@ -8694,10 +8694,10 @@ const Compact$1 = (props) => {
|
|
|
8694
8694
|
className,
|
|
8695
8695
|
rootClassName,
|
|
8696
8696
|
children: children2
|
|
8697
|
-
} = props, restProps = __rest$
|
|
8697
|
+
} = props, restProps = __rest$X(props, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]);
|
|
8698
8698
|
const mergedSize = useSize((ctx) => size !== null && size !== void 0 ? size : ctx);
|
|
8699
8699
|
const prefixCls = getPrefixCls("space-compact", customizePrefixCls);
|
|
8700
|
-
const [wrapCSSVar, hashId] = useStyle$
|
|
8700
|
+
const [wrapCSSVar, hashId] = useStyle$u(prefixCls);
|
|
8701
8701
|
const clx = classNames(prefixCls, hashId, {
|
|
8702
8702
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
8703
8703
|
[`${prefixCls}-block`]: block,
|
|
@@ -8722,7 +8722,7 @@ const Compact$1 = (props) => {
|
|
|
8722
8722
|
className: clx
|
|
8723
8723
|
}, restProps), nodes));
|
|
8724
8724
|
};
|
|
8725
|
-
var __rest$
|
|
8725
|
+
var __rest$W = function(s, e3) {
|
|
8726
8726
|
var t2 = {};
|
|
8727
8727
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
8728
8728
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -8740,7 +8740,7 @@ const ButtonGroup = (props) => {
|
|
|
8740
8740
|
prefixCls: customizePrefixCls,
|
|
8741
8741
|
size,
|
|
8742
8742
|
className
|
|
8743
|
-
} = props, others = __rest$
|
|
8743
|
+
} = props, others = __rest$W(props, ["prefixCls", "size", "className"]);
|
|
8744
8744
|
const prefixCls = getPrefixCls("btn-group", customizePrefixCls);
|
|
8745
8745
|
const [, , hashId] = useToken();
|
|
8746
8746
|
const sizeCls = React.useMemo(() => {
|
|
@@ -8975,7 +8975,7 @@ const genGroupStyle$2 = (token2) => {
|
|
|
8975
8975
|
]
|
|
8976
8976
|
};
|
|
8977
8977
|
};
|
|
8978
|
-
var _excluded$
|
|
8978
|
+
var _excluded$P = ["b"], _excluded2$8 = ["v"];
|
|
8979
8979
|
var getRoundNumber = function getRoundNumber2(value2) {
|
|
8980
8980
|
return Math.round(Number(value2 || 0));
|
|
8981
8981
|
};
|
|
@@ -8984,7 +8984,7 @@ var convertHsb2Hsv = function convertHsb2Hsv2(color2) {
|
|
|
8984
8984
|
return color2;
|
|
8985
8985
|
}
|
|
8986
8986
|
if (color2 && _typeof(color2) === "object" && "h" in color2 && "b" in color2) {
|
|
8987
|
-
var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$
|
|
8987
|
+
var _ref = color2, b = _ref.b, resets = _objectWithoutProperties$1(_ref, _excluded$P);
|
|
8988
8988
|
return _objectSpread2(_objectSpread2({}, resets), {}, {
|
|
8989
8989
|
v: b
|
|
8990
8990
|
});
|
|
@@ -10130,7 +10130,7 @@ const prepareToken$2 = (token2) => {
|
|
|
10130
10130
|
});
|
|
10131
10131
|
return buttonToken;
|
|
10132
10132
|
};
|
|
10133
|
-
const prepareComponentToken$
|
|
10133
|
+
const prepareComponentToken$p = (token2) => {
|
|
10134
10134
|
var _a, _b, _c, _d, _e, _f;
|
|
10135
10135
|
const contentFontSize = (_a = token2.contentFontSize) !== null && _a !== void 0 ? _a : token2.fontSize;
|
|
10136
10136
|
const contentFontSizeSM = (_b = token2.contentFontSizeSM) !== null && _b !== void 0 ? _b : token2.fontSize;
|
|
@@ -10637,7 +10637,7 @@ const genBlockButtonStyle = (token2) => {
|
|
|
10637
10637
|
}
|
|
10638
10638
|
};
|
|
10639
10639
|
};
|
|
10640
|
-
const useStyle$
|
|
10640
|
+
const useStyle$t = genStyleHooks("Button", (token2) => {
|
|
10641
10641
|
const buttonToken = prepareToken$2(token2);
|
|
10642
10642
|
return [
|
|
10643
10643
|
// Shared
|
|
@@ -10655,7 +10655,7 @@ const useStyle$s = genStyleHooks("Button", (token2) => {
|
|
|
10655
10655
|
// Button Group
|
|
10656
10656
|
genGroupStyle$2(buttonToken)
|
|
10657
10657
|
];
|
|
10658
|
-
}, prepareComponentToken$
|
|
10658
|
+
}, prepareComponentToken$p, {
|
|
10659
10659
|
unitless: {
|
|
10660
10660
|
fontWeight: true,
|
|
10661
10661
|
contentLineHeight: true,
|
|
@@ -10803,8 +10803,8 @@ const Compact = genSubStyleComponent(["Button", "compact"], (token2) => {
|
|
|
10803
10803
|
genCompactItemVerticalStyle(buttonToken),
|
|
10804
10804
|
genButtonCompactStyle(buttonToken)
|
|
10805
10805
|
];
|
|
10806
|
-
}, prepareComponentToken$
|
|
10807
|
-
var __rest$
|
|
10806
|
+
}, prepareComponentToken$p);
|
|
10807
|
+
var __rest$V = function(s, e3) {
|
|
10808
10808
|
var t2 = {};
|
|
10809
10809
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
10810
10810
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -10860,7 +10860,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
10860
10860
|
style: customStyle = {},
|
|
10861
10861
|
autoInsertSpace,
|
|
10862
10862
|
autoFocus
|
|
10863
|
-
} = props, rest = __rest$
|
|
10863
|
+
} = props, rest = __rest$V(props, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]);
|
|
10864
10864
|
const mergedType = type4 || "default";
|
|
10865
10865
|
const {
|
|
10866
10866
|
button: button2
|
|
@@ -10895,7 +10895,7 @@ const InternalCompoundedButton = /* @__PURE__ */ React__default.forwardRef((prop
|
|
|
10895
10895
|
} = useComponentConfig("button");
|
|
10896
10896
|
const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : contextAutoInsertSpace) !== null && _a !== void 0 ? _a : true;
|
|
10897
10897
|
const prefixCls = getPrefixCls("btn", customizePrefixCls);
|
|
10898
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
10898
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$t(prefixCls);
|
|
10899
10899
|
const disabled2 = useContext$1(DisabledContext);
|
|
10900
10900
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled2;
|
|
10901
10901
|
const groupSize = useContext$1(GroupSizeContext);
|
|
@@ -12832,7 +12832,7 @@ function move(array4, moveIndex, toIndex) {
|
|
|
12832
12832
|
}
|
|
12833
12833
|
return array4;
|
|
12834
12834
|
}
|
|
12835
|
-
var _excluded$
|
|
12835
|
+
var _excluded$O = ["name"];
|
|
12836
12836
|
var EMPTY_ERRORS = [];
|
|
12837
12837
|
function requireUpdate(shouldUpdate, prev2, next2, prevValue, nextValue, info) {
|
|
12838
12838
|
if (typeof shouldUpdate === "function") {
|
|
@@ -13279,7 +13279,7 @@ _defineProperty$1(Field, "defaultProps", {
|
|
|
13279
13279
|
});
|
|
13280
13280
|
function WrapperField(_ref6) {
|
|
13281
13281
|
var _restProps$isListFiel;
|
|
13282
|
-
var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$
|
|
13282
|
+
var name2 = _ref6.name, restProps = _objectWithoutProperties$1(_ref6, _excluded$O);
|
|
13283
13283
|
var fieldContext = React.useContext(Context);
|
|
13284
13284
|
var listContext = React.useContext(ListContext);
|
|
13285
13285
|
var namePath = name2 !== void 0 ? getNamePath(name2) : void 0;
|
|
@@ -13511,7 +13511,7 @@ var NameMap = /* @__PURE__ */ (function() {
|
|
|
13511
13511
|
}]);
|
|
13512
13512
|
return NameMap2;
|
|
13513
13513
|
})();
|
|
13514
|
-
var _excluded$
|
|
13514
|
+
var _excluded$N = ["name"];
|
|
13515
13515
|
var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate) {
|
|
13516
13516
|
var _this = this;
|
|
13517
13517
|
_classCallCheck(this, FormStore2);
|
|
@@ -13913,7 +13913,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
13913
13913
|
var prevStore = _this.store;
|
|
13914
13914
|
var namePathList = [];
|
|
13915
13915
|
fields.forEach(function(fieldData) {
|
|
13916
|
-
var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$
|
|
13916
|
+
var name2 = fieldData.name, data = _objectWithoutProperties$1(fieldData, _excluded$N);
|
|
13917
13917
|
var namePath = getNamePath(name2);
|
|
13918
13918
|
namePathList.push(namePath);
|
|
13919
13919
|
if ("value" in data) {
|
|
@@ -14319,9 +14319,9 @@ var FormProvider$1 = function FormProvider(_ref) {
|
|
|
14319
14319
|
})
|
|
14320
14320
|
}, children2);
|
|
14321
14321
|
};
|
|
14322
|
-
var _excluded$
|
|
14322
|
+
var _excluded$M = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed", "clearOnDestroy"];
|
|
14323
14323
|
var Form$4 = function Form(_ref, ref) {
|
|
14324
|
-
var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
14324
|
+
var name2 = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve2 = _ref.preserve, children2 = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, clearOnDestroy = _ref.clearOnDestroy, restProps = _objectWithoutProperties$1(_ref, _excluded$M);
|
|
14325
14325
|
var nativeElementRef = React.useRef(null);
|
|
14326
14326
|
var formContext = React.useContext(FormContext$1);
|
|
14327
14327
|
var _useForm = useForm$1(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
|
|
@@ -14567,6 +14567,93 @@ function mergeProps$1(...items) {
|
|
|
14567
14567
|
});
|
|
14568
14568
|
return ret;
|
|
14569
14569
|
}
|
|
14570
|
+
function pickClosable(context) {
|
|
14571
|
+
if (!context) {
|
|
14572
|
+
return void 0;
|
|
14573
|
+
}
|
|
14574
|
+
const {
|
|
14575
|
+
closable,
|
|
14576
|
+
closeIcon
|
|
14577
|
+
} = context;
|
|
14578
|
+
return {
|
|
14579
|
+
closable,
|
|
14580
|
+
closeIcon
|
|
14581
|
+
};
|
|
14582
|
+
}
|
|
14583
|
+
function useClosableConfig(closableCollection) {
|
|
14584
|
+
const {
|
|
14585
|
+
closable,
|
|
14586
|
+
closeIcon
|
|
14587
|
+
} = closableCollection || {};
|
|
14588
|
+
return React__default.useMemo(() => {
|
|
14589
|
+
if (
|
|
14590
|
+
// If `closable`, whatever rest be should be true
|
|
14591
|
+
!closable && (closable === false || closeIcon === false || closeIcon === null)
|
|
14592
|
+
) {
|
|
14593
|
+
return false;
|
|
14594
|
+
}
|
|
14595
|
+
if (closable === void 0 && closeIcon === void 0) {
|
|
14596
|
+
return null;
|
|
14597
|
+
}
|
|
14598
|
+
let closableConfig = {
|
|
14599
|
+
closeIcon: typeof closeIcon !== "boolean" && closeIcon !== null ? closeIcon : void 0
|
|
14600
|
+
};
|
|
14601
|
+
if (closable && typeof closable === "object") {
|
|
14602
|
+
closableConfig = Object.assign(Object.assign({}, closableConfig), closable);
|
|
14603
|
+
}
|
|
14604
|
+
return closableConfig;
|
|
14605
|
+
}, [closable, closeIcon]);
|
|
14606
|
+
}
|
|
14607
|
+
const EmptyFallbackCloseCollection = {};
|
|
14608
|
+
function useClosable(propCloseCollection, contextCloseCollection, fallbackCloseCollection = EmptyFallbackCloseCollection) {
|
|
14609
|
+
const propCloseConfig = useClosableConfig(propCloseCollection);
|
|
14610
|
+
const contextCloseConfig = useClosableConfig(contextCloseCollection);
|
|
14611
|
+
const [contextLocale] = useLocale$1("global", localeValues.global);
|
|
14612
|
+
const closeBtnIsDisabled = typeof propCloseConfig !== "boolean" ? !!(propCloseConfig === null || propCloseConfig === void 0 ? void 0 : propCloseConfig.disabled) : false;
|
|
14613
|
+
const mergedFallbackCloseCollection = React__default.useMemo(() => Object.assign({
|
|
14614
|
+
closeIcon: /* @__PURE__ */ React__default.createElement(RefIcon$C, null)
|
|
14615
|
+
}, fallbackCloseCollection), [fallbackCloseCollection]);
|
|
14616
|
+
const mergedClosableConfig = React__default.useMemo(() => {
|
|
14617
|
+
if (propCloseConfig === false) {
|
|
14618
|
+
return false;
|
|
14619
|
+
}
|
|
14620
|
+
if (propCloseConfig) {
|
|
14621
|
+
return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig, propCloseConfig);
|
|
14622
|
+
}
|
|
14623
|
+
if (contextCloseConfig === false) {
|
|
14624
|
+
return false;
|
|
14625
|
+
}
|
|
14626
|
+
if (contextCloseConfig) {
|
|
14627
|
+
return mergeProps$1(mergedFallbackCloseCollection, contextCloseConfig);
|
|
14628
|
+
}
|
|
14629
|
+
return !mergedFallbackCloseCollection.closable ? false : mergedFallbackCloseCollection;
|
|
14630
|
+
}, [propCloseConfig, contextCloseConfig, mergedFallbackCloseCollection]);
|
|
14631
|
+
return React__default.useMemo(() => {
|
|
14632
|
+
var _a, _b;
|
|
14633
|
+
if (mergedClosableConfig === false) {
|
|
14634
|
+
return [false, null, closeBtnIsDisabled, {}];
|
|
14635
|
+
}
|
|
14636
|
+
const {
|
|
14637
|
+
closeIconRender
|
|
14638
|
+
} = mergedFallbackCloseCollection;
|
|
14639
|
+
const {
|
|
14640
|
+
closeIcon
|
|
14641
|
+
} = mergedClosableConfig;
|
|
14642
|
+
let mergedCloseIcon = closeIcon;
|
|
14643
|
+
const ariaOrDataProps = pickAttrs(mergedClosableConfig, true);
|
|
14644
|
+
if (mergedCloseIcon !== null && mergedCloseIcon !== void 0) {
|
|
14645
|
+
if (closeIconRender) {
|
|
14646
|
+
mergedCloseIcon = closeIconRender(closeIcon);
|
|
14647
|
+
}
|
|
14648
|
+
mergedCloseIcon = /* @__PURE__ */ React__default.isValidElement(mergedCloseIcon) ? /* @__PURE__ */ React__default.cloneElement(mergedCloseIcon, Object.assign(Object.assign(Object.assign({}, mergedCloseIcon.props), {
|
|
14649
|
+
"aria-label": (_b = (_a = mergedCloseIcon.props) === null || _a === void 0 ? void 0 : _a["aria-label"]) !== null && _b !== void 0 ? _b : contextLocale.close
|
|
14650
|
+
}), ariaOrDataProps)) : /* @__PURE__ */ React__default.createElement("span", Object.assign({
|
|
14651
|
+
"aria-label": contextLocale.close
|
|
14652
|
+
}, ariaOrDataProps), mergedCloseIcon);
|
|
14653
|
+
}
|
|
14654
|
+
return [true, mergedCloseIcon, closeBtnIsDisabled, ariaOrDataProps];
|
|
14655
|
+
}, [mergedClosableConfig, mergedFallbackCloseCollection]);
|
|
14656
|
+
}
|
|
14570
14657
|
var isStyleNameSupport = function isStyleNameSupport2(styleName) {
|
|
14571
14658
|
if (canUseDom() && window.document.documentElement) {
|
|
14572
14659
|
var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
|
|
@@ -14885,7 +14972,7 @@ const genBaseStyle$8 = (token2) => {
|
|
|
14885
14972
|
}
|
|
14886
14973
|
};
|
|
14887
14974
|
};
|
|
14888
|
-
const prepareComponentToken$
|
|
14975
|
+
const prepareComponentToken$o = (token2) => {
|
|
14889
14976
|
const {
|
|
14890
14977
|
colorFillContent,
|
|
14891
14978
|
colorFill
|
|
@@ -14903,7 +14990,7 @@ const prepareComponentToken$n = (token2) => {
|
|
|
14903
14990
|
paragraphLiHeight: token2.controlHeight / 2
|
|
14904
14991
|
};
|
|
14905
14992
|
};
|
|
14906
|
-
const useStyle$
|
|
14993
|
+
const useStyle$s = genStyleHooks("Skeleton", (token2) => {
|
|
14907
14994
|
const {
|
|
14908
14995
|
componentCls,
|
|
14909
14996
|
calc
|
|
@@ -14922,7 +15009,7 @@ const useStyle$r = genStyleHooks("Skeleton", (token2) => {
|
|
|
14922
15009
|
skeletonLoadingMotionDuration: "1.4s"
|
|
14923
15010
|
});
|
|
14924
15011
|
return genBaseStyle$8(skeletonToken);
|
|
14925
|
-
}, prepareComponentToken$
|
|
15012
|
+
}, prepareComponentToken$o, {
|
|
14926
15013
|
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
14927
15014
|
});
|
|
14928
15015
|
const SkeletonAvatar = (props) => {
|
|
@@ -14938,7 +15025,7 @@ const SkeletonAvatar = (props) => {
|
|
|
14938
15025
|
getPrefixCls
|
|
14939
15026
|
} = React.useContext(ConfigContext);
|
|
14940
15027
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14941
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15028
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14942
15029
|
const otherProps = omit(props, ["prefixCls", "className"]);
|
|
14943
15030
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14944
15031
|
[`${prefixCls}-active`]: active
|
|
@@ -14964,7 +15051,7 @@ const SkeletonButton = (props) => {
|
|
|
14964
15051
|
getPrefixCls
|
|
14965
15052
|
} = React.useContext(ConfigContext);
|
|
14966
15053
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14967
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15054
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14968
15055
|
const otherProps = omit(props, ["prefixCls"]);
|
|
14969
15056
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14970
15057
|
[`${prefixCls}-active`]: active,
|
|
@@ -14990,7 +15077,7 @@ const SkeletonImage = (props) => {
|
|
|
14990
15077
|
getPrefixCls
|
|
14991
15078
|
} = React.useContext(ConfigContext);
|
|
14992
15079
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
14993
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15080
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
14994
15081
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
14995
15082
|
[`${prefixCls}-active`]: active
|
|
14996
15083
|
}, className, rootClassName, hashId, cssVarCls);
|
|
@@ -15021,7 +15108,7 @@ const SkeletonInput = (props) => {
|
|
|
15021
15108
|
getPrefixCls
|
|
15022
15109
|
} = React.useContext(ConfigContext);
|
|
15023
15110
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15024
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15111
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15025
15112
|
const otherProps = omit(props, ["prefixCls"]);
|
|
15026
15113
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15027
15114
|
[`${prefixCls}-active`]: active,
|
|
@@ -15047,7 +15134,7 @@ const SkeletonNode = (props) => {
|
|
|
15047
15134
|
getPrefixCls
|
|
15048
15135
|
} = React.useContext(ConfigContext);
|
|
15049
15136
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15050
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15137
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15051
15138
|
const cls = classNames(prefixCls, `${prefixCls}-element`, {
|
|
15052
15139
|
[`${prefixCls}-active`]: active
|
|
15053
15140
|
}, hashId, className, rootClassName, cssVarCls);
|
|
@@ -15172,7 +15259,7 @@ const Skeleton$1 = (props) => {
|
|
|
15172
15259
|
style: contextStyle
|
|
15173
15260
|
} = useComponentConfig("skeleton");
|
|
15174
15261
|
const prefixCls = getPrefixCls("skeleton", customizePrefixCls);
|
|
15175
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
15262
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$s(prefixCls);
|
|
15176
15263
|
if (loading || !("loading" in props)) {
|
|
15177
15264
|
const hasAvatar = !!avatar;
|
|
15178
15265
|
const hasTitle = !!title;
|
|
@@ -15227,6 +15314,26 @@ Skeleton$1.Node = SkeletonNode;
|
|
|
15227
15314
|
if (process.env.NODE_ENV !== "production") {
|
|
15228
15315
|
Skeleton$1.displayName = "Skeleton";
|
|
15229
15316
|
}
|
|
15317
|
+
function voidFunc() {
|
|
15318
|
+
}
|
|
15319
|
+
const WatermarkContext = /* @__PURE__ */ React.createContext({
|
|
15320
|
+
add: voidFunc,
|
|
15321
|
+
remove: voidFunc
|
|
15322
|
+
});
|
|
15323
|
+
function usePanelRef(panelSelector) {
|
|
15324
|
+
const watermark = React.useContext(WatermarkContext);
|
|
15325
|
+
const panelEleRef = React.useRef(null);
|
|
15326
|
+
const panelRef = useEvent((ele) => {
|
|
15327
|
+
if (ele) {
|
|
15328
|
+
const innerContentEle = ele;
|
|
15329
|
+
watermark.add(innerContentEle);
|
|
15330
|
+
panelEleRef.current = innerContentEle;
|
|
15331
|
+
} else {
|
|
15332
|
+
watermark.remove(panelEleRef.current);
|
|
15333
|
+
}
|
|
15334
|
+
});
|
|
15335
|
+
return panelRef;
|
|
15336
|
+
}
|
|
15230
15337
|
const genGridRowStyle = (token2) => {
|
|
15231
15338
|
const {
|
|
15232
15339
|
componentCls
|
|
@@ -15633,10 +15740,10 @@ function isValidateOpenKey(currentKeyCode) {
|
|
|
15633
15740
|
].includes(currentKeyCode)
|
|
15634
15741
|
);
|
|
15635
15742
|
}
|
|
15636
|
-
var _excluded$
|
|
15743
|
+
var _excluded$L = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
|
|
15637
15744
|
var UNDEFINED = void 0;
|
|
15638
15745
|
function InternalItem(props, ref) {
|
|
15639
|
-
var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15746
|
+
var prefixCls = props.prefixCls, invalidate = props.invalidate, item = props.item, renderItem2 = props.renderItem, responsive = props.responsive, responsiveDisabled = props.responsiveDisabled, registerSize = props.registerSize, itemKey2 = props.itemKey, className = props.className, style2 = props.style, children2 = props.children, display = props.display, order2 = props.order, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, restProps = _objectWithoutProperties$1(props, _excluded$L);
|
|
15640
15747
|
var mergedHidden = responsive && !display;
|
|
15641
15748
|
function internalRegisterSize(width) {
|
|
15642
15749
|
registerSize(itemKey2, width);
|
|
@@ -15722,11 +15829,11 @@ function useEffectState(notifyEffectUpdate, defaultValue) {
|
|
|
15722
15829
|
return [stateValue, setEffectVal];
|
|
15723
15830
|
}
|
|
15724
15831
|
var OverflowContext = /* @__PURE__ */ React__default.createContext(null);
|
|
15725
|
-
var _excluded$
|
|
15832
|
+
var _excluded$K = ["component"], _excluded2$7 = ["className"], _excluded3$1 = ["className"];
|
|
15726
15833
|
var InternalRawItem = function InternalRawItem2(props, ref) {
|
|
15727
15834
|
var context = React.useContext(OverflowContext);
|
|
15728
15835
|
if (!context) {
|
|
15729
|
-
var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15836
|
+
var _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, _restProps = _objectWithoutProperties$1(props, _excluded$K);
|
|
15730
15837
|
return /* @__PURE__ */ React.createElement(Component, _extends$1({}, _restProps, {
|
|
15731
15838
|
ref
|
|
15732
15839
|
}));
|
|
@@ -15742,14 +15849,14 @@ var InternalRawItem = function InternalRawItem2(props, ref) {
|
|
|
15742
15849
|
};
|
|
15743
15850
|
var RawItem = /* @__PURE__ */ React.forwardRef(InternalRawItem);
|
|
15744
15851
|
RawItem.displayName = "RawItem";
|
|
15745
|
-
var _excluded$
|
|
15852
|
+
var _excluded$J = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
|
|
15746
15853
|
var RESPONSIVE = "responsive";
|
|
15747
15854
|
var INVALIDATE = "invalidate";
|
|
15748
15855
|
function defaultRenderRest(omittedItems) {
|
|
15749
15856
|
return "+ ".concat(omittedItems.length, " ...");
|
|
15750
15857
|
}
|
|
15751
15858
|
function Overflow(props, ref) {
|
|
15752
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
15859
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-overflow" : _props$prefixCls, _props$data = props.data, data = _props$data === void 0 ? [] : _props$data, renderItem2 = props.renderItem, renderRawItem = props.renderRawItem, itemKey2 = props.itemKey, _props$itemWidth = props.itemWidth, itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth, ssr = props.ssr, style2 = props.style, className = props.className, maxCount = props.maxCount, renderRest = props.renderRest, renderRawRest = props.renderRawRest, suffix = props.suffix, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, itemComponent = props.itemComponent, onVisibleChange = props.onVisibleChange, restProps = _objectWithoutProperties$1(props, _excluded$J);
|
|
15753
15860
|
var fullySSR = ssr === "full";
|
|
15754
15861
|
var notifyEffectUpdate = useBatcher();
|
|
15755
15862
|
var _useEffectState = useEffectState(notifyEffectUpdate, null), _useEffectState2 = _slicedToArray(_useEffectState, 2), containerWidth = _useEffectState2[0], setContainerWidth = _useEffectState2[1];
|
|
@@ -15964,9 +16071,9 @@ function composeProps(originProps, patchProps, isAll) {
|
|
|
15964
16071
|
});
|
|
15965
16072
|
return composedProps;
|
|
15966
16073
|
}
|
|
15967
|
-
var _excluded$
|
|
16074
|
+
var _excluded$I = ["prefixCls", "id", "inputElement", "autoFocus", "autoComplete", "editable", "activeDescendantId", "value", "open", "attrs"];
|
|
15968
16075
|
var Input$6 = function Input(props, ref) {
|
|
15969
|
-
var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
16076
|
+
var prefixCls = props.prefixCls, id2 = props.id, inputElement = props.inputElement, autoFocus = props.autoFocus, autoComplete = props.autoComplete, editable = props.editable, activeDescendantId = props.activeDescendantId, value2 = props.value, open = props.open, attrs = props.attrs, restProps = _objectWithoutProperties$1(props, _excluded$I);
|
|
15970
16077
|
var inputNode = inputElement || /* @__PURE__ */ React.createElement("input", null);
|
|
15971
16078
|
var _inputNode = inputNode, originRef = _inputNode.ref, originProps = _inputNode.props;
|
|
15972
16079
|
warning$3(!("maxLength" in inputNode.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled.");
|
|
@@ -17163,11 +17270,11 @@ function useWinClick(open, clickToHide, targetEle, popupEle, mask, maskClosable,
|
|
|
17163
17270
|
}
|
|
17164
17271
|
return onPopupPointerDown;
|
|
17165
17272
|
}
|
|
17166
|
-
var _excluded$
|
|
17273
|
+
var _excluded$H = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
|
|
17167
17274
|
function generateTrigger() {
|
|
17168
17275
|
var PortalComponent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Portal;
|
|
17169
17276
|
var Trigger2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
17170
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17277
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-trigger-popup" : _props$prefixCls, children2 = props.children, _props$action = props.action, action = _props$action === void 0 ? "hover" : _props$action, showAction = props.showAction, hideAction = props.hideAction, popupVisible = props.popupVisible, defaultPopupVisible = props.defaultPopupVisible, onPopupVisibleChange = props.onPopupVisibleChange, afterPopupVisibleChange = props.afterPopupVisibleChange, mouseEnterDelay = props.mouseEnterDelay, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, focusDelay = props.focusDelay, blurDelay = props.blurDelay, mask = props.mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getPopupContainer = props.getPopupContainer, forceRender = props.forceRender, autoDestroy = props.autoDestroy, destroyPopupOnHide = props.destroyPopupOnHide, popup = props.popup, popupClassName = props.popupClassName, popupStyle = props.popupStyle, popupPlacement = props.popupPlacement, _props$builtinPlaceme = props.builtinPlacements, builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme, popupAlign = props.popupAlign, zIndex = props.zIndex, stretch = props.stretch, getPopupClassNameFromAlign = props.getPopupClassNameFromAlign, fresh = props.fresh, alignPoint = props.alignPoint, onPopupClick = props.onPopupClick, onPopupAlign = props.onPopupAlign, arrow = props.arrow, popupMotion = props.popupMotion, maskMotion = props.maskMotion, popupTransitionName = props.popupTransitionName, popupAnimation = props.popupAnimation, maskTransitionName = props.maskTransitionName, maskAnimation = props.maskAnimation, className = props.className, getTriggerDOMNode = props.getTriggerDOMNode, restProps = _objectWithoutProperties$1(props, _excluded$H);
|
|
17171
17278
|
var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;
|
|
17172
17279
|
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), mobile = _React$useState2[0], setMobile = _React$useState2[1];
|
|
17173
17280
|
useLayoutEffect$1(function() {
|
|
@@ -17489,7 +17596,7 @@ function generateTrigger() {
|
|
|
17489
17596
|
return Trigger2;
|
|
17490
17597
|
}
|
|
17491
17598
|
const Trigger = generateTrigger(Portal);
|
|
17492
|
-
var _excluded$
|
|
17599
|
+
var _excluded$G = ["prefixCls", "disabled", "visible", "children", "popupElement", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "direction", "placement", "builtinPlacements", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "getPopupContainer", "empty", "getTriggerDOMNode", "onPopupVisibleChange", "onPopupMouseEnter"];
|
|
17493
17600
|
var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWidth) {
|
|
17494
17601
|
var adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
|
|
17495
17602
|
return {
|
|
@@ -17534,7 +17641,7 @@ var getBuiltInPlacements$1 = function getBuiltInPlacements(dropdownMatchSelectWi
|
|
|
17534
17641
|
var SelectTrigger$1 = function SelectTrigger(props, ref) {
|
|
17535
17642
|
var prefixCls = props.prefixCls;
|
|
17536
17643
|
props.disabled;
|
|
17537
|
-
var visible = props.visible, children2 = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17644
|
+
var visible = props.visible, children2 = props.children, popupElement = props.popupElement, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, _props$direction = props.direction, direction = _props$direction === void 0 ? "ltr" : _props$direction, placement = props.placement, builtinPlacements = props.builtinPlacements, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, getPopupContainer = props.getPopupContainer, empty2 = props.empty, getTriggerDOMNode = props.getTriggerDOMNode, onPopupVisibleChange = props.onPopupVisibleChange, onPopupMouseEnter = props.onPopupMouseEnter, restProps = _objectWithoutProperties$1(props, _excluded$G);
|
|
17538
17645
|
var dropdownPrefixCls = "".concat(prefixCls, "-dropdown");
|
|
17539
17646
|
var popupNode = popupElement;
|
|
17540
17647
|
if (dropdownRender) {
|
|
@@ -17710,14 +17817,14 @@ function Polite(props) {
|
|
|
17710
17817
|
return ["number", "string"].includes(_typeof(label)) ? label : value2;
|
|
17711
17818
|
}).join(", ")), values.length > MAX_COUNT ? ", ..." : null);
|
|
17712
17819
|
}
|
|
17713
|
-
var _excluded$
|
|
17820
|
+
var _excluded$F = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "prefix", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"];
|
|
17714
17821
|
var DEFAULT_OMIT_PROPS = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
|
|
17715
17822
|
var isMultiple = function isMultiple2(mode) {
|
|
17716
17823
|
return mode === "tags" || mode === "multiple";
|
|
17717
17824
|
};
|
|
17718
17825
|
var BaseSelect = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
17719
17826
|
var _customizeRawInputEle;
|
|
17720
|
-
var id2 = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, prefix = props.prefix, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
17827
|
+
var id2 = props.id, prefixCls = props.prefixCls, className = props.className, showSearch = props.showSearch, tagRender = props.tagRender, direction = props.direction, omitDomProps = props.omitDomProps, displayValues = props.displayValues, onDisplayValuesChange = props.onDisplayValuesChange, emptyOptions2 = props.emptyOptions, _props$notFoundConten = props.notFoundContent, notFoundContent = _props$notFoundConten === void 0 ? "Not Found" : _props$notFoundConten, onClear = props.onClear, mode = props.mode, disabled2 = props.disabled, loading = props.loading, getInputElement = props.getInputElement, getRawInputElement = props.getRawInputElement, open = props.open, defaultOpen = props.defaultOpen, onDropdownVisibleChange = props.onDropdownVisibleChange, activeValue = props.activeValue, onActiveValueChange = props.onActiveValueChange, activeDescendantId = props.activeDescendantId, searchValue = props.searchValue, autoClearSearchValue = props.autoClearSearchValue, onSearch = props.onSearch, onSearchSplit = props.onSearchSplit, tokenSeparators = props.tokenSeparators, allowClear = props.allowClear, prefix = props.prefix, suffixIcon = props.suffixIcon, clearIcon = props.clearIcon, OptionList3 = props.OptionList, animation = props.animation, transitionName = props.transitionName, dropdownStyle = props.dropdownStyle, dropdownClassName = props.dropdownClassName, dropdownMatchSelectWidth = props.dropdownMatchSelectWidth, dropdownRender = props.dropdownRender, dropdownAlign = props.dropdownAlign, placement = props.placement, builtinPlacements = props.builtinPlacements, getPopupContainer = props.getPopupContainer, _props$showAction = props.showAction, showAction = _props$showAction === void 0 ? [] : _props$showAction, onFocus = props.onFocus, onBlur = props.onBlur, onKeyUp = props.onKeyUp, onKeyDown2 = props.onKeyDown, onMouseDown = props.onMouseDown, restProps = _objectWithoutProperties$1(props, _excluded$F);
|
|
17721
17828
|
var multiple = isMultiple(mode);
|
|
17722
17829
|
var mergedShowSearch = (showSearch !== void 0 ? showSearch : multiple) || mode === "combobox";
|
|
17723
17830
|
var domProps = _objectSpread2({}, restProps);
|
|
@@ -18915,14 +19022,14 @@ function getSpinSize() {
|
|
|
18915
19022
|
baseSize = Math.max(baseSize, MIN_SIZE);
|
|
18916
19023
|
return Math.floor(baseSize);
|
|
18917
19024
|
}
|
|
18918
|
-
var _excluded$
|
|
19025
|
+
var _excluded$E = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"];
|
|
18919
19026
|
var EMPTY_DATA$1 = [];
|
|
18920
19027
|
var ScrollStyle = {
|
|
18921
19028
|
overflowY: "auto",
|
|
18922
19029
|
overflowAnchor: "none"
|
|
18923
19030
|
};
|
|
18924
19031
|
function RawList(props, ref) {
|
|
18925
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
19032
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-virtual-list" : _props$prefixCls, className = props.className, height = props.height, itemHeight = props.itemHeight, _props$fullHeight = props.fullHeight, fullHeight = _props$fullHeight === void 0 ? true : _props$fullHeight, style2 = props.style, data = props.data, children2 = props.children, itemKey2 = props.itemKey, virtual = props.virtual, direction = props.direction, scrollWidth = props.scrollWidth, _props$component = props.component, Component = _props$component === void 0 ? "div" : _props$component, onScroll = props.onScroll, onVirtualScroll = props.onVirtualScroll, onVisibleChange = props.onVisibleChange, innerProps = props.innerProps, extraRender = props.extraRender, styles = props.styles, _props$showScrollBar = props.showScrollBar, showScrollBar = _props$showScrollBar === void 0 ? "optional" : _props$showScrollBar, restProps = _objectWithoutProperties$1(props, _excluded$E);
|
|
18926
19033
|
var getKey2 = React.useCallback(function(item) {
|
|
18927
19034
|
if (typeof itemKey2 === "function") {
|
|
18928
19035
|
return itemKey2(item);
|
|
@@ -19321,7 +19428,7 @@ List.displayName = "List";
|
|
|
19321
19428
|
function isPlatformMac() {
|
|
19322
19429
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
19323
19430
|
}
|
|
19324
|
-
var _excluded$
|
|
19431
|
+
var _excluded$D = ["disabled", "title", "children", "style", "className"];
|
|
19325
19432
|
function isTitleType(content2) {
|
|
19326
19433
|
return typeof content2 === "string" || typeof content2 === "number";
|
|
19327
19434
|
}
|
|
@@ -19556,7 +19663,7 @@ var OptionList = function OptionList2(_, ref) {
|
|
|
19556
19663
|
}
|
|
19557
19664
|
var disabled2 = data.disabled, title = data.title;
|
|
19558
19665
|
data.children;
|
|
19559
|
-
var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$
|
|
19666
|
+
var style2 = data.style, className = data.className, otherProps = _objectWithoutProperties$1(data, _excluded$D);
|
|
19560
19667
|
var passedProps = omit(otherProps, omitFieldNameList);
|
|
19561
19668
|
var selected = isSelected(value2);
|
|
19562
19669
|
var mergedDisabled = disabled2 || !selected && overMaxCount;
|
|
@@ -19702,9 +19809,9 @@ function useId$1(id2) {
|
|
|
19702
19809
|
}, []);
|
|
19703
19810
|
return id2 || innerId;
|
|
19704
19811
|
}
|
|
19705
|
-
var _excluded$
|
|
19812
|
+
var _excluded$C = ["children", "value"], _excluded2$6 = ["children"];
|
|
19706
19813
|
function convertNodeToOption(node2) {
|
|
19707
|
-
var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$
|
|
19814
|
+
var _ref = node2, key = _ref.key, _ref$props = _ref.props, children2 = _ref$props.children, value2 = _ref$props.value, restProps = _objectWithoutProperties$1(_ref$props, _excluded$C);
|
|
19708
19815
|
return _objectSpread2({
|
|
19709
19816
|
key,
|
|
19710
19817
|
value: value2 !== void 0 ? value2 : key,
|
|
@@ -19859,13 +19966,13 @@ function warningNullOptions(options, fieldNames) {
|
|
|
19859
19966
|
recursiveOptions(options);
|
|
19860
19967
|
}
|
|
19861
19968
|
}
|
|
19862
|
-
var _excluded$
|
|
19969
|
+
var _excluded$B = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"];
|
|
19863
19970
|
var OMIT_DOM_PROPS = ["inputValue"];
|
|
19864
19971
|
function isRawValue(value2) {
|
|
19865
19972
|
return !value2 || _typeof(value2) !== "object";
|
|
19866
19973
|
}
|
|
19867
19974
|
var Select$2 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
19868
|
-
var id2 = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
19975
|
+
var id2 = props.id, mode = props.mode, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-select" : _props$prefixCls, backfill = props.backfill, fieldNames = props.fieldNames, inputValue = props.inputValue, searchValue = props.searchValue, onSearch = props.onSearch, _props$autoClearSearc = props.autoClearSearchValue, autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc, onSelect = props.onSelect, onDeselect = props.onDeselect, _props$dropdownMatchS = props.dropdownMatchSelectWidth, dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS, filterOption = props.filterOption, filterSort = props.filterSort, optionFilterProp = props.optionFilterProp, optionLabelProp = props.optionLabelProp, options = props.options, optionRender = props.optionRender, children2 = props.children, defaultActiveFirstOption = props.defaultActiveFirstOption, menuItemSelectedIcon = props.menuItemSelectedIcon, virtual = props.virtual, direction = props.direction, _props$listHeight = props.listHeight, listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight, _props$listItemHeight = props.listItemHeight, listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight, labelRender = props.labelRender, value2 = props.value, defaultValue = props.defaultValue, labelInValue = props.labelInValue, onChange = props.onChange, maxCount = props.maxCount, restProps = _objectWithoutProperties$1(props, _excluded$B);
|
|
19869
19976
|
var mergedId = useId$1(id2);
|
|
19870
19977
|
var multiple = isMultiple(mode);
|
|
19871
19978
|
var childrenAsData = !!(!options && children2);
|
|
@@ -20370,7 +20477,7 @@ const genSharedEmptyStyle = (token2) => {
|
|
|
20370
20477
|
}
|
|
20371
20478
|
};
|
|
20372
20479
|
};
|
|
20373
|
-
const useStyle$
|
|
20480
|
+
const useStyle$r = genStyleHooks("Empty", (token2) => {
|
|
20374
20481
|
const {
|
|
20375
20482
|
componentCls,
|
|
20376
20483
|
controlHeightLG,
|
|
@@ -20384,7 +20491,7 @@ const useStyle$q = genStyleHooks("Empty", (token2) => {
|
|
|
20384
20491
|
});
|
|
20385
20492
|
return genSharedEmptyStyle(emptyToken);
|
|
20386
20493
|
});
|
|
20387
|
-
var __rest$
|
|
20494
|
+
var __rest$U = function(s, e3) {
|
|
20388
20495
|
var t2 = {};
|
|
20389
20496
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
20390
20497
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -20407,7 +20514,7 @@ const Empty = (props) => {
|
|
|
20407
20514
|
style: style2,
|
|
20408
20515
|
classNames: emptyClassNames,
|
|
20409
20516
|
styles
|
|
20410
|
-
} = props, restProps = __rest$
|
|
20517
|
+
} = props, restProps = __rest$U(props, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style", "classNames", "styles"]);
|
|
20411
20518
|
const {
|
|
20412
20519
|
getPrefixCls,
|
|
20413
20520
|
direction,
|
|
@@ -20418,7 +20525,7 @@ const Empty = (props) => {
|
|
|
20418
20525
|
image: contextImage
|
|
20419
20526
|
} = useComponentConfig("empty");
|
|
20420
20527
|
const prefixCls = getPrefixCls("empty", customizePrefixCls);
|
|
20421
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
20528
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$r(prefixCls);
|
|
20422
20529
|
const [locale2] = useLocale$1("Empty");
|
|
20423
20530
|
const des = typeof description !== "undefined" ? description : locale2 === null || locale2 === void 0 ? void 0 : locale2.description;
|
|
20424
20531
|
const alt = typeof des === "string" ? des : "empty";
|
|
@@ -21117,7 +21224,7 @@ function genSingleStyle(token2) {
|
|
|
21117
21224
|
}), "lg")
|
|
21118
21225
|
];
|
|
21119
21226
|
}
|
|
21120
|
-
const prepareComponentToken$
|
|
21227
|
+
const prepareComponentToken$n = (token2) => {
|
|
21121
21228
|
const {
|
|
21122
21229
|
fontSize,
|
|
21123
21230
|
lineHeight,
|
|
@@ -21623,7 +21730,7 @@ const useSelectStyle = genStyleHooks("Select", (token2, {
|
|
|
21623
21730
|
selectHeight: token2.controlHeight
|
|
21624
21731
|
});
|
|
21625
21732
|
return [genSelectStyle(selectToken), genVariantsStyle$1(selectToken)];
|
|
21626
|
-
}, prepareComponentToken$
|
|
21733
|
+
}, prepareComponentToken$n, {
|
|
21627
21734
|
unitless: {
|
|
21628
21735
|
optionLineHeight: true,
|
|
21629
21736
|
optionSelectedFontWeight: true
|
|
@@ -21744,7 +21851,7 @@ function usePopupRender(renderFn) {
|
|
|
21744
21851
|
function useShowArrow(suffixIcon, showArrow) {
|
|
21745
21852
|
return showArrow !== void 0 ? showArrow : suffixIcon !== null;
|
|
21746
21853
|
}
|
|
21747
|
-
var __rest$
|
|
21854
|
+
var __rest$T = function(s, e3) {
|
|
21748
21855
|
var t2 = {};
|
|
21749
21856
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
21750
21857
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -21788,7 +21895,7 @@ const InternalSelect = (props, ref) => {
|
|
|
21788
21895
|
onOpenChange,
|
|
21789
21896
|
styles,
|
|
21790
21897
|
classNames: classNames$1
|
|
21791
|
-
} = props, rest = __rest$
|
|
21898
|
+
} = props, rest = __rest$T(props, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount", "prefix", "dropdownRender", "popupRender", "onDropdownVisibleChange", "onOpenChange", "styles", "classNames"]);
|
|
21792
21899
|
const {
|
|
21793
21900
|
getPopupContainer: getContextPopupContainer,
|
|
21794
21901
|
getPrefixCls,
|
|
@@ -21947,11 +22054,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
21947
22054
|
InternalSelect.displayName = "Select";
|
|
21948
22055
|
}
|
|
21949
22056
|
const Select$1 = /* @__PURE__ */ React.forwardRef(InternalSelect);
|
|
21950
|
-
const PurePanel$
|
|
22057
|
+
const PurePanel$6 = genPurePanel(Select$1, "dropdownAlign");
|
|
21951
22058
|
Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
21952
22059
|
Select$1.Option = Option;
|
|
21953
22060
|
Select$1.OptGroup = OptGroup;
|
|
21954
|
-
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
22061
|
+
Select$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$6;
|
|
21955
22062
|
if (process.env.NODE_ENV !== "production") {
|
|
21956
22063
|
Select$1.displayName = "Select";
|
|
21957
22064
|
}
|
|
@@ -22172,7 +22279,7 @@ const genGroupStyle$1 = (token2) => {
|
|
|
22172
22279
|
}
|
|
22173
22280
|
};
|
|
22174
22281
|
};
|
|
22175
|
-
const prepareComponentToken$
|
|
22282
|
+
const prepareComponentToken$m = (token2) => {
|
|
22176
22283
|
const {
|
|
22177
22284
|
controlHeight,
|
|
22178
22285
|
controlHeightLG,
|
|
@@ -22200,7 +22307,7 @@ const prepareComponentToken$l = (token2) => {
|
|
|
22200
22307
|
groupBorderColor: colorBorderBg
|
|
22201
22308
|
};
|
|
22202
22309
|
};
|
|
22203
|
-
const useStyle$
|
|
22310
|
+
const useStyle$q = genStyleHooks("Avatar", (token2) => {
|
|
22204
22311
|
const {
|
|
22205
22312
|
colorTextLightSolid,
|
|
22206
22313
|
colorTextPlaceholder
|
|
@@ -22210,8 +22317,8 @@ const useStyle$p = genStyleHooks("Avatar", (token2) => {
|
|
|
22210
22317
|
avatarColor: colorTextLightSolid
|
|
22211
22318
|
});
|
|
22212
22319
|
return [genBaseStyle$6(avatarToken), genGroupStyle$1(avatarToken)];
|
|
22213
|
-
}, prepareComponentToken$
|
|
22214
|
-
var __rest$
|
|
22320
|
+
}, prepareComponentToken$m);
|
|
22321
|
+
var __rest$S = function(s, e3) {
|
|
22215
22322
|
var t2 = {};
|
|
22216
22323
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
22217
22324
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -22236,7 +22343,7 @@ const Avatar$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
22236
22343
|
crossOrigin,
|
|
22237
22344
|
gap = 4,
|
|
22238
22345
|
onError
|
|
22239
|
-
} = props, others = __rest$
|
|
22346
|
+
} = props, others = __rest$S(props, ["prefixCls", "shape", "size", "src", "srcSet", "icon", "className", "rootClassName", "style", "alt", "draggable", "children", "crossOrigin", "gap", "onError"]);
|
|
22240
22347
|
const [scale, setScale] = React.useState(1);
|
|
22241
22348
|
const [mounted, setMounted] = React.useState(false);
|
|
22242
22349
|
const [isImgExist, setIsImgExist] = React.useState(true);
|
|
@@ -22298,7 +22405,7 @@ const Avatar$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
22298
22405
|
}
|
|
22299
22406
|
const prefixCls = getPrefixCls("avatar", customizePrefixCls);
|
|
22300
22407
|
const rootCls = useCSSVarCls(prefixCls);
|
|
22301
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
22408
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
|
|
22302
22409
|
const sizeCls = classNames({
|
|
22303
22410
|
[`${prefixCls}-lg`]: size === "large",
|
|
22304
22411
|
[`${prefixCls}-sm`]: size === "small"
|
|
@@ -22461,11 +22568,11 @@ var placements$2 = {
|
|
|
22461
22568
|
targetOffset: targetOffset$1
|
|
22462
22569
|
}
|
|
22463
22570
|
};
|
|
22464
|
-
var _excluded$
|
|
22571
|
+
var _excluded$A = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"];
|
|
22465
22572
|
var Tooltip$3 = function Tooltip(props, ref) {
|
|
22466
22573
|
var overlayClassName = props.overlayClassName, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, _props$mouseEnterDela = props.mouseEnterDelay, mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0 : _props$mouseEnterDela, _props$mouseLeaveDela = props.mouseLeaveDelay, mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela, overlayStyle = props.overlayStyle, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tooltip" : _props$prefixCls, children2 = props.children, onVisibleChange = props.onVisibleChange, afterVisibleChange = props.afterVisibleChange, transitionName = props.transitionName, animation = props.animation, motion2 = props.motion, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$align = props.align, align = _props$align === void 0 ? {} : _props$align, _props$destroyTooltip = props.destroyTooltipOnHide, destroyTooltipOnHide = _props$destroyTooltip === void 0 ? false : _props$destroyTooltip, defaultVisible = props.defaultVisible, getTooltipContainer = props.getTooltipContainer, overlayInnerStyle = props.overlayInnerStyle;
|
|
22467
22574
|
props.arrowContent;
|
|
22468
|
-
var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
22575
|
+
var overlay = props.overlay, id2 = props.id, _props$showArrow = props.showArrow, showArrow = _props$showArrow === void 0 ? true : _props$showArrow, tooltipClassNames = props.classNames, tooltipStyles = props.styles, restProps = _objectWithoutProperties$1(props, _excluded$A);
|
|
22469
22576
|
var mergedId = useId$2(id2);
|
|
22470
22577
|
var triggerRef = useRef(null);
|
|
22471
22578
|
useImperativeHandle(ref, function() {
|
|
@@ -23006,7 +23113,7 @@ const genTooltipStyle = (token2) => {
|
|
|
23006
23113
|
}
|
|
23007
23114
|
];
|
|
23008
23115
|
};
|
|
23009
|
-
const prepareComponentToken$
|
|
23116
|
+
const prepareComponentToken$l = (token2) => Object.assign(Object.assign({
|
|
23010
23117
|
zIndexPopup: token2.zIndexPopupBase + 70
|
|
23011
23118
|
}, getArrowOffsetToken({
|
|
23012
23119
|
contentRadius: token2.borderRadius,
|
|
@@ -23014,7 +23121,7 @@ const prepareComponentToken$k = (token2) => Object.assign(Object.assign({
|
|
|
23014
23121
|
})), getArrowToken(merge$1(token2, {
|
|
23015
23122
|
borderRadiusOuter: Math.min(token2.borderRadiusOuter, 4)
|
|
23016
23123
|
})));
|
|
23017
|
-
const useStyle$
|
|
23124
|
+
const useStyle$p = (prefixCls, injectStyle = true) => {
|
|
23018
23125
|
const useStyle2 = genStyleHooks("Tooltip", (token2) => {
|
|
23019
23126
|
const {
|
|
23020
23127
|
borderRadius: borderRadius2,
|
|
@@ -23029,7 +23136,7 @@ const useStyle$o = (prefixCls, injectStyle = true) => {
|
|
|
23029
23136
|
tooltipBg: colorBgSpotlight
|
|
23030
23137
|
});
|
|
23031
23138
|
return [genTooltipStyle(TooltipToken), initZoomMotion(token2, "zoom-big-fast")];
|
|
23032
|
-
}, prepareComponentToken$
|
|
23139
|
+
}, prepareComponentToken$l, {
|
|
23033
23140
|
resetStyle: false,
|
|
23034
23141
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
23035
23142
|
injectStyle
|
|
@@ -23064,7 +23171,7 @@ function parseColor(prefixCls, color2) {
|
|
|
23064
23171
|
arrowStyle
|
|
23065
23172
|
};
|
|
23066
23173
|
}
|
|
23067
|
-
const PurePanel$
|
|
23174
|
+
const PurePanel$5 = (props) => {
|
|
23068
23175
|
const {
|
|
23069
23176
|
prefixCls: customizePrefixCls,
|
|
23070
23177
|
className,
|
|
@@ -23077,7 +23184,7 @@ const PurePanel$4 = (props) => {
|
|
|
23077
23184
|
getPrefixCls
|
|
23078
23185
|
} = React.useContext(ConfigContext);
|
|
23079
23186
|
const prefixCls = getPrefixCls("tooltip", customizePrefixCls);
|
|
23080
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23187
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls);
|
|
23081
23188
|
const colorInfo = parseColor(prefixCls, color2);
|
|
23082
23189
|
const arrowContentStyle = colorInfo.arrowStyle;
|
|
23083
23190
|
const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
@@ -23093,7 +23200,7 @@ const PurePanel$4 = (props) => {
|
|
|
23093
23200
|
overlayInnerStyle: formattedOverlayInnerStyle
|
|
23094
23201
|
}), title)));
|
|
23095
23202
|
};
|
|
23096
|
-
var __rest$
|
|
23203
|
+
var __rest$R = function(s, e3) {
|
|
23097
23204
|
var t2 = {};
|
|
23098
23205
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23099
23206
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23130,7 +23237,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
23130
23237
|
overlayClassName,
|
|
23131
23238
|
styles,
|
|
23132
23239
|
classNames: tooltipClassNames
|
|
23133
|
-
} = props, restProps = __rest$
|
|
23240
|
+
} = props, restProps = __rest$R(props, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "destroyOnHidden", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]);
|
|
23134
23241
|
const mergedShowArrow = !!arrow;
|
|
23135
23242
|
const [, token2] = useToken();
|
|
23136
23243
|
const {
|
|
@@ -23214,7 +23321,7 @@ const InternalTooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
23214
23321
|
const child = /* @__PURE__ */ React.isValidElement(children2) && !isFragment(children2) ? children2 : /* @__PURE__ */ React.createElement("span", null, children2);
|
|
23215
23322
|
const childProps = child.props;
|
|
23216
23323
|
const childCls = !childProps.className || typeof childProps.className === "string" ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;
|
|
23217
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23324
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$p(prefixCls, !injectFromPopover);
|
|
23218
23325
|
const colorInfo = parseColor(prefixCls, color2);
|
|
23219
23326
|
const arrowContentStyle = colorInfo.arrowStyle;
|
|
23220
23327
|
const rootClassNames = classNames(overlayClassName, {
|
|
@@ -23264,7 +23371,7 @@ const Tooltip$2 = InternalTooltip;
|
|
|
23264
23371
|
if (process.env.NODE_ENV !== "production") {
|
|
23265
23372
|
Tooltip$2.displayName = "Tooltip";
|
|
23266
23373
|
}
|
|
23267
|
-
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
23374
|
+
Tooltip$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$5;
|
|
23268
23375
|
const genBaseStyle$5 = (token2) => {
|
|
23269
23376
|
const {
|
|
23270
23377
|
componentCls,
|
|
@@ -23372,7 +23479,7 @@ const genColorStyle = (token2) => {
|
|
|
23372
23479
|
})
|
|
23373
23480
|
};
|
|
23374
23481
|
};
|
|
23375
|
-
const prepareComponentToken$
|
|
23482
|
+
const prepareComponentToken$k = (token2) => {
|
|
23376
23483
|
const {
|
|
23377
23484
|
lineWidth,
|
|
23378
23485
|
controlHeight,
|
|
@@ -23405,7 +23512,7 @@ const prepareComponentToken$j = (token2) => {
|
|
|
23405
23512
|
innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0
|
|
23406
23513
|
});
|
|
23407
23514
|
};
|
|
23408
|
-
const useStyle$
|
|
23515
|
+
const useStyle$o = genStyleHooks("Popover", (token2) => {
|
|
23409
23516
|
const {
|
|
23410
23517
|
colorBgElevated,
|
|
23411
23518
|
colorText
|
|
@@ -23415,11 +23522,11 @@ const useStyle$n = genStyleHooks("Popover", (token2) => {
|
|
|
23415
23522
|
popoverColor: colorText
|
|
23416
23523
|
});
|
|
23417
23524
|
return [genBaseStyle$5(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, "zoom-big")];
|
|
23418
|
-
}, prepareComponentToken$
|
|
23525
|
+
}, prepareComponentToken$k, {
|
|
23419
23526
|
resetStyle: false,
|
|
23420
23527
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
23421
23528
|
});
|
|
23422
|
-
var __rest$
|
|
23529
|
+
var __rest$Q = function(s, e3) {
|
|
23423
23530
|
var t2 = {};
|
|
23424
23531
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23425
23532
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23469,23 +23576,23 @@ const RawPurePanel = (props) => {
|
|
|
23469
23576
|
content: contentNode
|
|
23470
23577
|
})));
|
|
23471
23578
|
};
|
|
23472
|
-
const PurePanel$
|
|
23579
|
+
const PurePanel$4 = (props) => {
|
|
23473
23580
|
const {
|
|
23474
23581
|
prefixCls: customizePrefixCls,
|
|
23475
23582
|
className
|
|
23476
|
-
} = props, restProps = __rest$
|
|
23583
|
+
} = props, restProps = __rest$Q(props, ["prefixCls", "className"]);
|
|
23477
23584
|
const {
|
|
23478
23585
|
getPrefixCls
|
|
23479
23586
|
} = React.useContext(ConfigContext);
|
|
23480
23587
|
const prefixCls = getPrefixCls("popover", customizePrefixCls);
|
|
23481
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23588
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
|
|
23482
23589
|
return wrapCSSVar(/* @__PURE__ */ React.createElement(RawPurePanel, Object.assign({}, restProps, {
|
|
23483
23590
|
prefixCls,
|
|
23484
23591
|
hashId,
|
|
23485
23592
|
className: classNames(className, cssVarCls)
|
|
23486
23593
|
})));
|
|
23487
23594
|
};
|
|
23488
|
-
var __rest$
|
|
23595
|
+
var __rest$P = function(s, e3) {
|
|
23489
23596
|
var t2 = {};
|
|
23490
23597
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
23491
23598
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -23509,7 +23616,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
23509
23616
|
overlayStyle = {},
|
|
23510
23617
|
styles,
|
|
23511
23618
|
classNames: popoverClassNames
|
|
23512
|
-
} = props, otherProps = __rest$
|
|
23619
|
+
} = props, otherProps = __rest$P(props, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]);
|
|
23513
23620
|
const {
|
|
23514
23621
|
getPrefixCls,
|
|
23515
23622
|
className: contextClassName,
|
|
@@ -23518,7 +23625,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
23518
23625
|
styles: contextStyles
|
|
23519
23626
|
} = useComponentConfig("popover");
|
|
23520
23627
|
const prefixCls = getPrefixCls("popover", customizePrefixCls);
|
|
23521
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23628
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$o(prefixCls);
|
|
23522
23629
|
const rootPrefixCls = getPrefixCls();
|
|
23523
23630
|
const rootClassNames = classNames(overlayClassName, hashId, cssVarCls, contextClassName, contextClassNames.root, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.root);
|
|
23524
23631
|
const bodyClassNames = classNames(contextClassNames.body, popoverClassNames === null || popoverClassNames === void 0 ? void 0 : popoverClassNames.body);
|
|
@@ -23576,7 +23683,7 @@ const InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
23576
23683
|
})));
|
|
23577
23684
|
});
|
|
23578
23685
|
const Popover$2 = InternalPopover;
|
|
23579
|
-
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
23686
|
+
Popover$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$4;
|
|
23580
23687
|
if (process.env.NODE_ENV !== "production") {
|
|
23581
23688
|
Popover$2.displayName = "Popover";
|
|
23582
23689
|
}
|
|
@@ -23622,7 +23729,7 @@ const AvatarGroup = (props) => {
|
|
|
23622
23729
|
const prefixCls = getPrefixCls("avatar", customizePrefixCls);
|
|
23623
23730
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
23624
23731
|
const rootCls = useCSSVarCls(prefixCls);
|
|
23625
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
23732
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$q(prefixCls, rootCls);
|
|
23626
23733
|
const cls = classNames(groupPrefixCls, {
|
|
23627
23734
|
[`${groupPrefixCls}-rtl`]: direction === "rtl"
|
|
23628
23735
|
}, cssVarCls, rootCls, className, rootClassName, hashId);
|
|
@@ -23798,10 +23905,10 @@ var placements$1 = {
|
|
|
23798
23905
|
targetOffset
|
|
23799
23906
|
}
|
|
23800
23907
|
};
|
|
23801
|
-
var _excluded$
|
|
23908
|
+
var _excluded$z = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
23802
23909
|
function Dropdown$2(props, ref) {
|
|
23803
23910
|
var _children$props;
|
|
23804
|
-
var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$
|
|
23911
|
+
var _props$arrow = props.arrow, arrow = _props$arrow === void 0 ? false : _props$arrow, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-dropdown" : _props$prefixCls, transitionName = props.transitionName, animation = props.animation, align = props.align, _props$placement = props.placement, placement = _props$placement === void 0 ? "bottomLeft" : _props$placement, _props$placements = props.placements, placements2 = _props$placements === void 0 ? placements$1 : _props$placements, getPopupContainer = props.getPopupContainer, showAction = props.showAction, hideAction = props.hideAction, overlayClassName = props.overlayClassName, overlayStyle = props.overlayStyle, visible = props.visible, _props$trigger = props.trigger, trigger = _props$trigger === void 0 ? ["hover"] : _props$trigger, autoFocus = props.autoFocus, overlay = props.overlay, children2 = props.children, onVisibleChange = props.onVisibleChange, otherProps = _objectWithoutProperties$1(props, _excluded$z);
|
|
23805
23912
|
var _React$useState = React__default.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), triggerVisible = _React$useState2[0], setTriggerVisible = _React$useState2[1];
|
|
23806
23913
|
var mergedVisible = "visible" in props ? visible : triggerVisible;
|
|
23807
23914
|
var triggerRef = React__default.useRef(null);
|
|
@@ -23899,7 +24006,7 @@ function useMenuId(eventKey) {
|
|
|
23899
24006
|
var id2 = React.useContext(IdContext);
|
|
23900
24007
|
return getMenuId(id2, eventKey);
|
|
23901
24008
|
}
|
|
23902
|
-
var _excluded$
|
|
24009
|
+
var _excluded$y = ["children", "locked"];
|
|
23903
24010
|
var MenuContext$1 = /* @__PURE__ */ React.createContext(null);
|
|
23904
24011
|
function mergeProps(origin, target) {
|
|
23905
24012
|
var clone = _objectSpread2({}, origin);
|
|
@@ -23912,7 +24019,7 @@ function mergeProps(origin, target) {
|
|
|
23912
24019
|
return clone;
|
|
23913
24020
|
}
|
|
23914
24021
|
function InheritableContextProvider(_ref) {
|
|
23915
|
-
var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
24022
|
+
var children2 = _ref.children, locked = _ref.locked, restProps = _objectWithoutProperties$1(_ref, _excluded$y);
|
|
23916
24023
|
var context = React.useContext(MenuContext$1);
|
|
23917
24024
|
var inheritableContext = useMemo(function() {
|
|
23918
24025
|
return mergeProps(context, restProps);
|
|
@@ -24342,9 +24449,9 @@ function Icon$2(_ref) {
|
|
|
24342
24449
|
}
|
|
24343
24450
|
return iconNode || children2 || null;
|
|
24344
24451
|
}
|
|
24345
|
-
var _excluded$
|
|
24452
|
+
var _excluded$x = ["item"];
|
|
24346
24453
|
function warnItemProp(_ref) {
|
|
24347
|
-
var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$
|
|
24454
|
+
var item = _ref.item, restInfo = _objectWithoutProperties$1(_ref, _excluded$x);
|
|
24348
24455
|
Object.defineProperty(restInfo, "item", {
|
|
24349
24456
|
get: function get2() {
|
|
24350
24457
|
warningOnce(false, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future.");
|
|
@@ -24353,7 +24460,7 @@ function warnItemProp(_ref) {
|
|
|
24353
24460
|
});
|
|
24354
24461
|
return restInfo;
|
|
24355
24462
|
}
|
|
24356
|
-
var _excluded$
|
|
24463
|
+
var _excluded$w = ["title", "attribute", "elementRef"], _excluded2$5 = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], _excluded3 = ["active"];
|
|
24357
24464
|
var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
|
|
24358
24465
|
_inherits(LegacyMenuItem2, _React$Component);
|
|
24359
24466
|
var _super = _createSuper(LegacyMenuItem2);
|
|
@@ -24364,7 +24471,7 @@ var LegacyMenuItem = /* @__PURE__ */ (function(_React$Component) {
|
|
|
24364
24471
|
_createClass(LegacyMenuItem2, [{
|
|
24365
24472
|
key: "render",
|
|
24366
24473
|
value: function render2() {
|
|
24367
|
-
var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$
|
|
24474
|
+
var _this$props = this.props, title = _this$props.title, attribute = _this$props.attribute, elementRef = _this$props.elementRef, restProps = _objectWithoutProperties$1(_this$props, _excluded$w);
|
|
24368
24475
|
var passedProps = omit(restProps, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
24369
24476
|
warningOnce(!attribute, "`attribute` of Menu.Item is deprecated. Please pass attribute directly.");
|
|
24370
24477
|
return /* @__PURE__ */ React.createElement(ForwardOverflow.Item, _extends$1({}, attribute, {
|
|
@@ -24474,9 +24581,9 @@ function MenuItem$2(props, ref) {
|
|
|
24474
24581
|
}));
|
|
24475
24582
|
}
|
|
24476
24583
|
const MenuItem$3 = /* @__PURE__ */ React.forwardRef(MenuItem$2);
|
|
24477
|
-
var _excluded$
|
|
24584
|
+
var _excluded$v = ["className", "children"];
|
|
24478
24585
|
var InternalSubMenuList = function InternalSubMenuList2(_ref, ref) {
|
|
24479
|
-
var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
24586
|
+
var className = _ref.className, children2 = _ref.children, restProps = _objectWithoutProperties$1(_ref, _excluded$v);
|
|
24480
24587
|
var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, rtl = _React$useContext.rtl;
|
|
24481
24588
|
return /* @__PURE__ */ React.createElement("ul", _extends$1({
|
|
24482
24589
|
className: classNames(prefixCls, rtl && "".concat(prefixCls, "-rtl"), "".concat(prefixCls, "-sub"), "".concat(prefixCls, "-").concat(mode === "inline" ? "inline" : "vertical"), className),
|
|
@@ -24689,9 +24796,9 @@ function InlineSubMenuList(_ref) {
|
|
|
24689
24796
|
}, children2);
|
|
24690
24797
|
}));
|
|
24691
24798
|
}
|
|
24692
|
-
var _excluded$
|
|
24799
|
+
var _excluded$u = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], _excluded2$4 = ["active"];
|
|
24693
24800
|
var InternalSubMenu = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
24694
|
-
var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
24801
|
+
var style2 = props.style, className = props.className, title = props.title, eventKey = props.eventKey, warnKey = props.warnKey, disabled2 = props.disabled, internalPopupClose = props.internalPopupClose, children2 = props.children, itemIcon = props.itemIcon, expandIcon = props.expandIcon, popupClassName = props.popupClassName, popupOffset = props.popupOffset, popupStyle = props.popupStyle, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, onTitleClick = props.onTitleClick, onTitleMouseEnter = props.onTitleMouseEnter, onTitleMouseLeave = props.onTitleMouseLeave, restProps = _objectWithoutProperties$1(props, _excluded$u);
|
|
24695
24802
|
var domDataId = useMenuId(eventKey);
|
|
24696
24803
|
var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls, mode = _React$useContext.mode, openKeys = _React$useContext.openKeys, contextDisabled = _React$useContext.disabled, overflowDisabled = _React$useContext.overflowDisabled, activeKey = _React$useContext.activeKey, selectedKeys = _React$useContext.selectedKeys, contextItemIcon = _React$useContext.itemIcon, contextExpandIcon = _React$useContext.expandIcon, onItemClick = _React$useContext.onItemClick, onOpenChange = _React$useContext.onOpenChange, onActive = _React$useContext.onActive;
|
|
24697
24804
|
var _React$useContext2 = React.useContext(PrivateContext), _internalRenderSubMenuItem = _React$useContext2._internalRenderSubMenuItem;
|
|
@@ -24891,11 +24998,11 @@ function Divider(_ref) {
|
|
|
24891
24998
|
style: style2
|
|
24892
24999
|
});
|
|
24893
25000
|
}
|
|
24894
|
-
var _excluded$
|
|
25001
|
+
var _excluded$t = ["className", "title", "eventKey", "children"];
|
|
24895
25002
|
var InternalMenuItemGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
24896
25003
|
var className = props.className, title = props.title;
|
|
24897
25004
|
props.eventKey;
|
|
24898
|
-
var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
25005
|
+
var children2 = props.children, restProps = _objectWithoutProperties$1(props, _excluded$t);
|
|
24899
25006
|
var _React$useContext = React.useContext(MenuContext$1), prefixCls = _React$useContext.prefixCls;
|
|
24900
25007
|
var groupPrefixCls = "".concat(prefixCls, "-item-group");
|
|
24901
25008
|
return /* @__PURE__ */ React.createElement("li", _extends$1({
|
|
@@ -24930,12 +25037,12 @@ var MenuItemGroup = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
24930
25037
|
if (process.env.NODE_ENV !== "production") {
|
|
24931
25038
|
MenuItemGroup.displayName = "MenuItemGroup";
|
|
24932
25039
|
}
|
|
24933
|
-
var _excluded$
|
|
25040
|
+
var _excluded$s = ["label", "children", "key", "type", "extra"];
|
|
24934
25041
|
function convertItemsToNodes(list2, components2, prefixCls) {
|
|
24935
25042
|
var MergedMenuItem = components2.item, MergedMenuItemGroup = components2.group, MergedSubMenu = components2.submenu, MergedDivider = components2.divider;
|
|
24936
25043
|
return (list2 || []).map(function(opt, index2) {
|
|
24937
25044
|
if (opt && _typeof(opt) === "object") {
|
|
24938
|
-
var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
25045
|
+
var _ref = opt, label = _ref.label, children2 = _ref.children, key = _ref.key, type4 = _ref.type, extra = _ref.extra, restProps = _objectWithoutProperties$1(_ref, _excluded$s);
|
|
24939
25046
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index2);
|
|
24940
25047
|
if (children2 || type4 === "group") {
|
|
24941
25048
|
if (type4 === "group") {
|
|
@@ -24982,11 +25089,11 @@ function parseItems(children2, items, keyPath, components2, prefixCls) {
|
|
|
24982
25089
|
}
|
|
24983
25090
|
return parseChildren(childNodes, keyPath);
|
|
24984
25091
|
}
|
|
24985
|
-
var _excluded$
|
|
25092
|
+
var _excluded$r = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"];
|
|
24986
25093
|
var EMPTY_LIST$4 = [];
|
|
24987
25094
|
var Menu$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
24988
25095
|
var _childList$;
|
|
24989
|
-
var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
25096
|
+
var _ref = props, _ref$prefixCls = _ref.prefixCls, prefixCls = _ref$prefixCls === void 0 ? "rc-menu" : _ref$prefixCls, rootClassName = _ref.rootClassName, style2 = _ref.style, className = _ref.className, _ref$tabIndex = _ref.tabIndex, tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex, items = _ref.items, children2 = _ref.children, direction = _ref.direction, id2 = _ref.id, _ref$mode = _ref.mode, mode = _ref$mode === void 0 ? "vertical" : _ref$mode, inlineCollapsed = _ref.inlineCollapsed, disabled2 = _ref.disabled, disabledOverflow = _ref.disabledOverflow, _ref$subMenuOpenDelay = _ref.subMenuOpenDelay, subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay, _ref$subMenuCloseDela = _ref.subMenuCloseDelay, subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela, forceSubMenuRender = _ref.forceSubMenuRender, defaultOpenKeys = _ref.defaultOpenKeys, openKeys = _ref.openKeys, activeKey = _ref.activeKey, defaultActiveFirst = _ref.defaultActiveFirst, _ref$selectable = _ref.selectable, selectable = _ref$selectable === void 0 ? true : _ref$selectable, _ref$multiple = _ref.multiple, multiple = _ref$multiple === void 0 ? false : _ref$multiple, defaultSelectedKeys = _ref.defaultSelectedKeys, selectedKeys = _ref.selectedKeys, onSelect = _ref.onSelect, onDeselect = _ref.onDeselect, _ref$inlineIndent = _ref.inlineIndent, inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent, motion2 = _ref.motion, defaultMotions = _ref.defaultMotions, _ref$triggerSubMenuAc = _ref.triggerSubMenuAction, triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? "hover" : _ref$triggerSubMenuAc, builtinPlacements = _ref.builtinPlacements, itemIcon = _ref.itemIcon, expandIcon = _ref.expandIcon, _ref$overflowedIndica = _ref.overflowedIndicator, overflowedIndicator = _ref$overflowedIndica === void 0 ? "..." : _ref$overflowedIndica, overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName, getPopupContainer = _ref.getPopupContainer, onClick = _ref.onClick, onOpenChange = _ref.onOpenChange, onKeyDown2 = _ref.onKeyDown, openAnimation = _ref.openAnimation, openTransitionName = _ref.openTransitionName, _internalRenderMenuItem = _ref._internalRenderMenuItem, _internalRenderSubMenuItem = _ref._internalRenderSubMenuItem, _internalComponents = _ref._internalComponents, restProps = _objectWithoutProperties$1(_ref, _excluded$r);
|
|
24990
25097
|
var _React$useMemo = React.useMemo(function() {
|
|
24991
25098
|
return [parseItems(children2, items, EMPTY_LIST$4, _internalComponents, prefixCls), parseItems(children2, items, EMPTY_LIST$4, {}, prefixCls)];
|
|
24992
25099
|
}, [children2, items, _internalComponents]), _React$useMemo2 = _slicedToArray(_React$useMemo, 2), childList = _React$useMemo2[0], measureChildList = _React$useMemo2[1];
|
|
@@ -25351,7 +25458,7 @@ const genLayoutStyle = (token2) => {
|
|
|
25351
25458
|
}
|
|
25352
25459
|
};
|
|
25353
25460
|
};
|
|
25354
|
-
const prepareComponentToken$
|
|
25461
|
+
const prepareComponentToken$j = (token2) => {
|
|
25355
25462
|
const {
|
|
25356
25463
|
colorBgLayout,
|
|
25357
25464
|
controlHeight,
|
|
@@ -25387,7 +25494,7 @@ const prepareComponentToken$i = (token2) => {
|
|
|
25387
25494
|
};
|
|
25388
25495
|
};
|
|
25389
25496
|
const DEPRECATED_TOKENS = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
25390
|
-
genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$
|
|
25497
|
+
genStyleHooks("Layout", genLayoutStyle, prepareComponentToken$j, {
|
|
25391
25498
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
25392
25499
|
});
|
|
25393
25500
|
const genSiderStyle = (token2) => {
|
|
@@ -25497,10 +25604,10 @@ const genSiderStyle = (token2) => {
|
|
|
25497
25604
|
}
|
|
25498
25605
|
};
|
|
25499
25606
|
};
|
|
25500
|
-
const useStyle$
|
|
25607
|
+
const useStyle$n = genStyleHooks(["Layout", "Sider"], genSiderStyle, prepareComponentToken$j, {
|
|
25501
25608
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
25502
25609
|
});
|
|
25503
|
-
var __rest$
|
|
25610
|
+
var __rest$O = function(s, e3) {
|
|
25504
25611
|
var t2 = {};
|
|
25505
25612
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25506
25613
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25542,7 +25649,7 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
25542
25649
|
breakpoint,
|
|
25543
25650
|
onCollapse,
|
|
25544
25651
|
onBreakpoint
|
|
25545
|
-
} = props, otherProps = __rest$
|
|
25652
|
+
} = props, otherProps = __rest$O(props, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]);
|
|
25546
25653
|
const {
|
|
25547
25654
|
siderHook
|
|
25548
25655
|
} = useContext$1(LayoutContext);
|
|
@@ -25564,7 +25671,7 @@ const Sider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
25564
25671
|
direction
|
|
25565
25672
|
} = useContext$1(ConfigContext);
|
|
25566
25673
|
const prefixCls = getPrefixCls("layout-sider", customizePrefixCls);
|
|
25567
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
25674
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$n(prefixCls);
|
|
25568
25675
|
const responsiveHandlerRef = useRef(null);
|
|
25569
25676
|
responsiveHandlerRef.current = (mql) => {
|
|
25570
25677
|
setBelow(mql.matches);
|
|
@@ -25663,7 +25770,7 @@ const MenuContext = /* @__PURE__ */ createContext$1({
|
|
|
25663
25770
|
firstLevel: true,
|
|
25664
25771
|
inlineCollapsed: false
|
|
25665
25772
|
});
|
|
25666
|
-
var __rest$
|
|
25773
|
+
var __rest$N = function(s, e3) {
|
|
25667
25774
|
var t2 = {};
|
|
25668
25775
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25669
25776
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25676,7 +25783,7 @@ const MenuDivider = (props) => {
|
|
|
25676
25783
|
prefixCls: customizePrefixCls,
|
|
25677
25784
|
className,
|
|
25678
25785
|
dashed
|
|
25679
|
-
} = props, restProps = __rest$
|
|
25786
|
+
} = props, restProps = __rest$N(props, ["prefixCls", "className", "dashed"]);
|
|
25680
25787
|
const {
|
|
25681
25788
|
getPrefixCls
|
|
25682
25789
|
} = React.useContext(ConfigContext);
|
|
@@ -25757,7 +25864,7 @@ const MenuItem$1 = (props) => {
|
|
|
25757
25864
|
}
|
|
25758
25865
|
return returnNode;
|
|
25759
25866
|
};
|
|
25760
|
-
var __rest$
|
|
25867
|
+
var __rest$M = function(s, e3) {
|
|
25761
25868
|
var t2 = {};
|
|
25762
25869
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
25763
25870
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -25769,7 +25876,7 @@ const OverrideContext = /* @__PURE__ */ React.createContext(null);
|
|
|
25769
25876
|
const OverrideProvider = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
25770
25877
|
const {
|
|
25771
25878
|
children: children2
|
|
25772
|
-
} = props, restProps = __rest$
|
|
25879
|
+
} = props, restProps = __rest$M(props, ["children"]);
|
|
25773
25880
|
const override = React.useContext(OverrideContext);
|
|
25774
25881
|
const context = React.useMemo(() => Object.assign(Object.assign({}, override), restProps), [
|
|
25775
25882
|
override,
|
|
@@ -26596,7 +26703,7 @@ const getBaseStyle = (token2) => {
|
|
|
26596
26703
|
}
|
|
26597
26704
|
];
|
|
26598
26705
|
};
|
|
26599
|
-
const prepareComponentToken$
|
|
26706
|
+
const prepareComponentToken$i = (token2) => {
|
|
26600
26707
|
var _a, _b, _c;
|
|
26601
26708
|
const {
|
|
26602
26709
|
colorPrimary,
|
|
@@ -26714,7 +26821,7 @@ const prepareComponentToken$h = (token2) => {
|
|
|
26714
26821
|
itemWidth: activeBarWidth ? `calc(100% + ${activeBarBorderWidth}px)` : `calc(100% - ${itemMarginInline * 2}px)`
|
|
26715
26822
|
};
|
|
26716
26823
|
};
|
|
26717
|
-
const useStyle$
|
|
26824
|
+
const useStyle$m = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
|
|
26718
26825
|
const useStyle2 = genStyleHooks("Menu", (token2) => {
|
|
26719
26826
|
const {
|
|
26720
26827
|
colorBgElevated,
|
|
@@ -26793,7 +26900,7 @@ const useStyle$l = (prefixCls, rootCls = prefixCls, injectStyle = true) => {
|
|
|
26793
26900
|
initSlideMotion(menuToken, "slide-down"),
|
|
26794
26901
|
initZoomMotion(menuToken, "zoom-big")
|
|
26795
26902
|
];
|
|
26796
|
-
}, prepareComponentToken$
|
|
26903
|
+
}, prepareComponentToken$i, {
|
|
26797
26904
|
deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
|
|
26798
26905
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
26799
26906
|
injectStyle,
|
|
@@ -26847,7 +26954,7 @@ const SubMenu = (props) => {
|
|
|
26847
26954
|
}, props.popupStyle)
|
|
26848
26955
|
})));
|
|
26849
26956
|
};
|
|
26850
|
-
var __rest$
|
|
26957
|
+
var __rest$L = function(s, e3) {
|
|
26851
26958
|
var t2 = {};
|
|
26852
26959
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
26853
26960
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -26888,7 +26995,7 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
26888
26995
|
selectable,
|
|
26889
26996
|
onClick,
|
|
26890
26997
|
overflowedIndicatorPopupClassName
|
|
26891
|
-
} = props, restProps = __rest$
|
|
26998
|
+
} = props, restProps = __rest$L(props, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]);
|
|
26892
26999
|
const passedProps = omit(restProps, ["collapsedWidth"]);
|
|
26893
27000
|
if (process.env.NODE_ENV !== "production") {
|
|
26894
27001
|
const warning3 = devUseWarning("Menu");
|
|
@@ -26917,7 +27024,7 @@ const InternalMenu = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
26917
27024
|
};
|
|
26918
27025
|
const prefixCls = getPrefixCls("menu", customizePrefixCls || overrideObj.prefixCls);
|
|
26919
27026
|
const rootCls = useCSSVarCls(prefixCls);
|
|
26920
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27027
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$m(prefixCls, rootCls, !override);
|
|
26921
27028
|
const menuClassName = classNames(`${prefixCls}-${theme}`, menu === null || menu === void 0 ? void 0 : menu.className, className);
|
|
26922
27029
|
const mergedExpandIcon = React.useMemo(() => {
|
|
26923
27030
|
var _a2, _b;
|
|
@@ -27280,14 +27387,14 @@ const genBaseStyle$4 = (token2) => {
|
|
|
27280
27387
|
[initSlideMotion(token2, "slide-up"), initSlideMotion(token2, "slide-down"), initMoveMotion(token2, "move-up"), initMoveMotion(token2, "move-down"), initZoomMotion(token2, "zoom-big")]
|
|
27281
27388
|
];
|
|
27282
27389
|
};
|
|
27283
|
-
const prepareComponentToken$
|
|
27390
|
+
const prepareComponentToken$h = (token2) => Object.assign(Object.assign({
|
|
27284
27391
|
zIndexPopup: token2.zIndexPopupBase + 50,
|
|
27285
27392
|
paddingBlock: (token2.controlHeight - token2.fontSize * token2.lineHeight) / 2
|
|
27286
27393
|
}, getArrowOffsetToken({
|
|
27287
27394
|
contentRadius: token2.borderRadiusLG,
|
|
27288
27395
|
limitVerticalRadius: true
|
|
27289
27396
|
})), getArrowToken(token2));
|
|
27290
|
-
const useStyle$
|
|
27397
|
+
const useStyle$l = genStyleHooks("Dropdown", (token2) => {
|
|
27291
27398
|
const {
|
|
27292
27399
|
marginXXS,
|
|
27293
27400
|
sizePopupArrow,
|
|
@@ -27300,7 +27407,7 @@ const useStyle$k = genStyleHooks("Dropdown", (token2) => {
|
|
|
27300
27407
|
dropdownEdgeChildPadding: paddingXXS
|
|
27301
27408
|
});
|
|
27302
27409
|
return [genBaseStyle$4(dropdownToken), genStatusStyle(dropdownToken)];
|
|
27303
|
-
}, prepareComponentToken$
|
|
27410
|
+
}, prepareComponentToken$h, {
|
|
27304
27411
|
resetStyle: false
|
|
27305
27412
|
});
|
|
27306
27413
|
const Dropdown$1 = (props) => {
|
|
@@ -27376,7 +27483,7 @@ const Dropdown$1 = (props) => {
|
|
|
27376
27483
|
}, [placement, direction]);
|
|
27377
27484
|
const prefixCls = getPrefixCls("dropdown", customizePrefixCls);
|
|
27378
27485
|
const rootCls = useCSSVarCls(prefixCls);
|
|
27379
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27486
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$l(prefixCls, rootCls);
|
|
27380
27487
|
const [, token2] = useToken();
|
|
27381
27488
|
const child = React.Children.only(isPrimitive(children2) ? /* @__PURE__ */ React.createElement("span", null, children2) : children2);
|
|
27382
27489
|
const popupTrigger = cloneElement(child, {
|
|
@@ -27478,8 +27585,8 @@ const Dropdown$1 = (props) => {
|
|
|
27478
27585
|
}
|
|
27479
27586
|
return wrapCSSVar(renderNode);
|
|
27480
27587
|
};
|
|
27481
|
-
const PurePanel$
|
|
27482
|
-
const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$
|
|
27588
|
+
const PurePanel$3 = genPurePanel(Dropdown$1, "align", void 0, "dropdown", (prefixCls) => prefixCls);
|
|
27589
|
+
const WrapPurePanel = (props) => /* @__PURE__ */ React.createElement(PurePanel$3, Object.assign({}, props), /* @__PURE__ */ React.createElement("span", null));
|
|
27483
27590
|
Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
|
|
27484
27591
|
if (process.env.NODE_ENV !== "production") {
|
|
27485
27592
|
Dropdown$1.displayName = "Dropdown";
|
|
@@ -27497,7 +27604,7 @@ const BreadcrumbSeparator = ({
|
|
|
27497
27604
|
}, children2 === "" ? children2 : children2 || "/");
|
|
27498
27605
|
};
|
|
27499
27606
|
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
|
|
27500
|
-
var __rest$
|
|
27607
|
+
var __rest$K = function(s, e3) {
|
|
27501
27608
|
var t2 = {};
|
|
27502
27609
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27503
27610
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27519,7 +27626,7 @@ function renderItem(prefixCls, item, children2, href) {
|
|
|
27519
27626
|
const {
|
|
27520
27627
|
className,
|
|
27521
27628
|
onClick
|
|
27522
|
-
} = item, restItem = __rest$
|
|
27629
|
+
} = item, restItem = __rest$K(item, ["className", "onClick"]);
|
|
27523
27630
|
const passedProps = Object.assign(Object.assign({}, pickAttrs(restItem, {
|
|
27524
27631
|
data: true,
|
|
27525
27632
|
aria: true
|
|
@@ -27546,7 +27653,7 @@ function useItemRender(prefixCls, itemRender) {
|
|
|
27546
27653
|
};
|
|
27547
27654
|
return mergedItemRender;
|
|
27548
27655
|
}
|
|
27549
|
-
var __rest$
|
|
27656
|
+
var __rest$J = function(s, e3) {
|
|
27550
27657
|
var t2 = {};
|
|
27551
27658
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27552
27659
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27574,7 +27681,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27574
27681
|
if (menu) {
|
|
27575
27682
|
const _a = menu || {}, {
|
|
27576
27683
|
items
|
|
27577
|
-
} = _a, menuProps = __rest$
|
|
27684
|
+
} = _a, menuProps = __rest$J(_a, ["items"]);
|
|
27578
27685
|
mergeDropDownProps.menu = Object.assign(Object.assign({}, menuProps), {
|
|
27579
27686
|
items: items === null || items === void 0 ? void 0 : items.map((_a2, index2) => {
|
|
27580
27687
|
var {
|
|
@@ -27582,7 +27689,7 @@ const InternalBreadcrumbItem = (props) => {
|
|
|
27582
27689
|
title,
|
|
27583
27690
|
label,
|
|
27584
27691
|
path: path2
|
|
27585
|
-
} = _a2, itemProps = __rest$
|
|
27692
|
+
} = _a2, itemProps = __rest$J(_a2, ["key", "title", "label", "path"]);
|
|
27586
27693
|
let mergedLabel = label !== null && label !== void 0 ? label : title;
|
|
27587
27694
|
if (path2) {
|
|
27588
27695
|
mergedLabel = /* @__PURE__ */ React.createElement("a", {
|
|
@@ -27617,7 +27724,7 @@ const BreadcrumbItem = (props) => {
|
|
|
27617
27724
|
prefixCls: customizePrefixCls,
|
|
27618
27725
|
children: children2,
|
|
27619
27726
|
href
|
|
27620
|
-
} = props, restProps = __rest$
|
|
27727
|
+
} = props, restProps = __rest$J(props, ["prefixCls", "children", "href"]);
|
|
27621
27728
|
const {
|
|
27622
27729
|
getPrefixCls
|
|
27623
27730
|
} = React.useContext(ConfigContext);
|
|
@@ -27705,7 +27812,7 @@ const genBreadcrumbStyle = (token2) => {
|
|
|
27705
27812
|
})
|
|
27706
27813
|
};
|
|
27707
27814
|
};
|
|
27708
|
-
const prepareComponentToken$
|
|
27815
|
+
const prepareComponentToken$g = (token2) => ({
|
|
27709
27816
|
itemColor: token2.colorTextDescription,
|
|
27710
27817
|
lastItemColor: token2.colorText,
|
|
27711
27818
|
iconFontSize: token2.fontSize,
|
|
@@ -27714,11 +27821,11 @@ const prepareComponentToken$f = (token2) => ({
|
|
|
27714
27821
|
separatorColor: token2.colorTextDescription,
|
|
27715
27822
|
separatorMargin: token2.marginXS
|
|
27716
27823
|
});
|
|
27717
|
-
const useStyle$
|
|
27824
|
+
const useStyle$k = genStyleHooks("Breadcrumb", (token2) => {
|
|
27718
27825
|
const breadcrumbToken = merge$1(token2, {});
|
|
27719
27826
|
return genBreadcrumbStyle(breadcrumbToken);
|
|
27720
|
-
}, prepareComponentToken$
|
|
27721
|
-
var __rest$
|
|
27827
|
+
}, prepareComponentToken$g);
|
|
27828
|
+
var __rest$I = function(s, e3) {
|
|
27722
27829
|
var t2 = {};
|
|
27723
27830
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27724
27831
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27730,7 +27837,7 @@ function route2item(route) {
|
|
|
27730
27837
|
const {
|
|
27731
27838
|
breadcrumbName,
|
|
27732
27839
|
children: children2
|
|
27733
|
-
} = route, rest = __rest$
|
|
27840
|
+
} = route, rest = __rest$I(route, ["breadcrumbName", "children"]);
|
|
27734
27841
|
const clone = Object.assign({
|
|
27735
27842
|
title: breadcrumbName
|
|
27736
27843
|
}, rest);
|
|
@@ -27739,7 +27846,7 @@ function route2item(route) {
|
|
|
27739
27846
|
items: children2.map((_a) => {
|
|
27740
27847
|
var {
|
|
27741
27848
|
breadcrumbName: itemBreadcrumbName
|
|
27742
|
-
} = _a, itemProps = __rest$
|
|
27849
|
+
} = _a, itemProps = __rest$I(_a, ["breadcrumbName"]);
|
|
27743
27850
|
return Object.assign(Object.assign({}, itemProps), {
|
|
27744
27851
|
title: itemBreadcrumbName
|
|
27745
27852
|
});
|
|
@@ -27759,7 +27866,7 @@ function useItems(items, routes) {
|
|
|
27759
27866
|
return null;
|
|
27760
27867
|
}, [items, routes]);
|
|
27761
27868
|
}
|
|
27762
|
-
var __rest$
|
|
27869
|
+
var __rest$H = function(s, e3) {
|
|
27763
27870
|
var t2 = {};
|
|
27764
27871
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
27765
27872
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -27789,7 +27896,7 @@ const Breadcrumb$2 = (props) => {
|
|
|
27789
27896
|
children: children2,
|
|
27790
27897
|
itemRender,
|
|
27791
27898
|
params = {}
|
|
27792
|
-
} = props, restProps = __rest$
|
|
27899
|
+
} = props, restProps = __rest$H(props, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]);
|
|
27793
27900
|
const {
|
|
27794
27901
|
getPrefixCls,
|
|
27795
27902
|
direction,
|
|
@@ -27797,7 +27904,7 @@ const Breadcrumb$2 = (props) => {
|
|
|
27797
27904
|
} = React.useContext(ConfigContext);
|
|
27798
27905
|
let crumbs;
|
|
27799
27906
|
const prefixCls = getPrefixCls("breadcrumb", customizePrefixCls);
|
|
27800
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
27907
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$k(prefixCls);
|
|
27801
27908
|
const mergedItems = useItems(items, legacyRoutes);
|
|
27802
27909
|
if (process.env.NODE_ENV !== "production") {
|
|
27803
27910
|
const warning3 = devUseWarning("Breadcrumb");
|
|
@@ -31607,9 +31714,9 @@ function useRootProps(props) {
|
|
|
31607
31714
|
return pickProps(props, propNames);
|
|
31608
31715
|
}, [props]);
|
|
31609
31716
|
}
|
|
31610
|
-
var _excluded$
|
|
31717
|
+
var _excluded$q = ["icon", "type"], _excluded2$3 = ["onClear"];
|
|
31611
31718
|
function Icon$1(props) {
|
|
31612
|
-
var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
31719
|
+
var icon = props.icon, type4 = props.type, restProps = _objectWithoutProperties$1(props, _excluded$q);
|
|
31613
31720
|
var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
31614
31721
|
return icon ? /* @__PURE__ */ React.createElement("span", _extends$1({
|
|
31615
31722
|
className: "".concat(prefixCls, "-").concat(type4)
|
|
@@ -31729,11 +31836,11 @@ function getMaskRange(key) {
|
|
|
31729
31836
|
};
|
|
31730
31837
|
return PresetRange[key];
|
|
31731
31838
|
}
|
|
31732
|
-
var _excluded$
|
|
31839
|
+
var _excluded$p = ["active", "showActiveCls", "suffixIcon", "format", "validateFormat", "onChange", "onInput", "helped", "onHelp", "onSubmit", "onKeyDown", "preserveInvalidOnBlur", "invalid", "clearIcon"];
|
|
31733
31840
|
var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
31734
31841
|
var active = props.active, _props$showActiveCls = props.showActiveCls, showActiveCls = _props$showActiveCls === void 0 ? true : _props$showActiveCls, suffixIcon = props.suffixIcon, format3 = props.format, validateFormat = props.validateFormat, onChange = props.onChange;
|
|
31735
31842
|
props.onInput;
|
|
31736
|
-
var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
31843
|
+
var helped = props.helped, onHelp = props.onHelp, onSubmit = props.onSubmit, onKeyDown2 = props.onKeyDown, _props$preserveInvali = props.preserveInvalidOnBlur, preserveInvalidOnBlur = _props$preserveInvali === void 0 ? false : _props$preserveInvali, invalid = props.invalid, clearIcon = props.clearIcon, restProps = _objectWithoutProperties$1(props, _excluded$p);
|
|
31737
31844
|
var value2 = props.value, onFocus = props.onFocus, onBlur = props.onBlur, onMouseUp = props.onMouseUp;
|
|
31738
31845
|
var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls, _React$useContext$inp = _React$useContext.input, Component = _React$useContext$inp === void 0 ? "input" : _React$useContext$inp;
|
|
31739
31846
|
var inputPrefixCls = "".concat(prefixCls, "-input");
|
|
@@ -31959,7 +32066,7 @@ var Input$5 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
31959
32066
|
if (process.env.NODE_ENV !== "production") {
|
|
31960
32067
|
Input$5.displayName = "Input";
|
|
31961
32068
|
}
|
|
31962
|
-
var _excluded$
|
|
32069
|
+
var _excluded$o = ["id", "prefix", "clearIcon", "suffixIcon", "separator", "activeIndex", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "value", "onChange", "onSubmit", "onInputChange", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onActiveInfo", "placement", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex"], _excluded2$2 = ["index"];
|
|
31963
32070
|
function RangeSelector(props, ref) {
|
|
31964
32071
|
var id2 = props.id, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon, _props$separator = props.separator, separator = _props$separator === void 0 ? "~" : _props$separator, activeIndex = props.activeIndex;
|
|
31965
32072
|
props.activeHelp;
|
|
@@ -31987,7 +32094,7 @@ function RangeSelector(props, ref) {
|
|
|
31987
32094
|
var _onMouseDown = props.onMouseDown;
|
|
31988
32095
|
props.required;
|
|
31989
32096
|
props["aria-required"];
|
|
31990
|
-
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
32097
|
+
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, restProps = _objectWithoutProperties$1(props, _excluded$o);
|
|
31991
32098
|
var rtl = direction === "rtl";
|
|
31992
32099
|
var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
31993
32100
|
var ids = React.useMemo(function() {
|
|
@@ -32501,7 +32608,7 @@ function MultipleDates(props) {
|
|
|
32501
32608
|
className: "".concat(prefixCls, "-selection-placeholder")
|
|
32502
32609
|
}, placeholder));
|
|
32503
32610
|
}
|
|
32504
|
-
var _excluded$
|
|
32611
|
+
var _excluded$n = ["id", "open", "prefix", "clearIcon", "suffixIcon", "activeHelp", "allHelp", "focused", "onFocus", "onBlur", "onKeyDown", "locale", "generateConfig", "placeholder", "className", "style", "onClick", "onClear", "internalPicker", "value", "onChange", "onSubmit", "onInputChange", "multiple", "maxTagCount", "format", "maskFormat", "preserveInvalidOnBlur", "onInvalid", "disabled", "invalid", "inputReadOnly", "direction", "onOpenChange", "onMouseDown", "required", "aria-required", "autoFocus", "tabIndex", "removeIcon"];
|
|
32505
32612
|
function SingleSelector2(props, ref) {
|
|
32506
32613
|
props.id;
|
|
32507
32614
|
var open = props.open, prefix = props.prefix, clearIcon = props.clearIcon, suffixIcon = props.suffixIcon;
|
|
@@ -32525,7 +32632,7 @@ function SingleSelector2(props, ref) {
|
|
|
32525
32632
|
var _onMouseDown = props.onMouseDown;
|
|
32526
32633
|
props.required;
|
|
32527
32634
|
props["aria-required"];
|
|
32528
|
-
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
32635
|
+
var autoFocus = props.autoFocus, tabIndex = props.tabIndex, removeIcon = props.removeIcon, restProps = _objectWithoutProperties$1(props, _excluded$n);
|
|
32529
32636
|
var rtl = direction === "rtl";
|
|
32530
32637
|
var _React$useContext = React.useContext(PickerContext), prefixCls = _React$useContext.prefixCls;
|
|
32531
32638
|
var rootRef = React.useRef();
|
|
@@ -32928,9 +33035,9 @@ const RadioGroupContext = /* @__PURE__ */ React.createContext(null);
|
|
|
32928
33035
|
const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
32929
33036
|
const RadioOptionTypeContext = /* @__PURE__ */ React.createContext(null);
|
|
32930
33037
|
const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|
|
32931
|
-
var _excluded$
|
|
33038
|
+
var _excluded$m = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"];
|
|
32932
33039
|
var Checkbox$3 = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
32933
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$
|
|
33040
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-checkbox" : _props$prefixCls, className = props.className, style2 = props.style, checked = props.checked, disabled2 = props.disabled, _props$defaultChecked = props.defaultChecked, defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked, _props$type = props.type, type4 = _props$type === void 0 ? "checkbox" : _props$type, title = props.title, onChange = props.onChange, inputProps = _objectWithoutProperties$1(props, _excluded$m);
|
|
32934
33041
|
var inputRef = useRef(null);
|
|
32935
33042
|
var holderRef = useRef(null);
|
|
32936
33043
|
var _useMergedState = useMergedState(defaultChecked, {
|
|
@@ -33404,7 +33511,7 @@ const getRadioButtonStyle = (token2) => {
|
|
|
33404
33511
|
}
|
|
33405
33512
|
};
|
|
33406
33513
|
};
|
|
33407
|
-
const prepareComponentToken$
|
|
33514
|
+
const prepareComponentToken$f = (token2) => {
|
|
33408
33515
|
const {
|
|
33409
33516
|
wireframe,
|
|
33410
33517
|
padding,
|
|
@@ -33446,7 +33553,7 @@ const prepareComponentToken$e = (token2) => {
|
|
|
33446
33553
|
radioBgColor: wireframe ? colorBgContainer : colorPrimary
|
|
33447
33554
|
};
|
|
33448
33555
|
};
|
|
33449
|
-
const useStyle$
|
|
33556
|
+
const useStyle$j = genStyleHooks("Radio", (token2) => {
|
|
33450
33557
|
const {
|
|
33451
33558
|
controlOutline,
|
|
33452
33559
|
controlOutlineWidth
|
|
@@ -33458,13 +33565,13 @@ const useStyle$i = genStyleHooks("Radio", (token2) => {
|
|
|
33458
33565
|
radioButtonFocusShadow
|
|
33459
33566
|
});
|
|
33460
33567
|
return [getGroupRadioStyle(radioToken), getRadioBasicStyle(radioToken), getRadioButtonStyle(radioToken)];
|
|
33461
|
-
}, prepareComponentToken$
|
|
33568
|
+
}, prepareComponentToken$f, {
|
|
33462
33569
|
unitless: {
|
|
33463
33570
|
radioSize: true,
|
|
33464
33571
|
dotSize: true
|
|
33465
33572
|
}
|
|
33466
33573
|
});
|
|
33467
|
-
var __rest$
|
|
33574
|
+
var __rest$G = function(s, e3) {
|
|
33468
33575
|
var t2 = {};
|
|
33469
33576
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33470
33577
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33502,12 +33609,12 @@ const InternalRadio = (props, ref) => {
|
|
|
33502
33609
|
children: children2,
|
|
33503
33610
|
style: style2,
|
|
33504
33611
|
title
|
|
33505
|
-
} = props, restProps = __rest$
|
|
33612
|
+
} = props, restProps = __rest$G(props, ["prefixCls", "className", "rootClassName", "children", "style", "title"]);
|
|
33506
33613
|
const radioPrefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33507
33614
|
const isButtonType = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === "button";
|
|
33508
33615
|
const prefixCls = isButtonType ? `${radioPrefixCls}-button` : radioPrefixCls;
|
|
33509
33616
|
const rootCls = useCSSVarCls(radioPrefixCls);
|
|
33510
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
33617
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(radioPrefixCls, rootCls);
|
|
33511
33618
|
const radioProps = Object.assign({}, restProps);
|
|
33512
33619
|
const disabled2 = React.useContext(DisabledContext);
|
|
33513
33620
|
if (groupContext) {
|
|
@@ -33583,7 +33690,7 @@ function getStatus(errors, warnings, meta, defaultValidateStatus, hasFeedback, v
|
|
|
33583
33690
|
}
|
|
33584
33691
|
return status;
|
|
33585
33692
|
}
|
|
33586
|
-
var __rest$
|
|
33693
|
+
var __rest$F = function(s, e3) {
|
|
33587
33694
|
var t2 = {};
|
|
33588
33695
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33589
33696
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33623,7 +33730,7 @@ function useForm(form) {
|
|
|
33623
33730
|
scrollToField: (name2, options = {}) => {
|
|
33624
33731
|
const {
|
|
33625
33732
|
focus
|
|
33626
|
-
} = options, restOpt = __rest$
|
|
33733
|
+
} = options, restOpt = __rest$F(options, ["focus"]);
|
|
33627
33734
|
const node2 = getFieldDOMNode(name2, wrapForm);
|
|
33628
33735
|
if (node2) {
|
|
33629
33736
|
e(node2, Object.assign({
|
|
@@ -33698,7 +33805,7 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
33698
33805
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33699
33806
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
33700
33807
|
const rootCls = useCSSVarCls(prefixCls);
|
|
33701
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
33808
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$j(prefixCls, rootCls);
|
|
33702
33809
|
let childrenToRender = children2;
|
|
33703
33810
|
if (options && options.length > 0) {
|
|
33704
33811
|
childrenToRender = options.map((option) => {
|
|
@@ -33756,7 +33863,7 @@ const RadioGroup$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
33756
33863
|
}, childrenToRender)));
|
|
33757
33864
|
});
|
|
33758
33865
|
const Group$1 = /* @__PURE__ */ React.memo(RadioGroup$1);
|
|
33759
|
-
var __rest$
|
|
33866
|
+
var __rest$E = function(s, e3) {
|
|
33760
33867
|
var t2 = {};
|
|
33761
33868
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
33762
33869
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -33770,7 +33877,7 @@ const RadioButton = (props, ref) => {
|
|
|
33770
33877
|
} = React.useContext(ConfigContext);
|
|
33771
33878
|
const {
|
|
33772
33879
|
prefixCls: customizePrefixCls
|
|
33773
|
-
} = props, radioProps = __rest$
|
|
33880
|
+
} = props, radioProps = __rest$E(props, ["prefixCls"]);
|
|
33774
33881
|
const prefixCls = getPrefixCls("radio", customizePrefixCls);
|
|
33775
33882
|
return /* @__PURE__ */ React.createElement(RadioOptionTypeContextProvider, {
|
|
33776
33883
|
value: "button"
|
|
@@ -34771,7 +34878,7 @@ const useSharedStyle = genStyleHooks(["Input", "Shared"], (token2) => {
|
|
|
34771
34878
|
}, initComponentToken$1, {
|
|
34772
34879
|
resetFont: false
|
|
34773
34880
|
});
|
|
34774
|
-
const useStyle$
|
|
34881
|
+
const useStyle$i = genStyleHooks(["Input", "Component"], (token2) => {
|
|
34775
34882
|
const inputToken = merge$1(token2, initInputToken(token2));
|
|
34776
34883
|
return [
|
|
34777
34884
|
genGroupStyle(inputToken),
|
|
@@ -35533,7 +35640,7 @@ const initPanelComponentToken = (token2) => {
|
|
|
35533
35640
|
};
|
|
35534
35641
|
return filledToken;
|
|
35535
35642
|
};
|
|
35536
|
-
const prepareComponentToken$
|
|
35643
|
+
const prepareComponentToken$e = (token2) => Object.assign(Object.assign(Object.assign(Object.assign({}, initComponentToken$1(token2)), initPanelComponentToken(token2)), getArrowToken(token2)), {
|
|
35537
35644
|
presetsWidth: 120,
|
|
35538
35645
|
presetsMaxWidth: 200,
|
|
35539
35646
|
zIndexPopup: token2.zIndexPopupBase + 50
|
|
@@ -35985,7 +36092,7 @@ const genPickerStyle = (token2) => {
|
|
|
35985
36092
|
initMoveMotion(token2, "move-down")
|
|
35986
36093
|
];
|
|
35987
36094
|
};
|
|
35988
|
-
const useStyle$
|
|
36095
|
+
const useStyle$h = genStyleHooks("DatePicker", (token2) => {
|
|
35989
36096
|
const pickerToken = merge$1(initInputToken(token2), initPickerPanelToken(token2), {
|
|
35990
36097
|
inputPaddingHorizontalBase: token2.calc(token2.paddingSM).sub(1).equal(),
|
|
35991
36098
|
multipleSelectItemHeight: token2.multipleItemHeight,
|
|
@@ -36004,7 +36111,7 @@ const useStyle$g = genStyleHooks("DatePicker", (token2) => {
|
|
|
36004
36111
|
focusElCls: `${token2.componentCls}-focused`
|
|
36005
36112
|
})
|
|
36006
36113
|
];
|
|
36007
|
-
}, prepareComponentToken$
|
|
36114
|
+
}, prepareComponentToken$e);
|
|
36008
36115
|
var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
|
|
36009
36116
|
var PlusOutlined = function PlusOutlined2(props, ref) {
|
|
36010
36117
|
return /* @__PURE__ */ React.createElement(Icon$3, _extends$1({}, props, {
|
|
@@ -37087,9 +37194,9 @@ var TabPane$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
|
37087
37194
|
if (process.env.NODE_ENV !== "production") {
|
|
37088
37195
|
TabPane$1.displayName = "TabPane";
|
|
37089
37196
|
}
|
|
37090
|
-
var _excluded$
|
|
37197
|
+
var _excluded$l = ["renderTabBar"], _excluded2$1 = ["label", "key"];
|
|
37091
37198
|
var TabNavListWrapper = function TabNavListWrapper2(_ref) {
|
|
37092
|
-
var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
37199
|
+
var renderTabBar = _ref.renderTabBar, restProps = _objectWithoutProperties$1(_ref, _excluded$l);
|
|
37093
37200
|
var _React$useContext = React.useContext(TabContext), tabs = _React$useContext.tabs;
|
|
37094
37201
|
if (renderTabBar) {
|
|
37095
37202
|
var tabNavBarProps = _objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
@@ -37110,7 +37217,7 @@ var TabNavListWrapper = function TabNavListWrapper2(_ref) {
|
|
|
37110
37217
|
if (process.env.NODE_ENV !== "production") {
|
|
37111
37218
|
TabNavListWrapper.displayName = "TabNavListWrapper";
|
|
37112
37219
|
}
|
|
37113
|
-
var _excluded$
|
|
37220
|
+
var _excluded$k = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"];
|
|
37114
37221
|
var TabPanelList = function TabPanelList2(props) {
|
|
37115
37222
|
var id2 = props.id, activeKey = props.activeKey, animated = props.animated, tabPosition = props.tabPosition, destroyInactiveTabPane = props.destroyInactiveTabPane;
|
|
37116
37223
|
var _React$useContext = React.useContext(TabContext), prefixCls = _React$useContext.prefixCls, tabs = _React$useContext.tabs;
|
|
@@ -37121,7 +37228,7 @@ var TabPanelList = function TabPanelList2(props) {
|
|
|
37121
37228
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
37122
37229
|
className: classNames("".concat(prefixCls, "-content"), "".concat(prefixCls, "-content-").concat(tabPosition), _defineProperty$1({}, "".concat(prefixCls, "-content-animated"), tabPaneAnimated))
|
|
37123
37230
|
}, tabs.map(function(item) {
|
|
37124
|
-
var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$
|
|
37231
|
+
var key = item.key, forceRender = item.forceRender, paneStyle = item.style, paneClassName = item.className, itemDestroyInactiveTabPane = item.destroyInactiveTabPane, restTabProps = _objectWithoutProperties$1(item, _excluded$k);
|
|
37125
37232
|
var active = key === activeKey;
|
|
37126
37233
|
return /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
|
|
37127
37234
|
key,
|
|
@@ -37176,10 +37283,10 @@ function useAnimateConfig$1() {
|
|
|
37176
37283
|
}
|
|
37177
37284
|
return mergedAnimated;
|
|
37178
37285
|
}
|
|
37179
|
-
var _excluded$
|
|
37286
|
+
var _excluded$j = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"];
|
|
37180
37287
|
var uuid$1 = 0;
|
|
37181
37288
|
var Tabs$3 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
37182
|
-
var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
37289
|
+
var id2 = props.id, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-tabs" : _props$prefixCls, className = props.className, items = props.items, direction = props.direction, activeKey = props.activeKey, defaultActiveKey = props.defaultActiveKey, editable = props.editable, animated = props.animated, _props$tabPosition = props.tabPosition, tabPosition = _props$tabPosition === void 0 ? "top" : _props$tabPosition, tabBarGutter = props.tabBarGutter, tabBarStyle = props.tabBarStyle, tabBarExtraContent = props.tabBarExtraContent, locale2 = props.locale, more = props.more, destroyInactiveTabPane = props.destroyInactiveTabPane, renderTabBar = props.renderTabBar, onChange = props.onChange, onTabClick = props.onTabClick, onTabScroll = props.onTabScroll, getPopupContainer = props.getPopupContainer, popupClassName = props.popupClassName, indicator = props.indicator, restProps = _objectWithoutProperties$1(props, _excluded$j);
|
|
37183
37290
|
var tabs = React.useMemo(function() {
|
|
37184
37291
|
return (items || []).filter(function(item) {
|
|
37185
37292
|
return item && _typeof(item) === "object" && "key" in item;
|
|
@@ -37307,7 +37414,7 @@ function useAnimateConfig(prefixCls, animated = {
|
|
|
37307
37414
|
}
|
|
37308
37415
|
return mergedAnimated;
|
|
37309
37416
|
}
|
|
37310
|
-
var __rest$
|
|
37417
|
+
var __rest$D = function(s, e3) {
|
|
37311
37418
|
var t2 = {};
|
|
37312
37419
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
37313
37420
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -37341,7 +37448,7 @@ function useLegacyItems(items, children2) {
|
|
|
37341
37448
|
} = node2;
|
|
37342
37449
|
const _a = props || {}, {
|
|
37343
37450
|
tab: tab2
|
|
37344
|
-
} = _a, restProps = __rest$
|
|
37451
|
+
} = _a, restProps = __rest$D(_a, ["tab"]);
|
|
37345
37452
|
const item = Object.assign(Object.assign({
|
|
37346
37453
|
key: String(key)
|
|
37347
37454
|
}, restProps), {
|
|
@@ -37353,7 +37460,7 @@ function useLegacyItems(items, children2) {
|
|
|
37353
37460
|
});
|
|
37354
37461
|
return filter$1(childrenItems);
|
|
37355
37462
|
}
|
|
37356
|
-
const genMotionStyle = (token2) => {
|
|
37463
|
+
const genMotionStyle$1 = (token2) => {
|
|
37357
37464
|
const {
|
|
37358
37465
|
componentCls,
|
|
37359
37466
|
motionDurationSlow
|
|
@@ -38189,7 +38296,7 @@ const genTabsStyle = (token2) => {
|
|
|
38189
38296
|
}
|
|
38190
38297
|
};
|
|
38191
38298
|
};
|
|
38192
|
-
const prepareComponentToken$
|
|
38299
|
+
const prepareComponentToken$d = (token2) => {
|
|
38193
38300
|
const {
|
|
38194
38301
|
cardHeight,
|
|
38195
38302
|
cardHeightSM,
|
|
@@ -38234,7 +38341,7 @@ const prepareComponentToken$c = (token2) => {
|
|
|
38234
38341
|
cardGutter: token2.marginXXS / 2
|
|
38235
38342
|
};
|
|
38236
38343
|
};
|
|
38237
|
-
const useStyle$
|
|
38344
|
+
const useStyle$g = genStyleHooks("Tabs", (token2) => {
|
|
38238
38345
|
const tabsToken = merge$1(token2, {
|
|
38239
38346
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
38240
38347
|
tabsCardPadding: token2.cardPadding,
|
|
@@ -38245,13 +38352,13 @@ const useStyle$f = genStyleHooks("Tabs", (token2) => {
|
|
|
38245
38352
|
tabsHorizontalItemMargin: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`,
|
|
38246
38353
|
tabsHorizontalItemMarginRTL: `0 0 0 ${unit$2(token2.horizontalItemGutter)}`
|
|
38247
38354
|
});
|
|
38248
|
-
return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle(tabsToken)];
|
|
38249
|
-
}, prepareComponentToken$
|
|
38355
|
+
return [genSizeStyle$1(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle$1(tabsToken), genTabsStyle(tabsToken), genMotionStyle$1(tabsToken)];
|
|
38356
|
+
}, prepareComponentToken$d);
|
|
38250
38357
|
const TabPane = () => null;
|
|
38251
38358
|
if (process.env.NODE_ENV !== "production") {
|
|
38252
38359
|
TabPane.displayName = "DeprecatedTabPane";
|
|
38253
38360
|
}
|
|
38254
|
-
var __rest$
|
|
38361
|
+
var __rest$C = function(s, e3) {
|
|
38255
38362
|
var t2 = {};
|
|
38256
38363
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38257
38364
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38282,7 +38389,7 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38282
38389
|
indicator,
|
|
38283
38390
|
destroyInactiveTabPane,
|
|
38284
38391
|
destroyOnHidden
|
|
38285
|
-
} = props, otherProps = __rest$
|
|
38392
|
+
} = props, otherProps = __rest$C(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
|
|
38286
38393
|
const {
|
|
38287
38394
|
prefixCls: customizePrefixCls
|
|
38288
38395
|
} = otherProps;
|
|
@@ -38294,7 +38401,7 @@ const InternalTabs = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38294
38401
|
} = React.useContext(ConfigContext);
|
|
38295
38402
|
const prefixCls = getPrefixCls("tabs", customizePrefixCls);
|
|
38296
38403
|
const rootCls = useCSSVarCls(prefixCls);
|
|
38297
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
38404
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$g(prefixCls, rootCls);
|
|
38298
38405
|
const tabsRef = React.useRef(null);
|
|
38299
38406
|
React.useImperativeHandle(ref, () => ({
|
|
38300
38407
|
nativeElement: tabsRef.current
|
|
@@ -38359,7 +38466,7 @@ Tabs$2.TabPane = TabPane;
|
|
|
38359
38466
|
if (process.env.NODE_ENV !== "production") {
|
|
38360
38467
|
Tabs$2.displayName = "Tabs";
|
|
38361
38468
|
}
|
|
38362
|
-
var __rest$
|
|
38469
|
+
var __rest$B = function(s, e3) {
|
|
38363
38470
|
var t2 = {};
|
|
38364
38471
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38365
38472
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38372,7 +38479,7 @@ const Grid$1 = (_a) => {
|
|
|
38372
38479
|
prefixCls,
|
|
38373
38480
|
className,
|
|
38374
38481
|
hoverable = true
|
|
38375
|
-
} = _a, props = __rest$
|
|
38482
|
+
} = _a, props = __rest$B(_a, ["prefixCls", "className", "hoverable"]);
|
|
38376
38483
|
const {
|
|
38377
38484
|
getPrefixCls
|
|
38378
38485
|
} = React.useContext(ConfigContext);
|
|
@@ -38690,7 +38797,7 @@ const genCardSizeStyle = (token2) => {
|
|
|
38690
38797
|
}
|
|
38691
38798
|
};
|
|
38692
38799
|
};
|
|
38693
|
-
const prepareComponentToken$
|
|
38800
|
+
const prepareComponentToken$c = (token2) => {
|
|
38694
38801
|
var _a, _b;
|
|
38695
38802
|
return {
|
|
38696
38803
|
headerBg: "transparent",
|
|
@@ -38709,7 +38816,7 @@ const prepareComponentToken$b = (token2) => {
|
|
|
38709
38816
|
headerPadding: (_b = token2.headerPadding) !== null && _b !== void 0 ? _b : token2.paddingLG
|
|
38710
38817
|
};
|
|
38711
38818
|
};
|
|
38712
|
-
const useStyle$
|
|
38819
|
+
const useStyle$f = genStyleHooks("Card", (token2) => {
|
|
38713
38820
|
const cardToken = merge$1(token2, {
|
|
38714
38821
|
cardShadow: token2.boxShadowCard,
|
|
38715
38822
|
cardHeadPadding: token2.padding,
|
|
@@ -38722,8 +38829,8 @@ const useStyle$e = genStyleHooks("Card", (token2) => {
|
|
|
38722
38829
|
// Size
|
|
38723
38830
|
genCardSizeStyle(cardToken)
|
|
38724
38831
|
];
|
|
38725
|
-
}, prepareComponentToken$
|
|
38726
|
-
var __rest$
|
|
38832
|
+
}, prepareComponentToken$c);
|
|
38833
|
+
var __rest$A = function(s, e3) {
|
|
38727
38834
|
var t2 = {};
|
|
38728
38835
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38729
38836
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38776,7 +38883,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38776
38883
|
tabProps = {},
|
|
38777
38884
|
classNames: customClassNames,
|
|
38778
38885
|
styles: customStyles
|
|
38779
|
-
} = props, others = __rest$
|
|
38886
|
+
} = props, others = __rest$A(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
|
|
38780
38887
|
const {
|
|
38781
38888
|
getPrefixCls,
|
|
38782
38889
|
direction,
|
|
@@ -38811,7 +38918,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38811
38918
|
return containGrid;
|
|
38812
38919
|
}, [children2]);
|
|
38813
38920
|
const prefixCls = getPrefixCls("card", customizePrefixCls);
|
|
38814
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
38921
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$f(prefixCls);
|
|
38815
38922
|
const loadingBlock = /* @__PURE__ */ React.createElement(Skeleton$1, {
|
|
38816
38923
|
loading: true,
|
|
38817
38924
|
active: true,
|
|
@@ -38836,7 +38943,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38836
38943
|
items: tabList.map((_a) => {
|
|
38837
38944
|
var {
|
|
38838
38945
|
tab: tab2
|
|
38839
|
-
} = _a, item = __rest$
|
|
38946
|
+
} = _a, item = __rest$A(_a, ["tab"]);
|
|
38840
38947
|
return Object.assign({
|
|
38841
38948
|
label: tab2
|
|
38842
38949
|
}, item);
|
|
@@ -38896,7 +39003,7 @@ const Card$3 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
38896
39003
|
style: mergedStyle
|
|
38897
39004
|
}), head, coverDom, body, actionDom));
|
|
38898
39005
|
});
|
|
38899
|
-
var __rest$
|
|
39006
|
+
var __rest$z = function(s, e3) {
|
|
38900
39007
|
var t2 = {};
|
|
38901
39008
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
38902
39009
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -38911,7 +39018,7 @@ const Meta = (props) => {
|
|
|
38911
39018
|
avatar,
|
|
38912
39019
|
title,
|
|
38913
39020
|
description
|
|
38914
|
-
} = props, others = __rest$
|
|
39021
|
+
} = props, others = __rest$z(props, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
38915
39022
|
const {
|
|
38916
39023
|
getPrefixCls
|
|
38917
39024
|
} = React.useContext(ConfigContext);
|
|
@@ -38999,7 +39106,7 @@ function debounce(delay, callback, options) {
|
|
|
38999
39106
|
function getEntity(keyEntities, key) {
|
|
39000
39107
|
return keyEntities[key];
|
|
39001
39108
|
}
|
|
39002
|
-
var _excluded$
|
|
39109
|
+
var _excluded$i = ["children"];
|
|
39003
39110
|
function getPosition(level, index2) {
|
|
39004
39111
|
return "".concat(level, "-").concat(index2);
|
|
39005
39112
|
}
|
|
@@ -39047,7 +39154,7 @@ function convertTreeToData(rootNodes) {
|
|
|
39047
39154
|
return null;
|
|
39048
39155
|
}
|
|
39049
39156
|
var key = treeNode.key;
|
|
39050
|
-
var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$
|
|
39157
|
+
var _treeNode$props = treeNode.props, children2 = _treeNode$props.children, rest = _objectWithoutProperties$1(_treeNode$props, _excluded$i);
|
|
39051
39158
|
var dataNode = _objectSpread2({
|
|
39052
39159
|
key
|
|
39053
39160
|
}, rest);
|
|
@@ -39635,11 +39742,11 @@ function getStyle$1(prefixCls, token2) {
|
|
|
39635
39742
|
});
|
|
39636
39743
|
return genCheckboxStyle(checkboxToken);
|
|
39637
39744
|
}
|
|
39638
|
-
const useStyle$
|
|
39745
|
+
const useStyle$e = genStyleHooks("Checkbox", (token2, {
|
|
39639
39746
|
prefixCls
|
|
39640
39747
|
}) => [getStyle$1(prefixCls, token2)]);
|
|
39641
39748
|
const GroupContext = /* @__PURE__ */ React__default.createContext(null);
|
|
39642
|
-
var __rest$
|
|
39749
|
+
var __rest$y = function(s, e3) {
|
|
39643
39750
|
var t2 = {};
|
|
39644
39751
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39645
39752
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39660,7 +39767,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
39660
39767
|
onMouseLeave,
|
|
39661
39768
|
skipGroup = false,
|
|
39662
39769
|
disabled: disabled2
|
|
39663
|
-
} = props, restProps = __rest$
|
|
39770
|
+
} = props, restProps = __rest$y(props, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
|
|
39664
39771
|
const {
|
|
39665
39772
|
getPrefixCls,
|
|
39666
39773
|
direction,
|
|
@@ -39701,7 +39808,7 @@ const InternalCheckbox = (props, ref) => {
|
|
|
39701
39808
|
}, [indeterminate]);
|
|
39702
39809
|
const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
|
|
39703
39810
|
const rootCls = useCSSVarCls(prefixCls);
|
|
39704
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
39811
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
|
|
39705
39812
|
const checkboxProps = Object.assign({}, restProps);
|
|
39706
39813
|
if (checkboxGroup && !skipGroup) {
|
|
39707
39814
|
checkboxProps.onChange = (...args) => {
|
|
@@ -39751,7 +39858,7 @@ const Checkbox$2 = /* @__PURE__ */ React.forwardRef(InternalCheckbox);
|
|
|
39751
39858
|
if (process.env.NODE_ENV !== "production") {
|
|
39752
39859
|
Checkbox$2.displayName = "Checkbox";
|
|
39753
39860
|
}
|
|
39754
|
-
var __rest$
|
|
39861
|
+
var __rest$x = function(s, e3) {
|
|
39755
39862
|
var t2 = {};
|
|
39756
39863
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39757
39864
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39769,7 +39876,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
39769
39876
|
rootClassName,
|
|
39770
39877
|
style: style2,
|
|
39771
39878
|
onChange
|
|
39772
|
-
} = props, restProps = __rest$
|
|
39879
|
+
} = props, restProps = __rest$x(props, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]);
|
|
39773
39880
|
const {
|
|
39774
39881
|
getPrefixCls,
|
|
39775
39882
|
direction
|
|
@@ -39816,7 +39923,7 @@ const CheckboxGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
39816
39923
|
const prefixCls = getPrefixCls("checkbox", customizePrefixCls);
|
|
39817
39924
|
const groupPrefixCls = `${prefixCls}-group`;
|
|
39818
39925
|
const rootCls = useCSSVarCls(prefixCls);
|
|
39819
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
39926
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$e(prefixCls, rootCls);
|
|
39820
39927
|
const domProps = omit(restProps, ["value", "disabled"]);
|
|
39821
39928
|
const childrenNode = options.length ? memoizedOptions.map((option) => /* @__PURE__ */ React.createElement(Checkbox$2, {
|
|
39822
39929
|
prefixCls,
|
|
@@ -39859,7 +39966,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
39859
39966
|
Checkbox$1.displayName = "Checkbox";
|
|
39860
39967
|
}
|
|
39861
39968
|
const RowContext = /* @__PURE__ */ createContext$1({});
|
|
39862
|
-
var __rest$
|
|
39969
|
+
var __rest$w = function(s, e3) {
|
|
39863
39970
|
var t2 = {};
|
|
39864
39971
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39865
39972
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -39897,7 +40004,7 @@ const Col = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
39897
40004
|
children: children2,
|
|
39898
40005
|
flex,
|
|
39899
40006
|
style: style2
|
|
39900
|
-
} = props, others = __rest$
|
|
40007
|
+
} = props, others = __rest$w(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
|
|
39901
40008
|
const prefixCls = getPrefixCls("col", customizePrefixCls);
|
|
39902
40009
|
const [wrapCSSVar, hashId, cssVarCls] = useColStyle(prefixCls);
|
|
39903
40010
|
const sizeStyle = {};
|
|
@@ -39978,7 +40085,7 @@ function useGutter(gutter, screens) {
|
|
|
39978
40085
|
});
|
|
39979
40086
|
return results;
|
|
39980
40087
|
}
|
|
39981
|
-
var __rest$
|
|
40088
|
+
var __rest$v = function(s, e3) {
|
|
39982
40089
|
var t2 = {};
|
|
39983
40090
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
39984
40091
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40022,7 +40129,7 @@ const Row$1 = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
40022
40129
|
children: children2,
|
|
40023
40130
|
gutter = 0,
|
|
40024
40131
|
wrap: wrap2
|
|
40025
|
-
} = props, others = __rest$
|
|
40132
|
+
} = props, others = __rest$v(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
|
|
40026
40133
|
const {
|
|
40027
40134
|
getPrefixCls,
|
|
40028
40135
|
direction
|
|
@@ -40204,7 +40311,7 @@ function MotionThumb(props) {
|
|
|
40204
40311
|
return /* @__PURE__ */ React.createElement("div", motionProps);
|
|
40205
40312
|
});
|
|
40206
40313
|
}
|
|
40207
|
-
var _excluded$
|
|
40314
|
+
var _excluded$h = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
|
|
40208
40315
|
function getValidTitle(option) {
|
|
40209
40316
|
if (typeof option.title !== "undefined") {
|
|
40210
40317
|
return option.title;
|
|
@@ -40259,7 +40366,7 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
|
40259
40366
|
};
|
|
40260
40367
|
var Segmented$1 = /* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
40261
40368
|
var _segmentedOptions$, _classNames2;
|
|
40262
|
-
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, vertical = props.vertical, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$1(props, _excluded$
|
|
40369
|
+
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, vertical = props.vertical, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled2 = props.disabled, defaultValue = props.defaultValue, value2 = props.value, name2 = props.name, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties$1(props, _excluded$h);
|
|
40263
40370
|
var containerRef = React.useRef(null);
|
|
40264
40371
|
var mergedRef = React.useMemo(function() {
|
|
40265
40372
|
return composeRef(containerRef, ref);
|
|
@@ -40544,7 +40651,7 @@ const genSegmentedStyle = (token2) => {
|
|
|
40544
40651
|
})
|
|
40545
40652
|
};
|
|
40546
40653
|
};
|
|
40547
|
-
const prepareComponentToken$
|
|
40654
|
+
const prepareComponentToken$b = (token2) => {
|
|
40548
40655
|
const {
|
|
40549
40656
|
colorTextLabel,
|
|
40550
40657
|
colorText,
|
|
@@ -40565,7 +40672,7 @@ const prepareComponentToken$a = (token2) => {
|
|
|
40565
40672
|
itemSelectedColor: colorText
|
|
40566
40673
|
};
|
|
40567
40674
|
};
|
|
40568
|
-
const useStyle$
|
|
40675
|
+
const useStyle$d = genStyleHooks("Segmented", (token2) => {
|
|
40569
40676
|
const {
|
|
40570
40677
|
lineWidth,
|
|
40571
40678
|
calc
|
|
@@ -40575,8 +40682,8 @@ const useStyle$c = genStyleHooks("Segmented", (token2) => {
|
|
|
40575
40682
|
segmentedPaddingHorizontalSM: calc(token2.controlPaddingHorizontalSM).sub(lineWidth).equal()
|
|
40576
40683
|
});
|
|
40577
40684
|
return genSegmentedStyle(segmentedToken);
|
|
40578
|
-
}, prepareComponentToken$
|
|
40579
|
-
var __rest$
|
|
40685
|
+
}, prepareComponentToken$b);
|
|
40686
|
+
var __rest$u = function(s, e3) {
|
|
40580
40687
|
var t2 = {};
|
|
40581
40688
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
40582
40689
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -40600,7 +40707,7 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
40600
40707
|
vertical,
|
|
40601
40708
|
shape = "default",
|
|
40602
40709
|
name: name2 = defaultName
|
|
40603
|
-
} = props, restProps = __rest$
|
|
40710
|
+
} = props, restProps = __rest$u(props, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]);
|
|
40604
40711
|
const {
|
|
40605
40712
|
getPrefixCls,
|
|
40606
40713
|
direction,
|
|
@@ -40608,14 +40715,14 @@ const InternalSegmented = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
40608
40715
|
style: contextStyle
|
|
40609
40716
|
} = useComponentConfig("segmented");
|
|
40610
40717
|
const prefixCls = getPrefixCls("segmented", customizePrefixCls);
|
|
40611
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
40718
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$d(prefixCls);
|
|
40612
40719
|
const mergedSize = useSize(customSize);
|
|
40613
40720
|
const extendedOptions = React.useMemo(() => options.map((option) => {
|
|
40614
40721
|
if (isSegmentedLabeledOptionWithIcon(option)) {
|
|
40615
40722
|
const {
|
|
40616
40723
|
icon,
|
|
40617
40724
|
label
|
|
40618
|
-
} = option, restOption = __rest$
|
|
40725
|
+
} = option, restOption = __rest$u(option, ["icon", "label"]);
|
|
40619
40726
|
return Object.assign(Object.assign({}, restOption), {
|
|
40620
40727
|
label: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", {
|
|
40621
40728
|
className: `${prefixCls}-item-icon`
|
|
@@ -40793,7 +40900,7 @@ var BaseInput = /* @__PURE__ */ React__default.forwardRef(function(props, ref) {
|
|
|
40793
40900
|
hidden
|
|
40794
40901
|
});
|
|
40795
40902
|
});
|
|
40796
|
-
var _excluded$
|
|
40903
|
+
var _excluded$g = ["show"];
|
|
40797
40904
|
function useCount(count, showCount) {
|
|
40798
40905
|
return React.useMemo(function() {
|
|
40799
40906
|
var mergedConfig = {};
|
|
@@ -40801,7 +40908,7 @@ function useCount(count, showCount) {
|
|
|
40801
40908
|
mergedConfig.show = _typeof(showCount) === "object" && showCount.formatter ? showCount.formatter : !!showCount;
|
|
40802
40909
|
}
|
|
40803
40910
|
mergedConfig = _objectSpread2(_objectSpread2({}, mergedConfig), count);
|
|
40804
|
-
var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$
|
|
40911
|
+
var _ref = mergedConfig, show = _ref.show, rest = _objectWithoutProperties$1(_ref, _excluded$g);
|
|
40805
40912
|
return _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
40806
40913
|
show: !!show,
|
|
40807
40914
|
showFormatter: typeof show === "function" ? show : void 0,
|
|
@@ -40811,9 +40918,9 @@ function useCount(count, showCount) {
|
|
|
40811
40918
|
});
|
|
40812
40919
|
}, [count, showCount]);
|
|
40813
40920
|
}
|
|
40814
|
-
var _excluded$
|
|
40921
|
+
var _excluded$f = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"];
|
|
40815
40922
|
var Input$4 = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
40816
|
-
var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$
|
|
40923
|
+
var autoComplete = props.autoComplete, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onPressEnter = props.onPressEnter, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-input" : _props$prefixCls, disabled2 = props.disabled, htmlSize = props.htmlSize, className = props.className, maxLength = props.maxLength, suffix = props.suffix, showCount = props.showCount, count = props.count, _props$type = props.type, type4 = _props$type === void 0 ? "text" : _props$type, classes = props.classes, classNames$1 = props.classNames, styles = props.styles, _onCompositionStart = props.onCompositionStart, onCompositionEnd = props.onCompositionEnd, rest = _objectWithoutProperties$1(props, _excluded$f);
|
|
40817
40924
|
var _useState = useState(false), _useState2 = _slicedToArray(_useState, 2), focused = _useState2[0], setFocused = _useState2[1];
|
|
40818
40925
|
var compositionRef = useRef(false);
|
|
40819
40926
|
var keyLockRef = useRef(false);
|
|
@@ -41035,7 +41142,7 @@ function useRemovePasswordTimeout(inputRef, triggerOnMount) {
|
|
|
41035
41142
|
function hasPrefixSuffix(props) {
|
|
41036
41143
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
41037
41144
|
}
|
|
41038
|
-
var __rest$
|
|
41145
|
+
var __rest$t = function(s, e3) {
|
|
41039
41146
|
var t2 = {};
|
|
41040
41147
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41041
41148
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41063,7 +41170,7 @@ const Input$3 = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
41063
41170
|
onChange,
|
|
41064
41171
|
classNames: classNames$1,
|
|
41065
41172
|
variant: customVariant
|
|
41066
|
-
} = props, rest = __rest$
|
|
41173
|
+
} = props, rest = __rest$t(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
41067
41174
|
if (process.env.NODE_ENV !== "production") {
|
|
41068
41175
|
const {
|
|
41069
41176
|
deprecated
|
|
@@ -41084,7 +41191,7 @@ const Input$3 = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
41084
41191
|
const inputRef = useRef(null);
|
|
41085
41192
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41086
41193
|
const [wrapSharedCSSVar, hashId, cssVarCls] = useSharedStyle(prefixCls, rootClassName);
|
|
41087
|
-
const [wrapCSSVar] = useStyle$
|
|
41194
|
+
const [wrapCSSVar] = useStyle$i(prefixCls, rootCls);
|
|
41088
41195
|
const {
|
|
41089
41196
|
compactSize,
|
|
41090
41197
|
compactItemClassnames
|
|
@@ -41370,7 +41477,7 @@ const useMergedPickerSemantic = (pickerType, classNames$1, styles, popupClassNam
|
|
|
41370
41477
|
return [filledClassNames, filledStyles];
|
|
41371
41478
|
}, [mergedClassNames, mergedStyles, popupClassName, popupStyle]);
|
|
41372
41479
|
};
|
|
41373
|
-
var __rest$
|
|
41480
|
+
var __rest$s = function(s, e3) {
|
|
41374
41481
|
var t2 = {};
|
|
41375
41482
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41376
41483
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41401,7 +41508,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41401
41508
|
picker,
|
|
41402
41509
|
styles,
|
|
41403
41510
|
classNames: classNames$1
|
|
41404
|
-
} = props, restProps = __rest$
|
|
41511
|
+
} = props, restProps = __rest$s(props, ["prefixCls", "getPopupContainer", "components", "className", "style", "placement", "size", "disabled", "bordered", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "status", "rootClassName", "variant", "picker", "styles", "classNames"]);
|
|
41405
41512
|
const pickerType = picker === TIME ? "timePicker" : "datePicker";
|
|
41406
41513
|
const innerRef = React.useRef(null);
|
|
41407
41514
|
const {
|
|
@@ -41418,7 +41525,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41418
41525
|
const rootPrefixCls = getPrefixCls();
|
|
41419
41526
|
const [variant, enableVariantCls] = useVariant("rangePicker", customVariant, bordered);
|
|
41420
41527
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41421
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
41528
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
|
|
41422
41529
|
if (process.env.NODE_ENV !== "production") {
|
|
41423
41530
|
const warning3 = devUseWarning("DatePicker.RangePicker");
|
|
41424
41531
|
const deprecatedProps = {
|
|
@@ -41506,7 +41613,7 @@ const generateRangePicker = (generateConfig2) => {
|
|
|
41506
41613
|
}
|
|
41507
41614
|
return RangePicker2;
|
|
41508
41615
|
};
|
|
41509
|
-
var __rest$
|
|
41616
|
+
var __rest$r = function(s, e3) {
|
|
41510
41617
|
var t2 = {};
|
|
41511
41618
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
41512
41619
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
@@ -41539,7 +41646,7 @@ const generatePicker$1 = (generateConfig2) => {
|
|
|
41539
41646
|
onCalendarChange,
|
|
41540
41647
|
styles,
|
|
41541
41648
|
classNames: classNames$1
|
|
41542
|
-
} = props, restProps = __rest$
|
|
41649
|
+
} = props, restProps = __rest$r(props, ["prefixCls", "getPopupContainer", "components", "style", "className", "rootClassName", "size", "bordered", "placement", "placeholder", "popupStyle", "popupClassName", "dropdownClassName", "disabled", "status", "variant", "onCalendarChange", "styles", "classNames"]);
|
|
41543
41650
|
const {
|
|
41544
41651
|
getPrefixCls,
|
|
41545
41652
|
direction,
|
|
@@ -41555,7 +41662,7 @@ const generatePicker$1 = (generateConfig2) => {
|
|
|
41555
41662
|
const innerRef = React.useRef(null);
|
|
41556
41663
|
const [variant, enableVariantCls] = useVariant("datePicker", customVariant, bordered);
|
|
41557
41664
|
const rootCls = useCSSVarCls(prefixCls);
|
|
41558
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
41665
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$h(prefixCls, rootCls);
|
|
41559
41666
|
useImperativeHandle(ref, () => innerRef.current);
|
|
41560
41667
|
const additionalProps = {
|
|
41561
41668
|
showToday: true
|
|
@@ -41696,11 +41803,783 @@ const generatePicker = (generateConfig2) => {
|
|
|
41696
41803
|
return MergedDatePicker;
|
|
41697
41804
|
};
|
|
41698
41805
|
const DatePicker$1 = generatePicker(generateConfig);
|
|
41699
|
-
const PurePanel$
|
|
41700
|
-
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$
|
|
41806
|
+
const PurePanel$2 = genPurePanel(DatePicker$1, "popupAlign", void 0, "picker");
|
|
41807
|
+
DatePicker$1._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$2;
|
|
41701
41808
|
const PureRangePanel = genPurePanel(DatePicker$1.RangePicker, "popupAlign", void 0, "picker");
|
|
41702
41809
|
DatePicker$1._InternalRangePanelDoNotUseOrYouWillBeFired = PureRangePanel;
|
|
41703
41810
|
DatePicker$1.generatePicker = generatePicker;
|
|
41811
|
+
var DrawerContext = /* @__PURE__ */ React.createContext(null);
|
|
41812
|
+
var RefContext = /* @__PURE__ */ React.createContext({});
|
|
41813
|
+
var _excluded$e = ["prefixCls", "className", "containerRef"];
|
|
41814
|
+
var DrawerPanel$1 = function DrawerPanel(props) {
|
|
41815
|
+
var prefixCls = props.prefixCls, className = props.className, containerRef = props.containerRef, restProps = _objectWithoutProperties$1(props, _excluded$e);
|
|
41816
|
+
var _React$useContext = React.useContext(RefContext), panelRef = _React$useContext.panel;
|
|
41817
|
+
var mergedRef = useComposeRef(panelRef, containerRef);
|
|
41818
|
+
return /* @__PURE__ */ React.createElement("div", _extends$1({
|
|
41819
|
+
className: classNames("".concat(prefixCls, "-content"), className),
|
|
41820
|
+
role: "dialog",
|
|
41821
|
+
ref: mergedRef
|
|
41822
|
+
}, pickAttrs(props, {
|
|
41823
|
+
aria: true
|
|
41824
|
+
}), {
|
|
41825
|
+
"aria-modal": "true"
|
|
41826
|
+
}, restProps));
|
|
41827
|
+
};
|
|
41828
|
+
if (process.env.NODE_ENV !== "production") {
|
|
41829
|
+
DrawerPanel$1.displayName = "DrawerPanel";
|
|
41830
|
+
}
|
|
41831
|
+
function parseWidthHeight(value2) {
|
|
41832
|
+
if (typeof value2 === "string" && String(Number(value2)) === value2) {
|
|
41833
|
+
warningOnce(false, "Invalid value type of `width` or `height` which should be number type instead.");
|
|
41834
|
+
return Number(value2);
|
|
41835
|
+
}
|
|
41836
|
+
return value2;
|
|
41837
|
+
}
|
|
41838
|
+
function warnCheck(props) {
|
|
41839
|
+
warningOnce(!("wrapperClassName" in props), "'wrapperClassName' is removed. Please use 'rootClassName' instead.");
|
|
41840
|
+
warningOnce(canUseDom() || !props.open, "Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.");
|
|
41841
|
+
}
|
|
41842
|
+
var sentinelStyle = {
|
|
41843
|
+
width: 0,
|
|
41844
|
+
height: 0,
|
|
41845
|
+
overflow: "hidden",
|
|
41846
|
+
outline: "none",
|
|
41847
|
+
position: "absolute"
|
|
41848
|
+
};
|
|
41849
|
+
function DrawerPopup(props, ref) {
|
|
41850
|
+
var _ref, _pushConfig$distance, _pushConfig;
|
|
41851
|
+
var prefixCls = props.prefixCls, open = props.open, placement = props.placement, inline2 = props.inline, push2 = props.push, forceRender = props.forceRender, autoFocus = props.autoFocus, keyboard = props.keyboard, drawerClassNames = props.classNames, rootClassName = props.rootClassName, rootStyle = props.rootStyle, zIndex = props.zIndex, className = props.className, id2 = props.id, style2 = props.style, motion2 = props.motion, width = props.width, height = props.height, children2 = props.children, mask = props.mask, maskClosable = props.maskClosable, maskMotion = props.maskMotion, maskClassName = props.maskClassName, maskStyle = props.maskStyle, afterOpenChange = props.afterOpenChange, onClose = props.onClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, styles = props.styles, drawerRender = props.drawerRender;
|
|
41852
|
+
var panelRef = React.useRef();
|
|
41853
|
+
var sentinelStartRef = React.useRef();
|
|
41854
|
+
var sentinelEndRef = React.useRef();
|
|
41855
|
+
React.useImperativeHandle(ref, function() {
|
|
41856
|
+
return panelRef.current;
|
|
41857
|
+
});
|
|
41858
|
+
var onPanelKeyDown = function onPanelKeyDown2(event2) {
|
|
41859
|
+
var keyCode = event2.keyCode, shiftKey = event2.shiftKey;
|
|
41860
|
+
switch (keyCode) {
|
|
41861
|
+
// Tab active
|
|
41862
|
+
case KeyCode.TAB: {
|
|
41863
|
+
if (keyCode === KeyCode.TAB) {
|
|
41864
|
+
if (!shiftKey && document.activeElement === sentinelEndRef.current) {
|
|
41865
|
+
var _sentinelStartRef$cur;
|
|
41866
|
+
(_sentinelStartRef$cur = sentinelStartRef.current) === null || _sentinelStartRef$cur === void 0 || _sentinelStartRef$cur.focus({
|
|
41867
|
+
preventScroll: true
|
|
41868
|
+
});
|
|
41869
|
+
} else if (shiftKey && document.activeElement === sentinelStartRef.current) {
|
|
41870
|
+
var _sentinelEndRef$curre;
|
|
41871
|
+
(_sentinelEndRef$curre = sentinelEndRef.current) === null || _sentinelEndRef$curre === void 0 || _sentinelEndRef$curre.focus({
|
|
41872
|
+
preventScroll: true
|
|
41873
|
+
});
|
|
41874
|
+
}
|
|
41875
|
+
}
|
|
41876
|
+
break;
|
|
41877
|
+
}
|
|
41878
|
+
// Close
|
|
41879
|
+
case KeyCode.ESC: {
|
|
41880
|
+
if (onClose && keyboard) {
|
|
41881
|
+
event2.stopPropagation();
|
|
41882
|
+
onClose(event2);
|
|
41883
|
+
}
|
|
41884
|
+
break;
|
|
41885
|
+
}
|
|
41886
|
+
}
|
|
41887
|
+
};
|
|
41888
|
+
React.useEffect(function() {
|
|
41889
|
+
if (open && autoFocus) {
|
|
41890
|
+
var _panelRef$current;
|
|
41891
|
+
(_panelRef$current = panelRef.current) === null || _panelRef$current === void 0 || _panelRef$current.focus({
|
|
41892
|
+
preventScroll: true
|
|
41893
|
+
});
|
|
41894
|
+
}
|
|
41895
|
+
}, [open]);
|
|
41896
|
+
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), pushed = _React$useState2[0], setPushed = _React$useState2[1];
|
|
41897
|
+
var parentContext = React.useContext(DrawerContext);
|
|
41898
|
+
var pushConfig;
|
|
41899
|
+
if (typeof push2 === "boolean") {
|
|
41900
|
+
pushConfig = push2 ? {} : {
|
|
41901
|
+
distance: 0
|
|
41902
|
+
};
|
|
41903
|
+
} else {
|
|
41904
|
+
pushConfig = push2 || {};
|
|
41905
|
+
}
|
|
41906
|
+
var pushDistance = (_ref = (_pushConfig$distance = (_pushConfig = pushConfig) === null || _pushConfig === void 0 ? void 0 : _pushConfig.distance) !== null && _pushConfig$distance !== void 0 ? _pushConfig$distance : parentContext === null || parentContext === void 0 ? void 0 : parentContext.pushDistance) !== null && _ref !== void 0 ? _ref : 180;
|
|
41907
|
+
var mergedContext = React.useMemo(function() {
|
|
41908
|
+
return {
|
|
41909
|
+
pushDistance,
|
|
41910
|
+
push: function push3() {
|
|
41911
|
+
setPushed(true);
|
|
41912
|
+
},
|
|
41913
|
+
pull: function pull() {
|
|
41914
|
+
setPushed(false);
|
|
41915
|
+
}
|
|
41916
|
+
};
|
|
41917
|
+
}, [pushDistance]);
|
|
41918
|
+
React.useEffect(function() {
|
|
41919
|
+
if (open) {
|
|
41920
|
+
var _parentContext$push;
|
|
41921
|
+
parentContext === null || parentContext === void 0 || (_parentContext$push = parentContext.push) === null || _parentContext$push === void 0 || _parentContext$push.call(parentContext);
|
|
41922
|
+
} else {
|
|
41923
|
+
var _parentContext$pull;
|
|
41924
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull = parentContext.pull) === null || _parentContext$pull === void 0 || _parentContext$pull.call(parentContext);
|
|
41925
|
+
}
|
|
41926
|
+
}, [open]);
|
|
41927
|
+
React.useEffect(function() {
|
|
41928
|
+
return function() {
|
|
41929
|
+
var _parentContext$pull2;
|
|
41930
|
+
parentContext === null || parentContext === void 0 || (_parentContext$pull2 = parentContext.pull) === null || _parentContext$pull2 === void 0 || _parentContext$pull2.call(parentContext);
|
|
41931
|
+
};
|
|
41932
|
+
}, []);
|
|
41933
|
+
var maskNode = /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
|
|
41934
|
+
key: "mask"
|
|
41935
|
+
}, maskMotion, {
|
|
41936
|
+
visible: mask && open
|
|
41937
|
+
}), function(_ref2, maskRef) {
|
|
41938
|
+
var motionMaskClassName = _ref2.className, motionMaskStyle = _ref2.style;
|
|
41939
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
41940
|
+
className: classNames("".concat(prefixCls, "-mask"), motionMaskClassName, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.mask, maskClassName),
|
|
41941
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionMaskStyle), maskStyle), styles === null || styles === void 0 ? void 0 : styles.mask),
|
|
41942
|
+
onClick: maskClosable && open ? onClose : void 0,
|
|
41943
|
+
ref: maskRef
|
|
41944
|
+
});
|
|
41945
|
+
});
|
|
41946
|
+
var motionProps = typeof motion2 === "function" ? motion2(placement) : motion2;
|
|
41947
|
+
var wrapperStyle = {};
|
|
41948
|
+
if (pushed && pushDistance) {
|
|
41949
|
+
switch (placement) {
|
|
41950
|
+
case "top":
|
|
41951
|
+
wrapperStyle.transform = "translateY(".concat(pushDistance, "px)");
|
|
41952
|
+
break;
|
|
41953
|
+
case "bottom":
|
|
41954
|
+
wrapperStyle.transform = "translateY(".concat(-pushDistance, "px)");
|
|
41955
|
+
break;
|
|
41956
|
+
case "left":
|
|
41957
|
+
wrapperStyle.transform = "translateX(".concat(pushDistance, "px)");
|
|
41958
|
+
break;
|
|
41959
|
+
default:
|
|
41960
|
+
wrapperStyle.transform = "translateX(".concat(-pushDistance, "px)");
|
|
41961
|
+
break;
|
|
41962
|
+
}
|
|
41963
|
+
}
|
|
41964
|
+
if (placement === "left" || placement === "right") {
|
|
41965
|
+
wrapperStyle.width = parseWidthHeight(width);
|
|
41966
|
+
} else {
|
|
41967
|
+
wrapperStyle.height = parseWidthHeight(height);
|
|
41968
|
+
}
|
|
41969
|
+
var eventHandlers = {
|
|
41970
|
+
onMouseEnter,
|
|
41971
|
+
onMouseOver,
|
|
41972
|
+
onMouseLeave,
|
|
41973
|
+
onClick,
|
|
41974
|
+
onKeyDown: onKeyDown2,
|
|
41975
|
+
onKeyUp
|
|
41976
|
+
};
|
|
41977
|
+
var panelNode = /* @__PURE__ */ React.createElement(CSSMotion, _extends$1({
|
|
41978
|
+
key: "panel"
|
|
41979
|
+
}, motionProps, {
|
|
41980
|
+
visible: open,
|
|
41981
|
+
forceRender,
|
|
41982
|
+
onVisibleChanged: function onVisibleChanged(nextVisible) {
|
|
41983
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
|
41984
|
+
},
|
|
41985
|
+
removeOnLeave: false,
|
|
41986
|
+
leavedClassName: "".concat(prefixCls, "-content-wrapper-hidden")
|
|
41987
|
+
}), function(_ref3, motionRef) {
|
|
41988
|
+
var motionClassName = _ref3.className, motionStyle = _ref3.style;
|
|
41989
|
+
var content2 = /* @__PURE__ */ React.createElement(DrawerPanel$1, _extends$1({
|
|
41990
|
+
id: id2,
|
|
41991
|
+
containerRef: motionRef,
|
|
41992
|
+
prefixCls,
|
|
41993
|
+
className: classNames(className, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.content),
|
|
41994
|
+
style: _objectSpread2(_objectSpread2({}, style2), styles === null || styles === void 0 ? void 0 : styles.content)
|
|
41995
|
+
}, pickAttrs(props, {
|
|
41996
|
+
aria: true
|
|
41997
|
+
}), eventHandlers), children2);
|
|
41998
|
+
return /* @__PURE__ */ React.createElement("div", _extends$1({
|
|
41999
|
+
className: classNames("".concat(prefixCls, "-content-wrapper"), drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.wrapper, motionClassName),
|
|
42000
|
+
style: _objectSpread2(_objectSpread2(_objectSpread2({}, wrapperStyle), motionStyle), styles === null || styles === void 0 ? void 0 : styles.wrapper)
|
|
42001
|
+
}, pickAttrs(props, {
|
|
42002
|
+
data: true
|
|
42003
|
+
})), drawerRender ? drawerRender(content2) : content2);
|
|
42004
|
+
});
|
|
42005
|
+
var containerStyle = _objectSpread2({}, rootStyle);
|
|
42006
|
+
if (zIndex) {
|
|
42007
|
+
containerStyle.zIndex = zIndex;
|
|
42008
|
+
}
|
|
42009
|
+
return /* @__PURE__ */ React.createElement(DrawerContext.Provider, {
|
|
42010
|
+
value: mergedContext
|
|
42011
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
42012
|
+
className: classNames(prefixCls, "".concat(prefixCls, "-").concat(placement), rootClassName, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-open"), open), "".concat(prefixCls, "-inline"), inline2)),
|
|
42013
|
+
style: containerStyle,
|
|
42014
|
+
tabIndex: -1,
|
|
42015
|
+
ref: panelRef,
|
|
42016
|
+
onKeyDown: onPanelKeyDown
|
|
42017
|
+
}, maskNode, /* @__PURE__ */ React.createElement("div", {
|
|
42018
|
+
tabIndex: 0,
|
|
42019
|
+
ref: sentinelStartRef,
|
|
42020
|
+
style: sentinelStyle,
|
|
42021
|
+
"aria-hidden": "true",
|
|
42022
|
+
"data-sentinel": "start"
|
|
42023
|
+
}), panelNode, /* @__PURE__ */ React.createElement("div", {
|
|
42024
|
+
tabIndex: 0,
|
|
42025
|
+
ref: sentinelEndRef,
|
|
42026
|
+
style: sentinelStyle,
|
|
42027
|
+
"aria-hidden": "true",
|
|
42028
|
+
"data-sentinel": "end"
|
|
42029
|
+
})));
|
|
42030
|
+
}
|
|
42031
|
+
var RefDrawerPopup = /* @__PURE__ */ React.forwardRef(DrawerPopup);
|
|
42032
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42033
|
+
RefDrawerPopup.displayName = "DrawerPopup";
|
|
42034
|
+
}
|
|
42035
|
+
var Drawer$1 = function Drawer(props) {
|
|
42036
|
+
var _props$open = props.open, open = _props$open === void 0 ? false : _props$open, _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-drawer" : _props$prefixCls, _props$placement = props.placement, placement = _props$placement === void 0 ? "right" : _props$placement, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, _props$keyboard = props.keyboard, keyboard = _props$keyboard === void 0 ? true : _props$keyboard, _props$width = props.width, width = _props$width === void 0 ? 378 : _props$width, _props$mask = props.mask, mask = _props$mask === void 0 ? true : _props$mask, _props$maskClosable = props.maskClosable, maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable, getContainer2 = props.getContainer, forceRender = props.forceRender, afterOpenChange = props.afterOpenChange, destroyOnClose = props.destroyOnClose, onMouseEnter = props.onMouseEnter, onMouseOver = props.onMouseOver, onMouseLeave = props.onMouseLeave, onClick = props.onClick, onKeyDown2 = props.onKeyDown, onKeyUp = props.onKeyUp, panelRef = props.panelRef;
|
|
42037
|
+
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), animatedVisible = _React$useState2[0], setAnimatedVisible = _React$useState2[1];
|
|
42038
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42039
|
+
warnCheck(props);
|
|
42040
|
+
}
|
|
42041
|
+
var _React$useState3 = React.useState(false), _React$useState4 = _slicedToArray(_React$useState3, 2), mounted = _React$useState4[0], setMounted = _React$useState4[1];
|
|
42042
|
+
useLayoutEffect$1(function() {
|
|
42043
|
+
setMounted(true);
|
|
42044
|
+
}, []);
|
|
42045
|
+
var mergedOpen = mounted ? open : false;
|
|
42046
|
+
var popupRef = React.useRef();
|
|
42047
|
+
var lastActiveRef = React.useRef();
|
|
42048
|
+
useLayoutEffect$1(function() {
|
|
42049
|
+
if (mergedOpen) {
|
|
42050
|
+
lastActiveRef.current = document.activeElement;
|
|
42051
|
+
}
|
|
42052
|
+
}, [mergedOpen]);
|
|
42053
|
+
var internalAfterOpenChange = function internalAfterOpenChange2(nextVisible) {
|
|
42054
|
+
var _popupRef$current;
|
|
42055
|
+
setAnimatedVisible(nextVisible);
|
|
42056
|
+
afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(nextVisible);
|
|
42057
|
+
if (!nextVisible && lastActiveRef.current && !((_popupRef$current = popupRef.current) !== null && _popupRef$current !== void 0 && _popupRef$current.contains(lastActiveRef.current))) {
|
|
42058
|
+
var _lastActiveRef$curren;
|
|
42059
|
+
(_lastActiveRef$curren = lastActiveRef.current) === null || _lastActiveRef$curren === void 0 || _lastActiveRef$curren.focus({
|
|
42060
|
+
preventScroll: true
|
|
42061
|
+
});
|
|
42062
|
+
}
|
|
42063
|
+
};
|
|
42064
|
+
var refContext = React.useMemo(function() {
|
|
42065
|
+
return {
|
|
42066
|
+
panel: panelRef
|
|
42067
|
+
};
|
|
42068
|
+
}, [panelRef]);
|
|
42069
|
+
if (!forceRender && !animatedVisible && !mergedOpen && destroyOnClose) {
|
|
42070
|
+
return null;
|
|
42071
|
+
}
|
|
42072
|
+
var eventHandlers = {
|
|
42073
|
+
onMouseEnter,
|
|
42074
|
+
onMouseOver,
|
|
42075
|
+
onMouseLeave,
|
|
42076
|
+
onClick,
|
|
42077
|
+
onKeyDown: onKeyDown2,
|
|
42078
|
+
onKeyUp
|
|
42079
|
+
};
|
|
42080
|
+
var drawerPopupProps = _objectSpread2(_objectSpread2({}, props), {}, {
|
|
42081
|
+
open: mergedOpen,
|
|
42082
|
+
prefixCls,
|
|
42083
|
+
placement,
|
|
42084
|
+
autoFocus,
|
|
42085
|
+
keyboard,
|
|
42086
|
+
width,
|
|
42087
|
+
mask,
|
|
42088
|
+
maskClosable,
|
|
42089
|
+
inline: getContainer2 === false,
|
|
42090
|
+
afterOpenChange: internalAfterOpenChange,
|
|
42091
|
+
ref: popupRef
|
|
42092
|
+
}, eventHandlers);
|
|
42093
|
+
return /* @__PURE__ */ React.createElement(RefContext.Provider, {
|
|
42094
|
+
value: refContext
|
|
42095
|
+
}, /* @__PURE__ */ React.createElement(Portal, {
|
|
42096
|
+
open: mergedOpen || forceRender || animatedVisible,
|
|
42097
|
+
autoDestroy: false,
|
|
42098
|
+
getContainer: getContainer2,
|
|
42099
|
+
autoLock: mask && (mergedOpen || animatedVisible)
|
|
42100
|
+
}, /* @__PURE__ */ React.createElement(RefDrawerPopup, drawerPopupProps)));
|
|
42101
|
+
};
|
|
42102
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42103
|
+
Drawer$1.displayName = "Drawer";
|
|
42104
|
+
}
|
|
42105
|
+
const DrawerPanel2 = (props) => {
|
|
42106
|
+
var _a, _b;
|
|
42107
|
+
const {
|
|
42108
|
+
prefixCls,
|
|
42109
|
+
title,
|
|
42110
|
+
footer: footer2,
|
|
42111
|
+
extra,
|
|
42112
|
+
loading,
|
|
42113
|
+
onClose,
|
|
42114
|
+
headerStyle,
|
|
42115
|
+
bodyStyle,
|
|
42116
|
+
footerStyle,
|
|
42117
|
+
children: children2,
|
|
42118
|
+
classNames: drawerClassNames,
|
|
42119
|
+
styles: drawerStyles
|
|
42120
|
+
} = props;
|
|
42121
|
+
const drawerContext = useComponentConfig("drawer");
|
|
42122
|
+
const customCloseIconRender = React.useCallback((icon) => /* @__PURE__ */ React.createElement("button", {
|
|
42123
|
+
type: "button",
|
|
42124
|
+
onClick: onClose,
|
|
42125
|
+
className: `${prefixCls}-close`
|
|
42126
|
+
}, icon), [onClose]);
|
|
42127
|
+
const [mergedClosable, mergedCloseIcon] = useClosable(pickClosable(props), pickClosable(drawerContext), {
|
|
42128
|
+
closable: true,
|
|
42129
|
+
closeIconRender: customCloseIconRender
|
|
42130
|
+
});
|
|
42131
|
+
const headerNode = React.useMemo(() => {
|
|
42132
|
+
var _a2, _b2;
|
|
42133
|
+
if (!title && !mergedClosable) {
|
|
42134
|
+
return null;
|
|
42135
|
+
}
|
|
42136
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
42137
|
+
style: Object.assign(Object.assign(Object.assign({}, (_a2 = drawerContext.styles) === null || _a2 === void 0 ? void 0 : _a2.header), headerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.header),
|
|
42138
|
+
className: classNames(`${prefixCls}-header`, {
|
|
42139
|
+
[`${prefixCls}-header-close-only`]: mergedClosable && !title && !extra
|
|
42140
|
+
}, (_b2 = drawerContext.classNames) === null || _b2 === void 0 ? void 0 : _b2.header, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.header)
|
|
42141
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
42142
|
+
className: `${prefixCls}-header-title`
|
|
42143
|
+
}, mergedCloseIcon, title && /* @__PURE__ */ React.createElement("div", {
|
|
42144
|
+
className: `${prefixCls}-title`
|
|
42145
|
+
}, title)), extra && /* @__PURE__ */ React.createElement("div", {
|
|
42146
|
+
className: `${prefixCls}-extra`
|
|
42147
|
+
}, extra));
|
|
42148
|
+
}, [mergedClosable, mergedCloseIcon, extra, headerStyle, prefixCls, title]);
|
|
42149
|
+
const footerNode = React.useMemo(() => {
|
|
42150
|
+
var _a2, _b2;
|
|
42151
|
+
if (!footer2) {
|
|
42152
|
+
return null;
|
|
42153
|
+
}
|
|
42154
|
+
const footerClassName = `${prefixCls}-footer`;
|
|
42155
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
42156
|
+
className: classNames(footerClassName, (_a2 = drawerContext.classNames) === null || _a2 === void 0 ? void 0 : _a2.footer, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.footer),
|
|
42157
|
+
style: Object.assign(Object.assign(Object.assign({}, (_b2 = drawerContext.styles) === null || _b2 === void 0 ? void 0 : _b2.footer), footerStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.footer)
|
|
42158
|
+
}, footer2);
|
|
42159
|
+
}, [footer2, footerStyle, prefixCls]);
|
|
42160
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, headerNode, /* @__PURE__ */ React.createElement("div", {
|
|
42161
|
+
className: classNames(`${prefixCls}-body`, drawerClassNames === null || drawerClassNames === void 0 ? void 0 : drawerClassNames.body, (_a = drawerContext.classNames) === null || _a === void 0 ? void 0 : _a.body),
|
|
42162
|
+
style: Object.assign(Object.assign(Object.assign({}, (_b = drawerContext.styles) === null || _b === void 0 ? void 0 : _b.body), bodyStyle), drawerStyles === null || drawerStyles === void 0 ? void 0 : drawerStyles.body)
|
|
42163
|
+
}, loading ? /* @__PURE__ */ React.createElement(Skeleton$1, {
|
|
42164
|
+
active: true,
|
|
42165
|
+
title: false,
|
|
42166
|
+
paragraph: {
|
|
42167
|
+
rows: 5
|
|
42168
|
+
},
|
|
42169
|
+
className: `${prefixCls}-body-skeleton`
|
|
42170
|
+
}) : children2), footerNode);
|
|
42171
|
+
};
|
|
42172
|
+
const getMoveTranslate = (direction) => {
|
|
42173
|
+
const value2 = "100%";
|
|
42174
|
+
return {
|
|
42175
|
+
left: `translateX(-${value2})`,
|
|
42176
|
+
right: `translateX(${value2})`,
|
|
42177
|
+
top: `translateY(-${value2})`,
|
|
42178
|
+
bottom: `translateY(${value2})`
|
|
42179
|
+
}[direction];
|
|
42180
|
+
};
|
|
42181
|
+
const getEnterLeaveStyle = (startStyle, endStyle) => ({
|
|
42182
|
+
"&-enter, &-appear": Object.assign(Object.assign({}, startStyle), {
|
|
42183
|
+
"&-active": endStyle
|
|
42184
|
+
}),
|
|
42185
|
+
"&-leave": Object.assign(Object.assign({}, endStyle), {
|
|
42186
|
+
"&-active": startStyle
|
|
42187
|
+
})
|
|
42188
|
+
});
|
|
42189
|
+
const getFadeStyle = (from2, duration) => Object.assign({
|
|
42190
|
+
"&-enter, &-appear, &-leave": {
|
|
42191
|
+
"&-start": {
|
|
42192
|
+
transition: "none"
|
|
42193
|
+
},
|
|
42194
|
+
"&-active": {
|
|
42195
|
+
transition: `all ${duration}`
|
|
42196
|
+
}
|
|
42197
|
+
}
|
|
42198
|
+
}, getEnterLeaveStyle({
|
|
42199
|
+
opacity: from2
|
|
42200
|
+
}, {
|
|
42201
|
+
opacity: 1
|
|
42202
|
+
}));
|
|
42203
|
+
const getPanelMotionStyles = (direction, duration) => [getFadeStyle(0.7, duration), getEnterLeaveStyle({
|
|
42204
|
+
transform: getMoveTranslate(direction)
|
|
42205
|
+
}, {
|
|
42206
|
+
transform: "none"
|
|
42207
|
+
})];
|
|
42208
|
+
const genMotionStyle = (token2) => {
|
|
42209
|
+
const {
|
|
42210
|
+
componentCls,
|
|
42211
|
+
motionDurationSlow
|
|
42212
|
+
} = token2;
|
|
42213
|
+
return {
|
|
42214
|
+
[componentCls]: {
|
|
42215
|
+
// ======================== Mask ========================
|
|
42216
|
+
[`${componentCls}-mask-motion`]: getFadeStyle(0, motionDurationSlow),
|
|
42217
|
+
// ======================= Panel ========================
|
|
42218
|
+
[`${componentCls}-panel-motion`]: ["left", "right", "top", "bottom"].reduce((obj, direction) => Object.assign(Object.assign({}, obj), {
|
|
42219
|
+
[`&-${direction}`]: getPanelMotionStyles(direction, motionDurationSlow)
|
|
42220
|
+
}), {})
|
|
42221
|
+
}
|
|
42222
|
+
};
|
|
42223
|
+
};
|
|
42224
|
+
const genDrawerStyle = (token2) => {
|
|
42225
|
+
const {
|
|
42226
|
+
borderRadiusSM,
|
|
42227
|
+
componentCls,
|
|
42228
|
+
zIndexPopup,
|
|
42229
|
+
colorBgMask,
|
|
42230
|
+
colorBgElevated,
|
|
42231
|
+
motionDurationSlow,
|
|
42232
|
+
motionDurationMid,
|
|
42233
|
+
paddingXS,
|
|
42234
|
+
padding,
|
|
42235
|
+
paddingLG,
|
|
42236
|
+
fontSizeLG,
|
|
42237
|
+
lineHeightLG,
|
|
42238
|
+
lineWidth,
|
|
42239
|
+
lineType,
|
|
42240
|
+
colorSplit,
|
|
42241
|
+
marginXS,
|
|
42242
|
+
colorIcon,
|
|
42243
|
+
colorIconHover,
|
|
42244
|
+
colorBgTextHover,
|
|
42245
|
+
colorBgTextActive,
|
|
42246
|
+
colorText,
|
|
42247
|
+
fontWeightStrong,
|
|
42248
|
+
footerPaddingBlock,
|
|
42249
|
+
footerPaddingInline,
|
|
42250
|
+
calc
|
|
42251
|
+
} = token2;
|
|
42252
|
+
const wrapperCls = `${componentCls}-content-wrapper`;
|
|
42253
|
+
return {
|
|
42254
|
+
[componentCls]: {
|
|
42255
|
+
position: "fixed",
|
|
42256
|
+
inset: 0,
|
|
42257
|
+
zIndex: zIndexPopup,
|
|
42258
|
+
pointerEvents: "none",
|
|
42259
|
+
color: colorText,
|
|
42260
|
+
"&-pure": {
|
|
42261
|
+
position: "relative",
|
|
42262
|
+
background: colorBgElevated,
|
|
42263
|
+
display: "flex",
|
|
42264
|
+
flexDirection: "column",
|
|
42265
|
+
[`&${componentCls}-left`]: {
|
|
42266
|
+
boxShadow: token2.boxShadowDrawerLeft
|
|
42267
|
+
},
|
|
42268
|
+
[`&${componentCls}-right`]: {
|
|
42269
|
+
boxShadow: token2.boxShadowDrawerRight
|
|
42270
|
+
},
|
|
42271
|
+
[`&${componentCls}-top`]: {
|
|
42272
|
+
boxShadow: token2.boxShadowDrawerUp
|
|
42273
|
+
},
|
|
42274
|
+
[`&${componentCls}-bottom`]: {
|
|
42275
|
+
boxShadow: token2.boxShadowDrawerDown
|
|
42276
|
+
}
|
|
42277
|
+
},
|
|
42278
|
+
"&-inline": {
|
|
42279
|
+
position: "absolute"
|
|
42280
|
+
},
|
|
42281
|
+
// ====================== Mask ======================
|
|
42282
|
+
[`${componentCls}-mask`]: {
|
|
42283
|
+
position: "absolute",
|
|
42284
|
+
inset: 0,
|
|
42285
|
+
zIndex: zIndexPopup,
|
|
42286
|
+
background: colorBgMask,
|
|
42287
|
+
pointerEvents: "auto"
|
|
42288
|
+
},
|
|
42289
|
+
// ==================== Content =====================
|
|
42290
|
+
[wrapperCls]: {
|
|
42291
|
+
position: "absolute",
|
|
42292
|
+
zIndex: zIndexPopup,
|
|
42293
|
+
maxWidth: "100vw",
|
|
42294
|
+
transition: `all ${motionDurationSlow}`,
|
|
42295
|
+
"&-hidden": {
|
|
42296
|
+
display: "none"
|
|
42297
|
+
}
|
|
42298
|
+
},
|
|
42299
|
+
// Placement
|
|
42300
|
+
[`&-left > ${wrapperCls}`]: {
|
|
42301
|
+
top: 0,
|
|
42302
|
+
bottom: 0,
|
|
42303
|
+
left: {
|
|
42304
|
+
_skip_check_: true,
|
|
42305
|
+
value: 0
|
|
42306
|
+
},
|
|
42307
|
+
boxShadow: token2.boxShadowDrawerLeft
|
|
42308
|
+
},
|
|
42309
|
+
[`&-right > ${wrapperCls}`]: {
|
|
42310
|
+
top: 0,
|
|
42311
|
+
right: {
|
|
42312
|
+
_skip_check_: true,
|
|
42313
|
+
value: 0
|
|
42314
|
+
},
|
|
42315
|
+
bottom: 0,
|
|
42316
|
+
boxShadow: token2.boxShadowDrawerRight
|
|
42317
|
+
},
|
|
42318
|
+
[`&-top > ${wrapperCls}`]: {
|
|
42319
|
+
top: 0,
|
|
42320
|
+
insetInline: 0,
|
|
42321
|
+
boxShadow: token2.boxShadowDrawerUp
|
|
42322
|
+
},
|
|
42323
|
+
[`&-bottom > ${wrapperCls}`]: {
|
|
42324
|
+
bottom: 0,
|
|
42325
|
+
insetInline: 0,
|
|
42326
|
+
boxShadow: token2.boxShadowDrawerDown
|
|
42327
|
+
},
|
|
42328
|
+
[`${componentCls}-content`]: {
|
|
42329
|
+
display: "flex",
|
|
42330
|
+
flexDirection: "column",
|
|
42331
|
+
width: "100%",
|
|
42332
|
+
height: "100%",
|
|
42333
|
+
overflow: "auto",
|
|
42334
|
+
background: colorBgElevated,
|
|
42335
|
+
pointerEvents: "auto"
|
|
42336
|
+
},
|
|
42337
|
+
// Header
|
|
42338
|
+
[`${componentCls}-header`]: {
|
|
42339
|
+
display: "flex",
|
|
42340
|
+
flex: 0,
|
|
42341
|
+
alignItems: "center",
|
|
42342
|
+
padding: `${unit$2(padding)} ${unit$2(paddingLG)}`,
|
|
42343
|
+
fontSize: fontSizeLG,
|
|
42344
|
+
lineHeight: lineHeightLG,
|
|
42345
|
+
borderBottom: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`,
|
|
42346
|
+
"&-title": {
|
|
42347
|
+
display: "flex",
|
|
42348
|
+
flex: 1,
|
|
42349
|
+
alignItems: "center",
|
|
42350
|
+
minWidth: 0,
|
|
42351
|
+
minHeight: 0
|
|
42352
|
+
}
|
|
42353
|
+
},
|
|
42354
|
+
[`${componentCls}-extra`]: {
|
|
42355
|
+
flex: "none"
|
|
42356
|
+
},
|
|
42357
|
+
[`${componentCls}-close`]: Object.assign({
|
|
42358
|
+
display: "inline-flex",
|
|
42359
|
+
width: calc(fontSizeLG).add(paddingXS).equal(),
|
|
42360
|
+
height: calc(fontSizeLG).add(paddingXS).equal(),
|
|
42361
|
+
borderRadius: borderRadiusSM,
|
|
42362
|
+
justifyContent: "center",
|
|
42363
|
+
alignItems: "center",
|
|
42364
|
+
marginInlineEnd: marginXS,
|
|
42365
|
+
color: colorIcon,
|
|
42366
|
+
fontWeight: fontWeightStrong,
|
|
42367
|
+
fontSize: fontSizeLG,
|
|
42368
|
+
fontStyle: "normal",
|
|
42369
|
+
lineHeight: 1,
|
|
42370
|
+
textAlign: "center",
|
|
42371
|
+
textTransform: "none",
|
|
42372
|
+
textDecoration: "none",
|
|
42373
|
+
background: "transparent",
|
|
42374
|
+
border: 0,
|
|
42375
|
+
cursor: "pointer",
|
|
42376
|
+
transition: `all ${motionDurationMid}`,
|
|
42377
|
+
textRendering: "auto",
|
|
42378
|
+
"&:hover": {
|
|
42379
|
+
color: colorIconHover,
|
|
42380
|
+
backgroundColor: colorBgTextHover,
|
|
42381
|
+
textDecoration: "none"
|
|
42382
|
+
},
|
|
42383
|
+
"&:active": {
|
|
42384
|
+
backgroundColor: colorBgTextActive
|
|
42385
|
+
}
|
|
42386
|
+
}, genFocusStyle(token2)),
|
|
42387
|
+
[`${componentCls}-title`]: {
|
|
42388
|
+
flex: 1,
|
|
42389
|
+
margin: 0,
|
|
42390
|
+
fontWeight: token2.fontWeightStrong,
|
|
42391
|
+
fontSize: fontSizeLG,
|
|
42392
|
+
lineHeight: lineHeightLG
|
|
42393
|
+
},
|
|
42394
|
+
// Body
|
|
42395
|
+
[`${componentCls}-body`]: {
|
|
42396
|
+
flex: 1,
|
|
42397
|
+
minWidth: 0,
|
|
42398
|
+
minHeight: 0,
|
|
42399
|
+
padding: paddingLG,
|
|
42400
|
+
overflow: "auto",
|
|
42401
|
+
[`${componentCls}-body-skeleton`]: {
|
|
42402
|
+
width: "100%",
|
|
42403
|
+
height: "100%",
|
|
42404
|
+
display: "flex",
|
|
42405
|
+
justifyContent: "center"
|
|
42406
|
+
}
|
|
42407
|
+
},
|
|
42408
|
+
// Footer
|
|
42409
|
+
[`${componentCls}-footer`]: {
|
|
42410
|
+
flexShrink: 0,
|
|
42411
|
+
padding: `${unit$2(footerPaddingBlock)} ${unit$2(footerPaddingInline)}`,
|
|
42412
|
+
borderTop: `${unit$2(lineWidth)} ${lineType} ${colorSplit}`
|
|
42413
|
+
},
|
|
42414
|
+
// ====================== RTL =======================
|
|
42415
|
+
"&-rtl": {
|
|
42416
|
+
direction: "rtl"
|
|
42417
|
+
}
|
|
42418
|
+
}
|
|
42419
|
+
};
|
|
42420
|
+
};
|
|
42421
|
+
const prepareComponentToken$a = (token2) => ({
|
|
42422
|
+
zIndexPopup: token2.zIndexPopupBase,
|
|
42423
|
+
footerPaddingBlock: token2.paddingXS,
|
|
42424
|
+
footerPaddingInline: token2.padding
|
|
42425
|
+
});
|
|
42426
|
+
const useStyle$c = genStyleHooks("Drawer", (token2) => {
|
|
42427
|
+
const drawerToken = merge$1(token2, {});
|
|
42428
|
+
return [genDrawerStyle(drawerToken), genMotionStyle(drawerToken)];
|
|
42429
|
+
}, prepareComponentToken$a);
|
|
42430
|
+
var __rest$q = function(s, e3) {
|
|
42431
|
+
var t2 = {};
|
|
42432
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e3.indexOf(p) < 0) t2[p] = s[p];
|
|
42433
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42434
|
+
if (e3.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t2[p[i]] = s[p[i]];
|
|
42435
|
+
}
|
|
42436
|
+
return t2;
|
|
42437
|
+
};
|
|
42438
|
+
const defaultPushState = {
|
|
42439
|
+
distance: 180
|
|
42440
|
+
};
|
|
42441
|
+
const Drawer2 = (props) => {
|
|
42442
|
+
var _a;
|
|
42443
|
+
const {
|
|
42444
|
+
rootClassName,
|
|
42445
|
+
width,
|
|
42446
|
+
height,
|
|
42447
|
+
size = "default",
|
|
42448
|
+
mask = true,
|
|
42449
|
+
push: push2 = defaultPushState,
|
|
42450
|
+
open,
|
|
42451
|
+
afterOpenChange,
|
|
42452
|
+
onClose,
|
|
42453
|
+
prefixCls: customizePrefixCls,
|
|
42454
|
+
getContainer: customizeGetContainer,
|
|
42455
|
+
panelRef = null,
|
|
42456
|
+
style: style2,
|
|
42457
|
+
className,
|
|
42458
|
+
// Deprecated
|
|
42459
|
+
visible,
|
|
42460
|
+
afterVisibleChange,
|
|
42461
|
+
maskStyle,
|
|
42462
|
+
drawerStyle,
|
|
42463
|
+
contentWrapperStyle,
|
|
42464
|
+
destroyOnClose,
|
|
42465
|
+
destroyOnHidden
|
|
42466
|
+
} = props, rest = __rest$q(props, ["rootClassName", "width", "height", "size", "mask", "push", "open", "afterOpenChange", "onClose", "prefixCls", "getContainer", "panelRef", "style", "className", "visible", "afterVisibleChange", "maskStyle", "drawerStyle", "contentWrapperStyle", "destroyOnClose", "destroyOnHidden"]);
|
|
42467
|
+
const {
|
|
42468
|
+
getPopupContainer,
|
|
42469
|
+
getPrefixCls,
|
|
42470
|
+
direction,
|
|
42471
|
+
className: contextClassName,
|
|
42472
|
+
style: contextStyle,
|
|
42473
|
+
classNames: contextClassNames,
|
|
42474
|
+
styles: contextStyles
|
|
42475
|
+
} = useComponentConfig("drawer");
|
|
42476
|
+
const prefixCls = getPrefixCls("drawer", customizePrefixCls);
|
|
42477
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
|
|
42478
|
+
const getContainer2 = (
|
|
42479
|
+
// 有可能为 false,所以不能直接判断
|
|
42480
|
+
customizeGetContainer === void 0 && getPopupContainer ? () => getPopupContainer(document.body) : customizeGetContainer
|
|
42481
|
+
);
|
|
42482
|
+
const drawerClassName = classNames({
|
|
42483
|
+
"no-mask": !mask,
|
|
42484
|
+
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
42485
|
+
}, rootClassName, hashId, cssVarCls);
|
|
42486
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42487
|
+
const warning3 = devUseWarning("Drawer");
|
|
42488
|
+
[["visible", "open"], ["afterVisibleChange", "afterOpenChange"], ["headerStyle", "styles.header"], ["bodyStyle", "styles.body"], ["footerStyle", "styles.footer"], ["contentWrapperStyle", "styles.wrapper"], ["maskStyle", "styles.mask"], ["drawerStyle", "styles.content"], ["destroyInactivePanel", "destroyOnHidden"]].forEach(([deprecatedName, newName]) => {
|
|
42489
|
+
warning3.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
42490
|
+
});
|
|
42491
|
+
if (getContainer2 !== void 0 && ((_a = props.style) === null || _a === void 0 ? void 0 : _a.position) === "absolute") {
|
|
42492
|
+
process.env.NODE_ENV !== "production" ? warning3(false, "breaking", "`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.") : void 0;
|
|
42493
|
+
}
|
|
42494
|
+
}
|
|
42495
|
+
const mergedWidth = React.useMemo(() => width !== null && width !== void 0 ? width : size === "large" ? 736 : 378, [width, size]);
|
|
42496
|
+
const mergedHeight = React.useMemo(() => height !== null && height !== void 0 ? height : size === "large" ? 736 : 378, [height, size]);
|
|
42497
|
+
const maskMotion = {
|
|
42498
|
+
motionName: getTransitionName(prefixCls, "mask-motion"),
|
|
42499
|
+
motionAppear: true,
|
|
42500
|
+
motionEnter: true,
|
|
42501
|
+
motionLeave: true,
|
|
42502
|
+
motionDeadline: 500
|
|
42503
|
+
};
|
|
42504
|
+
const panelMotion = (motionPlacement) => ({
|
|
42505
|
+
motionName: getTransitionName(prefixCls, `panel-motion-${motionPlacement}`),
|
|
42506
|
+
motionAppear: true,
|
|
42507
|
+
motionEnter: true,
|
|
42508
|
+
motionLeave: true,
|
|
42509
|
+
motionDeadline: 500
|
|
42510
|
+
});
|
|
42511
|
+
const innerPanelRef = usePanelRef();
|
|
42512
|
+
const mergedPanelRef = composeRef(panelRef, innerPanelRef);
|
|
42513
|
+
const [zIndex, contextZIndex] = useZIndex("Drawer", rest.zIndex);
|
|
42514
|
+
const {
|
|
42515
|
+
classNames: propClassNames = {},
|
|
42516
|
+
styles: propStyles = {}
|
|
42517
|
+
} = rest;
|
|
42518
|
+
return wrapCSSVar(/* @__PURE__ */ React.createElement(ContextIsolator, {
|
|
42519
|
+
form: true,
|
|
42520
|
+
space: true
|
|
42521
|
+
}, /* @__PURE__ */ React.createElement(zIndexContext.Provider, {
|
|
42522
|
+
value: contextZIndex
|
|
42523
|
+
}, /* @__PURE__ */ React.createElement(Drawer$1, Object.assign({
|
|
42524
|
+
prefixCls,
|
|
42525
|
+
onClose,
|
|
42526
|
+
maskMotion,
|
|
42527
|
+
motion: panelMotion
|
|
42528
|
+
}, rest, {
|
|
42529
|
+
classNames: {
|
|
42530
|
+
mask: classNames(propClassNames.mask, contextClassNames.mask),
|
|
42531
|
+
content: classNames(propClassNames.content, contextClassNames.content),
|
|
42532
|
+
wrapper: classNames(propClassNames.wrapper, contextClassNames.wrapper)
|
|
42533
|
+
},
|
|
42534
|
+
styles: {
|
|
42535
|
+
mask: Object.assign(Object.assign(Object.assign({}, propStyles.mask), maskStyle), contextStyles.mask),
|
|
42536
|
+
content: Object.assign(Object.assign(Object.assign({}, propStyles.content), drawerStyle), contextStyles.content),
|
|
42537
|
+
wrapper: Object.assign(Object.assign(Object.assign({}, propStyles.wrapper), contentWrapperStyle), contextStyles.wrapper)
|
|
42538
|
+
},
|
|
42539
|
+
open: open !== null && open !== void 0 ? open : visible,
|
|
42540
|
+
mask,
|
|
42541
|
+
push: push2,
|
|
42542
|
+
width: mergedWidth,
|
|
42543
|
+
height: mergedHeight,
|
|
42544
|
+
style: Object.assign(Object.assign({}, contextStyle), style2),
|
|
42545
|
+
className: classNames(contextClassName, className),
|
|
42546
|
+
rootClassName: drawerClassName,
|
|
42547
|
+
getContainer: getContainer2,
|
|
42548
|
+
afterOpenChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,
|
|
42549
|
+
panelRef: mergedPanelRef,
|
|
42550
|
+
zIndex,
|
|
42551
|
+
// TODO: In the future, destroyOnClose in rc-drawer needs to be upgrade to destroyOnHidden
|
|
42552
|
+
destroyOnClose: destroyOnHidden !== null && destroyOnHidden !== void 0 ? destroyOnHidden : destroyOnClose
|
|
42553
|
+
}), /* @__PURE__ */ React.createElement(DrawerPanel2, Object.assign({
|
|
42554
|
+
prefixCls
|
|
42555
|
+
}, rest, {
|
|
42556
|
+
onClose
|
|
42557
|
+
}))))));
|
|
42558
|
+
};
|
|
42559
|
+
const PurePanel$1 = (props) => {
|
|
42560
|
+
const {
|
|
42561
|
+
prefixCls: customizePrefixCls,
|
|
42562
|
+
style: style2,
|
|
42563
|
+
className,
|
|
42564
|
+
placement = "right"
|
|
42565
|
+
} = props, restProps = __rest$q(props, ["prefixCls", "style", "className", "placement"]);
|
|
42566
|
+
const {
|
|
42567
|
+
getPrefixCls
|
|
42568
|
+
} = React.useContext(ConfigContext);
|
|
42569
|
+
const prefixCls = getPrefixCls("drawer", customizePrefixCls);
|
|
42570
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$c(prefixCls);
|
|
42571
|
+
const cls = classNames(prefixCls, `${prefixCls}-pure`, `${prefixCls}-${placement}`, hashId, cssVarCls, className);
|
|
42572
|
+
return wrapCSSVar(/* @__PURE__ */ React.createElement("div", {
|
|
42573
|
+
className: cls,
|
|
42574
|
+
style: style2
|
|
42575
|
+
}, /* @__PURE__ */ React.createElement(DrawerPanel2, Object.assign({
|
|
42576
|
+
prefixCls
|
|
42577
|
+
}, restProps))));
|
|
42578
|
+
};
|
|
42579
|
+
Drawer2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$1;
|
|
42580
|
+
if (process.env.NODE_ENV !== "production") {
|
|
42581
|
+
Drawer2.displayName = "Drawer";
|
|
42582
|
+
}
|
|
41704
42583
|
function isPresetSize(size) {
|
|
41705
42584
|
return ["small", "middle", "large"].includes(size);
|
|
41706
42585
|
}
|
|
@@ -41777,7 +42656,7 @@ const InternalSpace = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
41777
42656
|
});
|
|
41778
42657
|
const mergedAlign = align === void 0 && direction === "horizontal" ? "center" : align;
|
|
41779
42658
|
const prefixCls = getPrefixCls("space", customizePrefixCls);
|
|
41780
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
42659
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$u(prefixCls);
|
|
41781
42660
|
const cls = classNames(prefixCls, contextClassName, hashId, `${prefixCls}-${direction}`, {
|
|
41782
42661
|
[`${prefixCls}-rtl`]: directionConfig === "rtl",
|
|
41783
42662
|
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
|
@@ -43541,7 +44420,7 @@ const Group = (props) => {
|
|
|
43541
44420
|
} = props;
|
|
43542
44421
|
const prefixCls = getPrefixCls("input-group", customizePrefixCls);
|
|
43543
44422
|
const inputPrefixCls = getPrefixCls("input");
|
|
43544
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$
|
|
44423
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$i(inputPrefixCls);
|
|
43545
44424
|
const cls = classNames(prefixCls, cssVarCls, {
|
|
43546
44425
|
[`${prefixCls}-lg`]: props.size === "large",
|
|
43547
44426
|
[`${prefixCls}-sm`]: props.size === "small",
|
|
@@ -46678,7 +47557,7 @@ const PurePanel = (props) => {
|
|
|
46678
47557
|
} = React.useContext(ConfigContext);
|
|
46679
47558
|
const prefixCls = getPrefixCls("popconfirm", customizePrefixCls);
|
|
46680
47559
|
const [wrapCSSVar] = useStyle$6(prefixCls);
|
|
46681
|
-
return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$
|
|
47560
|
+
return wrapCSSVar(/* @__PURE__ */ React.createElement(PurePanel$4, {
|
|
46682
47561
|
placement,
|
|
46683
47562
|
className: classNames(prefixCls, className),
|
|
46684
47563
|
style: style2,
|
|
@@ -59278,15 +60157,6 @@ const Avatar$1 = styled(Avatar$2)`
|
|
|
59278
60157
|
return getGenesisClass$d(theme, type4, state);
|
|
59279
60158
|
}}
|
|
59280
60159
|
`;
|
|
59281
|
-
const getVariant$2 = (typography2, variant, breakpoint, fontSize, fontWeight) => {
|
|
59282
|
-
const typeClass = typography2["medium"];
|
|
59283
|
-
return `
|
|
59284
|
-
font-size: ${typeClass}.fontSize}px !important;
|
|
59285
|
-
line-height: ${typeClass.lineHeight};
|
|
59286
|
-
letter-spacing: ${typeClass.letterSpacing}px;
|
|
59287
|
-
font-weight: ${typeClass.fontWeight};
|
|
59288
|
-
`;
|
|
59289
|
-
};
|
|
59290
60160
|
const getColor = (color2, colors2, $themeType) => {
|
|
59291
60161
|
if (color2) {
|
|
59292
60162
|
return color2;
|
|
@@ -59302,12 +60172,13 @@ const getFontFamily = (variant) => {
|
|
|
59302
60172
|
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
59303
60173
|
`;
|
|
59304
60174
|
};
|
|
59305
|
-
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state,
|
|
60175
|
+
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, color2, $isFullWidth, fontSize, fontWeight, $letterSpacing, $lineHeight) => `
|
|
59306
60176
|
&.ant-typography {
|
|
59307
60177
|
font-family: ${getFontFamily(variant)};
|
|
59308
60178
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59309
|
-
${getVariant$2(typography2)}
|
|
59310
60179
|
margin-bottom: 0 !important;
|
|
60180
|
+
letter-spacing: ${$letterSpacing} !important;
|
|
60181
|
+
line-height: ${$lineHeight} !important;
|
|
59311
60182
|
width: ${$isFullWidth ? "100%" : "auto"};
|
|
59312
60183
|
font-weight: ${fontWeight} !important;
|
|
59313
60184
|
font-size: ${fontSize} !important;
|
|
@@ -59327,22 +60198,24 @@ const Headline = styled(Typography$1.Title)`
|
|
|
59327
60198
|
$themeType,
|
|
59328
60199
|
variant,
|
|
59329
60200
|
state,
|
|
59330
|
-
breakpoint,
|
|
59331
60201
|
color: color2,
|
|
59332
60202
|
fontSize,
|
|
59333
60203
|
fontWeight,
|
|
59334
|
-
$isFullWidth
|
|
60204
|
+
$isFullWidth,
|
|
60205
|
+
$letterSpacing,
|
|
60206
|
+
$lineHeight
|
|
59335
60207
|
}) => {
|
|
59336
60208
|
return getGenesisTypographyClass(
|
|
59337
60209
|
theme,
|
|
59338
60210
|
$themeType,
|
|
59339
60211
|
variant,
|
|
59340
60212
|
state,
|
|
59341
|
-
breakpoint,
|
|
59342
60213
|
color2,
|
|
60214
|
+
$isFullWidth,
|
|
59343
60215
|
fontSize,
|
|
59344
60216
|
fontWeight,
|
|
59345
|
-
$
|
|
60217
|
+
$letterSpacing,
|
|
60218
|
+
$lineHeight
|
|
59346
60219
|
);
|
|
59347
60220
|
}}
|
|
59348
60221
|
`;
|
|
@@ -59354,22 +60227,24 @@ const Paragraph = styled(
|
|
|
59354
60227
|
$themeType,
|
|
59355
60228
|
variant,
|
|
59356
60229
|
state,
|
|
59357
|
-
breakpoint,
|
|
59358
60230
|
color: color2,
|
|
59359
60231
|
$isFullWidth,
|
|
59360
60232
|
fontSize,
|
|
59361
|
-
fontWeight
|
|
60233
|
+
fontWeight,
|
|
60234
|
+
$letterSpacing,
|
|
60235
|
+
$lineHeight
|
|
59362
60236
|
}) => {
|
|
59363
60237
|
return getGenesisTypographyClass(
|
|
59364
60238
|
theme,
|
|
59365
60239
|
$themeType,
|
|
59366
60240
|
variant,
|
|
59367
60241
|
state,
|
|
59368
|
-
breakpoint,
|
|
59369
60242
|
color2,
|
|
59370
60243
|
$isFullWidth,
|
|
59371
60244
|
fontSize,
|
|
59372
|
-
fontWeight
|
|
60245
|
+
fontWeight,
|
|
60246
|
+
$letterSpacing,
|
|
60247
|
+
$lineHeight
|
|
59373
60248
|
);
|
|
59374
60249
|
}}
|
|
59375
60250
|
`;
|
|
@@ -59379,22 +60254,24 @@ const Text = styled(Typography$1.Text)`
|
|
|
59379
60254
|
$themeType,
|
|
59380
60255
|
variant,
|
|
59381
60256
|
state,
|
|
59382
|
-
breakpoint,
|
|
59383
60257
|
color: color2,
|
|
59384
60258
|
$isFullWidth,
|
|
59385
60259
|
fontSize,
|
|
59386
|
-
fontWeight
|
|
60260
|
+
fontWeight,
|
|
60261
|
+
$letterSpacing,
|
|
60262
|
+
$lineHeight
|
|
59387
60263
|
}) => {
|
|
59388
60264
|
return getGenesisTypographyClass(
|
|
59389
60265
|
theme,
|
|
59390
60266
|
$themeType,
|
|
59391
60267
|
variant,
|
|
59392
60268
|
state,
|
|
59393
|
-
breakpoint,
|
|
59394
60269
|
color2,
|
|
59395
60270
|
$isFullWidth,
|
|
59396
60271
|
fontSize,
|
|
59397
|
-
fontWeight
|
|
60272
|
+
fontWeight,
|
|
60273
|
+
$letterSpacing,
|
|
60274
|
+
$lineHeight
|
|
59398
60275
|
);
|
|
59399
60276
|
}}
|
|
59400
60277
|
`;
|
|
@@ -60162,14 +61039,15 @@ const ToastRow = styled.div`
|
|
|
60162
61039
|
align-items: center;
|
|
60163
61040
|
gap: ${({ theme }) => theme.sizing.Size4}px;
|
|
60164
61041
|
padding: ${({ theme }) => theme.sizing.Size3}px;
|
|
60165
|
-
background-color: ${({ theme, state }) => theme.colors.surface.default};
|
|
61042
|
+
/* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
|
|
60166
61043
|
border-left: ${({ theme, state }) => `2px solid ${theme.colors.status[state].default}`};
|
|
60167
61044
|
pointer-events: none;
|
|
60168
61045
|
cursor: default;
|
|
60169
61046
|
border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusXs}px;
|
|
60170
61047
|
height: 56px;
|
|
60171
61048
|
width: ${({ theme, state, size }) => size === "standard" ? "340px" : "240px"};
|
|
60172
|
-
background-color: ${({ theme, state }) => theme.colors.surface.default};
|
|
61049
|
+
/* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
|
|
61050
|
+
background-color: white;
|
|
60173
61051
|
box-shadow: 0px 4px 16px 0px #00000026;
|
|
60174
61052
|
`;
|
|
60175
61053
|
const ToastCloseButton = styled.button`
|
|
@@ -60369,7 +61247,7 @@ const Typography = ({
|
|
|
60369
61247
|
isDisabled,
|
|
60370
61248
|
...rest
|
|
60371
61249
|
}) => {
|
|
60372
|
-
const { breakpoint } = useGenesis();
|
|
61250
|
+
const { breakpoint, theme } = useGenesis();
|
|
60373
61251
|
if (variant.startsWith("display") || variant.startsWith("heading")) {
|
|
60374
61252
|
const level = variant.split("heading")[1] || variant.split("display")[1];
|
|
60375
61253
|
return /* @__PURE__ */ jsx(
|
|
@@ -60378,14 +61256,15 @@ const Typography = ({
|
|
|
60378
61256
|
state,
|
|
60379
61257
|
$themeType: themeType,
|
|
60380
61258
|
variant,
|
|
60381
|
-
breakpoint,
|
|
60382
61259
|
color: color2,
|
|
60383
61260
|
level: Number.parseInt(level),
|
|
60384
61261
|
$isFullWidth: isFullWidth,
|
|
60385
61262
|
style: style2,
|
|
60386
|
-
fontSize,
|
|
61263
|
+
fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
|
|
60387
61264
|
fontWeight,
|
|
60388
61265
|
disabled: isDisabled,
|
|
61266
|
+
$letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
|
|
61267
|
+
$lineHeight: theme.typography[breakpoint][variant].lineHeight,
|
|
60389
61268
|
...rest,
|
|
60390
61269
|
children: children2
|
|
60391
61270
|
}
|
|
@@ -60399,13 +61278,14 @@ const Typography = ({
|
|
|
60399
61278
|
state,
|
|
60400
61279
|
$themeType: themeType,
|
|
60401
61280
|
variant: validVariant,
|
|
60402
|
-
breakpoint,
|
|
60403
61281
|
color: color2,
|
|
60404
61282
|
$isFullWidth: isFullWidth,
|
|
60405
61283
|
style: style2,
|
|
60406
61284
|
disabled: isDisabled,
|
|
60407
|
-
fontSize,
|
|
61285
|
+
fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
|
|
60408
61286
|
fontWeight,
|
|
61287
|
+
$letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
|
|
61288
|
+
$lineHeight: theme.typography[breakpoint][variant].lineHeight,
|
|
60409
61289
|
...rest,
|
|
60410
61290
|
children: children2
|
|
60411
61291
|
}
|
|
@@ -60417,13 +61297,14 @@ const Typography = ({
|
|
|
60417
61297
|
state,
|
|
60418
61298
|
$themeType: themeType,
|
|
60419
61299
|
variant: validVariant,
|
|
60420
|
-
breakpoint,
|
|
60421
61300
|
color: color2,
|
|
60422
61301
|
$isFullWidth: isFullWidth,
|
|
60423
61302
|
style: style2,
|
|
60424
61303
|
disabled: isDisabled,
|
|
60425
|
-
fontSize,
|
|
61304
|
+
fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
|
|
60426
61305
|
fontWeight,
|
|
61306
|
+
$letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
|
|
61307
|
+
$lineHeight: theme.typography[breakpoint][variant].lineHeight,
|
|
60427
61308
|
...rest,
|
|
60428
61309
|
children: children2
|
|
60429
61310
|
}
|
|
@@ -60708,6 +61589,9 @@ function IconBase2(props) {
|
|
|
60708
61589
|
function FaCircleCheck(props) {
|
|
60709
61590
|
return GenIcon({ "attr": { "viewBox": "0 0 512 512" }, "child": [{ "tag": "path", "attr": { "d": "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, "child": [] }] })(props);
|
|
60710
61591
|
}
|
|
61592
|
+
function HiArrowLeft(props) {
|
|
61593
|
+
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
61594
|
+
}
|
|
60711
61595
|
function HiClock(props) {
|
|
60712
61596
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60713
61597
|
}
|
|
@@ -60726,6 +61610,9 @@ function HiSearch(props) {
|
|
|
60726
61610
|
function HiXCircle(props) {
|
|
60727
61611
|
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
60728
61612
|
}
|
|
61613
|
+
function HiX(props) {
|
|
61614
|
+
return GenIcon({ "attr": { "viewBox": "0 0 20 20", "fill": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z", "clipRule": "evenodd" }, "child": [] }] })(props);
|
|
61615
|
+
}
|
|
60729
61616
|
function HiOutlineAdjustments(props) {
|
|
60730
61617
|
return GenIcon({ "attr": { "fill": "none", "viewBox": "0 0 24 24", "strokeWidth": "2", "stroke": "currentColor", "aria-hidden": "true" }, "child": [{ "tag": "path", "attr": { "strokeLinecap": "round", "strokeLinejoin": "round", "d": "M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4" }, "child": [] }] })(props);
|
|
60731
61618
|
}
|
|
@@ -74314,7 +75201,6 @@ const Input2 = React__default.forwardRef(
|
|
|
74314
75201
|
size = "normal",
|
|
74315
75202
|
onChange,
|
|
74316
75203
|
value: value2,
|
|
74317
|
-
isPassword,
|
|
74318
75204
|
...rest
|
|
74319
75205
|
}, ref) => {
|
|
74320
75206
|
const addonAfter = React__default.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React__default.cloneElement(
|
|
@@ -82593,7 +83479,6 @@ const TypographyWideFontSizeBody1 = 16;
|
|
|
82593
83479
|
const TypographyMediumFontSizeBody1 = 16;
|
|
82594
83480
|
const TypographyWideFontSizeHeading3 = Size4;
|
|
82595
83481
|
const TypographyWideFontSizeSubHeading1 = 20;
|
|
82596
|
-
const TypographyWideFontSizeSubHeading2 = 16;
|
|
82597
83482
|
const TypographyWideFontSizeSubHeading3 = 14;
|
|
82598
83483
|
const TypographyWideFontSizeBody2 = 14;
|
|
82599
83484
|
const TypographyWideFontSizeBody3 = 12;
|
|
@@ -82792,9 +83677,9 @@ const wideTypography = {
|
|
|
82792
83677
|
letterSpacing: "0"
|
|
82793
83678
|
},
|
|
82794
83679
|
subHeading2: {
|
|
82795
|
-
fontSize:
|
|
82796
|
-
lineHeight: "
|
|
82797
|
-
fontWeight:
|
|
83680
|
+
fontSize: "24px",
|
|
83681
|
+
lineHeight: "32px",
|
|
83682
|
+
fontWeight: 400,
|
|
82798
83683
|
letterSpacing: "0"
|
|
82799
83684
|
},
|
|
82800
83685
|
subHeading3: {
|
|
@@ -84281,6 +85166,195 @@ const Shapes = ({ variant = "triangle", fill }) => {
|
|
|
84281
85166
|
}
|
|
84282
85167
|
return /* @__PURE__ */ jsx(Triangle, { fill, dataTestId: "shape-triangle" });
|
|
84283
85168
|
};
|
|
85169
|
+
const getGenesisDrawerClass = ({ borderRadius: borderRadius2, sizing: sizing2 }, $type = "float", placement = "right") => {
|
|
85170
|
+
const isFloat = $type === "float";
|
|
85171
|
+
const offset2 = isFloat ? 24 : 0;
|
|
85172
|
+
const edge = placement === "right" ? "right" : "left";
|
|
85173
|
+
return `
|
|
85174
|
+
.ant-drawer-content-wrapper {
|
|
85175
|
+
box-shadow: none !important;
|
|
85176
|
+
}
|
|
85177
|
+
|
|
85178
|
+
.ant-drawer-content {
|
|
85179
|
+
position: relative !important;
|
|
85180
|
+
box-shadow: none !important;
|
|
85181
|
+
${edge}: ${offset2}px !important;
|
|
85182
|
+
top: ${offset2}px !important;
|
|
85183
|
+
height: ${isFloat ? `calc(100% - ${offset2 * 2}px)` : "100%"} !important;
|
|
85184
|
+
border-radius: ${isFloat ? borderRadius2.BorderRadiusMd : 0}px !important;
|
|
85185
|
+
}
|
|
85186
|
+
|
|
85187
|
+
.ant-drawer-footer {
|
|
85188
|
+
padding: 0px !important;
|
|
85189
|
+
}
|
|
85190
|
+
|
|
85191
|
+
.ant-drawer-body {
|
|
85192
|
+
padding: 0px;
|
|
85193
|
+
overflow: hidden;
|
|
85194
|
+
display: flex;
|
|
85195
|
+
flex-direction: column;
|
|
85196
|
+
height: 100%;
|
|
85197
|
+
}
|
|
85198
|
+
`;
|
|
85199
|
+
};
|
|
85200
|
+
const StyledSidePanel = styled(Drawer2).attrs({
|
|
85201
|
+
destroyOnHidden: true,
|
|
85202
|
+
push: false
|
|
85203
|
+
})`
|
|
85204
|
+
${({ theme, $type = "float", placement = "right" }) => {
|
|
85205
|
+
if (!theme) return "";
|
|
85206
|
+
return getGenesisDrawerClass(theme, $type, placement);
|
|
85207
|
+
}}
|
|
85208
|
+
`;
|
|
85209
|
+
const ScrollableContent = styled.div`
|
|
85210
|
+
overflow-y: auto;
|
|
85211
|
+
flex: 1;
|
|
85212
|
+
display: flex;
|
|
85213
|
+
flex-direction: column;
|
|
85214
|
+
`;
|
|
85215
|
+
const getGenesisStickyHeaderClass = ({ colors: colors2 }) => `
|
|
85216
|
+
position: sticky;
|
|
85217
|
+
top: 0;
|
|
85218
|
+
z-index: 10;
|
|
85219
|
+
background-color: ${colors2?.surface?.active?.backgroundColor || "#FFFFFF"};
|
|
85220
|
+
`;
|
|
85221
|
+
const StickyHeader = styled(Tile)`
|
|
85222
|
+
${({ theme }) => {
|
|
85223
|
+
if (!theme) return "";
|
|
85224
|
+
return getGenesisStickyHeaderClass(theme);
|
|
85225
|
+
}}
|
|
85226
|
+
`;
|
|
85227
|
+
const SidePanel = ({
|
|
85228
|
+
type: type4 = "float",
|
|
85229
|
+
open,
|
|
85230
|
+
children: children2,
|
|
85231
|
+
placement = "right",
|
|
85232
|
+
header,
|
|
85233
|
+
footer: footer2
|
|
85234
|
+
}) => {
|
|
85235
|
+
const theme = useTheme$1();
|
|
85236
|
+
const {
|
|
85237
|
+
avatar,
|
|
85238
|
+
title,
|
|
85239
|
+
description,
|
|
85240
|
+
showBackBtn = false,
|
|
85241
|
+
actions: headerActions = [],
|
|
85242
|
+
onClose,
|
|
85243
|
+
onBackBtnClick = () => {
|
|
85244
|
+
alert("Back button event not defined");
|
|
85245
|
+
}
|
|
85246
|
+
} = header;
|
|
85247
|
+
const { show: showFooter = false, actions: footerActions = [] } = footer2 ?? {};
|
|
85248
|
+
const spacing = {
|
|
85249
|
+
Size1: theme?.sizing?.Size1 || 4,
|
|
85250
|
+
Size3: theme?.sizing?.Size3 || 12,
|
|
85251
|
+
Size4: theme?.sizing?.Size4 || 16,
|
|
85252
|
+
Size6: theme?.sizing?.Size6 || 24
|
|
85253
|
+
};
|
|
85254
|
+
const borderColor = theme?.colors?.surface?.active?.borderColor || "#DFDFDF";
|
|
85255
|
+
const textColor = theme?.colors?.onsurface?.active?.textColor || "#3E3E3E";
|
|
85256
|
+
const handleClose = () => {
|
|
85257
|
+
onClose();
|
|
85258
|
+
};
|
|
85259
|
+
const BackBtn = () => {
|
|
85260
|
+
return showBackBtn ? /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiArrowLeft, {}), onClick: onBackBtnClick }) : null;
|
|
85261
|
+
};
|
|
85262
|
+
const HeaderActions = () => {
|
|
85263
|
+
const showMenuBtn = headerActions.length > 1;
|
|
85264
|
+
const menuItems = headerActions.slice(1);
|
|
85265
|
+
return headerActions.length ? /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size4}px` }, children: [
|
|
85266
|
+
/* @__PURE__ */ jsx(
|
|
85267
|
+
Button$1,
|
|
85268
|
+
{
|
|
85269
|
+
...headerActions[0].btnProps,
|
|
85270
|
+
onClick: headerActions[0].onClick,
|
|
85271
|
+
children: headerActions[0].label
|
|
85272
|
+
}
|
|
85273
|
+
),
|
|
85274
|
+
showMenuBtn && /* @__PURE__ */ jsx(
|
|
85275
|
+
OverflowMenu,
|
|
85276
|
+
{
|
|
85277
|
+
trigger: /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
|
|
85278
|
+
placement: "bottom",
|
|
85279
|
+
alignment: "left",
|
|
85280
|
+
children: menuItems.map((item, index2) => /* @__PURE__ */ createElement(OverflowMenuItem, { ...item.menuItemProps, key: index2, onClick: item.onClick }, item.label))
|
|
85281
|
+
}
|
|
85282
|
+
)
|
|
85283
|
+
] }) : null;
|
|
85284
|
+
};
|
|
85285
|
+
const SidePanelHeader = () => {
|
|
85286
|
+
return /* @__PURE__ */ jsx(
|
|
85287
|
+
Tile,
|
|
85288
|
+
{
|
|
85289
|
+
isHorizontal: true,
|
|
85290
|
+
style: {
|
|
85291
|
+
overflowY: "auto",
|
|
85292
|
+
alignItems: "center",
|
|
85293
|
+
justifyContent: "space-between",
|
|
85294
|
+
padding: `${spacing.Size6}px`,
|
|
85295
|
+
borderBottom: `1px solid ${borderColor}`
|
|
85296
|
+
},
|
|
85297
|
+
children: /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: {
|
|
85298
|
+
alignItems: "flexStart",
|
|
85299
|
+
gap: `${spacing.Size4}px`,
|
|
85300
|
+
flex: 1
|
|
85301
|
+
}, children: [
|
|
85302
|
+
/* @__PURE__ */ jsx(BackBtn, {}),
|
|
85303
|
+
/* @__PURE__ */ jsxs(Tile, { style: { gap: `${spacing.Size4}px`, flex: 1, padding: `${spacing.Size1}px 0px` }, children: [
|
|
85304
|
+
/* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { gap: `${spacing.Size3}px`, alignItems: "center" }, children: [
|
|
85305
|
+
avatar && /* @__PURE__ */ jsx(Avatar, { ...avatar, size: 32 }),
|
|
85306
|
+
/* @__PURE__ */ jsx(Typography, { fontSize: "24px", variant: "heading1", fontWeight: 400, color: textColor, children: title })
|
|
85307
|
+
] }),
|
|
85308
|
+
/* @__PURE__ */ jsx(Typography, { fontSize: "16px", fontWeight: 400, color: textColor, children: description }),
|
|
85309
|
+
/* @__PURE__ */ jsx(HeaderActions, {})
|
|
85310
|
+
] }),
|
|
85311
|
+
/* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiX, {}), onClick: handleClose })
|
|
85312
|
+
] })
|
|
85313
|
+
}
|
|
85314
|
+
);
|
|
85315
|
+
};
|
|
85316
|
+
const SidePanelFooter = () => {
|
|
85317
|
+
const showMenuBtn = footerActions.length > 1;
|
|
85318
|
+
const menuItems = footerActions.slice(1);
|
|
85319
|
+
return showFooter && footerActions.length ? /* @__PURE__ */ jsxs(Tile, { isHorizontal: true, style: { padding: `${spacing.Size6}px`, gap: `${spacing.Size4}px` }, children: [
|
|
85320
|
+
/* @__PURE__ */ jsx(
|
|
85321
|
+
Button$1,
|
|
85322
|
+
{
|
|
85323
|
+
...footerActions[0].btnProps,
|
|
85324
|
+
onClick: footerActions[0].onClick,
|
|
85325
|
+
style: { flex: 1, ...footerActions[0].btnProps?.style },
|
|
85326
|
+
children: footerActions[0].label
|
|
85327
|
+
}
|
|
85328
|
+
),
|
|
85329
|
+
showMenuBtn && /* @__PURE__ */ jsx(
|
|
85330
|
+
OverflowMenu,
|
|
85331
|
+
{
|
|
85332
|
+
trigger: /* @__PURE__ */ jsx(UtilityButton, { icon: /* @__PURE__ */ jsx(HiDotsHorizontal, {}) }),
|
|
85333
|
+
placement: "top",
|
|
85334
|
+
alignment: "right",
|
|
85335
|
+
children: menuItems.map((item, index2) => /* @__PURE__ */ createElement(OverflowMenuItem, { ...item.menuItemProps, key: index2, onClick: item.onClick }, item.label))
|
|
85336
|
+
}
|
|
85337
|
+
)
|
|
85338
|
+
] }) : null;
|
|
85339
|
+
};
|
|
85340
|
+
return /* @__PURE__ */ jsxs(
|
|
85341
|
+
StyledSidePanel,
|
|
85342
|
+
{
|
|
85343
|
+
closable: false,
|
|
85344
|
+
onClose: () => {
|
|
85345
|
+
},
|
|
85346
|
+
width: 520,
|
|
85347
|
+
footer: /* @__PURE__ */ jsx(SidePanelFooter, {}),
|
|
85348
|
+
open,
|
|
85349
|
+
$type: type4,
|
|
85350
|
+
placement,
|
|
85351
|
+
children: [
|
|
85352
|
+
/* @__PURE__ */ jsx(StickyHeader, { children: /* @__PURE__ */ jsx(SidePanelHeader, {}) }),
|
|
85353
|
+
/* @__PURE__ */ jsx(ScrollableContent, { children: children2 })
|
|
85354
|
+
]
|
|
85355
|
+
}
|
|
85356
|
+
);
|
|
85357
|
+
};
|
|
84284
85358
|
const getGenesisClass$2 = ({ colors: colors2, borderRadius: borderRadius2 }) => `
|
|
84285
85359
|
&.ant-switch {
|
|
84286
85360
|
background-color: ${colors2.primary.active};
|
|
@@ -85814,7 +86888,7 @@ const GroupItem = ({
|
|
|
85814
86888
|
onGroupItemClick,
|
|
85815
86889
|
getCustomIcon
|
|
85816
86890
|
}) => {
|
|
85817
|
-
if (
|
|
86891
|
+
if (items.length === 0) return null;
|
|
85818
86892
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85819
86893
|
/* @__PURE__ */ jsx(Tooltip2, { tip: title, isAbsolutePositioned: false, children: /* @__PURE__ */ jsx(
|
|
85820
86894
|
"div",
|
|
@@ -85829,21 +86903,18 @@ const GroupItem = ({
|
|
|
85829
86903
|
children: getCustomIcon ? getCustomIcon(title) : getIcon$1(title)
|
|
85830
86904
|
}
|
|
85831
86905
|
) }),
|
|
85832
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items
|
|
85833
|
-
|
|
85834
|
-
|
|
85835
|
-
|
|
85836
|
-
|
|
85837
|
-
|
|
85838
|
-
|
|
85839
|
-
|
|
85840
|
-
|
|
85841
|
-
|
|
85842
|
-
|
|
85843
|
-
|
|
85844
|
-
!item ? "Undefined" : item?.toString()
|
|
85845
|
-
);
|
|
85846
|
-
}) })
|
|
86906
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items.map((item) => /* @__PURE__ */ jsx(
|
|
86907
|
+
Badge$1,
|
|
86908
|
+
{
|
|
86909
|
+
label: item,
|
|
86910
|
+
hasClose: true,
|
|
86911
|
+
hasIcon: false,
|
|
86912
|
+
state: "generic",
|
|
86913
|
+
size: "small",
|
|
86914
|
+
onClick: () => onGroupItemClick(title, item)
|
|
86915
|
+
},
|
|
86916
|
+
item.toString()
|
|
86917
|
+
)) })
|
|
85847
86918
|
] });
|
|
85848
86919
|
};
|
|
85849
86920
|
const GroupsRow = ({
|
|
@@ -85860,7 +86931,7 @@ const GroupsRow = ({
|
|
|
85860
86931
|
GroupItem,
|
|
85861
86932
|
{
|
|
85862
86933
|
title: group.title,
|
|
85863
|
-
items: group
|
|
86934
|
+
items: group.items,
|
|
85864
86935
|
onGroupItemClick,
|
|
85865
86936
|
getCustomIcon
|
|
85866
86937
|
},
|
|
@@ -85961,12 +87032,6 @@ const SecondaryTableControlsRow = ({
|
|
|
85961
87032
|
}
|
|
85962
87033
|
);
|
|
85963
87034
|
};
|
|
85964
|
-
const TABLE_CONTROLS_EVENTS = {
|
|
85965
|
-
GROUP_ITEM_CLICK: "groupItemClick",
|
|
85966
|
-
ORDER_CLICK: "orderClick",
|
|
85967
|
-
PRIMARY_SORT_CHANGE: "primarySortChange",
|
|
85968
|
-
INPUT_CHANGE: "inputChange"
|
|
85969
|
-
};
|
|
85970
87035
|
const TableControls = ({
|
|
85971
87036
|
primaryTableRowData,
|
|
85972
87037
|
secondaryTableRowData,
|
|
@@ -87466,8 +88531,8 @@ export {
|
|
|
87466
88531
|
SegmentedControls,
|
|
87467
88532
|
Select,
|
|
87468
88533
|
Shapes,
|
|
88534
|
+
SidePanel,
|
|
87469
88535
|
Switch,
|
|
87470
|
-
TABLE_CONTROLS_EVENTS,
|
|
87471
88536
|
TablePagination as Table,
|
|
87472
88537
|
TableWithControls,
|
|
87473
88538
|
Tabs,
|