@herca/r-kit 0.0.72 → 0.0.74

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.
@@ -245,7 +245,7 @@ declare const modalVariants: (props?: ({
245
245
  state?: "open" | "closed" | null | undefined;
246
246
  } & class_variance_authority_types.ClassProp) | undefined) => string;
247
247
  declare const modalOverlayVariants: (props?: ({
248
- position?: "center" | "top" | "bottom" | null | undefined;
248
+ position?: "center" | "bottom" | "top" | null | undefined;
249
249
  state?: "open" | "closed" | null | undefined;
250
250
  } & class_variance_authority_types.ClassProp) | undefined) => string;
251
251
  type modalOverlayVariantsProps = VariantProps<typeof modalOverlayVariants>;
@@ -900,6 +900,7 @@ interface FormFieldProps {
900
900
  htmlFor?: string;
901
901
  className?: string;
902
902
  children: React.ReactNode;
903
+ tooltip?: string;
903
904
  }
904
905
 
905
906
  declare const FormDescription: React.FC<FormDescriptionProps>;
@@ -916,20 +917,33 @@ declare const FormLabel: React.FC<FormLabelProps>;
916
917
  interface BaseOption {
917
918
  value: string | number;
918
919
  label: string;
920
+ description?: string;
919
921
  }
920
922
  type EmptyObject = Record<string, never>;
921
923
  type SelectOption<Extra extends object = object> = BaseOption & Extra;
924
+ type SelectGroup<Extra extends object = object> = {
925
+ label: React.ReactNode;
926
+ options: SelectOption<Extra>[];
927
+ };
922
928
  interface RenderOptionState {
923
929
  selected: boolean;
924
930
  }
925
931
  type BaseSelectProps<Extra extends object = object> = {
926
932
  options?: SelectOption<Extra>[];
927
933
  value?: SelectOption<Extra> | SelectOption<Extra>[] | null;
934
+ isClearable?: boolean;
935
+ /**
936
+ * @deprecated Use `multiple` instead
937
+ */
928
938
  isMulti?: boolean;
939
+ multiple?: boolean;
929
940
  placeholder?: string;
930
941
  isSearchable?: boolean;
931
- isClearable?: boolean;
942
+ /**
943
+ * @deprecated Use `disabled` instead
944
+ */
932
945
  isDisabled?: boolean;
946
+ disabled?: boolean;
933
947
  searchPlaceholder?: string;
934
948
  renderOption?: ((option: SelectOption<Extra>, state: RenderOptionState) => React.ReactNode) | null;
935
949
  renderValue?: ((option: SelectOption<Extra>) => React.ReactNode) | null;
@@ -938,6 +952,7 @@ type BaseSelectProps<Extra extends object = object> = {
938
952
  description?: string;
939
953
  hint?: string;
940
954
  errorMessages?: string | string[];
955
+ tooltip?: string;
941
956
  onLoadMore?: () => void;
942
957
  isLoadingMore?: boolean;
943
958
  treshold?: number;
@@ -964,7 +979,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
964
979
  };
965
980
  type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
966
981
 
967
- 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, icon, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
982
+ declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, multiple, placeholder, isSearchable, isClearable, isDisabled, disabled, renderOption, renderValue, className, label, description, hint, tooltip, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchOptions, searchPlaceholder, icon, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
968
983
 
969
984
  interface TabsProps {
970
985
  defaultValue?: string;
@@ -1157,4 +1172,4 @@ declare const RadioIndicatorVariants: (props?: ({
1157
1172
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
1158
1173
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1159
1174
 
1160
- 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 ChipOption, 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 InputOTPSize, type InputOTPType, 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, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetSide, type SheetSize, 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, useSheetHref, useSidebar, useTabHref, useToast };
1175
+ 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 ChipOption, 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 InputOTPSize, type InputOTPType, 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 SelectGroup, type SelectOption, type SelectProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetSide, type SheetSize, 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, useSheetHref, useSidebar, useTabHref, useToast };
package/dist/clients.d.ts CHANGED
@@ -245,7 +245,7 @@ declare const modalVariants: (props?: ({
245
245
  state?: "open" | "closed" | null | undefined;
246
246
  } & class_variance_authority_types.ClassProp) | undefined) => string;
247
247
  declare const modalOverlayVariants: (props?: ({
248
- position?: "center" | "top" | "bottom" | null | undefined;
248
+ position?: "center" | "bottom" | "top" | null | undefined;
249
249
  state?: "open" | "closed" | null | undefined;
250
250
  } & class_variance_authority_types.ClassProp) | undefined) => string;
251
251
  type modalOverlayVariantsProps = VariantProps<typeof modalOverlayVariants>;
@@ -900,6 +900,7 @@ interface FormFieldProps {
900
900
  htmlFor?: string;
901
901
  className?: string;
902
902
  children: React.ReactNode;
903
+ tooltip?: string;
903
904
  }
904
905
 
905
906
  declare const FormDescription: React.FC<FormDescriptionProps>;
@@ -916,20 +917,33 @@ declare const FormLabel: React.FC<FormLabelProps>;
916
917
  interface BaseOption {
917
918
  value: string | number;
918
919
  label: string;
920
+ description?: string;
919
921
  }
920
922
  type EmptyObject = Record<string, never>;
921
923
  type SelectOption<Extra extends object = object> = BaseOption & Extra;
924
+ type SelectGroup<Extra extends object = object> = {
925
+ label: React.ReactNode;
926
+ options: SelectOption<Extra>[];
927
+ };
922
928
  interface RenderOptionState {
923
929
  selected: boolean;
924
930
  }
925
931
  type BaseSelectProps<Extra extends object = object> = {
926
932
  options?: SelectOption<Extra>[];
927
933
  value?: SelectOption<Extra> | SelectOption<Extra>[] | null;
934
+ isClearable?: boolean;
935
+ /**
936
+ * @deprecated Use `multiple` instead
937
+ */
928
938
  isMulti?: boolean;
939
+ multiple?: boolean;
929
940
  placeholder?: string;
930
941
  isSearchable?: boolean;
931
- isClearable?: boolean;
942
+ /**
943
+ * @deprecated Use `disabled` instead
944
+ */
932
945
  isDisabled?: boolean;
946
+ disabled?: boolean;
933
947
  searchPlaceholder?: string;
934
948
  renderOption?: ((option: SelectOption<Extra>, state: RenderOptionState) => React.ReactNode) | null;
935
949
  renderValue?: ((option: SelectOption<Extra>) => React.ReactNode) | null;
@@ -938,6 +952,7 @@ type BaseSelectProps<Extra extends object = object> = {
938
952
  description?: string;
939
953
  hint?: string;
940
954
  errorMessages?: string | string[];
955
+ tooltip?: string;
941
956
  onLoadMore?: () => void;
942
957
  isLoadingMore?: boolean;
943
958
  treshold?: number;
@@ -964,7 +979,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
964
979
  };
965
980
  type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
966
981
 
967
- 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, icon, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
982
+ declare function Select<Extra extends object = object>({ options, value, onChange, isMulti, multiple, placeholder, isSearchable, isClearable, isDisabled, disabled, renderOption, renderValue, className, label, description, hint, tooltip, errorMessages, isLoadingMore, onLoadMore, treshold, trigger, triggerClassName, renderOptions, onSearchOptions, onOptionsChange, required, isSelectOpen, onOpenChange, searchOptions, searchPlaceholder, icon, }: SelectProps<Extra>): react_jsx_runtime.JSX.Element;
968
983
 
969
984
  interface TabsProps {
970
985
  defaultValue?: string;
@@ -1157,4 +1172,4 @@ declare const RadioIndicatorVariants: (props?: ({
1157
1172
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
1158
1173
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1159
1174
 
1160
- 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 ChipOption, 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 InputOTPSize, type InputOTPType, 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, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetSide, type SheetSize, 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, useSheetHref, useSidebar, useTabHref, useToast };
1175
+ 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 ChipOption, 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 InputOTPSize, type InputOTPType, 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 SelectGroup, type SelectOption, type SelectProps, Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetSide, type SheetSize, 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, useSheetHref, useSidebar, useTabHref, useToast };