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
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "item-examples",
|
|
4
|
-
"title": "Item examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Item docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/avatar",
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/dropdown-menu",
|
|
13
|
-
"@fulldev/item"
|
|
14
|
-
],
|
|
15
|
-
"files": [
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/examples/item/item-avatar.astro",
|
|
18
|
-
"content": "---\nimport Plus from \"@lucide/astro/icons/plus\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-lg flex-col gap-6\">\n <Item variant=\"outline\">\n <ItemMedia>\n <Avatar class=\"size-10\">\n <AvatarImage src=\"https://github.com/evilrabbit.png\" />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Evil Rabbit</ItemTitle>\n <ItemDescription>Last seen 5 months ago</ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button\n size=\"icon-sm\"\n variant=\"outline\"\n class=\"rounded-full\"\n aria-label=\"Invite\"\n >\n <Plus />\n </Button>\n </ItemActions>\n </Item>\n <Item variant=\"outline\">\n <ItemMedia>\n <div class=\"flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background *:data-[slot=avatar]:grayscale\">\n <Avatar class=\"hidden sm:flex\">\n <AvatarImage src=\"https://github.com/shadcn.png\" alt=\"@shadcn\" />\n <AvatarFallback>CN</AvatarFallback>\n </Avatar>\n <Avatar class=\"hidden sm:flex\">\n <AvatarImage\n src=\"https://github.com/maxleiter.png\"\n alt=\"@maxleiter\"\n />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n <Avatar>\n <AvatarImage\n src=\"https://github.com/evilrabbit.png\"\n alt=\"@evilrabbit\"\n />\n <AvatarFallback>ER</AvatarFallback>\n </Avatar>\n </div>\n </ItemMedia>\n <ItemContent>\n <ItemTitle>No Team Members</ItemTitle>\n <ItemDescription>\n Invite your team to collaborate on this project.\n </ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button size=\"sm\" variant=\"outline\">\n Invite\n </Button>\n </ItemActions>\n </Item>\n</div>\n",
|
|
19
|
-
"type": "registry:component"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/examples/item/item-demo.astro",
|
|
23
|
-
"content": "---\nimport BadgeCheckIcon from \"@lucide/astro/icons/badge-check\"\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-6\">\n <Item variant=\"outline\">\n <ItemContent>\n <ItemTitle>Basic Item</ItemTitle>\n <ItemDescription>\n A simple item with title and description.\n </ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button variant=\"outline\" size=\"sm\">\n Action\n </Button>\n </ItemActions>\n </Item>\n <Item variant=\"outline\" size=\"sm\" href=\"#\">\n <ItemMedia>\n <BadgeCheckIcon class=\"size-5\" />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Your profile has been verified.</ItemTitle>\n </ItemContent>\n <ItemActions>\n <ChevronRightIcon class=\"size-4\" />\n </ItemActions>\n </Item>\n</div>\n",
|
|
24
|
-
"type": "registry:component"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/components/examples/item/item-dropdown.astro",
|
|
28
|
-
"content": "---\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport {\n Item,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n\nconst people = [\n {\n username: \"shadcn\",\n avatar: \"https://github.com/shadcn.png\",\n email: \"shadcn@vercel.com\",\n },\n {\n username: \"maxleiter\",\n avatar: \"https://github.com/maxleiter.png\",\n email: \"maxleiter@vercel.com\",\n },\n {\n username: \"evilrabbit\",\n avatar: \"https://github.com/evilrabbit.png\",\n email: \"evilrabbit@vercel.com\",\n },\n]\n---\n\n<DropdownMenu>\n <DropdownMenuTrigger class={buttonVariants({ variant: \"outline\" })}>\n Select <ChevronDownIcon />\n </DropdownMenuTrigger>\n <DropdownMenuContent class=\"w-48\" align=\"end\">\n <DropdownMenuGroup>\n {people.map((person) => (\n <DropdownMenuItem as=\"div\">\n <Item size=\"xs\" class=\"w-full p-2\">\n <ItemMedia>\n <Avatar class=\"size-[--spacing(6.5)]\">\n <AvatarImage src={person.avatar} class=\"grayscale\" />\n <AvatarFallback>{person.username.charAt(0)}</AvatarFallback>\n </Avatar>\n </ItemMedia>\n <ItemContent class=\"gap-0\">\n <ItemTitle>{person.username}</ItemTitle>\n <ItemDescription class=\"leading-none\">\n {person.email}\n </ItemDescription>\n </ItemContent>\n </Item>\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n </DropdownMenuContent>\n</DropdownMenu>\n",
|
|
29
|
-
"type": "registry:component"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"path": "src/components/examples/item/item-group.astro",
|
|
33
|
-
"content": "---\nimport PlusIcon from \"@lucide/astro/icons/plus\"\n\nimport { Avatar, AvatarFallback, AvatarImage } from \"@/components/ui/avatar\"\nimport { Button } from \"@/components/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n\nconst people = [\n {\n username: \"shadcn\",\n avatar: \"https://github.com/shadcn.png\",\n email: \"shadcn@vercel.com\",\n },\n {\n username: \"maxleiter\",\n avatar: \"https://github.com/maxleiter.png\",\n email: \"maxleiter@vercel.com\",\n },\n {\n username: \"evilrabbit\",\n avatar: \"https://github.com/evilrabbit.png\",\n email: \"evilrabbit@vercel.com\",\n },\n]\n---\n\n<ItemGroup class=\"max-w-sm\">\n {people.map((person) => (\n <Item variant=\"outline\">\n <ItemMedia>\n <Avatar>\n <AvatarImage src={person.avatar} class=\"grayscale\" />\n <AvatarFallback>{person.username.charAt(0)}</AvatarFallback>\n </Avatar>\n </ItemMedia>\n <ItemContent class=\"gap-1\">\n <ItemTitle>{person.username}</ItemTitle>\n <ItemDescription>{person.email}</ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button variant=\"ghost\" size=\"icon\" class=\"rounded-full\">\n <PlusIcon />\n </Button>\n </ItemActions>\n </Item>\n ))}\n</ItemGroup>\n",
|
|
34
|
-
"type": "registry:component"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "src/components/examples/item/item-header.astro",
|
|
38
|
-
"content": "---\nimport {\n Item,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemHeader,\n ItemTitle,\n} from \"@/components/ui/item\"\n\nconst models = [\n {\n name: \"v0-1.5-sm\",\n description: \"Everyday tasks and UI generation.\",\n image:\n \"https://images.unsplash.com/photo-1650804068570-7fb2e3dbf888?q=80&w=640&auto=format&fit=crop\",\n credit: \"Valeria Reverdo on Unsplash\",\n },\n {\n name: \"v0-1.5-lg\",\n description: \"Advanced thinking or reasoning.\",\n image:\n \"https://images.unsplash.com/photo-1610280777472-54133d004c8c?q=80&w=640&auto=format&fit=crop\",\n credit: \"Michael Oeser on Unsplash\",\n },\n {\n name: \"v0-2.0-mini\",\n description: \"Open Source model for everyone.\",\n image:\n \"https://images.unsplash.com/photo-1602146057681-08560aee8cde?q=80&w=640&auto=format&fit=crop\",\n credit: \"Cherry Laithang on Unsplash\",\n },\n]\n---\n\n<div class=\"flex w-full max-w-xl flex-col gap-6\">\n <ItemGroup class=\"grid grid-cols-3 gap-4\">\n {models.map((model) => (\n <Item variant=\"outline\">\n <ItemHeader>\n <img\n src={model.image}\n alt={model.name}\n width={128}\n height={128}\n class=\"aspect-square w-full rounded-sm object-cover\"\n />\n </ItemHeader>\n <ItemContent>\n <ItemTitle>{model.name}</ItemTitle>\n <ItemDescription>{model.description}</ItemDescription>\n </ItemContent>\n </Item>\n ))}\n </ItemGroup>\n</div>\n",
|
|
39
|
-
"type": "registry:component"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"path": "src/components/examples/item/item-icon.astro",
|
|
43
|
-
"content": "---\nimport ShieldAlertIcon from \"@lucide/astro/icons/shield-alert\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-lg flex-col gap-6\">\n <Item variant=\"outline\">\n <ItemMedia variant=\"icon\">\n <ShieldAlertIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Security Alert</ItemTitle>\n <ItemDescription>New login detected from unknown device.</ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button size=\"sm\" variant=\"outline\">\n Review\n </Button>\n </ItemActions>\n </Item>\n</div>\n",
|
|
44
|
-
"type": "registry:component"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"path": "src/components/examples/item/item-image.astro",
|
|
48
|
-
"content": "---\nimport {\n Item,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n\nconst music = [\n {\n title: \"Midnight City Lights\",\n artist: \"Neon Dreams\",\n album: \"Electric Nights\",\n duration: \"3:45\",\n },\n {\n title: \"Coffee Shop Conversations\",\n artist: \"The Morning Brew\",\n album: \"Urban Stories\",\n duration: \"4:05\",\n },\n {\n title: \"Digital Rain\",\n artist: \"Cyber Symphony\",\n album: \"Binary Beats\",\n duration: \"3:30\",\n },\n]\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-6\">\n <ItemGroup class=\"gap-4\">\n {music.map((song) => (\n <Item variant=\"outline\" href=\"#\" role=\"listitem\">\n <ItemMedia variant=\"image\">\n <img\n src={`https://avatar.vercel.sh/${song.title}`}\n alt={song.title}\n width={32}\n height={32}\n class=\"object-cover grayscale\"\n />\n </ItemMedia>\n <ItemContent>\n <ItemTitle class=\"line-clamp-1\">\n {song.title} -{\" \"}\n <span class=\"text-muted-foreground\">{song.album}</span>\n </ItemTitle>\n <ItemDescription>{song.artist}</ItemDescription>\n </ItemContent>\n <ItemContent class=\"flex-none text-center\">\n <ItemDescription>{song.duration}</ItemDescription>\n </ItemContent>\n </Item>\n ))}\n </ItemGroup>\n</div>\n",
|
|
49
|
-
"type": "registry:component"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"path": "src/components/examples/item/item-link.astro",
|
|
53
|
-
"content": "---\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\nimport ExternalLinkIcon from \"@lucide/astro/icons/external-link\"\n\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-4\">\n <Item href=\"#\">\n <ItemContent>\n <ItemTitle>Visit our documentation</ItemTitle>\n <ItemDescription>\n Learn how to get started with our components.\n </ItemDescription>\n </ItemContent>\n <ItemActions>\n <ChevronRightIcon class=\"size-4\" />\n </ItemActions>\n </Item>\n <Item variant=\"outline\" href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">\n <ItemContent>\n <ItemTitle>External resource</ItemTitle>\n <ItemDescription>\n Opens in a new tab with security attributes.\n </ItemDescription>\n </ItemContent>\n <ItemActions>\n <ExternalLinkIcon class=\"size-4\" />\n </ItemActions>\n </Item>\n</div>\n",
|
|
54
|
-
"type": "registry:component"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "src/components/examples/item/item-rtl.astro",
|
|
58
|
-
"content": "---\nimport BadgeCheckIcon from \"@lucide/astro/icons/badge-check\"\nimport ChevronRightIcon from \"@lucide/astro/icons/chevron-right\"\n\nimport { Button } from \"@/components/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n basicItem: \"Basic Item\",\n basicItemDesc: \"A simple item with title and description.\",\n action: \"Action\",\n verifiedTitle: \"Your profile has been verified.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n basicItem: \"عنصر أساسي\",\n basicItemDesc: \"عنصر بسيط يحتوي على عنوان ووصف.\",\n action: \"إجراء\",\n verifiedTitle: \"تم التحقق من ملفك الشخصي.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n basicItem: \"פריט בסיסי\",\n basicItemDesc: \"פריט פשוט עם כותרת ותיאור.\",\n action: \"פעולה\",\n verifiedTitle: \"הפרופיל שלך אומת.\",\n },\n },\n} as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-6\" dir={dir}>\n <Item variant=\"outline\" dir={dir}>\n <ItemContent>\n <ItemTitle>{t.basicItem}</ItemTitle>\n <ItemDescription>{t.basicItemDesc}</ItemDescription>\n </ItemContent>\n <ItemActions>\n <Button variant=\"outline\" size=\"sm\">\n {t.action}\n </Button>\n </ItemActions>\n </Item>\n <Item variant=\"outline\" size=\"sm\" href=\"#\" dir={dir}>\n <ItemMedia>\n <BadgeCheckIcon class=\"size-5\" />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>{t.verifiedTitle}</ItemTitle>\n </ItemContent>\n <ItemActions>\n <ChevronRightIcon class=\"size-4\" />\n </ItemActions>\n </Item>\n</div>\n",
|
|
59
|
-
"type": "registry:component"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"path": "src/components/examples/item/item-size.astro",
|
|
63
|
-
"content": "---\nimport InboxIcon from \"@lucide/astro/icons/inbox\"\n\nimport {\n Item,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-6\">\n <Item variant=\"outline\">\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Default Size</ItemTitle>\n <ItemDescription>The standard size for most use cases.</ItemDescription>\n </ItemContent>\n </Item>\n <Item variant=\"outline\" size=\"sm\">\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Small Size</ItemTitle>\n <ItemDescription>A compact size for dense layouts.</ItemDescription>\n </ItemContent>\n </Item>\n <Item variant=\"outline\" size=\"xs\">\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Extra Small Size</ItemTitle>\n <ItemDescription>The most compact size available.</ItemDescription>\n </ItemContent>\n </Item>\n</div>\n",
|
|
64
|
-
"type": "registry:component"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"path": "src/components/examples/item/item-variant.astro",
|
|
68
|
-
"content": "---\nimport InboxIcon from \"@lucide/astro/icons/inbox\"\n\nimport {\n Item,\n ItemContent,\n ItemDescription,\n ItemMedia,\n ItemTitle,\n} from \"@/components/ui/item\"\n---\n\n<div class=\"flex w-full max-w-md flex-col gap-6\">\n <Item>\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Default Variant</ItemTitle>\n <ItemDescription>Transparent background with no border.</ItemDescription>\n </ItemContent>\n </Item>\n <Item variant=\"outline\">\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Outline Variant</ItemTitle>\n <ItemDescription>Outlined style with a visible border.</ItemDescription>\n </ItemContent>\n </Item>\n <Item variant=\"muted\">\n <ItemMedia variant=\"icon\">\n <InboxIcon />\n </ItemMedia>\n <ItemContent>\n <ItemTitle>Muted Variant</ItemTitle>\n <ItemDescription>Muted background for secondary content.</ItemDescription>\n </ItemContent>\n </Item>\n</div>\n",
|
|
69
|
-
"type": "registry:component"
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"docs": "https://ui.full.dev/components/item/",
|
|
73
|
-
"type": "registry:example"
|
|
74
|
-
}
|
package/public/r/item.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "item",
|
|
4
|
-
"title": "Item",
|
|
5
|
-
"description": "A flexible container for displaying content items with various styles.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/separator"
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{
|
|
11
|
-
"path": "src/components/ui/item/item.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = VariantProps<typeof variants> &\n HTMLAttributes<\"div\"> &\n HTMLAttributes<\"a\">\n\nconst variants = cva(\n \"[a]:hover:bg-muted rounded-md border text-sm group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors\",\n {\n variants: {\n variant: {\n default: \"border-transparent\",\n outline: \"border-border\",\n muted: \"bg-muted/50 border-transparent\",\n },\n size: {\n default: \"gap-3.5 px-4 py-3.5\",\n sm: \"gap-2.5 px-3 py-2.5\",\n xs: \"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nconst {\n class: className,\n variant = \"default\",\n size = \"default\",\n href,\n ...props\n} = Astro.props\n\nconst Comp = href != null ? \"a\" : \"div\"\n---\n\n<Comp\n data-slot=\"item\"\n data-variant={variant}\n data-size={size}\n class={cn(variants({ variant, size }), className)}\n href={href}\n {...props}\n>\n <slot />\n</Comp>\n",
|
|
13
|
-
"type": "registry:ui"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/ui/item/item-actions.astro",
|
|
17
|
-
"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=\"item-actions\"\n class={cn(\"gap-2 flex items-center\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
18
|
-
"type": "registry:ui"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/ui/item/item-content.astro",
|
|
22
|
-
"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=\"item-content\"\n class={cn(\n \"gap-1 group-data-[size=xs]/item:gap-0 flex flex-1 flex-col\",\n \"[&+[data-slot=item-content]]:flex-none\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
23
|
-
"type": "registry:ui"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/ui/item/item-description.astro",
|
|
27
|
-
"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=\"item-description\"\n class={cn(\n \"text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs [&>a:hover]:text-primary line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4\",\n className\n )}\n {...props}\n>\n <slot />\n</p>\n",
|
|
28
|
-
"type": "registry:ui"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/components/ui/item/item-footer.astro",
|
|
32
|
-
"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=\"item-footer\"\n class={cn(\n \"gap-2 flex basis-full items-center justify-between\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
33
|
-
"type": "registry:ui"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "src/components/ui/item/item-group.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 role=\"list\"\n data-slot=\"item-group\"\n class={cn(\"gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2 group/item-group flex w-full flex-col\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
38
|
-
"type": "registry:ui"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "src/components/ui/item/item-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=\"item-header\"\n class={cn(\n \"gap-2 flex basis-full items-center justify-between\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
43
|
-
"type": "registry:ui"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"path": "src/components/ui/item/item-media.astro",
|
|
47
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst variants = cva(\n \"gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start flex shrink-0 items-center justify-center [&_svg]:pointer-events-none\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n icon: \"[&_svg:not([class*='size-'])]:size-4\",\n image: \"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\ntype Props = HTMLAttributes<\"div\"> & VariantProps<typeof variants>\n\nconst { class: className, variant = \"default\", ...props } = Astro.props\n---\n\n<div\n data-slot=\"item-media\"\n data-variant={variant}\n class={cn(variants({ variant }), className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
48
|
-
"type": "registry:ui"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "src/components/ui/item/item-separator.astro",
|
|
52
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Separator } from \"@/components/ui/separator\"\n\ntype Props = ComponentProps<typeof Separator>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Separator\n data-slot=\"item-separator\"\n orientation=\"horizontal\"\n class={cn(\"my-2\", className)}\n {...props}\n/>\n",
|
|
53
|
-
"type": "registry:ui"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"path": "src/components/ui/item/item-title.astro",
|
|
57
|
-
"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=\"item-title\"\n class={cn(\"gap-2 text-sm leading-snug font-medium underline-offset-4 line-clamp-1 flex w-fit items-center\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
58
|
-
"type": "registry:ui"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"path": "src/components/ui/item/index.ts",
|
|
62
|
-
"content": "export { default as Item } from \"./item.astro\"\nexport { default as ItemActions } from \"./item-actions.astro\"\nexport { default as ItemContent } from \"./item-content.astro\"\nexport { default as ItemDescription } from \"./item-description.astro\"\nexport { default as ItemFooter } from \"./item-footer.astro\"\nexport { default as ItemGroup } from \"./item-group.astro\"\nexport { default as ItemHeader } from \"./item-header.astro\"\nexport { default as ItemMedia } from \"./item-media.astro\"\nexport { default as ItemSeparator } from \"./item-separator.astro\"\nexport { default as ItemTitle } from \"./item-title.astro\"\n",
|
|
63
|
-
"type": "registry:ui"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"docs": "https://ui.full.dev/components/item/",
|
|
67
|
-
"categories": [
|
|
68
|
-
"ui"
|
|
69
|
-
],
|
|
70
|
-
"type": "registry:ui"
|
|
71
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "kbd-examples",
|
|
4
|
-
"title": "Kbd examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Kbd docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/button",
|
|
11
|
-
"@fulldev/button-group",
|
|
12
|
-
"@fulldev/input-group",
|
|
13
|
-
"@fulldev/kbd",
|
|
14
|
-
"@fulldev/tooltip"
|
|
15
|
-
],
|
|
16
|
-
"files": [
|
|
17
|
-
{
|
|
18
|
-
"path": "src/components/examples/kbd/kbd-button.astro",
|
|
19
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Kbd } from \"@/components/ui/kbd\"\n---\n\n<Button variant=\"outline\">\n Accept\n <Kbd data-icon=\"inline-end\" class=\"translate-x-0.5\">\n ⏎\n </Kbd>\n</Button>\n",
|
|
20
|
-
"type": "registry:component"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "src/components/examples/kbd/kbd-demo.astro",
|
|
24
|
-
"content": "---\nimport { Kbd, KbdGroup } from \"@/components/ui/kbd\"\n---\n\n<div class=\"flex flex-col items-center gap-4\">\n <KbdGroup>\n <Kbd>⌘</Kbd>\n <Kbd>⇧</Kbd>\n <Kbd>⌥</Kbd>\n <Kbd>⌃</Kbd>\n </KbdGroup>\n <KbdGroup>\n <Kbd>Ctrl</Kbd>\n <span>+</span>\n <Kbd>B</Kbd>\n </KbdGroup>\n</div>\n",
|
|
25
|
-
"type": "registry:component"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"path": "src/components/examples/kbd/kbd-group.astro",
|
|
29
|
-
"content": "---\nimport { Kbd, KbdGroup } from \"@/components/ui/kbd\"\n---\n\n<div class=\"flex flex-col items-center gap-4\">\n <div class=\"text-sm text-muted-foreground\">\n Use\n <KbdGroup>\n <Kbd>Ctrl + B</Kbd>\n <Kbd>Ctrl + K</Kbd>\n </KbdGroup>\n to open the command palette\n </div>\n</div>\n",
|
|
30
|
-
"type": "registry:component"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "src/components/examples/kbd/kbd-input-group.astro",
|
|
34
|
-
"content": "---\nimport SearchIcon from \"@lucide/astro/icons/search\"\n\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\nimport { Kbd } from \"@/components/ui/kbd\"\n---\n\n<div class=\"flex w-full max-w-xs flex-col gap-6\">\n <InputGroup>\n <InputGroupInput placeholder=\"Search...\" />\n <InputGroupAddon>\n <SearchIcon />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <Kbd>⌘</Kbd>\n <Kbd>K</Kbd>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
35
|
-
"type": "registry:component"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"path": "src/components/examples/kbd/kbd-rtl.astro",
|
|
39
|
-
"content": "---\nimport { Kbd, KbdGroup } from \"@/components/ui/kbd\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {},\n },\n ar: {\n dir: \"rtl\",\n values: {},\n },\n he: {\n dir: \"rtl\",\n values: {},\n },\n} as const\n\nconst { dir } = translations.ar\n---\n\n<div class=\"flex flex-col items-center gap-4\" dir={dir}>\n <KbdGroup>\n <Kbd>⌘</Kbd>\n <Kbd>⇧</Kbd>\n <Kbd>⌥</Kbd>\n <Kbd>⌃</Kbd>\n </KbdGroup>\n <KbdGroup>\n <Kbd>Ctrl</Kbd>\n <span>+</span>\n <Kbd>B</Kbd>\n </KbdGroup>\n</div>\n",
|
|
40
|
-
"type": "registry:component"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"path": "src/components/examples/kbd/kbd-tooltip.astro",
|
|
44
|
-
"content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport { ButtonGroup } from \"@/components/ui/button-group\"\nimport { Kbd, KbdGroup } from \"@/components/ui/kbd\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/components/ui/tooltip\"\n---\n\n<div class=\"flex flex-wrap gap-4\">\n <ButtonGroup>\n <Tooltip>\n <TooltipTrigger\n class={buttonVariants({ variant: \"outline\", class: \"rounded-r-none\" })}\n >\n Save\n </TooltipTrigger>\n <TooltipContent>\n Save Changes <Kbd>S</Kbd>\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger\n class={buttonVariants({\n variant: \"outline\",\n class: \"rounded-l-none border-l-0\",\n })}\n >\n Print\n </TooltipTrigger>\n <TooltipContent>\n Print Document\n <KbdGroup>\n <Kbd>Ctrl</Kbd>\n <Kbd>P</Kbd>\n </KbdGroup>\n </TooltipContent>\n </Tooltip>\n </ButtonGroup>\n</div>\n",
|
|
45
|
-
"type": "registry:component"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"docs": "https://ui.full.dev/components/kbd/",
|
|
49
|
-
"type": "registry:example"
|
|
50
|
-
}
|
package/public/r/kbd.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "kbd",
|
|
4
|
-
"title": "Kbd",
|
|
5
|
-
"description": "Used to display textual user input from keyboard.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/kbd/kbd.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"kbd\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<kbd\n data-slot=\"kbd\"\n class={cn(\n \"bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none\",\n className\n )}\n {...props}\n>\n <slot />\n</kbd>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/kbd/kbd-group.astro",
|
|
14
|
-
"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=\"kbd-group\"\n class={cn(\"gap-1 inline-flex items-center\", className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/components/ui/kbd/index.ts",
|
|
19
|
-
"content": "export { default as Kbd } from \"./kbd.astro\"\nexport { default as KbdGroup } from \"./kbd-group.astro\"\n",
|
|
20
|
-
"type": "registry:ui"
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"docs": "https://ui.full.dev/components/kbd/",
|
|
24
|
-
"categories": [
|
|
25
|
-
"ui"
|
|
26
|
-
],
|
|
27
|
-
"type": "registry:ui"
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "label-examples",
|
|
4
|
-
"title": "Label examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Label docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/checkbox",
|
|
8
|
-
"@fulldev/label"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/examples/label/label-demo.astro",
|
|
13
|
-
"content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Label } from \"@/components/ui/label\"\n---\n\n<div class=\"flex gap-2\">\n <Checkbox id=\"terms\" />\n <Label for=\"terms\">Accept terms and conditions</Label>\n</div>\n",
|
|
14
|
-
"type": "registry:component"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/examples/label/label-rtl.astro",
|
|
18
|
-
"content": "---\nimport { Checkbox } from \"@/components/ui/checkbox\"\nimport { Label } from \"@/components/ui/label\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n label: \"Accept terms and conditions\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n label: \"قبول الشروط والأحكام\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n label: \"קבל תנאים והגבלות\",\n },\n },\n} as const\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"flex gap-2\" dir={dir}>\n <Checkbox id=\"terms-rtl\" dir={dir} />\n <Label for=\"terms-rtl\" dir={dir}>\n {t.label}\n </Label>\n</div>\n",
|
|
19
|
-
"type": "registry:component"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"docs": "https://ui.full.dev/components/label/",
|
|
23
|
-
"type": "registry:example"
|
|
24
|
-
}
|
package/public/r/label.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "label",
|
|
4
|
-
"title": "Label",
|
|
5
|
-
"description": "Renders an accessible label associated with a control.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/label/label.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"label\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"label\",\n ...props\n} = Astro.props\n\n/* eslint-disable astro/jsx-a11y/label-has-associated-control -- A primitive: the caller links the control through `for` or a nested input. */\n---\n\n<label\n data-slot={dataSlot}\n class={cn(\n \"gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed\",\n className\n )}\n {...props}\n>\n <slot />\n</label>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/label/index.ts",
|
|
14
|
-
"content": "export { default as Label } from \"./label.astro\"\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/components/label/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"ui"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:ui"
|
|
23
|
-
}
|
package/public/r/layout.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "layout",
|
|
4
|
-
"title": "Layout",
|
|
5
|
-
"description": "Page-shell primitives for the root html, head, body, and main structure.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lexingtonthemes/seo@^0.4.0"
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{
|
|
11
|
-
"path": "src/components/ui/layout/layout.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport \"@/styles/global.css\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"html\">\n\nconst { class: className, lang, ...props } = Astro.props\n---\n\n<html\n class={cn(\n \"bg-background text-foreground has-data-[variant=inset]:bg-sidebar overscroll-none scroll-smooth\",\n className\n )}\n data-slot=\"layout\"\n lang={lang || Astro.currentLocale || \"en\"}\n {...props}\n>\n <slot />\n</html>\n\n<style is:global>\n :root {\n color-scheme: light;\n }\n\n .dark {\n color-scheme: dark;\n }\n\n @view-transition {\n navigation: auto;\n }\n</style>\n",
|
|
13
|
-
"type": "registry:ui"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/ui/layout/layout-head.astro",
|
|
17
|
-
"content": "---\nimport type { ImageMetadata } from \"astro\"\nimport { getImage } from \"astro:assets\"\nimport { trailingSlash } from \"astro:config/server\"\nimport { AstroSeo } from \"@lexingtonthemes/seo\"\n\ntype Props = {\n name?: string\n title?: string\n description?: string\n image?: {\n src?: ImageMetadata | string\n alt?: string\n }\n noindex?: boolean\n nofollow?: boolean\n canonical?: string\n}\n\nconst baseUrl = Astro.site?.origin || Astro.url.origin\nconst pathnameWithSlash = Astro.url.pathname.endsWith(\"/\")\n ? Astro.url.pathname\n : `${Astro.url.pathname}/`\nconst pagePathname =\n trailingSlash === \"never\" && pathnameWithSlash !== \"/\"\n ? pathnameWithSlash.slice(0, -1)\n : pathnameWithSlash\n\nconst {\n name,\n title,\n description,\n image,\n noindex,\n nofollow,\n canonical,\n ...props\n} = Astro.props\n\nconst resolvedCanonical = new URL(canonical || pagePathname, baseUrl).toString()\n\nconst toImageMimeType = (format?: string) => {\n if (!format) return undefined\n if (format.includes(\"/\")) return format\n if (format === \"jpg\") return \"image/jpeg\"\n if (format === \"svg\") return \"image/svg+xml\"\n return `image/${format}`\n}\n\nconst transformedImage =\n image?.src && typeof image.src !== \"string\"\n ? await getImage({\n src: image.src,\n format: \"png\",\n width: 1200,\n height: 630,\n quality: \"medium\",\n })\n : undefined\n\nconst openGraphImage =\n image?.src && typeof image.src === \"string\"\n ? {\n url: new URL(image.src, baseUrl).toString(),\n alt: image.alt,\n }\n : transformedImage\n ? {\n url: new URL(transformedImage.src, baseUrl).toString(),\n alt: image?.alt,\n width: transformedImage.attributes.width,\n height: transformedImage.attributes.height,\n type: toImageMimeType(transformedImage.options.format),\n }\n : undefined\n---\n\n<head data-slot=\"layout-head\" {...props}>\n <meta charset=\"utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <meta name=\"generator\" content={Astro.generator} />\n <AstroSeo\n title={title}\n description={description}\n canonical={resolvedCanonical}\n noindex={noindex}\n nofollow={nofollow}\n openGraph={{\n url: resolvedCanonical,\n type: \"website\",\n ...(name && { site_name: name }),\n ...(openGraphImage && {\n images: [\n {\n ...openGraphImage,\n ...(openGraphImage.url.startsWith(\"https://\") && {\n secureUrl: openGraphImage.url,\n }),\n },\n ],\n }),\n }}\n twitter={{\n cardType: openGraphImage ? \"summary_large_image\" : \"summary\",\n }}\n />\n <slot />\n</head>\n",
|
|
18
|
-
"type": "registry:ui"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/ui/layout/layout-body.astro",
|
|
22
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"body\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<body\n class={cn(\n \"bg-background text-foreground overscroll-none antialiased\",\n className\n )}\n data-slot=\"layout-body\"\n {...props}\n>\n <slot />\n</body>\n\n<style is:global>\n body {\n font-family: var(--font-sans);\n }\n</style>\n",
|
|
23
|
-
"type": "registry:ui"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/ui/layout/layout-main.astro",
|
|
27
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"main\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<main\n data-slot=\"layout-main\"\n class={cn(\n \"@container flex flex-col in-[[data-slot=sidebar-inset]]:rounded-[inherit]\",\n className\n )}\n {...props}\n>\n <slot />\n</main>\n",
|
|
28
|
-
"type": "registry:ui"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/components/ui/layout/index.ts",
|
|
32
|
-
"content": "export { default as Layout } from \"./layout.astro\"\nexport { default as LayoutBody } from \"./layout-body.astro\"\nexport { default as LayoutHead } from \"./layout-head.astro\"\nexport { default as LayoutMain } from \"./layout-main.astro\"\n",
|
|
33
|
-
"type": "registry:ui"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"docs": "https://ui.full.dev/components/layout/",
|
|
37
|
-
"categories": [
|
|
38
|
-
"ui"
|
|
39
|
-
],
|
|
40
|
-
"type": "registry:ui"
|
|
41
|
-
}
|
package/public/r/links-2.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "links-2",
|
|
4
|
-
"title": "Links 2",
|
|
5
|
-
"description": "Link grid blocks for presenting related pages, components, or resources.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/section"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/blocks/links-2.astro",
|
|
15
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ArrowRightIcon from \"@lucide/astro/icons/arrow-right\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n title: string\n description: string\n links: {\n href: string\n title: string\n description: string\n }[]\n}\n\nconst { class: className, title, description, links, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col gap-10\">\n <div class=\"flex min-w-0 flex-col gap-4 border-b pb-8\">\n <h2 class=\"text-foreground text-2xl font-semibold tracking-tight text-balance sm:text-3xl\">\n {title}\n </h2>\n <p class=\"text-muted-foreground max-w-2xl text-base leading-7\">\n {description}\n </p>\n </div>\n\n <div class=\"grid gap-2 md:grid-cols-2 xl:grid-cols-3\">\n {links.map((item) => (\n <a\n href={item.href}\n class=\"bg-muted/40 hover:bg-muted/60 focus-visible:ring-ring/50 group/link rounded-lg px-4 py-4 transition-colors focus-visible:ring-2 focus-visible:outline-none\"\n >\n <span class=\"flex min-w-0 items-center justify-between gap-3\">\n <span class=\"text-sm font-medium\">{item.title}</span>\n <ArrowRightIcon class=\"text-muted-foreground size-3.5 shrink-0 transition-transform group-hover/link:translate-x-0.5\" />\n </span>\n <span class=\"text-muted-foreground mt-1 block text-sm leading-6\">\n {item.description}\n </span>\n </a>\n ))}\n </div>\n </SectionContainer>\n</Section>\n",
|
|
16
|
-
"type": "registry:block"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"docs": "https://ui.full.dev/blocks/links/",
|
|
20
|
-
"categories": [
|
|
21
|
-
"links"
|
|
22
|
-
],
|
|
23
|
-
"type": "registry:block"
|
|
24
|
-
}
|
package/public/r/logo.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "logo",
|
|
4
|
-
"title": "Logo",
|
|
5
|
-
"description": "A component for displaying a brand logo.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/logo/logo.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & HTMLAttributes<\"a\">\n\nconst {\n class: className,\n href,\n \"data-slot\": dataSlot = \"logo\",\n ...props\n} = Astro.props\n\nconst Comp = href != null ? \"a\" : \"div\"\n---\n\n<Comp\n class={cn(\n \"text-base font-semibold flex h-10 items-center justify-start gap-2 whitespace-nowrap\",\n className\n )}\n data-slot={dataSlot}\n href={href}\n {...props}\n>\n <slot />\n</Comp>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/logo/logo-image.astro",
|
|
14
|
-
"content": "---\nimport { Image } from \"astro:assets\"\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"img\">, \"src\"> & {\n src?: ImageMetadata\n srcLight?: ImageMetadata\n srcDark?: ImageMetadata\n}\n\nconst { class: className, src, srcLight, srcDark, ...props } = Astro.props\n\nconst baseClasses = \"w-auto shrink-0 h-6 object-contain\"\n---\n\n{srcLight && srcDark ? (\n <>\n <Image\n class={cn(baseClasses, \"dark:hidden\", className)}\n data-slot=\"logo-image\"\n src={srcLight}\n sizes=\"200px\"\n widths={[200]}\n {...(props as any)}\n />\n <Image\n class={cn(baseClasses, \"hidden dark:block\", className)}\n data-slot=\"logo-image\"\n src={srcDark}\n sizes=\"200px\"\n widths={[200]}\n {...(props as any)}\n />\n </>\n) : src ? (\n <Image\n class={cn(baseClasses, className)}\n data-slot=\"logo-image\"\n src={src}\n sizes=\"200px\"\n widths={[200]}\n {...(props as any)}\n />\n) : null}\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/components/ui/logo/logo-text.astro",
|
|
19
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"logo-text\",\n ...props\n} = Astro.props\n---\n\n<span class={cn(\"text-lg\", className)} data-slot={dataSlot} {...props}>\n <slot />\n</span>\n",
|
|
20
|
-
"type": "registry:ui"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "src/components/ui/logo/index.ts",
|
|
24
|
-
"content": "export { default as Logo } from \"./logo.astro\"\nexport { default as LogoImage } from \"./logo-image.astro\"\nexport { default as LogoText } from \"./logo-text.astro\"\n",
|
|
25
|
-
"type": "registry:ui"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"docs": "https://ui.full.dev/components/logo/",
|
|
29
|
-
"categories": [
|
|
30
|
-
"ui"
|
|
31
|
-
],
|
|
32
|
-
"type": "registry:ui"
|
|
33
|
-
}
|
package/public/r/logos-1.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "logos-1",
|
|
4
|
-
"title": "Logos 1",
|
|
5
|
-
"description": "Logo sections for trust, partner strips, and quiet social proof.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/logo",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/logos-1.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\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 brands: {\n name: string\n href?: string\n }[]\n}\n\nconst { class: className, title, description, brands, ...props } = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-10 text-center\">\n <div class=\"flex max-w-2xl flex-col items-center gap-4\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription>{description}</SectionDescription>\n </div>\n <ul class=\"text-muted-foreground flex w-full flex-wrap items-center justify-center gap-x-12 gap-y-6\">\n {brands.map((brand) => (\n <li>\n <Logo\n class={cn(\n brand.href != null &&\n \"hover:text-foreground transition-colors focus-visible:text-foreground\"\n )}\n href={brand.href}\n >\n <LogoText>{brand.name}</LogoText>\n </Logo>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/logos/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"logos"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/logos-2.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "logos-2",
|
|
4
|
-
"title": "Logos 2",
|
|
5
|
-
"description": "Logo sections for trust, partner strips, and quiet social proof.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/logo",
|
|
8
|
-
"@fulldev/marquee",
|
|
9
|
-
"@fulldev/section"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/blocks/logos-2.astro",
|
|
14
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport {\n Marquee,\n MarqueeContent,\n MarqueeItem,\n MarqueeToggle,\n} from \"@/components/ui/marquee\"\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 brands: {\n name: string\n href?: string\n }[]\n labels: {\n play: string\n pause: string\n }\n}\n\nconst {\n class: className,\n title,\n description,\n brands,\n labels,\n ...props\n} = Astro.props\n---\n\n<Section class={cn(\"\", className)} {...props}>\n <SectionContainer class=\"flex flex-col items-center gap-4 text-center\">\n <SectionTitle>{title}</SectionTitle>\n <SectionDescription class=\"max-w-2xl\">{description}</SectionDescription>\n </SectionContainer>\n <Marquee class=\"flex flex-col gap-4 [--marquee-gap:--spacing(12)]\">\n <SectionContainer class=\"flex justify-end\">\n <MarqueeToggle playLabel={labels.play} pauseLabel={labels.pause} />\n </SectionContainer>\n <MarqueeContent class=\"text-muted-foreground mask-x-from-90%\">\n {brands.map((brand) => (\n <MarqueeItem class=\"flex items-center\">\n <Logo\n class={cn(\n brand.href != null &&\n \"hover:text-foreground focus-visible:text-foreground transition-colors\"\n )}\n href={brand.href}\n >\n <LogoText>{brand.name}</LogoText>\n </Logo>\n </MarqueeItem>\n ))}\n </MarqueeContent>\n </Marquee>\n</Section>\n",
|
|
15
|
-
"type": "registry:block"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/blocks/logos/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"logos"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:block"
|
|
23
|
-
}
|
package/public/r/logos-3.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "logos-3",
|
|
4
|
-
"title": "Logos 3",
|
|
5
|
-
"description": "Logo sections for trust, partner strips, and quiet social proof.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/logo",
|
|
8
|
-
"@fulldev/section"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/blocks/logos-3.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Logo, LogoText } from \"@/components/ui/logo\"\nimport { Section, SectionContainer } from \"@/components/ui/section\"\n\ntype Props = HTMLAttributes<\"section\"> & {\n brands: {\n name: string\n href?: string\n }[]\n}\n\nconst { class: className, brands, ...props } = Astro.props\n---\n\n<Section class={cn(\"py-12 lg:py-16\", className)} {...props}>\n <SectionContainer>\n <ul class=\"text-muted-foreground flex flex-wrap items-center justify-center gap-x-12 gap-y-6\">\n {brands.map((brand) => (\n <li>\n <Logo\n class={cn(\n brand.href != null &&\n \"hover:text-foreground transition-colors focus-visible:text-foreground\"\n )}\n href={brand.href}\n >\n <LogoText>{brand.name}</LogoText>\n </Logo>\n </li>\n ))}\n </ul>\n </SectionContainer>\n</Section>\n",
|
|
14
|
-
"type": "registry:block"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"docs": "https://ui.full.dev/blocks/logos/",
|
|
18
|
-
"categories": [
|
|
19
|
-
"logos"
|
|
20
|
-
],
|
|
21
|
-
"type": "registry:block"
|
|
22
|
-
}
|
package/public/r/marquee.json
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "marquee",
|
|
4
|
-
"title": "Marquee",
|
|
5
|
-
"description": "A continuously scrolling row of content, with a pause control and a static fallback.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"embla-carousel@8.6.0",
|
|
8
|
-
"embla-carousel-auto-scroll@8.6.0",
|
|
9
|
-
"@lucide/astro"
|
|
10
|
-
],
|
|
11
|
-
"registryDependencies": [
|
|
12
|
-
"@fulldev/button"
|
|
13
|
-
],
|
|
14
|
-
"files": [
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/ui/marquee/marquee.astro",
|
|
17
|
-
"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 = \"marquee\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n data-marquee\n class={cn(\"relative\", className)}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import EmblaCarousel, { type EmblaCarouselType } from \"embla-carousel\"\n import AutoScroll, { type AutoScrollType } from \"embla-carousel-auto-scroll\"\n\n type Row = {\n viewport: HTMLElement\n // Whether the caller left tabindex to the marquee.\n ownTabIndex: boolean\n api?: EmblaCarouselType\n autoScroll?: AutoScrollType\n }\n\n // The data-marquee* markers stay in place when a caller overrides data-slot.\n const rootSelector = \"[data-marquee]\"\n const reducedMotion = window.matchMedia(\"(prefers-reduced-motion: reduce)\")\n const instances = new Map<HTMLElement, () => void>()\n\n // A nested marquee owns its own parts.\n const getParts = <T extends Element>(root: HTMLElement, selector: string) =>\n [...root.querySelectorAll<T>(selector)].filter(\n (part) => part.closest(rootSelector) === root\n )\n\n const focusableSelector =\n \"a[href], area[href], button, input, select, textarea, iframe, summary, [contenteditable], [tabindex]\"\n const visible = (element: Element) =>\n element.checkVisibility?.({ visibilityProperty: true }) ??\n element.getClientRects().length > 0\n // A toggle is a pause control when it can be pressed and seen. The marquee\n // hides a toggle through its private wrapper, so visibility is read from the\n // button's own styles and from the wrapper's parent.\n const shown = (toggle: HTMLButtonElement) => {\n const style = getComputedStyle(toggle)\n const outside = toggle.closest(\"[data-marquee-control]\")?.parentElement\n return (\n style.display !== \"none\" &&\n style.visibility !== \"hidden\" &&\n outside != null &&\n visible(outside)\n )\n }\n const usable = (toggle: HTMLButtonElement) =>\n !toggle.matches(\":disabled\") &&\n toggle.getAttribute(\"aria-disabled\") !== \"true\" &&\n !toggle.closest(\"[inert]\") &&\n shown(toggle)\n const reachable = (element: HTMLElement) =>\n element.tabIndex >= 0 &&\n !element.matches(\":disabled\") &&\n !element.closest(\"[inert]\") &&\n visible(element)\n\n // Embla turns loop off when the slides are too few to fill the viewport.\n const loops = (api: EmblaCarouselType) =>\n api.internalEngine().options.loop && api.scrollSnapList().length > 1\n\n const initialize = () => {\n for (const root of document.querySelectorAll<HTMLElement>(rootSelector)) {\n if (instances.has(root)) continue\n const toggles = getParts<HTMLButtonElement>(root, \"[data-marquee-toggle]\")\n const rows: Row[] = getParts<HTMLElement>(\n root,\n \"[data-marquee-viewport]\"\n ).map((viewport) => ({\n viewport,\n ownTabIndex: !viewport.hasAttribute(\"tabindex\"),\n }))\n // Moving content needs a way to pause it, so a marquee without an\n // enabled toggle stays static. Focus, dragging and the toggle pause it until the toggle\n // plays it again; hovering a row pauses it only while the pointer is\n // over it.\n let playing = true\n let hovered = false\n\n const sync = () => {\n const moving = rows.filter((row) => row.autoScroll)\n for (const row of moving) {\n if (playing && !hovered) row.autoScroll?.play()\n else row.autoScroll?.stop()\n }\n for (const toggle of toggles) {\n const control = toggle.closest<HTMLElement>(\"[data-marquee-control]\")\n if (control && control.hidden !== (moving.length === 0))\n control.hidden = moving.length === 0\n toggle.dataset.state = playing ? \"playing\" : \"paused\"\n const label = toggle.querySelector(\"[data-marquee-label]\")\n if (label)\n label.textContent =\n (playing\n ? toggle.dataset.pauseLabel\n : toggle.dataset.playLabel) ?? \"\"\n }\n }\n\n const stop = (row: Row) => {\n row.api?.destroy()\n row.api = undefined\n row.autoScroll = undefined\n delete row.viewport.dataset.active\n // A static row scrolls natively; give it a tab stop when it overflows\n // and has no reachable content of its own.\n if (!row.ownTabIndex) return\n const overflows = row.viewport.scrollWidth > row.viewport.clientWidth\n const focusable = [\n ...row.viewport.querySelectorAll<HTMLElement>(focusableSelector),\n ].some(reachable)\n if (overflows && !focusable) row.viewport.tabIndex = 0\n else row.viewport.removeAttribute(\"tabindex\")\n }\n\n const evaluate = (row: Row) => {\n if (reducedMotion.matches || !toggles.some(usable)) return stop(row)\n if (row.api) return\n row.viewport.scrollLeft = 0\n const autoScroll = AutoScroll({\n speed: 1,\n startDelay: 0,\n playOnInit: false,\n stopOnFocusIn: false,\n stopOnInteraction: true,\n direction: row.viewport.hasAttribute(\"data-reverse\")\n ? \"backward\"\n : \"forward\",\n })\n const api = EmblaCarousel(\n row.viewport,\n {\n loop: true,\n dragFree: true,\n direction:\n getComputedStyle(row.viewport).direction === \"rtl\"\n ? \"rtl\"\n : \"ltr\",\n },\n [autoScroll]\n )\n if (!loops(api)) {\n api.destroy()\n return stop(row)\n }\n row.api = api\n row.autoScroll = autoScroll\n row.viewport.dataset.active = \"\"\n if (row.ownTabIndex) row.viewport.removeAttribute(\"tabindex\")\n api.on(\"pointerDown\", () => {\n playing = false\n sync()\n })\n api.on(\"reInit\", () => {\n if (!loops(api)) stop(row)\n sync()\n })\n }\n\n // Rows start or stop when their size changes, such as a static row\n // whose content no longer fits, and when a toggle can no longer be\n // pressed or seen. That covers changes to the toggle and its ancestors,\n // and breakpoints that hide the toggle or its container.\n let frame = 0\n const refresh = () => {\n cancelAnimationFrame(frame)\n frame = requestAnimationFrame(() => {\n for (const row of rows) evaluate(row)\n sync()\n })\n }\n const observer = new ResizeObserver(refresh)\n const controls = new MutationObserver(refresh)\n for (const toggle of toggles) {\n for (\n let element: Element | null = toggle;\n element;\n element = element.parentElement\n ) {\n if (element.hasAttribute(\"data-marquee-control\")) continue\n controls.observe(element, {\n attributeFilter: [\n \"class\",\n \"style\",\n \"hidden\",\n \"disabled\",\n \"aria-disabled\",\n \"inert\",\n ],\n })\n if (root.contains(element)) observer.observe(element)\n }\n }\n for (const row of rows) {\n observer.observe(row.viewport)\n for (const item of row.viewport.firstElementChild?.children ?? [])\n observer.observe(item)\n }\n\n const onMotionChange = () => {\n for (const row of rows) evaluate(row)\n sync()\n }\n const onFocusIn = (event: FocusEvent) => {\n if (\n event.target instanceof Element &&\n event.target.closest(\"[data-marquee-toggle]\")\n )\n return\n playing = false\n sync()\n }\n const onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType !== \"mouse\") return\n hovered = true\n sync()\n }\n const onPointerLeave = () => {\n hovered = false\n sync()\n }\n const onToggle = () => {\n playing = !playing\n sync()\n }\n\n reducedMotion.addEventListener(\"change\", onMotionChange)\n root.addEventListener(\"focusin\", onFocusIn)\n for (const row of rows) {\n row.viewport.addEventListener(\"pointerenter\", onPointerEnter)\n row.viewport.addEventListener(\"pointerleave\", onPointerLeave)\n }\n for (const toggle of toggles) toggle.addEventListener(\"click\", onToggle)\n for (const row of rows) evaluate(row)\n sync()\n\n instances.set(root, () => {\n cancelAnimationFrame(frame)\n observer.disconnect()\n controls.disconnect()\n reducedMotion.removeEventListener(\"change\", onMotionChange)\n root.removeEventListener(\"focusin\", onFocusIn)\n for (const row of rows) {\n row.viewport.removeEventListener(\"pointerenter\", onPointerEnter)\n row.viewport.removeEventListener(\"pointerleave\", onPointerLeave)\n }\n for (const toggle of toggles)\n toggle.removeEventListener(\"click\", onToggle)\n for (const row of rows) row.api?.destroy()\n })\n }\n }\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const cleanup of instances.values()) cleanup()\n instances.clear()\n })\n</script>\n",
|
|
18
|
-
"type": "registry:ui"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/ui/marquee/marquee-content.astro",
|
|
22
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n reverse?: boolean\n}\n\nconst {\n class: className,\n reverse = false,\n \"data-slot\": dataSlot = \"marquee-content\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n data-marquee-viewport\n data-reverse={reverse ? \"\" : undefined}\n class={cn(\n \"focus-visible:ring-ring/50 overflow-x-auto outline-none contain-inline-size focus-visible:ring-3 data-active:overflow-hidden\",\n className\n )}\n {...props}\n>\n <div class=\"-ms-[var(--marquee-gap,--spacing(4))] flex justify-center-safe\">\n <slot />\n </div>\n</div>\n",
|
|
23
|
-
"type": "registry:ui"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/ui/marquee/marquee-item.astro",
|
|
27
|
-
"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 = \"marquee-item\",\n ...props\n} = Astro.props\n---\n\n<div\n data-slot={dataSlot}\n class={cn(\n \"min-w-0 shrink-0 grow-0 ps-[var(--marquee-gap,--spacing(4))]\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n",
|
|
28
|
-
"type": "registry:ui"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/components/ui/marquee/marquee-toggle.astro",
|
|
32
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport PauseIcon from \"@lucide/astro/icons/pause\"\nimport PlayIcon from \"@lucide/astro/icons/play\"\n\nimport { cn } from \"@/lib/utils\"\nimport { buttonVariants, type ButtonVariantProps } from \"@/components/ui/button\"\n\ntype Props = Omit<HTMLAttributes<\"button\">, \"type\"> &\n ButtonVariantProps & {\n playLabel: string\n pauseLabel: string\n }\n\nconst {\n class: className,\n variant = \"outline\",\n size = \"icon-sm\",\n playLabel,\n pauseLabel,\n \"data-slot\": dataSlot = \"marquee-toggle\",\n ...props\n} = Astro.props\n\n// The marquee shows and hides the toggle through its wrapper, so the button's\n// own hidden attribute, class and style stay the caller's.\n---\n\n<span data-marquee-control hidden class=\"contents\">\n <button\n type=\"button\"\n data-slot={dataSlot}\n data-marquee-toggle\n data-state=\"playing\"\n data-play-label={playLabel}\n data-pause-label={pauseLabel}\n data-variant={variant}\n data-size={size}\n class={cn(\n buttonVariants({ variant, size }),\n \"group/marquee-toggle\",\n className\n )}\n {...props}\n >\n <PauseIcon class=\"group-data-[state=paused]/marquee-toggle:hidden\" />\n <PlayIcon class=\"hidden group-data-[state=paused]/marquee-toggle:block\" />\n <span class=\"sr-only\" data-marquee-label>\n {pauseLabel}\n </span>\n </button>\n</span>\n",
|
|
33
|
-
"type": "registry:ui"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"path": "src/components/ui/marquee/index.ts",
|
|
37
|
-
"content": "export { default as Marquee } from \"./marquee.astro\"\nexport { default as MarqueeContent } from \"./marquee-content.astro\"\nexport { default as MarqueeItem } from \"./marquee-item.astro\"\nexport { default as MarqueeToggle } from \"./marquee-toggle.astro\"\n",
|
|
38
|
-
"type": "registry:ui"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"docs": "https://ui.full.dev/components/marquee/",
|
|
42
|
-
"categories": [
|
|
43
|
-
"ui"
|
|
44
|
-
],
|
|
45
|
-
"type": "registry:ui"
|
|
46
|
-
}
|