This commit is contained in:
2026-06-23 00:44:16 +08:00
parent 5094d341fa
commit b4f5d5d7c0
91 changed files with 1566 additions and 574 deletions
@@ -6,11 +6,6 @@ import {
import { Icon } from "../Icon/Icon";
import { SpinnerSvg } from "../../assets/svg/SpinnerSvg";
import { cpm } from "../../styles/utils/cpm";
import { itemSizeRecipe } from "../../recipes/itemSizeRecipe";
import { variantRecipe } from "../../recipes/variantRecipe";
import { brandRecipe } from "../../recipes/brandRecipe";
import { inlineSizeRecipe } from "../../recipes/inlineSizeRecipe";
export type ButtonSize = "xs" | "sm" | "md" | "lg";
@@ -50,7 +45,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
} = props;
const mergedClass = cpm(
itemSizeRecipe({ size, shape, iconOnly }),
itemSizeRecipe({ size, shape, iconOnly, longPadding: false }),
variantRecipe({ variant, disabled }),
brandRecipe({ brand }),
className,