UNPKG

@cerberus-design/styled-system

Version:

Cerberus Design System Panda-CSS styled-system.

32 lines (28 loc) 746 B
import { memo, splitProps } from '../helpers.mjs'; import { createRecipe, mergeRecipes } from './create-recipe.mjs'; const tdFn = /* @__PURE__ */ createRecipe('td', { "size": "md" }, []) const tdVariantMap = { "size": [ "sm", "md", "lg" ] } const tdVariantKeys = Object.keys(tdVariantMap) export const td = /* @__PURE__ */ Object.assign(memo(tdFn.recipeFn), { __recipe__: true, __name__: 'td', __getCompoundVariantCss__: tdFn.__getCompoundVariantCss__, raw: (props) => props, variantKeys: tdVariantKeys, variantMap: tdVariantMap, merge(recipe) { return mergeRecipes(this, recipe) }, splitVariantProps(props) { return splitProps(props, tdVariantKeys) }, getVariantProps: tdFn.getVariantProps, })