@gobolt/genesis 0.1.2 → 0.1.5

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 +45 -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
@@ -0,0 +1,780 @@
1
+ import { d as mr, a as $, u as Da, r as la, w as Ba, c as ar, e as Na, _ as A, j as Va, g as Fa } from "./presets-CSXMiWyc.js";
2
+ import * as t from "react";
3
+ import { n as sa, h as Z, y as La, A as $a, D as ja, p as Ea, q as qa, F as _a, z as Aa, a as Ke, G as ca } from "./CSSMotionList-DB0khM6h.js";
4
+ import { R as za } from "./index-CzMIlMTV.js";
5
+ import { g as va } from "./shadow-9lsz-71t.js";
6
+ import { u as Ia } from "./useId-DLf1xVuv.js";
7
+ import { i as Ua } from "./isVisible-D3-B85BJ.js";
8
+ const Qa = (e) => ({
9
+ animationDuration: e,
10
+ animationFillMode: "both"
11
+ }), Ga = (e) => ({
12
+ animationDuration: e,
13
+ animationFillMode: "both"
14
+ }), wn = function(e, a, r, n) {
15
+ const u = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
16
+ return {
17
+ [`
18
+ ${u}${e}-enter,
19
+ ${u}${e}-appear
20
+ `]: Object.assign(Object.assign({}, Qa(n)), {
21
+ animationPlayState: "paused"
22
+ }),
23
+ [`${u}${e}-leave`]: Object.assign(Object.assign({}, Ga(n)), {
24
+ animationPlayState: "paused"
25
+ }),
26
+ [`
27
+ ${u}${e}-enter${e}-enter-active,
28
+ ${u}${e}-appear${e}-appear-active
29
+ `]: {
30
+ animationName: a,
31
+ animationPlayState: "running"
32
+ },
33
+ [`${u}${e}-leave${e}-leave-active`]: {
34
+ animationName: r,
35
+ animationPlayState: "running",
36
+ pointerEvents: "none"
37
+ }
38
+ };
39
+ };
40
+ var Ta = /* @__PURE__ */ t.createContext(null), ha = [];
41
+ function Ja(e, a) {
42
+ var r = t.useState(function() {
43
+ if (!mr())
44
+ return null;
45
+ var m = document.createElement("div");
46
+ return process.env.NODE_ENV !== "production" && a && m.setAttribute("data-debug", a), m;
47
+ }), n = $(r, 1), o = n[0], u = t.useRef(!1), s = t.useContext(Ta), d = t.useState(ha), f = $(d, 2), h = f[0], D = f[1], g = s || (u.current ? void 0 : function(m) {
48
+ D(function(N) {
49
+ var b = [m].concat(sa(N));
50
+ return b;
51
+ });
52
+ });
53
+ function y() {
54
+ o.parentElement || document.body.appendChild(o), u.current = !0;
55
+ }
56
+ function c() {
57
+ var m;
58
+ (m = o.parentElement) === null || m === void 0 || m.removeChild(o), u.current = !1;
59
+ }
60
+ return Z(function() {
61
+ return e ? s ? s(y) : y() : c(), c;
62
+ }, [e]), Z(function() {
63
+ h.length && (h.forEach(function(m) {
64
+ return m();
65
+ }), D(ha));
66
+ }, [h]), [o, g];
67
+ }
68
+ var ua;
69
+ function xa(e) {
70
+ var a = "rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)), r = document.createElement("div");
71
+ r.id = a;
72
+ var n = r.style;
73
+ n.position = "absolute", n.left = "0", n.top = "0", n.width = "100px", n.height = "100px", n.overflow = "scroll";
74
+ var o, u;
75
+ if (e) {
76
+ var s = getComputedStyle(e);
77
+ n.scrollbarColor = s.scrollbarColor, n.scrollbarWidth = s.scrollbarWidth;
78
+ var d = getComputedStyle(e, "::-webkit-scrollbar"), f = parseInt(d.width, 10), h = parseInt(d.height, 10);
79
+ try {
80
+ var D = f ? "width: ".concat(d.width, ";") : "", g = h ? "height: ".concat(d.height, ";") : "";
81
+ Da(`
82
+ #`.concat(a, `::-webkit-scrollbar {
83
+ `).concat(D, `
84
+ `).concat(g, `
85
+ }`), a);
86
+ } catch (m) {
87
+ console.error(m), o = f, u = h;
88
+ }
89
+ }
90
+ document.body.appendChild(r);
91
+ var y = e && o && !isNaN(o) ? o : r.offsetWidth - r.clientWidth, c = e && u && !isNaN(u) ? u : r.offsetHeight - r.clientHeight;
92
+ return document.body.removeChild(r), la(a), {
93
+ width: y,
94
+ height: c
95
+ };
96
+ }
97
+ function bn(e) {
98
+ return typeof document > "u" ? 0 : (ua === void 0 && (ua = xa()), ua.width);
99
+ }
100
+ function Ka(e) {
101
+ return typeof document > "u" || !e || !(e instanceof Element) ? {
102
+ width: 0,
103
+ height: 0
104
+ } : xa(e);
105
+ }
106
+ function Za() {
107
+ return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
108
+ }
109
+ var Oa = "rc-util-locker-".concat(Date.now()), ga = 0;
110
+ function Ya(e) {
111
+ var a = !!e, r = t.useState(function() {
112
+ return ga += 1, "".concat(Oa, "_").concat(ga);
113
+ }), n = $(r, 1), o = n[0];
114
+ Z(function() {
115
+ if (a) {
116
+ var u = Ka(document.body).width, s = Za();
117
+ Da(`
118
+ html body {
119
+ overflow-y: hidden;
120
+ `.concat(s ? "width: calc(100% - ".concat(u, "px);") : "", `
121
+ }`), o);
122
+ } else
123
+ la(o);
124
+ return function() {
125
+ la(o);
126
+ };
127
+ }, [a, o]);
128
+ }
129
+ var Xa = !1;
130
+ function pa(e) {
131
+ return Xa;
132
+ }
133
+ var ya = function(a) {
134
+ return a === !1 ? !1 : !mr() || !a ? null : typeof a == "string" ? document.querySelector(a) : typeof a == "function" ? a() : a;
135
+ }, fa = /* @__PURE__ */ t.forwardRef(function(e, a) {
136
+ var r = e.open, n = e.autoLock, o = e.getContainer, u = e.debug, s = e.autoDestroy, d = s === void 0 ? !0 : s, f = e.children, h = t.useState(r), D = $(h, 2), g = D[0], y = D[1], c = g || r;
137
+ process.env.NODE_ENV !== "production" && Ba(mr() || !r, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), t.useEffect(function() {
138
+ (d || r) && y(r);
139
+ }, [r, d]);
140
+ var m = t.useState(function() {
141
+ return ya(o);
142
+ }), N = $(m, 2), b = N[0], W = N[1];
143
+ t.useEffect(function() {
144
+ var U = ya(o);
145
+ W(U ?? null);
146
+ });
147
+ var T = Ja(c && !b, u), C = $(T, 2), x = C[0], E = C[1], v = b ?? x;
148
+ Ya(n && r && mr() && (v === x || v === document.body));
149
+ var ae = null;
150
+ if (f && La(f) && a) {
151
+ var ve = f;
152
+ ae = ve.ref;
153
+ }
154
+ var ne = $a(ae, a);
155
+ if (!c || !mr() || b === void 0)
156
+ return null;
157
+ var de = v === !1 || pa(), te = f;
158
+ return a && (te = /* @__PURE__ */ t.cloneElement(f, {
159
+ ref: ne
160
+ })), /* @__PURE__ */ t.createElement(Ta.Provider, {
161
+ value: E
162
+ }, de ? te : /* @__PURE__ */ ja.createPortal(te, v));
163
+ });
164
+ process.env.NODE_ENV !== "production" && (fa.displayName = "Portal");
165
+ const en = function() {
166
+ if (typeof navigator > "u" || typeof window > "u")
167
+ return !1;
168
+ var e = navigator.userAgent || navigator.vendor || window.opera;
169
+ return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4));
170
+ };
171
+ function rn(e) {
172
+ var a = e.prefixCls, r = e.align, n = e.arrow, o = e.arrowPos, u = n || {}, s = u.className, d = u.content, f = o.x, h = f === void 0 ? 0 : f, D = o.y, g = D === void 0 ? 0 : D, y = t.useRef();
173
+ if (!r || !r.points)
174
+ return null;
175
+ var c = {
176
+ position: "absolute"
177
+ };
178
+ if (r.autoArrow !== !1) {
179
+ var m = r.points[0], N = r.points[1], b = m[0], W = m[1], T = N[0], C = N[1];
180
+ b === T || !["t", "b"].includes(b) ? c.top = g : b === "t" ? c.top = 0 : c.bottom = 0, W === C || !["l", "r"].includes(W) ? c.left = h : W === "l" ? c.left = 0 : c.right = 0;
181
+ }
182
+ return /* @__PURE__ */ t.createElement("div", {
183
+ ref: y,
184
+ className: ar("".concat(a, "-arrow"), s),
185
+ style: c
186
+ }, d);
187
+ }
188
+ function an(e) {
189
+ var a = e.prefixCls, r = e.open, n = e.zIndex, o = e.mask, u = e.motion;
190
+ return o ? /* @__PURE__ */ t.createElement(Ea, Na({}, u, {
191
+ motionAppear: !0,
192
+ visible: r,
193
+ removeOnLeave: !0
194
+ }), function(s) {
195
+ var d = s.className;
196
+ return /* @__PURE__ */ t.createElement("div", {
197
+ style: {
198
+ zIndex: n
199
+ },
200
+ className: ar("".concat(a, "-mask"), d)
201
+ });
202
+ }) : null;
203
+ }
204
+ var Wa = /* @__PURE__ */ t.memo(function(e) {
205
+ var a = e.children;
206
+ return a;
207
+ }, function(e, a) {
208
+ return a.cache;
209
+ });
210
+ process.env.NODE_ENV !== "production" && (Wa.displayName = "PopupContent");
211
+ var Ra = /* @__PURE__ */ t.forwardRef(function(e, a) {
212
+ var r = e.popup, n = e.className, o = e.prefixCls, u = e.style, s = e.target, d = e.onVisibleChanged, f = e.open, h = e.keepDom, D = e.fresh, g = e.onClick, y = e.mask, c = e.arrow, m = e.arrowPos, N = e.align, b = e.motion, W = e.maskMotion, T = e.forceRender, C = e.getPopupContainer, x = e.autoDestroy, E = e.portal, v = e.zIndex, ae = e.onMouseEnter, ve = e.onMouseLeave, ne = e.onPointerEnter, de = e.onPointerDownCapture, te = e.ready, U = e.offsetX, Me = e.offsetY, fe = e.offsetR, Pe = e.offsetB, Q = e.onAlign, Se = e.onPrepare, B = e.stretch, F = e.targetWidth, w = e.targetHeight, Be = typeof r == "function" ? r() : r, oe = f || h, V = (C == null ? void 0 : C.length) > 0, M = t.useState(!C || !V), G = $(M, 2), Ve = G[0], nr = G[1];
213
+ if (Z(function() {
214
+ !Ve && V && s && nr(!0);
215
+ }, [Ve, V, s]), !Ve)
216
+ return null;
217
+ var me = "auto", J = {
218
+ left: "-1000vw",
219
+ top: "-1000vh",
220
+ right: me,
221
+ bottom: me
222
+ };
223
+ if (te || !f) {
224
+ var Le, Fe = N.points, O = N.dynamicInset || ((Le = N._experimental) === null || Le === void 0 ? void 0 : Le.dynamicInset), he = O && Fe[0][1] === "r", ie = O && Fe[0][0] === "b";
225
+ he ? (J.right = fe, J.left = me) : (J.left = U, J.right = me), ie ? (J.bottom = Pe, J.top = me) : (J.top = Me, J.bottom = me);
226
+ }
227
+ var I = {};
228
+ return B && (B.includes("height") && w ? I.height = w : B.includes("minHeight") && w && (I.minHeight = w), B.includes("width") && F ? I.width = F : B.includes("minWidth") && F && (I.minWidth = F)), f || (I.pointerEvents = "none"), /* @__PURE__ */ t.createElement(E, {
229
+ open: T || oe,
230
+ getContainer: C && function() {
231
+ return C(s);
232
+ },
233
+ autoDestroy: x
234
+ }, /* @__PURE__ */ t.createElement(an, {
235
+ prefixCls: o,
236
+ open: f,
237
+ zIndex: v,
238
+ mask: y,
239
+ motion: W
240
+ }), /* @__PURE__ */ t.createElement(za, {
241
+ onResize: Q,
242
+ disabled: !f
243
+ }, function(tr) {
244
+ return /* @__PURE__ */ t.createElement(Ea, Na({
245
+ motionAppear: !0,
246
+ motionEnter: !0,
247
+ motionLeave: !0,
248
+ removeOnLeave: !1,
249
+ forceRender: T,
250
+ leavedClassName: "".concat(o, "-hidden")
251
+ }, b, {
252
+ onAppearPrepare: Se,
253
+ onEnterPrepare: Se,
254
+ visible: f,
255
+ onVisibleChanged: function(Y) {
256
+ var ge;
257
+ b == null || (ge = b.onVisibleChanged) === null || ge === void 0 || ge.call(b, Y), d(Y);
258
+ }
259
+ }), function($e, Y) {
260
+ var ge = $e.className, je = $e.style, j = ar(o, ge, n);
261
+ return /* @__PURE__ */ t.createElement("div", {
262
+ ref: qa(tr, a, Y),
263
+ className: j,
264
+ style: A(A(A(A({
265
+ "--arrow-x": "".concat(m.x || 0, "px"),
266
+ "--arrow-y": "".concat(m.y || 0, "px")
267
+ }, J), I), je), {}, {
268
+ boxSizing: "border-box",
269
+ zIndex: v
270
+ }, u),
271
+ onMouseEnter: ae,
272
+ onMouseLeave: ve,
273
+ onPointerEnter: ne,
274
+ onClick: g,
275
+ onPointerDownCapture: de
276
+ }, c && /* @__PURE__ */ t.createElement(rn, {
277
+ prefixCls: o,
278
+ arrow: c,
279
+ arrowPos: m,
280
+ align: N
281
+ }), /* @__PURE__ */ t.createElement(Wa, {
282
+ cache: !f && !D
283
+ }, Be));
284
+ });
285
+ }));
286
+ });
287
+ process.env.NODE_ENV !== "production" && (Ra.displayName = "Popup");
288
+ var Ha = /* @__PURE__ */ t.forwardRef(function(e, a) {
289
+ var r = e.children, n = e.getTriggerDOMNode, o = La(r), u = t.useCallback(function(d) {
290
+ _a(a, n ? n(d) : d);
291
+ }, [n]), s = $a(u, Aa(r));
292
+ return o ? /* @__PURE__ */ t.cloneElement(r, {
293
+ ref: s
294
+ }) : r;
295
+ });
296
+ process.env.NODE_ENV !== "production" && (Ha.displayName = "TriggerWrapper");
297
+ var wa = /* @__PURE__ */ t.createContext(null);
298
+ function ba(e) {
299
+ return e ? Array.isArray(e) ? e : [e] : [];
300
+ }
301
+ function nn(e, a, r, n) {
302
+ return t.useMemo(function() {
303
+ var o = ba(r ?? a), u = ba(n ?? a), s = new Set(o), d = new Set(u);
304
+ return e && (s.has("hover") && (s.delete("hover"), s.add("click")), d.has("hover") && (d.delete("hover"), d.add("click"))), [s, d];
305
+ }, [e, a, r, n]);
306
+ }
307
+ function tn() {
308
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 ? arguments[2] : void 0;
309
+ return r ? e[0] === a[0] : e[0] === a[0] && e[1] === a[1];
310
+ }
311
+ function on(e, a, r, n) {
312
+ for (var o = r.points, u = Object.keys(e), s = 0; s < u.length; s += 1) {
313
+ var d, f = u[s];
314
+ if (tn((d = e[f]) === null || d === void 0 ? void 0 : d.points, o, n))
315
+ return "".concat(a, "-placement-").concat(f);
316
+ }
317
+ return "";
318
+ }
319
+ function Ca(e, a, r, n) {
320
+ return a || (r ? {
321
+ motionName: "".concat(e, "-").concat(r)
322
+ } : n ? {
323
+ motionName: n
324
+ } : null);
325
+ }
326
+ function gr(e) {
327
+ return e.ownerDocument.defaultView;
328
+ }
329
+ function da(e) {
330
+ for (var a = [], r = e == null ? void 0 : e.parentElement, n = ["hidden", "scroll", "clip", "auto"]; r; ) {
331
+ var o = gr(r).getComputedStyle(r), u = o.overflowX, s = o.overflowY, d = o.overflow;
332
+ [u, s, d].some(function(f) {
333
+ return n.includes(f);
334
+ }) && a.push(r), r = r.parentElement;
335
+ }
336
+ return a;
337
+ }
338
+ function hr(e) {
339
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
340
+ return Number.isNaN(e) ? a : e;
341
+ }
342
+ function fr(e) {
343
+ return hr(parseFloat(e), 0);
344
+ }
345
+ function Ma(e, a) {
346
+ var r = A({}, e);
347
+ return (a || []).forEach(function(n) {
348
+ if (!(n instanceof HTMLBodyElement || n instanceof HTMLHtmlElement)) {
349
+ var o = gr(n).getComputedStyle(n), u = o.overflow, s = o.overflowClipMargin, d = o.borderTopWidth, f = o.borderBottomWidth, h = o.borderLeftWidth, D = o.borderRightWidth, g = n.getBoundingClientRect(), y = n.offsetHeight, c = n.clientHeight, m = n.offsetWidth, N = n.clientWidth, b = fr(d), W = fr(f), T = fr(h), C = fr(D), x = hr(Math.round(g.width / m * 1e3) / 1e3), E = hr(Math.round(g.height / y * 1e3) / 1e3), v = (m - N - T - C) * x, ae = (y - c - b - W) * E, ve = b * E, ne = W * E, de = T * x, te = C * x, U = 0, Me = 0;
350
+ if (u === "clip") {
351
+ var fe = fr(s);
352
+ U = fe * x, Me = fe * E;
353
+ }
354
+ var Pe = g.x + de - U, Q = g.y + ve - Me, Se = Pe + g.width + 2 * U - de - te - v, B = Q + g.height + 2 * Me - ve - ne - ae;
355
+ r.left = Math.max(r.left, Pe), r.top = Math.max(r.top, Q), r.right = Math.min(r.right, Se), r.bottom = Math.min(r.bottom, B);
356
+ }
357
+ }), r;
358
+ }
359
+ function Pa(e) {
360
+ var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = "".concat(a), n = r.match(/^(.*)\%$/);
361
+ return n ? e * (parseFloat(n[1]) / 100) : parseFloat(r);
362
+ }
363
+ function Sa(e, a) {
364
+ var r = a || [], n = $(r, 2), o = n[0], u = n[1];
365
+ return [Pa(e.width, o), Pa(e.height, u)];
366
+ }
367
+ function ka() {
368
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
369
+ return [e[0], e[1]];
370
+ }
371
+ function rr(e, a) {
372
+ var r = a[0], n = a[1], o, u;
373
+ return r === "t" ? u = e.y : r === "b" ? u = e.y + e.height : u = e.y + e.height / 2, n === "l" ? o = e.x : n === "r" ? o = e.x + e.width : o = e.x + e.width / 2, {
374
+ x: o,
375
+ y: u
376
+ };
377
+ }
378
+ function He(e, a) {
379
+ var r = {
380
+ t: "b",
381
+ b: "t",
382
+ l: "r",
383
+ r: "l"
384
+ };
385
+ return e.map(function(n, o) {
386
+ return o === a ? r[n] || "c" : n;
387
+ }).join("");
388
+ }
389
+ function un(e, a, r, n, o, u, s) {
390
+ var d = t.useState({
391
+ ready: !1,
392
+ offsetX: 0,
393
+ offsetY: 0,
394
+ offsetR: 0,
395
+ offsetB: 0,
396
+ arrowX: 0,
397
+ arrowY: 0,
398
+ scaleX: 1,
399
+ scaleY: 1,
400
+ align: o[n] || {}
401
+ }), f = $(d, 2), h = f[0], D = f[1], g = t.useRef(0), y = t.useMemo(function() {
402
+ return a ? da(a) : [];
403
+ }, [a]), c = t.useRef({}), m = function() {
404
+ c.current = {};
405
+ };
406
+ e || m();
407
+ var N = Ke(function() {
408
+ if (a && r && e) {
409
+ let re = function(er, We) {
410
+ var Re = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : yr, dr = M.x + er, Rr = M.y + We, na = dr + he, ta = Rr + O, oa = Math.max(dr, Re.left), i = Math.max(Rr, Re.top), l = Math.min(na, Re.right), L = Math.min(ta, Re.bottom);
411
+ return Math.max(0, (l - oa) * (L - i));
412
+ }, Wr = function() {
413
+ Ie = M.y + k, Ue = Ie + O, De = M.x + P, Oe = De + he;
414
+ };
415
+ var T, C, x, E, v = a, ae = v.ownerDocument, ve = gr(v), ne = ve.getComputedStyle(v), de = ne.width, te = ne.height, U = ne.position, Me = v.style.left, fe = v.style.top, Pe = v.style.right, Q = v.style.bottom, Se = v.style.overflow, B = A(A({}, o[n]), u), F = ae.createElement("div");
416
+ (T = v.parentElement) === null || T === void 0 || T.appendChild(F), F.style.left = "".concat(v.offsetLeft, "px"), F.style.top = "".concat(v.offsetTop, "px"), F.style.position = U, F.style.height = "".concat(v.offsetHeight, "px"), F.style.width = "".concat(v.offsetWidth, "px"), v.style.left = "0", v.style.top = "0", v.style.right = "auto", v.style.bottom = "auto", v.style.overflow = "hidden";
417
+ var w;
418
+ if (Array.isArray(r))
419
+ w = {
420
+ x: r[0],
421
+ y: r[1],
422
+ width: 0,
423
+ height: 0
424
+ };
425
+ else {
426
+ var Be, oe, V = r.getBoundingClientRect();
427
+ V.x = (Be = V.x) !== null && Be !== void 0 ? Be : V.left, V.y = (oe = V.y) !== null && oe !== void 0 ? oe : V.top, w = {
428
+ x: V.x,
429
+ y: V.y,
430
+ width: V.width,
431
+ height: V.height
432
+ };
433
+ }
434
+ var M = v.getBoundingClientRect();
435
+ M.x = (C = M.x) !== null && C !== void 0 ? C : M.left, M.y = (x = M.y) !== null && x !== void 0 ? x : M.top;
436
+ var G = ae.documentElement, Ve = G.clientWidth, nr = G.clientHeight, me = G.scrollWidth, J = G.scrollHeight, Le = G.scrollTop, Fe = G.scrollLeft, O = M.height, he = M.width, ie = w.height, I = w.width, tr = {
437
+ left: 0,
438
+ top: 0,
439
+ right: Ve,
440
+ bottom: nr
441
+ }, $e = {
442
+ left: -Fe,
443
+ top: -Le,
444
+ right: me - Fe,
445
+ bottom: J - Le
446
+ }, Y = B.htmlRegion, ge = "visible", je = "visibleFirst";
447
+ Y !== "scroll" && Y !== je && (Y = ge);
448
+ var j = Y === je, Vr = Ma($e, y), S = Ma(tr, y), yr = Y === ge ? S : Vr, qe = j ? S : yr;
449
+ v.style.left = "auto", v.style.top = "auto", v.style.right = "0", v.style.bottom = "0";
450
+ var q = v.getBoundingClientRect();
451
+ v.style.left = Me, v.style.top = fe, v.style.right = Pe, v.style.bottom = Q, v.style.overflow = Se, (E = v.parentElement) === null || E === void 0 || E.removeChild(F);
452
+ var Ee = hr(Math.round(he / parseFloat(de) * 1e3) / 1e3), ke = hr(Math.round(O / parseFloat(te) * 1e3) / 1e3);
453
+ if (Ee === 0 || ke === 0 || ca(r) && !Ua(r))
454
+ return;
455
+ var Fr = B.offset, jr = B.targetOffset, wr = Sa(M, Fr), ue = $(wr, 2), le = ue[0], X = ue[1], qr = Sa(w, jr), _e = $(qr, 2), p = _e[0], ze = _e[1];
456
+ w.x -= p, w.y -= ze;
457
+ var _r = B.points || [], br = $(_r, 2), Ar = br[0], Ir = br[1], ye = ka(Ir), K = ka(Ar), or = rr(w, ye), _ = rr(M, K), Te = A({}, B), P = or.x - _.x + le, k = or.y - _.y + X, se = re(P, k), Ae = re(P, k, S), ir = rr(w, ["t", "l"]), ee = rr(M, ["t", "l"]), Cr = rr(w, ["b", "r"]), ur = rr(M, ["b", "r"]), xe = B.overflow || {}, Mr = xe.adjustX, Ur = xe.adjustY, lr = xe.shiftX, Ze = xe.shiftY, sr = function(We) {
458
+ return typeof We == "boolean" ? We : We >= 0;
459
+ }, Ie, Ue, De, Oe;
460
+ Wr();
461
+ var Qe = sr(Ur), Pr = K[0] === ye[0];
462
+ if (Qe && K[0] === "t" && (Ue > qe.bottom || c.current.bt)) {
463
+ var H = k;
464
+ Pr ? H -= O - ie : H = ir.y - ur.y - X;
465
+ var Sr = re(P, H), Qr = re(P, H, S);
466
+ // Of course use larger one
467
+ Sr > se || Sr === se && (!j || // Choose recommend one
468
+ Qr >= Ae) ? (c.current.bt = !0, k = H, X = -X, Te.points = [He(K, 0), He(ye, 0)]) : c.current.bt = !1;
469
+ }
470
+ if (Qe && K[0] === "b" && (Ie < qe.top || c.current.tb)) {
471
+ var Ge = k;
472
+ Pr ? Ge += O - ie : Ge = Cr.y - ee.y - X;
473
+ var kr = re(P, Ge), Gr = re(P, Ge, S);
474
+ // Of course use larger one
475
+ kr > se || kr === se && (!j || // Choose recommend one
476
+ Gr >= Ae) ? (c.current.tb = !0, k = Ge, X = -X, Te.points = [He(K, 0), He(ye, 0)]) : c.current.tb = !1;
477
+ }
478
+ var Dr = sr(Mr), Nr = K[1] === ye[1];
479
+ if (Dr && K[1] === "l" && (Oe > qe.right || c.current.rl)) {
480
+ var Je = P;
481
+ Nr ? Je -= he - I : Je = ir.x - ur.x - le;
482
+ var Lr = re(Je, k), Ye = re(Je, k, S);
483
+ // Of course use larger one
484
+ Lr > se || Lr === se && (!j || // Choose recommend one
485
+ Ye >= Ae) ? (c.current.rl = !0, P = Je, le = -le, Te.points = [He(K, 1), He(ye, 1)]) : c.current.rl = !1;
486
+ }
487
+ if (Dr && K[1] === "r" && (De < qe.left || c.current.lr)) {
488
+ var Ne = P;
489
+ Nr ? Ne += he - I : Ne = Cr.x - ee.x - le;
490
+ var $r = re(Ne, k), Er = re(Ne, k, S);
491
+ // Of course use larger one
492
+ $r > se || $r === se && (!j || // Choose recommend one
493
+ Er >= Ae) ? (c.current.lr = !0, P = Ne, le = -le, Te.points = [He(K, 1), He(ye, 1)]) : c.current.lr = !1;
494
+ }
495
+ Wr();
496
+ var we = lr === !0 ? 0 : lr;
497
+ typeof we == "number" && (De < S.left && (P -= De - S.left - le, w.x + I < S.left + we && (P += w.x - S.left + I - we)), Oe > S.right && (P -= Oe - S.right - le, w.x > S.right - we && (P += w.x - S.right + we)));
498
+ var ce = Ze === !0 ? 0 : Ze;
499
+ typeof ce == "number" && (Ie < S.top && (k -= Ie - S.top - X, w.y + ie < S.top + ce && (k += w.y - S.top + ie - ce)), Ue > S.bottom && (k -= Ue - S.bottom - X, w.y > S.bottom - ce && (k += w.y - S.bottom + ce)));
500
+ var Xe = M.x + P, pe = Xe + he, be = M.y + k, Jr = be + O, zr = w.x, Kr = zr + I, cr = w.y, Zr = cr + ie, Or = Math.max(Xe, zr), Yr = Math.min(pe, Kr), Tr = (Or + Yr) / 2, Xr = Tr - Xe, pr = Math.max(be, cr), xr = Math.min(Jr, Zr), ea = (pr + xr) / 2, ra = ea - be;
501
+ s == null || s(a, Te);
502
+ var vr = q.right - M.x - (P + M.width), Ce = q.bottom - M.y - (k + M.height);
503
+ Ee === 1 && (P = Math.round(P), vr = Math.round(vr)), ke === 1 && (k = Math.round(k), Ce = Math.round(Ce));
504
+ var aa = {
505
+ ready: !0,
506
+ offsetX: P / Ee,
507
+ offsetY: k / ke,
508
+ offsetR: vr / Ee,
509
+ offsetB: Ce / ke,
510
+ arrowX: Xr / Ee,
511
+ arrowY: ra / ke,
512
+ scaleX: Ee,
513
+ scaleY: ke,
514
+ align: Te
515
+ };
516
+ D(aa);
517
+ }
518
+ }), b = function() {
519
+ g.current += 1;
520
+ var C = g.current;
521
+ Promise.resolve().then(function() {
522
+ g.current === C && N();
523
+ });
524
+ }, W = function() {
525
+ D(function(C) {
526
+ return A(A({}, C), {}, {
527
+ ready: !1
528
+ });
529
+ });
530
+ };
531
+ return Z(W, [n]), Z(function() {
532
+ e || W();
533
+ }, [e]), [h.ready, h.offsetX, h.offsetY, h.offsetR, h.offsetB, h.arrowX, h.arrowY, h.scaleX, h.scaleY, h.align, b];
534
+ }
535
+ function ln(e, a, r, n, o) {
536
+ Z(function() {
537
+ if (e && a && r) {
538
+ let g = function() {
539
+ n(), o();
540
+ };
541
+ var u = a, s = r, d = da(u), f = da(s), h = gr(s), D = new Set([h].concat(sa(d), sa(f)));
542
+ return D.forEach(function(y) {
543
+ y.addEventListener("scroll", g, {
544
+ passive: !0
545
+ });
546
+ }), h.addEventListener("resize", g, {
547
+ passive: !0
548
+ }), n(), function() {
549
+ D.forEach(function(y) {
550
+ y.removeEventListener("scroll", g), h.removeEventListener("resize", g);
551
+ });
552
+ };
553
+ }
554
+ }, [e, a, r]);
555
+ }
556
+ function sn(e, a, r, n, o, u, s, d) {
557
+ var f = t.useRef(e);
558
+ f.current = e;
559
+ var h = t.useRef(!1);
560
+ t.useEffect(function() {
561
+ if (a && n && (!o || u)) {
562
+ var g = function() {
563
+ h.current = !1;
564
+ }, y = function(x) {
565
+ var E;
566
+ f.current && !s(((E = x.composedPath) === null || E === void 0 || (E = E.call(x)) === null || E === void 0 ? void 0 : E[0]) || x.target) && !h.current && d(!1);
567
+ }, c = gr(n);
568
+ c.addEventListener("pointerdown", g, !0), c.addEventListener("mousedown", y, !0), c.addEventListener("contextmenu", y, !0);
569
+ var m = va(r);
570
+ if (m && (m.addEventListener("mousedown", y, !0), m.addEventListener("contextmenu", y, !0)), process.env.NODE_ENV !== "production") {
571
+ var N, b, W = r == null || (N = r.getRootNode) === null || N === void 0 ? void 0 : N.call(r), T = (b = n.getRootNode) === null || b === void 0 ? void 0 : b.call(n);
572
+ Va(W === T, "trigger element and popup element should in same shadow root.");
573
+ }
574
+ return function() {
575
+ c.removeEventListener("pointerdown", g, !0), c.removeEventListener("mousedown", y, !0), c.removeEventListener("contextmenu", y, !0), m && (m.removeEventListener("mousedown", y, !0), m.removeEventListener("contextmenu", y, !0));
576
+ };
577
+ }
578
+ }, [a, r, n, o, u]);
579
+ function D() {
580
+ h.current = !0;
581
+ }
582
+ return D;
583
+ }
584
+ var cn = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
585
+ function vn() {
586
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : fa, a = /* @__PURE__ */ t.forwardRef(function(r, n) {
587
+ var o = r.prefixCls, u = o === void 0 ? "rc-trigger-popup" : o, s = r.children, d = r.action, f = d === void 0 ? "hover" : d, h = r.showAction, D = r.hideAction, g = r.popupVisible, y = r.defaultPopupVisible, c = r.onPopupVisibleChange, m = r.afterPopupVisibleChange, N = r.mouseEnterDelay, b = r.mouseLeaveDelay, W = b === void 0 ? 0.1 : b, T = r.focusDelay, C = r.blurDelay, x = r.mask, E = r.maskClosable, v = E === void 0 ? !0 : E, ae = r.getPopupContainer, ve = r.forceRender, ne = r.autoDestroy, de = r.destroyPopupOnHide, te = r.popup, U = r.popupClassName, Me = r.popupStyle, fe = r.popupPlacement, Pe = r.builtinPlacements, Q = Pe === void 0 ? {} : Pe, Se = r.popupAlign, B = r.zIndex, F = r.stretch, w = r.getPopupClassNameFromAlign, Be = r.fresh, oe = r.alignPoint, V = r.onPopupClick, M = r.onPopupAlign, G = r.arrow, Ve = r.popupMotion, nr = r.maskMotion, me = r.popupTransitionName, J = r.popupAnimation, Le = r.maskTransitionName, Fe = r.maskAnimation, O = r.className, he = r.getTriggerDOMNode, ie = Fa(r, cn), I = ne || de || !1, tr = t.useState(!1), $e = $(tr, 2), Y = $e[0], ge = $e[1];
588
+ Z(function() {
589
+ ge(en());
590
+ }, []);
591
+ var je = t.useRef({}), j = t.useContext(wa), Vr = t.useMemo(function() {
592
+ return {
593
+ registerSubPopup: function(l, L) {
594
+ je.current[l] = L, j == null || j.registerSubPopup(l, L);
595
+ }
596
+ };
597
+ }, [j]), S = Ia(), yr = t.useState(null), qe = $(yr, 2), q = qe[0], Ee = qe[1], ke = t.useRef(null), Fr = Ke(function(i) {
598
+ ke.current = i, ca(i) && q !== i && Ee(i), j == null || j.registerSubPopup(S, i);
599
+ }), jr = t.useState(null), wr = $(jr, 2), ue = wr[0], le = wr[1], X = t.useRef(null), qr = Ke(function(i) {
600
+ ca(i) && ue !== i && (le(i), X.current = i);
601
+ }), _e = t.Children.only(s), p = (_e == null ? void 0 : _e.props) || {}, ze = {}, _r = Ke(function(i) {
602
+ var l, L, R = ue;
603
+ return (R == null ? void 0 : R.contains(i)) || ((l = va(R)) === null || l === void 0 ? void 0 : l.host) === i || i === R || (q == null ? void 0 : q.contains(i)) || ((L = va(q)) === null || L === void 0 ? void 0 : L.host) === i || i === q || Object.values(je.current).some(function(z) {
604
+ return (z == null ? void 0 : z.contains(i)) || i === z;
605
+ });
606
+ }), br = Ca(u, Ve, J, me), Ar = Ca(u, nr, Fe, Le), Ir = t.useState(y || !1), ye = $(Ir, 2), K = ye[0], or = ye[1], _ = g ?? K, Te = Ke(function(i) {
607
+ g === void 0 && or(i);
608
+ });
609
+ Z(function() {
610
+ or(g || !1);
611
+ }, [g]);
612
+ var P = t.useRef(_);
613
+ P.current = _;
614
+ var k = t.useRef([]);
615
+ k.current = [];
616
+ var se = Ke(function(i) {
617
+ var l;
618
+ Te(i), ((l = k.current[k.current.length - 1]) !== null && l !== void 0 ? l : _) !== i && (k.current.push(i), c == null || c(i));
619
+ }), Ae = t.useRef(), ir = function() {
620
+ clearTimeout(Ae.current);
621
+ }, ee = function(l) {
622
+ var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
623
+ ir(), L === 0 ? se(l) : Ae.current = setTimeout(function() {
624
+ se(l);
625
+ }, L * 1e3);
626
+ };
627
+ t.useEffect(function() {
628
+ return ir;
629
+ }, []);
630
+ var Cr = t.useState(!1), ur = $(Cr, 2), xe = ur[0], Mr = ur[1];
631
+ Z(function(i) {
632
+ (!i || _) && Mr(!0);
633
+ }, [_]);
634
+ var Ur = t.useState(null), lr = $(Ur, 2), Ze = lr[0], sr = lr[1], Ie = t.useState(null), Ue = $(Ie, 2), De = Ue[0], Oe = Ue[1], Qe = function(l) {
635
+ Oe([l.clientX, l.clientY]);
636
+ }, Pr = un(_, q, oe && De !== null ? De : ue, fe, Q, Se, M), H = $(Pr, 11), Sr = H[0], Qr = H[1], Ge = H[2], kr = H[3], Gr = H[4], Dr = H[5], Nr = H[6], Je = H[7], Lr = H[8], Ye = H[9], Ne = H[10], $r = nn(Y, f, h, D), Er = $($r, 2), we = Er[0], ce = Er[1], Xe = we.has("click"), pe = ce.has("click") || ce.has("contextMenu"), be = Ke(function() {
637
+ xe || Ne();
638
+ }), Jr = function() {
639
+ P.current && oe && pe && ee(!1);
640
+ };
641
+ ln(_, ue, q, be, Jr), Z(function() {
642
+ be();
643
+ }, [De, fe]), Z(function() {
644
+ _ && !(Q != null && Q[fe]) && be();
645
+ }, [JSON.stringify(Se)]);
646
+ var zr = t.useMemo(function() {
647
+ var i = on(Q, u, Ye, oe);
648
+ return ar(i, w == null ? void 0 : w(Ye));
649
+ }, [Ye, w, Q, u, oe]);
650
+ t.useImperativeHandle(n, function() {
651
+ return {
652
+ nativeElement: X.current,
653
+ popupElement: ke.current,
654
+ forceAlign: be
655
+ };
656
+ });
657
+ var Kr = t.useState(0), cr = $(Kr, 2), Zr = cr[0], Or = cr[1], Yr = t.useState(0), Tr = $(Yr, 2), Xr = Tr[0], pr = Tr[1], xr = function() {
658
+ if (F && ue) {
659
+ var l = ue.getBoundingClientRect();
660
+ Or(l.width), pr(l.height);
661
+ }
662
+ }, ea = function() {
663
+ xr(), be();
664
+ }, ra = function(l) {
665
+ Mr(!1), Ne(), m == null || m(l);
666
+ }, vr = function() {
667
+ return new Promise(function(l) {
668
+ xr(), sr(function() {
669
+ return l;
670
+ });
671
+ });
672
+ };
673
+ Z(function() {
674
+ Ze && (Ne(), Ze(), sr(null));
675
+ }, [Ze]);
676
+ function Ce(i, l, L, R) {
677
+ ze[i] = function(z) {
678
+ var Hr;
679
+ R == null || R(z), ee(l, L);
680
+ for (var ia = arguments.length, ma = new Array(ia > 1 ? ia - 1 : 0), Br = 1; Br < ia; Br++)
681
+ ma[Br - 1] = arguments[Br];
682
+ (Hr = p[i]) === null || Hr === void 0 || Hr.call.apply(Hr, [p, z].concat(ma));
683
+ };
684
+ }
685
+ (Xe || pe) && (ze.onClick = function(i) {
686
+ var l;
687
+ P.current && pe ? ee(!1) : !P.current && Xe && (Qe(i), ee(!0));
688
+ for (var L = arguments.length, R = new Array(L > 1 ? L - 1 : 0), z = 1; z < L; z++)
689
+ R[z - 1] = arguments[z];
690
+ (l = p.onClick) === null || l === void 0 || l.call.apply(l, [p, i].concat(R));
691
+ });
692
+ var aa = sn(_, pe, ue, q, x, v, _r, ee), re = we.has("hover"), Wr = ce.has("hover"), er, We;
693
+ re && (Ce("onMouseEnter", !0, N, function(i) {
694
+ Qe(i);
695
+ }), Ce("onPointerEnter", !0, N, function(i) {
696
+ Qe(i);
697
+ }), er = function(l) {
698
+ (_ || xe) && q !== null && q !== void 0 && q.contains(l.target) && ee(!0, N);
699
+ }, oe && (ze.onMouseMove = function(i) {
700
+ var l;
701
+ (l = p.onMouseMove) === null || l === void 0 || l.call(p, i);
702
+ })), Wr && (Ce("onMouseLeave", !1, W), Ce("onPointerLeave", !1, W), We = function() {
703
+ ee(!1, W);
704
+ }), we.has("focus") && Ce("onFocus", !0, T), ce.has("focus") && Ce("onBlur", !1, C), we.has("contextMenu") && (ze.onContextMenu = function(i) {
705
+ var l;
706
+ P.current && ce.has("contextMenu") ? ee(!1) : (Qe(i), ee(!0)), i.preventDefault();
707
+ for (var L = arguments.length, R = new Array(L > 1 ? L - 1 : 0), z = 1; z < L; z++)
708
+ R[z - 1] = arguments[z];
709
+ (l = p.onContextMenu) === null || l === void 0 || l.call.apply(l, [p, i].concat(R));
710
+ }), O && (ze.className = ar(p.className, O));
711
+ var Re = A(A({}, p), ze), dr = {}, Rr = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
712
+ Rr.forEach(function(i) {
713
+ ie[i] && (dr[i] = function() {
714
+ for (var l, L = arguments.length, R = new Array(L), z = 0; z < L; z++)
715
+ R[z] = arguments[z];
716
+ (l = Re[i]) === null || l === void 0 || l.call.apply(l, [Re].concat(R)), ie[i].apply(ie, R);
717
+ });
718
+ });
719
+ var na = /* @__PURE__ */ t.cloneElement(_e, A(A({}, Re), dr)), ta = {
720
+ x: Dr,
721
+ y: Nr
722
+ }, oa = G ? A({}, G !== !0 ? G : {}) : null;
723
+ return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(za, {
724
+ disabled: !_,
725
+ ref: qr,
726
+ onResize: ea
727
+ }, /* @__PURE__ */ t.createElement(Ha, {
728
+ getTriggerDOMNode: he
729
+ }, na)), /* @__PURE__ */ t.createElement(wa.Provider, {
730
+ value: Vr
731
+ }, /* @__PURE__ */ t.createElement(Ra, {
732
+ portal: e,
733
+ ref: Fr,
734
+ prefixCls: u,
735
+ popup: te,
736
+ className: ar(U, zr),
737
+ style: Me,
738
+ target: ue,
739
+ onMouseEnter: er,
740
+ onMouseLeave: We,
741
+ onPointerEnter: er,
742
+ zIndex: B,
743
+ open: _,
744
+ keepDom: xe,
745
+ fresh: Be,
746
+ onClick: V,
747
+ onPointerDownCapture: aa,
748
+ mask: x,
749
+ motion: br,
750
+ maskMotion: Ar,
751
+ onVisibleChanged: ra,
752
+ onPrepare: vr,
753
+ forceRender: ve,
754
+ autoDestroy: I,
755
+ getPopupContainer: ae,
756
+ align: Ye,
757
+ arrow: oa,
758
+ arrowPos: ta,
759
+ ready: Sr,
760
+ offsetX: Qr,
761
+ offsetY: Ge,
762
+ offsetR: kr,
763
+ offsetB: Gr,
764
+ onAlign: be,
765
+ stretch: F,
766
+ targetWidth: Zr / Je,
767
+ targetHeight: Xr / Lr
768
+ })));
769
+ });
770
+ return process.env.NODE_ENV !== "production" && (a.displayName = "Trigger"), a;
771
+ }
772
+ const Cn = vn(fa);
773
+ export {
774
+ fa as P,
775
+ Cn as T,
776
+ en as a,
777
+ Ka as b,
778
+ bn as g,
779
+ wn as i
780
+ };