@gobolt/genesis 0.0.10 → 0.0.11

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 (415) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-nCNB0J1E.js +192 -0
  3. package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
  4. package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
  5. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  6. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  7. package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
  8. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
  9. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
  10. package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
  11. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  12. package/dist/Keyframes-sPZXYuXt.js +17 -0
  13. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  14. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  15. package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
  16. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  17. package/dist/Skeleton-B3vg9CbL.js +560 -0
  18. package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
  19. package/dist/Typography-DqI7RslA.js +705 -0
  20. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  21. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  22. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  23. package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
  24. package/dist/clsx-OuTLNxxd.js +16 -0
  25. package/dist/components/Avatar/Avatar.d.ts +12 -0
  26. package/dist/components/Avatar/Avatar.js +61 -0
  27. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  28. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  30. package/dist/components/Avatar/index.d.ts +2 -0
  31. package/dist/components/Avatar/index.js +4 -0
  32. package/dist/components/Avatar/styles.d.ts +18 -0
  33. package/dist/components/Avatar/styles.js +326 -0
  34. package/dist/components/Badge/Badge.d.ts +5 -3
  35. package/dist/components/Badge/Badge.js +67 -100
  36. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  37. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  38. package/dist/components/Badge/styles.d.ts +12 -3
  39. package/dist/components/Badge/styles.js +30 -27
  40. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  41. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  42. package/dist/components/Breadcrumb/styles.js +239 -2260
  43. package/dist/components/Button/Button.d.ts +4 -3
  44. package/dist/components/Button/Button.js +10 -6
  45. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  46. package/dist/components/Button/__tests__/Button.test.js +1 -1
  47. package/dist/components/Button/styles.d.ts +2 -2
  48. package/dist/components/Button/styles.js +20 -17
  49. package/dist/components/Card/Card.d.ts +9 -0
  50. package/dist/components/Card/Card.js +16 -0
  51. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  52. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  53. package/dist/components/Card/__tests__/Card.test.js +16 -0
  54. package/dist/components/Card/index.d.ts +2 -0
  55. package/dist/components/Card/index.js +4 -0
  56. package/dist/components/Card/styles.d.ts +16 -0
  57. package/dist/components/Card/styles.js +12 -0
  58. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  59. package/dist/components/Checkbox/Checkbox.js +28 -16
  60. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  61. package/dist/components/Checkbox/styles.js +22 -457
  62. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  63. package/dist/components/Dashboard/Dashboard.js +5 -0
  64. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  66. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  67. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  73. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  75. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  77. package/dist/components/Dashboard/index.d.ts +2 -0
  78. package/dist/components/Dashboard/index.js +4 -0
  79. package/dist/components/Dashboard/styles.d.ts +14 -0
  80. package/dist/components/Dashboard/styles.js +11 -0
  81. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  82. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  83. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  84. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  85. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  86. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  87. package/dist/components/ErrorBoundary/index.js +4 -0
  88. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  89. package/dist/components/ErrorBoundary/styles.js +11 -0
  90. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  91. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  92. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  93. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  94. package/dist/components/Form/Form.js +3 -3
  95. package/dist/components/Form/__stories__/FormStory.js +127 -50
  96. package/dist/components/Form/__tests__/form.test.js +2 -2
  97. package/dist/components/Form/index.js +1 -1
  98. package/dist/components/Form/styles.js +1 -1
  99. package/dist/components/Glyph/Glyph.d.ts +4 -0
  100. package/dist/components/Glyph/Glyph.js +9 -0
  101. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  102. package/dist/components/Glyph/index.d.ts +2 -0
  103. package/dist/components/Glyph/index.js +4 -0
  104. package/dist/components/Glyph/styles.d.ts +14 -0
  105. package/dist/components/Glyph/styles.js +11 -0
  106. package/dist/components/Input/Input.d.ts +1 -2
  107. package/dist/components/Input/Input.js +14 -10
  108. package/dist/components/Input/__tests__/Input.test.js +1 -1
  109. package/dist/components/Input/styles.js +58 -466
  110. package/dist/components/Layout/Content/Content.d.ts +11 -0
  111. package/dist/components/Layout/Content/Content.js +32 -0
  112. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  113. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  114. package/dist/components/Layout/Content/index.d.ts +2 -0
  115. package/dist/components/Layout/Content/index.js +4 -0
  116. package/dist/components/Layout/Content/styles.d.ts +11 -0
  117. package/dist/components/Layout/Content/styles.js +16 -0
  118. package/dist/components/Layout/Layout.d.ts +8 -0
  119. package/dist/components/Layout/Layout.js +6 -0
  120. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  121. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  122. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  123. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  124. package/dist/components/Layout/MainLayout/index.js +4 -0
  125. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  126. package/dist/components/Layout/MainLayout/styles.js +69 -0
  127. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  128. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  129. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  130. package/dist/components/Layout/index.d.ts +2 -0
  131. package/dist/components/Layout/index.js +4 -0
  132. package/dist/components/Message/Message.d.ts +6 -4
  133. package/dist/components/Message/Message.js +70 -43
  134. package/dist/components/Message/__tests__/Message.test.js +1 -1
  135. package/dist/components/Message/styles.d.ts +1 -0
  136. package/dist/components/Message/styles.js +15 -11
  137. package/dist/components/Notification/Notification.js +145 -120
  138. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  139. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  140. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  141. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  142. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  143. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  144. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  145. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  146. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  147. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  148. package/dist/components/Notification/styles.d.ts +1 -1
  149. package/dist/components/Notification/styles.js +1 -1
  150. package/dist/components/Popover/Popover.d.ts +10 -0
  151. package/dist/components/Popover/Popover.js +21 -0
  152. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  153. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  154. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  155. package/dist/components/Popover/index.d.ts +2 -0
  156. package/dist/components/Popover/index.js +4 -0
  157. package/dist/components/Popover/styles.d.ts +15 -0
  158. package/dist/components/Popover/styles.js +6 -0
  159. package/dist/components/Progress/Progress.d.ts +18 -0
  160. package/dist/components/Progress/Progress.js +91 -0
  161. package/dist/components/Progress/Progress.util.d.ts +4 -0
  162. package/dist/components/Progress/Progress.util.js +62 -0
  163. package/dist/components/Progress/ProgressText.d.ts +11 -0
  164. package/dist/components/Progress/ProgressText.js +67 -0
  165. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  166. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  167. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  168. package/dist/components/Progress/index.d.ts +2 -0
  169. package/dist/components/Progress/index.js +4 -0
  170. package/dist/components/Progress/styles.d.ts +17 -0
  171. package/dist/components/Progress/styles.js +793 -0
  172. package/dist/components/Radio/Radio.js +22 -6
  173. package/dist/components/Radio/RadioGroup.js +1 -1
  174. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  175. package/dist/components/Radio/index.d.ts +1 -0
  176. package/dist/components/Row/Row.d.ts +14 -0
  177. package/dist/components/Row/Row.js +38 -0
  178. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  179. package/dist/components/Row/RowActions/RowActions.js +59 -0
  180. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  181. package/dist/components/Row/RowActions/styles.js +32 -0
  182. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  183. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  184. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  185. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  186. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  187. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  188. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  189. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  190. package/dist/components/Row/__tests__/Row.test.js +16 -0
  191. package/dist/components/Row/index.d.ts +2 -0
  192. package/dist/components/Row/index.js +4 -0
  193. package/dist/components/Row/styles.d.ts +15 -0
  194. package/dist/components/Row/styles.js +15 -0
  195. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  196. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  197. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  198. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  199. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  200. package/dist/components/SegmentedControls/index.d.ts +2 -0
  201. package/dist/components/SegmentedControls/index.js +4 -0
  202. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  203. package/dist/components/SegmentedControls/styles.js +511 -0
  204. package/dist/components/Select/Select.d.ts +2 -4
  205. package/dist/components/Select/Select.js +12 -11
  206. package/dist/components/Select/__tests__/Select.test.js +1 -1
  207. package/dist/components/Select/styles.js +39 -3654
  208. package/dist/components/Shapes/Shapes.d.ts +6 -0
  209. package/dist/components/Shapes/Shapes.js +8 -0
  210. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  211. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  212. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  213. package/dist/components/Shapes/index.d.ts +2 -0
  214. package/dist/components/Shapes/index.js +4 -0
  215. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  216. package/dist/components/Shapes/variants/Circle.js +23 -0
  217. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  218. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  219. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  220. package/dist/components/Shapes/variants/Triangle.js +23 -0
  221. package/dist/components/Switch/Switch.d.ts +9 -0
  222. package/dist/components/Switch/Switch.js +22 -0
  223. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  224. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  225. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  226. package/dist/components/Switch/index.d.ts +2 -0
  227. package/dist/components/Switch/index.js +4 -0
  228. package/dist/components/Switch/styles.d.ts +9 -0
  229. package/dist/components/Switch/styles.js +456 -0
  230. package/dist/components/Table/Table.d.ts +15 -0
  231. package/dist/components/Table/Table.js +23 -0
  232. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  233. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  234. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  235. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  236. package/dist/components/Table/__tests__/Table.test.js +34 -0
  237. package/dist/components/Table/index.d.ts +2 -0
  238. package/dist/components/Table/index.js +4 -0
  239. package/dist/components/Table/styles.d.ts +8 -0
  240. package/dist/components/Table/styles.js +6 -0
  241. package/dist/components/Tabs/Tabs.d.ts +10 -0
  242. package/dist/components/Tabs/Tabs.js +23 -0
  243. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  244. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  245. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  246. package/dist/components/Tabs/index.d.ts +2 -0
  247. package/dist/components/Tabs/index.js +4 -0
  248. package/dist/components/Tabs/styles.d.ts +12 -0
  249. package/dist/components/Tabs/styles.js +102 -0
  250. package/dist/components/Tile/Tile.d.ts +10 -0
  251. package/dist/components/Tile/Tile.js +21 -0
  252. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  253. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  254. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  255. package/dist/components/Tile/index.d.ts +2 -0
  256. package/dist/components/Tile/index.js +4 -0
  257. package/dist/components/Tile/styles.d.ts +11 -0
  258. package/dist/components/Tile/styles.js +12 -0
  259. package/dist/components/Toast/Toast.js +23 -6
  260. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  261. package/dist/components/Toast/index.js +1 -1
  262. package/dist/components/Toast/styles.d.ts +0 -1
  263. package/dist/components/Toast/styles.js +14 -23
  264. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  265. package/dist/components/Tooltip/Tooltip.js +50 -0
  266. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  267. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  268. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  269. package/dist/components/Tooltip/index.d.ts +2 -0
  270. package/dist/components/Tooltip/index.js +4 -0
  271. package/dist/components/Tooltip/styles.d.ts +20 -0
  272. package/dist/components/Tooltip/styles.js +11 -0
  273. package/dist/components/Typography/Typography.d.ts +5 -1
  274. package/dist/components/Typography/Typography.js +2 -2
  275. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  276. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  277. package/dist/components/Typography/index.js +1 -1
  278. package/dist/components/Typography/styles.d.ts +1 -0
  279. package/dist/components/Typography/styles.js +53 -17
  280. package/dist/components/index.d.ts +31 -1
  281. package/dist/components/index.js +54 -24
  282. package/dist/constants/index.d.ts +4 -0
  283. package/dist/constants/index.js +4 -2
  284. package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
  285. package/dist/dropdown-zGGFIyJ_.js +2044 -0
  286. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  287. package/dist/genesis/GenesisThemeBreakdown.js +38 -22
  288. package/dist/genesis/styles.js +7 -2923
  289. package/dist/iconBase-LROS5hdG.js +112 -0
  290. package/dist/index-BRUI9igj.js +11 -0
  291. package/dist/index-BTGF--50.js +1845 -0
  292. package/dist/index-BW_7pvTr.js +538 -0
  293. package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
  294. package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
  295. package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
  296. package/dist/index-CdiHBmVe.js +445 -0
  297. package/dist/index-CodMmNWv.js +102 -0
  298. package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
  299. package/dist/index-D0P16DlX.js +286 -0
  300. package/dist/index-DLdU7Tpd.js +183 -0
  301. package/dist/index-DWUXwgXK.js +809 -0
  302. package/dist/index-DmZOkMjs.js +3628 -0
  303. package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
  304. package/dist/index-hoPiccJv.js +415 -0
  305. package/dist/index.js +61 -31
  306. package/dist/interface/address.d.ts +10 -0
  307. package/dist/interface/address.js +1 -0
  308. package/dist/interface/appointment.d.ts +57 -0
  309. package/dist/interface/appointment.js +5 -0
  310. package/dist/interface/appointmentV2.d.ts +65 -0
  311. package/dist/interface/appointmentV2.js +1 -0
  312. package/dist/interface/appointmentsState.d.ts +21 -0
  313. package/dist/interface/appointmentsState.js +1 -0
  314. package/dist/interface/common.d.ts +2 -0
  315. package/dist/interface/common.js +1 -0
  316. package/dist/interface/completionData.d.ts +18 -0
  317. package/dist/interface/completionData.js +1 -0
  318. package/dist/interface/deliveryPartner.d.ts +25 -0
  319. package/dist/interface/deliveryPartner.js +1 -0
  320. package/dist/interface/organization.d.ts +9 -0
  321. package/dist/interface/organization.js +1 -0
  322. package/dist/interface/pagination.d.ts +8 -0
  323. package/dist/interface/pagination.js +1 -0
  324. package/dist/interface/roles.d.ts +9 -0
  325. package/dist/interface/roles.js +1 -0
  326. package/dist/interface/route.d.ts +73 -0
  327. package/dist/interface/route.js +1 -0
  328. package/dist/interface/routeAnalysis.d.ts +108 -0
  329. package/dist/interface/routeAnalysis.js +1 -0
  330. package/dist/interface/routeAutomationJob.d.ts +95 -0
  331. package/dist/interface/routeAutomationJob.js +10 -0
  332. package/dist/interface/routeAutomationLog.d.ts +10 -0
  333. package/dist/interface/routeAutomationLog.js +1 -0
  334. package/dist/interface/routeEvent.d.ts +55 -0
  335. package/dist/interface/routeEvent.js +5 -0
  336. package/dist/interface/serviceArea.d.ts +18 -0
  337. package/dist/interface/serviceArea.js +1 -0
  338. package/dist/interface/util.d.ts +3 -0
  339. package/dist/interface/util.js +1 -0
  340. package/dist/interface/vehicle.d.ts +120 -0
  341. package/dist/interface/vehicle.js +1 -0
  342. package/dist/interface/workOrder.d.ts +22 -0
  343. package/dist/interface/workOrder.js +1 -0
  344. package/dist/isVisible-D3-B85BJ.js +22 -0
  345. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  346. package/dist/omit-B_u6A-HL.js +9 -0
  347. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  348. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  349. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  350. package/dist/providers/BreakpointThemeProvider.js +21 -0
  351. package/dist/providers/GenesisProvider.js +3 -3
  352. package/dist/providers/ToastProvider.js +22 -6
  353. package/dist/providers/index.js +1 -1
  354. package/dist/providers/useGenesis.js +2 -2
  355. package/dist/responsiveObserver-O1kw80RG.js +73 -0
  356. package/dist/setup-CKu7-AfI.js +24706 -0
  357. package/dist/setup.types-dBtAXXGp.js +8824 -0
  358. package/dist/shadow-BoMGMNn3.js +13 -0
  359. package/dist/styleChecker-Cotu61d0.js +21 -0
  360. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
  361. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  362. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  363. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  364. package/dist/styles/theme/genesis-theme.js +468 -263
  365. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  366. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  367. package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
  368. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  369. package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
  370. package/dist/styles-BSD221S5.js +289 -0
  371. package/dist/styles-D9iYILpv.js +9195 -0
  372. package/dist/test/setup.d.ts +2 -3
  373. package/dist/test/setup.js +87 -4
  374. package/dist/test/setup.types.d.ts +7 -0
  375. package/dist/test/setup.types.js +1 -0
  376. package/dist/toArray-DGvPoJP_.js +11 -0
  377. package/dist/useBreakpoint-CAMzKscx.js +22 -0
  378. package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
  379. package/dist/useId-D2tzlufo.js +26 -0
  380. package/dist/useLocale-DWRfeMSS.js +16 -0
  381. package/dist/useMergedState-BoELfaU9.js +23 -0
  382. package/dist/useSize-CPo2bUE3.js +9 -0
  383. package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
  384. package/dist/useZIndex-D81lkWy4.js +44 -0
  385. package/dist/utils/icon-util.d.ts +2 -0
  386. package/dist/utils/icon-util.js +95 -0
  387. package/package.json +26 -15
  388. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  389. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  390. package/dist/Typography-aGoDUl4R.js +0 -710
  391. package/dist/index-BZAhCB_K.js +0 -97
  392. package/dist/index-CfDY25LP.js +0 -873
  393. package/dist/isVisible-A-IfeFoT.js +0 -367
  394. package/dist/providers/ThemeProvider.d.ts +0 -9
  395. package/dist/providers/ThemeProvider.js +0 -21
  396. package/dist/setup-BvfREoHl.js +0 -33891
  397. package/dist/useLocale-DT-z_vQ6.js +0 -16
  398. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  399. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  400. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  401. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  402. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  403. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  404. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  405. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  406. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  407. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  408. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  409. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  410. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  411. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  412. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  413. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  414. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  415. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,809 @@
1
+ import { H as jr, h as cr, f as Z, x as $r, z as Tr, E as _r, o as xr, p as qr, I as Ir, y as Ur, a as Ke, J as fr } from "./index-ByspLxrB.js";
2
+ import { c as hn, a as L, u as zr, r as vr, w as Qr, e as rn, d as Wr, _ as q, j as Jr, g as Gr } from "./presets-Djh_L_6R.js";
3
+ import * as t from "react";
4
+ import { R as Hr } from "./index-CRotrkWm.js";
5
+ import { g as mr } from "./shadow-BoMGMNn3.js";
6
+ import { u as Kr } from "./useId-D2tzlufo.js";
7
+ import { i as Zr } from "./isVisible-D3-B85BJ.js";
8
+ const lr = () => ({
9
+ height: 0,
10
+ opacity: 0
11
+ }), wr = (e) => {
12
+ const {
13
+ scrollHeight: r
14
+ } = e;
15
+ return {
16
+ height: r,
17
+ opacity: 1
18
+ };
19
+ }, Or = (e) => ({
20
+ height: e ? e.offsetHeight : 0
21
+ }), sr = (e, r) => (r == null ? void 0 : r.deadline) === !0 || r.propertyName === "height", Pa = function() {
22
+ return {
23
+ motionName: `${arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : jr}-motion-collapse`,
24
+ onAppearStart: lr,
25
+ onEnterStart: lr,
26
+ onAppearActive: wr,
27
+ onEnterActive: wr,
28
+ onLeaveStart: Or,
29
+ onLeaveActive: lr,
30
+ onAppearEnd: sr,
31
+ onEnterEnd: sr,
32
+ onLeaveEnd: sr,
33
+ motionDeadline: 500
34
+ };
35
+ }, ka = (e, r, n) => n !== void 0 ? n : `${e}-${r}`, Yr = (e) => ({
36
+ animationDuration: e,
37
+ animationFillMode: "both"
38
+ }), Xr = (e) => ({
39
+ animationDuration: e,
40
+ animationFillMode: "both"
41
+ }), Da = function(e, r, n, a) {
42
+ const u = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? "&" : "";
43
+ return {
44
+ [`
45
+ ${u}${e}-enter,
46
+ ${u}${e}-appear
47
+ `]: Object.assign(Object.assign({}, Yr(a)), {
48
+ animationPlayState: "paused"
49
+ }),
50
+ [`${u}${e}-leave`]: Object.assign(Object.assign({}, Xr(a)), {
51
+ animationPlayState: "paused"
52
+ }),
53
+ [`
54
+ ${u}${e}-enter${e}-enter-active,
55
+ ${u}${e}-appear${e}-appear-active
56
+ `]: {
57
+ animationName: r,
58
+ animationPlayState: "running"
59
+ },
60
+ [`${u}${e}-leave${e}-leave-active`]: {
61
+ animationName: n,
62
+ animationPlayState: "running",
63
+ pointerEvents: "none"
64
+ }
65
+ };
66
+ };
67
+ var Rr = /* @__PURE__ */ t.createContext(null), br = [];
68
+ function pr(e, r) {
69
+ var n = t.useState(function() {
70
+ if (!hn())
71
+ return null;
72
+ var m = document.createElement("div");
73
+ return process.env.NODE_ENV !== "production" && r && m.setAttribute("data-debug", r), m;
74
+ }), a = L(n, 1), i = a[0], u = t.useRef(!1), s = t.useContext(Rr), f = t.useState(br), v = L(f, 2), h = v[0], D = v[1], g = s || (u.current ? void 0 : function(m) {
75
+ D(function(N) {
76
+ var b = [m].concat(cr(N));
77
+ return b;
78
+ });
79
+ });
80
+ function y() {
81
+ i.parentElement || document.body.appendChild(i), u.current = !0;
82
+ }
83
+ function d() {
84
+ var m;
85
+ (m = i.parentElement) === null || m === void 0 || m.removeChild(i), u.current = !1;
86
+ }
87
+ return Z(function() {
88
+ return e ? s ? s(y) : y() : d(), d;
89
+ }, [e]), Z(function() {
90
+ h.length && (h.forEach(function(m) {
91
+ return m();
92
+ }), D(br));
93
+ }, [h]), [i, g];
94
+ }
95
+ var dr;
96
+ function Br(e) {
97
+ var r = "rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)), n = document.createElement("div");
98
+ n.id = r;
99
+ var a = n.style;
100
+ a.position = "absolute", a.left = "0", a.top = "0", a.width = "100px", a.height = "100px", a.overflow = "scroll";
101
+ var i, u;
102
+ if (e) {
103
+ var s = getComputedStyle(e);
104
+ a.scrollbarColor = s.scrollbarColor, a.scrollbarWidth = s.scrollbarWidth;
105
+ var f = getComputedStyle(e, "::-webkit-scrollbar"), v = parseInt(f.width, 10), h = parseInt(f.height, 10);
106
+ try {
107
+ var D = v ? "width: ".concat(f.width, ";") : "", g = h ? "height: ".concat(f.height, ";") : "";
108
+ zr(`
109
+ #`.concat(r, `::-webkit-scrollbar {
110
+ `).concat(D, `
111
+ `).concat(g, `
112
+ }`), r);
113
+ } catch (m) {
114
+ console.error(m), i = v, u = h;
115
+ }
116
+ }
117
+ document.body.appendChild(n);
118
+ var y = e && i && !isNaN(i) ? i : n.offsetWidth - n.clientWidth, d = e && u && !isNaN(u) ? u : n.offsetHeight - n.clientHeight;
119
+ return document.body.removeChild(n), vr(r), {
120
+ width: y,
121
+ height: d
122
+ };
123
+ }
124
+ function Na(e) {
125
+ return typeof document > "u" ? 0 : (dr === void 0 && (dr = Br()), dr.width);
126
+ }
127
+ function ea(e) {
128
+ return typeof document > "u" || !e || !(e instanceof Element) ? {
129
+ width: 0,
130
+ height: 0
131
+ } : Br(e);
132
+ }
133
+ function na() {
134
+ return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
135
+ }
136
+ var ra = "rc-util-locker-".concat(Date.now()), Cr = 0;
137
+ function aa(e) {
138
+ var r = !!e, n = t.useState(function() {
139
+ return Cr += 1, "".concat(ra, "_").concat(Cr);
140
+ }), a = L(n, 1), i = a[0];
141
+ Z(function() {
142
+ if (r) {
143
+ var u = ea(document.body).width, s = na();
144
+ zr(`
145
+ html body {
146
+ overflow-y: hidden;
147
+ `.concat(s ? "width: calc(100% - ".concat(u, "px);") : "", `
148
+ }`), i);
149
+ } else
150
+ vr(i);
151
+ return function() {
152
+ vr(i);
153
+ };
154
+ }, [r, i]);
155
+ }
156
+ var ta = !1;
157
+ function ia(e) {
158
+ return ta;
159
+ }
160
+ var Mr = function(r) {
161
+ return r === !1 ? !1 : !hn() || !r ? null : typeof r == "string" ? document.querySelector(r) : typeof r == "function" ? r() : r;
162
+ }, gr = /* @__PURE__ */ t.forwardRef(function(e, r) {
163
+ var n = e.open, a = e.autoLock, i = e.getContainer, u = e.debug, s = e.autoDestroy, f = s === void 0 ? !0 : s, v = e.children, h = t.useState(n), D = L(h, 2), g = D[0], y = D[1], d = g || n;
164
+ process.env.NODE_ENV !== "production" && Qr(hn() || !n, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), t.useEffect(function() {
165
+ (f || n) && y(n);
166
+ }, [n, f]);
167
+ var m = t.useState(function() {
168
+ return Mr(i);
169
+ }), N = L(m, 2), b = N[0], W = N[1];
170
+ t.useEffect(function() {
171
+ var U = Mr(i);
172
+ W(U ?? null);
173
+ });
174
+ var x = pr(d && !b, u), C = L(x, 2), z = C[0], $ = C[1], c = b ?? z;
175
+ aa(a && n && hn() && (c === z || c === document.body));
176
+ var re = null;
177
+ if (v && $r(v) && r) {
178
+ var ce = v;
179
+ re = ce.ref;
180
+ }
181
+ var ae = Tr(re, r);
182
+ if (!d || !hn() || b === void 0)
183
+ return null;
184
+ var fe = c === !1 || ia(), te = v;
185
+ return r && (te = /* @__PURE__ */ t.cloneElement(v, {
186
+ ref: ae
187
+ })), /* @__PURE__ */ t.createElement(Rr.Provider, {
188
+ value: $
189
+ }, fe ? te : /* @__PURE__ */ _r.createPortal(te, c));
190
+ });
191
+ process.env.NODE_ENV !== "production" && (gr.displayName = "Portal");
192
+ const oa = function() {
193
+ if (typeof navigator > "u" || typeof window > "u")
194
+ return !1;
195
+ var e = navigator.userAgent || navigator.vendor || window.opera;
196
+ 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));
197
+ };
198
+ function ua(e) {
199
+ var r = e.prefixCls, n = e.align, a = e.arrow, i = e.arrowPos, u = a || {}, s = u.className, f = u.content, v = i.x, h = v === void 0 ? 0 : v, D = i.y, g = D === void 0 ? 0 : D, y = t.useRef();
200
+ if (!n || !n.points)
201
+ return null;
202
+ var d = {
203
+ position: "absolute"
204
+ };
205
+ if (n.autoArrow !== !1) {
206
+ var m = n.points[0], N = n.points[1], b = m[0], W = m[1], x = N[0], C = N[1];
207
+ b === x || !["t", "b"].includes(b) ? d.top = g : b === "t" ? d.top = 0 : d.bottom = 0, W === C || !["l", "r"].includes(W) ? d.left = h : W === "l" ? d.left = 0 : d.right = 0;
208
+ }
209
+ return /* @__PURE__ */ t.createElement("div", {
210
+ ref: y,
211
+ className: rn("".concat(r, "-arrow"), s),
212
+ style: d
213
+ }, f);
214
+ }
215
+ function la(e) {
216
+ var r = e.prefixCls, n = e.open, a = e.zIndex, i = e.mask, u = e.motion;
217
+ return i ? /* @__PURE__ */ t.createElement(xr, Wr({}, u, {
218
+ motionAppear: !0,
219
+ visible: n,
220
+ removeOnLeave: !0
221
+ }), function(s) {
222
+ var f = s.className;
223
+ return /* @__PURE__ */ t.createElement("div", {
224
+ style: {
225
+ zIndex: a
226
+ },
227
+ className: rn("".concat(r, "-mask"), f)
228
+ });
229
+ }) : null;
230
+ }
231
+ var Vr = /* @__PURE__ */ t.memo(function(e) {
232
+ var r = e.children;
233
+ return r;
234
+ }, function(e, r) {
235
+ return r.cache;
236
+ });
237
+ process.env.NODE_ENV !== "production" && (Vr.displayName = "PopupContent");
238
+ var Ar = /* @__PURE__ */ t.forwardRef(function(e, r) {
239
+ var n = e.popup, a = e.className, i = e.prefixCls, u = e.style, s = e.target, f = e.onVisibleChanged, v = e.open, h = e.keepDom, D = e.fresh, g = e.onClick, y = e.mask, d = e.arrow, m = e.arrowPos, N = e.align, b = e.motion, W = e.maskMotion, x = e.forceRender, C = e.getPopupContainer, z = e.autoDestroy, $ = e.portal, c = e.zIndex, re = e.onMouseEnter, ce = e.onMouseLeave, ae = e.onPointerEnter, fe = e.onPointerDownCapture, te = e.ready, U = e.offsetX, Me = e.offsetY, ve = e.offsetR, Se = e.offsetB, Q = e.onAlign, Pe = e.onPrepare, B = e.stretch, A = e.targetWidth, w = e.targetHeight, Be = typeof n == "function" ? n() : n, ie = v || h, V = (C == null ? void 0 : C.length) > 0, M = t.useState(!C || !V), J = L(M, 2), Ve = J[0], an = J[1];
240
+ if (Z(function() {
241
+ !Ve && V && s && an(!0);
242
+ }, [Ve, V, s]), !Ve)
243
+ return null;
244
+ var me = "auto", G = {
245
+ left: "-1000vw",
246
+ top: "-1000vh",
247
+ right: me,
248
+ bottom: me
249
+ };
250
+ if (te || !v) {
251
+ var Ee, Ae = N.points, O = N.dynamicInset || ((Ee = N._experimental) === null || Ee === void 0 ? void 0 : Ee.dynamicInset), he = O && Ae[0][1] === "r", oe = O && Ae[0][0] === "b";
252
+ he ? (G.right = ve, G.left = me) : (G.left = U, G.right = me), oe ? (G.bottom = Se, G.top = me) : (G.top = Me, G.bottom = me);
253
+ }
254
+ var I = {};
255
+ return B && (B.includes("height") && w ? I.height = w : B.includes("minHeight") && w && (I.minHeight = w), B.includes("width") && A ? I.width = A : B.includes("minWidth") && A && (I.minWidth = A)), v || (I.pointerEvents = "none"), /* @__PURE__ */ t.createElement($, {
256
+ open: x || ie,
257
+ getContainer: C && function() {
258
+ return C(s);
259
+ },
260
+ autoDestroy: z
261
+ }, /* @__PURE__ */ t.createElement(la, {
262
+ prefixCls: i,
263
+ open: v,
264
+ zIndex: c,
265
+ mask: y,
266
+ motion: W
267
+ }), /* @__PURE__ */ t.createElement(Hr, {
268
+ onResize: Q,
269
+ disabled: !v
270
+ }, function(tn) {
271
+ return /* @__PURE__ */ t.createElement(xr, Wr({
272
+ motionAppear: !0,
273
+ motionEnter: !0,
274
+ motionLeave: !0,
275
+ removeOnLeave: !1,
276
+ forceRender: x,
277
+ leavedClassName: "".concat(i, "-hidden")
278
+ }, b, {
279
+ onAppearPrepare: Pe,
280
+ onEnterPrepare: Pe,
281
+ visible: v,
282
+ onVisibleChanged: function(Y) {
283
+ var ge;
284
+ b == null || (ge = b.onVisibleChanged) === null || ge === void 0 || ge.call(b, Y), f(Y);
285
+ }
286
+ }), function(Le, Y) {
287
+ var ge = Le.className, Fe = Le.style, F = rn(i, ge, a);
288
+ return /* @__PURE__ */ t.createElement("div", {
289
+ ref: qr(tn, r, Y),
290
+ className: F,
291
+ style: q(q(q(q({
292
+ "--arrow-x": "".concat(m.x || 0, "px"),
293
+ "--arrow-y": "".concat(m.y || 0, "px")
294
+ }, G), I), Fe), {}, {
295
+ boxSizing: "border-box",
296
+ zIndex: c
297
+ }, u),
298
+ onMouseEnter: re,
299
+ onMouseLeave: ce,
300
+ onPointerEnter: ae,
301
+ onClick: g,
302
+ onPointerDownCapture: fe
303
+ }, d && /* @__PURE__ */ t.createElement(ua, {
304
+ prefixCls: i,
305
+ arrow: d,
306
+ arrowPos: m,
307
+ align: N
308
+ }), /* @__PURE__ */ t.createElement(Vr, {
309
+ cache: !v && !D
310
+ }, Be));
311
+ });
312
+ }));
313
+ });
314
+ process.env.NODE_ENV !== "production" && (Ar.displayName = "Popup");
315
+ var Fr = /* @__PURE__ */ t.forwardRef(function(e, r) {
316
+ var n = e.children, a = e.getTriggerDOMNode, i = $r(n), u = t.useCallback(function(f) {
317
+ Ir(r, a ? a(f) : f);
318
+ }, [a]), s = Tr(u, Ur(n));
319
+ return i ? /* @__PURE__ */ t.cloneElement(n, {
320
+ ref: s
321
+ }) : n;
322
+ });
323
+ process.env.NODE_ENV !== "production" && (Fr.displayName = "TriggerWrapper");
324
+ var Sr = /* @__PURE__ */ t.createContext(null);
325
+ function Pr(e) {
326
+ return e ? Array.isArray(e) ? e : [e] : [];
327
+ }
328
+ function sa(e, r, n, a) {
329
+ return t.useMemo(function() {
330
+ var i = Pr(n ?? r), u = Pr(a ?? r), s = new Set(i), f = new Set(u);
331
+ return e && (s.has("hover") && (s.delete("hover"), s.add("click")), f.has("hover") && (f.delete("hover"), f.add("click"))), [s, f];
332
+ }, [e, r, n, a]);
333
+ }
334
+ function da() {
335
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 ? arguments[2] : void 0;
336
+ return n ? e[0] === r[0] : e[0] === r[0] && e[1] === r[1];
337
+ }
338
+ function ca(e, r, n, a) {
339
+ for (var i = n.points, u = Object.keys(e), s = 0; s < u.length; s += 1) {
340
+ var f, v = u[s];
341
+ if (da((f = e[v]) === null || f === void 0 ? void 0 : f.points, i, a))
342
+ return "".concat(r, "-placement-").concat(v);
343
+ }
344
+ return "";
345
+ }
346
+ function kr(e, r, n, a) {
347
+ return r || (n ? {
348
+ motionName: "".concat(e, "-").concat(n)
349
+ } : a ? {
350
+ motionName: a
351
+ } : null);
352
+ }
353
+ function yn(e) {
354
+ return e.ownerDocument.defaultView;
355
+ }
356
+ function hr(e) {
357
+ for (var r = [], n = e == null ? void 0 : e.parentElement, a = ["hidden", "scroll", "clip", "auto"]; n; ) {
358
+ var i = yn(n).getComputedStyle(n), u = i.overflowX, s = i.overflowY, f = i.overflow;
359
+ [u, s, f].some(function(v) {
360
+ return a.includes(v);
361
+ }) && r.push(n), n = n.parentElement;
362
+ }
363
+ return r;
364
+ }
365
+ function gn(e) {
366
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
367
+ return Number.isNaN(e) ? r : e;
368
+ }
369
+ function mn(e) {
370
+ return gn(parseFloat(e), 0);
371
+ }
372
+ function Dr(e, r) {
373
+ var n = q({}, e);
374
+ return (r || []).forEach(function(a) {
375
+ if (!(a instanceof HTMLBodyElement || a instanceof HTMLHtmlElement)) {
376
+ var i = yn(a).getComputedStyle(a), u = i.overflow, s = i.overflowClipMargin, f = i.borderTopWidth, v = i.borderBottomWidth, h = i.borderLeftWidth, D = i.borderRightWidth, g = a.getBoundingClientRect(), y = a.offsetHeight, d = a.clientHeight, m = a.offsetWidth, N = a.clientWidth, b = mn(f), W = mn(v), x = mn(h), C = mn(D), z = gn(Math.round(g.width / m * 1e3) / 1e3), $ = gn(Math.round(g.height / y * 1e3) / 1e3), c = (m - N - x - C) * z, re = (y - d - b - W) * $, ce = b * $, ae = W * $, fe = x * z, te = C * z, U = 0, Me = 0;
377
+ if (u === "clip") {
378
+ var ve = mn(s);
379
+ U = ve * z, Me = ve * $;
380
+ }
381
+ var Se = g.x + fe - U, Q = g.y + ce - Me, Pe = Se + g.width + 2 * U - fe - te - c, B = Q + g.height + 2 * Me - ce - ae - re;
382
+ n.left = Math.max(n.left, Se), n.top = Math.max(n.top, Q), n.right = Math.min(n.right, Pe), n.bottom = Math.min(n.bottom, B);
383
+ }
384
+ }), n;
385
+ }
386
+ function Nr(e) {
387
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = "".concat(r), a = n.match(/^(.*)\%$/);
388
+ return a ? e * (parseFloat(a[1]) / 100) : parseFloat(n);
389
+ }
390
+ function Er(e, r) {
391
+ var n = r || [], a = L(n, 2), i = a[0], u = a[1];
392
+ return [Nr(e.width, i), Nr(e.height, u)];
393
+ }
394
+ function Lr() {
395
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
396
+ return [e[0], e[1]];
397
+ }
398
+ function nn(e, r) {
399
+ var n = r[0], a = r[1], i, u;
400
+ return n === "t" ? u = e.y : n === "b" ? u = e.y + e.height : u = e.y + e.height / 2, a === "l" ? i = e.x : a === "r" ? i = e.x + e.width : i = e.x + e.width / 2, {
401
+ x: i,
402
+ y: u
403
+ };
404
+ }
405
+ function Re(e, r) {
406
+ var n = {
407
+ t: "b",
408
+ b: "t",
409
+ l: "r",
410
+ r: "l"
411
+ };
412
+ return e.map(function(a, i) {
413
+ return i === r ? n[a] || "c" : a;
414
+ }).join("");
415
+ }
416
+ function fa(e, r, n, a, i, u, s) {
417
+ var f = t.useState({
418
+ ready: !1,
419
+ offsetX: 0,
420
+ offsetY: 0,
421
+ offsetR: 0,
422
+ offsetB: 0,
423
+ arrowX: 0,
424
+ arrowY: 0,
425
+ scaleX: 1,
426
+ scaleY: 1,
427
+ align: i[a] || {}
428
+ }), v = L(f, 2), h = v[0], D = v[1], g = t.useRef(0), y = t.useMemo(function() {
429
+ return r ? hr(r) : [];
430
+ }, [r]), d = t.useRef({}), m = function() {
431
+ d.current = {};
432
+ };
433
+ e || m();
434
+ var N = Ke(function() {
435
+ if (r && n && e) {
436
+ let ne = function(en, We) {
437
+ var He = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : wn, vn = M.x + en, Rn = M.y + We, tr = vn + he, ir = Rn + O, or = Math.max(vn, He.left), o = Math.max(Rn, He.top), l = Math.min(tr, He.right), E = Math.min(ir, He.bottom);
438
+ return Math.max(0, (l - or) * (E - o));
439
+ }, Hn = function() {
440
+ Ie = M.y + k, Ue = Ie + O, De = M.x + S, Oe = De + he;
441
+ };
442
+ var x, C, z, $, c = r, re = c.ownerDocument, ce = yn(c), ae = ce.getComputedStyle(c), fe = ae.width, te = ae.height, U = ae.position, Me = c.style.left, ve = c.style.top, Se = c.style.right, Q = c.style.bottom, Pe = c.style.overflow, B = q(q({}, i[a]), u), A = re.createElement("div");
443
+ (x = c.parentElement) === null || x === void 0 || x.appendChild(A), A.style.left = "".concat(c.offsetLeft, "px"), A.style.top = "".concat(c.offsetTop, "px"), A.style.position = U, A.style.height = "".concat(c.offsetHeight, "px"), A.style.width = "".concat(c.offsetWidth, "px"), c.style.left = "0", c.style.top = "0", c.style.right = "auto", c.style.bottom = "auto", c.style.overflow = "hidden";
444
+ var w;
445
+ if (Array.isArray(n))
446
+ w = {
447
+ x: n[0],
448
+ y: n[1],
449
+ width: 0,
450
+ height: 0
451
+ };
452
+ else {
453
+ var Be, ie, V = n.getBoundingClientRect();
454
+ V.x = (Be = V.x) !== null && Be !== void 0 ? Be : V.left, V.y = (ie = V.y) !== null && ie !== void 0 ? ie : V.top, w = {
455
+ x: V.x,
456
+ y: V.y,
457
+ width: V.width,
458
+ height: V.height
459
+ };
460
+ }
461
+ var M = c.getBoundingClientRect();
462
+ M.x = (C = M.x) !== null && C !== void 0 ? C : M.left, M.y = (z = M.y) !== null && z !== void 0 ? z : M.top;
463
+ var J = re.documentElement, Ve = J.clientWidth, an = J.clientHeight, me = J.scrollWidth, G = J.scrollHeight, Ee = J.scrollTop, Ae = J.scrollLeft, O = M.height, he = M.width, oe = w.height, I = w.width, tn = {
464
+ left: 0,
465
+ top: 0,
466
+ right: Ve,
467
+ bottom: an
468
+ }, Le = {
469
+ left: -Ae,
470
+ top: -Ee,
471
+ right: me - Ae,
472
+ bottom: G - Ee
473
+ }, Y = B.htmlRegion, ge = "visible", Fe = "visibleFirst";
474
+ Y !== "scroll" && Y !== Fe && (Y = ge);
475
+ var F = Y === Fe, An = Dr(Le, y), P = Dr(tn, y), wn = Y === ge ? P : An, je = F ? P : wn;
476
+ c.style.left = "auto", c.style.top = "auto", c.style.right = "0", c.style.bottom = "0";
477
+ var j = c.getBoundingClientRect();
478
+ c.style.left = Me, c.style.top = ve, c.style.right = Se, c.style.bottom = Q, c.style.overflow = Pe, ($ = c.parentElement) === null || $ === void 0 || $.removeChild(A);
479
+ var $e = gn(Math.round(he / parseFloat(fe) * 1e3) / 1e3), ke = gn(Math.round(O / parseFloat(te) * 1e3) / 1e3);
480
+ if ($e === 0 || ke === 0 || fr(n) && !Zr(n))
481
+ return;
482
+ var Fn = B.offset, jn = B.targetOffset, bn = Er(M, Fn), ue = L(bn, 2), le = ue[0], X = ue[1], _n = Er(w, jn), _e = L(_n, 2), p = _e[0], Te = _e[1];
483
+ w.x -= p, w.y -= Te;
484
+ var qn = B.points || [], Cn = L(qn, 2), In = Cn[0], Un = Cn[1], ye = Lr(Un), K = Lr(In), on = nn(w, ye), _ = nn(M, K), xe = q({}, B), S = on.x - _.x + le, k = on.y - _.y + X, se = ne(S, k), qe = ne(S, k, P), un = nn(w, ["t", "l"]), ee = nn(M, ["t", "l"]), Mn = nn(w, ["b", "r"]), ln = nn(M, ["b", "r"]), ze = B.overflow || {}, Sn = ze.adjustX, Qn = ze.adjustY, sn = ze.shiftX, Ze = ze.shiftY, dn = function(We) {
485
+ return typeof We == "boolean" ? We : We >= 0;
486
+ }, Ie, Ue, De, Oe;
487
+ Hn();
488
+ var Qe = dn(Qn), Pn = K[0] === ye[0];
489
+ if (Qe && K[0] === "t" && (Ue > je.bottom || d.current.bt)) {
490
+ var R = k;
491
+ Pn ? R -= O - oe : R = un.y - ln.y - X;
492
+ var kn = ne(S, R), Jn = ne(S, R, P);
493
+ // Of course use larger one
494
+ kn > se || kn === se && (!F || // Choose recommend one
495
+ Jn >= qe) ? (d.current.bt = !0, k = R, X = -X, xe.points = [Re(K, 0), Re(ye, 0)]) : d.current.bt = !1;
496
+ }
497
+ if (Qe && K[0] === "b" && (Ie < je.top || d.current.tb)) {
498
+ var Je = k;
499
+ Pn ? Je += O - oe : Je = Mn.y - ee.y - X;
500
+ var Dn = ne(S, Je), Gn = ne(S, Je, P);
501
+ // Of course use larger one
502
+ Dn > se || Dn === se && (!F || // Choose recommend one
503
+ Gn >= qe) ? (d.current.tb = !0, k = Je, X = -X, xe.points = [Re(K, 0), Re(ye, 0)]) : d.current.tb = !1;
504
+ }
505
+ var Nn = dn(Sn), En = K[1] === ye[1];
506
+ if (Nn && K[1] === "l" && (Oe > je.right || d.current.rl)) {
507
+ var Ge = S;
508
+ En ? Ge -= he - I : Ge = un.x - ln.x - le;
509
+ var Ln = ne(Ge, k), Ye = ne(Ge, k, P);
510
+ // Of course use larger one
511
+ Ln > se || Ln === se && (!F || // Choose recommend one
512
+ Ye >= qe) ? (d.current.rl = !0, S = Ge, le = -le, xe.points = [Re(K, 1), Re(ye, 1)]) : d.current.rl = !1;
513
+ }
514
+ if (Nn && K[1] === "r" && (De < je.left || d.current.lr)) {
515
+ var Ne = S;
516
+ En ? Ne += he - I : Ne = Mn.x - ee.x - le;
517
+ var $n = ne(Ne, k), Tn = ne(Ne, k, P);
518
+ // Of course use larger one
519
+ $n > se || $n === se && (!F || // Choose recommend one
520
+ Tn >= qe) ? (d.current.lr = !0, S = Ne, le = -le, xe.points = [Re(K, 1), Re(ye, 1)]) : d.current.lr = !1;
521
+ }
522
+ Hn();
523
+ var we = sn === !0 ? 0 : sn;
524
+ typeof we == "number" && (De < P.left && (S -= De - P.left - le, w.x + I < P.left + we && (S += w.x - P.left + I - we)), Oe > P.right && (S -= Oe - P.right - le, w.x > P.right - we && (S += w.x - P.right + we)));
525
+ var de = Ze === !0 ? 0 : Ze;
526
+ typeof de == "number" && (Ie < P.top && (k -= Ie - P.top - X, w.y + oe < P.top + de && (k += w.y - P.top + oe - de)), Ue > P.bottom && (k -= Ue - P.bottom - X, w.y > P.bottom - de && (k += w.y - P.bottom + de)));
527
+ var Xe = M.x + S, pe = Xe + he, be = M.y + k, Kn = be + O, xn = w.x, Zn = xn + I, cn = w.y, On = cn + oe, Yn = Math.max(Xe, xn), Xn = Math.min(pe, Zn), zn = (Yn + Xn) / 2, pn = zn - Xe, er = Math.max(be, cn), Wn = Math.min(Kn, On), nr = (er + Wn) / 2, rr = nr - be;
528
+ s == null || s(r, xe);
529
+ var fn = j.right - M.x - (S + M.width), Ce = j.bottom - M.y - (k + M.height);
530
+ $e === 1 && (S = Math.round(S), fn = Math.round(fn)), ke === 1 && (k = Math.round(k), Ce = Math.round(Ce));
531
+ var ar = {
532
+ ready: !0,
533
+ offsetX: S / $e,
534
+ offsetY: k / ke,
535
+ offsetR: fn / $e,
536
+ offsetB: Ce / ke,
537
+ arrowX: pn / $e,
538
+ arrowY: rr / ke,
539
+ scaleX: $e,
540
+ scaleY: ke,
541
+ align: xe
542
+ };
543
+ D(ar);
544
+ }
545
+ }), b = function() {
546
+ g.current += 1;
547
+ var C = g.current;
548
+ Promise.resolve().then(function() {
549
+ g.current === C && N();
550
+ });
551
+ }, W = function() {
552
+ D(function(C) {
553
+ return q(q({}, C), {}, {
554
+ ready: !1
555
+ });
556
+ });
557
+ };
558
+ return Z(W, [a]), Z(function() {
559
+ e || W();
560
+ }, [e]), [h.ready, h.offsetX, h.offsetY, h.offsetR, h.offsetB, h.arrowX, h.arrowY, h.scaleX, h.scaleY, h.align, b];
561
+ }
562
+ function va(e, r, n, a, i) {
563
+ Z(function() {
564
+ if (e && r && n) {
565
+ let g = function() {
566
+ a(), i();
567
+ };
568
+ var u = r, s = n, f = hr(u), v = hr(s), h = yn(s), D = new Set([h].concat(cr(f), cr(v)));
569
+ return D.forEach(function(y) {
570
+ y.addEventListener("scroll", g, {
571
+ passive: !0
572
+ });
573
+ }), h.addEventListener("resize", g, {
574
+ passive: !0
575
+ }), a(), function() {
576
+ D.forEach(function(y) {
577
+ y.removeEventListener("scroll", g), h.removeEventListener("resize", g);
578
+ });
579
+ };
580
+ }
581
+ }, [e, r, n]);
582
+ }
583
+ function ma(e, r, n, a, i, u, s, f) {
584
+ var v = t.useRef(e);
585
+ v.current = e;
586
+ var h = t.useRef(!1);
587
+ t.useEffect(function() {
588
+ if (r && a && (!i || u)) {
589
+ var g = function() {
590
+ h.current = !1;
591
+ }, y = function(z) {
592
+ var $;
593
+ v.current && !s((($ = z.composedPath) === null || $ === void 0 || ($ = $.call(z)) === null || $ === void 0 ? void 0 : $[0]) || z.target) && !h.current && f(!1);
594
+ }, d = yn(a);
595
+ d.addEventListener("pointerdown", g, !0), d.addEventListener("mousedown", y, !0), d.addEventListener("contextmenu", y, !0);
596
+ var m = mr(n);
597
+ if (m && (m.addEventListener("mousedown", y, !0), m.addEventListener("contextmenu", y, !0)), process.env.NODE_ENV !== "production") {
598
+ var N, b, W = n == null || (N = n.getRootNode) === null || N === void 0 ? void 0 : N.call(n), x = (b = a.getRootNode) === null || b === void 0 ? void 0 : b.call(a);
599
+ Jr(W === x, "trigger element and popup element should in same shadow root.");
600
+ }
601
+ return function() {
602
+ d.removeEventListener("pointerdown", g, !0), d.removeEventListener("mousedown", y, !0), d.removeEventListener("contextmenu", y, !0), m && (m.removeEventListener("mousedown", y, !0), m.removeEventListener("contextmenu", y, !0));
603
+ };
604
+ }
605
+ }, [r, n, a, i, u]);
606
+ function D() {
607
+ h.current = !0;
608
+ }
609
+ return D;
610
+ }
611
+ var ha = ["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"];
612
+ function ga() {
613
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gr, r = /* @__PURE__ */ t.forwardRef(function(n, a) {
614
+ var i = n.prefixCls, u = i === void 0 ? "rc-trigger-popup" : i, s = n.children, f = n.action, v = f === void 0 ? "hover" : f, h = n.showAction, D = n.hideAction, g = n.popupVisible, y = n.defaultPopupVisible, d = n.onPopupVisibleChange, m = n.afterPopupVisibleChange, N = n.mouseEnterDelay, b = n.mouseLeaveDelay, W = b === void 0 ? 0.1 : b, x = n.focusDelay, C = n.blurDelay, z = n.mask, $ = n.maskClosable, c = $ === void 0 ? !0 : $, re = n.getPopupContainer, ce = n.forceRender, ae = n.autoDestroy, fe = n.destroyPopupOnHide, te = n.popup, U = n.popupClassName, Me = n.popupStyle, ve = n.popupPlacement, Se = n.builtinPlacements, Q = Se === void 0 ? {} : Se, Pe = n.popupAlign, B = n.zIndex, A = n.stretch, w = n.getPopupClassNameFromAlign, Be = n.fresh, ie = n.alignPoint, V = n.onPopupClick, M = n.onPopupAlign, J = n.arrow, Ve = n.popupMotion, an = n.maskMotion, me = n.popupTransitionName, G = n.popupAnimation, Ee = n.maskTransitionName, Ae = n.maskAnimation, O = n.className, he = n.getTriggerDOMNode, oe = Gr(n, ha), I = ae || fe || !1, tn = t.useState(!1), Le = L(tn, 2), Y = Le[0], ge = Le[1];
615
+ Z(function() {
616
+ ge(oa());
617
+ }, []);
618
+ var Fe = t.useRef({}), F = t.useContext(Sr), An = t.useMemo(function() {
619
+ return {
620
+ registerSubPopup: function(l, E) {
621
+ Fe.current[l] = E, F == null || F.registerSubPopup(l, E);
622
+ }
623
+ };
624
+ }, [F]), P = Kr(), wn = t.useState(null), je = L(wn, 2), j = je[0], $e = je[1], ke = t.useRef(null), Fn = Ke(function(o) {
625
+ ke.current = o, fr(o) && j !== o && $e(o), F == null || F.registerSubPopup(P, o);
626
+ }), jn = t.useState(null), bn = L(jn, 2), ue = bn[0], le = bn[1], X = t.useRef(null), _n = Ke(function(o) {
627
+ fr(o) && ue !== o && (le(o), X.current = o);
628
+ }), _e = t.Children.only(s), p = (_e == null ? void 0 : _e.props) || {}, Te = {}, qn = Ke(function(o) {
629
+ var l, E, H = ue;
630
+ return (H == null ? void 0 : H.contains(o)) || ((l = mr(H)) === null || l === void 0 ? void 0 : l.host) === o || o === H || (j == null ? void 0 : j.contains(o)) || ((E = mr(j)) === null || E === void 0 ? void 0 : E.host) === o || o === j || Object.values(Fe.current).some(function(T) {
631
+ return (T == null ? void 0 : T.contains(o)) || o === T;
632
+ });
633
+ }), Cn = kr(u, Ve, G, me), In = kr(u, an, Ae, Ee), Un = t.useState(y || !1), ye = L(Un, 2), K = ye[0], on = ye[1], _ = g ?? K, xe = Ke(function(o) {
634
+ g === void 0 && on(o);
635
+ });
636
+ Z(function() {
637
+ on(g || !1);
638
+ }, [g]);
639
+ var S = t.useRef(_);
640
+ S.current = _;
641
+ var k = t.useRef([]);
642
+ k.current = [];
643
+ var se = Ke(function(o) {
644
+ var l;
645
+ xe(o), ((l = k.current[k.current.length - 1]) !== null && l !== void 0 ? l : _) !== o && (k.current.push(o), d == null || d(o));
646
+ }), qe = t.useRef(), un = function() {
647
+ clearTimeout(qe.current);
648
+ }, ee = function(l) {
649
+ var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
650
+ un(), E === 0 ? se(l) : qe.current = setTimeout(function() {
651
+ se(l);
652
+ }, E * 1e3);
653
+ };
654
+ t.useEffect(function() {
655
+ return un;
656
+ }, []);
657
+ var Mn = t.useState(!1), ln = L(Mn, 2), ze = ln[0], Sn = ln[1];
658
+ Z(function(o) {
659
+ (!o || _) && Sn(!0);
660
+ }, [_]);
661
+ var Qn = t.useState(null), sn = L(Qn, 2), Ze = sn[0], dn = sn[1], Ie = t.useState(null), Ue = L(Ie, 2), De = Ue[0], Oe = Ue[1], Qe = function(l) {
662
+ Oe([l.clientX, l.clientY]);
663
+ }, Pn = fa(_, j, ie && De !== null ? De : ue, ve, Q, Pe, M), R = L(Pn, 11), kn = R[0], Jn = R[1], Je = R[2], Dn = R[3], Gn = R[4], Nn = R[5], En = R[6], Ge = R[7], Ln = R[8], Ye = R[9], Ne = R[10], $n = sa(Y, v, h, D), Tn = L($n, 2), we = Tn[0], de = Tn[1], Xe = we.has("click"), pe = de.has("click") || de.has("contextMenu"), be = Ke(function() {
664
+ ze || Ne();
665
+ }), Kn = function() {
666
+ S.current && ie && pe && ee(!1);
667
+ };
668
+ va(_, ue, j, be, Kn), Z(function() {
669
+ be();
670
+ }, [De, ve]), Z(function() {
671
+ _ && !(Q != null && Q[ve]) && be();
672
+ }, [JSON.stringify(Pe)]);
673
+ var xn = t.useMemo(function() {
674
+ var o = ca(Q, u, Ye, ie);
675
+ return rn(o, w == null ? void 0 : w(Ye));
676
+ }, [Ye, w, Q, u, ie]);
677
+ t.useImperativeHandle(a, function() {
678
+ return {
679
+ nativeElement: X.current,
680
+ popupElement: ke.current,
681
+ forceAlign: be
682
+ };
683
+ });
684
+ var Zn = t.useState(0), cn = L(Zn, 2), On = cn[0], Yn = cn[1], Xn = t.useState(0), zn = L(Xn, 2), pn = zn[0], er = zn[1], Wn = function() {
685
+ if (A && ue) {
686
+ var l = ue.getBoundingClientRect();
687
+ Yn(l.width), er(l.height);
688
+ }
689
+ }, nr = function() {
690
+ Wn(), be();
691
+ }, rr = function(l) {
692
+ Sn(!1), Ne(), m == null || m(l);
693
+ }, fn = function() {
694
+ return new Promise(function(l) {
695
+ Wn(), dn(function() {
696
+ return l;
697
+ });
698
+ });
699
+ };
700
+ Z(function() {
701
+ Ze && (Ne(), Ze(), dn(null));
702
+ }, [Ze]);
703
+ function Ce(o, l, E, H) {
704
+ Te[o] = function(T) {
705
+ var Bn;
706
+ H == null || H(T), ee(l, E);
707
+ for (var ur = arguments.length, yr = new Array(ur > 1 ? ur - 1 : 0), Vn = 1; Vn < ur; Vn++)
708
+ yr[Vn - 1] = arguments[Vn];
709
+ (Bn = p[o]) === null || Bn === void 0 || Bn.call.apply(Bn, [p, T].concat(yr));
710
+ };
711
+ }
712
+ (Xe || pe) && (Te.onClick = function(o) {
713
+ var l;
714
+ S.current && pe ? ee(!1) : !S.current && Xe && (Qe(o), ee(!0));
715
+ for (var E = arguments.length, H = new Array(E > 1 ? E - 1 : 0), T = 1; T < E; T++)
716
+ H[T - 1] = arguments[T];
717
+ (l = p.onClick) === null || l === void 0 || l.call.apply(l, [p, o].concat(H));
718
+ });
719
+ var ar = ma(_, pe, ue, j, z, c, qn, ee), ne = we.has("hover"), Hn = de.has("hover"), en, We;
720
+ ne && (Ce("onMouseEnter", !0, N, function(o) {
721
+ Qe(o);
722
+ }), Ce("onPointerEnter", !0, N, function(o) {
723
+ Qe(o);
724
+ }), en = function(l) {
725
+ (_ || ze) && j !== null && j !== void 0 && j.contains(l.target) && ee(!0, N);
726
+ }, ie && (Te.onMouseMove = function(o) {
727
+ var l;
728
+ (l = p.onMouseMove) === null || l === void 0 || l.call(p, o);
729
+ })), Hn && (Ce("onMouseLeave", !1, W), Ce("onPointerLeave", !1, W), We = function() {
730
+ ee(!1, W);
731
+ }), we.has("focus") && Ce("onFocus", !0, x), de.has("focus") && Ce("onBlur", !1, C), we.has("contextMenu") && (Te.onContextMenu = function(o) {
732
+ var l;
733
+ S.current && de.has("contextMenu") ? ee(!1) : (Qe(o), ee(!0)), o.preventDefault();
734
+ for (var E = arguments.length, H = new Array(E > 1 ? E - 1 : 0), T = 1; T < E; T++)
735
+ H[T - 1] = arguments[T];
736
+ (l = p.onContextMenu) === null || l === void 0 || l.call.apply(l, [p, o].concat(H));
737
+ }), O && (Te.className = rn(p.className, O));
738
+ var He = q(q({}, p), Te), vn = {}, Rn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
739
+ Rn.forEach(function(o) {
740
+ oe[o] && (vn[o] = function() {
741
+ for (var l, E = arguments.length, H = new Array(E), T = 0; T < E; T++)
742
+ H[T] = arguments[T];
743
+ (l = He[o]) === null || l === void 0 || l.call.apply(l, [He].concat(H)), oe[o].apply(oe, H);
744
+ });
745
+ });
746
+ var tr = /* @__PURE__ */ t.cloneElement(_e, q(q({}, He), vn)), ir = {
747
+ x: Nn,
748
+ y: En
749
+ }, or = J ? q({}, J !== !0 ? J : {}) : null;
750
+ return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(Hr, {
751
+ disabled: !_,
752
+ ref: _n,
753
+ onResize: nr
754
+ }, /* @__PURE__ */ t.createElement(Fr, {
755
+ getTriggerDOMNode: he
756
+ }, tr)), /* @__PURE__ */ t.createElement(Sr.Provider, {
757
+ value: An
758
+ }, /* @__PURE__ */ t.createElement(Ar, {
759
+ portal: e,
760
+ ref: Fn,
761
+ prefixCls: u,
762
+ popup: te,
763
+ className: rn(U, xn),
764
+ style: Me,
765
+ target: ue,
766
+ onMouseEnter: en,
767
+ onMouseLeave: We,
768
+ onPointerEnter: en,
769
+ zIndex: B,
770
+ open: _,
771
+ keepDom: ze,
772
+ fresh: Be,
773
+ onClick: V,
774
+ onPointerDownCapture: ar,
775
+ mask: z,
776
+ motion: Cn,
777
+ maskMotion: In,
778
+ onVisibleChanged: rr,
779
+ onPrepare: fn,
780
+ forceRender: ce,
781
+ autoDestroy: I,
782
+ getPopupContainer: re,
783
+ align: Ye,
784
+ arrow: or,
785
+ arrowPos: ir,
786
+ ready: kn,
787
+ offsetX: Jn,
788
+ offsetY: Je,
789
+ offsetR: Dn,
790
+ offsetB: Gn,
791
+ onAlign: be,
792
+ stretch: A,
793
+ targetWidth: On / Ge,
794
+ targetHeight: pn / Ln
795
+ })));
796
+ });
797
+ return process.env.NODE_ENV !== "production" && (r.displayName = "Trigger"), r;
798
+ }
799
+ const Ea = ga(gr);
800
+ export {
801
+ gr as P,
802
+ Ea as T,
803
+ oa as a,
804
+ Pa as b,
805
+ Na as c,
806
+ ea as d,
807
+ ka as g,
808
+ Da as i
809
+ };