@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,34 +1,34 @@
1
1
  import * as l from "react";
2
- import X, { forwardRef as ne, useRef as G, useImperativeHandle as re } from "react";
3
- import { g as te, a as ae, e as V, b as F, d as oe, _ as W } from "./presets-Djh_L_6R.js";
4
- import { u as le } from "./useMergedState-D6toxSxh.js";
5
- import { F as H, j as ie, m as se, k as M, w as ce, f as q, C as K, D as de, t as ue, g as fe, o as A } from "./index-BbTV2Cw5.js";
6
- import { T as pe, W as be } from "./index-BpZSuIUV.js";
7
- import { u as U } from "./useCSSVarCls-Dau77fzS.js";
8
- import { F as me } from "./context-DIFtNa4d.js";
9
- import "./index-DLdU7Tpd.js";
10
- import { o as Ce } from "./omit-B_u6A-HL.js";
11
- var he = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], ge = /* @__PURE__ */ ne(function(e, n) {
12
- var r = e.prefixCls, t = r === void 0 ? "rc-checkbox" : r, c = e.className, h = e.style, $ = e.checked, b = e.disabled, _ = e.defaultChecked, S = _ === void 0 ? !1 : _, d = e.type, O = d === void 0 ? "checkbox" : d, R = e.title, i = e.onChange, k = te(e, he), g = G(null), u = G(null), a = le(S, {
2
+ import X, { forwardRef as re, useRef as G, useImperativeHandle as te } from "react";
3
+ import { g as ae, a as oe, c as V, b as W, e as ne, _ as q } from "./presets-CSXMiWyc.js";
4
+ import { u as le } from "./useMergedState-D1-TbeEv.js";
5
+ import { w as F, m as ie, j as M, f as H, s as se, g as ce, C as K, q as de, n as A } from "./CSSMotionList-DB0khM6h.js";
6
+ import { D as ue, d as fe } from "./index-DCopujxC.js";
7
+ import { T as be, W as pe } from "./index-Br3D3cFM.js";
8
+ import { u as U } from "./useCSSVarCls-YfJY1twF.js";
9
+ import { F as me } from "./context-CQfFkrkv.js";
10
+ import { o as ve } from "./omit-B_u6A-HL.js";
11
+ var Ce = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], he = /* @__PURE__ */ re(function(e, r) {
12
+ var t = e.prefixCls, a = t === void 0 ? "rc-checkbox" : t, c = e.className, C = e.style, $ = e.checked, p = e.disabled, _ = e.defaultChecked, S = _ === void 0 ? !1 : _, d = e.type, O = d === void 0 ? "checkbox" : d, R = e.title, i = e.onChange, N = ae(e, Ce), h = G(null), u = G(null), o = le(S, {
13
13
  value: $
14
- }), N = ae(a, 2), P = N[0], w = N[1];
15
- re(n, function() {
14
+ }), k = oe(o, 2), P = k[0], w = k[1];
15
+ te(r, function() {
16
16
  return {
17
17
  focus: function(s) {
18
- var p;
19
- (p = g.current) === null || p === void 0 || p.focus(s);
18
+ var b;
19
+ (b = h.current) === null || b === void 0 || b.focus(s);
20
20
  },
21
21
  blur: function() {
22
22
  var s;
23
- (s = g.current) === null || s === void 0 || s.blur();
23
+ (s = h.current) === null || s === void 0 || s.blur();
24
24
  },
25
- input: g.current,
25
+ input: h.current,
26
26
  nativeElement: u.current
27
27
  };
28
28
  });
29
- var f = V(t, c, F(F({}, "".concat(t, "-checked"), P), "".concat(t, "-disabled"), b)), m = function(s) {
30
- b || ("checked" in e || w(s.target.checked), i == null || i({
31
- target: W(W({}, e), {}, {
29
+ var f = V(a, c, W(W({}, "".concat(a, "-checked"), P), "".concat(a, "-disabled"), p)), m = function(s) {
30
+ p || ("checked" in e || w(s.target.checked), i == null || i({
31
+ target: q(q({}, e), {}, {
32
32
  type: O,
33
33
  checked: s.target.checked
34
34
  }),
@@ -44,40 +44,40 @@ var he = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
44
44
  return /* @__PURE__ */ l.createElement("span", {
45
45
  className: f,
46
46
  title: R,
47
- style: h,
47
+ style: C,
48
48
  ref: u
49
- }, /* @__PURE__ */ l.createElement("input", oe({}, k, {
50
- className: "".concat(t, "-input"),
51
- ref: g,
49
+ }, /* @__PURE__ */ l.createElement("input", ne({}, N, {
50
+ className: "".concat(a, "-input"),
51
+ ref: h,
52
52
  onChange: m,
53
- disabled: b,
53
+ disabled: p,
54
54
  checked: !!P,
55
55
  type: O
56
56
  })), /* @__PURE__ */ l.createElement("span", {
57
- className: "".concat(t, "-inner")
57
+ className: "".concat(a, "-inner")
58
58
  }));
59
59
  });
60
- function ve(e) {
61
- const n = X.useRef(null), r = () => {
62
- H.cancel(n.current), n.current = null;
60
+ function ge(e) {
61
+ const r = X.useRef(null), t = () => {
62
+ F.cancel(r.current), r.current = null;
63
63
  };
64
64
  return [() => {
65
- r(), n.current = H(() => {
66
- n.current = null;
65
+ t(), r.current = F(() => {
66
+ r.current = null;
67
67
  });
68
- }, (h) => {
69
- n.current && (h.stopPropagation(), r()), e == null || e(h);
68
+ }, (C) => {
69
+ r.current && (C.stopPropagation(), t()), e == null || e(C);
70
70
  }];
71
71
  }
72
72
  const xe = (e) => {
73
73
  const {
74
- checkboxCls: n
75
- } = e, r = `${n}-wrapper`;
74
+ checkboxCls: r
75
+ } = e, t = `${r}-wrapper`;
76
76
  return [
77
77
  // ===================== Basic =====================
78
78
  {
79
79
  // Group
80
- [`${n}-group`]: Object.assign(Object.assign({}, M(e)), {
80
+ [`${r}-group`]: Object.assign(Object.assign({}, M(e)), {
81
81
  display: "inline-flex",
82
82
  flexWrap: "wrap",
83
83
  columnGap: e.marginXS,
@@ -87,7 +87,7 @@ const xe = (e) => {
87
87
  }
88
88
  }),
89
89
  // Wrapper
90
- [r]: Object.assign(Object.assign({}, M(e)), {
90
+ [t]: Object.assign(Object.assign({}, M(e)), {
91
91
  display: "inline-flex",
92
92
  alignItems: "baseline",
93
93
  cursor: "pointer",
@@ -99,10 +99,10 @@ const xe = (e) => {
99
99
  content: "'\\a0'"
100
100
  },
101
101
  // Checkbox near checkbox
102
- [`& + ${r}`]: {
102
+ [`& + ${t}`]: {
103
103
  marginInlineStart: 0
104
104
  },
105
- [`&${r}-in-form-item`]: {
105
+ [`&${t}-in-form-item`]: {
106
106
  'input[type="checkbox"]': {
107
107
  width: 14,
108
108
  // FIXME: magic
@@ -112,7 +112,7 @@ const xe = (e) => {
112
112
  }
113
113
  }),
114
114
  // Wrapper > Checkbox
115
- [n]: Object.assign(Object.assign({}, M(e)), {
115
+ [r]: Object.assign(Object.assign({}, M(e)), {
116
116
  position: "relative",
117
117
  whiteSpace: "nowrap",
118
118
  lineHeight: 1,
@@ -122,7 +122,7 @@ const xe = (e) => {
122
122
  // Ref: https://github.com/ant-design/ant-design/issues/41564
123
123
  alignSelf: "center",
124
124
  // Wrapper > Checkbox > input
125
- [`${n}-input`]: {
125
+ [`${r}-input`]: {
126
126
  position: "absolute",
127
127
  // Since baseline align will get additional space offset,
128
128
  // we need to move input to top to make it align with text.
@@ -132,17 +132,17 @@ const xe = (e) => {
132
132
  cursor: "pointer",
133
133
  opacity: 0,
134
134
  margin: 0,
135
- [`&:focus-visible + ${n}-inner`]: Object.assign({}, ce(e))
135
+ [`&:focus-visible + ${r}-inner`]: Object.assign({}, se(e))
136
136
  },
137
137
  // Wrapper > Checkbox > inner
138
- [`${n}-inner`]: {
138
+ [`${r}-inner`]: {
139
139
  boxSizing: "border-box",
140
140
  display: "block",
141
141
  width: e.checkboxSize,
142
142
  height: e.checkboxSize,
143
143
  direction: "ltr",
144
144
  backgroundColor: e.colorBgContainer,
145
- border: `${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
145
+ border: `${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
146
146
  borderRadius: e.borderRadiusSM,
147
147
  borderCollapse: "separate",
148
148
  transition: `all ${e.motionDurationSlow}`,
@@ -154,7 +154,7 @@ const xe = (e) => {
154
154
  display: "table",
155
155
  width: e.calc(e.checkboxSize).div(14).mul(5).equal(),
156
156
  height: e.calc(e.checkboxSize).div(14).mul(8).equal(),
157
- border: `${q(e.lineWidthBold)} solid ${e.colorWhite}`,
157
+ border: `${H(e.lineWidthBold)} solid ${e.colorWhite}`,
158
158
  borderTop: 0,
159
159
  borderInlineStart: 0,
160
160
  transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
@@ -174,19 +174,19 @@ const xe = (e) => {
174
174
  {
175
175
  // Wrapper & Wrapper > Checkbox
176
176
  [`
177
- ${r}:not(${r}-disabled),
178
- ${n}:not(${n}-disabled)
177
+ ${t}:not(${t}-disabled),
178
+ ${r}:not(${r}-disabled)
179
179
  `]: {
180
- [`&:hover ${n}-inner`]: {
180
+ [`&:hover ${r}-inner`]: {
181
181
  borderColor: e.colorPrimary
182
182
  }
183
183
  },
184
- [`${r}:not(${r}-disabled)`]: {
185
- [`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]: {
184
+ [`${t}:not(${t}-disabled)`]: {
185
+ [`&:hover ${r}-checked:not(${r}-disabled) ${r}-inner`]: {
186
186
  backgroundColor: e.colorPrimaryHover,
187
187
  borderColor: "transparent"
188
188
  },
189
- [`&:hover ${n}-checked:not(${n}-disabled):after`]: {
189
+ [`&:hover ${r}-checked:not(${r}-disabled):after`]: {
190
190
  borderColor: e.colorPrimaryHover
191
191
  }
192
192
  }
@@ -194,8 +194,8 @@ const xe = (e) => {
194
194
  // ==================== Checked ====================
195
195
  {
196
196
  // Wrapper > Checkbox
197
- [`${n}-checked`]: {
198
- [`${n}-inner`]: {
197
+ [`${r}-checked`]: {
198
+ [`${r}-inner`]: {
199
199
  backgroundColor: e.colorPrimary,
200
200
  borderColor: e.colorPrimary,
201
201
  "&:after": {
@@ -206,10 +206,10 @@ const xe = (e) => {
206
206
  }
207
207
  },
208
208
  [`
209
- ${r}-checked:not(${r}-disabled),
210
- ${n}-checked:not(${n}-disabled)
209
+ ${t}-checked:not(${t}-disabled),
210
+ ${r}-checked:not(${r}-disabled)
211
211
  `]: {
212
- [`&:hover ${n}-inner`]: {
212
+ [`&:hover ${r}-inner`]: {
213
213
  backgroundColor: e.colorPrimaryHover,
214
214
  borderColor: "transparent"
215
215
  }
@@ -217,10 +217,10 @@ const xe = (e) => {
217
217
  },
218
218
  // ================= Indeterminate =================
219
219
  {
220
- [n]: {
220
+ [r]: {
221
221
  "&-indeterminate": {
222
222
  // Wrapper > Checkbox > inner
223
- [`${n}-inner`]: {
223
+ [`${r}-inner`]: {
224
224
  backgroundColor: `${e.colorBgContainer} !important`,
225
225
  borderColor: `${e.colorBorder} !important`,
226
226
  "&:after": {
@@ -236,7 +236,7 @@ const xe = (e) => {
236
236
  }
237
237
  },
238
238
  // https://github.com/ant-design/ant-design/issues/50074
239
- [`&:hover ${n}-inner`]: {
239
+ [`&:hover ${r}-inner`]: {
240
240
  backgroundColor: `${e.colorBgContainer} !important`,
241
241
  borderColor: `${e.colorPrimary} !important`
242
242
  }
@@ -246,20 +246,20 @@ const xe = (e) => {
246
246
  // ==================== Disable ====================
247
247
  {
248
248
  // Wrapper
249
- [`${r}-disabled`]: {
249
+ [`${t}-disabled`]: {
250
250
  cursor: "not-allowed"
251
251
  },
252
252
  // Wrapper > Checkbox
253
- [`${n}-disabled`]: {
253
+ [`${r}-disabled`]: {
254
254
  // Wrapper > Checkbox > input
255
- [`&, ${n}-input`]: {
255
+ [`&, ${r}-input`]: {
256
256
  cursor: "not-allowed",
257
257
  // Disabled for native input to enable Tooltip event handler
258
258
  // ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
259
259
  pointerEvents: "none"
260
260
  },
261
261
  // Wrapper > Checkbox > inner
262
- [`${n}-inner`]: {
262
+ [`${r}-inner`]: {
263
263
  background: e.colorBgContainerDisabled,
264
264
  borderColor: e.colorBorder,
265
265
  "&:after": {
@@ -272,82 +272,82 @@ const xe = (e) => {
272
272
  "& + span": {
273
273
  color: e.colorTextDisabled
274
274
  },
275
- [`&${n}-indeterminate ${n}-inner::after`]: {
275
+ [`&${r}-indeterminate ${r}-inner::after`]: {
276
276
  background: e.colorTextDisabled
277
277
  }
278
278
  }
279
279
  }
280
280
  ];
281
281
  };
282
- function ye(e, n) {
283
- const r = se(n, {
282
+ function ye(e, r) {
283
+ const t = ie(r, {
284
284
  checkboxCls: `.${e}`,
285
- checkboxSize: n.controlInteractiveSize
285
+ checkboxSize: r.controlInteractiveSize
286
286
  });
287
- return [xe(r)];
287
+ return [xe(t)];
288
288
  }
289
- const J = ie("Checkbox", (e, n) => {
289
+ const J = ce("Checkbox", (e, r) => {
290
290
  let {
291
- prefixCls: r
292
- } = n;
293
- return [ye(r, e)];
291
+ prefixCls: t
292
+ } = r;
293
+ return [ye(t, e)];
294
294
  }), Q = /* @__PURE__ */ X.createContext(null);
295
- var $e = function(e, n) {
296
- var r = {};
297
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
298
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, t = Object.getOwnPropertySymbols(e); c < t.length; c++)
299
- n.indexOf(t[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[c]) && (r[t[c]] = e[t[c]]);
300
- return r;
295
+ var $e = function(e, r) {
296
+ var t = {};
297
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
298
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
299
+ r.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (t[a[c]] = e[a[c]]);
300
+ return t;
301
301
  };
302
- const Se = (e, n) => {
303
- var r;
302
+ const Se = (e, r) => {
303
+ var t;
304
304
  const {
305
- prefixCls: t,
305
+ prefixCls: a,
306
306
  className: c,
307
- rootClassName: h,
307
+ rootClassName: C,
308
308
  children: $,
309
- indeterminate: b = !1,
309
+ indeterminate: p = !1,
310
310
  style: _,
311
311
  onMouseEnter: S,
312
312
  onMouseLeave: d,
313
313
  skipGroup: O = !1,
314
314
  disabled: R
315
315
  } = e, i = $e(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
316
- getPrefixCls: k,
317
- direction: g,
316
+ getPrefixCls: N,
317
+ direction: h,
318
318
  checkbox: u
319
- } = l.useContext(K), a = l.useContext(Q), {
320
- isFormItemInput: N
321
- } = l.useContext(me), P = l.useContext(de), w = (r = (a == null ? void 0 : a.disabled) || R) !== null && r !== void 0 ? r : P, f = l.useRef(i.value), m = l.useRef(null), E = ue(n, m);
319
+ } = l.useContext(K), o = l.useContext(Q), {
320
+ isFormItemInput: k
321
+ } = l.useContext(me), P = l.useContext(ue), w = (t = (o == null ? void 0 : o.disabled) || R) !== null && t !== void 0 ? t : P, f = l.useRef(i.value), m = l.useRef(null), E = de(r, m);
322
322
  if (process.env.NODE_ENV !== "production") {
323
- const C = fe("Checkbox");
324
- process.env.NODE_ENV !== "production" && C("checked" in i || !!a || !("value" in i), "usage", "`value` is not a valid prop, do you mean `checked`?");
323
+ const v = fe("Checkbox");
324
+ process.env.NODE_ENV !== "production" && v("checked" in i || !!o || !("value" in i), "usage", "`value` is not a valid prop, do you mean `checked`?");
325
325
  }
326
326
  l.useEffect(() => {
327
- a == null || a.registerValue(i.value);
327
+ o == null || o.registerValue(i.value);
328
328
  }, []), l.useEffect(() => {
329
329
  if (!O)
330
- return i.value !== f.current && (a == null || a.cancelValue(f.current), a == null || a.registerValue(i.value), f.current = i.value), () => a == null ? void 0 : a.cancelValue(i.value);
330
+ return i.value !== f.current && (o == null || o.cancelValue(f.current), o == null || o.registerValue(i.value), f.current = i.value), () => o == null ? void 0 : o.cancelValue(i.value);
331
331
  }, [i.value]), l.useEffect(() => {
332
- var C;
333
- !((C = m.current) === null || C === void 0) && C.input && (m.current.input.indeterminate = b);
334
- }, [b]);
335
- const s = k("checkbox", t), p = U(s), [j, I, D] = J(s, p), v = Object.assign({}, i);
336
- a && !O && (v.onChange = function() {
337
- i.onChange && i.onChange.apply(i, arguments), a.toggleOption && a.toggleOption({
332
+ var v;
333
+ !((v = m.current) === null || v === void 0) && v.input && (m.current.input.indeterminate = p);
334
+ }, [p]);
335
+ const s = N("checkbox", a), b = U(s), [j, I, D] = J(s, b), g = Object.assign({}, i);
336
+ o && !O && (g.onChange = function() {
337
+ i.onChange && i.onChange.apply(i, arguments), o.toggleOption && o.toggleOption({
338
338
  label: $,
339
339
  value: i.value
340
340
  });
341
- }, v.name = a.name, v.checked = a.value.includes(i.value));
341
+ }, g.name = o.name, g.checked = o.value.includes(i.value));
342
342
  const z = V(`${s}-wrapper`, {
343
- [`${s}-rtl`]: g === "rtl",
344
- [`${s}-wrapper-checked`]: v.checked,
343
+ [`${s}-rtl`]: h === "rtl",
344
+ [`${s}-wrapper-checked`]: g.checked,
345
345
  [`${s}-wrapper-disabled`]: w,
346
- [`${s}-wrapper-in-form-item`]: N
347
- }, u == null ? void 0 : u.className, c, h, D, p, I), o = V({
348
- [`${s}-indeterminate`]: b
349
- }, pe, I), [x, y] = ve(v.onClick);
350
- return j(/* @__PURE__ */ l.createElement(be, {
346
+ [`${s}-wrapper-in-form-item`]: k
347
+ }, u == null ? void 0 : u.className, c, C, D, b, I), n = V({
348
+ [`${s}-indeterminate`]: p
349
+ }, be, I), [x, y] = ge(g.onClick);
350
+ return j(/* @__PURE__ */ l.createElement(pe, {
351
351
  component: "Checkbox",
352
352
  disabled: w
353
353
  }, /* @__PURE__ */ l.createElement("label", {
@@ -356,82 +356,84 @@ const Se = (e, n) => {
356
356
  onMouseEnter: S,
357
357
  onMouseLeave: d,
358
358
  onClick: x
359
- }, /* @__PURE__ */ l.createElement(ge, Object.assign({}, v, {
359
+ }, /* @__PURE__ */ l.createElement(he, Object.assign({}, g, {
360
360
  onClick: y,
361
361
  prefixCls: s,
362
- className: o,
362
+ className: n,
363
363
  disabled: w,
364
364
  ref: E
365
- })), $ !== void 0 && /* @__PURE__ */ l.createElement("span", null, $))));
365
+ })), $ !== void 0 && /* @__PURE__ */ l.createElement("span", {
366
+ className: `${s}-label`
367
+ }, $))));
366
368
  }, L = /* @__PURE__ */ l.forwardRef(Se);
367
369
  process.env.NODE_ENV !== "production" && (L.displayName = "Checkbox");
368
- var Oe = function(e, n) {
369
- var r = {};
370
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
371
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, t = Object.getOwnPropertySymbols(e); c < t.length; c++)
372
- n.indexOf(t[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[c]) && (r[t[c]] = e[t[c]]);
373
- return r;
370
+ var Oe = function(e, r) {
371
+ var t = {};
372
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && r.indexOf(a) < 0 && (t[a] = e[a]);
373
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, a = Object.getOwnPropertySymbols(e); c < a.length; c++)
374
+ r.indexOf(a[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[c]) && (t[a[c]] = e[a[c]]);
375
+ return t;
374
376
  };
375
- const we = /* @__PURE__ */ l.forwardRef((e, n) => {
377
+ const we = /* @__PURE__ */ l.forwardRef((e, r) => {
376
378
  const {
377
- defaultValue: r,
378
- children: t,
379
+ defaultValue: t,
380
+ children: a,
379
381
  options: c = [],
380
- prefixCls: h,
382
+ prefixCls: C,
381
383
  className: $,
382
- rootClassName: b,
384
+ rootClassName: p,
383
385
  style: _,
384
386
  onChange: S
385
387
  } = e, d = Oe(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
386
388
  getPrefixCls: O,
387
389
  direction: R
388
- } = l.useContext(K), [i, k] = l.useState(d.value || r || []), [g, u] = l.useState([]);
390
+ } = l.useContext(K), [i, N] = l.useState(d.value || t || []), [h, u] = l.useState([]);
389
391
  l.useEffect(() => {
390
- "value" in d && k(d.value || []);
392
+ "value" in d && N(d.value || []);
391
393
  }, [d.value]);
392
- const a = l.useMemo(() => c.map((o) => typeof o == "string" || typeof o == "number" ? {
393
- label: o,
394
- value: o
395
- } : o), [c]), N = (o) => {
396
- u((x) => x.filter((y) => y !== o));
397
- }, P = (o) => {
398
- u((x) => [].concat(A(x), [o]));
399
- }, w = (o) => {
400
- const x = i.indexOf(o.value), y = A(i);
401
- x === -1 ? y.push(o.value) : y.splice(x, 1), "value" in d || k(y), S == null || S(y.filter((C) => g.includes(C)).sort((C, Y) => {
402
- const Z = a.findIndex((B) => B.value === C), ee = a.findIndex((B) => B.value === Y);
394
+ const o = l.useMemo(() => c.map((n) => typeof n == "string" || typeof n == "number" ? {
395
+ label: n,
396
+ value: n
397
+ } : n), [c]), k = (n) => {
398
+ u((x) => x.filter((y) => y !== n));
399
+ }, P = (n) => {
400
+ u((x) => [].concat(A(x), [n]));
401
+ }, w = (n) => {
402
+ const x = i.indexOf(n.value), y = A(i);
403
+ x === -1 ? y.push(n.value) : y.splice(x, 1), "value" in d || N(y), S == null || S(y.filter((v) => h.includes(v)).sort((v, Y) => {
404
+ const Z = o.findIndex((B) => B.value === v), ee = o.findIndex((B) => B.value === Y);
403
405
  return Z - ee;
404
406
  }));
405
- }, f = O("checkbox", h), m = `${f}-group`, E = U(f), [s, p, j] = J(f, E), I = Ce(d, ["value", "disabled"]), D = c.length ? a.map((o) => /* @__PURE__ */ l.createElement(L, {
407
+ }, f = O("checkbox", C), m = `${f}-group`, E = U(f), [s, b, j] = J(f, E), I = ve(d, ["value", "disabled"]), D = c.length ? o.map((n) => /* @__PURE__ */ l.createElement(L, {
406
408
  prefixCls: f,
407
- key: o.value.toString(),
408
- disabled: "disabled" in o ? o.disabled : d.disabled,
409
- value: o.value,
410
- checked: i.includes(o.value),
411
- onChange: o.onChange,
409
+ key: n.value.toString(),
410
+ disabled: "disabled" in n ? n.disabled : d.disabled,
411
+ value: n.value,
412
+ checked: i.includes(n.value),
413
+ onChange: n.onChange,
412
414
  className: `${m}-item`,
413
- style: o.style,
414
- title: o.title,
415
- id: o.id,
416
- required: o.required
417
- }, o.label)) : t, v = {
415
+ style: n.style,
416
+ title: n.title,
417
+ id: n.id,
418
+ required: n.required
419
+ }, n.label)) : a, g = {
418
420
  toggleOption: w,
419
421
  value: i,
420
422
  disabled: d.disabled,
421
423
  name: d.name,
422
424
  // https://github.com/ant-design/ant-design/issues/16376
423
425
  registerValue: P,
424
- cancelValue: N
426
+ cancelValue: k
425
427
  }, z = V(m, {
426
428
  [`${m}-rtl`]: R === "rtl"
427
- }, $, b, j, E, p);
429
+ }, $, p, j, E, b);
428
430
  return s(/* @__PURE__ */ l.createElement("div", Object.assign({
429
431
  className: z,
430
432
  style: _
431
433
  }, I, {
432
- ref: n
434
+ ref: r
433
435
  }), /* @__PURE__ */ l.createElement(Q.Provider, {
434
- value: v
436
+ value: g
435
437
  }, D)));
436
438
  }), T = L;
437
439
  T.Group = we;
@@ -439,7 +441,7 @@ T.__ANT_CHECKBOX = !0;
439
441
  process.env.NODE_ENV !== "production" && (T.displayName = "Checkbox");
440
442
  export {
441
443
  T as C,
442
- ge as a,
444
+ he as a,
443
445
  ye as g,
444
- ve as u
446
+ ge as u
445
447
  };