feat(ui): add flat surfaces and compact profile/site controls

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 12:33:25 +03:00
parent 4904fbe1f7
commit 8addef187b
12 changed files with 98 additions and 10 deletions
+4 -1
View File
@@ -29,6 +29,8 @@ export interface SelectProps<T extends string> {
menuWidth?: number | "anchor";
disabled?: boolean;
variant?: SelectVariant;
/** Split site/workspace selectors can align with adjacent circular actions. */
shape?: "default" | "pill";
className?: string;
triggerClassName?: string;
menuClassName?: string;
@@ -47,6 +49,7 @@ export function Select<T extends string>({
menuWidth = "anchor",
disabled = false,
variant = "integrated",
shape = "default",
className,
triggerClassName,
menuClassName,
@@ -88,7 +91,7 @@ export function Select<T extends string>({
};
if (resolvedVariant === "split") {
return (
<div className={cn("nodedc-select", triggerClassName)} data-disabled={disabled ? "true" : undefined}>
<div className={cn("nodedc-select", triggerClassName)} data-shape={shape === "pill" ? "pill" : undefined} data-disabled={disabled ? "true" : undefined}>
<div ref={setAnchorRef} className="nodedc-select__control">
<div className="nodedc-select__value">
{selected?.icon ? <span className="nodedc-select__value-icon">{selected.icon}</span> : null}