@gobolt/genesis 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  6. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  7. package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
  8. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
  9. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
  10. package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
  11. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  12. package/dist/Keyframes-sPZXYuXt.js +17 -0
  13. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  14. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  15. package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
  16. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  17. package/dist/Skeleton-B3vg9CbL.js +560 -0
  18. package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
  19. package/dist/Typography-DqI7RslA.js +705 -0
  20. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  21. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  22. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  23. package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
  24. package/dist/clsx-OuTLNxxd.js +16 -0
  25. package/dist/components/Avatar/Avatar.d.ts +12 -0
  26. package/dist/components/Avatar/Avatar.js +61 -0
  27. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  28. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  30. package/dist/components/Avatar/index.d.ts +2 -0
  31. package/dist/components/Avatar/index.js +4 -0
  32. package/dist/components/Avatar/styles.d.ts +18 -0
  33. package/dist/components/Avatar/styles.js +326 -0
  34. package/dist/components/Badge/Badge.d.ts +5 -3
  35. package/dist/components/Badge/Badge.js +67 -100
  36. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  37. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  38. package/dist/components/Badge/styles.d.ts +12 -3
  39. package/dist/components/Badge/styles.js +30 -27
  40. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  41. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  42. package/dist/components/Breadcrumb/styles.js +239 -2260
  43. package/dist/components/Button/Button.d.ts +4 -3
  44. package/dist/components/Button/Button.js +10 -6
  45. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  46. package/dist/components/Button/__tests__/Button.test.js +1 -1
  47. package/dist/components/Button/styles.d.ts +2 -2
  48. package/dist/components/Button/styles.js +20 -17
  49. package/dist/components/Card/Card.d.ts +9 -0
  50. package/dist/components/Card/Card.js +16 -0
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  52. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  53. package/dist/components/Card/__tests__/Card.test.js +16 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js +4 -0
  56. package/dist/components/Card/styles.d.ts +16 -0
  57. package/dist/components/Card/styles.js +12 -0
  58. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  59. package/dist/components/Checkbox/Checkbox.js +28 -16
  60. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  61. package/dist/components/Checkbox/styles.js +22 -457
  62. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  63. package/dist/components/Dashboard/Dashboard.js +5 -0
  64. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  66. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  67. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  73. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  75. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  77. package/dist/components/Dashboard/index.d.ts +2 -0
  78. package/dist/components/Dashboard/index.js +4 -0
  79. package/dist/components/Dashboard/styles.d.ts +14 -0
  80. package/dist/components/Dashboard/styles.js +11 -0
  81. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  82. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  83. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  84. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  85. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  86. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  87. package/dist/components/ErrorBoundary/index.js +4 -0
  88. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  89. package/dist/components/ErrorBoundary/styles.js +11 -0
  90. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  91. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  92. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  93. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  94. package/dist/components/Form/Form.js +3 -3
  95. package/dist/components/Form/__stories__/FormStory.js +127 -50
  96. package/dist/components/Form/__tests__/form.test.js +2 -2
  97. package/dist/components/Form/index.js +1 -1
  98. package/dist/components/Form/styles.js +1 -1
  99. package/dist/components/Glyph/Glyph.d.ts +4 -0
  100. package/dist/components/Glyph/Glyph.js +9 -0
  101. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  102. package/dist/components/Glyph/index.d.ts +2 -0
  103. package/dist/components/Glyph/index.js +4 -0
  104. package/dist/components/Glyph/styles.d.ts +14 -0
  105. package/dist/components/Glyph/styles.js +11 -0
  106. package/dist/components/Input/Input.d.ts +1 -2
  107. package/dist/components/Input/Input.js +14 -10
  108. package/dist/components/Input/__tests__/Input.test.js +1 -1
  109. package/dist/components/Input/styles.js +58 -466
  110. package/dist/components/Layout/Content/Content.d.ts +11 -0
  111. package/dist/components/Layout/Content/Content.js +32 -0
  112. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  113. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  114. package/dist/components/Layout/Content/index.d.ts +2 -0
  115. package/dist/components/Layout/Content/index.js +4 -0
  116. package/dist/components/Layout/Content/styles.d.ts +11 -0
  117. package/dist/components/Layout/Content/styles.js +16 -0
  118. package/dist/components/Layout/Layout.d.ts +8 -0
  119. package/dist/components/Layout/Layout.js +6 -0
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  121. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  123. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  124. package/dist/components/Layout/MainLayout/index.js +4 -0
  125. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  126. package/dist/components/Layout/MainLayout/styles.js +69 -0
  127. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  128. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  129. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  130. package/dist/components/Layout/index.d.ts +2 -0
  131. package/dist/components/Layout/index.js +4 -0
  132. package/dist/components/Message/Message.d.ts +6 -4
  133. package/dist/components/Message/Message.js +70 -43
  134. package/dist/components/Message/__tests__/Message.test.js +1 -1
  135. package/dist/components/Message/styles.d.ts +1 -0
  136. package/dist/components/Message/styles.js +15 -11
  137. package/dist/components/Notification/Notification.js +145 -120
  138. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  139. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  140. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  141. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  142. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  143. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  144. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  145. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  146. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  147. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  148. package/dist/components/Notification/styles.d.ts +1 -1
  149. package/dist/components/Notification/styles.js +1 -1
  150. package/dist/components/Popover/Popover.d.ts +10 -0
  151. package/dist/components/Popover/Popover.js +21 -0
  152. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  153. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  154. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  155. package/dist/components/Popover/index.d.ts +2 -0
  156. package/dist/components/Popover/index.js +4 -0
  157. package/dist/components/Popover/styles.d.ts +15 -0
  158. package/dist/components/Popover/styles.js +6 -0
  159. package/dist/components/Progress/Progress.d.ts +18 -0
  160. package/dist/components/Progress/Progress.js +91 -0
  161. package/dist/components/Progress/Progress.util.d.ts +4 -0
  162. package/dist/components/Progress/Progress.util.js +62 -0
  163. package/dist/components/Progress/ProgressText.d.ts +11 -0
  164. package/dist/components/Progress/ProgressText.js +67 -0
  165. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  166. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  167. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  168. package/dist/components/Progress/index.d.ts +2 -0
  169. package/dist/components/Progress/index.js +4 -0
  170. package/dist/components/Progress/styles.d.ts +17 -0
  171. package/dist/components/Progress/styles.js +793 -0
  172. package/dist/components/Radio/Radio.js +22 -6
  173. package/dist/components/Radio/RadioGroup.js +1 -1
  174. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  175. package/dist/components/Radio/index.d.ts +1 -0
  176. package/dist/components/Row/Row.d.ts +14 -0
  177. package/dist/components/Row/Row.js +38 -0
  178. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  179. package/dist/components/Row/RowActions/RowActions.js +59 -0
  180. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  181. package/dist/components/Row/RowActions/styles.js +32 -0
  182. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  183. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  184. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  185. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  186. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  187. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  188. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  189. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  190. package/dist/components/Row/__tests__/Row.test.js +16 -0
  191. package/dist/components/Row/index.d.ts +2 -0
  192. package/dist/components/Row/index.js +4 -0
  193. package/dist/components/Row/styles.d.ts +15 -0
  194. package/dist/components/Row/styles.js +15 -0
  195. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  196. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  197. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  198. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  199. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  200. package/dist/components/SegmentedControls/index.d.ts +2 -0
  201. package/dist/components/SegmentedControls/index.js +4 -0
  202. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  203. package/dist/components/SegmentedControls/styles.js +511 -0
  204. package/dist/components/Select/Select.d.ts +2 -4
  205. package/dist/components/Select/Select.js +12 -11
  206. package/dist/components/Select/__tests__/Select.test.js +1 -1
  207. package/dist/components/Select/styles.js +39 -3654
  208. package/dist/components/Shapes/Shapes.d.ts +6 -0
  209. package/dist/components/Shapes/Shapes.js +8 -0
  210. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  211. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  212. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  213. package/dist/components/Shapes/index.d.ts +2 -0
  214. package/dist/components/Shapes/index.js +4 -0
  215. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  216. package/dist/components/Shapes/variants/Circle.js +23 -0
  217. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  218. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  219. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  220. package/dist/components/Shapes/variants/Triangle.js +23 -0
  221. package/dist/components/Switch/Switch.d.ts +9 -0
  222. package/dist/components/Switch/Switch.js +22 -0
  223. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  224. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  225. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  226. package/dist/components/Switch/index.d.ts +2 -0
  227. package/dist/components/Switch/index.js +4 -0
  228. package/dist/components/Switch/styles.d.ts +9 -0
  229. package/dist/components/Switch/styles.js +456 -0
  230. package/dist/components/Table/Table.d.ts +15 -0
  231. package/dist/components/Table/Table.js +23 -0
  232. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  233. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  234. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  235. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  236. package/dist/components/Table/__tests__/Table.test.js +34 -0
  237. package/dist/components/Table/index.d.ts +2 -0
  238. package/dist/components/Table/index.js +4 -0
  239. package/dist/components/Table/styles.d.ts +8 -0
  240. package/dist/components/Table/styles.js +6 -0
  241. package/dist/components/Tabs/Tabs.d.ts +10 -0
  242. package/dist/components/Tabs/Tabs.js +23 -0
  243. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  244. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  245. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  246. package/dist/components/Tabs/index.d.ts +2 -0
  247. package/dist/components/Tabs/index.js +4 -0
  248. package/dist/components/Tabs/styles.d.ts +12 -0
  249. package/dist/components/Tabs/styles.js +102 -0
  250. package/dist/components/Tile/Tile.d.ts +10 -0
  251. package/dist/components/Tile/Tile.js +21 -0
  252. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  253. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  254. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  255. package/dist/components/Tile/index.d.ts +2 -0
  256. package/dist/components/Tile/index.js +4 -0
  257. package/dist/components/Tile/styles.d.ts +11 -0
  258. package/dist/components/Tile/styles.js +12 -0
  259. package/dist/components/Toast/Toast.js +23 -6
  260. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  261. package/dist/components/Toast/index.js +1 -1
  262. package/dist/components/Toast/styles.d.ts +0 -1
  263. package/dist/components/Toast/styles.js +14 -23
  264. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  265. package/dist/components/Tooltip/Tooltip.js +50 -0
  266. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  267. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  268. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  269. package/dist/components/Tooltip/index.d.ts +2 -0
  270. package/dist/components/Tooltip/index.js +4 -0
  271. package/dist/components/Tooltip/styles.d.ts +20 -0
  272. package/dist/components/Tooltip/styles.js +11 -0
  273. package/dist/components/Typography/Typography.d.ts +5 -1
  274. package/dist/components/Typography/Typography.js +2 -2
  275. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  276. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  277. package/dist/components/Typography/index.js +1 -1
  278. package/dist/components/Typography/styles.d.ts +1 -0
  279. package/dist/components/Typography/styles.js +53 -17
  280. package/dist/components/index.d.ts +31 -1
  281. package/dist/components/index.js +54 -24
  282. package/dist/constants/index.d.ts +4 -0
  283. package/dist/constants/index.js +4 -2
  284. package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
  285. package/dist/dropdown-zGGFIyJ_.js +2044 -0
  286. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  287. package/dist/genesis/GenesisThemeBreakdown.js +38 -22
  288. package/dist/genesis/styles.js +7 -2923
  289. package/dist/iconBase-LROS5hdG.js +112 -0
  290. package/dist/index-BRUI9igj.js +11 -0
  291. package/dist/index-BTGF--50.js +1845 -0
  292. package/dist/index-BW_7pvTr.js +538 -0
  293. package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
  294. package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
  295. package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
  296. package/dist/index-CdiHBmVe.js +445 -0
  297. package/dist/index-CodMmNWv.js +102 -0
  298. package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
  299. package/dist/index-D0P16DlX.js +286 -0
  300. package/dist/index-DLdU7Tpd.js +183 -0
  301. package/dist/index-DWUXwgXK.js +809 -0
  302. package/dist/index-DmZOkMjs.js +3628 -0
  303. package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
  304. package/dist/index-hoPiccJv.js +415 -0
  305. package/dist/index.js +61 -31
  306. package/dist/interface/address.d.ts +10 -0
  307. package/dist/interface/address.js +1 -0
  308. package/dist/interface/appointment.d.ts +57 -0
  309. package/dist/interface/appointment.js +5 -0
  310. package/dist/interface/appointmentV2.d.ts +65 -0
  311. package/dist/interface/appointmentV2.js +1 -0
  312. package/dist/interface/appointmentsState.d.ts +21 -0
  313. package/dist/interface/appointmentsState.js +1 -0
  314. package/dist/interface/common.d.ts +2 -0
  315. package/dist/interface/common.js +1 -0
  316. package/dist/interface/completionData.d.ts +18 -0
  317. package/dist/interface/completionData.js +1 -0
  318. package/dist/interface/deliveryPartner.d.ts +25 -0
  319. package/dist/interface/deliveryPartner.js +1 -0
  320. package/dist/interface/organization.d.ts +9 -0
  321. package/dist/interface/organization.js +1 -0
  322. package/dist/interface/pagination.d.ts +8 -0
  323. package/dist/interface/pagination.js +1 -0
  324. package/dist/interface/roles.d.ts +9 -0
  325. package/dist/interface/roles.js +1 -0
  326. package/dist/interface/route.d.ts +73 -0
  327. package/dist/interface/route.js +1 -0
  328. package/dist/interface/routeAnalysis.d.ts +108 -0
  329. package/dist/interface/routeAnalysis.js +1 -0
  330. package/dist/interface/routeAutomationJob.d.ts +95 -0
  331. package/dist/interface/routeAutomationJob.js +10 -0
  332. package/dist/interface/routeAutomationLog.d.ts +10 -0
  333. package/dist/interface/routeAutomationLog.js +1 -0
  334. package/dist/interface/routeEvent.d.ts +55 -0
  335. package/dist/interface/routeEvent.js +5 -0
  336. package/dist/interface/serviceArea.d.ts +18 -0
  337. package/dist/interface/serviceArea.js +1 -0
  338. package/dist/interface/util.d.ts +3 -0
  339. package/dist/interface/util.js +1 -0
  340. package/dist/interface/vehicle.d.ts +120 -0
  341. package/dist/interface/vehicle.js +1 -0
  342. package/dist/interface/workOrder.d.ts +22 -0
  343. package/dist/interface/workOrder.js +1 -0
  344. package/dist/isVisible-D3-B85BJ.js +22 -0
  345. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  346. package/dist/omit-B_u6A-HL.js +9 -0
  347. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  348. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  349. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  350. package/dist/providers/BreakpointThemeProvider.js +21 -0
  351. package/dist/providers/GenesisProvider.js +3 -3
  352. package/dist/providers/ToastProvider.js +22 -6
  353. package/dist/providers/index.js +1 -1
  354. package/dist/providers/useGenesis.js +2 -2
  355. package/dist/responsiveObserver-O1kw80RG.js +73 -0
  356. package/dist/setup-CKu7-AfI.js +24706 -0
  357. package/dist/setup.types-dBtAXXGp.js +8824 -0
  358. package/dist/shadow-BoMGMNn3.js +13 -0
  359. package/dist/styleChecker-Cotu61d0.js +21 -0
  360. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
  361. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  362. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  363. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  364. package/dist/styles/theme/genesis-theme.js +468 -263
  365. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  366. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  367. package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
  368. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  369. package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
  370. package/dist/styles-BSD221S5.js +289 -0
  371. package/dist/styles-D9iYILpv.js +9195 -0
  372. package/dist/test/setup.d.ts +2 -3
  373. package/dist/test/setup.js +87 -4
  374. package/dist/test/setup.types.d.ts +7 -0
  375. package/dist/test/setup.types.js +1 -0
  376. package/dist/toArray-DGvPoJP_.js +11 -0
  377. package/dist/useBreakpoint-CAMzKscx.js +22 -0
  378. package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
  379. package/dist/useId-D2tzlufo.js +26 -0
  380. package/dist/useLocale-DWRfeMSS.js +16 -0
  381. package/dist/useMergedState-BoELfaU9.js +23 -0
  382. package/dist/useSize-CPo2bUE3.js +9 -0
  383. package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
  384. package/dist/useZIndex-D81lkWy4.js +44 -0
  385. package/dist/utils/icon-util.d.ts +2 -0
  386. package/dist/utils/icon-util.js +95 -0
  387. package/package.json +26 -15
  388. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  389. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  390. package/dist/Typography-aGoDUl4R.js +0 -710
  391. package/dist/index-BZAhCB_K.js +0 -97
  392. package/dist/index-CfDY25LP.js +0 -873
  393. package/dist/isVisible-A-IfeFoT.js +0 -367
  394. package/dist/providers/ThemeProvider.d.ts +0 -9
  395. package/dist/providers/ThemeProvider.js +0 -21
  396. package/dist/setup-BvfREoHl.js +0 -33891
  397. package/dist/useLocale-DT-z_vQ6.js +0 -16
  398. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  399. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  400. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  401. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  402. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  403. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  404. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  405. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  406. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  407. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  408. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  409. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  410. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  411. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  412. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  413. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  414. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  415. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -1,2923 +1,7 @@
1
- import { d as Yt } from "../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as wa } from "../index-C0SmxWLS.js";
3
- import * as l from "react";
4
- import Ea, { createContext as Pa, useState as U, useRef as ee, useEffect as be, useMemo as Qt } from "react";
5
- import { a as he, c as E, f as B, _ as le, d as ft, h as te, e as ke, w as Oa } from "../warning-C63HNL9U.js";
6
- import { o as Ve, u as Bt, t as Na } from "../isVisible-A-IfeFoT.js";
7
- import { g as gt, m as mt, q as u, C as ve, x as ct, w as Dt, c as Ta, b as Ra, j as Ia, B as za, v as bt, p as Zt, o as vt, Y as pt, I as dt, F as Ke } from "../index-oK7z6jnz.js";
8
- import { a as Jt } from "../Compact-CGY560JF.js";
9
- import { K as Ma, b as La, g as ja } from "../index-CfDY25LP.js";
10
- import { R as Ba } from "../CloseOutlined-ClXDNn82.js";
11
- import { E as Da, M as Aa, b as Ha, R as Ga } from "../index-C8haFnXI.js";
12
- import { I as Wa } from "../AntdIcon-BoLh1dP8.js";
13
- import { R as rt } from "../index-bKlRxQp4.js";
14
- import { K as Ce } from "../KeyCode-DM2sFh3-.js";
15
- import { u as ka } from "../context-BMW3aJEf.js";
16
- import { i as At } from "../Overflow-PBZD-PFm.js";
17
- var Va = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { tag: "path", attrs: { d: "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, name: "plus", theme: "outlined" }, Ka = function(t, a) {
18
- return /* @__PURE__ */ l.createElement(Wa, he({}, t, {
19
- ref: a,
20
- icon: Va
21
- }));
22
- }, ea = /* @__PURE__ */ l.forwardRef(Ka);
23
- process.env.NODE_ENV !== "production" && (ea.displayName = "PlusOutlined");
24
- const qe = (e) => {
25
- const {
26
- prefixCls: t,
27
- className: a,
28
- style: n,
29
- size: r,
30
- shape: o
31
- } = e, s = E({
32
- [`${t}-lg`]: r === "large",
33
- [`${t}-sm`]: r === "small"
34
- }), i = E({
35
- [`${t}-circle`]: o === "circle",
36
- [`${t}-square`]: o === "square",
37
- [`${t}-round`]: o === "round"
38
- }), c = l.useMemo(() => typeof r == "number" ? {
39
- width: r,
40
- height: r,
41
- lineHeight: `${r}px`
42
- } : {}, [r]);
43
- return /* @__PURE__ */ l.createElement("span", {
44
- className: E(t, s, i, a),
45
- style: Object.assign(Object.assign({}, c), n)
46
- });
47
- }, qa = new Ma("ant-skeleton-loading", {
48
- "0%": {
49
- backgroundPosition: "100% 50%"
50
- },
51
- "100%": {
52
- backgroundPosition: "0 50%"
53
- }
54
- }), Fe = (e) => ({
55
- height: e,
56
- lineHeight: u(e)
57
- }), Ie = (e) => Object.assign({
58
- width: e
59
- }, Fe(e)), Fa = (e) => ({
60
- background: e.skeletonLoadingBackground,
61
- backgroundSize: "400% 100%",
62
- animationName: qa,
63
- animationDuration: e.skeletonLoadingMotionDuration,
64
- animationTimingFunction: "ease",
65
- animationIterationCount: "infinite"
66
- }), it = (e, t) => Object.assign({
67
- width: t(e).mul(5).equal(),
68
- minWidth: t(e).mul(5).equal()
69
- }, Fe(e)), Xa = (e) => {
70
- const {
71
- skeletonAvatarCls: t,
72
- gradientFromColor: a,
73
- controlHeight: n,
74
- controlHeightLG: r,
75
- controlHeightSM: o
76
- } = e;
77
- return {
78
- [t]: Object.assign({
79
- display: "inline-block",
80
- verticalAlign: "top",
81
- background: a
82
- }, Ie(n)),
83
- [`${t}${t}-circle`]: {
84
- borderRadius: "50%"
85
- },
86
- [`${t}${t}-lg`]: Object.assign({}, Ie(r)),
87
- [`${t}${t}-sm`]: Object.assign({}, Ie(o))
88
- };
89
- }, Ua = (e) => {
90
- const {
91
- controlHeight: t,
92
- borderRadiusSM: a,
93
- skeletonInputCls: n,
94
- controlHeightLG: r,
95
- controlHeightSM: o,
96
- gradientFromColor: s,
97
- calc: i
98
- } = e;
99
- return {
100
- [n]: Object.assign({
101
- display: "inline-block",
102
- verticalAlign: "top",
103
- background: s,
104
- borderRadius: a
105
- }, it(t, i)),
106
- [`${n}-lg`]: Object.assign({}, it(r, i)),
107
- [`${n}-sm`]: Object.assign({}, it(o, i))
108
- };
109
- }, Ht = (e) => Object.assign({
110
- width: e
111
- }, Fe(e)), Ya = (e) => {
112
- const {
113
- skeletonImageCls: t,
114
- imageSizeBase: a,
115
- gradientFromColor: n,
116
- borderRadiusSM: r,
117
- calc: o
118
- } = e;
119
- return {
120
- [t]: Object.assign(Object.assign({
121
- display: "inline-flex",
122
- alignItems: "center",
123
- justifyContent: "center",
124
- verticalAlign: "middle",
125
- background: n,
126
- borderRadius: r
127
- }, Ht(o(a).mul(2).equal())), {
128
- [`${t}-path`]: {
129
- fill: "#bfbfbf"
130
- },
131
- [`${t}-svg`]: Object.assign(Object.assign({}, Ht(a)), {
132
- maxWidth: o(a).mul(4).equal(),
133
- maxHeight: o(a).mul(4).equal()
134
- }),
135
- [`${t}-svg${t}-svg-circle`]: {
136
- borderRadius: "50%"
137
- }
138
- }),
139
- [`${t}${t}-circle`]: {
140
- borderRadius: "50%"
141
- }
142
- };
143
- }, ot = (e, t, a) => {
144
- const {
145
- skeletonButtonCls: n
146
- } = e;
147
- return {
148
- [`${a}${n}-circle`]: {
149
- width: t,
150
- minWidth: t,
151
- borderRadius: "50%"
152
- },
153
- [`${a}${n}-round`]: {
154
- borderRadius: t
155
- }
156
- };
157
- }, lt = (e, t) => Object.assign({
158
- width: t(e).mul(2).equal(),
159
- minWidth: t(e).mul(2).equal()
160
- }, Fe(e)), Qa = (e) => {
161
- const {
162
- borderRadiusSM: t,
163
- skeletonButtonCls: a,
164
- controlHeight: n,
165
- controlHeightLG: r,
166
- controlHeightSM: o,
167
- gradientFromColor: s,
168
- calc: i
169
- } = e;
170
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
171
- [a]: Object.assign({
172
- display: "inline-block",
173
- verticalAlign: "top",
174
- background: s,
175
- borderRadius: t,
176
- width: i(n).mul(2).equal(),
177
- minWidth: i(n).mul(2).equal()
178
- }, lt(n, i))
179
- }, ot(e, n, a)), {
180
- [`${a}-lg`]: Object.assign({}, lt(r, i))
181
- }), ot(e, r, `${a}-lg`)), {
182
- [`${a}-sm`]: Object.assign({}, lt(o, i))
183
- }), ot(e, o, `${a}-sm`));
184
- }, Za = (e) => {
185
- const {
186
- componentCls: t,
187
- skeletonAvatarCls: a,
188
- skeletonTitleCls: n,
189
- skeletonParagraphCls: r,
190
- skeletonButtonCls: o,
191
- skeletonInputCls: s,
192
- skeletonImageCls: i,
193
- controlHeight: c,
194
- controlHeightLG: d,
195
- controlHeightSM: m,
196
- gradientFromColor: g,
197
- padding: v,
198
- marginSM: C,
199
- borderRadius: N,
200
- titleHeight: p,
201
- blockRadius: O,
202
- paragraphLiHeight: y,
203
- controlHeightXS: S,
204
- paragraphMarginTop: P
205
- } = e;
206
- return {
207
- [t]: {
208
- display: "table",
209
- width: "100%",
210
- [`${t}-header`]: {
211
- display: "table-cell",
212
- paddingInlineEnd: v,
213
- verticalAlign: "top",
214
- // Avatar
215
- [a]: Object.assign({
216
- display: "inline-block",
217
- verticalAlign: "top",
218
- background: g
219
- }, Ie(c)),
220
- [`${a}-circle`]: {
221
- borderRadius: "50%"
222
- },
223
- [`${a}-lg`]: Object.assign({}, Ie(d)),
224
- [`${a}-sm`]: Object.assign({}, Ie(m))
225
- },
226
- [`${t}-content`]: {
227
- display: "table-cell",
228
- width: "100%",
229
- verticalAlign: "top",
230
- // Title
231
- [n]: {
232
- width: "100%",
233
- height: p,
234
- background: g,
235
- borderRadius: O,
236
- [`+ ${r}`]: {
237
- marginBlockStart: m
238
- }
239
- },
240
- // paragraph
241
- [r]: {
242
- padding: 0,
243
- "> li": {
244
- width: "100%",
245
- height: y,
246
- listStyle: "none",
247
- background: g,
248
- borderRadius: O,
249
- "+ li": {
250
- marginBlockStart: S
251
- }
252
- }
253
- },
254
- [`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]: {
255
- width: "61%"
256
- }
257
- },
258
- [`&-round ${t}-content`]: {
259
- [`${n}, ${r} > li`]: {
260
- borderRadius: N
261
- }
262
- }
263
- },
264
- [`${t}-with-avatar ${t}-content`]: {
265
- // Title
266
- [n]: {
267
- marginBlockStart: C,
268
- [`+ ${r}`]: {
269
- marginBlockStart: P
270
- }
271
- }
272
- },
273
- // Skeleton element
274
- [`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
275
- display: "inline-block",
276
- width: "auto"
277
- }, Qa(e)), Xa(e)), Ua(e)), Ya(e)),
278
- // Skeleton Block Button, Input
279
- [`${t}${t}-block`]: {
280
- width: "100%",
281
- [o]: {
282
- width: "100%"
283
- },
284
- [s]: {
285
- width: "100%"
286
- }
287
- },
288
- // With active animation
289
- [`${t}${t}-active`]: {
290
- [`
291
- ${n},
292
- ${r} > li,
293
- ${a},
294
- ${o},
295
- ${s},
296
- ${i}
297
- `]: Object.assign({}, Fa(e))
298
- }
299
- };
300
- }, Ja = (e) => {
301
- const {
302
- colorFillContent: t,
303
- colorFill: a
304
- } = e, n = t, r = a;
305
- return {
306
- color: n,
307
- colorGradientEnd: r,
308
- gradientFromColor: n,
309
- gradientToColor: r,
310
- titleHeight: e.controlHeight / 2,
311
- blockRadius: e.borderRadiusSM,
312
- paragraphMarginTop: e.marginLG + e.marginXXS,
313
- paragraphLiHeight: e.controlHeight / 2
314
- };
315
- }, ze = gt("Skeleton", (e) => {
316
- const {
317
- componentCls: t,
318
- calc: a
319
- } = e, n = mt(e, {
320
- skeletonAvatarCls: `${t}-avatar`,
321
- skeletonTitleCls: `${t}-title`,
322
- skeletonParagraphCls: `${t}-paragraph`,
323
- skeletonButtonCls: `${t}-button`,
324
- skeletonInputCls: `${t}-input`,
325
- skeletonImageCls: `${t}-image`,
326
- imageSizeBase: a(e.controlHeight).mul(1.5).equal(),
327
- borderRadius: 100,
328
- // Large number to make capsule shape
329
- skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
330
- skeletonLoadingMotionDuration: "1.4s"
331
- });
332
- return [Za(n)];
333
- }, Ja, {
334
- deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
335
- }), en = (e) => {
336
- const {
337
- prefixCls: t,
338
- className: a,
339
- rootClassName: n,
340
- active: r,
341
- shape: o = "circle",
342
- size: s = "default"
343
- } = e, {
344
- getPrefixCls: i
345
- } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls", "className"]), C = E(c, `${c}-element`, {
346
- [`${c}-active`]: r
347
- }, a, n, m, g);
348
- return d(/* @__PURE__ */ l.createElement("div", {
349
- className: C
350
- }, /* @__PURE__ */ l.createElement(qe, Object.assign({
351
- prefixCls: `${c}-avatar`,
352
- shape: o,
353
- size: s
354
- }, v))));
355
- }, tn = (e) => {
356
- const {
357
- prefixCls: t,
358
- className: a,
359
- rootClassName: n,
360
- active: r,
361
- block: o = !1,
362
- size: s = "default"
363
- } = e, {
364
- getPrefixCls: i
365
- } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
366
- [`${c}-active`]: r,
367
- [`${c}-block`]: o
368
- }, a, n, m, g);
369
- return d(/* @__PURE__ */ l.createElement("div", {
370
- className: C
371
- }, /* @__PURE__ */ l.createElement(qe, Object.assign({
372
- prefixCls: `${c}-button`,
373
- size: s
374
- }, v))));
375
- }, an = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", nn = (e) => {
376
- const {
377
- prefixCls: t,
378
- className: a,
379
- rootClassName: n,
380
- style: r,
381
- active: o
382
- } = e, {
383
- getPrefixCls: s
384
- } = l.useContext(ve), i = s("skeleton", t), [c, d, m] = ze(i), g = E(i, `${i}-element`, {
385
- [`${i}-active`]: o
386
- }, a, n, d, m);
387
- return c(/* @__PURE__ */ l.createElement("div", {
388
- className: g
389
- }, /* @__PURE__ */ l.createElement("div", {
390
- className: E(`${i}-image`, a),
391
- style: r
392
- }, /* @__PURE__ */ l.createElement("svg", {
393
- viewBox: "0 0 1098 1024",
394
- xmlns: "http://www.w3.org/2000/svg",
395
- className: `${i}-image-svg`
396
- }, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
397
- d: an,
398
- className: `${i}-image-path`
399
- })))));
400
- }, rn = (e) => {
401
- const {
402
- prefixCls: t,
403
- className: a,
404
- rootClassName: n,
405
- active: r,
406
- block: o,
407
- size: s = "default"
408
- } = e, {
409
- getPrefixCls: i
410
- } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = Ve(e, ["prefixCls"]), C = E(c, `${c}-element`, {
411
- [`${c}-active`]: r,
412
- [`${c}-block`]: o
413
- }, a, n, m, g);
414
- return d(/* @__PURE__ */ l.createElement("div", {
415
- className: C
416
- }, /* @__PURE__ */ l.createElement(qe, Object.assign({
417
- prefixCls: `${c}-input`,
418
- size: s
419
- }, v))));
420
- }, on = (e) => {
421
- const {
422
- prefixCls: t,
423
- className: a,
424
- rootClassName: n,
425
- style: r,
426
- active: o,
427
- children: s
428
- } = e, {
429
- getPrefixCls: i
430
- } = l.useContext(ve), c = i("skeleton", t), [d, m, g] = ze(c), v = E(c, `${c}-element`, {
431
- [`${c}-active`]: o
432
- }, m, a, n, g);
433
- return d(/* @__PURE__ */ l.createElement("div", {
434
- className: v
435
- }, /* @__PURE__ */ l.createElement("div", {
436
- className: E(`${c}-image`, a),
437
- style: r
438
- }, s)));
439
- }, ln = (e, t) => {
440
- const {
441
- width: a,
442
- rows: n = 2
443
- } = t;
444
- if (Array.isArray(a))
445
- return a[e];
446
- if (n - 1 === e)
447
- return a;
448
- }, sn = (e) => {
449
- const {
450
- prefixCls: t,
451
- className: a,
452
- style: n,
453
- rows: r
454
- } = e, o = ct(new Array(r)).map((s, i) => (
455
- // eslint-disable-next-line react/no-array-index-key
456
- /* @__PURE__ */ l.createElement("li", {
457
- key: i,
458
- style: {
459
- width: ln(i, e)
460
- }
461
- })
462
- ));
463
- return /* @__PURE__ */ l.createElement("ul", {
464
- className: E(t, a),
465
- style: n
466
- }, o);
467
- }, cn = (e) => {
468
- let {
469
- prefixCls: t,
470
- className: a,
471
- width: n,
472
- style: r
473
- } = e;
474
- return (
475
- // biome-ignore lint/a11y/useHeadingContent: HOC here
476
- /* @__PURE__ */ l.createElement("h3", {
477
- className: E(t, a),
478
- style: Object.assign({
479
- width: n
480
- }, r)
481
- })
482
- );
483
- };
484
- function st(e) {
485
- return e && typeof e == "object" ? e : {};
486
- }
487
- function dn(e, t) {
488
- return e && !t ? {
489
- size: "large",
490
- shape: "square"
491
- } : {
492
- size: "large",
493
- shape: "circle"
494
- };
495
- }
496
- function un(e, t) {
497
- return !e && t ? {
498
- width: "38%"
499
- } : e && t ? {
500
- width: "50%"
501
- } : {};
502
- }
503
- function fn(e, t) {
504
- const a = {};
505
- return (!e || !t) && (a.width = "61%"), !e && t ? a.rows = 3 : a.rows = 2, a;
506
- }
507
- const Ee = (e) => {
508
- const {
509
- prefixCls: t,
510
- loading: a,
511
- className: n,
512
- rootClassName: r,
513
- style: o,
514
- children: s,
515
- avatar: i = !1,
516
- title: c = !0,
517
- paragraph: d = !0,
518
- active: m,
519
- round: g
520
- } = e, {
521
- getPrefixCls: v,
522
- direction: C,
523
- skeleton: N
524
- } = l.useContext(ve), p = v("skeleton", t), [O, y, S] = ze(p);
525
- if (a || !("loading" in e)) {
526
- const P = !!i, z = !!c, j = !!d;
527
- let G;
528
- if (P) {
529
- const w = Object.assign(Object.assign({
530
- prefixCls: `${p}-avatar`
531
- }, dn(z, j)), st(i));
532
- G = /* @__PURE__ */ l.createElement("div", {
533
- className: `${p}-header`
534
- }, /* @__PURE__ */ l.createElement(qe, Object.assign({}, w)));
535
- }
536
- let D;
537
- if (z || j) {
538
- let w;
539
- if (z) {
540
- const b = Object.assign(Object.assign({
541
- prefixCls: `${p}-title`
542
- }, un(P, j)), st(c));
543
- w = /* @__PURE__ */ l.createElement(cn, Object.assign({}, b));
544
- }
545
- let T;
546
- if (j) {
547
- const b = Object.assign(Object.assign({
548
- prefixCls: `${p}-paragraph`
549
- }, fn(P, z)), st(d));
550
- T = /* @__PURE__ */ l.createElement(sn, Object.assign({}, b));
551
- }
552
- D = /* @__PURE__ */ l.createElement("div", {
553
- className: `${p}-content`
554
- }, w, T);
555
- }
556
- const I = E(p, {
557
- [`${p}-with-avatar`]: P,
558
- [`${p}-active`]: m,
559
- [`${p}-rtl`]: C === "rtl",
560
- [`${p}-round`]: g
561
- }, N == null ? void 0 : N.className, n, r, y, S);
562
- return O(/* @__PURE__ */ l.createElement("div", {
563
- className: I,
564
- style: Object.assign(Object.assign({}, N == null ? void 0 : N.style), o)
565
- }, G, D));
566
- }
567
- return s ?? null;
568
- };
569
- Ee.Button = tn;
570
- Ee.Avatar = en;
571
- Ee.Input = rn;
572
- Ee.Image = nn;
573
- Ee.Node = on;
574
- process.env.NODE_ENV !== "production" && (Ee.displayName = "Skeleton");
575
- const Xe = /* @__PURE__ */ Pa(null);
576
- var gn = function(t) {
577
- var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, s = o === void 0 ? {} : o, i = s.size, c = s.align, d = c === void 0 ? "center" : c, m = U(), g = B(m, 2), v = g[0], C = g[1], N = ee(), p = Ea.useCallback(function(y) {
578
- return typeof i == "function" ? i(y) : typeof i == "number" ? i : y;
579
- }, [i]);
580
- function O() {
581
- Dt.cancel(N.current);
582
- }
583
- return be(function() {
584
- var y = {};
585
- if (a)
586
- if (n) {
587
- y.width = p(a.width);
588
- var S = r ? "right" : "left";
589
- d === "start" && (y[S] = a[S]), d === "center" && (y[S] = a[S] + a.width / 2, y.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (y[S] = a[S] + a.width, y.transform = "translateX(-100%)");
590
- } else
591
- y.height = p(a.height), d === "start" && (y.top = a.top), d === "center" && (y.top = a.top + a.height / 2, y.transform = "translateY(-50%)"), d === "end" && (y.top = a.top + a.height, y.transform = "translateY(-100%)");
592
- return O(), N.current = Dt(function() {
593
- C(y);
594
- }), O;
595
- }, [a, n, r, d, p]), {
596
- style: v
597
- };
598
- }, Gt = {
599
- width: 0,
600
- height: 0,
601
- left: 0,
602
- top: 0
603
- };
604
- function mn(e, t, a) {
605
- return Qt(function() {
606
- for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || Gt, s = o.left + o.width, i = 0; i < e.length; i += 1) {
607
- var c = e[i].key, d = t.get(c);
608
- if (!d) {
609
- var m;
610
- d = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || Gt;
611
- }
612
- var g = r.get(c) || le({}, d);
613
- g.right = s - g.left - g.width, r.set(c, g);
614
- }
615
- return r;
616
- }, [e.map(function(n) {
617
- return n.key;
618
- }).join("_"), t, a]);
619
- }
620
- function Wt(e, t) {
621
- var a = l.useRef(e), n = l.useState({}), r = B(n, 2), o = r[1];
622
- function s(i) {
623
- var c = typeof i == "function" ? i(a.current) : i;
624
- c !== a.current && t(c, a.current), a.current = c, o({});
625
- }
626
- return [a.current, s];
627
- }
628
- var bn = 0.1, kt = 0.01, We = 20, Vt = Math.pow(0.995, We);
629
- function vn(e, t) {
630
- var a = U(), n = B(a, 2), r = n[0], o = n[1], s = U(0), i = B(s, 2), c = i[0], d = i[1], m = U(0), g = B(m, 2), v = g[0], C = g[1], N = U(), p = B(N, 2), O = p[0], y = p[1], S = ee();
631
- function P(w) {
632
- var T = w.touches[0], b = T.screenX, h = T.screenY;
633
- o({
634
- x: b,
635
- y: h
636
- }), window.clearInterval(S.current);
637
- }
638
- function z(w) {
639
- if (r) {
640
- var T = w.touches[0], b = T.screenX, h = T.screenY;
641
- o({
642
- x: b,
643
- y: h
644
- });
645
- var _ = b - r.x, x = h - r.y;
646
- t(_, x);
647
- var W = Date.now();
648
- d(W), C(W - c), y({
649
- x: _,
650
- y: x
651
- });
652
- }
653
- }
654
- function j() {
655
- if (r && (o(null), y(null), O)) {
656
- var w = O.x / v, T = O.y / v, b = Math.abs(w), h = Math.abs(T);
657
- if (Math.max(b, h) < bn) return;
658
- var _ = w, x = T;
659
- S.current = window.setInterval(function() {
660
- if (Math.abs(_) < kt && Math.abs(x) < kt) {
661
- window.clearInterval(S.current);
662
- return;
663
- }
664
- _ *= Vt, x *= Vt, t(_ * We, x * We);
665
- }, We);
666
- }
667
- }
668
- var G = ee();
669
- function D(w) {
670
- var T = w.deltaX, b = w.deltaY, h = 0, _ = Math.abs(T), x = Math.abs(b);
671
- _ === x ? h = G.current === "x" ? T : b : _ > x ? (h = T, G.current = "x") : (h = b, G.current = "y"), t(-h, -h) && w.preventDefault();
672
- }
673
- var I = ee(null);
674
- I.current = {
675
- onTouchStart: P,
676
- onTouchMove: z,
677
- onTouchEnd: j,
678
- onWheel: D
679
- }, l.useEffect(function() {
680
- function w(_) {
681
- I.current.onTouchStart(_);
682
- }
683
- function T(_) {
684
- I.current.onTouchMove(_);
685
- }
686
- function b(_) {
687
- I.current.onTouchEnd(_);
688
- }
689
- function h(_) {
690
- I.current.onWheel(_);
691
- }
692
- return document.addEventListener("touchmove", T, {
693
- passive: !1
694
- }), document.addEventListener("touchend", b, {
695
- passive: !0
696
- }), e.current.addEventListener("touchstart", w, {
697
- passive: !0
698
- }), e.current.addEventListener("wheel", h, {
699
- passive: !1
700
- }), function() {
701
- document.removeEventListener("touchmove", T), document.removeEventListener("touchend", b);
702
- };
703
- }, []);
704
- }
705
- function ta(e) {
706
- var t = U(0), a = B(t, 2), n = a[0], r = a[1], o = ee(0), s = ee();
707
- return s.current = e, Ta(function() {
708
- var i;
709
- (i = s.current) === null || i === void 0 || i.call(s);
710
- }, [n]), function() {
711
- o.current === n && (o.current += 1, r(o.current));
712
- };
713
- }
714
- function pn(e) {
715
- var t = ee([]), a = U({}), n = B(a, 2), r = n[1], o = ee(typeof e == "function" ? e() : e), s = ta(function() {
716
- var c = o.current;
717
- t.current.forEach(function(d) {
718
- c = d(c);
719
- }), t.current = [], o.current = c, r({});
720
- });
721
- function i(c) {
722
- t.current.push(c), s();
723
- }
724
- return [o.current, i];
725
- }
726
- var Kt = {
727
- width: 0,
728
- height: 0,
729
- left: 0,
730
- top: 0,
731
- right: 0
732
- };
733
- function hn(e, t, a, n, r, o, s) {
734
- var i = s.tabs, c = s.tabPosition, d = s.rtl, m, g, v;
735
- return ["top", "bottom"].includes(c) ? (m = "width", g = d ? "right" : "left", v = Math.abs(a)) : (m = "height", g = "top", v = -a), Qt(function() {
736
- if (!i.length)
737
- return [0, 0];
738
- for (var C = i.length, N = C, p = 0; p < C; p += 1) {
739
- var O = e.get(i[p].key) || Kt;
740
- if (Math.floor(O[g] + O[m]) > Math.floor(v + t)) {
741
- N = p - 1;
742
- break;
743
- }
744
- }
745
- for (var y = 0, S = C - 1; S >= 0; S -= 1) {
746
- var P = e.get(i[S].key) || Kt;
747
- if (P[g] < v) {
748
- y = S + 1;
749
- break;
750
- }
751
- }
752
- return y >= N ? [0, 0] : [y, N];
753
- }, [e, t, n, r, o, v, c, i.map(function(C) {
754
- return C.key;
755
- }).join("_"), d]);
756
- }
757
- function qt(e) {
758
- var t;
759
- return e instanceof Map ? (t = {}, e.forEach(function(a, n) {
760
- t[n] = a;
761
- })) : t = e, JSON.stringify(t);
762
- }
763
- var $n = "TABS_DQ";
764
- function aa(e) {
765
- return String(e).replace(/"/g, $n);
766
- }
767
- function ht(e, t, a, n) {
768
- return (
769
- // Only editable tabs can be removed
770
- !(!a || // Tabs cannot be removed when disabled
771
- n || // closable is false
772
- e === !1 || // If closable is undefined, the remove button should be hidden when closeIcon is null or false
773
- e === void 0 && (t === !1 || t === null))
774
- );
775
- }
776
- var na = /* @__PURE__ */ l.forwardRef(function(e, t) {
777
- var a = e.prefixCls, n = e.editable, r = e.locale, o = e.style;
778
- return !n || n.showAdd === !1 ? null : /* @__PURE__ */ l.createElement("button", {
779
- ref: t,
780
- type: "button",
781
- className: "".concat(a, "-nav-add"),
782
- style: o,
783
- "aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
784
- onClick: function(i) {
785
- n.onEdit("add", {
786
- event: i
787
- });
788
- }
789
- }, n.addIcon || "+");
790
- }), ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
791
- var a = e.position, n = e.prefixCls, r = e.extra;
792
- if (!r)
793
- return null;
794
- var o, s = {};
795
- return ft(r) === "object" && !/* @__PURE__ */ l.isValidElement(r) ? s = r : s.right = r, a === "right" && (o = s.right), a === "left" && (o = s.left), o ? /* @__PURE__ */ l.createElement("div", {
796
- className: "".concat(n, "-extra-content"),
797
- ref: t
798
- }, o) : null;
799
- });
800
- process.env.NODE_ENV !== "production" && (ut.displayName = "ExtraContent");
801
- var yn = /* @__PURE__ */ l.forwardRef(function(e, t) {
802
- var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, s = e.mobile, i = e.more, c = i === void 0 ? {} : i, d = e.style, m = e.className, g = e.editable, v = e.tabBarGutter, C = e.rtl, N = e.removeAriaLabel, p = e.onTabClick, O = e.getPopupContainer, y = e.popupClassName, S = U(!1), P = B(S, 2), z = P[0], j = P[1], G = U(null), D = B(G, 2), I = D[0], w = D[1], T = c.icon, b = T === void 0 ? "More" : T, h = "".concat(n, "-more-popup"), _ = "".concat(a, "-dropdown"), x = I !== null ? "".concat(h, "-").concat(I) : null, W = o == null ? void 0 : o.dropdownAriaLabel;
803
- function X(R, H) {
804
- R.preventDefault(), R.stopPropagation(), g.onEdit("remove", {
805
- key: H,
806
- event: R
807
- });
808
- }
809
- var f = /* @__PURE__ */ l.createElement(Da, {
810
- onClick: function(H) {
811
- var k = H.key, Q = H.domEvent;
812
- p(k, Q), j(!1);
813
- },
814
- prefixCls: "".concat(_, "-menu"),
815
- id: h,
816
- tabIndex: -1,
817
- role: "listbox",
818
- "aria-activedescendant": x,
819
- selectedKeys: [I],
820
- "aria-label": W !== void 0 ? W : "expanded dropdown"
821
- }, r.map(function(R) {
822
- var H = R.closable, k = R.disabled, Q = R.closeIcon, Z = R.key, ne = R.label, ae = ht(H, Q, g, k);
823
- return /* @__PURE__ */ l.createElement(Aa, {
824
- key: Z,
825
- id: "".concat(h, "-").concat(Z),
826
- role: "option",
827
- "aria-controls": n && "".concat(n, "-panel-").concat(Z),
828
- disabled: k
829
- }, /* @__PURE__ */ l.createElement("span", null, ne), ae && /* @__PURE__ */ l.createElement("button", {
830
- type: "button",
831
- "aria-label": N || "remove",
832
- tabIndex: 0,
833
- className: "".concat(_, "-menu-item-remove"),
834
- onClick: function(ge) {
835
- ge.stopPropagation(), X(ge, Z);
836
- }
837
- }, Q || g.removeIcon || "×"));
838
- }));
839
- function Y(R) {
840
- for (var H = r.filter(function(ae) {
841
- return !ae.disabled;
842
- }), k = H.findIndex(function(ae) {
843
- return ae.key === I;
844
- }) || 0, Q = H.length, Z = 0; Z < Q; Z += 1) {
845
- k = (k + R + Q) % Q;
846
- var ne = H[k];
847
- if (!ne.disabled) {
848
- w(ne.key);
849
- return;
850
- }
851
- }
852
- }
853
- function se(R) {
854
- var H = R.which;
855
- if (!z) {
856
- [Ce.DOWN, Ce.SPACE, Ce.ENTER].includes(H) && (j(!0), R.preventDefault());
857
- return;
858
- }
859
- switch (H) {
860
- case Ce.UP:
861
- Y(-1), R.preventDefault();
862
- break;
863
- case Ce.DOWN:
864
- Y(1), R.preventDefault();
865
- break;
866
- case Ce.ESC:
867
- j(!1);
868
- break;
869
- case Ce.SPACE:
870
- case Ce.ENTER:
871
- I !== null && p(I, R);
872
- break;
873
- }
874
- }
875
- be(function() {
876
- var R = document.getElementById(x);
877
- R && R.scrollIntoView && R.scrollIntoView(!1);
878
- }, [I]), be(function() {
879
- z || w(null);
880
- }, [z]);
881
- var q = te({}, C ? "marginRight" : "marginLeft", v);
882
- r.length || (q.visibility = "hidden", q.order = 1);
883
- var J = E(te({}, "".concat(_, "-rtl"), C)), ce = s ? null : /* @__PURE__ */ l.createElement(Ha, he({
884
- prefixCls: _,
885
- overlay: f,
886
- visible: r.length ? z : !1,
887
- onVisibleChange: j,
888
- overlayClassName: E(J, y),
889
- mouseEnterDelay: 0.1,
890
- mouseLeaveDelay: 0.1,
891
- getPopupContainer: O
892
- }, c), /* @__PURE__ */ l.createElement("button", {
893
- type: "button",
894
- className: "".concat(a, "-nav-more"),
895
- style: q,
896
- tabIndex: -1,
897
- "aria-hidden": "true",
898
- "aria-haspopup": "listbox",
899
- "aria-controls": h,
900
- id: "".concat(n, "-more"),
901
- "aria-expanded": z,
902
- onKeyDown: se
903
- }, b));
904
- return /* @__PURE__ */ l.createElement("div", {
905
- className: E("".concat(a, "-nav-operations"), m),
906
- style: d,
907
- ref: t
908
- }, ce, /* @__PURE__ */ l.createElement(na, {
909
- prefixCls: a,
910
- locale: o,
911
- editable: g
912
- }));
913
- });
914
- const Sn = /* @__PURE__ */ l.memo(yn, function(e, t) {
915
- return (
916
- // https://github.com/ant-design/ant-design/issues/32544
917
- // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
918
- t.tabMoving
919
- );
920
- });
921
- var Cn = function(t) {
922
- var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, s = t.tab, i = s.key, c = s.label, d = s.disabled, m = s.closeIcon, g = s.icon, v = t.closable, C = t.renderWrapper, N = t.removeAriaLabel, p = t.editable, O = t.onClick, y = t.onFocus, S = t.onBlur, P = t.onKeyDown, z = t.onMouseDown, j = t.onMouseUp, G = t.style, D = t.tabCount, I = t.currentPosition, w = "".concat(a, "-tab"), T = ht(v, m, p, d);
923
- function b(X) {
924
- d || O(X);
925
- }
926
- function h(X) {
927
- X.preventDefault(), X.stopPropagation(), p.onEdit("remove", {
928
- key: i,
929
- event: X
930
- });
931
- }
932
- var _ = l.useMemo(function() {
933
- return g && typeof c == "string" ? /* @__PURE__ */ l.createElement("span", null, c) : c;
934
- }, [c, g]), x = l.useRef(null);
935
- l.useEffect(function() {
936
- o && x.current && x.current.focus();
937
- }, [o]);
938
- var W = /* @__PURE__ */ l.createElement("div", {
939
- key: i,
940
- "data-node-key": aa(i),
941
- className: E(w, te(te(te(te({}, "".concat(w, "-with-remove"), T), "".concat(w, "-active"), r), "".concat(w, "-disabled"), d), "".concat(w, "-focus"), o)),
942
- style: G,
943
- onClick: b
944
- }, /* @__PURE__ */ l.createElement("div", {
945
- ref: x,
946
- role: "tab",
947
- "aria-selected": r,
948
- id: n && "".concat(n, "-tab-").concat(i),
949
- className: "".concat(w, "-btn"),
950
- "aria-controls": n && "".concat(n, "-panel-").concat(i),
951
- "aria-disabled": d,
952
- tabIndex: d ? null : r ? 0 : -1,
953
- onClick: function(f) {
954
- f.stopPropagation(), b(f);
955
- },
956
- onKeyDown: P,
957
- onMouseDown: z,
958
- onMouseUp: j,
959
- onFocus: y,
960
- onBlur: S
961
- }, o && /* @__PURE__ */ l.createElement("div", {
962
- "aria-live": "polite",
963
- style: {
964
- width: 0,
965
- height: 0,
966
- position: "absolute",
967
- overflow: "hidden",
968
- opacity: 0
969
- }
970
- }, "Tab ".concat(I, " of ").concat(D)), g && /* @__PURE__ */ l.createElement("span", {
971
- className: "".concat(w, "-icon")
972
- }, g), c && _), T && /* @__PURE__ */ l.createElement("button", {
973
- type: "button",
974
- "aria-label": N || "remove",
975
- tabIndex: r ? 0 : -1,
976
- className: "".concat(w, "-remove"),
977
- onClick: function(f) {
978
- f.stopPropagation(), h(f);
979
- }
980
- }, m || p.removeIcon || "×"));
981
- return C ? C(W) : W;
982
- }, xn = function(t, a) {
983
- var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, s = t.offsetLeft, i = t.getBoundingClientRect(), c = i.width, d = i.height, m = i.left, g = i.top;
984
- return Math.abs(c - n) < 1 ? [c, d, m - a.left, g - a.top] : [n, r, s, o];
985
- }, Re = function(t) {
986
- var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, s = o === void 0 ? 0 : o;
987
- if (t.current) {
988
- var i = t.current.getBoundingClientRect(), c = i.width, d = i.height;
989
- if (Math.abs(c - r) < 1)
990
- return [c, d];
991
- }
992
- return [r, s];
993
- }, Ge = function(t, a) {
994
- return t[a ? 0 : 1];
995
- }, Ft = /* @__PURE__ */ l.forwardRef(function(e, t) {
996
- var a = e.className, n = e.style, r = e.id, o = e.animated, s = e.activeKey, i = e.rtl, c = e.extra, d = e.editable, m = e.locale, g = e.tabPosition, v = e.tabBarGutter, C = e.children, N = e.onTabClick, p = e.onTabScroll, O = e.indicator, y = l.useContext(Xe), S = y.prefixCls, P = y.tabs, z = ee(null), j = ee(null), G = ee(null), D = ee(null), I = ee(null), w = ee(null), T = ee(null), b = g === "top" || g === "bottom", h = Wt(0, function(M, $) {
997
- b && p && p({
998
- direction: M > $ ? "left" : "right"
999
- });
1000
- }), _ = B(h, 2), x = _[0], W = _[1], X = Wt(0, function(M, $) {
1001
- !b && p && p({
1002
- direction: M > $ ? "top" : "bottom"
1003
- });
1004
- }), f = B(X, 2), Y = f[0], se = f[1], q = U([0, 0]), J = B(q, 2), ce = J[0], R = J[1], H = U([0, 0]), k = B(H, 2), Q = k[0], Z = k[1], ne = U([0, 0]), ae = B(ne, 2), $e = ae[0], ge = ae[1], re = U([0, 0]), ye = B(re, 2), L = ye[0], de = ye[1], xe = pn(/* @__PURE__ */ new Map()), Be = B(xe, 2), F = Be[0], V = Be[1], ue = mn(P, F, Q[0]), _e = Ge(ce, b), Me = Ge(Q, b), Ye = Ge($e, b), St = Ge(L, b), Ct = Math.floor(_e) < Math.floor(Me + Ye), me = Ct ? _e - St : _e - Ye, sa = "".concat(S, "-nav-operations-hidden"), Se = 0, we = 0;
1005
- b && i ? (Se = 0, we = Math.max(0, Me - me)) : (Se = Math.min(0, me - Me), we = 0);
1006
- function Qe(M) {
1007
- return M < Se ? Se : M > we ? we : M;
1008
- }
1009
- var Ze = ee(null), ca = U(), xt = B(ca, 2), De = xt[0], _t = xt[1];
1010
- function Je() {
1011
- _t(Date.now());
1012
- }
1013
- function et() {
1014
- Ze.current && clearTimeout(Ze.current);
1015
- }
1016
- vn(D, function(M, $) {
1017
- function A(K, fe) {
1018
- K(function(ie) {
1019
- var Ne = Qe(ie + fe);
1020
- return Ne;
1021
- });
1022
- }
1023
- return Ct ? (b ? A(W, M) : A(se, $), et(), Je(), !0) : !1;
1024
- }), be(function() {
1025
- return et(), De && (Ze.current = setTimeout(function() {
1026
- _t(0);
1027
- }, 100)), et;
1028
- }, [De]);
1029
- var da = hn(
1030
- ue,
1031
- // Container
1032
- me,
1033
- // Transform
1034
- b ? x : Y,
1035
- // Tabs
1036
- Me,
1037
- // Add
1038
- Ye,
1039
- // Operation
1040
- St,
1041
- le(le({}, e), {}, {
1042
- tabs: P
1043
- })
1044
- ), wt = B(da, 2), ua = wt[0], fa = wt[1], Et = Ra(function() {
1045
- var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : s, $ = ue.get(M) || {
1046
- width: 0,
1047
- height: 0,
1048
- left: 0,
1049
- right: 0,
1050
- top: 0
1051
- };
1052
- if (b) {
1053
- var A = x;
1054
- i ? $.right < x ? A = $.right : $.right + $.width > x + me && (A = $.right + $.width - me) : $.left < -x ? A = -$.left : $.left + $.width > -x + me && (A = -($.left + $.width - me)), se(0), W(Qe(A));
1055
- } else {
1056
- var K = Y;
1057
- $.top < -Y ? K = -$.top : $.top + $.height > -Y + me && (K = -($.top + $.height - me)), W(0), se(Qe(K));
1058
- }
1059
- }), ga = U(), Pt = B(ga, 2), Pe = Pt[0], Le = Pt[1], ma = U(!1), Ot = B(ma, 2), ba = Ot[0], Nt = Ot[1], pe = P.filter(function(M) {
1060
- return !M.disabled;
1061
- }).map(function(M) {
1062
- return M.key;
1063
- }), Oe = function($) {
1064
- var A = pe.indexOf(Pe || s), K = pe.length, fe = (A + $ + K) % K, ie = pe[fe];
1065
- Le(ie);
1066
- }, va = function($) {
1067
- var A = $.code, K = i && b, fe = pe[0], ie = pe[pe.length - 1];
1068
- switch (A) {
1069
- case "ArrowLeft": {
1070
- b && Oe(K ? 1 : -1);
1071
- break;
1072
- }
1073
- case "ArrowRight": {
1074
- b && Oe(K ? -1 : 1);
1075
- break;
1076
- }
1077
- case "ArrowUp": {
1078
- $.preventDefault(), b || Oe(-1);
1079
- break;
1080
- }
1081
- case "ArrowDown": {
1082
- $.preventDefault(), b || Oe(1);
1083
- break;
1084
- }
1085
- case "Home": {
1086
- $.preventDefault(), Le(fe);
1087
- break;
1088
- }
1089
- case "End": {
1090
- $.preventDefault(), Le(ie);
1091
- break;
1092
- }
1093
- case "Enter":
1094
- case "Space": {
1095
- $.preventDefault(), N(Pe, $);
1096
- break;
1097
- }
1098
- case "Backspace":
1099
- case "Delete": {
1100
- var Ne = pe.indexOf(Pe), oe = P.find(function(Te) {
1101
- return Te.key === Pe;
1102
- }), nt = ht(oe == null ? void 0 : oe.closable, oe == null ? void 0 : oe.closeIcon, d, oe == null ? void 0 : oe.disabled);
1103
- nt && ($.preventDefault(), $.stopPropagation(), d.onEdit("remove", {
1104
- key: Pe,
1105
- event: $
1106
- }), Ne === pe.length - 1 ? Oe(-1) : Oe(1));
1107
- break;
1108
- }
1109
- }
1110
- }, Ae = {};
1111
- b ? Ae[i ? "marginRight" : "marginLeft"] = v : Ae.marginTop = v;
1112
- var Tt = P.map(function(M, $) {
1113
- var A = M.key;
1114
- return /* @__PURE__ */ l.createElement(Cn, {
1115
- id: r,
1116
- prefixCls: S,
1117
- key: A,
1118
- tab: M,
1119
- style: $ === 0 ? void 0 : Ae,
1120
- closable: M.closable,
1121
- editable: d,
1122
- active: A === s,
1123
- focus: A === Pe,
1124
- renderWrapper: C,
1125
- removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
1126
- tabCount: pe.length,
1127
- currentPosition: $ + 1,
1128
- onClick: function(fe) {
1129
- N(A, fe);
1130
- },
1131
- onKeyDown: va,
1132
- onFocus: function() {
1133
- ba || Le(A), Et(A), Je(), D.current && (i || (D.current.scrollLeft = 0), D.current.scrollTop = 0);
1134
- },
1135
- onBlur: function() {
1136
- Le(void 0);
1137
- },
1138
- onMouseDown: function() {
1139
- Nt(!0);
1140
- },
1141
- onMouseUp: function() {
1142
- Nt(!1);
1143
- }
1144
- });
1145
- }), Rt = function() {
1146
- return V(function() {
1147
- var $, A = /* @__PURE__ */ new Map(), K = ($ = I.current) === null || $ === void 0 ? void 0 : $.getBoundingClientRect();
1148
- return P.forEach(function(fe) {
1149
- var ie, Ne = fe.key, oe = (ie = I.current) === null || ie === void 0 ? void 0 : ie.querySelector('[data-node-key="'.concat(aa(Ne), '"]'));
1150
- if (oe) {
1151
- var nt = xn(oe, K), Te = B(nt, 4), Sa = Te[0], Ca = Te[1], xa = Te[2], _a = Te[3];
1152
- A.set(Ne, {
1153
- width: Sa,
1154
- height: Ca,
1155
- left: xa,
1156
- top: _a
1157
- });
1158
- }
1159
- }), A;
1160
- });
1161
- };
1162
- be(function() {
1163
- Rt();
1164
- }, [P.map(function(M) {
1165
- return M.key;
1166
- }).join("_")]);
1167
- var He = ta(function() {
1168
- var M = Re(z), $ = Re(j), A = Re(G);
1169
- R([M[0] - $[0] - A[0], M[1] - $[1] - A[1]]);
1170
- var K = Re(T);
1171
- ge(K);
1172
- var fe = Re(w);
1173
- de(fe);
1174
- var ie = Re(I);
1175
- Z([ie[0] - K[0], ie[1] - K[1]]), Rt();
1176
- }), pa = P.slice(0, ua), ha = P.slice(fa + 1), It = [].concat(ct(pa), ct(ha)), zt = ue.get(s), $a = gn({
1177
- activeTabOffset: zt,
1178
- horizontal: b,
1179
- indicator: O,
1180
- rtl: i
1181
- }), ya = $a.style;
1182
- be(function() {
1183
- Et();
1184
- }, [s, Se, we, qt(zt), qt(ue), b]), be(function() {
1185
- He();
1186
- }, [i]);
1187
- var Mt = !!It.length, je = "".concat(S, "-nav-wrap"), tt, at, Lt, jt;
1188
- return b ? i ? (at = x > 0, tt = x !== we) : (tt = x < 0, at = x !== Se) : (Lt = Y < 0, jt = Y !== Se), /* @__PURE__ */ l.createElement(rt, {
1189
- onResize: He
1190
- }, /* @__PURE__ */ l.createElement("div", {
1191
- ref: Ia(t, z),
1192
- role: "tablist",
1193
- "aria-orientation": b ? "horizontal" : "vertical",
1194
- className: E("".concat(S, "-nav"), a),
1195
- style: n,
1196
- onKeyDown: function() {
1197
- Je();
1198
- }
1199
- }, /* @__PURE__ */ l.createElement(ut, {
1200
- ref: j,
1201
- position: "left",
1202
- extra: c,
1203
- prefixCls: S
1204
- }), /* @__PURE__ */ l.createElement(rt, {
1205
- onResize: He
1206
- }, /* @__PURE__ */ l.createElement("div", {
1207
- className: E(je, te(te(te(te({}, "".concat(je, "-ping-left"), tt), "".concat(je, "-ping-right"), at), "".concat(je, "-ping-top"), Lt), "".concat(je, "-ping-bottom"), jt)),
1208
- ref: D
1209
- }, /* @__PURE__ */ l.createElement(rt, {
1210
- onResize: He
1211
- }, /* @__PURE__ */ l.createElement("div", {
1212
- ref: I,
1213
- className: "".concat(S, "-nav-list"),
1214
- style: {
1215
- transform: "translate(".concat(x, "px, ").concat(Y, "px)"),
1216
- transition: De ? "none" : void 0
1217
- }
1218
- }, Tt, /* @__PURE__ */ l.createElement(na, {
1219
- ref: T,
1220
- prefixCls: S,
1221
- locale: m,
1222
- editable: d,
1223
- style: le(le({}, Tt.length === 0 ? void 0 : Ae), {}, {
1224
- visibility: Mt ? "hidden" : null
1225
- })
1226
- }), /* @__PURE__ */ l.createElement("div", {
1227
- className: E("".concat(S, "-ink-bar"), te({}, "".concat(S, "-ink-bar-animated"), o.inkBar)),
1228
- style: ya
1229
- }))))), /* @__PURE__ */ l.createElement(Sn, he({}, e, {
1230
- removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
1231
- ref: w,
1232
- prefixCls: S,
1233
- tabs: It,
1234
- className: !Mt && sa,
1235
- tabMoving: !!De
1236
- })), /* @__PURE__ */ l.createElement(ut, {
1237
- ref: G,
1238
- position: "right",
1239
- extra: c,
1240
- prefixCls: S
1241
- })));
1242
- }), $t = /* @__PURE__ */ l.forwardRef(function(e, t) {
1243
- var a = e.prefixCls, n = e.className, r = e.style, o = e.id, s = e.active, i = e.tabKey, c = e.children;
1244
- return /* @__PURE__ */ l.createElement("div", {
1245
- id: o && "".concat(o, "-panel-").concat(i),
1246
- role: "tabpanel",
1247
- tabIndex: s ? 0 : -1,
1248
- "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
1249
- "aria-hidden": !s,
1250
- style: r,
1251
- className: E(a, s && "".concat(a, "-active"), n),
1252
- ref: t
1253
- }, c);
1254
- });
1255
- process.env.NODE_ENV !== "production" && ($t.displayName = "TabPane");
1256
- var _n = ["renderTabBar"], wn = ["label", "key"], ra = function(t) {
1257
- var a = t.renderTabBar, n = ke(t, _n), r = l.useContext(Xe), o = r.tabs;
1258
- if (a) {
1259
- var s = le(le({}, n), {}, {
1260
- // Legacy support. We do not use this actually
1261
- panes: o.map(function(i) {
1262
- var c = i.label, d = i.key, m = ke(i, wn);
1263
- return /* @__PURE__ */ l.createElement($t, he({
1264
- tab: c,
1265
- key: d,
1266
- tabKey: d
1267
- }, m));
1268
- })
1269
- });
1270
- return a(s, Ft);
1271
- }
1272
- return /* @__PURE__ */ l.createElement(Ft, n);
1273
- };
1274
- process.env.NODE_ENV !== "production" && (ra.displayName = "TabNavListWrapper");
1275
- var En = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], Pn = function(t) {
1276
- var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, s = t.destroyInactiveTabPane, i = l.useContext(Xe), c = i.prefixCls, d = i.tabs, m = r.tabPane, g = "".concat(c, "-tabpane");
1277
- return /* @__PURE__ */ l.createElement("div", {
1278
- className: E("".concat(c, "-content-holder"))
1279
- }, /* @__PURE__ */ l.createElement("div", {
1280
- className: E("".concat(c, "-content"), "".concat(c, "-content-").concat(o), te({}, "".concat(c, "-content-animated"), m))
1281
- }, d.map(function(v) {
1282
- var C = v.key, N = v.forceRender, p = v.style, O = v.className, y = v.destroyInactiveTabPane, S = ke(v, En), P = C === n;
1283
- return /* @__PURE__ */ l.createElement(za, he({
1284
- key: C,
1285
- visible: P,
1286
- forceRender: N,
1287
- removeOnLeave: !!(s || y),
1288
- leavedClassName: "".concat(g, "-hidden")
1289
- }, r.tabPaneMotion), function(z, j) {
1290
- var G = z.style, D = z.className;
1291
- return /* @__PURE__ */ l.createElement($t, he({}, S, {
1292
- prefixCls: g,
1293
- id: a,
1294
- tabKey: C,
1295
- animated: m,
1296
- active: P,
1297
- style: le(le({}, p), G),
1298
- className: E(O, D),
1299
- ref: j
1300
- }));
1301
- });
1302
- })));
1303
- };
1304
- function On() {
1305
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1306
- inkBar: !0,
1307
- tabPane: !1
1308
- }, t;
1309
- return e === !1 ? t = {
1310
- inkBar: !1,
1311
- tabPane: !1
1312
- } : e === !0 ? t = {
1313
- inkBar: !0,
1314
- tabPane: !1
1315
- } : t = le({
1316
- inkBar: !0
1317
- }, ft(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && Oa(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
1318
- }
1319
- var Nn = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Xt = 0, ia = /* @__PURE__ */ l.forwardRef(function(e, t) {
1320
- var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, s = e.items, i = e.direction, c = e.activeKey, d = e.defaultActiveKey, m = e.editable, g = e.animated, v = e.tabPosition, C = v === void 0 ? "top" : v, N = e.tabBarGutter, p = e.tabBarStyle, O = e.tabBarExtraContent, y = e.locale, S = e.more, P = e.destroyInactiveTabPane, z = e.renderTabBar, j = e.onChange, G = e.onTabClick, D = e.onTabScroll, I = e.getPopupContainer, w = e.popupClassName, T = e.indicator, b = ke(e, Nn), h = l.useMemo(function() {
1321
- return (s || []).filter(function(L) {
1322
- return L && ft(L) === "object" && "key" in L;
1323
- });
1324
- }, [s]), _ = i === "rtl", x = On(g), W = U(!1), X = B(W, 2), f = X[0], Y = X[1];
1325
- be(function() {
1326
- Y(La());
1327
- }, []);
1328
- var se = Bt(function() {
1329
- var L;
1330
- return (L = h[0]) === null || L === void 0 ? void 0 : L.key;
1331
- }, {
1332
- value: c,
1333
- defaultValue: d
1334
- }), q = B(se, 2), J = q[0], ce = q[1], R = U(function() {
1335
- return h.findIndex(function(L) {
1336
- return L.key === J;
1337
- });
1338
- }), H = B(R, 2), k = H[0], Q = H[1];
1339
- be(function() {
1340
- var L = h.findIndex(function(xe) {
1341
- return xe.key === J;
1342
- });
1343
- if (L === -1) {
1344
- var de;
1345
- L = Math.max(0, Math.min(k, h.length - 1)), ce((de = h[L]) === null || de === void 0 ? void 0 : de.key);
1346
- }
1347
- Q(L);
1348
- }, [h.map(function(L) {
1349
- return L.key;
1350
- }).join("_"), J, k]);
1351
- var Z = Bt(null, {
1352
- value: a
1353
- }), ne = B(Z, 2), ae = ne[0], $e = ne[1];
1354
- be(function() {
1355
- a || ($e("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Xt)), Xt += 1);
1356
- }, []);
1357
- function ge(L, de) {
1358
- G == null || G(L, de);
1359
- var xe = L !== J;
1360
- ce(L), xe && (j == null || j(L));
1361
- }
1362
- var re = {
1363
- id: ae,
1364
- activeKey: J,
1365
- animated: x,
1366
- tabPosition: C,
1367
- rtl: _,
1368
- mobile: f
1369
- }, ye = le(le({}, re), {}, {
1370
- editable: m,
1371
- locale: y,
1372
- more: S,
1373
- tabBarGutter: N,
1374
- onTabClick: ge,
1375
- onTabScroll: D,
1376
- extra: O,
1377
- style: p,
1378
- panes: null,
1379
- getPopupContainer: I,
1380
- popupClassName: w,
1381
- indicator: T
1382
- });
1383
- return /* @__PURE__ */ l.createElement(Xe.Provider, {
1384
- value: {
1385
- tabs: h,
1386
- prefixCls: r
1387
- }
1388
- }, /* @__PURE__ */ l.createElement("div", he({
1389
- ref: t,
1390
- id: a,
1391
- className: E(r, "".concat(r, "-").concat(C), te(te(te({}, "".concat(r, "-mobile"), f), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), _), o)
1392
- }, b), /* @__PURE__ */ l.createElement(ra, he({}, ye, {
1393
- renderTabBar: z
1394
- })), /* @__PURE__ */ l.createElement(Pn, he({
1395
- destroyInactiveTabPane: P
1396
- }, re, {
1397
- animated: x
1398
- }))));
1399
- });
1400
- process.env.NODE_ENV !== "production" && (ia.displayName = "Tabs");
1401
- const Tn = {
1402
- motionAppear: !1,
1403
- motionEnter: !0,
1404
- motionLeave: !0
1405
- };
1406
- function Rn(e) {
1407
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
1408
- inkBar: !0,
1409
- tabPane: !1
1410
- }, a;
1411
- return t === !1 ? a = {
1412
- inkBar: !1,
1413
- tabPane: !1
1414
- } : t === !0 ? a = {
1415
- inkBar: !0,
1416
- tabPane: !0
1417
- } : a = Object.assign({
1418
- inkBar: !0
1419
- }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Tn), {
1420
- motionName: ja(e, "switch")
1421
- })), a;
1422
- }
1423
- var In = function(e, t) {
1424
- var a = {};
1425
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
1426
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1427
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
1428
- return a;
1429
- };
1430
- function zn(e) {
1431
- return e.filter((t) => t);
1432
- }
1433
- function Mn(e, t) {
1434
- if (process.env.NODE_ENV !== "production" && bt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
1435
- return e;
1436
- const a = Na(t).map((n) => {
1437
- if (/* @__PURE__ */ l.isValidElement(n)) {
1438
- const {
1439
- key: r,
1440
- props: o
1441
- } = n, s = o || {}, {
1442
- tab: i
1443
- } = s, c = In(s, ["tab"]);
1444
- return Object.assign(Object.assign({
1445
- key: String(r)
1446
- }, c), {
1447
- label: i
1448
- });
1449
- }
1450
- return null;
1451
- });
1452
- return zn(a);
1453
- }
1454
- const Ln = (e) => {
1455
- const {
1456
- componentCls: t,
1457
- motionDurationSlow: a
1458
- } = e;
1459
- return [
1460
- {
1461
- [t]: {
1462
- [`${t}-switch`]: {
1463
- "&-appear, &-enter": {
1464
- transition: "none",
1465
- "&-start": {
1466
- opacity: 0
1467
- },
1468
- "&-active": {
1469
- opacity: 1,
1470
- transition: `opacity ${a}`
1471
- }
1472
- },
1473
- "&-leave": {
1474
- position: "absolute",
1475
- transition: "none",
1476
- inset: 0,
1477
- "&-start": {
1478
- opacity: 1
1479
- },
1480
- "&-active": {
1481
- opacity: 0,
1482
- transition: `opacity ${a}`
1483
- }
1484
- }
1485
- }
1486
- }
1487
- },
1488
- // Follow code may reuse in other components
1489
- [At(e, "slide-up"), At(e, "slide-down")]
1490
- ];
1491
- }, jn = (e) => {
1492
- const {
1493
- componentCls: t,
1494
- tabsCardPadding: a,
1495
- cardBg: n,
1496
- cardGutter: r,
1497
- colorBorderSecondary: o,
1498
- itemSelectedColor: s
1499
- } = e;
1500
- return {
1501
- [`${t}-card`]: {
1502
- [`> ${t}-nav, > div > ${t}-nav`]: {
1503
- [`${t}-tab`]: {
1504
- margin: 0,
1505
- padding: a,
1506
- background: n,
1507
- border: `${u(e.lineWidth)} ${e.lineType} ${o}`,
1508
- transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
1509
- },
1510
- [`${t}-tab-active`]: {
1511
- color: s,
1512
- background: e.colorBgContainer
1513
- },
1514
- [`${t}-tab-focus`]: Object.assign({}, Zt(e, -3)),
1515
- [`${t}-ink-bar`]: {
1516
- visibility: "hidden"
1517
- },
1518
- [`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]: {
1519
- outline: "none"
1520
- }
1521
- },
1522
- // ========================== Top & Bottom ==========================
1523
- [`&${t}-top, &${t}-bottom`]: {
1524
- [`> ${t}-nav, > div > ${t}-nav`]: {
1525
- [`${t}-tab + ${t}-tab`]: {
1526
- marginLeft: {
1527
- _skip_check_: !0,
1528
- value: u(r)
1529
- }
1530
- }
1531
- }
1532
- },
1533
- [`&${t}-top`]: {
1534
- [`> ${t}-nav, > div > ${t}-nav`]: {
1535
- [`${t}-tab`]: {
1536
- borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
1537
- },
1538
- [`${t}-tab-active`]: {
1539
- borderBottomColor: e.colorBgContainer
1540
- }
1541
- }
1542
- },
1543
- [`&${t}-bottom`]: {
1544
- [`> ${t}-nav, > div > ${t}-nav`]: {
1545
- [`${t}-tab`]: {
1546
- borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
1547
- },
1548
- [`${t}-tab-active`]: {
1549
- borderTopColor: e.colorBgContainer
1550
- }
1551
- }
1552
- },
1553
- // ========================== Left & Right ==========================
1554
- [`&${t}-left, &${t}-right`]: {
1555
- [`> ${t}-nav, > div > ${t}-nav`]: {
1556
- [`${t}-tab + ${t}-tab`]: {
1557
- marginTop: u(r)
1558
- }
1559
- }
1560
- },
1561
- [`&${t}-left`]: {
1562
- [`> ${t}-nav, > div > ${t}-nav`]: {
1563
- [`${t}-tab`]: {
1564
- borderRadius: {
1565
- _skip_check_: !0,
1566
- value: `${u(e.borderRadiusLG)} 0 0 ${u(e.borderRadiusLG)}`
1567
- }
1568
- },
1569
- [`${t}-tab-active`]: {
1570
- borderRightColor: {
1571
- _skip_check_: !0,
1572
- value: e.colorBgContainer
1573
- }
1574
- }
1575
- }
1576
- },
1577
- [`&${t}-right`]: {
1578
- [`> ${t}-nav, > div > ${t}-nav`]: {
1579
- [`${t}-tab`]: {
1580
- borderRadius: {
1581
- _skip_check_: !0,
1582
- value: `0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0`
1583
- }
1584
- },
1585
- [`${t}-tab-active`]: {
1586
- borderLeftColor: {
1587
- _skip_check_: !0,
1588
- value: e.colorBgContainer
1589
- }
1590
- }
1591
- }
1592
- }
1593
- }
1594
- };
1595
- }, Bn = (e) => {
1596
- const {
1597
- componentCls: t,
1598
- itemHoverColor: a,
1599
- dropdownEdgeChildVerticalPadding: n
1600
- } = e;
1601
- return {
1602
- [`${t}-dropdown`]: Object.assign(Object.assign({}, vt(e)), {
1603
- position: "absolute",
1604
- top: -9999,
1605
- left: {
1606
- _skip_check_: !0,
1607
- value: -9999
1608
- },
1609
- zIndex: e.zIndexPopup,
1610
- display: "block",
1611
- "&-hidden": {
1612
- display: "none"
1613
- },
1614
- [`${t}-dropdown-menu`]: {
1615
- maxHeight: e.tabsDropdownHeight,
1616
- margin: 0,
1617
- padding: `${u(n)} 0`,
1618
- overflowX: "hidden",
1619
- overflowY: "auto",
1620
- textAlign: {
1621
- _skip_check_: !0,
1622
- value: "left"
1623
- },
1624
- listStyleType: "none",
1625
- backgroundColor: e.colorBgContainer,
1626
- backgroundClip: "padding-box",
1627
- borderRadius: e.borderRadiusLG,
1628
- outline: "none",
1629
- boxShadow: e.boxShadowSecondary,
1630
- "&-item": Object.assign(Object.assign({}, pt), {
1631
- display: "flex",
1632
- alignItems: "center",
1633
- minWidth: e.tabsDropdownWidth,
1634
- margin: 0,
1635
- padding: `${u(e.paddingXXS)} ${u(e.paddingSM)}`,
1636
- color: e.colorText,
1637
- fontWeight: "normal",
1638
- fontSize: e.fontSize,
1639
- lineHeight: e.lineHeight,
1640
- cursor: "pointer",
1641
- transition: `all ${e.motionDurationSlow}`,
1642
- "> span": {
1643
- flex: 1,
1644
- whiteSpace: "nowrap"
1645
- },
1646
- "&-remove": {
1647
- flex: "none",
1648
- marginLeft: {
1649
- _skip_check_: !0,
1650
- value: e.marginSM
1651
- },
1652
- color: e.colorTextDescription,
1653
- fontSize: e.fontSizeSM,
1654
- background: "transparent",
1655
- border: 0,
1656
- cursor: "pointer",
1657
- "&:hover": {
1658
- color: a
1659
- }
1660
- },
1661
- "&:hover": {
1662
- background: e.controlItemBgHover
1663
- },
1664
- "&-disabled": {
1665
- "&, &:hover": {
1666
- color: e.colorTextDisabled,
1667
- background: "transparent",
1668
- cursor: "not-allowed"
1669
- }
1670
- }
1671
- })
1672
- }
1673
- })
1674
- };
1675
- }, Dn = (e) => {
1676
- const {
1677
- componentCls: t,
1678
- margin: a,
1679
- colorBorderSecondary: n,
1680
- horizontalMargin: r,
1681
- verticalItemPadding: o,
1682
- verticalItemMargin: s,
1683
- calc: i
1684
- } = e;
1685
- return {
1686
- // ========================== Top & Bottom ==========================
1687
- [`${t}-top, ${t}-bottom`]: {
1688
- flexDirection: "column",
1689
- [`> ${t}-nav, > div > ${t}-nav`]: {
1690
- margin: r,
1691
- "&::before": {
1692
- position: "absolute",
1693
- right: {
1694
- _skip_check_: !0,
1695
- value: 0
1696
- },
1697
- left: {
1698
- _skip_check_: !0,
1699
- value: 0
1700
- },
1701
- borderBottom: `${u(e.lineWidth)} ${e.lineType} ${n}`,
1702
- content: "''"
1703
- },
1704
- [`${t}-ink-bar`]: {
1705
- height: e.lineWidthBold,
1706
- "&-animated": {
1707
- transition: `width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
1708
- right ${e.motionDurationSlow}`
1709
- }
1710
- },
1711
- [`${t}-nav-wrap`]: {
1712
- "&::before, &::after": {
1713
- top: 0,
1714
- bottom: 0,
1715
- width: e.controlHeight
1716
- },
1717
- "&::before": {
1718
- left: {
1719
- _skip_check_: !0,
1720
- value: 0
1721
- },
1722
- boxShadow: e.boxShadowTabsOverflowLeft
1723
- },
1724
- "&::after": {
1725
- right: {
1726
- _skip_check_: !0,
1727
- value: 0
1728
- },
1729
- boxShadow: e.boxShadowTabsOverflowRight
1730
- },
1731
- [`&${t}-nav-wrap-ping-left::before`]: {
1732
- opacity: 1
1733
- },
1734
- [`&${t}-nav-wrap-ping-right::after`]: {
1735
- opacity: 1
1736
- }
1737
- }
1738
- }
1739
- },
1740
- [`${t}-top`]: {
1741
- [`> ${t}-nav,
1742
- > div > ${t}-nav`]: {
1743
- "&::before": {
1744
- bottom: 0
1745
- },
1746
- [`${t}-ink-bar`]: {
1747
- bottom: 0
1748
- }
1749
- }
1750
- },
1751
- [`${t}-bottom`]: {
1752
- [`> ${t}-nav, > div > ${t}-nav`]: {
1753
- order: 1,
1754
- marginTop: a,
1755
- marginBottom: 0,
1756
- "&::before": {
1757
- top: 0
1758
- },
1759
- [`${t}-ink-bar`]: {
1760
- top: 0
1761
- }
1762
- },
1763
- [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1764
- order: 0
1765
- }
1766
- },
1767
- // ========================== Left & Right ==========================
1768
- [`${t}-left, ${t}-right`]: {
1769
- [`> ${t}-nav, > div > ${t}-nav`]: {
1770
- flexDirection: "column",
1771
- minWidth: i(e.controlHeight).mul(1.25).equal(),
1772
- // >>>>>>>>>>> Tab
1773
- [`${t}-tab`]: {
1774
- padding: o,
1775
- textAlign: "center"
1776
- },
1777
- [`${t}-tab + ${t}-tab`]: {
1778
- margin: s
1779
- },
1780
- // >>>>>>>>>>> Nav
1781
- [`${t}-nav-wrap`]: {
1782
- flexDirection: "column",
1783
- "&::before, &::after": {
1784
- right: {
1785
- _skip_check_: !0,
1786
- value: 0
1787
- },
1788
- left: {
1789
- _skip_check_: !0,
1790
- value: 0
1791
- },
1792
- height: e.controlHeight
1793
- },
1794
- "&::before": {
1795
- top: 0,
1796
- boxShadow: e.boxShadowTabsOverflowTop
1797
- },
1798
- "&::after": {
1799
- bottom: 0,
1800
- boxShadow: e.boxShadowTabsOverflowBottom
1801
- },
1802
- [`&${t}-nav-wrap-ping-top::before`]: {
1803
- opacity: 1
1804
- },
1805
- [`&${t}-nav-wrap-ping-bottom::after`]: {
1806
- opacity: 1
1807
- }
1808
- },
1809
- // >>>>>>>>>>> Ink Bar
1810
- [`${t}-ink-bar`]: {
1811
- width: e.lineWidthBold,
1812
- "&-animated": {
1813
- transition: `height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`
1814
- }
1815
- },
1816
- [`${t}-nav-list, ${t}-nav-operations`]: {
1817
- flex: "1 0 auto",
1818
- // fix safari scroll problem
1819
- flexDirection: "column"
1820
- }
1821
- }
1822
- },
1823
- [`${t}-left`]: {
1824
- [`> ${t}-nav, > div > ${t}-nav`]: {
1825
- [`${t}-ink-bar`]: {
1826
- right: {
1827
- _skip_check_: !0,
1828
- value: 0
1829
- }
1830
- }
1831
- },
1832
- [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1833
- marginLeft: {
1834
- _skip_check_: !0,
1835
- value: u(i(e.lineWidth).mul(-1).equal())
1836
- },
1837
- borderLeft: {
1838
- _skip_check_: !0,
1839
- value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1840
- },
1841
- [`> ${t}-content > ${t}-tabpane`]: {
1842
- paddingLeft: {
1843
- _skip_check_: !0,
1844
- value: e.paddingLG
1845
- }
1846
- }
1847
- }
1848
- },
1849
- [`${t}-right`]: {
1850
- [`> ${t}-nav, > div > ${t}-nav`]: {
1851
- order: 1,
1852
- [`${t}-ink-bar`]: {
1853
- left: {
1854
- _skip_check_: !0,
1855
- value: 0
1856
- }
1857
- }
1858
- },
1859
- [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1860
- order: 0,
1861
- marginRight: {
1862
- _skip_check_: !0,
1863
- value: i(e.lineWidth).mul(-1).equal()
1864
- },
1865
- borderRight: {
1866
- _skip_check_: !0,
1867
- value: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1868
- },
1869
- [`> ${t}-content > ${t}-tabpane`]: {
1870
- paddingRight: {
1871
- _skip_check_: !0,
1872
- value: e.paddingLG
1873
- }
1874
- }
1875
- }
1876
- }
1877
- };
1878
- }, An = (e) => {
1879
- const {
1880
- componentCls: t,
1881
- cardPaddingSM: a,
1882
- cardPaddingLG: n,
1883
- horizontalItemPaddingSM: r,
1884
- horizontalItemPaddingLG: o
1885
- } = e;
1886
- return {
1887
- [t]: {
1888
- "&-small": {
1889
- [`> ${t}-nav`]: {
1890
- [`${t}-tab`]: {
1891
- padding: r,
1892
- fontSize: e.titleFontSizeSM
1893
- }
1894
- }
1895
- },
1896
- "&-large": {
1897
- [`> ${t}-nav`]: {
1898
- [`${t}-tab`]: {
1899
- padding: o,
1900
- fontSize: e.titleFontSizeLG
1901
- }
1902
- }
1903
- }
1904
- },
1905
- [`${t}-card`]: {
1906
- [`&${t}-small`]: {
1907
- [`> ${t}-nav`]: {
1908
- [`${t}-tab`]: {
1909
- padding: a
1910
- }
1911
- },
1912
- [`&${t}-bottom`]: {
1913
- [`> ${t}-nav ${t}-tab`]: {
1914
- borderRadius: `0 0 ${u(e.borderRadius)} ${u(e.borderRadius)}`
1915
- }
1916
- },
1917
- [`&${t}-top`]: {
1918
- [`> ${t}-nav ${t}-tab`]: {
1919
- borderRadius: `${u(e.borderRadius)} ${u(e.borderRadius)} 0 0`
1920
- }
1921
- },
1922
- [`&${t}-right`]: {
1923
- [`> ${t}-nav ${t}-tab`]: {
1924
- borderRadius: {
1925
- _skip_check_: !0,
1926
- value: `0 ${u(e.borderRadius)} ${u(e.borderRadius)} 0`
1927
- }
1928
- }
1929
- },
1930
- [`&${t}-left`]: {
1931
- [`> ${t}-nav ${t}-tab`]: {
1932
- borderRadius: {
1933
- _skip_check_: !0,
1934
- value: `${u(e.borderRadius)} 0 0 ${u(e.borderRadius)}`
1935
- }
1936
- }
1937
- }
1938
- },
1939
- [`&${t}-large`]: {
1940
- [`> ${t}-nav`]: {
1941
- [`${t}-tab`]: {
1942
- padding: n
1943
- }
1944
- }
1945
- }
1946
- }
1947
- };
1948
- }, Hn = (e) => {
1949
- const {
1950
- componentCls: t,
1951
- itemActiveColor: a,
1952
- itemHoverColor: n,
1953
- iconCls: r,
1954
- tabsHorizontalItemMargin: o,
1955
- horizontalItemPadding: s,
1956
- itemSelectedColor: i,
1957
- itemColor: c
1958
- } = e, d = `${t}-tab`;
1959
- return {
1960
- [d]: {
1961
- position: "relative",
1962
- WebkitTouchCallout: "none",
1963
- WebkitTapHighlightColor: "transparent",
1964
- display: "inline-flex",
1965
- alignItems: "center",
1966
- padding: s,
1967
- fontSize: e.titleFontSize,
1968
- background: "transparent",
1969
- border: 0,
1970
- outline: "none",
1971
- cursor: "pointer",
1972
- color: c,
1973
- "&-btn, &-remove": {
1974
- "&:focus:not(:focus-visible), &:active": {
1975
- color: a
1976
- }
1977
- },
1978
- "&-btn": {
1979
- outline: "none",
1980
- transition: `all ${e.motionDurationSlow}`,
1981
- [`${d}-icon:not(:last-child)`]: {
1982
- marginInlineEnd: e.marginSM
1983
- }
1984
- },
1985
- "&-remove": Object.assign({
1986
- flex: "none",
1987
- marginRight: {
1988
- _skip_check_: !0,
1989
- value: e.calc(e.marginXXS).mul(-1).equal()
1990
- },
1991
- marginLeft: {
1992
- _skip_check_: !0,
1993
- value: e.marginXS
1994
- },
1995
- color: e.colorTextDescription,
1996
- fontSize: e.fontSizeSM,
1997
- background: "transparent",
1998
- border: "none",
1999
- outline: "none",
2000
- cursor: "pointer",
2001
- transition: `all ${e.motionDurationSlow}`,
2002
- "&:hover": {
2003
- color: e.colorTextHeading
2004
- }
2005
- }, dt(e)),
2006
- "&:hover": {
2007
- color: n
2008
- },
2009
- [`&${d}-active ${d}-btn`]: {
2010
- color: i,
2011
- textShadow: e.tabsActiveTextShadow
2012
- },
2013
- [`&${d}-focus ${d}-btn`]: Object.assign({}, Zt(e)),
2014
- [`&${d}-disabled`]: {
2015
- color: e.colorTextDisabled,
2016
- cursor: "not-allowed"
2017
- },
2018
- [`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
2019
- "&:focus, &:active": {
2020
- color: e.colorTextDisabled
2021
- }
2022
- },
2023
- [`& ${d}-remove ${r}`]: {
2024
- margin: 0
2025
- },
2026
- [`${r}:not(:last-child)`]: {
2027
- marginRight: {
2028
- _skip_check_: !0,
2029
- value: e.marginSM
2030
- }
2031
- }
2032
- },
2033
- [`${d} + ${d}`]: {
2034
- margin: {
2035
- _skip_check_: !0,
2036
- value: o
2037
- }
2038
- }
2039
- };
2040
- }, Gn = (e) => {
2041
- const {
2042
- componentCls: t,
2043
- tabsHorizontalItemMarginRTL: a,
2044
- iconCls: n,
2045
- cardGutter: r,
2046
- calc: o
2047
- } = e;
2048
- return {
2049
- [`${t}-rtl`]: {
2050
- direction: "rtl",
2051
- [`${t}-nav`]: {
2052
- [`${t}-tab`]: {
2053
- margin: {
2054
- _skip_check_: !0,
2055
- value: a
2056
- },
2057
- [`${t}-tab:last-of-type`]: {
2058
- marginLeft: {
2059
- _skip_check_: !0,
2060
- value: 0
2061
- }
2062
- },
2063
- [n]: {
2064
- marginRight: {
2065
- _skip_check_: !0,
2066
- value: 0
2067
- },
2068
- marginLeft: {
2069
- _skip_check_: !0,
2070
- value: u(e.marginSM)
2071
- }
2072
- },
2073
- [`${t}-tab-remove`]: {
2074
- marginRight: {
2075
- _skip_check_: !0,
2076
- value: u(e.marginXS)
2077
- },
2078
- marginLeft: {
2079
- _skip_check_: !0,
2080
- value: u(o(e.marginXXS).mul(-1).equal())
2081
- },
2082
- [n]: {
2083
- margin: 0
2084
- }
2085
- }
2086
- }
2087
- },
2088
- [`&${t}-left`]: {
2089
- [`> ${t}-nav`]: {
2090
- order: 1
2091
- },
2092
- [`> ${t}-content-holder`]: {
2093
- order: 0
2094
- }
2095
- },
2096
- [`&${t}-right`]: {
2097
- [`> ${t}-nav`]: {
2098
- order: 0
2099
- },
2100
- [`> ${t}-content-holder`]: {
2101
- order: 1
2102
- }
2103
- },
2104
- // ====================== Card ======================
2105
- [`&${t}-card${t}-top, &${t}-card${t}-bottom`]: {
2106
- [`> ${t}-nav, > div > ${t}-nav`]: {
2107
- [`${t}-tab + ${t}-tab`]: {
2108
- marginRight: {
2109
- _skip_check_: !0,
2110
- value: r
2111
- },
2112
- marginLeft: {
2113
- _skip_check_: !0,
2114
- value: 0
2115
- }
2116
- }
2117
- }
2118
- }
2119
- },
2120
- [`${t}-dropdown-rtl`]: {
2121
- direction: "rtl"
2122
- },
2123
- [`${t}-menu-item`]: {
2124
- [`${t}-dropdown-rtl`]: {
2125
- textAlign: {
2126
- _skip_check_: !0,
2127
- value: "right"
2128
- }
2129
- }
2130
- }
2131
- };
2132
- }, Wn = (e) => {
2133
- const {
2134
- componentCls: t,
2135
- tabsCardPadding: a,
2136
- cardHeight: n,
2137
- cardGutter: r,
2138
- itemHoverColor: o,
2139
- itemActiveColor: s,
2140
- colorBorderSecondary: i
2141
- } = e;
2142
- return {
2143
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, vt(e)), {
2144
- display: "flex",
2145
- // ========================== Navigation ==========================
2146
- [`> ${t}-nav, > div > ${t}-nav`]: {
2147
- position: "relative",
2148
- display: "flex",
2149
- flex: "none",
2150
- alignItems: "center",
2151
- [`${t}-nav-wrap`]: {
2152
- position: "relative",
2153
- display: "flex",
2154
- flex: "auto",
2155
- alignSelf: "stretch",
2156
- overflow: "hidden",
2157
- whiteSpace: "nowrap",
2158
- transform: "translate(0)",
2159
- // Fix chrome render bug
2160
- // >>>>> Ping shadow
2161
- "&::before, &::after": {
2162
- position: "absolute",
2163
- zIndex: 1,
2164
- opacity: 0,
2165
- transition: `opacity ${e.motionDurationSlow}`,
2166
- content: "''",
2167
- pointerEvents: "none"
2168
- }
2169
- },
2170
- [`${t}-nav-list`]: {
2171
- position: "relative",
2172
- display: "flex",
2173
- transition: `opacity ${e.motionDurationSlow}`
2174
- },
2175
- // >>>>>>>> Operations
2176
- [`${t}-nav-operations`]: {
2177
- display: "flex",
2178
- alignSelf: "stretch"
2179
- },
2180
- [`${t}-nav-operations-hidden`]: {
2181
- position: "absolute",
2182
- visibility: "hidden",
2183
- pointerEvents: "none"
2184
- },
2185
- [`${t}-nav-more`]: {
2186
- position: "relative",
2187
- padding: a,
2188
- background: "transparent",
2189
- border: 0,
2190
- color: e.colorText,
2191
- "&::after": {
2192
- position: "absolute",
2193
- right: {
2194
- _skip_check_: !0,
2195
- value: 0
2196
- },
2197
- bottom: 0,
2198
- left: {
2199
- _skip_check_: !0,
2200
- value: 0
2201
- },
2202
- height: e.calc(e.controlHeightLG).div(8).equal(),
2203
- transform: "translateY(100%)",
2204
- content: "''"
2205
- }
2206
- },
2207
- [`${t}-nav-add`]: Object.assign({
2208
- minWidth: n,
2209
- marginLeft: {
2210
- _skip_check_: !0,
2211
- value: r
2212
- },
2213
- padding: u(e.paddingXS),
2214
- background: "transparent",
2215
- border: `${u(e.lineWidth)} ${e.lineType} ${i}`,
2216
- borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`,
2217
- outline: "none",
2218
- cursor: "pointer",
2219
- color: e.colorText,
2220
- transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
2221
- "&:hover": {
2222
- color: o
2223
- },
2224
- "&:active, &:focus:not(:focus-visible)": {
2225
- color: s
2226
- }
2227
- }, dt(e, -3))
2228
- },
2229
- [`${t}-extra-content`]: {
2230
- flex: "none"
2231
- },
2232
- // ============================ InkBar ============================
2233
- [`${t}-ink-bar`]: {
2234
- position: "absolute",
2235
- background: e.inkBarColor,
2236
- pointerEvents: "none"
2237
- }
2238
- }), Hn(e)), {
2239
- // =========================== TabPanes ===========================
2240
- [`${t}-content`]: {
2241
- position: "relative",
2242
- width: "100%"
2243
- },
2244
- [`${t}-content-holder`]: {
2245
- flex: "auto",
2246
- minWidth: 0,
2247
- minHeight: 0
2248
- },
2249
- [`${t}-tabpane`]: Object.assign(Object.assign({}, dt(e)), {
2250
- "&-hidden": {
2251
- display: "none"
2252
- }
2253
- })
2254
- }),
2255
- [`${t}-centered`]: {
2256
- [`> ${t}-nav, > div > ${t}-nav`]: {
2257
- [`${t}-nav-wrap`]: {
2258
- [`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]: {
2259
- margin: "auto"
2260
- }
2261
- }
2262
- }
2263
- }
2264
- };
2265
- }, kn = (e) => {
2266
- const t = e.controlHeightLG;
2267
- return {
2268
- zIndexPopup: e.zIndexPopupBase + 50,
2269
- cardBg: e.colorFillAlter,
2270
- cardHeight: t,
2271
- // Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
2272
- cardPadding: `${(t - Math.round(e.fontSize * e.lineHeight)) / 2 - e.lineWidth}px ${e.padding}px`,
2273
- cardPaddingSM: `${e.paddingXXS * 1.5}px ${e.padding}px`,
2274
- cardPaddingLG: `${e.paddingXS}px ${e.padding}px ${e.paddingXXS * 1.5}px`,
2275
- titleFontSize: e.fontSize,
2276
- titleFontSizeLG: e.fontSizeLG,
2277
- titleFontSizeSM: e.fontSize,
2278
- inkBarColor: e.colorPrimary,
2279
- horizontalMargin: `0 0 ${e.margin}px 0`,
2280
- horizontalItemGutter: 32,
2281
- // Fixed Value
2282
- // Initialize with empty string, because horizontalItemMargin will be calculated with horizontalItemGutter by default.
2283
- horizontalItemMargin: "",
2284
- horizontalItemMarginRTL: "",
2285
- horizontalItemPadding: `${e.paddingSM}px 0`,
2286
- horizontalItemPaddingSM: `${e.paddingXS}px 0`,
2287
- horizontalItemPaddingLG: `${e.padding}px 0`,
2288
- verticalItemPadding: `${e.paddingXS}px ${e.paddingLG}px`,
2289
- verticalItemMargin: `${e.margin}px 0 0 0`,
2290
- itemColor: e.colorText,
2291
- itemSelectedColor: e.colorPrimary,
2292
- itemHoverColor: e.colorPrimaryHover,
2293
- itemActiveColor: e.colorPrimaryActive,
2294
- cardGutter: e.marginXXS / 2
2295
- };
2296
- }, Vn = gt("Tabs", (e) => {
2297
- const t = mt(e, {
2298
- // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
2299
- tabsCardPadding: e.cardPadding,
2300
- dropdownEdgeChildVerticalPadding: e.paddingXXS,
2301
- tabsActiveTextShadow: "0 0 0.25px currentcolor",
2302
- tabsDropdownHeight: 200,
2303
- tabsDropdownWidth: 120,
2304
- tabsHorizontalItemMargin: `0 0 0 ${u(e.horizontalItemGutter)}`,
2305
- tabsHorizontalItemMarginRTL: `0 0 0 ${u(e.horizontalItemGutter)}`
2306
- });
2307
- return [An(t), Gn(t), Dn(t), Bn(t), jn(t), Wn(t), Ln(t)];
2308
- }, kn), oa = () => null;
2309
- process.env.NODE_ENV !== "production" && (oa.displayName = "DeprecatedTabPane");
2310
- var Kn = function(e, t) {
2311
- var a = {};
2312
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2313
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2314
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2315
- return a;
2316
- };
2317
- const yt = (e) => {
2318
- var t, a, n, r, o, s, i, c, d, m, g;
2319
- const {
2320
- type: v,
2321
- className: C,
2322
- rootClassName: N,
2323
- size: p,
2324
- onEdit: O,
2325
- hideAdd: y,
2326
- centered: S,
2327
- addIcon: P,
2328
- removeIcon: z,
2329
- moreIcon: j,
2330
- more: G,
2331
- popupClassName: D,
2332
- children: I,
2333
- items: w,
2334
- animated: T,
2335
- style: b,
2336
- indicatorSize: h,
2337
- indicator: _
2338
- } = e, x = Kn(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
2339
- prefixCls: W
2340
- } = x, {
2341
- direction: X,
2342
- tabs: f,
2343
- getPrefixCls: Y,
2344
- getPopupContainer: se
2345
- } = l.useContext(ve), q = Y("tabs", W), J = ka(q), [ce, R, H] = Vn(q, J);
2346
- let k;
2347
- v === "editable-card" && (k = {
2348
- onEdit: (re, ye) => {
2349
- let {
2350
- key: L,
2351
- event: de
2352
- } = ye;
2353
- O == null || O(re === "add" ? de : L, re);
2354
- },
2355
- removeIcon: (t = z ?? (f == null ? void 0 : f.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ l.createElement(Ba, null),
2356
- addIcon: (P ?? (f == null ? void 0 : f.addIcon)) || /* @__PURE__ */ l.createElement(ea, null),
2357
- showAdd: y !== !0
2358
- });
2359
- const Q = Y();
2360
- if (process.env.NODE_ENV !== "production") {
2361
- const re = bt("Tabs");
2362
- process.env.NODE_ENV !== "production" && re(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && re(!(h || f != null && f.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
2363
- }
2364
- const Z = Jt(p), ne = Mn(w, I), ae = Rn(q, T), $e = Object.assign(Object.assign({}, f == null ? void 0 : f.style), b), ge = {
2365
- align: (a = _ == null ? void 0 : _.align) !== null && a !== void 0 ? a : (n = f == null ? void 0 : f.indicator) === null || n === void 0 ? void 0 : n.align,
2366
- size: (i = (o = (r = _ == null ? void 0 : _.size) !== null && r !== void 0 ? r : h) !== null && o !== void 0 ? o : (s = f == null ? void 0 : f.indicator) === null || s === void 0 ? void 0 : s.size) !== null && i !== void 0 ? i : f == null ? void 0 : f.indicatorSize
2367
- };
2368
- return ce(/* @__PURE__ */ l.createElement(ia, Object.assign({
2369
- direction: X,
2370
- getPopupContainer: se
2371
- }, x, {
2372
- items: ne,
2373
- className: E({
2374
- [`${q}-${Z}`]: Z,
2375
- [`${q}-card`]: ["card", "editable-card"].includes(v),
2376
- [`${q}-editable-card`]: v === "editable-card",
2377
- [`${q}-centered`]: S
2378
- }, f == null ? void 0 : f.className, C, N, R, H, J),
2379
- popupClassName: E(D, R, H, J),
2380
- style: $e,
2381
- editable: k,
2382
- more: Object.assign({
2383
- icon: (g = (m = (d = (c = f == null ? void 0 : f.more) === null || c === void 0 ? void 0 : c.icon) !== null && d !== void 0 ? d : f == null ? void 0 : f.moreIcon) !== null && m !== void 0 ? m : j) !== null && g !== void 0 ? g : /* @__PURE__ */ l.createElement(Ga, null),
2384
- transitionName: `${Q}-slide-up`
2385
- }, G),
2386
- prefixCls: q,
2387
- animated: ae,
2388
- indicator: ge
2389
- })));
2390
- };
2391
- yt.TabPane = oa;
2392
- process.env.NODE_ENV !== "production" && (yt.displayName = "Tabs");
2393
- var qn = function(e, t) {
2394
- var a = {};
2395
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2396
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2397
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2398
- return a;
2399
- };
2400
- const la = (e) => {
2401
- var {
2402
- prefixCls: t,
2403
- className: a,
2404
- hoverable: n = !0
2405
- } = e, r = qn(e, ["prefixCls", "className", "hoverable"]);
2406
- const {
2407
- getPrefixCls: o
2408
- } = l.useContext(ve), s = o("card", t), i = E(`${s}-grid`, a, {
2409
- [`${s}-grid-hoverable`]: n
2410
- });
2411
- return /* @__PURE__ */ l.createElement("div", Object.assign({}, r, {
2412
- className: i
2413
- }));
2414
- }, Fn = (e) => {
2415
- const {
2416
- antCls: t,
2417
- componentCls: a,
2418
- headerHeight: n,
2419
- headerPadding: r,
2420
- tabsMarginBottom: o
2421
- } = e;
2422
- return Object.assign(Object.assign({
2423
- display: "flex",
2424
- justifyContent: "center",
2425
- flexDirection: "column",
2426
- minHeight: n,
2427
- marginBottom: -1,
2428
- padding: `0 ${u(r)}`,
2429
- color: e.colorTextHeading,
2430
- fontWeight: e.fontWeightStrong,
2431
- fontSize: e.headerFontSize,
2432
- background: e.headerBg,
2433
- borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
2434
- borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
2435
- }, Ke()), {
2436
- "&-wrapper": {
2437
- width: "100%",
2438
- display: "flex",
2439
- alignItems: "center"
2440
- },
2441
- "&-title": Object.assign(Object.assign({
2442
- display: "inline-block",
2443
- flex: 1
2444
- }, pt), {
2445
- [`
2446
- > ${a}-typography,
2447
- > ${a}-typography-edit-content
2448
- `]: {
2449
- insetInlineStart: 0,
2450
- marginTop: 0,
2451
- marginBottom: 0
2452
- }
2453
- }),
2454
- [`${t}-tabs-top`]: {
2455
- clear: "both",
2456
- marginBottom: o,
2457
- color: e.colorText,
2458
- fontWeight: "normal",
2459
- fontSize: e.fontSize,
2460
- "&-bar": {
2461
- borderBottom: `${u(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
2462
- }
2463
- }
2464
- });
2465
- }, Xn = (e) => {
2466
- const {
2467
- cardPaddingBase: t,
2468
- colorBorderSecondary: a,
2469
- cardShadow: n,
2470
- lineWidth: r
2471
- } = e;
2472
- return {
2473
- width: "33.33%",
2474
- padding: t,
2475
- border: 0,
2476
- borderRadius: 0,
2477
- boxShadow: `
2478
- ${u(r)} 0 0 0 ${a},
2479
- 0 ${u(r)} 0 0 ${a},
2480
- ${u(r)} ${u(r)} 0 0 ${a},
2481
- ${u(r)} 0 0 0 ${a} inset,
2482
- 0 ${u(r)} 0 0 ${a} inset;
2483
- `,
2484
- transition: `all ${e.motionDurationMid}`,
2485
- "&-hoverable:hover": {
2486
- position: "relative",
2487
- zIndex: 1,
2488
- boxShadow: n
2489
- }
2490
- };
2491
- }, Un = (e) => {
2492
- const {
2493
- componentCls: t,
2494
- iconCls: a,
2495
- actionsLiMargin: n,
2496
- cardActionsIconSize: r,
2497
- colorBorderSecondary: o,
2498
- actionsBg: s
2499
- } = e;
2500
- return Object.assign(Object.assign({
2501
- margin: 0,
2502
- padding: 0,
2503
- listStyle: "none",
2504
- background: s,
2505
- borderTop: `${u(e.lineWidth)} ${e.lineType} ${o}`,
2506
- display: "flex",
2507
- borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2508
- }, Ke()), {
2509
- "& > li": {
2510
- margin: n,
2511
- color: e.colorTextDescription,
2512
- textAlign: "center",
2513
- "> span": {
2514
- position: "relative",
2515
- display: "block",
2516
- minWidth: e.calc(e.cardActionsIconSize).mul(2).equal(),
2517
- fontSize: e.fontSize,
2518
- lineHeight: e.lineHeight,
2519
- cursor: "pointer",
2520
- "&:hover": {
2521
- color: e.colorPrimary,
2522
- transition: `color ${e.motionDurationMid}`
2523
- },
2524
- [`a:not(${t}-btn), > ${a}`]: {
2525
- display: "inline-block",
2526
- width: "100%",
2527
- color: e.colorTextDescription,
2528
- lineHeight: u(e.fontHeight),
2529
- transition: `color ${e.motionDurationMid}`,
2530
- "&:hover": {
2531
- color: e.colorPrimary
2532
- }
2533
- },
2534
- [`> ${a}`]: {
2535
- fontSize: r,
2536
- lineHeight: u(e.calc(r).mul(e.lineHeight).equal())
2537
- }
2538
- },
2539
- "&:not(:last-child)": {
2540
- borderInlineEnd: `${u(e.lineWidth)} ${e.lineType} ${o}`
2541
- }
2542
- }
2543
- });
2544
- }, Yn = (e) => Object.assign(Object.assign({
2545
- margin: `${u(e.calc(e.marginXXS).mul(-1).equal())} 0`,
2546
- display: "flex"
2547
- }, Ke()), {
2548
- "&-avatar": {
2549
- paddingInlineEnd: e.padding
2550
- },
2551
- "&-detail": {
2552
- overflow: "hidden",
2553
- flex: 1,
2554
- "> div:not(:last-child)": {
2555
- marginBottom: e.marginXS
2556
- }
2557
- },
2558
- "&-title": Object.assign({
2559
- color: e.colorTextHeading,
2560
- fontWeight: e.fontWeightStrong,
2561
- fontSize: e.fontSizeLG
2562
- }, pt),
2563
- "&-description": {
2564
- color: e.colorTextDescription
2565
- }
2566
- }), Qn = (e) => {
2567
- const {
2568
- componentCls: t,
2569
- colorFillAlter: a,
2570
- headerPadding: n,
2571
- bodyPadding: r
2572
- } = e;
2573
- return {
2574
- [`${t}-head`]: {
2575
- padding: `0 ${u(n)}`,
2576
- background: a,
2577
- "&-title": {
2578
- fontSize: e.fontSize
2579
- }
2580
- },
2581
- [`${t}-body`]: {
2582
- padding: `${u(e.padding)} ${u(r)}`
2583
- }
2584
- };
2585
- }, Zn = (e) => {
2586
- const {
2587
- componentCls: t
2588
- } = e;
2589
- return {
2590
- overflow: "hidden",
2591
- [`${t}-body`]: {
2592
- userSelect: "none"
2593
- }
2594
- };
2595
- }, Jn = (e) => {
2596
- const {
2597
- componentCls: t,
2598
- cardShadow: a,
2599
- cardHeadPadding: n,
2600
- colorBorderSecondary: r,
2601
- boxShadowTertiary: o,
2602
- bodyPadding: s,
2603
- extraColor: i
2604
- } = e;
2605
- return {
2606
- [t]: Object.assign(Object.assign({}, vt(e)), {
2607
- position: "relative",
2608
- background: e.colorBgContainer,
2609
- borderRadius: e.borderRadiusLG,
2610
- [`&:not(${t}-bordered)`]: {
2611
- boxShadow: o
2612
- },
2613
- [`${t}-head`]: Fn(e),
2614
- [`${t}-extra`]: {
2615
- // https://stackoverflow.com/a/22429853/3040605
2616
- marginInlineStart: "auto",
2617
- color: i,
2618
- fontWeight: "normal",
2619
- fontSize: e.fontSize
2620
- },
2621
- [`${t}-body`]: Object.assign({
2622
- padding: s,
2623
- borderRadius: `0 0 ${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)}`
2624
- }, Ke()),
2625
- [`${t}-grid`]: Xn(e),
2626
- [`${t}-cover`]: {
2627
- "> *": {
2628
- display: "block",
2629
- width: "100%",
2630
- borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0`
2631
- }
2632
- },
2633
- [`${t}-actions`]: Un(e),
2634
- [`${t}-meta`]: Yn(e)
2635
- }),
2636
- [`${t}-bordered`]: {
2637
- border: `${u(e.lineWidth)} ${e.lineType} ${r}`,
2638
- [`${t}-cover`]: {
2639
- marginTop: -1,
2640
- marginInlineStart: -1,
2641
- marginInlineEnd: -1
2642
- }
2643
- },
2644
- [`${t}-hoverable`]: {
2645
- cursor: "pointer",
2646
- transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
2647
- "&:hover": {
2648
- borderColor: "transparent",
2649
- boxShadow: a
2650
- }
2651
- },
2652
- [`${t}-contain-grid`]: {
2653
- borderRadius: `${u(e.borderRadiusLG)} ${u(e.borderRadiusLG)} 0 0 `,
2654
- [`${t}-body`]: {
2655
- display: "flex",
2656
- flexWrap: "wrap"
2657
- },
2658
- [`&:not(${t}-loading) ${t}-body`]: {
2659
- marginBlockStart: e.calc(e.lineWidth).mul(-1).equal(),
2660
- marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
2661
- padding: 0
2662
- }
2663
- },
2664
- [`${t}-contain-tabs`]: {
2665
- [`> div${t}-head`]: {
2666
- minHeight: 0,
2667
- [`${t}-head-title, ${t}-extra`]: {
2668
- paddingTop: n
2669
- }
2670
- }
2671
- },
2672
- [`${t}-type-inner`]: Qn(e),
2673
- [`${t}-loading`]: Zn(e),
2674
- [`${t}-rtl`]: {
2675
- direction: "rtl"
2676
- }
2677
- };
2678
- }, er = (e) => {
2679
- const {
2680
- componentCls: t,
2681
- bodyPaddingSM: a,
2682
- headerPaddingSM: n,
2683
- headerHeightSM: r,
2684
- headerFontSizeSM: o
2685
- } = e;
2686
- return {
2687
- [`${t}-small`]: {
2688
- [`> ${t}-head`]: {
2689
- minHeight: r,
2690
- padding: `0 ${u(n)}`,
2691
- fontSize: o,
2692
- [`> ${t}-head-wrapper`]: {
2693
- [`> ${t}-extra`]: {
2694
- fontSize: e.fontSize
2695
- }
2696
- }
2697
- },
2698
- [`> ${t}-body`]: {
2699
- padding: a
2700
- }
2701
- },
2702
- [`${t}-small${t}-contain-tabs`]: {
2703
- [`> ${t}-head`]: {
2704
- [`${t}-head-title, ${t}-extra`]: {
2705
- paddingTop: 0,
2706
- display: "flex",
2707
- alignItems: "center"
2708
- }
2709
- }
2710
- }
2711
- };
2712
- }, tr = (e) => {
2713
- var t, a;
2714
- return {
2715
- headerBg: "transparent",
2716
- headerFontSize: e.fontSizeLG,
2717
- headerFontSizeSM: e.fontSize,
2718
- headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
2719
- headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
2720
- actionsBg: e.colorBgContainer,
2721
- actionsLiMargin: `${e.paddingSM}px 0`,
2722
- tabsMarginBottom: -e.padding - e.lineWidth,
2723
- extraColor: e.colorText,
2724
- bodyPaddingSM: 12,
2725
- // Fixed padding.
2726
- headerPaddingSM: 12,
2727
- bodyPadding: (t = e.bodyPadding) !== null && t !== void 0 ? t : e.paddingLG,
2728
- headerPadding: (a = e.headerPadding) !== null && a !== void 0 ? a : e.paddingLG
2729
- };
2730
- }, ar = gt("Card", (e) => {
2731
- const t = mt(e, {
2732
- cardShadow: e.boxShadowCard,
2733
- cardHeadPadding: e.padding,
2734
- cardPaddingBase: e.paddingLG,
2735
- cardActionsIconSize: e.fontSize
2736
- });
2737
- return [
2738
- // Style
2739
- Jn(t),
2740
- // Size
2741
- er(t)
2742
- ];
2743
- }, tr);
2744
- var Ut = function(e, t) {
2745
- var a = {};
2746
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2747
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2748
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2749
- return a;
2750
- };
2751
- const nr = (e) => {
2752
- const {
2753
- actionClasses: t,
2754
- actions: a = [],
2755
- actionStyle: n
2756
- } = e;
2757
- return /* @__PURE__ */ l.createElement("ul", {
2758
- className: t,
2759
- style: n
2760
- }, a.map((r, o) => {
2761
- const s = `action-${o}`;
2762
- return /* @__PURE__ */ l.createElement("li", {
2763
- style: {
2764
- width: `${100 / a.length}%`
2765
- },
2766
- key: s
2767
- }, /* @__PURE__ */ l.createElement("span", null, r));
2768
- }));
2769
- }, rr = /* @__PURE__ */ l.forwardRef((e, t) => {
2770
- const {
2771
- prefixCls: a,
2772
- className: n,
2773
- rootClassName: r,
2774
- style: o,
2775
- extra: s,
2776
- headStyle: i = {},
2777
- bodyStyle: c = {},
2778
- title: d,
2779
- loading: m,
2780
- bordered: g = !0,
2781
- size: v,
2782
- type: C,
2783
- cover: N,
2784
- actions: p,
2785
- tabList: O,
2786
- children: y,
2787
- activeTabKey: S,
2788
- defaultActiveTabKey: P,
2789
- tabBarExtraContent: z,
2790
- hoverable: j,
2791
- tabProps: G = {},
2792
- classNames: D,
2793
- styles: I
2794
- } = e, w = Ut(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
2795
- getPrefixCls: T,
2796
- direction: b,
2797
- card: h
2798
- } = l.useContext(ve);
2799
- if (process.env.NODE_ENV !== "production") {
2800
- const F = bt("Card");
2801
- [["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((V) => {
2802
- let [ue, _e] = V;
2803
- F.deprecated(!(ue in e), ue, _e);
2804
- });
2805
- }
2806
- const _ = (F) => {
2807
- var V;
2808
- (V = e.onTabChange) === null || V === void 0 || V.call(e, F);
2809
- }, x = (F) => {
2810
- var V;
2811
- return E((V = h == null ? void 0 : h.classNames) === null || V === void 0 ? void 0 : V[F], D == null ? void 0 : D[F]);
2812
- }, W = (F) => {
2813
- var V;
2814
- return Object.assign(Object.assign({}, (V = h == null ? void 0 : h.styles) === null || V === void 0 ? void 0 : V[F]), I == null ? void 0 : I[F]);
2815
- }, X = l.useMemo(() => {
2816
- let F = !1;
2817
- return l.Children.forEach(y, (V) => {
2818
- (V == null ? void 0 : V.type) === la && (F = !0);
2819
- }), F;
2820
- }, [y]), f = T("card", a), [Y, se, q] = ar(f), J = /* @__PURE__ */ l.createElement(Ee, {
2821
- loading: !0,
2822
- active: !0,
2823
- paragraph: {
2824
- rows: 4
2825
- },
2826
- title: !1
2827
- }, y), ce = S !== void 0, R = Object.assign(Object.assign({}, G), {
2828
- [ce ? "activeKey" : "defaultActiveKey"]: ce ? S : P,
2829
- tabBarExtraContent: z
2830
- });
2831
- let H;
2832
- const k = Jt(v), Q = !k || k === "default" ? "large" : k, Z = O ? /* @__PURE__ */ l.createElement(yt, Object.assign({
2833
- size: Q
2834
- }, R, {
2835
- className: `${f}-head-tabs`,
2836
- onChange: _,
2837
- items: O.map((F) => {
2838
- var {
2839
- tab: V
2840
- } = F, ue = Ut(F, ["tab"]);
2841
- return Object.assign({
2842
- label: V
2843
- }, ue);
2844
- })
2845
- })) : null;
2846
- if (d || s || Z) {
2847
- const F = E(`${f}-head`, x("header")), V = E(`${f}-head-title`, x("title")), ue = E(`${f}-extra`, x("extra")), _e = Object.assign(Object.assign({}, i), W("header"));
2848
- H = /* @__PURE__ */ l.createElement("div", {
2849
- className: F,
2850
- style: _e
2851
- }, /* @__PURE__ */ l.createElement("div", {
2852
- className: `${f}-head-wrapper`
2853
- }, d && /* @__PURE__ */ l.createElement("div", {
2854
- className: V,
2855
- style: W("title")
2856
- }, d), s && /* @__PURE__ */ l.createElement("div", {
2857
- className: ue,
2858
- style: W("extra")
2859
- }, s)), Z);
2860
- }
2861
- const ne = E(`${f}-cover`, x("cover")), ae = N ? /* @__PURE__ */ l.createElement("div", {
2862
- className: ne,
2863
- style: W("cover")
2864
- }, N) : null, $e = E(`${f}-body`, x("body")), ge = Object.assign(Object.assign({}, c), W("body")), re = /* @__PURE__ */ l.createElement("div", {
2865
- className: $e,
2866
- style: ge
2867
- }, m ? J : y), ye = E(`${f}-actions`, x("actions")), L = p != null && p.length ? /* @__PURE__ */ l.createElement(nr, {
2868
- actionClasses: ye,
2869
- actionStyle: W("actions"),
2870
- actions: p
2871
- }) : null, de = Ve(w, ["onTabChange"]), xe = E(f, h == null ? void 0 : h.className, {
2872
- [`${f}-loading`]: m,
2873
- [`${f}-bordered`]: g,
2874
- [`${f}-hoverable`]: j,
2875
- [`${f}-contain-grid`]: X,
2876
- [`${f}-contain-tabs`]: O == null ? void 0 : O.length,
2877
- [`${f}-${k}`]: k,
2878
- [`${f}-type-${C}`]: !!C,
2879
- [`${f}-rtl`]: b === "rtl"
2880
- }, n, r, se, q), Be = Object.assign(Object.assign({}, h == null ? void 0 : h.style), o);
2881
- return Y(/* @__PURE__ */ l.createElement("div", Object.assign({
2882
- ref: t
2883
- }, de, {
2884
- className: xe,
2885
- style: Be
2886
- }), H, ae, re, L));
2887
- });
2888
- var ir = function(e, t) {
2889
- var a = {};
2890
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
2891
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2892
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
2893
- return a;
2894
- };
2895
- const or = (e) => {
2896
- const {
2897
- prefixCls: t,
2898
- className: a,
2899
- avatar: n,
2900
- title: r,
2901
- description: o
2902
- } = e, s = ir(e, ["prefixCls", "className", "avatar", "title", "description"]), {
2903
- getPrefixCls: i
2904
- } = l.useContext(ve), c = i("card", t), d = E(`${c}-meta`, a), m = n ? /* @__PURE__ */ l.createElement("div", {
2905
- className: `${c}-meta-avatar`
2906
- }, n) : null, g = r ? /* @__PURE__ */ l.createElement("div", {
2907
- className: `${c}-meta-title`
2908
- }, r) : null, v = o ? /* @__PURE__ */ l.createElement("div", {
2909
- className: `${c}-meta-description`
2910
- }, o) : null, C = g || v ? /* @__PURE__ */ l.createElement("div", {
2911
- className: `${c}-meta-detail`
2912
- }, g, v) : null;
2913
- return /* @__PURE__ */ l.createElement("div", Object.assign({}, s, {
2914
- className: d
2915
- }), m, C);
2916
- }, Ue = rr;
2917
- Ue.Grid = la;
2918
- Ue.Meta = or;
2919
- process.env.NODE_ENV !== "production" && (Ue.displayName = "Card");
2920
- const Cr = Yt(Ue)`
1
+ import { d as o } from "../styled-components.browser.esm-CZ1XM4o4.js";
2
+ import { T as r } from "../index-CSPlXIlA.js";
3
+ import { C as t } from "../index-BW_7pvTr.js";
4
+ const i = o(t)`
2921
5
  .ant-card-body {
2922
6
  display: flex;
2923
7
  flex-direction: column;
@@ -2933,7 +17,7 @@ const Cr = Yt(Ue)`
2933
17
  color: red;
2934
18
  }
2935
19
  }
2936
- `, xr = Yt(wa.Title)`
20
+ `, d = o(r.Title)`
2937
21
  &.ant-typography {
2938
22
  color: green !important;
2939
23
  margin-bottom: 14px;
@@ -2942,6 +26,6 @@ const Cr = Yt(Ue)`
2942
26
  }
2943
27
  `;
2944
28
  export {
2945
- Cr as Card,
2946
- xr as Headline
29
+ i as Card,
30
+ d as Headline
2947
31
  };