UNPKG

@loke/design-system

Version:

A design system with individually importable components

2 lines (1 loc) 3.67 kB
var __create=Object.create;var{getPrototypeOf:__getProtoOf,defineProperty:__defProp,getOwnPropertyNames:__getOwnPropNames,getOwnPropertyDescriptor:__getOwnPropDesc}=Object,__hasOwnProp=Object.prototype.hasOwnProperty;function __accessProp(key){return this[key]}var __reExport=(target,mod,secondTarget)=>{var keys=__getOwnPropNames(mod);for(let key of keys)if(!__hasOwnProp.call(target,key)&&key!=="default")__defProp(target,key,{get:__accessProp.bind(mod,key),enumerable:!0});if(secondTarget){for(let key of keys)if(!__hasOwnProp.call(secondTarget,key)&&key!=="default")__defProp(secondTarget,key,{get:__accessProp.bind(mod,key),enumerable:!0});return secondTarget}},__toESMCache_node,__toESMCache_esm,__toESM=(mod,isNodeMode,target)=>{var canCache=mod!=null&&typeof mod==="object";if(canCache){var cache=isNodeMode?__toESMCache_node??=new WeakMap:__toESMCache_esm??=new WeakMap,cached=cache.get(mod);if(cached)return cached}target=mod!=null?__create(__getProtoOf(mod)):{};let to=isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target;for(let key of __getOwnPropNames(mod))if(!__hasOwnProp.call(to,key))__defProp(to,key,{get:__accessProp.bind(mod,key),enumerable:!0});if(canCache)cache.set(mod,to);return to},__toCommonJS=(from)=>{var entry=(__moduleCache??=new WeakMap).get(from),desc;if(entry)return entry;if(entry=__defProp({},"__esModule",{value:!0}),from&&typeof from==="object"||typeof from==="function"){for(var key of __getOwnPropNames(from))if(!__hasOwnProp.call(entry,key))__defProp(entry,key,{get:__accessProp.bind(from,key),enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return __moduleCache.set(from,entry),entry},__moduleCache;var __returnValue=(v)=>v;function __exportSetter(name,newValue){this[name]=__returnValue.bind(null,newValue)}var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0,configurable:!0,set:__exportSetter.bind(all,name)})};var exports_card={};__export(exports_card,{CardTitle:()=>CardTitle,CardHeader:()=>CardHeader,CardFooter:()=>CardFooter,CardDescription:()=>CardDescription,CardContent:()=>CardContent,Card:()=>Card});module.exports=__toCommonJS(exports_card);var import_cn=require("@loke/design-system/cn"),import_react=require("react"),jsx_runtime=require("react/jsx-runtime"),Card=import_react.forwardRef(({className,...props},ref)=>jsx_runtime.jsx("div",{className:import_cn.cn("rounded-lg border bg-card text-card-foreground shadow-xs",className),ref,...props}));Card.displayName="Card";var CardHeader=import_react.forwardRef(({className,centered,...props},ref)=>jsx_runtime.jsx("div",{className:import_cn.cn("flex flex-col space-y-1.5 p-6",centered&&"items-center",className),ref,...props}));CardHeader.displayName="CardHeader";var CardTitle=import_react.forwardRef(({className,...props},ref)=>jsx_runtime.jsx("h3",{className:import_cn.cn("flex gap-2 font-semibold text-2xl leading-none tracking-tight",className),ref,...props}));CardTitle.displayName="CardTitle";var CardDescription=import_react.forwardRef(({className,...props},ref)=>jsx_runtime.jsx("p",{className:import_cn.cn("text-muted-foreground text-sm",className),ref,...props}));CardDescription.displayName="CardDescription";var CardContent=import_react.forwardRef(({className,...props},ref)=>jsx_runtime.jsx("div",{className:import_cn.cn("p-6 pt-0 first:pt-6",className),ref,...props}));CardContent.displayName="CardContent";var CardFooter=import_react.forwardRef(({className,centered,...props},ref)=>jsx_runtime.jsx("div",{className:import_cn.cn("flex items-center p-6 pt-0",centered&&"justify-center",className),ref,...props}));CardFooter.displayName="CardFooter";