fulldev-ui 0.25.0 → 0.25.2
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 +16 -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 +4 -2
- package/public/r/liquid/components.json +1 -1
- package/public/r/liquid/init.json +1 -1
- package/public/r/styles/base-luma/button-examples.json +2 -2
- package/public/r/styles/base-luma/collapsible-examples.json +1 -1
- package/public/r/styles/base-luma/combobox-examples.json +1 -1
- package/public/r/styles/base-luma/combobox.json +1 -1
- package/public/r/styles/base-luma/input-group-examples.json +2 -2
- package/public/r/styles/base-luma/item-examples.json +1 -1
- package/public/r/styles/base-luma/select.json +1 -1
- package/public/r/styles/base-luma/tabs.json +1 -1
- package/public/r/styles/base-luma/tooltip-examples.json +1 -1
- package/public/r/styles/base-lyra/button-examples.json +2 -2
- package/public/r/styles/base-lyra/collapsible-examples.json +1 -1
- package/public/r/styles/base-lyra/combobox-examples.json +1 -1
- package/public/r/styles/base-lyra/combobox.json +1 -1
- package/public/r/styles/base-lyra/input-group-examples.json +2 -2
- package/public/r/styles/base-lyra/item-examples.json +1 -1
- package/public/r/styles/base-lyra/select.json +1 -1
- package/public/r/styles/base-lyra/tabs.json +1 -1
- package/public/r/styles/base-lyra/tooltip-examples.json +1 -1
- package/public/r/styles/base-maia/button-examples.json +2 -2
- package/public/r/styles/base-maia/collapsible-examples.json +1 -1
- package/public/r/styles/base-maia/combobox-examples.json +1 -1
- package/public/r/styles/base-maia/combobox.json +1 -1
- package/public/r/styles/base-maia/input-group-examples.json +2 -2
- package/public/r/styles/base-maia/item-examples.json +1 -1
- package/public/r/styles/base-maia/select.json +1 -1
- package/public/r/styles/base-maia/tabs.json +1 -1
- package/public/r/styles/base-maia/tooltip-examples.json +1 -1
- package/public/r/styles/base-mira/button-examples.json +2 -2
- package/public/r/styles/base-mira/collapsible-examples.json +1 -1
- package/public/r/styles/base-mira/combobox-examples.json +1 -1
- package/public/r/styles/base-mira/combobox.json +1 -1
- package/public/r/styles/base-mira/input-group-examples.json +2 -2
- package/public/r/styles/base-mira/item-examples.json +1 -1
- package/public/r/styles/base-mira/select.json +1 -1
- package/public/r/styles/base-mira/tabs.json +1 -1
- package/public/r/styles/base-mira/tooltip-examples.json +1 -1
- package/public/r/styles/base-nova/button-examples.json +2 -2
- package/public/r/styles/base-nova/collapsible-examples.json +1 -1
- package/public/r/styles/base-nova/combobox-examples.json +1 -1
- package/public/r/styles/base-nova/combobox.json +1 -1
- package/public/r/styles/base-nova/input-group-examples.json +2 -2
- package/public/r/styles/base-nova/item-examples.json +1 -1
- package/public/r/styles/base-nova/select.json +1 -1
- package/public/r/styles/base-nova/tabs.json +1 -1
- package/public/r/styles/base-nova/tooltip-examples.json +1 -1
- package/public/r/styles/base-rhea/button-examples.json +2 -2
- package/public/r/styles/base-rhea/collapsible-examples.json +1 -1
- package/public/r/styles/base-rhea/combobox-examples.json +1 -1
- package/public/r/styles/base-rhea/combobox.json +1 -1
- package/public/r/styles/base-rhea/input-group-examples.json +2 -2
- package/public/r/styles/base-rhea/item-examples.json +1 -1
- package/public/r/styles/base-rhea/select.json +1 -1
- package/public/r/styles/base-rhea/tabs.json +1 -1
- package/public/r/styles/base-rhea/tooltip-examples.json +1 -1
- package/public/r/styles/base-sera/button-examples.json +2 -2
- package/public/r/styles/base-sera/collapsible-examples.json +1 -1
- package/public/r/styles/base-sera/combobox-examples.json +1 -1
- package/public/r/styles/base-sera/combobox.json +1 -1
- package/public/r/styles/base-sera/input-group-examples.json +2 -2
- package/public/r/styles/base-sera/item-examples.json +1 -1
- package/public/r/styles/base-sera/select.json +1 -1
- package/public/r/styles/base-sera/tabs.json +1 -1
- package/public/r/styles/base-sera/tooltip-examples.json +1 -1
- package/public/r/styles/base-vega/button-examples.json +2 -2
- package/public/r/styles/base-vega/collapsible-examples.json +1 -1
- package/public/r/styles/base-vega/combobox-examples.json +1 -1
- package/public/r/styles/base-vega/combobox.json +1 -1
- package/public/r/styles/base-vega/input-group-examples.json +2 -2
- package/public/r/styles/base-vega/item-examples.json +1 -1
- package/public/r/styles/base-vega/select.json +1 -1
- package/public/r/styles/base-vega/tabs.json +1 -1
- package/public/r/styles/base-vega/tooltip-examples.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/services-2.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-2",
|
|
4
|
-
"title": "Services 2",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/badge",
|
|
8
|
-
"@fulldev/button",
|
|
9
|
-
"@fulldev/section"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/blocks/services-2.astro",
|
|
14
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge: string\n title: string\n description: string\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n label: string\n title: string\n description: string\n button: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-12\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <SectionTitle class=\"mt-4\">{title}</SectionTitle>\n <p class=\"text-muted-foreground mt-4 text-base leading-relaxed text-balance\">\n {description}\n </p>\n </div>\n <div class=\"grid gap-6 lg:gap-8\">\n {services.map((service) => (\n <div class=\"grid items-center gap-6 rounded-xl border p-4 shadow-xs md:grid-cols-[16rem_minmax(0,1fr)] md:p-0\">\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class=\"aspect-[4/3] w-full rounded-lg object-cover md:aspect-auto md:h-full md:rounded-l-xl md:rounded-r-none\"\n widths={[320, 480]}\n sizes=\"(min-width: 768px) 16rem, 100vw\"\n />\n <div class=\"flex flex-col gap-2 py-2 md:py-6 md:pr-6\">\n <span class=\"text-primary text-xs font-medium tracking-wider uppercase\">\n {service.label}\n </span>\n <h3 class=\"text-lg font-medium\">{service.title}</h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {service.description}\n </p>\n <Button\n as=\"a\"\n href={service.button.href}\n variant=\"secondary\"\n class=\"mt-1 w-fit\"\n >\n {service.button.label}\n </Button>\n </div>\n </div>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
15
|
-
"type": "registry:block"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/assets/placeholder.svg",
|
|
19
|
-
"content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
|
|
20
|
-
"type": "registry:file",
|
|
21
|
-
"target": "src/assets/placeholder.svg"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
25
|
-
"categories": [
|
|
26
|
-
"services"
|
|
27
|
-
],
|
|
28
|
-
"type": "registry:block"
|
|
29
|
-
}
|
package/public/r/services-3.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-3",
|
|
4
|
-
"title": "Services 3",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/badge",
|
|
8
|
-
"@fulldev/button",
|
|
9
|
-
"@fulldev/section"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/blocks/services-3.astro",
|
|
14
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge: string\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n title: string\n description: string\n button: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n buttons,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <SectionTitle class=\"mt-4\">{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 justify-center 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 <div class=\"grid gap-6 sm:grid-cols-2\">\n {services.map((service) => (\n <div class=\"relative isolate flex aspect-[4/3] flex-col justify-end overflow-hidden rounded-xl\">\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class=\"absolute inset-0 -z-10 size-full object-cover\"\n widths={[480, 640, 960]}\n sizes=\"(min-width: 80rem) 612px, (min-width: 40rem) 50vw, 100vw\"\n />\n <div class=\"absolute inset-0 -z-10 bg-gradient-to-t from-black/80 via-black/40 to-transparent\" />\n <div class=\"flex flex-col gap-2 p-6 text-white\">\n <h3 class=\"text-xl font-semibold\">{service.title}</h3>\n <p class=\"text-sm leading-relaxed text-white/80\">\n {service.description}\n </p>\n <Button\n as=\"a\"\n href={service.button.href}\n variant=\"secondary\"\n class=\"mt-2 w-fit\"\n >\n {service.button.label}\n </Button>\n </div>\n </div>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
15
|
-
"type": "registry:block"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/assets/placeholder.svg",
|
|
19
|
-
"content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
|
|
20
|
-
"type": "registry:file",
|
|
21
|
-
"target": "src/assets/placeholder.svg"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
25
|
-
"categories": [
|
|
26
|
-
"services"
|
|
27
|
-
],
|
|
28
|
-
"type": "registry:block"
|
|
29
|
-
}
|
package/public/r/services-4.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-4",
|
|
4
|
-
"title": "Services 4",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button",
|
|
11
|
-
"@fulldev/section"
|
|
12
|
-
],
|
|
13
|
-
"files": [
|
|
14
|
-
{
|
|
15
|
-
"path": "src/components/blocks/services-4.astro",
|
|
16
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\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 {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n title: string\n description: string\n link?: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n title,\n description,\n buttons,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-4 md:flex-row md:items-end md:justify-between\">\n <div class=\"max-w-2xl\">\n <SectionTitle>{title}</SectionTitle>\n <p class=\"text-muted-foreground mt-4 text-base leading-relaxed text-balance\">\n {description}\n </p>\n </div>\n <div class=\"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 <div class=\"grid gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n {services.map((service) => (\n <article class=\"flex flex-col gap-4\">\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class=\"aspect-[16/10] w-full rounded-lg object-cover\"\n widths={[320, 480, 640]}\n sizes=\"(min-width: 80rem) 294px, (min-width: 64rem) 25vw, (min-width: 40rem) 50vw, 100vw\"\n />\n <div class=\"flex flex-1 flex-col gap-1\">\n <h3 class=\"text-base font-medium\">{service.title}</h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {service.description}\n </p>\n </div>\n {service.link && (\n <a\n href={service.link.href}\n class=\"text-primary inline-flex w-fit items-center gap-1.5 text-sm font-medium underline-offset-4 hover:underline\"\n >\n {service.link.label}\n <ArrowRightIcon class=\"size-3.5\" />\n </a>\n )}\n </article>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
17
|
-
"type": "registry:block"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"path": "src/assets/placeholder.svg",
|
|
21
|
-
"content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
|
|
22
|
-
"type": "registry:file",
|
|
23
|
-
"target": "src/assets/placeholder.svg"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
27
|
-
"categories": [
|
|
28
|
-
"services"
|
|
29
|
-
],
|
|
30
|
-
"type": "registry:block"
|
|
31
|
-
}
|
package/public/r/services-5.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-5",
|
|
4
|
-
"title": "Services 5",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/badge",
|
|
11
|
-
"@fulldev/icon",
|
|
12
|
-
"@fulldev/section"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/blocks/services-5.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Icon } from \"@/components/ui/icon\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge: string\n title: string\n description: string\n services: {\n icon: string\n title: string\n description: string\n link?: {\n label: string\n href: string\n }\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-12\">\n <div class=\"mx-auto max-w-2xl text-center\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <SectionTitle class=\"mt-4\">{title}</SectionTitle>\n <p class=\"text-muted-foreground mt-4 text-base leading-relaxed text-balance\">\n {description}\n </p>\n </div>\n <div class=\"ring-foreground/10 bg-border grid gap-px overflow-hidden rounded-xl ring-1 ring-inset sm:grid-cols-2 lg:grid-cols-4\">\n {services.map((service) => (\n <div class=\"bg-background relative flex flex-col gap-4 p-7\">\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={service.icon} class=\"size-5\" />\n </div>\n <h3 class=\"text-base font-medium tracking-tight\">{service.title}</h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {service.description}\n </p>\n {service.link && (\n <a\n href={service.link.href}\n class=\"text-primary mt-auto inline-flex w-fit items-center gap-1.5 text-sm font-medium underline-offset-4 hover:underline\"\n >\n {service.link.label}\n <ArrowRightIcon class=\"size-3.5\" />\n </a>\n )}\n </div>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
18
|
-
"type": "registry:block"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
22
|
-
"categories": [
|
|
23
|
-
"services"
|
|
24
|
-
],
|
|
25
|
-
"type": "registry:block"
|
|
26
|
-
}
|
package/public/r/services-6.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-6",
|
|
4
|
-
"title": "Services 6",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/badge",
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/section"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/blocks/services-6.astro",
|
|
17
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge: string\n title: string\n description: string\n buttons: {\n label: string\n href: string\n }[]\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n title: string\n description: string\n href?: string\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n buttons,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"grid gap-8 lg:grid-cols-[20rem_minmax(0,1fr)] lg:items-start\">\n <div class=\"lg:sticky lg:top-28\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <h2 class=\"mt-4 text-3xl font-semibold tracking-tight text-balance\">\n {title}\n </h2>\n <p class=\"text-muted-foreground mt-4 text-sm leading-relaxed\">\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 <div class=\"grid gap-6 sm:grid-cols-2\">\n {services.map((service) => (\n <div class=\"relative isolate flex aspect-square flex-col justify-end overflow-hidden rounded-xl bg-black\">\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class=\"absolute inset-0 -z-10 size-full object-cover opacity-60\"\n widths={[320, 480, 640]}\n sizes=\"(min-width: 80rem) 436px, (min-width: 64rem) 35vw, (min-width: 40rem) 50vw, 100vw\"\n />\n <div class=\"absolute inset-0 -z-10 bg-gradient-to-t from-black/70 to-transparent\" />\n <div class=\"flex items-end justify-between gap-4 p-5 text-white\">\n <div class=\"flex flex-col gap-1\">\n <h3 class=\"text-lg font-semibold\">{service.title}</h3>\n <p class=\"text-sm leading-relaxed text-white/75\">\n {service.description}\n </p>\n </div>\n {service.href != null && (\n <a\n href={service.href}\n aria-label={service.title}\n class=\"shrink-0 rounded-full bg-white/15 p-2 backdrop-blur-sm transition-colors hover:bg-white/25\"\n >\n <ArrowRightIcon class=\"size-4 text-white\" />\n </a>\n )}\n </div>\n </div>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
18
|
-
"type": "registry:block"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/assets/placeholder.svg",
|
|
22
|
-
"content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
|
|
23
|
-
"type": "registry:file",
|
|
24
|
-
"target": "src/assets/placeholder.svg"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
28
|
-
"categories": [
|
|
29
|
-
"services"
|
|
30
|
-
],
|
|
31
|
-
"type": "registry:block"
|
|
32
|
-
}
|
package/public/r/services-7.json
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "services-7",
|
|
4
|
-
"title": "Services 7",
|
|
5
|
-
"description": "Service section layouts for agencies, consultancies, and internal platform teams.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/badge",
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/section"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/blocks/services-7.astro",
|
|
17
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Badge } from \"@/components/ui/badge\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Section,\n SectionContainer,\n SectionTitle,\n} from \"@/components/ui/section\"\nimport PlaceholderImage from \"@/assets/placeholder.svg\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n badge: string\n title: string\n description: string\n linkLabel: string\n buttons: {\n label: string\n href: string\n }[]\n services: {\n image?: {\n src: ImageMetadata\n alt: string\n }\n label: string\n title: string\n description: string\n href?: string\n }[]\n}\n\nconst {\n class: className,\n badge,\n title,\n description,\n buttons,\n linkLabel,\n services,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-4 md:flex-row md:items-end md:justify-between\">\n <div class=\"max-w-2xl\">\n <Badge variant=\"secondary\">{badge}</Badge>\n <SectionTitle class=\"mt-4\">{title}</SectionTitle>\n <p class=\"text-muted-foreground mt-4 text-base leading-relaxed text-balance\">\n {description}\n </p>\n </div>\n <div class=\"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 <div class=\"grid gap-6 lg:grid-cols-3\">\n {services.map((service, index) => {\n const Wrapper = service.href != null ? \"a\" : \"div\"\n return (\n <Wrapper\n href={service.href}\n class={cn(\n \"group/service flex flex-col overflow-hidden rounded-xl border shadow-xs\",\n service.href != null && \"transition-shadow hover:shadow-md\",\n index === 0 && \"lg:col-span-2 lg:row-span-2\"\n )}\n >\n <Image\n src={service.image?.src ?? PlaceholderImage}\n alt={service.image?.alt ?? \"\"}\n class={cn(\n \"w-full object-cover\",\n index === 0 ? \"aspect-[16/9]\" : \"aspect-[16/10]\"\n )}\n widths={[320, 480, 640, 960]}\n sizes={\n index === 0\n ? \"(min-width: 80rem) 824px, (min-width: 64rem) 66vw, 100vw\"\n : \"(min-width: 80rem) 400px, (min-width: 64rem) 33vw, 100vw\"\n }\n />\n <div class=\"flex flex-1 flex-col gap-2 p-5\">\n <Badge variant=\"secondary\" class=\"w-fit\">\n {service.label}\n </Badge>\n <h3\n class={cn(\"font-medium\", index === 0 ? \"text-xl\" : \"text-base\")}\n >\n {service.title}\n </h3>\n <p class=\"text-muted-foreground text-sm leading-relaxed\">\n {service.description}\n </p>\n {service.href != null && (\n <div\n class={cn(\n \"text-primary flex items-center gap-1.5 pt-2 text-sm font-medium\",\n index !== 0 && \"mt-auto\"\n )}\n >\n {linkLabel}\n <ArrowRightIcon class=\"size-3.5 transition-transform group-hover/service:translate-x-1\" />\n </div>\n )}\n </div>\n </Wrapper>\n )\n })}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
18
|
-
"type": "registry:block"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/assets/placeholder.svg",
|
|
22
|
-
"content": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1536\" height=\"864\" viewBox=\"0 0 1536 864\">\n <defs>\n <radialGradient id=\"placeholder-background\" cx=\"50%\" cy=\"50%\" r=\"70%\">\n <stop offset=\"0\" stop-color=\"#525252\" />\n <stop offset=\"1\" stop-color=\"#404040\" />\n </radialGradient>\n <radialGradient id=\"placeholder-fade\" cx=\"50%\" cy=\"50%\" r=\"40%\">\n <stop offset=\"0\" stop-color=\"#ffffff\" />\n <stop offset=\"1\" stop-color=\"#ffffff\" stop-opacity=\"0\" />\n </radialGradient>\n <pattern id=\"placeholder-dots\" width=\"20\" height=\"20\" patternUnits=\"userSpaceOnUse\">\n <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"#e5e5e5\" />\n </pattern>\n <mask id=\"placeholder-mask\">\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-fade)\" />\n </mask>\n </defs>\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-background)\" />\n <rect width=\"1536\" height=\"864\" fill=\"url(#placeholder-dots)\" mask=\"url(#placeholder-mask)\" />\n</svg>\n",
|
|
23
|
-
"type": "registry:file",
|
|
24
|
-
"target": "src/assets/placeholder.svg"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"docs": "https://ui.full.dev/blocks/services/",
|
|
28
|
-
"categories": [
|
|
29
|
-
"services"
|
|
30
|
-
],
|
|
31
|
-
"type": "registry:block"
|
|
32
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "sheet-examples",
|
|
4
|
-
"title": "Sheet examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Sheet docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/button",
|
|
8
|
-
"@fulldev/field",
|
|
9
|
-
"@fulldev/input",
|
|
10
|
-
"@fulldev/label",
|
|
11
|
-
"@fulldev/sheet"
|
|
12
|
-
],
|
|
13
|
-
"files": [
|
|
14
|
-
{
|
|
15
|
-
"path": "src/components/examples/sheet/sheet-demo.astro",
|
|
16
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Input } from \"@/components/ui/input\"\nimport { Label } from \"@/components/ui/label\"\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n---\n\n<Sheet>\n <SheetTrigger variant=\"outline\">Open</SheetTrigger>\n <SheetContent>\n <SheetHeader>\n <SheetTitle>Edit profile</SheetTitle>\n <SheetDescription>\n Make changes to your profile here. Click save when you're done.\n </SheetDescription>\n </SheetHeader>\n <div class=\"grid flex-1 auto-rows-min gap-6 px-4\">\n <div class=\"grid gap-3\">\n <Label for=\"sheet-demo-name\">Name</Label>\n <Input id=\"sheet-demo-name\" value=\"Pedro Duarte\" />\n </div>\n <div class=\"grid gap-3\">\n <Label for=\"sheet-demo-username\">Username</Label>\n <Input id=\"sheet-demo-username\" value=\"@peduarte\" />\n </div>\n </div>\n <SheetFooter>\n <Button type=\"submit\">Save changes</Button>\n <SheetClose variant=\"outline\">Close</SheetClose>\n </SheetFooter>\n </SheetContent>\n</Sheet>\n",
|
|
17
|
-
"type": "registry:component"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"path": "src/components/examples/sheet/sheet-no-close-button.astro",
|
|
21
|
-
"content": "---\nimport {\n Sheet,\n SheetContent,\n SheetDescription,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n---\n\n<Sheet>\n <SheetTrigger variant=\"outline\">Open Sheet</SheetTrigger>\n <SheetContent showCloseButton={false}>\n <SheetHeader>\n <SheetTitle>No Close Button</SheetTitle>\n <SheetDescription>\n This sheet doesn't have a close button in the top-right corner.\n Click outside to close.\n </SheetDescription>\n </SheetHeader>\n </SheetContent>\n</Sheet>\n",
|
|
22
|
-
"type": "registry:component"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"path": "src/components/examples/sheet/sheet-rtl.astro",
|
|
26
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n open: \"Open\",\n editProfile: \"Edit profile\",\n description:\n \"Make changes to your profile here. Click save when you're done.\",\n name: \"Name\",\n username: \"Username\",\n save: \"Save changes\",\n close: \"Close\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n open: \"فتح\",\n editProfile: \"تعديل الملف الشخصي\",\n description:\n \"قم بإجراء تغييرات على ملفك الشخصي هنا. انقر حفظ عند الانتهاء.\",\n name: \"الاسم\",\n username: \"اسم المستخدم\",\n save: \"حفظ التغييرات\",\n close: \"إغلاق\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n open: \"פתח\",\n editProfile: \"עריכת פרופיל\",\n description: \"בצע שינויים בפרופיל שלך כאן. לחץ שמור כשתסיים.\",\n name: \"שם\",\n username: \"שם משתמש\",\n save: \"שמור שינויים\",\n close: \"סגור\",\n },\n },\n}\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n---\n\n<Sheet>\n <SheetTrigger variant=\"outline\">{t.open}</SheetTrigger>\n <SheetContent\n dir={dir}\n side={dir === \"rtl\" ? \"left\" : \"right\"}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <SheetHeader>\n <SheetTitle>{t.editProfile}</SheetTitle>\n <SheetDescription>{t.description}</SheetDescription>\n </SheetHeader>\n <FieldGroup class=\"px-4\">\n <Field>\n <FieldLabel for=\"sheet-rtl-name\">{t.name}</FieldLabel>\n <Input id=\"sheet-rtl-name\" value=\"Pedro Duarte\" />\n </Field>\n <Field>\n <FieldLabel for=\"sheet-rtl-username\">{t.username}</FieldLabel>\n <Input id=\"sheet-rtl-username\" value=\"peduarte\" />\n </Field>\n </FieldGroup>\n <SheetFooter>\n <Button type=\"submit\">{t.save}</Button>\n <SheetClose variant=\"outline\">{t.close}</SheetClose>\n </SheetFooter>\n </SheetContent>\n</Sheet>\n",
|
|
27
|
-
"type": "registry:component"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "src/components/examples/sheet/sheet-side.astro",
|
|
31
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Sheet,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n} from \"@/components/ui/sheet\"\n\nconst SHEET_SIDES = [\"top\", \"right\", \"bottom\", \"left\"] as const\n---\n\n<div class=\"flex flex-wrap gap-2\">\n {SHEET_SIDES.map((side) => (\n <Sheet>\n <SheetTrigger variant=\"outline\" class=\"capitalize\">\n {side}\n </SheetTrigger>\n <SheetContent\n side={side}\n class=\"data-[side=bottom]:max-h-[50vh] data-[side=top]:max-h-[50vh]\"\n >\n <SheetHeader>\n <SheetTitle>Edit profile</SheetTitle>\n <SheetDescription>\n Make changes to your profile here. Click save when you're done.\n </SheetDescription>\n </SheetHeader>\n <div class=\"no-scrollbar overflow-y-auto px-4\">\n {Array.from({ length: 10 }).map(() => (\n <p class=\"mb-2 leading-relaxed\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut\n enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat\n nulla pariatur. Excepteur sint occaecat cupidatat non proident,\n sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n ))}\n </div>\n <SheetFooter>\n <Button type=\"submit\">Save changes</Button>\n <SheetClose variant=\"outline\">Cancel</SheetClose>\n </SheetFooter>\n </SheetContent>\n </Sheet>\n ))}\n</div>\n",
|
|
32
|
-
"type": "registry:component"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"docs": "https://ui.full.dev/components/sheet/",
|
|
36
|
-
"type": "registry:example"
|
|
37
|
-
}
|
package/public/r/sheet.json
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "sheet",
|
|
4
|
-
"title": "Sheet",
|
|
5
|
-
"description": "A sliding panel component that appears from the edge of the screen.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@data-slot/dialog@^1.1.2",
|
|
8
|
-
"@lucide/astro"
|
|
9
|
-
],
|
|
10
|
-
"registryDependencies": [
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/dialog"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/ui/sheet/sheet.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n defaultOpen?: boolean\n closeOnClickOutside?: boolean\n closeOnEscape?: boolean\n lockScroll?: boolean\n}\n\nconst {\n class: className,\n defaultOpen,\n closeOnClickOutside,\n closeOnEscape,\n lockScroll,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"dialog\"\n class={className}\n data-default-open={defaultOpen}\n data-close-on-click-outside={closeOnClickOutside}\n data-close-on-escape={closeOnEscape}\n data-lock-scroll={lockScroll}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { create } from \"@data-slot/dialog\"\n\n const controllers: ReturnType<typeof create> = []\n const initialize = () => controllers.push(...create())\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
|
|
18
|
-
"type": "registry:ui"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/ui/sheet/sheet-close.astro",
|
|
22
|
-
"content": "---\nimport type { HTMLTag, Polymorphic } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\nimport type { ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props<Tag extends HTMLTag = \"button\"> = Polymorphic<{ as: Tag }> &\n ButtonVariantProps\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"dialog-close\" {...props}>\n <slot />\n</Button>\n",
|
|
23
|
-
"type": "registry:ui"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/ui/sheet/sheet-content.astro",
|
|
27
|
-
"content": "---\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 { DialogPortal } from \"@/components/ui/dialog\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n showCloseButton?: boolean\n}\n\nconst {\n class: className,\n side = \"right\",\n showCloseButton = true,\n style,\n ...props\n} = Astro.props\n---\n\n<DialogPortal>\n <div\n data-slot=\"dialog-overlay\"\n hidden\n class=\"bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0\"\n style=\"z-index: calc(var(--dialog-overlay-stack-index, 0) * 2 + 100);\"\n ></div>\n <div\n data-slot=\"dialog-content\"\n data-side={side}\n hidden\n class={cn(\n \"bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm outline-none data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem]\",\n className\n )}\n style={`z-index: calc(var(--dialog-content-stack-index, 0) * 2 + 101);${style ? ` ${style}` : \"\"}`}\n {...props}\n >\n <slot />\n {showCloseButton && (\n <Button\n type=\"button\"\n data-slot=\"dialog-close\"\n variant=\"ghost\"\n size=\"icon-sm\"\n class=\"absolute top-4 right-4\"\n >\n <XIcon />\n <span class=\"sr-only\">Close</span>\n </Button>\n )}\n </div>\n</DialogPortal>\n",
|
|
28
|
-
"type": "registry:ui"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/components/ui/sheet/sheet-description.astro",
|
|
32
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"p\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<p\n data-slot=\"dialog-description\"\n class={cn(\"text-muted-foreground text-sm\", className)}\n {...props}\n>\n <slot />\n</p>\n",
|
|
33
|
-
"type": "registry:ui"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "src/components/ui/sheet/sheet-footer.astro",
|
|
37
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"sheet-footer\"\n class={cn(\"gap-2 p-4 mt-auto flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
38
|
-
"type": "registry:ui"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "src/components/ui/sheet/sheet-header.astro",
|
|
42
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n data-slot=\"sheet-header\"\n class={cn(\"gap-1.5 p-4 flex flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
43
|
-
"type": "registry:ui"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"path": "src/components/ui/sheet/sheet-title.astro",
|
|
47
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"h2\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<h2\n data-slot=\"dialog-title\"\n class={cn(\"text-foreground font-medium font-heading\", className)}\n {...props}\n>\n <slot />\n</h2>\n",
|
|
48
|
-
"type": "registry:ui"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "src/components/ui/sheet/sheet-trigger.astro",
|
|
52
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { Button } from \"@/components/ui/button\"\n\ntype Props = ComponentProps<typeof Button>\n\nconst { ...props } = Astro.props\n---\n\n<Button data-slot=\"dialog-trigger\" {...props}>\n <slot />\n</Button>\n",
|
|
53
|
-
"type": "registry:ui"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"path": "src/components/ui/sheet/index.ts",
|
|
57
|
-
"content": "export { default as Sheet } from \"./sheet.astro\"\nexport { default as SheetContent } from \"./sheet-content.astro\"\nexport { default as SheetTrigger } from \"./sheet-trigger.astro\"\nexport { default as SheetHeader } from \"./sheet-header.astro\"\nexport { default as SheetTitle } from \"./sheet-title.astro\"\nexport { default as SheetDescription } from \"./sheet-description.astro\"\nexport { default as SheetFooter } from \"./sheet-footer.astro\"\nexport { default as SheetClose } from \"./sheet-close.astro\"\n",
|
|
58
|
-
"type": "registry:ui"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"docs": "https://ui.full.dev/components/sheet/",
|
|
62
|
-
"categories": [
|
|
63
|
-
"ui"
|
|
64
|
-
],
|
|
65
|
-
"type": "registry:ui"
|
|
66
|
-
}
|
package/public/r/sidebar-1.json
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "sidebar-1",
|
|
4
|
-
"title": "Sidebar 1",
|
|
5
|
-
"description": "Deprecated: a docs shell with a sidebar, search, breadcrumb and theme toggle.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/breadcrumb",
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/command",
|
|
13
|
-
"@fulldev/dialog",
|
|
14
|
-
"@fulldev/dropdown-menu",
|
|
15
|
-
"@fulldev/header",
|
|
16
|
-
"@fulldev/icon",
|
|
17
|
-
"@fulldev/kbd",
|
|
18
|
-
"@fulldev/logo",
|
|
19
|
-
"@fulldev/separator",
|
|
20
|
-
"@fulldev/sidebar",
|
|
21
|
-
"@fulldev/theme-toggle"
|
|
22
|
-
],
|
|
23
|
-
"files": [
|
|
24
|
-
{
|
|
25
|
-
"path": "src/components/blocks/sidebar-1.astro",
|
|
26
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\nimport SearchIcon from \"@lucide/astro/icons/search\"\n\nimport { cn } from \"@/lib/utils\"\nimport {\n Breadcrumb,\n BreadcrumbEllipsis,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbList,\n BreadcrumbPage,\n BreadcrumbSeparator,\n} from \"@/components/ui/breadcrumb\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Command,\n CommandDialog,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n CommandShortcut,\n} from \"@/components/ui/command\"\nimport { DialogTrigger } from \"@/components/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport { Header, HeaderContainer, HeaderGroup } from \"@/components/ui/header\"\nimport { Icon } from \"@/components/ui/icon\"\nimport { Kbd } from \"@/components/ui/kbd\"\nimport { LogoImage, LogoText } from \"@/components/ui/logo\"\nimport { Separator } from \"@/components/ui/separator\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInset,\n SidebarMenu,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarProvider,\n SidebarTrigger,\n} from \"@/components/ui/sidebar\"\nimport { ThemeToggle } from \"@/components/ui/theme-toggle\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n currentPath: string\n logo: {\n label: string\n href: string\n src?: ImageMetadata\n srcLight?: ImageMetadata\n srcDark?: ImageMetadata\n }\n search: {\n label: string\n empty: string\n items: {\n label: string\n href: string\n title: string\n path: string\n description: string\n group: string\n }[]\n }\n breadcrumb: {\n items: {\n label: string\n href: string\n }[]\n menu: {\n label: string\n href: string\n }[]\n }\n navigation: {\n label: string\n href: string\n links?: {\n label: string\n href: string\n }[]\n }[]\n githubRepo: string\n githubStars?: number\n labels: {\n sidebar: string\n github: string\n stars: string\n breadcrumb: string\n breadcrumbMenu: string\n sidebarToggle: string\n mobileTitle: string\n mobileDescription: string\n theme: string\n shortcut: {\n mac: string\n other: string\n }\n }\n}\n\nconst {\n currentPath: rawCurrentPath,\n logo,\n search,\n breadcrumb,\n navigation,\n githubRepo,\n githubStars,\n labels,\n ...props\n} = Astro.props\n\nconst normalizePath = (path: string) => {\n if (path === \"/\") return path\n\n return path.replace(/\\/$/, \"\")\n}\nconst currentPath = normalizePath(rawCurrentPath)\nconst searchGroups = search.items.reduce<\n { label: string; items: typeof search.items }[]\n>((groups, item) => {\n const group = groups.find((entry) => entry.label === item.group)\n\n if (group) {\n group.items.push(item)\n } else {\n groups.push({ label: item.group, items: [item] })\n }\n\n return groups\n}, [])\n\nconst githubStarsLabel =\n githubStars === undefined\n ? labels.stars\n : new Intl.NumberFormat().format(githubStars)\n\n/* eslint-disable astro/jsx-a11y/no-autofocus -- Focus moves into the search dialog when it opens. */\n---\n\n<SidebarProvider {...props}>\n <Sidebar\n aria-label={labels.sidebar}\n collapsible=\"offcanvas\"\n variant=\"inset\"\n mobileTitle={labels.mobileTitle}\n mobileDescription={labels.mobileDescription}\n >\n <SidebarHeader class=\"flex-col\">\n <SidebarMenuButton size=\"lg\" href={logo.href}>\n <LogoImage\n src={logo.src}\n srcLight={logo.srcLight}\n srcDark={logo.srcDark}\n alt=\"\"\n />\n <LogoText class=\"font-semibold\">{logo.label}</LogoText>\n </SidebarMenuButton>\n <slot name=\"header\" />\n <CommandDialog\n class=\"w-full\"\n data-search-dialog\n title={search.label}\n description={search.label}\n >\n <DialogTrigger\n slot=\"trigger\"\n variant=\"outline\"\n size=\"sm\"\n class=\"w-full justify-start shadow-none\"\n aria-keyshortcuts=\"Meta+K Control+K\"\n >\n <SearchIcon data-icon=\"inline-start\" />\n <span class=\"truncate\">{search.label}</span>\n <Kbd\n class=\"bg-background/80 ml-auto h-4 min-w-4 translate-y-0 px-1 text-[10px]\"\n data-search-shortcut\n data-shortcut-mac={labels.shortcut.mac}\n data-shortcut-other={labels.shortcut.other}\n >\n {labels.shortcut.mac}\n </Kbd>\n </DialogTrigger>\n\n <Command class=\"[&_[data-slot=command-item][data-selected]]:bg-accent [&_[data-slot=command-item][data-selected]]:text-accent-foreground\">\n <CommandInput autofocus placeholder={search.label} />\n <CommandList>\n <CommandEmpty>{search.empty}</CommandEmpty>\n\n {searchGroups.map((group) => (\n <CommandGroup heading={group.label}>\n {group.items.map((item) => (\n <CommandItem\n href={item.href}\n value={`${item.group} ${item.label}`}\n label={item.label}\n keywords={[\n item.group,\n item.title,\n item.path,\n item.description,\n ]}\n >\n {item.label}\n <CommandShortcut>{item.href}</CommandShortcut>\n </CommandItem>\n ))}\n </CommandGroup>\n ))}\n </CommandList>\n </Command>\n </CommandDialog>\n </SidebarHeader>\n <SidebarContent class=\"[mask-image:linear-gradient(to_bottom,transparent,black_1rem,black_calc(100%_-_1rem),transparent)] [-webkit-mask-image:linear-gradient(to_bottom,transparent,black_1rem,black_calc(100%_-_1rem),transparent)] group-data-[collapsible=icon]:[mask-image:none] group-data-[collapsible=icon]:[-webkit-mask-image:none]\">\n {navigation.map((group) => (\n <SidebarGroup>\n <SidebarGroupLabel>{group.label}</SidebarGroupLabel>\n <SidebarMenu>\n {(group.links ?? [group]).map((item) => (\n <SidebarMenuItem>\n <SidebarMenuButton\n href={item.href}\n isActive={normalizePath(item.href) === currentPath}\n >\n <span>{item.label}</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n ))}\n </SidebarContent>\n </Sidebar>\n <SidebarInset>\n <Header class=\"h-16\">\n <HeaderContainer class=\"max-w-none justify-between\">\n <HeaderGroup>\n <SidebarTrigger aria-label={labels.sidebarToggle} />\n <Separator orientation=\"vertical\" class=\"my-auto mr-2 h-4\" />\n <Breadcrumb aria-label={labels.breadcrumb}>\n <BreadcrumbList>\n {breadcrumb.items.map((item, index) => {\n const isLast = index === breadcrumb.items.length - 1\n const isHome = item.href === \"/\"\n const hasMenu =\n !isHome &&\n breadcrumb.menu.some(\n (menuItem) =>\n normalizePath(menuItem.href) === normalizePath(item.href)\n )\n\n return (\n <>\n {index > 0 && <BreadcrumbSeparator>/</BreadcrumbSeparator>}\n <BreadcrumbItem>\n {hasMenu ? (\n <DropdownMenu>\n <DropdownMenuTrigger\n aria-current={isLast ? \"page\" : undefined}\n class={cn(\n \"hover:text-foreground inline-flex items-center gap-1 transition-colors\",\n isLast && \"text-foreground\"\n )}\n >\n {item.label}\n <ChevronDownIcon\n class=\"size-3.5 opacity-70\"\n aria-hidden=\"true\"\n />\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n <DropdownMenuGroup>\n {breadcrumb.menu.map((menuItem) => (\n <DropdownMenuItem\n href={menuItem.href}\n aria-current={\n normalizePath(menuItem.href) === currentPath\n ? \"page\"\n : undefined\n }\n class=\"aria-[current=page]:text-foreground\"\n >\n {menuItem.label}\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n ) : isLast ? (\n <BreadcrumbPage>{item.label}</BreadcrumbPage>\n ) : (\n <BreadcrumbLink href={item.href}>\n {item.label}\n </BreadcrumbLink>\n )}\n </BreadcrumbItem>\n </>\n )\n })}\n {breadcrumb.menu.length > 0 && currentPath === \"/\" && (\n <>\n <BreadcrumbSeparator>/</BreadcrumbSeparator>\n <BreadcrumbItem>\n <DropdownMenu>\n <DropdownMenuTrigger class=\"hover:text-foreground inline-flex items-center leading-none transition-colors\">\n <BreadcrumbEllipsis />\n <span class=\"sr-only\">{labels.breadcrumbMenu}</span>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n <DropdownMenuGroup>\n {breadcrumb.menu.map((item) => (\n <DropdownMenuItem href={item.href}>\n {item.label}\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n </BreadcrumbItem>\n </>\n )}\n </BreadcrumbList>\n </Breadcrumb>\n </HeaderGroup>\n <HeaderGroup class=\"shrink-0\">\n <Button\n as=\"a\"\n href={`https://github.com/${githubRepo}`}\n size=\"sm\"\n variant=\"ghost\"\n >\n <Icon name=\"github\" />\n <span class=\"sr-only\">{labels.github}</span>\n <span class=\"hidden sm:inline\">{githubStarsLabel}</span>\n </Button>\n <ThemeToggle aria-label={labels.theme} />\n </HeaderGroup>\n </HeaderContainer>\n </Header>\n <slot />\n </SidebarInset>\n</SidebarProvider>\n\n<script>\n const isMac = /Mac|iPhone|iPad|iPod/i.test(\n navigator.platform || navigator.userAgent\n )\n\n document\n .querySelectorAll<HTMLElement>(\"[data-search-shortcut]\")\n .forEach((shortcut) => {\n shortcut.textContent =\n (isMac\n ? shortcut.dataset.shortcutMac\n : shortcut.dataset.shortcutOther) ?? null\n })\n\n document.addEventListener(\"keydown\", (event) => {\n if (event.key.toLowerCase() !== \"k\") return\n if (event.shiftKey || event.altKey) return\n\n const dialog = document.querySelector(\"[data-search-dialog]\")\n const isSearchShortcut = isMac\n ? event.metaKey && !event.ctrlKey\n : event.ctrlKey && !event.metaKey\n\n if (!dialog || dialog.hasAttribute(\"data-open\") || !isSearchShortcut) return\n\n event.preventDefault()\n dialog.dispatchEvent(\n new CustomEvent(\"dialog:set\", { detail: { open: true } })\n )\n })\n</script>\n",
|
|
27
|
-
"type": "registry:block"
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"docs": "https://ui.full.dev/blocks/sidebar/",
|
|
31
|
-
"categories": [
|
|
32
|
-
"sidebar"
|
|
33
|
-
],
|
|
34
|
-
"type": "registry:block"
|
|
35
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "sidebar-examples",
|
|
4
|
-
"title": "Sidebar examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Sidebar docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/avatar",
|
|
11
|
-
"@fulldev/collapsible",
|
|
12
|
-
"@fulldev/dropdown-menu",
|
|
13
|
-
"@fulldev/sidebar"
|
|
14
|
-
],
|
|
15
|
-
"files": [
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/examples/sidebar/sidebar-demo.astro",
|
|
18
|
-
"content": "---\nimport AudioWaveform from \"@lucide/astro/icons/audio-waveform\"\nimport BadgeCheck from \"@lucide/astro/icons/badge-check\"\nimport Bell from \"@lucide/astro/icons/bell\"\nimport BookOpen from \"@lucide/astro/icons/book-open\"\nimport Bot from \"@lucide/astro/icons/bot\"\nimport PieChart from \"@lucide/astro/icons/chart-pie\"\nimport ChevronRight from \"@lucide/astro/icons/chevron-right\"\nimport ChevronsUpDown from \"@lucide/astro/icons/chevrons-up-down\"\nimport Command from \"@lucide/astro/icons/command\"\nimport CreditCard from \"@lucide/astro/icons/credit-card\"\nimport MoreHorizontal from \"@lucide/astro/icons/ellipsis\"\nimport Folder from \"@lucide/astro/icons/folder\"\nimport Forward from \"@lucide/astro/icons/forward\"\nimport Frame from \"@lucide/astro/icons/frame\"\nimport GalleryVerticalEnd from \"@lucide/astro/icons/gallery-vertical-end\"\nimport LogOut from \"@lucide/astro/icons/log-out\"\nimport MapIcon from \"@lucide/astro/icons/map\"\nimport Plus from \"@lucide/astro/icons/plus\"\nimport Settings2 from \"@lucide/astro/icons/settings-2\"\nimport Sparkles from \"@lucide/astro/icons/sparkles\"\nimport SquareTerminal from \"@lucide/astro/icons/square-terminal\"\nimport Trash2 from \"@lucide/astro/icons/trash\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Collapsible, CollapsibleContent } from \"@/components/ui/collapsible\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n} from \"@/components/ui/dropdown-menu\"\nimport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarTrigger,\n} from \"@/components/ui/sidebar\"\n\n// This is sample data.\nconst data = {\n user: {\n name: \"shadcn\",\n email: \"m@example.com\",\n avatar: \"https://ui.shadcn.com/avatars/shadcn.jpg\",\n },\n teams: [\n {\n name: \"Acme Inc\",\n logo: GalleryVerticalEnd,\n plan: \"Enterprise\",\n },\n {\n name: \"Acme Corp.\",\n logo: AudioWaveform,\n plan: \"Startup\",\n },\n {\n name: \"Evil Corp.\",\n logo: Command,\n plan: \"Free\",\n },\n ],\n navMain: [\n {\n title: \"Playground\",\n url: \"#\",\n icon: SquareTerminal,\n isActive: true,\n items: [\n {\n title: \"History\",\n url: \"#\",\n },\n {\n title: \"Starred\",\n url: \"#\",\n },\n {\n title: \"Settings\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Models\",\n url: \"#\",\n icon: Bot,\n items: [\n {\n title: \"Genesis\",\n url: \"#\",\n },\n {\n title: \"Explorer\",\n url: \"#\",\n },\n {\n title: \"Quantum\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Documentation\",\n url: \"#\",\n icon: BookOpen,\n items: [\n {\n title: \"Introduction\",\n url: \"#\",\n },\n {\n title: \"Get Started\",\n url: \"#\",\n },\n {\n title: \"Tutorials\",\n url: \"#\",\n },\n {\n title: \"Changelog\",\n url: \"#\",\n },\n ],\n },\n {\n title: \"Settings\",\n url: \"#\",\n icon: Settings2,\n items: [\n {\n title: \"General\",\n url: \"#\",\n },\n {\n title: \"Team\",\n url: \"#\",\n },\n {\n title: \"Billing\",\n url: \"#\",\n },\n {\n title: \"Limits\",\n url: \"#\",\n },\n ],\n },\n ],\n projects: [\n {\n name: \"Design Engineering\",\n url: \"#\",\n icon: Frame,\n },\n {\n name: \"Sales & Marketing\",\n url: \"#\",\n icon: PieChart,\n },\n {\n name: \"Travel\",\n url: \"#\",\n icon: MapIcon,\n },\n ],\n}\n\nconst [activeTeam] = data.teams\n---\n\n<SidebarProvider>\n <Sidebar collapsible=\"icon\">\n <SidebarHeader>\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu data-team-switcher>\n <SidebarMenuButton\n data-slot=\"dropdown-menu-trigger\"\n size=\"lg\"\n class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <span class=\"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground\">\n {data.teams.map((team) => (\n <team.logo\n class={team === activeTeam ? \"size-4\" : \"hidden size-4\"}\n data-team-logo={team.name}\n />\n ))}\n </span>\n <span class=\"grid flex-1 text-left text-sm leading-tight\">\n <span class=\"truncate font-medium\" data-team-name>\n {activeTeam.name}\n </span>\n <span class=\"truncate text-xs\" data-team-plan>\n {activeTeam.plan}\n </span>\n </span>\n <ChevronsUpDown class=\"ml-auto\" />\n </SidebarMenuButton>\n <DropdownMenuContent\n class=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n align=\"start\"\n side=\"right\"\n sideOffset={4}\n >\n <DropdownMenuGroup>\n <DropdownMenuLabel class=\"text-xs text-muted-foreground\">\n Teams\n </DropdownMenuLabel>\n {data.teams.map((team, index) => (\n <DropdownMenuItem\n as=\"div\"\n class=\"gap-2 p-2\"\n data-team={team.name}\n data-plan={team.plan}\n >\n <span class=\"flex size-6 items-center justify-center rounded-md border\">\n <team.logo class=\"size-3.5 shrink-0\" />\n </span>\n {team.name}\n <DropdownMenuShortcut>⌘{index + 1}</DropdownMenuShortcut>\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem as=\"div\" class=\"gap-2 p-2\">\n <span class=\"flex size-6 items-center justify-center rounded-md border bg-transparent\">\n <Plus class=\"size-4\" />\n </span>\n <span class=\"font-medium text-muted-foreground\">\n Add team\n </span>\n </DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarHeader>\n <SidebarContent>\n <SidebarGroup>\n <SidebarGroupLabel>Platform</SidebarGroupLabel>\n <SidebarMenu>\n {data.navMain.map((item) => (\n <Collapsible\n as=\"li\"\n defaultOpen={item.isActive}\n data-sidebar=\"menu-item\"\n class=\"group/collapsible group/menu-item relative\"\n >\n <SidebarMenuButton data-slot=\"collapsible-trigger\">\n {item.icon && <item.icon />}\n <span>{item.title}</span>\n <ChevronRight class=\"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90\" />\n </SidebarMenuButton>\n <CollapsibleContent>\n <SidebarMenuSub>\n {item.items?.map((subItem) => (\n <SidebarMenuSubItem>\n <SidebarMenuSubButton href={subItem.url}>\n <span>{subItem.title}</span>\n </SidebarMenuSubButton>\n </SidebarMenuSubItem>\n ))}\n </SidebarMenuSub>\n </CollapsibleContent>\n </Collapsible>\n ))}\n </SidebarMenu>\n </SidebarGroup>\n <SidebarGroup class=\"group-data-[collapsible=icon]:hidden\">\n <SidebarGroupLabel>Projects</SidebarGroupLabel>\n <SidebarMenu>\n {data.projects.map((item) => (\n <SidebarMenuItem>\n <DropdownMenu class=\"contents\">\n <SidebarMenuButton href={item.url}>\n <item.icon />\n <span>{item.name}</span>\n </SidebarMenuButton>\n <SidebarMenuAction\n showOnHover\n data-slot=\"dropdown-menu-trigger\"\n >\n <MoreHorizontal />\n <span class=\"sr-only\">More</span>\n </SidebarMenuAction>\n <DropdownMenuContent\n class=\"w-48 rounded-lg\"\n side=\"right\"\n align=\"start\"\n >\n <DropdownMenuItem>\n <Folder class=\"text-muted-foreground\" />\n <span>View Project</span>\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Forward class=\"text-muted-foreground\" />\n <span>Share Project</span>\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem>\n <Trash2 class=\"text-muted-foreground\" />\n <span>Delete Project</span>\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n ))}\n <SidebarMenuItem>\n <SidebarMenuButton class=\"text-sidebar-foreground/70\">\n <MoreHorizontal class=\"text-sidebar-foreground/70\" />\n <span>More</span>\n </SidebarMenuButton>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarGroup>\n </SidebarContent>\n <SidebarFooter>\n <SidebarMenu>\n <SidebarMenuItem>\n <DropdownMenu>\n <SidebarMenuButton\n data-slot=\"dropdown-menu-trigger\"\n size=\"lg\"\n class=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\n >\n <Avatar class=\"h-8 w-8 rounded-lg\">\n <AvatarImage src={data.user.avatar} alt={data.user.name} />\n <AvatarFallback class=\"rounded-lg\">CN</AvatarFallback>\n </Avatar>\n <span class=\"grid flex-1 text-left text-sm leading-tight\">\n <span class=\"truncate font-medium\">{data.user.name}</span>\n <span class=\"truncate text-xs\">{data.user.email}</span>\n </span>\n <ChevronsUpDown class=\"ml-auto size-4\" />\n </SidebarMenuButton>\n <DropdownMenuContent\n class=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n side=\"right\"\n align=\"end\"\n sideOffset={4}\n >\n <DropdownMenuGroup>\n <DropdownMenuLabel class=\"p-0 font-normal\">\n <div class=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n <Avatar class=\"h-8 w-8 rounded-lg\">\n <AvatarImage\n src={data.user.avatar}\n alt={data.user.name}\n />\n <AvatarFallback class=\"rounded-lg\">CN</AvatarFallback>\n </Avatar>\n <span class=\"grid flex-1 text-left text-sm leading-tight\">\n <span class=\"truncate font-medium\">{data.user.name}</span>\n <span class=\"truncate text-xs\">{data.user.email}</span>\n </span>\n </div>\n </DropdownMenuLabel>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <Sparkles />\n Upgrade to Pro\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <BadgeCheck />\n Account\n </DropdownMenuItem>\n <DropdownMenuItem>\n <CreditCard />\n Billing\n </DropdownMenuItem>\n <DropdownMenuItem>\n <Bell />\n Notifications\n </DropdownMenuItem>\n </DropdownMenuGroup>\n <DropdownMenuSeparator />\n <DropdownMenuGroup>\n <DropdownMenuItem>\n <LogOut />\n Log out\n </DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n </SidebarMenuItem>\n </SidebarMenu>\n </SidebarFooter>\n <SidebarRail />\n </Sidebar>\n <SidebarInset>\n <header class=\"flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12\">\n <div class=\"flex items-center gap-2 px-4\">\n <SidebarTrigger class=\"-ml-1\" />\n </div>\n </header>\n </SidebarInset>\n</SidebarProvider>\n\n<script>\n // The selected team shows in the switcher, as the React state does.\n const initialize = () => {\n for (const root of document.querySelectorAll<HTMLElement>(\n \"[data-team-switcher]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n root.addEventListener(\"dropdown-menu:select\", (event) => {\n const { item } = (event as CustomEvent<{ item: HTMLElement }>).detail\n const team = item.closest<HTMLElement>(\"[data-team]\")\n if (!team) return\n for (const logo of root.querySelectorAll(\"[data-team-logo]\"))\n logo.classList.toggle(\n \"hidden\",\n logo.getAttribute(\"data-team-logo\") !== team.dataset.team\n )\n root.querySelector(\"[data-team-name]\")!.textContent = team.dataset.team!\n root.querySelector(\"[data-team-plan]\")!.textContent = team.dataset.plan!\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
|
|
19
|
-
"type": "registry:component"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"docs": "https://ui.full.dev/components/sidebar/",
|
|
23
|
-
"type": "registry:example"
|
|
24
|
-
}
|