@herca/r-kit 0.0.49 → 0.0.52
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/clients.cjs +379 -58
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +80 -18
- package/dist/clients.d.ts +80 -18
- package/dist/clients.js +374 -58
- package/dist/clients.js.map +1 -1
- package/package.json +1 -1
package/dist/clients.d.cts
CHANGED
|
@@ -12,8 +12,8 @@ import { d as TextVariant, a as ButtonProps } from './button-DEGM0SCk.cjs';
|
|
|
12
12
|
import { DragHandleProps } from '@tiptap/extension-drag-handle-react';
|
|
13
13
|
import { Editor } from '@tiptap/core';
|
|
14
14
|
|
|
15
|
-
type SizeType$
|
|
16
|
-
type ColorType$
|
|
15
|
+
type SizeType$2 = 'sm' | 'md' | 'lg';
|
|
16
|
+
type ColorType$2 = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
17
17
|
type IconType = 'check' | 'minus';
|
|
18
18
|
interface CheckboxProps {
|
|
19
19
|
id?: string;
|
|
@@ -22,8 +22,8 @@ interface CheckboxProps {
|
|
|
22
22
|
defaultChecked?: boolean;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
required?: boolean;
|
|
25
|
-
size?: SizeType$
|
|
26
|
-
color?: ColorType$
|
|
25
|
+
size?: SizeType$2;
|
|
26
|
+
color?: ColorType$2;
|
|
27
27
|
icon?: IconType;
|
|
28
28
|
onCheckedChange?: (checked: boolean) => void;
|
|
29
29
|
className?: string;
|
|
@@ -35,8 +35,8 @@ interface CheckboxGroupProps {
|
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
required?: boolean;
|
|
37
37
|
name?: string;
|
|
38
|
-
size?: SizeType$
|
|
39
|
-
color?: ColorType$
|
|
38
|
+
size?: SizeType$2;
|
|
39
|
+
color?: ColorType$2;
|
|
40
40
|
icon?: IconType;
|
|
41
41
|
className?: string;
|
|
42
42
|
children?: React.ReactNode;
|
|
@@ -46,8 +46,8 @@ interface CheckboxGroupContextValue {
|
|
|
46
46
|
onValueChange?: (value: string[]) => void;
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
name?: string;
|
|
49
|
-
size?: SizeType$
|
|
50
|
-
color?: ColorType$
|
|
49
|
+
size?: SizeType$2;
|
|
50
|
+
color?: ColorType$2;
|
|
51
51
|
icon?: 'check' | 'minus';
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -523,8 +523,9 @@ type UseCalendarHelpersParams = {
|
|
|
523
523
|
};
|
|
524
524
|
disabledDates: Date[];
|
|
525
525
|
dayConfigs: CalendarDayConfig[];
|
|
526
|
+
disabled?: (date: Date) => boolean;
|
|
526
527
|
};
|
|
527
|
-
declare const createCalendarHelpers: ({ mode, value, rangeValue, disabledDates, dayConfigs, }: UseCalendarHelpersParams) => {
|
|
528
|
+
declare const createCalendarHelpers: ({ mode, value, rangeValue, disabledDates, dayConfigs, disabled, }: UseCalendarHelpersParams) => {
|
|
528
529
|
isDateDisabled: (day: CalendarDay) => boolean;
|
|
529
530
|
getDayConfig: (day: CalendarDay) => CalendarDayConfig | undefined;
|
|
530
531
|
isDateSelected: (day: CalendarDay) => boolean;
|
|
@@ -602,6 +603,8 @@ interface CalendarProps {
|
|
|
602
603
|
onMonthChange?: (month: number) => void;
|
|
603
604
|
onYearChange?: (year: number) => void;
|
|
604
605
|
useLimitEvent?: boolean;
|
|
606
|
+
disabled?: (date: Date) => boolean;
|
|
607
|
+
disabledDateClassName?: string;
|
|
605
608
|
}
|
|
606
609
|
type CalendarState = {
|
|
607
610
|
currentMonth: number;
|
|
@@ -629,6 +632,7 @@ interface CalendarGridProps {
|
|
|
629
632
|
backdropOnClick?: (day?: CalendarDay) => void;
|
|
630
633
|
onEventClick?: (event?: CalendarEvent) => void;
|
|
631
634
|
useLimitEvent?: boolean;
|
|
635
|
+
disabledDateClassName?: string;
|
|
632
636
|
}
|
|
633
637
|
interface CalendarDayItemProps {
|
|
634
638
|
day: CalendarDay;
|
|
@@ -640,6 +644,7 @@ interface CalendarDayItemProps {
|
|
|
640
644
|
variant?: CalendarProps['variant'];
|
|
641
645
|
events?: CalendarEvent[];
|
|
642
646
|
backdropOnClick?: (day?: CalendarDay) => void;
|
|
647
|
+
disabledDateClassName?: string;
|
|
643
648
|
}
|
|
644
649
|
interface CalendarEvent {
|
|
645
650
|
title: string;
|
|
@@ -668,7 +673,7 @@ declare const ItemDropdown: ({ active, value, onClick, }: {
|
|
|
668
673
|
onClick: () => void;
|
|
669
674
|
}) => react_jsx_runtime.JSX.Element;
|
|
670
675
|
|
|
671
|
-
declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, useLimitEvent, }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
676
|
+
declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, useLimitEvent, disabled, disabledDateClassName, }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
672
677
|
|
|
673
678
|
declare const getCalendarDays: ({ currentYear, currentMonth, }: GetCalendarDaysProps) => {
|
|
674
679
|
date: number;
|
|
@@ -727,6 +732,9 @@ interface DatePickerProps {
|
|
|
727
732
|
trigger?: ReactNode;
|
|
728
733
|
onOpenChange?: (open: boolean) => void;
|
|
729
734
|
open?: boolean;
|
|
735
|
+
minDate?: Date;
|
|
736
|
+
maxDate?: Date;
|
|
737
|
+
disabledDateClassName?: string;
|
|
730
738
|
calendarProps?: CalendarOverrideProps;
|
|
731
739
|
startDateCalendarProps?: CalendarRangeOverrideProps;
|
|
732
740
|
endDateCalendarProps?: CalendarRangeOverrideProps;
|
|
@@ -738,7 +746,7 @@ interface DatePickerProps {
|
|
|
738
746
|
}
|
|
739
747
|
type DateFormat = 'DD-MM-YYYY' | 'DD/MM/YYYY' | 'DD MMM YYYY' | 'DD MMMM YYYY' | 'YYYY-MM-DD' | 'MM/DD/YYYY' | 'DD-MM-YYYY HH:mm:ss' | 'DD/MM/YYYY HH:mm:ss' | 'DD MMM YYYY HH:mm:ss' | 'DD MMMM YYYY HH:mm:ss' | 'YYYY-MM-DD HH:mm:ss' | 'MM/DD/YYYY HH:mm:ss' | 'DD MMMM YYYY - HH:mm:ss' | 'DD MMM YYYY - HH:mm:ss';
|
|
740
748
|
|
|
741
|
-
declare const DatePicker: ({ format, mode, value: controlledValue, rangeValue: controlledRangeValue, onChange: controlledOnChange, onRangeChange: controlledOnRangeChange, trigger, open, onOpenChange, calendarProps, endDateCalendarProps, startDateCalendarProps, wrapperClassName, size, showController, align, containerClassName, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
749
|
+
declare const DatePicker: ({ format, mode, value: controlledValue, rangeValue: controlledRangeValue, onChange: controlledOnChange, onRangeChange: controlledOnRangeChange, trigger, open, onOpenChange, minDate, maxDate, disabledDateClassName, calendarProps, endDateCalendarProps, startDateCalendarProps, wrapperClassName, size, showController, align, containerClassName, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
742
750
|
|
|
743
751
|
declare const monthsShort: string[];
|
|
744
752
|
declare const monthsFull: string[];
|
|
@@ -759,8 +767,8 @@ interface TextareaProps extends react.ComponentProps<'textarea'> {
|
|
|
759
767
|
}
|
|
760
768
|
declare function Textarea({ label, hint, description, errorMessages, className, required, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
761
769
|
|
|
762
|
-
type SizeType = 'sm' | 'md' | 'lg';
|
|
763
|
-
type ColorType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
770
|
+
type SizeType$1 = 'sm' | 'md' | 'lg';
|
|
771
|
+
type ColorType$1 = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
764
772
|
interface SwitchProps {
|
|
765
773
|
id?: string;
|
|
766
774
|
checked?: boolean;
|
|
@@ -769,8 +777,8 @@ interface SwitchProps {
|
|
|
769
777
|
disabled?: boolean;
|
|
770
778
|
required?: boolean;
|
|
771
779
|
name?: string;
|
|
772
|
-
size?: SizeType;
|
|
773
|
-
color?: ColorType;
|
|
780
|
+
size?: SizeType$1;
|
|
781
|
+
color?: ColorType$1;
|
|
774
782
|
className?: string;
|
|
775
783
|
}
|
|
776
784
|
|
|
@@ -900,6 +908,7 @@ type BaseSelectProps<Extra extends object = object> = {
|
|
|
900
908
|
triggerClassName?: string;
|
|
901
909
|
required?: boolean;
|
|
902
910
|
isSelectOpen?: boolean;
|
|
911
|
+
searchOptions?: string;
|
|
903
912
|
onSearchOptions?: (value: string) => void;
|
|
904
913
|
onOptionsChange?: (value: SelectOption<Extra>[]) => void;
|
|
905
914
|
onOpenChange?: (value: boolean) => void;
|
|
@@ -917,7 +926,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
|
|
|
917
926
|
};
|
|
918
927
|
type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
|
|
919
928
|
|
|
920
|
-
declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, placeholder, isSearchable, isClearable, isDisabled, renderOption, renderValue, className, label, description, hint, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchPlaceholder, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
|
|
929
|
+
declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, placeholder, isSearchable, isClearable, isDisabled, renderOption, renderValue, className, label, description, hint, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchOptions, searchPlaceholder, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
|
|
921
930
|
|
|
922
931
|
interface TabsProps {
|
|
923
932
|
defaultValue?: string;
|
|
@@ -992,6 +1001,10 @@ interface TextEditorProps {
|
|
|
992
1001
|
indent?: boolean;
|
|
993
1002
|
advance?: boolean;
|
|
994
1003
|
};
|
|
1004
|
+
onDownload?: (data: {
|
|
1005
|
+
src?: string;
|
|
1006
|
+
name?: string;
|
|
1007
|
+
}) => void;
|
|
995
1008
|
}
|
|
996
1009
|
interface ToolbarButtonProps {
|
|
997
1010
|
icon?: IconNameProps;
|
|
@@ -1052,6 +1065,55 @@ interface AttachmentField {
|
|
|
1052
1065
|
};
|
|
1053
1066
|
}
|
|
1054
1067
|
|
|
1055
|
-
declare function TextEditor({ ui, field, toolbar, editor: editorProps, }: TextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
1068
|
+
declare function TextEditor({ ui, field, toolbar, editor: editorProps, onDownload, }: TextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
1069
|
+
|
|
1070
|
+
type SizeType = 'sm' | 'md' | 'lg';
|
|
1071
|
+
type ColorType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
1072
|
+
interface RadioProps {
|
|
1073
|
+
id?: string;
|
|
1074
|
+
name?: string;
|
|
1075
|
+
value: string;
|
|
1076
|
+
checked?: boolean;
|
|
1077
|
+
disabled?: boolean;
|
|
1078
|
+
required?: boolean;
|
|
1079
|
+
size?: SizeType;
|
|
1080
|
+
color?: ColorType;
|
|
1081
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1082
|
+
className?: string;
|
|
1083
|
+
}
|
|
1084
|
+
interface RadioGroupProps {
|
|
1085
|
+
value?: string;
|
|
1086
|
+
defaultValue?: string;
|
|
1087
|
+
onValueChange?: (value: string) => void;
|
|
1088
|
+
disabled?: boolean;
|
|
1089
|
+
required?: boolean;
|
|
1090
|
+
name?: string;
|
|
1091
|
+
size?: SizeType;
|
|
1092
|
+
color?: ColorType;
|
|
1093
|
+
className?: string;
|
|
1094
|
+
children: React.ReactNode;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
declare const RadioGroup: react__default.FC<RadioGroupProps & {
|
|
1098
|
+
label?: string;
|
|
1099
|
+
hint?: string;
|
|
1100
|
+
description?: string;
|
|
1101
|
+
errorMessages?: string | string[];
|
|
1102
|
+
direction?: 'horizontal' | 'vertical';
|
|
1103
|
+
}>;
|
|
1104
|
+
declare const BaseRadio: react__default.FC<RadioProps>;
|
|
1105
|
+
declare const Radio: react__default.FC<RadioProps & {
|
|
1106
|
+
label?: string;
|
|
1107
|
+
description?: string;
|
|
1108
|
+
}>;
|
|
1109
|
+
|
|
1110
|
+
declare const RadioVariants: (props?: ({
|
|
1111
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1112
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
|
|
1113
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1114
|
+
declare const RadioIndicatorVariants: (props?: ({
|
|
1115
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1116
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
|
|
1117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1056
1118
|
|
|
1057
|
-
export { type AttachmentField, BaseCheckbox, type BaseOption, BaseSwitch, ButtonDropdown, type ButtonDropdownProps, ButtonGroup, ButtonGroupItem, type ButtonGroupProps, type ButtonIconProps, ButtonNavigator, Calendar, type CalendarBaseProps, type CalendarDay, type CalendarDayConfig, type CalendarDayItemProps, type CalendarEvent, type CalendarGridProps, type CalendarOverrideProps, type CalendarProps, type CalendarRangeOverrideProps, type CalendarState, type CalendarStyleConfig, type CalendarTypes, Checkbox, CheckboxGroup, type CheckboxGroupContextValue, type CheckboxGroupProps, CheckboxIndicatorVariants, type CheckboxProps, CheckboxVariants, Chip, type ChipArrayProps, ChipContext, type ChipContextValue, ChipGroup, type ChipOptionProps, type ChipProps, type ChipSelectedProps, type ChipValue, type ChipVariants, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerButtonProps, type ColorType$
|
|
1119
|
+
export { type AttachmentField, BaseCheckbox, type BaseOption, BaseRadio, BaseSwitch, ButtonDropdown, type ButtonDropdownProps, ButtonGroup, ButtonGroupItem, type ButtonGroupProps, type ButtonIconProps, ButtonNavigator, Calendar, type CalendarBaseProps, type CalendarDay, type CalendarDayConfig, type CalendarDayItemProps, type CalendarEvent, type CalendarGridProps, type CalendarOverrideProps, type CalendarProps, type CalendarRangeOverrideProps, type CalendarState, type CalendarStyleConfig, type CalendarTypes, Checkbox, CheckboxGroup, type CheckboxGroupContextValue, type CheckboxGroupProps, CheckboxIndicatorVariants, type CheckboxProps, CheckboxVariants, Chip, type ChipArrayProps, ChipContext, type ChipContextValue, ChipGroup, type ChipOptionProps, type ChipProps, type ChipSelectedProps, type ChipValue, type ChipVariants, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerButtonProps, type ColorType$2 as ColorType, type ColorVariantType, Counter, type CounterControllerProps, type CounterProps, type DateFormat, DatePicker, type DatePickerMode, type DatePickerProps, type DateRange, type DateRangeProps, type DotConfig, Dropdown, DropdownContent, DropdownItem, type DropdownState, DropdownTrigger, type FileItem, FormDescription, type FormDescriptionProps, FormErrorMessage, type FormErrorMessageProps, FormErrorMessages, type FormErrorMessagesProps, FormField, type FormFieldProps, FormHint, type FormHintProps, FormLabel, type FormLabelProps, type FormSizeType, type GetCalendarDaysProps, type HeadingLevel, type IconType, type ImageForm, Input, InputFile, type InputFileProps, type InputFileRef, InputOTP, type InputOTPProps, type InputProps, type InputVariantProps, ItemDropdown, type ListItemType, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, ModalPreviewAttachment, ModalTitle, type PlayerProps, PreviewItem, type PreviewItemProps, Radio, RadioGroup, RadioIndicatorVariants, RadioVariants, Select, type SelectOption, type SelectProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarContext, type SidebarContextProps, SidebarFooter, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuGroup, SidebarMenuItem, SidebarProvider, SidebarTrigger, type SizeType$2 as SizeType, Switch, SwitchThumbVariants, SwitchVariants, Table, type TableAction, TableBody, type TableBodyProps, TableCell, TableCellHead, type TableCellHeadProps, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TablePagination, type TablePaginationProps, type TableRootProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextAlignValue, TextEditor, type TextEditorProps, Textarea, type TextareaProps, ToastProvider, type ToolbarButtonProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadConfig, type UploadStatus, type UploadedFile, chipVariants, formatDateLocal, formatDateToString, generatePages, getCalendarDays, getFormatConfig, getWeekEventSegments, handleDecrement, handleIncrement, handleInputChange, handleKeyDown, inputVariants, isSameDate, isToday, monthsFull, monthsShort, normalize, parseLocalDate, parseMonthName, toDateOnly, useCopy, useIsMobile, useSidebar, useToast };
|
package/dist/clients.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { d as TextVariant, a as ButtonProps } from './button-DEGM0SCk.js';
|
|
|
12
12
|
import { DragHandleProps } from '@tiptap/extension-drag-handle-react';
|
|
13
13
|
import { Editor } from '@tiptap/core';
|
|
14
14
|
|
|
15
|
-
type SizeType$
|
|
16
|
-
type ColorType$
|
|
15
|
+
type SizeType$2 = 'sm' | 'md' | 'lg';
|
|
16
|
+
type ColorType$2 = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
17
17
|
type IconType = 'check' | 'minus';
|
|
18
18
|
interface CheckboxProps {
|
|
19
19
|
id?: string;
|
|
@@ -22,8 +22,8 @@ interface CheckboxProps {
|
|
|
22
22
|
defaultChecked?: boolean;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
required?: boolean;
|
|
25
|
-
size?: SizeType$
|
|
26
|
-
color?: ColorType$
|
|
25
|
+
size?: SizeType$2;
|
|
26
|
+
color?: ColorType$2;
|
|
27
27
|
icon?: IconType;
|
|
28
28
|
onCheckedChange?: (checked: boolean) => void;
|
|
29
29
|
className?: string;
|
|
@@ -35,8 +35,8 @@ interface CheckboxGroupProps {
|
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
required?: boolean;
|
|
37
37
|
name?: string;
|
|
38
|
-
size?: SizeType$
|
|
39
|
-
color?: ColorType$
|
|
38
|
+
size?: SizeType$2;
|
|
39
|
+
color?: ColorType$2;
|
|
40
40
|
icon?: IconType;
|
|
41
41
|
className?: string;
|
|
42
42
|
children?: React.ReactNode;
|
|
@@ -46,8 +46,8 @@ interface CheckboxGroupContextValue {
|
|
|
46
46
|
onValueChange?: (value: string[]) => void;
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
name?: string;
|
|
49
|
-
size?: SizeType$
|
|
50
|
-
color?: ColorType$
|
|
49
|
+
size?: SizeType$2;
|
|
50
|
+
color?: ColorType$2;
|
|
51
51
|
icon?: 'check' | 'minus';
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -523,8 +523,9 @@ type UseCalendarHelpersParams = {
|
|
|
523
523
|
};
|
|
524
524
|
disabledDates: Date[];
|
|
525
525
|
dayConfigs: CalendarDayConfig[];
|
|
526
|
+
disabled?: (date: Date) => boolean;
|
|
526
527
|
};
|
|
527
|
-
declare const createCalendarHelpers: ({ mode, value, rangeValue, disabledDates, dayConfigs, }: UseCalendarHelpersParams) => {
|
|
528
|
+
declare const createCalendarHelpers: ({ mode, value, rangeValue, disabledDates, dayConfigs, disabled, }: UseCalendarHelpersParams) => {
|
|
528
529
|
isDateDisabled: (day: CalendarDay) => boolean;
|
|
529
530
|
getDayConfig: (day: CalendarDay) => CalendarDayConfig | undefined;
|
|
530
531
|
isDateSelected: (day: CalendarDay) => boolean;
|
|
@@ -602,6 +603,8 @@ interface CalendarProps {
|
|
|
602
603
|
onMonthChange?: (month: number) => void;
|
|
603
604
|
onYearChange?: (year: number) => void;
|
|
604
605
|
useLimitEvent?: boolean;
|
|
606
|
+
disabled?: (date: Date) => boolean;
|
|
607
|
+
disabledDateClassName?: string;
|
|
605
608
|
}
|
|
606
609
|
type CalendarState = {
|
|
607
610
|
currentMonth: number;
|
|
@@ -629,6 +632,7 @@ interface CalendarGridProps {
|
|
|
629
632
|
backdropOnClick?: (day?: CalendarDay) => void;
|
|
630
633
|
onEventClick?: (event?: CalendarEvent) => void;
|
|
631
634
|
useLimitEvent?: boolean;
|
|
635
|
+
disabledDateClassName?: string;
|
|
632
636
|
}
|
|
633
637
|
interface CalendarDayItemProps {
|
|
634
638
|
day: CalendarDay;
|
|
@@ -640,6 +644,7 @@ interface CalendarDayItemProps {
|
|
|
640
644
|
variant?: CalendarProps['variant'];
|
|
641
645
|
events?: CalendarEvent[];
|
|
642
646
|
backdropOnClick?: (day?: CalendarDay) => void;
|
|
647
|
+
disabledDateClassName?: string;
|
|
643
648
|
}
|
|
644
649
|
interface CalendarEvent {
|
|
645
650
|
title: string;
|
|
@@ -668,7 +673,7 @@ declare const ItemDropdown: ({ active, value, onClick, }: {
|
|
|
668
673
|
onClick: () => void;
|
|
669
674
|
}) => react_jsx_runtime.JSX.Element;
|
|
670
675
|
|
|
671
|
-
declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, useLimitEvent, }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
676
|
+
declare const Calendar: ({ showNavigator, showHeader, value, onChange, disabledDates, dayConfigs, defaultMonth, defaultYear, styleConfig, wrapperClassname, weekWrapperClassname, dayWrapperClassname, daysOfWeek, months, showNextNavigator, showPrevNavigator, mode, rangeValue, size, variant, events, showCalendarTooltip, type, onTypeChange, onEventClick, backdropOnClick, onMonthChange, onYearChange, showDefaultController, useLimitEvent, disabled, disabledDateClassName, }: CalendarProps) => react_jsx_runtime.JSX.Element;
|
|
672
677
|
|
|
673
678
|
declare const getCalendarDays: ({ currentYear, currentMonth, }: GetCalendarDaysProps) => {
|
|
674
679
|
date: number;
|
|
@@ -727,6 +732,9 @@ interface DatePickerProps {
|
|
|
727
732
|
trigger?: ReactNode;
|
|
728
733
|
onOpenChange?: (open: boolean) => void;
|
|
729
734
|
open?: boolean;
|
|
735
|
+
minDate?: Date;
|
|
736
|
+
maxDate?: Date;
|
|
737
|
+
disabledDateClassName?: string;
|
|
730
738
|
calendarProps?: CalendarOverrideProps;
|
|
731
739
|
startDateCalendarProps?: CalendarRangeOverrideProps;
|
|
732
740
|
endDateCalendarProps?: CalendarRangeOverrideProps;
|
|
@@ -738,7 +746,7 @@ interface DatePickerProps {
|
|
|
738
746
|
}
|
|
739
747
|
type DateFormat = 'DD-MM-YYYY' | 'DD/MM/YYYY' | 'DD MMM YYYY' | 'DD MMMM YYYY' | 'YYYY-MM-DD' | 'MM/DD/YYYY' | 'DD-MM-YYYY HH:mm:ss' | 'DD/MM/YYYY HH:mm:ss' | 'DD MMM YYYY HH:mm:ss' | 'DD MMMM YYYY HH:mm:ss' | 'YYYY-MM-DD HH:mm:ss' | 'MM/DD/YYYY HH:mm:ss' | 'DD MMMM YYYY - HH:mm:ss' | 'DD MMM YYYY - HH:mm:ss';
|
|
740
748
|
|
|
741
|
-
declare const DatePicker: ({ format, mode, value: controlledValue, rangeValue: controlledRangeValue, onChange: controlledOnChange, onRangeChange: controlledOnRangeChange, trigger, open, onOpenChange, calendarProps, endDateCalendarProps, startDateCalendarProps, wrapperClassName, size, showController, align, containerClassName, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
749
|
+
declare const DatePicker: ({ format, mode, value: controlledValue, rangeValue: controlledRangeValue, onChange: controlledOnChange, onRangeChange: controlledOnRangeChange, trigger, open, onOpenChange, minDate, maxDate, disabledDateClassName, calendarProps, endDateCalendarProps, startDateCalendarProps, wrapperClassName, size, showController, align, containerClassName, }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
742
750
|
|
|
743
751
|
declare const monthsShort: string[];
|
|
744
752
|
declare const monthsFull: string[];
|
|
@@ -759,8 +767,8 @@ interface TextareaProps extends react.ComponentProps<'textarea'> {
|
|
|
759
767
|
}
|
|
760
768
|
declare function Textarea({ label, hint, description, errorMessages, className, required, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
761
769
|
|
|
762
|
-
type SizeType = 'sm' | 'md' | 'lg';
|
|
763
|
-
type ColorType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
770
|
+
type SizeType$1 = 'sm' | 'md' | 'lg';
|
|
771
|
+
type ColorType$1 = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
764
772
|
interface SwitchProps {
|
|
765
773
|
id?: string;
|
|
766
774
|
checked?: boolean;
|
|
@@ -769,8 +777,8 @@ interface SwitchProps {
|
|
|
769
777
|
disabled?: boolean;
|
|
770
778
|
required?: boolean;
|
|
771
779
|
name?: string;
|
|
772
|
-
size?: SizeType;
|
|
773
|
-
color?: ColorType;
|
|
780
|
+
size?: SizeType$1;
|
|
781
|
+
color?: ColorType$1;
|
|
774
782
|
className?: string;
|
|
775
783
|
}
|
|
776
784
|
|
|
@@ -900,6 +908,7 @@ type BaseSelectProps<Extra extends object = object> = {
|
|
|
900
908
|
triggerClassName?: string;
|
|
901
909
|
required?: boolean;
|
|
902
910
|
isSelectOpen?: boolean;
|
|
911
|
+
searchOptions?: string;
|
|
903
912
|
onSearchOptions?: (value: string) => void;
|
|
904
913
|
onOptionsChange?: (value: SelectOption<Extra>[]) => void;
|
|
905
914
|
onOpenChange?: (value: boolean) => void;
|
|
@@ -917,7 +926,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
|
|
|
917
926
|
};
|
|
918
927
|
type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
|
|
919
928
|
|
|
920
|
-
declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, placeholder, isSearchable, isClearable, isDisabled, renderOption, renderValue, className, label, description, hint, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchPlaceholder, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
|
|
929
|
+
declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, placeholder, isSearchable, isClearable, isDisabled, renderOption, renderValue, className, label, description, hint, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchOptions, searchPlaceholder, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
|
|
921
930
|
|
|
922
931
|
interface TabsProps {
|
|
923
932
|
defaultValue?: string;
|
|
@@ -992,6 +1001,10 @@ interface TextEditorProps {
|
|
|
992
1001
|
indent?: boolean;
|
|
993
1002
|
advance?: boolean;
|
|
994
1003
|
};
|
|
1004
|
+
onDownload?: (data: {
|
|
1005
|
+
src?: string;
|
|
1006
|
+
name?: string;
|
|
1007
|
+
}) => void;
|
|
995
1008
|
}
|
|
996
1009
|
interface ToolbarButtonProps {
|
|
997
1010
|
icon?: IconNameProps;
|
|
@@ -1052,6 +1065,55 @@ interface AttachmentField {
|
|
|
1052
1065
|
};
|
|
1053
1066
|
}
|
|
1054
1067
|
|
|
1055
|
-
declare function TextEditor({ ui, field, toolbar, editor: editorProps, }: TextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
1068
|
+
declare function TextEditor({ ui, field, toolbar, editor: editorProps, onDownload, }: TextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
1069
|
+
|
|
1070
|
+
type SizeType = 'sm' | 'md' | 'lg';
|
|
1071
|
+
type ColorType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'orange' | 'purple' | 'gray';
|
|
1072
|
+
interface RadioProps {
|
|
1073
|
+
id?: string;
|
|
1074
|
+
name?: string;
|
|
1075
|
+
value: string;
|
|
1076
|
+
checked?: boolean;
|
|
1077
|
+
disabled?: boolean;
|
|
1078
|
+
required?: boolean;
|
|
1079
|
+
size?: SizeType;
|
|
1080
|
+
color?: ColorType;
|
|
1081
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1082
|
+
className?: string;
|
|
1083
|
+
}
|
|
1084
|
+
interface RadioGroupProps {
|
|
1085
|
+
value?: string;
|
|
1086
|
+
defaultValue?: string;
|
|
1087
|
+
onValueChange?: (value: string) => void;
|
|
1088
|
+
disabled?: boolean;
|
|
1089
|
+
required?: boolean;
|
|
1090
|
+
name?: string;
|
|
1091
|
+
size?: SizeType;
|
|
1092
|
+
color?: ColorType;
|
|
1093
|
+
className?: string;
|
|
1094
|
+
children: React.ReactNode;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
declare const RadioGroup: react__default.FC<RadioGroupProps & {
|
|
1098
|
+
label?: string;
|
|
1099
|
+
hint?: string;
|
|
1100
|
+
description?: string;
|
|
1101
|
+
errorMessages?: string | string[];
|
|
1102
|
+
direction?: 'horizontal' | 'vertical';
|
|
1103
|
+
}>;
|
|
1104
|
+
declare const BaseRadio: react__default.FC<RadioProps>;
|
|
1105
|
+
declare const Radio: react__default.FC<RadioProps & {
|
|
1106
|
+
label?: string;
|
|
1107
|
+
description?: string;
|
|
1108
|
+
}>;
|
|
1109
|
+
|
|
1110
|
+
declare const RadioVariants: (props?: ({
|
|
1111
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1112
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
|
|
1113
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1114
|
+
declare const RadioIndicatorVariants: (props?: ({
|
|
1115
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1116
|
+
color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
|
|
1117
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1056
1118
|
|
|
1057
|
-
export { type AttachmentField, BaseCheckbox, type BaseOption, BaseSwitch, ButtonDropdown, type ButtonDropdownProps, ButtonGroup, ButtonGroupItem, type ButtonGroupProps, type ButtonIconProps, ButtonNavigator, Calendar, type CalendarBaseProps, type CalendarDay, type CalendarDayConfig, type CalendarDayItemProps, type CalendarEvent, type CalendarGridProps, type CalendarOverrideProps, type CalendarProps, type CalendarRangeOverrideProps, type CalendarState, type CalendarStyleConfig, type CalendarTypes, Checkbox, CheckboxGroup, type CheckboxGroupContextValue, type CheckboxGroupProps, CheckboxIndicatorVariants, type CheckboxProps, CheckboxVariants, Chip, type ChipArrayProps, ChipContext, type ChipContextValue, ChipGroup, type ChipOptionProps, type ChipProps, type ChipSelectedProps, type ChipValue, type ChipVariants, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerButtonProps, type ColorType$
|
|
1119
|
+
export { type AttachmentField, BaseCheckbox, type BaseOption, BaseRadio, BaseSwitch, ButtonDropdown, type ButtonDropdownProps, ButtonGroup, ButtonGroupItem, type ButtonGroupProps, type ButtonIconProps, ButtonNavigator, Calendar, type CalendarBaseProps, type CalendarDay, type CalendarDayConfig, type CalendarDayItemProps, type CalendarEvent, type CalendarGridProps, type CalendarOverrideProps, type CalendarProps, type CalendarRangeOverrideProps, type CalendarState, type CalendarStyleConfig, type CalendarTypes, Checkbox, CheckboxGroup, type CheckboxGroupContextValue, type CheckboxGroupProps, CheckboxIndicatorVariants, type CheckboxProps, CheckboxVariants, Chip, type ChipArrayProps, ChipContext, type ChipContextValue, ChipGroup, type ChipOptionProps, type ChipProps, type ChipSelectedProps, type ChipValue, type ChipVariants, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerButtonProps, type ColorType$2 as ColorType, type ColorVariantType, Counter, type CounterControllerProps, type CounterProps, type DateFormat, DatePicker, type DatePickerMode, type DatePickerProps, type DateRange, type DateRangeProps, type DotConfig, Dropdown, DropdownContent, DropdownItem, type DropdownState, DropdownTrigger, type FileItem, FormDescription, type FormDescriptionProps, FormErrorMessage, type FormErrorMessageProps, FormErrorMessages, type FormErrorMessagesProps, FormField, type FormFieldProps, FormHint, type FormHintProps, FormLabel, type FormLabelProps, type FormSizeType, type GetCalendarDaysProps, type HeadingLevel, type IconType, type ImageForm, Input, InputFile, type InputFileProps, type InputFileRef, InputOTP, type InputOTPProps, type InputProps, type InputVariantProps, ItemDropdown, type ListItemType, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, ModalPreviewAttachment, ModalTitle, type PlayerProps, PreviewItem, type PreviewItemProps, Radio, RadioGroup, RadioIndicatorVariants, RadioVariants, Select, type SelectOption, type SelectProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarContext, type SidebarContextProps, SidebarFooter, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuGroup, SidebarMenuItem, SidebarProvider, SidebarTrigger, type SizeType$2 as SizeType, Switch, SwitchThumbVariants, SwitchVariants, Table, type TableAction, TableBody, type TableBodyProps, TableCell, TableCellHead, type TableCellHeadProps, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TablePagination, type TablePaginationProps, type TableRootProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextAlignValue, TextEditor, type TextEditorProps, Textarea, type TextareaProps, ToastProvider, type ToolbarButtonProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UploadConfig, type UploadStatus, type UploadedFile, chipVariants, formatDateLocal, formatDateToString, generatePages, getCalendarDays, getFormatConfig, getWeekEventSegments, handleDecrement, handleIncrement, handleInputChange, handleKeyDown, inputVariants, isSameDate, isToday, monthsFull, monthsShort, normalize, parseLocalDate, parseMonthName, toDateOnly, useCopy, useIsMobile, useSidebar, useToast };
|