@gobolt/genesis 0.1.2 → 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 +7 -7
  2. package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
  3. package/dist/CSSMotionList-DB0khM6h.js +22193 -0
  4. package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
  5. package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
  6. package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
  7. package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
  8. package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
  9. package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
  10. package/dist/Context-2_suFYDs.js +5 -0
  11. package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
  12. package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
  13. package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
  14. package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
  15. package/dist/Input--qsU-6vp.js +424 -0
  16. package/dist/KeyCode-B3vHb2gY.js +155 -0
  17. package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
  18. package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
  19. package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
  20. package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
  21. package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
  22. package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
  23. package/dist/TextArea-CHo3cxKw.js +404 -0
  24. package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
  25. package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
  26. package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
  27. package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
  28. package/dist/button-CYVlK7G0.js +1430 -0
  29. package/dist/components/Avatar/Avatar.js +8 -7
  30. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
  31. package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
  32. package/dist/components/Avatar/styles.d.ts +1 -2
  33. package/dist/components/Avatar/styles.js +161 -159
  34. package/dist/components/Badge/Badge.js +8 -7
  35. package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
  36. package/dist/components/Badge/__tests__/Badge.test.js +1 -1
  37. package/dist/components/Badge/styles.d.ts +0 -1
  38. package/dist/components/Badge/styles.js +1 -1
  39. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
  40. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  41. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
  42. package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
  43. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
  44. package/dist/components/Breadcrumb/styles.d.ts +0 -1
  45. package/dist/components/Breadcrumb/styles.js +58 -58
  46. package/dist/components/Button/Button.d.ts +0 -1
  47. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
  48. package/dist/components/Button/__tests__/Button.test.js +5 -4
  49. package/dist/components/Button/styles.d.ts +0 -1
  50. package/dist/components/Button/styles.js +2 -2
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
  52. package/dist/components/Card/__tests__/Card.test.js +1 -1
  53. package/dist/components/Card/styles.d.ts +0 -1
  54. package/dist/components/Card/styles.js +2 -2
  55. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  56. package/dist/components/Checkbox/Checkbox.js +11 -11
  57. package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
  58. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
  59. package/dist/components/Checkbox/styles.d.ts +3 -4
  60. package/dist/components/Checkbox/styles.js +2 -2
  61. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
  62. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
  63. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
  64. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
  65. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
  66. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
  67. package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
  68. package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
  69. package/dist/components/Dashboard/styles.d.ts +0 -1
  70. package/dist/components/Dashboard/styles.js +1 -1
  71. package/dist/components/DatePicker/DatePicker.d.ts +0 -1
  72. package/dist/components/DatePicker/DatePicker.js +1 -1
  73. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
  74. package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
  75. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
  76. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  77. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
  78. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
  79. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
  80. package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
  81. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
  82. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
  83. package/dist/components/ErrorBoundary/styles.d.ts +0 -1
  84. package/dist/components/ErrorBoundary/styles.js +1 -1
  85. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
  86. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
  87. package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
  88. package/dist/components/Form/Form.d.ts +0 -1
  89. package/dist/components/Form/Form.js +2 -2
  90. package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
  91. package/dist/components/Form/__stories__/FormStory.js +11 -10
  92. package/dist/components/Form/__tests__/form.test.js +7 -6
  93. package/dist/components/Form/index.js +1 -1
  94. package/dist/components/Form/styles.d.ts +0 -1
  95. package/dist/components/Form/styles.js +10 -2
  96. package/dist/components/FormBrandon/Form.d.ts +25 -0
  97. package/dist/components/FormBrandon/Form.js +18 -0
  98. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
  99. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
  100. package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
  101. package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
  102. package/dist/components/FormBrandon/index.d.ts +2 -0
  103. package/dist/components/FormBrandon/index.js +4 -0
  104. package/dist/components/FormBrandon/styles.d.ts +2 -0
  105. package/dist/components/FormBrandon/styles.js +13 -0
  106. package/dist/components/Glyph/Glyph.js +2 -2
  107. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
  108. package/dist/components/Glyph/styles.d.ts +0 -1
  109. package/dist/components/Glyph/styles.js +1 -1
  110. package/dist/components/Input/Input.d.ts +0 -1
  111. package/dist/components/Input/Input.js +9 -10
  112. package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
  113. package/dist/components/Input/__tests__/Input.test.js +21 -20
  114. package/dist/components/Input/styles.d.ts +5 -6
  115. package/dist/components/Input/styles.js +4 -119
  116. package/dist/components/Layout/Content/Content.d.ts +0 -1
  117. package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
  118. package/dist/components/Layout/Content/styles.d.ts +0 -1
  119. package/dist/components/Layout/Content/styles.js +1 -1
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
  121. package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
  123. package/dist/components/Layout/MainLayout/styles.js +1 -1
  124. package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
  125. package/dist/components/Layout/__tests__/Layout.test.js +1 -1
  126. package/dist/components/Message/Message.d.ts +0 -1
  127. package/dist/components/Message/Message.js +13 -12
  128. package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
  129. package/dist/components/Message/__tests__/Message.test.js +6 -5
  130. package/dist/components/Message/styles.js +1 -1
  131. package/dist/components/Notification/Notification.js +122 -55
  132. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
  133. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
  134. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
  135. package/dist/components/Notification/NotificationBadge/styles.js +1 -1
  136. package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
  137. package/dist/components/Notification/__tests__/Notification.test.js +3 -3
  138. package/dist/components/Notification/styles.js +1 -1
  139. package/dist/components/Popover/Popover.d.ts +1 -1
  140. package/dist/components/Popover/Popover.js +14 -11
  141. package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
  142. package/dist/components/Popover/__tests__/Popover.test.js +19 -26
  143. package/dist/components/Popover/styles.d.ts +0 -1
  144. package/dist/components/Popover/styles.js +2 -2
  145. package/dist/components/Progress/Progress.js +29 -27
  146. package/dist/components/Progress/Progress.util.d.ts +0 -1
  147. package/dist/components/Progress/Progress.util.js +8 -7
  148. package/dist/components/Progress/ProgressText.d.ts +0 -1
  149. package/dist/components/Progress/ProgressText.js +8 -7
  150. package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
  151. package/dist/components/Progress/__tests__/Progress.test.js +4 -4
  152. package/dist/components/Progress/styles.d.ts +0 -1
  153. package/dist/components/Progress/styles.js +217 -214
  154. package/dist/components/Radio/Radio.d.ts +0 -1
  155. package/dist/components/Radio/Radio.js +9 -8
  156. package/dist/components/Radio/RadioGroup.js +1 -1
  157. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
  158. package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
  159. package/dist/components/Row/Row.d.ts +0 -1
  160. package/dist/components/Row/Row.js +29 -26
  161. package/dist/components/Row/RowActions/RowActions.js +8 -7
  162. package/dist/components/Row/RowActions/styles.js +1 -1
  163. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
  164. package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
  165. package/dist/components/Row/RowLabelValue/styles.js +2 -2
  166. package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
  167. package/dist/components/Row/__tests__/Row.test.js +3 -3
  168. package/dist/components/Row/styles.d.ts +0 -1
  169. package/dist/components/Row/styles.js +1 -1
  170. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
  171. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
  172. package/dist/components/SegmentedControls/styles.d.ts +1 -2
  173. package/dist/components/SegmentedControls/styles.js +214 -203
  174. package/dist/components/Select/Select.d.ts +0 -1
  175. package/dist/components/Select/Select.js +10 -11
  176. package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
  177. package/dist/components/Select/__tests__/Select.test.js +49 -10754
  178. package/dist/components/Select/styles.d.ts +0 -1
  179. package/dist/components/Select/styles.js +2 -2
  180. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
  181. package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
  182. package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
  183. package/dist/components/Switch/__tests__/Switch.test.js +3 -3
  184. package/dist/components/Switch/styles.d.ts +0 -1
  185. package/dist/components/Switch/styles.js +74 -74
  186. package/dist/components/Table/Table.js +1 -1
  187. package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
  188. package/dist/components/Table/__mocks__/table-mocks.js +10 -9
  189. package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
  190. package/dist/components/Table/__tests__/Table.test.js +1 -1
  191. package/dist/components/Table/styles.d.ts +0 -1
  192. package/dist/components/Table/styles.js +2 -2
  193. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
  194. package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
  195. package/dist/components/Tabs/styles.d.ts +0 -1
  196. package/dist/components/Tabs/styles.js +2 -2
  197. package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
  198. package/dist/components/Tile/__tests__/Tile.test.js +1 -1
  199. package/dist/components/Tile/styles.d.ts +0 -1
  200. package/dist/components/Tile/styles.js +1 -1
  201. package/dist/components/Toast/Toast.d.ts +0 -1
  202. package/dist/components/Toast/Toast.js +9 -8
  203. package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
  204. package/dist/components/Toast/__tests__/Toast.test.js +6 -5
  205. package/dist/components/Toast/index.js +1 -1
  206. package/dist/components/Toast/styles.js +1 -1
  207. package/dist/components/Tooltip/Tooltip.js +8 -7
  208. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
  209. package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
  210. package/dist/components/Tooltip/styles.d.ts +0 -1
  211. package/dist/components/Tooltip/styles.js +2 -2
  212. package/dist/components/Typography/Typography.d.ts +0 -1
  213. package/dist/components/Typography/Typography.js +1 -1
  214. package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
  215. package/dist/components/Typography/__tests__/Typography.test.js +14 -13
  216. package/dist/components/Typography/index.js +1 -1
  217. package/dist/components/Typography/styles.d.ts +0 -1
  218. package/dist/components/Typography/styles.js +2 -2
  219. package/dist/components/index.d.ts +0 -2
  220. package/dist/components/index.js +46 -48
  221. package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
  222. package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
  223. package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
  224. package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
  225. package/dist/genesis/GenesisThemeBreakdown.js +9 -8
  226. package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
  227. package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
  228. package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
  229. package/dist/genesis/styles.d.ts +0 -1
  230. package/dist/genesis/styles.js +3 -3
  231. package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
  232. package/dist/index-B7FXyiY_.js +104 -0
  233. package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
  234. package/dist/index-BZ050Dyl.js +292 -0
  235. package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
  236. package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
  237. package/dist/index-C2K1BzmJ.js +3400 -0
  238. package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
  239. package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
  240. package/dist/index-DCopujxC.js +772 -0
  241. package/dist/index-DRGbc-fW.js +780 -0
  242. package/dist/index-DavB5GQ3.js +5221 -0
  243. package/dist/index-RAH9f-qb.js +540 -0
  244. package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
  245. package/dist/index-Y0KgiFZb.js +909 -0
  246. package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
  247. package/dist/index.js +53 -55
  248. package/dist/interface/appointment.d.ts +0 -1
  249. package/dist/interface/appointmentV2.d.ts +0 -1
  250. package/dist/interface/appointmentsState.d.ts +0 -1
  251. package/dist/interface/deliveryPartner.d.ts +0 -1
  252. package/dist/interface/route.d.ts +0 -1
  253. package/dist/interface/routeAnalysis.d.ts +0 -1
  254. package/dist/interface/routeAutomationJob.d.ts +0 -1
  255. package/dist/interface/routeAutomationLog.d.ts +0 -1
  256. package/dist/interface/serviceArea.d.ts +0 -1
  257. package/dist/interface/vehicle.d.ts +0 -1
  258. package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
  259. package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
  260. package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
  261. package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
  262. package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
  263. package/dist/providers/BreakpointThemeProvider.js +5 -5
  264. package/dist/providers/GenesisProvider.d.ts +0 -1
  265. package/dist/providers/GenesisProvider.js +1 -1
  266. package/dist/providers/ToastProvider.d.ts +0 -1
  267. package/dist/providers/ToastProvider.js +10 -9
  268. package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
  269. package/dist/providers/index.js +1 -1
  270. package/dist/providers/useGenesis.d.ts +0 -1
  271. package/dist/providers/useGenesis.js +2 -2
  272. package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
  273. package/dist/setup-aZdxWCJq.js +13976 -0
  274. package/dist/setup.types-CgFq66QX.js +9261 -0
  275. package/dist/shadow-9lsz-71t.js +13 -0
  276. package/dist/statusUtils-Kj9kMuVg.js +15 -0
  277. package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
  278. package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
  279. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
  280. package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
  281. package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
  282. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
  283. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  284. package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
  285. package/dist/styles/global-styles.d.ts +0 -1
  286. package/dist/styles/global-styles.js +1 -1
  287. package/dist/styles/theme/genesis-theme.d.ts +0 -1
  288. package/dist/styles/theme/genesis-theme.js +285 -337
  289. package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
  290. package/dist/styles/theme/genesis-theme.test.js +69 -0
  291. package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
  292. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
  293. package/dist/styles-DNay6iFa.js +292 -0
  294. package/dist/styles-Wpm1RiGr.js +9212 -0
  295. package/dist/styles-XuoEGUZZ.js +549 -0
  296. package/dist/test/setup.d.ts +0 -1
  297. package/dist/test/setup.js +35 -35
  298. package/dist/test/setup.types.d.ts +0 -1
  299. package/dist/test/setup.types.js +1 -1
  300. package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
  301. package/dist/useBreakpoint-ByLol0R9.js +88 -0
  302. package/dist/useCSSVarCls-YfJY1twF.js +10 -0
  303. package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
  304. package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
  305. package/dist/useLocale-BQ3mKRyJ.js +16 -0
  306. package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
  307. package/dist/useSize-Ct1guc-z.js +9 -0
  308. package/dist/useVariants-C6UAAu9f.js +19 -0
  309. package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
  310. package/dist/utils/icon-util.js +48 -44
  311. package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
  312. package/package.json +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-DwHFLWUb.js +0 -24713
  332. package/dist/setup.types-dBtAXXGp.js +0 -8824
  333. package/dist/shadow-BoMGMNn3.js +0 -13
  334. package/dist/styles-CWdUpZom.js +0 -289
  335. package/dist/styles-qerRs7Rn.js +0 -9196
  336. package/dist/useBreakpoint-TkMv121M.js +0 -22
  337. package/dist/useCSSVarCls-Dau77fzS.js +0 -11
  338. package/dist/useLocale-CTfNpakL.js +0 -16
  339. package/dist/useSize-DSq4r6zy.js +0 -9
  340. package/dist/useVariants-DrLzUVLU.js +0 -30
  341. package/dist/utils/getAppointmentColor.d.ts +0 -4
  342. package/dist/utils/getAppointmentColor.js +0 -91
  343. package/dist/utils/isAllEnglishString.d.ts +0 -1
  344. package/dist/utils/isAllEnglishString.js +0 -8
  345. package/dist/utils/isAllEnglishString.test.js +0 -8
  346. package/dist/utils/parseAddress.d.ts +0 -3
  347. package/dist/utils/parseAddress.js +0 -19
  348. /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
@@ -1,15 +1,14 @@
1
- import { d as be } from "../../styled-components.browser.esm-CZ1XM4o4.js";
1
+ import { d as ge } from "../../styled-components.browser.esm-C47QHsU4.js";
2
2
  import * as i from "react";
3
- import { a as A, _ as X, e as K, g as ve, d as Q, b as z, f as ae } from "../../presets-Djh_L_6R.js";
4
- import { u as Se } from "../../useMergedState-D6toxSxh.js";
3
+ import { a as B, _ as q, c as L, g as be, e as Q, b as _, f as ne } from "../../presets-CSXMiWyc.js";
4
+ import { u as Se } from "../../useMergedState-D1-TbeEv.js";
5
5
  import { o as pe } from "../../omit-B_u6A-HL.js";
6
- import { h as $e, s as ye, t as ie, j as Ce, m as we, v as xe, k as Ne, p as Oe, f as E, w as Re, C as Me } from "../../index-BbTV2Cw5.js";
7
- import { u as Ie } from "../../useSize-DSq4r6zy.js";
8
- import "../../index-DLdU7Tpd.js";
9
- import { u as je } from "../../useId-D2tzlufo.js";
10
- var k = function(t, a) {
6
+ import { h as $e, p as ye, q as ie, g as Ce, m as we, j as xe, o as Ne, f as E, s as Re, t as Oe, l as Me } from "../../CSSMotionList-DB0khM6h.js";
7
+ import { u as Ie } from "../../useId-DLf1xVuv.js";
8
+ import { u as je } from "../../useSize-Ct1guc-z.js";
9
+ var k = function(t, n) {
11
10
  if (!t) return null;
12
- var n = {
11
+ var a = {
13
12
  left: t.offsetLeft,
14
13
  right: t.parentElement.clientWidth - t.clientWidth - t.offsetLeft,
15
14
  width: t.clientWidth,
@@ -17,106 +16,106 @@ var k = function(t, a) {
17
16
  bottom: t.parentElement.clientHeight - t.clientHeight - t.offsetTop,
18
17
  height: t.clientHeight
19
18
  };
20
- return a ? {
19
+ return n ? {
21
20
  left: 0,
22
21
  right: 0,
23
22
  width: 0,
24
- top: n.top,
25
- bottom: n.bottom,
26
- height: n.height
23
+ top: a.top,
24
+ bottom: a.bottom,
25
+ height: a.height
27
26
  } : {
28
- left: n.left,
29
- right: n.right,
30
- width: n.width,
27
+ left: a.left,
28
+ right: a.right,
29
+ width: a.width,
31
30
  top: 0,
32
31
  bottom: 0,
33
32
  height: 0
34
33
  };
35
- }, w = function(t) {
34
+ }, C = function(t) {
36
35
  return t !== void 0 ? "".concat(t, "px") : void 0;
37
36
  };
38
37
  function Ee(e) {
39
- var t = e.prefixCls, a = e.containerRef, n = e.value, r = e.getValueIndex, s = e.motionName, p = e.onMotionStart, b = e.onMotionEnd, v = e.direction, x = e.vertical, u = x === void 0 ? !1 : x, H = i.useRef(null), P = i.useState(n), R = A(P, 2), f = R[0], h = R[1], m = function(j) {
40
- var O, V = r(j), C = (O = a.current) === null || O === void 0 ? void 0 : O.querySelectorAll(".".concat(t, "-item"))[V];
41
- return (C == null ? void 0 : C.offsetParent) && C;
42
- }, D = i.useState(null), M = A(D, 2), o = M[0], N = M[1], _ = i.useState(null), S = A(_, 2), l = S[0], $ = S[1];
38
+ var t = e.prefixCls, n = e.containerRef, a = e.value, o = e.getValueIndex, s = e.motionName, S = e.onMotionStart, h = e.onMotionEnd, b = e.direction, w = e.vertical, d = w === void 0 ? !1 : w, N = i.useRef(null), H = i.useState(a), R = B(H, 2), v = R[0], O = R[1], M = function(j) {
39
+ var x, A = o(j), y = (x = n.current) === null || x === void 0 ? void 0 : x.querySelectorAll(".".concat(t, "-item"))[A];
40
+ return (y == null ? void 0 : y.offsetParent) && y;
41
+ }, P = i.useState(null), m = B(P, 2), r = m[0], I = m[1], T = i.useState(null), g = B(T, 2), l = g[0], D = g[1];
43
42
  $e(function() {
44
- if (f !== n) {
45
- var d = m(f), j = m(n), O = k(d, u), V = k(j, u);
46
- h(n), N(O), $(V), d && j ? p() : b();
43
+ if (v !== a) {
44
+ var c = M(v), j = M(a), x = k(c, d), A = k(j, d);
45
+ O(a), I(x), D(A), c && j ? S() : h();
47
46
  }
48
- }, [n]);
49
- var y = i.useMemo(function() {
50
- if (u) {
51
- var d;
52
- return w((d = o == null ? void 0 : o.top) !== null && d !== void 0 ? d : 0);
47
+ }, [a]);
48
+ var p = i.useMemo(function() {
49
+ if (d) {
50
+ var c;
51
+ return C((c = r == null ? void 0 : r.top) !== null && c !== void 0 ? c : 0);
53
52
  }
54
- return w(v === "rtl" ? -(o == null ? void 0 : o.right) : o == null ? void 0 : o.left);
55
- }, [u, v, o]), I = i.useMemo(function() {
56
- if (u) {
57
- var d;
58
- return w((d = l == null ? void 0 : l.top) !== null && d !== void 0 ? d : 0);
53
+ return C(b === "rtl" ? -(r == null ? void 0 : r.right) : r == null ? void 0 : r.left);
54
+ }, [d, b, r]), $ = i.useMemo(function() {
55
+ if (d) {
56
+ var c;
57
+ return C((c = l == null ? void 0 : l.top) !== null && c !== void 0 ? c : 0);
59
58
  }
60
- return w(v === "rtl" ? -(l == null ? void 0 : l.right) : l == null ? void 0 : l.left);
61
- }, [u, v, l]), T = function() {
62
- return u ? {
59
+ return C(b === "rtl" ? -(l == null ? void 0 : l.right) : l == null ? void 0 : l.left);
60
+ }, [d, b, l]), K = function() {
61
+ return d ? {
63
62
  transform: "translateY(var(--thumb-start-top))",
64
63
  height: "var(--thumb-start-height)"
65
64
  } : {
66
65
  transform: "translateX(var(--thumb-start-left))",
67
66
  width: "var(--thumb-start-width)"
68
67
  };
69
- }, F = function() {
70
- return u ? {
68
+ }, V = function() {
69
+ return d ? {
71
70
  transform: "translateY(var(--thumb-active-top))",
72
71
  height: "var(--thumb-active-height)"
73
72
  } : {
74
73
  transform: "translateX(var(--thumb-active-left))",
75
74
  width: "var(--thumb-active-width)"
76
75
  };
77
- }, W = function() {
78
- N(null), $(null), b();
76
+ }, F = function() {
77
+ I(null), D(null), h();
79
78
  };
80
- return !o || !l ? null : /* @__PURE__ */ i.createElement(ye, {
79
+ return !r || !l ? null : /* @__PURE__ */ i.createElement(ye, {
81
80
  visible: !0,
82
81
  motionName: s,
83
82
  motionAppear: !0,
84
- onAppearStart: T,
85
- onAppearActive: F,
86
- onVisibleChanged: W
87
- }, function(d, j) {
88
- var O = d.className, V = d.style, C = X(X({}, V), {}, {
89
- "--thumb-start-left": y,
90
- "--thumb-start-width": w(o == null ? void 0 : o.width),
91
- "--thumb-active-left": I,
92
- "--thumb-active-width": w(l == null ? void 0 : l.width),
93
- "--thumb-start-top": y,
94
- "--thumb-start-height": w(o == null ? void 0 : o.height),
95
- "--thumb-active-top": I,
96
- "--thumb-active-height": w(l == null ? void 0 : l.height)
97
- }), L = {
98
- ref: ie(H, j),
99
- style: C,
100
- className: K("".concat(t, "-thumb"), O)
83
+ onAppearStart: K,
84
+ onAppearActive: V,
85
+ onVisibleChanged: F
86
+ }, function(c, j) {
87
+ var x = c.className, A = c.style, y = q(q({}, A), {}, {
88
+ "--thumb-start-left": p,
89
+ "--thumb-start-width": C(r == null ? void 0 : r.width),
90
+ "--thumb-active-left": $,
91
+ "--thumb-active-width": C(l == null ? void 0 : l.width),
92
+ "--thumb-start-top": p,
93
+ "--thumb-start-height": C(r == null ? void 0 : r.height),
94
+ "--thumb-active-top": $,
95
+ "--thumb-active-height": C(l == null ? void 0 : l.height)
96
+ }), X = {
97
+ ref: ie(N, j),
98
+ style: y,
99
+ className: L("".concat(t, "-thumb"), x)
101
100
  };
102
- return process.env.NODE_ENV === "test" && (L["data-test-style"] = JSON.stringify(C)), /* @__PURE__ */ i.createElement("div", L);
101
+ return process.env.NODE_ENV === "test" && (X["data-test-style"] = JSON.stringify(y)), /* @__PURE__ */ i.createElement("div", X);
103
102
  });
104
103
  }
105
104
  var He = ["prefixCls", "direction", "vertical", "options", "disabled", "defaultValue", "value", "name", "onChange", "className", "motionName"];
106
105
  function Pe(e) {
107
106
  if (typeof e.title < "u")
108
107
  return e.title;
109
- if (ae(e.label) !== "object") {
108
+ if (ne(e.label) !== "object") {
110
109
  var t;
111
110
  return (t = e.label) === null || t === void 0 ? void 0 : t.toString();
112
111
  }
113
112
  }
114
113
  function De(e) {
115
114
  return e.map(function(t) {
116
- if (ae(t) === "object" && t !== null) {
117
- var a = Pe(t);
118
- return X(X({}, t), {}, {
119
- title: a
115
+ if (ne(t) === "object" && t !== null) {
116
+ var n = Pe(t);
117
+ return q(q({}, t), {}, {
118
+ title: n
120
119
  });
121
120
  }
122
121
  return {
@@ -127,53 +126,53 @@ function De(e) {
127
126
  });
128
127
  }
129
128
  var Ve = function(t) {
130
- var a = t.prefixCls, n = t.className, r = t.disabled, s = t.checked, p = t.label, b = t.title, v = t.value, x = t.name, u = t.onChange, H = t.onFocus, P = t.onBlur, R = t.onKeyDown, f = t.onKeyUp, h = t.onMouseDown, m = function(M) {
131
- r || u(M, v);
129
+ var n = t.prefixCls, a = t.className, o = t.disabled, s = t.checked, S = t.label, h = t.title, b = t.value, w = t.name, d = t.onChange, N = t.onFocus, H = t.onBlur, R = t.onKeyDown, v = t.onKeyUp, O = t.onMouseDown, M = function(m) {
130
+ o || d(m, b);
132
131
  };
133
132
  return /* @__PURE__ */ i.createElement("label", {
134
- className: K(n, z({}, "".concat(a, "-item-disabled"), r)),
135
- onMouseDown: h
133
+ className: L(a, _({}, "".concat(n, "-item-disabled"), o)),
134
+ onMouseDown: O
136
135
  }, /* @__PURE__ */ i.createElement("input", {
137
- name: x,
138
- className: "".concat(a, "-item-input"),
136
+ name: w,
137
+ className: "".concat(n, "-item-input"),
139
138
  type: "radio",
140
- disabled: r,
139
+ disabled: o,
141
140
  checked: s,
142
- onChange: m,
143
- onFocus: H,
144
- onBlur: P,
141
+ onChange: M,
142
+ onFocus: N,
143
+ onBlur: H,
145
144
  onKeyDown: R,
146
- onKeyUp: f
145
+ onKeyUp: v
147
146
  }), /* @__PURE__ */ i.createElement("div", {
148
- className: "".concat(a, "-item-label"),
149
- title: b,
147
+ className: "".concat(n, "-item-label"),
148
+ title: h,
150
149
  "aria-selected": s
151
- }, p));
152
- }, re = /* @__PURE__ */ i.forwardRef(function(e, t) {
153
- var a, n, r = e.prefixCls, s = r === void 0 ? "rc-segmented" : r, p = e.direction, b = e.vertical, v = e.options, x = v === void 0 ? [] : v, u = e.disabled, H = e.defaultValue, P = e.value, R = e.name, f = e.onChange, h = e.className, m = h === void 0 ? "" : h, D = e.motionName, M = D === void 0 ? "thumb-motion" : D, o = ve(e, He), N = i.useRef(null), _ = i.useMemo(function() {
154
- return ie(N, t);
155
- }, [N, t]), S = i.useMemo(function() {
156
- return De(x);
157
- }, [x]), l = Se((a = S[0]) === null || a === void 0 ? void 0 : a.value, {
158
- value: P,
159
- defaultValue: H
160
- }), $ = A(l, 2), y = $[0], I = $[1], T = i.useState(!1), F = A(T, 2), W = F[0], d = F[1], j = function(g, B) {
161
- I(B), f == null || f(B);
162
- }, O = pe(o, ["children"]), V = i.useState(!1), C = A(V, 2), L = C[0], U = C[1], le = i.useState(!1), G = A(le, 2), se = G[0], Y = G[1], de = function() {
150
+ }, S));
151
+ }, oe = /* @__PURE__ */ i.forwardRef(function(e, t) {
152
+ var n, a, o = e.prefixCls, s = o === void 0 ? "rc-segmented" : o, S = e.direction, h = e.vertical, b = e.options, w = b === void 0 ? [] : b, d = e.disabled, N = e.defaultValue, H = e.value, R = e.name, v = e.onChange, O = e.className, M = O === void 0 ? "" : O, P = e.motionName, m = P === void 0 ? "thumb-motion" : P, r = be(e, He), I = i.useRef(null), T = i.useMemo(function() {
153
+ return ie(I, t);
154
+ }, [I, t]), g = i.useMemo(function() {
155
+ return De(w);
156
+ }, [w]), l = Se((n = g[0]) === null || n === void 0 ? void 0 : n.value, {
157
+ value: H,
158
+ defaultValue: N
159
+ }), D = B(l, 2), p = D[0], $ = D[1], K = i.useState(!1), V = B(K, 2), F = V[0], c = V[1], j = function(f, z) {
160
+ $(z), v == null || v(z);
161
+ }, x = pe(r, ["children"]), A = i.useState(!1), y = B(A, 2), X = y[0], U = y[1], le = i.useState(!1), G = B(le, 2), se = G[0], Y = G[1], ce = function() {
163
162
  Y(!0);
164
- }, ue = function() {
163
+ }, de = function() {
165
164
  Y(!1);
166
- }, ce = function() {
165
+ }, ue = function() {
167
166
  U(!1);
168
- }, me = function(g) {
169
- g.key === "Tab" && U(!0);
170
- }, J = function(g) {
171
- var B = S.findIndex(function(ge) {
172
- return ge.value === y;
173
- }), Z = S.length, he = (B + g + Z) % Z, q = S[he];
174
- q && (I(q.value), f == null || f(q.value));
175
- }, fe = function(g) {
176
- switch (g.key) {
167
+ }, me = function(f) {
168
+ f.key === "Tab" && U(!0);
169
+ }, J = function(f) {
170
+ var z = g.findIndex(function(he) {
171
+ return he.value === p;
172
+ }), Z = g.length, fe = (z + f + Z) % Z, W = g[fe];
173
+ W && ($(W.value), v == null || v(W.value));
174
+ }, ve = function(f) {
175
+ switch (f.key) {
177
176
  case "ArrowLeft":
178
177
  case "ArrowUp":
179
178
  J(-1);
@@ -187,50 +186,50 @@ var Ve = function(t) {
187
186
  return /* @__PURE__ */ i.createElement("div", Q({
188
187
  role: "radiogroup",
189
188
  "aria-label": "segmented control",
190
- tabIndex: u ? void 0 : 0
191
- }, O, {
192
- className: K(s, (n = {}, z(n, "".concat(s, "-rtl"), p === "rtl"), z(n, "".concat(s, "-disabled"), u), z(n, "".concat(s, "-vertical"), b), n), m),
193
- ref: _
189
+ tabIndex: d ? void 0 : 0
190
+ }, x, {
191
+ className: L(s, (a = {}, _(a, "".concat(s, "-rtl"), S === "rtl"), _(a, "".concat(s, "-disabled"), d), _(a, "".concat(s, "-vertical"), h), a), M),
192
+ ref: T
194
193
  }), /* @__PURE__ */ i.createElement("div", {
195
194
  className: "".concat(s, "-group")
196
195
  }, /* @__PURE__ */ i.createElement(Ee, {
197
- vertical: b,
196
+ vertical: h,
198
197
  prefixCls: s,
199
- value: y,
200
- containerRef: N,
201
- motionName: "".concat(s, "-").concat(M),
202
- direction: p,
203
- getValueIndex: function(g) {
204
- return S.findIndex(function(B) {
205
- return B.value === g;
198
+ value: p,
199
+ containerRef: I,
200
+ motionName: "".concat(s, "-").concat(m),
201
+ direction: S,
202
+ getValueIndex: function(f) {
203
+ return g.findIndex(function(z) {
204
+ return z.value === f;
206
205
  });
207
206
  },
208
207
  onMotionStart: function() {
209
- d(!0);
208
+ c(!0);
210
209
  },
211
210
  onMotionEnd: function() {
212
- d(!1);
211
+ c(!1);
213
212
  }
214
- }), S.map(function(c) {
215
- var g;
216
- return /* @__PURE__ */ i.createElement(Ve, Q({}, c, {
213
+ }), g.map(function(u) {
214
+ var f;
215
+ return /* @__PURE__ */ i.createElement(Ve, Q({}, u, {
217
216
  name: R,
218
- key: c.value,
217
+ key: u.value,
219
218
  prefixCls: s,
220
- className: K(c.className, "".concat(s, "-item"), (g = {}, z(g, "".concat(s, "-item-selected"), c.value === y && !W), z(g, "".concat(s, "-item-focused"), se && L && c.value === y), g)),
221
- checked: c.value === y,
219
+ className: L(u.className, "".concat(s, "-item"), (f = {}, _(f, "".concat(s, "-item-selected"), u.value === p && !F), _(f, "".concat(s, "-item-focused"), se && X && u.value === p), f)),
220
+ checked: u.value === p,
222
221
  onChange: j,
223
- onFocus: de,
224
- onBlur: ue,
225
- onKeyDown: fe,
222
+ onFocus: ce,
223
+ onBlur: de,
224
+ onKeyDown: ve,
226
225
  onKeyUp: me,
227
- onMouseDown: ce,
228
- disabled: !!u || !!c.disabled
226
+ onMouseDown: ue,
227
+ disabled: !!d || !!u.disabled
229
228
  }));
230
229
  })));
231
230
  });
232
- process.env.NODE_ENV !== "production" && (re.displayName = "Segmented");
233
- var Ae = re;
231
+ process.env.NODE_ENV !== "production" && (oe.displayName = "Segmented");
232
+ var Ae = oe;
234
233
  function ee(e, t) {
235
234
  return {
236
235
  [`${e}, ${e}:hover, ${e}:focus`]: {
@@ -247,19 +246,19 @@ function te(e) {
247
246
  }
248
247
  const Be = Object.assign({
249
248
  overflow: "hidden"
250
- }, xe), ze = (e) => {
249
+ }, Oe), ze = (e) => {
251
250
  const {
252
251
  componentCls: t
253
- } = e, a = e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(), n = e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(), r = e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();
252
+ } = e, n = e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(), a = e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(), o = e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();
254
253
  return {
255
- [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ne(e)), {
254
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, xe(e)), {
256
255
  display: "inline-block",
257
256
  padding: e.trackPadding,
258
257
  color: e.itemColor,
259
258
  background: e.trackBg,
260
259
  borderRadius: e.borderRadius,
261
260
  transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`
262
- }), Oe(e)), {
261
+ }), Ne(e)), {
263
262
  [`${t}-group`]: {
264
263
  position: "relative",
265
264
  display: "flex",
@@ -313,7 +312,8 @@ const Be = Object.assign({
313
312
  top: 0,
314
313
  insetInlineStart: 0,
315
314
  borderRadius: "inherit",
316
- transition: `background-color ${e.motionDurationMid}`,
315
+ opacity: 0,
316
+ transition: `opacity ${e.motionDurationMid}`,
317
317
  // This is mandatory to make it not clickable or hoverable
318
318
  // Ref: https://github.com/ant-design/ant-design/issues/40888
319
319
  pointerEvents: "none"
@@ -321,18 +321,20 @@ const Be = Object.assign({
321
321
  [`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]: {
322
322
  color: e.itemHoverColor,
323
323
  "&::after": {
324
+ opacity: 1,
324
325
  backgroundColor: e.itemHoverBg
325
326
  }
326
327
  },
327
328
  [`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]: {
328
329
  color: e.itemHoverColor,
329
330
  "&::after": {
331
+ opacity: 1,
330
332
  backgroundColor: e.itemActiveBg
331
333
  }
332
334
  },
333
335
  "&-label": Object.assign({
334
- minHeight: a,
335
- lineHeight: E(a),
336
+ minHeight: n,
337
+ lineHeight: E(n),
336
338
  padding: `0 ${E(e.segmentedPaddingHorizontal)}`
337
339
  }, Be),
338
340
  // syntactic sugar to add `icon` for Segmented Item
@@ -367,8 +369,8 @@ const Be = Object.assign({
367
369
  [`&${t}-lg`]: {
368
370
  borderRadius: e.borderRadiusLG,
369
371
  [`${t}-item-label`]: {
370
- minHeight: n,
371
- lineHeight: E(n),
372
+ minHeight: a,
373
+ lineHeight: E(a),
372
374
  padding: `0 ${E(e.segmentedPaddingHorizontal)}`,
373
375
  fontSize: e.fontSizeLG
374
376
  },
@@ -379,8 +381,8 @@ const Be = Object.assign({
379
381
  [`&${t}-sm`]: {
380
382
  borderRadius: e.borderRadiusSM,
381
383
  [`${t}-item-label`]: {
382
- minHeight: r,
383
- lineHeight: E(r),
384
+ minHeight: o,
385
+ lineHeight: E(o),
384
386
  padding: `0 ${E(e.segmentedPaddingHorizontalSM)}`
385
387
  },
386
388
  [`${t}-item, ${t}-thumb`]: {
@@ -392,120 +394,129 @@ const Be = Object.assign({
392
394
  [`${t}-thumb-motion-appear-active`]: {
393
395
  transition: `transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,
394
396
  willChange: "transform, width"
397
+ },
398
+ [`&${t}-shape-round`]: {
399
+ borderRadius: 9999,
400
+ [`${t}-item, ${t}-thumb`]: {
401
+ borderRadius: 9999
402
+ }
395
403
  }
396
404
  })
397
405
  };
398
406
  }, _e = (e) => {
399
407
  const {
400
408
  colorTextLabel: t,
401
- colorText: a,
402
- colorFillSecondary: n,
403
- colorBgElevated: r,
409
+ colorText: n,
410
+ colorFillSecondary: a,
411
+ colorBgElevated: o,
404
412
  colorFill: s,
405
- lineWidthBold: p,
406
- colorBgLayout: b
413
+ lineWidthBold: S,
414
+ colorBgLayout: h
407
415
  } = e;
408
416
  return {
409
- trackPadding: p,
410
- trackBg: b,
417
+ trackPadding: S,
418
+ trackBg: h,
411
419
  itemColor: t,
412
- itemHoverColor: a,
413
- itemHoverBg: n,
414
- itemSelectedBg: r,
420
+ itemHoverColor: n,
421
+ itemHoverBg: a,
422
+ itemSelectedBg: o,
415
423
  itemActiveBg: s,
416
- itemSelectedColor: a
424
+ itemSelectedColor: n
417
425
  };
418
426
  }, Te = Ce("Segmented", (e) => {
419
427
  const {
420
428
  lineWidth: t,
421
- calc: a
422
- } = e, n = we(e, {
423
- segmentedPaddingHorizontal: a(e.controlPaddingHorizontal).sub(t).equal(),
424
- segmentedPaddingHorizontalSM: a(e.controlPaddingHorizontalSM).sub(t).equal()
429
+ calc: n
430
+ } = e, a = we(e, {
431
+ segmentedPaddingHorizontal: n(e.controlPaddingHorizontal).sub(t).equal(),
432
+ segmentedPaddingHorizontalSM: n(e.controlPaddingHorizontalSM).sub(t).equal()
425
433
  });
426
- return [ze(n)];
434
+ return [ze(a)];
427
435
  }, _e);
428
- var ne = function(e, t) {
429
- var a = {};
430
- for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
431
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
432
- t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (a[n[r]] = e[n[r]]);
433
- return a;
436
+ var ae = function(e, t) {
437
+ var n = {};
438
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
439
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, a = Object.getOwnPropertySymbols(e); o < a.length; o++)
440
+ t.indexOf(a[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[o]) && (n[a[o]] = e[a[o]]);
441
+ return n;
434
442
  };
435
443
  function Ke(e) {
436
444
  return typeof e == "object" && !!(e != null && e.icon);
437
445
  }
438
446
  const Fe = /* @__PURE__ */ i.forwardRef((e, t) => {
439
- const a = je(), {
440
- prefixCls: n,
441
- className: r,
447
+ const n = Ie(), {
448
+ prefixCls: a,
449
+ className: o,
442
450
  rootClassName: s,
443
- block: p,
444
- options: b = [],
445
- size: v = "middle",
446
- style: x,
447
- vertical: u,
448
- name: H = a
449
- } = e, P = ne(e, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "name"]), {
450
- getPrefixCls: R,
451
- direction: f,
452
- segmented: h
453
- } = i.useContext(Me), m = R("segmented", n), [D, M, o] = Te(m), N = Ie(v), _ = i.useMemo(() => b.map(($) => {
451
+ block: S,
452
+ options: h = [],
453
+ size: b = "middle",
454
+ style: w,
455
+ vertical: d,
456
+ shape: N = "default",
457
+ name: H = n
458
+ } = e, R = ae(e, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "shape", "name"]), {
459
+ getPrefixCls: v,
460
+ direction: O,
461
+ className: M,
462
+ style: P
463
+ } = Me("segmented"), m = v("segmented", a), [r, I, T] = Te(m), g = je(b), l = i.useMemo(() => h.map(($) => {
454
464
  if (Ke($)) {
455
465
  const {
456
- icon: y,
457
- label: I
458
- } = $, T = ne($, ["icon", "label"]);
459
- return Object.assign(Object.assign({}, T), {
466
+ icon: K,
467
+ label: V
468
+ } = $, F = ae($, ["icon", "label"]);
469
+ return Object.assign(Object.assign({}, F), {
460
470
  label: /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("span", {
461
471
  className: `${m}-item-icon`
462
- }, y), I && /* @__PURE__ */ i.createElement("span", null, I))
472
+ }, K), V && /* @__PURE__ */ i.createElement("span", null, V))
463
473
  });
464
474
  }
465
475
  return $;
466
- }), [b, m]), S = K(r, s, h == null ? void 0 : h.className, {
467
- [`${m}-block`]: p,
468
- [`${m}-sm`]: N === "small",
469
- [`${m}-lg`]: N === "large",
470
- [`${m}-vertical`]: u
471
- }, M, o), l = Object.assign(Object.assign({}, h == null ? void 0 : h.style), x);
472
- return D(/* @__PURE__ */ i.createElement(Ae, Object.assign({}, P, {
476
+ }), [h, m]), D = L(o, s, M, {
477
+ [`${m}-block`]: S,
478
+ [`${m}-sm`]: g === "small",
479
+ [`${m}-lg`]: g === "large",
480
+ [`${m}-vertical`]: d,
481
+ [`${m}-shape-${N}`]: N === "round"
482
+ }, I, T), p = Object.assign(Object.assign({}, P), w);
483
+ return r(/* @__PURE__ */ i.createElement(Ae, Object.assign({}, R, {
473
484
  name: H,
474
- className: S,
475
- style: l,
476
- options: _,
485
+ className: D,
486
+ style: p,
487
+ options: l,
477
488
  ref: t,
478
489
  prefixCls: m,
479
- direction: f,
480
- vertical: u
490
+ direction: O,
491
+ vertical: d
481
492
  })));
482
- }), oe = Fe;
483
- process.env.NODE_ENV !== "production" && (oe.displayName = "Segmented");
484
- const Le = ({ colors: e, borderRadius: t, sizing: a }, n = "primary", r = "active") => `
493
+ }), re = Fe;
494
+ process.env.NODE_ENV !== "production" && (re.displayName = "Segmented");
495
+ const Le = ({ colors: e, borderRadius: t, sizing: n }, a = "primary", o = "active") => `
485
496
  &.ant-segmented {
486
497
  border-radius: ${t.BorderRadiusMd};
487
498
  color: ${e.onsurface.copy};
488
499
 
489
500
  .ant-segmented-item {
490
- color: ${e[n].text};
501
+ color: ${e[a].text};
491
502
  transition: all 0.3s;
492
503
 
493
504
  &-selected {
494
- background: ${e[n][r]};
495
- color: ${e[n].textContrast};
505
+ background: ${e[a][o]};
506
+ color: ${e[a].textContrast};
496
507
  }
497
508
 
498
509
  &:hover {
499
- color: ${e[n].hover};
510
+ color: ${e[a].hover};
500
511
  }
501
512
  }
502
513
  }
503
- `, Qe = be(
504
- oe
514
+ `, Ze = ge(
515
+ re
505
516
  )`
506
- ${({ theme: e, type: t = "primary", state: a = "active" }) => Le(e, t, a)}
517
+ ${({ theme: e, type: t = "primary", state: n = "active" }) => Le(e, t, n)}
507
518
  `;
508
519
  export {
509
- Qe as SegmentedControls,
520
+ Ze as SegmentedControls,
510
521
  Le as getGenesisClass
511
522
  };
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TYPE, STATE } from '../../constants';
3
3
  import { SelectProps as AntSelectProps } from 'antd';
4
-
5
4
  export interface SelectProps extends Omit<AntSelectProps, "options"> {
6
5
  type?: keyof typeof TYPE;
7
6
  state?: keyof typeof STATE;