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
|
@@ -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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "native-select-examples",
|
|
4
|
-
"title": "Native Select examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Native Select docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/native-select"
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{
|
|
11
|
-
"path": "src/components/examples/native-select/native-select-demo.astro",
|
|
12
|
-
"content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect>\n <NativeSelectOption value=\"\">Select status</NativeSelectOption>\n <NativeSelectOption value=\"todo\">Todo</NativeSelectOption>\n <NativeSelectOption value=\"in-progress\">In Progress</NativeSelectOption>\n <NativeSelectOption value=\"done\">Done</NativeSelectOption>\n <NativeSelectOption value=\"cancelled\">Cancelled</NativeSelectOption>\n</NativeSelect>\n",
|
|
13
|
-
"type": "registry:component"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/examples/native-select/native-select-disabled.astro",
|
|
17
|
-
"content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect disabled>\n <NativeSelectOption value=\"\">Disabled</NativeSelectOption>\n <NativeSelectOption value=\"apple\">Apple</NativeSelectOption>\n <NativeSelectOption value=\"banana\">Banana</NativeSelectOption>\n <NativeSelectOption value=\"blueberry\">Blueberry</NativeSelectOption>\n</NativeSelect>\n",
|
|
18
|
-
"type": "registry:component"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/examples/native-select/native-select-groups.astro",
|
|
22
|
-
"content": "---\nimport {\n NativeSelect,\n NativeSelectOptGroup,\n NativeSelectOption,\n} from \"@/components/ui/native-select\"\n---\n\n<NativeSelect>\n <NativeSelectOption value=\"\">Select department</NativeSelectOption>\n <NativeSelectOptGroup label=\"Engineering\">\n <NativeSelectOption value=\"frontend\">Frontend</NativeSelectOption>\n <NativeSelectOption value=\"backend\">Backend</NativeSelectOption>\n <NativeSelectOption value=\"devops\">DevOps</NativeSelectOption>\n </NativeSelectOptGroup>\n <NativeSelectOptGroup label=\"Sales\">\n <NativeSelectOption value=\"sales-rep\">Sales Rep</NativeSelectOption>\n <NativeSelectOption value=\"account-manager\">\n Account Manager\n </NativeSelectOption>\n <NativeSelectOption value=\"sales-director\">\n Sales Director\n </NativeSelectOption>\n </NativeSelectOptGroup>\n <NativeSelectOptGroup label=\"Operations\">\n <NativeSelectOption value=\"support\">Customer Support</NativeSelectOption>\n <NativeSelectOption value=\"product-manager\">\n Product Manager\n </NativeSelectOption>\n <NativeSelectOption value=\"ops-manager\">\n Operations Manager\n </NativeSelectOption>\n </NativeSelectOptGroup>\n</NativeSelect>\n",
|
|
23
|
-
"type": "registry:component"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/examples/native-select/native-select-invalid.astro",
|
|
27
|
-
"content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n---\n\n<NativeSelect aria-invalid=\"true\">\n <NativeSelectOption value=\"\">Error state</NativeSelectOption>\n <NativeSelectOption value=\"apple\">Apple</NativeSelectOption>\n <NativeSelectOption value=\"banana\">Banana</NativeSelectOption>\n <NativeSelectOption value=\"blueberry\">Blueberry</NativeSelectOption>\n</NativeSelect>\n",
|
|
28
|
-
"type": "registry:component"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/components/examples/native-select/native-select-rtl.astro",
|
|
32
|
-
"content": "---\nimport { NativeSelect, NativeSelectOption } from \"@/components/ui/native-select\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n placeholder: \"Select status\",\n todo: \"Todo\",\n inProgress: \"In Progress\",\n done: \"Done\",\n cancelled: \"Cancelled\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n placeholder: \"اختر الحالة\",\n todo: \"مهام\",\n inProgress: \"قيد التنفيذ\",\n done: \"منجز\",\n cancelled: \"ملغي\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n placeholder: \"בחר סטטוס\",\n todo: \"לעשות\",\n inProgress: \"בתהליך\",\n done: \"הושלם\",\n cancelled: \"בוטל\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<NativeSelect dir={dir}>\n <NativeSelectOption value=\"\">{t.placeholder}</NativeSelectOption>\n <NativeSelectOption value=\"todo\">{t.todo}</NativeSelectOption>\n <NativeSelectOption value=\"in-progress\">{t.inProgress}</NativeSelectOption>\n <NativeSelectOption value=\"done\">{t.done}</NativeSelectOption>\n <NativeSelectOption value=\"cancelled\">{t.cancelled}</NativeSelectOption>\n</NativeSelect>\n",
|
|
33
|
-
"type": "registry:component"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"docs": "https://ui.full.dev/components/native-select/",
|
|
37
|
-
"type": "registry:example"
|
|
38
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "native-select",
|
|
4
|
-
"title": "Native Select",
|
|
5
|
-
"description": "A styled native HTML select element with consistent design system integration.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"files": [
|
|
10
|
-
{
|
|
11
|
-
"path": "src/components/ui/native-select/native-select.astro",
|
|
12
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = Omit<HTMLAttributes<\"select\">, \"size\"> & {\n size?: \"sm\" | \"default\"\n}\n\nconst { class: className, size = \"default\", multiple, ...props } = Astro.props\n\n// Astro renders `multiple` as `multiple=\"true\"` or `multiple=\"false\"`, and both\n// enable it. Render the bare attribute only when it is set.\n---\n\n<div\n class={cn(\n \"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n className\n )}\n data-slot=\"native-select-wrapper\"\n data-size={size}\n>\n <select\n data-slot=\"native-select\"\n data-size={size}\n multiple={multiple ? \"\" : undefined}\n class=\"border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-md border bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] select-none focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8 outline-none disabled:pointer-events-none disabled:cursor-not-allowed\"\n {...props}\n >\n <slot />\n </select>\n <ChevronDownIcon\n class=\"text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2 pointer-events-none absolute select-none\"\n aria-hidden=\"true\"\n data-slot=\"native-select-icon\"\n />\n</div>\n",
|
|
13
|
-
"type": "registry:ui"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"path": "src/components/ui/native-select/native-select-option.astro",
|
|
17
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"option\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<option\n data-slot=\"native-select-option\"\n class={cn(\"bg-[Canvas] text-[CanvasText]\", className)}\n {...props}\n>\n <slot />\n</option>\n",
|
|
18
|
-
"type": "registry:ui"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "src/components/ui/native-select/native-select-optgroup.astro",
|
|
22
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"optgroup\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<optgroup\n data-slot=\"native-select-optgroup\"\n class={cn(\"bg-[Canvas] text-[CanvasText]\", className)}\n {...props}\n>\n <slot />\n</optgroup>\n",
|
|
23
|
-
"type": "registry:ui"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"path": "src/components/ui/native-select/index.ts",
|
|
27
|
-
"content": "export { default as NativeSelect } from \"./native-select.astro\"\nexport { default as NativeSelectOption } from \"./native-select-option.astro\"\nexport { default as NativeSelectOptGroup } from \"./native-select-optgroup.astro\"\n",
|
|
28
|
-
"type": "registry:ui"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"docs": "https://ui.full.dev/components/native-select/",
|
|
32
|
-
"categories": [
|
|
33
|
-
"ui"
|
|
34
|
-
],
|
|
35
|
-
"type": "registry:ui"
|
|
36
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "navigation-menu-examples",
|
|
4
|
-
"title": "Navigation Menu examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Navigation Menu docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/navigation-menu"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/components/examples/navigation-menu/navigation-menu-demo.astro",
|
|
15
|
-
"content": "---\nimport CircleAlertIcon from \"@lucide/astro/icons/circle-alert\"\nimport CircleCheckIcon from \"@lucide/astro/icons/circle-check\"\nimport CircleDashedIcon from \"@lucide/astro/icons/circle-dashed\"\n\nimport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n} from \"@/components/ui/navigation-menu\"\n\nconst gettingStarted = [\n {\n title: \"Introduction\",\n href: \"/docs\",\n description: \"Re-usable components built with Tailwind CSS.\",\n },\n {\n title: \"Installation\",\n href: \"/docs/installation\",\n description: \"How to install dependencies and structure your app.\",\n },\n {\n title: \"Typography\",\n href: \"https://ui.shadcn.com/docs/typeset\",\n description: \"Styles for headings, paragraphs, lists...etc\",\n },\n]\n\nconst components: { title: string; href: string; description: string }[] = [\n {\n title: \"Alert Dialog\",\n href: \"https://ui.shadcn.com/docs/components/base/alert-dialog\",\n description:\n \"A modal dialog that interrupts the user with important content and expects a response.\",\n },\n {\n title: \"Hover Card\",\n href: \"https://ui.shadcn.com/docs/components/base/hover-card\",\n description:\n \"For sighted users to preview content available behind a link.\",\n },\n {\n title: \"Progress\",\n href: \"https://ui.shadcn.com/docs/components/base/progress\",\n description:\n \"Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.\",\n },\n {\n title: \"Scroll-area\",\n href: \"https://ui.shadcn.com/docs/components/base/scroll-area\",\n description: \"Visually or semantically separates content.\",\n },\n {\n title: \"Tabs\",\n href: \"https://ui.shadcn.com/docs/components/base/tabs\",\n description:\n \"A set of layered sections of content, known as tab panels, that are displayed one at a time.\",\n },\n {\n title: \"Tooltip\",\n href: \"https://ui.shadcn.com/docs/components/base/tooltip\",\n description:\n \"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\",\n },\n]\n---\n\n<NavigationMenu>\n <NavigationMenuList>\n <NavigationMenuItem value=\"getting-started\">\n <NavigationMenuTrigger>Getting started</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"w-96\">\n {gettingStarted.map((item) => (\n <li>\n <NavigationMenuLink href={item.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{item.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {item.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"components\" class=\"hidden md:flex\">\n <NavigationMenuTrigger>Components</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"grid w-[400px] gap-2 md:w-[500px] md:grid-cols-2 lg:w-[600px]\">\n {components.map((component) => (\n <li>\n <NavigationMenuLink href={component.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{component.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {component.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"with-icon\">\n <NavigationMenuTrigger>With Icon</NavigationMenuTrigger>\n <NavigationMenuContent>\n <ul class=\"grid w-[200px]\">\n <li>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleAlertIcon />\n Backlog\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleDashedIcon />\n To Do\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleCheckIcon />\n Done\n </NavigationMenuLink>\n </li>\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"docs\">\n <NavigationMenuLink href=\"/docs\" class={navigationMenuTriggerStyle()}>\n Docs\n </NavigationMenuLink>\n </NavigationMenuItem>\n </NavigationMenuList>\n</NavigationMenu>\n",
|
|
16
|
-
"type": "registry:component"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/examples/navigation-menu/navigation-menu-rtl.astro",
|
|
20
|
-
"content": "---\nimport CircleAlertIcon from \"@lucide/astro/icons/circle-alert\"\nimport CircleCheckIcon from \"@lucide/astro/icons/circle-check\"\nimport CircleDashedIcon from \"@lucide/astro/icons/circle-dashed\"\n\nimport {\n NavigationMenu,\n NavigationMenuContent,\n NavigationMenuItem,\n NavigationMenuLink,\n NavigationMenuList,\n NavigationMenuTrigger,\n navigationMenuTriggerStyle,\n} from \"@/components/ui/navigation-menu\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n gettingStarted: \"Getting started\",\n introduction: \"Introduction\",\n introductionDesc: \"Re-usable components built with Tailwind CSS.\",\n installation: \"Installation\",\n installationDesc: \"How to install dependencies and structure your app.\",\n typography: \"Typography\",\n typographyDesc: \"Styles for headings, paragraphs, lists...etc\",\n components: \"Components\",\n alertDialog: \"Alert Dialog\",\n alertDialogDesc:\n \"A modal dialog that interrupts the user with important content and expects a response.\",\n hoverCard: \"Hover Card\",\n hoverCardDesc:\n \"For sighted users to preview content available behind a link.\",\n progress: \"Progress\",\n progressDesc:\n \"Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.\",\n scrollArea: \"Scroll-area\",\n scrollAreaDesc: \"Visually or semantically separates content.\",\n tabs: \"Tabs\",\n tabsDesc:\n \"A set of layered sections of content, known as tab panels, that are displayed one at a time.\",\n tooltip: \"Tooltip\",\n tooltipDesc:\n \"A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.\",\n withIcon: \"With Icon\",\n backlog: \"Backlog\",\n toDo: \"To Do\",\n done: \"Done\",\n docs: \"Docs\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n gettingStarted: \"البدء\",\n introduction: \"مقدمة\",\n introductionDesc:\n \"مكونات قابلة لإعادة الاستخدام مبنية باستخدام Tailwind CSS.\",\n installation: \"التثبيت\",\n installationDesc: \"كيفية تثبيت التبعيات وتنظيم تطبيقك.\",\n typography: \"الطباعة\",\n typographyDesc: \"أنماط للعناوين والفقرات والقوائم...إلخ\",\n components: \"المكونات\",\n alertDialog: \"حوار التنبيه\",\n alertDialogDesc: \"حوار نافذة يقطع المستخدم بمحتوى مهم ويتوقع استجابة.\",\n hoverCard: \"بطاقة التحويم\",\n hoverCardDesc: \"للمستخدمين المبصرين لمعاينة المحتوى المتاح خلف الرابط.\",\n progress: \"التقدم\",\n progressDesc:\n \"يعرض مؤشرًا يوضح تقدم إتمام المهمة، عادةً يتم عرضه كشريط تقدم.\",\n scrollArea: \"منطقة التمرير\",\n scrollAreaDesc: \"يفصل المحتوى بصريًا أو دلاليًا.\",\n tabs: \"التبويبات\",\n tabsDesc:\n \"مجموعة من أقسام المحتوى المتعددة الطبقات، المعروفة بألواح التبويب، التي يتم عرضها واحدة في كل مرة.\",\n tooltip: \"تلميح\",\n tooltipDesc:\n \"نافذة منبثقة تعرض معلومات متعلقة بعنصر عندما يتلقى العنصر التركيز على لوحة المفاتيح أو عند تحويم الماوس فوقه.\",\n withIcon: \"مع أيقونة\",\n backlog: \"قائمة الانتظار\",\n toDo: \"المهام\",\n done: \"منجز\",\n docs: \"الوثائق\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n gettingStarted: \"התחלה\",\n introduction: \"הקדמה\",\n introductionDesc: \"רכיבים לשימוש חוזר שנבנו עם Tailwind CSS.\",\n installation: \"התקנה\",\n installationDesc: \"כיצד להתקין תלויות ולבנות את האפליקציה שלך.\",\n typography: \"טיפוגרפיה\",\n typographyDesc: \"סגנונות לכותרות, פסקאות, רשימות...וכו'\",\n components: \"רכיבים\",\n alertDialog: \"דיאלוג התראה\",\n alertDialogDesc: \"דיאלוג מודאלי שמפריע למשתמש עם תוכן חשוב ומצפה לתגובה.\",\n hoverCard: \"כרטיס ריחוף\",\n hoverCardDesc:\n \"למשתמשים רואים כדי להציג תצוגה מקדימה של תוכן זמין מאחורי קישור.\",\n progress: \"התקדמות\",\n progressDesc:\n \"מציג אינדיקטור המציג את התקדמות ההשלמה של משימה, בדרך כלל מוצג כסרגל התקדמות.\",\n scrollArea: \"אזור גלילה\",\n scrollAreaDesc: \"מפריד תוכן חזותית או סמנטית.\",\n tabs: \"כרטיסיות\",\n tabsDesc:\n \"קבוצה של חלקי תוכן מרובדים, המכונים לוחות כרטיסיות, המוצגים אחד בכל פעם.\",\n tooltip: \"טולטיפ\",\n tooltipDesc:\n \"חלון קופץ המציג מידע הקשור לאלמנט כאשר האלמנט מקבל מיקוד מקלדת או כאשר העכבר מרחף מעליו.\",\n withIcon: \"עם אייקון\",\n backlog: \"רשימת המתנה\",\n toDo: \"לעשות\",\n done: \"הושלם\",\n docs: \"תיעוד\",\n },\n },\n} as const\n\nconst components = [\n {\n titleKey: \"alertDialog\",\n descriptionKey: \"alertDialogDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/alert-dialog\",\n },\n {\n titleKey: \"hoverCard\",\n descriptionKey: \"hoverCardDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/hover-card\",\n },\n {\n titleKey: \"progress\",\n descriptionKey: \"progressDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/progress\",\n },\n {\n titleKey: \"scrollArea\",\n descriptionKey: \"scrollAreaDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/scroll-area\",\n },\n {\n titleKey: \"tabs\",\n descriptionKey: \"tabsDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/tabs\",\n },\n {\n titleKey: \"tooltip\",\n descriptionKey: \"tooltipDesc\",\n href: \"https://ui.shadcn.com/docs/components/base/tooltip\",\n },\n] as const\n\nconst language = \"ar\"\nconst { dir, values: t } = translations[language]\n\nconst gettingStarted = [\n { title: t.introduction, href: \"/docs\", description: t.introductionDesc },\n {\n title: t.installation,\n href: \"/docs/installation\",\n description: t.installationDesc,\n },\n {\n title: t.typography,\n href: \"https://ui.shadcn.com/docs/typeset\",\n description: t.typographyDesc,\n },\n]\n---\n\n<NavigationMenu dir={dir} align={dir === \"rtl\" ? \"end\" : \"start\"}>\n <NavigationMenuList>\n <NavigationMenuItem value=\"getting-started\">\n <NavigationMenuTrigger>{t.gettingStarted}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"w-96\">\n {gettingStarted.map((item) => (\n <li>\n <NavigationMenuLink href={item.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">{item.title}</div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {item.description}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"components\" class=\"hidden md:flex\">\n <NavigationMenuTrigger>{t.components}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"grid w-[400px] gap-2 md:w-[500px] md:grid-cols-2 lg:w-[600px]\">\n {components.map((component) => (\n <li>\n <NavigationMenuLink href={component.href}>\n <div class=\"flex flex-col gap-1 text-sm\">\n <div class=\"leading-none font-medium\">\n {t[component.titleKey]}\n </div>\n <div class=\"line-clamp-2 text-muted-foreground\">\n {t[component.descriptionKey]}\n </div>\n </div>\n </NavigationMenuLink>\n </li>\n ))}\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"with-icon\">\n <NavigationMenuTrigger>{t.withIcon}</NavigationMenuTrigger>\n <NavigationMenuContent\n dir={dir}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n <ul class=\"grid w-[200px]\">\n <li>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleAlertIcon />\n {t.backlog}\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleDashedIcon />\n {t.toDo}\n </NavigationMenuLink>\n <NavigationMenuLink href=\"#\" class=\"flex-row items-center gap-2\">\n <CircleCheckIcon />\n {t.done}\n </NavigationMenuLink>\n </li>\n </ul>\n </NavigationMenuContent>\n </NavigationMenuItem>\n <NavigationMenuItem value=\"docs\">\n <NavigationMenuLink\n href=\"/docs\"\n class={navigationMenuTriggerStyle()}\n data-lang={dir === \"rtl\" ? language : undefined}\n >\n {t.docs}\n </NavigationMenuLink>\n </NavigationMenuItem>\n </NavigationMenuList>\n</NavigationMenu>\n",
|
|
21
|
-
"type": "registry:component"
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"docs": "https://ui.full.dev/components/navigation-menu/",
|
|
25
|
-
"type": "registry:example"
|
|
26
|
-
}
|