fulldev-ui 0.25.0 → 0.25.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/CHANGELOG.md +8 -0
- package/liquid/README.md +1 -1
- package/liquid/assets/ui-licenses.json +1 -1
- package/liquid/assets/ui-manifest.json +1 -1
- package/package.json +2 -1
- package/public/r/liquid/components.json +1 -1
- package/public/r/liquid/init.json +1 -1
- package/liquid/vendor.json +0 -180
- package/public/r/accordion-examples.json +0 -49
- package/public/r/accordion.json +0 -42
- package/public/r/alert-dialog-examples.json +0 -51
- package/public/r/alert-dialog.json +0 -84
- package/public/r/alert-examples.json +0 -47
- package/public/r/alert.json +0 -38
- package/public/r/article-1.json +0 -22
- package/public/r/article-2.json +0 -22
- package/public/r/articles-1.json +0 -22
- package/public/r/articles-2.json +0 -23
- package/public/r/articles-3.json +0 -22
- package/public/r/articles-4.json +0 -22
- package/public/r/aspect-ratio-examples.json +0 -33
- package/public/r/aspect-ratio.json +0 -23
- package/public/r/attachment-examples.json +0 -48
- package/public/r/attachment.json +0 -66
- package/public/r/avatar-examples.json +0 -68
- package/public/r/avatar.json +0 -48
- package/public/r/badge-examples.json +0 -52
- package/public/r/badge.json +0 -28
- package/public/r/banner-1.json +0 -24
- package/public/r/banner-2.json +0 -22
- package/public/r/banner.json +0 -31
- package/public/r/base.json +0 -143
- package/public/r/blocks-1.json +0 -27
- package/public/r/blocks.json +0 -92
- package/public/r/breadcrumb-examples.json +0 -53
- package/public/r/breadcrumb.json +0 -56
- package/public/r/button-examples.json +0 -87
- package/public/r/button-group-examples.json +0 -75
- package/public/r/button-group.json +0 -41
- package/public/r/button.json +0 -28
- package/public/r/card-examples.json +0 -51
- package/public/r/card.json +0 -53
- package/public/r/carousel-examples.json +0 -49
- package/public/r/carousel.json +0 -50
- package/public/r/checkbox-examples.json +0 -56
- package/public/r/checkbox.json +0 -23
- package/public/r/code-block-examples.json +0 -33
- package/public/r/code-block.json +0 -65
- package/public/r/collapsible-examples.json +0 -51
- package/public/r/collapsible.json +0 -36
- package/public/r/combobox-examples.json +0 -69
- package/public/r/combobox.json +0 -81
- package/public/r/command-examples.json +0 -47
- package/public/r/command.json +0 -71
- package/public/r/components.json +0 -74
- package/public/r/contact-1.json +0 -23
- package/public/r/contact-2.json +0 -23
- package/public/r/contact-3.json +0 -29
- package/public/r/content-1.json +0 -31
- package/public/r/content-2.json +0 -31
- package/public/r/content-3.json +0 -28
- package/public/r/content-4.json +0 -31
- package/public/r/cta-1.json +0 -24
- package/public/r/cta-2.json +0 -30
- package/public/r/cta-3.json +0 -24
- package/public/r/cta-4.json +0 -30
- package/public/r/cta-5.json +0 -31
- package/public/r/cta-6.json +0 -30
- package/public/r/cta-7.json +0 -23
- package/public/r/cta-8.json +0 -22
- package/public/r/dialog-examples.json +0 -47
- package/public/r/dialog.json +0 -75
- package/public/r/doc-1.json +0 -30
- package/public/r/drawer-examples.json +0 -54
- package/public/r/drawer.json +0 -109
- package/public/r/dropdown-menu-examples.json +0 -63
- package/public/r/dropdown-menu.json +0 -77
- package/public/r/empty-examples.json +0 -55
- package/public/r/empty.json +0 -48
- package/public/r/faqs-1.json +0 -23
- package/public/r/faqs-2.json +0 -23
- package/public/r/faqs-3.json +0 -23
- package/public/r/faqs-4.json +0 -22
- package/public/r/features-1.json +0 -26
- package/public/r/features-2.json +0 -22
- package/public/r/features-3.json +0 -21
- package/public/r/features-4.json +0 -26
- package/public/r/features-5.json +0 -22
- package/public/r/features-6.json +0 -23
- package/public/r/field-examples.json +0 -86
- package/public/r/field.json +0 -72
- package/public/r/footer-1.json +0 -24
- package/public/r/footer-2.json +0 -24
- package/public/r/footer-3.json +0 -24
- package/public/r/form.json +0 -23
- package/public/r/header-1.json +0 -29
- package/public/r/header-2.json +0 -29
- package/public/r/header-3.json +0 -30
- package/public/r/header-4.json +0 -29
- package/public/r/header-5.json +0 -30
- package/public/r/header.json +0 -40
- package/public/r/hero-1.json +0 -23
- package/public/r/hero-10.json +0 -24
- package/public/r/hero-11.json +0 -24
- package/public/r/hero-12.json +0 -22
- package/public/r/hero-13.json +0 -22
- package/public/r/hero-2.json +0 -24
- package/public/r/hero-3.json +0 -22
- package/public/r/hero-4.json +0 -25
- package/public/r/hero-5.json +0 -27
- package/public/r/hero-6.json +0 -27
- package/public/r/hero-7.json +0 -27
- package/public/r/hero-8.json +0 -22
- package/public/r/hero-9.json +0 -27
- package/public/r/hover-card-examples.json +0 -29
- package/public/r/hover-card.json +0 -37
- package/public/r/icon.json +0 -27
- package/public/r/init.json +0 -44
- package/public/r/input-examples.json +0 -97
- package/public/r/input-group-examples.json +0 -91
- package/public/r/input-group.json +0 -53
- package/public/r/input.json +0 -23
- package/public/r/item-examples.json +0 -74
- package/public/r/item.json +0 -71
- package/public/r/kbd-examples.json +0 -50
- package/public/r/kbd.json +0 -28
- package/public/r/label-examples.json +0 -24
- package/public/r/label.json +0 -23
- package/public/r/layout.json +0 -41
- package/public/r/links-2.json +0 -24
- package/public/r/logo.json +0 -33
- package/public/r/logos-1.json +0 -22
- package/public/r/logos-2.json +0 -23
- package/public/r/logos-3.json +0 -22
- package/public/r/marquee.json +0 -46
- package/public/r/native-select-examples.json +0 -38
- package/public/r/native-select.json +0 -36
- package/public/r/navigation-menu-examples.json +0 -26
- package/public/r/navigation-menu.json +0 -67
- package/public/r/pagination-examples.json +0 -35
- package/public/r/pagination.json +0 -59
- package/public/r/popover-examples.json +0 -42
- package/public/r/popover.json +0 -51
- package/public/r/price.json +0 -38
- package/public/r/pricing-1.json +0 -29
- package/public/r/pricing-2.json +0 -28
- package/public/r/pricing-3.json +0 -29
- package/public/r/product-1.json +0 -24
- package/public/r/products-1.json +0 -24
- package/public/r/products-2.json +0 -24
- package/public/r/products-3.json +0 -24
- package/public/r/products-4.json +0 -24
- package/public/r/products-5.json +0 -25
- package/public/r/progress-examples.json +0 -33
- package/public/r/progress.json +0 -23
- package/public/r/radio-group-examples.json +0 -50
- package/public/r/radio-group.json +0 -31
- package/public/r/rating.json +0 -26
- package/public/r/registry.json +0 -6959
- package/public/r/resizable-examples.json +0 -33
- package/public/r/resizable.json +0 -36
- package/public/r/reviews-1.json +0 -27
- package/public/r/reviews-2.json +0 -27
- package/public/r/reviews-3.json +0 -27
- package/public/r/reviews-4.json +0 -25
- package/public/r/reviews-5.json +0 -27
- package/public/r/section.json +0 -38
- package/public/r/select-examples.json +0 -53
- package/public/r/select.json +0 -62
- package/public/r/separator-examples.json +0 -38
- package/public/r/separator.json +0 -23
- package/public/r/services-1.json +0 -32
- package/public/r/services-2.json +0 -29
- package/public/r/services-3.json +0 -29
- package/public/r/services-4.json +0 -31
- package/public/r/services-5.json +0 -26
- package/public/r/services-6.json +0 -32
- package/public/r/services-7.json +0 -32
- package/public/r/sheet-examples.json +0 -37
- package/public/r/sheet.json +0 -66
- package/public/r/sidebar-1.json +0 -35
- package/public/r/sidebar-examples.json +0 -24
- package/public/r/sidebar.json +0 -146
- package/public/r/skeleton-examples.json +0 -49
- package/public/r/skeleton.json +0 -23
- package/public/r/slider-examples.json +0 -44
- package/public/r/slider.json +0 -26
- package/public/r/spinner-examples.json +0 -61
- package/public/r/spinner.json +0 -26
- package/public/r/switch-examples.json +0 -50
- package/public/r/switch.json +0 -26
- package/public/r/table-examples.json +0 -38
- package/public/r/table.json +0 -58
- package/public/r/tabs-examples.json +0 -47
- package/public/r/tabs.json +0 -46
- package/public/r/textarea-examples.json +0 -45
- package/public/r/textarea.json +0 -23
- package/public/r/theme-toggle.json +0 -34
- package/public/r/toast-examples.json +0 -29
- package/public/r/toast.json +0 -80
- package/public/r/toc.json +0 -43
- package/public/r/toggle-examples.json +0 -46
- package/public/r/toggle-group-examples.json +0 -57
- package/public/r/toggle-group.json +0 -34
- package/public/r/toggle.json +0 -31
- package/public/r/tooltip-examples.json +0 -43
- package/public/r/tooltip.json +0 -36
- package/public/r/typography.json +0 -103
- package/public/r/video.json +0 -23
package/public/r/features-2.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "features-2",
|
|
4
|
-
"title": "Features 2",
|
|
5
|
-
"description": "Feature section layouts for product narratives, launch pages, and capability overviews.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/icon",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/features-2.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Icon } from \"@/components/ui/icon\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n features: {\n title: string\n description: string\n icon: string\n }[]\n}\n\nconst { class: className, title, description, features, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-6 text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </div>\n </SectionContainer>\n <SectionContainer>\n <ul class=\"ring-foreground/10 bg-border grid gap-px overflow-hidden rounded-xl ring-1 ring-inset sm:grid-cols-2 lg:grid-cols-3\">\n {features.map((feature) => (\n <li class=\"bg-background relative flex flex-col items-center gap-4 p-7 text-center\">\n <div class=\"bg-primary/10 text-primary ring-primary/15 flex size-10 items-center justify-center rounded-lg ring-1 ring-inset\">\n <Icon name={feature.icon} class=\"size-5\" />\n </div>\n <h3 class=\"text-foreground text-base font-medium tracking-tight text-balance\">\n {feature.title}\n </h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed text-balance\">\n {feature.description}\n </p>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/features/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"features"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/features-3.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "features-3",
|
|
4
|
-
"title": "Features 3",
|
|
5
|
-
"description": "Feature section layouts for product narratives, launch pages, and capability overviews.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/section"
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{
|
|
11
|
-
"path": "src/components/blocks/features-3.astro",
|
|
12
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n features: {\n title: string\n description: string\n image: {\n src: ImageMetadata\n alt: string\n }\n }[]\n}\n\nconst { class: className, title, description, features, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-6 text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </div>\n </SectionContainer>\n <SectionContainer>\n <ul class=\"grid gap-6 sm:grid-cols-2\">\n {features.map((feature) => (\n <li class=\"flex items-center gap-5 rounded-xl border p-4\">\n <Image\n src={feature.image.src}\n alt={feature.image.alt}\n class=\"size-20 shrink-0 rounded-lg object-cover\"\n widths={[160, 320]}\n sizes=\"80px\"\n />\n <div class=\"flex flex-col gap-1.5\">\n <h3 class=\"text-foreground text-base font-medium\">\n {feature.title}\n </h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {feature.description}\n </p>\n </div>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
13
|
-
"type": "registry:block"
|
|
14
|
-
}
|
|
15
|
-
],
|
|
16
|
-
"docs": "https://ui.full.dev/blocks/features/",
|
|
17
|
-
"categories": [
|
|
18
|
-
"features"
|
|
19
|
-
],
|
|
20
|
-
"type": "registry:block"
|
|
21
|
-
}
|
package/public/r/features-4.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "features-4",
|
|
4
|
-
"title": "Features 4",
|
|
5
|
-
"description": "Feature section layouts for product narratives, launch pages, and capability overviews.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button",
|
|
11
|
-
"@fulldev/icon",
|
|
12
|
-
"@fulldev/section"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/blocks/features-4.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { Icon } from \"@/components/ui/icon\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n features: {\n title: string\n description: string\n icon: string\n link?: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n features,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer>\n <div class=\"grid gap-12 lg:grid-cols-[1fr_2fr] lg:items-start\">\n <div class=\"lg:sticky lg:top-28\">\n <SectionTitle>{title}</SectionTitle>\n <p class=\"text-muted-foreground mt-4 text-base leading-relaxed text-balance\">\n {description}\n </p>\n <div class=\"mt-6 flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n </div>\n <ul class=\"grid gap-6 sm:grid-cols-2\">\n {features.map((feature) => (\n <li class=\"flex flex-col gap-4 rounded-xl border p-6\">\n <div class=\"bg-primary/10 text-primary flex size-10 items-center justify-center rounded-lg\">\n <Icon name={feature.icon} class=\"size-5\" />\n </div>\n <div class=\"flex flex-col gap-1.5\">\n <h3 class=\"text-foreground text-base font-medium\">\n {feature.title}\n </h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {feature.description}\n </p>\n </div>\n {feature.link && (\n <a\n href={feature.link.href}\n class=\"text-primary mt-auto inline-flex items-center gap-1 text-sm font-medium hover:underline\"\n >\n {feature.link.label}\n <ArrowRightIcon class=\"size-3.5\" />\n </a>\n )}\n </li>\n ))}\n </ul>\n </div>\n </SectionContainer>\n</Section>\n",
|
|
18
|
-
"type": "registry:block"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"docs": "https://ui.full.dev/blocks/features/",
|
|
22
|
-
"categories": [
|
|
23
|
-
"features"
|
|
24
|
-
],
|
|
25
|
-
"type": "registry:block"
|
|
26
|
-
}
|
package/public/r/features-5.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "features-5",
|
|
4
|
-
"title": "Features 5",
|
|
5
|
-
"description": "Feature section layouts for product narratives, launch pages, and capability overviews.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/icon",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/features-5.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Icon } from \"@/components/ui/icon\"\nimport {\n Section,\n SectionContainer,\n SectionDescription,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n features: {\n title: string\n description: string\n icon: string\n }[]\n}\n\nconst { class: className, title, description, features, ...props } = Astro.props\n---\n\n<Section variant=\"floating\" class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-6 text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </div>\n </SectionContainer>\n <SectionContainer>\n <ul class=\"grid gap-6 sm:grid-cols-2 lg:grid-cols-3\">\n {features.map((feature) => (\n <li class=\"flex flex-col items-center gap-4 text-center\">\n <div class=\"bg-primary/5 text-primary border-primary/20 flex size-12 items-center justify-center rounded-xl border\">\n <Icon name={feature.icon} class=\"size-5\" />\n </div>\n <h3 class=\"text-foreground text-base font-medium text-balance\">\n {feature.title}\n </h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed text-balance\">\n {feature.description}\n </p>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/features/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"features"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/features-6.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "features-6",
|
|
4
|
-
"title": "Features 6",
|
|
5
|
-
"description": "Feature section layouts for product narratives, launch pages, and capability overviews.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/button",
|
|
8
|
-
"@fulldev/section",
|
|
9
|
-
"@fulldev/separator"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/blocks/features-6.astro",
|
|
14
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n features: {\n title: string\n description: string\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n features,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer>\n <div class=\"flex max-w-2xl flex-col gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <p class=\"text-muted-foreground text-base leading-relaxed text-balance\">\n {description}\n </p>\n <div class=\"mt-2 flex flex-wrap gap-3\">\n {buttons.map(({ href, label }, index) => (\n <Button\n as=\"a\"\n href={href}\n variant={index === 0 ? \"default\" : \"outline\"}\n >\n {label}\n </Button>\n ))}\n </div>\n </div>\n </SectionContainer>\n <SectionContainer>\n <ul class=\"grid gap-12 sm:grid-cols-2 lg:grid-cols-3\">\n {features.map((feature) => (\n <li>\n <Separator />\n <div class=\"pt-6\">\n <h3 class=\"text-foreground text-lg font-medium\">{feature.title}</h3>\n <p class=\"text-muted-foreground mt-2 text-sm leading-relaxed\">\n {feature.description}\n </p>\n </div>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
15
|
-
"type": "registry:block"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/blocks/features/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"features"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:block"
|
|
23
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "field-examples",
|
|
4
|
-
"title": "Field examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Field docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/button",
|
|
8
|
-
"@fulldev/checkbox",
|
|
9
|
-
"@fulldev/field",
|
|
10
|
-
"@fulldev/input",
|
|
11
|
-
"@fulldev/radio-group",
|
|
12
|
-
"@fulldev/select",
|
|
13
|
-
"@fulldev/slider",
|
|
14
|
-
"@fulldev/switch",
|
|
15
|
-
"@fulldev/textarea"
|
|
16
|
-
],
|
|
17
|
-
"files": [
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/examples/field/field-checkbox.astro",
|
|
20
|
-
"content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n} from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"w-full max-w-xs\">\n <FieldSet>\n <FieldLegend variant=\"label\">Show these items on the desktop</FieldLegend>\n <FieldDescription>\n Select the items you want to show on the desktop.\n </FieldDescription>\n <FieldGroup class=\"gap-3\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"finder-pref-9k2-hard-disks-ljj\" />\n <FieldLabel for=\"finder-pref-9k2-hard-disks-ljj\" class=\"font-normal\">\n Hard disks\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"finder-pref-9k2-external-disks-1yg\" />\n <FieldLabel\n for=\"finder-pref-9k2-external-disks-1yg\"\n class=\"font-normal\"\n >\n External disks\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"finder-pref-9k2-cds-dvds-fzt\" />\n <FieldLabel for=\"finder-pref-9k2-cds-dvds-fzt\" class=\"font-normal\">\n CDs, DVDs, and iPods\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"finder-pref-9k2-connected-servers-6l2\" />\n <FieldLabel\n for=\"finder-pref-9k2-connected-servers-6l2\"\n class=\"font-normal\"\n >\n Connected servers\n </FieldLabel>\n </Field>\n </FieldGroup>\n </FieldSet>\n <FieldSeparator />\n <Field orientation=\"horizontal\">\n <Checkbox id=\"finder-pref-9k2-sync-folders-nep\" checked />\n <FieldContent>\n <FieldLabel for=\"finder-pref-9k2-sync-folders-nep\">\n Sync Desktop & Documents folders\n </FieldLabel>\n <FieldDescription>\n Your Desktop & Documents folders are being synced with iCloud Drive. You\n can access them from other devices.\n </FieldDescription>\n </FieldContent>\n </Field>\n</FieldGroup>\n",
|
|
21
|
-
"type": "registry:component"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "src/components/examples/field/field-choice-card.astro",
|
|
25
|
-
"content": "---\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n FieldTitle,\n} from \"@/components/ui/field\"\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\"\n---\n\n<FieldGroup class=\"w-full max-w-xs\">\n <FieldSet>\n <FieldLegend variant=\"label\">Compute Environment</FieldLegend>\n <FieldDescription>\n Select the compute environment for your cluster.\n </FieldDescription>\n <RadioGroup defaultValue=\"kubernetes\">\n <FieldLabel>\n <Field as=\"span\" orientation=\"horizontal\">\n <FieldContent as=\"span\">\n <FieldTitle as=\"span\">Kubernetes</FieldTitle>\n <FieldDescription as=\"span\">\n Run GPU workloads on a K8s cluster.\n </FieldDescription>\n </FieldContent>\n <RadioGroupItem value=\"kubernetes\" id=\"kubernetes-r2h\" />\n </Field>\n </FieldLabel>\n <FieldLabel>\n <Field as=\"span\" orientation=\"horizontal\">\n <FieldContent as=\"span\">\n <FieldTitle as=\"span\">Virtual Machine</FieldTitle>\n <FieldDescription as=\"span\">\n Access a cluster to run GPU workloads.\n </FieldDescription>\n </FieldContent>\n <RadioGroupItem value=\"vm\" id=\"vm-z4k\" />\n </Field>\n </FieldLabel>\n </RadioGroup>\n </FieldSet>\n</FieldGroup>\n",
|
|
26
|
-
"type": "registry:component"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "src/components/examples/field/field-demo.astro",
|
|
30
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\nimport { Textarea } from \"@/components/ui/textarea\"\n\nconst months = [\n { label: \"MM\", value: null },\n { label: \"01\", value: \"01\" },\n { label: \"02\", value: \"02\" },\n { label: \"03\", value: \"03\" },\n { label: \"04\", value: \"04\" },\n { label: \"05\", value: \"05\" },\n { label: \"06\", value: \"06\" },\n { label: \"07\", value: \"07\" },\n { label: \"08\", value: \"08\" },\n { label: \"09\", value: \"09\" },\n { label: \"10\", value: \"10\" },\n { label: \"11\", value: \"11\" },\n { label: \"12\", value: \"12\" },\n]\n\nconst years = [\n { label: \"YYYY\", value: null },\n { label: \"2024\", value: \"2024\" },\n { label: \"2025\", value: \"2025\" },\n { label: \"2026\", value: \"2026\" },\n { label: \"2027\", value: \"2027\" },\n { label: \"2028\", value: \"2028\" },\n { label: \"2029\", value: \"2029\" },\n]\n---\n\n<div class=\"w-full max-w-md\">\n <form>\n <FieldGroup>\n <FieldSet>\n <FieldLegend>Payment Method</FieldLegend>\n <FieldDescription>\n All transactions are secure and encrypted\n </FieldDescription>\n <FieldGroup>\n <Field>\n <FieldLabel for=\"checkout-7j9-card-name-43j\">\n Name on Card\n </FieldLabel>\n <Input\n id=\"checkout-7j9-card-name-43j\"\n placeholder=\"Evil Rabbit\"\n required\n />\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-card-number-uw1\">\n Card Number\n </FieldLabel>\n <Input\n id=\"checkout-7j9-card-number-uw1\"\n placeholder=\"1234 5678 9012 3456\"\n required\n />\n <FieldDescription>Enter your 16-digit card number</FieldDescription>\n </Field>\n <div class=\"grid grid-cols-3 gap-4\">\n <Field>\n <FieldLabel for=\"checkout-exp-month-ts6\">Month</FieldLabel>\n <Select placeholder={months[0].label}>\n <SelectTrigger id=\"checkout-exp-month-ts6\" class=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {months.map((item) => (\n <SelectItem value={item.value ?? \"\"}>\n {item.label}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-exp-year-f59\">Year</FieldLabel>\n <Select placeholder={years[0].label}>\n <SelectTrigger id=\"checkout-7j9-exp-year-f59\" class=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {years.map((item) => (\n <SelectItem value={item.value ?? \"\"}>\n {item.label}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-cvv\">CVV</FieldLabel>\n <Input id=\"checkout-7j9-cvv\" placeholder=\"123\" required />\n </Field>\n </div>\n </FieldGroup>\n </FieldSet>\n <FieldSeparator />\n <FieldSet>\n <FieldLegend>Billing Address</FieldLegend>\n <FieldDescription>\n The billing address associated with your payment method\n </FieldDescription>\n <FieldGroup>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"checkout-7j9-same-as-shipping-wgm\" checked />\n <FieldLabel\n for=\"checkout-7j9-same-as-shipping-wgm\"\n class=\"font-normal\"\n >\n Same as shipping address\n </FieldLabel>\n </Field>\n </FieldGroup>\n </FieldSet>\n <FieldSet as=\"div\">\n <FieldGroup>\n <Field>\n <FieldLabel for=\"checkout-7j9-optional-comments\">\n Comments\n </FieldLabel>\n <Textarea\n id=\"checkout-7j9-optional-comments\"\n placeholder=\"Add any additional comments\"\n class=\"resize-none\"\n />\n </Field>\n </FieldGroup>\n </FieldSet>\n <Field orientation=\"horizontal\">\n <Button type=\"submit\">Submit</Button>\n <Button variant=\"outline\" type=\"button\">\n Cancel\n </Button>\n </Field>\n </FieldGroup>\n </form>\n</div>\n",
|
|
31
|
-
"type": "registry:component"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "src/components/examples/field/field-fieldset.astro",
|
|
35
|
-
"content": "---\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<FieldSet class=\"w-full max-w-sm\">\n <FieldLegend>Address Information</FieldLegend>\n <FieldDescription>\n We need your address to deliver your order.\n </FieldDescription>\n <FieldGroup>\n <Field>\n <FieldLabel for=\"street\">Street Address</FieldLabel>\n <Input id=\"street\" type=\"text\" placeholder=\"123 Main St\" />\n </Field>\n <div class=\"grid grid-cols-2 gap-4\">\n <Field>\n <FieldLabel for=\"city\">City</FieldLabel>\n <Input id=\"city\" type=\"text\" placeholder=\"New York\" />\n </Field>\n <Field>\n <FieldLabel for=\"zip\">Postal Code</FieldLabel>\n <Input id=\"zip\" type=\"text\" placeholder=\"90502\" />\n </Field>\n </div>\n </FieldGroup>\n</FieldSet>\n",
|
|
36
|
-
"type": "registry:component"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "src/components/examples/field/field-group.astro",
|
|
40
|
-
"content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldSeparator,\n FieldSet,\n} from \"@/components/ui/field\"\n---\n\n<FieldGroup class=\"w-full max-w-xs\">\n <FieldSet as=\"div\">\n <FieldLabel>Responses</FieldLabel>\n <FieldDescription>\n Get notified when ChatGPT responds to requests that take time, like\n research or image generation.\n </FieldDescription>\n <FieldGroup data-slot=\"checkbox-group\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"push\" checked disabled />\n <FieldLabel for=\"push\" class=\"font-normal\">\n Push notifications\n </FieldLabel>\n </Field>\n </FieldGroup>\n </FieldSet>\n <FieldSeparator />\n <FieldSet as=\"div\">\n <FieldLabel>Tasks</FieldLabel>\n <FieldDescription>\n Get notified when tasks you've created have updates.{\" \"}\n <a href=\"#\">Manage tasks</a>\n </FieldDescription>\n <FieldGroup data-slot=\"checkbox-group\">\n <Field orientation=\"horizontal\">\n <Checkbox id=\"push-tasks\" />\n <FieldLabel for=\"push-tasks\" class=\"font-normal\">\n Push notifications\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"email-tasks\" />\n <FieldLabel for=\"email-tasks\" class=\"font-normal\">\n Email notifications\n </FieldLabel>\n </Field>\n </FieldGroup>\n </FieldSet>\n</FieldGroup>\n",
|
|
41
|
-
"type": "registry:component"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "src/components/examples/field/field-input.astro",
|
|
45
|
-
"content": "---\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<FieldSet as=\"div\" class=\"w-full max-w-xs\">\n <FieldGroup>\n <Field>\n <FieldLabel for=\"username\">Username</FieldLabel>\n <Input id=\"username\" type=\"text\" placeholder=\"Max Leiter\" />\n <FieldDescription>\n Choose a unique username for your account.\n </FieldDescription>\n </Field>\n <Field>\n <FieldLabel for=\"password\">Password</FieldLabel>\n <FieldDescription>Must be at least 8 characters long.</FieldDescription>\n <Input id=\"password\" type=\"password\" placeholder=\"••••••••\" />\n </Field>\n </FieldGroup>\n</FieldSet>\n",
|
|
46
|
-
"type": "registry:component"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "src/components/examples/field/field-radio.astro",
|
|
50
|
-
"content": "---\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\"\n---\n\n<FieldSet class=\"w-full max-w-xs\">\n <FieldLegend variant=\"label\">Subscription Plan</FieldLegend>\n <FieldDescription>\n Yearly and lifetime plans offer significant savings.\n </FieldDescription>\n <RadioGroup defaultValue=\"monthly\">\n <Field orientation=\"horizontal\">\n <RadioGroupItem value=\"monthly\" id=\"plan-monthly\" />\n <FieldLabel for=\"plan-monthly\" class=\"font-normal\">\n Monthly ($9.99/month)\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <RadioGroupItem value=\"yearly\" id=\"plan-yearly\" />\n <FieldLabel for=\"plan-yearly\" class=\"font-normal\">\n Yearly ($99.99/year)\n </FieldLabel>\n </Field>\n <Field orientation=\"horizontal\">\n <RadioGroupItem value=\"lifetime\" id=\"plan-lifetime\" />\n <FieldLabel for=\"plan-lifetime\" class=\"font-normal\">\n Lifetime ($299.99)\n </FieldLabel>\n </Field>\n </RadioGroup>\n</FieldSet>\n",
|
|
51
|
-
"type": "registry:component"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "src/components/examples/field/field-responsive.astro",
|
|
55
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<div class=\"w-full max-w-lg\">\n <form>\n <FieldSet>\n <FieldLegend>Profile</FieldLegend>\n <FieldDescription>Fill in your profile information.</FieldDescription>\n <FieldGroup>\n <Field orientation=\"responsive\">\n <FieldContent>\n <FieldLabel for=\"name\">Name</FieldLabel>\n <FieldDescription>\n Provide your full name for identification\n </FieldDescription>\n </FieldContent>\n <Input id=\"name\" placeholder=\"Evil Rabbit\" required />\n </Field>\n <Field orientation=\"responsive\">\n <Button type=\"submit\">Submit</Button>\n <Button type=\"button\" variant=\"outline\">\n Cancel\n </Button>\n </Field>\n </FieldGroup>\n </FieldSet>\n </form>\n</div>\n",
|
|
56
|
-
"type": "registry:component"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"path": "src/components/examples/field/field-rtl.astro",
|
|
60
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSeparator,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\nimport { Textarea } from \"@/components/ui/textarea\"\n\nconst months = [\n { label: \"MM\", value: null },\n { label: \"01\", value: \"01\" },\n { label: \"02\", value: \"02\" },\n { label: \"03\", value: \"03\" },\n { label: \"04\", value: \"04\" },\n { label: \"05\", value: \"05\" },\n { label: \"06\", value: \"06\" },\n { label: \"07\", value: \"07\" },\n { label: \"08\", value: \"08\" },\n { label: \"09\", value: \"09\" },\n { label: \"10\", value: \"10\" },\n { label: \"11\", value: \"11\" },\n { label: \"12\", value: \"12\" },\n]\n\nconst years = [\n { label: \"YYYY\", value: null },\n { label: \"2024\", value: \"2024\" },\n { label: \"2025\", value: \"2025\" },\n { label: \"2026\", value: \"2026\" },\n { label: \"2027\", value: \"2027\" },\n { label: \"2028\", value: \"2028\" },\n { label: \"2029\", value: \"2029\" },\n]\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n paymentMethod: \"Payment Method\",\n secureTransactions: \"All transactions are secure and encrypted\",\n nameOnCard: \"Name on Card\",\n cardNumber: \"Card Number\",\n cardNumberDescription: \"Enter your 16-digit card number\",\n month: \"Month\",\n year: \"Year\",\n cvv: \"CVV\",\n monthPlaceholder: \"MM\",\n month01: \"01\",\n month02: \"02\",\n month03: \"03\",\n month04: \"04\",\n month05: \"05\",\n month06: \"06\",\n month07: \"07\",\n month08: \"08\",\n month09: \"09\",\n month10: \"10\",\n month11: \"11\",\n month12: \"12\",\n billingAddress: \"Billing Address\",\n billingAddressDescription:\n \"The billing address associated with your payment method\",\n sameAsShipping: \"Same as shipping address\",\n comments: \"Comments\",\n commentsPlaceholder: \"Add any additional comments\",\n submit: \"Submit\",\n cancel: \"Cancel\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n paymentMethod: \"طريقة الدفع\",\n secureTransactions: \"جميع المعاملات آمنة ومشفرة\",\n nameOnCard: \"الاسم على البطاقة\",\n cardNumber: \"رقم البطاقة\",\n cardNumberDescription: \"أدخل رقم البطاقة المكون من 16 رقمًا\",\n month: \"الشهر\",\n year: \"السنة\",\n cvv: \"CVV\",\n monthPlaceholder: \"ش.ش\",\n month01: \"٠١\",\n month02: \"٠٢\",\n month03: \"٠٣\",\n month04: \"٠٤\",\n month05: \"٠٥\",\n month06: \"٠٦\",\n month07: \"٠٧\",\n month08: \"٠٨\",\n month09: \"٠٩\",\n month10: \"١٠\",\n month11: \"١١\",\n month12: \"١٢\",\n billingAddress: \"عنوان الفوترة\",\n billingAddressDescription: \"عنوان الفوترة المرتبط بطريقة الدفع الخاصة بك\",\n sameAsShipping: \"نفس عنوان الشحن\",\n comments: \"تعليقات\",\n commentsPlaceholder: \"أضف أي تعليقات إضافية\",\n submit: \"إرسال\",\n cancel: \"إلغاء\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n paymentMethod: \"אמצעי תשלום\",\n secureTransactions: \"כל העסקאות מאובטחות ומוצפנות\",\n nameOnCard: \"שם על הכרטיס\",\n cardNumber: \"מספר כרטיס\",\n cardNumberDescription: \"הזן את מספר הכרטיס בן 16 הספרות שלך\",\n month: \"חודש\",\n year: \"שנה\",\n cvv: \"CVV\",\n monthPlaceholder: \"MM\",\n month01: \"01\",\n month02: \"02\",\n month03: \"03\",\n month04: \"04\",\n month05: \"05\",\n month06: \"06\",\n month07: \"07\",\n month08: \"08\",\n month09: \"09\",\n month10: \"10\",\n month11: \"11\",\n month12: \"12\",\n billingAddress: \"כתובת חיוב\",\n billingAddressDescription: \"כתובת החיוב המשויכת לאמצעי התשלום שלך\",\n sameAsShipping: \"זהה לכתובת המשלוח\",\n comments: \"הערות\",\n commentsPlaceholder: \"הוסף הערות נוספות\",\n submit: \"שלח\",\n cancel: \"בטל\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n\nconst getMonthLabel = (value: string | null): string => {\n if (value === null) return t.monthPlaceholder\n const monthKey = `month${value}` as keyof typeof t\n return t[monthKey] || value\n}\n---\n\n<div class=\"w-full max-w-md py-6\" dir={dir}>\n <form>\n <FieldGroup>\n <FieldSet>\n <FieldLegend>{t.paymentMethod}</FieldLegend>\n <FieldDescription>{t.secureTransactions}</FieldDescription>\n <FieldGroup>\n <Field>\n <FieldLabel for=\"checkout-7j9-card-name-43j-rtl\">\n {t.nameOnCard}\n </FieldLabel>\n <Input\n id=\"checkout-7j9-card-name-43j-rtl\"\n placeholder=\"Evil Rabbit\"\n required\n />\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-card-number-uw1-rtl\">\n {t.cardNumber}\n </FieldLabel>\n <Input\n id=\"checkout-7j9-card-number-uw1-rtl\"\n placeholder=\"1234 5678 9012 3456\"\n required\n />\n <FieldDescription>{t.cardNumberDescription}</FieldDescription>\n </Field>\n <div class=\"grid grid-cols-3 gap-4\">\n <Field>\n <FieldLabel for=\"checkout-exp-month-ts6-rtl\">\n {t.month}\n </FieldLabel>\n <Select placeholder={getMonthLabel(null)}>\n <SelectTrigger id=\"checkout-exp-month-ts6-rtl\" class=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent dir={dir}>\n <SelectGroup>\n {months.map((item) => (\n <SelectItem value={item.value ?? \"\"}>\n {getMonthLabel(item.value)}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-exp-year-f59-rtl\">\n {t.year}\n </FieldLabel>\n <Select placeholder={years[0].label}>\n <SelectTrigger\n id=\"checkout-7j9-exp-year-f59-rtl\"\n class=\"w-full\"\n >\n <SelectValue />\n </SelectTrigger>\n <SelectContent dir={dir}>\n <SelectGroup>\n {years.map((item) => (\n <SelectItem value={item.value ?? \"\"}>\n {item.label}\n </SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel for=\"checkout-7j9-cvv-rtl\">{t.cvv}</FieldLabel>\n <Input id=\"checkout-7j9-cvv-rtl\" placeholder=\"123\" required />\n </Field>\n </div>\n </FieldGroup>\n </FieldSet>\n <FieldSeparator />\n <FieldSet>\n <FieldLegend>{t.billingAddress}</FieldLegend>\n <FieldDescription>{t.billingAddressDescription}</FieldDescription>\n <FieldGroup>\n <Field orientation=\"horizontal\">\n <Checkbox id=\"checkout-7j9-same-as-shipping-wgm-rtl\" checked />\n <FieldLabel\n for=\"checkout-7j9-same-as-shipping-wgm-rtl\"\n class=\"font-normal\"\n >\n {t.sameAsShipping}\n </FieldLabel>\n </Field>\n </FieldGroup>\n </FieldSet>\n <FieldSet as=\"div\">\n <FieldGroup>\n <Field>\n <FieldLabel for=\"checkout-7j9-optional-comments-rtl\">\n {t.comments}\n </FieldLabel>\n <Textarea\n id=\"checkout-7j9-optional-comments-rtl\"\n placeholder={t.commentsPlaceholder}\n class=\"resize-none\"\n />\n </Field>\n </FieldGroup>\n </FieldSet>\n <Field orientation=\"horizontal\">\n <Button type=\"submit\">{t.submit}</Button>\n <Button variant=\"outline\" type=\"button\">\n {t.cancel}\n </Button>\n </Field>\n </FieldGroup>\n </form>\n</div>\n",
|
|
61
|
-
"type": "registry:component"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"path": "src/components/examples/field/field-select.astro",
|
|
65
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst items = [\n { label: \"Choose department\", value: null },\n { label: \"Engineering\", value: \"engineering\" },\n { label: \"Design\", value: \"design\" },\n { label: \"Marketing\", value: \"marketing\" },\n { label: \"Sales\", value: \"sales\" },\n { label: \"Customer Support\", value: \"support\" },\n { label: \"Human Resources\", value: \"hr\" },\n { label: \"Finance\", value: \"finance\" },\n { label: \"Operations\", value: \"operations\" },\n]\n---\n\n<Field class=\"w-full max-w-xs\">\n <FieldLabel>Department</FieldLabel>\n <Select placeholder={items[0].label}>\n <SelectTrigger class=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {items.map((item) => (\n <SelectItem value={item.value ?? \"\"}>{item.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n <FieldDescription>Select your department or area of work.</FieldDescription>\n</Field>\n",
|
|
66
|
-
"type": "registry:component"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "src/components/examples/field/field-slider.astro",
|
|
70
|
-
"content": "---\nimport { Field, FieldDescription, FieldTitle } from \"@/components/ui/field\"\nimport { Slider } from \"@/components/ui/slider\"\n\nconst value = [200, 800]\n---\n\n<Field class=\"w-full max-w-xs\" data-field-slider>\n <FieldTitle data-slider-label>Price Range</FieldTitle>\n <!-- prettier-ignore -->\n <FieldDescription>\n Set your budget range ($<span class=\"font-medium tabular-nums\" data-field-slider-min>{value[0]}</span> - <span class=\"font-medium tabular-nums\" data-field-slider-max>{value[1]}</span>).\n </FieldDescription>\n <Slider\n defaultValue={[value[0], value[1]]}\n max={1000}\n min={0}\n step={10}\n class=\"mt-2 w-full\"\n />\n</Field>\n\n<script>\n const initialize = () => {\n for (const root of document.querySelectorAll(\"[data-field-slider]\")) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n // Name each thumb after the visible label: the thumbs are the\n // focusable sliders, not the root.\n const name = root\n .querySelector(\"[data-slider-label]\")\n ?.textContent?.trim()\n const thumbs = root.querySelectorAll('[data-slot=\"slider-thumb\"]')\n thumbs.forEach((thumb, index) =>\n thumb.setAttribute(\n \"aria-label\",\n thumbs.length > 1\n ? `${name} ${index === 0 ? \"minimum\" : \"maximum\"}`\n : `${name}`\n )\n )\n const min = root.querySelector(\"[data-field-slider-min]\")\n const max = root.querySelector(\"[data-field-slider-max]\")\n root\n .querySelector('[data-slot=\"slider\"]')\n ?.addEventListener(\"slider:change\", (event) => {\n const [start, end] = [\n (event as CustomEvent<{ value: number | number[] }>).detail.value,\n ].flat()\n if (min) min.textContent = String(start)\n if (max) max.textContent = String(end)\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
|
|
71
|
-
"type": "registry:component"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"path": "src/components/examples/field/field-switch.astro",
|
|
75
|
-
"content": "---\nimport { Field, FieldLabel } from \"@/components/ui/field\"\nimport { Switch } from \"@/components/ui/switch\"\n---\n\n<Field orientation=\"horizontal\" class=\"w-fit\">\n <FieldLabel for=\"2fa\">Multi-factor authentication</FieldLabel>\n <Switch id=\"2fa\" />\n</Field>\n",
|
|
76
|
-
"type": "registry:component"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"path": "src/components/examples/field/field-textarea.astro",
|
|
80
|
-
"content": "---\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldSet,\n} from \"@/components/ui/field\"\nimport { Textarea } from \"@/components/ui/textarea\"\n---\n\n<FieldSet as=\"div\" class=\"w-full max-w-xs\">\n <FieldGroup>\n <Field>\n <FieldLabel for=\"feedback\">Feedback</FieldLabel>\n <Textarea\n id=\"feedback\"\n placeholder=\"Your feedback helps us improve...\"\n rows={4}\n />\n <FieldDescription>\n Share your thoughts about our service.\n </FieldDescription>\n </Field>\n </FieldGroup>\n</FieldSet>\n",
|
|
81
|
-
"type": "registry:component"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"docs": "https://ui.full.dev/components/field/",
|
|
85
|
-
"type": "registry:example"
|
|
86
|
-
}
|
package/public/r/field.json
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "field",
|
|
4
|
-
"title": "Field",
|
|
5
|
-
"description": "Combine labels, controls, and help text to compose accessible form fields and grouped inputs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/label",
|
|
8
|
-
"@fulldev/separator"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/ui/field/field.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> &\n VariantProps<typeof variants> & {\n as?: \"div\" | \"span\"\n }\n\nconst variants = cva(\"data-[invalid=true]:text-destructive gap-3 group/field flex w-full\", {\n variants: {\n orientation: {\n vertical:\n \"flex-col [&>.sr-only]:w-auto [&>:not([role=checkbox]):not([role=radio])]:w-full\",\n horizontal:\n \"flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px\",\n responsive:\n \"flex-col @md/field-group:flex-row @md/field-group:items-center @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto [&>:not([role=checkbox]):not([role=radio])]:w-full @md/field-group:[&>:not([role=checkbox]):not([role=radio])]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px\",\n },\n },\n defaultVariants: {\n orientation: \"vertical\",\n },\n})\n\nconst {\n as: Tag = \"div\",\n class: className,\n orientation = \"vertical\",\n ...props\n} = Astro.props\n---\n\n<Tag\n role=\"group\"\n data-slot=\"field\"\n data-orientation={orientation}\n class={cn(variants({ orientation }), className)}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
14
|
-
"type": "registry:ui"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/ui/field/field-content.astro",
|
|
18
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n as?: \"div\" | \"span\"\n}\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"field-content\"\n class={cn(\n \"gap-1 group/field-content flex flex-1 flex-col leading-snug\",\n className\n )}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
19
|
-
"type": "registry:ui"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/ui/field/field-description.astro",
|
|
23
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\"> & {\n as?: \"p\" | \"span\"\n}\n\nconst { as: Tag = \"p\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"field-description\"\n class={cn(\n \"text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-data-horizontal/field:text-balance\",\n \"last:mt-0 nth-last-2:-mt-1\",\n \"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
24
|
-
"type": "registry:ui"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/components/ui/field/field-error.astro",
|
|
28
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n errors?: Array<{ message?: string } | undefined>\n}\n\nconst { class: className, errors, ...props } = Astro.props\n\nconst messages = [\n ...new Set(\n (errors ?? [])\n .map((error) => error?.message?.trim())\n .filter((message): message is string => Boolean(message))\n ),\n]\n\nconst hasDefaultSlot = Astro.slots.has(\"default\")\nconst shouldRender = hasDefaultSlot || messages.length > 0\n---\n\n{shouldRender && (\n <div\n role=\"alert\"\n data-slot=\"field-error\"\n class={cn(\"text-destructive text-sm font-normal\", className)}\n {...props}\n >\n {hasDefaultSlot ? (\n <slot />\n ) : messages.length === 1 ? (\n messages[0]\n ) : (\n <ul class=\"ml-4 flex list-disc flex-col gap-1\">\n {messages.map((message) => (\n <li>{message}</li>\n ))}\n </ul>\n )}\n </div>\n)}\n",
|
|
29
|
-
"type": "registry:ui"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "src/components/ui/field/field-group.astro",
|
|
33
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"field-group\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n class={cn(\n \"gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4 group/field-group @container/field-group flex w-full flex-col\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
34
|
-
"type": "registry:ui"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "src/components/ui/field/field-label.astro",
|
|
38
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Label } from \"@/components/ui/label\"\n\ntype Props = ComponentProps<typeof Label>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Label\n data-slot=\"field-label\"\n class={cn(\n \"has-[[data-checked],:checked]:bg-primary/5 has-[[data-checked],:checked]:border-primary/30 dark:has-[[data-checked],:checked]:border-primary/20 dark:has-[[data-checked],:checked]:bg-primary/10 gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-3 group/field-label peer/field-label flex w-fit\",\n \"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col\",\n className\n )}\n {...props}\n>\n <slot />\n</Label>\n",
|
|
39
|
-
"type": "registry:ui"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "src/components/ui/field/field-legend.astro",
|
|
43
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"legend\"> & {\n variant?: \"legend\" | \"label\"\n}\n\nconst { class: className, variant = \"legend\", ...props } = Astro.props\n---\n\n<legend\n data-slot=\"field-legend\"\n data-variant={variant}\n class={cn(\"mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base\", className)}\n {...props}\n>\n <slot />\n</legend>\n",
|
|
44
|
-
"type": "registry:ui"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"path": "src/components/ui/field/field-separator.astro",
|
|
48
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\nconst hasContent = Astro.slots.has(\"default\")\n---\n\n<div\n data-slot=\"field-separator\"\n data-content={hasContent}\n class={cn(\"-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative\", className)}\n {...props}\n>\n <Separator class=\"absolute inset-0 top-1/2\" />\n {hasContent && (\n <span\n class=\"text-muted-foreground px-2 bg-background relative mx-auto block w-fit\"\n data-slot=\"field-separator-content\"\n >\n <slot />\n </span>\n )}\n</div>\n",
|
|
49
|
-
"type": "registry:ui"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"path": "src/components/ui/field/field-set.astro",
|
|
53
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"fieldset\"> & {\n as?: \"fieldset\" | \"div\"\n}\n\nconst { as: Tag = \"fieldset\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"field-set\"\n class={cn(\"gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
54
|
-
"type": "registry:ui"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "src/components/ui/field/field-title.astro",
|
|
58
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n as?: \"div\" | \"span\"\n}\n\nconst { as: Tag = \"div\", class: className, ...props } = Astro.props\n---\n\n<Tag\n data-slot=\"field-label\"\n class={cn(\"gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center\", className)}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
59
|
-
"type": "registry:ui"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"path": "src/components/ui/field/index.ts",
|
|
63
|
-
"content": "export { default as Field } from \"./field.astro\"\nexport { default as FieldContent } from \"./field-content.astro\"\nexport { default as FieldDescription } from \"./field-description.astro\"\nexport { default as FieldError } from \"./field-error.astro\"\nexport { default as FieldGroup } from \"./field-group.astro\"\nexport { default as FieldLabel } from \"./field-label.astro\"\nexport { default as FieldLegend } from \"./field-legend.astro\"\nexport { default as FieldSeparator } from \"./field-separator.astro\"\nexport { default as FieldSet } from \"./field-set.astro\"\nexport { default as FieldTitle } from \"./field-title.astro\"\n",
|
|
64
|
-
"type": "registry:ui"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"docs": "https://ui.full.dev/components/field/",
|
|
68
|
-
"categories": [
|
|
69
|
-
"ui"
|
|
70
|
-
],
|
|
71
|
-
"type": "registry:ui"
|
|
72
|
-
}
|
package/public/r/footer-1.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "footer-1",
|
|
4
|
-
"title": "Footer 1",
|
|
5
|
-
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/icon",
|
|
8
|
-
"@fulldev/logo",
|
|
9
|
-
"@fulldev/section",
|
|
10
|
-
"@fulldev/separator"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/blocks/footer-1.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n socials: {\n label: string\n href: string\n icon?: string\n }[]\n columns: {\n title: string\n links: {\n label: string\n href: string\n }[]\n }[]\n copyright: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n socials,\n columns,\n copyright,\n ...props\n} = Astro.props\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-16 lg:py-20\">\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"grid gap-10 lg:grid-cols-[1fr_2fr]\">\n <div class=\"flex flex-col gap-5\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-xs text-sm leading-relaxed\">\n {description}\n </p>\n {socials.length > 0 && (\n <div class=\"flex items-center gap-3\">\n {socials.map((social) => (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n >\n <Icon name={social.icon} href={social.href} class=\"size-4\" />\n </a>\n ))}\n </div>\n )}\n </div>\n <div class=\"grid gap-8 sm:grid-cols-3\">\n {columns.map((column) => (\n <div class=\"flex flex-col gap-3\">\n <h2 class=\"text-sm font-medium\">{column.title}</h2>\n <ul class=\"flex flex-col gap-2.5\">\n {column.links.map((link) => (\n <li>\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n </div>\n <Separator />\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
16
|
-
"type": "registry:block"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"docs": "https://ui.full.dev/blocks/footer/",
|
|
20
|
-
"categories": [
|
|
21
|
-
"footer"
|
|
22
|
-
],
|
|
23
|
-
"type": "registry:block"
|
|
24
|
-
}
|
package/public/r/footer-2.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "footer-2",
|
|
4
|
-
"title": "Footer 2",
|
|
5
|
-
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/icon",
|
|
8
|
-
"@fulldev/logo",
|
|
9
|
-
"@fulldev/section",
|
|
10
|
-
"@fulldev/separator"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/blocks/footer-2.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n links: {\n label: string\n href: string\n }[]\n socials: {\n label: string\n href: string\n icon?: string\n }[]\n copyright: string\n navigationLabel: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n links,\n socials,\n copyright,\n navigationLabel,\n ...props\n} = Astro.props\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-12 lg:py-16\">\n <SectionContainer class=\"flex flex-col gap-8 items-center text-center\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-md text-sm leading-relaxed\">\n {description}\n </p>\n <nav\n aria-label={navigationLabel}\n class=\"flex flex-wrap items-center justify-center gap-x-6 gap-y-2\"\n >\n {links.map((link) => (\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n ))}\n </nav>\n {socials.length > 0 && (\n <div class=\"flex items-center justify-center gap-3\">\n {socials.map((social) => (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n >\n <Icon name={social.icon} href={social.href} class=\"size-4\" />\n </a>\n ))}\n </div>\n )}\n <Separator />\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
16
|
-
"type": "registry:block"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"docs": "https://ui.full.dev/blocks/footer/",
|
|
20
|
-
"categories": [
|
|
21
|
-
"footer"
|
|
22
|
-
],
|
|
23
|
-
"type": "registry:block"
|
|
24
|
-
}
|
package/public/r/footer-3.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "footer-3",
|
|
4
|
-
"title": "Footer 3",
|
|
5
|
-
"description": "Footer layouts for utility navigation, brand presence, and last-mile calls to action.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/icon",
|
|
8
|
-
"@fulldev/logo",
|
|
9
|
-
"@fulldev/section",
|
|
10
|
-
"@fulldev/separator"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/blocks/footer-3.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = HTMLAttributes<\"footer\"> & {\n brandName: string\n brandHref: string\n description: string\n socials: {\n label: string\n href: string\n icon?: string\n }[]\n columns: {\n title: string\n links: {\n label: string\n href: string\n }[]\n }[]\n copyright: string\n bottomLinks: {\n label: string\n href: string\n }[]\n navigationLabel: string\n}\n\nconst {\n class: className,\n brandName,\n brandHref,\n description,\n socials,\n columns,\n copyright,\n bottomLinks,\n navigationLabel,\n ...props\n} = Astro.props\n---\n\n<footer class={cn(\"\", className)} {...props}>\n <Section class=\"py-16 lg:py-20\">\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"grid gap-10 lg:grid-cols-[1fr_2fr]\">\n <div class=\"flex flex-col gap-5\">\n <Logo href={brandHref}>\n <LogoText>{brandName}</LogoText>\n </Logo>\n <p class=\"text-muted-foreground max-w-xs text-sm leading-relaxed\">\n {description}\n </p>\n {socials.length > 0 && (\n <div class=\"flex items-center gap-3\">\n {socials.map((social) => (\n <a\n href={social.href}\n class=\"text-muted-foreground hover:text-foreground transition-colors\"\n aria-label={social.label}\n >\n <Icon name={social.icon} href={social.href} class=\"size-4\" />\n </a>\n ))}\n </div>\n )}\n </div>\n <div class=\"grid gap-8 sm:grid-cols-3\">\n {columns.map((column) => (\n <div class=\"flex flex-col gap-3\">\n <h2 class=\"text-sm font-medium\">{column.title}</h2>\n <ul class=\"flex flex-col gap-2.5\">\n {column.links.map((link) => (\n <li>\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))}\n </div>\n </div>\n <Separator />\n <div class=\"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between\">\n <p class=\"text-muted-foreground text-sm\">{copyright}</p>\n <nav\n aria-label={navigationLabel}\n class=\"flex flex-wrap items-center gap-x-5 gap-y-2\"\n >\n {bottomLinks.map((link) => (\n <a\n href={link.href}\n class=\"text-muted-foreground hover:text-foreground text-sm transition-colors\"\n >\n {link.label}\n </a>\n ))}\n </nav>\n </div>\n </SectionContainer>\n </Section>\n</footer>\n",
|
|
16
|
-
"type": "registry:block"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"docs": "https://ui.full.dev/blocks/footer/",
|
|
20
|
-
"categories": [
|
|
21
|
-
"footer"
|
|
22
|
-
],
|
|
23
|
-
"type": "registry:block"
|
|
24
|
-
}
|
package/public/r/form.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "form",
|
|
4
|
-
"title": "Form",
|
|
5
|
-
"description": "A thin Astro form wrapper with sensible vertical spacing for fulldev field primitives.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/form/form.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"form\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<form data-slot=\"form\" class={cn(\"flex flex-col gap-6\", className)} {...props}>\n <slot />\n</form>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/form/index.ts",
|
|
14
|
-
"content": "export { default as Form } from \"./form.astro\"\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/components/form/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"ui"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:ui"
|
|
23
|
-
}
|
package/public/r/header-1.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "header-1",
|
|
4
|
-
"title": "Header 1",
|
|
5
|
-
"description": "Header layouts for brand, navigation, and high-level page actions.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button",
|
|
11
|
-
"@fulldev/header",
|
|
12
|
-
"@fulldev/icon",
|
|
13
|
-
"@fulldev/logo",
|
|
14
|
-
"@fulldev/navigation-menu",
|
|
15
|
-
"@fulldev/sheet"
|
|
16
|
-
],
|
|
17
|
-
"files": [
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/blocks/header-1.astro",
|
|
20
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { Header, HeaderContainer, HeaderGroup } from \"@/components/ui/header\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Logo, LogoImage, LogoText } from \"@/components/ui/logo\"\nimport {\n NavigationMenu,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n} from \"@/components/ui/navigation-menu\"\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n\ntype Props = HTMLAttributes<\"header\"> & {\n logo: {\n label: string\n href: string\n src?: ImageMetadata\n srcLight?: ImageMetadata\n srcDark?: ImageMetadata\n }\n navigation: {\n label: string\n href: string\n active?: boolean\n }[]\n buttons: {\n label: string\n href: string\n icon?: string\n target?: \"_self\" | \"_blank\"\n }[]\n navigationLabel: string\n menu: {\n label: string\n title: string\n description: string\n closeLabel: string\n }\n}\n\nconst {\n class: className,\n logo,\n navigation,\n buttons,\n navigationLabel,\n menu,\n ...props\n} = Astro.props\n---\n\n<Header class={cn(\"\", className)} {...props}>\n <HeaderContainer class=\"items-center justify-between gap-4\">\n <HeaderGroup>\n <Logo href={logo.href}>\n <LogoImage\n src={logo.src}\n srcLight={logo.srcLight}\n srcDark={logo.srcDark}\n alt=\"\"\n />\n <LogoText>{logo.label}</LogoText>\n </Logo>\n </HeaderGroup>\n <NavigationMenu\n aria-label={navigationLabel}\n class=\"hidden flex-none justify-start lg:flex\"\n >\n <NavigationMenuList class=\"justify-start\">\n {navigation.map((item, index) => (\n <NavigationMenuItem value={`nav-${index}`}>\n <NavigationMenuLink href={item.href} active={item.active}>\n {item.label}\n </NavigationMenuLink>\n </NavigationMenuItem>\n ))}\n </NavigationMenuList>\n </NavigationMenu>\n <HeaderGroup class=\"ml-auto hidden flex-1 justify-end lg:flex\">\n {buttons.map(({ label, href, icon, target }, index) => (\n <Button\n as=\"a\"\n href={href}\n target={target}\n rel={target === \"_blank\" ? \"noreferrer\" : undefined}\n size=\"sm\"\n variant={index === buttons.length - 1 ? \"default\" : \"ghost\"}\n >\n {icon && <Icon name={icon} />}\n {label}\n </Button>\n ))}\n </HeaderGroup>\n <Sheet class=\"lg:hidden\">\n <SheetTrigger\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"ml-auto\"\n aria-label={menu.label}\n >\n <Icon name=\"menu\" />\n </SheetTrigger>\n <SheetContent side=\"right\" showCloseButton={false} class=\"p-0\">\n <SheetHeader class=\"sr-only\">\n <SheetTitle>{menu.title}</SheetTitle>\n <SheetDescription>{menu.description}</SheetDescription>\n </SheetHeader>\n <div class=\"flex h-full flex-col gap-6 px-4 py-12\">\n <nav aria-label={menu.title} class=\"flex flex-col gap-1\">\n {navigation.map((item) => (\n <SheetClose\n as=\"a\"\n href={item.href}\n aria-current={item.active ? \"page\" : undefined}\n variant=\"ghost\"\n class=\"justify-start\"\n >\n {item.label}\n </SheetClose>\n ))}\n </nav>\n {buttons.length > 0 && (\n <div class=\"mt-auto flex flex-col gap-2\">\n {buttons.map(({ label, href, icon, target }, index) => (\n <SheetClose\n as=\"a\"\n href={href}\n target={target}\n rel={target === \"_blank\" ? \"noreferrer\" : undefined}\n variant={index === buttons.length - 1 ? \"default\" : \"outline\"}\n >\n {icon && <Icon name={icon} />}\n {label}\n </SheetClose>\n ))}\n </div>\n )}\n </div>\n <SheetClose\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"absolute top-4 right-4\"\n >\n <XIcon />\n <span class=\"sr-only\">{menu.closeLabel}</span>\n </SheetClose>\n </SheetContent>\n </Sheet>\n </HeaderContainer>\n</Header>\n",
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"docs": "https://ui.full.dev/blocks/header/",
|
|
25
|
-
"categories": [
|
|
26
|
-
"header"
|
|
27
|
-
],
|
|
28
|
-
"type": "registry:block"
|
|
29
|
-
}
|
package/public/r/header-2.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "header-2",
|
|
4
|
-
"title": "Header 2",
|
|
5
|
-
"description": "Header layouts for brand, navigation, and high-level page actions.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button",
|
|
11
|
-
"@fulldev/header",
|
|
12
|
-
"@fulldev/icon",
|
|
13
|
-
"@fulldev/logo",
|
|
14
|
-
"@fulldev/navigation-menu",
|
|
15
|
-
"@fulldev/sheet"
|
|
16
|
-
],
|
|
17
|
-
"files": [
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/blocks/header-2.astro",
|
|
20
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport XIcon from \"@lucide/astro/icons/x\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button } from \"@/components/ui/button\"\nimport { Header, HeaderContainer, HeaderGroup } from \"@/components/ui/header\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Logo, LogoImage, LogoText } from \"@/components/ui/logo\"\nimport {\n NavigationMenu,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n} from \"@/components/ui/navigation-menu\"\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n\ntype Props = HTMLAttributes<\"header\"> & {\n logo: {\n label: string\n href: string\n src?: ImageMetadata\n srcLight?: ImageMetadata\n srcDark?: ImageMetadata\n }\n navigation: {\n label: string\n href: string\n active?: boolean\n }[]\n buttons: {\n label: string\n href: string\n icon?: string\n target?: \"_self\" | \"_blank\"\n }[]\n navigationLabel: string\n menu: {\n label: string\n title: string\n description: string\n closeLabel: string\n }\n}\n\nconst {\n class: className,\n logo,\n navigation,\n buttons,\n navigationLabel,\n menu,\n ...props\n} = Astro.props\n---\n\n<Header variant=\"floating\" class={cn(\"\", className)} {...props}>\n <HeaderContainer class=\"justify-between\">\n <HeaderGroup>\n <Logo href={logo.href}>\n <LogoImage\n src={logo.src}\n srcLight={logo.srcLight}\n srcDark={logo.srcDark}\n alt=\"\"\n />\n <LogoText>{logo.label}</LogoText>\n </Logo>\n </HeaderGroup>\n <NavigationMenu\n aria-label={navigationLabel}\n class=\"absolute left-1/2 hidden max-w-none -translate-x-1/2 lg:flex\"\n >\n <NavigationMenuList>\n {navigation.map((item, index) => (\n <NavigationMenuItem value={`nav-${index}`}>\n <NavigationMenuLink href={item.href} active={item.active}>\n {item.label}\n </NavigationMenuLink>\n </NavigationMenuItem>\n ))}\n </NavigationMenuList>\n </NavigationMenu>\n <HeaderGroup class=\"ml-auto hidden justify-end lg:flex\">\n {buttons.map(({ label, href, icon, target }, index) => (\n <Button\n as=\"a\"\n href={href}\n target={target}\n rel={target === \"_blank\" ? \"noreferrer\" : undefined}\n size=\"sm\"\n variant={index === buttons.length - 1 ? \"default\" : \"ghost\"}\n >\n {icon && <Icon name={icon} />}\n {label}\n </Button>\n ))}\n </HeaderGroup>\n <Sheet class=\"lg:hidden\">\n <SheetTrigger\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"ml-auto\"\n aria-label={menu.label}\n >\n <Icon name=\"menu\" />\n </SheetTrigger>\n <SheetContent side=\"right\" showCloseButton={false} class=\"p-0\">\n <SheetHeader class=\"sr-only\">\n <SheetTitle>{menu.title}</SheetTitle>\n <SheetDescription>{menu.description}</SheetDescription>\n </SheetHeader>\n <div class=\"flex h-full flex-col gap-6 px-4 py-12\">\n <nav aria-label={menu.title} class=\"flex flex-col gap-1\">\n {navigation.map((item) => (\n <SheetClose\n as=\"a\"\n href={item.href}\n aria-current={item.active ? \"page\" : undefined}\n variant=\"ghost\"\n class=\"justify-start\"\n >\n {item.label}\n </SheetClose>\n ))}\n </nav>\n {buttons.length > 0 && (\n <div class=\"mt-auto flex flex-col gap-2\">\n {buttons.map(({ label, href, icon, target }, index) => (\n <SheetClose\n as=\"a\"\n href={href}\n target={target}\n rel={target === \"_blank\" ? \"noreferrer\" : undefined}\n variant={index === buttons.length - 1 ? \"default\" : \"outline\"}\n >\n {icon && <Icon name={icon} />}\n {label}\n </SheetClose>\n ))}\n </div>\n )}\n </div>\n <SheetClose\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"absolute top-4 right-4\"\n >\n <XIcon />\n <span class=\"sr-only\">{menu.closeLabel}</span>\n </SheetClose>\n </SheetContent>\n </Sheet>\n </HeaderContainer>\n</Header>\n",
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"docs": "https://ui.full.dev/blocks/header/",
|
|
25
|
-
"categories": [
|
|
26
|
-
"header"
|
|
27
|
-
],
|
|
28
|
-
"type": "registry:block"
|
|
29
|
-
}
|