@rehagro/ui 1.0.30 → 1.0.32
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/native.d.mts +145 -1
- package/dist/native.d.ts +145 -1
- package/dist/native.js +555 -0
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +554 -3
- package/dist/native.mjs.map +1 -1
- package/package.json +1 -1
package/dist/native.d.mts
CHANGED
|
@@ -417,4 +417,148 @@ declare const Card: React__default.ForwardRefExoticComponent<Omit<PressableProps
|
|
|
417
417
|
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<View>>;
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
type SelectSize = "sm" | "md" | "lg";
|
|
421
|
+
type SelectRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
422
|
+
type SelectStatus = "default" | "error";
|
|
423
|
+
type SelectOption = {
|
|
424
|
+
/** Unique value for the option */
|
|
425
|
+
value: string;
|
|
426
|
+
/** Display label */
|
|
427
|
+
label: string;
|
|
428
|
+
/** Whether the option is disabled */
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
};
|
|
431
|
+
type SelectBaseProps = {
|
|
432
|
+
/** List of available options */
|
|
433
|
+
options: SelectOption[];
|
|
434
|
+
/** Label text displayed above the select */
|
|
435
|
+
label?: string;
|
|
436
|
+
/** Subtitle displayed next to the label */
|
|
437
|
+
subtitle?: string;
|
|
438
|
+
/** Placeholder text when no option is selected */
|
|
439
|
+
placeholder?: string;
|
|
440
|
+
/** Validation status */
|
|
441
|
+
status?: SelectStatus;
|
|
442
|
+
/** Select size */
|
|
443
|
+
size?: SelectSize;
|
|
444
|
+
/** Border radius */
|
|
445
|
+
radius?: SelectRadius;
|
|
446
|
+
/** Helper/error message displayed below the select */
|
|
447
|
+
helperText?: React__default.ReactNode;
|
|
448
|
+
/** Whether the select is disabled */
|
|
449
|
+
disabled?: boolean;
|
|
450
|
+
/** Custom style for the trigger container */
|
|
451
|
+
style?: StyleProp<ViewStyle>;
|
|
452
|
+
/** Custom style for the outermost wrapper */
|
|
453
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
454
|
+
/** Accessibility label */
|
|
455
|
+
accessibilityLabel?: string;
|
|
456
|
+
};
|
|
457
|
+
type SelectSingleProps = SelectBaseProps & {
|
|
458
|
+
/** Enables multi-select mode */
|
|
459
|
+
multiple?: false;
|
|
460
|
+
/** Currently selected value (single mode) */
|
|
461
|
+
value?: string;
|
|
462
|
+
/** Default selected value (single mode, uncontrolled) */
|
|
463
|
+
defaultValue?: string;
|
|
464
|
+
/** Called when selection changes (single mode) */
|
|
465
|
+
onChange?: (value: string) => void;
|
|
466
|
+
};
|
|
467
|
+
type SelectMultipleProps = SelectBaseProps & {
|
|
468
|
+
/** Enables multi-select mode */
|
|
469
|
+
multiple: true;
|
|
470
|
+
/** Currently selected values (multi mode) */
|
|
471
|
+
value?: string[];
|
|
472
|
+
/** Default selected values (multi mode, uncontrolled) */
|
|
473
|
+
defaultValue?: string[];
|
|
474
|
+
/** Called when selection changes (multi mode) */
|
|
475
|
+
onChange?: (value: string[]) => void;
|
|
476
|
+
};
|
|
477
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
478
|
+
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<View>>;
|
|
479
|
+
|
|
480
|
+
type RadioSize = "sm" | "md" | "lg";
|
|
481
|
+
type RadioOrientation = "horizontal" | "vertical";
|
|
482
|
+
type RadioColor = "primary" | "secondary" | "danger" | "warning" | "success" | "info";
|
|
483
|
+
type RadioBaseProps = Omit<PressableProps, "style" | "onPress"> & {
|
|
484
|
+
/** Radio size */
|
|
485
|
+
size?: RadioSize;
|
|
486
|
+
/** Label text displayed next to the radio */
|
|
487
|
+
label?: React__default.ReactNode;
|
|
488
|
+
/** Description text below the label */
|
|
489
|
+
description?: React__default.ReactNode;
|
|
490
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
491
|
+
color?: RadioColor | (string & {});
|
|
492
|
+
/** Custom style for the outer wrapper */
|
|
493
|
+
style?: StyleProp<ViewStyle>;
|
|
494
|
+
};
|
|
495
|
+
type RadioProps = RadioBaseProps & {
|
|
496
|
+
/** Controlled checked state */
|
|
497
|
+
checked?: boolean;
|
|
498
|
+
/** Default checked state (uncontrolled) */
|
|
499
|
+
defaultChecked?: boolean;
|
|
500
|
+
/** Callback fired when the value changes */
|
|
501
|
+
onChange?: (checked: boolean) => void;
|
|
502
|
+
};
|
|
503
|
+
type RadioOptionProps = RadioBaseProps & {
|
|
504
|
+
/** Unique value for this option */
|
|
505
|
+
value: string;
|
|
506
|
+
};
|
|
507
|
+
type RadioGroupProps = {
|
|
508
|
+
children?: React__default.ReactNode;
|
|
509
|
+
/** Currently selected value */
|
|
510
|
+
value?: string;
|
|
511
|
+
/** Default value (uncontrolled) */
|
|
512
|
+
defaultValue?: string;
|
|
513
|
+
/** Called when selection changes */
|
|
514
|
+
onChange?: (value: string) => void;
|
|
515
|
+
/** Radio size for all items */
|
|
516
|
+
size?: RadioSize;
|
|
517
|
+
/** Layout orientation */
|
|
518
|
+
orientation?: RadioOrientation;
|
|
519
|
+
/** Color scheme for checked state */
|
|
520
|
+
color?: RadioColor | (string & {});
|
|
521
|
+
/** Whether the entire group is disabled */
|
|
522
|
+
disabled?: boolean;
|
|
523
|
+
/** Gap between items */
|
|
524
|
+
gap?: "sm" | "md" | "lg";
|
|
525
|
+
/** Custom style for the group wrapper */
|
|
526
|
+
style?: StyleProp<ViewStyle>;
|
|
527
|
+
};
|
|
528
|
+
declare const Radio: React__default.ForwardRefExoticComponent<Omit<PressableProps, "style" | "onPress"> & {
|
|
529
|
+
/** Radio size */
|
|
530
|
+
size?: RadioSize;
|
|
531
|
+
/** Label text displayed next to the radio */
|
|
532
|
+
label?: React__default.ReactNode;
|
|
533
|
+
/** Description text below the label */
|
|
534
|
+
description?: React__default.ReactNode;
|
|
535
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
536
|
+
color?: RadioColor | (string & {});
|
|
537
|
+
/** Custom style for the outer wrapper */
|
|
538
|
+
style?: StyleProp<ViewStyle>;
|
|
539
|
+
} & {
|
|
540
|
+
/** Controlled checked state */
|
|
541
|
+
checked?: boolean;
|
|
542
|
+
/** Default checked state (uncontrolled) */
|
|
543
|
+
defaultChecked?: boolean;
|
|
544
|
+
/** Callback fired when the value changes */
|
|
545
|
+
onChange?: (checked: boolean) => void;
|
|
546
|
+
} & React__default.RefAttributes<View>>;
|
|
547
|
+
declare const RadioOption: React__default.ForwardRefExoticComponent<Omit<PressableProps, "style" | "onPress"> & {
|
|
548
|
+
/** Radio size */
|
|
549
|
+
size?: RadioSize;
|
|
550
|
+
/** Label text displayed next to the radio */
|
|
551
|
+
label?: React__default.ReactNode;
|
|
552
|
+
/** Description text below the label */
|
|
553
|
+
description?: React__default.ReactNode;
|
|
554
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
555
|
+
color?: RadioColor | (string & {});
|
|
556
|
+
/** Custom style for the outer wrapper */
|
|
557
|
+
style?: StyleProp<ViewStyle>;
|
|
558
|
+
} & {
|
|
559
|
+
/** Unique value for this option */
|
|
560
|
+
value: string;
|
|
561
|
+
} & React__default.RefAttributes<View>>;
|
|
562
|
+
declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<View>>;
|
|
563
|
+
|
|
564
|
+
export { ActivityIndicator, type ActivityIndicatorColor, type ActivityIndicatorProps, type ActivityIndicatorSize, 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, Checkbox, type CheckboxProps, type CheckboxSize, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, Radio, type RadioColor, RadioGroup, type RadioGroupProps, RadioOption, type RadioOptionProps, type RadioOrientation, type RadioProps, type RadioSize, RehagroNativeProvider, type RehagroNativeProviderProps, type RehagroNativeTheme, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectRadius, type SelectSingleProps, type SelectSize, type SelectStatus, Tag, type TagColor, type TagProps, type TagSize, Text, type TextColor, TextInput, type TextInputProps, type TextInputRadius, type TextInputSize, type TextInputStatus, type TextProps, type TextSize, useRehagroTheme };
|
package/dist/native.d.ts
CHANGED
|
@@ -417,4 +417,148 @@ declare const Card: React__default.ForwardRefExoticComponent<Omit<PressableProps
|
|
|
417
417
|
Footer: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<View>>;
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
type SelectSize = "sm" | "md" | "lg";
|
|
421
|
+
type SelectRadius = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
422
|
+
type SelectStatus = "default" | "error";
|
|
423
|
+
type SelectOption = {
|
|
424
|
+
/** Unique value for the option */
|
|
425
|
+
value: string;
|
|
426
|
+
/** Display label */
|
|
427
|
+
label: string;
|
|
428
|
+
/** Whether the option is disabled */
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
};
|
|
431
|
+
type SelectBaseProps = {
|
|
432
|
+
/** List of available options */
|
|
433
|
+
options: SelectOption[];
|
|
434
|
+
/** Label text displayed above the select */
|
|
435
|
+
label?: string;
|
|
436
|
+
/** Subtitle displayed next to the label */
|
|
437
|
+
subtitle?: string;
|
|
438
|
+
/** Placeholder text when no option is selected */
|
|
439
|
+
placeholder?: string;
|
|
440
|
+
/** Validation status */
|
|
441
|
+
status?: SelectStatus;
|
|
442
|
+
/** Select size */
|
|
443
|
+
size?: SelectSize;
|
|
444
|
+
/** Border radius */
|
|
445
|
+
radius?: SelectRadius;
|
|
446
|
+
/** Helper/error message displayed below the select */
|
|
447
|
+
helperText?: React__default.ReactNode;
|
|
448
|
+
/** Whether the select is disabled */
|
|
449
|
+
disabled?: boolean;
|
|
450
|
+
/** Custom style for the trigger container */
|
|
451
|
+
style?: StyleProp<ViewStyle>;
|
|
452
|
+
/** Custom style for the outermost wrapper */
|
|
453
|
+
wrapperStyle?: StyleProp<ViewStyle>;
|
|
454
|
+
/** Accessibility label */
|
|
455
|
+
accessibilityLabel?: string;
|
|
456
|
+
};
|
|
457
|
+
type SelectSingleProps = SelectBaseProps & {
|
|
458
|
+
/** Enables multi-select mode */
|
|
459
|
+
multiple?: false;
|
|
460
|
+
/** Currently selected value (single mode) */
|
|
461
|
+
value?: string;
|
|
462
|
+
/** Default selected value (single mode, uncontrolled) */
|
|
463
|
+
defaultValue?: string;
|
|
464
|
+
/** Called when selection changes (single mode) */
|
|
465
|
+
onChange?: (value: string) => void;
|
|
466
|
+
};
|
|
467
|
+
type SelectMultipleProps = SelectBaseProps & {
|
|
468
|
+
/** Enables multi-select mode */
|
|
469
|
+
multiple: true;
|
|
470
|
+
/** Currently selected values (multi mode) */
|
|
471
|
+
value?: string[];
|
|
472
|
+
/** Default selected values (multi mode, uncontrolled) */
|
|
473
|
+
defaultValue?: string[];
|
|
474
|
+
/** Called when selection changes (multi mode) */
|
|
475
|
+
onChange?: (value: string[]) => void;
|
|
476
|
+
};
|
|
477
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
478
|
+
declare const Select: React__default.ForwardRefExoticComponent<SelectProps & React__default.RefAttributes<View>>;
|
|
479
|
+
|
|
480
|
+
type RadioSize = "sm" | "md" | "lg";
|
|
481
|
+
type RadioOrientation = "horizontal" | "vertical";
|
|
482
|
+
type RadioColor = "primary" | "secondary" | "danger" | "warning" | "success" | "info";
|
|
483
|
+
type RadioBaseProps = Omit<PressableProps, "style" | "onPress"> & {
|
|
484
|
+
/** Radio size */
|
|
485
|
+
size?: RadioSize;
|
|
486
|
+
/** Label text displayed next to the radio */
|
|
487
|
+
label?: React__default.ReactNode;
|
|
488
|
+
/** Description text below the label */
|
|
489
|
+
description?: React__default.ReactNode;
|
|
490
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
491
|
+
color?: RadioColor | (string & {});
|
|
492
|
+
/** Custom style for the outer wrapper */
|
|
493
|
+
style?: StyleProp<ViewStyle>;
|
|
494
|
+
};
|
|
495
|
+
type RadioProps = RadioBaseProps & {
|
|
496
|
+
/** Controlled checked state */
|
|
497
|
+
checked?: boolean;
|
|
498
|
+
/** Default checked state (uncontrolled) */
|
|
499
|
+
defaultChecked?: boolean;
|
|
500
|
+
/** Callback fired when the value changes */
|
|
501
|
+
onChange?: (checked: boolean) => void;
|
|
502
|
+
};
|
|
503
|
+
type RadioOptionProps = RadioBaseProps & {
|
|
504
|
+
/** Unique value for this option */
|
|
505
|
+
value: string;
|
|
506
|
+
};
|
|
507
|
+
type RadioGroupProps = {
|
|
508
|
+
children?: React__default.ReactNode;
|
|
509
|
+
/** Currently selected value */
|
|
510
|
+
value?: string;
|
|
511
|
+
/** Default value (uncontrolled) */
|
|
512
|
+
defaultValue?: string;
|
|
513
|
+
/** Called when selection changes */
|
|
514
|
+
onChange?: (value: string) => void;
|
|
515
|
+
/** Radio size for all items */
|
|
516
|
+
size?: RadioSize;
|
|
517
|
+
/** Layout orientation */
|
|
518
|
+
orientation?: RadioOrientation;
|
|
519
|
+
/** Color scheme for checked state */
|
|
520
|
+
color?: RadioColor | (string & {});
|
|
521
|
+
/** Whether the entire group is disabled */
|
|
522
|
+
disabled?: boolean;
|
|
523
|
+
/** Gap between items */
|
|
524
|
+
gap?: "sm" | "md" | "lg";
|
|
525
|
+
/** Custom style for the group wrapper */
|
|
526
|
+
style?: StyleProp<ViewStyle>;
|
|
527
|
+
};
|
|
528
|
+
declare const Radio: React__default.ForwardRefExoticComponent<Omit<PressableProps, "style" | "onPress"> & {
|
|
529
|
+
/** Radio size */
|
|
530
|
+
size?: RadioSize;
|
|
531
|
+
/** Label text displayed next to the radio */
|
|
532
|
+
label?: React__default.ReactNode;
|
|
533
|
+
/** Description text below the label */
|
|
534
|
+
description?: React__default.ReactNode;
|
|
535
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
536
|
+
color?: RadioColor | (string & {});
|
|
537
|
+
/** Custom style for the outer wrapper */
|
|
538
|
+
style?: StyleProp<ViewStyle>;
|
|
539
|
+
} & {
|
|
540
|
+
/** Controlled checked state */
|
|
541
|
+
checked?: boolean;
|
|
542
|
+
/** Default checked state (uncontrolled) */
|
|
543
|
+
defaultChecked?: boolean;
|
|
544
|
+
/** Callback fired when the value changes */
|
|
545
|
+
onChange?: (checked: boolean) => void;
|
|
546
|
+
} & React__default.RefAttributes<View>>;
|
|
547
|
+
declare const RadioOption: React__default.ForwardRefExoticComponent<Omit<PressableProps, "style" | "onPress"> & {
|
|
548
|
+
/** Radio size */
|
|
549
|
+
size?: RadioSize;
|
|
550
|
+
/** Label text displayed next to the radio */
|
|
551
|
+
label?: React__default.ReactNode;
|
|
552
|
+
/** Description text below the label */
|
|
553
|
+
description?: React__default.ReactNode;
|
|
554
|
+
/** Color scheme for checked state — preset name or custom color string */
|
|
555
|
+
color?: RadioColor | (string & {});
|
|
556
|
+
/** Custom style for the outer wrapper */
|
|
557
|
+
style?: StyleProp<ViewStyle>;
|
|
558
|
+
} & {
|
|
559
|
+
/** Unique value for this option */
|
|
560
|
+
value: string;
|
|
561
|
+
} & React__default.RefAttributes<View>>;
|
|
562
|
+
declare const RadioGroup: React__default.ForwardRefExoticComponent<RadioGroupProps & React__default.RefAttributes<View>>;
|
|
563
|
+
|
|
564
|
+
export { ActivityIndicator, type ActivityIndicatorColor, type ActivityIndicatorProps, type ActivityIndicatorSize, 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, Checkbox, type CheckboxProps, type CheckboxSize, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonRadius, type IconButtonSize, type IconButtonVariant, Radio, type RadioColor, RadioGroup, type RadioGroupProps, RadioOption, type RadioOptionProps, type RadioOrientation, type RadioProps, type RadioSize, RehagroNativeProvider, type RehagroNativeProviderProps, type RehagroNativeTheme, Select, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectRadius, type SelectSingleProps, type SelectSize, type SelectStatus, Tag, type TagColor, type TagProps, type TagSize, Text, type TextColor, TextInput, type TextInputProps, type TextInputRadius, type TextInputSize, type TextInputStatus, type TextProps, type TextSize, useRehagroTheme };
|