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,118 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import { getCollection } from 'astro:content'
|
|
3
|
-
import { getHref } from 'fulldev-ui/utils/getHref'
|
|
4
|
-
import Button from './Button.astro'
|
|
5
|
-
import Element from './Element.astro'
|
|
6
|
-
import Heading from './Heading.astro'
|
|
7
|
-
import Input from './Input.astro'
|
|
8
|
-
import Paragraph from './Paragraph.astro'
|
|
9
|
-
|
|
10
|
-
const pages = await getCollection('pages')
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
document.addEventListener('astro:page-load', () => {
|
|
15
|
-
const input = document.querySelector('.search-input')
|
|
16
|
-
const items = document.querySelectorAll('.search-item')
|
|
17
|
-
|
|
18
|
-
input?.addEventListener('input', (e) => {
|
|
19
|
-
if (!(e.target instanceof HTMLInputElement)) return
|
|
20
|
-
const value = e.target.value.toLowerCase()
|
|
21
|
-
items.forEach((item) => {
|
|
22
|
-
if (!(item instanceof HTMLElement)) return
|
|
23
|
-
|
|
24
|
-
const title =
|
|
25
|
-
item.querySelector('.heading')?.textContent?.toLowerCase() || ''
|
|
26
|
-
const description =
|
|
27
|
-
item.querySelector('.paragraph')?.textContent?.toLowerCase() || ''
|
|
28
|
-
|
|
29
|
-
const isVisible = title.includes(value) || description.includes(value)
|
|
30
|
-
item.classList.toggle('hide', !isVisible)
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
</script>
|
|
35
|
-
|
|
36
|
-
<Button
|
|
37
|
-
class:list="search-button"
|
|
38
|
-
variant={Astro.props.variant}
|
|
39
|
-
size="sm"
|
|
40
|
-
icon="search"
|
|
41
|
-
onclick={`document.getElementById('search').showModal()`}
|
|
42
|
-
/>
|
|
43
|
-
|
|
44
|
-
<dialog
|
|
45
|
-
class="search"
|
|
46
|
-
id="search"
|
|
47
|
-
onclick={`event.target === this && this.close()`}
|
|
48
|
-
>
|
|
49
|
-
<Element class:list="search-container">
|
|
50
|
-
<Element class:list="search-content">
|
|
51
|
-
<Input
|
|
52
|
-
class:list="search-input"
|
|
53
|
-
placeholder="Search"
|
|
54
|
-
icon="search"
|
|
55
|
-
/>
|
|
56
|
-
<Element class:list="search-list">
|
|
57
|
-
{
|
|
58
|
-
pages.map(({ slug, data }) => (
|
|
59
|
-
<Element
|
|
60
|
-
as="a"
|
|
61
|
-
href={getHref(slug)}
|
|
62
|
-
class="search-item hide"
|
|
63
|
-
>
|
|
64
|
-
<Heading
|
|
65
|
-
text={data.title}
|
|
66
|
-
as="h6"
|
|
67
|
-
size="md"
|
|
68
|
-
/>
|
|
69
|
-
<Paragraph
|
|
70
|
-
set:text={'description' in data ? data.description : undefined}
|
|
71
|
-
/>
|
|
72
|
-
</Element>
|
|
73
|
-
))
|
|
74
|
-
}
|
|
75
|
-
</Element>
|
|
76
|
-
</Element>
|
|
77
|
-
</Element>
|
|
78
|
-
</dialog>
|
|
79
|
-
|
|
80
|
-
<style is:global>
|
|
81
|
-
@layer fulldev {
|
|
82
|
-
.search {
|
|
83
|
-
@apply container h-full w-full max-w-screen-md rounded-lg !border-none bg-transparent py-24 outline-none backdrop:bg-black/50;
|
|
84
|
-
|
|
85
|
-
&:is(.dark &) {
|
|
86
|
-
color-scheme: dark;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.search-container {
|
|
90
|
-
@apply w-full overflow-hidden rounded-lg border bg-background shadow-md;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.search-content {
|
|
94
|
-
@apply max-h-[400px] w-full overflow-y-auto;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.input {
|
|
98
|
-
@apply m-5;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.search-list {
|
|
102
|
-
@apply flex h-full w-full shrink grow-0 flex-col;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.search-item {
|
|
106
|
-
@apply border-t p-5 transition-colors hover:bg-accent;
|
|
107
|
-
|
|
108
|
-
&.hide {
|
|
109
|
-
@apply hidden;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.paragraph {
|
|
114
|
-
@apply mt-2 truncate text-sm text-muted-foreground;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
</style>
|
|
@@ -1,114 +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<'select'> {
|
|
8
|
-
size?: 'sm' | 'md' | 'lg' | undefined
|
|
9
|
-
label?: string | undefined
|
|
10
|
-
placeholder?: string | undefined
|
|
11
|
-
options?: string[] | undefined
|
|
12
|
-
value?: string | undefined
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const {
|
|
16
|
-
label,
|
|
17
|
-
placeholder,
|
|
18
|
-
name = label || placeholder,
|
|
19
|
-
id = name,
|
|
20
|
-
size = 'md',
|
|
21
|
-
options,
|
|
22
|
-
value,
|
|
23
|
-
...rest
|
|
24
|
-
} = Astro.props
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
options && (
|
|
29
|
-
<Label
|
|
30
|
-
class:list="select"
|
|
31
|
-
for={id}
|
|
32
|
-
{size}
|
|
33
|
-
>
|
|
34
|
-
<Fragment set:html={label} />
|
|
35
|
-
<Element
|
|
36
|
-
class:list="select-select"
|
|
37
|
-
as="select"
|
|
38
|
-
{id}
|
|
39
|
-
{name}
|
|
40
|
-
{...rest}
|
|
41
|
-
>
|
|
42
|
-
<Element
|
|
43
|
-
class:list="select-option"
|
|
44
|
-
as="option"
|
|
45
|
-
value={placeholder}
|
|
46
|
-
set:html={placeholder}
|
|
47
|
-
disabled
|
|
48
|
-
selected
|
|
49
|
-
/>
|
|
50
|
-
{options?.map((option: any) => (
|
|
51
|
-
<Element
|
|
52
|
-
class:list="select-option"
|
|
53
|
-
as="option"
|
|
54
|
-
selected={value === option}
|
|
55
|
-
set:html={option}
|
|
56
|
-
value={option}
|
|
57
|
-
/>
|
|
58
|
-
))}
|
|
59
|
-
<slot />
|
|
60
|
-
</Element>
|
|
61
|
-
<Icon name="chevron-down" />
|
|
62
|
-
</Label>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
<style is:global>
|
|
67
|
-
@layer fulldev {
|
|
68
|
-
.select {
|
|
69
|
-
@apply relative flex flex-col gap-1.5;
|
|
70
|
-
|
|
71
|
-
.icon {
|
|
72
|
-
@apply pointer-events-none absolute;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.select-select {
|
|
76
|
-
@apply flex w-full appearance-none rounded-md border border-input bg-background pr-10 text-sm ring-offset-background;
|
|
77
|
-
@apply file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground;
|
|
78
|
-
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
|
|
79
|
-
@apply disabled:pointer-events-none disabled:opacity-50;
|
|
80
|
-
@apply [&[readonly]]:pointer-events-none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&.size-sm {
|
|
84
|
-
.select-select {
|
|
85
|
-
@apply h-9 px-2.5 py-1.5 pr-9 text-xs;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.icon {
|
|
89
|
-
@apply bottom-2 right-2;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&.size-md {
|
|
94
|
-
.select-select {
|
|
95
|
-
@apply h-10 px-3 py-2 pr-10 text-sm;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.icon {
|
|
99
|
-
@apply bottom-2.5 right-2.5;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&.size-lg {
|
|
104
|
-
.select-select {
|
|
105
|
-
@apply h-12 px-3.5 py-2.5 pr-11 text-base;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.icon {
|
|
109
|
-
@apply bottom-3.5 right-3.5;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { ComponentProps, HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Element from 'fulldev-ui/components/Element.astro'
|
|
4
|
-
import Label from 'fulldev-ui/components/Label.astro'
|
|
5
|
-
|
|
6
|
-
interface Props extends Omit<HTMLAttributes<'input'>, 'type'> {
|
|
7
|
-
label?: ComponentProps<typeof Label>['text']
|
|
8
|
-
size?: 'sm' | 'md' | 'lg'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const { label, name = label, id = name, size = 'md', ...rest } = Astro.props
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<Label
|
|
15
|
-
class:list="switch"
|
|
16
|
-
for={id}
|
|
17
|
-
{size}
|
|
18
|
-
>
|
|
19
|
-
<Element
|
|
20
|
-
class:list="switch-input"
|
|
21
|
-
as="input"
|
|
22
|
-
type="checkbox"
|
|
23
|
-
show={id}
|
|
24
|
-
{id}
|
|
25
|
-
{name}
|
|
26
|
-
{...rest}
|
|
27
|
-
/>
|
|
28
|
-
<Element
|
|
29
|
-
as="label"
|
|
30
|
-
for={id}
|
|
31
|
-
show={id}
|
|
32
|
-
class="switch-mark"
|
|
33
|
-
/>
|
|
34
|
-
<Fragment set:html={label} />
|
|
35
|
-
</Label>
|
|
36
|
-
|
|
37
|
-
<style is:global>
|
|
38
|
-
@layer fulldev {
|
|
39
|
-
.switch {
|
|
40
|
-
@apply flex items-center gap-2;
|
|
41
|
-
|
|
42
|
-
.switch-input {
|
|
43
|
-
@apply hidden opacity-0;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.switch-mark {
|
|
47
|
-
@apply relative block cursor-pointer rounded-full bg-input transition;
|
|
48
|
-
|
|
49
|
-
&::before {
|
|
50
|
-
@apply block h-full w-1/2 rounded-full border-2 border-input bg-background transition content-[''];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.switch-input:checked ~ .switch-mark {
|
|
55
|
-
@apply bg-primary;
|
|
56
|
-
|
|
57
|
-
&::before {
|
|
58
|
-
@apply translate-x-full border-primary;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.size-sm {
|
|
63
|
-
.switch-mark {
|
|
64
|
-
@apply h-5 w-10;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.size-md {
|
|
69
|
-
.switch-mark {
|
|
70
|
-
@apply h-6 w-12;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.size-lg {
|
|
75
|
-
.switch-mark {
|
|
76
|
-
@apply h-7 w-14;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
</style>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Element from 'fulldev-ui/components/Element.astro'
|
|
4
|
-
|
|
5
|
-
interface Props extends HTMLAttributes<'p'> {
|
|
6
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | undefined
|
|
7
|
-
muted?: boolean | undefined
|
|
8
|
-
text?: string | undefined
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const { text, ...rest } = Astro.props
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<Element
|
|
15
|
-
class:list="tagline"
|
|
16
|
-
as="p"
|
|
17
|
-
{...rest}
|
|
18
|
-
>
|
|
19
|
-
<Fragment set:html={text} />
|
|
20
|
-
<slot />
|
|
21
|
-
</Element>
|
|
22
|
-
|
|
23
|
-
<style is:global>
|
|
24
|
-
@layer fulldev {
|
|
25
|
-
.tagline {
|
|
26
|
-
@apply font-medium text-primary;
|
|
27
|
-
|
|
28
|
-
&.size-xs {
|
|
29
|
-
@apply text-xs leading-tight;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.size-sm {
|
|
33
|
-
@apply text-sm leading-tight;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.size-md {
|
|
37
|
-
@apply text-base leading-tight;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.size-lg {
|
|
41
|
-
@apply text-lg leading-tight;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.size-xl {
|
|
45
|
-
@apply text-xl leading-tight;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</style>
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Element from 'fulldev-ui/components/Element.astro'
|
|
4
|
-
import Label from 'fulldev-ui/components/Label.astro'
|
|
5
|
-
|
|
6
|
-
interface Props extends HTMLAttributes<'textarea'> {
|
|
7
|
-
size?: 'sm' | 'md' | 'lg' | undefined
|
|
8
|
-
label?: string | undefined
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const {
|
|
12
|
-
label,
|
|
13
|
-
placeholder,
|
|
14
|
-
name = label || placeholder,
|
|
15
|
-
id = name,
|
|
16
|
-
size = 'md',
|
|
17
|
-
rows = 3,
|
|
18
|
-
...rest
|
|
19
|
-
} = Astro.props
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
<Label
|
|
23
|
-
class:list="textarea"
|
|
24
|
-
for={id}
|
|
25
|
-
{size}
|
|
26
|
-
>
|
|
27
|
-
<Fragment set:html={label} />
|
|
28
|
-
<Element
|
|
29
|
-
class:list="textarea-textarea"
|
|
30
|
-
as="textarea"
|
|
31
|
-
show={id}
|
|
32
|
-
{id}
|
|
33
|
-
{name}
|
|
34
|
-
{placeholder}
|
|
35
|
-
{rows}
|
|
36
|
-
{...rest}
|
|
37
|
-
/>
|
|
38
|
-
</Label>
|
|
39
|
-
|
|
40
|
-
<style is:global>
|
|
41
|
-
@layer textarea {
|
|
42
|
-
.textarea {
|
|
43
|
-
@apply relative flex flex-col gap-1.5;
|
|
44
|
-
|
|
45
|
-
.textarea-textarea {
|
|
46
|
-
@apply flex w-full resize-y rounded-md border border-input bg-background text-sm ring-offset-background;
|
|
47
|
-
@apply file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground;
|
|
48
|
-
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2;
|
|
49
|
-
@apply disabled:pointer-events-none disabled:opacity-50;
|
|
50
|
-
@apply [&[readonly]]:pointer-events-none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.size-sm {
|
|
54
|
-
@apply gap-1;
|
|
55
|
-
|
|
56
|
-
.textarea-textarea {
|
|
57
|
-
@apply min-h-9 px-2.5 py-1.5 text-xs;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.size-md {
|
|
62
|
-
@apply gap-1.5;
|
|
63
|
-
|
|
64
|
-
.textarea-textarea {
|
|
65
|
-
@apply min-h-10 px-3 py-2 text-sm;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&.size-lg {
|
|
70
|
-
@apply gap-2;
|
|
71
|
-
|
|
72
|
-
.textarea-textarea {
|
|
73
|
-
@apply min-h-12 px-3.5 py-2.5 text-base;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
</style>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { Polymorphic } from 'astro/types'
|
|
3
|
-
import { uid } from 'radash'
|
|
4
|
-
import Button from './Button.astro'
|
|
5
|
-
|
|
6
|
-
type Props<As extends 'label'> = Polymorphic<{ as: As }> & {
|
|
7
|
-
color?: 'base' | 'brand' | undefined
|
|
8
|
-
id?: string | undefined
|
|
9
|
-
name?: string | undefined
|
|
10
|
-
icon?: string | undefined
|
|
11
|
-
html?: string | undefined
|
|
12
|
-
text?: string | undefined
|
|
13
|
-
toggled: boolean | undefined
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const { id = uid(7), toggled, name, ...rest } = Astro.props
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
<input
|
|
20
|
-
class="toggle-checkbox"
|
|
21
|
-
checked={toggled}
|
|
22
|
-
type="checkbox"
|
|
23
|
-
id={id}
|
|
24
|
-
name={name ?? id}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<Button
|
|
28
|
-
class:list="toggle"
|
|
29
|
-
variant="tertiary"
|
|
30
|
-
as="label"
|
|
31
|
-
for={id}
|
|
32
|
-
{...rest}
|
|
33
|
-
/>
|
|
34
|
-
|
|
35
|
-
<style is:global>
|
|
36
|
-
@layer fulldev {
|
|
37
|
-
.toggle-checkbox {
|
|
38
|
-
@apply hidden;
|
|
39
|
-
|
|
40
|
-
&:checked + .toggle {
|
|
41
|
-
@apply bg-accent text-foreground;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<!-- ---
|
|
2
|
-
import type { HTMLAttributes,HTMLTag } from 'astro/types'
|
|
3
|
-
import type { CollectionEntry } from 'astro:content'
|
|
4
|
-
import Element from 'fulldev-ui/components/Element.astro'
|
|
5
|
-
import Icon from 'fulldev-ui/components/Icon.astro'
|
|
6
|
-
import Link from 'fulldev-ui/components/Link.astro'
|
|
7
|
-
|
|
8
|
-
interface Props extends HTMLAttributes<'div'> {
|
|
9
|
-
as?: HTMLTag
|
|
10
|
-
slug?: CollectionEntry<'pages'>['slug'] | undefined
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { size = 'sm', slug, ...rest } = Astro.props
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
<Element
|
|
17
|
-
class:list="breadcrumb"
|
|
18
|
-
{...rest}
|
|
19
|
-
>
|
|
20
|
-
<Link
|
|
21
|
-
as="a"
|
|
22
|
-
href="/"
|
|
23
|
-
icon="home"
|
|
24
|
-
{size}
|
|
25
|
-
/>
|
|
26
|
-
{
|
|
27
|
-
slug?.split('/').map((part, i) => (
|
|
28
|
-
<>
|
|
29
|
-
<Icon
|
|
30
|
-
{size}
|
|
31
|
-
name="chevron-right"
|
|
32
|
-
/>
|
|
33
|
-
<Link
|
|
34
|
-
{size}
|
|
35
|
-
variant="muted"
|
|
36
|
-
href={`/${slug
|
|
37
|
-
?.split('/')
|
|
38
|
-
.slice(0, i + 1)
|
|
39
|
-
.join('/')}/`}
|
|
40
|
-
>
|
|
41
|
-
{part}
|
|
42
|
-
</Link>
|
|
43
|
-
</>
|
|
44
|
-
))
|
|
45
|
-
}
|
|
46
|
-
</Element>
|
|
47
|
-
|
|
48
|
-
<style is:global>
|
|
49
|
-
@layer fulldev {
|
|
50
|
-
.breadcrumb {
|
|
51
|
-
@apply flex items-center gap-2;
|
|
52
|
-
|
|
53
|
-
.icon {
|
|
54
|
-
@apply text-muted-foreground;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style> -->
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<!-- ---
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
import type { ImageMetadata } from 'astro'
|
|
4
|
-
import type { HTMLAttributes } from 'astro/types'
|
|
5
|
-
import { Image as AstroImage } from 'astro:assets'
|
|
6
|
-
import { getEntry } from 'astro:content'
|
|
7
|
-
|
|
8
|
-
interface Props extends GlobalProps, HTMLAttributes<'img'> {
|
|
9
|
-
id?: any
|
|
10
|
-
size?: 'sm' | 'md' | 'lg' | undefined
|
|
11
|
-
position?: 'background' | 'cover' | 'inset' | undefined
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const { id } = Astro.props
|
|
15
|
-
const entry = id ? (await getEntry('images', id))?.data : {}
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
width = 1920,
|
|
19
|
-
height = 1920,
|
|
20
|
-
position,
|
|
21
|
-
src,
|
|
22
|
-
alt,
|
|
23
|
-
size,
|
|
24
|
-
...rest
|
|
25
|
-
} = {
|
|
26
|
-
...entry,
|
|
27
|
-
...Astro.props,
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function getAltBySrc() {
|
|
31
|
-
if (!src) return
|
|
32
|
-
const filename = src?.split('/').pop()
|
|
33
|
-
const slug = filename && filename.split('.')[0]
|
|
34
|
-
const unslugged = slug?.replace(/-/g, ' ')
|
|
35
|
-
return unslugged || ''
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const images = import.meta.glob<{ default: ImageMetadata }>('/src/images/*')
|
|
39
|
-
const image = images[src as keyof typeof images]
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
{
|
|
43
|
-
(image || src) && (
|
|
44
|
-
<AstroImage
|
|
45
|
-
class:list={[
|
|
46
|
-
'image',
|
|
47
|
-
{
|
|
48
|
-
[`size-${size}`]: size,
|
|
49
|
-
[`position-${position}`]: position,
|
|
50
|
-
},
|
|
51
|
-
]}
|
|
52
|
-
alt={alt || getAltBySrc()}
|
|
53
|
-
src={image ? image() : src}
|
|
54
|
-
width={width ? Number(width) : undefined}
|
|
55
|
-
height={height ? Number(height) : undefined}
|
|
56
|
-
{...rest}
|
|
57
|
-
/>
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
<style is:global>
|
|
62
|
-
@layer fulldev {
|
|
63
|
-
.image {
|
|
64
|
-
@apply block;
|
|
65
|
-
|
|
66
|
-
&.position-contain {
|
|
67
|
-
@apply h-auto w-full object-contain;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.position-cover {
|
|
71
|
-
@apply h-full w-full object-cover;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&.position-background {
|
|
75
|
-
@apply absolute inset-0 h-full max-h-none w-full max-w-none object-cover opacity-30;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
</style> -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import Select from 'fulldev-ui/components/Select.astro'
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
Astro.props.locales && (
|
|
7
|
-
<Select
|
|
8
|
-
name="locale-switcher"
|
|
9
|
-
options={Astro.props.locales}
|
|
10
|
-
value={Astro.props.lang as string}
|
|
11
|
-
placeholder={Astro.props.lang as string}
|
|
12
|
-
/>
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
<!-- <script>
|
|
17
|
-
const select = document.querySelector('.theme-switcher select')
|
|
18
|
-
select?.addEventListener('change', (event) => {
|
|
19
|
-
const target = event.target as HTMLSelectElement
|
|
20
|
-
const selectedLocale = target.value
|
|
21
|
-
const currentUrl = new URL(window.location.href)
|
|
22
|
-
currentUrl.pathname = '/' + selectedLocale + currentUrl.pathname
|
|
23
|
-
window.location.href = currentUrl.toString()
|
|
24
|
-
})
|
|
25
|
-
</script> -->
|
package/src/content/config.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineCollection } from 'astro:content'
|
|
2
|
-
import { cardSchema } from 'fulldev-ui/schemas/card.ts'
|
|
3
|
-
import { pageSchema } from 'fulldev-ui/schemas/page.ts'
|
|
4
|
-
|
|
5
|
-
export const collections = {
|
|
6
|
-
pages: defineCollection({
|
|
7
|
-
type: 'content',
|
|
8
|
-
schema: pageSchema,
|
|
9
|
-
}),
|
|
10
|
-
layouts: defineCollection({
|
|
11
|
-
type: 'data',
|
|
12
|
-
schema: pageSchema,
|
|
13
|
-
}),
|
|
14
|
-
records: defineCollection({
|
|
15
|
-
type: 'data',
|
|
16
|
-
schema: cardSchema,
|
|
17
|
-
}),
|
|
18
|
-
}
|