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}
|
||||
|
||||
+13
-3
@@ -1,10 +1,20 @@
|
||||
"use client";
|
||||
import { EmptyState as EmptyStateComponent } from "./EmptyState";
|
||||
import React from "react";
|
||||
import { EmptyState as EmptyStateComponent, type EmptyStateRootProps } from "./EmptyState";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*
|
||||
* Wrapper rationale (2026-07-07, R-P5 verification): the synced Subframe
|
||||
* component always renders a hardcoded, non-wired english CTA ("Create
|
||||
* project" / "Try again" / "Clear filters") - no onClick, no i18n (violates
|
||||
* DoD B10/E23). Until the design-system component gets a proper action slot
|
||||
* (design-nachzug), the wrapper hides that dead internal button; screens render
|
||||
* their own translated action next to the EmptyState.
|
||||
*/
|
||||
|
||||
export const EmptyState = EmptyStateComponent;
|
||||
export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateRootProps>(function EmptyState({ className, ...props }, ref) {
|
||||
return <EmptyStateComponent ref={ref} className={SubframeUtils.twClassNames("[&_button]:hidden", className)} {...props} />;
|
||||
});
|
||||
+4
-4
@@ -86,13 +86,13 @@ const IconButtonRoot = React.forwardRef<HTMLButtonElement, IconButtonRootProps>(
|
||||
{icon ? (
|
||||
<SubframeCore.IconWrapper
|
||||
className={SubframeUtils.twClassNames(
|
||||
"text-body-large-0 font-body-large-0 text-icon-neutral-on-solid group-disabled/af9405b1:text-icon-neutral-disabled",
|
||||
"inline-flex h-5 w-5 flex-none items-center justify-center leading-none text-body-large-0 font-body-large-0 text-icon-neutral-on-solid group-disabled/af9405b1:text-icon-neutral-disabled [&>svg]:h-full [&>svg]:w-full",
|
||||
{
|
||||
"text-body-small-semibold-0 font-body-small-semibold-0":
|
||||
"h-3.5 w-3.5 text-body-small-semibold-0 font-body-small-semibold-0":
|
||||
size === "2-x-small",
|
||||
"text-body-default-semibold-0 font-body-default-semibold-0":
|
||||
"h-4 w-4 text-body-default-semibold-0 font-body-default-semibold-0":
|
||||
size === "extra-small",
|
||||
"text-heading-0 font-heading-0": size === "large",
|
||||
"h-6 w-6 text-heading-0 font-heading-0": size === "large",
|
||||
"text-icon-neutral-secondary": variant === "ghost",
|
||||
"text-icon-neutral-on-subtle": variant === "tertiary",
|
||||
"text-icon-neutral-primary": variant === "secondary",
|
||||
|
||||
+13
-5
@@ -4,7 +4,7 @@
|
||||
* Search Input — https://app.subframe.com/f023064a5ca0/library?component=Search+Input_75a35ed3-52c0-4435-8586-e390eb77d723
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { FeatherLoader } from "@subframe/core";
|
||||
import { FeatherSearch } from "@subframe/core";
|
||||
import { FeatherX } from "@subframe/core";
|
||||
@@ -56,11 +56,18 @@ const SearchInputRoot = React.forwardRef<HTMLDivElement, SearchInputRootProps>(
|
||||
}: SearchInputRootProps,
|
||||
ref
|
||||
) {
|
||||
const [isAppleShortcut, setIsAppleShortcut] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
const platform = window.navigator.platform || window.navigator.userAgent;
|
||||
setIsAppleShortcut(/Mac|iPhone|iPad|iPod/i.test(platform));
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/75a35ed3 flex w-full max-w-[320px] cursor-pointer flex-col items-start justify-center gap-4",
|
||||
{ "h-9 min-w-[288px] max-w-none": fillContainer },
|
||||
{ "h-9 min-w-0 max-w-none": fillContainer },
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
@@ -102,11 +109,11 @@ const SearchInputRoot = React.forwardRef<HTMLDivElement, SearchInputRootProps>(
|
||||
{/* @subframe/sync-disable -- local fix: Feld als <label> statt <div> -> Klick irgendwo im Feld (inkl. Lupe) fokussiert nativ den <input> ("die Lupe loest das Suchfeld aus"). cursor-text als Affordance. */}
|
||||
<label
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex h-9 w-full min-w-[288px] max-w-[320px] flex-none cursor-text items-center gap-2 rounded-sm border border-solid border-border-strong bg-surface-neutral-primary px-3 group-hover/75a35ed3:bg-surface-neutral-secondary group-focus-within/75a35ed3:bg-surface-neutral-secondary group-focus-within/75a35ed3:shadow-focus",
|
||||
"flex h-9 w-full min-w-[288px] max-w-[320px] flex-none cursor-text items-center gap-2.5 rounded-sm border border-solid border-border-strong bg-surface-neutral-primary px-3 group-hover/75a35ed3:bg-surface-neutral-secondary group-focus-within/75a35ed3:bg-surface-neutral-secondary group-focus-within/75a35ed3:shadow-focus",
|
||||
{
|
||||
"h-auto w-auto px-0 py-0": noPadding,
|
||||
"border-none": borderless,
|
||||
"max-w-none": fillContainer,
|
||||
"min-w-0 max-w-none": fillContainer,
|
||||
"h-12 min-w-[192px]": size === "large",
|
||||
"h-8 min-w-[192px]": size === "small",
|
||||
"bg-surface-neutral-secondary": variant === "filled",
|
||||
@@ -153,11 +160,12 @@ const SearchInputRoot = React.forwardRef<HTMLDivElement, SearchInputRootProps>(
|
||||
)}
|
||||
>
|
||||
<BadgeShortcut
|
||||
icon={isAppleShortcut ? undefined : null}
|
||||
className={SubframeUtils.twClassNames({
|
||||
"h-auto min-h-[20px] w-auto flex-none": disabled,
|
||||
})}
|
||||
>
|
||||
K
|
||||
{isAppleShortcut ? "K" : "Strg K"}
|
||||
</BadgeShortcut>
|
||||
</div>
|
||||
<FeatherLoader
|
||||
|
||||
+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" }
|
||||
)}
|
||||
>
|
||||
|
||||
+6
-6
@@ -67,14 +67,14 @@ const NavItem = React.forwardRef<HTMLDivElement, NavItemProps>(function NavItem(
|
||||
)}
|
||||
>
|
||||
{icon ? (
|
||||
<SubframeCore.IconWrapper className="text-body-large font-body-large text-icon-neutral-primary group-active/2713e17b:text-icon-neutral-on-subtle">
|
||||
<SubframeCore.IconWrapper className="inline-flex h-5 w-5 flex-none items-center justify-center leading-none text-body-large font-body-large text-icon-neutral-primary group-active/2713e17b: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-150 font-body-small-regular-150 text-text-neutral-secondary group-active/2713e17b:text-text-neutral-on-subtle",
|
||||
"min-w-0 flex-1 truncate text-body-small-regular-150 font-body-small-regular-150 text-text-neutral-secondary group-active/2713e17b:text-text-neutral-on-subtle",
|
||||
{
|
||||
hidden: variant === "icon-only",
|
||||
"text-text-neutral-on-subtle": selected,
|
||||
@@ -261,8 +261,8 @@ const SidebarWithSectionsRoot = React.forwardRef<
|
||||
return (
|
||||
<nav
|
||||
className={SubframeUtils.twClassNames(
|
||||
// @subframe/sync-disable -- local fix: animierbare Breite (w-16 statt w-auto) + transition fuer Collapse-Animation.
|
||||
"group/f4047c8b flex h-full w-60 flex-col items-start rounded-l-md border-r border-solid border-border-default bg-surface-neutral-secondary relative transition-[width] duration-200 ease-in-out",
|
||||
// @subframe/sync-disable -- local fix: animierbare Breite (w-16 statt w-auto) + smoother Collapse-Animation.
|
||||
"group/f4047c8b flex h-full w-60 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]",
|
||||
{ "w-16": variant === "closed" },
|
||||
className
|
||||
)}
|
||||
@@ -271,7 +271,7 @@ const SidebarWithSectionsRoot = React.forwardRef<
|
||||
>
|
||||
{/* @subframe/sync-disable -- local fix: Collapse-Toggle verdrahtet (onClick -> onToggleCollapse) statt nur dekorativ. */}
|
||||
<Subcomponent
|
||||
className="absolute -right-[17px] top-[40px] z-10 cursor-pointer"
|
||||
className="absolute -right-[17px] top-[40px] z-40 cursor-pointer"
|
||||
sidebarButton={variant === "closed" ? "open" : "close"}
|
||||
onClick={onToggleCollapse}
|
||||
/>
|
||||
@@ -292,7 +292,7 @@ const SidebarWithSectionsRoot = React.forwardRef<
|
||||
{children ? (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start px-2 py-2 overflow-auto",
|
||||
"flex w-full grow shrink-0 basis-0 flex-col items-start overflow-y-auto overflow-x-hidden px-2 py-2",
|
||||
{ "w-16": variant === "closed" }
|
||||
)}
|
||||
>
|
||||
|
||||
+16
-1
@@ -66,7 +66,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(function Input(
|
||||
return (
|
||||
<input
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/b0d608f7 h-full w-full border-none bg-transparent px-0 py-0 text-body-default-regular-0 font-body-default-regular-0 text-text-neutral-secondary outline-none placeholder:text-text-neutral-subtle",
|
||||
"group/b0d608f7 subframe-text-input-control h-full w-full border-none bg-transparent px-0 py-0 text-body-default-regular-0 font-body-default-regular-0 text-text-neutral-secondary outline-none placeholder:text-text-neutral-subtle",
|
||||
{
|
||||
"text-body-extra-small-regular-0 font-body-extra-small-regular-0":
|
||||
variant === "extra-small",
|
||||
@@ -128,6 +128,7 @@ export interface TextInputRootProps
|
||||
showLabel?: boolean;
|
||||
label?: React.ReactNode;
|
||||
helpText?: React.ReactNode;
|
||||
message?: React.ReactNode;
|
||||
icon?: React.ReactNode;
|
||||
iconRight?: React.ReactNode;
|
||||
type?: "text" | "password" | "email" | "number" | "tel" | "url" | "search";
|
||||
@@ -148,6 +149,7 @@ const TextInputRoot = React.forwardRef<HTMLLabelElement, TextInputRootProps>(
|
||||
showLabel = false,
|
||||
label,
|
||||
helpText,
|
||||
message,
|
||||
icon = null,
|
||||
iconRight = null,
|
||||
type = "text",
|
||||
@@ -279,6 +281,19 @@ const TextInputRoot = React.forwardRef<HTMLLabelElement, TextInputRootProps>(
|
||||
})}
|
||||
/>
|
||||
</div>
|
||||
{message ? (
|
||||
<span
|
||||
className={SubframeUtils.twClassNames(
|
||||
"text-body-small-regular-0 font-body-small-regular-0 text-text-neutral-tertiary",
|
||||
{
|
||||
"text-text-feedback-negative": error,
|
||||
"text-text-neutral-disabled": disabled,
|
||||
}
|
||||
)}
|
||||
>
|
||||
{message}
|
||||
</span>
|
||||
) : null}
|
||||
</label>
|
||||
</TextInputContext.Provider>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user