@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.
Files changed (258) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-c395a1c4.js +204 -0
  3. package/dist/CheckOutlined-52d9ac25.js +29 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
  5. package/dist/CloseOutlined-14b8bba1.js +16 -0
  6. package/dist/Compact-c39ed20d.js +179 -0
  7. package/dist/ContextIsolator-b09b2c52.js +20 -0
  8. package/dist/DownOutlined-64a4732a.js +206 -0
  9. package/dist/EllipsisOutlined-60122660.js +1115 -0
  10. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
  11. package/dist/InfoCircleFilled-c5f90c20.js +16 -0
  12. package/dist/Overflow-a570fa69.js +361 -0
  13. package/dist/RightOutlined-83515eb4.js +16 -0
  14. package/dist/SearchOutlined-a9014e08.js +16 -0
  15. package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
  16. package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
  17. package/dist/collapse-345bc884.js +20 -0
  18. package/dist/compact-item-b8f85aa6.js +75 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +102 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +72 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +23 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +35 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +27 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +23 -0
  54. package/dist/components/Breadcrumb/styles.js +2457 -0
  55. package/dist/components/Button/Button.js +42 -0
  56. package/dist/components/Button/__tests__/Button.test.js +61 -0
  57. package/dist/components/Button/index.js +22 -0
  58. package/dist/components/{atoms/button → Button}/styles.js +30 -19
  59. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  60. package/dist/components/Checkbox/Checkbox.js +70 -0
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
  62. package/dist/components/Checkbox/index.js +49 -0
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
  66. package/dist/components/ErrorBoundaryFallback/index.js +51 -0
  67. package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
  69. package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
  70. package/dist/components/Form/Form.js +49 -0
  71. package/dist/components/Form/__stories__/FormStory.js +130 -0
  72. package/dist/components/Form/index.js +48 -0
  73. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  74. package/dist/components/Input/Input.js +42 -0
  75. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  76. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  77. package/dist/components/Input/__tests__/Input.test.js +69 -0
  78. package/dist/components/Input/index.js +31 -0
  79. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
  80. package/dist/components/Input/styles.js +542 -0
  81. package/dist/components/Message/Message.d.ts +13 -0
  82. package/dist/components/Message/Message.js +105 -0
  83. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  84. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  85. package/dist/components/Message/__tests__/Message.test.js +88 -0
  86. package/dist/components/Message/index.d.ts +2 -0
  87. package/dist/components/Message/index.js +50 -0
  88. package/dist/components/Message/styles.d.ts +5 -0
  89. package/dist/components/Message/styles.js +35 -0
  90. package/dist/components/Notification/Notification.d.ts +16 -0
  91. package/dist/components/Notification/Notification.js +1436 -0
  92. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  93. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  94. package/dist/components/Notification/__tests__/Notification.test.js +76 -0
  95. package/dist/components/Notification/index.d.ts +2 -0
  96. package/dist/components/Notification/index.js +61 -0
  97. package/dist/components/Notification/styles.d.ts +6 -0
  98. package/dist/components/Notification/styles.js +49 -0
  99. package/dist/components/Radio/Radio.d.ts +14 -0
  100. package/dist/components/Radio/Radio.js +114 -0
  101. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  102. package/dist/components/Radio/RadioGroup.js +86 -0
  103. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  104. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  105. package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
  106. package/dist/components/Radio/index.d.ts +2 -0
  107. package/dist/components/Radio/index.js +58 -0
  108. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  109. package/dist/components/Radio/states/RadioChecked.js +18 -0
  110. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  111. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  112. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  113. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  114. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  115. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  116. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  117. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  118. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  119. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  120. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  121. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  122. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  123. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  124. package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
  125. package/dist/components/Select/Select.js +48 -0
  126. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  127. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  128. package/dist/components/Select/__tests__/Select.test.js +101 -0
  129. package/dist/components/Select/index.js +30 -0
  130. package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
  131. package/dist/components/Select/styles.js +3723 -0
  132. package/dist/components/Toast/Toast.d.ts +14 -0
  133. package/dist/components/Toast/Toast.js +48 -0
  134. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  135. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  136. package/dist/components/Toast/__tests__/Toast.test.js +63 -0
  137. package/dist/components/Toast/index.d.ts +2 -0
  138. package/dist/components/Toast/index.js +48 -0
  139. package/dist/components/Toast/styles.d.ts +5 -0
  140. package/dist/components/Toast/styles.js +39 -0
  141. package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
  142. package/dist/components/Typography/Typography.js +48 -0
  143. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  144. package/dist/components/Typography/__tests__/Typography.test.js +60 -0
  145. package/dist/components/Typography/index.js +48 -0
  146. package/dist/components/Typography/styles.d.ts +7 -0
  147. package/dist/components/Typography/styles.js +55 -0
  148. package/dist/components/index.d.ts +18 -14
  149. package/dist/components/index.js +70 -14
  150. package/dist/constants/index.d.ts +104 -0
  151. package/dist/constants/index.js +41 -7
  152. package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
  153. package/dist/genesis/GenesisThemeBreakdown.js +69 -22
  154. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  155. package/dist/genesis/GenesisThemeDemo.js +53 -4
  156. package/dist/genesis/styles.d.ts +2 -6
  157. package/dist/genesis/styles.js +1144 -2210
  158. package/dist/index-0a886e53.js +100 -0
  159. package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
  160. package/dist/index-1a33c134.js +1389 -0
  161. package/dist/index-4003d75b.js +3748 -0
  162. package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
  163. package/dist/index-89035ea5.js +3242 -0
  164. package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
  165. package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
  166. package/dist/index.d.ts +1 -0
  167. package/dist/index.js +77 -18
  168. package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
  169. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
  170. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
  171. package/dist/presets-83ccb923.js +787 -0
  172. package/dist/providers/GenesisProvider.d.ts +5 -0
  173. package/dist/providers/GenesisProvider.js +59 -5
  174. package/dist/providers/ThemeProvider.d.ts +2 -1
  175. package/dist/providers/ThemeProvider.js +16 -11
  176. package/dist/providers/ToastProvider.d.ts +6 -0
  177. package/dist/providers/ToastProvider.js +49 -0
  178. package/dist/providers/ToastWrapper.d.ts +7 -0
  179. package/dist/providers/ToastWrapper.js +56 -0
  180. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  181. package/dist/providers/index.d.ts +3 -2
  182. package/dist/providers/index.js +51 -4
  183. package/dist/setup-aaca7b6f.js +21158 -0
  184. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
  185. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
  186. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
  187. package/dist/styles/design-tokens/variables.d.ts +7 -7
  188. package/dist/styles/design-tokens/variables.js +48 -48
  189. package/dist/styles/global-styles.js +4 -3
  190. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  191. package/dist/styles/theme/genesis-theme.js +402 -263
  192. package/dist/styles/theme/global-styles.js +4 -3
  193. package/dist/styles/theme/index.js +5 -4
  194. package/dist/test/setup.js +46 -2
  195. package/dist/useVariants-a0d64298.js +30 -0
  196. package/dist/utils/isAllEnglishString.js +2 -1
  197. package/package.json +34 -28
  198. package/dist/AntdIcon-Bsnbyy6g.js +0 -200
  199. package/dist/CheckOutlined-DAynWe12.js +0 -527
  200. package/dist/Compact-CJBo3f0u.js +0 -185
  201. package/dist/ContextIsolator-CGkdKtc3.js +0 -20
  202. package/dist/Form-Cylpi4M4.js +0 -1815
  203. package/dist/Overflow-CP1M4Z0s.js +0 -369
  204. package/dist/compact-item-DH13cl8A.js +0 -61
  205. package/dist/components/atoms/button/Button.js +0 -27
  206. package/dist/components/atoms/button/index.js +0 -4
  207. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  208. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
  209. package/dist/components/atoms/checkbox/index.js +0 -4
  210. package/dist/components/atoms/index.d.ts +0 -1
  211. package/dist/components/atoms/index.js +0 -3
  212. package/dist/components/atoms/input/Input.js +0 -12
  213. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  214. package/dist/components/atoms/input/index.js +0 -4
  215. package/dist/components/atoms/input/styles.js +0 -415
  216. package/dist/components/atoms/select/Select.js +0 -24
  217. package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
  218. package/dist/components/atoms/select/index.js +0 -4
  219. package/dist/components/atoms/select/styles.js +0 -3868
  220. package/dist/components/atoms/typography/Typography.js +0 -44
  221. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  222. package/dist/components/atoms/typography/index.js +0 -4
  223. package/dist/components/atoms/typography/styles.d.ts +0 -11
  224. package/dist/components/atoms/typography/styles.js +0 -28
  225. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  226. package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
  227. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
  228. package/dist/components/molecules/form/Form.js +0 -7
  229. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  230. package/dist/components/molecules/form/index.js +0 -4
  231. package/dist/index-3MWkSVA1.js +0 -96
  232. package/dist/index-BPtFqhcp.js +0 -19110
  233. package/dist/index-BWys7dkb.js +0 -4462
  234. package/dist/index-VDH3iLaC.js +0 -884
  235. package/dist/setup-CMYVZCPF.js +0 -33883
  236. package/dist/useVariants-CEpw6Ww6.js +0 -29
  237. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  239. /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
  240. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
  244. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  245. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  246. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  247. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
  248. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  249. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
  250. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  251. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  252. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  254. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  255. /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
  256. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
  257. /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
  258. /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
@@ -1,23 +1,24 @@
1
- import * as u from "react";
2
- import { forwardRef as Le, useRef as ke, useImperativeHandle as De } from "react";
3
- import { c as j, d as Be, a as X, _ as Me, z as W, m as He, n as fe, D as Xe, H as se, C as ue, N as We, A as Ye } from "./index-BWys7dkb.js";
4
- import { K as v, i as Ze, T as Ke, u as qe, g as Fe, z as Ue } from "./index-VDH3iLaC.js";
5
- import { u as Ge } from "./isVisible-CNQjrJPN.js";
6
- import { C as Je } from "./ContextIsolator-CGkdKtc3.js";
7
- import { i as Qe, c as et } from "./reactNode-sKPeiqPL.js";
8
- import { P as G } from "./presetColors-Cl8UP3Nw.js";
9
- function tt(t, o) {
10
- return G.reduce((r, e) => {
11
- const n = t[`${e}1`], s = t[`${e}3`], a = t[`${e}6`], i = t[`${e}7`];
12
- return Object.assign(Object.assign({}, r), o(e, {
13
- lightColor: n,
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: a,
16
+ darkColor: n,
16
17
  textColor: i
17
18
  }));
18
19
  }, {});
19
20
  }
20
- const ot = new v("antZoomIn", {
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
- }), nt = new v("antZoomOut", {
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
- }), ie = new v("antZoomBigIn", {
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
- }), le = new v("antZoomBigOut", {
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
- }), rt = new v("antZoomUpIn", {
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
- }), at = new v("antZoomUpOut", {
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
- }), st = new v("antZoomLeftIn", {
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
- }), it = new v("antZoomLeftOut", {
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
- }), lt = new v("antZoomRightIn", {
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
- }), ct = new v("antZoomRightOut", {
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
- }), ft = new v("antZoomDownIn", {
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
- }), ut = new v("antZoomDownOut", {
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
- }), mt = {
135
+ }), pe = {
135
136
  zoom: {
136
- inKeyframes: ot,
137
- outKeyframes: nt
137
+ inKeyframes: oe,
138
+ outKeyframes: re
138
139
  },
139
140
  "zoom-big": {
140
- inKeyframes: ie,
141
- outKeyframes: le
141
+ inKeyframes: lt,
142
+ outKeyframes: ct
142
143
  },
143
144
  "zoom-big-fast": {
144
- inKeyframes: ie,
145
- outKeyframes: le
145
+ inKeyframes: lt,
146
+ outKeyframes: ct
146
147
  },
147
148
  "zoom-left": {
148
- inKeyframes: st,
149
- outKeyframes: it
149
+ inKeyframes: se,
150
+ outKeyframes: ie
150
151
  },
151
152
  "zoom-right": {
152
- inKeyframes: lt,
153
- outKeyframes: ct
153
+ inKeyframes: le,
154
+ outKeyframes: ce
154
155
  },
155
156
  "zoom-up": {
156
- inKeyframes: rt,
157
- outKeyframes: at
157
+ inKeyframes: ae,
158
+ outKeyframes: ne
158
159
  },
159
160
  "zoom-down": {
160
- inKeyframes: ft,
161
- outKeyframes: ut
161
+ inKeyframes: fe,
162
+ outKeyframes: me
162
163
  }
163
- }, dt = (t, o) => {
164
+ }, ue = (e, o) => {
164
165
  const {
165
- antCls: r
166
- } = t, e = `${r}-${o}`, {
167
- inKeyframes: n,
166
+ antCls: a
167
+ } = e, t = `${a}-${o}`, {
168
+ inKeyframes: r,
168
169
  outKeyframes: s
169
- } = mt[o];
170
- return [Ze(e, n, s, t.motionDurationFast), {
170
+ } = pe[o];
171
+ return [Xt(t, r, s, o === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
171
172
  [`
172
- ${e}-enter,
173
- ${e}-appear
173
+ ${t}-enter,
174
+ ${t}-appear
174
175
  `]: {
175
176
  transform: "scale(0)",
176
177
  opacity: 0,
177
- animationTimingFunction: t.motionEaseOutCirc,
178
+ animationTimingFunction: e.motionEaseOutCirc,
178
179
  "&-prepare": {
179
180
  transform: "none"
180
181
  }
181
182
  },
182
- [`${e}-leave`]: {
183
- animationTimingFunction: t.motionEaseInOutCirc
183
+ [`${t}-leave`]: {
184
+ animationTimingFunction: e.motionEaseInOutCirc
184
185
  }
185
186
  }];
186
187
  };
187
- function me(t) {
188
- var o = t.children, r = t.prefixCls, e = t.id, n = t.overlayInnerStyle, s = t.bodyClassName, a = t.className, i = t.style;
189
- return /* @__PURE__ */ u.createElement("div", {
190
- className: j("".concat(r, "-content"), a),
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__ */ u.createElement("div", {
193
- className: j("".concat(r, "-inner"), s),
194
- id: e,
193
+ }, /* @__PURE__ */ m.createElement("div", {
194
+ className: S("".concat(a, "-inner"), s),
195
+ id: t,
195
196
  role: "tooltip",
196
- style: n
197
+ style: r
197
198
  }, typeof o == "function" ? o() : o));
198
199
  }
199
- var k = {
200
+ var D = {
200
201
  shiftX: 64,
201
202
  adjustY: 1
202
- }, D = {
203
+ }, k = {
203
204
  adjustX: 1,
204
205
  shiftY: !0
205
- }, w = [0, 0], pt = {
206
+ }, y = [0, 0], de = {
206
207
  left: {
207
208
  points: ["cr", "cl"],
208
- overflow: D,
209
+ overflow: k,
209
210
  offset: [-4, 0],
210
- targetOffset: w
211
+ targetOffset: y
211
212
  },
212
213
  right: {
213
214
  points: ["cl", "cr"],
214
- overflow: D,
215
+ overflow: k,
215
216
  offset: [4, 0],
216
- targetOffset: w
217
+ targetOffset: y
217
218
  },
218
219
  top: {
219
220
  points: ["bc", "tc"],
220
- overflow: k,
221
+ overflow: D,
221
222
  offset: [0, -4],
222
- targetOffset: w
223
+ targetOffset: y
223
224
  },
224
225
  bottom: {
225
226
  points: ["tc", "bc"],
226
- overflow: k,
227
+ overflow: D,
227
228
  offset: [0, 4],
228
- targetOffset: w
229
+ targetOffset: y
229
230
  },
230
231
  topLeft: {
231
232
  points: ["bl", "tl"],
232
- overflow: k,
233
+ overflow: D,
233
234
  offset: [0, -4],
234
- targetOffset: w
235
+ targetOffset: y
235
236
  },
236
237
  leftTop: {
237
238
  points: ["tr", "tl"],
238
- overflow: D,
239
+ overflow: k,
239
240
  offset: [-4, 0],
240
- targetOffset: w
241
+ targetOffset: y
241
242
  },
242
243
  topRight: {
243
244
  points: ["br", "tr"],
244
- overflow: k,
245
+ overflow: D,
245
246
  offset: [0, -4],
246
- targetOffset: w
247
+ targetOffset: y
247
248
  },
248
249
  rightTop: {
249
250
  points: ["tl", "tr"],
250
- overflow: D,
251
+ overflow: k,
251
252
  offset: [4, 0],
252
- targetOffset: w
253
+ targetOffset: y
253
254
  },
254
255
  bottomRight: {
255
256
  points: ["tr", "br"],
256
- overflow: k,
257
+ overflow: D,
257
258
  offset: [0, 4],
258
- targetOffset: w
259
+ targetOffset: y
259
260
  },
260
261
  rightBottom: {
261
262
  points: ["bl", "br"],
262
- overflow: D,
263
+ overflow: k,
263
264
  offset: [4, 0],
264
- targetOffset: w
265
+ targetOffset: y
265
266
  },
266
267
  bottomLeft: {
267
268
  points: ["tl", "bl"],
268
- overflow: k,
269
+ overflow: D,
269
270
  offset: [0, 4],
270
- targetOffset: w
271
+ targetOffset: y
271
272
  },
272
273
  leftBottom: {
273
274
  points: ["br", "bl"],
274
- overflow: D,
275
+ overflow: k,
275
276
  offset: [-4, 0],
276
- targetOffset: w
277
+ targetOffset: y
277
278
  }
278
- }, gt = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], bt = function(o, r) {
279
- var e = o.overlayClassName, n = o.trigger, s = n === void 0 ? ["hover"] : n, a = o.mouseEnterDelay, i = a === void 0 ? 0 : a, l = o.mouseLeaveDelay, m = l === void 0 ? 0.1 : l, h = o.overlayStyle, c = o.prefixCls, d = c === void 0 ? "rc-tooltip" : c, y = o.children, O = o.onVisibleChange, $ = o.afterVisibleChange, _ = o.transitionName, b = o.animation, g = o.motion, x = o.placement, T = 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, ee = o.overlayInnerStyle;
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 = Be(o, gt), K = ke(null);
282
- De(r, function() {
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 = X({}, M);
286
+ var q = H({}, M);
286
287
  "visible" in o && (q.popupVisible = o.visible);
287
- var H = function() {
288
- return /* @__PURE__ */ u.createElement(me, {
288
+ var X = function() {
289
+ return /* @__PURE__ */ m.createElement(ut, {
289
290
  key: "content",
290
- prefixCls: d,
291
+ prefixCls: u,
291
292
  id: R,
292
293
  bodyClassName: P == null ? void 0 : P.body,
293
- overlayInnerStyle: X(X({}, ee), N == null ? void 0 : N.body)
294
+ overlayInnerStyle: H(H({}, tt), N == null ? void 0 : N.body)
294
295
  }, f);
295
296
  };
296
- return /* @__PURE__ */ u.createElement(Ke, Me({
297
- popupClassName: j(e, P == null ? void 0 : P.root),
298
- prefixCls: d,
299
- popup: H,
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: pt,
302
- popupPlacement: T,
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: m,
314
- popupStyle: X(X({}, h), N == null ? void 0 : N.root),
314
+ mouseLeaveDelay: p,
315
+ popupStyle: H(H({}, v), N == null ? void 0 : N.root),
315
316
  mouseEnterDelay: i,
316
317
  arrow: Z
317
- }, q), y);
318
+ }, q), h);
318
319
  };
319
- const ht = /* @__PURE__ */ Le(bt);
320
- function yt(t) {
320
+ const ve = /* @__PURE__ */ Lt(be);
321
+ function he(e) {
321
322
  const {
322
323
  sizePopupArrow: o,
323
- borderRadiusXS: r,
324
- borderRadiusOuter: e
325
- } = t, n = o / 2, s = 0, a = n, i = e * 1 / Math.sqrt(2), l = n - e * (1 - 1 / Math.sqrt(2)), m = n - r * (1 / Math.sqrt(2)), h = e * (Math.sqrt(2) - 1) + r * (1 / Math.sqrt(2)), c = 2 * n - m, d = h, y = 2 * n - i, O = l, $ = 2 * n - s, _ = a, b = n * Math.sqrt(2) + e * (Math.sqrt(2) - 2), g = e * (Math.sqrt(2) - 1), x = `polygon(${g}px 100%, 50% ${g}px, ${2 * n - g}px 100%, ${g}px 100%)`, T = `path('M ${s} ${a} A ${e} ${e} 0 0 0 ${i} ${l} L ${m} ${h} A ${r} ${r} 0 0 1 ${c} ${d} L ${y} ${O} A ${e} ${e} 0 0 0 ${$} ${_} Z')`;
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: T,
329
+ arrowPath: j,
329
330
  arrowPolygon: x
330
331
  };
331
332
  }
332
- const wt = (t, o, r) => {
333
+ const ye = (e, o, a) => {
333
334
  const {
334
- sizePopupArrow: e,
335
- arrowPolygon: n,
335
+ sizePopupArrow: t,
336
+ arrowPolygon: r,
336
337
  arrowPath: s,
337
- arrowShadowWidth: a,
338
+ arrowShadowWidth: n,
338
339
  borderRadiusXS: i,
339
340
  calc: l
340
- } = t;
341
+ } = e;
341
342
  return {
342
343
  pointerEvents: "none",
343
- width: e,
344
- height: e,
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: e,
351
- height: l(e).div(2).equal(),
351
+ width: t,
352
+ height: l(t).div(2).equal(),
352
353
  background: o,
353
354
  clipPath: {
354
355
  _multi_value_: !0,
355
- value: [n, s]
356
+ value: [r, s]
356
357
  },
357
358
  content: '""'
358
359
  },
359
360
  "&::after": {
360
361
  content: '""',
361
362
  position: "absolute",
362
- width: a,
363
- height: a,
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: r,
373
+ boxShadow: a,
373
374
  zIndex: 0,
374
375
  background: "transparent"
375
376
  }
376
377
  };
377
- }, de = 8;
378
- function pe(t) {
378
+ }, dt = 8;
379
+ function gt(e) {
379
380
  const {
380
381
  contentRadius: o,
381
- limitVerticalRadius: r
382
- } = t, e = o > 12 ? o + 2 : 12;
382
+ limitVerticalRadius: a
383
+ } = e, t = o > 12 ? o + 2 : 12;
383
384
  return {
384
- arrowOffsetHorizontal: e,
385
- arrowOffsetVertical: r ? de : e
385
+ arrowOffsetHorizontal: t,
386
+ arrowOffsetVertical: a ? dt : t
386
387
  };
387
388
  }
388
- function U(t, o) {
389
- return t ? o : {};
389
+ function U(e, o) {
390
+ return e ? o : {};
390
391
  }
391
- function vt(t, o, r) {
392
+ function we(e, o, a) {
392
393
  const {
393
- componentCls: e,
394
- boxShadowPopoverArrow: n,
394
+ componentCls: t,
395
+ boxShadowPopoverArrow: r,
395
396
  arrowOffsetVertical: s,
396
- arrowOffsetHorizontal: a
397
- } = t, {
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
- [e]: Object.assign(Object.assign(Object.assign(Object.assign({
408
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({
408
409
  // ============================ Basic ============================
409
- [`${e}-arrow`]: [Object.assign(Object.assign({
410
+ [`${t}-arrow`]: [Object.assign(Object.assign({
410
411
  position: "absolute",
411
412
  zIndex: 1,
412
413
  display: "block"
413
- }, wt(t, o, n)), {
414
+ }, ye(e, o, r)), {
414
415
  "&:before": {
415
416
  background: o
416
417
  }
417
418
  })]
418
419
  }, U(!!l.top, {
419
- [[`&-placement-top > ${e}-arrow`, `&-placement-topLeft > ${e}-arrow`, `&-placement-topRight > ${e}-arrow`].join(",")]: {
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 > ${e}-arrow`]: {
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": a,
432
- [`> ${e}-arrow`]: {
432
+ "--arrow-offset-horizontal": n,
433
+ [`> ${t}-arrow`]: {
433
434
  left: {
434
435
  _skip_check_: !0,
435
- value: a
436
+ value: n
436
437
  }
437
438
  }
438
439
  },
439
440
  "&-placement-topRight": {
440
- "--arrow-offset-horizontal": `calc(100% - ${W(a)})`,
441
- [`> ${e}-arrow`]: {
441
+ "--arrow-offset-horizontal": `calc(100% - ${W(n)})`,
442
+ [`> ${t}-arrow`]: {
442
443
  right: {
443
444
  _skip_check_: !0,
444
- value: a
445
+ value: n
445
446
  }
446
447
  }
447
448
  }
448
449
  })), U(!!l.bottom, {
449
- [[`&-placement-bottom > ${e}-arrow`, `&-placement-bottomLeft > ${e}-arrow`, `&-placement-bottomRight > ${e}-arrow`].join(",")]: {
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 > ${e}-arrow`]: {
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": a,
462
- [`> ${e}-arrow`]: {
462
+ "--arrow-offset-horizontal": n,
463
+ [`> ${t}-arrow`]: {
463
464
  left: {
464
465
  _skip_check_: !0,
465
- value: a
466
+ value: n
466
467
  }
467
468
  }
468
469
  },
469
470
  "&-placement-bottomRight": {
470
- "--arrow-offset-horizontal": `calc(100% - ${W(a)})`,
471
- [`> ${e}-arrow`]: {
471
+ "--arrow-offset-horizontal": `calc(100% - ${W(n)})`,
472
+ [`> ${t}-arrow`]: {
472
473
  right: {
473
474
  _skip_check_: !0,
474
- value: a
475
+ value: n
475
476
  }
476
477
  }
477
478
  }
478
479
  })), U(!!l.left, {
479
- [[`&-placement-left > ${e}-arrow`, `&-placement-leftTop > ${e}-arrow`, `&-placement-leftBottom > ${e}-arrow`].join(",")]: {
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 > ${e}-arrow`]: {
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 > ${e}-arrow`]: {
494
+ [`&-placement-leftTop > ${t}-arrow`]: {
494
495
  top: s
495
496
  },
496
- [`&-placement-leftBottom > ${e}-arrow`]: {
497
+ [`&-placement-leftBottom > ${t}-arrow`]: {
497
498
  bottom: s
498
499
  }
499
500
  })), U(!!l.right, {
500
- [[`&-placement-right > ${e}-arrow`, `&-placement-rightTop > ${e}-arrow`, `&-placement-rightBottom > ${e}-arrow`].join(",")]: {
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 > ${e}-arrow`]: {
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 > ${e}-arrow`]: {
515
+ [`&-placement-rightTop > ${t}-arrow`]: {
515
516
  top: s
516
517
  },
517
- [`&-placement-rightBottom > ${e}-arrow`]: {
518
+ [`&-placement-rightBottom > ${t}-arrow`]: {
518
519
  bottom: s
519
520
  }
520
521
  }))
521
522
  };
522
523
  }
523
- function Ot(t, o, r, e) {
524
- if (e === !1)
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 n = e && typeof e == "object" ? e : {}, s = {};
530
- switch (t) {
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 + r, s.shiftY = !0, s.adjustY = !0;
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 + r, s.shiftX = !0, s.adjustX = !0;
538
+ s.shiftY = o.arrowOffsetVertical * 2 + a, s.shiftX = !0, s.adjustX = !0;
538
539
  break;
539
540
  }
540
- const a = Object.assign(Object.assign({}, s), n);
541
- return a.shiftX || (a.adjustX = !0), a.shiftY || (a.adjustY = !0), a;
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 ce = {
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
- }, Ct = {
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
- }, $t = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
606
- function _t(t) {
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: r,
610
- arrowPointAtCenter: e,
611
- offset: n,
610
+ autoAdjustOverflow: a,
611
+ arrowPointAtCenter: t,
612
+ offset: r,
612
613
  borderRadius: s,
613
- visibleFirst: a
614
- } = t, i = o / 2, l = {};
615
- return Object.keys(ce).forEach((m) => {
616
- const h = e && Ct[m] || ce[m], c = Object.assign(Object.assign({}, h), {
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[m] = c, $t.has(m) && (c.autoArrow = !1), m) {
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 - n;
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 + n;
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 - n;
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 + n;
640
+ c.offset[0] = i + r;
640
641
  break;
641
642
  }
642
- const d = pe({
643
+ const u = gt({
643
644
  contentRadius: s,
644
645
  limitVerticalRadius: !0
645
646
  });
646
- if (e)
647
- switch (m) {
647
+ if (t)
648
+ switch (p) {
648
649
  case "topLeft":
649
650
  case "bottomLeft":
650
- c.offset[0] = -d.arrowOffsetHorizontal - i;
651
+ c.offset[0] = -u.arrowOffsetHorizontal - i;
651
652
  break;
652
653
  case "topRight":
653
654
  case "bottomRight":
654
- c.offset[0] = d.arrowOffsetHorizontal + i;
655
+ c.offset[0] = u.arrowOffsetHorizontal + i;
655
656
  break;
656
657
  case "leftTop":
657
658
  case "rightTop":
658
- c.offset[1] = -d.arrowOffsetHorizontal * 2 + i;
659
+ c.offset[1] = -u.arrowOffsetHorizontal * 2 + i;
659
660
  break;
660
661
  case "leftBottom":
661
662
  case "rightBottom":
662
- c.offset[1] = d.arrowOffsetHorizontal * 2 - i;
663
+ c.offset[1] = u.arrowOffsetHorizontal * 2 - i;
663
664
  break;
664
665
  }
665
- c.overflow = Ot(m, d, o, r), a && (c.htmlRegion = "visibleFirst");
666
+ c.overflow = Oe(p, u, o, a), n && (c.htmlRegion = "visibleFirst");
666
667
  }), l;
667
668
  }
668
- const xt = (t) => {
669
+ const xe = (e) => {
669
670
  const {
670
671
  calc: o,
671
- componentCls: r,
672
+ componentCls: a,
672
673
  // ant-tooltip
673
- tooltipMaxWidth: e,
674
- tooltipColor: n,
674
+ tooltipMaxWidth: t,
675
+ tooltipColor: r,
675
676
  tooltipBg: s,
676
- tooltipBorderRadius: a,
677
+ tooltipBorderRadius: n,
677
678
  zIndexPopup: i,
678
679
  controlHeight: l,
679
- boxShadowSecondary: m,
680
- paddingSM: h,
680
+ boxShadowSecondary: p,
681
+ paddingSM: v,
681
682
  paddingXS: c,
682
- arrowOffsetHorizontal: d,
683
- sizePopupArrow: y
684
- } = t, O = o(a).add(y).add(d).equal(), $ = o(a).mul(2).add(y).equal();
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
- [r]: Object.assign(Object.assign(Object.assign(Object.assign({}, Xe(t)), {
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: e,
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
- [`${r}-inner`]: {
703
+ [`${a}-inner`]: {
703
704
  minWidth: $,
704
705
  minHeight: l,
705
- padding: `${W(t.calc(h).div(2).equal())} ${W(c)}`,
706
- color: n,
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: a,
712
- boxShadow: m,
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
- [`${r}-inner`]: {
722
- borderRadius: t.min(a, de)
722
+ [`${a}-inner`]: {
723
+ borderRadius: e.min(n, dt)
723
724
  }
724
725
  },
725
- [`${r}-content`]: {
726
+ [`${a}-content`]: {
726
727
  position: "relative"
727
728
  }
728
- }), tt(t, (_, b) => {
729
+ }), ee(e, (_, b) => {
729
730
  let {
730
731
  darkColor: g
731
732
  } = b;
732
733
  return {
733
- [`&${r}-${_}`]: {
734
- [`${r}-inner`]: {
734
+ [`&${a}-${_}`]: {
735
+ [`${a}-inner`]: {
735
736
  backgroundColor: g
736
737
  },
737
- [`${r}-arrow`]: {
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
- vt(t, "var(--antd-arrow-background-color)"),
751
+ we(e, "var(--antd-arrow-background-color)"),
751
752
  // Pure Render
752
753
  {
753
- [`${r}-pure`]: {
754
+ [`${a}-pure`]: {
754
755
  position: "relative",
755
756
  maxWidth: "none",
756
- margin: t.sizePopupArrow
757
+ margin: e.sizePopupArrow
757
758
  }
758
759
  }
759
760
  ];
760
- }, Pt = (t) => Object.assign(Object.assign({
761
- zIndexPopup: t.zIndexPopupBase + 70
762
- }, pe({
763
- contentRadius: t.borderRadius,
761
+ }, Pe = (e) => Object.assign(Object.assign({
762
+ zIndexPopup: e.zIndexPopupBase + 70
763
+ }, gt({
764
+ contentRadius: e.borderRadius,
764
765
  limitVerticalRadius: !0
765
- })), yt(fe(t, {
766
- borderRadiusOuter: Math.min(t.borderRadiusOuter, 4)
767
- }))), ge = function(t) {
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 He("Tooltip", (e) => {
770
+ return Ft("Tooltip", (t) => {
770
771
  const {
771
- borderRadius: n,
772
+ borderRadius: r,
772
773
  colorTextLightSolid: s,
773
- colorBgSpotlight: a
774
- } = e, i = fe(e, {
774
+ colorBgSpotlight: n
775
+ } = t, i = mt(t, {
775
776
  // default variables
776
777
  tooltipMaxWidth: 250,
777
778
  tooltipColor: s,
778
- tooltipBorderRadius: n,
779
- tooltipBg: a
779
+ tooltipBorderRadius: r,
780
+ tooltipBg: n
780
781
  });
781
- return [xt(i), dt(e, "zoom-big-fast")];
782
- }, Pt, {
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
- })(t);
787
- }, Nt = G.map((t) => `${t}-inverse`);
788
- function St(t) {
789
- return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(se(Nt), se(G)).includes(t) : G.includes(t);
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 be(t, o) {
792
- const r = St(o), e = j({
793
- [`${t}-${o}`]: o && r
794
- }), n = {}, s = {};
795
- return o && !r && (n.background = o, s["--antd-arrow-background-color"] = o), {
796
- className: e,
797
- overlayStyle: n,
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 jt = (t) => {
802
+ const Se = (e) => {
802
803
  const {
803
804
  prefixCls: o,
804
- className: r,
805
- placement: e = "top",
806
- title: n,
805
+ className: a,
806
+ placement: t = "top",
807
+ title: r,
807
808
  color: s,
808
- overlayInnerStyle: a
809
- } = t, {
809
+ overlayInnerStyle: n
810
+ } = e, {
810
811
  getPrefixCls: i
811
- } = u.useContext(ue), l = i("tooltip", o), [m, h, c] = ge(l), d = be(l, s), y = d.arrowStyle, O = Object.assign(Object.assign({}, a), d.overlayStyle), $ = j(h, c, l, `${l}-pure`, `${l}-placement-${e}`, r, d.className);
812
- return m(/* @__PURE__ */ u.createElement("div", {
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: y
815
- }, /* @__PURE__ */ u.createElement("div", {
815
+ style: h
816
+ }, /* @__PURE__ */ m.createElement("div", {
816
817
  className: `${l}-arrow`
817
- }), /* @__PURE__ */ u.createElement(me, Object.assign({}, t, {
818
- className: h,
818
+ }), /* @__PURE__ */ m.createElement(ut, Object.assign({}, e, {
819
+ className: v,
819
820
  prefixCls: l,
820
821
  overlayInnerStyle: O
821
- }), n)));
822
- };
823
- var Tt = function(t, o) {
824
- var r = {};
825
- for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
826
- if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, e = Object.getOwnPropertySymbols(t); n < e.length; n++)
827
- o.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[n]) && (r[e[n]] = t[e[n]]);
828
- return r;
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 zt = /* @__PURE__ */ u.forwardRef((t, o) => {
831
- var r, e, n, s, a, i;
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: m,
835
- getTooltipContainer: h,
837
+ openClassName: p,
838
+ getTooltipContainer: v,
836
839
  color: c,
837
- overlayInnerStyle: d,
838
- children: y,
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: T,
848
+ builtinPlacements: j,
846
849
  arrowPointAtCenter: z = !1,
847
850
  autoAdjustOverflow: J = !0
848
- } = t, B = !!b, [, I] = We(), {
851
+ } = e, B = !!b, [, I] = Gt(), {
849
852
  getPopupContainer: Q,
850
853
  getPrefixCls: Y,
851
- direction: ee,
854
+ direction: tt,
852
855
  tooltip: f
853
- } = u.useContext(ue), R = Ye("Tooltip"), A = u.useRef(null), Z = () => {
854
- var p;
855
- (p = A.current) === null || p === void 0 || p.forceAlign();
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
- u.useImperativeHandle(o, () => {
858
- var p;
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: (p = A.current) === null || p === void 0 ? void 0 : p.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((p) => {
867
- let [C, S] = p;
868
- R.deprecated(!(C in t), C, S);
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] = Ge(!1, {
871
- value: (r = t.open) !== null && r !== void 0 ? r : t.visible,
872
- defaultValue: (e = t.defaultOpen) !== null && e !== void 0 ? e : t.defaultVisible
873
- }), M = !g && !x && g !== 0, K = (p) => {
874
- var C, S;
875
- N(M ? !1 : p), M || ((C = t.onOpenChange) === null || C === void 0 || C.call(t, p), (S = t.onVisibleChange) === null || S === void 0 || S.call(t, p));
876
- }, q = u.useMemo(() => {
877
- var p, C;
878
- let S = z;
879
- return typeof b == "object" && (S = (C = (p = b.pointAtCenter) !== null && p !== void 0 ? p : b.arrowPointAtCenter) !== null && C !== void 0 ? C : z), T || _t({
880
- arrowPointAtCenter: S,
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, T, I]), H = u.useMemo(() => g === 0 ? g : x || g || "", [x, g]), re = /* @__PURE__ */ u.createElement(Je, {
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 H == "function" ? H() : H), {
890
- getPopupContainer: ye,
891
- placement: we = "top",
892
- mouseEnterDelay: ve = 0.1,
893
- mouseLeaveDelay: Oe = 0.1,
894
- overlayStyle: Ce,
895
- rootClassName: $e,
896
- overlayClassName: _e,
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
- } = t, ae = Tt(t, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), L = Y("tooltip", l), xe = Y(), Pe = t["data-popover-inject"];
900
- let te = P;
901
- !("open" in t) && !("visible" in t) && M && (te = !1);
902
- const oe = /* @__PURE__ */ u.isValidElement(y) && !Qe(y) ? y : /* @__PURE__ */ u.createElement("span", null, y), F = oe.props, Ne = !F.className || typeof F.className == "string" ? j(F.className, m || `${L}-open`) : F.className, [Se, je, Te] = ge(L, !Pe), ne = be(L, c), ze = ne.arrowStyle, Ie = j(_e, {
903
- [`${L}-rtl`]: ee === "rtl"
904
- }, ne.className, $e, je, Te, f == null ? void 0 : f.className, (n = f == null ? void 0 : f.classNames) === null || n === void 0 ? void 0 : n.root, V == null ? void 0 : V.root), Re = j((s = f == null ? void 0 : f.classNames) === null || s === void 0 ? void 0 : s.body, V == null ? void 0 : V.body), [Ae, Ee] = qe("Tooltip", ae.zIndex), Ve = /* @__PURE__ */ u.createElement(ht, Object.assign({}, ae, {
905
- zIndex: Ae,
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: we,
908
- mouseEnterDelay: ve,
909
- mouseLeaveDelay: Oe,
910
+ placement: yt,
911
+ mouseEnterDelay: wt,
912
+ mouseLeaveDelay: Ot,
910
913
  prefixCls: L,
911
914
  classNames: {
912
- root: Ie,
913
- body: Re
915
+ root: It,
916
+ body: Rt
914
917
  },
915
918
  styles: {
916
- root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ze), (a = f == null ? void 0 : f.styles) === null || a === void 0 ? void 0 : a.root), f == null ? void 0 : f.style), Ce), E == null ? void 0 : E.root),
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), d), E == null ? void 0 : E.body), ne.overlayStyle)
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: ye || h || Q,
922
+ getTooltipContainer: ht || v || Q,
920
923
  ref: A,
921
924
  builtinPlacements: q,
922
- overlay: re,
923
- visible: te,
925
+ overlay: nt,
926
+ visible: et,
924
927
  onVisibleChange: K,
925
928
  afterVisibleChange: O ?? $,
926
- arrowContent: /* @__PURE__ */ u.createElement("span", {
929
+ arrowContent: /* @__PURE__ */ m.createElement("span", {
927
930
  className: `${L}-arrow-content`
928
931
  }),
929
932
  motion: {
930
- motionName: Fe(xe, "zoom-big-fast", t.transitionName),
933
+ motionName: Yt(xt, "zoom-big-fast", e.transitionName),
931
934
  motionDeadline: 1e3
932
935
  },
933
936
  destroyTooltipOnHide: !!_
934
- }), te ? et(oe, {
935
- className: Ne
936
- }) : oe);
937
- return Se(/* @__PURE__ */ u.createElement(Ue.Provider, {
938
- value: Ee
939
- }, Ve));
940
- }), he = zt;
941
- process.env.NODE_ENV !== "production" && (he.displayName = "Tooltip");
942
- he._InternalPanelDoNotUseOrYouWillBeFired = jt;
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
- he as T,
945
- ot as z
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
  };