import { StandardLonghandProperties, StandardShorthandProperties } from '../../../types/css.types.js'; import { AddDollar, Conditions } from '../../../types/utils.types.js'; import { spacingProperties, backgroundColorProperties, colorProperties, borderRadiusProperties, borderWidthProperties, borderColorProperties, shadowProperties, marginProperties, zIndexProperties, fontFamilyProperties, fontSizeProperties, fontWeightProperties, lineHeightProperties } from '../../../properties/css.js'; import { boxFillProperties } from './rarui-box.css.js'; interface BoxConditions extends Conditions { focus?: T; focusWithin?: T; active?: T; hover?: T; disabled?: T; } type BoxDynamicProperties = Pick & Pick; interface BoxSprinkle extends BoxDynamicProperties { /** * The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap. */ gap?: AddDollar | BoxConditions>; /** * The gridGap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap. */ gridGap?: AddDollar | BoxConditions>; /** * The backgroundColor property sets the background color of the box. * @examples ["$brand", { xs: "$brand", md: "$secondary" }] */ backgroundColor?: AddDollar | BoxConditions>; /** * The color property is used to set the color of the box. */ color?: AddDollar | BoxConditions>; /** * The fill color property is used to set the color of the box. */ fill?: AddDollar | BoxConditions>; /** * The borderRadius property rounds the corners of an box's outer border edge. */ borderRadius?: AddDollar | BoxConditions>; /** * The borderTopLeftRadius property rounds the corners of an box's outer border edge. */ borderTopLeftRadius?: AddDollar | BoxConditions>; /** * The borderTopRightRadius property rounds the corners of an box's outer border edge. */ borderTopRightRadius?: AddDollar | BoxConditions>; /** * The borderBottomLeftRadius property rounds the corners of an box's outer border edge. */ borderBottomLeftRadius?: AddDollar | BoxConditions>; /** * The borderBottomRightRadius property rounds the corners of an box's outer border edge. */ borderBottomRightRadius?: AddDollar | BoxConditions>; /** * The borderWidth property sets the width of an box's border. */ borderWidth?: AddDollar | BoxConditions>; /** * The borderTopWidth property defines the width of the border at the top of a box. */ borderTopWidth?: AddDollar | BoxConditions>; /** * The borderBottomWidth property defines the width of the border at the bottom of a box. */ borderBottomWidth?: AddDollar | BoxConditions>; /** * The borderLeftWidth property defines the width of the border at the left of a box. */ borderLeftWidth?: AddDollar | BoxConditions>; /** * The borderRightWidth property defines the width of the border at the right of a box. */ borderRightWidth?: AddDollar | BoxConditions>; /** * The borderWidthX shorthand property defines the width of the element's border on the left and right. */ borderWidthX?: AddDollar | BoxConditions>; /** * The borderWidthY shorthand property defines the width of the element's border on the top and bottom. */ borderWidthY?: AddDollar | BoxConditions>; /** * The borderColor property sets the color of the box's four borders. */ borderColor?: AddDollar | BoxConditions>; /** * The boxShadow property adds shadow effects around an box's frame. */ boxShadow?: AddDollar | BoxConditions>; /** * The padding properties are used to generate space around an box's content area. */ padding?: AddDollar | BoxConditions>; /** * The paddingTop property sets the height of the padding area on the top of an box. */ paddingTop?: AddDollar | BoxConditions>; /** * The paddingBottom property sets the height of the padding area on the bottom of an box. */ paddingBottom?: AddDollar | BoxConditions>; /** * The paddingLeft property sets the width of the padding area to the left of an box. */ paddingLeft?: AddDollar | BoxConditions>; /** * The paddingLeft property sets the width of the padding area to the right of an box. */ paddingRight?: AddDollar | BoxConditions>; /** * The margin shorthand property sets the margin area on all four sides of an box. */ margin?: AddDollar | BoxConditions>; /** * The marginTop property sets the margin area on the top of an box. */ marginTop?: AddDollar | BoxConditions>; /** * The marginBottom property sets the margin area on the bottom of an box. */ marginBottom?: AddDollar | BoxConditions>; /** * The marginLeft property sets the margin area on the left side of an box. */ marginLeft?: AddDollar | BoxConditions>; /** * The marginRight property sets the margin area on the right side of an box. */ marginRight?: AddDollar | BoxConditions>; /** * The zIndex property specifies the stack order of the box. */ zIndex?: AddDollar | BoxConditions>; /** * The p shorthand property sets the margin area on all four sides of an box. */ p?: AddDollar | BoxConditions>; /** * The pl shorthand property sets the width of the padding area to the left of an box. */ pl?: AddDollar | BoxConditions>; /** * The pl shorthand property sets the width of the padding area to the right of an box. */ pr?: AddDollar | BoxConditions>; /** * The pt shorthand property sets the height of the padding area on the top of an box. */ pt?: AddDollar | BoxConditions>; /** * The pb shorthand property sets the height of the padding area on the botton of an box. */ pb?: AddDollar | BoxConditions>; /** * The px shorthand property defines the width of the left and right padding area of a box. */ px?: AddDollar | BoxConditions>; /** * The py pt shorthand property sets the height of the padding area at the top and bottom of a box. */ py?: AddDollar | BoxConditions>; /** * The paddingX shorthand property defines the width of the left and right padding area of a box. */ paddingX?: AddDollar | BoxConditions>; /** * The paddingY pt shorthand property sets the height of the padding area at the top and bottom of a box. */ paddingY?: AddDollar | BoxConditions>; /** * The m shorthand property sets the margin area on all four sides of an box. */ m?: AddDollar | BoxConditions>; /** * The mr property sets the margin area on the right side of an box. */ mr?: AddDollar | BoxConditions>; /** * The ml property sets the margin area on the left side of an box. */ ml?: AddDollar | BoxConditions>; /** * The mt property sets the margin area on the top of an box. */ mt?: AddDollar | BoxConditions>; /** * The marginBottom property sets the margin area on the bottom of an box. */ mb?: AddDollar | BoxConditions>; /** * The mx property defines the margin area on the left and right side of a box. */ mx?: AddDollar | BoxConditions>; /** * The my property defines the margin area on the top and bottom of a box */ my?: AddDollar | BoxConditions>; /** * The marginX property defines the margin area on the left and right side of a box. */ marginX?: AddDollar | BoxConditions>; /** * The marginY property defines the margin area on the top and bottom of a box */ marginY?: AddDollar | BoxConditions>; /** * The fontFamily property sets the font family of the box. */ fontFamily?: AddDollar | BoxConditions>; /** * The fontSize property sets the size of the box. */ fontSize?: AddDollar | BoxConditions>; /** * The fontWeight property sets how thick or thin characters in box should be displayed. */ fontWeight?: AddDollar | BoxConditions>; /** * The lineHeight property specifies the line height of the box. */ lineHeight?: AddDollar | BoxConditions>; } export type { BoxSprinkle };