App reorganization

This commit is contained in:
adilallo
2026-04-18 14:12:49 -06:00
parent f866d11ff8
commit e9dab04b34
288 changed files with 2698 additions and 5029 deletions
@@ -3,7 +3,6 @@
import { memo, useState } from "react";
import { TooltipView } from "./Tooltip.view";
import type { TooltipProps } from "./Tooltip.types";
import { normalizeTooltipPosition } from "../../../../lib/propNormalization";
const TooltipContainer = memo<TooltipProps>(
({
@@ -13,8 +12,7 @@ const TooltipContainer = memo<TooltipProps>(
className = "",
disabled = false,
}) => {
// Normalize props to handle both PascalCase (Figma) and lowercase (codebase)
const position = normalizeTooltipPosition(positionProp);
const position = positionProp;
const [isVisible, setIsVisible] = useState(false);
if (disabled) {
@@ -1,11 +1,10 @@
export type TooltipPositionValue = "top" | "bottom" | "Top" | "Bottom";
export type TooltipPositionValue = "top" | "bottom";
export interface TooltipProps {
children: React.ReactNode;
text: string;
/**
* Tooltip position. Accepts both lowercase and PascalCase (case-insensitive).
* Figma uses PascalCase, codebase uses lowercase - both are supported.
* Tooltip position.
*/
position?: TooltipPositionValue;
className?: string;