@arolariu/components
Version:
🎨 60+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
108 lines (107 loc) • 4.25 kB
JavaScript
"use client";
;
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__, {
CardFooter: ()=>CardFooter,
CardAction: ()=>CardAction,
CardHeader: ()=>CardHeader,
CardContent: ()=>CardContent,
CardDescription: ()=>CardDescription,
CardTitle: ()=>CardTitle,
Card: ()=>Card
});
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-sm 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)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-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 CardAction({ className, ...props }) {
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
"data-slot": "card-action",
className: (0, utils_cjs_namespaceObject.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end", 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 [.border-t]:pt-6", className),
...props
});
}
exports.Card = __webpack_exports__.Card;
exports.CardAction = __webpack_exports__.CardAction;
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",
"CardAction",
"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