@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,27 +1,26 @@
1
- import { d as ft } from "./styled-components.browser.esm-CZ1XM4o4.js";
2
- import { j as we, m as Xe, f as Q, C as ce, k as ke, o as Y, s as mt, Q as pt, T as gt, g as be, D as ht, U as bt, W as yt, S as $t, F as _e, A as xt, t as Ct, N as vt, X as Re, Y as wt, h as Ke, l as St, u as Et, z as Ot, H as It } from "./index-BbTV2Cw5.js";
3
- import { a as Se, u as Ft, V as Nt, b as Ye, c as ne, R as jt, F as pe, d as Ue, C as Mt, L as _t, W as Rt, e as Vt, f as Pt } from "./context-DIFtNa4d.js";
1
+ import { d as he, D as mt, V as ft, a as pt, g as _e, s as gt, l as ht, w as bt } from "./index-DCopujxC.js";
2
+ import { a as we, u as yt, V as $t, b as Xe, c as te, R as vt, F as fe, d as ke, C as xt, L as Ct, W as wt, e as St, f as Ot } from "./context-CQfFkrkv.js";
3
+ import { g as Se, m as Ke, f as Q, C as be, j as Ye, n as Y, p as Et, a1 as It, a2 as Ft, l as Nt, S as jt, w as Pe, z as Mt, q as _t, Z as Pt, h as Ue, u as Rt, y as Vt } from "./CSSMotionList-DB0khM6h.js";
4
4
  import * as l from "react";
5
5
  import { createContext as Dt } from "react";
6
- import { e as J, d as Lt } from "./presets-Djh_L_6R.js";
7
- import { i as Ve } from "./motion-CUN72xsH.js";
8
- import { u as Ee } from "./useCSSVarCls-Dau77fzS.js";
6
+ import { c as J, e as Lt } from "./presets-CSXMiWyc.js";
7
+ import { i as Re } from "./motion-C-XpKcZG.js";
8
+ import { u as Oe } from "./useCSSVarCls-YfJY1twF.js";
9
9
  import { g as Tt } from "./collapse-Dtpt-6W_.js";
10
- import { z as Qe, T as Wt } from "./index-DWjq9XYj.js";
11
- import "./index-DLdU7Tpd.js";
12
- import { u as Ht } from "./useSize-DSq4r6zy.js";
10
+ import { z as Qe, T as Wt } from "./index-Y0KgiFZb.js";
11
+ import { u as Ht } from "./useSize-Ct1guc-z.js";
13
12
  import { c as At } from "./reactNode-sKPeiqPL.js";
14
- import { t as zt } from "./toArray-U3Az44CO.js";
13
+ import { t as zt } from "./toArray-D5kvYi_U.js";
15
14
  import { i as qt } from "./isVisible-D3-B85BJ.js";
16
15
  import { o as Bt } from "./omit-B_u6A-HL.js";
17
- import { u as Gt, r as ge } from "./responsiveObserver-dCkpy7Cb.js";
18
- import { I as Xt } from "./AntdIcon-nCNB0J1E.js";
19
- import { u as kt } from "./useLocale-CTfNpakL.js";
20
- import { R as Kt } from "./CheckCircleFilled-BKgizvyl.js";
21
- import { R as Yt } from "./CloseCircleFilled-B9e7yFwo.js";
22
- import { R as Ut } from "./ExclamationCircleFilled-BHELVsTg.js";
23
- import { R as Qt } from "./LoadingOutlined-C1qu6ymP.js";
24
- const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", de = (e, t) => {
16
+ import { r as pe, u as Gt } from "./useBreakpoint-ByLol0R9.js";
17
+ import { I as Xt } from "./AntdIcon-DP6hPDqu.js";
18
+ import { u as kt } from "./useLocale-BQ3mKRyJ.js";
19
+ import { R as Kt } from "./CheckCircleFilled-B-wrMduA.js";
20
+ import { R as Yt } from "./CloseCircleFilled-WEQ0SaSW.js";
21
+ import { R as Ut } from "./ExclamationCircleFilled-x8Sr29BN.js";
22
+ import { R as Qt } from "./LoadingOutlined-DOi5EGOl.js";
23
+ const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", ue = (e, t) => {
25
24
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
26
25
  const r = getComputedStyle(e, null);
27
26
  return De(r.overflowY, t) || De(r.overflowX, t) || ((n) => {
@@ -37,44 +36,44 @@ const Pe = (e) => typeof e == "object" && e != null && e.nodeType === 1, De = (e
37
36
  })(e);
38
37
  }
39
38
  return !1;
40
- }, fe = (e, t, r, n, o, s, a, c) => s < e && a > t || s > e && a < t ? 0 : s <= e && c <= r || a >= t && c >= r ? s - e - n : a > t && c < r || s < e && c > r ? a - t + o : 0, Jt = (e) => {
39
+ }, de = (e, t, r, n, o, s, a, i) => s < e && a > t || s > e && a < t ? 0 : s <= e && i <= r || a >= t && i >= r ? s - e - n : a > t && i < r || s < e && i > r ? a - t + o : 0, Jt = (e) => {
41
40
  const t = e.parentElement;
42
41
  return t ?? (e.getRootNode().host || null);
43
42
  }, Le = (e, t) => {
44
43
  var r, n, o, s;
45
44
  if (typeof document > "u") return [];
46
- const { scrollMode: a, block: c, inline: u, boundary: m, skipOverflowHiddenElements: E } = t, y = typeof m == "function" ? m : (A) => A !== m;
47
- if (!Pe(e)) throw new TypeError("Invalid target");
48
- const O = document.scrollingElement || document.documentElement, R = [];
49
- let w = e;
50
- for (; Pe(w) && y(w); ) {
51
- if (w = Jt(w), w === O) {
52
- R.push(w);
45
+ const { scrollMode: a, block: i, inline: c, boundary: m, skipOverflowHiddenElements: O } = t, $ = typeof m == "function" ? m : (W) => W !== m;
46
+ if (!Ve(e)) throw new TypeError("Invalid target");
47
+ const I = document.scrollingElement || document.documentElement, j = [];
48
+ let C = e;
49
+ for (; Ve(C) && $(C); ) {
50
+ if (C = Jt(C), C === I) {
51
+ j.push(C);
53
52
  break;
54
53
  }
55
- w != null && w === document.body && de(w) && !de(document.documentElement) || w != null && de(w, E) && R.push(w);
54
+ C != null && C === document.body && ue(C) && !ue(document.documentElement) || C != null && ue(C, O) && j.push(C);
56
55
  }
57
- const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, I = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: f, scrollY: j } = window, { height: i, width: h, top: p, right: b, bottom: V, left: C } = e.getBoundingClientRect(), { top: $, right: g, bottom: M, left: H } = ((A) => {
58
- const d = window.getComputedStyle(A);
59
- return { top: parseFloat(d.scrollMarginTop) || 0, right: parseFloat(d.scrollMarginRight) || 0, bottom: parseFloat(d.scrollMarginBottom) || 0, left: parseFloat(d.scrollMarginLeft) || 0 };
56
+ const S = (n = (r = window.visualViewport) == null ? void 0 : r.width) != null ? n : innerWidth, y = (s = (o = window.visualViewport) == null ? void 0 : o.height) != null ? s : innerHeight, { scrollX: d, scrollY: P } = window, { height: u, width: h, top: p, right: v, bottom: F, left: x } = e.getBoundingClientRect(), { top: b, right: g, bottom: V, left: A } = ((W) => {
57
+ const f = window.getComputedStyle(W);
58
+ return { top: parseFloat(f.scrollMarginTop) || 0, right: parseFloat(f.scrollMarginRight) || 0, bottom: parseFloat(f.scrollMarginBottom) || 0, left: parseFloat(f.scrollMarginLeft) || 0 };
60
59
  })(e);
61
- let N = c === "start" || c === "nearest" ? p - $ : c === "end" ? V + M : p + i / 2 - $ + M, x = u === "center" ? C + h / 2 - H + g : u === "end" ? b + g : C - H;
62
- const P = [];
63
- for (let A = 0; A < R.length; A++) {
64
- const d = R[A], { height: z, width: v, top: q, right: T, bottom: G, left: X } = d.getBoundingClientRect();
65
- if (a === "if-needed" && p >= 0 && C >= 0 && V <= I && b <= S && (d === O && !de(d) || p >= q && V <= G && C >= X && b <= T)) return P;
66
- const K = getComputedStyle(d), Z = parseInt(K.borderLeftWidth, 10), ee = parseInt(K.borderTopWidth, 10), L = parseInt(K.borderRightWidth, 10), F = parseInt(K.borderBottomWidth, 10);
67
- let _ = 0, D = 0;
68
- const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - Z - L : 0, k = "offsetHeight" in d ? d.offsetHeight - d.clientHeight - ee - F : 0, te = "offsetWidth" in d ? d.offsetWidth === 0 ? 0 : v / d.offsetWidth : 0, oe = "offsetHeight" in d ? d.offsetHeight === 0 ? 0 : z / d.offsetHeight : 0;
69
- if (O === d) _ = c === "start" ? N : c === "end" ? N - I : c === "nearest" ? fe(j, j + I, I, ee, F, j + N, j + N + i, i) : N - I / 2, D = u === "start" ? x : u === "center" ? x - S / 2 : u === "end" ? x - S : fe(f, f + S, S, Z, L, f + x, f + x + h, h), _ = Math.max(0, _ + j), D = Math.max(0, D + f);
60
+ let D = i === "start" || i === "nearest" ? p - b : i === "end" ? F + V : p + u / 2 - b + V, w = c === "center" ? x + h / 2 - A + g : c === "end" ? v + g : x - A;
61
+ const T = [];
62
+ for (let W = 0; W < j.length; W++) {
63
+ const f = j[W], { height: z, width: E, top: q, right: K, bottom: le, left: X } = f.getBoundingClientRect();
64
+ if (a === "if-needed" && p >= 0 && x >= 0 && F <= y && v <= S && (f === I && !ue(f) || p >= q && F <= le && x >= X && v <= K)) return T;
65
+ const Z = getComputedStyle(f), B = parseInt(Z.borderLeftWidth, 10), ee = parseInt(Z.borderTopWidth, 10), k = parseInt(Z.borderRightWidth, 10), N = parseInt(Z.borderBottomWidth, 10);
66
+ let R = 0, M = 0;
67
+ const _ = "offsetWidth" in f ? f.offsetWidth - f.clientWidth - B - k : 0, H = "offsetHeight" in f ? f.offsetHeight - f.clientHeight - ee - N : 0, G = "offsetWidth" in f ? f.offsetWidth === 0 ? 0 : E / f.offsetWidth : 0, ne = "offsetHeight" in f ? f.offsetHeight === 0 ? 0 : z / f.offsetHeight : 0;
68
+ if (I === f) R = i === "start" ? D : i === "end" ? D - y : i === "nearest" ? de(P, P + y, y, ee, N, P + D, P + D + u, u) : D - y / 2, M = c === "start" ? w : c === "center" ? w - S / 2 : c === "end" ? w - S : de(d, d + S, S, B, k, d + w, d + w + h, h), R = Math.max(0, R + P), M = Math.max(0, M + d);
70
69
  else {
71
- _ = c === "start" ? N - q - ee : c === "end" ? N - G + F + k : c === "nearest" ? fe(q, G, z, ee, F + k, N, N + i, i) : N - (q + z / 2) + k / 2, D = u === "start" ? x - X - Z : u === "center" ? x - (X + v / 2) + B / 2 : u === "end" ? x - T + L + B : fe(X, T, v, Z, L + B, x, x + h, h);
72
- const { scrollLeft: le, scrollTop: W } = d;
73
- _ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)), D = te === 0 ? 0 : Math.max(0, Math.min(le + D / te, d.scrollWidth - v / te + B)), N += W - _, x += le - D;
70
+ R = i === "start" ? D - q - ee : i === "end" ? D - le + N + H : i === "nearest" ? de(q, le, z, ee, N + H, D, D + u, u) : D - (q + z / 2) + H / 2, M = c === "start" ? w - X - B : c === "center" ? w - (X + E / 2) + _ / 2 : c === "end" ? w - K + k + _ : de(X, K, E, B, k + _, w, w + h, h);
71
+ const { scrollLeft: re, scrollTop: L } = f;
72
+ R = ne === 0 ? 0 : Math.max(0, Math.min(L + R / ne, f.scrollHeight - z / ne + H)), M = G === 0 ? 0 : Math.max(0, Math.min(re + M / G, f.scrollWidth - E / G + _)), D += L - R, w += re - M;
74
73
  }
75
- P.push({ el: d, top: _, left: D });
74
+ T.push({ el: f, top: R, left: M });
76
75
  }
77
- return P;
76
+ return T;
78
77
  }, Zt = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
79
78
  function en(e, t) {
80
79
  if (!e.isConnected || !((o) => {
@@ -92,8 +91,8 @@ function en(e, t) {
92
91
  if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(Le(e, t));
93
92
  const n = typeof t == "boolean" || t == null ? void 0 : t.behavior;
94
93
  for (const { el: o, top: s, left: a } of Le(e, Zt(t))) {
95
- const c = s - r.top + r.bottom, u = a - r.left + r.right;
96
- o.scroll({ top: c, left: u, behavior: n });
94
+ const i = s - r.top + r.bottom, c = a - r.left + r.right;
95
+ o.scroll({ top: i, left: c, behavior: n });
97
96
  }
98
97
  }
99
98
  const tn = (e) => {
@@ -206,21 +205,21 @@ const tn = (e) => {
206
205
  return s[`${n}${t}-flex`] = {
207
206
  flex: `var(--${r}${t}-flex)`
208
207
  }, s;
209
- }, ve = (e, t) => rn(e, t), on = (e, t, r) => ({
210
- [`@media (min-width: ${Q(t)})`]: Object.assign({}, ve(e, r))
211
- }), ln = () => ({}), sn = () => ({}), an = we("Grid", tn, ln), cn = (e) => ({
208
+ }, Ce = (e, t) => rn(e, t), on = (e, t, r) => ({
209
+ [`@media (min-width: ${Q(t)})`]: Object.assign({}, Ce(e, r))
210
+ }), ln = () => ({}), sn = () => ({}), an = Se("Grid", tn, ln), cn = (e) => ({
212
211
  xs: e.screenXSMin,
213
212
  sm: e.screenSMMin,
214
213
  md: e.screenMDMin,
215
214
  lg: e.screenLGMin,
216
215
  xl: e.screenXLMin,
217
216
  xxl: e.screenXXLMin
218
- }), un = we("Grid", (e) => {
219
- const t = Xe(e, {
217
+ }), un = Se("Grid", (e) => {
218
+ const t = Ke(e, {
220
219
  gridColumns: 24
221
220
  // Row is divided into 24 parts in Grid
222
221
  }), r = cn(t);
223
- return delete r.xs, [nn(t), ve(t, ""), ve(t, "-xs"), Object.keys(r).map((n) => on(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
222
+ return delete r.xs, [nn(t), Ce(t, ""), Ce(t, "-xs"), Object.keys(r).map((n) => on(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
224
223
  }, sn), Je = /* @__PURE__ */ Dt({});
225
224
  var dn = function(e, t) {
226
225
  var r = {};
@@ -232,57 +231,79 @@ var dn = function(e, t) {
232
231
  function Te(e) {
233
232
  return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
234
233
  }
235
- const fn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ l.forwardRef((e, t) => {
234
+ const mn = ["xs", "sm", "md", "lg", "xl", "xxl"], Ee = /* @__PURE__ */ l.forwardRef((e, t) => {
236
235
  const {
237
236
  getPrefixCls: r,
238
237
  direction: n
239
- } = l.useContext(ce), {
238
+ } = l.useContext(be), {
240
239
  gutter: o,
241
240
  wrap: s
242
241
  } = l.useContext(Je), {
243
242
  prefixCls: a,
244
- span: c,
245
- order: u,
243
+ span: i,
244
+ order: c,
246
245
  offset: m,
247
- push: E,
248
- pull: y,
249
- className: O,
250
- children: R,
251
- flex: w,
246
+ push: O,
247
+ pull: $,
248
+ className: I,
249
+ children: j,
250
+ flex: C,
252
251
  style: S
253
- } = e, I = dn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), f = r("col", a), [j, i, h] = un(f), p = {};
254
- let b = {};
255
- fn.forEach(($) => {
252
+ } = e, y = dn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), d = r("col", a), [P, u, h] = un(d), p = {};
253
+ let v = {};
254
+ mn.forEach((b) => {
256
255
  let g = {};
257
- const M = e[$];
258
- typeof M == "number" ? g.span = M : typeof M == "object" && (g = M || {}), delete I[$], b = Object.assign(Object.assign({}, b), {
259
- [`${f}-${$}-${g.span}`]: g.span !== void 0,
260
- [`${f}-${$}-order-${g.order}`]: g.order || g.order === 0,
261
- [`${f}-${$}-offset-${g.offset}`]: g.offset || g.offset === 0,
262
- [`${f}-${$}-push-${g.push}`]: g.push || g.push === 0,
263
- [`${f}-${$}-pull-${g.pull}`]: g.pull || g.pull === 0,
264
- [`${f}-rtl`]: n === "rtl"
265
- }), g.flex && (b[`${f}-${$}-flex`] = !0, p[`--${f}-${$}-flex`] = Te(g.flex));
256
+ const V = e[b];
257
+ typeof V == "number" ? g.span = V : typeof V == "object" && (g = V || {}), delete y[b], v = Object.assign(Object.assign({}, v), {
258
+ [`${d}-${b}-${g.span}`]: g.span !== void 0,
259
+ [`${d}-${b}-order-${g.order}`]: g.order || g.order === 0,
260
+ [`${d}-${b}-offset-${g.offset}`]: g.offset || g.offset === 0,
261
+ [`${d}-${b}-push-${g.push}`]: g.push || g.push === 0,
262
+ [`${d}-${b}-pull-${g.pull}`]: g.pull || g.pull === 0,
263
+ [`${d}-rtl`]: n === "rtl"
264
+ }), g.flex && (v[`${d}-${b}-flex`] = !0, p[`--${d}-${b}-flex`] = Te(g.flex));
266
265
  });
267
- const V = J(f, {
268
- [`${f}-${c}`]: c !== void 0,
269
- [`${f}-order-${u}`]: u,
270
- [`${f}-offset-${m}`]: m,
271
- [`${f}-push-${E}`]: E,
272
- [`${f}-pull-${y}`]: y
273
- }, O, b, i, h), C = {};
266
+ const F = J(d, {
267
+ [`${d}-${i}`]: i !== void 0,
268
+ [`${d}-order-${c}`]: c,
269
+ [`${d}-offset-${m}`]: m,
270
+ [`${d}-push-${O}`]: O,
271
+ [`${d}-pull-${$}`]: $
272
+ }, I, v, u, h), x = {};
274
273
  if (o && o[0] > 0) {
275
- const $ = o[0] / 2;
276
- C.paddingLeft = $, C.paddingRight = $;
274
+ const b = o[0] / 2;
275
+ x.paddingLeft = b, x.paddingRight = b;
277
276
  }
278
- return w && (C.flex = Te(w), s === !1 && !C.minWidth && (C.minWidth = 0)), j(/* @__PURE__ */ l.createElement("div", Object.assign({}, I, {
279
- style: Object.assign(Object.assign(Object.assign({}, C), S), p),
280
- className: V,
277
+ return C && (x.flex = Te(C), s === !1 && !x.minWidth && (x.minWidth = 0)), P(/* @__PURE__ */ l.createElement("div", Object.assign({}, y, {
278
+ style: Object.assign(Object.assign(Object.assign({}, x), S), p),
279
+ className: F,
281
280
  ref: t
282
- }), R));
281
+ }), j));
283
282
  });
284
- process.env.NODE_ENV !== "production" && (Oe.displayName = "Col");
285
- var mn = function(e, t) {
283
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "Col");
284
+ function fn(e, t) {
285
+ const r = [void 0, void 0], n = Array.isArray(e) ? e : [e, void 0], o = t || {
286
+ xs: !0,
287
+ sm: !0,
288
+ md: !0,
289
+ lg: !0,
290
+ xl: !0,
291
+ xxl: !0
292
+ };
293
+ return n.forEach((s, a) => {
294
+ if (typeof s == "object" && s !== null)
295
+ for (let i = 0; i < pe.length; i++) {
296
+ const c = pe[i];
297
+ if (o[c] && s[c] !== void 0) {
298
+ r[a] = s[c];
299
+ break;
300
+ }
301
+ }
302
+ else
303
+ r[a] = s;
304
+ }), r;
305
+ }
306
+ var pn = function(e, t) {
286
307
  var r = {};
287
308
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
288
309
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
@@ -292,13 +313,13 @@ var mn = function(e, t) {
292
313
  function We(e, t) {
293
314
  const [r, n] = l.useState(typeof e == "string" ? e : ""), o = () => {
294
315
  if (typeof e == "string" && n(e), typeof e == "object")
295
- for (let s = 0; s < ge.length; s++) {
296
- const a = ge[s];
297
- if (!t[a])
316
+ for (let s = 0; s < pe.length; s++) {
317
+ const a = pe[s];
318
+ if (!t || !t[a])
298
319
  continue;
299
- const c = e[a];
300
- if (c !== void 0) {
301
- n(c);
320
+ const i = e[a];
321
+ if (i !== void 0) {
322
+ n(i);
302
323
  return;
303
324
  }
304
325
  }
@@ -314,72 +335,35 @@ const Ze = /* @__PURE__ */ l.forwardRef((e, t) => {
314
335
  align: o,
315
336
  className: s,
316
337
  style: a,
317
- children: c,
318
- gutter: u = 0,
338
+ children: i,
339
+ gutter: c = 0,
319
340
  wrap: m
320
- } = e, E = mn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
321
- getPrefixCls: y,
322
- direction: O
323
- } = l.useContext(ce), [R, w] = l.useState({
324
- xs: !0,
325
- sm: !0,
326
- md: !0,
327
- lg: !0,
328
- xl: !0,
329
- xxl: !0
330
- }), [S, I] = l.useState({
331
- xs: !1,
332
- sm: !1,
333
- md: !1,
334
- lg: !1,
335
- xl: !1,
336
- xxl: !1
337
- }), f = We(o, S), j = We(n, S), i = l.useRef(u), h = Gt();
338
- l.useEffect(() => {
339
- const d = h.subscribe((z) => {
340
- I(z);
341
- const v = i.current || 0;
342
- (!Array.isArray(v) && typeof v == "object" || Array.isArray(v) && (typeof v[0] == "object" || typeof v[1] == "object")) && w(z);
343
- });
344
- return () => h.unsubscribe(d);
345
- }, []);
346
- const p = () => {
347
- const d = [void 0, void 0];
348
- return (Array.isArray(u) ? u : [u, void 0]).forEach((v, q) => {
349
- if (typeof v == "object")
350
- for (let T = 0; T < ge.length; T++) {
351
- const G = ge[T];
352
- if (R[G] && v[G] !== void 0) {
353
- d[q] = v[G];
354
- break;
355
- }
356
- }
357
- else
358
- d[q] = v;
359
- }), d;
360
- }, b = y("row", r), [V, C, $] = an(b), g = p(), M = J(b, {
361
- [`${b}-no-wrap`]: m === !1,
362
- [`${b}-${j}`]: j,
363
- [`${b}-${f}`]: f,
364
- [`${b}-rtl`]: O === "rtl"
365
- }, s, C, $), H = {}, N = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
366
- N && (H.marginLeft = N, H.marginRight = N);
367
- const [x, P] = g;
368
- H.rowGap = P;
369
- const A = l.useMemo(() => ({
370
- gutter: [x, P],
341
+ } = e, O = pn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
342
+ getPrefixCls: $,
343
+ direction: I
344
+ } = l.useContext(be), j = Gt(!0, null), C = We(o, j), S = We(n, j), y = $("row", r), [d, P, u] = an(y), h = fn(c, j), p = J(y, {
345
+ [`${y}-no-wrap`]: m === !1,
346
+ [`${y}-${S}`]: S,
347
+ [`${y}-${C}`]: C,
348
+ [`${y}-rtl`]: I === "rtl"
349
+ }, s, P, u), v = {}, F = h[0] != null && h[0] > 0 ? h[0] / -2 : void 0;
350
+ F && (v.marginLeft = F, v.marginRight = F);
351
+ const [x, b] = h;
352
+ v.rowGap = b;
353
+ const g = l.useMemo(() => ({
354
+ gutter: [x, b],
371
355
  wrap: m
372
- }), [x, P, m]);
373
- return V(/* @__PURE__ */ l.createElement(Je.Provider, {
374
- value: A
375
- }, /* @__PURE__ */ l.createElement("div", Object.assign({}, E, {
376
- className: M,
377
- style: Object.assign(Object.assign({}, H), a),
356
+ }), [x, b, m]);
357
+ return d(/* @__PURE__ */ l.createElement(Je.Provider, {
358
+ value: g
359
+ }, /* @__PURE__ */ l.createElement("div", Object.assign({}, O, {
360
+ className: p,
361
+ style: Object.assign(Object.assign({}, v), a),
378
362
  ref: t
379
- }), c)));
363
+ }), i)));
380
364
  });
381
365
  process.env.NODE_ENV !== "production" && (Ze.displayName = "Row");
382
- function he(e) {
366
+ function ge(e) {
383
367
  const [t, r] = l.useState(e);
384
368
  return l.useEffect(() => {
385
369
  const n = setTimeout(() => {
@@ -390,7 +374,7 @@ function he(e) {
390
374
  };
391
375
  }, [e]), t;
392
376
  }
393
- const pn = (e) => {
377
+ const gn = (e) => {
394
378
  const {
395
379
  componentCls: t
396
380
  } = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
@@ -430,7 +414,7 @@ const pn = (e) => {
430
414
  }
431
415
  }
432
416
  };
433
- }, gn = (e) => ({
417
+ }, hn = (e) => ({
434
418
  legend: {
435
419
  display: "block",
436
420
  width: "100%",
@@ -488,12 +472,12 @@ const pn = (e) => {
488
472
  }
489
473
  }
490
474
  };
491
- }, hn = (e) => {
475
+ }, bn = (e) => {
492
476
  const {
493
477
  componentCls: t
494
478
  } = e;
495
479
  return {
496
- [e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)), gn(e)), {
480
+ [e.componentCls]: Object.assign(Object.assign(Object.assign({}, Ye(e)), hn(e)), {
497
481
  [`${t}-text`]: {
498
482
  display: "inline-block",
499
483
  paddingInlineEnd: e.paddingSM
@@ -505,7 +489,7 @@ const pn = (e) => {
505
489
  "&-large": Object.assign({}, He(e, e.controlHeightLG))
506
490
  })
507
491
  };
508
- }, bn = (e) => {
492
+ }, yn = (e) => {
509
493
  const {
510
494
  formItemCls: t,
511
495
  iconCls: r,
@@ -513,16 +497,16 @@ const pn = (e) => {
513
497
  rootPrefixCls: o,
514
498
  antCls: s,
515
499
  labelRequiredMarkColor: a,
516
- labelColor: c,
517
- labelFontSize: u,
500
+ labelColor: i,
501
+ labelFontSize: c,
518
502
  labelHeight: m,
519
- labelColonMarginInlineStart: E,
520
- labelColonMarginInlineEnd: y,
521
- itemMarginBottom: O
503
+ labelColonMarginInlineStart: O,
504
+ labelColonMarginInlineEnd: $,
505
+ itemMarginBottom: I
522
506
  } = e;
523
507
  return {
524
- [t]: Object.assign(Object.assign({}, ke(e)), {
525
- marginBottom: O,
508
+ [t]: Object.assign(Object.assign({}, Ye(e)), {
509
+ marginBottom: I,
526
510
  verticalAlign: "top",
527
511
  "&-with-help": {
528
512
  transition: "none"
@@ -565,8 +549,8 @@ const pn = (e) => {
565
549
  alignItems: "center",
566
550
  maxWidth: "100%",
567
551
  height: m,
568
- color: c,
569
- fontSize: u,
552
+ color: i,
553
+ fontSize: c,
570
554
  [`> ${r}`]: {
571
555
  fontSize: e.fontSize,
572
556
  verticalAlign: "top"
@@ -604,8 +588,8 @@ const pn = (e) => {
604
588
  content: '":"',
605
589
  position: "relative",
606
590
  marginBlock: 0,
607
- marginInlineStart: E,
608
- marginInlineEnd: y
591
+ marginInlineStart: O,
592
+ marginInlineEnd: $
609
593
  },
610
594
  [`&${t}-no-colon::after`]: {
611
595
  content: '"\\a0"'
@@ -720,7 +704,7 @@ const pn = (e) => {
720
704
  }
721
705
  }
722
706
  };
723
- }, yn = (e) => {
707
+ }, $n = (e) => {
724
708
  const {
725
709
  componentCls: t,
726
710
  formItemCls: r,
@@ -790,7 +774,7 @@ const pn = (e) => {
790
774
  }
791
775
  }
792
776
  };
793
- }, $n = (e) => {
777
+ }, vn = (e) => {
794
778
  const {
795
779
  componentCls: t,
796
780
  formItemCls: r,
@@ -894,21 +878,21 @@ const pn = (e) => {
894
878
  verticalLabelPadding: `0 0 ${e.paddingXS}px`,
895
879
  verticalLabelMargin: 0,
896
880
  inlineItemMarginBottom: 0
897
- }), tt = (e, t) => Xe(e, {
881
+ }), tt = (e, t) => Ke(e, {
898
882
  formItemCls: `${e.componentCls}-item`,
899
883
  rootPrefixCls: t
900
- }), Ie = we("Form", (e, t) => {
884
+ }), Ie = Se("Form", (e, t) => {
901
885
  let {
902
886
  rootPrefixCls: r
903
887
  } = t;
904
888
  const n = tt(e, r);
905
- return [hn(n), bn(n), pn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), yn(n), $n(n), xn(n), Tt(n), Qe];
889
+ return [bn(n), yn(n), gn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), $n(n), vn(n), xn(n), Tt(n), Qe];
906
890
  }, Cn, {
907
891
  // Let From style before the Grid
908
892
  // ref https://github.com/ant-design/ant-design/issues/44386
909
893
  order: -1e3
910
894
  }), ze = [];
911
- function Ce(e, t, r) {
895
+ function xe(e, t, r) {
912
896
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
913
897
  return {
914
898
  key: typeof e == "string" ? e : `${t}-${n}`,
@@ -924,58 +908,57 @@ const nt = (e) => {
924
908
  warnings: o = ze,
925
909
  className: s,
926
910
  fieldId: a,
927
- onVisibleChanged: c
911
+ onVisibleChanged: i
928
912
  } = e;
929
913
  const {
930
- prefixCls: u
931
- } = l.useContext(Se), m = `${u}-item-explain`, E = Ee(u), [y, O, R] = Ie(u, E), w = l.useMemo(() => Ve(u), [u]), S = he(n), I = he(o), f = l.useMemo(() => t != null ? [Ce(t, "help", r)] : [].concat(Y(S.map((h, p) => Ce(h, "error", "error", p))), Y(I.map((h, p) => Ce(h, "warning", "warning", p)))), [t, r, S, I]), j = l.useMemo(() => {
914
+ prefixCls: c
915
+ } = l.useContext(we), m = `${c}-item-explain`, O = Oe(c), [$, I, j] = Ie(c, O), C = l.useMemo(() => Re(c), [c]), S = ge(n), y = ge(o), d = l.useMemo(() => t != null ? [xe(t, "help", r)] : [].concat(Y(S.map((h, p) => xe(h, "error", "error", p))), Y(y.map((h, p) => xe(h, "warning", "warning", p)))), [t, r, S, y]), P = l.useMemo(() => {
932
916
  const h = {};
933
- return f.forEach((p) => {
917
+ return d.forEach((p) => {
934
918
  let {
935
- key: b
919
+ key: v
936
920
  } = p;
937
- h[b] = (h[b] || 0) + 1;
938
- }), f.map((p, b) => Object.assign(Object.assign({}, p), {
939
- key: h[p.key] > 1 ? `${p.key}-fallback-${b}` : p.key
921
+ h[v] = (h[v] || 0) + 1;
922
+ }), d.map((p, v) => Object.assign(Object.assign({}, p), {
923
+ key: h[p.key] > 1 ? `${p.key}-fallback-${v}` : p.key
940
924
  }));
941
- }, [f]), i = {};
942
- return a && (i.id = `${a}_help`), y(/* @__PURE__ */ l.createElement(mt, {
943
- motionDeadline: w.motionDeadline,
944
- motionName: `${u}-show-help`,
945
- visible: !!j.length,
946
- onVisibleChanged: c
925
+ }, [d]), u = {};
926
+ return a && (u.id = `${a}_help`), $(/* @__PURE__ */ l.createElement(Et, {
927
+ motionDeadline: C.motionDeadline,
928
+ motionName: `${c}-show-help`,
929
+ visible: !!P.length,
930
+ onVisibleChanged: i
947
931
  }, (h) => {
948
932
  const {
949
933
  className: p,
950
- style: b
934
+ style: v
951
935
  } = h;
952
- return /* @__PURE__ */ l.createElement("div", Object.assign({}, i, {
953
- className: J(m, p, R, E, s, O),
954
- style: b,
955
- role: "alert"
956
- }), /* @__PURE__ */ l.createElement(pt, Object.assign({
957
- keys: j
958
- }, Ve(u), {
959
- motionName: `${u}-show-help-item`,
936
+ return /* @__PURE__ */ l.createElement("div", Object.assign({}, u, {
937
+ className: J(m, p, j, O, s, I),
938
+ style: v
939
+ }), /* @__PURE__ */ l.createElement(It, Object.assign({
940
+ keys: P
941
+ }, Re(c), {
942
+ motionName: `${c}-show-help-item`,
960
943
  component: !1
961
- }), (V) => {
944
+ }), (F) => {
962
945
  const {
963
- key: C,
964
- error: $,
946
+ key: x,
947
+ error: b,
965
948
  errorStatus: g,
966
- className: M,
967
- style: H
968
- } = V;
949
+ className: V,
950
+ style: A
951
+ } = F;
969
952
  return /* @__PURE__ */ l.createElement("div", {
970
- key: C,
971
- className: J(M, {
953
+ key: x,
954
+ className: J(V, {
972
955
  [`${m}-${g}`]: g
973
956
  }),
974
- style: H
975
- }, $);
957
+ style: A
958
+ }, b);
976
959
  }));
977
960
  }));
978
- }, vn = ["parentNode"], wn = "form_item";
961
+ }, wn = ["parentNode"], Sn = "form_item";
979
962
  function ie(e) {
980
963
  return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
981
964
  }
@@ -983,17 +966,24 @@ function rt(e, t) {
983
966
  if (!e.length)
984
967
  return;
985
968
  const r = e.join("_");
986
- return t ? `${t}_${r}` : vn.includes(r) ? `${wn}_${r}` : r;
969
+ return t ? `${t}_${r}` : wn.includes(r) ? `${Sn}_${r}` : r;
987
970
  }
988
971
  function ot(e, t, r, n, o, s) {
989
972
  let a = n;
990
973
  return s !== void 0 ? a = s : r.validating ? a = "validating" : e.length ? a = "error" : t.length ? a = "warning" : (r.touched || o && r.validated) && (a = "success"), a;
991
974
  }
975
+ var On = function(e, t) {
976
+ var r = {};
977
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
978
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
979
+ t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
980
+ return r;
981
+ };
992
982
  function qe(e) {
993
983
  return ie(e).join("_");
994
984
  }
995
985
  function Be(e, t) {
996
- const r = t.getFieldInstance(e), n = gt(r);
986
+ const r = t.getFieldInstance(e), n = Ft(r);
997
987
  if (n)
998
988
  return n;
999
989
  const o = rt(ie(e), t.__INTERNAL__.name);
@@ -1001,7 +991,7 @@ function Be(e, t) {
1001
991
  return document.getElementById(o);
1002
992
  }
1003
993
  function lt(e) {
1004
- const [t] = Ft(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
994
+ const [t] = yt(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
1005
995
  __INTERNAL__: {
1006
996
  itemRef: (o) => (s) => {
1007
997
  const a = qe(o);
@@ -1010,16 +1000,18 @@ function lt(e) {
1010
1000
  },
1011
1001
  scrollToField: function(o) {
1012
1002
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1013
- const a = Be(o, n);
1014
- a && en(a, Object.assign({
1003
+ const {
1004
+ focus: a
1005
+ } = s, i = On(s, ["focus"]), c = Be(o, n);
1006
+ c && (en(c, Object.assign({
1015
1007
  scrollMode: "if-needed",
1016
1008
  block: "nearest"
1017
- }, s));
1009
+ }, i)), a && n.focusField(o));
1018
1010
  },
1019
1011
  focusField: (o) => {
1020
- var s;
1021
- const a = Be(o, n);
1022
- a && ((s = a.focus) === null || s === void 0 || s.call(a));
1012
+ var s, a;
1013
+ const i = n.getFieldInstance(o);
1014
+ typeof (i == null ? void 0 : i.focus) == "function" ? i.focus() : (a = (s = Be(o, n)) === null || s === void 0 ? void 0 : s.focus) === null || a === void 0 || a.call(s);
1023
1015
  },
1024
1016
  getFieldInstance: (o) => {
1025
1017
  const s = qe(o);
@@ -1029,11 +1021,11 @@ function lt(e) {
1029
1021
  return [n];
1030
1022
  }
1031
1023
  const me = {};
1032
- function Sn(e) {
1024
+ function En(e) {
1033
1025
  let {
1034
1026
  name: t
1035
1027
  } = e;
1036
- const r = be("Form");
1028
+ const r = he("Form");
1037
1029
  l.useEffect(() => {
1038
1030
  if (t)
1039
1031
  return me[t] = (me[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(me[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
@@ -1041,109 +1033,113 @@ function Sn(e) {
1041
1033
  };
1042
1034
  }, [t]);
1043
1035
  }
1044
- var En = function(e, t) {
1036
+ var In = function(e, t) {
1045
1037
  var r = {};
1046
1038
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1047
1039
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1048
1040
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1049
1041
  return r;
1050
1042
  };
1051
- const On = (e, t) => {
1052
- const r = l.useContext(ht), {
1043
+ const Fn = (e, t) => {
1044
+ const r = l.useContext(mt), {
1053
1045
  getPrefixCls: n,
1054
1046
  direction: o,
1055
- form: s
1056
- } = l.useContext(ce), {
1057
- prefixCls: a,
1058
- className: c,
1059
- rootClassName: u,
1060
- size: m,
1061
- disabled: E = r,
1062
- form: y,
1063
- colon: O,
1064
- labelAlign: R,
1065
- labelWrap: w,
1066
- labelCol: S,
1067
- wrapperCol: I,
1068
- hideRequiredMark: f,
1069
- layout: j = "horizontal",
1047
+ requiredMark: s,
1048
+ colon: a,
1070
1049
  scrollToFirstError: i,
1071
- requiredMark: h,
1072
- onFinishFailed: p,
1073
- name: b,
1050
+ className: c,
1051
+ style: m
1052
+ } = Nt("form"), {
1053
+ prefixCls: O,
1054
+ className: $,
1055
+ rootClassName: I,
1056
+ size: j,
1057
+ disabled: C = r,
1058
+ form: S,
1059
+ colon: y,
1060
+ labelAlign: d,
1061
+ labelWrap: P,
1062
+ labelCol: u,
1063
+ wrapperCol: h,
1064
+ hideRequiredMark: p,
1065
+ layout: v = "horizontal",
1066
+ scrollToFirstError: F,
1067
+ requiredMark: x,
1068
+ onFinishFailed: b,
1069
+ name: g,
1074
1070
  style: V,
1075
- feedbackIcons: C,
1076
- variant: $
1077
- } = e, g = En(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), M = Ht(m), H = l.useContext(bt);
1078
- process.env.NODE_ENV !== "production" && Sn(e);
1079
- const N = l.useMemo(() => h !== void 0 ? h : f ? !1 : s && s.requiredMark !== void 0 ? s.requiredMark : !0, [f, h, s]), x = O ?? (s == null ? void 0 : s.colon), P = n("form", a), A = Ee(P), [d, z, v] = Ie(P, A), q = J(P, `${P}-${j}`, {
1080
- [`${P}-hide-required-mark`]: N === !1,
1081
- [`${P}-rtl`]: o === "rtl",
1082
- [`${P}-${M}`]: M
1083
- }, v, A, z, s == null ? void 0 : s.className, c, u), [T] = lt(y), {
1084
- __INTERNAL__: G
1085
- } = T;
1086
- G.name = b;
1087
- const X = l.useMemo(() => ({
1088
- name: b,
1089
- labelAlign: R,
1090
- labelCol: S,
1091
- labelWrap: w,
1092
- wrapperCol: I,
1093
- vertical: j === "vertical",
1094
- colon: x,
1095
- requiredMark: N,
1096
- itemRef: G.itemRef,
1097
- form: T,
1098
- feedbackIcons: C
1099
- }), [b, R, S, I, j, x, N, T, C]), K = l.useRef(null);
1071
+ feedbackIcons: A,
1072
+ variant: D
1073
+ } = e, w = In(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), T = Ht(j), W = l.useContext(ft);
1074
+ process.env.NODE_ENV !== "production" && En(e);
1075
+ const f = l.useMemo(() => x !== void 0 ? x : p ? !1 : s !== void 0 ? s : !0, [p, x, s]), z = y ?? a, E = n("form", O), q = Oe(E), [K, le, X] = Ie(E, q), Z = J(E, `${E}-${v}`, {
1076
+ [`${E}-hide-required-mark`]: f === !1,
1077
+ [`${E}-rtl`]: o === "rtl",
1078
+ [`${E}-${T}`]: T
1079
+ }, X, q, le, c, $, I), [B] = lt(S), {
1080
+ __INTERNAL__: ee
1081
+ } = B;
1082
+ ee.name = g;
1083
+ const k = l.useMemo(() => ({
1084
+ name: g,
1085
+ labelAlign: d,
1086
+ labelCol: u,
1087
+ labelWrap: P,
1088
+ wrapperCol: h,
1089
+ vertical: v === "vertical",
1090
+ colon: z,
1091
+ requiredMark: f,
1092
+ itemRef: ee.itemRef,
1093
+ form: B,
1094
+ feedbackIcons: A
1095
+ }), [g, d, u, h, v, z, f, B, A]), N = l.useRef(null);
1100
1096
  l.useImperativeHandle(t, () => {
1101
- var L;
1102
- return Object.assign(Object.assign({}, T), {
1103
- nativeElement: (L = K.current) === null || L === void 0 ? void 0 : L.nativeElement
1097
+ var _;
1098
+ return Object.assign(Object.assign({}, B), {
1099
+ nativeElement: (_ = N.current) === null || _ === void 0 ? void 0 : _.nativeElement
1104
1100
  });
1105
1101
  });
1106
- const Z = (L, F) => {
1107
- if (L) {
1108
- let _ = {
1102
+ const R = (_, H) => {
1103
+ if (_) {
1104
+ let G = {
1109
1105
  block: "nearest"
1110
1106
  };
1111
- typeof L == "object" && (_ = Object.assign(Object.assign({}, _), L)), T.scrollToField(F, _), _.focus && T.focusField(F);
1107
+ typeof _ == "object" && (G = Object.assign(Object.assign({}, G), _)), B.scrollToField(H, G);
1112
1108
  }
1113
- }, ee = (L) => {
1114
- if (p == null || p(L), L.errorFields.length) {
1115
- const F = L.errorFields[0].name;
1116
- if (i !== void 0) {
1117
- Z(i, F);
1109
+ }, M = (_) => {
1110
+ if (b == null || b(_), _.errorFields.length) {
1111
+ const H = _.errorFields[0].name;
1112
+ if (F !== void 0) {
1113
+ R(F, H);
1118
1114
  return;
1119
1115
  }
1120
- s && s.scrollToFirstError !== void 0 && Z(s.scrollToFirstError, F);
1116
+ i !== void 0 && R(i, H);
1121
1117
  }
1122
1118
  };
1123
- return d(/* @__PURE__ */ l.createElement(Nt.Provider, {
1124
- value: $
1125
- }, /* @__PURE__ */ l.createElement(yt, {
1126
- disabled: E
1127
- }, /* @__PURE__ */ l.createElement($t.Provider, {
1128
- value: M
1129
- }, /* @__PURE__ */ l.createElement(Ye, {
1119
+ return K(/* @__PURE__ */ l.createElement($t.Provider, {
1120
+ value: D
1121
+ }, /* @__PURE__ */ l.createElement(pt, {
1122
+ disabled: C
1123
+ }, /* @__PURE__ */ l.createElement(jt.Provider, {
1124
+ value: T
1125
+ }, /* @__PURE__ */ l.createElement(Xe, {
1130
1126
  // This is not list in API, we pass with spread
1131
- validateMessages: H
1132
- }, /* @__PURE__ */ l.createElement(ne.Provider, {
1133
- value: X
1134
- }, /* @__PURE__ */ l.createElement(jt, Object.assign({
1135
- id: b
1136
- }, g, {
1137
- name: b,
1138
- onFinishFailed: ee,
1139
- form: T,
1140
- ref: K,
1141
- style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), V),
1142
- className: q
1127
+ validateMessages: W
1128
+ }, /* @__PURE__ */ l.createElement(te.Provider, {
1129
+ value: k
1130
+ }, /* @__PURE__ */ l.createElement(vt, Object.assign({
1131
+ id: g
1132
+ }, w, {
1133
+ name: g,
1134
+ onFinishFailed: M,
1135
+ form: B,
1136
+ ref: N,
1137
+ style: Object.assign(Object.assign({}, m), V),
1138
+ className: Z
1143
1139
  }))))))));
1144
- }, st = /* @__PURE__ */ l.forwardRef(On);
1140
+ }, st = /* @__PURE__ */ l.forwardRef(Fn);
1145
1141
  process.env.NODE_ENV !== "production" && (st.displayName = "Form");
1146
- function In(e) {
1142
+ function Nn(e) {
1147
1143
  if (typeof e == "function")
1148
1144
  return e;
1149
1145
  const t = zt(e);
@@ -1154,9 +1150,9 @@ const at = () => {
1154
1150
  status: e,
1155
1151
  errors: t = [],
1156
1152
  warnings: r = []
1157
- } = l.useContext(pe);
1153
+ } = l.useContext(fe);
1158
1154
  if (process.env.NODE_ENV !== "production") {
1159
- const n = be("Form.Item");
1155
+ const n = he("Form.Item");
1160
1156
  process.env.NODE_ENV !== "production" && n(e !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
1161
1157
  }
1162
1158
  return {
@@ -1165,35 +1161,35 @@ const at = () => {
1165
1161
  warnings: r
1166
1162
  };
1167
1163
  };
1168
- at.Context = pe;
1169
- function Fn(e) {
1164
+ at.Context = fe;
1165
+ function jn(e) {
1170
1166
  const [t, r] = l.useState(e), n = l.useRef(null), o = l.useRef([]), s = l.useRef(!1);
1171
1167
  l.useEffect(() => (s.current = !1, () => {
1172
- s.current = !0, _e.cancel(n.current), n.current = null;
1168
+ s.current = !0, Pe.cancel(n.current), n.current = null;
1173
1169
  }), []);
1174
- function a(c) {
1175
- s.current || (n.current === null && (o.current = [], n.current = _e(() => {
1176
- n.current = null, r((u) => {
1177
- let m = u;
1178
- return o.current.forEach((E) => {
1179
- m = E(m);
1170
+ function a(i) {
1171
+ s.current || (n.current === null && (o.current = [], n.current = Pe(() => {
1172
+ n.current = null, r((c) => {
1173
+ let m = c;
1174
+ return o.current.forEach((O) => {
1175
+ m = O(m);
1180
1176
  }), m;
1181
1177
  });
1182
- })), o.current.push(c));
1178
+ })), o.current.push(i));
1183
1179
  }
1184
1180
  return [t, a];
1185
1181
  }
1186
- function Nn() {
1182
+ function Mn() {
1187
1183
  const {
1188
1184
  itemRef: e
1189
- } = l.useContext(ne), t = l.useRef({});
1185
+ } = l.useContext(te), t = l.useRef({});
1190
1186
  function r(n, o) {
1191
- const s = o && typeof o == "object" && xt(o), a = n.join("_");
1192
- return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref = Ct(e(n), s)), t.current.ref;
1187
+ const s = o && typeof o == "object" && Mt(o), a = n.join("_");
1188
+ return (t.current.name !== a || t.current.originRef !== s) && (t.current.name = a, t.current.originRef = s, t.current.ref = _t(e(n), s)), t.current.ref;
1193
1189
  }
1194
1190
  return r;
1195
1191
  }
1196
- const jn = (e) => {
1192
+ const _n = (e) => {
1197
1193
  const {
1198
1194
  formItemCls: t
1199
1195
  } = e;
@@ -1205,21 +1201,21 @@ const jn = (e) => {
1205
1201
  }
1206
1202
  }
1207
1203
  };
1208
- }, Mn = vt(["Form", "item-item"], (e, t) => {
1204
+ }, Pn = Pt(["Form", "item-item"], (e, t) => {
1209
1205
  let {
1210
1206
  rootPrefixCls: r
1211
1207
  } = t;
1212
1208
  const n = tt(e, r);
1213
- return [jn(n)];
1209
+ return [_n(n)];
1214
1210
  });
1215
- var _n = function(e, t) {
1211
+ var Rn = function(e, t) {
1216
1212
  var r = {};
1217
1213
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1218
1214
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1219
1215
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1220
1216
  return r;
1221
1217
  };
1222
- const Rn = 24, Vn = (e) => {
1218
+ const Vn = 24, Dn = (e) => {
1223
1219
  const {
1224
1220
  prefixCls: t,
1225
1221
  status: r,
@@ -1227,84 +1223,90 @@ const Rn = 24, Vn = (e) => {
1227
1223
  wrapperCol: o,
1228
1224
  children: s,
1229
1225
  errors: a,
1230
- warnings: c,
1231
- _internalItemRender: u,
1226
+ warnings: i,
1227
+ _internalItemRender: c,
1232
1228
  extra: m,
1233
- help: E,
1234
- fieldId: y,
1235
- marginBottom: O,
1236
- onErrorVisibleChanged: R,
1237
- label: w
1238
- } = e, S = `${t}-item`, I = l.useContext(ne), f = l.useMemo(() => {
1239
- let x = Object.assign({}, o || I.wrapperCol || {});
1240
- return w === null && !n && !o && I.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((A) => {
1241
- const d = A ? [A] : [], z = Re(I.labelCol, d), v = typeof z == "object" ? z : {}, q = Re(x, d), T = typeof q == "object" ? q : {};
1242
- "span" in v && !("offset" in T) && v.span < Rn && (x = wt(x, [].concat(d, ["offset"]), v.span));
1243
- }), x;
1244
- }, [o, I]), j = J(`${S}-control`, f.className), i = l.useMemo(() => _n(I, ["labelCol", "wrapperCol"]), [I]), h = l.useRef(null), [p, b] = l.useState(0);
1245
- Ke(() => {
1246
- m && h.current ? b(h.current.clientHeight) : b(0);
1229
+ help: O,
1230
+ fieldId: $,
1231
+ marginBottom: I,
1232
+ onErrorVisibleChanged: j,
1233
+ label: C
1234
+ } = e, S = `${t}-item`, y = l.useContext(te), d = l.useMemo(() => {
1235
+ let w = Object.assign({}, o || y.wrapperCol || {});
1236
+ return C === null && !n && !o && y.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((W) => {
1237
+ const f = W ? [W] : [], z = _e(y.labelCol, f), E = typeof z == "object" ? z : {}, q = _e(w, f), K = typeof q == "object" ? q : {};
1238
+ "span" in E && !("offset" in K) && E.span < Vn && (w = gt(w, [].concat(f, ["offset"]), E.span));
1239
+ }), w;
1240
+ }, [o, y]), P = J(`${S}-control`, d.className), u = l.useMemo(() => {
1241
+ const {
1242
+ labelCol: w,
1243
+ wrapperCol: T
1244
+ } = y;
1245
+ return Rn(y, ["labelCol", "wrapperCol"]);
1246
+ }, [y]), h = l.useRef(null), [p, v] = l.useState(0);
1247
+ Ue(() => {
1248
+ m && h.current ? v(h.current.clientHeight) : v(0);
1247
1249
  }, [m]);
1248
- const V = /* @__PURE__ */ l.createElement("div", {
1250
+ const F = /* @__PURE__ */ l.createElement("div", {
1249
1251
  className: `${S}-control-input`
1250
1252
  }, /* @__PURE__ */ l.createElement("div", {
1251
1253
  className: `${S}-control-input-content`
1252
- }, s)), C = l.useMemo(() => ({
1254
+ }, s)), x = l.useMemo(() => ({
1253
1255
  prefixCls: t,
1254
1256
  status: r
1255
- }), [t, r]), $ = O !== null || a.length || c.length ? /* @__PURE__ */ l.createElement(Se.Provider, {
1256
- value: C
1257
+ }), [t, r]), b = I !== null || a.length || i.length ? /* @__PURE__ */ l.createElement(we.Provider, {
1258
+ value: x
1257
1259
  }, /* @__PURE__ */ l.createElement(nt, {
1258
- fieldId: y,
1260
+ fieldId: $,
1259
1261
  errors: a,
1260
- warnings: c,
1261
- help: E,
1262
+ warnings: i,
1263
+ help: O,
1262
1264
  helpStatus: r,
1263
1265
  className: `${S}-explain-connected`,
1264
- onVisibleChanged: R
1266
+ onVisibleChanged: j
1265
1267
  })) : null, g = {};
1266
- y && (g.id = `${y}_extra`);
1267
- const M = m ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
1268
+ $ && (g.id = `${$}_extra`);
1269
+ const V = m ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
1268
1270
  className: `${S}-extra`,
1269
1271
  ref: h
1270
- }), m) : null, H = $ || M ? /* @__PURE__ */ l.createElement("div", {
1272
+ }), m) : null, A = b || V ? /* @__PURE__ */ l.createElement("div", {
1271
1273
  className: `${S}-additional`,
1272
- style: O ? {
1273
- minHeight: O + p
1274
+ style: I ? {
1275
+ minHeight: I + p
1274
1276
  } : {}
1275
- }, $, M) : null, N = u && u.mark === "pro_table_render" && u.render ? u.render(e, {
1276
- input: V,
1277
- errorList: $,
1278
- extra: M
1279
- }) : /* @__PURE__ */ l.createElement(l.Fragment, null, V, H);
1280
- return /* @__PURE__ */ l.createElement(ne.Provider, {
1281
- value: i
1282
- }, /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
1283
- className: j
1284
- }), N), /* @__PURE__ */ l.createElement(Mn, {
1277
+ }, b, V) : null, D = c && c.mark === "pro_table_render" && c.render ? c.render(e, {
1278
+ input: F,
1279
+ errorList: b,
1280
+ extra: V
1281
+ }) : /* @__PURE__ */ l.createElement(l.Fragment, null, F, A);
1282
+ return /* @__PURE__ */ l.createElement(te.Provider, {
1283
+ value: u
1284
+ }, /* @__PURE__ */ l.createElement(Ee, Object.assign({}, d, {
1285
+ className: P
1286
+ }), D), /* @__PURE__ */ l.createElement(Pn, {
1285
1287
  prefixCls: t
1286
1288
  }));
1287
1289
  };
1288
- var Pn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, Dn = function(t, r) {
1290
+ var Ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "question-circle", theme: "outlined" }, Tn = function(t, r) {
1289
1291
  return /* @__PURE__ */ l.createElement(Xt, Lt({}, t, {
1290
1292
  ref: r,
1291
- icon: Pn
1293
+ icon: Ln
1292
1294
  }));
1293
- }, it = /* @__PURE__ */ l.forwardRef(Dn);
1295
+ }, it = /* @__PURE__ */ l.forwardRef(Tn);
1294
1296
  process.env.NODE_ENV !== "production" && (it.displayName = "QuestionCircleOutlined");
1295
- var Ln = function(e, t) {
1297
+ var Wn = function(e, t) {
1296
1298
  var r = {};
1297
1299
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1298
1300
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1299
1301
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1300
1302
  return r;
1301
1303
  };
1302
- function Tn(e) {
1304
+ function Hn(e) {
1303
1305
  return e ? typeof e == "object" && !/* @__PURE__ */ l.isValidElement(e) ? e : {
1304
1306
  title: e
1305
1307
  } : null;
1306
1308
  }
1307
- const Wn = (e) => {
1309
+ const An = (e) => {
1308
1310
  let {
1309
1311
  prefixCls: t,
1310
1312
  label: r,
@@ -1312,60 +1314,60 @@ const Wn = (e) => {
1312
1314
  labelCol: o,
1313
1315
  labelAlign: s,
1314
1316
  colon: a,
1315
- required: c,
1316
- requiredMark: u,
1317
+ required: i,
1318
+ requiredMark: c,
1317
1319
  tooltip: m,
1318
- vertical: E
1320
+ vertical: O
1319
1321
  } = e;
1320
- var y;
1321
- const [O] = kt("Form"), {
1322
- labelAlign: R,
1323
- labelCol: w,
1322
+ var $;
1323
+ const [I] = kt("Form"), {
1324
+ labelAlign: j,
1325
+ labelCol: C,
1324
1326
  labelWrap: S,
1325
- colon: I
1326
- } = l.useContext(ne);
1327
+ colon: y
1328
+ } = l.useContext(te);
1327
1329
  if (!r)
1328
1330
  return null;
1329
- const f = o || w || {}, j = s || R, i = `${t}-item-label`, h = J(i, j === "left" && `${i}-left`, f.className, {
1330
- [`${i}-wrap`]: !!S
1331
+ const d = o || C || {}, P = s || j, u = `${t}-item-label`, h = J(u, P === "left" && `${u}-left`, d.className, {
1332
+ [`${u}-wrap`]: !!S
1331
1333
  });
1332
1334
  let p = r;
1333
- const b = a === !0 || I !== !1 && a !== !1;
1334
- b && !E && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
1335
- const C = Tn(m);
1336
- if (C) {
1335
+ const v = a === !0 || y !== !1 && a !== !1;
1336
+ v && !O && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
1337
+ const x = Hn(m);
1338
+ if (x) {
1337
1339
  const {
1338
- icon: H = /* @__PURE__ */ l.createElement(it, null)
1339
- } = C, N = Ln(C, ["icon"]), x = /* @__PURE__ */ l.createElement(Wt, Object.assign({}, N), /* @__PURE__ */ l.cloneElement(H, {
1340
+ icon: A = /* @__PURE__ */ l.createElement(it, null)
1341
+ } = x, D = Wn(x, ["icon"]), w = /* @__PURE__ */ l.createElement(Wt, Object.assign({}, D), /* @__PURE__ */ l.cloneElement(A, {
1340
1342
  className: `${t}-item-tooltip`,
1341
1343
  title: "",
1342
- onClick: (P) => {
1343
- P.preventDefault();
1344
+ onClick: (T) => {
1345
+ T.preventDefault();
1344
1346
  },
1345
1347
  tabIndex: null
1346
1348
  }));
1347
- p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, x);
1349
+ p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, w);
1348
1350
  }
1349
- const $ = u === "optional", g = typeof u == "function";
1350
- g ? p = u(p, {
1351
- required: !!c
1352
- }) : $ && !c && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
1351
+ const b = c === "optional", g = typeof c == "function";
1352
+ g ? p = c(p, {
1353
+ required: !!i
1354
+ }) : b && !i && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
1353
1355
  className: `${t}-item-optional`,
1354
1356
  title: ""
1355
- }, (O == null ? void 0 : O.optional) || ((y = St.Form) === null || y === void 0 ? void 0 : y.optional))));
1356
- const M = J({
1357
- [`${t}-item-required`]: c,
1358
- [`${t}-item-required-mark-optional`]: $ || g,
1359
- [`${t}-item-no-colon`]: !b
1357
+ }, (I == null ? void 0 : I.optional) || (($ = ht.Form) === null || $ === void 0 ? void 0 : $.optional))));
1358
+ const V = J({
1359
+ [`${t}-item-required`]: i,
1360
+ [`${t}-item-required-mark-optional`]: b || g,
1361
+ [`${t}-item-no-colon`]: !v
1360
1362
  });
1361
- return /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
1363
+ return /* @__PURE__ */ l.createElement(Ee, Object.assign({}, d, {
1362
1364
  className: h
1363
1365
  }), /* @__PURE__ */ l.createElement("label", {
1364
1366
  htmlFor: n,
1365
- className: M,
1367
+ className: V,
1366
1368
  title: typeof r == "string" ? r : ""
1367
1369
  }, p));
1368
- }, Hn = {
1370
+ }, zn = {
1369
1371
  success: Kt,
1370
1372
  warning: Ut,
1371
1373
  error: Yt,
@@ -1379,51 +1381,51 @@ function ct(e) {
1379
1381
  hasFeedback: o,
1380
1382
  validateStatus: s,
1381
1383
  prefixCls: a,
1382
- meta: c,
1383
- noStyle: u
1384
+ meta: i,
1385
+ noStyle: c
1384
1386
  } = e;
1385
1387
  const m = `${a}-item`, {
1386
- feedbackIcons: E
1387
- } = l.useContext(ne), y = ot(r, n, c, null, !!o, s), {
1388
- isFormItemInput: O,
1389
- status: R,
1390
- hasFeedback: w,
1388
+ feedbackIcons: O
1389
+ } = l.useContext(te), $ = ot(r, n, i, null, !!o, s), {
1390
+ isFormItemInput: I,
1391
+ status: j,
1392
+ hasFeedback: C,
1391
1393
  feedbackIcon: S
1392
- } = l.useContext(pe), I = l.useMemo(() => {
1393
- var f;
1394
- let j;
1394
+ } = l.useContext(fe), y = l.useMemo(() => {
1395
+ var d;
1396
+ let P;
1395
1397
  if (o) {
1396
- const h = o !== !0 && o.icons || E, p = y && ((f = h == null ? void 0 : h({
1397
- status: y,
1398
+ const h = o !== !0 && o.icons || O, p = $ && ((d = h == null ? void 0 : h({
1399
+ status: $,
1398
1400
  errors: r,
1399
1401
  warnings: n
1400
- })) === null || f === void 0 ? void 0 : f[y]), b = y && Hn[y];
1401
- j = p !== !1 && b ? /* @__PURE__ */ l.createElement("span", {
1402
- className: J(`${m}-feedback-icon`, `${m}-feedback-icon-${y}`)
1403
- }, p || /* @__PURE__ */ l.createElement(b, null)) : null;
1402
+ })) === null || d === void 0 ? void 0 : d[$]), v = $ && zn[$];
1403
+ P = p !== !1 && v ? /* @__PURE__ */ l.createElement("span", {
1404
+ className: J(`${m}-feedback-icon`, `${m}-feedback-icon-${$}`)
1405
+ }, p || /* @__PURE__ */ l.createElement(v, null)) : null;
1404
1406
  }
1405
- const i = {
1406
- status: y || "",
1407
+ const u = {
1408
+ status: $ || "",
1407
1409
  errors: r,
1408
1410
  warnings: n,
1409
1411
  hasFeedback: !!o,
1410
- feedbackIcon: j,
1412
+ feedbackIcon: P,
1411
1413
  isFormItemInput: !0
1412
1414
  };
1413
- return u && (i.status = (y ?? R) || "", i.isFormItemInput = O, i.hasFeedback = !!(o ?? w), i.feedbackIcon = o !== void 0 ? i.feedbackIcon : S), i;
1414
- }, [y, o, u, O, R]);
1415
- return /* @__PURE__ */ l.createElement(pe.Provider, {
1416
- value: I
1415
+ return c && (u.status = ($ ?? j) || "", u.isFormItemInput = I, u.hasFeedback = !!(o ?? C), u.feedbackIcon = o !== void 0 ? u.feedbackIcon : S), u;
1416
+ }, [$, o, c, I, j]);
1417
+ return /* @__PURE__ */ l.createElement(fe.Provider, {
1418
+ value: y
1417
1419
  }, t);
1418
1420
  }
1419
- var An = function(e, t) {
1421
+ var qn = function(e, t) {
1420
1422
  var r = {};
1421
1423
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1422
1424
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1423
1425
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1424
1426
  return r;
1425
1427
  };
1426
- function zn(e) {
1428
+ function Bn(e) {
1427
1429
  const {
1428
1430
  prefixCls: t,
1429
1431
  className: r,
@@ -1431,52 +1433,52 @@ function zn(e) {
1431
1433
  style: o,
1432
1434
  help: s,
1433
1435
  errors: a,
1434
- warnings: c,
1435
- validateStatus: u,
1436
+ warnings: i,
1437
+ validateStatus: c,
1436
1438
  meta: m,
1437
- hasFeedback: E,
1438
- hidden: y,
1439
- children: O,
1440
- fieldId: R,
1441
- required: w,
1439
+ hasFeedback: O,
1440
+ hidden: $,
1441
+ children: I,
1442
+ fieldId: j,
1443
+ required: C,
1442
1444
  isRequired: S,
1443
- onSubItemMetaChange: I,
1444
- layout: f
1445
- } = e, j = An(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), i = `${t}-item`, {
1445
+ onSubItemMetaChange: y,
1446
+ layout: d
1447
+ } = e, P = qn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), u = `${t}-item`, {
1446
1448
  requiredMark: h,
1447
1449
  vertical: p
1448
- } = l.useContext(ne), b = p || f === "vertical", V = l.useRef(null), C = he(a), $ = he(c), g = s != null, M = !!(g || a.length || c.length), H = !!V.current && qt(V.current), [N, x] = l.useState(null);
1449
- Ke(() => {
1450
- if (M && V.current) {
1451
- const v = getComputedStyle(V.current);
1452
- x(parseInt(v.marginBottom, 10));
1450
+ } = l.useContext(te), v = p || d === "vertical", F = l.useRef(null), x = ge(a), b = ge(i), g = s != null, V = !!(g || a.length || i.length), A = !!F.current && qt(F.current), [D, w] = l.useState(null);
1451
+ Ue(() => {
1452
+ if (V && F.current) {
1453
+ const E = getComputedStyle(F.current);
1454
+ w(parseInt(E.marginBottom, 10));
1453
1455
  }
1454
- }, [M, H]);
1455
- const P = (v) => {
1456
- v || x(null);
1457
- }, d = function() {
1458
- let v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1459
- const q = v ? C : m.errors, T = v ? $ : m.warnings;
1460
- return ot(q, T, m, "", !!E, u);
1461
- }(), z = J(i, r, n, {
1462
- [`${i}-with-help`]: g || C.length || $.length,
1456
+ }, [V, A]);
1457
+ const T = (E) => {
1458
+ E || w(null);
1459
+ }, f = function() {
1460
+ let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1461
+ const q = E ? x : m.errors, K = E ? b : m.warnings;
1462
+ return ot(q, K, m, "", !!O, c);
1463
+ }(), z = J(u, r, n, {
1464
+ [`${u}-with-help`]: g || x.length || b.length,
1463
1465
  // Status
1464
- [`${i}-has-feedback`]: d && E,
1465
- [`${i}-has-success`]: d === "success",
1466
- [`${i}-has-warning`]: d === "warning",
1467
- [`${i}-has-error`]: d === "error",
1468
- [`${i}-is-validating`]: d === "validating",
1469
- [`${i}-hidden`]: y,
1466
+ [`${u}-has-feedback`]: f && O,
1467
+ [`${u}-has-success`]: f === "success",
1468
+ [`${u}-has-warning`]: f === "warning",
1469
+ [`${u}-has-error`]: f === "error",
1470
+ [`${u}-is-validating`]: f === "validating",
1471
+ [`${u}-hidden`]: $,
1470
1472
  // Layout
1471
- [`${i}-${f}`]: f
1473
+ [`${u}-${d}`]: d
1472
1474
  });
1473
1475
  return /* @__PURE__ */ l.createElement("div", {
1474
1476
  className: z,
1475
1477
  style: o,
1476
- ref: V
1478
+ ref: F
1477
1479
  }, /* @__PURE__ */ l.createElement(Ze, Object.assign({
1478
- className: `${i}-row`
1479
- }, Bt(j, [
1480
+ className: `${u}-row`
1481
+ }, Bt(P, [
1480
1482
  "_internalItemRender",
1481
1483
  "colon",
1482
1484
  "dependencies",
@@ -1508,52 +1510,52 @@ function zn(e) {
1508
1510
  "valuePropName",
1509
1511
  "wrapperCol",
1510
1512
  "validateDebounce"
1511
- ])), /* @__PURE__ */ l.createElement(Wn, Object.assign({
1512
- htmlFor: R
1513
+ ])), /* @__PURE__ */ l.createElement(An, Object.assign({
1514
+ htmlFor: j
1513
1515
  }, e, {
1514
1516
  requiredMark: h,
1515
- required: w ?? S,
1517
+ required: C ?? S,
1516
1518
  prefixCls: t,
1517
- vertical: b
1518
- })), /* @__PURE__ */ l.createElement(Vn, Object.assign({}, e, m, {
1519
- errors: C,
1520
- warnings: $,
1519
+ vertical: v
1520
+ })), /* @__PURE__ */ l.createElement(Dn, Object.assign({}, e, m, {
1521
+ errors: x,
1522
+ warnings: b,
1521
1523
  prefixCls: t,
1522
- status: d,
1524
+ status: f,
1523
1525
  help: s,
1524
- marginBottom: N,
1525
- onErrorVisibleChanged: P
1526
- }), /* @__PURE__ */ l.createElement(Ue.Provider, {
1527
- value: I
1526
+ marginBottom: D,
1527
+ onErrorVisibleChanged: T
1528
+ }), /* @__PURE__ */ l.createElement(ke.Provider, {
1529
+ value: y
1528
1530
  }, /* @__PURE__ */ l.createElement(ct, {
1529
1531
  prefixCls: t,
1530
1532
  meta: m,
1531
1533
  errors: m.errors,
1532
1534
  warnings: m.warnings,
1533
- hasFeedback: E,
1535
+ hasFeedback: O,
1534
1536
  // Already calculated
1535
- validateStatus: d
1536
- }, O)))), !!N && /* @__PURE__ */ l.createElement("div", {
1537
- className: `${i}-margin-offset`,
1537
+ validateStatus: f
1538
+ }, I)))), !!D && /* @__PURE__ */ l.createElement("div", {
1539
+ className: `${u}-margin-offset`,
1538
1540
  style: {
1539
- marginBottom: -N
1541
+ marginBottom: -D
1540
1542
  }
1541
1543
  }));
1542
1544
  }
1543
- const qn = "__SPLIT__";
1544
- function Bn(e, t) {
1545
+ const Gn = "__SPLIT__";
1546
+ function Xn(e, t) {
1545
1547
  const r = Object.keys(e), n = Object.keys(t);
1546
1548
  return r.length === n.length && r.every((o) => {
1547
1549
  const s = e[o], a = t[o];
1548
1550
  return s === a || typeof s == "function" || typeof a == "function";
1549
1551
  });
1550
1552
  }
1551
- const Gn = /* @__PURE__ */ l.memo((e) => {
1553
+ const kn = /* @__PURE__ */ l.memo((e) => {
1552
1554
  let {
1553
1555
  children: t
1554
1556
  } = e;
1555
1557
  return t;
1556
- }, (e, t) => Bn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
1558
+ }, (e, t) => Xn(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
1557
1559
  function Ge() {
1558
1560
  return {
1559
1561
  errors: [],
@@ -1564,7 +1566,7 @@ function Ge() {
1564
1566
  validated: !1
1565
1567
  };
1566
1568
  }
1567
- function Xn(e) {
1569
+ function Kn(e) {
1568
1570
  const {
1569
1571
  name: t,
1570
1572
  noStyle: r,
@@ -1572,181 +1574,172 @@ function Xn(e) {
1572
1574
  dependencies: o,
1573
1575
  prefixCls: s,
1574
1576
  shouldUpdate: a,
1575
- rules: c,
1576
- children: u,
1577
+ rules: i,
1578
+ children: c,
1577
1579
  required: m,
1578
- label: E,
1579
- messageVariables: y,
1580
- trigger: O = "onChange",
1581
- validateTrigger: R,
1582
- hidden: w,
1580
+ label: O,
1581
+ messageVariables: $,
1582
+ trigger: I = "onChange",
1583
+ validateTrigger: j,
1584
+ hidden: C,
1583
1585
  help: S,
1584
- layout: I
1586
+ layout: y
1585
1587
  } = e, {
1586
- getPrefixCls: f
1587
- } = l.useContext(ce), {
1588
- name: j
1589
- } = l.useContext(ne), i = In(u), h = typeof i == "function", p = l.useContext(Ue), {
1590
- validateTrigger: b
1591
- } = l.useContext(Mt), V = R !== void 0 ? R : b, C = t != null, $ = f("form", s), g = Ee($), [M, H, N] = Ie($, g), x = be("Form.Item");
1592
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && x(t !== null, "usage", "`null` is passed as `name` property");
1593
- const P = l.useContext(_t), A = l.useRef(null), [d, z] = Fn({}), [v, q] = Et(() => Ge()), T = (F) => {
1594
- const _ = P == null ? void 0 : P.getKey(F.name);
1595
- if (q(F.destroy ? Ge() : F, !0), r && S !== !1 && p) {
1596
- let D = F.name;
1597
- if (F.destroy)
1598
- D = A.current || D;
1599
- else if (_ !== void 0) {
1600
- const [B, k] = _;
1601
- D = [B].concat(Y(k)), A.current = D;
1588
+ getPrefixCls: d
1589
+ } = l.useContext(be), {
1590
+ name: P
1591
+ } = l.useContext(te), u = Nn(c), h = typeof u == "function", p = l.useContext(ke), {
1592
+ validateTrigger: v
1593
+ } = l.useContext(xt), F = j !== void 0 ? j : v, x = t != null, b = d("form", s), g = Oe(b), [V, A, D] = Ie(b, g), w = he("Form.Item");
1594
+ process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && w(t !== null, "usage", "`null` is passed as `name` property");
1595
+ const T = l.useContext(Ct), W = l.useRef(null), [f, z] = jn({}), [E, q] = Rt(() => Ge()), K = (N) => {
1596
+ const R = T == null ? void 0 : T.getKey(N.name);
1597
+ if (q(N.destroy ? Ge() : N, !0), r && S !== !1 && p) {
1598
+ let M = N.name;
1599
+ if (N.destroy)
1600
+ M = W.current || M;
1601
+ else if (R !== void 0) {
1602
+ const [_, H] = R;
1603
+ M = [_].concat(Y(H)), W.current = M;
1602
1604
  }
1603
- p(F, D);
1605
+ p(N, M);
1604
1606
  }
1605
- }, G = (F, _) => {
1606
- z((D) => {
1607
- const B = Object.assign({}, D), te = [].concat(Y(F.name.slice(0, -1)), Y(_)).join(qn);
1608
- return F.destroy ? delete B[te] : B[te] = F, B;
1607
+ }, le = (N, R) => {
1608
+ z((M) => {
1609
+ const _ = Object.assign({}, M), G = [].concat(Y(N.name.slice(0, -1)), Y(R)).join(Gn);
1610
+ return N.destroy ? delete _[G] : _[G] = N, _;
1609
1611
  });
1610
- }, [X, K] = l.useMemo(() => {
1611
- const F = Y(v.errors), _ = Y(v.warnings);
1612
- return Object.values(d).forEach((D) => {
1613
- F.push.apply(F, Y(D.errors || [])), _.push.apply(_, Y(D.warnings || []));
1614
- }), [F, _];
1615
- }, [d, v.errors, v.warnings]), Z = Nn();
1616
- function ee(F, _, D) {
1617
- return r && !w ? /* @__PURE__ */ l.createElement(ct, {
1618
- prefixCls: $,
1612
+ }, [X, Z] = l.useMemo(() => {
1613
+ const N = Y(E.errors), R = Y(E.warnings);
1614
+ return Object.values(f).forEach((M) => {
1615
+ N.push.apply(N, Y(M.errors || [])), R.push.apply(R, Y(M.warnings || []));
1616
+ }), [N, R];
1617
+ }, [f, E.errors, E.warnings]), B = Mn();
1618
+ function ee(N, R, M) {
1619
+ return r && !C ? /* @__PURE__ */ l.createElement(ct, {
1620
+ prefixCls: b,
1619
1621
  hasFeedback: e.hasFeedback,
1620
1622
  validateStatus: e.validateStatus,
1621
- meta: v,
1623
+ meta: E,
1622
1624
  errors: X,
1623
- warnings: K,
1625
+ warnings: Z,
1624
1626
  noStyle: !0
1625
- }, F) : /* @__PURE__ */ l.createElement(zn, Object.assign({
1627
+ }, N) : /* @__PURE__ */ l.createElement(Bn, Object.assign({
1626
1628
  key: "row"
1627
1629
  }, e, {
1628
- className: J(n, N, g, H),
1629
- prefixCls: $,
1630
- fieldId: _,
1631
- isRequired: D,
1630
+ className: J(n, D, g, A),
1631
+ prefixCls: b,
1632
+ fieldId: R,
1633
+ isRequired: M,
1632
1634
  errors: X,
1633
- warnings: K,
1634
- meta: v,
1635
- onSubItemMetaChange: G,
1636
- layout: I
1637
- }), F);
1635
+ warnings: Z,
1636
+ meta: E,
1637
+ onSubItemMetaChange: le,
1638
+ layout: y
1639
+ }), N);
1638
1640
  }
1639
- if (!C && !h && !o)
1640
- return M(ee(i));
1641
- let L = {};
1642
- return typeof E == "string" ? L.label = E : t && (L.label = String(t)), y && (L = Object.assign(Object.assign({}, L), y)), M(/* @__PURE__ */ l.createElement(Rt, Object.assign({}, e, {
1643
- messageVariables: L,
1644
- trigger: O,
1645
- validateTrigger: V,
1646
- onMetaChange: T
1647
- }), (F, _, D) => {
1648
- const B = ie(t).length && _ ? _.name : [], k = rt(B, j), te = m !== void 0 ? m : !!(c != null && c.some((W) => {
1649
- if (W && typeof W == "object" && W.required && !W.warningOnly)
1641
+ if (!x && !h && !o)
1642
+ return V(ee(u));
1643
+ let k = {};
1644
+ return typeof O == "string" ? k.label = O : t && (k.label = String(t)), $ && (k = Object.assign(Object.assign({}, k), $)), V(/* @__PURE__ */ l.createElement(wt, Object.assign({}, e, {
1645
+ messageVariables: k,
1646
+ trigger: I,
1647
+ validateTrigger: F,
1648
+ onMetaChange: K
1649
+ }), (N, R, M) => {
1650
+ const _ = ie(t).length && R ? R.name : [], H = rt(_, P), G = m !== void 0 ? m : !!(i != null && i.some((L) => {
1651
+ if (L && typeof L == "object" && L.required && !L.warningOnly)
1650
1652
  return !0;
1651
- if (typeof W == "function") {
1652
- const se = W(D);
1653
+ if (typeof L == "function") {
1654
+ const se = L(M);
1653
1655
  return (se == null ? void 0 : se.required) && !(se != null && se.warningOnly);
1654
1656
  }
1655
1657
  return !1;
1656
- })), oe = Object.assign({}, F);
1657
- let le = null;
1658
- if (process.env.NODE_ENV !== "production" && x(!(a && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(i) && C)
1659
- process.env.NODE_ENV !== "production" && x(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), le = i;
1660
- else if (h && (!(a || o) || C))
1661
- process.env.NODE_ENV !== "production" && x(!!(a || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && x(!C, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
1662
- else if (o && !h && !C)
1663
- process.env.NODE_ENV !== "production" && x(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
1664
- else if (/* @__PURE__ */ l.isValidElement(i)) {
1665
- process.env.NODE_ENV !== "production" && x(i.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
1666
- const W = Object.assign(Object.assign({}, i.props), oe);
1667
- if (W.id || (W.id = k), S || X.length > 0 || K.length > 0 || e.extra) {
1658
+ })), ne = Object.assign({}, N);
1659
+ let re = null;
1660
+ if (process.env.NODE_ENV !== "production" && w(!(a && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(u) && x)
1661
+ process.env.NODE_ENV !== "production" && w(!1, "usage", "A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."), re = u;
1662
+ else if (h && (!(a || o) || x))
1663
+ process.env.NODE_ENV !== "production" && w(!!(a || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && w(!x, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
1664
+ else if (o && !h && !x)
1665
+ process.env.NODE_ENV !== "production" && w(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
1666
+ else if (/* @__PURE__ */ l.isValidElement(u)) {
1667
+ process.env.NODE_ENV !== "production" && w(u.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
1668
+ const L = Object.assign(Object.assign({}, u.props), ne);
1669
+ if (L.id || (L.id = H), S || X.length > 0 || Z.length > 0 || e.extra) {
1668
1670
  const ae = [];
1669
- (S || X.length > 0) && ae.push(`${k}_help`), e.extra && ae.push(`${k}_extra`), W["aria-describedby"] = ae.join(" ");
1671
+ (S || X.length > 0) && ae.push(`${H}_help`), e.extra && ae.push(`${H}_extra`), L["aria-describedby"] = ae.join(" ");
1670
1672
  }
1671
- X.length > 0 && (W["aria-invalid"] = "true"), te && (W["aria-required"] = "true"), Ot(i) && (W.ref = Z(B, i)), new Set([].concat(Y(ie(O)), Y(ie(V)))).forEach((ae) => {
1672
- W[ae] = function() {
1673
- for (var Fe, Ne, ye, je, $e, Me = arguments.length, xe = new Array(Me), ue = 0; ue < Me; ue++)
1674
- xe[ue] = arguments[ue];
1675
- (ye = oe[ae]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [oe].concat(xe)), ($e = (je = i.props)[ae]) === null || $e === void 0 || (Ne = $e).call.apply(Ne, [je].concat(xe));
1673
+ X.length > 0 && (L["aria-invalid"] = "true"), G && (L["aria-required"] = "true"), Vt(u) && (L.ref = B(_, u)), new Set([].concat(Y(ie(I)), Y(ie(F)))).forEach((ae) => {
1674
+ L[ae] = function() {
1675
+ for (var Fe, Ne, ye, je, $e, Me = arguments.length, ve = new Array(Me), ce = 0; ce < Me; ce++)
1676
+ ve[ce] = arguments[ce];
1677
+ (ye = ne[ae]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [ne].concat(ve)), ($e = (je = u.props)[ae]) === null || $e === void 0 || (Ne = $e).call.apply(Ne, [je].concat(ve));
1676
1678
  };
1677
1679
  });
1678
- const dt = [W["aria-required"], W["aria-invalid"], W["aria-describedby"]];
1679
- le = /* @__PURE__ */ l.createElement(Gn, {
1680
- control: oe,
1681
- update: i,
1680
+ const dt = [L["aria-required"], L["aria-invalid"], L["aria-describedby"]];
1681
+ re = /* @__PURE__ */ l.createElement(kn, {
1682
+ control: ne,
1683
+ update: u,
1682
1684
  childProps: dt
1683
- }, At(i, W));
1684
- } else h && (a || o) && !C ? le = i(D) : (process.env.NODE_ENV !== "production" && x(!B.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), le = i);
1685
- return ee(le, k, te);
1685
+ }, At(u, L));
1686
+ } else h && (a || o) && !x ? re = u(M) : (process.env.NODE_ENV !== "production" && w(!_.length || !!r, "usage", "`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."), re = u);
1687
+ return ee(re, H, G);
1686
1688
  }));
1687
1689
  }
1688
- const ut = Xn;
1690
+ const ut = Kn;
1689
1691
  ut.useStatus = at;
1690
- var kn = function(e, t) {
1692
+ var Yn = function(e, t) {
1691
1693
  var r = {};
1692
1694
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1693
1695
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1694
1696
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1695
1697
  return r;
1696
1698
  };
1697
- const Kn = (e) => {
1699
+ const Un = (e) => {
1698
1700
  var {
1699
1701
  prefixCls: t,
1700
1702
  children: r
1701
- } = e, n = kn(e, ["prefixCls", "children"]);
1703
+ } = e, n = Yn(e, ["prefixCls", "children"]);
1702
1704
  if (process.env.NODE_ENV !== "production") {
1703
- const c = be("Form.List");
1704
- process.env.NODE_ENV !== "production" && c(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
1705
+ const i = he("Form.List");
1706
+ process.env.NODE_ENV !== "production" && i(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
1705
1707
  }
1706
1708
  const {
1707
1709
  getPrefixCls: o
1708
- } = l.useContext(ce), s = o("form", t), a = l.useMemo(() => ({
1710
+ } = l.useContext(be), s = o("form", t), a = l.useMemo(() => ({
1709
1711
  prefixCls: s,
1710
1712
  status: "error"
1711
1713
  }), [s]);
1712
- return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (c, u, m) => /* @__PURE__ */ l.createElement(Se.Provider, {
1714
+ return /* @__PURE__ */ l.createElement(St, Object.assign({}, n), (i, c, m) => /* @__PURE__ */ l.createElement(we.Provider, {
1713
1715
  value: a
1714
- }, r(c.map((E) => Object.assign(Object.assign({}, E), {
1715
- fieldKey: E.key
1716
- })), u, {
1716
+ }, r(i.map((O) => Object.assign(Object.assign({}, O), {
1717
+ fieldKey: O.key
1718
+ })), c, {
1717
1719
  errors: m.errors,
1718
1720
  warnings: m.warnings
1719
1721
  })));
1720
1722
  };
1721
- function Yn() {
1723
+ function Qn() {
1722
1724
  const {
1723
1725
  form: e
1724
- } = l.useContext(ne);
1726
+ } = l.useContext(te);
1725
1727
  return e;
1726
1728
  }
1727
- const re = st;
1728
- re.Item = ut;
1729
- re.List = Kn;
1730
- re.ErrorList = nt;
1731
- re.useForm = lt;
1732
- re.useFormInstance = Yn;
1733
- re.useWatch = Pt;
1734
- re.Provider = Ye;
1735
- re.create = () => {
1736
- process.env.NODE_ENV !== "production" && It(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1729
+ const oe = st;
1730
+ oe.Item = ut;
1731
+ oe.List = Un;
1732
+ oe.ErrorList = nt;
1733
+ oe.useForm = lt;
1734
+ oe.useFormInstance = Qn;
1735
+ oe.useWatch = Ot;
1736
+ oe.Provider = Xe;
1737
+ oe.create = () => {
1738
+ process.env.NODE_ENV !== "production" && bt(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1737
1739
  };
1738
- const yr = ft(re)`
1739
- label,
1740
- .ant-form-item-label > label,
1741
- .ant-form-item-required,
1742
- .ant-form-item-row > label {
1743
- height: auto !important;
1744
- }
1745
- `;
1746
1740
  export {
1747
- Oe as C,
1748
- re as F,
1741
+ Ee as C,
1742
+ oe as F,
1749
1743
  Ze as R,
1750
- yr as a,
1751
1744
  cn as g
1752
1745
  };