diff --git a/package-lock.json b/package-lock.json index a3055d43b..0d9507003 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11740,13 +11740,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.28.0.tgz", - "integrity": "sha512-vrHs5DFTPwYox5SGKq/7TDn/S4q6RA1zArd7uhO6EyP9hj3XgZBBM12ktMbnDQNxh/fL1IUKsTNLxihmsU38lQ==", + "version": "1.29.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.29.1.tgz", + "integrity": "sha512-iQxk2DX5U9wOGV3+/Jh9OHPsw5H3mleUL2S4BgQuwtlAfK3PnKvn38m4Rg9zIViGHVW24opSm99HQm/UFLEy6w==", "dev": true, "dependencies": { "@types/node": "*", - "playwright-core": "1.28.0" + "playwright-core": "1.29.1" }, "bin": { "playwright": "cli.js" @@ -11756,9 +11756,9 @@ } }, "node_modules/@playwright/test/node_modules/playwright-core": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.28.0.tgz", - "integrity": "sha512-nJLknd28kPBiCNTbqpu6Wmkrh63OEqJSFw9xOfL9qxfNwody7h6/L3O2dZoWQ6Oxcm0VOHjWmGiCUGkc0X3VZA==", + "version": "1.29.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.29.1.tgz", + "integrity": "sha512-20Ai3d+lMkWpI9YZYlxk8gxatfgax5STW8GaMozAHwigLiyiKQrdkt7gaoT9UQR8FIVDg6qVXs9IoZUQrDjIIg==", "dev": true, "bin": { "playwright": "cli.js" @@ -62313,19 +62313,19 @@ } }, "@playwright/test": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.28.0.tgz", - "integrity": "sha512-vrHs5DFTPwYox5SGKq/7TDn/S4q6RA1zArd7uhO6EyP9hj3XgZBBM12ktMbnDQNxh/fL1IUKsTNLxihmsU38lQ==", + "version": "1.29.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.29.1.tgz", + "integrity": "sha512-iQxk2DX5U9wOGV3+/Jh9OHPsw5H3mleUL2S4BgQuwtlAfK3PnKvn38m4Rg9zIViGHVW24opSm99HQm/UFLEy6w==", "dev": true, "requires": { "@types/node": "*", - "playwright-core": "1.28.0" + "playwright-core": "1.29.1" }, "dependencies": { "playwright-core": { - "version": "1.28.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.28.0.tgz", - "integrity": "sha512-nJLknd28kPBiCNTbqpu6Wmkrh63OEqJSFw9xOfL9qxfNwody7h6/L3O2dZoWQ6Oxcm0VOHjWmGiCUGkc0X3VZA==", + "version": "1.29.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.29.1.tgz", + "integrity": "sha512-20Ai3d+lMkWpI9YZYlxk8gxatfgax5STW8GaMozAHwigLiyiKQrdkt7gaoT9UQR8FIVDg6qVXs9IoZUQrDjIIg==", "dev": true } } diff --git a/ui/checkbox/src/Checkbox.tsx b/ui/checkbox/src/Checkbox.tsx index 182850c2a..10c678490 100644 --- a/ui/checkbox/src/Checkbox.tsx +++ b/ui/checkbox/src/Checkbox.tsx @@ -300,7 +300,7 @@ export const Checkbox = React.forwardRef( - {props.label} + {props.label || props.children} {props.required && *} ); diff --git a/ui/checkbox/src/play.stories.jsx b/ui/checkbox/src/play.stories.jsx index 9d21b5310..3d8e84990 100644 --- a/ui/checkbox/src/play.stories.jsx +++ b/ui/checkbox/src/play.stories.jsx @@ -190,6 +190,9 @@ const ChromaticTemplate = () => { id="l1" /> + + Checkbox 3 +