@gobolt/genesis 0.0.10 → 0.1.0

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 (438) hide show
  1. package/README.md +8 -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/ClockCircleOutlined-BaXQuLIn.js +13 -0
  6. package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
  7. package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
  8. package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
  9. package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
  10. package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
  11. package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
  12. package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
  13. package/dist/Keyframes-C9_aCDvn.js +17 -0
  14. package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
  15. package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
  16. package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
  17. package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
  18. package/dist/Skeleton-BVN4pcVe.js +560 -0
  19. package/dist/TextArea-Bkf9hh7l.js +708 -0
  20. package/dist/Typography-CoZ5qD-t.js +705 -0
  21. package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
  22. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  23. package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
  24. package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
  25. package/dist/clsx-OuTLNxxd.js +16 -0
  26. package/dist/components/Avatar/Avatar.d.ts +12 -0
  27. package/dist/components/Avatar/Avatar.js +61 -0
  28. package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
  29. package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
  30. package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
  31. package/dist/components/Avatar/index.d.ts +2 -0
  32. package/dist/components/Avatar/index.js +4 -0
  33. package/dist/components/Avatar/styles.d.ts +18 -0
  34. package/dist/components/Avatar/styles.js +326 -0
  35. package/dist/components/Badge/Badge.d.ts +5 -3
  36. package/dist/components/Badge/Badge.js +67 -100
  37. package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
  38. package/dist/components/Badge/__tests__/Badge.test.js +9 -10
  39. package/dist/components/Badge/styles.d.ts +12 -3
  40. package/dist/components/Badge/styles.js +30 -27
  41. package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
  42. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  43. package/dist/components/Breadcrumb/styles.js +239 -2260
  44. package/dist/components/Button/Button.d.ts +4 -3
  45. package/dist/components/Button/Button.js +10 -6
  46. package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
  47. package/dist/components/Button/__tests__/Button.test.js +1 -1
  48. package/dist/components/Button/styles.d.ts +2 -2
  49. package/dist/components/Button/styles.js +20 -17
  50. package/dist/components/Card/Card.d.ts +9 -0
  51. package/dist/components/Card/Card.js +16 -0
  52. package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
  53. package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
  54. package/dist/components/Card/__tests__/Card.test.js +16 -0
  55. package/dist/components/Card/index.d.ts +2 -0
  56. package/dist/components/Card/index.js +4 -0
  57. package/dist/components/Card/styles.d.ts +16 -0
  58. package/dist/components/Card/styles.js +12 -0
  59. package/dist/components/Checkbox/Checkbox.d.ts +1 -2
  60. package/dist/components/Checkbox/Checkbox.js +28 -16
  61. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  62. package/dist/components/Checkbox/styles.js +22 -457
  63. package/dist/components/Dashboard/Dashboard.d.ts +5 -0
  64. package/dist/components/Dashboard/Dashboard.js +5 -0
  65. package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
  66. package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
  67. package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
  68. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
  69. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
  70. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
  71. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
  72. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
  73. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
  74. package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
  75. package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
  76. package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
  77. package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
  78. package/dist/components/Dashboard/index.d.ts +2 -0
  79. package/dist/components/Dashboard/index.js +4 -0
  80. package/dist/components/Dashboard/styles.d.ts +14 -0
  81. package/dist/components/Dashboard/styles.js +11 -0
  82. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  83. package/dist/components/DatePicker/DatePicker.js +5 -0
  84. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  85. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  86. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  87. package/dist/components/DatePicker/index.d.ts +2 -0
  88. package/dist/components/DatePicker/index.js +4 -0
  89. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  90. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  91. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  92. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  93. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  94. package/dist/components/DateRangePicker/index.d.ts +2 -0
  95. package/dist/components/DateRangePicker/index.js +4 -0
  96. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  97. package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
  98. package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
  99. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
  100. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
  101. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  102. package/dist/components/ErrorBoundary/index.js +4 -0
  103. package/dist/components/ErrorBoundary/styles.d.ts +14 -0
  104. package/dist/components/ErrorBoundary/styles.js +11 -0
  105. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
  106. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
  107. package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
  108. package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
  109. package/dist/components/Form/Form.js +3 -3
  110. package/dist/components/Form/__stories__/FormStory.js +127 -50
  111. package/dist/components/Form/__tests__/form.test.js +2 -2
  112. package/dist/components/Form/index.js +1 -1
  113. package/dist/components/Form/styles.js +1 -1
  114. package/dist/components/Glyph/Glyph.d.ts +4 -0
  115. package/dist/components/Glyph/Glyph.js +9 -0
  116. package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
  117. package/dist/components/Glyph/index.d.ts +2 -0
  118. package/dist/components/Glyph/index.js +4 -0
  119. package/dist/components/Glyph/styles.d.ts +14 -0
  120. package/dist/components/Glyph/styles.js +11 -0
  121. package/dist/components/Input/Input.d.ts +1 -2
  122. package/dist/components/Input/Input.js +14 -10
  123. package/dist/components/Input/__tests__/Input.test.js +1 -1
  124. package/dist/components/Input/styles.js +58 -466
  125. package/dist/components/Layout/Content/Content.d.ts +11 -0
  126. package/dist/components/Layout/Content/Content.js +32 -0
  127. package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
  128. package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
  129. package/dist/components/Layout/Content/index.d.ts +2 -0
  130. package/dist/components/Layout/Content/index.js +4 -0
  131. package/dist/components/Layout/Content/styles.d.ts +11 -0
  132. package/dist/components/Layout/Content/styles.js +16 -0
  133. package/dist/components/Layout/Layout.d.ts +8 -0
  134. package/dist/components/Layout/Layout.js +6 -0
  135. package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
  136. package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
  137. package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
  138. package/dist/components/Layout/MainLayout/index.d.ts +2 -0
  139. package/dist/components/Layout/MainLayout/index.js +4 -0
  140. package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
  141. package/dist/components/Layout/MainLayout/styles.js +69 -0
  142. package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
  143. package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
  144. package/dist/components/Layout/__tests__/Layout.test.js +14 -0
  145. package/dist/components/Layout/index.d.ts +2 -0
  146. package/dist/components/Layout/index.js +4 -0
  147. package/dist/components/Message/Message.d.ts +6 -4
  148. package/dist/components/Message/Message.js +70 -43
  149. package/dist/components/Message/__tests__/Message.test.js +1 -1
  150. package/dist/components/Message/styles.d.ts +1 -0
  151. package/dist/components/Message/styles.js +15 -11
  152. package/dist/components/Notification/Notification.js +145 -120
  153. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  154. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
  155. package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
  156. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
  157. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
  158. package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
  159. package/dist/components/Notification/NotificationBadge/index.js +4 -0
  160. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  161. package/dist/components/Notification/NotificationBadge/styles.js +34 -0
  162. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  163. package/dist/components/Notification/styles.d.ts +1 -1
  164. package/dist/components/Notification/styles.js +1 -1
  165. package/dist/components/Popover/Popover.d.ts +10 -0
  166. package/dist/components/Popover/Popover.js +21 -0
  167. package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
  168. package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
  169. package/dist/components/Popover/__tests__/Popover.test.js +40 -0
  170. package/dist/components/Popover/index.d.ts +2 -0
  171. package/dist/components/Popover/index.js +4 -0
  172. package/dist/components/Popover/styles.d.ts +15 -0
  173. package/dist/components/Popover/styles.js +6 -0
  174. package/dist/components/Progress/Progress.d.ts +18 -0
  175. package/dist/components/Progress/Progress.js +91 -0
  176. package/dist/components/Progress/Progress.util.d.ts +4 -0
  177. package/dist/components/Progress/Progress.util.js +62 -0
  178. package/dist/components/Progress/ProgressText.d.ts +11 -0
  179. package/dist/components/Progress/ProgressText.js +67 -0
  180. package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
  181. package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
  182. package/dist/components/Progress/__tests__/Progress.test.js +21 -0
  183. package/dist/components/Progress/index.d.ts +2 -0
  184. package/dist/components/Progress/index.js +4 -0
  185. package/dist/components/Progress/styles.d.ts +17 -0
  186. package/dist/components/Progress/styles.js +793 -0
  187. package/dist/components/Radio/Radio.js +22 -6
  188. package/dist/components/Radio/RadioGroup.js +1 -1
  189. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  190. package/dist/components/Radio/index.d.ts +1 -0
  191. package/dist/components/Row/Row.d.ts +14 -0
  192. package/dist/components/Row/Row.js +38 -0
  193. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  194. package/dist/components/Row/RowActions/RowActions.js +59 -0
  195. package/dist/components/Row/RowActions/styles.d.ts +2 -0
  196. package/dist/components/Row/RowActions/styles.js +32 -0
  197. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
  198. package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
  199. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  200. package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
  201. package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
  202. package/dist/components/Row/RowLabelValue/styles.js +25 -0
  203. package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
  204. package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
  205. package/dist/components/Row/__tests__/Row.test.js +16 -0
  206. package/dist/components/Row/index.d.ts +2 -0
  207. package/dist/components/Row/index.js +4 -0
  208. package/dist/components/Row/styles.d.ts +15 -0
  209. package/dist/components/Row/styles.js +15 -0
  210. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  211. package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
  212. package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
  213. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
  214. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
  215. package/dist/components/SegmentedControls/index.d.ts +2 -0
  216. package/dist/components/SegmentedControls/index.js +4 -0
  217. package/dist/components/SegmentedControls/styles.d.ts +12 -0
  218. package/dist/components/SegmentedControls/styles.js +511 -0
  219. package/dist/components/Select/Select.d.ts +2 -4
  220. package/dist/components/Select/Select.js +12 -11
  221. package/dist/components/Select/__tests__/Select.test.js +1 -1
  222. package/dist/components/Select/styles.js +39 -3654
  223. package/dist/components/Shapes/Shapes.d.ts +6 -0
  224. package/dist/components/Shapes/Shapes.js +8 -0
  225. package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
  226. package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
  227. package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
  228. package/dist/components/Shapes/index.d.ts +2 -0
  229. package/dist/components/Shapes/index.js +4 -0
  230. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  231. package/dist/components/Shapes/variants/Circle.js +23 -0
  232. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  233. package/dist/components/Shapes/variants/Rectangle.js +23 -0
  234. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  235. package/dist/components/Shapes/variants/Triangle.js +23 -0
  236. package/dist/components/Switch/Switch.d.ts +9 -0
  237. package/dist/components/Switch/Switch.js +22 -0
  238. package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
  239. package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
  240. package/dist/components/Switch/__tests__/Switch.test.js +25 -0
  241. package/dist/components/Switch/index.d.ts +2 -0
  242. package/dist/components/Switch/index.js +4 -0
  243. package/dist/components/Switch/styles.d.ts +9 -0
  244. package/dist/components/Switch/styles.js +456 -0
  245. package/dist/components/Table/Table.d.ts +15 -0
  246. package/dist/components/Table/Table.js +23 -0
  247. package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
  248. package/dist/components/Table/__mocks__/table-mocks.js +321 -0
  249. package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
  250. package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
  251. package/dist/components/Table/__tests__/Table.test.js +34 -0
  252. package/dist/components/Table/index.d.ts +2 -0
  253. package/dist/components/Table/index.js +4 -0
  254. package/dist/components/Table/styles.d.ts +8 -0
  255. package/dist/components/Table/styles.js +6 -0
  256. package/dist/components/Tabs/Tabs.d.ts +10 -0
  257. package/dist/components/Tabs/Tabs.js +23 -0
  258. package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
  259. package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
  260. package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
  261. package/dist/components/Tabs/index.d.ts +2 -0
  262. package/dist/components/Tabs/index.js +4 -0
  263. package/dist/components/Tabs/styles.d.ts +12 -0
  264. package/dist/components/Tabs/styles.js +102 -0
  265. package/dist/components/Tile/Tile.d.ts +10 -0
  266. package/dist/components/Tile/Tile.js +21 -0
  267. package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
  268. package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
  269. package/dist/components/Tile/__tests__/Tile.test.js +21 -0
  270. package/dist/components/Tile/index.d.ts +2 -0
  271. package/dist/components/Tile/index.js +4 -0
  272. package/dist/components/Tile/styles.d.ts +11 -0
  273. package/dist/components/Tile/styles.js +12 -0
  274. package/dist/components/Toast/Toast.js +23 -6
  275. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  276. package/dist/components/Toast/index.js +1 -1
  277. package/dist/components/Toast/styles.d.ts +0 -1
  278. package/dist/components/Toast/styles.js +14 -23
  279. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  280. package/dist/components/Tooltip/Tooltip.js +50 -0
  281. package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
  282. package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
  283. package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
  284. package/dist/components/Tooltip/index.d.ts +2 -0
  285. package/dist/components/Tooltip/index.js +4 -0
  286. package/dist/components/Tooltip/styles.d.ts +20 -0
  287. package/dist/components/Tooltip/styles.js +11 -0
  288. package/dist/components/Typography/Typography.d.ts +5 -1
  289. package/dist/components/Typography/Typography.js +2 -2
  290. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  291. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  292. package/dist/components/Typography/index.js +1 -1
  293. package/dist/components/Typography/styles.d.ts +1 -0
  294. package/dist/components/Typography/styles.js +53 -17
  295. package/dist/components/index.d.ts +35 -1
  296. package/dist/components/index.js +58 -24
  297. package/dist/constants/index.d.ts +4 -0
  298. package/dist/constants/index.js +4 -2
  299. package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
  300. package/dist/dropdown-Dp_PTQ2u.js +2045 -0
  301. package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
  302. package/dist/genesis/GenesisThemeBreakdown.js +101 -43
  303. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  304. package/dist/genesis/styles.js +7 -2923
  305. package/dist/iconBase-LROS5hdG.js +112 -0
  306. package/dist/index-BPVue1Yd.js +445 -0
  307. package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
  308. package/dist/index-BRUI9igj.js +11 -0
  309. package/dist/index-B_1Ge8na.js +1846 -0
  310. package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
  311. package/dist/index-BeGv28kJ.js +5173 -0
  312. package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
  313. package/dist/index-BvOLXELm.js +102 -0
  314. package/dist/index-CLSrpQRW.js +416 -0
  315. package/dist/index-CbVOl2U6.js +288 -0
  316. package/dist/index-D0U6r5O7.js +780 -0
  317. package/dist/index-DEu2PVzQ.js +538 -0
  318. package/dist/index-DLdU7Tpd.js +183 -0
  319. package/dist/index-DNQ-jnBx.js +3321 -0
  320. package/dist/index-DOsPeIWJ.js +1000 -0
  321. package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
  322. package/dist/index-DWjq9XYj.js +899 -0
  323. package/dist/index.js +65 -31
  324. package/dist/interface/address.d.ts +10 -0
  325. package/dist/interface/address.js +1 -0
  326. package/dist/interface/appointment.d.ts +57 -0
  327. package/dist/interface/appointment.js +5 -0
  328. package/dist/interface/appointmentV2.d.ts +65 -0
  329. package/dist/interface/appointmentV2.js +1 -0
  330. package/dist/interface/appointmentsState.d.ts +21 -0
  331. package/dist/interface/appointmentsState.js +1 -0
  332. package/dist/interface/common.d.ts +2 -0
  333. package/dist/interface/common.js +1 -0
  334. package/dist/interface/completionData.d.ts +18 -0
  335. package/dist/interface/completionData.js +1 -0
  336. package/dist/interface/deliveryPartner.d.ts +25 -0
  337. package/dist/interface/deliveryPartner.js +1 -0
  338. package/dist/interface/organization.d.ts +9 -0
  339. package/dist/interface/organization.js +1 -0
  340. package/dist/interface/pagination.d.ts +8 -0
  341. package/dist/interface/pagination.js +1 -0
  342. package/dist/interface/roles.d.ts +9 -0
  343. package/dist/interface/roles.js +1 -0
  344. package/dist/interface/route.d.ts +73 -0
  345. package/dist/interface/route.js +1 -0
  346. package/dist/interface/routeAnalysis.d.ts +108 -0
  347. package/dist/interface/routeAnalysis.js +1 -0
  348. package/dist/interface/routeAutomationJob.d.ts +95 -0
  349. package/dist/interface/routeAutomationJob.js +10 -0
  350. package/dist/interface/routeAutomationLog.d.ts +10 -0
  351. package/dist/interface/routeAutomationLog.js +1 -0
  352. package/dist/interface/routeEvent.d.ts +55 -0
  353. package/dist/interface/routeEvent.js +5 -0
  354. package/dist/interface/serviceArea.d.ts +18 -0
  355. package/dist/interface/serviceArea.js +1 -0
  356. package/dist/interface/util.d.ts +3 -0
  357. package/dist/interface/util.js +1 -0
  358. package/dist/interface/vehicle.d.ts +120 -0
  359. package/dist/interface/vehicle.js +1 -0
  360. package/dist/interface/workOrder.d.ts +22 -0
  361. package/dist/interface/workOrder.js +1 -0
  362. package/dist/isVisible-D3-B85BJ.js +22 -0
  363. package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
  364. package/dist/motion-CUN72xsH.js +33 -0
  365. package/dist/omit-B_u6A-HL.js +9 -0
  366. package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
  367. package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
  368. package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
  369. package/dist/providers/BreakpointThemeProvider.js +21 -0
  370. package/dist/providers/GenesisProvider.js +3 -3
  371. package/dist/providers/ToastProvider.js +22 -6
  372. package/dist/providers/index.js +1 -1
  373. package/dist/providers/useGenesis.js +2 -2
  374. package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
  375. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  376. package/dist/setup-CUbCc8fQ.js +24706 -0
  377. package/dist/setup.types-dBtAXXGp.js +8824 -0
  378. package/dist/shadow-BoMGMNn3.js +13 -0
  379. package/dist/styleChecker-Cotu61d0.js +21 -0
  380. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
  381. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
  382. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
  383. package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
  384. package/dist/styles/theme/genesis-theme.js +398 -331
  385. package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
  386. package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
  387. package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
  388. package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
  389. package/dist/styles-CWdUpZom.js +289 -0
  390. package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
  391. package/dist/styles-qerRs7Rn.js +9196 -0
  392. package/dist/test/setup.d.ts +2 -3
  393. package/dist/test/setup.js +87 -4
  394. package/dist/test/setup.types.d.ts +7 -0
  395. package/dist/test/setup.types.js +1 -0
  396. package/dist/toArray-U3Az44CO.js +11 -0
  397. package/dist/useBreakpoint-TkMv121M.js +22 -0
  398. package/dist/useCSSVarCls-Dau77fzS.js +11 -0
  399. package/dist/useIcons-Ck4JP1m9.js +321 -0
  400. package/dist/useId-D2tzlufo.js +26 -0
  401. package/dist/useLocale-CTfNpakL.js +16 -0
  402. package/dist/useMergedState-D6toxSxh.js +23 -0
  403. package/dist/useSize-DSq4r6zy.js +9 -0
  404. package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
  405. package/dist/useZIndex-DhyHuZTN.js +44 -0
  406. package/dist/utils/icon-util.d.ts +2 -0
  407. package/dist/utils/icon-util.js +89 -0
  408. package/package.json +27 -15
  409. package/dist/AntdIcon-BoLh1dP8.js +0 -202
  410. package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
  411. package/dist/TextArea-DKwCct3i.js +0 -1690
  412. package/dist/Typography-aGoDUl4R.js +0 -710
  413. package/dist/index-BZAhCB_K.js +0 -97
  414. package/dist/index-CfDY25LP.js +0 -873
  415. package/dist/index-DPW8XdWj.js +0 -952
  416. package/dist/isVisible-A-IfeFoT.js +0 -367
  417. package/dist/providers/ThemeProvider.d.ts +0 -9
  418. package/dist/providers/ThemeProvider.js +0 -21
  419. package/dist/setup-BvfREoHl.js +0 -33891
  420. package/dist/useLocale-DT-z_vQ6.js +0 -16
  421. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
  422. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
  423. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
  424. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
  425. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
  426. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
  427. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
  428. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
  429. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
  430. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
  431. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
  432. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
  433. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
  434. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
  435. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
  436. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
  437. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
  438. /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
@@ -0,0 +1,416 @@
1
+ import * as o from "react";
2
+ import { useContext as Z, useMemo as fe, useState as de, useRef as pe } from "react";
3
+ import { e as G, d as te } from "./presets-Djh_L_6R.js";
4
+ import { C as H, g as oe, j as me, m as ge, F as Ce, a as ee, o as ye, D as ve, t as se } from "./index-BbTV2Cw5.js";
5
+ import { F as q } from "./context-DIFtNa4d.js";
6
+ import { u as be, i as Oe, a as he } from "./index-DOsPeIWJ.js";
7
+ import { I as Q, u as xe, T as Ee } from "./TextArea-Bkf9hh7l.js";
8
+ import { p as Ie } from "./pickAttrs-CleuMJFR.js";
9
+ import { g as Pe } from "./useVariants-DrLzUVLU.js";
10
+ import { u as Se } from "./useCSSVarCls-Dau77fzS.js";
11
+ import { u as re } from "./useSize-DSq4r6zy.js";
12
+ import "./index-DLdU7Tpd.js";
13
+ import { I as ae } from "./AntdIcon-nCNB0J1E.js";
14
+ import { o as we } from "./omit-B_u6A-HL.js";
15
+ import { R as _e } from "./SearchOutlined-DNj-7b_h.js";
16
+ import { c as ne } from "./reactNode-sKPeiqPL.js";
17
+ import { B as ze } from "./button-BwqpCxVM.js";
18
+ import { u as Ne } from "./Compact-Du9689ax.js";
19
+ const je = (e) => {
20
+ const {
21
+ getPrefixCls: s,
22
+ direction: r
23
+ } = Z(H), {
24
+ prefixCls: n,
25
+ className: t
26
+ } = e, c = s("input-group", n), v = s("input"), [g, b] = be(v), O = G(c, {
27
+ [`${c}-lg`]: e.size === "large",
28
+ [`${c}-sm`]: e.size === "small",
29
+ [`${c}-compact`]: e.compact,
30
+ [`${c}-rtl`]: r === "rtl"
31
+ }, b, t), C = Z(q), m = fe(() => Object.assign(Object.assign({}, C), {
32
+ isFormItemInput: !1
33
+ }), [C]);
34
+ return process.env.NODE_ENV !== "production" && oe("Input.Group").deprecated(!1, "Input.Group", "Space.Compact"), g(/* @__PURE__ */ o.createElement("span", {
35
+ className: O,
36
+ style: e.style,
37
+ onMouseEnter: e.onMouseEnter,
38
+ onMouseLeave: e.onMouseLeave,
39
+ onFocus: e.onFocus,
40
+ onBlur: e.onBlur
41
+ }, /* @__PURE__ */ o.createElement(q.Provider, {
42
+ value: m
43
+ }, e.children)));
44
+ }, $e = (e) => {
45
+ const {
46
+ componentCls: s,
47
+ paddingXS: r
48
+ } = e;
49
+ return {
50
+ [s]: {
51
+ display: "inline-flex",
52
+ alignItems: "center",
53
+ flexWrap: "nowrap",
54
+ columnGap: r,
55
+ "&-rtl": {
56
+ direction: "rtl"
57
+ },
58
+ [`${s}-input`]: {
59
+ textAlign: "center",
60
+ paddingInline: e.paddingXXS
61
+ },
62
+ // ================= Size =================
63
+ [`&${s}-sm ${s}-input`]: {
64
+ paddingInline: e.calc(e.paddingXXS).div(2).equal()
65
+ },
66
+ [`&${s}-lg ${s}-input`]: {
67
+ paddingInline: e.paddingXS
68
+ }
69
+ }
70
+ };
71
+ }, Re = me(["Input", "OTP"], (e) => {
72
+ const s = ge(e, Oe(e));
73
+ return [$e(s)];
74
+ }, he);
75
+ var ke = function(e, s) {
76
+ var r = {};
77
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
78
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
79
+ s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
80
+ return r;
81
+ };
82
+ const Me = /* @__PURE__ */ o.forwardRef((e, s) => {
83
+ const {
84
+ value: r,
85
+ onChange: n,
86
+ onActiveChange: t,
87
+ index: c,
88
+ mask: v
89
+ } = e, g = ke(e, ["value", "onChange", "onActiveChange", "index", "mask"]), b = r && typeof v == "string" ? v : r, O = (f) => {
90
+ n(c, f.target.value);
91
+ }, C = o.useRef(null);
92
+ o.useImperativeHandle(s, () => C.current);
93
+ const m = () => {
94
+ Ce(() => {
95
+ var f;
96
+ const y = (f = C.current) === null || f === void 0 ? void 0 : f.input;
97
+ document.activeElement === y && y && y.select();
98
+ });
99
+ }, w = (f) => {
100
+ const {
101
+ key: y,
102
+ ctrlKey: R,
103
+ metaKey: k
104
+ } = f;
105
+ y === "ArrowLeft" ? t(c - 1) : y === "ArrowRight" ? t(c + 1) : y === "z" && (R || k) && f.preventDefault(), m();
106
+ }, P = (f) => {
107
+ f.key === "Backspace" && !r && t(c - 1), m();
108
+ };
109
+ return /* @__PURE__ */ o.createElement(Q, Object.assign({
110
+ type: v === !0 ? "password" : "text"
111
+ }, g, {
112
+ ref: C,
113
+ value: b,
114
+ onInput: O,
115
+ onFocus: m,
116
+ onKeyDown: w,
117
+ onKeyUp: P,
118
+ onMouseDown: m,
119
+ onMouseUp: m
120
+ }));
121
+ });
122
+ var Ae = function(e, s) {
123
+ var r = {};
124
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
125
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
126
+ s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
127
+ return r;
128
+ };
129
+ function X(e) {
130
+ return (e || "").split("");
131
+ }
132
+ const De = /* @__PURE__ */ o.forwardRef((e, s) => {
133
+ const {
134
+ prefixCls: r,
135
+ length: n = 6,
136
+ size: t,
137
+ defaultValue: c,
138
+ value: v,
139
+ onChange: g,
140
+ formatter: b,
141
+ variant: O,
142
+ disabled: C,
143
+ status: m,
144
+ autoFocus: w,
145
+ mask: P,
146
+ type: f,
147
+ onInput: y,
148
+ inputMode: R
149
+ } = e, k = Ae(e, ["prefixCls", "length", "size", "defaultValue", "value", "onChange", "formatter", "variant", "disabled", "status", "autoFocus", "mask", "type", "onInput", "inputMode"]);
150
+ if (process.env.NODE_ENV !== "production") {
151
+ const a = oe("Input.OTP");
152
+ process.env.NODE_ENV !== "production" && a(!(typeof P == "string" && P.length > 1), "usage", "`mask` prop should be a single character.");
153
+ }
154
+ const {
155
+ getPrefixCls: _,
156
+ direction: z
157
+ } = o.useContext(H), E = _("otp", r), V = Ie(k, {
158
+ aria: !0,
159
+ data: !0,
160
+ attr: !0
161
+ }), S = Se(E), [M, B, A] = Re(E, S), h = re((a) => t ?? a), N = o.useContext(q), j = Pe(N.status, m), D = o.useMemo(() => Object.assign(Object.assign({}, N), {
162
+ status: j,
163
+ hasFeedback: !1,
164
+ feedbackIcon: null
165
+ }), [N, j]), I = o.useRef(null), x = o.useRef({});
166
+ o.useImperativeHandle(s, () => ({
167
+ focus: () => {
168
+ var a;
169
+ (a = x.current[0]) === null || a === void 0 || a.focus();
170
+ },
171
+ blur: () => {
172
+ var a;
173
+ for (let l = 0; l < n; l += 1)
174
+ (a = x.current[l]) === null || a === void 0 || a.blur();
175
+ },
176
+ nativeElement: I.current
177
+ }));
178
+ const F = (a) => b ? b(a) : a, [L, U] = o.useState(X(F(c || "")));
179
+ o.useEffect(() => {
180
+ v !== void 0 && U(X(v));
181
+ }, [v]);
182
+ const W = ee((a) => {
183
+ U(a), y && y(a), g && a.length === n && a.every((l) => l) && a.some((l, u) => L[u] !== l) && g(a.join(""));
184
+ }), J = ee((a, l) => {
185
+ let u = ye(L);
186
+ for (let p = 0; p < a; p += 1)
187
+ u[p] || (u[p] = "");
188
+ l.length <= 1 ? u[a] = l : u = u.slice(0, a).concat(X(l)), u = u.slice(0, n);
189
+ for (let p = u.length - 1; p >= 0 && !u[p]; p -= 1)
190
+ u.pop();
191
+ const T = F(u.map((p) => p || " ").join(""));
192
+ return u = X(T).map((p, Y) => p === " " && !u[Y] ? u[Y] : p), u;
193
+ }), i = (a, l) => {
194
+ var u;
195
+ const T = J(a, l), p = Math.min(a + l.length, n - 1);
196
+ p !== a && T[a] !== void 0 && ((u = x.current[p]) === null || u === void 0 || u.focus()), W(T);
197
+ }, d = (a) => {
198
+ var l;
199
+ (l = x.current[a]) === null || l === void 0 || l.focus();
200
+ }, $ = {
201
+ variant: O,
202
+ disabled: C,
203
+ status: j,
204
+ mask: P,
205
+ type: f,
206
+ inputMode: R
207
+ };
208
+ return M(/* @__PURE__ */ o.createElement("div", Object.assign({}, V, {
209
+ ref: I,
210
+ className: G(E, {
211
+ [`${E}-sm`]: h === "small",
212
+ [`${E}-lg`]: h === "large",
213
+ [`${E}-rtl`]: z === "rtl"
214
+ }, A, B)
215
+ }), /* @__PURE__ */ o.createElement(q.Provider, {
216
+ value: D
217
+ }, Array.from({
218
+ length: n
219
+ }).map((a, l) => {
220
+ const u = `otp-${l}`, T = L[l] || "";
221
+ return /* @__PURE__ */ o.createElement(Me, Object.assign({
222
+ ref: (p) => {
223
+ x.current[l] = p;
224
+ },
225
+ key: u,
226
+ index: l,
227
+ size: h,
228
+ htmlSize: 1,
229
+ className: `${E}-input`,
230
+ onChange: i,
231
+ value: T,
232
+ onActiveChange: d,
233
+ autoFocus: l === 0 && w
234
+ }, $));
235
+ }))));
236
+ });
237
+ var Te = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { tag: "path", attrs: { d: "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, name: "eye-invisible", theme: "outlined" }, Ve = function(s, r) {
238
+ return /* @__PURE__ */ o.createElement(ae, te({}, s, {
239
+ ref: r,
240
+ icon: Te
241
+ }));
242
+ }, ie = /* @__PURE__ */ o.forwardRef(Ve);
243
+ process.env.NODE_ENV !== "production" && (ie.displayName = "EyeInvisibleOutlined");
244
+ var Be = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, name: "eye", theme: "outlined" }, Fe = function(s, r) {
245
+ return /* @__PURE__ */ o.createElement(ae, te({}, s, {
246
+ ref: r,
247
+ icon: Be
248
+ }));
249
+ }, le = /* @__PURE__ */ o.forwardRef(Fe);
250
+ process.env.NODE_ENV !== "production" && (le.displayName = "EyeOutlined");
251
+ var Le = function(e, s) {
252
+ var r = {};
253
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
254
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
255
+ s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
256
+ return r;
257
+ };
258
+ const Ke = (e) => e ? /* @__PURE__ */ o.createElement(le, null) : /* @__PURE__ */ o.createElement(ie, null), Ue = {
259
+ click: "onClick",
260
+ hover: "onMouseOver"
261
+ }, ue = /* @__PURE__ */ o.forwardRef((e, s) => {
262
+ const {
263
+ disabled: r,
264
+ action: n = "click",
265
+ visibilityToggle: t = !0,
266
+ iconRender: c = Ke
267
+ } = e, v = o.useContext(ve), g = r ?? v, b = typeof t == "object" && t.visible !== void 0, [O, C] = de(() => b ? t.visible : !1), m = pe(null);
268
+ o.useEffect(() => {
269
+ b && C(t.visible);
270
+ }, [b, t]);
271
+ const w = xe(m), P = () => {
272
+ var h;
273
+ if (g)
274
+ return;
275
+ O && w();
276
+ const N = !O;
277
+ C(N), typeof t == "object" && ((h = t.onVisibleChange) === null || h === void 0 || h.call(t, N));
278
+ }, f = (h) => {
279
+ const N = Ue[n] || "", j = c(O), D = {
280
+ [N]: P,
281
+ className: `${h}-icon`,
282
+ key: "passwordIcon",
283
+ onMouseDown: (I) => {
284
+ I.preventDefault();
285
+ },
286
+ onMouseUp: (I) => {
287
+ I.preventDefault();
288
+ }
289
+ };
290
+ return /* @__PURE__ */ o.cloneElement(/* @__PURE__ */ o.isValidElement(j) ? j : /* @__PURE__ */ o.createElement("span", null, j), D);
291
+ }, {
292
+ className: y,
293
+ prefixCls: R,
294
+ inputPrefixCls: k,
295
+ size: _
296
+ } = e, z = Le(e, ["className", "prefixCls", "inputPrefixCls", "size"]), {
297
+ getPrefixCls: E
298
+ } = o.useContext(H), V = E("input", k), S = E("input-password", R), M = t && f(S), B = G(S, y, {
299
+ [`${S}-${_}`]: !!_
300
+ }), A = Object.assign(Object.assign({}, we(z, ["suffix", "iconRender", "visibilityToggle"])), {
301
+ type: O ? "text" : "password",
302
+ className: B,
303
+ prefixCls: V,
304
+ suffix: M
305
+ });
306
+ return _ && (A.size = _), /* @__PURE__ */ o.createElement(Q, Object.assign({
307
+ ref: se(s, m)
308
+ }, A));
309
+ });
310
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Input.Password");
311
+ var Xe = function(e, s) {
312
+ var r = {};
313
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && s.indexOf(n) < 0 && (r[n] = e[n]);
314
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var t = 0, n = Object.getOwnPropertySymbols(e); t < n.length; t++)
315
+ s.indexOf(n[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[t]) && (r[n[t]] = e[n[t]]);
316
+ return r;
317
+ };
318
+ const ce = /* @__PURE__ */ o.forwardRef((e, s) => {
319
+ const {
320
+ prefixCls: r,
321
+ inputPrefixCls: n,
322
+ className: t,
323
+ size: c,
324
+ suffix: v,
325
+ enterButton: g = !1,
326
+ addonAfter: b,
327
+ loading: O,
328
+ disabled: C,
329
+ onSearch: m,
330
+ onChange: w,
331
+ onCompositionStart: P,
332
+ onCompositionEnd: f
333
+ } = e, y = Xe(e, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]), {
334
+ getPrefixCls: R,
335
+ direction: k
336
+ } = o.useContext(H), _ = o.useRef(!1), z = R("input-search", r), E = R("input", n), {
337
+ compactSize: V
338
+ } = Ne(z, k), S = re((i) => {
339
+ var d;
340
+ return (d = c ?? V) !== null && d !== void 0 ? d : i;
341
+ }), M = o.useRef(null), B = (i) => {
342
+ i != null && i.target && i.type === "click" && m && m(i.target.value, i, {
343
+ source: "clear"
344
+ }), w == null || w(i);
345
+ }, A = (i) => {
346
+ var d;
347
+ document.activeElement === ((d = M.current) === null || d === void 0 ? void 0 : d.input) && i.preventDefault();
348
+ }, h = (i) => {
349
+ var d, $;
350
+ m && m(($ = (d = M.current) === null || d === void 0 ? void 0 : d.input) === null || $ === void 0 ? void 0 : $.value, i, {
351
+ source: "input"
352
+ });
353
+ }, N = (i) => {
354
+ _.current || O || h(i);
355
+ }, j = typeof g == "boolean" ? /* @__PURE__ */ o.createElement(_e, null) : null, D = `${z}-button`;
356
+ let I;
357
+ const x = g || {}, F = x.type && x.type.__ANT_BUTTON === !0;
358
+ F || x.type === "button" ? I = ne(x, Object.assign({
359
+ onMouseDown: A,
360
+ onClick: (i) => {
361
+ var d, $;
362
+ ($ = (d = x == null ? void 0 : x.props) === null || d === void 0 ? void 0 : d.onClick) === null || $ === void 0 || $.call(d, i), h(i);
363
+ },
364
+ key: "enterButton"
365
+ }, F ? {
366
+ className: D,
367
+ size: S
368
+ } : {})) : I = /* @__PURE__ */ o.createElement(ze, {
369
+ className: D,
370
+ type: g ? "primary" : void 0,
371
+ size: S,
372
+ disabled: C,
373
+ key: "enterButton",
374
+ onMouseDown: A,
375
+ onClick: h,
376
+ loading: O,
377
+ icon: j
378
+ }, g), b && (I = [I, ne(b, {
379
+ key: "addonAfter"
380
+ })]);
381
+ const L = G(z, {
382
+ [`${z}-rtl`]: k === "rtl",
383
+ [`${z}-${S}`]: !!S,
384
+ [`${z}-with-button`]: !!g
385
+ }, t), U = Object.assign(Object.assign({}, y), {
386
+ className: L,
387
+ prefixCls: E,
388
+ type: "search"
389
+ }), W = (i) => {
390
+ _.current = !0, P == null || P(i);
391
+ }, J = (i) => {
392
+ _.current = !1, f == null || f(i);
393
+ };
394
+ return /* @__PURE__ */ o.createElement(Q, Object.assign({
395
+ ref: se(M, s),
396
+ onPressEnter: N
397
+ }, U, {
398
+ size: S,
399
+ onCompositionStart: W,
400
+ onCompositionEnd: J,
401
+ addonAfter: I,
402
+ suffix: v,
403
+ onChange: B,
404
+ disabled: C
405
+ }));
406
+ });
407
+ process.env.NODE_ENV !== "production" && (ce.displayName = "Search");
408
+ const K = Q;
409
+ K.Group = je;
410
+ K.Search = ce;
411
+ K.TextArea = Ee;
412
+ K.Password = ue;
413
+ K.OTP = De;
414
+ export {
415
+ K as I
416
+ };
@@ -0,0 +1,288 @@
1
+ import * as l from "react";
2
+ import { e as O } from "./presets-Djh_L_6R.js";
3
+ import { u as X } from "./useMergedState-D6toxSxh.js";
4
+ import { K as Y } from "./KeyCode-DM2sFh3-.js";
5
+ import { g as Z } from "./motion-CUN72xsH.js";
6
+ import { c as q } from "./reactNode-sKPeiqPL.js";
7
+ import { j as J, m as Q, k as ee, C as k } from "./index-BbTV2Cw5.js";
8
+ import { i as ne, g as te, a as oe, P as re, T as ae } from "./index-DWjq9XYj.js";
9
+ import "./index-D0U6r5O7.js";
10
+ import { g as ie } from "./roundedArrow-DI_Q-xdU.js";
11
+ import "./index-DLdU7Tpd.js";
12
+ import { P as le } from "./presetColors-Cl8UP3Nw.js";
13
+ const P = (e) => e ? typeof e == "function" ? e() : e : null, se = (e) => {
14
+ const {
15
+ componentCls: t,
16
+ popoverColor: o,
17
+ titleMinWidth: n,
18
+ fontWeightStrong: r,
19
+ innerPadding: a,
20
+ boxShadowSecondary: s,
21
+ colorTextHeading: d,
22
+ borderRadiusLG: u,
23
+ zIndexPopup: f,
24
+ titleMarginBottom: m,
25
+ colorBgElevated: g,
26
+ popoverBg: y,
27
+ titleBorderBottom: x,
28
+ innerContentPadding: p,
29
+ titlePadding: b
30
+ } = e;
31
+ return [
32
+ {
33
+ [t]: Object.assign(Object.assign({}, ee(e)), {
34
+ position: "absolute",
35
+ top: 0,
36
+ // use `left` to fix https://github.com/ant-design/ant-design/issues/39195
37
+ left: {
38
+ _skip_check_: !0,
39
+ value: 0
40
+ },
41
+ zIndex: f,
42
+ fontWeight: "normal",
43
+ whiteSpace: "normal",
44
+ textAlign: "start",
45
+ cursor: "auto",
46
+ userSelect: "text",
47
+ // When use `autoArrow`, origin will follow the arrow position
48
+ "--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
49
+ transformOrigin: ["var(--valid-offset-x, 50%)", "var(--arrow-y, 50%)"].join(" "),
50
+ "--antd-arrow-background-color": g,
51
+ width: "max-content",
52
+ maxWidth: "100vw",
53
+ "&-rtl": {
54
+ direction: "rtl"
55
+ },
56
+ "&-hidden": {
57
+ display: "none"
58
+ },
59
+ [`${t}-content`]: {
60
+ position: "relative"
61
+ },
62
+ [`${t}-inner`]: {
63
+ backgroundColor: y,
64
+ backgroundClip: "padding-box",
65
+ borderRadius: u,
66
+ boxShadow: s,
67
+ padding: a
68
+ },
69
+ [`${t}-title`]: {
70
+ minWidth: n,
71
+ marginBottom: m,
72
+ color: d,
73
+ fontWeight: r,
74
+ borderBottom: x,
75
+ padding: b
76
+ },
77
+ [`${t}-inner-content`]: {
78
+ color: o,
79
+ padding: p
80
+ }
81
+ })
82
+ },
83
+ // Arrow Style
84
+ te(e, "var(--antd-arrow-background-color)"),
85
+ // Pure Render
86
+ {
87
+ [`${t}-pure`]: {
88
+ position: "relative",
89
+ maxWidth: "none",
90
+ margin: e.sizePopupArrow,
91
+ display: "inline-block",
92
+ [`${t}-content`]: {
93
+ display: "inline-block"
94
+ }
95
+ }
96
+ }
97
+ ];
98
+ }, de = (e) => {
99
+ const {
100
+ componentCls: t
101
+ } = e;
102
+ return {
103
+ [t]: le.map((o) => {
104
+ const n = e[`${o}6`];
105
+ return {
106
+ [`&${t}-${o}`]: {
107
+ "--antd-arrow-background-color": n,
108
+ [`${t}-inner`]: {
109
+ backgroundColor: n
110
+ },
111
+ [`${t}-arrow`]: {
112
+ background: "transparent"
113
+ }
114
+ }
115
+ };
116
+ })
117
+ };
118
+ }, ce = (e) => {
119
+ const {
120
+ lineWidth: t,
121
+ controlHeight: o,
122
+ fontHeight: n,
123
+ padding: r,
124
+ wireframe: a,
125
+ zIndexPopupBase: s,
126
+ borderRadiusLG: d,
127
+ marginXS: u,
128
+ lineType: f,
129
+ colorSplit: m,
130
+ paddingSM: g
131
+ } = e, y = o - n, x = y / 2, p = y / 2 - t, b = r;
132
+ return Object.assign(Object.assign(Object.assign({
133
+ titleMinWidth: 177,
134
+ zIndexPopup: s + 30
135
+ }, ie(e)), oe({
136
+ contentRadius: d,
137
+ limitVerticalRadius: !0
138
+ })), {
139
+ // internal
140
+ innerPadding: a ? 0 : 12,
141
+ titleMarginBottom: a ? 0 : u,
142
+ titlePadding: a ? `${x}px ${b}px ${p}px` : 0,
143
+ titleBorderBottom: a ? `${t}px ${f} ${m}` : "none",
144
+ innerContentPadding: a ? `${g}px ${b}px` : 0
145
+ });
146
+ }, T = J("Popover", (e) => {
147
+ const {
148
+ colorBgElevated: t,
149
+ colorText: o
150
+ } = e, n = Q(e, {
151
+ popoverBg: t,
152
+ popoverColor: o
153
+ });
154
+ return [se(n), de(n), ne(n, "zoom-big")];
155
+ }, ce, {
156
+ resetStyle: !1,
157
+ deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
158
+ });
159
+ var ue = function(e, t) {
160
+ var o = {};
161
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
162
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
163
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
164
+ return o;
165
+ };
166
+ const I = (e) => {
167
+ let {
168
+ title: t,
169
+ content: o,
170
+ prefixCls: n
171
+ } = e;
172
+ return !t && !o ? null : /* @__PURE__ */ l.createElement(l.Fragment, null, t && /* @__PURE__ */ l.createElement("div", {
173
+ className: `${n}-title`
174
+ }, t), o && /* @__PURE__ */ l.createElement("div", {
175
+ className: `${n}-inner-content`
176
+ }, o));
177
+ }, pe = (e) => {
178
+ const {
179
+ hashId: t,
180
+ prefixCls: o,
181
+ className: n,
182
+ style: r,
183
+ placement: a = "top",
184
+ title: s,
185
+ content: d,
186
+ children: u
187
+ } = e, f = P(s), m = P(d), g = O(t, o, `${o}-pure`, `${o}-placement-${a}`, n);
188
+ return /* @__PURE__ */ l.createElement("div", {
189
+ className: g,
190
+ style: r
191
+ }, /* @__PURE__ */ l.createElement("div", {
192
+ className: `${o}-arrow`
193
+ }), /* @__PURE__ */ l.createElement(re, Object.assign({}, e, {
194
+ className: t,
195
+ prefixCls: o
196
+ }), u || /* @__PURE__ */ l.createElement(I, {
197
+ prefixCls: o,
198
+ title: f,
199
+ content: m
200
+ })));
201
+ }, fe = (e) => {
202
+ const {
203
+ prefixCls: t,
204
+ className: o
205
+ } = e, n = ue(e, ["prefixCls", "className"]), {
206
+ getPrefixCls: r
207
+ } = l.useContext(k), a = r("popover", t), [s, d, u] = T(a);
208
+ return s(/* @__PURE__ */ l.createElement(pe, Object.assign({}, n, {
209
+ prefixCls: a,
210
+ hashId: d,
211
+ className: O(o, u)
212
+ })));
213
+ };
214
+ var me = function(e, t) {
215
+ var o = {};
216
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
217
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
218
+ t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
219
+ return o;
220
+ };
221
+ const ge = /* @__PURE__ */ l.forwardRef((e, t) => {
222
+ var o, n, r, a, s, d;
223
+ const {
224
+ prefixCls: u,
225
+ title: f,
226
+ content: m,
227
+ overlayClassName: g,
228
+ placement: y = "top",
229
+ trigger: x = "hover",
230
+ children: p,
231
+ mouseEnterDelay: b = 0.1,
232
+ mouseLeaveDelay: D = 0.1,
233
+ onOpenChange: w,
234
+ overlayStyle: z = {},
235
+ styles: v,
236
+ classNames: C
237
+ } = e, $ = me(e, ["prefixCls", "title", "content", "overlayClassName", "placement", "trigger", "children", "mouseEnterDelay", "mouseLeaveDelay", "onOpenChange", "overlayStyle", "styles", "classNames"]), {
238
+ popover: i,
239
+ getPrefixCls: j
240
+ } = l.useContext(k), N = j("popover", u), [M, R, V] = T(N), A = j(), H = O(g, R, V, (o = i == null ? void 0 : i.classNames) === null || o === void 0 ? void 0 : o.root, C == null ? void 0 : C.root), L = O((n = i == null ? void 0 : i.classNames) === null || n === void 0 ? void 0 : n.body, C == null ? void 0 : C.body), [K, F] = X(!1, {
241
+ value: (r = e.open) !== null && r !== void 0 ? r : e.visible,
242
+ defaultValue: (a = e.defaultOpen) !== null && a !== void 0 ? a : e.defaultVisible
243
+ }), E = (c, h) => {
244
+ F(c, !0), w == null || w(c, h);
245
+ }, G = (c) => {
246
+ c.keyCode === Y.ESC && E(!1, c);
247
+ }, U = (c) => {
248
+ E(c);
249
+ }, _ = P(f), B = P(m);
250
+ return M(/* @__PURE__ */ l.createElement(ae, Object.assign({
251
+ placement: y,
252
+ trigger: x,
253
+ mouseEnterDelay: b,
254
+ mouseLeaveDelay: D
255
+ }, $, {
256
+ prefixCls: N,
257
+ classNames: {
258
+ root: H,
259
+ body: L
260
+ },
261
+ styles: {
262
+ root: Object.assign(Object.assign(Object.assign(Object.assign({}, (s = i == null ? void 0 : i.styles) === null || s === void 0 ? void 0 : s.root), i == null ? void 0 : i.style), z), v == null ? void 0 : v.root),
263
+ body: Object.assign(Object.assign({}, (d = i == null ? void 0 : i.styles) === null || d === void 0 ? void 0 : d.body), v == null ? void 0 : v.body)
264
+ },
265
+ ref: t,
266
+ open: K,
267
+ onOpenChange: U,
268
+ overlay: _ || B ? /* @__PURE__ */ l.createElement(I, {
269
+ prefixCls: N,
270
+ title: _,
271
+ content: B
272
+ }) : null,
273
+ transitionName: Z(A, "zoom-big", $.transitionName),
274
+ "data-popover-inject": !0
275
+ }), q(p, {
276
+ onKeyDown: (c) => {
277
+ var h, S;
278
+ /* @__PURE__ */ l.isValidElement(p) && ((S = p == null ? void 0 : (h = p.props).onKeyDown) === null || S === void 0 || S.call(h, c)), G(c);
279
+ }
280
+ })));
281
+ }), W = ge;
282
+ W._InternalPanelDoNotUseOrYouWillBeFired = fe;
283
+ process.env.NODE_ENV !== "production" && (W.displayName = "Popover");
284
+ export {
285
+ fe as P,
286
+ W as a,
287
+ P as g
288
+ };