@marcoschwartz/lite-ui 0.7.1 → 0.8.0
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 +31 -5
- package/dist/index.d.ts +31 -5
- package/dist/index.js +853 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +852 -185
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -23,6 +23,9 @@ interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'size'
|
|
|
23
23
|
value?: string;
|
|
24
24
|
defaultValue?: string;
|
|
25
25
|
onChange?: (value: string) => void;
|
|
26
|
+
label?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
helperText?: string;
|
|
26
29
|
}
|
|
27
30
|
declare const Select: React.FC<SelectProps>;
|
|
28
31
|
|
|
@@ -204,12 +207,19 @@ interface PaginationProps {
|
|
|
204
207
|
}
|
|
205
208
|
declare const Pagination: React.FC<PaginationProps>;
|
|
206
209
|
|
|
207
|
-
interface DatePickerProps
|
|
210
|
+
interface DatePickerProps {
|
|
208
211
|
label?: string;
|
|
209
212
|
error?: string;
|
|
210
213
|
helperText?: string;
|
|
214
|
+
value?: Date;
|
|
215
|
+
onChange?: (date: Date) => void;
|
|
216
|
+
minDate?: Date;
|
|
217
|
+
maxDate?: Date;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
className?: string;
|
|
220
|
+
placeholder?: string;
|
|
211
221
|
}
|
|
212
|
-
declare const DatePicker: React.
|
|
222
|
+
declare const DatePicker: React.FC<DatePickerProps>;
|
|
213
223
|
|
|
214
224
|
interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
215
225
|
label?: string;
|
|
@@ -218,12 +228,28 @@ interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
|
|
|
218
228
|
}
|
|
219
229
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
220
230
|
|
|
221
|
-
interface DateTimePickerProps
|
|
231
|
+
interface DateTimePickerProps {
|
|
222
232
|
label?: string;
|
|
223
233
|
error?: string;
|
|
224
234
|
helperText?: string;
|
|
235
|
+
value?: Date;
|
|
236
|
+
onChange?: (date: Date) => void;
|
|
237
|
+
minDate?: Date;
|
|
238
|
+
maxDate?: Date;
|
|
239
|
+
disabled?: boolean;
|
|
240
|
+
className?: string;
|
|
241
|
+
placeholder?: string;
|
|
242
|
+
}
|
|
243
|
+
declare const DateTimePicker: React.FC<DateTimePickerProps>;
|
|
244
|
+
|
|
245
|
+
interface CalendarProps {
|
|
246
|
+
value?: Date;
|
|
247
|
+
onChange?: (date: Date) => void;
|
|
248
|
+
minDate?: Date;
|
|
249
|
+
maxDate?: Date;
|
|
250
|
+
className?: string;
|
|
225
251
|
}
|
|
226
|
-
declare const
|
|
252
|
+
declare const Calendar: React.FC<CalendarProps>;
|
|
227
253
|
|
|
228
254
|
interface RadioOption {
|
|
229
255
|
value: string;
|
|
@@ -490,4 +516,4 @@ declare const YouTubeIcon: IconComponent;
|
|
|
490
516
|
|
|
491
517
|
declare const SlackIcon: IconComponent;
|
|
492
518
|
|
|
493
|
-
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, AppShell, type AppShellProps, AppleIcon, Avatar, type AvatarProps, Badge, type BadgeProps, BellIcon, Button, type ButtonProps, type ButtonTheme, CalendarIcon, CameraIcon, Card, type CardProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronRightIcon, CloseIcon, type ColorMode, type Column, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, FacebookIcon, FileUpload, type FileUploadProps, GitHubIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SlackIcon, Slider, type SliderProps, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, type Tab, Table, type TableProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|
|
519
|
+
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, AppShell, type AppShellProps, AppleIcon, Avatar, type AvatarProps, Badge, type BadgeProps, BellIcon, Button, type ButtonProps, type ButtonTheme, Calendar, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronRightIcon, CloseIcon, type ColorMode, type Column, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, FacebookIcon, FileUpload, type FileUploadProps, GitHubIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SlackIcon, Slider, type SliderProps, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, type Tab, Table, type TableProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'size'
|
|
|
23
23
|
value?: string;
|
|
24
24
|
defaultValue?: string;
|
|
25
25
|
onChange?: (value: string) => void;
|
|
26
|
+
label?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
helperText?: string;
|
|
26
29
|
}
|
|
27
30
|
declare const Select: React.FC<SelectProps>;
|
|
28
31
|
|
|
@@ -204,12 +207,19 @@ interface PaginationProps {
|
|
|
204
207
|
}
|
|
205
208
|
declare const Pagination: React.FC<PaginationProps>;
|
|
206
209
|
|
|
207
|
-
interface DatePickerProps
|
|
210
|
+
interface DatePickerProps {
|
|
208
211
|
label?: string;
|
|
209
212
|
error?: string;
|
|
210
213
|
helperText?: string;
|
|
214
|
+
value?: Date;
|
|
215
|
+
onChange?: (date: Date) => void;
|
|
216
|
+
minDate?: Date;
|
|
217
|
+
maxDate?: Date;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
className?: string;
|
|
220
|
+
placeholder?: string;
|
|
211
221
|
}
|
|
212
|
-
declare const DatePicker: React.
|
|
222
|
+
declare const DatePicker: React.FC<DatePickerProps>;
|
|
213
223
|
|
|
214
224
|
interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
215
225
|
label?: string;
|
|
@@ -218,12 +228,28 @@ interface TimePickerProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
|
|
|
218
228
|
}
|
|
219
229
|
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLInputElement>>;
|
|
220
230
|
|
|
221
|
-
interface DateTimePickerProps
|
|
231
|
+
interface DateTimePickerProps {
|
|
222
232
|
label?: string;
|
|
223
233
|
error?: string;
|
|
224
234
|
helperText?: string;
|
|
235
|
+
value?: Date;
|
|
236
|
+
onChange?: (date: Date) => void;
|
|
237
|
+
minDate?: Date;
|
|
238
|
+
maxDate?: Date;
|
|
239
|
+
disabled?: boolean;
|
|
240
|
+
className?: string;
|
|
241
|
+
placeholder?: string;
|
|
242
|
+
}
|
|
243
|
+
declare const DateTimePicker: React.FC<DateTimePickerProps>;
|
|
244
|
+
|
|
245
|
+
interface CalendarProps {
|
|
246
|
+
value?: Date;
|
|
247
|
+
onChange?: (date: Date) => void;
|
|
248
|
+
minDate?: Date;
|
|
249
|
+
maxDate?: Date;
|
|
250
|
+
className?: string;
|
|
225
251
|
}
|
|
226
|
-
declare const
|
|
252
|
+
declare const Calendar: React.FC<CalendarProps>;
|
|
227
253
|
|
|
228
254
|
interface RadioOption {
|
|
229
255
|
value: string;
|
|
@@ -490,4 +516,4 @@ declare const YouTubeIcon: IconComponent;
|
|
|
490
516
|
|
|
491
517
|
declare const SlackIcon: IconComponent;
|
|
492
518
|
|
|
493
|
-
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, AppShell, type AppShellProps, AppleIcon, Avatar, type AvatarProps, Badge, type BadgeProps, BellIcon, Button, type ButtonProps, type ButtonTheme, CalendarIcon, CameraIcon, Card, type CardProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronRightIcon, CloseIcon, type ColorMode, type Column, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, FacebookIcon, FileUpload, type FileUploadProps, GitHubIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SlackIcon, Slider, type SliderProps, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, type Tab, Table, type TableProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|
|
519
|
+
export { ActionMenu, type ActionMenuItem, type ActionMenuProps, Alert, type AlertProps, AppShell, type AppShellProps, AppleIcon, Avatar, type AvatarProps, Badge, type BadgeProps, BellIcon, Button, type ButtonProps, type ButtonTheme, Calendar, CalendarIcon, type CalendarProps, CameraIcon, Card, type CardProps, CheckIcon, Checkbox, type CheckboxProps, ChevronDownIcon, ChevronRightIcon, CloseIcon, type ColorMode, type Column, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, EditIcon, FacebookIcon, FileUpload, type FileUploadProps, GitHubIcon, GoogleIcon, HeartIcon, HomeIcon, type IconComponent, type IconProps, LinkedInIcon, LockIcon, MailIcon, MenuIcon, Modal, type ModalProps, Navbar, type NavbarProps, Pagination, type PaginationProps, PlusIcon, ProgressBar, type ProgressBarProps, Radio, type RadioOption, type RadioProps, SearchIcon, Select, type SelectOption, type SelectProps, type SelectTheme, SettingsIcon, Sidebar, type SidebarContextValue, type SidebarProps, SidebarProvider, type SidebarProviderProps, SlackIcon, Slider, type SliderProps, Spinner, type SpinnerProps, StarIcon, type Step, Stepper, type StepperProps, type Tab, Table, type TableProps, Tabs, type TabsProps, TextInput, type TextInputProps, Textarea, type TextareaProps, type Theme, type ThemeName, ThemeProvider, TimePicker, type TimePickerProps, type Toast, ToastProvider, type ToastProviderProps, Toggle, type ToggleProps, TrashIcon, TwitterIcon, UploadIcon, UserIcon, YouTubeIcon, getThemeScript, themeScript, themes, toast, useSidebar, useTheme, useToast };
|