UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

30 lines (29 loc) 767 B
import { buildStyleFns, buildStylePropFn } from './buildStyleFns'; /** @deprecated */ export const depthStyleFnConfigs = [ { name: 'boxShadow', properties: ['boxShadow'], system: 'none', }, { name: 'depth', properties: ['boxShadow'], system: 'depth', }, ]; /** @deprecated */ export const depthStyleFns = buildStyleFns(depthStyleFnConfigs); /** * A style prop function that takes component props and returns depth styles from Canvas token values. * If no `DepthStyleProps` are found, it returns an empty object. * * @example * ```tsx * const DepthExample = () => ( * <Box depth={3}>Hello, box shadows!</Box> * ); * ``` * @deprecated */ export const depth = buildStylePropFn(depthStyleFns);