diff --git a/apps/v4/content/docs/components/base/dialog.mdx b/apps/v4/content/docs/components/base/dialog.mdx index 8ab859d4ae2..151ab6776b3 100644 --- a/apps/v4/content/docs/components/base/dialog.mdx +++ b/apps/v4/content/docs/components/base/dialog.mdx @@ -110,6 +110,7 @@ Replace the default close control with your own button. ### No Close Button Use `showCloseButton={false}` to hide the close button. +Use `closeLabel` to localize the default close button label. diff --git a/apps/v4/content/docs/components/radix/dialog.mdx b/apps/v4/content/docs/components/radix/dialog.mdx index e9fcc253252..aa606b654eb 100644 --- a/apps/v4/content/docs/components/radix/dialog.mdx +++ b/apps/v4/content/docs/components/radix/dialog.mdx @@ -110,6 +110,7 @@ Replace the default close control with your own button. ### No Close Button Use `showCloseButton={false}` to hide the close button. +Use `closeLabel` to localize the default close button label. diff --git a/apps/v4/public/r/styles/base-luma/dialog.json b/apps/v4/public/r/styles/base-luma/dialog.json index c454097a87a..ddbaab5de57 100644 --- a/apps/v4/public/r/styles/base-luma/dialog.json +++ b/apps/v4/public/r/styles/base-luma/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-luma/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-luma/lib/utils\"\nimport { Button } from \"@/registry/base-luma/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-luma/lib/utils\"\nimport { Button } from \"@/registry/base-luma/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-lyra/dialog.json b/apps/v4/public/r/styles/base-lyra/dialog.json index 3fe3b3acb7e..6266959f027 100644 --- a/apps/v4/public/r/styles/base-lyra/dialog.json +++ b/apps/v4/public/r/styles/base-lyra/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-lyra/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-lyra/lib/utils\"\nimport { Button } from \"@/registry/base-lyra/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-lyra/lib/utils\"\nimport { Button } from \"@/registry/base-lyra/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-maia/dialog.json b/apps/v4/public/r/styles/base-maia/dialog.json index e3e8cfc0f38..242b55bc473 100644 --- a/apps/v4/public/r/styles/base-maia/dialog.json +++ b/apps/v4/public/r/styles/base-maia/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-maia/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-maia/lib/utils\"\nimport { Button } from \"@/registry/base-maia/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-maia/lib/utils\"\nimport { Button } from \"@/registry/base-maia/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-mira/dialog.json b/apps/v4/public/r/styles/base-mira/dialog.json index 7ad36fd2a20..fe119df2282 100644 --- a/apps/v4/public/r/styles/base-mira/dialog.json +++ b/apps/v4/public/r/styles/base-mira/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-mira/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-mira/lib/utils\"\nimport { Button } from \"@/registry/base-mira/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-mira/lib/utils\"\nimport { Button } from \"@/registry/base-mira/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-nova/dialog.json b/apps/v4/public/r/styles/base-nova/dialog.json index 3312361609e..e28b5b99946 100644 --- a/apps/v4/public/r/styles/base-nova/dialog.json +++ b/apps/v4/public/r/styles/base-nova/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-nova/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-nova/lib/utils\"\nimport { Button } from \"@/registry/base-nova/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-nova/lib/utils\"\nimport { Button } from \"@/registry/base-nova/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-sera/dialog.json b/apps/v4/public/r/styles/base-sera/dialog.json index cc2d2c43426..9fea1451cd3 100644 --- a/apps/v4/public/r/styles/base-sera/dialog.json +++ b/apps/v4/public/r/styles/base-sera/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-sera/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-sera/lib/utils\"\nimport { Button } from \"@/registry/base-sera/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-sera/lib/utils\"\nimport { Button } from \"@/registry/base-sera/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/base-vega/dialog.json b/apps/v4/public/r/styles/base-vega/dialog.json index 890bb25c961..091bf4c528f 100644 --- a/apps/v4/public/r/styles/base-vega/dialog.json +++ b/apps/v4/public/r/styles/base-vega/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/base-vega/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-vega/lib/utils\"\nimport { Button } from \"@/registry/base-vega/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n Close\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n Close\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"@base-ui/react/dialog\"\n\nimport { cn } from \"@/registry/base-vega/lib/utils\"\nimport { Button } from \"@/registry/base-vega/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({ ...props }: DialogPrimitive.Root.Props) {\n return \n}\n\nfunction DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {\n return \n}\n\nfunction DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {\n return \n}\n\nfunction DialogClose({ ...props }: DialogPrimitive.Close.Props) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: DialogPrimitive.Backdrop.Props) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: DialogPrimitive.Popup.Props & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n }\n >\n \n {closeLabel}\n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n }>\n {closeLabel}\n \n )}\n \n )\n}\n\nfunction DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: DialogPrimitive.Description.Props) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-luma/dialog.json b/apps/v4/public/r/styles/radix-luma/dialog.json index bd602da5760..f7452cf0b58 100644 --- a/apps/v4/public/r/styles/radix-luma/dialog.json +++ b/apps/v4/public/r/styles/radix-luma/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-luma/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-luma/lib/utils\"\nimport { Button } from \"@/registry/radix-luma/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-luma/lib/utils\"\nimport { Button } from \"@/registry/radix-luma/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-lyra/dialog.json b/apps/v4/public/r/styles/radix-lyra/dialog.json index 4b17cbbf48e..7f4d381d554 100644 --- a/apps/v4/public/r/styles/radix-lyra/dialog.json +++ b/apps/v4/public/r/styles/radix-lyra/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-lyra/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-lyra/lib/utils\"\nimport { Button } from \"@/registry/radix-lyra/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-lyra/lib/utils\"\nimport { Button } from \"@/registry/radix-lyra/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-maia/dialog.json b/apps/v4/public/r/styles/radix-maia/dialog.json index 9f28633a4a8..e421848b3fd 100644 --- a/apps/v4/public/r/styles/radix-maia/dialog.json +++ b/apps/v4/public/r/styles/radix-maia/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-maia/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-maia/lib/utils\"\nimport { Button } from \"@/registry/radix-maia/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-maia/lib/utils\"\nimport { Button } from \"@/registry/radix-maia/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-mira/dialog.json b/apps/v4/public/r/styles/radix-mira/dialog.json index f886681de48..90c39a85cee 100644 --- a/apps/v4/public/r/styles/radix-mira/dialog.json +++ b/apps/v4/public/r/styles/radix-mira/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-mira/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-mira/lib/utils\"\nimport { Button } from \"@/registry/radix-mira/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-mira/lib/utils\"\nimport { Button } from \"@/registry/radix-mira/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-nova/dialog.json b/apps/v4/public/r/styles/radix-nova/dialog.json index 9c67814a1a6..299b13306f1 100644 --- a/apps/v4/public/r/styles/radix-nova/dialog.json +++ b/apps/v4/public/r/styles/radix-nova/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-nova/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-nova/lib/utils\"\nimport { Button } from \"@/registry/radix-nova/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-nova/lib/utils\"\nimport { Button } from \"@/registry/radix-nova/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-sera/dialog.json b/apps/v4/public/r/styles/radix-sera/dialog.json index 7c7cc927d5e..f0f14f15f91 100644 --- a/apps/v4/public/r/styles/radix-sera/dialog.json +++ b/apps/v4/public/r/styles/radix-sera/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-sera/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-sera/lib/utils\"\nimport { Button } from \"@/registry/radix-sera/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-sera/lib/utils\"\nimport { Button } from \"@/registry/radix-sera/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/public/r/styles/radix-vega/dialog.json b/apps/v4/public/r/styles/radix-vega/dialog.json index 3dae725f726..f1fc96b7389 100644 --- a/apps/v4/public/r/styles/radix-vega/dialog.json +++ b/apps/v4/public/r/styles/radix-vega/dialog.json @@ -7,7 +7,7 @@ "files": [ { "path": "registry/radix-vega/ui/dialog.tsx", - "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-vega/lib/utils\"\nimport { Button } from \"@/registry/radix-vega/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n Close\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", + "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { Dialog as DialogPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/registry/radix-vega/lib/utils\"\nimport { Button } from \"@/registry/radix-vega/ui/button\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nfunction Dialog({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogTrigger({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogPortal({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogClose({\n ...props\n}: React.ComponentProps) {\n return \n}\n\nfunction DialogOverlay({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogContent({\n className,\n children,\n showCloseButton = true,\n closeLabel = \"Close\",\n ...props\n}: React.ComponentProps & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n \n \n {children}\n {showCloseButton && (\n \n \n \n {closeLabel}\n \n \n )}\n \n \n )\n}\n\nfunction DialogHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n \n )\n}\n\nfunction DialogFooter({\n className,\n showCloseButton = false,\n closeLabel = \"Close\",\n children,\n ...props\n}: React.ComponentProps<\"div\"> & {\n showCloseButton?: boolean\n closeLabel?: React.ReactNode\n}) {\n return (\n \n {children}\n {showCloseButton && (\n \n \n \n )}\n \n )\n}\n\nfunction DialogTitle({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nfunction DialogDescription({\n className,\n ...props\n}: React.ComponentProps) {\n return (\n \n )\n}\n\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n}\n", "type": "registry:ui" } ], diff --git a/apps/v4/registry/bases/base/ui/dialog.tsx b/apps/v4/registry/bases/base/ui/dialog.tsx index 6c88a072af3..86ecdcd6824 100644 --- a/apps/v4/registry/bases/base/ui/dialog.tsx +++ b/apps/v4/registry/bases/base/ui/dialog.tsx @@ -40,9 +40,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -74,7 +76,7 @@ function DialogContent({ phosphor="XIcon" remixicon="RiCloseLine" /> - Close + {closeLabel} )} @@ -95,10 +97,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/registry/bases/radix/ui/dialog.tsx b/apps/v4/registry/bases/radix/ui/dialog.tsx index da9bc058324..5711765d4c4 100644 --- a/apps/v4/registry/bases/radix/ui/dialog.tsx +++ b/apps/v4/registry/bases/radix/ui/dialog.tsx @@ -48,9 +48,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -74,7 +76,7 @@ function DialogContent({ phosphor="XIcon" remixicon="RiCloseLine" /> - Close + {closeLabel}
)} @@ -96,10 +98,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/base-luma/ui/dialog.tsx b/apps/v4/styles/base-luma/ui/dialog.tsx index 7520b3e3b62..77875120912 100644 --- a/apps/v4/styles/base-luma/ui/dialog.tsx +++ b/apps/v4/styles/base-luma/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-lyra/ui/dialog.tsx b/apps/v4/styles/base-lyra/ui/dialog.tsx index 28b0a696947..3e9e63f0938 100644 --- a/apps/v4/styles/base-lyra/ui/dialog.tsx +++ b/apps/v4/styles/base-lyra/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-maia/ui/dialog.tsx b/apps/v4/styles/base-maia/ui/dialog.tsx index 41e6821b647..f171a680ca9 100644 --- a/apps/v4/styles/base-maia/ui/dialog.tsx +++ b/apps/v4/styles/base-maia/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-mira/ui/dialog.tsx b/apps/v4/styles/base-mira/ui/dialog.tsx index b7f06153c20..d32c0a8f791 100644 --- a/apps/v4/styles/base-mira/ui/dialog.tsx +++ b/apps/v4/styles/base-mira/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-nova/ui-rtl/dialog.tsx b/apps/v4/styles/base-nova/ui-rtl/dialog.tsx index 9562dd0f75f..4406d5ea874 100644 --- a/apps/v4/styles/base-nova/ui-rtl/dialog.tsx +++ b/apps/v4/styles/base-nova/ui-rtl/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-nova/ui/dialog.tsx b/apps/v4/styles/base-nova/ui/dialog.tsx index 3e79853b638..b48f4e517a1 100644 --- a/apps/v4/styles/base-nova/ui/dialog.tsx +++ b/apps/v4/styles/base-nova/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-sera/ui/dialog.tsx b/apps/v4/styles/base-sera/ui/dialog.tsx index ca24f28c606..42f9e8a45bc 100644 --- a/apps/v4/styles/base-sera/ui/dialog.tsx +++ b/apps/v4/styles/base-sera/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/base-vega/ui/dialog.tsx b/apps/v4/styles/base-vega/ui/dialog.tsx index de05c24c9de..6103ff914e9 100644 --- a/apps/v4/styles/base-vega/ui/dialog.tsx +++ b/apps/v4/styles/base-vega/ui/dialog.tsx @@ -43,9 +43,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -71,7 +73,7 @@ function DialogContent({ } > - Close + {closeLabel}
)} @@ -92,10 +94,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
}> - Close + {closeLabel} )}
diff --git a/apps/v4/styles/radix-luma/ui/dialog.tsx b/apps/v4/styles/radix-luma/ui/dialog.tsx index 28a5b81c659..33c0d5e3c58 100644 --- a/apps/v4/styles/radix-luma/ui/dialog.tsx +++ b/apps/v4/styles/radix-luma/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel}
)} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-lyra/ui/dialog.tsx b/apps/v4/styles/radix-lyra/ui/dialog.tsx index b15372e2cec..6b607081830 100644 --- a/apps/v4/styles/radix-lyra/ui/dialog.tsx +++ b/apps/v4/styles/radix-lyra/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel}
)} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-maia/ui/dialog.tsx b/apps/v4/styles/radix-maia/ui/dialog.tsx index 2dd19a5cc59..3715c24f359 100644 --- a/apps/v4/styles/radix-maia/ui/dialog.tsx +++ b/apps/v4/styles/radix-maia/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel}
)} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-mira/ui/dialog.tsx b/apps/v4/styles/radix-mira/ui/dialog.tsx index a0699777617..55be172ee0c 100644 --- a/apps/v4/styles/radix-mira/ui/dialog.tsx +++ b/apps/v4/styles/radix-mira/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel}
)} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-nova/ui-rtl/dialog.tsx b/apps/v4/styles/radix-nova/ui-rtl/dialog.tsx index 28d212e82d1..bafe61a618f 100644 --- a/apps/v4/styles/radix-nova/ui-rtl/dialog.tsx +++ b/apps/v4/styles/radix-nova/ui-rtl/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel} )} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-nova/ui/dialog.tsx b/apps/v4/styles/radix-nova/ui/dialog.tsx index 9dae27b8901..d2ec67696e1 100644 --- a/apps/v4/styles/radix-nova/ui/dialog.tsx +++ b/apps/v4/styles/radix-nova/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel} )} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-sera/ui/dialog.tsx b/apps/v4/styles/radix-sera/ui/dialog.tsx index b73f2cb065c..c01847ffdac 100644 --- a/apps/v4/styles/radix-sera/ui/dialog.tsx +++ b/apps/v4/styles/radix-sera/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel} )} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}
diff --git a/apps/v4/styles/radix-vega/ui/dialog.tsx b/apps/v4/styles/radix-vega/ui/dialog.tsx index b2bf4c6214f..5c766b9e635 100644 --- a/apps/v4/styles/radix-vega/ui/dialog.tsx +++ b/apps/v4/styles/radix-vega/ui/dialog.tsx @@ -51,9 +51,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeLabel = "Close", ...props }: React.ComponentProps & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return ( @@ -75,7 +77,7 @@ function DialogContent({ size="icon-sm" > - Close + {closeLabel} )} @@ -97,10 +99,12 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { function DialogFooter({ className, showCloseButton = false, + closeLabel = "Close", children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean + closeLabel?: React.ReactNode }) { return (
- + )}