@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,3 @@
1
+ export declare const parseLocalDate: (str: string) => Date | null;
2
+ export declare const parseLocalDateTime: (str: string) => Date | null;
3
+ export declare const isDateValueAllowed: (value: Date | Date[] | [Date, Date] | null | undefined, disabledDate?: (date: Date) => boolean) => boolean;
@@ -0,0 +1,97 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {
9
+ dialogRef: HTMLDivElement;
10
+ };
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ readonly modelValue: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly title: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "";
22
+ };
23
+ readonly width: {
24
+ readonly type: import('vue').PropType<string | number>;
25
+ readonly default: 480;
26
+ };
27
+ readonly closeOnClickModal: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: true;
30
+ };
31
+ readonly closeOnPressEscape: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: true;
34
+ };
35
+ readonly showClose: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: true;
38
+ };
39
+ readonly destroyOnClose: {
40
+ readonly type: BooleanConstructor;
41
+ readonly default: false;
42
+ };
43
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
+ close: (_visible: boolean) => void;
45
+ open: (_visible: boolean) => void;
46
+ "update:modelValue": (_visible: boolean) => void;
47
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
48
+ readonly modelValue: {
49
+ readonly type: BooleanConstructor;
50
+ readonly default: false;
51
+ };
52
+ readonly title: {
53
+ readonly type: StringConstructor;
54
+ readonly default: "";
55
+ };
56
+ readonly width: {
57
+ readonly type: import('vue').PropType<string | number>;
58
+ readonly default: 480;
59
+ };
60
+ readonly closeOnClickModal: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: true;
63
+ };
64
+ readonly closeOnPressEscape: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: true;
67
+ };
68
+ readonly showClose: {
69
+ readonly type: BooleanConstructor;
70
+ readonly default: true;
71
+ };
72
+ readonly destroyOnClose: {
73
+ readonly type: BooleanConstructor;
74
+ readonly default: false;
75
+ };
76
+ }>> & Readonly<{
77
+ onClose?: ((_visible: boolean) => any) | undefined;
78
+ onOpen?: ((_visible: boolean) => any) | undefined;
79
+ "onUpdate:modelValue"?: ((_visible: boolean) => any) | undefined;
80
+ }>, {
81
+ readonly modelValue: boolean;
82
+ readonly title: string;
83
+ readonly width: string | number;
84
+ readonly closeOnClickModal: boolean;
85
+ readonly closeOnPressEscape: boolean;
86
+ readonly showClose: boolean;
87
+ readonly destroyOnClose: boolean;
88
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
89
+ dialogRef: HTMLDivElement;
90
+ }, any>;
91
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
92
+ export default _default;
93
+ type __VLS_WithTemplateSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Dialog } from './Dialog.vue';
3
+ export declare const LDialog: typeof Dialog & Plugin;
4
+ export * from './types';
5
+ export default LDialog;
@@ -0,0 +1,2 @@
1
+ require('../style/dialog.css');
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../chunks/manager-C0AUxQ1I.js");const S=require("../chunks/modal-CRbFkVcm.js"),B=require("../chunks/use-signals-Bz1smiXh.js"),V=require("../config-provider/index.js");function O(l={}){return S.createModalController(l)}const p={modelValue:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[String,Number],default:480},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1}},f={"update:modelValue":l=>!0,open:l=>!0,close:l=>!0},D=["data-theme"],N=["aria-label"],q={key:0,class:"l-dialog__header"},T={key:0,class:"l-dialog__title"},M={class:"l-dialog__body"},L={key:1,class:"l-dialog__footer"},m='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',P=e.defineComponent({name:"Dialog",__name:"Dialog",props:p,emits:f,setup(l,{emit:y}){const n=l,i=y,{teleportedCssVars:h,teleportedTheme:g}=V.useTeleportedConfig(),s=e.ref(null),a=O({destroyOnClose:()=>n.destroyOnClose,closeOnClickModal:()=>n.closeOnClickModal,closeOnPressEscape:()=>n.closeOnPressEscape,onOpen:o=>i("open",o),onVisibilityChange:o=>i("update:modelValue",o),onCloseRequest:()=>i("close",!1)}),{shouldRender:C,zIndex:v}=B.useController(a),k=e.computed(()=>({width:typeof n.width=="number"?`${n.width}px`:n.width})),w=e.computed(()=>({zIndex:v.value,...h.value})),E=()=>{a.actions.requestClose("manual")},_=()=>{a.actions.handleOverlayClick()},d=o=>{a.actions.handleEscapeKeydown(o)},b=o=>{if(o.key!=="Tab"||!s.value)return;const t=s.value.querySelectorAll(m);if(t.length===0)return;const c=t[0],u=t[t.length-1];o.shiftKey?document.activeElement===c&&(o.preventDefault(),u.focus()):document.activeElement===u&&(o.preventDefault(),c.focus())};return e.watch(()=>n.modelValue,o=>{a.actions.syncVisible(o),o&&e.nextTick(()=>{if(s.value){const t=s.value.querySelector(m);t==null||t.focus()}})},{immediate:!0}),e.watch(()=>n.destroyOnClose,()=>a.actions.syncRenderState()),e.onMounted(()=>{window.addEventListener("keydown",d)}),e.onUnmounted(()=>{window.removeEventListener("keydown",d),a.actions.close()}),(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"l-dialog-fade"},{default:e.withCtx(()=>[e.unref(C)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"l-dialog","data-theme":e.unref(g),style:e.normalizeStyle(w.value),onClick:e.withModifiers(_,["self"]),onKeydown:b},[e.createElementVNode("div",{ref_key:"dialogRef",ref:s,class:"l-dialog__panel",style:e.normalizeStyle(k.value),role:"dialog","aria-modal":"true","aria-label":o.title||"dialog"},[o.title||o.$slots.header||o.showClose?(e.openBlock(),e.createElementBlock("div",q,[o.title||o.$slots.header?(e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])])):e.createCommentVNode("",!0),o.showClose?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"l-dialog__close","aria-label":"Close dialog",onClick:E},[...t[0]||(t[0]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[e.renderSlot(o.$slots,"default")]),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",L,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)],12,N)],44,D)),[[e.vShow,o.modelValue]]):e.createCommentVNode("",!0)]),_:3})]))}}),r=P;r.install=l=>{l.component("LDialog",r)};exports.LDialog=r;exports.default=r;exports.dialogEmits=f;exports.dialogProps=p;
@@ -0,0 +1,161 @@
1
+ import '../style/dialog.css';
2
+ import { defineComponent as $, ref as L, computed as y, watch as h, nextTick as M, onMounted as R, onUnmounted as q, openBlock as n, createBlock as K, Teleport as N, createVNode as P, Transition as z, withCtx as A, unref as C, withDirectives as I, createElementBlock as i, withModifiers as U, normalizeStyle as g, createElementVNode as c, renderSlot as u, createTextVNode as F, toDisplayString as W, createCommentVNode as r, vShow as j } from "vue";
3
+ import "../chunks/manager-BUdQK4AD.mjs";
4
+ import { c as G } from "../chunks/modal-BiivqQQz.mjs";
5
+ import { u as H } from "../chunks/use-signals-CE1T2jXK.mjs";
6
+ import { useTeleportedConfig as J } from "../config-provider/index.mjs";
7
+ function Q(t = {}) {
8
+ return G(t);
9
+ }
10
+ const X = {
11
+ modelValue: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ width: {
20
+ type: [String, Number],
21
+ default: 480
22
+ },
23
+ closeOnClickModal: {
24
+ type: Boolean,
25
+ default: !0
26
+ },
27
+ closeOnPressEscape: {
28
+ type: Boolean,
29
+ default: !0
30
+ },
31
+ showClose: {
32
+ type: Boolean,
33
+ default: !0
34
+ },
35
+ destroyOnClose: {
36
+ type: Boolean,
37
+ default: !1
38
+ }
39
+ }, Y = {
40
+ "update:modelValue": (t) => !0,
41
+ open: (t) => !0,
42
+ close: (t) => !0
43
+ }, Z = ["data-theme"], x = ["aria-label"], ee = {
44
+ key: 0,
45
+ class: "l-dialog__header"
46
+ }, oe = {
47
+ key: 0,
48
+ class: "l-dialog__title"
49
+ }, te = { class: "l-dialog__body" }, le = {
50
+ key: 1,
51
+ class: "l-dialog__footer"
52
+ }, v = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', se = /* @__PURE__ */ $({
53
+ name: "Dialog",
54
+ __name: "Dialog",
55
+ props: X,
56
+ emits: Y,
57
+ setup(t, { emit: _ }) {
58
+ const l = t, d = _, { teleportedCssVars: k, teleportedTheme: b } = J(), a = L(null), s = Q({
59
+ destroyOnClose: () => l.destroyOnClose,
60
+ closeOnClickModal: () => l.closeOnClickModal,
61
+ closeOnPressEscape: () => l.closeOnPressEscape,
62
+ onOpen: (e) => d("open", e),
63
+ onVisibilityChange: (e) => d("update:modelValue", e),
64
+ onCloseRequest: () => d("close", !1)
65
+ }), { shouldRender: E, zIndex: O } = H(s), S = y(() => ({
66
+ width: typeof l.width == "number" ? `${l.width}px` : l.width
67
+ })), V = y(() => ({
68
+ zIndex: O.value,
69
+ ...k.value
70
+ })), D = () => {
71
+ s.actions.requestClose("manual");
72
+ }, B = () => {
73
+ s.actions.handleOverlayClick();
74
+ }, f = (e) => {
75
+ s.actions.handleEscapeKeydown(e);
76
+ }, T = (e) => {
77
+ if (e.key !== "Tab" || !a.value) return;
78
+ const o = a.value.querySelectorAll(v);
79
+ if (o.length === 0) return;
80
+ const p = o[0], m = o[o.length - 1];
81
+ e.shiftKey ? document.activeElement === p && (e.preventDefault(), m.focus()) : document.activeElement === m && (e.preventDefault(), p.focus());
82
+ };
83
+ return h(
84
+ () => l.modelValue,
85
+ (e) => {
86
+ s.actions.syncVisible(e), e && M(() => {
87
+ if (a.value) {
88
+ const o = a.value.querySelector(v);
89
+ o == null || o.focus();
90
+ }
91
+ });
92
+ },
93
+ { immediate: !0 }
94
+ ), h(
95
+ () => l.destroyOnClose,
96
+ () => s.actions.syncRenderState()
97
+ ), R(() => {
98
+ window.addEventListener("keydown", f);
99
+ }), q(() => {
100
+ window.removeEventListener("keydown", f), s.actions.close();
101
+ }), (e, o) => (n(), K(N, { to: "body" }, [
102
+ P(z, { name: "l-dialog-fade" }, {
103
+ default: A(() => [
104
+ C(E) ? I((n(), i("div", {
105
+ key: 0,
106
+ class: "l-dialog",
107
+ "data-theme": C(b),
108
+ style: g(V.value),
109
+ onClick: U(B, ["self"]),
110
+ onKeydown: T
111
+ }, [
112
+ c("div", {
113
+ ref_key: "dialogRef",
114
+ ref: a,
115
+ class: "l-dialog__panel",
116
+ style: g(S.value),
117
+ role: "dialog",
118
+ "aria-modal": "true",
119
+ "aria-label": e.title || "dialog"
120
+ }, [
121
+ e.title || e.$slots.header || e.showClose ? (n(), i("div", ee, [
122
+ e.title || e.$slots.header ? (n(), i("div", oe, [
123
+ u(e.$slots, "header", {}, () => [
124
+ F(W(e.title), 1)
125
+ ])
126
+ ])) : r("", !0),
127
+ e.showClose ? (n(), i("button", {
128
+ key: 1,
129
+ type: "button",
130
+ class: "l-dialog__close",
131
+ "aria-label": "Close dialog",
132
+ onClick: D
133
+ }, [...o[0] || (o[0] = [
134
+ c("span", { "aria-hidden": "true" }, "×", -1)
135
+ ])])) : r("", !0)
136
+ ])) : r("", !0),
137
+ c("div", te, [
138
+ u(e.$slots, "default")
139
+ ]),
140
+ e.$slots.footer ? (n(), i("div", le, [
141
+ u(e.$slots, "footer")
142
+ ])) : r("", !0)
143
+ ], 12, x)
144
+ ], 44, Z)), [
145
+ [j, e.modelValue]
146
+ ]) : r("", !0)
147
+ ]),
148
+ _: 3
149
+ })
150
+ ]));
151
+ }
152
+ }), w = se;
153
+ w.install = (t) => {
154
+ t.component("LDialog", w);
155
+ };
156
+ export {
157
+ w as LDialog,
158
+ w as default,
159
+ Y as dialogEmits,
160
+ X as dialogProps
161
+ };
@@ -0,0 +1,38 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const dialogProps: {
3
+ readonly modelValue: {
4
+ readonly type: BooleanConstructor;
5
+ readonly default: false;
6
+ };
7
+ readonly title: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "";
10
+ };
11
+ readonly width: {
12
+ readonly type: PropType<string | number>;
13
+ readonly default: 480;
14
+ };
15
+ readonly closeOnClickModal: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: true;
18
+ };
19
+ readonly closeOnPressEscape: {
20
+ readonly type: BooleanConstructor;
21
+ readonly default: true;
22
+ };
23
+ readonly showClose: {
24
+ readonly type: BooleanConstructor;
25
+ readonly default: true;
26
+ };
27
+ readonly destroyOnClose: {
28
+ readonly type: BooleanConstructor;
29
+ readonly default: false;
30
+ };
31
+ };
32
+ export declare const dialogEmits: {
33
+ readonly 'update:modelValue': (_visible: boolean) => boolean;
34
+ readonly open: (_visible: boolean) => boolean;
35
+ readonly close: (_visible: boolean) => boolean;
36
+ };
37
+ export type DialogProps = ExtractPropTypes<typeof dialogProps>;
38
+ export type DialogEmits = typeof dialogEmits;
@@ -0,0 +1,74 @@
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 direction: {
12
+ readonly type: import('vue').PropType<import('./types').DividerDirection>;
13
+ readonly default: "horizontal";
14
+ };
15
+ readonly contentPosition: {
16
+ readonly type: import('vue').PropType<import('./types').DividerContentPosition>;
17
+ readonly default: "center";
18
+ };
19
+ readonly borderStyle: {
20
+ readonly type: import('vue').PropType<import('./types').DividerBorderStyle>;
21
+ readonly default: "solid";
22
+ };
23
+ readonly thickness: {
24
+ readonly type: import('vue').PropType<number | string>;
25
+ readonly default: 1;
26
+ };
27
+ readonly color: {
28
+ readonly type: StringConstructor;
29
+ };
30
+ readonly textColor: {
31
+ readonly type: StringConstructor;
32
+ };
33
+ readonly margin: {
34
+ readonly type: import('vue').PropType<number | string>;
35
+ };
36
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ readonly direction: {
38
+ readonly type: import('vue').PropType<import('./types').DividerDirection>;
39
+ readonly default: "horizontal";
40
+ };
41
+ readonly contentPosition: {
42
+ readonly type: import('vue').PropType<import('./types').DividerContentPosition>;
43
+ readonly default: "center";
44
+ };
45
+ readonly borderStyle: {
46
+ readonly type: import('vue').PropType<import('./types').DividerBorderStyle>;
47
+ readonly default: "solid";
48
+ };
49
+ readonly thickness: {
50
+ readonly type: import('vue').PropType<number | string>;
51
+ readonly default: 1;
52
+ };
53
+ readonly color: {
54
+ readonly type: StringConstructor;
55
+ };
56
+ readonly textColor: {
57
+ readonly type: StringConstructor;
58
+ };
59
+ readonly margin: {
60
+ readonly type: import('vue').PropType<number | string>;
61
+ };
62
+ }>> & Readonly<{}>, {
63
+ readonly direction: import('./types').DividerDirection;
64
+ readonly contentPosition: import('./types').DividerContentPosition;
65
+ readonly borderStyle: import('./types').DividerBorderStyle;
66
+ readonly thickness: string | number;
67
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
68
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
+ export default _default;
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Divider } from './Divider.vue';
3
+ export declare const LDivider: typeof Divider & Plugin;
4
+ export * from './types';
5
+ export default LDivider;
@@ -0,0 +1,2 @@
1
+ require('../style/divider.css');
2
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),l={direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},borderStyle:{type:String,default:"solid"},thickness:{type:[Number,String],default:1},color:{type:String},textColor:{type:String},margin:{type:[Number,String]}},u=["aria-orientation"],p={key:0,class:"l-divider__text"},v=i.defineComponent({name:"Divider",__name:"Divider",props:l,setup(o){const t=o,s=i.useSlots(),n=i.computed(()=>!!s.default),c=i.computed(()=>["l-divider",`l-divider--${t.direction}`,{"l-divider--with-text":n.value&&t.direction==="horizontal",[`l-divider--with-text-${t.contentPosition}`]:n.value&&t.direction==="horizontal",[`l-divider--${t.borderStyle}`]:t.borderStyle!=="solid"}]),d=e=>{if(!(e==null||e===""))return/^\d+$/.test(String(e))?`${e}px`:String(e)},a=i.computed(()=>{const e={};return t.color&&(e["--l-divider-color"]=t.color),t.textColor&&(e["--l-divider-text-color"]=t.textColor),t.thickness&&(e["--l-divider-thickness"]=d(t.thickness)),t.margin&&(e["--l-divider-margin"]=d(t.margin)),e["--l-divider-border-style"]=t.borderStyle,e});return(e,m)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(c.value),style:i.normalizeStyle(a.value),role:"separator","aria-orientation":e.direction},[n.value&&e.direction==="horizontal"?(i.openBlock(),i.createElementBlock("span",p,[i.renderSlot(e.$slots,"default")])):i.createCommentVNode("",!0)],14,u))}}),r=v;r.install=o=>{o.component("LDivider",r)};exports.LDivider=r;exports.default=r;exports.dividerProps=l;
@@ -0,0 +1,96 @@
1
+ import '../style/divider.css';
2
+ import { defineComponent as p, useSlots as m, computed as o, openBlock as d, createElementBlock as l, normalizeStyle as v, normalizeClass as y, renderSlot as S, createCommentVNode as f } from "vue";
3
+ const h = {
4
+ /**
5
+ * 分割线方向
6
+ * @default 'horizontal'
7
+ */
8
+ direction: {
9
+ type: String,
10
+ default: "horizontal"
11
+ },
12
+ /**
13
+ * 文本插槽内容位置 (仅在 direction='horizontal' 时有效)
14
+ * @default 'center'
15
+ */
16
+ contentPosition: {
17
+ type: String,
18
+ default: "center"
19
+ },
20
+ /**
21
+ * 边框样式
22
+ * @default 'solid'
23
+ */
24
+ borderStyle: {
25
+ type: String,
26
+ default: "solid"
27
+ },
28
+ /**
29
+ * 线条厚度
30
+ * @default 1
31
+ */
32
+ thickness: {
33
+ type: [Number, String],
34
+ default: 1
35
+ },
36
+ /**
37
+ * 自定义颜色 (仅线条)
38
+ */
39
+ color: {
40
+ type: String
41
+ },
42
+ /**
43
+ * 自定义文字颜色
44
+ */
45
+ textColor: {
46
+ type: String
47
+ },
48
+ /**
49
+ * 自定义间距
50
+ */
51
+ margin: {
52
+ type: [Number, String]
53
+ }
54
+ }, g = ["aria-orientation"], _ = {
55
+ key: 0,
56
+ class: "l-divider__text"
57
+ }, b = /* @__PURE__ */ p({
58
+ name: "Divider",
59
+ __name: "Divider",
60
+ props: h,
61
+ setup(i) {
62
+ const t = i, a = m(), r = o(() => !!a.default), c = o(() => [
63
+ "l-divider",
64
+ `l-divider--${t.direction}`,
65
+ {
66
+ "l-divider--with-text": r.value && t.direction === "horizontal",
67
+ [`l-divider--with-text-${t.contentPosition}`]: r.value && t.direction === "horizontal",
68
+ [`l-divider--${t.borderStyle}`]: t.borderStyle !== "solid"
69
+ }
70
+ ]), n = (e) => {
71
+ if (!(e == null || e === ""))
72
+ return /^\d+$/.test(String(e)) ? `${e}px` : String(e);
73
+ }, u = o(() => {
74
+ const e = {};
75
+ return t.color && (e["--l-divider-color"] = t.color), t.textColor && (e["--l-divider-text-color"] = t.textColor), t.thickness && (e["--l-divider-thickness"] = n(t.thickness)), t.margin && (e["--l-divider-margin"] = n(t.margin)), e["--l-divider-border-style"] = t.borderStyle, e;
76
+ });
77
+ return (e, k) => (d(), l("div", {
78
+ class: y(c.value),
79
+ style: v(u.value),
80
+ role: "separator",
81
+ "aria-orientation": e.direction
82
+ }, [
83
+ r.value && e.direction === "horizontal" ? (d(), l("span", _, [
84
+ S(e.$slots, "default")
85
+ ])) : f("", !0)
86
+ ], 14, g));
87
+ }
88
+ }), s = b;
89
+ s.install = (i) => {
90
+ i.component("LDivider", s);
91
+ };
92
+ export {
93
+ s as LDivider,
94
+ s as default,
95
+ h as dividerProps
96
+ };
@@ -0,0 +1,57 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export type DividerDirection = 'horizontal' | 'vertical';
3
+ export type DividerContentPosition = 'left' | 'center' | 'right';
4
+ export type DividerBorderStyle = 'solid' | 'dashed' | 'dotted';
5
+ export declare const dividerProps: {
6
+ /**
7
+ * 分割线方向
8
+ * @default 'horizontal'
9
+ */
10
+ readonly direction: {
11
+ readonly type: PropType<DividerDirection>;
12
+ readonly default: "horizontal";
13
+ };
14
+ /**
15
+ * 文本插槽内容位置 (仅在 direction='horizontal' 时有效)
16
+ * @default 'center'
17
+ */
18
+ readonly contentPosition: {
19
+ readonly type: PropType<DividerContentPosition>;
20
+ readonly default: "center";
21
+ };
22
+ /**
23
+ * 边框样式
24
+ * @default 'solid'
25
+ */
26
+ readonly borderStyle: {
27
+ readonly type: PropType<DividerBorderStyle>;
28
+ readonly default: "solid";
29
+ };
30
+ /**
31
+ * 线条厚度
32
+ * @default 1
33
+ */
34
+ readonly thickness: {
35
+ readonly type: PropType<number | string>;
36
+ readonly default: 1;
37
+ };
38
+ /**
39
+ * 自定义颜色 (仅线条)
40
+ */
41
+ readonly color: {
42
+ readonly type: StringConstructor;
43
+ };
44
+ /**
45
+ * 自定义文字颜色
46
+ */
47
+ readonly textColor: {
48
+ readonly type: StringConstructor;
49
+ };
50
+ /**
51
+ * 自定义间距
52
+ */
53
+ readonly margin: {
54
+ readonly type: PropType<number | string>;
55
+ };
56
+ };
57
+ export type DividerProps = ExtractPropTypes<typeof dividerProps>;
@@ -0,0 +1,106 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {
9
+ drawerRef: HTMLDivElement;
10
+ };
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ readonly modelValue: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly title: {
20
+ readonly type: StringConstructor;
21
+ readonly default: "";
22
+ };
23
+ readonly placement: {
24
+ readonly type: import('vue').PropType<"left" | "right" | "top" | "bottom">;
25
+ readonly default: "right";
26
+ };
27
+ readonly size: {
28
+ readonly type: import('vue').PropType<string | number>;
29
+ readonly default: 420;
30
+ };
31
+ readonly closeOnClickModal: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: true;
34
+ };
35
+ readonly closeOnPressEscape: {
36
+ readonly type: BooleanConstructor;
37
+ readonly default: true;
38
+ };
39
+ readonly showClose: {
40
+ readonly type: BooleanConstructor;
41
+ readonly default: true;
42
+ };
43
+ readonly destroyOnClose: {
44
+ readonly type: BooleanConstructor;
45
+ readonly default: false;
46
+ };
47
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ close: (_visible: boolean) => void;
49
+ open: (_visible: boolean) => void;
50
+ "update:modelValue": (_visible: boolean) => void;
51
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
52
+ readonly modelValue: {
53
+ readonly type: BooleanConstructor;
54
+ readonly default: false;
55
+ };
56
+ readonly title: {
57
+ readonly type: StringConstructor;
58
+ readonly default: "";
59
+ };
60
+ readonly placement: {
61
+ readonly type: import('vue').PropType<"left" | "right" | "top" | "bottom">;
62
+ readonly default: "right";
63
+ };
64
+ readonly size: {
65
+ readonly type: import('vue').PropType<string | number>;
66
+ readonly default: 420;
67
+ };
68
+ readonly closeOnClickModal: {
69
+ readonly type: BooleanConstructor;
70
+ readonly default: true;
71
+ };
72
+ readonly closeOnPressEscape: {
73
+ readonly type: BooleanConstructor;
74
+ readonly default: true;
75
+ };
76
+ readonly showClose: {
77
+ readonly type: BooleanConstructor;
78
+ readonly default: true;
79
+ };
80
+ readonly destroyOnClose: {
81
+ readonly type: BooleanConstructor;
82
+ readonly default: false;
83
+ };
84
+ }>> & Readonly<{
85
+ onClose?: ((_visible: boolean) => any) | undefined;
86
+ onOpen?: ((_visible: boolean) => any) | undefined;
87
+ "onUpdate:modelValue"?: ((_visible: boolean) => any) | undefined;
88
+ }>, {
89
+ readonly size: string | number;
90
+ readonly placement: "top" | "bottom" | "left" | "right";
91
+ readonly modelValue: boolean;
92
+ readonly title: string;
93
+ readonly closeOnClickModal: boolean;
94
+ readonly closeOnPressEscape: boolean;
95
+ readonly showClose: boolean;
96
+ readonly destroyOnClose: boolean;
97
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
98
+ drawerRef: HTMLDivElement;
99
+ }, any>;
100
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
101
+ export default _default;
102
+ type __VLS_WithTemplateSlots<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Drawer } from './Drawer.vue';
3
+ export declare const LDrawer: typeof Drawer & Plugin;
4
+ export * from './types';
5
+ export default LDrawer;