@gobolt/genesis 0.0.10 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/README.md +8 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
  6. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  7. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  8. package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
  9. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
  10. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
  11. package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
  12. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  13. package/dist/Keyframes-C9_aCDvn.js +17 -0
  14. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  15. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  16. package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
  17. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  18. package/dist/Skeleton-BVN4pcVe.js +560 -0
  19. package/dist/TextArea-Bkf9hh7l.js +708 -0
  20. package/dist/Typography-CoZ5qD-t.js +705 -0
  21. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  22. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  23. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  24. package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
  25. package/dist/clsx-OuTLNxxd.js +16 -0
  26. package/dist/components/Avatar/Avatar.d.ts +12 -0
  27. package/dist/components/Avatar/Avatar.js +61 -0
  28. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  30. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +4 -0
  33. package/dist/components/Avatar/styles.d.ts +18 -0
  34. package/dist/components/Avatar/styles.js +326 -0
  35. package/dist/components/Badge/Badge.d.ts +5 -3
  36. package/dist/components/Badge/Badge.js +67 -100
  37. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  38. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  39. package/dist/components/Badge/styles.d.ts +12 -3
  40. package/dist/components/Badge/styles.js +30 -27
  41. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  42. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  43. package/dist/components/Breadcrumb/styles.js +239 -2260
  44. package/dist/components/Button/Button.d.ts +4 -3
  45. package/dist/components/Button/Button.js +10 -6
  46. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  47. package/dist/components/Button/__tests__/Button.test.js +1 -1
  48. package/dist/components/Button/styles.d.ts +2 -2
  49. package/dist/components/Button/styles.js +20 -17
  50. package/dist/components/Card/Card.d.ts +9 -0
  51. package/dist/components/Card/Card.js +16 -0
  52. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  53. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  54. package/dist/components/Card/__tests__/Card.test.js +16 -0
  55. package/dist/components/Card/index.d.ts +2 -0
  56. package/dist/components/Card/index.js +4 -0
  57. package/dist/components/Card/styles.d.ts +16 -0
  58. package/dist/components/Card/styles.js +12 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  60. package/dist/components/Checkbox/Checkbox.js +28 -16
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  62. package/dist/components/Checkbox/styles.js +22 -457
  63. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  64. package/dist/components/Dashboard/Dashboard.js +5 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  66. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  67. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  73. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  75. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  77. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  78. package/dist/components/Dashboard/index.d.ts +2 -0
  79. package/dist/components/Dashboard/index.js +4 -0
  80. package/dist/components/Dashboard/styles.d.ts +14 -0
  81. package/dist/components/Dashboard/styles.js +11 -0
  82. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  83. package/dist/components/DatePicker/DatePicker.js +5 -0
  84. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  85. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  86. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  87. package/dist/components/DatePicker/index.d.ts +2 -0
  88. package/dist/components/DatePicker/index.js +4 -0
  89. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  90. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  91. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  92. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  93. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  94. package/dist/components/DateRangePicker/index.d.ts +2 -0
  95. package/dist/components/DateRangePicker/index.js +4 -0
  96. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  97. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  98. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  99. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  100. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  101. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  102. package/dist/components/ErrorBoundary/index.js +4 -0
  103. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  104. package/dist/components/ErrorBoundary/styles.js +11 -0
  105. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  106. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  107. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  108. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  109. package/dist/components/Form/Form.js +3 -3
  110. package/dist/components/Form/__stories__/FormStory.js +127 -50
  111. package/dist/components/Form/__tests__/form.test.js +2 -2
  112. package/dist/components/Form/index.js +1 -1
  113. package/dist/components/Form/styles.js +1 -1
  114. package/dist/components/Glyph/Glyph.d.ts +4 -0
  115. package/dist/components/Glyph/Glyph.js +9 -0
  116. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  117. package/dist/components/Glyph/index.d.ts +2 -0
  118. package/dist/components/Glyph/index.js +4 -0
  119. package/dist/components/Glyph/styles.d.ts +14 -0
  120. package/dist/components/Glyph/styles.js +11 -0
  121. package/dist/components/Input/Input.d.ts +1 -2
  122. package/dist/components/Input/Input.js +14 -10
  123. package/dist/components/Input/__tests__/Input.test.js +1 -1
  124. package/dist/components/Input/styles.js +58 -466
  125. package/dist/components/Layout/Content/Content.d.ts +11 -0
  126. package/dist/components/Layout/Content/Content.js +32 -0
  127. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  128. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  129. package/dist/components/Layout/Content/index.d.ts +2 -0
  130. package/dist/components/Layout/Content/index.js +4 -0
  131. package/dist/components/Layout/Content/styles.d.ts +11 -0
  132. package/dist/components/Layout/Content/styles.js +16 -0
  133. package/dist/components/Layout/Layout.d.ts +8 -0
  134. package/dist/components/Layout/Layout.js +6 -0
  135. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  136. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  137. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  138. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  139. package/dist/components/Layout/MainLayout/index.js +4 -0
  140. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  141. package/dist/components/Layout/MainLayout/styles.js +69 -0
  142. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  143. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  144. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  145. package/dist/components/Layout/index.d.ts +2 -0
  146. package/dist/components/Layout/index.js +4 -0
  147. package/dist/components/Message/Message.d.ts +6 -4
  148. package/dist/components/Message/Message.js +70 -43
  149. package/dist/components/Message/__tests__/Message.test.js +1 -1
  150. package/dist/components/Message/styles.d.ts +1 -0
  151. package/dist/components/Message/styles.js +15 -11
  152. package/dist/components/Notification/Notification.js +145 -120
  153. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  154. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  155. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  156. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  157. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  158. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  159. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  160. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  161. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  162. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  163. package/dist/components/Notification/styles.d.ts +1 -1
  164. package/dist/components/Notification/styles.js +1 -1
  165. package/dist/components/Popover/Popover.d.ts +10 -0
  166. package/dist/components/Popover/Popover.js +21 -0
  167. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  168. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  169. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  170. package/dist/components/Popover/index.d.ts +2 -0
  171. package/dist/components/Popover/index.js +4 -0
  172. package/dist/components/Popover/styles.d.ts +15 -0
  173. package/dist/components/Popover/styles.js +6 -0
  174. package/dist/components/Progress/Progress.d.ts +18 -0
  175. package/dist/components/Progress/Progress.js +91 -0
  176. package/dist/components/Progress/Progress.util.d.ts +4 -0
  177. package/dist/components/Progress/Progress.util.js +62 -0
  178. package/dist/components/Progress/ProgressText.d.ts +11 -0
  179. package/dist/components/Progress/ProgressText.js +67 -0
  180. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  181. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  182. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  183. package/dist/components/Progress/index.d.ts +2 -0
  184. package/dist/components/Progress/index.js +4 -0
  185. package/dist/components/Progress/styles.d.ts +17 -0
  186. package/dist/components/Progress/styles.js +793 -0
  187. package/dist/components/Radio/Radio.js +22 -6
  188. package/dist/components/Radio/RadioGroup.js +1 -1
  189. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  190. package/dist/components/Radio/index.d.ts +1 -0
  191. package/dist/components/Row/Row.d.ts +14 -0
  192. package/dist/components/Row/Row.js +38 -0
  193. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  194. package/dist/components/Row/RowActions/RowActions.js +59 -0
  195. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  196. package/dist/components/Row/RowActions/styles.js +32 -0
  197. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  198. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  199. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  200. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  201. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  202. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  203. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  204. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  205. package/dist/components/Row/__tests__/Row.test.js +16 -0
  206. package/dist/components/Row/index.d.ts +2 -0
  207. package/dist/components/Row/index.js +4 -0
  208. package/dist/components/Row/styles.d.ts +15 -0
  209. package/dist/components/Row/styles.js +15 -0
  210. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  211. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  212. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  213. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  214. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  215. package/dist/components/SegmentedControls/index.d.ts +2 -0
  216. package/dist/components/SegmentedControls/index.js +4 -0
  217. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  218. package/dist/components/SegmentedControls/styles.js +511 -0
  219. package/dist/components/Select/Select.d.ts +2 -4
  220. package/dist/components/Select/Select.js +12 -11
  221. package/dist/components/Select/__tests__/Select.test.js +1 -1
  222. package/dist/components/Select/styles.js +39 -3654
  223. package/dist/components/Shapes/Shapes.d.ts +6 -0
  224. package/dist/components/Shapes/Shapes.js +8 -0
  225. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  226. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  227. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  228. package/dist/components/Shapes/index.d.ts +2 -0
  229. package/dist/components/Shapes/index.js +4 -0
  230. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  231. package/dist/components/Shapes/variants/Circle.js +23 -0
  232. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  233. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  234. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  235. package/dist/components/Shapes/variants/Triangle.js +23 -0
  236. package/dist/components/Switch/Switch.d.ts +9 -0
  237. package/dist/components/Switch/Switch.js +22 -0
  238. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  239. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  240. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  241. package/dist/components/Switch/index.d.ts +2 -0
  242. package/dist/components/Switch/index.js +4 -0
  243. package/dist/components/Switch/styles.d.ts +9 -0
  244. package/dist/components/Switch/styles.js +456 -0
  245. package/dist/components/Table/Table.d.ts +15 -0
  246. package/dist/components/Table/Table.js +23 -0
  247. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  248. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  249. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  250. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  251. package/dist/components/Table/__tests__/Table.test.js +34 -0
  252. package/dist/components/Table/index.d.ts +2 -0
  253. package/dist/components/Table/index.js +4 -0
  254. package/dist/components/Table/styles.d.ts +8 -0
  255. package/dist/components/Table/styles.js +6 -0
  256. package/dist/components/Tabs/Tabs.d.ts +10 -0
  257. package/dist/components/Tabs/Tabs.js +23 -0
  258. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  259. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  260. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  261. package/dist/components/Tabs/index.d.ts +2 -0
  262. package/dist/components/Tabs/index.js +4 -0
  263. package/dist/components/Tabs/styles.d.ts +12 -0
  264. package/dist/components/Tabs/styles.js +102 -0
  265. package/dist/components/Tile/Tile.d.ts +10 -0
  266. package/dist/components/Tile/Tile.js +21 -0
  267. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  268. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  269. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  270. package/dist/components/Tile/index.d.ts +2 -0
  271. package/dist/components/Tile/index.js +4 -0
  272. package/dist/components/Tile/styles.d.ts +11 -0
  273. package/dist/components/Tile/styles.js +12 -0
  274. package/dist/components/Toast/Toast.js +23 -6
  275. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  276. package/dist/components/Toast/index.js +1 -1
  277. package/dist/components/Toast/styles.d.ts +0 -1
  278. package/dist/components/Toast/styles.js +14 -23
  279. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  280. package/dist/components/Tooltip/Tooltip.js +50 -0
  281. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  282. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  283. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  284. package/dist/components/Tooltip/index.d.ts +2 -0
  285. package/dist/components/Tooltip/index.js +4 -0
  286. package/dist/components/Tooltip/styles.d.ts +20 -0
  287. package/dist/components/Tooltip/styles.js +11 -0
  288. package/dist/components/Typography/Typography.d.ts +5 -1
  289. package/dist/components/Typography/Typography.js +2 -2
  290. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  291. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  292. package/dist/components/Typography/index.js +1 -1
  293. package/dist/components/Typography/styles.d.ts +1 -0
  294. package/dist/components/Typography/styles.js +53 -17
  295. package/dist/components/index.d.ts +35 -1
  296. package/dist/components/index.js +58 -24
  297. package/dist/constants/index.d.ts +4 -0
  298. package/dist/constants/index.js +4 -2
  299. package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
  300. package/dist/dropdown-Dp_PTQ2u.js +2045 -0
  301. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  302. package/dist/genesis/GenesisThemeBreakdown.js +101 -43
  303. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  304. package/dist/genesis/styles.js +7 -2923
  305. package/dist/iconBase-LROS5hdG.js +112 -0
  306. package/dist/index-BPVue1Yd.js +445 -0
  307. package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
  308. package/dist/index-BRUI9igj.js +11 -0
  309. package/dist/index-B_1Ge8na.js +1846 -0
  310. package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
  311. package/dist/index-BeGv28kJ.js +5173 -0
  312. package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
  313. package/dist/index-BvOLXELm.js +102 -0
  314. package/dist/index-CLSrpQRW.js +416 -0
  315. package/dist/index-CbVOl2U6.js +288 -0
  316. package/dist/index-D0U6r5O7.js +780 -0
  317. package/dist/index-DEu2PVzQ.js +538 -0
  318. package/dist/index-DLdU7Tpd.js +183 -0
  319. package/dist/index-DNQ-jnBx.js +3321 -0
  320. package/dist/index-DOsPeIWJ.js +1000 -0
  321. package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
  322. package/dist/index-DWjq9XYj.js +899 -0
  323. package/dist/index.js +65 -31
  324. package/dist/interface/address.d.ts +10 -0
  325. package/dist/interface/address.js +1 -0
  326. package/dist/interface/appointment.d.ts +57 -0
  327. package/dist/interface/appointment.js +5 -0
  328. package/dist/interface/appointmentV2.d.ts +65 -0
  329. package/dist/interface/appointmentV2.js +1 -0
  330. package/dist/interface/appointmentsState.d.ts +21 -0
  331. package/dist/interface/appointmentsState.js +1 -0
  332. package/dist/interface/common.d.ts +2 -0
  333. package/dist/interface/common.js +1 -0
  334. package/dist/interface/completionData.d.ts +18 -0
  335. package/dist/interface/completionData.js +1 -0
  336. package/dist/interface/deliveryPartner.d.ts +25 -0
  337. package/dist/interface/deliveryPartner.js +1 -0
  338. package/dist/interface/organization.d.ts +9 -0
  339. package/dist/interface/organization.js +1 -0
  340. package/dist/interface/pagination.d.ts +8 -0
  341. package/dist/interface/pagination.js +1 -0
  342. package/dist/interface/roles.d.ts +9 -0
  343. package/dist/interface/roles.js +1 -0
  344. package/dist/interface/route.d.ts +73 -0
  345. package/dist/interface/route.js +1 -0
  346. package/dist/interface/routeAnalysis.d.ts +108 -0
  347. package/dist/interface/routeAnalysis.js +1 -0
  348. package/dist/interface/routeAutomationJob.d.ts +95 -0
  349. package/dist/interface/routeAutomationJob.js +10 -0
  350. package/dist/interface/routeAutomationLog.d.ts +10 -0
  351. package/dist/interface/routeAutomationLog.js +1 -0
  352. package/dist/interface/routeEvent.d.ts +55 -0
  353. package/dist/interface/routeEvent.js +5 -0
  354. package/dist/interface/serviceArea.d.ts +18 -0
  355. package/dist/interface/serviceArea.js +1 -0
  356. package/dist/interface/util.d.ts +3 -0
  357. package/dist/interface/util.js +1 -0
  358. package/dist/interface/vehicle.d.ts +120 -0
  359. package/dist/interface/vehicle.js +1 -0
  360. package/dist/interface/workOrder.d.ts +22 -0
  361. package/dist/interface/workOrder.js +1 -0
  362. package/dist/isVisible-D3-B85BJ.js +22 -0
  363. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  364. package/dist/motion-CUN72xsH.js +33 -0
  365. package/dist/omit-B_u6A-HL.js +9 -0
  366. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  367. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  368. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  369. package/dist/providers/BreakpointThemeProvider.js +21 -0
  370. package/dist/providers/GenesisProvider.js +3 -3
  371. package/dist/providers/ToastProvider.js +22 -6
  372. package/dist/providers/index.js +1 -1
  373. package/dist/providers/useGenesis.js +2 -2
  374. package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
  375. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  376. package/dist/setup-CUbCc8fQ.js +24706 -0
  377. package/dist/setup.types-dBtAXXGp.js +8824 -0
  378. package/dist/shadow-BoMGMNn3.js +13 -0
  379. package/dist/styleChecker-Cotu61d0.js +21 -0
  380. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
  381. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  382. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  383. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  384. package/dist/styles/theme/genesis-theme.js +398 -331
  385. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  386. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  387. package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
  388. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  389. package/dist/styles-CWdUpZom.js +289 -0
  390. package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
  391. package/dist/styles-qerRs7Rn.js +9196 -0
  392. package/dist/test/setup.d.ts +2 -3
  393. package/dist/test/setup.js +87 -4
  394. package/dist/test/setup.types.d.ts +7 -0
  395. package/dist/test/setup.types.js +1 -0
  396. package/dist/toArray-U3Az44CO.js +11 -0
  397. package/dist/useBreakpoint-TkMv121M.js +22 -0
  398. package/dist/useCSSVarCls-Dau77fzS.js +11 -0
  399. package/dist/useIcons-Ck4JP1m9.js +321 -0
  400. package/dist/useId-D2tzlufo.js +26 -0
  401. package/dist/useLocale-CTfNpakL.js +16 -0
  402. package/dist/useMergedState-D6toxSxh.js +23 -0
  403. package/dist/useSize-DSq4r6zy.js +9 -0
  404. package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
  405. package/dist/useZIndex-DhyHuZTN.js +44 -0
  406. package/dist/utils/icon-util.d.ts +2 -0
  407. package/dist/utils/icon-util.js +89 -0
  408. package/package.json +27 -15
  409. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  410. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  411. package/dist/TextArea-DKwCct3i.js +0 -1690
  412. package/dist/Typography-aGoDUl4R.js +0 -710
  413. package/dist/index-BZAhCB_K.js +0 -97
  414. package/dist/index-CfDY25LP.js +0 -873
  415. package/dist/index-DPW8XdWj.js +0 -952
  416. package/dist/isVisible-A-IfeFoT.js +0 -367
  417. package/dist/providers/ThemeProvider.d.ts +0 -9
  418. package/dist/providers/ThemeProvider.js +0 -21
  419. package/dist/setup-BvfREoHl.js +0 -33891
  420. package/dist/useLocale-DT-z_vQ6.js +0 -16
  421. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  422. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  423. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  424. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  425. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  426. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  427. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  428. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  429. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  430. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  431. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  432. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  433. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  434. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  435. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  436. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  437. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  438. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -1,31 +1,30 @@
1
1
  import { d as ft } from "./styled-components.browser.esm-CZ1XM4o4.js";
2
- import { g as we, m as Xe, q as Q, E as mt, C as ue, o as ke, x as K, B as pt, O as gt, P as ht, v as be, D as bt, Q as yt, T as $t, S as xt, w as _e, h as Ct, t as vt, J as wt, U as Re, W as St, n as Ue, l as Et, u as Ot, s as It, y as Ft } from "./index-oK7z6jnz.js";
3
- import { a as Se, u as Ee, b as Mt, V as Nt, c as Ke, d as ne, R as jt, F as ge, e as Ye, C as _t, L as Rt, W as Pt, f as Vt, g as Lt } from "./context-BMW3aJEf.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";
4
4
  import * as l from "react";
5
- import Dt, { createContext as Tt } from "react";
6
- import { a as Wt, c as J } from "./warning-C63HNL9U.js";
7
- import { a as Pe } from "./index-CfDY25LP.js";
8
- import { g as Ht } from "./collapse-Dtpt-6W_.js";
9
- import { z as Qe, T as At } from "./index-DPW8XdWj.js";
10
- import { a as zt } from "./Compact-CGY560JF.js";
11
- import { c as qt } from "./reactNode-sKPeiqPL.js";
12
- import { t as Bt, i as Gt, o as Xt } from "./isVisible-A-IfeFoT.js";
13
- import { I as kt } from "./AntdIcon-BoLh1dP8.js";
14
- import { u as Ut } from "./useLocale-DT-z_vQ6.js";
15
- import { R as Kt, a as Yt } from "./ExclamationCircleFilled-C0Kj5KQV.js";
16
- import { R as Qt } from "./CloseCircleFilled-DXCxlIQL.js";
17
- import { R as Jt } from "./LoadingOutlined-8EnJdZ7I.js";
18
- var Zt = { 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" }, en = function(t, r) {
19
- return /* @__PURE__ */ l.createElement(kt, Wt({}, t, {
20
- ref: r,
21
- icon: Zt
22
- }));
23
- }, Je = /* @__PURE__ */ l.forwardRef(en);
24
- process.env.NODE_ENV !== "production" && (Je.displayName = "QuestionCircleOutlined");
25
- const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, Le = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", fe = (e, t) => {
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";
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";
13
+ import { c as At } from "./reactNode-sKPeiqPL.js";
14
+ import { t as zt } from "./toArray-U3Az44CO.js";
15
+ import { i as qt } from "./isVisible-D3-B85BJ.js";
16
+ 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) => {
26
25
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
27
26
  const r = getComputedStyle(e, null);
28
- return Le(r.overflowY, t) || Le(r.overflowX, t) || ((n) => {
27
+ return De(r.overflowY, t) || De(r.overflowX, t) || ((n) => {
29
28
  const o = ((s) => {
30
29
  if (!s.ownerDocument || !s.ownerDocument.defaultView) return null;
31
30
  try {
@@ -38,46 +37,46 @@ const Ve = (e) => typeof e == "object" && e != null && e.nodeType === 1, Le = (e
38
37
  })(e);
39
38
  }
40
39
  return !1;
41
- }, me = (e, t, r, n, o, s, i, a) => s < e && i > t || s > e && i < t ? 0 : s <= e && a <= r || i >= t && a >= r ? s - e - n : i > t && a < r || s < e && a > r ? i - t + o : 0, tn = (e) => {
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) => {
42
41
  const t = e.parentElement;
43
42
  return t ?? (e.getRootNode().host || null);
44
- }, De = (e, t) => {
43
+ }, Le = (e, t) => {
45
44
  var r, n, o, s;
46
45
  if (typeof document > "u") return [];
47
- const { scrollMode: i, block: a, inline: c, boundary: f, skipOverflowHiddenElements: y } = t, $ = typeof f == "function" ? f : (A) => A !== f;
48
- if (!Ve(e)) throw new TypeError("Invalid target");
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");
49
48
  const O = document.scrollingElement || document.documentElement, R = [];
50
- let S = e;
51
- for (; Ve(S) && $(S); ) {
52
- if (S = tn(S), S === O) {
53
- R.push(S);
49
+ let w = e;
50
+ for (; Pe(w) && y(w); ) {
51
+ if (w = Jt(w), w === O) {
52
+ R.push(w);
54
53
  break;
55
54
  }
56
- S != null && S === document.body && fe(S) && !fe(document.documentElement) || S != null && fe(S, y) && R.push(S);
55
+ w != null && w === document.body && de(w) && !de(document.documentElement) || w != null && de(w, E) && R.push(w);
57
56
  }
58
- const E = (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: m, scrollY: N } = window, { height: u, width: h, top: p, right: b, bottom: P, left: v } = e.getBoundingClientRect(), { top: x, right: g, bottom: j, left: H } = ((A) => {
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) => {
59
58
  const d = window.getComputedStyle(A);
60
59
  return { top: parseFloat(d.scrollMarginTop) || 0, right: parseFloat(d.scrollMarginRight) || 0, bottom: parseFloat(d.scrollMarginBottom) || 0, left: parseFloat(d.scrollMarginLeft) || 0 };
61
60
  })(e);
62
- let M = a === "start" || a === "nearest" ? p - x : a === "end" ? P + j : p + u / 2 - x + j, C = c === "center" ? v + h / 2 - H + g : c === "end" ? b + g : v - H;
63
- const V = [];
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 = [];
64
63
  for (let A = 0; A < R.length; A++) {
65
- const d = R[A], { height: z, width: w, top: q, right: T, bottom: G, left: X } = d.getBoundingClientRect();
66
- if (i === "if-needed" && p >= 0 && v >= 0 && P <= I && b <= E && (d === O && !fe(d) || p >= q && P <= G && v >= X && b <= T)) return V;
67
- const U = getComputedStyle(d), Z = parseInt(U.borderLeftWidth, 10), ee = parseInt(U.borderTopWidth, 10), D = parseInt(U.borderRightWidth, 10), F = parseInt(U.borderBottomWidth, 10);
68
- let _ = 0, L = 0;
69
- const B = "offsetWidth" in d ? d.offsetWidth - d.clientWidth - Z - D : 0, k = "offsetHeight" in d ? d.offsetHeight - d.clientHeight - ee - F : 0, te = "offsetWidth" in d ? d.offsetWidth === 0 ? 0 : w / d.offsetWidth : 0, oe = "offsetHeight" in d ? d.offsetHeight === 0 ? 0 : z / d.offsetHeight : 0;
70
- if (O === d) _ = a === "start" ? M : a === "end" ? M - I : a === "nearest" ? me(N, N + I, I, ee, F, N + M, N + M + u, u) : M - I / 2, L = c === "start" ? C : c === "center" ? C - E / 2 : c === "end" ? C - E : me(m, m + E, E, Z, D, m + C, m + C + h, h), _ = Math.max(0, _ + N), L = Math.max(0, L + m);
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);
71
70
  else {
72
- _ = a === "start" ? M - q - ee : a === "end" ? M - G + F + k : a === "nearest" ? me(q, G, z, ee, F + k, M, M + u, u) : M - (q + z / 2) + k / 2, L = c === "start" ? C - X - Z : c === "center" ? C - (X + w / 2) + B / 2 : c === "end" ? C - T + D + B : me(X, T, w, Z, D + B, C, C + h, h);
73
- const { scrollLeft: se, scrollTop: W } = d;
74
- _ = oe === 0 ? 0 : Math.max(0, Math.min(W + _ / oe, d.scrollHeight - z / oe + k)), L = te === 0 ? 0 : Math.max(0, Math.min(se + L / te, d.scrollWidth - w / te + B)), M += W - _, C += se - L;
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;
75
74
  }
76
- V.push({ el: d, top: _, left: L });
75
+ P.push({ el: d, top: _, left: D });
77
76
  }
78
- return V;
79
- }, nn = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
80
- function rn(e, t) {
77
+ return P;
78
+ }, Zt = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
79
+ function en(e, t) {
81
80
  if (!e.isConnected || !((o) => {
82
81
  let s = o;
83
82
  for (; s && s.parentNode; ) {
@@ -90,14 +89,14 @@ function rn(e, t) {
90
89
  const s = window.getComputedStyle(o);
91
90
  return { top: parseFloat(s.scrollMarginTop) || 0, right: parseFloat(s.scrollMarginRight) || 0, bottom: parseFloat(s.scrollMarginBottom) || 0, left: parseFloat(s.scrollMarginLeft) || 0 };
92
91
  })(e);
93
- if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(De(e, t));
92
+ if (((o) => typeof o == "object" && typeof o.behavior == "function")(t)) return t.behavior(Le(e, t));
94
93
  const n = typeof t == "boolean" || t == null ? void 0 : t.behavior;
95
- for (const { el: o, top: s, left: i } of De(e, nn(t))) {
96
- const a = s - r.top + r.bottom, c = i - r.left + r.right;
97
- o.scroll({ top: a, left: c, behavior: n });
94
+ 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 });
98
97
  }
99
98
  }
100
- const on = (e) => {
99
+ const tn = (e) => {
101
100
  const {
102
101
  componentCls: t
103
102
  } = e;
@@ -147,7 +146,7 @@ const on = (e) => {
147
146
  }
148
147
  }
149
148
  };
150
- }, sn = (e) => {
149
+ }, nn = (e) => {
151
150
  const {
152
151
  componentCls: t
153
152
  } = e;
@@ -160,28 +159,28 @@ const on = (e) => {
160
159
  minHeight: 1
161
160
  }
162
161
  };
163
- }, ln = (e, t) => {
162
+ }, rn = (e, t) => {
164
163
  const {
165
164
  prefixCls: r,
166
165
  componentCls: n,
167
166
  gridColumns: o
168
167
  } = e, s = {};
169
- for (let i = o; i >= 0; i--)
170
- i === 0 ? (s[`${n}${t}-${i}`] = {
168
+ for (let a = o; a >= 0; a--)
169
+ a === 0 ? (s[`${n}${t}-${a}`] = {
171
170
  display: "none"
172
- }, s[`${n}-push-${i}`] = {
171
+ }, s[`${n}-push-${a}`] = {
173
172
  insetInlineStart: "auto"
174
- }, s[`${n}-pull-${i}`] = {
173
+ }, s[`${n}-pull-${a}`] = {
175
174
  insetInlineEnd: "auto"
176
- }, s[`${n}${t}-push-${i}`] = {
175
+ }, s[`${n}${t}-push-${a}`] = {
177
176
  insetInlineStart: "auto"
178
- }, s[`${n}${t}-pull-${i}`] = {
177
+ }, s[`${n}${t}-pull-${a}`] = {
179
178
  insetInlineEnd: "auto"
180
- }, s[`${n}${t}-offset-${i}`] = {
179
+ }, s[`${n}${t}-offset-${a}`] = {
181
180
  marginInlineStart: 0
182
- }, s[`${n}${t}-order-${i}`] = {
181
+ }, s[`${n}${t}-order-${a}`] = {
183
182
  order: 0
184
- }) : (s[`${n}${t}-${i}`] = [
183
+ }) : (s[`${n}${t}-${a}`] = [
185
184
  // https://github.com/ant-design/ant-design/issues/44456
186
185
  // Form set `display: flex` on Col which will override `display: block`.
187
186
  // Let's get it from css variable to support override.
@@ -192,103 +191,38 @@ const on = (e) => {
192
191
  },
193
192
  {
194
193
  display: "var(--ant-display)",
195
- flex: `0 0 ${i / o * 100}%`,
196
- maxWidth: `${i / o * 100}%`
194
+ flex: `0 0 ${a / o * 100}%`,
195
+ maxWidth: `${a / o * 100}%`
197
196
  }
198
- ], s[`${n}${t}-push-${i}`] = {
199
- insetInlineStart: `${i / o * 100}%`
200
- }, s[`${n}${t}-pull-${i}`] = {
201
- insetInlineEnd: `${i / o * 100}%`
202
- }, s[`${n}${t}-offset-${i}`] = {
203
- marginInlineStart: `${i / o * 100}%`
204
- }, s[`${n}${t}-order-${i}`] = {
205
- order: i
197
+ ], s[`${n}${t}-push-${a}`] = {
198
+ insetInlineStart: `${a / o * 100}%`
199
+ }, s[`${n}${t}-pull-${a}`] = {
200
+ insetInlineEnd: `${a / o * 100}%`
201
+ }, s[`${n}${t}-offset-${a}`] = {
202
+ marginInlineStart: `${a / o * 100}%`
203
+ }, s[`${n}${t}-order-${a}`] = {
204
+ order: a
206
205
  });
207
206
  return s[`${n}${t}-flex`] = {
208
207
  flex: `var(--${r}${t}-flex)`
209
208
  }, s;
210
- }, ve = (e, t) => ln(e, t), an = (e, t, r) => ({
209
+ }, ve = (e, t) => rn(e, t), on = (e, t, r) => ({
211
210
  [`@media (min-width: ${Q(t)})`]: Object.assign({}, ve(e, r))
212
- }), cn = () => ({}), un = () => ({}), dn = we("Grid", on, cn), fn = (e) => ({
211
+ }), ln = () => ({}), sn = () => ({}), an = we("Grid", tn, ln), cn = (e) => ({
213
212
  xs: e.screenXSMin,
214
213
  sm: e.screenSMMin,
215
214
  md: e.screenMDMin,
216
215
  lg: e.screenLGMin,
217
216
  xl: e.screenXLMin,
218
217
  xxl: e.screenXXLMin
219
- }), mn = we("Grid", (e) => {
218
+ }), un = we("Grid", (e) => {
220
219
  const t = Xe(e, {
221
220
  gridColumns: 24
222
221
  // Row is divided into 24 parts in Grid
223
- }), r = fn(t);
224
- return delete r.xs, [sn(t), ve(t, ""), ve(t, "-xs"), Object.keys(r).map((n) => an(t, r[n], `-${n}`)).reduce((n, o) => Object.assign(Object.assign({}, n), o), {})];
225
- }, un), ce = ["xxl", "xl", "lg", "md", "sm", "xs"], pn = (e) => ({
226
- xs: `(max-width: ${e.screenXSMax}px)`,
227
- sm: `(min-width: ${e.screenSM}px)`,
228
- md: `(min-width: ${e.screenMD}px)`,
229
- lg: `(min-width: ${e.screenLG}px)`,
230
- xl: `(min-width: ${e.screenXL}px)`,
231
- xxl: `(min-width: ${e.screenXXL}px)`
232
- }), gn = (e) => {
233
- const t = e, r = [].concat(ce).reverse();
234
- return r.forEach((n, o) => {
235
- const s = n.toUpperCase(), i = `screen${s}Min`, a = `screen${s}`;
236
- if (!(t[i] <= t[a]))
237
- throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);
238
- if (o < r.length - 1) {
239
- const c = `screen${s}Max`;
240
- if (!(t[a] <= t[c]))
241
- throw new Error(`${a}<=${c} fails : !(${t[a]}<=${t[c]})`);
242
- const y = `screen${r[o + 1].toUpperCase()}Min`;
243
- if (!(t[c] <= t[y]))
244
- throw new Error(`${c}<=${y} fails : !(${t[c]}<=${t[y]})`);
245
- }
246
- }), e;
247
- };
248
- function hn() {
249
- const [, e] = mt(), t = pn(gn(e));
250
- return Dt.useMemo(() => {
251
- const r = /* @__PURE__ */ new Map();
252
- let n = -1, o = {};
253
- return {
254
- matchHandlers: {},
255
- dispatch(s) {
256
- return o = s, r.forEach((i) => i(o)), r.size >= 1;
257
- },
258
- subscribe(s) {
259
- return r.size || this.register(), n += 1, r.set(n, s), s(o), n;
260
- },
261
- unsubscribe(s) {
262
- r.delete(s), r.size || this.unregister();
263
- },
264
- unregister() {
265
- Object.keys(t).forEach((s) => {
266
- const i = t[s], a = this.matchHandlers[i];
267
- a == null || a.mql.removeListener(a == null ? void 0 : a.listener);
268
- }), r.clear();
269
- },
270
- register() {
271
- Object.keys(t).forEach((s) => {
272
- const i = t[s], a = (f) => {
273
- let {
274
- matches: y
275
- } = f;
276
- this.dispatch(Object.assign(Object.assign({}, o), {
277
- [s]: y
278
- }));
279
- }, c = window.matchMedia(i);
280
- c.addListener(a), this.matchHandlers[i] = {
281
- mql: c,
282
- listener: a
283
- }, a(c);
284
- });
285
- },
286
- responsiveMap: t
287
- };
288
- }, [e]);
289
- }
290
- const Ze = /* @__PURE__ */ Tt({});
291
- var bn = function(e, t) {
222
+ }), 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), {})];
224
+ }, sn), Je = /* @__PURE__ */ Dt({});
225
+ var dn = function(e, t) {
292
226
  var r = {};
293
227
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
294
228
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
@@ -298,57 +232,57 @@ var bn = function(e, t) {
298
232
  function Te(e) {
299
233
  return typeof e == "number" ? `${e} ${e} auto` : /^\d+(\.\d+)?(px|em|rem|%)$/.test(e) ? `0 0 ${e}` : e;
300
234
  }
301
- const yn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ l.forwardRef((e, t) => {
235
+ const fn = ["xs", "sm", "md", "lg", "xl", "xxl"], Oe = /* @__PURE__ */ l.forwardRef((e, t) => {
302
236
  const {
303
237
  getPrefixCls: r,
304
238
  direction: n
305
- } = l.useContext(ue), {
239
+ } = l.useContext(ce), {
306
240
  gutter: o,
307
241
  wrap: s
308
- } = l.useContext(Ze), {
309
- prefixCls: i,
310
- span: a,
311
- order: c,
312
- offset: f,
313
- push: y,
314
- pull: $,
242
+ } = l.useContext(Je), {
243
+ prefixCls: a,
244
+ span: c,
245
+ order: u,
246
+ offset: m,
247
+ push: E,
248
+ pull: y,
315
249
  className: O,
316
250
  children: R,
317
- flex: S,
318
- style: E
319
- } = e, I = bn(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), m = r("col", i), [N, u, h] = mn(m), p = {};
251
+ flex: w,
252
+ 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 = {};
320
254
  let b = {};
321
- yn.forEach((x) => {
255
+ fn.forEach(($) => {
322
256
  let g = {};
323
- const j = e[x];
324
- typeof j == "number" ? g.span = j : typeof j == "object" && (g = j || {}), delete I[x], b = Object.assign(Object.assign({}, b), {
325
- [`${m}-${x}-${g.span}`]: g.span !== void 0,
326
- [`${m}-${x}-order-${g.order}`]: g.order || g.order === 0,
327
- [`${m}-${x}-offset-${g.offset}`]: g.offset || g.offset === 0,
328
- [`${m}-${x}-push-${g.push}`]: g.push || g.push === 0,
329
- [`${m}-${x}-pull-${g.pull}`]: g.pull || g.pull === 0,
330
- [`${m}-rtl`]: n === "rtl"
331
- }), g.flex && (b[`${m}-${x}-flex`] = !0, p[`--${m}-${x}-flex`] = Te(g.flex));
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));
332
266
  });
333
- const P = J(m, {
334
- [`${m}-${a}`]: a !== void 0,
335
- [`${m}-order-${c}`]: c,
336
- [`${m}-offset-${f}`]: f,
337
- [`${m}-push-${y}`]: y,
338
- [`${m}-pull-${$}`]: $
339
- }, O, b, u, h), v = {};
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 = {};
340
274
  if (o && o[0] > 0) {
341
- const x = o[0] / 2;
342
- v.paddingLeft = x, v.paddingRight = x;
275
+ const $ = o[0] / 2;
276
+ C.paddingLeft = $, C.paddingRight = $;
343
277
  }
344
- return S && (v.flex = Te(S), s === !1 && !v.minWidth && (v.minWidth = 0)), N(/* @__PURE__ */ l.createElement("div", Object.assign({}, I, {
345
- style: Object.assign(Object.assign(Object.assign({}, v), E), p),
346
- className: P,
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,
347
281
  ref: t
348
282
  }), R));
349
283
  });
350
284
  process.env.NODE_ENV !== "production" && (Oe.displayName = "Col");
351
- var $n = function(e, t) {
285
+ var mn = function(e, t) {
352
286
  var r = {};
353
287
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
354
288
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
@@ -358,13 +292,13 @@ var $n = function(e, t) {
358
292
  function We(e, t) {
359
293
  const [r, n] = l.useState(typeof e == "string" ? e : ""), o = () => {
360
294
  if (typeof e == "string" && n(e), typeof e == "object")
361
- for (let s = 0; s < ce.length; s++) {
362
- const i = ce[s];
363
- if (!t[i])
295
+ for (let s = 0; s < ge.length; s++) {
296
+ const a = ge[s];
297
+ if (!t[a])
364
298
  continue;
365
- const a = e[i];
366
- if (a !== void 0) {
367
- n(a);
299
+ const c = e[a];
300
+ if (c !== void 0) {
301
+ n(c);
368
302
  return;
369
303
  }
370
304
  }
@@ -373,78 +307,78 @@ function We(e, t) {
373
307
  o();
374
308
  }, [JSON.stringify(e), t]), r;
375
309
  }
376
- const et = /* @__PURE__ */ l.forwardRef((e, t) => {
310
+ const Ze = /* @__PURE__ */ l.forwardRef((e, t) => {
377
311
  const {
378
312
  prefixCls: r,
379
313
  justify: n,
380
314
  align: o,
381
315
  className: s,
382
- style: i,
383
- children: a,
384
- gutter: c = 0,
385
- wrap: f
386
- } = e, y = $n(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
387
- getPrefixCls: $,
316
+ style: a,
317
+ children: c,
318
+ gutter: u = 0,
319
+ wrap: m
320
+ } = e, E = mn(e, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]), {
321
+ getPrefixCls: y,
388
322
  direction: O
389
- } = l.useContext(ue), [R, S] = l.useState({
323
+ } = l.useContext(ce), [R, w] = l.useState({
390
324
  xs: !0,
391
325
  sm: !0,
392
326
  md: !0,
393
327
  lg: !0,
394
328
  xl: !0,
395
329
  xxl: !0
396
- }), [E, I] = l.useState({
330
+ }), [S, I] = l.useState({
397
331
  xs: !1,
398
332
  sm: !1,
399
333
  md: !1,
400
334
  lg: !1,
401
335
  xl: !1,
402
336
  xxl: !1
403
- }), m = We(o, E), N = We(n, E), u = l.useRef(c), h = hn();
337
+ }), f = We(o, S), j = We(n, S), i = l.useRef(u), h = Gt();
404
338
  l.useEffect(() => {
405
339
  const d = h.subscribe((z) => {
406
340
  I(z);
407
- const w = u.current || 0;
408
- (!Array.isArray(w) && typeof w == "object" || Array.isArray(w) && (typeof w[0] == "object" || typeof w[1] == "object")) && S(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);
409
343
  });
410
344
  return () => h.unsubscribe(d);
411
345
  }, []);
412
346
  const p = () => {
413
347
  const d = [void 0, void 0];
414
- return (Array.isArray(c) ? c : [c, void 0]).forEach((w, q) => {
415
- if (typeof w == "object")
416
- for (let T = 0; T < ce.length; T++) {
417
- const G = ce[T];
418
- if (R[G] && w[G] !== void 0) {
419
- d[q] = w[G];
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];
420
354
  break;
421
355
  }
422
356
  }
423
357
  else
424
- d[q] = w;
358
+ d[q] = v;
425
359
  }), d;
426
- }, b = $("row", r), [P, v, x] = dn(b), g = p(), j = J(b, {
427
- [`${b}-no-wrap`]: f === !1,
428
- [`${b}-${N}`]: N,
429
- [`${b}-${m}`]: m,
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,
430
364
  [`${b}-rtl`]: O === "rtl"
431
- }, s, v, x), H = {}, M = g[0] != null && g[0] > 0 ? g[0] / -2 : void 0;
432
- M && (H.marginLeft = M, H.marginRight = M);
433
- const [C, V] = g;
434
- H.rowGap = V;
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;
435
369
  const A = l.useMemo(() => ({
436
- gutter: [C, V],
437
- wrap: f
438
- }), [C, V, f]);
439
- return P(/* @__PURE__ */ l.createElement(Ze.Provider, {
370
+ gutter: [x, P],
371
+ wrap: m
372
+ }), [x, P, m]);
373
+ return V(/* @__PURE__ */ l.createElement(Je.Provider, {
440
374
  value: A
441
- }, /* @__PURE__ */ l.createElement("div", Object.assign({}, y, {
442
- className: j,
443
- style: Object.assign(Object.assign({}, H), i),
375
+ }, /* @__PURE__ */ l.createElement("div", Object.assign({}, E, {
376
+ className: M,
377
+ style: Object.assign(Object.assign({}, H), a),
444
378
  ref: t
445
- }), a)));
379
+ }), c)));
446
380
  });
447
- process.env.NODE_ENV !== "production" && (et.displayName = "Row");
381
+ process.env.NODE_ENV !== "production" && (Ze.displayName = "Row");
448
382
  function he(e) {
449
383
  const [t, r] = l.useState(e);
450
384
  return l.useEffect(() => {
@@ -456,7 +390,7 @@ function he(e) {
456
390
  };
457
391
  }, [e]), t;
458
392
  }
459
- const xn = (e) => {
393
+ const pn = (e) => {
460
394
  const {
461
395
  componentCls: t
462
396
  } = e, r = `${t}-show-help`, n = `${t}-show-help-item`;
@@ -496,7 +430,7 @@ const xn = (e) => {
496
430
  }
497
431
  }
498
432
  };
499
- }, Cn = (e) => ({
433
+ }, gn = (e) => ({
500
434
  legend: {
501
435
  display: "block",
502
436
  width: "100%",
@@ -554,12 +488,12 @@ const xn = (e) => {
554
488
  }
555
489
  }
556
490
  };
557
- }, vn = (e) => {
491
+ }, hn = (e) => {
558
492
  const {
559
493
  componentCls: t
560
494
  } = e;
561
495
  return {
562
- [e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)), Cn(e)), {
496
+ [e.componentCls]: Object.assign(Object.assign(Object.assign({}, ke(e)), gn(e)), {
563
497
  [`${t}-text`]: {
564
498
  display: "inline-block",
565
499
  paddingInlineEnd: e.paddingSM
@@ -571,19 +505,19 @@ const xn = (e) => {
571
505
  "&-large": Object.assign({}, He(e, e.controlHeightLG))
572
506
  })
573
507
  };
574
- }, wn = (e) => {
508
+ }, bn = (e) => {
575
509
  const {
576
510
  formItemCls: t,
577
511
  iconCls: r,
578
512
  componentCls: n,
579
513
  rootPrefixCls: o,
580
514
  antCls: s,
581
- labelRequiredMarkColor: i,
582
- labelColor: a,
583
- labelFontSize: c,
584
- labelHeight: f,
585
- labelColonMarginInlineStart: y,
586
- labelColonMarginInlineEnd: $,
515
+ labelRequiredMarkColor: a,
516
+ labelColor: c,
517
+ labelFontSize: u,
518
+ labelHeight: m,
519
+ labelColonMarginInlineStart: E,
520
+ labelColonMarginInlineEnd: y,
587
521
  itemMarginBottom: O
588
522
  } = e;
589
523
  return {
@@ -630,9 +564,9 @@ const xn = (e) => {
630
564
  display: "inline-flex",
631
565
  alignItems: "center",
632
566
  maxWidth: "100%",
633
- height: f,
634
- color: a,
635
- fontSize: c,
567
+ height: m,
568
+ color: c,
569
+ fontSize: u,
636
570
  [`> ${r}`]: {
637
571
  fontSize: e.fontSize,
638
572
  verticalAlign: "top"
@@ -641,7 +575,7 @@ const xn = (e) => {
641
575
  [`&${t}-required:not(${t}-required-mark-optional)::before`]: {
642
576
  display: "inline-block",
643
577
  marginInlineEnd: e.marginXXS,
644
- color: i,
578
+ color: a,
645
579
  fontSize: e.fontSize,
646
580
  fontFamily: "SimSun, sans-serif",
647
581
  lineHeight: 1,
@@ -670,8 +604,8 @@ const xn = (e) => {
670
604
  content: '":"',
671
605
  position: "relative",
672
606
  marginBlock: 0,
673
- marginInlineStart: y,
674
- marginInlineEnd: $
607
+ marginInlineStart: E,
608
+ marginInlineEnd: y
675
609
  },
676
610
  [`&${t}-no-colon::after`]: {
677
611
  content: '"\\a0"'
@@ -786,7 +720,7 @@ const xn = (e) => {
786
720
  }
787
721
  }
788
722
  };
789
- }, Sn = (e) => {
723
+ }, yn = (e) => {
790
724
  const {
791
725
  componentCls: t,
792
726
  formItemCls: r,
@@ -820,7 +754,7 @@ const xn = (e) => {
820
754
  }
821
755
  }
822
756
  };
823
- }, Y = (e) => ({
757
+ }, U = (e) => ({
824
758
  padding: e.verticalLabelPadding,
825
759
  margin: e.verticalLabelMargin,
826
760
  whiteSpace: "initial",
@@ -832,14 +766,14 @@ const xn = (e) => {
832
766
  visibility: "hidden"
833
767
  }
834
768
  }
835
- }), tt = (e) => {
769
+ }), et = (e) => {
836
770
  const {
837
771
  componentCls: t,
838
772
  formItemCls: r,
839
773
  rootPrefixCls: n
840
774
  } = e;
841
775
  return {
842
- [`${r} ${r}-label`]: Y(e),
776
+ [`${r} ${r}-label`]: U(e),
843
777
  // ref: https://github.com/ant-design/ant-design/issues/45122
844
778
  [`${t}:not(${t}-inline)`]: {
845
779
  [r]: {
@@ -856,7 +790,7 @@ const xn = (e) => {
856
790
  }
857
791
  }
858
792
  };
859
- }, En = (e) => {
793
+ }, $n = (e) => {
860
794
  const {
861
795
  componentCls: t,
862
796
  formItemCls: r,
@@ -876,39 +810,39 @@ const xn = (e) => {
876
810
  },
877
811
  [`${r}-label,
878
812
  ${n}-col-24${r}-label,
879
- ${n}-col-xl-24${r}-label`]: Y(e)
813
+ ${n}-col-xl-24${r}-label`]: U(e)
880
814
  }
881
815
  },
882
- [`@media (max-width: ${Q(e.screenXSMax)})`]: [tt(e), {
816
+ [`@media (max-width: ${Q(e.screenXSMax)})`]: [et(e), {
883
817
  [t]: {
884
818
  [`${r}:not(${r}-horizontal)`]: {
885
- [`${n}-col-xs-24${r}-label`]: Y(e)
819
+ [`${n}-col-xs-24${r}-label`]: U(e)
886
820
  }
887
821
  }
888
822
  }],
889
823
  [`@media (max-width: ${Q(e.screenSMMax)})`]: {
890
824
  [t]: {
891
825
  [`${r}:not(${r}-horizontal)`]: {
892
- [`${n}-col-sm-24${r}-label`]: Y(e)
826
+ [`${n}-col-sm-24${r}-label`]: U(e)
893
827
  }
894
828
  }
895
829
  },
896
830
  [`@media (max-width: ${Q(e.screenMDMax)})`]: {
897
831
  [t]: {
898
832
  [`${r}:not(${r}-horizontal)`]: {
899
- [`${n}-col-md-24${r}-label`]: Y(e)
833
+ [`${n}-col-md-24${r}-label`]: U(e)
900
834
  }
901
835
  }
902
836
  },
903
837
  [`@media (max-width: ${Q(e.screenLGMax)})`]: {
904
838
  [t]: {
905
839
  [`${r}:not(${r}-horizontal)`]: {
906
- [`${n}-col-lg-24${r}-label`]: Y(e)
840
+ [`${n}-col-lg-24${r}-label`]: U(e)
907
841
  }
908
842
  }
909
843
  }
910
844
  };
911
- }, On = (e) => {
845
+ }, xn = (e) => {
912
846
  const {
913
847
  formItemCls: t,
914
848
  antCls: r
@@ -927,29 +861,29 @@ const xn = (e) => {
927
861
  },
928
862
  [`${t}-vertical ${t}-label,
929
863
  ${r}-col-24${t}-label,
930
- ${r}-col-xl-24${t}-label`]: Y(e),
931
- [`@media (max-width: ${Q(e.screenXSMax)})`]: [tt(e), {
864
+ ${r}-col-xl-24${t}-label`]: U(e),
865
+ [`@media (max-width: ${Q(e.screenXSMax)})`]: [et(e), {
932
866
  [t]: {
933
- [`${r}-col-xs-24${t}-label`]: Y(e)
867
+ [`${r}-col-xs-24${t}-label`]: U(e)
934
868
  }
935
869
  }],
936
870
  [`@media (max-width: ${Q(e.screenSMMax)})`]: {
937
871
  [t]: {
938
- [`${r}-col-sm-24${t}-label`]: Y(e)
872
+ [`${r}-col-sm-24${t}-label`]: U(e)
939
873
  }
940
874
  },
941
875
  [`@media (max-width: ${Q(e.screenMDMax)})`]: {
942
876
  [t]: {
943
- [`${r}-col-md-24${t}-label`]: Y(e)
877
+ [`${r}-col-md-24${t}-label`]: U(e)
944
878
  }
945
879
  },
946
880
  [`@media (max-width: ${Q(e.screenLGMax)})`]: {
947
881
  [t]: {
948
- [`${r}-col-lg-24${t}-label`]: Y(e)
882
+ [`${r}-col-lg-24${t}-label`]: U(e)
949
883
  }
950
884
  }
951
885
  };
952
- }, In = (e) => ({
886
+ }, Cn = (e) => ({
953
887
  labelRequiredMarkColor: e.colorError,
954
888
  labelColor: e.colorTextHeading,
955
889
  labelFontSize: e.fontSize,
@@ -960,16 +894,16 @@ const xn = (e) => {
960
894
  verticalLabelPadding: `0 0 ${e.paddingXS}px`,
961
895
  verticalLabelMargin: 0,
962
896
  inlineItemMarginBottom: 0
963
- }), nt = (e, t) => Xe(e, {
897
+ }), tt = (e, t) => Xe(e, {
964
898
  formItemCls: `${e.componentCls}-item`,
965
899
  rootPrefixCls: t
966
900
  }), Ie = we("Form", (e, t) => {
967
901
  let {
968
902
  rootPrefixCls: r
969
903
  } = t;
970
- const n = nt(e, r);
971
- return [vn(n), wn(n), xn(n), Ae(n, n.componentCls), Ae(n, n.formItemCls), Sn(n), En(n), On(n), Ht(n), Qe];
972
- }, In, {
904
+ 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];
906
+ }, Cn, {
973
907
  // Let From style before the Grid
974
908
  // ref https://github.com/ant-design/ant-design/issues/44386
975
909
  order: -1e3
@@ -982,110 +916,110 @@ function Ce(e, t, r) {
982
916
  errorStatus: r
983
917
  };
984
918
  }
985
- const rt = (e) => {
919
+ const nt = (e) => {
986
920
  let {
987
921
  help: t,
988
922
  helpStatus: r,
989
923
  errors: n = ze,
990
924
  warnings: o = ze,
991
925
  className: s,
992
- fieldId: i,
993
- onVisibleChanged: a
926
+ fieldId: a,
927
+ onVisibleChanged: c
994
928
  } = e;
995
929
  const {
996
- prefixCls: c
997
- } = l.useContext(Se), f = `${c}-item-explain`, y = Ee(c), [$, O, R] = Ie(c, y), S = l.useMemo(() => Pe(c), [c]), E = he(n), I = he(o), m = l.useMemo(() => t != null ? [Ce(t, "help", r)] : [].concat(K(E.map((h, p) => Ce(h, "error", "error", p))), K(I.map((h, p) => Ce(h, "warning", "warning", p)))), [t, r, E, I]), N = l.useMemo(() => {
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(() => {
998
932
  const h = {};
999
- return m.forEach((p) => {
933
+ return f.forEach((p) => {
1000
934
  let {
1001
935
  key: b
1002
936
  } = p;
1003
937
  h[b] = (h[b] || 0) + 1;
1004
- }), m.map((p, b) => Object.assign(Object.assign({}, p), {
938
+ }), f.map((p, b) => Object.assign(Object.assign({}, p), {
1005
939
  key: h[p.key] > 1 ? `${p.key}-fallback-${b}` : p.key
1006
940
  }));
1007
- }, [m]), u = {};
1008
- return i && (u.id = `${i}_help`), $(/* @__PURE__ */ l.createElement(pt, {
1009
- motionDeadline: S.motionDeadline,
1010
- motionName: `${c}-show-help`,
1011
- visible: !!N.length,
1012
- onVisibleChanged: a
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
1013
947
  }, (h) => {
1014
948
  const {
1015
949
  className: p,
1016
950
  style: b
1017
951
  } = h;
1018
- return /* @__PURE__ */ l.createElement("div", Object.assign({}, u, {
1019
- className: J(f, p, R, y, s, O),
952
+ return /* @__PURE__ */ l.createElement("div", Object.assign({}, i, {
953
+ className: J(m, p, R, E, s, O),
1020
954
  style: b,
1021
955
  role: "alert"
1022
- }), /* @__PURE__ */ l.createElement(gt, Object.assign({
1023
- keys: N
1024
- }, Pe(c), {
1025
- motionName: `${c}-show-help-item`,
956
+ }), /* @__PURE__ */ l.createElement(pt, Object.assign({
957
+ keys: j
958
+ }, Ve(u), {
959
+ motionName: `${u}-show-help-item`,
1026
960
  component: !1
1027
- }), (P) => {
961
+ }), (V) => {
1028
962
  const {
1029
- key: v,
1030
- error: x,
963
+ key: C,
964
+ error: $,
1031
965
  errorStatus: g,
1032
- className: j,
966
+ className: M,
1033
967
  style: H
1034
- } = P;
968
+ } = V;
1035
969
  return /* @__PURE__ */ l.createElement("div", {
1036
- key: v,
1037
- className: J(j, {
1038
- [`${f}-${g}`]: g
970
+ key: C,
971
+ className: J(M, {
972
+ [`${m}-${g}`]: g
1039
973
  }),
1040
974
  style: H
1041
- }, x);
975
+ }, $);
1042
976
  }));
1043
977
  }));
1044
- }, Fn = ["parentNode"], Mn = "form_item";
1045
- function ae(e) {
978
+ }, vn = ["parentNode"], wn = "form_item";
979
+ function ie(e) {
1046
980
  return e === void 0 || e === !1 ? [] : Array.isArray(e) ? e : [e];
1047
981
  }
1048
- function ot(e, t) {
982
+ function rt(e, t) {
1049
983
  if (!e.length)
1050
984
  return;
1051
985
  const r = e.join("_");
1052
- return t ? `${t}_${r}` : Fn.includes(r) ? `${Mn}_${r}` : r;
986
+ return t ? `${t}_${r}` : vn.includes(r) ? `${wn}_${r}` : r;
1053
987
  }
1054
- function st(e, t, r, n, o, s) {
1055
- let i = n;
1056
- return s !== void 0 ? i = s : r.validating ? i = "validating" : e.length ? i = "error" : t.length ? i = "warning" : (r.touched || o && r.validated) && (i = "success"), i;
988
+ function ot(e, t, r, n, o, s) {
989
+ let a = n;
990
+ 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;
1057
991
  }
1058
992
  function qe(e) {
1059
- return ae(e).join("_");
993
+ return ie(e).join("_");
1060
994
  }
1061
995
  function Be(e, t) {
1062
- const r = t.getFieldInstance(e), n = ht(r);
996
+ const r = t.getFieldInstance(e), n = gt(r);
1063
997
  if (n)
1064
998
  return n;
1065
- const o = ot(ae(e), t.__INTERNAL__.name);
999
+ const o = rt(ie(e), t.__INTERNAL__.name);
1066
1000
  if (o)
1067
1001
  return document.getElementById(o);
1068
1002
  }
1069
1003
  function lt(e) {
1070
- const [t] = Mt(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
1004
+ const [t] = Ft(), r = l.useRef({}), n = l.useMemo(() => e ?? Object.assign(Object.assign({}, t), {
1071
1005
  __INTERNAL__: {
1072
1006
  itemRef: (o) => (s) => {
1073
- const i = qe(o);
1074
- s ? r.current[i] = s : delete r.current[i];
1007
+ const a = qe(o);
1008
+ s ? r.current[a] = s : delete r.current[a];
1075
1009
  }
1076
1010
  },
1077
1011
  scrollToField: function(o) {
1078
1012
  let s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1079
- const i = Be(o, n);
1080
- i && rn(i, Object.assign({
1013
+ const a = Be(o, n);
1014
+ a && en(a, Object.assign({
1081
1015
  scrollMode: "if-needed",
1082
1016
  block: "nearest"
1083
1017
  }, s));
1084
1018
  },
1085
1019
  focusField: (o) => {
1086
1020
  var s;
1087
- const i = Be(o, n);
1088
- i && ((s = i.focus) === null || s === void 0 || s.call(i));
1021
+ const a = Be(o, n);
1022
+ a && ((s = a.focus) === null || s === void 0 || s.call(a));
1089
1023
  },
1090
1024
  getFieldInstance: (o) => {
1091
1025
  const s = qe(o);
@@ -1094,105 +1028,105 @@ function lt(e) {
1094
1028
  }), [e, t]);
1095
1029
  return [n];
1096
1030
  }
1097
- const pe = {};
1098
- function Nn(e) {
1031
+ const me = {};
1032
+ function Sn(e) {
1099
1033
  let {
1100
1034
  name: t
1101
1035
  } = e;
1102
1036
  const r = be("Form");
1103
1037
  l.useEffect(() => {
1104
1038
  if (t)
1105
- return pe[t] = (pe[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(pe[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
1106
- pe[t] -= 1;
1039
+ return me[t] = (me[t] || 0) + 1, process.env.NODE_ENV !== "production" && r(me[t] <= 1, "usage", "There exist multiple Form with same `name`."), () => {
1040
+ me[t] -= 1;
1107
1041
  };
1108
1042
  }, [t]);
1109
1043
  }
1110
- var jn = function(e, t) {
1044
+ var En = function(e, t) {
1111
1045
  var r = {};
1112
1046
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1113
1047
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1114
1048
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1115
1049
  return r;
1116
1050
  };
1117
- const _n = (e, t) => {
1118
- const r = l.useContext(bt), {
1051
+ const On = (e, t) => {
1052
+ const r = l.useContext(ht), {
1119
1053
  getPrefixCls: n,
1120
1054
  direction: o,
1121
1055
  form: s
1122
- } = l.useContext(ue), {
1123
- prefixCls: i,
1124
- className: a,
1125
- rootClassName: c,
1126
- size: f,
1127
- disabled: y = r,
1128
- form: $,
1056
+ } = l.useContext(ce), {
1057
+ prefixCls: a,
1058
+ className: c,
1059
+ rootClassName: u,
1060
+ size: m,
1061
+ disabled: E = r,
1062
+ form: y,
1129
1063
  colon: O,
1130
1064
  labelAlign: R,
1131
- labelWrap: S,
1132
- labelCol: E,
1065
+ labelWrap: w,
1066
+ labelCol: S,
1133
1067
  wrapperCol: I,
1134
- hideRequiredMark: m,
1135
- layout: N = "horizontal",
1136
- scrollToFirstError: u,
1068
+ hideRequiredMark: f,
1069
+ layout: j = "horizontal",
1070
+ scrollToFirstError: i,
1137
1071
  requiredMark: h,
1138
1072
  onFinishFailed: p,
1139
1073
  name: b,
1140
- style: P,
1141
- feedbackIcons: v,
1142
- variant: x
1143
- } = e, g = jn(e, ["prefixCls", "className", "rootClassName", "size", "disabled", "form", "colon", "labelAlign", "labelWrap", "labelCol", "wrapperCol", "hideRequiredMark", "layout", "scrollToFirstError", "requiredMark", "onFinishFailed", "name", "style", "feedbackIcons", "variant"]), j = zt(f), H = l.useContext(yt);
1144
- process.env.NODE_ENV !== "production" && Nn(e);
1145
- const M = l.useMemo(() => h !== void 0 ? h : m ? !1 : s && s.requiredMark !== void 0 ? s.requiredMark : !0, [m, h, s]), C = O ?? (s == null ? void 0 : s.colon), V = n("form", i), A = Ee(V), [d, z, w] = Ie(V, A), q = J(V, `${V}-${N}`, {
1146
- [`${V}-hide-required-mark`]: M === !1,
1147
- [`${V}-rtl`]: o === "rtl",
1148
- [`${V}-${j}`]: j
1149
- }, w, A, z, s == null ? void 0 : s.className, a, c), [T] = lt($), {
1074
+ 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), {
1150
1084
  __INTERNAL__: G
1151
1085
  } = T;
1152
1086
  G.name = b;
1153
1087
  const X = l.useMemo(() => ({
1154
1088
  name: b,
1155
1089
  labelAlign: R,
1156
- labelCol: E,
1157
- labelWrap: S,
1090
+ labelCol: S,
1091
+ labelWrap: w,
1158
1092
  wrapperCol: I,
1159
- vertical: N === "vertical",
1160
- colon: C,
1161
- requiredMark: M,
1093
+ vertical: j === "vertical",
1094
+ colon: x,
1095
+ requiredMark: N,
1162
1096
  itemRef: G.itemRef,
1163
1097
  form: T,
1164
- feedbackIcons: v
1165
- }), [b, R, E, I, N, C, M, T, v]), U = l.useRef(null);
1098
+ feedbackIcons: C
1099
+ }), [b, R, S, I, j, x, N, T, C]), K = l.useRef(null);
1166
1100
  l.useImperativeHandle(t, () => {
1167
- var D;
1101
+ var L;
1168
1102
  return Object.assign(Object.assign({}, T), {
1169
- nativeElement: (D = U.current) === null || D === void 0 ? void 0 : D.nativeElement
1103
+ nativeElement: (L = K.current) === null || L === void 0 ? void 0 : L.nativeElement
1170
1104
  });
1171
1105
  });
1172
- const Z = (D, F) => {
1173
- if (D) {
1106
+ const Z = (L, F) => {
1107
+ if (L) {
1174
1108
  let _ = {
1175
1109
  block: "nearest"
1176
1110
  };
1177
- typeof D == "object" && (_ = Object.assign(Object.assign({}, _), D)), T.scrollToField(F, _), _.focus && T.focusField(F);
1111
+ typeof L == "object" && (_ = Object.assign(Object.assign({}, _), L)), T.scrollToField(F, _), _.focus && T.focusField(F);
1178
1112
  }
1179
- }, ee = (D) => {
1180
- if (p == null || p(D), D.errorFields.length) {
1181
- const F = D.errorFields[0].name;
1182
- if (u !== void 0) {
1183
- Z(u, F);
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);
1184
1118
  return;
1185
1119
  }
1186
1120
  s && s.scrollToFirstError !== void 0 && Z(s.scrollToFirstError, F);
1187
1121
  }
1188
1122
  };
1189
1123
  return d(/* @__PURE__ */ l.createElement(Nt.Provider, {
1190
- value: x
1191
- }, /* @__PURE__ */ l.createElement($t, {
1192
- disabled: y
1193
- }, /* @__PURE__ */ l.createElement(xt.Provider, {
1194
- value: j
1195
- }, /* @__PURE__ */ l.createElement(Ke, {
1124
+ value: $
1125
+ }, /* @__PURE__ */ l.createElement(yt, {
1126
+ disabled: E
1127
+ }, /* @__PURE__ */ l.createElement($t.Provider, {
1128
+ value: M
1129
+ }, /* @__PURE__ */ l.createElement(Ye, {
1196
1130
  // This is not list in API, we pass with spread
1197
1131
  validateMessages: H
1198
1132
  }, /* @__PURE__ */ l.createElement(ne.Provider, {
@@ -1203,16 +1137,16 @@ const _n = (e, t) => {
1203
1137
  name: b,
1204
1138
  onFinishFailed: ee,
1205
1139
  form: T,
1206
- ref: U,
1207
- style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), P),
1140
+ ref: K,
1141
+ style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), V),
1208
1142
  className: q
1209
1143
  }))))))));
1210
- }, it = /* @__PURE__ */ l.forwardRef(_n);
1211
- process.env.NODE_ENV !== "production" && (it.displayName = "Form");
1212
- function Rn(e) {
1144
+ }, st = /* @__PURE__ */ l.forwardRef(On);
1145
+ process.env.NODE_ENV !== "production" && (st.displayName = "Form");
1146
+ function In(e) {
1213
1147
  if (typeof e == "function")
1214
1148
  return e;
1215
- const t = Bt(e);
1149
+ const t = zt(e);
1216
1150
  return t.length <= 1 ? t[0] : t;
1217
1151
  }
1218
1152
  const at = () => {
@@ -1220,7 +1154,7 @@ const at = () => {
1220
1154
  status: e,
1221
1155
  errors: t = [],
1222
1156
  warnings: r = []
1223
- } = l.useContext(ge);
1157
+ } = l.useContext(pe);
1224
1158
  if (process.env.NODE_ENV !== "production") {
1225
1159
  const n = be("Form.Item");
1226
1160
  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");
@@ -1231,35 +1165,35 @@ const at = () => {
1231
1165
  warnings: r
1232
1166
  };
1233
1167
  };
1234
- at.Context = ge;
1235
- function Pn(e) {
1168
+ at.Context = pe;
1169
+ function Fn(e) {
1236
1170
  const [t, r] = l.useState(e), n = l.useRef(null), o = l.useRef([]), s = l.useRef(!1);
1237
1171
  l.useEffect(() => (s.current = !1, () => {
1238
1172
  s.current = !0, _e.cancel(n.current), n.current = null;
1239
1173
  }), []);
1240
- function i(a) {
1174
+ function a(c) {
1241
1175
  s.current || (n.current === null && (o.current = [], n.current = _e(() => {
1242
- n.current = null, r((c) => {
1243
- let f = c;
1244
- return o.current.forEach((y) => {
1245
- f = y(f);
1246
- }), f;
1176
+ n.current = null, r((u) => {
1177
+ let m = u;
1178
+ return o.current.forEach((E) => {
1179
+ m = E(m);
1180
+ }), m;
1247
1181
  });
1248
- })), o.current.push(a));
1182
+ })), o.current.push(c));
1249
1183
  }
1250
- return [t, i];
1184
+ return [t, a];
1251
1185
  }
1252
- function Vn() {
1186
+ function Nn() {
1253
1187
  const {
1254
1188
  itemRef: e
1255
1189
  } = l.useContext(ne), t = l.useRef({});
1256
1190
  function r(n, o) {
1257
- const s = o && typeof o == "object" && Ct(o), i = n.join("_");
1258
- return (t.current.name !== i || t.current.originRef !== s) && (t.current.name = i, t.current.originRef = s, t.current.ref = vt(e(n), s)), t.current.ref;
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;
1259
1193
  }
1260
1194
  return r;
1261
1195
  }
1262
- const Ln = (e) => {
1196
+ const jn = (e) => {
1263
1197
  const {
1264
1198
  formItemCls: t
1265
1199
  } = e;
@@ -1271,164 +1205,171 @@ const Ln = (e) => {
1271
1205
  }
1272
1206
  }
1273
1207
  };
1274
- }, Dn = wt(["Form", "item-item"], (e, t) => {
1208
+ }, Mn = vt(["Form", "item-item"], (e, t) => {
1275
1209
  let {
1276
1210
  rootPrefixCls: r
1277
1211
  } = t;
1278
- const n = nt(e, r);
1279
- return [Ln(n)];
1212
+ const n = tt(e, r);
1213
+ return [jn(n)];
1280
1214
  });
1281
- var Tn = function(e, t) {
1215
+ var _n = function(e, t) {
1282
1216
  var r = {};
1283
1217
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1284
1218
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1285
1219
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1286
1220
  return r;
1287
1221
  };
1288
- const Wn = 24, Hn = (e) => {
1222
+ const Rn = 24, Vn = (e) => {
1289
1223
  const {
1290
1224
  prefixCls: t,
1291
1225
  status: r,
1292
1226
  labelCol: n,
1293
1227
  wrapperCol: o,
1294
1228
  children: s,
1295
- errors: i,
1296
- warnings: a,
1297
- _internalItemRender: c,
1298
- extra: f,
1299
- help: y,
1300
- fieldId: $,
1229
+ errors: a,
1230
+ warnings: c,
1231
+ _internalItemRender: u,
1232
+ extra: m,
1233
+ help: E,
1234
+ fieldId: y,
1301
1235
  marginBottom: O,
1302
1236
  onErrorVisibleChanged: R,
1303
- label: S
1304
- } = e, E = `${t}-item`, I = l.useContext(ne), m = l.useMemo(() => {
1305
- let C = Object.assign({}, o || I.wrapperCol || {});
1306
- return S === null && !n && !o && I.labelCol && [void 0, "xs", "sm", "md", "lg", "xl", "xxl"].forEach((A) => {
1307
- const d = A ? [A] : [], z = Re(I.labelCol, d), w = typeof z == "object" ? z : {}, q = Re(C, d), T = typeof q == "object" ? q : {};
1308
- "span" in w && !("offset" in T) && w.span < Wn && (C = St(C, [].concat(d, ["offset"]), w.span));
1309
- }), C;
1310
- }, [o, I]), N = J(`${E}-control`, m.className), u = l.useMemo(() => Tn(I, ["labelCol", "wrapperCol"]), [I]), h = l.useRef(null), [p, b] = l.useState(0);
1311
- Ue(() => {
1312
- f && h.current ? b(h.current.clientHeight) : b(0);
1313
- }, [f]);
1314
- const P = /* @__PURE__ */ l.createElement("div", {
1315
- className: `${E}-control-input`
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);
1247
+ }, [m]);
1248
+ const V = /* @__PURE__ */ l.createElement("div", {
1249
+ className: `${S}-control-input`
1316
1250
  }, /* @__PURE__ */ l.createElement("div", {
1317
- className: `${E}-control-input-content`
1318
- }, s)), v = l.useMemo(() => ({
1251
+ className: `${S}-control-input-content`
1252
+ }, s)), C = l.useMemo(() => ({
1319
1253
  prefixCls: t,
1320
1254
  status: r
1321
- }), [t, r]), x = O !== null || i.length || a.length ? /* @__PURE__ */ l.createElement(Se.Provider, {
1322
- value: v
1323
- }, /* @__PURE__ */ l.createElement(rt, {
1324
- fieldId: $,
1325
- errors: i,
1326
- warnings: a,
1327
- help: y,
1255
+ }), [t, r]), $ = O !== null || a.length || c.length ? /* @__PURE__ */ l.createElement(Se.Provider, {
1256
+ value: C
1257
+ }, /* @__PURE__ */ l.createElement(nt, {
1258
+ fieldId: y,
1259
+ errors: a,
1260
+ warnings: c,
1261
+ help: E,
1328
1262
  helpStatus: r,
1329
- className: `${E}-explain-connected`,
1263
+ className: `${S}-explain-connected`,
1330
1264
  onVisibleChanged: R
1331
1265
  })) : null, g = {};
1332
- $ && (g.id = `${$}_extra`);
1333
- const j = f ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
1334
- className: `${E}-extra`,
1266
+ y && (g.id = `${y}_extra`);
1267
+ const M = m ? /* @__PURE__ */ l.createElement("div", Object.assign({}, g, {
1268
+ className: `${S}-extra`,
1335
1269
  ref: h
1336
- }), f) : null, H = x || j ? /* @__PURE__ */ l.createElement("div", {
1337
- className: `${E}-additional`,
1270
+ }), m) : null, H = $ || M ? /* @__PURE__ */ l.createElement("div", {
1271
+ className: `${S}-additional`,
1338
1272
  style: O ? {
1339
1273
  minHeight: O + p
1340
1274
  } : {}
1341
- }, x, j) : null, M = c && c.mark === "pro_table_render" && c.render ? c.render(e, {
1342
- input: P,
1343
- errorList: x,
1344
- extra: j
1345
- }) : /* @__PURE__ */ l.createElement(l.Fragment, null, P, H);
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);
1346
1280
  return /* @__PURE__ */ l.createElement(ne.Provider, {
1347
- value: u
1348
- }, /* @__PURE__ */ l.createElement(Oe, Object.assign({}, m, {
1349
- className: N
1350
- }), M), /* @__PURE__ */ l.createElement(Dn, {
1281
+ value: i
1282
+ }, /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
1283
+ className: j
1284
+ }), N), /* @__PURE__ */ l.createElement(Mn, {
1351
1285
  prefixCls: t
1352
1286
  }));
1353
1287
  };
1354
- var An = function(e, t) {
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) {
1289
+ return /* @__PURE__ */ l.createElement(Xt, Lt({}, t, {
1290
+ ref: r,
1291
+ icon: Pn
1292
+ }));
1293
+ }, it = /* @__PURE__ */ l.forwardRef(Dn);
1294
+ process.env.NODE_ENV !== "production" && (it.displayName = "QuestionCircleOutlined");
1295
+ var Ln = function(e, t) {
1355
1296
  var r = {};
1356
1297
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1357
1298
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1358
1299
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1359
1300
  return r;
1360
1301
  };
1361
- function zn(e) {
1302
+ function Tn(e) {
1362
1303
  return e ? typeof e == "object" && !/* @__PURE__ */ l.isValidElement(e) ? e : {
1363
1304
  title: e
1364
1305
  } : null;
1365
1306
  }
1366
- const qn = (e) => {
1307
+ const Wn = (e) => {
1367
1308
  let {
1368
1309
  prefixCls: t,
1369
1310
  label: r,
1370
1311
  htmlFor: n,
1371
1312
  labelCol: o,
1372
1313
  labelAlign: s,
1373
- colon: i,
1374
- required: a,
1375
- requiredMark: c,
1376
- tooltip: f,
1377
- vertical: y
1314
+ colon: a,
1315
+ required: c,
1316
+ requiredMark: u,
1317
+ tooltip: m,
1318
+ vertical: E
1378
1319
  } = e;
1379
- var $;
1380
- const [O] = Ut("Form"), {
1320
+ var y;
1321
+ const [O] = kt("Form"), {
1381
1322
  labelAlign: R,
1382
- labelCol: S,
1383
- labelWrap: E,
1323
+ labelCol: w,
1324
+ labelWrap: S,
1384
1325
  colon: I
1385
1326
  } = l.useContext(ne);
1386
1327
  if (!r)
1387
1328
  return null;
1388
- const m = o || S || {}, N = s || R, u = `${t}-item-label`, h = J(u, N === "left" && `${u}-left`, m.className, {
1389
- [`${u}-wrap`]: !!E
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
1390
1331
  });
1391
1332
  let p = r;
1392
- const b = i === !0 || I !== !1 && i !== !1;
1393
- b && !y && typeof r == "string" && r.trim() && (p = r.replace(/[:|:]\s*$/, ""));
1394
- const v = zn(f);
1395
- if (v) {
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) {
1396
1337
  const {
1397
- icon: H = /* @__PURE__ */ l.createElement(Je, null)
1398
- } = v, M = An(v, ["icon"]), C = /* @__PURE__ */ l.createElement(At, Object.assign({}, M), /* @__PURE__ */ l.cloneElement(H, {
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, {
1399
1340
  className: `${t}-item-tooltip`,
1400
1341
  title: "",
1401
- onClick: (V) => {
1402
- V.preventDefault();
1342
+ onClick: (P) => {
1343
+ P.preventDefault();
1403
1344
  },
1404
1345
  tabIndex: null
1405
1346
  }));
1406
- p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, C);
1347
+ p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, x);
1407
1348
  }
1408
- const x = c === "optional", g = typeof c == "function";
1409
- g ? p = c(p, {
1410
- required: !!a
1411
- }) : x && !a && (p = /* @__PURE__ */ l.createElement(l.Fragment, null, p, /* @__PURE__ */ l.createElement("span", {
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", {
1412
1353
  className: `${t}-item-optional`,
1413
1354
  title: ""
1414
- }, (O == null ? void 0 : O.optional) || (($ = Et.Form) === null || $ === void 0 ? void 0 : $.optional))));
1415
- const j = J({
1416
- [`${t}-item-required`]: a,
1417
- [`${t}-item-required-mark-optional`]: x || g,
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,
1418
1359
  [`${t}-item-no-colon`]: !b
1419
1360
  });
1420
- return /* @__PURE__ */ l.createElement(Oe, Object.assign({}, m, {
1361
+ return /* @__PURE__ */ l.createElement(Oe, Object.assign({}, f, {
1421
1362
  className: h
1422
1363
  }), /* @__PURE__ */ l.createElement("label", {
1423
1364
  htmlFor: n,
1424
- className: j,
1365
+ className: M,
1425
1366
  title: typeof r == "string" ? r : ""
1426
1367
  }, p));
1427
- }, Bn = {
1368
+ }, Hn = {
1428
1369
  success: Kt,
1429
- warning: Yt,
1430
- error: Qt,
1431
- validating: Jt
1370
+ warning: Ut,
1371
+ error: Yt,
1372
+ validating: Qt
1432
1373
  };
1433
1374
  function ct(e) {
1434
1375
  let {
@@ -1437,105 +1378,105 @@ function ct(e) {
1437
1378
  warnings: n,
1438
1379
  hasFeedback: o,
1439
1380
  validateStatus: s,
1440
- prefixCls: i,
1441
- meta: a,
1442
- noStyle: c
1381
+ prefixCls: a,
1382
+ meta: c,
1383
+ noStyle: u
1443
1384
  } = e;
1444
- const f = `${i}-item`, {
1445
- feedbackIcons: y
1446
- } = l.useContext(ne), $ = st(r, n, a, null, !!o, s), {
1385
+ const m = `${a}-item`, {
1386
+ feedbackIcons: E
1387
+ } = l.useContext(ne), y = ot(r, n, c, null, !!o, s), {
1447
1388
  isFormItemInput: O,
1448
1389
  status: R,
1449
- hasFeedback: S,
1450
- feedbackIcon: E
1451
- } = l.useContext(ge), I = l.useMemo(() => {
1452
- var m;
1453
- let N;
1390
+ hasFeedback: w,
1391
+ feedbackIcon: S
1392
+ } = l.useContext(pe), I = l.useMemo(() => {
1393
+ var f;
1394
+ let j;
1454
1395
  if (o) {
1455
- const h = o !== !0 && o.icons || y, p = $ && ((m = h == null ? void 0 : h({
1456
- status: $,
1396
+ const h = o !== !0 && o.icons || E, p = y && ((f = h == null ? void 0 : h({
1397
+ status: y,
1457
1398
  errors: r,
1458
1399
  warnings: n
1459
- })) === null || m === void 0 ? void 0 : m[$]), b = $ && Bn[$];
1460
- N = p !== !1 && b ? /* @__PURE__ */ l.createElement("span", {
1461
- className: J(`${f}-feedback-icon`, `${f}-feedback-icon-${$}`)
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}`)
1462
1403
  }, p || /* @__PURE__ */ l.createElement(b, null)) : null;
1463
1404
  }
1464
- const u = {
1465
- status: $ || "",
1405
+ const i = {
1406
+ status: y || "",
1466
1407
  errors: r,
1467
1408
  warnings: n,
1468
1409
  hasFeedback: !!o,
1469
- feedbackIcon: N,
1410
+ feedbackIcon: j,
1470
1411
  isFormItemInput: !0
1471
1412
  };
1472
- return c && (u.status = ($ ?? R) || "", u.isFormItemInput = O, u.hasFeedback = !!(o ?? S), u.feedbackIcon = o !== void 0 ? u.feedbackIcon : E), u;
1473
- }, [$, o, c, O, R]);
1474
- return /* @__PURE__ */ l.createElement(ge.Provider, {
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, {
1475
1416
  value: I
1476
1417
  }, t);
1477
1418
  }
1478
- var Gn = function(e, t) {
1419
+ var An = function(e, t) {
1479
1420
  var r = {};
1480
1421
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1481
1422
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1482
1423
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1483
1424
  return r;
1484
1425
  };
1485
- function Xn(e) {
1426
+ function zn(e) {
1486
1427
  const {
1487
1428
  prefixCls: t,
1488
1429
  className: r,
1489
1430
  rootClassName: n,
1490
1431
  style: o,
1491
1432
  help: s,
1492
- errors: i,
1493
- warnings: a,
1494
- validateStatus: c,
1495
- meta: f,
1496
- hasFeedback: y,
1497
- hidden: $,
1433
+ errors: a,
1434
+ warnings: c,
1435
+ validateStatus: u,
1436
+ meta: m,
1437
+ hasFeedback: E,
1438
+ hidden: y,
1498
1439
  children: O,
1499
1440
  fieldId: R,
1500
- required: S,
1501
- isRequired: E,
1441
+ required: w,
1442
+ isRequired: S,
1502
1443
  onSubItemMetaChange: I,
1503
- layout: m
1504
- } = e, N = Gn(e, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]), u = `${t}-item`, {
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`, {
1505
1446
  requiredMark: h,
1506
1447
  vertical: p
1507
- } = l.useContext(ne), b = p || m === "vertical", P = l.useRef(null), v = he(i), x = he(a), g = s != null, j = !!(g || i.length || a.length), H = !!P.current && Gt(P.current), [M, C] = l.useState(null);
1508
- Ue(() => {
1509
- if (j && P.current) {
1510
- const w = getComputedStyle(P.current);
1511
- C(parseInt(w.marginBottom, 10));
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));
1512
1453
  }
1513
- }, [j, H]);
1514
- const V = (w) => {
1515
- w || C(null);
1454
+ }, [M, H]);
1455
+ const P = (v) => {
1456
+ v || x(null);
1516
1457
  }, d = function() {
1517
- let w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1518
- const q = w ? v : f.errors, T = w ? x : f.warnings;
1519
- return st(q, T, f, "", !!y, c);
1520
- }(), z = J(u, r, n, {
1521
- [`${u}-with-help`]: g || v.length || x.length,
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,
1522
1463
  // Status
1523
- [`${u}-has-feedback`]: d && y,
1524
- [`${u}-has-success`]: d === "success",
1525
- [`${u}-has-warning`]: d === "warning",
1526
- [`${u}-has-error`]: d === "error",
1527
- [`${u}-is-validating`]: d === "validating",
1528
- [`${u}-hidden`]: $,
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,
1529
1470
  // Layout
1530
- [`${u}-${m}`]: m
1471
+ [`${i}-${f}`]: f
1531
1472
  });
1532
1473
  return /* @__PURE__ */ l.createElement("div", {
1533
1474
  className: z,
1534
1475
  style: o,
1535
- ref: P
1536
- }, /* @__PURE__ */ l.createElement(et, Object.assign({
1537
- className: `${u}-row`
1538
- }, Xt(N, [
1476
+ ref: V
1477
+ }, /* @__PURE__ */ l.createElement(Ze, Object.assign({
1478
+ className: `${i}-row`
1479
+ }, Bt(j, [
1539
1480
  "_internalItemRender",
1540
1481
  "colon",
1541
1482
  "dependencies",
@@ -1567,52 +1508,52 @@ function Xn(e) {
1567
1508
  "valuePropName",
1568
1509
  "wrapperCol",
1569
1510
  "validateDebounce"
1570
- ])), /* @__PURE__ */ l.createElement(qn, Object.assign({
1511
+ ])), /* @__PURE__ */ l.createElement(Wn, Object.assign({
1571
1512
  htmlFor: R
1572
1513
  }, e, {
1573
1514
  requiredMark: h,
1574
- required: S ?? E,
1515
+ required: w ?? S,
1575
1516
  prefixCls: t,
1576
1517
  vertical: b
1577
- })), /* @__PURE__ */ l.createElement(Hn, Object.assign({}, e, f, {
1578
- errors: v,
1579
- warnings: x,
1518
+ })), /* @__PURE__ */ l.createElement(Vn, Object.assign({}, e, m, {
1519
+ errors: C,
1520
+ warnings: $,
1580
1521
  prefixCls: t,
1581
1522
  status: d,
1582
1523
  help: s,
1583
- marginBottom: M,
1584
- onErrorVisibleChanged: V
1585
- }), /* @__PURE__ */ l.createElement(Ye.Provider, {
1524
+ marginBottom: N,
1525
+ onErrorVisibleChanged: P
1526
+ }), /* @__PURE__ */ l.createElement(Ue.Provider, {
1586
1527
  value: I
1587
1528
  }, /* @__PURE__ */ l.createElement(ct, {
1588
1529
  prefixCls: t,
1589
- meta: f,
1590
- errors: f.errors,
1591
- warnings: f.warnings,
1592
- hasFeedback: y,
1530
+ meta: m,
1531
+ errors: m.errors,
1532
+ warnings: m.warnings,
1533
+ hasFeedback: E,
1593
1534
  // Already calculated
1594
1535
  validateStatus: d
1595
- }, O)))), !!M && /* @__PURE__ */ l.createElement("div", {
1596
- className: `${u}-margin-offset`,
1536
+ }, O)))), !!N && /* @__PURE__ */ l.createElement("div", {
1537
+ className: `${i}-margin-offset`,
1597
1538
  style: {
1598
- marginBottom: -M
1539
+ marginBottom: -N
1599
1540
  }
1600
1541
  }));
1601
1542
  }
1602
- const kn = "__SPLIT__";
1603
- function Un(e, t) {
1543
+ const qn = "__SPLIT__";
1544
+ function Bn(e, t) {
1604
1545
  const r = Object.keys(e), n = Object.keys(t);
1605
1546
  return r.length === n.length && r.every((o) => {
1606
- const s = e[o], i = t[o];
1607
- return s === i || typeof s == "function" || typeof i == "function";
1547
+ const s = e[o], a = t[o];
1548
+ return s === a || typeof s == "function" || typeof a == "function";
1608
1549
  });
1609
1550
  }
1610
- const Kn = /* @__PURE__ */ l.memo((e) => {
1551
+ const Gn = /* @__PURE__ */ l.memo((e) => {
1611
1552
  let {
1612
1553
  children: t
1613
1554
  } = e;
1614
1555
  return t;
1615
- }, (e, t) => Un(e.control, t.control) && e.update === t.update && e.childProps.length === t.childProps.length && e.childProps.every((r, n) => r === t.childProps[n]));
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]));
1616
1557
  function Ge() {
1617
1558
  return {
1618
1559
  errors: [],
@@ -1623,178 +1564,178 @@ function Ge() {
1623
1564
  validated: !1
1624
1565
  };
1625
1566
  }
1626
- function Yn(e) {
1567
+ function Xn(e) {
1627
1568
  const {
1628
1569
  name: t,
1629
1570
  noStyle: r,
1630
1571
  className: n,
1631
1572
  dependencies: o,
1632
1573
  prefixCls: s,
1633
- shouldUpdate: i,
1634
- rules: a,
1635
- children: c,
1636
- required: f,
1637
- label: y,
1638
- messageVariables: $,
1574
+ shouldUpdate: a,
1575
+ rules: c,
1576
+ children: u,
1577
+ required: m,
1578
+ label: E,
1579
+ messageVariables: y,
1639
1580
  trigger: O = "onChange",
1640
1581
  validateTrigger: R,
1641
- hidden: S,
1642
- help: E,
1582
+ hidden: w,
1583
+ help: S,
1643
1584
  layout: I
1644
1585
  } = e, {
1645
- getPrefixCls: m
1646
- } = l.useContext(ue), {
1647
- name: N
1648
- } = l.useContext(ne), u = Rn(c), h = typeof u == "function", p = l.useContext(Ye), {
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), {
1649
1590
  validateTrigger: b
1650
- } = l.useContext(_t), P = R !== void 0 ? R : b, v = t != null, x = m("form", s), g = Ee(x), [j, H, M] = Ie(x, g), C = be("Form.Item");
1651
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && C(t !== null, "usage", "`null` is passed as `name` property");
1652
- const V = l.useContext(Rt), A = l.useRef(null), [d, z] = Pn({}), [w, q] = Ot(() => Ge()), T = (F) => {
1653
- const _ = V == null ? void 0 : V.getKey(F.name);
1654
- if (q(F.destroy ? Ge() : F, !0), r && E !== !1 && p) {
1655
- let L = F.name;
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;
1656
1597
  if (F.destroy)
1657
- L = A.current || L;
1598
+ D = A.current || D;
1658
1599
  else if (_ !== void 0) {
1659
1600
  const [B, k] = _;
1660
- L = [B].concat(K(k)), A.current = L;
1601
+ D = [B].concat(Y(k)), A.current = D;
1661
1602
  }
1662
- p(F, L);
1603
+ p(F, D);
1663
1604
  }
1664
1605
  }, G = (F, _) => {
1665
- z((L) => {
1666
- const B = Object.assign({}, L), te = [].concat(K(F.name.slice(0, -1)), K(_)).join(kn);
1606
+ z((D) => {
1607
+ const B = Object.assign({}, D), te = [].concat(Y(F.name.slice(0, -1)), Y(_)).join(qn);
1667
1608
  return F.destroy ? delete B[te] : B[te] = F, B;
1668
1609
  });
1669
- }, [X, U] = l.useMemo(() => {
1670
- const F = K(w.errors), _ = K(w.warnings);
1671
- return Object.values(d).forEach((L) => {
1672
- F.push.apply(F, K(L.errors || [])), _.push.apply(_, K(L.warnings || []));
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 || []));
1673
1614
  }), [F, _];
1674
- }, [d, w.errors, w.warnings]), Z = Vn();
1675
- function ee(F, _, L) {
1676
- return r && !S ? /* @__PURE__ */ l.createElement(ct, {
1677
- prefixCls: x,
1615
+ }, [d, v.errors, v.warnings]), Z = Nn();
1616
+ function ee(F, _, D) {
1617
+ return r && !w ? /* @__PURE__ */ l.createElement(ct, {
1618
+ prefixCls: $,
1678
1619
  hasFeedback: e.hasFeedback,
1679
1620
  validateStatus: e.validateStatus,
1680
- meta: w,
1621
+ meta: v,
1681
1622
  errors: X,
1682
- warnings: U,
1623
+ warnings: K,
1683
1624
  noStyle: !0
1684
- }, F) : /* @__PURE__ */ l.createElement(Xn, Object.assign({
1625
+ }, F) : /* @__PURE__ */ l.createElement(zn, Object.assign({
1685
1626
  key: "row"
1686
1627
  }, e, {
1687
- className: J(n, M, g, H),
1688
- prefixCls: x,
1628
+ className: J(n, N, g, H),
1629
+ prefixCls: $,
1689
1630
  fieldId: _,
1690
- isRequired: L,
1631
+ isRequired: D,
1691
1632
  errors: X,
1692
- warnings: U,
1693
- meta: w,
1633
+ warnings: K,
1634
+ meta: v,
1694
1635
  onSubItemMetaChange: G,
1695
1636
  layout: I
1696
1637
  }), F);
1697
1638
  }
1698
- if (!v && !h && !o)
1699
- return j(ee(u));
1700
- let D = {};
1701
- return typeof y == "string" ? D.label = y : t && (D.label = String(t)), $ && (D = Object.assign(Object.assign({}, D), $)), j(/* @__PURE__ */ l.createElement(Pt, Object.assign({}, e, {
1702
- messageVariables: D,
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,
1703
1644
  trigger: O,
1704
- validateTrigger: P,
1645
+ validateTrigger: V,
1705
1646
  onMetaChange: T
1706
- }), (F, _, L) => {
1707
- const B = ae(t).length && _ ? _.name : [], k = ot(B, N), te = f !== void 0 ? f : !!(a != null && a.some((W) => {
1647
+ }), (F, _, D) => {
1648
+ const B = ie(t).length && _ ? _.name : [], k = rt(B, j), te = m !== void 0 ? m : !!(c != null && c.some((W) => {
1708
1649
  if (W && typeof W == "object" && W.required && !W.warningOnly)
1709
1650
  return !0;
1710
1651
  if (typeof W == "function") {
1711
- const le = W(L);
1712
- return (le == null ? void 0 : le.required) && !(le != null && le.warningOnly);
1652
+ const se = W(D);
1653
+ return (se == null ? void 0 : se.required) && !(se != null && se.warningOnly);
1713
1654
  }
1714
1655
  return !1;
1715
1656
  })), oe = Object.assign({}, F);
1716
- let se = null;
1717
- if (process.env.NODE_ENV !== "production" && C(!(i && o), "usage", "`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."), Array.isArray(u) && v)
1718
- process.env.NODE_ENV !== "production" && C(!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."), se = u;
1719
- else if (h && (!(i || o) || v))
1720
- process.env.NODE_ENV !== "production" && C(!!(i || o), "usage", "A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."), process.env.NODE_ENV !== "production" && C(!v, "usage", "A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");
1721
- else if (o && !h && !v)
1722
- process.env.NODE_ENV !== "production" && C(!1, "usage", "Must set `name` or use a render function when `dependencies` is set.");
1723
- else if (/* @__PURE__ */ l.isValidElement(u)) {
1724
- process.env.NODE_ENV !== "production" && C(u.props.defaultValue === void 0, "usage", "`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");
1725
- const W = Object.assign(Object.assign({}, u.props), oe);
1726
- if (W.id || (W.id = k), E || X.length > 0 || U.length > 0 || e.extra) {
1727
- const ie = [];
1728
- (E || X.length > 0) && ie.push(`${k}_help`), e.extra && ie.push(`${k}_extra`), W["aria-describedby"] = ie.join(" ");
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) {
1668
+ const ae = [];
1669
+ (S || X.length > 0) && ae.push(`${k}_help`), e.extra && ae.push(`${k}_extra`), W["aria-describedby"] = ae.join(" ");
1729
1670
  }
1730
- X.length > 0 && (W["aria-invalid"] = "true"), te && (W["aria-required"] = "true"), It(u) && (W.ref = Z(B, u)), new Set([].concat(K(ae(O)), K(ae(P)))).forEach((ie) => {
1731
- W[ie] = function() {
1732
- for (var Fe, Me, ye, Ne, $e, je = arguments.length, xe = new Array(je), de = 0; de < je; de++)
1733
- xe[de] = arguments[de];
1734
- (ye = oe[ie]) === null || ye === void 0 || (Fe = ye).call.apply(Fe, [oe].concat(xe)), ($e = (Ne = u.props)[ie]) === null || $e === void 0 || (Me = $e).call.apply(Me, [Ne].concat(xe));
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));
1735
1676
  };
1736
1677
  });
1737
1678
  const dt = [W["aria-required"], W["aria-invalid"], W["aria-describedby"]];
1738
- se = /* @__PURE__ */ l.createElement(Kn, {
1679
+ le = /* @__PURE__ */ l.createElement(Gn, {
1739
1680
  control: oe,
1740
- update: u,
1681
+ update: i,
1741
1682
  childProps: dt
1742
- }, qt(u, W));
1743
- } else h && (i || o) && !v ? se = u(L) : (process.env.NODE_ENV !== "production" && C(!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."), se = u);
1744
- return ee(se, k, te);
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);
1745
1686
  }));
1746
1687
  }
1747
- const ut = Yn;
1688
+ const ut = Xn;
1748
1689
  ut.useStatus = at;
1749
- var Qn = function(e, t) {
1690
+ var kn = function(e, t) {
1750
1691
  var r = {};
1751
1692
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1752
1693
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
1753
1694
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1754
1695
  return r;
1755
1696
  };
1756
- const Jn = (e) => {
1697
+ const Kn = (e) => {
1757
1698
  var {
1758
1699
  prefixCls: t,
1759
1700
  children: r
1760
- } = e, n = Qn(e, ["prefixCls", "children"]);
1701
+ } = e, n = kn(e, ["prefixCls", "children"]);
1761
1702
  if (process.env.NODE_ENV !== "production") {
1762
- const a = be("Form.List");
1763
- process.env.NODE_ENV !== "production" && a(typeof n.name == "number" || (Array.isArray(n.name) ? !!n.name.length : !!n.name), "usage", "Miss `name` prop.");
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.");
1764
1705
  }
1765
1706
  const {
1766
1707
  getPrefixCls: o
1767
- } = l.useContext(ue), s = o("form", t), i = l.useMemo(() => ({
1708
+ } = l.useContext(ce), s = o("form", t), a = l.useMemo(() => ({
1768
1709
  prefixCls: s,
1769
1710
  status: "error"
1770
1711
  }), [s]);
1771
- return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (a, c, f) => /* @__PURE__ */ l.createElement(Se.Provider, {
1772
- value: i
1773
- }, r(a.map((y) => Object.assign(Object.assign({}, y), {
1774
- fieldKey: y.key
1775
- })), c, {
1776
- errors: f.errors,
1777
- warnings: f.warnings
1712
+ return /* @__PURE__ */ l.createElement(Vt, Object.assign({}, n), (c, u, m) => /* @__PURE__ */ l.createElement(Se.Provider, {
1713
+ value: a
1714
+ }, r(c.map((E) => Object.assign(Object.assign({}, E), {
1715
+ fieldKey: E.key
1716
+ })), u, {
1717
+ errors: m.errors,
1718
+ warnings: m.warnings
1778
1719
  })));
1779
1720
  };
1780
- function Zn() {
1721
+ function Yn() {
1781
1722
  const {
1782
1723
  form: e
1783
1724
  } = l.useContext(ne);
1784
1725
  return e;
1785
1726
  }
1786
- const re = it;
1727
+ const re = st;
1787
1728
  re.Item = ut;
1788
- re.List = Jn;
1789
- re.ErrorList = rt;
1729
+ re.List = Kn;
1730
+ re.ErrorList = nt;
1790
1731
  re.useForm = lt;
1791
- re.useFormInstance = Zn;
1792
- re.useWatch = Lt;
1793
- re.Provider = Ke;
1732
+ re.useFormInstance = Yn;
1733
+ re.useWatch = Pt;
1734
+ re.Provider = Ye;
1794
1735
  re.create = () => {
1795
- process.env.NODE_ENV !== "production" && Ft(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1736
+ process.env.NODE_ENV !== "production" && It(!1, "Form", "antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.");
1796
1737
  };
1797
- const hr = ft(re)`
1738
+ const yr = ft(re)`
1798
1739
  label,
1799
1740
  .ant-form-item-label > label,
1800
1741
  .ant-form-item-required,
@@ -1803,6 +1744,9 @@ const hr = ft(re)`
1803
1744
  }
1804
1745
  `;
1805
1746
  export {
1747
+ Oe as C,
1806
1748
  re as F,
1807
- hr as a
1749
+ Ze as R,
1750
+ yr as a,
1751
+ cn as g
1808
1752
  };