Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+13
-1
@@ -19,6 +19,7 @@ export interface AlertRootProps
|
||||
notDismissible?: boolean;
|
||||
title?: React.ReactNode;
|
||||
description?: React.ReactNode;
|
||||
textSize?: "default" | "small";
|
||||
actions?: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
@@ -30,6 +31,7 @@ const AlertRoot = React.forwardRef<HTMLDivElement, AlertRootProps>(
|
||||
notDismissible = false,
|
||||
title,
|
||||
description,
|
||||
textSize = "default",
|
||||
actions,
|
||||
className,
|
||||
...otherProps
|
||||
@@ -98,6 +100,8 @@ const AlertRoot = React.forwardRef<HTMLDivElement, AlertRootProps>(
|
||||
className={SubframeUtils.twClassNames(
|
||||
"w-full whitespace-pre-wrap text-body-default-medium-0 font-body-default-medium-0 text-text-feedback-information",
|
||||
{
|
||||
"text-body-small-medium-0 font-body-small-medium-0":
|
||||
textSize === "small",
|
||||
"text-text-neutral-primary": variant === "neutral",
|
||||
"text-text-feedback-negative": variant === "error",
|
||||
"text-text-feedback-warning": variant === "warning",
|
||||
@@ -109,7 +113,15 @@ const AlertRoot = React.forwardRef<HTMLDivElement, AlertRootProps>(
|
||||
</span>
|
||||
) : null}
|
||||
{description ? (
|
||||
<span className="w-full whitespace-pre-wrap text-body-default-regular-0 font-body-default-regular-0 text-text-neutral-secondary">
|
||||
<span
|
||||
className={SubframeUtils.twClassNames(
|
||||
"w-full whitespace-pre-wrap text-body-default-regular-0 font-body-default-regular-0 text-text-neutral-secondary",
|
||||
{
|
||||
"text-body-small-regular-0 font-body-small-regular-0":
|
||||
textSize === "small",
|
||||
}
|
||||
)}
|
||||
>
|
||||
{description}
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
Reference in new issue
Block a user