@veritone-ce/design-system 2.4.27 → 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.27",
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",
@@ -104,14 +105,14 @@
104
105
  "@mui/material": "^5.10.8",
105
106
  "@mui/system": "^5.15.0",
106
107
  "@rpldy/mock-sender": "^1.8.1",
107
- "@storybook/addon-a11y": "^7.6.17",
108
- "@storybook/addon-essentials": "^7.6.17",
109
- "@storybook/addon-interactions": "^7.6.17",
110
- "@storybook/addon-links": "^7.6.17",
111
- "@storybook/blocks": "^7.6.17",
112
- "@storybook/react": "^7.6.17",
113
- "@storybook/react-vite": "^7.6.17",
114
- "@storybook/testing-library": "^0.2.0",
108
+ "@storybook/addon-a11y": "^8.4.6",
109
+ "@storybook/addon-essentials": "^8.4.6",
110
+ "@storybook/addon-interactions": "^8.4.6",
111
+ "@storybook/addon-links": "^8.4.6",
112
+ "@storybook/blocks": "^8.4.6",
113
+ "@storybook/react": "^8.4.6",
114
+ "@storybook/react-vite": "^8.4.6",
115
+ "@storybook/test": "^8.4.6",
115
116
  "@testing-library/jest-dom": "^5.14.1",
116
117
  "@testing-library/react": "^13.4.0",
117
118
  "@testing-library/user-event": "^14.5.2",
@@ -121,6 +122,7 @@
121
122
  "@types/react-syntax-highlighter": "^15.5.11",
122
123
  "@typescript-eslint/eslint-plugin": "^6.7.0",
123
124
  "@typescript-eslint/parser": "^6.7.0",
125
+ "@vitejs/plugin-react": "^4.3.4",
124
126
  "@vitest/coverage-v8": "^1.3.1",
125
127
  "auto": "^11.1.1",
126
128
  "autoprefixer": "^10.4.17",
@@ -129,13 +131,14 @@
129
131
  "cz-conventional-changelog": "^3.3.0",
130
132
  "esbuild": "^0.19.11",
131
133
  "esbuild-runner": "^2.2.2",
134
+ "escodegen": "^2.1.0",
132
135
  "eslint": "^8.49.0",
133
136
  "eslint-config-prettier": "^9.0.0",
134
137
  "eslint-plugin-import": "^2.29.1",
135
138
  "eslint-plugin-prettier": "^5.0.0",
136
139
  "eslint-plugin-react": "^7.33.2",
137
140
  "eslint-plugin-react-hooks": "^4.6.0",
138
- "eslint-plugin-storybook": "^0.6.13",
141
+ "eslint-plugin-storybook": "^0.11.1",
139
142
  "husky": "8.0.2",
140
143
  "identity-obj-proxy": "^3.0.0",
141
144
  "jsdom": "^24.0.0",
@@ -151,14 +154,14 @@
151
154
  "rollup-plugin-copy": "^3.5.0",
152
155
  "rollup-plugin-delete": "^2.0.0",
153
156
  "rollup-plugin-esbuild": "^6.1.0",
154
- "rollup-plugin-jsx-remove-attributes": "^1.0.1",
157
+ "rollup-plugin-jsx-remove-attributes": "^2.1.0",
155
158
  "rollup-plugin-postcss": "^4.0.2",
156
159
  "rollup-plugin-preserve-directives": "^0.3.0",
157
160
  "sass": "^1.70.0",
158
- "storybook": "^7.6.17",
161
+ "storybook": "^8.4.6",
159
162
  "typescript": "^5.0.0",
160
163
  "typescript-plugin-css-modules": "^5.0.2",
161
- "vite": "^5.1.5",
164
+ "vite": "^6.0.2",
162
165
  "vitest": "^1.3.1"
163
166
  },
164
167
  "peerDependencies": {
@@ -167,8 +170,8 @@
167
170
  "@mui/icons-material": "^5.10.6",
168
171
  "@mui/material": "^5.10.8",
169
172
  "@mui/system": "^5.15.0",
170
- "react": "^18.2.0",
171
- "react-dom": "^18.2.0"
173
+ "react": ">=18.2.0",
174
+ "react-dom": ">=18.2.0"
172
175
  },
173
176
  "readme": "ERROR: No README data found!",
174
177
  "publishConfig": {