@rehagro/ui 1.0.26 → 1.0.28
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 +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- 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/dist/styles.css +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -623,6 +623,12 @@ type CardProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
|
623
623
|
/** Disabled state (only applies when clickable) */
|
|
624
624
|
disabled?: boolean;
|
|
625
625
|
};
|
|
626
|
+
type CardHeaderProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
627
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
628
|
+
type CardContentProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
629
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
630
|
+
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
631
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
626
632
|
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
627
633
|
/** Visual style variant */
|
|
628
634
|
variant?: CardVariant;
|
|
@@ -634,13 +640,11 @@ declare const Card: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
|
634
640
|
clickable?: boolean;
|
|
635
641
|
/** Disabled state (only applies when clickable) */
|
|
636
642
|
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>>;
|
|
643
|
+
} & React__default.RefAttributes<HTMLDivElement>> & {
|
|
644
|
+
Header: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
645
|
+
Content: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
646
|
+
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
};
|
|
644
648
|
|
|
645
649
|
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
646
650
|
type SpinnerProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -623,6 +623,12 @@ type CardProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
|
623
623
|
/** Disabled state (only applies when clickable) */
|
|
624
624
|
disabled?: boolean;
|
|
625
625
|
};
|
|
626
|
+
type CardHeaderProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
627
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
628
|
+
type CardContentProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
629
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
630
|
+
type CardFooterProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
631
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
626
632
|
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
627
633
|
/** Visual style variant */
|
|
628
634
|
variant?: CardVariant;
|
|
@@ -634,13 +640,11 @@ declare const Card: React__default.ForwardRefExoticComponent<React__default.HTML
|
|
|
634
640
|
clickable?: boolean;
|
|
635
641
|
/** Disabled state (only applies when clickable) */
|
|
636
642
|
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>>;
|
|
643
|
+
} & React__default.RefAttributes<HTMLDivElement>> & {
|
|
644
|
+
Header: React__default.ForwardRefExoticComponent<CardHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
645
|
+
Content: React__default.ForwardRefExoticComponent<CardContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
646
|
+
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
};
|
|
644
648
|
|
|
645
649
|
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
646
650
|
type SpinnerProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
package/dist/index.js
CHANGED
|
@@ -1063,6 +1063,7 @@ var TextInput = React9.forwardRef(function TextInput2({
|
|
|
1063
1063
|
"rh-flex rh-items-center rh-gap-2",
|
|
1064
1064
|
"rh-border rh-bg-surface rh-font-body",
|
|
1065
1065
|
"rh-transition-colors rh-duration-150",
|
|
1066
|
+
"rh-overflow-hidden",
|
|
1066
1067
|
statusClasses[status],
|
|
1067
1068
|
radiusClasses3[radius],
|
|
1068
1069
|
sizeClasses3[size],
|
|
@@ -1090,7 +1091,7 @@ var TextInput = React9.forwardRef(function TextInput2({
|
|
|
1090
1091
|
"aria-invalid": status === "error" || void 0,
|
|
1091
1092
|
"aria-describedby": helperText ? `${inputId}-helper` : void 0,
|
|
1092
1093
|
className: [
|
|
1093
|
-
"rh-flex-1 rh-bg-transparent rh-outline-none",
|
|
1094
|
+
"rh-flex-1 rh-min-w-0 rh-bg-transparent rh-outline-none",
|
|
1094
1095
|
"rh-text-text placeholder:rh-text-text-muted",
|
|
1095
1096
|
disabled ? "rh-cursor-not-allowed" : ""
|
|
1096
1097
|
].filter(Boolean).join(" "),
|
|
@@ -2653,7 +2654,7 @@ var paddingClasses = {
|
|
|
2653
2654
|
md: "rh-p-4",
|
|
2654
2655
|
lg: "rh-p-6"
|
|
2655
2656
|
};
|
|
2656
|
-
var
|
|
2657
|
+
var CardRoot = React9.forwardRef(function Card({
|
|
2657
2658
|
variant = "outlined",
|
|
2658
2659
|
radius = "sm",
|
|
2659
2660
|
padding = "md",
|
|
@@ -2713,6 +2714,11 @@ var CardFooter = React9.forwardRef(function CardFooter2({ className = "", childr
|
|
|
2713
2714
|
}
|
|
2714
2715
|
);
|
|
2715
2716
|
});
|
|
2717
|
+
var Card2 = Object.assign(CardRoot, {
|
|
2718
|
+
Header: CardHeader,
|
|
2719
|
+
Content: CardContent,
|
|
2720
|
+
Footer: CardFooter
|
|
2721
|
+
});
|
|
2716
2722
|
var PRESET_COLORS6 = /* @__PURE__ */ new Set([
|
|
2717
2723
|
"primary",
|
|
2718
2724
|
"secondary",
|
|
@@ -3387,7 +3393,7 @@ var GridItem = React9.forwardRef(
|
|
|
3387
3393
|
|
|
3388
3394
|
exports.Avatar = Avatar;
|
|
3389
3395
|
exports.Button = Button;
|
|
3390
|
-
exports.Card =
|
|
3396
|
+
exports.Card = Card2;
|
|
3391
3397
|
exports.CardContent = CardContent;
|
|
3392
3398
|
exports.CardFooter = CardFooter;
|
|
3393
3399
|
exports.CardHeader = CardHeader;
|