"use client" import { forwardRef } from "react" import { type HTMLChakraProps, type SystemStyleObject, chakra, } from "../../styled-system" import { isCssUnit, isCssVar, mapObject } from "../../utils" export interface BleedProps extends HTMLChakraProps<"div"> { /** * The negative margin on the x-axis */ inline?: SystemStyleObject["marginInline"] | undefined /** * The negative margin on the y-axis */ block?: SystemStyleObject["marginBlock"] | undefined /** * The negative margin on the inline-start axis */ inlineStart?: SystemStyleObject["marginInlineStart"] | undefined /** * The negative margin on the inline-end axis */ inlineEnd?: SystemStyleObject["marginInlineEnd"] | undefined /** * The negative margin on the block-start axis */ blockStart?: SystemStyleObject["marginBlockStart"] | undefined /** * The negative margin on the block-end axis */ blockEnd?: SystemStyleObject["marginBlockEnd"] | undefined } const valueFn = (v: string) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})` export const Bleed = forwardRef( function Bleed(props, ref) { const { inline, inlineStart, inlineEnd, block, blockStart, blockEnd, ...rest } = props return ( ) }, )