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.
- package/.prettierrc.yaml +10 -3
- package/README.md +2 -1
- package/astro.config.ts +20 -17
- package/components.json +18 -0
- package/package.json +63 -34
- package/pnpm-lock.yaml +7480 -0
- package/public/images/categories/journals.jpg +0 -0
- package/public/images/categories/productivity.jpg +0 -0
- package/public/images/categories/workspace.jpg +0 -0
- package/public/images/leather-long-wallet.jpg +0 -0
- package/public/images/products/earthen-mug.jpg +0 -0
- package/public/images/products/leather-long-wallet.jpg +0 -0
- package/public/images/products/leatherbound-daily-journal-set.jpg +0 -0
- package/public/images/products/leatherbound-daily-journal.jpg +0 -0
- package/public/images/products/machines-pen.jpg +0 -0
- package/public/images/products/machines-pencil-and-pen-set.jpg +0 -0
- package/public/images/products/mini-sketchbooks.jpg +0 -0
- package/public/images/products/organizer-set.jpg +0 -0
- package/src/blocks/CategoryGroup1.astro +43 -0
- package/src/blocks/CategoryList1.astro +55 -0
- package/src/blocks/Contact1.astro +34 -77
- package/src/blocks/Contact2.astro +31 -77
- package/src/blocks/Content1.astro +18 -30
- package/src/blocks/Cta1.astro +18 -58
- package/src/blocks/Faqs1.astro +29 -0
- package/src/blocks/Faqs2.astro +29 -0
- package/src/blocks/Features1.astro +25 -61
- package/src/blocks/Footer.astro +47 -71
- package/src/blocks/Header.astro +64 -124
- package/src/blocks/Hero1.astro +23 -54
- package/src/blocks/Intro1.astro +16 -58
- package/src/blocks/PostSingle1.astro +29 -0
- package/src/blocks/ProductGroup1.astro +82 -0
- package/src/blocks/ProductList1.astro +60 -0
- package/src/blocks/ProductSingle1.astro +65 -0
- package/src/blocks/Reviews1.astro +23 -67
- package/src/components/Abstract.astro +36 -0
- package/src/components/Accordion.vue +31 -0
- package/src/components/Avatar.astro +23 -32
- package/src/components/Badge.astro +10 -58
- package/src/components/Box.astro +28 -0
- package/src/components/Button.astro +38 -78
- package/src/components/Buttons.astro +41 -19
- package/src/components/Card.astro +20 -0
- package/src/components/Carousel.vue +44 -0
- package/src/components/Chip.astro +27 -0
- package/src/{structures → components}/Code.astro +27 -8
- package/src/components/Collapsible.vue +21 -0
- package/src/components/Container.astro +25 -0
- package/src/components/Drawer.vue +53 -0
- package/src/components/Form.vue +82 -0
- package/src/components/Gallery.vue +85 -0
- package/src/components/Grid.astro +35 -0
- package/src/components/Icon.astro +12 -45
- package/src/components/Image.astro +6 -28
- package/src/components/Layout.astro +126 -0
- package/src/components/Link.astro +7 -65
- package/src/components/List.astro +13 -77
- package/src/components/Logo.astro +16 -35
- package/src/components/Masonry.astro +35 -0
- package/src/components/Menu.astro +31 -36
- package/src/components/Menus.astro +15 -10
- package/src/components/Navigation.vue +93 -0
- package/src/components/Panel.astro +18 -0
- package/src/components/Person.astro +43 -0
- package/src/components/Price.astro +26 -11
- package/src/components/Proof.astro +16 -37
- package/src/components/{docs/Props.astro → Props.astro} +3 -3
- package/src/components/Prose.astro +28 -0
- package/src/components/Rating.astro +5 -24
- package/src/components/Search.vue +65 -0
- package/src/components/Section.astro +18 -0
- package/src/components/Select.vue +41 -0
- package/src/components/Separator.astro +0 -0
- package/src/components/Sidebar.astro +50 -0
- package/src/components/Social.astro +8 -15
- package/src/components/Socials.astro +21 -19
- package/src/components/Sort.vue +46 -0
- package/src/components/Split.astro +27 -0
- package/src/components/Table.astro +17 -17
- package/src/components/Tabs.vue +17 -0
- package/src/components/Themer.astro +12 -3
- package/src/components/Toc.astro +24 -21
- package/src/components/Toolbar.vue +115 -0
- package/src/components/Writeup.astro +37 -0
- package/src/components/ui/accordion/Accordion.vue +19 -0
- package/src/components/ui/accordion/AccordionContent.vue +24 -0
- package/src/components/ui/accordion/AccordionItem.vue +24 -0
- package/src/components/ui/accordion/AccordionTrigger.vue +33 -0
- package/src/components/ui/accordion/index.ts +4 -0
- package/src/components/ui/auto-form/AutoForm.vue +115 -0
- package/src/components/ui/auto-form/AutoFormField.vue +45 -0
- package/src/components/ui/auto-form/AutoFormFieldArray.vue +127 -0
- package/src/components/ui/auto-form/AutoFormFieldBoolean.vue +47 -0
- package/src/components/ui/auto-form/AutoFormFieldDate.vue +78 -0
- package/src/components/ui/auto-form/AutoFormFieldEnum.vue +77 -0
- package/src/components/ui/auto-form/AutoFormFieldFile.vue +87 -0
- package/src/components/ui/auto-form/AutoFormFieldInput.vue +42 -0
- package/src/components/ui/auto-form/AutoFormFieldNumber.vue +42 -0
- package/src/components/ui/auto-form/AutoFormFieldObject.vue +90 -0
- package/src/components/ui/auto-form/AutoFormLabel.vue +19 -0
- package/src/components/ui/auto-form/constant.ts +40 -0
- package/src/components/ui/auto-form/dependencies.ts +92 -0
- package/src/components/ui/auto-form/index.ts +15 -0
- package/src/components/ui/auto-form/interface.ts +95 -0
- package/src/components/ui/auto-form/utils.ts +188 -0
- package/src/components/ui/avatar/Avatar.vue +24 -0
- package/src/components/ui/avatar/AvatarFallback.vue +11 -0
- package/src/components/ui/avatar/AvatarImage.vue +9 -0
- package/src/components/ui/avatar/index.ts +24 -0
- package/src/components/ui/badge/Badge.vue +16 -0
- package/src/components/ui/badge/index.ts +22 -0
- package/src/components/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +22 -0
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +14 -0
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +19 -0
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +21 -0
- package/src/components/ui/breadcrumb/index.ts +7 -0
- package/src/components/ui/button/Button.vue +26 -0
- package/src/components/ui/button/index.ts +31 -0
- package/src/components/ui/calendar/Calendar.vue +80 -0
- package/src/components/ui/calendar/CalendarCell.vue +29 -0
- package/src/components/ui/calendar/CalendarCellTrigger.vue +40 -0
- package/src/components/ui/calendar/CalendarGrid.vue +24 -0
- package/src/components/ui/calendar/CalendarGridBody.vue +11 -0
- package/src/components/ui/calendar/CalendarGridHead.vue +11 -0
- package/src/components/ui/calendar/CalendarGridRow.vue +24 -0
- package/src/components/ui/calendar/CalendarHeadCell.vue +24 -0
- package/src/components/ui/calendar/CalendarHeader.vue +24 -0
- package/src/components/ui/calendar/CalendarHeading.vue +27 -0
- package/src/components/ui/calendar/CalendarNextButton.vue +30 -0
- package/src/components/ui/calendar/CalendarPrevButton.vue +30 -0
- package/src/components/ui/calendar/index.ts +12 -0
- package/src/components/ui/card/Card.vue +14 -0
- package/src/components/ui/card/CardContent.vue +14 -0
- package/src/components/ui/card/CardDescription.vue +14 -0
- package/src/components/ui/card/CardFooter.vue +14 -0
- package/src/components/ui/card/CardHeader.vue +14 -0
- package/src/components/ui/card/CardTitle.vue +14 -0
- package/src/components/ui/card/index.ts +6 -0
- package/src/components/ui/carousel/Carousel.vue +61 -0
- package/src/components/ui/carousel/CarouselContent.vue +27 -0
- package/src/components/ui/carousel/CarouselItem.vue +19 -0
- package/src/components/ui/carousel/CarouselNext.vue +33 -0
- package/src/components/ui/carousel/CarouselPrevious.vue +33 -0
- package/src/components/ui/carousel/index.ts +10 -0
- package/src/components/ui/carousel/interface.ts +26 -0
- package/src/components/ui/carousel/useCarousel.ts +56 -0
- package/src/components/ui/checkbox/Checkbox.vue +36 -0
- package/src/components/ui/checkbox/index.ts +1 -0
- package/src/components/ui/collapsible/Collapsible.vue +15 -0
- package/src/components/ui/collapsible/CollapsibleContent.vue +11 -0
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
- package/src/components/ui/collapsible/index.ts +3 -0
- package/src/components/ui/command/Command.vue +32 -0
- package/src/components/ui/command/CommandDialog.vue +23 -0
- package/src/components/ui/command/CommandEmpty.vue +23 -0
- package/src/components/ui/command/CommandGroup.vue +39 -0
- package/src/components/ui/command/CommandInput.vue +43 -0
- package/src/components/ui/command/CommandItem.vue +31 -0
- package/src/components/ui/command/CommandList.vue +30 -0
- package/src/components/ui/command/CommandSeparator.vue +23 -0
- package/src/components/ui/command/CommandShortcut.vue +14 -0
- package/src/components/ui/command/index.ts +9 -0
- package/src/components/ui/dialog/Dialog.vue +14 -0
- package/src/components/ui/dialog/DialogClose.vue +11 -0
- package/src/components/ui/dialog/DialogContent.vue +51 -0
- package/src/components/ui/dialog/DialogDescription.vue +24 -0
- package/src/components/ui/dialog/DialogFooter.vue +12 -0
- package/src/components/ui/dialog/DialogHeader.vue +14 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/src/components/ui/dialog/DialogTitle.vue +24 -0
- package/src/components/ui/dialog/DialogTrigger.vue +11 -0
- package/src/components/ui/dialog/index.ts +9 -0
- package/src/components/ui/drawer/Drawer.vue +19 -0
- package/src/components/ui/drawer/DrawerContent.vue +31 -0
- package/src/components/ui/drawer/DrawerDescription.vue +23 -0
- package/src/components/ui/drawer/DrawerFooter.vue +14 -0
- package/src/components/ui/drawer/DrawerHeader.vue +14 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +21 -0
- package/src/components/ui/drawer/DrawerTitle.vue +23 -0
- package/src/components/ui/drawer/index.ts +8 -0
- package/src/components/ui/form/FormControl.vue +16 -0
- package/src/components/ui/form/FormDescription.vue +20 -0
- package/src/components/ui/form/FormItem.vue +19 -0
- package/src/components/ui/form/FormLabel.vue +20 -0
- package/src/components/ui/form/FormMessage.vue +16 -0
- package/src/components/ui/form/index.ts +7 -0
- package/src/components/ui/form/injectionKeys.ts +4 -0
- package/src/components/ui/form/useFormField.ts +30 -0
- package/src/components/ui/input/Input.vue +32 -0
- package/src/components/ui/input/index.ts +1 -0
- package/src/components/ui/label/Label.vue +24 -0
- package/src/components/ui/label/index.ts +1 -0
- package/src/components/ui/menubar/Menubar.vue +25 -0
- package/src/components/ui/menubar/MenubarCheckboxItem.vue +42 -0
- package/src/components/ui/menubar/MenubarContent.vue +35 -0
- package/src/components/ui/menubar/MenubarGroup.vue +11 -0
- package/src/components/ui/menubar/MenubarItem.vue +32 -0
- package/src/components/ui/menubar/MenubarLabel.vue +13 -0
- package/src/components/ui/menubar/MenubarMenu.vue +11 -0
- package/src/components/ui/menubar/MenubarRadioGroup.vue +20 -0
- package/src/components/ui/menubar/MenubarRadioItem.vue +42 -0
- package/src/components/ui/menubar/MenubarSeparator.vue +22 -0
- package/src/components/ui/menubar/MenubarShortcut.vue +14 -0
- package/src/components/ui/menubar/MenubarSub.vue +19 -0
- package/src/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/src/components/ui/menubar/MenubarSubTrigger.vue +32 -0
- package/src/components/ui/menubar/MenubarTrigger.vue +29 -0
- package/src/components/ui/menubar/index.ts +15 -0
- package/src/components/ui/navigation-menu/NavigationMenu.vue +33 -0
- package/src/components/ui/navigation-menu/NavigationMenuContent.vue +36 -0
- package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +29 -0
- package/src/components/ui/navigation-menu/NavigationMenuItem.vue +11 -0
- package/src/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
- package/src/components/ui/navigation-menu/NavigationMenuList.vue +24 -0
- package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +30 -0
- package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +29 -0
- package/src/components/ui/navigation-menu/index.ts +14 -0
- package/src/components/ui/popover/Popover.vue +15 -0
- package/src/components/ui/popover/PopoverContent.vue +45 -0
- package/src/components/ui/popover/PopoverTrigger.vue +11 -0
- package/src/components/ui/popover/index.ts +3 -0
- package/src/components/ui/radio-group/RadioGroup.vue +25 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +32 -0
- package/src/components/ui/radio-group/index.ts +2 -0
- package/src/components/ui/select/Select.vue +15 -0
- package/src/components/ui/select/SelectContent.vue +59 -0
- package/src/components/ui/select/SelectGroup.vue +22 -0
- package/src/components/ui/select/SelectItem.vue +38 -0
- package/src/components/ui/select/SelectItemText.vue +11 -0
- package/src/components/ui/select/SelectLabel.vue +13 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +27 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +27 -0
- package/src/components/ui/select/SelectSeparator.vue +20 -0
- package/src/components/ui/select/SelectTrigger.vue +33 -0
- package/src/components/ui/select/SelectValue.vue +11 -0
- package/src/components/ui/select/index.ts +11 -0
- package/src/components/ui/separator/Separator.vue +33 -0
- package/src/components/ui/separator/index.ts +1 -0
- package/src/components/ui/switch/Switch.vue +39 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/tabs/Tabs.vue +15 -0
- package/src/components/ui/tabs/TabsContent.vue +27 -0
- package/src/components/ui/tabs/TabsList.vue +22 -0
- package/src/components/ui/tabs/TabsTrigger.vue +31 -0
- package/src/components/ui/tabs/index.ts +4 -0
- package/src/components/ui/textarea/Textarea.vue +32 -0
- package/src/components/ui/textarea/index.ts +1 -0
- package/src/lib/utils.ts +6 -0
- package/src/schemas/blocks/categoryGroup.ts +17 -0
- package/src/schemas/blocks/categoryList.ts +18 -0
- package/src/schemas/blocks/categorySingle.ts +12 -0
- package/src/schemas/blocks/contact.ts +13 -0
- package/src/schemas/blocks/content.ts +13 -0
- package/src/schemas/blocks/cta.ts +11 -0
- package/src/schemas/blocks/faqs.ts +17 -0
- package/src/schemas/blocks/features.ts +16 -0
- package/src/schemas/blocks/footer.ts +16 -0
- package/src/schemas/{header.ts → blocks/header.ts} +5 -8
- package/src/schemas/blocks/hero.ts +15 -0
- package/src/schemas/blocks/intro.ts +9 -0
- package/src/schemas/blocks/postSingle.ts +12 -0
- package/src/schemas/blocks/productGroup.ts +17 -0
- package/src/schemas/blocks/productList.ts +18 -0
- package/src/schemas/blocks/productSingle.ts +15 -0
- package/src/schemas/blocks/reviews.ts +16 -0
- package/src/schemas/fields/badge.ts +9 -0
- package/src/schemas/fields/block.ts +60 -0
- package/src/schemas/fields/button.ts +12 -0
- package/src/schemas/fields/card.ts +28 -0
- package/src/schemas/fields/channel.ts +10 -0
- package/src/schemas/fields/form.ts +20 -0
- package/src/schemas/fields/image.ts +8 -0
- package/src/schemas/fields/link.ts +9 -0
- package/src/schemas/fields/logo.ts +10 -0
- package/src/schemas/fields/menu.ts +10 -0
- package/src/schemas/fields/meta.ts +14 -0
- package/src/schemas/fields/proof.ts +11 -0
- package/src/schemas/fields/section.ts +48 -0
- package/tailwind.config.js +111 -0
- package/tsconfig.json +5 -7
- package/.env.example +0 -3
- package/.vscode/settings.json +0 -25
- package/CONTRIBUTING.md +0 -124
- package/cloudcannon.config.yml +0 -207
- package/public/favicon/android-chrome-192x192.png +0 -0
- package/public/favicon/android-chrome-512x512.png +0 -0
- package/public/favicon/apple-touch-icon.png +0 -0
- package/public/favicon/browserconfig.xml +0 -9
- package/public/favicon/favicon-16x16.png +0 -0
- package/public/favicon/favicon-32x32.png +0 -0
- package/public/favicon/favicon-48x48.png +0 -0
- package/public/favicon/favicon.ico +0 -0
- package/public/favicon/favicon.svg +0 -16
- package/public/favicon/manifest.webmanifest +0 -30
- package/public/favicon/mstile-150x150.png +0 -0
- package/public/favicon/safari-pinned-tab.svg +0 -16
- package/public/favicon/yandex-browser-50x50.png +0 -0
- package/public/favicon/yandex-browser-manifest.json +0 -9
- package/siteicon.png +0 -0
- package/src/blocks/Banner.astro +0 -31
- package/src/blocks/Colleagues1.astro +0 -74
- package/src/blocks/Compare1.astro +0 -64
- package/src/blocks/Content2.astro +0 -47
- package/src/blocks/Content3.astro +0 -47
- package/src/blocks/Content4.astro +0 -52
- package/src/blocks/Content5.astro +0 -43
- package/src/blocks/Content6.astro +0 -57
- package/src/blocks/Content7.astro +0 -65
- package/src/blocks/Content8.astro +0 -48
- package/src/blocks/Cta2.astro +0 -52
- package/src/blocks/Features2.astro +0 -71
- package/src/blocks/JobCategories1.astro +0 -61
- package/src/blocks/JobCategory1.astro +0 -92
- package/src/blocks/Jobs1.astro +0 -74
- package/src/blocks/Logos1.astro +0 -55
- package/src/blocks/Pages1.astro +0 -85
- package/src/blocks/Pricings1.astro +0 -61
- package/src/blocks/Products1.astro +0 -87
- package/src/blocks/Projects1.astro +0 -79
- package/src/blocks/Subheader.astro +0 -53
- package/src/components/Avatars.astro +0 -20
- package/src/components/Badges.astro +0 -20
- package/src/components/Block.astro +0 -46
- package/src/components/Cart.astro +0 -42
- package/src/components/CartAdd.svelte +0 -76
- package/src/components/CartCheckout.svelte +0 -58
- package/src/components/CartForm.svelte +0 -130
- package/src/components/CartList.svelte +0 -88
- package/src/components/CartQuantity.svelte +0 -81
- package/src/components/CartSummary.astro +0 -59
- package/src/components/CartTotal.svelte +0 -15
- package/src/components/Channel.astro +0 -89
- package/src/components/Channels.astro +0 -20
- package/src/components/Checkbox.astro +0 -76
- package/src/components/Element.astro +0 -70
- package/src/components/Field.astro +0 -33
- package/src/components/Fields.astro +0 -20
- package/src/components/Form.astro +0 -34
- package/src/components/Gallery.astro +0 -175
- package/src/components/Head.astro +0 -94
- package/src/components/Heading.astro +0 -91
- package/src/components/Input.astro +0 -115
- package/src/components/Label.astro +0 -42
- package/src/components/Links.astro +0 -20
- package/src/components/Paragraph.astro +0 -54
- package/src/components/Search.astro +0 -118
- package/src/components/Select.astro +0 -114
- package/src/components/Switch.astro +0 -81
- package/src/components/Tagline.astro +0 -49
- package/src/components/Textarea.astro +0 -78
- package/src/components/Toggle.astro +0 -45
- package/src/components/_Breadcrumb.astro +0 -58
- package/src/components/_Image.astro +0 -79
- package/src/components/_LocaleSwitcher.astro +0 -25
- package/src/content/config.ts +0 -18
- package/src/content/layouts/base.yml +0 -166
- package/src/content/pages/_base/toggle.mdx +0 -28
- package/src/content/pages/_posts/post.md +0 -7
- package/src/content/pages/_showcase/anti-slip-profiles.md +0 -5
- package/src/content/pages/_showcase/fulldev-ui.md +0 -5
- package/src/content/pages/_showcase/lavis-detailing.md +0 -5
- package/src/content/pages/_showcase/leren-trainingsacteren.md +0 -5
- package/src/content/pages/_showcase/miele-witgoedcenter-amsterdam.md +0 -5
- package/src/content/pages/_showcase/sloepverhuur-bolsward.md +0 -5
- package/src/content/pages/_showcase/stark-vulcanising-products.md +0 -4
- package/src/content/pages/_showcase/the-gym-haren.md +0 -5
- package/src/content/pages/_showcase/van-dillen-antieke-bouwmaterialen.md +0 -5
- package/src/content/pages/docs/blocks/_categories.mdx +0 -129
- package/src/content/pages/docs/blocks/_contact.mdx +0 -67
- package/src/content/pages/docs/blocks/_jobs.mdx +0 -34
- package/src/content/pages/docs/blocks/_posts.mdx +0 -45
- package/src/content/pages/docs/blocks/_stats.mdx +0 -32
- package/src/content/pages/docs/blocks/banner.mdx +0 -12
- package/src/content/pages/docs/blocks/colleagues.mdx +0 -49
- package/src/content/pages/docs/blocks/content.mdx +0 -316
- package/src/content/pages/docs/blocks/cta.mdx +0 -16
- package/src/content/pages/docs/blocks/features.mdx +0 -100
- package/src/content/pages/docs/blocks/footer.mdx +0 -46
- package/src/content/pages/docs/blocks/header.mdx +0 -60
- package/src/content/pages/docs/blocks/hero.mdx +0 -18
- package/src/content/pages/docs/blocks/intro.mdx +0 -16
- package/src/content/pages/docs/blocks/logos.mdx +0 -37
- package/src/content/pages/docs/blocks/projects.mdx +0 -36
- package/src/content/pages/docs/blocks/reviews.mdx +0 -65
- package/src/content/pages/docs/blocks.mdx +0 -52
- package/src/content/pages/docs/collections/images.mdx +0 -102
- package/src/content/pages/docs/collections/pages.mdx +0 -119
- package/src/content/pages/docs/collections/presets.mdx +0 -60
- package/src/content/pages/docs/components/_localeswitcher.mdx +0 -16
- package/src/content/pages/docs/components/_table.mdx +0 -101
- package/src/content/pages/docs/components/_tagline.mdx +0 -34
- package/src/content/pages/docs/components/_themer.mdx +0 -47
- package/src/content/pages/docs/components/_toggle.mdx +0 -30
- package/src/content/pages/docs/components/avatar.mdx +0 -32
- package/src/content/pages/docs/components/badge.mdx +0 -42
- package/src/content/pages/docs/components/badges.mdx +0 -33
- package/src/content/pages/docs/components/button.mdx +0 -76
- package/src/content/pages/docs/components/buttons.mdx +0 -50
- package/src/content/pages/docs/components/channel.mdx +0 -89
- package/src/content/pages/docs/components/channels.mdx +0 -90
- package/src/content/pages/docs/components/checkbox.mdx +0 -32
- package/src/content/pages/docs/components/heading.mdx +0 -49
- package/src/content/pages/docs/components/icon.mdx +0 -46
- package/src/content/pages/docs/components/image.mdx +0 -20
- package/src/content/pages/docs/components/input.mdx +0 -38
- package/src/content/pages/docs/components/label.mdx +0 -42
- package/src/content/pages/docs/components/link.mdx +0 -63
- package/src/content/pages/docs/components/links.mdx +0 -57
- package/src/content/pages/docs/components/list.mdx +0 -53
- package/src/content/pages/docs/components/logo.mdx +0 -24
- package/src/content/pages/docs/components/menu.mdx +0 -48
- package/src/content/pages/docs/components/paragraph.mdx +0 -44
- package/src/content/pages/docs/components/rating.mdx +0 -43
- package/src/content/pages/docs/components/select.mdx +0 -46
- package/src/content/pages/docs/components/social.mdx +0 -92
- package/src/content/pages/docs/components/socials.mdx +0 -103
- package/src/content/pages/docs/components/switch.mdx +0 -32
- package/src/content/pages/docs/components/tagline.mdx +0 -42
- package/src/content/pages/docs/components/textarea.mdx +0 -32
- package/src/content/pages/docs/components.mdx +0 -36
- package/src/content/pages/docs/customization.mdx +0 -183
- package/src/content/pages/docs/frameworks.mdx +0 -30
- package/src/content/pages/docs/index.mdx +0 -21
- package/src/content/pages/docs/installation.mdx +0 -30
- package/src/content/pages/docs/layouts/doc.mdx +0 -15
- package/src/content/pages/docs/layouts/page.mdx +0 -15
- package/src/content/pages/docs/pages.mdx +0 -130
- package/src/content/pages/docs/structures/_card.mdx +0 -84
- package/src/content/pages/docs/structures/_dialog.mdx +0 -15
- package/src/content/pages/docs/structures/_drawer.mdx +0 -15
- package/src/content/pages/docs/structures/card.mdx +0 -15
- package/src/content/pages/docs/structures/carousel.mdx +0 -14
- package/src/content/pages/docs/structures/code.mdx +0 -42
- package/src/content/pages/docs/structures/container.mdx +0 -15
- package/src/content/pages/docs/structures/drawer.mdx +0 -15
- package/src/content/pages/docs/structures/group.mdx +0 -15
- package/src/content/pages/docs/structures/layout.mdx +0 -15
- package/src/content/pages/docs/structures/masonry.mdx +0 -15
- package/src/content/pages/docs/structures/matrix.mdx +0 -15
- package/src/content/pages/docs/structures/panel.mdx +0 -15
- package/src/content/pages/docs/structures/prose.mdx +0 -33
- package/src/content/pages/docs/structures/section.mdx +0 -15
- package/src/content/pages/docs/structures/stack.mdx +0 -15
- package/src/content/pages/docs/structures/writeup.mdx +0 -15
- package/src/content/pages/docs/structures.mdx +0 -7
- package/src/content/pages/index.mdx +0 -52
- package/src/content/pages/showcase.mdx +0 -30
- package/src/css/custom.css +0 -24
- package/src/css/theme.css +0 -62
- package/src/env.d.ts +0 -3
- package/src/integration/index.ts +0 -185
- package/src/layouts/Page.astro +0 -64
- package/src/layouts/_Product.astro +0 -115
- package/src/pages/[...page].astro +0 -49
- package/src/pages/test.astro +0 -16
- package/src/schemas/badge.ts +0 -14
- package/src/schemas/block.ts +0 -42
- package/src/schemas/button.ts +0 -17
- package/src/schemas/card.ts +0 -43
- package/src/schemas/channel.ts +0 -15
- package/src/schemas/checkbox.ts +0 -13
- package/src/schemas/footer.ts +0 -17
- package/src/schemas/head.ts +0 -17
- package/src/schemas/image.ts +0 -53
- package/src/schemas/input.ts +0 -13
- package/src/schemas/link.ts +0 -14
- package/src/schemas/logo.ts +0 -13
- package/src/schemas/menu.ts +0 -11
- package/src/schemas/page.ts +0 -23
- package/src/schemas/proof.ts +0 -12
- package/src/schemas/textarea.ts +0 -11
- package/src/stores/cart.svelte.ts +0 -78
- package/src/stores/cart.ts +0 -76
- package/src/structures/Card.astro +0 -35
- package/src/structures/Carousel.astro +0 -106
- package/src/structures/Container.astro +0 -25
- package/src/structures/Drawer.astro +0 -81
- package/src/structures/Group.astro +0 -25
- package/src/structures/Layout.astro +0 -34
- package/src/structures/Masonry.astro +0 -42
- package/src/structures/Matrix.astro +0 -39
- package/src/structures/Panel.astro +0 -25
- package/src/structures/Prose.astro +0 -96
- package/src/structures/Section.astro +0 -26
- package/src/structures/Sidebar.astro +0 -36
- package/src/structures/Split.astro +0 -38
- package/src/structures/Stack.astro +0 -25
- package/src/structures/Writeup.astro +0 -67
- package/src/structures/_Bento.astro +0 -34
- package/src/utils/cart.ts +0 -27
- package/src/utils/getHref.ts +0 -6
- package/src/utils/slugify.ts +0 -6
- package/svelte.config.js +0 -5
- package/tailwind.config.ts +0 -72
- package/virtual.d.ts +0 -5
- /package/src/schemas/{path.ts → fields/path.ts} +0 -0
|
@@ -1,94 +1,54 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Element from 'fulldev-ui/components/Element.astro'
|
|
4
3
|
import Icon from 'fulldev-ui/components/Icon.astro'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
href?: string | undefined
|
|
4
|
+
import type { ButtonVariants } from 'fulldev-ui/components/ui/button'
|
|
5
|
+
import { buttonVariants } from 'fulldev-ui/components/ui/button'
|
|
6
|
+
import Box from './Box.astro'
|
|
7
|
+
|
|
8
|
+
interface Props extends HTMLAttributes<'button'>, Omit<HTMLAttributes<'a'>, 'type'>, ButtonVariants {
|
|
9
|
+
href?: string
|
|
10
|
+
text?: string
|
|
11
|
+
icon?: string
|
|
12
|
+
reverse?: boolean
|
|
15
13
|
}
|
|
16
14
|
|
|
15
|
+
const slot = await Astro.slots.render('default')
|
|
16
|
+
const hasSlot = slot?.trim().length > 0
|
|
17
|
+
|
|
17
18
|
const {
|
|
18
|
-
|
|
19
|
-
size = 'md',
|
|
19
|
+
href,
|
|
20
20
|
text,
|
|
21
|
+
size = !(hasSlot || text) ? 'icon' : undefined,
|
|
22
|
+
variant,
|
|
21
23
|
icon,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
reverse,
|
|
25
|
+
class: className,
|
|
24
26
|
...rest
|
|
25
27
|
} = Astro.props
|
|
26
28
|
---
|
|
27
29
|
|
|
28
|
-
<
|
|
29
|
-
class:list={['button']}
|
|
30
|
-
as={href ? 'a' :
|
|
31
|
-
{variant}
|
|
32
|
-
{size}
|
|
30
|
+
<Box
|
|
31
|
+
class:list={['button', buttonVariants({ variant, size }), className]}
|
|
32
|
+
as={href ? 'a' : 'button'}
|
|
33
33
|
{href}
|
|
34
|
-
{target}
|
|
35
34
|
{...rest}
|
|
36
35
|
>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
&.size-md {
|
|
56
|
-
@apply h-10 min-h-10 min-w-10 px-4;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.size-lg {
|
|
60
|
-
@apply h-11 min-h-11 min-w-11 px-5;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.variant-primary {
|
|
64
|
-
@apply bg-primary text-primary-foreground hover:bg-primary-hover;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.variant-secondary {
|
|
68
|
-
@apply bg-secondary text-secondary-foreground hover:bg-secondary-hover;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.variant-outline {
|
|
72
|
-
@apply border border-input text-accent-foreground hover:bg-accent;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.variant-ghost {
|
|
76
|
-
@apply text-accent-foreground hover:bg-accent;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.icon {
|
|
80
|
-
@apply first:last:absolute;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
span {
|
|
84
|
-
@apply text-inherit;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.reverse {
|
|
88
|
-
.icon {
|
|
89
|
-
@apply order-last;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
36
|
+
{
|
|
37
|
+
!reverse && (
|
|
38
|
+
<Icon
|
|
39
|
+
class={!(hasSlot || text) ? 'absolute' : undefined}
|
|
40
|
+
name={icon}
|
|
41
|
+
/>
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
<Fragment set:html={text} />
|
|
45
|
+
<Fragment set:html={slot} />
|
|
46
|
+
{
|
|
47
|
+
reverse && (
|
|
48
|
+
<Icon
|
|
49
|
+
class={!(hasSlot || text) ? 'absolute' : undefined}
|
|
50
|
+
name={icon}
|
|
51
|
+
/>
|
|
52
|
+
)
|
|
93
53
|
}
|
|
94
|
-
</
|
|
54
|
+
</Box>
|
|
@@ -1,28 +1,50 @@
|
|
|
1
1
|
---
|
|
2
|
-
import type { ComponentProps } from 'astro/types'
|
|
2
|
+
import type { ComponentProps, HTMLAttributes } from 'astro/types'
|
|
3
3
|
import Button from 'fulldev-ui/components/Button.astro'
|
|
4
|
+
import Box from './Box.astro'
|
|
4
5
|
|
|
5
|
-
interface Props extends
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
interface Props extends HTMLAttributes<'div'> {
|
|
7
|
+
justify?: 'start' | 'center' | 'end'
|
|
8
|
+
size?: ComponentProps<typeof Button>['size']
|
|
9
|
+
buttons?: ComponentProps<typeof Button>[]
|
|
10
|
+
reverse?: boolean
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
const {
|
|
13
|
+
const { size = 'default', justify = 'start', reverse = false, class: className, buttons, ...rest } = Astro.props
|
|
11
14
|
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const getButtonVariant = (index: number) => {
|
|
16
|
+
if (reverse) {
|
|
17
|
+
const length = buttons?.length || 0
|
|
18
|
+
if (index === length - 1) return 'default'
|
|
19
|
+
if (index === length - 2) return 'outline'
|
|
20
|
+
return 'ghost'
|
|
21
|
+
}
|
|
22
|
+
if (index === 0) return 'default'
|
|
23
|
+
if (index === 1) return 'outline'
|
|
24
|
+
return 'ghost'
|
|
17
25
|
}
|
|
18
26
|
---
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
<Box
|
|
29
|
+
class:list={[
|
|
30
|
+
'buttons justify-inherit inline-flex flex-wrap gap-2',
|
|
31
|
+
{
|
|
32
|
+
'justify-start': justify === 'start',
|
|
33
|
+
'justify-center': justify === 'center',
|
|
34
|
+
'justify-end': justify === 'end',
|
|
35
|
+
},
|
|
36
|
+
className,
|
|
37
|
+
]}
|
|
38
|
+
{...rest}
|
|
39
|
+
>
|
|
40
|
+
{
|
|
41
|
+
buttons?.map((button, i) => (
|
|
42
|
+
<Button
|
|
43
|
+
variant={getButtonVariant(i)}
|
|
44
|
+
{size}
|
|
45
|
+
{...button}
|
|
46
|
+
/>
|
|
47
|
+
))
|
|
48
|
+
}
|
|
49
|
+
<slot />
|
|
50
|
+
</Box>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
+
|
|
5
|
+
interface Props extends HTMLAttributes<'a'>, HTMLAttributes<'div'> {}
|
|
6
|
+
|
|
7
|
+
const { href, class: className, ...rest } = Astro.props
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<Box
|
|
11
|
+
class:list={[
|
|
12
|
+
'card color-card-foreground relative flex flex-col gap-3 overflow-hidden rounded-lg border bg-card p-6',
|
|
13
|
+
className,
|
|
14
|
+
]}
|
|
15
|
+
as={href ? 'a' : 'div'}
|
|
16
|
+
{href}
|
|
17
|
+
{...rest}
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</Box>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
Carousel,
|
|
4
|
+
CarouselContent,
|
|
5
|
+
CarouselItem,
|
|
6
|
+
CarouselNext,
|
|
7
|
+
CarouselPrevious,
|
|
8
|
+
} from 'fulldev-ui/components/ui/carousel'
|
|
9
|
+
import { parse } from 'node-html-parser'
|
|
10
|
+
import { renderToString } from 'vue/server-renderer'
|
|
11
|
+
|
|
12
|
+
interface Props {
|
|
13
|
+
itemClass?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const { itemClass } = defineProps<Props>()
|
|
17
|
+
|
|
18
|
+
const slots = defineSlots<{
|
|
19
|
+
default(): any
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const slot = slots['default']()[0]
|
|
23
|
+
const html = await renderToString(slot)
|
|
24
|
+
const root = parse(html)
|
|
25
|
+
const container = root.querySelector('astro-static-slot') || root.querySelector('astro-slot') || root
|
|
26
|
+
const children = container.children
|
|
27
|
+
const htmlItems = children.map((child) => child.outerHTML)
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<Carousel v-slot="{ canScrollNext }">
|
|
32
|
+
<CarouselContent>
|
|
33
|
+
<CarouselItem
|
|
34
|
+
v-for="(htmlItem, index) in htmlItems"
|
|
35
|
+
:key="index"
|
|
36
|
+
:class="itemClass"
|
|
37
|
+
>
|
|
38
|
+
<div v-html="htmlItem" />
|
|
39
|
+
</CarouselItem>
|
|
40
|
+
</CarouselContent>
|
|
41
|
+
<CarouselPrevious />
|
|
42
|
+
<CarouselNext v-if="canScrollNext" />
|
|
43
|
+
</Carousel>
|
|
44
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
+
import { buttonVariants } from 'fulldev-ui/components/ui/button'
|
|
5
|
+
import { badgeVariants, type BadgeVariants } from './ui/badge'
|
|
6
|
+
|
|
7
|
+
interface Props extends HTMLAttributes<'a'>, BadgeVariants {
|
|
8
|
+
text?: string
|
|
9
|
+
href?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const { href, text, variant, class: className, ...rest } = Astro.props
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<Box
|
|
16
|
+
class:list={[
|
|
17
|
+
'chip',
|
|
18
|
+
href ? buttonVariants({ variant }) : badgeVariants({ variant }),
|
|
19
|
+
'h-7 rounded-full px-3.5 text-xs font-medium',
|
|
20
|
+
className,
|
|
21
|
+
]}
|
|
22
|
+
{href}
|
|
23
|
+
{...rest}
|
|
24
|
+
>
|
|
25
|
+
<Fragment set:html={text} />
|
|
26
|
+
<slot />
|
|
27
|
+
</Box>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { ComponentProps } from 'astro/types'
|
|
3
3
|
import { Code as AstroCode } from 'astro:components'
|
|
4
|
-
import
|
|
4
|
+
import Box from 'fulldev-ui/components/Box.astro'
|
|
5
5
|
|
|
6
6
|
interface Props extends ComponentProps<typeof AstroCode> {}
|
|
7
7
|
|
|
8
8
|
const { lang = 'astro', code, ...rest } = Astro.props
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
<
|
|
11
|
+
<Box class:list="code">
|
|
12
12
|
<div class="example">
|
|
13
13
|
<slot name="example" />
|
|
14
14
|
<Fragment set:html={code} />
|
|
@@ -24,29 +24,48 @@ const { lang = 'astro', code, ...rest } = Astro.props
|
|
|
24
24
|
/>
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
|
-
</
|
|
27
|
+
</Box>
|
|
28
28
|
|
|
29
29
|
<style is:global>
|
|
30
30
|
@layer fulldev {
|
|
31
31
|
.code {
|
|
32
|
-
|
|
32
|
+
margin-top: var(--spacing-8);
|
|
33
|
+
border: 1px solid var(--color-border);
|
|
34
|
+
border-radius: var(--radius-md);
|
|
35
|
+
width: 100%;
|
|
36
|
+
&:first-child {
|
|
37
|
+
margin-top: 0;
|
|
38
|
+
}
|
|
33
39
|
|
|
34
40
|
.example {
|
|
35
|
-
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: var(--spacing-8);
|
|
45
|
+
padding: var(--spacing-8);
|
|
36
46
|
|
|
37
47
|
> *,
|
|
38
48
|
> slot > * {
|
|
39
|
-
|
|
49
|
+
margin-top: 0;
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
.heading,
|
|
43
53
|
.paragraph {
|
|
44
|
-
|
|
54
|
+
width: 100%;
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
|
|
48
58
|
.astro-code {
|
|
49
|
-
|
|
59
|
+
margin-top: 0;
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: 0;
|
|
62
|
+
padding: var(--spacing-4);
|
|
63
|
+
overflow-x: auto;
|
|
64
|
+
font-size: var(--text-sm);
|
|
65
|
+
|
|
66
|
+
&:first-child {
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
}
|
|
50
69
|
}
|
|
51
70
|
}
|
|
52
71
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from 'fulldev-ui/components/ui/collapsible'
|
|
3
|
+
import { ref } from 'vue'
|
|
4
|
+
|
|
5
|
+
const isOpen = ref(false)
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<Collapsible v-model:open="isOpen">
|
|
10
|
+
<CollapsibleTrigger as-child>
|
|
11
|
+
<div
|
|
12
|
+
class="max-h-40 overflow-hidden bg-gradient-to-b from-foreground via-foreground text-transparent to-transparent bg-clip-text"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</CollapsibleTrigger>
|
|
17
|
+
<CollapsibleContent class="-mt-40">
|
|
18
|
+
<slot />
|
|
19
|
+
</CollapsibleContent>
|
|
20
|
+
</Collapsible>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
+
|
|
5
|
+
interface Props extends HTMLAttributes<'div'> {
|
|
6
|
+
size?: 'sm' | 'default' | 'lg'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const { size = 'default', class: className, ...rest } = Astro.props
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Box
|
|
13
|
+
class:list={[
|
|
14
|
+
'mx-auto w-full gap-x-8 gap-y-16 px-4 lg:px-8',
|
|
15
|
+
{
|
|
16
|
+
'max-w-screen-md lg:px-16': size === 'sm',
|
|
17
|
+
'max-w-screen-xl': size === 'default',
|
|
18
|
+
'max-w-screen-2xl': size === 'lg',
|
|
19
|
+
},
|
|
20
|
+
className,
|
|
21
|
+
]}
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<slot />
|
|
25
|
+
</Box>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Button } from 'fulldev-ui/components/ui/button'
|
|
3
|
+
import {
|
|
4
|
+
Drawer,
|
|
5
|
+
DrawerContent,
|
|
6
|
+
DrawerDescription,
|
|
7
|
+
DrawerFooter,
|
|
8
|
+
DrawerHeader,
|
|
9
|
+
DrawerTitle,
|
|
10
|
+
DrawerTrigger,
|
|
11
|
+
} from 'fulldev-ui/components/ui/drawer'
|
|
12
|
+
import type { HTMLAttributes } from 'vue'
|
|
13
|
+
|
|
14
|
+
interface Props {
|
|
15
|
+
class?: HTMLAttributes['class']
|
|
16
|
+
button?: {
|
|
17
|
+
text?: string
|
|
18
|
+
variant?: 'default' | 'secondary' | 'outline' | 'ghost'
|
|
19
|
+
size?: 'default' | 'sm' | 'lg'
|
|
20
|
+
}
|
|
21
|
+
title?: string
|
|
22
|
+
description?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const { button, title, description, class: className } = defineProps<Props>()
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<Drawer>
|
|
30
|
+
<DrawerTrigger as-child>
|
|
31
|
+
<Button
|
|
32
|
+
:variant="button?.variant"
|
|
33
|
+
:size="button?.size"
|
|
34
|
+
:class="className"
|
|
35
|
+
name="drawer-trigger"
|
|
36
|
+
>
|
|
37
|
+
{{ button?.text }}
|
|
38
|
+
<slot name="trigger" />
|
|
39
|
+
</Button>
|
|
40
|
+
</DrawerTrigger>
|
|
41
|
+
<DrawerContent>
|
|
42
|
+
<DrawerHeader>
|
|
43
|
+
<DrawerTitle>{{ title }}</DrawerTitle>
|
|
44
|
+
<DrawerDescription>{{ description }}</DrawerDescription>
|
|
45
|
+
<slot name="header" />
|
|
46
|
+
</DrawerHeader>
|
|
47
|
+
<slot />
|
|
48
|
+
<DrawerFooter>
|
|
49
|
+
<slot name="footer" />
|
|
50
|
+
</DrawerFooter>
|
|
51
|
+
</DrawerContent>
|
|
52
|
+
</Drawer>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { AutoForm } from 'fulldev-ui/components/ui/auto-form'
|
|
3
|
+
import { Button } from 'fulldev-ui/components/ui/button'
|
|
4
|
+
import type { FormHTMLAttributes } from 'vue'
|
|
5
|
+
import { z } from 'zod'
|
|
6
|
+
|
|
7
|
+
interface Props extends /* @vue-ignore */ FormHTMLAttributes {
|
|
8
|
+
fields?: {
|
|
9
|
+
label: string
|
|
10
|
+
type: 'text' | 'email' | 'checkbox' | 'select'
|
|
11
|
+
optional?: boolean
|
|
12
|
+
options?: string[]
|
|
13
|
+
}[]
|
|
14
|
+
submit?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const { fields, action, method } = defineProps<Props>()
|
|
18
|
+
|
|
19
|
+
// Conditionally add the optional flag to the zod schema
|
|
20
|
+
const withOptional = (optional: boolean | undefined, schema: z.ZodSchema) => (optional ? schema.optional() : schema)
|
|
21
|
+
|
|
22
|
+
// Get the correct zod schema for the field
|
|
23
|
+
const getFieldSchema = ({ type, optional, options }: any) => {
|
|
24
|
+
switch (type) {
|
|
25
|
+
case 'text':
|
|
26
|
+
return withOptional(optional, z.string())
|
|
27
|
+
case 'email':
|
|
28
|
+
return withOptional(optional, z.string().email())
|
|
29
|
+
case 'checkbox':
|
|
30
|
+
return withOptional(optional, z.boolean())
|
|
31
|
+
case 'select':
|
|
32
|
+
return withOptional(optional, z.enum(options))
|
|
33
|
+
case 'date':
|
|
34
|
+
return withOptional(optional, z.coerce.date())
|
|
35
|
+
case 'textarea':
|
|
36
|
+
return withOptional(optional, z.string())
|
|
37
|
+
default:
|
|
38
|
+
return withOptional(optional, z.string())
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Get the correct config object the field
|
|
43
|
+
const getFieldConfig = ({ type }: any) => {
|
|
44
|
+
switch (type) {
|
|
45
|
+
case 'textarea':
|
|
46
|
+
return {
|
|
47
|
+
component: 'textarea',
|
|
48
|
+
}
|
|
49
|
+
default:
|
|
50
|
+
return {}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Loop over fields array and create on object using getFieldSchema for each field
|
|
55
|
+
const schema = z.object(
|
|
56
|
+
(fields || []).reduce((acc: any, field) => {
|
|
57
|
+
acc[field.label] = getFieldSchema(field)
|
|
58
|
+
return acc
|
|
59
|
+
}, {})
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
// Loop over fields array and create on object using getFieldSchema for each field
|
|
63
|
+
const config = (fields || []).reduce((acc: any, field) => {
|
|
64
|
+
acc[field.label] = getFieldConfig(field)
|
|
65
|
+
return acc
|
|
66
|
+
}, {})
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<AutoForm
|
|
71
|
+
class="w-full space-y-6 [&>div>p[role='alert']]:hidden"
|
|
72
|
+
:field-config="config"
|
|
73
|
+
:schema="schema"
|
|
74
|
+
:action
|
|
75
|
+
:method
|
|
76
|
+
>
|
|
77
|
+
<slot />
|
|
78
|
+
<Button type="submit">
|
|
79
|
+
{{ submit }}
|
|
80
|
+
</Button>
|
|
81
|
+
</AutoForm>
|
|
82
|
+
</template>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { watchOnce } from '@vueuse/core'
|
|
3
|
+
import {
|
|
4
|
+
Carousel,
|
|
5
|
+
type CarouselApi,
|
|
6
|
+
CarouselContent,
|
|
7
|
+
CarouselItem,
|
|
8
|
+
CarouselNext,
|
|
9
|
+
CarouselPrevious,
|
|
10
|
+
} from 'fulldev-ui/components/ui/carousel'
|
|
11
|
+
import { parse } from 'node-html-parser'
|
|
12
|
+
import { ref } from 'vue'
|
|
13
|
+
import { renderToString } from 'vue/server-renderer'
|
|
14
|
+
|
|
15
|
+
const emblaMainApi = ref<CarouselApi>()
|
|
16
|
+
const emblaThumbnailApi = ref<CarouselApi>()
|
|
17
|
+
const selectedIndex = ref(0)
|
|
18
|
+
|
|
19
|
+
function onSelect() {
|
|
20
|
+
if (!emblaMainApi.value || !emblaThumbnailApi.value) return
|
|
21
|
+
selectedIndex.value = emblaMainApi.value.selectedScrollSnap()
|
|
22
|
+
emblaThumbnailApi.value.scrollTo(emblaMainApi.value.selectedScrollSnap())
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function onThumbClick(index: number) {
|
|
26
|
+
if (!emblaMainApi.value || !emblaThumbnailApi.value) return
|
|
27
|
+
emblaMainApi.value.scrollTo(index)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
watchOnce(emblaMainApi, (emblaMainApi) => {
|
|
31
|
+
if (!emblaMainApi) return
|
|
32
|
+
|
|
33
|
+
onSelect()
|
|
34
|
+
emblaMainApi.on('select', onSelect)
|
|
35
|
+
emblaMainApi.on('reInit', onSelect)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const slots = defineSlots<{
|
|
39
|
+
default(): any
|
|
40
|
+
}>()
|
|
41
|
+
|
|
42
|
+
const slot = slots['default']()[0]
|
|
43
|
+
const html = await renderToString(slot)
|
|
44
|
+
const root = parse(html)
|
|
45
|
+
const container = root.querySelector('astro-static-slot') || root.querySelector('astro-slot') || root
|
|
46
|
+
const children = container.children
|
|
47
|
+
const htmlItems = children.map((child) => child.outerHTML)
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<div class="w-full flex flex-col gap-2">
|
|
52
|
+
<Carousel
|
|
53
|
+
class="relative"
|
|
54
|
+
@init-api="(val) => (emblaMainApi = val)"
|
|
55
|
+
>
|
|
56
|
+
<CarouselContent>
|
|
57
|
+
<CarouselItem
|
|
58
|
+
v-for="(htmlItem, index) in htmlItems"
|
|
59
|
+
:key="index"
|
|
60
|
+
class="rounded-md overflow-hidden"
|
|
61
|
+
>
|
|
62
|
+
<div v-html="htmlItem" />
|
|
63
|
+
</CarouselItem>
|
|
64
|
+
</CarouselContent>
|
|
65
|
+
<CarouselPrevious class="left-2" />
|
|
66
|
+
<CarouselNext class="right-2" />
|
|
67
|
+
</Carousel>
|
|
68
|
+
<Carousel
|
|
69
|
+
class="relative w-full"
|
|
70
|
+
@init-api="(val) => (emblaThumbnailApi = val)"
|
|
71
|
+
>
|
|
72
|
+
<CarouselContent class="flex gap-2 ml-0">
|
|
73
|
+
<CarouselItem
|
|
74
|
+
v-for="(htmlItem, index) in htmlItems"
|
|
75
|
+
:key="index"
|
|
76
|
+
class="pl-0 basis-1/5 cursor-pointer border rounded-md"
|
|
77
|
+
:class="index === selectedIndex ? 'border-ring' : ''"
|
|
78
|
+
@click="onThumbClick(index)"
|
|
79
|
+
>
|
|
80
|
+
<div v-html="htmlItem" />
|
|
81
|
+
</CarouselItem>
|
|
82
|
+
</CarouselContent>
|
|
83
|
+
</Carousel>
|
|
84
|
+
</div>
|
|
85
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
+
|
|
5
|
+
interface Props extends HTMLAttributes<'div'> {
|
|
6
|
+
size?: 'sm' | 'default' | 'lg'
|
|
7
|
+
length: number | undefined
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const { size = 'default', length = 4, class: className, ...rest } = Astro.props
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<Box
|
|
14
|
+
class:list={[
|
|
15
|
+
'relative grid w-full gap-x-4 gap-y-8',
|
|
16
|
+
{
|
|
17
|
+
'sm:grid-cols-2': size === 'default',
|
|
18
|
+
'md:grid-cols-3': size === 'default' && length === 3,
|
|
19
|
+
'lg:grid-cols-4': size === 'default' && length === 4,
|
|
20
|
+
'md:grid-cols-3 xl:grid-cols-5': size === 'default' && length === 5,
|
|
21
|
+
'lg:grid-cols-3': size === 'default' && length === 6,
|
|
22
|
+
'md:grid-cols-3 lg:grid-cols-4': size === 'default' && length > 6,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
'md:grid-cols-2': size === 'lg',
|
|
26
|
+
'md:grid-cols-3': size === 'lg' && length === 3,
|
|
27
|
+
'xl:grid-cols-4': size === 'lg' && length === 4,
|
|
28
|
+
'lg:grid-cols-3': size === 'lg' && length > 4,
|
|
29
|
+
},
|
|
30
|
+
className,
|
|
31
|
+
]}
|
|
32
|
+
{...rest}
|
|
33
|
+
>
|
|
34
|
+
<slot />
|
|
35
|
+
</Box>
|