@gobolt/genesis 0.0.10 → 0.1.0

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