@vention/machine-ui 4.1.3 → 4.2.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.
package/index.esm.js CHANGED
@@ -8702,7 +8702,8 @@ const VentionSwitch = props => {
8702
8702
  checked,
8703
8703
  size,
8704
8704
  disabled,
8705
- onChange
8705
+ onChange,
8706
+ "data-testid": dataTestId = "vention-switch-root"
8706
8707
  } = props;
8707
8708
  const {
8708
8709
  classes,
@@ -8725,7 +8726,7 @@ const VentionSwitch = props => {
8725
8726
  "aria-checked": getAriaChecked(checked),
8726
8727
  "aria-disabled": disabled ? true : undefined,
8727
8728
  className: classes.root,
8728
- "data-testid": "vention-switch-root",
8729
+ "data-testid": dataTestId,
8729
8730
  onClick: handleOnchange,
8730
8731
  children: [checked === "mixed" ? /*#__PURE__*/jsx(IconMinus, {
8731
8732
  "data-testid": "vention-switch-minus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-ui",
3
- "version": "4.1.3",
3
+ "version": "4.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -19,5 +19,5 @@
19
19
  },
20
20
  "module": "./index.esm.js",
21
21
  "main": "./index.esm.js",
22
- "types": "./index.esm.d.ts"
22
+ "types": "./index.d.ts"
23
23
  }
@@ -7,6 +7,7 @@ interface VentionSwitchProps {
7
7
  onChange?: (checked: "on" | "off") => void;
8
8
  disabled?: SwitchProps["disabled"];
9
9
  variant?: Variant;
10
+ "data-testid"?: string;
10
11
  }
11
12
  export declare const VentionSwitch: (props: VentionSwitchProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};
File without changes