UNPKG

@arolariu/components

Version:

A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)!

98 lines (97 loc) 3.69 kB
"use client"; "use strict"; var __webpack_require__ = {}; (()=>{ __webpack_require__.d = (exports1, definition)=>{ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { enumerable: true, get: definition[key] }); }; })(); (()=>{ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); })(); (()=>{ __webpack_require__.r = (exports1)=>{ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports1, '__esModule', { value: true }); }; })(); var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { CardDescription: ()=>CardDescription, CardContent: ()=>CardContent, CardHeader: ()=>CardHeader, Card: ()=>Card, CardTitle: ()=>CardTitle, CardFooter: ()=>CardFooter }); const jsx_runtime_namespaceObject = require("react/jsx-runtime"); require("react"); const utils_cjs_namespaceObject = require("../../lib/utils.cjs"); function Card({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card", className: (0, utils_cjs_namespaceObject.cn)("bg-white text-neutral-950 flex flex-col gap-6 rounded-xl border border-neutral-200 py-6 shadow-xs dark:bg-neutral-950 dark:text-neutral-50 dark:border-neutral-800", className), ...props }); } function CardHeader({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card-header", className: (0, utils_cjs_namespaceObject.cn)("flex flex-col gap-1.5 px-6", className), ...props }); } function CardTitle({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card-title", className: (0, utils_cjs_namespaceObject.cn)("leading-none font-semibold", className), ...props }); } function CardDescription({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card-description", className: (0, utils_cjs_namespaceObject.cn)("text-neutral-500 text-sm dark:text-neutral-400", className), ...props }); } function CardContent({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card-content", className: (0, utils_cjs_namespaceObject.cn)("px-6", className), ...props }); } function CardFooter({ className, ...props }) { return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { "data-slot": "card-footer", className: (0, utils_cjs_namespaceObject.cn)("flex items-center px-6", className), ...props }); } exports.Card = __webpack_exports__.Card; exports.CardContent = __webpack_exports__.CardContent; exports.CardDescription = __webpack_exports__.CardDescription; exports.CardFooter = __webpack_exports__.CardFooter; exports.CardHeader = __webpack_exports__.CardHeader; exports.CardTitle = __webpack_exports__.CardTitle; for(var __webpack_i__ in __webpack_exports__)if (-1 === [ "Card", "CardContent", "CardDescription", "CardFooter", "CardHeader", "CardTitle" ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; Object.defineProperty(exports, '__esModule', { value: true }); //# sourceMappingURL=card.cjs.map