fulldev-ui 0.7.0-beta.4 → 0.7.0-beta.6
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/astro.config.ts +0 -2
- package/cli.js +51 -0
- package/components.json +2 -2
- package/package.json +16 -32
- package/pnpm-lock.yaml +221 -751
- package/src/blocks/CategoryGroup1.astro +8 -8
- package/src/blocks/CategoryList1.astro +9 -9
- package/src/blocks/Contact1.astro +9 -9
- package/src/blocks/Contact2.astro +10 -10
- package/src/blocks/Content1.astro +7 -7
- package/src/blocks/Cta1.astro +6 -6
- package/src/blocks/Faqs1.astro +6 -6
- package/src/blocks/Faqs2.astro +8 -8
- package/src/blocks/Features1.astro +8 -8
- package/src/blocks/Footer.astro +10 -10
- package/src/blocks/Header.astro +12 -12
- package/src/blocks/Hero1.astro +7 -7
- package/src/blocks/Intro1.astro +5 -5
- package/src/blocks/PostSingle1.astro +6 -6
- package/src/blocks/ProductGroup1.astro +10 -10
- package/src/blocks/ProductList1.astro +10 -10
- package/src/blocks/ProductSingle1.astro +12 -12
- package/src/blocks/Reviews1.astro +9 -9
- package/src/components/Accordion.vue +1 -1
- package/src/components/Avatar.astro +1 -1
- package/src/components/Badge.astro +2 -2
- package/src/components/Block.astro +9 -15
- package/src/components/Box.astro +1 -1
- package/src/components/Button.astro +3 -3
- package/src/components/Buttons.astro +1 -1
- package/src/components/Card.astro +1 -1
- package/src/components/Carousel.vue +1 -7
- package/src/components/Chip.astro +2 -2
- package/src/components/Code.astro +1 -1
- package/src/components/Container.astro +1 -1
- package/src/components/Drawer.vue +2 -2
- package/src/components/Form.vue +4 -7
- package/src/components/Gallery.vue +2 -2
- package/src/components/Grid.astro +1 -1
- package/src/components/Icon.astro +18 -11
- package/src/components/List.astro +2 -2
- package/src/components/Logo.astro +1 -1
- package/src/components/Masonry.astro +1 -1
- package/src/components/Menu.astro +1 -1
- package/src/components/Menus.astro +1 -1
- package/src/components/Navigation.vue +1 -1
- package/src/components/Panel.astro +1 -1
- package/src/components/Person.astro +3 -3
- package/src/components/Price.astro +1 -1
- package/src/components/Proof.astro +4 -4
- package/src/components/Prose.astro +1 -1
- package/src/components/Rating.astro +2 -2
- package/src/components/Search.vue +2 -2
- package/src/components/Section.astro +1 -1
- package/src/components/Select.vue +1 -1
- package/src/components/Sidebar.astro +1 -1
- package/src/components/Social.astro +1 -1
- package/src/components/Sort.vue +1 -1
- package/src/components/Split.astro +1 -1
- package/src/components/Table.astro +1 -1
- package/src/components/Themer.astro +2 -2
- package/src/components/Toc.astro +2 -2
- package/src/components/Writeup.astro +1 -1
- package/src/components/ui/accordion/AccordionContent.vue +1 -1
- package/src/components/ui/accordion/AccordionItem.vue +1 -1
- package/src/components/ui/accordion/AccordionTrigger.vue +1 -1
- package/src/components/ui/auto-form/AutoForm.vue +1 -1
- package/src/components/ui/auto-form/AutoFormFieldArray.vue +4 -4
- package/src/components/ui/auto-form/AutoFormFieldBoolean.vue +3 -3
- package/src/components/ui/auto-form/AutoFormFieldDate.vue +5 -5
- package/src/components/ui/auto-form/AutoFormFieldEnum.vue +4 -4
- package/src/components/ui/auto-form/AutoFormFieldFile.vue +3 -3
- package/src/components/ui/auto-form/AutoFormFieldInput.vue +3 -3
- package/src/components/ui/auto-form/AutoFormFieldNumber.vue +2 -2
- package/src/components/ui/auto-form/AutoFormFieldObject.vue +2 -2
- package/src/components/ui/auto-form/AutoFormLabel.vue +1 -1
- package/src/components/ui/avatar/Avatar.vue +1 -1
- package/src/components/ui/badge/Badge.vue +1 -1
- package/src/components/ui/button/Button.vue +2 -2
- package/src/components/ui/calendar/Calendar.vue +1 -1
- package/src/components/ui/calendar/CalendarCell.vue +1 -1
- package/src/components/ui/calendar/CalendarCellTrigger.vue +2 -2
- package/src/components/ui/calendar/CalendarGrid.vue +1 -1
- package/src/components/ui/calendar/CalendarGridRow.vue +1 -1
- package/src/components/ui/calendar/CalendarHeadCell.vue +1 -1
- package/src/components/ui/calendar/CalendarHeader.vue +1 -1
- package/src/components/ui/calendar/CalendarHeading.vue +1 -1
- package/src/components/ui/calendar/CalendarNextButton.vue +2 -2
- package/src/components/ui/calendar/CalendarPrevButton.vue +2 -2
- package/src/components/ui/card/Card.vue +1 -1
- package/src/components/ui/card/CardContent.vue +1 -1
- package/src/components/ui/card/CardDescription.vue +1 -1
- package/src/components/ui/card/CardFooter.vue +1 -1
- package/src/components/ui/card/CardHeader.vue +1 -1
- package/src/components/ui/card/CardTitle.vue +1 -1
- package/src/components/ui/carousel/Carousel.vue +1 -1
- package/src/components/ui/carousel/CarouselContent.vue +1 -1
- package/src/components/ui/carousel/CarouselItem.vue +1 -1
- package/src/components/ui/carousel/CarouselNext.vue +2 -2
- package/src/components/ui/carousel/CarouselPrevious.vue +2 -2
- package/src/components/ui/checkbox/Checkbox.vue +1 -1
- package/src/components/ui/command/Command.vue +1 -1
- package/src/components/ui/command/CommandDialog.vue +1 -1
- package/src/components/ui/command/CommandEmpty.vue +1 -1
- package/src/components/ui/command/CommandGroup.vue +1 -1
- package/src/components/ui/command/CommandInput.vue +1 -1
- package/src/components/ui/command/CommandItem.vue +1 -1
- package/src/components/ui/command/CommandList.vue +1 -1
- package/src/components/ui/command/CommandSeparator.vue +1 -1
- package/src/components/ui/command/CommandShortcut.vue +1 -1
- package/src/components/ui/dialog/DialogContent.vue +1 -1
- package/src/components/ui/dialog/DialogDescription.vue +1 -1
- package/src/components/ui/dialog/DialogFooter.vue +1 -1
- package/src/components/ui/dialog/DialogHeader.vue +1 -1
- package/src/components/ui/dialog/DialogScrollContent.vue +1 -1
- package/src/components/ui/dialog/DialogTitle.vue +1 -1
- package/src/components/ui/drawer/DrawerContent.vue +1 -1
- package/src/components/ui/drawer/DrawerDescription.vue +1 -1
- package/src/components/ui/drawer/DrawerFooter.vue +1 -1
- package/src/components/ui/drawer/DrawerHeader.vue +1 -1
- package/src/components/ui/drawer/DrawerOverlay.vue +1 -1
- package/src/components/ui/drawer/DrawerTitle.vue +1 -1
- package/src/components/ui/form/FormDescription.vue +1 -1
- package/src/components/ui/form/FormItem.vue +1 -1
- package/src/components/ui/form/FormLabel.vue +2 -2
- package/src/components/ui/input/Input.vue +1 -1
- package/src/components/ui/label/Label.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenu.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuContent.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuList.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +1 -1
- package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +1 -1
- package/src/components/ui/popover/PopoverContent.vue +1 -1
- package/src/components/ui/radio-group/RadioGroup.vue +1 -1
- package/src/components/ui/radio-group/RadioGroupItem.vue +1 -1
- package/src/components/ui/select/SelectContent.vue +1 -1
- package/src/components/ui/select/SelectGroup.vue +1 -1
- package/src/components/ui/select/SelectItem.vue +1 -1
- package/src/components/ui/select/SelectLabel.vue +1 -1
- package/src/components/ui/select/SelectScrollDownButton.vue +1 -1
- package/src/components/ui/select/SelectScrollUpButton.vue +1 -1
- package/src/components/ui/select/SelectSeparator.vue +1 -1
- package/src/components/ui/select/SelectTrigger.vue +1 -1
- package/src/components/ui/separator/Separator.vue +1 -1
- package/src/components/ui/switch/Switch.vue +1 -1
- package/src/components/ui/textarea/Textarea.vue +1 -1
- package/src/content/blocks/category-group1.md +18 -0
- package/src/content/blocks/category-list1.md +22 -0
- package/src/content/blocks/contact1.md +30 -0
- package/src/content/blocks/contact2.md +31 -0
- package/src/content/blocks/content1.md +14 -0
- package/src/content/blocks/cta1.md +11 -0
- package/src/content/blocks/faqs1.md +18 -0
- package/src/content/blocks/faqs2.md +18 -0
- package/src/content/blocks/features1.md +16 -0
- package/src/content/blocks/hero1.md +14 -0
- package/src/content/blocks/intro1.md +6 -0
- package/src/content/blocks/post-single1.md +18 -0
- package/src/content/blocks/product-group1.md +21 -0
- package/src/content/blocks/product-list1.md +25 -0
- package/src/content/blocks/product-single1.md +23 -0
- package/src/content/blocks/reviews1.md +16 -0
- package/src/content.config.ts +20 -0
- package/src/data/settings.json +26 -0
- package/src/layouts/NavigationLayout.astro +14 -0
- package/src/lib/integration.ts +27 -0
- package/src/pages/blocks/[...block].astro +24 -0
- package/src/pages/blocks/index.astro +21 -0
- package/src/pages/index.astro +8 -0
- package/src/schemas/blocks/categoryGroup.ts +1 -1
- package/src/schemas/blocks/categoryList.ts +1 -1
- package/src/schemas/blocks/categorySingle.ts +1 -1
- package/src/schemas/blocks/content.ts +1 -1
- package/src/schemas/blocks/cta.ts +1 -1
- package/src/schemas/blocks/faqs.ts +4 -3
- package/src/schemas/blocks/features.ts +5 -4
- package/src/schemas/blocks/footer.ts +3 -3
- package/src/schemas/blocks/header.ts +3 -3
- package/src/schemas/blocks/hero.ts +1 -1
- package/src/schemas/blocks/productList.ts +1 -1
- package/src/schemas/blocks/productSingle.ts +1 -1
- package/src/schemas/collections/block.ts +83 -0
- package/src/schemas/collections/category.ts +11 -0
- package/src/schemas/collections/page.ts +13 -0
- package/src/schemas/collections/post.ts +11 -0
- package/src/schemas/collections/product.ts +11 -0
- package/src/schemas/fields/card.ts +3 -3
- package/src/schemas/fields/menu.ts +1 -1
- package/src/schemas/fields/proof.ts +1 -1
- package/src/schemas/fields/section.ts +2 -2
- package/src/styles/global.css +123 -0
- package/tsconfig.json +1 -1
- package/src/components/ui/breadcrumb/Breadcrumb.vue +0 -13
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +0 -22
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +0 -14
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +0 -19
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +0 -16
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +0 -19
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +0 -21
- package/src/components/ui/breadcrumb/index.ts +0 -7
- package/src/schemas/fields/block.ts +0 -60
package/src/components/Form.vue
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { AutoForm } from '
|
|
3
|
-
import { Button } from '
|
|
4
|
-
import type { FormHTMLAttributes } from 'vue'
|
|
2
|
+
import { AutoForm } from '@/components/ui/auto-form'
|
|
3
|
+
import { Button } from '@/components/ui/button'
|
|
5
4
|
import { z } from 'zod'
|
|
6
5
|
|
|
7
|
-
interface Props
|
|
6
|
+
interface Props {
|
|
8
7
|
fields?: {
|
|
9
8
|
label: string
|
|
10
9
|
type: 'text' | 'email' | 'checkbox' | 'select'
|
|
@@ -14,7 +13,7 @@ interface Props extends /* @vue-ignore */ FormHTMLAttributes {
|
|
|
14
13
|
submit?: string
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
const { fields,
|
|
16
|
+
const { fields, submit } = defineProps<Props>()
|
|
18
17
|
|
|
19
18
|
// Conditionally add the optional flag to the zod schema
|
|
20
19
|
const withOptional = (optional: boolean | undefined, schema: z.ZodSchema) => (optional ? schema.optional() : schema)
|
|
@@ -71,8 +70,6 @@ const config = (fields || []).reduce((acc: any, field) => {
|
|
|
71
70
|
class="w-full space-y-6 [&>div>p[role='alert']]:hidden"
|
|
72
71
|
:field-config="config"
|
|
73
72
|
:schema="schema"
|
|
74
|
-
:action
|
|
75
|
-
:method
|
|
76
73
|
>
|
|
77
74
|
<slot />
|
|
78
75
|
<Button type="submit">
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { watchOnce } from '@vueuse/core'
|
|
3
2
|
import {
|
|
4
3
|
Carousel,
|
|
5
4
|
type CarouselApi,
|
|
@@ -7,7 +6,8 @@ import {
|
|
|
7
6
|
CarouselItem,
|
|
8
7
|
CarouselNext,
|
|
9
8
|
CarouselPrevious,
|
|
10
|
-
} from '
|
|
9
|
+
} from '@/components/ui/carousel'
|
|
10
|
+
import { watchOnce } from '@vueuse/core'
|
|
11
11
|
import { parse } from 'node-html-parser'
|
|
12
12
|
import { ref } from 'vue'
|
|
13
13
|
import { renderToString } from 'vue/server-renderer'
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
---
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import Box from '@/components/Box.astro'
|
|
3
|
+
import tablerIcons from '@iconify-json/tabler/icons.json'
|
|
4
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
4
5
|
|
|
5
|
-
interface Props extends
|
|
6
|
+
interface Props extends HTMLAttributes<'svg'> {
|
|
7
|
+
name?: string | undefined
|
|
8
|
+
}
|
|
6
9
|
|
|
7
10
|
const { name, ...rest } = Astro.props
|
|
11
|
+
|
|
12
|
+
const trimmedName = name?.trim()
|
|
13
|
+
const icon = trimmedName ? (tablerIcons as any)?.icons[trimmedName]?.body : undefined
|
|
8
14
|
---
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
16
|
+
<Box
|
|
17
|
+
class:list="icon size-[1em] inline-flex child:stroke-[calc(1em/12)]"
|
|
18
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
as="svg"
|
|
21
|
+
{...rest}
|
|
22
|
+
>
|
|
23
|
+
<Fragment set:html={icon} />
|
|
24
|
+
</Box>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
+
import Box from '@/components/Box.astro'
|
|
3
|
+
import Icon from '@/components/Icon.astro'
|
|
2
4
|
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
-
import Icon from 'fulldev-ui/components/Icon.astro'
|
|
5
5
|
|
|
6
6
|
interface Props extends HTMLAttributes<'ul' | 'ol'> {
|
|
7
7
|
as?: 'ul' | 'ol'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
|
+
import Abstract from '@/components/Abstract.astro'
|
|
3
|
+
import Avatar from '@/components/Avatar.astro'
|
|
4
|
+
import Box from '@/components/Box.astro'
|
|
2
5
|
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Abstract from 'fulldev-ui/components/Abstract.astro'
|
|
4
|
-
import Avatar from 'fulldev-ui/components/Avatar.astro'
|
|
5
|
-
import Box from 'fulldev-ui/components/Box.astro'
|
|
6
6
|
|
|
7
7
|
interface Props extends HTMLAttributes<'div'> {
|
|
8
8
|
src?: string | undefined
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
+
import Abstract from '@/components/Abstract.astro'
|
|
3
|
+
import Avatar from '@/components/Avatar.astro'
|
|
4
|
+
import Box from '@/components/Box.astro'
|
|
5
|
+
import Rating from '@/components/Rating.astro'
|
|
2
6
|
import type { ComponentProps, HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Abstract from 'fulldev-ui/components/Abstract.astro'
|
|
4
|
-
import Avatar from 'fulldev-ui/components/Avatar.astro'
|
|
5
|
-
import Box from 'fulldev-ui/components/Box.astro'
|
|
6
|
-
import Rating from 'fulldev-ui/components/Rating.astro'
|
|
7
7
|
|
|
8
8
|
interface Props extends HTMLAttributes<'div'> {
|
|
9
9
|
avatars?: ComponentProps<typeof Avatar>[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
+
import Box from '@/components/Box.astro'
|
|
3
|
+
import Icon from '@/components/Icon.astro'
|
|
2
4
|
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
-
import Box from 'fulldev-ui/components/Box.astro'
|
|
4
|
-
import Icon from 'fulldev-ui/components/Icon.astro'
|
|
5
5
|
|
|
6
6
|
interface Props extends HTMLAttributes<'div'> {
|
|
7
7
|
size?: 'sm' | 'md' | 'lg' | undefined
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import Button from '
|
|
2
|
+
import Button from '@/components/ui/button/Button.vue'
|
|
3
3
|
import {
|
|
4
4
|
CommandDialog,
|
|
5
5
|
CommandEmpty,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
CommandInput,
|
|
8
8
|
CommandItem,
|
|
9
9
|
CommandList,
|
|
10
|
-
} from '
|
|
10
|
+
} from '@/components/ui/command'
|
|
11
11
|
import { SearchIcon } from 'lucide-vue-next'
|
|
12
12
|
import { ref } from 'vue'
|
|
13
13
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '
|
|
2
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
|
3
3
|
import type { HTMLAttributes } from 'vue'
|
|
4
4
|
import type { SelectRootEmits, SelectRootProps } from 'radix-vue'
|
|
5
5
|
import { useForwardPropsEmits } from 'radix-vue'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
+
import Button from '@/components/Button.astro'
|
|
2
3
|
import type { ComponentProps } from 'astro/types'
|
|
3
|
-
import Button from 'fulldev-ui/components/Button.astro'
|
|
4
4
|
|
|
5
5
|
interface Props extends Omit<ComponentProps<typeof Button>, 'text' | 'icon' | 'target' | 'size'> {}
|
|
6
6
|
|
package/src/components/Sort.vue
CHANGED
package/src/components/Toc.astro
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- ---
|
|
2
|
+
import Box from '@/components/Box.astro'
|
|
3
|
+
import Heading from '@/components/Heading.astro'
|
|
2
4
|
import type { MarkdownHeading } from 'astro'
|
|
3
5
|
import type { HTMLAttributes } from 'astro/types'
|
|
4
|
-
import Box from 'fulldev-ui/components/Box.astro'
|
|
5
|
-
import Heading from 'fulldev-ui/components/Heading.astro'
|
|
6
6
|
import Links from './Links.astro'
|
|
7
7
|
|
|
8
8
|
interface Props extends HTMLAttributes<'div'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@/lib/utils'
|
|
3
3
|
import { ChevronDown } from 'lucide-vue-next'
|
|
4
4
|
import { AccordionHeader, AccordionTrigger, type AccordionTriggerProps } from 'radix-vue'
|
|
5
5
|
import { computed, type HTMLAttributes } from 'vue'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts" generic="T extends ZodObjectOrWrapped">
|
|
2
|
+
import { Form } from '@/components/ui/form'
|
|
2
3
|
import { toTypedSchema } from '@vee-validate/zod'
|
|
3
|
-
import { Form } from 'fulldev-ui/components/ui/form'
|
|
4
4
|
import type { FormContext, GenericObject } from 'vee-validate'
|
|
5
5
|
import { computed, toRefs } from 'vue'
|
|
6
6
|
import type { z, ZodAny } from 'zod'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts" generic="T extends z.ZodAny">
|
|
2
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '
|
|
3
|
-
import { Button } from '
|
|
4
|
-
import { FormItem, FormMessage } from '
|
|
5
|
-
import { Separator } from '
|
|
2
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'
|
|
3
|
+
import { Button } from '@/components/ui/button'
|
|
4
|
+
import { FormItem, FormMessage } from '@/components/ui/form'
|
|
5
|
+
import { Separator } from '@/components/ui/separator'
|
|
6
6
|
import { PlusIcon, TrashIcon } from 'lucide-vue-next'
|
|
7
7
|
import { FieldArray, FieldContextKey, useField } from 'vee-validate'
|
|
8
8
|
import { computed, provide } from 'vue'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Checkbox } from '
|
|
3
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
4
|
-
import { Switch } from '
|
|
2
|
+
import { Checkbox } from '@/components/ui/checkbox'
|
|
3
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
4
|
+
import { Switch } from '@/components/ui/switch'
|
|
5
5
|
import { computed } from 'vue'
|
|
6
6
|
import AutoFormLabel from './AutoFormLabel.vue'
|
|
7
7
|
import type { FieldProps } from './interface'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Button } from '
|
|
3
|
-
import { Calendar } from '
|
|
4
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
5
|
-
import { Popover, PopoverContent, PopoverTrigger } from '
|
|
6
|
-
import { cn } from '
|
|
2
|
+
import { Button } from '@/components/ui/button'
|
|
3
|
+
import { Calendar } from '@/components/ui/calendar'
|
|
4
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
|
|
6
|
+
import { cn } from '@/lib/utils'
|
|
7
7
|
import type { FieldProps } from './interface'
|
|
8
8
|
|
|
9
9
|
import { DateFormatter, getLocalTimeZone } from '@internationalized/date'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
3
|
-
import { Label } from '
|
|
4
|
-
import { RadioGroup, RadioGroupItem } from '
|
|
5
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
3
|
+
import { Label } from '@/components/ui/label'
|
|
4
|
+
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
|
|
5
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
|
|
6
6
|
import AutoFormLabel from './AutoFormLabel.vue'
|
|
7
7
|
import type { FieldProps } from './interface'
|
|
8
8
|
import { beautifyObjectName, maybeBooleanishToBoolean } from './utils'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Button } from '
|
|
3
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
4
|
-
import { Input } from '
|
|
2
|
+
import { Button } from '@/components/ui/button'
|
|
3
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
4
|
+
import { Input } from '@/components/ui/input'
|
|
5
5
|
import { TrashIcon } from 'lucide-vue-next'
|
|
6
6
|
import { ref } from 'vue'
|
|
7
7
|
import AutoFormLabel from './AutoFormLabel.vue'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
3
|
-
import { Input } from '
|
|
4
|
-
import { Textarea } from '
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
3
|
+
import { Input } from '@/components/ui/input'
|
|
4
|
+
import { Textarea } from '@/components/ui/textarea'
|
|
5
5
|
import { computed } from 'vue'
|
|
6
6
|
import AutoFormLabel from './AutoFormLabel.vue'
|
|
7
7
|
import type { FieldProps } from './interface'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '
|
|
3
|
-
import { Input } from '
|
|
2
|
+
import { FormControl, FormDescription, FormField, FormItem, FormMessage } from '@/components/ui/form'
|
|
3
|
+
import { Input } from '@/components/ui/input'
|
|
4
4
|
import AutoFormLabel from './AutoFormLabel.vue'
|
|
5
5
|
import type { FieldProps } from './interface'
|
|
6
6
|
import { beautifyObjectName } from './utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts" generic="T extends ZodRawShape">
|
|
2
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '
|
|
3
|
-
import { FormItem } from '
|
|
2
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'
|
|
3
|
+
import { FormItem } from '@/components/ui/form'
|
|
4
4
|
import { FieldContextKey, useField } from 'vee-validate'
|
|
5
5
|
import { computed, provide } from 'vue'
|
|
6
6
|
import type { ZodAny, ZodObject, ZodRawShape } from 'zod'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@/lib/utils'
|
|
3
3
|
import { Primitive, type PrimitiveProps } from 'radix-vue'
|
|
4
4
|
import type { HTMLAttributes } from 'vue'
|
|
5
5
|
import { type ButtonVariants, buttonVariants } from '.'
|
|
6
6
|
|
|
7
|
-
interface Props extends
|
|
7
|
+
interface Props extends PrimitiveProps {
|
|
8
8
|
variant?: ButtonVariants['variant']
|
|
9
9
|
size?: ButtonVariants['size']
|
|
10
10
|
class?: HTMLAttributes['class']
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '@/lib/utils'
|
|
3
3
|
import { CalendarRoot, type CalendarRootEmits, type CalendarRootProps, useForwardPropsEmits } from 'radix-vue'
|
|
4
4
|
import { computed, type HTMLAttributes } from 'vue'
|
|
5
5
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { buttonVariants } from '
|
|
3
|
-
import { cn } from '
|
|
2
|
+
import { buttonVariants } from '@/components/ui/button'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
4
|
import { CalendarCellTrigger, type CalendarCellTriggerProps, useForwardProps } from 'radix-vue'
|
|
5
5
|
import { computed, type HTMLAttributes } from 'vue'
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { buttonVariants } from '
|
|
3
|
-
import { cn } from '
|
|
2
|
+
import { buttonVariants } from '@/components/ui/button'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
4
|
import { ChevronRight } from 'lucide-vue-next'
|
|
5
5
|
import { CalendarNext, type CalendarNextProps, useForwardProps } from 'radix-vue'
|
|
6
6
|
import { computed, type HTMLAttributes } from 'vue'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { buttonVariants } from '
|
|
3
|
-
import { cn } from '
|
|
2
|
+
import { buttonVariants } from '@/components/ui/button'
|
|
3
|
+
import { cn } from '@/lib/utils'
|
|
4
4
|
import { ChevronLeft } from 'lucide-vue-next'
|
|
5
5
|
import { CalendarPrev, type CalendarPrevProps, useForwardProps } from 'radix-vue'
|
|
6
6
|
import { computed, type HTMLAttributes } from 'vue'
|