@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,11 +1,13 @@
1
- import * as K from "react";
2
- import s, { forwardRef as oe, useState as xe, useRef as j, useEffect as k, useMemo as ee, useContext as be, Children as pr } from "react";
3
- import { C as Ue, N as yr, A as Qe, c as N, H as Sr, M as xr, o as Er, p as $r, q as Je, r as Ze, d as Ke, a as I, Q as ke, b as Br, e as X, h as Ee, k as er, _ as he, n as ne, R as ve, m as Hr, z as te, T as Or, U as Rr, W as Nr, F as Pr, v as jr } from "./index-BWys7dkb.js";
4
- import { u as wr, o as Ir } from "./isVisible-CNQjrJPN.js";
5
- import { W as Dr } from "./index-C7kFNqp2.js";
6
- import { R as Tr, b as zr, a as Lr } from "./Compact-CJBo3f0u.js";
7
- import { c as Ar, i as _r } from "./reactNode-sKPeiqPL.js";
1
+ import * as q from "react";
2
+ import s, { forwardRef as oe, useState as xe, useRef as j, useEffect as k, useMemo as ee, useContext as he, Children as vr } from "react";
3
+ import { c as N, e as Ue, _ as w, F as Je, d as yr, f as Y, h as $e, a as be } from "./warning-C63HNL9U.js";
4
+ import { u as Sr, o as xr } from "./isVisible-A-IfeFoT.js";
5
+ import { C as Qe, E as $r, v as Ze, x as Er, B as Br, _ as Hr, d as Or, e as Ke, f as ke, b as er, m as ne, G as pe, g as Rr, q as te, H as Nr, I as Pr, J as jr, D as Ir, j as wr } from "./index-oK7z6jnz.js";
6
+ import { W as Dr } from "./index-1CBpubM3.js";
7
+ import { b as Tr, a as Lr } from "./Compact-CGY560JF.js";
8
+ import { c as zr, i as Ar } from "./reactNode-sKPeiqPL.js";
8
9
  import { P as rr } from "./presetColors-Cl8UP3Nw.js";
10
+ import { R as _r } from "./LoadingOutlined-8EnJdZ7I.js";
9
11
  import { g as Mr } from "./compact-item-DH13cl8A.js";
10
12
  var Gr = function(e, r) {
11
13
  var t = {};
@@ -14,38 +16,38 @@ var Gr = function(e, r) {
14
16
  r.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (t[o[n]] = e[o[n]]);
15
17
  return t;
16
18
  };
17
- const tr = /* @__PURE__ */ K.createContext(void 0), Fr = (e) => {
19
+ const tr = /* @__PURE__ */ q.createContext(void 0), Fr = (e) => {
18
20
  const {
19
21
  getPrefixCls: r,
20
22
  direction: t
21
- } = K.useContext(Ue), {
23
+ } = q.useContext(Qe), {
22
24
  prefixCls: o,
23
25
  size: n,
24
26
  className: a
25
- } = e, l = Gr(e, ["prefixCls", "size", "className"]), i = r("btn-group", o), [, , c] = yr();
26
- let u = "";
27
- switch (n) {
28
- case "large":
29
- u = "lg";
30
- break;
31
- case "small":
32
- u = "sm";
33
- break;
34
- }
27
+ } = e, l = Gr(e, ["prefixCls", "size", "className"]), i = r("btn-group", o), [, , c] = $r(), u = q.useMemo(() => {
28
+ switch (n) {
29
+ case "large":
30
+ return "lg";
31
+ case "small":
32
+ return "sm";
33
+ default:
34
+ return "";
35
+ }
36
+ }, [n]);
35
37
  if (process.env.NODE_ENV !== "production") {
36
- const g = Qe("Button.Group");
38
+ const g = Ze("Button.Group");
37
39
  process.env.NODE_ENV !== "production" && g(!n || ["large", "small", "middle"].includes(n), "usage", "Invalid prop `size`.");
38
40
  }
39
41
  const d = N(i, {
40
42
  [`${i}-${u}`]: u,
41
43
  [`${i}-rtl`]: t === "rtl"
42
44
  }, a, c);
43
- return /* @__PURE__ */ K.createElement(tr.Provider, {
45
+ return /* @__PURE__ */ q.createElement(tr.Provider, {
44
46
  value: n
45
- }, /* @__PURE__ */ K.createElement("div", Object.assign({}, l, {
47
+ }, /* @__PURE__ */ q.createElement("div", Object.assign({}, l, {
46
48
  className: d
47
49
  })));
48
- }, We = /^[\u4E00-\u9FA5]{2}$/, $e = We.test.bind(We);
50
+ }, We = /^[\u4E00-\u9FA5]{2}$/, Ee = We.test.bind(We);
49
51
  function qe(e) {
50
52
  return typeof e == "string";
51
53
  }
@@ -56,9 +58,9 @@ function Vr(e, r) {
56
58
  if (e == null)
57
59
  return;
58
60
  const t = r ? " " : "";
59
- return typeof e != "string" && typeof e != "number" && qe(e.type) && $e(e.props.children) ? Ar(e, {
61
+ return typeof e != "string" && typeof e != "number" && qe(e.type) && Ee(e.props.children) ? zr(e, {
60
62
  children: e.props.children.split("").join(t)
61
- }) : qe(e) ? $e(e) ? /* @__PURE__ */ s.createElement("span", null, e.split("").join(t)) : /* @__PURE__ */ s.createElement("span", null, e) : _r(e) ? /* @__PURE__ */ s.createElement("span", null, e) : e;
63
+ }) : qe(e) ? Ee(e) ? /* @__PURE__ */ s.createElement("span", null, e.split("").join(t)) : /* @__PURE__ */ s.createElement("span", null, e) : Ar(e) ? /* @__PURE__ */ s.createElement("span", null, e) : e;
62
64
  }
63
65
  function Wr(e, r) {
64
66
  let t = !1;
@@ -73,7 +75,7 @@ function Wr(e, r) {
73
75
  t = l;
74
76
  }), s.Children.map(o, (n) => Vr(n, r));
75
77
  }
76
- ["default", "primary", "danger"].concat(Sr(rr));
78
+ ["default", "primary", "danger"].concat(Er(rr));
77
79
  const Be = /* @__PURE__ */ oe((e, r) => {
78
80
  const {
79
81
  className: t,
@@ -98,10 +100,10 @@ const Be = /* @__PURE__ */ oe((e, r) => {
98
100
  className: l,
99
101
  style: n,
100
102
  ref: r
101
- }, /* @__PURE__ */ s.createElement(Tr, {
103
+ }, /* @__PURE__ */ s.createElement(_r, {
102
104
  className: a
103
105
  }));
104
- }), pe = () => ({
106
+ }), ve = () => ({
105
107
  width: 0,
106
108
  opacity: 0,
107
109
  transform: "scale(0)"
@@ -122,7 +124,7 @@ const Be = /* @__PURE__ */ oe((e, r) => {
122
124
  prefixCls: r,
123
125
  className: n,
124
126
  style: a
125
- }) : /* @__PURE__ */ s.createElement(xr, {
127
+ }) : /* @__PURE__ */ s.createElement(Br, {
126
128
  visible: i,
127
129
  // Used for minus flex gap style only
128
130
  motionName: `${r}-loading-icon-motion`,
@@ -130,22 +132,22 @@ const Be = /* @__PURE__ */ oe((e, r) => {
130
132
  motionEnter: !l,
131
133
  motionLeave: !l,
132
134
  removeOnLeave: !0,
133
- onAppearStart: pe,
135
+ onAppearStart: ve,
134
136
  onAppearActive: ye,
135
- onEnterStart: pe,
137
+ onEnterStart: ve,
136
138
  onEnterActive: ye,
137
139
  onLeaveStart: ye,
138
- onLeaveActive: pe
140
+ onLeaveActive: ve
139
141
  }, (c, u) => {
140
142
  let {
141
143
  className: d,
142
144
  style: g
143
145
  } = c;
144
- const h = Object.assign(Object.assign({}, a), g);
146
+ const b = Object.assign(Object.assign({}, a), g);
145
147
  return /* @__PURE__ */ s.createElement(Xe, {
146
148
  prefixCls: r,
147
149
  className: N(n, d),
148
- style: h,
150
+ style: b,
149
151
  ref: u
150
152
  });
151
153
  });
@@ -218,23 +220,23 @@ const Be = /* @__PURE__ */ oe((e, r) => {
218
220
  };
219
221
  var Yr = ["b"], Ur = ["v"], Se = function(r) {
220
222
  return Math.round(Number(r || 0));
221
- }, Qr = function(r) {
222
- if (r instanceof ke)
223
+ }, Jr = function(r) {
224
+ if (r instanceof Je)
223
225
  return r;
224
- if (r && Br(r) === "object" && "h" in r && "b" in r) {
225
- var t = r, o = t.b, n = Ke(t, Yr);
226
- return I(I({}, n), {}, {
226
+ if (r && yr(r) === "object" && "h" in r && "b" in r) {
227
+ var t = r, o = t.b, n = Ue(t, Yr);
228
+ return w(w({}, n), {}, {
227
229
  v: o
228
230
  });
229
231
  }
230
232
  return typeof r == "string" && /hsb/.test(r) ? r.replace(/hsb/, "hsv") : r;
231
233
  }, D = /* @__PURE__ */ function(e) {
232
- Er(t, e);
233
- var r = $r(t);
234
+ Hr(t, e);
235
+ var r = Or(t);
234
236
  function t(o) {
235
- return Je(this, t), r.call(this, Qr(o));
237
+ return Ke(this, t), r.call(this, Jr(o));
236
238
  }
237
- return Ze(t, [{
239
+ return ke(t, [{
238
240
  key: "toHsbString",
239
241
  value: function() {
240
242
  var n = this.toHsb(), a = Se(n.s * 100), l = Se(n.b * 100), i = Se(n.h), c = n.a, u = "hsb(".concat(i, ", ").concat(a, "%, ").concat(l, "%)"), d = "hsba(".concat(i, ", ").concat(a, "%, ").concat(l, "%, ").concat(c.toFixed(c === 0 ? 0 : 2), ")");
@@ -243,32 +245,32 @@ var Yr = ["b"], Ur = ["v"], Se = function(r) {
243
245
  }, {
244
246
  key: "toHsb",
245
247
  value: function() {
246
- var n = this.toHsv(), a = n.v, l = Ke(n, Ur);
247
- return I(I({}, l), {}, {
248
+ var n = this.toHsv(), a = n.v, l = Ue(n, Ur);
249
+ return w(w({}, l), {}, {
248
250
  b: a,
249
251
  a: this.a
250
252
  });
251
253
  }
252
254
  }]), t;
253
- }(ke), Jr = "rc-color-picker", q = function(r) {
255
+ }(Je), Qr = "rc-color-picker", X = function(r) {
254
256
  return r instanceof D ? r : new D(r);
255
- }, Zr = q("#1677ff"), or = function(r) {
256
- var t = r.offset, o = r.targetRef, n = r.containerRef, a = r.color, l = r.type, i = n.current.getBoundingClientRect(), c = i.width, u = i.height, d = o.current.getBoundingClientRect(), g = d.width, h = d.height, m = g / 2, C = h / 2, y = (t.x + m) / c, $ = 1 - (t.y + C) / u, H = a.toHsb(), B = y, S = (t.x + m) / c * 360;
257
+ }, Zr = X("#1677ff"), or = function(r) {
258
+ var t = r.offset, o = r.targetRef, n = r.containerRef, a = r.color, l = r.type, i = n.current.getBoundingClientRect(), c = i.width, u = i.height, d = o.current.getBoundingClientRect(), g = d.width, b = d.height, m = g / 2, C = b / 2, y = (t.x + m) / c, E = 1 - (t.y + C) / u, H = a.toHsb(), B = y, S = (t.x + m) / c * 360;
257
259
  if (l)
258
260
  switch (l) {
259
261
  case "hue":
260
- return q(I(I({}, H), {}, {
262
+ return X(w(w({}, H), {}, {
261
263
  h: S <= 0 ? 0 : S
262
264
  }));
263
265
  case "alpha":
264
- return q(I(I({}, H), {}, {
266
+ return X(w(w({}, H), {}, {
265
267
  a: B <= 0 ? 0 : B
266
268
  }));
267
269
  }
268
- return q({
270
+ return X({
269
271
  h: H.h,
270
272
  s: y <= 0 ? 0 : y,
271
- b: $ >= 1 ? 1 : $,
273
+ b: E >= 1 ? 1 : E,
272
274
  a: H.a
273
275
  });
274
276
  }, nr = function(r, t) {
@@ -314,35 +316,35 @@ function ar(e) {
314
316
  var r = e.targetRef, t = e.containerRef, o = e.direction, n = e.onDragChange, a = e.onDragChangeComplete, l = e.calculate, i = e.color, c = e.disabledDrag, u = xe({
315
317
  x: 0,
316
318
  y: 0
317
- }), d = X(u, 2), g = d[0], h = d[1], m = j(null), C = j(null);
319
+ }), d = Y(u, 2), g = d[0], b = d[1], m = j(null), C = j(null);
318
320
  k(function() {
319
- h(l());
321
+ b(l());
320
322
  }, [i]), k(function() {
321
323
  return function() {
322
324
  document.removeEventListener("mousemove", m.current), document.removeEventListener("mouseup", C.current), document.removeEventListener("touchmove", m.current), document.removeEventListener("touchend", C.current), m.current = null, C.current = null;
323
325
  };
324
326
  }, []);
325
327
  var y = function(f) {
326
- var b = kr(f), Y = b.pageX, U = b.pageY, O = t.current.getBoundingClientRect(), G = O.x, T = O.y, Q = O.width, F = O.height, z = r.current.getBoundingClientRect(), L = z.width, R = z.height, V = L / 2, M = R / 2, P = Math.max(0, Math.min(Y - G, Q)) - V, v = Math.max(0, Math.min(U - T, F)) - M, x = {
328
+ var h = kr(f), U = h.pageX, J = h.pageY, O = t.current.getBoundingClientRect(), G = O.x, T = O.y, Q = O.width, F = O.height, L = r.current.getBoundingClientRect(), z = L.width, R = L.height, V = z / 2, M = R / 2, P = Math.max(0, Math.min(U - G, Q)) - V, p = Math.max(0, Math.min(J - T, F)) - M, x = {
327
329
  x: P,
328
- y: o === "x" ? g.y : v
330
+ y: o === "x" ? g.y : p
329
331
  };
330
- if (L === 0 && R === 0 || L !== R)
332
+ if (z === 0 && R === 0 || z !== R)
331
333
  return !1;
332
334
  n == null || n(x);
333
- }, $ = function(f) {
335
+ }, E = function(f) {
334
336
  f.preventDefault(), y(f);
335
337
  }, H = function(f) {
336
338
  f.preventDefault(), document.removeEventListener("mousemove", m.current), document.removeEventListener("mouseup", C.current), document.removeEventListener("touchmove", m.current), document.removeEventListener("touchend", C.current), m.current = null, C.current = null, a == null || a();
337
339
  }, B = function(f) {
338
- document.removeEventListener("mousemove", m.current), document.removeEventListener("mouseup", C.current), !c && (y(f), document.addEventListener("mousemove", $), document.addEventListener("mouseup", H), document.addEventListener("touchmove", $), document.addEventListener("touchend", H), m.current = $, C.current = H);
340
+ document.removeEventListener("mousemove", m.current), document.removeEventListener("mouseup", C.current), !c && (y(f), document.addEventListener("mousemove", E), document.addEventListener("mouseup", H), document.addEventListener("touchmove", E), document.addEventListener("touchend", H), m.current = E, C.current = H);
339
341
  };
340
342
  return [g, B];
341
343
  }
342
344
  var lr = function(r) {
343
345
  var t = r.size, o = t === void 0 ? "default" : t, n = r.color, a = r.prefixCls;
344
346
  return /* @__PURE__ */ s.createElement("div", {
345
- className: N("".concat(a, "-handler"), Ee({}, "".concat(a, "-handler-sm"), o === "small")),
347
+ className: N("".concat(a, "-handler"), $e({}, "".concat(a, "-handler-sm"), o === "small")),
346
348
  style: {
347
349
  backgroundColor: n
348
350
  }
@@ -351,7 +353,7 @@ var lr = function(r) {
351
353
  var t = r.children, o = r.style, n = r.prefixCls;
352
354
  return /* @__PURE__ */ s.createElement("div", {
353
355
  className: "".concat(n, "-palette"),
354
- style: I({
356
+ style: w({
355
357
  position: "relative"
356
358
  }, o)
357
359
  }, t);
@@ -369,13 +371,13 @@ var lr = function(r) {
369
371
  }, t);
370
372
  }), et = function(r) {
371
373
  var t = r.color, o = r.onChange, n = r.prefixCls, a = r.onChangeComplete, l = r.disabled, i = j(), c = j(), u = j(t), d = er(function(y) {
372
- var $ = or({
374
+ var E = or({
373
375
  offset: y,
374
376
  targetRef: c,
375
377
  containerRef: i,
376
378
  color: t
377
379
  });
378
- u.current = $, o($);
380
+ u.current = E, o(E);
379
381
  }), g = ar({
380
382
  color: t,
381
383
  containerRef: i,
@@ -388,7 +390,7 @@ var lr = function(r) {
388
390
  return a == null ? void 0 : a(u.current);
389
391
  },
390
392
  disabledDrag: l
391
- }), h = X(g, 2), m = h[0], C = h[1];
393
+ }), b = Y(g, 2), m = b[0], C = b[1];
392
394
  return /* @__PURE__ */ s.createElement("div", {
393
395
  ref: i,
394
396
  className: "".concat(n, "-select"),
@@ -411,16 +413,16 @@ var lr = function(r) {
411
413
  }
412
414
  })));
413
415
  }, rt = function(r, t) {
414
- var o = wr(r, {
416
+ var o = Sr(r, {
415
417
  value: t
416
- }), n = X(o, 2), a = n[0], l = n[1], i = ee(function() {
417
- return q(a);
418
+ }), n = Y(o, 2), a = n[0], l = n[1], i = ee(function() {
419
+ return X(a);
418
420
  }, [a]);
419
421
  return [i, l];
420
422
  }, tt = function(r) {
421
423
  var t = r.colors, o = r.children, n = r.direction, a = n === void 0 ? "to right" : n, l = r.type, i = r.prefixCls, c = ee(function() {
422
424
  return t.map(function(u, d) {
423
- var g = q(u);
425
+ var g = X(u);
424
426
  return l === "alpha" && d === t.length - 1 && (g = new D(g.setA(1))), g.toRgbString();
425
427
  }).join(",");
426
428
  }, [t, l]);
@@ -433,17 +435,17 @@ var lr = function(r) {
433
435
  }
434
436
  }, o);
435
437
  }, ot = function(r) {
436
- var t = r.prefixCls, o = r.colors, n = r.disabled, a = r.onChange, l = r.onChangeComplete, i = r.color, c = r.type, u = j(), d = j(), g = j(i), h = function(b) {
437
- return c === "hue" ? b.getHue() : b.a * 100;
438
+ var t = r.prefixCls, o = r.colors, n = r.disabled, a = r.onChange, l = r.onChangeComplete, i = r.color, c = r.type, u = j(), d = j(), g = j(i), b = function(h) {
439
+ return c === "hue" ? h.getHue() : h.a * 100;
438
440
  }, m = er(function(f) {
439
- var b = or({
441
+ var h = or({
440
442
  offset: f,
441
443
  targetRef: d,
442
444
  containerRef: u,
443
445
  color: i,
444
446
  type: c
445
447
  });
446
- g.current = b, a(h(b));
448
+ g.current = h, a(b(h));
447
449
  }), C = ar({
448
450
  color: i,
449
451
  targetRef: d,
@@ -453,16 +455,16 @@ var lr = function(r) {
453
455
  },
454
456
  onDragChange: m,
455
457
  onDragChangeComplete: function() {
456
- l(h(g.current));
458
+ l(b(g.current));
457
459
  },
458
460
  direction: "x",
459
461
  disabledDrag: n
460
- }), y = X(C, 2), $ = y[0], H = y[1], B = s.useMemo(function() {
462
+ }), y = Y(C, 2), E = y[0], H = y[1], B = s.useMemo(function() {
461
463
  if (c === "hue") {
462
464
  var f = i.toHsb();
463
465
  f.s = 1, f.b = 1, f.a = 1;
464
- var b = new D(f);
465
- return b;
466
+ var h = new D(f);
467
+ return h;
466
468
  }
467
469
  return i;
468
470
  }, [i, c]), S = s.useMemo(function() {
@@ -478,8 +480,8 @@ var lr = function(r) {
478
480
  }, /* @__PURE__ */ s.createElement(ir, {
479
481
  prefixCls: t
480
482
  }, /* @__PURE__ */ s.createElement(cr, {
481
- x: $.x,
482
- y: $.y,
483
+ x: E.x,
484
+ y: E.y,
483
485
  ref: d
484
486
  }, /* @__PURE__ */ s.createElement(lr, {
485
487
  size: "small",
@@ -492,7 +494,7 @@ var lr = function(r) {
492
494
  })));
493
495
  };
494
496
  function nt(e) {
495
- return K.useMemo(function() {
497
+ return q.useMemo(function() {
496
498
  var r = e || {}, t = r.slider;
497
499
  return [t || ot];
498
500
  }, [e]);
@@ -519,64 +521,64 @@ var at = [{
519
521
  color: "rgb(255, 0, 0)",
520
522
  percent: 100
521
523
  }], lt = /* @__PURE__ */ oe(function(e, r) {
522
- var t = e.value, o = e.defaultValue, n = e.prefixCls, a = n === void 0 ? Jr : n, l = e.onChange, i = e.onChangeComplete, c = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, h = g === void 0 ? !1 : g, m = e.disabled, C = m === void 0 ? !1 : m, y = e.components, $ = nt(y), H = X($, 1), B = H[0], S = rt(o || Zr, t), f = X(S, 2), b = f[0], Y = f[1], U = ee(function() {
523
- return b.setA(1).toRgbString();
524
- }, [b]), O = function(v, x) {
525
- t || Y(v), l == null || l(v, x);
526
- }, G = function(v) {
527
- return new D(b.setHue(v));
528
- }, T = function(v) {
529
- return new D(b.setA(v / 100));
530
- }, Q = function(v) {
531
- O(G(v), {
524
+ var t = e.value, o = e.defaultValue, n = e.prefixCls, a = n === void 0 ? Qr : n, l = e.onChange, i = e.onChangeComplete, c = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, b = g === void 0 ? !1 : g, m = e.disabled, C = m === void 0 ? !1 : m, y = e.components, E = nt(y), H = Y(E, 1), B = H[0], S = rt(o || Zr, t), f = Y(S, 2), h = f[0], U = f[1], J = ee(function() {
525
+ return h.setA(1).toRgbString();
526
+ }, [h]), O = function(p, x) {
527
+ t || U(p), l == null || l(p, x);
528
+ }, G = function(p) {
529
+ return new D(h.setHue(p));
530
+ }, T = function(p) {
531
+ return new D(h.setA(p / 100));
532
+ }, Q = function(p) {
533
+ O(G(p), {
532
534
  type: "hue",
533
- value: v
535
+ value: p
534
536
  });
535
- }, F = function(v) {
536
- O(T(v), {
537
+ }, F = function(p) {
538
+ O(T(p), {
537
539
  type: "alpha",
538
- value: v
540
+ value: p
539
541
  });
540
- }, z = function(v) {
541
- i && i(G(v));
542
- }, L = function(v) {
543
- i && i(T(v));
544
- }, R = N("".concat(a, "-panel"), c, Ee({}, "".concat(a, "-panel-disabled"), C)), V = {
542
+ }, L = function(p) {
543
+ i && i(G(p));
544
+ }, z = function(p) {
545
+ i && i(T(p));
546
+ }, R = N("".concat(a, "-panel"), c, $e({}, "".concat(a, "-panel-disabled"), C)), V = {
545
547
  prefixCls: a,
546
548
  disabled: C,
547
- color: b
548
- }, M = /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(et, he({
549
+ color: h
550
+ }, M = /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(et, be({
549
551
  onChange: O
550
552
  }, V, {
551
553
  onChangeComplete: i
552
554
  })), /* @__PURE__ */ s.createElement("div", {
553
555
  className: "".concat(a, "-slider-container")
554
556
  }, /* @__PURE__ */ s.createElement("div", {
555
- className: N("".concat(a, "-slider-group"), Ee({}, "".concat(a, "-slider-group-disabled-alpha"), h))
556
- }, /* @__PURE__ */ s.createElement(B, he({}, V, {
557
+ className: N("".concat(a, "-slider-group"), $e({}, "".concat(a, "-slider-group-disabled-alpha"), b))
558
+ }, /* @__PURE__ */ s.createElement(B, be({}, V, {
557
559
  type: "hue",
558
560
  colors: at,
559
561
  min: 0,
560
562
  max: 359,
561
- value: b.getHue(),
563
+ value: h.getHue(),
562
564
  onChange: Q,
563
- onChangeComplete: z
564
- })), !h && /* @__PURE__ */ s.createElement(B, he({}, V, {
565
+ onChangeComplete: L
566
+ })), !b && /* @__PURE__ */ s.createElement(B, be({}, V, {
565
567
  type: "alpha",
566
568
  colors: [{
567
569
  percent: 0,
568
570
  color: "rgba(255, 0, 4, 0)"
569
571
  }, {
570
572
  percent: 100,
571
- color: U
573
+ color: J
572
574
  }],
573
575
  min: 0,
574
576
  max: 100,
575
- value: b.a * 100,
577
+ value: h.a * 100,
576
578
  onChange: F,
577
- onChangeComplete: L
579
+ onChangeComplete: z
578
580
  }))), /* @__PURE__ */ s.createElement(Kr, {
579
- color: b.toRgbString(),
581
+ color: h.toRgbString(),
580
582
  prefixCls: a
581
583
  })));
582
584
  return /* @__PURE__ */ s.createElement("div", {
@@ -589,7 +591,7 @@ process.env.NODE_ENV !== "production" && (lt.displayName = "ColorPicker");
589
591
  const it = (e, r) => (e == null ? void 0 : e.replace(/[^\w/]/g, "").slice(0, r ? 8 : 6)) || "", ct = (e, r) => e ? it(e, r) : "";
590
592
  let st = /* @__PURE__ */ function() {
591
593
  function e(r) {
592
- Je(this, e);
594
+ Ke(this, e);
593
595
  var t;
594
596
  if (this.cleared = !1, r instanceof e) {
595
597
  this.metaColor = r.metaColor.clone(), this.colors = (t = r.colors) === null || t === void 0 ? void 0 : t.map((n) => ({
@@ -610,7 +612,7 @@ let st = /* @__PURE__ */ function() {
610
612
  };
611
613
  }), this.metaColor = new D(this.colors[0].color.metaColor)) : this.metaColor = new D(o ? "" : r), (!r || o && !this.colors) && (this.metaColor = this.metaColor.setA(0), this.cleared = !0);
612
614
  }
613
- return Ze(e, [{
615
+ return ke(e, [{
614
616
  key: "toHsb",
615
617
  value: function() {
616
618
  return this.metaColor.toHsb();
@@ -691,7 +693,7 @@ const ut = (e, r) => {
691
693
  });
692
694
  }, ur = (e) => {
693
695
  var r, t, o, n, a, l;
694
- const i = (r = e.contentFontSize) !== null && r !== void 0 ? r : e.fontSize, c = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, u = (o = e.contentFontSizeLG) !== null && o !== void 0 ? o : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : ve(i), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : ve(c), h = (l = e.contentLineHeightLG) !== null && l !== void 0 ? l : ve(u), m = ut(new st(e.colorBgSolid), "#fff") ? "#000" : "#fff";
696
+ const i = (r = e.contentFontSize) !== null && r !== void 0 ? r : e.fontSize, c = (t = e.contentFontSizeSM) !== null && t !== void 0 ? t : e.fontSize, u = (o = e.contentFontSizeLG) !== null && o !== void 0 ? o : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : pe(i), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : pe(c), b = (l = e.contentLineHeightLG) !== null && l !== void 0 ? l : pe(u), m = ut(new st(e.colorBgSolid), "#fff") ? "#000" : "#fff";
695
697
  return {
696
698
  fontWeight: 400,
697
699
  defaultShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,
@@ -731,10 +733,10 @@ const ut = (e, r) => {
731
733
  contentFontSizeLG: u,
732
734
  contentLineHeight: d,
733
735
  contentLineHeightSM: g,
734
- contentLineHeightLG: h,
736
+ contentLineHeightLG: b,
735
737
  paddingBlock: Math.max((e.controlHeight - i * d) / 2 - e.lineWidth, 0),
736
738
  paddingBlockSM: Math.max((e.controlHeightSM - c * g) / 2 - e.lineWidth, 0),
737
- paddingBlockLG: Math.max((e.controlHeightLG - u * h) / 2 - e.lineWidth, 0)
739
+ paddingBlockLG: Math.max((e.controlHeightLG - u * b) / 2 - e.lineWidth, 0)
738
740
  };
739
741
  }, dt = (e) => {
740
742
  const {
@@ -770,11 +772,11 @@ const ut = (e, r) => {
770
772
  pointerEvents: "none"
771
773
  },
772
774
  // https://github.com/ant-design/ant-design/issues/51380
773
- [`${r}-icon > svg`]: Or(),
775
+ [`${r}-icon > svg`]: Nr(),
774
776
  "> a": {
775
777
  color: "currentColor"
776
778
  },
777
- "&:not(:disabled)": Rr(e),
779
+ "&:not(:disabled)": Pr(e),
778
780
  [`&${r}-two-chinese-chars::first-letter`]: {
779
781
  letterSpacing: "0.34em"
780
782
  },
@@ -875,13 +877,13 @@ const ut = (e, r) => {
875
877
  })
876
878
  }), Ct = (e) => ({
877
879
  [`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, mt(e))
878
- }), bt = (e) => ({
880
+ }), ht = (e) => ({
879
881
  [`&:disabled, &${e.componentCls}-disabled`]: {
880
882
  cursor: "not-allowed",
881
883
  color: e.colorTextDisabled
882
884
  }
883
885
  }), ae = (e, r, t, o) => {
884
- const a = o && ["link", "text"].includes(o) ? bt : Ct;
886
+ const a = o && ["link", "text"].includes(o) ? ht : Ct;
885
887
  return Object.assign(Object.assign({}, a(e)), dr(e.componentCls, r, t));
886
888
  }, le = (e, r, t, o, n) => ({
887
889
  [`&${e.componentCls}-variant-solid`]: Object.assign({
@@ -907,7 +909,7 @@ const ut = (e, r) => {
907
909
  color: r,
908
910
  boxShadow: "none"
909
911
  }, ae(e, o, n, t))
910
- }), ht = (e) => {
912
+ }), bt = (e) => {
911
913
  const {
912
914
  componentCls: r
913
915
  } = e;
@@ -946,7 +948,7 @@ const ut = (e, r) => {
946
948
  }))
947
949
  });
948
950
  }, {});
949
- }, vt = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
951
+ }, pt = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
950
952
  color: e.defaultColor,
951
953
  boxShadow: e.defaultShadow
952
954
  }, le(e, e.solidTextColor, e.colorBgSolid, {
@@ -964,7 +966,7 @@ const ut = (e, r) => {
964
966
  background: e.linkHoverBg
965
967
  }, {
966
968
  color: e.colorLinkActive
967
- })), He(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), pt = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
969
+ })), He(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), vt = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
968
970
  color: e.colorPrimary,
969
971
  boxShadow: e.primaryShadow
970
972
  }, ie(e, e.colorPrimary, e.colorBgContainer, {
@@ -1029,10 +1031,10 @@ const ut = (e, r) => {
1029
1031
  componentCls: r
1030
1032
  } = e;
1031
1033
  return Object.assign({
1032
- [`${r}-color-default`]: vt(e),
1033
- [`${r}-color-primary`]: pt(e),
1034
+ [`${r}-color-default`]: pt(e),
1035
+ [`${r}-color-primary`]: vt(e),
1034
1036
  [`${r}-color-dangerous`]: yt(e)
1035
- }, ht(e));
1037
+ }, bt(e));
1036
1038
  }, xt = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, ie(e, e.defaultBorderColor, e.defaultBg, {
1037
1039
  color: e.defaultHoverColor,
1038
1040
  borderColor: e.defaultHoverBorderColor,
@@ -1093,12 +1095,12 @@ const ut = (e, r) => {
1093
1095
  [`${t}${t}-round${r}`]: ft(e)
1094
1096
  }
1095
1097
  ];
1096
- }, Et = (e) => {
1098
+ }, $t = (e) => {
1097
1099
  const r = ne(e, {
1098
1100
  fontSize: e.contentFontSize
1099
1101
  });
1100
1102
  return Oe(r, e.componentCls);
1101
- }, $t = (e) => {
1103
+ }, Et = (e) => {
1102
1104
  const r = ne(e, {
1103
1105
  controlHeight: e.controlHeightSM,
1104
1106
  fontSize: e.contentFontSizeSM,
@@ -1130,14 +1132,14 @@ const ut = (e, r) => {
1130
1132
  }
1131
1133
  }
1132
1134
  };
1133
- }, Ot = Hr("Button", (e) => {
1135
+ }, Ot = Rr("Button", (e) => {
1134
1136
  const r = sr(e);
1135
1137
  return [
1136
1138
  // Shared
1137
1139
  dt(r),
1138
1140
  // Size
1139
- Et(r),
1140
1141
  $t(r),
1142
+ Et(r),
1141
1143
  Bt(r),
1142
1144
  // Block
1143
1145
  Ht(r),
@@ -1203,9 +1205,10 @@ const jt = (e) => {
1203
1205
  colorPrimaryHover: t,
1204
1206
  lineWidth: o,
1205
1207
  calc: n
1206
- } = e, a = n(o).mul(-1).equal(), l = (i) => ({
1207
- [`${r}-compact${i ? "-vertical" : ""}-item${r}-primary:not([disabled])`]: {
1208
- "& + &::before": {
1208
+ } = e, a = n(o).mul(-1).equal(), l = (i) => {
1209
+ const c = `${r}-compact${i ? "-vertical" : ""}-item${r}-primary:not([disabled])`;
1210
+ return {
1211
+ [`${c} + ${c}::before`]: {
1209
1212
  position: "absolute",
1210
1213
  top: i ? a : 0,
1211
1214
  insetInlineStart: i ? 0 : a,
@@ -1214,10 +1217,10 @@ const jt = (e) => {
1214
1217
  width: i ? "100%" : o,
1215
1218
  height: i ? o : "100%"
1216
1219
  }
1217
- }
1218
- });
1220
+ };
1221
+ };
1219
1222
  return Object.assign(Object.assign({}, l()), l(!0));
1220
- }, wt = Nr(["Button", "compact"], (e) => {
1223
+ }, It = jr(["Button", "compact"], (e) => {
1221
1224
  const r = sr(e);
1222
1225
  return [
1223
1226
  // Space Compact
@@ -1226,7 +1229,7 @@ const jt = (e) => {
1226
1229
  jt(r)
1227
1230
  ];
1228
1231
  }, ur);
1229
- var It = function(e, r) {
1232
+ var wt = function(e, r) {
1230
1233
  var t = {};
1231
1234
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
1232
1235
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
@@ -1252,7 +1255,7 @@ const Tt = {
1252
1255
  dashed: ["default", "dashed"],
1253
1256
  link: ["primary", "link"],
1254
1257
  text: ["default", "text"]
1255
- }, zt = /* @__PURE__ */ s.forwardRef((e, r) => {
1258
+ }, Lt = /* @__PURE__ */ s.forwardRef((e, r) => {
1256
1259
  var t, o, n, a;
1257
1260
  const {
1258
1261
  loading: l = !1,
@@ -1261,129 +1264,129 @@ const Tt = {
1261
1264
  variant: u,
1262
1265
  type: d,
1263
1266
  danger: g = !1,
1264
- shape: h = "default",
1267
+ shape: b = "default",
1265
1268
  size: m,
1266
1269
  styles: C,
1267
1270
  disabled: y,
1268
- className: $,
1271
+ className: E,
1269
1272
  rootClassName: H,
1270
1273
  children: B,
1271
1274
  icon: S,
1272
1275
  iconPosition: f = "start",
1273
- ghost: b = !1,
1274
- block: Y = !1,
1276
+ ghost: h = !1,
1277
+ block: U = !1,
1275
1278
  // React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.
1276
- htmlType: U = "button",
1279
+ htmlType: J = "button",
1277
1280
  classNames: O,
1278
1281
  style: G = {},
1279
1282
  autoInsertSpace: T,
1280
1283
  autoFocus: Q
1281
- } = e, F = It(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), z = d || "default", [L, R] = ee(() => {
1284
+ } = e, F = wt(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), L = d || "default", [z, R] = ee(() => {
1282
1285
  if (c && u)
1283
1286
  return [c, u];
1284
- const E = Tt[z] || [];
1285
- return g ? ["danger", E[1]] : E;
1286
- }, [d, c, u, g]), M = L === "danger" ? "dangerous" : L, {
1287
+ const $ = Tt[L] || [];
1288
+ return g ? ["danger", $[1]] : $;
1289
+ }, [d, c, u, g]), M = z === "danger" ? "dangerous" : z, {
1287
1290
  getPrefixCls: P,
1288
- direction: v,
1291
+ direction: p,
1289
1292
  button: x
1290
- } = be(Ue), ue = (t = T ?? (x == null ? void 0 : x.autoInsertSpace)) !== null && t !== void 0 ? t : !0, p = P("btn", i), [Ne, gr, fr] = Ot(p), mr = be(Pr), W = y ?? mr, Cr = be(tr), J = ee(() => Dt(l), [l]), [A, Pe] = xe(J.loading), [de, je] = xe(!1), Z = j(null), we = jr(r, Z), Ie = pr.count(B) === 1 && !S && !re(R), ge = j(!0);
1293
+ } = he(Qe), ue = (t = T ?? (x == null ? void 0 : x.autoInsertSpace)) !== null && t !== void 0 ? t : !0, v = P("btn", i), [Ne, gr, fr] = Ot(v), mr = he(Ir), W = y ?? mr, Cr = he(tr), Z = ee(() => Dt(l), [l]), [A, Pe] = xe(Z.loading), [de, je] = xe(!1), K = j(null), Ie = wr(r, K), we = vr.count(B) === 1 && !S && !re(R), ge = j(!0);
1291
1294
  s.useEffect(() => (ge.current = !1, () => {
1292
1295
  ge.current = !0;
1293
1296
  }), []), k(() => {
1294
- let E = null;
1295
- J.delay > 0 ? E = setTimeout(() => {
1296
- E = null, Pe(!0);
1297
- }, J.delay) : Pe(J.loading);
1298
- function w() {
1299
- E && (clearTimeout(E), E = null);
1297
+ let $ = null;
1298
+ Z.delay > 0 ? $ = setTimeout(() => {
1299
+ $ = null, Pe(!0);
1300
+ }, Z.delay) : Pe(Z.loading);
1301
+ function I() {
1302
+ $ && (clearTimeout($), $ = null);
1300
1303
  }
1301
- return w;
1302
- }, [J]), k(() => {
1303
- if (!Z.current || !ue)
1304
+ return I;
1305
+ }, [Z]), k(() => {
1306
+ if (!K.current || !ue)
1304
1307
  return;
1305
- const E = Z.current.textContent || "";
1306
- Ie && $e(E) ? de || je(!0) : de && je(!1);
1308
+ const $ = K.current.textContent || "";
1309
+ we && Ee($) ? de || je(!0) : de && je(!1);
1307
1310
  }), k(() => {
1308
- Q && Z.current && Z.current.focus();
1311
+ Q && K.current && K.current.focus();
1309
1312
  }, []);
1310
- const De = s.useCallback((E) => {
1311
- var w;
1313
+ const De = s.useCallback(($) => {
1314
+ var I;
1312
1315
  if (A || W) {
1313
- E.preventDefault();
1316
+ $.preventDefault();
1314
1317
  return;
1315
1318
  }
1316
- (w = e.onClick) === null || w === void 0 || w.call(e, E);
1319
+ (I = e.onClick) === null || I === void 0 || I.call(e, $);
1317
1320
  }, [e.onClick, A, W]);
1318
1321
  if (process.env.NODE_ENV !== "production") {
1319
- const E = Qe("Button");
1320
- process.env.NODE_ENV !== "production" && E(!(typeof S == "string" && S.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${S}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && E(!(b && re(R)), "usage", "`link` or `text` button can't be a `ghost` button.");
1322
+ const $ = Ze("Button");
1323
+ process.env.NODE_ENV !== "production" && $(!(typeof S == "string" && S.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${S}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && $(!(h && re(R)), "usage", "`link` or `text` button can't be a `ghost` button.");
1321
1324
  }
1322
1325
  const {
1323
- compactSize: br,
1326
+ compactSize: hr,
1324
1327
  compactItemClassnames: Te
1325
- } = zr(p, v), hr = {
1328
+ } = Tr(v, p), br = {
1326
1329
  large: "lg",
1327
1330
  small: "sm",
1328
1331
  middle: void 0
1329
- }, ze = Lr((E) => {
1330
- var w, Ce;
1331
- return (Ce = (w = m ?? br) !== null && w !== void 0 ? w : Cr) !== null && Ce !== void 0 ? Ce : E;
1332
- }), Le = ze && (o = hr[ze]) !== null && o !== void 0 ? o : "", vr = A ? "loading" : S, fe = Ir(F, ["navigate"]), Ae = N(p, gr, fr, {
1333
- [`${p}-${h}`]: h !== "default" && h,
1332
+ }, Le = Lr(($) => {
1333
+ var I, Ce;
1334
+ return (Ce = (I = m ?? hr) !== null && I !== void 0 ? I : Cr) !== null && Ce !== void 0 ? Ce : $;
1335
+ }), ze = Le && (o = br[Le]) !== null && o !== void 0 ? o : "", pr = A ? "loading" : S, fe = xr(F, ["navigate"]), Ae = N(v, gr, fr, {
1336
+ [`${v}-${b}`]: b !== "default" && b,
1334
1337
  // line(253 - 254): Compatible with versions earlier than 5.21.0
1335
- [`${p}-${z}`]: z,
1336
- [`${p}-dangerous`]: g,
1337
- [`${p}-color-${M}`]: M,
1338
- [`${p}-variant-${R}`]: R,
1339
- [`${p}-${Le}`]: Le,
1340
- [`${p}-icon-only`]: !B && B !== 0 && !!vr,
1341
- [`${p}-background-ghost`]: b && !re(R),
1342
- [`${p}-loading`]: A,
1343
- [`${p}-two-chinese-chars`]: de && ue && !A,
1344
- [`${p}-block`]: Y,
1345
- [`${p}-rtl`]: v === "rtl",
1346
- [`${p}-icon-end`]: f === "end"
1347
- }, Te, $, H, x == null ? void 0 : x.className), _e = Object.assign(Object.assign({}, x == null ? void 0 : x.style), G), Me = N(O == null ? void 0 : O.icon, (n = x == null ? void 0 : x.classNames) === null || n === void 0 ? void 0 : n.icon), Ge = Object.assign(Object.assign({}, (C == null ? void 0 : C.icon) || {}), ((a = x == null ? void 0 : x.styles) === null || a === void 0 ? void 0 : a.icon) || {}), Fe = S && !A ? /* @__PURE__ */ s.createElement(Be, {
1348
- prefixCls: p,
1338
+ [`${v}-${L}`]: L,
1339
+ [`${v}-dangerous`]: g,
1340
+ [`${v}-color-${M}`]: M,
1341
+ [`${v}-variant-${R}`]: R,
1342
+ [`${v}-${ze}`]: ze,
1343
+ [`${v}-icon-only`]: !B && B !== 0 && !!pr,
1344
+ [`${v}-background-ghost`]: h && !re(R),
1345
+ [`${v}-loading`]: A,
1346
+ [`${v}-two-chinese-chars`]: de && ue && !A,
1347
+ [`${v}-block`]: U,
1348
+ [`${v}-rtl`]: p === "rtl",
1349
+ [`${v}-icon-end`]: f === "end"
1350
+ }, Te, E, H, x == null ? void 0 : x.className), _e = Object.assign(Object.assign({}, x == null ? void 0 : x.style), G), Me = N(O == null ? void 0 : O.icon, (n = x == null ? void 0 : x.classNames) === null || n === void 0 ? void 0 : n.icon), Ge = Object.assign(Object.assign({}, (C == null ? void 0 : C.icon) || {}), ((a = x == null ? void 0 : x.styles) === null || a === void 0 ? void 0 : a.icon) || {}), Fe = S && !A ? /* @__PURE__ */ s.createElement(Be, {
1351
+ prefixCls: v,
1349
1352
  className: Me,
1350
1353
  style: Ge
1351
- }, S) : typeof l == "object" && l.icon ? /* @__PURE__ */ s.createElement(Be, {
1352
- prefixCls: p,
1354
+ }, S) : l && typeof l == "object" && l.icon ? /* @__PURE__ */ s.createElement(Be, {
1355
+ prefixCls: v,
1353
1356
  className: Me,
1354
1357
  style: Ge
1355
1358
  }, l.icon) : /* @__PURE__ */ s.createElement(qr, {
1356
1359
  existIcon: !!S,
1357
- prefixCls: p,
1360
+ prefixCls: v,
1358
1361
  loading: A,
1359
1362
  mount: ge.current
1360
- }), Ve = B || B === 0 ? Wr(B, Ie && ue) : null;
1363
+ }), Ve = B || B === 0 ? Wr(B, we && ue) : null;
1361
1364
  if (fe.href !== void 0)
1362
1365
  return Ne(/* @__PURE__ */ s.createElement("a", Object.assign({}, fe, {
1363
1366
  className: N(Ae, {
1364
- [`${p}-disabled`]: W
1367
+ [`${v}-disabled`]: W
1365
1368
  }),
1366
1369
  href: W ? void 0 : fe.href,
1367
1370
  style: _e,
1368
1371
  onClick: De,
1369
- ref: we,
1372
+ ref: Ie,
1370
1373
  tabIndex: W ? -1 : 0
1371
1374
  }), Fe, Ve));
1372
1375
  let me = /* @__PURE__ */ s.createElement("button", Object.assign({}, F, {
1373
- type: U,
1376
+ type: J,
1374
1377
  className: Ae,
1375
1378
  style: _e,
1376
1379
  onClick: De,
1377
1380
  disabled: W,
1378
- ref: we
1379
- }), Fe, Ve, Te && /* @__PURE__ */ s.createElement(wt, {
1380
- prefixCls: p
1381
+ ref: Ie
1382
+ }), Fe, Ve, Te && /* @__PURE__ */ s.createElement(It, {
1383
+ prefixCls: v
1381
1384
  }));
1382
1385
  return re(R) || (me = /* @__PURE__ */ s.createElement(Dr, {
1383
1386
  component: "Button",
1384
1387
  disabled: A
1385
1388
  }, me)), Ne(me);
1386
- }), Re = zt;
1389
+ }), Re = Lt;
1387
1390
  Re.Group = Fr;
1388
1391
  Re.__ANT_BUTTON = !0;
1389
1392
  process.env.NODE_ENV !== "production" && (Re.displayName = "Button");