@acrool/react-picker 0.0.2-alpha.2 → 0.0.2-alpha.3

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.
@@ -5466,8 +5466,8 @@ function Gh(t, e) {
5466
5466
  }, []), b = pt((g) => {
5467
5467
  c.current && !c.current.contains(g.target) && h.current && !h.current.contains(g.target) && (o(!1), a(!1));
5468
5468
  }, []), x = pt(() => {
5469
- if (typeof i.onChange > "u") {
5470
- bt.warning("@acrool/react-picker: createPicker component props onChange is undefined, is no call");
5469
+ if (typeof (i == null ? void 0 : i.onChange) > "u") {
5470
+ bt.warning("@acrool/react-picker", "createPicker component props onChange is undefined, is no call");
5471
5471
  return;
5472
5472
  }
5473
5473
  d.current && JSON.stringify(l) !== JSON.stringify(d.current) && i.onChange(d.current);
package/dist/types.d.ts CHANGED
@@ -9,7 +9,7 @@ export interface IPickerOptions {
9
9
  }
10
10
  export interface IValueChange<T = string> {
11
11
  value?: T;
12
- onChange: (value: T) => void;
12
+ onChange?: (value: T) => void;
13
13
  }
14
14
  export interface IPosition {
15
15
  vertical: 'top' | 'bottom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.0.2-alpha.2",
3
+ "version": "0.0.2-alpha.3",
4
4
  "description": "Picker library based for Reactjs",
5
5
  "keywords": [
6
6
  "acrool",