@dhis2-ui/input 8.7.7 → 8.9.0

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.
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "InputField", {
15
15
  return _index2.InputField;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "InputFieldProps", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _index2.InputFieldProps;
22
+ }
23
+ });
18
24
 
19
25
  var _index = require("./input/index.js");
20
26
 
@@ -9,5 +9,11 @@ Object.defineProperty(exports, "InputField", {
9
9
  return _inputField.InputField;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "InputFieldProps", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _inputField.InputFieldProps;
16
+ }
17
+ });
12
18
 
13
19
  var _inputField = require("./input-field.js");
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.InputField = void 0;
6
+ exports.InputFieldProps = exports.InputField = void 0;
7
7
 
8
8
  var _box = require("@dhis2-ui/box");
9
9
 
@@ -97,7 +97,7 @@ exports.InputField = InputField;
97
97
  InputField.defaultProps = {
98
98
  dataTest: 'dhis2-uiwidgets-inputfield'
99
99
  };
100
- InputField.propTypes = {
100
+ const InputFieldProps = {
101
101
  /** The [native `autocomplete` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete) */
102
102
  autoComplete: _propTypes.default.string,
103
103
  className: _propTypes.default.string,
@@ -175,4 +175,6 @@ InputField.propTypes = {
175
175
 
176
176
  /** Called with signature `({ name: string, value: string }, event)` */
177
177
  onKeyDown: _propTypes.default.func
178
- };
178
+ };
179
+ exports.InputFieldProps = InputFieldProps;
180
+ InputField.propTypes = InputFieldProps;
package/build/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { Input } from './input/index.js';
2
- export { InputField } from './input-field/index.js';
2
+ export { InputField, InputFieldProps } from './input-field/index.js';
@@ -1 +1 @@
1
- export { InputField } from './input-field.js';
1
+ export { InputField, InputFieldProps } from './input-field.js';
@@ -82,7 +82,7 @@ class InputField extends React.Component {
82
82
  InputField.defaultProps = {
83
83
  dataTest: 'dhis2-uiwidgets-inputfield'
84
84
  };
85
- InputField.propTypes = {
85
+ const InputFieldProps = {
86
86
  /** The [native `autocomplete` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete) */
87
87
  autoComplete: PropTypes.string,
88
88
  className: PropTypes.string,
@@ -161,4 +161,5 @@ InputField.propTypes = {
161
161
  /** Called with signature `({ name: string, value: string }, event)` */
162
162
  onKeyDown: PropTypes.func
163
163
  };
164
- export { InputField };
164
+ InputField.propTypes = InputFieldProps;
165
+ export { InputField, InputFieldProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/input",
3
- "version": "8.7.7",
3
+ "version": "8.9.0",
4
4
  "description": "UI Input",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@dhis2/prop-types": "^3.1.2",
35
- "@dhis2-ui/box": "8.7.7",
36
- "@dhis2-ui/field": "8.7.7",
37
- "@dhis2-ui/input": "8.7.7",
38
- "@dhis2-ui/loader": "8.7.7",
39
- "@dhis2-ui/status-icon": "8.7.7",
40
- "@dhis2/ui-constants": "8.7.7",
41
- "@dhis2/ui-icons": "8.7.7",
35
+ "@dhis2-ui/box": "8.9.0",
36
+ "@dhis2-ui/field": "8.9.0",
37
+ "@dhis2-ui/input": "8.9.0",
38
+ "@dhis2-ui/loader": "8.9.0",
39
+ "@dhis2-ui/status-icon": "8.9.0",
40
+ "@dhis2/ui-constants": "8.9.0",
41
+ "@dhis2/ui-icons": "8.9.0",
42
42
  "classnames": "^2.3.1",
43
43
  "prop-types": "^15.7.2"
44
44
  },