@herca/r-kit 0.0.72 → 0.0.75

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,34 @@ declare const FormLabel: React.FC<FormLabelProps>;
916
917
  interface BaseOption {
917
918
  value: string | number;
918
919
  label: string;
920
+ description?: string;
921
+ icon?: string;
919
922
  }
920
923
  type EmptyObject = Record<string, never>;
921
924
  type SelectOption<Extra extends object = object> = BaseOption & Extra;
925
+ type SelectGroup<Extra extends object = object> = {
926
+ label: React.ReactNode;
927
+ options: SelectOption<Extra>[];
928
+ };
922
929
  interface RenderOptionState {
923
930
  selected: boolean;
924
931
  }
925
932
  type BaseSelectProps<Extra extends object = object> = {
926
933
  options?: SelectOption<Extra>[];
927
934
  value?: SelectOption<Extra> | SelectOption<Extra>[] | null;
935
+ isClearable?: boolean;
936
+ /**
937
+ * @deprecated Use `multiple` instead
938
+ */
928
939
  isMulti?: boolean;
940
+ multiple?: boolean;
929
941
  placeholder?: string;
930
942
  isSearchable?: boolean;
931
- isClearable?: boolean;
943
+ /**
944
+ * @deprecated Use `disabled` instead
945
+ */
932
946
  isDisabled?: boolean;
947
+ disabled?: boolean;
933
948
  searchPlaceholder?: string;
934
949
  renderOption?: ((option: SelectOption<Extra>, state: RenderOptionState) => React.ReactNode) | null;
935
950
  renderValue?: ((option: SelectOption<Extra>) => React.ReactNode) | null;
@@ -938,6 +953,7 @@ type BaseSelectProps<Extra extends object = object> = {
938
953
  description?: string;
939
954
  hint?: string;
940
955
  errorMessages?: string | string[];
956
+ tooltip?: string;
941
957
  onLoadMore?: () => void;
942
958
  isLoadingMore?: boolean;
943
959
  treshold?: number;
@@ -964,7 +980,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
964
980
  };
965
981
  type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
966
982
 
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;
983
+ 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
984
 
969
985
  interface TabsProps {
970
986
  defaultValue?: string;
@@ -1157,4 +1173,4 @@ declare const RadioIndicatorVariants: (props?: ({
1157
1173
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
1158
1174
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1159
1175
 
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 };
1176
+ 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,34 @@ declare const FormLabel: React.FC<FormLabelProps>;
916
917
  interface BaseOption {
917
918
  value: string | number;
918
919
  label: string;
920
+ description?: string;
921
+ icon?: string;
919
922
  }
920
923
  type EmptyObject = Record<string, never>;
921
924
  type SelectOption<Extra extends object = object> = BaseOption & Extra;
925
+ type SelectGroup<Extra extends object = object> = {
926
+ label: React.ReactNode;
927
+ options: SelectOption<Extra>[];
928
+ };
922
929
  interface RenderOptionState {
923
930
  selected: boolean;
924
931
  }
925
932
  type BaseSelectProps<Extra extends object = object> = {
926
933
  options?: SelectOption<Extra>[];
927
934
  value?: SelectOption<Extra> | SelectOption<Extra>[] | null;
935
+ isClearable?: boolean;
936
+ /**
937
+ * @deprecated Use `multiple` instead
938
+ */
928
939
  isMulti?: boolean;
940
+ multiple?: boolean;
929
941
  placeholder?: string;
930
942
  isSearchable?: boolean;
931
- isClearable?: boolean;
943
+ /**
944
+ * @deprecated Use `disabled` instead
945
+ */
932
946
  isDisabled?: boolean;
947
+ disabled?: boolean;
933
948
  searchPlaceholder?: string;
934
949
  renderOption?: ((option: SelectOption<Extra>, state: RenderOptionState) => React.ReactNode) | null;
935
950
  renderValue?: ((option: SelectOption<Extra>) => React.ReactNode) | null;
@@ -938,6 +953,7 @@ type BaseSelectProps<Extra extends object = object> = {
938
953
  description?: string;
939
954
  hint?: string;
940
955
  errorMessages?: string | string[];
956
+ tooltip?: string;
941
957
  onLoadMore?: () => void;
942
958
  isLoadingMore?: boolean;
943
959
  treshold?: number;
@@ -964,7 +980,7 @@ type SelectPropsWithDefaultBehavior<Extra extends object = EmptyObject> = {
964
980
  };
965
981
  type SelectProps<Extra extends object = object> = BaseSelectProps<Extra> & (SelectPropsWithCustomRender<Extra> | SelectPropsWithDefaultBehavior<Extra>);
966
982
 
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;
983
+ 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
984
 
969
985
  interface TabsProps {
970
986
  defaultValue?: string;
@@ -1157,4 +1173,4 @@ declare const RadioIndicatorVariants: (props?: ({
1157
1173
  color?: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "orange" | "purple" | "gray" | null | undefined;
1158
1174
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1159
1175
 
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 };
1176
+ 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 };