@agentscope-ai/design 1.0.4

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 (398) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/dist/antd/styles/button.style.d.ts +47 -0
  4. package/dist/antd/styles/button.style.js +32 -0
  5. package/dist/antd/styles/dropdown.style.d.ts +15 -0
  6. package/dist/antd/styles/dropdown.style.js +16 -0
  7. package/dist/antd/styles/index.style.d.ts +19 -0
  8. package/dist/antd/styles/index.style.js +50 -0
  9. package/dist/antd/styles/message.style.d.ts +5 -0
  10. package/dist/antd/styles/message.style.js +10 -0
  11. package/dist/antd/styles/notification.style.d.ts +46 -0
  12. package/dist/antd/styles/notification.style.js +29 -0
  13. package/dist/antd/styles/popover.style.d.ts +13 -0
  14. package/dist/antd/styles/popover.style.js +14 -0
  15. package/dist/antd/styles/radio.style.d.ts +7 -0
  16. package/dist/antd/styles/radio.style.js +10 -0
  17. package/dist/antd/styles/segment.style.d.ts +7 -0
  18. package/dist/antd/styles/segment.style.js +12 -0
  19. package/dist/antd/styles/select.style.d.ts +6 -0
  20. package/dist/antd/styles/select.style.js +11 -0
  21. package/dist/antd/styles/slider.style.d.ts +22 -0
  22. package/dist/antd/styles/slider.style.js +21 -0
  23. package/dist/antd/styles/table.style.d.ts +5 -0
  24. package/dist/antd/styles/table.style.js +10 -0
  25. package/dist/antd/styles/tooltip.style.d.ts +8 -0
  26. package/dist/antd/styles/tooltip.style.js +11 -0
  27. package/dist/antd/themes/bailianDarkTheme.json +173 -0
  28. package/dist/antd/themes/bailianTheme.json +170 -0
  29. package/dist/antd/themes/blackTheme.json +12 -0
  30. package/dist/antd/themes/carbonDarkTheme.json +172 -0
  31. package/dist/antd/themes/carbonTheme.json +170 -0
  32. package/dist/antd/themes/xConsoleTheme.json +26 -0
  33. package/dist/components/CComponents/Alert/demo/index.d.ts +2 -0
  34. package/dist/components/CComponents/Alert/demo/index.js +99 -0
  35. package/dist/components/commonComponents/Alert/demo/index.d.ts +2 -0
  36. package/dist/components/commonComponents/Alert/demo/index.js +87 -0
  37. package/dist/components/commonComponents/AlertDialog/demo/demo1.d.ts +3 -0
  38. package/dist/components/commonComponents/AlertDialog/demo/demo1.js +86 -0
  39. package/dist/components/commonComponents/AlertDialog/demo/demo2.d.ts +3 -0
  40. package/dist/components/commonComponents/AlertDialog/demo/demo2.js +70 -0
  41. package/dist/components/commonComponents/AlertDialog/index.d.ts +25 -0
  42. package/dist/components/commonComponents/AlertDialog/index.js +143 -0
  43. package/dist/components/commonComponents/Avatar/demo/index.d.ts +3 -0
  44. package/dist/components/commonComponents/Avatar/demo/index.js +25 -0
  45. package/dist/components/commonComponents/Avatar/index.d.ts +4 -0
  46. package/dist/components/commonComponents/Avatar/index.js +39 -0
  47. package/dist/components/commonComponents/Badge/demo/index.d.ts +3 -0
  48. package/dist/components/commonComponents/Badge/demo/index.js +24 -0
  49. package/dist/components/commonComponents/Button/demo/demo1.d.ts +2 -0
  50. package/dist/components/commonComponents/Button/demo/demo1.js +103 -0
  51. package/dist/components/commonComponents/Button/demo/demo2.d.ts +2 -0
  52. package/dist/components/commonComponents/Button/demo/demo2.js +17 -0
  53. package/dist/components/commonComponents/Button/index.d.ts +18 -0
  54. package/dist/components/commonComponents/Button/index.js +78 -0
  55. package/dist/components/commonComponents/Card/demo/demo1.d.ts +3 -0
  56. package/dist/components/commonComponents/Card/demo/demo1.js +31 -0
  57. package/dist/components/commonComponents/Card/demo/demo2.d.ts +3 -0
  58. package/dist/components/commonComponents/Card/demo/demo2.js +46 -0
  59. package/dist/components/commonComponents/Card/index.d.ts +11 -0
  60. package/dist/components/commonComponents/Card/index.js +40 -0
  61. package/dist/components/commonComponents/Card/index.style.d.ts +58 -0
  62. package/dist/components/commonComponents/Card/index.style.js +44 -0
  63. package/dist/components/commonComponents/Checkbox/demo/demo1.d.ts +3 -0
  64. package/dist/components/commonComponents/Checkbox/demo/demo1.js +21 -0
  65. package/dist/components/commonComponents/Checkbox/demo/demo2.d.ts +3 -0
  66. package/dist/components/commonComponents/Checkbox/demo/demo2.js +25 -0
  67. package/dist/components/commonComponents/CodeBlock/demo/demo1.d.ts +3 -0
  68. package/dist/components/commonComponents/CodeBlock/demo/demo1.js +34 -0
  69. package/dist/components/commonComponents/CodeBlock/demo/demo2.d.ts +3 -0
  70. package/dist/components/commonComponents/CodeBlock/demo/demo2.js +14 -0
  71. package/dist/components/commonComponents/CodeBlock/index.d.ts +11 -0
  72. package/dist/components/commonComponents/CodeBlock/index.js +88 -0
  73. package/dist/components/commonComponents/CodeBlock/index.style.d.ts +46 -0
  74. package/dist/components/commonComponents/CodeBlock/index.style.js +59 -0
  75. package/dist/components/commonComponents/CollapsePanel/demo/demo1.d.ts +3 -0
  76. package/dist/components/commonComponents/CollapsePanel/demo/demo1.js +27 -0
  77. package/dist/components/commonComponents/CollapsePanel/index.d.ts +38 -0
  78. package/dist/components/commonComponents/CollapsePanel/index.js +116 -0
  79. package/dist/components/commonComponents/CollapsePanel/index.style.d.ts +329 -0
  80. package/dist/components/commonComponents/CollapsePanel/index.style.js +96 -0
  81. package/dist/components/commonComponents/ConfigProvider/index.d.ts +25 -0
  82. package/dist/components/commonComponents/ConfigProvider/index.js +152 -0
  83. package/dist/components/commonComponents/Drawer/demo/demo1.d.ts +2 -0
  84. package/dist/components/commonComponents/Drawer/demo/demo1.js +106 -0
  85. package/dist/components/commonComponents/Drawer/demo/demo2.d.ts +2 -0
  86. package/dist/components/commonComponents/Drawer/demo/demo2.js +66 -0
  87. package/dist/components/commonComponents/Drawer/index.d.ts +3 -0
  88. package/dist/components/commonComponents/Drawer/index.js +30 -0
  89. package/dist/components/commonComponents/Drawer/index.style.d.ts +38 -0
  90. package/dist/components/commonComponents/Drawer/index.style.js +40 -0
  91. package/dist/components/commonComponents/Dropdown/demo/demo1.d.ts +3 -0
  92. package/dist/components/commonComponents/Dropdown/demo/demo1.js +33 -0
  93. package/dist/components/commonComponents/Dropdown/demo/demo2.d.ts +3 -0
  94. package/dist/components/commonComponents/Dropdown/demo/demo2.js +38 -0
  95. package/dist/components/commonComponents/Dropdown/index.d.ts +5 -0
  96. package/dist/components/commonComponents/Dropdown/index.js +20 -0
  97. package/dist/components/commonComponents/Dropdown/index.style.d.ts +7 -0
  98. package/dist/components/commonComponents/Dropdown/index.style.js +21 -0
  99. package/dist/components/commonComponents/Ellipsis/demo/index.d.ts +2 -0
  100. package/dist/components/commonComponents/Ellipsis/demo/index.js +11 -0
  101. package/dist/components/commonComponents/EllipsisTip/demo/demo1.d.ts +3 -0
  102. package/dist/components/commonComponents/EllipsisTip/demo/demo1.js +25 -0
  103. package/dist/components/commonComponents/EllipsisTip/demo/demo2.d.ts +3 -0
  104. package/dist/components/commonComponents/EllipsisTip/demo/demo2.js +35 -0
  105. package/dist/components/commonComponents/EllipsisTip/index.d.ts +13 -0
  106. package/dist/components/commonComponents/EllipsisTip/index.js +30 -0
  107. package/dist/components/commonComponents/EllipsisTip/index.style.d.ts +10 -0
  108. package/dist/components/commonComponents/EllipsisTip/index.style.js +24 -0
  109. package/dist/components/commonComponents/Empty/demo/index.css +11 -0
  110. package/dist/components/commonComponents/Empty/demo/index.d.ts +3 -0
  111. package/dist/components/commonComponents/Empty/demo/index.js +186 -0
  112. package/dist/components/commonComponents/Empty/index.d.ts +57 -0
  113. package/dist/components/commonComponents/Empty/index.js +112 -0
  114. package/dist/components/commonComponents/Empty/index.style.d.ts +80 -0
  115. package/dist/components/commonComponents/Empty/index.style.js +43 -0
  116. package/dist/components/commonComponents/FileIcon/demo/index.d.ts +1 -0
  117. package/dist/components/commonComponents/FileIcon/demo/index.js +42 -0
  118. package/dist/components/commonComponents/FileIcon/icons/common.svg +1 -0
  119. package/dist/components/commonComponents/FileIcon/icons/epub.svg +1 -0
  120. package/dist/components/commonComponents/FileIcon/icons/excel.svg +1 -0
  121. package/dist/components/commonComponents/FileIcon/icons/html.svg +1 -0
  122. package/dist/components/commonComponents/FileIcon/icons/image.svg +1 -0
  123. package/dist/components/commonComponents/FileIcon/icons/md.svg +1 -0
  124. package/dist/components/commonComponents/FileIcon/icons/mobi.svg +1 -0
  125. package/dist/components/commonComponents/FileIcon/icons/pdf.svg +1 -0
  126. package/dist/components/commonComponents/FileIcon/icons/ppt.svg +1 -0
  127. package/dist/components/commonComponents/FileIcon/icons/txt.svg +1 -0
  128. package/dist/components/commonComponents/FileIcon/icons/web.svg +1 -0
  129. package/dist/components/commonComponents/FileIcon/icons/word.svg +1 -0
  130. package/dist/components/commonComponents/FileIcon/index.d.ts +19 -0
  131. package/dist/components/commonComponents/FileIcon/index.js +89 -0
  132. package/dist/components/commonComponents/FileIcon/index.style.d.ts +61 -0
  133. package/dist/components/commonComponents/FileIcon/index.style.js +42 -0
  134. package/dist/components/commonComponents/Form/demo/api.d.ts +2 -0
  135. package/dist/components/commonComponents/Form/demo/api.js +22 -0
  136. package/dist/components/commonComponents/Form/demo/demo1.d.ts +2 -0
  137. package/dist/components/commonComponents/Form/demo/demo1.js +107 -0
  138. package/dist/components/commonComponents/Form/demo/demo2.d.ts +2 -0
  139. package/dist/components/commonComponents/Form/demo/demo2.js +52 -0
  140. package/dist/components/commonComponents/Form/demo/demo3.d.ts +2 -0
  141. package/dist/components/commonComponents/Form/demo/demo3.js +28 -0
  142. package/dist/components/commonComponents/Form/demo/demo4.d.ts +2 -0
  143. package/dist/components/commonComponents/Form/demo/demo4.js +29 -0
  144. package/dist/components/commonComponents/Form/demo/index.module.less +0 -0
  145. package/dist/components/commonComponents/Form/index.d.ts +27 -0
  146. package/dist/components/commonComponents/Form/index.js +84 -0
  147. package/dist/components/commonComponents/Form/index.style.d.ts +49 -0
  148. package/dist/components/commonComponents/Form/index.style.js +37 -0
  149. package/dist/components/commonComponents/HelpIcon/demo/index.d.ts +2 -0
  150. package/dist/components/commonComponents/HelpIcon/demo/index.js +17 -0
  151. package/dist/components/commonComponents/HelpIcon/index.d.ts +9 -0
  152. package/dist/components/commonComponents/HelpIcon/index.js +35 -0
  153. package/dist/components/commonComponents/HelpIcon/index.style.d.ts +12 -0
  154. package/dist/components/commonComponents/HelpIcon/index.style.js +26 -0
  155. package/dist/components/commonComponents/IconButton/demo/demo1.d.ts +3 -0
  156. package/dist/components/commonComponents/IconButton/demo/demo1.js +66 -0
  157. package/dist/components/commonComponents/IconButton/demo/demo2.d.ts +3 -0
  158. package/dist/components/commonComponents/IconButton/demo/demo2.js +61 -0
  159. package/dist/components/commonComponents/IconButton/demo/demo3.d.ts +3 -0
  160. package/dist/components/commonComponents/IconButton/demo/demo3.js +53 -0
  161. package/dist/components/commonComponents/IconButton/demo/demo4.d.ts +3 -0
  162. package/dist/components/commonComponents/IconButton/demo/demo4.js +55 -0
  163. package/dist/components/commonComponents/IconButton/index.d.ts +22 -0
  164. package/dist/components/commonComponents/IconButton/index.js +43 -0
  165. package/dist/components/commonComponents/IconFont/demo/demo1.d.ts +2 -0
  166. package/dist/components/commonComponents/IconFont/demo/demo1.js +49 -0
  167. package/dist/components/commonComponents/IconFont/demo/demo2.d.ts +2 -0
  168. package/dist/components/commonComponents/IconFont/demo/demo2.js +17 -0
  169. package/dist/components/commonComponents/IconFont/demo/demo3.d.ts +2 -0
  170. package/dist/components/commonComponents/IconFont/demo/demo3.js +17 -0
  171. package/dist/components/commonComponents/IconFont/demo/demo4.d.ts +2 -0
  172. package/dist/components/commonComponents/IconFont/demo/demo4.js +23 -0
  173. package/dist/components/commonComponents/IconFont/index.d.ts +29 -0
  174. package/dist/components/commonComponents/IconFont/index.js +57 -0
  175. package/dist/components/commonComponents/IconFont/index.style.d.ts +67 -0
  176. package/dist/components/commonComponents/IconFont/index.style.js +44 -0
  177. package/dist/components/commonComponents/Image/demo/demo1.d.ts +1 -0
  178. package/dist/components/commonComponents/Image/demo/demo1.js +8 -0
  179. package/dist/components/commonComponents/Image/index.d.ts +8 -0
  180. package/dist/components/commonComponents/Image/index.js +37 -0
  181. package/dist/components/commonComponents/Input/demo/index.d.ts +2 -0
  182. package/dist/components/commonComponents/Input/demo/index.js +117 -0
  183. package/dist/components/commonComponents/Input/index.d.ts +13 -0
  184. package/dist/components/commonComponents/Input/index.js +34 -0
  185. package/dist/components/commonComponents/Input/index.style.d.ts +36 -0
  186. package/dist/components/commonComponents/Input/index.style.js +32 -0
  187. package/dist/components/commonComponents/InputNumber/demo/index.d.ts +3 -0
  188. package/dist/components/commonComponents/InputNumber/demo/index.js +38 -0
  189. package/dist/components/commonComponents/InputSearch/demo/index.d.ts +2 -0
  190. package/dist/components/commonComponents/InputSearch/demo/index.js +43 -0
  191. package/dist/components/commonComponents/Message/demo.d.ts +2 -0
  192. package/dist/components/commonComponents/Message/demo.js +53 -0
  193. package/dist/components/commonComponents/Message/index.d.ts +20 -0
  194. package/dist/components/commonComponents/Message/index.js +66 -0
  195. package/dist/components/commonComponents/Modal/demo/demo1.d.ts +2 -0
  196. package/dist/components/commonComponents/Modal/demo/demo1.js +137 -0
  197. package/dist/components/commonComponents/Modal/demo/demo2.d.ts +3 -0
  198. package/dist/components/commonComponents/Modal/demo/demo2.js +77 -0
  199. package/dist/components/commonComponents/Modal/demo/demo3.d.ts +2 -0
  200. package/dist/components/commonComponents/Modal/demo/demo3.js +57 -0
  201. package/dist/components/commonComponents/Modal/demo/demo4.d.ts +3 -0
  202. package/dist/components/commonComponents/Modal/demo/demo4.js +65 -0
  203. package/dist/components/commonComponents/Modal/index.css +1 -0
  204. package/dist/components/commonComponents/Modal/index.d.ts +15 -0
  205. package/dist/components/commonComponents/Modal/index.js +46 -0
  206. package/dist/components/commonComponents/Modal/index.style.d.ts +80 -0
  207. package/dist/components/commonComponents/Modal/index.style.js +58 -0
  208. package/dist/components/commonComponents/Notification/demo/demo1.d.ts +3 -0
  209. package/dist/components/commonComponents/Notification/demo/demo1.js +76 -0
  210. package/dist/components/commonComponents/Notification/demo/demo2.d.ts +3 -0
  211. package/dist/components/commonComponents/Notification/demo/demo2.js +50 -0
  212. package/dist/components/commonComponents/Notification/demo/demo3.d.ts +3 -0
  213. package/dist/components/commonComponents/Notification/demo/demo3.js +46 -0
  214. package/dist/components/commonComponents/Notification/index.d.ts +20 -0
  215. package/dist/components/commonComponents/Notification/index.js +106 -0
  216. package/dist/components/commonComponents/Pagination/demo/demo1.d.ts +3 -0
  217. package/dist/components/commonComponents/Pagination/demo/demo1.js +14 -0
  218. package/dist/components/commonComponents/Pagination/demo/demo2.d.ts +3 -0
  219. package/dist/components/commonComponents/Pagination/demo/demo2.js +16 -0
  220. package/dist/components/commonComponents/Pagination/index.d.ts +12 -0
  221. package/dist/components/commonComponents/Pagination/index.js +59 -0
  222. package/dist/components/commonComponents/Pagination/index.style.d.ts +12 -0
  223. package/dist/components/commonComponents/Pagination/index.style.js +24 -0
  224. package/dist/components/commonComponents/Popconfirm/demo/index.d.ts +3 -0
  225. package/dist/components/commonComponents/Popconfirm/demo/index.js +155 -0
  226. package/dist/components/commonComponents/Popconfirm/index.d.ts +5 -0
  227. package/dist/components/commonComponents/Popconfirm/index.js +29 -0
  228. package/dist/components/commonComponents/Popover/demo/demo1.d.ts +3 -0
  229. package/dist/components/commonComponents/Popover/demo/demo1.js +34 -0
  230. package/dist/components/commonComponents/Popover/demo/demo2.d.ts +3 -0
  231. package/dist/components/commonComponents/Popover/demo/demo2.js +183 -0
  232. package/dist/components/commonComponents/Popover/index.d.ts +4 -0
  233. package/dist/components/commonComponents/Popover/index.js +27 -0
  234. package/dist/components/commonComponents/Progress/demo/demo1.d.ts +3 -0
  235. package/dist/components/commonComponents/Progress/demo/demo1.js +15 -0
  236. package/dist/components/commonComponents/Radio/demo.d.ts +3 -0
  237. package/dist/components/commonComponents/Radio/demo.js +20 -0
  238. package/dist/components/commonComponents/Radio/demo2.d.ts +3 -0
  239. package/dist/components/commonComponents/Radio/demo2.js +115 -0
  240. package/dist/components/commonComponents/RadioButton/demo/demo.d.ts +3 -0
  241. package/dist/components/commonComponents/RadioButton/demo/demo.js +166 -0
  242. package/dist/components/commonComponents/RadioButton/index.d.ts +21 -0
  243. package/dist/components/commonComponents/RadioButton/index.js +32 -0
  244. package/dist/components/commonComponents/RadioButton/index.style.d.ts +62 -0
  245. package/dist/components/commonComponents/RadioButton/index.style.js +49 -0
  246. package/dist/components/commonComponents/Select/demo/demo.d.ts +3 -0
  247. package/dist/components/commonComponents/Select/demo/demo.js +29 -0
  248. package/dist/components/commonComponents/Select/demo/demo2.d.ts +3 -0
  249. package/dist/components/commonComponents/Select/demo/demo2.js +30 -0
  250. package/dist/components/commonComponents/Skeleton/demo/demo1.d.ts +3 -0
  251. package/dist/components/commonComponents/Skeleton/demo/demo1.js +9 -0
  252. package/dist/components/commonComponents/SlateEditor/demo/index.d.ts +2 -0
  253. package/dist/components/commonComponents/SlateEditor/demo/index.js +21 -0
  254. package/dist/components/commonComponents/SlateEditor/elements/S.d.ts +2 -0
  255. package/dist/components/commonComponents/SlateEditor/elements/S.js +18 -0
  256. package/dist/components/commonComponents/SlateEditor/elements/Var.d.ts +3 -0
  257. package/dist/components/commonComponents/SlateEditor/elements/Var.js +20 -0
  258. package/dist/components/commonComponents/SlateEditor/elements/index.d.ts +2 -0
  259. package/dist/components/commonComponents/SlateEditor/elements/index.js +2 -0
  260. package/dist/components/commonComponents/SlateEditor/elements/index.less +10 -0
  261. package/dist/components/commonComponents/SlateEditor/index.d.ts +39 -0
  262. package/dist/components/commonComponents/SlateEditor/index.js +272 -0
  263. package/dist/components/commonComponents/SlateEditor/index.style.d.ts +28 -0
  264. package/dist/components/commonComponents/SlateEditor/index.style.js +36 -0
  265. package/dist/components/commonComponents/SlateEditor/types.d.ts +56 -0
  266. package/dist/components/commonComponents/SlateEditor/types.js +1 -0
  267. package/dist/components/commonComponents/SlateEditor/utils/constant.d.ts +7 -0
  268. package/dist/components/commonComponents/SlateEditor/utils/constant.js +36 -0
  269. package/dist/components/commonComponents/SlateEditor/utils/editor.d.ts +68 -0
  270. package/dist/components/commonComponents/SlateEditor/utils/editor.js +558 -0
  271. package/dist/components/commonComponents/SlateEditor/utils/functions.d.ts +41 -0
  272. package/dist/components/commonComponents/SlateEditor/utils/functions.js +179 -0
  273. package/dist/components/commonComponents/SlateEditor/utils/index.d.ts +4 -0
  274. package/dist/components/commonComponents/SlateEditor/utils/index.js +4 -0
  275. package/dist/components/commonComponents/SlateEditor/utils/withEditor.d.ts +2 -0
  276. package/dist/components/commonComponents/SlateEditor/utils/withEditor.js +109 -0
  277. package/dist/components/commonComponents/Slider/demo/demo1.d.ts +3 -0
  278. package/dist/components/commonComponents/Slider/demo/demo1.js +35 -0
  279. package/dist/components/commonComponents/Slider/demo/demo2.d.ts +3 -0
  280. package/dist/components/commonComponents/Slider/demo/demo2.js +48 -0
  281. package/dist/components/commonComponents/SliderSelector/demo/index.d.ts +2 -0
  282. package/dist/components/commonComponents/SliderSelector/demo/index.js +41 -0
  283. package/dist/components/commonComponents/SliderSelector/index.d.ts +16 -0
  284. package/dist/components/commonComponents/SliderSelector/index.js +67 -0
  285. package/dist/components/commonComponents/SliderSelector/index.style.d.ts +38 -0
  286. package/dist/components/commonComponents/SliderSelector/index.style.js +37 -0
  287. package/dist/components/commonComponents/Spin/demo1.d.ts +3 -0
  288. package/dist/components/commonComponents/Spin/demo1.js +30 -0
  289. package/dist/components/commonComponents/Spinner/demo/demo1.d.ts +3 -0
  290. package/dist/components/commonComponents/Spinner/demo/demo1.js +46 -0
  291. package/dist/components/commonComponents/Spinner/demo/demo2.d.ts +3 -0
  292. package/dist/components/commonComponents/Spinner/demo/demo2.js +69 -0
  293. package/dist/components/commonComponents/Spinner/demo/demo3.d.ts +3 -0
  294. package/dist/components/commonComponents/Spinner/demo/demo3.js +59 -0
  295. package/dist/components/commonComponents/Spinner/index.d.ts +16 -0
  296. package/dist/components/commonComponents/Spinner/index.js +77 -0
  297. package/dist/components/commonComponents/Spinner/index.style.d.ts +82 -0
  298. package/dist/components/commonComponents/Spinner/index.style.js +60 -0
  299. package/dist/components/commonComponents/Switch/demo/demo1.d.ts +3 -0
  300. package/dist/components/commonComponents/Switch/demo/demo1.js +26 -0
  301. package/dist/components/commonComponents/Switch/demo/demo2.d.ts +3 -0
  302. package/dist/components/commonComponents/Switch/demo/demo2.js +27 -0
  303. package/dist/components/commonComponents/Switch/index.d.ts +11 -0
  304. package/dist/components/commonComponents/Switch/index.js +29 -0
  305. package/dist/components/commonComponents/Switch/index.style.d.ts +8 -0
  306. package/dist/components/commonComponents/Switch/index.style.js +23 -0
  307. package/dist/components/commonComponents/Table/demo/demo1.d.ts +3 -0
  308. package/dist/components/commonComponents/Table/demo/demo1.js +87 -0
  309. package/dist/components/commonComponents/Table/demo/demo2.d.ts +3 -0
  310. package/dist/components/commonComponents/Table/demo/demo2.js +98 -0
  311. package/dist/components/commonComponents/Table/demo/demo3.d.ts +3 -0
  312. package/dist/components/commonComponents/Table/demo/demo3.js +378 -0
  313. package/dist/components/commonComponents/Tabs/demo/demo1.d.ts +3 -0
  314. package/dist/components/commonComponents/Tabs/demo/demo1.js +45 -0
  315. package/dist/components/commonComponents/Tabs/demo/demo2.d.ts +3 -0
  316. package/dist/components/commonComponents/Tabs/demo/demo2.js +43 -0
  317. package/dist/components/commonComponents/Tabs/demo/demo3.d.ts +3 -0
  318. package/dist/components/commonComponents/Tabs/demo/demo3.js +32 -0
  319. package/dist/components/commonComponents/Tabs/index.d.ts +14 -0
  320. package/dist/components/commonComponents/Tabs/index.js +67 -0
  321. package/dist/components/commonComponents/Tabs/index.style.d.ts +23 -0
  322. package/dist/components/commonComponents/Tabs/index.style.js +30 -0
  323. package/dist/components/commonComponents/Tag/demo.d.ts +2 -0
  324. package/dist/components/commonComponents/Tag/demo.js +30 -0
  325. package/dist/components/commonComponents/Tag/index.d.ts +7 -0
  326. package/dist/components/commonComponents/Tag/index.js +36 -0
  327. package/dist/components/commonComponents/Tag/index.style.d.ts +26 -0
  328. package/dist/components/commonComponents/Tag/index.style.js +48 -0
  329. package/dist/components/commonComponents/Textarea/demo/demo1.d.ts +3 -0
  330. package/dist/components/commonComponents/Textarea/demo/demo1.js +36 -0
  331. package/dist/components/commonComponents/Tooltip/demo/index.d.ts +3 -0
  332. package/dist/components/commonComponents/Tooltip/demo/index.js +254 -0
  333. package/dist/components/commonComponents/Tooltip/index.d.ts +11 -0
  334. package/dist/components/commonComponents/Tooltip/index.js +35 -0
  335. package/dist/components/commonComponents/Tooltip/index.style.d.ts +24 -0
  336. package/dist/components/commonComponents/Tooltip/index.style.js +32 -0
  337. package/dist/components/commonComponents/Upload/demo/demo1.d.ts +3 -0
  338. package/dist/components/commonComponents/Upload/demo/demo1.js +43 -0
  339. package/dist/components/commonComponents/Upload/demo/demo2.d.ts +2 -0
  340. package/dist/components/commonComponents/Upload/demo/demo2.js +15 -0
  341. package/dist/components/commonComponents/Upload/demo/demo3.d.ts +3 -0
  342. package/dist/components/commonComponents/Upload/demo/demo3.js +145 -0
  343. package/dist/components/commonComponents/spark.style.d.ts +45 -0
  344. package/dist/components/commonComponents/spark.style.js +62 -0
  345. package/dist/config.d.ts +27 -0
  346. package/dist/config.js +56 -0
  347. package/dist/hooks/useGlobalStyle/demo/demo.d.ts +2 -0
  348. package/dist/hooks/useGlobalStyle/demo/demo.js +47 -0
  349. package/dist/hooks/useGlobalStyle/index.d.ts +8 -0
  350. package/dist/hooks/useGlobalStyle/index.js +51 -0
  351. package/dist/i18n/index.d.ts +33 -0
  352. package/dist/i18n/index.js +62 -0
  353. package/dist/i18n/strings/en-US.json +13 -0
  354. package/dist/i18n/strings/index.js +12 -0
  355. package/dist/i18n/strings/zh-CN.json +13 -0
  356. package/dist/index.d.ts +67 -0
  357. package/dist/index.js +70 -0
  358. package/dist/libs/cookie.d.ts +9 -0
  359. package/dist/libs/cookie.js +19 -0
  360. package/dist/libs/createStyle/index.d.ts +1 -0
  361. package/dist/libs/createStyle/index.js +76 -0
  362. package/dist/libs/data/index.d.ts +15 -0
  363. package/dist/libs/data/index.js +76 -0
  364. package/dist/libs/delay/index.d.ts +6 -0
  365. package/dist/libs/delay/index.js +31 -0
  366. package/dist/libs/dom.d.ts +8 -0
  367. package/dist/libs/dom.js +37 -0
  368. package/dist/libs/env/index.d.ts +10 -0
  369. package/dist/libs/env/index.js +16 -0
  370. package/dist/libs/generateCssVars/index.d.ts +19 -0
  371. package/dist/libs/generateCssVars/index.js +39 -0
  372. package/dist/libs/loadStyle.d.ts +7 -0
  373. package/dist/libs/loadStyle.js +41 -0
  374. package/dist/libs/region/constant.d.ts +6 -0
  375. package/dist/libs/region/constant.js +154 -0
  376. package/dist/libs/region/index.d.ts +2 -0
  377. package/dist/libs/region/index.js +18 -0
  378. package/dist/libs/requestPop/index.d.ts +52 -0
  379. package/dist/libs/requestPop/index.js +89 -0
  380. package/dist/libs/requestPopSse/index.d.ts +35 -0
  381. package/dist/libs/requestPopSse/index.js +159 -0
  382. package/dist/libs/requestSse/index.d.ts +47 -0
  383. package/dist/libs/requestSse/index.js +196 -0
  384. package/dist/libs/requestSse/parse.d.ts +36 -0
  385. package/dist/libs/requestSse/parse.js +190 -0
  386. package/dist/libs/staticRenderer/index.d.ts +8 -0
  387. package/dist/libs/staticRenderer/index.js +58 -0
  388. package/dist/libs/string/index.d.ts +19 -0
  389. package/dist/libs/string/index.js +63 -0
  390. package/dist/libs/tokens.json +3 -0
  391. package/dist/libs/utils/index.d.ts +7 -0
  392. package/dist/libs/utils/index.js +69 -0
  393. package/dist/libs/waitFor/index.d.ts +25 -0
  394. package/dist/libs/waitFor/index.js +39 -0
  395. package/dist/typings.d.ts +14 -0
  396. package/package.json +173 -0
  397. package/scripts/init-migrate-config.js +68 -0
  398. package/scripts/migrate-from-bl.js +78 -0
@@ -0,0 +1,57 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["type", "className", "isCursorPointer", "spin", "size"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
+ import { getCommonConfig } from "../../../config";
11
+ import { createFromIconfontCN } from '@agentscope-ai/icons-override-antd';
12
+ import classNames from 'classnames';
13
+ import React from 'react';
14
+ import useIconFontStyle from "./index.style";
15
+ var iconFontInstance;
16
+ function getIconFontInstance(url) {
17
+ if (!iconFontInstance) {
18
+ iconFontInstance = createFromIconfontCN({
19
+ scriptUrl: url
20
+ });
21
+ }
22
+ return iconFontInstance;
23
+ }
24
+ export default function IconFont(props) {
25
+ var type = props.type,
26
+ _props$className = props.className,
27
+ className = _props$className === void 0 ? '' : _props$className,
28
+ _props$isCursorPointe = props.isCursorPointer,
29
+ isCursorPointer = _props$isCursorPointe === void 0 ? false : _props$isCursorPointe,
30
+ spin = props.spin,
31
+ _props$size = props.size,
32
+ size = _props$size === void 0 ? 'middle' : _props$size,
33
+ rest = _objectWithoutProperties(props, _excluded);
34
+ var _getCommonConfig = getCommonConfig(),
35
+ sparkPrefix = _getCommonConfig.sparkPrefix,
36
+ iconfont = _getCommonConfig.iconfont;
37
+ useIconFontStyle();
38
+ var getFontSize = function getFontSize() {
39
+ if (size === 'large') {
40
+ return '24px';
41
+ }
42
+ if (size === 'middle') {
43
+ return '20px';
44
+ }
45
+ if (size === 'small') {
46
+ return '16px';
47
+ }
48
+ return size;
49
+ };
50
+ return /*#__PURE__*/React.createElement(getIconFontInstance(iconfont), _objectSpread({
51
+ type: type,
52
+ style: _objectSpread({
53
+ fontSize: getFontSize()
54
+ }, props.style),
55
+ className: classNames(isCursorPointer && "".concat(sparkPrefix, "-cursor-pointer"), className, "".concat(sparkPrefix, "-icon"), _defineProperty({}, "".concat(sparkPrefix, "-icon-spin"), spin))
56
+ }, rest));
57
+ }
@@ -0,0 +1,67 @@
1
+ export declare function getIndexStyleData(params: any): {
2
+ [x: string]: {
3
+ '0%': {
4
+ transform: string;
5
+ };
6
+ '100%': {
7
+ transform: string;
8
+ };
9
+ display?: undefined;
10
+ alignItems?: undefined;
11
+ justifyContent?: undefined;
12
+ fontSize?: undefined;
13
+ lineHeight?: undefined;
14
+ animation?: undefined;
15
+ cursor?: undefined;
16
+ color?: undefined;
17
+ '&:hover'?: undefined;
18
+ } | {
19
+ display: string;
20
+ alignItems: string;
21
+ justifyContent: string;
22
+ fontSize: string;
23
+ lineHeight: number;
24
+ '0%'?: undefined;
25
+ '100%'?: undefined;
26
+ animation?: undefined;
27
+ cursor?: undefined;
28
+ color?: undefined;
29
+ '&:hover'?: undefined;
30
+ } | {
31
+ animation: string;
32
+ '0%'?: undefined;
33
+ '100%'?: undefined;
34
+ display?: undefined;
35
+ alignItems?: undefined;
36
+ justifyContent?: undefined;
37
+ fontSize?: undefined;
38
+ lineHeight?: undefined;
39
+ cursor?: undefined;
40
+ color?: undefined;
41
+ '&:hover'?: undefined;
42
+ } | {
43
+ cursor: string;
44
+ color: string;
45
+ '&:hover': {
46
+ color: string;
47
+ };
48
+ '0%'?: undefined;
49
+ '100%'?: undefined;
50
+ display?: undefined;
51
+ alignItems?: undefined;
52
+ justifyContent?: undefined;
53
+ fontSize?: undefined;
54
+ lineHeight?: undefined;
55
+ animation?: undefined;
56
+ };
57
+ '@keyframes spinning': {
58
+ '0%': {
59
+ transform: string;
60
+ };
61
+ '100%': {
62
+ transform: string;
63
+ };
64
+ };
65
+ };
66
+ declare const useIconFontStyle: (props?: {}) => import("../../../config").CommonConfig;
67
+ export default useIconFontStyle;
@@ -0,0 +1,44 @@
1
+ var _excluded = ["css"];
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ import createStyle from "../../../libs/createStyle";
9
+ export function getIndexStyleData(params) {
10
+ var antPrefix = params.antPrefix,
11
+ sparkPrefix = params.sparkPrefix;
12
+ return _defineProperty(_defineProperty(_defineProperty({
13
+ // @import useIndexStyle from '../../antd/styles/index.style';
14
+ '@keyframes spinning': {
15
+ '0%': {
16
+ transform: 'rotate(0deg)'
17
+ },
18
+ '100%': {
19
+ transform: 'rotate(360deg)'
20
+ }
21
+ }
22
+ }, ".".concat(sparkPrefix, "-icon"), {
23
+ display: 'inline-flex',
24
+ alignItems: 'center',
25
+ justifyContent: 'center',
26
+ fontSize: '16px',
27
+ lineHeight: 1
28
+ }), ".".concat(sparkPrefix, "-icon-spin"), {
29
+ animation: 'spinning 1s ease-in-out infinite'
30
+ }), ".".concat(sparkPrefix, "-cursor-pointer"), {
31
+ cursor: 'pointer',
32
+ color: "var(--".concat(antPrefix, "-color-icon)"),
33
+ '&:hover': {
34
+ color: "var(--".concat(antPrefix, "-color-icon-hover)")
35
+ }
36
+ });
37
+ }
38
+ var useIconFontStyle = createStyle(function (_ref2) {
39
+ var css = _ref2.css,
40
+ params = _objectWithoutProperties(_ref2, _excluded);
41
+ var result = css(getIndexStyleData(params));
42
+ return result;
43
+ });
44
+ export default useIconFontStyle;
@@ -0,0 +1 @@
1
+ export default function (): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Image } from "../../../..";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ export default function () {
4
+ return /*#__PURE__*/_jsx(Image, {
5
+ width: 200,
6
+ src: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
7
+ });
8
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ImageProps } from 'antd';
3
+ export type { ImageProps };
4
+ interface ImageComponentType extends React.FC<ImageProps> {
5
+ PreviewGroup: any;
6
+ }
7
+ declare const ImageComponent: ImageComponentType;
8
+ export default ImageComponent;
@@ -0,0 +1,37 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { Image as AntdImage, ConfigProvider } from 'antd';
8
+ import { useMemo } from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ var Image = function Image(props) {
11
+ var preview = useMemo(function () {
12
+ var basePreview = {
13
+ transitionName: ''
14
+ };
15
+ var preview = props.preview;
16
+ if (preview === false) return false;
17
+ if (preview === true) return basePreview;
18
+ return _objectSpread(_objectSpread({}, preview), basePreview);
19
+ }, [props.preview]);
20
+ return /*#__PURE__*/_jsx(ConfigProvider, {
21
+ locale: {
22
+ Image: {
23
+ preview: ''
24
+ }
25
+ },
26
+ children: /*#__PURE__*/_jsx(AntdImage, _objectSpread(_objectSpread({}, props), {}, {
27
+ preview: preview
28
+ }))
29
+ });
30
+ };
31
+
32
+ // 定义接口避免TypeScript内部类型推断
33
+
34
+ // 使用接口和类型断言避免TS4023错误
35
+ var ImageComponent = Image;
36
+ ImageComponent.PreviewGroup = AntdImage.PreviewGroup;
37
+ export default ImageComponent;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,117 @@
1
+ import { Button, Input } from "../../../..";
2
+ import { SearchOutlined } from '@agentscope-ai/icons-override-antd';
3
+ import { Flex, theme } from 'antd';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ export default (function () {
7
+ var token = theme.useToken();
8
+ return /*#__PURE__*/_jsx(Flex, {
9
+ align: "center",
10
+ justify: "center",
11
+ children: /*#__PURE__*/_jsxs("div", {
12
+ style: {
13
+ width: 350
14
+ },
15
+ children: [/*#__PURE__*/_jsx("div", {
16
+ style: {
17
+ fontSize: 14,
18
+ fontWeight: 500
19
+ },
20
+ children: "Title"
21
+ }), /*#__PURE__*/_jsxs(Flex, {
22
+ gap: "middle",
23
+ style: {
24
+ marginTop: 10
25
+ },
26
+ children: [/*#__PURE__*/_jsx(Input, {
27
+ showCount: true,
28
+ maxLength: 20
29
+ }), /*#__PURE__*/_jsx(Button, {
30
+ type: "primary",
31
+ children: "Operate"
32
+ })]
33
+ }), /*#__PURE__*/_jsx("div", {
34
+ style: {
35
+ color: token.token.colorTextTertiary,
36
+ fontSize: 12,
37
+ marginTop: 8
38
+ },
39
+ children: "input info"
40
+ }), /*#__PURE__*/_jsxs(Flex, {
41
+ gap: 20,
42
+ style: {
43
+ marginTop: 20
44
+ },
45
+ align: "center",
46
+ children: [/*#__PURE__*/_jsx("div", {
47
+ style: {
48
+ fontSize: 14,
49
+ fontWeight: 500
50
+ },
51
+ children: "Title"
52
+ }), /*#__PURE__*/_jsx(Input, {})]
53
+ }), /*#__PURE__*/_jsx("div", {
54
+ style: {
55
+ marginTop: 20
56
+ },
57
+ children: /*#__PURE__*/_jsx(Input, {
58
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
59
+ placeholder: "Type here...",
60
+ allowClear: true
61
+ })
62
+ }), /*#__PURE__*/_jsx("div", {
63
+ style: {
64
+ marginTop: 20
65
+ },
66
+ children: /*#__PURE__*/_jsx(Input, {
67
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
68
+ placeholder: "Type here...",
69
+ allowClear: true,
70
+ status: "error"
71
+ })
72
+ }), /*#__PURE__*/_jsx("div", {
73
+ style: {
74
+ marginTop: 20
75
+ },
76
+ children: /*#__PURE__*/_jsx(Input, {
77
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
78
+ placeholder: "Type here...",
79
+ allowClear: true,
80
+ disabled: true
81
+ })
82
+ }), /*#__PURE__*/_jsx("div", {
83
+ style: {
84
+ marginTop: 20
85
+ },
86
+ children: /*#__PURE__*/_jsx(Input, {
87
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
88
+ placeholder: "Type here...",
89
+ allowClear: true,
90
+ shape: "round"
91
+ })
92
+ }), /*#__PURE__*/_jsx("div", {
93
+ style: {
94
+ marginTop: 20
95
+ },
96
+ children: /*#__PURE__*/_jsx(Input, {
97
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
98
+ placeholder: "Type here...",
99
+ allowClear: true,
100
+ status: "error",
101
+ shape: "round"
102
+ })
103
+ }), /*#__PURE__*/_jsx("div", {
104
+ style: {
105
+ marginTop: 20
106
+ },
107
+ children: /*#__PURE__*/_jsx(Input, {
108
+ prefix: /*#__PURE__*/_jsx(SearchOutlined, {}),
109
+ placeholder: "Type here...",
110
+ allowClear: true,
111
+ disabled: true,
112
+ shape: "round"
113
+ })
114
+ })]
115
+ })
116
+ });
117
+ });
@@ -0,0 +1,13 @@
1
+ import { Input, InputProps, InputRef } from 'antd';
2
+ import React from 'react';
3
+ export interface SparkInputProps extends InputProps {
4
+ shape?: 'default' | 'round';
5
+ }
6
+ type CompoundedComponent = React.ForwardRefExoticComponent<SparkInputProps & React.RefAttributes<InputRef>> & {
7
+ TextArea: typeof Input.TextArea;
8
+ Search: typeof Input.Search;
9
+ Password: typeof Input.Password;
10
+ OTP: typeof Input.OTP;
11
+ };
12
+ declare const _default: CompoundedComponent;
13
+ export default _default;
@@ -0,0 +1,34 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["shape"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
+ import { getCommonConfig } from "../../..";
11
+ import { Input } from 'antd';
12
+ import classNames from 'classnames';
13
+ import React from 'react';
14
+ import useIndexStyle from "./index.style";
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ var SparkInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
17
+ var _props$shape = props.shape,
18
+ shape = _props$shape === void 0 ? 'default' : _props$shape,
19
+ restProps = _objectWithoutProperties(props, _excluded);
20
+ var _getCommonConfig = getCommonConfig(),
21
+ antPrefix = _getCommonConfig.antPrefix;
22
+ useIndexStyle();
23
+ return /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread({}, restProps), {}, {
24
+ className: classNames(props.className, _defineProperty({}, "".concat(antPrefix, "-input-round"), shape === 'round')),
25
+ ref: ref
26
+ }));
27
+ });
28
+ Object.assign(SparkInput, {
29
+ TextArea: Input.TextArea,
30
+ Search: Input.Search,
31
+ Password: Input.Password,
32
+ OTP: Input.OTP
33
+ });
34
+ export default SparkInput;
@@ -0,0 +1,36 @@
1
+ export declare function getIndexStyleData(params: any): {
2
+ [x: string]: {
3
+ borderColor: string;
4
+ fontWeight?: undefined;
5
+ borderRadius?: undefined;
6
+ fontSize?: undefined;
7
+ } | {
8
+ [x: string]: string | number | {
9
+ color: string;
10
+ };
11
+ fontWeight: number;
12
+ borderRadius: string;
13
+ borderColor?: undefined;
14
+ fontSize?: undefined;
15
+ } | {
16
+ [x: string]: {
17
+ marginInlineEnd: string;
18
+ };
19
+ borderColor?: undefined;
20
+ fontWeight?: undefined;
21
+ borderRadius?: undefined;
22
+ fontSize?: undefined;
23
+ } | {
24
+ fontSize: string;
25
+ borderColor?: undefined;
26
+ fontWeight?: undefined;
27
+ borderRadius?: undefined;
28
+ } | {
29
+ borderRadius: string;
30
+ borderColor?: undefined;
31
+ fontWeight?: undefined;
32
+ fontSize?: undefined;
33
+ };
34
+ };
35
+ declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
36
+ export default useIndexStyle;
@@ -0,0 +1,32 @@
1
+ var _excluded = ["css"];
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ import createStyle from "../../../libs/createStyle";
9
+ export function getIndexStyleData(params) {
10
+ var antPrefix = params.antPrefix;
11
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(antPrefix, "-input-outlined"), {
12
+ borderColor: "var(--".concat(antPrefix, "-color-border-secondary)")
13
+ }), ".".concat(antPrefix, "-input"), _defineProperty({
14
+ fontWeight: 400,
15
+ borderRadius: '6px'
16
+ }, ".".concat(antPrefix, "-input-affix-wrapper .").concat(antPrefix, "-input-show-count-suffix"), {
17
+ color: "var(--".concat(antPrefix, "-color-text-tertiary)")
18
+ })), ".".concat(antPrefix, "-input-affix-wrapper"), _defineProperty({}, ".".concat(antPrefix, "-input-prefix"), {
19
+ marginInlineEnd: '8px'
20
+ })), ".".concat(antPrefix, "-input-affix-wrapper .").concat(antPrefix, "-input-clear-icon"), {
21
+ fontSize: '15px'
22
+ }), ".".concat(antPrefix, "-input-round"), {
23
+ borderRadius: '999px'
24
+ });
25
+ }
26
+ var useIndexStyle = createStyle(function (_ref2) {
27
+ var css = _ref2.css,
28
+ params = _objectWithoutProperties(_ref2, _excluded);
29
+ var result = css(getIndexStyleData(params));
30
+ return result;
31
+ });
32
+ export default useIndexStyle;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,38 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { InputNumber, Switch } from 'antd';
8
+ import React, { useState } from 'react';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { Fragment as _Fragment } from "react/jsx-runtime";
12
+ var onChange = function onChange(value) {
13
+ console.log('changed', value);
14
+ };
15
+ var App = function App() {
16
+ var _useState = useState(false),
17
+ _useState2 = _slicedToArray(_useState, 2),
18
+ disabled = _useState2[0],
19
+ setDisabled = _useState2[1];
20
+ return /*#__PURE__*/_jsxs(_Fragment, {
21
+ children: [/*#__PURE__*/_jsxs("div", {
22
+ style: {
23
+ marginBottom: 12
24
+ },
25
+ children: ["Disabled: ", /*#__PURE__*/_jsx(Switch, {
26
+ checked: disabled,
27
+ onChange: setDisabled
28
+ })]
29
+ }), /*#__PURE__*/_jsx(InputNumber, {
30
+ min: 1,
31
+ max: 10,
32
+ defaultValue: 3,
33
+ onChange: onChange,
34
+ disabled: disabled
35
+ })]
36
+ });
37
+ };
38
+ export default App;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,43 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { Input } from "../../../..";
8
+ import { DemoBlock } from ".dumi/theme/DemoComponents/DemoBlock";
9
+ import { useState } from 'react';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { Fragment as _Fragment } from "react/jsx-runtime";
12
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ export default (function () {
14
+ var Search = Input.Search;
15
+ var _useState = useState(''),
16
+ _useState2 = _slicedToArray(_useState, 2),
17
+ keywords = _useState2[0],
18
+ setKeywords = _useState2[1];
19
+ function handleSearch(value) {
20
+ console.log('value: ', value);
21
+ }
22
+ return /*#__PURE__*/_jsxs(_Fragment, {
23
+ children: [/*#__PURE__*/_jsx(DemoBlock, {
24
+ title: "\u641C\u7D22\u6846",
25
+ children: /*#__PURE__*/_jsx(Search, {
26
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
27
+ allowClear: true,
28
+ onSearch: handleSearch
29
+ })
30
+ }), /*#__PURE__*/_jsx(DemoBlock, {
31
+ title: "\u53D7\u63A7\u641C\u7D22\u6846",
32
+ children: /*#__PURE__*/_jsx(Search, {
33
+ placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u641C\u7D22",
34
+ allowClear: true,
35
+ value: keywords,
36
+ onChange: function onChange(e) {
37
+ return setKeywords(e.target.value);
38
+ },
39
+ onSearch: handleSearch
40
+ })
41
+ })]
42
+ });
43
+ });
@@ -0,0 +1,2 @@
1
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { message } from "../../..";
2
+ import { Button, Flex } from 'antd';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ export default (function () {
6
+ return /*#__PURE__*/_jsxs(Flex, {
7
+ align: "center",
8
+ justify: "center",
9
+ gap: 20,
10
+ children: [/*#__PURE__*/_jsx(Button, {
11
+ type: "primary",
12
+ onClick: function onClick() {
13
+ message.success({
14
+ content: 'success',
15
+ viewLink: 'https://www.taobao.com',
16
+ onClick: function onClick() {
17
+ alert('click');
18
+ },
19
+ duration: 0
20
+ });
21
+ },
22
+ children: "Success"
23
+ }), /*#__PURE__*/_jsx(Button, {
24
+ danger: true,
25
+ onClick: function onClick() {
26
+ message.warning('warning');
27
+ },
28
+ children: "warning"
29
+ }), /*#__PURE__*/_jsx(Button, {
30
+ type: "primary",
31
+ danger: true,
32
+ onClick: function onClick() {
33
+ message.error({
34
+ content: 'error'
35
+ });
36
+ },
37
+ children: "error"
38
+ }), /*#__PURE__*/_jsx(Button, {
39
+ onClick: function onClick() {
40
+ message.info({
41
+ content: 'info',
42
+ viewLink: 'https://www.taobao.com'
43
+ });
44
+ },
45
+ children: "info"
46
+ }), /*#__PURE__*/_jsx(Button, {
47
+ onClick: function onClick() {
48
+ message.loading('loading');
49
+ },
50
+ children: "loading"
51
+ })]
52
+ });
53
+ });
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { MessageArgsProps } from 'antd';
3
+ interface SparkMessageArgsProps extends MessageArgsProps {
4
+ viewLink?: string;
5
+ conent?: string;
6
+ }
7
+ export type JointContent = string | SparkMessageArgsProps;
8
+ declare const _default: {
9
+ success: (props: JointContent) => void;
10
+ warning: (props: JointContent) => void;
11
+ error: (props: JointContent) => void;
12
+ info: (props: JointContent) => void;
13
+ loading: (props: JointContent) => void;
14
+ open: (config: MessageArgsProps) => import("antd/es/message/interface").MessageType;
15
+ destroy: (key?: import("react").Key) => void;
16
+ config: (config: import("antd/es/message/interface").ConfigOptions) => void;
17
+ useMessage: typeof import("antd/es/message/useMessage").default;
18
+ _InternalPanelDoNotUseOrYouWillBeFired: import("react").FC<import("antd/es/message/PurePanel").PurePanelProps>;
19
+ };
20
+ export default _default;