@rehagro/ui 1.0.56 → 1.0.58

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 CHANGED
@@ -12,8 +12,8 @@ type ToastLink = {
12
12
  type ToastProps = React__default.HTMLAttributes<HTMLDivElement> & {
13
13
  /** Toast title */
14
14
  title: string;
15
- /** Optional description below the title */
16
- description?: string;
15
+ /** Optional description below the title. Accepts a string or any React node (e.g. a list of items). */
16
+ description?: React__default.ReactNode;
17
17
  /** Optional link below the content */
18
18
  link?: ToastLink;
19
19
  /** Visual variant */
@@ -26,8 +26,8 @@ type ToastProps = React__default.HTMLAttributes<HTMLDivElement> & {
26
26
  declare const Toast: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
27
27
  /** Toast title */
28
28
  title: string;
29
- /** Optional description below the title */
30
- description?: string;
29
+ /** Optional description below the title. Accepts a string or any React node (e.g. a list of items). */
30
+ description?: React__default.ReactNode;
31
31
  /** Optional link below the content */
32
32
  link?: ToastLink;
33
33
  /** Visual variant */
@@ -42,7 +42,7 @@ type ToastPosition = "top-right" | "top-left" | "top-center" | "bottom-right" |
42
42
  type ToastItem = {
43
43
  id: string;
44
44
  title: string;
45
- description?: string;
45
+ description?: React__default.ReactNode;
46
46
  link?: ToastLink;
47
47
  variant: ToastVariant;
48
48
  appearance: ToastAppearance;
@@ -50,7 +50,7 @@ type ToastItem = {
50
50
  duration: number;
51
51
  };
52
52
  type ToastOptions = {
53
- description?: string;
53
+ description?: React__default.ReactNode;
54
54
  link?: ToastLink;
55
55
  appearance?: ToastAppearance;
56
56
  /** Auto-dismiss duration in ms. 0 = permanent. Default: 5000 */
@@ -547,9 +547,54 @@ type DateSelectBaseProps = {
547
547
  endYear?: number;
548
548
  /** Custom background color for the trigger button */
549
549
  backgroundColor?: string;
550
+ /**
551
+ * Restricts which modes are available in the picker.
552
+ * When a single mode is provided the tab bar is hidden entirely.
553
+ * Defaults to all four modes: ["interval", "day", "month", "year"].
554
+ */
555
+ modes?: DateSelectMode[];
550
556
  };
551
557
  declare const DateSelect: React__default.ForwardRefExoticComponent<DateSelectBaseProps & React__default.RefAttributes<HTMLButtonElement>>;
552
558
 
559
+ type TimePickerValue = {
560
+ hour: number;
561
+ minute: number;
562
+ };
563
+ type TimePickerPresentation = "dropdown" | "clock";
564
+ type TimePickerProps = {
565
+ /** Label displayed above the field */
566
+ label?: string;
567
+ /** Secondary text next to the label; use "*" to render a red asterisk */
568
+ subtitle?: string;
569
+ /** Text displayed when no time is selected */
570
+ placeholder?: string;
571
+ /** Visual state: "default" | "error" */
572
+ status?: SelectStatus;
573
+ /** Field size: "sm" | "md" | "lg" */
574
+ size?: SelectSize;
575
+ /** Border radius */
576
+ radius?: SelectRadius;
577
+ /** Helper or error message below the field */
578
+ helperText?: React__default.ReactNode;
579
+ /** Disables the field */
580
+ disabled?: boolean;
581
+ /** CSS class applied to the trigger element */
582
+ className?: string;
583
+ /** CSS class applied to the outer wrapper */
584
+ wrapperClassName?: string;
585
+ /** Controlled value */
586
+ value?: TimePickerValue;
587
+ /** Uncontrolled initial value */
588
+ defaultValue?: TimePickerValue;
589
+ /** Called when the selected time changes */
590
+ onChange?: (value: TimePickerValue) => void;
591
+ /** Custom background color for the trigger button */
592
+ backgroundColor?: string;
593
+ /** Picker presentation: compact dropdown or clock dialog */
594
+ presentation?: TimePickerPresentation;
595
+ };
596
+ declare const TimePicker: React__default.ForwardRefExoticComponent<TimePickerProps & React__default.RefAttributes<HTMLButtonElement>>;
597
+
553
598
  type TooltipVariant = "light" | "default" | "dark";
554
599
  type TooltipSize = "sm" | "md";
555
600
  type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
@@ -1074,4 +1119,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
1074
1119
 
1075
1120
  declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
1076
1121
 
1077
- 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, DateSelect, type DateSelectProps, type DateSelectValue, 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 };
1122
+ 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, DateSelect, type DateSelectProps, type DateSelectValue, 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, TimePicker, type TimePickerPresentation, type TimePickerProps, type TimePickerValue, 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
@@ -12,8 +12,8 @@ type ToastLink = {
12
12
  type ToastProps = React__default.HTMLAttributes<HTMLDivElement> & {
13
13
  /** Toast title */
14
14
  title: string;
15
- /** Optional description below the title */
16
- description?: string;
15
+ /** Optional description below the title. Accepts a string or any React node (e.g. a list of items). */
16
+ description?: React__default.ReactNode;
17
17
  /** Optional link below the content */
18
18
  link?: ToastLink;
19
19
  /** Visual variant */
@@ -26,8 +26,8 @@ type ToastProps = React__default.HTMLAttributes<HTMLDivElement> & {
26
26
  declare const Toast: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
27
27
  /** Toast title */
28
28
  title: string;
29
- /** Optional description below the title */
30
- description?: string;
29
+ /** Optional description below the title. Accepts a string or any React node (e.g. a list of items). */
30
+ description?: React__default.ReactNode;
31
31
  /** Optional link below the content */
32
32
  link?: ToastLink;
33
33
  /** Visual variant */
@@ -42,7 +42,7 @@ type ToastPosition = "top-right" | "top-left" | "top-center" | "bottom-right" |
42
42
  type ToastItem = {
43
43
  id: string;
44
44
  title: string;
45
- description?: string;
45
+ description?: React__default.ReactNode;
46
46
  link?: ToastLink;
47
47
  variant: ToastVariant;
48
48
  appearance: ToastAppearance;
@@ -50,7 +50,7 @@ type ToastItem = {
50
50
  duration: number;
51
51
  };
52
52
  type ToastOptions = {
53
- description?: string;
53
+ description?: React__default.ReactNode;
54
54
  link?: ToastLink;
55
55
  appearance?: ToastAppearance;
56
56
  /** Auto-dismiss duration in ms. 0 = permanent. Default: 5000 */
@@ -547,9 +547,54 @@ type DateSelectBaseProps = {
547
547
  endYear?: number;
548
548
  /** Custom background color for the trigger button */
549
549
  backgroundColor?: string;
550
+ /**
551
+ * Restricts which modes are available in the picker.
552
+ * When a single mode is provided the tab bar is hidden entirely.
553
+ * Defaults to all four modes: ["interval", "day", "month", "year"].
554
+ */
555
+ modes?: DateSelectMode[];
550
556
  };
551
557
  declare const DateSelect: React__default.ForwardRefExoticComponent<DateSelectBaseProps & React__default.RefAttributes<HTMLButtonElement>>;
552
558
 
559
+ type TimePickerValue = {
560
+ hour: number;
561
+ minute: number;
562
+ };
563
+ type TimePickerPresentation = "dropdown" | "clock";
564
+ type TimePickerProps = {
565
+ /** Label displayed above the field */
566
+ label?: string;
567
+ /** Secondary text next to the label; use "*" to render a red asterisk */
568
+ subtitle?: string;
569
+ /** Text displayed when no time is selected */
570
+ placeholder?: string;
571
+ /** Visual state: "default" | "error" */
572
+ status?: SelectStatus;
573
+ /** Field size: "sm" | "md" | "lg" */
574
+ size?: SelectSize;
575
+ /** Border radius */
576
+ radius?: SelectRadius;
577
+ /** Helper or error message below the field */
578
+ helperText?: React__default.ReactNode;
579
+ /** Disables the field */
580
+ disabled?: boolean;
581
+ /** CSS class applied to the trigger element */
582
+ className?: string;
583
+ /** CSS class applied to the outer wrapper */
584
+ wrapperClassName?: string;
585
+ /** Controlled value */
586
+ value?: TimePickerValue;
587
+ /** Uncontrolled initial value */
588
+ defaultValue?: TimePickerValue;
589
+ /** Called when the selected time changes */
590
+ onChange?: (value: TimePickerValue) => void;
591
+ /** Custom background color for the trigger button */
592
+ backgroundColor?: string;
593
+ /** Picker presentation: compact dropdown or clock dialog */
594
+ presentation?: TimePickerPresentation;
595
+ };
596
+ declare const TimePicker: React__default.ForwardRefExoticComponent<TimePickerProps & React__default.RefAttributes<HTMLButtonElement>>;
597
+
553
598
  type TooltipVariant = "light" | "default" | "dark";
554
599
  type TooltipSize = "sm" | "md";
555
600
  type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
@@ -1074,4 +1119,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
1074
1119
 
1075
1120
  declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
1076
1121
 
1077
- 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, DateSelect, type DateSelectProps, type DateSelectValue, 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 };
1122
+ 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, DateSelect, type DateSelectProps, type DateSelectValue, 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, TimePicker, type TimePickerPresentation, type TimePickerProps, type TimePickerValue, 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 };