@rehagro/ui 1.0.27 → 1.0.29
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.d.mts +13 -7
- package/dist/index.d.ts +13 -7
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +19 -15
- package/dist/native.d.ts +19 -15
- package/dist/native.js +7 -2
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +7 -2
- package/dist/native.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -134,6 +134,8 @@ type ButtonVariant = "solid" | "outline" | "ghost";
|
|
|
134
134
|
type ButtonSize = "sm" | "md" | "lg";
|
|
135
135
|
type ButtonRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
136
136
|
type ButtonHoverStyle = {
|
|
137
|
+
/** Background on hover */
|
|
138
|
+
background?: string;
|
|
137
139
|
/** Background color on hover */
|
|
138
140
|
backgroundColor?: string;
|
|
139
141
|
/** Border color on hover */
|
|
@@ -623,6 +625,12 @@ type CardProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
|
623
625
|
/** Disabled state (only applies when clickable) */
|
|
624
626
|
disabled?: boolean;
|
|
625
627
|
};
|
|
628
|
+
type CardHeaderProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
629
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
630
|
+
type CardContentProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
631
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
632
|
+
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
633
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
626
634
|
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
627
635
|
/** Visual style variant */
|
|
628
636
|
variant?: CardVariant;
|
|
@@ -634,13 +642,11 @@ declare const Card: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
|
634
642
|
clickable?: boolean;
|
|
635
643
|
/** Disabled state (only applies when clickable) */
|
|
636
644
|
disabled?: boolean;
|
|
637
|
-
} & React__default.RefAttributes<HTMLDivElement
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
643
|
-
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
645
|
+
} & React__default.RefAttributes<HTMLDivElement>> & {
|
|
646
|
+
Header: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
Content: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
648
|
+
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
649
|
+
};
|
|
644
650
|
|
|
645
651
|
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
646
652
|
type SpinnerProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,8 @@ type ButtonVariant = "solid" | "outline" | "ghost";
|
|
|
134
134
|
type ButtonSize = "sm" | "md" | "lg";
|
|
135
135
|
type ButtonRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
136
136
|
type ButtonHoverStyle = {
|
|
137
|
+
/** Background on hover */
|
|
138
|
+
background?: string;
|
|
137
139
|
/** Background color on hover */
|
|
138
140
|
backgroundColor?: string;
|
|
139
141
|
/** Border color on hover */
|
|
@@ -623,6 +625,12 @@ type CardProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
|
623
625
|
/** Disabled state (only applies when clickable) */
|
|
624
626
|
disabled?: boolean;
|
|
625
627
|
};
|
|
628
|
+
type CardHeaderProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
629
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
630
|
+
type CardContentProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
631
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
632
|
+
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
633
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
626
634
|
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
627
635
|
/** Visual style variant */
|
|
628
636
|
variant?: CardVariant;
|
|
@@ -634,13 +642,11 @@ declare const Card: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
|
634
642
|
clickable?: boolean;
|
|
635
643
|
/** Disabled state (only applies when clickable) */
|
|
636
644
|
disabled?: boolean;
|
|
637
|
-
} & React__default.RefAttributes<HTMLDivElement
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
643
|
-
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
645
|
+
} & React__default.RefAttributes<HTMLDivElement>> & {
|
|
646
|
+
Header: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
Content: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
648
|
+
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
649
|
+
};
|
|
644
650
|
|
|
645
651
|
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
646
652
|
type SpinnerProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
package/dist/index.js
CHANGED
|
@@ -2654,7 +2654,7 @@ var paddingClasses = {
|
|
|
2654
2654
|
md: "rh-p-4",
|
|
2655
2655
|
lg: "rh-p-6"
|
|
2656
2656
|
};
|
|
2657
|
-
var
|
|
2657
|
+
var CardRoot = React9.forwardRef(function Card({
|
|
2658
2658
|
variant = "outlined",
|
|
2659
2659
|
radius = "sm",
|
|
2660
2660
|
padding = "md",
|
|
@@ -2714,6 +2714,11 @@ var CardFooter = React9.forwardRef(function CardFooter2({ className = "", childr
|
|
|
2714
2714
|
}
|
|
2715
2715
|
);
|
|
2716
2716
|
});
|
|
2717
|
+
var Card2 = Object.assign(CardRoot, {
|
|
2718
|
+
Header: CardHeader,
|
|
2719
|
+
Content: CardContent,
|
|
2720
|
+
Footer: CardFooter
|
|
2721
|
+
});
|
|
2717
2722
|
var PRESET_COLORS6 = /* @__PURE__ */ new Set([
|
|
2718
2723
|
"primary",
|
|
2719
2724
|
"secondary",
|
|
@@ -3388,7 +3393,7 @@ var GridItem = React9.forwardRef(
|
|
|
3388
3393
|
|
|
3389
3394
|
exports.Avatar = Avatar;
|
|
3390
3395
|
exports.Button = Button;
|
|
3391
|
-
exports.Card =
|
|
3396
|
+
exports.Card = Card2;
|
|
3392
3397
|
exports.CardContent = CardContent;
|
|
3393
3398
|
exports.CardFooter = CardFooter;
|
|
3394
3399
|
exports.CardHeader = CardHeader;
|