@snowball-tech/fractal
Version:
Fractal's (Snowball's design system) React component library based on RadixUI and TailwindCSS
2 lines • 1.99 kB
JavaScript
import"../../constants.js";import{cn as e}from"../../styles/helpers.js";import"../Typography/Typography.constants.js";import{ColorBaseGrey50 as t,ColorBaseGrey70 as n,ShadowBrutal1 as r,ShadowBrutal1Dark as i,ShadowBrutal1Light as a,ShadowBrutal2 as o,ShadowBrutal2Dark as s,ShadowBrutal2Light as c,ShadowNone as l,SizeRadiusS as u}from"@snowball-tech/design-tokens/dist/web/typescript/design-tokens.js";import{SizeSpacingHalf as d,SizeSpacingQuarter as f}from"@snowball-tech/design-tokens/dist/web/typescript/design-tokens-px.js";const p=`paper`;let m=function(e){return e.Bordered=`1`,e.Elevated=`2`,e.Flat=`0`,e.Higher=`3`,e.Light=`light`,e}({}),h=function(e){return e.Bordered=`bordered`,e.Elevated=`elevated`,e.Flat=`flat`,e.Higher=`higher`,e}({});const g=`1`,_={bordered:`1`,elevated:`2`,flat:`0`,higher:`3`,1:`1`,2:`2`,0:`0`,3:`3`,light:`light`},v=`heading-4`,y={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`},b={light:{0:y[0],light:e(y.light,`border-grey-70`),1:y[1],2:e(y[2],`shadow-subtle-light`),3:e(y[3],`shadow-brutal-light`)},dark:{0:y[0],light:e(y.light,`border-grey-50`),1:e(y[1],`border-primary`),2:e(y[2],`shadow-subtle-dark`),3:e(y[3],`shadow-brutal-dark`)}},x={0:{border:`none`,borderRadius:u,boxShadow:l},light:{borderRadius:u,boxShadow:l},1:{borderRadius:u,boxShadow:l},2:{borderRadius:u,boxShadow:r,marginBottom:f,marginLeft:f},3:{borderRadius:u,boxShadow:o,marginBottom:d,marginLeft:f}},S={light:{0:x[0],light:{...x.light,borderColor:n},1:x[1],2:{...x[2],boxShadow:a},3:{...x[3],boxShadow:c}},dark:{0:x[0],light:{...x.light,borderColor:t},1:x[1],2:{...x[2],boxShadow:i},3:{...x[3],boxShadow:s}}};export{h as AlternateElevations,g as DEFAULT_ELEVATION,v as DEFAULT_TITLE_VARIANT,_ as ELEVATIONS,m as Elevations,p as GROUP_NAME,b as elevationClassNames,S as elevationStyles};
//# sourceMappingURL=Paper.constants.js.map