litos-ui 0.20.1 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/README.md +119 -15
  2. package/README.zh-CN.md +153 -0
  3. package/lib/base.d.ts +1 -0
  4. package/lib/base.js +1 -1
  5. package/lib/button/index.js +4 -4
  6. package/lib/{style-gKR_qwzm.js → button/index.less_inline.js} +2 -3
  7. package/lib/button/style.js +6 -2
  8. package/lib/calendar/index.js +140 -2
  9. package/lib/calendar/index.less_inline.js +4 -0
  10. package/lib/calendar/langs.js +12 -0
  11. package/lib/card/index.js +64 -2
  12. package/lib/card/index.less_inline.js +4 -0
  13. package/lib/carousel/index.js +257 -2
  14. package/lib/carousel/index.less_inline.js +4 -0
  15. package/lib/carousel/item.js +15 -2
  16. package/lib/carousel/item.less_inline.js +4 -0
  17. package/lib/carousel/timer.js +19 -0
  18. package/lib/check/check.d.ts +1 -0
  19. package/lib/check/check.js +117 -0
  20. package/lib/check/check.less_inline.js +4 -0
  21. package/lib/check/checkbox.js +18 -2
  22. package/lib/{checkbox-DhGHJXwI.js → check/checkbox.less_inline.js} +2 -14
  23. package/lib/check/checkbox_group.js +1 -1
  24. package/lib/check/index.d.ts +1 -0
  25. package/lib/{check-DFlwStH9.js → check/index.js} +10 -9
  26. package/lib/check/index.less_inline.js +4 -0
  27. package/lib/check/radio.js +15 -2
  28. package/lib/{radio-C9NPQWGI.js → check/radio.less_inline.js} +2 -11
  29. package/lib/check/radio_group.js +1 -1
  30. package/lib/collapse/index.js +103 -2
  31. package/lib/collapse/index.less_inline.js +4 -0
  32. package/lib/collapse/item.d.ts +1 -0
  33. package/lib/collapse/item.js +118 -2
  34. package/lib/collapse/item.less_inline.js +4 -0
  35. package/lib/collapse/types.d.ts +1 -0
  36. package/lib/color_picker/index.js +42 -2
  37. package/lib/color_picker/index.less_inline.js +4 -0
  38. package/lib/date_picker/index.js +100 -3
  39. package/lib/date_picker/index.less_inline.js +4 -0
  40. package/lib/date_picker_ori/index.js +121 -2
  41. package/lib/date_picker_ori/index.less_inline.js +4 -0
  42. package/lib/description_panel/index.js +54 -2
  43. package/lib/description_panel/index.less_inline.js +4 -0
  44. package/lib/dialog/dialog_box.js +11 -11
  45. package/lib/dialog/dialog_container.css_inline.js +4 -0
  46. package/lib/dialog/dialog_container.d.ts +1 -1
  47. package/lib/dialog/dialog_container.js +156 -2
  48. package/lib/dialog/dialog_container_style.d.ts +2 -0
  49. package/lib/dialog/dialog_container_style.js +6 -0
  50. package/lib/dialog/index.js +1 -1
  51. package/lib/entries/base.d.ts +2 -0
  52. package/lib/entries/base.js +2 -0
  53. package/lib/entries/button.d.ts +2 -0
  54. package/lib/entries/button.js +6 -0
  55. package/lib/entries/calendar.d.ts +2 -0
  56. package/lib/entries/calendar.js +6 -0
  57. package/lib/entries/card.d.ts +2 -0
  58. package/lib/entries/card.js +6 -0
  59. package/lib/entries/carousel-item.d.ts +2 -0
  60. package/lib/entries/carousel-item.js +6 -0
  61. package/lib/entries/carousel.d.ts +5 -0
  62. package/lib/entries/carousel.js +6 -0
  63. package/lib/entries/checkbox-group.d.ts +3 -0
  64. package/lib/entries/checkbox-group.js +6 -0
  65. package/lib/entries/checkbox.d.ts +2 -0
  66. package/lib/entries/checkbox.js +6 -0
  67. package/lib/entries/collapse-item.d.ts +3 -0
  68. package/lib/entries/collapse-item.js +6 -0
  69. package/lib/entries/collapse.d.ts +3 -0
  70. package/lib/entries/collapse.js +6 -0
  71. package/lib/entries/color-picker.d.ts +3 -0
  72. package/lib/entries/color-picker.js +6 -0
  73. package/lib/entries/date-picker-ori.d.ts +2 -0
  74. package/lib/entries/date-picker-ori.js +6 -0
  75. package/lib/entries/date-picker.d.ts +9 -0
  76. package/lib/entries/date-picker.js +6 -0
  77. package/lib/entries/description-panel.d.ts +4 -0
  78. package/lib/entries/description-panel.js +6 -0
  79. package/lib/entries/dialog-box.d.ts +6 -0
  80. package/lib/entries/dialog-box.js +2 -0
  81. package/lib/entries/dialog-container.d.ts +4 -0
  82. package/lib/entries/dialog-container.js +6 -0
  83. package/lib/entries/dialog.d.ts +3 -0
  84. package/lib/entries/dialog.js +2 -0
  85. package/lib/entries/form-item.d.ts +2 -0
  86. package/lib/entries/form-item.js +6 -0
  87. package/lib/entries/form.d.ts +3 -0
  88. package/lib/entries/form.js +6 -0
  89. package/lib/entries/icon-arrow-down.d.ts +2 -0
  90. package/lib/entries/icon-arrow-down.js +6 -0
  91. package/lib/entries/icon-arrow-left.d.ts +2 -0
  92. package/lib/entries/icon-arrow-left.js +6 -0
  93. package/lib/entries/icon-arrow-right.d.ts +2 -0
  94. package/lib/entries/icon-arrow-right.js +6 -0
  95. package/lib/entries/icon-arrow-up.d.ts +2 -0
  96. package/lib/entries/icon-arrow-up.js +6 -0
  97. package/lib/entries/icon-base.d.ts +2 -0
  98. package/lib/entries/icon-base.js +6 -0
  99. package/lib/entries/icon-calendar.d.ts +2 -0
  100. package/lib/entries/icon-calendar.js +6 -0
  101. package/lib/entries/icon-caret-bottom.d.ts +2 -0
  102. package/lib/entries/icon-caret-bottom.js +6 -0
  103. package/lib/entries/icon-caret-top.d.ts +2 -0
  104. package/lib/entries/icon-caret-top.js +6 -0
  105. package/lib/entries/icon-close-filled.d.ts +2 -0
  106. package/lib/entries/icon-close-filled.js +6 -0
  107. package/lib/entries/icon-close.d.ts +2 -0
  108. package/lib/entries/icon-close.js +6 -0
  109. package/lib/entries/icon-copy.d.ts +2 -0
  110. package/lib/entries/icon-copy.js +6 -0
  111. package/lib/entries/icon-d-arrow-left.d.ts +2 -0
  112. package/lib/entries/icon-d-arrow-left.js +6 -0
  113. package/lib/entries/icon-d-arrow-right.d.ts +2 -0
  114. package/lib/entries/icon-d-arrow-right.js +6 -0
  115. package/lib/entries/icon-delete.d.ts +2 -0
  116. package/lib/entries/icon-delete.js +6 -0
  117. package/lib/entries/icon-eye-outline.d.ts +2 -0
  118. package/lib/entries/icon-eye-outline.js +6 -0
  119. package/lib/entries/icon-font-icon.d.ts +2 -0
  120. package/lib/entries/icon-font-icon.js +6 -0
  121. package/lib/entries/icon-info.d.ts +2 -0
  122. package/lib/entries/icon-info.js +6 -0
  123. package/lib/entries/icon-loading.d.ts +2 -0
  124. package/lib/entries/icon-loading.js +6 -0
  125. package/lib/entries/icon-minus.d.ts +2 -0
  126. package/lib/entries/icon-minus.js +6 -0
  127. package/lib/entries/icon-moon.d.ts +2 -0
  128. package/lib/entries/icon-moon.js +6 -0
  129. package/lib/entries/icon-more.d.ts +2 -0
  130. package/lib/entries/icon-more.js +6 -0
  131. package/lib/entries/icon-picture.d.ts +2 -0
  132. package/lib/entries/icon-picture.js +6 -0
  133. package/lib/entries/icon-plus.d.ts +2 -0
  134. package/lib/entries/icon-plus.js +6 -0
  135. package/lib/entries/icon-reduction.d.ts +2 -0
  136. package/lib/entries/icon-reduction.js +6 -0
  137. package/lib/entries/icon-refresh-left.d.ts +2 -0
  138. package/lib/entries/icon-refresh-left.js +6 -0
  139. package/lib/entries/icon-refresh-right.d.ts +2 -0
  140. package/lib/entries/icon-refresh-right.js +6 -0
  141. package/lib/entries/icon-refresh.d.ts +2 -0
  142. package/lib/entries/icon-refresh.js +6 -0
  143. package/lib/entries/icon-search.d.ts +2 -0
  144. package/lib/entries/icon-search.js +6 -0
  145. package/lib/entries/icon-select.d.ts +2 -0
  146. package/lib/entries/icon-select.js +6 -0
  147. package/lib/entries/icon-sort.d.ts +2 -0
  148. package/lib/entries/icon-sort.js +6 -0
  149. package/lib/entries/icon-success.d.ts +2 -0
  150. package/lib/entries/icon-success.js +6 -0
  151. package/lib/entries/icon-sun.d.ts +2 -0
  152. package/lib/entries/icon-sun.js +6 -0
  153. package/lib/entries/icon-theme-default.d.ts +2 -0
  154. package/lib/entries/icon-theme-default.js +6 -0
  155. package/lib/entries/icon-warn.d.ts +2 -0
  156. package/lib/entries/icon-warn.js +6 -0
  157. package/lib/entries/icon-zoom-in.d.ts +2 -0
  158. package/lib/entries/icon-zoom-in.js +6 -0
  159. package/lib/entries/icon-zoom-out.d.ts +2 -0
  160. package/lib/entries/icon-zoom-out.js +6 -0
  161. package/lib/entries/image-preview.d.ts +10 -0
  162. package/lib/entries/image-preview.js +6 -0
  163. package/lib/entries/image.d.ts +2 -0
  164. package/lib/entries/image.js +6 -0
  165. package/lib/entries/input-number.d.ts +2 -0
  166. package/lib/entries/input-number.js +6 -0
  167. package/lib/entries/input.d.ts +2 -0
  168. package/lib/entries/input.js +6 -0
  169. package/lib/entries/list.d.ts +3 -0
  170. package/lib/entries/list.js +6 -0
  171. package/lib/entries/loading.d.ts +2 -0
  172. package/lib/entries/loading.js +2 -0
  173. package/lib/entries/mask.d.ts +2 -0
  174. package/lib/entries/mask.js +6 -0
  175. package/lib/entries/md-input.d.ts +2 -0
  176. package/lib/entries/md-input.js +6 -0
  177. package/lib/entries/menu.d.ts +3 -0
  178. package/lib/entries/menu.js +6 -0
  179. package/lib/entries/message.d.ts +6 -0
  180. package/lib/entries/message.js +2 -0
  181. package/lib/entries/modal-box.d.ts +6 -0
  182. package/lib/entries/modal-box.js +2 -0
  183. package/lib/entries/modal.d.ts +4 -0
  184. package/lib/entries/modal.js +6 -0
  185. package/lib/entries/notification.d.ts +7 -0
  186. package/lib/entries/notification.js +6 -0
  187. package/lib/entries/page-header.d.ts +4 -0
  188. package/lib/entries/page-header.js +6 -0
  189. package/lib/entries/pagination.d.ts +9 -0
  190. package/lib/entries/pagination.js +6 -0
  191. package/lib/entries/polygon.d.ts +2 -0
  192. package/lib/entries/polygon.js +6 -0
  193. package/lib/entries/popconfirm.d.ts +3 -0
  194. package/lib/entries/popconfirm.js +2 -0
  195. package/lib/entries/popover.d.ts +1 -0
  196. package/lib/entries/popover.js +2 -0
  197. package/lib/entries/qrcode.d.ts +2 -0
  198. package/lib/entries/qrcode.js +6 -0
  199. package/lib/entries/radio-group.d.ts +3 -0
  200. package/lib/entries/radio-group.js +6 -0
  201. package/lib/entries/radio.d.ts +2 -0
  202. package/lib/entries/radio.js +6 -0
  203. package/lib/entries/select-ori.d.ts +2 -0
  204. package/lib/entries/select-ori.js +6 -0
  205. package/lib/entries/select.d.ts +4 -0
  206. package/lib/entries/select.js +6 -0
  207. package/lib/entries/space.d.ts +2 -0
  208. package/lib/entries/space.js +6 -0
  209. package/lib/entries/switch.d.ts +2 -0
  210. package/lib/entries/switch.js +6 -0
  211. package/lib/entries/tabbar-item.d.ts +2 -0
  212. package/lib/entries/tabbar-item.js +6 -0
  213. package/lib/entries/tabbar.d.ts +3 -0
  214. package/lib/entries/tabbar.js +6 -0
  215. package/lib/entries/table.d.ts +3 -0
  216. package/lib/entries/table.js +6 -0
  217. package/lib/entries/tabs.d.ts +3 -0
  218. package/lib/entries/tabs.js +2 -0
  219. package/lib/entries/tag.d.ts +2 -0
  220. package/lib/entries/tag.js +6 -0
  221. package/lib/entries/theme-color.d.ts +3 -0
  222. package/lib/entries/theme-color.js +6 -0
  223. package/lib/entries/theme.d.ts +9 -0
  224. package/lib/entries/theme.js +6 -0
  225. package/lib/entries/transition.d.ts +1 -0
  226. package/lib/entries/transition.js +2 -0
  227. package/lib/entries/upload.d.ts +3 -0
  228. package/lib/entries/upload.js +6 -0
  229. package/lib/entries/utils.d.ts +1 -0
  230. package/lib/entries/utils.js +2 -0
  231. package/lib/form/form_inner.d.ts +1 -0
  232. package/lib/{form_inner-Cnwb6f_Q.js → form/form_inner.js} +9 -9
  233. package/lib/form/form_item.d.ts +2 -1
  234. package/lib/form/form_item.js +148 -2
  235. package/lib/form/form_item.less_inline.js +4 -0
  236. package/lib/form/index.d.ts +3 -2
  237. package/lib/form/index.js +191 -2
  238. package/lib/form/index.less_inline.js +4 -0
  239. package/lib/icon/arrow_down.js +1 -1
  240. package/lib/icon/arrow_left.js +1 -1
  241. package/lib/icon/arrow_right.js +1 -1
  242. package/lib/icon/arrow_up.js +1 -1
  243. package/lib/icon/base.d.ts +2 -1
  244. package/lib/icon/base.js +63 -2
  245. package/lib/icon/calendar.js +1 -1
  246. package/lib/icon/caret_bottom.js +1 -1
  247. package/lib/icon/caret_top.js +1 -1
  248. package/lib/icon/close.js +1 -1
  249. package/lib/icon/close_filled.js +1 -1
  250. package/lib/icon/copy.d.ts +6 -0
  251. package/lib/icon/copy.js +13 -0
  252. package/lib/icon/d_arrow_left.js +1 -1
  253. package/lib/icon/d_arrow_right.js +1 -1
  254. package/lib/icon/delete.d.ts +5 -0
  255. package/lib/icon/delete.js +10 -0
  256. package/lib/icon/eye_outline.d.ts +6 -0
  257. package/lib/icon/eye_outline.js +13 -0
  258. package/lib/icon/font_icon.js +1 -1
  259. package/lib/icon/icon_style.d.ts +2 -0
  260. package/lib/icon/icon_style.js +6 -0
  261. package/lib/icon/index.less_inline.js +4 -0
  262. package/lib/icon/info.js +1 -1
  263. package/lib/icon/loading.js +1 -1
  264. package/lib/icon/minus.d.ts +5 -0
  265. package/lib/icon/minus.js +10 -0
  266. package/lib/icon/moon.js +1 -1
  267. package/lib/icon/more.js +1 -1
  268. package/lib/icon/picture.d.ts +5 -0
  269. package/lib/icon/picture.js +10 -0
  270. package/lib/icon/plus.d.ts +5 -0
  271. package/lib/icon/plus.js +10 -0
  272. package/lib/icon/reduction.js +1 -1
  273. package/lib/icon/refresh.js +1 -1
  274. package/lib/icon/refresh_left.js +1 -1
  275. package/lib/icon/refresh_right.js +1 -1
  276. package/lib/icon/search.js +1 -1
  277. package/lib/icon/select.js +1 -1
  278. package/lib/icon/sort.js +1 -1
  279. package/lib/icon/success.js +1 -1
  280. package/lib/icon/sun.js +1 -1
  281. package/lib/icon/theme_default.js +1 -1
  282. package/lib/icon/warn.js +1 -1
  283. package/lib/icon/zoom_in.js +1 -1
  284. package/lib/icon/zoom_out.js +1 -1
  285. package/lib/image/image_preview.js +91 -2
  286. package/lib/image/image_preview.less_inline.js +4 -0
  287. package/lib/image/index.js +163 -2
  288. package/lib/image/index.less_inline.js +4 -0
  289. package/lib/index.d.ts +14 -0
  290. package/lib/index.js +75 -65
  291. package/lib/input/index.js +4 -4
  292. package/lib/{input-DUBlLEXS.js → input/index.less_inline.js} +1 -1
  293. package/lib/{input_inner-x4GfLGjj.js → input/input_inner.less_inline.js} +1 -1
  294. package/lib/input_number/index.d.ts +59 -0
  295. package/lib/input_number/index.js +203 -0
  296. package/lib/input_number/index.less_inline.js +4 -0
  297. package/lib/input_number/style.d.ts +2 -0
  298. package/lib/input_number/style.js +6 -0
  299. package/lib/list/index.js +52 -2
  300. package/lib/list/index.less_inline.js +4 -0
  301. package/lib/loading/index.js +1 -1
  302. package/lib/mask/index.d.ts +1 -1
  303. package/lib/mask/index.js +109 -2
  304. package/lib/mask/index.less_inline.js +4 -0
  305. package/lib/md_input/index.js +59 -2
  306. package/lib/md_input/index.less_inline.js +4 -0
  307. package/lib/menu/index.js +275 -2
  308. package/lib/menu/index.less_inline.js +4 -0
  309. package/lib/message/index.js +1 -1
  310. package/lib/modal/index.js +199 -2
  311. package/lib/modal/index.less_inline.js +4 -0
  312. package/lib/modal/modal_box.d.ts +22 -0
  313. package/lib/modal/modal_box.js +21 -22
  314. package/lib/notification/index.d.ts +212 -0
  315. package/lib/notification/index.js +380 -0
  316. package/lib/notification/index.less_inline.js +4 -0
  317. package/lib/notification/placement.d.ts +49 -0
  318. package/lib/notification/placement.js +48 -0
  319. package/lib/notification/style.d.ts +2 -0
  320. package/lib/notification/style.js +6 -0
  321. package/lib/page_header/index.js +100 -2
  322. package/lib/page_header/index.less_inline.js +4 -0
  323. package/lib/pagination/index.js +214 -2
  324. package/lib/pagination/index.less_inline.js +4 -0
  325. package/lib/polygon/index.js +21 -2
  326. package/lib/{polygon-DhhovlrG.js → polygon/index.less_inline.js} +2 -18
  327. package/lib/qrcode/index.js +65 -2
  328. package/lib/qrcode/index.less_inline.js +4 -0
  329. package/lib/select/index.js +355 -3
  330. package/lib/select/index.less_inline.js +4 -0
  331. package/lib/select_ori/index.js +58 -2
  332. package/lib/select_ori/index.less_inline.js +4 -0
  333. package/lib/space/index.js +40 -2
  334. package/lib/space/index.less_inline.js +4 -0
  335. package/lib/{animation-Bo4jbSGK.js → styles/animation/index.css_inline.js} +2 -3
  336. package/lib/styles/animation/index.js +6 -2
  337. package/lib/{mask-Ox6CoyFB.js → styles/mask/index.css_inline.js} +2 -3
  338. package/lib/styles/mask/index.js +6 -2
  339. package/lib/switch/index.js +51 -2
  340. package/lib/switch/index.less_inline.js +4 -0
  341. package/lib/tabbar/index.js +97 -2
  342. package/lib/tabbar/index.less_inline.js +4 -0
  343. package/lib/tabbar/item.js +61 -2
  344. package/lib/tabbar/item.less_inline.js +4 -0
  345. package/lib/table/index.js +234 -2
  346. package/lib/table/index.less_inline.js +4 -0
  347. package/lib/tabs/index.js +1 -1
  348. package/lib/tag/index.js +75 -2
  349. package/lib/tag/index.less_inline.js +4 -0
  350. package/lib/theme/index.js +86 -2
  351. package/lib/theme/index.less_inline.js +4 -0
  352. package/lib/theme/theme_color.js +1 -1
  353. package/lib/upload/index.d.ts +170 -0
  354. package/lib/upload/index.js +848 -0
  355. package/lib/upload/index.less_inline.js +4 -0
  356. package/lib/upload/style.d.ts +2 -0
  357. package/lib/upload/style.js +6 -0
  358. package/lib/utils/context_provide.d.ts +1 -0
  359. package/lib/utils/context_provide.js +1 -1
  360. package/lib/utils/event.d.ts +30 -0
  361. package/lib/utils/index.d.ts +3 -0
  362. package/lib/utils/index.js +1 -1
  363. package/lib/utils/popover.js +1 -1
  364. package/lib/utils/signal_types.d.ts +5 -0
  365. package/lib/utils/transition.d.ts +28 -0
  366. package/lib/utils/transition.js +1 -1
  367. package/package.json +39 -18
  368. package/styles/animation.css +2 -2
  369. package/styles/container.css +8 -8
  370. package/styles/datepicker.css +9 -9
  371. package/styles/dialog.css +7 -7
  372. package/styles/loading.css +17 -17
  373. package/styles/message.css +9 -9
  374. package/styles/modal_box.css +3 -3
  375. package/styles/notification.css +17 -0
  376. package/styles/popover.css +11 -14
  377. package/styles/reset.css +13 -15
  378. package/styles/scrollbar.css +5 -5
  379. package/styles/select.css +6 -6
  380. package/styles/tabs.css +3 -3
  381. package/styles/theme-coral.css +35 -0
  382. package/styles/theme-jade.css +35 -0
  383. package/styles/theme-tangerine.css +35 -0
  384. package/styles/transition.css +1 -1
  385. package/styles/vars.css +41 -7
  386. package/lib/base-Dyj1rzaK.js +0 -61
  387. package/lib/calendar-CvlUsN6w.js +0 -146
  388. package/lib/card-3DM-lJQV.js +0 -63
  389. package/lib/carousel-DvkZ1YXq.js +0 -276
  390. package/lib/check-doQ2ZpQj.js +0 -117
  391. package/lib/collapse-B6-Rn05A.js +0 -102
  392. package/lib/color_picker-0a-IGZY9.js +0 -41
  393. package/lib/date_picker-BDN2PAz5.js +0 -99
  394. package/lib/date_picker_ori-BXFs1eET.js +0 -120
  395. package/lib/description_panel--AKXBzLL.js +0 -53
  396. package/lib/dialog_container-BNPQ9n0V.js +0 -145
  397. package/lib/esm-DAha108i.js +0 -270
  398. package/lib/form-DJxvBiLy.js +0 -190
  399. package/lib/form_item-BqPMRABd.js +0 -147
  400. package/lib/image-CVQai6NX.js +0 -162
  401. package/lib/image_preview-DfQAKSJH.js +0 -90
  402. package/lib/item-CQ2Sknbz.js +0 -14
  403. package/lib/item-DI6mQXtB.js +0 -117
  404. package/lib/item-D_ZOPXuE.js +0 -60
  405. package/lib/list-MG8PRzos.js +0 -51
  406. package/lib/mask-Bx-yNIJv.js +0 -108
  407. package/lib/md_input-BX3bujz8.js +0 -58
  408. package/lib/menu-DKscK5mw.js +0 -274
  409. package/lib/modal-Cwi3qlEf.js +0 -198
  410. package/lib/page_header-ujV3pncE.js +0 -99
  411. package/lib/pagination-aRbGd3Rf.js +0 -213
  412. package/lib/qrcode-Dip8uLSA.js +0 -64
  413. package/lib/select-BZMDj5VE.js +0 -354
  414. package/lib/select_ori-C7sUZxen.js +0 -57
  415. package/lib/space-CKuTk0YB.js +0 -39
  416. package/lib/switch-wh2-ivty.js +0 -50
  417. package/lib/tabbar-CBXK-_AV.js +0 -96
  418. package/lib/table-BQxMD2Ae.js +0 -233
  419. package/lib/tag-Di1z9PoZ.js +0 -74
  420. package/lib/theme-CLbBS-in.js +0 -85
  421. package/styles/dark.css +0 -13
@@ -0,0 +1,2 @@
1
+ import e from "../tabs/index.js";
2
+ export { e as default };
@@ -0,0 +1,2 @@
1
+ export { default } from "../tag";
2
+ export * from "../tag";
@@ -0,0 +1,6 @@
1
+ import { regist as e } from "../utils/index.js";
2
+ import t from "../tag/index.js";
3
+ //#region src/components/entries/tag.ts
4
+ e(t);
5
+ //#endregion
6
+ export { t as default };
@@ -0,0 +1,3 @@
1
+ import "./color-picker";
2
+ export { default } from "../theme/theme_color";
3
+ export * from "../theme/theme_color";
@@ -0,0 +1,6 @@
1
+ import { regist as e } from "../utils/index.js";
2
+ import t from "../theme/theme_color.js";
3
+ //#region src/components/entries/theme-color.ts
4
+ e(t);
5
+ //#endregion
6
+ export { t as default };
@@ -0,0 +1,9 @@
1
+ import "./button";
2
+ import "./select-ori";
3
+ import "./switch";
4
+ import "./radio-group";
5
+ import "./icon-theme-default";
6
+ import "./icon-sun";
7
+ import "./icon-moon";
8
+ export { default } from "../theme";
9
+ export * from "../theme";
@@ -0,0 +1,6 @@
1
+ import { regist as e } from "../utils/index.js";
2
+ import t from "../theme/index.js";
3
+ //#region src/components/entries/theme.ts
4
+ e(t);
5
+ //#endregion
6
+ export { t as default };
@@ -0,0 +1 @@
1
+ export * from "../utils/transition";
@@ -0,0 +1,2 @@
1
+ import { createTransition as e } from "../utils/transition.js";
2
+ export { e as createTransition };
@@ -0,0 +1,3 @@
1
+ import "./icon-close";
2
+ export { default } from "../upload";
3
+ export * from "../upload";
@@ -0,0 +1,6 @@
1
+ import { regist as e } from "../utils/index.js";
2
+ import t, { defaultUploadResponseParser as n } from "../upload/index.js";
3
+ //#region src/components/entries/upload.ts
4
+ e(t);
5
+ //#endregion
6
+ export { t as default, n as defaultUploadResponseParser };
@@ -0,0 +1 @@
1
+ export * from "../utils";
@@ -0,0 +1,2 @@
1
+ import { initAttr as e, kebabToCamel as t, parseAttrValue as n, regist as r, setAttrs as i, stopSignal as a, tagAttr as o, tagAttrs as s, unitNumberStr as c, useId as l } from "../utils/index.js";
2
+ export { e as initAttr, t as kebabToCamel, n as parseAttrValue, r as regist, i as setAttrs, a as stopSignal, o as tagAttr, s as tagAttrs, c as unitNumberStr, l as useId };
@@ -1,3 +1,4 @@
1
+ import type { Signal } from "../utils/signal_types";
1
2
  import BaseComponent from "../base";
2
3
  import type { FormItemSignal, FormSignal } from "./types";
3
4
  export default class FormInner<T = Record<string, any>> extends BaseComponent<T> {
@@ -1,7 +1,7 @@
1
- import e from "./base.js";
2
- import { parseAttrValue as t, stopSignal as n } from "./utils/index.js";
3
- import { t as r } from "./esm-DAha108i.js";
4
- import { getAttr as i } from "ph-utils/browser";
1
+ import e from "../base.js";
2
+ import { parseAttrValue as t, stopSignal as n } from "../utils/index.js";
3
+ import { getAttr as r } from "utilane/browser";
4
+ import { effect as i } from "alien-signals";
5
5
  //#region src/components/form/form_inner.ts
6
6
  var a = class extends e {
7
7
  _disabled = !1;
@@ -64,17 +64,17 @@ var a = class extends e {
64
64
  }
65
65
  attributeChange(e, t, n) {}
66
66
  connectedCallback() {
67
- this.emitInject("form-context-request", this.formInject), this.emitInject("form-item-context-request", this.formItemInject), super.connectedCallback(), this._signalStop = r(() => {
67
+ this.emitInject("form-context-request", this.formInject), this.emitInject("form-item-context-request", this.formItemInject), super.connectedCallback(), this._signalStop = i(() => {
68
68
  let e = this.formItemContext ? this.formItemContext() : null, t = this.formContext ? this.formContext() : null;
69
- if (!this.name && e && e.prop && this.setAttribute("name", e.prop), !i(this, "inner-block")) {
69
+ if (!this.name && e && e.prop && this.setAttribute("name", e.prop), !r(this, "inner-block")) {
70
70
  let n = e?.innerBlock || t?.innerBlock;
71
71
  n != null && this.innerBlockChange(n);
72
72
  }
73
- }), this._value ?? (this._resetValue = "", this._firstPushValue && this.pushValueChange()), this._errorSignalStop = r(() => {
73
+ }), this._value ?? (this._resetValue = "", this._firstPushValue && this.pushValueChange()), this._errorSignalStop = i(() => {
74
74
  if (!this.name) return;
75
75
  let e = (this.formErrors ? this.formErrors() : {})[this.name];
76
76
  this.validResult(e);
77
- }), this._resetSignalStop = r(() => {
77
+ }), this._resetSignalStop = i(() => {
78
78
  (this.resetCtx ? this.resetCtx() : 0) > 0 && this.reset();
79
79
  });
80
80
  }
@@ -121,4 +121,4 @@ var a = class extends e {
121
121
  }
122
122
  };
123
123
  //#endregion
124
- export { a as t };
124
+ export { a as default };
@@ -1,4 +1,5 @@
1
- import type { RuleType } from "ph-utils";
1
+ import type { Signal } from "../utils/signal_types";
2
+ import type { RuleType } from "utilane";
2
3
  import ContextProvide from "../utils/context_provide";
3
4
  import type { FormItemSignal } from "./types";
4
5
  type FormItemState = {
@@ -1,2 +1,148 @@
1
- import { t as e } from "../form_item-BqPMRABd.js";
2
- export { e as default };
1
+ import { kebabToCamel as e, parseAttrValue as t, stopSignal as n, unitNumberStr as r } from "../utils/index.js";
2
+ import i from "./form_item.less_inline.js";
3
+ import a from "../utils/context_provide.js";
4
+ import { $$ as o, $one as s, addClass as c, removeClass as l } from "utilane/browser";
5
+ import { effect as u, signal as d } from "alien-signals";
6
+ //#region src/components/form/form_item.ts
7
+ var f = class extends a {
8
+ static baseName = "form-item";
9
+ formErrors;
10
+ _errorSignalStop;
11
+ constructor() {
12
+ super(), this.version = 2, this.contextEventName = "form-item-context-request", this._state = {
13
+ labelPosition: "right",
14
+ required: !1
15
+ }, this.context = d({ innerBlock: !1 });
16
+ }
17
+ static get observedAttributes() {
18
+ return [
19
+ "error",
20
+ "label",
21
+ "required",
22
+ "inner-block",
23
+ "prop",
24
+ "label-position",
25
+ "verify",
26
+ "pattern",
27
+ "validity",
28
+ "label-width",
29
+ "label-height"
30
+ ];
31
+ }
32
+ attributeChanged(n, i, a) {
33
+ switch (n) {
34
+ case "error":
35
+ case "label":
36
+ case "verify":
37
+ case "pattern":
38
+ case "validity":
39
+ this._state[n] = a;
40
+ break;
41
+ case "label-position":
42
+ this._state.labelPosition = a;
43
+ break;
44
+ case "inner-block":
45
+ let i = t(a, !1, n);
46
+ this.context({ innerBlock: i });
47
+ break;
48
+ case "required":
49
+ let o = t(a, !1, n);
50
+ this._state.required = o;
51
+ break;
52
+ case "prop":
53
+ this._state.prop = a, this.context({
54
+ ...this.context(),
55
+ prop: a
56
+ });
57
+ break;
58
+ case "label-width":
59
+ case "label-height": this._state[e(n)] = r(a);
60
+ }
61
+ }
62
+ updateDOM(e) {
63
+ e.has("required") && this._updateRequired(), e.has("label") && this._updateLabel(), e.has("error") && this._updateError(), e.has("label-width") && (this._state.labelWidth ? this.style.setProperty("--l-form-label-width", this._state.labelWidth) : this.style.removeProperty("--l-form-label-width")), e.has("label-height") && (this._state.labelHeight ? this.style.setProperty("--l-form-label-height", this._state.labelHeight) : this.style.removeProperty("--l-form-label-height"));
64
+ }
65
+ connectedCallback() {
66
+ super.connectedCallback(), this._updateRequired(), this._parseSchema(), this.emitInject("form-context-request", ((e, t) => {
67
+ this.formErrors = t;
68
+ })), this._errorSignalStop = u(() => {
69
+ let e = this.context().prop, t = this.formErrors ? this.formErrors() : null;
70
+ e && t && (this._state.error = t[e], this._updateError());
71
+ });
72
+ }
73
+ beforeDestroy() {
74
+ this._errorSignalStop = n(this._errorSignalStop);
75
+ }
76
+ setRules(e) {
77
+ let t = this._state.prop;
78
+ if (t) {
79
+ let n = {
80
+ ...e,
81
+ key: t
82
+ };
83
+ this._updateRules(n);
84
+ }
85
+ }
86
+ render_v2() {
87
+ return {
88
+ template: this.render(),
89
+ style: [i]
90
+ };
91
+ }
92
+ render() {
93
+ this.classList.add(`l-form-item--${this._state.labelPosition}`);
94
+ let e = document.createDocumentFragment();
95
+ this._state.label != null && e.appendChild(o("label", {
96
+ class: "l-form-item__label",
97
+ textContent: this._state.label
98
+ }));
99
+ let t = o("div", { class: "l-form-item__content" }), n = o("slot");
100
+ return t.appendChild(n), this._state.error && t.appendChild(o("div", {
101
+ class: "l-form-item__error",
102
+ textContent: this._state.error
103
+ })), e.appendChild(t), e;
104
+ }
105
+ _updateRequired() {
106
+ this._state.required ? c(this, "is-required") : l(this, "is-required");
107
+ }
108
+ _parseSchema() {
109
+ let e = this.context().prop;
110
+ if (e) {
111
+ let t = [], n = this._state.verify;
112
+ n && (t = n.split("|"));
113
+ let r = this._state.pattern;
114
+ r && t.push(new RegExp(r));
115
+ let i = {
116
+ key: e,
117
+ required: this._state.required,
118
+ message: this._state.validity,
119
+ rules: t
120
+ };
121
+ this._updateRules(i);
122
+ }
123
+ }
124
+ _updateError() {
125
+ if (this._state.error ? c(this, "is-error") : l(this, "is-error"), !this.rendered) return;
126
+ let e = s(".l-form-item__error", this.root);
127
+ if (e) this._state.error ? e.textContent = this._state.error : e.remove();
128
+ else if (this._state.error) {
129
+ e = document.createElement("div"), e.className = "l-form-item__error", e.textContent = this._state.error;
130
+ let t = s(".l-form-item__content", this.root);
131
+ t && t.appendChild(e);
132
+ }
133
+ }
134
+ _updateLabel() {
135
+ if (!this.rendered) return;
136
+ let e = s(".l-form-item__label", this.root);
137
+ e == null ? this._state.label != null && (e = document.createElement("div"), e.className = "l-form-item__label", e.textContent = this._state.label, this.root.prepend(e)) : this._state.label == null ? e.remove() : e.textContent = this._state.label;
138
+ }
139
+ _updateRules(e) {
140
+ this.emit("form-rule-change", {
141
+ bubbles: !0,
142
+ composed: !0,
143
+ detail: e
144
+ });
145
+ }
146
+ };
147
+ //#endregion
148
+ export { f as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/form/form_item.less?inline
2
+ var e = ":host{display:var(--l-form-item-display,flex);font-size:14px}.l-form-item__label{text-align:var(--l-form-label-align,right);width:var(--l-form-label-width,auto);height:var(--l-form-label-height,var(--l-form-control-height,32px));line-height:var(--l-form-label-height,var(--l-form-control-height,32px));color:#606266;box-sizing:border-box;padding:0 10px 0 0;display:inline-block}.l-form-item__label:empty{display:var(--l-form-label-empty-display,inline-block)}:host(.is-required) .l-form-item__label:before{content:\"*\";color:var(--l-warning-color,#f56c6c);vertical-align:middle;margin-right:4px}.l-form-item__content{flex:1;align-items:center;display:flex;position:relative}.l-form-item__error{color:var(--nt-error-color,#ed3f13);padding-top:3px;font-size:12px;line-height:1;position:absolute;top:100%;left:0}:host(.l-form-item--left){--l-form-label-align:left}:host(.l-form-item--top){--l-form-item-display:grid;--l-form-label-align:left;--l-form-label-empty-display:none;grid-template-columns:1fr}";
3
+ //#endregion
4
+ export { e as default };
@@ -1,5 +1,6 @@
1
- import { Validator } from "ph-utils";
2
- import type { SchemaType } from "ph-utils";
1
+ import type { Signal } from "../utils/signal_types";
2
+ import { Validator } from "utilane";
3
+ import type { SchemaType } from "utilane";
3
4
  import type { FormSignal } from "./types";
4
5
  import BaseComponent from "../base";
5
6
  interface FormState {
package/lib/form/index.js CHANGED
@@ -1,2 +1,191 @@
1
- import { t as e } from "../form-DJxvBiLy.js";
2
- export { e as default };
1
+ import e from "../base.js";
2
+ import { kebabToCamel as t, parseAttrValue as n, unitNumberStr as r } from "../utils/index.js";
3
+ import i from "./index.less_inline.js";
4
+ import { $one as a, formatClass as o, off as s, on as c } from "utilane/browser";
5
+ import { Validator as l } from "utilane";
6
+ import { signal as u } from "alien-signals";
7
+ //#region src/components/form/index.ts
8
+ var d = class extends e {
9
+ static baseName = "form";
10
+ validator;
11
+ _data;
12
+ context;
13
+ errors;
14
+ resetCtx;
15
+ constructor() {
16
+ super(), this.version = 2, this._state = {
17
+ inline: !1,
18
+ labelPosition: "right",
19
+ labelWidth: "80px",
20
+ novalidate: !1,
21
+ emitError: !1
22
+ }, this.validator = new l([]), this.context = u({ innerBlock: !1 }), this.errors = u({}), this.resetCtx = u(0);
23
+ }
24
+ static get observedAttributes() {
25
+ return [
26
+ "label-position",
27
+ "inner-block",
28
+ "inline",
29
+ "novalidate",
30
+ "label-width",
31
+ "label-height",
32
+ "emit-error"
33
+ ];
34
+ }
35
+ attributeChanged(e, i, a) {
36
+ switch (e) {
37
+ case "label-position":
38
+ this._state.labelPosition = a;
39
+ break;
40
+ case "inner-block":
41
+ let i = n(a, !1, e);
42
+ this.context({ innerBlock: i });
43
+ break;
44
+ case "label-width":
45
+ case "label-height":
46
+ this._state[t(e)] = r(a);
47
+ break;
48
+ default:
49
+ let o = n(a, !1, e);
50
+ this._state[t(e)] = o;
51
+ }
52
+ }
53
+ updateDOM(e) {
54
+ if (e.has("label-position") || e.has("inline")) {
55
+ let e = a("form", this.root);
56
+ e && (e.className = o([
57
+ "l-form",
58
+ this._state.inline ? "l-form-inline" : void 0,
59
+ `l-form--${this._state.labelPosition}`
60
+ ]));
61
+ }
62
+ e.has("label-width") && (this._state.labelWidth ? this.style.setProperty("--l-form-label-width", this._state.labelWidth) : this.style.removeProperty("--l-form-label-width")), e.has("label-height") && (this._state.labelHeight ? this.style.setProperty("--l-form-label-height", this._state.labelHeight) : this.style.removeProperty("--l-form-label-height"));
63
+ }
64
+ connectedCallback() {
65
+ c(this, "form-context-request", this._provide), super.connectedCallback();
66
+ }
67
+ afterInit() {
68
+ c(this, "form-rule-change", this.ruleChange), c(this, "form-value-change", this._valueChange), c(this, "form-action", this._formAction);
69
+ }
70
+ disconnectedCallback() {
71
+ this.validator = void 0, s(this, "form-rule-change", this.ruleChange), s(this, "form-value-change", this._valueChange), s(this, "form-context-request", this._provide), s(this, "form-action", this._formAction), super.disconnectedCallback();
72
+ }
73
+ render_v2() {
74
+ return {
75
+ style: [i],
76
+ template: this.render()
77
+ };
78
+ }
79
+ render() {
80
+ let e = o([
81
+ "l-form",
82
+ this._state.inline ? "l-form-inline" : void 0,
83
+ `l-form--${this._state.labelPosition}`
84
+ ]);
85
+ return this._state.labelWidth && this.style.setProperty("--l-form-label-width", this._state.labelWidth), `<form class="${e}"><slot></slot></form>`;
86
+ }
87
+ ruleChange = (e) => {
88
+ e.stopPropagation(), this.validator.addSchema(e.detail);
89
+ };
90
+ addSchemas(e) {
91
+ this.validator.addSchemas(e);
92
+ }
93
+ setSchemas(e) {
94
+ this.validator.setSchemas(e);
95
+ }
96
+ setSchema(e) {
97
+ this.validator.setSchema(e);
98
+ }
99
+ addSchema(e) {
100
+ this.validator.addSchema(e);
101
+ }
102
+ _provide(e) {
103
+ let { context: t, callback: n } = e.detail;
104
+ t === "form-context-request" && n(this.context, this.errors, this.resetCtx);
105
+ }
106
+ _formAction = (e) => {
107
+ e.detail === "submit" ? this.submit() : this.reset();
108
+ };
109
+ _valueChange = (e) => {
110
+ let { name: t, value: n, valid: r } = e.detail;
111
+ if (!t) return;
112
+ this._data ??= {};
113
+ let i = Object.hasOwn(this._data, t);
114
+ if (this._data[t] = n, !this._state.novalidate && i && r) try {
115
+ let e = this.errors();
116
+ e[t] = void 0, this.setValidateErrors({ ...e });
117
+ } catch (e) {
118
+ this.setValidateErrors({
119
+ ...this.errors(),
120
+ ...e.detail
121
+ });
122
+ }
123
+ };
124
+ setValidateErrors(e, t = !0) {
125
+ this._state.emitError ? this.emit("validate-error", { detail: {
126
+ errors: e,
127
+ all: t
128
+ } }) : this.errors(e);
129
+ }
130
+ async validateField(e) {
131
+ let t = !1, n = {};
132
+ if (this._data != null) {
133
+ if (Array.isArray(e)) for (let r = 0, i = e.length; r < i; r++) {
134
+ let i = e[r];
135
+ try {
136
+ n[i] = void 0;
137
+ } catch (e) {
138
+ n[i] = e.detail, t = !0;
139
+ break;
140
+ }
141
+ }
142
+ else try {
143
+ n[e] = void 0;
144
+ } catch (r) {
145
+ n[e] = r.detail, t = !0;
146
+ }
147
+ if (t) {
148
+ let e = /* @__PURE__ */ Error("validate field error");
149
+ return e.detail = n, Promise.reject(e);
150
+ }
151
+ return Promise.resolve();
152
+ }
153
+ }
154
+ clearValidate() {
155
+ this.errors({});
156
+ }
157
+ reset() {
158
+ this.clearValidate();
159
+ let e = this.resetCtx();
160
+ this.resetCtx(e >= 100 ? 1 : e + 1);
161
+ }
162
+ submit() {
163
+ this._state.novalidate ? this.emit("submit", { detail: this.getData() }) : this.validate().then((e) => {
164
+ e.result ? this.emit("submit", { detail: this.getData() }) : this._state.emitError ? this.emit("validate-error", { detail: {
165
+ errors: e.errors,
166
+ all: !0
167
+ } }) : this.errors(e.errors);
168
+ });
169
+ }
170
+ validate() {
171
+ try {
172
+ return this.validator.validate(this._data || {}), Promise.resolve({
173
+ result: !0,
174
+ errors: {}
175
+ });
176
+ } catch (e) {
177
+ return Promise.resolve({
178
+ result: !1,
179
+ errors: e.detail
180
+ });
181
+ }
182
+ }
183
+ getData() {
184
+ return { ...this._data };
185
+ }
186
+ setErrors(e) {
187
+ this.errors(e);
188
+ }
189
+ };
190
+ //#endregion
191
+ export { d as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/form/index.less?inline
2
+ var e = ":host{display:block}.l-form{gap:var(--l-form-gap,20px);flex-flow:column;display:flex}.l-form-inline{gap:var(--l-form-gap,20px);flex-flow:wrap;display:flex}.l-form.l-form-inline{--l-form-item-display:flex}.l-form.l-form--left{--l-form-label-align:left}.l-form.l-form--top{--l-form-item-display:grid;--l-form-label-align:left;--l-form-label-empty-display:none;grid-template-columns:1fr}";
3
+ //#endregion
4
+ export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/arrow_down.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-down-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/arrow_left.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-left-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/arrow_right.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-right-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/arrow_up.ts
3
3
  var t = class extends e {
4
4
  static baseName = "arrow-up-icon";
@@ -7,6 +7,7 @@ export default class BaseIcon extends BaseComponent<ColorState> {
7
7
  static baseName: string;
8
8
  useLink: boolean;
9
9
  viewBox: string;
10
+ strokeIcon: boolean;
10
11
  constructor();
11
12
  static get observedAttributes(): string[] | null | undefined;
12
13
  protected attributeChanged(name: string, oldValue: string, newValue: string): void;
@@ -16,7 +17,7 @@ export default class BaseIcon extends BaseComponent<ColorState> {
16
17
  private _updateColor;
17
18
  render_v2(): {
18
19
  template: any;
19
- style: string;
20
+ styleSheets: CSSStyleSheet[];
20
21
  };
21
22
  renderChildren(): string;
22
23
  createEl(tagName: string): SVGElement;
package/lib/icon/base.js CHANGED
@@ -1,2 +1,63 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
2
- export { e as default };
1
+ import e from "../base.js";
2
+ import { unitNumberStr as t } from "../utils/index.js";
3
+ import n from "./icon_style.js";
4
+ //#region src/components/icon/base.ts
5
+ var r = class extends e {
6
+ static baseName = "base-icon";
7
+ useLink;
8
+ viewBox;
9
+ strokeIcon;
10
+ constructor() {
11
+ super(), this.useLink = !1, this.viewBox = "0 0 1024 1024", this.strokeIcon = !1, this.version = 2, this._state = {};
12
+ }
13
+ static get observedAttributes() {
14
+ return ["color", "size"];
15
+ }
16
+ attributeChanged(e, n, r) {
17
+ switch (e) {
18
+ case "color":
19
+ this._state.color = r;
20
+ break;
21
+ case "size": this._state.size = t(r);
22
+ }
23
+ }
24
+ connectedCallback() {
25
+ super.connectedCallback(), this._updateColor(), this._updateSize();
26
+ }
27
+ updateDOM(e) {
28
+ e.has("color") && this._updateColor(), e.has("size") && this._updateSize();
29
+ }
30
+ _updateSize() {
31
+ this._state.size ? this.style.setProperty("--l-icon-size", this._state.size) : this.style.removeProperty("--l-icon-size");
32
+ }
33
+ _updateColor() {
34
+ this._state.color ? this.style.setProperty("--l-icon-color", this._state.color) : this.style.removeProperty("--l-icon-color");
35
+ }
36
+ render_v2() {
37
+ let e = this.createEl("svg");
38
+ e.classList.add("l-icon"), this.strokeIcon && e.classList.add("l-stroke-icon"), this.useLink || e.setAttribute("viewBox", this.viewBox);
39
+ let t = this.renderChildren();
40
+ if (typeof t == "string") {
41
+ if (t === "") {
42
+ let t = this.children, n = [];
43
+ for (let e = 0, r = t.length; e < r; e++) {
44
+ let r = t[e];
45
+ n.push(r.outerHTML);
46
+ }
47
+ e.innerHTML = n.join("");
48
+ } else e.innerHTML = t;
49
+ } else e.append(t);
50
+ return {
51
+ template: e,
52
+ styleSheets: [n]
53
+ };
54
+ }
55
+ renderChildren() {
56
+ return "";
57
+ }
58
+ createEl(e) {
59
+ return document.createElementNS("http://www.w3.org/2000/svg", e);
60
+ }
61
+ };
62
+ //#endregion
63
+ export { r as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/calendar.ts
3
3
  var t = class extends e {
4
4
  static baseName = "calendar-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/caret_bottom.ts
3
3
  var t = class extends e {
4
4
  static baseName = "caret-bottom-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/caret_top.ts
3
3
  var t = class extends e {
4
4
  static baseName = "caret-top-icon";
package/lib/icon/close.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/close.ts
3
3
  var t = class extends e {
4
4
  static baseName = "close-icon";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../base-Dyj1rzaK.js";
1
+ import e from "./base.js";
2
2
  //#region src/components/icon/close_filled.ts
3
3
  var t = class extends e {
4
4
  static baseName = "close-filled-icon";
@@ -0,0 +1,6 @@
1
+ import BaseIcon from "./base";
2
+ export default class Close extends BaseIcon {
3
+ static baseName: string;
4
+ constructor();
5
+ renderChildren(): string;
6
+ }