import { ReactNode, useLayoutEffect, useRef } from "react"; import { CurvesUnit, DurationUnit, SizeUnit } from "../types"; import { Box } from "./Box"; import { Row } from "./Row"; import { Column } from "./Column"; import { DOMRectUtil } from "@web-package/utility" /** * This namespace provides components for horizontal and vertical tab navigation. * It handles the rendering of navigation items and applies transitions for * visual effects when changing the active tab. */ export namespace TabNavigation { /** Signature for the interface that defines a custom style of tab-navigation. */ export interface Style { backgroundColor?: string, borderRadius?: string width?: string, thickness?: string } /** This value defines a default style of tab-navigation. */ export const DEFUALT_STYLE: Required