@fea-ui/react 0.0.0-canary.3 → 0.0.0-canary.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +301 -309
- package/dist/index.d.mts +662 -670
- package/dist/index.mjs +4 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -442,9 +442,8 @@ const CardContext = (0, react.createContext)(null);
|
|
|
442
442
|
const cardVariants = (0, tailwind_variants.tv)({
|
|
443
443
|
defaultVariants: { variant: "default" },
|
|
444
444
|
slots: {
|
|
445
|
-
|
|
445
|
+
content: "card__content",
|
|
446
446
|
description: "card__description",
|
|
447
|
-
footer: "card__footer",
|
|
448
447
|
header: "card__header",
|
|
449
448
|
root: "card",
|
|
450
449
|
title: "card__title"
|
|
@@ -483,17 +482,10 @@ const CardHeader = ({ className, ...props }) => {
|
|
|
483
482
|
...props
|
|
484
483
|
});
|
|
485
484
|
};
|
|
486
|
-
const
|
|
485
|
+
const CardContent = ({ className, ...props }) => {
|
|
487
486
|
const { slots } = useCard();
|
|
488
487
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
489
|
-
className: (0, tailwind_variants.cn)(className, slots.
|
|
490
|
-
...props
|
|
491
|
-
});
|
|
492
|
-
};
|
|
493
|
-
const CardFooter = ({ className, ...props }) => {
|
|
494
|
-
const { slots } = useCard();
|
|
495
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
496
|
-
className: (0, tailwind_variants.cn)(className, slots.footer()),
|
|
488
|
+
className: (0, tailwind_variants.cn)(className, slots.content()),
|
|
497
489
|
...props
|
|
498
490
|
});
|
|
499
491
|
};
|
|
@@ -513,9 +505,8 @@ const CardDescription = ({ className, ...props }) => {
|
|
|
513
505
|
};
|
|
514
506
|
/** Exports */
|
|
515
507
|
var card_default = Object.assign(Card, {
|
|
516
|
-
|
|
508
|
+
Content: CardContent,
|
|
517
509
|
Description: CardDescription,
|
|
518
|
-
Footer: CardFooter,
|
|
519
510
|
Header: CardHeader,
|
|
520
511
|
Root: Card,
|
|
521
512
|
Title: CardTitle
|