@veritone-ce/design-system 2.4.28 → 2.4.29

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.
@@ -45,9 +45,11 @@ const Checkbox = React.forwardRef(
45
45
  "aria-checked": indeterminate ? "mixed" : checked ?? defaultChecked,
46
46
  "aria-disabled": disabled,
47
47
  onClick: (e) => {
48
- inputRef.current?.click();
49
- e.stopPropagation();
50
- e.preventDefault();
48
+ if (e.target !== inputRef.current) {
49
+ inputRef.current?.click();
50
+ e.stopPropagation();
51
+ e.preventDefault();
52
+ }
51
53
  },
52
54
  "data-testid": dataTestId,
53
55
  style,
@@ -41,9 +41,11 @@ const Checkbox = forwardRef(
41
41
  "aria-checked": indeterminate ? "mixed" : checked ?? defaultChecked,
42
42
  "aria-disabled": disabled,
43
43
  onClick: (e) => {
44
- inputRef.current?.click();
45
- e.stopPropagation();
46
- e.preventDefault();
44
+ if (e.target !== inputRef.current) {
45
+ inputRef.current?.click();
46
+ e.stopPropagation();
47
+ e.preventDefault();
48
+ }
47
49
  },
48
50
  "data-testid": dataTestId,
49
51
  style,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "2.4.28",
3
+ "version": "2.4.29",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [
@@ -65,7 +65,8 @@
65
65
  "types:check:build": "tsc --project tsconfig.build.json --noEmit",
66
66
  "types:emit": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist/types --noEmit false",
67
67
  "publish:local": "yarn build && npx yalc publish",
68
- "generate:scss:theme": "node ./scripts/virtual-scss-theme/generator.cjs"
68
+ "generate:scss:theme": "node ./scripts/virtual-scss-theme/generator.cjs",
69
+ "test:coverage": "vitest --coverage"
69
70
  },
70
71
  "lint-staged": {
71
72
  "*.{js,jsx,ts,tsx}": "eslint --cache --fix",