@digigov/form 2.0.0-rc.12 → 2.0.0-rc.13

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.
@@ -77,6 +77,7 @@ export var FieldBase = function FieldBase(props) {
77
77
  "aria-required": !!required,
78
78
  "aria-describedby": error && "".concat(name, "-error"),
79
79
  required: required,
80
- disabled: editable === false
80
+ disabled: editable === false,
81
+ ref: undefined
81
82
  }, componentProps)));
82
83
  };
@@ -84,6 +84,7 @@ var FieldBase = exports.FieldBase = function FieldBase(props) {
84
84
  "aria-required": !!required,
85
85
  "aria-describedby": error && "".concat(name, "-error"),
86
86
  required: required,
87
- disabled: editable === false
87
+ disabled: editable === false,
88
+ ref: undefined
88
89
  }, componentProps)));
89
90
  };
@@ -23,7 +23,4 @@ var Label = exports.Label = function Label(_ref) {
23
23
  size: "sm"
24
24
  }, label && label.primary && t(label.primary) || value), label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary)));
25
25
  };
26
- Label.defaultProps = {
27
- label: {}
28
- };
29
26
  var _default = exports["default"] = Label;
@@ -51,6 +51,7 @@ var RadioButtonsGroup = exports.RadioButtonsGroup = function RadioButtonsGroup(_
51
51
  }, option, (0, _extends2["default"])({}, props, {
52
52
  reset: undefined,
53
53
  required: undefined,
54
+ error: undefined,
54
55
  'aria-describedby': undefined,
55
56
  type: 'radio'
56
57
  })), label && label.primary && t(label.primary) || v, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary))), selected && selected(), currentValue === v && show && /*#__PURE__*/_react["default"].createElement(_RadioConditional.RadioConditional, null, show.map(function (fieldName) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v2.0.0-rc.12
1
+ /** @license Digigov v2.0.0-rc.13
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -16,7 +16,4 @@ export var Label = function Label(_ref) {
16
16
  size: "sm"
17
17
  }, label && label.primary && t(label.primary) || value), label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary)));
18
18
  };
19
- Label.defaultProps = {
20
- label: {}
21
- };
22
19
  export default Label;
@@ -44,6 +44,7 @@ export var RadioButtonsGroup = function RadioButtonsGroup(_ref) {
44
44
  }, option, _extends({}, props, {
45
45
  reset: undefined,
46
46
  required: undefined,
47
+ error: undefined,
47
48
  'aria-describedby': undefined,
48
49
  type: 'radio'
49
50
  })), label && label.primary && t(label.primary) || v, label && label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(label.secondary))), selected && selected(), currentValue === v && show && /*#__PURE__*/React.createElement(RadioConditional, null, show.map(function (fieldName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "2.0.0-rc.12",
3
+ "version": "2.0.0-rc.13",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -15,11 +15,11 @@
15
15
  "dayjs": "1.10.4",
16
16
  "@hookform/resolvers": "2.9.6",
17
17
  "publint": "0.1.8",
18
- "@digigov/react-icons": "2.0.0-rc.12"
18
+ "@digigov/react-icons": "2.0.0-rc.13"
19
19
  },
20
20
  "peerDependencies": {
21
- "@digigov/ui": "2.0.0-rc.12",
22
- "@digigov/react-core": "2.0.0-rc.12",
21
+ "@digigov/ui": "2.0.0-rc.13",
22
+ "@digigov/react-core": "2.0.0-rc.13",
23
23
  "clsx": "1.1.1",
24
24
  "react": "^16.8.0 || ^17.0.0",
25
25
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -92,6 +92,7 @@ export const FieldBase: React.FC<FieldBaseProps> = (props) => {
92
92
  aria-describedby={error && `${name}-error`}
93
93
  required={required}
94
94
  disabled={editable === false}
95
+ ref={undefined}
95
96
  {...componentProps}
96
97
  />
97
98
  )}
@@ -39,8 +39,5 @@ export const Label: React.FC<LabelProps> = ({ className, label, value }) => {
39
39
  );
40
40
  };
41
41
 
42
- Label.defaultProps = {
43
- label: {},
44
- };
45
42
 
46
43
  export default Label;
@@ -49,6 +49,7 @@ export const RadioButtonsGroup: React.FC<RadioButtonsGroupProps> = ({
49
49
  ...props,
50
50
  reset: undefined,
51
51
  required: undefined,
52
+ error: undefined,
52
53
  'aria-describedby': undefined,
53
54
  type: 'radio',
54
55
  }}