haze-ui 1.13.0 → 1.14.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.
Files changed (45) hide show
  1. package/README.md +1 -1
  2. package/dist/types/components/Alert/Alert.d.ts +2 -2
  3. package/dist/types/components/Banner/Banner.d.ts +2 -2
  4. package/dist/types/components/BottomSheet/BottomSheet.d.ts +2 -2
  5. package/dist/types/components/Carousel/Carousel.d.ts +2 -2
  6. package/dist/types/components/ChatInput/ChatInput.d.ts +2 -2
  7. package/dist/types/components/Checkbox/Checkbox.d.ts +2 -2
  8. package/dist/types/components/Collapsible/Collapsible.d.ts +2 -2
  9. package/dist/types/components/ColorPicker/ColorPicker.d.ts +2 -2
  10. package/dist/types/components/Combobox/Combobox.d.ts +3 -3
  11. package/dist/types/components/Command/Command.d.ts +2 -2
  12. package/dist/types/components/ConfirmDialog/ConfirmDialog.d.ts +2 -2
  13. package/dist/types/components/ContextMenu/ContextMenu.d.ts +2 -2
  14. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +3 -3
  15. package/dist/types/components/Datepicker/Datepicker.d.ts +3 -3
  16. package/dist/types/components/Dialog/Dialog.d.ts +2 -2
  17. package/dist/types/components/Disclosure/Disclosure.d.ts +2 -2
  18. package/dist/types/components/Drawer/Drawer.d.ts +2 -2
  19. package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -2
  20. package/dist/types/components/InlineEdit/InlineEdit.d.ts +2 -2
  21. package/dist/types/components/Input/Input.d.ts +2 -2
  22. package/dist/types/components/LogViewer/LogViewer.d.ts +2 -2
  23. package/dist/types/components/Menu/Menu.d.ts +2 -2
  24. package/dist/types/components/ModelPicker/ModelPicker.d.ts +2 -2
  25. package/dist/types/components/NumberInput/NumberInput.d.ts +2 -2
  26. package/dist/types/components/OTPInput/OTPInput.d.ts +2 -2
  27. package/dist/types/components/Pagination/Pagination.d.ts +2 -2
  28. package/dist/types/components/PasswordInput/PasswordInput.d.ts +2 -2
  29. package/dist/types/components/Popover/Popover.d.ts +2 -2
  30. package/dist/types/components/Radio/RadioGroup.d.ts +2 -2
  31. package/dist/types/components/Rating/Rating.d.ts +2 -2
  32. package/dist/types/components/Segmented/Segmented.d.ts +2 -2
  33. package/dist/types/components/Select/Select.d.ts +2 -2
  34. package/dist/types/components/Slider/Slider.d.ts +2 -2
  35. package/dist/types/components/Stepper/Stepper.d.ts +2 -2
  36. package/dist/types/components/Switch/Switch.d.ts +2 -2
  37. package/dist/types/components/Tabs/Tabs.d.ts +2 -2
  38. package/dist/types/components/TagInput/TagInput.d.ts +2 -2
  39. package/dist/types/components/Textarea/Textarea.d.ts +2 -2
  40. package/dist/types/components/TimePicker/TimePicker.d.ts +2 -2
  41. package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
  42. package/dist/types/components/Transfer/Transfer.d.ts +2 -2
  43. package/dist/types/components/Tree/types.d.ts +4 -4
  44. package/dist/types/index.d.ts +1 -0
  45. package/package.json +2 -2
package/README.md CHANGED
@@ -58,7 +58,7 @@ views: controlled cores (`InputCore`, `SelectCore`, `SwitchCore`,
58
58
  `TextareaCore`, `TagInputCore`, ...) take the plain `{value, onChange}`
59
59
  pair with zero adapters, and `FormItem` wraps the hook's state in label,
60
60
  error and aria wiring. The sugar components (`Input`, `Select`, ...)
61
- keep their `Control<T> | T` API for standalone use outside forms.
61
+ keep their `ControlOrValue<T>` (`Control<T> | T`) API for standalone use outside forms.
62
62
 
63
63
  ### useField: field → {value, onChange}
64
64
 
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type AlertProps = {
4
- visible?: Control<boolean> | boolean;
4
+ visible?: ControlOrValue<boolean>;
5
5
  onClose?: () => void;
6
6
  variant?: 'info' | 'success' | 'warning' | 'danger';
7
7
  closable?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type BannerProps = {
4
- visible?: Control<boolean> | boolean;
4
+ visible?: ControlOrValue<boolean>;
5
5
  onClose?: () => void;
6
6
  variant?: 'info' | 'success' | 'warning' | 'danger';
7
7
  children: ReactNode;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type BottomSheetProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  onClose?: () => void;
6
6
  children: ReactNode;
7
7
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type CarouselProps = {
4
- value?: Control<number> | number;
4
+ value?: ControlOrValue<number>;
5
5
  autoPlay?: boolean;
6
6
  interval?: number;
7
7
  className?: string;
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type ChatInputProps = {
3
- value?: Control<string> | string;
3
+ value?: ControlOrValue<string>;
4
4
  onSend?: (message: string) => void;
5
5
  placeholder?: string;
6
6
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type CheckboxProps = {
4
- checked?: Control<boolean> | boolean;
4
+ checked?: ControlOrValue<boolean>;
5
5
  label?: ReactNode;
6
6
  } & Omit<ComponentPropsWithoutRef<'input'>, 'checked' | 'type'>;
7
7
  export default function Checkbox({ checked: checkedControl, className, label, onChange, ...rest }: CheckboxProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type CollapsibleProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  defaultOpen?: boolean;
6
6
  children: ReactNode;
7
7
  className?: string;
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type ColorPickerProps = {
3
- value?: Control<string> | string;
3
+ value?: ControlOrValue<string>;
4
4
  presets?: string[];
5
5
  onChange?: (color: string) => void;
6
6
  className?: string;
@@ -1,7 +1,7 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type ComboboxProps = {
3
- value?: Control<string> | string;
4
- open?: Control<boolean> | boolean;
3
+ value?: ControlOrValue<string>;
4
+ open?: ControlOrValue<boolean>;
5
5
  options: {
6
6
  value: string;
7
7
  label: string;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type CommandProps = {
4
- query?: Control<string> | string;
4
+ query?: ControlOrValue<string>;
5
5
  children: ReactNode;
6
6
  className?: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type ConfirmDialogProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  onClose?: () => void;
6
6
  onConfirm?: () => void;
7
7
  onCancel?: () => void;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type ContextMenuProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  onOpenChange?: (open: boolean) => void;
6
6
  children: ReactNode;
7
7
  className?: string;
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type DateRangePickerProps = {
4
- startDate?: Control<string> | string;
5
- endDate?: Control<string> | string;
4
+ startDate?: ControlOrValue<string>;
5
+ endDate?: ControlOrValue<string>;
6
6
  onStartChange?: (value: string) => void;
7
7
  onEndChange?: (value: string) => void;
8
8
  separator?: ReactNode;
@@ -1,7 +1,7 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type DatepickerProps = {
3
- value?: Control<string> | string;
4
- open?: Control<boolean> | boolean;
3
+ value?: ControlOrValue<string>;
4
+ open?: ControlOrValue<boolean>;
5
5
  min?: string;
6
6
  max?: string;
7
7
  placeholder?: string;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type DialogProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  onClose?: () => void;
6
6
  /**
7
7
  * 对话框标题:渲染为 h2 并以生成的 id 关联 dialog 的
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type DisclosureProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  summary: ReactNode;
6
6
  className?: string;
7
7
  children: ReactNode;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type DrawerProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  placement?: 'left' | 'right' | 'top' | 'bottom';
6
6
  onClose?: () => void;
7
7
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type DropdownMenuProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  onOpenChange?: (open: boolean) => void;
6
6
  children: ReactNode;
7
7
  className?: string;
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type InlineEditProps = {
3
- value?: Control<string> | string;
3
+ value?: ControlOrValue<string>;
4
4
  onChange?: (value: string) => void;
5
5
  placeholder?: string;
6
6
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type InputProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  } & Omit<ComponentPropsWithoutRef<'input'>, 'value' | 'size'>;
7
7
  export default function Input({ value: valueControl, size, className, onChange, ...rest }: InputProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type LogLevel = 'debug' | 'info' | 'warn' | 'error';
3
3
  type LogEntry = {
4
4
  level: LogLevel;
@@ -7,7 +7,7 @@ type LogEntry = {
7
7
  };
8
8
  type LogViewerProps = {
9
9
  logs: LogEntry[];
10
- filter?: Control<LogLevel | null> | LogLevel | null;
10
+ filter?: ControlOrValue<LogLevel | null>;
11
11
  className?: string;
12
12
  };
13
13
  export default function LogViewer({ logs, filter: filterControl, className }: LogViewerProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type MenuProps = {
4
- open?: Control<boolean> | boolean;
4
+ open?: ControlOrValue<boolean>;
5
5
  trigger?: ReactNode;
6
6
  className?: string;
7
7
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type ModelOption = {
3
3
  value: string;
4
4
  label: string;
@@ -6,7 +6,7 @@ type ModelOption = {
6
6
  contextLength?: string;
7
7
  };
8
8
  type ModelPickerProps = {
9
- value?: Control<string> | string;
9
+ value?: ControlOrValue<string>;
10
10
  onChange?: (value: string) => void;
11
11
  options: ModelOption[];
12
12
  disabled?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type NumberInputProps = {
4
- value?: Control<number> | number;
4
+ value?: ControlOrValue<number>;
5
5
  min?: number;
6
6
  max?: number;
7
7
  step?: number;
@@ -1,7 +1,7 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type OTPInputProps = {
3
3
  length?: number;
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  onChange?: (value: string) => void;
6
6
  className?: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type PaginationProps = {
4
- page?: Control<number> | number;
4
+ page?: ControlOrValue<number>;
5
5
  total: number;
6
6
  pageSize?: number;
7
7
  size?: 'sm' | 'md' | 'lg';
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type PasswordInputProps = {
3
- value?: Control<string> | string;
3
+ value?: ControlOrValue<string>;
4
4
  onChange?: (value: string) => void;
5
5
  placeholder?: string;
6
6
  disabled?: boolean;
@@ -1,8 +1,8 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type PopoverProps = {
4
4
  content: ReactNode;
5
- open?: Control<boolean> | boolean;
5
+ open?: ControlOrValue<boolean>;
6
6
  className?: string;
7
7
  children: ReactNode;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type RadioGroupProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  name?: string;
6
6
  className?: string;
7
7
  children: ReactNode;
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type RatingProps = {
3
- value?: Control<number> | number;
3
+ value?: ControlOrValue<number>;
4
4
  count?: number;
5
5
  allowHalf?: boolean;
6
6
  onChange?: (value: number) => void;
@@ -1,8 +1,8 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  import type { SegmentedOption } from './SegmentedCore';
3
3
  type SegmentedProps = {
4
4
  options: SegmentedOption[];
5
- value?: Control<string> | string;
5
+ value?: ControlOrValue<string>;
6
6
  onChange?: (value: string) => void;
7
7
  size?: 'sm' | 'md' | 'lg';
8
8
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type SelectProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  children: ReactNode;
7
7
  } & Omit<ComponentPropsWithoutRef<'select'>, 'value' | 'size'>;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type SliderProps = {
4
- value?: Control<number> | number;
4
+ value?: ControlOrValue<number>;
5
5
  } & Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'value'>;
6
6
  export default function Slider({ value: valueControl, className, onChange, ...rest }: SliderProps): import("react").JSX.Element;
7
7
  export type { SliderProps };
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type StepperProps = {
4
- activeStep?: Control<number> | number;
4
+ activeStep?: ControlOrValue<number>;
5
5
  children: ReactNode;
6
6
  className?: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type SwitchProps = {
4
- checked?: Control<boolean> | boolean;
4
+ checked?: ControlOrValue<boolean>;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  } & Omit<ComponentPropsWithoutRef<'button'>, 'type' | 'checked' | 'onChange'>;
7
7
  export default function Switch({ checked: checkedControl, size, className, onClick, ...rest }: SwitchProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type TabsProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  className?: string;
6
6
  children: ReactNode;
7
7
  };
@@ -1,6 +1,6 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type TagInputProps = {
3
- value?: Control<string[]> | string[];
3
+ value?: ControlOrValue<string[]>;
4
4
  onChange?: (value: string[]) => void;
5
5
  placeholder?: string;
6
6
  maxTags?: number;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type TextareaProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  } & Omit<ComponentPropsWithoutRef<'textarea'>, 'value'>;
7
7
  export default function Textarea({ value: valueControl, size, className, onChange, ...rest }: TextareaProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPropsWithoutRef } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type TimePickerProps = {
4
- value?: Control<string> | string;
4
+ value?: ControlOrValue<string>;
5
5
  onChange?: (value: string) => void;
6
6
  placeholder?: string;
7
7
  className?: string;
@@ -1,11 +1,11 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  type TooltipProps = {
4
4
  content: ReactNode;
5
5
  position?: 'top' | 'bottom' | 'left' | 'right';
6
6
  /** Milliseconds of hover/focus before the tooltip appears. */
7
7
  delay?: number;
8
- open?: Control<boolean> | boolean;
8
+ open?: ControlOrValue<boolean>;
9
9
  className?: string;
10
10
  children: ReactNode;
11
11
  };
@@ -1,4 +1,4 @@
1
- import type { Control } from 'react-use-control';
1
+ import type { ControlOrValue } from 'react-use-control';
2
2
  type TransferItem = {
3
3
  key: string;
4
4
  title: string;
@@ -6,7 +6,7 @@ type TransferItem = {
6
6
  };
7
7
  type TransferProps = {
8
8
  dataSource: TransferItem[];
9
- targetKeys?: Control<string[]> | string[];
9
+ targetKeys?: ControlOrValue<string[]>;
10
10
  onChange?: (targetKeys: string[], direction: 'left' | 'right', moveKeys: string[]) => void;
11
11
  className?: string;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { Control } from 'react-use-control';
2
+ import type { ControlOrValue } from 'react-use-control';
3
3
  /**
4
4
  * Tree 节点数据接口
5
5
  */
@@ -63,11 +63,11 @@ export type TreeProps = {
63
63
  /** 自定义节点图标渲染 */
64
64
  iconRender?: (node: TreeNodeData) => ReactNode;
65
65
  /** (受控)展开的节点 */
66
- expandedKeys?: Control<string[]> | string[];
66
+ expandedKeys?: ControlOrValue<string[]>;
67
67
  /** (受控)选中的节点 */
68
- selectedKeys?: Control<string[]> | string[];
68
+ selectedKeys?: ControlOrValue<string[]>;
69
69
  /** (受控)复选的节点 */
70
- checkedKeys?: Control<string[]> | string[];
70
+ checkedKeys?: ControlOrValue<string[]>;
71
71
  /** 自定义类名 */
72
72
  className?: string;
73
73
  /** 展开/收起回调 */
@@ -184,3 +184,4 @@ export type { LogViewerProps, LogEntry, LogLevel } from './components/LogViewer'
184
184
  export { FormItem } from './form';
185
185
  export type { FieldValidator, FormItemAsProps, FormItemBinding, FormItemProps, FormInstance, PathValueOf, } from './form';
186
186
  export { useControl } from 'react-use-control';
187
+ export type { Control, ControlOrValue } from 'react-use-control';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haze-ui",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "type": "module",
5
5
  "description": "A React UI component library powered by react-use-control and Linaria",
6
6
  "main": "./dist/index.js",
@@ -55,7 +55,7 @@
55
55
  "react-f0rm": ">=0.7.0 <0.9.0"
56
56
  },
57
57
  "dependencies": {
58
- "react-use-control": "^1.4.0"
58
+ "react-use-control": "^1.5.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@babel/core": "^8.0.1",