@ultraviolet/ui 1.27.2 → 1.27.3
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.
|
@@ -403,12 +403,6 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref64, ref) => {
|
|
|
403
403
|
if (!progress) onChange?.(event);
|
|
404
404
|
setState(current => current === 'indeterminate' ? false : event.target.checked);
|
|
405
405
|
}, [onChange, progress, setState]);
|
|
406
|
-
const onKeyDown = useCallback(event => {
|
|
407
|
-
if (event.key.charCodeAt(0) === 32) {
|
|
408
|
-
event.preventDefault();
|
|
409
|
-
setState(current => !current);
|
|
410
|
-
}
|
|
411
|
-
}, []);
|
|
412
406
|
return jsx(Tooltip, {
|
|
413
407
|
text: tooltip,
|
|
414
408
|
children: jsxs(CheckboxContainer, {
|
|
@@ -433,7 +427,6 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref64, ref) => {
|
|
|
433
427
|
checked: state === 'indeterminate' ? false : state,
|
|
434
428
|
size: size,
|
|
435
429
|
onChange: onLocalChange,
|
|
436
|
-
onKeyDown: onKeyDown,
|
|
437
430
|
onFocus: onFocus,
|
|
438
431
|
onBlur: onBlur,
|
|
439
432
|
disabled: disabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.3",
|
|
4
4
|
"description": "Ultraviolet UI",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react-use-clipboard": "1.0.9",
|
|
68
68
|
"reakit": "1.3.11",
|
|
69
69
|
"@ultraviolet/themes": "1.5.0",
|
|
70
|
-
"@ultraviolet/icons": "2.
|
|
70
|
+
"@ultraviolet/icons": "2.6.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "rollup -c ../../rollup.config.mjs"
|