App reorganization
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import { memo } from "react";
|
||||
import { normalizeProportionBarVariant } from "../../../../lib/propNormalization";
|
||||
import { ProportionBarView } from "./ProportionBar.view";
|
||||
import type { ProportionBarProps } from "./ProportionBar.types";
|
||||
|
||||
const ProportionBarContainer = memo<ProportionBarProps>(
|
||||
({ progress = "3-2", className = "", variant: variantProp }) => {
|
||||
const variant = normalizeProportionBarVariant(variantProp);
|
||||
const variant = variantProp ?? "default";
|
||||
const barClasses = `h-[8px] relative w-full`;
|
||||
|
||||
return (
|
||||
|
||||
@@ -22,8 +22,8 @@ export interface ProportionBarProps {
|
||||
className?: string;
|
||||
/**
|
||||
* Kept for backwards compatibility. Both `default` and `segmented` render the
|
||||
* same fill geometry (square leading edges, matching Figma). Future variants
|
||||
* can differentiate here without API changes.
|
||||
* same fill geometry. Future variants can differentiate here without API
|
||||
* changes.
|
||||
*/
|
||||
variant?: ProportionBarVariant;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user