@movmo_app/react-common 0.3.2

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.
@@ -0,0 +1,58 @@
1
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import { default as default_2 } from 'react';
3
+ import * as React_2 from 'react';
4
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
5
+ import { SingleValue } from 'react-select';
6
+ import { StylesConfig } from 'react-select';
7
+
8
+ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
9
+
10
+ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
11
+ variant?: 'primary' | 'secondary' | 'error' | 'success' | 'warning';
12
+ size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
13
+ isLoading?: boolean;
14
+ fullWidth?: boolean;
15
+ }
16
+
17
+ export declare const Card: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
18
+
19
+ export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
20
+
21
+ export declare const CardDescription: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
22
+
23
+ export declare const CardFooter: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
24
+
25
+ export declare const CardHeader: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
26
+
27
+ export declare const CardTitle: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
28
+
29
+ export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
30
+
31
+ export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLInputElement> & React_2.InputHTMLAttributes<HTMLInputElement> & {
32
+ required?: boolean;
33
+ }, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
34
+
35
+ export declare const SelectDropdown: default_2.FC<SelectDropdownProps>;
36
+
37
+ export declare interface SelectDropdownOption {
38
+ value: string;
39
+ label: string;
40
+ }
41
+
42
+ declare interface SelectDropdownProps {
43
+ value: SelectDropdownOption | null;
44
+ options: SelectDropdownOption[];
45
+ placeholder?: string;
46
+ onChange: (selectedOption: SingleValue<SelectDropdownOption>) => void;
47
+ className?: string;
48
+ styles?: StylesConfig<SelectDropdownOption, false>;
49
+ "data-testid"?: string;
50
+ }
51
+
52
+ export declare const Separator: React_2.ForwardRefExoticComponent<SeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
53
+
54
+ declare interface SeparatorProps extends React_2.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
55
+ text?: string;
56
+ }
57
+
58
+ export { }