@gobolt/genesis 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-c395a1c4.js +204 -0
  3. package/dist/CheckOutlined-52d9ac25.js +29 -0
  4. package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
  5. package/dist/CloseOutlined-14b8bba1.js +16 -0
  6. package/dist/Compact-c39ed20d.js +179 -0
  7. package/dist/ContextIsolator-b09b2c52.js +20 -0
  8. package/dist/DownOutlined-64a4732a.js +206 -0
  9. package/dist/EllipsisOutlined-60122660.js +1115 -0
  10. package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
  11. package/dist/InfoCircleFilled-c5f90c20.js +16 -0
  12. package/dist/Overflow-a570fa69.js +361 -0
  13. package/dist/RightOutlined-83515eb4.js +16 -0
  14. package/dist/SearchOutlined-a9014e08.js +16 -0
  15. package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
  16. package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
  17. package/dist/collapse-345bc884.js +20 -0
  18. package/dist/compact-item-b8f85aa6.js +75 -0
  19. package/dist/components/Badge/Badge.d.ts +6 -0
  20. package/dist/components/Badge/Badge.js +102 -0
  21. package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
  22. package/dist/components/Badge/__tests__/Badge.test.js +72 -0
  23. package/dist/components/Badge/icons/ASN.d.ts +2 -0
  24. package/dist/components/Badge/icons/ASN.js +23 -0
  25. package/dist/components/Badge/icons/Appointment.d.ts +2 -0
  26. package/dist/components/Badge/icons/Appointment.js +23 -0
  27. package/dist/components/Badge/icons/Inventory.d.ts +2 -0
  28. package/dist/components/Badge/icons/Inventory.js +23 -0
  29. package/dist/components/Badge/icons/Parcel.d.ts +2 -0
  30. package/dist/components/Badge/icons/Parcel.js +23 -0
  31. package/dist/components/Badge/icons/Product.d.ts +2 -0
  32. package/dist/components/Badge/icons/Product.js +23 -0
  33. package/dist/components/Badge/icons/Route.d.ts +2 -0
  34. package/dist/components/Badge/icons/Route.js +23 -0
  35. package/dist/components/Badge/icons/Shipment.d.ts +2 -0
  36. package/dist/components/Badge/icons/Shipment.js +23 -0
  37. package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
  38. package/dist/components/Badge/icons/ShoppingCart.js +23 -0
  39. package/dist/components/Badge/icons/System.d.ts +2 -0
  40. package/dist/components/Badge/icons/System.js +23 -0
  41. package/dist/components/Badge/index.d.ts +2 -0
  42. package/dist/components/Badge/index.js +23 -0
  43. package/dist/components/Badge/styles.d.ts +3 -0
  44. package/dist/components/Badge/styles.js +35 -0
  45. package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
  46. package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
  47. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
  48. package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
  49. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
  50. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
  51. package/dist/components/Breadcrumb/index.d.ts +3 -0
  52. package/dist/components/Breadcrumb/index.js +27 -0
  53. package/dist/components/Breadcrumb/styles.d.ts +23 -0
  54. package/dist/components/Breadcrumb/styles.js +2457 -0
  55. package/dist/components/Button/Button.js +42 -0
  56. package/dist/components/Button/__tests__/Button.test.js +61 -0
  57. package/dist/components/Button/index.js +22 -0
  58. package/dist/components/{atoms/button → Button}/styles.js +30 -19
  59. package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
  60. package/dist/components/Checkbox/Checkbox.js +70 -0
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
  62. package/dist/components/Checkbox/index.js +49 -0
  63. package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
  64. package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
  65. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
  66. package/dist/components/ErrorBoundaryFallback/index.js +51 -0
  67. package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
  68. package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
  69. package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
  70. package/dist/components/Form/Form.js +49 -0
  71. package/dist/components/Form/__stories__/FormStory.js +130 -0
  72. package/dist/components/Form/index.js +48 -0
  73. package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
  74. package/dist/components/Input/Input.js +42 -0
  75. package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
  76. package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
  77. package/dist/components/Input/__tests__/Input.test.js +69 -0
  78. package/dist/components/Input/index.js +31 -0
  79. package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
  80. package/dist/components/Input/styles.js +542 -0
  81. package/dist/components/Message/Message.d.ts +13 -0
  82. package/dist/components/Message/Message.js +105 -0
  83. package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
  84. package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
  85. package/dist/components/Message/__tests__/Message.test.js +88 -0
  86. package/dist/components/Message/index.d.ts +2 -0
  87. package/dist/components/Message/index.js +50 -0
  88. package/dist/components/Message/styles.d.ts +5 -0
  89. package/dist/components/Message/styles.js +35 -0
  90. package/dist/components/Notification/Notification.d.ts +16 -0
  91. package/dist/components/Notification/Notification.js +1436 -0
  92. package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
  93. package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
  94. package/dist/components/Notification/__tests__/Notification.test.js +76 -0
  95. package/dist/components/Notification/index.d.ts +2 -0
  96. package/dist/components/Notification/index.js +61 -0
  97. package/dist/components/Notification/styles.d.ts +6 -0
  98. package/dist/components/Notification/styles.js +49 -0
  99. package/dist/components/Radio/Radio.d.ts +14 -0
  100. package/dist/components/Radio/Radio.js +114 -0
  101. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  102. package/dist/components/Radio/RadioGroup.js +86 -0
  103. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
  104. package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
  105. package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
  106. package/dist/components/Radio/index.d.ts +2 -0
  107. package/dist/components/Radio/index.js +58 -0
  108. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  109. package/dist/components/Radio/states/RadioChecked.js +18 -0
  110. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  111. package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
  112. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  113. package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
  114. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  115. package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
  116. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  117. package/dist/components/Radio/states/RadioUnchecked.js +15 -0
  118. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  119. package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
  120. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  121. package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
  122. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  123. package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
  124. package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
  125. package/dist/components/Select/Select.js +48 -0
  126. package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
  127. package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
  128. package/dist/components/Select/__tests__/Select.test.js +101 -0
  129. package/dist/components/Select/index.js +30 -0
  130. package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
  131. package/dist/components/Select/styles.js +3723 -0
  132. package/dist/components/Toast/Toast.d.ts +14 -0
  133. package/dist/components/Toast/Toast.js +48 -0
  134. package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
  135. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
  136. package/dist/components/Toast/__tests__/Toast.test.js +63 -0
  137. package/dist/components/Toast/index.d.ts +2 -0
  138. package/dist/components/Toast/index.js +48 -0
  139. package/dist/components/Toast/styles.d.ts +5 -0
  140. package/dist/components/Toast/styles.js +39 -0
  141. package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
  142. package/dist/components/Typography/Typography.js +48 -0
  143. package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
  144. package/dist/components/Typography/__tests__/Typography.test.js +60 -0
  145. package/dist/components/Typography/index.js +48 -0
  146. package/dist/components/Typography/styles.d.ts +7 -0
  147. package/dist/components/Typography/styles.js +55 -0
  148. package/dist/components/index.d.ts +18 -14
  149. package/dist/components/index.js +70 -14
  150. package/dist/constants/index.d.ts +104 -0
  151. package/dist/constants/index.js +41 -7
  152. package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
  153. package/dist/genesis/GenesisThemeBreakdown.js +69 -22
  154. package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
  155. package/dist/genesis/GenesisThemeDemo.js +53 -4
  156. package/dist/genesis/styles.d.ts +2 -6
  157. package/dist/genesis/styles.js +1144 -2210
  158. package/dist/index-0a886e53.js +100 -0
  159. package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
  160. package/dist/index-1a33c134.js +1389 -0
  161. package/dist/index-4003d75b.js +3748 -0
  162. package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
  163. package/dist/index-89035ea5.js +3242 -0
  164. package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
  165. package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
  166. package/dist/index.d.ts +1 -0
  167. package/dist/index.js +77 -18
  168. package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
  169. package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
  170. package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
  171. package/dist/presets-83ccb923.js +787 -0
  172. package/dist/providers/GenesisProvider.d.ts +5 -0
  173. package/dist/providers/GenesisProvider.js +59 -5
  174. package/dist/providers/ThemeProvider.d.ts +2 -1
  175. package/dist/providers/ThemeProvider.js +16 -11
  176. package/dist/providers/ToastProvider.d.ts +6 -0
  177. package/dist/providers/ToastProvider.js +49 -0
  178. package/dist/providers/ToastWrapper.d.ts +7 -0
  179. package/dist/providers/ToastWrapper.js +56 -0
  180. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
  181. package/dist/providers/index.d.ts +3 -2
  182. package/dist/providers/index.js +51 -4
  183. package/dist/setup-aaca7b6f.js +21158 -0
  184. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
  185. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
  186. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
  187. package/dist/styles/design-tokens/variables.d.ts +7 -7
  188. package/dist/styles/design-tokens/variables.js +48 -48
  189. package/dist/styles/global-styles.js +4 -3
  190. package/dist/styles/theme/genesis-theme.d.ts +3 -0
  191. package/dist/styles/theme/genesis-theme.js +402 -263
  192. package/dist/styles/theme/global-styles.js +4 -3
  193. package/dist/styles/theme/index.js +5 -4
  194. package/dist/test/setup.js +46 -2
  195. package/dist/useVariants-a0d64298.js +30 -0
  196. package/dist/utils/isAllEnglishString.js +2 -1
  197. package/package.json +34 -28
  198. package/dist/AntdIcon-Bsnbyy6g.js +0 -200
  199. package/dist/CheckOutlined-DAynWe12.js +0 -527
  200. package/dist/Compact-CJBo3f0u.js +0 -185
  201. package/dist/ContextIsolator-CGkdKtc3.js +0 -20
  202. package/dist/Form-Cylpi4M4.js +0 -1815
  203. package/dist/Overflow-CP1M4Z0s.js +0 -369
  204. package/dist/compact-item-DH13cl8A.js +0 -61
  205. package/dist/components/atoms/button/Button.js +0 -27
  206. package/dist/components/atoms/button/index.js +0 -4
  207. package/dist/components/atoms/checkbox/Checkbox.js +0 -13
  208. package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
  209. package/dist/components/atoms/checkbox/index.js +0 -4
  210. package/dist/components/atoms/index.d.ts +0 -1
  211. package/dist/components/atoms/index.js +0 -3
  212. package/dist/components/atoms/input/Input.js +0 -12
  213. package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
  214. package/dist/components/atoms/input/index.js +0 -4
  215. package/dist/components/atoms/input/styles.js +0 -415
  216. package/dist/components/atoms/select/Select.js +0 -24
  217. package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
  218. package/dist/components/atoms/select/index.js +0 -4
  219. package/dist/components/atoms/select/styles.js +0 -3868
  220. package/dist/components/atoms/typography/Typography.js +0 -44
  221. package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
  222. package/dist/components/atoms/typography/index.js +0 -4
  223. package/dist/components/atoms/typography/styles.d.ts +0 -11
  224. package/dist/components/atoms/typography/styles.js +0 -28
  225. package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
  226. package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
  227. package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
  228. package/dist/components/molecules/form/Form.js +0 -7
  229. package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
  230. package/dist/components/molecules/form/index.js +0 -4
  231. package/dist/index-3MWkSVA1.js +0 -96
  232. package/dist/index-BPtFqhcp.js +0 -19110
  233. package/dist/index-BWys7dkb.js +0 -4462
  234. package/dist/index-VDH3iLaC.js +0 -884
  235. package/dist/setup-CMYVZCPF.js +0 -33883
  236. package/dist/useVariants-CEpw6Ww6.js +0 -29
  237. /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
  238. /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
  239. /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
  240. /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
  241. /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
  242. /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
  243. /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
  244. /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
  245. /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
  246. /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
  247. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
  248. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
  249. /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
  250. /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
  251. /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
  252. /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
  253. /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
  254. /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
  255. /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
  256. /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
  257. /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
  258. /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
@@ -0,0 +1,2457 @@
1
+ import { d as De } from "../../styled-components.browser.esm-02f500bc.js";
2
+ import * as l from "react";
3
+ import { useContext as Ie, useState as ye, useEffect as pe, useRef as Me, createContext as nt, forwardRef as Re, useImperativeHandle as rt, useMemo as it } from "react";
4
+ import { a as _e, c as P, F as xe } from "../../presets-83ccb923.js";
5
+ import { o as Q, t as oe, u as lt } from "../../isVisible-729780f5.js";
6
+ import { p as Ae } from "../../pickAttrs-00ba4687.js";
7
+ import { c as ee } from "../../reactNode-f4391605.js";
8
+ import { g as te, p as v, C as Z, N as at, k as st, j as ct, o as dt, O as ut, m as ne, E as we, r as he, G as mt, t as ae, b as Le, H as $e, B as gt } from "../../index-4003d75b.js";
9
+ import { i as Oe, g as pt, D as bt } from "../../DownOutlined-64a4732a.js";
10
+ import { R as fe } from "../../RightOutlined-83515eb4.js";
11
+ import { D as $t, M as ft, u as vt, S as ht, E as Ct, a as St, b as It, c as yt } from "../../EllipsisOutlined-60122660.js";
12
+ import { u as ke, b as xt, z as wt } from "../../index-1a33c134.js";
13
+ import { T as Ot, i as We, g as Bt, a as Et, b as Nt, c as Tt } from "../../index-0b9ee239.js";
14
+ import { u as Xe } from "../../context-3b8a39af.js";
15
+ import { A as Ve } from "../../AntdIcon-c395a1c4.js";
16
+ import { C as jt } from "../../ContextIsolator-b09b2c52.js";
17
+ import { g as zt } from "../../collapse-345bc884.js";
18
+ import { i as re, s as Pt, a as Ht, b as Dt, c as Mt } from "../../Overflow-a570fa69.js";
19
+ import "react-dom";
20
+ import "../../index-8c8d2d0c.js";
21
+ import "../../presetColors-ccf8cb4c.js";
22
+ import "../../Compact-c39ed20d.js";
23
+ const Rt = (e) => typeof e != "object" && typeof e != "function" || e === null, _t = Rt;
24
+ var At = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" };
25
+ const Lt = At;
26
+ var kt = function(o, t) {
27
+ return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
28
+ ref: t,
29
+ icon: Lt
30
+ }));
31
+ }, qe = /* @__PURE__ */ l.forwardRef(kt);
32
+ process.env.NODE_ENV !== "production" && (qe.displayName = "BarsOutlined");
33
+ const Wt = qe;
34
+ var Xt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
35
+ const Vt = Xt;
36
+ var qt = function(o, t) {
37
+ return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
38
+ ref: t,
39
+ icon: Vt
40
+ }));
41
+ }, Fe = /* @__PURE__ */ l.forwardRef(qt);
42
+ process.env.NODE_ENV !== "production" && (Fe.displayName = "LeftOutlined");
43
+ const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
44
+ siderHook: {
45
+ addSider: () => null,
46
+ removeSider: () => null
47
+ }
48
+ }), Gt = (e) => {
49
+ const {
50
+ antCls: o,
51
+ // .ant
52
+ componentCls: t,
53
+ // .ant-layout
54
+ colorText: n,
55
+ footerBg: r,
56
+ headerHeight: a,
57
+ headerPadding: i,
58
+ headerColor: c,
59
+ footerPadding: s,
60
+ fontSize: g,
61
+ bodyBg: p,
62
+ headerBg: S
63
+ } = e;
64
+ return {
65
+ [t]: {
66
+ display: "flex",
67
+ flex: "auto",
68
+ flexDirection: "column",
69
+ /* fix firefox can't set height smaller than content on flex item */
70
+ minHeight: 0,
71
+ background: p,
72
+ "&, *": {
73
+ boxSizing: "border-box"
74
+ },
75
+ [`&${t}-has-sider`]: {
76
+ flexDirection: "row",
77
+ [`> ${t}, > ${t}-content`]: {
78
+ // https://segmentfault.com/a/1190000019498300
79
+ width: 0
80
+ }
81
+ },
82
+ [`${t}-header, &${t}-footer`]: {
83
+ flex: "0 0 auto"
84
+ },
85
+ // RTL
86
+ "&-rtl": {
87
+ direction: "rtl"
88
+ }
89
+ },
90
+ // ==================== Header ====================
91
+ [`${t}-header`]: {
92
+ height: a,
93
+ padding: i,
94
+ color: c,
95
+ lineHeight: v(a),
96
+ background: S,
97
+ // Other components/menu/style/index.less line:686
98
+ // Integration with header element so menu items have the same height
99
+ [`${o}-menu`]: {
100
+ lineHeight: "inherit"
101
+ }
102
+ },
103
+ // ==================== Footer ====================
104
+ [`${t}-footer`]: {
105
+ padding: s,
106
+ color: n,
107
+ fontSize: g,
108
+ background: r
109
+ },
110
+ // =================== Content ====================
111
+ [`${t}-content`]: {
112
+ flex: "auto",
113
+ color: n,
114
+ // fix firefox can't set height smaller than content on flex item
115
+ minHeight: 0
116
+ }
117
+ };
118
+ }, Ge = (e) => {
119
+ const {
120
+ colorBgLayout: o,
121
+ controlHeight: t,
122
+ controlHeightLG: n,
123
+ colorText: r,
124
+ controlHeightSM: a,
125
+ marginXXS: i,
126
+ colorTextLightSolid: c,
127
+ colorBgContainer: s
128
+ } = e, g = n * 1.25;
129
+ return {
130
+ // Deprecated
131
+ colorBgHeader: "#001529",
132
+ colorBgBody: o,
133
+ colorBgTrigger: "#002140",
134
+ bodyBg: o,
135
+ headerBg: "#001529",
136
+ headerHeight: t * 2,
137
+ headerPadding: `0 ${g}px`,
138
+ headerColor: r,
139
+ footerPadding: `${a}px ${g}px`,
140
+ footerBg: o,
141
+ siderBg: "#001529",
142
+ triggerHeight: n + i * 2,
143
+ triggerBg: "#002140",
144
+ triggerColor: c,
145
+ zeroTriggerWidth: n,
146
+ zeroTriggerHeight: n,
147
+ lightSiderBg: s,
148
+ lightTriggerBg: s,
149
+ lightTriggerColor: r
150
+ };
151
+ }, Ye = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
152
+ te("Layout", (e) => [Gt(e)], Ge, {
153
+ deprecatedTokens: Ye
154
+ });
155
+ const Yt = (e) => {
156
+ const {
157
+ componentCls: o,
158
+ siderBg: t,
159
+ motionDurationMid: n,
160
+ motionDurationSlow: r,
161
+ antCls: a,
162
+ triggerHeight: i,
163
+ triggerColor: c,
164
+ triggerBg: s,
165
+ headerHeight: g,
166
+ zeroTriggerWidth: p,
167
+ zeroTriggerHeight: S,
168
+ borderRadiusLG: u,
169
+ lightSiderBg: f,
170
+ lightTriggerColor: d,
171
+ lightTriggerBg: m,
172
+ bodyBg: h
173
+ } = e;
174
+ return {
175
+ [o]: {
176
+ position: "relative",
177
+ // fix firefox can't set width smaller than content on flex item
178
+ minWidth: 0,
179
+ background: t,
180
+ transition: `all ${n}, background 0s`,
181
+ "&-has-trigger": {
182
+ paddingBottom: i
183
+ },
184
+ "&-right": {
185
+ order: 1
186
+ },
187
+ [`${o}-children`]: {
188
+ height: "100%",
189
+ // Hack for fixing margin collapse bug
190
+ // https://github.com/ant-design/ant-design/issues/7967
191
+ // solution from https://stackoverflow.com/a/33132624/3040605
192
+ marginTop: -0.1,
193
+ paddingTop: 0.1,
194
+ [`${a}-menu${a}-menu-inline-collapsed`]: {
195
+ width: "auto"
196
+ }
197
+ },
198
+ [`${o}-trigger`]: {
199
+ position: "fixed",
200
+ bottom: 0,
201
+ zIndex: 1,
202
+ height: i,
203
+ color: c,
204
+ lineHeight: v(i),
205
+ textAlign: "center",
206
+ background: s,
207
+ cursor: "pointer",
208
+ transition: `all ${n}`
209
+ },
210
+ "&-zero-width": {
211
+ "> *": {
212
+ overflow: "hidden"
213
+ },
214
+ "&-trigger": {
215
+ position: "absolute",
216
+ top: g,
217
+ insetInlineEnd: e.calc(p).mul(-1).equal(),
218
+ zIndex: 1,
219
+ width: p,
220
+ height: S,
221
+ color: c,
222
+ fontSize: e.fontSizeXL,
223
+ display: "flex",
224
+ alignItems: "center",
225
+ justifyContent: "center",
226
+ background: t,
227
+ borderRadius: `0 ${v(u)} ${v(u)} 0`,
228
+ cursor: "pointer",
229
+ transition: `background ${r} ease`,
230
+ "&::after": {
231
+ position: "absolute",
232
+ inset: 0,
233
+ background: "transparent",
234
+ transition: `all ${r}`,
235
+ content: '""'
236
+ },
237
+ "&:hover::after": {
238
+ background: "rgba(255, 255, 255, 0.2)"
239
+ },
240
+ "&-right": {
241
+ insetInlineStart: e.calc(p).mul(-1).equal(),
242
+ borderRadius: `${v(u)} 0 0 ${v(u)}`
243
+ }
244
+ }
245
+ },
246
+ // Light
247
+ "&-light": {
248
+ background: f,
249
+ [`${o}-trigger`]: {
250
+ color: d,
251
+ background: m
252
+ },
253
+ [`${o}-zero-width-trigger`]: {
254
+ color: d,
255
+ background: m,
256
+ border: `1px solid ${h}`,
257
+ // Safe to modify to any other color
258
+ borderInlineStart: 0
259
+ }
260
+ }
261
+ }
262
+ };
263
+ }, Ut = te(["Layout", "Sider"], (e) => [Yt(e)], Ge, {
264
+ deprecatedTokens: Ye
265
+ });
266
+ var Kt = globalThis && globalThis.__rest || function(e, o) {
267
+ var t = {};
268
+ for (var n in e)
269
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
270
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
271
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
272
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
273
+ return t;
274
+ };
275
+ const Ee = {
276
+ xs: "479.98px",
277
+ sm: "575.98px",
278
+ md: "767.98px",
279
+ lg: "991.98px",
280
+ xl: "1199.98px",
281
+ xxl: "1599.98px"
282
+ }, Zt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Ce = /* @__PURE__ */ l.createContext({}), Jt = (() => {
283
+ let e = 0;
284
+ return function() {
285
+ let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
286
+ return e += 1, `${o}${e}`;
287
+ };
288
+ })(), Qt = /* @__PURE__ */ l.forwardRef((e, o) => {
289
+ const {
290
+ prefixCls: t,
291
+ className: n,
292
+ trigger: r,
293
+ children: a,
294
+ defaultCollapsed: i = !1,
295
+ theme: c = "dark",
296
+ style: s = {},
297
+ collapsible: g = !1,
298
+ reverseArrow: p = !1,
299
+ width: S = 200,
300
+ collapsedWidth: u = 80,
301
+ zeroWidthTriggerStyle: f,
302
+ breakpoint: d,
303
+ onCollapse: m,
304
+ onBreakpoint: h
305
+ } = e, I = Kt(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
306
+ siderHook: B
307
+ } = Ie(Ft), [x, $] = ye("collapsed" in e ? e.collapsed : i), [E, N] = ye(!1);
308
+ pe(() => {
309
+ "collapsed" in e && $(e.collapsed);
310
+ }, [e.collapsed]);
311
+ const _ = (z, A) => {
312
+ "collapsed" in e || $(z), m == null || m(z, A);
313
+ }, {
314
+ getPrefixCls: w,
315
+ direction: C
316
+ } = Ie(Z), b = w("layout-sider", t), [T, D, M] = Ut(b), y = Me(null);
317
+ y.current = (z) => {
318
+ N(z.matches), h == null || h(z.matches), x !== z.matches && _(z.matches, "responsive");
319
+ }, pe(() => {
320
+ function z(Y) {
321
+ return y.current(Y);
322
+ }
323
+ let A;
324
+ if (typeof window < "u") {
325
+ const {
326
+ matchMedia: Y
327
+ } = window;
328
+ if (Y && d && d in Ee) {
329
+ A = Y(`screen and (max-width: ${Ee[d]})`);
330
+ try {
331
+ A.addEventListener("change", z);
332
+ } catch {
333
+ A.addListener(z);
334
+ }
335
+ z(A);
336
+ }
337
+ }
338
+ return () => {
339
+ try {
340
+ A == null || A.removeEventListener("change", z);
341
+ } catch {
342
+ A == null || A.removeListener(z);
343
+ }
344
+ };
345
+ }, [d]), pe(() => {
346
+ const z = Jt("ant-sider-");
347
+ return B.addSider(z), () => B.removeSider(z);
348
+ }, []);
349
+ const H = () => {
350
+ _(!x, "clickTrigger");
351
+ }, L = Q(I, ["collapsed"]), k = x ? u : S, R = Zt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
352
+ onClick: H,
353
+ className: P(`${b}-zero-width-trigger`, `${b}-zero-width-trigger-${p ? "right" : "left"}`),
354
+ style: f
355
+ }, r || /* @__PURE__ */ l.createElement(Wt, null)) : null, V = C === "rtl" == !p, X = {
356
+ expanded: V ? /* @__PURE__ */ l.createElement(fe, null) : /* @__PURE__ */ l.createElement(Be, null),
357
+ collapsed: V ? /* @__PURE__ */ l.createElement(Be, null) : /* @__PURE__ */ l.createElement(fe, null)
358
+ }[x ? "collapsed" : "expanded"], q = r !== null ? W || /* @__PURE__ */ l.createElement("div", {
359
+ className: `${b}-trigger`,
360
+ onClick: H,
361
+ style: {
362
+ width: R
363
+ }
364
+ }, r || X) : null, G = Object.assign(Object.assign({}, s), {
365
+ flex: `0 0 ${R}`,
366
+ maxWidth: R,
367
+ minWidth: R,
368
+ width: R
369
+ }), de = P(b, `${b}-${c}`, {
370
+ [`${b}-collapsed`]: !!x,
371
+ [`${b}-has-trigger`]: g && r !== null && !W,
372
+ [`${b}-below`]: !!E,
373
+ [`${b}-zero-width`]: parseFloat(R) === 0
374
+ }, n, D, M), ue = l.useMemo(() => ({
375
+ siderCollapsed: x
376
+ }), [x]);
377
+ return T(/* @__PURE__ */ l.createElement(Ce.Provider, {
378
+ value: ue
379
+ }, /* @__PURE__ */ l.createElement("aside", Object.assign({
380
+ className: de
381
+ }, L, {
382
+ style: G,
383
+ ref: o
384
+ }), /* @__PURE__ */ l.createElement("div", {
385
+ className: `${b}-children`
386
+ }, a), g || E && W ? q : null)));
387
+ });
388
+ process.env.NODE_ENV !== "production" && (Qt.displayName = "Sider");
389
+ const eo = /* @__PURE__ */ nt({
390
+ prefixCls: "",
391
+ firstLevel: !0,
392
+ inlineCollapsed: !1
393
+ }), ie = eo;
394
+ var to = globalThis && globalThis.__rest || function(e, o) {
395
+ var t = {};
396
+ for (var n in e)
397
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
398
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
399
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
400
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
401
+ return t;
402
+ };
403
+ const oo = (e) => {
404
+ const {
405
+ prefixCls: o,
406
+ className: t,
407
+ dashed: n
408
+ } = e, r = to(e, ["prefixCls", "className", "dashed"]), {
409
+ getPrefixCls: a
410
+ } = l.useContext(Z), i = a("menu", o), c = P({
411
+ [`${i}-item-divider-dashed`]: !!n
412
+ }, t);
413
+ return /* @__PURE__ */ l.createElement($t, Object.assign({
414
+ className: c
415
+ }, r));
416
+ }, Ue = oo, no = (e) => {
417
+ var o;
418
+ const {
419
+ className: t,
420
+ children: n,
421
+ icon: r,
422
+ title: a,
423
+ danger: i,
424
+ extra: c
425
+ } = e, {
426
+ prefixCls: s,
427
+ firstLevel: g,
428
+ direction: p,
429
+ disableMenuItemTitleTooltip: S,
430
+ inlineCollapsed: u
431
+ } = l.useContext(ie), f = (x) => {
432
+ const $ = n == null ? void 0 : n[0], E = /* @__PURE__ */ l.createElement("span", {
433
+ className: P(`${s}-title-content`, {
434
+ [`${s}-title-content-with-extra`]: !!c || c === 0
435
+ })
436
+ }, n);
437
+ return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && x && g && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
438
+ className: `${s}-inline-collapsed-noicon`
439
+ }, $.charAt(0)) : E;
440
+ }, {
441
+ siderCollapsed: d
442
+ } = l.useContext(Ce);
443
+ let m = a;
444
+ typeof a > "u" ? m = g ? n : "" : a === !1 && (m = "");
445
+ const h = {
446
+ title: m
447
+ };
448
+ !d && !u && (h.title = null, h.open = !1);
449
+ const I = oe(n).length;
450
+ let B = /* @__PURE__ */ l.createElement(ft, Object.assign({}, Q(e, ["title", "icon", "danger"]), {
451
+ className: P({
452
+ [`${s}-item-danger`]: i,
453
+ [`${s}-item-only-child`]: (r ? I + 1 : I) === 1
454
+ }, t),
455
+ title: typeof a == "string" ? a : void 0
456
+ }), ee(r, {
457
+ className: P(/* @__PURE__ */ l.isValidElement(r) ? (o = r.props) === null || o === void 0 ? void 0 : o.className : "", `${s}-item-icon`)
458
+ }), f(u));
459
+ return S || (B = /* @__PURE__ */ l.createElement(Ot, Object.assign({}, h, {
460
+ placement: p === "rtl" ? "left" : "right",
461
+ classNames: {
462
+ root: `${s}-inline-collapsed-tooltip`
463
+ }
464
+ }), B)), B;
465
+ }, Ke = no;
466
+ var ro = globalThis && globalThis.__rest || function(e, o) {
467
+ var t = {};
468
+ for (var n in e)
469
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
470
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
471
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
472
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
473
+ return t;
474
+ };
475
+ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forwardRef((e, o) => {
476
+ const {
477
+ children: t
478
+ } = e, n = ro(e, ["children"]), r = l.useContext(le), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
479
+ r,
480
+ n.prefixCls,
481
+ // restProps.expandIcon, Not mark as deps since this is a ReactNode
482
+ n.mode,
483
+ n.selectable,
484
+ n.rootClassName
485
+ // restProps.validator, Not mark as deps since this is a function
486
+ ]), i = at(t), c = st(o, i ? ct(t) : null);
487
+ return /* @__PURE__ */ l.createElement(le.Provider, {
488
+ value: a
489
+ }, /* @__PURE__ */ l.createElement(jt, {
490
+ space: !0
491
+ }, i ? /* @__PURE__ */ l.cloneElement(t, {
492
+ ref: c
493
+ }) : t));
494
+ }), lo = (e) => {
495
+ const {
496
+ componentCls: o,
497
+ motionDurationSlow: t,
498
+ horizontalLineHeight: n,
499
+ colorSplit: r,
500
+ lineWidth: a,
501
+ lineType: i,
502
+ itemPaddingInline: c
503
+ } = e;
504
+ return {
505
+ [`${o}-horizontal`]: {
506
+ lineHeight: n,
507
+ border: 0,
508
+ borderBottom: `${v(a)} ${i} ${r}`,
509
+ boxShadow: "none",
510
+ "&::after": {
511
+ display: "block",
512
+ clear: "both",
513
+ height: 0,
514
+ content: '"\\20"'
515
+ },
516
+ // ======================= Item =======================
517
+ [`${o}-item, ${o}-submenu`]: {
518
+ position: "relative",
519
+ display: "inline-block",
520
+ verticalAlign: "bottom",
521
+ paddingInline: c
522
+ },
523
+ [`> ${o}-item:hover,
524
+ > ${o}-item-active,
525
+ > ${o}-submenu ${o}-submenu-title:hover`]: {
526
+ backgroundColor: "transparent"
527
+ },
528
+ [`${o}-item, ${o}-submenu-title`]: {
529
+ transition: [`border-color ${t}`, `background ${t}`].join(",")
530
+ },
531
+ // ===================== Sub Menu =====================
532
+ [`${o}-submenu-arrow`]: {
533
+ display: "none"
534
+ }
535
+ }
536
+ };
537
+ }, ao = lo, so = (e) => {
538
+ let {
539
+ componentCls: o,
540
+ menuArrowOffset: t,
541
+ calc: n
542
+ } = e;
543
+ return {
544
+ [`${o}-rtl`]: {
545
+ direction: "rtl"
546
+ },
547
+ [`${o}-submenu-rtl`]: {
548
+ transformOrigin: "100% 0"
549
+ },
550
+ // Vertical Arrow
551
+ [`${o}-rtl${o}-vertical,
552
+ ${o}-submenu-rtl ${o}-vertical`]: {
553
+ [`${o}-submenu-arrow`]: {
554
+ "&::before": {
555
+ transform: `rotate(-45deg) translateY(${v(n(t).mul(-1).equal())})`
556
+ },
557
+ "&::after": {
558
+ transform: `rotate(45deg) translateY(${v(t)})`
559
+ }
560
+ }
561
+ }
562
+ };
563
+ }, co = so, Ne = (e) => Object.assign({}, dt(e)), uo = (e, o) => {
564
+ const {
565
+ componentCls: t,
566
+ itemColor: n,
567
+ itemSelectedColor: r,
568
+ subMenuItemSelectedColor: a,
569
+ groupTitleColor: i,
570
+ itemBg: c,
571
+ subMenuItemBg: s,
572
+ itemSelectedBg: g,
573
+ activeBarHeight: p,
574
+ activeBarWidth: S,
575
+ activeBarBorderWidth: u,
576
+ motionDurationSlow: f,
577
+ motionEaseInOut: d,
578
+ motionEaseOut: m,
579
+ itemPaddingInline: h,
580
+ motionDurationMid: I,
581
+ itemHoverColor: B,
582
+ lineType: x,
583
+ colorSplit: $,
584
+ // Disabled
585
+ itemDisabledColor: E,
586
+ // Danger
587
+ dangerItemColor: N,
588
+ dangerItemHoverColor: _,
589
+ dangerItemSelectedColor: w,
590
+ dangerItemActiveBg: C,
591
+ dangerItemSelectedBg: b,
592
+ // Bg
593
+ popupBg: T,
594
+ itemHoverBg: D,
595
+ itemActiveBg: M,
596
+ menuSubMenuBg: y,
597
+ // Horizontal
598
+ horizontalItemSelectedColor: H,
599
+ horizontalItemSelectedBg: L,
600
+ horizontalItemBorderRadius: k,
601
+ horizontalItemHoverBg: R
602
+ } = e;
603
+ return {
604
+ [`${t}-${o}, ${t}-${o} > ${t}`]: {
605
+ color: n,
606
+ background: c,
607
+ [`&${t}-root:focus-visible`]: Object.assign({}, Ne(e)),
608
+ // ======================== Item ========================
609
+ [`${t}-item`]: {
610
+ "&-group-title, &-extra": {
611
+ color: i
612
+ }
613
+ },
614
+ [`${t}-submenu-selected > ${t}-submenu-title`]: {
615
+ color: a
616
+ },
617
+ [`${t}-item, ${t}-submenu-title`]: {
618
+ color: n,
619
+ [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, Ne(e))
620
+ },
621
+ // Disabled
622
+ [`${t}-item-disabled, ${t}-submenu-disabled`]: {
623
+ color: `${E} !important`
624
+ },
625
+ // Hover
626
+ [`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
627
+ [`&:hover, > ${t}-submenu-title:hover`]: {
628
+ color: B
629
+ }
630
+ },
631
+ [`&:not(${t}-horizontal)`]: {
632
+ [`${t}-item:not(${t}-item-selected)`]: {
633
+ "&:hover": {
634
+ backgroundColor: D
635
+ },
636
+ "&:active": {
637
+ backgroundColor: M
638
+ }
639
+ },
640
+ [`${t}-submenu-title`]: {
641
+ "&:hover": {
642
+ backgroundColor: D
643
+ },
644
+ "&:active": {
645
+ backgroundColor: M
646
+ }
647
+ }
648
+ },
649
+ // Danger - only Item has
650
+ [`${t}-item-danger`]: {
651
+ color: N,
652
+ [`&${t}-item:hover`]: {
653
+ [`&:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
654
+ color: _
655
+ }
656
+ },
657
+ [`&${t}-item:active`]: {
658
+ background: C
659
+ }
660
+ },
661
+ [`${t}-item a`]: {
662
+ "&, &:hover": {
663
+ color: "inherit"
664
+ }
665
+ },
666
+ [`${t}-item-selected`]: {
667
+ color: r,
668
+ // Danger
669
+ [`&${t}-item-danger`]: {
670
+ color: w
671
+ },
672
+ "a, a:hover": {
673
+ color: "inherit"
674
+ }
675
+ },
676
+ [`& ${t}-item-selected`]: {
677
+ backgroundColor: g,
678
+ // Danger
679
+ [`&${t}-item-danger`]: {
680
+ backgroundColor: b
681
+ }
682
+ },
683
+ [`&${t}-submenu > ${t}`]: {
684
+ backgroundColor: y
685
+ },
686
+ // ===== 设置浮层的颜色 =======
687
+ // !dark 模式会被popupBg 会被rest 为 darkPopupBg
688
+ [`&${t}-popup > ${t}`]: {
689
+ backgroundColor: T
690
+ },
691
+ [`&${t}-submenu-popup > ${t}`]: {
692
+ backgroundColor: T
693
+ },
694
+ // ===== 设置浮层的颜色 end =======
695
+ // ====================== Horizontal ======================
696
+ [`&${t}-horizontal`]: Object.assign(Object.assign({}, o === "dark" ? {
697
+ borderBottom: 0
698
+ } : {}), {
699
+ [`> ${t}-item, > ${t}-submenu`]: {
700
+ top: u,
701
+ marginTop: e.calc(u).mul(-1).equal(),
702
+ marginBottom: 0,
703
+ borderRadius: k,
704
+ "&::after": {
705
+ position: "absolute",
706
+ insetInline: h,
707
+ bottom: 0,
708
+ borderBottom: `${v(p)} solid transparent`,
709
+ transition: `border-color ${f} ${d}`,
710
+ content: '""'
711
+ },
712
+ "&:hover, &-active, &-open": {
713
+ background: R,
714
+ "&::after": {
715
+ borderBottomWidth: p,
716
+ borderBottomColor: H
717
+ }
718
+ },
719
+ "&-selected": {
720
+ color: H,
721
+ backgroundColor: L,
722
+ "&:hover": {
723
+ backgroundColor: L
724
+ },
725
+ "&::after": {
726
+ borderBottomWidth: p,
727
+ borderBottomColor: H
728
+ }
729
+ }
730
+ }
731
+ }),
732
+ // ================== Inline & Vertical ===================
733
+ //
734
+ [`&${t}-root`]: {
735
+ [`&${t}-inline, &${t}-vertical`]: {
736
+ borderInlineEnd: `${v(u)} ${x} ${$}`
737
+ }
738
+ },
739
+ // ======================== Inline ========================
740
+ [`&${t}-inline`]: {
741
+ // Sub
742
+ [`${t}-sub${t}-inline`]: {
743
+ background: s
744
+ },
745
+ [`${t}-item`]: {
746
+ position: "relative",
747
+ "&::after": {
748
+ position: "absolute",
749
+ insetBlock: 0,
750
+ insetInlineEnd: 0,
751
+ borderInlineEnd: `${v(S)} solid ${r}`,
752
+ transform: "scaleY(0.0001)",
753
+ opacity: 0,
754
+ transition: [`transform ${I} ${m}`, `opacity ${I} ${m}`].join(","),
755
+ content: '""'
756
+ },
757
+ // Danger
758
+ [`&${t}-item-danger`]: {
759
+ "&::after": {
760
+ borderInlineEndColor: w
761
+ }
762
+ }
763
+ },
764
+ [`${t}-selected, ${t}-item-selected`]: {
765
+ "&::after": {
766
+ transform: "scaleY(1)",
767
+ opacity: 1,
768
+ transition: [`transform ${I} ${d}`, `opacity ${I} ${d}`].join(",")
769
+ }
770
+ }
771
+ }
772
+ }
773
+ };
774
+ }, Te = uo, je = (e) => {
775
+ const {
776
+ componentCls: o,
777
+ itemHeight: t,
778
+ itemMarginInline: n,
779
+ padding: r,
780
+ menuArrowSize: a,
781
+ marginXS: i,
782
+ itemMarginBlock: c,
783
+ itemWidth: s,
784
+ itemPaddingInline: g
785
+ } = e, p = e.calc(a).add(r).add(i).equal();
786
+ return {
787
+ [`${o}-item`]: {
788
+ position: "relative",
789
+ overflow: "hidden"
790
+ },
791
+ [`${o}-item, ${o}-submenu-title`]: {
792
+ height: t,
793
+ lineHeight: v(t),
794
+ paddingInline: g,
795
+ overflow: "hidden",
796
+ textOverflow: "ellipsis",
797
+ marginInline: n,
798
+ marginBlock: c,
799
+ width: s
800
+ },
801
+ [`> ${o}-item,
802
+ > ${o}-submenu > ${o}-submenu-title`]: {
803
+ height: t,
804
+ lineHeight: v(t)
805
+ },
806
+ [`${o}-item-group-list ${o}-submenu-title,
807
+ ${o}-submenu-title`]: {
808
+ paddingInlineEnd: p
809
+ }
810
+ };
811
+ }, mo = (e) => {
812
+ const {
813
+ componentCls: o,
814
+ iconCls: t,
815
+ itemHeight: n,
816
+ colorTextLightSolid: r,
817
+ dropdownWidth: a,
818
+ controlHeightLG: i,
819
+ motionEaseOut: c,
820
+ paddingXL: s,
821
+ itemMarginInline: g,
822
+ fontSizeLG: p,
823
+ motionDurationFast: S,
824
+ motionDurationSlow: u,
825
+ paddingXS: f,
826
+ boxShadowSecondary: d,
827
+ collapsedWidth: m,
828
+ collapsedIconSize: h
829
+ } = e, I = {
830
+ height: n,
831
+ lineHeight: v(n),
832
+ listStylePosition: "inside",
833
+ listStyleType: "disc"
834
+ };
835
+ return [
836
+ {
837
+ [o]: {
838
+ "&-inline, &-vertical": Object.assign({
839
+ [`&${o}-root`]: {
840
+ boxShadow: "none"
841
+ }
842
+ }, je(e))
843
+ },
844
+ [`${o}-submenu-popup`]: {
845
+ [`${o}-vertical`]: Object.assign(Object.assign({}, je(e)), {
846
+ boxShadow: d
847
+ })
848
+ }
849
+ },
850
+ // Vertical only
851
+ {
852
+ [`${o}-submenu-popup ${o}-vertical${o}-sub`]: {
853
+ minWidth: a,
854
+ maxHeight: `calc(100vh - ${v(e.calc(i).mul(2.5).equal())})`,
855
+ padding: "0",
856
+ overflow: "hidden",
857
+ borderInlineEnd: 0,
858
+ // https://github.com/ant-design/ant-design/issues/22244
859
+ // https://github.com/ant-design/ant-design/issues/26812
860
+ "&:not([class*='-active'])": {
861
+ overflowX: "hidden",
862
+ overflowY: "auto"
863
+ }
864
+ }
865
+ },
866
+ // Inline Only
867
+ {
868
+ [`${o}-inline`]: {
869
+ width: "100%",
870
+ // Motion enhance for first level
871
+ [`&${o}-root`]: {
872
+ [`${o}-item, ${o}-submenu-title`]: {
873
+ display: "flex",
874
+ alignItems: "center",
875
+ transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${c}`].join(","),
876
+ [`> ${o}-title-content`]: {
877
+ flex: "auto",
878
+ minWidth: 0,
879
+ overflow: "hidden",
880
+ textOverflow: "ellipsis"
881
+ },
882
+ "> *": {
883
+ flex: "none"
884
+ }
885
+ }
886
+ },
887
+ // >>>>> Sub
888
+ [`${o}-sub${o}-inline`]: {
889
+ padding: 0,
890
+ border: 0,
891
+ borderRadius: 0,
892
+ boxShadow: "none",
893
+ [`& > ${o}-submenu > ${o}-submenu-title`]: I,
894
+ [`& ${o}-item-group-title`]: {
895
+ paddingInlineStart: s
896
+ }
897
+ },
898
+ // >>>>> Item
899
+ [`${o}-item`]: I
900
+ }
901
+ },
902
+ // Inline Collapse Only
903
+ {
904
+ [`${o}-inline-collapsed`]: {
905
+ width: m,
906
+ [`&${o}-root`]: {
907
+ [`${o}-item, ${o}-submenu ${o}-submenu-title`]: {
908
+ [`> ${o}-inline-collapsed-noicon`]: {
909
+ fontSize: p,
910
+ textAlign: "center"
911
+ }
912
+ }
913
+ },
914
+ [`> ${o}-item,
915
+ > ${o}-item-group > ${o}-item-group-list > ${o}-item,
916
+ > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
917
+ > ${o}-submenu > ${o}-submenu-title`]: {
918
+ insetInlineStart: 0,
919
+ paddingInline: `calc(50% - ${v(e.calc(h).div(2).equal())} - ${v(g)})`,
920
+ textOverflow: "clip",
921
+ [`
922
+ ${o}-submenu-arrow,
923
+ ${o}-submenu-expand-icon
924
+ `]: {
925
+ opacity: 0
926
+ },
927
+ [`${o}-item-icon, ${t}`]: {
928
+ margin: 0,
929
+ fontSize: h,
930
+ lineHeight: v(n),
931
+ "+ span": {
932
+ display: "inline-block",
933
+ opacity: 0
934
+ }
935
+ }
936
+ },
937
+ [`${o}-item-icon, ${t}`]: {
938
+ display: "inline-block"
939
+ },
940
+ "&-tooltip": {
941
+ pointerEvents: "none",
942
+ [`${o}-item-icon, ${t}`]: {
943
+ display: "none"
944
+ },
945
+ "a, a:hover": {
946
+ color: r
947
+ }
948
+ },
949
+ [`${o}-item-group-title`]: Object.assign(Object.assign({}, ut), {
950
+ paddingInline: f
951
+ })
952
+ }
953
+ }
954
+ ];
955
+ }, go = mo, ze = (e) => {
956
+ const {
957
+ componentCls: o,
958
+ motionDurationSlow: t,
959
+ motionDurationMid: n,
960
+ motionEaseInOut: r,
961
+ motionEaseOut: a,
962
+ iconCls: i,
963
+ iconSize: c,
964
+ iconMarginInlineEnd: s
965
+ } = e;
966
+ return {
967
+ // >>>>> Item
968
+ [`${o}-item, ${o}-submenu-title`]: {
969
+ position: "relative",
970
+ display: "block",
971
+ margin: 0,
972
+ whiteSpace: "nowrap",
973
+ cursor: "pointer",
974
+ transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
975
+ [`${o}-item-icon, ${i}`]: {
976
+ minWidth: c,
977
+ fontSize: c,
978
+ transition: [`font-size ${n} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
979
+ "+ span": {
980
+ marginInlineStart: s,
981
+ opacity: 1,
982
+ transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
983
+ }
984
+ },
985
+ [`${o}-item-icon`]: Object.assign({}, mt()),
986
+ [`&${o}-item-only-child`]: {
987
+ [`> ${i}, > ${o}-item-icon`]: {
988
+ marginInlineEnd: 0
989
+ }
990
+ }
991
+ },
992
+ // Disabled state sets text to gray and nukes hover/tab effects
993
+ [`${o}-item-disabled, ${o}-submenu-disabled`]: {
994
+ background: "none !important",
995
+ cursor: "not-allowed",
996
+ "&::after": {
997
+ borderColor: "transparent !important"
998
+ },
999
+ a: {
1000
+ color: "inherit !important",
1001
+ cursor: "not-allowed",
1002
+ pointerEvents: "none"
1003
+ },
1004
+ [`> ${o}-submenu-title`]: {
1005
+ color: "inherit !important",
1006
+ cursor: "not-allowed"
1007
+ }
1008
+ }
1009
+ };
1010
+ }, Pe = (e) => {
1011
+ const {
1012
+ componentCls: o,
1013
+ motionDurationSlow: t,
1014
+ motionEaseInOut: n,
1015
+ borderRadius: r,
1016
+ menuArrowSize: a,
1017
+ menuArrowOffset: i
1018
+ } = e;
1019
+ return {
1020
+ [`${o}-submenu`]: {
1021
+ "&-expand-icon, &-arrow": {
1022
+ position: "absolute",
1023
+ top: "50%",
1024
+ insetInlineEnd: e.margin,
1025
+ width: a,
1026
+ color: "currentcolor",
1027
+ transform: "translateY(-50%)",
1028
+ transition: `transform ${t} ${n}, opacity ${t}`
1029
+ },
1030
+ "&-arrow": {
1031
+ // →
1032
+ "&::before, &::after": {
1033
+ position: "absolute",
1034
+ width: e.calc(a).mul(0.6).equal(),
1035
+ height: e.calc(a).mul(0.15).equal(),
1036
+ backgroundColor: "currentcolor",
1037
+ borderRadius: r,
1038
+ transition: [`background ${t} ${n}`, `transform ${t} ${n}`, `top ${t} ${n}`, `color ${t} ${n}`].join(","),
1039
+ content: '""'
1040
+ },
1041
+ "&::before": {
1042
+ transform: `rotate(45deg) translateY(${v(e.calc(i).mul(-1).equal())})`
1043
+ },
1044
+ "&::after": {
1045
+ transform: `rotate(-45deg) translateY(${v(i)})`
1046
+ }
1047
+ }
1048
+ }
1049
+ };
1050
+ }, po = (e) => {
1051
+ const {
1052
+ antCls: o,
1053
+ componentCls: t,
1054
+ fontSize: n,
1055
+ motionDurationSlow: r,
1056
+ motionDurationMid: a,
1057
+ motionEaseInOut: i,
1058
+ paddingXS: c,
1059
+ padding: s,
1060
+ colorSplit: g,
1061
+ lineWidth: p,
1062
+ zIndexPopup: S,
1063
+ borderRadiusLG: u,
1064
+ subMenuItemBorderRadius: f,
1065
+ menuArrowSize: d,
1066
+ menuArrowOffset: m,
1067
+ lineType: h,
1068
+ groupTitleLineHeight: I,
1069
+ groupTitleFontSize: B
1070
+ } = e;
1071
+ return [
1072
+ // Misc
1073
+ {
1074
+ "": {
1075
+ [t]: Object.assign(Object.assign({}, we()), {
1076
+ // Hidden
1077
+ "&-hidden": {
1078
+ display: "none"
1079
+ }
1080
+ })
1081
+ },
1082
+ [`${t}-submenu-hidden`]: {
1083
+ display: "none"
1084
+ }
1085
+ },
1086
+ {
1087
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, he(e)), we()), {
1088
+ marginBottom: 0,
1089
+ paddingInlineStart: 0,
1090
+ // Override default ul/ol
1091
+ fontSize: n,
1092
+ lineHeight: 0,
1093
+ listStyle: "none",
1094
+ outline: "none",
1095
+ // Magic cubic here but smooth transition
1096
+ transition: `width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,
1097
+ "ul, ol": {
1098
+ margin: 0,
1099
+ padding: 0,
1100
+ listStyle: "none"
1101
+ },
1102
+ // Overflow ellipsis
1103
+ "&-overflow": {
1104
+ display: "flex",
1105
+ [`${t}-item`]: {
1106
+ flex: "none"
1107
+ }
1108
+ },
1109
+ [`${t}-item, ${t}-submenu, ${t}-submenu-title`]: {
1110
+ borderRadius: e.itemBorderRadius
1111
+ },
1112
+ [`${t}-item-group-title`]: {
1113
+ padding: `${v(c)} ${v(s)}`,
1114
+ fontSize: B,
1115
+ lineHeight: I,
1116
+ transition: `all ${r}`
1117
+ },
1118
+ [`&-horizontal ${t}-submenu`]: {
1119
+ transition: [`border-color ${r} ${i}`, `background ${r} ${i}`].join(",")
1120
+ },
1121
+ [`${t}-submenu, ${t}-submenu-inline`]: {
1122
+ transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${a} ${i}`].join(",")
1123
+ },
1124
+ [`${t}-submenu ${t}-sub`]: {
1125
+ cursor: "initial",
1126
+ transition: [`background ${r} ${i}`, `padding ${r} ${i}`].join(",")
1127
+ },
1128
+ [`${t}-title-content`]: {
1129
+ transition: `color ${r}`,
1130
+ "&-with-extra": {
1131
+ display: "inline-flex",
1132
+ alignItems: "center",
1133
+ width: "100%"
1134
+ },
1135
+ // https://github.com/ant-design/ant-design/issues/41143
1136
+ [`> ${o}-typography-ellipsis-single-line`]: {
1137
+ display: "inline",
1138
+ verticalAlign: "unset"
1139
+ },
1140
+ [`${t}-item-extra`]: {
1141
+ marginInlineStart: "auto",
1142
+ paddingInlineStart: e.padding
1143
+ }
1144
+ },
1145
+ [`${t}-item a`]: {
1146
+ "&::before": {
1147
+ position: "absolute",
1148
+ inset: 0,
1149
+ backgroundColor: "transparent",
1150
+ content: '""'
1151
+ }
1152
+ },
1153
+ // Removed a Badge related style seems it's safe
1154
+ // https://github.com/ant-design/ant-design/issues/19809
1155
+ // >>>>> Divider
1156
+ [`${t}-item-divider`]: {
1157
+ overflow: "hidden",
1158
+ lineHeight: 0,
1159
+ borderColor: g,
1160
+ borderStyle: h,
1161
+ borderWidth: 0,
1162
+ borderTopWidth: p,
1163
+ marginBlock: p,
1164
+ padding: 0,
1165
+ "&-dashed": {
1166
+ borderStyle: "dashed"
1167
+ }
1168
+ }
1169
+ }), ze(e)), {
1170
+ [`${t}-item-group`]: {
1171
+ [`${t}-item-group-list`]: {
1172
+ margin: 0,
1173
+ padding: 0,
1174
+ [`${t}-item, ${t}-submenu-title`]: {
1175
+ paddingInline: `${v(e.calc(n).mul(2).equal())} ${v(s)}`
1176
+ }
1177
+ }
1178
+ },
1179
+ // ======================= Sub Menu =======================
1180
+ "&-submenu": {
1181
+ "&-popup": {
1182
+ position: "absolute",
1183
+ zIndex: S,
1184
+ borderRadius: u,
1185
+ boxShadow: "none",
1186
+ transformOrigin: "0 0",
1187
+ [`&${t}-submenu`]: {
1188
+ background: "transparent"
1189
+ },
1190
+ // https://github.com/ant-design/ant-design/issues/13955
1191
+ "&::before": {
1192
+ position: "absolute",
1193
+ inset: 0,
1194
+ zIndex: -1,
1195
+ width: "100%",
1196
+ height: "100%",
1197
+ opacity: 0,
1198
+ content: '""'
1199
+ },
1200
+ [`> ${t}`]: Object.assign(Object.assign(Object.assign({
1201
+ borderRadius: u
1202
+ }, ze(e)), Pe(e)), {
1203
+ [`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
1204
+ borderRadius: f
1205
+ },
1206
+ [`${t}-submenu-title::after`]: {
1207
+ transition: `transform ${r} ${i}`
1208
+ }
1209
+ })
1210
+ },
1211
+ "\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
1212
+ transformOrigin: "100% 0"
1213
+ },
1214
+ "\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
1215
+ transformOrigin: "100% 100%"
1216
+ },
1217
+ "\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
1218
+ transformOrigin: "0 100%"
1219
+ },
1220
+ "\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
1221
+ transformOrigin: "0 0"
1222
+ },
1223
+ "\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
1224
+ paddingInlineEnd: e.paddingXS
1225
+ },
1226
+ "\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
1227
+ paddingInlineStart: e.paddingXS
1228
+ },
1229
+ "\n &-placement-topRight,\n &-placement-topLeft\n ": {
1230
+ paddingBottom: e.paddingXS
1231
+ },
1232
+ "\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
1233
+ paddingTop: e.paddingXS
1234
+ }
1235
+ }
1236
+ }), Pe(e)), {
1237
+ [`&-inline-collapsed ${t}-submenu-arrow,
1238
+ &-inline ${t}-submenu-arrow`]: {
1239
+ // ↓
1240
+ "&::before": {
1241
+ transform: `rotate(-45deg) translateX(${v(m)})`
1242
+ },
1243
+ "&::after": {
1244
+ transform: `rotate(45deg) translateX(${v(e.calc(m).mul(-1).equal())})`
1245
+ }
1246
+ },
1247
+ [`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
1248
+ // ↑
1249
+ transform: `translateY(${v(e.calc(d).mul(0.2).mul(-1).equal())})`,
1250
+ "&::after": {
1251
+ transform: `rotate(-45deg) translateX(${v(e.calc(m).mul(-1).equal())})`
1252
+ },
1253
+ "&::before": {
1254
+ transform: `rotate(45deg) translateX(${v(m)})`
1255
+ }
1256
+ }
1257
+ })
1258
+ },
1259
+ // Integration with header element so menu items have the same height
1260
+ {
1261
+ [`${o}-layout-header`]: {
1262
+ [t]: {
1263
+ lineHeight: "inherit"
1264
+ }
1265
+ }
1266
+ }
1267
+ ];
1268
+ }, bo = (e) => {
1269
+ var o, t, n;
1270
+ const {
1271
+ colorPrimary: r,
1272
+ colorError: a,
1273
+ colorTextDisabled: i,
1274
+ colorErrorBg: c,
1275
+ colorText: s,
1276
+ colorTextDescription: g,
1277
+ colorBgContainer: p,
1278
+ colorFillAlter: S,
1279
+ colorFillContent: u,
1280
+ lineWidth: f,
1281
+ lineWidthBold: d,
1282
+ controlItemBgActive: m,
1283
+ colorBgTextHover: h,
1284
+ controlHeightLG: I,
1285
+ lineHeight: B,
1286
+ colorBgElevated: x,
1287
+ marginXXS: $,
1288
+ padding: E,
1289
+ fontSize: N,
1290
+ controlHeightSM: _,
1291
+ fontSizeLG: w,
1292
+ colorTextLightSolid: C,
1293
+ colorErrorHover: b
1294
+ } = e, T = (o = e.activeBarWidth) !== null && o !== void 0 ? o : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : f, M = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new xe(C).setA(0.65).toRgbString();
1295
+ return {
1296
+ dropdownWidth: 160,
1297
+ zIndexPopup: e.zIndexPopupBase + 50,
1298
+ radiusItem: e.borderRadiusLG,
1299
+ itemBorderRadius: e.borderRadiusLG,
1300
+ radiusSubMenuItem: e.borderRadiusSM,
1301
+ subMenuItemBorderRadius: e.borderRadiusSM,
1302
+ colorItemText: s,
1303
+ itemColor: s,
1304
+ colorItemTextHover: s,
1305
+ itemHoverColor: s,
1306
+ colorItemTextHoverHorizontal: r,
1307
+ horizontalItemHoverColor: r,
1308
+ colorGroupTitle: g,
1309
+ groupTitleColor: g,
1310
+ colorItemTextSelected: r,
1311
+ itemSelectedColor: r,
1312
+ subMenuItemSelectedColor: r,
1313
+ colorItemTextSelectedHorizontal: r,
1314
+ horizontalItemSelectedColor: r,
1315
+ colorItemBg: p,
1316
+ itemBg: p,
1317
+ colorItemBgHover: h,
1318
+ itemHoverBg: h,
1319
+ colorItemBgActive: u,
1320
+ itemActiveBg: m,
1321
+ colorSubItemBg: S,
1322
+ subMenuItemBg: S,
1323
+ colorItemBgSelected: m,
1324
+ itemSelectedBg: m,
1325
+ colorItemBgSelectedHorizontal: "transparent",
1326
+ horizontalItemSelectedBg: "transparent",
1327
+ colorActiveBarWidth: 0,
1328
+ activeBarWidth: T,
1329
+ colorActiveBarHeight: d,
1330
+ activeBarHeight: d,
1331
+ colorActiveBarBorderSize: f,
1332
+ activeBarBorderWidth: D,
1333
+ // Disabled
1334
+ colorItemTextDisabled: i,
1335
+ itemDisabledColor: i,
1336
+ // Danger
1337
+ colorDangerItemText: a,
1338
+ dangerItemColor: a,
1339
+ colorDangerItemTextHover: a,
1340
+ dangerItemHoverColor: a,
1341
+ colorDangerItemTextSelected: a,
1342
+ dangerItemSelectedColor: a,
1343
+ colorDangerItemBgActive: c,
1344
+ dangerItemActiveBg: c,
1345
+ colorDangerItemBgSelected: c,
1346
+ dangerItemSelectedBg: c,
1347
+ itemMarginInline: M,
1348
+ horizontalItemBorderRadius: 0,
1349
+ horizontalItemHoverBg: "transparent",
1350
+ itemHeight: I,
1351
+ groupTitleLineHeight: B,
1352
+ collapsedWidth: I * 2,
1353
+ popupBg: x,
1354
+ itemMarginBlock: $,
1355
+ itemPaddingInline: E,
1356
+ horizontalLineHeight: `${I * 1.15}px`,
1357
+ iconSize: N,
1358
+ iconMarginInlineEnd: _ - N,
1359
+ collapsedIconSize: w,
1360
+ groupTitleFontSize: N,
1361
+ // Disabled
1362
+ darkItemDisabledColor: new xe(C).setA(0.25).toRgbString(),
1363
+ // Dark
1364
+ darkItemColor: y,
1365
+ darkDangerItemColor: a,
1366
+ darkItemBg: "#001529",
1367
+ darkPopupBg: "#001529",
1368
+ darkSubMenuItemBg: "#000c17",
1369
+ darkItemSelectedColor: C,
1370
+ darkItemSelectedBg: r,
1371
+ darkDangerItemSelectedBg: a,
1372
+ darkItemHoverBg: "transparent",
1373
+ darkGroupTitleColor: y,
1374
+ darkItemHoverColor: C,
1375
+ darkDangerItemHoverColor: b,
1376
+ darkDangerItemSelectedColor: C,
1377
+ darkDangerItemActiveBg: a,
1378
+ // internal
1379
+ itemWidth: T ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
1380
+ };
1381
+ }, $o = function(e) {
1382
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1383
+ return te("Menu", (r) => {
1384
+ const {
1385
+ colorBgElevated: a,
1386
+ controlHeightLG: i,
1387
+ fontSize: c,
1388
+ darkItemColor: s,
1389
+ darkDangerItemColor: g,
1390
+ darkItemBg: p,
1391
+ darkSubMenuItemBg: S,
1392
+ darkItemSelectedColor: u,
1393
+ darkItemSelectedBg: f,
1394
+ darkDangerItemSelectedBg: d,
1395
+ darkItemHoverBg: m,
1396
+ darkGroupTitleColor: h,
1397
+ darkItemHoverColor: I,
1398
+ darkItemDisabledColor: B,
1399
+ darkDangerItemHoverColor: x,
1400
+ darkDangerItemSelectedColor: $,
1401
+ darkDangerItemActiveBg: E,
1402
+ popupBg: N,
1403
+ darkPopupBg: _
1404
+ } = r, w = r.calc(c).div(7).mul(5).equal(), C = ne(r, {
1405
+ menuArrowSize: w,
1406
+ menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
1407
+ menuArrowOffset: r.calc(w).mul(0.25).equal(),
1408
+ menuSubMenuBg: a,
1409
+ calc: r.calc,
1410
+ popupBg: N
1411
+ }), b = ne(C, {
1412
+ itemColor: s,
1413
+ itemHoverColor: I,
1414
+ groupTitleColor: h,
1415
+ itemSelectedColor: u,
1416
+ itemBg: p,
1417
+ popupBg: _,
1418
+ subMenuItemBg: S,
1419
+ itemActiveBg: "transparent",
1420
+ itemSelectedBg: f,
1421
+ activeBarHeight: 0,
1422
+ activeBarBorderWidth: 0,
1423
+ itemHoverBg: m,
1424
+ // Disabled
1425
+ itemDisabledColor: B,
1426
+ // Danger
1427
+ dangerItemColor: g,
1428
+ dangerItemHoverColor: x,
1429
+ dangerItemSelectedColor: $,
1430
+ dangerItemActiveBg: E,
1431
+ dangerItemSelectedBg: d,
1432
+ menuSubMenuBg: S,
1433
+ // Horizontal
1434
+ horizontalItemSelectedColor: u,
1435
+ horizontalItemSelectedBg: f
1436
+ });
1437
+ return [
1438
+ // Basic
1439
+ po(C),
1440
+ // Horizontal
1441
+ ao(C),
1442
+ // Hard code for some light style
1443
+ // Vertical
1444
+ go(C),
1445
+ // Hard code for some light style
1446
+ // Theme
1447
+ Te(C, "light"),
1448
+ Te(b, "dark"),
1449
+ // RTL
1450
+ co(C),
1451
+ // Motion
1452
+ zt(C),
1453
+ re(C, "slide-up"),
1454
+ re(C, "slide-down"),
1455
+ We(C, "zoom-big")
1456
+ ];
1457
+ }, bo, {
1458
+ deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
1459
+ // Dropdown will handle menu style self. We do not need to handle this.
1460
+ injectStyle: t,
1461
+ unitless: {
1462
+ groupTitleLineHeight: !0
1463
+ }
1464
+ })(e, o);
1465
+ }, fo = (e) => {
1466
+ var o;
1467
+ const {
1468
+ popupClassName: t,
1469
+ icon: n,
1470
+ title: r,
1471
+ theme: a
1472
+ } = e, i = l.useContext(ie), {
1473
+ prefixCls: c,
1474
+ inlineCollapsed: s,
1475
+ theme: g
1476
+ } = i, p = vt();
1477
+ let S;
1478
+ if (!n)
1479
+ S = s && !p.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
1480
+ className: `${c}-inline-collapsed-noicon`
1481
+ }, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
1482
+ className: `${c}-title-content`
1483
+ }, r);
1484
+ else {
1485
+ const d = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
1486
+ S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(n, {
1487
+ className: P(/* @__PURE__ */ l.isValidElement(n) ? (o = n.props) === null || o === void 0 ? void 0 : o.className : "", `${c}-item-icon`)
1488
+ }), d ? r : /* @__PURE__ */ l.createElement("span", {
1489
+ className: `${c}-title-content`
1490
+ }, r));
1491
+ }
1492
+ const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
1493
+ firstLevel: !1
1494
+ }), [i]), [f] = ke("Menu");
1495
+ return /* @__PURE__ */ l.createElement(ie.Provider, {
1496
+ value: u
1497
+ }, /* @__PURE__ */ l.createElement(ht, Object.assign({}, Q(e, ["icon"]), {
1498
+ title: S,
1499
+ popupClassName: P(c, t, `${c}-${a || g}`),
1500
+ popupStyle: Object.assign({
1501
+ zIndex: f
1502
+ }, e.popupStyle)
1503
+ })));
1504
+ }, Ze = fo;
1505
+ var vo = globalThis && globalThis.__rest || function(e, o) {
1506
+ var t = {};
1507
+ for (var n in e)
1508
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
1509
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
1510
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1511
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
1512
+ return t;
1513
+ };
1514
+ function be(e) {
1515
+ return e === null || e === !1;
1516
+ }
1517
+ const ho = {
1518
+ item: Ke,
1519
+ submenu: Ze,
1520
+ divider: Ue
1521
+ }, Co = /* @__PURE__ */ Re((e, o) => {
1522
+ var t;
1523
+ const n = l.useContext(le), r = n || {}, {
1524
+ getPrefixCls: a,
1525
+ getPopupContainer: i,
1526
+ direction: c,
1527
+ menu: s
1528
+ } = l.useContext(Z), g = a(), {
1529
+ prefixCls: p,
1530
+ className: S,
1531
+ style: u,
1532
+ theme: f = "light",
1533
+ expandIcon: d,
1534
+ _internalDisableMenuItemTitleTooltip: m,
1535
+ inlineCollapsed: h,
1536
+ siderCollapsed: I,
1537
+ rootClassName: B,
1538
+ mode: x,
1539
+ selectable: $,
1540
+ onClick: E,
1541
+ overflowedIndicatorPopupClassName: N
1542
+ } = e, _ = vo(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
1543
+ if (process.env.NODE_ENV !== "production") {
1544
+ const j = ae("Menu");
1545
+ process.env.NODE_ENV !== "production" && j(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), j.deprecated("items" in e && !e.children, "children", "items");
1546
+ }
1547
+ (t = r.validator) === null || t === void 0 || t.call(r, {
1548
+ mode: x
1549
+ });
1550
+ const C = Le(function() {
1551
+ var j;
1552
+ E == null || E.apply(void 0, arguments), (j = r.onClick) === null || j === void 0 || j.call(r);
1553
+ }), b = r.mode || x, T = $ ?? r.selectable, D = h ?? I, M = {
1554
+ horizontal: {
1555
+ motionName: `${g}-slide-up`
1556
+ },
1557
+ inline: xt(g),
1558
+ other: {
1559
+ motionName: `${g}-zoom-big`
1560
+ }
1561
+ }, y = a("menu", p || r.prefixCls), H = Xe(y), [L, k, R] = $o(y, H, !n), W = P(`${y}-${f}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
1562
+ var j, X;
1563
+ if (typeof d == "function" || be(d))
1564
+ return d || null;
1565
+ if (typeof r.expandIcon == "function" || be(r.expandIcon))
1566
+ return r.expandIcon || null;
1567
+ if (typeof (s == null ? void 0 : s.expandIcon) == "function" || be(s == null ? void 0 : s.expandIcon))
1568
+ return (s == null ? void 0 : s.expandIcon) || null;
1569
+ const q = (j = d ?? (r == null ? void 0 : r.expandIcon)) !== null && j !== void 0 ? j : s == null ? void 0 : s.expandIcon;
1570
+ return ee(q, {
1571
+ className: P(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
1572
+ });
1573
+ }, [d, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
1574
+ prefixCls: y,
1575
+ inlineCollapsed: D || !1,
1576
+ direction: c,
1577
+ firstLevel: !0,
1578
+ theme: f,
1579
+ mode: b,
1580
+ disableMenuItemTitleTooltip: m
1581
+ }), [y, D, c, m, f]);
1582
+ return L(/* @__PURE__ */ l.createElement(le.Provider, {
1583
+ value: null
1584
+ }, /* @__PURE__ */ l.createElement(ie.Provider, {
1585
+ value: F
1586
+ }, /* @__PURE__ */ l.createElement(Ct, Object.assign({
1587
+ getPopupContainer: i,
1588
+ overflowedIndicator: /* @__PURE__ */ l.createElement(St, null),
1589
+ overflowedIndicatorPopupClassName: P(y, `${y}-${f}`, N),
1590
+ mode: b,
1591
+ selectable: T,
1592
+ onClick: C
1593
+ }, w, {
1594
+ inlineCollapsed: D,
1595
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
1596
+ className: W,
1597
+ prefixCls: y,
1598
+ direction: c,
1599
+ defaultMotions: M,
1600
+ expandIcon: V,
1601
+ ref: o,
1602
+ rootClassName: P(B, k, r.rootClassName, R, H),
1603
+ _internalComponents: ho
1604
+ })))));
1605
+ }), So = Co, J = /* @__PURE__ */ Re((e, o) => {
1606
+ const t = Me(null), n = l.useContext(Ce);
1607
+ return rt(o, () => ({
1608
+ menu: t.current,
1609
+ focus: (r) => {
1610
+ var a;
1611
+ (a = t.current) === null || a === void 0 || a.focus(r);
1612
+ }
1613
+ })), /* @__PURE__ */ l.createElement(So, Object.assign({
1614
+ ref: t
1615
+ }, e, n));
1616
+ });
1617
+ J.Item = Ke;
1618
+ J.SubMenu = Ze;
1619
+ J.Divider = Ue;
1620
+ J.ItemGroup = It;
1621
+ process.env.NODE_ENV !== "production" && (J.displayName = "Menu");
1622
+ const Io = J, yo = (e) => {
1623
+ const {
1624
+ componentCls: o,
1625
+ menuCls: t,
1626
+ colorError: n,
1627
+ colorTextLightSolid: r
1628
+ } = e, a = `${t}-item`;
1629
+ return {
1630
+ [`${o}, ${o}-menu-submenu`]: {
1631
+ [`${t} ${a}`]: {
1632
+ [`&${a}-danger:not(${a}-disabled)`]: {
1633
+ color: n,
1634
+ "&:hover": {
1635
+ color: r,
1636
+ backgroundColor: n
1637
+ }
1638
+ }
1639
+ }
1640
+ }
1641
+ };
1642
+ }, xo = yo, wo = (e) => {
1643
+ const {
1644
+ componentCls: o,
1645
+ menuCls: t,
1646
+ zIndexPopup: n,
1647
+ dropdownArrowDistance: r,
1648
+ sizePopupArrow: a,
1649
+ antCls: i,
1650
+ iconCls: c,
1651
+ motionDurationMid: s,
1652
+ paddingBlock: g,
1653
+ fontSize: p,
1654
+ dropdownEdgeChildPadding: S,
1655
+ colorTextDisabled: u,
1656
+ fontSizeIcon: f,
1657
+ controlPaddingHorizontal: d,
1658
+ colorBgElevated: m
1659
+ } = e;
1660
+ return [
1661
+ {
1662
+ [o]: {
1663
+ position: "absolute",
1664
+ top: -9999,
1665
+ left: {
1666
+ _skip_check_: !0,
1667
+ value: -9999
1668
+ },
1669
+ zIndex: n,
1670
+ display: "block",
1671
+ // A placeholder out of dropdown visible range to avoid close when user moving
1672
+ "&::before": {
1673
+ position: "absolute",
1674
+ insetBlock: e.calc(a).div(2).sub(r).equal(),
1675
+ // insetInlineStart: -7, // FIXME: Seems not work for hidden element
1676
+ zIndex: -9999,
1677
+ opacity: 1e-4,
1678
+ content: '""'
1679
+ },
1680
+ // Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
1681
+ "&-menu-vertical": {
1682
+ maxHeight: "100vh",
1683
+ overflowY: "auto"
1684
+ },
1685
+ [`&-trigger${i}-btn`]: {
1686
+ [`& > ${c}-down, & > ${i}-btn-icon > ${c}-down`]: {
1687
+ fontSize: f
1688
+ }
1689
+ },
1690
+ [`${o}-wrap`]: {
1691
+ position: "relative",
1692
+ [`${i}-btn > ${c}-down`]: {
1693
+ fontSize: f
1694
+ },
1695
+ [`${c}-down::before`]: {
1696
+ transition: `transform ${s}`
1697
+ }
1698
+ },
1699
+ [`${o}-wrap-open`]: {
1700
+ [`${c}-down::before`]: {
1701
+ transform: "rotate(180deg)"
1702
+ }
1703
+ },
1704
+ "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
1705
+ display: "none"
1706
+ },
1707
+ // =============================================================
1708
+ // == Motion ==
1709
+ // =============================================================
1710
+ // When position is not enough for dropdown, the placement will revert.
1711
+ // We will handle this with revert motion name.
1712
+ [`&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomLeft,
1713
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomLeft,
1714
+ &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottom,
1715
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottom,
1716
+ &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomRight,
1717
+ &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomRight`]: {
1718
+ animationName: Pt
1719
+ },
1720
+ [`&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topLeft,
1721
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topLeft,
1722
+ &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-top,
1723
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-top,
1724
+ &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topRight,
1725
+ &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topRight`]: {
1726
+ animationName: Ht
1727
+ },
1728
+ [`&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomLeft,
1729
+ &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottom,
1730
+ &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomRight`]: {
1731
+ animationName: Dt
1732
+ },
1733
+ [`&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topLeft,
1734
+ &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-top,
1735
+ &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topRight`]: {
1736
+ animationName: Mt
1737
+ }
1738
+ }
1739
+ },
1740
+ // =============================================================
1741
+ // == Arrow style ==
1742
+ // =============================================================
1743
+ Bt(e, m, {
1744
+ arrowPlacement: {
1745
+ top: !0,
1746
+ bottom: !0
1747
+ }
1748
+ }),
1749
+ {
1750
+ // =============================================================
1751
+ // == Menu ==
1752
+ // =============================================================
1753
+ [`${o} ${t}`]: {
1754
+ position: "relative",
1755
+ margin: 0
1756
+ },
1757
+ [`${t}-submenu-popup`]: {
1758
+ position: "absolute",
1759
+ zIndex: n,
1760
+ background: "transparent",
1761
+ boxShadow: "none",
1762
+ transformOrigin: "0 0",
1763
+ "ul, li": {
1764
+ listStyle: "none",
1765
+ margin: 0
1766
+ }
1767
+ },
1768
+ [`${o}, ${o}-menu-submenu`]: Object.assign(Object.assign({}, he(e)), {
1769
+ [t]: Object.assign(Object.assign({
1770
+ padding: S,
1771
+ listStyleType: "none",
1772
+ backgroundColor: m,
1773
+ backgroundClip: "padding-box",
1774
+ borderRadius: e.borderRadiusLG,
1775
+ outline: "none",
1776
+ boxShadow: e.boxShadowSecondary
1777
+ }, $e(e)), {
1778
+ "&:empty": {
1779
+ padding: 0,
1780
+ boxShadow: "none"
1781
+ },
1782
+ [`${t}-item-group-title`]: {
1783
+ padding: `${v(g)} ${v(d)}`,
1784
+ color: e.colorTextDescription,
1785
+ transition: `all ${s}`
1786
+ },
1787
+ // ======================= Item Content =======================
1788
+ [`${t}-item`]: {
1789
+ position: "relative",
1790
+ display: "flex",
1791
+ alignItems: "center"
1792
+ },
1793
+ [`${t}-item-icon`]: {
1794
+ minWidth: p,
1795
+ marginInlineEnd: e.marginXS,
1796
+ fontSize: e.fontSizeSM
1797
+ },
1798
+ [`${t}-title-content`]: {
1799
+ flex: "auto",
1800
+ "&-with-extra": {
1801
+ display: "inline-flex",
1802
+ alignItems: "center",
1803
+ width: "100%"
1804
+ },
1805
+ "> a": {
1806
+ color: "inherit",
1807
+ transition: `all ${s}`,
1808
+ "&:hover": {
1809
+ color: "inherit"
1810
+ },
1811
+ "&::after": {
1812
+ position: "absolute",
1813
+ inset: 0,
1814
+ content: '""'
1815
+ }
1816
+ },
1817
+ [`${t}-item-extra`]: {
1818
+ paddingInlineStart: e.padding,
1819
+ marginInlineStart: "auto",
1820
+ fontSize: e.fontSizeSM,
1821
+ color: e.colorTextDescription
1822
+ }
1823
+ },
1824
+ // =========================== Item ===========================
1825
+ [`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
1826
+ display: "flex",
1827
+ margin: 0,
1828
+ padding: `${v(g)} ${v(d)}`,
1829
+ color: e.colorText,
1830
+ fontWeight: "normal",
1831
+ fontSize: p,
1832
+ lineHeight: e.lineHeight,
1833
+ cursor: "pointer",
1834
+ transition: `all ${s}`,
1835
+ borderRadius: e.borderRadiusSM,
1836
+ "&:hover, &-active": {
1837
+ backgroundColor: e.controlItemBgHover
1838
+ }
1839
+ }, $e(e)), {
1840
+ "&-selected": {
1841
+ color: e.colorPrimary,
1842
+ backgroundColor: e.controlItemBgActive,
1843
+ "&:hover, &-active": {
1844
+ backgroundColor: e.controlItemBgActiveHover
1845
+ }
1846
+ },
1847
+ "&-disabled": {
1848
+ color: u,
1849
+ cursor: "not-allowed",
1850
+ "&:hover": {
1851
+ color: u,
1852
+ backgroundColor: m,
1853
+ cursor: "not-allowed"
1854
+ },
1855
+ a: {
1856
+ pointerEvents: "none"
1857
+ }
1858
+ },
1859
+ "&-divider": {
1860
+ height: 1,
1861
+ // By design
1862
+ margin: `${v(e.marginXXS)} 0`,
1863
+ overflow: "hidden",
1864
+ lineHeight: 0,
1865
+ backgroundColor: e.colorSplit
1866
+ },
1867
+ [`${o}-menu-submenu-expand-icon`]: {
1868
+ position: "absolute",
1869
+ insetInlineEnd: e.paddingXS,
1870
+ [`${o}-menu-submenu-arrow-icon`]: {
1871
+ marginInlineEnd: "0 !important",
1872
+ color: e.colorTextDescription,
1873
+ fontSize: f,
1874
+ fontStyle: "normal"
1875
+ }
1876
+ }
1877
+ }),
1878
+ [`${t}-item-group-list`]: {
1879
+ margin: `0 ${v(e.marginXS)}`,
1880
+ padding: 0,
1881
+ listStyle: "none"
1882
+ },
1883
+ [`${t}-submenu-title`]: {
1884
+ paddingInlineEnd: e.calc(d).add(e.fontSizeSM).equal()
1885
+ },
1886
+ [`${t}-submenu-vertical`]: {
1887
+ position: "relative"
1888
+ },
1889
+ [`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]: {
1890
+ [`&, ${o}-menu-submenu-arrow-icon`]: {
1891
+ color: u,
1892
+ backgroundColor: m,
1893
+ cursor: "not-allowed"
1894
+ }
1895
+ },
1896
+ // https://github.com/ant-design/ant-design/issues/19264
1897
+ [`${t}-submenu-selected ${o}-menu-submenu-title`]: {
1898
+ color: e.colorPrimary
1899
+ }
1900
+ })
1901
+ })
1902
+ },
1903
+ // Follow code may reuse in other components
1904
+ [re(e, "slide-up"), re(e, "slide-down"), Oe(e, "move-up"), Oe(e, "move-down"), We(e, "zoom-big")]
1905
+ ];
1906
+ }, Oo = (e) => Object.assign(Object.assign({
1907
+ zIndexPopup: e.zIndexPopupBase + 50,
1908
+ paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
1909
+ }, Et({
1910
+ contentRadius: e.borderRadiusLG,
1911
+ limitVerticalRadius: !0
1912
+ })), Nt(e)), Bo = te("Dropdown", (e) => {
1913
+ const {
1914
+ marginXXS: o,
1915
+ sizePopupArrow: t,
1916
+ paddingXXS: n,
1917
+ componentCls: r
1918
+ } = e, a = ne(e, {
1919
+ menuCls: `${r}-menu`,
1920
+ dropdownArrowDistance: e.calc(t).div(2).add(o).equal(),
1921
+ dropdownEdgeChildPadding: n
1922
+ });
1923
+ return [wo(a), xo(a)];
1924
+ }, Oo, {
1925
+ resetStyle: !1
1926
+ }), se = (e) => {
1927
+ var o;
1928
+ const {
1929
+ menu: t,
1930
+ arrow: n,
1931
+ prefixCls: r,
1932
+ children: a,
1933
+ trigger: i,
1934
+ disabled: c,
1935
+ dropdownRender: s,
1936
+ getPopupContainer: g,
1937
+ overlayClassName: p,
1938
+ rootClassName: S,
1939
+ overlayStyle: u,
1940
+ open: f,
1941
+ onOpenChange: d,
1942
+ // Deprecated
1943
+ visible: m,
1944
+ onVisibleChange: h,
1945
+ mouseEnterDelay: I = 0.15,
1946
+ mouseLeaveDelay: B = 0.1,
1947
+ autoAdjustOverflow: x = !0,
1948
+ placement: $ = "",
1949
+ overlay: E,
1950
+ transitionName: N
1951
+ } = e, {
1952
+ getPopupContainer: _,
1953
+ getPrefixCls: w,
1954
+ direction: C,
1955
+ dropdown: b
1956
+ } = l.useContext(Z), T = ae("Dropdown");
1957
+ process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1958
+ let [U, K] = O;
1959
+ T.deprecated(!(U in e), U, K);
1960
+ }), T.deprecated(!("overlay" in e), "overlay", "menu"));
1961
+ const D = l.useMemo(() => {
1962
+ const O = w();
1963
+ return N !== void 0 ? N : $.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
1964
+ }, [w, $, N]), M = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : C === "rtl" ? "bottomRight" : "bottomLeft", [$, C]);
1965
+ if (process.env.NODE_ENV !== "production") {
1966
+ if ($.includes("Center")) {
1967
+ const O = $.slice(0, $.indexOf("Center"));
1968
+ process.env.NODE_ENV !== "production" && T(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
1969
+ }
1970
+ [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1971
+ let [U, K] = O;
1972
+ T.deprecated(!(U in e), U, K);
1973
+ });
1974
+ }
1975
+ const y = w("dropdown", r), H = Xe(y), [L, k, R] = Bo(y, H), [, W] = gt(), V = l.Children.only(_t(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
1976
+ className: P(`${y}-trigger`, {
1977
+ [`${y}-rtl`]: C === "rtl"
1978
+ }, V.props.className),
1979
+ disabled: (o = V.props.disabled) !== null && o !== void 0 ? o : c
1980
+ }), j = c ? [] : i, X = !!(j != null && j.includes("contextMenu")), [q, G] = lt(!1, {
1981
+ value: f ?? m
1982
+ }), de = Le((O) => {
1983
+ d == null || d(O, {
1984
+ source: "trigger"
1985
+ }), h == null || h(O), G(O);
1986
+ }), ue = P(p, S, k, R, H, b == null ? void 0 : b.className, {
1987
+ [`${y}-rtl`]: C === "rtl"
1988
+ }), z = Tt({
1989
+ arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
1990
+ autoAdjustOverflow: x,
1991
+ offset: W.marginXXS,
1992
+ arrowWidth: n ? W.sizePopupArrow : 0,
1993
+ borderRadius: W.borderRadius
1994
+ }), A = l.useCallback(() => {
1995
+ t != null && t.selectable && (t != null && t.multiple) || (d == null || d(!1, {
1996
+ source: "menu"
1997
+ }), G(!1));
1998
+ }, [t == null ? void 0 : t.selectable, t == null ? void 0 : t.multiple]), Y = () => {
1999
+ let O;
2000
+ return t != null && t.items ? O = /* @__PURE__ */ l.createElement(Io, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(io, {
2001
+ prefixCls: `${y}-menu`,
2002
+ rootClassName: P(R, H),
2003
+ expandIcon: /* @__PURE__ */ l.createElement("span", {
2004
+ className: `${y}-menu-submenu-arrow`
2005
+ }, /* @__PURE__ */ l.createElement(fe, {
2006
+ className: `${y}-menu-submenu-arrow-icon`
2007
+ })),
2008
+ mode: "vertical",
2009
+ selectable: !1,
2010
+ onClick: A,
2011
+ validator: (U) => {
2012
+ let {
2013
+ mode: K
2014
+ } = U;
2015
+ process.env.NODE_ENV !== "production" && T(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
2016
+ }
2017
+ }, O);
2018
+ }, [me, ot] = ke("Dropdown", u == null ? void 0 : u.zIndex);
2019
+ let ge = /* @__PURE__ */ l.createElement(yt, Object.assign({
2020
+ alignPoint: X
2021
+ }, Q(e, ["rootClassName"]), {
2022
+ mouseEnterDelay: I,
2023
+ mouseLeaveDelay: B,
2024
+ visible: q,
2025
+ builtinPlacements: z,
2026
+ arrow: !!n,
2027
+ overlayClassName: ue,
2028
+ prefixCls: y,
2029
+ getPopupContainer: g || _,
2030
+ transitionName: D,
2031
+ trigger: j,
2032
+ overlay: Y,
2033
+ placement: M,
2034
+ onVisibleChange: de,
2035
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, b == null ? void 0 : b.style), u), {
2036
+ zIndex: me
2037
+ })
2038
+ }), F);
2039
+ return me && (ge = /* @__PURE__ */ l.createElement(wt.Provider, {
2040
+ value: ot
2041
+ }, ge)), L(ge);
2042
+ }, Eo = pt(se, "align", void 0, "dropdown", (e) => e), No = (e) => /* @__PURE__ */ l.createElement(Eo, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
2043
+ se._InternalPanelDoNotUseOrYouWillBeFired = No;
2044
+ process.env.NODE_ENV !== "production" && (se.displayName = "Dropdown");
2045
+ const To = se, Je = (e) => {
2046
+ let {
2047
+ children: o
2048
+ } = e;
2049
+ const {
2050
+ getPrefixCls: t
2051
+ } = l.useContext(Z), n = t("breadcrumb");
2052
+ return /* @__PURE__ */ l.createElement("li", {
2053
+ className: `${n}-separator`,
2054
+ "aria-hidden": "true"
2055
+ }, o === "" ? o : o || "/");
2056
+ };
2057
+ Je.__ANT_BREADCRUMB_SEPARATOR = !0;
2058
+ const Se = Je;
2059
+ var jo = globalThis && globalThis.__rest || function(e, o) {
2060
+ var t = {};
2061
+ for (var n in e)
2062
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2063
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2064
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2065
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2066
+ return t;
2067
+ };
2068
+ function zo(e, o) {
2069
+ if (e.title === void 0 || e.title === null)
2070
+ return null;
2071
+ const t = Object.keys(o).join("|");
2072
+ return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (n, r) => o[r] || n);
2073
+ }
2074
+ function Qe(e, o, t, n) {
2075
+ if (t == null)
2076
+ return null;
2077
+ const {
2078
+ className: r,
2079
+ onClick: a
2080
+ } = o, i = jo(o, ["className", "onClick"]), c = Object.assign(Object.assign({}, Ae(i, {
2081
+ data: !0,
2082
+ aria: !0
2083
+ })), {
2084
+ onClick: a
2085
+ });
2086
+ return n !== void 0 ? /* @__PURE__ */ l.createElement("a", Object.assign({}, c, {
2087
+ className: P(`${e}-link`, r),
2088
+ href: n
2089
+ }), t) : /* @__PURE__ */ l.createElement("span", Object.assign({}, c, {
2090
+ className: P(`${e}-link`, r)
2091
+ }), t);
2092
+ }
2093
+ function Po(e, o) {
2094
+ return (n, r, a, i, c) => {
2095
+ if (o)
2096
+ return o(n, r, a, i);
2097
+ const s = zo(n, r);
2098
+ return Qe(e, n, s, c);
2099
+ };
2100
+ }
2101
+ var ve = globalThis && globalThis.__rest || function(e, o) {
2102
+ var t = {};
2103
+ for (var n in e)
2104
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2105
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2106
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2107
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2108
+ return t;
2109
+ };
2110
+ const et = (e) => {
2111
+ const {
2112
+ prefixCls: o,
2113
+ separator: t = "/",
2114
+ children: n,
2115
+ menu: r,
2116
+ overlay: a,
2117
+ dropdownProps: i,
2118
+ href: c
2119
+ } = e;
2120
+ process.env.NODE_ENV !== "production" && ae("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
2121
+ const g = ((p) => {
2122
+ if (r || a) {
2123
+ const S = Object.assign({}, i);
2124
+ if (r) {
2125
+ const u = r || {}, {
2126
+ items: f
2127
+ } = u, d = ve(u, ["items"]);
2128
+ S.menu = Object.assign(Object.assign({}, d), {
2129
+ items: f == null ? void 0 : f.map((m, h) => {
2130
+ var {
2131
+ key: I,
2132
+ title: B,
2133
+ label: x,
2134
+ path: $
2135
+ } = m, E = ve(m, ["key", "title", "label", "path"]);
2136
+ let N = x ?? B;
2137
+ return $ && (N = /* @__PURE__ */ l.createElement("a", {
2138
+ href: `${c}${$}`
2139
+ }, N)), Object.assign(Object.assign({}, E), {
2140
+ key: I ?? h,
2141
+ label: N
2142
+ });
2143
+ })
2144
+ });
2145
+ } else
2146
+ a && (S.overlay = a);
2147
+ return /* @__PURE__ */ l.createElement(To, Object.assign({
2148
+ placement: "bottom"
2149
+ }, S), /* @__PURE__ */ l.createElement("span", {
2150
+ className: `${o}-overlay-link`
2151
+ }, p, /* @__PURE__ */ l.createElement(bt, null)));
2152
+ }
2153
+ return p;
2154
+ })(n);
2155
+ return g != null ? /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("li", null, g), t && /* @__PURE__ */ l.createElement(Se, null, t)) : null;
2156
+ }, tt = (e) => {
2157
+ const {
2158
+ prefixCls: o,
2159
+ children: t,
2160
+ href: n
2161
+ } = e, r = ve(e, ["prefixCls", "children", "href"]), {
2162
+ getPrefixCls: a
2163
+ } = l.useContext(Z), i = a("breadcrumb", o);
2164
+ return /* @__PURE__ */ l.createElement(et, Object.assign({}, r, {
2165
+ prefixCls: i
2166
+ }), Qe(i, r, t, n));
2167
+ };
2168
+ tt.__ANT_BREADCRUMB_ITEM = !0;
2169
+ const Ho = tt, Do = (e) => {
2170
+ const {
2171
+ componentCls: o,
2172
+ iconCls: t,
2173
+ calc: n
2174
+ } = e;
2175
+ return {
2176
+ [o]: Object.assign(Object.assign({}, he(e)), {
2177
+ color: e.itemColor,
2178
+ fontSize: e.fontSize,
2179
+ [t]: {
2180
+ fontSize: e.iconFontSize
2181
+ },
2182
+ ol: {
2183
+ display: "flex",
2184
+ flexWrap: "wrap",
2185
+ margin: 0,
2186
+ padding: 0,
2187
+ listStyle: "none"
2188
+ },
2189
+ a: Object.assign({
2190
+ color: e.linkColor,
2191
+ transition: `color ${e.motionDurationMid}`,
2192
+ padding: `0 ${v(e.paddingXXS)}`,
2193
+ borderRadius: e.borderRadiusSM,
2194
+ height: e.fontHeight,
2195
+ display: "inline-block",
2196
+ marginInline: n(e.marginXXS).mul(-1).equal(),
2197
+ "&:hover": {
2198
+ color: e.linkHoverColor,
2199
+ backgroundColor: e.colorBgTextHover
2200
+ }
2201
+ }, $e(e)),
2202
+ "li:last-child": {
2203
+ color: e.lastItemColor
2204
+ },
2205
+ [`${o}-separator`]: {
2206
+ marginInline: e.separatorMargin,
2207
+ color: e.separatorColor
2208
+ },
2209
+ [`${o}-link`]: {
2210
+ [`
2211
+ > ${t} + span,
2212
+ > ${t} + a
2213
+ `]: {
2214
+ marginInlineStart: e.marginXXS
2215
+ }
2216
+ },
2217
+ [`${o}-overlay-link`]: {
2218
+ borderRadius: e.borderRadiusSM,
2219
+ height: e.fontHeight,
2220
+ display: "inline-block",
2221
+ padding: `0 ${v(e.paddingXXS)}`,
2222
+ marginInline: n(e.marginXXS).mul(-1).equal(),
2223
+ [`> ${t}`]: {
2224
+ marginInlineStart: e.marginXXS,
2225
+ fontSize: e.fontSizeIcon
2226
+ },
2227
+ "&:hover": {
2228
+ color: e.linkHoverColor,
2229
+ backgroundColor: e.colorBgTextHover,
2230
+ a: {
2231
+ color: e.linkHoverColor
2232
+ }
2233
+ },
2234
+ a: {
2235
+ "&:hover": {
2236
+ backgroundColor: "transparent"
2237
+ }
2238
+ }
2239
+ },
2240
+ // rtl style
2241
+ [`&${e.componentCls}-rtl`]: {
2242
+ direction: "rtl"
2243
+ }
2244
+ })
2245
+ };
2246
+ }, Mo = (e) => ({
2247
+ itemColor: e.colorTextDescription,
2248
+ lastItemColor: e.colorText,
2249
+ iconFontSize: e.fontSize,
2250
+ linkColor: e.colorTextDescription,
2251
+ linkHoverColor: e.colorText,
2252
+ separatorColor: e.colorTextDescription,
2253
+ separatorMargin: e.marginXS
2254
+ }), Ro = te("Breadcrumb", (e) => {
2255
+ const o = ne(e, {});
2256
+ return Do(o);
2257
+ }, Mo);
2258
+ var He = globalThis && globalThis.__rest || function(e, o) {
2259
+ var t = {};
2260
+ for (var n in e)
2261
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2262
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2263
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2264
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2265
+ return t;
2266
+ };
2267
+ function _o(e) {
2268
+ const {
2269
+ breadcrumbName: o,
2270
+ children: t
2271
+ } = e, n = He(e, ["breadcrumbName", "children"]), r = Object.assign({
2272
+ title: o
2273
+ }, n);
2274
+ return t && (r.menu = {
2275
+ items: t.map((a) => {
2276
+ var {
2277
+ breadcrumbName: i
2278
+ } = a, c = He(a, ["breadcrumbName"]);
2279
+ return Object.assign(Object.assign({}, c), {
2280
+ title: i
2281
+ });
2282
+ })
2283
+ }), r;
2284
+ }
2285
+ function Ao(e, o) {
2286
+ return it(() => e || (o ? o.map(_o) : null), [e, o]);
2287
+ }
2288
+ var Lo = globalThis && globalThis.__rest || function(e, o) {
2289
+ var t = {};
2290
+ for (var n in e)
2291
+ Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2292
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
2293
+ for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2294
+ o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2295
+ return t;
2296
+ };
2297
+ const ko = (e, o) => {
2298
+ if (o === void 0)
2299
+ return o;
2300
+ let t = (o || "").replace(/^\//, "");
2301
+ return Object.keys(e).forEach((n) => {
2302
+ t = t.replace(`:${n}`, e[n]);
2303
+ }), t;
2304
+ }, ce = (e) => {
2305
+ const {
2306
+ prefixCls: o,
2307
+ separator: t = "/",
2308
+ style: n,
2309
+ className: r,
2310
+ rootClassName: a,
2311
+ routes: i,
2312
+ items: c,
2313
+ children: s,
2314
+ itemRender: g,
2315
+ params: p = {}
2316
+ } = e, S = Lo(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
2317
+ getPrefixCls: u,
2318
+ direction: f,
2319
+ breadcrumb: d
2320
+ } = l.useContext(Z);
2321
+ let m;
2322
+ const h = u("breadcrumb", o), [I, B, x] = Ro(h), $ = Ao(c, i);
2323
+ if (process.env.NODE_ENV !== "production") {
2324
+ const w = ae("Breadcrumb");
2325
+ if (w.deprecated(!i, "routes", "items"), !$ || $.length === 0) {
2326
+ const C = oe(s);
2327
+ w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((b) => {
2328
+ b && process.env.NODE_ENV !== "production" && w(b.type && (b.type.__ANT_BREADCRUMB_ITEM === !0 || b.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
2329
+ });
2330
+ }
2331
+ }
2332
+ const E = Po(h, g);
2333
+ if ($ && $.length > 0) {
2334
+ const w = [], C = c || i;
2335
+ m = $.map((b, T) => {
2336
+ const {
2337
+ path: D,
2338
+ key: M,
2339
+ type: y,
2340
+ menu: H,
2341
+ overlay: L,
2342
+ onClick: k,
2343
+ className: R,
2344
+ separator: W,
2345
+ dropdownProps: V
2346
+ } = b, F = ko(p, D);
2347
+ F !== void 0 && w.push(F);
2348
+ const j = M ?? T;
2349
+ if (y === "separator")
2350
+ return /* @__PURE__ */ l.createElement(Se, {
2351
+ key: j
2352
+ }, W);
2353
+ const X = {}, q = T === $.length - 1;
2354
+ H ? X.menu = H : L && (X.overlay = L);
2355
+ let {
2356
+ href: G
2357
+ } = b;
2358
+ return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(et, Object.assign({
2359
+ key: j
2360
+ }, X, Ae(b, {
2361
+ data: !0,
2362
+ aria: !0
2363
+ }), {
2364
+ className: R,
2365
+ dropdownProps: V,
2366
+ href: G,
2367
+ separator: q ? "" : t,
2368
+ onClick: k,
2369
+ prefixCls: h
2370
+ }), E(b, p, C, w, G));
2371
+ });
2372
+ } else if (s) {
2373
+ const w = oe(s).length;
2374
+ m = oe(s).map((C, b) => {
2375
+ if (!C)
2376
+ return C;
2377
+ const T = b === w - 1;
2378
+ return ee(C, {
2379
+ separator: T ? "" : t,
2380
+ // eslint-disable-next-line react/no-array-index-key
2381
+ key: b
2382
+ });
2383
+ });
2384
+ }
2385
+ const N = P(h, d == null ? void 0 : d.className, {
2386
+ [`${h}-rtl`]: f === "rtl"
2387
+ }, r, a, B, x), _ = Object.assign(Object.assign({}, d == null ? void 0 : d.style), n);
2388
+ return I(/* @__PURE__ */ l.createElement("nav", Object.assign({
2389
+ className: N,
2390
+ style: _
2391
+ }, S), /* @__PURE__ */ l.createElement("ol", null, m)));
2392
+ };
2393
+ ce.Item = Ho;
2394
+ ce.Separator = Se;
2395
+ process.env.NODE_ENV !== "production" && (ce.displayName = "Breadcrumb");
2396
+ const Wo = ce, Xo = ({ colors: e, borderRadius: o, sizing: t, typography: n }, r = "active", a = "wide") => `
2397
+ &.ant-breadcrumb {
2398
+ font-size: ${n[a].body1.fontSize};
2399
+
2400
+ .ant-breadcrumb-link,
2401
+ span[class*="ant-breadcrumb-link"] > a {
2402
+ color: ${e.interactive.link.active};
2403
+ transition: color 0.2s ease-in-out;
2404
+ text-decoration: underline;
2405
+ background: none !important;
2406
+ }
2407
+
2408
+ ol > li:last-child {
2409
+ .ant-breadcrumb-link,
2410
+ span[class*="ant-breadcrumb-link"],
2411
+ span[class*="ant-breadcrumb-link"] > span,
2412
+ span[class*="ant-breadcrumb-link"] > a {
2413
+ text-decoration: none !important;
2414
+ color: ${e.onsurface["copy-light"]} !important;
2415
+ cursor: default !important;
2416
+ pointer-events: none;
2417
+ }
2418
+ }
2419
+
2420
+ .ant-breadcrumb-separator {
2421
+ color: ${e.interactive.link.active};
2422
+ }
2423
+
2424
+ .ant-dropdown-menu-item,
2425
+ .ant-dropdown-menu-item:hover {
2426
+ background: none !important;
2427
+ }
2428
+
2429
+ .ant-dropdown-trigger > svg {
2430
+ display: none;
2431
+ }
2432
+
2433
+ span[role="img"] {
2434
+ display: none;
2435
+ }
2436
+
2437
+ .ant-dropdown-trigger:hover {
2438
+ background: none !important;
2439
+ }
2440
+ }
2441
+ `, mn = De.div`
2442
+ ${({ isDisabled: e }) => e && `
2443
+ cursor: not-allowed;
2444
+ .ant-breadcrumb {
2445
+ pointer-events: none;
2446
+ opacity: 0.5;
2447
+ }
2448
+ `}
2449
+ `, gn = De(Wo)`
2450
+ ${({ theme: e, type: o, state: t }) => e && Xo(e, o, t)}
2451
+ `;
2452
+ export {
2453
+ gn as Breadcrumb,
2454
+ mn as BreadcrumbWrapper,
2455
+ gn as default,
2456
+ Xo as getGenesisClass
2457
+ };