@deque/cauldron-react 6.1.0-canary.9bf6c09d → 6.1.0-canary.b350c521

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/lib/index.js CHANGED
@@ -2372,7 +2372,7 @@ var TextField = /** @class */ (function (_super) {
2372
2372
  TextField.prototype.onChange = function (e) {
2373
2373
  var _a, _b;
2374
2374
  if (this.props.onChange) {
2375
- this.props.onChange(((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) || '', e);
2375
+ this.props.onChange(((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) || /* istanbul ignore next: default value */ '', e);
2376
2376
  }
2377
2377
  if (typeof this.props.value !== 'undefined') {
2378
2378
  return;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -4,7 +4,7 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
4
4
  error?: React.ReactNode;
5
5
  defaultValue?: string;
6
6
  onChange?: (value: string, e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
7
- fieldRef: React.Ref<HTMLInputElement | HTMLTextAreaElement>;
7
+ fieldRef?: React.Ref<HTMLInputElement | HTMLTextAreaElement>;
8
8
  requiredText?: string;
9
9
  multiline?: boolean;
10
10
  }
@@ -1 +1 @@
1
- export default function setRef<T>(ref: React.Ref<T>, element: T): void;
1
+ export default function setRef<T>(ref: React.Ref<T> | undefined, element: T): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.1.0-canary.9bf6c09d",
3
+ "version": "6.1.0-canary.b350c521",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",
@@ -44,7 +44,8 @@
44
44
  "@rollup/plugin-typescript": "^11.1.2",
45
45
  "@svgr/rollup": "^6.1.2",
46
46
  "@testing-library/jest-dom": "^6.1.3",
47
- "@testing-library/react": "11.1.2",
47
+ "@testing-library/react": "^12",
48
+ "@testing-library/user-event": "^14.5.2",
48
49
  "@types/classnames": "^2.2.10",
49
50
  "@types/enzyme-adapter-react-16": "^1.0.9",
50
51
  "@types/jest": "^29.5.11",