diff --git a/apps/v4/examples/base/calendar-hijri.tsx b/apps/v4/examples/base/calendar-hijri.tsx index 3a9c4bd139..cbf8b458ae 100644 --- a/apps/v4/examples/base/calendar-hijri.tsx +++ b/apps/v4/examples/base/calendar-hijri.tsx @@ -1,6 +1,7 @@ "use client" import * as React from "react" +import { Vazirmatn } from "next/font/google" import { Button, buttonVariants } from "@/examples/base/ui/button" import { ChevronDownIcon, @@ -9,7 +10,6 @@ import { } from "lucide-react" import { getDefaultClassNames, type DayButton } from "react-day-picker" import { DayPicker } from "react-day-picker/persian" -import { Vazirmatn } from "next/font/google" import { cn } from "@/lib/utils" diff --git a/apps/v4/examples/base/ui-rtl/sidebar.tsx b/apps/v4/examples/base/ui-rtl/sidebar.tsx index 495ef3bb43..b334a2efdc 100644 --- a/apps/v4/examples/base/ui-rtl/sidebar.tsx +++ b/apps/v4/examples/base/ui-rtl/sidebar.tsx @@ -289,8 +289,8 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) { title="Toggle Sidebar" className={cn( "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", - "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-e-resize", - "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize", + "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", + "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full rtl:group-data-[collapsible=offcanvas]:-translate-x-0", "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2", @@ -565,7 +565,7 @@ function SidebarMenuAction({ className: cn( "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 end-1 aspect-square w-5 rounded-md p-0 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 focus-visible:ring-2 [&>svg]:size-4 flex items-center justify-center outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 md:after:hidden [&>svg]:shrink-0", showOnHover && - "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0", + "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0", className ), }, diff --git a/apps/v4/examples/radix/calendar-hijri.tsx b/apps/v4/examples/radix/calendar-hijri.tsx index 7711e6ccd1..2dcaec3f32 100644 --- a/apps/v4/examples/radix/calendar-hijri.tsx +++ b/apps/v4/examples/radix/calendar-hijri.tsx @@ -1,6 +1,7 @@ "use client" import * as React from "react" +import { Vazirmatn } from "next/font/google" import { Button, buttonVariants } from "@/examples/radix/ui/button" import { ChevronDownIcon, @@ -9,7 +10,6 @@ import { } from "lucide-react" import { getDefaultClassNames, type DayButton } from "react-day-picker" import { DayPicker } from "react-day-picker/persian" -import { Vazirmatn } from "next/font/google" import { cn } from "@/lib/utils" diff --git a/apps/v4/examples/radix/sidebar-rtl.tsx b/apps/v4/examples/radix/sidebar-rtl.tsx index 02bd7dae5e..2476d9dd79 100644 --- a/apps/v4/examples/radix/sidebar-rtl.tsx +++ b/apps/v4/examples/radix/sidebar-rtl.tsx @@ -314,8 +314,11 @@ function SidebarContentInner({ return ( <> - + diff --git a/apps/v4/examples/radix/ui-rtl/sidebar.tsx b/apps/v4/examples/radix/ui-rtl/sidebar.tsx index 92f8b2ce56..9c348b6886 100644 --- a/apps/v4/examples/radix/ui-rtl/sidebar.tsx +++ b/apps/v4/examples/radix/ui-rtl/sidebar.tsx @@ -288,8 +288,8 @@ function SidebarRail({ className, ...props }: React.ComponentProps<"button">) { title="Toggle Sidebar" className={cn( "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2", - "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-e-resize", - "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize", + "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=left]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize", + "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize", "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full rtl:group-data-[collapsible=offcanvas]:-translate-x-0", "[[data-side=left][data-collapsible=offcanvas]_&]:-end-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-start-2", @@ -554,7 +554,7 @@ function SidebarMenuAction({ className={cn( "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute end-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0", showOnHover && - "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0", + "peer-data-active/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 aria-expanded:opacity-100 md:opacity-0", className )} {...props} diff --git a/apps/v4/public/r/styles/base-lyra/registry.json b/apps/v4/public/r/styles/base-lyra/registry.json index b01130d0b0..a6a4600a3b 100644 --- a/apps/v4/public/r/styles/base-lyra/registry.json +++ b/apps/v4/public/r/styles/base-lyra/registry.json @@ -612,6 +612,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { 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 064c885109..20af966016 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": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-lyra/components/example\"\nimport { Input } from \"@/registry/base-lyra/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-lyra/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-lyra/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/base-lyra/ui/field\"\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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-lyra/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/base-lyra/ui/field\"\nimport { Input } from \"@/registry/base-lyra/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-lyra/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-lyra/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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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-lyra/tooltip.json b/apps/v4/public/r/styles/base-lyra/tooltip.json index 735ef3a0c2..39c416aca3 100644 --- a/apps/v4/public/r/styles/base-lyra/tooltip.json +++ b/apps/v4/public/r/styles/base-lyra/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/base-maia/registry.json b/apps/v4/public/r/styles/base-maia/registry.json index aa32fd78e6..a30a4c62c9 100644 --- a/apps/v4/public/r/styles/base-maia/registry.json +++ b/apps/v4/public/r/styles/base-maia/registry.json @@ -612,6 +612,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { 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 048bfac136..2f46382739 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": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-maia/components/example\"\nimport { Input } from \"@/registry/base-maia/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-maia/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-maia/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/base-maia/ui/field\"\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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-maia/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/base-maia/ui/field\"\nimport { Input } from \"@/registry/base-maia/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-maia/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-maia/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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/tooltip.json b/apps/v4/public/r/styles/base-maia/tooltip.json index c71656f99a..22dbbbd797 100644 --- a/apps/v4/public/r/styles/base-maia/tooltip.json +++ b/apps/v4/public/r/styles/base-maia/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/base-mira/registry.json b/apps/v4/public/r/styles/base-mira/registry.json index adae4ea7cc..73bd1dfd9a 100644 --- a/apps/v4/public/r/styles/base-mira/registry.json +++ b/apps/v4/public/r/styles/base-mira/registry.json @@ -612,6 +612,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { 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 4310f1a1e1..334f52fe55 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": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-mira/components/example\"\nimport { Input } from \"@/registry/base-mira/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-mira/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-mira/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/base-mira/ui/field\"\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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-mira/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/base-mira/ui/field\"\nimport { Input } from \"@/registry/base-mira/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-mira/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-mira/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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/tooltip.json b/apps/v4/public/r/styles/base-mira/tooltip.json index 30764d8bdb..91bbe7fb8a 100644 --- a/apps/v4/public/r/styles/base-mira/tooltip.json +++ b/apps/v4/public/r/styles/base-mira/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/base-nova/registry.json b/apps/v4/public/r/styles/base-nova/registry.json index b326863537..0d9267e463 100644 --- a/apps/v4/public/r/styles/base-nova/registry.json +++ b/apps/v4/public/r/styles/base-nova/registry.json @@ -612,6 +612,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { 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 8070f8ada9..027c3ada39 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": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-nova/components/example\"\nimport { Input } from \"@/registry/base-nova/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-nova/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-nova/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/base-nova/ui/field\"\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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-nova/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/base-nova/ui/field\"\nimport { Input } from \"@/registry/base-nova/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-nova/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-nova/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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/tooltip.json b/apps/v4/public/r/styles/base-nova/tooltip.json index 5c87742bc7..881c2462b0 100644 --- a/apps/v4/public/r/styles/base-nova/tooltip.json +++ b/apps/v4/public/r/styles/base-nova/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/base-vega/registry.json b/apps/v4/public/r/styles/base-vega/registry.json index 9d3b4a2778..4742e5e8ed 100644 --- a/apps/v4/public/r/styles/base-vega/registry.json +++ b/apps/v4/public/r/styles/base-vega/registry.json @@ -612,6 +612,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { 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 2d56108fd7..9c6104108b 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": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-vega/components/example\"\nimport { Input } from \"@/registry/base-vega/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-vega/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-vega/ui/toggle-group\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/base-vega/ui/field\"\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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/base-vega/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/base-vega/ui/field\"\nimport { Input } from \"@/registry/base-vega/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/base-vega/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/base-vega/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}\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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value[0])}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/tooltip.json b/apps/v4/public/r/styles/base-vega/tooltip.json index 9174280536..2dbd3b5aa4 100644 --- a/apps/v4/public/r/styles/base-vega/tooltip.json +++ b/apps/v4/public/r/styles/base-vega/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/new-york-v4/calendar-hijri.json b/apps/v4/public/r/styles/new-york-v4/calendar-hijri.json index b24e71abb7..2e715a1db1 100644 --- a/apps/v4/public/r/styles/new-york-v4/calendar-hijri.json +++ b/apps/v4/public/r/styles/new-york-v4/calendar-hijri.json @@ -8,7 +8,7 @@ "files": [ { "path": "registry/new-york-v4/examples/calendar-hijri.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n} from \"lucide-react\"\nimport { getDefaultClassNames, type DayButton } from \"react-day-picker\"\nimport { DayPicker } from \"react-day-picker/persian\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/registry/new-york-v4/ui/button\"\n\nexport default function CalendarHijri() {\n const [date, setDate] = React.useState(\n new Date(2025, 5, 12)\n )\n\n return (\n \n )\n}\n\n// ----------------------------------------------------------------------------\n// The code below is for this example only.\n// For your own calendar, you would edit the calendar.tsx component directly.\n// ----------------------------------------------------------------------------\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = \"label\",\n buttonVariant = \"ghost\",\n formatters,\n components,\n ...props\n}: React.ComponentProps & {\n buttonVariant?: React.ComponentProps[\"variant\"]\n}) {\n const defaultClassNames = getDefaultClassNames()\n\n return (\n svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: (date) =>\n date.toLocaleString(\"default\", { month: \"short\" }),\n ...formatters,\n }}\n classNames={{\n root: cn(\"w-fit\", defaultClassNames.root),\n months: cn(\n \"flex gap-4 flex-col md:flex-row relative\",\n defaultClassNames.months\n ),\n month: cn(\"flex flex-col w-full gap-4\", defaultClassNames.month),\n nav: cn(\n \"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between\",\n defaultClassNames.nav\n ),\n button_previous: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none\",\n defaultClassNames.button_previous\n ),\n button_next: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none\",\n defaultClassNames.button_next\n ),\n month_caption: cn(\n \"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)\",\n defaultClassNames.month_caption\n ),\n dropdowns: cn(\n \"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5\",\n defaultClassNames.dropdowns\n ),\n dropdown_root: cn(\n \"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md\",\n defaultClassNames.dropdown_root\n ),\n dropdown: cn(\"absolute inset-0 opacity-0\", defaultClassNames.dropdown),\n caption_label: cn(\n \"select-none font-medium\",\n captionLayout === \"label\"\n ? \"text-sm\"\n : \"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5\",\n defaultClassNames.caption_label\n ),\n table: \"w-full border-collapse\",\n weekdays: cn(\"flex\", defaultClassNames.weekdays),\n weekday: cn(\n \"text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none\",\n defaultClassNames.weekday\n ),\n week: cn(\"flex w-full mt-2\", defaultClassNames.week),\n week_number_header: cn(\n \"select-none w-(--cell-size)\",\n defaultClassNames.week_number_header\n ),\n week_number: cn(\n \"text-[0.8rem] select-none text-muted-foreground\",\n defaultClassNames.week_number\n ),\n day: cn(\n \"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none\",\n defaultClassNames.day\n ),\n range_start: cn(\n \"rounded-l-md bg-accent\",\n defaultClassNames.range_start\n ),\n range_middle: cn(\"rounded-none\", defaultClassNames.range_middle),\n range_end: cn(\"rounded-r-md bg-accent\", defaultClassNames.range_end),\n today: cn(\n \"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none\",\n defaultClassNames.today\n ),\n outside: cn(\n \"text-muted-foreground aria-selected:text-muted-foreground\",\n defaultClassNames.outside\n ),\n disabled: cn(\n \"text-muted-foreground opacity-50\",\n defaultClassNames.disabled\n ),\n hidden: cn(\"invisible\", defaultClassNames.hidden),\n ...classNames,\n }}\n components={{\n Root: ({ className, rootRef, ...props }) => {\n return (\n \n )\n },\n Chevron: ({ className, orientation, ...props }) => {\n if (orientation === \"left\") {\n return (\n \n )\n }\n\n if (orientation === \"right\") {\n return (\n \n )\n }\n\n return (\n \n )\n },\n DayButton: CalendarDayButton,\n WeekNumber: ({ children, ...props }) => {\n return (\n \n
\n {children}\n
\n \n )\n },\n ...components,\n }}\n {...props}\n />\n )\n}\n\nfunction CalendarDayButton({\n className,\n day,\n modifiers,\n ...props\n}: React.ComponentProps) {\n const defaultClassNames = getDefaultClassNames()\n\n const ref = React.useRef(null)\n React.useEffect(() => {\n if (modifiers.focused) ref.current?.focus()\n }, [modifiers.focused])\n\n return (\n span]:text-xs [&>span]:opacity-70\",\n defaultClassNames.day,\n className\n )}\n {...props}\n />\n )\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Vazirmatn } from \"next/font/google\"\nimport {\n ChevronDownIcon,\n ChevronLeftIcon,\n ChevronRightIcon,\n} from \"lucide-react\"\nimport { getDefaultClassNames, type DayButton } from \"react-day-picker\"\nimport { DayPicker } from \"react-day-picker/persian\"\n\nimport { cn } from \"@/lib/utils\"\nimport { Button, buttonVariants } from \"@/registry/new-york-v4/ui/button\"\n\nconst vazirmatn = Vazirmatn({ subsets: [\"arabic\"] })\n\nexport default function CalendarHijri() {\n const [date, setDate] = React.useState(\n new Date(2025, 5, 12)\n )\n\n return (\n
\n \n
\n )\n}\n\n// ----------------------------------------------------------------------------\n// The code below is for this example only.\n// For your own calendar, you would edit the calendar.tsx component directly.\n// ----------------------------------------------------------------------------\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n captionLayout = \"label\",\n buttonVariant = \"ghost\",\n formatters,\n components,\n ...props\n}: React.ComponentProps & {\n buttonVariant?: React.ComponentProps[\"variant\"]\n}) {\n const defaultClassNames = getDefaultClassNames()\n\n return (\n svg]:rotate-180`,\n String.raw`rtl:**:[.rdp-button\\_previous>svg]:rotate-180`,\n className\n )}\n captionLayout={captionLayout}\n formatters={{\n formatMonthDropdown: (date) =>\n date.toLocaleString(\"default\", { month: \"short\" }),\n ...formatters,\n }}\n classNames={{\n root: cn(\"w-fit\", defaultClassNames.root),\n months: cn(\n \"flex gap-4 flex-col md:flex-row relative\",\n defaultClassNames.months\n ),\n month: cn(\"flex flex-col w-full gap-4\", defaultClassNames.month),\n nav: cn(\n \"flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between\",\n defaultClassNames.nav\n ),\n button_previous: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none\",\n defaultClassNames.button_previous\n ),\n button_next: cn(\n buttonVariants({ variant: buttonVariant }),\n \"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none\",\n defaultClassNames.button_next\n ),\n month_caption: cn(\n \"flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)\",\n defaultClassNames.month_caption\n ),\n dropdowns: cn(\n \"w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5\",\n defaultClassNames.dropdowns\n ),\n dropdown_root: cn(\n \"relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md\",\n defaultClassNames.dropdown_root\n ),\n dropdown: cn(\"absolute inset-0 opacity-0\", defaultClassNames.dropdown),\n caption_label: cn(\n \"select-none font-medium\",\n captionLayout === \"label\"\n ? \"text-sm\"\n : \"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5\",\n defaultClassNames.caption_label\n ),\n table: \"w-full border-collapse\",\n weekdays: cn(\"flex\", defaultClassNames.weekdays),\n weekday: cn(\n \"text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none\",\n defaultClassNames.weekday\n ),\n week: cn(\"flex w-full mt-2\", defaultClassNames.week),\n week_number_header: cn(\n \"select-none w-(--cell-size)\",\n defaultClassNames.week_number_header\n ),\n week_number: cn(\n \"text-[0.8rem] select-none text-muted-foreground\",\n defaultClassNames.week_number\n ),\n day: cn(\n \"relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none\",\n defaultClassNames.day\n ),\n range_start: cn(\n \"rounded-l-md bg-accent\",\n defaultClassNames.range_start\n ),\n range_middle: cn(\"rounded-none\", defaultClassNames.range_middle),\n range_end: cn(\"rounded-r-md bg-accent\", defaultClassNames.range_end),\n today: cn(\n \"bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none\",\n defaultClassNames.today\n ),\n outside: cn(\n \"text-muted-foreground aria-selected:text-muted-foreground\",\n defaultClassNames.outside\n ),\n disabled: cn(\n \"text-muted-foreground opacity-50\",\n defaultClassNames.disabled\n ),\n hidden: cn(\"invisible\", defaultClassNames.hidden),\n ...classNames,\n }}\n components={{\n Root: ({ className, rootRef, ...props }) => {\n return (\n \n )\n },\n Chevron: ({ className, orientation, ...props }) => {\n if (orientation === \"left\") {\n return (\n \n )\n }\n\n if (orientation === \"right\") {\n return (\n \n )\n }\n\n return (\n \n )\n },\n DayButton: CalendarDayButton,\n WeekNumber: ({ children, ...props }) => {\n return (\n \n
\n {children}\n
\n \n )\n },\n ...components,\n }}\n {...props}\n />\n )\n}\n\nfunction CalendarDayButton({\n className,\n day,\n modifiers,\n ...props\n}: React.ComponentProps) {\n const defaultClassNames = getDefaultClassNames()\n\n const ref = React.useRef(null)\n React.useEffect(() => {\n if (modifiers.focused) ref.current?.focus()\n }, [modifiers.focused])\n\n return (\n span]:text-xs [&>span]:opacity-70\",\n defaultClassNames.day,\n className\n )}\n {...props}\n />\n )\n}\n", "type": "registry:example" } ], 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 22c1971e76..2db23814c3 100644 --- a/apps/v4/public/r/styles/new-york-v4/registry.json +++ b/apps/v4/public/r/styles/new-york-v4/registry.json @@ -820,6 +820,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/new-york-v4/tooltip.json b/apps/v4/public/r/styles/new-york-v4/tooltip.json index 351bf480c7..f2322c68a3 100644 --- a/apps/v4/public/r/styles/new-york-v4/tooltip.json +++ b/apps/v4/public/r/styles/new-york-v4/tooltip.json @@ -11,5 +11,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/radix-lyra/registry.json b/apps/v4/public/r/styles/radix-lyra/registry.json index ff24124f8e..438525bc62 100644 --- a/apps/v4/public/r/styles/radix-lyra/registry.json +++ b/apps/v4/public/r/styles/radix-lyra/registry.json @@ -606,6 +606,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/radix-lyra/toggle-group-example.json b/apps/v4/public/r/styles/radix-lyra/toggle-group-example.json index 859242934e..c4752ad109 100644 --- a/apps/v4/public/r/styles/radix-lyra/toggle-group-example.json +++ b/apps/v4/public/r/styles/radix-lyra/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/radix-lyra/examples/toggle-group-example.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-lyra/components/example\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/radix-lyra/ui/field\"\nimport { Input } from \"@/registry/radix-lyra/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-lyra/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-lyra/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-lyra/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/radix-lyra/ui/field\"\nimport { Input } from \"@/registry/radix-lyra/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-lyra/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-lyra/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/radix-lyra/tooltip.json b/apps/v4/public/r/styles/radix-lyra/tooltip.json index b6f2c1f2a1..33d95463cd 100644 --- a/apps/v4/public/r/styles/radix-lyra/tooltip.json +++ b/apps/v4/public/r/styles/radix-lyra/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/radix-maia/registry.json b/apps/v4/public/r/styles/radix-maia/registry.json index f77ae0a9d3..0f52517357 100644 --- a/apps/v4/public/r/styles/radix-maia/registry.json +++ b/apps/v4/public/r/styles/radix-maia/registry.json @@ -606,6 +606,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/radix-maia/toggle-group-example.json b/apps/v4/public/r/styles/radix-maia/toggle-group-example.json index 4b2d424eb1..082fc0fd64 100644 --- a/apps/v4/public/r/styles/radix-maia/toggle-group-example.json +++ b/apps/v4/public/r/styles/radix-maia/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/radix-maia/examples/toggle-group-example.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-maia/components/example\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/radix-maia/ui/field\"\nimport { Input } from \"@/registry/radix-maia/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-maia/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-maia/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-maia/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/radix-maia/ui/field\"\nimport { Input } from \"@/registry/radix-maia/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-maia/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-maia/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/radix-maia/tooltip.json b/apps/v4/public/r/styles/radix-maia/tooltip.json index 74d5d018fa..7e70e5b9a1 100644 --- a/apps/v4/public/r/styles/radix-maia/tooltip.json +++ b/apps/v4/public/r/styles/radix-maia/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/radix-mira/registry.json b/apps/v4/public/r/styles/radix-mira/registry.json index 68fd55ec4e..8a84dd76d1 100644 --- a/apps/v4/public/r/styles/radix-mira/registry.json +++ b/apps/v4/public/r/styles/radix-mira/registry.json @@ -606,6 +606,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/radix-mira/toggle-group-example.json b/apps/v4/public/r/styles/radix-mira/toggle-group-example.json index a980c6d5af..bd6251220a 100644 --- a/apps/v4/public/r/styles/radix-mira/toggle-group-example.json +++ b/apps/v4/public/r/styles/radix-mira/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/radix-mira/examples/toggle-group-example.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-mira/components/example\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/radix-mira/ui/field\"\nimport { Input } from \"@/registry/radix-mira/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-mira/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-mira/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-mira/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/radix-mira/ui/field\"\nimport { Input } from \"@/registry/radix-mira/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-mira/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-mira/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/radix-mira/tooltip.json b/apps/v4/public/r/styles/radix-mira/tooltip.json index 4e08bc5ba5..25f1b45fa9 100644 --- a/apps/v4/public/r/styles/radix-mira/tooltip.json +++ b/apps/v4/public/r/styles/radix-mira/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/radix-nova/registry.json b/apps/v4/public/r/styles/radix-nova/registry.json index a284a04ef5..c4b4f9cad3 100644 --- a/apps/v4/public/r/styles/radix-nova/registry.json +++ b/apps/v4/public/r/styles/radix-nova/registry.json @@ -606,6 +606,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/radix-nova/toggle-group-example.json b/apps/v4/public/r/styles/radix-nova/toggle-group-example.json index 8283bcd4ed..5eabe17fe2 100644 --- a/apps/v4/public/r/styles/radix-nova/toggle-group-example.json +++ b/apps/v4/public/r/styles/radix-nova/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/radix-nova/examples/toggle-group-example.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-nova/components/example\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/radix-nova/ui/field\"\nimport { Input } from \"@/registry/radix-nova/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-nova/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-nova/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-nova/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/radix-nova/ui/field\"\nimport { Input } from \"@/registry/radix-nova/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-nova/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-nova/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/radix-nova/tooltip.json b/apps/v4/public/r/styles/radix-nova/tooltip.json index 8a615dd976..fa69b11234 100644 --- a/apps/v4/public/r/styles/radix-nova/tooltip.json +++ b/apps/v4/public/r/styles/radix-nova/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/public/r/styles/radix-vega/registry.json b/apps/v4/public/r/styles/radix-vega/registry.json index f75677506c..9b3c525a56 100644 --- a/apps/v4/public/r/styles/radix-vega/registry.json +++ b/apps/v4/public/r/styles/radix-vega/registry.json @@ -606,6 +606,7 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" }, { diff --git a/apps/v4/public/r/styles/radix-vega/toggle-group-example.json b/apps/v4/public/r/styles/radix-vega/toggle-group-example.json index 653e4c2105..24c5eaeaf4 100644 --- a/apps/v4/public/r/styles/radix-vega/toggle-group-example.json +++ b/apps/v4/public/r/styles/radix-vega/toggle-group-example.json @@ -11,7 +11,7 @@ "files": [ { "path": "registry/radix-vega/examples/toggle-group-example.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-vega/components/example\"\nimport { Field, FieldDescription, FieldLabel } from \"@/registry/radix-vega/ui/field\"\nimport { Input } from \"@/registry/radix-vega/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-vega/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-vega/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)} variant=\"outline\" spacing={2} size=\"lg\">\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use font-{fontWeight} to set the font weight.\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": "\"use client\"\n\nimport * as React from \"react\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-vega/components/example\"\nimport {\n Field,\n FieldDescription,\n FieldLabel,\n} from \"@/registry/radix-vega/ui/field\"\nimport { Input } from \"@/registry/radix-vega/ui/input\"\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from \"@/registry/radix-vega/ui/select\"\nimport {\n ToggleGroup,\n ToggleGroupItem,\n} from \"@/registry/radix-vega/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}\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 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 ToggleGroupFontWeightSelector() {\n const [fontWeight, setFontWeight] = React.useState(\"normal\")\n return (\n \n \n Font Weight\n setFontWeight(value)}\n variant=\"outline\"\n spacing={2}\n size=\"lg\"\n >\n \n Aa\n Light\n \n \n Aa\n Normal\n \n \n Aa\n Medium\n \n \n Aa\n Bold\n \n \n \n Use{\" \"}\n \n font-{fontWeight}\n {\" \"}\n to set the font weight.\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/radix-vega/tooltip.json b/apps/v4/public/r/styles/radix-vega/tooltip.json index c2963b82ee..34f1bce9d7 100644 --- a/apps/v4/public/r/styles/radix-vega/tooltip.json +++ b/apps/v4/public/r/styles/radix-vega/tooltip.json @@ -8,5 +8,6 @@ "type": "registry:ui" } ], + "docs": "The `tooltip` component has been added. Remember to wrap your app with the `TooltipProvider` component.\n\n```tsx title=\"app/layout.tsx\"\nimport { TooltipProvider } from \"@/components/ui/tooltip\"\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n \n \n {children}\n \n \n )\n}\n```\n", "type": "registry:ui" } \ No newline at end of file diff --git a/apps/v4/registry/bases/base/ui/_registry.ts b/apps/v4/registry/bases/base/ui/_registry.ts index 6eb0490e34..f6993983fc 100644 --- a/apps/v4/registry/bases/base/ui/_registry.ts +++ b/apps/v4/registry/bases/base/ui/_registry.ts @@ -551,6 +551,22 @@ export const ui: Registry["items"] = [ { name: "tooltip", type: "registry:ui", + docs: `The \`tooltip\` component has been added. Remember to wrap your app with the \`TooltipProvider\` component. + +\`\`\`tsx title="app/layout.tsx" +import { TooltipProvider } from "@/components/ui/tooltip" + +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + + + {children} + + + ) +} +\`\`\` +`, files: [ { path: "ui/tooltip.tsx", diff --git a/apps/v4/registry/bases/radix/ui/_registry.ts b/apps/v4/registry/bases/radix/ui/_registry.ts index be3262af54..ecb6e76978 100644 --- a/apps/v4/registry/bases/radix/ui/_registry.ts +++ b/apps/v4/registry/bases/radix/ui/_registry.ts @@ -549,6 +549,22 @@ export const ui: Registry["items"] = [ { name: "tooltip", type: "registry:ui", + docs: `The \`tooltip\` component has been added. Remember to wrap your app with the \`TooltipProvider\` component. + +\`\`\`tsx title="app/layout.tsx" +import { TooltipProvider } from "@/components/ui/tooltip" + +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + + + {children} + + + ) +} +\`\`\` +`, files: [ { path: "ui/tooltip.tsx", diff --git a/apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx b/apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx index 88525864cd..0ec98bbf62 100644 --- a/apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx +++ b/apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx @@ -1,6 +1,7 @@ "use client" import * as React from "react" +import { Vazirmatn } from "next/font/google" import { ChevronDownIcon, ChevronLeftIcon, @@ -8,7 +9,6 @@ import { } from "lucide-react" import { getDefaultClassNames, type DayButton } from "react-day-picker" import { DayPicker } from "react-day-picker/persian" -import { Vazirmatn } from "next/font/google" import { cn } from "@/lib/utils" import { Button, buttonVariants } from "@/registry/new-york-v4/ui/button" diff --git a/apps/v4/registry/new-york-v4/ui/_registry.ts b/apps/v4/registry/new-york-v4/ui/_registry.ts index a1b214f334..986ccdc04e 100644 --- a/apps/v4/registry/new-york-v4/ui/_registry.ts +++ b/apps/v4/registry/new-york-v4/ui/_registry.ts @@ -649,6 +649,22 @@ export const ui: Registry["items"] = [ name: "tooltip", type: "registry:ui", dependencies: ["radix-ui"], + docs: `The \`tooltip\` component has been added. Remember to wrap your app with the \`TooltipProvider\` component. + +\`\`\`tsx title="app/layout.tsx" +import { TooltipProvider } from "@/components/ui/tooltip" + +export default function RootLayout({ children }: { children: React.ReactNode }) { + return ( + + + {children} + + + ) +} +\`\`\` +`, files: [ { path: "ui/tooltip.tsx",