@mirohq/design-system-icon-button 1.2.2-button.0 → 1.2.3-test-changelog.0
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/main.js +19 -129
- package/dist/main.js.map +1 -1
- package/dist/module.js +20 -130
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -442
- package/package.json +7 -7
package/dist/main.js
CHANGED
|
@@ -5,154 +5,44 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var designSystemTooltip = require('@mirohq/design-system-tooltip');
|
|
7
7
|
var designSystemBadge = require('@mirohq/design-system-badge');
|
|
8
|
-
var designSystemUtils = require('@mirohq/design-system-utils');
|
|
9
|
-
var designSystemStitches = require('@mirohq/design-system-stitches');
|
|
10
8
|
var designSystemBaseButton = require('@mirohq/design-system-base-button');
|
|
11
9
|
|
|
12
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
11
|
|
|
14
12
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
15
13
|
|
|
16
|
-
const activeSelector = "&:active, &[data-pressed]";
|
|
17
|
-
const disabledSelector = '&[disabled], &[aria-disabled="true"]';
|
|
18
|
-
const StyledIconButton = designSystemStitches.styled(designSystemBaseButton.BaseButton, {
|
|
19
|
-
variants: {
|
|
20
|
-
variant: {
|
|
21
|
-
"solid-prominent": {
|
|
22
|
-
backgroundColor: "$background-primary-prominent",
|
|
23
|
-
color: "$icon-primary-inverted",
|
|
24
|
-
"&[data-focused]": {
|
|
25
|
-
boxShadow: "$focus-small"
|
|
26
|
-
},
|
|
27
|
-
"&:hover": {
|
|
28
|
-
backgroundColor: "$background-primary-prominent-hover"
|
|
29
|
-
},
|
|
30
|
-
[activeSelector]: {
|
|
31
|
-
backgroundColor: "$background-primary-prominent-active"
|
|
32
|
-
},
|
|
33
|
-
[disabledSelector]: {
|
|
34
|
-
backgroundColor: "$background-neutrals-disabled",
|
|
35
|
-
color: "$icon-neutrals-disabled"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"solid-subtle": {
|
|
39
|
-
backgroundColor: "$background-neutrals-subtle",
|
|
40
|
-
color: "$icon-neutrals",
|
|
41
|
-
"&[data-focused]": {
|
|
42
|
-
boxShadow: "$focus-small"
|
|
43
|
-
},
|
|
44
|
-
"&:hover": {
|
|
45
|
-
backgroundColor: "$background-neutrals-subtle-hover"
|
|
46
|
-
},
|
|
47
|
-
[activeSelector]: {
|
|
48
|
-
backgroundColor: "$background-neutrals-subtle-active"
|
|
49
|
-
},
|
|
50
|
-
[disabledSelector]: {
|
|
51
|
-
backgroundColor: "$background-neutrals-disabled",
|
|
52
|
-
color: "$icon-neutrals-disabled"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
outline: {
|
|
56
|
-
backgroundColor: "$background-neutrals",
|
|
57
|
-
color: "$icon-neutrals",
|
|
58
|
-
border: "1px solid $border-neutrals",
|
|
59
|
-
"&[data-focused]": {
|
|
60
|
-
boxShadow: "$focus-small-outline",
|
|
61
|
-
borderColor: "$blue-500 !important"
|
|
62
|
-
},
|
|
63
|
-
"&:hover": {
|
|
64
|
-
backgroundColor: "$background-neutrals-subtle-hover",
|
|
65
|
-
borderColor: "$border-neutrals-hover"
|
|
66
|
-
},
|
|
67
|
-
[activeSelector]: {
|
|
68
|
-
backgroundColor: "$background-neutrals-subtle-active",
|
|
69
|
-
borderColor: "$border-neutrals-active"
|
|
70
|
-
},
|
|
71
|
-
[disabledSelector]: {
|
|
72
|
-
backgroundColor: "$background-neutrals",
|
|
73
|
-
color: "$icon-neutrals-disabled",
|
|
74
|
-
borderColor: "$border-neutrals-disabled"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
ghost: {
|
|
78
|
-
color: "$icon-neutrals",
|
|
79
|
-
backgroundColor: "transparent",
|
|
80
|
-
"&[data-focused]": {
|
|
81
|
-
boxShadow: "$focus-small"
|
|
82
|
-
},
|
|
83
|
-
"&:hover": {
|
|
84
|
-
backgroundColor: "$background-neutrals-subtle-hover"
|
|
85
|
-
},
|
|
86
|
-
[activeSelector]: {
|
|
87
|
-
backgroundColor: "$background-neutrals-subtle-active"
|
|
88
|
-
},
|
|
89
|
-
[disabledSelector]: {
|
|
90
|
-
color: "$icon-neutrals-disabled",
|
|
91
|
-
backgroundColor: "$transparent"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
size: {
|
|
96
|
-
medium: {
|
|
97
|
-
height: designSystemBaseButton.sizes.medium,
|
|
98
|
-
width: designSystemBaseButton.sizes.medium,
|
|
99
|
-
paddingX: "$50"
|
|
100
|
-
},
|
|
101
|
-
large: {
|
|
102
|
-
height: designSystemBaseButton.sizes.large,
|
|
103
|
-
width: designSystemBaseButton.sizes.large,
|
|
104
|
-
paddingX: "$100"
|
|
105
|
-
},
|
|
106
|
-
"x-large": {
|
|
107
|
-
height: designSystemBaseButton.sizes.xLarge,
|
|
108
|
-
width: designSystemBaseButton.sizes.xLarge,
|
|
109
|
-
paddingX: "$150"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
14
|
const IconButton = React__default["default"].forwardRef(
|
|
116
15
|
({
|
|
117
16
|
children,
|
|
118
17
|
showBadge = false,
|
|
119
18
|
badgeContent,
|
|
120
19
|
label,
|
|
121
|
-
onPress,
|
|
122
|
-
onClick,
|
|
123
20
|
tooltipDelayDuration,
|
|
124
21
|
tooltipSkipDelayDuration,
|
|
125
22
|
tooltipAlign = "center",
|
|
126
23
|
tooltipSide = "bottom",
|
|
127
24
|
variant = "ghost",
|
|
128
25
|
size = "large",
|
|
129
|
-
"aria-label": ariaLabel,
|
|
130
26
|
...restProps
|
|
131
|
-
}, forwardRef) => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}, formattedChildren))), /* @__PURE__ */ React__default["default"].createElement(designSystemTooltip.Tooltip.Content, {
|
|
151
|
-
align: tooltipAlign,
|
|
152
|
-
side: tooltipSide,
|
|
153
|
-
hideWhenDetached: true
|
|
154
|
-
}, label));
|
|
155
|
-
}
|
|
27
|
+
}, forwardRef) => /* @__PURE__ */ React__default["default"].createElement(designSystemTooltip.Tooltip, {
|
|
28
|
+
delayDuration: tooltipDelayDuration,
|
|
29
|
+
skipDelayDuration: tooltipSkipDelayDuration
|
|
30
|
+
}, /* @__PURE__ */ React__default["default"].createElement(designSystemTooltip.Tooltip.Trigger, {
|
|
31
|
+
asChild: true
|
|
32
|
+
}, /* @__PURE__ */ React__default["default"].createElement(designSystemBaseButton.BaseButton, {
|
|
33
|
+
...restProps,
|
|
34
|
+
variant,
|
|
35
|
+
size,
|
|
36
|
+
ref: forwardRef
|
|
37
|
+
}, /* @__PURE__ */ React__default["default"].createElement(designSystemBadge.Badge, {
|
|
38
|
+
show: showBadge,
|
|
39
|
+
content: badgeContent,
|
|
40
|
+
inverted: variant === "solid-prominent"
|
|
41
|
+
}, children))), /* @__PURE__ */ React__default["default"].createElement(designSystemTooltip.Tooltip.Content, {
|
|
42
|
+
align: tooltipAlign,
|
|
43
|
+
side: tooltipSide,
|
|
44
|
+
hideWhenDetached: true
|
|
45
|
+
}, label))
|
|
156
46
|
);
|
|
157
47
|
|
|
158
48
|
exports.IconButton = IconButton;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/icon-
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/icon-button.tsx"],"sourcesContent":["import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { TooltipContentProps } from '@mirohq/design-system-tooltip'\nimport { Tooltip } from '@mirohq/design-system-tooltip'\nimport { Badge } from '@mirohq/design-system-badge'\nimport type { BaseButtonProps } from '@mirohq/design-system-base-button'\nimport { BaseButton } from '@mirohq/design-system-base-button'\n\nexport interface IconButtonProps extends BaseButtonProps {\n /**\n * Icon button label used to provide a description.\n */\n label: string\n\n /**\n * The duration of a the delay before a tooltip is shown.\n */\n tooltipDelayDuration?: number\n\n /**\n * \tHow much time a user has to enter another trigger without incurring a\n * \tdelay again.\n */\n tooltipSkipDelayDuration?: number\n\n /**\n * The preferred side of the trigger to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled.\n */\n tooltipSide?: TooltipContentProps['side']\n\n /**\n * The preferred alignment against the trigger. May change when collisions\n * occur.\n */\n tooltipAlign?: TooltipContentProps['align']\n\n /**\n * Wraps the Icon button with a badge.\n */\n showBadge?: boolean\n\n /**\n * The content to be displayed inside of the badge.\n */\n badgeContent?: string\n}\n\nexport const IconButton = React.forwardRef<\n ElementRef<typeof BaseButton>,\n IconButtonProps\n>(\n (\n {\n children,\n showBadge = false,\n badgeContent,\n label,\n tooltipDelayDuration,\n tooltipSkipDelayDuration,\n tooltipAlign = 'center',\n tooltipSide = 'bottom',\n variant = 'ghost',\n size = 'large',\n ...restProps\n },\n forwardRef\n ) => (\n <Tooltip\n delayDuration={tooltipDelayDuration}\n skipDelayDuration={tooltipSkipDelayDuration}\n >\n <Tooltip.Trigger asChild>\n <BaseButton\n {...restProps}\n variant={variant}\n size={size}\n ref={forwardRef}\n >\n <Badge\n show={showBadge}\n content={badgeContent}\n inverted={variant === 'solid-prominent'}\n >\n {children}\n </Badge>\n </BaseButton>\n </Tooltip.Trigger>\n <Tooltip.Content align={tooltipAlign} side={tooltipSide} hideWhenDetached>\n {label}\n </Tooltip.Content>\n </Tooltip>\n )\n)\n"],"names":["React","Tooltip","BaseButton","Badge"],"mappings":";;;;;;;;;;;;;AAgDO,MAAM,aAAaA,yBAAM,CAAA,UAAA;AAAA,EAI9B,CACE;AAAA,IACE,QAAA;AAAA,IACA,SAAY,GAAA,KAAA;AAAA,IACZ,YAAA;AAAA,IACA,KAAA;AAAA,IACA,oBAAA;AAAA,IACA,wBAAA;AAAA,IACA,YAAe,GAAA,QAAA;AAAA,IACf,WAAc,GAAA,QAAA;AAAA,IACd,OAAU,GAAA,OAAA;AAAA,IACV,IAAO,GAAA,OAAA;AAAA,IACJ,GAAA,SAAA;AAAA,GACL,EACA,+BAECA,yBAAA,CAAA,aAAA,CAAAC,2BAAA,EAAA;AAAA,IACC,aAAe,EAAA,oBAAA;AAAA,IACf,iBAAmB,EAAA,wBAAA;AAAA,GAEnB,kBAAAD,yBAAA,CAAA,aAAA,CAACC,4BAAQ,OAAR,EAAA;AAAA,IAAgB,OAAO,EAAA,IAAA;AAAA,GAAA,kBACrBD,yBAAA,CAAA,aAAA,CAAAE,iCAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,OAAA;AAAA,IACA,IAAA;AAAA,IACA,GAAK,EAAA,UAAA;AAAA,GAAA,kBAEJF,yBAAA,CAAA,aAAA,CAAAG,uBAAA,EAAA;AAAA,IACC,IAAM,EAAA,SAAA;AAAA,IACN,OAAS,EAAA,YAAA;AAAA,IACT,UAAU,OAAY,KAAA,iBAAA;AAAA,GAAA,EAErB,QACH,CACF,CACF,CACA,kBAAAH,yBAAA,CAAA,aAAA,CAACC,4BAAQ,OAAR,EAAA;AAAA,IAAgB,KAAO,EAAA,YAAA;AAAA,IAAc,IAAM,EAAA,WAAA;AAAA,IAAa,gBAAgB,EAAA,IAAA;AAAA,GAAA,EACtE,KACH,CACF,CAAA;AAEJ;;;;"}
|
package/dist/module.js
CHANGED
|
@@ -1,108 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tooltip } from '@mirohq/design-system-tooltip';
|
|
3
3
|
import { Badge } from '@mirohq/design-system-badge';
|
|
4
|
-
import {
|
|
5
|
-
import { styled } from '@mirohq/design-system-stitches';
|
|
6
|
-
import { BaseButton, sizes } from '@mirohq/design-system-base-button';
|
|
7
|
-
|
|
8
|
-
const activeSelector = "&:active, &[data-pressed]";
|
|
9
|
-
const disabledSelector = '&[disabled], &[aria-disabled="true"]';
|
|
10
|
-
const StyledIconButton = styled(BaseButton, {
|
|
11
|
-
variants: {
|
|
12
|
-
variant: {
|
|
13
|
-
"solid-prominent": {
|
|
14
|
-
backgroundColor: "$background-primary-prominent",
|
|
15
|
-
color: "$icon-primary-inverted",
|
|
16
|
-
"&[data-focused]": {
|
|
17
|
-
boxShadow: "$focus-small"
|
|
18
|
-
},
|
|
19
|
-
"&:hover": {
|
|
20
|
-
backgroundColor: "$background-primary-prominent-hover"
|
|
21
|
-
},
|
|
22
|
-
[activeSelector]: {
|
|
23
|
-
backgroundColor: "$background-primary-prominent-active"
|
|
24
|
-
},
|
|
25
|
-
[disabledSelector]: {
|
|
26
|
-
backgroundColor: "$background-neutrals-disabled",
|
|
27
|
-
color: "$icon-neutrals-disabled"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"solid-subtle": {
|
|
31
|
-
backgroundColor: "$background-neutrals-subtle",
|
|
32
|
-
color: "$icon-neutrals",
|
|
33
|
-
"&[data-focused]": {
|
|
34
|
-
boxShadow: "$focus-small"
|
|
35
|
-
},
|
|
36
|
-
"&:hover": {
|
|
37
|
-
backgroundColor: "$background-neutrals-subtle-hover"
|
|
38
|
-
},
|
|
39
|
-
[activeSelector]: {
|
|
40
|
-
backgroundColor: "$background-neutrals-subtle-active"
|
|
41
|
-
},
|
|
42
|
-
[disabledSelector]: {
|
|
43
|
-
backgroundColor: "$background-neutrals-disabled",
|
|
44
|
-
color: "$icon-neutrals-disabled"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
outline: {
|
|
48
|
-
backgroundColor: "$background-neutrals",
|
|
49
|
-
color: "$icon-neutrals",
|
|
50
|
-
border: "1px solid $border-neutrals",
|
|
51
|
-
"&[data-focused]": {
|
|
52
|
-
boxShadow: "$focus-small-outline",
|
|
53
|
-
borderColor: "$blue-500 !important"
|
|
54
|
-
},
|
|
55
|
-
"&:hover": {
|
|
56
|
-
backgroundColor: "$background-neutrals-subtle-hover",
|
|
57
|
-
borderColor: "$border-neutrals-hover"
|
|
58
|
-
},
|
|
59
|
-
[activeSelector]: {
|
|
60
|
-
backgroundColor: "$background-neutrals-subtle-active",
|
|
61
|
-
borderColor: "$border-neutrals-active"
|
|
62
|
-
},
|
|
63
|
-
[disabledSelector]: {
|
|
64
|
-
backgroundColor: "$background-neutrals",
|
|
65
|
-
color: "$icon-neutrals-disabled",
|
|
66
|
-
borderColor: "$border-neutrals-disabled"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
ghost: {
|
|
70
|
-
color: "$icon-neutrals",
|
|
71
|
-
backgroundColor: "transparent",
|
|
72
|
-
"&[data-focused]": {
|
|
73
|
-
boxShadow: "$focus-small"
|
|
74
|
-
},
|
|
75
|
-
"&:hover": {
|
|
76
|
-
backgroundColor: "$background-neutrals-subtle-hover"
|
|
77
|
-
},
|
|
78
|
-
[activeSelector]: {
|
|
79
|
-
backgroundColor: "$background-neutrals-subtle-active"
|
|
80
|
-
},
|
|
81
|
-
[disabledSelector]: {
|
|
82
|
-
color: "$icon-neutrals-disabled",
|
|
83
|
-
backgroundColor: "$transparent"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
size: {
|
|
88
|
-
medium: {
|
|
89
|
-
height: sizes.medium,
|
|
90
|
-
width: sizes.medium,
|
|
91
|
-
paddingX: "$50"
|
|
92
|
-
},
|
|
93
|
-
large: {
|
|
94
|
-
height: sizes.large,
|
|
95
|
-
width: sizes.large,
|
|
96
|
-
paddingX: "$100"
|
|
97
|
-
},
|
|
98
|
-
"x-large": {
|
|
99
|
-
height: sizes.xLarge,
|
|
100
|
-
width: sizes.xLarge,
|
|
101
|
-
paddingX: "$150"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
});
|
|
4
|
+
import { BaseButton } from '@mirohq/design-system-base-button';
|
|
106
5
|
|
|
107
6
|
const IconButton = React.forwardRef(
|
|
108
7
|
({
|
|
@@ -110,41 +9,32 @@ const IconButton = React.forwardRef(
|
|
|
110
9
|
showBadge = false,
|
|
111
10
|
badgeContent,
|
|
112
11
|
label,
|
|
113
|
-
onPress,
|
|
114
|
-
onClick,
|
|
115
12
|
tooltipDelayDuration,
|
|
116
13
|
tooltipSkipDelayDuration,
|
|
117
14
|
tooltipAlign = "center",
|
|
118
15
|
tooltipSide = "bottom",
|
|
119
16
|
variant = "ghost",
|
|
120
17
|
size = "large",
|
|
121
|
-
"aria-label": ariaLabel,
|
|
122
18
|
...restProps
|
|
123
|
-
}, forwardRef) => {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}, formattedChildren))), /* @__PURE__ */ React.createElement(Tooltip.Content, {
|
|
143
|
-
align: tooltipAlign,
|
|
144
|
-
side: tooltipSide,
|
|
145
|
-
hideWhenDetached: true
|
|
146
|
-
}, label));
|
|
147
|
-
}
|
|
19
|
+
}, forwardRef) => /* @__PURE__ */ React.createElement(Tooltip, {
|
|
20
|
+
delayDuration: tooltipDelayDuration,
|
|
21
|
+
skipDelayDuration: tooltipSkipDelayDuration
|
|
22
|
+
}, /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
23
|
+
asChild: true
|
|
24
|
+
}, /* @__PURE__ */ React.createElement(BaseButton, {
|
|
25
|
+
...restProps,
|
|
26
|
+
variant,
|
|
27
|
+
size,
|
|
28
|
+
ref: forwardRef
|
|
29
|
+
}, /* @__PURE__ */ React.createElement(Badge, {
|
|
30
|
+
show: showBadge,
|
|
31
|
+
content: badgeContent,
|
|
32
|
+
inverted: variant === "solid-prominent"
|
|
33
|
+
}, children))), /* @__PURE__ */ React.createElement(Tooltip.Content, {
|
|
34
|
+
align: tooltipAlign,
|
|
35
|
+
side: tooltipSide,
|
|
36
|
+
hideWhenDetached: true
|
|
37
|
+
}, label))
|
|
148
38
|
);
|
|
149
39
|
|
|
150
40
|
export { IconButton };
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/icon-
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/icon-button.tsx"],"sourcesContent":["import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { TooltipContentProps } from '@mirohq/design-system-tooltip'\nimport { Tooltip } from '@mirohq/design-system-tooltip'\nimport { Badge } from '@mirohq/design-system-badge'\nimport type { BaseButtonProps } from '@mirohq/design-system-base-button'\nimport { BaseButton } from '@mirohq/design-system-base-button'\n\nexport interface IconButtonProps extends BaseButtonProps {\n /**\n * Icon button label used to provide a description.\n */\n label: string\n\n /**\n * The duration of a the delay before a tooltip is shown.\n */\n tooltipDelayDuration?: number\n\n /**\n * \tHow much time a user has to enter another trigger without incurring a\n * \tdelay again.\n */\n tooltipSkipDelayDuration?: number\n\n /**\n * The preferred side of the trigger to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled.\n */\n tooltipSide?: TooltipContentProps['side']\n\n /**\n * The preferred alignment against the trigger. May change when collisions\n * occur.\n */\n tooltipAlign?: TooltipContentProps['align']\n\n /**\n * Wraps the Icon button with a badge.\n */\n showBadge?: boolean\n\n /**\n * The content to be displayed inside of the badge.\n */\n badgeContent?: string\n}\n\nexport const IconButton = React.forwardRef<\n ElementRef<typeof BaseButton>,\n IconButtonProps\n>(\n (\n {\n children,\n showBadge = false,\n badgeContent,\n label,\n tooltipDelayDuration,\n tooltipSkipDelayDuration,\n tooltipAlign = 'center',\n tooltipSide = 'bottom',\n variant = 'ghost',\n size = 'large',\n ...restProps\n },\n forwardRef\n ) => (\n <Tooltip\n delayDuration={tooltipDelayDuration}\n skipDelayDuration={tooltipSkipDelayDuration}\n >\n <Tooltip.Trigger asChild>\n <BaseButton\n {...restProps}\n variant={variant}\n size={size}\n ref={forwardRef}\n >\n <Badge\n show={showBadge}\n content={badgeContent}\n inverted={variant === 'solid-prominent'}\n >\n {children}\n </Badge>\n </BaseButton>\n </Tooltip.Trigger>\n <Tooltip.Content align={tooltipAlign} side={tooltipSide} hideWhenDetached>\n {label}\n </Tooltip.Content>\n </Tooltip>\n )\n)\n"],"names":[],"mappings":";;;;;AAgDO,MAAM,aAAa,KAAM,CAAA,UAAA;AAAA,EAI9B,CACE;AAAA,IACE,QAAA;AAAA,IACA,SAAY,GAAA,KAAA;AAAA,IACZ,YAAA;AAAA,IACA,KAAA;AAAA,IACA,oBAAA;AAAA,IACA,wBAAA;AAAA,IACA,YAAe,GAAA,QAAA;AAAA,IACf,WAAc,GAAA,QAAA;AAAA,IACd,OAAU,GAAA,OAAA;AAAA,IACV,IAAO,GAAA,OAAA;AAAA,IACJ,GAAA,SAAA;AAAA,GACL,EACA,+BAEC,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IACC,aAAe,EAAA,oBAAA;AAAA,IACf,iBAAmB,EAAA,wBAAA;AAAA,GAEnB,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAQ,OAAR,EAAA;AAAA,IAAgB,OAAO,EAAA,IAAA;AAAA,GAAA,kBACrB,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,OAAA;AAAA,IACA,IAAA;AAAA,IACA,GAAK,EAAA,UAAA;AAAA,GAAA,kBAEJ,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IACC,IAAM,EAAA,SAAA;AAAA,IACN,OAAS,EAAA,YAAA;AAAA,IACT,UAAU,OAAY,KAAA,iBAAA;AAAA,GAAA,EAErB,QACH,CACF,CACF,CACA,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAQ,OAAR,EAAA;AAAA,IAAgB,KAAO,EAAA,YAAA;AAAA,IAAc,IAAM,EAAA,WAAA;AAAA,IAAa,gBAAgB,EAAA,IAAA;AAAA,GAAA,EACtE,KACH,CACF,CAAA;AAEJ;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,446 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import react__default, { ComponentPropsWithRef } from 'react';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { TooltipContentProps } from '@mirohq/design-system-tooltip';
|
|
4
|
-
import
|
|
5
|
-
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
6
|
-
import * as _mirohq_design_system_base_button from '@mirohq/design-system-base-button';
|
|
7
|
-
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
3
|
+
import { BaseButtonProps } from '@mirohq/design-system-base-button';
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
variant?: "outline" | "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
11
|
-
size?: "medium" | "large" | "x-large" | undefined;
|
|
12
|
-
}, "size" | "variant"> & _stitches_react_types_styled_component.TransformProps<{
|
|
13
|
-
variant?: "outline" | "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
14
|
-
size?: "medium" | "large" | "x-large" | undefined;
|
|
15
|
-
}, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<Pick<_mirohq_design_system_base_button.BaseButtonProps, "color" | "translate" | "css" | "prefix" | "asChild" | "UNSAFE_style" | "form" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "name" | "placeholder" | "rel" | "target" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onFocusChange" | "excludeFromTabOrder" | "onHoverStart" | "onHoverEnd" | "onHoverChange"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
16
|
-
'border-widths': {
|
|
17
|
-
readonly none: 0;
|
|
18
|
-
readonly sm: "1px";
|
|
19
|
-
readonly md: "2px";
|
|
20
|
-
readonly lg: "4px";
|
|
21
|
-
};
|
|
22
|
-
colors: {
|
|
23
|
-
readonly 'blue-100': any;
|
|
24
|
-
readonly 'blue-200': any;
|
|
25
|
-
readonly 'blue-300': any;
|
|
26
|
-
readonly 'blue-400': any;
|
|
27
|
-
readonly 'blue-500': any;
|
|
28
|
-
readonly 'blue-600': any;
|
|
29
|
-
readonly 'blue-700': any;
|
|
30
|
-
readonly 'blue-800': any;
|
|
31
|
-
readonly 'blue-900': any;
|
|
32
|
-
readonly 'blue-1000': any;
|
|
33
|
-
readonly 'gray-100': any;
|
|
34
|
-
readonly 'gray-200': any;
|
|
35
|
-
readonly 'gray-300': any;
|
|
36
|
-
readonly 'gray-400': any;
|
|
37
|
-
readonly 'gray-500': any;
|
|
38
|
-
readonly 'gray-600': any;
|
|
39
|
-
readonly 'gray-700': any;
|
|
40
|
-
readonly 'gray-800': any;
|
|
41
|
-
readonly 'gray-900': any;
|
|
42
|
-
readonly 'indigo-100': any;
|
|
43
|
-
readonly 'indigo-200': any;
|
|
44
|
-
readonly 'indigo-300': any;
|
|
45
|
-
readonly 'indigo-400': any;
|
|
46
|
-
readonly 'indigo-500': any;
|
|
47
|
-
readonly 'indigo-600': any;
|
|
48
|
-
readonly 'indigo-700': any;
|
|
49
|
-
readonly 'indigo-800': any;
|
|
50
|
-
readonly 'indigo-900': any;
|
|
51
|
-
readonly 'red-100': any;
|
|
52
|
-
readonly 'red-200': any;
|
|
53
|
-
readonly 'red-300': any;
|
|
54
|
-
readonly 'red-400': any;
|
|
55
|
-
readonly 'red-500': any;
|
|
56
|
-
readonly 'red-600': any;
|
|
57
|
-
readonly 'red-700': any;
|
|
58
|
-
readonly 'red-800': any;
|
|
59
|
-
readonly 'red-900': any;
|
|
60
|
-
readonly 'yellow-100': any;
|
|
61
|
-
readonly 'yellow-200': any;
|
|
62
|
-
readonly 'yellow-300': any;
|
|
63
|
-
readonly 'yellow-400': any;
|
|
64
|
-
readonly 'yellow-500': any;
|
|
65
|
-
readonly 'yellow-600': any;
|
|
66
|
-
readonly 'yellow-700': any;
|
|
67
|
-
readonly 'yellow-800': any;
|
|
68
|
-
readonly 'yellow-900': any;
|
|
69
|
-
readonly 'green-100': any;
|
|
70
|
-
readonly 'green-200': any;
|
|
71
|
-
readonly 'green-300': any;
|
|
72
|
-
readonly 'green-400': any;
|
|
73
|
-
readonly 'green-500': any;
|
|
74
|
-
readonly 'green-600': any;
|
|
75
|
-
readonly 'green-700': any;
|
|
76
|
-
readonly 'green-800': any;
|
|
77
|
-
readonly 'green-900': any;
|
|
78
|
-
readonly black: any;
|
|
79
|
-
readonly white: any;
|
|
80
|
-
readonly transparent: any;
|
|
81
|
-
readonly 'background-neutrals'?: any;
|
|
82
|
-
readonly 'background-neutrals-body'?: any;
|
|
83
|
-
readonly 'background-neutrals-container'?: any;
|
|
84
|
-
readonly 'background-neutrals-inverted'?: any;
|
|
85
|
-
readonly 'background-neutrals-inverted-subtle'?: any;
|
|
86
|
-
readonly 'background-neutrals-subtle'?: any;
|
|
87
|
-
readonly 'background-neutrals-subtle-hover'?: any;
|
|
88
|
-
readonly 'background-neutrals-subtle-active'?: any;
|
|
89
|
-
readonly 'background-neutrals-disabled'?: any;
|
|
90
|
-
readonly 'background-neutrals-controls-disabled'?: any;
|
|
91
|
-
readonly 'background-neutrals-scrolls'?: any;
|
|
92
|
-
readonly 'background-neutrals-inactive'?: any;
|
|
93
|
-
readonly 'background-neutrals-inactive-hover'?: any;
|
|
94
|
-
readonly 'background-primary-prominent'?: any;
|
|
95
|
-
readonly 'background-primary-prominent-hover'?: any;
|
|
96
|
-
readonly 'background-primary-prominent-active'?: any;
|
|
97
|
-
readonly 'background-primary-prominent-selected'?: any;
|
|
98
|
-
readonly 'background-primary-subtle'?: any;
|
|
99
|
-
readonly 'background-primary-subtle-hover'?: any;
|
|
100
|
-
readonly 'background-primary-subtle-active'?: any;
|
|
101
|
-
readonly 'background-primary-subtle-selected'?: any;
|
|
102
|
-
readonly 'background-danger-prominent'?: any;
|
|
103
|
-
readonly 'background-danger-prominent-hover'?: any;
|
|
104
|
-
readonly 'background-danger-prominent-active'?: any;
|
|
105
|
-
readonly 'background-danger'?: any;
|
|
106
|
-
readonly 'background-danger-hover'?: any;
|
|
107
|
-
readonly 'background-success'?: any;
|
|
108
|
-
readonly 'background-warning-subtle'?: any;
|
|
109
|
-
readonly 'background-warning-prominent'?: any;
|
|
110
|
-
readonly 'text-neutrals-inverted'?: any;
|
|
111
|
-
readonly 'text-neutrals'?: any;
|
|
112
|
-
readonly 'text-neutrals-subtle'?: any;
|
|
113
|
-
readonly 'text-neutrals-placeholder-only'?: any;
|
|
114
|
-
readonly 'text-neutrals-placeholder'?: any;
|
|
115
|
-
readonly 'text-neutrals-disabled'?: any;
|
|
116
|
-
readonly 'text-primary-inverted'?: any;
|
|
117
|
-
readonly 'text-primary'?: any;
|
|
118
|
-
readonly 'text-primary-hover'?: any;
|
|
119
|
-
readonly 'text-primary-active'?: any;
|
|
120
|
-
readonly 'text-primary-selected'?: any;
|
|
121
|
-
readonly 'text-primary-inverted-subtle'?: any;
|
|
122
|
-
readonly 'text-danger-inverted'?: any;
|
|
123
|
-
readonly 'text-danger'?: any;
|
|
124
|
-
readonly 'text-danger-hover'?: any;
|
|
125
|
-
readonly 'text-danger-active'?: any;
|
|
126
|
-
readonly 'text-success'?: any;
|
|
127
|
-
readonly 'text-warning'?: any;
|
|
128
|
-
readonly 'icon-neutrals-inverted'?: any;
|
|
129
|
-
readonly 'icon-neutrals'?: any;
|
|
130
|
-
readonly 'icon-neutrals-with-text'?: any;
|
|
131
|
-
readonly 'icon-neutrals-subtle'?: any;
|
|
132
|
-
readonly 'icon-neutrals-disabled'?: any;
|
|
133
|
-
readonly 'icon-neutrals-search'?: any;
|
|
134
|
-
readonly 'icon-neutrals-inactive'?: any;
|
|
135
|
-
readonly 'icon-neutrals-inactive-hover'?: any;
|
|
136
|
-
readonly 'icon-primary-inverted'?: any;
|
|
137
|
-
readonly 'icon-primary'?: any;
|
|
138
|
-
readonly 'icon-primary-hover'?: any;
|
|
139
|
-
readonly 'icon-primary-active'?: any;
|
|
140
|
-
readonly 'icon-primary-selected'?: any;
|
|
141
|
-
readonly 'icon-danger-inverted'?: any;
|
|
142
|
-
readonly 'icon-danger'?: any;
|
|
143
|
-
readonly 'icon-danger-hover'?: any;
|
|
144
|
-
readonly 'icon-danger-active'?: any;
|
|
145
|
-
readonly 'icon-success-inverted'?: any;
|
|
146
|
-
readonly 'icon-success'?: any;
|
|
147
|
-
readonly 'icon-warning'?: any;
|
|
148
|
-
readonly 'border-neutrals'?: any;
|
|
149
|
-
readonly 'border-neutrals-hover'?: any;
|
|
150
|
-
readonly 'border-neutrals-active'?: any;
|
|
151
|
-
readonly 'border-neutrals-disabled'?: any;
|
|
152
|
-
readonly 'border-neutrals-controls'?: any;
|
|
153
|
-
readonly 'border-neutrals-controls-disabled'?: any;
|
|
154
|
-
readonly 'border-neutrals-subtle'?: any;
|
|
155
|
-
readonly 'border-neutrals-inverted'?: any;
|
|
156
|
-
readonly 'border-primary'?: any;
|
|
157
|
-
readonly 'border-primary-hover'?: any;
|
|
158
|
-
readonly 'border-primary-active'?: any;
|
|
159
|
-
readonly 'border-primary-inverted'?: any;
|
|
160
|
-
readonly 'border-danger'?: any;
|
|
161
|
-
readonly 'border-success'?: any;
|
|
162
|
-
readonly 'border-warning'?: any;
|
|
163
|
-
};
|
|
164
|
-
'font-sizes': {
|
|
165
|
-
readonly 150: "0.75rem";
|
|
166
|
-
readonly 175: "0.875rem";
|
|
167
|
-
readonly 200: "1rem";
|
|
168
|
-
readonly 225: "1.125rem";
|
|
169
|
-
readonly 250: "1.25rem";
|
|
170
|
-
readonly 300: "1.5rem";
|
|
171
|
-
readonly 400: "2rem";
|
|
172
|
-
readonly 500: "2.5rem";
|
|
173
|
-
readonly 600: "3rem";
|
|
174
|
-
readonly 800: "4rem";
|
|
175
|
-
readonly 900: "4.5rem";
|
|
176
|
-
};
|
|
177
|
-
radii: {
|
|
178
|
-
readonly none: 0;
|
|
179
|
-
readonly half: "999em";
|
|
180
|
-
readonly 25: "2px";
|
|
181
|
-
readonly 50: "4px";
|
|
182
|
-
readonly 75: "6px";
|
|
183
|
-
readonly 100: "8px";
|
|
184
|
-
readonly 200: "16px";
|
|
185
|
-
};
|
|
186
|
-
shadows: {
|
|
187
|
-
readonly 50: "0 4px 16px #05003812";
|
|
188
|
-
readonly 100: "0 8px 32px #05003808";
|
|
189
|
-
readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
|
|
190
|
-
readonly 'focus-small-outline': "0 0 0 2px $colors$blue-200, inset 0 0 0 1px $colors$blue-500, inset 0 0 0 2px $colors$white";
|
|
191
|
-
readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
|
|
192
|
-
readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
|
|
193
|
-
};
|
|
194
|
-
sizes: {
|
|
195
|
-
readonly number: string;
|
|
196
|
-
readonly 'icon-200': "16px";
|
|
197
|
-
readonly 'icon-300': "24px";
|
|
198
|
-
readonly 'icon-400': "32px";
|
|
199
|
-
};
|
|
200
|
-
space: {
|
|
201
|
-
readonly none: 0;
|
|
202
|
-
readonly 50: "4px";
|
|
203
|
-
readonly 100: "8px";
|
|
204
|
-
readonly 150: "12px";
|
|
205
|
-
readonly 200: "16px";
|
|
206
|
-
readonly 300: "24px";
|
|
207
|
-
readonly 400: "32px";
|
|
208
|
-
readonly 500: "64px";
|
|
209
|
-
readonly 600: "48px";
|
|
210
|
-
readonly 800: "64px";
|
|
211
|
-
readonly 1200: "96px";
|
|
212
|
-
readonly 1600: "128px";
|
|
213
|
-
};
|
|
214
|
-
'space-gap': {
|
|
215
|
-
readonly none: any;
|
|
216
|
-
readonly 50: any;
|
|
217
|
-
readonly 100: any;
|
|
218
|
-
readonly 200: any;
|
|
219
|
-
readonly 300: any;
|
|
220
|
-
};
|
|
221
|
-
'space-inset': {
|
|
222
|
-
readonly none: any;
|
|
223
|
-
readonly 50: any;
|
|
224
|
-
readonly 100: any;
|
|
225
|
-
readonly 150: any;
|
|
226
|
-
readonly 200: any;
|
|
227
|
-
readonly 300: any;
|
|
228
|
-
readonly 400: any;
|
|
229
|
-
readonly 600: any;
|
|
230
|
-
readonly 800: any;
|
|
231
|
-
readonly 1200: any;
|
|
232
|
-
readonly 1600: any;
|
|
233
|
-
};
|
|
234
|
-
'space-offset': {
|
|
235
|
-
readonly none: any;
|
|
236
|
-
readonly 50: any;
|
|
237
|
-
readonly 100: any;
|
|
238
|
-
readonly 150: any;
|
|
239
|
-
readonly 200: any;
|
|
240
|
-
readonly 300: any;
|
|
241
|
-
readonly 400: any;
|
|
242
|
-
readonly 600: any;
|
|
243
|
-
readonly 800: any;
|
|
244
|
-
readonly 1200: any;
|
|
245
|
-
readonly 1600: any;
|
|
246
|
-
readonly 'stacking-none': any;
|
|
247
|
-
readonly 'stacking-100': any;
|
|
248
|
-
readonly 'stacking-200': any;
|
|
249
|
-
readonly 'stacking-300': any;
|
|
250
|
-
readonly 'stacking-400': any;
|
|
251
|
-
readonly 'stacking-500': any;
|
|
252
|
-
readonly 'stacking-800': any;
|
|
253
|
-
};
|
|
254
|
-
'z-indices': {
|
|
255
|
-
readonly dropdownMenu: 100;
|
|
256
|
-
readonly popover: 200;
|
|
257
|
-
readonly tooltip: 300;
|
|
258
|
-
};
|
|
259
|
-
}, {
|
|
260
|
-
readonly background: "colors";
|
|
261
|
-
readonly backgroundColor: "colors";
|
|
262
|
-
readonly backgroundImage: "colors";
|
|
263
|
-
readonly blockSize: "sizes";
|
|
264
|
-
readonly border: "colors";
|
|
265
|
-
readonly borderBlock: "colors";
|
|
266
|
-
readonly borderBlockEnd: "colors";
|
|
267
|
-
readonly borderBlockStart: "colors";
|
|
268
|
-
readonly borderBottom: "colors";
|
|
269
|
-
readonly borderBottomColor: "colors";
|
|
270
|
-
readonly borderBottomLeftRadius: "radii";
|
|
271
|
-
readonly borderBottomRightRadius: "radii";
|
|
272
|
-
readonly borderBottomStyle: "border-styles";
|
|
273
|
-
readonly borderBottomWidth: "border-widths";
|
|
274
|
-
readonly borderColor: "colors";
|
|
275
|
-
readonly borderImage: "colors";
|
|
276
|
-
readonly borderInline: "colors";
|
|
277
|
-
readonly borderInlineEnd: "colors";
|
|
278
|
-
readonly borderInlineStart: "colors";
|
|
279
|
-
readonly borderLeft: "colors";
|
|
280
|
-
readonly borderLeftColor: "colors";
|
|
281
|
-
readonly borderLeftStyle: "border-styles";
|
|
282
|
-
readonly borderLeftWidth: "border-widths";
|
|
283
|
-
readonly borderRadius: "radii";
|
|
284
|
-
readonly borderRight: "colors";
|
|
285
|
-
readonly borderRightColor: "colors";
|
|
286
|
-
readonly borderRightStyle: "border-styles";
|
|
287
|
-
readonly borderRightWidth: "border-widths";
|
|
288
|
-
readonly borderStyle: "border-styles";
|
|
289
|
-
readonly borderTop: "colors";
|
|
290
|
-
readonly borderTopColor: "colors";
|
|
291
|
-
readonly borderTopLeftRadius: "radii";
|
|
292
|
-
readonly borderTopRightRadius: "radii";
|
|
293
|
-
readonly borderTopStyle: "border-styles";
|
|
294
|
-
readonly borderTopWidth: "border-widths";
|
|
295
|
-
readonly borderWidth: "border-widths";
|
|
296
|
-
readonly bottom: "space";
|
|
297
|
-
readonly boxShadow: "shadows";
|
|
298
|
-
readonly caretColor: "colors";
|
|
299
|
-
readonly color: "colors";
|
|
300
|
-
readonly columnGap: "space-gap";
|
|
301
|
-
readonly columnRuleColor: "colors";
|
|
302
|
-
readonly fill: "colors";
|
|
303
|
-
readonly flexBasis: "sizes";
|
|
304
|
-
readonly fontFamily: "fonts";
|
|
305
|
-
readonly fontSize: "font-sizes";
|
|
306
|
-
readonly fontWeight: "font-weights";
|
|
307
|
-
readonly gap: "space-gap";
|
|
308
|
-
readonly gridColumnGap: "space-gap";
|
|
309
|
-
readonly gridGap: "space-gap";
|
|
310
|
-
readonly gridRowGap: "space-gap";
|
|
311
|
-
readonly gridTemplateColumns: "sizes";
|
|
312
|
-
readonly gridTemplateRows: "sizes";
|
|
313
|
-
readonly height: "sizes";
|
|
314
|
-
readonly inlineSize: "sizes";
|
|
315
|
-
readonly inset: "space-inset";
|
|
316
|
-
readonly insetBlock: "space-inset";
|
|
317
|
-
readonly insetBlockEnd: "space-inset";
|
|
318
|
-
readonly insetBlockStart: "space-inset";
|
|
319
|
-
readonly insetInline: "space-inset";
|
|
320
|
-
readonly insetInlineEnd: "space-inset";
|
|
321
|
-
readonly insetInlineStart: "space-inset";
|
|
322
|
-
readonly left: "space";
|
|
323
|
-
readonly letterSpacing: "letter-spacings";
|
|
324
|
-
readonly lineHeight: "line-heights";
|
|
325
|
-
readonly margin: "space-offset";
|
|
326
|
-
readonly marginBlock: "space-offset";
|
|
327
|
-
readonly marginBlockEnd: "space-offset";
|
|
328
|
-
readonly marginBlockStart: "space-offset";
|
|
329
|
-
readonly marginBottom: "space-offset";
|
|
330
|
-
readonly marginInline: "space-offset";
|
|
331
|
-
readonly marginInlineEnd: "space-offset";
|
|
332
|
-
readonly marginInlineStart: "space-offset";
|
|
333
|
-
readonly marginLeft: "space-offset";
|
|
334
|
-
readonly marginRight: "space-offset";
|
|
335
|
-
readonly marginTop: "space-offset";
|
|
336
|
-
readonly maxBlockSize: "sizes";
|
|
337
|
-
readonly maxHeight: "sizes";
|
|
338
|
-
readonly maxInlineSize: "sizes";
|
|
339
|
-
readonly maxWidth: "sizes";
|
|
340
|
-
readonly minBlockSize: "sizes";
|
|
341
|
-
readonly minHeight: "sizes";
|
|
342
|
-
readonly minInlineSize: "sizes";
|
|
343
|
-
readonly minWidth: "sizes";
|
|
344
|
-
readonly outline: "colors";
|
|
345
|
-
readonly outlineColor: "colors";
|
|
346
|
-
readonly padding: "space-inset";
|
|
347
|
-
readonly paddingBlock: "space-inset";
|
|
348
|
-
readonly paddingBlockEnd: "space-inset";
|
|
349
|
-
readonly paddingBlockStart: "space-inset";
|
|
350
|
-
readonly paddingBottom: "space-inset";
|
|
351
|
-
readonly paddingInline: "space-inset";
|
|
352
|
-
readonly paddingInlineEnd: "space-inset";
|
|
353
|
-
readonly paddingInlineStart: "space-inset";
|
|
354
|
-
readonly paddingLeft: "space-inset";
|
|
355
|
-
readonly paddingRight: "space-inset";
|
|
356
|
-
readonly paddingTop: "space-inset";
|
|
357
|
-
readonly right: "space";
|
|
358
|
-
readonly rowGap: "space-gap";
|
|
359
|
-
readonly scrollMargin: "space-offset";
|
|
360
|
-
readonly scrollMarginBlock: "space-offset";
|
|
361
|
-
readonly scrollMarginBlockEnd: "space-offset";
|
|
362
|
-
readonly scrollMarginBlockStart: "space-offset";
|
|
363
|
-
readonly scrollMarginBottom: "space-offset";
|
|
364
|
-
readonly scrollMarginInline: "space-offset";
|
|
365
|
-
readonly scrollMarginInlineEnd: "space-offset";
|
|
366
|
-
readonly scrollMarginInlineStart: "space-offset";
|
|
367
|
-
readonly scrollMarginLeft: "space-offset";
|
|
368
|
-
readonly scrollMarginRight: "space-offset";
|
|
369
|
-
readonly scrollMarginTop: "space-offset";
|
|
370
|
-
readonly scrollPadding: "space-inset";
|
|
371
|
-
readonly scrollPaddingBlock: "space-inset";
|
|
372
|
-
readonly scrollPaddingBlockEnd: "space-inset";
|
|
373
|
-
readonly scrollPaddingBlockStart: "space-inset";
|
|
374
|
-
readonly scrollPaddingBottom: "space-inset";
|
|
375
|
-
readonly scrollPaddingInline: "space-inset";
|
|
376
|
-
readonly scrollPaddingInlineEnd: "space-inset";
|
|
377
|
-
readonly scrollPaddingInlineStart: "space-inset";
|
|
378
|
-
readonly scrollPaddingLeft: "space-inset";
|
|
379
|
-
readonly scrollPaddingRight: "space-inset";
|
|
380
|
-
readonly scrollPaddingTop: "space-inset";
|
|
381
|
-
readonly stroke: "colors";
|
|
382
|
-
readonly textDecorationColor: "colors";
|
|
383
|
-
readonly textShadow: "shadows";
|
|
384
|
-
readonly top: "space";
|
|
385
|
-
readonly transition: "transitions";
|
|
386
|
-
readonly width: "sizes";
|
|
387
|
-
readonly zIndex: "z-indices";
|
|
388
|
-
}, {
|
|
389
|
-
paddingX: (value: {
|
|
390
|
-
readonly [$$PropertyValue]: "padding";
|
|
391
|
-
}) => {
|
|
392
|
-
paddingLeft: {
|
|
393
|
-
readonly [$$PropertyValue]: "padding";
|
|
394
|
-
};
|
|
395
|
-
paddingRight: {
|
|
396
|
-
readonly [$$PropertyValue]: "padding";
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
paddingY: (value: {
|
|
400
|
-
readonly [$$PropertyValue]: "padding";
|
|
401
|
-
}) => {
|
|
402
|
-
paddingTop: {
|
|
403
|
-
readonly [$$PropertyValue]: "padding";
|
|
404
|
-
};
|
|
405
|
-
paddingBottom: {
|
|
406
|
-
readonly [$$PropertyValue]: "padding";
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
marginX: (value: {
|
|
410
|
-
readonly [$$PropertyValue]: "margin";
|
|
411
|
-
}) => {
|
|
412
|
-
marginLeft: {
|
|
413
|
-
readonly [$$PropertyValue]: "margin";
|
|
414
|
-
};
|
|
415
|
-
marginRight: {
|
|
416
|
-
readonly [$$PropertyValue]: "margin";
|
|
417
|
-
};
|
|
418
|
-
};
|
|
419
|
-
marginY: (value: {
|
|
420
|
-
readonly [$$PropertyValue]: "margin";
|
|
421
|
-
}) => {
|
|
422
|
-
marginTop: {
|
|
423
|
-
readonly [$$PropertyValue]: "margin";
|
|
424
|
-
};
|
|
425
|
-
marginBottom: {
|
|
426
|
-
readonly [$$PropertyValue]: "margin";
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
}>>> & _mirohq_design_system_stitches.CustomStylesProps, "color" | "translate" | "prefix" | "asChild" | "form" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "name" | "placeholder" | "rel" | "size" | "target" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | keyof _mirohq_design_system_stitches.CustomStylesProps | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onFocusChange" | "excludeFromTabOrder" | "onHoverStart" | "onHoverEnd" | "onHoverChange" | "variant"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<Pick<_mirohq_design_system_base_button.BaseButtonProps, "color" | "translate" | "css" | "prefix" | "asChild" | "UNSAFE_style" | "form" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "name" | "placeholder" | "rel" | "target" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "onPress" | "onPressStart" | "onPressEnd" | "onPressChange" | "onFocusChange" | "excludeFromTabOrder" | "onHoverStart" | "onHoverEnd" | "onHoverChange"> & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>, {
|
|
430
|
-
variant?: "outline" | "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
431
|
-
size?: "medium" | "large" | "x-large" | undefined;
|
|
432
|
-
}, {}>;
|
|
433
|
-
declare type StyledIconButtonProps = ComponentPropsWithRef<typeof StyledIconButton>;
|
|
434
|
-
|
|
435
|
-
interface IconButtonProps extends StyledIconButtonProps {
|
|
436
|
-
/**
|
|
437
|
-
* Change the Icon button style
|
|
438
|
-
*/
|
|
439
|
-
variant?: StyledIconButtonProps['variant'];
|
|
440
|
-
/**
|
|
441
|
-
* Change the Icon button size
|
|
442
|
-
*/
|
|
443
|
-
size?: StyledIconButtonProps['size'];
|
|
5
|
+
interface IconButtonProps extends BaseButtonProps {
|
|
444
6
|
/**
|
|
445
7
|
* Icon button label used to provide a description.
|
|
446
8
|
*/
|
|
@@ -473,6 +35,6 @@ interface IconButtonProps extends StyledIconButtonProps {
|
|
|
473
35
|
*/
|
|
474
36
|
badgeContent?: string;
|
|
475
37
|
}
|
|
476
|
-
declare const IconButton:
|
|
38
|
+
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "color" | "translate" | "css" | "prefix" | "asChild" | "UNSAFE_style" | "form" | "label" | "slot" | "title" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "name" | "placeholder" | "rel" | "size" | "target" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "onPress" | "variant" | "onPressStart" | "onPressEnd" | "onPressChange" | "onFocusChange" | "excludeFromTabOrder" | "onHoverStart" | "onHoverEnd" | "onHoverChange" | "showBadge" | "badgeContent" | "tooltipDelayDuration" | "tooltipSkipDelayDuration" | "tooltipAlign" | "tooltipSide"> & React.RefAttributes<HTMLButtonElement>>;
|
|
477
39
|
|
|
478
40
|
export { IconButton, IconButtonProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-icon-button",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3-test-changelog.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"react": "^16.14 || ^17 || ^18"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@mirohq/design-system-
|
|
30
|
-
"@mirohq/design-system-
|
|
31
|
-
"@mirohq/design-system-
|
|
32
|
-
"@mirohq/design-system-tooltip": "^3.2.2-button.0"
|
|
29
|
+
"@mirohq/design-system-tooltip": "^3.2.2-test-changelog.0",
|
|
30
|
+
"@mirohq/design-system-badge": "^0.3.1-test-changelog.0",
|
|
31
|
+
"@mirohq/design-system-base-button": "^0.3.2-test-changelog.0"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"@mirohq/design-system-flex": "^2.1.
|
|
36
|
-
"@mirohq/design-system-icons": "^0.
|
|
34
|
+
"@mirohq/design-system-flex": "^2.1.3-test-changelog.0",
|
|
35
|
+
"@mirohq/design-system-icons": "^0.11.1-test-changelog.0",
|
|
36
|
+
"@mirohq/design-system-stitches": "^2.1.2-test-changelog.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "rollup -c ../../../rollup.config.js",
|