astrum-ui 0.1.1 → 0.1.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.
- package/dist/Avatar/Avatar.css +4 -3
- package/dist/Checkbox/Checkbox.css +0 -17
- package/dist/DatePicker/DatePicker.css +326 -0
- package/dist/FileUpload/FileUpload.css +69 -37
- package/dist/Input/Input.css +5 -16
- package/dist/InputCode/InputCode.css +4 -8
- package/dist/Select/Select.css +69 -58
- package/dist/index.css +295 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +589 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +593 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & Reac
|
|
|
35
35
|
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange"> {
|
|
36
36
|
checked?: boolean;
|
|
37
37
|
indeterminate?: boolean;
|
|
38
|
-
size?: "s" | "m";
|
|
39
38
|
onChange?: (checked: boolean) => void;
|
|
40
39
|
className?: string;
|
|
41
40
|
}
|
|
@@ -81,15 +80,14 @@ declare const InputCode: React.ForwardRefExoticComponent<InputCodeProps & React.
|
|
|
81
80
|
interface SelectOption {
|
|
82
81
|
value: string;
|
|
83
82
|
label: React.ReactNode;
|
|
83
|
+
secondaryLabel?: React.ReactNode;
|
|
84
84
|
disabled?: boolean;
|
|
85
85
|
}
|
|
86
86
|
interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
87
|
-
label?: React.ReactNode;
|
|
88
87
|
error?: string;
|
|
89
88
|
required?: boolean;
|
|
90
89
|
options: SelectOption[];
|
|
91
90
|
placeholder?: string;
|
|
92
|
-
size?: "s" | "m" | "l";
|
|
93
91
|
className?: string;
|
|
94
92
|
}
|
|
95
93
|
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -116,6 +114,8 @@ declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & Reac
|
|
|
116
114
|
interface FileItemProps {
|
|
117
115
|
name: string;
|
|
118
116
|
size?: number | string;
|
|
117
|
+
file?: File;
|
|
118
|
+
previewUrl?: string | null;
|
|
119
119
|
icon?: React.ReactNode;
|
|
120
120
|
onRemove?: () => void;
|
|
121
121
|
className?: string;
|
|
@@ -133,4 +133,23 @@ interface AvatarProps {
|
|
|
133
133
|
}
|
|
134
134
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
type DateRange = [Date | null, Date | null];
|
|
137
|
+
interface DatePickerProps {
|
|
138
|
+
placeholder?: string;
|
|
139
|
+
placeholderFrom?: string;
|
|
140
|
+
placeholderTo?: string;
|
|
141
|
+
value?: Date | null | DateRange;
|
|
142
|
+
defaultValue?: Date | null | DateRange;
|
|
143
|
+
onChange?: ((date: Date | null) => void) | ((range: DateRange) => void);
|
|
144
|
+
error?: string;
|
|
145
|
+
required?: boolean;
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
showTime?: boolean;
|
|
148
|
+
timeLabel?: string;
|
|
149
|
+
range?: boolean;
|
|
150
|
+
className?: string;
|
|
151
|
+
id?: string;
|
|
152
|
+
}
|
|
153
|
+
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
154
|
+
|
|
155
|
+
export { Avatar, type AvatarProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Chips, type ChipsProps, ColorPicker, type ColorPickerProps, DatePicker, type DatePickerProps, FileItem, type FileItemProps, FileUpload, type FileUploadProps, Input, InputCode, type InputCodeProps, type InputProps, type InputSize, type InputType, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, type SelectOption, type SelectProps, Toggler, type TogglerProps };
|