@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,47 +1,47 @@
1
1
  import * as r from "react";
2
- import { useRef as st, useEffect as lt, useMemo as at, isValidElement as ct } from "react";
3
- import { P as $e, f as dt, j as ut, a as pt, C as De, t as Le, g as Y, h as W, o as ft } from "./index-BbTV2Cw5.js";
4
- import { d as fe, k as mt, e as Z } from "./presets-Djh_L_6R.js";
5
- import { I as me } from "./AntdIcon-nCNB0J1E.js";
6
- import { R as gt } from "./index-BQM5OniU.js";
7
- import { t as Me } from "./toArray-U3Az44CO.js";
8
- import { u as Oe } from "./useMergedState-D6toxSxh.js";
9
- import { o as ke } from "./omit-B_u6A-HL.js";
10
- import { i as we } from "./styleChecker-Cotu61d0.js";
11
- import { u as yt } from "./useLocale-CTfNpakL.js";
12
- import { T as ge } from "./index-DWjq9XYj.js";
13
- import { K as Re } from "./KeyCode-DM2sFh3-.js";
14
- import { c as bt } from "./reactNode-sKPeiqPL.js";
15
- import { T as Et } from "./TextArea-Bkf9hh7l.js";
16
- import "./index-DLdU7Tpd.js";
17
- import { g as ht } from "./_commonjsHelpers-BkfeUUK-.js";
18
- import { R as vt } from "./CheckOutlined-cEBrx_Ag.js";
19
- import { R as xt } from "./LoadingOutlined-C1qu6ymP.js";
20
- function St(e) {
2
+ import { useRef as at, useEffect as ct, useMemo as dt, isValidElement as pt } from "react";
3
+ import { d as Y } from "./index-DCopujxC.js";
4
+ import { e as ge, o as ut, c as Z } from "./presets-CSXMiWyc.js";
5
+ import { I as ye } from "./AntdIcon-DP6hPDqu.js";
6
+ import { R as ft } from "./index-CzMIlMTV.js";
7
+ import { t as Me } from "./toArray-D5kvYi_U.js";
8
+ import { a0 as ke, f as mt, g as gt, a as yt, l as bt, q as Pe, h as W, n as vt, C as Et } from "./CSSMotionList-DB0khM6h.js";
9
+ import { u as Re } from "./useMergedState-D1-TbeEv.js";
10
+ import { o as Ae } from "./omit-B_u6A-HL.js";
11
+ import { i as Te } from "./styleChecker-CSH9LQtm.js";
12
+ import { u as ht } from "./useLocale-BQ3mKRyJ.js";
13
+ import { T as be } from "./index-Y0KgiFZb.js";
14
+ import { K as Ne } from "./KeyCode-B3vHb2gY.js";
15
+ import { c as xt } from "./reactNode-sKPeiqPL.js";
16
+ import { T as Ct } from "./TextArea-CHo3cxKw.js";
17
+ import { g as St } from "./_commonjsHelpers-B4e78b8K.js";
18
+ import { R as Ot } from "./CheckOutlined-DTEHi_xG.js";
19
+ import { R as wt } from "./LoadingOutlined-DOi5EGOl.js";
20
+ function Rt(e) {
21
21
  return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) && e == null ? [] : Array.isArray(e) ? e : [e];
22
22
  }
23
- var Ct = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, Ot = function(t, o) {
24
- return /* @__PURE__ */ r.createElement(me, fe({}, t, {
23
+ var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, Nt = function(t, o) {
24
+ return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
25
25
  ref: o,
26
- icon: Ct
26
+ icon: Tt
27
27
  }));
28
- }, Pe = /* @__PURE__ */ r.forwardRef(Ot);
29
- process.env.NODE_ENV !== "production" && (Pe.displayName = "CopyOutlined");
30
- var wt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, Rt = function(t, o) {
31
- return /* @__PURE__ */ r.createElement(me, fe({}, t, {
28
+ }, He = /* @__PURE__ */ r.forwardRef(Nt);
29
+ process.env.NODE_ENV !== "production" && (He.displayName = "CopyOutlined");
30
+ var jt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z" } }] }, name: "edit", theme: "outlined" }, _t = function(t, o) {
31
+ return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
32
32
  ref: o,
33
- icon: wt
33
+ icon: jt
34
34
  }));
35
- }, Ae = /* @__PURE__ */ r.forwardRef(Rt);
36
- process.env.NODE_ENV !== "production" && (Ae.displayName = "EditOutlined");
37
- var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, jt = function(t, o) {
38
- return /* @__PURE__ */ r.createElement(me, fe({}, t, {
35
+ }, ze = /* @__PURE__ */ r.forwardRef(_t);
36
+ process.env.NODE_ENV !== "production" && (ze.displayName = "EditOutlined");
37
+ var It = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, $t = function(t, o) {
38
+ return /* @__PURE__ */ r.createElement(ye, ge({}, t, {
39
39
  ref: o,
40
- icon: Tt
40
+ icon: It
41
41
  }));
42
- }, He = /* @__PURE__ */ r.forwardRef(jt);
43
- process.env.NODE_ENV !== "production" && (He.displayName = "EnterOutlined");
44
- const Nt = (e, t, o, n) => {
42
+ }, Be = /* @__PURE__ */ r.forwardRef($t);
43
+ process.env.NODE_ENV !== "production" && (Be.displayName = "EnterOutlined");
44
+ const Dt = (e, t, o, n) => {
45
45
  const {
46
46
  titleMarginBottom: i,
47
47
  fontWeightStrong: s
@@ -53,7 +53,7 @@ const Nt = (e, t, o, n) => {
53
53
  fontSize: e,
54
54
  lineHeight: t
55
55
  };
56
- }, _t = (e) => {
56
+ }, Lt = (e) => {
57
57
  const t = [1, 2, 3, 4, 5], o = {};
58
58
  return t.forEach((n) => {
59
59
  o[`
@@ -61,14 +61,14 @@ const Nt = (e, t, o, n) => {
61
61
  div&-h${n},
62
62
  div&-h${n} > textarea,
63
63
  h${n}
64
- `] = Nt(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e);
64
+ `] = Dt(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e);
65
65
  }), o;
66
- }, It = (e) => {
66
+ }, Mt = (e) => {
67
67
  const {
68
68
  componentCls: t
69
69
  } = e;
70
70
  return {
71
- "a&, a": Object.assign(Object.assign({}, $e(e)), {
71
+ "a&, a": Object.assign(Object.assign({}, ke(e)), {
72
72
  userSelect: "text",
73
73
  [`&[disabled], &${t}-disabled`]: {
74
74
  color: e.colorTextDisabled,
@@ -82,7 +82,7 @@ const Nt = (e, t, o, n) => {
82
82
  }
83
83
  })
84
84
  };
85
- }, $t = (e) => ({
85
+ }, kt = (e) => ({
86
86
  code: {
87
87
  margin: "0 0.2em",
88
88
  paddingInline: "0.4em",
@@ -107,7 +107,7 @@ const Nt = (e, t, o, n) => {
107
107
  mark: {
108
108
  padding: 0,
109
109
  // FIXME hardcode in v4
110
- backgroundColor: mt[2]
110
+ backgroundColor: ut[2]
111
111
  },
112
112
  "u, ins": {
113
113
  textDecoration: "underline",
@@ -169,7 +169,7 @@ const Nt = (e, t, o, n) => {
169
169
  borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
170
170
  opacity: 0.85
171
171
  }
172
- }), Dt = (e) => {
172
+ }), Pt = (e) => {
173
173
  const {
174
174
  componentCls: t,
175
175
  paddingSM: o
@@ -180,7 +180,7 @@ const Nt = (e, t, o, n) => {
180
180
  "div&": {
181
181
  insetInlineStart: e.calc(e.paddingSM).mul(-1).equal(),
182
182
  marginTop: e.calc(n).mul(-1).equal(),
183
- marginBottom: `calc(1em - ${dt(n)})`
183
+ marginBottom: `calc(1em - ${mt(n)})`
184
184
  },
185
185
  [`${t}-edit-content-confirm`]: {
186
186
  position: "absolute",
@@ -201,7 +201,7 @@ const Nt = (e, t, o, n) => {
201
201
  }
202
202
  }
203
203
  };
204
- }, Lt = (e) => ({
204
+ }, At = (e) => ({
205
205
  [`${e.componentCls}-copy-success`]: {
206
206
  "\n &,\n &:hover,\n &:focus": {
207
207
  color: e.colorSuccess
@@ -210,7 +210,7 @@ const Nt = (e, t, o, n) => {
210
210
  [`${e.componentCls}-copy-icon-only`]: {
211
211
  marginInlineStart: 0
212
212
  }
213
- }), Mt = () => ({
213
+ }), Ht = () => ({
214
214
  "\n a&-ellipsis,\n span&-ellipsis\n ": {
215
215
  display: "inline-block",
216
216
  maxWidth: "100%"
@@ -240,7 +240,7 @@ const Nt = (e, t, o, n) => {
240
240
  WebkitLineClamp: 3,
241
241
  WebkitBoxOrient: "vertical"
242
242
  }
243
- }), kt = (e) => {
243
+ }), zt = (e) => {
244
244
  const {
245
245
  componentCls: t,
246
246
  titleMarginTop: o
@@ -276,7 +276,7 @@ const Nt = (e, t, o, n) => {
276
276
  "\n div&,\n p\n ": {
277
277
  marginBottom: "1em"
278
278
  }
279
- }, _t(e)), {
279
+ }, Lt(e)), {
280
280
  [`
281
281
  & + h1${t},
282
282
  & + h2${t},
@@ -291,54 +291,54 @@ const Nt = (e, t, o, n) => {
291
291
  marginTop: o
292
292
  }
293
293
  }
294
- }), $t(e)), It(e)), {
294
+ }), kt(e)), Mt(e)), {
295
295
  // Operation
296
296
  [`
297
297
  ${t}-expand,
298
298
  ${t}-collapse,
299
299
  ${t}-edit,
300
300
  ${t}-copy
301
- `]: Object.assign(Object.assign({}, $e(e)), {
301
+ `]: Object.assign(Object.assign({}, ke(e)), {
302
302
  marginInlineStart: e.marginXXS
303
303
  })
304
- }), Dt(e)), Lt(e)), Mt()), {
304
+ }), Pt(e)), At(e)), Ht()), {
305
305
  "&-rtl": {
306
306
  direction: "rtl"
307
307
  }
308
308
  })
309
309
  };
310
- }, Pt = () => ({
310
+ }, Bt = () => ({
311
311
  titleMarginTop: "1.2em",
312
312
  titleMarginBottom: "0.5em"
313
- }), ze = ut("Typography", (e) => [kt(e)], Pt), At = (e) => {
313
+ }), Ve = gt("Typography", (e) => [zt(e)], Bt), Vt = (e) => {
314
314
  const {
315
315
  prefixCls: t,
316
316
  "aria-label": o,
317
317
  className: n,
318
318
  style: i,
319
319
  direction: s,
320
- maxLength: u,
321
- autoSize: c = !0,
320
+ maxLength: c,
321
+ autoSize: g = !0,
322
322
  value: d,
323
- onSave: f,
324
- onCancel: a,
325
- onEnd: m,
326
- component: g,
327
- enterIcon: b = /* @__PURE__ */ r.createElement(He, null)
328
- } = e, j = r.useRef(null), S = r.useRef(!1), C = r.useRef(null), [y, I] = r.useState(d);
323
+ onSave: u,
324
+ onCancel: f,
325
+ onEnd: p,
326
+ component: l,
327
+ enterIcon: x = /* @__PURE__ */ r.createElement(Be, null)
328
+ } = e, O = r.useRef(null), y = r.useRef(!1), S = r.useRef(null), [b, I] = r.useState(d);
329
329
  r.useEffect(() => {
330
330
  I(d);
331
331
  }, [d]), r.useEffect(() => {
332
332
  var E;
333
- if (!((E = j.current) === null || E === void 0) && E.resizableTextArea) {
333
+ if (!((E = O.current) === null || E === void 0) && E.resizableTextArea) {
334
334
  const {
335
335
  textArea: h
336
- } = j.current.resizableTextArea;
336
+ } = O.current.resizableTextArea;
337
337
  h.focus();
338
338
  const {
339
- length: x
339
+ length: C
340
340
  } = h.value;
341
- h.setSelectionRange(x, x);
341
+ h.setSelectionRange(C, C);
342
342
  }
343
343
  }, []);
344
344
  const H = (E) => {
@@ -346,231 +346,243 @@ const Nt = (e, t, o, n) => {
346
346
  target: h
347
347
  } = E;
348
348
  I(h.value.replace(/[\n\r]/g, ""));
349
- }, O = () => {
350
- S.current = !0;
351
349
  }, w = () => {
352
- S.current = !1;
353
- }, _ = (E) => {
350
+ y.current = !0;
351
+ }, R = () => {
352
+ y.current = !1;
353
+ }, j = (E) => {
354
354
  let {
355
355
  keyCode: h
356
356
  } = E;
357
- S.current || (C.current = h);
357
+ y.current || (S.current = h);
358
358
  }, v = () => {
359
- f(y.trim());
359
+ u(b.trim());
360
360
  }, z = (E) => {
361
361
  let {
362
362
  keyCode: h,
363
- ctrlKey: x,
363
+ ctrlKey: C,
364
364
  altKey: P,
365
- metaKey: T,
365
+ metaKey: N,
366
366
  shiftKey: $
367
367
  } = E;
368
- C.current !== h || S.current || x || P || T || $ || (h === Re.ENTER ? (v(), m == null || m()) : h === Re.ESC && a());
368
+ S.current !== h || y.current || C || P || N || $ || (h === Ne.ENTER ? (v(), p == null || p()) : h === Ne.ESC && f());
369
369
  }, U = () => {
370
370
  v();
371
- }, [V, M, F] = ze(t), k = Z(t, `${t}-edit-content`, {
371
+ }, [V, M, F] = Ve(t), k = Z(t, `${t}-edit-content`, {
372
372
  [`${t}-rtl`]: s === "rtl",
373
- [`${t}-${g}`]: !!g
373
+ [`${t}-${l}`]: !!l
374
374
  }, n, M, F);
375
375
  return V(/* @__PURE__ */ r.createElement("div", {
376
376
  className: k,
377
377
  style: i
378
- }, /* @__PURE__ */ r.createElement(Et, {
379
- ref: j,
380
- maxLength: u,
381
- value: y,
378
+ }, /* @__PURE__ */ r.createElement(Ct, {
379
+ ref: O,
380
+ maxLength: c,
381
+ value: b,
382
382
  onChange: H,
383
- onKeyDown: _,
383
+ onKeyDown: j,
384
384
  onKeyUp: z,
385
- onCompositionStart: O,
386
- onCompositionEnd: w,
385
+ onCompositionStart: w,
386
+ onCompositionEnd: R,
387
387
  onBlur: U,
388
388
  "aria-label": o,
389
389
  rows: 1,
390
- autoSize: c
391
- }), b !== null ? bt(b, {
390
+ autoSize: g
391
+ }), x !== null ? xt(x, {
392
392
  className: `${t}-edit-content-confirm`
393
393
  }) : null));
394
394
  };
395
- var Ht = function() {
396
- var e = document.getSelection();
397
- if (!e.rangeCount)
398
- return function() {
395
+ var le, je;
396
+ function Wt() {
397
+ return je || (je = 1, le = function() {
398
+ var e = document.getSelection();
399
+ if (!e.rangeCount)
400
+ return function() {
401
+ };
402
+ for (var t = document.activeElement, o = [], n = 0; n < e.rangeCount; n++)
403
+ o.push(e.getRangeAt(n));
404
+ switch (t.tagName.toUpperCase()) {
405
+ // .toUpperCase handles XHTML
406
+ case "INPUT":
407
+ case "TEXTAREA":
408
+ t.blur();
409
+ break;
410
+ default:
411
+ t = null;
412
+ break;
413
+ }
414
+ return e.removeAllRanges(), function() {
415
+ e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(i) {
416
+ e.addRange(i);
417
+ }), t && t.focus();
399
418
  };
400
- for (var t = document.activeElement, o = [], n = 0; n < e.rangeCount; n++)
401
- o.push(e.getRangeAt(n));
402
- switch (t.tagName.toUpperCase()) {
403
- case "INPUT":
404
- case "TEXTAREA":
405
- t.blur();
406
- break;
407
- default:
408
- t = null;
409
- break;
410
- }
411
- return e.removeAllRanges(), function() {
412
- e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(i) {
413
- e.addRange(i);
414
- }), t && t.focus();
415
- };
416
- }, zt = Ht, Te = {
417
- "text/plain": "Text",
418
- "text/html": "Url",
419
- default: "Text"
420
- }, Bt = "Copy to clipboard: #{key}, Enter";
421
- function Vt(e) {
422
- var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
423
- return e.replace(/#{\s*key\s*}/g, t);
419
+ }), le;
424
420
  }
425
- function Wt(e, t) {
426
- var o, n, i, s, u, c, d = !1;
427
- t || (t = {}), o = t.debug || !1;
428
- try {
429
- i = zt(), s = document.createRange(), u = document.getSelection(), c = document.createElement("span"), c.textContent = e, c.ariaHidden = "true", c.style.all = "unset", c.style.position = "fixed", c.style.top = 0, c.style.clip = "rect(0, 0, 0, 0)", c.style.whiteSpace = "pre", c.style.webkitUserSelect = "text", c.style.MozUserSelect = "text", c.style.msUserSelect = "text", c.style.userSelect = "text", c.addEventListener("copy", function(a) {
430
- if (a.stopPropagation(), t.format)
431
- if (a.preventDefault(), typeof a.clipboardData > "u") {
432
- o && console.warn("unable to use e.clipboardData"), o && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
433
- var m = Te[t.format] || Te.default;
434
- window.clipboardData.setData(m, e);
435
- } else
436
- a.clipboardData.clearData(), a.clipboardData.setData(t.format, e);
437
- t.onCopy && (a.preventDefault(), t.onCopy(a.clipboardData));
438
- }), document.body.appendChild(c), s.selectNodeContents(c), u.addRange(s);
439
- var f = document.execCommand("copy");
440
- if (!f)
441
- throw new Error("copy command was unsuccessful");
442
- d = !0;
443
- } catch (a) {
444
- o && console.error("unable to copy using execCommand: ", a), o && console.warn("trying IE specific stuff");
421
+ var ae, _e;
422
+ function Ut() {
423
+ if (_e) return ae;
424
+ _e = 1;
425
+ var e = Wt(), t = {
426
+ "text/plain": "Text",
427
+ "text/html": "Url",
428
+ default: "Text"
429
+ }, o = "Copy to clipboard: #{key}, Enter";
430
+ function n(s) {
431
+ var c = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
432
+ return s.replace(/#{\s*key\s*}/g, c);
433
+ }
434
+ function i(s, c) {
435
+ var g, d, u, f, p, l, x = !1;
436
+ c || (c = {}), g = c.debug || !1;
445
437
  try {
446
- window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), d = !0;
447
- } catch (m) {
448
- o && console.error("unable to copy using clipboardData: ", m), o && console.error("falling back to prompt"), n = Vt("message" in t ? t.message : Bt), window.prompt(n, e);
438
+ u = e(), f = document.createRange(), p = document.getSelection(), l = document.createElement("span"), l.textContent = s, l.ariaHidden = "true", l.style.all = "unset", l.style.position = "fixed", l.style.top = 0, l.style.clip = "rect(0, 0, 0, 0)", l.style.whiteSpace = "pre", l.style.webkitUserSelect = "text", l.style.MozUserSelect = "text", l.style.msUserSelect = "text", l.style.userSelect = "text", l.addEventListener("copy", function(y) {
439
+ if (y.stopPropagation(), c.format)
440
+ if (y.preventDefault(), typeof y.clipboardData > "u") {
441
+ g && console.warn("unable to use e.clipboardData"), g && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
442
+ var S = t[c.format] || t.default;
443
+ window.clipboardData.setData(S, s);
444
+ } else
445
+ y.clipboardData.clearData(), y.clipboardData.setData(c.format, s);
446
+ c.onCopy && (y.preventDefault(), c.onCopy(y.clipboardData));
447
+ }), document.body.appendChild(l), f.selectNodeContents(l), p.addRange(f);
448
+ var O = document.execCommand("copy");
449
+ if (!O)
450
+ throw new Error("copy command was unsuccessful");
451
+ x = !0;
452
+ } catch (y) {
453
+ g && console.error("unable to copy using execCommand: ", y), g && console.warn("trying IE specific stuff");
454
+ try {
455
+ window.clipboardData.setData(c.format || "text", s), c.onCopy && c.onCopy(window.clipboardData), x = !0;
456
+ } catch (S) {
457
+ g && console.error("unable to copy using clipboardData: ", S), g && console.error("falling back to prompt"), d = n("message" in c ? c.message : o), window.prompt(d, s);
458
+ }
459
+ } finally {
460
+ p && (typeof p.removeRange == "function" ? p.removeRange(f) : p.removeAllRanges()), l && document.body.removeChild(l), u();
449
461
  }
450
- } finally {
451
- u && (typeof u.removeRange == "function" ? u.removeRange(s) : u.removeAllRanges()), c && document.body.removeChild(c), i();
462
+ return x;
452
463
  }
453
- return d;
464
+ return ae = i, ae;
454
465
  }
455
- var Ut = Wt;
456
- const Ft = /* @__PURE__ */ ht(Ut);
457
- var Kt = function(e, t, o, n) {
466
+ var Ft = Ut();
467
+ const Kt = /* @__PURE__ */ St(Ft);
468
+ var qt = function(e, t, o, n) {
458
469
  function i(s) {
459
- return s instanceof o ? s : new o(function(u) {
460
- u(s);
470
+ return s instanceof o ? s : new o(function(c) {
471
+ c(s);
461
472
  });
462
473
  }
463
- return new (o || (o = Promise))(function(s, u) {
464
- function c(a) {
474
+ return new (o || (o = Promise))(function(s, c) {
475
+ function g(f) {
465
476
  try {
466
- f(n.next(a));
467
- } catch (m) {
468
- u(m);
477
+ u(n.next(f));
478
+ } catch (p) {
479
+ c(p);
469
480
  }
470
481
  }
471
- function d(a) {
482
+ function d(f) {
472
483
  try {
473
- f(n.throw(a));
474
- } catch (m) {
475
- u(m);
484
+ u(n.throw(f));
485
+ } catch (p) {
486
+ c(p);
476
487
  }
477
488
  }
478
- function f(a) {
479
- a.done ? s(a.value) : i(a.value).then(c, d);
489
+ function u(f) {
490
+ f.done ? s(f.value) : i(f.value).then(g, d);
480
491
  }
481
- f((n = n.apply(e, t || [])).next());
492
+ u((n = n.apply(e, t || [])).next());
482
493
  });
483
494
  };
484
- const qt = (e) => {
495
+ const Xt = (e) => {
485
496
  let {
486
497
  copyConfig: t,
487
498
  children: o
488
499
  } = e;
489
- const [n, i] = r.useState(!1), [s, u] = r.useState(!1), c = r.useRef(null), d = () => {
490
- c.current && clearTimeout(c.current);
491
- }, f = {};
492
- t.format && (f.format = t.format), r.useEffect(() => d, []);
493
- const a = pt((m) => Kt(void 0, void 0, void 0, function* () {
494
- var g;
495
- m == null || m.preventDefault(), m == null || m.stopPropagation(), u(!0);
500
+ const [n, i] = r.useState(!1), [s, c] = r.useState(!1), g = r.useRef(null), d = () => {
501
+ g.current && clearTimeout(g.current);
502
+ }, u = {};
503
+ t.format && (u.format = t.format), r.useEffect(() => d, []);
504
+ const f = yt((p) => qt(void 0, void 0, void 0, function* () {
505
+ var l;
506
+ p == null || p.preventDefault(), p == null || p.stopPropagation(), c(!0);
496
507
  try {
497
- const b = typeof t.text == "function" ? yield t.text() : t.text;
498
- Ft(b || St(o, !0).join("") || "", f), u(!1), i(!0), d(), c.current = setTimeout(() => {
508
+ const x = typeof t.text == "function" ? yield t.text() : t.text;
509
+ Kt(x || Rt(o, !0).join("") || "", u), c(!1), i(!0), d(), g.current = setTimeout(() => {
499
510
  i(!1);
500
- }, 3e3), (g = t.onCopy) === null || g === void 0 || g.call(t, m);
501
- } catch (b) {
502
- throw u(!1), b;
511
+ }, 3e3), (l = t.onCopy) === null || l === void 0 || l.call(t, p);
512
+ } catch (x) {
513
+ throw c(!1), x;
503
514
  }
504
515
  }));
505
516
  return {
506
517
  copied: n,
507
518
  copyLoading: s,
508
- onClick: a
519
+ onClick: f
509
520
  };
510
521
  };
511
- function le(e, t) {
522
+ function ce(e, t) {
512
523
  return r.useMemo(() => {
513
524
  const o = !!e;
514
525
  return [o, Object.assign(Object.assign({}, t), o && typeof e == "object" ? e : null)];
515
526
  }, [e]);
516
527
  }
517
- const Xt = (e) => {
518
- const t = st(void 0);
519
- return lt(() => {
528
+ const Jt = (e) => {
529
+ const t = at(void 0);
530
+ return ct(() => {
520
531
  t.current = e;
521
532
  }), t.current;
522
- }, Jt = (e, t, o) => at(() => e === !0 ? {
533
+ }, Gt = (e, t, o) => dt(() => e === !0 ? {
523
534
  title: t ?? o
524
- } : /* @__PURE__ */ ct(e) ? {
535
+ } : /* @__PURE__ */ pt(e) ? {
525
536
  title: e
526
537
  } : typeof e == "object" ? Object.assign({
527
538
  title: t ?? o
528
539
  }, e) : {
529
540
  title: e
530
541
  }, [e, t, o]);
531
- var Gt = function(e, t) {
542
+ var Qt = function(e, t) {
532
543
  var o = {};
533
544
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
534
545
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
535
546
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
536
547
  return o;
537
548
  };
538
- const ye = /* @__PURE__ */ r.forwardRef((e, t) => {
549
+ const ve = /* @__PURE__ */ r.forwardRef((e, t) => {
539
550
  const {
540
551
  prefixCls: o,
541
552
  component: n = "article",
542
553
  className: i,
543
554
  rootClassName: s,
544
- setContentRef: u,
545
- children: c,
555
+ setContentRef: c,
556
+ children: g,
546
557
  direction: d,
547
- style: f
548
- } = e, a = Gt(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), {
549
- getPrefixCls: m,
550
- direction: g,
551
- typography: b
552
- } = r.useContext(De), j = d ?? g, S = u ? Le(t, u) : t, C = m("typography", o);
553
- process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!u, "setContentRef", "ref");
554
- const [y, I, H] = ze(C), O = Z(C, b == null ? void 0 : b.className, {
555
- [`${C}-rtl`]: j === "rtl"
556
- }, i, s, I, H), w = Object.assign(Object.assign({}, b == null ? void 0 : b.style), f);
557
- return y(
558
+ style: u
559
+ } = e, f = Qt(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), {
560
+ getPrefixCls: p,
561
+ direction: l,
562
+ className: x,
563
+ style: O
564
+ } = bt("typography"), y = d ?? l, S = c ? Pe(t, c) : t, b = p("typography", o);
565
+ process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!c, "setContentRef", "ref");
566
+ const [I, H, w] = Ve(b), R = Z(b, x, {
567
+ [`${b}-rtl`]: y === "rtl"
568
+ }, i, s, H, w), j = Object.assign(Object.assign({}, O), u);
569
+ return I(
558
570
  // @ts-expect-error: Expression produces a union type that is too complex to represent.
559
571
  /* @__PURE__ */ r.createElement(n, Object.assign({
560
- className: O,
561
- style: w,
572
+ className: R,
573
+ style: j,
562
574
  ref: S
563
- }, a), c)
575
+ }, f), g)
564
576
  );
565
577
  });
566
- process.env.NODE_ENV !== "production" && (ye.displayName = "Typography");
567
- function je(e) {
578
+ process.env.NODE_ENV !== "production" && (ve.displayName = "Typography");
579
+ function Ie(e) {
568
580
  return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e];
569
581
  }
570
- function ae(e, t, o) {
582
+ function de(e, t, o) {
571
583
  return e === !0 || e === void 0 ? t : e || o && t;
572
584
  }
573
- function Qt(e) {
585
+ function Yt(e) {
574
586
  const t = document.createElement("em");
575
587
  e.appendChild(t), process.env.NODE_ENV !== "production" && (t.className = "ant-typography-css-ellipsis-content-measure");
576
588
  const o = e.getBoundingClientRect(), n = t.getBoundingClientRect();
@@ -578,24 +590,24 @@ function Qt(e) {
578
590
  o.left > n.left || n.right > o.right || // Vertical out of range
579
591
  o.top > n.top || n.bottom > o.bottom;
580
592
  }
581
- const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
593
+ const Ee = (e) => ["string", "number"].includes(typeof e), Zt = (e) => {
582
594
  let {
583
595
  prefixCls: t,
584
596
  copied: o,
585
597
  locale: n,
586
598
  iconOnly: i,
587
599
  tooltips: s,
588
- icon: u,
589
- tabIndex: c,
600
+ icon: c,
601
+ tabIndex: g,
590
602
  onCopy: d,
591
- loading: f
603
+ loading: u
592
604
  } = e;
593
- const a = je(s), m = je(u), {
594
- copied: g,
595
- copy: b
596
- } = n ?? {}, j = o ? g : b, S = ae(a[o ? 1 : 0], j), C = typeof S == "string" ? S : j;
597
- return /* @__PURE__ */ r.createElement(ge, {
598
- title: S
605
+ const f = Ie(s), p = Ie(c), {
606
+ copied: l,
607
+ copy: x
608
+ } = n ?? {}, O = o ? l : x, y = de(f[o ? 1 : 0], O), S = typeof y == "string" ? y : O;
609
+ return /* @__PURE__ */ r.createElement(be, {
610
+ title: y
599
611
  }, /* @__PURE__ */ r.createElement("button", {
600
612
  type: "button",
601
613
  className: Z(`${t}-copy`, {
@@ -603,9 +615,9 @@ const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
603
615
  [`${t}-copy-icon-only`]: i
604
616
  }),
605
617
  onClick: d,
606
- "aria-label": C,
607
- tabIndex: c
608
- }, o ? ae(m[1], /* @__PURE__ */ r.createElement(vt, null), !0) : ae(m[0], f ? /* @__PURE__ */ r.createElement(xt, null) : /* @__PURE__ */ r.createElement(Pe, null), !0)));
618
+ "aria-label": S,
619
+ tabIndex: g
620
+ }, o ? de(p[1], /* @__PURE__ */ r.createElement(Ot, null), !0) : de(p[0], u ? /* @__PURE__ */ r.createElement(wt, null) : /* @__PURE__ */ r.createElement(He, null), !0)));
609
621
  }, G = /* @__PURE__ */ r.forwardRef((e, t) => {
610
622
  let {
611
623
  style: o,
@@ -630,359 +642,359 @@ const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
630
642
  backgroundColor: "rgba(255, 0, 0, 0.65)"
631
643
  }, o)
632
644
  }, n);
633
- }), Zt = (e) => e.reduce((t, o) => t + (be(o) ? String(o).length : 1), 0);
634
- function Ne(e, t) {
645
+ }), en = (e) => e.reduce((t, o) => t + (Ee(o) ? String(o).length : 1), 0);
646
+ function $e(e, t) {
635
647
  let o = 0;
636
648
  const n = [];
637
649
  for (let i = 0; i < e.length; i += 1) {
638
650
  if (o === t)
639
651
  return n;
640
- const s = e[i], c = be(s) ? String(s).length : 1, d = o + c;
652
+ const s = e[i], g = Ee(s) ? String(s).length : 1, d = o + g;
641
653
  if (d > t) {
642
- const f = t - o;
643
- return n.push(String(s).slice(0, f)), n;
654
+ const u = t - o;
655
+ return n.push(String(s).slice(0, u)), n;
644
656
  }
645
657
  n.push(s), o = d;
646
658
  }
647
659
  return e;
648
660
  }
649
- const ce = 0, de = 1, ue = 2, pe = 3, _e = 4, Q = {
661
+ const pe = 0, ue = 1, fe = 2, me = 3, De = 4, Q = {
650
662
  display: "-webkit-box",
651
663
  overflow: "hidden",
652
664
  WebkitBoxOrient: "vertical"
653
665
  };
654
- function en(e) {
666
+ function tn(e) {
655
667
  const {
656
668
  enableMeasure: t,
657
669
  width: o,
658
670
  text: n,
659
671
  children: i,
660
672
  rows: s,
661
- expanded: u,
662
- miscDeps: c,
673
+ expanded: c,
674
+ miscDeps: g,
663
675
  onEllipsis: d
664
- } = e, f = r.useMemo(() => Me(n), [n]), a = r.useMemo(() => Zt(f), [n]), m = r.useMemo(() => i(f, !1), [n]), [g, b] = r.useState(null), j = r.useRef(null), S = r.useRef(null), C = r.useRef(null), y = r.useRef(null), I = r.useRef(null), [H, O] = r.useState(!1), [w, _] = r.useState(ce), [v, z] = r.useState(0), [U, V] = r.useState(null);
676
+ } = e, u = r.useMemo(() => Me(n), [n]), f = r.useMemo(() => en(u), [n]), p = r.useMemo(() => i(u, !1), [n]), [l, x] = r.useState(null), O = r.useRef(null), y = r.useRef(null), S = r.useRef(null), b = r.useRef(null), I = r.useRef(null), [H, w] = r.useState(!1), [R, j] = r.useState(pe), [v, z] = r.useState(0), [U, V] = r.useState(null);
665
677
  W(() => {
666
- _(t && o && a ? de : ce);
667
- }, [o, n, s, t, f]), W(() => {
668
- var E, h, x, P;
669
- if (w === de) {
670
- _(ue);
671
- const T = S.current && getComputedStyle(S.current).whiteSpace;
672
- V(T);
673
- } else if (w === ue) {
674
- const T = !!(!((E = C.current) === null || E === void 0) && E.isExceed());
675
- _(T ? pe : _e), b(T ? [0, a] : null), O(T);
676
- const $ = ((h = C.current) === null || h === void 0 ? void 0 : h.getHeight()) || 0, ne = s === 1 ? 0 : ((x = y.current) === null || x === void 0 ? void 0 : x.getHeight()) || 0, q = ((P = I.current) === null || P === void 0 ? void 0 : P.getHeight()) || 0, oe = Math.max(
678
+ j(t && o && f ? ue : pe);
679
+ }, [o, n, s, t, u]), W(() => {
680
+ var E, h, C, P;
681
+ if (R === ue) {
682
+ j(fe);
683
+ const N = y.current && getComputedStyle(y.current).whiteSpace;
684
+ V(N);
685
+ } else if (R === fe) {
686
+ const N = !!(!((E = S.current) === null || E === void 0) && E.isExceed());
687
+ j(N ? me : De), x(N ? [0, f] : null), w(N);
688
+ const $ = ((h = S.current) === null || h === void 0 ? void 0 : h.getHeight()) || 0, ne = s === 1 ? 0 : ((C = b.current) === null || C === void 0 ? void 0 : C.getHeight()) || 0, q = ((P = I.current) === null || P === void 0 ? void 0 : P.getHeight()) || 0, oe = Math.max(
677
689
  $,
678
690
  // height of rows with ellipsis
679
691
  ne + q
680
692
  );
681
- z(oe + 1), d(T);
693
+ z(oe + 1), d(N);
682
694
  }
683
- }, [w]);
684
- const M = g ? Math.ceil((g[0] + g[1]) / 2) : 0;
695
+ }, [R]);
696
+ const M = l ? Math.ceil((l[0] + l[1]) / 2) : 0;
685
697
  W(() => {
686
698
  var E;
687
- const [h, x] = g || [0, 0];
688
- if (h !== x) {
689
- const T = (((E = j.current) === null || E === void 0 ? void 0 : E.getHeight()) || 0) > v;
699
+ const [h, C] = l || [0, 0];
700
+ if (h !== C) {
701
+ const N = (((E = O.current) === null || E === void 0 ? void 0 : E.getHeight()) || 0) > v;
690
702
  let $ = M;
691
- x - h === 1 && ($ = T ? h : x), b(T ? [h, $] : [$, x]);
703
+ C - h === 1 && ($ = N ? h : C), x(N ? [h, $] : [$, C]);
692
704
  }
693
- }, [g, M]);
705
+ }, [l, M]);
694
706
  const F = r.useMemo(() => {
695
707
  if (!t)
696
- return i(f, !1);
697
- if (w !== pe || !g || g[0] !== g[1]) {
698
- const E = i(f, !1);
699
- return [_e, ce].includes(w) ? E : /* @__PURE__ */ r.createElement("span", {
708
+ return i(u, !1);
709
+ if (R !== me || !l || l[0] !== l[1]) {
710
+ const E = i(u, !1);
711
+ return [De, pe].includes(R) ? E : /* @__PURE__ */ r.createElement("span", {
700
712
  style: Object.assign(Object.assign({}, Q), {
701
713
  WebkitLineClamp: s
702
714
  })
703
715
  }, E);
704
716
  }
705
- return i(u ? f : Ne(f, g[0]), H);
706
- }, [u, w, g, f].concat(ft(c))), k = {
717
+ return i(c ? u : $e(u, l[0]), H);
718
+ }, [c, R, l, u].concat(vt(g))), k = {
707
719
  width: o,
708
720
  margin: 0,
709
721
  padding: 0,
710
722
  whiteSpace: U === "nowrap" ? "normal" : "inherit"
711
723
  };
712
- return /* @__PURE__ */ r.createElement(r.Fragment, null, F, w === ue && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(G, {
724
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, F, R === fe && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(G, {
713
725
  style: Object.assign(Object.assign(Object.assign({}, k), Q), {
714
726
  WebkitLineClamp: s
715
727
  }),
716
- ref: C
717
- }, m), /* @__PURE__ */ r.createElement(G, {
728
+ ref: S
729
+ }, p), /* @__PURE__ */ r.createElement(G, {
718
730
  style: Object.assign(Object.assign(Object.assign({}, k), Q), {
719
731
  WebkitLineClamp: s - 1
720
732
  }),
721
- ref: y
722
- }, m), /* @__PURE__ */ r.createElement(G, {
733
+ ref: b
734
+ }, p), /* @__PURE__ */ r.createElement(G, {
723
735
  style: Object.assign(Object.assign(Object.assign({}, k), Q), {
724
736
  WebkitLineClamp: 1
725
737
  }),
726
738
  ref: I
727
- }, i([], !0))), w === pe && g && g[0] !== g[1] && /* @__PURE__ */ r.createElement(G, {
739
+ }, i([], !0))), R === me && l && l[0] !== l[1] && /* @__PURE__ */ r.createElement(G, {
728
740
  style: Object.assign(Object.assign({}, k), {
729
741
  top: 400
730
742
  }),
731
- ref: j
732
- }, i(Ne(f, M), !0)), w === de && /* @__PURE__ */ r.createElement("span", {
743
+ ref: O
744
+ }, i($e(u, M), !0)), R === ue && /* @__PURE__ */ r.createElement("span", {
733
745
  style: {
734
746
  whiteSpace: "inherit"
735
747
  },
736
- ref: S
748
+ ref: y
737
749
  }));
738
750
  }
739
- const Be = (e) => {
751
+ const We = (e) => {
740
752
  let {
741
753
  enableEllipsis: t,
742
754
  isEllipsis: o,
743
755
  children: n,
744
756
  tooltipProps: i
745
757
  } = e;
746
- return !(i != null && i.title) || !t ? n : /* @__PURE__ */ r.createElement(ge, Object.assign({
758
+ return !(i != null && i.title) || !t ? n : /* @__PURE__ */ r.createElement(be, Object.assign({
747
759
  open: o ? void 0 : !1
748
760
  }, i), n);
749
761
  };
750
- process.env.NODE_ENV !== "production" && (Be.displayName = "EllipsisTooltip");
751
- var tn = function(e, t) {
762
+ process.env.NODE_ENV !== "production" && (We.displayName = "EllipsisTooltip");
763
+ var nn = function(e, t) {
752
764
  var o = {};
753
765
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
754
766
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
755
767
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
756
768
  return o;
757
769
  };
758
- function nn(e, t) {
770
+ function on(e, t) {
759
771
  let {
760
772
  mark: o,
761
773
  code: n,
762
774
  underline: i,
763
775
  delete: s,
764
- strong: u,
765
- keyboard: c,
776
+ strong: c,
777
+ keyboard: g,
766
778
  italic: d
767
- } = e, f = t;
768
- function a(m, g) {
769
- g && (f = /* @__PURE__ */ r.createElement(m, {}, f));
779
+ } = e, u = t;
780
+ function f(p, l) {
781
+ l && (u = /* @__PURE__ */ r.createElement(p, {}, u));
770
782
  }
771
- return a("strong", u), a("u", i), a("del", s), a("code", n), a("mark", o), a("kbd", c), a("i", d), f;
783
+ return f("strong", c), f("u", i), f("del", s), f("code", n), f("mark", o), f("kbd", g), f("i", d), u;
772
784
  }
773
- const on = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
785
+ const rn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
774
786
  var o;
775
787
  const {
776
788
  prefixCls: n,
777
789
  className: i,
778
790
  style: s,
779
- type: u,
780
- disabled: c,
791
+ type: c,
792
+ disabled: g,
781
793
  children: d,
782
- ellipsis: f,
783
- editable: a,
784
- copyable: m,
785
- component: g,
786
- title: b
787
- } = e, j = tn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
788
- getPrefixCls: S,
789
- direction: C
790
- } = r.useContext(De), [y] = yt("Text"), I = r.useRef(null), H = r.useRef(null), O = S("typography", n), w = ke(j, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), [_, v] = le(a), [z, U] = Oe(!1, {
794
+ ellipsis: u,
795
+ editable: f,
796
+ copyable: p,
797
+ component: l,
798
+ title: x
799
+ } = e, O = nn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
800
+ getPrefixCls: y,
801
+ direction: S
802
+ } = r.useContext(Et), [b] = ht("Text"), I = r.useRef(null), H = r.useRef(null), w = y("typography", n), R = Ae(O, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), [j, v] = ce(f), [z, U] = Re(!1, {
791
803
  value: v.editing
792
804
  }), {
793
805
  triggerType: V = ["icon"]
794
- } = v, M = (l) => {
795
- var p;
796
- l && ((p = v.onStart) === null || p === void 0 || p.call(v)), U(l);
797
- }, F = Xt(z);
806
+ } = v, M = (a) => {
807
+ var m;
808
+ a && ((m = v.onStart) === null || m === void 0 || m.call(v)), U(a);
809
+ }, F = Jt(z);
798
810
  W(() => {
799
- var l;
800
- !z && F && ((l = H.current) === null || l === void 0 || l.focus());
811
+ var a;
812
+ !z && F && ((a = H.current) === null || a === void 0 || a.focus());
801
813
  }, [z]);
802
- const k = (l) => {
803
- l == null || l.preventDefault(), M(!0);
804
- }, E = (l) => {
805
- var p;
806
- (p = v.onChange) === null || p === void 0 || p.call(v, l), M(!1);
814
+ const k = (a) => {
815
+ a == null || a.preventDefault(), M(!0);
816
+ }, E = (a) => {
817
+ var m;
818
+ (m = v.onChange) === null || m === void 0 || m.call(v, a), M(!1);
807
819
  }, h = () => {
808
- var l;
809
- (l = v.onCancel) === null || l === void 0 || l.call(v), M(!1);
810
- }, [x, P] = le(m), {
811
- copied: T,
820
+ var a;
821
+ (a = v.onCancel) === null || a === void 0 || a.call(v), M(!1);
822
+ }, [C, P] = ce(p), {
823
+ copied: N,
812
824
  copyLoading: $,
813
825
  onClick: ne
814
- } = qt({
826
+ } = Xt({
815
827
  copyConfig: P,
816
828
  children: d
817
- }), [q, oe] = r.useState(!1), [Ee, Ve] = r.useState(!1), [he, We] = r.useState(!1), [ve, Ue] = r.useState(!1), [Fe, Ke] = r.useState(!0), [B, R] = le(f, {
829
+ }), [q, oe] = r.useState(!1), [he, Ue] = r.useState(!1), [xe, Fe] = r.useState(!1), [Ce, Ke] = r.useState(!1), [qe, Xe] = r.useState(!0), [B, T] = ce(u, {
818
830
  expandable: !1,
819
- symbol: (l) => l ? y == null ? void 0 : y.collapse : y == null ? void 0 : y.expand
820
- }), [A, qe] = Oe(R.defaultExpanded || !1, {
821
- value: R.expanded
822
- }), N = B && (!A || R.expandable === "collapsible"), {
831
+ symbol: (a) => a ? b == null ? void 0 : b.collapse : b == null ? void 0 : b.expand
832
+ }), [A, Je] = Re(T.defaultExpanded || !1, {
833
+ value: T.expanded
834
+ }), _ = B && (!A || T.expandable === "collapsible"), {
823
835
  rows: K = 1
824
- } = R, X = r.useMemo(() => (
836
+ } = T, X = r.useMemo(() => (
825
837
  // Disable ellipsis
826
- N && // Provide suffix
827
- (R.suffix !== void 0 || R.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
828
- R.expandable || _ || x)
829
- ), [N, R, _, x]);
838
+ _ && // Provide suffix
839
+ (T.suffix !== void 0 || T.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
840
+ T.expandable || j || C)
841
+ ), [_, T, j, C]);
830
842
  W(() => {
831
- B && !X && (oe(we("webkitLineClamp")), Ve(we("textOverflow")));
843
+ B && !X && (oe(Te("webkitLineClamp")), Ue(Te("textOverflow")));
832
844
  }, [X, B]);
833
- const [D, Xe] = r.useState(N), xe = r.useMemo(() => X ? !1 : K === 1 ? Ee : q, [X, Ee, q]);
845
+ const [D, Ge] = r.useState(_), Se = r.useMemo(() => X ? !1 : K === 1 ? he : q, [X, he, q]);
834
846
  W(() => {
835
- Xe(xe && N);
836
- }, [xe, N]);
837
- const Se = N && (D ? ve : he), Je = N && K === 1 && D, re = N && K > 1 && D, Ge = (l, p) => {
847
+ Ge(Se && _);
848
+ }, [Se, _]);
849
+ const Oe = _ && (D ? Ce : xe), Qe = _ && K === 1 && D, re = _ && K > 1 && D, Ye = (a, m) => {
838
850
  var L;
839
- qe(p.expanded), (L = R.onExpand) === null || L === void 0 || L.call(R, l, p);
840
- }, [Ce, Qe] = r.useState(0), Ye = (l) => {
851
+ Je(m.expanded), (L = T.onExpand) === null || L === void 0 || L.call(T, a, m);
852
+ }, [we, Ze] = r.useState(0), et = (a) => {
841
853
  let {
842
- offsetWidth: p
843
- } = l;
844
- Qe(p);
845
- }, Ze = (l) => {
846
- var p;
847
- We(l), he !== l && ((p = R.onEllipsis) === null || p === void 0 || p.call(R, l));
854
+ offsetWidth: m
855
+ } = a;
856
+ Ze(m);
857
+ }, tt = (a) => {
858
+ var m;
859
+ Fe(a), xe !== a && ((m = T.onEllipsis) === null || m === void 0 || m.call(T, a));
848
860
  };
849
861
  r.useEffect(() => {
850
- const l = I.current;
851
- if (B && D && l) {
852
- const p = Qt(l);
853
- ve !== p && Ue(p);
862
+ const a = I.current;
863
+ if (B && D && a) {
864
+ const m = Yt(a);
865
+ Ce !== m && Ke(m);
854
866
  }
855
- }, [B, D, d, re, Fe, Ce]), r.useEffect(() => {
856
- const l = I.current;
857
- if (typeof IntersectionObserver > "u" || !l || !D || !N)
867
+ }, [B, D, d, re, qe, we]), r.useEffect(() => {
868
+ const a = I.current;
869
+ if (typeof IntersectionObserver > "u" || !a || !D || !_)
858
870
  return;
859
- const p = new IntersectionObserver(() => {
860
- Ke(!!l.offsetParent);
871
+ const m = new IntersectionObserver(() => {
872
+ Xe(!!a.offsetParent);
861
873
  });
862
- return p.observe(l), () => {
863
- p.disconnect();
874
+ return m.observe(a), () => {
875
+ m.disconnect();
864
876
  };
865
- }, [D, N]);
866
- const ie = Jt(R.tooltip, v.text, d), J = r.useMemo(() => {
877
+ }, [D, _]);
878
+ const ie = Gt(T.tooltip, v.text, d), J = r.useMemo(() => {
867
879
  if (!(!B || D))
868
- return [v.text, d, b, ie.title].find(be);
869
- }, [B, D, b, ie.title, Se]);
880
+ return [v.text, d, x, ie.title].find(Ee);
881
+ }, [B, D, x, ie.title, Oe]);
870
882
  if (z)
871
- return /* @__PURE__ */ r.createElement(At, {
883
+ return /* @__PURE__ */ r.createElement(Vt, {
872
884
  value: (o = v.text) !== null && o !== void 0 ? o : typeof d == "string" ? d : "",
873
885
  onSave: E,
874
886
  onCancel: h,
875
887
  onEnd: v.onEnd,
876
- prefixCls: O,
888
+ prefixCls: w,
877
889
  className: i,
878
890
  style: s,
879
- direction: C,
880
- component: g,
891
+ direction: S,
892
+ component: l,
881
893
  maxLength: v.maxLength,
882
894
  autoSize: v.autoSize,
883
895
  enterIcon: v.enterIcon
884
896
  });
885
- const et = () => {
897
+ const nt = () => {
886
898
  const {
887
- expandable: l,
888
- symbol: p
889
- } = R;
890
- return l ? /* @__PURE__ */ r.createElement("button", {
899
+ expandable: a,
900
+ symbol: m
901
+ } = T;
902
+ return a ? /* @__PURE__ */ r.createElement("button", {
891
903
  type: "button",
892
904
  key: "expand",
893
- className: `${O}-${A ? "collapse" : "expand"}`,
894
- onClick: (L) => Ge(L, {
905
+ className: `${w}-${A ? "collapse" : "expand"}`,
906
+ onClick: (L) => Ye(L, {
895
907
  expanded: !A
896
908
  }),
897
- "aria-label": A ? y.collapse : y == null ? void 0 : y.expand
898
- }, typeof p == "function" ? p(A) : p) : null;
899
- }, tt = () => {
900
- if (!_)
909
+ "aria-label": A ? b.collapse : b == null ? void 0 : b.expand
910
+ }, typeof m == "function" ? m(A) : m) : null;
911
+ }, ot = () => {
912
+ if (!j)
901
913
  return;
902
914
  const {
903
- icon: l,
904
- tooltip: p,
915
+ icon: a,
916
+ tooltip: m,
905
917
  tabIndex: L
906
- } = v, se = Me(p)[0] || (y == null ? void 0 : y.edit), it = typeof se == "string" ? se : "";
907
- return V.includes("icon") ? /* @__PURE__ */ r.createElement(ge, {
918
+ } = v, se = Me(m)[0] || (b == null ? void 0 : b.edit), lt = typeof se == "string" ? se : "";
919
+ return V.includes("icon") ? /* @__PURE__ */ r.createElement(be, {
908
920
  key: "edit",
909
- title: p === !1 ? "" : se
921
+ title: m === !1 ? "" : se
910
922
  }, /* @__PURE__ */ r.createElement("button", {
911
923
  type: "button",
912
924
  ref: H,
913
- className: `${O}-edit`,
925
+ className: `${w}-edit`,
914
926
  onClick: k,
915
- "aria-label": it,
927
+ "aria-label": lt,
916
928
  tabIndex: L
917
- }, l || /* @__PURE__ */ r.createElement(Ae, {
929
+ }, a || /* @__PURE__ */ r.createElement(ze, {
918
930
  role: "button"
919
931
  }))) : null;
920
- }, nt = () => x ? /* @__PURE__ */ r.createElement(Yt, Object.assign({
932
+ }, rt = () => C ? /* @__PURE__ */ r.createElement(Zt, Object.assign({
921
933
  key: "copy"
922
934
  }, P, {
923
- prefixCls: O,
924
- copied: T,
925
- locale: y,
935
+ prefixCls: w,
936
+ copied: N,
937
+ locale: b,
926
938
  onCopy: ne,
927
939
  loading: $,
928
940
  iconOnly: d == null
929
- })) : null, ot = (l) => [l && et(), tt(), nt()], rt = (l) => [l && !A && /* @__PURE__ */ r.createElement("span", {
941
+ })) : null, it = (a) => [a && nt(), ot(), rt()], st = (a) => [a && !A && /* @__PURE__ */ r.createElement("span", {
930
942
  "aria-hidden": !0,
931
943
  key: "ellipsis"
932
- }, on), R.suffix, ot(l)];
933
- return /* @__PURE__ */ r.createElement(gt, {
934
- onResize: Ye,
935
- disabled: !N
936
- }, (l) => /* @__PURE__ */ r.createElement(Be, {
944
+ }, rn), T.suffix, it(a)];
945
+ return /* @__PURE__ */ r.createElement(ft, {
946
+ onResize: et,
947
+ disabled: !_
948
+ }, (a) => /* @__PURE__ */ r.createElement(We, {
937
949
  tooltipProps: ie,
938
- enableEllipsis: N,
939
- isEllipsis: Se
940
- }, /* @__PURE__ */ r.createElement(ye, Object.assign({
950
+ enableEllipsis: _,
951
+ isEllipsis: Oe
952
+ }, /* @__PURE__ */ r.createElement(ve, Object.assign({
941
953
  className: Z({
942
- [`${O}-${u}`]: u,
943
- [`${O}-disabled`]: c,
944
- [`${O}-ellipsis`]: B,
945
- [`${O}-ellipsis-single-line`]: Je,
946
- [`${O}-ellipsis-multiple-line`]: re
954
+ [`${w}-${c}`]: c,
955
+ [`${w}-disabled`]: g,
956
+ [`${w}-ellipsis`]: B,
957
+ [`${w}-ellipsis-single-line`]: Qe,
958
+ [`${w}-ellipsis-multiple-line`]: re
947
959
  }, i),
948
960
  prefixCls: n,
949
961
  style: Object.assign(Object.assign({}, s), {
950
962
  WebkitLineClamp: re ? K : void 0
951
963
  }),
952
- component: g,
953
- ref: Le(l, I, t),
954
- direction: C,
964
+ component: l,
965
+ ref: Pe(a, I, t),
966
+ direction: S,
955
967
  onClick: V.includes("text") ? k : void 0,
956
968
  "aria-label": J == null ? void 0 : J.toString(),
957
- title: b
958
- }, w), /* @__PURE__ */ r.createElement(en, {
959
- enableMeasure: N && !D,
969
+ title: x
970
+ }, R), /* @__PURE__ */ r.createElement(tn, {
971
+ enableMeasure: _ && !D,
960
972
  text: d,
961
973
  rows: K,
962
- width: Ce,
963
- onEllipsis: Ze,
974
+ width: we,
975
+ onEllipsis: tt,
964
976
  expanded: A,
965
- miscDeps: [T, A, $, _, x, y]
966
- }, (p, L) => nn(e, /* @__PURE__ */ r.createElement(r.Fragment, null, p.length > 0 && L && !A && J ? /* @__PURE__ */ r.createElement("span", {
977
+ miscDeps: [N, A, $, j, C, b]
978
+ }, (m, L) => on(e, /* @__PURE__ */ r.createElement(r.Fragment, null, m.length > 0 && L && !A && J ? /* @__PURE__ */ r.createElement("span", {
967
979
  key: "show-content",
968
980
  "aria-hidden": !0
969
- }, p) : p, rt(L)))))));
981
+ }, m) : m, st(L)))))));
970
982
  });
971
- var rn = function(e, t) {
983
+ var sn = function(e, t) {
972
984
  var o = {};
973
985
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
974
986
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
975
987
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
976
988
  return o;
977
989
  };
978
- const sn = /* @__PURE__ */ r.forwardRef((e, t) => {
990
+ const ln = /* @__PURE__ */ r.forwardRef((e, t) => {
979
991
  var {
980
992
  ellipsis: o,
981
993
  rel: n
982
- } = e, i = rn(e, ["ellipsis", "rel"]);
994
+ } = e, i = sn(e, ["ellipsis", "rel"]);
983
995
  if (process.env.NODE_ENV !== "production") {
984
- const u = Y("Typography.Link");
985
- process.env.NODE_ENV !== "production" && u(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
996
+ const c = Y("Typography.Link");
997
+ process.env.NODE_ENV !== "production" && c(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
986
998
  }
987
999
  const s = Object.assign(Object.assign({}, i), {
988
1000
  rel: n === void 0 && i.target === "_blank" ? "noopener noreferrer" : n
@@ -992,23 +1004,23 @@ const sn = /* @__PURE__ */ r.forwardRef((e, t) => {
992
1004
  ellipsis: !!o,
993
1005
  component: "a"
994
1006
  }));
995
- }), ln = /* @__PURE__ */ r.forwardRef((e, t) => /* @__PURE__ */ r.createElement(ee, Object.assign({
1007
+ }), an = /* @__PURE__ */ r.forwardRef((e, t) => /* @__PURE__ */ r.createElement(ee, Object.assign({
996
1008
  ref: t
997
1009
  }, e, {
998
1010
  component: "div"
999
1011
  })));
1000
- var an = function(e, t) {
1012
+ var cn = function(e, t) {
1001
1013
  var o = {};
1002
1014
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1003
1015
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1004
1016
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
1005
1017
  return o;
1006
1018
  };
1007
- const cn = (e, t) => {
1019
+ const dn = (e, t) => {
1008
1020
  var {
1009
1021
  ellipsis: o
1010
- } = e, n = an(e, ["ellipsis"]);
1011
- const i = r.useMemo(() => o && typeof o == "object" ? ke(o, ["expandable", "rows"]) : o, [o]);
1022
+ } = e, n = cn(e, ["ellipsis"]);
1023
+ const i = r.useMemo(() => o && typeof o == "object" ? Ae(o, ["expandable", "rows"]) : o, [o]);
1012
1024
  if (process.env.NODE_ENV !== "production") {
1013
1025
  const s = Y("Typography.Text");
1014
1026
  process.env.NODE_ENV !== "production" && s(typeof o != "object" || !o || !("expandable" in o) && !("rows" in o), "usage", "`ellipsis` do not support `expandable` or `rows` props.");
@@ -1019,7 +1031,7 @@ const cn = (e, t) => {
1019
1031
  ellipsis: i,
1020
1032
  component: "span"
1021
1033
  }));
1022
- }, dn = /* @__PURE__ */ r.forwardRef(cn);
1034
+ }, pn = /* @__PURE__ */ r.forwardRef(dn);
1023
1035
  var un = function(e, t) {
1024
1036
  var o = {};
1025
1037
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
@@ -1027,25 +1039,25 @@ var un = function(e, t) {
1027
1039
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
1028
1040
  return o;
1029
1041
  };
1030
- const Ie = [1, 2, 3, 4, 5], pn = /* @__PURE__ */ r.forwardRef((e, t) => {
1042
+ const Le = [1, 2, 3, 4, 5], fn = /* @__PURE__ */ r.forwardRef((e, t) => {
1031
1043
  const {
1032
1044
  level: o = 1
1033
1045
  } = e, n = un(e, ["level"]);
1034
1046
  if (process.env.NODE_ENV !== "production") {
1035
1047
  const s = Y("Typography.Title");
1036
- process.env.NODE_ENV !== "production" && s(Ie.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
1048
+ process.env.NODE_ENV !== "production" && s(Le.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
1037
1049
  }
1038
- const i = Ie.includes(o) ? `h${o}` : "h1";
1050
+ const i = Le.includes(o) ? `h${o}` : "h1";
1039
1051
  return /* @__PURE__ */ r.createElement(ee, Object.assign({
1040
1052
  ref: t
1041
1053
  }, n, {
1042
1054
  component: i
1043
1055
  }));
1044
- }), te = ye;
1045
- te.Text = dn;
1046
- te.Link = sn;
1047
- te.Title = pn;
1048
- te.Paragraph = ln;
1056
+ }), te = ve;
1057
+ te.Text = pn;
1058
+ te.Link = ln;
1059
+ te.Title = fn;
1060
+ te.Paragraph = an;
1049
1061
  export {
1050
1062
  te as T
1051
1063
  };