@gobolt/genesis 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/README.md +18 -2
  2. package/dist/{AntdIcon-Bsnbyy6g.js → AntdIcon-BoLh1dP8.js} +37 -35
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-DXCxlIQL.js} +2 -2
  5. package/dist/CloseOutlined-ClXDNn82.js +13 -0
  6. package/dist/{Compact-CJBo3f0u.js → Compact-CGY560JF.js} +45 -53
  7. package/dist/{ContextIsolator-CGkdKtc3.js → ContextIsolator-D5x2Ih51.js} +2 -2
  8. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-C0Kj5KQV.js} +2 -2
  9. package/dist/{CheckOutlined-DAynWe12.js → KeyCode-DM2sFh3-.js} +10 -20
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/Overflow-PBZD-PFm.js +360 -0
  12. package/dist/PurePanel-BqPLRtc2.js +203 -0
  13. package/dist/SearchOutlined-BP3Z2K6j.js +13 -0
  14. package/dist/{TextArea-3MOYYuAQ.js → TextArea-DKwCct3i.js} +26 -16
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-BNV2qdrP.js → button-CDQgO1OK.js} +200 -197
  18. package/dist/collapse-Dtpt-6W_.js +20 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +103 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +18 -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 +4 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +34 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +22 -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 +23 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +4 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +27 -0
  54. package/dist/components/Breadcrumb/styles.js +2436 -0
  55. package/dist/components/Button/Button.d.ts +14 -0
  56. package/dist/components/Button/Button.js +22 -0
  57. package/dist/components/Button/__tests__/Button.test.js +16 -0
  58. package/dist/components/Button/styles.d.ts +16 -0
  59. package/dist/components/{atoms/button → Button}/styles.js +12 -12
  60. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  61. package/dist/components/Checkbox/Checkbox.js +40 -0
  62. package/dist/components/{atoms/checkbox → Checkbox}/__tests__/Checkbox.test.js +1 -1
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +5 -0
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +97 -96
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  66. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +40 -0
  67. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +22 -21
  69. package/dist/components/Form/Form.d.ts +26 -0
  70. package/dist/components/Form/Form.js +8 -0
  71. package/dist/components/Form/__stories__/FormStory.js +93 -0
  72. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  73. package/dist/components/Form/__tests__/form.test.js +18 -0
  74. package/dist/components/Form/index.js +4 -0
  75. package/dist/components/Form/styles.d.ts +3 -0
  76. package/dist/components/Form/styles.js +5 -0
  77. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  78. package/dist/components/Input/Input.js +19 -0
  79. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  80. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  81. package/dist/components/Input/__tests__/Input.test.js +24 -0
  82. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -0
  83. package/dist/components/Input/styles.js +529 -0
  84. package/dist/components/Message/Message.d.ts +13 -0
  85. package/dist/components/Message/Message.js +78 -0
  86. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  87. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  88. package/dist/components/Message/__tests__/Message.test.js +42 -0
  89. package/dist/components/Message/index.d.ts +2 -0
  90. package/dist/components/Message/index.js +4 -0
  91. package/dist/components/Message/styles.d.ts +8 -0
  92. package/dist/components/Message/styles.js +41 -0
  93. package/dist/components/Notification/Notification.d.ts +17 -0
  94. package/dist/components/Notification/Notification.js +1370 -0
  95. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  96. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  97. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  98. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  99. package/dist/components/Notification/__tests__/Notification.test.js +15 -0
  100. package/dist/components/Notification/index.d.ts +2 -0
  101. package/dist/components/Notification/index.js +4 -0
  102. package/dist/components/Notification/styles.d.ts +16 -0
  103. package/dist/components/Notification/styles.js +65 -0
  104. package/dist/components/Radio/Radio.d.ts +14 -0
  105. package/dist/components/Radio/Radio.js +28 -0
  106. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  107. package/dist/components/Radio/RadioGroup.js +33 -0
  108. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  109. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  110. package/dist/components/Radio/__tests__/RadioGroup.test.js +30 -0
  111. package/dist/components/Radio/index.d.ts +2 -0
  112. package/dist/components/Radio/index.js +4 -0
  113. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  114. package/dist/components/Radio/states/RadioChecked.js +18 -0
  115. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  116. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  117. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  118. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  119. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  120. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  121. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  122. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  123. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  124. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  125. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  126. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  127. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  128. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  129. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  130. package/dist/components/Select/DropdownChevron.js +23 -0
  131. package/dist/components/Select/Select.d.ts +16 -0
  132. package/dist/components/Select/Select.js +36 -0
  133. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  134. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  135. package/dist/components/{atoms/select → Select}/__tests__/Select.test.js +1165 -1140
  136. package/dist/components/Select/styles.d.ts +32 -0
  137. package/dist/components/{atoms/select → Select}/styles.js +1517 -1651
  138. package/dist/components/Toast/Toast.d.ts +14 -0
  139. package/dist/components/Toast/Toast.js +19 -0
  140. package/dist/components/Toast/__stories__/Toast.stories.d.ts +16 -0
  141. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  142. package/dist/components/Toast/__tests__/Toast.test.js +18 -0
  143. package/dist/components/Toast/index.d.ts +2 -0
  144. package/dist/components/Toast/index.js +4 -0
  145. package/dist/components/Toast/styles.d.ts +10 -0
  146. package/dist/components/Toast/styles.js +54 -0
  147. package/dist/components/Typography/Typography.d.ts +15 -0
  148. package/dist/components/Typography/Typography.js +8 -0
  149. package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +1 -0
  150. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  151. package/dist/components/Typography/__tests__/Typography.test.js +23 -0
  152. package/dist/components/Typography/index.js +4 -0
  153. package/dist/components/Typography/styles.d.ts +21 -0
  154. package/dist/components/Typography/styles.js +48 -0
  155. package/dist/components/index.d.ts +26 -14
  156. package/dist/components/index.js +23 -13
  157. package/dist/constants/index.d.ts +104 -0
  158. package/dist/constants/index.js +41 -7
  159. package/dist/{context-CZsFJmh6.js → context-BMW3aJEf.js} +162 -161
  160. package/dist/genesis/GenesisThemeBreakdown.js +54 -24
  161. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  162. package/dist/genesis/GenesisThemeDemo.js +3 -4
  163. package/dist/genesis/styles.js +1095 -2186
  164. package/dist/{index-C7kFNqp2.js → index-1CBpubM3.js} +36 -36
  165. package/dist/{index-3MWkSVA1.js → index-BZAhCB_K.js} +6 -5
  166. package/dist/{index-D1v_7IIx.js → index-C0SmxWLS.js} +95 -94
  167. package/dist/index-C8haFnXI.js +1112 -0
  168. package/dist/{index-VDH3iLaC.js → index-CfDY25LP.js} +298 -309
  169. package/dist/{index-SAAXFt-P.js → index-DPW8XdWj.js} +255 -249
  170. package/dist/{index-BQO27mgE.js → index-bKlRxQp4.js} +52 -51
  171. package/dist/index-oK7z6jnz.js +22795 -0
  172. package/dist/index.d.ts +2 -0
  173. package/dist/index.js +31 -18
  174. package/dist/{isVisible-CNQjrJPN.js → isVisible-A-IfeFoT.js} +34 -33
  175. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-D2FWSwU3.js} +1 -1
  176. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-B0YTfcV1.js} +16 -26
  177. package/dist/providers/GenesisProvider.js +9 -5
  178. package/dist/providers/ThemeProvider.d.ts +2 -2
  179. package/dist/providers/ThemeProvider.js +4 -1
  180. package/dist/providers/ToastProvider.d.ts +13 -0
  181. package/dist/providers/ToastProvider.js +20 -0
  182. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  183. package/dist/providers/index.d.ts +1 -1
  184. package/dist/providers/index.js +4 -4
  185. package/dist/providers/useGenesis.d.ts +7 -0
  186. package/dist/providers/useGenesis.js +6 -0
  187. package/dist/{setup-CMYVZCPF.js → setup-BvfREoHl.js} +6948 -6940
  188. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +22 -16
  189. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +21 -15
  190. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  191. package/dist/styles/design-tokens/variables.d.ts +17 -17
  192. package/dist/styles/design-tokens/variables.js +48 -48
  193. package/dist/styles/global-styles.d.ts +1 -0
  194. package/dist/styles/global-styles.js +13 -29
  195. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  196. package/dist/styles/theme/genesis-theme.js +461 -277
  197. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  198. package/dist/{Form-Cylpi4M4.js → styles-CT_fyXBd.js} +417 -424
  199. package/dist/test/setup.js +2 -1
  200. package/dist/useLocale-DT-z_vQ6.js +16 -0
  201. package/dist/{useVariants-CEpw6Ww6.js → useVariants-DvhXfgJY.js} +9 -8
  202. package/dist/warning-C63HNL9U.js +789 -0
  203. package/package.json +10 -4
  204. package/dist/Overflow-CP1M4Z0s.js +0 -369
  205. package/dist/components/atoms/button/Button.d.ts +0 -12
  206. package/dist/components/atoms/button/Button.js +0 -27
  207. package/dist/components/atoms/button/styles.d.ts +0 -12
  208. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  209. package/dist/components/atoms/index.d.ts +0 -1
  210. package/dist/components/atoms/index.js +0 -3
  211. package/dist/components/atoms/input/Input.js +0 -12
  212. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  213. package/dist/components/atoms/input/styles.js +0 -415
  214. package/dist/components/atoms/select/Select.d.ts +0 -11
  215. package/dist/components/atoms/select/Select.js +0 -24
  216. package/dist/components/atoms/select/styles.d.ts +0 -15
  217. package/dist/components/atoms/typography/Typography.d.ts +0 -11
  218. package/dist/components/atoms/typography/Typography.js +0 -44
  219. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  220. package/dist/components/atoms/typography/index.js +0 -4
  221. package/dist/components/atoms/typography/styles.d.ts +0 -11
  222. package/dist/components/atoms/typography/styles.js +0 -28
  223. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +0 -10
  224. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  225. package/dist/components/molecules/error-boundary-fallback/index.d.ts +0 -1
  226. package/dist/components/molecules/form/Form.d.ts +0 -15
  227. package/dist/components/molecules/form/Form.js +0 -7
  228. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  229. package/dist/components/molecules/form/index.js +0 -4
  230. package/dist/index-BPtFqhcp.js +0 -19110
  231. package/dist/index-BWys7dkb.js +0 -4462
  232. package/dist/styles/theme/global-styles.d.ts +0 -1
  233. package/dist/styles/theme/global-styles.js +0 -35
  234. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  235. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  236. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  237. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  239. /package/dist/components/{atoms/button → Button}/index.js +0 -0
  240. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/checkbox → Checkbox}/index.js +0 -0
  244. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  245. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.js +0 -0
  246. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.d.ts +0 -0
  247. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  248. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  249. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  250. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  251. /package/dist/components/{atoms/input → Input}/index.js +0 -0
  252. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/select → Select}/index.js +0 -0
  254. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
@@ -1,13 +1,14 @@
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) => {
1
+ import * as f from "react";
2
+ import { forwardRef as De, useRef as ke, useImperativeHandle as Be } from "react";
3
+ import { c as T, e as Me, _ as L, a as He } from "./warning-C63HNL9U.js";
4
+ import { K as O, i as Xe, T as We, u as Ye, g as Ze, z as Ke } from "./index-CfDY25LP.js";
5
+ import { u as qe } from "./isVisible-A-IfeFoT.js";
6
+ import { C as Fe } from "./ContextIsolator-D5x2Ih51.js";
7
+ import { q as D, g as Ue, m as de, o as Ge, x as ce, C as pe, E as Je, v as Qe } from "./index-oK7z6jnz.js";
8
+ import { i as et, c as tt } from "./reactNode-sKPeiqPL.js";
9
+ import { P as Z } from "./presetColors-Cl8UP3Nw.js";
10
+ function ot(t, o) {
11
+ return Z.reduce((r, e) => {
11
12
  const n = t[`${e}1`], s = t[`${e}3`], a = t[`${e}6`], i = t[`${e}7`];
12
13
  return Object.assign(Object.assign({}, r), o(e, {
13
14
  lightColor: n,
@@ -17,7 +18,7 @@ function tt(t, o) {
17
18
  }));
18
19
  }, {});
19
20
  }
20
- const ot = new v("antZoomIn", {
21
+ const nt = new O("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
+ }), rt = new O("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
+ }), fe = new O("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
+ }), me = new O("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
+ }), at = new O("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
+ }), st = new O("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
+ }), it = new O("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
+ }), lt = new O("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
+ }), ct = new O("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
+ }), ft = new O("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
+ }), mt = new O("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
+ }), ut = new O("antZoomDownOut", {
125
126
  "0%": {
126
127
  transform: "scale(1)",
127
128
  transformOrigin: "50% 100%"
@@ -131,43 +132,43 @@ const ot = new v("antZoomIn", {
131
132
  transformOrigin: "50% 100%",
132
133
  opacity: 0
133
134
  }
134
- }), mt = {
135
+ }), dt = {
135
136
  zoom: {
136
- inKeyframes: ot,
137
- outKeyframes: nt
137
+ inKeyframes: nt,
138
+ outKeyframes: rt
138
139
  },
139
140
  "zoom-big": {
140
- inKeyframes: ie,
141
- outKeyframes: le
141
+ inKeyframes: fe,
142
+ outKeyframes: me
142
143
  },
143
144
  "zoom-big-fast": {
144
- inKeyframes: ie,
145
- outKeyframes: le
145
+ inKeyframes: fe,
146
+ outKeyframes: me
146
147
  },
147
148
  "zoom-left": {
148
- inKeyframes: st,
149
- outKeyframes: it
149
+ inKeyframes: it,
150
+ outKeyframes: lt
150
151
  },
151
152
  "zoom-right": {
152
- inKeyframes: lt,
153
- outKeyframes: ct
153
+ inKeyframes: ct,
154
+ outKeyframes: ft
154
155
  },
155
156
  "zoom-up": {
156
- inKeyframes: rt,
157
- outKeyframes: at
157
+ inKeyframes: at,
158
+ outKeyframes: st
158
159
  },
159
160
  "zoom-down": {
160
- inKeyframes: ft,
161
+ inKeyframes: mt,
161
162
  outKeyframes: ut
162
163
  }
163
- }, dt = (t, o) => {
164
+ }, pt = (t, o) => {
164
165
  const {
165
166
  antCls: r
166
167
  } = t, e = `${r}-${o}`, {
167
168
  inKeyframes: n,
168
169
  outKeyframes: s
169
- } = mt[o];
170
- return [Ze(e, n, s, t.motionDurationFast), {
170
+ } = dt[o];
171
+ return [Xe(e, n, s, o === "zoom-big-fast" ? t.motionDurationFast : t.motionDurationMid), {
171
172
  [`
172
173
  ${e}-enter,
173
174
  ${e}-appear
@@ -184,152 +185,152 @@ const ot = new v("antZoomIn", {
184
185
  }
185
186
  }];
186
187
  };
187
- function me(t) {
188
+ function ge(t) {
188
189
  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),
190
+ return /* @__PURE__ */ f.createElement("div", {
191
+ className: T("".concat(r, "-content"), a),
191
192
  style: i
192
- }, /* @__PURE__ */ u.createElement("div", {
193
- className: j("".concat(r, "-inner"), s),
193
+ }, /* @__PURE__ */ f.createElement("div", {
194
+ className: T("".concat(r, "-inner"), s),
194
195
  id: e,
195
196
  role: "tooltip",
196
197
  style: n
197
198
  }, typeof o == "function" ? o() : o));
198
199
  }
199
- var k = {
200
+ var E = {
200
201
  shiftX: 64,
201
202
  adjustY: 1
202
- }, D = {
203
+ }, V = {
203
204
  adjustX: 1,
204
205
  shiftY: !0
205
- }, w = [0, 0], pt = {
206
+ }, v = [0, 0], gt = {
206
207
  left: {
207
208
  points: ["cr", "cl"],
208
- overflow: D,
209
+ overflow: V,
209
210
  offset: [-4, 0],
210
- targetOffset: w
211
+ targetOffset: v
211
212
  },
212
213
  right: {
213
214
  points: ["cl", "cr"],
214
- overflow: D,
215
+ overflow: V,
215
216
  offset: [4, 0],
216
- targetOffset: w
217
+ targetOffset: v
217
218
  },
218
219
  top: {
219
220
  points: ["bc", "tc"],
220
- overflow: k,
221
+ overflow: E,
221
222
  offset: [0, -4],
222
- targetOffset: w
223
+ targetOffset: v
223
224
  },
224
225
  bottom: {
225
226
  points: ["tc", "bc"],
226
- overflow: k,
227
+ overflow: E,
227
228
  offset: [0, 4],
228
- targetOffset: w
229
+ targetOffset: v
229
230
  },
230
231
  topLeft: {
231
232
  points: ["bl", "tl"],
232
- overflow: k,
233
+ overflow: E,
233
234
  offset: [0, -4],
234
- targetOffset: w
235
+ targetOffset: v
235
236
  },
236
237
  leftTop: {
237
238
  points: ["tr", "tl"],
238
- overflow: D,
239
+ overflow: V,
239
240
  offset: [-4, 0],
240
- targetOffset: w
241
+ targetOffset: v
241
242
  },
242
243
  topRight: {
243
244
  points: ["br", "tr"],
244
- overflow: k,
245
+ overflow: E,
245
246
  offset: [0, -4],
246
- targetOffset: w
247
+ targetOffset: v
247
248
  },
248
249
  rightTop: {
249
250
  points: ["tl", "tr"],
250
- overflow: D,
251
+ overflow: V,
251
252
  offset: [4, 0],
252
- targetOffset: w
253
+ targetOffset: v
253
254
  },
254
255
  bottomRight: {
255
256
  points: ["tr", "br"],
256
- overflow: k,
257
+ overflow: E,
257
258
  offset: [0, 4],
258
- targetOffset: w
259
+ targetOffset: v
259
260
  },
260
261
  rightBottom: {
261
262
  points: ["bl", "br"],
262
- overflow: D,
263
+ overflow: V,
263
264
  offset: [4, 0],
264
- targetOffset: w
265
+ targetOffset: v
265
266
  },
266
267
  bottomLeft: {
267
268
  points: ["tl", "bl"],
268
- overflow: k,
269
+ overflow: E,
269
270
  offset: [0, 4],
270
- targetOffset: w
271
+ targetOffset: v
271
272
  },
272
273
  leftBottom: {
273
274
  points: ["br", "bl"],
274
- overflow: D,
275
+ overflow: V,
275
276
  offset: [-4, 0],
276
- targetOffset: w
277
+ targetOffset: v
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
+ }, bt = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ht = function(o, r) {
280
+ 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, u = c === void 0 ? "rc-tooltip" : c, y = o.children, C = o.onVisibleChange, _ = o.afterVisibleChange, x = o.transitionName, b = o.animation, g = o.motion, N = o.placement, I = N === void 0 ? "right" : N, A = o.align, K = A === void 0 ? {} : A, q = o.destroyTooltipOnHide, F = q === void 0 ? !1 : q, U = o.defaultVisible, G = o.getTooltipContainer, J = 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() {
283
- return K.current;
282
+ var Q = o.overlay, ee = o.id, k = o.showArrow, S = k === void 0 ? !0 : k, w = o.classNames, P = o.styles, B = Me(o, bt), z = ke(null);
283
+ Be(r, function() {
284
+ return z.current;
284
285
  });
285
- var q = X({}, M);
286
- "visible" in o && (q.popupVisible = o.visible);
286
+ var M = L({}, B);
287
+ "visible" in o && (M.popupVisible = o.visible);
287
288
  var H = function() {
288
- return /* @__PURE__ */ u.createElement(me, {
289
+ return /* @__PURE__ */ f.createElement(ge, {
289
290
  key: "content",
290
- prefixCls: d,
291
- id: R,
292
- bodyClassName: P == null ? void 0 : P.body,
293
- overlayInnerStyle: X(X({}, ee), N == null ? void 0 : N.body)
294
- }, f);
291
+ prefixCls: u,
292
+ id: ee,
293
+ bodyClassName: w == null ? void 0 : w.body,
294
+ overlayInnerStyle: L(L({}, J), P == null ? void 0 : P.body)
295
+ }, Q);
295
296
  };
296
- return /* @__PURE__ */ u.createElement(Ke, Me({
297
- popupClassName: j(e, P == null ? void 0 : P.root),
298
- prefixCls: d,
297
+ return /* @__PURE__ */ f.createElement(We, He({
298
+ popupClassName: T(e, w == null ? void 0 : w.root),
299
+ prefixCls: u,
299
300
  popup: H,
300
301
  action: s,
301
- builtinPlacements: pt,
302
- popupPlacement: T,
303
- ref: K,
304
- popupAlign: J,
305
- getPopupContainer: Y,
306
- onPopupVisibleChange: O,
307
- afterPopupVisibleChange: $,
308
- popupTransitionName: _,
302
+ builtinPlacements: gt,
303
+ popupPlacement: I,
304
+ ref: z,
305
+ popupAlign: K,
306
+ getPopupContainer: G,
307
+ onPopupVisibleChange: C,
308
+ afterPopupVisibleChange: _,
309
+ popupTransitionName: x,
309
310
  popupAnimation: b,
310
311
  popupMotion: g,
311
- defaultPopupVisible: Q,
312
- autoDestroy: I,
312
+ defaultPopupVisible: U,
313
+ autoDestroy: F,
313
314
  mouseLeaveDelay: m,
314
- popupStyle: X(X({}, h), N == null ? void 0 : N.root),
315
+ popupStyle: L(L({}, h), P == null ? void 0 : P.root),
315
316
  mouseEnterDelay: i,
316
- arrow: Z
317
- }, q), y);
317
+ arrow: S
318
+ }, M), y);
318
319
  };
319
- const ht = /* @__PURE__ */ Le(bt);
320
- function yt(t) {
320
+ const yt = /* @__PURE__ */ De(ht);
321
+ function wt(t) {
321
322
  const {
322
323
  sizePopupArrow: o,
323
324
  borderRadiusXS: r,
324
325
  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')`;
326
+ } = 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, u = h, y = 2 * n - i, C = l, _ = 2 * n - s, x = a, b = n * Math.sqrt(2) + e * (Math.sqrt(2) - 2), g = e * (Math.sqrt(2) - 1), N = `polygon(${g}px 100%, 50% ${g}px, ${2 * n - g}px 100%, ${g}px 100%)`, I = `path('M ${s} ${a} A ${e} ${e} 0 0 0 ${i} ${l} L ${m} ${h} A ${r} ${r} 0 0 1 ${c} ${u} L ${y} ${C} A ${e} ${e} 0 0 0 ${_} ${x} Z')`;
326
327
  return {
327
328
  arrowShadowWidth: b,
328
- arrowPath: T,
329
- arrowPolygon: x
329
+ arrowPath: I,
330
+ arrowPolygon: N
330
331
  };
331
332
  }
332
- const wt = (t, o, r) => {
333
+ const vt = (t, o, r) => {
333
334
  const {
334
335
  sizePopupArrow: e,
335
336
  arrowPolygon: n,
@@ -366,7 +367,7 @@ const wt = (t, o, r) => {
366
367
  margin: "auto",
367
368
  borderRadius: {
368
369
  _skip_check_: !0,
369
- value: `0 0 ${W(i)} 0`
370
+ value: `0 0 ${D(i)} 0`
370
371
  },
371
372
  transform: "translateY(50%) rotate(-135deg)",
372
373
  boxShadow: r,
@@ -374,21 +375,21 @@ const wt = (t, o, r) => {
374
375
  background: "transparent"
375
376
  }
376
377
  };
377
- }, de = 8;
378
- function pe(t) {
378
+ }, be = 8;
379
+ function he(t) {
379
380
  const {
380
381
  contentRadius: o,
381
382
  limitVerticalRadius: r
382
383
  } = t, e = o > 12 ? o + 2 : 12;
383
384
  return {
384
385
  arrowOffsetHorizontal: e,
385
- arrowOffsetVertical: r ? de : e
386
+ arrowOffsetVertical: r ? be : e
386
387
  };
387
388
  }
388
- function U(t, o) {
389
+ function Y(t, o) {
389
390
  return t ? o : {};
390
391
  }
391
- function vt(t, o, r) {
392
+ function Ot(t, o, r) {
392
393
  const {
393
394
  componentCls: e,
394
395
  boxShadowPopoverArrow: n,
@@ -402,7 +403,7 @@ function vt(t, o, r) {
402
403
  top: !0,
403
404
  bottom: !0
404
405
  }
405
- } = {};
406
+ } = r || {};
406
407
  return {
407
408
  [e]: Object.assign(Object.assign(Object.assign(Object.assign({
408
409
  // ============================ Basic ============================
@@ -410,12 +411,12 @@ function vt(t, o, r) {
410
411
  position: "absolute",
411
412
  zIndex: 1,
412
413
  display: "block"
413
- }, wt(t, o, n)), {
414
+ }, vt(t, o, n)), {
414
415
  "&:before": {
415
416
  background: o
416
417
  }
417
418
  })]
418
- }, U(!!l.top, {
419
+ }, Y(!!l.top, {
419
420
  [[`&-placement-top > ${e}-arrow`, `&-placement-topLeft > ${e}-arrow`, `&-placement-topRight > ${e}-arrow`].join(",")]: {
420
421
  bottom: i,
421
422
  transform: "translateY(100%) rotate(180deg)"
@@ -437,7 +438,7 @@ function vt(t, o, r) {
437
438
  }
438
439
  },
439
440
  "&-placement-topRight": {
440
- "--arrow-offset-horizontal": `calc(100% - ${W(a)})`,
441
+ "--arrow-offset-horizontal": `calc(100% - ${D(a)})`,
441
442
  [`> ${e}-arrow`]: {
442
443
  right: {
443
444
  _skip_check_: !0,
@@ -445,7 +446,7 @@ function vt(t, o, r) {
445
446
  }
446
447
  }
447
448
  }
448
- })), U(!!l.bottom, {
449
+ })), Y(!!l.bottom, {
449
450
  [[`&-placement-bottom > ${e}-arrow`, `&-placement-bottomLeft > ${e}-arrow`, `&-placement-bottomRight > ${e}-arrow`].join(",")]: {
450
451
  top: i,
451
452
  transform: "translateY(-100%)"
@@ -467,7 +468,7 @@ function vt(t, o, r) {
467
468
  }
468
469
  },
469
470
  "&-placement-bottomRight": {
470
- "--arrow-offset-horizontal": `calc(100% - ${W(a)})`,
471
+ "--arrow-offset-horizontal": `calc(100% - ${D(a)})`,
471
472
  [`> ${e}-arrow`]: {
472
473
  right: {
473
474
  _skip_check_: !0,
@@ -475,7 +476,7 @@ function vt(t, o, r) {
475
476
  }
476
477
  }
477
478
  }
478
- })), U(!!l.left, {
479
+ })), Y(!!l.left, {
479
480
  [[`&-placement-left > ${e}-arrow`, `&-placement-leftTop > ${e}-arrow`, `&-placement-leftBottom > ${e}-arrow`].join(",")]: {
480
481
  right: {
481
482
  _skip_check_: !0,
@@ -496,7 +497,7 @@ function vt(t, o, r) {
496
497
  [`&-placement-leftBottom > ${e}-arrow`]: {
497
498
  bottom: s
498
499
  }
499
- })), U(!!l.right, {
500
+ })), Y(!!l.right, {
500
501
  [[`&-placement-right > ${e}-arrow`, `&-placement-rightTop > ${e}-arrow`, `&-placement-rightBottom > ${e}-arrow`].join(",")]: {
501
502
  left: {
502
503
  _skip_check_: !0,
@@ -520,7 +521,7 @@ function vt(t, o, r) {
520
521
  }))
521
522
  };
522
523
  }
523
- function Ot(t, o, r, e) {
524
+ function Ct(t, o, r, e) {
524
525
  if (e === !1)
525
526
  return {
526
527
  adjustX: !1,
@@ -540,7 +541,7 @@ function Ot(t, o, r, e) {
540
541
  const a = Object.assign(Object.assign({}, s), n);
541
542
  return a.shiftX || (a.adjustX = !0), a.shiftY || (a.adjustY = !0), a;
542
543
  }
543
- const ce = {
544
+ const ue = {
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
+ }, $t = {
581
582
  topLeft: {
582
583
  points: ["bl", "tc"]
583
584
  },
@@ -602,8 +603,8 @@ 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
+ }, _t = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
607
+ function xt(t) {
607
608
  const {
608
609
  arrowWidth: o,
609
610
  autoAdjustOverflow: r,
@@ -612,12 +613,12 @@ function _t(t) {
612
613
  borderRadius: s,
613
614
  visibleFirst: a
614
615
  } = 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), {
616
+ return Object.keys(ue).forEach((m) => {
617
+ const h = e && $t[m] || ue[m], c = Object.assign(Object.assign({}, h), {
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[m] = c, _t.has(m) && (c.autoArrow = !1), m) {
621
622
  case "top":
622
623
  case "topLeft":
623
624
  case "topRight":
@@ -639,7 +640,7 @@ function _t(t) {
639
640
  c.offset[0] = i + n;
640
641
  break;
641
642
  }
642
- const d = pe({
643
+ const u = he({
643
644
  contentRadius: s,
644
645
  limitVerticalRadius: !0
645
646
  });
@@ -647,25 +648,25 @@ function _t(t) {
647
648
  switch (m) {
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 = Ct(m, u, o, r), a && (c.htmlRegion = "visibleFirst");
666
667
  }), l;
667
668
  }
668
- const xt = (t) => {
669
+ const Pt = (t) => {
669
670
  const {
670
671
  calc: o,
671
672
  componentCls: r,
@@ -679,12 +680,12 @@ const xt = (t) => {
679
680
  boxShadowSecondary: m,
680
681
  paddingSM: h,
681
682
  paddingXS: c,
682
- arrowOffsetHorizontal: d,
683
+ arrowOffsetHorizontal: u,
683
684
  sizePopupArrow: y
684
- } = t, O = o(a).add(y).add(d).equal(), $ = o(a).mul(2).add(y).equal();
685
+ } = t, C = o(a).add(y).add(u).equal(), _ = o(a).mul(2).add(y).equal();
685
686
  return [
686
687
  {
687
- [r]: Object.assign(Object.assign(Object.assign(Object.assign({}, Xe(t)), {
688
+ [r]: Object.assign(Object.assign(Object.assign(Object.assign({}, Ge(t)), {
688
689
  position: "absolute",
689
690
  zIndex: i,
690
691
  display: "block",
@@ -700,9 +701,9 @@ const xt = (t) => {
700
701
  "--antd-arrow-background-color": s,
701
702
  // Wrapper for the tooltip content
702
703
  [`${r}-inner`]: {
703
- minWidth: $,
704
+ minWidth: _,
704
705
  minHeight: l,
705
- padding: `${W(t.calc(h).div(2).equal())} ${W(c)}`,
706
+ padding: `${D(t.calc(h).div(2).equal())} ${D(c)}`,
706
707
  color: n,
707
708
  textAlign: "start",
708
709
  textDecoration: "none",
@@ -714,23 +715,23 @@ const xt = (t) => {
714
715
  },
715
716
  // Align placement should have another min width
716
717
  [["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
717
- minWidth: O
718
+ minWidth: C
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
  [`${r}-inner`]: {
722
- borderRadius: t.min(a, de)
723
+ borderRadius: t.min(a, be)
723
724
  }
724
725
  },
725
726
  [`${r}-content`]: {
726
727
  position: "relative"
727
728
  }
728
- }), tt(t, (_, b) => {
729
+ }), ot(t, (x, b) => {
729
730
  let {
730
731
  darkColor: g
731
732
  } = b;
732
733
  return {
733
- [`&${r}-${_}`]: {
734
+ [`&${r}-${x}`]: {
734
735
  [`${r}-inner`]: {
735
736
  backgroundColor: g
736
737
  },
@@ -747,7 +748,7 @@ const xt = (t) => {
747
748
  })
748
749
  },
749
750
  // Arrow Style
750
- vt(t, "var(--antd-arrow-background-color)"),
751
+ Ot(t, "var(--antd-arrow-background-color)"),
751
752
  // Pure Render
752
753
  {
753
754
  [`${r}-pure`]: {
@@ -757,39 +758,39 @@ const xt = (t) => {
757
758
  }
758
759
  }
759
760
  ];
760
- }, Pt = (t) => Object.assign(Object.assign({
761
+ }, Nt = (t) => Object.assign(Object.assign({
761
762
  zIndexPopup: t.zIndexPopupBase + 70
762
- }, pe({
763
+ }, he({
763
764
  contentRadius: t.borderRadius,
764
765
  limitVerticalRadius: !0
765
- })), yt(fe(t, {
766
+ })), wt(de(t, {
766
767
  borderRadiusOuter: Math.min(t.borderRadiusOuter, 4)
767
- }))), ge = function(t) {
768
+ }))), ye = function(t) {
768
769
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
769
- return He("Tooltip", (e) => {
770
+ return Ue("Tooltip", (e) => {
770
771
  const {
771
772
  borderRadius: n,
772
773
  colorTextLightSolid: s,
773
774
  colorBgSpotlight: a
774
- } = e, i = fe(e, {
775
+ } = e, i = de(e, {
775
776
  // default variables
776
777
  tooltipMaxWidth: 250,
777
778
  tooltipColor: s,
778
779
  tooltipBorderRadius: n,
779
780
  tooltipBg: a
780
781
  });
781
- return [xt(i), dt(e, "zoom-big-fast")];
782
- }, Pt, {
782
+ return [Pt(i), pt(e, "zoom-big-fast")];
783
+ }, Nt, {
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
  })(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);
788
+ }, St = Z.map((t) => `${t}-inverse`);
789
+ function jt(t) {
790
+ return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(ce(St), ce(Z)).includes(t) : Z.includes(t);
790
791
  }
791
- function be(t, o) {
792
- const r = St(o), e = j({
792
+ function we(t, o) {
793
+ const r = jt(o), e = T({
793
794
  [`${t}-${o}`]: o && r
794
795
  }), n = {}, s = {};
795
796
  return o && !r && (n.background = o, s["--antd-arrow-background-color"] = o), {
@@ -798,7 +799,7 @@ function be(t, o) {
798
799
  arrowStyle: s
799
800
  };
800
801
  }
801
- const jt = (t) => {
802
+ const Tt = (t) => {
802
803
  const {
803
804
  prefixCls: o,
804
805
  className: r,
@@ -808,139 +809,144 @@ const jt = (t) => {
808
809
  overlayInnerStyle: a
809
810
  } = t, {
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", {
813
- className: $,
812
+ } = f.useContext(pe), l = i("tooltip", o), [m, h, c] = ye(l), u = we(l, s), y = u.arrowStyle, C = Object.assign(Object.assign({}, a), u.overlayStyle), _ = T(h, c, l, `${l}-pure`, `${l}-placement-${e}`, r, u.className);
813
+ return m(/* @__PURE__ */ f.createElement("div", {
814
+ className: _,
814
815
  style: y
815
- }, /* @__PURE__ */ u.createElement("div", {
816
+ }, /* @__PURE__ */ f.createElement("div", {
816
817
  className: `${l}-arrow`
817
- }), /* @__PURE__ */ u.createElement(me, Object.assign({}, t, {
818
+ }), /* @__PURE__ */ f.createElement(ge, Object.assign({}, t, {
818
819
  className: h,
819
820
  prefixCls: l,
820
- overlayInnerStyle: O
821
+ overlayInnerStyle: C
821
822
  }), n)));
822
823
  };
823
- var Tt = function(t, o) {
824
+ var zt = function(t, o) {
824
825
  var r = {};
825
826
  for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
826
827
  if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, e = Object.getOwnPropertySymbols(t); n < e.length; n++)
827
828
  o.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[n]) && (r[e[n]] = t[e[n]]);
828
829
  return r;
829
830
  };
830
- const zt = /* @__PURE__ */ u.forwardRef((t, o) => {
831
+ const It = /* @__PURE__ */ f.forwardRef((t, o) => {
831
832
  var r, e, n, s, a, i;
832
833
  const {
833
834
  prefixCls: l,
834
835
  openClassName: m,
835
836
  getTooltipContainer: h,
836
837
  color: c,
837
- overlayInnerStyle: d,
838
+ overlayInnerStyle: u,
838
839
  children: y,
839
- afterOpenChange: O,
840
- afterVisibleChange: $,
841
- destroyTooltipOnHide: _,
840
+ afterOpenChange: C,
841
+ afterVisibleChange: _,
842
+ destroyTooltipOnHide: x,
842
843
  arrow: b = !0,
843
844
  title: g,
844
- overlay: x,
845
- builtinPlacements: T,
846
- arrowPointAtCenter: z = !1,
847
- autoAdjustOverflow: J = !0
848
- } = t, B = !!b, [, I] = We(), {
849
- getPopupContainer: Q,
850
- getPrefixCls: Y,
851
- direction: ee,
852
- tooltip: f
853
- } = u.useContext(ue), R = Ye("Tooltip"), A = u.useRef(null), Z = () => {
845
+ overlay: N,
846
+ builtinPlacements: I,
847
+ arrowPointAtCenter: A = !1,
848
+ autoAdjustOverflow: K = !0,
849
+ motion: q,
850
+ getPopupContainer: F,
851
+ placement: U = "top",
852
+ mouseEnterDelay: G = 0.1,
853
+ mouseLeaveDelay: J = 0.1,
854
+ overlayStyle: Q,
855
+ rootClassName: ee,
856
+ overlayClassName: k,
857
+ styles: S,
858
+ classNames: w
859
+ } = t, P = zt(t, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), B = !!b, [, z] = Je(), {
860
+ getPopupContainer: M,
861
+ getPrefixCls: H,
862
+ direction: ie,
863
+ tooltip: d
864
+ } = f.useContext(pe), X = Qe("Tooltip"), te = f.useRef(null), le = () => {
854
865
  var p;
855
- (p = A.current) === null || p === void 0 || p.forceAlign();
866
+ (p = te.current) === null || p === void 0 || p.forceAlign();
856
867
  };
857
- u.useImperativeHandle(o, () => {
868
+ f.useImperativeHandle(o, () => {
858
869
  var p;
859
870
  return {
860
- forceAlign: Z,
871
+ forceAlign: le,
861
872
  forcePopupAlign: () => {
862
- R.deprecated(!1, "forcePopupAlign", "forceAlign"), Z();
873
+ X.deprecated(!1, "forcePopupAlign", "forceAlign"), le();
863
874
  },
864
- nativeElement: (p = A.current) === null || p === void 0 ? void 0 : p.nativeElement
875
+ nativeElement: (p = te.current) === null || p === void 0 ? void 0 : p.nativeElement
865
876
  };
866
877
  }), 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" && 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, {
878
+ let [$, j] = p;
879
+ X.deprecated(!($ in t), $, j);
880
+ }), process.env.NODE_ENV !== "production" && X(!x || typeof x == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && X(!b || typeof b == "boolean" || !("arrowPointAtCenter" in b), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
881
+ const [Oe, Ce] = qe(!1, {
871
882
  value: (r = t.open) !== null && r !== void 0 ? r : t.visible,
872
883
  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,
881
- autoAdjustOverflow: J,
882
- arrowWidth: B ? I.sizePopupArrow : 0,
883
- borderRadius: I.borderRadius,
884
- offset: I.marginXXS,
884
+ }), oe = !g && !N && g !== 0, $e = (p) => {
885
+ var $, j;
886
+ Ce(oe ? !1 : p), oe || (($ = t.onOpenChange) === null || $ === void 0 || $.call(t, p), (j = t.onVisibleChange) === null || j === void 0 || j.call(t, p));
887
+ }, _e = f.useMemo(() => {
888
+ var p, $;
889
+ let j = A;
890
+ return typeof b == "object" && (j = ($ = (p = b.pointAtCenter) !== null && p !== void 0 ? p : b.arrowPointAtCenter) !== null && $ !== void 0 ? $ : A), I || xt({
891
+ arrowPointAtCenter: j,
892
+ autoAdjustOverflow: K,
893
+ arrowWidth: B ? z.sizePopupArrow : 0,
894
+ borderRadius: z.borderRadius,
895
+ offset: z.marginXXS,
885
896
  visibleFirst: !0
886
897
  });
887
- }, [z, b, T, I]), H = u.useMemo(() => g === 0 ? g : x || g || "", [x, g]), re = /* @__PURE__ */ u.createElement(Je, {
898
+ }, [A, b, I, z]), ne = f.useMemo(() => g === 0 ? g : N || g || "", [N, g]), xe = /* @__PURE__ */ f.createElement(Fe, {
888
899
  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,
897
- styles: E,
898
- 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,
900
+ }, typeof ne == "function" ? ne() : ne), R = H("tooltip", l), Pe = H(), Ne = t["data-popover-inject"];
901
+ let re = Oe;
902
+ !("open" in t) && !("visible" in t) && oe && (re = !1);
903
+ const ae = /* @__PURE__ */ f.isValidElement(y) && !et(y) ? y : /* @__PURE__ */ f.createElement("span", null, y), W = ae.props, Se = !W.className || typeof W.className == "string" ? T(W.className, m || `${R}-open`) : W.className, [je, Te, ze] = ye(R, !Ne), se = we(R, c), Ie = se.arrowStyle, Ae = T(k, {
904
+ [`${R}-rtl`]: ie === "rtl"
905
+ }, se.className, ee, Te, ze, d == null ? void 0 : d.className, (n = d == null ? void 0 : d.classNames) === null || n === void 0 ? void 0 : n.root, w == null ? void 0 : w.root), Re = T((s = d == null ? void 0 : d.classNames) === null || s === void 0 ? void 0 : s.body, w == null ? void 0 : w.body), [Ee, Ve] = Ye("Tooltip", P.zIndex), Le = /* @__PURE__ */ f.createElement(yt, Object.assign({}, P, {
906
+ zIndex: Ee,
906
907
  showArrow: B,
907
- placement: we,
908
- mouseEnterDelay: ve,
909
- mouseLeaveDelay: Oe,
910
- prefixCls: L,
908
+ placement: U,
909
+ mouseEnterDelay: G,
910
+ mouseLeaveDelay: J,
911
+ prefixCls: R,
911
912
  classNames: {
912
- root: Ie,
913
+ root: Ae,
913
914
  body: Re
914
915
  },
915
916
  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)
917
+ root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie), (a = d == null ? void 0 : d.styles) === null || a === void 0 ? void 0 : a.root), d == null ? void 0 : d.style), Q), S == null ? void 0 : S.root),
918
+ body: Object.assign(Object.assign(Object.assign(Object.assign({}, (i = d == null ? void 0 : d.styles) === null || i === void 0 ? void 0 : i.body), u), S == null ? void 0 : S.body), se.overlayStyle)
918
919
  },
919
- getTooltipContainer: ye || h || Q,
920
- ref: A,
921
- builtinPlacements: q,
922
- overlay: re,
923
- visible: te,
924
- onVisibleChange: K,
925
- afterVisibleChange: O ?? $,
926
- arrowContent: /* @__PURE__ */ u.createElement("span", {
927
- className: `${L}-arrow-content`
920
+ getTooltipContainer: F || h || M,
921
+ ref: te,
922
+ builtinPlacements: _e,
923
+ overlay: xe,
924
+ visible: re,
925
+ onVisibleChange: $e,
926
+ afterVisibleChange: C ?? _,
927
+ arrowContent: /* @__PURE__ */ f.createElement("span", {
928
+ className: `${R}-arrow-content`
928
929
  }),
929
930
  motion: {
930
- motionName: Fe(xe, "zoom-big-fast", t.transitionName),
931
+ motionName: Ze(Pe, "zoom-big-fast", t.transitionName),
931
932
  motionDeadline: 1e3
932
933
  },
933
- 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;
934
+ destroyTooltipOnHide: !!x
935
+ }), re ? tt(ae, {
936
+ className: Se
937
+ }) : ae);
938
+ return je(/* @__PURE__ */ f.createElement(Ke.Provider, {
939
+ value: Ve
940
+ }, Le));
941
+ }), ve = It;
942
+ process.env.NODE_ENV !== "production" && (ve.displayName = "Tooltip");
943
+ ve._InternalPanelDoNotUseOrYouWillBeFired = Tt;
943
944
  export {
944
- he as T,
945
- ot as z
945
+ ve as T,
946
+ he as a,
947
+ wt as b,
948
+ xt as c,
949
+ Ot as g,
950
+ pt as i,
951
+ nt as z
946
952
  };