neko-ui 2.8.21 → 2.8.23

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 (671) hide show
  1. package/es/avatar/README.mdx +10 -0
  2. package/es/avatar/examples/basic.md +14 -0
  3. package/es/avatar/examples/group.md +57 -0
  4. package/es/avatar/examples/size.md +21 -0
  5. package/es/avatar/group.js +2 -2
  6. package/es/avatar/group.js.map +1 -1
  7. package/es/avatar/index.js +2 -2
  8. package/es/avatar/index.js.map +1 -1
  9. package/es/avatar/style.js +2 -2
  10. package/es/avatar/style.js.map +1 -1
  11. package/es/back-top/README.mdx +10 -0
  12. package/es/back-top/examples/basic.md +19 -0
  13. package/es/back-top/examples/mount.md +36 -0
  14. package/es/back-top/examples/target.md +46 -0
  15. package/es/back-top/index.js +1 -1
  16. package/es/back-top/index.js.map +1 -1
  17. package/es/basic-config/README.mdx +11 -0
  18. package/es/button/README.mdx +10 -0
  19. package/es/button/examples/basic.md +21 -0
  20. package/es/button/examples/block.md +33 -0
  21. package/es/button/examples/circle.md +21 -0
  22. package/es/button/examples/danger.md +23 -0
  23. package/es/button/examples/dashed.md +21 -0
  24. package/es/button/examples/disabled.md +35 -0
  25. package/es/button/examples/fill.md +21 -0
  26. package/es/button/examples/flat.md +21 -0
  27. package/es/button/examples/ghost.md +21 -0
  28. package/es/button/examples/icon.md +30 -0
  29. package/es/button/examples/link.md +21 -0
  30. package/es/button/examples/size.md +23 -0
  31. package/es/button/index.js +1 -1
  32. package/es/button/index.js.map +1 -1
  33. package/es/button/style.js +1 -0
  34. package/es/button/style.js.map +1 -1
  35. package/es/capture-screen/README.mdx +10 -0
  36. package/es/capture-screen/examples/basic.md +13 -0
  37. package/es/capture-screen/examples/custom-save.md +30 -0
  38. package/es/capture-screen/examples/preview.md +13 -0
  39. package/es/capture-screen/examples/recorder-save.md +13 -0
  40. package/es/capture-screen/index.js +1 -1
  41. package/es/capture-screen/index.js.map +1 -1
  42. package/es/carousel/README.mdx +10 -0
  43. package/es/carousel/examples/autoplay.md +21 -0
  44. package/es/carousel/examples/basic.md +23 -0
  45. package/es/carousel/examples/dots.md +23 -0
  46. package/es/carousel/examples/header.md +38 -0
  47. package/es/carousel/index.js +1 -1
  48. package/es/carousel/index.js.map +1 -1
  49. package/es/checkbox/README.mdx +10 -0
  50. package/es/checkbox/examples/basic.md +31 -0
  51. package/es/checkbox/examples/check-all.md +37 -0
  52. package/es/checkbox/examples/disabled-all.md +28 -0
  53. package/es/checkbox/examples/disabled-option.md +35 -0
  54. package/es/checkbox/examples/field-names.md +40 -0
  55. package/es/checkbox/examples/status.md +37 -0
  56. package/es/checkbox/examples/vertical.md +36 -0
  57. package/es/checkbox/index.js +1 -1
  58. package/es/checkbox/index.js.map +1 -1
  59. package/es/code/README.mdx +10 -0
  60. package/es/code/examples/basic.md +19 -0
  61. package/es/code/examples/diff.md +45 -0
  62. package/es/code/examples/line-number.md +18 -0
  63. package/es/code/examples/live-edit.md +20 -0
  64. package/es/code/examples/toolbar.md +18 -0
  65. package/es/code/index.js +2 -2
  66. package/es/code/index.js.map +1 -1
  67. package/es/code/worker.js.map +1 -1
  68. package/es/color-palette/README.mdx +10 -0
  69. package/es/color-palette/examples/default-value.md +25 -0
  70. package/es/color-palette/examples/hexa.md +13 -0
  71. package/es/color-palette/examples/hsla.md +13 -0
  72. package/es/color-palette/examples/rgba.md +13 -0
  73. package/es/color-palette/index.js +1 -1
  74. package/es/color-palette/index.js.map +1 -1
  75. package/es/color-picker/README.mdx +10 -0
  76. package/es/color-picker/examples/basic.md +12 -0
  77. package/es/color-picker/examples/default-value.md +20 -0
  78. package/es/color-picker/examples/size.md +17 -0
  79. package/es/color-picker/index.js +1 -1
  80. package/es/color-picker/index.js.map +1 -1
  81. package/es/cron/README.mdx +10 -0
  82. package/es/cron/begin-interval.js.map +1 -1
  83. package/es/cron/day.js.map +1 -1
  84. package/es/cron/examples/basic.md +19 -0
  85. package/es/cron/examples/card.md +12 -0
  86. package/es/cron/examples/show-cron.md +12 -0
  87. package/es/cron/hour.js +1 -1
  88. package/es/cron/hour.js.map +1 -1
  89. package/es/cron/index.js +1 -1
  90. package/es/cron/index.js.map +1 -1
  91. package/es/cron/item.js.map +1 -1
  92. package/es/cron/minute.js +1 -1
  93. package/es/cron/minute.js.map +1 -1
  94. package/es/cron/month.js +1 -1
  95. package/es/cron/month.js.map +1 -1
  96. package/es/cron/period.js.map +1 -1
  97. package/es/cron/second.js +1 -1
  98. package/es/cron/second.js.map +1 -1
  99. package/es/cron/some.js.map +1 -1
  100. package/es/date-picker/README.mdx +10 -0
  101. package/es/date-picker/date.js +1 -1
  102. package/es/date-picker/date.js.map +1 -1
  103. package/es/date-picker/dayjs.js +1 -1
  104. package/es/date-picker/dayjs.js.map +1 -1
  105. package/es/date-picker/examples/basic.md +24 -0
  106. package/es/date-picker/examples/date.md +13 -0
  107. package/es/date-picker/examples/disbaled.md +13 -0
  108. package/es/date-picker/examples/header.md +13 -0
  109. package/es/date-picker/examples/month.md +13 -0
  110. package/es/date-picker/examples/time.md +15 -0
  111. package/es/date-picker/examples/today.md +13 -0
  112. package/es/date-picker/examples/year.md +13 -0
  113. package/es/date-picker/index.js +1 -1
  114. package/es/date-picker/index.js.map +1 -1
  115. package/es/date-picker/month.js +1 -1
  116. package/es/date-picker/month.js.map +1 -1
  117. package/es/date-picker/panel.js +1 -1
  118. package/es/date-picker/panel.js.map +1 -1
  119. package/es/date-picker/time.js +1 -1
  120. package/es/date-picker/time.js.map +1 -1
  121. package/es/date-picker/year.js +1 -1
  122. package/es/date-picker/year.js.map +1 -1
  123. package/es/dropdown/README.mdx +10 -0
  124. package/es/dropdown/examples/arrow.md +59 -0
  125. package/es/dropdown/examples/basic.md +17 -0
  126. package/es/dropdown/examples/click.md +45 -0
  127. package/es/dropdown/examples/context-menu.md +66 -0
  128. package/es/dropdown/examples/field-names.md +44 -0
  129. package/es/dropdown/examples/icon.md +30 -0
  130. package/es/dropdown/examples/multiple.md +45 -0
  131. package/es/dropdown/examples/no-data.md +16 -0
  132. package/es/dropdown/examples/placement.md +59 -0
  133. package/es/dropdown/examples/toggle.md +36 -0
  134. package/es/dropdown/index.js +1 -1
  135. package/es/dropdown/index.js.map +1 -1
  136. package/es/empty/index.js.map +1 -1
  137. package/es/from-schema/index.js +1 -1
  138. package/es/from-schema/index.js.map +1 -1
  139. package/es/highlight-text/README.mdx +10 -0
  140. package/es/highlight-text/examples/basic.md +19 -0
  141. package/es/highlight-text/examples/mut.md +47 -0
  142. package/es/highlight-text/examples/not-hightlight.md +19 -0
  143. package/es/highlight-text/index.js +2 -2
  144. package/es/highlight-text/index.js.map +1 -1
  145. package/es/img/README.mdx +10 -0
  146. package/es/img/examples/basic.md +17 -0
  147. package/es/img/examples/close-mask.md +21 -0
  148. package/es/img/examples/disabled.md +16 -0
  149. package/es/img/examples/error.md +13 -0
  150. package/es/img/examples/esc.md +21 -0
  151. package/es/img/examples/open-change.md +25 -0
  152. package/es/img/index.js +1 -1
  153. package/es/img/index.js.map +1 -1
  154. package/es/img/lazy.js +1 -1
  155. package/es/img/lazy.js.map +1 -1
  156. package/es/index.js +1 -1
  157. package/es/index.js.map +1 -1
  158. package/es/input/README.mdx +10 -0
  159. package/es/input/examples/basic.md +31 -0
  160. package/es/input/examples/prefix&suffix.md +33 -0
  161. package/es/input/examples/size.md +21 -0
  162. package/es/input/examples/status.md +23 -0
  163. package/es/input/index.js +1 -1
  164. package/es/input/index.js.map +1 -1
  165. package/es/input-number/README.mdx +10 -0
  166. package/es/input-number/examples/basic.md +26 -0
  167. package/es/input-number/examples/formatter.md +36 -0
  168. package/es/input-number/examples/max-min.md +13 -0
  169. package/es/input-number/index.js.map +1 -1
  170. package/es/katex/README.mdx +42 -0
  171. package/es/katex/examples/block.md +25 -0
  172. package/es/katex/examples/inline.md +19 -0
  173. package/es/md/README.mdx +10 -0
  174. package/es/md/examples/in-children.md +23 -0
  175. package/es/md/examples/in-text.md +32 -0
  176. package/es/md/examples/math.md +36 -0
  177. package/es/md/index.js +1 -1
  178. package/es/md/index.js.map +1 -1
  179. package/es/menu/README.mdx +10 -0
  180. package/es/menu/examples/basic.md +17 -0
  181. package/es/menu/examples/field-names.md +42 -0
  182. package/es/menu/examples/icon.md +125 -0
  183. package/es/menu/examples/multiple.md +42 -0
  184. package/es/menu/index.js +1 -1
  185. package/es/menu/index.js.map +1 -1
  186. package/es/modal/README.mdx +10 -0
  187. package/es/modal/examples/basic.md +56 -0
  188. package/es/modal/examples/close-icon.md +57 -0
  189. package/es/modal/examples/esc-closable.md +64 -0
  190. package/es/modal/examples/mask-blur.md +56 -0
  191. package/es/modal/examples/mask-closable.md +64 -0
  192. package/es/modal/index.js +1 -1
  193. package/es/modal/index.js.map +1 -1
  194. package/es/notification/README.mdx +11 -0
  195. package/es/notification/examples/basic.md +35 -0
  196. package/es/notification/examples/close.md +35 -0
  197. package/es/notification/examples/type.md +84 -0
  198. package/es/notification/examples/update.md +52 -0
  199. package/es/notification/index.js.map +1 -1
  200. package/es/notification/notification.js +1 -1
  201. package/es/notification/notification.js.map +1 -1
  202. package/es/pagination/README.mdx +10 -0
  203. package/es/pagination/examples/basic.md +13 -0
  204. package/es/pagination/examples/onchange.md +29 -0
  205. package/es/pagination/examples/size.md +23 -0
  206. package/es/pagination/examples/total-text.md +42 -0
  207. package/es/pagination/index.js +1 -1
  208. package/es/pagination/index.js.map +1 -1
  209. package/es/popover/README.mdx +10 -0
  210. package/es/popover/examples/basic.md +35 -0
  211. package/es/popover/examples/click.md +15 -0
  212. package/es/popover/examples/context-menu.md +58 -0
  213. package/es/popover/examples/controlled.md +47 -0
  214. package/es/popover/index.js +1 -1
  215. package/es/popover/index.js.map +1 -1
  216. package/es/prism/css.js.map +1 -1
  217. package/es/prism/index.js.map +1 -1
  218. package/es/provider/README.mdx +10 -0
  219. package/es/provider/examples/scheme.md +14 -0
  220. package/es/provider/index.js.map +1 -1
  221. package/es/radio/README.mdx +10 -0
  222. package/es/radio/examples/basic.md +19 -0
  223. package/es/radio/examples/disabled-option.md +19 -0
  224. package/es/radio/examples/disabled.md +19 -0
  225. package/es/radio/examples/field-names.md +39 -0
  226. package/es/radio/examples/layout-vertical.md +19 -0
  227. package/es/radio/examples/status.md +31 -0
  228. package/es/radio/index.js +1 -1
  229. package/es/radio/index.js.map +1 -1
  230. package/es/segmented/README.mdx +10 -0
  231. package/es/segmented/examples/basic.md +18 -0
  232. package/es/segmented/examples/custom-field-names.md +43 -0
  233. package/es/segmented/examples/disabled-option.md +29 -0
  234. package/es/segmented/examples/disabled.md +18 -0
  235. package/es/segmented/examples/icon.md +28 -0
  236. package/es/segmented/examples/options.md +21 -0
  237. package/es/segmented/index.js +2 -2
  238. package/es/segmented/index.js.map +1 -1
  239. package/es/select/README.mdx +10 -0
  240. package/es/select/examples/basic.md +44 -0
  241. package/es/select/examples/disabled-option.md +21 -0
  242. package/es/select/examples/disabled.md +24 -0
  243. package/es/select/examples/field-names.md +40 -0
  244. package/es/select/examples/item-suffix.md +84 -0
  245. package/es/select/examples/multiple.md +61 -0
  246. package/es/select/examples/no-data.md +12 -0
  247. package/es/select/examples/prefix-icon.md +74 -0
  248. package/es/select/index.js +1 -1
  249. package/es/select/index.js.map +1 -1
  250. package/es/skeleton/README.mdx +10 -0
  251. package/es/skeleton/examples/animation.md +13 -0
  252. package/es/skeleton/examples/avatar.md +13 -0
  253. package/es/skeleton/examples/basic.md +12 -0
  254. package/es/skeleton/examples/rows.md +13 -0
  255. package/es/skeleton/examples/title.md +12 -0
  256. package/es/skeleton/index.js +3 -3
  257. package/es/skeleton/index.js.map +1 -1
  258. package/es/spin/README.mdx +10 -0
  259. package/es/spin/examples/basic.md +67 -0
  260. package/es/spin/index.js +4 -4
  261. package/es/spin/index.js.map +1 -1
  262. package/es/switch/README.mdx +10 -0
  263. package/es/switch/examples/basic.md +24 -0
  264. package/es/switch/examples/checked-text.md +17 -0
  265. package/es/switch/examples/disabled.md +15 -0
  266. package/es/switch/examples/loading.md +17 -0
  267. package/es/switch/index.js +1 -1
  268. package/es/switch/index.js.map +1 -1
  269. package/es/table/README.mdx +10 -0
  270. package/es/table/examples/basic.md +29 -0
  271. package/es/table/examples/key.md +29 -0
  272. package/es/table/examples/order.md +29 -0
  273. package/es/table/examples/pagination.md +67 -0
  274. package/es/table/examples/render.md +92 -0
  275. package/es/table/examples/size.md +52 -0
  276. package/es/table/examples/summary.md +40 -0
  277. package/es/table/index.js +1 -1
  278. package/es/table/index.js.map +1 -1
  279. package/es/tabs/README.mdx +10 -0
  280. package/es/tabs/examples/add-remove.md +115 -0
  281. package/es/tabs/examples/animated.md +33 -0
  282. package/es/tabs/examples/basic.md +32 -0
  283. package/es/tabs/examples/card.md +33 -0
  284. package/es/tabs/examples/center.md +33 -0
  285. package/es/tabs/examples/disabled-tab.md +34 -0
  286. package/es/tabs/examples/disabled.md +33 -0
  287. package/es/tabs/examples/extra.md +65 -0
  288. package/es/tabs/index.js +2 -2
  289. package/es/tabs/index.js.map +1 -1
  290. package/es/tag/README.mdx +10 -0
  291. package/es/tag/examples/basic.md +28 -0
  292. package/es/tag/examples/bordered.md +19 -0
  293. package/es/tag/examples/color.md +25 -0
  294. package/es/tag/examples/icon.md +21 -0
  295. package/es/tag/examples/type.md +19 -0
  296. package/es/tag/index.js +3 -3
  297. package/es/tag/index.js.map +1 -1
  298. package/es/theme/README.mdx +10 -0
  299. package/es/theme/examples/colors.md +123 -0
  300. package/es/theme/examples/theme.md +19 -0
  301. package/es/theme/index.js +1 -1
  302. package/es/theme/index.js.map +1 -1
  303. package/es/tree/README.mdx +10 -0
  304. package/es/tree/examples/basic.md +108 -0
  305. package/es/tree/examples/custom-render.md +115 -0
  306. package/es/tree/examples/direction.md +100 -0
  307. package/es/tree/examples/field-names.md +114 -0
  308. package/es/tree/examples/multiple.md +117 -0
  309. package/es/tree/examples/readonly.md +90 -0
  310. package/es/tree/examples/render-tree-string1.md +70 -0
  311. package/es/tree/examples/render-tree-string2.md +52 -0
  312. package/es/tree/examples/schema.md +130 -0
  313. package/es/tree/examples/size.md +125 -0
  314. package/es/tree/examples/toggle.md +71 -0
  315. package/es/tree/index.js +1 -1
  316. package/es/tree/index.js.map +1 -1
  317. package/es/tree/register.js.map +1 -1
  318. package/es/typography/README.mdx +10 -0
  319. package/es/typography/examples/basic.md +27 -0
  320. package/es/typography/examples/tag.md +25 -0
  321. package/es/typography/examples/truncated.md +17 -0
  322. package/es/typography/index.js +3 -3
  323. package/es/typography/index.js.map +1 -1
  324. package/eslint.config.mjs +9 -0
  325. package/lib/avatar/README.mdx +10 -0
  326. package/lib/avatar/examples/basic.md +14 -0
  327. package/lib/avatar/examples/group.md +57 -0
  328. package/lib/avatar/examples/size.md +21 -0
  329. package/lib/avatar/group.js.map +1 -1
  330. package/lib/avatar/index.js +2 -2
  331. package/lib/avatar/index.js.map +1 -1
  332. package/lib/avatar/style.js +2 -2
  333. package/lib/avatar/style.js.map +1 -1
  334. package/lib/back-top/README.mdx +10 -0
  335. package/lib/back-top/examples/basic.md +19 -0
  336. package/lib/back-top/examples/mount.md +36 -0
  337. package/lib/back-top/examples/target.md +46 -0
  338. package/lib/back-top/index.js +1 -1
  339. package/lib/back-top/index.js.map +1 -1
  340. package/lib/basic-config/README.mdx +11 -0
  341. package/lib/button/README.mdx +10 -0
  342. package/lib/button/examples/basic.md +21 -0
  343. package/lib/button/examples/block.md +33 -0
  344. package/lib/button/examples/circle.md +21 -0
  345. package/lib/button/examples/danger.md +23 -0
  346. package/lib/button/examples/dashed.md +21 -0
  347. package/lib/button/examples/disabled.md +35 -0
  348. package/lib/button/examples/fill.md +21 -0
  349. package/lib/button/examples/flat.md +21 -0
  350. package/lib/button/examples/ghost.md +21 -0
  351. package/lib/button/examples/icon.md +30 -0
  352. package/lib/button/examples/link.md +21 -0
  353. package/lib/button/examples/size.md +23 -0
  354. package/lib/button/index.js +1 -1
  355. package/lib/button/index.js.map +1 -1
  356. package/lib/button/style.js +1 -0
  357. package/lib/button/style.js.map +1 -1
  358. package/lib/capture-screen/README.mdx +10 -0
  359. package/lib/capture-screen/examples/basic.md +13 -0
  360. package/lib/capture-screen/examples/custom-save.md +30 -0
  361. package/lib/capture-screen/examples/preview.md +13 -0
  362. package/lib/capture-screen/examples/recorder-save.md +13 -0
  363. package/lib/capture-screen/index.js +1 -1
  364. package/lib/capture-screen/index.js.map +1 -1
  365. package/lib/carousel/README.mdx +10 -0
  366. package/lib/carousel/examples/autoplay.md +21 -0
  367. package/lib/carousel/examples/basic.md +23 -0
  368. package/lib/carousel/examples/dots.md +23 -0
  369. package/lib/carousel/examples/header.md +38 -0
  370. package/lib/carousel/index.js +1 -1
  371. package/lib/carousel/index.js.map +1 -1
  372. package/lib/checkbox/README.mdx +10 -0
  373. package/lib/checkbox/examples/basic.md +31 -0
  374. package/lib/checkbox/examples/check-all.md +37 -0
  375. package/lib/checkbox/examples/disabled-all.md +28 -0
  376. package/lib/checkbox/examples/disabled-option.md +35 -0
  377. package/lib/checkbox/examples/field-names.md +40 -0
  378. package/lib/checkbox/examples/status.md +37 -0
  379. package/lib/checkbox/examples/vertical.md +36 -0
  380. package/lib/checkbox/index.js +1 -1
  381. package/lib/checkbox/index.js.map +1 -1
  382. package/lib/code/README.mdx +10 -0
  383. package/lib/code/examples/basic.md +19 -0
  384. package/lib/code/examples/diff.md +45 -0
  385. package/lib/code/examples/line-number.md +18 -0
  386. package/lib/code/examples/live-edit.md +20 -0
  387. package/lib/code/examples/toolbar.md +18 -0
  388. package/lib/code/index.js +2 -2
  389. package/lib/code/index.js.map +1 -1
  390. package/lib/code/worker.js.map +1 -1
  391. package/lib/color-palette/README.mdx +10 -0
  392. package/lib/color-palette/examples/default-value.md +25 -0
  393. package/lib/color-palette/examples/hexa.md +13 -0
  394. package/lib/color-palette/examples/hsla.md +13 -0
  395. package/lib/color-palette/examples/rgba.md +13 -0
  396. package/lib/color-palette/index.js +1 -1
  397. package/lib/color-palette/index.js.map +1 -1
  398. package/lib/color-picker/README.mdx +10 -0
  399. package/lib/color-picker/examples/basic.md +12 -0
  400. package/lib/color-picker/examples/default-value.md +20 -0
  401. package/lib/color-picker/examples/size.md +17 -0
  402. package/lib/color-picker/index.js +1 -1
  403. package/lib/color-picker/index.js.map +1 -1
  404. package/lib/cron/README.mdx +10 -0
  405. package/lib/cron/begin-interval.js.map +1 -1
  406. package/lib/cron/day.js.map +1 -1
  407. package/lib/cron/examples/basic.md +19 -0
  408. package/lib/cron/examples/card.md +12 -0
  409. package/lib/cron/examples/show-cron.md +12 -0
  410. package/lib/cron/hour.js +1 -1
  411. package/lib/cron/hour.js.map +1 -1
  412. package/lib/cron/index.js.map +1 -1
  413. package/lib/cron/item.js.map +1 -1
  414. package/lib/cron/minute.js +1 -1
  415. package/lib/cron/minute.js.map +1 -1
  416. package/lib/cron/month.js +1 -1
  417. package/lib/cron/month.js.map +1 -1
  418. package/lib/cron/period.js.map +1 -1
  419. package/lib/cron/second.js +1 -1
  420. package/lib/cron/second.js.map +1 -1
  421. package/lib/cron/some.js.map +1 -1
  422. package/lib/date-picker/README.mdx +10 -0
  423. package/lib/date-picker/date.js.map +1 -1
  424. package/lib/date-picker/dayjs.js +1 -1
  425. package/lib/date-picker/dayjs.js.map +1 -1
  426. package/lib/date-picker/examples/basic.md +24 -0
  427. package/lib/date-picker/examples/date.md +13 -0
  428. package/lib/date-picker/examples/disbaled.md +13 -0
  429. package/lib/date-picker/examples/header.md +13 -0
  430. package/lib/date-picker/examples/month.md +13 -0
  431. package/lib/date-picker/examples/time.md +15 -0
  432. package/lib/date-picker/examples/today.md +13 -0
  433. package/lib/date-picker/examples/year.md +13 -0
  434. package/lib/date-picker/index.js +1 -1
  435. package/lib/date-picker/index.js.map +1 -1
  436. package/lib/date-picker/month.js.map +1 -1
  437. package/lib/date-picker/panel.js +1 -1
  438. package/lib/date-picker/panel.js.map +1 -1
  439. package/lib/date-picker/time.js.map +1 -1
  440. package/lib/date-picker/year.js.map +1 -1
  441. package/lib/dropdown/README.mdx +10 -0
  442. package/lib/dropdown/examples/arrow.md +59 -0
  443. package/lib/dropdown/examples/basic.md +17 -0
  444. package/lib/dropdown/examples/click.md +45 -0
  445. package/lib/dropdown/examples/context-menu.md +66 -0
  446. package/lib/dropdown/examples/field-names.md +44 -0
  447. package/lib/dropdown/examples/icon.md +30 -0
  448. package/lib/dropdown/examples/multiple.md +45 -0
  449. package/lib/dropdown/examples/no-data.md +16 -0
  450. package/lib/dropdown/examples/placement.md +59 -0
  451. package/lib/dropdown/examples/toggle.md +36 -0
  452. package/lib/dropdown/index.js +1 -1
  453. package/lib/dropdown/index.js.map +1 -1
  454. package/lib/empty/index.js.map +1 -1
  455. package/lib/from-schema/index.js +1 -1
  456. package/lib/from-schema/index.js.map +1 -1
  457. package/lib/highlight-text/README.mdx +10 -0
  458. package/lib/highlight-text/examples/basic.md +19 -0
  459. package/lib/highlight-text/examples/mut.md +47 -0
  460. package/lib/highlight-text/examples/not-hightlight.md +19 -0
  461. package/lib/highlight-text/index.js.map +1 -1
  462. package/lib/img/README.mdx +10 -0
  463. package/lib/img/examples/basic.md +17 -0
  464. package/lib/img/examples/close-mask.md +21 -0
  465. package/lib/img/examples/disabled.md +16 -0
  466. package/lib/img/examples/error.md +13 -0
  467. package/lib/img/examples/esc.md +21 -0
  468. package/lib/img/examples/open-change.md +25 -0
  469. package/lib/img/index.js +1 -1
  470. package/lib/img/index.js.map +1 -1
  471. package/lib/img/lazy.js +1 -1
  472. package/lib/img/lazy.js.map +1 -1
  473. package/lib/index.js +1 -1
  474. package/lib/index.js.map +1 -1
  475. package/lib/input/README.mdx +10 -0
  476. package/lib/input/examples/basic.md +31 -0
  477. package/lib/input/examples/prefix&suffix.md +33 -0
  478. package/lib/input/examples/size.md +21 -0
  479. package/lib/input/examples/status.md +23 -0
  480. package/lib/input/index.js +1 -1
  481. package/lib/input/index.js.map +1 -1
  482. package/lib/input-number/README.mdx +10 -0
  483. package/lib/input-number/examples/basic.md +26 -0
  484. package/lib/input-number/examples/formatter.md +36 -0
  485. package/lib/input-number/examples/max-min.md +13 -0
  486. package/lib/input-number/index.js.map +1 -1
  487. package/lib/katex/README.mdx +42 -0
  488. package/lib/katex/examples/block.md +25 -0
  489. package/lib/katex/examples/inline.md +19 -0
  490. package/lib/md/README.mdx +10 -0
  491. package/lib/md/examples/in-children.md +23 -0
  492. package/lib/md/examples/in-text.md +32 -0
  493. package/lib/md/examples/math.md +36 -0
  494. package/lib/md/index.js +1 -1
  495. package/lib/md/index.js.map +1 -1
  496. package/lib/menu/README.mdx +10 -0
  497. package/lib/menu/examples/basic.md +17 -0
  498. package/lib/menu/examples/field-names.md +42 -0
  499. package/lib/menu/examples/icon.md +125 -0
  500. package/lib/menu/examples/multiple.md +42 -0
  501. package/lib/menu/index.js +1 -1
  502. package/lib/menu/index.js.map +1 -1
  503. package/lib/modal/README.mdx +10 -0
  504. package/lib/modal/examples/basic.md +56 -0
  505. package/lib/modal/examples/close-icon.md +57 -0
  506. package/lib/modal/examples/esc-closable.md +64 -0
  507. package/lib/modal/examples/mask-blur.md +56 -0
  508. package/lib/modal/examples/mask-closable.md +64 -0
  509. package/lib/modal/index.js.map +1 -1
  510. package/lib/notification/README.mdx +11 -0
  511. package/lib/notification/examples/basic.md +35 -0
  512. package/lib/notification/examples/close.md +35 -0
  513. package/lib/notification/examples/type.md +84 -0
  514. package/lib/notification/examples/update.md +52 -0
  515. package/lib/notification/index.js.map +1 -1
  516. package/lib/notification/notification.js +1 -1
  517. package/lib/notification/notification.js.map +1 -1
  518. package/lib/pagination/README.mdx +10 -0
  519. package/lib/pagination/examples/basic.md +13 -0
  520. package/lib/pagination/examples/onchange.md +29 -0
  521. package/lib/pagination/examples/size.md +23 -0
  522. package/lib/pagination/examples/total-text.md +42 -0
  523. package/lib/pagination/index.js +1 -1
  524. package/lib/pagination/index.js.map +1 -1
  525. package/lib/popover/README.mdx +10 -0
  526. package/lib/popover/examples/basic.md +35 -0
  527. package/lib/popover/examples/click.md +15 -0
  528. package/lib/popover/examples/context-menu.md +58 -0
  529. package/lib/popover/examples/controlled.md +47 -0
  530. package/lib/popover/index.js +1 -1
  531. package/lib/popover/index.js.map +1 -1
  532. package/lib/prism/css.js.map +1 -1
  533. package/lib/prism/index.js.map +1 -1
  534. package/lib/provider/README.mdx +10 -0
  535. package/lib/provider/examples/scheme.md +14 -0
  536. package/lib/provider/index.js.map +1 -1
  537. package/lib/radio/README.mdx +10 -0
  538. package/lib/radio/examples/basic.md +19 -0
  539. package/lib/radio/examples/disabled-option.md +19 -0
  540. package/lib/radio/examples/disabled.md +19 -0
  541. package/lib/radio/examples/field-names.md +39 -0
  542. package/lib/radio/examples/layout-vertical.md +19 -0
  543. package/lib/radio/examples/status.md +31 -0
  544. package/lib/radio/index.js +1 -1
  545. package/lib/radio/index.js.map +1 -1
  546. package/lib/segmented/README.mdx +10 -0
  547. package/lib/segmented/examples/basic.md +18 -0
  548. package/lib/segmented/examples/custom-field-names.md +43 -0
  549. package/lib/segmented/examples/disabled-option.md +29 -0
  550. package/lib/segmented/examples/disabled.md +18 -0
  551. package/lib/segmented/examples/icon.md +28 -0
  552. package/lib/segmented/examples/options.md +21 -0
  553. package/lib/segmented/index.js +2 -2
  554. package/lib/segmented/index.js.map +1 -1
  555. package/lib/select/README.mdx +10 -0
  556. package/lib/select/examples/basic.md +44 -0
  557. package/lib/select/examples/disabled-option.md +21 -0
  558. package/lib/select/examples/disabled.md +24 -0
  559. package/lib/select/examples/field-names.md +40 -0
  560. package/lib/select/examples/item-suffix.md +84 -0
  561. package/lib/select/examples/multiple.md +61 -0
  562. package/lib/select/examples/no-data.md +12 -0
  563. package/lib/select/examples/prefix-icon.md +74 -0
  564. package/lib/select/index.js +1 -1
  565. package/lib/select/index.js.map +1 -1
  566. package/lib/skeleton/README.mdx +10 -0
  567. package/lib/skeleton/examples/animation.md +13 -0
  568. package/lib/skeleton/examples/avatar.md +13 -0
  569. package/lib/skeleton/examples/basic.md +12 -0
  570. package/lib/skeleton/examples/rows.md +13 -0
  571. package/lib/skeleton/examples/title.md +12 -0
  572. package/lib/skeleton/index.js.map +1 -1
  573. package/lib/spin/README.mdx +10 -0
  574. package/lib/spin/examples/basic.md +67 -0
  575. package/lib/spin/index.js +3 -3
  576. package/lib/spin/index.js.map +1 -1
  577. package/lib/switch/README.mdx +10 -0
  578. package/lib/switch/examples/basic.md +24 -0
  579. package/lib/switch/examples/checked-text.md +17 -0
  580. package/lib/switch/examples/disabled.md +15 -0
  581. package/lib/switch/examples/loading.md +17 -0
  582. package/lib/switch/index.js +1 -1
  583. package/lib/switch/index.js.map +1 -1
  584. package/lib/table/README.mdx +10 -0
  585. package/lib/table/examples/basic.md +29 -0
  586. package/lib/table/examples/key.md +29 -0
  587. package/lib/table/examples/order.md +29 -0
  588. package/lib/table/examples/pagination.md +67 -0
  589. package/lib/table/examples/render.md +92 -0
  590. package/lib/table/examples/size.md +52 -0
  591. package/lib/table/examples/summary.md +40 -0
  592. package/lib/table/index.js +1 -1
  593. package/lib/table/index.js.map +1 -1
  594. package/lib/tabs/README.mdx +10 -0
  595. package/lib/tabs/examples/add-remove.md +115 -0
  596. package/lib/tabs/examples/animated.md +33 -0
  597. package/lib/tabs/examples/basic.md +32 -0
  598. package/lib/tabs/examples/card.md +33 -0
  599. package/lib/tabs/examples/center.md +33 -0
  600. package/lib/tabs/examples/disabled-tab.md +34 -0
  601. package/lib/tabs/examples/disabled.md +33 -0
  602. package/lib/tabs/examples/extra.md +65 -0
  603. package/lib/tabs/index.js +2 -2
  604. package/lib/tabs/index.js.map +1 -1
  605. package/lib/tag/README.mdx +10 -0
  606. package/lib/tag/examples/basic.md +28 -0
  607. package/lib/tag/examples/bordered.md +19 -0
  608. package/lib/tag/examples/color.md +25 -0
  609. package/lib/tag/examples/icon.md +21 -0
  610. package/lib/tag/examples/type.md +19 -0
  611. package/lib/tag/index.js +3 -3
  612. package/lib/tag/index.js.map +1 -1
  613. package/lib/theme/README.mdx +10 -0
  614. package/lib/theme/examples/colors.md +123 -0
  615. package/lib/theme/examples/theme.md +19 -0
  616. package/lib/theme/index.js +1 -1
  617. package/lib/theme/index.js.map +1 -1
  618. package/lib/tree/README.mdx +10 -0
  619. package/lib/tree/examples/basic.md +108 -0
  620. package/lib/tree/examples/custom-render.md +115 -0
  621. package/lib/tree/examples/direction.md +100 -0
  622. package/lib/tree/examples/field-names.md +114 -0
  623. package/lib/tree/examples/multiple.md +117 -0
  624. package/lib/tree/examples/readonly.md +90 -0
  625. package/lib/tree/examples/render-tree-string1.md +70 -0
  626. package/lib/tree/examples/render-tree-string2.md +52 -0
  627. package/lib/tree/examples/schema.md +130 -0
  628. package/lib/tree/examples/size.md +125 -0
  629. package/lib/tree/examples/toggle.md +71 -0
  630. package/lib/tree/index.js +1 -1
  631. package/lib/tree/index.js.map +1 -1
  632. package/lib/tree/register.js.map +1 -1
  633. package/lib/typography/README.mdx +10 -0
  634. package/lib/typography/examples/basic.md +27 -0
  635. package/lib/typography/examples/tag.md +25 -0
  636. package/lib/typography/examples/truncated.md +17 -0
  637. package/lib/typography/index.js.map +1 -1
  638. package/package.json +18 -18
  639. package/types/avatar/group.d.ts +1 -1
  640. package/types/back-top/index.d.ts +1 -1
  641. package/types/capture-screen/index.d.ts +1 -1
  642. package/types/color-palette/index.d.ts +1 -1
  643. package/types/color-picker/index.d.ts +1 -1
  644. package/types/cron/begin-interval.d.ts +3 -3
  645. package/types/cron/index.d.ts +5 -5
  646. package/types/cron/item.d.ts +4 -4
  647. package/types/cron/period.d.ts +3 -3
  648. package/types/cron/some.d.ts +3 -3
  649. package/types/date-picker/date.d.ts +2 -2
  650. package/types/date-picker/index.d.ts +2 -2
  651. package/types/date-picker/month.d.ts +2 -2
  652. package/types/date-picker/panel.d.ts +3 -3
  653. package/types/date-picker/time.d.ts +2 -2
  654. package/types/date-picker/year.d.ts +2 -2
  655. package/types/dropdown/index.d.ts +1 -1
  656. package/types/empty/index.d.ts +1 -1
  657. package/types/from-schema/index.d.ts +4 -4
  658. package/types/index.d.ts +12 -12
  659. package/types/md/index.d.ts +1 -1
  660. package/types/modal/index.d.ts +1 -1
  661. package/types/notification/index.d.ts +1 -1
  662. package/types/pagination/index.d.ts +1 -1
  663. package/types/provider/index.d.ts +1 -1
  664. package/types/segmented/index.d.ts +1 -1
  665. package/types/select/index.d.ts +1 -1
  666. package/types/table/index.d.ts +1 -1
  667. package/types/tabs/index.d.ts +1 -1
  668. package/types/tree/index.d.ts +1 -1
  669. package/umd/assets/svg/favicon.svg +1 -0
  670. package/umd/index.js +2 -2
  671. package/umd/js/46e8f96158e59015.js +1 -0
@@ -0,0 +1,27 @@
1
+ ---
2
+ title: 基本使用
3
+ description: 文本的基本格式
4
+ order: 1
5
+ ---
6
+
7
+ ```html
8
+ <n-typography>normal text</n-typography>
9
+ <n-typography type="secondary">secondary text</n-typography>
10
+ <n-typography type="success">success text</n-typography>
11
+ <n-typography type="error">danger text</n-typography>
12
+ <n-typography type="warning">warning text</n-typography>
13
+ <n-typography type="primary">primary text</n-typography>
14
+ <n-typography type="primary" disabled="true"> disabled text </n-typography>
15
+ ```
16
+
17
+ ```jsx
18
+ <n-typography>normal text</n-typography>
19
+ <n-typography type="secondary">secondary text</n-typography>
20
+ <n-typography type="success">success text</n-typography>
21
+ <n-typography type="error">danger text</n-typography>
22
+ <n-typography type="warning">warning text</n-typography>
23
+ <n-typography type="primary">primary text</n-typography>
24
+ <n-typography type="primary" disabled>
25
+ disabled text
26
+ </n-typography>
27
+ ```
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: 自定义标签
3
+ description: 添加 `tag` 属性设置自定义标签类型
4
+ order: 3
5
+ ---
6
+
7
+ ```html
8
+ <n-typography tag="mark">mark</n-typography>
9
+ <n-typography tag="u">underline</n-typography>
10
+ <n-typography tag="strong">strong</n-typography>
11
+ <n-typography tag="del">delete</n-typography>
12
+ <n-typography tag="i">italic</n-typography>
13
+ <n-typography tag="kbd">keyboard</n-typography>
14
+ <n-typography tag="a">link</n-typography>
15
+ ```
16
+
17
+ ```jsx
18
+ <n-typography tag="mark">mark</n-typography>
19
+ <n-typography tag="u">underline</n-typography>
20
+ <n-typography tag="strong">strong</n-typography>
21
+ <n-typography tag="del">delete</n-typography>
22
+ <n-typography tag="i">italic</n-typography>
23
+ <n-typography tag="kbd">keyboard</n-typography>
24
+ <n-typography tag="a">link</n-typography>
25
+ ```
@@ -0,0 +1,17 @@
1
+ ---
2
+ title: 超出隐藏
3
+ description: 添加 `truncated` 属性启用文本超出隐藏, 添加 `truncated.rows` 属性设置文本超出多少行后隐藏
4
+ order: 2
5
+ ---
6
+
7
+ ```html
8
+ <n-typography truncated="2">Don’t <n-typography type="success">compare</n-typography> your life with others. There’s no comparison between the <n-typography type="warning">sun</n-typography> and the <n-typography type="warning">moon</n-typography>. They shine when it’s their time.</n-typography>
9
+ ```
10
+
11
+ ```jsx
12
+ <n-typography truncated={2}>
13
+ Don’t <n-typography type="success">compare</n-typography> your life with others. There’s no
14
+ comparison between the <n-typography type="warning">sun</n-typography> and the
15
+ <n-typography type="warning">moon</n-typography>. They shine when it’s their time.
16
+ </n-typography>
17
+ ```
@@ -1 +1 @@
1
- {"version":3,"sources":["../../components/typography/index.tsx"],"sourcesContent":["import { Show, createEffect, createMemo, mergeProps } from 'solid-js';\nimport { css, cx } from '@moneko/css';\nimport { customElement } from 'solid-element';\nimport { Dynamic } from 'solid-js/web';\nimport theme from '../theme';\nimport type { CustomElement } from '..';\n\nexport interface TypographyProps {\n /** 自定义类名 */\n class?: string;\n /** 自定义样式表 */\n css?: string;\n /** 文本格式\n * @default 'text'\n */\n type?: 'primary' | 'warning' | 'success' | 'error' | 'text' | 'secondary';\n /** 启用超出隐藏\n * @default false\n */\n truncated?: boolean | number;\n /** 自定义标签名\n * @default 'span'\n */\n tag?: string;\n /** 禁用 */\n disabled?: boolean;\n children?: JSX.Element;\n style?: Record<string, string | number>;\n}\n\nfunction Typography(props: TypographyProps) {\n const { baseStyle } = theme;\n const _ = mergeProps(\n {\n type: 'text',\n tag: 'span',\n },\n props,\n );\n const customCss = createMemo(() => {\n let color = props.type === 'secondary' ? '--text-secondary' : `--${props.type}-color`;\n\n if (props.type === 'error') {\n color = '--error-color';\n } else if (props.disabled) {\n color = '--disable-color';\n }\n let truncated = '';\n\n if (props.truncated) {\n truncated = css`\n overflow: hidden;\n /* stylelint-disable-next-line */\n display: -webkit-box;\n -webkit-box-orient: block-axis;\n -webkit-line-clamp: ${(typeof props.truncated === 'number' && props.truncated) || 1};\n `;\n }\n\n return css`\n :host {\n display: inline-block;\n max-inline-size: 100%;\n }\n\n .typography {\n font-size: var(--font-size);\n word-break: break-word;\n word-wrap: break-word;\n color: var(${color});\n cursor: ${props.disabled ? 'not-allowed' : 'auto'};\n ${truncated}\n }\n `;\n });\n\n return (\n <>\n <style textContent={baseStyle()} />\n <style textContent={customCss()} />\n <Show when={props.css}>\n <style textContent={css(props.css)} />\n </Show>\n <Dynamic component={_.tag} class={cx('typography', _.class)} style={_.style}>\n {_.children}\n </Dynamic>\n </>\n );\n}\n\nexport type TypographyElement = CustomElement<TypographyProps>;\n\ncustomElement<TypographyProps>(\n 'n-typography',\n {\n class: void 0,\n css: void 0,\n type: void 0,\n truncated: void 0,\n tag: void 0,\n disabled: void 0,\n style: void 0,\n },\n (_, opt) => {\n const el = opt.element;\n const props = mergeProps(\n {\n children: [...el.childNodes.values()],\n },\n _,\n );\n\n createEffect(() => {\n el.replaceChildren();\n });\n return <Typography {...props} />;\n },\n);\nexport default Typography;\n"],"names":["Typography","props","baseStyle","theme","_","mergeProps","type","tag","customCss","createMemo","color","disabled","truncated","css","Show","Dynamic","cx","class","style","children","customElement","opt","el","element","childNodes","values","createEffect","replaceChildren"],"mappings":"wGAsHA,+CAAA,qBAnHwB,0BAHmC,sBACnC,yBACM,8BAEZ,sEA0BlB,SAASA,EAAWC,CAAsB,EACxC,GAAM,CAAEC,UAAAA,CAAS,CAAE,CAAGC,SAAK,CACrBC,EAAIC,GAAAA,YAAU,EAClB,CACEC,KAAM,OACNC,IAAK,MACP,EACAN,GAEIO,EAAYC,GAAAA,YAAU,EAAC,KAC3B,IAAIC,EAAQT,AAAe,cAAfA,EAAMK,IAAI,CAAmB,mBAAqB,CAAC,EAAE,EAAEL,EAAMK,IAAI,CAAC,MAAM,CAAC,AAEjFL,AAAe,CAAA,UAAfA,EAAMK,IAAI,CACZI,EAAQ,gBACCT,EAAMU,QAAQ,EACvBD,CAAAA,EAAQ,iBAAgB,EAE1B,IAAIE,EAAY,GAYhB,OAVIX,EAAMW,SAAS,EACjBA,CAAAA,EAAYC,GAAAA,KAAG,CAAA,CAAC;;;;;4BAKM,EAAE,AAA4B,UAA3B,OAAOZ,EAAMW,SAAS,EAAiBX,EAAMW,SAAS,EAAK,EAAE;MACtF,CAAC,AAAD,EAGKC,GAAAA,KAAG,CAAA,CAAC;;;;;;;;;;mBAUI,EAAEH,EAAM;gBACX,EAAET,EAAMU,QAAQ,CAAG,cAAgB,OAAO;QAClD,EAAEC,EAAU;;IAEhB,CAAC,AACH,GAEA,oEAEwBV,wEACAM,iCACnBM,MAAI,oBAAOb,EAAMY,GAAG,wEACCA,GAAAA,KAAG,EAACZ,EAAMY,GAAG,8BAElCE,SAAO,yBAAYX,EAAEG,GAAG,oBAASS,GAAAA,IAAE,EAAC,aAAcZ,EAAEa,KAAK,sBAAUb,EAAEc,KAAK,wBACxEd,EAAEe,QAAQ,IAInB,CAIAC,GAAAA,eAAa,EACX,eACA,CACEH,MAAO,KAAK,EACZJ,IAAK,KAAK,EACVP,KAAM,KAAK,EACXM,UAAW,KAAK,EAChBL,IAAK,KAAK,EACVI,SAAU,KAAK,EACfO,MAAO,KAAK,CACd,EACA,CAACd,EAAGiB,KACF,IAAMC,EAAKD,EAAIE,OAAO,CAChBtB,EAAQI,GAAAA,YAAU,EACtB,CACEc,SAAU,IAAIG,EAAGE,UAAU,CAACC,MAAM,GAAG,AACvC,EACArB,GAMF,MAHAsB,GAAAA,cAAY,EAAC,KACXJ,EAAGK,eAAe,EACpB,yBACQ3B,EAAeC,EACzB,SAEF,EAAeD"}
1
+ {"version":3,"sources":["../../components/typography/index.tsx"],"sourcesContent":["import { createEffect, createMemo, mergeProps, Show } from 'solid-js';\nimport { Dynamic } from 'solid-js/web';\nimport { css, cx } from '@moneko/css';\nimport { customElement } from 'solid-element';\n\nimport type { CustomElement } from '..';\nimport theme from '../theme';\n\nexport interface TypographyProps {\n /** 自定义类名 */\n class?: string;\n /** 自定义样式表 */\n css?: string;\n /** 文本格式\n * @default 'text'\n */\n type?: 'primary' | 'warning' | 'success' | 'error' | 'text' | 'secondary';\n /** 启用超出隐藏\n * @default false\n */\n truncated?: boolean | number;\n /** 自定义标签名\n * @default 'span'\n */\n tag?: string;\n /** 禁用 */\n disabled?: boolean;\n children?: JSX.Element;\n style?: Record<string, string | number>;\n}\n\nfunction Typography(props: TypographyProps) {\n const { baseStyle } = theme;\n const _ = mergeProps(\n {\n type: 'text',\n tag: 'span',\n },\n props,\n );\n const customCss = createMemo(() => {\n let color = props.type === 'secondary' ? '--text-secondary' : `--${props.type}-color`;\n\n if (props.type === 'error') {\n color = '--error-color';\n } else if (props.disabled) {\n color = '--disable-color';\n }\n let truncated = '';\n\n if (props.truncated) {\n truncated = css`\n overflow: hidden;\n /* stylelint-disable-next-line */\n display: -webkit-box;\n -webkit-box-orient: block-axis;\n -webkit-line-clamp: ${(typeof props.truncated === 'number' && props.truncated) || 1};\n `;\n }\n\n return css`\n :host {\n display: inline-block;\n max-inline-size: 100%;\n }\n\n .typography {\n font-size: var(--font-size);\n word-break: break-word;\n word-wrap: break-word;\n color: var(${color});\n cursor: ${props.disabled ? 'not-allowed' : 'auto'};\n ${truncated}\n }\n `;\n });\n\n return (\n <>\n <style textContent={baseStyle()} />\n <style textContent={customCss()} />\n <Show when={props.css}>\n <style textContent={css(props.css)} />\n </Show>\n <Dynamic component={_.tag} class={cx('typography', _.class)} style={_.style}>\n {_.children}\n </Dynamic>\n </>\n );\n}\n\nexport type TypographyElement = CustomElement<TypographyProps>;\n\ncustomElement<TypographyProps>(\n 'n-typography',\n {\n class: void 0,\n css: void 0,\n type: void 0,\n truncated: void 0,\n tag: void 0,\n disabled: void 0,\n style: void 0,\n },\n (_, opt) => {\n const el = opt.element;\n const props = mergeProps(\n {\n children: [...el.childNodes.values()],\n },\n _,\n );\n\n createEffect(() => {\n el.replaceChildren();\n });\n return <Typography {...props} />;\n },\n);\nexport default Typography;\n"],"names":["Typography","props","baseStyle","theme","_","mergeProps","type","tag","customCss","createMemo","color","disabled","truncated","css","Show","Dynamic","cx","class","style","children","customElement","opt","el","element","childNodes","values","createEffect","replaceChildren"],"mappings":"wGAuHA,+CAAA,qBAtHwB,0BADmC,sBAEnC,yBACM,8BAGZ,sEAyBlB,SAASA,EAAWC,CAAsB,EACxC,GAAM,CAAEC,UAAAA,CAAS,CAAE,CAAGC,SAAK,CACrBC,EAAIC,GAAAA,YAAU,EAClB,CACEC,KAAM,OACNC,IAAK,MACP,EACAN,GAEIO,EAAYC,GAAAA,YAAU,EAAC,KAC3B,IAAIC,EAAQT,AAAe,cAAfA,EAAMK,IAAI,CAAmB,mBAAqB,CAAC,EAAE,EAAEL,EAAMK,IAAI,CAAC,MAAM,CAAC,AAEjFL,AAAe,CAAA,UAAfA,EAAMK,IAAI,CACZI,EAAQ,gBACCT,EAAMU,QAAQ,EACvBD,CAAAA,EAAQ,iBAAgB,EAE1B,IAAIE,EAAY,GAYhB,OAVIX,EAAMW,SAAS,EACjBA,CAAAA,EAAYC,GAAAA,KAAG,CAAA,CAAC;;;;;4BAKM,EAAE,AAA4B,UAA3B,OAAOZ,EAAMW,SAAS,EAAiBX,EAAMW,SAAS,EAAK,EAAE;MACtF,CAAC,AAAD,EAGKC,GAAAA,KAAG,CAAA,CAAC;;;;;;;;;;mBAUI,EAAEH,EAAM;gBACX,EAAET,EAAMU,QAAQ,CAAG,cAAgB,OAAO;QAClD,EAAEC,EAAU;;IAEhB,CAAC,AACH,GAEA,oEAEwBV,wEACAM,iCACnBM,MAAI,oBAAOb,EAAMY,GAAG,wEACCA,GAAAA,KAAG,EAACZ,EAAMY,GAAG,8BAElCE,SAAO,yBAAYX,EAAEG,GAAG,oBAASS,GAAAA,IAAE,EAAC,aAAcZ,EAAEa,KAAK,sBAAUb,EAAEc,KAAK,wBACxEd,EAAEe,QAAQ,IAInB,CAIAC,GAAAA,eAAa,EACX,eACA,CACEH,MAAO,KAAK,EACZJ,IAAK,KAAK,EACVP,KAAM,KAAK,EACXM,UAAW,KAAK,EAChBL,IAAK,KAAK,EACVI,SAAU,KAAK,EACfO,MAAO,KAAK,CACd,EACA,CAACd,EAAGiB,KACF,IAAMC,EAAKD,EAAIE,OAAO,CAChBtB,EAAQI,GAAAA,YAAU,EACtB,CACEc,SAAU,IAAIG,EAAGE,UAAU,CAACC,MAAM,GAAG,AACvC,EACArB,GAMF,MAHAsB,GAAAA,cAAY,EAAC,KACXJ,EAAGK,eAAe,EACpB,yBACQ3B,EAAeC,EACzB,SAEF,EAAeD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neko-ui",
3
- "version": "2.8.21",
3
+ "version": "2.8.23",
4
4
  "description": "WebComponents UI Libraries",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,7 +21,7 @@
21
21
  "postlint": "mo stylelint components && mo stylelint site && jest --coverage",
22
22
  "precommit": "npm run lint && npm run changelog",
23
23
  "prepare": "mo githooks pre-commit=\"npm run precommit\" commit-msg=\"npx --no -- commitlint --edit \\${1}\"",
24
- "start": "rm -rf lib && rm -rf es && mo start library solid",
24
+ "start": "mo start library solid",
25
25
  "test": "jest --coverage --watchAll"
26
26
  },
27
27
  "author": {
@@ -52,35 +52,35 @@
52
52
  "ui libraries"
53
53
  ],
54
54
  "devDependencies": {
55
- "@commitlint/cli": "19.3.0",
56
- "@commitlint/config-conventional": "19.2.2",
57
- "@moneko/cli": "2.14.3",
58
- "@moneko/core": "3.20.3",
59
- "@moneko/solid": "1.9.0",
60
- "@solidjs/testing-library": "0.8.8",
55
+ "@commitlint/cli": "19.5.0",
56
+ "@commitlint/config-conventional": "19.5.0",
57
+ "@moneko/cli": "2.15.6",
58
+ "@moneko/core": "3.23.5",
59
+ "@moneko/solid": "1.10.5",
60
+ "@solidjs/testing-library": "0.8.10",
61
61
  "@swc/jest": "0.2.36",
62
- "@testing-library/jest-dom": "6.4.6",
63
- "@types/jest": "29.5.12",
62
+ "@testing-library/jest-dom": "6.5.0",
63
+ "@types/jest": "29.5.13",
64
64
  "@types/prismjs": "1.26.4",
65
- "eslint-config-neko": "2.8.4",
66
- "eslint-plugin-solid": "0.14.1",
67
- "husky": "9.0.11",
65
+ "eslint-config-neko": "3.0.0",
66
+ "eslint-plugin-solid": "0.14.3",
67
+ "husky": "9.1.6",
68
68
  "jest": "29.7.0",
69
69
  "jest-environment-jsdom": "29.7.0",
70
70
  "n-code-live": "1.1.0",
71
71
  "n-katex": "1.0.8",
72
- "shadow-dom-testing-library": "1.11.2",
73
- "stylelint-config-moneko": "2.4.1"
72
+ "shadow-dom-testing-library": "1.11.3",
73
+ "stylelint-config-moneko": "2.4.2"
74
74
  },
75
75
  "dependencies": {
76
76
  "@moneko/common": "1.5.4",
77
77
  "@moneko/css": "1.1.5",
78
78
  "custom-element-type": "1.0.4",
79
- "dayjs": "1.11.11",
79
+ "dayjs": "1.11.13",
80
80
  "marked-completed": "1.2.14",
81
81
  "prismjs": "1.29.0",
82
- "solid-element": "1.8.1",
83
- "solid-js": "1.8.18"
82
+ "solid-element": "1.9.0",
83
+ "solid-js": "1.9.2"
84
84
  },
85
85
  "browserslist": [
86
86
  ">0.3%, defaults",
@@ -1,6 +1,6 @@
1
+ import type { AvatarProps, BasicConfig, CustomElement } from '..';
1
2
  import '../avatar';
2
3
  import '../popover';
3
- import type { AvatarProps, BasicConfig, CustomElement } from '..';
4
4
  export interface AvatarGroupProps {
5
5
  /** 头像数据 */
6
6
  data?: Omit<AvatarProps, 'size'>[];
@@ -3,7 +3,7 @@ export interface BackTopProps {
3
3
  /** 设置需要监听其滚动事件的元素
4
4
  * @default window
5
5
  */
6
- target?: HTMLElement | (() => HTMLElement);
6
+ target?: HTMLElement | (() => HTMLElement | undefined);
7
7
  /** 挂载到指定的元素
8
8
  * @default body
9
9
  */
@@ -1,5 +1,5 @@
1
- import '../button';
2
1
  import type { CustomElement } from '..';
2
+ import '../button';
3
3
  declare interface MediaRecorderDataAvailableEvent extends Event {
4
4
  /** MediaRecorderDataAvailableEvent */
5
5
  data: Any;
@@ -1,7 +1,7 @@
1
+ import type { CustomElement } from '..';
1
2
  import '../dropdown';
2
3
  import '../input';
3
4
  import '../input-number';
4
- import type { CustomElement } from '..';
5
5
  export interface ColorPaletteProps {
6
6
  /** 自定义类名 */
7
7
  class?: string;
@@ -1,5 +1,5 @@
1
- import '../color-palette';
2
1
  import type { BasicConfig, ColorPaletteProps, CustomElement, PopoverProps } from '..';
2
+ import '../color-palette';
3
3
  /** 颜色选择器
4
4
  * @since 2.0.0
5
5
  */
@@ -1,6 +1,6 @@
1
- import type { CronData } from '.';
2
1
  import type { BaseOption } from 'neko-ui';
3
- type BeginIntervalProps = {
2
+ import type { CronData } from '.';
3
+ interface BeginIntervalProps {
4
4
  begin: CronData['begin'];
5
5
  beginEvery: CronData['beginEvery'];
6
6
  label: [JSX.Element, JSX.Element, JSX.Element];
@@ -9,6 +9,6 @@ type BeginIntervalProps = {
9
9
  onChange(type: 'begin' | 'beginEvery', value: number): void;
10
10
  validate(type: 'begin' | 'beginEvery', value: number): boolean;
11
11
  disabled: boolean;
12
- };
12
+ }
13
13
  declare function BeginInterval(props: BeginIntervalProps): import("solid-js").JSX.Element;
14
14
  export default BeginInterval;
@@ -1,9 +1,9 @@
1
+ import type { CustomElement } from '..';
1
2
  import '../button';
2
3
  import '../input-number';
3
4
  import '../radio';
4
5
  import '../select';
5
6
  import '../tabs';
6
- import type { CustomElement } from '..';
7
7
  export interface CronProps {
8
8
  /** 自定义类名 */
9
9
  class?: string;
@@ -36,7 +36,7 @@ export type DayType = SecondType | 'closeWorkDay' | '?' | 'last';
36
36
  export type WeekType = SecondType | 'last' | '?';
37
37
  export type MonthType = SecondType;
38
38
  export type YearType = SecondType | '';
39
- export type CronData<T extends string = string> = {
39
+ export interface CronData<T extends string = string> {
40
40
  start: number;
41
41
  end: number;
42
42
  begin: number;
@@ -44,9 +44,9 @@ export type CronData<T extends string = string> = {
44
44
  type: T;
45
45
  some: number[];
46
46
  value: string;
47
- };
47
+ }
48
48
  export type ActiveTab = keyof CronType;
49
- export type CronType = {
49
+ export interface CronType {
50
50
  second: CronData<SecondType>;
51
51
  minute: CronData<MinuteType>;
52
52
  hour: CronData<HourType>;
@@ -59,6 +59,6 @@ export type CronType = {
59
59
  };
60
60
  month: CronData<MonthType>;
61
61
  year: CronData<YearType>;
62
- };
62
+ }
63
63
  declare function Cron(props: CronProps): import("solid-js").JSX.Element;
64
64
  export default Cron;
@@ -1,9 +1,9 @@
1
- import type { ActiveTab, CronType } from '.';
2
1
  import type { RadioOption } from 'neko-ui';
3
- export type CronItemProps<T extends ActiveTab = 'second'> = {
2
+ import type { ActiveTab, CronType } from '.';
3
+ export interface CronItemProps<T extends ActiveTab = 'second'> {
4
4
  state: CronType[T];
5
- onChange<V extends Exclude<keyof CronType[T], 'value' | 'type'> | 'type'>(type: V, value: CronType[T][V]): void;
5
+ onChange?<V extends Exclude<keyof CronType[T], 'value' | 'type'> | 'type'>(type: V, value: CronType[T][V]): void;
6
6
  options: RadioOption[];
7
- };
7
+ }
8
8
  declare function Item<T extends ActiveTab>(props: CronItemProps<T>): import("solid-js").JSX.Element;
9
9
  export default Item;
@@ -1,6 +1,6 @@
1
- import type { CronData } from '.';
2
1
  import type { BaseOption } from 'neko-ui';
3
- type PeriodProps = {
2
+ import type { CronData } from '.';
3
+ interface PeriodProps {
4
4
  start: CronData['start'];
5
5
  end: CronData['end'];
6
6
  label: [JSX.Element, JSX.Element, JSX.Element];
@@ -8,6 +8,6 @@ type PeriodProps = {
8
8
  onChange(type: 'start' | 'end', value: number): void;
9
9
  validate(type: 'start' | 'end', v: number): boolean;
10
10
  disabled: boolean;
11
- };
11
+ }
12
12
  declare function Period(props: PeriodProps): import("solid-js").JSX.Element;
13
13
  export default Period;
@@ -1,11 +1,11 @@
1
- import type { CronData } from '.';
2
1
  import type { BaseOption } from 'neko-ui';
3
- type SomeProps = {
2
+ import type { CronData } from '.';
3
+ interface SomeProps {
4
4
  value: CronData['some'];
5
5
  label: JSX.Element;
6
6
  options: (string | number | BaseOption)[];
7
7
  type: CronData['type'];
8
8
  onChange(type: 'some', value: number[]): void;
9
- };
9
+ }
10
10
  declare function Some(props: SomeProps): import("solid-js").JSX.Element;
11
11
  export default Some;
@@ -1,7 +1,7 @@
1
1
  import dayjs from './dayjs';
2
- type DatePanelProps = {
2
+ interface DatePanelProps {
3
3
  current: dayjs.Dayjs;
4
4
  onChange(next: dayjs.Dayjs): void;
5
- };
5
+ }
6
6
  declare function DatePanel(props: DatePanelProps): import("solid-js").JSX.Element;
7
7
  export default DatePanel;
@@ -1,7 +1,7 @@
1
+ import type { CustomElement, PopoverProps } from '..';
1
2
  import dayjs from './dayjs';
2
3
  import '../button';
3
4
  import '../menu';
4
- import type { CustomElement, PopoverProps } from '..';
5
5
  declare function DatePicker(_props: DatePickerProps): import("solid-js").JSX.Element;
6
6
  /** API
7
7
  * @since 2.1.0
@@ -66,7 +66,7 @@ export interface DatePickerProps extends Partial<PopoverProps> {
66
66
  */
67
67
  showHeader?: boolean;
68
68
  }
69
- declare enum PickerType {
69
+ export declare enum PickerType {
70
70
  /** 日期选择 */
71
71
  date = "date",
72
72
  /** 月份选择 */
@@ -1,8 +1,8 @@
1
1
  import dayjs from './dayjs';
2
- type MonthPanelProps = {
2
+ interface MonthPanelProps {
3
3
  current: dayjs.Dayjs;
4
4
  onChange(next: dayjs.Dayjs): void;
5
- };
5
+ }
6
6
  export declare const months: dayjs.MonthNames;
7
7
  declare function MonthPanel(props: MonthPanelProps): import("solid-js").JSX.Element;
8
8
  export default MonthPanel;
@@ -1,6 +1,6 @@
1
- import dayjs from './dayjs';
2
1
  import type { DatePickerProps } from '.';
3
- type PanelProps = {
2
+ import dayjs from './dayjs';
3
+ interface PanelProps {
4
4
  current: dayjs.Dayjs;
5
5
  type?: DatePickerProps['type'];
6
6
  onChange(val: dayjs.Dayjs): void;
@@ -12,6 +12,6 @@ type PanelProps = {
12
12
  showTime?: boolean;
13
13
  showToday?: boolean;
14
14
  showHeader?: boolean;
15
- };
15
+ }
16
16
  declare function Panel(props: PanelProps): import("solid-js").JSX.Element;
17
17
  export default Panel;
@@ -1,12 +1,12 @@
1
1
  import dayjs from './dayjs';
2
- type TimePickerProps = {
2
+ interface TimePickerProps {
3
3
  current: dayjs.Dayjs;
4
4
  datePicker: HTMLDivElement | undefined;
5
5
  onChange(next: dayjs.Dayjs): void;
6
6
  showHour?: boolean;
7
7
  showMinute?: boolean;
8
8
  showSecond?: boolean;
9
- };
9
+ }
10
10
  export declare const hours: {
11
11
  label: string | number;
12
12
  value: number;
@@ -1,8 +1,8 @@
1
1
  import dayjs from './dayjs';
2
- type YearPanelProps = {
2
+ interface YearPanelProps {
3
3
  current: dayjs.Dayjs;
4
4
  start: number;
5
5
  onChange(next: dayjs.Dayjs): void;
6
- };
6
+ }
7
7
  declare function YearPanel(props: YearPanelProps): import("solid-js").JSX.Element;
8
8
  export default YearPanel;
@@ -1,5 +1,5 @@
1
- import '../menu';
2
1
  import type { CustomElement, MenuMultipleProps, MenuProps, PopoverProps } from '..';
2
+ import '../menu';
3
3
  export interface BaseDropdownProps extends Omit<PopoverProps, 'content'> {
4
4
  /** 打开内容气泡 */
5
5
  open?: boolean | null;
@@ -1,5 +1,5 @@
1
- import '../typography';
2
1
  import type { CustomElement } from '..';
2
+ import '../typography';
3
3
  export interface EmptyProps {
4
4
  /** 自定义样式表 */
5
5
  css?: string;
@@ -1,5 +1,5 @@
1
1
  import { type TreeData } from '../tree';
2
- declare enum Type {
2
+ export declare enum DataType {
3
3
  string = "string",
4
4
  number = "number",
5
5
  integer = "integer",
@@ -8,7 +8,7 @@ declare enum Type {
8
8
  array = "array"
9
9
  }
10
10
  interface BaseSchema {
11
- type?: keyof typeof Type;
11
+ type?: keyof typeof DataType;
12
12
  name?: string;
13
13
  title?: string;
14
14
  items?: never;
@@ -20,9 +20,9 @@ interface ArraySchema extends Omit<BaseSchema, 'type' | 'items'> {
20
20
  properties?: Record<string, Schema>;
21
21
  }
22
22
  interface ObjectSchema extends Omit<BaseSchema, 'type'> {
23
- type?: Exclude<keyof typeof Type, 'array'>;
23
+ type?: Exclude<keyof typeof DataType, 'array'>;
24
24
  properties?: Record<string, Schema>;
25
25
  }
26
26
  export type Schema = ObjectSchema | ArraySchema;
27
- declare function fromSchema(schema: Schema, pid?: string): TreeData<string>[];
27
+ declare function fromSchema(schema: Schema, pid?: string): TreeData[];
28
28
  export default fromSchema;
package/types/index.d.ts CHANGED
@@ -10,7 +10,8 @@ export { default as Code, type CodeElement, type CodeProps } from './code';
10
10
  export { default as ColorPalette, type ColorPaletteElement, type ColorPaletteProps, } from './color-palette';
11
11
  export { default as ColorPicker, type ColorPickerElement, type ColorPickerProps, } from './color-picker';
12
12
  export { default as Cron, type CronElement, type CronProps } from './cron';
13
- export { default as DatePicker, type DatePickerProps, type DatePickerElement } from './date-picker';
13
+ export { default as DatePicker, type DatePickerElement, type DatePickerProps } from './date-picker';
14
+ export { default as dayjs } from './date-picker/dayjs';
14
15
  export { default as Dropdown, type DropdownElement, type DropdownMultipleElement, type DropdownMultipleProps, type DropdownProps, } from './dropdown';
15
16
  export { default as Empty, type EmptyElement, type EmptyProps } from './empty';
16
17
  export { default as fromSchema } from './from-schema';
@@ -22,10 +23,12 @@ export { default as InputNumber, type InputNumberElement, type InputNumberProps,
22
23
  export { default as Md, type MdElement, type MdProps } from './md';
23
24
  export { default as mdStyle } from './md-style';
24
25
  export { default as Menu, type MenuElement, type MenuMultipleElement, type MenuMultipleProps, type MenuOption, type MenuProps, } from './menu';
25
- export { default as Modal, type ModalElement, type ModalProps, type OpenStateKey, OpenState, } from './modal';
26
- export { default as notification, type NotificationType, type NotificationProps, } from './notification';
27
- export { default as Pagination, type PaginationProps, type PaginationElement } from './pagination';
26
+ export { default as Modal, type ModalElement, type ModalProps, OpenState, type OpenStateKey, } from './modal';
27
+ export { default as notification, type NotificationProps, type NotificationType, } from './notification';
28
+ export { default as Pagination, type PaginationElement, type PaginationProps } from './pagination';
28
29
  export { default as Popover, type PopoverElement, type PopoverProps } from './popover';
30
+ export { default as Prism } from './prism';
31
+ export { default as Provider, type ProviderElement, type ProviderProps } from './provider';
29
32
  export { default as Radio, type RadioElement, type RadioOption, type RadioProps } from './radio';
30
33
  export { default as Segmented, type SegmentedElement, type SegmentedProps } from './segmented';
31
34
  export { default as Select, type SelectElement, type SelectMultipleElement, type SelectMultipleProps, type SelectProps, } from './select';
@@ -33,18 +36,15 @@ export { default as Skeleton, type SkeletonElement, type SkeletonProps } from '.
33
36
  export { default as Spin, type SpinElement, type SpinProps } from './spin';
34
37
  export { default as Switch, type SwitchElement, type SwitchProps } from './switch';
35
38
  export { default as Table, type TableElement, type TableProps } from './table';
36
- export { default as Tabs, type TabOption, type TabsElement, type TabsProps } from './tabs';
39
+ export { type TabOption, default as Tabs, type TabsElement, type TabsProps } from './tabs';
37
40
  export { default as Tag, type TagElement, type TagProps } from './tag';
38
- export { default as theme, type ColorScheme, type ThemeOption, generateColor, toneColor, } from './theme';
39
- export { default as Tree, type TreeElement, type TreeMultipleElement, type TreeMultipleProps, type TreeMultipleSchemaElement, type TreeMultipleSchemaProps, type TreeMultipleStringElement, type TreeMultipleStringProps, type TreeProps, type TreeSchemaElement, type TreeSchemaProps, type TreeStringElement, type TreeStringProps, type TreeData, } from './tree';
41
+ export { type ColorScheme, generateColor, default as theme, type ThemeOption, toneColor, } from './theme';
42
+ export { default as Tree, type TreeData, type TreeElement, type TreeMultipleElement, type TreeMultipleProps, type TreeMultipleSchemaElement, type TreeMultipleSchemaProps, type TreeMultipleStringElement, type TreeMultipleStringProps, type TreeProps, type TreeSchemaElement, type TreeSchemaProps, type TreeStringElement, type TreeStringProps, } from './tree';
40
43
  export { default as Typography, type TypographyElement, type TypographyProps } from './typography';
41
- export { default as dayjs } from './date-picker/dayjs';
42
- export { default as Provider, type ProviderElement, type ProviderProps } from './provider';
43
- export { default as Prism } from './prism';
44
- export { hot, customElement, noShadowDOM, withSolid, getCurrentElement } from 'solid-element';
45
44
  export type { CustomElement } from 'custom-element-type';
46
- import type { AvatarElement, AvatarGroupElement, BackTopElement, ButtonElement, CaptureScreenElement, CarouselElement, CheckboxBoolElement, CheckboxGroupElement, CodeElement, ColorPaletteElement, ColorPickerElement, CronElement, DatePickerElement, DropdownElement, DropdownMultipleElement, EmptyElement, HighlightTextElement, ImgElement, InputElement, InputNumberElement, MdElement, MenuElement, MenuMultipleElement, ModalElement, PaginationElement, PopoverElement, ProviderElement, RadioElement, SegmentedElement, SelectElement, SelectMultipleElement, SkeletonElement, SpinElement, SwitchElement, TableElement, TabsElement, TagElement, TreeElement, TreeMultipleElement, TreeMultipleSchemaElement, TreeMultipleStringElement, TreeSchemaElement, TreeStringElement, TypographyElement } from '.';
45
+ export { customElement, getCurrentElement, hot, noShadowDOM, withSolid } from 'solid-element';
47
46
  import type { ICustomElement, Transform } from 'custom-element-type';
47
+ import type { AvatarElement, AvatarGroupElement, BackTopElement, ButtonElement, CaptureScreenElement, CarouselElement, CheckboxBoolElement, CheckboxGroupElement, CodeElement, ColorPaletteElement, ColorPickerElement, CronElement, DatePickerElement, DropdownElement, DropdownMultipleElement, EmptyElement, HighlightTextElement, ImgElement, InputElement, InputNumberElement, MdElement, MenuElement, MenuMultipleElement, ModalElement, PaginationElement, PopoverElement, ProviderElement, RadioElement, SegmentedElement, SelectElement, SelectMultipleElement, SkeletonElement, SpinElement, SwitchElement, TableElement, TabsElement, TagElement, TreeElement, TreeMultipleElement, TreeMultipleSchemaElement, TreeMultipleStringElement, TreeSchemaElement, TreeStringElement, TypographyElement } from '.';
48
48
  /** 组件列表
49
49
  * @author monako97
50
50
  * @ignore optional
@@ -1,6 +1,6 @@
1
+ import type { CustomElement } from '..';
1
2
  import '../code';
2
3
  import '../img';
3
- import type { CustomElement } from '..';
4
4
  declare function MD(_props: MdProps): import("solid-js").JSX.Element;
5
5
  export interface MdProps {
6
6
  /** 自定义类名 */
@@ -1,5 +1,5 @@
1
- import '../button';
2
1
  import type { CustomElement } from '..';
2
+ import '../button';
3
3
  /**
4
4
  * API
5
5
  * @since 2.6.0
@@ -1,5 +1,5 @@
1
1
  import { type NotificationProps } from './queque';
2
- export type { NotificationType, NotificationProps } from './queque';
2
+ export type { NotificationProps, NotificationType } from './queque';
3
3
  /** Api */
4
4
  interface Notification {
5
5
  /**
@@ -1,6 +1,6 @@
1
+ import type { BasicConfig, CustomElement } from '..';
1
2
  import '../button';
2
3
  import '../typography';
3
- import type { BasicConfig, CustomElement } from '..';
4
4
  declare function Pagination(_: PaginationProps): import("solid-js").JSX.Element;
5
5
  /** API */
6
6
  export interface PaginationProps {
@@ -1,5 +1,5 @@
1
- import { ColorScheme } from '../theme';
2
1
  import type { CustomElement } from '..';
2
+ import { ColorScheme } from '../theme';
3
3
  declare function Provider(props: ProviderProps): import("solid-js").JSX.Element;
4
4
  export interface ProviderProps {
5
5
  /** 主题, 等同于使用 setScheme
@@ -1,5 +1,5 @@
1
- import '../typography';
2
1
  import type { BaseOption, BasicConfig, CustomElement } from '..';
2
+ import '../typography';
3
3
  export interface SegmentedProps {
4
4
  /** 自定义类名 */
5
5
  class?: string;
@@ -1,5 +1,5 @@
1
- import '../tag';
2
1
  import type { CustomElement, DropdownMultipleProps, DropdownProps, MenuOption } from '..';
2
+ import '../tag';
3
3
  declare function Select(props: SelectProps): import("solid-js").JSX.Element;
4
4
  /** 通用API */
5
5
  interface SelectBaseProps {
@@ -1,5 +1,5 @@
1
- import '../pagination';
2
1
  import type { BasicConfig, CustomElement, PaginationProps } from '..';
2
+ import '../pagination';
3
3
  declare function Table(_: TableProps): import("solid-js").JSX.Element;
4
4
  /** API
5
5
  * @since 2.1.0
@@ -1,5 +1,5 @@
1
- import '../button';
2
1
  import type { BaseOption, BasicConfig, CustomElement } from '..';
2
+ import '../button';
3
3
  export interface TabsProps {
4
4
  /** 自定义类名 */
5
5
  class?: string;
@@ -1,5 +1,5 @@
1
- import './register';
2
1
  import type { TreeMultipleProps, TreeMultipleSchemaProps, TreeMultipleStringProps, TreeProps, TreeSchemaProps, TreeStringProps } from './type';
2
+ import './register';
3
3
  declare function Tree(_: TreeProps | TreeMultipleProps | TreeMultipleSchemaProps | TreeSchemaProps | TreeMultipleStringProps | TreeStringProps): import("solid-js").JSX.Element;
4
4
  export * from './type';
5
5
  export default Tree;
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 1.29 1" xmlns="http://www.w3.org/2000/svg"><path d="M.519 0a.565.565 0 0 1-.033.003l-.13.01a.083.083 0 0 1-.01.001l-.02.002A1.176 1.176 0 0 0 .26.02a.093.093 0 0 0-.033.006A.06.06 0 0 0 .2.042.933.933 0 0 0 .123.13a.046.046 0 0 0-.007.01.057.057 0 0 0-.024.036L.091.177a.206.206 0 0 1-.012.02.05.05 0 0 1-.005.01.056.056 0 0 0-.003.006.083.083 0 0 0-.007.013.017.017 0 0 1-.002.005 3.365 3.365 0 0 1-.034.086.135.135 0 0 1-.01.035.033.033 0 0 1-.002.01.677.677 0 0 0 .023.367l.003.005a.265.265 0 0 0 .017.041.051.051 0 0 1 .003.007l.006.011a.414.414 0 0 0 .02.036l.004.008.01.015.005.01.01.014a.086.086 0 0 0 .006.007.01.01 0 0 1 .002.003l.001.001A.075.075 0 0 0 .135.9.1.1 0 0 1 .14.908L.145.91l.003.004.01.012.005.006a.613.613 0 0 0 .065.061l.004.002a.091.091 0 0 0 .036.003.034.034 0 0 1 .01-.001c.007 0 .014 0 .021-.002h.012L.324.993h.03A.484.484 0 0 0 .404.99.412.412 0 0 0 .461.986L.469.985.48.984A.092.092 0 0 0 .496.98.033.033 0 0 0 .518.96s0-.003.002-.004C.523.95.518.932.51.925A.032.032 0 0 1 .508.92.054.054 0 0 0 .505.915V.913c.001 0 .001 0 0 0L.503.91H.502L.5.907A.028.028 0 0 0 .498.902C.493.892.488.882.492.888c.01.009.022.016.035.02a.148.148 0 0 1 .019.007l.003.002h.004L.556.92H.56l.005.002.005.001.004.002H.58l.003.001h.003l.001.001a.04.04 0 0 1 .009.002H.6l.01.002a.18.18 0 0 0 .033.002c.018 0 .02 0 .033-.002A.823.823 0 0 1 .718.922a.018.018 0 0 1 .004 0L.727.92H.73L.733.917h.003L.738.916a.01.01 0 0 1 .004 0L.746.914A.102.102 0 0 1 .76.91.104.104 0 0 0 .797.886v.002a.132.132 0 0 1-.015.025L.78.92a.072.072 0 0 0-.013.028C.766.96.778.979.79.98a.03.03 0 0 0 .016.004l.012.001a.92.92 0 0 0 .115.008.168.168 0 0 0 .033.001l.011.001.011.001.022.002a.146.146 0 0 0 .037 0 .012.012 0 0 1 .003 0 .05.05 0 0 0 .012-.005.213.213 0 0 0 .029-.026L1.098.96l.006-.006a.042.042 0 0 0 .007-.007L1.119.94a.017.017 0 0 0 .003-.004l.003-.003.002-.003.002-.002.003-.003.002-.003.002-.002a.026.026 0 0 1 .006-.006L1.143.91h.002l.001-.003.001-.001.002-.002V.902l.005-.005.002-.002a.11.11 0 0 0 .008-.011l.001-.001.001-.002.001-.001.004-.006A.01.01 0 0 1 1.173.87l.003-.004a.01.01 0 0 0 .002-.003L1.18.862a.01.01 0 0 0 .003-.004l.001-.002.002-.003.002-.003.001-.002.002-.002a.035.035 0 0 0 .005-.009l.002-.002V.832L1.2.83l.001-.002.002-.001A.02.02 0 0 1 1.206.82V.819l.001-.002.001-.002V.814L1.21.811l.001-.002s0-.002.002-.003l.002-.004L1.217.8V.798l.001-.002.002-.004.002-.004V.787l.003-.004A.013.013 0 0 0 1.227.78l.001-.003V.775L1.23.773V.77l.002-.003V.765l.002-.002.001-.003.001-.002V.756l.002-.001c0-.002 0-.003.002-.005V.745l.002-.002V.74l.002-.003V.734l.002-.003V.729l.001-.001.001-.003L1.25.72l.001-.003.001-.003.001-.003.001-.004A.068.068 0 0 0 1.26.694L1.261.69c.001 0 .001 0 0 0V.686a.033.033 0 0 0 .003-.008l.001-.003V.674l.003-.01V.66h.002V.651L1.272.65l.001-.001V.645L1.274.64V.638L1.277.63A.167.167 0 0 0 1.28.604L1.284.58l.001-.017a.719.719 0 0 0-.001-.13V.432A.217.217 0 0 1 1.279.4a.093.093 0 0 0-.003-.013.072.072 0 0 1-.001-.01c0-.003 0-.004-.002-.004V.371A.02.02 0 0 0 1.27.364V.36a.025.025 0 0 1-.002-.01c-.001 0-.002-.003-.002-.007L1.265.337 1.264.331 1.263.328 1.262.326 1.261.324V.32L1.26.318 1.258.314V.313L1.257.31V.309L1.254.306V.303a.032.032 0 0 1-.003-.01L1.25.29V.286L1.247.284S1.245.28 1.246.278a.04.04 0 0 1-.004-.009.052.052 0 0 0-.003-.006.009.009 0 0 1 0-.004L1.236.257V.253A.009.009 0 0 1 1.233.25a.028.028 0 0 0-.005-.01V.236L1.227.234A.008.008 0 0 0 1.225.23L1.223.228V.226L1.22.224V.222L1.219.219 1.218.216 1.217.214A.011.011 0 0 1 1.215.21a.015.015 0 0 0-.003-.004V.204H1.21L1.209.2 1.208.197 1.206.195 1.205.192 1.204.19s0-.002-.002-.003L1.2.184V.182a.014.014 0 0 1-.002-.004h-.001V.175L1.192.171V.169L1.19.167 1.187.164V.163a.02.02 0 0 0-.004-.006L1.182.155 1.18.154V.152h-.002V.148L1.176.146 1.173.143V.142a.03.03 0 0 1-.006-.007V.133h-.002V.13A.016.016 0 0 1 1.16.126a.048.048 0 0 0-.008-.01V.113L1.15.11 1.148.108a.037.037 0 0 1-.004-.005.064.064 0 0 0-.007-.007.009.009 0 0 0-.002-.003L1.134.09 1.128.085A.105.105 0 0 0 1.072.03.037.037 0 0 0 1.06.026.093.093 0 0 0 1.027.02 31.75 31.75 0 0 0 .747 0C.724.001.715.005.711.018.706.032.707.028.706.06a.436.436 0 0 1-.024.15L.678.22a.259.259 0 0 1-.032.055L.644.277.64.275A.267.267 0 0 1 .593.164.449.449 0 0 1 .58.06C.58.03.58.028.576.02V.016L.574.014.573.01C.57.004.558 0 .54 0H.52zm-.01.033h.004a.021.021 0 0 1 .025.018v.003l.001.02a.503.503 0 0 0 .024.154l.005.01.005.012C.59.284.618.315.637.319h.016a.108.108 0 0 0 .02-.013.148.148 0 0 0 .032-.04.334.334 0 0 0 .043-.18v-.01a.04.04 0 0 1 0-.01v-.01l.003-.01C.75.044.762.035.766.034h.01L.778.032H.78L.784.031H.79l.004.001.015.001.016.002H.84A.158.158 0 0 0 .867.04H.87L.9.043A1.015 1.015 0 0 1 .99.05h.017a.03.03 0 0 1 .009.002h.012c.011 0 .023.008.046.03a.309.309 0 0 1 .023.026L1.1.113a.66.66 0 0 1 .08.119l.001.001.002.002.01.02a.039.039 0 0 0 .005.01L1.2.27l.004.01.01.027a.182.182 0 0 0 .005.011.502.502 0 0 0 .014.047l.002.013c.006.028.01.057.012.086l.001.017a.46.46 0 0 1-.01.136.692.692 0 0 1-.08.207l-.039.055a.487.487 0 0 1-.086.088.054.054 0 0 1-.017.003A1.289 1.289 0 0 0 .98.967L.942.964A1.406 1.406 0 0 0 .859.96C.825.955.819.952.81.942A.025.025 0 0 1 .806.933C.804.93.808.92.818.902A.166.166 0 0 0 .83.872L.833.87V.867A.184.184 0 0 0 .844.84.192.192 0 0 1 .85.821.036.036 0 0 0 .853.808V.805H.851a.313.313 0 0 1-.136.091A.229.229 0 0 1 .56.893.322.322 0 0 1 .45.818C.438.805.436.803.435.808c.002.01.004.02.008.028v.005a.407.407 0 0 0 .03.068l.004.007c.005.011.005.016 0 .024C.473.95.464.954.445.957a.594.594 0 0 1-.058.005 1.245 1.245 0 0 0-.112.007.035.035 0 0 1-.028-.007.564.564 0 0 1-.12-.144.675.675 0 0 1-.083-.246L.04.552V.535A.45.45 0 0 1 .042.43L.045.413a.371.371 0 0 1 .006-.03.222.222 0 0 1 .012-.049.06.06 0 0 1 .004-.012.171.171 0 0 0 .007-.018L.077.295a.377.377 0 0 1 .03-.068L.116.213A.18.18 0 0 1 .13.188L.135.179A.37.37 0 0 1 .182.117.517.517 0 0 0 .194.103a.22.22 0 0 1 .05-.046A.046.046 0 0 1 .26.052h.019A.042.042 0 0 1 .29.05a.02.02 0 0 0 .005 0h.004L.302.048h.002L.32.047h.016A.133.133 0 0 0 .36.043h.01L.372.042h.007A.233.233 0 0 1 .4.04h.018L.421.039h.004c.007 0 .015 0 .023-.002h.007L.459.035a.036.036 0 0 1 .01 0L.473.034h.008L.484.033H.49L.5.032h.003l.005.001zm.708.366c-.009.003-.013.009-.013.017 0 .023.034.025.035.002.001-.012-.011-.022-.022-.019zm-.032.033c-.026.003-.04.012-.046.03a.13.13 0 0 0-.003.03l-.001.01a.121.121 0 0 0-.003.025v.004L1.13.535V.54a.01.01 0 0 1-.001.004l-.001.003V.55l-.001.002v.003l-.001.004a.02.02 0 0 1-.002.007v.003l-.002.004v.004L1.121.58 1.12.584A.11.11 0 0 1 1.117.6v.002a.041.041 0 0 0-.002.007.056.056 0 0 1-.002.007.049.049 0 0 0-.003.007.092.092 0 0 1-.002.007.047.047 0 0 0-.002.006.072.072 0 0 1-.005.013.052.052 0 0 0-.002.005.058.058 0 0 1-.002.007.061.061 0 0 0-.004.01.013.013 0 0 1-.002.003L1.09.675c0 .001 0 .003-.002.005a1.035 1.035 0 0 0-.022.045.116.116 0 0 0-.01.016l-.002.003-.001.002-.002.002a.145.145 0 0 1-.015.024.073.073 0 0 0-.009.011.02.02 0 0 1-.003.004.027.027 0 0 0-.003.005.027.027 0 0 1-.006.006.114.114 0 0 1-.013.015A.015.015 0 0 0 1 .819a.007.007 0 0 0-.003.003.068.068 0 0 1-.006.007L.984.834a.364.364 0 0 1-.016.015L.963.854v.001L.958.86a.056.056 0 0 0-.004.052.05.05 0 0 0 .035.03c.012.003.024 0 .032-.007a.036.036 0 0 1 .005-.003L1.028.93 1.03.928l.007-.006.002-.001a.604.604 0 0 0 .13-.168.068.068 0 0 1 .004-.007l.001-.004a.156.156 0 0 0 .022-.048V.692l.002-.004L1.2.685 1.201.68l.001-.004h.001V.673a.05.05 0 0 0 .003-.008V.663L1.21.657c0-.003 0-.007.002-.01l.001-.003.001-.005.001-.004A.11.11 0 0 0 1.22.618V.616a.01.01 0 0 1 0-.004l.001-.005.002-.008a.382.382 0 0 0 .014-.135C1.231.445 1.205.43 1.184.432zm.017.006a.05.05 0 0 1 .015.007.04.04 0 0 1 .013.013l.002.003.001.002.001.004a.045.045 0 0 1 0 .018v.002L1.232.49a.01.01 0 0 1-.002.003l-.002.003a.027.027 0 0 1-.006.007s-.002 0-.003.002c-.007.007-.029.012-.04.008A.056.056 0 0 1 1.16.505a.038.038 0 0 1-.008-.007L1.15.493a.032.032 0 0 1 0-.036V.455s.01-.01.012-.01a.037.037 0 0 1 .012-.006.02.02 0 0 1 .006-.001l.004-.001.017.001zm-.02.021c-.023.006-.02.027.003.032l.007.001h.005c.005-.002.01-.004.013-.008.012-.013-.008-.03-.028-.025zm-.036.097c.003.001.004.002.014.021l.01.016.002-.001.019-.014c.019-.014.02-.014.023-.014.009 0 .013.01.007.017a.694.694 0 0 1-.036.027l.012.002c.011.002.014.003.016.007.003.006-.001.015-.009.015L1.128.617C1.121.613 1.122.602 1.13.599l.003-.002.01.002.008.002a.209.209 0 0 0-.009-.017c-.01-.016-.01-.018-.009-.021a.01.01 0 0 1 .014-.007zm-.004.1c.014.004.019.015.015.03-.005.022-.022.032-.028.019C1.127.7 1.127.698 1.132.693a.027.027 0 0 0 .007-.014V.675h-.002C1.132.673 1.13.674 1.123.677c-.01.006-.011.015-.006.026.005.012.01.015.024.015.02 0 .026-.01.02-.03-.003-.013.013-.02.019-.008a.07.07 0 0 1 .002.027c-.004.035-.057.043-.079.012C1.09.7 1.091.681 1.105.667c.013-.013.024-.016.037-.012zm-.059.093a.01.01 0 0 1 .006.006l.004.001h.004l.016.01.016.012a.01.01 0 0 1-.007.017.15.15 0 0 1-.037-.025L1.084.768h-.005c-.012 0-.017.007-.011.016.002.003.003.007.001.01v.003l.015.01c.018.013.019.013.02.016.004.01-.006.018-.015.012a1.447 1.447 0 0 1-.056-.038c-.006-.008.002-.02.01-.016h.002V.777a.03.03 0 0 1 .023-.028.033.033 0 0 1 .015 0zm-.065.086a.02.02 0 0 1 .006.002c.014.008.025.02.029.036V.89a.027.027 0 0 0-.001.004c-.004.016-.023.026-.04.022A.033.033 0 0 1 1 .913.07.07 0 0 1 .98.896.016.016 0 0 0 .978.893a.046.046 0 0 1-.007-.02V.86A.01.01 0 0 0 .974.858c0-.008.012-.02.019-.022a.05.05 0 0 1 .026 0zm-.017.02C.989.86.99.88 1.003.89l.004.003c.007.006.02.004.024-.002.008-.017-.013-.041-.03-.035z" fill="#7483AB"/></svg>