@gobolt/genesis 0.0.7 → 0.0.8
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 +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -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 +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -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 +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -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 +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -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 +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -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 +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -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 +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -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/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -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/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- 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/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- 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.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- 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-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /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}/Button.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}/styles.d.ts +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/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +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.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/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { K as
|
|
5
|
-
import { u as
|
|
6
|
-
import { C as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import * as m from "react";
|
|
2
|
+
import { forwardRef as Lt, useRef as Dt, useImperativeHandle as kt } from "react";
|
|
3
|
+
import { c as S, e as Bt, _ as H, a as Mt } from "./presets-83ccb923.js";
|
|
4
|
+
import { K as w, i as Xt, T as Ht, u as Wt, g as Yt, z as Zt } from "./index-1a33c134.js";
|
|
5
|
+
import { u as Kt } from "./isVisible-729780f5.js";
|
|
6
|
+
import { C as qt } from "./ContextIsolator-b09b2c52.js";
|
|
7
|
+
import { p as W, g as Ft, m as mt, r as Ut, v as it, C as pt, B as Gt, t as Jt } from "./index-4003d75b.js";
|
|
8
|
+
import { i as Qt, c as te } from "./reactNode-f4391605.js";
|
|
9
|
+
import { P as G } from "./presetColors-ccf8cb4c.js";
|
|
10
|
+
function ee(e, o) {
|
|
11
|
+
return G.reduce((a, t) => {
|
|
12
|
+
const r = e[`${t}1`], s = e[`${t}3`], n = e[`${t}6`], i = e[`${t}7`];
|
|
13
|
+
return Object.assign(Object.assign({}, a), o(t, {
|
|
14
|
+
lightColor: r,
|
|
14
15
|
lightBorderColor: s,
|
|
15
|
-
darkColor:
|
|
16
|
+
darkColor: n,
|
|
16
17
|
textColor: i
|
|
17
18
|
}));
|
|
18
19
|
}, {});
|
|
19
20
|
}
|
|
20
|
-
const
|
|
21
|
+
const oe = new w("antZoomIn", {
|
|
21
22
|
"0%": {
|
|
22
23
|
transform: "scale(0.2)",
|
|
23
24
|
opacity: 0
|
|
@@ -26,7 +27,7 @@ const ot = new v("antZoomIn", {
|
|
|
26
27
|
transform: "scale(1)",
|
|
27
28
|
opacity: 1
|
|
28
29
|
}
|
|
29
|
-
}),
|
|
30
|
+
}), re = new w("antZoomOut", {
|
|
30
31
|
"0%": {
|
|
31
32
|
transform: "scale(1)"
|
|
32
33
|
},
|
|
@@ -34,7 +35,7 @@ const ot = new v("antZoomIn", {
|
|
|
34
35
|
transform: "scale(0.2)",
|
|
35
36
|
opacity: 0
|
|
36
37
|
}
|
|
37
|
-
}),
|
|
38
|
+
}), lt = new w("antZoomBigIn", {
|
|
38
39
|
"0%": {
|
|
39
40
|
transform: "scale(0.8)",
|
|
40
41
|
opacity: 0
|
|
@@ -43,7 +44,7 @@ const ot = new v("antZoomIn", {
|
|
|
43
44
|
transform: "scale(1)",
|
|
44
45
|
opacity: 1
|
|
45
46
|
}
|
|
46
|
-
}),
|
|
47
|
+
}), ct = new w("antZoomBigOut", {
|
|
47
48
|
"0%": {
|
|
48
49
|
transform: "scale(1)"
|
|
49
50
|
},
|
|
@@ -51,7 +52,7 @@ const ot = new v("antZoomIn", {
|
|
|
51
52
|
transform: "scale(0.8)",
|
|
52
53
|
opacity: 0
|
|
53
54
|
}
|
|
54
|
-
}),
|
|
55
|
+
}), ae = new w("antZoomUpIn", {
|
|
55
56
|
"0%": {
|
|
56
57
|
transform: "scale(0.8)",
|
|
57
58
|
transformOrigin: "50% 0%",
|
|
@@ -61,7 +62,7 @@ const ot = new v("antZoomIn", {
|
|
|
61
62
|
transform: "scale(1)",
|
|
62
63
|
transformOrigin: "50% 0%"
|
|
63
64
|
}
|
|
64
|
-
}),
|
|
65
|
+
}), ne = new w("antZoomUpOut", {
|
|
65
66
|
"0%": {
|
|
66
67
|
transform: "scale(1)",
|
|
67
68
|
transformOrigin: "50% 0%"
|
|
@@ -71,7 +72,7 @@ const ot = new v("antZoomIn", {
|
|
|
71
72
|
transformOrigin: "50% 0%",
|
|
72
73
|
opacity: 0
|
|
73
74
|
}
|
|
74
|
-
}),
|
|
75
|
+
}), se = new w("antZoomLeftIn", {
|
|
75
76
|
"0%": {
|
|
76
77
|
transform: "scale(0.8)",
|
|
77
78
|
transformOrigin: "0% 50%",
|
|
@@ -81,7 +82,7 @@ const ot = new v("antZoomIn", {
|
|
|
81
82
|
transform: "scale(1)",
|
|
82
83
|
transformOrigin: "0% 50%"
|
|
83
84
|
}
|
|
84
|
-
}),
|
|
85
|
+
}), ie = new w("antZoomLeftOut", {
|
|
85
86
|
"0%": {
|
|
86
87
|
transform: "scale(1)",
|
|
87
88
|
transformOrigin: "0% 50%"
|
|
@@ -91,7 +92,7 @@ const ot = new v("antZoomIn", {
|
|
|
91
92
|
transformOrigin: "0% 50%",
|
|
92
93
|
opacity: 0
|
|
93
94
|
}
|
|
94
|
-
}),
|
|
95
|
+
}), le = new w("antZoomRightIn", {
|
|
95
96
|
"0%": {
|
|
96
97
|
transform: "scale(0.8)",
|
|
97
98
|
transformOrigin: "100% 50%",
|
|
@@ -101,7 +102,7 @@ const ot = new v("antZoomIn", {
|
|
|
101
102
|
transform: "scale(1)",
|
|
102
103
|
transformOrigin: "100% 50%"
|
|
103
104
|
}
|
|
104
|
-
}),
|
|
105
|
+
}), ce = new w("antZoomRightOut", {
|
|
105
106
|
"0%": {
|
|
106
107
|
transform: "scale(1)",
|
|
107
108
|
transformOrigin: "100% 50%"
|
|
@@ -111,7 +112,7 @@ const ot = new v("antZoomIn", {
|
|
|
111
112
|
transformOrigin: "100% 50%",
|
|
112
113
|
opacity: 0
|
|
113
114
|
}
|
|
114
|
-
}),
|
|
115
|
+
}), fe = new w("antZoomDownIn", {
|
|
115
116
|
"0%": {
|
|
116
117
|
transform: "scale(0.8)",
|
|
117
118
|
transformOrigin: "50% 100%",
|
|
@@ -121,7 +122,7 @@ const ot = new v("antZoomIn", {
|
|
|
121
122
|
transform: "scale(1)",
|
|
122
123
|
transformOrigin: "50% 100%"
|
|
123
124
|
}
|
|
124
|
-
}),
|
|
125
|
+
}), me = new w("antZoomDownOut", {
|
|
125
126
|
"0%": {
|
|
126
127
|
transform: "scale(1)",
|
|
127
128
|
transformOrigin: "50% 100%"
|
|
@@ -131,175 +132,175 @@ const ot = new v("antZoomIn", {
|
|
|
131
132
|
transformOrigin: "50% 100%",
|
|
132
133
|
opacity: 0
|
|
133
134
|
}
|
|
134
|
-
}),
|
|
135
|
+
}), pe = {
|
|
135
136
|
zoom: {
|
|
136
|
-
inKeyframes:
|
|
137
|
-
outKeyframes:
|
|
137
|
+
inKeyframes: oe,
|
|
138
|
+
outKeyframes: re
|
|
138
139
|
},
|
|
139
140
|
"zoom-big": {
|
|
140
|
-
inKeyframes:
|
|
141
|
-
outKeyframes:
|
|
141
|
+
inKeyframes: lt,
|
|
142
|
+
outKeyframes: ct
|
|
142
143
|
},
|
|
143
144
|
"zoom-big-fast": {
|
|
144
|
-
inKeyframes:
|
|
145
|
-
outKeyframes:
|
|
145
|
+
inKeyframes: lt,
|
|
146
|
+
outKeyframes: ct
|
|
146
147
|
},
|
|
147
148
|
"zoom-left": {
|
|
148
|
-
inKeyframes:
|
|
149
|
-
outKeyframes:
|
|
149
|
+
inKeyframes: se,
|
|
150
|
+
outKeyframes: ie
|
|
150
151
|
},
|
|
151
152
|
"zoom-right": {
|
|
152
|
-
inKeyframes:
|
|
153
|
-
outKeyframes:
|
|
153
|
+
inKeyframes: le,
|
|
154
|
+
outKeyframes: ce
|
|
154
155
|
},
|
|
155
156
|
"zoom-up": {
|
|
156
|
-
inKeyframes:
|
|
157
|
-
outKeyframes:
|
|
157
|
+
inKeyframes: ae,
|
|
158
|
+
outKeyframes: ne
|
|
158
159
|
},
|
|
159
160
|
"zoom-down": {
|
|
160
|
-
inKeyframes:
|
|
161
|
-
outKeyframes:
|
|
161
|
+
inKeyframes: fe,
|
|
162
|
+
outKeyframes: me
|
|
162
163
|
}
|
|
163
|
-
},
|
|
164
|
+
}, ue = (e, o) => {
|
|
164
165
|
const {
|
|
165
|
-
antCls:
|
|
166
|
-
} =
|
|
167
|
-
inKeyframes:
|
|
166
|
+
antCls: a
|
|
167
|
+
} = e, t = `${a}-${o}`, {
|
|
168
|
+
inKeyframes: r,
|
|
168
169
|
outKeyframes: s
|
|
169
|
-
} =
|
|
170
|
-
return [
|
|
170
|
+
} = pe[o];
|
|
171
|
+
return [Xt(t, r, s, o === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
|
|
171
172
|
[`
|
|
172
|
-
${
|
|
173
|
-
${
|
|
173
|
+
${t}-enter,
|
|
174
|
+
${t}-appear
|
|
174
175
|
`]: {
|
|
175
176
|
transform: "scale(0)",
|
|
176
177
|
opacity: 0,
|
|
177
|
-
animationTimingFunction:
|
|
178
|
+
animationTimingFunction: e.motionEaseOutCirc,
|
|
178
179
|
"&-prepare": {
|
|
179
180
|
transform: "none"
|
|
180
181
|
}
|
|
181
182
|
},
|
|
182
|
-
[`${
|
|
183
|
-
animationTimingFunction:
|
|
183
|
+
[`${t}-leave`]: {
|
|
184
|
+
animationTimingFunction: e.motionEaseInOutCirc
|
|
184
185
|
}
|
|
185
186
|
}];
|
|
186
187
|
};
|
|
187
|
-
function
|
|
188
|
-
var o =
|
|
189
|
-
return /* @__PURE__ */
|
|
190
|
-
className:
|
|
188
|
+
function ut(e) {
|
|
189
|
+
var o = e.children, a = e.prefixCls, t = e.id, r = e.overlayInnerStyle, s = e.bodyClassName, n = e.className, i = e.style;
|
|
190
|
+
return /* @__PURE__ */ m.createElement("div", {
|
|
191
|
+
className: S("".concat(a, "-content"), n),
|
|
191
192
|
style: i
|
|
192
|
-
}, /* @__PURE__ */
|
|
193
|
-
className:
|
|
194
|
-
id:
|
|
193
|
+
}, /* @__PURE__ */ m.createElement("div", {
|
|
194
|
+
className: S("".concat(a, "-inner"), s),
|
|
195
|
+
id: t,
|
|
195
196
|
role: "tooltip",
|
|
196
|
-
style:
|
|
197
|
+
style: r
|
|
197
198
|
}, typeof o == "function" ? o() : o));
|
|
198
199
|
}
|
|
199
|
-
var
|
|
200
|
+
var D = {
|
|
200
201
|
shiftX: 64,
|
|
201
202
|
adjustY: 1
|
|
202
|
-
},
|
|
203
|
+
}, k = {
|
|
203
204
|
adjustX: 1,
|
|
204
205
|
shiftY: !0
|
|
205
|
-
},
|
|
206
|
+
}, y = [0, 0], de = {
|
|
206
207
|
left: {
|
|
207
208
|
points: ["cr", "cl"],
|
|
208
|
-
overflow:
|
|
209
|
+
overflow: k,
|
|
209
210
|
offset: [-4, 0],
|
|
210
|
-
targetOffset:
|
|
211
|
+
targetOffset: y
|
|
211
212
|
},
|
|
212
213
|
right: {
|
|
213
214
|
points: ["cl", "cr"],
|
|
214
|
-
overflow:
|
|
215
|
+
overflow: k,
|
|
215
216
|
offset: [4, 0],
|
|
216
|
-
targetOffset:
|
|
217
|
+
targetOffset: y
|
|
217
218
|
},
|
|
218
219
|
top: {
|
|
219
220
|
points: ["bc", "tc"],
|
|
220
|
-
overflow:
|
|
221
|
+
overflow: D,
|
|
221
222
|
offset: [0, -4],
|
|
222
|
-
targetOffset:
|
|
223
|
+
targetOffset: y
|
|
223
224
|
},
|
|
224
225
|
bottom: {
|
|
225
226
|
points: ["tc", "bc"],
|
|
226
|
-
overflow:
|
|
227
|
+
overflow: D,
|
|
227
228
|
offset: [0, 4],
|
|
228
|
-
targetOffset:
|
|
229
|
+
targetOffset: y
|
|
229
230
|
},
|
|
230
231
|
topLeft: {
|
|
231
232
|
points: ["bl", "tl"],
|
|
232
|
-
overflow:
|
|
233
|
+
overflow: D,
|
|
233
234
|
offset: [0, -4],
|
|
234
|
-
targetOffset:
|
|
235
|
+
targetOffset: y
|
|
235
236
|
},
|
|
236
237
|
leftTop: {
|
|
237
238
|
points: ["tr", "tl"],
|
|
238
|
-
overflow:
|
|
239
|
+
overflow: k,
|
|
239
240
|
offset: [-4, 0],
|
|
240
|
-
targetOffset:
|
|
241
|
+
targetOffset: y
|
|
241
242
|
},
|
|
242
243
|
topRight: {
|
|
243
244
|
points: ["br", "tr"],
|
|
244
|
-
overflow:
|
|
245
|
+
overflow: D,
|
|
245
246
|
offset: [0, -4],
|
|
246
|
-
targetOffset:
|
|
247
|
+
targetOffset: y
|
|
247
248
|
},
|
|
248
249
|
rightTop: {
|
|
249
250
|
points: ["tl", "tr"],
|
|
250
|
-
overflow:
|
|
251
|
+
overflow: k,
|
|
251
252
|
offset: [4, 0],
|
|
252
|
-
targetOffset:
|
|
253
|
+
targetOffset: y
|
|
253
254
|
},
|
|
254
255
|
bottomRight: {
|
|
255
256
|
points: ["tr", "br"],
|
|
256
|
-
overflow:
|
|
257
|
+
overflow: D,
|
|
257
258
|
offset: [0, 4],
|
|
258
|
-
targetOffset:
|
|
259
|
+
targetOffset: y
|
|
259
260
|
},
|
|
260
261
|
rightBottom: {
|
|
261
262
|
points: ["bl", "br"],
|
|
262
|
-
overflow:
|
|
263
|
+
overflow: k,
|
|
263
264
|
offset: [4, 0],
|
|
264
|
-
targetOffset:
|
|
265
|
+
targetOffset: y
|
|
265
266
|
},
|
|
266
267
|
bottomLeft: {
|
|
267
268
|
points: ["tl", "bl"],
|
|
268
|
-
overflow:
|
|
269
|
+
overflow: D,
|
|
269
270
|
offset: [0, 4],
|
|
270
|
-
targetOffset:
|
|
271
|
+
targetOffset: y
|
|
271
272
|
},
|
|
272
273
|
leftBottom: {
|
|
273
274
|
points: ["br", "bl"],
|
|
274
|
-
overflow:
|
|
275
|
+
overflow: k,
|
|
275
276
|
offset: [-4, 0],
|
|
276
|
-
targetOffset:
|
|
277
|
+
targetOffset: y
|
|
277
278
|
}
|
|
278
|
-
},
|
|
279
|
-
var
|
|
279
|
+
}, ge = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], be = function(o, a) {
|
|
280
|
+
var t = o.overlayClassName, r = o.trigger, s = r === void 0 ? ["hover"] : r, n = o.mouseEnterDelay, i = n === void 0 ? 0 : n, l = o.mouseLeaveDelay, p = l === void 0 ? 0.1 : l, v = o.overlayStyle, c = o.prefixCls, u = c === void 0 ? "rc-tooltip" : c, h = o.children, O = o.onVisibleChange, $ = o.afterVisibleChange, _ = o.transitionName, b = o.animation, g = o.motion, x = o.placement, j = x === void 0 ? "right" : x, z = o.align, J = z === void 0 ? {} : z, B = o.destroyTooltipOnHide, I = B === void 0 ? !1 : B, Q = o.defaultVisible, Y = o.getTooltipContainer, tt = o.overlayInnerStyle;
|
|
280
281
|
o.arrowContent;
|
|
281
|
-
var f = o.overlay, R = o.id, A = o.showArrow, Z = A === void 0 ? !0 : A, P = o.classNames, N = o.styles, M =
|
|
282
|
-
|
|
282
|
+
var f = o.overlay, R = o.id, A = o.showArrow, Z = A === void 0 ? !0 : A, P = o.classNames, N = o.styles, M = Bt(o, ge), K = Dt(null);
|
|
283
|
+
kt(a, function() {
|
|
283
284
|
return K.current;
|
|
284
285
|
});
|
|
285
|
-
var q =
|
|
286
|
+
var q = H({}, M);
|
|
286
287
|
"visible" in o && (q.popupVisible = o.visible);
|
|
287
|
-
var
|
|
288
|
-
return /* @__PURE__ */
|
|
288
|
+
var X = function() {
|
|
289
|
+
return /* @__PURE__ */ m.createElement(ut, {
|
|
289
290
|
key: "content",
|
|
290
|
-
prefixCls:
|
|
291
|
+
prefixCls: u,
|
|
291
292
|
id: R,
|
|
292
293
|
bodyClassName: P == null ? void 0 : P.body,
|
|
293
|
-
overlayInnerStyle:
|
|
294
|
+
overlayInnerStyle: H(H({}, tt), N == null ? void 0 : N.body)
|
|
294
295
|
}, f);
|
|
295
296
|
};
|
|
296
|
-
return /* @__PURE__ */
|
|
297
|
-
popupClassName:
|
|
298
|
-
prefixCls:
|
|
299
|
-
popup:
|
|
297
|
+
return /* @__PURE__ */ m.createElement(Ht, Mt({
|
|
298
|
+
popupClassName: S(t, P == null ? void 0 : P.root),
|
|
299
|
+
prefixCls: u,
|
|
300
|
+
popup: X,
|
|
300
301
|
action: s,
|
|
301
|
-
builtinPlacements:
|
|
302
|
-
popupPlacement:
|
|
302
|
+
builtinPlacements: de,
|
|
303
|
+
popupPlacement: j,
|
|
303
304
|
ref: K,
|
|
304
305
|
popupAlign: J,
|
|
305
306
|
getPopupContainer: Y,
|
|
@@ -310,57 +311,57 @@ var k = {
|
|
|
310
311
|
popupMotion: g,
|
|
311
312
|
defaultPopupVisible: Q,
|
|
312
313
|
autoDestroy: I,
|
|
313
|
-
mouseLeaveDelay:
|
|
314
|
-
popupStyle:
|
|
314
|
+
mouseLeaveDelay: p,
|
|
315
|
+
popupStyle: H(H({}, v), N == null ? void 0 : N.root),
|
|
315
316
|
mouseEnterDelay: i,
|
|
316
317
|
arrow: Z
|
|
317
|
-
}, q),
|
|
318
|
+
}, q), h);
|
|
318
319
|
};
|
|
319
|
-
const
|
|
320
|
-
function
|
|
320
|
+
const ve = /* @__PURE__ */ Lt(be);
|
|
321
|
+
function he(e) {
|
|
321
322
|
const {
|
|
322
323
|
sizePopupArrow: o,
|
|
323
|
-
borderRadiusXS:
|
|
324
|
-
borderRadiusOuter:
|
|
325
|
-
} =
|
|
324
|
+
borderRadiusXS: a,
|
|
325
|
+
borderRadiusOuter: t
|
|
326
|
+
} = e, r = o / 2, s = 0, n = r, i = t * 1 / Math.sqrt(2), l = r - t * (1 - 1 / Math.sqrt(2)), p = r - a * (1 / Math.sqrt(2)), v = t * (Math.sqrt(2) - 1) + a * (1 / Math.sqrt(2)), c = 2 * r - p, u = v, h = 2 * r - i, O = l, $ = 2 * r - s, _ = n, b = r * Math.sqrt(2) + t * (Math.sqrt(2) - 2), g = t * (Math.sqrt(2) - 1), x = `polygon(${g}px 100%, 50% ${g}px, ${2 * r - g}px 100%, ${g}px 100%)`, j = `path('M ${s} ${n} A ${t} ${t} 0 0 0 ${i} ${l} L ${p} ${v} A ${a} ${a} 0 0 1 ${c} ${u} L ${h} ${O} A ${t} ${t} 0 0 0 ${$} ${_} Z')`;
|
|
326
327
|
return {
|
|
327
328
|
arrowShadowWidth: b,
|
|
328
|
-
arrowPath:
|
|
329
|
+
arrowPath: j,
|
|
329
330
|
arrowPolygon: x
|
|
330
331
|
};
|
|
331
332
|
}
|
|
332
|
-
const
|
|
333
|
+
const ye = (e, o, a) => {
|
|
333
334
|
const {
|
|
334
|
-
sizePopupArrow:
|
|
335
|
-
arrowPolygon:
|
|
335
|
+
sizePopupArrow: t,
|
|
336
|
+
arrowPolygon: r,
|
|
336
337
|
arrowPath: s,
|
|
337
|
-
arrowShadowWidth:
|
|
338
|
+
arrowShadowWidth: n,
|
|
338
339
|
borderRadiusXS: i,
|
|
339
340
|
calc: l
|
|
340
|
-
} =
|
|
341
|
+
} = e;
|
|
341
342
|
return {
|
|
342
343
|
pointerEvents: "none",
|
|
343
|
-
width:
|
|
344
|
-
height:
|
|
344
|
+
width: t,
|
|
345
|
+
height: t,
|
|
345
346
|
overflow: "hidden",
|
|
346
347
|
"&::before": {
|
|
347
348
|
position: "absolute",
|
|
348
349
|
bottom: 0,
|
|
349
350
|
insetInlineStart: 0,
|
|
350
|
-
width:
|
|
351
|
-
height: l(
|
|
351
|
+
width: t,
|
|
352
|
+
height: l(t).div(2).equal(),
|
|
352
353
|
background: o,
|
|
353
354
|
clipPath: {
|
|
354
355
|
_multi_value_: !0,
|
|
355
|
-
value: [
|
|
356
|
+
value: [r, s]
|
|
356
357
|
},
|
|
357
358
|
content: '""'
|
|
358
359
|
},
|
|
359
360
|
"&::after": {
|
|
360
361
|
content: '""',
|
|
361
362
|
position: "absolute",
|
|
362
|
-
width:
|
|
363
|
-
height:
|
|
363
|
+
width: n,
|
|
364
|
+
height: n,
|
|
364
365
|
bottom: 0,
|
|
365
366
|
insetInline: 0,
|
|
366
367
|
margin: "auto",
|
|
@@ -369,32 +370,32 @@ const wt = (t, o, r) => {
|
|
|
369
370
|
value: `0 0 ${W(i)} 0`
|
|
370
371
|
},
|
|
371
372
|
transform: "translateY(50%) rotate(-135deg)",
|
|
372
|
-
boxShadow:
|
|
373
|
+
boxShadow: a,
|
|
373
374
|
zIndex: 0,
|
|
374
375
|
background: "transparent"
|
|
375
376
|
}
|
|
376
377
|
};
|
|
377
|
-
},
|
|
378
|
-
function
|
|
378
|
+
}, dt = 8;
|
|
379
|
+
function gt(e) {
|
|
379
380
|
const {
|
|
380
381
|
contentRadius: o,
|
|
381
|
-
limitVerticalRadius:
|
|
382
|
-
} =
|
|
382
|
+
limitVerticalRadius: a
|
|
383
|
+
} = e, t = o > 12 ? o + 2 : 12;
|
|
383
384
|
return {
|
|
384
|
-
arrowOffsetHorizontal:
|
|
385
|
-
arrowOffsetVertical:
|
|
385
|
+
arrowOffsetHorizontal: t,
|
|
386
|
+
arrowOffsetVertical: a ? dt : t
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
|
-
function U(
|
|
389
|
-
return
|
|
389
|
+
function U(e, o) {
|
|
390
|
+
return e ? o : {};
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
+
function we(e, o, a) {
|
|
392
393
|
const {
|
|
393
|
-
componentCls:
|
|
394
|
-
boxShadowPopoverArrow:
|
|
394
|
+
componentCls: t,
|
|
395
|
+
boxShadowPopoverArrow: r,
|
|
395
396
|
arrowOffsetVertical: s,
|
|
396
|
-
arrowOffsetHorizontal:
|
|
397
|
-
} =
|
|
397
|
+
arrowOffsetHorizontal: n
|
|
398
|
+
} = e, {
|
|
398
399
|
arrowDistance: i = 0,
|
|
399
400
|
arrowPlacement: l = {
|
|
400
401
|
left: !0,
|
|
@@ -402,25 +403,25 @@ function vt(t, o, r) {
|
|
|
402
403
|
top: !0,
|
|
403
404
|
bottom: !0
|
|
404
405
|
}
|
|
405
|
-
} = {};
|
|
406
|
+
} = a || {};
|
|
406
407
|
return {
|
|
407
|
-
[
|
|
408
|
+
[t]: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
408
409
|
// ============================ Basic ============================
|
|
409
|
-
[`${
|
|
410
|
+
[`${t}-arrow`]: [Object.assign(Object.assign({
|
|
410
411
|
position: "absolute",
|
|
411
412
|
zIndex: 1,
|
|
412
413
|
display: "block"
|
|
413
|
-
},
|
|
414
|
+
}, ye(e, o, r)), {
|
|
414
415
|
"&:before": {
|
|
415
416
|
background: o
|
|
416
417
|
}
|
|
417
418
|
})]
|
|
418
419
|
}, U(!!l.top, {
|
|
419
|
-
[[`&-placement-top > ${
|
|
420
|
+
[[`&-placement-top > ${t}-arrow`, `&-placement-topLeft > ${t}-arrow`, `&-placement-topRight > ${t}-arrow`].join(",")]: {
|
|
420
421
|
bottom: i,
|
|
421
422
|
transform: "translateY(100%) rotate(180deg)"
|
|
422
423
|
},
|
|
423
|
-
[`&-placement-top > ${
|
|
424
|
+
[`&-placement-top > ${t}-arrow`]: {
|
|
424
425
|
left: {
|
|
425
426
|
_skip_check_: !0,
|
|
426
427
|
value: "50%"
|
|
@@ -428,29 +429,29 @@ function vt(t, o, r) {
|
|
|
428
429
|
transform: "translateX(-50%) translateY(100%) rotate(180deg)"
|
|
429
430
|
},
|
|
430
431
|
"&-placement-topLeft": {
|
|
431
|
-
"--arrow-offset-horizontal":
|
|
432
|
-
[`> ${
|
|
432
|
+
"--arrow-offset-horizontal": n,
|
|
433
|
+
[`> ${t}-arrow`]: {
|
|
433
434
|
left: {
|
|
434
435
|
_skip_check_: !0,
|
|
435
|
-
value:
|
|
436
|
+
value: n
|
|
436
437
|
}
|
|
437
438
|
}
|
|
438
439
|
},
|
|
439
440
|
"&-placement-topRight": {
|
|
440
|
-
"--arrow-offset-horizontal": `calc(100% - ${W(
|
|
441
|
-
[`> ${
|
|
441
|
+
"--arrow-offset-horizontal": `calc(100% - ${W(n)})`,
|
|
442
|
+
[`> ${t}-arrow`]: {
|
|
442
443
|
right: {
|
|
443
444
|
_skip_check_: !0,
|
|
444
|
-
value:
|
|
445
|
+
value: n
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
449
|
})), U(!!l.bottom, {
|
|
449
|
-
[[`&-placement-bottom > ${
|
|
450
|
+
[[`&-placement-bottom > ${t}-arrow`, `&-placement-bottomLeft > ${t}-arrow`, `&-placement-bottomRight > ${t}-arrow`].join(",")]: {
|
|
450
451
|
top: i,
|
|
451
452
|
transform: "translateY(-100%)"
|
|
452
453
|
},
|
|
453
|
-
[`&-placement-bottom > ${
|
|
454
|
+
[`&-placement-bottom > ${t}-arrow`]: {
|
|
454
455
|
left: {
|
|
455
456
|
_skip_check_: !0,
|
|
456
457
|
value: "50%"
|
|
@@ -458,89 +459,89 @@ function vt(t, o, r) {
|
|
|
458
459
|
transform: "translateX(-50%) translateY(-100%)"
|
|
459
460
|
},
|
|
460
461
|
"&-placement-bottomLeft": {
|
|
461
|
-
"--arrow-offset-horizontal":
|
|
462
|
-
[`> ${
|
|
462
|
+
"--arrow-offset-horizontal": n,
|
|
463
|
+
[`> ${t}-arrow`]: {
|
|
463
464
|
left: {
|
|
464
465
|
_skip_check_: !0,
|
|
465
|
-
value:
|
|
466
|
+
value: n
|
|
466
467
|
}
|
|
467
468
|
}
|
|
468
469
|
},
|
|
469
470
|
"&-placement-bottomRight": {
|
|
470
|
-
"--arrow-offset-horizontal": `calc(100% - ${W(
|
|
471
|
-
[`> ${
|
|
471
|
+
"--arrow-offset-horizontal": `calc(100% - ${W(n)})`,
|
|
472
|
+
[`> ${t}-arrow`]: {
|
|
472
473
|
right: {
|
|
473
474
|
_skip_check_: !0,
|
|
474
|
-
value:
|
|
475
|
+
value: n
|
|
475
476
|
}
|
|
476
477
|
}
|
|
477
478
|
}
|
|
478
479
|
})), U(!!l.left, {
|
|
479
|
-
[[`&-placement-left > ${
|
|
480
|
+
[[`&-placement-left > ${t}-arrow`, `&-placement-leftTop > ${t}-arrow`, `&-placement-leftBottom > ${t}-arrow`].join(",")]: {
|
|
480
481
|
right: {
|
|
481
482
|
_skip_check_: !0,
|
|
482
483
|
value: i
|
|
483
484
|
},
|
|
484
485
|
transform: "translateX(100%) rotate(90deg)"
|
|
485
486
|
},
|
|
486
|
-
[`&-placement-left > ${
|
|
487
|
+
[`&-placement-left > ${t}-arrow`]: {
|
|
487
488
|
top: {
|
|
488
489
|
_skip_check_: !0,
|
|
489
490
|
value: "50%"
|
|
490
491
|
},
|
|
491
492
|
transform: "translateY(-50%) translateX(100%) rotate(90deg)"
|
|
492
493
|
},
|
|
493
|
-
[`&-placement-leftTop > ${
|
|
494
|
+
[`&-placement-leftTop > ${t}-arrow`]: {
|
|
494
495
|
top: s
|
|
495
496
|
},
|
|
496
|
-
[`&-placement-leftBottom > ${
|
|
497
|
+
[`&-placement-leftBottom > ${t}-arrow`]: {
|
|
497
498
|
bottom: s
|
|
498
499
|
}
|
|
499
500
|
})), U(!!l.right, {
|
|
500
|
-
[[`&-placement-right > ${
|
|
501
|
+
[[`&-placement-right > ${t}-arrow`, `&-placement-rightTop > ${t}-arrow`, `&-placement-rightBottom > ${t}-arrow`].join(",")]: {
|
|
501
502
|
left: {
|
|
502
503
|
_skip_check_: !0,
|
|
503
504
|
value: i
|
|
504
505
|
},
|
|
505
506
|
transform: "translateX(-100%) rotate(-90deg)"
|
|
506
507
|
},
|
|
507
|
-
[`&-placement-right > ${
|
|
508
|
+
[`&-placement-right > ${t}-arrow`]: {
|
|
508
509
|
top: {
|
|
509
510
|
_skip_check_: !0,
|
|
510
511
|
value: "50%"
|
|
511
512
|
},
|
|
512
513
|
transform: "translateY(-50%) translateX(-100%) rotate(-90deg)"
|
|
513
514
|
},
|
|
514
|
-
[`&-placement-rightTop > ${
|
|
515
|
+
[`&-placement-rightTop > ${t}-arrow`]: {
|
|
515
516
|
top: s
|
|
516
517
|
},
|
|
517
|
-
[`&-placement-rightBottom > ${
|
|
518
|
+
[`&-placement-rightBottom > ${t}-arrow`]: {
|
|
518
519
|
bottom: s
|
|
519
520
|
}
|
|
520
521
|
}))
|
|
521
522
|
};
|
|
522
523
|
}
|
|
523
|
-
function
|
|
524
|
-
if (
|
|
524
|
+
function Oe(e, o, a, t) {
|
|
525
|
+
if (t === !1)
|
|
525
526
|
return {
|
|
526
527
|
adjustX: !1,
|
|
527
528
|
adjustY: !1
|
|
528
529
|
};
|
|
529
|
-
const
|
|
530
|
-
switch (
|
|
530
|
+
const r = t && typeof t == "object" ? t : {}, s = {};
|
|
531
|
+
switch (e) {
|
|
531
532
|
case "top":
|
|
532
533
|
case "bottom":
|
|
533
|
-
s.shiftX = o.arrowOffsetHorizontal * 2 +
|
|
534
|
+
s.shiftX = o.arrowOffsetHorizontal * 2 + a, s.shiftY = !0, s.adjustY = !0;
|
|
534
535
|
break;
|
|
535
536
|
case "left":
|
|
536
537
|
case "right":
|
|
537
|
-
s.shiftY = o.arrowOffsetVertical * 2 +
|
|
538
|
+
s.shiftY = o.arrowOffsetVertical * 2 + a, s.shiftX = !0, s.adjustX = !0;
|
|
538
539
|
break;
|
|
539
540
|
}
|
|
540
|
-
const
|
|
541
|
-
return
|
|
541
|
+
const n = Object.assign(Object.assign({}, s), r);
|
|
542
|
+
return n.shiftX || (n.adjustX = !0), n.shiftY || (n.adjustY = !0), n;
|
|
542
543
|
}
|
|
543
|
-
const
|
|
544
|
+
const ft = {
|
|
544
545
|
left: {
|
|
545
546
|
points: ["cr", "cl"]
|
|
546
547
|
},
|
|
@@ -577,7 +578,7 @@ const ce = {
|
|
|
577
578
|
leftBottom: {
|
|
578
579
|
points: ["br", "bl"]
|
|
579
580
|
}
|
|
580
|
-
},
|
|
581
|
+
}, Ce = {
|
|
581
582
|
topLeft: {
|
|
582
583
|
points: ["bl", "tc"]
|
|
583
584
|
},
|
|
@@ -602,94 +603,94 @@ const ce = {
|
|
|
602
603
|
leftBottom: {
|
|
603
604
|
points: ["br", "cl"]
|
|
604
605
|
}
|
|
605
|
-
}, $
|
|
606
|
-
function
|
|
606
|
+
}, $e = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
|
|
607
|
+
function _e(e) {
|
|
607
608
|
const {
|
|
608
609
|
arrowWidth: o,
|
|
609
|
-
autoAdjustOverflow:
|
|
610
|
-
arrowPointAtCenter:
|
|
611
|
-
offset:
|
|
610
|
+
autoAdjustOverflow: a,
|
|
611
|
+
arrowPointAtCenter: t,
|
|
612
|
+
offset: r,
|
|
612
613
|
borderRadius: s,
|
|
613
|
-
visibleFirst:
|
|
614
|
-
} =
|
|
615
|
-
return Object.keys(
|
|
616
|
-
const
|
|
614
|
+
visibleFirst: n
|
|
615
|
+
} = e, i = o / 2, l = {};
|
|
616
|
+
return Object.keys(ft).forEach((p) => {
|
|
617
|
+
const v = t && Ce[p] || ft[p], c = Object.assign(Object.assign({}, v), {
|
|
617
618
|
offset: [0, 0],
|
|
618
619
|
dynamicInset: !0
|
|
619
620
|
});
|
|
620
|
-
switch (l[
|
|
621
|
+
switch (l[p] = c, $e.has(p) && (c.autoArrow = !1), p) {
|
|
621
622
|
case "top":
|
|
622
623
|
case "topLeft":
|
|
623
624
|
case "topRight":
|
|
624
|
-
c.offset[1] = -i -
|
|
625
|
+
c.offset[1] = -i - r;
|
|
625
626
|
break;
|
|
626
627
|
case "bottom":
|
|
627
628
|
case "bottomLeft":
|
|
628
629
|
case "bottomRight":
|
|
629
|
-
c.offset[1] = i +
|
|
630
|
+
c.offset[1] = i + r;
|
|
630
631
|
break;
|
|
631
632
|
case "left":
|
|
632
633
|
case "leftTop":
|
|
633
634
|
case "leftBottom":
|
|
634
|
-
c.offset[0] = -i -
|
|
635
|
+
c.offset[0] = -i - r;
|
|
635
636
|
break;
|
|
636
637
|
case "right":
|
|
637
638
|
case "rightTop":
|
|
638
639
|
case "rightBottom":
|
|
639
|
-
c.offset[0] = i +
|
|
640
|
+
c.offset[0] = i + r;
|
|
640
641
|
break;
|
|
641
642
|
}
|
|
642
|
-
const
|
|
643
|
+
const u = gt({
|
|
643
644
|
contentRadius: s,
|
|
644
645
|
limitVerticalRadius: !0
|
|
645
646
|
});
|
|
646
|
-
if (
|
|
647
|
-
switch (
|
|
647
|
+
if (t)
|
|
648
|
+
switch (p) {
|
|
648
649
|
case "topLeft":
|
|
649
650
|
case "bottomLeft":
|
|
650
|
-
c.offset[0] = -
|
|
651
|
+
c.offset[0] = -u.arrowOffsetHorizontal - i;
|
|
651
652
|
break;
|
|
652
653
|
case "topRight":
|
|
653
654
|
case "bottomRight":
|
|
654
|
-
c.offset[0] =
|
|
655
|
+
c.offset[0] = u.arrowOffsetHorizontal + i;
|
|
655
656
|
break;
|
|
656
657
|
case "leftTop":
|
|
657
658
|
case "rightTop":
|
|
658
|
-
c.offset[1] = -
|
|
659
|
+
c.offset[1] = -u.arrowOffsetHorizontal * 2 + i;
|
|
659
660
|
break;
|
|
660
661
|
case "leftBottom":
|
|
661
662
|
case "rightBottom":
|
|
662
|
-
c.offset[1] =
|
|
663
|
+
c.offset[1] = u.arrowOffsetHorizontal * 2 - i;
|
|
663
664
|
break;
|
|
664
665
|
}
|
|
665
|
-
c.overflow =
|
|
666
|
+
c.overflow = Oe(p, u, o, a), n && (c.htmlRegion = "visibleFirst");
|
|
666
667
|
}), l;
|
|
667
668
|
}
|
|
668
|
-
const
|
|
669
|
+
const xe = (e) => {
|
|
669
670
|
const {
|
|
670
671
|
calc: o,
|
|
671
|
-
componentCls:
|
|
672
|
+
componentCls: a,
|
|
672
673
|
// ant-tooltip
|
|
673
|
-
tooltipMaxWidth:
|
|
674
|
-
tooltipColor:
|
|
674
|
+
tooltipMaxWidth: t,
|
|
675
|
+
tooltipColor: r,
|
|
675
676
|
tooltipBg: s,
|
|
676
|
-
tooltipBorderRadius:
|
|
677
|
+
tooltipBorderRadius: n,
|
|
677
678
|
zIndexPopup: i,
|
|
678
679
|
controlHeight: l,
|
|
679
|
-
boxShadowSecondary:
|
|
680
|
-
paddingSM:
|
|
680
|
+
boxShadowSecondary: p,
|
|
681
|
+
paddingSM: v,
|
|
681
682
|
paddingXS: c,
|
|
682
|
-
arrowOffsetHorizontal:
|
|
683
|
-
sizePopupArrow:
|
|
684
|
-
} =
|
|
683
|
+
arrowOffsetHorizontal: u,
|
|
684
|
+
sizePopupArrow: h
|
|
685
|
+
} = e, O = o(n).add(h).add(u).equal(), $ = o(n).mul(2).add(h).equal();
|
|
685
686
|
return [
|
|
686
687
|
{
|
|
687
|
-
[
|
|
688
|
+
[a]: Object.assign(Object.assign(Object.assign(Object.assign({}, Ut(e)), {
|
|
688
689
|
position: "absolute",
|
|
689
690
|
zIndex: i,
|
|
690
691
|
display: "block",
|
|
691
692
|
width: "max-content",
|
|
692
|
-
maxWidth:
|
|
693
|
+
maxWidth: t,
|
|
693
694
|
visibility: "visible",
|
|
694
695
|
// When use `autoArrow`, origin will follow the arrow position
|
|
695
696
|
"--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
|
|
@@ -699,17 +700,17 @@ const xt = (t) => {
|
|
|
699
700
|
},
|
|
700
701
|
"--antd-arrow-background-color": s,
|
|
701
702
|
// Wrapper for the tooltip content
|
|
702
|
-
[`${
|
|
703
|
+
[`${a}-inner`]: {
|
|
703
704
|
minWidth: $,
|
|
704
705
|
minHeight: l,
|
|
705
|
-
padding: `${W(
|
|
706
|
-
color:
|
|
706
|
+
padding: `${W(e.calc(v).div(2).equal())} ${W(c)}`,
|
|
707
|
+
color: r,
|
|
707
708
|
textAlign: "start",
|
|
708
709
|
textDecoration: "none",
|
|
709
710
|
wordWrap: "break-word",
|
|
710
711
|
backgroundColor: s,
|
|
711
|
-
borderRadius:
|
|
712
|
-
boxShadow:
|
|
712
|
+
borderRadius: n,
|
|
713
|
+
boxShadow: p,
|
|
713
714
|
boxSizing: "border-box"
|
|
714
715
|
},
|
|
715
716
|
// Align placement should have another min width
|
|
@@ -718,23 +719,23 @@ const xt = (t) => {
|
|
|
718
719
|
},
|
|
719
720
|
// Limit left and right placement radius
|
|
720
721
|
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
|
|
721
|
-
[`${
|
|
722
|
-
borderRadius:
|
|
722
|
+
[`${a}-inner`]: {
|
|
723
|
+
borderRadius: e.min(n, dt)
|
|
723
724
|
}
|
|
724
725
|
},
|
|
725
|
-
[`${
|
|
726
|
+
[`${a}-content`]: {
|
|
726
727
|
position: "relative"
|
|
727
728
|
}
|
|
728
|
-
}),
|
|
729
|
+
}), ee(e, (_, b) => {
|
|
729
730
|
let {
|
|
730
731
|
darkColor: g
|
|
731
732
|
} = b;
|
|
732
733
|
return {
|
|
733
|
-
[`&${
|
|
734
|
-
[`${
|
|
734
|
+
[`&${a}-${_}`]: {
|
|
735
|
+
[`${a}-inner`]: {
|
|
735
736
|
backgroundColor: g
|
|
736
737
|
},
|
|
737
|
-
[`${
|
|
738
|
+
[`${a}-arrow`]: {
|
|
738
739
|
"--antd-arrow-background-color": g
|
|
739
740
|
}
|
|
740
741
|
}
|
|
@@ -747,200 +748,208 @@ const xt = (t) => {
|
|
|
747
748
|
})
|
|
748
749
|
},
|
|
749
750
|
// Arrow Style
|
|
750
|
-
|
|
751
|
+
we(e, "var(--antd-arrow-background-color)"),
|
|
751
752
|
// Pure Render
|
|
752
753
|
{
|
|
753
|
-
[`${
|
|
754
|
+
[`${a}-pure`]: {
|
|
754
755
|
position: "relative",
|
|
755
756
|
maxWidth: "none",
|
|
756
|
-
margin:
|
|
757
|
+
margin: e.sizePopupArrow
|
|
757
758
|
}
|
|
758
759
|
}
|
|
759
760
|
];
|
|
760
|
-
},
|
|
761
|
-
zIndexPopup:
|
|
762
|
-
},
|
|
763
|
-
contentRadius:
|
|
761
|
+
}, Pe = (e) => Object.assign(Object.assign({
|
|
762
|
+
zIndexPopup: e.zIndexPopupBase + 70
|
|
763
|
+
}, gt({
|
|
764
|
+
contentRadius: e.borderRadius,
|
|
764
765
|
limitVerticalRadius: !0
|
|
765
|
-
})),
|
|
766
|
-
borderRadiusOuter: Math.min(
|
|
767
|
-
}))),
|
|
766
|
+
})), he(mt(e, {
|
|
767
|
+
borderRadiusOuter: Math.min(e.borderRadiusOuter, 4)
|
|
768
|
+
}))), bt = function(e) {
|
|
768
769
|
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
769
|
-
return
|
|
770
|
+
return Ft("Tooltip", (t) => {
|
|
770
771
|
const {
|
|
771
|
-
borderRadius:
|
|
772
|
+
borderRadius: r,
|
|
772
773
|
colorTextLightSolid: s,
|
|
773
|
-
colorBgSpotlight:
|
|
774
|
-
} =
|
|
774
|
+
colorBgSpotlight: n
|
|
775
|
+
} = t, i = mt(t, {
|
|
775
776
|
// default variables
|
|
776
777
|
tooltipMaxWidth: 250,
|
|
777
778
|
tooltipColor: s,
|
|
778
|
-
tooltipBorderRadius:
|
|
779
|
-
tooltipBg:
|
|
779
|
+
tooltipBorderRadius: r,
|
|
780
|
+
tooltipBg: n
|
|
780
781
|
});
|
|
781
|
-
return [
|
|
782
|
-
},
|
|
782
|
+
return [xe(i), ue(t, "zoom-big-fast")];
|
|
783
|
+
}, Pe, {
|
|
783
784
|
resetStyle: !1,
|
|
784
785
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
785
786
|
injectStyle: o
|
|
786
|
-
})(
|
|
787
|
-
},
|
|
788
|
-
function
|
|
789
|
-
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(
|
|
787
|
+
})(e);
|
|
788
|
+
}, Ne = G.map((e) => `${e}-inverse`);
|
|
789
|
+
function Te(e) {
|
|
790
|
+
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(it(Ne), it(G)).includes(e) : G.includes(e);
|
|
790
791
|
}
|
|
791
|
-
function
|
|
792
|
-
const
|
|
793
|
-
[`${
|
|
794
|
-
}),
|
|
795
|
-
return o && !
|
|
796
|
-
className:
|
|
797
|
-
overlayStyle:
|
|
792
|
+
function vt(e, o) {
|
|
793
|
+
const a = Te(o), t = S({
|
|
794
|
+
[`${e}-${o}`]: o && a
|
|
795
|
+
}), r = {}, s = {};
|
|
796
|
+
return o && !a && (r.background = o, s["--antd-arrow-background-color"] = o), {
|
|
797
|
+
className: t,
|
|
798
|
+
overlayStyle: r,
|
|
798
799
|
arrowStyle: s
|
|
799
800
|
};
|
|
800
801
|
}
|
|
801
|
-
const
|
|
802
|
+
const Se = (e) => {
|
|
802
803
|
const {
|
|
803
804
|
prefixCls: o,
|
|
804
|
-
className:
|
|
805
|
-
placement:
|
|
806
|
-
title:
|
|
805
|
+
className: a,
|
|
806
|
+
placement: t = "top",
|
|
807
|
+
title: r,
|
|
807
808
|
color: s,
|
|
808
|
-
overlayInnerStyle:
|
|
809
|
-
} =
|
|
809
|
+
overlayInnerStyle: n
|
|
810
|
+
} = e, {
|
|
810
811
|
getPrefixCls: i
|
|
811
|
-
} =
|
|
812
|
-
return
|
|
812
|
+
} = m.useContext(pt), l = i("tooltip", o), [p, v, c] = bt(l), u = vt(l, s), h = u.arrowStyle, O = Object.assign(Object.assign({}, n), u.overlayStyle), $ = S(v, c, l, `${l}-pure`, `${l}-placement-${t}`, a, u.className);
|
|
813
|
+
return p(/* @__PURE__ */ m.createElement("div", {
|
|
813
814
|
className: $,
|
|
814
|
-
style:
|
|
815
|
-
}, /* @__PURE__ */
|
|
815
|
+
style: h
|
|
816
|
+
}, /* @__PURE__ */ m.createElement("div", {
|
|
816
817
|
className: `${l}-arrow`
|
|
817
|
-
}), /* @__PURE__ */
|
|
818
|
-
className:
|
|
818
|
+
}), /* @__PURE__ */ m.createElement(ut, Object.assign({}, e, {
|
|
819
|
+
className: v,
|
|
819
820
|
prefixCls: l,
|
|
820
821
|
overlayInnerStyle: O
|
|
821
|
-
}),
|
|
822
|
-
};
|
|
823
|
-
var
|
|
824
|
-
var
|
|
825
|
-
for (var
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
822
|
+
}), r)));
|
|
823
|
+
}, je = Se;
|
|
824
|
+
var ze = globalThis && globalThis.__rest || function(e, o) {
|
|
825
|
+
var a = {};
|
|
826
|
+
for (var t in e)
|
|
827
|
+
Object.prototype.hasOwnProperty.call(e, t) && o.indexOf(t) < 0 && (a[t] = e[t]);
|
|
828
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
829
|
+
for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
|
|
830
|
+
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (a[t[r]] = e[t[r]]);
|
|
831
|
+
return a;
|
|
829
832
|
};
|
|
830
|
-
const
|
|
831
|
-
var
|
|
833
|
+
const Ie = /* @__PURE__ */ m.forwardRef((e, o) => {
|
|
834
|
+
var a, t, r, s, n, i;
|
|
832
835
|
const {
|
|
833
836
|
prefixCls: l,
|
|
834
|
-
openClassName:
|
|
835
|
-
getTooltipContainer:
|
|
837
|
+
openClassName: p,
|
|
838
|
+
getTooltipContainer: v,
|
|
836
839
|
color: c,
|
|
837
|
-
overlayInnerStyle:
|
|
838
|
-
children:
|
|
840
|
+
overlayInnerStyle: u,
|
|
841
|
+
children: h,
|
|
839
842
|
afterOpenChange: O,
|
|
840
843
|
afterVisibleChange: $,
|
|
841
844
|
destroyTooltipOnHide: _,
|
|
842
845
|
arrow: b = !0,
|
|
843
846
|
title: g,
|
|
844
847
|
overlay: x,
|
|
845
|
-
builtinPlacements:
|
|
848
|
+
builtinPlacements: j,
|
|
846
849
|
arrowPointAtCenter: z = !1,
|
|
847
850
|
autoAdjustOverflow: J = !0
|
|
848
|
-
} =
|
|
851
|
+
} = e, B = !!b, [, I] = Gt(), {
|
|
849
852
|
getPopupContainer: Q,
|
|
850
853
|
getPrefixCls: Y,
|
|
851
|
-
direction:
|
|
854
|
+
direction: tt,
|
|
852
855
|
tooltip: f
|
|
853
|
-
} =
|
|
854
|
-
var
|
|
855
|
-
(
|
|
856
|
+
} = m.useContext(pt), R = Jt("Tooltip"), A = m.useRef(null), Z = () => {
|
|
857
|
+
var d;
|
|
858
|
+
(d = A.current) === null || d === void 0 || d.forceAlign();
|
|
856
859
|
};
|
|
857
|
-
|
|
858
|
-
var
|
|
860
|
+
m.useImperativeHandle(o, () => {
|
|
861
|
+
var d;
|
|
859
862
|
return {
|
|
860
863
|
forceAlign: Z,
|
|
861
864
|
forcePopupAlign: () => {
|
|
862
865
|
R.deprecated(!1, "forcePopupAlign", "forceAlign"), Z();
|
|
863
866
|
},
|
|
864
|
-
nativeElement: (
|
|
867
|
+
nativeElement: (d = A.current) === null || d === void 0 ? void 0 : d.nativeElement
|
|
865
868
|
};
|
|
866
|
-
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", "classNames={{ root: {} }}"]].forEach((
|
|
867
|
-
let [C,
|
|
868
|
-
R.deprecated(!(C in
|
|
869
|
+
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", "classNames={{ root: {} }}"]].forEach((d) => {
|
|
870
|
+
let [C, T] = d;
|
|
871
|
+
R.deprecated(!(C in e), C, T);
|
|
869
872
|
}), process.env.NODE_ENV !== "production" && R(!_ || typeof _ == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && R(!b || typeof b == "boolean" || !("arrowPointAtCenter" in b), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
870
|
-
const [P, N] =
|
|
871
|
-
value: (
|
|
872
|
-
defaultValue: (
|
|
873
|
-
}), M = !g && !x && g !== 0, K = (
|
|
874
|
-
var C,
|
|
875
|
-
N(M ? !1 :
|
|
876
|
-
}, q =
|
|
877
|
-
var
|
|
878
|
-
let
|
|
879
|
-
return typeof b == "object" && (
|
|
880
|
-
arrowPointAtCenter:
|
|
873
|
+
const [P, N] = Kt(!1, {
|
|
874
|
+
value: (a = e.open) !== null && a !== void 0 ? a : e.visible,
|
|
875
|
+
defaultValue: (t = e.defaultOpen) !== null && t !== void 0 ? t : e.defaultVisible
|
|
876
|
+
}), M = !g && !x && g !== 0, K = (d) => {
|
|
877
|
+
var C, T;
|
|
878
|
+
N(M ? !1 : d), M || ((C = e.onOpenChange) === null || C === void 0 || C.call(e, d), (T = e.onVisibleChange) === null || T === void 0 || T.call(e, d));
|
|
879
|
+
}, q = m.useMemo(() => {
|
|
880
|
+
var d, C;
|
|
881
|
+
let T = z;
|
|
882
|
+
return typeof b == "object" && (T = (C = (d = b.pointAtCenter) !== null && d !== void 0 ? d : b.arrowPointAtCenter) !== null && C !== void 0 ? C : z), j || _e({
|
|
883
|
+
arrowPointAtCenter: T,
|
|
881
884
|
autoAdjustOverflow: J,
|
|
882
885
|
arrowWidth: B ? I.sizePopupArrow : 0,
|
|
883
886
|
borderRadius: I.borderRadius,
|
|
884
887
|
offset: I.marginXXS,
|
|
885
888
|
visibleFirst: !0
|
|
886
889
|
});
|
|
887
|
-
}, [z, b,
|
|
890
|
+
}, [z, b, j, I]), X = m.useMemo(() => g === 0 ? g : x || g || "", [x, g]), nt = /* @__PURE__ */ m.createElement(qt, {
|
|
888
891
|
space: !0
|
|
889
|
-
}, typeof
|
|
890
|
-
getPopupContainer:
|
|
891
|
-
placement:
|
|
892
|
-
mouseEnterDelay:
|
|
893
|
-
mouseLeaveDelay:
|
|
894
|
-
overlayStyle:
|
|
895
|
-
rootClassName: $
|
|
896
|
-
overlayClassName:
|
|
892
|
+
}, typeof X == "function" ? X() : X), {
|
|
893
|
+
getPopupContainer: ht,
|
|
894
|
+
placement: yt = "top",
|
|
895
|
+
mouseEnterDelay: wt = 0.1,
|
|
896
|
+
mouseLeaveDelay: Ot = 0.1,
|
|
897
|
+
overlayStyle: Ct,
|
|
898
|
+
rootClassName: $t,
|
|
899
|
+
overlayClassName: _t,
|
|
897
900
|
styles: E,
|
|
898
901
|
classNames: V
|
|
899
|
-
} =
|
|
900
|
-
let
|
|
901
|
-
!("open" in
|
|
902
|
-
const
|
|
903
|
-
[`${L}-rtl`]:
|
|
904
|
-
},
|
|
905
|
-
zIndex:
|
|
902
|
+
} = e, st = ze(e, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), L = Y("tooltip", l), xt = Y(), Pt = e["data-popover-inject"];
|
|
903
|
+
let et = P;
|
|
904
|
+
!("open" in e) && !("visible" in e) && M && (et = !1);
|
|
905
|
+
const ot = /* @__PURE__ */ m.isValidElement(h) && !Qt(h) ? h : /* @__PURE__ */ m.createElement("span", null, h), F = ot.props, Nt = !F.className || typeof F.className == "string" ? S(F.className, p || `${L}-open`) : F.className, [Tt, St, jt] = bt(L, !Pt), rt = vt(L, c), zt = rt.arrowStyle, It = S(_t, {
|
|
906
|
+
[`${L}-rtl`]: tt === "rtl"
|
|
907
|
+
}, rt.className, $t, St, jt, f == null ? void 0 : f.className, (r = f == null ? void 0 : f.classNames) === null || r === void 0 ? void 0 : r.root, V == null ? void 0 : V.root), Rt = S((s = f == null ? void 0 : f.classNames) === null || s === void 0 ? void 0 : s.body, V == null ? void 0 : V.body), [At, Et] = Wt("Tooltip", st.zIndex), Vt = /* @__PURE__ */ m.createElement(ve, Object.assign({}, st, {
|
|
908
|
+
zIndex: At,
|
|
906
909
|
showArrow: B,
|
|
907
|
-
placement:
|
|
908
|
-
mouseEnterDelay:
|
|
909
|
-
mouseLeaveDelay:
|
|
910
|
+
placement: yt,
|
|
911
|
+
mouseEnterDelay: wt,
|
|
912
|
+
mouseLeaveDelay: Ot,
|
|
910
913
|
prefixCls: L,
|
|
911
914
|
classNames: {
|
|
912
|
-
root:
|
|
913
|
-
body:
|
|
915
|
+
root: It,
|
|
916
|
+
body: Rt
|
|
914
917
|
},
|
|
915
918
|
styles: {
|
|
916
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
917
|
-
body: Object.assign(Object.assign(Object.assign(Object.assign({}, (i = f == null ? void 0 : f.styles) === null || i === void 0 ? void 0 : i.body),
|
|
919
|
+
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, zt), (n = f == null ? void 0 : f.styles) === null || n === void 0 ? void 0 : n.root), f == null ? void 0 : f.style), Ct), E == null ? void 0 : E.root),
|
|
920
|
+
body: Object.assign(Object.assign(Object.assign(Object.assign({}, (i = f == null ? void 0 : f.styles) === null || i === void 0 ? void 0 : i.body), u), E == null ? void 0 : E.body), rt.overlayStyle)
|
|
918
921
|
},
|
|
919
|
-
getTooltipContainer:
|
|
922
|
+
getTooltipContainer: ht || v || Q,
|
|
920
923
|
ref: A,
|
|
921
924
|
builtinPlacements: q,
|
|
922
|
-
overlay:
|
|
923
|
-
visible:
|
|
925
|
+
overlay: nt,
|
|
926
|
+
visible: et,
|
|
924
927
|
onVisibleChange: K,
|
|
925
928
|
afterVisibleChange: O ?? $,
|
|
926
|
-
arrowContent: /* @__PURE__ */
|
|
929
|
+
arrowContent: /* @__PURE__ */ m.createElement("span", {
|
|
927
930
|
className: `${L}-arrow-content`
|
|
928
931
|
}),
|
|
929
932
|
motion: {
|
|
930
|
-
motionName:
|
|
933
|
+
motionName: Yt(xt, "zoom-big-fast", e.transitionName),
|
|
931
934
|
motionDeadline: 1e3
|
|
932
935
|
},
|
|
933
936
|
destroyTooltipOnHide: !!_
|
|
934
|
-
}),
|
|
935
|
-
className:
|
|
936
|
-
}) :
|
|
937
|
-
return
|
|
938
|
-
value:
|
|
939
|
-
},
|
|
940
|
-
}),
|
|
941
|
-
process.env.NODE_ENV !== "production" && (
|
|
942
|
-
|
|
937
|
+
}), et ? te(ot, {
|
|
938
|
+
className: Nt
|
|
939
|
+
}) : ot);
|
|
940
|
+
return Tt(/* @__PURE__ */ m.createElement(Zt.Provider, {
|
|
941
|
+
value: Et
|
|
942
|
+
}, Vt));
|
|
943
|
+
}), at = Ie;
|
|
944
|
+
process.env.NODE_ENV !== "production" && (at.displayName = "Tooltip");
|
|
945
|
+
at._InternalPanelDoNotUseOrYouWillBeFired = je;
|
|
946
|
+
const Me = at;
|
|
943
947
|
export {
|
|
944
|
-
|
|
945
|
-
|
|
948
|
+
Me as T,
|
|
949
|
+
gt as a,
|
|
950
|
+
he as b,
|
|
951
|
+
_e as c,
|
|
952
|
+
we as g,
|
|
953
|
+
ue as i,
|
|
954
|
+
oe as z
|
|
946
955
|
};
|