UNPKG

@snowball-tech/fractal

Version:

Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS

2 lines 2.03 kB
import{r as e}from"../helpers-DBEwVIlX.js";import{Variants as t}from"../Typography/Typography.constants.js";import{ColorBaseGrey50 as n,ColorBaseGrey70 as r,ShadowBrutal1 as i,ShadowBrutal1Dark as a,ShadowBrutal1Light as o,ShadowBrutal2 as s,ShadowBrutal2Dark as c,ShadowBrutal2Light as l,ShadowNone as u,SizeRadiusS as d}from"@snowball-tech/design-tokens/dist/web/typescript/design-tokens.js";import{SizeSpacingHalf as f,SizeSpacingQuarter as p}from"@snowball-tech/design-tokens/dist/web/typescript/design-tokens-px.js";const m=`paper`;let h=function(e){return e.Bordered=`1`,e.Elevated=`2`,e.Flat=`0`,e.Higher=`3`,e.Light=`light`,e}({}),g=function(e){return e.Bordered=`bordered`,e.Elevated=`elevated`,e.Flat=`flat`,e.Higher=`higher`,e}({});const _=`1`,v={bordered:`1`,elevated:`2`,flat:`0`,higher:`3`,1:`1`,2:`2`,0:`0`,3:`3`,light:`light`},y=`heading-4`,b=`div`,x={0:`rounded-sm shadow-none border-none`,light:`rounded-sm shadow-none`,1:`rounded-sm shadow-none`,2:`rounded-sm shadow-subtle ml-quarter mb-quarter`,3:`rounded-sm shadow-brutal ml-quarter mb-half`},S={light:{0:x[0],light:e(x.light,`border-grey-70`),1:x[1],2:e(x[2],`shadow-subtle-light`),3:e(x[3],`shadow-brutal-light`)},dark:{0:x[0],light:e(x.light,`border-grey-50`),1:e(x[1],`border-primary`),2:e(x[2],`shadow-subtle-dark`),3:e(x[3],`shadow-brutal-dark`)}},C={0:{border:`none`,borderRadius:d,boxShadow:u},light:{borderRadius:d,boxShadow:u},1:{borderRadius:d,boxShadow:u},2:{borderRadius:d,boxShadow:i,marginBottom:p,marginLeft:p},3:{borderRadius:d,boxShadow:s,marginBottom:f,marginLeft:p}},w={light:{0:C[0],light:{...C.light,borderColor:r},1:C[1],2:{...C[2],boxShadow:o},3:{...C[3],boxShadow:l}},dark:{0:C[0],light:{...C.light,borderColor:n},1:C[1],2:{...C[2],boxShadow:a},3:{...C[3],boxShadow:c}}};export{g as AlternateElevations,b as DEFAULT_ELEMENT,_ as DEFAULT_ELEVATION,y as DEFAULT_TITLE_VARIANT,v as ELEVATIONS,h as Elevations,m as GROUP_NAME,t as TitleVariants,S as elevationClassNames,w as elevationStyles}; //# sourceMappingURL=Paper.constants.js.map