@sb1/ffe-form-react 11.0.4 → 11.0.6

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/README.md CHANGED
@@ -10,10 +10,23 @@ npm install --save @sb1/ffe-form-react
10
10
 
11
11
  ## Usage
12
12
 
13
- Run Styleguidist from the repository root to see live examples and documentation,
14
- or see the markdown files next to the component code in `src/`.
13
+ Full documentation on form usage is available at https://design.sparebank1.no/komponenter/skjemaelementer/.
15
14
 
16
15
  ## TypeScript definition files
17
16
 
18
17
  This component supports TypeScript - please update `index.d.ts` if you change any
19
18
  of the external methods or properties in this component.
19
+
20
+ ## Development
21
+
22
+ To start a local development server, run the following from the designsystem root folder:
23
+
24
+ ```bash
25
+ npm install
26
+ npm run build
27
+ npm start
28
+ ```
29
+
30
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
31
+
32
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-form-react",
3
- "version": "11.0.4",
3
+ "version": "11.0.6",
4
4
  "description": "React component for form elements in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -25,8 +25,8 @@
25
25
  "test:watch": "ffe-buildtool jest --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@sb1/ffe-collapse-react": "^2.0.1",
29
- "@sb1/ffe-form": "^23.0.3",
28
+ "@sb1/ffe-collapse-react": "^2.0.2",
29
+ "@sb1/ffe-form": "^23.0.4",
30
30
  "classnames": "^2.3.1",
31
31
  "uuid": "^9.0.0"
32
32
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "1818642c6a92dfcdf8c590909006fcd66b3eb03b"
47
+ "gitHead": "d68b4f8edf76c7c49ad50b6798904314bba455bd"
48
48
  }
package/types/index.d.ts CHANGED
@@ -32,8 +32,8 @@ export interface InputProps
32
32
  export interface PhoneNumberProps {
33
33
  number?: string;
34
34
  countryCode?: string;
35
- onCountryCodeChange?: React.FormEventHandler<HTMLInputElement>;
36
- onNumberChange?: React.FormEventHandler<HTMLInputElement>;
35
+ onCountryCodeChange?: React.ChangeEventHandler<HTMLInputElement>;
36
+ onNumberChange?: React.ChangeEventHandler<HTMLInputElement>;
37
37
  onCountryCodeBlur?: React.FocusEventHandler<HTMLInputElement>;
38
38
  onNumberBlur?: React.FocusEventHandler<HTMLInputElement>;
39
39
  locale?: string;