@gobolt/genesis 0.0.10 → 0.0.11

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 (415) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  6. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  7. package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
  8. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
  9. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
  10. package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
  11. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  12. package/dist/Keyframes-sPZXYuXt.js +17 -0
  13. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  14. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  15. package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
  16. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  17. package/dist/Skeleton-B3vg9CbL.js +560 -0
  18. package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
  19. package/dist/Typography-DqI7RslA.js +705 -0
  20. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  21. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  22. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  23. package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
  24. package/dist/clsx-OuTLNxxd.js +16 -0
  25. package/dist/components/Avatar/Avatar.d.ts +12 -0
  26. package/dist/components/Avatar/Avatar.js +61 -0
  27. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  28. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  30. package/dist/components/Avatar/index.d.ts +2 -0
  31. package/dist/components/Avatar/index.js +4 -0
  32. package/dist/components/Avatar/styles.d.ts +18 -0
  33. package/dist/components/Avatar/styles.js +326 -0
  34. package/dist/components/Badge/Badge.d.ts +5 -3
  35. package/dist/components/Badge/Badge.js +67 -100
  36. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  37. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  38. package/dist/components/Badge/styles.d.ts +12 -3
  39. package/dist/components/Badge/styles.js +30 -27
  40. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  41. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  42. package/dist/components/Breadcrumb/styles.js +239 -2260
  43. package/dist/components/Button/Button.d.ts +4 -3
  44. package/dist/components/Button/Button.js +10 -6
  45. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  46. package/dist/components/Button/__tests__/Button.test.js +1 -1
  47. package/dist/components/Button/styles.d.ts +2 -2
  48. package/dist/components/Button/styles.js +20 -17
  49. package/dist/components/Card/Card.d.ts +9 -0
  50. package/dist/components/Card/Card.js +16 -0
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  52. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  53. package/dist/components/Card/__tests__/Card.test.js +16 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js +4 -0
  56. package/dist/components/Card/styles.d.ts +16 -0
  57. package/dist/components/Card/styles.js +12 -0
  58. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  59. package/dist/components/Checkbox/Checkbox.js +28 -16
  60. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  61. package/dist/components/Checkbox/styles.js +22 -457
  62. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  63. package/dist/components/Dashboard/Dashboard.js +5 -0
  64. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  66. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  67. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  73. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  75. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  77. package/dist/components/Dashboard/index.d.ts +2 -0
  78. package/dist/components/Dashboard/index.js +4 -0
  79. package/dist/components/Dashboard/styles.d.ts +14 -0
  80. package/dist/components/Dashboard/styles.js +11 -0
  81. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  82. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  83. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  84. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  85. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  86. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  87. package/dist/components/ErrorBoundary/index.js +4 -0
  88. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  89. package/dist/components/ErrorBoundary/styles.js +11 -0
  90. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  91. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  92. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  93. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  94. package/dist/components/Form/Form.js +3 -3
  95. package/dist/components/Form/__stories__/FormStory.js +127 -50
  96. package/dist/components/Form/__tests__/form.test.js +2 -2
  97. package/dist/components/Form/index.js +1 -1
  98. package/dist/components/Form/styles.js +1 -1
  99. package/dist/components/Glyph/Glyph.d.ts +4 -0
  100. package/dist/components/Glyph/Glyph.js +9 -0
  101. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  102. package/dist/components/Glyph/index.d.ts +2 -0
  103. package/dist/components/Glyph/index.js +4 -0
  104. package/dist/components/Glyph/styles.d.ts +14 -0
  105. package/dist/components/Glyph/styles.js +11 -0
  106. package/dist/components/Input/Input.d.ts +1 -2
  107. package/dist/components/Input/Input.js +14 -10
  108. package/dist/components/Input/__tests__/Input.test.js +1 -1
  109. package/dist/components/Input/styles.js +58 -466
  110. package/dist/components/Layout/Content/Content.d.ts +11 -0
  111. package/dist/components/Layout/Content/Content.js +32 -0
  112. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  113. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  114. package/dist/components/Layout/Content/index.d.ts +2 -0
  115. package/dist/components/Layout/Content/index.js +4 -0
  116. package/dist/components/Layout/Content/styles.d.ts +11 -0
  117. package/dist/components/Layout/Content/styles.js +16 -0
  118. package/dist/components/Layout/Layout.d.ts +8 -0
  119. package/dist/components/Layout/Layout.js +6 -0
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  121. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  123. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  124. package/dist/components/Layout/MainLayout/index.js +4 -0
  125. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  126. package/dist/components/Layout/MainLayout/styles.js +69 -0
  127. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  128. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  129. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  130. package/dist/components/Layout/index.d.ts +2 -0
  131. package/dist/components/Layout/index.js +4 -0
  132. package/dist/components/Message/Message.d.ts +6 -4
  133. package/dist/components/Message/Message.js +70 -43
  134. package/dist/components/Message/__tests__/Message.test.js +1 -1
  135. package/dist/components/Message/styles.d.ts +1 -0
  136. package/dist/components/Message/styles.js +15 -11
  137. package/dist/components/Notification/Notification.js +145 -120
  138. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  139. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  140. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  141. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  142. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  143. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  144. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  145. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  146. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  147. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  148. package/dist/components/Notification/styles.d.ts +1 -1
  149. package/dist/components/Notification/styles.js +1 -1
  150. package/dist/components/Popover/Popover.d.ts +10 -0
  151. package/dist/components/Popover/Popover.js +21 -0
  152. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  153. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  154. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  155. package/dist/components/Popover/index.d.ts +2 -0
  156. package/dist/components/Popover/index.js +4 -0
  157. package/dist/components/Popover/styles.d.ts +15 -0
  158. package/dist/components/Popover/styles.js +6 -0
  159. package/dist/components/Progress/Progress.d.ts +18 -0
  160. package/dist/components/Progress/Progress.js +91 -0
  161. package/dist/components/Progress/Progress.util.d.ts +4 -0
  162. package/dist/components/Progress/Progress.util.js +62 -0
  163. package/dist/components/Progress/ProgressText.d.ts +11 -0
  164. package/dist/components/Progress/ProgressText.js +67 -0
  165. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  166. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  167. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  168. package/dist/components/Progress/index.d.ts +2 -0
  169. package/dist/components/Progress/index.js +4 -0
  170. package/dist/components/Progress/styles.d.ts +17 -0
  171. package/dist/components/Progress/styles.js +793 -0
  172. package/dist/components/Radio/Radio.js +22 -6
  173. package/dist/components/Radio/RadioGroup.js +1 -1
  174. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  175. package/dist/components/Radio/index.d.ts +1 -0
  176. package/dist/components/Row/Row.d.ts +14 -0
  177. package/dist/components/Row/Row.js +38 -0
  178. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  179. package/dist/components/Row/RowActions/RowActions.js +59 -0
  180. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  181. package/dist/components/Row/RowActions/styles.js +32 -0
  182. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  183. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  184. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  185. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  186. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  187. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  188. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  189. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  190. package/dist/components/Row/__tests__/Row.test.js +16 -0
  191. package/dist/components/Row/index.d.ts +2 -0
  192. package/dist/components/Row/index.js +4 -0
  193. package/dist/components/Row/styles.d.ts +15 -0
  194. package/dist/components/Row/styles.js +15 -0
  195. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  196. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  197. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  198. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  199. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  200. package/dist/components/SegmentedControls/index.d.ts +2 -0
  201. package/dist/components/SegmentedControls/index.js +4 -0
  202. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  203. package/dist/components/SegmentedControls/styles.js +511 -0
  204. package/dist/components/Select/Select.d.ts +2 -4
  205. package/dist/components/Select/Select.js +12 -11
  206. package/dist/components/Select/__tests__/Select.test.js +1 -1
  207. package/dist/components/Select/styles.js +39 -3654
  208. package/dist/components/Shapes/Shapes.d.ts +6 -0
  209. package/dist/components/Shapes/Shapes.js +8 -0
  210. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  211. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  212. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  213. package/dist/components/Shapes/index.d.ts +2 -0
  214. package/dist/components/Shapes/index.js +4 -0
  215. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  216. package/dist/components/Shapes/variants/Circle.js +23 -0
  217. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  218. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  219. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  220. package/dist/components/Shapes/variants/Triangle.js +23 -0
  221. package/dist/components/Switch/Switch.d.ts +9 -0
  222. package/dist/components/Switch/Switch.js +22 -0
  223. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  224. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  225. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  226. package/dist/components/Switch/index.d.ts +2 -0
  227. package/dist/components/Switch/index.js +4 -0
  228. package/dist/components/Switch/styles.d.ts +9 -0
  229. package/dist/components/Switch/styles.js +456 -0
  230. package/dist/components/Table/Table.d.ts +15 -0
  231. package/dist/components/Table/Table.js +23 -0
  232. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  233. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  234. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  235. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  236. package/dist/components/Table/__tests__/Table.test.js +34 -0
  237. package/dist/components/Table/index.d.ts +2 -0
  238. package/dist/components/Table/index.js +4 -0
  239. package/dist/components/Table/styles.d.ts +8 -0
  240. package/dist/components/Table/styles.js +6 -0
  241. package/dist/components/Tabs/Tabs.d.ts +10 -0
  242. package/dist/components/Tabs/Tabs.js +23 -0
  243. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  244. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  245. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  246. package/dist/components/Tabs/index.d.ts +2 -0
  247. package/dist/components/Tabs/index.js +4 -0
  248. package/dist/components/Tabs/styles.d.ts +12 -0
  249. package/dist/components/Tabs/styles.js +102 -0
  250. package/dist/components/Tile/Tile.d.ts +10 -0
  251. package/dist/components/Tile/Tile.js +21 -0
  252. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  253. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  254. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  255. package/dist/components/Tile/index.d.ts +2 -0
  256. package/dist/components/Tile/index.js +4 -0
  257. package/dist/components/Tile/styles.d.ts +11 -0
  258. package/dist/components/Tile/styles.js +12 -0
  259. package/dist/components/Toast/Toast.js +23 -6
  260. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  261. package/dist/components/Toast/index.js +1 -1
  262. package/dist/components/Toast/styles.d.ts +0 -1
  263. package/dist/components/Toast/styles.js +14 -23
  264. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  265. package/dist/components/Tooltip/Tooltip.js +50 -0
  266. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  267. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  268. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  269. package/dist/components/Tooltip/index.d.ts +2 -0
  270. package/dist/components/Tooltip/index.js +4 -0
  271. package/dist/components/Tooltip/styles.d.ts +20 -0
  272. package/dist/components/Tooltip/styles.js +11 -0
  273. package/dist/components/Typography/Typography.d.ts +5 -1
  274. package/dist/components/Typography/Typography.js +2 -2
  275. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  276. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  277. package/dist/components/Typography/index.js +1 -1
  278. package/dist/components/Typography/styles.d.ts +1 -0
  279. package/dist/components/Typography/styles.js +53 -17
  280. package/dist/components/index.d.ts +31 -1
  281. package/dist/components/index.js +54 -24
  282. package/dist/constants/index.d.ts +4 -0
  283. package/dist/constants/index.js +4 -2
  284. package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
  285. package/dist/dropdown-zGGFIyJ_.js +2044 -0
  286. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  287. package/dist/genesis/GenesisThemeBreakdown.js +38 -22
  288. package/dist/genesis/styles.js +7 -2923
  289. package/dist/iconBase-LROS5hdG.js +112 -0
  290. package/dist/index-BRUI9igj.js +11 -0
  291. package/dist/index-BTGF--50.js +1845 -0
  292. package/dist/index-BW_7pvTr.js +538 -0
  293. package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
  294. package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
  295. package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
  296. package/dist/index-CdiHBmVe.js +445 -0
  297. package/dist/index-CodMmNWv.js +102 -0
  298. package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
  299. package/dist/index-D0P16DlX.js +286 -0
  300. package/dist/index-DLdU7Tpd.js +183 -0
  301. package/dist/index-DWUXwgXK.js +809 -0
  302. package/dist/index-DmZOkMjs.js +3628 -0
  303. package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
  304. package/dist/index-hoPiccJv.js +415 -0
  305. package/dist/index.js +61 -31
  306. package/dist/interface/address.d.ts +10 -0
  307. package/dist/interface/address.js +1 -0
  308. package/dist/interface/appointment.d.ts +57 -0
  309. package/dist/interface/appointment.js +5 -0
  310. package/dist/interface/appointmentV2.d.ts +65 -0
  311. package/dist/interface/appointmentV2.js +1 -0
  312. package/dist/interface/appointmentsState.d.ts +21 -0
  313. package/dist/interface/appointmentsState.js +1 -0
  314. package/dist/interface/common.d.ts +2 -0
  315. package/dist/interface/common.js +1 -0
  316. package/dist/interface/completionData.d.ts +18 -0
  317. package/dist/interface/completionData.js +1 -0
  318. package/dist/interface/deliveryPartner.d.ts +25 -0
  319. package/dist/interface/deliveryPartner.js +1 -0
  320. package/dist/interface/organization.d.ts +9 -0
  321. package/dist/interface/organization.js +1 -0
  322. package/dist/interface/pagination.d.ts +8 -0
  323. package/dist/interface/pagination.js +1 -0
  324. package/dist/interface/roles.d.ts +9 -0
  325. package/dist/interface/roles.js +1 -0
  326. package/dist/interface/route.d.ts +73 -0
  327. package/dist/interface/route.js +1 -0
  328. package/dist/interface/routeAnalysis.d.ts +108 -0
  329. package/dist/interface/routeAnalysis.js +1 -0
  330. package/dist/interface/routeAutomationJob.d.ts +95 -0
  331. package/dist/interface/routeAutomationJob.js +10 -0
  332. package/dist/interface/routeAutomationLog.d.ts +10 -0
  333. package/dist/interface/routeAutomationLog.js +1 -0
  334. package/dist/interface/routeEvent.d.ts +55 -0
  335. package/dist/interface/routeEvent.js +5 -0
  336. package/dist/interface/serviceArea.d.ts +18 -0
  337. package/dist/interface/serviceArea.js +1 -0
  338. package/dist/interface/util.d.ts +3 -0
  339. package/dist/interface/util.js +1 -0
  340. package/dist/interface/vehicle.d.ts +120 -0
  341. package/dist/interface/vehicle.js +1 -0
  342. package/dist/interface/workOrder.d.ts +22 -0
  343. package/dist/interface/workOrder.js +1 -0
  344. package/dist/isVisible-D3-B85BJ.js +22 -0
  345. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  346. package/dist/omit-B_u6A-HL.js +9 -0
  347. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  348. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  349. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  350. package/dist/providers/BreakpointThemeProvider.js +21 -0
  351. package/dist/providers/GenesisProvider.js +3 -3
  352. package/dist/providers/ToastProvider.js +22 -6
  353. package/dist/providers/index.js +1 -1
  354. package/dist/providers/useGenesis.js +2 -2
  355. package/dist/responsiveObserver-O1kw80RG.js +73 -0
  356. package/dist/setup-CKu7-AfI.js +24706 -0
  357. package/dist/setup.types-dBtAXXGp.js +8824 -0
  358. package/dist/shadow-BoMGMNn3.js +13 -0
  359. package/dist/styleChecker-Cotu61d0.js +21 -0
  360. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
  361. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  362. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  363. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  364. package/dist/styles/theme/genesis-theme.js +468 -263
  365. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  366. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  367. package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
  368. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  369. package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
  370. package/dist/styles-BSD221S5.js +289 -0
  371. package/dist/styles-D9iYILpv.js +9195 -0
  372. package/dist/test/setup.d.ts +2 -3
  373. package/dist/test/setup.js +87 -4
  374. package/dist/test/setup.types.d.ts +7 -0
  375. package/dist/test/setup.types.js +1 -0
  376. package/dist/toArray-DGvPoJP_.js +11 -0
  377. package/dist/useBreakpoint-CAMzKscx.js +22 -0
  378. package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
  379. package/dist/useId-D2tzlufo.js +26 -0
  380. package/dist/useLocale-DWRfeMSS.js +16 -0
  381. package/dist/useMergedState-BoELfaU9.js +23 -0
  382. package/dist/useSize-CPo2bUE3.js +9 -0
  383. package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
  384. package/dist/useZIndex-D81lkWy4.js +44 -0
  385. package/dist/utils/icon-util.d.ts +2 -0
  386. package/dist/utils/icon-util.js +95 -0
  387. package/package.json +26 -15
  388. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  389. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  390. package/dist/Typography-aGoDUl4R.js +0 -710
  391. package/dist/index-BZAhCB_K.js +0 -97
  392. package/dist/index-CfDY25LP.js +0 -873
  393. package/dist/isVisible-A-IfeFoT.js +0 -367
  394. package/dist/providers/ThemeProvider.d.ts +0 -9
  395. package/dist/providers/ThemeProvider.js +0 -21
  396. package/dist/setup-BvfREoHl.js +0 -33891
  397. package/dist/useLocale-DT-z_vQ6.js +0 -16
  398. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  399. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  400. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  401. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  402. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  403. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  404. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  405. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  406. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  407. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  408. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  409. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  410. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  411. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  412. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  413. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  414. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  415. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,2044 @@
1
+ import * as l from "react";
2
+ import { useContext as he, useState as ve, useEffect as ce, useRef as Ne, createContext as qe, forwardRef as Te, useImperativeHandle as Fe } from "react";
3
+ import { d as pe, e as P, F as Ce } from "./presets-Djh_L_6R.js";
4
+ import { I as fe } from "./AntdIcon-nCNB0J1E.js";
5
+ import { a as Ge, M as Ye, u as Ue, S as Ze, E as Ke, R as Je, b as Qe, D as et } from "./EllipsisOutlined-CJ2pgE2d.js";
6
+ import { g as oe, j as p, C as re, O as tt, z as nt, y as ot, q as rt, t as it, m as me, s as Ie, r as He, M as lt, e as Pe, a as De, k as Se, c as at } from "./index-ByspLxrB.js";
7
+ import { u as st } from "./useMergedState-BoELfaU9.js";
8
+ import { o as Z } from "./omit-B_u6A-HL.js";
9
+ import { u as Me, z as dt } from "./useZIndex-D81lkWy4.js";
10
+ import { T as ct, i as je, g as ut, b as mt, a as gt, c as pt } from "./index-CqqwGTME.js";
11
+ import { i as xe, g as ft } from "./DownOutlined-5-15jS0h.js";
12
+ import { c as ie } from "./reactNode-sKPeiqPL.js";
13
+ import { u as Re } from "./useCSSVarCls-C-MlZC6a.js";
14
+ import "./index-DLdU7Tpd.js";
15
+ import { b as $t } from "./index-DWUXwgXK.js";
16
+ import { t as bt } from "./toArray-DGvPoJP_.js";
17
+ import { C as ht } from "./ContextIsolator-CwuJooYf.js";
18
+ import { g as vt } from "./collapse-Dtpt-6W_.js";
19
+ import { i as Q, s as Ct, a as It, b as St, c as xt } from "./Overflow-DdNKJLQh.js";
20
+ var wt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, yt = function(n, e) {
21
+ return /* @__PURE__ */ l.createElement(fe, pe({}, n, {
22
+ ref: e,
23
+ icon: wt
24
+ }));
25
+ }, ee = /* @__PURE__ */ l.forwardRef(yt);
26
+ process.env.NODE_ENV !== "production" && (ee.displayName = "RightOutlined");
27
+ const Bt = (t) => typeof t != "object" && typeof t != "function" || t === null;
28
+ var Ot = { 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" }, Et = function(n, e) {
29
+ return /* @__PURE__ */ l.createElement(fe, pe({}, n, {
30
+ ref: e,
31
+ icon: Ot
32
+ }));
33
+ }, Ae = /* @__PURE__ */ l.forwardRef(Et);
34
+ process.env.NODE_ENV !== "production" && (Ae.displayName = "BarsOutlined");
35
+ var zt = { 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" }, Nt = function(n, e) {
36
+ return /* @__PURE__ */ l.createElement(fe, pe({}, n, {
37
+ ref: e,
38
+ icon: zt
39
+ }));
40
+ }, ge = /* @__PURE__ */ l.forwardRef(Nt);
41
+ process.env.NODE_ENV !== "production" && (ge.displayName = "LeftOutlined");
42
+ const Tt = /* @__PURE__ */ l.createContext({
43
+ siderHook: {
44
+ addSider: () => null,
45
+ removeSider: () => null
46
+ }
47
+ }), Ht = (t) => {
48
+ const {
49
+ antCls: n,
50
+ // .ant
51
+ componentCls: e,
52
+ // .ant-layout
53
+ colorText: r,
54
+ footerBg: o,
55
+ headerHeight: a,
56
+ headerPadding: i,
57
+ headerColor: d,
58
+ footerPadding: s,
59
+ fontSize: m,
60
+ bodyBg: f,
61
+ headerBg: b
62
+ } = t;
63
+ return {
64
+ [e]: {
65
+ display: "flex",
66
+ flex: "auto",
67
+ flexDirection: "column",
68
+ /* fix firefox can't set height smaller than content on flex item */
69
+ minHeight: 0,
70
+ background: f,
71
+ "&, *": {
72
+ boxSizing: "border-box"
73
+ },
74
+ [`&${e}-has-sider`]: {
75
+ flexDirection: "row",
76
+ [`> ${e}, > ${e}-content`]: {
77
+ // https://segmentfault.com/a/1190000019498300
78
+ width: 0
79
+ }
80
+ },
81
+ [`${e}-header, &${e}-footer`]: {
82
+ flex: "0 0 auto"
83
+ },
84
+ // RTL
85
+ "&-rtl": {
86
+ direction: "rtl"
87
+ }
88
+ },
89
+ // ==================== Header ====================
90
+ [`${e}-header`]: {
91
+ height: a,
92
+ padding: i,
93
+ color: d,
94
+ lineHeight: p(a),
95
+ background: b,
96
+ // Other components/menu/style/index.less line:686
97
+ // Integration with header element so menu items have the same height
98
+ [`${n}-menu`]: {
99
+ lineHeight: "inherit"
100
+ }
101
+ },
102
+ // ==================== Footer ====================
103
+ [`${e}-footer`]: {
104
+ padding: s,
105
+ color: r,
106
+ fontSize: m,
107
+ background: o
108
+ },
109
+ // =================== Content ====================
110
+ [`${e}-content`]: {
111
+ flex: "auto",
112
+ color: r,
113
+ // fix firefox can't set height smaller than content on flex item
114
+ minHeight: 0
115
+ }
116
+ };
117
+ }, Le = (t) => {
118
+ const {
119
+ colorBgLayout: n,
120
+ controlHeight: e,
121
+ controlHeightLG: r,
122
+ colorText: o,
123
+ controlHeightSM: a,
124
+ marginXXS: i,
125
+ colorTextLightSolid: d,
126
+ colorBgContainer: s
127
+ } = t, m = r * 1.25;
128
+ return {
129
+ // Deprecated
130
+ colorBgHeader: "#001529",
131
+ colorBgBody: n,
132
+ colorBgTrigger: "#002140",
133
+ bodyBg: n,
134
+ headerBg: "#001529",
135
+ headerHeight: e * 2,
136
+ headerPadding: `0 ${m}px`,
137
+ headerColor: o,
138
+ footerPadding: `${a}px ${m}px`,
139
+ footerBg: n,
140
+ siderBg: "#001529",
141
+ triggerHeight: r + i * 2,
142
+ triggerBg: "#002140",
143
+ triggerColor: d,
144
+ zeroTriggerWidth: r,
145
+ zeroTriggerHeight: r,
146
+ lightSiderBg: s,
147
+ lightTriggerBg: s,
148
+ lightTriggerColor: o
149
+ };
150
+ }, _e = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]], Sn = oe("Layout", (t) => [Ht(t)], Le, {
151
+ deprecatedTokens: _e
152
+ }), Pt = (t) => {
153
+ const {
154
+ componentCls: n,
155
+ siderBg: e,
156
+ motionDurationMid: r,
157
+ motionDurationSlow: o,
158
+ antCls: a,
159
+ triggerHeight: i,
160
+ triggerColor: d,
161
+ triggerBg: s,
162
+ headerHeight: m,
163
+ zeroTriggerWidth: f,
164
+ zeroTriggerHeight: b,
165
+ borderRadiusLG: u,
166
+ lightSiderBg: $,
167
+ lightTriggerColor: c,
168
+ lightTriggerBg: g,
169
+ bodyBg: h
170
+ } = t;
171
+ return {
172
+ [n]: {
173
+ position: "relative",
174
+ // fix firefox can't set width smaller than content on flex item
175
+ minWidth: 0,
176
+ background: e,
177
+ transition: `all ${r}, background 0s`,
178
+ "&-has-trigger": {
179
+ paddingBottom: i
180
+ },
181
+ "&-right": {
182
+ order: 1
183
+ },
184
+ [`${n}-children`]: {
185
+ height: "100%",
186
+ // Hack for fixing margin collapse bug
187
+ // https://github.com/ant-design/ant-design/issues/7967
188
+ // solution from https://stackoverflow.com/a/33132624/3040605
189
+ marginTop: -0.1,
190
+ paddingTop: 0.1,
191
+ [`${a}-menu${a}-menu-inline-collapsed`]: {
192
+ width: "auto"
193
+ }
194
+ },
195
+ [`${n}-trigger`]: {
196
+ position: "fixed",
197
+ bottom: 0,
198
+ zIndex: 1,
199
+ height: i,
200
+ color: d,
201
+ lineHeight: p(i),
202
+ textAlign: "center",
203
+ background: s,
204
+ cursor: "pointer",
205
+ transition: `all ${r}`
206
+ },
207
+ [`${n}-zero-width`]: {
208
+ "> *": {
209
+ overflow: "hidden"
210
+ },
211
+ "&-trigger": {
212
+ position: "absolute",
213
+ top: m,
214
+ insetInlineEnd: t.calc(f).mul(-1).equal(),
215
+ zIndex: 1,
216
+ width: f,
217
+ height: b,
218
+ color: d,
219
+ fontSize: t.fontSizeXL,
220
+ display: "flex",
221
+ alignItems: "center",
222
+ justifyContent: "center",
223
+ background: e,
224
+ borderRadius: `0 ${p(u)} ${p(u)} 0`,
225
+ cursor: "pointer",
226
+ transition: `background ${o} ease`,
227
+ "&::after": {
228
+ position: "absolute",
229
+ inset: 0,
230
+ background: "transparent",
231
+ transition: `all ${o}`,
232
+ content: '""'
233
+ },
234
+ "&:hover::after": {
235
+ background: "rgba(255, 255, 255, 0.2)"
236
+ },
237
+ "&-right": {
238
+ insetInlineStart: t.calc(f).mul(-1).equal(),
239
+ borderRadius: `${p(u)} 0 0 ${p(u)}`
240
+ }
241
+ }
242
+ },
243
+ // Light
244
+ "&-light": {
245
+ background: $,
246
+ [`${n}-trigger`]: {
247
+ color: c,
248
+ background: g
249
+ },
250
+ [`${n}-zero-width-trigger`]: {
251
+ color: c,
252
+ background: g,
253
+ border: `1px solid ${h}`,
254
+ // Safe to modify to any other color
255
+ borderInlineStart: 0
256
+ }
257
+ }
258
+ }
259
+ };
260
+ }, Dt = oe(["Layout", "Sider"], (t) => [Pt(t)], Le, {
261
+ deprecatedTokens: _e
262
+ });
263
+ var Mt = function(t, n) {
264
+ var e = {};
265
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
266
+ if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
267
+ n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
268
+ return e;
269
+ };
270
+ const we = {
271
+ xs: "479.98px",
272
+ sm: "575.98px",
273
+ md: "767.98px",
274
+ lg: "991.98px",
275
+ xl: "1199.98px",
276
+ xxl: "1599.98px"
277
+ }, jt = (t) => !Number.isNaN(Number.parseFloat(t)) && isFinite(t), $e = /* @__PURE__ */ l.createContext({}), Rt = /* @__PURE__ */ (() => {
278
+ let t = 0;
279
+ return function() {
280
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
281
+ return t += 1, `${n}${t}`;
282
+ };
283
+ })(), At = /* @__PURE__ */ l.forwardRef((t, n) => {
284
+ const {
285
+ prefixCls: e,
286
+ className: r,
287
+ trigger: o,
288
+ children: a,
289
+ defaultCollapsed: i = !1,
290
+ theme: d = "dark",
291
+ style: s = {},
292
+ collapsible: m = !1,
293
+ reverseArrow: f = !1,
294
+ width: b = 200,
295
+ collapsedWidth: u = 80,
296
+ zeroWidthTriggerStyle: $,
297
+ breakpoint: c,
298
+ onCollapse: g,
299
+ onBreakpoint: h
300
+ } = t, x = Mt(t, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
301
+ siderHook: B
302
+ } = he(Tt), [y, v] = ve("collapsed" in t ? t.collapsed : i), [O, N] = ve(!1);
303
+ ce(() => {
304
+ "collapsed" in t && v(t.collapsed);
305
+ }, [t.collapsed]);
306
+ const A = (E, D) => {
307
+ "collapsed" in t || v(E), g == null || g(E, D);
308
+ }, {
309
+ getPrefixCls: T,
310
+ direction: I
311
+ } = he(re), S = T("layout-sider", e), [H, M, L] = Dt(S), C = Ne(null);
312
+ C.current = (E) => {
313
+ N(E.matches), h == null || h(E.matches), y !== E.matches && A(E.matches, "responsive");
314
+ }, ce(() => {
315
+ function E(F) {
316
+ return C.current(F);
317
+ }
318
+ let D;
319
+ if (typeof window < "u") {
320
+ const {
321
+ matchMedia: F
322
+ } = window;
323
+ if (F && c && c in we) {
324
+ D = F(`screen and (max-width: ${we[c]})`);
325
+ try {
326
+ D.addEventListener("change", E);
327
+ } catch {
328
+ D.addListener(E);
329
+ }
330
+ E(D);
331
+ }
332
+ }
333
+ return () => {
334
+ try {
335
+ D == null || D.removeEventListener("change", E);
336
+ } catch {
337
+ D == null || D.removeListener(E);
338
+ }
339
+ };
340
+ }, [c]), ce(() => {
341
+ const E = Rt("ant-sider-");
342
+ return B.addSider(E), () => B.removeSider(E);
343
+ }, []);
344
+ const j = () => {
345
+ A(!y, "clickTrigger");
346
+ }, W = Z(x, ["collapsed"]), _ = y ? u : b, R = jt(_) ? `${_}px` : String(_), k = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
347
+ onClick: j,
348
+ className: P(`${S}-zero-width-trigger`, `${S}-zero-width-trigger-${f ? "right" : "left"}`),
349
+ style: $
350
+ }, o || /* @__PURE__ */ l.createElement(Ae, null)) : null, V = I === "rtl" == !f, X = {
351
+ expanded: V ? /* @__PURE__ */ l.createElement(ee, null) : /* @__PURE__ */ l.createElement(ge, null),
352
+ collapsed: V ? /* @__PURE__ */ l.createElement(ge, null) : /* @__PURE__ */ l.createElement(ee, null)
353
+ }[y ? "collapsed" : "expanded"], q = o !== null ? k || /* @__PURE__ */ l.createElement("div", {
354
+ className: `${S}-trigger`,
355
+ onClick: j,
356
+ style: {
357
+ width: R
358
+ }
359
+ }, o || X) : null, J = Object.assign(Object.assign({}, s), {
360
+ flex: `0 0 ${R}`,
361
+ maxWidth: R,
362
+ minWidth: R,
363
+ width: R
364
+ }), le = P(S, `${S}-${d}`, {
365
+ [`${S}-collapsed`]: !!y,
366
+ [`${S}-has-trigger`]: m && o !== null && !k,
367
+ [`${S}-below`]: !!O,
368
+ [`${S}-zero-width`]: parseFloat(R) === 0
369
+ }, r, M, L), ae = l.useMemo(() => ({
370
+ siderCollapsed: y
371
+ }), [y]);
372
+ return H(/* @__PURE__ */ l.createElement($e.Provider, {
373
+ value: ae
374
+ }, /* @__PURE__ */ l.createElement("aside", Object.assign({
375
+ className: le
376
+ }, W, {
377
+ style: J,
378
+ ref: n
379
+ }), /* @__PURE__ */ l.createElement("div", {
380
+ className: `${S}-children`
381
+ }, a), m || O && k ? q : null)));
382
+ });
383
+ process.env.NODE_ENV !== "production" && (At.displayName = "Sider");
384
+ const te = /* @__PURE__ */ qe({
385
+ prefixCls: "",
386
+ firstLevel: !0,
387
+ inlineCollapsed: !1
388
+ });
389
+ var Lt = function(t, n) {
390
+ var e = {};
391
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
392
+ if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
393
+ n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
394
+ return e;
395
+ };
396
+ const ke = (t) => {
397
+ const {
398
+ prefixCls: n,
399
+ className: e,
400
+ dashed: r
401
+ } = t, o = Lt(t, ["prefixCls", "className", "dashed"]), {
402
+ getPrefixCls: a
403
+ } = l.useContext(re), i = a("menu", n), d = P({
404
+ [`${i}-item-divider-dashed`]: !!r
405
+ }, e);
406
+ return /* @__PURE__ */ l.createElement(Ge, Object.assign({
407
+ className: d
408
+ }, o));
409
+ }, We = (t) => {
410
+ var n;
411
+ const {
412
+ className: e,
413
+ children: r,
414
+ icon: o,
415
+ title: a,
416
+ danger: i,
417
+ extra: d
418
+ } = t, {
419
+ prefixCls: s,
420
+ firstLevel: m,
421
+ direction: f,
422
+ disableMenuItemTitleTooltip: b,
423
+ inlineCollapsed: u
424
+ } = l.useContext(te), $ = (y) => {
425
+ const v = r == null ? void 0 : r[0], O = /* @__PURE__ */ l.createElement("span", {
426
+ className: P(`${s}-title-content`, {
427
+ [`${s}-title-content-with-extra`]: !!d || d === 0
428
+ })
429
+ }, r);
430
+ return (!o || /* @__PURE__ */ l.isValidElement(r) && r.type === "span") && r && y && m && typeof v == "string" ? /* @__PURE__ */ l.createElement("div", {
431
+ className: `${s}-inline-collapsed-noicon`
432
+ }, v.charAt(0)) : O;
433
+ }, {
434
+ siderCollapsed: c
435
+ } = l.useContext($e);
436
+ let g = a;
437
+ typeof a > "u" ? g = m ? r : "" : a === !1 && (g = "");
438
+ const h = {
439
+ title: g
440
+ };
441
+ !c && !u && (h.title = null, h.open = !1);
442
+ const x = bt(r).length;
443
+ let B = /* @__PURE__ */ l.createElement(Ye, Object.assign({}, Z(t, ["title", "icon", "danger"]), {
444
+ className: P({
445
+ [`${s}-item-danger`]: i,
446
+ [`${s}-item-only-child`]: (o ? x + 1 : x) === 1
447
+ }, e),
448
+ title: typeof a == "string" ? a : void 0
449
+ }), ie(o, {
450
+ className: P(/* @__PURE__ */ l.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${s}-item-icon`)
451
+ }), $(u));
452
+ return b || (B = /* @__PURE__ */ l.createElement(ct, Object.assign({}, h, {
453
+ placement: f === "rtl" ? "left" : "right",
454
+ classNames: {
455
+ root: `${s}-inline-collapsed-tooltip`
456
+ }
457
+ }), B)), B;
458
+ };
459
+ var _t = function(t, n) {
460
+ var e = {};
461
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
462
+ if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
463
+ n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
464
+ return e;
465
+ };
466
+ const ne = /* @__PURE__ */ l.createContext(null), kt = /* @__PURE__ */ l.forwardRef((t, n) => {
467
+ const {
468
+ children: e
469
+ } = t, r = _t(t, ["children"]), o = l.useContext(ne), a = l.useMemo(() => Object.assign(Object.assign({}, o), r), [
470
+ o,
471
+ r.prefixCls,
472
+ // restProps.expandIcon, Not mark as deps since this is a ReactNode
473
+ r.mode,
474
+ r.selectable,
475
+ r.rootClassName
476
+ // restProps.validator, Not mark as deps since this is a function
477
+ ]), i = tt(e), d = nt(n, i ? ot(e) : null);
478
+ return /* @__PURE__ */ l.createElement(ne.Provider, {
479
+ value: a
480
+ }, /* @__PURE__ */ l.createElement(ht, {
481
+ space: !0
482
+ }, i ? /* @__PURE__ */ l.cloneElement(e, {
483
+ ref: d
484
+ }) : e));
485
+ }), Wt = (t) => {
486
+ const {
487
+ componentCls: n,
488
+ motionDurationSlow: e,
489
+ horizontalLineHeight: r,
490
+ colorSplit: o,
491
+ lineWidth: a,
492
+ lineType: i,
493
+ itemPaddingInline: d
494
+ } = t;
495
+ return {
496
+ [`${n}-horizontal`]: {
497
+ lineHeight: r,
498
+ border: 0,
499
+ borderBottom: `${p(a)} ${i} ${o}`,
500
+ boxShadow: "none",
501
+ "&::after": {
502
+ display: "block",
503
+ clear: "both",
504
+ height: 0,
505
+ content: '"\\20"'
506
+ },
507
+ // ======================= Item =======================
508
+ [`${n}-item, ${n}-submenu`]: {
509
+ position: "relative",
510
+ display: "inline-block",
511
+ verticalAlign: "bottom",
512
+ paddingInline: d
513
+ },
514
+ [`> ${n}-item:hover,
515
+ > ${n}-item-active,
516
+ > ${n}-submenu ${n}-submenu-title:hover`]: {
517
+ backgroundColor: "transparent"
518
+ },
519
+ [`${n}-item, ${n}-submenu-title`]: {
520
+ transition: [`border-color ${e}`, `background ${e}`].join(",")
521
+ },
522
+ // ===================== Sub Menu =====================
523
+ [`${n}-submenu-arrow`]: {
524
+ display: "none"
525
+ }
526
+ }
527
+ };
528
+ }, Vt = (t) => {
529
+ let {
530
+ componentCls: n,
531
+ menuArrowOffset: e,
532
+ calc: r
533
+ } = t;
534
+ return {
535
+ [`${n}-rtl`]: {
536
+ direction: "rtl"
537
+ },
538
+ [`${n}-submenu-rtl`]: {
539
+ transformOrigin: "100% 0"
540
+ },
541
+ // Vertical Arrow
542
+ [`${n}-rtl${n}-vertical,
543
+ ${n}-submenu-rtl ${n}-vertical`]: {
544
+ [`${n}-submenu-arrow`]: {
545
+ "&::before": {
546
+ transform: `rotate(-45deg) translateY(${p(r(e).mul(-1).equal())})`
547
+ },
548
+ "&::after": {
549
+ transform: `rotate(45deg) translateY(${p(e)})`
550
+ }
551
+ }
552
+ }
553
+ };
554
+ }, ye = (t) => Object.assign({}, rt(t)), Be = (t, n) => {
555
+ const {
556
+ componentCls: e,
557
+ itemColor: r,
558
+ itemSelectedColor: o,
559
+ subMenuItemSelectedColor: a,
560
+ groupTitleColor: i,
561
+ itemBg: d,
562
+ subMenuItemBg: s,
563
+ itemSelectedBg: m,
564
+ activeBarHeight: f,
565
+ activeBarWidth: b,
566
+ activeBarBorderWidth: u,
567
+ motionDurationSlow: $,
568
+ motionEaseInOut: c,
569
+ motionEaseOut: g,
570
+ itemPaddingInline: h,
571
+ motionDurationMid: x,
572
+ itemHoverColor: B,
573
+ lineType: y,
574
+ colorSplit: v,
575
+ // Disabled
576
+ itemDisabledColor: O,
577
+ // Danger
578
+ dangerItemColor: N,
579
+ dangerItemHoverColor: A,
580
+ dangerItemSelectedColor: T,
581
+ dangerItemActiveBg: I,
582
+ dangerItemSelectedBg: S,
583
+ // Bg
584
+ popupBg: H,
585
+ itemHoverBg: M,
586
+ itemActiveBg: L,
587
+ menuSubMenuBg: C,
588
+ // Horizontal
589
+ horizontalItemSelectedColor: j,
590
+ horizontalItemSelectedBg: W,
591
+ horizontalItemBorderRadius: _,
592
+ horizontalItemHoverBg: R
593
+ } = t;
594
+ return {
595
+ [`${e}-${n}, ${e}-${n} > ${e}`]: {
596
+ color: r,
597
+ background: d,
598
+ [`&${e}-root:focus-visible`]: Object.assign({}, ye(t)),
599
+ // ======================== Item ========================
600
+ [`${e}-item`]: {
601
+ "&-group-title, &-extra": {
602
+ color: i
603
+ }
604
+ },
605
+ [`${e}-submenu-selected > ${e}-submenu-title`]: {
606
+ color: a
607
+ },
608
+ [`${e}-item, ${e}-submenu-title`]: {
609
+ color: r,
610
+ [`&:not(${e}-item-disabled):focus-visible`]: Object.assign({}, ye(t))
611
+ },
612
+ // Disabled
613
+ [`${e}-item-disabled, ${e}-submenu-disabled`]: {
614
+ color: `${O} !important`
615
+ },
616
+ // Hover
617
+ [`${e}-item:not(${e}-item-selected):not(${e}-submenu-selected)`]: {
618
+ [`&:hover, > ${e}-submenu-title:hover`]: {
619
+ color: B
620
+ }
621
+ },
622
+ [`&:not(${e}-horizontal)`]: {
623
+ [`${e}-item:not(${e}-item-selected)`]: {
624
+ "&:hover": {
625
+ backgroundColor: M
626
+ },
627
+ "&:active": {
628
+ backgroundColor: L
629
+ }
630
+ },
631
+ [`${e}-submenu-title`]: {
632
+ "&:hover": {
633
+ backgroundColor: M
634
+ },
635
+ "&:active": {
636
+ backgroundColor: L
637
+ }
638
+ }
639
+ },
640
+ // Danger - only Item has
641
+ [`${e}-item-danger`]: {
642
+ color: N,
643
+ [`&${e}-item:hover`]: {
644
+ [`&:not(${e}-item-selected):not(${e}-submenu-selected)`]: {
645
+ color: A
646
+ }
647
+ },
648
+ [`&${e}-item:active`]: {
649
+ background: I
650
+ }
651
+ },
652
+ [`${e}-item a`]: {
653
+ "&, &:hover": {
654
+ color: "inherit"
655
+ }
656
+ },
657
+ [`${e}-item-selected`]: {
658
+ color: o,
659
+ // Danger
660
+ [`&${e}-item-danger`]: {
661
+ color: T
662
+ },
663
+ "a, a:hover": {
664
+ color: "inherit"
665
+ }
666
+ },
667
+ [`& ${e}-item-selected`]: {
668
+ backgroundColor: m,
669
+ // Danger
670
+ [`&${e}-item-danger`]: {
671
+ backgroundColor: S
672
+ }
673
+ },
674
+ [`&${e}-submenu > ${e}`]: {
675
+ backgroundColor: C
676
+ },
677
+ // ===== 设置浮层的颜色 =======
678
+ // !dark 模式会被popupBg 会被rest 为 darkPopupBg
679
+ [`&${e}-popup > ${e}`]: {
680
+ backgroundColor: H
681
+ },
682
+ [`&${e}-submenu-popup > ${e}`]: {
683
+ backgroundColor: H
684
+ },
685
+ // ===== 设置浮层的颜色 end =======
686
+ // ====================== Horizontal ======================
687
+ [`&${e}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
688
+ borderBottom: 0
689
+ } : {}), {
690
+ [`> ${e}-item, > ${e}-submenu`]: {
691
+ top: u,
692
+ marginTop: t.calc(u).mul(-1).equal(),
693
+ marginBottom: 0,
694
+ borderRadius: _,
695
+ "&::after": {
696
+ position: "absolute",
697
+ insetInline: h,
698
+ bottom: 0,
699
+ borderBottom: `${p(f)} solid transparent`,
700
+ transition: `border-color ${$} ${c}`,
701
+ content: '""'
702
+ },
703
+ "&:hover, &-active, &-open": {
704
+ background: R,
705
+ "&::after": {
706
+ borderBottomWidth: f,
707
+ borderBottomColor: j
708
+ }
709
+ },
710
+ "&-selected": {
711
+ color: j,
712
+ backgroundColor: W,
713
+ "&:hover": {
714
+ backgroundColor: W
715
+ },
716
+ "&::after": {
717
+ borderBottomWidth: f,
718
+ borderBottomColor: j
719
+ }
720
+ }
721
+ }
722
+ }),
723
+ // ================== Inline & Vertical ===================
724
+ //
725
+ [`&${e}-root`]: {
726
+ [`&${e}-inline, &${e}-vertical`]: {
727
+ borderInlineEnd: `${p(u)} ${y} ${v}`
728
+ }
729
+ },
730
+ // ======================== Inline ========================
731
+ [`&${e}-inline`]: {
732
+ // Sub
733
+ [`${e}-sub${e}-inline`]: {
734
+ background: s
735
+ },
736
+ [`${e}-item`]: {
737
+ position: "relative",
738
+ "&::after": {
739
+ position: "absolute",
740
+ insetBlock: 0,
741
+ insetInlineEnd: 0,
742
+ borderInlineEnd: `${p(b)} solid ${o}`,
743
+ transform: "scaleY(0.0001)",
744
+ opacity: 0,
745
+ transition: [`transform ${x} ${g}`, `opacity ${x} ${g}`].join(","),
746
+ content: '""'
747
+ },
748
+ // Danger
749
+ [`&${e}-item-danger`]: {
750
+ "&::after": {
751
+ borderInlineEndColor: T
752
+ }
753
+ }
754
+ },
755
+ [`${e}-selected, ${e}-item-selected`]: {
756
+ "&::after": {
757
+ transform: "scaleY(1)",
758
+ opacity: 1,
759
+ transition: [`transform ${x} ${c}`, `opacity ${x} ${c}`].join(",")
760
+ }
761
+ }
762
+ }
763
+ }
764
+ };
765
+ }, Oe = (t) => {
766
+ const {
767
+ componentCls: n,
768
+ itemHeight: e,
769
+ itemMarginInline: r,
770
+ padding: o,
771
+ menuArrowSize: a,
772
+ marginXS: i,
773
+ itemMarginBlock: d,
774
+ itemWidth: s,
775
+ itemPaddingInline: m
776
+ } = t, f = t.calc(a).add(o).add(i).equal();
777
+ return {
778
+ [`${n}-item`]: {
779
+ position: "relative",
780
+ overflow: "hidden"
781
+ },
782
+ [`${n}-item, ${n}-submenu-title`]: {
783
+ height: e,
784
+ lineHeight: p(e),
785
+ paddingInline: m,
786
+ overflow: "hidden",
787
+ textOverflow: "ellipsis",
788
+ marginInline: r,
789
+ marginBlock: d,
790
+ width: s
791
+ },
792
+ [`> ${n}-item,
793
+ > ${n}-submenu > ${n}-submenu-title`]: {
794
+ height: e,
795
+ lineHeight: p(e)
796
+ },
797
+ [`${n}-item-group-list ${n}-submenu-title,
798
+ ${n}-submenu-title`]: {
799
+ paddingInlineEnd: f
800
+ }
801
+ };
802
+ }, Xt = (t) => {
803
+ const {
804
+ componentCls: n,
805
+ iconCls: e,
806
+ itemHeight: r,
807
+ colorTextLightSolid: o,
808
+ dropdownWidth: a,
809
+ controlHeightLG: i,
810
+ motionEaseOut: d,
811
+ paddingXL: s,
812
+ itemMarginInline: m,
813
+ fontSizeLG: f,
814
+ motionDurationFast: b,
815
+ motionDurationSlow: u,
816
+ paddingXS: $,
817
+ boxShadowSecondary: c,
818
+ collapsedWidth: g,
819
+ collapsedIconSize: h
820
+ } = t, x = {
821
+ height: r,
822
+ lineHeight: p(r),
823
+ listStylePosition: "inside",
824
+ listStyleType: "disc"
825
+ };
826
+ return [
827
+ {
828
+ [n]: {
829
+ "&-inline, &-vertical": Object.assign({
830
+ [`&${n}-root`]: {
831
+ boxShadow: "none"
832
+ }
833
+ }, Oe(t))
834
+ },
835
+ [`${n}-submenu-popup`]: {
836
+ [`${n}-vertical`]: Object.assign(Object.assign({}, Oe(t)), {
837
+ boxShadow: c
838
+ })
839
+ }
840
+ },
841
+ // Vertical only
842
+ {
843
+ [`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
844
+ minWidth: a,
845
+ maxHeight: `calc(100vh - ${p(t.calc(i).mul(2.5).equal())})`,
846
+ padding: "0",
847
+ overflow: "hidden",
848
+ borderInlineEnd: 0,
849
+ // https://github.com/ant-design/ant-design/issues/22244
850
+ // https://github.com/ant-design/ant-design/issues/26812
851
+ "&:not([class*='-active'])": {
852
+ overflowX: "hidden",
853
+ overflowY: "auto"
854
+ }
855
+ }
856
+ },
857
+ // Inline Only
858
+ {
859
+ [`${n}-inline`]: {
860
+ width: "100%",
861
+ // Motion enhance for first level
862
+ [`&${n}-root`]: {
863
+ [`${n}-item, ${n}-submenu-title`]: {
864
+ display: "flex",
865
+ alignItems: "center",
866
+ transition: [`border-color ${u}`, `background ${u}`, `padding ${b} ${d}`].join(","),
867
+ [`> ${n}-title-content`]: {
868
+ flex: "auto",
869
+ minWidth: 0,
870
+ overflow: "hidden",
871
+ textOverflow: "ellipsis"
872
+ },
873
+ "> *": {
874
+ flex: "none"
875
+ }
876
+ }
877
+ },
878
+ // >>>>> Sub
879
+ [`${n}-sub${n}-inline`]: {
880
+ padding: 0,
881
+ border: 0,
882
+ borderRadius: 0,
883
+ boxShadow: "none",
884
+ [`& > ${n}-submenu > ${n}-submenu-title`]: x,
885
+ [`& ${n}-item-group-title`]: {
886
+ paddingInlineStart: s
887
+ }
888
+ },
889
+ // >>>>> Item
890
+ [`${n}-item`]: x
891
+ }
892
+ },
893
+ // Inline Collapse Only
894
+ {
895
+ [`${n}-inline-collapsed`]: {
896
+ width: g,
897
+ [`&${n}-root`]: {
898
+ [`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
899
+ [`> ${n}-inline-collapsed-noicon`]: {
900
+ fontSize: f,
901
+ textAlign: "center"
902
+ }
903
+ }
904
+ },
905
+ [`> ${n}-item,
906
+ > ${n}-item-group > ${n}-item-group-list > ${n}-item,
907
+ > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
908
+ > ${n}-submenu > ${n}-submenu-title`]: {
909
+ insetInlineStart: 0,
910
+ paddingInline: `calc(50% - ${p(t.calc(h).div(2).equal())} - ${p(m)})`,
911
+ textOverflow: "clip",
912
+ [`
913
+ ${n}-submenu-arrow,
914
+ ${n}-submenu-expand-icon
915
+ `]: {
916
+ opacity: 0
917
+ },
918
+ [`${n}-item-icon, ${e}`]: {
919
+ margin: 0,
920
+ fontSize: h,
921
+ lineHeight: p(r),
922
+ "+ span": {
923
+ display: "inline-block",
924
+ opacity: 0
925
+ }
926
+ }
927
+ },
928
+ [`${n}-item-icon, ${e}`]: {
929
+ display: "inline-block"
930
+ },
931
+ "&-tooltip": {
932
+ pointerEvents: "none",
933
+ [`${n}-item-icon, ${e}`]: {
934
+ display: "none"
935
+ },
936
+ "a, a:hover": {
937
+ color: o
938
+ }
939
+ },
940
+ [`${n}-item-group-title`]: Object.assign(Object.assign({}, it), {
941
+ paddingInline: $
942
+ })
943
+ }
944
+ }
945
+ ];
946
+ }, Ee = (t) => {
947
+ const {
948
+ componentCls: n,
949
+ motionDurationSlow: e,
950
+ motionDurationMid: r,
951
+ motionEaseInOut: o,
952
+ motionEaseOut: a,
953
+ iconCls: i,
954
+ iconSize: d,
955
+ iconMarginInlineEnd: s
956
+ } = t;
957
+ return {
958
+ // >>>>> Item
959
+ [`${n}-item, ${n}-submenu-title`]: {
960
+ position: "relative",
961
+ display: "block",
962
+ margin: 0,
963
+ whiteSpace: "nowrap",
964
+ cursor: "pointer",
965
+ transition: [`border-color ${e}`, `background ${e}`, `padding calc(${e} + 0.1s) ${o}`].join(","),
966
+ [`${n}-item-icon, ${i}`]: {
967
+ minWidth: d,
968
+ fontSize: d,
969
+ transition: [`font-size ${r} ${a}`, `margin ${e} ${o}`, `color ${e}`].join(","),
970
+ "+ span": {
971
+ marginInlineStart: s,
972
+ opacity: 1,
973
+ transition: [`opacity ${e} ${o}`, `margin ${e}`, `color ${e}`].join(",")
974
+ }
975
+ },
976
+ [`${n}-item-icon`]: Object.assign({}, lt()),
977
+ [`&${n}-item-only-child`]: {
978
+ [`> ${i}, > ${n}-item-icon`]: {
979
+ marginInlineEnd: 0
980
+ }
981
+ }
982
+ },
983
+ // Disabled state sets text to gray and nukes hover/tab effects
984
+ [`${n}-item-disabled, ${n}-submenu-disabled`]: {
985
+ background: "none !important",
986
+ cursor: "not-allowed",
987
+ "&::after": {
988
+ borderColor: "transparent !important"
989
+ },
990
+ a: {
991
+ color: "inherit !important",
992
+ cursor: "not-allowed",
993
+ pointerEvents: "none"
994
+ },
995
+ [`> ${n}-submenu-title`]: {
996
+ color: "inherit !important",
997
+ cursor: "not-allowed"
998
+ }
999
+ }
1000
+ };
1001
+ }, ze = (t) => {
1002
+ const {
1003
+ componentCls: n,
1004
+ motionDurationSlow: e,
1005
+ motionEaseInOut: r,
1006
+ borderRadius: o,
1007
+ menuArrowSize: a,
1008
+ menuArrowOffset: i
1009
+ } = t;
1010
+ return {
1011
+ [`${n}-submenu`]: {
1012
+ "&-expand-icon, &-arrow": {
1013
+ position: "absolute",
1014
+ top: "50%",
1015
+ insetInlineEnd: t.margin,
1016
+ width: a,
1017
+ color: "currentcolor",
1018
+ transform: "translateY(-50%)",
1019
+ transition: `transform ${e} ${r}, opacity ${e}`
1020
+ },
1021
+ "&-arrow": {
1022
+ // →
1023
+ "&::before, &::after": {
1024
+ position: "absolute",
1025
+ width: t.calc(a).mul(0.6).equal(),
1026
+ height: t.calc(a).mul(0.15).equal(),
1027
+ backgroundColor: "currentcolor",
1028
+ borderRadius: o,
1029
+ transition: [`background ${e} ${r}`, `transform ${e} ${r}`, `top ${e} ${r}`, `color ${e} ${r}`].join(","),
1030
+ content: '""'
1031
+ },
1032
+ "&::before": {
1033
+ transform: `rotate(45deg) translateY(${p(t.calc(i).mul(-1).equal())})`
1034
+ },
1035
+ "&::after": {
1036
+ transform: `rotate(-45deg) translateY(${p(i)})`
1037
+ }
1038
+ }
1039
+ }
1040
+ };
1041
+ }, qt = (t) => {
1042
+ const {
1043
+ antCls: n,
1044
+ componentCls: e,
1045
+ fontSize: r,
1046
+ motionDurationSlow: o,
1047
+ motionDurationMid: a,
1048
+ motionEaseInOut: i,
1049
+ paddingXS: d,
1050
+ padding: s,
1051
+ colorSplit: m,
1052
+ lineWidth: f,
1053
+ zIndexPopup: b,
1054
+ borderRadiusLG: u,
1055
+ subMenuItemBorderRadius: $,
1056
+ menuArrowSize: c,
1057
+ menuArrowOffset: g,
1058
+ lineType: h,
1059
+ groupTitleLineHeight: x,
1060
+ groupTitleFontSize: B
1061
+ } = t;
1062
+ return [
1063
+ // Misc
1064
+ {
1065
+ "": {
1066
+ [e]: Object.assign(Object.assign({}, Ie()), {
1067
+ // Hidden
1068
+ "&-hidden": {
1069
+ display: "none"
1070
+ }
1071
+ })
1072
+ },
1073
+ [`${e}-submenu-hidden`]: {
1074
+ display: "none"
1075
+ }
1076
+ },
1077
+ {
1078
+ [e]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, He(t)), Ie()), {
1079
+ marginBottom: 0,
1080
+ paddingInlineStart: 0,
1081
+ // Override default ul/ol
1082
+ fontSize: r,
1083
+ lineHeight: 0,
1084
+ listStyle: "none",
1085
+ outline: "none",
1086
+ // Magic cubic here but smooth transition
1087
+ transition: `width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,
1088
+ "ul, ol": {
1089
+ margin: 0,
1090
+ padding: 0,
1091
+ listStyle: "none"
1092
+ },
1093
+ // Overflow ellipsis
1094
+ "&-overflow": {
1095
+ display: "flex",
1096
+ [`${e}-item`]: {
1097
+ flex: "none"
1098
+ }
1099
+ },
1100
+ [`${e}-item, ${e}-submenu, ${e}-submenu-title`]: {
1101
+ borderRadius: t.itemBorderRadius
1102
+ },
1103
+ [`${e}-item-group-title`]: {
1104
+ padding: `${p(d)} ${p(s)}`,
1105
+ fontSize: B,
1106
+ lineHeight: x,
1107
+ transition: `all ${o}`
1108
+ },
1109
+ [`&-horizontal ${e}-submenu`]: {
1110
+ transition: [`border-color ${o} ${i}`, `background ${o} ${i}`].join(",")
1111
+ },
1112
+ [`${e}-submenu, ${e}-submenu-inline`]: {
1113
+ transition: [`border-color ${o} ${i}`, `background ${o} ${i}`, `padding ${a} ${i}`].join(",")
1114
+ },
1115
+ [`${e}-submenu ${e}-sub`]: {
1116
+ cursor: "initial",
1117
+ transition: [`background ${o} ${i}`, `padding ${o} ${i}`].join(",")
1118
+ },
1119
+ [`${e}-title-content`]: {
1120
+ transition: `color ${o}`,
1121
+ "&-with-extra": {
1122
+ display: "inline-flex",
1123
+ alignItems: "center",
1124
+ width: "100%"
1125
+ },
1126
+ // https://github.com/ant-design/ant-design/issues/41143
1127
+ [`> ${n}-typography-ellipsis-single-line`]: {
1128
+ display: "inline",
1129
+ verticalAlign: "unset"
1130
+ },
1131
+ [`${e}-item-extra`]: {
1132
+ marginInlineStart: "auto",
1133
+ paddingInlineStart: t.padding
1134
+ }
1135
+ },
1136
+ [`${e}-item a`]: {
1137
+ "&::before": {
1138
+ position: "absolute",
1139
+ inset: 0,
1140
+ backgroundColor: "transparent",
1141
+ content: '""'
1142
+ }
1143
+ },
1144
+ // Removed a Badge related style seems it's safe
1145
+ // https://github.com/ant-design/ant-design/issues/19809
1146
+ // >>>>> Divider
1147
+ [`${e}-item-divider`]: {
1148
+ overflow: "hidden",
1149
+ lineHeight: 0,
1150
+ borderColor: m,
1151
+ borderStyle: h,
1152
+ borderWidth: 0,
1153
+ borderTopWidth: f,
1154
+ marginBlock: f,
1155
+ padding: 0,
1156
+ "&-dashed": {
1157
+ borderStyle: "dashed"
1158
+ }
1159
+ }
1160
+ }), Ee(t)), {
1161
+ [`${e}-item-group`]: {
1162
+ [`${e}-item-group-list`]: {
1163
+ margin: 0,
1164
+ padding: 0,
1165
+ [`${e}-item, ${e}-submenu-title`]: {
1166
+ paddingInline: `${p(t.calc(r).mul(2).equal())} ${p(s)}`
1167
+ }
1168
+ }
1169
+ },
1170
+ // ======================= Sub Menu =======================
1171
+ "&-submenu": {
1172
+ "&-popup": {
1173
+ position: "absolute",
1174
+ zIndex: b,
1175
+ borderRadius: u,
1176
+ boxShadow: "none",
1177
+ transformOrigin: "0 0",
1178
+ [`&${e}-submenu`]: {
1179
+ background: "transparent"
1180
+ },
1181
+ // https://github.com/ant-design/ant-design/issues/13955
1182
+ "&::before": {
1183
+ position: "absolute",
1184
+ inset: 0,
1185
+ zIndex: -1,
1186
+ width: "100%",
1187
+ height: "100%",
1188
+ opacity: 0,
1189
+ content: '""'
1190
+ },
1191
+ [`> ${e}`]: Object.assign(Object.assign(Object.assign({
1192
+ borderRadius: u
1193
+ }, Ee(t)), ze(t)), {
1194
+ [`${e}-item, ${e}-submenu > ${e}-submenu-title`]: {
1195
+ borderRadius: $
1196
+ },
1197
+ [`${e}-submenu-title::after`]: {
1198
+ transition: `transform ${o} ${i}`
1199
+ }
1200
+ })
1201
+ },
1202
+ "\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
1203
+ transformOrigin: "100% 0"
1204
+ },
1205
+ "\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
1206
+ transformOrigin: "100% 100%"
1207
+ },
1208
+ "\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
1209
+ transformOrigin: "0 100%"
1210
+ },
1211
+ "\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
1212
+ transformOrigin: "0 0"
1213
+ },
1214
+ "\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
1215
+ paddingInlineEnd: t.paddingXS
1216
+ },
1217
+ "\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
1218
+ paddingInlineStart: t.paddingXS
1219
+ },
1220
+ "\n &-placement-topRight,\n &-placement-topLeft\n ": {
1221
+ paddingBottom: t.paddingXS
1222
+ },
1223
+ "\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
1224
+ paddingTop: t.paddingXS
1225
+ }
1226
+ }
1227
+ }), ze(t)), {
1228
+ [`&-inline-collapsed ${e}-submenu-arrow,
1229
+ &-inline ${e}-submenu-arrow`]: {
1230
+ // ↓
1231
+ "&::before": {
1232
+ transform: `rotate(-45deg) translateX(${p(g)})`
1233
+ },
1234
+ "&::after": {
1235
+ transform: `rotate(45deg) translateX(${p(t.calc(g).mul(-1).equal())})`
1236
+ }
1237
+ },
1238
+ [`${e}-submenu-open${e}-submenu-inline > ${e}-submenu-title > ${e}-submenu-arrow`]: {
1239
+ // ↑
1240
+ transform: `translateY(${p(t.calc(c).mul(0.2).mul(-1).equal())})`,
1241
+ "&::after": {
1242
+ transform: `rotate(-45deg) translateX(${p(t.calc(g).mul(-1).equal())})`
1243
+ },
1244
+ "&::before": {
1245
+ transform: `rotate(45deg) translateX(${p(g)})`
1246
+ }
1247
+ }
1248
+ })
1249
+ },
1250
+ // Integration with header element so menu items have the same height
1251
+ {
1252
+ [`${n}-layout-header`]: {
1253
+ [e]: {
1254
+ lineHeight: "inherit"
1255
+ }
1256
+ }
1257
+ }
1258
+ ];
1259
+ }, Ft = (t) => {
1260
+ var n, e, r;
1261
+ const {
1262
+ colorPrimary: o,
1263
+ colorError: a,
1264
+ colorTextDisabled: i,
1265
+ colorErrorBg: d,
1266
+ colorText: s,
1267
+ colorTextDescription: m,
1268
+ colorBgContainer: f,
1269
+ colorFillAlter: b,
1270
+ colorFillContent: u,
1271
+ lineWidth: $,
1272
+ lineWidthBold: c,
1273
+ controlItemBgActive: g,
1274
+ colorBgTextHover: h,
1275
+ controlHeightLG: x,
1276
+ lineHeight: B,
1277
+ colorBgElevated: y,
1278
+ marginXXS: v,
1279
+ padding: O,
1280
+ fontSize: N,
1281
+ controlHeightSM: A,
1282
+ fontSizeLG: T,
1283
+ colorTextLightSolid: I,
1284
+ colorErrorHover: S
1285
+ } = t, H = (n = t.activeBarWidth) !== null && n !== void 0 ? n : 0, M = (e = t.activeBarBorderWidth) !== null && e !== void 0 ? e : $, L = (r = t.itemMarginInline) !== null && r !== void 0 ? r : t.marginXXS, C = new Ce(I).setA(0.65).toRgbString();
1286
+ return {
1287
+ dropdownWidth: 160,
1288
+ zIndexPopup: t.zIndexPopupBase + 50,
1289
+ radiusItem: t.borderRadiusLG,
1290
+ itemBorderRadius: t.borderRadiusLG,
1291
+ radiusSubMenuItem: t.borderRadiusSM,
1292
+ subMenuItemBorderRadius: t.borderRadiusSM,
1293
+ colorItemText: s,
1294
+ itemColor: s,
1295
+ colorItemTextHover: s,
1296
+ itemHoverColor: s,
1297
+ colorItemTextHoverHorizontal: o,
1298
+ horizontalItemHoverColor: o,
1299
+ colorGroupTitle: m,
1300
+ groupTitleColor: m,
1301
+ colorItemTextSelected: o,
1302
+ itemSelectedColor: o,
1303
+ subMenuItemSelectedColor: o,
1304
+ colorItemTextSelectedHorizontal: o,
1305
+ horizontalItemSelectedColor: o,
1306
+ colorItemBg: f,
1307
+ itemBg: f,
1308
+ colorItemBgHover: h,
1309
+ itemHoverBg: h,
1310
+ colorItemBgActive: u,
1311
+ itemActiveBg: g,
1312
+ colorSubItemBg: b,
1313
+ subMenuItemBg: b,
1314
+ colorItemBgSelected: g,
1315
+ itemSelectedBg: g,
1316
+ colorItemBgSelectedHorizontal: "transparent",
1317
+ horizontalItemSelectedBg: "transparent",
1318
+ colorActiveBarWidth: 0,
1319
+ activeBarWidth: H,
1320
+ colorActiveBarHeight: c,
1321
+ activeBarHeight: c,
1322
+ colorActiveBarBorderSize: $,
1323
+ activeBarBorderWidth: M,
1324
+ // Disabled
1325
+ colorItemTextDisabled: i,
1326
+ itemDisabledColor: i,
1327
+ // Danger
1328
+ colorDangerItemText: a,
1329
+ dangerItemColor: a,
1330
+ colorDangerItemTextHover: a,
1331
+ dangerItemHoverColor: a,
1332
+ colorDangerItemTextSelected: a,
1333
+ dangerItemSelectedColor: a,
1334
+ colorDangerItemBgActive: d,
1335
+ dangerItemActiveBg: d,
1336
+ colorDangerItemBgSelected: d,
1337
+ dangerItemSelectedBg: d,
1338
+ itemMarginInline: L,
1339
+ horizontalItemBorderRadius: 0,
1340
+ horizontalItemHoverBg: "transparent",
1341
+ itemHeight: x,
1342
+ groupTitleLineHeight: B,
1343
+ collapsedWidth: x * 2,
1344
+ popupBg: y,
1345
+ itemMarginBlock: v,
1346
+ itemPaddingInline: O,
1347
+ horizontalLineHeight: `${x * 1.15}px`,
1348
+ iconSize: N,
1349
+ iconMarginInlineEnd: A - N,
1350
+ collapsedIconSize: T,
1351
+ groupTitleFontSize: N,
1352
+ // Disabled
1353
+ darkItemDisabledColor: new Ce(I).setA(0.25).toRgbString(),
1354
+ // Dark
1355
+ darkItemColor: C,
1356
+ darkDangerItemColor: a,
1357
+ darkItemBg: "#001529",
1358
+ darkPopupBg: "#001529",
1359
+ darkSubMenuItemBg: "#000c17",
1360
+ darkItemSelectedColor: I,
1361
+ darkItemSelectedBg: o,
1362
+ darkDangerItemSelectedBg: a,
1363
+ darkItemHoverBg: "transparent",
1364
+ darkGroupTitleColor: C,
1365
+ darkItemHoverColor: I,
1366
+ darkDangerItemHoverColor: S,
1367
+ darkDangerItemSelectedColor: I,
1368
+ darkDangerItemActiveBg: a,
1369
+ // internal
1370
+ itemWidth: H ? `calc(100% + ${M}px)` : `calc(100% - ${L * 2}px)`
1371
+ };
1372
+ }, Gt = function(t) {
1373
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1374
+ return oe("Menu", (o) => {
1375
+ const {
1376
+ colorBgElevated: a,
1377
+ controlHeightLG: i,
1378
+ fontSize: d,
1379
+ darkItemColor: s,
1380
+ darkDangerItemColor: m,
1381
+ darkItemBg: f,
1382
+ darkSubMenuItemBg: b,
1383
+ darkItemSelectedColor: u,
1384
+ darkItemSelectedBg: $,
1385
+ darkDangerItemSelectedBg: c,
1386
+ darkItemHoverBg: g,
1387
+ darkGroupTitleColor: h,
1388
+ darkItemHoverColor: x,
1389
+ darkItemDisabledColor: B,
1390
+ darkDangerItemHoverColor: y,
1391
+ darkDangerItemSelectedColor: v,
1392
+ darkDangerItemActiveBg: O,
1393
+ popupBg: N,
1394
+ darkPopupBg: A
1395
+ } = o, T = o.calc(d).div(7).mul(5).equal(), I = me(o, {
1396
+ menuArrowSize: T,
1397
+ menuHorizontalHeight: o.calc(i).mul(1.15).equal(),
1398
+ menuArrowOffset: o.calc(T).mul(0.25).equal(),
1399
+ menuSubMenuBg: a,
1400
+ calc: o.calc,
1401
+ popupBg: N
1402
+ }), S = me(I, {
1403
+ itemColor: s,
1404
+ itemHoverColor: x,
1405
+ groupTitleColor: h,
1406
+ itemSelectedColor: u,
1407
+ itemBg: f,
1408
+ popupBg: A,
1409
+ subMenuItemBg: b,
1410
+ itemActiveBg: "transparent",
1411
+ itemSelectedBg: $,
1412
+ activeBarHeight: 0,
1413
+ activeBarBorderWidth: 0,
1414
+ itemHoverBg: g,
1415
+ // Disabled
1416
+ itemDisabledColor: B,
1417
+ // Danger
1418
+ dangerItemColor: m,
1419
+ dangerItemHoverColor: y,
1420
+ dangerItemSelectedColor: v,
1421
+ dangerItemActiveBg: O,
1422
+ dangerItemSelectedBg: c,
1423
+ menuSubMenuBg: b,
1424
+ // Horizontal
1425
+ horizontalItemSelectedColor: u,
1426
+ horizontalItemSelectedBg: $
1427
+ });
1428
+ return [
1429
+ // Basic
1430
+ qt(I),
1431
+ // Horizontal
1432
+ Wt(I),
1433
+ // Hard code for some light style
1434
+ // Vertical
1435
+ Xt(I),
1436
+ // Hard code for some light style
1437
+ // Theme
1438
+ Be(I, "light"),
1439
+ Be(S, "dark"),
1440
+ // RTL
1441
+ Vt(I),
1442
+ // Motion
1443
+ vt(I),
1444
+ Q(I, "slide-up"),
1445
+ Q(I, "slide-down"),
1446
+ je(I, "zoom-big")
1447
+ ];
1448
+ }, Ft, {
1449
+ 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"]],
1450
+ // Dropdown will handle menu style self. We do not need to handle this.
1451
+ injectStyle: e,
1452
+ unitless: {
1453
+ groupTitleLineHeight: !0
1454
+ }
1455
+ })(t, n);
1456
+ }, Ve = (t) => {
1457
+ var n;
1458
+ const {
1459
+ popupClassName: e,
1460
+ icon: r,
1461
+ title: o,
1462
+ theme: a
1463
+ } = t, i = l.useContext(te), {
1464
+ prefixCls: d,
1465
+ inlineCollapsed: s,
1466
+ theme: m
1467
+ } = i, f = Ue();
1468
+ let b;
1469
+ if (!r)
1470
+ b = s && !f.length && o && typeof o == "string" ? /* @__PURE__ */ l.createElement("div", {
1471
+ className: `${d}-inline-collapsed-noicon`
1472
+ }, o.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
1473
+ className: `${d}-title-content`
1474
+ }, o);
1475
+ else {
1476
+ const c = /* @__PURE__ */ l.isValidElement(o) && o.type === "span";
1477
+ b = /* @__PURE__ */ l.createElement(l.Fragment, null, ie(r, {
1478
+ className: P(/* @__PURE__ */ l.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : "", `${d}-item-icon`)
1479
+ }), c ? o : /* @__PURE__ */ l.createElement("span", {
1480
+ className: `${d}-title-content`
1481
+ }, o));
1482
+ }
1483
+ const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
1484
+ firstLevel: !1
1485
+ }), [i]), [$] = Me("Menu");
1486
+ return /* @__PURE__ */ l.createElement(te.Provider, {
1487
+ value: u
1488
+ }, /* @__PURE__ */ l.createElement(Ze, Object.assign({}, Z(t, ["icon"]), {
1489
+ title: b,
1490
+ popupClassName: P(d, e, `${d}-${a || m}`),
1491
+ popupStyle: Object.assign({
1492
+ zIndex: $
1493
+ }, t.popupStyle)
1494
+ })));
1495
+ };
1496
+ var Yt = function(t, n) {
1497
+ var e = {};
1498
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
1499
+ if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
1500
+ n.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (e[r[o]] = t[r[o]]);
1501
+ return e;
1502
+ };
1503
+ function ue(t) {
1504
+ return t === null || t === !1;
1505
+ }
1506
+ const Ut = {
1507
+ item: We,
1508
+ submenu: Ve,
1509
+ divider: ke
1510
+ }, Zt = /* @__PURE__ */ Te((t, n) => {
1511
+ var e;
1512
+ const r = l.useContext(ne), o = r || {}, {
1513
+ getPrefixCls: a,
1514
+ getPopupContainer: i,
1515
+ direction: d,
1516
+ menu: s
1517
+ } = l.useContext(re), m = a(), {
1518
+ prefixCls: f,
1519
+ className: b,
1520
+ style: u,
1521
+ theme: $ = "light",
1522
+ expandIcon: c,
1523
+ _internalDisableMenuItemTitleTooltip: g,
1524
+ inlineCollapsed: h,
1525
+ siderCollapsed: x,
1526
+ rootClassName: B,
1527
+ mode: y,
1528
+ selectable: v,
1529
+ onClick: O,
1530
+ overflowedIndicatorPopupClassName: N
1531
+ } = t, A = Yt(t, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), T = Z(A, ["collapsedWidth"]);
1532
+ if (process.env.NODE_ENV !== "production") {
1533
+ const z = Pe("Menu");
1534
+ process.env.NODE_ENV !== "production" && z(!("inlineCollapsed" in t && y !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), z.deprecated("items" in t && !t.children, "children", "items");
1535
+ }
1536
+ (e = o.validator) === null || e === void 0 || e.call(o, {
1537
+ mode: y
1538
+ });
1539
+ const I = De(function() {
1540
+ var z;
1541
+ O == null || O.apply(void 0, arguments), (z = o.onClick) === null || z === void 0 || z.call(o);
1542
+ }), S = o.mode || y, H = v ?? o.selectable, M = h ?? x, L = {
1543
+ horizontal: {
1544
+ motionName: `${m}-slide-up`
1545
+ },
1546
+ inline: $t(m),
1547
+ other: {
1548
+ motionName: `${m}-zoom-big`
1549
+ }
1550
+ }, C = a("menu", f || o.prefixCls), j = Re(C), [W, _, R] = Gt(C, j, !r), k = P(`${C}-${$}`, s == null ? void 0 : s.className, b), V = l.useMemo(() => {
1551
+ var z, X;
1552
+ if (typeof c == "function" || ue(c))
1553
+ return c || null;
1554
+ if (typeof o.expandIcon == "function" || ue(o.expandIcon))
1555
+ return o.expandIcon || null;
1556
+ if (typeof (s == null ? void 0 : s.expandIcon) == "function" || ue(s == null ? void 0 : s.expandIcon))
1557
+ return (s == null ? void 0 : s.expandIcon) || null;
1558
+ const q = (z = c ?? (o == null ? void 0 : o.expandIcon)) !== null && z !== void 0 ? z : s == null ? void 0 : s.expandIcon;
1559
+ return ie(q, {
1560
+ className: P(`${C}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
1561
+ });
1562
+ }, [c, o == null ? void 0 : o.expandIcon, s == null ? void 0 : s.expandIcon, C]), K = l.useMemo(() => ({
1563
+ prefixCls: C,
1564
+ inlineCollapsed: M || !1,
1565
+ direction: d,
1566
+ firstLevel: !0,
1567
+ theme: $,
1568
+ mode: S,
1569
+ disableMenuItemTitleTooltip: g
1570
+ }), [C, M, d, g, $]);
1571
+ return W(/* @__PURE__ */ l.createElement(ne.Provider, {
1572
+ value: null
1573
+ }, /* @__PURE__ */ l.createElement(te.Provider, {
1574
+ value: K
1575
+ }, /* @__PURE__ */ l.createElement(Ke, Object.assign({
1576
+ getPopupContainer: i,
1577
+ overflowedIndicator: /* @__PURE__ */ l.createElement(Je, null),
1578
+ overflowedIndicatorPopupClassName: P(C, `${C}-${$}`, N),
1579
+ mode: S,
1580
+ selectable: H,
1581
+ onClick: I
1582
+ }, T, {
1583
+ inlineCollapsed: M,
1584
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
1585
+ className: k,
1586
+ prefixCls: C,
1587
+ direction: d,
1588
+ defaultMotions: L,
1589
+ expandIcon: V,
1590
+ ref: n,
1591
+ rootClassName: P(B, _, o.rootClassName, R, j),
1592
+ _internalComponents: Ut
1593
+ })))));
1594
+ }), U = /* @__PURE__ */ Te((t, n) => {
1595
+ const e = Ne(null), r = l.useContext($e);
1596
+ return Fe(n, () => ({
1597
+ menu: e.current,
1598
+ focus: (o) => {
1599
+ var a;
1600
+ (a = e.current) === null || a === void 0 || a.focus(o);
1601
+ }
1602
+ })), /* @__PURE__ */ l.createElement(Zt, Object.assign({
1603
+ ref: e
1604
+ }, t, r));
1605
+ });
1606
+ U.Item = We;
1607
+ U.SubMenu = Ve;
1608
+ U.Divider = ke;
1609
+ U.ItemGroup = Qe;
1610
+ process.env.NODE_ENV !== "production" && (U.displayName = "Menu");
1611
+ const Kt = (t) => {
1612
+ const {
1613
+ componentCls: n,
1614
+ menuCls: e,
1615
+ colorError: r,
1616
+ colorTextLightSolid: o
1617
+ } = t, a = `${e}-item`;
1618
+ return {
1619
+ [`${n}, ${n}-menu-submenu`]: {
1620
+ [`${e} ${a}`]: {
1621
+ [`&${a}-danger:not(${a}-disabled)`]: {
1622
+ color: r,
1623
+ "&:hover": {
1624
+ color: o,
1625
+ backgroundColor: r
1626
+ }
1627
+ }
1628
+ }
1629
+ }
1630
+ };
1631
+ }, Jt = (t) => {
1632
+ const {
1633
+ componentCls: n,
1634
+ menuCls: e,
1635
+ zIndexPopup: r,
1636
+ dropdownArrowDistance: o,
1637
+ sizePopupArrow: a,
1638
+ antCls: i,
1639
+ iconCls: d,
1640
+ motionDurationMid: s,
1641
+ paddingBlock: m,
1642
+ fontSize: f,
1643
+ dropdownEdgeChildPadding: b,
1644
+ colorTextDisabled: u,
1645
+ fontSizeIcon: $,
1646
+ controlPaddingHorizontal: c,
1647
+ colorBgElevated: g
1648
+ } = t;
1649
+ return [
1650
+ {
1651
+ [n]: {
1652
+ position: "absolute",
1653
+ top: -9999,
1654
+ left: {
1655
+ _skip_check_: !0,
1656
+ value: -9999
1657
+ },
1658
+ zIndex: r,
1659
+ display: "block",
1660
+ // A placeholder out of dropdown visible range to avoid close when user moving
1661
+ "&::before": {
1662
+ position: "absolute",
1663
+ insetBlock: t.calc(a).div(2).sub(o).equal(),
1664
+ // insetInlineStart: -7, // FIXME: Seems not work for hidden element
1665
+ zIndex: -9999,
1666
+ opacity: 1e-4,
1667
+ content: '""'
1668
+ },
1669
+ // Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
1670
+ "&-menu-vertical": {
1671
+ maxHeight: "100vh",
1672
+ overflowY: "auto"
1673
+ },
1674
+ [`&-trigger${i}-btn`]: {
1675
+ [`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
1676
+ fontSize: $
1677
+ }
1678
+ },
1679
+ [`${n}-wrap`]: {
1680
+ position: "relative",
1681
+ [`${i}-btn > ${d}-down`]: {
1682
+ fontSize: $
1683
+ },
1684
+ [`${d}-down::before`]: {
1685
+ transition: `transform ${s}`
1686
+ }
1687
+ },
1688
+ [`${n}-wrap-open`]: {
1689
+ [`${d}-down::before`]: {
1690
+ transform: "rotate(180deg)"
1691
+ }
1692
+ },
1693
+ "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
1694
+ display: "none"
1695
+ },
1696
+ // =============================================================
1697
+ // == Motion ==
1698
+ // =============================================================
1699
+ // When position is not enough for dropdown, the placement will revert.
1700
+ // We will handle this with revert motion name.
1701
+ [`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
1702
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
1703
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
1704
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
1705
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
1706
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]: {
1707
+ animationName: Ct
1708
+ },
1709
+ [`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
1710
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
1711
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
1712
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
1713
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
1714
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]: {
1715
+ animationName: It
1716
+ },
1717
+ [`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
1718
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
1719
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]: {
1720
+ animationName: St
1721
+ },
1722
+ [`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
1723
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
1724
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]: {
1725
+ animationName: xt
1726
+ }
1727
+ }
1728
+ },
1729
+ // =============================================================
1730
+ // == Arrow style ==
1731
+ // =============================================================
1732
+ ut(t, g, {
1733
+ arrowPlacement: {
1734
+ top: !0,
1735
+ bottom: !0
1736
+ }
1737
+ }),
1738
+ {
1739
+ // =============================================================
1740
+ // == Menu ==
1741
+ // =============================================================
1742
+ [`${n} ${e}`]: {
1743
+ position: "relative",
1744
+ margin: 0
1745
+ },
1746
+ [`${e}-submenu-popup`]: {
1747
+ position: "absolute",
1748
+ zIndex: r,
1749
+ background: "transparent",
1750
+ boxShadow: "none",
1751
+ transformOrigin: "0 0",
1752
+ "ul, li": {
1753
+ listStyle: "none",
1754
+ margin: 0
1755
+ }
1756
+ },
1757
+ [`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, He(t)), {
1758
+ [e]: Object.assign(Object.assign({
1759
+ padding: b,
1760
+ listStyleType: "none",
1761
+ backgroundColor: g,
1762
+ backgroundClip: "padding-box",
1763
+ borderRadius: t.borderRadiusLG,
1764
+ outline: "none",
1765
+ boxShadow: t.boxShadowSecondary
1766
+ }, Se(t)), {
1767
+ "&:empty": {
1768
+ padding: 0,
1769
+ boxShadow: "none"
1770
+ },
1771
+ [`${e}-item-group-title`]: {
1772
+ padding: `${p(m)} ${p(c)}`,
1773
+ color: t.colorTextDescription,
1774
+ transition: `all ${s}`
1775
+ },
1776
+ // ======================= Item Content =======================
1777
+ [`${e}-item`]: {
1778
+ position: "relative",
1779
+ display: "flex",
1780
+ alignItems: "center"
1781
+ },
1782
+ [`${e}-item-icon`]: {
1783
+ minWidth: f,
1784
+ marginInlineEnd: t.marginXS,
1785
+ fontSize: t.fontSizeSM
1786
+ },
1787
+ [`${e}-title-content`]: {
1788
+ flex: "auto",
1789
+ "&-with-extra": {
1790
+ display: "inline-flex",
1791
+ alignItems: "center",
1792
+ width: "100%"
1793
+ },
1794
+ "> a": {
1795
+ color: "inherit",
1796
+ transition: `all ${s}`,
1797
+ "&:hover": {
1798
+ color: "inherit"
1799
+ },
1800
+ "&::after": {
1801
+ position: "absolute",
1802
+ inset: 0,
1803
+ content: '""'
1804
+ }
1805
+ },
1806
+ [`${e}-item-extra`]: {
1807
+ paddingInlineStart: t.padding,
1808
+ marginInlineStart: "auto",
1809
+ fontSize: t.fontSizeSM,
1810
+ color: t.colorTextDescription
1811
+ }
1812
+ },
1813
+ // =========================== Item ===========================
1814
+ [`${e}-item, ${e}-submenu-title`]: Object.assign(Object.assign({
1815
+ display: "flex",
1816
+ margin: 0,
1817
+ padding: `${p(m)} ${p(c)}`,
1818
+ color: t.colorText,
1819
+ fontWeight: "normal",
1820
+ fontSize: f,
1821
+ lineHeight: t.lineHeight,
1822
+ cursor: "pointer",
1823
+ transition: `all ${s}`,
1824
+ borderRadius: t.borderRadiusSM,
1825
+ "&:hover, &-active": {
1826
+ backgroundColor: t.controlItemBgHover
1827
+ }
1828
+ }, Se(t)), {
1829
+ "&-selected": {
1830
+ color: t.colorPrimary,
1831
+ backgroundColor: t.controlItemBgActive,
1832
+ "&:hover, &-active": {
1833
+ backgroundColor: t.controlItemBgActiveHover
1834
+ }
1835
+ },
1836
+ "&-disabled": {
1837
+ color: u,
1838
+ cursor: "not-allowed",
1839
+ "&:hover": {
1840
+ color: u,
1841
+ backgroundColor: g,
1842
+ cursor: "not-allowed"
1843
+ },
1844
+ a: {
1845
+ pointerEvents: "none"
1846
+ }
1847
+ },
1848
+ "&-divider": {
1849
+ height: 1,
1850
+ // By design
1851
+ margin: `${p(t.marginXXS)} 0`,
1852
+ overflow: "hidden",
1853
+ lineHeight: 0,
1854
+ backgroundColor: t.colorSplit
1855
+ },
1856
+ [`${n}-menu-submenu-expand-icon`]: {
1857
+ position: "absolute",
1858
+ insetInlineEnd: t.paddingXS,
1859
+ [`${n}-menu-submenu-arrow-icon`]: {
1860
+ marginInlineEnd: "0 !important",
1861
+ color: t.colorTextDescription,
1862
+ fontSize: $,
1863
+ fontStyle: "normal"
1864
+ }
1865
+ }
1866
+ }),
1867
+ [`${e}-item-group-list`]: {
1868
+ margin: `0 ${p(t.marginXS)}`,
1869
+ padding: 0,
1870
+ listStyle: "none"
1871
+ },
1872
+ [`${e}-submenu-title`]: {
1873
+ paddingInlineEnd: t.calc(c).add(t.fontSizeSM).equal()
1874
+ },
1875
+ [`${e}-submenu-vertical`]: {
1876
+ position: "relative"
1877
+ },
1878
+ [`${e}-submenu${e}-submenu-disabled ${n}-menu-submenu-title`]: {
1879
+ [`&, ${n}-menu-submenu-arrow-icon`]: {
1880
+ color: u,
1881
+ backgroundColor: g,
1882
+ cursor: "not-allowed"
1883
+ }
1884
+ },
1885
+ // https://github.com/ant-design/ant-design/issues/19264
1886
+ [`${e}-submenu-selected ${n}-menu-submenu-title`]: {
1887
+ color: t.colorPrimary
1888
+ }
1889
+ })
1890
+ })
1891
+ },
1892
+ // Follow code may reuse in other components
1893
+ [Q(t, "slide-up"), Q(t, "slide-down"), xe(t, "move-up"), xe(t, "move-down"), je(t, "zoom-big")]
1894
+ ];
1895
+ }, Qt = (t) => Object.assign(Object.assign({
1896
+ zIndexPopup: t.zIndexPopupBase + 50,
1897
+ paddingBlock: (t.controlHeight - t.fontSize * t.lineHeight) / 2
1898
+ }, mt({
1899
+ contentRadius: t.borderRadiusLG,
1900
+ limitVerticalRadius: !0
1901
+ })), gt(t)), en = oe("Dropdown", (t) => {
1902
+ const {
1903
+ marginXXS: n,
1904
+ sizePopupArrow: e,
1905
+ paddingXXS: r,
1906
+ componentCls: o
1907
+ } = t, a = me(t, {
1908
+ menuCls: `${o}-menu`,
1909
+ dropdownArrowDistance: t.calc(e).div(2).add(n).equal(),
1910
+ dropdownEdgeChildPadding: r
1911
+ });
1912
+ return [Jt(a), Kt(a)];
1913
+ }, Qt, {
1914
+ resetStyle: !1
1915
+ }), be = (t) => {
1916
+ var n;
1917
+ const {
1918
+ menu: e,
1919
+ arrow: r,
1920
+ prefixCls: o,
1921
+ children: a,
1922
+ trigger: i,
1923
+ disabled: d,
1924
+ dropdownRender: s,
1925
+ getPopupContainer: m,
1926
+ overlayClassName: f,
1927
+ rootClassName: b,
1928
+ overlayStyle: u,
1929
+ open: $,
1930
+ onOpenChange: c,
1931
+ // Deprecated
1932
+ visible: g,
1933
+ onVisibleChange: h,
1934
+ mouseEnterDelay: x = 0.15,
1935
+ mouseLeaveDelay: B = 0.1,
1936
+ autoAdjustOverflow: y = !0,
1937
+ placement: v = "",
1938
+ overlay: O,
1939
+ transitionName: N
1940
+ } = t, {
1941
+ getPopupContainer: A,
1942
+ getPrefixCls: T,
1943
+ direction: I,
1944
+ dropdown: S
1945
+ } = l.useContext(re), H = Pe("Dropdown");
1946
+ process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((w) => {
1947
+ let [G, Y] = w;
1948
+ H.deprecated(!(G in t), G, Y);
1949
+ }), H.deprecated(!("overlay" in t), "overlay", "menu"));
1950
+ const M = l.useMemo(() => {
1951
+ const w = T();
1952
+ return N !== void 0 ? N : v.includes("top") ? `${w}-slide-down` : `${w}-slide-up`;
1953
+ }, [T, v, N]), L = l.useMemo(() => v ? v.includes("Center") ? v.slice(0, v.indexOf("Center")) : v : I === "rtl" ? "bottomRight" : "bottomLeft", [v, I]);
1954
+ if (process.env.NODE_ENV !== "production") {
1955
+ if (v.includes("Center")) {
1956
+ const w = v.slice(0, v.indexOf("Center"));
1957
+ process.env.NODE_ENV !== "production" && H(!v.includes("Center"), "deprecated", `You are using '${v}' placement in Dropdown, which is deprecated. Try to use '${w}' instead.`);
1958
+ }
1959
+ [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((w) => {
1960
+ let [G, Y] = w;
1961
+ H.deprecated(!(G in t), G, Y);
1962
+ });
1963
+ }
1964
+ const C = T("dropdown", o), j = Re(C), [W, _, R] = en(C, j), [, k] = at(), V = l.Children.only(Bt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), K = ie(V, {
1965
+ className: P(`${C}-trigger`, {
1966
+ [`${C}-rtl`]: I === "rtl"
1967
+ }, V.props.className),
1968
+ disabled: (n = V.props.disabled) !== null && n !== void 0 ? n : d
1969
+ }), z = d ? [] : i, X = !!(z != null && z.includes("contextMenu")), [q, J] = st(!1, {
1970
+ value: $ ?? g
1971
+ }), le = De((w) => {
1972
+ c == null || c(w, {
1973
+ source: "trigger"
1974
+ }), h == null || h(w), J(w);
1975
+ }), ae = P(f, b, _, R, j, S == null ? void 0 : S.className, {
1976
+ [`${C}-rtl`]: I === "rtl"
1977
+ }), E = pt({
1978
+ arrowPointAtCenter: typeof r == "object" && r.pointAtCenter,
1979
+ autoAdjustOverflow: y,
1980
+ offset: k.marginXXS,
1981
+ arrowWidth: r ? k.sizePopupArrow : 0,
1982
+ borderRadius: k.borderRadius
1983
+ }), D = l.useCallback(() => {
1984
+ e != null && e.selectable && (e != null && e.multiple) || (c == null || c(!1, {
1985
+ source: "menu"
1986
+ }), J(!1));
1987
+ }, [e == null ? void 0 : e.selectable, e == null ? void 0 : e.multiple]), F = () => {
1988
+ let w;
1989
+ return e != null && e.items ? w = /* @__PURE__ */ l.createElement(U, Object.assign({}, e)) : typeof O == "function" ? w = O() : w = O, s && (w = s(w)), w = l.Children.only(typeof w == "string" ? /* @__PURE__ */ l.createElement("span", null, w) : w), /* @__PURE__ */ l.createElement(kt, {
1990
+ prefixCls: `${C}-menu`,
1991
+ rootClassName: P(R, j),
1992
+ expandIcon: /* @__PURE__ */ l.createElement("span", {
1993
+ className: `${C}-menu-submenu-arrow`
1994
+ }, /* @__PURE__ */ l.createElement(ee, {
1995
+ className: `${C}-menu-submenu-arrow-icon`
1996
+ })),
1997
+ mode: "vertical",
1998
+ selectable: !1,
1999
+ onClick: D,
2000
+ validator: (G) => {
2001
+ let {
2002
+ mode: Y
2003
+ } = G;
2004
+ process.env.NODE_ENV !== "production" && H(!Y || Y === "vertical", "usage", `mode="${Y}" is not supported for Dropdown's Menu.`);
2005
+ }
2006
+ }, w);
2007
+ }, [se, Xe] = Me("Dropdown", u == null ? void 0 : u.zIndex);
2008
+ let de = /* @__PURE__ */ l.createElement(et, Object.assign({
2009
+ alignPoint: X
2010
+ }, Z(t, ["rootClassName"]), {
2011
+ mouseEnterDelay: x,
2012
+ mouseLeaveDelay: B,
2013
+ visible: q,
2014
+ builtinPlacements: E,
2015
+ arrow: !!r,
2016
+ overlayClassName: ae,
2017
+ prefixCls: C,
2018
+ getPopupContainer: m || A,
2019
+ transitionName: M,
2020
+ trigger: z,
2021
+ overlay: F,
2022
+ placement: L,
2023
+ onVisibleChange: le,
2024
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, S == null ? void 0 : S.style), u), {
2025
+ zIndex: se
2026
+ })
2027
+ }), K);
2028
+ return se && (de = /* @__PURE__ */ l.createElement(dt.Provider, {
2029
+ value: Xe
2030
+ }, de)), W(de);
2031
+ }, tn = ft(be, "align", void 0, "dropdown", (t) => t), nn = (t) => /* @__PURE__ */ l.createElement(tn, Object.assign({}, t), /* @__PURE__ */ l.createElement("span", null));
2032
+ be._InternalPanelDoNotUseOrYouWillBeFired = nn;
2033
+ process.env.NODE_ENV !== "production" && (be.displayName = "Dropdown");
2034
+ export {
2035
+ be as D,
2036
+ Tt as L,
2037
+ U as M,
2038
+ kt as O,
2039
+ ee as R,
2040
+ At as S,
2041
+ $e as a,
2042
+ ge as b,
2043
+ Sn as u
2044
+ };