@gobolt/genesis 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +8 -8
  2. package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
  3. package/dist/CSSMotionList-DB0khM6h.js +22193 -0
  4. package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
  5. package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
  6. package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
  7. package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
  8. package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
  9. package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
  10. package/dist/Context-2_suFYDs.js +5 -0
  11. package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
  12. package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
  13. package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
  14. package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
  15. package/dist/Input--qsU-6vp.js +424 -0
  16. package/dist/KeyCode-B3vHb2gY.js +155 -0
  17. package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
  18. package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
  19. package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
  20. package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
  21. package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
  22. package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
  23. package/dist/TextArea-CHo3cxKw.js +404 -0
  24. package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
  25. package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
  26. package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
  27. package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
  28. package/dist/button-CYVlK7G0.js +1430 -0
  29. package/dist/components/Avatar/Avatar.js +8 -7
  30. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
  31. package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
  32. package/dist/components/Avatar/styles.d.ts +1 -2
  33. package/dist/components/Avatar/styles.js +161 -159
  34. package/dist/components/Badge/Badge.js +8 -7
  35. package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
  36. package/dist/components/Badge/__tests__/Badge.test.js +1 -1
  37. package/dist/components/Badge/styles.d.ts +0 -1
  38. package/dist/components/Badge/styles.js +1 -1
  39. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
  40. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  41. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
  42. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
  43. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
  44. package/dist/components/Breadcrumb/styles.d.ts +0 -1
  45. package/dist/components/Breadcrumb/styles.js +58 -58
  46. package/dist/components/Button/Button.d.ts +0 -1
  47. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
  48. package/dist/components/Button/__tests__/Button.test.js +5 -4
  49. package/dist/components/Button/styles.d.ts +0 -1
  50. package/dist/components/Button/styles.js +2 -2
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
  52. package/dist/components/Card/__tests__/Card.test.js +1 -1
  53. package/dist/components/Card/styles.d.ts +0 -1
  54. package/dist/components/Card/styles.js +2 -2
  55. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  56. package/dist/components/Checkbox/Checkbox.js +11 -11
  57. package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
  58. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
  59. package/dist/components/Checkbox/styles.d.ts +3 -4
  60. package/dist/components/Checkbox/styles.js +2 -2
  61. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
  62. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
  63. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
  64. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
  65. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
  66. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
  67. package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
  68. package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
  69. package/dist/components/Dashboard/styles.d.ts +0 -1
  70. package/dist/components/Dashboard/styles.js +1 -1
  71. package/dist/components/DatePicker/DatePicker.d.ts +0 -1
  72. package/dist/components/DatePicker/DatePicker.js +1 -1
  73. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
  74. package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
  75. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
  76. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  77. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
  78. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
  79. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  80. package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
  81. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
  82. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
  83. package/dist/components/ErrorBoundary/styles.d.ts +0 -1
  84. package/dist/components/ErrorBoundary/styles.js +1 -1
  85. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
  86. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
  87. package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
  88. package/dist/components/Form/Form.d.ts +0 -1
  89. package/dist/components/Form/Form.js +2 -2
  90. package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
  91. package/dist/components/Form/__stories__/FormStory.js +11 -10
  92. package/dist/components/Form/__tests__/form.test.js +7 -6
  93. package/dist/components/Form/index.js +1 -1
  94. package/dist/components/Form/styles.d.ts +0 -1
  95. package/dist/components/Form/styles.js +10 -2
  96. package/dist/components/FormBrandon/Form.d.ts +25 -0
  97. package/dist/components/FormBrandon/Form.js +18 -0
  98. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
  99. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
  100. package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
  101. package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
  102. package/dist/components/FormBrandon/index.d.ts +2 -0
  103. package/dist/components/FormBrandon/index.js +4 -0
  104. package/dist/components/FormBrandon/styles.d.ts +2 -0
  105. package/dist/components/FormBrandon/styles.js +13 -0
  106. package/dist/components/Glyph/Glyph.js +2 -2
  107. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
  108. package/dist/components/Glyph/styles.d.ts +0 -1
  109. package/dist/components/Glyph/styles.js +1 -1
  110. package/dist/components/Input/Input.d.ts +0 -1
  111. package/dist/components/Input/Input.js +9 -10
  112. package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
  113. package/dist/components/Input/__tests__/Input.test.js +21 -20
  114. package/dist/components/Input/styles.d.ts +5 -6
  115. package/dist/components/Input/styles.js +4 -119
  116. package/dist/components/Layout/Content/Content.d.ts +0 -1
  117. package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
  118. package/dist/components/Layout/Content/styles.d.ts +0 -1
  119. package/dist/components/Layout/Content/styles.js +1 -1
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
  121. package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
  123. package/dist/components/Layout/MainLayout/styles.js +1 -1
  124. package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
  125. package/dist/components/Layout/__tests__/Layout.test.js +1 -1
  126. package/dist/components/Message/Message.d.ts +0 -1
  127. package/dist/components/Message/Message.js +13 -12
  128. package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
  129. package/dist/components/Message/__tests__/Message.test.js +6 -5
  130. package/dist/components/Message/styles.js +1 -1
  131. package/dist/components/Notification/Notification.js +122 -55
  132. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
  133. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
  134. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
  135. package/dist/components/Notification/NotificationBadge/styles.js +1 -1
  136. package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
  137. package/dist/components/Notification/__tests__/Notification.test.js +3 -3
  138. package/dist/components/Notification/styles.js +1 -1
  139. package/dist/components/Popover/Popover.d.ts +1 -1
  140. package/dist/components/Popover/Popover.js +14 -11
  141. package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
  142. package/dist/components/Popover/__tests__/Popover.test.js +19 -26
  143. package/dist/components/Popover/styles.d.ts +0 -1
  144. package/dist/components/Popover/styles.js +2 -2
  145. package/dist/components/Progress/Progress.js +29 -27
  146. package/dist/components/Progress/Progress.util.d.ts +0 -1
  147. package/dist/components/Progress/Progress.util.js +8 -7
  148. package/dist/components/Progress/ProgressText.d.ts +0 -1
  149. package/dist/components/Progress/ProgressText.js +8 -7
  150. package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
  151. package/dist/components/Progress/__tests__/Progress.test.js +4 -4
  152. package/dist/components/Progress/styles.d.ts +0 -1
  153. package/dist/components/Progress/styles.js +217 -214
  154. package/dist/components/Radio/Radio.d.ts +0 -1
  155. package/dist/components/Radio/Radio.js +9 -8
  156. package/dist/components/Radio/RadioGroup.js +1 -1
  157. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
  158. package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
  159. package/dist/components/Row/Row.d.ts +0 -1
  160. package/dist/components/Row/Row.js +29 -26
  161. package/dist/components/Row/RowActions/RowActions.js +8 -7
  162. package/dist/components/Row/RowActions/styles.js +1 -1
  163. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
  164. package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
  165. package/dist/components/Row/RowLabelValue/styles.js +2 -2
  166. package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
  167. package/dist/components/Row/__tests__/Row.test.js +3 -3
  168. package/dist/components/Row/styles.d.ts +0 -1
  169. package/dist/components/Row/styles.js +1 -1
  170. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
  171. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
  172. package/dist/components/SegmentedControls/styles.d.ts +1 -2
  173. package/dist/components/SegmentedControls/styles.js +214 -203
  174. package/dist/components/Select/Select.d.ts +0 -1
  175. package/dist/components/Select/Select.js +10 -11
  176. package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
  177. package/dist/components/Select/__tests__/Select.test.js +49 -10754
  178. package/dist/components/Select/styles.d.ts +0 -1
  179. package/dist/components/Select/styles.js +2 -2
  180. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
  181. package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
  182. package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
  183. package/dist/components/Switch/__tests__/Switch.test.js +3 -3
  184. package/dist/components/Switch/styles.d.ts +0 -1
  185. package/dist/components/Switch/styles.js +74 -74
  186. package/dist/components/Table/Table.js +1 -1
  187. package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
  188. package/dist/components/Table/__mocks__/table-mocks.js +10 -9
  189. package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
  190. package/dist/components/Table/__tests__/Table.test.js +1 -1
  191. package/dist/components/Table/styles.d.ts +0 -1
  192. package/dist/components/Table/styles.js +2 -2
  193. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
  194. package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
  195. package/dist/components/Tabs/styles.d.ts +0 -1
  196. package/dist/components/Tabs/styles.js +2 -2
  197. package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
  198. package/dist/components/Tile/__tests__/Tile.test.js +1 -1
  199. package/dist/components/Tile/styles.d.ts +0 -1
  200. package/dist/components/Tile/styles.js +1 -1
  201. package/dist/components/Toast/Toast.d.ts +0 -1
  202. package/dist/components/Toast/Toast.js +9 -8
  203. package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
  204. package/dist/components/Toast/__tests__/Toast.test.js +6 -5
  205. package/dist/components/Toast/index.js +1 -1
  206. package/dist/components/Toast/styles.js +1 -1
  207. package/dist/components/Tooltip/Tooltip.js +8 -7
  208. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
  209. package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
  210. package/dist/components/Tooltip/styles.d.ts +0 -1
  211. package/dist/components/Tooltip/styles.js +2 -2
  212. package/dist/components/Typography/Typography.d.ts +0 -1
  213. package/dist/components/Typography/Typography.js +1 -1
  214. package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
  215. package/dist/components/Typography/__tests__/Typography.test.js +14 -13
  216. package/dist/components/Typography/index.js +1 -1
  217. package/dist/components/Typography/styles.d.ts +0 -1
  218. package/dist/components/Typography/styles.js +2 -2
  219. package/dist/components/index.d.ts +0 -2
  220. package/dist/components/index.js +46 -48
  221. package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
  222. package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
  223. package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
  224. package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
  225. package/dist/genesis/GenesisThemeBreakdown.js +9 -8
  226. package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
  227. package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
  228. package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
  229. package/dist/genesis/styles.d.ts +0 -1
  230. package/dist/genesis/styles.js +3 -3
  231. package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
  232. package/dist/index-B7FXyiY_.js +104 -0
  233. package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
  234. package/dist/index-BZ050Dyl.js +292 -0
  235. package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
  236. package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
  237. package/dist/index-C2K1BzmJ.js +3400 -0
  238. package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
  239. package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
  240. package/dist/index-DCopujxC.js +772 -0
  241. package/dist/index-DRGbc-fW.js +780 -0
  242. package/dist/index-DavB5GQ3.js +5221 -0
  243. package/dist/index-RAH9f-qb.js +540 -0
  244. package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
  245. package/dist/index-Y0KgiFZb.js +909 -0
  246. package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
  247. package/dist/index.js +53 -55
  248. package/dist/interface/appointment.d.ts +0 -1
  249. package/dist/interface/appointmentV2.d.ts +0 -1
  250. package/dist/interface/appointmentsState.d.ts +0 -1
  251. package/dist/interface/deliveryPartner.d.ts +0 -1
  252. package/dist/interface/route.d.ts +0 -1
  253. package/dist/interface/routeAnalysis.d.ts +0 -1
  254. package/dist/interface/routeAutomationJob.d.ts +0 -1
  255. package/dist/interface/routeAutomationLog.d.ts +0 -1
  256. package/dist/interface/serviceArea.d.ts +0 -1
  257. package/dist/interface/vehicle.d.ts +0 -1
  258. package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
  259. package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
  260. package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
  261. package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
  262. package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
  263. package/dist/providers/BreakpointThemeProvider.js +5 -5
  264. package/dist/providers/GenesisProvider.d.ts +0 -1
  265. package/dist/providers/GenesisProvider.js +1 -1
  266. package/dist/providers/ToastProvider.d.ts +0 -1
  267. package/dist/providers/ToastProvider.js +10 -9
  268. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
  269. package/dist/providers/index.js +1 -1
  270. package/dist/providers/useGenesis.d.ts +0 -1
  271. package/dist/providers/useGenesis.js +2 -2
  272. package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
  273. package/dist/setup-aZdxWCJq.js +13976 -0
  274. package/dist/setup.types-CgFq66QX.js +9261 -0
  275. package/dist/shadow-9lsz-71t.js +13 -0
  276. package/dist/statusUtils-Kj9kMuVg.js +15 -0
  277. package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
  278. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
  279. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
  280. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
  281. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
  282. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
  283. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  284. package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
  285. package/dist/styles/global-styles.d.ts +0 -1
  286. package/dist/styles/global-styles.js +1 -1
  287. package/dist/styles/theme/genesis-theme.d.ts +0 -1
  288. package/dist/styles/theme/genesis-theme.js +285 -337
  289. package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
  290. package/dist/styles/theme/genesis-theme.test.js +69 -0
  291. package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
  292. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
  293. package/dist/styles-DNay6iFa.js +292 -0
  294. package/dist/styles-Wpm1RiGr.js +9212 -0
  295. package/dist/styles-XuoEGUZZ.js +549 -0
  296. package/dist/test/setup.d.ts +0 -1
  297. package/dist/test/setup.js +35 -35
  298. package/dist/test/setup.types.d.ts +0 -1
  299. package/dist/test/setup.types.js +1 -1
  300. package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
  301. package/dist/useBreakpoint-ByLol0R9.js +88 -0
  302. package/dist/useCSSVarCls-YfJY1twF.js +10 -0
  303. package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
  304. package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
  305. package/dist/useLocale-BQ3mKRyJ.js +16 -0
  306. package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
  307. package/dist/useSize-Ct1guc-z.js +9 -0
  308. package/dist/useVariants-C6UAAu9f.js +19 -0
  309. package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
  310. package/dist/utils/icon-util.js +48 -44
  311. package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
  312. package/package.json +33 -24
  313. package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
  314. package/dist/KeyCode-DM2sFh3-.js +0 -517
  315. package/dist/TextArea-Bkf9hh7l.js +0 -708
  316. package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
  317. package/dist/button-BwqpCxVM.js +0 -1406
  318. package/dist/clsx-OuTLNxxd.js +0 -16
  319. package/dist/index-BRUI9igj.js +0 -11
  320. package/dist/index-BbTV2Cw5.js +0 -22638
  321. package/dist/index-BeGv28kJ.js +0 -5173
  322. package/dist/index-BvOLXELm.js +0 -102
  323. package/dist/index-CLSrpQRW.js +0 -416
  324. package/dist/index-CbVOl2U6.js +0 -288
  325. package/dist/index-D0U6r5O7.js +0 -780
  326. package/dist/index-DEu2PVzQ.js +0 -538
  327. package/dist/index-DLdU7Tpd.js +0 -183
  328. package/dist/index-DNQ-jnBx.js +0 -3321
  329. package/dist/index-DWjq9XYj.js +0 -899
  330. package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
  331. package/dist/setup-BjIR5S0o.js +0 -24731
  332. package/dist/setup.types-dBtAXXGp.js +0 -8824
  333. package/dist/shadow-BoMGMNn3.js +0 -13
  334. package/dist/styles-CWdUpZom.js +0 -289
  335. package/dist/styles-qerRs7Rn.js +0 -9196
  336. package/dist/useBreakpoint-TkMv121M.js +0 -22
  337. package/dist/useCSSVarCls-Dau77fzS.js +0 -11
  338. package/dist/useLocale-CTfNpakL.js +0 -16
  339. package/dist/useSize-DSq4r6zy.js +0 -9
  340. package/dist/useVariants-DrLzUVLU.js +0 -30
  341. package/dist/utils/getAppointmentColor.d.ts +0 -4
  342. package/dist/utils/getAppointmentColor.js +0 -91
  343. package/dist/utils/isAllEnglishString.d.ts +0 -1
  344. package/dist/utils/isAllEnglishString.js +0 -8
  345. package/dist/utils/isAllEnglishString.test.js +0 -8
  346. package/dist/utils/parseAddress.d.ts +0 -3
  347. package/dist/utils/parseAddress.js +0 -19
  348. /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
@@ -1,16 +1,16 @@
1
- import { d as me } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import * as s from "react";
1
+ import { d as me } from "../../styled-components.browser.esm-C47QHsU4.js";
2
+ import * as i from "react";
3
3
  import { useRef as re, useEffect as ye } from "react";
4
- import { R as he } from "../../CheckCircleFilled-BKgizvyl.js";
5
- import { R as Ce } from "../../CheckOutlined-cEBrx_Ag.js";
6
- import { R as ve } from "../../CloseCircleFilled-B9e7yFwo.js";
7
- import { R as be } from "../../CloseOutlined-ogxnm7Oy.js";
8
- import { c as $e, a as Se, f as V, _ as ne, g as ke, d as xe, e as M, p as ee, F as Ee } from "../../presets-Djh_L_6R.js";
4
+ import { a as ve, d as he, f as V, _ as oe, g as Ce, e as be, c as M, p as ee, F as $e } from "../../presets-CSXMiWyc.js";
5
+ import { R as Se } from "../../CheckCircleFilled-B-wrMduA.js";
6
+ import { R as ke } from "../../CheckOutlined-DTEHi_xG.js";
7
+ import { R as xe } from "../../CloseCircleFilled-WEQ0SaSW.js";
8
+ import { R as Ee } from "../../CloseOutlined-DzgBOns1.js";
9
9
  import { o as Pe } from "../../omit-B_u6A-HL.js";
10
- import { j as we, m as Ne, k as Oe, f as Ie, g as le, C as _e } from "../../index-BbTV2Cw5.js";
11
- import { T as De } from "../../index-DWjq9XYj.js";
12
- import { K as je } from "../../Keyframes-C9_aCDvn.js";
13
- import "../../index-DLdU7Tpd.js";
10
+ import { d as le } from "../../index-DCopujxC.js";
11
+ import { T as we } from "../../index-Y0KgiFZb.js";
12
+ import { g as Ne, m as Oe, j as Ie, f as _e, C as De } from "../../CSSMotionList-DB0khM6h.js";
13
+ import { K as je } from "../../Keyframes-CyO2Aeq-.js";
14
14
  var We = {
15
15
  percent: 0,
16
16
  prefixCls: "rc-progress",
@@ -23,89 +23,89 @@ var We = {
23
23
  }, Ae = function() {
24
24
  var t = re([]), r = re(null);
25
25
  return ye(function() {
26
- var n = Date.now(), o = !1;
26
+ var o = Date.now(), n = !1;
27
27
  t.current.forEach(function(a) {
28
28
  if (a) {
29
- o = !0;
30
- var i = a.style;
31
- i.transitionDuration = ".3s, .3s, .3s, .06s", r.current && n - r.current < 100 && (i.transitionDuration = "0s, 0s");
29
+ n = !0;
30
+ var s = a.style;
31
+ s.transitionDuration = ".3s, .3s, .3s, .06s", r.current && o - r.current < 100 && (s.transitionDuration = "0s, 0s");
32
32
  }
33
- }), o && (r.current = Date.now());
33
+ }), n && (r.current = Date.now());
34
34
  }), t.current;
35
35
  };
36
36
  process.env.NODE_ENV;
37
- var oe = 0, Le = process.env.NODE_ENV !== "test" && $e();
37
+ var ne = 0, Le = process.env.NODE_ENV !== "test" && he();
38
38
  function Re() {
39
39
  var e;
40
- return Le ? (e = oe, oe += 1) : e = "TEST_OR_SSR", e;
40
+ return Le ? (e = ne, ne += 1) : e = "TEST_OR_SSR", e;
41
41
  }
42
42
  const Te = function(e) {
43
- var t = s.useState(), r = Se(t, 2), n = r[0], o = r[1];
44
- return s.useEffect(function() {
45
- o("rc_progress_".concat(Re()));
46
- }, []), e || n;
43
+ var t = i.useState(), r = ve(t, 2), o = r[0], n = r[1];
44
+ return i.useEffect(function() {
45
+ n("rc_progress_".concat(Re()));
46
+ }, []), e || o;
47
47
  };
48
48
  var se = function(t) {
49
- var r = t.bg, n = t.children;
50
- return /* @__PURE__ */ s.createElement("div", {
49
+ var r = t.bg, o = t.children;
50
+ return /* @__PURE__ */ i.createElement("div", {
51
51
  style: {
52
52
  width: "100%",
53
53
  height: "100%",
54
54
  background: r
55
55
  }
56
- }, n);
56
+ }, o);
57
57
  };
58
58
  function ie(e, t) {
59
59
  return Object.keys(e).map(function(r) {
60
- var n = parseFloat(r), o = "".concat(Math.floor(n * t), "%");
61
- return "".concat(e[r], " ").concat(o);
60
+ var o = parseFloat(r), n = "".concat(Math.floor(o * t), "%");
61
+ return "".concat(e[r], " ").concat(n);
62
62
  });
63
63
  }
64
- var de = /* @__PURE__ */ s.forwardRef(function(e, t) {
65
- var r = e.prefixCls, n = e.color, o = e.gradientId, a = e.radius, i = e.style, l = e.ptg, c = e.strokeLinecap, f = e.strokeWidth, d = e.size, g = e.gapDegree, p = n && V(n) === "object", v = p ? "#FFF" : void 0, m = d / 2, C = /* @__PURE__ */ s.createElement("circle", {
64
+ var de = /* @__PURE__ */ i.forwardRef(function(e, t) {
65
+ var r = e.prefixCls, o = e.color, n = e.gradientId, a = e.radius, s = e.style, l = e.ptg, c = e.strokeLinecap, f = e.strokeWidth, d = e.size, g = e.gapDegree, m = o && V(o) === "object", h = m ? "#FFF" : void 0, v = d / 2, C = /* @__PURE__ */ i.createElement("circle", {
66
66
  className: "".concat(r, "-circle-path"),
67
67
  r: a,
68
- cx: m,
69
- cy: m,
70
- stroke: v,
68
+ cx: v,
69
+ cy: v,
70
+ stroke: h,
71
71
  strokeLinecap: c,
72
72
  strokeWidth: f,
73
73
  opacity: l === 0 ? 0 : 1,
74
- style: i,
74
+ style: s,
75
75
  ref: t
76
76
  });
77
- if (!p)
77
+ if (!m)
78
78
  return C;
79
- var y = "".concat(o, "-conic"), b = g ? "".concat(180 + g / 2, "deg") : "0deg", h = ie(n, (360 - g) / 360), I = ie(n, 1), P = "conic-gradient(from ".concat(b, ", ").concat(h.join(", "), ")"), $ = "linear-gradient(to ".concat(g ? "bottom" : "top", ", ").concat(I.join(", "), ")");
80
- return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("mask", {
81
- id: y
82
- }, C), /* @__PURE__ */ s.createElement("foreignObject", {
79
+ var S = "".concat(n, "-conic"), p = g ? "".concat(180 + g / 2, "deg") : "0deg", y = ie(o, (360 - g) / 360), I = ie(o, 1), P = "conic-gradient(from ".concat(p, ", ").concat(y.join(", "), ")"), b = "linear-gradient(to ".concat(g ? "bottom" : "top", ", ").concat(I.join(", "), ")");
80
+ return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("mask", {
81
+ id: S
82
+ }, C), /* @__PURE__ */ i.createElement("foreignObject", {
83
83
  x: 0,
84
84
  y: 0,
85
85
  width: d,
86
86
  height: d,
87
- mask: "url(#".concat(y, ")")
88
- }, /* @__PURE__ */ s.createElement(se, {
89
- bg: $
90
- }, /* @__PURE__ */ s.createElement(se, {
87
+ mask: "url(#".concat(S, ")")
88
+ }, /* @__PURE__ */ i.createElement(se, {
89
+ bg: b
90
+ }, /* @__PURE__ */ i.createElement(se, {
91
91
  bg: P
92
92
  }))));
93
93
  });
94
94
  process.env.NODE_ENV !== "production" && (de.displayName = "PtgCircle");
95
- var G = 100, J = function(t, r, n, o, a, i, l, c, f, d) {
96
- var g = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, p = n / 100 * 360 * ((360 - i) / 360), v = i === 0 ? 0 : {
95
+ var G = 100, J = function(t, r, o, n, a, s, l, c, f, d) {
96
+ var g = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, m = o / 100 * 360 * ((360 - s) / 360), h = s === 0 ? 0 : {
97
97
  bottom: 0,
98
98
  top: 180,
99
99
  left: 90,
100
100
  right: -90
101
- }[l], m = (100 - o) / 100 * r;
102
- f === "round" && o !== 100 && (m += d / 2, m >= r && (m = r - 0.01));
101
+ }[l], v = (100 - n) / 100 * r;
102
+ f === "round" && n !== 100 && (v += d / 2, v >= r && (v = r - 0.01));
103
103
  var C = G / 2;
104
104
  return {
105
105
  stroke: typeof c == "string" ? c : void 0,
106
106
  strokeDasharray: "".concat(r, "px ").concat(t),
107
- strokeDashoffset: m + g,
108
- transform: "rotate(".concat(a + p + v, "deg)"),
107
+ strokeDashoffset: v + g,
108
+ transform: "rotate(".concat(a + m + h, "deg)"),
109
109
  transformOrigin: "".concat(C, "px ").concat(C, "px"),
110
110
  transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",
111
111
  fillOpacity: 0
@@ -116,25 +116,25 @@ function ce(e) {
116
116
  return Array.isArray(t) ? t : [t];
117
117
  }
118
118
  var ue = function(t) {
119
- var r = ne(ne({}, We), t), n = r.id, o = r.prefixCls, a = r.steps, i = r.strokeWidth, l = r.trailWidth, c = r.gapDegree, f = c === void 0 ? 0 : c, d = r.gapPosition, g = r.trailColor, p = r.strokeLinecap, v = r.style, m = r.className, C = r.strokeColor, y = r.percent, b = ke(r, Me), h = G / 2, I = Te(n), P = "".concat(I, "-gradient"), $ = h - i / 2, S = Math.PI * 2 * $, O = f > 0 ? 90 + f / 2 : -90, x = S * ((360 - f) / 360), w = V(a) === "object" ? a : {
119
+ var r = oe(oe({}, We), t), o = r.id, n = r.prefixCls, a = r.steps, s = r.strokeWidth, l = r.trailWidth, c = r.gapDegree, f = c === void 0 ? 0 : c, d = r.gapPosition, g = r.trailColor, m = r.strokeLinecap, h = r.style, v = r.className, C = r.strokeColor, S = r.percent, p = Ce(r, Me), y = G / 2, I = Te(o), P = "".concat(I, "-gradient"), b = y - s / 2, $ = Math.PI * 2 * b, O = f > 0 ? 90 + f / 2 : -90, x = $ * ((360 - f) / 360), w = V(a) === "object" ? a : {
120
120
  count: a,
121
121
  gap: 2
122
- }, u = w.count, B = w.gap, z = ce(y), j = ce(C), W = j.find(function(N) {
122
+ }, u = w.count, B = w.gap, z = ce(S), j = ce(C), W = j.find(function(N) {
123
123
  return N && V(N) === "object";
124
- }), A = W && V(W) === "object", _ = A ? "butt" : p, F = J(S, x, 0, 100, O, f, d, g, _, i), H = Ae(), k = function() {
124
+ }), A = W && V(W) === "object", _ = A ? "butt" : m, F = J($, x, 0, 100, O, f, d, g, _, s), H = Ae(), k = function() {
125
125
  var R = 0;
126
126
  return z.map(function(L, T) {
127
- var Y = j[T] || j[j.length - 1], X = J(S, x, R, L, O, f, d, Y, _, i);
128
- return R += L, /* @__PURE__ */ s.createElement(de, {
127
+ var Y = j[T] || j[j.length - 1], X = J($, x, R, L, O, f, d, Y, _, s);
128
+ return R += L, /* @__PURE__ */ i.createElement(de, {
129
129
  key: T,
130
130
  color: Y,
131
131
  ptg: L,
132
- radius: $,
133
- prefixCls: o,
132
+ radius: b,
133
+ prefixCls: n,
134
134
  gradientId: P,
135
135
  style: X,
136
136
  strokeLinecap: _,
137
- strokeWidth: i,
137
+ strokeWidth: s,
138
138
  gapDegree: f,
139
139
  ref: function(Z) {
140
140
  H[T] = Z;
@@ -145,15 +145,15 @@ var ue = function(t) {
145
145
  }, E = function() {
146
146
  var R = Math.round(u * (z[0] / 100)), L = 100 / u, T = 0;
147
147
  return new Array(u).fill(null).map(function(Y, X) {
148
- var K = X <= R - 1 ? j[0] : g, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J(S, x, T, L, O, f, d, K, "butt", i, B);
149
- return T += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */ s.createElement("circle", {
148
+ var K = X <= R - 1 ? j[0] : g, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J($, x, T, L, O, f, d, K, "butt", s, B);
149
+ return T += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */ i.createElement("circle", {
150
150
  key: X,
151
- className: "".concat(o, "-circle-path"),
152
- r: $,
153
- cx: h,
154
- cy: h,
151
+ className: "".concat(n, "-circle-path"),
152
+ r: b,
153
+ cx: y,
154
+ cy: y,
155
155
  stroke: Z,
156
- strokeWidth: i,
156
+ strokeWidth: s,
157
157
  opacity: 1,
158
158
  style: te,
159
159
  ref: function(pe) {
@@ -162,20 +162,20 @@ var ue = function(t) {
162
162
  });
163
163
  });
164
164
  };
165
- return /* @__PURE__ */ s.createElement("svg", xe({
166
- className: M("".concat(o, "-circle"), m),
165
+ return /* @__PURE__ */ i.createElement("svg", be({
166
+ className: M("".concat(n, "-circle"), v),
167
167
  viewBox: "0 0 ".concat(G, " ").concat(G),
168
- style: v,
169
- id: n,
168
+ style: h,
169
+ id: o,
170
170
  role: "presentation"
171
- }, b), !u && /* @__PURE__ */ s.createElement("circle", {
172
- className: "".concat(o, "-circle-trail"),
173
- r: $,
174
- cx: h,
175
- cy: h,
171
+ }, p), !u && /* @__PURE__ */ i.createElement("circle", {
172
+ className: "".concat(n, "-circle-trail"),
173
+ r: b,
174
+ cx: y,
175
+ cy: y,
176
176
  stroke: g,
177
177
  strokeLinecap: _,
178
- strokeWidth: l || i,
178
+ strokeWidth: l || s,
179
179
  style: F
180
180
  }), u ? E() : k());
181
181
  };
@@ -187,31 +187,31 @@ function U(e) {
187
187
  let {
188
188
  success: t,
189
189
  successPercent: r
190
- } = e, n = r;
191
- return t && "progress" in t && (n = t.progress), t && "percent" in t && (n = t.percent), n;
190
+ } = e, o = r;
191
+ return t && "progress" in t && (o = t.progress), t && "percent" in t && (o = t.percent), o;
192
192
  }
193
193
  const Be = (e) => {
194
194
  let {
195
195
  percent: t,
196
196
  success: r,
197
- successPercent: n
197
+ successPercent: o
198
198
  } = e;
199
- const o = D(U({
199
+ const n = D(U({
200
200
  success: r,
201
- successPercent: n
201
+ successPercent: o
202
202
  }));
203
- return [o, D(D(t) - o)];
203
+ return [n, D(D(t) - n)];
204
204
  }, Fe = (e) => {
205
205
  let {
206
206
  success: t = {},
207
207
  strokeColor: r
208
208
  } = e;
209
209
  const {
210
- strokeColor: n
210
+ strokeColor: o
211
211
  } = t;
212
- return [n || ee.green, r || null];
212
+ return [o || ee.green, r || null];
213
213
  }, Q = (e, t, r) => {
214
- var n, o, a, i;
214
+ var o, n, a, s;
215
215
  let l = -1, c = -1;
216
216
  if (t === "step") {
217
217
  const f = r.steps, d = r.strokeWidth;
@@ -219,56 +219,56 @@ const Be = (e) => {
219
219
  } else if (t === "line") {
220
220
  const f = r == null ? void 0 : r.strokeWidth;
221
221
  typeof e == "string" || typeof e > "u" ? c = f || (e === "small" ? 6 : 8) : typeof e == "number" ? [l, c] = [e, e] : [l = -1, c = 8] = Array.isArray(e) ? e : [e.width, e.height];
222
- } else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, c] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, c] = [e, e] : Array.isArray(e) && (l = (o = (n = e[0]) !== null && n !== void 0 ? n : e[1]) !== null && o !== void 0 ? o : 120, c = (i = (a = e[0]) !== null && a !== void 0 ? a : e[1]) !== null && i !== void 0 ? i : 120));
222
+ } else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, c] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, c] = [e, e] : Array.isArray(e) && (l = (n = (o = e[0]) !== null && o !== void 0 ? o : e[1]) !== null && n !== void 0 ? n : 120, c = (s = (a = e[0]) !== null && a !== void 0 ? a : e[1]) !== null && s !== void 0 ? s : 120));
223
223
  return [l, c];
224
224
  }, Xe = 3, Ve = (e) => Xe / e * 100, Ge = (e) => {
225
225
  const {
226
226
  prefixCls: t,
227
227
  trailColor: r = null,
228
- strokeLinecap: n = "round",
229
- gapPosition: o,
228
+ strokeLinecap: o = "round",
229
+ gapPosition: n,
230
230
  gapDegree: a,
231
- width: i = 120,
231
+ width: s = 120,
232
232
  type: l,
233
233
  children: c,
234
234
  success: f,
235
- size: d = i,
235
+ size: d = s,
236
236
  steps: g
237
- } = e, [p, v] = Q(d, "circle");
237
+ } = e, [m, h] = Q(d, "circle");
238
238
  let {
239
- strokeWidth: m
239
+ strokeWidth: v
240
240
  } = e;
241
- m === void 0 && (m = Math.max(Ve(p), 6));
241
+ v === void 0 && (v = Math.max(Ve(m), 6));
242
242
  const C = {
243
- width: p,
244
- height: v,
245
- fontSize: p * 0.15 + 6
246
- }, y = s.useMemo(() => {
243
+ width: m,
244
+ height: h,
245
+ fontSize: m * 0.15 + 6
246
+ }, S = i.useMemo(() => {
247
247
  if (a || a === 0)
248
248
  return a;
249
249
  if (l === "dashboard")
250
250
  return 75;
251
- }, [a, l]), b = Be(e), h = o || l === "dashboard" && "bottom" || void 0, I = Object.prototype.toString.call(e.strokeColor) === "[object Object]", P = Fe({
251
+ }, [a, l]), p = Be(e), y = n || l === "dashboard" && "bottom" || void 0, I = Object.prototype.toString.call(e.strokeColor) === "[object Object]", P = Fe({
252
252
  success: f,
253
253
  strokeColor: e.strokeColor
254
- }), $ = M(`${t}-inner`, {
254
+ }), b = M(`${t}-inner`, {
255
255
  [`${t}-circle-gradient`]: I
256
- }), S = /* @__PURE__ */ s.createElement(ue, {
256
+ }), $ = /* @__PURE__ */ i.createElement(ue, {
257
257
  steps: g,
258
- percent: g ? b[1] : b,
259
- strokeWidth: m,
260
- trailWidth: m,
258
+ percent: g ? p[1] : p,
259
+ strokeWidth: v,
260
+ trailWidth: v,
261
261
  strokeColor: g ? P[1] : P,
262
- strokeLinecap: n,
262
+ strokeLinecap: o,
263
263
  trailColor: r,
264
264
  prefixCls: t,
265
- gapDegree: y,
266
- gapPosition: h
267
- }), O = p <= 20, x = /* @__PURE__ */ s.createElement("div", {
268
- className: $,
265
+ gapDegree: S,
266
+ gapPosition: y
267
+ }), O = m <= 20, x = /* @__PURE__ */ i.createElement("div", {
268
+ className: b,
269
269
  style: C
270
- }, S, !O && c);
271
- return O ? /* @__PURE__ */ s.createElement(De, {
270
+ }, $, !O && c);
271
+ return O ? /* @__PURE__ */ i.createElement(we, {
272
272
  title: c
273
273
  }, x) : x;
274
274
  }, q = "--progress-line-stroke-color", fe = "--progress-percent", ae = (e) => {
@@ -293,7 +293,7 @@ const Be = (e) => {
293
293
  iconCls: r
294
294
  } = e;
295
295
  return {
296
- [t]: Object.assign(Object.assign({}, Oe(e)), {
296
+ [t]: Object.assign(Object.assign({}, Ie(e)), {
297
297
  display: "inline-block",
298
298
  "&-rtl": {
299
299
  direction: "rtl"
@@ -400,7 +400,7 @@ const Be = (e) => {
400
400
  width: "100%",
401
401
  height: "100%",
402
402
  marginInlineStart: 0,
403
- padding: `0 ${Ie(e.paddingXXS)}`,
403
+ padding: `0 ${_e(e.paddingXXS)}`,
404
404
  [`&${t}-text-start`]: {
405
405
  justifyContent: "start"
406
406
  },
@@ -551,8 +551,8 @@ const Be = (e) => {
551
551
  // magic for capsule shape, should be a very large number
552
552
  circleTextFontSize: "1em",
553
553
  circleIconFontSize: `${e.fontSize / e.fontSizeSM}em`
554
- }), Qe = we("Progress", (e) => {
555
- const t = e.calc(e.marginXXS).div(2).equal(), r = Ne(e, {
554
+ }), Qe = Ne("Progress", (e) => {
555
+ const t = e.calc(e.marginXXS).div(2).equal(), r = Oe(e, {
556
556
  progressStepMarginInlineEnd: t,
557
557
  progressStepMinWidth: t,
558
558
  progressActiveMotionDuration: "2.4s"
@@ -561,64 +561,64 @@ const Be = (e) => {
561
561
  }, qe);
562
562
  var Ye = function(e, t) {
563
563
  var r = {};
564
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
565
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
566
- t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
564
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
565
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
566
+ t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
567
567
  return r;
568
568
  };
569
569
  const Ze = (e) => {
570
570
  let t = [];
571
571
  return Object.keys(e).forEach((r) => {
572
- const n = parseFloat(r.replace(/%/g, ""));
573
- Number.isNaN(n) || t.push({
574
- key: n,
572
+ const o = parseFloat(r.replace(/%/g, ""));
573
+ Number.isNaN(o) || t.push({
574
+ key: o,
575
575
  value: e[r]
576
576
  });
577
- }), t = t.sort((r, n) => r.key - n.key), t.map((r) => {
577
+ }), t = t.sort((r, o) => r.key - o.key), t.map((r) => {
578
578
  let {
579
- key: n,
580
- value: o
579
+ key: o,
580
+ value: n
581
581
  } = r;
582
- return `${o} ${n}%`;
582
+ return `${n} ${o}%`;
583
583
  }).join(", ");
584
584
  }, Je = (e, t) => {
585
585
  const {
586
586
  from: r = ee.blue,
587
- to: n = ee.blue,
588
- direction: o = t === "rtl" ? "to left" : "to right"
587
+ to: o = ee.blue,
588
+ direction: n = t === "rtl" ? "to left" : "to right"
589
589
  } = e, a = Ye(e, ["from", "to", "direction"]);
590
590
  if (Object.keys(a).length !== 0) {
591
- const l = Ze(a), c = `linear-gradient(${o}, ${l})`;
591
+ const l = Ze(a), c = `linear-gradient(${n}, ${l})`;
592
592
  return {
593
593
  background: c,
594
594
  [q]: c
595
595
  };
596
596
  }
597
- const i = `linear-gradient(${o}, ${r}, ${n})`;
597
+ const s = `linear-gradient(${n}, ${r}, ${o})`;
598
598
  return {
599
- background: i,
600
- [q]: i
599
+ background: s,
600
+ [q]: s
601
601
  };
602
602
  }, et = (e) => {
603
603
  const {
604
604
  prefixCls: t,
605
605
  direction: r,
606
- percent: n,
607
- size: o,
606
+ percent: o,
607
+ size: n,
608
608
  strokeWidth: a,
609
- strokeColor: i,
609
+ strokeColor: s,
610
610
  strokeLinecap: l = "round",
611
611
  children: c,
612
612
  trailColor: f = null,
613
613
  percentPosition: d,
614
614
  success: g
615
615
  } = e, {
616
- align: p,
617
- type: v
618
- } = d, m = i && typeof i != "string" ? Je(i, r) : {
619
- [q]: i,
620
- background: i
621
- }, C = l === "square" || l === "butt" ? 0 : void 0, y = o ?? [-1, a || (o === "small" ? 6 : 8)], [b, h] = Q(y, "line", {
616
+ align: m,
617
+ type: h
618
+ } = d, v = s && typeof s != "string" ? Je(s, r) : {
619
+ [q]: s,
620
+ background: s
621
+ }, C = l === "square" || l === "butt" ? 0 : void 0, S = n ?? [-1, a || (n === "small" ? 6 : 8)], [p, y] = Q(S, "line", {
622
622
  strokeWidth: a
623
623
  });
624
624
  process.env.NODE_ENV !== "production" && le("Progress").deprecated(!("strokeWidth" in e), "strokeWidth", "size");
@@ -626,31 +626,31 @@ const Ze = (e) => {
626
626
  backgroundColor: f || void 0,
627
627
  borderRadius: C
628
628
  }, P = Object.assign(Object.assign({
629
- width: `${D(n)}%`,
630
- height: h,
629
+ width: `${D(o)}%`,
630
+ height: y,
631
631
  borderRadius: C
632
- }, m), {
633
- [fe]: D(n) / 100
634
- }), $ = U(e), S = {
635
- width: `${D($)}%`,
636
- height: h,
632
+ }, v), {
633
+ [fe]: D(o) / 100
634
+ }), b = U(e), $ = {
635
+ width: `${D(b)}%`,
636
+ height: y,
637
637
  borderRadius: C,
638
638
  backgroundColor: g == null ? void 0 : g.strokeColor
639
639
  }, O = {
640
- width: b < 0 ? "100%" : b
641
- }, x = /* @__PURE__ */ s.createElement("div", {
640
+ width: p < 0 ? "100%" : p
641
+ }, x = /* @__PURE__ */ i.createElement("div", {
642
642
  className: `${t}-inner`,
643
643
  style: I
644
- }, /* @__PURE__ */ s.createElement("div", {
645
- className: M(`${t}-bg`, `${t}-bg-${v}`),
644
+ }, /* @__PURE__ */ i.createElement("div", {
645
+ className: M(`${t}-bg`, `${t}-bg-${h}`),
646
646
  style: P
647
- }, v === "inner" && c), $ !== void 0 && /* @__PURE__ */ s.createElement("div", {
647
+ }, h === "inner" && c), b !== void 0 && /* @__PURE__ */ i.createElement("div", {
648
648
  className: `${t}-success-bg`,
649
- style: S
650
- })), w = v === "outer" && p === "start", u = v === "outer" && p === "end";
651
- return v === "outer" && p === "center" ? /* @__PURE__ */ s.createElement("div", {
649
+ style: $
650
+ })), w = h === "outer" && m === "start", u = h === "outer" && m === "end";
651
+ return h === "outer" && m === "center" ? /* @__PURE__ */ i.createElement("div", {
652
652
  className: `${t}-layout-bottom`
653
- }, x, c) : /* @__PURE__ */ s.createElement("div", {
653
+ }, x, c) : /* @__PURE__ */ i.createElement("div", {
654
654
  className: `${t}-outer`,
655
655
  style: O
656
656
  }, w && c, x, u && c);
@@ -658,136 +658,139 @@ const Ze = (e) => {
658
658
  const {
659
659
  size: t,
660
660
  steps: r,
661
+ rounding: o = Math.round,
661
662
  percent: n = 0,
662
- strokeWidth: o = 8,
663
- strokeColor: a,
664
- trailColor: i = null,
665
- prefixCls: l,
666
- children: c
667
- } = e, f = Math.round(r * (n / 100)), g = t ?? [t === "small" ? 2 : 14, o], [p, v] = Q(g, "step", {
663
+ strokeWidth: a = 8,
664
+ strokeColor: s,
665
+ trailColor: l = null,
666
+ prefixCls: c,
667
+ children: f
668
+ } = e, d = o(r * (n / 100)), m = t ?? [t === "small" ? 2 : 14, a], [h, v] = Q(m, "step", {
668
669
  steps: r,
669
- strokeWidth: o
670
- }), m = p / r, C = new Array(r);
671
- for (let y = 0; y < r; y++) {
672
- const b = Array.isArray(a) ? a[y] : a;
673
- C[y] = /* @__PURE__ */ s.createElement("div", {
674
- key: y,
675
- className: M(`${l}-steps-item`, {
676
- [`${l}-steps-item-active`]: y <= f - 1
670
+ strokeWidth: a
671
+ }), C = h / r, S = Array.from({
672
+ length: r
673
+ });
674
+ for (let p = 0; p < r; p++) {
675
+ const y = Array.isArray(s) ? s[p] : s;
676
+ S[p] = /* @__PURE__ */ i.createElement("div", {
677
+ key: p,
678
+ className: M(`${c}-steps-item`, {
679
+ [`${c}-steps-item-active`]: p <= d - 1
677
680
  }),
678
681
  style: {
679
- backgroundColor: y <= f - 1 ? b : i,
680
- width: m,
682
+ backgroundColor: p <= d - 1 ? y : l,
683
+ width: C,
681
684
  height: v
682
685
  }
683
686
  });
684
687
  }
685
- return /* @__PURE__ */ s.createElement("div", {
686
- className: `${l}-steps-outer`
687
- }, C, c);
688
+ return /* @__PURE__ */ i.createElement("div", {
689
+ className: `${c}-steps-outer`
690
+ }, S, f);
688
691
  };
689
692
  var rt = function(e, t) {
690
693
  var r = {};
691
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
692
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
693
- t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
694
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
695
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, o = Object.getOwnPropertySymbols(e); n < o.length; n++)
696
+ t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
694
697
  return r;
695
698
  };
696
- const nt = ["normal", "exception", "active", "success"], ge = /* @__PURE__ */ s.forwardRef((e, t) => {
699
+ const ot = ["normal", "exception", "active", "success"], ge = /* @__PURE__ */ i.forwardRef((e, t) => {
697
700
  const {
698
701
  prefixCls: r,
699
- className: n,
700
- rootClassName: o,
702
+ className: o,
703
+ rootClassName: n,
701
704
  steps: a,
702
- strokeColor: i,
705
+ strokeColor: s,
703
706
  percent: l = 0,
704
707
  size: c = "default",
705
708
  showInfo: f = !0,
706
709
  type: d = "line",
707
710
  status: g,
708
- format: p,
709
- style: v,
710
- percentPosition: m = {}
711
+ format: m,
712
+ style: h,
713
+ percentPosition: v = {}
711
714
  } = e, C = rt(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), {
712
- align: y = "end",
713
- type: b = "outer"
714
- } = m, h = Array.isArray(i) ? i[0] : i, I = typeof i == "string" || Array.isArray(i) ? i : void 0, P = s.useMemo(() => {
715
- if (h) {
716
- const k = typeof h == "string" ? h : Object.values(h)[0];
717
- return new Ee(k).isLight();
715
+ align: S = "end",
716
+ type: p = "outer"
717
+ } = v, y = Array.isArray(s) ? s[0] : s, I = typeof s == "string" || Array.isArray(s) ? s : void 0, P = i.useMemo(() => {
718
+ if (y) {
719
+ const k = typeof y == "string" ? y : Object.values(y)[0];
720
+ return new $e(k).isLight();
718
721
  }
719
722
  return !1;
720
- }, [i]), $ = s.useMemo(() => {
723
+ }, [s]), b = i.useMemo(() => {
721
724
  var k, E;
722
725
  const N = U(e);
723
726
  return parseInt(N !== void 0 ? (k = N ?? 0) === null || k === void 0 ? void 0 : k.toString() : (E = l ?? 0) === null || E === void 0 ? void 0 : E.toString(), 10);
724
- }, [l, e.success, e.successPercent]), S = s.useMemo(() => !nt.includes(g) && $ >= 100 ? "success" : g || "normal", [g, $]), {
727
+ }, [l, e.success, e.successPercent]), $ = i.useMemo(() => !ot.includes(g) && b >= 100 ? "success" : g || "normal", [g, b]), {
725
728
  getPrefixCls: O,
726
729
  direction: x,
727
730
  progress: w
728
- } = s.useContext(_e), u = O("progress", r), [B, z, j] = Qe(u), W = d === "line", A = W && !a, _ = s.useMemo(() => {
731
+ } = i.useContext(De), u = O("progress", r), [B, z, j] = Qe(u), W = d === "line", A = W && !a, _ = i.useMemo(() => {
729
732
  if (!f)
730
733
  return null;
731
734
  const k = U(e);
732
735
  let E;
733
- const N = p || ((L) => `${L}%`), R = W && P && b === "inner";
734
- return b === "inner" || p || S !== "exception" && S !== "success" ? E = N(D(l), D(k)) : S === "exception" ? E = W ? /* @__PURE__ */ s.createElement(ve, null) : /* @__PURE__ */ s.createElement(be, null) : S === "success" && (E = W ? /* @__PURE__ */ s.createElement(he, null) : /* @__PURE__ */ s.createElement(Ce, null)), /* @__PURE__ */ s.createElement("span", {
736
+ const N = m || ((L) => `${L}%`), R = W && P && p === "inner";
737
+ return p === "inner" || m || $ !== "exception" && $ !== "success" ? E = N(D(l), D(k)) : $ === "exception" ? E = W ? /* @__PURE__ */ i.createElement(xe, null) : /* @__PURE__ */ i.createElement(Ee, null) : $ === "success" && (E = W ? /* @__PURE__ */ i.createElement(Se, null) : /* @__PURE__ */ i.createElement(ke, null)), /* @__PURE__ */ i.createElement("span", {
735
738
  className: M(`${u}-text`, {
736
739
  [`${u}-text-bright`]: R,
737
- [`${u}-text-${y}`]: A,
738
- [`${u}-text-${b}`]: A
740
+ [`${u}-text-${S}`]: A,
741
+ [`${u}-text-${p}`]: A
739
742
  }),
740
743
  title: typeof E == "string" ? E : void 0
741
744
  }, E);
742
- }, [f, l, $, S, d, u, p]);
745
+ }, [f, l, b, $, d, u, m]);
743
746
  if (process.env.NODE_ENV !== "production") {
744
747
  const k = le("Progress");
745
748
  k.deprecated(!("successPercent" in e), "successPercent", "success.percent"), k.deprecated(!("width" in e), "width", "size"), (d === "circle" || d === "dashboard") && (Array.isArray(c) ? process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.') : typeof c == "object" && process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')), e.success && "progress" in e.success && k.deprecated(!1, "success.progress", "success.percent");
746
749
  }
747
750
  let F;
748
- d === "line" ? F = a ? /* @__PURE__ */ s.createElement(tt, Object.assign({}, e, {
751
+ d === "line" ? F = a ? /* @__PURE__ */ i.createElement(tt, Object.assign({}, e, {
749
752
  strokeColor: I,
750
753
  prefixCls: u,
751
754
  steps: typeof a == "object" ? a.count : a
752
- }), _) : /* @__PURE__ */ s.createElement(et, Object.assign({}, e, {
753
- strokeColor: h,
755
+ }), _) : /* @__PURE__ */ i.createElement(et, Object.assign({}, e, {
756
+ strokeColor: y,
754
757
  prefixCls: u,
755
758
  direction: x,
756
759
  percentPosition: {
757
- align: y,
758
- type: b
760
+ align: S,
761
+ type: p
759
762
  }
760
- }), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */ s.createElement(Ge, Object.assign({}, e, {
761
- strokeColor: h,
763
+ }), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */ i.createElement(Ge, Object.assign({}, e, {
764
+ strokeColor: y,
762
765
  prefixCls: u,
763
- progressStatus: S
766
+ progressStatus: $
764
767
  }), _));
765
- const H = M(u, `${u}-status-${S}`, {
768
+ const H = M(u, `${u}-status-${$}`, {
766
769
  [`${u}-${d === "dashboard" && "circle" || d}`]: d !== "line",
767
770
  [`${u}-inline-circle`]: d === "circle" && Q(c, "circle")[0] <= 20,
768
771
  [`${u}-line`]: A,
769
- [`${u}-line-align-${y}`]: A,
770
- [`${u}-line-position-${b}`]: A,
772
+ [`${u}-line-align-${S}`]: A,
773
+ [`${u}-line-position-${p}`]: A,
771
774
  [`${u}-steps`]: a,
772
775
  [`${u}-show-info`]: f,
773
776
  [`${u}-${c}`]: typeof c == "string",
774
777
  [`${u}-rtl`]: x === "rtl"
775
- }, w == null ? void 0 : w.className, n, o, z, j);
776
- return B(/* @__PURE__ */ s.createElement("div", Object.assign({
778
+ }, w == null ? void 0 : w.className, o, n, z, j);
779
+ return B(/* @__PURE__ */ i.createElement("div", Object.assign({
777
780
  ref: t,
778
- style: Object.assign(Object.assign({}, w == null ? void 0 : w.style), v),
781
+ style: Object.assign(Object.assign({}, w == null ? void 0 : w.style), h),
779
782
  className: H,
780
783
  role: "progressbar",
781
- "aria-valuenow": $,
784
+ "aria-valuenow": b,
782
785
  "aria-valuemin": 0,
783
786
  "aria-valuemax": 100
784
787
  }, Pe(C, ["trailColor", "strokeWidth", "width", "gapDegree", "gapPosition", "strokeLinecap", "success", "successPercent"])), F));
785
788
  });
786
789
  process.env.NODE_ENV !== "production" && (ge.displayName = "Progress");
787
- const ot = ({ colors: e }, t = "info") => "", Ct = me(ge)`
788
- ${({ theme: e, state: t }) => ot(e, t)}
790
+ const nt = ({ colors: e }, t = "info") => "", ht = me(ge)`
791
+ ${({ theme: e, state: t }) => nt(e, t)}
789
792
  `;
790
793
  export {
791
- Ct as Progress,
792
- ot as getGenesisClass
794
+ ht as Progress,
795
+ nt as getGenesisClass
793
796
  };