@rehagro/ui 1.0.48 → 1.0.50

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
@@ -470,6 +470,8 @@ type SelectBaseProps = {
470
470
  radius?: SelectRadius;
471
471
  /** Helper/error message displayed below the select */
472
472
  helperText?: React__default.ReactNode;
473
+ /** Whether to use radio buttons instead of checkboxes */
474
+ radio?: boolean;
473
475
  /** Whether the select is disabled */
474
476
  disabled?: boolean;
475
477
  /** Custom class for the trigger container */
@@ -502,6 +504,52 @@ type SelectMultipleProps = SelectBaseProps & {
502
504
  type SelectProps = SelectSingleProps | SelectMultipleProps;
503
505
  declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLButtonElement>>;
504
506
 
507
+ type DateSelectMode = "interval" | "day" | "month" | "year";
508
+ type DateSelectValue = {
509
+ mode: DateSelectMode;
510
+ year?: number;
511
+ month?: number;
512
+ day?: number;
513
+ startDate?: Date;
514
+ endDate?: Date;
515
+ };
516
+ type DateSelectProps = DateSelectBaseProps;
517
+ type DateSelectBaseProps = {
518
+ /** Text displayed above the field */
519
+ label?: string;
520
+ /** Secondary text next to the label; use "*" to render a red asterisk */
521
+ subtitle?: string;
522
+ /** Text displayed when no date is selected */
523
+ placeholder?: string;
524
+ /** Visual state of the field: "default" (default) or "error" */
525
+ status?: SelectStatus;
526
+ /** Field size: "sm" | "md" | "lg" */
527
+ size?: SelectSize;
528
+ /** Border radius of the field */
529
+ radius?: SelectRadius;
530
+ /** Helper or error message displayed below the field */
531
+ helperText?: React__default.ReactNode;
532
+ /** Disables the field, preventing any interaction */
533
+ disabled?: boolean;
534
+ /** CSS class applied to the inner trigger element */
535
+ className?: string;
536
+ /** CSS class applied to the outer wrapper element */
537
+ wrapperClassName?: string;
538
+ /** Controlled value of the selected date */
539
+ value?: DateSelectValue;
540
+ /** Uncontrolled initial value of the selected date */
541
+ defaultValue?: DateSelectValue;
542
+ /** Callback fired when the selected date changes */
543
+ onChange?: (value: DateSelectValue) => void;
544
+ /** Start year of the range shown in the picker */
545
+ startYear?: number;
546
+ /** End year of the range shown in the picker */
547
+ endYear?: number;
548
+ /** Custom background color for the trigger button */
549
+ backgroundColor?: string;
550
+ };
551
+ declare const DateSelect: React__default.ForwardRefExoticComponent<DateSelectBaseProps & React__default.RefAttributes<HTMLButtonElement>>;
552
+
505
553
  type TooltipVariant = "light" | "default" | "dark";
506
554
  type TooltipSize = "sm" | "md";
507
555
  type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
@@ -1009,4 +1057,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
1009
1057
 
1010
1058
  declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
1011
1059
 
1012
- 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 };
1060
+ 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 };
package/dist/index.d.ts CHANGED
@@ -470,6 +470,8 @@ type SelectBaseProps = {
470
470
  radius?: SelectRadius;
471
471
  /** Helper/error message displayed below the select */
472
472
  helperText?: React__default.ReactNode;
473
+ /** Whether to use radio buttons instead of checkboxes */
474
+ radio?: boolean;
473
475
  /** Whether the select is disabled */
474
476
  disabled?: boolean;
475
477
  /** Custom class for the trigger container */
@@ -502,6 +504,52 @@ type SelectMultipleProps = SelectBaseProps & {
502
504
  type SelectProps = SelectSingleProps | SelectMultipleProps;
503
505
  declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<HTMLButtonElement>>;
504
506
 
507
+ type DateSelectMode = "interval" | "day" | "month" | "year";
508
+ type DateSelectValue = {
509
+ mode: DateSelectMode;
510
+ year?: number;
511
+ month?: number;
512
+ day?: number;
513
+ startDate?: Date;
514
+ endDate?: Date;
515
+ };
516
+ type DateSelectProps = DateSelectBaseProps;
517
+ type DateSelectBaseProps = {
518
+ /** Text displayed above the field */
519
+ label?: string;
520
+ /** Secondary text next to the label; use "*" to render a red asterisk */
521
+ subtitle?: string;
522
+ /** Text displayed when no date is selected */
523
+ placeholder?: string;
524
+ /** Visual state of the field: "default" (default) or "error" */
525
+ status?: SelectStatus;
526
+ /** Field size: "sm" | "md" | "lg" */
527
+ size?: SelectSize;
528
+ /** Border radius of the field */
529
+ radius?: SelectRadius;
530
+ /** Helper or error message displayed below the field */
531
+ helperText?: React__default.ReactNode;
532
+ /** Disables the field, preventing any interaction */
533
+ disabled?: boolean;
534
+ /** CSS class applied to the inner trigger element */
535
+ className?: string;
536
+ /** CSS class applied to the outer wrapper element */
537
+ wrapperClassName?: string;
538
+ /** Controlled value of the selected date */
539
+ value?: DateSelectValue;
540
+ /** Uncontrolled initial value of the selected date */
541
+ defaultValue?: DateSelectValue;
542
+ /** Callback fired when the selected date changes */
543
+ onChange?: (value: DateSelectValue) => void;
544
+ /** Start year of the range shown in the picker */
545
+ startYear?: number;
546
+ /** End year of the range shown in the picker */
547
+ endYear?: number;
548
+ /** Custom background color for the trigger button */
549
+ backgroundColor?: string;
550
+ };
551
+ declare const DateSelect: React__default.ForwardRefExoticComponent<DateSelectBaseProps & React__default.RefAttributes<HTMLButtonElement>>;
552
+
505
553
  type TooltipVariant = "light" | "default" | "dark";
506
554
  type TooltipSize = "sm" | "md";
507
555
  type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
@@ -1009,4 +1057,4 @@ declare function CaretLeftIcon({ className, ...props }: IconProps): react_jsx_ru
1009
1057
 
1010
1058
  declare function CaretRightIcon({ className, ...props }: IconProps): react_jsx_runtime.JSX.Element;
1011
1059
 
1012
- 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 };
1060
+ 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 };