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
+12
-8
@@ -55,14 +55,14 @@ const NavItem = React.forwardRef<HTMLDivElement, NavItemProps>(function NavItem(
|
||||
)}
|
||||
>
|
||||
{icon ? (
|
||||
<SubframeCore.IconWrapper className="text-body-default-semibold-0 font-body-default-semibold-0 text-icon-neutral-primary group-active/7aa51c7e:text-icon-neutral-on-subtle">
|
||||
<SubframeCore.IconWrapper className="inline-flex h-4 w-4 flex-none items-center justify-center leading-none text-body-default-semibold-0 font-body-default-semibold-0 text-icon-neutral-primary group-active/7aa51c7e:text-icon-neutral-on-subtle [&>svg]:h-full [&>svg]:w-full">
|
||||
{icon}
|
||||
</SubframeCore.IconWrapper>
|
||||
) : null}
|
||||
{children ? (
|
||||
<span
|
||||
className={SubframeUtils.twClassNames(
|
||||
"line-clamp-1 grow shrink-0 basis-0 text-body-small-regular-0 font-body-small-regular-0 text-text-neutral-secondary group-active/7aa51c7e:text-text-neutral-on-subtle",
|
||||
"min-w-0 flex-1 truncate text-body-small-regular-0 font-body-small-regular-0 text-text-neutral-secondary group-active/7aa51c7e:text-text-neutral-on-subtle",
|
||||
{
|
||||
hidden: variant === "icon-only",
|
||||
"text-text-neutral-on-subtle": selected,
|
||||
@@ -207,7 +207,7 @@ const Subcomponent = React.forwardRef<HTMLDivElement, SubcomponentProps>(
|
||||
>
|
||||
<IconButton
|
||||
variant="tertiary"
|
||||
size="extra-small"
|
||||
size="small"
|
||||
square={true}
|
||||
icon={
|
||||
sidebarButton === "open" ? (
|
||||
@@ -229,6 +229,8 @@ export interface SidebarInsideRootProps
|
||||
children?: React.ReactNode;
|
||||
visible?: boolean;
|
||||
className?: string;
|
||||
// @subframe/sync-disable -- local fix: Inner sidebar collapse is controlled by the app shell.
|
||||
onToggleCollapse?: () => void;
|
||||
}
|
||||
|
||||
const SidebarInsideRoot = React.forwardRef<HTMLElement, SidebarInsideRootProps>(
|
||||
@@ -239,6 +241,7 @@ const SidebarInsideRoot = React.forwardRef<HTMLElement, SidebarInsideRootProps>(
|
||||
children,
|
||||
visible = false,
|
||||
className,
|
||||
onToggleCollapse,
|
||||
...otherProps
|
||||
}: SidebarInsideRootProps,
|
||||
ref
|
||||
@@ -246,10 +249,10 @@ const SidebarInsideRoot = React.forwardRef<HTMLElement, SidebarInsideRootProps>(
|
||||
return (
|
||||
<nav
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/f6538807 hidden h-full min-w-[208px] flex-col items-start rounded-l-md border-r border-solid border-border-default bg-surface-neutral-secondary relative",
|
||||
"group/f6538807 hidden h-full w-[208px] min-w-0 flex-col items-start rounded-l-md border-r border-solid border-border-default bg-surface-neutral-secondary relative transition-[width] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-[width]",
|
||||
{
|
||||
flex: visible,
|
||||
"w-12 items-center justify-center": variant === "closed",
|
||||
"w-12 items-center": variant === "closed",
|
||||
},
|
||||
className
|
||||
)}
|
||||
@@ -257,13 +260,14 @@ const SidebarInsideRoot = React.forwardRef<HTMLElement, SidebarInsideRootProps>(
|
||||
{...otherProps}
|
||||
>
|
||||
<Subcomponent
|
||||
className="absolute -right-[17px] top-[26px] z-10"
|
||||
sidebarButton={variant === "closed" ? "open" : undefined}
|
||||
className="absolute -right-[17px] top-[26px] z-40 cursor-pointer"
|
||||
sidebarButton={variant === "closed" ? "open" : "close"}
|
||||
onClick={onToggleCollapse}
|
||||
/>
|
||||
{children ? (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start px-2 pt-1 pb-2 overflow-auto",
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start overflow-y-auto overflow-x-hidden px-2 pt-1 pb-2",
|
||||
{ "items-center": variant === "closed" }
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user