@undp/design-system-react
Version:
React based design system for UNDP
2 lines • 2.93 kB
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./utils-Dd9-5CFr.cjs"),n=require("./dist-BZMXZCSu.cjs");let r=require("react");r=e.r(r,1);let i=require("react/jsx-runtime");var a=n.t(`items-stretch flex flex-col justify-between items-stretch group`,{variants:{backgroundColor:{transparent:`bg-transparent text-content-primary`,background:`bg-background hover:bg-surface text-content-primary`,"background-soft":`bg-background-soft hover:bg-surface-hover text-content-primary`,foreground:`bg-foreground hover:bg-surface-3xl text-content-reverse`,"foreground-soft":`bg-foreground-soft hover:bg-surface-3xl text-content-reverse`,surface:`bg-surface hover:bg-surface-hover text-content-primary`,"surface-xl":`bg-surface-xl hover:bg-surface-2xl text-content-reverse `,"surface-2xl":`bg-surface-2xl hover:bg-surface-3xl text-content-reverse `,"surface-3xl":`bg-surface-3xl hover:bg-surface-4xl text-content-reverse `,primary:`bg-primary hover:bg-primary-hover text-content-reverse`,secondary:`bg-secondary hover:bg-secondary-hover text-content-reverse`,tertiary:`bg-tertiary hover:bg-tertiary-hover text-content-reverse`,quaternary:`bg-quaternary hover:bg-quaternary-hover text-content-primary`,success:`bg-success hover:bg-success-hover text-content-reverse`,error:`bg-error hover:bg-error-hover text-content-reverse`,warning:`bg-warning hover:bg-warning-hover text-content-primary`,info:`bg-info hover:bg-info-hover text-content-reverse`},size:{xs:`w-1/4`,sm:`w-1/3`,base:`w-1/2`,lg:`w-2/3`,xl:`w-3/4`,full:`w-full`}},defaultVariants:{size:`full`,backgroundColor:`background`}}),o=r.forwardRef(({className:e,border:n=!0,size:r,backgroundColor:o,...s},c)=>(0,i.jsx)(`div`,{ref:c,className:t.t(a({size:r,backgroundColor:o}),e),...s}));o.displayName=`FeaturedCard`;var s=r.forwardRef(({className:e,...n},r)=>(0,i.jsx)(`div`,{ref:r,className:t.t(`flex flex-wrap gap-4 pr-6 pb-6 pl-6`,e),...n}));s.displayName=`FeaturedCardFooter`;var c=r.forwardRef(({children:e,className:n,...r},a)=>(0,i.jsx)(`div`,{ref:a,className:t.t(`card-tag mt-0 mb-0 flex gap-2 pt-4 pr-6 pl-6 font-body font-bold text-xs uppercase leading-xs md:mb-0`,n),...r,children:e}));c.displayName=`FeaturedCardTag`;var l=r.forwardRef(({children:e,className:n,...r},a)=>(0,i.jsx)(`div`,{ref:a,className:t.t(`m-0 mt-8 mb-3 flex flex grow flex-col justify-end gap-2 pr-6 pl-6 font-body font-normal text-h4-xs md:text-h4-sm lg:text-h4`,n),...r,children:e}));l.displayName=`FeaturedCardTitle`;var u=r.forwardRef(({children:e,className:n,...r},a)=>(0,i.jsx)(`div`,{ref:a,className:t.t(`mt-0 pt-0 pr-6 pb-6 pl-6 font-body text-sm leading-base lg:text-base`,n),...r,children:e}));u.displayName=`FeaturedCardDescription`,exports.FeaturedCard=o,exports.FeaturedCardDescription=u,exports.FeaturedCardFooter=s,exports.FeaturedCardTag=c,exports.FeaturedCardTitle=l;
//# sourceMappingURL=FeaturedCard.cjs.map