Create Community stage implemented

This commit is contained in:
adilallo
2026-04-14 09:22:03 -06:00
parent a0de78c020
commit f8255bc2c7
73 changed files with 1105 additions and 392 deletions
+24
View File
@@ -852,3 +852,27 @@ export type ButtonStateValue =
| "Active"
| "Hover"
| "Disabled";
/**
* ProportionBar layout variant (Figma uses a segmented track in the create-flow footer).
*/
export type ProportionBarVariantValue =
| "default"
| "segmented"
| "Default"
| "Segmented";
/**
* Normalize ProportionBar variant (Figma PascalCase vs codebase lowercase).
*/
export function normalizeProportionBarVariant(
value: string | undefined,
defaultValue: "default" | "segmented" = "default",
): "default" | "segmented" {
if (!value) return defaultValue;
const normalized = value.toLowerCase();
if (normalized === "default" || normalized === "segmented") {
return normalized;
}
return defaultValue;
}