fulldev-ui 0.6.4 → 0.7.0-beta.1

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 (500) hide show
  1. package/.prettierrc.yaml +10 -3
  2. package/README.md +2 -1
  3. package/astro.config.ts +20 -17
  4. package/components.json +18 -0
  5. package/package.json +63 -34
  6. package/pnpm-lock.yaml +7480 -0
  7. package/public/images/categories/journals.jpg +0 -0
  8. package/public/images/categories/productivity.jpg +0 -0
  9. package/public/images/categories/workspace.jpg +0 -0
  10. package/public/images/leather-long-wallet.jpg +0 -0
  11. package/public/images/products/earthen-mug.jpg +0 -0
  12. package/public/images/products/leather-long-wallet.jpg +0 -0
  13. package/public/images/products/leatherbound-daily-journal-set.jpg +0 -0
  14. package/public/images/products/leatherbound-daily-journal.jpg +0 -0
  15. package/public/images/products/machines-pen.jpg +0 -0
  16. package/public/images/products/machines-pencil-and-pen-set.jpg +0 -0
  17. package/public/images/products/mini-sketchbooks.jpg +0 -0
  18. package/public/images/products/organizer-set.jpg +0 -0
  19. package/src/blocks/CategoryGroup1.astro +43 -0
  20. package/src/blocks/CategoryList1.astro +55 -0
  21. package/src/blocks/Contact1.astro +34 -77
  22. package/src/blocks/Contact2.astro +31 -77
  23. package/src/blocks/Content1.astro +18 -30
  24. package/src/blocks/Cta1.astro +18 -58
  25. package/src/blocks/Faqs1.astro +29 -0
  26. package/src/blocks/Faqs2.astro +29 -0
  27. package/src/blocks/Features1.astro +25 -61
  28. package/src/blocks/Footer.astro +47 -71
  29. package/src/blocks/Header.astro +64 -124
  30. package/src/blocks/Hero1.astro +23 -54
  31. package/src/blocks/Intro1.astro +16 -58
  32. package/src/blocks/PostSingle1.astro +29 -0
  33. package/src/blocks/ProductGroup1.astro +82 -0
  34. package/src/blocks/ProductList1.astro +60 -0
  35. package/src/blocks/ProductSingle1.astro +65 -0
  36. package/src/blocks/Reviews1.astro +23 -67
  37. package/src/components/Abstract.astro +36 -0
  38. package/src/components/Accordion.vue +31 -0
  39. package/src/components/Avatar.astro +23 -32
  40. package/src/components/Badge.astro +10 -58
  41. package/src/components/Box.astro +28 -0
  42. package/src/components/Button.astro +38 -78
  43. package/src/components/Buttons.astro +41 -19
  44. package/src/components/Card.astro +20 -0
  45. package/src/components/Carousel.vue +44 -0
  46. package/src/components/Chip.astro +27 -0
  47. package/src/{structures → components}/Code.astro +27 -8
  48. package/src/components/Collapsible.vue +21 -0
  49. package/src/components/Container.astro +25 -0
  50. package/src/components/Drawer.vue +53 -0
  51. package/src/components/Form.vue +82 -0
  52. package/src/components/Gallery.vue +85 -0
  53. package/src/components/Grid.astro +35 -0
  54. package/src/components/Icon.astro +12 -45
  55. package/src/components/Image.astro +6 -28
  56. package/src/components/Layout.astro +126 -0
  57. package/src/components/Link.astro +7 -65
  58. package/src/components/List.astro +13 -77
  59. package/src/components/Logo.astro +16 -35
  60. package/src/components/Masonry.astro +35 -0
  61. package/src/components/Menu.astro +31 -36
  62. package/src/components/Menus.astro +15 -10
  63. package/src/components/Navigation.vue +93 -0
  64. package/src/components/Panel.astro +18 -0
  65. package/src/components/Person.astro +43 -0
  66. package/src/components/Price.astro +26 -11
  67. package/src/components/Proof.astro +16 -37
  68. package/src/components/{docs/Props.astro → Props.astro} +3 -3
  69. package/src/components/Prose.astro +28 -0
  70. package/src/components/Rating.astro +5 -24
  71. package/src/components/Search.vue +65 -0
  72. package/src/components/Section.astro +18 -0
  73. package/src/components/Select.vue +41 -0
  74. package/src/components/Separator.astro +0 -0
  75. package/src/components/Sidebar.astro +50 -0
  76. package/src/components/Social.astro +8 -15
  77. package/src/components/Socials.astro +21 -19
  78. package/src/components/Sort.vue +46 -0
  79. package/src/components/Split.astro +27 -0
  80. package/src/components/Table.astro +17 -17
  81. package/src/components/Tabs.vue +17 -0
  82. package/src/components/Themer.astro +12 -3
  83. package/src/components/Toc.astro +24 -21
  84. package/src/components/Toolbar.vue +115 -0
  85. package/src/components/Writeup.astro +37 -0
  86. package/src/components/ui/accordion/Accordion.vue +19 -0
  87. package/src/components/ui/accordion/AccordionContent.vue +24 -0
  88. package/src/components/ui/accordion/AccordionItem.vue +24 -0
  89. package/src/components/ui/accordion/AccordionTrigger.vue +33 -0
  90. package/src/components/ui/accordion/index.ts +4 -0
  91. package/src/components/ui/auto-form/AutoForm.vue +115 -0
  92. package/src/components/ui/auto-form/AutoFormField.vue +45 -0
  93. package/src/components/ui/auto-form/AutoFormFieldArray.vue +127 -0
  94. package/src/components/ui/auto-form/AutoFormFieldBoolean.vue +47 -0
  95. package/src/components/ui/auto-form/AutoFormFieldDate.vue +78 -0
  96. package/src/components/ui/auto-form/AutoFormFieldEnum.vue +77 -0
  97. package/src/components/ui/auto-form/AutoFormFieldFile.vue +87 -0
  98. package/src/components/ui/auto-form/AutoFormFieldInput.vue +42 -0
  99. package/src/components/ui/auto-form/AutoFormFieldNumber.vue +42 -0
  100. package/src/components/ui/auto-form/AutoFormFieldObject.vue +90 -0
  101. package/src/components/ui/auto-form/AutoFormLabel.vue +19 -0
  102. package/src/components/ui/auto-form/constant.ts +40 -0
  103. package/src/components/ui/auto-form/dependencies.ts +92 -0
  104. package/src/components/ui/auto-form/index.ts +15 -0
  105. package/src/components/ui/auto-form/interface.ts +95 -0
  106. package/src/components/ui/auto-form/utils.ts +188 -0
  107. package/src/components/ui/avatar/Avatar.vue +24 -0
  108. package/src/components/ui/avatar/AvatarFallback.vue +11 -0
  109. package/src/components/ui/avatar/AvatarImage.vue +9 -0
  110. package/src/components/ui/avatar/index.ts +24 -0
  111. package/src/components/ui/badge/Badge.vue +16 -0
  112. package/src/components/ui/badge/index.ts +22 -0
  113. package/src/components/ui/breadcrumb/Breadcrumb.vue +13 -0
  114. package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +22 -0
  115. package/src/components/ui/breadcrumb/BreadcrumbItem.vue +14 -0
  116. package/src/components/ui/breadcrumb/BreadcrumbLink.vue +19 -0
  117. package/src/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
  118. package/src/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
  119. package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +21 -0
  120. package/src/components/ui/breadcrumb/index.ts +7 -0
  121. package/src/components/ui/button/Button.vue +26 -0
  122. package/src/components/ui/button/index.ts +31 -0
  123. package/src/components/ui/calendar/Calendar.vue +80 -0
  124. package/src/components/ui/calendar/CalendarCell.vue +29 -0
  125. package/src/components/ui/calendar/CalendarCellTrigger.vue +40 -0
  126. package/src/components/ui/calendar/CalendarGrid.vue +24 -0
  127. package/src/components/ui/calendar/CalendarGridBody.vue +11 -0
  128. package/src/components/ui/calendar/CalendarGridHead.vue +11 -0
  129. package/src/components/ui/calendar/CalendarGridRow.vue +24 -0
  130. package/src/components/ui/calendar/CalendarHeadCell.vue +24 -0
  131. package/src/components/ui/calendar/CalendarHeader.vue +24 -0
  132. package/src/components/ui/calendar/CalendarHeading.vue +27 -0
  133. package/src/components/ui/calendar/CalendarNextButton.vue +30 -0
  134. package/src/components/ui/calendar/CalendarPrevButton.vue +30 -0
  135. package/src/components/ui/calendar/index.ts +12 -0
  136. package/src/components/ui/card/Card.vue +14 -0
  137. package/src/components/ui/card/CardContent.vue +14 -0
  138. package/src/components/ui/card/CardDescription.vue +14 -0
  139. package/src/components/ui/card/CardFooter.vue +14 -0
  140. package/src/components/ui/card/CardHeader.vue +14 -0
  141. package/src/components/ui/card/CardTitle.vue +14 -0
  142. package/src/components/ui/card/index.ts +6 -0
  143. package/src/components/ui/carousel/Carousel.vue +61 -0
  144. package/src/components/ui/carousel/CarouselContent.vue +27 -0
  145. package/src/components/ui/carousel/CarouselItem.vue +19 -0
  146. package/src/components/ui/carousel/CarouselNext.vue +33 -0
  147. package/src/components/ui/carousel/CarouselPrevious.vue +33 -0
  148. package/src/components/ui/carousel/index.ts +10 -0
  149. package/src/components/ui/carousel/interface.ts +26 -0
  150. package/src/components/ui/carousel/useCarousel.ts +56 -0
  151. package/src/components/ui/checkbox/Checkbox.vue +36 -0
  152. package/src/components/ui/checkbox/index.ts +1 -0
  153. package/src/components/ui/collapsible/Collapsible.vue +15 -0
  154. package/src/components/ui/collapsible/CollapsibleContent.vue +11 -0
  155. package/src/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
  156. package/src/components/ui/collapsible/index.ts +3 -0
  157. package/src/components/ui/command/Command.vue +32 -0
  158. package/src/components/ui/command/CommandDialog.vue +23 -0
  159. package/src/components/ui/command/CommandEmpty.vue +23 -0
  160. package/src/components/ui/command/CommandGroup.vue +39 -0
  161. package/src/components/ui/command/CommandInput.vue +43 -0
  162. package/src/components/ui/command/CommandItem.vue +31 -0
  163. package/src/components/ui/command/CommandList.vue +30 -0
  164. package/src/components/ui/command/CommandSeparator.vue +23 -0
  165. package/src/components/ui/command/CommandShortcut.vue +14 -0
  166. package/src/components/ui/command/index.ts +9 -0
  167. package/src/components/ui/dialog/Dialog.vue +14 -0
  168. package/src/components/ui/dialog/DialogClose.vue +11 -0
  169. package/src/components/ui/dialog/DialogContent.vue +51 -0
  170. package/src/components/ui/dialog/DialogDescription.vue +24 -0
  171. package/src/components/ui/dialog/DialogFooter.vue +12 -0
  172. package/src/components/ui/dialog/DialogHeader.vue +14 -0
  173. package/src/components/ui/dialog/DialogScrollContent.vue +59 -0
  174. package/src/components/ui/dialog/DialogTitle.vue +24 -0
  175. package/src/components/ui/dialog/DialogTrigger.vue +11 -0
  176. package/src/components/ui/dialog/index.ts +9 -0
  177. package/src/components/ui/drawer/Drawer.vue +19 -0
  178. package/src/components/ui/drawer/DrawerContent.vue +31 -0
  179. package/src/components/ui/drawer/DrawerDescription.vue +23 -0
  180. package/src/components/ui/drawer/DrawerFooter.vue +14 -0
  181. package/src/components/ui/drawer/DrawerHeader.vue +14 -0
  182. package/src/components/ui/drawer/DrawerOverlay.vue +21 -0
  183. package/src/components/ui/drawer/DrawerTitle.vue +23 -0
  184. package/src/components/ui/drawer/index.ts +8 -0
  185. package/src/components/ui/form/FormControl.vue +16 -0
  186. package/src/components/ui/form/FormDescription.vue +20 -0
  187. package/src/components/ui/form/FormItem.vue +19 -0
  188. package/src/components/ui/form/FormLabel.vue +20 -0
  189. package/src/components/ui/form/FormMessage.vue +16 -0
  190. package/src/components/ui/form/index.ts +7 -0
  191. package/src/components/ui/form/injectionKeys.ts +4 -0
  192. package/src/components/ui/form/useFormField.ts +30 -0
  193. package/src/components/ui/input/Input.vue +32 -0
  194. package/src/components/ui/input/index.ts +1 -0
  195. package/src/components/ui/label/Label.vue +24 -0
  196. package/src/components/ui/label/index.ts +1 -0
  197. package/src/components/ui/menubar/Menubar.vue +25 -0
  198. package/src/components/ui/menubar/MenubarCheckboxItem.vue +42 -0
  199. package/src/components/ui/menubar/MenubarContent.vue +35 -0
  200. package/src/components/ui/menubar/MenubarGroup.vue +11 -0
  201. package/src/components/ui/menubar/MenubarItem.vue +32 -0
  202. package/src/components/ui/menubar/MenubarLabel.vue +13 -0
  203. package/src/components/ui/menubar/MenubarMenu.vue +11 -0
  204. package/src/components/ui/menubar/MenubarRadioGroup.vue +20 -0
  205. package/src/components/ui/menubar/MenubarRadioItem.vue +42 -0
  206. package/src/components/ui/menubar/MenubarSeparator.vue +22 -0
  207. package/src/components/ui/menubar/MenubarShortcut.vue +14 -0
  208. package/src/components/ui/menubar/MenubarSub.vue +19 -0
  209. package/src/components/ui/menubar/MenubarSubContent.vue +39 -0
  210. package/src/components/ui/menubar/MenubarSubTrigger.vue +32 -0
  211. package/src/components/ui/menubar/MenubarTrigger.vue +29 -0
  212. package/src/components/ui/menubar/index.ts +15 -0
  213. package/src/components/ui/navigation-menu/NavigationMenu.vue +33 -0
  214. package/src/components/ui/navigation-menu/NavigationMenuContent.vue +36 -0
  215. package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +29 -0
  216. package/src/components/ui/navigation-menu/NavigationMenuItem.vue +11 -0
  217. package/src/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
  218. package/src/components/ui/navigation-menu/NavigationMenuList.vue +24 -0
  219. package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +30 -0
  220. package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +29 -0
  221. package/src/components/ui/navigation-menu/index.ts +14 -0
  222. package/src/components/ui/popover/Popover.vue +15 -0
  223. package/src/components/ui/popover/PopoverContent.vue +45 -0
  224. package/src/components/ui/popover/PopoverTrigger.vue +11 -0
  225. package/src/components/ui/popover/index.ts +3 -0
  226. package/src/components/ui/radio-group/RadioGroup.vue +25 -0
  227. package/src/components/ui/radio-group/RadioGroupItem.vue +32 -0
  228. package/src/components/ui/radio-group/index.ts +2 -0
  229. package/src/components/ui/select/Select.vue +15 -0
  230. package/src/components/ui/select/SelectContent.vue +59 -0
  231. package/src/components/ui/select/SelectGroup.vue +22 -0
  232. package/src/components/ui/select/SelectItem.vue +38 -0
  233. package/src/components/ui/select/SelectItemText.vue +11 -0
  234. package/src/components/ui/select/SelectLabel.vue +13 -0
  235. package/src/components/ui/select/SelectScrollDownButton.vue +27 -0
  236. package/src/components/ui/select/SelectScrollUpButton.vue +27 -0
  237. package/src/components/ui/select/SelectSeparator.vue +20 -0
  238. package/src/components/ui/select/SelectTrigger.vue +33 -0
  239. package/src/components/ui/select/SelectValue.vue +11 -0
  240. package/src/components/ui/select/index.ts +11 -0
  241. package/src/components/ui/separator/Separator.vue +33 -0
  242. package/src/components/ui/separator/index.ts +1 -0
  243. package/src/components/ui/switch/Switch.vue +39 -0
  244. package/src/components/ui/switch/index.ts +1 -0
  245. package/src/components/ui/tabs/Tabs.vue +15 -0
  246. package/src/components/ui/tabs/TabsContent.vue +27 -0
  247. package/src/components/ui/tabs/TabsList.vue +22 -0
  248. package/src/components/ui/tabs/TabsTrigger.vue +31 -0
  249. package/src/components/ui/tabs/index.ts +4 -0
  250. package/src/components/ui/textarea/Textarea.vue +32 -0
  251. package/src/components/ui/textarea/index.ts +1 -0
  252. package/src/lib/utils.ts +6 -0
  253. package/src/schemas/blocks/categoryGroup.ts +17 -0
  254. package/src/schemas/blocks/categoryList.ts +18 -0
  255. package/src/schemas/blocks/categorySingle.ts +12 -0
  256. package/src/schemas/blocks/contact.ts +13 -0
  257. package/src/schemas/blocks/content.ts +13 -0
  258. package/src/schemas/blocks/cta.ts +11 -0
  259. package/src/schemas/blocks/faqs.ts +17 -0
  260. package/src/schemas/blocks/features.ts +16 -0
  261. package/src/schemas/blocks/footer.ts +16 -0
  262. package/src/schemas/{header.ts → blocks/header.ts} +5 -8
  263. package/src/schemas/blocks/hero.ts +15 -0
  264. package/src/schemas/blocks/intro.ts +9 -0
  265. package/src/schemas/blocks/postSingle.ts +12 -0
  266. package/src/schemas/blocks/productGroup.ts +17 -0
  267. package/src/schemas/blocks/productList.ts +18 -0
  268. package/src/schemas/blocks/productSingle.ts +15 -0
  269. package/src/schemas/blocks/reviews.ts +16 -0
  270. package/src/schemas/fields/badge.ts +9 -0
  271. package/src/schemas/fields/block.ts +60 -0
  272. package/src/schemas/fields/button.ts +12 -0
  273. package/src/schemas/fields/card.ts +28 -0
  274. package/src/schemas/fields/channel.ts +10 -0
  275. package/src/schemas/fields/form.ts +20 -0
  276. package/src/schemas/fields/image.ts +8 -0
  277. package/src/schemas/fields/link.ts +9 -0
  278. package/src/schemas/fields/logo.ts +10 -0
  279. package/src/schemas/fields/menu.ts +10 -0
  280. package/src/schemas/fields/meta.ts +14 -0
  281. package/src/schemas/fields/proof.ts +11 -0
  282. package/src/schemas/fields/section.ts +48 -0
  283. package/tailwind.config.js +111 -0
  284. package/tsconfig.json +5 -7
  285. package/.env.example +0 -3
  286. package/.vscode/settings.json +0 -25
  287. package/CONTRIBUTING.md +0 -124
  288. package/cloudcannon.config.yml +0 -207
  289. package/public/favicon/android-chrome-192x192.png +0 -0
  290. package/public/favicon/android-chrome-512x512.png +0 -0
  291. package/public/favicon/apple-touch-icon.png +0 -0
  292. package/public/favicon/browserconfig.xml +0 -9
  293. package/public/favicon/favicon-16x16.png +0 -0
  294. package/public/favicon/favicon-32x32.png +0 -0
  295. package/public/favicon/favicon-48x48.png +0 -0
  296. package/public/favicon/favicon.ico +0 -0
  297. package/public/favicon/favicon.svg +0 -16
  298. package/public/favicon/manifest.webmanifest +0 -30
  299. package/public/favicon/mstile-150x150.png +0 -0
  300. package/public/favicon/safari-pinned-tab.svg +0 -16
  301. package/public/favicon/yandex-browser-50x50.png +0 -0
  302. package/public/favicon/yandex-browser-manifest.json +0 -9
  303. package/siteicon.png +0 -0
  304. package/src/blocks/Banner.astro +0 -31
  305. package/src/blocks/Colleagues1.astro +0 -74
  306. package/src/blocks/Compare1.astro +0 -64
  307. package/src/blocks/Content2.astro +0 -47
  308. package/src/blocks/Content3.astro +0 -47
  309. package/src/blocks/Content4.astro +0 -52
  310. package/src/blocks/Content5.astro +0 -43
  311. package/src/blocks/Content6.astro +0 -57
  312. package/src/blocks/Content7.astro +0 -65
  313. package/src/blocks/Content8.astro +0 -48
  314. package/src/blocks/Cta2.astro +0 -52
  315. package/src/blocks/Features2.astro +0 -71
  316. package/src/blocks/JobCategories1.astro +0 -61
  317. package/src/blocks/JobCategory1.astro +0 -92
  318. package/src/blocks/Jobs1.astro +0 -74
  319. package/src/blocks/Logos1.astro +0 -55
  320. package/src/blocks/Pages1.astro +0 -85
  321. package/src/blocks/Pricings1.astro +0 -61
  322. package/src/blocks/Products1.astro +0 -87
  323. package/src/blocks/Projects1.astro +0 -79
  324. package/src/blocks/Subheader.astro +0 -53
  325. package/src/components/Avatars.astro +0 -20
  326. package/src/components/Badges.astro +0 -20
  327. package/src/components/Block.astro +0 -46
  328. package/src/components/Cart.astro +0 -42
  329. package/src/components/CartAdd.svelte +0 -76
  330. package/src/components/CartCheckout.svelte +0 -58
  331. package/src/components/CartForm.svelte +0 -130
  332. package/src/components/CartList.svelte +0 -88
  333. package/src/components/CartQuantity.svelte +0 -81
  334. package/src/components/CartSummary.astro +0 -59
  335. package/src/components/CartTotal.svelte +0 -15
  336. package/src/components/Channel.astro +0 -89
  337. package/src/components/Channels.astro +0 -20
  338. package/src/components/Checkbox.astro +0 -76
  339. package/src/components/Element.astro +0 -70
  340. package/src/components/Field.astro +0 -33
  341. package/src/components/Fields.astro +0 -20
  342. package/src/components/Form.astro +0 -34
  343. package/src/components/Gallery.astro +0 -175
  344. package/src/components/Head.astro +0 -94
  345. package/src/components/Heading.astro +0 -91
  346. package/src/components/Input.astro +0 -115
  347. package/src/components/Label.astro +0 -42
  348. package/src/components/Links.astro +0 -20
  349. package/src/components/Paragraph.astro +0 -54
  350. package/src/components/Search.astro +0 -118
  351. package/src/components/Select.astro +0 -114
  352. package/src/components/Switch.astro +0 -81
  353. package/src/components/Tagline.astro +0 -49
  354. package/src/components/Textarea.astro +0 -78
  355. package/src/components/Toggle.astro +0 -45
  356. package/src/components/_Breadcrumb.astro +0 -58
  357. package/src/components/_Image.astro +0 -79
  358. package/src/components/_LocaleSwitcher.astro +0 -25
  359. package/src/content/config.ts +0 -18
  360. package/src/content/layouts/base.yml +0 -166
  361. package/src/content/pages/_base/toggle.mdx +0 -28
  362. package/src/content/pages/_posts/post.md +0 -7
  363. package/src/content/pages/_showcase/anti-slip-profiles.md +0 -5
  364. package/src/content/pages/_showcase/fulldev-ui.md +0 -5
  365. package/src/content/pages/_showcase/lavis-detailing.md +0 -5
  366. package/src/content/pages/_showcase/leren-trainingsacteren.md +0 -5
  367. package/src/content/pages/_showcase/miele-witgoedcenter-amsterdam.md +0 -5
  368. package/src/content/pages/_showcase/sloepverhuur-bolsward.md +0 -5
  369. package/src/content/pages/_showcase/stark-vulcanising-products.md +0 -4
  370. package/src/content/pages/_showcase/the-gym-haren.md +0 -5
  371. package/src/content/pages/_showcase/van-dillen-antieke-bouwmaterialen.md +0 -5
  372. package/src/content/pages/docs/blocks/_categories.mdx +0 -129
  373. package/src/content/pages/docs/blocks/_contact.mdx +0 -67
  374. package/src/content/pages/docs/blocks/_jobs.mdx +0 -34
  375. package/src/content/pages/docs/blocks/_posts.mdx +0 -45
  376. package/src/content/pages/docs/blocks/_stats.mdx +0 -32
  377. package/src/content/pages/docs/blocks/banner.mdx +0 -12
  378. package/src/content/pages/docs/blocks/colleagues.mdx +0 -49
  379. package/src/content/pages/docs/blocks/content.mdx +0 -316
  380. package/src/content/pages/docs/blocks/cta.mdx +0 -16
  381. package/src/content/pages/docs/blocks/features.mdx +0 -100
  382. package/src/content/pages/docs/blocks/footer.mdx +0 -46
  383. package/src/content/pages/docs/blocks/header.mdx +0 -60
  384. package/src/content/pages/docs/blocks/hero.mdx +0 -18
  385. package/src/content/pages/docs/blocks/intro.mdx +0 -16
  386. package/src/content/pages/docs/blocks/logos.mdx +0 -37
  387. package/src/content/pages/docs/blocks/projects.mdx +0 -36
  388. package/src/content/pages/docs/blocks/reviews.mdx +0 -65
  389. package/src/content/pages/docs/blocks.mdx +0 -52
  390. package/src/content/pages/docs/collections/images.mdx +0 -102
  391. package/src/content/pages/docs/collections/pages.mdx +0 -119
  392. package/src/content/pages/docs/collections/presets.mdx +0 -60
  393. package/src/content/pages/docs/components/_localeswitcher.mdx +0 -16
  394. package/src/content/pages/docs/components/_table.mdx +0 -101
  395. package/src/content/pages/docs/components/_tagline.mdx +0 -34
  396. package/src/content/pages/docs/components/_themer.mdx +0 -47
  397. package/src/content/pages/docs/components/_toggle.mdx +0 -30
  398. package/src/content/pages/docs/components/avatar.mdx +0 -32
  399. package/src/content/pages/docs/components/badge.mdx +0 -42
  400. package/src/content/pages/docs/components/badges.mdx +0 -33
  401. package/src/content/pages/docs/components/button.mdx +0 -76
  402. package/src/content/pages/docs/components/buttons.mdx +0 -50
  403. package/src/content/pages/docs/components/channel.mdx +0 -89
  404. package/src/content/pages/docs/components/channels.mdx +0 -90
  405. package/src/content/pages/docs/components/checkbox.mdx +0 -32
  406. package/src/content/pages/docs/components/heading.mdx +0 -49
  407. package/src/content/pages/docs/components/icon.mdx +0 -46
  408. package/src/content/pages/docs/components/image.mdx +0 -20
  409. package/src/content/pages/docs/components/input.mdx +0 -38
  410. package/src/content/pages/docs/components/label.mdx +0 -42
  411. package/src/content/pages/docs/components/link.mdx +0 -63
  412. package/src/content/pages/docs/components/links.mdx +0 -57
  413. package/src/content/pages/docs/components/list.mdx +0 -53
  414. package/src/content/pages/docs/components/logo.mdx +0 -24
  415. package/src/content/pages/docs/components/menu.mdx +0 -48
  416. package/src/content/pages/docs/components/paragraph.mdx +0 -44
  417. package/src/content/pages/docs/components/rating.mdx +0 -43
  418. package/src/content/pages/docs/components/select.mdx +0 -46
  419. package/src/content/pages/docs/components/social.mdx +0 -92
  420. package/src/content/pages/docs/components/socials.mdx +0 -103
  421. package/src/content/pages/docs/components/switch.mdx +0 -32
  422. package/src/content/pages/docs/components/tagline.mdx +0 -42
  423. package/src/content/pages/docs/components/textarea.mdx +0 -32
  424. package/src/content/pages/docs/components.mdx +0 -36
  425. package/src/content/pages/docs/customization.mdx +0 -183
  426. package/src/content/pages/docs/frameworks.mdx +0 -30
  427. package/src/content/pages/docs/index.mdx +0 -21
  428. package/src/content/pages/docs/installation.mdx +0 -30
  429. package/src/content/pages/docs/layouts/doc.mdx +0 -15
  430. package/src/content/pages/docs/layouts/page.mdx +0 -15
  431. package/src/content/pages/docs/pages.mdx +0 -130
  432. package/src/content/pages/docs/structures/_card.mdx +0 -84
  433. package/src/content/pages/docs/structures/_dialog.mdx +0 -15
  434. package/src/content/pages/docs/structures/_drawer.mdx +0 -15
  435. package/src/content/pages/docs/structures/card.mdx +0 -15
  436. package/src/content/pages/docs/structures/carousel.mdx +0 -14
  437. package/src/content/pages/docs/structures/code.mdx +0 -42
  438. package/src/content/pages/docs/structures/container.mdx +0 -15
  439. package/src/content/pages/docs/structures/drawer.mdx +0 -15
  440. package/src/content/pages/docs/structures/group.mdx +0 -15
  441. package/src/content/pages/docs/structures/layout.mdx +0 -15
  442. package/src/content/pages/docs/structures/masonry.mdx +0 -15
  443. package/src/content/pages/docs/structures/matrix.mdx +0 -15
  444. package/src/content/pages/docs/structures/panel.mdx +0 -15
  445. package/src/content/pages/docs/structures/prose.mdx +0 -33
  446. package/src/content/pages/docs/structures/section.mdx +0 -15
  447. package/src/content/pages/docs/structures/stack.mdx +0 -15
  448. package/src/content/pages/docs/structures/writeup.mdx +0 -15
  449. package/src/content/pages/docs/structures.mdx +0 -7
  450. package/src/content/pages/index.mdx +0 -52
  451. package/src/content/pages/showcase.mdx +0 -30
  452. package/src/css/custom.css +0 -24
  453. package/src/css/theme.css +0 -62
  454. package/src/env.d.ts +0 -3
  455. package/src/integration/index.ts +0 -185
  456. package/src/layouts/Page.astro +0 -64
  457. package/src/layouts/_Product.astro +0 -115
  458. package/src/pages/[...page].astro +0 -49
  459. package/src/pages/test.astro +0 -16
  460. package/src/schemas/badge.ts +0 -14
  461. package/src/schemas/block.ts +0 -42
  462. package/src/schemas/button.ts +0 -17
  463. package/src/schemas/card.ts +0 -43
  464. package/src/schemas/channel.ts +0 -15
  465. package/src/schemas/checkbox.ts +0 -13
  466. package/src/schemas/footer.ts +0 -17
  467. package/src/schemas/head.ts +0 -17
  468. package/src/schemas/image.ts +0 -53
  469. package/src/schemas/input.ts +0 -13
  470. package/src/schemas/link.ts +0 -14
  471. package/src/schemas/logo.ts +0 -13
  472. package/src/schemas/menu.ts +0 -11
  473. package/src/schemas/page.ts +0 -23
  474. package/src/schemas/proof.ts +0 -12
  475. package/src/schemas/textarea.ts +0 -11
  476. package/src/stores/cart.svelte.ts +0 -78
  477. package/src/stores/cart.ts +0 -76
  478. package/src/structures/Card.astro +0 -35
  479. package/src/structures/Carousel.astro +0 -106
  480. package/src/structures/Container.astro +0 -25
  481. package/src/structures/Drawer.astro +0 -81
  482. package/src/structures/Group.astro +0 -25
  483. package/src/structures/Layout.astro +0 -34
  484. package/src/structures/Masonry.astro +0 -42
  485. package/src/structures/Matrix.astro +0 -39
  486. package/src/structures/Panel.astro +0 -25
  487. package/src/structures/Prose.astro +0 -96
  488. package/src/structures/Section.astro +0 -26
  489. package/src/structures/Sidebar.astro +0 -36
  490. package/src/structures/Split.astro +0 -38
  491. package/src/structures/Stack.astro +0 -25
  492. package/src/structures/Writeup.astro +0 -67
  493. package/src/structures/_Bento.astro +0 -34
  494. package/src/utils/cart.ts +0 -27
  495. package/src/utils/getHref.ts +0 -6
  496. package/src/utils/slugify.ts +0 -6
  497. package/svelte.config.js +0 -5
  498. package/tailwind.config.ts +0 -72
  499. package/virtual.d.ts +0 -5
  500. /package/src/schemas/{path.ts → fields/path.ts} +0 -0
@@ -1,130 +0,0 @@
1
- <script lang="ts">
2
- import { cart, getUid, openCart } from 'fulldev-ui/stores/cart.svelte'
3
-
4
- import { capitalize } from 'radash'
5
- import CartQuantity from './CartQuantity.svelte'
6
- import { formatPrice } from 'fulldev-ui/utils/cart'
7
- import type { CollectionEntry } from 'astro:content'
8
-
9
- interface Props {
10
- product: CollectionEntry<'products'>
11
- }
12
-
13
- const { product }: Props = $props()
14
- const { slug, data } = product
15
-
16
- const form = $state({
17
- slug: slug,
18
- title: data.title,
19
- price: data.price,
20
- image: data.images?.[0]?.src || `/${data.images?.[0]?.id}`,
21
- variants: Object.fromEntries(
22
- Object.entries(data.variants ?? {}).map(([key, value]) => [key, value[0]])
23
- ),
24
- quantity: 1,
25
- })
26
-
27
- function handleSubmit(event: Event) {
28
- event.preventDefault()
29
-
30
- const variants = { ...form.variants }
31
- const uid = getUid(slug, variants)
32
- const item = { ...form, uid, variants }
33
-
34
- const index = $cart.findIndex((i) => i.uid === item.uid)
35
- if (index === -1) $cart = [...$cart, item]
36
- else if ($cart[index]) $cart[index].quantity += form.quantity
37
-
38
- openCart()
39
- }
40
- </script>
41
-
42
- <form
43
- class="cart-form"
44
- onsubmit={handleSubmit}
45
- >
46
- <input
47
- name="slug"
48
- type="hidden"
49
- bind:value={form.slug}
50
- />
51
- <input
52
- name="title"
53
- type="hidden"
54
- bind:value={form.title}
55
- />
56
- <input
57
- name="price"
58
- type="hidden"
59
- bind:value={form.price}
60
- />
61
- <input
62
- name="image"
63
- type="hidden"
64
- bind:value={form.image}
65
- />
66
- {#if form.variants}
67
- {#each Object.entries(data.variants ?? {}) as [key, options]}
68
- <label
69
- class="select size-md"
70
- for={`variant-${key}`}
71
- >
72
- <p class="label">
73
- {capitalize(key)}
74
- </p>
75
- <svg
76
- xmlns="http://www.w3.org/2000/svg"
77
- viewBox="0 0 24 24"
78
- class="icon size-md"
79
- >
80
- <path
81
- fill="none"
82
- stroke="currentColor"
83
- stroke-linecap="round"
84
- stroke-linejoin="round"
85
- stroke-width="2"
86
- d="m6 9l6 6l6-6"
87
- ></path>
88
- </svg>
89
- <select
90
- class="select-select"
91
- name={key}
92
- disabled={data.soldout}
93
- bind:value={form.variants[key]}
94
- >
95
- {#each options as option}
96
- <option value={option}>{option}</option>
97
- {/each}
98
- </select>
99
- </label>
100
- {/each}
101
- {/if}
102
- {#if data.price}
103
- <div class="price">
104
- {formatPrice(data.price)}
105
- </div>
106
- {/if}
107
-
108
- <div class="inputs">
109
- <CartQuantity bind:value={form.quantity} />
110
- <button
111
- class="variant-primary button size-md cart-add"
112
- type="submit"
113
- disabled={data.soldout}
114
- >
115
- {data.soldout ? 'Uitverkocht' : 'Toevoegen aan winkelwagen'}
116
- </button>
117
- </div>
118
- </form>
119
-
120
- <style lang="postcss">
121
- @layer fulldev {
122
- .cart-form {
123
- @apply flex flex-col gap-4;
124
-
125
- .inputs {
126
- @apply flex gap-2;
127
- }
128
- }
129
- }
130
- </style>
@@ -1,88 +0,0 @@
1
- <script lang="ts">
2
- import { cart } from 'fulldev-ui/stores/cart.svelte.ts'
3
- import { formatPrice } from 'fulldev-ui/utils/cart'
4
- import CartQuantity from './CartQuantity.svelte'
5
-
6
- function removeItem(index: number) {
7
- cart.update((currentCart) => {
8
- currentCart.splice(index, 1)
9
- return [...currentCart]
10
- })
11
- }
12
- </script>
13
-
14
- <div class="cart-list">
15
- {#each $cart as item, index}
16
- <div
17
- class="cart-list-card"
18
- data-slug={item.slug}
19
- >
20
- <img
21
- class="image"
22
- src={item.image}
23
- alt={item.title}
24
- />
25
- <div class="cart-list-card-segment">
26
- <div class="cart-list-card-content">
27
- <h3 class="heading">{item.title}</h3>
28
- {#if item.price}
29
- <div class="price">{formatPrice(item.price)}</div>
30
- {/if}
31
- </div>
32
- <div class="cart-list-card-actions">
33
- <CartQuantity bind:value={item.quantity} />
34
- <button
35
- class="button variant-outline size-sm"
36
- type="button"
37
- aria-label="trash"
38
- on:click={() => removeItem(index)}
39
- >
40
- <svg
41
- xmlns="http://www.w3.org/2000/svg"
42
- viewBox="0 0 24 24"
43
- class="icon size-md"
44
- >
45
- <path
46
- fill="none"
47
- stroke="currentColor"
48
- stroke-linecap="round"
49
- stroke-linejoin="round"
50
- stroke-width="2"
51
- d="M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3"
52
- ></path>
53
- </svg>
54
- </button>
55
- </div>
56
- </div>
57
- </div>
58
- {/each}
59
- </div>
60
-
61
- <style lang="postcss">
62
- @layer fulldev {
63
- .cart-list {
64
- @apply flex flex-col text-foreground;
65
-
66
- .cart-list-card {
67
- @apply flex w-full gap-5;
68
-
69
- &:not(:first-child) {
70
- @apply mt-5 border-t pt-5;
71
- }
72
- }
73
-
74
- .image {
75
- @apply block h-auto w-24;
76
- }
77
-
78
- .cart-list-card-segment {
79
- @apply flex h-full w-full flex-col justify-between gap-4;
80
- }
81
-
82
- .cart-list-card-content,
83
- .cart-list-card-actions {
84
- @apply flex justify-between gap-2;
85
- }
86
- }
87
- }
88
- </style>
@@ -1,81 +0,0 @@
1
- <script lang="ts">
2
- import { tick } from 'svelte'
3
-
4
- interface Props {
5
- value: number
6
- size?: 'sm' | 'md' | 'lg'
7
- change?: (quantity: number) => void
8
- }
9
-
10
- let { value = $bindable(), size = 'md', change }: Props = $props()
11
- let inputElement: HTMLInputElement | null = $state(null)
12
-
13
- let quantity = $state(value)
14
-
15
- async function handleChange() {
16
- value = quantity
17
- if (change) change(value)
18
- if (value === 11) {
19
- await tick()
20
- inputElement?.focus()
21
- }
22
- }
23
- </script>
24
-
25
- <label
26
- class="quantity input select size-{size}"
27
- for="quantity"
28
- >
29
- {#if value > 10}
30
- <input
31
- bind:this={inputElement}
32
- bind:value={quantity}
33
- class="input-input"
34
- name="quantity"
35
- type="number"
36
- min={1}
37
- onchange={handleChange}
38
- />
39
- {:else}
40
- <svg
41
- xmlns="http://www.w3.org/2000/svg"
42
- viewBox="0 0 24 24"
43
- class="icon size-{size}"
44
- >
45
- <path
46
- fill="none"
47
- stroke="currentColor"
48
- stroke-linecap="round"
49
- stroke-linejoin="round"
50
- stroke-width="2"
51
- d="m6 9l6 6l6-6"
52
- ></path>
53
- </svg>
54
- <select
55
- class="select-select"
56
- bind:value={quantity}
57
- onchange={handleChange}
58
- >
59
- {#each Array(10) as _, i}
60
- <option
61
- value={i + 1}
62
- selected={value === i + 1}
63
- >
64
- {i + 1}
65
- </option>
66
- {/each}
67
- <option
68
- value={11}
69
- selected={value > 10}
70
- >
71
- Meer
72
- </option>
73
- </select>
74
- {/if}
75
- </label>
76
-
77
- <style lang="postcss">
78
- .quantity {
79
- @apply w-20;
80
- }
81
- </style>
@@ -1,59 +0,0 @@
1
- ---
2
- // @ts-nocheck
3
- import { STRIPE_RESTRICTED_KEY, URL } from 'astro:env/client'
4
- import CartCheckout from './CartCheckout.svelte'
5
- import CartTotal from './CartTotal.svelte'
6
- import Element from './Element.astro'
7
- import Paragraph from './Paragraph.astro'
8
-
9
- interface Props {}
10
-
11
- const { ...rest } = Astro.props
12
- ---
13
-
14
- <Element
15
- size="md"
16
- class="cart-summary"
17
- >
18
- <div
19
- class="row"
20
- {...rest}
21
- >
22
- <Paragraph
23
- class:list="total"
24
- text="Totaal"
25
- contrast
26
- />
27
- <CartTotal client:load />
28
- </div>
29
- <Paragraph
30
- class:list="shipping"
31
- text="Verzendkosten worden berekend bij het afrekenen."
32
- />
33
- <CartCheckout
34
- {STRIPE_RESTRICTED_KEY}
35
- {URL}
36
- client:load
37
- />
38
- </Element>
39
-
40
- <style is:global>
41
- @layer fulldev {
42
- .cart-summary {
43
- @apply flex flex-col gap-3 text-foreground;
44
-
45
- .price,
46
- .total {
47
- @apply text-lg;
48
- }
49
-
50
- .row {
51
- @apply flex w-full justify-between;
52
- }
53
-
54
- .shipping {
55
- @apply text-sm text-muted-foreground;
56
- }
57
- }
58
- }
59
- </style>
@@ -1,15 +0,0 @@
1
- <script lang="ts">
2
- import { cart } from 'fulldev-ui/stores/cart.svelte.ts'
3
- import { formatPrice } from 'fulldev-ui/utils/cart'
4
-
5
- let total = $derived(
6
- $cart.reduce(
7
- (acc, item) => acc + (item.price || 0) * (item.quantity || 0),
8
- 0
9
- )
10
- )
11
- </script>
12
-
13
- <div>
14
- {formatPrice(total)}
15
- </div>
@@ -1,89 +0,0 @@
1
- ---
2
- import type { HTMLAttributes } from 'astro/types'
3
- import Button from 'fulldev-ui/components/Button.astro'
4
- import Element from 'fulldev-ui/components/Element.astro'
5
- import Heading from 'fulldev-ui/components/Heading.astro'
6
- import type { ComponentProps } from 'svelte'
7
-
8
- interface Props extends HTMLAttributes<'div'> {
9
- variant?: 'secondary' | 'outline' | undefined
10
- size?: 'sm' | 'md' | 'lg' | undefined
11
- heading?: string | undefined
12
- text?: string | undefined
13
- href?: string | undefined
14
- icon?: string | undefined
15
- target?: ComponentProps<typeof Button>['target']
16
- }
17
-
18
- const {
19
- variant = 'secondary',
20
- size = 'md',
21
- href,
22
- icon,
23
- heading,
24
- text,
25
- target,
26
- ...rest
27
- } = Astro.props
28
- ---
29
-
30
- <Element
31
- class:list="channel"
32
- {size}
33
- {...rest}
34
- >
35
- <Button
36
- {variant}
37
- {size}
38
- {href}
39
- {icon}
40
- {target}
41
- />
42
- <Element class:list="channel-content">
43
- <Heading
44
- as="h6"
45
- {size}
46
- text={heading}
47
- />
48
- <Fragment set:html={text} />
49
- <slot />
50
- </Element>
51
- </Element>
52
-
53
- <style is:global>
54
- .channel {
55
- @apply flex gap-3;
56
-
57
- .channel-content {
58
- @apply flex flex-col text-muted-foreground;
59
-
60
- .heading {
61
- @apply leading-snug;
62
- }
63
- }
64
-
65
- &.size-sm {
66
- @apply gap-2;
67
-
68
- .channel-content {
69
- @apply text-xs leading-tight;
70
- }
71
- }
72
-
73
- &.size-md {
74
- @apply gap-2.5;
75
-
76
- .channel-content {
77
- @apply text-sm leading-tight;
78
- }
79
- }
80
-
81
- &.size-lg {
82
- @apply gap-3;
83
-
84
- .channel-content {
85
- @apply text-base leading-tight;
86
- }
87
- }
88
- }
89
- </style>
@@ -1,20 +0,0 @@
1
- ---
2
- import type { ComponentProps } from 'astro/types'
3
- import Channel from 'fulldev-ui/components/Channel.astro'
4
-
5
- interface Props extends ComponentProps<typeof Channel> {
6
- channel?: ComponentProps<typeof Channel> | undefined
7
- channels?: ComponentProps<typeof Channel>[] | undefined
8
- }
9
-
10
- const { channel, channels, ...rest } = Astro.props
11
- ---
12
-
13
- {
14
- [channel, ...(channels || [])].filter(Boolean).map((channel) => (
15
- <Channel
16
- {...rest}
17
- {...channel}
18
- />
19
- ))
20
- }
@@ -1,76 +0,0 @@
1
- ---
2
- import type { HTMLAttributes } from 'astro/types'
3
- import Element from 'fulldev-ui/components/Element.astro'
4
- import Icon from 'fulldev-ui/components/Icon.astro'
5
- import Label from 'fulldev-ui/components/Label.astro'
6
-
7
- interface Props extends HTMLAttributes<'input'> {
8
- size?: 'sm' | 'md' | 'lg' | undefined
9
- label?: string | undefined
10
- }
11
-
12
- const { label, name = label, id = name, size = 'md', ...rest } = Astro.props
13
- ---
14
-
15
- <Label
16
- class:list="checkbox"
17
- for={id}
18
- {size}
19
- >
20
- <Element
21
- class:list="checkbox-input"
22
- as="input"
23
- type="checkbox"
24
- show={id}
25
- {id}
26
- {name}
27
- {...rest}
28
- />
29
- <Icon
30
- class="checkbox-icon"
31
- name="check"
32
- {size}
33
- />
34
- <Fragment set:html={label} />
35
- </Label>
36
-
37
- <style is:global>
38
- @layer fulldev {
39
- .checkbox {
40
- @apply relative flex items-center gap-2;
41
-
42
- .checkbox-input {
43
- @apply size-[1em] cursor-pointer rounded-sm border border-primary bg-transparent accent-primary;
44
- @apply appearance-none border border-primary bg-background checked:bg-primary;
45
- }
46
-
47
- .icon.checkbox-icon {
48
- @apply absolute bg-transparent p-0.5 text-background;
49
-
50
- * {
51
- stroke-width: 3.5px !important;
52
- }
53
- }
54
-
55
- &.size-sm {
56
- .checkbox-input,
57
- .icon.checkbox-icon {
58
- @apply !size-3.5;
59
- }
60
- }
61
- &.size-md {
62
- .checkbox-input,
63
- .checkbox-icon {
64
- @apply !size-4;
65
- }
66
- }
67
-
68
- &.size-lg {
69
- .checkbox-input,
70
- .checkbox-icon {
71
- @apply !size-[1.125rem];
72
- }
73
- }
74
- }
75
- }
76
- </style>
@@ -1,70 +0,0 @@
1
- ---
2
- const {
3
- as: As = 'div',
4
- show = 'content',
5
- theme,
6
- variant,
7
- size,
8
- align,
9
- color,
10
- position,
11
- panel,
12
- contrast,
13
- structure,
14
- level,
15
- placement,
16
- reverse,
17
- open,
18
- lead,
19
- current,
20
- direction,
21
- center,
22
- frame,
23
- dark,
24
- muted,
25
- inset,
26
- ...rest
27
- } = Astro.props
28
-
29
- const slot = await Astro.slots.render('default')
30
- const render = show === 'content' ? slot?.trim().length > 0 : show
31
- ---
32
-
33
- {
34
- render && (
35
- <As
36
- class:list={[
37
- {
38
- contrast,
39
- panel,
40
- open,
41
- reverse,
42
- current,
43
- center,
44
- inset,
45
- dark,
46
- muted,
47
- [`size-${size}`]: size,
48
- [`color-${color}`]: color,
49
- [`level-${level}`]: level,
50
- [`frame-${frame}`]: frame,
51
- [`variant-${variant}`]: variant,
52
- [`structure-${structure}`]: structure,
53
- [`align-${align}`]: align,
54
- [`position-${position}`]: position,
55
- [`direction-${direction}`]: direction,
56
- },
57
- ]}
58
- {...rest}
59
- >
60
- <Fragment set:html={slot} />
61
- </As>
62
- )
63
- }
64
-
65
- <style is:global>
66
- @import 'tailwindcss/base' layer(fulldev);
67
- @import 'fulldev-ui/css/theme' layer(fulldev);
68
- @import 'tailwindcss/components';
69
- @import 'tailwindcss/utilities';
70
- </style>
@@ -1,33 +0,0 @@
1
- ---
2
- import Input from 'fulldev-ui/components/Input.astro'
3
- import Select from 'fulldev-ui/components/Select.astro'
4
- import Textarea from 'fulldev-ui/components/Textarea.astro'
5
-
6
- interface Props {
7
- label?: string | undefined
8
- placeholder?: string | undefined
9
- value?: string | undefined
10
- required?: boolean | undefined
11
- disabled?: boolean | undefined
12
- type?: keyof typeof components | undefined
13
- }
14
-
15
- const { type = 'text', ...rest } = Astro.props
16
-
17
- const components = {
18
- select: Select,
19
- textarea: Textarea,
20
- text: Input,
21
- number: Input,
22
- tel: Input,
23
- email: Input,
24
- password: Input,
25
- }
26
-
27
- const Component = components[type]
28
- ---
29
-
30
- <Component
31
- class:list="field"
32
- {...rest}
33
- />
@@ -1,20 +0,0 @@
1
- ---
2
- import type { ComponentProps } from 'astro/types'
3
- import Field from 'fulldev-ui/components/Field.astro'
4
-
5
- interface Props extends ComponentProps<typeof Field> {
6
- field?: ComponentProps<typeof Field> | undefined
7
- fields?: ComponentProps<typeof Field>[] | undefined
8
- }
9
-
10
- const { field, fields, ...rest } = Astro.props
11
- ---
12
-
13
- {
14
- [field, ...(fields || [])].filter(Boolean).map((field) => (
15
- <Field
16
- {...rest}
17
- {...field}
18
- />
19
- ))
20
- }