@synerise/ds-button 1.5.17 → 1.5.18
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/CHANGELOG.md +4 -0
- package/dist/Button.d.ts +11 -13
- package/dist/Button.figma.js +39 -49
- package/dist/Button.js +72 -96
- package/dist/Button.styles.d.ts +14 -14
- package/dist/Button.styles.js +56 -105
- package/dist/Button.types.d.ts +7 -7
- package/dist/Button.types.js +11 -10
- package/dist/ButtonToggle/ButtonToggle.d.ts +2 -2
- package/dist/ButtonToggle/ButtonToggle.js +21 -25
- package/dist/ButtonToggle/ButtonToggle.styles.d.ts +2 -2
- package/dist/ButtonToggle/ButtonToggle.styles.js +14 -14
- package/dist/ButtonToggle/ButtonToggle.types.d.ts +1 -1
- package/dist/ButtonToggle/ButtonToggle.types.js +1 -1
- package/dist/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Checkbox/Checkbox.js +43 -55
- package/dist/Checkbox/Checkbox.styles.d.ts +4 -4
- package/dist/Checkbox/Checkbox.styles.js +37 -33
- package/dist/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/Checkbox/Checkbox.types.js +1 -1
- package/dist/Creator/Creator.d.ts +2 -2
- package/dist/Creator/Creator.js +25 -41
- package/dist/Creator/Creator.styles.d.ts +3 -25
- package/dist/Creator/Creator.styles.js +37 -81
- package/dist/Creator/Creator.types.d.ts +2 -2
- package/dist/Creator/Creator.types.js +9 -6
- package/dist/Expander/Expander.d.ts +2 -2
- package/dist/Expander/Expander.js +16 -22
- package/dist/Expander/Expander.styles.d.ts +4 -4
- package/dist/Expander/Expander.styles.js +19 -38
- package/dist/Expander/Expander.types.js +8 -5
- package/dist/Star/Star.d.ts +2 -2
- package/dist/Star/Star.js +17 -29
- package/dist/Star/Star.styles.d.ts +2 -2
- package/dist/Star/Star.styles.js +25 -24
- package/dist/Star/Star.types.d.ts +1 -1
- package/dist/Star/Star.types.js +1 -1
- package/dist/assets/style/index-tn0RQdqM.css +0 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.js +34 -24
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.5.18](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.17...@synerise/ds-button@1.5.18) (2026-03-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-button
|
|
9
|
+
|
|
6
10
|
## [1.5.17](https://github.com/synerise/synerise-design/compare/@synerise/ds-button@1.5.16...@synerise/ds-button@1.5.17) (2026-03-20)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @synerise/ds-button
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import '@synerise/ds-core/dist/js/style';
|
|
3
|
-
import './style/index.less';
|
|
1
|
+
import { default as React, MouseEvent } from 'react';
|
|
4
2
|
declare const Button: React.ForwardRefExoticComponent<Omit<Partial<{
|
|
5
3
|
href: string;
|
|
6
4
|
target?: string;
|
|
7
5
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
-
} & import(
|
|
9
|
-
htmlType?: import(
|
|
6
|
+
} & import('antd/lib/button/button').BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
7
|
+
htmlType?: import('antd/lib/button/button').ButtonHTMLType;
|
|
10
8
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
11
9
|
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "ghost" | "type"> & {
|
|
12
|
-
type?: import(
|
|
13
|
-
mode?: import(
|
|
14
|
-
color?: import(
|
|
15
|
-
groupVariant?: import(
|
|
16
|
-
justifyContent?: import(
|
|
10
|
+
type?: import('@synerise/ds-utils').LiteralStringUnion<import('./Button.types').ButtonType>;
|
|
11
|
+
mode?: import('@synerise/ds-utils').LiteralStringUnion<"single-icon" | "split" | "two-icons" | "label-icon" | "icon-label">;
|
|
12
|
+
color?: import('@synerise/ds-utils').LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
13
|
+
groupVariant?: import('@synerise/ds-utils').LiteralStringUnion<"left-rounded" | "squared" | "right-rounded">;
|
|
14
|
+
justifyContent?: import('csstype').JustifyContentProperty;
|
|
17
15
|
loading?: boolean | {
|
|
18
16
|
delay?: number;
|
|
19
17
|
};
|
|
20
18
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
21
|
-
iconColor?: import(
|
|
19
|
+
iconColor?: import('@synerise/ds-utils').LiteralStringUnion<"blue" | "grey" | "red" | "green" | "yellow" | "pink" | "mars" | "orange" | "fern" | "cyan" | "purple" | "violet">;
|
|
22
20
|
error?: boolean;
|
|
23
21
|
readOnly?: boolean;
|
|
24
|
-
tagProps?: import(
|
|
25
|
-
tooltipProps?: import(
|
|
22
|
+
tagProps?: import('@synerise/ds-tag').TagProps;
|
|
23
|
+
tooltipProps?: import('@synerise/ds-tooltip').TooltipProps;
|
|
26
24
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
27
25
|
export default Button;
|
package/dist/Button.figma.js
CHANGED
|
@@ -1,66 +1,56 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import figma from "@figma/code-connect";
|
|
3
|
+
import Button from "./Button.js";
|
|
4
|
+
import { ButtonMode } from "./Button.types.js";
|
|
5
|
+
const FIGMA_URL = "https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=139:4694&m=dev";
|
|
6
|
+
const typeMapping = figma.enum("Variant", {
|
|
7
|
+
Primary: "primary",
|
|
8
|
+
Secondary: "secondary",
|
|
9
|
+
Tertiary: "tertiary",
|
|
10
|
+
"Tetriary White": "tertiary-white",
|
|
11
|
+
"Ghost Primary": "ghost-primary",
|
|
12
|
+
"Ghost Secondary": "ghost",
|
|
13
|
+
"Ghost Secondary White": "ghost-white"
|
|
13
14
|
});
|
|
14
|
-
|
|
15
|
-
Simple:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const modeMapping = figma.enum("Content Type", {
|
|
16
|
+
Simple: void 0,
|
|
17
|
+
"Icon left": ButtonMode.ICON_LABEL,
|
|
18
|
+
"Icon right": ButtonMode.LABEL_ICON,
|
|
19
|
+
"Icon solo": ButtonMode.SINGLE_ICON,
|
|
20
|
+
"2 icons": ButtonMode.TWO_ICONS,
|
|
20
21
|
Split: ButtonMode.SPLIT
|
|
21
22
|
});
|
|
22
|
-
|
|
23
|
-
Normal:
|
|
24
|
-
Large:
|
|
23
|
+
const sizeMapping = figma.enum("Size", {
|
|
24
|
+
Normal: void 0,
|
|
25
|
+
Large: "large"
|
|
25
26
|
});
|
|
26
|
-
|
|
27
|
+
const baseProps = {
|
|
27
28
|
type: typeMapping,
|
|
28
29
|
mode: modeMapping,
|
|
29
30
|
size: sizeMapping,
|
|
30
|
-
label: figma.string(
|
|
31
|
+
label: figma.string("✏️Text")
|
|
31
32
|
};
|
|
32
33
|
figma.connect(Button, FIGMA_URL, {
|
|
33
34
|
variant: {
|
|
34
|
-
State:
|
|
35
|
+
State: "Default"
|
|
35
36
|
},
|
|
36
37
|
props: baseProps,
|
|
37
|
-
example:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
type: type,
|
|
44
|
-
mode: mode,
|
|
45
|
-
size: size
|
|
46
|
-
}, label);
|
|
47
|
-
}
|
|
38
|
+
example: ({
|
|
39
|
+
type,
|
|
40
|
+
mode,
|
|
41
|
+
size,
|
|
42
|
+
label
|
|
43
|
+
}) => /* @__PURE__ */ jsx(Button, { type, mode, size, children: label })
|
|
48
44
|
});
|
|
49
45
|
figma.connect(Button, FIGMA_URL, {
|
|
50
46
|
variant: {
|
|
51
|
-
State:
|
|
47
|
+
State: "Disabled"
|
|
52
48
|
},
|
|
53
49
|
props: baseProps,
|
|
54
|
-
example:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
mode: mode,
|
|
62
|
-
size: size,
|
|
63
|
-
disabled: true
|
|
64
|
-
}, label);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
50
|
+
example: ({
|
|
51
|
+
type,
|
|
52
|
+
mode,
|
|
53
|
+
size,
|
|
54
|
+
label
|
|
55
|
+
}) => /* @__PURE__ */ jsx(Button, { type, mode, size, disabled: true, children: label })
|
|
56
|
+
});
|
package/dist/Button.js
CHANGED
|
@@ -1,110 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import Tooltip from '@synerise/ds-tooltip';
|
|
9
|
-
import * as S from './Button.styles';
|
|
10
|
-
import { ButtonMode } from './Button.types';
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useRef, useState, useEffect, useMemo } from "react";
|
|
3
|
+
import Icon, { SpinnerM } from "@synerise/ds-icon";
|
|
4
|
+
import { TagShape } from "@synerise/ds-tag";
|
|
5
|
+
import Tooltip from "@synerise/ds-tooltip";
|
|
6
|
+
import { RIPPLE_ANIMATION_TIME, ButtonLabel, Tag, AntdButton, RippleEffect, Spinner, ButtonFocus } from "./Button.styles.js";
|
|
7
|
+
import { ButtonMode } from "./Button.types.js";
|
|
11
8
|
import "./style/index.css";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
rippleClassName
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
setPressed = _useState2[1];
|
|
38
|
-
useEffect(function () {
|
|
39
|
-
var rippleAnimation;
|
|
40
|
-
if (rippleClassName !== '') {
|
|
41
|
-
rippleAnimation = setTimeout(function () {
|
|
42
|
-
setRippleClassName('');
|
|
43
|
-
}, S.RIPPLE_ANIMATION_TIME - RIPPLE_ANIMATION_OFFSET);
|
|
9
|
+
const RIPPLE_ANIMATION_OFFSET = 50;
|
|
10
|
+
const Button = forwardRef(({
|
|
11
|
+
type = "secondary",
|
|
12
|
+
mode,
|
|
13
|
+
justifyContent = "center",
|
|
14
|
+
groupVariant,
|
|
15
|
+
loading = false,
|
|
16
|
+
onClick,
|
|
17
|
+
className,
|
|
18
|
+
color = "red",
|
|
19
|
+
error,
|
|
20
|
+
tagProps,
|
|
21
|
+
children,
|
|
22
|
+
tooltipProps,
|
|
23
|
+
...antdProps
|
|
24
|
+
}, forwardedRef) => {
|
|
25
|
+
const rippleRef = useRef(null);
|
|
26
|
+
const [rippleClassName, setRippleClassName] = useState("");
|
|
27
|
+
const [pressed, setPressed] = useState(false);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
let rippleAnimation;
|
|
30
|
+
if (rippleClassName !== "") {
|
|
31
|
+
rippleAnimation = setTimeout(() => {
|
|
32
|
+
setRippleClassName("");
|
|
33
|
+
}, RIPPLE_ANIMATION_TIME - RIPPLE_ANIMATION_OFFSET);
|
|
44
34
|
}
|
|
45
|
-
return
|
|
35
|
+
return () => {
|
|
46
36
|
rippleAnimation && clearTimeout(rippleAnimation);
|
|
47
37
|
};
|
|
48
38
|
}, [rippleClassName]);
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
const handleClick = (event) => {
|
|
40
|
+
const button = event.currentTarget.closest(".ant-btn");
|
|
51
41
|
if (button) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
const buttonBoundingRect = button.getBoundingClientRect();
|
|
43
|
+
const x = event.clientX - buttonBoundingRect.left;
|
|
44
|
+
const y = event.clientY - buttonBoundingRect.top;
|
|
55
45
|
if (rippleRef.current) {
|
|
56
|
-
rippleRef.current.style.cssText =
|
|
46
|
+
rippleRef.current.style.cssText = `top: ${y}px; left: ${x}px`;
|
|
57
47
|
}
|
|
58
|
-
setRippleClassName(
|
|
48
|
+
setRippleClassName("animate");
|
|
59
49
|
onClick && onClick(event);
|
|
60
50
|
}
|
|
61
51
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return
|
|
52
|
+
const classNameString = useMemo(() => {
|
|
53
|
+
const modeStringifed = mode || "";
|
|
54
|
+
const readOnlyStringifed = antdProps.readOnly ? "read-only" : "";
|
|
55
|
+
const classNameStringifed = className || "";
|
|
56
|
+
return `ds-button ${modeStringifed} ${classNameStringifed} ${readOnlyStringifed}`;
|
|
67
57
|
}, [mode, className, antdProps.readOnly]);
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
58
|
+
const buttonLabel = useMemo(() => {
|
|
59
|
+
const label = /* @__PURE__ */ jsxs(
|
|
60
|
+
ButtonLabel,
|
|
61
|
+
{
|
|
62
|
+
withTooltip: !!tooltipProps,
|
|
63
|
+
"data-testid": "ds-button-label",
|
|
64
|
+
className: "ds-button-label",
|
|
65
|
+
children: [
|
|
66
|
+
children,
|
|
67
|
+
tagProps && mode !== ButtonMode.SINGLE_ICON && /* @__PURE__ */ jsx(Tag, { ...tagProps, shape: TagShape.MEDIUM_ROUND, asPill: true })
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
return tooltipProps ? /* @__PURE__ */ jsx(Tooltip, { ...tooltipProps, children: label }) : label;
|
|
79
72
|
}, [children, tagProps, mode, tooltipProps]);
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
loading:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
setPressed(true);
|
|
91
|
-
},
|
|
92
|
-
onMouseUp: function onMouseUp() {
|
|
93
|
-
setPressed(false);
|
|
94
|
-
},
|
|
95
|
-
pressed: pressed,
|
|
96
|
-
className: classNameString,
|
|
97
|
-
customColor: color
|
|
98
|
-
}, antdProps), !antdProps.readOnly && /*#__PURE__*/React.createElement(S.RippleEffect, {
|
|
99
|
-
ref: rippleRef,
|
|
100
|
-
className: "btn-ripple " + rippleClassName
|
|
101
|
-
}), buttonLabel, loading && /*#__PURE__*/React.createElement(S.Spinner, {
|
|
102
|
-
className: "btn-spinner",
|
|
103
|
-
"data-testid": "button-spinner"
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
105
|
-
component: /*#__PURE__*/React.createElement(SpinnerM, null)
|
|
106
|
-
})), /*#__PURE__*/React.createElement(S.ButtonFocus, {
|
|
107
|
-
className: "btn-focus"
|
|
108
|
-
}));
|
|
73
|
+
return /* @__PURE__ */ jsxs(AntdButton, { ref: forwardedRef, justifyContent, type: type || "secondary", mode, error, groupVariant, loading, onClick: handleClick, onMouseDown: () => {
|
|
74
|
+
setPressed(true);
|
|
75
|
+
}, onMouseUp: () => {
|
|
76
|
+
setPressed(false);
|
|
77
|
+
}, pressed, className: classNameString, customColor: color, ...antdProps, children: [
|
|
78
|
+
!antdProps.readOnly && /* @__PURE__ */ jsx(RippleEffect, { ref: rippleRef, className: `btn-ripple ${rippleClassName}` }),
|
|
79
|
+
buttonLabel,
|
|
80
|
+
loading && /* @__PURE__ */ jsx(Spinner, { className: "btn-spinner", "data-testid": "button-spinner", children: /* @__PURE__ */ jsx(Icon, { component: /* @__PURE__ */ jsx(SpinnerM, {}) }) }),
|
|
81
|
+
/* @__PURE__ */ jsx(ButtonFocus, { className: "btn-focus" })
|
|
82
|
+
] });
|
|
109
83
|
});
|
|
110
|
-
export
|
|
84
|
+
export {
|
|
85
|
+
Button as default
|
|
86
|
+
};
|
package/dist/Button.styles.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from './Button.types';
|
|
3
3
|
export declare const RIPPLE_ANIMATION_TIME = 500;
|
|
4
|
-
export declare const Spinner: import(
|
|
5
|
-
export declare const RippleEffect: import(
|
|
6
|
-
export declare const ButtonFocus: import(
|
|
7
|
-
export declare const Tag: import(
|
|
4
|
+
export declare const Spinner: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const RippleEffect: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
6
|
+
export declare const ButtonFocus: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const Tag: import('styled-components').StyledComponent<React.ForwardRefExoticComponent<{
|
|
8
8
|
id?: string | number;
|
|
9
9
|
name?: string;
|
|
10
10
|
textColor?: string;
|
|
11
11
|
color?: string;
|
|
12
12
|
image?: string;
|
|
13
|
-
shape?: import(
|
|
13
|
+
shape?: import('@synerise/ds-tag').TagShape;
|
|
14
14
|
removable?: boolean;
|
|
15
15
|
className?: string;
|
|
16
16
|
disabled?: boolean;
|
|
@@ -18,20 +18,20 @@ export declare const Tag: import("styled-components").StyledComponent<React.Forw
|
|
|
18
18
|
onRemove?: (tag: string | number) => void;
|
|
19
19
|
prefixel?: React.ReactNode;
|
|
20
20
|
suffixel?: React.ReactNode;
|
|
21
|
-
texts?: import(
|
|
21
|
+
texts?: import('@synerise/ds-tag').TagTexts;
|
|
22
22
|
asPill?: boolean;
|
|
23
23
|
dashed?: boolean;
|
|
24
|
-
tooltipProps?: import(
|
|
25
|
-
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "className" | "id" | "color" | "disabled" | "name" | "shape" | "textColor" | "image" | "removable" | "onRemove" | "prefixel" | "suffixel" | "texts" | "asPill" | "dashed" | "tooltipProps"> & import(
|
|
26
|
-
export declare const ButtonLabel: import(
|
|
24
|
+
tooltipProps?: import('@synerise/ds-tooltip').TooltipProps;
|
|
25
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "className" | "id" | "color" | "disabled" | "name" | "shape" | "textColor" | "image" | "removable" | "onRemove" | "prefixel" | "suffixel" | "texts" | "asPill" | "dashed" | "tooltipProps"> & import('@synerise/ds-utils').DataAttributes & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
26
|
+
export declare const ButtonLabel: import('styled-components').StyledComponent<"div", any, {
|
|
27
27
|
withTooltip?: boolean;
|
|
28
28
|
}, never>;
|
|
29
|
-
export declare const AntdButton: import(
|
|
29
|
+
export declare const AntdButton: import('styled-components').StyledComponent<React.ForwardRefExoticComponent<Omit<Partial<{
|
|
30
30
|
href: string;
|
|
31
31
|
target?: string;
|
|
32
32
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
33
|
-
} & import(
|
|
34
|
-
htmlType?: import(
|
|
33
|
+
} & import('antd/lib/button/button').BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
|
|
34
|
+
htmlType?: import('antd/lib/button/button').ButtonHTMLType;
|
|
35
35
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
36
36
|
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type"> & Pick<ButtonProps, "mode" | "justifyContent" | "groupVariant" | "iconColor" | "error"> & {
|
|
37
37
|
pressed: boolean;
|