@argojun/react-components 1.0.2 → 1.0.3
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.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +53 -11
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,15 +20,37 @@ export interface CheckboxProps {
|
|
|
20
20
|
label?: string;
|
|
21
21
|
description?: string;
|
|
22
22
|
size?: 'sm' | 'md' | 'lg';
|
|
23
|
-
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber';
|
|
24
|
-
variant?: '
|
|
23
|
+
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber' | 'black';
|
|
24
|
+
variant?: 'simple' | 'card';
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
required?: boolean;
|
|
27
27
|
name?: string;
|
|
28
|
-
value?: string;
|
|
28
|
+
value?: string | number;
|
|
29
29
|
indeterminate?: boolean;
|
|
30
|
+
icon?: string;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
export const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>> & {
|
|
34
|
+
Group: React.FC<CheckboxGroupProps>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// CheckboxGroup
|
|
38
|
+
export interface CheckboxGroupProps {
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
value?: (string | number)[];
|
|
41
|
+
defaultValue?: (string | number)[];
|
|
42
|
+
onChange?: (values: (string | number)[]) => void;
|
|
43
|
+
orientation?: 'horizontal' | 'vertical';
|
|
44
|
+
label?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
error?: string;
|
|
47
|
+
size?: 'sm' | 'md' | 'lg';
|
|
48
|
+
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber' | 'black';
|
|
49
|
+
variant?: 'simple' | 'card';
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
className?: string;
|
|
30
52
|
}
|
|
31
|
-
export const
|
|
53
|
+
export const CheckboxGroup: React.FC<CheckboxGroupProps>;
|
|
32
54
|
|
|
33
55
|
// DateTimePicker
|
|
34
56
|
export interface DateTimePickerProps {
|
|
@@ -115,19 +137,39 @@ export const Textarea: ForwardRefExoticComponent<TextareaProps & RefAttributes<H
|
|
|
115
137
|
// Radio
|
|
116
138
|
export interface RadioProps {
|
|
117
139
|
checked?: boolean;
|
|
118
|
-
|
|
119
|
-
onChange?: (checked: boolean, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
140
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
120
141
|
label?: string;
|
|
121
142
|
description?: string;
|
|
122
143
|
size?: 'sm' | 'md' | 'lg';
|
|
123
|
-
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber';
|
|
124
|
-
variant?: '
|
|
144
|
+
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber' | 'black';
|
|
145
|
+
variant?: 'simple' | 'card';
|
|
125
146
|
disabled?: boolean;
|
|
126
|
-
|
|
147
|
+
value?: string | number;
|
|
148
|
+
icon?: string;
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
export const Radio: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>> & {
|
|
152
|
+
Group: React.FC<RadioGroupProps>;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// RadioGroup
|
|
156
|
+
export interface RadioGroupProps {
|
|
157
|
+
children?: React.ReactNode;
|
|
158
|
+
value?: string | number;
|
|
159
|
+
defaultValue?: string | number;
|
|
160
|
+
onChange?: (value: string | number) => void;
|
|
127
161
|
name?: string;
|
|
128
|
-
|
|
162
|
+
orientation?: 'horizontal' | 'vertical';
|
|
163
|
+
label?: string;
|
|
164
|
+
description?: string;
|
|
165
|
+
error?: string;
|
|
166
|
+
size?: 'sm' | 'md' | 'lg';
|
|
167
|
+
color?: 'violet' | 'blue' | 'emerald' | 'rose' | 'amber' | 'black';
|
|
168
|
+
variant?: 'simple' | 'card';
|
|
169
|
+
disabled?: boolean;
|
|
170
|
+
className?: string;
|
|
129
171
|
}
|
|
130
|
-
export const
|
|
172
|
+
export const RadioGroup: React.FC<RadioGroupProps>;
|
|
131
173
|
|
|
132
174
|
// Select
|
|
133
175
|
export interface SelectOption {
|