diff --git a/apps/v4/app/(app)/charts/[type]/page.tsx b/apps/v4/app/(app)/charts/[type]/page.tsx index e5d317a813b..def6039eadb 100644 --- a/apps/v4/app/(app)/charts/[type]/page.tsx +++ b/apps/v4/app/(app)/charts/[type]/page.tsx @@ -23,6 +23,7 @@ const chartTypes = [ "pie", "radar", "radial", + "scatter", "tooltip", ] as const type ChartType = (typeof chartTypes)[number] @@ -50,7 +51,7 @@ export default async function ChartPage({ params }: ChartPageProps) { {type.charAt(0).toUpperCase() + type.slice(1)} Charts
- {Array.from({ length: 12 }).map((_, index) => { + {Array.from({ length: 9 }).map((_, index) => { const chart = chartList[index] return chart ? ( ) { - const isDesktop = useMediaQuery("(min-width: 768px)") + const isDesktop = useMediaQuery("(min-width: 768px)") const button = ( \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-lyra/item-example.json b/apps/v4/public/r/styles/base-lyra/item-example.json index 8ecf0dfae5d..54484b67761 100644 --- a/apps/v4/public/r/styles/base-lyra/item-example.json +++ b/apps/v4/public/r/styles/base-lyra/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/base-lyra/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-lyra/toggle-example.json b/apps/v4/public/r/styles/base-lyra/toggle-example.json index 543e10cce1c..756132b6a2a 100644 --- a/apps/v4/public/r/styles/base-lyra/toggle-example.json +++ b/apps/v4/public/r/styles/base-lyra/toggle-example.json @@ -9,7 +9,7 @@ "files": [ { "path": "registry/base-lyra/examples/toggle-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-lyra/toggle-group-example.json b/apps/v4/public/r/styles/base-lyra/toggle-group-example.json index 84f4b5d6918..b3828dd720f 100644 --- a/apps/v4/public/r/styles/base-lyra/toggle-group-example.json +++ b/apps/v4/public/r/styles/base-lyra/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/base-lyra/examples/toggle-group-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-maia/input-group-example.json b/apps/v4/public/r/styles/base-maia/input-group-example.json index da6b08c0201..2fb200598cf 100644 --- a/apps/v4/public/r/styles/base-maia/input-group-example.json +++ b/apps/v4/public/r/styles/base-maia/input-group-example.json @@ -20,7 +20,7 @@ "files": [ { "path": "registry/base-maia/examples/input-group-example.tsx", - "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-maia/item-example.json b/apps/v4/public/r/styles/base-maia/item-example.json index aaea31ae7d7..38450b12e9a 100644 --- a/apps/v4/public/r/styles/base-maia/item-example.json +++ b/apps/v4/public/r/styles/base-maia/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/base-maia/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-maia/toggle-example.json b/apps/v4/public/r/styles/base-maia/toggle-example.json index bac2594d0ac..f643af46b2f 100644 --- a/apps/v4/public/r/styles/base-maia/toggle-example.json +++ b/apps/v4/public/r/styles/base-maia/toggle-example.json @@ -9,7 +9,7 @@ "files": [ { "path": "registry/base-maia/examples/toggle-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-maia/toggle-group-example.json b/apps/v4/public/r/styles/base-maia/toggle-group-example.json index 881f89f5cc3..fa1c1129a6a 100644 --- a/apps/v4/public/r/styles/base-maia/toggle-group-example.json +++ b/apps/v4/public/r/styles/base-maia/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/base-maia/examples/toggle-group-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-mira/input-group-example.json b/apps/v4/public/r/styles/base-mira/input-group-example.json index 2bf3bc69718..dc9cf6c7972 100644 --- a/apps/v4/public/r/styles/base-mira/input-group-example.json +++ b/apps/v4/public/r/styles/base-mira/input-group-example.json @@ -20,7 +20,7 @@ "files": [ { "path": "registry/base-mira/examples/input-group-example.tsx", - "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-mira/item-example.json b/apps/v4/public/r/styles/base-mira/item-example.json index 71aa2bbb951..b66cb8acd87 100644 --- a/apps/v4/public/r/styles/base-mira/item-example.json +++ b/apps/v4/public/r/styles/base-mira/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/base-mira/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-mira/toggle-example.json b/apps/v4/public/r/styles/base-mira/toggle-example.json index 92105cf68b0..6e648b3d18e 100644 --- a/apps/v4/public/r/styles/base-mira/toggle-example.json +++ b/apps/v4/public/r/styles/base-mira/toggle-example.json @@ -9,7 +9,7 @@ "files": [ { "path": "registry/base-mira/examples/toggle-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-mira/toggle-group-example.json b/apps/v4/public/r/styles/base-mira/toggle-group-example.json index 795e595d6b5..28d2cc5643a 100644 --- a/apps/v4/public/r/styles/base-mira/toggle-group-example.json +++ b/apps/v4/public/r/styles/base-mira/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/base-mira/examples/toggle-group-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-nova/input-group-example.json b/apps/v4/public/r/styles/base-nova/input-group-example.json index abc0d06cb7c..a14c12088d9 100644 --- a/apps/v4/public/r/styles/base-nova/input-group-example.json +++ b/apps/v4/public/r/styles/base-nova/input-group-example.json @@ -20,7 +20,7 @@ "files": [ { "path": "registry/base-nova/examples/input-group-example.tsx", - "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-nova/item-example.json b/apps/v4/public/r/styles/base-nova/item-example.json index ba43576e82a..4957d9fb41b 100644 --- a/apps/v4/public/r/styles/base-nova/item-example.json +++ b/apps/v4/public/r/styles/base-nova/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/base-nova/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-nova/toggle-example.json b/apps/v4/public/r/styles/base-nova/toggle-example.json index 10ea0d6f6c7..683ccb63c79 100644 --- a/apps/v4/public/r/styles/base-nova/toggle-example.json +++ b/apps/v4/public/r/styles/base-nova/toggle-example.json @@ -9,7 +9,7 @@ "files": [ { "path": "registry/base-nova/examples/toggle-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-nova/toggle-group-example.json b/apps/v4/public/r/styles/base-nova/toggle-group-example.json index 5807c140ae3..c638c812348 100644 --- a/apps/v4/public/r/styles/base-nova/toggle-group-example.json +++ b/apps/v4/public/r/styles/base-nova/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/base-nova/examples/toggle-group-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-vega/input-group-example.json b/apps/v4/public/r/styles/base-vega/input-group-example.json index 9590f48c9e8..bb1cb0933a1 100644 --- a/apps/v4/public/r/styles/base-vega/input-group-example.json +++ b/apps/v4/public/r/styles/base-vega/input-group-example.json @@ -20,7 +20,7 @@ "files": [ { "path": "registry/base-vega/examples/input-group-example.tsx", - "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { toast } from \"sonner\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n ButtonGroup,\n ButtonGroupText,\n} from \"@/registry/bases/base/ui/button-group\"\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/base/ui/card\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"@/registry/bases/base/ui/dropdown-menu\"\nimport {\n Field,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n} from \"@/registry/bases/base/ui/field\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupText,\n InputGroupTextarea,\n} from \"@/registry/bases/base/ui/input-group\"\nimport { Kbd, KbdGroup } from \"@/registry/bases/base/ui/kbd\"\nimport {\n Popover,\n PopoverContent,\n PopoverDescription,\n PopoverHeader,\n PopoverTitle,\n PopoverTrigger,\n} from \"@/registry/bases/base/ui/popover\"\nimport { Spinner } from \"@/registry/bases/base/ui/spinner\"\nimport { Textarea } from \"@/registry/bases/base/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/base/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function InputGroupExample() {\n const [country, setCountry] = useState(\"+1\")\n\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupBasic() {\n return (\n \n \n \n \n Default (No Input Group)\n \n \n \n \n Input Group\n \n \n \n \n \n Disabled\n \n \n \n \n \n Invalid\n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithAddons() {\n return (\n \n \n \n \n Addon (inline-start)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-end)\n \n \n \n \n \n \n \n \n \n \n Addon (inline-start and inline-end)\n \n \n \n \n \n \n \n \n \n \n \n \n Addon (block-start)\n \n \n \n First Name\n \n \n \n \n \n Addon (block-end)\n \n \n \n 20/240 characters\n \n \n \n \n \n Multiple Icons\n \n \n \n \n toast(\"Copied to clipboard\")}\n >\n \n \n \n \n \n \n \n \n \n Description\n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Label\n \n \n Label\n \n \n \n \n \n \n (optional)\n \n \n \n \n \n )\n}\n\nfunction InputGroupWithButtons() {\n return (\n \n \n \n Button\n \n \n \n Default\n \n \n \n \n \n Outline\n \n \n \n \n \n Secondary\n \n \n \n \n \n Button\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupWithTooltip({\n country,\n setCountry,\n}: {\n country: string\n setCountry: (value: string) => void\n}) {\n return (\n \n \n \n Tooltip\n \n \n \n \n \n }\n >\n \n \n This is content in a tooltip.\n \n \n \n \n This is a description of the input group.\n \n \n \n Dropdown\n \n \n \n \n \n }\n >\n {country}{\" \"}\n \n \n \n setCountry(\"+1\")}>\n +1\n \n setCountry(\"+44\")}>\n +44\n \n setCountry(\"+46\")}>\n +46\n \n \n \n \n \n \n This is a description of the input group.\n \n \n \n Popover\n \n \n } nativeButton={false}>\n \n \n \n \n \n \n Your connection is not secure.\n \n You should not enter any sensitive information on this site.\n \n \n \n \n \n https://\n \n \n \n toast(\"Added to favorites\")}\n >\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Button Group\n \n https://\n \n \n \n \n \n \n .com\n \n \n This is a description of the input group.\n \n \n \n \n )\n}\n\nfunction InputGroupWithKbd() {\n return (\n \n \n \n Input Group with Kbd\n \n \n \n ⌘K\n \n \n \n \n \n ⌘K\n \n \n \n \n Ask AI\n \n Tab\n \n \n \n \n \n \n \n \n \n Ctrl\n C\n \n \n \n \n \n Username\n \n \n \n
\n \n
\n
\n
\n \n This username is available.\n \n
\n \n \n \n \n \n 12 results\n \n \n \n \n \n \n Disabled\n \n \n \n First Name\n \n \n \n \n \n \n \n \n Last Name\n \n \n \n \n \n \n \n \n \n \n Loading ("data-disabled="true")\n \n \n \n \n \n \n \n \n This is a description of the input group.\n \n \n
\n
\n )\n}\n\nfunction InputGroupInCard() {\n return (\n \n \n \n Card with Input Group\n This is a card with an input group.\n \n \n \n \n Email Address\n \n \n \n \n \n \n \n \n Website URL\n \n \n https://\n \n \n \n \n \n \n \n \n \n Feedback & Comments\n \n \n \n \n 0/500 characters\n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction InputGroupTextareaExamples() {\n return (\n \n \n \n \n Default Textarea (No Input Group)\n \n \n \n \n \n Input Group\n \n \n \n \n \n This is a description of the input group.\n \n \n \n Invalid\n \n \n \n \n This is a description of the input group.\n \n \n \n Disabled\n \n \n \n \n This is a description of the input group.\n \n \n \n Addon (block-start)\n \n \n \n Ask, Search or Chat...\n \n \n \n \n This is a description of the input group.\n \n \n \n \n Addon (block-end)\n \n \n \n \n 0/280 characters\n \n \n Send\n \n \n \n \n \n Addon (Buttons)\n \n \n \n \n Cancel\n \n \n Post Comment\n \n \n \n \n \n Code Editor\n \n \n \n \n \n script.js\n \n \n \n \n \n \n \n \n \n Line 1, Column 1\n JavaScript\n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-vega/item-example.json b/apps/v4/public/r/styles/base-vega/item-example.json index de27523e552..b6bf1aa0406 100644 --- a/apps/v4/public/r/styles/base-vega/item-example.json +++ b/apps/v4/public/r/styles/base-vega/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/base-vega/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/base/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n }>\n \n Title Only (Link)\n \n \n }>\n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n }>\n \n \n \n \n Media + Title (Link)\n \n \n }>\n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n }>\n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-vega/toggle-example.json b/apps/v4/public/r/styles/base-vega/toggle-example.json index a94fced9cc7..852e8d29af3 100644 --- a/apps/v4/public/r/styles/base-vega/toggle-example.json +++ b/apps/v4/public/r/styles/base-vega/toggle-example.json @@ -9,7 +9,7 @@ "files": [ { "path": "registry/base-vega/examples/toggle-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Button } from \"@/registry/bases/base/ui/button\"\nimport { Toggle } from \"@/registry/bases/base/ui/toggle\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleBasic() {\n return (\n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction ToggleOutline() {\n return (\n \n
\n \n \n Italic\n \n \n \n Bold\n \n
\n
\n )\n}\n\nfunction ToggleSizes() {\n return (\n \n
\n \n Small\n \n \n Default\n \n \n Large\n \n
\n
\n )\n}\n\nfunction ToggleWithButtonText() {\n return (\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIcon() {\n return (\n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ToggleWithButtonIconText() {\n return (\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n \n \n \n Toggle\n \n
\n
\n
\n )\n}\n\nfunction ToggleDisabled() {\n return (\n \n
\n \n Disabled\n \n \n Disabled\n \n
\n
\n )\n}\n\nfunction ToggleWithIcon() {\n return (\n \n
\n \n \n \n \n \n Bookmark\n \n
\n
\n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/base-vega/toggle-group-example.json b/apps/v4/public/r/styles/base-vega/toggle-group-example.json index 5c8e870233d..8063eed0f2f 100644 --- a/apps/v4/public/r/styles/base-vega/toggle-group-example.json +++ b/apps/v4/public/r/styles/base-vega/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/base-vega/examples/toggle-group-example.tsx", - "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", + "content": "import {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/base/components/example\"\nimport { Input } from \"@/registry/bases/base/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/bases/base/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/bases/base/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ToggleGroupExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupBasic() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupOutline() {\n return (\n \n \n \n All\n \n \n Missed\n \n \n \n )\n}\n\nfunction ToggleGroupOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupSizes() {\n return (\n \n
\n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n\nfunction ToggleGroupWithIcons() {\n return (\n \n \n \n \n Star\n \n \n \n Heart\n \n \n \n Bookmark\n \n \n \n )\n}\n\nfunction ToggleGroupFilter() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupDateRange() {\n return (\n \n \n \n Today\n \n \n This Week\n \n \n This Month\n \n \n This Year\n \n \n \n )\n}\n\nfunction ToggleGroupSort() {\n return (\n \n \n \n \n Newest\n \n \n \n Oldest\n \n \n \n Popular\n \n \n \n )\n}\n\nfunction ToggleGroupWithInputAndSelect() {\n const items = [\n { label: \"All\", value: \"all\" },\n { label: \"Active\", value: \"active\" },\n { label: \"Archived\", value: \"archived\" },\n ]\n return (\n \n
\n \n \n \n \n Grid\n \n \n List\n \n \n
\n
\n )\n}\n\nfunction ToggleGroupVertical() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutline() {\n return (\n \n \n \n All\n \n \n Active\n \n \n Completed\n \n \n Archived\n \n \n \n )\n}\n\nfunction ToggleGroupVerticalOutlineWithIcons() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction ToggleGroupVerticalWithSpacing() {\n return (\n \n \n \n Top\n \n \n Bottom\n \n \n Left\n \n \n Right\n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-bubble.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-bubble.json new file mode 100644 index 00000000000..83cd621bd66 --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-bubble.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-bubble", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-bubble.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n CartesianGrid,\n Scatter,\n ScatterChart,\n XAxis,\n YAxis,\n ZAxis,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bubble chart with three dimensions\"\n\nconst chartData = [\n { x: 10, y: 20, z: 200 },\n { x: 30, y: 45, z: 300 },\n { x: 50, y: 28, z: 150 },\n { x: 70, y: 60, z: 400 },\n { x: 90, y: 82, z: 500 },\n { x: 110, y: 55, z: 250 },\n { x: 130, y: 72, z: 350 },\n { x: 150, y: 95, z: 600 },\n]\n\nconst chartConfig = {\n x: {\n label: \"X Value\",\n color: \"var(--chart-1)\",\n },\n y: {\n label: \"Y Value\",\n },\n z: {\n label: \"Size\",\n },\n} satisfies ChartConfig\n\nexport function ChartScatterBubble() {\n return (\n \n \n Bubble Chart\n \n Showing three-dimensional data relationships\n \n \n \n \n \n \n \n \n \n }\n />\n \n \n \n \n \n
\n Bubble size represents the third dimension{\" \"}\n \n
\n
\n Displaying three-dimensional data in a two-dimensional chart\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-default.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-default.json new file mode 100644 index 00000000000..56fc732d143 --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-default.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-default", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-default.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A scatter chart\"\n\nconst chartData = [\n { x: 10, y: 20 },\n { x: 30, y: 45 },\n { x: 50, y: 28 },\n { x: 70, y: 60 },\n { x: 90, y: 82 },\n { x: 110, y: 55 },\n { x: 130, y: 72 },\n { x: 150, y: 95 },\n]\n\nconst chartConfig = {\n x: {\n label: \"X Value\",\n color: \"var(--chart-1)\",\n },\n y: {\n label: \"Y Value\",\n },\n} satisfies ChartConfig\n\nexport function ChartScatterDefault() {\n return (\n \n \n Scatter Chart\n \n Showing relationship between two variables\n \n \n \n \n \n \n \n \n }\n />\n \n \n \n \n \n
\n Showing positive correlation \n
\n
\n Displaying the relationship between X and Y values\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-label.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-label.json new file mode 100644 index 00000000000..36938a7c720 --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-label.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-label", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-label.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n CartesianGrid,\n LabelList,\n Scatter,\n ScatterChart,\n XAxis,\n YAxis,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A scatter chart with labels\"\n\nconst chartData = [\n { x: 10, y: 20, label: \"A\" },\n { x: 30, y: 45, label: \"B\" },\n { x: 50, y: 28, label: \"C\" },\n { x: 70, y: 60, label: \"D\" },\n { x: 90, y: 82, label: \"E\" },\n { x: 110, y: 55, label: \"F\" },\n { x: 130, y: 72, label: \"G\" },\n]\n\nconst chartConfig = {\n x: {\n label: \"X Value\",\n color: \"var(--chart-1)\",\n },\n y: {\n label: \"Y Value\",\n },\n} satisfies ChartConfig\n\nexport function ChartScatterLabel() {\n return (\n \n \n Scatter Chart - Label\n With data point labels\n \n \n \n \n \n \n \n }\n />\n \n \n \n \n \n \n \n
\n Labels help identify individual data points{\" \"}\n \n
\n
\n Each point is labeled for easy identification\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-legend.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-legend.json new file mode 100644 index 00000000000..9d76dfc3512 --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-legend.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-legend", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-legend.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport {\n CartesianGrid,\n Scatter,\n ScatterChart,\n XAxis,\n YAxis,\n ZAxis,\n} from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A bubble chart with multiple datasets and legend\"\n\nconst chartDataA = [\n { x: 150, y: 220, z: 180 },\n { x: 200, y: 280, z: 220 },\n { x: 250, y: 320, z: 200 },\n { x: 180, y: 350, z: 240 },\n]\n\nconst chartDataB = [\n { x: 350, y: 180, z: 160 },\n { x: 400, y: 240, z: 190 },\n { x: 450, y: 200, z: 210 },\n { x: 380, y: 280, z: 180 },\n]\n\nconst chartDataC = [\n { x: 280, y: 450, z: 250 },\n { x: 350, y: 520, z: 280 },\n { x: 420, y: 480, z: 260 },\n { x: 320, y: 580, z: 300 },\n]\n\nconst chartConfig = {\n seriesA: {\n label: \"Product A\",\n color: \"var(--chart-1)\",\n icon: () => (\n \n \n \n ),\n },\n seriesB: {\n label: \"Product B\",\n color: \"var(--chart-2)\",\n icon: () => (\n \n \n \n ),\n },\n seriesC: {\n label: \"Product C\",\n color: \"var(--chart-3)\",\n icon: () => (\n \n \n \n ),\n },\n} satisfies ChartConfig\n\nexport function ChartScatterLegend() {\n return (\n \n \n Bubble Chart - Legend\n Product performance comparison\n \n \n \n \n \n \n \n \n }\n />\n } />\n \n \n \n \n \n \n \n
\n Three product categories analyzed \n
\n
\n Bubble size represents market share percentage\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-multiple.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-multiple.json new file mode 100644 index 00000000000..1c7e63470af --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-multiple.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-multiple", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-multiple.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A scatter chart with multiple datasets\"\n\nconst chartDataDesktop = [\n { x: 10, y: 20 },\n { x: 30, y: 45 },\n { x: 50, y: 28 },\n { x: 70, y: 60 },\n { x: 90, y: 82 },\n { x: 110, y: 55 },\n { x: 130, y: 72 },\n]\n\nconst chartDataMobile = [\n { x: 15, y: 35 },\n { x: 35, y: 52 },\n { x: 55, y: 38 },\n { x: 75, y: 68 },\n { x: 95, y: 90 },\n { x: 115, y: 62 },\n { x: 135, y: 80 },\n]\n\nconst chartConfig = {\n desktop: {\n label: \"Desktop\",\n color: \"var(--chart-1)\",\n icon: () => (\n \n \n \n ),\n },\n mobile: {\n label: \"Mobile\",\n color: \"var(--chart-2)\",\n icon: () => (\n \n \n \n ),\n },\n} satisfies ChartConfig\n\nexport function ChartScatterMultiple() {\n return (\n \n \n Scatter Chart - Multiple\n Comparing two datasets\n \n \n \n \n \n \n \n }\n />\n } />\n \n \n \n \n \n \n
\n Desktop shows higher correlation \n
\n
\n Comparing desktop vs mobile data patterns\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/chart-scatter-shape.json b/apps/v4/public/r/styles/new-york-v4/chart-scatter-shape.json new file mode 100644 index 00000000000..9f5a8caad33 --- /dev/null +++ b/apps/v4/public/r/styles/new-york-v4/chart-scatter-shape.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "chart-scatter-shape", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-shape.tsx", + "content": "\"use client\"\n\nimport { TrendingUp } from \"lucide-react\"\nimport { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from \"recharts\"\n\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/new-york-v4/ui/card\"\nimport {\n ChartContainer,\n ChartLegend,\n ChartLegendContent,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/new-york-v4/ui/chart\"\n\nexport const description = \"A scatter chart with different shapes\"\n\nconst chartDataA = [\n { x: 10, y: 30 },\n { x: 30, y: 50 },\n { x: 50, y: 35 },\n { x: 70, y: 65 },\n { x: 90, y: 80 },\n]\n\nconst chartDataB = [\n { x: 20, y: 25 },\n { x: 40, y: 60 },\n { x: 60, y: 45 },\n { x: 80, y: 70 },\n { x: 100, y: 90 },\n]\n\nconst chartDataC = [\n { x: 15, y: 40 },\n { x: 35, y: 30 },\n { x: 55, y: 55 },\n { x: 75, y: 50 },\n { x: 95, y: 75 },\n]\n\nconst chartConfig = {\n categoryA: {\n label: \"Category A\",\n color: \"var(--chart-1)\",\n icon: () => (\n \n \n \n ),\n },\n categoryB: {\n label: \"Category B\",\n color: \"var(--chart-2)\",\n icon: () => (\n \n \n \n ),\n },\n categoryC: {\n label: \"Category C\",\n color: \"var(--chart-3)\",\n icon: () => (\n \n \n \n ),\n },\n} satisfies ChartConfig\n\nexport function ChartScatterShape() {\n return (\n \n \n Scatter Chart - Shapes\n Using different shapes for categories\n \n \n \n \n \n \n \n }\n />\n } />\n \n \n \n \n \n \n \n
\n Different shapes help distinguish categories{\" \"}\n \n
\n
\n Visualizing multiple categories with distinct markers\n
\n
\n
\n )\n}\n", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" +} \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/registry.json b/apps/v4/public/r/styles/new-york-v4/registry.json index e707a9b1da2..adfc81f2c04 100644 --- a/apps/v4/public/r/styles/new-york-v4/registry.json +++ b/apps/v4/public/r/styles/new-york-v4/registry.json @@ -3772,6 +3772,114 @@ ], "type": "registry:block" }, + { + "name": "chart-scatter-default", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-default.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, + { + "name": "chart-scatter-bubble", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-bubble.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, + { + "name": "chart-scatter-multiple", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-multiple.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, + { + "name": "chart-scatter-shape", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-shape.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, + { + "name": "chart-scatter-label", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-label.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, + { + "name": "chart-scatter-legend", + "registryDependencies": [ + "card", + "chart" + ], + "files": [ + { + "path": "registry/new-york-v4/charts/chart-scatter-legend.tsx", + "type": "registry:block" + } + ], + "categories": [ + "charts", + "charts-scatter" + ], + "type": "registry:block" + }, { "name": "chart-tooltip-default", "registryDependencies": [ diff --git a/apps/v4/public/r/styles/radix-lyra/github.json b/apps/v4/public/r/styles/radix-lyra/github.json index 35ef71d44ed..3bdc01d25ca 100644 --- a/apps/v4/public/r/styles/radix-lyra/github.json +++ b/apps/v4/public/r/styles/radix-lyra/github.json @@ -30,7 +30,7 @@ "files": [ { "path": "registry/radix-lyra/blocks/github.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-lyra/vercel.json b/apps/v4/public/r/styles/radix-lyra/vercel.json index 722794dcbdb..609a3547071 100644 --- a/apps/v4/public/r/styles/radix-lyra/vercel.json +++ b/apps/v4/public/r/styles/radix-lyra/vercel.json @@ -23,7 +23,7 @@ "files": [ { "path": "registry/radix-lyra/blocks/vercel.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-maia/github.json b/apps/v4/public/r/styles/radix-maia/github.json index de4b1c7bf5a..6b403251888 100644 --- a/apps/v4/public/r/styles/radix-maia/github.json +++ b/apps/v4/public/r/styles/radix-maia/github.json @@ -30,7 +30,7 @@ "files": [ { "path": "registry/radix-maia/blocks/github.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-maia/vercel.json b/apps/v4/public/r/styles/radix-maia/vercel.json index 4d72c7458d6..50bcc52f604 100644 --- a/apps/v4/public/r/styles/radix-maia/vercel.json +++ b/apps/v4/public/r/styles/radix-maia/vercel.json @@ -23,7 +23,7 @@ "files": [ { "path": "registry/radix-maia/blocks/vercel.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-mira/github.json b/apps/v4/public/r/styles/radix-mira/github.json index a125bb49896..7cdce33c8e6 100644 --- a/apps/v4/public/r/styles/radix-mira/github.json +++ b/apps/v4/public/r/styles/radix-mira/github.json @@ -30,7 +30,7 @@ "files": [ { "path": "registry/radix-mira/blocks/github.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-mira/vercel.json b/apps/v4/public/r/styles/radix-mira/vercel.json index 70732833eaf..8cbb466d06b 100644 --- a/apps/v4/public/r/styles/radix-mira/vercel.json +++ b/apps/v4/public/r/styles/radix-mira/vercel.json @@ -23,7 +23,7 @@ "files": [ { "path": "registry/radix-mira/blocks/vercel.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-nova/github.json b/apps/v4/public/r/styles/radix-nova/github.json index 9bc08993e17..8fcc80cd0f1 100644 --- a/apps/v4/public/r/styles/radix-nova/github.json +++ b/apps/v4/public/r/styles/radix-nova/github.json @@ -30,7 +30,7 @@ "files": [ { "path": "registry/radix-nova/blocks/github.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-nova/vercel.json b/apps/v4/public/r/styles/radix-nova/vercel.json index a61ec8c77e4..50e0168709e 100644 --- a/apps/v4/public/r/styles/radix-nova/vercel.json +++ b/apps/v4/public/r/styles/radix-nova/vercel.json @@ -23,7 +23,7 @@ "files": [ { "path": "registry/radix-nova/blocks/vercel.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-vega/github.json b/apps/v4/public/r/styles/radix-vega/github.json index de00d624a92..c94c2ef42e2 100644 --- a/apps/v4/public/r/styles/radix-vega/github.json +++ b/apps/v4/public/r/styles/radix-vega/github.json @@ -30,7 +30,7 @@ "files": [ { "path": "registry/radix-vega/blocks/github.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Combobox,\n ComboboxChip,\n ComboboxChips,\n ComboboxChipsInput,\n ComboboxContent,\n ComboboxEmpty,\n ComboboxItem,\n ComboboxList,\n ComboboxValue,\n useComboboxAnchor,\n} from \"@/registry/bases/base/ui/combobox\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/bases/radix/ui/avatar\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport { Checkbox } from \"@/registry/bases/radix/ui/checkbox\"\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from \"@/registry/bases/radix/ui/command\"\nimport {\n Drawer,\n DrawerClose,\n DrawerContent,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from \"@/registry/bases/radix/ui/drawer\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport {\n Field,\n FieldContent,\n FieldDescription,\n FieldGroup,\n FieldLabel,\n FieldLegend,\n FieldSet,\n} from \"@/registry/bases/radix/ui/field\"\nimport { Input } from \"@/registry/bases/radix/ui/input\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupButton,\n InputGroupInput,\n InputGroupTextarea,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport { Kbd } from \"@/registry/bases/radix/ui/kbd\"\nimport { NativeSelect } from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Separator } from \"@/registry/bases/radix/ui/separator\"\nimport { Spinner } from \"@/registry/bases/radix/ui/spinner\"\nimport {\n Tabs,\n TabsContent,\n TabsList,\n TabsTrigger,\n} from \"@/registry/bases/radix/ui/tabs\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport {\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from \"@/registry/bases/radix/ui/tooltip\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function GithubBlock() {\n return (\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction CodespacesCard() {\n const [isCreatingCodespace, setIsCreatingCodespace] = React.useState(false)\n\n return (\n \n \n \n \n \n Codespaces\n Local\n \n \n \n \n Codespaces\n \n Your workspaces in the cloud\n \n \n \n \n \n \n \n \n Create a codespace on main\n \n \n \n \n \n \n \n \n \n \n Codespace repository configuration\n \n \n e.preventDefault()}\n className=\"w-56\"\n >\n \n \n New with options...\n \n \n \n Configure dev container\n \n \n \n Set up prebuilds\n \n \n \n \n Manage codespaces\n \n \n \n Share deep link\n \n \n \n What are codespaces?\n \n \n \n \n \n \n \n \n \n \n \n No codespaces\n \n You don't have any codespaces with this repository\n checked out\n \n \n \n {\n setIsCreatingCodespace(true)\n setTimeout(() => {\n setIsCreatingCodespace(false)\n }, 2000)\n }}\n disabled={isCreatingCodespace}\n >\n {isCreatingCodespace ? (\n \n ) : (\n \"\"\n )}\n Create Codespace\n \n \n Learn more about codespaces\n \n \n \n \n
\n Codespace usage for this repository is paid for by{\" \"}\n shadcn.\n
\n
\n \n \n \n \n \n Clone\n \n \n \n \n \n \n \n \n Which remote URL should I use?\n \n \n \n \n \n \n HTTPS\n SSH\n GitHub CLI\n \n
\n \n \n \n HTTPS URL\n \n \n \n \n \n \n \n \n \n \n Clone using the web URL.\n \n \n \n \n \n \n SSH URL\n \n \n \n \n \n \n \n \n \n \n Use a password-protected SSH key.\n \n \n \n \n \n \n CLI Command\n \n \n \n \n \n \n \n \n \n \n Work fast with our official CLI.{\" \"}\n Learn more\n \n \n \n
\n
\n \n
\n \n \n Open with GitHub Desktop\n \n \n \n Download ZIP\n \n
\n
\n
\n
\n
\n
\n )\n}\n\nfunction RepositoryToolbar() {\n const [selectedBranch, setSelectedBranch] = React.useState(\"main\")\n return (\n \n
\n \n \n \n \n \n \n \n \n t\n \n \n \n \n \n \n \n \n \n Create new file\n \n \n \n Upload files\n \n \n \n \n \n \n \n \n \n \n New Agent Task\n \n e.preventDefault()}\n >\n \n New Agent Task\n \n \n \n \n \n \n \n \n \n \n \n \n Select a branch\n \n e.preventDefault()}\n >\n \n \n Select a Branch\n \n \n \n No branches found\n \n \n {[\n \"main\",\n \"develop\",\n \"feature/123\",\n \"feature/user-authentication\",\n \"feature/dashboard-redesign\",\n \"bugfix/login-error\",\n \"hotfix/security-patch\",\n \"release/v2.0.0\",\n \"feature/api-integration\",\n \"bugfix/memory-leak\",\n \"feature/dark-mode\",\n \"feature/responsive-design\",\n \"bugfix/typo-fix\",\n \"feature/search-functionality\",\n \"release/v1.9.0\",\n \"feature/notifications\",\n \"bugfix/cache-issue\",\n \"feature/payment-gateway\",\n \"hotfix/critical-bug\",\n \"feature/admin-panel\",\n \"bugfix/validation-error\",\n \"feature/analytics\",\n \"release/v2.1.0\",\n ].map((branch) => (\n setSelectedBranch(branch)}\n data-checked={selectedBranch === branch}\n >\n {branch}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Select Agent\n \n \n \n \n \n This repository has no custom agents\n \n \n Custom agents are reusable instructions and tools in\n your repository.\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Start Task \n \n \n \n \n \n \n \n
\n
\n )\n}\n\nfunction Navbar() {\n return (\n \n
\n \n \n \n \n \n \n Menu\n \n \n \n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n \n \n \n \n \n SC\n \n \n \n \n shadcn\n \n \n shadcn@example.com\n \n \n \n \n \n \n \n \n Set status\n \n \n \n Single sign-on\n \n \n \n \n \n \n Profile\n \n \n \n Repositories\n \n \n \n Stars\n \n \n \n Gists\n \n \n \n Organizations\n \n \n \n Enterprises\n \n \n \n Sponsors\n \n \n \n \n \n \n Settings\n \n \n \n Copilot settings\n \n \n \n Feature preview\n \n \n \n Appearance\n \n \n \n Accessibility\n \n \n \n Upgrade\n \n \n \n \n \n Sign out\n \n \n \n
\n
\n )\n}\n\nconst usernames = [\n \"shadcn\",\n \"vercel\",\n \"nextjs\",\n \"tailwindlabs\",\n \"typescript-lang\",\n \"eslint\",\n \"prettier\",\n \"babel\",\n \"webpack\",\n \"rollup\",\n \"parcel\",\n \"vite\",\n \"react\",\n \"vue\",\n \"angular\",\n \"solid\",\n]\n\nfunction Contributors() {\n return (\n \n \n \n \n Contributors 312\n \n \n \n
\n {usernames.map((username) => (\n \n \n {username.charAt(0)}\n \n ))}\n
\n
\n \n \n + 810 contributors\n \n \n
\n
\n )\n}\n\nfunction Profile() {\n return (\n \n \n \n Profile\n Manage your profile information.\n \n \n
\n \n \n Name\n \n \n Your name may appear around GitHub where you contribute or are\n mentioned. You can remove it at any time.\n \n \n \n Public Email\n \n \n \n \n \n You can manage verified email addresses in your{\" \"}\n email settings.\n \n \n \n Bio\n \n \n You can @mention other users and organizations to\n link to them.\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nfunction ContributionsActivity() {\n return (\n \n \n \n Contributions & Activity\n \n Manage your contributions and activity visibility.\n \n \n \n
\n \n
\n \n Contributions & activity\n \n \n \n \n \n \n Make profile private and hide activity\n \n \n Enabling this will hide your contributions and activity\n from your GitHub profile and from social features like\n followers, stars, feeds, leaderboards and releases.\n \n \n \n \n \n \n \n Include private contributions on my profile\n \n \n Your contribution graph, achievements, and activity\n overview will show your private contributions without\n revealing any repository or organization information.{\" \"}\n Read more.\n \n \n \n \n
\n
\n
\n
\n \n \n \n
\n
\n )\n}\n\nconst users = [\n \"shadcn\",\n \"maxleiter\",\n \"evilrabbit\",\n \"pranathip\",\n \"jorgezreik\",\n \"shuding\",\n \"rauchg\",\n]\n\nfunction AssignIssue() {\n const anchor = useComboboxAnchor()\n\n return (\n \n \n \n Assign Issue\n \n Select users to assign to this issue.\n \n \n \n \n \n \n Add user\n \n \n \n \n \n \n \n {(values) => (\n \n {values.map((username: string) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n ))}\n 0 ? undefined : \"Select a item...\"\n }\n />\n \n )}\n \n \n \n No users found.\n \n {(username) => (\n \n \n \n {username.charAt(0)}\n \n {username}\n \n )}\n \n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/public/r/styles/radix-vega/vercel.json b/apps/v4/public/r/styles/radix-vega/vercel.json index e6c561d07d9..f30df169a5d 100644 --- a/apps/v4/public/r/styles/radix-vega/vercel.json +++ b/apps/v4/public/r/styles/radix-vega/vercel.json @@ -23,7 +23,7 @@ "files": [ { "path": "registry/radix-vega/blocks/vercel.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { format } from \"date-fns\"\nimport { type DateRange } from \"react-day-picker\"\nimport { Area, AreaChart } from \"recharts\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/bases/radix/components/example\"\nimport { Alert, AlertDescription } from \"@/registry/bases/radix/ui/alert\"\nimport { Badge } from \"@/registry/bases/radix/ui/badge\"\nimport { Button } from \"@/registry/bases/radix/ui/button\"\nimport { Calendar } from \"@/registry/bases/radix/ui/calendar\"\nimport {\n Card,\n CardAction,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from \"@/registry/bases/radix/ui/card\"\nimport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n type ChartConfig,\n} from \"@/registry/bases/radix/ui/chart\"\nimport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n DialogTrigger,\n} from \"@/registry/bases/radix/ui/dialog\"\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from \"@/registry/bases/radix/ui/dropdown-menu\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from \"@/registry/bases/radix/ui/empty\"\nimport { Field, FieldGroup, FieldLabel } from \"@/registry/bases/radix/ui/field\"\nimport {\n InputGroup,\n InputGroupAddon,\n InputGroupInput,\n} from \"@/registry/bases/radix/ui/input-group\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/bases/radix/ui/item\"\nimport {\n NativeSelect,\n NativeSelectOption,\n} from \"@/registry/bases/radix/ui/native-select\"\nimport {\n Popover,\n PopoverContent,\n PopoverTrigger,\n} from \"@/registry/bases/radix/ui/popover\"\nimport { Textarea } from \"@/registry/bases/radix/ui/textarea\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function VercelBlock() {\n return (\n \n \n \n \n \n \n \n \n \n \n )\n}\n\nconst items = [\n {\n name: \"Edge Requests\",\n value: \"$1.83K\",\n percentage: 67.34,\n },\n {\n name: \"Fast Data Transfer\",\n percentage: 52.18,\n value: \"$952.51\",\n },\n {\n name: \"Monitoring data points\",\n percentage: 89.42,\n value: \"$901.20\",\n },\n {\n name: \"Web Analytics Events\",\n percentage: 45.67,\n value: \"$603.71\",\n },\n {\n name: \"Edge Request CPU Duration\",\n percentage: 23.91,\n value: \"$4.65\",\n },\n {\n name: \"Fast Origin Transfer\",\n percentage: 38.75,\n value: \"$3.85\",\n },\n {\n name: \"ISR Reads\",\n percentage: 71.24,\n value: \"$2.86\",\n },\n {\n name: \"Function Invocations\",\n percentage: 15.83,\n value: \"$0.60\",\n },\n {\n name: \"ISR Writes\",\n percentage: 26.23,\n value: \"524.52K / 2M\",\n },\n {\n name: \"Function Duration\",\n percentage: 5.11,\n value: \"5.11 GB Hrs / 1K GB Hrs\",\n },\n]\n\nfunction UsageCard() {\n return (\n \n \n \n \n 5 days remaining in cycle\n \n \n \n \n {items.map((item) => (\n \n \n \n \n \n \n {item.name}\n \n \n \n {item.value}\n \n \n \n \n ))}\n \n \n \n \n )\n}\n\nfunction AnomalyAlert() {\n return (\n \n \n \n \n \n Get alerted for anomalies\n \n Automatically monitor your projects for anomalies and get\n notified.\n \n \n \n \n \n \n \n \n \n )\n}\n\nconst environments = [\n \"All Environments\",\n \"Production\",\n \"Preview\",\n \"Development\",\n \"Staging\",\n \"Test\",\n \"Other\",\n]\n\nconst statuses = [\n { name: \"Ready\", color: \"oklch(0.72 0.19 150)\" },\n { name: \"Error\", color: \"oklch(0.64 0.21 25)\" },\n { name: \"Building\", color: \"oklch(0.77 0.16 70)\" },\n { name: \"Queued\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Provisioning\", color: \"oklch(0.72 0.00 0)\" },\n { name: \"Canceled\", color: \"oklch(0.72 0.00 0)\" },\n]\n\nfunction DeploymentFilter() {\n const [selectedEnvironment, setSelectedEnvironment] = React.useState(\n environments[0]\n )\n const [selectedStatuses, setSelectedStatuses] = React.useState>(\n new Set(statuses.slice(0, 5).map((s) => s.name))\n )\n const [dateRange, setDateRange] = React.useState()\n\n const toggleStatus = (statusName: string) => {\n setSelectedStatuses((prev) => {\n const next = new Set(prev)\n if (next.has(statusName)) {\n next.delete(statusName)\n } else {\n next.add(statusName)\n }\n return next\n })\n }\n\n return (\n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {environments.map((environment) => (\n setSelectedEnvironment(environment)}\n data-active={selectedEnvironment === environment}\n >\n {environment}\n \n \n ))}\n \n \n \n \n \n \n \n {statuses.map((status) => {\n const isSelected = selectedStatuses.has(status.name)\n return (\n toggleStatus(status.name)}\n data-active={isSelected}\n style={\n {\n \"--color\": status.color,\n } as React.CSSProperties\n }\n >\n
\n
\n {status.name}\n
\n \n \n )\n })}\n \n \n
\n \n )\n}\n\nconst billingItems = [\n {\n month: \"November 2025\",\n invoiceDate: new Date(2025, 10, 5),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"October 2025\",\n invoiceDate: new Date(2025, 9, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n {\n month: \"September 2025\",\n invoiceDate: new Date(2025, 8, 4),\n amount: \"$10.00\",\n status: \"Paid\" as const,\n },\n]\n\nfunction BillingList() {\n return (\n \n \n {billingItems.map((item, index) => (\n \n \n \n \n {item.month}\n \n {item.status}\n \n \n \n Infrastructure usage & Vercel platform\n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n \n \n \n \n View invoice\n Download PDF\n \n Contact support\n \n \n \n \n \n Total Due\n {item.amount}\n \n \n \n Invoiced {format(item.invoiceDate, \"d MMM yyyy\")}\n \n \n \n \n {index !== billingItems.length - 1 && (\n \n )}\n \n ))}\n \n \n )\n}\n\nfunction CircularGauge({ percentage }: { percentage: number }) {\n const normalizedPercentage = Math.min(Math.max(percentage, 0), 100)\n const circumference = 2 * Math.PI * 42.5\n const strokePercent = (normalizedPercentage / 100) * circumference\n\n return (\n \n \n \n \n )\n}\n\nconst agentFeatures = [\n {\n id: \"code-reviews\",\n content: (\n <>\n Code reviews with full codebase context to catch{\" \"}\n hard-to-find bugs. bugs.\n \n ),\n },\n {\n id: \"code-suggestions\",\n content: (\n <>\n Code suggestions validated in sandboxes before you\n merge.\n \n ),\n },\n {\n id: \"root-cause\",\n content: (\n <>\n Root-cause analysis for production issues with\n deployment context.{\" \"}\n \n Requires Observability Plus\n \n \n ),\n },\n]\n\nfunction ActivateAgentDialog() {\n return (\n \n \n \n \n \n \n \n Ship faster & safer with Vercel Agent\n \n Your use is subject to Vercel's{\" \"}\n Public Beta Agreement and{\" \"}\n AI Product Terms.\n \n \n
\n \n {agentFeatures.map((feature) => (\n \n \n \n \n \n \n {feature.content}\n \n \n \n ))}\n \n \n \n \n Pro teams get $100 in Vercel Agent trial credit for 2 weeks.\n \n \n
\n \n \n \n \n \n \n
\n
\n
\n )\n}\n\nfunction ObservabilityCard() {\n return (\n \n \n
\n \n \n Observability Plus is replacing Monitoring\n \n Switch to the improved way to explore your data, with natural\n language. Monitoring will no longer be available on the Pro plan in\n November, 2025\n \n \n \n \n \n Warning\n \n \n \n \n )\n}\n\nfunction FeedbackForm() {\n return (\n \n \n \n
\n \n \n Topic\n \n \n Select a topic\n \n AI\n \n Accounts and Access Controls\n \n \n Billing\n \n \n CDN (Firewall, Caching)\n \n \n CI/CD (Builds, Deployments, Environment Variables)\n \n \n Dashboard Interface (Navigation, UI Issues)\n \n \n Domains\n \n \n Frameworks\n \n \n Marketplace and Integrations\n \n \n Observability (Observability, Logs, Monitoring)\n \n \n Storage\n \n \n \n \n Feedback\n \n \n \n
\n
\n \n \n \n
\n
\n )\n}\n\nconst chartData = [\n { month: \"January\", visitors: 186 },\n { month: \"February\", visitors: 305 },\n { month: \"March\", visitors: 237 },\n { month: \"April\", visitors: 73 },\n { month: \"May\", visitors: 209 },\n { month: \"June\", visitors: 214 },\n]\n\nconst chartConfig = {\n visitors: {\n label: \"Visitors\",\n color: \"var(--chart-1)\",\n },\n} satisfies ChartConfig\n\nfunction AnalyticsCard() {\n return (\n \n \n \n Analytics\n \n 418.2K Visitors +10%\n \n \n \n \n \n \n \n }\n defaultIndex={2}\n />\n \n \n \n \n \n )\n}\n", "type": "registry:block" } ], diff --git a/apps/v4/registry/__index__.tsx b/apps/v4/registry/__index__.tsx index 29966992075..98eb31d2a60 100644 --- a/apps/v4/registry/__index__.tsx +++ b/apps/v4/registry/__index__.tsx @@ -3730,6 +3730,120 @@ export const Index: Record> = { categories: ["charts","charts-radial"], meta: undefined, }, + "chart-scatter-default": { + name: "chart-scatter-default", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-default.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-default.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, + "chart-scatter-bubble": { + name: "chart-scatter-bubble", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-bubble.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-bubble.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, + "chart-scatter-multiple": { + name: "chart-scatter-multiple", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-multiple.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-multiple.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, + "chart-scatter-shape": { + name: "chart-scatter-shape", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-shape.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-shape.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, + "chart-scatter-label": { + name: "chart-scatter-label", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-label.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-label.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, + "chart-scatter-legend": { + name: "chart-scatter-legend", + title: "undefined", + description: "", + type: "registry:block", + registryDependencies: ["card","chart"], + files: [{ + path: "registry/new-york-v4/charts/chart-scatter-legend.tsx", + type: "registry:block", + target: "" + }], + component: React.lazy(async () => { + const mod = await import("@/registry/new-york-v4/charts/chart-scatter-legend.tsx") + const exportName = Object.keys(mod).find(key => typeof mod[key] === 'function' || typeof mod[key] === 'object') || item.name + return { default: mod.default || mod[exportName] } + }), + categories: ["charts","charts-scatter"], + meta: undefined, + }, "chart-tooltip-default": { name: "chart-tooltip-default", title: "undefined", diff --git a/apps/v4/registry/new-york-v4/charts/_registry.ts b/apps/v4/registry/new-york-v4/charts/_registry.ts index deeda2cba61..b164c709540 100644 --- a/apps/v4/registry/new-york-v4/charts/_registry.ts +++ b/apps/v4/registry/new-york-v4/charts/_registry.ts @@ -744,6 +744,80 @@ export const charts: Registry["items"] = [ ], categories: ["charts", "charts-radial"], }, + + // Scatter Charts + { + name: "chart-scatter-default", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-default.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, + { + name: "chart-scatter-bubble", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-bubble.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, + { + name: "chart-scatter-multiple", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-multiple.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, + { + name: "chart-scatter-shape", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-shape.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, + { + name: "chart-scatter-label", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-label.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, + { + name: "chart-scatter-legend", + type: "registry:block", + registryDependencies: ["card", "chart"], + files: [ + { + path: "charts/chart-scatter-legend.tsx", + type: "registry:block", + }, + ], + categories: ["charts", "charts-scatter"], + }, { name: "chart-tooltip-default", type: "registry:block", diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-bubble.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-bubble.tsx new file mode 100644 index 00000000000..b1f86405e8b --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-bubble.tsx @@ -0,0 +1,111 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { + CartesianGrid, + Scatter, + ScatterChart, + XAxis, + YAxis, + ZAxis, +} from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A bubble chart with three dimensions" + +const chartData = [ + { x: 10, y: 20, z: 200 }, + { x: 30, y: 45, z: 300 }, + { x: 50, y: 28, z: 150 }, + { x: 70, y: 60, z: 400 }, + { x: 90, y: 82, z: 500 }, + { x: 110, y: 55, z: 250 }, + { x: 130, y: 72, z: 350 }, + { x: 150, y: 95, z: 600 }, +] + +const chartConfig = { + x: { + label: "X Value", + color: "var(--chart-1)", + }, + y: { + label: "Y Value", + }, + z: { + label: "Size", + }, +} satisfies ChartConfig + +export function ChartScatterBubble() { + return ( + + + Bubble Chart + + Showing three-dimensional data relationships + + + + + + + + + + } + /> + + + + + +
+ Bubble size represents the third dimension{" "} + +
+
+ Displaying three-dimensional data in a two-dimensional chart +
+
+
+ ) +} diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-default.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-default.tsx new file mode 100644 index 00000000000..9981087850a --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-default.tsx @@ -0,0 +1,97 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A scatter chart" + +const chartData = [ + { x: 10, y: 20 }, + { x: 30, y: 45 }, + { x: 50, y: 28 }, + { x: 70, y: 60 }, + { x: 90, y: 82 }, + { x: 110, y: 55 }, + { x: 130, y: 72 }, + { x: 150, y: 95 }, +] + +const chartConfig = { + x: { + label: "X Value", + color: "var(--chart-1)", + }, + y: { + label: "Y Value", + }, +} satisfies ChartConfig + +export function ChartScatterDefault() { + return ( + + + Scatter Chart + + Showing relationship between two variables + + + + + + + + + } + /> + + + + + +
+ Showing positive correlation +
+
+ Displaying the relationship between X and Y values +
+
+
+ ) +} diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-label.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-label.tsx new file mode 100644 index 00000000000..827a1d7e3cd --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-label.tsx @@ -0,0 +1,112 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { + CartesianGrid, + LabelList, + Scatter, + ScatterChart, + XAxis, + YAxis, +} from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A scatter chart with labels" + +const chartData = [ + { x: 10, y: 20, label: "A" }, + { x: 30, y: 45, label: "B" }, + { x: 50, y: 28, label: "C" }, + { x: 70, y: 60, label: "D" }, + { x: 90, y: 82, label: "E" }, + { x: 110, y: 55, label: "F" }, + { x: 130, y: 72, label: "G" }, +] + +const chartConfig = { + x: { + label: "X Value", + color: "var(--chart-1)", + }, + y: { + label: "Y Value", + }, +} satisfies ChartConfig + +export function ChartScatterLabel() { + return ( + + + Scatter Chart - Label + With data point labels + + + + + + + + } + /> + + + + + + + +
+ Labels help identify individual data points{" "} + +
+
+ Each point is labeled for easy identification +
+
+
+ ) +} diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-legend.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-legend.tsx new file mode 100644 index 00000000000..92f778eb716 --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-legend.tsx @@ -0,0 +1,162 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { + CartesianGrid, + Scatter, + ScatterChart, + XAxis, + YAxis, + ZAxis, +} from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartLegend, + ChartLegendContent, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A bubble chart with multiple datasets and legend" + +const chartDataA = [ + { x: 150, y: 220, z: 180 }, + { x: 200, y: 280, z: 220 }, + { x: 250, y: 320, z: 200 }, + { x: 180, y: 350, z: 240 }, +] + +const chartDataB = [ + { x: 350, y: 180, z: 160 }, + { x: 400, y: 240, z: 190 }, + { x: 450, y: 200, z: 210 }, + { x: 380, y: 280, z: 180 }, +] + +const chartDataC = [ + { x: 280, y: 450, z: 250 }, + { x: 350, y: 520, z: 280 }, + { x: 420, y: 480, z: 260 }, + { x: 320, y: 580, z: 300 }, +] + +const chartConfig = { + seriesA: { + label: "Product A", + color: "var(--chart-1)", + icon: () => ( + + + + ), + }, + seriesB: { + label: "Product B", + color: "var(--chart-2)", + icon: () => ( + + + + ), + }, + seriesC: { + label: "Product C", + color: "var(--chart-3)", + icon: () => ( + + + + ), + }, +} satisfies ChartConfig + +export function ChartScatterLegend() { + return ( + + + Bubble Chart - Legend + Product performance comparison + + + + + + + + + } + /> + } /> + + + + + + + +
+ Three product categories analyzed +
+
+ Bubble size represents market share percentage +
+
+
+ ) +} diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-multiple.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-multiple.tsx new file mode 100644 index 00000000000..63ad3511461 --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-multiple.tsx @@ -0,0 +1,129 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartLegend, + ChartLegendContent, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A scatter chart with multiple datasets" + +const chartDataDesktop = [ + { x: 10, y: 20 }, + { x: 30, y: 45 }, + { x: 50, y: 28 }, + { x: 70, y: 60 }, + { x: 90, y: 82 }, + { x: 110, y: 55 }, + { x: 130, y: 72 }, +] + +const chartDataMobile = [ + { x: 15, y: 35 }, + { x: 35, y: 52 }, + { x: 55, y: 38 }, + { x: 75, y: 68 }, + { x: 95, y: 90 }, + { x: 115, y: 62 }, + { x: 135, y: 80 }, +] + +const chartConfig = { + desktop: { + label: "Desktop", + color: "var(--chart-1)", + icon: () => ( + + + + ), + }, + mobile: { + label: "Mobile", + color: "var(--chart-2)", + icon: () => ( + + + + ), + }, +} satisfies ChartConfig + +export function ChartScatterMultiple() { + return ( + + + Scatter Chart - Multiple + Comparing two datasets + + + + + + + + } + /> + } /> + + + + + + +
+ Desktop shows higher correlation +
+
+ Comparing desktop vs mobile data patterns +
+
+
+ ) +} diff --git a/apps/v4/registry/new-york-v4/charts/chart-scatter-shape.tsx b/apps/v4/registry/new-york-v4/charts/chart-scatter-shape.tsx new file mode 100644 index 00000000000..5481c8a3f88 --- /dev/null +++ b/apps/v4/registry/new-york-v4/charts/chart-scatter-shape.tsx @@ -0,0 +1,151 @@ +"use client" + +import { TrendingUp } from "lucide-react" +import { CartesianGrid, Scatter, ScatterChart, XAxis, YAxis } from "recharts" + +import { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/registry/new-york-v4/ui/card" +import { + ChartContainer, + ChartLegend, + ChartLegendContent, + ChartTooltip, + ChartTooltipContent, + type ChartConfig, +} from "@/registry/new-york-v4/ui/chart" + +export const description = "A scatter chart with different shapes" + +const chartDataA = [ + { x: 10, y: 30 }, + { x: 30, y: 50 }, + { x: 50, y: 35 }, + { x: 70, y: 65 }, + { x: 90, y: 80 }, +] + +const chartDataB = [ + { x: 20, y: 25 }, + { x: 40, y: 60 }, + { x: 60, y: 45 }, + { x: 80, y: 70 }, + { x: 100, y: 90 }, +] + +const chartDataC = [ + { x: 15, y: 40 }, + { x: 35, y: 30 }, + { x: 55, y: 55 }, + { x: 75, y: 50 }, + { x: 95, y: 75 }, +] + +const chartConfig = { + categoryA: { + label: "Category A", + color: "var(--chart-1)", + icon: () => ( + + + + ), + }, + categoryB: { + label: "Category B", + color: "var(--chart-2)", + icon: () => ( + + + + ), + }, + categoryC: { + label: "Category C", + color: "var(--chart-3)", + icon: () => ( + + + + ), + }, +} satisfies ChartConfig + +export function ChartScatterShape() { + return ( + + + Scatter Chart - Shapes + Using different shapes for categories + + + + + + + + } + /> + } /> + + + + + + + +
+ Different shapes help distinguish categories{" "} + +
+
+ Visualizing multiple categories with distinct markers +
+
+
+ ) +} diff --git a/ui_components b/ui_components new file mode 160000 index 00000000000..f0d147d5810 --- /dev/null +++ b/ui_components @@ -0,0 +1 @@ +Subproject commit f0d147d5810e4187537e1dfcb3ca1ef8ad3cb670