@gobolt/genesis 0.1.2 → 0.1.5

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 (348) hide show
  1. package/README.md +7 -7
  2. package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
  3. package/dist/CSSMotionList-DB0khM6h.js +22193 -0
  4. package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
  5. package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
  6. package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
  7. package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
  8. package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
  9. package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
  10. package/dist/Context-2_suFYDs.js +5 -0
  11. package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
  12. package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
  13. package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
  14. package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
  15. package/dist/Input--qsU-6vp.js +424 -0
  16. package/dist/KeyCode-B3vHb2gY.js +155 -0
  17. package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
  18. package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
  19. package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
  20. package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
  21. package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
  22. package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
  23. package/dist/TextArea-CHo3cxKw.js +404 -0
  24. package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
  25. package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
  26. package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
  27. package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
  28. package/dist/button-CYVlK7G0.js +1430 -0
  29. package/dist/components/Avatar/Avatar.js +8 -7
  30. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
  31. package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
  32. package/dist/components/Avatar/styles.d.ts +1 -2
  33. package/dist/components/Avatar/styles.js +161 -159
  34. package/dist/components/Badge/Badge.js +8 -7
  35. package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
  36. package/dist/components/Badge/__tests__/Badge.test.js +1 -1
  37. package/dist/components/Badge/styles.d.ts +0 -1
  38. package/dist/components/Badge/styles.js +1 -1
  39. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
  40. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  41. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
  42. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
  43. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
  44. package/dist/components/Breadcrumb/styles.d.ts +0 -1
  45. package/dist/components/Breadcrumb/styles.js +58 -58
  46. package/dist/components/Button/Button.d.ts +0 -1
  47. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
  48. package/dist/components/Button/__tests__/Button.test.js +5 -4
  49. package/dist/components/Button/styles.d.ts +0 -1
  50. package/dist/components/Button/styles.js +2 -2
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
  52. package/dist/components/Card/__tests__/Card.test.js +1 -1
  53. package/dist/components/Card/styles.d.ts +0 -1
  54. package/dist/components/Card/styles.js +2 -2
  55. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  56. package/dist/components/Checkbox/Checkbox.js +11 -11
  57. package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
  58. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
  59. package/dist/components/Checkbox/styles.d.ts +3 -4
  60. package/dist/components/Checkbox/styles.js +2 -2
  61. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
  62. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
  63. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
  64. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
  65. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
  66. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
  67. package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
  68. package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
  69. package/dist/components/Dashboard/styles.d.ts +0 -1
  70. package/dist/components/Dashboard/styles.js +1 -1
  71. package/dist/components/DatePicker/DatePicker.d.ts +0 -1
  72. package/dist/components/DatePicker/DatePicker.js +1 -1
  73. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
  74. package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
  75. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
  76. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  77. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
  78. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
  79. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  80. package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
  81. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
  82. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
  83. package/dist/components/ErrorBoundary/styles.d.ts +0 -1
  84. package/dist/components/ErrorBoundary/styles.js +1 -1
  85. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
  86. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
  87. package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
  88. package/dist/components/Form/Form.d.ts +0 -1
  89. package/dist/components/Form/Form.js +2 -2
  90. package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
  91. package/dist/components/Form/__stories__/FormStory.js +11 -10
  92. package/dist/components/Form/__tests__/form.test.js +7 -6
  93. package/dist/components/Form/index.js +1 -1
  94. package/dist/components/Form/styles.d.ts +0 -1
  95. package/dist/components/Form/styles.js +10 -2
  96. package/dist/components/FormBrandon/Form.d.ts +25 -0
  97. package/dist/components/FormBrandon/Form.js +18 -0
  98. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
  99. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
  100. package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
  101. package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
  102. package/dist/components/FormBrandon/index.d.ts +2 -0
  103. package/dist/components/FormBrandon/index.js +4 -0
  104. package/dist/components/FormBrandon/styles.d.ts +2 -0
  105. package/dist/components/FormBrandon/styles.js +13 -0
  106. package/dist/components/Glyph/Glyph.js +2 -2
  107. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
  108. package/dist/components/Glyph/styles.d.ts +0 -1
  109. package/dist/components/Glyph/styles.js +1 -1
  110. package/dist/components/Input/Input.d.ts +0 -1
  111. package/dist/components/Input/Input.js +9 -10
  112. package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
  113. package/dist/components/Input/__tests__/Input.test.js +21 -20
  114. package/dist/components/Input/styles.d.ts +5 -6
  115. package/dist/components/Input/styles.js +4 -119
  116. package/dist/components/Layout/Content/Content.d.ts +0 -1
  117. package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
  118. package/dist/components/Layout/Content/styles.d.ts +0 -1
  119. package/dist/components/Layout/Content/styles.js +1 -1
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
  121. package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
  123. package/dist/components/Layout/MainLayout/styles.js +1 -1
  124. package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
  125. package/dist/components/Layout/__tests__/Layout.test.js +1 -1
  126. package/dist/components/Message/Message.d.ts +0 -1
  127. package/dist/components/Message/Message.js +13 -12
  128. package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
  129. package/dist/components/Message/__tests__/Message.test.js +6 -5
  130. package/dist/components/Message/styles.js +1 -1
  131. package/dist/components/Notification/Notification.js +122 -55
  132. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
  133. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
  134. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
  135. package/dist/components/Notification/NotificationBadge/styles.js +1 -1
  136. package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
  137. package/dist/components/Notification/__tests__/Notification.test.js +3 -3
  138. package/dist/components/Notification/styles.js +1 -1
  139. package/dist/components/Popover/Popover.d.ts +1 -1
  140. package/dist/components/Popover/Popover.js +14 -11
  141. package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
  142. package/dist/components/Popover/__tests__/Popover.test.js +19 -26
  143. package/dist/components/Popover/styles.d.ts +0 -1
  144. package/dist/components/Popover/styles.js +2 -2
  145. package/dist/components/Progress/Progress.js +29 -27
  146. package/dist/components/Progress/Progress.util.d.ts +0 -1
  147. package/dist/components/Progress/Progress.util.js +8 -7
  148. package/dist/components/Progress/ProgressText.d.ts +0 -1
  149. package/dist/components/Progress/ProgressText.js +8 -7
  150. package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
  151. package/dist/components/Progress/__tests__/Progress.test.js +4 -4
  152. package/dist/components/Progress/styles.d.ts +0 -1
  153. package/dist/components/Progress/styles.js +217 -214
  154. package/dist/components/Radio/Radio.d.ts +0 -1
  155. package/dist/components/Radio/Radio.js +9 -8
  156. package/dist/components/Radio/RadioGroup.js +1 -1
  157. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
  158. package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
  159. package/dist/components/Row/Row.d.ts +0 -1
  160. package/dist/components/Row/Row.js +29 -26
  161. package/dist/components/Row/RowActions/RowActions.js +8 -7
  162. package/dist/components/Row/RowActions/styles.js +1 -1
  163. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
  164. package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
  165. package/dist/components/Row/RowLabelValue/styles.js +2 -2
  166. package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
  167. package/dist/components/Row/__tests__/Row.test.js +3 -3
  168. package/dist/components/Row/styles.d.ts +0 -1
  169. package/dist/components/Row/styles.js +1 -1
  170. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
  171. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
  172. package/dist/components/SegmentedControls/styles.d.ts +1 -2
  173. package/dist/components/SegmentedControls/styles.js +214 -203
  174. package/dist/components/Select/Select.d.ts +0 -1
  175. package/dist/components/Select/Select.js +10 -11
  176. package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
  177. package/dist/components/Select/__tests__/Select.test.js +49 -10754
  178. package/dist/components/Select/styles.d.ts +0 -1
  179. package/dist/components/Select/styles.js +2 -2
  180. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
  181. package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
  182. package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
  183. package/dist/components/Switch/__tests__/Switch.test.js +3 -3
  184. package/dist/components/Switch/styles.d.ts +0 -1
  185. package/dist/components/Switch/styles.js +74 -74
  186. package/dist/components/Table/Table.js +1 -1
  187. package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
  188. package/dist/components/Table/__mocks__/table-mocks.js +10 -9
  189. package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
  190. package/dist/components/Table/__tests__/Table.test.js +1 -1
  191. package/dist/components/Table/styles.d.ts +0 -1
  192. package/dist/components/Table/styles.js +2 -2
  193. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
  194. package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
  195. package/dist/components/Tabs/styles.d.ts +0 -1
  196. package/dist/components/Tabs/styles.js +2 -2
  197. package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
  198. package/dist/components/Tile/__tests__/Tile.test.js +1 -1
  199. package/dist/components/Tile/styles.d.ts +0 -1
  200. package/dist/components/Tile/styles.js +1 -1
  201. package/dist/components/Toast/Toast.d.ts +0 -1
  202. package/dist/components/Toast/Toast.js +9 -8
  203. package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
  204. package/dist/components/Toast/__tests__/Toast.test.js +6 -5
  205. package/dist/components/Toast/index.js +1 -1
  206. package/dist/components/Toast/styles.js +1 -1
  207. package/dist/components/Tooltip/Tooltip.js +8 -7
  208. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
  209. package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
  210. package/dist/components/Tooltip/styles.d.ts +0 -1
  211. package/dist/components/Tooltip/styles.js +2 -2
  212. package/dist/components/Typography/Typography.d.ts +0 -1
  213. package/dist/components/Typography/Typography.js +1 -1
  214. package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
  215. package/dist/components/Typography/__tests__/Typography.test.js +14 -13
  216. package/dist/components/Typography/index.js +1 -1
  217. package/dist/components/Typography/styles.d.ts +0 -1
  218. package/dist/components/Typography/styles.js +2 -2
  219. package/dist/components/index.d.ts +0 -2
  220. package/dist/components/index.js +46 -48
  221. package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
  222. package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
  223. package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
  224. package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
  225. package/dist/genesis/GenesisThemeBreakdown.js +9 -8
  226. package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
  227. package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
  228. package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
  229. package/dist/genesis/styles.d.ts +0 -1
  230. package/dist/genesis/styles.js +3 -3
  231. package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
  232. package/dist/index-B7FXyiY_.js +104 -0
  233. package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
  234. package/dist/index-BZ050Dyl.js +292 -0
  235. package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
  236. package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
  237. package/dist/index-C2K1BzmJ.js +3400 -0
  238. package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
  239. package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
  240. package/dist/index-DCopujxC.js +772 -0
  241. package/dist/index-DRGbc-fW.js +780 -0
  242. package/dist/index-DavB5GQ3.js +5221 -0
  243. package/dist/index-RAH9f-qb.js +540 -0
  244. package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
  245. package/dist/index-Y0KgiFZb.js +909 -0
  246. package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
  247. package/dist/index.js +53 -55
  248. package/dist/interface/appointment.d.ts +0 -1
  249. package/dist/interface/appointmentV2.d.ts +0 -1
  250. package/dist/interface/appointmentsState.d.ts +0 -1
  251. package/dist/interface/deliveryPartner.d.ts +0 -1
  252. package/dist/interface/route.d.ts +0 -1
  253. package/dist/interface/routeAnalysis.d.ts +0 -1
  254. package/dist/interface/routeAutomationJob.d.ts +0 -1
  255. package/dist/interface/routeAutomationLog.d.ts +0 -1
  256. package/dist/interface/serviceArea.d.ts +0 -1
  257. package/dist/interface/vehicle.d.ts +0 -1
  258. package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
  259. package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
  260. package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
  261. package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
  262. package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
  263. package/dist/providers/BreakpointThemeProvider.js +5 -5
  264. package/dist/providers/GenesisProvider.d.ts +0 -1
  265. package/dist/providers/GenesisProvider.js +1 -1
  266. package/dist/providers/ToastProvider.d.ts +0 -1
  267. package/dist/providers/ToastProvider.js +10 -9
  268. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
  269. package/dist/providers/index.js +1 -1
  270. package/dist/providers/useGenesis.d.ts +0 -1
  271. package/dist/providers/useGenesis.js +2 -2
  272. package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
  273. package/dist/setup-aZdxWCJq.js +13976 -0
  274. package/dist/setup.types-CgFq66QX.js +9261 -0
  275. package/dist/shadow-9lsz-71t.js +13 -0
  276. package/dist/statusUtils-Kj9kMuVg.js +15 -0
  277. package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
  278. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
  279. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
  280. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
  281. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
  282. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
  283. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  284. package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
  285. package/dist/styles/global-styles.d.ts +0 -1
  286. package/dist/styles/global-styles.js +1 -1
  287. package/dist/styles/theme/genesis-theme.d.ts +0 -1
  288. package/dist/styles/theme/genesis-theme.js +285 -337
  289. package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
  290. package/dist/styles/theme/genesis-theme.test.js +69 -0
  291. package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
  292. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
  293. package/dist/styles-DNay6iFa.js +292 -0
  294. package/dist/styles-Wpm1RiGr.js +9212 -0
  295. package/dist/styles-XuoEGUZZ.js +549 -0
  296. package/dist/test/setup.d.ts +0 -1
  297. package/dist/test/setup.js +35 -35
  298. package/dist/test/setup.types.d.ts +0 -1
  299. package/dist/test/setup.types.js +1 -1
  300. package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
  301. package/dist/useBreakpoint-ByLol0R9.js +88 -0
  302. package/dist/useCSSVarCls-YfJY1twF.js +10 -0
  303. package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
  304. package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
  305. package/dist/useLocale-BQ3mKRyJ.js +16 -0
  306. package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
  307. package/dist/useSize-Ct1guc-z.js +9 -0
  308. package/dist/useVariants-C6UAAu9f.js +19 -0
  309. package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
  310. package/dist/utils/icon-util.js +48 -44
  311. package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
  312. package/package.json +45 -24
  313. package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
  314. package/dist/KeyCode-DM2sFh3-.js +0 -517
  315. package/dist/TextArea-Bkf9hh7l.js +0 -708
  316. package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
  317. package/dist/button-BwqpCxVM.js +0 -1406
  318. package/dist/clsx-OuTLNxxd.js +0 -16
  319. package/dist/index-BRUI9igj.js +0 -11
  320. package/dist/index-BbTV2Cw5.js +0 -22638
  321. package/dist/index-BeGv28kJ.js +0 -5173
  322. package/dist/index-BvOLXELm.js +0 -102
  323. package/dist/index-CLSrpQRW.js +0 -416
  324. package/dist/index-CbVOl2U6.js +0 -288
  325. package/dist/index-D0U6r5O7.js +0 -780
  326. package/dist/index-DEu2PVzQ.js +0 -538
  327. package/dist/index-DLdU7Tpd.js +0 -183
  328. package/dist/index-DNQ-jnBx.js +0 -3321
  329. package/dist/index-DWjq9XYj.js +0 -899
  330. package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
  331. package/dist/setup-DwHFLWUb.js +0 -24713
  332. package/dist/setup.types-dBtAXXGp.js +0 -8824
  333. package/dist/shadow-BoMGMNn3.js +0 -13
  334. package/dist/styles-CWdUpZom.js +0 -289
  335. package/dist/styles-qerRs7Rn.js +0 -9196
  336. package/dist/useBreakpoint-TkMv121M.js +0 -22
  337. package/dist/useCSSVarCls-Dau77fzS.js +0 -11
  338. package/dist/useLocale-CTfNpakL.js +0 -16
  339. package/dist/useSize-DSq4r6zy.js +0 -9
  340. package/dist/useVariants-DrLzUVLU.js +0 -30
  341. package/dist/utils/getAppointmentColor.d.ts +0 -4
  342. package/dist/utils/getAppointmentColor.js +0 -91
  343. package/dist/utils/isAllEnglishString.d.ts +0 -1
  344. package/dist/utils/isAllEnglishString.js +0 -8
  345. package/dist/utils/isAllEnglishString.test.js +0 -8
  346. package/dist/utils/parseAddress.d.ts +0 -3
  347. package/dist/utils/parseAddress.js +0 -19
  348. /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
@@ -1,22 +1,22 @@
1
1
  import * as c from "react";
2
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";
3
+ import { R as oa } from "./CloseOutlined-DzgBOns1.js";
4
+ import { E as la, M as ca, D as sa, R as da } from "./EllipsisOutlined-BodkguEc.js";
5
+ import { e as ve, a as I, _ as ne, f as qe, b as Y, c as J, g as De, w as ua } from "./presets-CSXMiWyc.js";
6
+ import { I as va } from "./AntdIcon-DP6hPDqu.js";
7
+ import { u as mt } from "./useMergedState-D1-TbeEv.js";
8
+ import { a as fa } from "./index-DRGbc-fW.js";
9
+ import { w as pt, b as ba, a as ma, n as gt, A as pa, p as ga, g as ha, m as $a, f as $, j as Pt, t as ya, s as Rt, o as Ue, C as Sa } from "./CSSMotionList-DB0khM6h.js";
10
+ import { R as Xe } from "./index-CzMIlMTV.js";
11
+ import { K as pe } from "./KeyCode-B3vHb2gY.js";
12
+ import { d as It } from "./index-DCopujxC.js";
13
+ import { u as _a } from "./useCSSVarCls-YfJY1twF.js";
14
+ import { u as xa } from "./useSize-Ct1guc-z.js";
15
+ import { g as Ca } from "./motion-C-XpKcZG.js";
16
+ import { t as wa } from "./toArray-D5kvYi_U.js";
17
+ import { i as ht } from "./Overflow-CVbsx7Gn.js";
18
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, {
19
+ return /* @__PURE__ */ c.createElement(va, ve({}, t, {
20
20
  ref: a,
21
21
  icon: Ea
22
22
  }));
@@ -24,7 +24,7 @@ var Ea = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
24
24
  process.env.NODE_ENV !== "production" && (Nt.displayName = "PlusOutlined");
25
25
  const Oe = /* @__PURE__ */ ia(null);
26
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) {
27
+ var a = t.activeTabOffset, n = t.horizontal, r = t.rtl, o = t.indicator, l = o === void 0 ? {} : o, i = l.size, d = l.align, s = d === void 0 ? "center" : d, m = j(), b = I(m, 2), _ = b[0], R = b[1], O = U(), C = ra.useCallback(function(h) {
28
28
  return typeof i == "function" ? i(h) : typeof i == "number" ? i : h;
29
29
  }, [i]);
30
30
  function z() {
@@ -36,13 +36,13 @@ var Pa = function(t) {
36
36
  if (n) {
37
37
  h.width = C(a.width);
38
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%)");
39
+ s === "start" && (h[p] = a[p]), s === "center" && (h[p] = a[p] + a.width / 2, h.transform = r ? "translateX(50%)" : "translateX(-50%)"), s === "end" && (h[p] = a[p] + a.width, h.transform = "translateX(-100%)");
40
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%)");
41
+ h.height = C(a.height), s === "start" && (h.top = a.top), s === "center" && (h.top = a.top + a.height / 2, h.transform = "translateY(-50%)"), s === "end" && (h.top = a.top + a.height, h.transform = "translateY(-100%)");
42
42
  return z(), O.current = pt(function() {
43
43
  R(h);
44
44
  }), z;
45
- }, [a, n, r, d, C]), {
45
+ }, [a, n, r, s, C]), {
46
46
  style: _
47
47
  };
48
48
  }, $t = {
@@ -54,13 +54,13 @@ var Pa = function(t) {
54
54
  function Ra(e, t, a) {
55
55
  return Tt(function() {
56
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) {
57
+ var d = e[i].key, s = t.get(d);
58
+ if (!s) {
59
59
  var m;
60
- d = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || $t;
60
+ s = t.get((m = e[i - 1]) === null || m === void 0 ? void 0 : m.key) || $t;
61
61
  }
62
- var b = r.get(s) || ne({}, d);
63
- b.right = l - b.left - b.width, r.set(s, b);
62
+ var b = r.get(d) || ne({}, s);
63
+ b.right = l - b.left - b.width, r.set(d, b);
64
64
  }
65
65
  return r;
66
66
  }, [e.map(function(n) {
@@ -70,32 +70,32 @@ function Ra(e, t, a) {
70
70
  function yt(e, t) {
71
71
  var a = c.useRef(e), n = c.useState({}), r = I(n, 2), o = r[1];
72
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({});
73
+ var d = typeof i == "function" ? i(a.current) : i;
74
+ d !== a.current && t(d, a.current), a.current = d, o({});
75
75
  }
76
76
  return [a.current, l];
77
77
  }
78
78
  var Ia = 0.1, St = 0.01, ze = 20, _t = Math.pow(0.995, ze);
79
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();
80
+ var a = j(), n = I(a, 2), r = n[0], o = n[1], l = j(0), i = I(l, 2), d = i[0], s = 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
81
  function P(x) {
82
- var E = x.touches[0], v = E.screenX, y = E.screenY;
82
+ var E = x.touches[0], f = E.screenX, y = E.screenY;
83
83
  o({
84
- x: v,
84
+ x: f,
85
85
  y
86
86
  }), window.clearInterval(p.current);
87
87
  }
88
88
  function B(x) {
89
89
  if (r) {
90
- var E = x.touches[0], v = E.screenX, y = E.screenY;
90
+ var E = x.touches[0], f = E.screenX, y = E.screenY;
91
91
  o({
92
- x: v,
92
+ x: f,
93
93
  y
94
94
  });
95
- var g = v - r.x, S = y - r.y;
95
+ var g = f - r.x, S = y - r.y;
96
96
  t(g, S);
97
97
  var K = Date.now();
98
- d(K), R(K - s), h({
98
+ s(K), R(K - d), h({
99
99
  x: g,
100
100
  y: S
101
101
  });
@@ -103,8 +103,8 @@ function Na(e, t) {
103
103
  }
104
104
  function A() {
105
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;
106
+ var x = z.x / _, E = z.y / _, f = Math.abs(x), y = Math.abs(E);
107
+ if (Math.max(f, y) < Ia) return;
108
108
  var g = x, S = E;
109
109
  p.current = window.setInterval(function() {
110
110
  if (Math.abs(g) < St && Math.abs(S) < St) {
@@ -117,8 +117,8 @@ function Na(e, t) {
117
117
  }
118
118
  var W = U();
119
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();
120
+ var E = x.deltaX, f = x.deltaY, y = 0, g = Math.abs(E), S = Math.abs(f);
121
+ g === S ? y = W.current === "x" ? E : f : g > S ? (y = E, W.current = "x") : (y = f, W.current = "y"), t(-y, -y) && x.preventDefault();
122
122
  }
123
123
  var L = U(null);
124
124
  L.current = {
@@ -133,7 +133,7 @@ function Na(e, t) {
133
133
  function E(g) {
134
134
  L.current.onTouchMove(g);
135
135
  }
136
- function v(g) {
136
+ function f(g) {
137
137
  L.current.onTouchEnd(g);
138
138
  }
139
139
  function y(g) {
@@ -141,14 +141,14 @@ function Na(e, t) {
141
141
  }
142
142
  return document.addEventListener("touchmove", E, {
143
143
  passive: !1
144
- }), document.addEventListener("touchend", v, {
144
+ }), document.addEventListener("touchend", f, {
145
145
  passive: !0
146
146
  }), e.current.addEventListener("touchstart", x, {
147
147
  passive: !0
148
148
  }), e.current.addEventListener("wheel", y, {
149
149
  passive: !1
150
150
  }), function() {
151
- document.removeEventListener("touchmove", E), document.removeEventListener("touchend", v);
151
+ document.removeEventListener("touchmove", E), document.removeEventListener("touchend", f);
152
152
  };
153
153
  }, []);
154
154
  }
@@ -163,13 +163,13 @@ function Mt(e) {
163
163
  }
164
164
  function Ma(e) {
165
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({});
166
+ var d = o.current;
167
+ t.current.forEach(function(s) {
168
+ d = s(d);
169
+ }), t.current = [], o.current = d, r({});
170
170
  });
171
- function i(s) {
172
- t.current.push(s), l();
171
+ function i(d) {
172
+ t.current.push(d), l();
173
173
  }
174
174
  return [o.current, i];
175
175
  }
@@ -181,8 +181,8 @@ var xt = {
181
181
  right: 0
182
182
  };
183
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() {
184
+ var i = l.tabs, d = l.tabPosition, s = l.rtl, m, b, _;
185
+ return ["top", "bottom"].includes(d) ? (m = "width", b = s ? "right" : "left", _ = Math.abs(a)) : (m = "height", b = "top", _ = -a), Tt(function() {
186
186
  if (!i.length)
187
187
  return [0, 0];
188
188
  for (var R = i.length, O = R, C = 0; C < R; C += 1) {
@@ -200,9 +200,9 @@ function La(e, t, a, n, r, o, l) {
200
200
  }
201
201
  }
202
202
  return h >= O ? [0, 0] : [h, O];
203
- }, [e, t, n, r, o, _, s, i.map(function(R) {
203
+ }, [e, t, n, r, o, _, d, i.map(function(R) {
204
204
  return R.key;
205
- }).join("_"), d]);
205
+ }).join("_"), s]);
206
206
  }
207
207
  function Ct(e) {
208
208
  var t;
@@ -249,14 +249,14 @@ var zt = /* @__PURE__ */ c.forwardRef(function(e, t) {
249
249
  });
250
250
  process.env.NODE_ENV !== "production" && (Fe.displayName = "ExtraContent");
251
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;
252
+ var a = e.prefixCls, n = e.id, r = e.tabs, o = e.locale, l = e.mobile, i = e.more, d = i === void 0 ? {} : i, s = 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 = d.icon, f = 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
253
  function X(w, k) {
254
254
  w.preventDefault(), w.stopPropagation(), b.onEdit("remove", {
255
255
  key: k,
256
256
  event: w
257
257
  });
258
258
  }
259
- var f = /* @__PURE__ */ c.createElement(la, {
259
+ var v = /* @__PURE__ */ c.createElement(la, {
260
260
  onClick: function(k) {
261
261
  var V = k.key, q = k.domEvent;
262
262
  C(V, q), A(!1);
@@ -300,7 +300,7 @@ var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
300
300
  }
301
301
  }
302
302
  }
303
- function de(w) {
303
+ function se(w) {
304
304
  var k = w.which;
305
305
  if (!B) {
306
306
  [pe.DOWN, pe.SPACE, pe.ENTER].includes(k) && (A(!0), w.preventDefault());
@@ -330,32 +330,30 @@ var Da = /* @__PURE__ */ c.forwardRef(function(e, t) {
330
330
  }, [B]);
331
331
  var G = Y({}, R ? "marginRight" : "marginLeft", _);
332
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({
333
+ var Q = J(Y({}, "".concat(g, "-rtl"), R)), fe = l ? null : /* @__PURE__ */ c.createElement(sa, ve({
334
334
  prefixCls: g,
335
- overlay: f,
335
+ overlay: v,
336
336
  visible: r.length ? B : !1,
337
337
  onVisibleChange: A,
338
338
  overlayClassName: J(Q, h),
339
339
  mouseEnterDelay: 0.1,
340
340
  mouseLeaveDelay: 0.1,
341
341
  getPopupContainer: z
342
- }, s), /* @__PURE__ */ c.createElement("button", {
342
+ }, d), /* @__PURE__ */ c.createElement("button", {
343
343
  type: "button",
344
344
  className: "".concat(a, "-nav-more"),
345
345
  style: G,
346
- tabIndex: -1,
347
- "aria-hidden": "true",
348
346
  "aria-haspopup": "listbox",
349
347
  "aria-controls": y,
350
348
  id: "".concat(n, "-more"),
351
349
  "aria-expanded": B,
352
- onKeyDown: de
353
- }, v));
350
+ onKeyDown: se
351
+ }, f));
354
352
  return /* @__PURE__ */ c.createElement("div", {
355
353
  className: J("".concat(a, "-nav-operations"), m),
356
- style: d,
354
+ style: s,
357
355
  ref: t
358
- }, ve, /* @__PURE__ */ c.createElement(zt, {
356
+ }, fe, /* @__PURE__ */ c.createElement(zt, {
359
357
  prefixCls: a,
360
358
  locale: o,
361
359
  editable: b
@@ -369,9 +367,9 @@ const Oa = /* @__PURE__ */ c.memo(Da, function(e, t) {
369
367
  );
370
368
  });
371
369
  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);
370
+ var a = t.prefixCls, n = t.id, r = t.active, o = t.focus, l = t.tab, i = l.key, d = l.label, s = 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, s);
371
+ function f(X) {
372
+ s || z(X);
375
373
  }
376
374
  function y(X) {
377
375
  X.preventDefault(), X.stopPropagation(), C.onEdit("remove", {
@@ -380,17 +378,17 @@ var Ba = function(t) {
380
378
  });
381
379
  }
382
380
  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);
381
+ return b && typeof d == "string" ? /* @__PURE__ */ c.createElement("span", null, d) : d;
382
+ }, [d, b]), S = c.useRef(null);
385
383
  c.useEffect(function() {
386
384
  o && S.current && S.current.focus();
387
385
  }, [o]);
388
386
  var K = /* @__PURE__ */ c.createElement("div", {
389
387
  key: i,
390
388
  "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)),
389
+ className: J(x, Y(Y(Y(Y({}, "".concat(x, "-with-remove"), E), "".concat(x, "-active"), r), "".concat(x, "-disabled"), s), "".concat(x, "-focus"), o)),
392
390
  style: W,
393
- onClick: v
391
+ onClick: f
394
392
  }, /* @__PURE__ */ c.createElement("div", {
395
393
  ref: S,
396
394
  role: "tab",
@@ -398,10 +396,10 @@ var Ba = function(t) {
398
396
  id: n && "".concat(n, "-tab-").concat(i),
399
397
  className: "".concat(x, "-btn"),
400
398
  "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);
399
+ "aria-disabled": s,
400
+ tabIndex: s ? null : r ? 0 : -1,
401
+ onClick: function(v) {
402
+ v.stopPropagation(), f(v);
405
403
  },
406
404
  onKeyDown: P,
407
405
  onMouseDown: B,
@@ -419,40 +417,41 @@ var Ba = function(t) {
419
417
  }
420
418
  }, "Tab ".concat(L, " of ").concat(H)), b && /* @__PURE__ */ c.createElement("span", {
421
419
  className: "".concat(x, "-icon")
422
- }, b), s && g), E && /* @__PURE__ */ c.createElement("button", {
420
+ }, b), d && g), E && /* @__PURE__ */ c.createElement("button", {
423
421
  type: "button",
422
+ role: "tab",
424
423
  "aria-label": O || "remove",
425
424
  tabIndex: r ? 0 : -1,
426
425
  className: "".concat(x, "-remove"),
427
- onClick: function(f) {
428
- f.stopPropagation(), y(f);
426
+ onClick: function(v) {
427
+ v.stopPropagation(), y(v);
429
428
  }
430
429
  }, m || C.removeIcon || "×"));
431
430
  return R ? R(K) : K;
432
431
  }, 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];
432
+ var n = t.offsetWidth, r = t.offsetHeight, o = t.offsetTop, l = t.offsetLeft, i = t.getBoundingClientRect(), d = i.width, s = i.height, m = i.left, b = i.top;
433
+ return Math.abs(d - n) < 1 ? [d, s, m - a.left, b - a.top] : [n, r, l, o];
435
434
  }, Ce = function(t) {
436
435
  var a = t.current || {}, n = a.offsetWidth, r = n === void 0 ? 0 : n, o = a.offsetHeight, l = o === void 0 ? 0 : o;
437
436
  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];
437
+ var i = t.current.getBoundingClientRect(), d = i.width, s = i.height;
438
+ if (Math.abs(d - r) < 1)
439
+ return [d, s];
441
440
  }
442
441
  return [r, l];
443
442
  }, Le = function(t, a) {
444
443
  return t[a ? 0 : 1];
445
444
  }, 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({
445
+ var a = e.className, n = e.style, r = e.id, o = e.animated, l = e.activeKey, i = e.rtl, d = e.extra, s = 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), f = b === "top" || b === "bottom", y = yt(0, function(T, u) {
446
+ f && C && C({
448
447
  direction: T > u ? "left" : "right"
449
448
  });
450
449
  }), g = I(y, 2), S = g[0], K = g[1], X = yt(0, function(T, u) {
451
- !v && C && C({
450
+ !f && C && C({
452
451
  direction: T > u ? "top" : "bottom"
453
452
  });
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);
453
+ }), v = I(X, 2), F = v[0], se = v[1], G = j([0, 0]), Q = I(G, 2), fe = 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], de = $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(fe, f), Ee = Le(q, f), ke = Le(he, f), Je = Le(N, f), et = Math.floor(Be) < Math.floor(Ee + ke), le = et ? Be - Je : Be - ke, Ht = "".concat(p, "-nav-operations-hidden"), me = 0, ge = 0;
454
+ f && i ? (me = 0, ge = Math.max(0, Ee - le)) : (me = Math.min(0, le - Ee), ge = 0);
456
455
  function Ae(T) {
457
456
  return T < me ? me : T > ge ? ge : T;
458
457
  }
@@ -470,7 +469,7 @@ var Ba = function(t) {
470
469
  return _e;
471
470
  });
472
471
  }
473
- return et ? (v ? M(K, T) : M(de, u), je(), He(), !0) : !1;
472
+ return et ? (f ? M(K, T) : M(se, u), je(), He(), !0) : !1;
474
473
  }), ce(function() {
475
474
  return je(), Ie && (We.current = setTimeout(function() {
476
475
  at(0);
@@ -481,7 +480,7 @@ var Ba = function(t) {
481
480
  // Container
482
481
  le,
483
482
  // Transform
484
- v ? S : F,
483
+ f ? S : F,
485
484
  // Tabs
486
485
  Ee,
487
486
  // Add
@@ -499,12 +498,12 @@ var Ba = function(t) {
499
498
  right: 0,
500
499
  top: 0
501
500
  };
502
- if (v) {
501
+ if (f) {
503
502
  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));
503
+ 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)), se(0), K(Ae(M));
505
504
  } else {
506
505
  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));
506
+ u.top < -F ? D = -u.top : u.top + u.height > -F + le && (D = -(u.top + u.height - le)), K(0), se(Ae(D));
508
507
  }
509
508
  }), 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
509
  return !T.disabled;
@@ -514,43 +513,51 @@ var Ba = function(t) {
514
513
  var M = ue.indexOf(ye || l), D = ue.length, ie = (M + u + D) % D, te = ue[ie];
515
514
  Te(te);
516
515
  }, qt = function(u) {
517
- var M = u.code, D = i && v, ie = ue[0], te = ue[ue.length - 1];
516
+ var M = u.code, D = i && f, ie = ue[0], te = ue[ue.length - 1];
518
517
  switch (M) {
518
+ // LEFT
519
519
  case "ArrowLeft": {
520
- v && Se(D ? 1 : -1);
520
+ f && Se(D ? 1 : -1);
521
521
  break;
522
522
  }
523
+ // RIGHT
523
524
  case "ArrowRight": {
524
- v && Se(D ? -1 : 1);
525
+ f && Se(D ? -1 : 1);
525
526
  break;
526
527
  }
528
+ // UP
527
529
  case "ArrowUp": {
528
- u.preventDefault(), v || Se(-1);
530
+ u.preventDefault(), f || Se(-1);
529
531
  break;
530
532
  }
533
+ // DOWN
531
534
  case "ArrowDown": {
532
- u.preventDefault(), v || Se(1);
535
+ u.preventDefault(), f || Se(1);
533
536
  break;
534
537
  }
538
+ // HOME
535
539
  case "Home": {
536
540
  u.preventDefault(), Te(ie);
537
541
  break;
538
542
  }
543
+ // END
539
544
  case "End": {
540
545
  u.preventDefault(), Te(te);
541
546
  break;
542
547
  }
548
+ // Enter & Space
543
549
  case "Enter":
544
550
  case "Space": {
545
551
  u.preventDefault(), O(ye, u);
546
552
  break;
547
553
  }
554
+ // Backspace
548
555
  case "Backspace":
549
556
  case "Delete": {
550
557
  var _e = ue.indexOf(ye), ae = P.find(function(xe) {
551
558
  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", {
559
+ }), Ke = Ye(ae == null ? void 0 : ae.closable, ae == null ? void 0 : ae.closeIcon, s, ae == null ? void 0 : ae.disabled);
560
+ Ke && (u.preventDefault(), u.stopPropagation(), s.onEdit("remove", {
554
561
  key: ye,
555
562
  event: u
556
563
  }), _e === ue.length - 1 ? Se(-1) : Se(1));
@@ -558,7 +565,7 @@ var Ba = function(t) {
558
565
  }
559
566
  }
560
567
  }, Ne = {};
561
- v ? Ne[i ? "marginRight" : "marginLeft"] = _ : Ne.marginTop = _;
568
+ f ? Ne[i ? "marginRight" : "marginLeft"] = _ : Ne.marginTop = _;
562
569
  var ct = P.map(function(T, u) {
563
570
  var M = T.key;
564
571
  return /* @__PURE__ */ c.createElement(Ba, {
@@ -568,7 +575,7 @@ var Ba = function(t) {
568
575
  tab: T,
569
576
  style: u === 0 ? void 0 : Ne,
570
577
  closable: T.closable,
571
- editable: d,
578
+ editable: s,
572
579
  active: M === l,
573
580
  focus: M === ye,
574
581
  renderWrapper: R,
@@ -592,7 +599,7 @@ var Ba = function(t) {
592
599
  lt(!1);
593
600
  }
594
601
  });
595
- }), dt = function() {
602
+ }), st = function() {
596
603
  return Wt(function() {
597
604
  var u, M = /* @__PURE__ */ new Map(), D = (u = L.current) === null || u === void 0 ? void 0 : u.getBoundingClientRect();
598
605
  return P.forEach(function(ie) {
@@ -610,7 +617,7 @@ var Ba = function(t) {
610
617
  });
611
618
  };
612
619
  ce(function() {
613
- dt();
620
+ st();
614
621
  }, [P.map(function(T) {
615
622
  return T.key;
616
623
  }).join("_")]);
@@ -620,27 +627,27 @@ var Ba = function(t) {
620
627
  var D = Ce(E);
621
628
  be(D);
622
629
  var ie = Ce(x);
623
- se(ie);
630
+ de(ie);
624
631
  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({
632
+ Z([te[0] - D[0], te[1] - D[1]]), st();
633
+ }), Yt = P.slice(0, Vt), Qt = P.slice(Kt + 1), dt = [].concat(gt(Yt), gt(Qt)), ut = Re.get(l), Zt = Pa({
627
634
  activeTabOffset: ut,
628
- horizontal: v,
635
+ horizontal: f,
629
636
  indicator: z,
630
637
  rtl: i
631
638
  }), Jt = Zt.style;
632
639
  ce(function() {
633
640
  rt();
634
- }, [l, me, ge, Ct(ut), Ct(Re), v]), ce(function() {
641
+ }, [l, me, ge, Ct(ut), Ct(Re), f]), ce(function() {
635
642
  Me();
636
643
  }, [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, {
644
+ var vt = !!dt.length, Pe = "".concat(p, "-nav-wrap"), Ge, Ve, ft, bt;
645
+ return f ? i ? (Ve = S > 0, Ge = S !== ge) : (Ge = S < 0, Ve = S !== me) : (ft = F < 0, bt = F !== me), /* @__PURE__ */ c.createElement(Xe, {
639
646
  onResize: Me
640
647
  }, /* @__PURE__ */ c.createElement("div", {
641
648
  ref: pa(t, B),
642
649
  role: "tablist",
643
- "aria-orientation": v ? "horizontal" : "vertical",
650
+ "aria-orientation": f ? "horizontal" : "vertical",
644
651
  className: J("".concat(p, "-nav"), a),
645
652
  style: n,
646
653
  onKeyDown: function() {
@@ -649,12 +656,12 @@ var Ba = function(t) {
649
656
  }, /* @__PURE__ */ c.createElement(Fe, {
650
657
  ref: A,
651
658
  position: "left",
652
- extra: s,
659
+ extra: d,
653
660
  prefixCls: p
654
661
  }), /* @__PURE__ */ c.createElement(Xe, {
655
662
  onResize: Me
656
663
  }, /* @__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)),
664
+ className: J(Pe, Y(Y(Y(Y({}, "".concat(Pe, "-ping-left"), Ge), "".concat(Pe, "-ping-right"), Ve), "".concat(Pe, "-ping-top"), ft), "".concat(Pe, "-ping-bottom"), bt)),
658
665
  ref: H
659
666
  }, /* @__PURE__ */ c.createElement(Xe, {
660
667
  onResize: Me
@@ -669,28 +676,28 @@ var Ba = function(t) {
669
676
  ref: E,
670
677
  prefixCls: p,
671
678
  locale: m,
672
- editable: d,
679
+ editable: s,
673
680
  style: ne(ne({}, ct.length === 0 ? void 0 : Ne), {}, {
674
- visibility: ft ? "hidden" : null
681
+ visibility: vt ? "hidden" : null
675
682
  })
676
683
  }), /* @__PURE__ */ c.createElement("div", {
677
684
  className: J("".concat(p, "-ink-bar"), Y({}, "".concat(p, "-ink-bar-animated"), o.inkBar)),
678
685
  style: Jt
679
- }))))), /* @__PURE__ */ c.createElement(Oa, fe({}, e, {
686
+ }))))), /* @__PURE__ */ c.createElement(Oa, ve({}, e, {
680
687
  removeAriaLabel: m == null ? void 0 : m.removeAriaLabel,
681
688
  ref: x,
682
689
  prefixCls: p,
683
- tabs: st,
684
- className: !ft && Ht,
690
+ tabs: dt,
691
+ className: !vt && Ht,
685
692
  tabMoving: !!Ie
686
693
  })), /* @__PURE__ */ c.createElement(Fe, {
687
694
  ref: W,
688
695
  position: "right",
689
- extra: s,
696
+ extra: d,
690
697
  prefixCls: p
691
698
  })));
692
699
  }), 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;
700
+ var a = e.prefixCls, n = e.className, r = e.style, o = e.id, l = e.active, i = e.tabKey, d = e.children;
694
701
  return /* @__PURE__ */ c.createElement("div", {
695
702
  id: o && "".concat(o, "-panel-").concat(i),
696
703
  role: "tabpanel",
@@ -700,7 +707,7 @@ var Ba = function(t) {
700
707
  style: r,
701
708
  className: J(a, l && "".concat(a, "-active"), n),
702
709
  ref: t
703
- }, s);
710
+ }, d);
704
711
  });
705
712
  process.env.NODE_ENV !== "production" && (Qe.displayName = "TabPane");
706
713
  var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
@@ -709,11 +716,11 @@ var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
709
716
  var l = ne(ne({}, n), {}, {
710
717
  // Legacy support. We do not use this actually
711
718
  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
719
+ var d = i.label, s = i.key, m = De(i, Wa);
720
+ return /* @__PURE__ */ c.createElement(Qe, ve({
721
+ tab: d,
722
+ key: s,
723
+ tabKey: s
717
724
  }, m));
718
725
  })
719
726
  });
@@ -723,14 +730,14 @@ var Aa = ["renderTabBar"], Wa = ["label", "key"], Dt = function(t) {
723
730
  };
724
731
  process.env.NODE_ENV !== "production" && (Dt.displayName = "TabNavListWrapper");
725
732
  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");
733
+ var a = t.id, n = t.activeKey, r = t.animated, o = t.tabPosition, l = t.destroyInactiveTabPane, i = c.useContext(Oe), d = i.prefixCls, s = i.tabs, m = r.tabPane, b = "".concat(d, "-tabpane");
727
734
  return /* @__PURE__ */ c.createElement("div", {
728
- className: J("".concat(s, "-content-holder"))
735
+ className: J("".concat(d, "-content-holder"))
729
736
  }, /* @__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(_) {
737
+ className: J("".concat(d, "-content"), "".concat(d, "-content-").concat(o), Y({}, "".concat(d, "-content-animated"), m))
738
+ }, s.map(function(_) {
732
739
  var R = _.key, O = _.forceRender, C = _.style, z = _.className, h = _.destroyInactiveTabPane, p = De(_, Ha), P = R === n;
733
- return /* @__PURE__ */ c.createElement(ga, fe({
740
+ return /* @__PURE__ */ c.createElement(ga, ve({
734
741
  key: R,
735
742
  visible: P,
736
743
  forceRender: O,
@@ -738,7 +745,7 @@ var Ha = ["key", "forceRender", "style", "className", "destroyInactiveTabPane"],
738
745
  leavedClassName: "".concat(b, "-hidden")
739
746
  }, r.tabPaneMotion), function(B, A) {
740
747
  var W = B.style, H = B.className;
741
- return /* @__PURE__ */ c.createElement(Qe, fe({}, p, {
748
+ return /* @__PURE__ */ c.createElement(Qe, ve({}, p, {
742
749
  prefixCls: b,
743
750
  id: a,
744
751
  tabKey: R,
@@ -767,21 +774,21 @@ function Ga() {
767
774
  }, 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
775
  }
769
776
  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() {
777
+ var a = e.id, n = e.prefixCls, r = n === void 0 ? "rc-tabs" : n, o = e.className, l = e.items, i = e.direction, d = e.activeKey, s = 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, f = De(e, Va), y = c.useMemo(function() {
771
778
  return (l || []).filter(function(N) {
772
779
  return N && qe(N) === "object" && "key" in N;
773
780
  });
774
- }, [l]), g = i === "rtl", S = Ga(b), K = j(!1), X = I(K, 2), f = X[0], F = X[1];
781
+ }, [l]), g = i === "rtl", S = Ga(b), K = j(!1), X = I(K, 2), v = X[0], F = X[1];
775
782
  ce(function() {
776
- F(va());
783
+ F(fa());
777
784
  }, []);
778
- var de = mt(function() {
785
+ var se = mt(function() {
779
786
  var N;
780
787
  return (N = y[0]) === null || N === void 0 ? void 0 : N.key;
781
788
  }, {
782
- value: s,
783
- defaultValue: d
784
- }), G = I(de, 2), Q = G[0], ve = G[1], w = j(function() {
789
+ value: d,
790
+ defaultValue: s
791
+ }), G = I(se, 2), Q = G[0], fe = G[1], w = j(function() {
785
792
  return y.findIndex(function(N) {
786
793
  return N.key === Q;
787
794
  });
@@ -791,8 +798,8 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
791
798
  return we.key === Q;
792
799
  });
793
800
  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);
801
+ var de;
802
+ N = Math.max(0, Math.min(V, y.length - 1)), fe((de = y[N]) === null || de === void 0 ? void 0 : de.key);
796
803
  }
797
804
  q(N);
798
805
  }, [y.map(function(N) {
@@ -804,10 +811,10 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
804
811
  ce(function() {
805
812
  a || (he("rc-tabs-".concat(process.env.NODE_ENV === "test" ? "test" : Et)), Et += 1);
806
813
  }, []);
807
- function be(N, se) {
808
- W == null || W(N, se);
814
+ function be(N, de) {
815
+ W == null || W(N, de);
809
816
  var we = N !== Q;
810
- ve(N), we && (A == null || A(N));
817
+ fe(N), we && (A == null || A(N));
811
818
  }
812
819
  var oe = {
813
820
  id: ee,
@@ -815,7 +822,7 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
815
822
  animated: S,
816
823
  tabPosition: R,
817
824
  rtl: g,
818
- mobile: f
825
+ mobile: v
819
826
  }, $e = ne(ne({}, oe), {}, {
820
827
  editable: m,
821
828
  locale: h,
@@ -835,13 +842,13 @@ var Va = ["id", "prefixCls", "className", "items", "direction", "activeKey", "de
835
842
  tabs: y,
836
843
  prefixCls: r
837
844
  }
838
- }, /* @__PURE__ */ c.createElement("div", fe({
845
+ }, /* @__PURE__ */ c.createElement("div", ve({
839
846
  ref: t,
840
847
  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, {
848
+ className: J(r, "".concat(r, "-").concat(R), Y(Y(Y({}, "".concat(r, "-mobile"), v), "".concat(r, "-editable"), m), "".concat(r, "-rtl"), g), o)
849
+ }, f), /* @__PURE__ */ c.createElement(Dt, ve({}, $e, {
843
850
  renderTabBar: B
844
- })), /* @__PURE__ */ c.createElement(ja, fe({
851
+ })), /* @__PURE__ */ c.createElement(ja, ve({
845
852
  destroyInactiveTabPane: P
846
853
  }, oe, {
847
854
  animated: S
@@ -881,7 +888,7 @@ function Fa(e) {
881
888
  return e.filter((t) => t);
882
889
  }
883
890
  function qa(e, t) {
884
- if (process.env.NODE_ENV !== "production" && Pt("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
891
+ if (process.env.NODE_ENV !== "production" && It("Tabs").deprecated(!t, "Tabs.TabPane", "items"), e)
885
892
  return e;
886
893
  const a = wa(t).map((n) => {
887
894
  if (/* @__PURE__ */ c.isValidElement(n)) {
@@ -890,10 +897,10 @@ function qa(e, t) {
890
897
  props: o
891
898
  } = n, l = o || {}, {
892
899
  tab: i
893
- } = l, s = Ua(l, ["tab"]);
900
+ } = l, d = Ua(l, ["tab"]);
894
901
  return Object.assign(Object.assign({
895
902
  key: String(r)
896
- }, s), {
903
+ }, d), {
897
904
  label: i
898
905
  });
899
906
  }
@@ -1049,7 +1056,7 @@ const Ya = (e) => {
1049
1056
  dropdownEdgeChildVerticalPadding: n
1050
1057
  } = e;
1051
1058
  return {
1052
- [`${t}-dropdown`]: Object.assign(Object.assign({}, It(e)), {
1059
+ [`${t}-dropdown`]: Object.assign(Object.assign({}, Pt(e)), {
1053
1060
  position: "absolute",
1054
1061
  top: -9999,
1055
1062
  left: {
@@ -1404,10 +1411,10 @@ const Ya = (e) => {
1404
1411
  tabsHorizontalItemMargin: o,
1405
1412
  horizontalItemPadding: l,
1406
1413
  itemSelectedColor: i,
1407
- itemColor: s
1408
- } = e, d = `${t}-tab`;
1414
+ itemColor: d
1415
+ } = e, s = `${t}-tab`;
1409
1416
  return {
1410
- [d]: {
1417
+ [s]: {
1411
1418
  position: "relative",
1412
1419
  WebkitTouchCallout: "none",
1413
1420
  WebkitTapHighlightColor: "transparent",
@@ -1419,7 +1426,7 @@ const Ya = (e) => {
1419
1426
  border: 0,
1420
1427
  outline: "none",
1421
1428
  cursor: "pointer",
1422
- color: s,
1429
+ color: d,
1423
1430
  "&-btn, &-remove": {
1424
1431
  "&:focus:not(:focus-visible), &:active": {
1425
1432
  color: a
@@ -1428,7 +1435,7 @@ const Ya = (e) => {
1428
1435
  "&-btn": {
1429
1436
  outline: "none",
1430
1437
  transition: `all ${e.motionDurationSlow}`,
1431
- [`${d}-icon:not(:last-child)`]: {
1438
+ [`${s}-icon:not(:last-child)`]: {
1432
1439
  marginInlineEnd: e.marginSM
1433
1440
  }
1434
1441
  },
@@ -1456,21 +1463,21 @@ const Ya = (e) => {
1456
1463
  "&:hover": {
1457
1464
  color: n
1458
1465
  },
1459
- [`&${d}-active ${d}-btn`]: {
1466
+ [`&${s}-active ${s}-btn`]: {
1460
1467
  color: i,
1461
1468
  textShadow: e.tabsActiveTextShadow
1462
1469
  },
1463
- [`&${d}-focus ${d}-btn`]: Object.assign({}, Rt(e)),
1464
- [`&${d}-disabled`]: {
1470
+ [`&${s}-focus ${s}-btn`]: Object.assign({}, Rt(e)),
1471
+ [`&${s}-disabled`]: {
1465
1472
  color: e.colorTextDisabled,
1466
1473
  cursor: "not-allowed"
1467
1474
  },
1468
- [`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]: {
1475
+ [`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]: {
1469
1476
  "&:focus, &:active": {
1470
1477
  color: e.colorTextDisabled
1471
1478
  }
1472
1479
  },
1473
- [`& ${d}-remove ${r}`]: {
1480
+ [`& ${s}-remove ${r}`]: {
1474
1481
  margin: 0
1475
1482
  },
1476
1483
  [`${r}:not(:last-child)`]: {
@@ -1480,7 +1487,7 @@ const Ya = (e) => {
1480
1487
  }
1481
1488
  }
1482
1489
  },
1483
- [`${d} + ${d}`]: {
1490
+ [`${s} + ${s}`]: {
1484
1491
  margin: {
1485
1492
  _skip_check_: !0,
1486
1493
  value: o
@@ -1590,7 +1597,7 @@ const Ya = (e) => {
1590
1597
  colorBorderSecondary: i
1591
1598
  } = e;
1592
1599
  return {
1593
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, It(e)), {
1600
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, Pt(e)), {
1594
1601
  display: "flex",
1595
1602
  // ========================== Navigation ==========================
1596
1603
  [`> ${t}-nav, > div > ${t}-nav`]: {
@@ -1765,7 +1772,7 @@ var ln = function(e, t) {
1765
1772
  return a;
1766
1773
  };
1767
1774
  const kt = (e) => {
1768
- var t, a, n, r, o, l, i, s, d, m, b;
1775
+ var t, a, n, r, o, l, i, d, s, m, b;
1769
1776
  const {
1770
1777
  type: _,
1771
1778
  className: R,
@@ -1782,42 +1789,42 @@ const kt = (e) => {
1782
1789
  children: L,
1783
1790
  items: x,
1784
1791
  animated: E,
1785
- style: v,
1792
+ style: f,
1786
1793
  indicatorSize: y,
1787
1794
  indicator: g
1788
1795
  } = e, S = ln(e, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator"]), {
1789
1796
  prefixCls: K
1790
1797
  } = S, {
1791
1798
  direction: X,
1792
- tabs: f,
1799
+ tabs: v,
1793
1800
  getPrefixCls: F,
1794
- getPopupContainer: de
1795
- } = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [ve, w, k] = on(G, Q);
1801
+ getPopupContainer: se
1802
+ } = c.useContext(Sa), G = F("tabs", K), Q = _a(G), [fe, w, k] = on(G, Q);
1796
1803
  let V;
1797
1804
  _ === "editable-card" && (V = {
1798
1805
  onEdit: (oe, $e) => {
1799
1806
  let {
1800
1807
  key: N,
1801
- event: se
1808
+ event: de
1802
1809
  } = $e;
1803
- z == null || z(oe === "add" ? se : N, oe);
1810
+ z == null || z(oe === "add" ? de : N, oe);
1804
1811
  },
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),
1812
+ removeIcon: (t = B ?? (v == null ? void 0 : v.removeIcon)) !== null && t !== void 0 ? t : /* @__PURE__ */ c.createElement(oa, null),
1813
+ addIcon: (P ?? (v == null ? void 0 : v.addIcon)) || /* @__PURE__ */ c.createElement(Nt, null),
1807
1814
  showAdd: h !== !0
1808
1815
  });
1809
1816
  const q = F();
1810
1817
  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.");
1818
+ const oe = It("Tabs");
1819
+ 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 || v != null && v.indicatorSize), "deprecated", "`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.");
1813
1820
  }
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
1821
+ const Z = xa(C), re = qa(x, L), ee = Xa(G, E), he = Object.assign(Object.assign({}, v == null ? void 0 : v.style), f), be = {
1822
+ align: (a = g == null ? void 0 : g.align) !== null && a !== void 0 ? a : (n = v == null ? void 0 : v.indicator) === null || n === void 0 ? void 0 : n.align,
1823
+ size: (i = (o = (r = g == null ? void 0 : g.size) !== null && r !== void 0 ? r : y) !== null && o !== void 0 ? o : (l = v == null ? void 0 : v.indicator) === null || l === void 0 ? void 0 : l.size) !== null && i !== void 0 ? i : v == null ? void 0 : v.indicatorSize
1817
1824
  };
1818
- return ve(/* @__PURE__ */ c.createElement(Ot, Object.assign({
1825
+ return fe(/* @__PURE__ */ c.createElement(Ot, Object.assign({
1819
1826
  direction: X,
1820
- getPopupContainer: de
1827
+ getPopupContainer: se
1821
1828
  }, S, {
1822
1829
  items: re,
1823
1830
  className: J({
@@ -1825,12 +1832,12 @@ const kt = (e) => {
1825
1832
  [`${G}-card`]: ["card", "editable-card"].includes(_),
1826
1833
  [`${G}-editable-card`]: _ === "editable-card",
1827
1834
  [`${G}-centered`]: p
1828
- }, f == null ? void 0 : f.className, R, O, w, k, Q),
1835
+ }, v == null ? void 0 : v.className, R, O, w, k, Q),
1829
1836
  popupClassName: J(H, w, k, Q),
1830
1837
  style: he,
1831
1838
  editable: V,
1832
1839
  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),
1840
+ icon: (b = (m = (s = (d = v == null ? void 0 : v.more) === null || d === void 0 ? void 0 : d.icon) !== null && s !== void 0 ? s : v == null ? void 0 : v.moreIcon) !== null && m !== void 0 ? m : A) !== null && b !== void 0 ? b : /* @__PURE__ */ c.createElement(da, null),
1834
1841
  transitionName: `${q}-slide-up`
1835
1842
  }, W),
1836
1843
  prefixCls: G,