@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
@@ -1,1690 +0,0 @@
1
- import * as K from "react";
2
- import f, { useRef as le, cloneElement as xn, forwardRef as We, useState as Me, useImperativeHandle as Ze, useEffect as $e, useContext as Sn } from "react";
3
- import { c as w, d as _e, h as ie, a as Ce, _ as ne, e as Re, f as de } from "./warning-C63HNL9U.js";
4
- import { m as He, q as T, g as $n, o as Qe, F as Cn, x as Je, v as Te, C as ke, D as en, t as yn, n as Le, w as Ve } from "./index-oK7z6jnz.js";
5
- import { u as Pe, o as wn } from "./isVisible-A-IfeFoT.js";
6
- import { R as En } from "./index-bKlRxQp4.js";
7
- import { R as Rn } from "./CloseCircleFilled-DXCxlIQL.js";
8
- import { u as nn, a as Fe, g as rn } from "./useVariants-DvhXfgJY.js";
9
- import { u as tn, F as an } from "./context-BMW3aJEf.js";
10
- import { b as In, a as on } from "./Compact-CGY560JF.js";
11
- import { C as Ge } from "./ContextIsolator-D5x2Ih51.js";
12
- import { g as zn } from "./compact-item-DH13cl8A.js";
13
- function On(e) {
14
- return He(e, {
15
- inputAffixPadding: e.paddingXXS
16
- });
17
- }
18
- const Bn = (e) => {
19
- const {
20
- controlHeight: n,
21
- fontSize: r,
22
- lineHeight: t,
23
- lineWidth: a,
24
- controlHeightSM: s,
25
- controlHeightLG: i,
26
- fontSizeLG: l,
27
- lineHeightLG: S,
28
- paddingSM: g,
29
- controlPaddingHorizontalSM: p,
30
- controlPaddingHorizontal: C,
31
- colorFillAlter: E,
32
- colorPrimaryHover: G,
33
- colorPrimary: R,
34
- controlOutlineWidth: A,
35
- controlOutline: re,
36
- colorErrorOutline: ee,
37
- colorWarningOutline: y,
38
- colorBgContainer: o
39
- } = e;
40
- return {
41
- paddingBlock: Math.max(Math.round((n - r * t) / 2 * 10) / 10 - a, 0),
42
- paddingBlockSM: Math.max(Math.round((s - r * t) / 2 * 10) / 10 - a, 0),
43
- paddingBlockLG: Math.ceil((i - l * S) / 2 * 10) / 10 - a,
44
- paddingInline: g - a,
45
- paddingInlineSM: p - a,
46
- paddingInlineLG: C - a,
47
- addonBg: E,
48
- activeBorderColor: R,
49
- hoverBorderColor: G,
50
- activeShadow: `0 0 0 ${A}px ${re}`,
51
- errorActiveShadow: `0 0 0 ${A}px ${ee}`,
52
- warningActiveShadow: `0 0 0 ${A}px ${y}`,
53
- hoverBg: o,
54
- activeBg: o,
55
- inputFontSize: r,
56
- inputFontSizeLG: l,
57
- inputFontSizeSM: r
58
- };
59
- }, An = (e) => ({
60
- borderColor: e.hoverBorderColor,
61
- backgroundColor: e.hoverBg
62
- }), De = (e) => ({
63
- color: e.colorTextDisabled,
64
- backgroundColor: e.colorBgContainerDisabled,
65
- borderColor: e.colorBorder,
66
- boxShadow: "none",
67
- cursor: "not-allowed",
68
- opacity: 1,
69
- "input[disabled], textarea[disabled]": {
70
- cursor: "not-allowed"
71
- },
72
- "&:hover:not([disabled])": Object.assign({}, An(He(e, {
73
- hoverBorderColor: e.colorBorder,
74
- hoverBg: e.colorBgContainerDisabled
75
- })))
76
- }), ln = (e, n) => ({
77
- background: e.colorBgContainer,
78
- borderWidth: e.lineWidth,
79
- borderStyle: e.lineType,
80
- borderColor: n.borderColor,
81
- "&:hover": {
82
- borderColor: n.hoverBorderColor,
83
- backgroundColor: e.hoverBg
84
- },
85
- "&:focus, &:focus-within": {
86
- borderColor: n.activeBorderColor,
87
- boxShadow: n.activeShadow,
88
- outline: 0,
89
- backgroundColor: e.activeBg
90
- }
91
- }), Ke = (e, n) => ({
92
- [`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, ln(e, n)), {
93
- [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: {
94
- color: n.affixColor
95
- }
96
- }),
97
- [`&${e.componentCls}-status-${n.status}${e.componentCls}-disabled`]: {
98
- borderColor: n.borderColor
99
- }
100
- }), Nn = (e, n) => ({
101
- "&-outlined": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, ln(e, {
102
- borderColor: e.colorBorder,
103
- hoverBorderColor: e.hoverBorderColor,
104
- activeBorderColor: e.activeBorderColor,
105
- activeShadow: e.activeShadow
106
- })), {
107
- [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, De(e))
108
- }), Ke(e, {
109
- status: "error",
110
- borderColor: e.colorError,
111
- hoverBorderColor: e.colorErrorBorderHover,
112
- activeBorderColor: e.colorError,
113
- activeShadow: e.errorActiveShadow,
114
- affixColor: e.colorError
115
- })), Ke(e, {
116
- status: "warning",
117
- borderColor: e.colorWarning,
118
- hoverBorderColor: e.colorWarningBorderHover,
119
- activeBorderColor: e.colorWarning,
120
- activeShadow: e.warningActiveShadow,
121
- affixColor: e.colorWarning
122
- })), n)
123
- }), Xe = (e, n) => ({
124
- [`&${e.componentCls}-group-wrapper-status-${n.status}`]: {
125
- [`${e.componentCls}-group-addon`]: {
126
- borderColor: n.addonBorderColor,
127
- color: n.addonColor
128
- }
129
- }
130
- }), jn = (e) => ({
131
- "&-outlined": Object.assign(Object.assign(Object.assign({
132
- [`${e.componentCls}-group`]: {
133
- "&-addon": {
134
- background: e.addonBg,
135
- border: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
136
- },
137
- "&-addon:first-child": {
138
- borderInlineEnd: 0
139
- },
140
- "&-addon:last-child": {
141
- borderInlineStart: 0
142
- }
143
- }
144
- }, Xe(e, {
145
- status: "error",
146
- addonBorderColor: e.colorError,
147
- addonColor: e.colorErrorText
148
- })), Xe(e, {
149
- status: "warning",
150
- addonBorderColor: e.colorWarning,
151
- addonColor: e.colorWarningText
152
- })), {
153
- [`&${e.componentCls}-group-wrapper-disabled`]: {
154
- [`${e.componentCls}-group-addon`]: Object.assign({}, De(e))
155
- }
156
- })
157
- }), Tn = (e, n) => {
158
- const {
159
- componentCls: r
160
- } = e;
161
- return {
162
- "&-borderless": Object.assign({
163
- background: "transparent",
164
- border: "none",
165
- "&:focus, &:focus-within": {
166
- outline: "none"
167
- },
168
- // >>>>> Disabled
169
- [`&${r}-disabled, &[disabled]`]: {
170
- color: e.colorTextDisabled,
171
- cursor: "not-allowed"
172
- },
173
- // >>>>> Status
174
- [`&${r}-status-error`]: {
175
- "&, & input, & textarea": {
176
- color: e.colorError
177
- }
178
- },
179
- [`&${r}-status-warning`]: {
180
- "&, & input, & textarea": {
181
- color: e.colorWarning
182
- }
183
- }
184
- }, n)
185
- };
186
- }, dn = (e, n) => ({
187
- background: n.bg,
188
- borderWidth: e.lineWidth,
189
- borderStyle: e.lineType,
190
- borderColor: "transparent",
191
- "input&, & input, textarea&, & textarea": {
192
- color: n == null ? void 0 : n.inputColor
193
- },
194
- "&:hover": {
195
- background: n.hoverBg
196
- },
197
- "&:focus, &:focus-within": {
198
- outline: 0,
199
- borderColor: n.activeBorderColor,
200
- backgroundColor: e.activeBg
201
- }
202
- }), qe = (e, n) => ({
203
- [`&${e.componentCls}-status-${n.status}:not(${e.componentCls}-disabled)`]: Object.assign(Object.assign({}, dn(e, n)), {
204
- [`${e.componentCls}-prefix, ${e.componentCls}-suffix`]: {
205
- color: n.affixColor
206
- }
207
- })
208
- }), Fn = (e, n) => ({
209
- "&-filled": Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, dn(e, {
210
- bg: e.colorFillTertiary,
211
- hoverBg: e.colorFillSecondary,
212
- activeBorderColor: e.activeBorderColor
213
- })), {
214
- [`&${e.componentCls}-disabled, &[disabled]`]: Object.assign({}, De(e))
215
- }), qe(e, {
216
- status: "error",
217
- bg: e.colorErrorBg,
218
- hoverBg: e.colorErrorBgHover,
219
- activeBorderColor: e.colorError,
220
- inputColor: e.colorErrorText,
221
- affixColor: e.colorError
222
- })), qe(e, {
223
- status: "warning",
224
- bg: e.colorWarningBg,
225
- hoverBg: e.colorWarningBgHover,
226
- activeBorderColor: e.colorWarning,
227
- inputColor: e.colorWarningText,
228
- affixColor: e.colorWarning
229
- })), n)
230
- }), Ue = (e, n) => ({
231
- [`&${e.componentCls}-group-wrapper-status-${n.status}`]: {
232
- [`${e.componentCls}-group-addon`]: {
233
- background: n.addonBg,
234
- color: n.addonColor
235
- }
236
- }
237
- }), Wn = (e) => ({
238
- "&-filled": Object.assign(Object.assign(Object.assign({
239
- [`${e.componentCls}-group`]: {
240
- "&-addon": {
241
- background: e.colorFillTertiary
242
- },
243
- [`${e.componentCls}-filled:not(:focus):not(:focus-within)`]: {
244
- "&:not(:first-child)": {
245
- borderInlineStart: `${T(e.lineWidth)} ${e.lineType} ${e.colorSplit}`
246
- },
247
- "&:not(:last-child)": {
248
- borderInlineEnd: `${T(e.lineWidth)} ${e.lineType} ${e.colorSplit}`
249
- }
250
- }
251
- }
252
- }, Ue(e, {
253
- status: "error",
254
- addonBg: e.colorErrorBg,
255
- addonColor: e.colorErrorText
256
- })), Ue(e, {
257
- status: "warning",
258
- addonBg: e.colorWarningBg,
259
- addonColor: e.colorWarningText
260
- })), {
261
- [`&${e.componentCls}-group-wrapper-disabled`]: {
262
- [`${e.componentCls}-group`]: {
263
- "&-addon": {
264
- background: e.colorFillTertiary,
265
- color: e.colorTextDisabled
266
- },
267
- "&-addon:first-child": {
268
- borderInlineStart: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
269
- borderTop: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
270
- borderBottom: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
271
- },
272
- "&-addon:last-child": {
273
- borderInlineEnd: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
274
- borderTop: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
275
- borderBottom: `${T(e.lineWidth)} ${e.lineType} ${e.colorBorder}`
276
- }
277
- }
278
- }
279
- })
280
- }), _n = (e) => ({
281
- // Firefox
282
- "&::-moz-placeholder": {
283
- opacity: 1
284
- },
285
- "&::placeholder": {
286
- color: e,
287
- userSelect: "none"
288
- // https://github.com/ant-design/ant-design/pull/32639
289
- },
290
- "&:placeholder-shown": {
291
- textOverflow: "ellipsis"
292
- }
293
- }), sn = (e) => {
294
- const {
295
- paddingBlockLG: n,
296
- lineHeightLG: r,
297
- borderRadiusLG: t,
298
- paddingInlineLG: a
299
- } = e;
300
- return {
301
- padding: `${T(n)} ${T(a)}`,
302
- fontSize: e.inputFontSizeLG,
303
- lineHeight: r,
304
- borderRadius: t
305
- };
306
- }, un = (e) => ({
307
- padding: `${T(e.paddingBlockSM)} ${T(e.paddingInlineSM)}`,
308
- fontSize: e.inputFontSizeSM,
309
- borderRadius: e.borderRadiusSM
310
- }), cn = (e) => Object.assign(Object.assign({
311
- position: "relative",
312
- display: "inline-block",
313
- width: "100%",
314
- minWidth: 0,
315
- padding: `${T(e.paddingBlock)} ${T(e.paddingInline)}`,
316
- color: e.colorText,
317
- fontSize: e.inputFontSize,
318
- lineHeight: e.lineHeight,
319
- borderRadius: e.borderRadius,
320
- transition: `all ${e.motionDurationMid}`
321
- }, _n(e.colorTextPlaceholder)), {
322
- // Reset height for `textarea`s
323
- "textarea&": {
324
- maxWidth: "100%",
325
- // prevent textarea resize from coming out of its container
326
- height: "auto",
327
- minHeight: e.controlHeight,
328
- lineHeight: e.lineHeight,
329
- verticalAlign: "bottom",
330
- transition: `all ${e.motionDurationSlow}, height 0s`,
331
- resize: "vertical"
332
- },
333
- // Size
334
- "&-lg": Object.assign({}, sn(e)),
335
- "&-sm": Object.assign({}, un(e)),
336
- // RTL
337
- "&-rtl, &-textarea-rtl": {
338
- direction: "rtl"
339
- }
340
- }), Hn = (e) => {
341
- const {
342
- componentCls: n,
343
- antCls: r
344
- } = e;
345
- return {
346
- position: "relative",
347
- display: "table",
348
- width: "100%",
349
- borderCollapse: "separate",
350
- borderSpacing: 0,
351
- // Undo padding and float of grid classes
352
- "&[class*='col-']": {
353
- paddingInlineEnd: e.paddingXS,
354
- "&:last-child": {
355
- paddingInlineEnd: 0
356
- }
357
- },
358
- // Sizing options
359
- [`&-lg ${n}, &-lg > ${n}-group-addon`]: Object.assign({}, sn(e)),
360
- [`&-sm ${n}, &-sm > ${n}-group-addon`]: Object.assign({}, un(e)),
361
- // Fix https://github.com/ant-design/ant-design/issues/5754
362
- [`&-lg ${r}-select-single ${r}-select-selector`]: {
363
- height: e.controlHeightLG
364
- },
365
- [`&-sm ${r}-select-single ${r}-select-selector`]: {
366
- height: e.controlHeightSM
367
- },
368
- [`> ${n}`]: {
369
- display: "table-cell",
370
- "&:not(:first-child):not(:last-child)": {
371
- borderRadius: 0
372
- }
373
- },
374
- [`${n}-group`]: {
375
- "&-addon, &-wrap": {
376
- display: "table-cell",
377
- width: 1,
378
- whiteSpace: "nowrap",
379
- verticalAlign: "middle",
380
- "&:not(:first-child):not(:last-child)": {
381
- borderRadius: 0
382
- }
383
- },
384
- "&-wrap > *": {
385
- display: "block !important"
386
- },
387
- "&-addon": {
388
- position: "relative",
389
- padding: `0 ${T(e.paddingInline)}`,
390
- color: e.colorText,
391
- fontWeight: "normal",
392
- fontSize: e.inputFontSize,
393
- textAlign: "center",
394
- borderRadius: e.borderRadius,
395
- transition: `all ${e.motionDurationSlow}`,
396
- lineHeight: 1,
397
- // Reset Select's style in addon
398
- [`${r}-select`]: {
399
- margin: `${T(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${T(e.calc(e.paddingInline).mul(-1).equal())}`,
400
- [`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]: {
401
- [`${r}-select-selector`]: {
402
- backgroundColor: "inherit",
403
- border: `${T(e.lineWidth)} ${e.lineType} transparent`,
404
- boxShadow: "none"
405
- }
406
- }
407
- },
408
- // https://github.com/ant-design/ant-design/issues/31333
409
- [`${r}-cascader-picker`]: {
410
- margin: `-9px ${T(e.calc(e.paddingInline).mul(-1).equal())}`,
411
- backgroundColor: "transparent",
412
- [`${r}-cascader-input`]: {
413
- textAlign: "start",
414
- border: 0,
415
- boxShadow: "none"
416
- }
417
- }
418
- }
419
- },
420
- [n]: {
421
- width: "100%",
422
- marginBottom: 0,
423
- textAlign: "inherit",
424
- "&:focus": {
425
- zIndex: 1,
426
- // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
427
- borderInlineEndWidth: 1
428
- },
429
- "&:hover": {
430
- zIndex: 1,
431
- borderInlineEndWidth: 1,
432
- [`${n}-search-with-button &`]: {
433
- zIndex: 0
434
- }
435
- }
436
- },
437
- // Reset rounded corners
438
- [`> ${n}:first-child, ${n}-group-addon:first-child`]: {
439
- borderStartEndRadius: 0,
440
- borderEndEndRadius: 0,
441
- // Reset Select's style in addon
442
- [`${r}-select ${r}-select-selector`]: {
443
- borderStartEndRadius: 0,
444
- borderEndEndRadius: 0
445
- }
446
- },
447
- [`> ${n}-affix-wrapper`]: {
448
- [`&:not(:first-child) ${n}`]: {
449
- borderStartStartRadius: 0,
450
- borderEndStartRadius: 0
451
- },
452
- [`&:not(:last-child) ${n}`]: {
453
- borderStartEndRadius: 0,
454
- borderEndEndRadius: 0
455
- }
456
- },
457
- [`> ${n}:last-child, ${n}-group-addon:last-child`]: {
458
- borderStartStartRadius: 0,
459
- borderEndStartRadius: 0,
460
- // Reset Select's style in addon
461
- [`${r}-select ${r}-select-selector`]: {
462
- borderStartStartRadius: 0,
463
- borderEndStartRadius: 0
464
- }
465
- },
466
- [`${n}-affix-wrapper`]: {
467
- "&:not(:last-child)": {
468
- borderStartEndRadius: 0,
469
- borderEndEndRadius: 0,
470
- [`${n}-search &`]: {
471
- borderStartStartRadius: e.borderRadius,
472
- borderEndStartRadius: e.borderRadius
473
- }
474
- },
475
- [`&:not(:first-child), ${n}-search &:not(:first-child)`]: {
476
- borderStartStartRadius: 0,
477
- borderEndStartRadius: 0
478
- }
479
- },
480
- [`&${n}-group-compact`]: Object.assign(Object.assign({
481
- display: "block"
482
- }, Cn()), {
483
- [`${n}-group-addon, ${n}-group-wrap, > ${n}`]: {
484
- "&:not(:first-child):not(:last-child)": {
485
- borderInlineEndWidth: e.lineWidth,
486
- "&:hover, &:focus": {
487
- zIndex: 1
488
- }
489
- }
490
- },
491
- "& > *": {
492
- display: "inline-flex",
493
- float: "none",
494
- verticalAlign: "top",
495
- // https://github.com/ant-design/ant-design-pro/issues/139
496
- borderRadius: 0
497
- },
498
- [`
499
- & > ${n}-affix-wrapper,
500
- & > ${n}-number-affix-wrapper,
501
- & > ${r}-picker-range
502
- `]: {
503
- display: "inline-flex"
504
- },
505
- "& > *:not(:last-child)": {
506
- marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal(),
507
- borderInlineEndWidth: e.lineWidth
508
- },
509
- // Undo float for .ant-input-group .ant-input
510
- [n]: {
511
- float: "none"
512
- },
513
- // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
514
- [`& > ${r}-select > ${r}-select-selector,
515
- & > ${r}-select-auto-complete ${n},
516
- & > ${r}-cascader-picker ${n},
517
- & > ${n}-group-wrapper ${n}`]: {
518
- borderInlineEndWidth: e.lineWidth,
519
- borderRadius: 0,
520
- "&:hover, &:focus": {
521
- zIndex: 1
522
- }
523
- },
524
- [`& > ${r}-select-focused`]: {
525
- zIndex: 1
526
- },
527
- // update z-index for arrow icon
528
- [`& > ${r}-select > ${r}-select-arrow`]: {
529
- zIndex: 1
530
- // https://github.com/ant-design/ant-design/issues/20371
531
- },
532
- [`& > *:first-child,
533
- & > ${r}-select:first-child > ${r}-select-selector,
534
- & > ${r}-select-auto-complete:first-child ${n},
535
- & > ${r}-cascader-picker:first-child ${n}`]: {
536
- borderStartStartRadius: e.borderRadius,
537
- borderEndStartRadius: e.borderRadius
538
- },
539
- [`& > *:last-child,
540
- & > ${r}-select:last-child > ${r}-select-selector,
541
- & > ${r}-cascader-picker:last-child ${n},
542
- & > ${r}-cascader-picker-focused:last-child ${n}`]: {
543
- borderInlineEndWidth: e.lineWidth,
544
- borderStartEndRadius: e.borderRadius,
545
- borderEndEndRadius: e.borderRadius
546
- },
547
- // https://github.com/ant-design/ant-design/issues/12493
548
- [`& > ${r}-select-auto-complete ${n}`]: {
549
- verticalAlign: "top"
550
- },
551
- [`${n}-group-wrapper + ${n}-group-wrapper`]: {
552
- marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
553
- [`${n}-affix-wrapper`]: {
554
- borderRadius: 0
555
- }
556
- },
557
- [`${n}-group-wrapper:not(:last-child)`]: {
558
- [`&${n}-search > ${n}-group`]: {
559
- [`& > ${n}-group-addon > ${n}-search-button`]: {
560
- borderRadius: 0
561
- },
562
- [`& > ${n}`]: {
563
- borderStartStartRadius: e.borderRadius,
564
- borderStartEndRadius: 0,
565
- borderEndEndRadius: 0,
566
- borderEndStartRadius: e.borderRadius
567
- }
568
- }
569
- }
570
- })
571
- };
572
- }, Pn = (e) => {
573
- const {
574
- componentCls: n,
575
- controlHeightSM: r,
576
- lineWidth: t,
577
- calc: a
578
- } = e, i = a(r).sub(a(t).mul(2)).sub(16).div(2).equal();
579
- return {
580
- [n]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Qe(e)), cn(e)), Nn(e)), Fn(e)), Tn(e)), {
581
- '&[type="color"]': {
582
- height: e.controlHeight,
583
- [`&${n}-lg`]: {
584
- height: e.controlHeightLG
585
- },
586
- [`&${n}-sm`]: {
587
- height: r,
588
- paddingTop: i,
589
- paddingBottom: i
590
- }
591
- },
592
- '&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
593
- "-webkit-appearance": "none"
594
- }
595
- })
596
- };
597
- }, Dn = (e) => {
598
- const {
599
- componentCls: n
600
- } = e;
601
- return {
602
- // ========================= Input =========================
603
- [`${n}-clear-icon`]: {
604
- margin: 0,
605
- padding: 0,
606
- lineHeight: 0,
607
- color: e.colorTextQuaternary,
608
- fontSize: e.fontSizeIcon,
609
- verticalAlign: -1,
610
- // https://github.com/ant-design/ant-design/pull/18151
611
- // https://codesandbox.io/s/wizardly-sun-u10br
612
- cursor: "pointer",
613
- transition: `color ${e.motionDurationSlow}`,
614
- border: "none",
615
- outline: "none",
616
- backgroundColor: "transparent",
617
- "&:hover": {
618
- color: e.colorTextTertiary
619
- },
620
- "&:active": {
621
- color: e.colorText
622
- },
623
- "&-hidden": {
624
- visibility: "hidden"
625
- },
626
- "&-has-suffix": {
627
- margin: `0 ${T(e.inputAffixPadding)}`
628
- }
629
- }
630
- };
631
- }, Mn = (e) => {
632
- const {
633
- componentCls: n,
634
- inputAffixPadding: r,
635
- colorTextDescription: t,
636
- motionDurationSlow: a,
637
- colorIcon: s,
638
- colorIconHover: i,
639
- iconCls: l
640
- } = e, S = `${n}-affix-wrapper`, g = `${n}-affix-wrapper-disabled`;
641
- return {
642
- [S]: Object.assign(Object.assign(Object.assign(Object.assign({}, cn(e)), {
643
- display: "inline-flex",
644
- [`&:not(${n}-disabled):hover`]: {
645
- zIndex: 1,
646
- [`${n}-search-with-button &`]: {
647
- zIndex: 0
648
- }
649
- },
650
- "&-focused, &:focus": {
651
- zIndex: 1
652
- },
653
- [`> input${n}`]: {
654
- padding: 0
655
- },
656
- [`> input${n}, > textarea${n}`]: {
657
- fontSize: "inherit",
658
- border: "none",
659
- borderRadius: 0,
660
- outline: "none",
661
- background: "transparent",
662
- color: "inherit",
663
- "&::-ms-reveal": {
664
- display: "none"
665
- },
666
- "&:focus": {
667
- boxShadow: "none !important"
668
- }
669
- },
670
- "&::before": {
671
- display: "inline-block",
672
- width: 0,
673
- visibility: "hidden",
674
- content: '"\\a0"'
675
- },
676
- [n]: {
677
- "&-prefix, &-suffix": {
678
- display: "flex",
679
- flex: "none",
680
- alignItems: "center",
681
- "> *:not(:last-child)": {
682
- marginInlineEnd: e.paddingXS
683
- }
684
- },
685
- "&-show-count-suffix": {
686
- color: t
687
- },
688
- "&-show-count-has-suffix": {
689
- marginInlineEnd: e.paddingXXS
690
- },
691
- "&-prefix": {
692
- marginInlineEnd: r
693
- },
694
- "&-suffix": {
695
- marginInlineStart: r
696
- }
697
- }
698
- }), Dn(e)), {
699
- // password
700
- [`${l}${n}-password-icon`]: {
701
- color: s,
702
- cursor: "pointer",
703
- transition: `all ${a}`,
704
- "&:hover": {
705
- color: i
706
- }
707
- }
708
- }),
709
- [g]: {
710
- // password disabled
711
- [`${l}${n}-password-icon`]: {
712
- color: s,
713
- cursor: "not-allowed",
714
- "&:hover": {
715
- color: s
716
- }
717
- }
718
- }
719
- };
720
- }, Ln = (e) => {
721
- const {
722
- componentCls: n,
723
- borderRadiusLG: r,
724
- borderRadiusSM: t
725
- } = e;
726
- return {
727
- [`${n}-group`]: Object.assign(Object.assign(Object.assign({}, Qe(e)), Hn(e)), {
728
- "&-rtl": {
729
- direction: "rtl"
730
- },
731
- "&-wrapper": Object.assign(Object.assign(Object.assign({
732
- display: "inline-block",
733
- width: "100%",
734
- textAlign: "start",
735
- verticalAlign: "top",
736
- "&-rtl": {
737
- direction: "rtl"
738
- },
739
- // Size
740
- "&-lg": {
741
- [`${n}-group-addon`]: {
742
- borderRadius: r,
743
- fontSize: e.inputFontSizeLG
744
- }
745
- },
746
- "&-sm": {
747
- [`${n}-group-addon`]: {
748
- borderRadius: t
749
- }
750
- }
751
- }, jn(e)), Wn(e)), {
752
- // '&-disabled': {
753
- // [`${componentCls}-group-addon`]: {
754
- // ...genDisabledStyle(token),
755
- // },
756
- // },
757
- // Fix the issue of using icons in Space Compact mode
758
- // https://github.com/ant-design/ant-design/issues/42122
759
- [`&:not(${n}-compact-first-item):not(${n}-compact-last-item)${n}-compact-item`]: {
760
- [`${n}, ${n}-group-addon`]: {
761
- borderRadius: 0
762
- }
763
- },
764
- [`&:not(${n}-compact-last-item)${n}-compact-first-item`]: {
765
- [`${n}, ${n}-group-addon`]: {
766
- borderStartEndRadius: 0,
767
- borderEndEndRadius: 0
768
- }
769
- },
770
- [`&:not(${n}-compact-first-item)${n}-compact-last-item`]: {
771
- [`${n}, ${n}-group-addon`]: {
772
- borderStartStartRadius: 0,
773
- borderEndStartRadius: 0
774
- }
775
- },
776
- // Fix the issue of input use show-count param in space compact mode
777
- // https://github.com/ant-design/ant-design/issues/46872
778
- [`&:not(${n}-compact-last-item)${n}-compact-item`]: {
779
- [`${n}-affix-wrapper`]: {
780
- borderStartEndRadius: 0,
781
- borderEndEndRadius: 0
782
- }
783
- },
784
- // Fix the issue of input use `addonAfter` param in space compact mode
785
- // https://github.com/ant-design/ant-design/issues/52483
786
- [`&:not(${n}-compact-first-item)${n}-compact-item`]: {
787
- [`${n}-affix-wrapper`]: {
788
- borderStartStartRadius: 0,
789
- borderEndStartRadius: 0
790
- }
791
- }
792
- })
793
- })
794
- };
795
- }, Vn = (e) => {
796
- const {
797
- componentCls: n,
798
- antCls: r
799
- } = e, t = `${n}-search`;
800
- return {
801
- [t]: {
802
- [n]: {
803
- "&:hover, &:focus": {
804
- [`+ ${n}-group-addon ${t}-button:not(${r}-btn-primary)`]: {
805
- borderInlineStartColor: e.colorPrimaryHover
806
- }
807
- }
808
- },
809
- [`${n}-affix-wrapper`]: {
810
- height: e.controlHeight,
811
- borderRadius: 0
812
- },
813
- // fix slight height diff in Firefox:
814
- // https://ant.design/components/auto-complete-cn/#auto-complete-demo-certain-category
815
- [`${n}-lg`]: {
816
- lineHeight: e.calc(e.lineHeightLG).sub(2e-4).equal()
817
- },
818
- [`> ${n}-group`]: {
819
- [`> ${n}-group-addon:last-child`]: {
820
- insetInlineStart: -1,
821
- padding: 0,
822
- border: 0,
823
- [`${t}-button`]: {
824
- // Fix https://github.com/ant-design/ant-design/issues/47150
825
- marginInlineEnd: -1,
826
- borderStartStartRadius: 0,
827
- borderEndStartRadius: 0,
828
- boxShadow: "none"
829
- },
830
- [`${t}-button:not(${r}-btn-primary)`]: {
831
- color: e.colorTextDescription,
832
- "&:hover": {
833
- color: e.colorPrimaryHover
834
- },
835
- "&:active": {
836
- color: e.colorPrimaryActive
837
- },
838
- [`&${r}-btn-loading::before`]: {
839
- insetInlineStart: 0,
840
- insetInlineEnd: 0,
841
- insetBlockStart: 0,
842
- insetBlockEnd: 0
843
- }
844
- }
845
- }
846
- },
847
- [`${t}-button`]: {
848
- height: e.controlHeight,
849
- "&:hover, &:focus": {
850
- zIndex: 1
851
- }
852
- },
853
- "&-large": {
854
- [`${n}-affix-wrapper, ${t}-button`]: {
855
- height: e.controlHeightLG
856
- }
857
- },
858
- "&-small": {
859
- [`${n}-affix-wrapper, ${t}-button`]: {
860
- height: e.controlHeightSM
861
- }
862
- },
863
- "&-rtl": {
864
- direction: "rtl"
865
- },
866
- // ===================== Compact Item Customized Styles =====================
867
- [`&${n}-compact-item`]: {
868
- [`&:not(${n}-compact-last-item)`]: {
869
- [`${n}-group-addon`]: {
870
- [`${n}-search-button`]: {
871
- marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal(),
872
- borderRadius: 0
873
- }
874
- }
875
- },
876
- [`&:not(${n}-compact-first-item)`]: {
877
- [`${n},${n}-affix-wrapper`]: {
878
- borderRadius: 0
879
- }
880
- },
881
- [`> ${n}-group-addon ${n}-search-button,
882
- > ${n},
883
- ${n}-affix-wrapper`]: {
884
- "&:hover, &:focus, &:active": {
885
- zIndex: 2
886
- }
887
- },
888
- [`> ${n}-affix-wrapper-focused`]: {
889
- zIndex: 2
890
- }
891
- }
892
- }
893
- };
894
- }, Gn = (e) => {
895
- const {
896
- componentCls: n,
897
- paddingLG: r
898
- } = e, t = `${n}-textarea`;
899
- return {
900
- [t]: {
901
- position: "relative",
902
- "&-show-count": {
903
- // https://github.com/ant-design/ant-design/issues/33049
904
- [`> ${n}`]: {
905
- height: "100%"
906
- },
907
- [`${n}-data-count`]: {
908
- position: "absolute",
909
- bottom: e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),
910
- insetInlineEnd: 0,
911
- color: e.colorTextDescription,
912
- whiteSpace: "nowrap",
913
- pointerEvents: "none"
914
- }
915
- },
916
- [`
917
- &-allow-clear > ${n},
918
- &-affix-wrapper${t}-has-feedback ${n}
919
- `]: {
920
- paddingInlineEnd: r
921
- },
922
- [`&-affix-wrapper${n}-affix-wrapper`]: {
923
- padding: 0,
924
- [`> textarea${n}`]: {
925
- fontSize: "inherit",
926
- border: "none",
927
- outline: "none",
928
- background: "transparent",
929
- "&:focus": {
930
- boxShadow: "none !important"
931
- }
932
- },
933
- [`${n}-suffix`]: {
934
- margin: 0,
935
- "> *:not(:last-child)": {
936
- marginInline: 0
937
- },
938
- // Clear Icon
939
- [`${n}-clear-icon`]: {
940
- position: "absolute",
941
- insetInlineEnd: e.paddingInline,
942
- insetBlockStart: e.paddingXS
943
- },
944
- // Feedback Icon
945
- [`${t}-suffix`]: {
946
- position: "absolute",
947
- top: 0,
948
- insetInlineEnd: e.paddingInline,
949
- bottom: 0,
950
- zIndex: 1,
951
- display: "inline-flex",
952
- alignItems: "center",
953
- margin: "auto",
954
- pointerEvents: "none"
955
- }
956
- }
957
- },
958
- [`&-affix-wrapper${n}-affix-wrapper-sm`]: {
959
- [`${n}-suffix`]: {
960
- [`${n}-clear-icon`]: {
961
- insetInlineEnd: e.paddingInlineSM
962
- }
963
- }
964
- }
965
- }
966
- };
967
- }, Kn = (e) => {
968
- const {
969
- componentCls: n
970
- } = e;
971
- return {
972
- [`${n}-out-of-range`]: {
973
- [`&, & input, & textarea, ${n}-show-count-suffix, ${n}-data-count`]: {
974
- color: e.colorError
975
- }
976
- }
977
- };
978
- }, fn = $n("Input", (e) => {
979
- const n = He(e, On(e));
980
- return [
981
- Pn(n),
982
- Gn(n),
983
- Mn(n),
984
- Ln(n),
985
- Vn(n),
986
- Kn(n),
987
- // =====================================================
988
- // == Space Compact ==
989
- // =====================================================
990
- zn(n)
991
- ];
992
- }, Bn, {
993
- resetFont: !1
994
- });
995
- function Xn(e) {
996
- return !!(e.addonBefore || e.addonAfter);
997
- }
998
- function qn(e) {
999
- return !!(e.prefix || e.suffix || e.allowClear);
1000
- }
1001
- function Ye(e, n, r) {
1002
- var t = n.cloneNode(!0), a = Object.create(e, {
1003
- target: {
1004
- value: t
1005
- },
1006
- currentTarget: {
1007
- value: t
1008
- }
1009
- });
1010
- return t.value = r, typeof n.selectionStart == "number" && typeof n.selectionEnd == "number" && (t.selectionStart = n.selectionStart, t.selectionEnd = n.selectionEnd), t.setSelectionRange = function() {
1011
- n.setSelectionRange.apply(n, arguments);
1012
- }, a;
1013
- }
1014
- function Ee(e, n, r, t) {
1015
- if (r) {
1016
- var a = n;
1017
- if (n.type === "click") {
1018
- a = Ye(n, e, ""), r(a);
1019
- return;
1020
- }
1021
- if (e.type !== "file" && t !== void 0) {
1022
- a = Ye(n, e, t), r(a);
1023
- return;
1024
- }
1025
- r(a);
1026
- }
1027
- }
1028
- function gn(e, n) {
1029
- if (e) {
1030
- e.focus(n);
1031
- var r = n || {}, t = r.cursor;
1032
- if (t) {
1033
- var a = e.value.length;
1034
- switch (t) {
1035
- case "start":
1036
- e.setSelectionRange(0, 0);
1037
- break;
1038
- case "end":
1039
- e.setSelectionRange(a, a);
1040
- break;
1041
- default:
1042
- e.setSelectionRange(0, a);
1043
- }
1044
- }
1045
- }
1046
- }
1047
- var pn = /* @__PURE__ */ f.forwardRef(function(e, n) {
1048
- var r, t, a, s = e.inputElement, i = e.children, l = e.prefixCls, S = e.prefix, g = e.suffix, p = e.addonBefore, C = e.addonAfter, E = e.className, G = e.style, R = e.disabled, A = e.readOnly, re = e.focused, ee = e.triggerFocus, y = e.allowClear, o = e.value, Q = e.handleReset, $ = e.hidden, b = e.classes, d = e.classNames, u = e.dataAttrs, c = e.styles, I = e.components, F = e.onClear, h = i ?? s, D = (I == null ? void 0 : I.affixWrapper) || "span", te = (I == null ? void 0 : I.groupWrapper) || "span", W = (I == null ? void 0 : I.wrapper) || "span", v = (I == null ? void 0 : I.groupAddon) || "span", M = le(null), J = function(Y) {
1049
- var Z;
1050
- (Z = M.current) !== null && Z !== void 0 && Z.contains(Y.target) && (ee == null || ee());
1051
- }, ae = qn(e), z = /* @__PURE__ */ xn(h, {
1052
- value: o,
1053
- className: w((r = h.props) === null || r === void 0 ? void 0 : r.className, !ae && (d == null ? void 0 : d.variant)) || null
1054
- }), N = le(null);
1055
- if (f.useImperativeHandle(n, function() {
1056
- return {
1057
- nativeElement: N.current || M.current
1058
- };
1059
- }), ae) {
1060
- var X = null;
1061
- if (y) {
1062
- var _ = !R && !A && o, H = "".concat(l, "-clear-icon"), B = _e(y) === "object" && y !== null && y !== void 0 && y.clearIcon ? y.clearIcon : "✖";
1063
- X = /* @__PURE__ */ f.createElement("button", {
1064
- type: "button",
1065
- onClick: function(Y) {
1066
- Q == null || Q(Y), F == null || F();
1067
- },
1068
- onMouseDown: function(Y) {
1069
- return Y.preventDefault();
1070
- },
1071
- className: w(H, ie(ie({}, "".concat(H, "-hidden"), !_), "".concat(H, "-has-suffix"), !!g))
1072
- }, B);
1073
- }
1074
- var q = "".concat(l, "-affix-wrapper"), se = w(q, ie(ie(ie(ie(ie({}, "".concat(l, "-disabled"), R), "".concat(q, "-disabled"), R), "".concat(q, "-focused"), re), "".concat(q, "-readonly"), A), "".concat(q, "-input-with-clear-btn"), g && y && o), b == null ? void 0 : b.affixWrapper, d == null ? void 0 : d.affixWrapper, d == null ? void 0 : d.variant), j = (g || y) && /* @__PURE__ */ f.createElement("span", {
1075
- className: w("".concat(l, "-suffix"), d == null ? void 0 : d.suffix),
1076
- style: c == null ? void 0 : c.suffix
1077
- }, X, g);
1078
- z = /* @__PURE__ */ f.createElement(D, Ce({
1079
- className: se,
1080
- style: c == null ? void 0 : c.affixWrapper,
1081
- onClick: J
1082
- }, u == null ? void 0 : u.affixWrapper, {
1083
- ref: M
1084
- }), S && /* @__PURE__ */ f.createElement("span", {
1085
- className: w("".concat(l, "-prefix"), d == null ? void 0 : d.prefix),
1086
- style: c == null ? void 0 : c.prefix
1087
- }, S), z, j);
1088
- }
1089
- if (Xn(e)) {
1090
- var k = "".concat(l, "-group"), U = "".concat(k, "-addon"), ue = "".concat(k, "-wrapper"), ce = w("".concat(l, "-wrapper"), k, b == null ? void 0 : b.wrapper, d == null ? void 0 : d.wrapper), fe = w(ue, ie({}, "".concat(ue, "-disabled"), R), b == null ? void 0 : b.group, d == null ? void 0 : d.groupWrapper);
1091
- z = /* @__PURE__ */ f.createElement(te, {
1092
- className: fe,
1093
- ref: N
1094
- }, /* @__PURE__ */ f.createElement(W, {
1095
- className: ce
1096
- }, p && /* @__PURE__ */ f.createElement(v, {
1097
- className: U
1098
- }, p), z, C && /* @__PURE__ */ f.createElement(v, {
1099
- className: U
1100
- }, C)));
1101
- }
1102
- return /* @__PURE__ */ f.cloneElement(z, {
1103
- className: w((t = z.props) === null || t === void 0 ? void 0 : t.className, E) || null,
1104
- style: ne(ne({}, (a = z.props) === null || a === void 0 ? void 0 : a.style), G),
1105
- hidden: $
1106
- });
1107
- }), Un = ["show"];
1108
- function mn(e, n) {
1109
- return K.useMemo(function() {
1110
- var r = {};
1111
- n && (r.show = _e(n) === "object" && n.formatter ? n.formatter : !!n), r = ne(ne({}, r), e);
1112
- var t = r, a = t.show, s = Re(t, Un);
1113
- return ne(ne({}, s), {}, {
1114
- show: !!a,
1115
- showFormatter: typeof a == "function" ? a : void 0,
1116
- strategy: s.strategy || function(i) {
1117
- return i.length;
1118
- }
1119
- });
1120
- }, [e, n]);
1121
- }
1122
- var Yn = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "onKeyUp", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "count", "type", "classes", "classNames", "styles", "onCompositionStart", "onCompositionEnd"], Zn = /* @__PURE__ */ We(function(e, n) {
1123
- var r = e.autoComplete, t = e.onChange, a = e.onFocus, s = e.onBlur, i = e.onPressEnter, l = e.onKeyDown, S = e.onKeyUp, g = e.prefixCls, p = g === void 0 ? "rc-input" : g, C = e.disabled, E = e.htmlSize, G = e.className, R = e.maxLength, A = e.suffix, re = e.showCount, ee = e.count, y = e.type, o = y === void 0 ? "text" : y, Q = e.classes, $ = e.classNames, b = e.styles, d = e.onCompositionStart, u = e.onCompositionEnd, c = Re(e, Yn), I = Me(!1), F = de(I, 2), h = F[0], D = F[1], te = le(!1), W = le(!1), v = le(null), M = le(null), J = function(m) {
1124
- v.current && gn(v.current, m);
1125
- }, ae = Pe(e.defaultValue, {
1126
- value: e.value
1127
- }), z = de(ae, 2), N = z[0], X = z[1], _ = N == null ? "" : String(N), H = Me(null), B = de(H, 2), q = B[0], se = B[1], j = mn(ee, re), k = j.max || R, U = j.strategy(_), ue = !!k && U > k;
1128
- Ze(n, function() {
1129
- var O;
1130
- return {
1131
- focus: J,
1132
- blur: function() {
1133
- var L;
1134
- (L = v.current) === null || L === void 0 || L.blur();
1135
- },
1136
- setSelectionRange: function(L, he, pe) {
1137
- var ge;
1138
- (ge = v.current) === null || ge === void 0 || ge.setSelectionRange(L, he, pe);
1139
- },
1140
- select: function() {
1141
- var L;
1142
- (L = v.current) === null || L === void 0 || L.select();
1143
- },
1144
- input: v.current,
1145
- nativeElement: ((O = M.current) === null || O === void 0 ? void 0 : O.nativeElement) || v.current
1146
- };
1147
- }), $e(function() {
1148
- W.current && (W.current = !1), D(function(O) {
1149
- return O && C ? !1 : O;
1150
- });
1151
- }, [C]);
1152
- var ce = function(m, L, he) {
1153
- var pe = L;
1154
- if (!te.current && j.exceedFormatter && j.max && j.strategy(L) > j.max) {
1155
- if (pe = j.exceedFormatter(L, {
1156
- max: j.max
1157
- }), L !== pe) {
1158
- var ge, ve;
1159
- se([((ge = v.current) === null || ge === void 0 ? void 0 : ge.selectionStart) || 0, ((ve = v.current) === null || ve === void 0 ? void 0 : ve.selectionEnd) || 0]);
1160
- }
1161
- } else if (he.source === "compositionEnd")
1162
- return;
1163
- X(pe), v.current && Ee(v.current, m, t, pe);
1164
- };
1165
- $e(function() {
1166
- if (q) {
1167
- var O;
1168
- (O = v.current) === null || O === void 0 || O.setSelectionRange.apply(O, Je(q));
1169
- }
1170
- }, [q]);
1171
- var fe = function(m) {
1172
- ce(m, m.target.value, {
1173
- source: "change"
1174
- });
1175
- }, P = function(m) {
1176
- te.current = !1, ce(m, m.currentTarget.value, {
1177
- source: "compositionEnd"
1178
- }), u == null || u(m);
1179
- }, Y = function(m) {
1180
- i && m.key === "Enter" && !W.current && (W.current = !0, i(m)), l == null || l(m);
1181
- }, Z = function(m) {
1182
- m.key === "Enter" && (W.current = !1), S == null || S(m);
1183
- }, be = function(m) {
1184
- D(!0), a == null || a(m);
1185
- }, Ie = function(m) {
1186
- W.current && (W.current = !1), D(!1), s == null || s(m);
1187
- }, xe = function(m) {
1188
- X(""), J(), v.current && Ee(v.current, m, t);
1189
- }, ze = ue && "".concat(p, "-out-of-range"), ye = function() {
1190
- var m = wn(e, [
1191
- "prefixCls",
1192
- "onPressEnter",
1193
- "addonBefore",
1194
- "addonAfter",
1195
- "prefix",
1196
- "suffix",
1197
- "allowClear",
1198
- // Input elements must be either controlled or uncontrolled,
1199
- // specify either the value prop, or the defaultValue prop, but not both.
1200
- "defaultValue",
1201
- "showCount",
1202
- "count",
1203
- "classes",
1204
- "htmlSize",
1205
- "styles",
1206
- "classNames",
1207
- "onClear"
1208
- ]);
1209
- return /* @__PURE__ */ f.createElement("input", Ce({
1210
- autoComplete: r
1211
- }, m, {
1212
- onChange: fe,
1213
- onFocus: be,
1214
- onBlur: Ie,
1215
- onKeyDown: Y,
1216
- onKeyUp: Z,
1217
- className: w(p, ie({}, "".concat(p, "-disabled"), C), $ == null ? void 0 : $.input),
1218
- style: b == null ? void 0 : b.input,
1219
- ref: v,
1220
- size: E,
1221
- type: o,
1222
- onCompositionStart: function(he) {
1223
- te.current = !0, d == null || d(he);
1224
- },
1225
- onCompositionEnd: P
1226
- }));
1227
- }, Oe = function() {
1228
- var m = Number(k) > 0;
1229
- if (A || j.show) {
1230
- var L = j.showFormatter ? j.showFormatter({
1231
- value: _,
1232
- count: U,
1233
- maxLength: k
1234
- }) : "".concat(U).concat(m ? " / ".concat(k) : "");
1235
- return /* @__PURE__ */ f.createElement(f.Fragment, null, j.show && /* @__PURE__ */ f.createElement("span", {
1236
- className: w("".concat(p, "-show-count-suffix"), ie({}, "".concat(p, "-show-count-has-suffix"), !!A), $ == null ? void 0 : $.count),
1237
- style: ne({}, b == null ? void 0 : b.count)
1238
- }, L), A);
1239
- }
1240
- return null;
1241
- };
1242
- return /* @__PURE__ */ f.createElement(pn, Ce({}, c, {
1243
- prefixCls: p,
1244
- className: w(G, ze),
1245
- handleReset: xe,
1246
- value: _,
1247
- focused: h,
1248
- triggerFocus: J,
1249
- suffix: Oe(),
1250
- disabled: C,
1251
- classes: Q,
1252
- classNames: $,
1253
- styles: b
1254
- }), ye());
1255
- });
1256
- const bn = (e) => {
1257
- let n;
1258
- return typeof e == "object" && (e != null && e.clearIcon) ? n = e : e && (n = {
1259
- clearIcon: /* @__PURE__ */ f.createElement(Rn, null)
1260
- }), n;
1261
- };
1262
- function Qn(e, n) {
1263
- const r = le([]), t = () => {
1264
- r.current.push(setTimeout(() => {
1265
- var a, s, i, l;
1266
- !((a = e.current) === null || a === void 0) && a.input && ((s = e.current) === null || s === void 0 ? void 0 : s.input.getAttribute("type")) === "password" && (!((i = e.current) === null || i === void 0) && i.input.hasAttribute("value")) && ((l = e.current) === null || l === void 0 || l.input.removeAttribute("value"));
1267
- }));
1268
- };
1269
- return $e(() => (n && t(), () => r.current.forEach((a) => {
1270
- a && clearTimeout(a);
1271
- })), []), t;
1272
- }
1273
- function Jn(e) {
1274
- return !!(e.prefix || e.suffix || e.allowClear || e.showCount);
1275
- }
1276
- var kn = function(e, n) {
1277
- var r = {};
1278
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
1279
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, t = Object.getOwnPropertySymbols(e); a < t.length; a++)
1280
- n.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (r[t[a]] = e[t[a]]);
1281
- return r;
1282
- };
1283
- const er = /* @__PURE__ */ We((e, n) => {
1284
- var r;
1285
- const {
1286
- prefixCls: t,
1287
- bordered: a = !0,
1288
- status: s,
1289
- size: i,
1290
- disabled: l,
1291
- onBlur: S,
1292
- onFocus: g,
1293
- suffix: p,
1294
- allowClear: C,
1295
- addonAfter: E,
1296
- addonBefore: G,
1297
- className: R,
1298
- style: A,
1299
- styles: re,
1300
- rootClassName: ee,
1301
- onChange: y,
1302
- classNames: o,
1303
- variant: Q
1304
- } = e, $ = kn(e, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
1305
- if (process.env.NODE_ENV !== "production") {
1306
- const {
1307
- deprecated: P
1308
- } = Te("Input");
1309
- P(!("bordered" in e), "bordered", "variant");
1310
- }
1311
- const {
1312
- getPrefixCls: b,
1313
- direction: d,
1314
- input: u
1315
- } = f.useContext(ke), c = b("input", t), I = le(null), F = tn(c), [h, D, te] = fn(c, F), {
1316
- compactSize: W,
1317
- compactItemClassnames: v
1318
- } = In(c, d), M = on((P) => {
1319
- var Y;
1320
- return (Y = i ?? W) !== null && Y !== void 0 ? Y : P;
1321
- }), J = f.useContext(en), ae = l ?? J, {
1322
- status: z,
1323
- hasFeedback: N,
1324
- feedbackIcon: X
1325
- } = Sn(an), _ = rn(z, s), H = Jn(e) || !!N, B = le(H);
1326
- if (process.env.NODE_ENV !== "production") {
1327
- const P = Te("Input");
1328
- $e(() => {
1329
- var Y;
1330
- H && !B.current && process.env.NODE_ENV !== "production" && P(document.activeElement === ((Y = I.current) === null || Y === void 0 ? void 0 : Y.input), "usage", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), B.current = H;
1331
- }, [H]);
1332
- }
1333
- const q = Qn(I, !0), se = (P) => {
1334
- q(), S == null || S(P);
1335
- }, j = (P) => {
1336
- q(), g == null || g(P);
1337
- }, k = (P) => {
1338
- q(), y == null || y(P);
1339
- }, U = (N || p) && /* @__PURE__ */ f.createElement(f.Fragment, null, p, N && X), ue = bn(C ?? (u == null ? void 0 : u.allowClear)), [ce, fe] = nn("input", Q, a);
1340
- return h(/* @__PURE__ */ f.createElement(Zn, Object.assign({
1341
- ref: yn(n, I),
1342
- prefixCls: c,
1343
- autoComplete: u == null ? void 0 : u.autoComplete
1344
- }, $, {
1345
- disabled: ae,
1346
- onBlur: se,
1347
- onFocus: j,
1348
- style: Object.assign(Object.assign({}, u == null ? void 0 : u.style), A),
1349
- styles: Object.assign(Object.assign({}, u == null ? void 0 : u.styles), re),
1350
- suffix: U,
1351
- allowClear: ue,
1352
- className: w(R, ee, te, F, v, u == null ? void 0 : u.className),
1353
- onChange: k,
1354
- addonBefore: G && /* @__PURE__ */ f.createElement(Ge, {
1355
- form: !0,
1356
- space: !0
1357
- }, G),
1358
- addonAfter: E && /* @__PURE__ */ f.createElement(Ge, {
1359
- form: !0,
1360
- space: !0
1361
- }, E),
1362
- classNames: Object.assign(Object.assign(Object.assign({}, o), u == null ? void 0 : u.classNames), {
1363
- input: w({
1364
- [`${c}-sm`]: M === "small",
1365
- [`${c}-lg`]: M === "large",
1366
- [`${c}-rtl`]: d === "rtl"
1367
- }, o == null ? void 0 : o.input, (r = u == null ? void 0 : u.classNames) === null || r === void 0 ? void 0 : r.input, D),
1368
- variant: w({
1369
- [`${c}-${ce}`]: fe
1370
- }, Fe(c, _)),
1371
- affixWrapper: w({
1372
- [`${c}-affix-wrapper-sm`]: M === "small",
1373
- [`${c}-affix-wrapper-lg`]: M === "large",
1374
- [`${c}-affix-wrapper-rtl`]: d === "rtl"
1375
- }, D),
1376
- wrapper: w({
1377
- [`${c}-group-rtl`]: d === "rtl"
1378
- }, D),
1379
- groupWrapper: w({
1380
- [`${c}-group-wrapper-sm`]: M === "small",
1381
- [`${c}-group-wrapper-lg`]: M === "large",
1382
- [`${c}-group-wrapper-rtl`]: d === "rtl",
1383
- [`${c}-group-wrapper-${ce}`]: fe
1384
- }, Fe(`${c}-group-wrapper`, _, N), D)
1385
- })
1386
- })));
1387
- });
1388
- process.env.NODE_ENV !== "production" && (er.displayName = "Input");
1389
- var nr = `
1390
- min-height:0 !important;
1391
- max-height:none !important;
1392
- height:0 !important;
1393
- visibility:hidden !important;
1394
- overflow:hidden !important;
1395
- position:absolute !important;
1396
- z-index:-1000 !important;
1397
- top:0 !important;
1398
- right:0 !important;
1399
- pointer-events: none !important;
1400
- `, rr = ["letter-spacing", "line-height", "padding-top", "padding-bottom", "font-family", "font-weight", "font-size", "font-variant", "text-rendering", "text-transform", "width", "text-indent", "padding-left", "padding-right", "border-width", "box-sizing", "word-break", "white-space"], Be = {}, oe;
1401
- function tr(e) {
1402
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.getAttribute("id") || e.getAttribute("data-reactid") || e.getAttribute("name");
1403
- if (n && Be[r])
1404
- return Be[r];
1405
- var t = window.getComputedStyle(e), a = t.getPropertyValue("box-sizing") || t.getPropertyValue("-moz-box-sizing") || t.getPropertyValue("-webkit-box-sizing"), s = parseFloat(t.getPropertyValue("padding-bottom")) + parseFloat(t.getPropertyValue("padding-top")), i = parseFloat(t.getPropertyValue("border-bottom-width")) + parseFloat(t.getPropertyValue("border-top-width")), l = rr.map(function(g) {
1406
- return "".concat(g, ":").concat(t.getPropertyValue(g));
1407
- }).join(";"), S = {
1408
- sizingStyle: l,
1409
- paddingSize: s,
1410
- borderSize: i,
1411
- boxSizing: a
1412
- };
1413
- return n && r && (Be[r] = S), S;
1414
- }
1415
- function ar(e) {
1416
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
1417
- oe || (oe = document.createElement("textarea"), oe.setAttribute("tab-index", "-1"), oe.setAttribute("aria-hidden", "true"), oe.setAttribute("name", "hiddenTextarea"), document.body.appendChild(oe)), e.getAttribute("wrap") ? oe.setAttribute("wrap", e.getAttribute("wrap")) : oe.removeAttribute("wrap");
1418
- var a = tr(e, n), s = a.paddingSize, i = a.borderSize, l = a.boxSizing, S = a.sizingStyle;
1419
- oe.setAttribute("style", "".concat(S, ";").concat(nr)), oe.value = e.value || e.placeholder || "";
1420
- var g = void 0, p = void 0, C, E = oe.scrollHeight;
1421
- if (l === "border-box" ? E += i : l === "content-box" && (E -= s), r !== null || t !== null) {
1422
- oe.value = " ";
1423
- var G = oe.scrollHeight - s;
1424
- r !== null && (g = G * r, l === "border-box" && (g = g + s + i), E = Math.max(g, E)), t !== null && (p = G * t, l === "border-box" && (p = p + s + i), C = E > p ? "" : "hidden", E = Math.min(p, E));
1425
- }
1426
- var R = {
1427
- height: E,
1428
- overflowY: C,
1429
- resize: "none"
1430
- };
1431
- return g && (R.minHeight = g), p && (R.maxHeight = p), R;
1432
- }
1433
- var or = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"], Ae = 0, Ne = 1, je = 2, ir = /* @__PURE__ */ K.forwardRef(function(e, n) {
1434
- var r = e, t = r.prefixCls, a = r.defaultValue, s = r.value, i = r.autoSize, l = r.onResize, S = r.className, g = r.style, p = r.disabled, C = r.onChange, E = r.onInternalAutoSize, G = Re(r, or), R = Pe(a, {
1435
- value: s,
1436
- postState: function(B) {
1437
- return B ?? "";
1438
- }
1439
- }), A = de(R, 2), re = A[0], ee = A[1], y = function(B) {
1440
- ee(B.target.value), C == null || C(B);
1441
- }, o = K.useRef();
1442
- K.useImperativeHandle(n, function() {
1443
- return {
1444
- textArea: o.current
1445
- };
1446
- });
1447
- var Q = K.useMemo(function() {
1448
- return i && _e(i) === "object" ? [i.minRows, i.maxRows] : [];
1449
- }, [i]), $ = de(Q, 2), b = $[0], d = $[1], u = !!i, c = function() {
1450
- try {
1451
- if (document.activeElement === o.current) {
1452
- var B = o.current, q = B.selectionStart, se = B.selectionEnd, j = B.scrollTop;
1453
- o.current.setSelectionRange(q, se), o.current.scrollTop = j;
1454
- }
1455
- } catch {
1456
- }
1457
- }, I = K.useState(je), F = de(I, 2), h = F[0], D = F[1], te = K.useState(), W = de(te, 2), v = W[0], M = W[1], J = function() {
1458
- D(Ae), process.env.NODE_ENV === "test" && (E == null || E());
1459
- };
1460
- Le(function() {
1461
- u && J();
1462
- }, [s, b, d, u]), Le(function() {
1463
- if (h === Ae)
1464
- D(Ne);
1465
- else if (h === Ne) {
1466
- var H = ar(o.current, !1, b, d);
1467
- D(je), M(H);
1468
- } else
1469
- c();
1470
- }, [h]);
1471
- var ae = K.useRef(), z = function() {
1472
- Ve.cancel(ae.current);
1473
- }, N = function(B) {
1474
- h === je && (l == null || l(B), i && (z(), ae.current = Ve(function() {
1475
- J();
1476
- })));
1477
- };
1478
- K.useEffect(function() {
1479
- return z;
1480
- }, []);
1481
- var X = u ? v : null, _ = ne(ne({}, g), X);
1482
- return (h === Ae || h === Ne) && (_.overflowY = "hidden", _.overflowX = "hidden"), /* @__PURE__ */ K.createElement(En, {
1483
- onResize: N,
1484
- disabled: !(i || l)
1485
- }, /* @__PURE__ */ K.createElement("textarea", Ce({}, G, {
1486
- ref: o,
1487
- style: _,
1488
- className: w(t, S, ie({}, "".concat(t, "-disabled"), p)),
1489
- disabled: p,
1490
- value: re,
1491
- onChange: y
1492
- })));
1493
- }), lr = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "onPressEnter", "readOnly", "autoSize", "onKeyDown"], dr = /* @__PURE__ */ f.forwardRef(function(e, n) {
1494
- var r, t = e.defaultValue, a = e.value, s = e.onFocus, i = e.onBlur, l = e.onChange, S = e.allowClear, g = e.maxLength, p = e.onCompositionStart, C = e.onCompositionEnd, E = e.suffix, G = e.prefixCls, R = G === void 0 ? "rc-textarea" : G, A = e.showCount, re = e.count, ee = e.className, y = e.style, o = e.disabled, Q = e.hidden, $ = e.classNames, b = e.styles, d = e.onResize, u = e.onClear, c = e.onPressEnter, I = e.readOnly, F = e.autoSize, h = e.onKeyDown, D = Re(e, lr), te = Pe(t, {
1495
- value: a,
1496
- defaultValue: t
1497
- }), W = de(te, 2), v = W[0], M = W[1], J = v == null ? "" : String(v), ae = f.useState(!1), z = de(ae, 2), N = z[0], X = z[1], _ = f.useRef(!1), H = f.useState(null), B = de(H, 2), q = B[0], se = B[1], j = le(null), k = le(null), U = function() {
1498
- var x;
1499
- return (x = k.current) === null || x === void 0 ? void 0 : x.textArea;
1500
- }, ue = function() {
1501
- U().focus();
1502
- };
1503
- Ze(n, function() {
1504
- var V;
1505
- return {
1506
- resizableTextArea: k.current,
1507
- focus: ue,
1508
- blur: function() {
1509
- U().blur();
1510
- },
1511
- nativeElement: ((V = j.current) === null || V === void 0 ? void 0 : V.nativeElement) || U()
1512
- };
1513
- }), $e(function() {
1514
- X(function(V) {
1515
- return !o && V;
1516
- });
1517
- }, [o]);
1518
- var ce = f.useState(null), fe = de(ce, 2), P = fe[0], Y = fe[1];
1519
- f.useEffect(function() {
1520
- if (P) {
1521
- var V;
1522
- (V = U()).setSelectionRange.apply(V, Je(P));
1523
- }
1524
- }, [P]);
1525
- var Z = mn(re, A), be = (r = Z.max) !== null && r !== void 0 ? r : g, Ie = Number(be) > 0, xe = Z.strategy(J), ze = !!be && xe > be, ye = function(x, me) {
1526
- var we = me;
1527
- !_.current && Z.exceedFormatter && Z.max && Z.strategy(me) > Z.max && (we = Z.exceedFormatter(me, {
1528
- max: Z.max
1529
- }), me !== we && Y([U().selectionStart || 0, U().selectionEnd || 0])), M(we), Ee(x.currentTarget, x, l, we);
1530
- }, Oe = function(x) {
1531
- _.current = !0, p == null || p(x);
1532
- }, O = function(x) {
1533
- _.current = !1, ye(x, x.currentTarget.value), C == null || C(x);
1534
- }, m = function(x) {
1535
- ye(x, x.target.value);
1536
- }, L = function(x) {
1537
- x.key === "Enter" && c && c(x), h == null || h(x);
1538
- }, he = function(x) {
1539
- X(!0), s == null || s(x);
1540
- }, pe = function(x) {
1541
- X(!1), i == null || i(x);
1542
- }, ge = function(x) {
1543
- M(""), ue(), Ee(U(), x, l);
1544
- }, ve = E, Se;
1545
- Z.show && (Z.showFormatter ? Se = Z.showFormatter({
1546
- value: J,
1547
- count: xe,
1548
- maxLength: be
1549
- }) : Se = "".concat(xe).concat(Ie ? " / ".concat(be) : ""), ve = /* @__PURE__ */ f.createElement(f.Fragment, null, ve, /* @__PURE__ */ f.createElement("span", {
1550
- className: w("".concat(R, "-data-count"), $ == null ? void 0 : $.count),
1551
- style: b == null ? void 0 : b.count
1552
- }, Se)));
1553
- var hn = function(x) {
1554
- var me;
1555
- d == null || d(x), (me = U()) !== null && me !== void 0 && me.style.height && se(!0);
1556
- }, vn = !F && !A && !S;
1557
- return /* @__PURE__ */ f.createElement(pn, {
1558
- ref: j,
1559
- value: J,
1560
- allowClear: S,
1561
- handleReset: ge,
1562
- suffix: ve,
1563
- prefixCls: R,
1564
- classNames: ne(ne({}, $), {}, {
1565
- affixWrapper: w($ == null ? void 0 : $.affixWrapper, ie(ie({}, "".concat(R, "-show-count"), A), "".concat(R, "-textarea-allow-clear"), S))
1566
- }),
1567
- disabled: o,
1568
- focused: N,
1569
- className: w(ee, ze && "".concat(R, "-out-of-range")),
1570
- style: ne(ne({}, y), q && !vn ? {
1571
- height: "auto"
1572
- } : {}),
1573
- dataAttrs: {
1574
- affixWrapper: {
1575
- "data-count": typeof Se == "string" ? Se : void 0
1576
- }
1577
- },
1578
- hidden: Q,
1579
- readOnly: I,
1580
- onClear: u
1581
- }, /* @__PURE__ */ f.createElement(ir, Ce({}, D, {
1582
- autoSize: F,
1583
- maxLength: g,
1584
- onKeyDown: L,
1585
- onChange: m,
1586
- onFocus: he,
1587
- onBlur: pe,
1588
- onCompositionStart: Oe,
1589
- onCompositionEnd: O,
1590
- className: w($ == null ? void 0 : $.textarea),
1591
- style: ne(ne({}, b == null ? void 0 : b.textarea), {}, {
1592
- resize: y == null ? void 0 : y.resize
1593
- }),
1594
- disabled: o,
1595
- prefixCls: R,
1596
- onResize: hn,
1597
- ref: k,
1598
- readOnly: I
1599
- })));
1600
- }), sr = function(e, n) {
1601
- var r = {};
1602
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
1603
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, t = Object.getOwnPropertySymbols(e); a < t.length; a++)
1604
- n.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (r[t[a]] = e[t[a]]);
1605
- return r;
1606
- };
1607
- const $r = /* @__PURE__ */ We((e, n) => {
1608
- var r, t;
1609
- const {
1610
- prefixCls: a,
1611
- bordered: s = !0,
1612
- size: i,
1613
- disabled: l,
1614
- status: S,
1615
- allowClear: g,
1616
- classNames: p,
1617
- rootClassName: C,
1618
- className: E,
1619
- style: G,
1620
- styles: R,
1621
- variant: A
1622
- } = e, re = sr(e, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant"]);
1623
- if (process.env.NODE_ENV !== "production") {
1624
- const {
1625
- deprecated: z
1626
- } = Te("TextArea");
1627
- z(!("bordered" in e), "bordered", "variant");
1628
- }
1629
- const {
1630
- getPrefixCls: ee,
1631
- direction: y,
1632
- textArea: o
1633
- } = K.useContext(ke), Q = on(i), $ = K.useContext(en), b = l ?? $, {
1634
- status: d,
1635
- hasFeedback: u,
1636
- feedbackIcon: c
1637
- } = K.useContext(an), I = rn(d, S), F = K.useRef(null);
1638
- K.useImperativeHandle(n, () => {
1639
- var z;
1640
- return {
1641
- resizableTextArea: (z = F.current) === null || z === void 0 ? void 0 : z.resizableTextArea,
1642
- focus: (N) => {
1643
- var X, _;
1644
- gn((_ = (X = F.current) === null || X === void 0 ? void 0 : X.resizableTextArea) === null || _ === void 0 ? void 0 : _.textArea, N);
1645
- },
1646
- blur: () => {
1647
- var N;
1648
- return (N = F.current) === null || N === void 0 ? void 0 : N.blur();
1649
- }
1650
- };
1651
- });
1652
- const h = ee("input", a), D = tn(h), [te, W, v] = fn(h, D), [M, J] = nn("textArea", A, s), ae = bn(g ?? (o == null ? void 0 : o.allowClear));
1653
- return te(/* @__PURE__ */ K.createElement(dr, Object.assign({
1654
- autoComplete: o == null ? void 0 : o.autoComplete
1655
- }, re, {
1656
- style: Object.assign(Object.assign({}, o == null ? void 0 : o.style), G),
1657
- styles: Object.assign(Object.assign({}, o == null ? void 0 : o.styles), R),
1658
- disabled: b,
1659
- allowClear: ae,
1660
- className: w(v, D, E, C, o == null ? void 0 : o.className),
1661
- classNames: Object.assign(Object.assign(Object.assign({}, p), o == null ? void 0 : o.classNames), {
1662
- textarea: w({
1663
- [`${h}-sm`]: Q === "small",
1664
- [`${h}-lg`]: Q === "large"
1665
- }, W, p == null ? void 0 : p.textarea, (r = o == null ? void 0 : o.classNames) === null || r === void 0 ? void 0 : r.textarea),
1666
- variant: w({
1667
- [`${h}-${M}`]: J
1668
- }, Fe(h, I)),
1669
- affixWrapper: w(`${h}-textarea-affix-wrapper`, {
1670
- [`${h}-affix-wrapper-rtl`]: y === "rtl",
1671
- [`${h}-affix-wrapper-sm`]: Q === "small",
1672
- [`${h}-affix-wrapper-lg`]: Q === "large",
1673
- [`${h}-textarea-show-count`]: e.showCount || ((t = e.count) === null || t === void 0 ? void 0 : t.show)
1674
- }, W)
1675
- }),
1676
- prefixCls: h,
1677
- suffix: u && /* @__PURE__ */ K.createElement("span", {
1678
- className: `${h}-textarea-suffix`
1679
- }, c),
1680
- ref: F
1681
- })));
1682
- });
1683
- export {
1684
- er as I,
1685
- $r as T,
1686
- Bn as a,
1687
- Qn as b,
1688
- On as i,
1689
- fn as u
1690
- };