dcp-design-react 1.10.2 → 1.10.4

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.
@@ -281,8 +281,10 @@ export type IFormItem = {
281
281
  };
282
282
  render?: (options: IFormItem, instance: any) => JSXElement;
283
283
  onChange?: (value: ValueOf<IFormData> | boolean, ...rest: any[]) => void;
284
- onBlur?: (value: ValueOf<IFormData>) => void;
285
- onEnter?: (value: ValueOf<IFormData>) => void;
284
+ onFocus?: (value: ValueOf<IFormData>, ev: React.FocusEvent<HTMLElement>) => void;
285
+ onBlur?: (value: ValueOf<IFormData>, ev: React.FocusEvent<HTMLElement>) => void;
286
+ onClear?: () => void;
287
+ onEnter?: (value: ValueOf<IFormData>, ev: React.KeyboardEvent<HTMLElement>) => void;
286
288
  };
287
289
  export type IFormProps = {
288
290
  items: IFormItem[];
@@ -0,0 +1 @@
1
+ export default function useCreate(cb: () => void): void;
@@ -0,0 +1,4 @@
1
+ type Updater<T> = T | ((prevValue: T) => T);
2
+ export type SetState<T> = (nextValue: Updater<T>) => void;
3
+ export default function useSyncState<T>(defaultValue?: T): [get: () => T, set: SetState<T>];
4
+ export {};
@@ -0,0 +1,6 @@
1
+ type UseWindowSizeProps = {
2
+ handler: (ev: Event) => void;
3
+ delay?: number;
4
+ };
5
+ export default function useWindowSize({ handler, delay }: UseWindowSizeProps): void;
6
+ export {};