@rehagro/ui 1.0.40 → 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 +27 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -6
- 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
|
@@ -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
|
{
|