import { ScaleFeedback, useScaleFeedback } from "@seed-design/react"; import clsx from "clsx"; import * as React from "react"; import "./ScaleFeedbackPlainCss.css"; import * as styles from "./ScaleFeedbackPressables.css"; const SIZE_CLASS = { medium: styles.mediumSize, tiny: styles.tinySquare, wide: styles.wideBar, } as const satisfies Record; type PressableProps = React.ComponentPropsWithoutRef<"button"> & { size?: keyof typeof SIZE_CLASS; }; /** Applies the ratio from hand-written CSS: see ScaleFeedbackPlainCss.css. */ export function PlainCssPressable({ className, ...props }: React.ComponentPropsWithoutRef<"button">) { const { scaleFeedbackRef, scaleFeedbackClassName } = useScaleFeedback(); return ( ); } /** Deliberately broken: the class without the ref, so no size is published. */ export function ClassOnlyPressable({ size = "medium", className, ...props }: PressableProps) { const { scaleFeedbackClassName } = useScaleFeedback(); return (