@webiny/ui 0.0.0-unstable.78f581c1d2 → 0.0.0-unstable.97a151f74d

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/ui",
3
- "version": "0.0.0-unstable.78f581c1d2",
3
+ "version": "0.0.0-unstable.97a151f74d",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -81,11 +81,11 @@
81
81
  "@types/react-custom-scrollbars": "^4.0.10",
82
82
  "@types/react-transition-group": "^4.4.4",
83
83
  "@types/shortid": "^0.0.29",
84
- "@webiny/cli": "^0.0.0-unstable.78f581c1d2",
85
- "@webiny/form": "^0.0.0-unstable.78f581c1d2",
86
- "@webiny/project-utils": "^0.0.0-unstable.78f581c1d2",
87
- "@webiny/storybook-utils": "^0.0.0-unstable.78f581c1d2",
88
- "@webiny/validation": "^0.0.0-unstable.78f581c1d2",
84
+ "@webiny/cli": "^0.0.0-unstable.97a151f74d",
85
+ "@webiny/form": "^0.0.0-unstable.97a151f74d",
86
+ "@webiny/project-utils": "^0.0.0-unstable.97a151f74d",
87
+ "@webiny/storybook-utils": "^0.0.0-unstable.97a151f74d",
88
+ "@webiny/validation": "^0.0.0-unstable.97a151f74d",
89
89
  "babel-loader": "^8.0.0-beta.6",
90
90
  "babel-plugin-emotion": "^9.2.8",
91
91
  "execa": "^5.0.0",
@@ -103,6 +103,7 @@
103
103
  "webpack": "^4.46.0"
104
104
  },
105
105
  "peerDependencies": {
106
+ "minimatch": "^5.1.0",
106
107
  "react": "^17.0.2",
107
108
  "react-dom": "^17.0.2"
108
109
  },
@@ -131,5 +132,5 @@
131
132
  ]
132
133
  }
133
134
  },
134
- "gitHead": "78f581c1d2e5e6936aa11b9452a66d2a3652a1b2"
135
+ "gitHead": "97a151f74d8c5679323989fcc8cc7036be0f150e"
135
136
  }
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface FormComponentProps {
1
+ export interface FormComponentProps<TValue = any> {
2
2
  validation?: {
3
3
  isValid: boolean;
4
4
  message: string;
@@ -7,6 +7,6 @@ export interface FormComponentProps {
7
7
  };
8
8
  };
9
9
  validate?: () => Promise<boolean | any>;
10
- value?: any;
11
- onChange?: (value: any) => void;
10
+ value?: TValue;
11
+ onChange?: (value: TValue) => void;
12
12
  }
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface FormComponentProps {\n validation?: {\n /* Is form element's value valid? */\n isValid: boolean;\n /* Error message if value is not valid. */\n message: string;\n /* Any validation result returned by the validator. */\n results?: { [key: string]: any };\n };\n\n /* Provided by <Form> component to perform validation when value has changed. */\n validate?: () => Promise<boolean | any>;\n\n /* Form component's value. */\n value?: any;\n\n /* A callback that is executed each time a value is changed. */\n onChange?: (value: any) => void;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["export interface FormComponentProps<TValue = any> {\n validation?: {\n /* Is form element's value valid? */\n isValid: boolean;\n /* Error message if value is not valid. */\n message: string;\n /* Any validation result returned by the validator. */\n results?: { [key: string]: any };\n };\n\n /* Provided by <Form> component to perform validation when value has changed. */\n validate?: () => Promise<boolean | any>;\n\n /* Form component's value. */\n value?: TValue;\n\n /* A callback that is executed each time a value is changed. */\n onChange?: (value: TValue) => void;\n}\n"],"mappings":""}