@desynova-digital/components 8.18.0 → 8.18.2

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.
@@ -160,8 +160,8 @@ var CheckboxGroup = function CheckboxGroup(props) {
160
160
  return child ? _react2.default.cloneElement(child, {
161
161
  name: props.name,
162
162
  isDisabled: child.props.isDisabled,
163
- defaultChecked: props.selected.indexOf(child.props.value) > -1,
164
- checked: props.selected.indexOf(child.props.value) > -1, //child.props.checked,
163
+ defaultChecked: props.selected && props.selected.indexOf(child.props.value) > -1,
164
+ checked: props.selected && props.selected.indexOf(child.props.value) > -1, //child.props.checked,
165
165
  readOnly: props.readOnly || child.props.readOnly,
166
166
  onChange: child.props.isDisabled ? props.onChange : function () {},
167
167
  theme: props.theme,
@@ -512,7 +512,7 @@ var DatePicker = function (_Component) {
512
512
  return _this4.show(0);
513
513
  }
514
514
  },
515
- this.props.label
515
+ this.props.label && "" + this.props.label + (this.props.isRequired ? "*" : '')
516
516
  ) : _react2.default.createElement(
517
517
  "div",
518
518
  { className: "form-input" },
@@ -521,7 +521,7 @@ var DatePicker = function (_Component) {
521
521
  {
522
522
  className: DateUtilities.toString(this.state.selectedDate[0]).length > 0 ? "floaton" : ""
523
523
  },
524
- this.props.label
524
+ this.props.label && "" + this.props.label + (this.props.isRequired ? "*" : '')
525
525
  ),
526
526
  _react2.default.createElement("input", _extends({
527
527
  type: "text",
@@ -93,7 +93,7 @@ var InputText = function InputText(_ref) {
93
93
  htmlFor: props.id,
94
94
  className: props.value && props.value.length > 0 ? 'floaton' : ''
95
95
  },
96
- props.label
96
+ '' + props.label + (props.isRequired ? '*' : '')
97
97
  ) : '',
98
98
  errorMesssage ? _react2.default.createElement(
99
99
  InputError,
@@ -75,7 +75,7 @@ var Textarea = function Textarea(_ref) {
75
75
  htmlFor: props.id,
76
76
  className: props.value && props.value.length > 0 ? 'floaton' : ''
77
77
  },
78
- props.label
78
+ '' + props.label + (props.isRequired ? '*' : '')
79
79
  ) : '',
80
80
  errorMesssage ? _react2.default.createElement(
81
81
  InputError,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@desynova-digital/components",
3
- "version": "8.18.0",
3
+ "version": "8.18.2",
4
4
  "description": "Components for Desynova Digital",
5
5
  "main": "index.js",
6
6
  "author": "desynova-digital",
7
7
  "license": "MIT",
8
8
  "repository": "desynova-digital",
9
9
  "dependencies": {
10
- "@desynova-digital/tokens": "8.18.0",
10
+ "@desynova-digital/tokens": "8.18.2",
11
11
  "prop-types": "^15.7.2",
12
12
  "styled-components": "^4.3.2"
13
13
  },