@fangxinyan/lumina 0.6.1 → 0.6.2

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 (246) hide show
  1. package/dist/Alert.cjs +3 -3
  2. package/dist/Alert.js +2 -2
  3. package/dist/AutoComplete.cjs +5 -4
  4. package/dist/AutoComplete.d.cts +1 -1
  5. package/dist/AutoComplete.d.ts +1 -1
  6. package/dist/AutoComplete.js +4 -3
  7. package/dist/Badge-DPGLV3D3.css +22 -0
  8. package/dist/Badge.cjs +10 -0
  9. package/dist/Badge.d.cts +18 -0
  10. package/dist/Badge.d.ts +18 -0
  11. package/dist/Badge.js +1 -0
  12. package/dist/Button.cjs +3 -7
  13. package/dist/Button.d.cts +5 -10
  14. package/dist/Button.d.ts +5 -10
  15. package/dist/Button.js +2 -2
  16. package/dist/Calendar.cjs +3 -3
  17. package/dist/Calendar.js +2 -2
  18. package/dist/{Card-RG7ECXL2.css → Card-6RMVIHWX.css} +7 -13
  19. package/dist/Card.cjs +2 -6
  20. package/dist/Card.d.cts +7 -11
  21. package/dist/Card.d.ts +7 -11
  22. package/dist/Card.js +1 -1
  23. package/dist/{Cascader-VSYEKQCG.css → Cascader-C2DFSMKJ.css} +64 -0
  24. package/dist/Cascader.cjs +5 -3
  25. package/dist/Cascader.d.cts +18 -2
  26. package/dist/Cascader.d.ts +18 -2
  27. package/dist/Cascader.js +4 -2
  28. package/dist/{Checkbox-SKJATVSN.css → Checkbox-U5EUDSYS.css} +5 -35
  29. package/dist/Checkbox.cjs +3 -7
  30. package/dist/Checkbox.d.cts +1 -18
  31. package/dist/Checkbox.d.ts +1 -18
  32. package/dist/Checkbox.js +2 -2
  33. package/dist/Collapse-66U5YJFY.css +53 -0
  34. package/dist/Collapse.cjs +11 -0
  35. package/dist/Collapse.d.cts +32 -0
  36. package/dist/Collapse.d.ts +32 -0
  37. package/dist/Collapse.js +2 -0
  38. package/dist/CommandPalette.cjs +5 -4
  39. package/dist/CommandPalette.js +4 -3
  40. package/dist/Drawer.cjs +3 -3
  41. package/dist/Drawer.js +2 -2
  42. package/dist/Empty-DC2LPORC.css +28 -0
  43. package/dist/Empty.cjs +2 -10
  44. package/dist/Empty.d.cts +1 -62
  45. package/dist/Empty.d.ts +1 -62
  46. package/dist/Empty.js +1 -1
  47. package/dist/Form.d.cts +1 -1
  48. package/dist/Form.d.ts +1 -1
  49. package/dist/Icon.cjs +179 -3
  50. package/dist/Icon.d.cts +96 -3
  51. package/dist/Icon.d.ts +96 -3
  52. package/dist/Icon.js +1 -1
  53. package/dist/Image.cjs +4 -4
  54. package/dist/Image.js +2 -2
  55. package/dist/{Input-33CAH4O6.css → Input-3G4ONWNU.css} +15 -42
  56. package/dist/Input.cjs +6 -5
  57. package/dist/Input.d.cts +19 -23
  58. package/dist/Input.d.ts +19 -23
  59. package/dist/Input.js +3 -2
  60. package/dist/InputNumber.cjs +5 -4
  61. package/dist/InputNumber.d.cts +1 -1
  62. package/dist/InputNumber.d.ts +1 -1
  63. package/dist/InputNumber.js +4 -3
  64. package/dist/Message-2MZ3LFPU.css +45 -0
  65. package/dist/Message.cjs +23 -0
  66. package/dist/Message.d.cts +54 -0
  67. package/dist/Message.d.ts +54 -0
  68. package/dist/Message.js +2 -0
  69. package/dist/{Modal-XSDMU4XJ.css → Modal-2QNDW4SO.css} +27 -0
  70. package/dist/Modal.cjs +4 -4
  71. package/dist/Modal.d.cts +28 -4
  72. package/dist/Modal.d.ts +28 -4
  73. package/dist/Modal.js +3 -3
  74. package/dist/Pagination.cjs +7 -5
  75. package/dist/Pagination.js +6 -4
  76. package/dist/Popover.cjs +2 -2
  77. package/dist/Popover.d.cts +11 -3
  78. package/dist/Popover.d.ts +11 -3
  79. package/dist/Popover.js +1 -1
  80. package/dist/Radio-GVFDPAZM.css +97 -0
  81. package/dist/Radio.cjs +14 -0
  82. package/dist/Radio.d.cts +36 -0
  83. package/dist/Radio.d.ts +36 -0
  84. package/dist/Radio.js +1 -0
  85. package/dist/{Select-J3CCVFJ7.css → Select-JVBQAZBG.css} +7 -23
  86. package/dist/Select.cjs +6 -4
  87. package/dist/Select.d.cts +25 -4
  88. package/dist/Select.d.ts +25 -4
  89. package/dist/Select.js +5 -3
  90. package/dist/Skeleton-CVWH2VWN.css +40 -0
  91. package/dist/Skeleton.cjs +10 -0
  92. package/dist/Skeleton.d.cts +30 -0
  93. package/dist/Skeleton.d.ts +30 -0
  94. package/dist/Skeleton.js +1 -0
  95. package/dist/Spin-3GJNMSIH.css +94 -0
  96. package/dist/Spin.cjs +10 -0
  97. package/dist/Spin.d.cts +20 -0
  98. package/dist/Spin.d.ts +20 -0
  99. package/dist/Spin.js +1 -0
  100. package/dist/{Table-2LPTOUIR.css → Table-ATJJQLKU.css} +0 -53
  101. package/dist/Table.cjs +9 -11
  102. package/dist/Table.d.cts +2 -21
  103. package/dist/Table.d.ts +2 -21
  104. package/dist/Table.js +8 -6
  105. package/dist/TablePro-3XVHYLSL.css +45 -0
  106. package/dist/TablePro.cjs +19 -0
  107. package/dist/TablePro.d.cts +21 -0
  108. package/dist/TablePro.d.ts +21 -0
  109. package/dist/TablePro.js +10 -0
  110. package/dist/{Tabs-RHK6XAFF.css → Tabs-BLSNI2T5.css} +0 -34
  111. package/dist/Tabs.cjs +2 -6
  112. package/dist/Tabs.d.cts +1 -16
  113. package/dist/Tabs.d.ts +1 -16
  114. package/dist/Tabs.js +1 -1
  115. package/dist/Tag-LB3OOJAO.css +29 -0
  116. package/dist/Tag.cjs +3 -7
  117. package/dist/Tag.d.cts +1 -11
  118. package/dist/Tag.d.ts +1 -11
  119. package/dist/Tag.js +2 -2
  120. package/dist/Textarea-YNET7IBH.css +54 -0
  121. package/dist/Textarea.cjs +15 -0
  122. package/dist/Textarea.d.cts +25 -0
  123. package/dist/Textarea.d.ts +25 -0
  124. package/dist/Textarea.js +2 -0
  125. package/dist/{Timeline-RHZAZKZ7.css → Timeline-3ZHOHPXT.css} +2 -2
  126. package/dist/Timeline.cjs +3 -3
  127. package/dist/Timeline.d.cts +1 -1
  128. package/dist/Timeline.d.ts +1 -1
  129. package/dist/Timeline.js +2 -2
  130. package/dist/Tooltip.cjs +2 -2
  131. package/dist/Tooltip.d.cts +17 -4
  132. package/dist/Tooltip.d.ts +17 -4
  133. package/dist/Tooltip.js +1 -1
  134. package/dist/Typography.cjs +7 -7
  135. package/dist/Typography.js +2 -2
  136. package/dist/{chunk-6Y5WRCPW.js → chunk-33NCTOEB.js} +1 -1
  137. package/dist/{chunk-Q2KG6SQK.cjs → chunk-35ZGBAA3.cjs} +3 -3
  138. package/dist/{chunk-Y3ZSG3SJ.cjs → chunk-3AS5B7MQ.cjs} +11 -30
  139. package/dist/{chunk-X2U7EKCS.cjs → chunk-3YJU3D5S.cjs} +28 -5
  140. package/dist/chunk-45VJGBGN.js +25 -0
  141. package/dist/{chunk-3D77MQHO.js → chunk-46VXFTEC.js} +3 -3
  142. package/dist/{chunk-OFGDUCT7.cjs → chunk-4WTU5P3O.cjs} +3 -3
  143. package/dist/{chunk-5A3RT4KD.js → chunk-5TKC6IEN.js} +4 -55
  144. package/dist/{chunk-62GU4OHH.cjs → chunk-5WAXZJG5.cjs} +12 -19
  145. package/dist/chunk-6ACKL3WH.cjs +138 -0
  146. package/dist/{chunk-32HBMXXV.cjs → chunk-6LZ54NPO.cjs} +70 -74
  147. package/dist/{chunk-UXH5PH3S.js → chunk-7NGMQIST.js} +2 -2
  148. package/dist/{chunk-R6BIF3FF.js → chunk-AWXCSX6J.js} +5 -23
  149. package/dist/chunk-AXZ7ELMA.js +41 -0
  150. package/dist/{chunk-G2XK57I7.cjs → chunk-B2KEZQ6S.cjs} +5 -5
  151. package/dist/chunk-CEJ7VBR6.js +283 -0
  152. package/dist/{chunk-WRDKOSSM.js → chunk-CHMCL7AV.js} +1 -1
  153. package/dist/{chunk-EBNRZRWY.cjs → chunk-CUXV6QNN.cjs} +5 -5
  154. package/dist/{chunk-ULOJ5UEY.js → chunk-CXWEOAVU.js} +1 -1
  155. package/dist/{chunk-TWGQZX2R.js → chunk-DQTSTJ6O.js} +3 -18
  156. package/dist/chunk-EIY7KEJ3.cjs +132 -0
  157. package/dist/{chunk-OI3CWXT3.js → chunk-EJBHR2P5.js} +3 -3
  158. package/dist/chunk-ELNT3CFO.js +64 -0
  159. package/dist/{chunk-TGHBKKSS.js → chunk-EQEJTN3V.js} +3 -43
  160. package/dist/chunk-F6RYCBQG.js +25 -0
  161. package/dist/{chunk-N57NXCNC.cjs → chunk-FBVVRTX2.cjs} +3 -44
  162. package/dist/chunk-FFZ6OMZI.js +110 -0
  163. package/dist/{chunk-73RQBWWW.js → chunk-FJNWUELL.js} +2 -2
  164. package/dist/chunk-GENABQYA.cjs +47 -0
  165. package/dist/chunk-GMN74OEY.cjs +63 -0
  166. package/dist/chunk-GNEZQMKH.js +218 -0
  167. package/dist/{chunk-Y47YTYQ3.cjs → chunk-HPFQXYKG.cjs} +159 -8
  168. package/dist/{chunk-4WRE4HQP.js → chunk-HWFM4MAT.js} +18 -6
  169. package/dist/{chunk-GY3BSHHS.cjs → chunk-HZSIUOCN.cjs} +2 -55
  170. package/dist/{chunk-YRZGXXWA.js → chunk-JD7A6VM3.js} +11 -17
  171. package/dist/chunk-K2KYM7LW.cjs +28 -0
  172. package/dist/{chunk-PWW64ZWO.cjs → chunk-KD4YYIIO.cjs} +1 -32
  173. package/dist/chunk-KGSADAOD.cjs +170 -0
  174. package/dist/{chunk-6ODY6MGL.cjs → chunk-MQV2XN4B.cjs} +5 -5
  175. package/dist/{chunk-OVZTG5CP.cjs → chunk-MT7UWY6T.cjs} +2 -2
  176. package/dist/chunk-MUXP7ASL.js +26 -0
  177. package/dist/{chunk-EEMWQX3C.cjs → chunk-NTS5L4NQ.cjs} +3 -3
  178. package/dist/{chunk-WBK6XIDJ.js → chunk-OBEKX4VR.js} +2 -32
  179. package/dist/chunk-OF3SGLZY.js +385 -0
  180. package/dist/chunk-ON4DEDMI.js +113 -0
  181. package/dist/chunk-OQBDU5I2.cjs +104 -0
  182. package/dist/{chunk-FIO65XYG.cjs → chunk-OYMJVU66.cjs} +48 -37
  183. package/dist/{chunk-5M26OVVY.js → chunk-PH3YECMF.js} +1 -1
  184. package/dist/chunk-Q5SZIU7Z.cjs +47 -0
  185. package/dist/chunk-QGHYQCF3.cjs +240 -0
  186. package/dist/chunk-QKQHZIF3.cjs +86 -0
  187. package/dist/{chunk-KYEY2LIB.cjs → chunk-SKMP2A5O.cjs} +3 -3
  188. package/dist/{chunk-IW5LW6XS.js → chunk-TEEFR2FD.js} +28 -5
  189. package/dist/{chunk-GOBWKQCX.cjs → chunk-TEG7NJHS.cjs} +3 -3
  190. package/dist/{chunk-2MNAZRWE.cjs → chunk-TJII7BQ2.cjs} +261 -2
  191. package/dist/{chunk-3TWNBJFI.cjs → chunk-TZJH5HBT.cjs} +6 -6
  192. package/dist/{chunk-D46EM4EN.js → chunk-UMDGS4BP.js} +1 -1
  193. package/dist/chunk-USQ43DJ5.js +147 -0
  194. package/dist/{chunk-G2K6ETP4.cjs → chunk-UUHFKIWP.cjs} +18 -6
  195. package/dist/chunk-WGZ2KJTZ.js +81 -0
  196. package/dist/{chunk-RPFMQZA5.js → chunk-WKKSAGYH.js} +39 -28
  197. package/dist/{chunk-54YLXXS2.js → chunk-XD3JGL5O.js} +2 -2
  198. package/dist/{chunk-DPNDHNKK.js → chunk-XTIN5545.js} +68 -72
  199. package/dist/{chunk-LZU33BX6.cjs → chunk-ZIP7F4UF.cjs} +4 -20
  200. package/dist/index.cjs +312 -122
  201. package/dist/index.d.cts +23 -17
  202. package/dist/index.d.ts +23 -17
  203. package/dist/index.js +34 -28
  204. package/dist/styles.css +313 -192
  205. package/docs/llms/badge.md +3 -3
  206. package/docs/llms/button.md +7 -38
  207. package/docs/llms/card.md +6 -12
  208. package/docs/llms/cascader.md +19 -0
  209. package/docs/llms/{accordion.md → collapse.md} +13 -11
  210. package/docs/llms/drawer.md +1 -1
  211. package/docs/llms/form.md +1 -1
  212. package/docs/llms/input.md +25 -16
  213. package/docs/llms/message.md +63 -0
  214. package/docs/llms/modal.md +30 -0
  215. package/docs/llms/popover.md +18 -1
  216. package/docs/llms/radio.md +37 -1
  217. package/docs/llms/select.md +20 -0
  218. package/docs/llms/spin.md +59 -0
  219. package/docs/llms/table.md +3 -3
  220. package/docs/llms/tooltip.md +16 -3
  221. package/docs/llms.md +5 -5
  222. package/package.json +17 -52
  223. package/dist/Accordion-REMDCQUD.css +0 -44
  224. package/dist/Accordion.cjs +0 -11
  225. package/dist/Accordion.d.cts +0 -33
  226. package/dist/Accordion.d.ts +0 -33
  227. package/dist/Accordion.js +0 -2
  228. package/dist/Empty-NQ72W3D7.css +0 -160
  229. package/dist/Tag-FGDY3W7E.css +0 -51
  230. package/dist/Toast-YSACW3EM.css +0 -45
  231. package/dist/Toast.cjs +0 -15
  232. package/dist/Toast.d.cts +0 -26
  233. package/dist/Toast.d.ts +0 -26
  234. package/dist/Toast.js +0 -2
  235. package/dist/chunk-3XTHKAEY.js +0 -39
  236. package/dist/chunk-DOMYUGJY.js +0 -132
  237. package/dist/chunk-HBWO3QKW.js +0 -74
  238. package/dist/chunk-JVS5ZALZ.js +0 -123
  239. package/dist/chunk-LIGHV4RC.cjs +0 -121
  240. package/dist/chunk-MCTIA6RZ.js +0 -99
  241. package/dist/chunk-NC4YUEXM.cjs +0 -145
  242. package/dist/chunk-NJ6B22YJ.js +0 -170
  243. package/dist/chunk-W64ARHLJ.cjs +0 -62
  244. package/dist/chunk-ZFW6OYAO.cjs +0 -100
  245. package/docs/llms/spinner.md +0 -58
  246. package/docs/llms/toast.md +0 -51
@@ -0,0 +1,385 @@
1
+ import './tokens-BIIUTPKN.css';
2
+ import './shared-NJHRNLRH.css';
3
+ import * as React from 'react';
4
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
+
6
+ // src/components/Icon/Icon.tsx
7
+ var paths = {
8
+ search: /* @__PURE__ */ jsxs(Fragment, { children: [
9
+ /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
10
+ /* @__PURE__ */ jsx("path", { d: "m20 20-3.5-3.5" })
11
+ ] }),
12
+ plus: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M12 5v14M5 12h14" }) }),
13
+ minus: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M5 12h14" }) }),
14
+ check: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m4 12 5 5L20 6" }) }),
15
+ x: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M6 6l12 12M18 6 6 18" }) }),
16
+ chevDown: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }) }),
17
+ chevRight: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m9 6 6 6-6 6" }) }),
18
+ chevLeft: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m15 6-6 6 6 6" }) }),
19
+ chevUp: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m6 15 6-6 6 6" }) }),
20
+ arrowRight: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M13 6l6 6-6 6" }) }),
21
+ settings: /* @__PURE__ */ jsxs(Fragment, { children: [
22
+ /* @__PURE__ */ jsx("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }),
23
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
24
+ ] }),
25
+ user: /* @__PURE__ */ jsxs(Fragment, { children: [
26
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "8", r: "4" }),
27
+ /* @__PURE__ */ jsx("path", { d: "M4 21a8 8 0 0 1 16 0" })
28
+ ] }),
29
+ bell: /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ /* @__PURE__ */ jsx("path", { d: "M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" }),
31
+ /* @__PURE__ */ jsx("path", { d: "M10.3 21a1.94 1.94 0 0 0 3.4 0" })
32
+ ] }),
33
+ mail: /* @__PURE__ */ jsxs(Fragment, { children: [
34
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
35
+ /* @__PURE__ */ jsx("path", { d: "m3 7 9 6 9-6" })
36
+ ] }),
37
+ heart: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }),
38
+ star: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" }) }),
39
+ starFilled: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z", fill: "currentColor", stroke: "none" }) }),
40
+ home: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m3 10 9-7 9 7v10a2 2 0 0 1-2 2h-4v-7h-6v7H5a2 2 0 0 1-2-2z" }) }),
41
+ folder: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 7a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }) }),
42
+ file: /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ /* @__PURE__ */ jsx("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }),
44
+ /* @__PURE__ */ jsx("path", { d: "M14 3v6h6" })
45
+ ] }),
46
+ image: /* @__PURE__ */ jsxs(Fragment, { children: [
47
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
48
+ /* @__PURE__ */ jsx("circle", { cx: "9", cy: "9", r: "2" }),
49
+ /* @__PURE__ */ jsx("path", { d: "m21 15-5-5L5 21" })
50
+ ] }),
51
+ play: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M7 5v14l11-7z", fill: "currentColor", stroke: "none" }) }),
52
+ pause: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M6 4h4v16H6zM14 4h4v16h-4z", fill: "currentColor", stroke: "none" }) }),
53
+ volume: /* @__PURE__ */ jsxs(Fragment, { children: [
54
+ /* @__PURE__ */ jsx("path", { d: "M11 5 6 9H3v6h3l5 4z" }),
55
+ /* @__PURE__ */ jsx("path", { d: "M17 8a5 5 0 0 1 0 8M20 5a9 9 0 0 1 0 14" })
56
+ ] }),
57
+ trash: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M5 6l1 14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-14" }) }),
58
+ edit: /* @__PURE__ */ jsxs(Fragment, { children: [
59
+ /* @__PURE__ */ jsx("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
60
+ /* @__PURE__ */ jsx("path", { d: "M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4z" })
61
+ ] }),
62
+ copy: /* @__PURE__ */ jsxs(Fragment, { children: [
63
+ /* @__PURE__ */ jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2" }),
64
+ /* @__PURE__ */ jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
65
+ ] }),
66
+ download: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3" }) }),
67
+ upload: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12" }) }),
68
+ info: /* @__PURE__ */ jsxs(Fragment, { children: [
69
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
70
+ /* @__PURE__ */ jsx("path", { d: "M12 16v-4M12 8h.01" })
71
+ ] }),
72
+ alert: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01" }) }),
73
+ check2: /* @__PURE__ */ jsxs(Fragment, { children: [
74
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
75
+ /* @__PURE__ */ jsx("path", { d: "m9 12 2 2 4-4" })
76
+ ] }),
77
+ eye: /* @__PURE__ */ jsxs(Fragment, { children: [
78
+ /* @__PURE__ */ jsx("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z" }),
79
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
80
+ ] }),
81
+ eyeOff: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-10-8-10-8a19 19 0 0 1 5.17-6M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 8 10 8a19 19 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24M1 1l22 22" }) }),
82
+ sparkle: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8" }) }),
83
+ moon: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z" }) }),
84
+ sun: /* @__PURE__ */ jsxs(Fragment, { children: [
85
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4" }),
86
+ /* @__PURE__ */ jsx("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })
87
+ ] }),
88
+ palette: /* @__PURE__ */ jsxs(Fragment, { children: [
89
+ /* @__PURE__ */ jsx("circle", { cx: "13.5", cy: "6.5", r: "1" }),
90
+ /* @__PURE__ */ jsx("circle", { cx: "17.5", cy: "10.5", r: "1" }),
91
+ /* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "7.5", r: "1" }),
92
+ /* @__PURE__ */ jsx("circle", { cx: "6.5", cy: "12.5", r: "1" }),
93
+ /* @__PURE__ */ jsx("path", { d: "M12 2a10 10 0 1 0 0 20 3 3 0 0 0 0-6h-1a2 2 0 0 1 0-4h4a5 5 0 0 0 5-5 10 10 0 0 0-8-5z" })
94
+ ] }),
95
+ layers: /* @__PURE__ */ jsxs(Fragment, { children: [
96
+ /* @__PURE__ */ jsx("path", { d: "m12 2 10 6-10 6L2 8z" }),
97
+ /* @__PURE__ */ jsx("path", { d: "m2 17 10 6 10-6M2 12l10 6 10-6" })
98
+ ] }),
99
+ grid: /* @__PURE__ */ jsxs(Fragment, { children: [
100
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "7", height: "7" }),
101
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "3", width: "7", height: "7" }),
102
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "14", width: "7", height: "7" }),
103
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "14", width: "7", height: "7" })
104
+ ] }),
105
+ list: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01" }) }),
106
+ zap: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M13 2 3 14h9l-1 8 10-12h-9z" }) }),
107
+ filter: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M22 3H2l8 9.46V19l4 2v-8.54z" }) }),
108
+ mic: /* @__PURE__ */ jsxs(Fragment, { children: [
109
+ /* @__PURE__ */ jsx("rect", { x: "9", y: "2", width: "6", height: "12", rx: "3" }),
110
+ /* @__PURE__ */ jsx("path", { d: "M19 10v1a7 7 0 0 1-14 0v-1M12 18v4M8 22h8" })
111
+ ] }),
112
+ send: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m22 2-7 20-4-9-9-4zM22 2 11 13" }) }),
113
+ calendar: /* @__PURE__ */ jsxs(Fragment, { children: [
114
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2" }),
115
+ /* @__PURE__ */ jsx("path", { d: "M16 2v4M8 2v4M3 10h18" })
116
+ ] }),
117
+ clock: /* @__PURE__ */ jsxs(Fragment, { children: [
118
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
119
+ /* @__PURE__ */ jsx("path", { d: "M12 6v6l4 2" })
120
+ ] }),
121
+ menu: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 6h18M3 12h18M3 18h18" }) }),
122
+ more: /* @__PURE__ */ jsxs(Fragment, { children: [
123
+ /* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" }),
124
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
125
+ /* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" })
126
+ ] }),
127
+ sliders: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6" }) }),
128
+ aim: /* @__PURE__ */ jsxs(Fragment, { children: [
129
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
130
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "2", x2: "12", y2: "6" }),
131
+ /* @__PURE__ */ jsx("line", { x1: "12", y1: "18", x2: "12", y2: "22" }),
132
+ /* @__PURE__ */ jsx("line", { x1: "2", y1: "12", x2: "6", y2: "12" }),
133
+ /* @__PURE__ */ jsx("line", { x1: "18", y1: "12", x2: "22", y2: "12" }),
134
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "2" })
135
+ ] }),
136
+ swap: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M3 8h18M17 4l4 4-4 4M21 16H3M7 20l-4-4 4-4" }) }),
137
+ camera: /* @__PURE__ */ jsxs(Fragment, { children: [
138
+ /* @__PURE__ */ jsx("path", { d: "M3 7h4l2-3h6l2 3h4a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z" }),
139
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "13", r: "4" })
140
+ ] }),
141
+ qq: /* @__PURE__ */ jsxs(Fragment, { children: [
142
+ /* @__PURE__ */ jsx("path", { d: "M12 2c-3 0-5 2.1-5 5 0 1.3.4 2.6.9 3.6-1.8 1-3.4 3-3.4 5.9 0 .8.7 1.5 1.5 1.5 0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2 .8 0 1.5-.7 1.5-1.5 0-2.9-1.6-4.9-3.4-5.9.5-1 .9-2.3.9-3.6 0-2.9-2-5-5-5z" }),
143
+ /* @__PURE__ */ jsx("circle", { cx: "10", cy: "9", r: "0.8", fill: "currentColor", stroke: "none" }),
144
+ /* @__PURE__ */ jsx("circle", { cx: "14", cy: "9", r: "0.8", fill: "currentColor", stroke: "none" })
145
+ ] }),
146
+ code: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m16 18 6-6-6-6M8 6l-6 6 6 6" }) }),
147
+ appstore: /* @__PURE__ */ jsxs(Fragment, { children: [
148
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "3", width: "7", height: "7", rx: "1.5" }),
149
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "3", width: "7", height: "7", rx: "1.5" }),
150
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "14", width: "7", height: "7", rx: "1.5" }),
151
+ /* @__PURE__ */ jsx("rect", { x: "14", y: "14", width: "7", height: "7", rx: "1.5" })
152
+ ] }),
153
+ barChart: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M4 20V10M10 20V4M16 20v-7M22 20H2" }) }),
154
+ block: /* @__PURE__ */ jsxs(Fragment, { children: [
155
+ /* @__PURE__ */ jsx("path", { d: "M7 7h10v10H7z" }),
156
+ /* @__PURE__ */ jsx("path", { d: "M4 4h10v10H4z" })
157
+ ] }),
158
+ border: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "1.5" }) }),
159
+ caretDown: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m7 9 5 6 5-6z", fill: "currentColor", stroke: "none" }) }),
160
+ caretUp: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "m7 15 5-6 5 6z", fill: "currentColor", stroke: "none" }) }),
161
+ checkCircle: /* @__PURE__ */ jsxs(Fragment, { children: [
162
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
163
+ /* @__PURE__ */ jsx("path", { d: "m8 12 3 3 5-6" })
164
+ ] }),
165
+ checkCircleFilled: /* @__PURE__ */ jsxs(Fragment, { children: [
166
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
167
+ /* @__PURE__ */ jsx("path", { d: "m7.8 12.2 2.7 2.7 5.8-6", stroke: "var(--bg)", strokeWidth: "2.2", fill: "none" })
168
+ ] }),
169
+ clockCircleFilled: /* @__PURE__ */ jsxs(Fragment, { children: [
170
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10", fill: "currentColor", stroke: "none" }),
171
+ /* @__PURE__ */ jsx("path", { d: "M12 6.5v5.7l3.6 2.1", stroke: "var(--bg)", strokeWidth: "2.1", fill: "none" })
172
+ ] }),
173
+ closeCircle: /* @__PURE__ */ jsxs(Fragment, { children: [
174
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
175
+ /* @__PURE__ */ jsx("path", { d: "M8 8l8 8M16 8l-8 8" })
176
+ ] }),
177
+ dashboard: /* @__PURE__ */ jsxs(Fragment, { children: [
178
+ /* @__PURE__ */ jsx("path", { d: "M4 13a8 8 0 1 1 16 0" }),
179
+ /* @__PURE__ */ jsx("path", { d: "M12 13l4-4" }),
180
+ /* @__PURE__ */ jsx("path", { d: "M7 17h10" })
181
+ ] }),
182
+ environment: /* @__PURE__ */ jsxs(Fragment, { children: [
183
+ /* @__PURE__ */ jsx("path", { d: "M12 22s7-5.2 7-12a7 7 0 0 0-14 0c0 6.8 7 12 7 12z" }),
184
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "10", r: "2.5" })
185
+ ] }),
186
+ exclamationCircle: /* @__PURE__ */ jsxs(Fragment, { children: [
187
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
188
+ /* @__PURE__ */ jsx("path", { d: "M12 7v6M12 17h.01" })
189
+ ] }),
190
+ folderOpen: /* @__PURE__ */ jsxs(Fragment, { children: [
191
+ /* @__PURE__ */ jsx("path", { d: "M3 8a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v1" }),
192
+ /* @__PURE__ */ jsx("path", { d: "M3 18.5 5.2 11h17L20 20H5a2 2 0 0 1-2-1.5z" })
193
+ ] }),
194
+ loading: /* @__PURE__ */ jsxs(Fragment, { children: [
195
+ /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-3-6.7" }),
196
+ /* @__PURE__ */ jsx("path", { d: "M21 3v6h-6" })
197
+ ] }),
198
+ minusCircle: /* @__PURE__ */ jsxs(Fragment, { children: [
199
+ /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
200
+ /* @__PURE__ */ jsx("path", { d: "M8 12h8" })
201
+ ] }),
202
+ picture: /* @__PURE__ */ jsxs(Fragment, { children: [
203
+ /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
204
+ /* @__PURE__ */ jsx("circle", { cx: "8.5", cy: "9", r: "1.7" }),
205
+ /* @__PURE__ */ jsx("path", { d: "m21 15-4.5-4.5L9 18" })
206
+ ] }),
207
+ reload: /* @__PURE__ */ jsxs(Fragment, { children: [
208
+ /* @__PURE__ */ jsx("path", { d: "M21 12a9 9 0 1 1-2.64-6.36" }),
209
+ /* @__PURE__ */ jsx("path", { d: "M21 3v6h-6" })
210
+ ] }),
211
+ robot: /* @__PURE__ */ jsxs(Fragment, { children: [
212
+ /* @__PURE__ */ jsx("rect", { x: "5", y: "8", width: "14", height: "11", rx: "3" }),
213
+ /* @__PURE__ */ jsx("path", { d: "M12 8V4M9 4h6M3 13h2M19 13h2" }),
214
+ /* @__PURE__ */ jsx("circle", { cx: "9.5", cy: "13", r: "1", fill: "currentColor", stroke: "none" }),
215
+ /* @__PURE__ */ jsx("circle", { cx: "14.5", cy: "13", r: "1", fill: "currentColor", stroke: "none" }),
216
+ /* @__PURE__ */ jsx("path", { d: "M9 16h6" })
217
+ ] }),
218
+ swapRight: /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M5 7h10M12 4l3 3-3 3M19 17H9M12 14l-3 3 3 3" }) }),
219
+ sync: /* @__PURE__ */ jsxs(Fragment, { children: [
220
+ /* @__PURE__ */ jsx("path", { d: "M20 7h-5V2" }),
221
+ /* @__PURE__ */ jsx("path", { d: "M4 17h5v5" }),
222
+ /* @__PURE__ */ jsx("path", { d: "M20 12a8 8 0 0 0-13.7-5.7L4 8" }),
223
+ /* @__PURE__ */ jsx("path", { d: "M4 12a8 8 0 0 0 13.7 5.7L20 16" })
224
+ ] }),
225
+ translate: /* @__PURE__ */ jsxs(Fragment, { children: [
226
+ /* @__PURE__ */ jsx("path", { d: "M4 5h8M8 3v2M6 9c1.4 2.6 3.4 4.4 6 5.5" }),
227
+ /* @__PURE__ */ jsx("path", { d: "M11 5c-.7 4-2.8 7-7 9" }),
228
+ /* @__PURE__ */ jsx("path", { d: "M14 20l4-10 4 10M15.4 16h5.2" })
229
+ ] }),
230
+ unorderedList: /* @__PURE__ */ jsxs(Fragment, { children: [
231
+ /* @__PURE__ */ jsx("path", { d: "M8 6h13M8 12h13M8 18h13" }),
232
+ /* @__PURE__ */ jsx("circle", { cx: "4", cy: "6", r: "1", fill: "currentColor", stroke: "none" }),
233
+ /* @__PURE__ */ jsx("circle", { cx: "4", cy: "12", r: "1", fill: "currentColor", stroke: "none" }),
234
+ /* @__PURE__ */ jsx("circle", { cx: "4", cy: "18", r: "1", fill: "currentColor", stroke: "none" })
235
+ ] })
236
+ };
237
+ var Icon = React.forwardRef(
238
+ ({ name, size = 16, stroke = 2, style, ...rest }, ref) => /* @__PURE__ */ jsx(
239
+ "svg",
240
+ {
241
+ ref,
242
+ width: size,
243
+ height: size,
244
+ viewBox: "0 0 24 24",
245
+ fill: "none",
246
+ stroke: "currentColor",
247
+ strokeWidth: stroke,
248
+ strokeLinecap: "round",
249
+ strokeLinejoin: "round",
250
+ overflow: "visible",
251
+ style,
252
+ ...rest,
253
+ children: paths[name]
254
+ }
255
+ )
256
+ );
257
+ Icon.displayName = "Icon";
258
+ var ICON_NAMES = Object.keys(paths);
259
+ var NAMED_ICON_MAP = {
260
+ AimOutlined: "aim",
261
+ AppstoreOutlined: "appstore",
262
+ BarChartOutlined: "barChart",
263
+ BlockOutlined: "block",
264
+ BorderOutlined: "border",
265
+ CameraOutlined: "camera",
266
+ CaretDownOutlined: "caretDown",
267
+ CaretUpOutlined: "caretUp",
268
+ CheckCircleFilled: "checkCircleFilled",
269
+ CheckCircleOutlined: "checkCircle",
270
+ CheckOutlined: "check",
271
+ ClockCircleFilled: "clockCircleFilled",
272
+ CloseCircleOutlined: "closeCircle",
273
+ CloseOutlined: "x",
274
+ CopyOutlined: "copy",
275
+ DashboardOutlined: "dashboard",
276
+ DeleteOutlined: "trash",
277
+ DownOutlined: "chevDown",
278
+ EnvironmentOutlined: "environment",
279
+ ExclamationCircleOutlined: "exclamationCircle",
280
+ FolderOpenOutlined: "folderOpen",
281
+ LeftOutlined: "chevLeft",
282
+ LoadingOutlined: "loading",
283
+ MinusCircleOutlined: "minusCircle",
284
+ MinusOutlined: "minus",
285
+ PictureOutlined: "picture",
286
+ PlusOutlined: "plus",
287
+ QqOutlined: "qq",
288
+ ReloadOutlined: "reload",
289
+ RightOutlined: "chevRight",
290
+ RobotOutlined: "robot",
291
+ SearchOutlined: "search",
292
+ SettingOutlined: "settings",
293
+ StarFilled: "starFilled",
294
+ StarOutlined: "star",
295
+ SwapOutlined: "swap",
296
+ SwapRightOutlined: "swapRight",
297
+ SyncOutlined: "sync",
298
+ ThunderboltOutlined: "zap",
299
+ TranslationOutlined: "translate",
300
+ UnorderedListOutlined: "unorderedList",
301
+ UserOutlined: "user"
302
+ };
303
+ var resolveIconName = (name, fallback = "appstore") => NAMED_ICON_MAP[name] ?? fallback;
304
+ var createNamedIcon = (displayName, defaultSpin = false) => {
305
+ const iconName = NAMED_ICON_MAP[displayName];
306
+ const Component = React.forwardRef(
307
+ ({ spin, rotate, size = "1em", className = "", style, ...rest }, ref) => {
308
+ const shouldSpin = spin ?? defaultSpin;
309
+ const transform = rotate ? `${style?.transform ? `${style.transform} ` : ""}rotate(${rotate}deg)` : style?.transform;
310
+ return /* @__PURE__ */ jsx(
311
+ "span",
312
+ {
313
+ ref,
314
+ role: "img",
315
+ "aria-label": displayName,
316
+ className,
317
+ style: {
318
+ display: "inline-flex",
319
+ alignItems: "center",
320
+ justifyContent: "center",
321
+ lineHeight: 0,
322
+ verticalAlign: "-0.125em",
323
+ ...style,
324
+ ...transform ? { transform } : {}
325
+ },
326
+ ...rest,
327
+ children: /* @__PURE__ */ jsx(
328
+ Icon,
329
+ {
330
+ name: iconName,
331
+ size,
332
+ style: shouldSpin ? { animation: "spin 0.9s linear infinite" } : void 0
333
+ }
334
+ )
335
+ }
336
+ );
337
+ }
338
+ );
339
+ Component.displayName = displayName;
340
+ return Component;
341
+ };
342
+ var AimOutlined = createNamedIcon("AimOutlined");
343
+ var AppstoreOutlined = createNamedIcon("AppstoreOutlined");
344
+ var BarChartOutlined = createNamedIcon("BarChartOutlined");
345
+ var BlockOutlined = createNamedIcon("BlockOutlined");
346
+ var BorderOutlined = createNamedIcon("BorderOutlined");
347
+ var CameraOutlined = createNamedIcon("CameraOutlined");
348
+ var CaretDownOutlined = createNamedIcon("CaretDownOutlined");
349
+ var CaretUpOutlined = createNamedIcon("CaretUpOutlined");
350
+ var CheckCircleFilled = createNamedIcon("CheckCircleFilled");
351
+ var CheckCircleOutlined = createNamedIcon("CheckCircleOutlined");
352
+ var CheckOutlined = createNamedIcon("CheckOutlined");
353
+ var ClockCircleFilled = createNamedIcon("ClockCircleFilled");
354
+ var CloseCircleOutlined = createNamedIcon("CloseCircleOutlined");
355
+ var CloseOutlined = createNamedIcon("CloseOutlined");
356
+ var CopyOutlined = createNamedIcon("CopyOutlined");
357
+ var DashboardOutlined = createNamedIcon("DashboardOutlined");
358
+ var DeleteOutlined = createNamedIcon("DeleteOutlined");
359
+ var DownOutlined = createNamedIcon("DownOutlined");
360
+ var EnvironmentOutlined = createNamedIcon("EnvironmentOutlined");
361
+ var ExclamationCircleOutlined = createNamedIcon("ExclamationCircleOutlined");
362
+ var FolderOpenOutlined = createNamedIcon("FolderOpenOutlined");
363
+ var LeftOutlined = createNamedIcon("LeftOutlined");
364
+ var LoadingOutlined = createNamedIcon("LoadingOutlined", true);
365
+ var MinusCircleOutlined = createNamedIcon("MinusCircleOutlined");
366
+ var MinusOutlined = createNamedIcon("MinusOutlined");
367
+ var PictureOutlined = createNamedIcon("PictureOutlined");
368
+ var PlusOutlined = createNamedIcon("PlusOutlined");
369
+ var QqOutlined = createNamedIcon("QqOutlined");
370
+ var ReloadOutlined = createNamedIcon("ReloadOutlined");
371
+ var RightOutlined = createNamedIcon("RightOutlined");
372
+ var RobotOutlined = createNamedIcon("RobotOutlined");
373
+ var SearchOutlined = createNamedIcon("SearchOutlined");
374
+ var SettingOutlined = createNamedIcon("SettingOutlined");
375
+ var StarFilled = createNamedIcon("StarFilled");
376
+ var StarOutlined = createNamedIcon("StarOutlined");
377
+ var SwapOutlined = createNamedIcon("SwapOutlined");
378
+ var SwapRightOutlined = createNamedIcon("SwapRightOutlined");
379
+ var SyncOutlined = createNamedIcon("SyncOutlined");
380
+ var ThunderboltOutlined = createNamedIcon("ThunderboltOutlined");
381
+ var TranslationOutlined = createNamedIcon("TranslationOutlined");
382
+ var UnorderedListOutlined = createNamedIcon("UnorderedListOutlined");
383
+ var UserOutlined = createNamedIcon("UserOutlined");
384
+
385
+ export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName };
@@ -0,0 +1,113 @@
1
+ import { Icon } from './chunk-OF3SGLZY.js';
2
+ import './tokens-BIIUTPKN.css';
3
+ import './shared-NJHRNLRH.css';
4
+ import './Message-2MZ3LFPU.css';
5
+ import * as React from 'react';
6
+ import { createPortal } from 'react-dom';
7
+ import { createRoot } from 'react-dom/client';
8
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
+
10
+ var listeners = /* @__PURE__ */ new Set();
11
+ var items = [];
12
+ var uid = 0;
13
+ var autoMounted = false;
14
+ function emit() {
15
+ if (listeners.size === 0 && !autoMounted && typeof document !== "undefined") {
16
+ autoMounted = true;
17
+ const div = document.createElement("div");
18
+ document.body.appendChild(div);
19
+ createRoot(div).render(React.createElement(MessageContainer));
20
+ }
21
+ listeners.forEach((l) => l(items));
22
+ }
23
+ var normalizeConfig = (type, content, durationOrTitle, onClose) => {
24
+ if (content && typeof content === "object" && !React.isValidElement(content) && ("content" in content || "message" in content || "type" in content)) {
25
+ return { type, ...content };
26
+ }
27
+ const node = content;
28
+ if (typeof durationOrTitle === "number") {
29
+ return { type, content: node, duration: durationOrTitle, onClose };
30
+ }
31
+ return { type, content: node, title: durationOrTitle };
32
+ };
33
+ var message = {
34
+ open(config) {
35
+ const id = ++uid;
36
+ const next = {
37
+ id,
38
+ key: config.key,
39
+ type: config.type ?? "info",
40
+ title: config.title,
41
+ content: config.content ?? config.message,
42
+ duration: config.duration ?? 3200,
43
+ onClose: config.onClose
44
+ };
45
+ if (config.key != null) {
46
+ const existing = items.findIndex((item) => item.key === config.key);
47
+ if (existing >= 0) {
48
+ items = items.map((item, idx) => idx === existing ? { ...next, id: item.id } : item);
49
+ emit();
50
+ return items[existing]?.id ?? id;
51
+ }
52
+ }
53
+ items = [...items, next];
54
+ emit();
55
+ if (next.duration > 0 && typeof window !== "undefined") {
56
+ window.setTimeout(() => message.dismiss(config.key ?? id), next.duration);
57
+ }
58
+ return id;
59
+ },
60
+ show(config) {
61
+ return message.open(config);
62
+ },
63
+ info: (content, durationOrTitle, onClose) => message.open(normalizeConfig("info", content, durationOrTitle, onClose)),
64
+ success: (content, durationOrTitle, onClose) => message.open(normalizeConfig("success", content, durationOrTitle, onClose)),
65
+ warning: (content, durationOrTitle, onClose) => message.open(normalizeConfig("warning", content, durationOrTitle, onClose)),
66
+ warn: (content, durationOrTitle, onClose) => message.open(normalizeConfig("warning", content, durationOrTitle, onClose)),
67
+ error: (content, durationOrTitle, onClose) => message.open(normalizeConfig("error", content, durationOrTitle, onClose)),
68
+ dismiss(idOrKey) {
69
+ const removed = items.filter((i) => i.id === idOrKey || i.key === idOrKey);
70
+ items = items.filter((i) => i.id !== idOrKey && i.key !== idOrKey);
71
+ removed.forEach((item) => item.onClose?.());
72
+ emit();
73
+ },
74
+ destroy(idOrKey) {
75
+ if (idOrKey == null) message.clear();
76
+ else message.dismiss(idOrKey);
77
+ },
78
+ clear() {
79
+ const removed = items;
80
+ items = [];
81
+ removed.forEach((item) => item.onClose?.());
82
+ emit();
83
+ }
84
+ };
85
+ var MessageContainer = React.forwardRef(({ placement = "top-right", className = "", ...rest }, ref) => {
86
+ const [list, setList] = React.useState(items);
87
+ React.useEffect(() => {
88
+ listeners.add(setList);
89
+ return () => {
90
+ listeners.delete(setList);
91
+ };
92
+ }, []);
93
+ if (typeof document === "undefined") return null;
94
+ return createPortal(
95
+ /* @__PURE__ */ jsx("div", { ref, className: `message-container ${placement} ${className}`, ...rest, children: list.map((t) => {
96
+ const iconName = t.type === "success" ? "check2" : t.type === "warning" || t.type === "error" ? "alert" : "info";
97
+ return /* @__PURE__ */ jsxs("div", { className: `message ${t.type}`, role: "status", children: [
98
+ /* @__PURE__ */ jsx(Icon, { name: iconName, size: 18, className: "message-icon" }),
99
+ /* @__PURE__ */ jsxs("div", { className: "message-body", children: [
100
+ t.title && /* @__PURE__ */ jsx("div", { className: "message-title", children: t.title }),
101
+ t.content && /* @__PURE__ */ jsx("div", { className: "message-content", children: t.content })
102
+ ] }),
103
+ /* @__PURE__ */ jsx("button", { type: "button", className: "message-close", onClick: () => message.dismiss(t.key ?? t.id), "aria-label": "Dismiss", children: /* @__PURE__ */ jsx(Icon, { name: "x", size: 14 }) })
104
+ ] }, t.id);
105
+ }) }),
106
+ document.body
107
+ );
108
+ });
109
+ MessageContainer.displayName = "MessageContainer";
110
+ var toast = message;
111
+ var ToastContainer = MessageContainer;
112
+
113
+ export { MessageContainer, ToastContainer, message, toast };
@@ -0,0 +1,104 @@
1
+ 'use strict';
2
+
3
+ var chunkTJII7BQ2_cjs = require('./chunk-TJII7BQ2.cjs');
4
+ require('./tokens-BIIUTPKN.css');
5
+ require('./shared-NJHRNLRH.css');
6
+ require('./Textarea-YNET7IBH.css');
7
+ var React = require('react');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+
10
+ function _interopNamespace(e) {
11
+ if (e && e.__esModule) return e;
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
29
+
30
+ var Textarea = React__namespace.forwardRef(
31
+ ({
32
+ value,
33
+ defaultValue,
34
+ onChange,
35
+ onValueChange,
36
+ invalid,
37
+ allowClear,
38
+ maxLength,
39
+ showCount,
40
+ className = "",
41
+ ...rest
42
+ }, ref) => {
43
+ const [inner, setInner] = React__namespace.useState(defaultValue ?? "");
44
+ const isControlled = value !== void 0;
45
+ const currentValue = isControlled ? value : inner;
46
+ const disabled = rest.disabled;
47
+ const handleChange = (e) => {
48
+ if (!isControlled) setInner(e.target.value);
49
+ onChange?.(e);
50
+ onValueChange?.(e.target.value, e);
51
+ };
52
+ const handleClear = (e) => {
53
+ e.stopPropagation();
54
+ if (disabled) return;
55
+ if (!isControlled) setInner("");
56
+ const synthetic = {
57
+ ...e,
58
+ target: { ...e.target, value: "" },
59
+ currentTarget: { ...e.currentTarget, value: "" }
60
+ };
61
+ onChange?.(synthetic);
62
+ onValueChange?.("", synthetic);
63
+ };
64
+ const cls = ["textarea", invalid && "invalid", className].filter(Boolean).join(" ");
65
+ const showClear = !!allowClear && !!currentValue && !disabled;
66
+ const count = currentValue ? currentValue.length : 0;
67
+ const field = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "textarea-wrap", children: [
68
+ /* @__PURE__ */ jsxRuntime.jsx(
69
+ "textarea",
70
+ {
71
+ ref,
72
+ className: cls,
73
+ value: isControlled ? value : void 0,
74
+ defaultValue: isControlled ? void 0 : defaultValue,
75
+ onChange: handleChange,
76
+ maxLength,
77
+ ...rest
78
+ }
79
+ ),
80
+ showClear && /* @__PURE__ */ jsxRuntime.jsx(
81
+ "span",
82
+ {
83
+ className: "textarea-clear",
84
+ role: "button",
85
+ "aria-label": "Clear",
86
+ tabIndex: -1,
87
+ onMouseDown: (e) => e.preventDefault(),
88
+ onClick: handleClear,
89
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkTJII7BQ2_cjs.Icon, { name: "x", size: 12 })
90
+ }
91
+ )
92
+ ] });
93
+ if (!showCount) return field;
94
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "textarea-shell", children: [
95
+ field,
96
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "textarea-count", children: maxLength != null ? `${count} / ${maxLength}` : `${count}` })
97
+ ] });
98
+ }
99
+ );
100
+ Textarea.displayName = "Textarea";
101
+ var TextArea = Textarea;
102
+
103
+ exports.TextArea = TextArea;
104
+ exports.Textarea = Textarea;