@deque/cauldron-react 3.0.1-canary.80ed76e7 → 3.0.1-canary.db7b06be

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.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2249,7 +2249,7 @@ var Select = React__default.forwardRef(function (_a, ref) {
2249
2249
  })
2250
2250
  : children),
2251
2251
  React__default.createElement("div", { className: "arrow-down" })),
2252
- React__default.createElement("div", { className: "Error", id: errorId }, error)));
2252
+ error && (React__default.createElement("div", { id: errorId, className: "Error" }, error))));
2253
2253
  /* eslint-disable jsx-a11y/no-onchange */
2254
2254
  });
2255
2255
  Select.displayName = 'Select';
@@ -2368,7 +2368,7 @@ var Checkbox = React.forwardRef(function (_a, ref) {
2368
2368
  (_b = checkRef.current) === null || _b === void 0 ? void 0 : _b.click();
2369
2369
  }
2370
2370
  } })),
2371
- React__default.createElement("div", { id: errorId, className: "Error" }, error)));
2371
+ error && (React__default.createElement("div", { id: errorId, className: "Error" }, error))));
2372
2372
  });
2373
2373
  Checkbox.displayName = 'Checkbox';
2374
2374
 
@@ -2475,7 +2475,7 @@ var TextField = /** @class */ (function (_super) {
2475
2475
  _this.input = input;
2476
2476
  setRef(fieldRef, input);
2477
2477
  } }, other, inputProps)),
2478
- React__default.createElement("div", { className: "Error", id: this.errorId }, error)));
2478
+ error && (React__default.createElement("div", { className: "Error", id: this.errorId }, error))));
2479
2479
  };
2480
2480
  TextField.prototype.onChange = function (e) {
2481
2481
  var _a, _b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "3.0.1-canary.80ed76e7",
3
+ "version": "3.0.1-canary.db7b06be",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"