@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,76 @@
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 { Button, notification } from "../../../..";
8
+ import { RadiusBottomleftOutlined, RadiusBottomrightOutlined, RadiusUpleftOutlined, RadiusUprightOutlined } from "@agentscope-ai/icons-override-antd";
9
+ import { Divider, Space } from 'antd';
10
+ import React, { useMemo } from 'react';
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ var Context = /*#__PURE__*/React.createContext({
14
+ name: 'Default'
15
+ });
16
+ var App = function App() {
17
+ var _notification$useNoti = notification.useNotification(),
18
+ _notification$useNoti2 = _slicedToArray(_notification$useNoti, 2),
19
+ api = _notification$useNoti2[0],
20
+ contextHolder = _notification$useNoti2[1];
21
+ var openNotification = function openNotification(placement) {
22
+ api.info({
23
+ message: "Notification ".concat(placement),
24
+ description: /*#__PURE__*/_jsx(Context.Consumer, {
25
+ children: function children(_ref) {
26
+ var name = _ref.name;
27
+ return "Hello, ".concat(name, "!");
28
+ }
29
+ }),
30
+ placement: placement,
31
+ duration: 0
32
+ });
33
+ };
34
+ var contextValue = useMemo(function () {
35
+ return {
36
+ name: 'Ant Design'
37
+ };
38
+ }, []);
39
+ return /*#__PURE__*/_jsxs(Context.Provider, {
40
+ value: contextValue,
41
+ children: [contextHolder, /*#__PURE__*/_jsxs(Space, {
42
+ children: [/*#__PURE__*/_jsx(Button, {
43
+ type: "primary",
44
+ onClick: function onClick() {
45
+ return openNotification('topLeft');
46
+ },
47
+ icon: /*#__PURE__*/_jsx(RadiusUpleftOutlined, {}),
48
+ children: "topLeft"
49
+ }), /*#__PURE__*/_jsx(Button, {
50
+ type: "primary",
51
+ onClick: function onClick() {
52
+ return openNotification('topRight');
53
+ },
54
+ icon: /*#__PURE__*/_jsx(RadiusUprightOutlined, {}),
55
+ children: "topRight"
56
+ })]
57
+ }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs(Space, {
58
+ children: [/*#__PURE__*/_jsx(Button, {
59
+ type: "primary",
60
+ onClick: function onClick() {
61
+ return openNotification('bottomLeft');
62
+ },
63
+ icon: /*#__PURE__*/_jsx(RadiusBottomleftOutlined, {}),
64
+ children: "bottomLeft"
65
+ }), /*#__PURE__*/_jsx(Button, {
66
+ type: "primary",
67
+ onClick: function onClick() {
68
+ return openNotification('bottomRight');
69
+ },
70
+ icon: /*#__PURE__*/_jsx(RadiusBottomrightOutlined, {}),
71
+ children: "bottomRight"
72
+ })]
73
+ })]
74
+ });
75
+ };
76
+ export default App;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,50 @@
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 { Button, notification } from "../../../..";
8
+ import { Space } from 'antd';
9
+ import React from 'react';
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ import { jsxs as _jsxs } from "react/jsx-runtime";
12
+ import { Fragment as _Fragment } from "react/jsx-runtime";
13
+ var App = function App() {
14
+ var _notification$useNoti = notification.useNotification(),
15
+ _notification$useNoti2 = _slicedToArray(_notification$useNoti, 2),
16
+ api = _notification$useNoti2[0],
17
+ contextHolder = _notification$useNoti2[1];
18
+ var openNotificationWithIcon = function openNotificationWithIcon(type) {
19
+ api[type]({
20
+ message: 'Notification Title',
21
+ description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
22
+ });
23
+ };
24
+ return /*#__PURE__*/_jsxs(_Fragment, {
25
+ children: [contextHolder, /*#__PURE__*/_jsxs(Space, {
26
+ children: [/*#__PURE__*/_jsx(Button, {
27
+ onClick: function onClick() {
28
+ return openNotificationWithIcon('success');
29
+ },
30
+ children: "Success"
31
+ }), /*#__PURE__*/_jsx(Button, {
32
+ onClick: function onClick() {
33
+ return openNotificationWithIcon('info');
34
+ },
35
+ children: "Info"
36
+ }), /*#__PURE__*/_jsx(Button, {
37
+ onClick: function onClick() {
38
+ return openNotificationWithIcon('warning');
39
+ },
40
+ children: "Warning"
41
+ }), /*#__PURE__*/_jsx(Button, {
42
+ onClick: function onClick() {
43
+ return openNotificationWithIcon('error');
44
+ },
45
+ children: "Error"
46
+ })]
47
+ })]
48
+ });
49
+ };
50
+ export default App;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,46 @@
1
+ import { Button, notification } from "../../../..";
2
+ import { Space } from 'antd';
3
+ import React from 'react';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { Fragment as _Fragment } from "react/jsx-runtime";
7
+ var App = function App() {
8
+ return /*#__PURE__*/_jsx(_Fragment, {
9
+ children: /*#__PURE__*/_jsxs(Space, {
10
+ children: [/*#__PURE__*/_jsx(Button, {
11
+ onClick: function onClick() {
12
+ return notification.success({
13
+ message: 'Notification Title',
14
+ description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
15
+ });
16
+ },
17
+ children: "Success"
18
+ }), /*#__PURE__*/_jsx(Button, {
19
+ onClick: function onClick() {
20
+ return notification.info({
21
+ message: 'Notification Title',
22
+ description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
23
+ });
24
+ },
25
+ children: "Info"
26
+ }), /*#__PURE__*/_jsx(Button, {
27
+ onClick: function onClick() {
28
+ return notification.warning({
29
+ message: 'Notification Title',
30
+ description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
31
+ });
32
+ },
33
+ children: "Warning"
34
+ }), /*#__PURE__*/_jsx(Button, {
35
+ onClick: function onClick() {
36
+ return notification.error({
37
+ message: 'Notification Title',
38
+ description: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.'
39
+ });
40
+ },
41
+ children: "Error"
42
+ })]
43
+ })
44
+ });
45
+ };
46
+ export default App;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { ArgsProps } from 'antd/es/notification';
3
+ import { GlobalConfigProps } from 'antd/es/notification/interface';
4
+ import useNotification from 'antd/es/notification/useNotification';
5
+ interface BaseMethods {
6
+ open: (config: ArgsProps) => void;
7
+ destroy: (key?: React.Key) => void;
8
+ config: (config: GlobalConfigProps) => void;
9
+ useNotification: typeof useNotification;
10
+ }
11
+ type StaticFn = (config: ArgsProps) => void;
12
+ interface NoticeMethods {
13
+ success: StaticFn;
14
+ info: StaticFn;
15
+ warning: StaticFn;
16
+ error: StaticFn;
17
+ }
18
+ type staticMethods = NoticeMethods & BaseMethods;
19
+ declare const sparkNotification: staticMethods;
20
+ export default sparkNotification;
@@ -0,0 +1,106 @@
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
+ 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."); }
4
+ 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); }
5
+ 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; }
6
+ 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; } }
7
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ 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); }
13
+ import { getCommonConfig } from "../../../config";
14
+ import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined } from "@agentscope-ai/icons-override-antd";
15
+ import { notification } from 'antd';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ var types = ['success', 'warning', 'error', 'info'];
18
+ function getIcon(type, antPrefix) {
19
+ if (type === 'success') {
20
+ return /*#__PURE__*/_jsx(CheckCircleOutlined, {
21
+ style: {
22
+ color: "var(--".concat(antPrefix, "-color-success)"),
23
+ fontSize: 18
24
+ }
25
+ });
26
+ }
27
+ if (type === 'warning') {
28
+ return /*#__PURE__*/_jsx(ExclamationCircleOutlined, {
29
+ style: {
30
+ color: "var(--".concat(antPrefix, "-color-warning)"),
31
+ fontSize: 18
32
+ }
33
+ });
34
+ }
35
+ if (type === 'info') {
36
+ return /*#__PURE__*/_jsx(InfoCircleOutlined, {
37
+ style: {
38
+ color: "var(--".concat(antPrefix, "-color-info)"),
39
+ fontSize: 18
40
+ }
41
+ });
42
+ }
43
+ if (type === 'error') {
44
+ return /*#__PURE__*/_jsx(CloseCircleOutlined, {
45
+ style: {
46
+ color: "var(--".concat(antPrefix, "-color-error)"),
47
+ fontSize: 18
48
+ }
49
+ });
50
+ }
51
+ }
52
+ // @ts-ignore
53
+ var sparkNotification = {};
54
+ sparkNotification.destroy = notification.destroy;
55
+ sparkNotification.open = function (props) {
56
+ var commonConfig = getCommonConfig();
57
+ var sparkPrefix = commonConfig.sparkPrefix;
58
+ var mergedClassName = "".concat(sparkPrefix, "-notification");
59
+ if (props.className) {
60
+ mergedClassName += " ".concat(props.className);
61
+ }
62
+ notification.open(_objectSpread(_objectSpread({}, props), {}, {
63
+ className: mergedClassName
64
+ }));
65
+ };
66
+ types.forEach(function (type) {
67
+ sparkNotification[type] = function (props) {
68
+ var commonConfig = getCommonConfig();
69
+ var sparkPrefix = commonConfig.sparkPrefix;
70
+ var mergedClassName = "".concat(sparkPrefix, "-notification");
71
+ if (props.className) {
72
+ mergedClassName += " ".concat(props.className);
73
+ }
74
+ notification[type](_objectSpread(_objectSpread({}, props), {}, {
75
+ className: mergedClassName
76
+ }));
77
+ };
78
+ });
79
+ sparkNotification.useNotification = function (props) {
80
+ var commonConfig = getCommonConfig();
81
+ var sparkPrefix = commonConfig.sparkPrefix,
82
+ antPrefix = commonConfig.antPrefix;
83
+ var mergedClassName = "".concat(sparkPrefix, "-notification");
84
+ var _notification$useNoti = notification.useNotification(props),
85
+ _notification$useNoti2 = _slicedToArray(_notification$useNoti, 2),
86
+ api = _notification$useNoti2[0],
87
+ contextHolder = _notification$useNoti2[1];
88
+ // @ts-ignore
89
+ var newAPi = {};
90
+ types.forEach(function (type) {
91
+ newAPi[type] = function (props) {
92
+ return api[type](_objectSpread(_objectSpread({}, props), {}, {
93
+ className: mergedClassName,
94
+ icon: getIcon(type, antPrefix)
95
+ }));
96
+ };
97
+ });
98
+ newAPi.open = function (props) {
99
+ notification.open(_objectSpread(_objectSpread({}, props), {}, {
100
+ className: mergedClassName
101
+ }));
102
+ };
103
+ newAPi.destroy = api.destroy;
104
+ return [newAPi, contextHolder];
105
+ };
106
+ export default sparkNotification;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,14 @@
1
+ import { Pagination } from "../../../..";
2
+ import { Flex } from 'antd';
3
+ import React from 'react';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ var App = function App() {
6
+ return /*#__PURE__*/_jsx(Flex, {
7
+ align: "center",
8
+ vertical: true,
9
+ justify: "center",
10
+ gap: 50,
11
+ children: /*#__PURE__*/_jsx(Pagination, {})
12
+ });
13
+ };
14
+ export default App;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,16 @@
1
+ import { Pagination } from "../../../..";
2
+ import { Flex } from 'antd';
3
+ import React from 'react';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ var App = function App() {
6
+ return /*#__PURE__*/_jsx(Flex, {
7
+ align: "center",
8
+ vertical: true,
9
+ justify: "center",
10
+ gap: 50,
11
+ children: /*#__PURE__*/_jsx(Pagination, {
12
+ hideTips: true
13
+ })
14
+ });
15
+ };
16
+ export default App;
@@ -0,0 +1,12 @@
1
+ import { PaginationProps } from 'antd';
2
+ export type SparkPaginationProps = PaginationProps & {
3
+ /**
4
+ * @description 是否展示上一页,下一页的tips
5
+ */
6
+ /**
7
+ * @default false
8
+ */
9
+ hideTips?: boolean;
10
+ };
11
+ declare const _default: (props: SparkPaginationProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default _default;
@@ -0,0 +1,59 @@
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 = ["hideTips"];
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 $i18n from "../../../i18n";
11
+ import { LeftOutlined, RightOutlined } from "@agentscope-ai/icons-override-antd";
12
+ import { Flex, Pagination } from 'antd';
13
+ import useIndexStyle from "./index.style";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ export default (function (props) {
17
+ var _props$hideTips = props.hideTips,
18
+ hideTips = _props$hideTips === void 0 ? false : _props$hideTips,
19
+ restProps = _objectWithoutProperties(props, _excluded);
20
+ useIndexStyle();
21
+ var mergedItemRender = function mergedItemRender() {
22
+ if (hideTips || props.itemRender) {
23
+ return props.itemRender;
24
+ }
25
+ var sparkItemRender = function sparkItemRender(_, type, originalElement) {
26
+ if (type === 'prev') {
27
+ return /*#__PURE__*/_jsx("a", {
28
+ children: /*#__PURE__*/_jsxs(Flex, {
29
+ gap: 8,
30
+ children: [/*#__PURE__*/_jsx(LeftOutlined, {}), ' ', /*#__PURE__*/_jsx("span", {
31
+ children: $i18n.get({
32
+ id: 'components.commonComponents.Pagination.PreviousPage',
33
+ dm: '上一页'
34
+ })
35
+ })]
36
+ })
37
+ });
38
+ }
39
+ if (type === 'next') {
40
+ return /*#__PURE__*/_jsx("a", {
41
+ children: /*#__PURE__*/_jsxs(Flex, {
42
+ gap: 8,
43
+ children: [/*#__PURE__*/_jsx("span", {
44
+ children: $i18n.get({
45
+ id: 'components.commonComponents.Pagination.NextPage',
46
+ dm: '下一页'
47
+ })
48
+ }), ' ', /*#__PURE__*/_jsx(RightOutlined, {})]
49
+ })
50
+ });
51
+ }
52
+ return originalElement;
53
+ };
54
+ return sparkItemRender;
55
+ };
56
+ return /*#__PURE__*/_jsx(Pagination, _objectSpread({
57
+ itemRender: mergedItemRender()
58
+ }, restProps));
59
+ });
@@ -0,0 +1,12 @@
1
+ export declare function getIndexStyleData(params: any): {
2
+ [x: string]: {
3
+ [x: string]: {
4
+ borderColor: string;
5
+ a: {
6
+ color: string;
7
+ };
8
+ };
9
+ };
10
+ };
11
+ declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
12
+ export default useIndexStyle;
@@ -0,0 +1,24 @@
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({}, ".".concat(antPrefix, "-pagination"), _defineProperty({}, ".".concat(antPrefix, "-pagination-item-active.").concat(antPrefix, "-pagination-item"), {
12
+ borderColor: "var(--".concat(antPrefix, "-color-border-secondary)"),
13
+ a: {
14
+ color: "var(--".concat(antPrefix, "-color-text)")
15
+ }
16
+ }));
17
+ }
18
+ var useIndexStyle = createStyle(function (_ref2) {
19
+ var css = _ref2.css,
20
+ params = _objectWithoutProperties(_ref2, _excluded);
21
+ var result = css(getIndexStyleData(params));
22
+ return result;
23
+ });
24
+ 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,155 @@
1
+ import { Button, ConfigProvider, Popconfirm } from "../../../..";
2
+ import React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
5
+ var text = 'Are you sure to delete this task?';
6
+ var description = 'Delete the task';
7
+ var ButtonWidth = 80;
8
+ var App = function App() {
9
+ return /*#__PURE__*/_jsx(ConfigProvider, {
10
+ button: {
11
+ style: {
12
+ width: ButtonWidth,
13
+ margin: 4
14
+ }
15
+ },
16
+ children: /*#__PURE__*/_jsxs("div", {
17
+ className: "demo",
18
+ children: [/*#__PURE__*/_jsxs("div", {
19
+ style: {
20
+ marginInlineStart: ButtonWidth,
21
+ whiteSpace: 'nowrap'
22
+ },
23
+ children: [/*#__PURE__*/_jsx(Popconfirm, {
24
+ placement: "topLeft",
25
+ title: text,
26
+ description: description,
27
+ okText: "Yes",
28
+ cancelText: "No",
29
+ children: /*#__PURE__*/_jsx(Button, {
30
+ children: "TL"
31
+ })
32
+ }), /*#__PURE__*/_jsx(Popconfirm, {
33
+ placement: "top",
34
+ title: text,
35
+ description: description,
36
+ okText: "Yes",
37
+ cancelText: "No",
38
+ children: /*#__PURE__*/_jsx(Button, {
39
+ children: "Top"
40
+ })
41
+ }), /*#__PURE__*/_jsx(Popconfirm, {
42
+ placement: "topRight",
43
+ title: text,
44
+ description: description,
45
+ okText: "Yes",
46
+ cancelText: "No",
47
+ children: /*#__PURE__*/_jsx(Button, {
48
+ children: "TR"
49
+ })
50
+ })]
51
+ }), /*#__PURE__*/_jsxs("div", {
52
+ style: {
53
+ width: ButtonWidth,
54
+ float: 'inline-start'
55
+ },
56
+ children: [/*#__PURE__*/_jsx(Popconfirm, {
57
+ placement: "leftTop",
58
+ title: text,
59
+ description: description,
60
+ okText: "Yes",
61
+ cancelText: "No",
62
+ children: /*#__PURE__*/_jsx(Button, {
63
+ children: "LT"
64
+ })
65
+ }), /*#__PURE__*/_jsx(Popconfirm, {
66
+ placement: "left",
67
+ title: text,
68
+ description: description,
69
+ okText: "Yes",
70
+ cancelText: "No",
71
+ children: /*#__PURE__*/_jsx(Button, {
72
+ children: "Left"
73
+ })
74
+ }), /*#__PURE__*/_jsx(Popconfirm, {
75
+ placement: "leftBottom",
76
+ title: text,
77
+ description: description,
78
+ okText: "Yes",
79
+ cancelText: "No",
80
+ children: /*#__PURE__*/_jsx(Button, {
81
+ children: "LB"
82
+ })
83
+ })]
84
+ }), /*#__PURE__*/_jsxs("div", {
85
+ style: {
86
+ width: ButtonWidth,
87
+ marginInlineStart: ButtonWidth * 4 + 24
88
+ },
89
+ children: [/*#__PURE__*/_jsx(Popconfirm, {
90
+ placement: "rightTop",
91
+ title: text,
92
+ description: description,
93
+ okText: "Yes",
94
+ cancelText: "No",
95
+ children: /*#__PURE__*/_jsx(Button, {
96
+ children: "RT"
97
+ })
98
+ }), /*#__PURE__*/_jsx(Popconfirm, {
99
+ placement: "right",
100
+ title: text,
101
+ description: description,
102
+ okText: "Yes",
103
+ cancelText: "No",
104
+ children: /*#__PURE__*/_jsx(Button, {
105
+ children: "Right"
106
+ })
107
+ }), /*#__PURE__*/_jsx(Popconfirm, {
108
+ placement: "rightBottom",
109
+ title: text,
110
+ description: description,
111
+ okText: "Yes",
112
+ cancelText: "No",
113
+ children: /*#__PURE__*/_jsx(Button, {
114
+ children: "RB"
115
+ })
116
+ })]
117
+ }), /*#__PURE__*/_jsxs("div", {
118
+ style: {
119
+ marginInlineStart: ButtonWidth,
120
+ clear: 'both',
121
+ whiteSpace: 'nowrap'
122
+ },
123
+ children: [/*#__PURE__*/_jsx(Popconfirm, {
124
+ placement: "bottomLeft",
125
+ title: text,
126
+ description: description,
127
+ okText: "Yes",
128
+ cancelText: "No",
129
+ children: /*#__PURE__*/_jsx(Button, {
130
+ children: "BL"
131
+ })
132
+ }), /*#__PURE__*/_jsx(Popconfirm, {
133
+ placement: "bottom",
134
+ title: text,
135
+ description: description,
136
+ okText: "Yes",
137
+ cancelText: "No",
138
+ children: /*#__PURE__*/_jsx(Button, {
139
+ children: "Bottom"
140
+ })
141
+ }), /*#__PURE__*/_jsx(Popconfirm, {
142
+ placement: "bottomRight",
143
+ title: text,
144
+ description: description,
145
+ okText: "Yes",
146
+ cancelText: "No",
147
+ children: /*#__PURE__*/_jsx(Button, {
148
+ children: "BR"
149
+ })
150
+ })]
151
+ })]
152
+ })
153
+ });
154
+ };
155
+ export default App;
@@ -0,0 +1,5 @@
1
+ import { PopconfirmProps } from 'antd';
2
+ import React from 'react';
3
+ declare const SparkPopconfirm: React.ForwardRefExoticComponent<PopconfirmProps & React.RefAttributes<any>>;
4
+ export default SparkPopconfirm;
5
+ export type SparkPopconfirmProps = PopconfirmProps;