vlite3 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/components/Accordion/Accordion.vue.d.ts +44 -0
  3. package/components/Accordion/Accordion.vue.js +95 -0
  4. package/components/Accordion/Accordion.vue2.js +4 -0
  5. package/components/Accordion/AccordionContent.vue.d.ts +22 -0
  6. package/components/Accordion/AccordionContent.vue.js +7 -0
  7. package/components/Accordion/AccordionContent.vue2.js +47 -0
  8. package/components/Accordion/AccordionItem.vue.d.ts +56 -0
  9. package/components/Accordion/AccordionItem.vue.js +115 -0
  10. package/components/Accordion/AccordionItem.vue2.js +4 -0
  11. package/components/Accordion/AccordionTrigger.vue.d.ts +43 -0
  12. package/components/Accordion/AccordionTrigger.vue.js +94 -0
  13. package/components/Accordion/AccordionTrigger.vue2.js +4 -0
  14. package/components/Accordion/index.d.ts +5 -0
  15. package/components/Accordion/types.d.ts +33 -0
  16. package/components/Alert.vue.d.ts +36 -0
  17. package/components/Alert.vue.js +84 -0
  18. package/components/Alert.vue2.js +4 -0
  19. package/components/Avatar.vue.d.ts +32 -0
  20. package/components/Avatar.vue.js +78 -0
  21. package/components/Avatar.vue2.js +4 -0
  22. package/components/AvatarUploader/AvatarUploader.vue.d.ts +32 -0
  23. package/components/AvatarUploader/AvatarUploader.vue.js +99 -0
  24. package/components/AvatarUploader/AvatarUploader.vue2.js +4 -0
  25. package/{src/components/AvatarUploader/index.ts → components/AvatarUploader/index.d.ts} +2 -2
  26. package/components/Badge.vue.d.ts +25 -0
  27. package/components/Badge.vue.js +27 -0
  28. package/components/Badge.vue2.js +4 -0
  29. package/components/Button.vue.d.ts +26 -0
  30. package/components/Button.vue.js +107 -0
  31. package/components/Button.vue2.js +4 -0
  32. package/components/ButtonGroup.vue.d.ts +29 -0
  33. package/components/ButtonGroup.vue.js +7 -0
  34. package/components/ButtonGroup.vue2.js +30 -0
  35. package/components/Carousel/Carousel.vue.d.ts +847 -0
  36. package/components/Carousel/Carousel.vue.js +7 -0
  37. package/components/Carousel/Carousel.vue2.js +68 -0
  38. package/components/Carousel/index.d.ts +2 -0
  39. package/components/Carousel/types.d.ts +24 -0
  40. package/components/CheckBox.vue.d.ts +27 -0
  41. package/components/CheckBox.vue.js +115 -0
  42. package/components/CheckBox.vue2.js +4 -0
  43. package/components/Chip/Chip.vue.d.ts +33 -0
  44. package/components/Chip/Chip.vue.js +113 -0
  45. package/components/Chip/Chip.vue2.js +4 -0
  46. package/components/Chip/index.d.ts +2 -0
  47. package/components/Chip/types.d.ts +12 -0
  48. package/components/ChoiceBox/ChoiceBox.vue.d.ts +32 -0
  49. package/components/ChoiceBox/ChoiceBox.vue.js +141 -0
  50. package/components/ChoiceBox/ChoiceBox.vue2.js +4 -0
  51. package/components/ChoiceBox/index.d.ts +2 -0
  52. package/components/ColorPicker/ColorIro.vue.d.ts +18 -0
  53. package/components/ColorPicker/ColorIro.vue.js +142 -0
  54. package/components/ColorPicker/ColorIro.vue3.js +5 -0
  55. package/components/ColorPicker/ColorPicker.vue.d.ts +22 -0
  56. package/components/ColorPicker/ColorPicker.vue.js +56 -0
  57. package/components/ColorPicker/ColorPicker.vue2.js +4 -0
  58. package/components/ConfirmationModal.vue.d.ts +39 -0
  59. package/components/ConfirmationModal.vue.js +55 -0
  60. package/components/ConfirmationModal.vue2.js +4 -0
  61. package/components/DataTable/DataTable.vue.d.ts +60 -0
  62. package/components/DataTable/DataTable.vue.js +7 -0
  63. package/components/DataTable/DataTable.vue2.js +310 -0
  64. package/components/DataTable/DataTableHeader.vue.d.ts +14 -0
  65. package/components/DataTable/DataTableHeader.vue.js +49 -0
  66. package/components/DataTable/DataTableHeader.vue2.js +4 -0
  67. package/components/DataTable/DataTableRow.vue.d.ts +51 -0
  68. package/components/DataTable/DataTableRow.vue.js +114 -0
  69. package/components/DataTable/DataTableRow.vue2.js +4 -0
  70. package/components/DataTable/DataTableToolbar.vue.d.ts +31 -0
  71. package/components/DataTable/DataTableToolbar.vue.js +45 -0
  72. package/components/DataTable/DataTableToolbar.vue2.js +4 -0
  73. package/components/DataTable/index.d.ts +4 -0
  74. package/components/DataTable/types.d.ts +75 -0
  75. package/components/DatePicker.vue.d.ts +44 -0
  76. package/components/DatePicker.vue.js +84 -0
  77. package/components/DatePicker.vue2.js +4 -0
  78. package/components/Dropdown/Dropdown.vue.d.ts +105 -0
  79. package/components/Dropdown/Dropdown.vue.js +206 -0
  80. package/components/Dropdown/Dropdown.vue2.js +4 -0
  81. package/components/Dropdown/DropdownBooleanItem.vue.d.ts +12 -0
  82. package/components/Dropdown/DropdownBooleanItem.vue.js +41 -0
  83. package/components/Dropdown/DropdownBooleanItem.vue2.js +4 -0
  84. package/components/Dropdown/DropdownGroupedLayout.vue.d.ts +21 -0
  85. package/components/Dropdown/DropdownGroupedLayout.vue.js +73 -0
  86. package/components/Dropdown/DropdownGroupedLayout.vue2.js +4 -0
  87. package/components/Dropdown/DropdownItem.vue.d.ts +35 -0
  88. package/components/Dropdown/DropdownItem.vue.js +56 -0
  89. package/components/Dropdown/DropdownItem.vue2.js +4 -0
  90. package/components/Dropdown/DropdownMenu.vue.d.ts +73 -0
  91. package/components/Dropdown/DropdownMenu.vue.js +232 -0
  92. package/components/Dropdown/DropdownMenu.vue2.js +4 -0
  93. package/components/Dropdown/DropdownTrigger.vue.d.ts +15 -0
  94. package/components/Dropdown/DropdownTrigger.vue.js +26 -0
  95. package/components/Dropdown/DropdownTrigger.vue2.js +4 -0
  96. package/components/Dropdown/composables/useDropdownIds.d.ts +5 -0
  97. package/components/Dropdown/composables/useDropdownIds.js +20 -0
  98. package/components/Dropdown/composables/useDropdownNavigation.d.ts +19 -0
  99. package/components/Dropdown/composables/useDropdownNavigation.js +49 -0
  100. package/components/Dropdown/composables/useDropdownSelection.d.ts +16 -0
  101. package/components/Dropdown/composables/useDropdownSelection.js +41 -0
  102. package/components/Dropdown/index.d.ts +6 -0
  103. package/components/FilePicker/FilePicker.vue.d.ts +65 -0
  104. package/components/FilePicker/FilePicker.vue.js +285 -0
  105. package/components/FilePicker/FilePicker.vue2.js +4 -0
  106. package/components/FilePicker/index.d.ts +2 -0
  107. package/components/FileTree/FileTree.vue.d.ts +20 -0
  108. package/components/FileTree/FileTree.vue.js +139 -0
  109. package/components/FileTree/FileTree.vue2.js +4 -0
  110. package/components/FileTree/FileTreeNode.vue.d.ts +28 -0
  111. package/components/FileTree/FileTreeNode.vue.js +184 -0
  112. package/components/FileTree/FileTreeNode.vue2.js +4 -0
  113. package/components/FileTree/index.d.ts +4 -0
  114. package/components/FileTree/types.d.ts +36 -0
  115. package/components/FileTree/useTreeSelection.d.ts +12 -0
  116. package/components/FileTree/useTreeSelection.js +25 -0
  117. package/components/Form/CustomFields.vue.d.ts +38 -0
  118. package/components/Form/CustomFields.vue.js +7 -0
  119. package/components/Form/CustomFields.vue2.js +161 -0
  120. package/components/Form/Form.vue.d.ts +94 -0
  121. package/components/Form/Form.vue.js +7 -0
  122. package/components/Form/Form.vue2.js +238 -0
  123. package/components/Form/FormField.vue.d.ts +28 -0
  124. package/components/Form/FormField.vue.js +207 -0
  125. package/components/Form/FormField.vue2.js +4 -0
  126. package/components/Form/FormFields.vue.d.ts +29 -0
  127. package/components/Form/FormFields.vue.js +7 -0
  128. package/components/Form/FormFields.vue2.js +95 -0
  129. package/components/Form/composables/useFileUpload.d.ts +24 -0
  130. package/components/Form/composables/useFileUpload.js +40 -0
  131. package/components/Form/composables/useForm.d.ts +48 -0
  132. package/components/Form/composables/useForm.js +109 -0
  133. package/components/Form/index.d.ts +9 -0
  134. package/components/Form/types.d.ts +167 -0
  135. package/components/Form/utils/form.utils.d.ts +44 -0
  136. package/components/Form/utils/form.utils.js +97 -0
  137. package/components/Heatmap/Heatmap.vue.d.ts +26 -0
  138. package/components/Heatmap/Heatmap.vue.js +7 -0
  139. package/components/Heatmap/Heatmap.vue2.js +326 -0
  140. package/components/Heatmap/index.d.ts +2 -0
  141. package/components/Heatmap/types.d.ts +66 -0
  142. package/components/Icon.vue.d.ts +7 -0
  143. package/components/Icon.vue.js +25 -0
  144. package/components/Icon.vue2.js +4 -0
  145. package/components/IconPicker.vue.d.ts +38 -0
  146. package/components/IconPicker.vue.js +124 -0
  147. package/components/IconPicker.vue2.js +4 -0
  148. package/components/Input.vue.d.ts +54 -0
  149. package/components/Input.vue.js +267 -0
  150. package/components/Input.vue2.js +4 -0
  151. package/components/Label.vue.d.ts +23 -0
  152. package/components/Label.vue.js +23 -0
  153. package/components/Label.vue2.js +4 -0
  154. package/components/Logo.vue.d.ts +2 -0
  155. package/components/Logo.vue.js +10 -0
  156. package/components/Logo.vue2.js +4 -0
  157. package/components/Masonry/Masonry.vue.d.ts +31 -0
  158. package/components/Masonry/Masonry.vue.js +7 -0
  159. package/components/Masonry/Masonry.vue2.js +83 -0
  160. package/components/Masonry/index.d.ts +2 -0
  161. package/components/Masonry/types.d.ts +33 -0
  162. package/components/Masonry/types.js +10 -0
  163. package/components/Modal.vue.d.ts +52 -0
  164. package/components/Modal.vue.js +116 -0
  165. package/components/Modal.vue2.js +4 -0
  166. package/components/MultiSelect/MultiSelect.vue.d.ts +40 -0
  167. package/components/MultiSelect/MultiSelect.vue.js +126 -0
  168. package/components/MultiSelect/MultiSelect.vue2.js +4 -0
  169. package/components/MultiSelect/index.d.ts +1 -0
  170. package/components/Navbar/Navbar.vue.d.ts +51 -0
  171. package/components/Navbar/Navbar.vue.js +198 -0
  172. package/components/Navbar/Navbar.vue2.js +4 -0
  173. package/components/Navbar/NavbarGroup.vue.d.ts +24 -0
  174. package/components/Navbar/NavbarGroup.vue.js +23 -0
  175. package/components/Navbar/NavbarGroup.vue2.js +4 -0
  176. package/components/Navbar/NavbarItem.vue.d.ts +40 -0
  177. package/components/Navbar/NavbarItem.vue.js +104 -0
  178. package/components/Navbar/NavbarItem.vue2.js +4 -0
  179. package/components/Navbar/index.d.ts +3 -0
  180. package/components/OTPInput/OTPInput.vue.d.ts +33 -0
  181. package/components/OTPInput/OTPInput.vue.js +115 -0
  182. package/components/OTPInput/OTPInput.vue2.js +4 -0
  183. package/components/OTPInput/index.d.ts +1 -0
  184. package/components/Pagination/Pagination.vue.d.ts +34 -0
  185. package/components/Pagination/Pagination.vue.js +196 -0
  186. package/components/Pagination/Pagination.vue2.js +4 -0
  187. package/components/Pagination/index.d.ts +1 -0
  188. package/components/PricingPlan/PricingPlan.vue.d.ts +22 -0
  189. package/components/PricingPlan/PricingPlan.vue.js +55 -0
  190. package/components/PricingPlan/PricingPlan.vue2.js +4 -0
  191. package/components/PricingPlan/PricingPlanItem.vue.d.ts +17 -0
  192. package/components/PricingPlan/PricingPlanItem.vue.js +94 -0
  193. package/components/PricingPlan/PricingPlanItem.vue2.js +4 -0
  194. package/components/PricingPlan/index.d.ts +3 -0
  195. package/components/PricingPlan/types.d.ts +25 -0
  196. package/components/SidePanel.vue.d.ts +64 -0
  197. package/components/SidePanel.vue.js +7 -0
  198. package/components/SidePanel.vue2.js +131 -0
  199. package/components/SidebarMenu/SidebarMenu.vue.d.ts +11 -0
  200. package/components/SidebarMenu/SidebarMenu.vue.js +78 -0
  201. package/components/SidebarMenu/SidebarMenu.vue2.js +4 -0
  202. package/components/SidebarMenu/SidebarMenuItem.vue.d.ts +9 -0
  203. package/components/SidebarMenu/SidebarMenuItem.vue.js +269 -0
  204. package/components/SidebarMenu/SidebarMenuItem.vue3.js +5 -0
  205. package/components/SidebarMenu/index.d.ts +3 -0
  206. package/components/SidebarMenu/types.d.ts +35 -0
  207. package/components/Slider.vue.d.ts +31 -0
  208. package/components/Slider.vue.js +157 -0
  209. package/components/Slider.vue2.js +4 -0
  210. package/components/Switch.vue.d.ts +16 -0
  211. package/components/Switch.vue.js +40 -0
  212. package/components/Switch.vue2.js +4 -0
  213. package/components/Tabes/Tabes.vue.d.ts +21 -0
  214. package/components/Tabes/Tabes.vue.js +75 -0
  215. package/components/Tabes/Tabes.vue2.js +4 -0
  216. package/components/Tabes/index.d.ts +2 -0
  217. package/components/Tabes/types.d.ts +8 -0
  218. package/components/Textarea.vue.d.ts +22 -0
  219. package/components/Textarea.vue.js +34 -0
  220. package/components/Textarea.vue2.js +4 -0
  221. package/components/ThemeToggle.vue.d.ts +2 -0
  222. package/components/ThemeToggle.vue.js +18 -0
  223. package/components/ThemeToggle.vue2.js +4 -0
  224. package/components/Timeline.vue.d.ts +39 -0
  225. package/components/Timeline.vue.js +174 -0
  226. package/components/Timeline.vue2.js +4 -0
  227. package/components/ToastNotification.vue.d.ts +7 -0
  228. package/components/ToastNotification.vue.js +7 -0
  229. package/components/ToastNotification.vue2.js +151 -0
  230. package/components/Tooltip.vue.d.ts +31 -0
  231. package/components/Tooltip.vue.js +45 -0
  232. package/components/Tooltip.vue2.js +4 -0
  233. package/components/Workbook/Sheet.vue.d.ts +38 -0
  234. package/components/Workbook/Sheet.vue.js +141 -0
  235. package/components/Workbook/Sheet.vue2.js +4 -0
  236. package/components/Workbook/Workbook.vue.d.ts +54 -0
  237. package/components/Workbook/Workbook.vue.js +7 -0
  238. package/components/Workbook/Workbook.vue2.js +146 -0
  239. package/components/Workbook/WorkbookAddButton.vue.d.ts +6 -0
  240. package/components/Workbook/WorkbookAddButton.vue.js +20 -0
  241. package/components/Workbook/WorkbookAddButton.vue2.js +4 -0
  242. package/components/Workbook/index.d.ts +3 -0
  243. package/components/Workbook/types.d.ts +34 -0
  244. package/composables/useKeyStroke.d.ts +21 -0
  245. package/composables/useKeyStroke.js +93 -0
  246. package/composables/useNotifications.d.ts +113 -0
  247. package/composables/useNotifications.js +99 -0
  248. package/composables/useTheme.d.ts +6 -0
  249. package/composables/useTheme.js +32 -0
  250. package/core/config.d.ts +29 -0
  251. package/core/config.js +12 -0
  252. package/core/index.d.ts +31 -0
  253. package/core/index.js +15 -0
  254. package/directives/vRipple.d.ts +4 -0
  255. package/directives/vRipple.js +17 -0
  256. package/index.d.ts +49 -0
  257. package/index.js +156 -0
  258. package/package.json +2 -2
  259. package/style.css +590 -0
  260. package/types/alert.type.d.ts +10 -0
  261. package/{src/types/avatar.type.ts → types/avatar.type.d.ts} +8 -9
  262. package/types/button.d.ts +15 -0
  263. package/types/buttongroup.type.d.ts +1 -0
  264. package/{src/types/config.type.ts → types/config.type.d.ts} +13 -16
  265. package/types/form.type.d.ts +45 -0
  266. package/types/index.d.ts +10 -0
  267. package/types/navbar.type.d.ts +27 -0
  268. package/types/sidepanel.type.d.ts +13 -0
  269. package/types/styles.d.ts +28 -0
  270. package/types/timeline.type.d.ts +9 -0
  271. package/{src/utils/functions.ts → utils/functions.d.ts} +1 -9
  272. package/utils/functions.js +11 -0
  273. package/utils/index.d.ts +2 -0
  274. package/utils/object.d.ts +6 -0
  275. package/utils/object.js +14 -0
  276. package/.vscode/extensions.json +0 -3
  277. package/LICENSE +0 -21
  278. package/index.html +0 -16
  279. package/scripts/bundle-css.js +0 -45
  280. package/src/App.vue +0 -7
  281. package/src/components/Accordion/Accordion.vue +0 -139
  282. package/src/components/Accordion/AccordionContent.vue +0 -63
  283. package/src/components/Accordion/AccordionItem.vue +0 -163
  284. package/src/components/Accordion/AccordionTrigger.vue +0 -125
  285. package/src/components/Accordion/index.ts +0 -5
  286. package/src/components/Accordion/types.ts +0 -41
  287. package/src/components/Alert.vue +0 -112
  288. package/src/components/Avatar.vue +0 -110
  289. package/src/components/AvatarUploader/AvatarUploader.vue +0 -129
  290. package/src/components/Badge.vue +0 -45
  291. package/src/components/Button.vue +0 -122
  292. package/src/components/ButtonGroup.vue +0 -173
  293. package/src/components/Carousel/Carousel.vue +0 -84
  294. package/src/components/Carousel/index.ts +0 -2
  295. package/src/components/Carousel/types.ts +0 -25
  296. package/src/components/CheckBox.vue +0 -132
  297. package/src/components/Chip/Chip.vue +0 -158
  298. package/src/components/Chip/index.ts +0 -2
  299. package/src/components/Chip/types.ts +0 -23
  300. package/src/components/ChoiceBox/ChoiceBox.vue +0 -181
  301. package/src/components/ChoiceBox/index.ts +0 -2
  302. package/src/components/ColorPicker/ColorIro.vue +0 -207
  303. package/src/components/ColorPicker/ColorPicker.vue +0 -61
  304. package/src/components/ConfirmationModal.vue +0 -46
  305. package/src/components/DataTable/DataTable.vue +0 -478
  306. package/src/components/DataTable/DataTableHeader.vue +0 -78
  307. package/src/components/DataTable/DataTableRow.vue +0 -171
  308. package/src/components/DataTable/DataTableToolbar.vue +0 -45
  309. package/src/components/DataTable/index.ts +0 -5
  310. package/src/components/DataTable/types.ts +0 -85
  311. package/src/components/DatePicker.vue +0 -102
  312. package/src/components/Dropdown/Dropdown.vue +0 -348
  313. package/src/components/Dropdown/DropdownBooleanItem.vue +0 -40
  314. package/src/components/Dropdown/DropdownGroupedLayout.vue +0 -115
  315. package/src/components/Dropdown/DropdownItem.vue +0 -56
  316. package/src/components/Dropdown/DropdownMenu.vue +0 -374
  317. package/src/components/Dropdown/DropdownTrigger.vue +0 -27
  318. package/src/components/Dropdown/composables/useDropdownIds.ts +0 -27
  319. package/src/components/Dropdown/composables/useDropdownNavigation.ts +0 -109
  320. package/src/components/Dropdown/composables/useDropdownSelection.ts +0 -106
  321. package/src/components/Dropdown/index.ts +0 -6
  322. package/src/components/FilePicker/FilePicker.vue +0 -459
  323. package/src/components/FilePicker/index.ts +0 -2
  324. package/src/components/FileTree/FileTree.vue +0 -334
  325. package/src/components/FileTree/FileTreeNode.vue +0 -225
  326. package/src/components/FileTree/index.ts +0 -2
  327. package/src/components/FileTree/types.ts +0 -31
  328. package/src/components/FileTree/useTreeSelection.ts +0 -66
  329. package/src/components/Form/CustomFields.vue +0 -294
  330. package/src/components/Form/Form.vue +0 -406
  331. package/src/components/Form/FormField.vue +0 -404
  332. package/src/components/Form/FormFields.vue +0 -161
  333. package/src/components/Form/composables/useFileUpload.ts +0 -112
  334. package/src/components/Form/composables/useForm.ts +0 -356
  335. package/src/components/Form/index.ts +0 -16
  336. package/src/components/Form/types.ts +0 -203
  337. package/src/components/Form/utils/form.utils.ts +0 -209
  338. package/src/components/Heatmap/Heatmap.vue +0 -629
  339. package/src/components/Heatmap/index.ts +0 -2
  340. package/src/components/Heatmap/types.ts +0 -84
  341. package/src/components/Icon.vue +0 -47
  342. package/src/components/IconPicker.vue +0 -138
  343. package/src/components/Input.vue +0 -366
  344. package/src/components/Label.vue +0 -25
  345. package/src/components/Logo.vue +0 -5
  346. package/src/components/Masonry/Masonry.vue +0 -148
  347. package/src/components/Masonry/index.ts +0 -2
  348. package/src/components/Masonry/types.ts +0 -44
  349. package/src/components/Modal.vue +0 -135
  350. package/src/components/MultiSelect/MultiSelect.vue +0 -176
  351. package/src/components/MultiSelect/index.ts +0 -1
  352. package/src/components/Navbar/Navbar.vue +0 -277
  353. package/src/components/Navbar/NavbarGroup.vue +0 -27
  354. package/src/components/Navbar/NavbarItem.vue +0 -124
  355. package/src/components/Navbar/index.ts +0 -3
  356. package/src/components/OTPInput/OTPInput.vue +0 -220
  357. package/src/components/OTPInput/index.ts +0 -1
  358. package/src/components/Pagination/Pagination.vue +0 -238
  359. package/src/components/Pagination/index.ts +0 -1
  360. package/src/components/PricingPlan/PricingPlan.vue +0 -102
  361. package/src/components/PricingPlan/PricingPlanItem.vue +0 -148
  362. package/src/components/PricingPlan/index.ts +0 -3
  363. package/src/components/PricingPlan/types.ts +0 -29
  364. package/src/components/SidePanel.vue +0 -184
  365. package/src/components/SidebarMenu/SidebarMenu.vue +0 -146
  366. package/src/components/SidebarMenu/SidebarMenuItem.vue +0 -333
  367. package/src/components/SidebarMenu/index.ts +0 -3
  368. package/src/components/SidebarMenu/types.ts +0 -54
  369. package/src/components/Slider.vue +0 -181
  370. package/src/components/Switch.vue +0 -51
  371. package/src/components/Tabes/Tabes.vue +0 -112
  372. package/src/components/Tabes/index.ts +0 -2
  373. package/src/components/Tabes/types.ts +0 -17
  374. package/src/components/Textarea.vue +0 -48
  375. package/src/components/ThemeToggle.vue +0 -14
  376. package/src/components/Timeline.vue +0 -250
  377. package/src/components/ToastNotification.vue +0 -257
  378. package/src/components/Tooltip.vue +0 -25
  379. package/src/components/Workbook/Sheet.vue +0 -185
  380. package/src/components/Workbook/Workbook.vue +0 -231
  381. package/src/components/Workbook/WorkbookAddButton.vue +0 -17
  382. package/src/components/Workbook/index.ts +0 -3
  383. package/src/components/Workbook/types.ts +0 -43
  384. package/src/composables/useKeyStroke.ts +0 -291
  385. package/src/composables/useNotifications.ts +0 -206
  386. package/src/composables/useTheme.ts +0 -55
  387. package/src/core/config.ts +0 -37
  388. package/src/core/index.ts +0 -49
  389. package/src/css/base.css +0 -148
  390. package/src/css/input.css +0 -61
  391. package/src/css/main.css +0 -6
  392. package/src/css/theme.css +0 -344
  393. package/src/directives/vRipple.ts +0 -38
  394. package/src/index.ts +0 -53
  395. package/src/main.ts +0 -5
  396. package/src/playground/Playground.vue +0 -429
  397. package/src/playground/composables/useGetUsers.ts +0 -538
  398. package/src/playground/demos/AccordionDemo.vue +0 -361
  399. package/src/playground/demos/AlertDemo.vue +0 -36
  400. package/src/playground/demos/AvatarDemo.vue +0 -41
  401. package/src/playground/demos/AvatarUploaderDemo.vue +0 -133
  402. package/src/playground/demos/BadgeDemo.vue +0 -31
  403. package/src/playground/demos/BadgesDemo.vue +0 -26
  404. package/src/playground/demos/ButtonDemo.vue +0 -99
  405. package/src/playground/demos/ButtonGroupDemo.vue +0 -39
  406. package/src/playground/demos/ButtonsDemo.vue +0 -111
  407. package/src/playground/demos/CarouselDemo.vue +0 -135
  408. package/src/playground/demos/CheckBoxDemo.vue +0 -43
  409. package/src/playground/demos/ChipDemo.vue +0 -190
  410. package/src/playground/demos/ChoiceBoxDemo.vue +0 -160
  411. package/src/playground/demos/ColorPickerDemo.vue +0 -30
  412. package/src/playground/demos/ColorsDemo.vue +0 -295
  413. package/src/playground/demos/DataTableDemo.vue +0 -215
  414. package/src/playground/demos/DatePickerDemo.vue +0 -43
  415. package/src/playground/demos/DisplayDemo.vue +0 -101
  416. package/src/playground/demos/DropdownDemo.vue +0 -651
  417. package/src/playground/demos/FilePickerDemo.vue +0 -175
  418. package/src/playground/demos/FileTreeDemo.vue +0 -150
  419. package/src/playground/demos/FormDemo.vue +0 -1144
  420. package/src/playground/demos/HeatmapDemo.vue +0 -467
  421. package/src/playground/demos/IconPickerDemo.vue +0 -27
  422. package/src/playground/demos/InputDemo.vue +0 -80
  423. package/src/playground/demos/InputsDemo.vue +0 -127
  424. package/src/playground/demos/LabelDemo.vue +0 -32
  425. package/src/playground/demos/MasonryDemo.vue +0 -241
  426. package/src/playground/demos/ModalDemo.vue +0 -67
  427. package/src/playground/demos/MultiSelectDemo.vue +0 -300
  428. package/src/playground/demos/NavbarDemo.vue +0 -59
  429. package/src/playground/demos/NavigationDemo.vue +0 -116
  430. package/src/playground/demos/OTPInputDemo.vue +0 -170
  431. package/src/playground/demos/OverlaysDemo.vue +0 -104
  432. package/src/playground/demos/PaginationDemo.vue +0 -130
  433. package/src/playground/demos/PricingPlanDemo.vue +0 -110
  434. package/src/playground/demos/SidePanelDemo.vue +0 -45
  435. package/src/playground/demos/SidebarMenuDemo.vue +0 -170
  436. package/src/playground/demos/SliderDemo.vue +0 -48
  437. package/src/playground/demos/SwitchDemo.vue +0 -40
  438. package/src/playground/demos/TabesDemo.vue +0 -178
  439. package/src/playground/demos/TextareaDemo.vue +0 -31
  440. package/src/playground/demos/ThemeToggleDemo.vue +0 -20
  441. package/src/playground/demos/TimelineDemo.vue +0 -43
  442. package/src/playground/demos/ToastDemo.vue +0 -111
  443. package/src/playground/demos/TooltipDemo.vue +0 -30
  444. package/src/playground/demos/WorkbookDemo.vue +0 -227
  445. package/src/types/alert.type.ts +0 -11
  446. package/src/types/button.ts +0 -36
  447. package/src/types/buttongroup.type.ts +0 -1
  448. package/src/types/form.type.ts +0 -75
  449. package/src/types/index.ts +0 -11
  450. package/src/types/navbar.type.ts +0 -28
  451. package/src/types/sidepanel.type.ts +0 -14
  452. package/src/types/styles.ts +0 -42
  453. package/src/types/timeline.type.ts +0 -11
  454. package/src/utils/index.ts +0 -2
  455. package/src/utils/object.ts +0 -40
  456. package/tsconfig.app.json +0 -27
  457. package/tsconfig.json +0 -48
  458. package/tsconfig.node.json +0 -18
  459. package/tsconfig.node.tsbuildinfo +0 -1
  460. package/tsconfig.tsbuildinfo +0 -1
  461. package/vercel.json +0 -8
  462. package/vite.config.d.ts +0 -2
  463. package/vite.config.js +0 -63
  464. package/vite.config.ts +0 -64
  465. package/vite.config.vercel.ts +0 -17
@@ -0,0 +1,104 @@
1
+ import { defineComponent as k, computed as l, inject as C, openBlock as r, createBlock as s, withCtx as f, resolveDynamicComponent as $, normalizeClass as i, createCommentVNode as c, createElementBlock as m, renderSlot as v, createTextVNode as j, toDisplayString as w } from "vue";
2
+ import h from "../Icon.vue.js";
3
+ import B from "../Tooltip.vue.js";
4
+ const z = /* @__PURE__ */ k({
5
+ __name: "NavbarItem",
6
+ props: {
7
+ to: {},
8
+ href: {},
9
+ label: {},
10
+ icon: {},
11
+ iconRight: {},
12
+ active: { type: Boolean, default: !1 },
13
+ disabled: { type: Boolean, default: !1 },
14
+ class: { default: "" },
15
+ orientation: { default: "horizontal" },
16
+ variant: { default: "ghost" }
17
+ },
18
+ emits: ["click"],
19
+ setup(o, { emit: b }) {
20
+ const e = o, g = b, u = l(() => e.href && (e.href.startsWith("http") || e.href.startsWith("//"))), d = l(() => e.to ? "router-link" : e.href ? "a" : "button"), p = C("navbar-context", null), n = l(() => p?.compact.value || !1), x = l(() => {
21
+ const t = "group flex items-center gap-2 px-3 py-2 text-sm font-medium transition-all duration-200 rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none cursor-pointer", a = n.value ? "justify-center" : "";
22
+ return e.variant === "ghost" ? [
23
+ t,
24
+ a,
25
+ "hover:bg-accent hover:text-foreground text-muted-foreground",
26
+ e.active ? "bg-accent text-accent-foreground font-semibold" : "text-muted-foreground",
27
+ e.class
28
+ ].join(" ") : e.variant === "pill" ? [
29
+ t,
30
+ a,
31
+ e.active ? "bg-primary text-primary-fg shadow-sm" : "text-muted-foreground hover:bg-accent hover:text-foreground",
32
+ e.class
33
+ ].join(" ") : e.variant === "underline" ? [
34
+ t,
35
+ a,
36
+ "rounded-none border-b-2",
37
+ e.active ? "text-primary border-primary" : "text-muted-foreground border-transparent hover:border-border hover:text-foreground",
38
+ e.class
39
+ ].join(" ") : [
40
+ t,
41
+ a,
42
+ "hover:text-foreground transition-colors",
43
+ e.active ? "text-foreground font-semibold" : "text-muted-foreground",
44
+ e.class
45
+ ].join(" ");
46
+ }), y = (t) => {
47
+ if (e.disabled) {
48
+ t.preventDefault();
49
+ return;
50
+ }
51
+ g("click", t);
52
+ };
53
+ return (t, a) => (r(), s(B, {
54
+ content: o.label || (typeof t.$slots.default == "string" ? t.$slots.default : ""),
55
+ placement: "right",
56
+ disabled: !n.value,
57
+ class: "w-full"
58
+ }, {
59
+ default: f(() => [
60
+ (r(), s($(d.value), {
61
+ to: o.to,
62
+ href: o.href,
63
+ type: d.value === "button" ? "button" : void 0,
64
+ target: u.value ? "_blank" : void 0,
65
+ rel: u.value ? "noopener noreferrer" : void 0,
66
+ class: i(x.value),
67
+ onClick: y
68
+ }, {
69
+ default: f(() => [
70
+ o.icon ? (r(), s(h, {
71
+ key: 0,
72
+ icon: o.icon,
73
+ class: i(["h-4 w-4 shrink-0 transition-colors", o.active ? "text-current" : "text-muted-foreground group-hover:text-current"])
74
+ }, null, 8, ["icon", "class"])) : c("", !0),
75
+ o.label || t.$slots.default ? (r(), m("span", {
76
+ key: 1,
77
+ class: i(["flex-1 truncate text-left", { "md:hidden": n.value }])
78
+ }, [
79
+ v(t.$slots, "default", {}, () => [
80
+ j(w(o.label), 1)
81
+ ])
82
+ ], 2)) : c("", !0),
83
+ o.iconRight ? (r(), s(h, {
84
+ key: 2,
85
+ icon: o.iconRight,
86
+ class: i(["h-4 w-4 shrink-0 opacity-70", { "md:hidden": n.value }])
87
+ }, null, 8, ["icon", "class"])) : c("", !0),
88
+ t.$slots.badge ? (r(), m("div", {
89
+ key: 3,
90
+ class: i(["ml-auto", { "md:hidden": n.value }])
91
+ }, [
92
+ v(t.$slots, "badge")
93
+ ], 2)) : c("", !0)
94
+ ]),
95
+ _: 3
96
+ }, 8, ["to", "href", "type", "target", "rel", "class"]))
97
+ ]),
98
+ _: 3
99
+ }, 8, ["content", "disabled"]));
100
+ }
101
+ });
102
+ export {
103
+ z as default
104
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./NavbarItem.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Navbar } from './Navbar.vue';
2
+ export { default as NavbarItem } from './NavbarItem.vue';
3
+ export { default as NavbarGroup } from './NavbarGroup.vue';
@@ -0,0 +1,33 @@
1
+ interface Props {
2
+ length?: number;
3
+ modelValue?: string;
4
+ disabled?: boolean;
5
+ error?: boolean;
6
+ autofocus?: boolean;
7
+ type?: 'text' | 'number';
8
+ placeholder?: string;
9
+ variant?: 'solid' | 'outline' | 'ghost';
10
+ attached?: boolean;
11
+ size?: 'sm' | 'md' | 'lg';
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ "update:modelValue": (value: string) => any;
15
+ change: (value: string) => any;
16
+ complete: (value: string) => any;
17
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
18
+ "onUpdate:modelValue"?: (value: string) => any;
19
+ onChange?: (value: string) => any;
20
+ onComplete?: (value: string) => any;
21
+ }>, {
22
+ disabled: boolean;
23
+ length: number;
24
+ type: "text" | "number";
25
+ size: "sm" | "md" | "lg";
26
+ placeholder: string;
27
+ variant: "solid" | "outline" | "ghost";
28
+ attached: boolean;
29
+ modelValue: string;
30
+ error: boolean;
31
+ autofocus: boolean;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
33
+ export default _default;
@@ -0,0 +1,115 @@
1
+ import { defineComponent as j, ref as h, watch as z, onMounted as C, nextTick as V, computed as A, openBlock as g, createElementBlock as m, normalizeClass as v, Fragment as E, renderList as M } from "vue";
2
+ const F = ["value", "type", "disabled", "placeholder", "onInput", "onKeydown"], P = /* @__PURE__ */ j({
3
+ __name: "OTPInput",
4
+ props: {
5
+ length: { default: 6 },
6
+ modelValue: { default: "" },
7
+ disabled: { type: Boolean, default: !1 },
8
+ error: { type: Boolean, default: !1 },
9
+ autofocus: { type: Boolean, default: !1 },
10
+ type: { default: "number" },
11
+ placeholder: { default: "" },
12
+ variant: { default: "outline" },
13
+ attached: { type: Boolean, default: !1 },
14
+ size: { default: "md" }
15
+ },
16
+ emits: ["update:modelValue", "complete", "change"],
17
+ setup(f, { emit: b }) {
18
+ const a = f, p = b, s = h([]), r = h(new Array(a.length).fill(""));
19
+ z(
20
+ () => a.modelValue,
21
+ (t) => {
22
+ const e = t || "", l = e.split("").slice(0, a.length);
23
+ if (r.value.join("") !== e) {
24
+ const o = new Array(a.length).fill("");
25
+ l.forEach((u, i) => o[i] = u), r.value = o;
26
+ }
27
+ },
28
+ { immediate: !0 }
29
+ );
30
+ const c = () => {
31
+ const t = r.value.join("");
32
+ p("update:modelValue", t), p("change", t), t.length === a.length && p("complete", t);
33
+ }, y = (t, e) => {
34
+ let n = t.target.value;
35
+ if (a.type === "number" && (n = n.replace(/\D/g, "")), n.length === 1) {
36
+ r.value[e] = n, c(), e < a.length - 1 && s.value[e + 1]?.focus();
37
+ return;
38
+ }
39
+ if (!n) {
40
+ r.value[e] = "", c();
41
+ return;
42
+ }
43
+ if (n.length > 1) {
44
+ const o = n.split("").slice(0, a.length - e);
45
+ o.forEach((i, d) => {
46
+ e + d < a.length && (r.value[e + d] = i);
47
+ }), c();
48
+ const u = Math.min(e + o.length, a.length - 1);
49
+ s.value[u]?.focus();
50
+ }
51
+ }, w = (t, e) => {
52
+ const l = t.key;
53
+ if (l === "Backspace") {
54
+ r.value[e] || (t.preventDefault(), e > 0 && (r.value[e - 1] = "", s.value[e - 1]?.focus(), c()));
55
+ return;
56
+ }
57
+ l === "ArrowLeft" && (t.preventDefault(), e > 0 && s.value[e - 1]?.focus()), l === "ArrowRight" && (t.preventDefault(), e < a.length - 1 && s.value[e + 1]?.focus());
58
+ }, D = (t) => {
59
+ t.preventDefault();
60
+ const e = t.clipboardData?.getData("text/plain");
61
+ if (!e) return;
62
+ let l = e.trim();
63
+ a.type === "number" && (l = l.replace(/\D/g, ""));
64
+ const n = l.split("").slice(0, a.length), o = [...r.value];
65
+ n.forEach((i, d) => {
66
+ o[d] = i;
67
+ }), r.value = o, c();
68
+ const u = Math.min(n.length, a.length - 1);
69
+ s.value[u]?.focus();
70
+ }, k = (t, e) => {
71
+ t && (s.value[e] = t);
72
+ };
73
+ C(() => {
74
+ a.autofocus && V(() => {
75
+ s.value[0]?.focus();
76
+ });
77
+ });
78
+ const B = A(() => ["flex items-center", a.attached ? "-space-x-px" : "gap-2"].join(" ")), I = (t) => {
79
+ const e = "text-center font-medium transition-all focus:outline-none focus:z-10 disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted-foreground", l = {
80
+ sm: "w-8 h-8 text-sm",
81
+ md: "w-10 h-10 text-lg",
82
+ lg: "w-12 h-12 text-xl"
83
+ }, n = {
84
+ solid: "bg-muted border border-transparent focus:border-primary focus:ring-2 focus:ring-primary",
85
+ outline: "border border-input focus:border-primary focus:ring-2 focus:ring-primary",
86
+ ghost: "bg-transparent border border-transparent hover:bg-accent focus:focus:border-primary focus:ring-2 focus:ring-primary"
87
+ }, o = a.error ? "border-destructive focus:ring-destructive text-destructive" : "";
88
+ let u = "rounded-md";
89
+ return a.attached && (t === 0 ? u = "rounded-l-md rounded-r-none" : t === a.length - 1 ? u = "rounded-r-md rounded-l-none" : u = "rounded-none"), [e, l[a.size], n[a.variant], o, u].join(" ");
90
+ };
91
+ return (t, e) => (g(), m("div", {
92
+ class: v(B.value)
93
+ }, [
94
+ (g(!0), m(E, null, M(a.length, (l, n) => (g(), m("input", {
95
+ key: n,
96
+ ref_for: !0,
97
+ ref: (o) => k(o, n),
98
+ value: r.value[n],
99
+ type: f.type === "number" ? "tel" : "text",
100
+ inputmode: "numeric",
101
+ maxlength: 1,
102
+ disabled: f.disabled,
103
+ placeholder: f.placeholder,
104
+ class: v(I(n)),
105
+ onInput: (o) => y(o, n),
106
+ onKeydown: (o) => w(o, n),
107
+ onPaste: D,
108
+ onFocus: e[0] || (e[0] = (o) => t.$emit("update:modelValue", r.value.join("")))
109
+ }, null, 42, F))), 128))
110
+ ], 2));
111
+ }
112
+ });
113
+ export {
114
+ P as default
115
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./OTPInput.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ export { default as OTPInput } from './OTPInput.vue';
@@ -0,0 +1,34 @@
1
+ interface Props {
2
+ currentPage?: number;
3
+ totalPages: number;
4
+ siblingCount?: number;
5
+ disabled?: boolean;
6
+ showEdges?: boolean;
7
+ showPageInfo?: boolean;
8
+ showItemsPerPage?: boolean;
9
+ itemsPerPage?: number;
10
+ itemsPerPageOptions?: number[];
11
+ navType?: 'text' | 'icon';
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
+ change: (value: number) => any;
15
+ "update:currentPage": (value: number) => any;
16
+ "update:itemsPerPage": (value: number) => any;
17
+ "change:itemsPerPage": (value: number) => any;
18
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
19
+ onChange?: (value: number) => any;
20
+ "onUpdate:currentPage"?: (value: number) => any;
21
+ "onUpdate:itemsPerPage"?: (value: number) => any;
22
+ "onChange:itemsPerPage"?: (value: number) => any;
23
+ }>, {
24
+ disabled: boolean;
25
+ currentPage: number;
26
+ siblingCount: number;
27
+ showEdges: boolean;
28
+ showPageInfo: boolean;
29
+ showItemsPerPage: boolean;
30
+ itemsPerPage: number;
31
+ itemsPerPageOptions: number[];
32
+ navType: "text" | "icon";
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
34
+ export default _default;
@@ -0,0 +1,196 @@
1
+ import { defineComponent as B, computed as N, openBlock as s, createElementBlock as l, normalizeClass as z, createElementVNode as d, Fragment as f, renderList as S, toDisplayString as x, createVNode as b, createCommentVNode as P, createTextVNode as h, createBlock as v, withCtx as w } from "vue";
2
+ import O from "../Icon.vue.js";
3
+ import o from "../Button.vue.js";
4
+ const R = {
5
+ key: 0,
6
+ class: "flex flex-wrap items-center justify-center md:justify-start gap-4 order-2 md:order-1"
7
+ }, j = {
8
+ key: 0,
9
+ class: "flex items-center gap-2 text-sm text-muted-foreground"
10
+ }, E = { class: "relative" }, V = ["value", "disabled"], L = ["value"], M = {
11
+ key: 1,
12
+ class: "hidden md:block w-px h-4 bg-border"
13
+ }, A = {
14
+ key: 2,
15
+ class: "text-sm text-muted-foreground whitespace-nowrap"
16
+ }, F = { class: "font-medium text-foreground" }, q = { class: "font-medium text-foreground" }, G = {
17
+ class: "flex items-center justify-center gap-1 order-1 md:order-2",
18
+ "aria-label": "Pagination"
19
+ }, H = {
20
+ key: 0,
21
+ class: "px-2 text-gray-400 select-none"
22
+ }, U = /* @__PURE__ */ B({
23
+ __name: "Pagination",
24
+ props: {
25
+ currentPage: { default: 1 },
26
+ totalPages: {},
27
+ siblingCount: { default: 1 },
28
+ disabled: { type: Boolean, default: !1 },
29
+ showEdges: { type: Boolean, default: !1 },
30
+ showPageInfo: { type: Boolean, default: !1 },
31
+ showItemsPerPage: { type: Boolean, default: !1 },
32
+ itemsPerPage: { default: 10 },
33
+ itemsPerPageOptions: { default: () => [10, 25, 50, 100] },
34
+ navType: { default: "text" }
35
+ },
36
+ emits: ["update:currentPage", "change", "update:itemsPerPage", "change:itemsPerPage"],
37
+ setup(e, { emit: $ }) {
38
+ const a = e, g = $, r = (i) => {
39
+ a.disabled || i < 1 || i > a.totalPages || i !== a.currentPage && (g("update:currentPage", i), g("change", i));
40
+ }, T = (i) => {
41
+ const t = i.target, n = parseInt(t.value);
42
+ g("update:itemsPerPage", n), g("change:itemsPerPage", n), g("update:currentPage", 1), g("change", 1);
43
+ }, D = N(() => {
44
+ if (a.siblingCount * 2 + 5 >= a.totalPages)
45
+ return y(1, a.totalPages);
46
+ const t = Math.max(a.currentPage - a.siblingCount, 1), n = Math.min(a.currentPage + a.siblingCount, a.totalPages), u = t > 2, c = n < a.totalPages - 2, k = 1, C = a.totalPages;
47
+ if (!u && c) {
48
+ let m = 3 + 2 * a.siblingCount;
49
+ return [...y(1, m), "DOTS", C];
50
+ }
51
+ if (u && !c) {
52
+ let m = 3 + 2 * a.siblingCount, I = y(a.totalPages - m + 1, a.totalPages);
53
+ return [k, "DOTS", ...I];
54
+ }
55
+ if (u && c) {
56
+ let m = y(t, n);
57
+ return [k, "DOTS", ...m, "DOTS", C];
58
+ }
59
+ return [];
60
+ }), y = (i, t) => {
61
+ let n = t - i + 1;
62
+ return Array.from({ length: n }, (u, c) => c + i);
63
+ };
64
+ return (i, t) => (s(), l("div", {
65
+ class: z(["flex flex-col md:flex-row items-center gap-4 w-full", [e.showPageInfo || e.showItemsPerPage ? "justify-between" : "justify-center"]])
66
+ }, [
67
+ e.showPageInfo || e.showItemsPerPage ? (s(), l("div", R, [
68
+ e.showItemsPerPage ? (s(), l("div", j, [
69
+ t[8] || (t[8] = d("span", { class: "whitespace-nowrap" }, "Show", -1)),
70
+ d("div", E, [
71
+ d("select", {
72
+ value: e.itemsPerPage,
73
+ class: "appearance-none bg-background border border-border hover:border-accent text-foreground py-1 pl-2 pr-6 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary text-sm cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
74
+ disabled: e.disabled,
75
+ onChange: T
76
+ }, [
77
+ (s(!0), l(f, null, S(e.itemsPerPageOptions, (n) => (s(), l("option", {
78
+ key: n,
79
+ value: n
80
+ }, x(n), 9, L))), 128))
81
+ ], 40, V),
82
+ b(O, {
83
+ icon: "lucide:chevron-down",
84
+ class: "absolute right-1.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"
85
+ })
86
+ ]),
87
+ t[9] || (t[9] = d("span", { class: "whitespace-nowrap" }, "per page", -1))
88
+ ])) : P("", !0),
89
+ e.showItemsPerPage && e.showPageInfo ? (s(), l("div", M)) : P("", !0),
90
+ e.showPageInfo ? (s(), l("span", A, [
91
+ t[10] || (t[10] = h(" Page ", -1)),
92
+ d("span", F, x(e.currentPage), 1),
93
+ t[11] || (t[11] = h(" of ", -1)),
94
+ d("span", q, x(e.totalPages), 1)
95
+ ])) : P("", !0)
96
+ ])) : P("", !0),
97
+ d("nav", G, [
98
+ e.showEdges ? (s(), v(o, {
99
+ key: 0,
100
+ variant: "ghost",
101
+ size: "sm",
102
+ icon: "lucide:chevrons-left",
103
+ disabled: e.disabled || e.currentPage === 1,
104
+ onClick: t[0] || (t[0] = (n) => r(1))
105
+ }, null, 8, ["disabled"])) : P("", !0),
106
+ e.navType === "icon" ? (s(), v(o, {
107
+ key: 1,
108
+ variant: "ghost",
109
+ size: "sm",
110
+ icon: "lucide:chevron-left",
111
+ disabled: e.disabled || e.currentPage === 1,
112
+ onClick: t[1] || (t[1] = (n) => r(e.currentPage - 1))
113
+ }, null, 8, ["disabled"])) : (s(), l(f, { key: 2 }, [
114
+ b(o, {
115
+ variant: "ghost",
116
+ size: "sm",
117
+ class: "hidden sm:flex",
118
+ disabled: e.disabled || e.currentPage === 1,
119
+ onClick: t[2] || (t[2] = (n) => r(e.currentPage - 1))
120
+ }, {
121
+ default: w(() => [...t[12] || (t[12] = [
122
+ h(" Previous ", -1)
123
+ ])]),
124
+ _: 1
125
+ }, 8, ["disabled"]),
126
+ b(o, {
127
+ variant: "ghost",
128
+ size: "sm",
129
+ icon: "lucide:chevron-left",
130
+ class: "flex sm:hidden",
131
+ disabled: e.disabled || e.currentPage === 1,
132
+ onClick: t[3] || (t[3] = (n) => r(e.currentPage - 1))
133
+ }, null, 8, ["disabled"])
134
+ ], 64)),
135
+ (s(!0), l(f, null, S(D.value, (n, u) => (s(), l(f, { key: u }, [
136
+ n === "DOTS" ? (s(), l("div", H, "...")) : (s(), v(o, {
137
+ key: 1,
138
+ size: "sm",
139
+ variant: n === e.currentPage ? "outline" : "ghost",
140
+ class: z({
141
+ "bg-white text-primary border-primary ring-1 ring-primary pointer-events-none z-10": n === e.currentPage,
142
+ "text-gray-600 hover:bg-gray-100": n !== e.currentPage
143
+ }),
144
+ disabled: e.disabled,
145
+ onClick: (c) => r(n)
146
+ }, {
147
+ default: w(() => [
148
+ h(x(n), 1)
149
+ ]),
150
+ _: 2
151
+ }, 1032, ["variant", "class", "disabled", "onClick"]))
152
+ ], 64))), 128)),
153
+ e.navType === "icon" ? (s(), v(o, {
154
+ key: 3,
155
+ variant: "ghost",
156
+ size: "sm",
157
+ icon: "lucide:chevron-right",
158
+ disabled: e.disabled || e.currentPage === e.totalPages,
159
+ onClick: t[4] || (t[4] = (n) => r(e.currentPage + 1))
160
+ }, null, 8, ["disabled"])) : (s(), l(f, { key: 4 }, [
161
+ b(o, {
162
+ variant: "ghost",
163
+ size: "sm",
164
+ class: "hidden sm:flex",
165
+ disabled: e.disabled || e.currentPage === e.totalPages,
166
+ onClick: t[5] || (t[5] = (n) => r(e.currentPage + 1))
167
+ }, {
168
+ default: w(() => [...t[13] || (t[13] = [
169
+ h(" Next ", -1)
170
+ ])]),
171
+ _: 1
172
+ }, 8, ["disabled"]),
173
+ b(o, {
174
+ variant: "ghost",
175
+ size: "sm",
176
+ icon: "lucide:chevron-right",
177
+ class: "flex sm:hidden",
178
+ disabled: e.disabled || e.currentPage === e.totalPages,
179
+ onClick: t[6] || (t[6] = (n) => r(e.currentPage + 1))
180
+ }, null, 8, ["disabled"])
181
+ ], 64)),
182
+ e.showEdges ? (s(), v(o, {
183
+ key: 5,
184
+ variant: "ghost",
185
+ size: "sm",
186
+ icon: "lucide:chevrons-right",
187
+ disabled: e.disabled || e.currentPage === e.totalPages,
188
+ onClick: t[7] || (t[7] = (n) => r(e.totalPages))
189
+ }, null, 8, ["disabled"])) : P("", !0)
190
+ ])
191
+ ], 2));
192
+ }
193
+ });
194
+ export {
195
+ U as default
196
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Pagination.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ export { default as Pagination } from './Pagination.vue';
@@ -0,0 +1,22 @@
1
+ import { PricingPlanItemSchema, PricingPlanVariant } from './types';
2
+ interface Props {
3
+ modelValue?: string | number | null;
4
+ items: PricingPlanItemSchema[];
5
+ variant?: PricingPlanVariant;
6
+ columns?: number | string;
7
+ gap?: number;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "update:modelValue": (value: string | number) => any;
11
+ change: (value: string | number) => any;
12
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
+ "onUpdate:modelValue"?: (value: string | number) => any;
14
+ onChange?: (value: string | number) => any;
15
+ }>, {
16
+ variant: PricingPlanVariant;
17
+ modelValue: string | number | null;
18
+ items: PricingPlanItemSchema[];
19
+ gap: number;
20
+ columns: number | string;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { defineComponent as p, computed as r, openBlock as i, createElementBlock as u, normalizeStyle as f, normalizeClass as v, Fragment as y, renderList as x, createBlock as C } from "vue";
2
+ import $ from "./PricingPlanItem.vue.js";
3
+ const S = /* @__PURE__ */ p({
4
+ __name: "PricingPlan",
5
+ props: {
6
+ modelValue: { default: null },
7
+ items: { default: () => [] },
8
+ variant: { default: "outline" },
9
+ columns: { default: 3 },
10
+ gap: { default: 6 }
11
+ },
12
+ emits: ["update:modelValue", "change"],
13
+ setup(t, { emit: c }) {
14
+ const e = t, o = c, d = (l) => {
15
+ o("update:modelValue", l.id), o("change", l.id);
16
+ };
17
+ r(() => {
18
+ const l = e.columns;
19
+ let a = "";
20
+ return typeof l == "number" ? a = `repeat(${l}, minmax(0, 1fr))` : a = l, {
21
+ display: "grid",
22
+ gridTemplateColumns: a,
23
+ gap: `${e.gap * 4}px`
24
+ // assuming prop is in standard tailwind units (4px), or just pixels?
25
+ // Let's use it as tailwind multiplier for consistency if possible, but style takes pixels usually.
26
+ // If user passed 6, usually means gap-6 (1.5rem = 24px).
27
+ // Let's map it roughly or just use class if possible.
28
+ // Actually dynamic gap via style is easier for custom.
29
+ // Let's assume input is pixels if large, or multiple of 4 if small?
30
+ // Let's just rely on classes for standard gaps, or style for custom.
31
+ // To be safe and simple, let's use class for standard grid, or style for columns.
32
+ };
33
+ });
34
+ const s = r(() => e.columns === 3 ? "grid grid-cols-1 md:grid-cols-3" : e.columns === 2 ? "grid grid-cols-1 md:grid-cols-2" : e.columns === 4 ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : ""), m = r(() => `gap-${e.gap}`), g = r(() => s.value ? {} : {
35
+ display: "grid",
36
+ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`,
37
+ gap: `${e.gap * 4}px`
38
+ });
39
+ return (l, a) => (i(), u("div", {
40
+ class: v(["w-full", [s.value, m.value]]),
41
+ style: f(g.value)
42
+ }, [
43
+ (i(!0), u(y, null, x(t.items, (n) => (i(), C($, {
44
+ key: n.id,
45
+ item: n,
46
+ selected: t.modelValue === n.id,
47
+ variant: t.variant,
48
+ onSelect: d
49
+ }, null, 8, ["item", "selected", "variant"]))), 128))
50
+ ], 6));
51
+ }
52
+ });
53
+ export {
54
+ S as default
55
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./PricingPlan.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,17 @@
1
+ import { PricingPlanItemSchema } from './types';
2
+ interface Props {
3
+ item: PricingPlanItemSchema;
4
+ selected?: boolean;
5
+ variant?: 'outline' | 'solid';
6
+ selectable?: boolean;
7
+ }
8
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
+ select: (item: PricingPlanItemSchema) => any;
10
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
11
+ onSelect?: (item: PricingPlanItemSchema) => any;
12
+ }>, {
13
+ variant: "outline" | "solid";
14
+ selected: boolean;
15
+ selectable: boolean;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;