@gobolt/genesis 0.0.10 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
  6. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  7. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  8. package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
  9. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
  10. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
  11. package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
  12. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  13. package/dist/Keyframes-C9_aCDvn.js +17 -0
  14. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  15. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  16. package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
  17. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  18. package/dist/Skeleton-BVN4pcVe.js +560 -0
  19. package/dist/TextArea-Bkf9hh7l.js +708 -0
  20. package/dist/Typography-CoZ5qD-t.js +705 -0
  21. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  22. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  23. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  24. package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
  25. package/dist/clsx-OuTLNxxd.js +16 -0
  26. package/dist/components/Avatar/Avatar.d.ts +12 -0
  27. package/dist/components/Avatar/Avatar.js +61 -0
  28. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  30. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +4 -0
  33. package/dist/components/Avatar/styles.d.ts +18 -0
  34. package/dist/components/Avatar/styles.js +326 -0
  35. package/dist/components/Badge/Badge.d.ts +5 -3
  36. package/dist/components/Badge/Badge.js +67 -100
  37. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  38. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  39. package/dist/components/Badge/styles.d.ts +12 -3
  40. package/dist/components/Badge/styles.js +30 -27
  41. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  42. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  43. package/dist/components/Breadcrumb/styles.js +239 -2260
  44. package/dist/components/Button/Button.d.ts +4 -3
  45. package/dist/components/Button/Button.js +10 -6
  46. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  47. package/dist/components/Button/__tests__/Button.test.js +1 -1
  48. package/dist/components/Button/styles.d.ts +2 -2
  49. package/dist/components/Button/styles.js +20 -17
  50. package/dist/components/Card/Card.d.ts +9 -0
  51. package/dist/components/Card/Card.js +16 -0
  52. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  53. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  54. package/dist/components/Card/__tests__/Card.test.js +16 -0
  55. package/dist/components/Card/index.d.ts +2 -0
  56. package/dist/components/Card/index.js +4 -0
  57. package/dist/components/Card/styles.d.ts +16 -0
  58. package/dist/components/Card/styles.js +12 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  60. package/dist/components/Checkbox/Checkbox.js +28 -16
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  62. package/dist/components/Checkbox/styles.js +22 -457
  63. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  64. package/dist/components/Dashboard/Dashboard.js +5 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  66. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  67. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  73. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  75. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  77. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  78. package/dist/components/Dashboard/index.d.ts +2 -0
  79. package/dist/components/Dashboard/index.js +4 -0
  80. package/dist/components/Dashboard/styles.d.ts +14 -0
  81. package/dist/components/Dashboard/styles.js +11 -0
  82. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  83. package/dist/components/DatePicker/DatePicker.js +5 -0
  84. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  85. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  86. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  87. package/dist/components/DatePicker/index.d.ts +2 -0
  88. package/dist/components/DatePicker/index.js +4 -0
  89. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  90. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  91. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  92. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  93. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  94. package/dist/components/DateRangePicker/index.d.ts +2 -0
  95. package/dist/components/DateRangePicker/index.js +4 -0
  96. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  97. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  98. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  99. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  100. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  101. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  102. package/dist/components/ErrorBoundary/index.js +4 -0
  103. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  104. package/dist/components/ErrorBoundary/styles.js +11 -0
  105. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  106. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  107. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  108. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  109. package/dist/components/Form/Form.js +3 -3
  110. package/dist/components/Form/__stories__/FormStory.js +127 -50
  111. package/dist/components/Form/__tests__/form.test.js +2 -2
  112. package/dist/components/Form/index.js +1 -1
  113. package/dist/components/Form/styles.js +1 -1
  114. package/dist/components/Glyph/Glyph.d.ts +4 -0
  115. package/dist/components/Glyph/Glyph.js +9 -0
  116. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  117. package/dist/components/Glyph/index.d.ts +2 -0
  118. package/dist/components/Glyph/index.js +4 -0
  119. package/dist/components/Glyph/styles.d.ts +14 -0
  120. package/dist/components/Glyph/styles.js +11 -0
  121. package/dist/components/Input/Input.d.ts +1 -2
  122. package/dist/components/Input/Input.js +14 -10
  123. package/dist/components/Input/__tests__/Input.test.js +1 -1
  124. package/dist/components/Input/styles.js +58 -466
  125. package/dist/components/Layout/Content/Content.d.ts +11 -0
  126. package/dist/components/Layout/Content/Content.js +32 -0
  127. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  128. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  129. package/dist/components/Layout/Content/index.d.ts +2 -0
  130. package/dist/components/Layout/Content/index.js +4 -0
  131. package/dist/components/Layout/Content/styles.d.ts +11 -0
  132. package/dist/components/Layout/Content/styles.js +16 -0
  133. package/dist/components/Layout/Layout.d.ts +8 -0
  134. package/dist/components/Layout/Layout.js +6 -0
  135. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  136. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  137. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  138. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  139. package/dist/components/Layout/MainLayout/index.js +4 -0
  140. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  141. package/dist/components/Layout/MainLayout/styles.js +69 -0
  142. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  143. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  144. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  145. package/dist/components/Layout/index.d.ts +2 -0
  146. package/dist/components/Layout/index.js +4 -0
  147. package/dist/components/Message/Message.d.ts +6 -4
  148. package/dist/components/Message/Message.js +70 -43
  149. package/dist/components/Message/__tests__/Message.test.js +1 -1
  150. package/dist/components/Message/styles.d.ts +1 -0
  151. package/dist/components/Message/styles.js +15 -11
  152. package/dist/components/Notification/Notification.js +145 -120
  153. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  154. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  155. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  156. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  157. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  158. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  159. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  160. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  161. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  162. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  163. package/dist/components/Notification/styles.d.ts +1 -1
  164. package/dist/components/Notification/styles.js +1 -1
  165. package/dist/components/Popover/Popover.d.ts +10 -0
  166. package/dist/components/Popover/Popover.js +21 -0
  167. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  168. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  169. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  170. package/dist/components/Popover/index.d.ts +2 -0
  171. package/dist/components/Popover/index.js +4 -0
  172. package/dist/components/Popover/styles.d.ts +15 -0
  173. package/dist/components/Popover/styles.js +6 -0
  174. package/dist/components/Progress/Progress.d.ts +18 -0
  175. package/dist/components/Progress/Progress.js +91 -0
  176. package/dist/components/Progress/Progress.util.d.ts +4 -0
  177. package/dist/components/Progress/Progress.util.js +62 -0
  178. package/dist/components/Progress/ProgressText.d.ts +11 -0
  179. package/dist/components/Progress/ProgressText.js +67 -0
  180. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  181. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  182. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  183. package/dist/components/Progress/index.d.ts +2 -0
  184. package/dist/components/Progress/index.js +4 -0
  185. package/dist/components/Progress/styles.d.ts +17 -0
  186. package/dist/components/Progress/styles.js +793 -0
  187. package/dist/components/Radio/Radio.js +22 -6
  188. package/dist/components/Radio/RadioGroup.js +1 -1
  189. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  190. package/dist/components/Radio/index.d.ts +1 -0
  191. package/dist/components/Row/Row.d.ts +14 -0
  192. package/dist/components/Row/Row.js +38 -0
  193. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  194. package/dist/components/Row/RowActions/RowActions.js +59 -0
  195. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  196. package/dist/components/Row/RowActions/styles.js +32 -0
  197. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  198. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  199. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  200. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  201. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  202. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  203. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  204. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  205. package/dist/components/Row/__tests__/Row.test.js +16 -0
  206. package/dist/components/Row/index.d.ts +2 -0
  207. package/dist/components/Row/index.js +4 -0
  208. package/dist/components/Row/styles.d.ts +15 -0
  209. package/dist/components/Row/styles.js +15 -0
  210. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  211. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  212. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  213. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  214. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  215. package/dist/components/SegmentedControls/index.d.ts +2 -0
  216. package/dist/components/SegmentedControls/index.js +4 -0
  217. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  218. package/dist/components/SegmentedControls/styles.js +511 -0
  219. package/dist/components/Select/Select.d.ts +2 -4
  220. package/dist/components/Select/Select.js +12 -11
  221. package/dist/components/Select/__tests__/Select.test.js +1 -1
  222. package/dist/components/Select/styles.js +39 -3654
  223. package/dist/components/Shapes/Shapes.d.ts +6 -0
  224. package/dist/components/Shapes/Shapes.js +8 -0
  225. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  226. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  227. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  228. package/dist/components/Shapes/index.d.ts +2 -0
  229. package/dist/components/Shapes/index.js +4 -0
  230. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  231. package/dist/components/Shapes/variants/Circle.js +23 -0
  232. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  233. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  234. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  235. package/dist/components/Shapes/variants/Triangle.js +23 -0
  236. package/dist/components/Switch/Switch.d.ts +9 -0
  237. package/dist/components/Switch/Switch.js +22 -0
  238. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  239. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  240. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  241. package/dist/components/Switch/index.d.ts +2 -0
  242. package/dist/components/Switch/index.js +4 -0
  243. package/dist/components/Switch/styles.d.ts +9 -0
  244. package/dist/components/Switch/styles.js +456 -0
  245. package/dist/components/Table/Table.d.ts +15 -0
  246. package/dist/components/Table/Table.js +23 -0
  247. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  248. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  249. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  250. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  251. package/dist/components/Table/__tests__/Table.test.js +34 -0
  252. package/dist/components/Table/index.d.ts +2 -0
  253. package/dist/components/Table/index.js +4 -0
  254. package/dist/components/Table/styles.d.ts +8 -0
  255. package/dist/components/Table/styles.js +6 -0
  256. package/dist/components/Tabs/Tabs.d.ts +10 -0
  257. package/dist/components/Tabs/Tabs.js +23 -0
  258. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  259. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  260. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  261. package/dist/components/Tabs/index.d.ts +2 -0
  262. package/dist/components/Tabs/index.js +4 -0
  263. package/dist/components/Tabs/styles.d.ts +12 -0
  264. package/dist/components/Tabs/styles.js +102 -0
  265. package/dist/components/Tile/Tile.d.ts +10 -0
  266. package/dist/components/Tile/Tile.js +21 -0
  267. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  268. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  269. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  270. package/dist/components/Tile/index.d.ts +2 -0
  271. package/dist/components/Tile/index.js +4 -0
  272. package/dist/components/Tile/styles.d.ts +11 -0
  273. package/dist/components/Tile/styles.js +12 -0
  274. package/dist/components/Toast/Toast.js +23 -6
  275. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  276. package/dist/components/Toast/index.js +1 -1
  277. package/dist/components/Toast/styles.d.ts +0 -1
  278. package/dist/components/Toast/styles.js +14 -23
  279. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  280. package/dist/components/Tooltip/Tooltip.js +50 -0
  281. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  282. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  283. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  284. package/dist/components/Tooltip/index.d.ts +2 -0
  285. package/dist/components/Tooltip/index.js +4 -0
  286. package/dist/components/Tooltip/styles.d.ts +20 -0
  287. package/dist/components/Tooltip/styles.js +11 -0
  288. package/dist/components/Typography/Typography.d.ts +5 -1
  289. package/dist/components/Typography/Typography.js +2 -2
  290. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  291. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  292. package/dist/components/Typography/index.js +1 -1
  293. package/dist/components/Typography/styles.d.ts +1 -0
  294. package/dist/components/Typography/styles.js +53 -17
  295. package/dist/components/index.d.ts +35 -1
  296. package/dist/components/index.js +58 -24
  297. package/dist/constants/index.d.ts +4 -0
  298. package/dist/constants/index.js +4 -2
  299. package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
  300. package/dist/dropdown-Dp_PTQ2u.js +2045 -0
  301. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  302. package/dist/genesis/GenesisThemeBreakdown.js +101 -43
  303. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  304. package/dist/genesis/styles.js +7 -2923
  305. package/dist/iconBase-LROS5hdG.js +112 -0
  306. package/dist/index-BPVue1Yd.js +445 -0
  307. package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
  308. package/dist/index-BRUI9igj.js +11 -0
  309. package/dist/index-B_1Ge8na.js +1846 -0
  310. package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
  311. package/dist/index-BeGv28kJ.js +5173 -0
  312. package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
  313. package/dist/index-BvOLXELm.js +102 -0
  314. package/dist/index-CLSrpQRW.js +416 -0
  315. package/dist/index-CbVOl2U6.js +288 -0
  316. package/dist/index-D0U6r5O7.js +780 -0
  317. package/dist/index-DEu2PVzQ.js +538 -0
  318. package/dist/index-DLdU7Tpd.js +183 -0
  319. package/dist/index-DNQ-jnBx.js +3321 -0
  320. package/dist/index-DOsPeIWJ.js +1000 -0
  321. package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
  322. package/dist/index-DWjq9XYj.js +899 -0
  323. package/dist/index.js +65 -31
  324. package/dist/interface/address.d.ts +10 -0
  325. package/dist/interface/address.js +1 -0
  326. package/dist/interface/appointment.d.ts +57 -0
  327. package/dist/interface/appointment.js +5 -0
  328. package/dist/interface/appointmentV2.d.ts +65 -0
  329. package/dist/interface/appointmentV2.js +1 -0
  330. package/dist/interface/appointmentsState.d.ts +21 -0
  331. package/dist/interface/appointmentsState.js +1 -0
  332. package/dist/interface/common.d.ts +2 -0
  333. package/dist/interface/common.js +1 -0
  334. package/dist/interface/completionData.d.ts +18 -0
  335. package/dist/interface/completionData.js +1 -0
  336. package/dist/interface/deliveryPartner.d.ts +25 -0
  337. package/dist/interface/deliveryPartner.js +1 -0
  338. package/dist/interface/organization.d.ts +9 -0
  339. package/dist/interface/organization.js +1 -0
  340. package/dist/interface/pagination.d.ts +8 -0
  341. package/dist/interface/pagination.js +1 -0
  342. package/dist/interface/roles.d.ts +9 -0
  343. package/dist/interface/roles.js +1 -0
  344. package/dist/interface/route.d.ts +73 -0
  345. package/dist/interface/route.js +1 -0
  346. package/dist/interface/routeAnalysis.d.ts +108 -0
  347. package/dist/interface/routeAnalysis.js +1 -0
  348. package/dist/interface/routeAutomationJob.d.ts +95 -0
  349. package/dist/interface/routeAutomationJob.js +10 -0
  350. package/dist/interface/routeAutomationLog.d.ts +10 -0
  351. package/dist/interface/routeAutomationLog.js +1 -0
  352. package/dist/interface/routeEvent.d.ts +55 -0
  353. package/dist/interface/routeEvent.js +5 -0
  354. package/dist/interface/serviceArea.d.ts +18 -0
  355. package/dist/interface/serviceArea.js +1 -0
  356. package/dist/interface/util.d.ts +3 -0
  357. package/dist/interface/util.js +1 -0
  358. package/dist/interface/vehicle.d.ts +120 -0
  359. package/dist/interface/vehicle.js +1 -0
  360. package/dist/interface/workOrder.d.ts +22 -0
  361. package/dist/interface/workOrder.js +1 -0
  362. package/dist/isVisible-D3-B85BJ.js +22 -0
  363. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  364. package/dist/motion-CUN72xsH.js +33 -0
  365. package/dist/omit-B_u6A-HL.js +9 -0
  366. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  367. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  368. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  369. package/dist/providers/BreakpointThemeProvider.js +21 -0
  370. package/dist/providers/GenesisProvider.js +3 -3
  371. package/dist/providers/ToastProvider.js +22 -6
  372. package/dist/providers/index.js +1 -1
  373. package/dist/providers/useGenesis.js +2 -2
  374. package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
  375. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  376. package/dist/setup-CUbCc8fQ.js +24706 -0
  377. package/dist/setup.types-dBtAXXGp.js +8824 -0
  378. package/dist/shadow-BoMGMNn3.js +13 -0
  379. package/dist/styleChecker-Cotu61d0.js +21 -0
  380. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
  381. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  382. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  383. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  384. package/dist/styles/theme/genesis-theme.js +398 -331
  385. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  386. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  387. package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
  388. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  389. package/dist/styles-CWdUpZom.js +289 -0
  390. package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
  391. package/dist/styles-qerRs7Rn.js +9196 -0
  392. package/dist/test/setup.d.ts +2 -3
  393. package/dist/test/setup.js +87 -4
  394. package/dist/test/setup.types.d.ts +7 -0
  395. package/dist/test/setup.types.js +1 -0
  396. package/dist/toArray-U3Az44CO.js +11 -0
  397. package/dist/useBreakpoint-TkMv121M.js +22 -0
  398. package/dist/useCSSVarCls-Dau77fzS.js +11 -0
  399. package/dist/useIcons-Ck4JP1m9.js +321 -0
  400. package/dist/useId-D2tzlufo.js +26 -0
  401. package/dist/useLocale-CTfNpakL.js +16 -0
  402. package/dist/useMergedState-D6toxSxh.js +23 -0
  403. package/dist/useSize-DSq4r6zy.js +9 -0
  404. package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
  405. package/dist/useZIndex-DhyHuZTN.js +44 -0
  406. package/dist/utils/icon-util.d.ts +2 -0
  407. package/dist/utils/icon-util.js +89 -0
  408. package/package.json +27 -15
  409. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  410. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  411. package/dist/TextArea-DKwCct3i.js +0 -1690
  412. package/dist/Typography-aGoDUl4R.js +0 -710
  413. package/dist/index-BZAhCB_K.js +0 -97
  414. package/dist/index-CfDY25LP.js +0 -873
  415. package/dist/index-DPW8XdWj.js +0 -952
  416. package/dist/isVisible-A-IfeFoT.js +0 -367
  417. package/dist/providers/ThemeProvider.d.ts +0 -9
  418. package/dist/providers/ThemeProvider.js +0 -21
  419. package/dist/setup-BvfREoHl.js +0 -33891
  420. package/dist/useLocale-DT-z_vQ6.js +0 -16
  421. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  422. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  423. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  424. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  425. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  426. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  427. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  428. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  429. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  430. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  431. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  432. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  433. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  434. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  435. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  436. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  437. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  438. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,1846 @@
1
+ import * as c from "react";
2
+ import ra, { createContext as ia, useState as j, useRef as U, useEffect as ce, useMemo as Tt } from "react";
3
+ import { R as oa } from "./CloseOutlined-ogxnm7Oy.js";
4
+ import { E as la, M as ca, D as da, R as sa } from "./EllipsisOutlined-DGMph0Bj.js";
5
+ import { d as fe, a as I, _ as ne, f as qe, b as Y, e as J, g as De, w as ua } from "./presets-Djh_L_6R.js";
6
+ import { I as fa } from "./AntdIcon-nCNB0J1E.js";
7
+ import { u as mt } from "./useMergedState-D6toxSxh.js";
8
+ import { a as va } from "./index-D0U6r5O7.js";
9
+ import { F as pt, b as ba, a as ma, o as gt, B as pa, s as ga, g as Pt, j as ha, m as $a, f as $, w as Rt, k as It, v as ya, p as Ue, C as Sa } from "./index-BbTV2Cw5.js";
10
+ import { R as Xe } from "./index-BQM5OniU.js";
11
+ import { K as pe } from "./KeyCode-DM2sFh3-.js";
12
+ import { u as _a } from "./useCSSVarCls-Dau77fzS.js";
13
+ import { u as xa } from "./useSize-DSq4r6zy.js";
14
+ import { g as Ca } from "./motion-CUN72xsH.js";
15
+ import { t as wa } from "./toArray-U3Az44CO.js";
16
+ import "./index-DLdU7Tpd.js";
17
+ import { i as ht } from "./Overflow-DWf4XIal.js";
18
+ var Ea = { 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" }, Ta = function(t, a) {
19
+ return /* @__PURE__ */ c.createElement(fa, fe({}, t, {
20
+ ref: a,
21
+ icon: Ea
22
+ }));
23
+ }, Nt = /* @__PURE__ */ c.forwardRef(Ta);
24
+ process.env.NODE_ENV !== "production" && (Nt.displayName = "PlusOutlined");
25
+ const Oe = /* @__PURE__ */ ia(null);
26
+ var Pa = function(t) {
27
+ var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, i = l.size, s = l.align, d = s === void 0 ? "center" : s, m = j(), b = I(m, 2), _ = b[0], R = b[1], O = U(), C = ra.useCallback(function(h) {
28
+ return typeof i == "function" ? i(h) : typeof i == "number" ? i : h;
29
+ }, [i]);
30
+ function z() {
31
+ pt.cancel(O.current);
32
+ }
33
+ return ce(function() {
34
+ var h = {};
35
+ if (a)
36
+ if (n) {
37
+ h.width = C(a.width);
38
+ var p = r ? "right" : "left";
39
+ d === "start" && (h[p] = a[p]), d === "center" && (h[p] = a[p] + a.width / 2, h.transform = r ? "translateX(50%)" : "translateX(-50%)"), d === "end" && (h[p] = a[p] + a.width, h.transform = "translateX(-100%)");
40
+ } else
41
+ h.height = C(a.height), d === "start" && (h.top = a.top), d === "center" && (h.top = a.top + a.height / 2, h.transform = "translateY(-50%)"), d === "end" && (h.top = a.top + a.height, h.transform = "translateY(-100%)");
42
+ return z(), O.current = pt(function() {
43
+ R(h);
44
+ }), z;
45
+ }, [a, n, r, d, C]), {
46
+ style: _
47
+ };
48
+ }, $t = {
49
+ width: 0,
50
+ height: 0,
51
+ left: 0,
52
+ top: 0
53
+ };
54
+ function Ra(e, t, a) {
55
+ return Tt(function() {
56
+ for (var n, r = /* @__PURE__ */ new Map(), o = t.get((n = e[0]) === null || n === void 0 ? void 0 : n.key) || $t, l = o.left + o.width, i = 0; i < e.length; i += 1) {
57
+ var s = e[i].key, d = t.get(s);
58
+ if (!d) {
59
+ var m;
60
+ d = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || $t;
61
+ }
62
+ var b = r.get(s) || ne({}, d);
63
+ b.right = l - b.left - b.width, r.set(s, b);
64
+ }
65
+ return r;
66
+ }, [e.map(function(n) {
67
+ return n.key;
68
+ }).join("_"), t, a]);
69
+ }
70
+ function yt(e, t) {
71
+ var a = c.useRef(e), n = c.useState({}), r = I(n, 2), o = r[1];
72
+ function l(i) {
73
+ var s = typeof i == "function" ? i(a.current) : i;
74
+ s !== a.current && t(s, a.current), a.current = s, o({});
75
+ }
76
+ return [a.current, l];
77
+ }
78
+ var Ia = 0.1, St = 0.01, ze = 20, _t = Math.pow(0.995, ze);
79
+ function Na(e, t) {
80
+ var a = j(), n = I(a, 2), r = n[0], o = n[1], l = j(0), i = I(l, 2), s = i[0], d = i[1], m = j(0), b = I(m, 2), _ = b[0], R = b[1], O = j(), C = I(O, 2), z = C[0], h = C[1], p = U();
81
+ function P(x) {
82
+ var E = x.touches[0], v = E.screenX, y = E.screenY;
83
+ o({
84
+ x: v,
85
+ y
86
+ }), window.clearInterval(p.current);
87
+ }
88
+ function B(x) {
89
+ if (r) {
90
+ var E = x.touches[0], v = E.screenX, y = E.screenY;
91
+ o({
92
+ x: v,
93
+ y
94
+ });
95
+ var g = v - r.x, S = y - r.y;
96
+ t(g, S);
97
+ var K = Date.now();
98
+ d(K), R(K - s), h({
99
+ x: g,
100
+ y: S
101
+ });
102
+ }
103
+ }
104
+ function A() {
105
+ if (r && (o(null), h(null), z)) {
106
+ var x = z.x / _, E = z.y / _, v = Math.abs(x), y = Math.abs(E);
107
+ if (Math.max(v, y) < Ia) return;
108
+ var g = x, S = E;
109
+ p.current = window.setInterval(function() {
110
+ if (Math.abs(g) < St && Math.abs(S) < St) {
111
+ window.clearInterval(p.current);
112
+ return;
113
+ }
114
+ g *= _t, S *= _t, t(g * ze, S * ze);
115
+ }, ze);
116
+ }
117
+ }
118
+ var W = U();
119
+ function H(x) {
120
+ var E = x.deltaX, v = x.deltaY, y = 0, g = Math.abs(E), S = Math.abs(v);
121
+ g === S ? y = W.current === "x" ? E : v : g > S ? (y = E, W.current = "x") : (y = v, W.current = "y"), t(-y, -y) && x.preventDefault();
122
+ }
123
+ var L = U(null);
124
+ L.current = {
125
+ onTouchStart: P,
126
+ onTouchMove: B,
127
+ onTouchEnd: A,
128
+ onWheel: H
129
+ }, c.useEffect(function() {
130
+ function x(g) {
131
+ L.current.onTouchStart(g);
132
+ }
133
+ function E(g) {
134
+ L.current.onTouchMove(g);
135
+ }
136
+ function v(g) {
137
+ L.current.onTouchEnd(g);
138
+ }
139
+ function y(g) {
140
+ L.current.onWheel(g);
141
+ }
142
+ return document.addEventListener("touchmove", E, {
143
+ passive: !1
144
+ }), document.addEventListener("touchend", v, {
145
+ passive: !0
146
+ }), e.current.addEventListener("touchstart", x, {
147
+ passive: !0
148
+ }), e.current.addEventListener("wheel", y, {
149
+ passive: !1
150
+ }), function() {
151
+ document.removeEventListener("touchmove", E), document.removeEventListener("touchend", v);
152
+ };
153
+ }, []);
154
+ }
155
+ function Mt(e) {
156
+ var t = j(0), a = I(t, 2), n = a[0], r = a[1], o = U(0), l = U();
157
+ return l.current = e, ba(function() {
158
+ var i;
159
+ (i = l.current) === null || i === void 0 || i.call(l);
160
+ }, [n]), function() {
161
+ o.current === n && (o.current += 1, r(o.current));
162
+ };
163
+ }
164
+ function Ma(e) {
165
+ var t = U([]), a = j({}), n = I(a, 2), r = n[1], o = U(typeof e == "function" ? e() : e), l = Mt(function() {
166
+ var s = o.current;
167
+ t.current.forEach(function(d) {
168
+ s = d(s);
169
+ }), t.current = [], o.current = s, r({});
170
+ });
171
+ function i(s) {
172
+ t.current.push(s), l();
173
+ }
174
+ return [o.current, i];
175
+ }
176
+ var xt = {
177
+ width: 0,
178
+ height: 0,
179
+ left: 0,
180
+ top: 0,
181
+ right: 0
182
+ };
183
+ function La(e, t, a, n, r, o, l) {
184
+ var i = l.tabs, s = l.tabPosition, d = l.rtl, m, b, _;
185
+ return ["top", "bottom"].includes(s) ? (m = "width", b = d ? "right" : "left", _ = Math.abs(a)) : (m = "height", b = "top", _ = -a), Tt(function() {
186
+ if (!i.length)
187
+ return [0, 0];
188
+ for (var R = i.length, O = R, C = 0; C < R; C += 1) {
189
+ var z = e.get(i[C].key) || xt;
190
+ if (Math.floor(z[b] + z[m]) > Math.floor(_ + t)) {
191
+ O = C - 1;
192
+ break;
193
+ }
194
+ }
195
+ for (var h = 0, p = R - 1; p >= 0; p -= 1) {
196
+ var P = e.get(i[p].key) || xt;
197
+ if (P[b] < _) {
198
+ h = p + 1;
199
+ break;
200
+ }
201
+ }
202
+ return h >= O ? [0, 0] : [h, O];
203
+ }, [e, t, n, r, o, _, s, i.map(function(R) {
204
+ return R.key;
205
+ }).join("_"), d]);
206
+ }
207
+ function Ct(e) {
208
+ var t;
209
+ return e instanceof Map ? (t = {}, e.forEach(function(a, n) {
210
+ t[n] = a;
211
+ })) : t = e, JSON.stringify(t);
212
+ }
213
+ var za = "TABS_DQ";
214
+ function Lt(e) {
215
+ return String(e).replace(/"/g, za);
216
+ }
217
+ function Ye(e, t, a, n) {
218
+ return (
219
+ // Only editable tabs can be removed
220
+ !(!a || // Tabs cannot be removed when disabled
221
+ n || // closable is false
222
+ e === !1 || // If closable is undefined, the remove button should be hidden when closeIcon is null or false
223
+ e === void 0 && (t === !1 || t === null))
224
+ );
225
+ }
226
+ var zt = /* @__PURE__ */ c.forwardRef(function(e, t) {
227
+ var a = e.prefixCls, n = e.editable, r = e.locale, o = e.style;
228
+ return !n || n.showAdd === !1 ? null : /* @__PURE__ */ c.createElement("button", {
229
+ ref: t,
230
+ type: "button",
231
+ className: "".concat(a, "-nav-add"),
232
+ style: o,
233
+ "aria-label": (r == null ? void 0 : r.addAriaLabel) || "Add tab",
234
+ onClick: function(i) {
235
+ n.onEdit("add", {
236
+ event: i
237
+ });
238
+ }
239
+ }, n.addIcon || "+");
240
+ }), Fe = /* @__PURE__ */ c.forwardRef(function(e, t) {
241
+ var a = e.position, n = e.prefixCls, r = e.extra;
242
+ if (!r)
243
+ return null;
244
+ var o, l = {};
245
+ return qe(r) === "object" && !/* @__PURE__ */ c.isValidElement(r) ? l = r : l.right = r, a === "right" && (o = l.right), a === "left" && (o = l.left), o ? /* @__PURE__ */ c.createElement("div", {
246
+ className: "".concat(n, "-extra-content"),
247
+ ref: t
248
+ }, o) : null;
249
+ });
250
+ process.env.NODE_ENV !== "production" && (Fe.displayName = "ExtraContent");
251
+ var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
252
+ var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, l = e.mobile, i = e.more, s = i === void 0 ? {} : i, d = e.style, m = e.className, b = e.editable, _ = e.tabBarGutter, R = e.rtl, O = e.removeAriaLabel, C = e.onTabClick, z = e.getPopupContainer, h = e.popupClassName, p = j(!1), P = I(p, 2), B = P[0], A = P[1], W = j(null), H = I(W, 2), L = H[0], x = H[1], E = s.icon, v = E === void 0 ? "More" : E, y = "".concat(n, "-more-popup"), g = "".concat(a, "-dropdown"), S = L !== null ? "".concat(y, "-").concat(L) : null, K = o == null ? void 0 : o.dropdownAriaLabel;
253
+ function X(w, k) {
254
+ w.preventDefault(), w.stopPropagation(), b.onEdit("remove", {
255
+ key: k,
256
+ event: w
257
+ });
258
+ }
259
+ var f = /* @__PURE__ */ c.createElement(la, {
260
+ onClick: function(k) {
261
+ var V = k.key, q = k.domEvent;
262
+ C(V, q), A(!1);
263
+ },
264
+ prefixCls: "".concat(g, "-menu"),
265
+ id: y,
266
+ tabIndex: -1,
267
+ role: "listbox",
268
+ "aria-activedescendant": S,
269
+ selectedKeys: [L],
270
+ "aria-label": K !== void 0 ? K : "expanded dropdown"
271
+ }, r.map(function(w) {
272
+ var k = w.closable, V = w.disabled, q = w.closeIcon, Z = w.key, re = w.label, ee = Ye(k, q, b, V);
273
+ return /* @__PURE__ */ c.createElement(ca, {
274
+ key: Z,
275
+ id: "".concat(y, "-").concat(Z),
276
+ role: "option",
277
+ "aria-controls": n && "".concat(n, "-panel-").concat(Z),
278
+ disabled: V
279
+ }, /* @__PURE__ */ c.createElement("span", null, re), ee && /* @__PURE__ */ c.createElement("button", {
280
+ type: "button",
281
+ "aria-label": O || "remove",
282
+ tabIndex: 0,
283
+ className: "".concat(g, "-menu-item-remove"),
284
+ onClick: function(be) {
285
+ be.stopPropagation(), X(be, Z);
286
+ }
287
+ }, q || b.removeIcon || "×"));
288
+ }));
289
+ function F(w) {
290
+ for (var k = r.filter(function(ee) {
291
+ return !ee.disabled;
292
+ }), V = k.findIndex(function(ee) {
293
+ return ee.key === L;
294
+ }) || 0, q = k.length, Z = 0; Z < q; Z += 1) {
295
+ V = (V + w + q) % q;
296
+ var re = k[V];
297
+ if (!re.disabled) {
298
+ x(re.key);
299
+ return;
300
+ }
301
+ }
302
+ }
303
+ function de(w) {
304
+ var k = w.which;
305
+ if (!B) {
306
+ [pe.DOWN, pe.SPACE, pe.ENTER].includes(k) && (A(!0), w.preventDefault());
307
+ return;
308
+ }
309
+ switch (k) {
310
+ case pe.UP:
311
+ F(-1), w.preventDefault();
312
+ break;
313
+ case pe.DOWN:
314
+ F(1), w.preventDefault();
315
+ break;
316
+ case pe.ESC:
317
+ A(!1);
318
+ break;
319
+ case pe.SPACE:
320
+ case pe.ENTER:
321
+ L !== null && C(L, w);
322
+ break;
323
+ }
324
+ }
325
+ ce(function() {
326
+ var w = document.getElementById(S);
327
+ w && w.scrollIntoView && w.scrollIntoView(!1);
328
+ }, [L]), ce(function() {
329
+ B || x(null);
330
+ }, [B]);
331
+ var G = Y({}, R ? "marginRight" : "marginLeft", _);
332
+ r.length || (G.visibility = "hidden", G.order = 1);
333
+ var Q = J(Y({}, "".concat(g, "-rtl"), R)), ve = l ? null : /* @__PURE__ */ c.createElement(da, fe({
334
+ prefixCls: g,
335
+ overlay: f,
336
+ visible: r.length ? B : !1,
337
+ onVisibleChange: A,
338
+ overlayClassName: J(Q, h),
339
+ mouseEnterDelay: 0.1,
340
+ mouseLeaveDelay: 0.1,
341
+ getPopupContainer: z
342
+ }, s), /* @__PURE__ */ c.createElement("button", {
343
+ type: "button",
344
+ className: "".concat(a, "-nav-more"),
345
+ style: G,
346
+ tabIndex: -1,
347
+ "aria-hidden": "true",
348
+ "aria-haspopup": "listbox",
349
+ "aria-controls": y,
350
+ id: "".concat(n, "-more"),
351
+ "aria-expanded": B,
352
+ onKeyDown: de
353
+ }, v));
354
+ return /* @__PURE__ */ c.createElement("div", {
355
+ className: J("".concat(a, "-nav-operations"), m),
356
+ style: d,
357
+ ref: t
358
+ }, ve, /* @__PURE__ */ c.createElement(zt, {
359
+ prefixCls: a,
360
+ locale: o,
361
+ editable: b
362
+ }));
363
+ });
364
+ const Oa = /* @__PURE__ */ c.memo(Da, function(e, t) {
365
+ return (
366
+ // https://github.com/ant-design/ant-design/issues/32544
367
+ // We'd better remove syntactic sugar in `rc-menu` since this has perf issue
368
+ t.tabMoving
369
+ );
370
+ });
371
+ var Ba = function(t) {
372
+ var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, l = t.tab, i = l.key, s = l.label, d = l.disabled, m = l.closeIcon, b = l.icon, _ = t.closable, R = t.renderWrapper, O = t.removeAriaLabel, C = t.editable, z = t.onClick, h = t.onFocus, p = t.onBlur, P = t.onKeyDown, B = t.onMouseDown, A = t.onMouseUp, W = t.style, H = t.tabCount, L = t.currentPosition, x = "".concat(a, "-tab"), E = Ye(_, m, C, d);
373
+ function v(X) {
374
+ d || z(X);
375
+ }
376
+ function y(X) {
377
+ X.preventDefault(), X.stopPropagation(), C.onEdit("remove", {
378
+ key: i,
379
+ event: X
380
+ });
381
+ }
382
+ var g = c.useMemo(function() {
383
+ return b && typeof s == "string" ? /* @__PURE__ */ c.createElement("span", null, s) : s;
384
+ }, [s, b]), S = c.useRef(null);
385
+ c.useEffect(function() {
386
+ o && S.current && S.current.focus();
387
+ }, [o]);
388
+ var K = /* @__PURE__ */ c.createElement("div", {
389
+ key: i,
390
+ "data-node-key": Lt(i),
391
+ className: J(x, Y(Y(Y(Y({}, "".concat(x, "-with-remove"), E), "".concat(x, "-active"), r), "".concat(x, "-disabled"), d), "".concat(x, "-focus"), o)),
392
+ style: W,
393
+ onClick: v
394
+ }, /* @__PURE__ */ c.createElement("div", {
395
+ ref: S,
396
+ role: "tab",
397
+ "aria-selected": r,
398
+ id: n && "".concat(n, "-tab-").concat(i),
399
+ className: "".concat(x, "-btn"),
400
+ "aria-controls": n && "".concat(n, "-panel-").concat(i),
401
+ "aria-disabled": d,
402
+ tabIndex: d ? null : r ? 0 : -1,
403
+ onClick: function(f) {
404
+ f.stopPropagation(), v(f);
405
+ },
406
+ onKeyDown: P,
407
+ onMouseDown: B,
408
+ onMouseUp: A,
409
+ onFocus: h,
410
+ onBlur: p
411
+ }, o && /* @__PURE__ */ c.createElement("div", {
412
+ "aria-live": "polite",
413
+ style: {
414
+ width: 0,
415
+ height: 0,
416
+ position: "absolute",
417
+ overflow: "hidden",
418
+ opacity: 0
419
+ }
420
+ }, "Tab ".concat(L, " of ").concat(H)), b && /* @__PURE__ */ c.createElement("span", {
421
+ className: "".concat(x, "-icon")
422
+ }, b), s && g), E && /* @__PURE__ */ c.createElement("button", {
423
+ type: "button",
424
+ "aria-label": O || "remove",
425
+ tabIndex: r ? 0 : -1,
426
+ className: "".concat(x, "-remove"),
427
+ onClick: function(f) {
428
+ f.stopPropagation(), y(f);
429
+ }
430
+ }, m || C.removeIcon || "×"));
431
+ return R ? R(K) : K;
432
+ }, ka = function(t, a) {
433
+ var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, i = t.getBoundingClientRect(), s = i.width, d = i.height, m = i.left, b = i.top;
434
+ return Math.abs(s - n) < 1 ? [s, d, m - a.left, b - a.top] : [n, r, l, o];
435
+ }, Ce = function(t) {
436
+ var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, l = o === void 0 ? 0 : o;
437
+ if (t.current) {
438
+ var i = t.current.getBoundingClientRect(), s = i.width, d = i.height;
439
+ if (Math.abs(s - r) < 1)
440
+ return [s, d];
441
+ }
442
+ return [r, l];
443
+ }, Le = function(t, a) {
444
+ return t[a ? 0 : 1];
445
+ }, wt = /* @__PURE__ */ c.forwardRef(function(e, t) {
446
+ var a = e.className, n = e.style, r = e.id, o = e.animated, l = e.activeKey, i = e.rtl, s = e.extra, d = e.editable, m = e.locale, b = e.tabPosition, _ = e.tabBarGutter, R = e.children, O = e.onTabClick, C = e.onTabScroll, z = e.indicator, h = c.useContext(Oe), p = h.prefixCls, P = h.tabs, B = U(null), A = U(null), W = U(null), H = U(null), L = U(null), x = U(null), E = U(null), v = b === "top" || b === "bottom", y = yt(0, function(T, u) {
447
+ v && C && C({
448
+ direction: T > u ? "left" : "right"
449
+ });
450
+ }), g = I(y, 2), S = g[0], K = g[1], X = yt(0, function(T, u) {
451
+ !v && C && C({
452
+ direction: T > u ? "top" : "bottom"
453
+ });
454
+ }), f = I(X, 2), F = f[0], de = f[1], G = j([0, 0]), Q = I(G, 2), ve = Q[0], w = Q[1], k = j([0, 0]), V = I(k, 2), q = V[0], Z = V[1], re = j([0, 0]), ee = I(re, 2), he = ee[0], be = ee[1], oe = j([0, 0]), $e = I(oe, 2), N = $e[0], se = $e[1], we = Ma(/* @__PURE__ */ new Map()), Ze = I(we, 2), At = Ze[0], Wt = Ze[1], Re = Ra(P, At, q[0]), Be = Le(ve, v), Ee = Le(q, v), ke = Le(he, v), Je = Le(N, v), et = Math.floor(Be) < Math.floor(Ee + ke), le = et ? Be - Je : Be - ke, Ht = "".concat(p, "-nav-operations-hidden"), me = 0, ge = 0;
455
+ v && i ? (me = 0, ge = Math.max(0, Ee - le)) : (me = Math.min(0, le - Ee), ge = 0);
456
+ function Ae(T) {
457
+ return T < me ? me : T > ge ? ge : T;
458
+ }
459
+ var We = U(null), jt = j(), tt = I(jt, 2), Ie = tt[0], at = tt[1];
460
+ function He() {
461
+ at(Date.now());
462
+ }
463
+ function je() {
464
+ We.current && clearTimeout(We.current);
465
+ }
466
+ Na(H, function(T, u) {
467
+ function M(D, ie) {
468
+ D(function(te) {
469
+ var _e = Ae(te + ie);
470
+ return _e;
471
+ });
472
+ }
473
+ return et ? (v ? M(K, T) : M(de, u), je(), He(), !0) : !1;
474
+ }), ce(function() {
475
+ return je(), Ie && (We.current = setTimeout(function() {
476
+ at(0);
477
+ }, 100)), je;
478
+ }, [Ie]);
479
+ var Gt = La(
480
+ Re,
481
+ // Container
482
+ le,
483
+ // Transform
484
+ v ? S : F,
485
+ // Tabs
486
+ Ee,
487
+ // Add
488
+ ke,
489
+ // Operation
490
+ Je,
491
+ ne(ne({}, e), {}, {
492
+ tabs: P
493
+ })
494
+ ), nt = I(Gt, 2), Vt = nt[0], Kt = nt[1], rt = ma(function() {
495
+ var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : l, u = Re.get(T) || {
496
+ width: 0,
497
+ height: 0,
498
+ left: 0,
499
+ right: 0,
500
+ top: 0
501
+ };
502
+ if (v) {
503
+ var M = S;
504
+ i ? u.right < S ? M = u.right : u.right + u.width > S + le && (M = u.right + u.width - le) : u.left < -S ? M = -u.left : u.left + u.width > -S + le && (M = -(u.left + u.width - le)), de(0), K(Ae(M));
505
+ } else {
506
+ var D = F;
507
+ u.top < -F ? D = -u.top : u.top + u.height > -F + le && (D = -(u.top + u.height - le)), K(0), de(Ae(D));
508
+ }
509
+ }), Xt = j(), it = I(Xt, 2), ye = it[0], Te = it[1], Ut = j(!1), ot = I(Ut, 2), Ft = ot[0], lt = ot[1], ue = P.filter(function(T) {
510
+ return !T.disabled;
511
+ }).map(function(T) {
512
+ return T.key;
513
+ }), Se = function(u) {
514
+ var M = ue.indexOf(ye || l), D = ue.length, ie = (M + u + D) % D, te = ue[ie];
515
+ Te(te);
516
+ }, qt = function(u) {
517
+ var M = u.code, D = i && v, ie = ue[0], te = ue[ue.length - 1];
518
+ switch (M) {
519
+ case "ArrowLeft": {
520
+ v && Se(D ? 1 : -1);
521
+ break;
522
+ }
523
+ case "ArrowRight": {
524
+ v && Se(D ? -1 : 1);
525
+ break;
526
+ }
527
+ case "ArrowUp": {
528
+ u.preventDefault(), v || Se(-1);
529
+ break;
530
+ }
531
+ case "ArrowDown": {
532
+ u.preventDefault(), v || Se(1);
533
+ break;
534
+ }
535
+ case "Home": {
536
+ u.preventDefault(), Te(ie);
537
+ break;
538
+ }
539
+ case "End": {
540
+ u.preventDefault(), Te(te);
541
+ break;
542
+ }
543
+ case "Enter":
544
+ case "Space": {
545
+ u.preventDefault(), O(ye, u);
546
+ break;
547
+ }
548
+ case "Backspace":
549
+ case "Delete": {
550
+ var _e = ue.indexOf(ye), ae = P.find(function(xe) {
551
+ return xe.key === ye;
552
+ }), Ke = Ye(ae == null ? void 0 : ae.closable, ae == null ? void 0 : ae.closeIcon, d, ae == null ? void 0 : ae.disabled);
553
+ Ke && (u.preventDefault(), u.stopPropagation(), d.onEdit("remove", {
554
+ key: ye,
555
+ event: u
556
+ }), _e === ue.length - 1 ? Se(-1) : Se(1));
557
+ break;
558
+ }
559
+ }
560
+ }, Ne = {};
561
+ v ? Ne[i ? "marginRight" : "marginLeft"] = _ : Ne.marginTop = _;
562
+ var ct = P.map(function(T, u) {
563
+ var M = T.key;
564
+ return /* @__PURE__ */ c.createElement(Ba, {
565
+ id: r,
566
+ prefixCls: p,
567
+ key: M,
568
+ tab: T,
569
+ style: u === 0 ? void 0 : Ne,
570
+ closable: T.closable,
571
+ editable: d,
572
+ active: M === l,
573
+ focus: M === ye,
574
+ renderWrapper: R,
575
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
576
+ tabCount: ue.length,
577
+ currentPosition: u + 1,
578
+ onClick: function(ie) {
579
+ O(M, ie);
580
+ },
581
+ onKeyDown: qt,
582
+ onFocus: function() {
583
+ Ft || Te(M), rt(M), He(), H.current && (i || (H.current.scrollLeft = 0), H.current.scrollTop = 0);
584
+ },
585
+ onBlur: function() {
586
+ Te(void 0);
587
+ },
588
+ onMouseDown: function() {
589
+ lt(!0);
590
+ },
591
+ onMouseUp: function() {
592
+ lt(!1);
593
+ }
594
+ });
595
+ }), dt = function() {
596
+ return Wt(function() {
597
+ var u, M = /* @__PURE__ */ new Map(), D = (u = L.current) === null || u === void 0 ? void 0 : u.getBoundingClientRect();
598
+ return P.forEach(function(ie) {
599
+ var te, _e = ie.key, ae = (te = L.current) === null || te === void 0 ? void 0 : te.querySelector('[data-node-key="'.concat(Lt(_e), '"]'));
600
+ if (ae) {
601
+ var Ke = ka(ae, D), xe = I(Ke, 4), ea = xe[0], ta = xe[1], aa = xe[2], na = xe[3];
602
+ M.set(_e, {
603
+ width: ea,
604
+ height: ta,
605
+ left: aa,
606
+ top: na
607
+ });
608
+ }
609
+ }), M;
610
+ });
611
+ };
612
+ ce(function() {
613
+ dt();
614
+ }, [P.map(function(T) {
615
+ return T.key;
616
+ }).join("_")]);
617
+ var Me = Mt(function() {
618
+ var T = Ce(B), u = Ce(A), M = Ce(W);
619
+ w([T[0] - u[0] - M[0], T[1] - u[1] - M[1]]);
620
+ var D = Ce(E);
621
+ be(D);
622
+ var ie = Ce(x);
623
+ se(ie);
624
+ var te = Ce(L);
625
+ Z([te[0] - D[0], te[1] - D[1]]), dt();
626
+ }), Yt = P.slice(0, Vt), Qt = P.slice(Kt + 1), st = [].concat(gt(Yt), gt(Qt)), ut = Re.get(l), Zt = Pa({
627
+ activeTabOffset: ut,
628
+ horizontal: v,
629
+ indicator: z,
630
+ rtl: i
631
+ }), Jt = Zt.style;
632
+ ce(function() {
633
+ rt();
634
+ }, [l, me, ge, Ct(ut), Ct(Re), v]), ce(function() {
635
+ Me();
636
+ }, [i]);
637
+ var ft = !!st.length, Pe = "".concat(p, "-nav-wrap"), Ge, Ve, vt, bt;
638
+ return v ? i ? (Ve = S > 0, Ge = S !== ge) : (Ge = S < 0, Ve = S !== me) : (vt = F < 0, bt = F !== me), /* @__PURE__ */ c.createElement(Xe, {
639
+ onResize: Me
640
+ }, /* @__PURE__ */ c.createElement("div", {
641
+ ref: pa(t, B),
642
+ role: "tablist",
643
+ "aria-orientation": v ? "horizontal" : "vertical",
644
+ className: J("".concat(p, "-nav"), a),
645
+ style: n,
646
+ onKeyDown: function() {
647
+ He();
648
+ }
649
+ }, /* @__PURE__ */ c.createElement(Fe, {
650
+ ref: A,
651
+ position: "left",
652
+ extra: s,
653
+ prefixCls: p
654
+ }), /* @__PURE__ */ c.createElement(Xe, {
655
+ onResize: Me
656
+ }, /* @__PURE__ */ c.createElement("div", {
657
+ className: J(Pe, Y(Y(Y(Y({}, "".concat(Pe, "-ping-left"), Ge), "".concat(Pe, "-ping-right"), Ve), "".concat(Pe, "-ping-top"), vt), "".concat(Pe, "-ping-bottom"), bt)),
658
+ ref: H
659
+ }, /* @__PURE__ */ c.createElement(Xe, {
660
+ onResize: Me
661
+ }, /* @__PURE__ */ c.createElement("div", {
662
+ ref: L,
663
+ className: "".concat(p, "-nav-list"),
664
+ style: {
665
+ transform: "translate(".concat(S, "px, ").concat(F, "px)"),
666
+ transition: Ie ? "none" : void 0
667
+ }
668
+ }, ct, /* @__PURE__ */ c.createElement(zt, {
669
+ ref: E,
670
+ prefixCls: p,
671
+ locale: m,
672
+ editable: d,
673
+ style: ne(ne({}, ct.length === 0 ? void 0 : Ne), {}, {
674
+ visibility: ft ? "hidden" : null
675
+ })
676
+ }), /* @__PURE__ */ c.createElement("div", {
677
+ className: J("".concat(p, "-ink-bar"), Y({}, "".concat(p, "-ink-bar-animated"), o.inkBar)),
678
+ style: Jt
679
+ }))))), /* @__PURE__ */ c.createElement(Oa, fe({}, e, {
680
+ removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
681
+ ref: x,
682
+ prefixCls: p,
683
+ tabs: st,
684
+ className: !ft && Ht,
685
+ tabMoving: !!Ie
686
+ })), /* @__PURE__ */ c.createElement(Fe, {
687
+ ref: W,
688
+ position: "right",
689
+ extra: s,
690
+ prefixCls: p
691
+ })));
692
+ }), Qe = /* @__PURE__ */ c.forwardRef(function(e, t) {
693
+ var a = e.prefixCls, n = e.className, r = e.style, o = e.id, l = e.active, i = e.tabKey, s = e.children;
694
+ return /* @__PURE__ */ c.createElement("div", {
695
+ id: o && "".concat(o, "-panel-").concat(i),
696
+ role: "tabpanel",
697
+ tabIndex: l ? 0 : -1,
698
+ "aria-labelledby": o && "".concat(o, "-tab-").concat(i),
699
+ "aria-hidden": !l,
700
+ style: r,
701
+ className: J(a, l && "".concat(a, "-active"), n),
702
+ ref: t
703
+ }, s);
704
+ });
705
+ process.env.NODE_ENV !== "production" && (Qe.displayName = "TabPane");
706
+ var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
707
+ var a = t.renderTabBar, n = De(t, Aa), r = c.useContext(Oe), o = r.tabs;
708
+ if (a) {
709
+ var l = ne(ne({}, n), {}, {
710
+ // Legacy support. We do not use this actually
711
+ panes: o.map(function(i) {
712
+ var s = i.label, d = i.key, m = De(i, Wa);
713
+ return /* @__PURE__ */ c.createElement(Qe, fe({
714
+ tab: s,
715
+ key: d,
716
+ tabKey: d
717
+ }, m));
718
+ })
719
+ });
720
+ return a(l, wt);
721
+ }
722
+ return /* @__PURE__ */ c.createElement(wt, n);
723
+ };
724
+ process.env.NODE_ENV !== "production" && (Dt.displayName = "TabNavListWrapper");
725
+ var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"], ja = function(t) {
726
+ var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, i = c.useContext(Oe), s = i.prefixCls, d = i.tabs, m = r.tabPane, b = "".concat(s, "-tabpane");
727
+ return /* @__PURE__ */ c.createElement("div", {
728
+ className: J("".concat(s, "-content-holder"))
729
+ }, /* @__PURE__ */ c.createElement("div", {
730
+ className: J("".concat(s, "-content"), "".concat(s, "-content-").concat(o), Y({}, "".concat(s, "-content-animated"), m))
731
+ }, d.map(function(_) {
732
+ var R = _.key, O = _.forceRender, C = _.style, z = _.className, h = _.destroyInactiveTabPane, p = De(_, Ha), P = R === n;
733
+ return /* @__PURE__ */ c.createElement(ga, fe({
734
+ key: R,
735
+ visible: P,
736
+ forceRender: O,
737
+ removeOnLeave: !!(l || h),
738
+ leavedClassName: "".concat(b, "-hidden")
739
+ }, r.tabPaneMotion), function(B, A) {
740
+ var W = B.style, H = B.className;
741
+ return /* @__PURE__ */ c.createElement(Qe, fe({}, p, {
742
+ prefixCls: b,
743
+ id: a,
744
+ tabKey: R,
745
+ animated: m,
746
+ active: P,
747
+ style: ne(ne({}, C), W),
748
+ className: J(z, H),
749
+ ref: A
750
+ }));
751
+ });
752
+ })));
753
+ };
754
+ function Ga() {
755
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
756
+ inkBar: !0,
757
+ tabPane: !1
758
+ }, t;
759
+ return e === !1 ? t = {
760
+ inkBar: !1,
761
+ tabPane: !1
762
+ } : e === !0 ? t = {
763
+ inkBar: !0,
764
+ tabPane: !1
765
+ } : t = ne({
766
+ inkBar: !0
767
+ }, qe(e) === "object" ? e : {}), t.tabPaneMotion && t.tabPane === void 0 && (t.tabPane = !0), !t.tabPaneMotion && t.tabPane && (process.env.NODE_ENV !== "production" && ua(!1, "`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."), t.tabPane = !1), t;
768
+ }
769
+ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "defaultActiveKey", "editable", "animated", "tabPosition", "tabBarGutter", "tabBarStyle", "tabBarExtraContent", "locale", "more", "destroyInactiveTabPane", "renderTabBar", "onChange", "onTabClick", "onTabScroll", "getPopupContainer", "popupClassName", "indicator"], Et = 0, Ot = /* @__PURE__ */ c.forwardRef(function(e, t) {
770
+ var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, l = e.items, i = e.direction, s = e.activeKey, d = e.defaultActiveKey, m = e.editable, b = e.animated, _ = e.tabPosition, R = _ === void 0 ? "top" : _, O = e.tabBarGutter, C = e.tabBarStyle, z = e.tabBarExtraContent, h = e.locale, p = e.more, P = e.destroyInactiveTabPane, B = e.renderTabBar, A = e.onChange, W = e.onTabClick, H = e.onTabScroll, L = e.getPopupContainer, x = e.popupClassName, E = e.indicator, v = De(e, Va), y = c.useMemo(function() {
771
+ return (l || []).filter(function(N) {
772
+ return N && qe(N) === "object" && "key" in N;
773
+ });
774
+ }, [l]), g = i === "rtl", S = Ga(b), K = j(!1), X = I(K, 2), f = X[0], F = X[1];
775
+ ce(function() {
776
+ F(va());
777
+ }, []);
778
+ var de = mt(function() {
779
+ var N;
780
+ return (N = y[0]) === null || N === void 0 ? void 0 : N.key;
781
+ }, {
782
+ value: s,
783
+ defaultValue: d
784
+ }), G = I(de, 2), Q = G[0], ve = G[1], w = j(function() {
785
+ return y.findIndex(function(N) {
786
+ return N.key === Q;
787
+ });
788
+ }), k = I(w, 2), V = k[0], q = k[1];
789
+ ce(function() {
790
+ var N = y.findIndex(function(we) {
791
+ return we.key === Q;
792
+ });
793
+ if (N === -1) {
794
+ var se;
795
+ N = Math.max(0, Math.min(V, y.length - 1)), ve((se = y[N]) === null || se === void 0 ? void 0 : se.key);
796
+ }
797
+ q(N);
798
+ }, [y.map(function(N) {
799
+ return N.key;
800
+ }).join("_"), Q, V]);
801
+ var Z = mt(null, {
802
+ value: a
803
+ }), re = I(Z, 2), ee = re[0], he = re[1];
804
+ ce(function() {
805
+ a || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Et)), Et += 1);
806
+ }, []);
807
+ function be(N, se) {
808
+ W == null || W(N, se);
809
+ var we = N !== Q;
810
+ ve(N), we && (A == null || A(N));
811
+ }
812
+ var oe = {
813
+ id: ee,
814
+ activeKey: Q,
815
+ animated: S,
816
+ tabPosition: R,
817
+ rtl: g,
818
+ mobile: f
819
+ }, $e = ne(ne({}, oe), {}, {
820
+ editable: m,
821
+ locale: h,
822
+ more: p,
823
+ tabBarGutter: O,
824
+ onTabClick: be,
825
+ onTabScroll: H,
826
+ extra: z,
827
+ style: C,
828
+ panes: null,
829
+ getPopupContainer: L,
830
+ popupClassName: x,
831
+ indicator: E
832
+ });
833
+ return /* @__PURE__ */ c.createElement(Oe.Provider, {
834
+ value: {
835
+ tabs: y,
836
+ prefixCls: r
837
+ }
838
+ }, /* @__PURE__ */ c.createElement("div", fe({
839
+ ref: t,
840
+ id: a,
841
+ className: J(r, "".concat(r, "-").concat(R), Y(Y(Y({}, "".concat(r, "-mobile"), f), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), g), o)
842
+ }, v), /* @__PURE__ */ c.createElement(Dt, fe({}, $e, {
843
+ renderTabBar: B
844
+ })), /* @__PURE__ */ c.createElement(ja, fe({
845
+ destroyInactiveTabPane: P
846
+ }, oe, {
847
+ animated: S
848
+ }))));
849
+ });
850
+ process.env.NODE_ENV !== "production" && (Ot.displayName = "Tabs");
851
+ const Ka = {
852
+ motionAppear: !1,
853
+ motionEnter: !0,
854
+ motionLeave: !0
855
+ };
856
+ function Xa(e) {
857
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
858
+ inkBar: !0,
859
+ tabPane: !1
860
+ }, a;
861
+ return t === !1 ? a = {
862
+ inkBar: !1,
863
+ tabPane: !1
864
+ } : t === !0 ? a = {
865
+ inkBar: !0,
866
+ tabPane: !0
867
+ } : a = Object.assign({
868
+ inkBar: !0
869
+ }, typeof t == "object" ? t : {}), a.tabPane && (a.tabPaneMotion = Object.assign(Object.assign({}, Ka), {
870
+ motionName: Ca(e, "switch")
871
+ })), a;
872
+ }
873
+ var Ua = function(e, t) {
874
+ var a = {};
875
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
876
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
877
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
878
+ return a;
879
+ };
880
+ function Fa(e) {
881
+ return e.filter((t) => t);
882
+ }
883
+ function qa(e, t) {
884
+ if (process.env.NODE_ENV !== "production" && Pt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
885
+ return e;
886
+ const a = wa(t).map((n) => {
887
+ if (/* @__PURE__ */ c.isValidElement(n)) {
888
+ const {
889
+ key: r,
890
+ props: o
891
+ } = n, l = o || {}, {
892
+ tab: i
893
+ } = l, s = Ua(l, ["tab"]);
894
+ return Object.assign(Object.assign({
895
+ key: String(r)
896
+ }, s), {
897
+ label: i
898
+ });
899
+ }
900
+ return null;
901
+ });
902
+ return Fa(a);
903
+ }
904
+ const Ya = (e) => {
905
+ const {
906
+ componentCls: t,
907
+ motionDurationSlow: a
908
+ } = e;
909
+ return [
910
+ {
911
+ [t]: {
912
+ [`${t}-switch`]: {
913
+ "&-appear, &-enter": {
914
+ transition: "none",
915
+ "&-start": {
916
+ opacity: 0
917
+ },
918
+ "&-active": {
919
+ opacity: 1,
920
+ transition: `opacity ${a}`
921
+ }
922
+ },
923
+ "&-leave": {
924
+ position: "absolute",
925
+ transition: "none",
926
+ inset: 0,
927
+ "&-start": {
928
+ opacity: 1
929
+ },
930
+ "&-active": {
931
+ opacity: 0,
932
+ transition: `opacity ${a}`
933
+ }
934
+ }
935
+ }
936
+ }
937
+ },
938
+ // Follow code may reuse in other components
939
+ [ht(e, "slide-up"), ht(e, "slide-down")]
940
+ ];
941
+ }, Qa = (e) => {
942
+ const {
943
+ componentCls: t,
944
+ tabsCardPadding: a,
945
+ cardBg: n,
946
+ cardGutter: r,
947
+ colorBorderSecondary: o,
948
+ itemSelectedColor: l
949
+ } = e;
950
+ return {
951
+ [`${t}-card`]: {
952
+ [`> ${t}-nav, > div > ${t}-nav`]: {
953
+ [`${t}-tab`]: {
954
+ margin: 0,
955
+ padding: a,
956
+ background: n,
957
+ border: `${$(e.lineWidth)} ${e.lineType} ${o}`,
958
+ transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`
959
+ },
960
+ [`${t}-tab-active`]: {
961
+ color: l,
962
+ background: e.colorBgContainer
963
+ },
964
+ [`${t}-tab-focus`]: Object.assign({}, Rt(e, -3)),
965
+ [`${t}-ink-bar`]: {
966
+ visibility: "hidden"
967
+ },
968
+ [`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]: {
969
+ outline: "none"
970
+ }
971
+ },
972
+ // ========================== Top & Bottom ==========================
973
+ [`&${t}-top, &${t}-bottom`]: {
974
+ [`> ${t}-nav, > div > ${t}-nav`]: {
975
+ [`${t}-tab + ${t}-tab`]: {
976
+ marginLeft: {
977
+ _skip_check_: !0,
978
+ value: $(r)
979
+ }
980
+ }
981
+ }
982
+ },
983
+ [`&${t}-top`]: {
984
+ [`> ${t}-nav, > div > ${t}-nav`]: {
985
+ [`${t}-tab`]: {
986
+ borderRadius: `${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`
987
+ },
988
+ [`${t}-tab-active`]: {
989
+ borderBottomColor: e.colorBgContainer
990
+ }
991
+ }
992
+ },
993
+ [`&${t}-bottom`]: {
994
+ [`> ${t}-nav, > div > ${t}-nav`]: {
995
+ [`${t}-tab`]: {
996
+ borderRadius: `0 0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)}`
997
+ },
998
+ [`${t}-tab-active`]: {
999
+ borderTopColor: e.colorBgContainer
1000
+ }
1001
+ }
1002
+ },
1003
+ // ========================== Left & Right ==========================
1004
+ [`&${t}-left, &${t}-right`]: {
1005
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1006
+ [`${t}-tab + ${t}-tab`]: {
1007
+ marginTop: $(r)
1008
+ }
1009
+ }
1010
+ },
1011
+ [`&${t}-left`]: {
1012
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1013
+ [`${t}-tab`]: {
1014
+ borderRadius: {
1015
+ _skip_check_: !0,
1016
+ value: `${$(e.borderRadiusLG)} 0 0 ${$(e.borderRadiusLG)}`
1017
+ }
1018
+ },
1019
+ [`${t}-tab-active`]: {
1020
+ borderRightColor: {
1021
+ _skip_check_: !0,
1022
+ value: e.colorBgContainer
1023
+ }
1024
+ }
1025
+ }
1026
+ },
1027
+ [`&${t}-right`]: {
1028
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1029
+ [`${t}-tab`]: {
1030
+ borderRadius: {
1031
+ _skip_check_: !0,
1032
+ value: `0 ${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0`
1033
+ }
1034
+ },
1035
+ [`${t}-tab-active`]: {
1036
+ borderLeftColor: {
1037
+ _skip_check_: !0,
1038
+ value: e.colorBgContainer
1039
+ }
1040
+ }
1041
+ }
1042
+ }
1043
+ }
1044
+ };
1045
+ }, Za = (e) => {
1046
+ const {
1047
+ componentCls: t,
1048
+ itemHoverColor: a,
1049
+ dropdownEdgeChildVerticalPadding: n
1050
+ } = e;
1051
+ return {
1052
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, It(e)), {
1053
+ position: "absolute",
1054
+ top: -9999,
1055
+ left: {
1056
+ _skip_check_: !0,
1057
+ value: -9999
1058
+ },
1059
+ zIndex: e.zIndexPopup,
1060
+ display: "block",
1061
+ "&-hidden": {
1062
+ display: "none"
1063
+ },
1064
+ [`${t}-dropdown-menu`]: {
1065
+ maxHeight: e.tabsDropdownHeight,
1066
+ margin: 0,
1067
+ padding: `${$(n)} 0`,
1068
+ overflowX: "hidden",
1069
+ overflowY: "auto",
1070
+ textAlign: {
1071
+ _skip_check_: !0,
1072
+ value: "left"
1073
+ },
1074
+ listStyleType: "none",
1075
+ backgroundColor: e.colorBgContainer,
1076
+ backgroundClip: "padding-box",
1077
+ borderRadius: e.borderRadiusLG,
1078
+ outline: "none",
1079
+ boxShadow: e.boxShadowSecondary,
1080
+ "&-item": Object.assign(Object.assign({}, ya), {
1081
+ display: "flex",
1082
+ alignItems: "center",
1083
+ minWidth: e.tabsDropdownWidth,
1084
+ margin: 0,
1085
+ padding: `${$(e.paddingXXS)} ${$(e.paddingSM)}`,
1086
+ color: e.colorText,
1087
+ fontWeight: "normal",
1088
+ fontSize: e.fontSize,
1089
+ lineHeight: e.lineHeight,
1090
+ cursor: "pointer",
1091
+ transition: `all ${e.motionDurationSlow}`,
1092
+ "> span": {
1093
+ flex: 1,
1094
+ whiteSpace: "nowrap"
1095
+ },
1096
+ "&-remove": {
1097
+ flex: "none",
1098
+ marginLeft: {
1099
+ _skip_check_: !0,
1100
+ value: e.marginSM
1101
+ },
1102
+ color: e.colorTextDescription,
1103
+ fontSize: e.fontSizeSM,
1104
+ background: "transparent",
1105
+ border: 0,
1106
+ cursor: "pointer",
1107
+ "&:hover": {
1108
+ color: a
1109
+ }
1110
+ },
1111
+ "&:hover": {
1112
+ background: e.controlItemBgHover
1113
+ },
1114
+ "&-disabled": {
1115
+ "&, &:hover": {
1116
+ color: e.colorTextDisabled,
1117
+ background: "transparent",
1118
+ cursor: "not-allowed"
1119
+ }
1120
+ }
1121
+ })
1122
+ }
1123
+ })
1124
+ };
1125
+ }, Ja = (e) => {
1126
+ const {
1127
+ componentCls: t,
1128
+ margin: a,
1129
+ colorBorderSecondary: n,
1130
+ horizontalMargin: r,
1131
+ verticalItemPadding: o,
1132
+ verticalItemMargin: l,
1133
+ calc: i
1134
+ } = e;
1135
+ return {
1136
+ // ========================== Top & Bottom ==========================
1137
+ [`${t}-top, ${t}-bottom`]: {
1138
+ flexDirection: "column",
1139
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1140
+ margin: r,
1141
+ "&::before": {
1142
+ position: "absolute",
1143
+ right: {
1144
+ _skip_check_: !0,
1145
+ value: 0
1146
+ },
1147
+ left: {
1148
+ _skip_check_: !0,
1149
+ value: 0
1150
+ },
1151
+ borderBottom: `${$(e.lineWidth)} ${e.lineType} ${n}`,
1152
+ content: "''"
1153
+ },
1154
+ [`${t}-ink-bar`]: {
1155
+ height: e.lineWidthBold,
1156
+ "&-animated": {
1157
+ transition: `width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
1158
+ right ${e.motionDurationSlow}`
1159
+ }
1160
+ },
1161
+ [`${t}-nav-wrap`]: {
1162
+ "&::before, &::after": {
1163
+ top: 0,
1164
+ bottom: 0,
1165
+ width: e.controlHeight
1166
+ },
1167
+ "&::before": {
1168
+ left: {
1169
+ _skip_check_: !0,
1170
+ value: 0
1171
+ },
1172
+ boxShadow: e.boxShadowTabsOverflowLeft
1173
+ },
1174
+ "&::after": {
1175
+ right: {
1176
+ _skip_check_: !0,
1177
+ value: 0
1178
+ },
1179
+ boxShadow: e.boxShadowTabsOverflowRight
1180
+ },
1181
+ [`&${t}-nav-wrap-ping-left::before`]: {
1182
+ opacity: 1
1183
+ },
1184
+ [`&${t}-nav-wrap-ping-right::after`]: {
1185
+ opacity: 1
1186
+ }
1187
+ }
1188
+ }
1189
+ },
1190
+ [`${t}-top`]: {
1191
+ [`> ${t}-nav,
1192
+ > div > ${t}-nav`]: {
1193
+ "&::before": {
1194
+ bottom: 0
1195
+ },
1196
+ [`${t}-ink-bar`]: {
1197
+ bottom: 0
1198
+ }
1199
+ }
1200
+ },
1201
+ [`${t}-bottom`]: {
1202
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1203
+ order: 1,
1204
+ marginTop: a,
1205
+ marginBottom: 0,
1206
+ "&::before": {
1207
+ top: 0
1208
+ },
1209
+ [`${t}-ink-bar`]: {
1210
+ top: 0
1211
+ }
1212
+ },
1213
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1214
+ order: 0
1215
+ }
1216
+ },
1217
+ // ========================== Left & Right ==========================
1218
+ [`${t}-left, ${t}-right`]: {
1219
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1220
+ flexDirection: "column",
1221
+ minWidth: i(e.controlHeight).mul(1.25).equal(),
1222
+ // >>>>>>>>>>> Tab
1223
+ [`${t}-tab`]: {
1224
+ padding: o,
1225
+ textAlign: "center"
1226
+ },
1227
+ [`${t}-tab + ${t}-tab`]: {
1228
+ margin: l
1229
+ },
1230
+ // >>>>>>>>>>> Nav
1231
+ [`${t}-nav-wrap`]: {
1232
+ flexDirection: "column",
1233
+ "&::before, &::after": {
1234
+ right: {
1235
+ _skip_check_: !0,
1236
+ value: 0
1237
+ },
1238
+ left: {
1239
+ _skip_check_: !0,
1240
+ value: 0
1241
+ },
1242
+ height: e.controlHeight
1243
+ },
1244
+ "&::before": {
1245
+ top: 0,
1246
+ boxShadow: e.boxShadowTabsOverflowTop
1247
+ },
1248
+ "&::after": {
1249
+ bottom: 0,
1250
+ boxShadow: e.boxShadowTabsOverflowBottom
1251
+ },
1252
+ [`&${t}-nav-wrap-ping-top::before`]: {
1253
+ opacity: 1
1254
+ },
1255
+ [`&${t}-nav-wrap-ping-bottom::after`]: {
1256
+ opacity: 1
1257
+ }
1258
+ },
1259
+ // >>>>>>>>>>> Ink Bar
1260
+ [`${t}-ink-bar`]: {
1261
+ width: e.lineWidthBold,
1262
+ "&-animated": {
1263
+ transition: `height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`
1264
+ }
1265
+ },
1266
+ [`${t}-nav-list, ${t}-nav-operations`]: {
1267
+ flex: "1 0 auto",
1268
+ // fix safari scroll problem
1269
+ flexDirection: "column"
1270
+ }
1271
+ }
1272
+ },
1273
+ [`${t}-left`]: {
1274
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1275
+ [`${t}-ink-bar`]: {
1276
+ right: {
1277
+ _skip_check_: !0,
1278
+ value: 0
1279
+ }
1280
+ }
1281
+ },
1282
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1283
+ marginLeft: {
1284
+ _skip_check_: !0,
1285
+ value: $(i(e.lineWidth).mul(-1).equal())
1286
+ },
1287
+ borderLeft: {
1288
+ _skip_check_: !0,
1289
+ value: `${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1290
+ },
1291
+ [`> ${t}-content > ${t}-tabpane`]: {
1292
+ paddingLeft: {
1293
+ _skip_check_: !0,
1294
+ value: e.paddingLG
1295
+ }
1296
+ }
1297
+ }
1298
+ },
1299
+ [`${t}-right`]: {
1300
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1301
+ order: 1,
1302
+ [`${t}-ink-bar`]: {
1303
+ left: {
1304
+ _skip_check_: !0,
1305
+ value: 0
1306
+ }
1307
+ }
1308
+ },
1309
+ [`> ${t}-content-holder, > div > ${t}-content-holder`]: {
1310
+ order: 0,
1311
+ marginRight: {
1312
+ _skip_check_: !0,
1313
+ value: i(e.lineWidth).mul(-1).equal()
1314
+ },
1315
+ borderRight: {
1316
+ _skip_check_: !0,
1317
+ value: `${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
1318
+ },
1319
+ [`> ${t}-content > ${t}-tabpane`]: {
1320
+ paddingRight: {
1321
+ _skip_check_: !0,
1322
+ value: e.paddingLG
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ };
1328
+ }, en = (e) => {
1329
+ const {
1330
+ componentCls: t,
1331
+ cardPaddingSM: a,
1332
+ cardPaddingLG: n,
1333
+ horizontalItemPaddingSM: r,
1334
+ horizontalItemPaddingLG: o
1335
+ } = e;
1336
+ return {
1337
+ [t]: {
1338
+ "&-small": {
1339
+ [`> ${t}-nav`]: {
1340
+ [`${t}-tab`]: {
1341
+ padding: r,
1342
+ fontSize: e.titleFontSizeSM
1343
+ }
1344
+ }
1345
+ },
1346
+ "&-large": {
1347
+ [`> ${t}-nav`]: {
1348
+ [`${t}-tab`]: {
1349
+ padding: o,
1350
+ fontSize: e.titleFontSizeLG
1351
+ }
1352
+ }
1353
+ }
1354
+ },
1355
+ [`${t}-card`]: {
1356
+ [`&${t}-small`]: {
1357
+ [`> ${t}-nav`]: {
1358
+ [`${t}-tab`]: {
1359
+ padding: a
1360
+ }
1361
+ },
1362
+ [`&${t}-bottom`]: {
1363
+ [`> ${t}-nav ${t}-tab`]: {
1364
+ borderRadius: `0 0 ${$(e.borderRadius)} ${$(e.borderRadius)}`
1365
+ }
1366
+ },
1367
+ [`&${t}-top`]: {
1368
+ [`> ${t}-nav ${t}-tab`]: {
1369
+ borderRadius: `${$(e.borderRadius)} ${$(e.borderRadius)} 0 0`
1370
+ }
1371
+ },
1372
+ [`&${t}-right`]: {
1373
+ [`> ${t}-nav ${t}-tab`]: {
1374
+ borderRadius: {
1375
+ _skip_check_: !0,
1376
+ value: `0 ${$(e.borderRadius)} ${$(e.borderRadius)} 0`
1377
+ }
1378
+ }
1379
+ },
1380
+ [`&${t}-left`]: {
1381
+ [`> ${t}-nav ${t}-tab`]: {
1382
+ borderRadius: {
1383
+ _skip_check_: !0,
1384
+ value: `${$(e.borderRadius)} 0 0 ${$(e.borderRadius)}`
1385
+ }
1386
+ }
1387
+ }
1388
+ },
1389
+ [`&${t}-large`]: {
1390
+ [`> ${t}-nav`]: {
1391
+ [`${t}-tab`]: {
1392
+ padding: n
1393
+ }
1394
+ }
1395
+ }
1396
+ }
1397
+ };
1398
+ }, tn = (e) => {
1399
+ const {
1400
+ componentCls: t,
1401
+ itemActiveColor: a,
1402
+ itemHoverColor: n,
1403
+ iconCls: r,
1404
+ tabsHorizontalItemMargin: o,
1405
+ horizontalItemPadding: l,
1406
+ itemSelectedColor: i,
1407
+ itemColor: s
1408
+ } = e, d = `${t}-tab`;
1409
+ return {
1410
+ [d]: {
1411
+ position: "relative",
1412
+ WebkitTouchCallout: "none",
1413
+ WebkitTapHighlightColor: "transparent",
1414
+ display: "inline-flex",
1415
+ alignItems: "center",
1416
+ padding: l,
1417
+ fontSize: e.titleFontSize,
1418
+ background: "transparent",
1419
+ border: 0,
1420
+ outline: "none",
1421
+ cursor: "pointer",
1422
+ color: s,
1423
+ "&-btn, &-remove": {
1424
+ "&:focus:not(:focus-visible), &:active": {
1425
+ color: a
1426
+ }
1427
+ },
1428
+ "&-btn": {
1429
+ outline: "none",
1430
+ transition: `all ${e.motionDurationSlow}`,
1431
+ [`${d}-icon:not(:last-child)`]: {
1432
+ marginInlineEnd: e.marginSM
1433
+ }
1434
+ },
1435
+ "&-remove": Object.assign({
1436
+ flex: "none",
1437
+ marginRight: {
1438
+ _skip_check_: !0,
1439
+ value: e.calc(e.marginXXS).mul(-1).equal()
1440
+ },
1441
+ marginLeft: {
1442
+ _skip_check_: !0,
1443
+ value: e.marginXS
1444
+ },
1445
+ color: e.colorTextDescription,
1446
+ fontSize: e.fontSizeSM,
1447
+ background: "transparent",
1448
+ border: "none",
1449
+ outline: "none",
1450
+ cursor: "pointer",
1451
+ transition: `all ${e.motionDurationSlow}`,
1452
+ "&:hover": {
1453
+ color: e.colorTextHeading
1454
+ }
1455
+ }, Ue(e)),
1456
+ "&:hover": {
1457
+ color: n
1458
+ },
1459
+ [`&${d}-active ${d}-btn`]: {
1460
+ color: i,
1461
+ textShadow: e.tabsActiveTextShadow
1462
+ },
1463
+ [`&${d}-focus ${d}-btn`]: Object.assign({}, Rt(e)),
1464
+ [`&${d}-disabled`]: {
1465
+ color: e.colorTextDisabled,
1466
+ cursor: "not-allowed"
1467
+ },
1468
+ [`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
1469
+ "&:focus, &:active": {
1470
+ color: e.colorTextDisabled
1471
+ }
1472
+ },
1473
+ [`& ${d}-remove ${r}`]: {
1474
+ margin: 0
1475
+ },
1476
+ [`${r}:not(:last-child)`]: {
1477
+ marginRight: {
1478
+ _skip_check_: !0,
1479
+ value: e.marginSM
1480
+ }
1481
+ }
1482
+ },
1483
+ [`${d} + ${d}`]: {
1484
+ margin: {
1485
+ _skip_check_: !0,
1486
+ value: o
1487
+ }
1488
+ }
1489
+ };
1490
+ }, an = (e) => {
1491
+ const {
1492
+ componentCls: t,
1493
+ tabsHorizontalItemMarginRTL: a,
1494
+ iconCls: n,
1495
+ cardGutter: r,
1496
+ calc: o
1497
+ } = e;
1498
+ return {
1499
+ [`${t}-rtl`]: {
1500
+ direction: "rtl",
1501
+ [`${t}-nav`]: {
1502
+ [`${t}-tab`]: {
1503
+ margin: {
1504
+ _skip_check_: !0,
1505
+ value: a
1506
+ },
1507
+ [`${t}-tab:last-of-type`]: {
1508
+ marginLeft: {
1509
+ _skip_check_: !0,
1510
+ value: 0
1511
+ }
1512
+ },
1513
+ [n]: {
1514
+ marginRight: {
1515
+ _skip_check_: !0,
1516
+ value: 0
1517
+ },
1518
+ marginLeft: {
1519
+ _skip_check_: !0,
1520
+ value: $(e.marginSM)
1521
+ }
1522
+ },
1523
+ [`${t}-tab-remove`]: {
1524
+ marginRight: {
1525
+ _skip_check_: !0,
1526
+ value: $(e.marginXS)
1527
+ },
1528
+ marginLeft: {
1529
+ _skip_check_: !0,
1530
+ value: $(o(e.marginXXS).mul(-1).equal())
1531
+ },
1532
+ [n]: {
1533
+ margin: 0
1534
+ }
1535
+ }
1536
+ }
1537
+ },
1538
+ [`&${t}-left`]: {
1539
+ [`> ${t}-nav`]: {
1540
+ order: 1
1541
+ },
1542
+ [`> ${t}-content-holder`]: {
1543
+ order: 0
1544
+ }
1545
+ },
1546
+ [`&${t}-right`]: {
1547
+ [`> ${t}-nav`]: {
1548
+ order: 0
1549
+ },
1550
+ [`> ${t}-content-holder`]: {
1551
+ order: 1
1552
+ }
1553
+ },
1554
+ // ====================== Card ======================
1555
+ [`&${t}-card${t}-top, &${t}-card${t}-bottom`]: {
1556
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1557
+ [`${t}-tab + ${t}-tab`]: {
1558
+ marginRight: {
1559
+ _skip_check_: !0,
1560
+ value: r
1561
+ },
1562
+ marginLeft: {
1563
+ _skip_check_: !0,
1564
+ value: 0
1565
+ }
1566
+ }
1567
+ }
1568
+ }
1569
+ },
1570
+ [`${t}-dropdown-rtl`]: {
1571
+ direction: "rtl"
1572
+ },
1573
+ [`${t}-menu-item`]: {
1574
+ [`${t}-dropdown-rtl`]: {
1575
+ textAlign: {
1576
+ _skip_check_: !0,
1577
+ value: "right"
1578
+ }
1579
+ }
1580
+ }
1581
+ };
1582
+ }, nn = (e) => {
1583
+ const {
1584
+ componentCls: t,
1585
+ tabsCardPadding: a,
1586
+ cardHeight: n,
1587
+ cardGutter: r,
1588
+ itemHoverColor: o,
1589
+ itemActiveColor: l,
1590
+ colorBorderSecondary: i
1591
+ } = e;
1592
+ return {
1593
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, It(e)), {
1594
+ display: "flex",
1595
+ // ========================== Navigation ==========================
1596
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1597
+ position: "relative",
1598
+ display: "flex",
1599
+ flex: "none",
1600
+ alignItems: "center",
1601
+ [`${t}-nav-wrap`]: {
1602
+ position: "relative",
1603
+ display: "flex",
1604
+ flex: "auto",
1605
+ alignSelf: "stretch",
1606
+ overflow: "hidden",
1607
+ whiteSpace: "nowrap",
1608
+ transform: "translate(0)",
1609
+ // Fix chrome render bug
1610
+ // >>>>> Ping shadow
1611
+ "&::before, &::after": {
1612
+ position: "absolute",
1613
+ zIndex: 1,
1614
+ opacity: 0,
1615
+ transition: `opacity ${e.motionDurationSlow}`,
1616
+ content: "''",
1617
+ pointerEvents: "none"
1618
+ }
1619
+ },
1620
+ [`${t}-nav-list`]: {
1621
+ position: "relative",
1622
+ display: "flex",
1623
+ transition: `opacity ${e.motionDurationSlow}`
1624
+ },
1625
+ // >>>>>>>> Operations
1626
+ [`${t}-nav-operations`]: {
1627
+ display: "flex",
1628
+ alignSelf: "stretch"
1629
+ },
1630
+ [`${t}-nav-operations-hidden`]: {
1631
+ position: "absolute",
1632
+ visibility: "hidden",
1633
+ pointerEvents: "none"
1634
+ },
1635
+ [`${t}-nav-more`]: {
1636
+ position: "relative",
1637
+ padding: a,
1638
+ background: "transparent",
1639
+ border: 0,
1640
+ color: e.colorText,
1641
+ "&::after": {
1642
+ position: "absolute",
1643
+ right: {
1644
+ _skip_check_: !0,
1645
+ value: 0
1646
+ },
1647
+ bottom: 0,
1648
+ left: {
1649
+ _skip_check_: !0,
1650
+ value: 0
1651
+ },
1652
+ height: e.calc(e.controlHeightLG).div(8).equal(),
1653
+ transform: "translateY(100%)",
1654
+ content: "''"
1655
+ }
1656
+ },
1657
+ [`${t}-nav-add`]: Object.assign({
1658
+ minWidth: n,
1659
+ marginLeft: {
1660
+ _skip_check_: !0,
1661
+ value: r
1662
+ },
1663
+ padding: $(e.paddingXS),
1664
+ background: "transparent",
1665
+ border: `${$(e.lineWidth)} ${e.lineType} ${i}`,
1666
+ borderRadius: `${$(e.borderRadiusLG)} ${$(e.borderRadiusLG)} 0 0`,
1667
+ outline: "none",
1668
+ cursor: "pointer",
1669
+ color: e.colorText,
1670
+ transition: `all ${e.motionDurationSlow} ${e.motionEaseInOut}`,
1671
+ "&:hover": {
1672
+ color: o
1673
+ },
1674
+ "&:active, &:focus:not(:focus-visible)": {
1675
+ color: l
1676
+ }
1677
+ }, Ue(e, -3))
1678
+ },
1679
+ [`${t}-extra-content`]: {
1680
+ flex: "none"
1681
+ },
1682
+ // ============================ InkBar ============================
1683
+ [`${t}-ink-bar`]: {
1684
+ position: "absolute",
1685
+ background: e.inkBarColor,
1686
+ pointerEvents: "none"
1687
+ }
1688
+ }), tn(e)), {
1689
+ // =========================== TabPanes ===========================
1690
+ [`${t}-content`]: {
1691
+ position: "relative",
1692
+ width: "100%"
1693
+ },
1694
+ [`${t}-content-holder`]: {
1695
+ flex: "auto",
1696
+ minWidth: 0,
1697
+ minHeight: 0
1698
+ },
1699
+ [`${t}-tabpane`]: Object.assign(Object.assign({}, Ue(e)), {
1700
+ "&-hidden": {
1701
+ display: "none"
1702
+ }
1703
+ })
1704
+ }),
1705
+ [`${t}-centered`]: {
1706
+ [`> ${t}-nav, > div > ${t}-nav`]: {
1707
+ [`${t}-nav-wrap`]: {
1708
+ [`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]: {
1709
+ margin: "auto"
1710
+ }
1711
+ }
1712
+ }
1713
+ }
1714
+ };
1715
+ }, rn = (e) => {
1716
+ const t = e.controlHeightLG;
1717
+ return {
1718
+ zIndexPopup: e.zIndexPopupBase + 50,
1719
+ cardBg: e.colorFillAlter,
1720
+ cardHeight: t,
1721
+ // Initialize with empty string, because cardPadding will be calculated with cardHeight by default.
1722
+ cardPadding: `${(t - Math.round(e.fontSize * e.lineHeight)) / 2 - e.lineWidth}px ${e.padding}px`,
1723
+ cardPaddingSM: `${e.paddingXXS * 1.5}px ${e.padding}px`,
1724
+ cardPaddingLG: `${e.paddingXS}px ${e.padding}px ${e.paddingXXS * 1.5}px`,
1725
+ titleFontSize: e.fontSize,
1726
+ titleFontSizeLG: e.fontSizeLG,
1727
+ titleFontSizeSM: e.fontSize,
1728
+ inkBarColor: e.colorPrimary,
1729
+ horizontalMargin: `0 0 ${e.margin}px 0`,
1730
+ horizontalItemGutter: 32,
1731
+ // Fixed Value
1732
+ // Initialize with empty string, because horizontalItemMargin will be calculated with horizontalItemGutter by default.
1733
+ horizontalItemMargin: "",
1734
+ horizontalItemMarginRTL: "",
1735
+ horizontalItemPadding: `${e.paddingSM}px 0`,
1736
+ horizontalItemPaddingSM: `${e.paddingXS}px 0`,
1737
+ horizontalItemPaddingLG: `${e.padding}px 0`,
1738
+ verticalItemPadding: `${e.paddingXS}px ${e.paddingLG}px`,
1739
+ verticalItemMargin: `${e.margin}px 0 0 0`,
1740
+ itemColor: e.colorText,
1741
+ itemSelectedColor: e.colorPrimary,
1742
+ itemHoverColor: e.colorPrimaryHover,
1743
+ itemActiveColor: e.colorPrimaryActive,
1744
+ cardGutter: e.marginXXS / 2
1745
+ };
1746
+ }, on = ha("Tabs", (e) => {
1747
+ const t = $a(e, {
1748
+ // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`
1749
+ tabsCardPadding: e.cardPadding,
1750
+ dropdownEdgeChildVerticalPadding: e.paddingXXS,
1751
+ tabsActiveTextShadow: "0 0 0.25px currentcolor",
1752
+ tabsDropdownHeight: 200,
1753
+ tabsDropdownWidth: 120,
1754
+ tabsHorizontalItemMargin: `0 0 0 ${$(e.horizontalItemGutter)}`,
1755
+ tabsHorizontalItemMarginRTL: `0 0 0 ${$(e.horizontalItemGutter)}`
1756
+ });
1757
+ return [en(t), an(t), Ja(t), Za(t), Qa(t), nn(t), Ya(t)];
1758
+ }, rn), Bt = () => null;
1759
+ process.env.NODE_ENV !== "production" && (Bt.displayName = "DeprecatedTabPane");
1760
+ var ln = function(e, t) {
1761
+ var a = {};
1762
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
1763
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1764
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
1765
+ return a;
1766
+ };
1767
+ const kt = (e) => {
1768
+ var t, a, n, r, o, l, i, s, d, m, b;
1769
+ const {
1770
+ type: _,
1771
+ className: R,
1772
+ rootClassName: O,
1773
+ size: C,
1774
+ onEdit: z,
1775
+ hideAdd: h,
1776
+ centered: p,
1777
+ addIcon: P,
1778
+ removeIcon: B,
1779
+ moreIcon: A,
1780
+ more: W,
1781
+ popupClassName: H,
1782
+ children: L,
1783
+ items: x,
1784
+ animated: E,
1785
+ style: v,
1786
+ indicatorSize: y,
1787
+ indicator: g
1788
+ } = e, S = ln(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1789
+ prefixCls: K
1790
+ } = S, {
1791
+ direction: X,
1792
+ tabs: f,
1793
+ getPrefixCls: F,
1794
+ getPopupContainer: de
1795
+ } = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [ve, w, k] = on(G, Q);
1796
+ let V;
1797
+ _ === "editable-card" && (V = {
1798
+ onEdit: (oe, $e) => {
1799
+ let {
1800
+ key: N,
1801
+ event: se
1802
+ } = $e;
1803
+ z == null || z(oe === "add" ? se : N, oe);
1804
+ },
1805
+ removeIcon: (t = B ?? (f == null ? void 0 : f.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ c.createElement(oa, null),
1806
+ addIcon: (P ?? (f == null ? void 0 : f.addIcon)) || /* @__PURE__ */ c.createElement(Nt, null),
1807
+ showAdd: h !== !0
1808
+ });
1809
+ const q = F();
1810
+ if (process.env.NODE_ENV !== "production") {
1811
+ const oe = Pt("Tabs");
1812
+ process.env.NODE_ENV !== "production" && oe(!("onPrevClick" in e) && !("onNextClick" in e), "breaking", "`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."), process.env.NODE_ENV !== "production" && oe(!(y || f != null && f.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
1813
+ }
1814
+ const Z = xa(C), re = qa(x, L), ee = Xa(G, E), he = Object.assign(Object.assign({}, f == null ? void 0 : f.style), v), be = {
1815
+ align: (a = g == null ? void 0 : g.align) !== null && a !== void 0 ? a : (n = f == null ? void 0 : f.indicator) === null || n === void 0 ? void 0 : n.align,
1816
+ size: (i = (o = (r = g == null ? void 0 : g.size) !== null && r !== void 0 ? r : y) !== null && o !== void 0 ? o : (l = f == null ? void 0 : f.indicator) === null || l === void 0 ? void 0 : l.size) !== null && i !== void 0 ? i : f == null ? void 0 : f.indicatorSize
1817
+ };
1818
+ return ve(/* @__PURE__ */ c.createElement(Ot, Object.assign({
1819
+ direction: X,
1820
+ getPopupContainer: de
1821
+ }, S, {
1822
+ items: re,
1823
+ className: J({
1824
+ [`${G}-${Z}`]: Z,
1825
+ [`${G}-card`]: ["card", "editable-card"].includes(_),
1826
+ [`${G}-editable-card`]: _ === "editable-card",
1827
+ [`${G}-centered`]: p
1828
+ }, f == null ? void 0 : f.className, R, O, w, k, Q),
1829
+ popupClassName: J(H, w, k, Q),
1830
+ style: he,
1831
+ editable: V,
1832
+ more: Object.assign({
1833
+ icon: (b = (m = (d = (s = f == null ? void 0 : f.more) === null || s === void 0 ? void 0 : s.icon) !== null && d !== void 0 ? d : f == null ? void 0 : f.moreIcon) !== null && m !== void 0 ? m : A) !== null && b !== void 0 ? b : /* @__PURE__ */ c.createElement(sa, null),
1834
+ transitionName: `${q}-slide-up`
1835
+ }, W),
1836
+ prefixCls: G,
1837
+ animated: ee,
1838
+ indicator: be
1839
+ })));
1840
+ };
1841
+ kt.TabPane = Bt;
1842
+ process.env.NODE_ENV !== "production" && (kt.displayName = "Tabs");
1843
+ export {
1844
+ Nt as R,
1845
+ kt as T
1846
+ };