@remotion/design 4.0.382 → 4.0.384

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/dist/Button.js CHANGED
@@ -26,7 +26,7 @@ export const Button = ({ children, className, disabled, depth, loading, ...butto
26
26
  }
27
27
  const rect = childNode.getBoundingClientRect();
28
28
  const { borderRadius } = getComputedStyle(childNode);
29
- const cornerRadius = borderRadius.includes('e+0')
29
+ const cornerRadius = borderRadius.includes('e')
30
30
  ? Infinity
31
31
  : parseInt(borderRadius ?? '0', 10);
32
32
  const newCornerRadius = Math.min(cornerRadius, rect.width / 2, rect.height / 2);
@@ -390,7 +390,7 @@ var Button = ({ children, className, disabled, depth, loading, ...buttonProps })
390
390
  }
391
391
  const rect = childNode.getBoundingClientRect();
392
392
  const { borderRadius } = getComputedStyle(childNode);
393
- const cornerRadius = borderRadius.includes("e+0") ? Infinity : parseInt(borderRadius ?? "0", 10);
393
+ const cornerRadius = borderRadius.includes("e") ? Infinity : parseInt(borderRadius ?? "0", 10);
394
394
  const newCornerRadius = Math.min(cornerRadius, rect.width / 2, rect.height / 2);
395
395
  if (prevDim) {
396
396
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/design",
3
- "version": "4.0.382",
3
+ "version": "4.0.384",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/esm/index.mjs",
@@ -19,11 +19,11 @@
19
19
  "make": "tsc -d && bun --env-file=../.env.bundle bundle.ts"
20
20
  },
21
21
  "dependencies": {
22
- "@remotion/paths": "4.0.382",
23
- "@remotion/shapes": "4.0.382",
24
- "@remotion/svg-3d-engine": "4.0.382",
22
+ "@remotion/paths": "4.0.384",
23
+ "@remotion/shapes": "4.0.384",
24
+ "@remotion/svg-3d-engine": "4.0.384",
25
25
  "clsx": "^2.1.1",
26
- "remotion": "4.0.382",
26
+ "remotion": "4.0.384",
27
27
  "@radix-ui/react-select": "2.1.1",
28
28
  "lucide-react": "0.439.0"
29
29
  },
@@ -32,7 +32,7 @@
32
32
  "react-dom": ">=16.8.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@remotion/eslint-config-internal": "4.0.382",
35
+ "@remotion/eslint-config-internal": "4.0.384",
36
36
  "eslint": "9.19.0",
37
37
  "react": "19.2.1",
38
38
  "react-dom": "19.2.1",