@gobolt/genesis 0.0.7 → 0.0.9
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/README.md +18 -2
- package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
- package/dist/CheckOutlined-CeTKr6II.js +13 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
- package/dist/CloseOutlined-ClXDNn82.js +13 -0
- package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
- package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
- package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
- package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
- package/dist/Overflow-PBZD-PFm.js +360 -0
- package/dist/PurePanel-BqPLRtc2.js +203 -0
- package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
- package/dist/Typography-aGoDUl4R.js +710 -0
- package/dist/bundle.css +1204 -0
- package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
- package/dist/collapse-Dtpt-6W_.js +20 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +103 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +18 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +4 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +34 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +23 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +4 -0
- package/dist/components/Breadcrumb/styles.d.ts +27 -0
- package/dist/components/Breadcrumb/styles.js +2436 -0
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/Button/Button.js +22 -0
- package/dist/components/Button/__tests__/Button.test.js +16 -0
- package/dist/components/Button/styles.d.ts +16 -0
- package/dist/components/{atoms/button → Button}/styles.js +12 -12
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +40 -0
- package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
- package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
- package/dist/components/Form/Form.d.ts +26 -0
- package/dist/components/Form/Form.js +8 -0
- package/dist/components/Form/__stories__/FormStory.js +93 -0
- package/dist/components/Form/__tests__/form.test.d.ts +1 -0
- package/dist/components/Form/__tests__/form.test.js +18 -0
- package/dist/components/Form/index.js +4 -0
- package/dist/components/Form/styles.d.ts +3 -0
- package/dist/components/Form/styles.js +5 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +19 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +24 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
- package/dist/components/Input/styles.js +529 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +78 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +42 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +4 -0
- package/dist/components/Message/styles.d.ts +8 -0
- package/dist/components/Message/styles.js +41 -0
- package/dist/components/Notification/Notification.d.ts +17 -0
- package/dist/components/Notification/Notification.js +1370 -0
- package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
- package/dist/components/Notification/NotificationRightChevron.js +23 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +15 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +4 -0
- package/dist/components/Notification/styles.d.ts +16 -0
- package/dist/components/Notification/styles.js +65 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +28 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +33 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/Select/DropdownChevron.d.ts +2 -0
- package/dist/components/Select/DropdownChevron.js +23 -0
- package/dist/components/Select/Select.d.ts +16 -0
- package/dist/components/Select/Select.js +36 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
- package/dist/components/Select/styles.d.ts +32 -0
- package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +19 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +18 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +4 -0
- package/dist/components/Toast/styles.d.ts +10 -0
- package/dist/components/Toast/styles.js +54 -0
- package/dist/components/Typography/Typography.d.ts +15 -0
- package/dist/components/Typography/Typography.js +8 -0
- package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +23 -0
- package/dist/components/Typography/index.js +4 -0
- package/dist/components/Typography/styles.d.ts +21 -0
- package/dist/components/Typography/styles.js +48 -0
- package/dist/components/index.d.ts +26 -14
- package/dist/components/index.js +23 -13
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
- package/dist/genesis/GenesisThemeBreakdown.js +54 -24
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +3 -4
- package/dist/genesis/styles.js +1095 -2186
- package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
- package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
- package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
- package/dist/index-C8haFnXI.js +1112 -0
- package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
- package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
- package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
- package/dist/index-oK7z6jnz.js +22795 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
- package/dist/providers/GenesisProvider.js +9 -5
- package/dist/providers/ThemeProvider.d.ts +2 -2
- package/dist/providers/ThemeProvider.js +4 -1
- package/dist/providers/ToastProvider.d.ts +13 -0
- package/dist/providers/ToastProvider.js +20 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +4 -4
- package/dist/providers/useGenesis.d.ts +7 -0
- package/dist/providers/useGenesis.js +6 -0
- package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
- package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
- package/dist/styles/design-tokens/variables.d.ts +17 -17
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +13 -29
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +461 -277
- package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
- package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
- package/dist/test/setup.js +2 -1
- package/dist/useLocale-DT-z_vQ6.js +16 -0
- package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
- package/dist/warning-C63HNL9U.js +789 -0
- package/package.json +10 -4
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/components/atoms/button/Button.d.ts +0 -12
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/styles.d.ts +0 -12
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.d.ts +0 -11
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/styles.d.ts +0 -15
- package/dist/components/atoms/typography/Typography.d.ts +0 -11
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
- package/dist/components/molecules/form/Form.d.ts +0 -15
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/styles/theme/global-styles.d.ts +0 -1
- package/dist/styles/theme/global-styles.js +0 -35
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/index.js +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.js +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.js +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
package/dist/genesis/styles.js
CHANGED
|
@@ -1,63 +1,72 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { T as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { o as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { R as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { d as Yt } from "../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import { T as wa } from "../index-C0SmxWLS.js";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as be, useMemo as Qt } from "react";
|
|
5
|
+
import { a as he, c as E, f as B, _ as le, d as ft, h as te, e as ke, w as Oa } from "../warning-C63HNL9U.js";
|
|
6
|
+
import { o as Ve, u as Bt, t as Na } from "../isVisible-A-IfeFoT.js";
|
|
7
|
+
import { g as gt, m as mt, q as u, C as ve, x as ct, w as Dt, c as Ta, b as Ra, j as Ia, B as za, v as bt, p as Zt, o as vt, Y as pt, I as dt, F as Ke } from "../index-oK7z6jnz.js";
|
|
8
|
+
import { a as Jt } from "../Compact-CGY560JF.js";
|
|
9
|
+
import { K as Ma, b as La, g as ja } from "../index-CfDY25LP.js";
|
|
10
|
+
import { R as Ba } from "../CloseOutlined-ClXDNn82.js";
|
|
11
|
+
import { E as Da, M as Aa, b as Ha, R as Ga } from "../index-C8haFnXI.js";
|
|
12
|
+
import { I as Wa } from "../AntdIcon-BoLh1dP8.js";
|
|
13
|
+
import { R as rt } from "../index-bKlRxQp4.js";
|
|
14
|
+
import { K as Ce } from "../KeyCode-DM2sFh3-.js";
|
|
15
|
+
import { u as ka } from "../context-BMW3aJEf.js";
|
|
16
|
+
import { i as At } from "../Overflow-PBZD-PFm.js";
|
|
17
|
+
var Va = { 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" }, Ka = function(t, a) {
|
|
18
|
+
return /* @__PURE__ */ l.createElement(Wa, he({}, t, {
|
|
19
|
+
ref: a,
|
|
20
|
+
icon: Va
|
|
21
|
+
}));
|
|
22
|
+
}, ea = /* @__PURE__ */ l.forwardRef(Ka);
|
|
23
|
+
process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
|
|
24
|
+
const qe = (e) => {
|
|
16
25
|
const {
|
|
17
26
|
prefixCls: t,
|
|
18
27
|
className: a,
|
|
19
28
|
style: n,
|
|
20
29
|
size: r,
|
|
21
30
|
shape: o
|
|
22
|
-
} = e,
|
|
31
|
+
} = e, s = E({
|
|
23
32
|
[`${t}-lg`]: r === "large",
|
|
24
33
|
[`${t}-sm`]: r === "small"
|
|
25
|
-
}),
|
|
34
|
+
}), i = E({
|
|
26
35
|
[`${t}-circle`]: o === "circle",
|
|
27
36
|
[`${t}-square`]: o === "square",
|
|
28
37
|
[`${t}-round`]: o === "round"
|
|
29
|
-
}), c =
|
|
38
|
+
}), c = l.useMemo(() => typeof r == "number" ? {
|
|
30
39
|
width: r,
|
|
31
40
|
height: r,
|
|
32
41
|
lineHeight: `${r}px`
|
|
33
42
|
} : {}, [r]);
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
className:
|
|
43
|
+
return /* @__PURE__ */ l.createElement("span", {
|
|
44
|
+
className: E(t, s, i, a),
|
|
36
45
|
style: Object.assign(Object.assign({}, c), n)
|
|
37
46
|
});
|
|
38
|
-
},
|
|
47
|
+
}, qa = new Ma("ant-skeleton-loading", {
|
|
39
48
|
"0%": {
|
|
40
49
|
backgroundPosition: "100% 50%"
|
|
41
50
|
},
|
|
42
51
|
"100%": {
|
|
43
52
|
backgroundPosition: "0 50%"
|
|
44
53
|
}
|
|
45
|
-
}),
|
|
54
|
+
}), Fe = (e) => ({
|
|
46
55
|
height: e,
|
|
47
|
-
lineHeight:
|
|
48
|
-
}),
|
|
56
|
+
lineHeight: u(e)
|
|
57
|
+
}), Ie = (e) => Object.assign({
|
|
49
58
|
width: e
|
|
50
|
-
},
|
|
59
|
+
}, Fe(e)), Fa = (e) => ({
|
|
51
60
|
background: e.skeletonLoadingBackground,
|
|
52
61
|
backgroundSize: "400% 100%",
|
|
53
|
-
animationName:
|
|
62
|
+
animationName: qa,
|
|
54
63
|
animationDuration: e.skeletonLoadingMotionDuration,
|
|
55
64
|
animationTimingFunction: "ease",
|
|
56
65
|
animationIterationCount: "infinite"
|
|
57
|
-
}),
|
|
66
|
+
}), it = (e, t) => Object.assign({
|
|
58
67
|
width: t(e).mul(5).equal(),
|
|
59
68
|
minWidth: t(e).mul(5).equal()
|
|
60
|
-
},
|
|
69
|
+
}, Fe(e)), Xa = (e) => {
|
|
61
70
|
const {
|
|
62
71
|
skeletonAvatarCls: t,
|
|
63
72
|
gradientFromColor: a,
|
|
@@ -70,36 +79,36 @@ const nn = (e) => {
|
|
|
70
79
|
display: "inline-block",
|
|
71
80
|
verticalAlign: "top",
|
|
72
81
|
background: a
|
|
73
|
-
},
|
|
82
|
+
}, Ie(n)),
|
|
74
83
|
[`${t}${t}-circle`]: {
|
|
75
84
|
borderRadius: "50%"
|
|
76
85
|
},
|
|
77
|
-
[`${t}${t}-lg`]: Object.assign({},
|
|
78
|
-
[`${t}${t}-sm`]: Object.assign({},
|
|
86
|
+
[`${t}${t}-lg`]: Object.assign({}, Ie(r)),
|
|
87
|
+
[`${t}${t}-sm`]: Object.assign({}, Ie(o))
|
|
79
88
|
};
|
|
80
|
-
},
|
|
89
|
+
}, Ua = (e) => {
|
|
81
90
|
const {
|
|
82
91
|
controlHeight: t,
|
|
83
92
|
borderRadiusSM: a,
|
|
84
93
|
skeletonInputCls: n,
|
|
85
94
|
controlHeightLG: r,
|
|
86
95
|
controlHeightSM: o,
|
|
87
|
-
gradientFromColor:
|
|
88
|
-
calc:
|
|
96
|
+
gradientFromColor: s,
|
|
97
|
+
calc: i
|
|
89
98
|
} = e;
|
|
90
99
|
return {
|
|
91
100
|
[n]: Object.assign({
|
|
92
101
|
display: "inline-block",
|
|
93
102
|
verticalAlign: "top",
|
|
94
|
-
background:
|
|
103
|
+
background: s,
|
|
95
104
|
borderRadius: a
|
|
96
|
-
},
|
|
97
|
-
[`${n}-lg`]: Object.assign({},
|
|
98
|
-
[`${n}-sm`]: Object.assign({},
|
|
105
|
+
}, it(t, i)),
|
|
106
|
+
[`${n}-lg`]: Object.assign({}, it(r, i)),
|
|
107
|
+
[`${n}-sm`]: Object.assign({}, it(o, i))
|
|
99
108
|
};
|
|
100
|
-
},
|
|
109
|
+
}, Ht = (e) => Object.assign({
|
|
101
110
|
width: e
|
|
102
|
-
},
|
|
111
|
+
}, Fe(e)), Ya = (e) => {
|
|
103
112
|
const {
|
|
104
113
|
skeletonImageCls: t,
|
|
105
114
|
imageSizeBase: a,
|
|
@@ -115,11 +124,11 @@ const nn = (e) => {
|
|
|
115
124
|
verticalAlign: "middle",
|
|
116
125
|
background: n,
|
|
117
126
|
borderRadius: r
|
|
118
|
-
},
|
|
127
|
+
}, Ht(o(a).mul(2).equal())), {
|
|
119
128
|
[`${t}-path`]: {
|
|
120
129
|
fill: "#bfbfbf"
|
|
121
130
|
},
|
|
122
|
-
[`${t}-svg`]: Object.assign(Object.assign({},
|
|
131
|
+
[`${t}-svg`]: Object.assign(Object.assign({}, Ht(a)), {
|
|
123
132
|
maxWidth: o(a).mul(4).equal(),
|
|
124
133
|
maxHeight: o(a).mul(4).equal()
|
|
125
134
|
}),
|
|
@@ -131,7 +140,7 @@ const nn = (e) => {
|
|
|
131
140
|
borderRadius: "50%"
|
|
132
141
|
}
|
|
133
142
|
};
|
|
134
|
-
},
|
|
143
|
+
}, ot = (e, t, a) => {
|
|
135
144
|
const {
|
|
136
145
|
skeletonButtonCls: n
|
|
137
146
|
} = e;
|
|
@@ -145,54 +154,54 @@ const nn = (e) => {
|
|
|
145
154
|
borderRadius: t
|
|
146
155
|
}
|
|
147
156
|
};
|
|
148
|
-
},
|
|
157
|
+
}, lt = (e, t) => Object.assign({
|
|
149
158
|
width: t(e).mul(2).equal(),
|
|
150
159
|
minWidth: t(e).mul(2).equal()
|
|
151
|
-
},
|
|
160
|
+
}, Fe(e)), Qa = (e) => {
|
|
152
161
|
const {
|
|
153
162
|
borderRadiusSM: t,
|
|
154
163
|
skeletonButtonCls: a,
|
|
155
164
|
controlHeight: n,
|
|
156
165
|
controlHeightLG: r,
|
|
157
166
|
controlHeightSM: o,
|
|
158
|
-
gradientFromColor:
|
|
159
|
-
calc:
|
|
167
|
+
gradientFromColor: s,
|
|
168
|
+
calc: i
|
|
160
169
|
} = e;
|
|
161
170
|
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
162
171
|
[a]: Object.assign({
|
|
163
172
|
display: "inline-block",
|
|
164
173
|
verticalAlign: "top",
|
|
165
|
-
background:
|
|
174
|
+
background: s,
|
|
166
175
|
borderRadius: t,
|
|
167
|
-
width:
|
|
168
|
-
minWidth:
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
[`${a}-lg`]: Object.assign({},
|
|
172
|
-
}),
|
|
173
|
-
[`${a}-sm`]: Object.assign({},
|
|
174
|
-
}),
|
|
175
|
-
},
|
|
176
|
+
width: i(n).mul(2).equal(),
|
|
177
|
+
minWidth: i(n).mul(2).equal()
|
|
178
|
+
}, lt(n, i))
|
|
179
|
+
}, ot(e, n, a)), {
|
|
180
|
+
[`${a}-lg`]: Object.assign({}, lt(r, i))
|
|
181
|
+
}), ot(e, r, `${a}-lg`)), {
|
|
182
|
+
[`${a}-sm`]: Object.assign({}, lt(o, i))
|
|
183
|
+
}), ot(e, o, `${a}-sm`));
|
|
184
|
+
}, Za = (e) => {
|
|
176
185
|
const {
|
|
177
186
|
componentCls: t,
|
|
178
187
|
skeletonAvatarCls: a,
|
|
179
188
|
skeletonTitleCls: n,
|
|
180
189
|
skeletonParagraphCls: r,
|
|
181
190
|
skeletonButtonCls: o,
|
|
182
|
-
skeletonInputCls:
|
|
183
|
-
skeletonImageCls:
|
|
191
|
+
skeletonInputCls: s,
|
|
192
|
+
skeletonImageCls: i,
|
|
184
193
|
controlHeight: c,
|
|
185
|
-
controlHeightLG:
|
|
186
|
-
controlHeightSM:
|
|
187
|
-
gradientFromColor:
|
|
188
|
-
padding:
|
|
189
|
-
marginSM:
|
|
190
|
-
borderRadius:
|
|
191
|
-
titleHeight:
|
|
192
|
-
blockRadius:
|
|
193
|
-
paragraphLiHeight:
|
|
194
|
-
controlHeightXS:
|
|
195
|
-
paragraphMarginTop:
|
|
194
|
+
controlHeightLG: d,
|
|
195
|
+
controlHeightSM: m,
|
|
196
|
+
gradientFromColor: g,
|
|
197
|
+
padding: v,
|
|
198
|
+
marginSM: C,
|
|
199
|
+
borderRadius: N,
|
|
200
|
+
titleHeight: p,
|
|
201
|
+
blockRadius: O,
|
|
202
|
+
paragraphLiHeight: y,
|
|
203
|
+
controlHeightXS: S,
|
|
204
|
+
paragraphMarginTop: P
|
|
196
205
|
} = e;
|
|
197
206
|
return {
|
|
198
207
|
[t]: {
|
|
@@ -200,19 +209,19 @@ const nn = (e) => {
|
|
|
200
209
|
width: "100%",
|
|
201
210
|
[`${t}-header`]: {
|
|
202
211
|
display: "table-cell",
|
|
203
|
-
paddingInlineEnd:
|
|
212
|
+
paddingInlineEnd: v,
|
|
204
213
|
verticalAlign: "top",
|
|
205
214
|
// Avatar
|
|
206
215
|
[a]: Object.assign({
|
|
207
216
|
display: "inline-block",
|
|
208
217
|
verticalAlign: "top",
|
|
209
|
-
background:
|
|
210
|
-
},
|
|
218
|
+
background: g
|
|
219
|
+
}, Ie(c)),
|
|
211
220
|
[`${a}-circle`]: {
|
|
212
221
|
borderRadius: "50%"
|
|
213
222
|
},
|
|
214
|
-
[`${a}-lg`]: Object.assign({},
|
|
215
|
-
[`${a}-sm`]: Object.assign({},
|
|
223
|
+
[`${a}-lg`]: Object.assign({}, Ie(d)),
|
|
224
|
+
[`${a}-sm`]: Object.assign({}, Ie(m))
|
|
216
225
|
},
|
|
217
226
|
[`${t}-content`]: {
|
|
218
227
|
display: "table-cell",
|
|
@@ -221,11 +230,11 @@ const nn = (e) => {
|
|
|
221
230
|
// Title
|
|
222
231
|
[n]: {
|
|
223
232
|
width: "100%",
|
|
224
|
-
height:
|
|
225
|
-
background:
|
|
226
|
-
borderRadius:
|
|
233
|
+
height: p,
|
|
234
|
+
background: g,
|
|
235
|
+
borderRadius: O,
|
|
227
236
|
[`+ ${r}`]: {
|
|
228
|
-
marginBlockStart:
|
|
237
|
+
marginBlockStart: m
|
|
229
238
|
}
|
|
230
239
|
},
|
|
231
240
|
// paragraph
|
|
@@ -233,12 +242,12 @@ const nn = (e) => {
|
|
|
233
242
|
padding: 0,
|
|
234
243
|
"> li": {
|
|
235
244
|
width: "100%",
|
|
236
|
-
height:
|
|
245
|
+
height: y,
|
|
237
246
|
listStyle: "none",
|
|
238
|
-
background:
|
|
239
|
-
borderRadius:
|
|
247
|
+
background: g,
|
|
248
|
+
borderRadius: O,
|
|
240
249
|
"+ li": {
|
|
241
|
-
marginBlockStart:
|
|
250
|
+
marginBlockStart: S
|
|
242
251
|
}
|
|
243
252
|
}
|
|
244
253
|
},
|
|
@@ -248,16 +257,16 @@ const nn = (e) => {
|
|
|
248
257
|
},
|
|
249
258
|
[`&-round ${t}-content`]: {
|
|
250
259
|
[`${n}, ${r} > li`]: {
|
|
251
|
-
borderRadius:
|
|
260
|
+
borderRadius: N
|
|
252
261
|
}
|
|
253
262
|
}
|
|
254
263
|
},
|
|
255
264
|
[`${t}-with-avatar ${t}-content`]: {
|
|
256
265
|
// Title
|
|
257
266
|
[n]: {
|
|
258
|
-
marginBlockStart:
|
|
267
|
+
marginBlockStart: C,
|
|
259
268
|
[`+ ${r}`]: {
|
|
260
|
-
marginBlockStart:
|
|
269
|
+
marginBlockStart: P
|
|
261
270
|
}
|
|
262
271
|
}
|
|
263
272
|
},
|
|
@@ -265,14 +274,14 @@ const nn = (e) => {
|
|
|
265
274
|
[`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
266
275
|
display: "inline-block",
|
|
267
276
|
width: "auto"
|
|
268
|
-
},
|
|
277
|
+
}, Qa(e)), Xa(e)), Ua(e)), Ya(e)),
|
|
269
278
|
// Skeleton Block Button, Input
|
|
270
279
|
[`${t}${t}-block`]: {
|
|
271
280
|
width: "100%",
|
|
272
281
|
[o]: {
|
|
273
282
|
width: "100%"
|
|
274
283
|
},
|
|
275
|
-
[
|
|
284
|
+
[s]: {
|
|
276
285
|
width: "100%"
|
|
277
286
|
}
|
|
278
287
|
},
|
|
@@ -283,12 +292,12 @@ const nn = (e) => {
|
|
|
283
292
|
${r} > li,
|
|
284
293
|
${a},
|
|
285
294
|
${o},
|
|
286
|
-
${
|
|
287
|
-
${
|
|
288
|
-
`]: Object.assign({},
|
|
295
|
+
${s},
|
|
296
|
+
${i}
|
|
297
|
+
`]: Object.assign({}, Fa(e))
|
|
289
298
|
}
|
|
290
299
|
};
|
|
291
|
-
},
|
|
300
|
+
}, Ja = (e) => {
|
|
292
301
|
const {
|
|
293
302
|
colorFillContent: t,
|
|
294
303
|
colorFill: a
|
|
@@ -303,11 +312,11 @@ const nn = (e) => {
|
|
|
303
312
|
paragraphMarginTop: e.marginLG + e.marginXXS,
|
|
304
313
|
paragraphLiHeight: e.controlHeight / 2
|
|
305
314
|
};
|
|
306
|
-
},
|
|
315
|
+
}, ze = gt("Skeleton", (e) => {
|
|
307
316
|
const {
|
|
308
317
|
componentCls: t,
|
|
309
318
|
calc: a
|
|
310
|
-
} = e, n =
|
|
319
|
+
} = e, n = mt(e, {
|
|
311
320
|
skeletonAvatarCls: `${t}-avatar`,
|
|
312
321
|
skeletonTitleCls: `${t}-title`,
|
|
313
322
|
skeletonParagraphCls: `${t}-paragraph`,
|
|
@@ -320,50 +329,50 @@ const nn = (e) => {
|
|
|
320
329
|
skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
|
|
321
330
|
skeletonLoadingMotionDuration: "1.4s"
|
|
322
331
|
});
|
|
323
|
-
return [
|
|
324
|
-
},
|
|
332
|
+
return [Za(n)];
|
|
333
|
+
}, Ja, {
|
|
325
334
|
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
326
|
-
}),
|
|
335
|
+
}), en = (e) => {
|
|
327
336
|
const {
|
|
328
337
|
prefixCls: t,
|
|
329
338
|
className: a,
|
|
330
339
|
rootClassName: n,
|
|
331
340
|
active: r,
|
|
332
341
|
shape: o = "circle",
|
|
333
|
-
size:
|
|
342
|
+
size: s = "default"
|
|
334
343
|
} = e, {
|
|
335
|
-
getPrefixCls:
|
|
336
|
-
} =
|
|
344
|
+
getPrefixCls: i
|
|
345
|
+
} = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
|
|
337
346
|
[`${c}-active`]: r
|
|
338
|
-
}, a, n,
|
|
339
|
-
return
|
|
340
|
-
className:
|
|
341
|
-
}, /* @__PURE__ */
|
|
347
|
+
}, a, n, m, g);
|
|
348
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
349
|
+
className: C
|
|
350
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
342
351
|
prefixCls: `${c}-avatar`,
|
|
343
352
|
shape: o,
|
|
344
|
-
size:
|
|
345
|
-
},
|
|
346
|
-
},
|
|
353
|
+
size: s
|
|
354
|
+
}, v))));
|
|
355
|
+
}, tn = (e) => {
|
|
347
356
|
const {
|
|
348
357
|
prefixCls: t,
|
|
349
358
|
className: a,
|
|
350
359
|
rootClassName: n,
|
|
351
360
|
active: r,
|
|
352
361
|
block: o = !1,
|
|
353
|
-
size:
|
|
362
|
+
size: s = "default"
|
|
354
363
|
} = e, {
|
|
355
|
-
getPrefixCls:
|
|
356
|
-
} =
|
|
364
|
+
getPrefixCls: i
|
|
365
|
+
} = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
|
|
357
366
|
[`${c}-active`]: r,
|
|
358
367
|
[`${c}-block`]: o
|
|
359
|
-
}, a, n,
|
|
360
|
-
return
|
|
361
|
-
className:
|
|
362
|
-
}, /* @__PURE__ */
|
|
368
|
+
}, a, n, m, g);
|
|
369
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
370
|
+
className: C
|
|
371
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
363
372
|
prefixCls: `${c}-button`,
|
|
364
|
-
size:
|
|
365
|
-
},
|
|
366
|
-
},
|
|
373
|
+
size: s
|
|
374
|
+
}, v))));
|
|
375
|
+
}, an = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", nn = (e) => {
|
|
367
376
|
const {
|
|
368
377
|
prefixCls: t,
|
|
369
378
|
className: a,
|
|
@@ -371,63 +380,63 @@ const nn = (e) => {
|
|
|
371
380
|
style: r,
|
|
372
381
|
active: o
|
|
373
382
|
} = e, {
|
|
374
|
-
getPrefixCls:
|
|
375
|
-
} =
|
|
376
|
-
[`${
|
|
377
|
-
}, a, n,
|
|
378
|
-
return c(/* @__PURE__ */
|
|
379
|
-
className:
|
|
380
|
-
}, /* @__PURE__ */
|
|
381
|
-
className:
|
|
383
|
+
getPrefixCls: s
|
|
384
|
+
} = l.useContext(ve), i = s("skeleton", t), [c, d, m] = ze(i), g = E(i, `${i}-element`, {
|
|
385
|
+
[`${i}-active`]: o
|
|
386
|
+
}, a, n, d, m);
|
|
387
|
+
return c(/* @__PURE__ */ l.createElement("div", {
|
|
388
|
+
className: g
|
|
389
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
390
|
+
className: E(`${i}-image`, a),
|
|
382
391
|
style: r
|
|
383
|
-
}, /* @__PURE__ */
|
|
392
|
+
}, /* @__PURE__ */ l.createElement("svg", {
|
|
384
393
|
viewBox: "0 0 1098 1024",
|
|
385
394
|
xmlns: "http://www.w3.org/2000/svg",
|
|
386
|
-
className: `${
|
|
387
|
-
}, /* @__PURE__ */
|
|
388
|
-
d:
|
|
389
|
-
className: `${
|
|
395
|
+
className: `${i}-image-svg`
|
|
396
|
+
}, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
|
|
397
|
+
d: an,
|
|
398
|
+
className: `${i}-image-path`
|
|
390
399
|
})))));
|
|
391
|
-
},
|
|
400
|
+
}, rn = (e) => {
|
|
392
401
|
const {
|
|
393
402
|
prefixCls: t,
|
|
394
403
|
className: a,
|
|
395
404
|
rootClassName: n,
|
|
396
405
|
active: r,
|
|
397
406
|
block: o,
|
|
398
|
-
size:
|
|
407
|
+
size: s = "default"
|
|
399
408
|
} = e, {
|
|
400
|
-
getPrefixCls:
|
|
401
|
-
} =
|
|
409
|
+
getPrefixCls: i
|
|
410
|
+
} = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
|
|
402
411
|
[`${c}-active`]: r,
|
|
403
412
|
[`${c}-block`]: o
|
|
404
|
-
}, a, n,
|
|
405
|
-
return
|
|
406
|
-
className:
|
|
407
|
-
}, /* @__PURE__ */
|
|
413
|
+
}, a, n, m, g);
|
|
414
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
415
|
+
className: C
|
|
416
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({
|
|
408
417
|
prefixCls: `${c}-input`,
|
|
409
|
-
size:
|
|
410
|
-
},
|
|
411
|
-
},
|
|
418
|
+
size: s
|
|
419
|
+
}, v))));
|
|
420
|
+
}, on = (e) => {
|
|
412
421
|
const {
|
|
413
422
|
prefixCls: t,
|
|
414
423
|
className: a,
|
|
415
424
|
rootClassName: n,
|
|
416
425
|
style: r,
|
|
417
426
|
active: o,
|
|
418
|
-
children:
|
|
427
|
+
children: s
|
|
419
428
|
} = e, {
|
|
420
|
-
getPrefixCls:
|
|
421
|
-
} =
|
|
429
|
+
getPrefixCls: i
|
|
430
|
+
} = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = E(c, `${c}-element`, {
|
|
422
431
|
[`${c}-active`]: o
|
|
423
|
-
},
|
|
424
|
-
return
|
|
425
|
-
className:
|
|
426
|
-
}, /* @__PURE__ */
|
|
427
|
-
className:
|
|
432
|
+
}, m, a, n, g);
|
|
433
|
+
return d(/* @__PURE__ */ l.createElement("div", {
|
|
434
|
+
className: v
|
|
435
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
436
|
+
className: E(`${c}-image`, a),
|
|
428
437
|
style: r
|
|
429
|
-
},
|
|
430
|
-
},
|
|
438
|
+
}, s)));
|
|
439
|
+
}, ln = (e, t) => {
|
|
431
440
|
const {
|
|
432
441
|
width: a,
|
|
433
442
|
rows: n = 2
|
|
@@ -436,26 +445,26 @@ const nn = (e) => {
|
|
|
436
445
|
return a[e];
|
|
437
446
|
if (n - 1 === e)
|
|
438
447
|
return a;
|
|
439
|
-
},
|
|
448
|
+
}, sn = (e) => {
|
|
440
449
|
const {
|
|
441
450
|
prefixCls: t,
|
|
442
451
|
className: a,
|
|
443
452
|
style: n,
|
|
444
453
|
rows: r
|
|
445
|
-
} = e, o =
|
|
454
|
+
} = e, o = ct(new Array(r)).map((s, i) => (
|
|
446
455
|
// eslint-disable-next-line react/no-array-index-key
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
key:
|
|
456
|
+
/* @__PURE__ */ l.createElement("li", {
|
|
457
|
+
key: i,
|
|
449
458
|
style: {
|
|
450
|
-
width:
|
|
459
|
+
width: ln(i, e)
|
|
451
460
|
}
|
|
452
461
|
})
|
|
453
462
|
));
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
className:
|
|
463
|
+
return /* @__PURE__ */ l.createElement("ul", {
|
|
464
|
+
className: E(t, a),
|
|
456
465
|
style: n
|
|
457
466
|
}, o);
|
|
458
|
-
},
|
|
467
|
+
}, cn = (e) => {
|
|
459
468
|
let {
|
|
460
469
|
prefixCls: t,
|
|
461
470
|
className: a,
|
|
@@ -464,18 +473,18 @@ const nn = (e) => {
|
|
|
464
473
|
} = e;
|
|
465
474
|
return (
|
|
466
475
|
// biome-ignore lint/a11y/useHeadingContent: HOC here
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
className:
|
|
476
|
+
/* @__PURE__ */ l.createElement("h3", {
|
|
477
|
+
className: E(t, a),
|
|
469
478
|
style: Object.assign({
|
|
470
479
|
width: n
|
|
471
480
|
}, r)
|
|
472
481
|
})
|
|
473
482
|
);
|
|
474
483
|
};
|
|
475
|
-
function
|
|
484
|
+
function st(e) {
|
|
476
485
|
return e && typeof e == "object" ? e : {};
|
|
477
486
|
}
|
|
478
|
-
function
|
|
487
|
+
function dn(e, t) {
|
|
479
488
|
return e && !t ? {
|
|
480
489
|
size: "large",
|
|
481
490
|
shape: "square"
|
|
@@ -484,1378 +493,278 @@ function Tr(e, t) {
|
|
|
484
493
|
shape: "circle"
|
|
485
494
|
};
|
|
486
495
|
}
|
|
487
|
-
function
|
|
496
|
+
function un(e, t) {
|
|
488
497
|
return !e && t ? {
|
|
489
498
|
width: "38%"
|
|
490
499
|
} : e && t ? {
|
|
491
500
|
width: "50%"
|
|
492
501
|
} : {};
|
|
493
502
|
}
|
|
494
|
-
function
|
|
503
|
+
function fn(e, t) {
|
|
495
504
|
const a = {};
|
|
496
505
|
return (!e || !t) && (a.width = "61%"), !e && t ? a.rows = 3 : a.rows = 2, a;
|
|
497
506
|
}
|
|
498
|
-
const
|
|
507
|
+
const Ee = (e) => {
|
|
499
508
|
const {
|
|
500
509
|
prefixCls: t,
|
|
501
510
|
loading: a,
|
|
502
511
|
className: n,
|
|
503
512
|
rootClassName: r,
|
|
504
513
|
style: o,
|
|
505
|
-
children:
|
|
506
|
-
avatar:
|
|
514
|
+
children: s,
|
|
515
|
+
avatar: i = !1,
|
|
507
516
|
title: c = !0,
|
|
508
|
-
paragraph:
|
|
509
|
-
active:
|
|
510
|
-
round:
|
|
517
|
+
paragraph: d = !0,
|
|
518
|
+
active: m,
|
|
519
|
+
round: g
|
|
511
520
|
} = e, {
|
|
512
|
-
getPrefixCls:
|
|
513
|
-
direction:
|
|
514
|
-
skeleton:
|
|
515
|
-
} =
|
|
521
|
+
getPrefixCls: v,
|
|
522
|
+
direction: C,
|
|
523
|
+
skeleton: N
|
|
524
|
+
} = l.useContext(ve), p = v("skeleton", t), [O, y, S] = ze(p);
|
|
516
525
|
if (a || !("loading" in e)) {
|
|
517
|
-
const
|
|
518
|
-
let
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
prefixCls: `${
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
className: `${
|
|
525
|
-
}, /* @__PURE__ */
|
|
526
|
+
const P = !!i, z = !!c, j = !!d;
|
|
527
|
+
let G;
|
|
528
|
+
if (P) {
|
|
529
|
+
const w = Object.assign(Object.assign({
|
|
530
|
+
prefixCls: `${p}-avatar`
|
|
531
|
+
}, dn(z, j)), st(i));
|
|
532
|
+
G = /* @__PURE__ */ l.createElement("div", {
|
|
533
|
+
className: `${p}-header`
|
|
534
|
+
}, /* @__PURE__ */ l.createElement(qe, Object.assign({}, w)));
|
|
526
535
|
}
|
|
527
|
-
let
|
|
528
|
-
if (
|
|
529
|
-
let
|
|
530
|
-
if (
|
|
531
|
-
const
|
|
532
|
-
prefixCls: `${
|
|
533
|
-
},
|
|
534
|
-
|
|
536
|
+
let D;
|
|
537
|
+
if (z || j) {
|
|
538
|
+
let w;
|
|
539
|
+
if (z) {
|
|
540
|
+
const b = Object.assign(Object.assign({
|
|
541
|
+
prefixCls: `${p}-title`
|
|
542
|
+
}, un(P, j)), st(c));
|
|
543
|
+
w = /* @__PURE__ */ l.createElement(cn, Object.assign({}, b));
|
|
535
544
|
}
|
|
536
545
|
let T;
|
|
537
|
-
if (
|
|
538
|
-
const
|
|
539
|
-
prefixCls: `${
|
|
540
|
-
},
|
|
541
|
-
T = /* @__PURE__ */
|
|
546
|
+
if (j) {
|
|
547
|
+
const b = Object.assign(Object.assign({
|
|
548
|
+
prefixCls: `${p}-paragraph`
|
|
549
|
+
}, fn(P, z)), st(d));
|
|
550
|
+
T = /* @__PURE__ */ l.createElement(sn, Object.assign({}, b));
|
|
542
551
|
}
|
|
543
|
-
|
|
544
|
-
className: `${
|
|
545
|
-
},
|
|
546
|
-
}
|
|
547
|
-
const O = D(g, {
|
|
548
|
-
[`${g}-with-avatar`]: b,
|
|
549
|
-
[`${g}-active`]: v,
|
|
550
|
-
[`${g}-rtl`]: h === "rtl",
|
|
551
|
-
[`${g}-round`]: d
|
|
552
|
-
}, S == null ? void 0 : S.className, n, r, p, C);
|
|
553
|
-
return x(/* @__PURE__ */ i.createElement("div", {
|
|
554
|
-
className: O,
|
|
555
|
-
style: Object.assign(Object.assign({}, S == null ? void 0 : S.style), o)
|
|
556
|
-
}, P, M));
|
|
557
|
-
}
|
|
558
|
-
return l ?? null;
|
|
559
|
-
};
|
|
560
|
-
ot.Button = wr;
|
|
561
|
-
ot.Avatar = Er;
|
|
562
|
-
ot.Input = Ir;
|
|
563
|
-
ot.Image = Pr;
|
|
564
|
-
ot.Node = Rr;
|
|
565
|
-
process.env.NODE_ENV !== "production" && (ot.displayName = "Skeleton");
|
|
566
|
-
var zr = ge.ESC, Ar = ge.TAB;
|
|
567
|
-
function kr(e) {
|
|
568
|
-
var t = e.visible, a = e.triggerRef, n = e.onVisibleChange, r = e.autoFocus, o = e.overlayRef, l = i.useRef(!1), s = function() {
|
|
569
|
-
if (t) {
|
|
570
|
-
var d, f;
|
|
571
|
-
(d = a.current) === null || d === void 0 || (f = d.focus) === null || f === void 0 || f.call(d), n == null || n(!1);
|
|
552
|
+
D = /* @__PURE__ */ l.createElement("div", {
|
|
553
|
+
className: `${p}-content`
|
|
554
|
+
}, w, T);
|
|
572
555
|
}
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
l.current || (f = c()), f ? d.preventDefault() : s();
|
|
584
|
-
break;
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
i.useEffect(function() {
|
|
589
|
-
return t ? (window.addEventListener("keydown", u), r && Qe(c, 3), function() {
|
|
590
|
-
window.removeEventListener("keydown", u), l.current = !1;
|
|
591
|
-
}) : function() {
|
|
592
|
-
l.current = !1;
|
|
593
|
-
};
|
|
594
|
-
}, [t]);
|
|
595
|
-
}
|
|
596
|
-
var jr = /* @__PURE__ */ Qa(function(e, t) {
|
|
597
|
-
var a = e.overlay, n = e.arrow, r = e.prefixCls, o = Mn(function() {
|
|
598
|
-
var s;
|
|
599
|
-
return typeof a == "function" ? s = a() : s = a, s;
|
|
600
|
-
}, [a]), l = va(t, ma(o));
|
|
601
|
-
return /* @__PURE__ */ _e.createElement(_e.Fragment, null, n && /* @__PURE__ */ _e.createElement("div", {
|
|
602
|
-
className: "".concat(r, "-arrow")
|
|
603
|
-
}), /* @__PURE__ */ _e.cloneElement(o, {
|
|
604
|
-
ref: ga(o) ? l : void 0
|
|
605
|
-
}));
|
|
606
|
-
}), mt = {
|
|
607
|
-
adjustX: 1,
|
|
608
|
-
adjustY: 1
|
|
609
|
-
}, gt = [0, 0], Br = {
|
|
610
|
-
topLeft: {
|
|
611
|
-
points: ["bl", "tl"],
|
|
612
|
-
overflow: mt,
|
|
613
|
-
offset: [0, -4],
|
|
614
|
-
targetOffset: gt
|
|
615
|
-
},
|
|
616
|
-
top: {
|
|
617
|
-
points: ["bc", "tc"],
|
|
618
|
-
overflow: mt,
|
|
619
|
-
offset: [0, -4],
|
|
620
|
-
targetOffset: gt
|
|
621
|
-
},
|
|
622
|
-
topRight: {
|
|
623
|
-
points: ["br", "tr"],
|
|
624
|
-
overflow: mt,
|
|
625
|
-
offset: [0, -4],
|
|
626
|
-
targetOffset: gt
|
|
627
|
-
},
|
|
628
|
-
bottomLeft: {
|
|
629
|
-
points: ["tl", "bl"],
|
|
630
|
-
overflow: mt,
|
|
631
|
-
offset: [0, 4],
|
|
632
|
-
targetOffset: gt
|
|
633
|
-
},
|
|
634
|
-
bottom: {
|
|
635
|
-
points: ["tc", "bc"],
|
|
636
|
-
overflow: mt,
|
|
637
|
-
offset: [0, 4],
|
|
638
|
-
targetOffset: gt
|
|
639
|
-
},
|
|
640
|
-
bottomRight: {
|
|
641
|
-
points: ["tr", "br"],
|
|
642
|
-
overflow: mt,
|
|
643
|
-
offset: [0, 4],
|
|
644
|
-
targetOffset: gt
|
|
645
|
-
}
|
|
646
|
-
}, Kr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
647
|
-
function Vr(e, t) {
|
|
648
|
-
var a, n = e.arrow, r = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, s = e.transitionName, c = e.animation, u = e.align, v = e.placement, d = v === void 0 ? "bottomLeft" : v, f = e.placements, h = f === void 0 ? Br : f, S = e.getPopupContainer, g = e.showAction, x = e.hideAction, p = e.overlayClassName, C = e.overlayStyle, b = e.visible, _ = e.trigger, R = _ === void 0 ? ["hover"] : _, P = e.autoFocus, M = e.overlay, O = e.children, E = e.onVisibleChange, T = Se(e, Kr), y = _e.useState(), $ = z(y, 2), N = $[0], I = $[1], j = "visible" in e ? b : N, G = _e.useRef(null), m = _e.useRef(null), W = _e.useRef(null);
|
|
649
|
-
_e.useImperativeHandle(t, function() {
|
|
650
|
-
return G.current;
|
|
651
|
-
});
|
|
652
|
-
var J = function(q) {
|
|
653
|
-
I(q), E == null || E(q);
|
|
654
|
-
};
|
|
655
|
-
kr({
|
|
656
|
-
visible: j,
|
|
657
|
-
triggerRef: W,
|
|
658
|
-
onVisibleChange: J,
|
|
659
|
-
autoFocus: P,
|
|
660
|
-
overlayRef: m
|
|
661
|
-
});
|
|
662
|
-
var F = function(q) {
|
|
663
|
-
var te = e.onOverlayClick;
|
|
664
|
-
I(!1), te && te(q);
|
|
665
|
-
}, ee = function() {
|
|
666
|
-
return /* @__PURE__ */ _e.createElement(jr, {
|
|
667
|
-
ref: m,
|
|
668
|
-
overlay: M,
|
|
669
|
-
prefixCls: l,
|
|
670
|
-
arrow: r
|
|
671
|
-
});
|
|
672
|
-
}, se = function() {
|
|
673
|
-
return typeof M == "function" ? ee : ee();
|
|
674
|
-
}, A = function() {
|
|
675
|
-
var q = e.minOverlayWidthMatchTrigger, te = e.alignPoint;
|
|
676
|
-
return "minOverlayWidthMatchTrigger" in e ? q : !te;
|
|
677
|
-
}, K = function() {
|
|
678
|
-
var q = e.openClassName;
|
|
679
|
-
return q !== void 0 ? q : "".concat(l, "-open");
|
|
680
|
-
}, k = /* @__PURE__ */ _e.cloneElement(O, {
|
|
681
|
-
className: D((a = O.props) === null || a === void 0 ? void 0 : a.className, j && K()),
|
|
682
|
-
ref: ga(O) ? va(W, ma(O)) : void 0
|
|
683
|
-
}), V = x;
|
|
684
|
-
return !V && R.indexOf("contextMenu") !== -1 && (V = ["click"]), /* @__PURE__ */ _e.createElement(Sa, ae({
|
|
685
|
-
builtinPlacements: h
|
|
686
|
-
}, T, {
|
|
687
|
-
prefixCls: l,
|
|
688
|
-
ref: G,
|
|
689
|
-
popupClassName: D(p, B({}, "".concat(l, "-show-arrow"), r)),
|
|
690
|
-
popupStyle: C,
|
|
691
|
-
action: R,
|
|
692
|
-
showAction: g,
|
|
693
|
-
hideAction: V,
|
|
694
|
-
popupPlacement: d,
|
|
695
|
-
popupAlign: u,
|
|
696
|
-
popupTransitionName: s,
|
|
697
|
-
popupAnimation: c,
|
|
698
|
-
popupVisible: j,
|
|
699
|
-
stretch: A() ? "minWidth" : "",
|
|
700
|
-
popup: se(),
|
|
701
|
-
onPopupVisibleChange: J,
|
|
702
|
-
onPopupClick: F,
|
|
703
|
-
getPopupContainer: S
|
|
704
|
-
}), k);
|
|
705
|
-
}
|
|
706
|
-
const Hr = /* @__PURE__ */ _e.forwardRef(Vr);
|
|
707
|
-
var Ea = /* @__PURE__ */ i.createContext(null);
|
|
708
|
-
function wa(e, t) {
|
|
709
|
-
return e === void 0 ? null : "".concat(e, "-").concat(t);
|
|
710
|
-
}
|
|
711
|
-
function _a(e) {
|
|
712
|
-
var t = i.useContext(Ea);
|
|
713
|
-
return wa(t, e);
|
|
714
|
-
}
|
|
715
|
-
var Gr = ["children", "locked"], ze = /* @__PURE__ */ i.createContext(null);
|
|
716
|
-
function Wr(e, t) {
|
|
717
|
-
var a = Y({}, e);
|
|
718
|
-
return Object.keys(t).forEach(function(n) {
|
|
719
|
-
var r = t[n];
|
|
720
|
-
r !== void 0 && (a[n] = r);
|
|
721
|
-
}), a;
|
|
722
|
-
}
|
|
723
|
-
function Dt(e) {
|
|
724
|
-
var t = e.children, a = e.locked, n = Se(e, Gr), r = i.useContext(ze), o = nr(function() {
|
|
725
|
-
return Wr(r, n);
|
|
726
|
-
}, [r, n], function(l, s) {
|
|
727
|
-
return !a && (l[0] !== s[0] || !pa(l[1], s[1], !0));
|
|
728
|
-
});
|
|
729
|
-
return /* @__PURE__ */ i.createElement(ze.Provider, {
|
|
730
|
-
value: o
|
|
731
|
-
}, t);
|
|
732
|
-
}
|
|
733
|
-
var Fr = [], Pa = /* @__PURE__ */ i.createContext(null);
|
|
734
|
-
function rn() {
|
|
735
|
-
return i.useContext(Pa);
|
|
736
|
-
}
|
|
737
|
-
var Ia = /* @__PURE__ */ i.createContext(Fr);
|
|
738
|
-
function zt(e) {
|
|
739
|
-
var t = i.useContext(Ia);
|
|
740
|
-
return i.useMemo(function() {
|
|
741
|
-
return e !== void 0 ? [].concat(Ke(t), [e]) : t;
|
|
742
|
-
}, [t, e]);
|
|
743
|
-
}
|
|
744
|
-
var Ra = /* @__PURE__ */ i.createContext(null), An = /* @__PURE__ */ i.createContext({});
|
|
745
|
-
function Zn(e) {
|
|
746
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
747
|
-
if (cr(e)) {
|
|
748
|
-
var a = e.nodeName.toLowerCase(), n = (
|
|
749
|
-
// Focusable element
|
|
750
|
-
["input", "select", "textarea", "button"].includes(a) || // Editable element
|
|
751
|
-
e.isContentEditable || // Anchor with href element
|
|
752
|
-
a === "a" && !!e.getAttribute("href")
|
|
753
|
-
), r = e.getAttribute("tabindex"), o = Number(r), l = null;
|
|
754
|
-
return r && !Number.isNaN(o) ? l = o : n && l === null && (l = 0), n && e.disabled && (l = null), l !== null && (l >= 0 || t && l < 0);
|
|
755
|
-
}
|
|
756
|
-
return !1;
|
|
757
|
-
}
|
|
758
|
-
function qr(e) {
|
|
759
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Ke(e.querySelectorAll("*")).filter(function(n) {
|
|
760
|
-
return Zn(n, t);
|
|
761
|
-
});
|
|
762
|
-
return Zn(e, t) && a.unshift(e), a;
|
|
763
|
-
}
|
|
764
|
-
var En = ge.LEFT, wn = ge.RIGHT, _n = ge.UP, Yt = ge.DOWN, Zt = ge.ENTER, Na = ge.ESC, Mt = ge.HOME, Ot = ge.END, Jn = [_n, Yt, En, wn];
|
|
765
|
-
function Ur(e, t, a, n) {
|
|
766
|
-
var r, o = "prev", l = "next", s = "children", c = "parent";
|
|
767
|
-
if (e === "inline" && n === Zt)
|
|
768
|
-
return {
|
|
769
|
-
inlineTrigger: !0
|
|
770
|
-
};
|
|
771
|
-
var u = B(B({}, _n, o), Yt, l), v = B(B(B(B({}, En, a ? l : o), wn, a ? o : l), Yt, s), Zt, s), d = B(B(B(B(B(B({}, _n, o), Yt, l), Zt, s), Na, c), En, a ? s : c), wn, a ? c : s), f = {
|
|
772
|
-
inline: u,
|
|
773
|
-
horizontal: v,
|
|
774
|
-
vertical: d,
|
|
775
|
-
inlineSub: u,
|
|
776
|
-
horizontalSub: d,
|
|
777
|
-
verticalSub: d
|
|
778
|
-
}, h = (r = f["".concat(e).concat(t ? "" : "Sub")]) === null || r === void 0 ? void 0 : r[n];
|
|
779
|
-
switch (h) {
|
|
780
|
-
case o:
|
|
781
|
-
return {
|
|
782
|
-
offset: -1,
|
|
783
|
-
sibling: !0
|
|
784
|
-
};
|
|
785
|
-
case l:
|
|
786
|
-
return {
|
|
787
|
-
offset: 1,
|
|
788
|
-
sibling: !0
|
|
789
|
-
};
|
|
790
|
-
case c:
|
|
791
|
-
return {
|
|
792
|
-
offset: -1,
|
|
793
|
-
sibling: !1
|
|
794
|
-
};
|
|
795
|
-
case s:
|
|
796
|
-
return {
|
|
797
|
-
offset: 1,
|
|
798
|
-
sibling: !1
|
|
799
|
-
};
|
|
800
|
-
default:
|
|
801
|
-
return null;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
function Xr(e) {
|
|
805
|
-
for (var t = e; t; ) {
|
|
806
|
-
if (t.getAttribute("data-menu-list"))
|
|
807
|
-
return t;
|
|
808
|
-
t = t.parentElement;
|
|
556
|
+
const I = E(p, {
|
|
557
|
+
[`${p}-with-avatar`]: P,
|
|
558
|
+
[`${p}-active`]: m,
|
|
559
|
+
[`${p}-rtl`]: C === "rtl",
|
|
560
|
+
[`${p}-round`]: g
|
|
561
|
+
}, N == null ? void 0 : N.className, n, r, y, S);
|
|
562
|
+
return O(/* @__PURE__ */ l.createElement("div", {
|
|
563
|
+
className: I,
|
|
564
|
+
style: Object.assign(Object.assign({}, N == null ? void 0 : N.style), o)
|
|
565
|
+
}, G, D));
|
|
809
566
|
}
|
|
810
|
-
return null;
|
|
811
|
-
}
|
|
812
|
-
function Yr(e, t) {
|
|
813
|
-
for (var a = e || document.activeElement; a; ) {
|
|
814
|
-
if (t.has(a))
|
|
815
|
-
return a;
|
|
816
|
-
a = a.parentElement;
|
|
817
|
-
}
|
|
818
|
-
return null;
|
|
819
|
-
}
|
|
820
|
-
function kn(e, t) {
|
|
821
|
-
var a = qr(e, !0);
|
|
822
|
-
return a.filter(function(n) {
|
|
823
|
-
return t.has(n);
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
function Qn(e, t, a) {
|
|
827
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
|
|
828
|
-
if (!e)
|
|
829
|
-
return null;
|
|
830
|
-
var r = kn(e, t), o = r.length, l = r.findIndex(function(s) {
|
|
831
|
-
return a === s;
|
|
832
|
-
});
|
|
833
|
-
return n < 0 ? l === -1 ? l = o - 1 : l -= 1 : n > 0 && (l += 1), l = (l + o) % o, r[l];
|
|
834
|
-
}
|
|
835
|
-
var Pn = function(t, a) {
|
|
836
|
-
var n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
837
|
-
return t.forEach(function(l) {
|
|
838
|
-
var s = document.querySelector("[data-menu-id='".concat(wa(a, l), "']"));
|
|
839
|
-
s && (n.add(s), o.set(s, l), r.set(l, s));
|
|
840
|
-
}), {
|
|
841
|
-
elements: n,
|
|
842
|
-
key2element: r,
|
|
843
|
-
element2key: o
|
|
844
|
-
};
|
|
567
|
+
return s ?? null;
|
|
845
568
|
};
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}, [])
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
var g = o(), x = Pn(g, n), p = x, C = p.elements, b = p.key2element, _ = p.element2key, R = b.get(t), P = Yr(R, C), M = _.get(P), O = Ur(e, l(M, !0).length === 1, a, S);
|
|
860
|
-
if (!O && S !== Mt && S !== Ot)
|
|
861
|
-
return;
|
|
862
|
-
(Jn.includes(S) || [Mt, Ot].includes(S)) && h.preventDefault();
|
|
863
|
-
var E = function(m) {
|
|
864
|
-
if (m) {
|
|
865
|
-
var W = m, J = m.querySelector("a");
|
|
866
|
-
J != null && J.getAttribute("href") && (W = J);
|
|
867
|
-
var F = _.get(m);
|
|
868
|
-
s(F), f(), v.current = Qe(function() {
|
|
869
|
-
d.current === F && W.focus();
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
|
-
if ([Mt, Ot].includes(S) || O.sibling || !P) {
|
|
874
|
-
var T;
|
|
875
|
-
!P || e === "inline" ? T = r.current : T = Xr(P);
|
|
876
|
-
var y, $ = kn(T, C);
|
|
877
|
-
S === Mt ? y = $[0] : S === Ot ? y = $[$.length - 1] : y = Qn(T, C, P, O.offset), E(y);
|
|
878
|
-
} else if (O.inlineTrigger)
|
|
879
|
-
c(M);
|
|
880
|
-
else if (O.offset > 0)
|
|
881
|
-
c(M, !0), f(), v.current = Qe(function() {
|
|
882
|
-
x = Pn(g, n);
|
|
883
|
-
var G = P.getAttribute("aria-controls"), m = document.getElementById(G), W = Qn(m, x.elements);
|
|
884
|
-
E(W);
|
|
885
|
-
}, 5);
|
|
886
|
-
else if (O.offset < 0) {
|
|
887
|
-
var N = l(M, !0), I = N[N.length - 2], j = b.get(I);
|
|
888
|
-
c(I, !1), E(j);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
u == null || u(h);
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
|
-
function Jr(e) {
|
|
895
|
-
Promise.resolve().then(e);
|
|
896
|
-
}
|
|
897
|
-
var jn = "__RC_UTIL_PATH_SPLIT__", ea = function(t) {
|
|
898
|
-
return t.join(jn);
|
|
899
|
-
}, Qr = function(t) {
|
|
900
|
-
return t.split(jn);
|
|
901
|
-
}, In = "rc-menu-more";
|
|
902
|
-
function ei() {
|
|
903
|
-
var e = i.useState({}), t = z(e, 2), a = t[1], n = ve(/* @__PURE__ */ new Map()), r = ve(/* @__PURE__ */ new Map()), o = i.useState([]), l = z(o, 2), s = l[0], c = l[1], u = ve(0), v = ve(!1), d = function() {
|
|
904
|
-
v.current || a({});
|
|
905
|
-
}, f = vt(function(b, _) {
|
|
906
|
-
process.env.NODE_ENV !== "production" && rt(!n.current.has(b), "Duplicated key '".concat(b, "' used in Menu by path [").concat(_.join(" > "), "]"));
|
|
907
|
-
var R = ea(_);
|
|
908
|
-
r.current.set(R, b), n.current.set(b, R), u.current += 1;
|
|
909
|
-
var P = u.current;
|
|
910
|
-
Jr(function() {
|
|
911
|
-
P === u.current && d();
|
|
912
|
-
});
|
|
913
|
-
}, []), h = vt(function(b, _) {
|
|
914
|
-
var R = ea(_);
|
|
915
|
-
r.current.delete(R), n.current.delete(b);
|
|
916
|
-
}, []), S = vt(function(b) {
|
|
917
|
-
c(b);
|
|
918
|
-
}, []), g = vt(function(b, _) {
|
|
919
|
-
var R = n.current.get(b) || "", P = Qr(R);
|
|
920
|
-
return _ && s.includes(P[0]) && P.unshift(In), P;
|
|
921
|
-
}, [s]), x = vt(function(b, _) {
|
|
922
|
-
return b.filter(function(R) {
|
|
923
|
-
return R !== void 0;
|
|
924
|
-
}).some(function(R) {
|
|
925
|
-
var P = g(R, !0);
|
|
926
|
-
return P.includes(_);
|
|
927
|
-
});
|
|
928
|
-
}, [g]), p = function() {
|
|
929
|
-
var _ = Ke(n.current.keys());
|
|
930
|
-
return s.length && _.push(In), _;
|
|
931
|
-
}, C = vt(function(b) {
|
|
932
|
-
var _ = "".concat(n.current.get(b)).concat(jn), R = /* @__PURE__ */ new Set();
|
|
933
|
-
return Ke(r.current.keys()).forEach(function(P) {
|
|
934
|
-
P.startsWith(_) && R.add(r.current.get(P));
|
|
935
|
-
}), R;
|
|
936
|
-
}, []);
|
|
937
|
-
return i.useEffect(function() {
|
|
938
|
-
return function() {
|
|
939
|
-
v.current = !0;
|
|
940
|
-
};
|
|
941
|
-
}, []), {
|
|
942
|
-
// Register
|
|
943
|
-
registerPath: f,
|
|
944
|
-
unregisterPath: h,
|
|
945
|
-
refreshOverflowKeys: S,
|
|
946
|
-
// Util
|
|
947
|
-
isSubPathKey: x,
|
|
948
|
-
getKeyPath: g,
|
|
949
|
-
getKeys: p,
|
|
950
|
-
getSubPathKeys: C
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
|
-
function Tt(e) {
|
|
954
|
-
var t = i.useRef(e);
|
|
955
|
-
t.current = e;
|
|
956
|
-
var a = i.useCallback(function() {
|
|
957
|
-
for (var n, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
|
|
958
|
-
o[l] = arguments[l];
|
|
959
|
-
return (n = t.current) === null || n === void 0 ? void 0 : n.call.apply(n, [t].concat(o));
|
|
960
|
-
}, []);
|
|
961
|
-
return e ? a : void 0;
|
|
962
|
-
}
|
|
963
|
-
var ti = Math.random().toFixed(5).toString().slice(2), ta = 0;
|
|
964
|
-
function ni(e) {
|
|
965
|
-
var t = bt(e, {
|
|
966
|
-
value: e
|
|
967
|
-
}), a = z(t, 2), n = a[0], r = a[1];
|
|
968
|
-
return i.useEffect(function() {
|
|
969
|
-
ta += 1;
|
|
970
|
-
var o = process.env.NODE_ENV === "test" ? "test" : "".concat(ti, "-").concat(ta);
|
|
971
|
-
r("rc-menu-uuid-".concat(o));
|
|
972
|
-
}, []), n;
|
|
973
|
-
}
|
|
974
|
-
function Ma(e, t, a, n) {
|
|
975
|
-
var r = i.useContext(ze), o = r.activeKey, l = r.onActive, s = r.onInactive, c = {
|
|
976
|
-
active: o === e
|
|
977
|
-
};
|
|
978
|
-
return t || (c.onMouseEnter = function(u) {
|
|
979
|
-
a == null || a({
|
|
980
|
-
key: e,
|
|
981
|
-
domEvent: u
|
|
982
|
-
}), l(e);
|
|
983
|
-
}, c.onMouseLeave = function(u) {
|
|
984
|
-
n == null || n({
|
|
985
|
-
key: e,
|
|
986
|
-
domEvent: u
|
|
987
|
-
}), s(e);
|
|
988
|
-
}), c;
|
|
989
|
-
}
|
|
990
|
-
function Oa(e) {
|
|
991
|
-
var t = i.useContext(ze), a = t.mode, n = t.rtl, r = t.inlineIndent;
|
|
992
|
-
if (a !== "inline")
|
|
993
|
-
return null;
|
|
994
|
-
var o = e;
|
|
995
|
-
return n ? {
|
|
996
|
-
paddingRight: o * r
|
|
997
|
-
} : {
|
|
998
|
-
paddingLeft: o * r
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
function Ta(e) {
|
|
1002
|
-
var t = e.icon, a = e.props, n = e.children, r;
|
|
1003
|
-
return t === null || t === !1 ? null : (typeof t == "function" ? r = /* @__PURE__ */ i.createElement(t, Y({}, a)) : typeof t != "boolean" && (r = t), r || n || null);
|
|
1004
|
-
}
|
|
1005
|
-
var ai = ["item"];
|
|
1006
|
-
function Qt(e) {
|
|
1007
|
-
var t = e.item, a = Se(e, ai);
|
|
1008
|
-
return Object.defineProperty(a, "item", {
|
|
1009
|
-
get: function() {
|
|
1010
|
-
return rt(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), t;
|
|
1011
|
-
}
|
|
1012
|
-
}), a;
|
|
1013
|
-
}
|
|
1014
|
-
var ri = ["title", "attribute", "elementRef"], ii = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], oi = ["active"], li = /* @__PURE__ */ function(e) {
|
|
1015
|
-
ar(a, e);
|
|
1016
|
-
var t = rr(a);
|
|
1017
|
-
function a() {
|
|
1018
|
-
return ir(this, a), t.apply(this, arguments);
|
|
569
|
+
Ee.Button = tn;
|
|
570
|
+
Ee.Avatar = en;
|
|
571
|
+
Ee.Input = rn;
|
|
572
|
+
Ee.Image = nn;
|
|
573
|
+
Ee.Node = on;
|
|
574
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "Skeleton");
|
|
575
|
+
const Xe = /* @__PURE__ */ Pa(null);
|
|
576
|
+
var gn = function(t) {
|
|
577
|
+
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, m = U(), g = B(m, 2), v = g[0], C = g[1], N = ee(), p = Ea.useCallback(function(y) {
|
|
578
|
+
return typeof i == "function" ? i(y) : typeof i == "number" ? i : y;
|
|
579
|
+
}, [i]);
|
|
580
|
+
function O() {
|
|
581
|
+
Dt.cancel(N.current);
|
|
1019
582
|
}
|
|
1020
|
-
return
|
|
1021
|
-
|
|
1022
|
-
value: function() {
|
|
1023
|
-
var r = this.props, o = r.title, l = r.attribute, s = r.elementRef, c = Se(r, ri), u = it(c, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
1024
|
-
return rt(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Lt.Item, ae({}, l, {
|
|
1025
|
-
title: typeof o == "string" ? o : void 0
|
|
1026
|
-
}, u, {
|
|
1027
|
-
ref: s
|
|
1028
|
-
}));
|
|
1029
|
-
}
|
|
1030
|
-
}]), a;
|
|
1031
|
-
}(i.Component), si = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1032
|
-
var a = e.style, n = e.className, r = e.eventKey, o = e.warnKey, l = e.disabled, s = e.itemIcon, c = e.children, u = e.role, v = e.onMouseEnter, d = e.onMouseLeave, f = e.onClick, h = e.onKeyDown, S = e.onFocus, g = Se(e, ii), x = _a(r), p = i.useContext(ze), C = p.prefixCls, b = p.onItemClick, _ = p.disabled, R = p.overflowDisabled, P = p.itemIcon, M = p.selectedKeys, O = p.onActive, E = i.useContext(An), T = E._internalRenderMenuItem, y = "".concat(C, "-item"), $ = i.useRef(), N = i.useRef(), I = _ || l, j = ba(t, N), G = zt(r);
|
|
1033
|
-
process.env.NODE_ENV !== "production" && o && rt(!1, "MenuItem should not leave undefined `key`.");
|
|
1034
|
-
var m = function(ie) {
|
|
1035
|
-
return {
|
|
1036
|
-
key: r,
|
|
1037
|
-
// Note: For legacy code is reversed which not like other antd component
|
|
1038
|
-
keyPath: Ke(G).reverse(),
|
|
1039
|
-
item: $.current,
|
|
1040
|
-
domEvent: ie
|
|
1041
|
-
};
|
|
1042
|
-
}, W = s || P, J = Ma(r, I, v, d), F = J.active, ee = Se(J, oi), se = M.includes(r), A = Oa(G.length), K = function(ie) {
|
|
1043
|
-
if (!I) {
|
|
1044
|
-
var de = m(ie);
|
|
1045
|
-
f == null || f(Qt(de)), b(de);
|
|
1046
|
-
}
|
|
1047
|
-
}, k = function(ie) {
|
|
1048
|
-
if (h == null || h(ie), ie.which === ge.ENTER) {
|
|
1049
|
-
var de = m(ie);
|
|
1050
|
-
f == null || f(Qt(de)), b(de);
|
|
1051
|
-
}
|
|
1052
|
-
}, V = function(ie) {
|
|
1053
|
-
O(r), S == null || S(ie);
|
|
1054
|
-
}, U = {};
|
|
1055
|
-
e.role === "option" && (U["aria-selected"] = se);
|
|
1056
|
-
var q = /* @__PURE__ */ i.createElement(li, ae({
|
|
1057
|
-
ref: $,
|
|
1058
|
-
elementRef: j,
|
|
1059
|
-
role: u === null ? "none" : u || "menuitem",
|
|
1060
|
-
tabIndex: l ? null : -1,
|
|
1061
|
-
"data-menu-id": R && x ? null : x
|
|
1062
|
-
}, it(g, ["extra"]), ee, U, {
|
|
1063
|
-
component: "li",
|
|
1064
|
-
"aria-disabled": l,
|
|
1065
|
-
style: Y(Y({}, A), a),
|
|
1066
|
-
className: D(y, B(B(B({}, "".concat(y, "-active"), F), "".concat(y, "-selected"), se), "".concat(y, "-disabled"), I), n),
|
|
1067
|
-
onClick: K,
|
|
1068
|
-
onKeyDown: k,
|
|
1069
|
-
onFocus: V
|
|
1070
|
-
}), c, /* @__PURE__ */ i.createElement(Ta, {
|
|
1071
|
-
props: Y(Y({}, e), {}, {
|
|
1072
|
-
isSelected: se
|
|
1073
|
-
}),
|
|
1074
|
-
icon: W
|
|
1075
|
-
}));
|
|
1076
|
-
return T && (q = T(q, e, {
|
|
1077
|
-
selected: se
|
|
1078
|
-
})), q;
|
|
1079
|
-
});
|
|
1080
|
-
function ci(e, t) {
|
|
1081
|
-
var a = e.eventKey, n = rn(), r = zt(a);
|
|
1082
|
-
return i.useEffect(function() {
|
|
1083
|
-
if (n)
|
|
1084
|
-
return n.registerPath(a, r), function() {
|
|
1085
|
-
n.unregisterPath(a, r);
|
|
1086
|
-
};
|
|
1087
|
-
}, [r]), n ? null : /* @__PURE__ */ i.createElement(si, ae({}, e, {
|
|
1088
|
-
ref: t
|
|
1089
|
-
}));
|
|
1090
|
-
}
|
|
1091
|
-
const on = /* @__PURE__ */ i.forwardRef(ci);
|
|
1092
|
-
var ui = ["className", "children"], di = function(t, a) {
|
|
1093
|
-
var n = t.className, r = t.children, o = Se(t, ui), l = i.useContext(ze), s = l.prefixCls, c = l.mode, u = l.rtl;
|
|
1094
|
-
return /* @__PURE__ */ i.createElement("ul", ae({
|
|
1095
|
-
className: D(s, u && "".concat(s, "-rtl"), "".concat(s, "-sub"), "".concat(s, "-").concat(c === "inline" ? "inline" : "vertical"), n),
|
|
1096
|
-
role: "menu"
|
|
1097
|
-
}, o, {
|
|
1098
|
-
"data-menu-list": !0,
|
|
1099
|
-
ref: a
|
|
1100
|
-
}), r);
|
|
1101
|
-
}, Bn = /* @__PURE__ */ i.forwardRef(di);
|
|
1102
|
-
Bn.displayName = "SubMenuList";
|
|
1103
|
-
function Kn(e, t) {
|
|
1104
|
-
return Ca(e).map(function(a, n) {
|
|
1105
|
-
if (/* @__PURE__ */ i.isValidElement(a)) {
|
|
1106
|
-
var r, o, l = a.key, s = (r = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && r !== void 0 ? r : l, c = s == null;
|
|
1107
|
-
c && (s = "tmp_key-".concat([].concat(Ke(t), [n]).join("-")));
|
|
1108
|
-
var u = {
|
|
1109
|
-
key: s,
|
|
1110
|
-
eventKey: s
|
|
1111
|
-
};
|
|
1112
|
-
return process.env.NODE_ENV !== "production" && c && (u.warnKey = !0), /* @__PURE__ */ i.cloneElement(a, u);
|
|
1113
|
-
}
|
|
1114
|
-
return a;
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
var $e = {
|
|
1118
|
-
adjustX: 1,
|
|
1119
|
-
adjustY: 1
|
|
1120
|
-
}, fi = {
|
|
1121
|
-
topLeft: {
|
|
1122
|
-
points: ["bl", "tl"],
|
|
1123
|
-
overflow: $e
|
|
1124
|
-
},
|
|
1125
|
-
topRight: {
|
|
1126
|
-
points: ["br", "tr"],
|
|
1127
|
-
overflow: $e
|
|
1128
|
-
},
|
|
1129
|
-
bottomLeft: {
|
|
1130
|
-
points: ["tl", "bl"],
|
|
1131
|
-
overflow: $e
|
|
1132
|
-
},
|
|
1133
|
-
bottomRight: {
|
|
1134
|
-
points: ["tr", "br"],
|
|
1135
|
-
overflow: $e
|
|
1136
|
-
},
|
|
1137
|
-
leftTop: {
|
|
1138
|
-
points: ["tr", "tl"],
|
|
1139
|
-
overflow: $e
|
|
1140
|
-
},
|
|
1141
|
-
leftBottom: {
|
|
1142
|
-
points: ["br", "bl"],
|
|
1143
|
-
overflow: $e
|
|
1144
|
-
},
|
|
1145
|
-
rightTop: {
|
|
1146
|
-
points: ["tl", "tr"],
|
|
1147
|
-
overflow: $e
|
|
1148
|
-
},
|
|
1149
|
-
rightBottom: {
|
|
1150
|
-
points: ["bl", "br"],
|
|
1151
|
-
overflow: $e
|
|
1152
|
-
}
|
|
1153
|
-
}, vi = {
|
|
1154
|
-
topLeft: {
|
|
1155
|
-
points: ["bl", "tl"],
|
|
1156
|
-
overflow: $e
|
|
1157
|
-
},
|
|
1158
|
-
topRight: {
|
|
1159
|
-
points: ["br", "tr"],
|
|
1160
|
-
overflow: $e
|
|
1161
|
-
},
|
|
1162
|
-
bottomLeft: {
|
|
1163
|
-
points: ["tl", "bl"],
|
|
1164
|
-
overflow: $e
|
|
1165
|
-
},
|
|
1166
|
-
bottomRight: {
|
|
1167
|
-
points: ["tr", "br"],
|
|
1168
|
-
overflow: $e
|
|
1169
|
-
},
|
|
1170
|
-
rightTop: {
|
|
1171
|
-
points: ["tr", "tl"],
|
|
1172
|
-
overflow: $e
|
|
1173
|
-
},
|
|
1174
|
-
rightBottom: {
|
|
1175
|
-
points: ["br", "bl"],
|
|
1176
|
-
overflow: $e
|
|
1177
|
-
},
|
|
1178
|
-
leftTop: {
|
|
1179
|
-
points: ["tl", "tr"],
|
|
1180
|
-
overflow: $e
|
|
1181
|
-
},
|
|
1182
|
-
leftBottom: {
|
|
1183
|
-
points: ["bl", "br"],
|
|
1184
|
-
overflow: $e
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
function La(e, t, a) {
|
|
1188
|
-
if (t)
|
|
1189
|
-
return t;
|
|
1190
|
-
if (a)
|
|
1191
|
-
return a[e] || a.other;
|
|
1192
|
-
}
|
|
1193
|
-
var mi = {
|
|
1194
|
-
horizontal: "bottomLeft",
|
|
1195
|
-
vertical: "rightTop",
|
|
1196
|
-
"vertical-left": "rightTop",
|
|
1197
|
-
"vertical-right": "leftTop"
|
|
1198
|
-
};
|
|
1199
|
-
function gi(e) {
|
|
1200
|
-
var t = e.prefixCls, a = e.visible, n = e.children, r = e.popup, o = e.popupStyle, l = e.popupClassName, s = e.popupOffset, c = e.disabled, u = e.mode, v = e.onVisibleChange, d = i.useContext(ze), f = d.getPopupContainer, h = d.rtl, S = d.subMenuOpenDelay, g = d.subMenuCloseDelay, x = d.builtinPlacements, p = d.triggerSubMenuAction, C = d.forceSubMenuRender, b = d.rootClassName, _ = d.motion, R = d.defaultMotions, P = i.useState(!1), M = z(P, 2), O = M[0], E = M[1], T = h ? Y(Y({}, vi), x) : Y(Y({}, fi), x), y = mi[u], $ = La(u, _, R), N = i.useRef($);
|
|
1201
|
-
u !== "inline" && (N.current = $);
|
|
1202
|
-
var I = Y(Y({}, N.current), {}, {
|
|
1203
|
-
leavedClassName: "".concat(t, "-hidden"),
|
|
1204
|
-
removeOnLeave: !1,
|
|
1205
|
-
motionAppear: !0
|
|
1206
|
-
}), j = i.useRef();
|
|
1207
|
-
return i.useEffect(function() {
|
|
1208
|
-
return j.current = Qe(function() {
|
|
1209
|
-
E(a);
|
|
1210
|
-
}), function() {
|
|
1211
|
-
Qe.cancel(j.current);
|
|
1212
|
-
};
|
|
1213
|
-
}, [a]), /* @__PURE__ */ i.createElement(Sa, {
|
|
1214
|
-
prefixCls: t,
|
|
1215
|
-
popupClassName: D("".concat(t, "-popup"), B({}, "".concat(t, "-rtl"), h), l, b),
|
|
1216
|
-
stretch: u === "horizontal" ? "minWidth" : null,
|
|
1217
|
-
getPopupContainer: f,
|
|
1218
|
-
builtinPlacements: T,
|
|
1219
|
-
popupPlacement: y,
|
|
1220
|
-
popupVisible: O,
|
|
1221
|
-
popup: r,
|
|
1222
|
-
popupStyle: o,
|
|
1223
|
-
popupAlign: s && {
|
|
1224
|
-
offset: s
|
|
1225
|
-
},
|
|
1226
|
-
action: c ? [] : [p],
|
|
1227
|
-
mouseEnterDelay: S,
|
|
1228
|
-
mouseLeaveDelay: g,
|
|
1229
|
-
onPopupVisibleChange: v,
|
|
1230
|
-
forceRender: C,
|
|
1231
|
-
popupMotion: I,
|
|
1232
|
-
fresh: !0
|
|
1233
|
-
}, n);
|
|
1234
|
-
}
|
|
1235
|
-
function pi(e) {
|
|
1236
|
-
var t = e.id, a = e.open, n = e.keyPath, r = e.children, o = "inline", l = i.useContext(ze), s = l.prefixCls, c = l.forceSubMenuRender, u = l.motion, v = l.defaultMotions, d = l.mode, f = i.useRef(!1);
|
|
1237
|
-
f.current = d === o;
|
|
1238
|
-
var h = i.useState(!f.current), S = z(h, 2), g = S[0], x = S[1], p = f.current ? a : !1;
|
|
1239
|
-
i.useEffect(function() {
|
|
1240
|
-
f.current && x(!1);
|
|
1241
|
-
}, [d]);
|
|
1242
|
-
var C = Y({}, La(o, u, v));
|
|
1243
|
-
n.length > 1 && (C.motionAppear = !1);
|
|
1244
|
-
var b = C.onVisibleChanged;
|
|
1245
|
-
return C.onVisibleChanged = function(_) {
|
|
1246
|
-
return !f.current && !_ && x(!0), b == null ? void 0 : b(_);
|
|
1247
|
-
}, g ? null : /* @__PURE__ */ i.createElement(Dt, {
|
|
1248
|
-
mode: o,
|
|
1249
|
-
locked: !f.current
|
|
1250
|
-
}, /* @__PURE__ */ i.createElement(ha, ae({
|
|
1251
|
-
visible: p
|
|
1252
|
-
}, C, {
|
|
1253
|
-
forceRender: c,
|
|
1254
|
-
removeOnLeave: !1,
|
|
1255
|
-
leavedClassName: "".concat(s, "-hidden")
|
|
1256
|
-
}), function(_) {
|
|
1257
|
-
var R = _.className, P = _.style;
|
|
1258
|
-
return /* @__PURE__ */ i.createElement(Bn, {
|
|
1259
|
-
id: t,
|
|
1260
|
-
className: R,
|
|
1261
|
-
style: P
|
|
1262
|
-
}, r);
|
|
1263
|
-
}));
|
|
1264
|
-
}
|
|
1265
|
-
var bi = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], hi = ["active"], yi = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1266
|
-
var a = e.style, n = e.className, r = e.title, o = e.eventKey, l = e.warnKey, s = e.disabled, c = e.internalPopupClose, u = e.children, v = e.itemIcon, d = e.expandIcon, f = e.popupClassName, h = e.popupOffset, S = e.popupStyle, g = e.onClick, x = e.onMouseEnter, p = e.onMouseLeave, C = e.onTitleClick, b = e.onTitleMouseEnter, _ = e.onTitleMouseLeave, R = Se(e, bi), P = _a(o), M = i.useContext(ze), O = M.prefixCls, E = M.mode, T = M.openKeys, y = M.disabled, $ = M.overflowDisabled, N = M.activeKey, I = M.selectedKeys, j = M.itemIcon, G = M.expandIcon, m = M.onItemClick, W = M.onOpenChange, J = M.onActive, F = i.useContext(An), ee = F._internalRenderSubMenuItem, se = i.useContext(Ra), A = se.isSubPathKey, K = zt(), k = "".concat(O, "-submenu"), V = y || s, U = i.useRef(), q = i.useRef();
|
|
1267
|
-
process.env.NODE_ENV !== "production" && l && rt(!1, "SubMenu should not leave undefined `key`.");
|
|
1268
|
-
var te = v ?? j, ie = d ?? G, de = T.includes(o), fe = !$ && de, Pe = A(I, o), H = Ma(o, V, b, _), me = H.active, De = Se(H, hi), Xe = i.useState(!1), oe = z(Xe, 2), Z = oe[0], ye = oe[1], Ie = function(ce) {
|
|
1269
|
-
V || ye(ce);
|
|
1270
|
-
}, He = function(ce) {
|
|
1271
|
-
Ie(!0), x == null || x({
|
|
1272
|
-
key: o,
|
|
1273
|
-
domEvent: ce
|
|
1274
|
-
});
|
|
1275
|
-
}, et = function(ce) {
|
|
1276
|
-
Ie(!1), p == null || p({
|
|
1277
|
-
key: o,
|
|
1278
|
-
domEvent: ce
|
|
1279
|
-
});
|
|
1280
|
-
}, Ye = i.useMemo(function() {
|
|
1281
|
-
return me || (E !== "inline" ? Z || A([N], o) : !1);
|
|
1282
|
-
}, [E, me, N, Z, o, A]), Oe = Oa(K.length), xe = function(ce) {
|
|
1283
|
-
V || (C == null || C({
|
|
1284
|
-
key: o,
|
|
1285
|
-
domEvent: ce
|
|
1286
|
-
}), E === "inline" && W(o, !de));
|
|
1287
|
-
}, Ct = Tt(function(Ee) {
|
|
1288
|
-
g == null || g(Qt(Ee)), m(Ee);
|
|
1289
|
-
}), Re = function(ce) {
|
|
1290
|
-
E !== "inline" && W(o, ce);
|
|
1291
|
-
}, Te = function() {
|
|
1292
|
-
J(o);
|
|
1293
|
-
}, Ge = P && "".concat(P, "-popup"), Le = /* @__PURE__ */ i.createElement("div", ae({
|
|
1294
|
-
role: "menuitem",
|
|
1295
|
-
style: Oe,
|
|
1296
|
-
className: "".concat(k, "-title"),
|
|
1297
|
-
tabIndex: V ? null : -1,
|
|
1298
|
-
ref: U,
|
|
1299
|
-
title: typeof r == "string" ? r : null,
|
|
1300
|
-
"data-menu-id": $ && P ? null : P,
|
|
1301
|
-
"aria-expanded": fe,
|
|
1302
|
-
"aria-haspopup": !0,
|
|
1303
|
-
"aria-controls": Ge,
|
|
1304
|
-
"aria-disabled": V,
|
|
1305
|
-
onClick: xe,
|
|
1306
|
-
onFocus: Te
|
|
1307
|
-
}, De), r, /* @__PURE__ */ i.createElement(Ta, {
|
|
1308
|
-
icon: E !== "horizontal" ? ie : void 0,
|
|
1309
|
-
props: Y(Y({}, e), {}, {
|
|
1310
|
-
isOpen: fe,
|
|
1311
|
-
// [Legacy] Not sure why need this mark
|
|
1312
|
-
isSubMenu: !0
|
|
1313
|
-
})
|
|
1314
|
-
}, /* @__PURE__ */ i.createElement("i", {
|
|
1315
|
-
className: "".concat(k, "-arrow")
|
|
1316
|
-
}))), We = i.useRef(E);
|
|
1317
|
-
if (E !== "inline" && K.length > 1 ? We.current = "vertical" : We.current = E, !$) {
|
|
1318
|
-
var Ae = We.current;
|
|
1319
|
-
Le = /* @__PURE__ */ i.createElement(gi, {
|
|
1320
|
-
mode: Ae,
|
|
1321
|
-
prefixCls: k,
|
|
1322
|
-
visible: !c && fe && E !== "inline",
|
|
1323
|
-
popupClassName: f,
|
|
1324
|
-
popupOffset: h,
|
|
1325
|
-
popupStyle: S,
|
|
1326
|
-
popup: /* @__PURE__ */ i.createElement(
|
|
1327
|
-
Dt,
|
|
1328
|
-
{
|
|
1329
|
-
mode: Ae === "horizontal" ? "vertical" : Ae
|
|
1330
|
-
},
|
|
1331
|
-
/* @__PURE__ */ i.createElement(Bn, {
|
|
1332
|
-
id: Ge,
|
|
1333
|
-
ref: q
|
|
1334
|
-
}, u)
|
|
1335
|
-
),
|
|
1336
|
-
disabled: V,
|
|
1337
|
-
onVisibleChange: Re
|
|
1338
|
-
}, Le);
|
|
1339
|
-
}
|
|
1340
|
-
var ke = /* @__PURE__ */ i.createElement(Lt.Item, ae({
|
|
1341
|
-
ref: t,
|
|
1342
|
-
role: "none"
|
|
1343
|
-
}, R, {
|
|
1344
|
-
component: "li",
|
|
1345
|
-
style: a,
|
|
1346
|
-
className: D(k, "".concat(k, "-").concat(E), n, B(B(B(B({}, "".concat(k, "-open"), fe), "".concat(k, "-active"), Ye), "".concat(k, "-selected"), Pe), "".concat(k, "-disabled"), V)),
|
|
1347
|
-
onMouseEnter: He,
|
|
1348
|
-
onMouseLeave: et
|
|
1349
|
-
}), Le, !$ && /* @__PURE__ */ i.createElement(pi, {
|
|
1350
|
-
id: Ge,
|
|
1351
|
-
open: fe,
|
|
1352
|
-
keyPath: K
|
|
1353
|
-
}, u));
|
|
1354
|
-
return ee && (ke = ee(ke, e, {
|
|
1355
|
-
selected: Pe,
|
|
1356
|
-
active: Ye,
|
|
1357
|
-
open: fe,
|
|
1358
|
-
disabled: V
|
|
1359
|
-
})), /* @__PURE__ */ i.createElement(Dt, {
|
|
1360
|
-
onItemClick: Ct,
|
|
1361
|
-
mode: E === "horizontal" ? "vertical" : E,
|
|
1362
|
-
itemIcon: te,
|
|
1363
|
-
expandIcon: ie
|
|
1364
|
-
}, ke);
|
|
1365
|
-
}), ln = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1366
|
-
var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
|
|
1367
|
-
i.useEffect(function() {
|
|
1368
|
-
if (l)
|
|
1369
|
-
return l.registerPath(a, r), function() {
|
|
1370
|
-
l.unregisterPath(a, r);
|
|
1371
|
-
};
|
|
1372
|
-
}, [r]);
|
|
1373
|
-
var s;
|
|
1374
|
-
return l ? s = o : s = /* @__PURE__ */ i.createElement(yi, ae({
|
|
1375
|
-
ref: t
|
|
1376
|
-
}, e), o), /* @__PURE__ */ i.createElement(Ia.Provider, {
|
|
1377
|
-
value: r
|
|
1378
|
-
}, s);
|
|
1379
|
-
});
|
|
1380
|
-
process.env.NODE_ENV !== "production" && (ln.displayName = "SubMenu");
|
|
1381
|
-
function Da(e) {
|
|
1382
|
-
var t = e.className, a = e.style, n = i.useContext(ze), r = n.prefixCls, o = rn();
|
|
1383
|
-
return o ? null : /* @__PURE__ */ i.createElement("li", {
|
|
1384
|
-
role: "separator",
|
|
1385
|
-
className: D("".concat(r, "-item-divider"), t),
|
|
1386
|
-
style: a
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
var Ci = ["className", "title", "eventKey", "children"], $i = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1390
|
-
var a = e.className, n = e.title;
|
|
1391
|
-
e.eventKey;
|
|
1392
|
-
var r = e.children, o = Se(e, Ci), l = i.useContext(ze), s = l.prefixCls, c = "".concat(s, "-item-group");
|
|
1393
|
-
return /* @__PURE__ */ i.createElement("li", ae({
|
|
1394
|
-
ref: t,
|
|
1395
|
-
role: "presentation"
|
|
1396
|
-
}, o, {
|
|
1397
|
-
onClick: function(v) {
|
|
1398
|
-
return v.stopPropagation();
|
|
1399
|
-
},
|
|
1400
|
-
className: D(c, a)
|
|
1401
|
-
}), /* @__PURE__ */ i.createElement("div", {
|
|
1402
|
-
role: "presentation",
|
|
1403
|
-
className: "".concat(c, "-title"),
|
|
1404
|
-
title: typeof n == "string" ? n : void 0
|
|
1405
|
-
}, n), /* @__PURE__ */ i.createElement("ul", {
|
|
1406
|
-
role: "group",
|
|
1407
|
-
className: "".concat(c, "-list")
|
|
1408
|
-
}, r));
|
|
1409
|
-
}), Vn = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1410
|
-
var a = e.eventKey, n = e.children, r = zt(a), o = Kn(n, r), l = rn();
|
|
1411
|
-
return l ? o : /* @__PURE__ */ i.createElement($i, ae({
|
|
1412
|
-
ref: t
|
|
1413
|
-
}, it(e, ["warnKey"])), o);
|
|
1414
|
-
});
|
|
1415
|
-
process.env.NODE_ENV !== "production" && (Vn.displayName = "MenuItemGroup");
|
|
1416
|
-
var Si = ["label", "children", "key", "type", "extra"];
|
|
1417
|
-
function Rn(e, t, a) {
|
|
1418
|
-
var n = t.item, r = t.group, o = t.submenu, l = t.divider;
|
|
1419
|
-
return (e || []).map(function(s, c) {
|
|
1420
|
-
if (s && en(s) === "object") {
|
|
1421
|
-
var u = s, v = u.label, d = u.children, f = u.key, h = u.type, S = u.extra, g = Se(u, Si), x = f ?? "tmp-".concat(c);
|
|
1422
|
-
return d || h === "group" ? h === "group" ? /* @__PURE__ */ i.createElement(r, ae({
|
|
1423
|
-
key: x
|
|
1424
|
-
}, g, {
|
|
1425
|
-
title: v
|
|
1426
|
-
}), Rn(d, t, a)) : /* @__PURE__ */ i.createElement(o, ae({
|
|
1427
|
-
key: x
|
|
1428
|
-
}, g, {
|
|
1429
|
-
title: v
|
|
1430
|
-
}), Rn(d, t, a)) : h === "divider" ? /* @__PURE__ */ i.createElement(l, ae({
|
|
1431
|
-
key: x
|
|
1432
|
-
}, g)) : /* @__PURE__ */ i.createElement(n, ae({
|
|
1433
|
-
key: x
|
|
1434
|
-
}, g, {
|
|
1435
|
-
extra: S
|
|
1436
|
-
}), v, (!!S || S === 0) && /* @__PURE__ */ i.createElement("span", {
|
|
1437
|
-
className: "".concat(a, "-item-extra")
|
|
1438
|
-
}, S));
|
|
1439
|
-
}
|
|
1440
|
-
return null;
|
|
1441
|
-
}).filter(function(s) {
|
|
1442
|
-
return s;
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
function na(e, t, a, n, r) {
|
|
1446
|
-
var o = e, l = Y({
|
|
1447
|
-
divider: Da,
|
|
1448
|
-
item: on,
|
|
1449
|
-
group: Vn,
|
|
1450
|
-
submenu: ln
|
|
1451
|
-
}, n);
|
|
1452
|
-
return t && (o = Rn(t, l, r)), Kn(o, a);
|
|
1453
|
-
}
|
|
1454
|
-
var xi = ["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"], at = [], Ei = /* @__PURE__ */ i.forwardRef(function(e, t) {
|
|
1455
|
-
var a, n = e, r = n.prefixCls, o = r === void 0 ? "rc-menu" : r, l = n.rootClassName, s = n.style, c = n.className, u = n.tabIndex, v = u === void 0 ? 0 : u, d = n.items, f = n.children, h = n.direction, S = n.id, g = n.mode, x = g === void 0 ? "vertical" : g, p = n.inlineCollapsed, C = n.disabled, b = n.disabledOverflow, _ = n.subMenuOpenDelay, R = _ === void 0 ? 0.1 : _, P = n.subMenuCloseDelay, M = P === void 0 ? 0.1 : P, O = n.forceSubMenuRender, E = n.defaultOpenKeys, T = n.openKeys, y = n.activeKey, $ = n.defaultActiveFirst, N = n.selectable, I = N === void 0 ? !0 : N, j = n.multiple, G = j === void 0 ? !1 : j, m = n.defaultSelectedKeys, W = n.selectedKeys, J = n.onSelect, F = n.onDeselect, ee = n.inlineIndent, se = ee === void 0 ? 24 : ee, A = n.motion, K = n.defaultMotions, k = n.triggerSubMenuAction, V = k === void 0 ? "hover" : k, U = n.builtinPlacements, q = n.itemIcon, te = n.expandIcon, ie = n.overflowedIndicator, de = ie === void 0 ? "..." : ie, fe = n.overflowedIndicatorPopupClassName, Pe = n.getPopupContainer, H = n.onClick, me = n.onOpenChange, De = n.onKeyDown, Xe = n.openAnimation, oe = n.openTransitionName, Z = n._internalRenderMenuItem, ye = n._internalRenderSubMenuItem, Ie = n._internalComponents, He = Se(n, xi), et = i.useMemo(function() {
|
|
1456
|
-
return [na(f, d, at, Ie, o), na(f, d, at, {}, o)];
|
|
1457
|
-
}, [f, d, Ie]), Ye = z(et, 2), Oe = Ye[0], xe = Ye[1], Ct = i.useState(!1), Re = z(Ct, 2), Te = Re[0], Ge = Re[1], Le = i.useRef(), We = ni(S), Ae = h === "rtl";
|
|
1458
|
-
process.env.NODE_ENV !== "production" && rt(!Xe && !oe, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
1459
|
-
var ke = bt(E, {
|
|
1460
|
-
value: T,
|
|
1461
|
-
postState: function(Q) {
|
|
1462
|
-
return Q || at;
|
|
1463
|
-
}
|
|
1464
|
-
}), Ee = z(ke, 2), ce = Ee[0], lt = Ee[1], $t = function(Q) {
|
|
1465
|
-
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1466
|
-
function Ne() {
|
|
1467
|
-
lt(Q), me == null || me(Q);
|
|
1468
|
-
}
|
|
1469
|
-
le ? mr.flushSync(Ne) : Ne();
|
|
1470
|
-
}, kt = i.useState(ce), jt = z(kt, 2), un = jt[0], Bt = jt[1], St = i.useRef(!1), Kt = i.useMemo(function() {
|
|
1471
|
-
return (x === "inline" || x === "vertical") && p ? ["vertical", p] : [x, !1];
|
|
1472
|
-
}, [x, p]), Fe = z(Kt, 2), je = Fe[0], xt = Fe[1], Et = je === "inline", dn = i.useState(je), wt = z(dn, 2), pe = wt[0], Ze = wt[1], fn = i.useState(xt), tt = z(fn, 2), Vt = tt[0], Ht = tt[1];
|
|
1473
|
-
i.useEffect(function() {
|
|
1474
|
-
Ze(je), Ht(xt), St.current && (Et ? lt(un) : $t(at));
|
|
1475
|
-
}, [je, xt]);
|
|
1476
|
-
var st = i.useState(0), Gt = z(st, 2), ct = Gt[0], Wt = Gt[1], ut = ct >= Oe.length - 1 || pe !== "horizontal" || b;
|
|
1477
|
-
i.useEffect(function() {
|
|
1478
|
-
Et && Bt(ce);
|
|
1479
|
-
}, [ce]), i.useEffect(function() {
|
|
1480
|
-
return St.current = !0, function() {
|
|
1481
|
-
St.current = !1;
|
|
1482
|
-
};
|
|
1483
|
-
}, []);
|
|
1484
|
-
var qe = ei(), Ft = qe.registerPath, _t = qe.unregisterPath, nt = qe.refreshOverflowKeys, dt = qe.isSubPathKey, Pt = qe.getKeyPath, It = qe.getKeys, qt = qe.getSubPathKeys, X = i.useMemo(function() {
|
|
1485
|
-
return {
|
|
1486
|
-
registerPath: Ft,
|
|
1487
|
-
unregisterPath: _t
|
|
1488
|
-
};
|
|
1489
|
-
}, [Ft, _t]), L = i.useMemo(function() {
|
|
1490
|
-
return {
|
|
1491
|
-
isSubPathKey: dt
|
|
1492
|
-
};
|
|
1493
|
-
}, [dt]);
|
|
1494
|
-
i.useEffect(function() {
|
|
1495
|
-
nt(ut ? at : Oe.slice(ct + 1).map(function(ue) {
|
|
1496
|
-
return ue.key;
|
|
1497
|
-
}));
|
|
1498
|
-
}, [ct, ut]);
|
|
1499
|
-
var ne = bt(y || $ && ((a = Oe[0]) === null || a === void 0 ? void 0 : a.key), {
|
|
1500
|
-
value: y
|
|
1501
|
-
}), re = z(ne, 2), he = re[0], Ce = re[1], Je = Tt(function(ue) {
|
|
1502
|
-
Ce(ue);
|
|
1503
|
-
}), we = Tt(function() {
|
|
1504
|
-
Ce(void 0);
|
|
1505
|
-
});
|
|
1506
|
-
er(t, function() {
|
|
1507
|
-
return {
|
|
1508
|
-
list: Le.current,
|
|
1509
|
-
focus: function(Q) {
|
|
1510
|
-
var le, Ne = It(), Me = Pn(Ne, We), Ut = Me.elements, pn = Me.key2element, Ya = Me.element2key, qn = kn(Le.current, Ut), Un = he ?? (qn[0] ? Ya.get(qn[0]) : (le = Oe.find(function(Za) {
|
|
1511
|
-
return !Za.props.disabled;
|
|
1512
|
-
})) === null || le === void 0 ? void 0 : le.key), Nt = pn.get(Un);
|
|
1513
|
-
if (Un && Nt) {
|
|
1514
|
-
var bn;
|
|
1515
|
-
Nt == null || (bn = Nt.focus) === null || bn === void 0 || bn.call(Nt, Q);
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
});
|
|
1520
|
-
var Rt = bt(m || [], {
|
|
1521
|
-
value: W,
|
|
1522
|
-
// Legacy convert key to array
|
|
1523
|
-
postState: function(Q) {
|
|
1524
|
-
return Array.isArray(Q) ? Q : Q == null ? at : [Q];
|
|
1525
|
-
}
|
|
1526
|
-
}), Ue = z(Rt, 2), ft = Ue[0], vn = Ue[1], mn = function(Q) {
|
|
1527
|
-
if (I) {
|
|
1528
|
-
var le = Q.key, Ne = ft.includes(le), Me;
|
|
1529
|
-
G ? Ne ? Me = ft.filter(function(pn) {
|
|
1530
|
-
return pn !== le;
|
|
1531
|
-
}) : Me = [].concat(Ke(ft), [le]) : Me = [le], vn(Me);
|
|
1532
|
-
var Ut = Y(Y({}, Q), {}, {
|
|
1533
|
-
selectedKeys: Me
|
|
1534
|
-
});
|
|
1535
|
-
Ne ? F == null || F(Ut) : J == null || J(Ut);
|
|
1536
|
-
}
|
|
1537
|
-
!G && ce.length && pe !== "inline" && $t(at);
|
|
1538
|
-
}, gn = Tt(function(ue) {
|
|
1539
|
-
H == null || H(Qt(ue)), mn(ue);
|
|
1540
|
-
}), Fn = Tt(function(ue, Q) {
|
|
1541
|
-
var le = ce.filter(function(Me) {
|
|
1542
|
-
return Me !== ue;
|
|
1543
|
-
});
|
|
1544
|
-
if (Q)
|
|
1545
|
-
le.push(ue);
|
|
1546
|
-
else if (pe !== "inline") {
|
|
1547
|
-
var Ne = qt(ue);
|
|
1548
|
-
le = le.filter(function(Me) {
|
|
1549
|
-
return !Ne.has(Me);
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
pa(ce, le, !0) || $t(le, !0);
|
|
1553
|
-
}), Wa = function(Q, le) {
|
|
1554
|
-
var Ne = le ?? !ce.includes(Q);
|
|
1555
|
-
Fn(Q, Ne);
|
|
1556
|
-
}, Fa = Zr(pe, he, Ae, We, Le, It, Pt, Ce, Wa, De);
|
|
1557
|
-
i.useEffect(function() {
|
|
1558
|
-
Ge(!0);
|
|
1559
|
-
}, []);
|
|
1560
|
-
var qa = i.useMemo(function() {
|
|
1561
|
-
return {
|
|
1562
|
-
_internalRenderMenuItem: Z,
|
|
1563
|
-
_internalRenderSubMenuItem: ye
|
|
1564
|
-
};
|
|
1565
|
-
}, [Z, ye]), Ua = pe !== "horizontal" || b ? Oe : (
|
|
1566
|
-
// Need wrap for overflow dropdown that do not response for open
|
|
1567
|
-
Oe.map(function(ue, Q) {
|
|
1568
|
-
return (
|
|
1569
|
-
// Always wrap provider to avoid sub node re-mount
|
|
1570
|
-
/* @__PURE__ */ i.createElement(Dt, {
|
|
1571
|
-
key: ue.key,
|
|
1572
|
-
overflowDisabled: Q > ct
|
|
1573
|
-
}, ue)
|
|
1574
|
-
);
|
|
1575
|
-
})
|
|
1576
|
-
), Xa = /* @__PURE__ */ i.createElement(Lt, ae({
|
|
1577
|
-
id: S,
|
|
1578
|
-
ref: Le,
|
|
1579
|
-
prefixCls: "".concat(o, "-overflow"),
|
|
1580
|
-
component: "ul",
|
|
1581
|
-
itemComponent: on,
|
|
1582
|
-
className: D(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), c, B(B({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), Ae), l),
|
|
1583
|
-
dir: h,
|
|
1584
|
-
style: s,
|
|
1585
|
-
role: "menu",
|
|
1586
|
-
tabIndex: v,
|
|
1587
|
-
data: Ua,
|
|
1588
|
-
renderRawItem: function(Q) {
|
|
1589
|
-
return Q;
|
|
1590
|
-
},
|
|
1591
|
-
renderRawRest: function(Q) {
|
|
1592
|
-
var le = Q.length, Ne = le ? Oe.slice(-le) : null;
|
|
1593
|
-
return /* @__PURE__ */ i.createElement(ln, {
|
|
1594
|
-
eventKey: In,
|
|
1595
|
-
title: de,
|
|
1596
|
-
disabled: ut,
|
|
1597
|
-
internalPopupClose: le === 0,
|
|
1598
|
-
popupClassName: fe
|
|
1599
|
-
}, Ne);
|
|
1600
|
-
},
|
|
1601
|
-
maxCount: pe !== "horizontal" || b ? Lt.INVALIDATE : Lt.RESPONSIVE,
|
|
1602
|
-
ssr: "full",
|
|
1603
|
-
"data-menu-list": !0,
|
|
1604
|
-
onVisibleChange: function(Q) {
|
|
1605
|
-
Wt(Q);
|
|
1606
|
-
},
|
|
1607
|
-
onKeyDown: Fa
|
|
1608
|
-
}, He));
|
|
1609
|
-
return /* @__PURE__ */ i.createElement(An.Provider, {
|
|
1610
|
-
value: qa
|
|
1611
|
-
}, /* @__PURE__ */ i.createElement(Ea.Provider, {
|
|
1612
|
-
value: We
|
|
1613
|
-
}, /* @__PURE__ */ i.createElement(Dt, {
|
|
1614
|
-
prefixCls: o,
|
|
1615
|
-
rootClassName: l,
|
|
1616
|
-
mode: pe,
|
|
1617
|
-
openKeys: ce,
|
|
1618
|
-
rtl: Ae,
|
|
1619
|
-
disabled: C,
|
|
1620
|
-
motion: Te ? A : null,
|
|
1621
|
-
defaultMotions: Te ? K : null,
|
|
1622
|
-
activeKey: he,
|
|
1623
|
-
onActive: Je,
|
|
1624
|
-
onInactive: we,
|
|
1625
|
-
selectedKeys: ft,
|
|
1626
|
-
inlineIndent: se,
|
|
1627
|
-
subMenuOpenDelay: R,
|
|
1628
|
-
subMenuCloseDelay: M,
|
|
1629
|
-
forceSubMenuRender: O,
|
|
1630
|
-
builtinPlacements: U,
|
|
1631
|
-
triggerSubMenuAction: V,
|
|
1632
|
-
getPopupContainer: Pe,
|
|
1633
|
-
itemIcon: q,
|
|
1634
|
-
expandIcon: te,
|
|
1635
|
-
onItemClick: gn,
|
|
1636
|
-
onOpenChange: Fn
|
|
1637
|
-
}, /* @__PURE__ */ i.createElement(Ra.Provider, {
|
|
1638
|
-
value: L
|
|
1639
|
-
}, Xa), /* @__PURE__ */ i.createElement("div", {
|
|
1640
|
-
style: {
|
|
1641
|
-
display: "none"
|
|
1642
|
-
},
|
|
1643
|
-
"aria-hidden": !0
|
|
1644
|
-
}, /* @__PURE__ */ i.createElement(Pa.Provider, {
|
|
1645
|
-
value: X
|
|
1646
|
-
}, xe)))));
|
|
1647
|
-
}), At = Ei;
|
|
1648
|
-
At.Item = on;
|
|
1649
|
-
At.SubMenu = ln;
|
|
1650
|
-
At.ItemGroup = Vn;
|
|
1651
|
-
At.Divider = Da;
|
|
1652
|
-
var wi = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, _i = function(t, a) {
|
|
1653
|
-
return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
|
|
1654
|
-
ref: a,
|
|
1655
|
-
icon: wi
|
|
1656
|
-
}));
|
|
1657
|
-
}, za = /* @__PURE__ */ i.forwardRef(_i);
|
|
1658
|
-
process.env.NODE_ENV !== "production" && (za.displayName = "EllipsisOutlined");
|
|
1659
|
-
var Pi = { 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" }, Ii = function(t, a) {
|
|
1660
|
-
return /* @__PURE__ */ i.createElement(xa, ae({}, t, {
|
|
1661
|
-
ref: a,
|
|
1662
|
-
icon: Pi
|
|
1663
|
-
}));
|
|
1664
|
-
}, Aa = /* @__PURE__ */ i.forwardRef(Ii);
|
|
1665
|
-
process.env.NODE_ENV !== "production" && (Aa.displayName = "PlusOutlined");
|
|
1666
|
-
const sn = /* @__PURE__ */ tr(null);
|
|
1667
|
-
var Ri = function(t) {
|
|
1668
|
-
var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, s = l.size, c = l.align, u = c === void 0 ? "center" : c, v = be(), d = z(v, 2), f = d[0], h = d[1], S = ve(), g = _e.useCallback(function(p) {
|
|
1669
|
-
return typeof s == "function" ? s(p) : typeof s == "number" ? s : p;
|
|
1670
|
-
}, [s]);
|
|
1671
|
-
function x() {
|
|
1672
|
-
Qe.cancel(S.current);
|
|
1673
|
-
}
|
|
1674
|
-
return Be(function() {
|
|
1675
|
-
var p = {};
|
|
583
|
+
return be(function() {
|
|
584
|
+
var y = {};
|
|
1676
585
|
if (a)
|
|
1677
586
|
if (n) {
|
|
1678
|
-
|
|
1679
|
-
var
|
|
1680
|
-
|
|
587
|
+
y.width = p(a.width);
|
|
588
|
+
var S = r ? "right" : "left";
|
|
589
|
+
d === "start" && (y[S] = a[S]), d === "center" && (y[S] = a[S] + a.width / 2, y.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (y[S] = a[S] + a.width, y.transform = "translateX(-100%)");
|
|
1681
590
|
} else
|
|
1682
|
-
|
|
1683
|
-
return
|
|
1684
|
-
|
|
1685
|
-
}),
|
|
1686
|
-
}, [a, n, r,
|
|
1687
|
-
style:
|
|
591
|
+
y.height = p(a.height), d === "start" && (y.top = a.top), d === "center" && (y.top = a.top + a.height / 2, y.transform = "translateY(-50%)"), d === "end" && (y.top = a.top + a.height, y.transform = "translateY(-100%)");
|
|
592
|
+
return O(), N.current = Dt(function() {
|
|
593
|
+
C(y);
|
|
594
|
+
}), O;
|
|
595
|
+
}, [a, n, r, d, p]), {
|
|
596
|
+
style: v
|
|
1688
597
|
};
|
|
1689
|
-
},
|
|
598
|
+
}, Gt = {
|
|
1690
599
|
width: 0,
|
|
1691
600
|
height: 0,
|
|
1692
601
|
left: 0,
|
|
1693
602
|
top: 0
|
|
1694
603
|
};
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1697
|
-
for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) ||
|
|
1698
|
-
var c = e[
|
|
1699
|
-
if (!
|
|
1700
|
-
var
|
|
1701
|
-
|
|
604
|
+
function mn(e, t, a) {
|
|
605
|
+
return Qt(function() {
|
|
606
|
+
for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || Gt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
|
|
607
|
+
var c = e[i].key, d = t.get(c);
|
|
608
|
+
if (!d) {
|
|
609
|
+
var m;
|
|
610
|
+
d = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || Gt;
|
|
1702
611
|
}
|
|
1703
|
-
var
|
|
1704
|
-
|
|
612
|
+
var g = r.get(c) || le({}, d);
|
|
613
|
+
g.right = s - g.left - g.width, r.set(c, g);
|
|
1705
614
|
}
|
|
1706
615
|
return r;
|
|
1707
616
|
}, [e.map(function(n) {
|
|
1708
617
|
return n.key;
|
|
1709
618
|
}).join("_"), t, a]);
|
|
1710
619
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var a =
|
|
1713
|
-
function
|
|
1714
|
-
var c = typeof
|
|
620
|
+
function Wt(e, t) {
|
|
621
|
+
var a = l.useRef(e), n = l.useState({}), r = B(n, 2), o = r[1];
|
|
622
|
+
function s(i) {
|
|
623
|
+
var c = typeof i == "function" ? i(a.current) : i;
|
|
1715
624
|
c !== a.current && t(c, a.current), a.current = c, o({});
|
|
1716
625
|
}
|
|
1717
|
-
return [a.current,
|
|
626
|
+
return [a.current, s];
|
|
1718
627
|
}
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
var a =
|
|
1722
|
-
function
|
|
1723
|
-
var T =
|
|
628
|
+
var bn = 0.1, kt = 0.01, We = 20, Vt = Math.pow(0.995, We);
|
|
629
|
+
function vn(e, t) {
|
|
630
|
+
var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], m = U(0), g = B(m, 2), v = g[0], C = g[1], N = U(), p = B(N, 2), O = p[0], y = p[1], S = ee();
|
|
631
|
+
function P(w) {
|
|
632
|
+
var T = w.touches[0], b = T.screenX, h = T.screenY;
|
|
1724
633
|
o({
|
|
1725
|
-
x:
|
|
1726
|
-
y:
|
|
1727
|
-
}), window.clearInterval(
|
|
634
|
+
x: b,
|
|
635
|
+
y: h
|
|
636
|
+
}), window.clearInterval(S.current);
|
|
1728
637
|
}
|
|
1729
|
-
function
|
|
638
|
+
function z(w) {
|
|
1730
639
|
if (r) {
|
|
1731
|
-
var T =
|
|
640
|
+
var T = w.touches[0], b = T.screenX, h = T.screenY;
|
|
1732
641
|
o({
|
|
1733
|
-
x:
|
|
1734
|
-
y:
|
|
642
|
+
x: b,
|
|
643
|
+
y: h
|
|
1735
644
|
});
|
|
1736
|
-
var
|
|
1737
|
-
t(
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1740
|
-
x:
|
|
1741
|
-
y:
|
|
645
|
+
var _ = b - r.x, x = h - r.y;
|
|
646
|
+
t(_, x);
|
|
647
|
+
var W = Date.now();
|
|
648
|
+
d(W), C(W - c), y({
|
|
649
|
+
x: _,
|
|
650
|
+
y: x
|
|
1742
651
|
});
|
|
1743
652
|
}
|
|
1744
653
|
}
|
|
1745
|
-
function
|
|
1746
|
-
if (r && (o(null),
|
|
1747
|
-
var
|
|
1748
|
-
if (Math.max(
|
|
1749
|
-
var
|
|
1750
|
-
|
|
1751
|
-
if (Math.abs(
|
|
1752
|
-
window.clearInterval(
|
|
654
|
+
function j() {
|
|
655
|
+
if (r && (o(null), y(null), O)) {
|
|
656
|
+
var w = O.x / v, T = O.y / v, b = Math.abs(w), h = Math.abs(T);
|
|
657
|
+
if (Math.max(b, h) < bn) return;
|
|
658
|
+
var _ = w, x = T;
|
|
659
|
+
S.current = window.setInterval(function() {
|
|
660
|
+
if (Math.abs(_) < kt && Math.abs(x) < kt) {
|
|
661
|
+
window.clearInterval(S.current);
|
|
1753
662
|
return;
|
|
1754
663
|
}
|
|
1755
|
-
|
|
1756
|
-
},
|
|
664
|
+
_ *= Vt, x *= Vt, t(_ * We, x * We);
|
|
665
|
+
}, We);
|
|
1757
666
|
}
|
|
1758
667
|
}
|
|
1759
|
-
var
|
|
1760
|
-
function
|
|
1761
|
-
var T =
|
|
1762
|
-
|
|
668
|
+
var G = ee();
|
|
669
|
+
function D(w) {
|
|
670
|
+
var T = w.deltaX, b = w.deltaY, h = 0, _ = Math.abs(T), x = Math.abs(b);
|
|
671
|
+
_ === x ? h = G.current === "x" ? T : b : _ > x ? (h = T, G.current = "x") : (h = b, G.current = "y"), t(-h, -h) && w.preventDefault();
|
|
1763
672
|
}
|
|
1764
|
-
var
|
|
1765
|
-
|
|
1766
|
-
onTouchStart:
|
|
1767
|
-
onTouchMove:
|
|
1768
|
-
onTouchEnd:
|
|
1769
|
-
onWheel:
|
|
1770
|
-
},
|
|
1771
|
-
function
|
|
1772
|
-
|
|
673
|
+
var I = ee(null);
|
|
674
|
+
I.current = {
|
|
675
|
+
onTouchStart: P,
|
|
676
|
+
onTouchMove: z,
|
|
677
|
+
onTouchEnd: j,
|
|
678
|
+
onWheel: D
|
|
679
|
+
}, l.useEffect(function() {
|
|
680
|
+
function w(_) {
|
|
681
|
+
I.current.onTouchStart(_);
|
|
1773
682
|
}
|
|
1774
|
-
function T(
|
|
1775
|
-
|
|
683
|
+
function T(_) {
|
|
684
|
+
I.current.onTouchMove(_);
|
|
1776
685
|
}
|
|
1777
|
-
function
|
|
1778
|
-
|
|
686
|
+
function b(_) {
|
|
687
|
+
I.current.onTouchEnd(_);
|
|
1779
688
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
689
|
+
function h(_) {
|
|
690
|
+
I.current.onWheel(_);
|
|
1782
691
|
}
|
|
1783
692
|
return document.addEventListener("touchmove", T, {
|
|
1784
693
|
passive: !1
|
|
1785
|
-
}), document.addEventListener("touchend",
|
|
694
|
+
}), document.addEventListener("touchend", b, {
|
|
1786
695
|
passive: !0
|
|
1787
|
-
}), e.current.addEventListener("touchstart",
|
|
696
|
+
}), e.current.addEventListener("touchstart", w, {
|
|
1788
697
|
passive: !0
|
|
1789
|
-
}), e.current.addEventListener("wheel",
|
|
698
|
+
}), e.current.addEventListener("wheel", h, {
|
|
1790
699
|
passive: !1
|
|
1791
700
|
}), function() {
|
|
1792
|
-
document.removeEventListener("touchmove", T), document.removeEventListener("touchend",
|
|
701
|
+
document.removeEventListener("touchmove", T), document.removeEventListener("touchend", b);
|
|
1793
702
|
};
|
|
1794
703
|
}, []);
|
|
1795
704
|
}
|
|
1796
|
-
function
|
|
1797
|
-
var t =
|
|
1798
|
-
return
|
|
1799
|
-
var
|
|
1800
|
-
(
|
|
705
|
+
function ta(e) {
|
|
706
|
+
var t = U(0), a = B(t, 2), n = a[0], r = a[1], o = ee(0), s = ee();
|
|
707
|
+
return s.current = e, Ta(function() {
|
|
708
|
+
var i;
|
|
709
|
+
(i = s.current) === null || i === void 0 || i.call(s);
|
|
1801
710
|
}, [n]), function() {
|
|
1802
711
|
o.current === n && (o.current += 1, r(o.current));
|
|
1803
712
|
};
|
|
1804
713
|
}
|
|
1805
|
-
function
|
|
1806
|
-
var t =
|
|
714
|
+
function pn(e) {
|
|
715
|
+
var t = ee([]), a = U({}), n = B(a, 2), r = n[1], o = ee(typeof e == "function" ? e() : e), s = ta(function() {
|
|
1807
716
|
var c = o.current;
|
|
1808
|
-
t.current.forEach(function(
|
|
1809
|
-
c =
|
|
717
|
+
t.current.forEach(function(d) {
|
|
718
|
+
c = d(c);
|
|
1810
719
|
}), t.current = [], o.current = c, r({});
|
|
1811
720
|
});
|
|
1812
|
-
function
|
|
1813
|
-
t.current.push(c),
|
|
721
|
+
function i(c) {
|
|
722
|
+
t.current.push(c), s();
|
|
1814
723
|
}
|
|
1815
|
-
return [o.current,
|
|
724
|
+
return [o.current, i];
|
|
1816
725
|
}
|
|
1817
|
-
var
|
|
726
|
+
var Kt = {
|
|
1818
727
|
width: 0,
|
|
1819
728
|
height: 0,
|
|
1820
729
|
left: 0,
|
|
1821
730
|
top: 0,
|
|
1822
731
|
right: 0
|
|
1823
732
|
};
|
|
1824
|
-
function
|
|
1825
|
-
var
|
|
1826
|
-
return ["top", "bottom"].includes(c) ? (
|
|
1827
|
-
if (!
|
|
733
|
+
function hn(e, t, a, n, r, o, s) {
|
|
734
|
+
var i = s.tabs, c = s.tabPosition, d = s.rtl, m, g, v;
|
|
735
|
+
return ["top", "bottom"].includes(c) ? (m = "width", g = d ? "right" : "left", v = Math.abs(a)) : (m = "height", g = "top", v = -a), Qt(function() {
|
|
736
|
+
if (!i.length)
|
|
1828
737
|
return [0, 0];
|
|
1829
|
-
for (var
|
|
1830
|
-
var
|
|
1831
|
-
if (Math.floor(
|
|
1832
|
-
|
|
738
|
+
for (var C = i.length, N = C, p = 0; p < C; p += 1) {
|
|
739
|
+
var O = e.get(i[p].key) || Kt;
|
|
740
|
+
if (Math.floor(O[g] + O[m]) > Math.floor(v + t)) {
|
|
741
|
+
N = p - 1;
|
|
1833
742
|
break;
|
|
1834
743
|
}
|
|
1835
744
|
}
|
|
1836
|
-
for (var
|
|
1837
|
-
var
|
|
1838
|
-
if (
|
|
1839
|
-
|
|
745
|
+
for (var y = 0, S = C - 1; S >= 0; S -= 1) {
|
|
746
|
+
var P = e.get(i[S].key) || Kt;
|
|
747
|
+
if (P[g] < v) {
|
|
748
|
+
y = S + 1;
|
|
1840
749
|
break;
|
|
1841
750
|
}
|
|
1842
751
|
}
|
|
1843
|
-
return
|
|
1844
|
-
}, [e, t, n, r, o,
|
|
1845
|
-
return
|
|
1846
|
-
}).join("_"),
|
|
752
|
+
return y >= N ? [0, 0] : [y, N];
|
|
753
|
+
}, [e, t, n, r, o, v, c, i.map(function(C) {
|
|
754
|
+
return C.key;
|
|
755
|
+
}).join("_"), d]);
|
|
1847
756
|
}
|
|
1848
|
-
function
|
|
757
|
+
function qt(e) {
|
|
1849
758
|
var t;
|
|
1850
759
|
return e instanceof Map ? (t = {}, e.forEach(function(a, n) {
|
|
1851
760
|
t[n] = a;
|
|
1852
761
|
})) : t = e, JSON.stringify(t);
|
|
1853
762
|
}
|
|
1854
|
-
var
|
|
1855
|
-
function
|
|
1856
|
-
return String(e).replace(/"/g,
|
|
763
|
+
var $n = "TABS_DQ";
|
|
764
|
+
function aa(e) {
|
|
765
|
+
return String(e).replace(/"/g, $n);
|
|
1857
766
|
}
|
|
1858
|
-
function
|
|
767
|
+
function ht(e, t, a, n) {
|
|
1859
768
|
return (
|
|
1860
769
|
// Only editable tabs can be removed
|
|
1861
770
|
!(!a || // Tabs cannot be removed when disabled
|
|
@@ -1864,192 +773,192 @@ function Hn(e, t, a, n) {
|
|
|
1864
773
|
e === void 0 && (t === !1 || t === null))
|
|
1865
774
|
);
|
|
1866
775
|
}
|
|
1867
|
-
var
|
|
776
|
+
var na = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1868
777
|
var a = e.prefixCls, n = e.editable, r = e.locale, o = e.style;
|
|
1869
|
-
return !n || n.showAdd === !1 ? null : /* @__PURE__ */
|
|
778
|
+
return !n || n.showAdd === !1 ? null : /* @__PURE__ */ l.createElement("button", {
|
|
1870
779
|
ref: t,
|
|
1871
780
|
type: "button",
|
|
1872
781
|
className: "".concat(a, "-nav-add"),
|
|
1873
782
|
style: o,
|
|
1874
783
|
"aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
|
|
1875
|
-
onClick: function(
|
|
784
|
+
onClick: function(i) {
|
|
1876
785
|
n.onEdit("add", {
|
|
1877
|
-
event:
|
|
786
|
+
event: i
|
|
1878
787
|
});
|
|
1879
788
|
}
|
|
1880
789
|
}, n.addIcon || "+");
|
|
1881
|
-
}),
|
|
790
|
+
}), ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1882
791
|
var a = e.position, n = e.prefixCls, r = e.extra;
|
|
1883
792
|
if (!r)
|
|
1884
793
|
return null;
|
|
1885
|
-
var o,
|
|
1886
|
-
return
|
|
794
|
+
var o, s = {};
|
|
795
|
+
return ft(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
|
|
1887
796
|
className: "".concat(n, "-extra-content"),
|
|
1888
797
|
ref: t
|
|
1889
798
|
}, o) : null;
|
|
1890
799
|
});
|
|
1891
|
-
process.env.NODE_ENV !== "production" && (
|
|
1892
|
-
var
|
|
1893
|
-
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale,
|
|
1894
|
-
function
|
|
1895
|
-
|
|
1896
|
-
key:
|
|
1897
|
-
event:
|
|
800
|
+
process.env.NODE_ENV !== "production" && (ut.displayName = "ExtraContent");
|
|
801
|
+
var yn = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
802
|
+
var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, m = e.className, g = e.editable, v = e.tabBarGutter, C = e.rtl, N = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], G = U(null), D = B(G, 2), I = D[0], w = D[1], T = c.icon, b = T === void 0 ? "More" : T, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = I !== null ? "".concat(h, "-").concat(I) : null, W = o == null ? void 0 : o.dropdownAriaLabel;
|
|
803
|
+
function X(R, H) {
|
|
804
|
+
R.preventDefault(), R.stopPropagation(), g.onEdit("remove", {
|
|
805
|
+
key: H,
|
|
806
|
+
event: R
|
|
1898
807
|
});
|
|
1899
808
|
}
|
|
1900
|
-
var
|
|
1901
|
-
onClick: function(
|
|
1902
|
-
var k =
|
|
1903
|
-
|
|
809
|
+
var f = /* @__PURE__ */ l.createElement(Da, {
|
|
810
|
+
onClick: function(H) {
|
|
811
|
+
var k = H.key, Q = H.domEvent;
|
|
812
|
+
p(k, Q), j(!1);
|
|
1904
813
|
},
|
|
1905
|
-
prefixCls: "".concat(
|
|
1906
|
-
id:
|
|
814
|
+
prefixCls: "".concat(_, "-menu"),
|
|
815
|
+
id: h,
|
|
1907
816
|
tabIndex: -1,
|
|
1908
817
|
role: "listbox",
|
|
1909
|
-
"aria-activedescendant":
|
|
1910
|
-
selectedKeys: [
|
|
1911
|
-
"aria-label":
|
|
1912
|
-
}, r.map(function(
|
|
1913
|
-
var
|
|
1914
|
-
return /* @__PURE__ */
|
|
1915
|
-
key:
|
|
1916
|
-
id: "".concat(
|
|
818
|
+
"aria-activedescendant": x,
|
|
819
|
+
selectedKeys: [I],
|
|
820
|
+
"aria-label": W !== void 0 ? W : "expanded dropdown"
|
|
821
|
+
}, r.map(function(R) {
|
|
822
|
+
var H = R.closable, k = R.disabled, Q = R.closeIcon, Z = R.key, ne = R.label, ae = ht(H, Q, g, k);
|
|
823
|
+
return /* @__PURE__ */ l.createElement(Aa, {
|
|
824
|
+
key: Z,
|
|
825
|
+
id: "".concat(h, "-").concat(Z),
|
|
1917
826
|
role: "option",
|
|
1918
|
-
"aria-controls": n && "".concat(n, "-panel-").concat(
|
|
827
|
+
"aria-controls": n && "".concat(n, "-panel-").concat(Z),
|
|
1919
828
|
disabled: k
|
|
1920
|
-
}, /* @__PURE__ */
|
|
829
|
+
}, /* @__PURE__ */ l.createElement("span", null, ne), ae && /* @__PURE__ */ l.createElement("button", {
|
|
1921
830
|
type: "button",
|
|
1922
|
-
"aria-label":
|
|
831
|
+
"aria-label": N || "remove",
|
|
1923
832
|
tabIndex: 0,
|
|
1924
|
-
className: "".concat(
|
|
1925
|
-
onClick: function(
|
|
1926
|
-
|
|
833
|
+
className: "".concat(_, "-menu-item-remove"),
|
|
834
|
+
onClick: function(ge) {
|
|
835
|
+
ge.stopPropagation(), X(ge, Z);
|
|
1927
836
|
}
|
|
1928
|
-
},
|
|
837
|
+
}, Q || g.removeIcon || "×"));
|
|
1929
838
|
}));
|
|
1930
|
-
function
|
|
1931
|
-
for (var
|
|
1932
|
-
return !
|
|
1933
|
-
}), k =
|
|
1934
|
-
return
|
|
1935
|
-
}) || 0,
|
|
1936
|
-
k = (k +
|
|
1937
|
-
var
|
|
1938
|
-
if (!
|
|
1939
|
-
|
|
839
|
+
function Y(R) {
|
|
840
|
+
for (var H = r.filter(function(ae) {
|
|
841
|
+
return !ae.disabled;
|
|
842
|
+
}), k = H.findIndex(function(ae) {
|
|
843
|
+
return ae.key === I;
|
|
844
|
+
}) || 0, Q = H.length, Z = 0; Z < Q; Z += 1) {
|
|
845
|
+
k = (k + R + Q) % Q;
|
|
846
|
+
var ne = H[k];
|
|
847
|
+
if (!ne.disabled) {
|
|
848
|
+
w(ne.key);
|
|
1940
849
|
return;
|
|
1941
850
|
}
|
|
1942
851
|
}
|
|
1943
852
|
}
|
|
1944
|
-
function
|
|
1945
|
-
var
|
|
1946
|
-
if (!
|
|
1947
|
-
[
|
|
853
|
+
function se(R) {
|
|
854
|
+
var H = R.which;
|
|
855
|
+
if (!z) {
|
|
856
|
+
[Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), R.preventDefault());
|
|
1948
857
|
return;
|
|
1949
858
|
}
|
|
1950
|
-
switch (
|
|
1951
|
-
case
|
|
1952
|
-
|
|
859
|
+
switch (H) {
|
|
860
|
+
case Ce.UP:
|
|
861
|
+
Y(-1), R.preventDefault();
|
|
1953
862
|
break;
|
|
1954
|
-
case
|
|
1955
|
-
|
|
863
|
+
case Ce.DOWN:
|
|
864
|
+
Y(1), R.preventDefault();
|
|
1956
865
|
break;
|
|
1957
|
-
case
|
|
1958
|
-
|
|
866
|
+
case Ce.ESC:
|
|
867
|
+
j(!1);
|
|
1959
868
|
break;
|
|
1960
|
-
case
|
|
1961
|
-
case
|
|
1962
|
-
|
|
869
|
+
case Ce.SPACE:
|
|
870
|
+
case Ce.ENTER:
|
|
871
|
+
I !== null && p(I, R);
|
|
1963
872
|
break;
|
|
1964
873
|
}
|
|
1965
874
|
}
|
|
1966
|
-
|
|
1967
|
-
var
|
|
1968
|
-
|
|
1969
|
-
}, [
|
|
1970
|
-
|
|
1971
|
-
}, [
|
|
1972
|
-
var
|
|
1973
|
-
r.length || (
|
|
1974
|
-
var
|
|
1975
|
-
prefixCls:
|
|
1976
|
-
overlay:
|
|
1977
|
-
visible: r.length ?
|
|
1978
|
-
onVisibleChange:
|
|
1979
|
-
overlayClassName:
|
|
875
|
+
be(function() {
|
|
876
|
+
var R = document.getElementById(x);
|
|
877
|
+
R && R.scrollIntoView && R.scrollIntoView(!1);
|
|
878
|
+
}, [I]), be(function() {
|
|
879
|
+
z || w(null);
|
|
880
|
+
}, [z]);
|
|
881
|
+
var q = te({}, C ? "marginRight" : "marginLeft", v);
|
|
882
|
+
r.length || (q.visibility = "hidden", q.order = 1);
|
|
883
|
+
var J = E(te({}, "".concat(_, "-rtl"), C)), ce = s ? null : /* @__PURE__ */ l.createElement(Ha, he({
|
|
884
|
+
prefixCls: _,
|
|
885
|
+
overlay: f,
|
|
886
|
+
visible: r.length ? z : !1,
|
|
887
|
+
onVisibleChange: j,
|
|
888
|
+
overlayClassName: E(J, y),
|
|
1980
889
|
mouseEnterDelay: 0.1,
|
|
1981
890
|
mouseLeaveDelay: 0.1,
|
|
1982
|
-
getPopupContainer:
|
|
1983
|
-
}, c), /* @__PURE__ */
|
|
891
|
+
getPopupContainer: O
|
|
892
|
+
}, c), /* @__PURE__ */ l.createElement("button", {
|
|
1984
893
|
type: "button",
|
|
1985
894
|
className: "".concat(a, "-nav-more"),
|
|
1986
|
-
style:
|
|
895
|
+
style: q,
|
|
1987
896
|
tabIndex: -1,
|
|
1988
897
|
"aria-hidden": "true",
|
|
1989
898
|
"aria-haspopup": "listbox",
|
|
1990
|
-
"aria-controls":
|
|
899
|
+
"aria-controls": h,
|
|
1991
900
|
id: "".concat(n, "-more"),
|
|
1992
|
-
"aria-expanded":
|
|
1993
|
-
onKeyDown:
|
|
1994
|
-
},
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
className:
|
|
1997
|
-
style:
|
|
901
|
+
"aria-expanded": z,
|
|
902
|
+
onKeyDown: se
|
|
903
|
+
}, b));
|
|
904
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
905
|
+
className: E("".concat(a, "-nav-operations"), m),
|
|
906
|
+
style: d,
|
|
1998
907
|
ref: t
|
|
1999
|
-
},
|
|
908
|
+
}, ce, /* @__PURE__ */ l.createElement(na, {
|
|
2000
909
|
prefixCls: a,
|
|
2001
910
|
locale: o,
|
|
2002
|
-
editable:
|
|
911
|
+
editable: g
|
|
2003
912
|
}));
|
|
2004
913
|
});
|
|
2005
|
-
const
|
|
914
|
+
const Sn = /* @__PURE__ */ l.memo(yn, function(e, t) {
|
|
2006
915
|
return (
|
|
2007
916
|
// https://github.com/ant-design/ant-design/issues/32544
|
|
2008
917
|
// We'd better remove syntactic sugar in `rc-menu` since this has perf issue
|
|
2009
918
|
t.tabMoving
|
|
2010
919
|
);
|
|
2011
920
|
});
|
|
2012
|
-
var
|
|
2013
|
-
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus,
|
|
2014
|
-
function
|
|
2015
|
-
|
|
921
|
+
var Cn = function(t) {
|
|
922
|
+
var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, m = s.closeIcon, g = s.icon, v = t.closable, C = t.renderWrapper, N = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, G = t.style, D = t.tabCount, I = t.currentPosition, w = "".concat(a, "-tab"), T = ht(v, m, p, d);
|
|
923
|
+
function b(X) {
|
|
924
|
+
d || O(X);
|
|
2016
925
|
}
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2019
|
-
key:
|
|
2020
|
-
event:
|
|
926
|
+
function h(X) {
|
|
927
|
+
X.preventDefault(), X.stopPropagation(), p.onEdit("remove", {
|
|
928
|
+
key: i,
|
|
929
|
+
event: X
|
|
2021
930
|
});
|
|
2022
931
|
}
|
|
2023
|
-
var
|
|
2024
|
-
return
|
|
2025
|
-
}, [c,
|
|
2026
|
-
|
|
2027
|
-
o &&
|
|
932
|
+
var _ = l.useMemo(function() {
|
|
933
|
+
return g && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
|
|
934
|
+
}, [c, g]), x = l.useRef(null);
|
|
935
|
+
l.useEffect(function() {
|
|
936
|
+
o && x.current && x.current.focus();
|
|
2028
937
|
}, [o]);
|
|
2029
|
-
var
|
|
2030
|
-
key:
|
|
2031
|
-
"data-node-key":
|
|
2032
|
-
className:
|
|
2033
|
-
style:
|
|
2034
|
-
onClick:
|
|
2035
|
-
}, /* @__PURE__ */
|
|
2036
|
-
ref:
|
|
938
|
+
var W = /* @__PURE__ */ l.createElement("div", {
|
|
939
|
+
key: i,
|
|
940
|
+
"data-node-key": aa(i),
|
|
941
|
+
className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), T), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
|
|
942
|
+
style: G,
|
|
943
|
+
onClick: b
|
|
944
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
945
|
+
ref: x,
|
|
2037
946
|
role: "tab",
|
|
2038
947
|
"aria-selected": r,
|
|
2039
|
-
id: n && "".concat(n, "-tab-").concat(
|
|
2040
|
-
className: "".concat(
|
|
2041
|
-
"aria-controls": n && "".concat(n, "-panel-").concat(
|
|
2042
|
-
"aria-disabled":
|
|
2043
|
-
tabIndex:
|
|
2044
|
-
onClick: function(
|
|
2045
|
-
|
|
948
|
+
id: n && "".concat(n, "-tab-").concat(i),
|
|
949
|
+
className: "".concat(w, "-btn"),
|
|
950
|
+
"aria-controls": n && "".concat(n, "-panel-").concat(i),
|
|
951
|
+
"aria-disabled": d,
|
|
952
|
+
tabIndex: d ? null : r ? 0 : -1,
|
|
953
|
+
onClick: function(f) {
|
|
954
|
+
f.stopPropagation(), b(f);
|
|
2046
955
|
},
|
|
2047
|
-
onKeyDown:
|
|
2048
|
-
onMouseDown:
|
|
2049
|
-
onMouseUp:
|
|
2050
|
-
onFocus:
|
|
2051
|
-
onBlur:
|
|
2052
|
-
}, o && /* @__PURE__ */
|
|
956
|
+
onKeyDown: P,
|
|
957
|
+
onMouseDown: z,
|
|
958
|
+
onMouseUp: j,
|
|
959
|
+
onFocus: y,
|
|
960
|
+
onBlur: S
|
|
961
|
+
}, o && /* @__PURE__ */ l.createElement("div", {
|
|
2053
962
|
"aria-live": "polite",
|
|
2054
963
|
style: {
|
|
2055
964
|
width: 0,
|
|
@@ -2058,341 +967,341 @@ var ki = function(t) {
|
|
|
2058
967
|
overflow: "hidden",
|
|
2059
968
|
opacity: 0
|
|
2060
969
|
}
|
|
2061
|
-
}, "Tab ".concat(
|
|
2062
|
-
className: "".concat(
|
|
2063
|
-
},
|
|
970
|
+
}, "Tab ".concat(I, " of ").concat(D)), g && /* @__PURE__ */ l.createElement("span", {
|
|
971
|
+
className: "".concat(w, "-icon")
|
|
972
|
+
}, g), c && _), T && /* @__PURE__ */ l.createElement("button", {
|
|
2064
973
|
type: "button",
|
|
2065
|
-
"aria-label":
|
|
974
|
+
"aria-label": N || "remove",
|
|
2066
975
|
tabIndex: r ? 0 : -1,
|
|
2067
|
-
className: "".concat(
|
|
2068
|
-
onClick: function(
|
|
2069
|
-
|
|
976
|
+
className: "".concat(w, "-remove"),
|
|
977
|
+
onClick: function(f) {
|
|
978
|
+
f.stopPropagation(), h(f);
|
|
2070
979
|
}
|
|
2071
|
-
},
|
|
2072
|
-
return
|
|
2073
|
-
},
|
|
2074
|
-
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop,
|
|
2075
|
-
return Math.abs(c - n) < 1 ? [c,
|
|
2076
|
-
},
|
|
2077
|
-
var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight,
|
|
980
|
+
}, m || p.removeIcon || "×"));
|
|
981
|
+
return C ? C(W) : W;
|
|
982
|
+
}, xn = function(t, a) {
|
|
983
|
+
var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, m = i.left, g = i.top;
|
|
984
|
+
return Math.abs(c - n) < 1 ? [c, d, m - a.left, g - a.top] : [n, r, s, o];
|
|
985
|
+
}, Re = function(t) {
|
|
986
|
+
var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, s = o === void 0 ? 0 : o;
|
|
2078
987
|
if (t.current) {
|
|
2079
|
-
var
|
|
988
|
+
var i = t.current.getBoundingClientRect(), c = i.width, d = i.height;
|
|
2080
989
|
if (Math.abs(c - r) < 1)
|
|
2081
|
-
return [c,
|
|
990
|
+
return [c, d];
|
|
2082
991
|
}
|
|
2083
|
-
return [r,
|
|
2084
|
-
},
|
|
992
|
+
return [r, s];
|
|
993
|
+
}, Ge = function(t, a) {
|
|
2085
994
|
return t[a ? 0 : 1];
|
|
2086
|
-
},
|
|
2087
|
-
var a = e.className, n = e.style, r = e.id, o = e.animated,
|
|
2088
|
-
|
|
2089
|
-
direction:
|
|
995
|
+
}, Ft = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
996
|
+
var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, m = e.locale, g = e.tabPosition, v = e.tabBarGutter, C = e.children, N = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), G = ee(null), D = ee(null), I = ee(null), w = ee(null), T = ee(null), b = g === "top" || g === "bottom", h = Wt(0, function(M, $) {
|
|
997
|
+
b && p && p({
|
|
998
|
+
direction: M > $ ? "left" : "right"
|
|
2090
999
|
});
|
|
2091
|
-
}),
|
|
2092
|
-
!
|
|
2093
|
-
direction:
|
|
1000
|
+
}), _ = B(h, 2), x = _[0], W = _[1], X = Wt(0, function(M, $) {
|
|
1001
|
+
!b && p && p({
|
|
1002
|
+
direction: M > $ ? "top" : "bottom"
|
|
2094
1003
|
});
|
|
2095
|
-
}),
|
|
2096
|
-
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
1004
|
+
}), f = B(X, 2), Y = f[0], se = f[1], q = U([0, 0]), J = B(q, 2), ce = J[0], R = J[1], H = U([0, 0]), k = B(H, 2), Q = k[0], Z = k[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], ge = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = pn(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = mn(P, F, Q[0]), _e = Ge(ce, b), Me = Ge(Q, b), Ye = Ge($e, b), St = Ge(L, b), Ct = Math.floor(_e) < Math.floor(Me + Ye), me = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
|
|
1005
|
+
b && i ? (Se = 0, we = Math.max(0, Me - me)) : (Se = Math.min(0, me - Me), we = 0);
|
|
1006
|
+
function Qe(M) {
|
|
1007
|
+
return M < Se ? Se : M > we ? we : M;
|
|
2099
1008
|
}
|
|
2100
|
-
var
|
|
2101
|
-
function
|
|
2102
|
-
|
|
1009
|
+
var Ze = ee(null), ca = U(), xt = B(ca, 2), De = xt[0], _t = xt[1];
|
|
1010
|
+
function Je() {
|
|
1011
|
+
_t(Date.now());
|
|
2103
1012
|
}
|
|
2104
|
-
function
|
|
2105
|
-
|
|
1013
|
+
function et() {
|
|
1014
|
+
Ze.current && clearTimeout(Ze.current);
|
|
2106
1015
|
}
|
|
2107
|
-
|
|
2108
|
-
function
|
|
2109
|
-
|
|
2110
|
-
var
|
|
2111
|
-
return
|
|
1016
|
+
vn(D, function(M, $) {
|
|
1017
|
+
function A(K, fe) {
|
|
1018
|
+
K(function(ie) {
|
|
1019
|
+
var Ne = Qe(ie + fe);
|
|
1020
|
+
return Ne;
|
|
2112
1021
|
});
|
|
2113
1022
|
}
|
|
2114
|
-
return
|
|
2115
|
-
}),
|
|
2116
|
-
return
|
|
2117
|
-
|
|
2118
|
-
}, 100)),
|
|
2119
|
-
}, [
|
|
2120
|
-
var
|
|
2121
|
-
|
|
1023
|
+
return Ct ? (b ? A(W, M) : A(se, $), et(), Je(), !0) : !1;
|
|
1024
|
+
}), be(function() {
|
|
1025
|
+
return et(), De && (Ze.current = setTimeout(function() {
|
|
1026
|
+
_t(0);
|
|
1027
|
+
}, 100)), et;
|
|
1028
|
+
}, [De]);
|
|
1029
|
+
var da = hn(
|
|
1030
|
+
ue,
|
|
2122
1031
|
// Container
|
|
2123
|
-
|
|
1032
|
+
me,
|
|
2124
1033
|
// Transform
|
|
2125
|
-
|
|
1034
|
+
b ? x : Y,
|
|
2126
1035
|
// Tabs
|
|
2127
|
-
|
|
1036
|
+
Me,
|
|
2128
1037
|
// Add
|
|
2129
|
-
et,
|
|
2130
|
-
// Operation
|
|
2131
1038
|
Ye,
|
|
2132
|
-
|
|
2133
|
-
|
|
1039
|
+
// Operation
|
|
1040
|
+
St,
|
|
1041
|
+
le(le({}, e), {}, {
|
|
1042
|
+
tabs: P
|
|
2134
1043
|
})
|
|
2135
|
-
),
|
|
2136
|
-
var
|
|
1044
|
+
), wt = B(da, 2), ua = wt[0], fa = wt[1], Et = Ra(function() {
|
|
1045
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s, $ = ue.get(M) || {
|
|
2137
1046
|
width: 0,
|
|
2138
1047
|
height: 0,
|
|
2139
1048
|
left: 0,
|
|
2140
1049
|
right: 0,
|
|
2141
1050
|
top: 0
|
|
2142
1051
|
};
|
|
2143
|
-
if (
|
|
2144
|
-
var
|
|
2145
|
-
|
|
1052
|
+
if (b) {
|
|
1053
|
+
var A = x;
|
|
1054
|
+
i ? $.right < x ? A = $.right : $.right + $.width > x + me && (A = $.right + $.width - me) : $.left < -x ? A = -$.left : $.left + $.width > -x + me && (A = -($.left + $.width - me)), se(0), W(Qe(A));
|
|
2146
1055
|
} else {
|
|
2147
|
-
var
|
|
2148
|
-
|
|
1056
|
+
var K = Y;
|
|
1057
|
+
$.top < -Y ? K = -$.top : $.top + $.height > -Y + me && (K = -($.top + $.height - me)), W(0), se(Qe(K));
|
|
2149
1058
|
}
|
|
2150
|
-
}),
|
|
2151
|
-
return !
|
|
2152
|
-
}).map(function(
|
|
2153
|
-
return
|
|
2154
|
-
}),
|
|
2155
|
-
var
|
|
2156
|
-
|
|
2157
|
-
},
|
|
2158
|
-
var
|
|
2159
|
-
switch (
|
|
1059
|
+
}), ga = U(), Pt = B(ga, 2), Pe = Pt[0], Le = Pt[1], ma = U(!1), Ot = B(ma, 2), ba = Ot[0], Nt = Ot[1], pe = P.filter(function(M) {
|
|
1060
|
+
return !M.disabled;
|
|
1061
|
+
}).map(function(M) {
|
|
1062
|
+
return M.key;
|
|
1063
|
+
}), Oe = function($) {
|
|
1064
|
+
var A = pe.indexOf(Pe || s), K = pe.length, fe = (A + $ + K) % K, ie = pe[fe];
|
|
1065
|
+
Le(ie);
|
|
1066
|
+
}, va = function($) {
|
|
1067
|
+
var A = $.code, K = i && b, fe = pe[0], ie = pe[pe.length - 1];
|
|
1068
|
+
switch (A) {
|
|
2160
1069
|
case "ArrowLeft": {
|
|
2161
|
-
|
|
1070
|
+
b && Oe(K ? 1 : -1);
|
|
2162
1071
|
break;
|
|
2163
1072
|
}
|
|
2164
1073
|
case "ArrowRight": {
|
|
2165
|
-
|
|
1074
|
+
b && Oe(K ? -1 : 1);
|
|
2166
1075
|
break;
|
|
2167
1076
|
}
|
|
2168
1077
|
case "ArrowUp": {
|
|
2169
|
-
|
|
1078
|
+
$.preventDefault(), b || Oe(-1);
|
|
2170
1079
|
break;
|
|
2171
1080
|
}
|
|
2172
1081
|
case "ArrowDown": {
|
|
2173
|
-
|
|
1082
|
+
$.preventDefault(), b || Oe(1);
|
|
2174
1083
|
break;
|
|
2175
1084
|
}
|
|
2176
1085
|
case "Home": {
|
|
2177
|
-
|
|
1086
|
+
$.preventDefault(), Le(fe);
|
|
2178
1087
|
break;
|
|
2179
1088
|
}
|
|
2180
1089
|
case "End": {
|
|
2181
|
-
|
|
1090
|
+
$.preventDefault(), Le(ie);
|
|
2182
1091
|
break;
|
|
2183
1092
|
}
|
|
2184
1093
|
case "Enter":
|
|
2185
1094
|
case "Space": {
|
|
2186
|
-
|
|
1095
|
+
$.preventDefault(), N(Pe, $);
|
|
2187
1096
|
break;
|
|
2188
1097
|
}
|
|
2189
1098
|
case "Backspace":
|
|
2190
1099
|
case "Delete": {
|
|
2191
|
-
var
|
|
2192
|
-
return
|
|
2193
|
-
}),
|
|
2194
|
-
|
|
2195
|
-
key:
|
|
2196
|
-
event:
|
|
2197
|
-
}),
|
|
1100
|
+
var Ne = pe.indexOf(Pe), oe = P.find(function(Te) {
|
|
1101
|
+
return Te.key === Pe;
|
|
1102
|
+
}), nt = ht(oe == null ? void 0 : oe.closable, oe == null ? void 0 : oe.closeIcon, d, oe == null ? void 0 : oe.disabled);
|
|
1103
|
+
nt && ($.preventDefault(), $.stopPropagation(), d.onEdit("remove", {
|
|
1104
|
+
key: Pe,
|
|
1105
|
+
event: $
|
|
1106
|
+
}), Ne === pe.length - 1 ? Oe(-1) : Oe(1));
|
|
2198
1107
|
break;
|
|
2199
1108
|
}
|
|
2200
1109
|
}
|
|
2201
|
-
},
|
|
2202
|
-
|
|
2203
|
-
var
|
|
2204
|
-
var
|
|
2205
|
-
return /* @__PURE__ */
|
|
1110
|
+
}, Ae = {};
|
|
1111
|
+
b ? Ae[i ? "marginRight" : "marginLeft"] = v : Ae.marginTop = v;
|
|
1112
|
+
var Tt = P.map(function(M, $) {
|
|
1113
|
+
var A = M.key;
|
|
1114
|
+
return /* @__PURE__ */ l.createElement(Cn, {
|
|
2206
1115
|
id: r,
|
|
2207
|
-
prefixCls:
|
|
2208
|
-
key:
|
|
2209
|
-
tab:
|
|
2210
|
-
style:
|
|
2211
|
-
closable:
|
|
2212
|
-
editable:
|
|
2213
|
-
active:
|
|
2214
|
-
focus:
|
|
2215
|
-
renderWrapper:
|
|
2216
|
-
removeAriaLabel:
|
|
1116
|
+
prefixCls: S,
|
|
1117
|
+
key: A,
|
|
1118
|
+
tab: M,
|
|
1119
|
+
style: $ === 0 ? void 0 : Ae,
|
|
1120
|
+
closable: M.closable,
|
|
1121
|
+
editable: d,
|
|
1122
|
+
active: A === s,
|
|
1123
|
+
focus: A === Pe,
|
|
1124
|
+
renderWrapper: C,
|
|
1125
|
+
removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
|
|
2217
1126
|
tabCount: pe.length,
|
|
2218
|
-
currentPosition:
|
|
2219
|
-
onClick: function(
|
|
2220
|
-
|
|
1127
|
+
currentPosition: $ + 1,
|
|
1128
|
+
onClick: function(fe) {
|
|
1129
|
+
N(A, fe);
|
|
2221
1130
|
},
|
|
2222
|
-
onKeyDown:
|
|
1131
|
+
onKeyDown: va,
|
|
2223
1132
|
onFocus: function() {
|
|
2224
|
-
|
|
1133
|
+
ba || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
|
|
2225
1134
|
},
|
|
2226
1135
|
onBlur: function() {
|
|
2227
|
-
|
|
1136
|
+
Le(void 0);
|
|
2228
1137
|
},
|
|
2229
1138
|
onMouseDown: function() {
|
|
2230
|
-
|
|
1139
|
+
Nt(!0);
|
|
2231
1140
|
},
|
|
2232
1141
|
onMouseUp: function() {
|
|
2233
|
-
|
|
1142
|
+
Nt(!1);
|
|
2234
1143
|
}
|
|
2235
1144
|
});
|
|
2236
|
-
}),
|
|
2237
|
-
return
|
|
2238
|
-
var
|
|
2239
|
-
return
|
|
2240
|
-
var
|
|
2241
|
-
if (
|
|
2242
|
-
var
|
|
2243
|
-
|
|
2244
|
-
width:
|
|
2245
|
-
height:
|
|
2246
|
-
left:
|
|
2247
|
-
top:
|
|
1145
|
+
}), Rt = function() {
|
|
1146
|
+
return V(function() {
|
|
1147
|
+
var $, A = /* @__PURE__ */ new Map(), K = ($ = I.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
|
|
1148
|
+
return P.forEach(function(fe) {
|
|
1149
|
+
var ie, Ne = fe.key, oe = (ie = I.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Ne), '"]'));
|
|
1150
|
+
if (oe) {
|
|
1151
|
+
var nt = xn(oe, K), Te = B(nt, 4), Sa = Te[0], Ca = Te[1], xa = Te[2], _a = Te[3];
|
|
1152
|
+
A.set(Ne, {
|
|
1153
|
+
width: Sa,
|
|
1154
|
+
height: Ca,
|
|
1155
|
+
left: xa,
|
|
1156
|
+
top: _a
|
|
2248
1157
|
});
|
|
2249
1158
|
}
|
|
2250
|
-
}),
|
|
1159
|
+
}), A;
|
|
2251
1160
|
});
|
|
2252
1161
|
};
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}, [
|
|
2256
|
-
return
|
|
1162
|
+
be(function() {
|
|
1163
|
+
Rt();
|
|
1164
|
+
}, [P.map(function(M) {
|
|
1165
|
+
return M.key;
|
|
2257
1166
|
}).join("_")]);
|
|
2258
|
-
var
|
|
2259
|
-
var
|
|
2260
|
-
|
|
2261
|
-
var
|
|
2262
|
-
|
|
2263
|
-
var
|
|
2264
|
-
|
|
2265
|
-
var
|
|
2266
|
-
|
|
2267
|
-
}),
|
|
2268
|
-
activeTabOffset:
|
|
2269
|
-
horizontal:
|
|
2270
|
-
indicator:
|
|
2271
|
-
rtl:
|
|
2272
|
-
}),
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
}, [
|
|
2276
|
-
|
|
2277
|
-
}, [
|
|
2278
|
-
var
|
|
2279
|
-
return
|
|
2280
|
-
onResize:
|
|
2281
|
-
}, /* @__PURE__ */
|
|
2282
|
-
ref:
|
|
1167
|
+
var He = ta(function() {
|
|
1168
|
+
var M = Re(z), $ = Re(j), A = Re(G);
|
|
1169
|
+
R([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
|
|
1170
|
+
var K = Re(T);
|
|
1171
|
+
ge(K);
|
|
1172
|
+
var fe = Re(w);
|
|
1173
|
+
de(fe);
|
|
1174
|
+
var ie = Re(I);
|
|
1175
|
+
Z([ie[0] - K[0], ie[1] - K[1]]), Rt();
|
|
1176
|
+
}), pa = P.slice(0, ua), ha = P.slice(fa + 1), It = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = gn({
|
|
1177
|
+
activeTabOffset: zt,
|
|
1178
|
+
horizontal: b,
|
|
1179
|
+
indicator: O,
|
|
1180
|
+
rtl: i
|
|
1181
|
+
}), ya = $a.style;
|
|
1182
|
+
be(function() {
|
|
1183
|
+
Et();
|
|
1184
|
+
}, [s, Se, we, qt(zt), qt(ue), b]), be(function() {
|
|
1185
|
+
He();
|
|
1186
|
+
}, [i]);
|
|
1187
|
+
var Mt = !!It.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
|
|
1188
|
+
return b ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
|
|
1189
|
+
onResize: He
|
|
1190
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1191
|
+
ref: Ia(t, z),
|
|
2283
1192
|
role: "tablist",
|
|
2284
|
-
"aria-orientation":
|
|
2285
|
-
className:
|
|
1193
|
+
"aria-orientation": b ? "horizontal" : "vertical",
|
|
1194
|
+
className: E("".concat(S, "-nav"), a),
|
|
2286
1195
|
style: n,
|
|
2287
1196
|
onKeyDown: function() {
|
|
2288
|
-
|
|
1197
|
+
Je();
|
|
2289
1198
|
}
|
|
2290
|
-
}, /* @__PURE__ */
|
|
2291
|
-
ref:
|
|
1199
|
+
}, /* @__PURE__ */ l.createElement(ut, {
|
|
1200
|
+
ref: j,
|
|
2292
1201
|
position: "left",
|
|
2293
1202
|
extra: c,
|
|
2294
|
-
prefixCls:
|
|
2295
|
-
}), /* @__PURE__ */
|
|
2296
|
-
onResize:
|
|
2297
|
-
}, /* @__PURE__ */
|
|
2298
|
-
className:
|
|
2299
|
-
ref:
|
|
2300
|
-
}, /* @__PURE__ */
|
|
2301
|
-
onResize:
|
|
2302
|
-
}, /* @__PURE__ */
|
|
2303
|
-
ref:
|
|
2304
|
-
className: "".concat(
|
|
1203
|
+
prefixCls: S
|
|
1204
|
+
}), /* @__PURE__ */ l.createElement(rt, {
|
|
1205
|
+
onResize: He
|
|
1206
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1207
|
+
className: E(je, te(te(te(te({}, "".concat(je, "-ping-left"), tt), "".concat(je, "-ping-right"), at), "".concat(je, "-ping-top"), Lt), "".concat(je, "-ping-bottom"), jt)),
|
|
1208
|
+
ref: D
|
|
1209
|
+
}, /* @__PURE__ */ l.createElement(rt, {
|
|
1210
|
+
onResize: He
|
|
1211
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1212
|
+
ref: I,
|
|
1213
|
+
className: "".concat(S, "-nav-list"),
|
|
2305
1214
|
style: {
|
|
2306
|
-
transform: "translate(".concat(
|
|
2307
|
-
transition:
|
|
1215
|
+
transform: "translate(".concat(x, "px, ").concat(Y, "px)"),
|
|
1216
|
+
transition: De ? "none" : void 0
|
|
2308
1217
|
}
|
|
2309
|
-
},
|
|
1218
|
+
}, Tt, /* @__PURE__ */ l.createElement(na, {
|
|
2310
1219
|
ref: T,
|
|
2311
|
-
prefixCls:
|
|
2312
|
-
locale:
|
|
2313
|
-
editable:
|
|
2314
|
-
style:
|
|
2315
|
-
visibility:
|
|
1220
|
+
prefixCls: S,
|
|
1221
|
+
locale: m,
|
|
1222
|
+
editable: d,
|
|
1223
|
+
style: le(le({}, Tt.length === 0 ? void 0 : Ae), {}, {
|
|
1224
|
+
visibility: Mt ? "hidden" : null
|
|
2316
1225
|
})
|
|
2317
|
-
}), /* @__PURE__ */
|
|
2318
|
-
className:
|
|
2319
|
-
style:
|
|
2320
|
-
}))))), /* @__PURE__ */
|
|
2321
|
-
removeAriaLabel:
|
|
2322
|
-
ref:
|
|
2323
|
-
prefixCls:
|
|
2324
|
-
tabs:
|
|
2325
|
-
className: !
|
|
2326
|
-
tabMoving: !!
|
|
2327
|
-
})), /* @__PURE__ */
|
|
2328
|
-
ref:
|
|
1226
|
+
}), /* @__PURE__ */ l.createElement("div", {
|
|
1227
|
+
className: E("".concat(S, "-ink-bar"), te({}, "".concat(S, "-ink-bar-animated"), o.inkBar)),
|
|
1228
|
+
style: ya
|
|
1229
|
+
}))))), /* @__PURE__ */ l.createElement(Sn, he({}, e, {
|
|
1230
|
+
removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
|
|
1231
|
+
ref: w,
|
|
1232
|
+
prefixCls: S,
|
|
1233
|
+
tabs: It,
|
|
1234
|
+
className: !Mt && sa,
|
|
1235
|
+
tabMoving: !!De
|
|
1236
|
+
})), /* @__PURE__ */ l.createElement(ut, {
|
|
1237
|
+
ref: G,
|
|
2329
1238
|
position: "right",
|
|
2330
1239
|
extra: c,
|
|
2331
|
-
prefixCls:
|
|
1240
|
+
prefixCls: S
|
|
2332
1241
|
})));
|
|
2333
|
-
}),
|
|
2334
|
-
var a = e.prefixCls, n = e.className, r = e.style, o = e.id,
|
|
2335
|
-
return /* @__PURE__ */
|
|
2336
|
-
id: o && "".concat(o, "-panel-").concat(
|
|
1242
|
+
}), $t = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1243
|
+
var a = e.prefixCls, n = e.className, r = e.style, o = e.id, s = e.active, i = e.tabKey, c = e.children;
|
|
1244
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
1245
|
+
id: o && "".concat(o, "-panel-").concat(i),
|
|
2337
1246
|
role: "tabpanel",
|
|
2338
|
-
tabIndex:
|
|
2339
|
-
"aria-labelledby": o && "".concat(o, "-tab-").concat(
|
|
2340
|
-
"aria-hidden": !
|
|
1247
|
+
tabIndex: s ? 0 : -1,
|
|
1248
|
+
"aria-labelledby": o && "".concat(o, "-tab-").concat(i),
|
|
1249
|
+
"aria-hidden": !s,
|
|
2341
1250
|
style: r,
|
|
2342
|
-
className:
|
|
1251
|
+
className: E(a, s && "".concat(a, "-active"), n),
|
|
2343
1252
|
ref: t
|
|
2344
1253
|
}, c);
|
|
2345
1254
|
});
|
|
2346
|
-
process.env.NODE_ENV !== "production" && (
|
|
2347
|
-
var
|
|
2348
|
-
var a = t.renderTabBar, n =
|
|
1255
|
+
process.env.NODE_ENV !== "production" && ($t.displayName = "TabPane");
|
|
1256
|
+
var _n = ["renderTabBar"], wn = ["label", "key"], ra = function(t) {
|
|
1257
|
+
var a = t.renderTabBar, n = ke(t, _n), r = l.useContext(Xe), o = r.tabs;
|
|
2349
1258
|
if (a) {
|
|
2350
|
-
var
|
|
1259
|
+
var s = le(le({}, n), {}, {
|
|
2351
1260
|
// Legacy support. We do not use this actually
|
|
2352
|
-
panes: o.map(function(
|
|
2353
|
-
var c =
|
|
2354
|
-
return /* @__PURE__ */
|
|
1261
|
+
panes: o.map(function(i) {
|
|
1262
|
+
var c = i.label, d = i.key, m = ke(i, wn);
|
|
1263
|
+
return /* @__PURE__ */ l.createElement($t, he({
|
|
2355
1264
|
tab: c,
|
|
2356
|
-
key:
|
|
2357
|
-
tabKey:
|
|
2358
|
-
},
|
|
1265
|
+
key: d,
|
|
1266
|
+
tabKey: d
|
|
1267
|
+
}, m));
|
|
2359
1268
|
})
|
|
2360
1269
|
});
|
|
2361
|
-
return a(
|
|
1270
|
+
return a(s, Ft);
|
|
2362
1271
|
}
|
|
2363
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ l.createElement(Ft, n);
|
|
2364
1273
|
};
|
|
2365
|
-
process.env.NODE_ENV !== "production" && (
|
|
2366
|
-
var
|
|
2367
|
-
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition,
|
|
2368
|
-
return /* @__PURE__ */
|
|
2369
|
-
className:
|
|
2370
|
-
}, /* @__PURE__ */
|
|
2371
|
-
className:
|
|
2372
|
-
},
|
|
2373
|
-
var
|
|
2374
|
-
return /* @__PURE__ */
|
|
2375
|
-
key:
|
|
2376
|
-
visible:
|
|
2377
|
-
forceRender:
|
|
2378
|
-
removeOnLeave: !!(
|
|
2379
|
-
leavedClassName: "".concat(
|
|
2380
|
-
}, r.tabPaneMotion), function(
|
|
2381
|
-
var
|
|
2382
|
-
return /* @__PURE__ */
|
|
2383
|
-
prefixCls:
|
|
1274
|
+
process.env.NODE_ENV !== "production" && (ra.displayName = "TabNavListWrapper");
|
|
1275
|
+
var En = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Pn = function(t) {
|
|
1276
|
+
var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, m = r.tabPane, g = "".concat(c, "-tabpane");
|
|
1277
|
+
return /* @__PURE__ */ l.createElement("div", {
|
|
1278
|
+
className: E("".concat(c, "-content-holder"))
|
|
1279
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
1280
|
+
className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), m))
|
|
1281
|
+
}, d.map(function(v) {
|
|
1282
|
+
var C = v.key, N = v.forceRender, p = v.style, O = v.className, y = v.destroyInactiveTabPane, S = ke(v, En), P = C === n;
|
|
1283
|
+
return /* @__PURE__ */ l.createElement(za, he({
|
|
1284
|
+
key: C,
|
|
1285
|
+
visible: P,
|
|
1286
|
+
forceRender: N,
|
|
1287
|
+
removeOnLeave: !!(s || y),
|
|
1288
|
+
leavedClassName: "".concat(g, "-hidden")
|
|
1289
|
+
}, r.tabPaneMotion), function(z, j) {
|
|
1290
|
+
var G = z.style, D = z.className;
|
|
1291
|
+
return /* @__PURE__ */ l.createElement($t, he({}, S, {
|
|
1292
|
+
prefixCls: g,
|
|
2384
1293
|
id: a,
|
|
2385
|
-
tabKey:
|
|
2386
|
-
animated:
|
|
2387
|
-
active:
|
|
2388
|
-
style:
|
|
2389
|
-
className:
|
|
2390
|
-
ref:
|
|
1294
|
+
tabKey: C,
|
|
1295
|
+
animated: m,
|
|
1296
|
+
active: P,
|
|
1297
|
+
style: le(le({}, p), G),
|
|
1298
|
+
className: E(O, D),
|
|
1299
|
+
ref: j
|
|
2391
1300
|
}));
|
|
2392
1301
|
});
|
|
2393
1302
|
})));
|
|
2394
1303
|
};
|
|
2395
|
-
function
|
|
1304
|
+
function On() {
|
|
2396
1305
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
2397
1306
|
inkBar: !0,
|
|
2398
1307
|
tabPane: !1
|
|
@@ -2403,98 +1312,98 @@ function Gi() {
|
|
|
2403
1312
|
} : e === !0 ? t = {
|
|
2404
1313
|
inkBar: !0,
|
|
2405
1314
|
tabPane: !1
|
|
2406
|
-
} : t =
|
|
1315
|
+
} : t = le({
|
|
2407
1316
|
inkBar: !0
|
|
2408
|
-
},
|
|
1317
|
+
}, ft(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
|
|
2409
1318
|
}
|
|
2410
|
-
var
|
|
2411
|
-
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className,
|
|
2412
|
-
return (
|
|
2413
|
-
return
|
|
1319
|
+
var Nn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
1320
|
+
var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, m = e.editable, g = e.animated, v = e.tabPosition, C = v === void 0 ? "top" : v, N = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, G = e.onTabClick, D = e.onTabScroll, I = e.getPopupContainer, w = e.popupClassName, T = e.indicator, b = ke(e, Nn), h = l.useMemo(function() {
|
|
1321
|
+
return (s || []).filter(function(L) {
|
|
1322
|
+
return L && ft(L) === "object" && "key" in L;
|
|
2414
1323
|
});
|
|
2415
|
-
}, [
|
|
2416
|
-
|
|
2417
|
-
|
|
1324
|
+
}, [s]), _ = i === "rtl", x = On(g), W = U(!1), X = B(W, 2), f = X[0], Y = X[1];
|
|
1325
|
+
be(function() {
|
|
1326
|
+
Y(La());
|
|
2418
1327
|
}, []);
|
|
2419
|
-
var
|
|
2420
|
-
var
|
|
2421
|
-
return (
|
|
1328
|
+
var se = Bt(function() {
|
|
1329
|
+
var L;
|
|
1330
|
+
return (L = h[0]) === null || L === void 0 ? void 0 : L.key;
|
|
2422
1331
|
}, {
|
|
2423
1332
|
value: c,
|
|
2424
|
-
defaultValue:
|
|
2425
|
-
}),
|
|
2426
|
-
return
|
|
2427
|
-
return
|
|
1333
|
+
defaultValue: d
|
|
1334
|
+
}), q = B(se, 2), J = q[0], ce = q[1], R = U(function() {
|
|
1335
|
+
return h.findIndex(function(L) {
|
|
1336
|
+
return L.key === J;
|
|
2428
1337
|
});
|
|
2429
|
-
}),
|
|
2430
|
-
|
|
2431
|
-
var
|
|
2432
|
-
return
|
|
1338
|
+
}), H = B(R, 2), k = H[0], Q = H[1];
|
|
1339
|
+
be(function() {
|
|
1340
|
+
var L = h.findIndex(function(xe) {
|
|
1341
|
+
return xe.key === J;
|
|
2433
1342
|
});
|
|
2434
|
-
if (
|
|
2435
|
-
var
|
|
2436
|
-
|
|
1343
|
+
if (L === -1) {
|
|
1344
|
+
var de;
|
|
1345
|
+
L = Math.max(0, Math.min(k, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
|
|
2437
1346
|
}
|
|
2438
|
-
|
|
2439
|
-
}, [
|
|
2440
|
-
return
|
|
2441
|
-
}).join("_"),
|
|
2442
|
-
var
|
|
1347
|
+
Q(L);
|
|
1348
|
+
}, [h.map(function(L) {
|
|
1349
|
+
return L.key;
|
|
1350
|
+
}).join("_"), J, k]);
|
|
1351
|
+
var Z = Bt(null, {
|
|
2443
1352
|
value: a
|
|
2444
|
-
}),
|
|
2445
|
-
|
|
2446
|
-
a || (
|
|
1353
|
+
}), ne = B(Z, 2), ae = ne[0], $e = ne[1];
|
|
1354
|
+
be(function() {
|
|
1355
|
+
a || ($e("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Xt)), Xt += 1);
|
|
2447
1356
|
}, []);
|
|
2448
|
-
function
|
|
2449
|
-
|
|
2450
|
-
var
|
|
2451
|
-
|
|
1357
|
+
function ge(L, de) {
|
|
1358
|
+
G == null || G(L, de);
|
|
1359
|
+
var xe = L !== J;
|
|
1360
|
+
ce(L), xe && (j == null || j(L));
|
|
2452
1361
|
}
|
|
2453
|
-
var
|
|
2454
|
-
id:
|
|
2455
|
-
activeKey:
|
|
2456
|
-
animated:
|
|
2457
|
-
tabPosition:
|
|
2458
|
-
rtl:
|
|
2459
|
-
mobile:
|
|
2460
|
-
},
|
|
2461
|
-
editable:
|
|
2462
|
-
locale:
|
|
2463
|
-
more:
|
|
2464
|
-
tabBarGutter:
|
|
2465
|
-
onTabClick:
|
|
2466
|
-
onTabScroll:
|
|
2467
|
-
extra:
|
|
2468
|
-
style:
|
|
1362
|
+
var re = {
|
|
1363
|
+
id: ae,
|
|
1364
|
+
activeKey: J,
|
|
1365
|
+
animated: x,
|
|
1366
|
+
tabPosition: C,
|
|
1367
|
+
rtl: _,
|
|
1368
|
+
mobile: f
|
|
1369
|
+
}, ye = le(le({}, re), {}, {
|
|
1370
|
+
editable: m,
|
|
1371
|
+
locale: y,
|
|
1372
|
+
more: S,
|
|
1373
|
+
tabBarGutter: N,
|
|
1374
|
+
onTabClick: ge,
|
|
1375
|
+
onTabScroll: D,
|
|
1376
|
+
extra: O,
|
|
1377
|
+
style: p,
|
|
2469
1378
|
panes: null,
|
|
2470
|
-
getPopupContainer:
|
|
2471
|
-
popupClassName:
|
|
1379
|
+
getPopupContainer: I,
|
|
1380
|
+
popupClassName: w,
|
|
2472
1381
|
indicator: T
|
|
2473
1382
|
});
|
|
2474
|
-
return /* @__PURE__ */
|
|
1383
|
+
return /* @__PURE__ */ l.createElement(Xe.Provider, {
|
|
2475
1384
|
value: {
|
|
2476
|
-
tabs:
|
|
1385
|
+
tabs: h,
|
|
2477
1386
|
prefixCls: r
|
|
2478
1387
|
}
|
|
2479
|
-
}, /* @__PURE__ */
|
|
1388
|
+
}, /* @__PURE__ */ l.createElement("div", he({
|
|
2480
1389
|
ref: t,
|
|
2481
1390
|
id: a,
|
|
2482
|
-
className:
|
|
2483
|
-
},
|
|
2484
|
-
renderTabBar:
|
|
2485
|
-
})), /* @__PURE__ */
|
|
2486
|
-
destroyInactiveTabPane:
|
|
2487
|
-
},
|
|
2488
|
-
animated:
|
|
1391
|
+
className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), f), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), _), o)
|
|
1392
|
+
}, b), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
|
|
1393
|
+
renderTabBar: z
|
|
1394
|
+
})), /* @__PURE__ */ l.createElement(Pn, he({
|
|
1395
|
+
destroyInactiveTabPane: P
|
|
1396
|
+
}, re, {
|
|
1397
|
+
animated: x
|
|
2489
1398
|
}))));
|
|
2490
1399
|
});
|
|
2491
|
-
process.env.NODE_ENV !== "production" && (
|
|
2492
|
-
const
|
|
1400
|
+
process.env.NODE_ENV !== "production" && (ia.displayName = "Tabs");
|
|
1401
|
+
const Tn = {
|
|
2493
1402
|
motionAppear: !1,
|
|
2494
1403
|
motionEnter: !0,
|
|
2495
1404
|
motionLeave: !0
|
|
2496
1405
|
};
|
|
2497
|
-
function
|
|
1406
|
+
function Rn(e) {
|
|
2498
1407
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2499
1408
|
inkBar: !0,
|
|
2500
1409
|
tabPane: !1
|
|
@@ -2507,42 +1416,42 @@ function qi(e) {
|
|
|
2507
1416
|
tabPane: !0
|
|
2508
1417
|
} : a = Object.assign({
|
|
2509
1418
|
inkBar: !0
|
|
2510
|
-
}, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({},
|
|
2511
|
-
motionName:
|
|
1419
|
+
}, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Tn), {
|
|
1420
|
+
motionName: ja(e, "switch")
|
|
2512
1421
|
})), a;
|
|
2513
1422
|
}
|
|
2514
|
-
var
|
|
1423
|
+
var In = function(e, t) {
|
|
2515
1424
|
var a = {};
|
|
2516
1425
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
2517
1426
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
2518
1427
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
2519
1428
|
return a;
|
|
2520
1429
|
};
|
|
2521
|
-
function
|
|
1430
|
+
function zn(e) {
|
|
2522
1431
|
return e.filter((t) => t);
|
|
2523
1432
|
}
|
|
2524
|
-
function
|
|
2525
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1433
|
+
function Mn(e, t) {
|
|
1434
|
+
if (process.env.NODE_ENV !== "production" && bt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
|
|
2526
1435
|
return e;
|
|
2527
|
-
const a =
|
|
2528
|
-
if (/* @__PURE__ */
|
|
1436
|
+
const a = Na(t).map((n) => {
|
|
1437
|
+
if (/* @__PURE__ */ l.isValidElement(n)) {
|
|
2529
1438
|
const {
|
|
2530
1439
|
key: r,
|
|
2531
1440
|
props: o
|
|
2532
|
-
} = n,
|
|
2533
|
-
tab:
|
|
2534
|
-
} =
|
|
1441
|
+
} = n, s = o || {}, {
|
|
1442
|
+
tab: i
|
|
1443
|
+
} = s, c = In(s, ["tab"]);
|
|
2535
1444
|
return Object.assign(Object.assign({
|
|
2536
1445
|
key: String(r)
|
|
2537
1446
|
}, c), {
|
|
2538
|
-
label:
|
|
1447
|
+
label: i
|
|
2539
1448
|
});
|
|
2540
1449
|
}
|
|
2541
1450
|
return null;
|
|
2542
1451
|
});
|
|
2543
|
-
return
|
|
1452
|
+
return zn(a);
|
|
2544
1453
|
}
|
|
2545
|
-
const
|
|
1454
|
+
const Ln = (e) => {
|
|
2546
1455
|
const {
|
|
2547
1456
|
componentCls: t,
|
|
2548
1457
|
motionDurationSlow: a
|
|
@@ -2577,16 +1486,16 @@ const Zi = (e) => {
|
|
|
2577
1486
|
}
|
|
2578
1487
|
},
|
|
2579
1488
|
// Follow code may reuse in other components
|
|
2580
|
-
[
|
|
1489
|
+
[At(e, "slide-up"), At(e, "slide-down")]
|
|
2581
1490
|
];
|
|
2582
|
-
},
|
|
1491
|
+
}, jn = (e) => {
|
|
2583
1492
|
const {
|
|
2584
1493
|
componentCls: t,
|
|
2585
1494
|
tabsCardPadding: a,
|
|
2586
1495
|
cardBg: n,
|
|
2587
1496
|
cardGutter: r,
|
|
2588
1497
|
colorBorderSecondary: o,
|
|
2589
|
-
itemSelectedColor:
|
|
1498
|
+
itemSelectedColor: s
|
|
2590
1499
|
} = e;
|
|
2591
1500
|
return {
|
|
2592
1501
|
[`${t}-card`]: {
|
|
@@ -2595,14 +1504,14 @@ const Zi = (e) => {
|
|
|
2595
1504
|
margin: 0,
|
|
2596
1505
|
padding: a,
|
|
2597
1506
|
background: n,
|
|
2598
|
-
border: `${
|
|
1507
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
|
|
2599
1508
|
transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
|
|
2600
1509
|
},
|
|
2601
1510
|
[`${t}-tab-active`]: {
|
|
2602
|
-
color:
|
|
1511
|
+
color: s,
|
|
2603
1512
|
background: e.colorBgContainer
|
|
2604
1513
|
},
|
|
2605
|
-
[`${t}-tab-focus`]: Object.assign({},
|
|
1514
|
+
[`${t}-tab-focus`]: Object.assign({}, Zt(e, -3)),
|
|
2606
1515
|
[`${t}-ink-bar`]: {
|
|
2607
1516
|
visibility: "hidden"
|
|
2608
1517
|
},
|
|
@@ -2616,7 +1525,7 @@ const Zi = (e) => {
|
|
|
2616
1525
|
[`${t}-tab + ${t}-tab`]: {
|
|
2617
1526
|
marginLeft: {
|
|
2618
1527
|
_skip_check_: !0,
|
|
2619
|
-
value:
|
|
1528
|
+
value: u(r)
|
|
2620
1529
|
}
|
|
2621
1530
|
}
|
|
2622
1531
|
}
|
|
@@ -2624,7 +1533,7 @@ const Zi = (e) => {
|
|
|
2624
1533
|
[`&${t}-top`]: {
|
|
2625
1534
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2626
1535
|
[`${t}-tab`]: {
|
|
2627
|
-
borderRadius: `${
|
|
1536
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
2628
1537
|
},
|
|
2629
1538
|
[`${t}-tab-active`]: {
|
|
2630
1539
|
borderBottomColor: e.colorBgContainer
|
|
@@ -2634,7 +1543,7 @@ const Zi = (e) => {
|
|
|
2634
1543
|
[`&${t}-bottom`]: {
|
|
2635
1544
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2636
1545
|
[`${t}-tab`]: {
|
|
2637
|
-
borderRadius: `0 0 ${
|
|
1546
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2638
1547
|
},
|
|
2639
1548
|
[`${t}-tab-active`]: {
|
|
2640
1549
|
borderTopColor: e.colorBgContainer
|
|
@@ -2645,7 +1554,7 @@ const Zi = (e) => {
|
|
|
2645
1554
|
[`&${t}-left, &${t}-right`]: {
|
|
2646
1555
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2647
1556
|
[`${t}-tab + ${t}-tab`]: {
|
|
2648
|
-
marginTop:
|
|
1557
|
+
marginTop: u(r)
|
|
2649
1558
|
}
|
|
2650
1559
|
}
|
|
2651
1560
|
},
|
|
@@ -2654,7 +1563,7 @@ const Zi = (e) => {
|
|
|
2654
1563
|
[`${t}-tab`]: {
|
|
2655
1564
|
borderRadius: {
|
|
2656
1565
|
_skip_check_: !0,
|
|
2657
|
-
value: `${
|
|
1566
|
+
value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
|
|
2658
1567
|
}
|
|
2659
1568
|
},
|
|
2660
1569
|
[`${t}-tab-active`]: {
|
|
@@ -2670,7 +1579,7 @@ const Zi = (e) => {
|
|
|
2670
1579
|
[`${t}-tab`]: {
|
|
2671
1580
|
borderRadius: {
|
|
2672
1581
|
_skip_check_: !0,
|
|
2673
|
-
value: `0 ${
|
|
1582
|
+
value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
|
|
2674
1583
|
}
|
|
2675
1584
|
},
|
|
2676
1585
|
[`${t}-tab-active`]: {
|
|
@@ -2683,14 +1592,14 @@ const Zi = (e) => {
|
|
|
2683
1592
|
}
|
|
2684
1593
|
}
|
|
2685
1594
|
};
|
|
2686
|
-
},
|
|
1595
|
+
}, Bn = (e) => {
|
|
2687
1596
|
const {
|
|
2688
1597
|
componentCls: t,
|
|
2689
1598
|
itemHoverColor: a,
|
|
2690
1599
|
dropdownEdgeChildVerticalPadding: n
|
|
2691
1600
|
} = e;
|
|
2692
1601
|
return {
|
|
2693
|
-
[`${t}-dropdown`]: Object.assign(Object.assign({},
|
|
1602
|
+
[`${t}-dropdown`]: Object.assign(Object.assign({}, vt(e)), {
|
|
2694
1603
|
position: "absolute",
|
|
2695
1604
|
top: -9999,
|
|
2696
1605
|
left: {
|
|
@@ -2705,7 +1614,7 @@ const Zi = (e) => {
|
|
|
2705
1614
|
[`${t}-dropdown-menu`]: {
|
|
2706
1615
|
maxHeight: e.tabsDropdownHeight,
|
|
2707
1616
|
margin: 0,
|
|
2708
|
-
padding: `${
|
|
1617
|
+
padding: `${u(n)} 0`,
|
|
2709
1618
|
overflowX: "hidden",
|
|
2710
1619
|
overflowY: "auto",
|
|
2711
1620
|
textAlign: {
|
|
@@ -2718,12 +1627,12 @@ const Zi = (e) => {
|
|
|
2718
1627
|
borderRadius: e.borderRadiusLG,
|
|
2719
1628
|
outline: "none",
|
|
2720
1629
|
boxShadow: e.boxShadowSecondary,
|
|
2721
|
-
"&-item": Object.assign(Object.assign({},
|
|
1630
|
+
"&-item": Object.assign(Object.assign({}, pt), {
|
|
2722
1631
|
display: "flex",
|
|
2723
1632
|
alignItems: "center",
|
|
2724
1633
|
minWidth: e.tabsDropdownWidth,
|
|
2725
1634
|
margin: 0,
|
|
2726
|
-
padding: `${
|
|
1635
|
+
padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
|
|
2727
1636
|
color: e.colorText,
|
|
2728
1637
|
fontWeight: "normal",
|
|
2729
1638
|
fontSize: e.fontSize,
|
|
@@ -2763,15 +1672,15 @@ const Zi = (e) => {
|
|
|
2763
1672
|
}
|
|
2764
1673
|
})
|
|
2765
1674
|
};
|
|
2766
|
-
},
|
|
1675
|
+
}, Dn = (e) => {
|
|
2767
1676
|
const {
|
|
2768
1677
|
componentCls: t,
|
|
2769
1678
|
margin: a,
|
|
2770
1679
|
colorBorderSecondary: n,
|
|
2771
1680
|
horizontalMargin: r,
|
|
2772
1681
|
verticalItemPadding: o,
|
|
2773
|
-
verticalItemMargin:
|
|
2774
|
-
calc:
|
|
1682
|
+
verticalItemMargin: s,
|
|
1683
|
+
calc: i
|
|
2775
1684
|
} = e;
|
|
2776
1685
|
return {
|
|
2777
1686
|
// ========================== Top & Bottom ==========================
|
|
@@ -2789,7 +1698,7 @@ const Zi = (e) => {
|
|
|
2789
1698
|
_skip_check_: !0,
|
|
2790
1699
|
value: 0
|
|
2791
1700
|
},
|
|
2792
|
-
borderBottom: `${
|
|
1701
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${n}`,
|
|
2793
1702
|
content: "''"
|
|
2794
1703
|
},
|
|
2795
1704
|
[`${t}-ink-bar`]: {
|
|
@@ -2859,14 +1768,14 @@ const Zi = (e) => {
|
|
|
2859
1768
|
[`${t}-left, ${t}-right`]: {
|
|
2860
1769
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
2861
1770
|
flexDirection: "column",
|
|
2862
|
-
minWidth:
|
|
1771
|
+
minWidth: i(e.controlHeight).mul(1.25).equal(),
|
|
2863
1772
|
// >>>>>>>>>>> Tab
|
|
2864
1773
|
[`${t}-tab`]: {
|
|
2865
1774
|
padding: o,
|
|
2866
1775
|
textAlign: "center"
|
|
2867
1776
|
},
|
|
2868
1777
|
[`${t}-tab + ${t}-tab`]: {
|
|
2869
|
-
margin:
|
|
1778
|
+
margin: s
|
|
2870
1779
|
},
|
|
2871
1780
|
// >>>>>>>>>>> Nav
|
|
2872
1781
|
[`${t}-nav-wrap`]: {
|
|
@@ -2923,11 +1832,11 @@ const Zi = (e) => {
|
|
|
2923
1832
|
[`> ${t}-content-holder, > div > ${t}-content-holder`]: {
|
|
2924
1833
|
marginLeft: {
|
|
2925
1834
|
_skip_check_: !0,
|
|
2926
|
-
value:
|
|
1835
|
+
value: u(i(e.lineWidth).mul(-1).equal())
|
|
2927
1836
|
},
|
|
2928
1837
|
borderLeft: {
|
|
2929
1838
|
_skip_check_: !0,
|
|
2930
|
-
value: `${
|
|
1839
|
+
value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
2931
1840
|
},
|
|
2932
1841
|
[`> ${t}-content > ${t}-tabpane`]: {
|
|
2933
1842
|
paddingLeft: {
|
|
@@ -2951,11 +1860,11 @@ const Zi = (e) => {
|
|
|
2951
1860
|
order: 0,
|
|
2952
1861
|
marginRight: {
|
|
2953
1862
|
_skip_check_: !0,
|
|
2954
|
-
value:
|
|
1863
|
+
value: i(e.lineWidth).mul(-1).equal()
|
|
2955
1864
|
},
|
|
2956
1865
|
borderRight: {
|
|
2957
1866
|
_skip_check_: !0,
|
|
2958
|
-
value: `${
|
|
1867
|
+
value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
|
|
2959
1868
|
},
|
|
2960
1869
|
[`> ${t}-content > ${t}-tabpane`]: {
|
|
2961
1870
|
paddingRight: {
|
|
@@ -2966,7 +1875,7 @@ const Zi = (e) => {
|
|
|
2966
1875
|
}
|
|
2967
1876
|
}
|
|
2968
1877
|
};
|
|
2969
|
-
},
|
|
1878
|
+
}, An = (e) => {
|
|
2970
1879
|
const {
|
|
2971
1880
|
componentCls: t,
|
|
2972
1881
|
cardPaddingSM: a,
|
|
@@ -3002,19 +1911,19 @@ const Zi = (e) => {
|
|
|
3002
1911
|
},
|
|
3003
1912
|
[`&${t}-bottom`]: {
|
|
3004
1913
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3005
|
-
borderRadius: `0 0 ${
|
|
1914
|
+
borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
|
|
3006
1915
|
}
|
|
3007
1916
|
},
|
|
3008
1917
|
[`&${t}-top`]: {
|
|
3009
1918
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3010
|
-
borderRadius: `${
|
|
1919
|
+
borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
|
|
3011
1920
|
}
|
|
3012
1921
|
},
|
|
3013
1922
|
[`&${t}-right`]: {
|
|
3014
1923
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3015
1924
|
borderRadius: {
|
|
3016
1925
|
_skip_check_: !0,
|
|
3017
|
-
value: `0 ${
|
|
1926
|
+
value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
|
|
3018
1927
|
}
|
|
3019
1928
|
}
|
|
3020
1929
|
},
|
|
@@ -3022,7 +1931,7 @@ const Zi = (e) => {
|
|
|
3022
1931
|
[`> ${t}-nav ${t}-tab`]: {
|
|
3023
1932
|
borderRadius: {
|
|
3024
1933
|
_skip_check_: !0,
|
|
3025
|
-
value: `${
|
|
1934
|
+
value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
|
|
3026
1935
|
}
|
|
3027
1936
|
}
|
|
3028
1937
|
}
|
|
@@ -3036,25 +1945,25 @@ const Zi = (e) => {
|
|
|
3036
1945
|
}
|
|
3037
1946
|
}
|
|
3038
1947
|
};
|
|
3039
|
-
},
|
|
1948
|
+
}, Hn = (e) => {
|
|
3040
1949
|
const {
|
|
3041
1950
|
componentCls: t,
|
|
3042
1951
|
itemActiveColor: a,
|
|
3043
1952
|
itemHoverColor: n,
|
|
3044
1953
|
iconCls: r,
|
|
3045
1954
|
tabsHorizontalItemMargin: o,
|
|
3046
|
-
horizontalItemPadding:
|
|
3047
|
-
itemSelectedColor:
|
|
1955
|
+
horizontalItemPadding: s,
|
|
1956
|
+
itemSelectedColor: i,
|
|
3048
1957
|
itemColor: c
|
|
3049
|
-
} = e,
|
|
1958
|
+
} = e, d = `${t}-tab`;
|
|
3050
1959
|
return {
|
|
3051
|
-
[
|
|
1960
|
+
[d]: {
|
|
3052
1961
|
position: "relative",
|
|
3053
1962
|
WebkitTouchCallout: "none",
|
|
3054
1963
|
WebkitTapHighlightColor: "transparent",
|
|
3055
1964
|
display: "inline-flex",
|
|
3056
1965
|
alignItems: "center",
|
|
3057
|
-
padding:
|
|
1966
|
+
padding: s,
|
|
3058
1967
|
fontSize: e.titleFontSize,
|
|
3059
1968
|
background: "transparent",
|
|
3060
1969
|
border: 0,
|
|
@@ -3069,7 +1978,7 @@ const Zi = (e) => {
|
|
|
3069
1978
|
"&-btn": {
|
|
3070
1979
|
outline: "none",
|
|
3071
1980
|
transition: `all ${e.motionDurationSlow}`,
|
|
3072
|
-
[`${
|
|
1981
|
+
[`${d}-icon:not(:last-child)`]: {
|
|
3073
1982
|
marginInlineEnd: e.marginSM
|
|
3074
1983
|
}
|
|
3075
1984
|
},
|
|
@@ -3093,25 +2002,25 @@ const Zi = (e) => {
|
|
|
3093
2002
|
"&:hover": {
|
|
3094
2003
|
color: e.colorTextHeading
|
|
3095
2004
|
}
|
|
3096
|
-
},
|
|
2005
|
+
}, dt(e)),
|
|
3097
2006
|
"&:hover": {
|
|
3098
2007
|
color: n
|
|
3099
2008
|
},
|
|
3100
|
-
[`&${
|
|
3101
|
-
color:
|
|
2009
|
+
[`&${d}-active ${d}-btn`]: {
|
|
2010
|
+
color: i,
|
|
3102
2011
|
textShadow: e.tabsActiveTextShadow
|
|
3103
2012
|
},
|
|
3104
|
-
[`&${
|
|
3105
|
-
[`&${
|
|
2013
|
+
[`&${d}-focus ${d}-btn`]: Object.assign({}, Zt(e)),
|
|
2014
|
+
[`&${d}-disabled`]: {
|
|
3106
2015
|
color: e.colorTextDisabled,
|
|
3107
2016
|
cursor: "not-allowed"
|
|
3108
2017
|
},
|
|
3109
|
-
[`&${
|
|
2018
|
+
[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
|
|
3110
2019
|
"&:focus, &:active": {
|
|
3111
2020
|
color: e.colorTextDisabled
|
|
3112
2021
|
}
|
|
3113
2022
|
},
|
|
3114
|
-
[`& ${
|
|
2023
|
+
[`& ${d}-remove ${r}`]: {
|
|
3115
2024
|
margin: 0
|
|
3116
2025
|
},
|
|
3117
2026
|
[`${r}:not(:last-child)`]: {
|
|
@@ -3121,14 +2030,14 @@ const Zi = (e) => {
|
|
|
3121
2030
|
}
|
|
3122
2031
|
}
|
|
3123
2032
|
},
|
|
3124
|
-
[`${
|
|
2033
|
+
[`${d} + ${d}`]: {
|
|
3125
2034
|
margin: {
|
|
3126
2035
|
_skip_check_: !0,
|
|
3127
2036
|
value: o
|
|
3128
2037
|
}
|
|
3129
2038
|
}
|
|
3130
2039
|
};
|
|
3131
|
-
},
|
|
2040
|
+
}, Gn = (e) => {
|
|
3132
2041
|
const {
|
|
3133
2042
|
componentCls: t,
|
|
3134
2043
|
tabsHorizontalItemMarginRTL: a,
|
|
@@ -3158,17 +2067,17 @@ const Zi = (e) => {
|
|
|
3158
2067
|
},
|
|
3159
2068
|
marginLeft: {
|
|
3160
2069
|
_skip_check_: !0,
|
|
3161
|
-
value:
|
|
2070
|
+
value: u(e.marginSM)
|
|
3162
2071
|
}
|
|
3163
2072
|
},
|
|
3164
2073
|
[`${t}-tab-remove`]: {
|
|
3165
2074
|
marginRight: {
|
|
3166
2075
|
_skip_check_: !0,
|
|
3167
|
-
value:
|
|
2076
|
+
value: u(e.marginXS)
|
|
3168
2077
|
},
|
|
3169
2078
|
marginLeft: {
|
|
3170
2079
|
_skip_check_: !0,
|
|
3171
|
-
value:
|
|
2080
|
+
value: u(o(e.marginXXS).mul(-1).equal())
|
|
3172
2081
|
},
|
|
3173
2082
|
[n]: {
|
|
3174
2083
|
margin: 0
|
|
@@ -3220,18 +2129,18 @@ const Zi = (e) => {
|
|
|
3220
2129
|
}
|
|
3221
2130
|
}
|
|
3222
2131
|
};
|
|
3223
|
-
},
|
|
2132
|
+
}, Wn = (e) => {
|
|
3224
2133
|
const {
|
|
3225
2134
|
componentCls: t,
|
|
3226
2135
|
tabsCardPadding: a,
|
|
3227
2136
|
cardHeight: n,
|
|
3228
2137
|
cardGutter: r,
|
|
3229
2138
|
itemHoverColor: o,
|
|
3230
|
-
itemActiveColor:
|
|
3231
|
-
colorBorderSecondary:
|
|
2139
|
+
itemActiveColor: s,
|
|
2140
|
+
colorBorderSecondary: i
|
|
3232
2141
|
} = e;
|
|
3233
2142
|
return {
|
|
3234
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
2143
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign({}, vt(e)), {
|
|
3235
2144
|
display: "flex",
|
|
3236
2145
|
// ========================== Navigation ==========================
|
|
3237
2146
|
[`> ${t}-nav, > div > ${t}-nav`]: {
|
|
@@ -3301,10 +2210,10 @@ const Zi = (e) => {
|
|
|
3301
2210
|
_skip_check_: !0,
|
|
3302
2211
|
value: r
|
|
3303
2212
|
},
|
|
3304
|
-
padding:
|
|
2213
|
+
padding: u(e.paddingXS),
|
|
3305
2214
|
background: "transparent",
|
|
3306
|
-
border: `${
|
|
3307
|
-
borderRadius: `${
|
|
2215
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
|
|
2216
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
|
|
3308
2217
|
outline: "none",
|
|
3309
2218
|
cursor: "pointer",
|
|
3310
2219
|
color: e.colorText,
|
|
@@ -3313,9 +2222,9 @@ const Zi = (e) => {
|
|
|
3313
2222
|
color: o
|
|
3314
2223
|
},
|
|
3315
2224
|
"&:active, &:focus:not(:focus-visible)": {
|
|
3316
|
-
color:
|
|
2225
|
+
color: s
|
|
3317
2226
|
}
|
|
3318
|
-
},
|
|
2227
|
+
}, dt(e, -3))
|
|
3319
2228
|
},
|
|
3320
2229
|
[`${t}-extra-content`]: {
|
|
3321
2230
|
flex: "none"
|
|
@@ -3326,7 +2235,7 @@ const Zi = (e) => {
|
|
|
3326
2235
|
background: e.inkBarColor,
|
|
3327
2236
|
pointerEvents: "none"
|
|
3328
2237
|
}
|
|
3329
|
-
}),
|
|
2238
|
+
}), Hn(e)), {
|
|
3330
2239
|
// =========================== TabPanes ===========================
|
|
3331
2240
|
[`${t}-content`]: {
|
|
3332
2241
|
position: "relative",
|
|
@@ -3337,7 +2246,7 @@ const Zi = (e) => {
|
|
|
3337
2246
|
minWidth: 0,
|
|
3338
2247
|
minHeight: 0
|
|
3339
2248
|
},
|
|
3340
|
-
[`${t}-tabpane`]: Object.assign(Object.assign({},
|
|
2249
|
+
[`${t}-tabpane`]: Object.assign(Object.assign({}, dt(e)), {
|
|
3341
2250
|
"&-hidden": {
|
|
3342
2251
|
display: "none"
|
|
3343
2252
|
}
|
|
@@ -3353,7 +2262,7 @@ const Zi = (e) => {
|
|
|
3353
2262
|
}
|
|
3354
2263
|
}
|
|
3355
2264
|
};
|
|
3356
|
-
},
|
|
2265
|
+
}, kn = (e) => {
|
|
3357
2266
|
const t = e.controlHeightLG;
|
|
3358
2267
|
return {
|
|
3359
2268
|
zIndexPopup: e.zIndexPopupBase + 50,
|
|
@@ -3384,125 +2293,125 @@ const Zi = (e) => {
|
|
|
3384
2293
|
itemActiveColor: e.colorPrimaryActive,
|
|
3385
2294
|
cardGutter: e.marginXXS / 2
|
|
3386
2295
|
};
|
|
3387
|
-
},
|
|
3388
|
-
const t =
|
|
2296
|
+
}, Vn = gt("Tabs", (e) => {
|
|
2297
|
+
const t = mt(e, {
|
|
3389
2298
|
// `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
|
|
3390
2299
|
tabsCardPadding: e.cardPadding,
|
|
3391
2300
|
dropdownEdgeChildVerticalPadding: e.paddingXXS,
|
|
3392
2301
|
tabsActiveTextShadow: "0 0 0.25px currentcolor",
|
|
3393
2302
|
tabsDropdownHeight: 200,
|
|
3394
2303
|
tabsDropdownWidth: 120,
|
|
3395
|
-
tabsHorizontalItemMargin: `0 0 0 ${
|
|
3396
|
-
tabsHorizontalItemMarginRTL: `0 0 0 ${
|
|
2304
|
+
tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
|
|
2305
|
+
tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
|
|
3397
2306
|
});
|
|
3398
|
-
return [
|
|
3399
|
-
},
|
|
3400
|
-
process.env.NODE_ENV !== "production" && (
|
|
3401
|
-
var
|
|
2307
|
+
return [An(t), Gn(t), Dn(t), Bn(t), jn(t), Wn(t), Ln(t)];
|
|
2308
|
+
}, kn), oa = () => null;
|
|
2309
|
+
process.env.NODE_ENV !== "production" && (oa.displayName = "DeprecatedTabPane");
|
|
2310
|
+
var Kn = function(e, t) {
|
|
3402
2311
|
var a = {};
|
|
3403
2312
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
3404
2313
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3405
2314
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3406
2315
|
return a;
|
|
3407
2316
|
};
|
|
3408
|
-
const
|
|
3409
|
-
var t, a, n, r, o,
|
|
2317
|
+
const yt = (e) => {
|
|
2318
|
+
var t, a, n, r, o, s, i, c, d, m, g;
|
|
3410
2319
|
const {
|
|
3411
|
-
type:
|
|
3412
|
-
className:
|
|
3413
|
-
rootClassName:
|
|
3414
|
-
size:
|
|
3415
|
-
onEdit:
|
|
3416
|
-
hideAdd:
|
|
3417
|
-
centered:
|
|
3418
|
-
addIcon:
|
|
3419
|
-
removeIcon:
|
|
3420
|
-
moreIcon:
|
|
3421
|
-
more:
|
|
3422
|
-
popupClassName:
|
|
3423
|
-
children:
|
|
3424
|
-
items:
|
|
2320
|
+
type: v,
|
|
2321
|
+
className: C,
|
|
2322
|
+
rootClassName: N,
|
|
2323
|
+
size: p,
|
|
2324
|
+
onEdit: O,
|
|
2325
|
+
hideAdd: y,
|
|
2326
|
+
centered: S,
|
|
2327
|
+
addIcon: P,
|
|
2328
|
+
removeIcon: z,
|
|
2329
|
+
moreIcon: j,
|
|
2330
|
+
more: G,
|
|
2331
|
+
popupClassName: D,
|
|
2332
|
+
children: I,
|
|
2333
|
+
items: w,
|
|
3425
2334
|
animated: T,
|
|
3426
|
-
style:
|
|
3427
|
-
indicatorSize:
|
|
3428
|
-
indicator:
|
|
3429
|
-
} = e,
|
|
3430
|
-
prefixCls:
|
|
3431
|
-
} =
|
|
3432
|
-
direction:
|
|
3433
|
-
tabs:
|
|
3434
|
-
getPrefixCls:
|
|
3435
|
-
getPopupContainer:
|
|
3436
|
-
} =
|
|
2335
|
+
style: b,
|
|
2336
|
+
indicatorSize: h,
|
|
2337
|
+
indicator: _
|
|
2338
|
+
} = e, x = Kn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
|
|
2339
|
+
prefixCls: W
|
|
2340
|
+
} = x, {
|
|
2341
|
+
direction: X,
|
|
2342
|
+
tabs: f,
|
|
2343
|
+
getPrefixCls: Y,
|
|
2344
|
+
getPopupContainer: se
|
|
2345
|
+
} = l.useContext(ve), q = Y("tabs", W), J = ka(q), [ce, R, H] = Vn(q, J);
|
|
3437
2346
|
let k;
|
|
3438
|
-
|
|
3439
|
-
onEdit: (
|
|
2347
|
+
v === "editable-card" && (k = {
|
|
2348
|
+
onEdit: (re, ye) => {
|
|
3440
2349
|
let {
|
|
3441
|
-
key:
|
|
3442
|
-
event:
|
|
3443
|
-
} =
|
|
3444
|
-
|
|
2350
|
+
key: L,
|
|
2351
|
+
event: de
|
|
2352
|
+
} = ye;
|
|
2353
|
+
O == null || O(re === "add" ? de : L, re);
|
|
3445
2354
|
},
|
|
3446
|
-
removeIcon: (t =
|
|
3447
|
-
addIcon: (
|
|
3448
|
-
showAdd:
|
|
2355
|
+
removeIcon: (t = z ?? (f == null ? void 0 : f.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
|
|
2356
|
+
addIcon: (P ?? (f == null ? void 0 : f.addIcon)) || /* @__PURE__ */ l.createElement(ea, null),
|
|
2357
|
+
showAdd: y !== !0
|
|
3449
2358
|
});
|
|
3450
|
-
const
|
|
2359
|
+
const Q = Y();
|
|
3451
2360
|
if (process.env.NODE_ENV !== "production") {
|
|
3452
|
-
const
|
|
3453
|
-
process.env.NODE_ENV !== "production" &&
|
|
2361
|
+
const re = bt("Tabs");
|
|
2362
|
+
process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(h || f != null && f.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
|
|
3454
2363
|
}
|
|
3455
|
-
const
|
|
3456
|
-
align: (a =
|
|
3457
|
-
size: (
|
|
2364
|
+
const Z = Jt(p), ne = Mn(w, I), ae = Rn(q, T), $e = Object.assign(Object.assign({}, f == null ? void 0 : f.style), b), ge = {
|
|
2365
|
+
align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = f == null ? void 0 : f.indicator) === null || n === void 0 ? void 0 : n.align,
|
|
2366
|
+
size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = f == null ? void 0 : f.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : f == null ? void 0 : f.indicatorSize
|
|
3458
2367
|
};
|
|
3459
|
-
return
|
|
3460
|
-
direction:
|
|
3461
|
-
getPopupContainer:
|
|
3462
|
-
},
|
|
3463
|
-
items:
|
|
3464
|
-
className:
|
|
3465
|
-
[`${
|
|
3466
|
-
[`${
|
|
3467
|
-
[`${
|
|
3468
|
-
[`${
|
|
3469
|
-
},
|
|
3470
|
-
popupClassName: D
|
|
3471
|
-
style:
|
|
2368
|
+
return ce(/* @__PURE__ */ l.createElement(ia, Object.assign({
|
|
2369
|
+
direction: X,
|
|
2370
|
+
getPopupContainer: se
|
|
2371
|
+
}, x, {
|
|
2372
|
+
items: ne,
|
|
2373
|
+
className: E({
|
|
2374
|
+
[`${q}-${Z}`]: Z,
|
|
2375
|
+
[`${q}-card`]: ["card", "editable-card"].includes(v),
|
|
2376
|
+
[`${q}-editable-card`]: v === "editable-card",
|
|
2377
|
+
[`${q}-centered`]: S
|
|
2378
|
+
}, f == null ? void 0 : f.className, C, N, R, H, J),
|
|
2379
|
+
popupClassName: E(D, R, H, J),
|
|
2380
|
+
style: $e,
|
|
3472
2381
|
editable: k,
|
|
3473
2382
|
more: Object.assign({
|
|
3474
|
-
icon: (
|
|
3475
|
-
transitionName: `${
|
|
3476
|
-
},
|
|
3477
|
-
prefixCls:
|
|
3478
|
-
animated:
|
|
3479
|
-
indicator:
|
|
2383
|
+
icon: (g = (m = (d = (c = f == null ? void 0 : f.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : f == null ? void 0 : f.moreIcon) !== null && m !== void 0 ? m : j) !== null && g !== void 0 ? g : /* @__PURE__ */ l.createElement(Ga, null),
|
|
2384
|
+
transitionName: `${Q}-slide-up`
|
|
2385
|
+
}, G),
|
|
2386
|
+
prefixCls: q,
|
|
2387
|
+
animated: ae,
|
|
2388
|
+
indicator: ge
|
|
3480
2389
|
})));
|
|
3481
2390
|
};
|
|
3482
|
-
|
|
3483
|
-
process.env.NODE_ENV !== "production" && (
|
|
3484
|
-
var
|
|
2391
|
+
yt.TabPane = oa;
|
|
2392
|
+
process.env.NODE_ENV !== "production" && (yt.displayName = "Tabs");
|
|
2393
|
+
var qn = function(e, t) {
|
|
3485
2394
|
var a = {};
|
|
3486
2395
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
3487
2396
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3488
2397
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3489
2398
|
return a;
|
|
3490
2399
|
};
|
|
3491
|
-
const
|
|
2400
|
+
const la = (e) => {
|
|
3492
2401
|
var {
|
|
3493
2402
|
prefixCls: t,
|
|
3494
2403
|
className: a,
|
|
3495
2404
|
hoverable: n = !0
|
|
3496
|
-
} = e, r =
|
|
2405
|
+
} = e, r = qn(e, ["prefixCls", "className", "hoverable"]);
|
|
3497
2406
|
const {
|
|
3498
2407
|
getPrefixCls: o
|
|
3499
|
-
} =
|
|
3500
|
-
[`${
|
|
2408
|
+
} = l.useContext(ve), s = o("card", t), i = E(`${s}-grid`, a, {
|
|
2409
|
+
[`${s}-grid-hoverable`]: n
|
|
3501
2410
|
});
|
|
3502
|
-
return /* @__PURE__ */
|
|
3503
|
-
className:
|
|
2411
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
|
|
2412
|
+
className: i
|
|
3504
2413
|
}));
|
|
3505
|
-
},
|
|
2414
|
+
}, Fn = (e) => {
|
|
3506
2415
|
const {
|
|
3507
2416
|
antCls: t,
|
|
3508
2417
|
componentCls: a,
|
|
@@ -3516,14 +2425,14 @@ const Ga = (e) => {
|
|
|
3516
2425
|
flexDirection: "column",
|
|
3517
2426
|
minHeight: n,
|
|
3518
2427
|
marginBottom: -1,
|
|
3519
|
-
padding: `0 ${
|
|
2428
|
+
padding: `0 ${u(r)}`,
|
|
3520
2429
|
color: e.colorTextHeading,
|
|
3521
2430
|
fontWeight: e.fontWeightStrong,
|
|
3522
2431
|
fontSize: e.headerFontSize,
|
|
3523
2432
|
background: e.headerBg,
|
|
3524
|
-
borderBottom: `${
|
|
3525
|
-
borderRadius: `${
|
|
3526
|
-
},
|
|
2433
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
|
|
2434
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
2435
|
+
}, Ke()), {
|
|
3527
2436
|
"&-wrapper": {
|
|
3528
2437
|
width: "100%",
|
|
3529
2438
|
display: "flex",
|
|
@@ -3532,7 +2441,7 @@ const Ga = (e) => {
|
|
|
3532
2441
|
"&-title": Object.assign(Object.assign({
|
|
3533
2442
|
display: "inline-block",
|
|
3534
2443
|
flex: 1
|
|
3535
|
-
},
|
|
2444
|
+
}, pt), {
|
|
3536
2445
|
[`
|
|
3537
2446
|
> ${a}-typography,
|
|
3538
2447
|
> ${a}-typography-edit-content
|
|
@@ -3549,11 +2458,11 @@ const Ga = (e) => {
|
|
|
3549
2458
|
fontWeight: "normal",
|
|
3550
2459
|
fontSize: e.fontSize,
|
|
3551
2460
|
"&-bar": {
|
|
3552
|
-
borderBottom: `${
|
|
2461
|
+
borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
3553
2462
|
}
|
|
3554
2463
|
}
|
|
3555
2464
|
});
|
|
3556
|
-
},
|
|
2465
|
+
}, Xn = (e) => {
|
|
3557
2466
|
const {
|
|
3558
2467
|
cardPaddingBase: t,
|
|
3559
2468
|
colorBorderSecondary: a,
|
|
@@ -3566,11 +2475,11 @@ const Ga = (e) => {
|
|
|
3566
2475
|
border: 0,
|
|
3567
2476
|
borderRadius: 0,
|
|
3568
2477
|
boxShadow: `
|
|
3569
|
-
${
|
|
3570
|
-
0 ${
|
|
3571
|
-
${
|
|
3572
|
-
${
|
|
3573
|
-
0 ${
|
|
2478
|
+
${u(r)} 0 0 0 ${a},
|
|
2479
|
+
0 ${u(r)} 0 0 ${a},
|
|
2480
|
+
${u(r)} ${u(r)} 0 0 ${a},
|
|
2481
|
+
${u(r)} 0 0 0 ${a} inset,
|
|
2482
|
+
0 ${u(r)} 0 0 ${a} inset;
|
|
3574
2483
|
`,
|
|
3575
2484
|
transition: `all ${e.motionDurationMid}`,
|
|
3576
2485
|
"&-hoverable:hover": {
|
|
@@ -3579,24 +2488,24 @@ const Ga = (e) => {
|
|
|
3579
2488
|
boxShadow: n
|
|
3580
2489
|
}
|
|
3581
2490
|
};
|
|
3582
|
-
},
|
|
2491
|
+
}, Un = (e) => {
|
|
3583
2492
|
const {
|
|
3584
2493
|
componentCls: t,
|
|
3585
2494
|
iconCls: a,
|
|
3586
2495
|
actionsLiMargin: n,
|
|
3587
2496
|
cardActionsIconSize: r,
|
|
3588
2497
|
colorBorderSecondary: o,
|
|
3589
|
-
actionsBg:
|
|
2498
|
+
actionsBg: s
|
|
3590
2499
|
} = e;
|
|
3591
2500
|
return Object.assign(Object.assign({
|
|
3592
2501
|
margin: 0,
|
|
3593
2502
|
padding: 0,
|
|
3594
2503
|
listStyle: "none",
|
|
3595
|
-
background:
|
|
3596
|
-
borderTop: `${
|
|
2504
|
+
background: s,
|
|
2505
|
+
borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
|
|
3597
2506
|
display: "flex",
|
|
3598
|
-
borderRadius: `0 0 ${
|
|
3599
|
-
},
|
|
2507
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2508
|
+
}, Ke()), {
|
|
3600
2509
|
"& > li": {
|
|
3601
2510
|
margin: n,
|
|
3602
2511
|
color: e.colorTextDescription,
|
|
@@ -3616,7 +2525,7 @@ const Ga = (e) => {
|
|
|
3616
2525
|
display: "inline-block",
|
|
3617
2526
|
width: "100%",
|
|
3618
2527
|
color: e.colorTextDescription,
|
|
3619
|
-
lineHeight:
|
|
2528
|
+
lineHeight: u(e.fontHeight),
|
|
3620
2529
|
transition: `color ${e.motionDurationMid}`,
|
|
3621
2530
|
"&:hover": {
|
|
3622
2531
|
color: e.colorPrimary
|
|
@@ -3624,18 +2533,18 @@ const Ga = (e) => {
|
|
|
3624
2533
|
},
|
|
3625
2534
|
[`> ${a}`]: {
|
|
3626
2535
|
fontSize: r,
|
|
3627
|
-
lineHeight:
|
|
2536
|
+
lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
|
|
3628
2537
|
}
|
|
3629
2538
|
},
|
|
3630
2539
|
"&:not(:last-child)": {
|
|
3631
|
-
borderInlineEnd: `${
|
|
2540
|
+
borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
|
|
3632
2541
|
}
|
|
3633
2542
|
}
|
|
3634
2543
|
});
|
|
3635
|
-
},
|
|
3636
|
-
margin: `${
|
|
2544
|
+
}, Yn = (e) => Object.assign(Object.assign({
|
|
2545
|
+
margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
|
|
3637
2546
|
display: "flex"
|
|
3638
|
-
},
|
|
2547
|
+
}, Ke()), {
|
|
3639
2548
|
"&-avatar": {
|
|
3640
2549
|
paddingInlineEnd: e.padding
|
|
3641
2550
|
},
|
|
@@ -3650,11 +2559,11 @@ const Ga = (e) => {
|
|
|
3650
2559
|
color: e.colorTextHeading,
|
|
3651
2560
|
fontWeight: e.fontWeightStrong,
|
|
3652
2561
|
fontSize: e.fontSizeLG
|
|
3653
|
-
},
|
|
2562
|
+
}, pt),
|
|
3654
2563
|
"&-description": {
|
|
3655
2564
|
color: e.colorTextDescription
|
|
3656
2565
|
}
|
|
3657
|
-
}),
|
|
2566
|
+
}), Qn = (e) => {
|
|
3658
2567
|
const {
|
|
3659
2568
|
componentCls: t,
|
|
3660
2569
|
colorFillAlter: a,
|
|
@@ -3663,17 +2572,17 @@ const Ga = (e) => {
|
|
|
3663
2572
|
} = e;
|
|
3664
2573
|
return {
|
|
3665
2574
|
[`${t}-head`]: {
|
|
3666
|
-
padding: `0 ${
|
|
2575
|
+
padding: `0 ${u(n)}`,
|
|
3667
2576
|
background: a,
|
|
3668
2577
|
"&-title": {
|
|
3669
2578
|
fontSize: e.fontSize
|
|
3670
2579
|
}
|
|
3671
2580
|
},
|
|
3672
2581
|
[`${t}-body`]: {
|
|
3673
|
-
padding: `${
|
|
2582
|
+
padding: `${u(e.padding)} ${u(r)}`
|
|
3674
2583
|
}
|
|
3675
2584
|
};
|
|
3676
|
-
},
|
|
2585
|
+
}, Zn = (e) => {
|
|
3677
2586
|
const {
|
|
3678
2587
|
componentCls: t
|
|
3679
2588
|
} = e;
|
|
@@ -3683,49 +2592,49 @@ const Ga = (e) => {
|
|
|
3683
2592
|
userSelect: "none"
|
|
3684
2593
|
}
|
|
3685
2594
|
};
|
|
3686
|
-
},
|
|
2595
|
+
}, Jn = (e) => {
|
|
3687
2596
|
const {
|
|
3688
2597
|
componentCls: t,
|
|
3689
2598
|
cardShadow: a,
|
|
3690
2599
|
cardHeadPadding: n,
|
|
3691
2600
|
colorBorderSecondary: r,
|
|
3692
2601
|
boxShadowTertiary: o,
|
|
3693
|
-
bodyPadding:
|
|
3694
|
-
extraColor:
|
|
2602
|
+
bodyPadding: s,
|
|
2603
|
+
extraColor: i
|
|
3695
2604
|
} = e;
|
|
3696
2605
|
return {
|
|
3697
|
-
[t]: Object.assign(Object.assign({},
|
|
2606
|
+
[t]: Object.assign(Object.assign({}, vt(e)), {
|
|
3698
2607
|
position: "relative",
|
|
3699
2608
|
background: e.colorBgContainer,
|
|
3700
2609
|
borderRadius: e.borderRadiusLG,
|
|
3701
2610
|
[`&:not(${t}-bordered)`]: {
|
|
3702
2611
|
boxShadow: o
|
|
3703
2612
|
},
|
|
3704
|
-
[`${t}-head`]:
|
|
2613
|
+
[`${t}-head`]: Fn(e),
|
|
3705
2614
|
[`${t}-extra`]: {
|
|
3706
2615
|
// https://stackoverflow.com/a/22429853/3040605
|
|
3707
2616
|
marginInlineStart: "auto",
|
|
3708
|
-
color:
|
|
2617
|
+
color: i,
|
|
3709
2618
|
fontWeight: "normal",
|
|
3710
2619
|
fontSize: e.fontSize
|
|
3711
2620
|
},
|
|
3712
2621
|
[`${t}-body`]: Object.assign({
|
|
3713
|
-
padding:
|
|
3714
|
-
borderRadius: `0 0 ${
|
|
3715
|
-
},
|
|
3716
|
-
[`${t}-grid`]:
|
|
2622
|
+
padding: s,
|
|
2623
|
+
borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
|
|
2624
|
+
}, Ke()),
|
|
2625
|
+
[`${t}-grid`]: Xn(e),
|
|
3717
2626
|
[`${t}-cover`]: {
|
|
3718
2627
|
"> *": {
|
|
3719
2628
|
display: "block",
|
|
3720
2629
|
width: "100%",
|
|
3721
|
-
borderRadius: `${
|
|
2630
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
|
|
3722
2631
|
}
|
|
3723
2632
|
},
|
|
3724
|
-
[`${t}-actions`]:
|
|
3725
|
-
[`${t}-meta`]:
|
|
2633
|
+
[`${t}-actions`]: Un(e),
|
|
2634
|
+
[`${t}-meta`]: Yn(e)
|
|
3726
2635
|
}),
|
|
3727
2636
|
[`${t}-bordered`]: {
|
|
3728
|
-
border: `${
|
|
2637
|
+
border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
|
|
3729
2638
|
[`${t}-cover`]: {
|
|
3730
2639
|
marginTop: -1,
|
|
3731
2640
|
marginInlineStart: -1,
|
|
@@ -3741,7 +2650,7 @@ const Ga = (e) => {
|
|
|
3741
2650
|
}
|
|
3742
2651
|
},
|
|
3743
2652
|
[`${t}-contain-grid`]: {
|
|
3744
|
-
borderRadius: `${
|
|
2653
|
+
borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
|
|
3745
2654
|
[`${t}-body`]: {
|
|
3746
2655
|
display: "flex",
|
|
3747
2656
|
flexWrap: "wrap"
|
|
@@ -3760,13 +2669,13 @@ const Ga = (e) => {
|
|
|
3760
2669
|
}
|
|
3761
2670
|
}
|
|
3762
2671
|
},
|
|
3763
|
-
[`${t}-type-inner`]:
|
|
3764
|
-
[`${t}-loading`]:
|
|
2672
|
+
[`${t}-type-inner`]: Qn(e),
|
|
2673
|
+
[`${t}-loading`]: Zn(e),
|
|
3765
2674
|
[`${t}-rtl`]: {
|
|
3766
2675
|
direction: "rtl"
|
|
3767
2676
|
}
|
|
3768
2677
|
};
|
|
3769
|
-
},
|
|
2678
|
+
}, er = (e) => {
|
|
3770
2679
|
const {
|
|
3771
2680
|
componentCls: t,
|
|
3772
2681
|
bodyPaddingSM: a,
|
|
@@ -3778,7 +2687,7 @@ const Ga = (e) => {
|
|
|
3778
2687
|
[`${t}-small`]: {
|
|
3779
2688
|
[`> ${t}-head`]: {
|
|
3780
2689
|
minHeight: r,
|
|
3781
|
-
padding: `0 ${
|
|
2690
|
+
padding: `0 ${u(n)}`,
|
|
3782
2691
|
fontSize: o,
|
|
3783
2692
|
[`> ${t}-head-wrapper`]: {
|
|
3784
2693
|
[`> ${t}-extra`]: {
|
|
@@ -3800,7 +2709,7 @@ const Ga = (e) => {
|
|
|
3800
2709
|
}
|
|
3801
2710
|
}
|
|
3802
2711
|
};
|
|
3803
|
-
},
|
|
2712
|
+
}, tr = (e) => {
|
|
3804
2713
|
var t, a;
|
|
3805
2714
|
return {
|
|
3806
2715
|
headerBg: "transparent",
|
|
@@ -3818,8 +2727,8 @@ const Ga = (e) => {
|
|
|
3818
2727
|
bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
|
|
3819
2728
|
headerPadding: (a = e.headerPadding) !== null && a !== void 0 ? a : e.paddingLG
|
|
3820
2729
|
};
|
|
3821
|
-
},
|
|
3822
|
-
const t =
|
|
2730
|
+
}, ar = gt("Card", (e) => {
|
|
2731
|
+
const t = mt(e, {
|
|
3823
2732
|
cardShadow: e.boxShadowCard,
|
|
3824
2733
|
cardHeadPadding: e.padding,
|
|
3825
2734
|
cardPaddingBase: e.paddingLG,
|
|
@@ -3827,188 +2736,188 @@ const Ga = (e) => {
|
|
|
3827
2736
|
});
|
|
3828
2737
|
return [
|
|
3829
2738
|
// Style
|
|
3830
|
-
|
|
2739
|
+
Jn(t),
|
|
3831
2740
|
// Size
|
|
3832
|
-
|
|
2741
|
+
er(t)
|
|
3833
2742
|
];
|
|
3834
|
-
},
|
|
3835
|
-
var
|
|
2743
|
+
}, tr);
|
|
2744
|
+
var Ut = function(e, t) {
|
|
3836
2745
|
var a = {};
|
|
3837
2746
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
3838
2747
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3839
2748
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3840
2749
|
return a;
|
|
3841
2750
|
};
|
|
3842
|
-
const
|
|
2751
|
+
const nr = (e) => {
|
|
3843
2752
|
const {
|
|
3844
2753
|
actionClasses: t,
|
|
3845
2754
|
actions: a = [],
|
|
3846
2755
|
actionStyle: n
|
|
3847
2756
|
} = e;
|
|
3848
|
-
return /* @__PURE__ */
|
|
2757
|
+
return /* @__PURE__ */ l.createElement("ul", {
|
|
3849
2758
|
className: t,
|
|
3850
2759
|
style: n
|
|
3851
2760
|
}, a.map((r, o) => {
|
|
3852
|
-
const
|
|
3853
|
-
return /* @__PURE__ */
|
|
2761
|
+
const s = `action-${o}`;
|
|
2762
|
+
return /* @__PURE__ */ l.createElement("li", {
|
|
3854
2763
|
style: {
|
|
3855
2764
|
width: `${100 / a.length}%`
|
|
3856
2765
|
},
|
|
3857
|
-
key:
|
|
3858
|
-
}, /* @__PURE__ */
|
|
2766
|
+
key: s
|
|
2767
|
+
}, /* @__PURE__ */ l.createElement("span", null, r));
|
|
3859
2768
|
}));
|
|
3860
|
-
},
|
|
2769
|
+
}, rr = /* @__PURE__ */ l.forwardRef((e, t) => {
|
|
3861
2770
|
const {
|
|
3862
2771
|
prefixCls: a,
|
|
3863
2772
|
className: n,
|
|
3864
2773
|
rootClassName: r,
|
|
3865
2774
|
style: o,
|
|
3866
|
-
extra:
|
|
3867
|
-
headStyle:
|
|
2775
|
+
extra: s,
|
|
2776
|
+
headStyle: i = {},
|
|
3868
2777
|
bodyStyle: c = {},
|
|
3869
|
-
title:
|
|
3870
|
-
loading:
|
|
3871
|
-
bordered:
|
|
3872
|
-
size:
|
|
3873
|
-
type:
|
|
3874
|
-
cover:
|
|
3875
|
-
actions:
|
|
3876
|
-
tabList:
|
|
3877
|
-
children:
|
|
3878
|
-
activeTabKey:
|
|
3879
|
-
defaultActiveTabKey:
|
|
3880
|
-
tabBarExtraContent:
|
|
3881
|
-
hoverable:
|
|
3882
|
-
tabProps:
|
|
3883
|
-
classNames:
|
|
3884
|
-
styles:
|
|
3885
|
-
} = e,
|
|
2778
|
+
title: d,
|
|
2779
|
+
loading: m,
|
|
2780
|
+
bordered: g = !0,
|
|
2781
|
+
size: v,
|
|
2782
|
+
type: C,
|
|
2783
|
+
cover: N,
|
|
2784
|
+
actions: p,
|
|
2785
|
+
tabList: O,
|
|
2786
|
+
children: y,
|
|
2787
|
+
activeTabKey: S,
|
|
2788
|
+
defaultActiveTabKey: P,
|
|
2789
|
+
tabBarExtraContent: z,
|
|
2790
|
+
hoverable: j,
|
|
2791
|
+
tabProps: G = {},
|
|
2792
|
+
classNames: D,
|
|
2793
|
+
styles: I
|
|
2794
|
+
} = e, w = Ut(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
3886
2795
|
getPrefixCls: T,
|
|
3887
|
-
direction:
|
|
3888
|
-
card:
|
|
3889
|
-
} =
|
|
2796
|
+
direction: b,
|
|
2797
|
+
card: h
|
|
2798
|
+
} = l.useContext(ve);
|
|
3890
2799
|
if (process.env.NODE_ENV !== "production") {
|
|
3891
|
-
const
|
|
3892
|
-
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((
|
|
3893
|
-
let [
|
|
3894
|
-
|
|
2800
|
+
const F = bt("Card");
|
|
2801
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((V) => {
|
|
2802
|
+
let [ue, _e] = V;
|
|
2803
|
+
F.deprecated(!(ue in e), ue, _e);
|
|
3895
2804
|
});
|
|
3896
2805
|
}
|
|
3897
|
-
const
|
|
3898
|
-
var
|
|
3899
|
-
(
|
|
3900
|
-
},
|
|
3901
|
-
var
|
|
3902
|
-
return
|
|
3903
|
-
},
|
|
3904
|
-
var
|
|
3905
|
-
return Object.assign(Object.assign({}, (
|
|
3906
|
-
},
|
|
3907
|
-
let
|
|
3908
|
-
return
|
|
3909
|
-
(
|
|
3910
|
-
}),
|
|
3911
|
-
}, [
|
|
2806
|
+
const _ = (F) => {
|
|
2807
|
+
var V;
|
|
2808
|
+
(V = e.onTabChange) === null || V === void 0 || V.call(e, F);
|
|
2809
|
+
}, x = (F) => {
|
|
2810
|
+
var V;
|
|
2811
|
+
return E((V = h == null ? void 0 : h.classNames) === null || V === void 0 ? void 0 : V[F], D == null ? void 0 : D[F]);
|
|
2812
|
+
}, W = (F) => {
|
|
2813
|
+
var V;
|
|
2814
|
+
return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), I == null ? void 0 : I[F]);
|
|
2815
|
+
}, X = l.useMemo(() => {
|
|
2816
|
+
let F = !1;
|
|
2817
|
+
return l.Children.forEach(y, (V) => {
|
|
2818
|
+
(V == null ? void 0 : V.type) === la && (F = !0);
|
|
2819
|
+
}), F;
|
|
2820
|
+
}, [y]), f = T("card", a), [Y, se, q] = ar(f), J = /* @__PURE__ */ l.createElement(Ee, {
|
|
3912
2821
|
loading: !0,
|
|
3913
2822
|
active: !0,
|
|
3914
2823
|
paragraph: {
|
|
3915
2824
|
rows: 4
|
|
3916
2825
|
},
|
|
3917
2826
|
title: !1
|
|
3918
|
-
},
|
|
3919
|
-
[
|
|
3920
|
-
tabBarExtraContent:
|
|
2827
|
+
}, y), ce = S !== void 0, R = Object.assign(Object.assign({}, G), {
|
|
2828
|
+
[ce ? "activeKey" : "defaultActiveKey"]: ce ? S : P,
|
|
2829
|
+
tabBarExtraContent: z
|
|
3921
2830
|
});
|
|
3922
|
-
let
|
|
3923
|
-
const k =
|
|
3924
|
-
size:
|
|
3925
|
-
},
|
|
3926
|
-
className: `${
|
|
3927
|
-
onChange:
|
|
3928
|
-
items:
|
|
2831
|
+
let H;
|
|
2832
|
+
const k = Jt(v), Q = !k || k === "default" ? "large" : k, Z = O ? /* @__PURE__ */ l.createElement(yt, Object.assign({
|
|
2833
|
+
size: Q
|
|
2834
|
+
}, R, {
|
|
2835
|
+
className: `${f}-head-tabs`,
|
|
2836
|
+
onChange: _,
|
|
2837
|
+
items: O.map((F) => {
|
|
3929
2838
|
var {
|
|
3930
|
-
tab:
|
|
3931
|
-
} =
|
|
2839
|
+
tab: V
|
|
2840
|
+
} = F, ue = Ut(F, ["tab"]);
|
|
3932
2841
|
return Object.assign({
|
|
3933
|
-
label:
|
|
3934
|
-
},
|
|
2842
|
+
label: V
|
|
2843
|
+
}, ue);
|
|
3935
2844
|
})
|
|
3936
2845
|
})) : null;
|
|
3937
|
-
if (
|
|
3938
|
-
const
|
|
3939
|
-
|
|
3940
|
-
className:
|
|
3941
|
-
style:
|
|
3942
|
-
}, /* @__PURE__ */
|
|
3943
|
-
className: `${
|
|
3944
|
-
},
|
|
3945
|
-
className:
|
|
3946
|
-
style:
|
|
3947
|
-
},
|
|
3948
|
-
className:
|
|
3949
|
-
style:
|
|
3950
|
-
},
|
|
2846
|
+
if (d || s || Z) {
|
|
2847
|
+
const F = E(`${f}-head`, x("header")), V = E(`${f}-head-title`, x("title")), ue = E(`${f}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), W("header"));
|
|
2848
|
+
H = /* @__PURE__ */ l.createElement("div", {
|
|
2849
|
+
className: F,
|
|
2850
|
+
style: _e
|
|
2851
|
+
}, /* @__PURE__ */ l.createElement("div", {
|
|
2852
|
+
className: `${f}-head-wrapper`
|
|
2853
|
+
}, d && /* @__PURE__ */ l.createElement("div", {
|
|
2854
|
+
className: V,
|
|
2855
|
+
style: W("title")
|
|
2856
|
+
}, d), s && /* @__PURE__ */ l.createElement("div", {
|
|
2857
|
+
className: ue,
|
|
2858
|
+
style: W("extra")
|
|
2859
|
+
}, s)), Z);
|
|
3951
2860
|
}
|
|
3952
|
-
const
|
|
3953
|
-
className:
|
|
3954
|
-
style:
|
|
3955
|
-
},
|
|
3956
|
-
className:
|
|
3957
|
-
style:
|
|
3958
|
-
},
|
|
3959
|
-
actionClasses:
|
|
3960
|
-
actionStyle:
|
|
3961
|
-
actions:
|
|
3962
|
-
}) : null,
|
|
3963
|
-
[`${
|
|
3964
|
-
[`${
|
|
3965
|
-
[`${
|
|
3966
|
-
[`${
|
|
3967
|
-
[`${
|
|
3968
|
-
[`${
|
|
3969
|
-
[`${
|
|
3970
|
-
[`${
|
|
3971
|
-
}, n, r,
|
|
3972
|
-
return
|
|
2861
|
+
const ne = E(`${f}-cover`, x("cover")), ae = N ? /* @__PURE__ */ l.createElement("div", {
|
|
2862
|
+
className: ne,
|
|
2863
|
+
style: W("cover")
|
|
2864
|
+
}, N) : null, $e = E(`${f}-body`, x("body")), ge = Object.assign(Object.assign({}, c), W("body")), re = /* @__PURE__ */ l.createElement("div", {
|
|
2865
|
+
className: $e,
|
|
2866
|
+
style: ge
|
|
2867
|
+
}, m ? J : y), ye = E(`${f}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(nr, {
|
|
2868
|
+
actionClasses: ye,
|
|
2869
|
+
actionStyle: W("actions"),
|
|
2870
|
+
actions: p
|
|
2871
|
+
}) : null, de = Ve(w, ["onTabChange"]), xe = E(f, h == null ? void 0 : h.className, {
|
|
2872
|
+
[`${f}-loading`]: m,
|
|
2873
|
+
[`${f}-bordered`]: g,
|
|
2874
|
+
[`${f}-hoverable`]: j,
|
|
2875
|
+
[`${f}-contain-grid`]: X,
|
|
2876
|
+
[`${f}-contain-tabs`]: O == null ? void 0 : O.length,
|
|
2877
|
+
[`${f}-${k}`]: k,
|
|
2878
|
+
[`${f}-type-${C}`]: !!C,
|
|
2879
|
+
[`${f}-rtl`]: b === "rtl"
|
|
2880
|
+
}, n, r, se, q), Be = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o);
|
|
2881
|
+
return Y(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
3973
2882
|
ref: t
|
|
3974
|
-
},
|
|
3975
|
-
className:
|
|
3976
|
-
style:
|
|
3977
|
-
}),
|
|
2883
|
+
}, de, {
|
|
2884
|
+
className: xe,
|
|
2885
|
+
style: Be
|
|
2886
|
+
}), H, ae, re, L));
|
|
3978
2887
|
});
|
|
3979
|
-
var
|
|
2888
|
+
var ir = function(e, t) {
|
|
3980
2889
|
var a = {};
|
|
3981
2890
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
3982
2891
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
3983
2892
|
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
|
|
3984
2893
|
return a;
|
|
3985
2894
|
};
|
|
3986
|
-
const
|
|
2895
|
+
const or = (e) => {
|
|
3987
2896
|
const {
|
|
3988
2897
|
prefixCls: t,
|
|
3989
2898
|
className: a,
|
|
3990
2899
|
avatar: n,
|
|
3991
2900
|
title: r,
|
|
3992
2901
|
description: o
|
|
3993
|
-
} = e,
|
|
3994
|
-
getPrefixCls:
|
|
3995
|
-
} =
|
|
2902
|
+
} = e, s = ir(e, ["prefixCls", "className", "avatar", "title", "description"]), {
|
|
2903
|
+
getPrefixCls: i
|
|
2904
|
+
} = l.useContext(ve), c = i("card", t), d = E(`${c}-meta`, a), m = n ? /* @__PURE__ */ l.createElement("div", {
|
|
3996
2905
|
className: `${c}-meta-avatar`
|
|
3997
|
-
}, n) : null,
|
|
2906
|
+
}, n) : null, g = r ? /* @__PURE__ */ l.createElement("div", {
|
|
3998
2907
|
className: `${c}-meta-title`
|
|
3999
|
-
}, r) : null,
|
|
2908
|
+
}, r) : null, v = o ? /* @__PURE__ */ l.createElement("div", {
|
|
4000
2909
|
className: `${c}-meta-description`
|
|
4001
|
-
}, o) : null,
|
|
2910
|
+
}, o) : null, C = g || v ? /* @__PURE__ */ l.createElement("div", {
|
|
4002
2911
|
className: `${c}-meta-detail`
|
|
4003
|
-
},
|
|
4004
|
-
return /* @__PURE__ */
|
|
4005
|
-
className:
|
|
4006
|
-
}),
|
|
4007
|
-
},
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
process.env.NODE_ENV !== "production" && (
|
|
4011
|
-
const
|
|
2912
|
+
}, g, v) : null;
|
|
2913
|
+
return /* @__PURE__ */ l.createElement("div", Object.assign({}, s, {
|
|
2914
|
+
className: d
|
|
2915
|
+
}), m, C);
|
|
2916
|
+
}, Ue = rr;
|
|
2917
|
+
Ue.Grid = la;
|
|
2918
|
+
Ue.Meta = or;
|
|
2919
|
+
process.env.NODE_ENV !== "production" && (Ue.displayName = "Card");
|
|
2920
|
+
const Cr = Yt(Ue)`
|
|
4012
2921
|
.ant-card-body {
|
|
4013
2922
|
display: flex;
|
|
4014
2923
|
flex-direction: column;
|
|
@@ -4024,7 +2933,7 @@ const Ao = fa(cn)`
|
|
|
4024
2933
|
color: red;
|
|
4025
2934
|
}
|
|
4026
2935
|
}
|
|
4027
|
-
`,
|
|
2936
|
+
`, xr = Yt(wa.Title)`
|
|
4028
2937
|
&.ant-typography {
|
|
4029
2938
|
color: green !important;
|
|
4030
2939
|
margin-bottom: 14px;
|
|
@@ -4033,6 +2942,6 @@ const Ao = fa(cn)`
|
|
|
4033
2942
|
}
|
|
4034
2943
|
`;
|
|
4035
2944
|
export {
|
|
4036
|
-
|
|
4037
|
-
|
|
2945
|
+
Cr as Card,
|
|
2946
|
+
xr as Headline
|
|
4038
2947
|
};
|