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,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "hover-card-examples",
|
|
4
|
-
"title": "Hover Card examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Hover Card docs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/button",
|
|
8
|
-
"@fulldev/hover-card"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/examples/hover-card/hover-card-demo.astro",
|
|
13
|
-
"content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/components/ui/hover-card\"\n---\n\n<HoverCard delay={10} closeDelay={100}>\n <HoverCardTrigger class={buttonVariants({ variant: \"link\" })}>\n Hover Here\n </HoverCardTrigger>\n <HoverCardContent class=\"flex w-64 flex-col gap-0.5\">\n <div class=\"font-semibold\">@nextjs</div>\n <div>The React Framework – created and maintained by @vercel.</div>\n <div class=\"mt-1 text-xs text-muted-foreground\">Joined December 2021</div>\n </HoverCardContent>\n</HoverCard>\n",
|
|
14
|
-
"type": "registry:component"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/examples/hover-card/hover-card-rtl.astro",
|
|
18
|
-
"content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/components/ui/hover-card\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n trigger: \"Wireless Headphones\",\n name: \"Wireless Headphones\",\n price: \"$99.99\",\n \"inline-start\": \"Inline Start\",\n left: \"Left\",\n top: \"Top\",\n bottom: \"Bottom\",\n right: \"Right\",\n \"inline-end\": \"Inline End\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n trigger: \"سماعات لاسلكية\",\n name: \"سماعات لاسلكية\",\n price: \"٩٩.٩٩ $\",\n \"inline-start\": \"بداية السطر\",\n left: \"يسار\",\n top: \"أعلى\",\n bottom: \"أسفل\",\n right: \"يمين\",\n \"inline-end\": \"نهاية السطر\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n trigger: \"אוזניות אלחוטיות\",\n name: \"אוזניות אלחוטיות\",\n price: \"99.99 $\",\n \"inline-start\": \"תחילת השורה\",\n left: \"שמאל\",\n top: \"למעלה\",\n bottom: \"למטה\",\n right: \"ימין\",\n \"inline-end\": \"סוף השורה\",\n },\n },\n} as const\n\nconst physicalSides = [\"left\", \"top\", \"bottom\", \"right\"] as const\nconst logicalSides = [\"inline-start\", \"inline-end\"] as const\n\nconst { dir, values: t } = translations.ar\n\n// HoverCard takes physical sides only: resolve the logical ones for `dir`.\nconst physicalSide = (side: (typeof logicalSides)[number]) =>\n (side === \"inline-start\") === (dir === \"rtl\") ? \"right\" : \"left\"\n---\n\n<div class=\"grid gap-4\">\n <div class=\"flex flex-wrap justify-center gap-2\">\n {physicalSides.map((side) => (\n <HoverCard delay={10} closeDelay={100}>\n <HoverCardTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </HoverCardTrigger>\n <HoverCardContent\n side={side}\n class=\"flex w-64 flex-col gap-1\"\n dir={dir}\n >\n <div class=\"font-semibold\">{t.name}</div>\n <div class=\"text-sm text-muted-foreground\">{t.price}</div>\n </HoverCardContent>\n </HoverCard>\n ))}\n </div>\n <div class=\"flex flex-wrap justify-center gap-2\">\n {logicalSides.map((side) => (\n <HoverCard delay={10} closeDelay={100}>\n <HoverCardTrigger class={buttonVariants({ variant: \"outline\" })}>\n {t[side]}\n </HoverCardTrigger>\n <HoverCardContent\n side={physicalSide(side)}\n class=\"flex w-64 flex-col gap-1\"\n dir={dir}\n >\n <div class=\"font-semibold\">{t.name}</div>\n <div class=\"text-sm text-muted-foreground\">{t.price}</div>\n </HoverCardContent>\n </HoverCard>\n ))}\n </div>\n</div>\n",
|
|
19
|
-
"type": "registry:component"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/examples/hover-card/hover-card-sides.astro",
|
|
23
|
-
"content": "---\nimport { buttonVariants } from \"@/components/ui/button\"\nimport {\n HoverCard,\n HoverCardContent,\n HoverCardTrigger,\n} from \"@/components/ui/hover-card\"\n\nconst HOVER_CARD_SIDES = [\"left\", \"top\", \"bottom\", \"right\"] as const\n---\n\n<div class=\"flex flex-wrap justify-center gap-2\">\n {HOVER_CARD_SIDES.map((side) => (\n <HoverCard delay={100} closeDelay={100}>\n <HoverCardTrigger\n class={buttonVariants({ variant: \"outline\", class: \"capitalize\" })}\n >\n {side}\n </HoverCardTrigger>\n <HoverCardContent side={side}>\n <div class=\"flex flex-col gap-1\">\n <p class=\"font-medium\">Hover Card</p>\n <p>This hover card appears on the {side} side of the trigger.</p>\n </div>\n </HoverCardContent>\n </HoverCard>\n ))}\n</div>\n",
|
|
24
|
-
"type": "registry:component"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"docs": "https://ui.full.dev/components/hover-card/",
|
|
28
|
-
"type": "registry:example"
|
|
29
|
-
}
|
package/public/r/hover-card.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "hover-card",
|
|
4
|
-
"title": "Hover Card",
|
|
5
|
-
"description": "For sighted users to preview content available behind a link.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@data-slot/hover-card@^1.1.2",
|
|
8
|
-
"@data-slot/core@^1.1.2"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/ui/hover-card/hover-card.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n mountStrategy?: \"lazy\" | \"eager\"\n defaultOpen?: boolean\n open?: boolean\n delay?: number\n skipDelayDuration?: number\n closeDelay?: number\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n align?: \"start\" | \"center\" | \"end\"\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n portal?: boolean\n closeOnClickOutside?: boolean\n closeOnEscape?: boolean\n}\n\nconst {\n mountStrategy,\n class: className,\n defaultOpen,\n open,\n delay = 700,\n skipDelayDuration = 300,\n closeDelay = 300,\n side = \"bottom\",\n align = \"center\",\n sideOffset = 4,\n alignOffset = 0,\n avoidCollisions = true,\n collisionPadding = 8,\n portal = true,\n closeOnClickOutside = true,\n closeOnEscape = true,\n ...props\n} = Astro.props\n---\n\n<div\n data-slot=\"hover-card\"\n data-mount-strategy={mountStrategy}\n data-default-open={defaultOpen}\n data-controlled-open={open}\n data-delay={delay}\n data-skip-delay-duration={skipDelayDuration}\n data-close-delay={closeDelay}\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-avoid-collisions={avoidCollisions}\n data-collision-padding={collisionPadding}\n data-portal={portal}\n data-close-on-click-outside={closeOnClickOutside}\n data-close-on-escape={closeOnEscape}\n class={cn(className)}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n import { getDataBool, getRoots, hasRootBinding } from \"@data-slot/core\"\n import { createHoverCard } from \"@data-slot/hover-card\"\n\n const controllers: ReturnType<typeof createHoverCard>[] = []\n const initialize = () => {\n for (const root of getRoots(document, \"hover-card\")) {\n if (hasRootBinding(root, \"@data-slot/hover-card\")) continue\n controllers.push(\n createHoverCard(root, { open: getDataBool(root, \"controlledOpen\") })\n )\n }\n }\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n document.addEventListener(\"astro:before-swap\", () => {\n for (const controller of controllers) controller.destroy()\n controllers.length = 0\n })\n</script>\n",
|
|
14
|
-
"type": "registry:ui"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/ui/hover-card/hover-card-content.astro",
|
|
18
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"div\"> & {\n side?: \"top\" | \"right\" | \"bottom\" | \"left\"\n align?: \"start\" | \"center\" | \"end\"\n sideOffset?: number\n alignOffset?: number\n avoidCollisions?: boolean\n collisionPadding?: number\n}\n\nconst {\n class: className,\n hidden = true,\n side,\n align,\n sideOffset,\n alignOffset,\n avoidCollisions,\n collisionPadding,\n ...props\n} = Astro.props\n---\n\n<div data-slot=\"hover-card-portal\">\n <div\n data-slot=\"hover-card-positioner\"\n data-side={side}\n data-align={align}\n data-side-offset={sideOffset}\n data-align-offset={alignOffset}\n data-avoid-collisions={avoidCollisions}\n data-collision-padding={collisionPadding}\n class=\"isolate z-[1000]\"\n >\n <div\n data-slot=\"hover-card-content\"\n hidden={hidden}\n class={cn(\n \"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-4 text-sm shadow-md ring-1 duration-100 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 origin-(--transform-origin) outline-hidden\",\n className\n )}\n {...props}\n >\n <slot />\n </div>\n </div>\n</div>\n",
|
|
19
|
-
"type": "registry:ui"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"path": "src/components/ui/hover-card/hover-card-trigger.astro",
|
|
23
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"button\"> &\n HTMLAttributes<\"a\"> &\n HTMLAttributes<\"div\"> &\n HTMLAttributes<\"span\"> & {\n as?: \"a\" | \"button\" | \"div\" | \"span\"\n href?: string\n }\n\nconst { as: explicitTag, class: className, type, ...props } = Astro.props\n\nconst Tag = explicitTag || (\"href\" in Astro.props ? \"a\" : \"button\")\n---\n\n<Tag\n data-slot=\"hover-card-trigger\"\n type={Tag === \"button\" ? type || \"button\" : undefined}\n class={cn(className)}\n {...props}\n>\n <slot />\n</Tag>\n",
|
|
24
|
-
"type": "registry:ui"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/components/ui/hover-card/index.ts",
|
|
28
|
-
"content": "export { default as HoverCard } from \"./hover-card.astro\"\nexport { default as HoverCardContent } from \"./hover-card-content.astro\"\nexport { default as HoverCardTrigger } from \"./hover-card-trigger.astro\"\n",
|
|
29
|
-
"type": "registry:ui"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"docs": "https://ui.full.dev/components/hover-card/",
|
|
33
|
-
"categories": [
|
|
34
|
-
"ui"
|
|
35
|
-
],
|
|
36
|
-
"type": "registry:ui"
|
|
37
|
-
}
|
package/public/r/icon.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "icon",
|
|
4
|
-
"title": "Icon",
|
|
5
|
-
"description": "Render Fulldev content icons or use Lucide and Simple Icons directly in Astro.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"lucide-static",
|
|
8
|
-
"simple-icons"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
{
|
|
12
|
-
"path": "src/components/ui/icon/icon.astro",
|
|
13
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\ntype Props = Omit<HTMLAttributes<\"svg\">, \"name\" | \"href\"> & {\n href?: HTMLAttributes<\"a\">[\"href\"]\n name?: string | number\n}\n\nconst { name, href, \"data-slot\": dataSlot = \"icon\", ...props } = Astro.props\n\nconst hrefMap = {\n \"x.com\": \"x\",\n twitter: \"twitter\",\n facebook: \"facebook\",\n instagram: \"instagram\",\n pinterest: \"pinterest\",\n youtube: \"youtube\",\n tiktok: \"tiktok\",\n snapchat: \"snapchat\",\n reddit: \"reddit\",\n tumblr: \"tumblr\",\n \"wa.me\": \"whatsapp\",\n telegram: \"telegram\",\n discord: \"discord\",\n vimeo: \"vimeo\",\n flickr: \"flickr\",\n yelp: \"yelp\",\n spotify: \"spotify\",\n behance: \"behance\",\n dribbble: \"dribbble\",\n soundcloud: \"soundcloud\",\n github: \"github\",\n twitch: \"twitch\",\n \"tel:\": \"phone\",\n \"mailto:\": \"mail\",\n \"maps.app.goo.gl\": \"map-pin\",\n linkedin: \"linkedin\",\n} as const\n\ntype Source = \"lucide\" | \"simple\"\n\nconst icons: Record<Source, Record<string, () => Promise<unknown>>> = {\n lucide: import.meta.glob(\"/node_modules/lucide-static/icons/*.svg\"),\n simple: import.meta.glob(\"/node_modules/simple-icons/icons/*.svg\"),\n}\n\nconst pathFor = (source: Source, icon: string) =>\n source === \"lucide\"\n ? `/node_modules/lucide-static/icons/${icon}.svg`\n : `/node_modules/simple-icons/icons/${icon}.svg`\n\n// Resolve an icon by explicit name, or derive one from a link href.\n// Names may be prefixed with `lucide:` or `simple:` to pick a set when both\n// sets contain the same name (for example `github` or `figma`).\nconst hasName = name != null && name !== \"\"\n\nconst resolve = () => {\n let key = hasName ? String(name) : undefined\n let order: Source[] = [\"lucide\", \"simple\"]\n\n if (!key && href) {\n const hrefKey = Object.keys(hrefMap).find((candidate) =>\n href.toString().includes(candidate)\n )\n if (hrefKey) {\n key = hrefMap[hrefKey as keyof typeof hrefMap]\n order = [\"simple\", \"lucide\"]\n }\n }\n\n const linkIcon = {\n source: \"lucide\" as const,\n path: pathFor(\"lucide\", \"link\"),\n }\n\n if (!key) return href ? linkIcon : undefined\n if (key === \"x.com\") key = \"simple:x\"\n\n const [prefix, icon] = key.includes(\":\") ? key.split(\":\") : [undefined, key]\n if (prefix === \"lucide\" || prefix === \"simple\") order = [prefix]\n\n for (const source of order) {\n const path = pathFor(source, icon)\n if (path in icons[source]) return { source, path }\n }\n\n // A link always gets an icon, even when its brand has no logo in either set\n // (Simple Icons removed LinkedIn, for example).\n if (!hasName && href) return linkIcon\n\n return undefined\n}\n\nconst resolved = resolve()\nconst module = resolved\n ? ((await icons[resolved.source][resolved.path]()) as { default?: any })\n : undefined\nconst Comp = module?.default\n\nconst isLabelled =\n \"aria-label\" in props || \"aria-labelledby\" in props || \"role\" in props\n---\n\n{Comp && resolved && (\n <Comp\n height={24}\n width={24}\n fill={resolved.source === \"simple\" ? \"currentColor\" : \"none\"}\n class=\"size-[1em] text-base\"\n aria-hidden={isLabelled ? undefined : \"true\"}\n data-slot={dataSlot}\n {...props}\n />\n)}\n",
|
|
14
|
-
"type": "registry:ui"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "src/components/ui/icon/index.ts",
|
|
18
|
-
"content": "export { default as Icon } from \"./icon.astro\"\n",
|
|
19
|
-
"type": "registry:ui"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"docs": "https://ui.full.dev/components/icon/",
|
|
23
|
-
"categories": [
|
|
24
|
-
"ui"
|
|
25
|
-
],
|
|
26
|
-
"type": "registry:ui"
|
|
27
|
-
}
|
package/public/r/init.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "init",
|
|
4
|
-
"title": "Init",
|
|
5
|
-
"description": "Class helper, dependencies, and base styles for an existing project. Leaves theme tokens alone.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"class-variance-authority",
|
|
8
|
-
"cn",
|
|
9
|
-
"shadcn",
|
|
10
|
-
"tw-animate-css"
|
|
11
|
-
],
|
|
12
|
-
"files": [
|
|
13
|
-
{
|
|
14
|
-
"path": "src/lib/utils.ts",
|
|
15
|
-
"content": "export { cn } from \"cn\"\n",
|
|
16
|
-
"type": "registry:lib"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"css": {
|
|
20
|
-
"@import \"tw-animate-css\"": {},
|
|
21
|
-
"@import \"shadcn/tailwind.css\"": {},
|
|
22
|
-
"@layer base": {
|
|
23
|
-
"*": {
|
|
24
|
-
"@apply border-border outline-ring/50": {}
|
|
25
|
-
},
|
|
26
|
-
"html": {
|
|
27
|
-
"@apply font-sans": {}
|
|
28
|
-
},
|
|
29
|
-
"body": {
|
|
30
|
-
"@apply bg-background text-foreground": {}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"@media (prefers-reduced-motion: reduce)": {
|
|
34
|
-
"*, ::before, ::after": {
|
|
35
|
-
"animation-duration": "0.01ms !important",
|
|
36
|
-
"animation-iteration-count": "1 !important",
|
|
37
|
-
"transition-duration": "0.01ms !important",
|
|
38
|
-
"scroll-behavior": "auto !important"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"docs": "https://ui.full.dev/docs/installation/",
|
|
43
|
-
"type": "registry:lib"
|
|
44
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "input-examples",
|
|
4
|
-
"title": "Input examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Input docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/badge",
|
|
11
|
-
"@fulldev/button",
|
|
12
|
-
"@fulldev/button-group",
|
|
13
|
-
"@fulldev/field",
|
|
14
|
-
"@fulldev/input",
|
|
15
|
-
"@fulldev/input-group",
|
|
16
|
-
"@fulldev/select"
|
|
17
|
-
],
|
|
18
|
-
"files": [
|
|
19
|
-
{
|
|
20
|
-
"path": "src/components/examples/input/input-badge.astro",
|
|
21
|
-
"content": "---\nimport { Badge } from \"@/components/ui/badge\"\nimport { Field, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"input-badge\">\n Webhook URL{\" \"}\n <Badge variant=\"secondary\" class=\"ml-auto\">\n Beta\n </Badge>\n </FieldLabel>\n <Input\n id=\"input-badge\"\n type=\"url\"\n placeholder=\"https://api.example.com/webhook\"\n />\n</Field>\n",
|
|
22
|
-
"type": "registry:component"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"path": "src/components/examples/input/input-basic.astro",
|
|
26
|
-
"content": "---\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Input placeholder=\"Enter text\" />\n",
|
|
27
|
-
"type": "registry:component"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"path": "src/components/examples/input/input-button-group.astro",
|
|
31
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { ButtonGroup } from \"@/components/ui/button-group\"\nimport { Field, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"input-button-group\">Search</FieldLabel>\n <ButtonGroup>\n <Input id=\"input-button-group\" placeholder=\"Type to search...\" />\n <Button variant=\"outline\">Search</Button>\n </ButtonGroup>\n</Field>\n",
|
|
32
|
-
"type": "registry:component"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"path": "src/components/examples/input/input-demo.astro",
|
|
36
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"input-demo-api-key\">API Key</FieldLabel>\n <Input id=\"input-demo-api-key\" type=\"password\" placeholder=\"sk-...\" />\n <FieldDescription>\n Your API key is encrypted and stored securely.\n </FieldDescription>\n</Field>\n",
|
|
37
|
-
"type": "registry:component"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"path": "src/components/examples/input/input-disabled.astro",
|
|
41
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field data-disabled=\"true\">\n <FieldLabel for=\"input-demo-disabled\">Email</FieldLabel>\n <Input id=\"input-demo-disabled\" type=\"email\" placeholder=\"Email\" disabled />\n <FieldDescription>This field is currently disabled.</FieldDescription>\n</Field>\n",
|
|
42
|
-
"type": "registry:component"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "src/components/examples/input/input-field.astro",
|
|
46
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"input-field-username\">Username</FieldLabel>\n <Input\n id=\"input-field-username\"\n type=\"text\"\n placeholder=\"Enter your username\"\n />\n <FieldDescription>\n Choose a unique username for your account.\n </FieldDescription>\n</Field>\n",
|
|
47
|
-
"type": "registry:component"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"path": "src/components/examples/input/input-fieldgroup.astro",
|
|
51
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<FieldGroup>\n <Field>\n <FieldLabel for=\"fieldgroup-name\">Name</FieldLabel>\n <Input id=\"fieldgroup-name\" placeholder=\"Jordan Lee\" />\n </Field>\n <Field>\n <FieldLabel for=\"fieldgroup-email\">Email</FieldLabel>\n <Input id=\"fieldgroup-email\" type=\"email\" placeholder=\"name@example.com\" />\n <FieldDescription>\n We'll send updates to this address.\n </FieldDescription>\n </Field>\n <Field orientation=\"horizontal\">\n <Button type=\"reset\" variant=\"outline\">\n Reset\n </Button>\n <Button type=\"submit\">Submit</Button>\n </Field>\n</FieldGroup>\n",
|
|
52
|
-
"type": "registry:component"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"path": "src/components/examples/input/input-file.astro",
|
|
56
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"picture\">Picture</FieldLabel>\n <Input id=\"picture\" type=\"file\" />\n <FieldDescription>Select a picture to upload.</FieldDescription>\n</Field>\n",
|
|
57
|
-
"type": "registry:component"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"path": "src/components/examples/input/input-form.astro",
|
|
61
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/components/ui/select\"\n\nconst countries = [\n { label: \"United States\", value: \"us\" },\n { label: \"United Kingdom\", value: \"uk\" },\n { label: \"Canada\", value: \"ca\" },\n]\n---\n\n<form class=\"w-full max-w-sm\">\n <FieldGroup>\n <Field>\n <FieldLabel for=\"form-name\">Name</FieldLabel>\n <Input id=\"form-name\" type=\"text\" placeholder=\"Evil Rabbit\" required />\n </Field>\n <Field>\n <FieldLabel for=\"form-email\">Email</FieldLabel>\n <Input id=\"form-email\" type=\"email\" placeholder=\"john@example.com\" />\n <FieldDescription>\n We'll never share your email with anyone.\n </FieldDescription>\n </Field>\n <div class=\"grid grid-cols-2 gap-4\">\n <Field>\n <FieldLabel for=\"form-phone\">Phone</FieldLabel>\n <Input id=\"form-phone\" type=\"tel\" placeholder=\"+1 (555) 123-4567\" />\n </Field>\n <Field>\n <FieldLabel for=\"form-country\">Country</FieldLabel>\n <Select defaultValue=\"us\">\n <SelectTrigger id=\"form-country\" class=\"w-full\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n <SelectGroup>\n {countries.map((country) => (\n <SelectItem value={country.value}>{country.label}</SelectItem>\n ))}\n </SelectGroup>\n </SelectContent>\n </Select>\n </Field>\n </div>\n <Field>\n <FieldLabel for=\"form-address\">Address</FieldLabel>\n <Input id=\"form-address\" type=\"text\" placeholder=\"123 Main St\" />\n </Field>\n <Field orientation=\"horizontal\">\n <Button type=\"button\" variant=\"outline\">\n Cancel\n </Button>\n <Button type=\"submit\">Submit</Button>\n </Field>\n </FieldGroup>\n</form>\n",
|
|
62
|
-
"type": "registry:component"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"path": "src/components/examples/input/input-grid.astro",
|
|
66
|
-
"content": "---\nimport { Field, FieldGroup, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<FieldGroup class=\"grid max-w-sm grid-cols-2\">\n <Field>\n <FieldLabel for=\"first-name\">First Name</FieldLabel>\n <Input id=\"first-name\" placeholder=\"Jordan\" />\n </Field>\n <Field>\n <FieldLabel for=\"last-name\">Last Name</FieldLabel>\n <Input id=\"last-name\" placeholder=\"Lee\" />\n </Field>\n</FieldGroup>\n",
|
|
67
|
-
"type": "registry:component"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"path": "src/components/examples/input/input-inline.astro",
|
|
71
|
-
"content": "---\nimport { Button } from \"@/components/ui/button\"\nimport { Field } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field orientation=\"horizontal\">\n <Input type=\"search\" placeholder=\"Search...\" />\n <Button>Search</Button>\n</Field>\n",
|
|
72
|
-
"type": "registry:component"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "src/components/examples/input/input-input-group.astro",
|
|
76
|
-
"content": "---\nimport InfoIcon from \"@lucide/astro/icons/info\"\n\nimport { Field, FieldLabel } from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n InputGroupText,\n} from \"@/components/ui/input-group\"\n---\n\n<Field>\n <FieldLabel for=\"input-group-url\">Website URL</FieldLabel>\n <InputGroup>\n <InputGroupInput id=\"input-group-url\" placeholder=\"example.com\" />\n <InputGroupAddon>\n <InputGroupText>https://</InputGroupText>\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <InfoIcon />\n </InputGroupAddon>\n </InputGroup>\n</Field>\n",
|
|
77
|
-
"type": "registry:component"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"path": "src/components/examples/input/input-invalid.astro",
|
|
81
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field data-invalid=\"true\">\n <FieldLabel for=\"input-invalid\">Invalid Input</FieldLabel>\n <Input id=\"input-invalid\" placeholder=\"Error\" aria-invalid=\"true\" />\n <FieldDescription>This field contains validation errors.</FieldDescription>\n</Field>\n",
|
|
82
|
-
"type": "registry:component"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"path": "src/components/examples/input/input-required.astro",
|
|
86
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n---\n\n<Field>\n <FieldLabel for=\"input-required\">\n Required Field <span class=\"text-destructive\">*</span>\n </FieldLabel>\n <Input id=\"input-required\" placeholder=\"This field is required\" required />\n <FieldDescription>This field must be filled out.</FieldDescription>\n</Field>\n",
|
|
87
|
-
"type": "registry:component"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"path": "src/components/examples/input/input-rtl.astro",
|
|
91
|
-
"content": "---\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport { Input } from \"@/components/ui/input\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n apiKey: \"API Key\",\n placeholder: \"sk-...\",\n description: \"Your API key is encrypted and stored securely.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n apiKey: \"مفتاح API\",\n placeholder: \"sk-...\",\n description: \"مفتاح API الخاص بك مشفر ومخزن بأمان.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n apiKey: \"מפתח API\",\n placeholder: \"sk-...\",\n description: \"מפתח ה-API שלך מוצפן ונשמר בצורה מאובטחת.\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<Field dir={dir}>\n <FieldLabel for=\"input-rtl-api-key\">{t.apiKey}</FieldLabel>\n <Input\n id=\"input-rtl-api-key\"\n type=\"password\"\n placeholder={t.placeholder}\n dir={dir}\n />\n <FieldDescription>{t.description}</FieldDescription>\n</Field>\n",
|
|
92
|
-
"type": "registry:component"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"docs": "https://ui.full.dev/components/input/",
|
|
96
|
-
"type": "registry:example"
|
|
97
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "input-group-examples",
|
|
4
|
-
"title": "Input Group examples",
|
|
5
|
-
"description": "The examples from the shadcn/ui Input Group docs.",
|
|
6
|
-
"dependencies": [
|
|
7
|
-
"@lucide/astro"
|
|
8
|
-
],
|
|
9
|
-
"registryDependencies": [
|
|
10
|
-
"@fulldev/dropdown-menu",
|
|
11
|
-
"@fulldev/field",
|
|
12
|
-
"@fulldev/input-group",
|
|
13
|
-
"@fulldev/kbd",
|
|
14
|
-
"@fulldev/popover",
|
|
15
|
-
"@fulldev/spinner"
|
|
16
|
-
],
|
|
17
|
-
"files": [
|
|
18
|
-
{
|
|
19
|
-
"path": "src/components/examples/input-group/input-group-block-end.astro",
|
|
20
|
-
"content": "---\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/components/ui/input-group\"\n---\n\n<FieldGroup class=\"max-w-sm\">\n <Field>\n <FieldLabel for=\"block-end-input\">Input</FieldLabel>\n <InputGroup class=\"h-auto\">\n <InputGroupInput id=\"block-end-input\" placeholder=\"Enter amount\" />\n <InputGroupAddon align=\"block-end\">\n <InputGroupText>USD</InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Footer positioned below the input.</FieldDescription>\n </Field>\n <Field>\n <FieldLabel for=\"block-end-textarea\">Textarea</FieldLabel>\n <InputGroup>\n <InputGroupTextarea\n id=\"block-end-textarea\"\n placeholder=\"Write a comment...\"\n />\n <InputGroupAddon align=\"block-end\">\n <InputGroupText>0/280</InputGroupText>\n <InputGroupButton variant=\"default\" size=\"sm\" class=\"ml-auto\">\n Post\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Footer positioned below the textarea.</FieldDescription>\n </Field>\n</FieldGroup>\n",
|
|
21
|
-
"type": "registry:component"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "src/components/examples/input-group/input-group-block-start.astro",
|
|
25
|
-
"content": "---\nimport CopyIcon from \"@lucide/astro/icons/copy\"\nimport FileCodeIcon from \"@lucide/astro/icons/file-code\"\n\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/components/ui/input-group\"\n---\n\n<FieldGroup class=\"max-w-sm\">\n <Field>\n <FieldLabel for=\"block-start-input\">Input</FieldLabel>\n <InputGroup class=\"h-auto\">\n <InputGroupInput id=\"block-start-input\" placeholder=\"Enter your name\" />\n <InputGroupAddon align=\"block-start\">\n <InputGroupText>Full Name</InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Header positioned above the input.</FieldDescription>\n </Field>\n <Field>\n <FieldLabel for=\"block-start-textarea\">Textarea</FieldLabel>\n <InputGroup>\n <InputGroupTextarea\n id=\"block-start-textarea\"\n placeholder=\"console.log('Hello, world!');\"\n class=\"font-mono text-sm\"\n />\n <InputGroupAddon align=\"block-start\">\n <FileCodeIcon class=\"text-muted-foreground\" />\n <InputGroupText class=\"font-mono\">script.js</InputGroupText>\n <InputGroupButton size=\"icon-xs\" class=\"ml-auto\">\n <CopyIcon />\n <span class=\"sr-only\">Copy</span>\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Header positioned above the textarea.</FieldDescription>\n </Field>\n</FieldGroup>\n",
|
|
26
|
-
"type": "registry:component"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "src/components/examples/input-group/input-group-button.astro",
|
|
30
|
-
"content": "---\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\nimport { Popover, PopoverContent } from \"@/components/ui/popover\"\n---\n\n<div class=\"grid w-full max-w-sm gap-6\" data-input-group-button-example>\n <InputGroup>\n <InputGroupInput placeholder=\"https://x.com/shadcn\" readonly />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupButton\n aria-label=\"Copy\"\n title=\"Copy\"\n size=\"icon-xs\"\n data-copy-value=\"https://x.com/shadcn\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-check hidden\"\n data-copied-icon\n >\n <path d=\"M5 12l5 5l10 -10\"></path>\n </svg>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-copy\"\n data-copy-icon\n >\n <path d=\"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666\"></path>\n <path d=\"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\"></path>\n </svg>\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup class=\"[--radius:9999px]\">\n <InputGroupAddon>\n <Popover>\n <InputGroupButton\n data-slot=\"popover-trigger\"\n variant=\"secondary\"\n size=\"icon-xs\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-info-circle\"\n >\n <path d=\"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0\"></path>\n <path d=\"M12 9h.01\"></path>\n <path d=\"M11 12h1v4h1\"></path>\n </svg>\n </InputGroupButton>\n <PopoverContent\n align=\"start\"\n class=\"flex flex-col gap-1 rounded-xl text-sm\"\n >\n <p class=\"font-medium\">Your connection is not secure.</p>\n <p>You should not enter any sensitive information on this site.</p>\n </PopoverContent>\n </Popover>\n </InputGroupAddon>\n <InputGroupAddon class=\"pl-1.5 text-muted-foreground\">\n https://\n </InputGroupAddon>\n <InputGroupInput id=\"input-secure-19\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupButton size=\"icon-xs\" data-favorite-toggle>\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-star data-[favorite=true]:fill-blue-600 data-[favorite=true]:stroke-blue-600\"\n data-favorite=\"false\"\n >\n <path d=\"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245\"></path>\n </svg>\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Type to search...\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupButton variant=\"secondary\">Search</InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n</div>\n\n<script>\n const initialize = () => {\n for (const root of document.querySelectorAll<HTMLElement>(\n \"[data-input-group-button-example]\"\n )) {\n if (root.hasAttribute(\"data-bound\")) continue\n root.setAttribute(\"data-bound\", \"\")\n\n const copy = root.querySelector<HTMLElement>(\"[data-copy-value]\")!\n const copyIcon = copy.querySelector(\"[data-copy-icon]\")!\n const copiedIcon = copy.querySelector(\"[data-copied-icon]\")!\n let timeout: ReturnType<typeof setTimeout> | undefined\n const setCopied = (copied: boolean) => {\n copiedIcon.classList.toggle(\"hidden\", !copied)\n copyIcon.classList.toggle(\"hidden\", copied)\n }\n copy.addEventListener(\"click\", async () => {\n try {\n await navigator.clipboard.writeText(copy.dataset.copyValue!)\n } catch {\n return\n }\n setCopied(true)\n clearTimeout(timeout)\n timeout = setTimeout(() => setCopied(false), 2000)\n })\n\n const favorite = root.querySelector(\"[data-favorite-toggle]\")!\n const star = favorite.querySelector<SVGElement>(\"[data-favorite]\")!\n favorite.addEventListener(\"click\", () => {\n star.dataset.favorite = String(star.dataset.favorite !== \"true\")\n })\n }\n }\n\n initialize()\n document.addEventListener(\"astro:page-load\", initialize)\n</script>\n",
|
|
31
|
-
"type": "registry:component"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "src/components/examples/input-group/input-group-custom.astro",
|
|
35
|
-
"content": "---\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n} from \"@/components/ui/input-group\"\n---\n\n<div class=\"grid w-full max-w-sm gap-6\">\n <InputGroup>\n <textarea\n data-slot=\"input-group-control\"\n class=\"flex field-sizing-content min-h-16 w-full resize-none rounded-md bg-transparent px-3 py-2.5 text-base transition-[color,box-shadow] outline-none md:text-sm\"\n placeholder=\"Autoresize textarea...\"\n ></textarea>\n <InputGroupAddon align=\"block-end\">\n <InputGroupButton class=\"ml-auto\" size=\"sm\" variant=\"default\">\n Submit\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
36
|
-
"type": "registry:component"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "src/components/examples/input-group/input-group-demo.astro",
|
|
40
|
-
"content": "---\nimport SearchIcon from \"@lucide/astro/icons/search\"\n\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n---\n\n<InputGroup class=\"max-w-xs\">\n <InputGroupInput placeholder=\"Search...\" />\n <InputGroupAddon>\n <SearchIcon />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">12 results</InputGroupAddon>\n</InputGroup>\n",
|
|
41
|
-
"type": "registry:component"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"path": "src/components/examples/input-group/input-group-dropdown.astro",
|
|
45
|
-
"content": "---\nimport ChevronDownIcon from \"@lucide/astro/icons/chevron-down\"\nimport MoreHorizontal from \"@lucide/astro/icons/ellipsis\"\n\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n} from \"@/components/ui/dropdown-menu\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n---\n\n<div class=\"grid w-full max-w-sm gap-4\">\n <InputGroup>\n <InputGroupInput placeholder=\"Enter file name\" />\n <InputGroupAddon align=\"inline-end\">\n <DropdownMenu>\n <InputGroupButton\n data-slot=\"dropdown-menu-trigger\"\n variant=\"ghost\"\n aria-label=\"More\"\n size=\"icon-xs\"\n >\n <MoreHorizontal />\n </InputGroupButton>\n <DropdownMenuContent align=\"end\" sideOffset={8} alignOffset={-4}>\n <DropdownMenuGroup>\n <DropdownMenuItem>Settings</DropdownMenuItem>\n <DropdownMenuItem>Copy path</DropdownMenuItem>\n <DropdownMenuItem>Open location</DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Enter search query\" />\n <InputGroupAddon align=\"inline-end\">\n <DropdownMenu>\n <InputGroupButton\n data-slot=\"dropdown-menu-trigger\"\n variant=\"ghost\"\n class=\"pr-1.5! text-xs\"\n >\n Search In... <ChevronDownIcon class=\"size-3\" />\n </InputGroupButton>\n <DropdownMenuContent align=\"end\" sideOffset={8} alignOffset={-4}>\n <DropdownMenuGroup>\n <DropdownMenuItem>Documentation</DropdownMenuItem>\n <DropdownMenuItem>Blog Posts</DropdownMenuItem>\n <DropdownMenuItem>Changelog</DropdownMenuItem>\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
46
|
-
"type": "registry:component"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "src/components/examples/input-group/input-group-icon.astro",
|
|
50
|
-
"content": "---\nimport CheckIcon from \"@lucide/astro/icons/check\"\nimport CreditCardIcon from \"@lucide/astro/icons/credit-card\"\nimport InfoIcon from \"@lucide/astro/icons/info\"\nimport MailIcon from \"@lucide/astro/icons/mail\"\nimport SearchIcon from \"@lucide/astro/icons/search\"\nimport StarIcon from \"@lucide/astro/icons/star\"\n\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n---\n\n<div class=\"grid w-full max-w-sm gap-6\">\n <InputGroup>\n <InputGroupInput placeholder=\"Search...\" />\n <InputGroupAddon>\n <SearchIcon />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput type=\"email\" placeholder=\"Enter your email\" />\n <InputGroupAddon>\n <MailIcon />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Card number\" />\n <InputGroupAddon>\n <CreditCardIcon />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <CheckIcon />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Card number\" />\n <InputGroupAddon align=\"inline-end\">\n <StarIcon />\n <InfoIcon />\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
51
|
-
"type": "registry:component"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"path": "src/components/examples/input-group/input-group-inline-end.astro",
|
|
55
|
-
"content": "---\nimport EyeOffIcon from \"@lucide/astro/icons/eye-off\"\n\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n---\n\n<Field class=\"max-w-sm\">\n <FieldLabel for=\"inline-end-input\">Input</FieldLabel>\n <InputGroup>\n <InputGroupInput\n id=\"inline-end-input\"\n type=\"password\"\n placeholder=\"Enter password\"\n />\n <InputGroupAddon align=\"inline-end\">\n <EyeOffIcon />\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Icon positioned at the end.</FieldDescription>\n</Field>\n",
|
|
56
|
-
"type": "registry:component"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"path": "src/components/examples/input-group/input-group-inline-start.astro",
|
|
60
|
-
"content": "---\nimport SearchIcon from \"@lucide/astro/icons/search\"\n\nimport { Field, FieldDescription, FieldLabel } from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/components/ui/input-group\"\n---\n\n<Field class=\"max-w-sm\">\n <FieldLabel for=\"inline-start-input\">Input</FieldLabel>\n <InputGroup>\n <InputGroupInput id=\"inline-start-input\" placeholder=\"Search...\" />\n <InputGroupAddon align=\"inline-start\">\n <SearchIcon class=\"text-muted-foreground\" />\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>Icon positioned at the start.</FieldDescription>\n</Field>\n",
|
|
61
|
-
"type": "registry:component"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"path": "src/components/examples/input-group/input-group-kbd.astro",
|
|
65
|
-
"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<InputGroup class=\"max-w-sm\">\n <InputGroupInput placeholder=\"Search...\" />\n <InputGroupAddon>\n <SearchIcon class=\"text-muted-foreground\" />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <Kbd>⌘K</Kbd>\n </InputGroupAddon>\n</InputGroup>\n",
|
|
66
|
-
"type": "registry:component"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "src/components/examples/input-group/input-group-rtl.astro",
|
|
70
|
-
"content": "---\nimport SearchIcon from \"@lucide/astro/icons/search\"\n\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/components/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/components/ui/input-group\"\nimport { Spinner } from \"@/components/ui/spinner\"\n\nconst translations = {\n en: {\n dir: \"ltr\",\n values: {\n placeholder: \"Search...\",\n results: \"12 results\",\n searching: \"Searching...\",\n saving: \"Saving...\",\n savingChanges: \"Saving changes...\",\n textareaLabel: \"Textarea\",\n textareaPlaceholder: \"Write a comment...\",\n characterCount: \"0/280\",\n post: \"Post\",\n textareaDescription: \"Footer positioned below the textarea.\",\n },\n },\n ar: {\n dir: \"rtl\",\n values: {\n placeholder: \"بحث...\",\n results: \"١٢ نتيجة\",\n searching: \"جاري البحث...\",\n saving: \"جاري الحفظ...\",\n savingChanges: \"جاري حفظ التغييرات...\",\n textareaLabel: \"منطقة النص\",\n textareaPlaceholder: \"اكتب تعليقًا...\",\n characterCount: \"٠/٢٨٠\",\n post: \"نشر\",\n textareaDescription: \"تذييل موضع أسفل منطقة النص.\",\n },\n },\n he: {\n dir: \"rtl\",\n values: {\n placeholder: \"חפש...\",\n results: \"12 תוצאות\",\n searching: \"מחפש...\",\n saving: \"שומר...\",\n savingChanges: \"שומר שינויים...\",\n textareaLabel: \"אזור טקסט\",\n textareaPlaceholder: \"כתוב תגובה...\",\n characterCount: \"0/280\",\n post: \"פרסם\",\n textareaDescription: \"כותרת תחתונה ממוקמת מתחת לאזור הטקסט.\",\n },\n },\n}\n\nconst { dir, values: t } = translations.ar\n---\n\n<div class=\"grid w-full max-w-sm gap-6\" dir={dir}>\n <InputGroup class=\"max-w-xs\">\n <InputGroupInput placeholder={t.placeholder} />\n <InputGroupAddon>\n <SearchIcon />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">{t.results}</InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder={t.searching} />\n <InputGroupAddon align=\"inline-end\">\n <Spinner />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder={t.savingChanges} />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText>{t.saving}</InputGroupText>\n <Spinner />\n </InputGroupAddon>\n </InputGroup>\n <FieldGroup class=\"max-w-sm\">\n <Field>\n <FieldLabel for=\"rtl-textarea\">{t.textareaLabel}</FieldLabel>\n <InputGroup>\n <InputGroupTextarea\n id=\"rtl-textarea\"\n placeholder={t.textareaPlaceholder}\n />\n <InputGroupAddon align=\"block-end\">\n <InputGroupText>{t.characterCount}</InputGroupText>\n <InputGroupButton variant=\"default\" size=\"sm\" class=\"ms-auto\">\n {t.post}\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n <FieldDescription>{t.textareaDescription}</FieldDescription>\n </Field>\n </FieldGroup>\n</div>\n",
|
|
71
|
-
"type": "registry:component"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"path": "src/components/examples/input-group/input-group-spinner.astro",
|
|
75
|
-
"content": "---\nimport LoaderIcon from \"@lucide/astro/icons/loader\"\n\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n InputGroupText,\n} from \"@/components/ui/input-group\"\nimport { Spinner } from \"@/components/ui/spinner\"\n---\n\n<div class=\"grid w-full max-w-sm gap-4\">\n <InputGroup>\n <InputGroupInput placeholder=\"Searching...\" />\n <InputGroupAddon align=\"inline-end\">\n <Spinner />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Processing...\" />\n <InputGroupAddon>\n <Spinner />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Saving changes...\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText>Saving...</InputGroupText>\n <Spinner />\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Refreshing data...\" />\n <InputGroupAddon>\n <LoaderIcon class=\"animate-spin\" />\n </InputGroupAddon>\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText class=\"text-muted-foreground\">\n Please wait...\n </InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
76
|
-
"type": "registry:component"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"path": "src/components/examples/input-group/input-group-text.astro",
|
|
80
|
-
"content": "---\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/components/ui/input-group\"\n---\n\n<div class=\"grid w-full max-w-sm gap-6\">\n <InputGroup>\n <InputGroupAddon>\n <InputGroupText>$</InputGroupText>\n </InputGroupAddon>\n <InputGroupInput placeholder=\"0.00\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText>USD</InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupAddon>\n <InputGroupText>https://</InputGroupText>\n </InputGroupAddon>\n <InputGroupInput placeholder=\"example.com\" class=\"pl-0.5!\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText>.com</InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupInput placeholder=\"Enter your username\" />\n <InputGroupAddon align=\"inline-end\">\n <InputGroupText>@company.com</InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n <InputGroup>\n <InputGroupTextarea placeholder=\"Enter your message\" />\n <InputGroupAddon align=\"block-end\">\n <InputGroupText class=\"text-xs text-muted-foreground\">\n 120 characters left\n </InputGroupText>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
81
|
-
"type": "registry:component"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "src/components/examples/input-group/input-group-textarea.astro",
|
|
85
|
-
"content": "---\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/components/ui/input-group\"\n---\n\n<div class=\"grid w-full max-w-md gap-4\">\n <InputGroup>\n <InputGroupTextarea\n id=\"textarea-code-32\"\n placeholder=\"console.log('Hello, world!');\"\n class=\"min-h-[200px]\"\n />\n <InputGroupAddon align=\"block-end\" class=\"border-t\">\n <InputGroupText>Line 1, Column 1</InputGroupText>\n <InputGroupButton size=\"sm\" class=\"ml-auto\" variant=\"default\">\n Run\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-corner-down-left\"\n >\n <path d=\"M18 6v6a3 3 0 0 1 -3 3h-10l4 -4m0 8l-4 -4\"></path>\n </svg>\n </InputGroupButton>\n </InputGroupAddon>\n <InputGroupAddon align=\"block-start\" class=\"border-b\">\n <InputGroupText class=\"font-mono font-medium\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-brand-javascript\"\n >\n <path d=\"M20 4l-2 14.5l-6 2l-6 -2l-2 -14.5l16 0\"></path>\n <path d=\"M7.5 8h3v8l-2 -1\"></path>\n <path d=\"M16.5 8h-2.5a.5 .5 0 0 0 -.5 .5v3a.5 .5 0 0 0 .5 .5h1.423a.5 .5 0 0 1 .495 .57l-.418 2.93l-2 .5\"></path>\n </svg>\n script.js\n </InputGroupText>\n <InputGroupButton class=\"ml-auto\" size=\"icon-xs\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-refresh\"\n >\n <path d=\"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4\"></path>\n <path d=\"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4\"></path>\n </svg>\n </InputGroupButton>\n <InputGroupButton variant=\"ghost\" size=\"icon-xs\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"tabler-icon tabler-icon-copy\"\n >\n <path d=\"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666\"></path>\n <path d=\"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1\"></path>\n </svg>\n </InputGroupButton>\n </InputGroupAddon>\n </InputGroup>\n</div>\n",
|
|
86
|
-
"type": "registry:component"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"docs": "https://ui.full.dev/components/input-group/",
|
|
90
|
-
"type": "registry:example"
|
|
91
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "input-group",
|
|
4
|
-
"title": "Input Group",
|
|
5
|
-
"description": "Add addons, buttons, and helper content to inputs.",
|
|
6
|
-
"registryDependencies": [
|
|
7
|
-
"@fulldev/button",
|
|
8
|
-
"@fulldev/input",
|
|
9
|
-
"@fulldev/textarea"
|
|
10
|
-
],
|
|
11
|
-
"files": [
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/input-group/input-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=\"input-group\"\n role=\"group\"\n class={cn(\n \"border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-md border shadow-xs transition-[color,box-shadow] in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto has-[>[data-align=inline-end]]:[&>[data-slot=input-group-control]]:pr-1.5 has-[>[data-align=inline-start]]:[&>[data-slot=input-group-control]]:pl-1.5\",\n className\n )}\n {...props}\n>\n <slot />\n</div>\n\n<script>\n if (!document.documentElement.dataset.inputGroupBound) {\n document.documentElement.dataset.inputGroupBound = \"true\"\n\n document.addEventListener(\"click\", (event) => {\n const target = event.target\n\n if (!(target instanceof Element)) return\n\n const addon = target.closest('[data-slot=\"input-group-addon\"]')\n if (!(addon instanceof HTMLElement)) return\n\n if (\n target.closest(\n \"a, button, input, textarea, select, option, summary, [role='button']\"\n )\n ) {\n return\n }\n\n const group = addon.closest('[data-slot=\"input-group\"]')\n const control = group?.querySelector('[data-slot=\"input-group-control\"]')\n\n if (control instanceof HTMLElement) {\n control.focus()\n }\n })\n }\n</script>\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"path": "src/components/ui/input-group/input-group-addon.astro",
|
|
19
|
-
"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 \"text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none\",\n {\n variants: {\n align: {\n \"inline-start\":\n \"pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem] order-first has-[>a]:-ml-1\",\n \"inline-end\":\n \"pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem] order-last has-[>a]:-mr-1\",\n \"block-start\":\n \"px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start\",\n \"block-end\":\n \"px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start\",\n },\n },\n defaultVariants: {\n align: \"inline-start\",\n },\n }\n)\n\ntype Props = HTMLAttributes<\"div\"> & VariantProps<typeof variants>\n\nconst { class: className, align = \"inline-start\", ...props } = Astro.props\n---\n\n<div\n role=\"group\"\n data-slot=\"input-group-addon\"\n data-align={align}\n class={cn(variants({ align }), className)}\n {...props}\n>\n <slot />\n</div>\n",
|
|
20
|
-
"type": "registry:ui"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "src/components/ui/input-group/input-group-button.astro",
|
|
24
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, type ButtonVariantProps } from \"@/components/ui/button\"\n\nconst variants = cva(\"gap-2 text-sm flex items-center shadow-none\", {\n variants: {\n size: {\n xs: \"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5\",\n sm: \"\",\n \"icon-xs\": \"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0\",\n \"icon-sm\": \"size-8 p-0 has-[>svg]:p-0\",\n },\n },\n defaultVariants: {\n size: \"xs\",\n },\n})\n\ntype Props = VariantProps<typeof variants> &\n HTMLAttributes<\"button\"> &\n HTMLAttributes<\"a\"> & {\n type?: \"button\" | \"submit\" | \"reset\"\n variant?: ButtonVariantProps[\"variant\"]\n }\n\nconst {\n class: className,\n type = \"button\",\n variant = \"ghost\",\n size = \"xs\",\n ...props\n} = Astro.props\n\nconst isLink = \"href\" in Astro.props\n---\n\n<Button\n data-size={size}\n type={isLink ? undefined : type}\n variant={variant}\n class={cn(variants({ size }), className)}\n {...props}\n>\n <slot />\n</Button>\n",
|
|
25
|
-
"type": "registry:ui"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"path": "src/components/ui/input-group/input-group-input.astro",
|
|
29
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Input } from \"@/components/ui/input\"\n\ntype Props = ComponentProps<typeof Input>\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input-group-control\",\n ...props\n} = Astro.props\n---\n\n<Input\n data-slot={dataSlot}\n class={cn(\"rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent h-full flex-1\", className)}\n {...props}\n/>\n",
|
|
30
|
-
"type": "registry:ui"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "src/components/ui/input-group/input-group-text.astro",
|
|
34
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"span\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<span\n data-slot=\"input-group-text\"\n class={cn(\n \"text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none\",\n className\n )}\n {...props}\n>\n <slot />\n</span>\n",
|
|
35
|
-
"type": "registry:ui"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"path": "src/components/ui/input-group/input-group-textarea.astro",
|
|
39
|
-
"content": "---\nimport type { ComponentProps } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Textarea } from \"@/components/ui/textarea\"\n\ntype Props = ComponentProps<typeof Textarea>\n\nconst { class: className, ...props } = Astro.props\n---\n\n<Textarea\n data-slot=\"input-group-control\"\n class={cn(\"rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none\", className)}\n {...props}\n/>\n",
|
|
40
|
-
"type": "registry:ui"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"path": "src/components/ui/input-group/index.ts",
|
|
44
|
-
"content": "export { default as InputGroup } from \"./input-group.astro\"\nexport { default as InputGroupAddon } from \"./input-group-addon.astro\"\nexport { default as InputGroupButton } from \"./input-group-button.astro\"\nexport { default as InputGroupInput } from \"./input-group-input.astro\"\nexport { default as InputGroupText } from \"./input-group-text.astro\"\nexport { default as InputGroupTextarea } from \"./input-group-textarea.astro\"\n",
|
|
45
|
-
"type": "registry:ui"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"docs": "https://ui.full.dev/components/input-group/",
|
|
49
|
-
"categories": [
|
|
50
|
-
"ui"
|
|
51
|
-
],
|
|
52
|
-
"type": "registry:ui"
|
|
53
|
-
}
|
package/public/r/input.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "input",
|
|
4
|
-
"title": "Input",
|
|
5
|
-
"description": "Displays a form input field or a component that looks like an input field.",
|
|
6
|
-
"files": [
|
|
7
|
-
{
|
|
8
|
-
"path": "src/components/ui/input/input.astro",
|
|
9
|
-
"content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype Props = HTMLAttributes<\"input\">\n\nconst {\n class: className,\n \"data-slot\": dataSlot = \"input\",\n multiple,\n ...props\n} = 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<input\n data-slot={dataSlot}\n multiple={multiple ? \"\" : undefined}\n class={cn(\n \"dark:bg-input/30 border-input 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 rounded-md border bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] file:h-7 file:text-sm file:font-medium focus-visible:ring-3 aria-invalid:ring-3 md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n {...props}\n/>\n",
|
|
10
|
-
"type": "registry:ui"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "src/components/ui/input/index.ts",
|
|
14
|
-
"content": "export { default as Input } from \"./input.astro\"\n",
|
|
15
|
-
"type": "registry:ui"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"docs": "https://ui.full.dev/components/input/",
|
|
19
|
-
"categories": [
|
|
20
|
-
"ui"
|
|
21
|
-
],
|
|
22
|
-
"type": "registry:ui"
|
|
23
|
-
}
|