Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -1,6 +1,6 @@
import * as React from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { t as i18nT } from "i18next";
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
import { XIcon } from "~/components/ui/icons/vendor";
import { cn } from "~/lib/utils";
@@ -38,24 +38,38 @@ function DialogContent({
className,
children,
withCloseButton = true,
overlayClassName,
closeButtonClassName,
positioning = "centered",
...props
}: React.ComponentProps<typeof DialogPrimitive.Content> & { withCloseButton?: boolean }) {
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
withCloseButton?: boolean;
overlayClassName?: string;
closeButtonClassName?: string;
positioning?: "centered" | "custom";
}) {
return (
<DialogPortal data-slot="dialog-portal">
<DialogOverlay />
<DialogOverlay className={overlayClassName} />
<DialogPrimitive.Content
data-slot="dialog-content"
data-positioning={positioning}
className={cn(
// Subframe Dialog.Content layout: min-w 320px, rounded-md, gap-2, scrollable max-h-[90vh].
// Radix-only pieces kept: fixed centering, animations, max-width clamp, p-6, border token.
"bg-surface-neutral-modal data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid max-h-[90vh] w-full min-w-[320px] max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-2 overflow-auto rounded-md border border-solid border-border-default p-6 shadow-lg duration-200 sm:max-w-lg",
"bg-surface-neutral-modal data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 border-border-default fixed z-50 grid gap-2 overflow-auto rounded-md border border-solid p-6 shadow-lg duration-200",
positioning === "centered" &&
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 top-[50%] left-[50%] max-h-[90vh] w-full max-w-[calc(100%-2rem)] min-w-[320px] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg",
className
)}
{...props}
>
{children}
{withCloseButton && (
<DialogPrimitive.Close className="data-[state=open]:bg-surface-neutral-secondary data-[state=open]:text-text-neutral-tertiary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:shadow-focus focus-visible:border-brand-brand-border-solid-default focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<DialogPrimitive.Close
className={cn(
"data-[state=open]:bg-surface-neutral-secondary data-[state=open]:text-text-neutral-tertiary focus-visible:shadow-focus focus-visible:border-brand-brand-border-solid-default absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
closeButtonClassName
)}
>
<XIcon />
<span className="sr-only">{i18nT("shared.close")}</span>
</DialogPrimitive.Close>