@routa/ui-vue 0.1.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 (504) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/base.css +1 -0
  4. package/dist/autocomplete/AutoComplete.vue.d.ts +336 -0
  5. package/dist/autocomplete/index.d.ts +298 -0
  6. package/dist/autocomplete/index.js +4 -0
  7. package/dist/autocomplete/index.mjs +321 -0
  8. package/dist/autocomplete/types.d.ts +58 -0
  9. package/dist/avatar/Avatar.vue.d.ts +36 -0
  10. package/dist/avatar/AvatarGroup.vue.d.ts +7 -0
  11. package/dist/avatar/index.d.ts +7 -0
  12. package/dist/avatar/index.js +3 -0
  13. package/dist/avatar/index.mjs +192 -0
  14. package/dist/avatar/types.d.ts +111 -0
  15. package/dist/badge/Badge.vue.d.ts +25 -0
  16. package/dist/badge/index.d.ts +5 -0
  17. package/dist/badge/index.js +2 -0
  18. package/dist/badge/index.mjs +72 -0
  19. package/dist/badge/types.d.ts +86 -0
  20. package/dist/breadcrumb/Breadcrumb.vue.d.ts +38 -0
  21. package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +48 -0
  22. package/dist/breadcrumb/index.d.ts +7 -0
  23. package/dist/breadcrumb/index.js +2 -0
  24. package/dist/breadcrumb/index.mjs +87 -0
  25. package/dist/breadcrumb/types.d.ts +28 -0
  26. package/dist/button/Button.vue.d.ts +27 -0
  27. package/dist/button/index.d.ts +5 -0
  28. package/dist/button/index.js +2 -0
  29. package/dist/button/index.mjs +10 -0
  30. package/dist/button/types.d.ts +14 -0
  31. package/dist/card/Card.vue.d.ts +49 -0
  32. package/dist/card/index.d.ts +72 -0
  33. package/dist/card/index.js +2 -0
  34. package/dist/card/index.mjs +60 -0
  35. package/dist/card/types.d.ts +16 -0
  36. package/dist/carousel/Carousel.vue.d.ts +134 -0
  37. package/dist/carousel/CarouselItem.vue.d.ts +23 -0
  38. package/dist/carousel/index.d.ts +250 -0
  39. package/dist/carousel/index.js +2 -0
  40. package/dist/carousel/index.mjs +354 -0
  41. package/dist/carousel/types.d.ts +97 -0
  42. package/dist/cascader/Cascader.vue.d.ts +109 -0
  43. package/dist/cascader/CascaderPanel.vue.d.ts +55 -0
  44. package/dist/cascader/index.d.ts +110 -0
  45. package/dist/cascader/index.js +5 -0
  46. package/dist/cascader/index.mjs +370 -0
  47. package/dist/cascader/types.d.ts +54 -0
  48. package/dist/checkbox/Checkbox.vue.d.ts +99 -0
  49. package/dist/checkbox/CheckboxGroup.vue.d.ts +59 -0
  50. package/dist/checkbox/constants.d.ts +2 -0
  51. package/dist/checkbox/index.d.ts +9 -0
  52. package/dist/checkbox/index.js +2 -0
  53. package/dist/checkbox/index.mjs +70 -0
  54. package/dist/checkbox/types.d.ts +64 -0
  55. package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-BthtEkGw.mjs +170 -0
  56. package/dist/chunks/Button.vue_vue_type_script_setup_true_lang-Do1NtIFC.js +1 -0
  57. package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-DxecbRJE.js +1 -0
  58. package/dist/chunks/Checkbox.vue_vue_type_script_setup_true_lang-fOXXjwnz.mjs +289 -0
  59. package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-LQ-KuJ6a.mjs +57 -0
  60. package/dist/chunks/Icon.vue_vue_type_script_setup_true_lang-YDWguTmi.js +1 -0
  61. package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-8x2HE2Cj.js +1 -0
  62. package/dist/chunks/Input.vue_vue_type_script_setup_true_lang-PeDZ7smO.mjs +391 -0
  63. package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-CVWbekIQ.mjs +176 -0
  64. package/dist/chunks/Popover.vue_vue_type_script_setup_true_lang-TF9OnqB0.js +1 -0
  65. package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-CtBz7Ha9.js +1 -0
  66. package/dist/chunks/Scrollbar.vue_vue_type_script_setup_true_lang-kKvR0Hz3.mjs +124 -0
  67. package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BNTM3OeU.js +1 -0
  68. package/dist/chunks/TimePanel.vue_vue_type_script_setup_true_lang-BxuIhLsF.mjs +170 -0
  69. package/dist/chunks/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
  70. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  71. package/dist/chunks/auto-update-6n8Xn1EH.js +1 -0
  72. package/dist/chunks/auto-update-Dw-2qIsQ.mjs +59 -0
  73. package/dist/chunks/color-BBpRjg5d.mjs +32 -0
  74. package/dist/chunks/color-m1q_rZ68.js +1 -0
  75. package/dist/chunks/context-BEsW77hb.js +1 -0
  76. package/dist/chunks/context-BlK-PJ3n.mjs +5 -0
  77. package/dist/chunks/controller-37WpkEdZ.js +1 -0
  78. package/dist/chunks/controller-3cWaJJMW.mjs +318 -0
  79. package/dist/chunks/controller-BQhkT8pi.mjs +95 -0
  80. package/dist/chunks/controller-BnNZOOMj.js +1 -0
  81. package/dist/chunks/controller-CV-a983I.js +1 -0
  82. package/dist/chunks/controller-D1BTHmfO.js +1 -0
  83. package/dist/chunks/controller-DZp6lWY1.mjs +96 -0
  84. package/dist/chunks/controller-DdEBnv9V.mjs +82 -0
  85. package/dist/chunks/id-CfLxBW9l.js +1 -0
  86. package/dist/chunks/id-VS2potoV.mjs +7 -0
  87. package/dist/chunks/index-B0yEC3RG.mjs +136 -0
  88. package/dist/chunks/index-B4GP5rXr.mjs +170 -0
  89. package/dist/chunks/index-DWAWrVaT.js +1 -0
  90. package/dist/chunks/index-RYR-1S7A.js +1 -0
  91. package/dist/chunks/install-DJNxamQ0.mjs +10 -0
  92. package/dist/chunks/install-gnn2dOg9.js +1 -0
  93. package/dist/chunks/manager-BUdQK4AD.mjs +156 -0
  94. package/dist/chunks/manager-C-VTKQvg.mjs +85 -0
  95. package/dist/chunks/manager-C0AUxQ1I.js +2 -0
  96. package/dist/chunks/manager-d-AJMlyO.js +1 -0
  97. package/dist/chunks/modal-BiivqQQz.mjs +86 -0
  98. package/dist/chunks/modal-CRbFkVcm.js +1 -0
  99. package/dist/chunks/responsive-BYScjISa.js +1 -0
  100. package/dist/chunks/responsive-jCVnPx1a.mjs +49 -0
  101. package/dist/chunks/style-C-58-Hx4.mjs +7 -0
  102. package/dist/chunks/style-CjCLKeeU.js +1 -0
  103. package/dist/chunks/types-CXAGM03M.mjs +92 -0
  104. package/dist/chunks/types-DS78vyi2.js +1 -0
  105. package/dist/chunks/use-form-item-CloIcyon.js +1 -0
  106. package/dist/chunks/use-form-item-CqDbWCiU.mjs +16 -0
  107. package/dist/chunks/use-id-BycaM3-h.js +1 -0
  108. package/dist/chunks/use-id-D3casveg.mjs +9 -0
  109. package/dist/chunks/use-signals-Bz1smiXh.js +1 -0
  110. package/dist/chunks/use-signals-CE1T2jXK.mjs +50 -0
  111. package/dist/chunks/useCanvasRenderer-BPTNzGy0.mjs +87 -0
  112. package/dist/chunks/useCanvasRenderer-D77k3JCQ.js +1 -0
  113. package/dist/chunks/useResizeObserver-Cki4q_CI.mjs +60 -0
  114. package/dist/chunks/useResizeObserver-DMkB1OF3.js +1 -0
  115. package/dist/chunks/z-index-CNZLw1v7.js +1 -0
  116. package/dist/chunks/z-index-D9ecXoNe.mjs +14 -0
  117. package/dist/collapse/Collapse.vue.d.ts +30 -0
  118. package/dist/collapse/CollapseItem.vue.d.ts +20 -0
  119. package/dist/collapse/index.d.ts +8 -0
  120. package/dist/collapse/index.js +3 -0
  121. package/dist/collapse/index.mjs +144 -0
  122. package/dist/collapse/types.d.ts +54 -0
  123. package/dist/color-picker/AlphaSlider.vue.d.ts +38 -0
  124. package/dist/color-picker/ColorPicker.vue.d.ts +57 -0
  125. package/dist/color-picker/HueSlider.vue.d.ts +28 -0
  126. package/dist/color-picker/SaturationPanel.vue.d.ts +46 -0
  127. package/dist/color-picker/index.d.ts +56 -0
  128. package/dist/color-picker/index.js +6 -0
  129. package/dist/color-picker/index.mjs +481 -0
  130. package/dist/config-provider/ConfigProvider.vue.d.ts +64 -0
  131. package/dist/config-provider/context.d.ts +888 -0
  132. package/dist/config-provider/index.d.ts +97 -0
  133. package/dist/config-provider/index.js +1 -0
  134. package/dist/config-provider/index.mjs +396 -0
  135. package/dist/config-provider/resolver.d.ts +2 -0
  136. package/dist/config-provider/runtime.d.ts +5 -0
  137. package/dist/config-provider/teleport.d.ts +6 -0
  138. package/dist/config-provider/types.d.ts +131 -0
  139. package/dist/context-menu/ContextMenu.vue.d.ts +87 -0
  140. package/dist/context-menu/index.d.ts +5 -0
  141. package/dist/context-menu/index.js +3 -0
  142. package/dist/context-menu/index.mjs +215 -0
  143. package/dist/context-menu/types.d.ts +34 -0
  144. package/dist/date-picker/Calendar.vue.d.ts +22 -0
  145. package/dist/date-picker/DatePicker.vue.d.ts +31 -0
  146. package/dist/date-picker/DateRangePicker.vue.d.ts +26 -0
  147. package/dist/date-picker/DateTimePicker.vue.d.ts +27 -0
  148. package/dist/date-picker/DateTimeRangePicker.vue.d.ts +27 -0
  149. package/dist/date-picker/index.d.ts +13 -0
  150. package/dist/date-picker/index.js +6 -0
  151. package/dist/date-picker/index.mjs +1229 -0
  152. package/dist/date-picker/utils.d.ts +3 -0
  153. package/dist/dialog/Dialog.vue.d.ts +97 -0
  154. package/dist/dialog/index.d.ts +5 -0
  155. package/dist/dialog/index.js +2 -0
  156. package/dist/dialog/index.mjs +161 -0
  157. package/dist/dialog/types.d.ts +38 -0
  158. package/dist/divider/Divider.vue.d.ts +74 -0
  159. package/dist/divider/index.d.ts +5 -0
  160. package/dist/divider/index.js +2 -0
  161. package/dist/divider/index.mjs +96 -0
  162. package/dist/divider/types.d.ts +57 -0
  163. package/dist/drawer/Drawer.vue.d.ts +106 -0
  164. package/dist/drawer/index.d.ts +5 -0
  165. package/dist/drawer/index.js +2 -0
  166. package/dist/drawer/index.mjs +168 -0
  167. package/dist/drawer/types.d.ts +42 -0
  168. package/dist/dropdown/Dropdown.vue.d.ts +109 -0
  169. package/dist/dropdown/DropdownItem.vue.d.ts +60 -0
  170. package/dist/dropdown/index.d.ts +7 -0
  171. package/dist/dropdown/index.js +3 -0
  172. package/dist/dropdown/index.mjs +310 -0
  173. package/dist/dropdown/types.d.ts +87 -0
  174. package/dist/empty/Empty.vue.d.ts +47 -0
  175. package/dist/empty/index.d.ts +70 -0
  176. package/dist/empty/index.js +2 -0
  177. package/dist/empty/index.mjs +50 -0
  178. package/dist/empty/types.d.ts +16 -0
  179. package/dist/feedback-runtime/manager.d.ts +109 -0
  180. package/dist/feedback-runtime/mount.d.ts +5 -0
  181. package/dist/feedback-runtime/types.d.ts +27 -0
  182. package/dist/form/Form.vue.d.ts +37 -0
  183. package/dist/form/FormItem.vue.d.ts +32 -0
  184. package/dist/form/FormSchemaFields.vue.d.ts +7 -0
  185. package/dist/form/context.d.ts +33 -0
  186. package/dist/form/index.d.ts +6 -0
  187. package/dist/form/index.js +2 -0
  188. package/dist/form/index.mjs +389 -0
  189. package/dist/grid/Col.vue.d.ts +101 -0
  190. package/dist/grid/Row.vue.d.ts +56 -0
  191. package/dist/grid/index.d.ts +7 -0
  192. package/dist/grid/index.js +2 -0
  193. package/dist/grid/index.mjs +182 -0
  194. package/dist/grid/responsive.d.ts +9 -0
  195. package/dist/grid/types.d.ts +85 -0
  196. package/dist/hooks/index.d.ts +3 -0
  197. package/dist/hooks/index.js +1 -0
  198. package/dist/hooks/index.mjs +9 -0
  199. package/dist/hooks/use-form-item.d.ts +13 -0
  200. package/dist/hooks/use-id.d.ts +5 -0
  201. package/dist/hooks/useCanvasRenderer.d.ts +10 -0
  202. package/dist/hooks/useImageLoader.d.ts +20 -0
  203. package/dist/hooks/useResizeObserver.d.ts +17 -0
  204. package/dist/icon/Icon.vue.d.ts +20 -0
  205. package/dist/icon/index.d.ts +5 -0
  206. package/dist/icon/index.js +2 -0
  207. package/dist/icon/index.mjs +10 -0
  208. package/dist/icon/types.d.ts +45 -0
  209. package/dist/image/Image.vue.d.ts +38 -0
  210. package/dist/image/index.d.ts +5 -0
  211. package/dist/image/index.js +2 -0
  212. package/dist/image/index.mjs +128 -0
  213. package/dist/image/types.d.ts +10 -0
  214. package/dist/index.d.ts +59 -0
  215. package/dist/index.js +1 -0
  216. package/dist/index.mjs +362 -0
  217. package/dist/input/Input.vue.d.ts +47 -0
  218. package/dist/input/index.d.ts +5 -0
  219. package/dist/input/index.js +2 -0
  220. package/dist/input/index.mjs +10 -0
  221. package/dist/input/types.d.ts +51 -0
  222. package/dist/input-number/InputNumber.vue.d.ts +119 -0
  223. package/dist/input-number/index.d.ts +5 -0
  224. package/dist/input-number/index.js +2 -0
  225. package/dist/input-number/index.mjs +312 -0
  226. package/dist/input-number/types.d.ts +58 -0
  227. package/dist/layout/Content.vue.d.ts +29 -0
  228. package/dist/layout/Footer.vue.d.ts +29 -0
  229. package/dist/layout/Header.vue.d.ts +29 -0
  230. package/dist/layout/Layout.vue.d.ts +32 -0
  231. package/dist/layout/Sider.vue.d.ts +59 -0
  232. package/dist/layout/index.d.ts +13 -0
  233. package/dist/layout/index.js +2 -0
  234. package/dist/layout/index.mjs +154 -0
  235. package/dist/layout/types.d.ts +51 -0
  236. package/dist/layout-system/responsive.d.ts +4 -0
  237. package/dist/layout-system/types.d.ts +3 -0
  238. package/dist/loading/Loading.vue.d.ts +57 -0
  239. package/dist/loading/LoadingMask.vue.d.ts +8 -0
  240. package/dist/loading/directive.d.ts +5 -0
  241. package/dist/loading/index.d.ts +7 -0
  242. package/dist/loading/index.js +2 -0
  243. package/dist/loading/index.mjs +275 -0
  244. package/dist/loading/types.d.ts +23 -0
  245. package/dist/mentions/Mentions.vue.d.ts +337 -0
  246. package/dist/mentions/index.d.ts +296 -0
  247. package/dist/mentions/index.js +5 -0
  248. package/dist/mentions/index.mjs +357 -0
  249. package/dist/mentions/types.d.ts +55 -0
  250. package/dist/menu/Menu.vue.d.ts +120 -0
  251. package/dist/menu/MenuDivider.vue.d.ts +2 -0
  252. package/dist/menu/MenuGroup.vue.d.ts +29 -0
  253. package/dist/menu/MenuItem.vue.d.ts +48 -0
  254. package/dist/menu/MenuNodeRenderer.vue.d.ts +6 -0
  255. package/dist/menu/SubMenu.vue.d.ts +57 -0
  256. package/dist/menu/index.d.ts +13 -0
  257. package/dist/menu/index.js +2 -0
  258. package/dist/menu/index.mjs +772 -0
  259. package/dist/menu/types.d.ts +126 -0
  260. package/dist/message/MessageHost.vue.d.ts +15 -0
  261. package/dist/message/MessageItem.vue.d.ts +15 -0
  262. package/dist/message/index.d.ts +10 -0
  263. package/dist/message/index.js +2 -0
  264. package/dist/message/index.mjs +199 -0
  265. package/dist/message/runtime.d.ts +149 -0
  266. package/dist/message/types.d.ts +12 -0
  267. package/dist/notification/NotificationHost.vue.d.ts +15 -0
  268. package/dist/notification/NotificationItem.vue.d.ts +15 -0
  269. package/dist/notification/index.d.ts +10 -0
  270. package/dist/notification/index.js +2 -0
  271. package/dist/notification/index.mjs +207 -0
  272. package/dist/notification/runtime.d.ts +155 -0
  273. package/dist/notification/types.d.ts +12 -0
  274. package/dist/otp-input/OTPInput.vue.d.ts +84 -0
  275. package/dist/otp-input/index.d.ts +5 -0
  276. package/dist/otp-input/index.js +2 -0
  277. package/dist/otp-input/index.mjs +216 -0
  278. package/dist/otp-input/types.d.ts +41 -0
  279. package/dist/pagination/Pagination.vue.d.ts +101 -0
  280. package/dist/pagination/index.d.ts +102 -0
  281. package/dist/pagination/index.js +2 -0
  282. package/dist/pagination/index.mjs +260 -0
  283. package/dist/pagination/types.d.ts +48 -0
  284. package/dist/popover/Popover.vue.d.ts +136 -0
  285. package/dist/popover/index.d.ts +5 -0
  286. package/dist/popover/index.js +2 -0
  287. package/dist/popover/index.mjs +13 -0
  288. package/dist/popover/types.d.ts +49 -0
  289. package/dist/radio/Radio.vue.d.ts +30 -0
  290. package/dist/radio/RadioGroup.vue.d.ts +26 -0
  291. package/dist/radio/constants.d.ts +3 -0
  292. package/dist/radio/index.d.ts +7 -0
  293. package/dist/radio/index.js +2 -0
  294. package/dist/radio/index.mjs +273 -0
  295. package/dist/radio/types.d.ts +45 -0
  296. package/dist/rate/Rate.vue.d.ts +139 -0
  297. package/dist/rate/index.d.ts +140 -0
  298. package/dist/rate/index.js +3 -0
  299. package/dist/rate/index.mjs +276 -0
  300. package/dist/rate/types.d.ts +66 -0
  301. package/dist/rich-text/RichText.vue.d.ts +25 -0
  302. package/dist/rich-text/index.d.ts +17 -0
  303. package/dist/rich-text/index.js +2 -0
  304. package/dist/rich-text/index.mjs +312 -0
  305. package/dist/scrollbar/Scrollbar.vue.d.ts +37 -0
  306. package/dist/scrollbar/index.d.ts +5 -0
  307. package/dist/scrollbar/index.js +2 -0
  308. package/dist/scrollbar/index.mjs +10 -0
  309. package/dist/scrollbar/types.d.ts +17 -0
  310. package/dist/select/Option.vue.d.ts +45 -0
  311. package/dist/select/Select.vue.d.ts +136 -0
  312. package/dist/select/index.d.ts +9 -0
  313. package/dist/select/index.js +3 -0
  314. package/dist/select/index.mjs +656 -0
  315. package/dist/select/types.d.ts +92 -0
  316. package/dist/slider/Slider.vue.d.ts +123 -0
  317. package/dist/slider/index.d.ts +5 -0
  318. package/dist/slider/index.js +2 -0
  319. package/dist/slider/index.mjs +326 -0
  320. package/dist/slider/types.d.ts +57 -0
  321. package/dist/space/Space.vue.d.ts +75 -0
  322. package/dist/space/index.d.ts +5 -0
  323. package/dist/space/index.js +2 -0
  324. package/dist/space/index.mjs +104 -0
  325. package/dist/space/types.d.ts +34 -0
  326. package/dist/splitter/Splitter.vue.d.ts +52 -0
  327. package/dist/splitter/SplitterPane.vue.d.ts +38 -0
  328. package/dist/splitter/index.d.ts +7 -0
  329. package/dist/splitter/index.js +2 -0
  330. package/dist/splitter/index.mjs +252 -0
  331. package/dist/splitter/types.d.ts +41 -0
  332. package/dist/splitter/utils.d.ts +6 -0
  333. package/dist/style/Button.css +1 -0
  334. package/dist/style/Checkbox.css +1 -0
  335. package/dist/style/Icon.css +1 -0
  336. package/dist/style/Input.css +1 -0
  337. package/dist/style/Popover.css +1 -0
  338. package/dist/style/Scrollbar.css +1 -0
  339. package/dist/style/TimePanel.css +1 -0
  340. package/dist/style/autocomplete.css +1 -0
  341. package/dist/style/avatar.css +1 -0
  342. package/dist/style/badge.css +1 -0
  343. package/dist/style/base.css +1 -0
  344. package/dist/style/breadcrumb.css +1 -0
  345. package/dist/style/card.css +1 -0
  346. package/dist/style/carousel.css +1 -0
  347. package/dist/style/cascader.css +1 -0
  348. package/dist/style/collapse.css +1 -0
  349. package/dist/style/color-picker.css +1 -0
  350. package/dist/style/context-menu.css +1 -0
  351. package/dist/style/date-picker.css +1 -0
  352. package/dist/style/dialog.css +1 -0
  353. package/dist/style/divider.css +1 -0
  354. package/dist/style/drawer.css +1 -0
  355. package/dist/style/empty.css +1 -0
  356. package/dist/style/form.css +1 -0
  357. package/dist/style/grid.css +1 -0
  358. package/dist/style/image.css +1 -0
  359. package/dist/style/index.css +1 -0
  360. package/dist/style/input-number.css +1 -0
  361. package/dist/style/layout.css +1 -0
  362. package/dist/style/loading.css +1 -0
  363. package/dist/style/mentions.css +1 -0
  364. package/dist/style/menu.css +1 -0
  365. package/dist/style/message.css +1 -0
  366. package/dist/style/notification.css +1 -0
  367. package/dist/style/otp-input.css +1 -0
  368. package/dist/style/pagination.css +1 -0
  369. package/dist/style/radio.css +1 -0
  370. package/dist/style/rate.css +1 -0
  371. package/dist/style/rich-text.css +1 -0
  372. package/dist/style/select.css +1 -0
  373. package/dist/style/slider.css +1 -0
  374. package/dist/style/space.css +1 -0
  375. package/dist/style/splitter.css +1 -0
  376. package/dist/style/switch.css +1 -0
  377. package/dist/style/table.css +1 -0
  378. package/dist/style/tabs.css +1 -0
  379. package/dist/style/tag.css +1 -0
  380. package/dist/style/tooltip.css +1 -0
  381. package/dist/style/transfer.css +1 -0
  382. package/dist/style/tree-select.css +1 -0
  383. package/dist/style/tree.css +1 -0
  384. package/dist/style/upload.css +1 -0
  385. package/dist/style/watermark.css +1 -0
  386. package/dist/switch/Switch.vue.d.ts +95 -0
  387. package/dist/switch/index.d.ts +5 -0
  388. package/dist/switch/index.js +2 -0
  389. package/dist/switch/index.mjs +285 -0
  390. package/dist/switch/types.d.ts +81 -0
  391. package/dist/table/Table.vue.d.ts +102 -0
  392. package/dist/table/index.d.ts +5 -0
  393. package/dist/table/index.js +2 -0
  394. package/dist/table/index.mjs +263 -0
  395. package/dist/table/types.d.ts +64 -0
  396. package/dist/tabs/TabPane.vue.d.ts +55 -0
  397. package/dist/tabs/Tabs.vue.d.ts +92 -0
  398. package/dist/tabs/index.d.ts +7 -0
  399. package/dist/tabs/index.js +2 -0
  400. package/dist/tabs/index.mjs +266 -0
  401. package/dist/tabs/types.d.ts +78 -0
  402. package/dist/tag/Tag.vue.d.ts +38 -0
  403. package/dist/tag/index.d.ts +5 -0
  404. package/dist/tag/index.js +2 -0
  405. package/dist/tag/index.mjs +123 -0
  406. package/dist/tag/types.d.ts +83 -0
  407. package/dist/time-picker/TimePanel.vue.d.ts +19 -0
  408. package/dist/time-picker/TimePicker.vue.d.ts +15 -0
  409. package/dist/time-picker/index.d.ts +6 -0
  410. package/dist/time-picker/index.js +4 -0
  411. package/dist/time-picker/index.mjs +91 -0
  412. package/dist/tooltip/Tooltip.vue.d.ts +99 -0
  413. package/dist/tooltip/index.d.ts +5 -0
  414. package/dist/tooltip/index.js +2 -0
  415. package/dist/tooltip/index.mjs +186 -0
  416. package/dist/tooltip/types.d.ts +37 -0
  417. package/dist/transfer/Transfer.vue.d.ts +104 -0
  418. package/dist/transfer/TransferPanel.vue.d.ts +90 -0
  419. package/dist/transfer/index.d.ts +167 -0
  420. package/dist/transfer/index.js +7 -0
  421. package/dist/transfer/index.mjs +343 -0
  422. package/dist/tree/Tree.vue.d.ts +237 -0
  423. package/dist/tree/TreeRow.vue.d.ts +24 -0
  424. package/dist/tree/TreeView.vue.d.ts +24 -0
  425. package/dist/tree/context.d.ts +3 -0
  426. package/dist/tree/index.d.ts +431 -0
  427. package/dist/tree/index.js +2 -0
  428. package/dist/tree/index.mjs +548 -0
  429. package/dist/tree/types.d.ts +127 -0
  430. package/dist/tree/use-tree-foundation.d.ts +37 -0
  431. package/dist/tree-select/TreeNode.vue.d.ts +7 -0
  432. package/dist/tree-select/TreeSelect.vue.d.ts +210 -0
  433. package/dist/tree-select/index.d.ts +7 -0
  434. package/dist/tree-select/index.js +3 -0
  435. package/dist/tree-select/index.mjs +799 -0
  436. package/dist/tree-select/types.d.ts +111 -0
  437. package/dist/upload/Upload.vue.d.ts +50 -0
  438. package/dist/upload/index.d.ts +67 -0
  439. package/dist/upload/index.js +3 -0
  440. package/dist/upload/index.mjs +271 -0
  441. package/dist/utils/install.d.ts +3 -0
  442. package/dist/utils/style.d.ts +1 -0
  443. package/dist/watermark/Watermark.vue.d.ts +98 -0
  444. package/dist/watermark/index.d.ts +5 -0
  445. package/dist/watermark/index.js +2 -0
  446. package/dist/watermark/index.mjs +183 -0
  447. package/dist/watermark/types.d.ts +85 -0
  448. package/package.json +69 -0
  449. package/src/autocomplete/style/index.css +80 -0
  450. package/src/avatar/style/index.css +105 -0
  451. package/src/badge/style/index.css +232 -0
  452. package/src/base.css +4 -0
  453. package/src/breadcrumb/style/index.css +75 -0
  454. package/src/button/style/index.css +242 -0
  455. package/src/card/style/index.css +60 -0
  456. package/src/carousel/style/index.css +195 -0
  457. package/src/cascader/style/index.css +153 -0
  458. package/src/checkbox/style/index.css +165 -0
  459. package/src/collapse/style/index.css +166 -0
  460. package/src/color-picker/style/index.css +132 -0
  461. package/src/context-menu/style/index.css +21 -0
  462. package/src/date-picker/style/index.css +372 -0
  463. package/src/dialog/style/index.css +141 -0
  464. package/src/divider/style/index.css +112 -0
  465. package/src/drawer/style/index.css +211 -0
  466. package/src/dropdown/style/index.css +118 -0
  467. package/src/empty/style/index.css +87 -0
  468. package/src/form/style/index.css +148 -0
  469. package/src/grid/style/index.css +16 -0
  470. package/src/icon/style/index.css +28 -0
  471. package/src/image/style/index.css +114 -0
  472. package/src/input/style/index.css +217 -0
  473. package/src/input-number/style/index.css +166 -0
  474. package/src/layout/style/index.css +37 -0
  475. package/src/loading/style/index.css +58 -0
  476. package/src/mentions/style/index.css +83 -0
  477. package/src/menu/style/index.css +300 -0
  478. package/src/message/style/index.css +109 -0
  479. package/src/notification/style/index.css +116 -0
  480. package/src/otp-input/style/index.css +96 -0
  481. package/src/pagination/style/index.css +96 -0
  482. package/src/popover/style/index.css +47 -0
  483. package/src/radio/style/index.css +185 -0
  484. package/src/rate/style/index.css +89 -0
  485. package/src/rich-text/style/index.css +154 -0
  486. package/src/scrollbar/style/index.css +57 -0
  487. package/src/select/style/index.css +262 -0
  488. package/src/slider/style/index.css +181 -0
  489. package/src/space/style/index.css +31 -0
  490. package/src/splitter/style/index.css +76 -0
  491. package/src/style.css +1 -0
  492. package/src/styles/reset.css +29 -0
  493. package/src/switch/style/index.css +164 -0
  494. package/src/table/style/index.css +108 -0
  495. package/src/tabs/style/index.css +270 -0
  496. package/src/tag/style/index.css +207 -0
  497. package/src/time-picker/style/index.css +135 -0
  498. package/src/tooltip/style/index.css +50 -0
  499. package/src/transfer/style/index.css +181 -0
  500. package/src/tree/style/index.css +246 -0
  501. package/src/tree-select/style/index.css +346 -0
  502. package/src/upload/style/index.css +166 -0
  503. package/src/watermark/style/index.css +15 -0
  504. package/style.css +1 -0
@@ -0,0 +1,310 @@
1
+ import '../style/index.css';
2
+ import '../style/menu.css';
3
+ import { defineComponent as S, inject as V, computed as f, onMounted as Z, onUnmounted as j, watch as E, unref as c, openBlock as u, createElementBlock as h, Fragment as D, createBlock as $, createCommentVNode as T, createVNode as W, createSlots as ue, withCtx as y, renderSlot as w, withModifiers as ce, normalizeClass as H, useSlots as me, ref as _, nextTick as A, provide as B, createElementVNode as R, Teleport as pe, Transition as fe, normalizeStyle as ve, renderList as ge, createTextVNode as he, toDisplayString as we } from "vue";
4
+ import "../chunks/manager-BUdQK4AD.mjs";
5
+ import { u as Ie } from "../chunks/z-index-D9ecXoNe.mjs";
6
+ import { a as ye } from "../chunks/auto-update-Dw-2qIsQ.mjs";
7
+ import { a as be, D as q, d as ke, b as Ce, c as _e } from "../chunks/index-B4GP5rXr.mjs";
8
+ import { u as De } from "../chunks/use-signals-CE1T2jXK.mjs";
9
+ import { useTeleportedConfig as $e } from "../config-provider/index.mjs";
10
+ import { M as Me, b as Le } from "../chunks/types-CXAGM03M.mjs";
11
+ import { u as ze } from "../chunks/use-id-D3casveg.mjs";
12
+ import { LMenuDivider as Re, LMenuItem as Se } from "../menu/index.mjs";
13
+ const Ee = ["id", "aria-disabled"], F = /* @__PURE__ */ S({
14
+ name: "DropdownItem",
15
+ __name: "DropdownItem",
16
+ props: be,
17
+ setup(m) {
18
+ const a = m, t = V(Me, null), n = t ? null : V(q, null), i = Symbol("dropdown-item"), v = f(() => n ? n.getItemIndex(i) : -1), M = f(() => (n == null ? void 0 : n.highlightedIndex.value) === v.value);
19
+ Z(() => {
20
+ n == null || n.registerItem({
21
+ id: i,
22
+ command: a.command,
23
+ disabled: a.disabled
24
+ });
25
+ }), j(() => {
26
+ n == null || n.unregisterItem(i);
27
+ }), E(
28
+ () => a.command,
29
+ (o) => {
30
+ n == null || n.updateItem(i, { command: o });
31
+ }
32
+ ), E(
33
+ () => a.disabled,
34
+ (o) => {
35
+ n == null || n.updateItem(i, { disabled: o });
36
+ }
37
+ );
38
+ const l = f(() => [
39
+ "l-dropdown-item",
40
+ `l-dropdown-item--${(n == null ? void 0 : n.size.value) ?? "md"}`,
41
+ {
42
+ "is-active": M.value,
43
+ "is-disabled": a.disabled,
44
+ "is-danger": a.danger,
45
+ "is-divided": a.divided
46
+ }
47
+ ]), p = () => {
48
+ !n || v.value < 0 || a.disabled || n.setHighlightedIndex(v.value);
49
+ }, b = () => {
50
+ n == null || n.selectItem(a.command, a.disabled);
51
+ };
52
+ return (o, L) => {
53
+ var k;
54
+ return c(t) ? (u(), h(D, { key: 0 }, [
55
+ o.divided ? (u(), $(c(Re), { key: 0 })) : T("", !0),
56
+ W(c(Se), {
57
+ value: o.command,
58
+ disabled: o.disabled,
59
+ danger: o.danger
60
+ }, ue({
61
+ default: y(() => [
62
+ w(o.$slots, "default")
63
+ ]),
64
+ _: 2
65
+ }, [
66
+ o.$slots.icon ? {
67
+ name: "icon",
68
+ fn: y(() => [
69
+ w(o.$slots, "icon")
70
+ ]),
71
+ key: "0"
72
+ } : void 0,
73
+ o.$slots.suffix ? {
74
+ name: "suffix",
75
+ fn: y(() => [
76
+ w(o.$slots, "suffix")
77
+ ]),
78
+ key: "1"
79
+ } : void 0
80
+ ]), 1032, ["value", "disabled", "danger"])
81
+ ], 64)) : (u(), h("div", {
82
+ key: 1,
83
+ id: (k = c(n)) == null ? void 0 : k.getItemId(v.value),
84
+ class: H(l.value),
85
+ role: "menuitem",
86
+ "aria-disabled": o.disabled,
87
+ tabindex: "-1",
88
+ onMouseenter: p,
89
+ onClick: ce(b, ["stop"])
90
+ }, [
91
+ w(o.$slots, "default")
92
+ ], 42, Ee));
93
+ };
94
+ }
95
+ }), Te = { class: "l-dropdown" }, He = ["aria-expanded", "aria-activedescendant"], Oe = ["data-theme"], xe = ["role"], Ke = /* @__PURE__ */ S({
96
+ name: "Dropdown",
97
+ __name: "Dropdown",
98
+ props: Ce,
99
+ emits: ke,
100
+ setup(m, { emit: a }) {
101
+ const t = m, n = a, i = me(), { teleportedCssVars: v, teleportedTheme: M } = $e(), l = _(null), p = _(null), b = _(2e3), o = _([]), L = f(() => t.size), k = ze("dropdown"), x = (e) => `${k}-item-${e}`, G = S({
102
+ name: "DropdownRenderContent",
103
+ props: {
104
+ content: {
105
+ type: null,
106
+ required: !1
107
+ }
108
+ },
109
+ setup(e) {
110
+ return () => e.content ?? null;
111
+ }
112
+ }), K = (e) => e ? e.some((d) => {
113
+ if (Array.isArray(d.children) && K(d.children))
114
+ return !0;
115
+ if (typeof d.type == "object" && d.type) {
116
+ const s = d.type.name ?? d.type.__name;
117
+ return s === "Menu" || s === "LMenu";
118
+ }
119
+ return !1;
120
+ }) : !1, r = _e({
121
+ trigger: t.trigger,
122
+ disabled: () => t.disabled,
123
+ closeOnSelect: t.hideOnClick,
124
+ placement: t.placement,
125
+ offset: t.offset,
126
+ flip: !0,
127
+ shift: !0,
128
+ getItems: () => o.value.map((e) => ({
129
+ command: e.command,
130
+ disabled: e.disabled
131
+ })),
132
+ onCommand: (e) => {
133
+ n("command", e);
134
+ },
135
+ onOpenChange: (e) => {
136
+ n("visible-change", e);
137
+ }
138
+ }), { nextZIndex: J } = Ie(), { isOpen: g, highlightedIndex: C, x: Q, y: X } = De(r), z = () => {
139
+ l.value && p.value && (r.actions.setReference(l.value), r.actions.updatePosition(p.value));
140
+ };
141
+ let I = null;
142
+ E(g, (e) => {
143
+ e ? (b.value = J(), A(() => {
144
+ l.value && p.value && (I = ye(l.value, p.value, z));
145
+ })) : (I == null || I(), I = null);
146
+ });
147
+ const N = (e) => {
148
+ r.actions.handleInteractOutside(
149
+ e.target,
150
+ l.value,
151
+ p.value
152
+ );
153
+ };
154
+ Z(() => {
155
+ document.addEventListener("click", N), window.addEventListener("resize", z);
156
+ }), j(() => {
157
+ document.removeEventListener("click", N), window.removeEventListener("resize", z);
158
+ });
159
+ const Y = () => {
160
+ t.trigger !== "click" || t.disabled || r.actions.toggle();
161
+ }, ee = (e) => {
162
+ t.trigger !== "contextmenu" || t.disabled || (e.preventDefault(), r.actions.open());
163
+ }, ne = (e) => {
164
+ if (!t.disabled) {
165
+ if (e.key === "ArrowDown") {
166
+ if (e.preventDefault(), !g.value) {
167
+ r.actions.open();
168
+ return;
169
+ }
170
+ r.actions.moveHighlight("next");
171
+ }
172
+ if (e.key === "ArrowUp") {
173
+ if (e.preventDefault(), !g.value) {
174
+ r.actions.open();
175
+ return;
176
+ }
177
+ r.actions.moveHighlight("prev");
178
+ }
179
+ if (e.key === "Enter" || e.key === " ") {
180
+ if (e.preventDefault(), !g.value) {
181
+ r.actions.open();
182
+ return;
183
+ }
184
+ r.actions.selectHighlighted();
185
+ }
186
+ e.key === "Escape" && r.actions.close();
187
+ }
188
+ }, te = f(() => [
189
+ "l-dropdown__menu",
190
+ `l-dropdown__menu--${t.size}`
191
+ ]), P = f(() => {
192
+ var e;
193
+ return K((e = i.default) == null ? void 0 : e.call(i, {}));
194
+ }), oe = f(() => !i.default && t.items.length > 0), de = f(() => ({
195
+ top: `${X.value}px`,
196
+ left: `${Q.value}px`,
197
+ minWidth: t.width ? typeof t.width == "number" ? `${t.width}px` : t.width : l.value ? `${l.value.offsetWidth}px` : void 0,
198
+ zIndex: b.value,
199
+ ...v.value
200
+ })), re = (e) => {
201
+ o.value = [...o.value, e];
202
+ }, se = (e) => {
203
+ o.value = o.value.filter((d) => d.id !== e);
204
+ }, ae = (e, d) => {
205
+ o.value = o.value.map((s) => s.id !== e ? s : {
206
+ ...s,
207
+ ...d
208
+ });
209
+ }, ie = (e) => o.value.findIndex((d) => d.id === e), le = (e) => {
210
+ var d;
211
+ return (d = t.renderItem) == null ? void 0 : d.call(t, e);
212
+ };
213
+ return B(q, {
214
+ highlightedIndex: C,
215
+ size: L,
216
+ registerItem: re,
217
+ unregisterItem: se,
218
+ updateItem: ae,
219
+ getItemIndex: ie,
220
+ getItemId: x,
221
+ setHighlightedIndex: (e) => {
222
+ C.value = e;
223
+ },
224
+ selectItem: (e, d) => {
225
+ d || r.actions.select(e);
226
+ }
227
+ }), B(Le, {
228
+ size: L,
229
+ onSelect: (e) => {
230
+ n("command", e), t.hideOnClick && A(() => {
231
+ r.actions.close();
232
+ });
233
+ },
234
+ close: () => {
235
+ r.actions.close();
236
+ }
237
+ }), (e, d) => (u(), h(D, null, [
238
+ R("div", Te, [
239
+ R("div", {
240
+ ref_key: "triggerRef",
241
+ ref: l,
242
+ class: H(["l-dropdown__trigger", { "is-disabled": e.disabled }]),
243
+ role: "button",
244
+ tabindex: "0",
245
+ "aria-haspopup": "menu",
246
+ "aria-expanded": c(g) ? "true" : "false",
247
+ "aria-activedescendant": c(C) >= 0 ? x(c(C)) : void 0,
248
+ onClick: Y,
249
+ onContextmenu: ee,
250
+ onKeydown: ne
251
+ }, [
252
+ w(e.$slots, "trigger")
253
+ ], 42, He)
254
+ ]),
255
+ (u(), $(pe, { to: "body" }, [
256
+ W(fe, { name: "l-dropdown-fade" }, {
257
+ default: y(() => [
258
+ c(g) ? (u(), h("div", {
259
+ key: 0,
260
+ ref_key: "popperRef",
261
+ ref: p,
262
+ class: "l-dropdown__popper",
263
+ "data-theme": c(M),
264
+ style: ve(de.value)
265
+ }, [
266
+ R("div", {
267
+ class: H(P.value ? "l-dropdown__content" : te.value),
268
+ role: P.value ? void 0 : "menu"
269
+ }, [
270
+ e.$slots.default ? w(e.$slots, "default", { key: 0 }) : oe.value ? (u(!0), h(D, { key: 1 }, ge(e.items, (s) => (u(), $(F, {
271
+ key: String(s.command ?? s.label),
272
+ command: s.command,
273
+ disabled: s.disabled,
274
+ danger: s.danger,
275
+ divided: s.divided
276
+ }, {
277
+ default: y(() => [
278
+ e.renderItem ? (u(), $(c(G), {
279
+ key: 0,
280
+ content: le(s)
281
+ }, null, 8, ["content"])) : (u(), h(D, { key: 1 }, [
282
+ he(we(s.label), 1)
283
+ ], 64))
284
+ ]),
285
+ _: 2
286
+ }, 1032, ["command", "disabled", "danger", "divided"]))), 128)) : T("", !0)
287
+ ], 10, xe)
288
+ ], 12, Oe)) : T("", !0)
289
+ ]),
290
+ _: 3
291
+ })
292
+ ]))
293
+ ], 64));
294
+ }
295
+ }), U = Ke, O = F;
296
+ U.install = (m) => {
297
+ m.component("LDropdown", U), m.component("LDropdownItem", O);
298
+ };
299
+ O.install = (m) => {
300
+ m.component("LDropdownItem", O);
301
+ };
302
+ export {
303
+ q as DropdownKey,
304
+ U as LDropdown,
305
+ O as LDropdownItem,
306
+ U as default,
307
+ ke as dropdownEmits,
308
+ be as dropdownItemProps,
309
+ Ce as dropdownProps
310
+ };
@@ -0,0 +1,87 @@
1
+ import { ExtractPropTypes, InjectionKey, PropType, Ref, VNodeChild } from 'vue';
2
+ import { Placement } from '../../../headless/src/index.ts';
3
+ export type DropdownCommand = string | number | symbol;
4
+ export interface DropdownItemInput {
5
+ command?: DropdownCommand;
6
+ label?: string;
7
+ disabled?: boolean;
8
+ danger?: boolean;
9
+ divided?: boolean;
10
+ }
11
+ export declare const dropdownProps: {
12
+ readonly trigger: {
13
+ readonly type: PropType<"click" | "contextmenu">;
14
+ readonly default: "click";
15
+ };
16
+ readonly placement: {
17
+ readonly type: PropType<Placement>;
18
+ readonly default: "bottom-start";
19
+ };
20
+ readonly disabled: {
21
+ readonly type: BooleanConstructor;
22
+ readonly default: false;
23
+ };
24
+ readonly hideOnClick: {
25
+ readonly type: BooleanConstructor;
26
+ readonly default: true;
27
+ };
28
+ readonly width: {
29
+ readonly type: PropType<string | number | undefined>;
30
+ readonly default: undefined;
31
+ };
32
+ readonly size: {
33
+ readonly type: PropType<"sm" | "md" | "lg">;
34
+ readonly default: "md";
35
+ };
36
+ readonly offset: {
37
+ readonly type: NumberConstructor;
38
+ readonly default: 8;
39
+ };
40
+ readonly items: {
41
+ readonly type: PropType<DropdownItemInput[]>;
42
+ readonly default: () => never[];
43
+ };
44
+ readonly renderItem: PropType<(item: DropdownItemInput) => VNodeChild>;
45
+ };
46
+ export declare const dropdownEmits: {
47
+ readonly command: (_command: DropdownCommand | undefined) => boolean;
48
+ readonly 'visible-change': (_visible: boolean) => boolean;
49
+ };
50
+ export type DropdownProps = ExtractPropTypes<typeof dropdownProps>;
51
+ export type DropdownEmits = typeof dropdownEmits;
52
+ export declare const dropdownItemProps: {
53
+ readonly command: {
54
+ readonly type: PropType<DropdownCommand | undefined>;
55
+ readonly default: undefined;
56
+ };
57
+ readonly disabled: {
58
+ readonly type: BooleanConstructor;
59
+ readonly default: false;
60
+ };
61
+ readonly danger: {
62
+ readonly type: BooleanConstructor;
63
+ readonly default: false;
64
+ };
65
+ readonly divided: {
66
+ readonly type: BooleanConstructor;
67
+ readonly default: false;
68
+ };
69
+ };
70
+ export type DropdownItemProps = ExtractPropTypes<typeof dropdownItemProps>;
71
+ export interface DropdownRegistryItem {
72
+ id: symbol;
73
+ command: DropdownCommand | undefined;
74
+ disabled: boolean;
75
+ }
76
+ export interface DropdownContext {
77
+ highlightedIndex: Ref<number>;
78
+ size: Ref<DropdownProps['size']>;
79
+ registerItem: (item: DropdownRegistryItem) => void;
80
+ unregisterItem: (id: symbol) => void;
81
+ updateItem: (id: symbol, patch: Partial<Omit<DropdownRegistryItem, 'id'>>) => void;
82
+ getItemIndex: (id: symbol) => number;
83
+ getItemId: (index: number) => string;
84
+ setHighlightedIndex: (index: number) => void;
85
+ selectItem: (command: DropdownCommand | undefined, disabled: boolean) => void;
86
+ }
87
+ export declare const DropdownKey: InjectionKey<DropdownContext>;
@@ -0,0 +1,47 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
11
+ readonly title: {
12
+ readonly type: StringConstructor;
13
+ readonly default: "";
14
+ };
15
+ readonly description: {
16
+ readonly type: StringConstructor;
17
+ readonly default: "No data";
18
+ };
19
+ readonly size: {
20
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
21
+ readonly default: "md";
22
+ };
23
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
+ readonly title: {
25
+ readonly type: StringConstructor;
26
+ readonly default: "";
27
+ };
28
+ readonly description: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "No data";
31
+ };
32
+ readonly size: {
33
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
34
+ readonly default: "md";
35
+ };
36
+ }>> & Readonly<{}>, {
37
+ readonly size: "sm" | "md" | "lg";
38
+ readonly title: string;
39
+ readonly description: string;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,70 @@
1
+ export declare const LEmpty: import('../utils/install').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ readonly title: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly description: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "No data";
10
+ };
11
+ readonly size: {
12
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
13
+ readonly default: "md";
14
+ };
15
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
16
+ readonly size: "sm" | "md" | "lg";
17
+ readonly title: string;
18
+ readonly description: string;
19
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
20
+ P: {};
21
+ B: {};
22
+ D: {};
23
+ C: {};
24
+ M: {};
25
+ Defaults: {};
26
+ }, Readonly<import('vue').ExtractPropTypes<{
27
+ readonly title: {
28
+ readonly type: StringConstructor;
29
+ readonly default: "";
30
+ };
31
+ readonly description: {
32
+ readonly type: StringConstructor;
33
+ readonly default: "No data";
34
+ };
35
+ readonly size: {
36
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
37
+ readonly default: "md";
38
+ };
39
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
40
+ readonly size: "sm" | "md" | "lg";
41
+ readonly title: string;
42
+ readonly description: string;
43
+ }>;
44
+ __isFragment?: never;
45
+ __isTeleport?: never;
46
+ __isSuspense?: never;
47
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
48
+ readonly title: {
49
+ readonly type: StringConstructor;
50
+ readonly default: "";
51
+ };
52
+ readonly description: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "No data";
55
+ };
56
+ readonly size: {
57
+ readonly type: import('vue').PropType<"sm" | "md" | "lg">;
58
+ readonly default: "md";
59
+ };
60
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
61
+ readonly size: "sm" | "md" | "lg";
62
+ readonly title: string;
63
+ readonly description: string;
64
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
65
+ $slots: {
66
+ default?(_: {}): any;
67
+ };
68
+ })>;
69
+ export * from './types';
70
+ export default LEmpty;
@@ -0,0 +1,2 @@
1
+ require('../style/empty.css');
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../chunks/install-gnn2dOg9.js"),e=require("vue"),s={title:{type:String,default:""},description:{type:String,default:"No data"},size:{type:String,default:"md"}},n={key:0,class:"l-empty__title"},p={class:"l-empty__description"},m={key:1,class:"l-empty__actions"},d=e.defineComponent({name:"Empty",__name:"Empty",props:s,setup(o){const r=o,c=e.computed(()=>["l-empty",`l-empty--${r.size}`]);return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(c.value),role:"status","aria-live":"polite"},[l[0]||(l[0]=e.createStaticVNode('<div class="l-empty__visual" aria-hidden="true"><svg viewBox="0 0 120 120" class="l-empty__illustration"><rect x="18" y="24" width="84" height="64" rx="12" class="l-empty__frame"></rect><rect x="30" y="40" width="60" height="8" rx="4" class="l-empty__line"></rect><rect x="30" y="56" width="48" height="8" rx="4" class="l-empty__line l-empty__line--soft"></rect><circle cx="92" cy="82" r="10" class="l-empty__accent"></circle></svg></div>',1)),t.title?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",p,e.toDisplayString(t.description),1),t.$slots.default?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(t.$slots,"default")])):e.createCommentVNode("",!0)],2))}}),i=a.withInstall(d);exports.LEmpty=i;exports.default=i;exports.emptyProps=s;
@@ -0,0 +1,50 @@
1
+ import '../style/empty.css';
2
+ import { w as n } from "../chunks/install-DJNxamQ0.mjs";
3
+ import { defineComponent as p, computed as m, openBlock as e, createElementBlock as s, normalizeClass as d, createStaticVNode as y, toDisplayString as i, createCommentVNode as r, createElementVNode as _, renderSlot as u } from "vue";
4
+ const h = {
5
+ title: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ description: {
10
+ type: String,
11
+ default: "No data"
12
+ },
13
+ size: {
14
+ type: String,
15
+ default: "md"
16
+ }
17
+ }, f = {
18
+ key: 0,
19
+ class: "l-empty__title"
20
+ }, v = { class: "l-empty__description" }, g = {
21
+ key: 1,
22
+ class: "l-empty__actions"
23
+ }, w = /* @__PURE__ */ p({
24
+ name: "Empty",
25
+ __name: "Empty",
26
+ props: h,
27
+ setup(o) {
28
+ const a = o, c = m(() => [
29
+ "l-empty",
30
+ `l-empty--${a.size}`
31
+ ]);
32
+ return (t, l) => (e(), s("div", {
33
+ class: d(c.value),
34
+ role: "status",
35
+ "aria-live": "polite"
36
+ }, [
37
+ l[0] || (l[0] = y('<div class="l-empty__visual" aria-hidden="true"><svg viewBox="0 0 120 120" class="l-empty__illustration"><rect x="18" y="24" width="84" height="64" rx="12" class="l-empty__frame"></rect><rect x="30" y="40" width="60" height="8" rx="4" class="l-empty__line"></rect><rect x="30" y="56" width="48" height="8" rx="4" class="l-empty__line l-empty__line--soft"></rect><circle cx="92" cy="82" r="10" class="l-empty__accent"></circle></svg></div>', 1)),
38
+ t.title ? (e(), s("div", f, i(t.title), 1)) : r("", !0),
39
+ _("div", v, i(t.description), 1),
40
+ t.$slots.default ? (e(), s("div", g, [
41
+ u(t.$slots, "default")
42
+ ])) : r("", !0)
43
+ ], 2));
44
+ }
45
+ }), E = n(w);
46
+ export {
47
+ E as LEmpty,
48
+ E as default,
49
+ h as emptyProps
50
+ };
@@ -0,0 +1,16 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const emptyProps: {
3
+ readonly title: {
4
+ readonly type: StringConstructor;
5
+ readonly default: "";
6
+ };
7
+ readonly description: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "No data";
10
+ };
11
+ readonly size: {
12
+ readonly type: PropType<"sm" | "md" | "lg">;
13
+ readonly default: "md";
14
+ };
15
+ };
16
+ export type EmptyProps = ExtractPropTypes<typeof emptyProps>;