@availity/phone 2.1.1 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [2.1.3](https://github.com/Availity/availity-react/compare/@availity/phone@2.1.2...@availity/phone@2.1.3) (2023-10-09)
6
+
7
+
8
+
9
+ ## [2.1.2](https://github.com/Availity/availity-react/compare/@availity/phone@2.1.1...@availity/phone@2.1.2) (2023-02-22)
10
+
11
+
12
+
5
13
  ## [2.1.1](https://github.com/Availity/availity-react/compare/@availity/phone@2.1.0...@availity/phone@2.1.1) (2022-06-14)
6
14
 
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@availity/phone",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Availity Phone component using Formik and Yup",
5
5
  "keywords": [
6
6
  "availity",
@@ -25,14 +25,14 @@
25
25
  "publish:canary": "yarn npm publish --access public --tag canary"
26
26
  },
27
27
  "dependencies": {
28
- "libphonenumber-js": "^1.9.53",
28
+ "libphonenumber-js": "^1.10.44",
29
29
  "prop-types": "^15.8.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@availity/form": "1.5.1",
33
- "formik": "^2.2.9",
34
- "react": "^17.0.2",
35
- "react-dom": "^17.0.2",
32
+ "@availity/form": "1.7.5",
33
+ "formik": "^2.4.4",
34
+ "react": "^18.2.0",
35
+ "react-dom": "^18.2.0",
36
36
  "reactstrap": "^8.10.1",
37
37
  "yup": "^0.32.11"
38
38
  },
package/project.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "projectType": "library",
4
4
  "targets": {
5
5
  "test": {
6
- "executor": "@nrwl/jest:jest",
6
+ "executor": "@nx/jest:jest",
7
7
  "outputs": ["coverage/phone"],
8
8
  "options": { "jestConfig": "packages/phone/jest.config.js", "passWithNoTests": true }
9
9
  },
@@ -11,13 +11,13 @@
11
11
  "executor": "@jscutlery/semver:version",
12
12
  "options": {
13
13
  "preset": "angular",
14
- "commitMessageFormat": "chore(${projectName}): release version ${version} [skip ci]",
15
- "tagPrefix": "@availity/${projectName}@",
14
+ "commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
15
+ "tagPrefix": "@availity/{projectName}@",
16
16
  "baseBranch": "master"
17
17
  }
18
18
  },
19
19
  "lint": {
20
- "executor": "@nrwl/linter:eslint",
20
+ "executor": "@nx/linter:eslint",
21
21
  "options": {
22
22
  "eslintConfig": ".eslintrc.yaml",
23
23
  "lintFilePatterns": ["packages/phone/**/*.{js,ts}"],
package/src/Phone.js CHANGED
@@ -43,16 +43,23 @@ const Phone = ({ name, label, country = 'US', showExtension = false, extProps, p
43
43
  };
44
44
 
45
45
  Phone.propTypes = {
46
+ /** Identifies the field and matches the validation schema. */
46
47
  name: PropTypes.string.isRequired,
47
- label: PropTypes.string,
48
- showExtension: PropTypes.bool,
49
- country: PropTypes.string,
50
- phoneColProps: PropTypes.object,
48
+ /** Used to pass props to the extension field when it is enabled. */
51
49
  extProps: PropTypes.shape({
52
50
  name: PropTypes.string.isRequired,
53
51
  label: PropTypes.string,
52
+ /** Used to control props on `<Col />` for the extension field, if needed. The extension column has no default size value, so it's default will effectively be size: { 12 - phoneColSize } unless otherwise specified. */
54
53
  extColProps: PropTypes.object,
55
54
  }),
55
+ /** Displays a Reactstrap `<Label />` for the field. */
56
+ label: PropTypes.string,
57
+ /** Enable the phone extension field. */
58
+ showExtension: PropTypes.bool,
59
+ /** Default country for parsing national numbers. [This is the two letter ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). */
60
+ country: PropTypes.string,
61
+ /** Used to control props on the `<Col />` for the phone field, if needed. The phone column defaults to xs: { size: 12 } when not rendering an extension field, and defaults to xs: { size: 10 } when rendering an extension field. */
62
+ phoneColProps: PropTypes.object,
56
63
  };
57
64
 
58
65
  export default Phone;