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
-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
|
||||
|
||||
Reference in new issue
Block a user