@rehagro/ui 1.0.39 → 1.0.41
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 +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +34 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -13
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +24 -1
- package/dist/native.d.ts +24 -1
- package/dist/native.js +118 -0
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +118 -1
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -578,14 +578,17 @@ type TagInputProps = {
|
|
|
578
578
|
};
|
|
579
579
|
declare const TagInput: React__default.ForwardRefExoticComponent<TagInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
580
580
|
|
|
581
|
-
type
|
|
581
|
+
type ProgressBarVariant = "inline" | "stacked";
|
|
582
|
+
type ProgressBarThickness = "xs" | "sm" | "md" | "lg" | "xl";
|
|
582
583
|
type ProgressBarProps = {
|
|
583
584
|
/** Progress value from 0 to 100 */
|
|
584
585
|
value: number;
|
|
585
|
-
/** Label text (only shown in
|
|
586
|
+
/** Label text (only shown in stacked variant) */
|
|
586
587
|
label?: string;
|
|
587
|
-
/**
|
|
588
|
-
|
|
588
|
+
/** Layout variant */
|
|
589
|
+
variant?: ProgressBarVariant;
|
|
590
|
+
/** Bar thickness — preset token or custom value in px */
|
|
591
|
+
thickness?: ProgressBarThickness | number;
|
|
589
592
|
/** Whether to show percentage text */
|
|
590
593
|
showPercentage?: boolean;
|
|
591
594
|
/** Custom bar color */
|
|
@@ -894,4 +897,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
|
|
|
894
897
|
|
|
895
898
|
declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
896
899
|
|
|
897
|
-
export { Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Button, ButtonColor, type ButtonProps, type ButtonRadius, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, type CardRadius, type CardVariant, CaretLeftIcon, CaretRightIcon, Checkbox, type CheckboxProps, type CheckboxSize, CloseIcon, Container, type ContainerProps, DeleteIcon, EditIcon, ErrorIcon, GridContainer, type GridContainerProps, GridItem, type GridItemProps, type GridSpan, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, type IconProps, InfoIcon, type MobileSpan, NeutralIcon, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, type
|
|
900
|
+
export { Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Button, ButtonColor, type ButtonProps, type ButtonRadius, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, type CardRadius, type CardVariant, CaretLeftIcon, CaretRightIcon, Checkbox, type CheckboxProps, type CheckboxSize, CloseIcon, Container, type ContainerProps, DeleteIcon, EditIcon, ErrorIcon, GridContainer, type GridContainerProps, GridItem, type GridItemProps, type GridSpan, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, type IconProps, InfoIcon, type MobileSpan, NeutralIcon, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, type ProgressBarThickness, type ProgressBarVariant, Radio, RadioGroup, type RadioGroupProps, RadioOption, type RadioOptionProps, type RadioOrientation, type RadioProps, type RadioSize, RehagroProvider, type RehagroProviderProps, type RehagroTheme, SearchIcon, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectRadius, type SelectSingleProps, type SelectSize, type SelectStatus, type SortDirection, Spinner, type SpinnerProps, type SpinnerSize, SuccessIcon, Table, type TableColumn, type TableProps, type TableSize, type TableSort, type TableVariant, Tag, TagInput, type TagInputOption, type TagInputProps, type TagInputRadius, type TagInputSize, type TagInputStatus, type TagProps, type TagSize, TextInput, type TextInputProps, type TextInputRadius, type TextInputSize, type TextInputStatus, Toast, type ToastAppearance, ToastContainer, type ToastFn, type ToastItem, type ToastLink, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastVariant, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupRadius, type ToggleGroupSize, Tooltip, type TooltipPlacement, type TooltipProps, type TooltipSize, type TooltipVariant, Typography, type TypographyColor, type TypographyProps, type TypographyVariant, WarningIcon, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -578,14 +578,17 @@ type TagInputProps = {
|
|
|
578
578
|
};
|
|
579
579
|
declare const TagInput: React__default.ForwardRefExoticComponent<TagInputProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
580
580
|
|
|
581
|
-
type
|
|
581
|
+
type ProgressBarVariant = "inline" | "stacked";
|
|
582
|
+
type ProgressBarThickness = "xs" | "sm" | "md" | "lg" | "xl";
|
|
582
583
|
type ProgressBarProps = {
|
|
583
584
|
/** Progress value from 0 to 100 */
|
|
584
585
|
value: number;
|
|
585
|
-
/** Label text (only shown in
|
|
586
|
+
/** Label text (only shown in stacked variant) */
|
|
586
587
|
label?: string;
|
|
587
|
-
/**
|
|
588
|
-
|
|
588
|
+
/** Layout variant */
|
|
589
|
+
variant?: ProgressBarVariant;
|
|
590
|
+
/** Bar thickness — preset token or custom value in px */
|
|
591
|
+
thickness?: ProgressBarThickness | number;
|
|
589
592
|
/** Whether to show percentage text */
|
|
590
593
|
showPercentage?: boolean;
|
|
591
594
|
/** Custom bar color */
|
|
@@ -894,4 +897,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
|
|
|
894
897
|
|
|
895
898
|
declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
896
899
|
|
|
897
|
-
export { Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Button, ButtonColor, type ButtonProps, type ButtonRadius, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, type CardRadius, type CardVariant, CaretLeftIcon, CaretRightIcon, Checkbox, type CheckboxProps, type CheckboxSize, CloseIcon, Container, type ContainerProps, DeleteIcon, EditIcon, ErrorIcon, GridContainer, type GridContainerProps, GridItem, type GridItemProps, type GridSpan, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, type IconProps, InfoIcon, type MobileSpan, NeutralIcon, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, type
|
|
900
|
+
export { Avatar, type AvatarProps, type AvatarSize, type AvatarVariant, Button, ButtonColor, type ButtonProps, type ButtonRadius, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, type CardRadius, type CardVariant, CaretLeftIcon, CaretRightIcon, Checkbox, type CheckboxProps, type CheckboxSize, CloseIcon, Container, type ContainerProps, DeleteIcon, EditIcon, ErrorIcon, GridContainer, type GridContainerProps, GridItem, type GridItemProps, type GridSpan, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, type IconProps, InfoIcon, type MobileSpan, NeutralIcon, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, type ProgressBarThickness, type ProgressBarVariant, Radio, RadioGroup, type RadioGroupProps, RadioOption, type RadioOptionProps, type RadioOrientation, type RadioProps, type RadioSize, RehagroProvider, type RehagroProviderProps, type RehagroTheme, SearchIcon, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectRadius, type SelectSingleProps, type SelectSize, type SelectStatus, type SortDirection, Spinner, type SpinnerProps, type SpinnerSize, SuccessIcon, Table, type TableColumn, type TableProps, type TableSize, type TableSort, type TableVariant, Tag, TagInput, type TagInputOption, type TagInputProps, type TagInputRadius, type TagInputSize, type TagInputStatus, type TagProps, type TagSize, TextInput, type TextInputProps, type TextInputRadius, type TextInputSize, type TextInputStatus, Toast, type ToastAppearance, ToastContainer, type ToastFn, type ToastItem, type ToastLink, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastVariant, ToggleGroup, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupRadius, type ToggleGroupSize, Tooltip, type TooltipPlacement, type TooltipProps, type TooltipSize, type TooltipVariant, Typography, type TypographyColor, type TypographyProps, type TypographyVariant, WarningIcon, useToast };
|
package/dist/index.js
CHANGED
|
@@ -1056,8 +1056,8 @@ var IconButton = React9.forwardRef(function IconButton2({
|
|
|
1056
1056
|
);
|
|
1057
1057
|
});
|
|
1058
1058
|
var statusClasses = {
|
|
1059
|
-
default: "rh-border-border focus-within:rh-ring-2 focus-within:rh-ring-
|
|
1060
|
-
error: "rh-border-danger focus-within:rh-ring-2 focus-within:rh-ring-
|
|
1059
|
+
default: "rh-border-border focus-within:rh-border-primary focus-within:rh-ring-2 focus-within:rh-ring-gray-200",
|
|
1060
|
+
error: "rh-border-danger focus-within:rh-border-danger focus-within:rh-ring-2 focus-within:rh-ring-red-100"
|
|
1061
1061
|
};
|
|
1062
1062
|
var sizeClasses3 = {
|
|
1063
1063
|
sm: "rh-h-input-sm rh-text-sm rh-px-input-x-sm",
|
|
@@ -1154,7 +1154,7 @@ var TextInput = React9.forwardRef(function TextInput2({
|
|
|
1154
1154
|
"aria-describedby": helperText ? `${inputId}-helper` : void 0,
|
|
1155
1155
|
className: [
|
|
1156
1156
|
"rh-flex-1 rh-min-w-0 rh-bg-transparent rh-outline-none",
|
|
1157
|
-
"rh-text-text placeholder:rh-text-text-muted",
|
|
1157
|
+
"rh-text-text placeholder:rh-text-text-muted hover:placeholder:rh-text-text",
|
|
1158
1158
|
disabled ? "rh-cursor-not-allowed" : ""
|
|
1159
1159
|
].filter(Boolean).join(" "),
|
|
1160
1160
|
onChange: (e) => {
|
|
@@ -1477,8 +1477,8 @@ var RadioGroup = React9.forwardRef(function RadioGroup2({
|
|
|
1477
1477
|
);
|
|
1478
1478
|
});
|
|
1479
1479
|
var statusClasses2 = {
|
|
1480
|
-
default: "rh-border-border focus-within:rh-
|
|
1481
|
-
error: "rh-border-danger focus-within:rh-
|
|
1480
|
+
default: "rh-border-border focus-within:rh-border-primary focus-within:rh-ring-2 focus-within:rh-ring-gray-200 ",
|
|
1481
|
+
error: "rh-border-danger focus-within:rh-border-danger focus-within:rh-ring-2 focus-within:rh-ring-red-100 "
|
|
1482
1482
|
};
|
|
1483
1483
|
var sizeClasses5 = {
|
|
1484
1484
|
sm: "rh-min-h-[32px] rh-text-sm rh-px-input-x-sm",
|
|
@@ -1745,7 +1745,7 @@ var Select = React9.forwardRef(function Select2(props, ref) {
|
|
|
1745
1745
|
onClick: () => !disabled && setIsOpen((o) => !o),
|
|
1746
1746
|
onKeyDown: handleKeyDown,
|
|
1747
1747
|
className: [
|
|
1748
|
-
"rh-flex rh-items-center rh-justify-between rh-gap-2",
|
|
1748
|
+
"rh-group rh-flex rh-items-center rh-justify-between rh-gap-2",
|
|
1749
1749
|
"rh-border rh-bg-surface rh-font-body",
|
|
1750
1750
|
"rh-transition-colors rh-duration-150",
|
|
1751
1751
|
"rh-text-left rh-w-full",
|
|
@@ -1761,7 +1761,7 @@ var Select = React9.forwardRef(function Select2(props, ref) {
|
|
|
1761
1761
|
{
|
|
1762
1762
|
className: [
|
|
1763
1763
|
"rh-flex-1 rh-truncate",
|
|
1764
|
-
displayText ? "rh-text-text" : "rh-text-text-muted"
|
|
1764
|
+
displayText ? "rh-text-text" : "rh-text-text-muted group-hover:rh-text-text"
|
|
1765
1765
|
].join(" "),
|
|
1766
1766
|
children: displayText ?? placeholder
|
|
1767
1767
|
}
|
|
@@ -2546,9 +2546,30 @@ var TagInput = React9.forwardRef(function TagInput2({
|
|
|
2546
2546
|
}
|
|
2547
2547
|
);
|
|
2548
2548
|
});
|
|
2549
|
-
var
|
|
2549
|
+
var THICKNESS_MAP = {
|
|
2550
|
+
xs: 2,
|
|
2551
|
+
sm: 4,
|
|
2552
|
+
md: 8,
|
|
2553
|
+
lg: 12,
|
|
2554
|
+
xl: 16
|
|
2555
|
+
};
|
|
2556
|
+
function resolveThickness(thickness) {
|
|
2557
|
+
if (typeof thickness === "number") return thickness;
|
|
2558
|
+
return THICKNESS_MAP[thickness];
|
|
2559
|
+
}
|
|
2560
|
+
var ProgressBar = React9.forwardRef(function ProgressBar2({
|
|
2561
|
+
value,
|
|
2562
|
+
label,
|
|
2563
|
+
variant = "inline",
|
|
2564
|
+
thickness = "sm",
|
|
2565
|
+
showPercentage = true,
|
|
2566
|
+
barColor,
|
|
2567
|
+
bgColor,
|
|
2568
|
+
className = ""
|
|
2569
|
+
}, ref) {
|
|
2550
2570
|
const clampedValue = Math.min(100, Math.max(0, value));
|
|
2551
|
-
|
|
2571
|
+
const heightPx = resolveThickness(thickness);
|
|
2572
|
+
if (variant === "stacked") {
|
|
2552
2573
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2553
2574
|
"div",
|
|
2554
2575
|
{
|
|
@@ -2565,8 +2586,8 @@ var ProgressBar = React9.forwardRef(function ProgressBar2({ value, label, size =
|
|
|
2565
2586
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2566
2587
|
"div",
|
|
2567
2588
|
{
|
|
2568
|
-
className: "rh-w-full rh-
|
|
2569
|
-
style: { backgroundColor: bgColor || "#E5E7EB" },
|
|
2589
|
+
className: "rh-w-full rh-rounded-[40px] rh-overflow-hidden",
|
|
2590
|
+
style: { backgroundColor: bgColor || "#E5E7EB", height: heightPx },
|
|
2570
2591
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2571
2592
|
"div",
|
|
2572
2593
|
{
|
|
@@ -2592,8 +2613,8 @@ var ProgressBar = React9.forwardRef(function ProgressBar2({ value, label, size =
|
|
|
2592
2613
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2593
2614
|
"div",
|
|
2594
2615
|
{
|
|
2595
|
-
className: "rh-flex-1 rh-
|
|
2596
|
-
style: { backgroundColor: bgColor || "#E5E7EB" },
|
|
2616
|
+
className: "rh-flex-1 rh-rounded-[40px] rh-overflow-hidden",
|
|
2617
|
+
style: { backgroundColor: bgColor || "#E5E7EB", height: heightPx },
|
|
2597
2618
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2598
2619
|
"div",
|
|
2599
2620
|
{
|