@mirohq/design-system-checkbox 1.0.0-checkbox.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 +194 -0
- package/dist/main.js.map +1 -0
- package/dist/module.js +186 -0
- package/dist/module.js.map +1 -0
- package/dist/types.d.ts +489 -0
- package/package.json +42 -0
package/dist/main.js
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var designSystemStitches = require('@mirohq/design-system-stitches');
|
|
7
|
+
var reactCheckbox = require('@radix-ui/react-checkbox');
|
|
8
|
+
var designSystemPrimitive = require('@mirohq/design-system-primitive');
|
|
9
|
+
var designSystemIcons = require('@mirohq/design-system-icons');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
|
|
15
|
+
const StyledIndicator = designSystemStitches.styled(reactCheckbox.Indicator);
|
|
16
|
+
const Indicator = React__default["default"].forwardRef((props, forwardRef) => /* @__PURE__ */ React__default["default"].createElement(StyledIndicator, {
|
|
17
|
+
...props,
|
|
18
|
+
ref: forwardRef
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
const StyledCheckboxContent = designSystemStitches.styled(designSystemPrimitive.Primitive.div, {
|
|
22
|
+
display: "block",
|
|
23
|
+
pointerEvents: "none",
|
|
24
|
+
borderRadius: "$50",
|
|
25
|
+
position: "relative",
|
|
26
|
+
margin: "auto",
|
|
27
|
+
boxSizing: "border-box"
|
|
28
|
+
});
|
|
29
|
+
const checkboxContentSelector = `& ${StyledCheckboxContent}`;
|
|
30
|
+
const StyledCheckbox = designSystemStitches.styled(reactCheckbox.Root, {
|
|
31
|
+
all: "unset",
|
|
32
|
+
square: "$6",
|
|
33
|
+
color: "$icon-primary-inverted",
|
|
34
|
+
"&:focus": {
|
|
35
|
+
[checkboxContentSelector]: {
|
|
36
|
+
boxShadow: "0px 0px 0px 1px $colors$white, 0px 0px 0px 3px $colors$blue-500, 0px 0px 0px 5px $colors$blue-200"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
'&:hover[data-state="checked"][aria-disabled="true"], &:hover[data-state="checked"]&:disabled': {
|
|
40
|
+
[checkboxContentSelector]: {
|
|
41
|
+
backgroundColor: "$background-neutrals-controls-disabled"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'&[aria-disabled="true"][data-state="checked"], &:disabled[data-state="checked"]': {
|
|
45
|
+
[checkboxContentSelector]: {
|
|
46
|
+
backgroundColor: "$background-neutrals-controls-disabled",
|
|
47
|
+
color: "$icon-neutrals-disabled"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
'&[aria-disabled="true"][data-state="unchecked"], &:disabled[data-state="unchecked"]': {
|
|
51
|
+
[checkboxContentSelector]: {
|
|
52
|
+
backgroundColor: "$background-neutrals",
|
|
53
|
+
color: "$icon-neutrals-disabled"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
variants: {
|
|
57
|
+
variant: {
|
|
58
|
+
"solid-prominent": {
|
|
59
|
+
'&[data-state="checked"]': {
|
|
60
|
+
[checkboxContentSelector]: {
|
|
61
|
+
backgroundColor: "$background-primary-prominent",
|
|
62
|
+
color: "$icon-primary-inverted"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
'&[data-state="unchecked"]': {
|
|
66
|
+
[checkboxContentSelector]: {
|
|
67
|
+
border: "1px solid $border-neutrals-controls"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
'&:hover[data-state="checked"]': {
|
|
71
|
+
[checkboxContentSelector]: {
|
|
72
|
+
backgroundColor: "$background-primary-prominent-hover"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
'&:hover[data-state="unchecked"]': {
|
|
76
|
+
[checkboxContentSelector]: {
|
|
77
|
+
border: "1px solid $border-primary"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"solid-subtle": {
|
|
82
|
+
'&[data-state="checked"]': {
|
|
83
|
+
[checkboxContentSelector]: {
|
|
84
|
+
backgroundColor: "$background-primary-subtle",
|
|
85
|
+
color: "$icon-primary"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
'&[data-state="unchecked"]': {
|
|
89
|
+
[checkboxContentSelector]: {
|
|
90
|
+
backgroundColor: "$background-primary-subtle"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
'&:hover[data-state="checked"], &:hover[data-state="unchecked"]': {
|
|
94
|
+
[checkboxContentSelector]: {
|
|
95
|
+
backgroundColor: "$background-primary-subtle-hover",
|
|
96
|
+
color: "$icon-primary-hover"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
'&[aria-disabled="true"][data-state="unchecked"], &:disabled[data-state="unchecked"]': {
|
|
100
|
+
[checkboxContentSelector]: {
|
|
101
|
+
backgroundColor: "$background-neutrals-controls-disabled"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
ghost: {
|
|
106
|
+
'&[data-state="checked"]': {
|
|
107
|
+
[checkboxContentSelector]: {
|
|
108
|
+
color: "$icon-primary"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
'&:hover[data-state="checked"]': {
|
|
112
|
+
[checkboxContentSelector]: {
|
|
113
|
+
color: "$icon-primary-hover"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
'&[aria-disabled="true"][data-state="checked"], &:disabled[data-state="checked"]': {
|
|
117
|
+
[checkboxContentSelector]: {
|
|
118
|
+
backgroundColor: "$background-neutrals"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
size: {
|
|
124
|
+
large: {
|
|
125
|
+
[checkboxContentSelector]: {
|
|
126
|
+
square: "$5"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
small: {
|
|
130
|
+
[checkboxContentSelector]: {
|
|
131
|
+
square: "$4"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
const markStyles = {
|
|
139
|
+
position: "absolute",
|
|
140
|
+
top: "50%",
|
|
141
|
+
left: "50%",
|
|
142
|
+
transform: "translate(-50%,-50%)",
|
|
143
|
+
variants: {
|
|
144
|
+
size: {
|
|
145
|
+
large: { width: "18px" },
|
|
146
|
+
small: { width: "12px" }
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
const StyledDisabledMark = designSystemStitches.styled(designSystemIcons.IconProhibit, markStyles);
|
|
151
|
+
const StyledCheckMark = designSystemStitches.styled(designSystemIcons.IconCheckMark, markStyles);
|
|
152
|
+
designSystemStitches.styled(designSystemIcons.IconMinus, markStyles);
|
|
153
|
+
|
|
154
|
+
const Checkbox = React__default["default"].forwardRef(
|
|
155
|
+
({
|
|
156
|
+
"aria-disabled": ariaDisabled = false,
|
|
157
|
+
checked,
|
|
158
|
+
defaultChecked = false,
|
|
159
|
+
disabled,
|
|
160
|
+
onClick,
|
|
161
|
+
onKeyDown,
|
|
162
|
+
size = "large",
|
|
163
|
+
variant = "solid-prominent",
|
|
164
|
+
...restProps
|
|
165
|
+
}, forwardRef) => {
|
|
166
|
+
const [checkedState, setCheckedState] = React.useState(defaultChecked);
|
|
167
|
+
const disabledUnChecked = (disabled === true || ariaDisabled) && (checked != null ? checked : !checkedState);
|
|
168
|
+
return /* @__PURE__ */ React__default["default"].createElement(StyledCheckbox, {
|
|
169
|
+
...restProps,
|
|
170
|
+
"aria-disabled": ariaDisabled,
|
|
171
|
+
checked: checked != null ? checked : checkedState,
|
|
172
|
+
defaultChecked,
|
|
173
|
+
disabled,
|
|
174
|
+
size,
|
|
175
|
+
variant,
|
|
176
|
+
onClick: (e) => {
|
|
177
|
+
if (ariaDisabled) {
|
|
178
|
+
e.preventDefault();
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
setCheckedState((prevChecked) => !prevChecked);
|
|
182
|
+
onClick == null ? void 0 : onClick(e);
|
|
183
|
+
},
|
|
184
|
+
ref: forwardRef
|
|
185
|
+
}, /* @__PURE__ */ React__default["default"].createElement(StyledCheckboxContent, null, /* @__PURE__ */ React__default["default"].createElement(Indicator, null, /* @__PURE__ */ React__default["default"].createElement(StyledCheckMark, {
|
|
186
|
+
size
|
|
187
|
+
})), disabledUnChecked && /* @__PURE__ */ React__default["default"].createElement(StyledDisabledMark, {
|
|
188
|
+
size
|
|
189
|
+
})));
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
exports.Checkbox = Checkbox;
|
|
194
|
+
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/partials/indicator.tsx","../src/checkbox.styled.tsx","../src/partials/status-marks.styled.tsx","../src/checkbox.tsx"],"sourcesContent":["import React from 'react'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { ElementRef } from 'react'\nimport { Indicator as RadixIndicator } from '@radix-ui/react-checkbox'\n\nconst StyledIndicator = styled(RadixIndicator)\ntype StyledIndicatorProps = StrictComponentProps<typeof StyledIndicator>\n\nexport const Indicator = React.forwardRef<\n ElementRef<typeof StyledIndicator>,\n StyledIndicatorProps\n>((props, forwardRef) => <StyledIndicator {...props} ref={forwardRef} />)\n","import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-checkbox'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const StyledCheckboxContent = styled(Primitive.div, {\n display: 'block',\n pointerEvents: 'none',\n borderRadius: '$50',\n position: 'relative',\n margin: 'auto',\n boxSizing: 'border-box',\n})\n\nconst checkboxContentSelector = `& ${StyledCheckboxContent}`\n\nexport const StyledCheckbox = styled(Root, {\n all: 'unset',\n square: '$6',\n color: '$icon-primary-inverted',\n\n '&:focus': {\n [checkboxContentSelector]: {\n boxShadow:\n '0px 0px 0px 1px $colors$white, 0px 0px 0px 3px $colors$blue-500, 0px 0px 0px 5px $colors$blue-200',\n },\n },\n '&:hover[data-state=\"checked\"][aria-disabled=\"true\"], &:hover[data-state=\"checked\"]&:disabled':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"checked\"], &:disabled[data-state=\"checked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n color: '$icon-neutrals-disabled',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"unchecked\"], &:disabled[data-state=\"unchecked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals',\n color: '$icon-neutrals-disabled',\n },\n },\n variants: {\n variant: {\n 'solid-prominent': {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-prominent',\n color: '$icon-primary-inverted',\n },\n },\n '&[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n border: '1px solid $border-neutrals-controls',\n },\n },\n '&:hover[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-prominent-hover',\n },\n },\n '&:hover[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n border: '1px solid $border-primary',\n },\n },\n },\n 'solid-subtle': {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle',\n color: '$icon-primary',\n },\n },\n '&[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle',\n },\n },\n '&:hover[data-state=\"checked\"], &:hover[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"unchecked\"], &:disabled[data-state=\"unchecked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n },\n },\n },\n ghost: {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n color: '$icon-primary',\n },\n },\n\n '&:hover[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n color: '$icon-primary-hover',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"checked\"], &:disabled[data-state=\"checked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals',\n },\n },\n },\n },\n size: {\n large: {\n [checkboxContentSelector]: {\n square: '$5',\n },\n },\n small: {\n [checkboxContentSelector]: {\n square: '$4',\n },\n },\n },\n },\n})\n\nexport type StyledCheckboxProps = ComponentPropsWithRef<typeof StyledCheckbox>\n","import {\n IconProhibit,\n IconCheckMark,\n IconMinus,\n} from '@mirohq/design-system-icons'\nimport { styled } from '@mirohq/design-system-stitches'\n\nconst markStyles = {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%,-50%)',\n variants: {\n size: {\n large: { width: '18px' },\n small: { width: '12px' },\n },\n },\n}\n\nexport const StyledDisabledMark = styled(IconProhibit, markStyles)\n\nexport const StyledCheckMark = styled(IconCheckMark, markStyles)\n\nexport const StyledIndeterminateMark = styled(IconMinus, markStyles)\n","import React, { useState } from 'react'\nimport type { ElementRef } from 'react'\n\nimport { Indicator } from './partials/indicator'\nimport { StyledCheckboxContent, StyledCheckbox } from './checkbox.styled'\nimport {\n StyledCheckMark,\n StyledDisabledMark,\n} from './partials/status-marks.styled'\nimport type { StyledCheckboxProps } from './checkbox.styled'\n\nexport interface CheckboxProps extends StyledCheckboxProps {\n /**\n * The checked state of the checkbox when it is initially rendered. Use when\n * you do not need to control its checked state.\n */\n defaultChecked?: boolean\n\n /**\n * The style of the checkbox.\n */\n variant?: StyledCheckboxProps['variant']\n\n /**\n * The size of the checkbox.\n */\n size?: StyledCheckboxProps['size']\n\n /**\n * The controlled checked state of the checkbox. Must be used in conjunction\n * with onCheckedChange.\n */\n checked?: boolean\n\n /**\n * When true, indicates that the user must check the checkbox before the\n * owning form can be submitted.\n */\n required?: boolean\n\n /**\n * The name of the checkbox. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * The value given as data when submitted with a name.\n */\n value?: string\n\n /**\n * When true, prevents the user from interacting with the checkbox.\n */\n disabled?: boolean\n\n /**\n * Event handler called when the checked state of the checkbox changes.\n */\n onCheckedChange?: (checked: boolean | 'indeterminate') => void\n\n /**\n * When true, prevents the user from interacting with the checkbox but focus\n * is still possible.\n */\n 'aria-disabled'?: boolean\n}\n\nexport const Checkbox = React.forwardRef<\n ElementRef<typeof StyledCheckbox>,\n CheckboxProps\n>(\n (\n {\n 'aria-disabled': ariaDisabled = false,\n checked,\n defaultChecked = false,\n disabled,\n onClick,\n onKeyDown,\n size = 'large',\n variant = 'solid-prominent',\n ...restProps\n },\n forwardRef\n ) => {\n const [checkedState, setCheckedState] = useState(defaultChecked)\n const disabledUnChecked =\n (disabled === true || ariaDisabled) && (checked ?? !checkedState)\n return (\n <StyledCheckbox\n {...restProps}\n aria-disabled={ariaDisabled}\n checked={checked ?? checkedState}\n defaultChecked={defaultChecked}\n disabled={disabled}\n size={size}\n variant={variant}\n onClick={e => {\n if (ariaDisabled) {\n e.preventDefault()\n return\n }\n setCheckedState(prevChecked => !prevChecked)\n onClick?.(e)\n }}\n ref={forwardRef}\n >\n <StyledCheckboxContent>\n <Indicator>\n <StyledCheckMark size={size} />\n </Indicator>\n {disabledUnChecked && <StyledDisabledMark size={size} />}\n </StyledCheckboxContent>\n </StyledCheckbox>\n )\n }\n)\n"],"names":["styled","RadixIndicator","React","Primitive","Root","IconProhibit","IconCheckMark","IconMin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}
|
package/dist/module.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { styled } from '@mirohq/design-system-stitches';
|
|
3
|
+
import { Indicator as Indicator$1, Root } from '@radix-ui/react-checkbox';
|
|
4
|
+
import { Primitive } from '@mirohq/design-system-primitive';
|
|
5
|
+
import { IconProhibit, IconCheckMark, IconMinus } from '@mirohq/design-system-icons';
|
|
6
|
+
|
|
7
|
+
const StyledIndicator = styled(Indicator$1);
|
|
8
|
+
const Indicator = React.forwardRef((props, forwardRef) => /* @__PURE__ */ React.createElement(StyledIndicator, {
|
|
9
|
+
...props,
|
|
10
|
+
ref: forwardRef
|
|
11
|
+
}));
|
|
12
|
+
|
|
13
|
+
const StyledCheckboxContent = styled(Primitive.div, {
|
|
14
|
+
display: "block",
|
|
15
|
+
pointerEvents: "none",
|
|
16
|
+
borderRadius: "$50",
|
|
17
|
+
position: "relative",
|
|
18
|
+
margin: "auto",
|
|
19
|
+
boxSizing: "border-box"
|
|
20
|
+
});
|
|
21
|
+
const checkboxContentSelector = `& ${StyledCheckboxContent}`;
|
|
22
|
+
const StyledCheckbox = styled(Root, {
|
|
23
|
+
all: "unset",
|
|
24
|
+
square: "$6",
|
|
25
|
+
color: "$icon-primary-inverted",
|
|
26
|
+
"&:focus": {
|
|
27
|
+
[checkboxContentSelector]: {
|
|
28
|
+
boxShadow: "0px 0px 0px 1px $colors$white, 0px 0px 0px 3px $colors$blue-500, 0px 0px 0px 5px $colors$blue-200"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
'&:hover[data-state="checked"][aria-disabled="true"], &:hover[data-state="checked"]&:disabled': {
|
|
32
|
+
[checkboxContentSelector]: {
|
|
33
|
+
backgroundColor: "$background-neutrals-controls-disabled"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
'&[aria-disabled="true"][data-state="checked"], &:disabled[data-state="checked"]': {
|
|
37
|
+
[checkboxContentSelector]: {
|
|
38
|
+
backgroundColor: "$background-neutrals-controls-disabled",
|
|
39
|
+
color: "$icon-neutrals-disabled"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
'&[aria-disabled="true"][data-state="unchecked"], &:disabled[data-state="unchecked"]': {
|
|
43
|
+
[checkboxContentSelector]: {
|
|
44
|
+
backgroundColor: "$background-neutrals",
|
|
45
|
+
color: "$icon-neutrals-disabled"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
variants: {
|
|
49
|
+
variant: {
|
|
50
|
+
"solid-prominent": {
|
|
51
|
+
'&[data-state="checked"]': {
|
|
52
|
+
[checkboxContentSelector]: {
|
|
53
|
+
backgroundColor: "$background-primary-prominent",
|
|
54
|
+
color: "$icon-primary-inverted"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
'&[data-state="unchecked"]': {
|
|
58
|
+
[checkboxContentSelector]: {
|
|
59
|
+
border: "1px solid $border-neutrals-controls"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
'&:hover[data-state="checked"]': {
|
|
63
|
+
[checkboxContentSelector]: {
|
|
64
|
+
backgroundColor: "$background-primary-prominent-hover"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
'&:hover[data-state="unchecked"]': {
|
|
68
|
+
[checkboxContentSelector]: {
|
|
69
|
+
border: "1px solid $border-primary"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"solid-subtle": {
|
|
74
|
+
'&[data-state="checked"]': {
|
|
75
|
+
[checkboxContentSelector]: {
|
|
76
|
+
backgroundColor: "$background-primary-subtle",
|
|
77
|
+
color: "$icon-primary"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
'&[data-state="unchecked"]': {
|
|
81
|
+
[checkboxContentSelector]: {
|
|
82
|
+
backgroundColor: "$background-primary-subtle"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'&:hover[data-state="checked"], &:hover[data-state="unchecked"]': {
|
|
86
|
+
[checkboxContentSelector]: {
|
|
87
|
+
backgroundColor: "$background-primary-subtle-hover",
|
|
88
|
+
color: "$icon-primary-hover"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'&[aria-disabled="true"][data-state="unchecked"], &:disabled[data-state="unchecked"]': {
|
|
92
|
+
[checkboxContentSelector]: {
|
|
93
|
+
backgroundColor: "$background-neutrals-controls-disabled"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
ghost: {
|
|
98
|
+
'&[data-state="checked"]': {
|
|
99
|
+
[checkboxContentSelector]: {
|
|
100
|
+
color: "$icon-primary"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'&:hover[data-state="checked"]': {
|
|
104
|
+
[checkboxContentSelector]: {
|
|
105
|
+
color: "$icon-primary-hover"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
'&[aria-disabled="true"][data-state="checked"], &:disabled[data-state="checked"]': {
|
|
109
|
+
[checkboxContentSelector]: {
|
|
110
|
+
backgroundColor: "$background-neutrals"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
size: {
|
|
116
|
+
large: {
|
|
117
|
+
[checkboxContentSelector]: {
|
|
118
|
+
square: "$5"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
small: {
|
|
122
|
+
[checkboxContentSelector]: {
|
|
123
|
+
square: "$4"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
const markStyles = {
|
|
131
|
+
position: "absolute",
|
|
132
|
+
top: "50%",
|
|
133
|
+
left: "50%",
|
|
134
|
+
transform: "translate(-50%,-50%)",
|
|
135
|
+
variants: {
|
|
136
|
+
size: {
|
|
137
|
+
large: { width: "18px" },
|
|
138
|
+
small: { width: "12px" }
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const StyledDisabledMark = styled(IconProhibit, markStyles);
|
|
143
|
+
const StyledCheckMark = styled(IconCheckMark, markStyles);
|
|
144
|
+
styled(IconMinus, markStyles);
|
|
145
|
+
|
|
146
|
+
const Checkbox = React.forwardRef(
|
|
147
|
+
({
|
|
148
|
+
"aria-disabled": ariaDisabled = false,
|
|
149
|
+
checked,
|
|
150
|
+
defaultChecked = false,
|
|
151
|
+
disabled,
|
|
152
|
+
onClick,
|
|
153
|
+
onKeyDown,
|
|
154
|
+
size = "large",
|
|
155
|
+
variant = "solid-prominent",
|
|
156
|
+
...restProps
|
|
157
|
+
}, forwardRef) => {
|
|
158
|
+
const [checkedState, setCheckedState] = useState(defaultChecked);
|
|
159
|
+
const disabledUnChecked = (disabled === true || ariaDisabled) && (checked != null ? checked : !checkedState);
|
|
160
|
+
return /* @__PURE__ */ React.createElement(StyledCheckbox, {
|
|
161
|
+
...restProps,
|
|
162
|
+
"aria-disabled": ariaDisabled,
|
|
163
|
+
checked: checked != null ? checked : checkedState,
|
|
164
|
+
defaultChecked,
|
|
165
|
+
disabled,
|
|
166
|
+
size,
|
|
167
|
+
variant,
|
|
168
|
+
onClick: (e) => {
|
|
169
|
+
if (ariaDisabled) {
|
|
170
|
+
e.preventDefault();
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
setCheckedState((prevChecked) => !prevChecked);
|
|
174
|
+
onClick == null ? void 0 : onClick(e);
|
|
175
|
+
},
|
|
176
|
+
ref: forwardRef
|
|
177
|
+
}, /* @__PURE__ */ React.createElement(StyledCheckboxContent, null, /* @__PURE__ */ React.createElement(Indicator, null, /* @__PURE__ */ React.createElement(StyledCheckMark, {
|
|
178
|
+
size
|
|
179
|
+
})), disabledUnChecked && /* @__PURE__ */ React.createElement(StyledDisabledMark, {
|
|
180
|
+
size
|
|
181
|
+
})));
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
export { Checkbox };
|
|
186
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/partials/indicator.tsx","../src/checkbox.styled.tsx","../src/partials/status-marks.styled.tsx","../src/checkbox.tsx"],"sourcesContent":["import React from 'react'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { ElementRef } from 'react'\nimport { Indicator as RadixIndicator } from '@radix-ui/react-checkbox'\n\nconst StyledIndicator = styled(RadixIndicator)\ntype StyledIndicatorProps = StrictComponentProps<typeof StyledIndicator>\n\nexport const Indicator = React.forwardRef<\n ElementRef<typeof StyledIndicator>,\n StyledIndicatorProps\n>((props, forwardRef) => <StyledIndicator {...props} ref={forwardRef} />)\n","import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-checkbox'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const StyledCheckboxContent = styled(Primitive.div, {\n display: 'block',\n pointerEvents: 'none',\n borderRadius: '$50',\n position: 'relative',\n margin: 'auto',\n boxSizing: 'border-box',\n})\n\nconst checkboxContentSelector = `& ${StyledCheckboxContent}`\n\nexport const StyledCheckbox = styled(Root, {\n all: 'unset',\n square: '$6',\n color: '$icon-primary-inverted',\n\n '&:focus': {\n [checkboxContentSelector]: {\n boxShadow:\n '0px 0px 0px 1px $colors$white, 0px 0px 0px 3px $colors$blue-500, 0px 0px 0px 5px $colors$blue-200',\n },\n },\n '&:hover[data-state=\"checked\"][aria-disabled=\"true\"], &:hover[data-state=\"checked\"]&:disabled':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"checked\"], &:disabled[data-state=\"checked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n color: '$icon-neutrals-disabled',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"unchecked\"], &:disabled[data-state=\"unchecked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals',\n color: '$icon-neutrals-disabled',\n },\n },\n variants: {\n variant: {\n 'solid-prominent': {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-prominent',\n color: '$icon-primary-inverted',\n },\n },\n '&[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n border: '1px solid $border-neutrals-controls',\n },\n },\n '&:hover[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-prominent-hover',\n },\n },\n '&:hover[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n border: '1px solid $border-primary',\n },\n },\n },\n 'solid-subtle': {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle',\n color: '$icon-primary',\n },\n },\n '&[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle',\n },\n },\n '&:hover[data-state=\"checked\"], &:hover[data-state=\"unchecked\"]': {\n [checkboxContentSelector]: {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"unchecked\"], &:disabled[data-state=\"unchecked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals-controls-disabled',\n },\n },\n },\n ghost: {\n '&[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n color: '$icon-primary',\n },\n },\n\n '&:hover[data-state=\"checked\"]': {\n [checkboxContentSelector]: {\n color: '$icon-primary-hover',\n },\n },\n '&[aria-disabled=\"true\"][data-state=\"checked\"], &:disabled[data-state=\"checked\"]':\n {\n [checkboxContentSelector]: {\n backgroundColor: '$background-neutrals',\n },\n },\n },\n },\n size: {\n large: {\n [checkboxContentSelector]: {\n square: '$5',\n },\n },\n small: {\n [checkboxContentSelector]: {\n square: '$4',\n },\n },\n },\n },\n})\n\nexport type StyledCheckboxProps = ComponentPropsWithRef<typeof StyledCheckbox>\n","import {\n IconProhibit,\n IconCheckMark,\n IconMinus,\n} from '@mirohq/design-system-icons'\nimport { styled } from '@mirohq/design-system-stitches'\n\nconst markStyles = {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%,-50%)',\n variants: {\n size: {\n large: { width: '18px' },\n small: { width: '12px' },\n },\n },\n}\n\nexport const StyledDisabledMark = styled(IconProhibit, markStyles)\n\nexport const StyledCheckMark = styled(IconCheckMark, markStyles)\n\nexport const StyledIndeterminateMark = styled(IconMinus, markStyles)\n","import React, { useState } from 'react'\nimport type { ElementRef } from 'react'\n\nimport { Indicator } from './partials/indicator'\nimport { StyledCheckboxContent, StyledCheckbox } from './checkbox.styled'\nimport {\n StyledCheckMark,\n StyledDisabledMark,\n} from './partials/status-marks.styled'\nimport type { StyledCheckboxProps } from './checkbox.styled'\n\nexport interface CheckboxProps extends StyledCheckboxProps {\n /**\n * The checked state of the checkbox when it is initially rendered. Use when\n * you do not need to control its checked state.\n */\n defaultChecked?: boolean\n\n /**\n * The style of the checkbox.\n */\n variant?: StyledCheckboxProps['variant']\n\n /**\n * The size of the checkbox.\n */\n size?: StyledCheckboxProps['size']\n\n /**\n * The controlled checked state of the checkbox. Must be used in conjunction\n * with onCheckedChange.\n */\n checked?: boolean\n\n /**\n * When true, indicates that the user must check the checkbox before the\n * owning form can be submitted.\n */\n required?: boolean\n\n /**\n * The name of the checkbox. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * The value given as data when submitted with a name.\n */\n value?: string\n\n /**\n * When true, prevents the user from interacting with the checkbox.\n */\n disabled?: boolean\n\n /**\n * Event handler called when the checked state of the checkbox changes.\n */\n onCheckedChange?: (checked: boolean | 'indeterminate') => void\n\n /**\n * When true, prevents the user from interacting with the checkbox but focus\n * is still possible.\n */\n 'aria-disabled'?: boolean\n}\n\nexport const Checkbox = React.forwardRef<\n ElementRef<typeof StyledCheckbox>,\n CheckboxProps\n>(\n (\n {\n 'aria-disabled': ariaDisabled = false,\n checked,\n defaultChecked = false,\n disabled,\n onClick,\n onKeyDown,\n size = 'large',\n variant = 'solid-prominent',\n ...restProps\n },\n forwardRef\n ) => {\n const [checkedState, setCheckedState] = useState(defaultChecked)\n const disabledUnChecked =\n (disabled === true || ariaDisabled) && (checked ?? !checkedState)\n return (\n <StyledCheckbox\n {...restProps}\n aria-disabled={ariaDisabled}\n checked={checked ?? checkedState}\n defaultChecked={defaultChecked}\n disabled={disabled}\n size={size}\n variant={variant}\n onClick={e => {\n if (ariaDisabled) {\n e.preventDefault()\n return\n }\n setCheckedState(prevChecked => !prevChecked)\n onClick?.(e)\n }}\n ref={forwardRef}\n >\n <StyledCheckboxContent>\n <Indicator>\n <StyledCheckMark size={size} />\n </Indicator>\n {disabledUnChecked && <StyledDisabledMark size={size} />}\n </StyledCheckboxContent>\n </StyledCheckbox>\n )\n }\n)\n"],"names":["RadixIndicator"],"mappings":";;;;;;AAMA,MAAM,eAAA,GAAkB,OAAOA,WAAc,CAAA,CAAA;AAGtC,MAAM,YAAY,KAAM,CAAA,UAAA,CAG7B,CAAC,KAAA,EAAO,+BAAgB,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,EAAiB,GAAG,KAAA;AAAA,EAAO,GAAK,EAAA,UAAA;AAAA,CAAY,CAAE,CAAA;;ACP3D,MAAA,qBAAA,GAAwB,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EACzD,OAAS,EAAA,OAAA;AAAA,EACT,aAAe,EAAA,MAAA;AAAA,EACf,YAAc,EAAA,KAAA;AAAA,EACd,QAAU,EAAA,UAAA;AAAA,EACV,MAAQ,EAAA,MAAA;AAAA,EACR,SAAW,EAAA,YAAA;AACb,CAAC,CAAA,CAAA;AAED,MAAM,0BAA0B,CAAK,EAAA,EAAA,qBAAA,CAAA,CAAA,CAAA;AAExB,MAAA,cAAA,GAAiB,OAAO,IAAM,EAAA;AAAA,EACzC,GAAK,EAAA,OAAA;AAAA,EACL,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AAA,CAAA,WAAA,KAAe,CAAC,WAAW,CAAA,CAAA;AAC3C,QAAU,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACZ;AAAA,MACA,GAAK,EAAA,UAAA;AAAA,KAAA,kBAEJ,KAAA,CAAA,aAAA,CAAA,qBAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,SAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,MAAgB,IAAA;AAAA,KAAY,CAC/B,CACC,EAAA,iBAAA,oBAAsB,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA;AAAA,MAAmB,IAAA;AAAA,KAAY,CACxD,CACF,CAAA,CAAA;AAAA,GAEJ;AACF;;;;"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import react__default, { ComponentPropsWithRef } from 'react';
|
|
3
|
+
import * as _radix_ui_react_checkbox from '@radix-ui/react-checkbox';
|
|
4
|
+
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
|
+
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
6
|
+
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
7
|
+
|
|
8
|
+
declare const StyledCheckbox: react.ForwardRefExoticComponent<Pick<Omit<{
|
|
9
|
+
variant?: "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
10
|
+
size?: "small" | "large" | undefined;
|
|
11
|
+
}, "size" | "variant"> & _stitches_react_types_styled_component.TransformProps<{
|
|
12
|
+
variant?: "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
13
|
+
size?: "small" | "large" | undefined;
|
|
14
|
+
}, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
15
|
+
'border-widths': {
|
|
16
|
+
readonly none: 0;
|
|
17
|
+
readonly sm: "1px";
|
|
18
|
+
readonly md: "2px";
|
|
19
|
+
readonly lg: "4px";
|
|
20
|
+
};
|
|
21
|
+
colors: {
|
|
22
|
+
readonly 'blue-100': any;
|
|
23
|
+
readonly 'blue-200': any;
|
|
24
|
+
readonly 'blue-300': any;
|
|
25
|
+
readonly 'blue-400': any;
|
|
26
|
+
readonly 'blue-500': any;
|
|
27
|
+
readonly 'blue-600': any;
|
|
28
|
+
readonly 'blue-700': any;
|
|
29
|
+
readonly 'blue-800': any;
|
|
30
|
+
readonly 'blue-900': any;
|
|
31
|
+
readonly 'blue-1000': any;
|
|
32
|
+
readonly 'gray-100': any;
|
|
33
|
+
readonly 'gray-200': any;
|
|
34
|
+
readonly 'gray-300': any;
|
|
35
|
+
readonly 'gray-400': any;
|
|
36
|
+
readonly 'gray-500': any;
|
|
37
|
+
readonly 'gray-600': any;
|
|
38
|
+
readonly 'gray-700': any;
|
|
39
|
+
readonly 'gray-800': any;
|
|
40
|
+
readonly 'gray-900': any;
|
|
41
|
+
readonly 'indigo-100': any;
|
|
42
|
+
readonly 'indigo-200': any;
|
|
43
|
+
readonly 'indigo-300': any;
|
|
44
|
+
readonly 'indigo-400': any;
|
|
45
|
+
readonly 'indigo-500': any;
|
|
46
|
+
readonly 'indigo-600': any;
|
|
47
|
+
readonly 'indigo-700': any;
|
|
48
|
+
readonly 'indigo-800': any;
|
|
49
|
+
readonly 'indigo-900': any;
|
|
50
|
+
readonly 'red-100': any;
|
|
51
|
+
readonly 'red-200': any;
|
|
52
|
+
readonly 'red-300': any;
|
|
53
|
+
readonly 'red-400': any;
|
|
54
|
+
readonly 'red-500': any;
|
|
55
|
+
readonly 'red-600': any;
|
|
56
|
+
readonly 'red-700': any;
|
|
57
|
+
readonly 'red-800': any;
|
|
58
|
+
readonly 'red-900': any;
|
|
59
|
+
readonly 'yellow-100': any;
|
|
60
|
+
readonly 'yellow-200': any;
|
|
61
|
+
readonly 'yellow-300': any;
|
|
62
|
+
readonly 'yellow-400': any;
|
|
63
|
+
readonly 'yellow-500': any;
|
|
64
|
+
readonly 'yellow-600': any;
|
|
65
|
+
readonly 'yellow-700': any;
|
|
66
|
+
readonly 'yellow-800': any;
|
|
67
|
+
readonly 'yellow-900': any;
|
|
68
|
+
readonly 'green-100': any;
|
|
69
|
+
readonly 'green-200': any;
|
|
70
|
+
readonly 'green-300': any;
|
|
71
|
+
readonly 'green-400': any;
|
|
72
|
+
readonly 'green-500': any;
|
|
73
|
+
readonly 'green-600': any;
|
|
74
|
+
readonly 'green-700': any;
|
|
75
|
+
readonly 'green-800': any;
|
|
76
|
+
readonly 'green-900': any;
|
|
77
|
+
readonly black: any;
|
|
78
|
+
readonly white: any;
|
|
79
|
+
readonly transparent: any;
|
|
80
|
+
readonly 'background-neutrals'?: any;
|
|
81
|
+
readonly 'background-neutrals-body'?: any;
|
|
82
|
+
readonly 'background-neutrals-container'?: any;
|
|
83
|
+
readonly 'background-neutrals-inverted'?: any;
|
|
84
|
+
readonly 'background-neutrals-inverted-subtle'?: any;
|
|
85
|
+
readonly 'background-neutrals-subtle'?: any;
|
|
86
|
+
readonly 'background-neutrals-subtle-hover'?: any;
|
|
87
|
+
readonly 'background-neutrals-subtle-active'?: any;
|
|
88
|
+
readonly 'background-neutrals-disabled'?: any;
|
|
89
|
+
readonly 'background-neutrals-controls-disabled'?: any;
|
|
90
|
+
readonly 'background-neutrals-scrolls'?: any;
|
|
91
|
+
readonly 'background-neutrals-inactive'?: any;
|
|
92
|
+
readonly 'background-neutrals-inactive-hover'?: any;
|
|
93
|
+
readonly 'background-primary-prominent'?: any;
|
|
94
|
+
readonly 'background-primary-prominent-hover'?: any;
|
|
95
|
+
readonly 'background-primary-prominent-active'?: any;
|
|
96
|
+
readonly 'background-primary-prominent-selected'?: any;
|
|
97
|
+
readonly 'background-primary-subtle'?: any;
|
|
98
|
+
readonly 'background-primary-subtle-hover'?: any;
|
|
99
|
+
readonly 'background-primary-subtle-active'?: any;
|
|
100
|
+
readonly 'background-primary-subtle-selected'?: any;
|
|
101
|
+
readonly 'background-danger-prominent'?: any;
|
|
102
|
+
readonly 'background-danger-prominent-hover'?: any;
|
|
103
|
+
readonly 'background-danger-prominent-active'?: any;
|
|
104
|
+
readonly 'background-danger'?: any;
|
|
105
|
+
readonly 'background-danger-hover'?: any;
|
|
106
|
+
readonly 'background-success'?: any;
|
|
107
|
+
readonly 'background-warning-subtle'?: any;
|
|
108
|
+
readonly 'background-warning-prominent'?: any;
|
|
109
|
+
readonly 'text-neutrals-inverted'?: any;
|
|
110
|
+
readonly 'text-neutrals'?: any;
|
|
111
|
+
readonly 'text-neutrals-subtle'?: any;
|
|
112
|
+
readonly 'text-neutrals-placeholder-only'?: any;
|
|
113
|
+
readonly 'text-neutrals-placeholder'?: any;
|
|
114
|
+
readonly 'text-neutrals-disabled'?: any;
|
|
115
|
+
readonly 'text-primary-inverted'?: any;
|
|
116
|
+
readonly 'text-primary'?: any;
|
|
117
|
+
readonly 'text-primary-hover'?: any;
|
|
118
|
+
readonly 'text-primary-active'?: any;
|
|
119
|
+
readonly 'text-primary-selected'?: any;
|
|
120
|
+
readonly 'text-primary-inverted-subtle'?: any;
|
|
121
|
+
readonly 'text-danger-inverted'?: any;
|
|
122
|
+
readonly 'text-danger'?: any;
|
|
123
|
+
readonly 'text-danger-hover'?: any;
|
|
124
|
+
readonly 'text-danger-active'?: any;
|
|
125
|
+
readonly 'text-success'?: any;
|
|
126
|
+
readonly 'text-warning'?: any;
|
|
127
|
+
readonly 'icon-neutrals-inverted'?: any;
|
|
128
|
+
readonly 'icon-neutrals'?: any;
|
|
129
|
+
readonly 'icon-neutrals-with-text'?: any;
|
|
130
|
+
readonly 'icon-neutrals-subtle'?: any;
|
|
131
|
+
readonly 'icon-neutrals-disabled'?: any;
|
|
132
|
+
readonly 'icon-neutrals-search'?: any;
|
|
133
|
+
readonly 'icon-neutrals-inactive'?: any;
|
|
134
|
+
readonly 'icon-neutrals-inactive-hover'?: any;
|
|
135
|
+
readonly 'icon-primary-inverted'?: any;
|
|
136
|
+
readonly 'icon-primary'?: any;
|
|
137
|
+
readonly 'icon-primary-hover'?: any;
|
|
138
|
+
readonly 'icon-primary-active'?: any;
|
|
139
|
+
readonly 'icon-primary-selected'?: any;
|
|
140
|
+
readonly 'icon-danger-inverted'?: any;
|
|
141
|
+
readonly 'icon-danger'?: any;
|
|
142
|
+
readonly 'icon-danger-hover'?: any;
|
|
143
|
+
readonly 'icon-danger-active'?: any;
|
|
144
|
+
readonly 'icon-success-inverted'?: any;
|
|
145
|
+
readonly 'icon-success'?: any;
|
|
146
|
+
readonly 'icon-warning'?: any;
|
|
147
|
+
readonly 'border-neutrals'?: any;
|
|
148
|
+
readonly 'border-neutrals-hover'?: any;
|
|
149
|
+
readonly 'border-neutrals-active'?: any;
|
|
150
|
+
readonly 'border-neutrals-disabled'?: any;
|
|
151
|
+
readonly 'border-neutrals-controls'?: any;
|
|
152
|
+
readonly 'border-neutrals-controls-disabled'?: any;
|
|
153
|
+
readonly 'border-neutrals-subtle'?: any;
|
|
154
|
+
readonly 'border-neutrals-inverted'?: any;
|
|
155
|
+
readonly 'border-primary'?: any;
|
|
156
|
+
readonly 'border-primary-hover'?: any;
|
|
157
|
+
readonly 'border-primary-active'?: any;
|
|
158
|
+
readonly 'border-primary-inverted'?: any;
|
|
159
|
+
readonly 'border-danger'?: any;
|
|
160
|
+
readonly 'border-success'?: any;
|
|
161
|
+
readonly 'border-warning'?: any;
|
|
162
|
+
};
|
|
163
|
+
'font-sizes': {
|
|
164
|
+
readonly 150: "0.75rem";
|
|
165
|
+
readonly 175: "0.875rem";
|
|
166
|
+
readonly 200: "1rem";
|
|
167
|
+
readonly 225: "1.125rem";
|
|
168
|
+
readonly 250: "1.25rem";
|
|
169
|
+
readonly 300: "1.5rem";
|
|
170
|
+
readonly 400: "2rem";
|
|
171
|
+
readonly 500: "2.5rem";
|
|
172
|
+
readonly 600: "3rem";
|
|
173
|
+
readonly 800: "4rem";
|
|
174
|
+
readonly 900: "4.5rem";
|
|
175
|
+
};
|
|
176
|
+
radii: {
|
|
177
|
+
readonly none: 0;
|
|
178
|
+
readonly half: "999em";
|
|
179
|
+
readonly 25: "2px";
|
|
180
|
+
readonly 50: "4px";
|
|
181
|
+
readonly 75: "6px";
|
|
182
|
+
readonly 100: "8px";
|
|
183
|
+
readonly 200: "16px";
|
|
184
|
+
};
|
|
185
|
+
shadows: {
|
|
186
|
+
readonly 50: "0 4px 16px #05003812";
|
|
187
|
+
readonly 100: "0 8px 32px #05003808";
|
|
188
|
+
};
|
|
189
|
+
sizes: {
|
|
190
|
+
readonly number: string;
|
|
191
|
+
readonly 'icon-200': "16px";
|
|
192
|
+
readonly 'icon-300': "24px";
|
|
193
|
+
readonly 'icon-400': "32px";
|
|
194
|
+
};
|
|
195
|
+
space: {
|
|
196
|
+
readonly none: 0;
|
|
197
|
+
readonly 50: "4px";
|
|
198
|
+
readonly 100: "8px";
|
|
199
|
+
readonly 150: "12px";
|
|
200
|
+
readonly 200: "16px";
|
|
201
|
+
readonly 300: "24px";
|
|
202
|
+
readonly 400: "32px";
|
|
203
|
+
readonly 500: "64px";
|
|
204
|
+
readonly 600: "48px";
|
|
205
|
+
readonly 800: "64px";
|
|
206
|
+
readonly 1200: "96px";
|
|
207
|
+
readonly 1600: "128px";
|
|
208
|
+
};
|
|
209
|
+
'space-gap': {
|
|
210
|
+
readonly none: any;
|
|
211
|
+
readonly 50: any;
|
|
212
|
+
readonly 100: any;
|
|
213
|
+
readonly 200: any;
|
|
214
|
+
readonly 300: any;
|
|
215
|
+
};
|
|
216
|
+
'space-inset': {
|
|
217
|
+
readonly none: any;
|
|
218
|
+
readonly 50: any;
|
|
219
|
+
readonly 100: any;
|
|
220
|
+
readonly 150: any;
|
|
221
|
+
readonly 200: any;
|
|
222
|
+
readonly 300: any;
|
|
223
|
+
readonly 400: any;
|
|
224
|
+
readonly 600: any;
|
|
225
|
+
readonly 800: any;
|
|
226
|
+
readonly 1200: any;
|
|
227
|
+
readonly 1600: any;
|
|
228
|
+
};
|
|
229
|
+
'space-offset': {
|
|
230
|
+
readonly none: any;
|
|
231
|
+
readonly 50: any;
|
|
232
|
+
readonly 100: any;
|
|
233
|
+
readonly 150: any;
|
|
234
|
+
readonly 200: any;
|
|
235
|
+
readonly 300: any;
|
|
236
|
+
readonly 400: any;
|
|
237
|
+
readonly 600: any;
|
|
238
|
+
readonly 800: any;
|
|
239
|
+
readonly 1200: any;
|
|
240
|
+
readonly 1600: any;
|
|
241
|
+
readonly 'stacking-none': any;
|
|
242
|
+
readonly 'stacking-100': any;
|
|
243
|
+
readonly 'stacking-200': any;
|
|
244
|
+
readonly 'stacking-300': any;
|
|
245
|
+
readonly 'stacking-400': any;
|
|
246
|
+
readonly 'stacking-500': any;
|
|
247
|
+
readonly 'stacking-800': any;
|
|
248
|
+
};
|
|
249
|
+
'z-indices': {
|
|
250
|
+
readonly dropdownMenu: 100;
|
|
251
|
+
readonly popover: 200;
|
|
252
|
+
readonly tooltip: 300;
|
|
253
|
+
};
|
|
254
|
+
}, {
|
|
255
|
+
readonly background: "colors";
|
|
256
|
+
readonly backgroundColor: "colors";
|
|
257
|
+
readonly backgroundImage: "colors";
|
|
258
|
+
readonly blockSize: "sizes";
|
|
259
|
+
readonly border: "colors";
|
|
260
|
+
readonly borderBlock: "colors";
|
|
261
|
+
readonly borderBlockEnd: "colors";
|
|
262
|
+
readonly borderBlockStart: "colors";
|
|
263
|
+
readonly borderBottom: "colors";
|
|
264
|
+
readonly borderBottomColor: "colors";
|
|
265
|
+
readonly borderBottomLeftRadius: "radii";
|
|
266
|
+
readonly borderBottomRightRadius: "radii";
|
|
267
|
+
readonly borderBottomStyle: "border-styles";
|
|
268
|
+
readonly borderBottomWidth: "border-widths";
|
|
269
|
+
readonly borderColor: "colors";
|
|
270
|
+
readonly borderImage: "colors";
|
|
271
|
+
readonly borderInline: "colors";
|
|
272
|
+
readonly borderInlineEnd: "colors";
|
|
273
|
+
readonly borderInlineStart: "colors";
|
|
274
|
+
readonly borderLeft: "colors";
|
|
275
|
+
readonly borderLeftColor: "colors";
|
|
276
|
+
readonly borderLeftStyle: "border-styles";
|
|
277
|
+
readonly borderLeftWidth: "border-widths";
|
|
278
|
+
readonly borderRadius: "radii";
|
|
279
|
+
readonly borderRight: "colors";
|
|
280
|
+
readonly borderRightColor: "colors";
|
|
281
|
+
readonly borderRightStyle: "border-styles";
|
|
282
|
+
readonly borderRightWidth: "border-widths";
|
|
283
|
+
readonly borderStyle: "border-styles";
|
|
284
|
+
readonly borderTop: "colors";
|
|
285
|
+
readonly borderTopColor: "colors";
|
|
286
|
+
readonly borderTopLeftRadius: "radii";
|
|
287
|
+
readonly borderTopRightRadius: "radii";
|
|
288
|
+
readonly borderTopStyle: "border-styles";
|
|
289
|
+
readonly borderTopWidth: "border-widths";
|
|
290
|
+
readonly borderWidth: "border-widths";
|
|
291
|
+
readonly bottom: "space";
|
|
292
|
+
readonly boxShadow: "shadows";
|
|
293
|
+
readonly caretColor: "colors";
|
|
294
|
+
readonly color: "colors";
|
|
295
|
+
readonly columnGap: "space-gap";
|
|
296
|
+
readonly columnRuleColor: "colors";
|
|
297
|
+
readonly fill: "colors";
|
|
298
|
+
readonly flexBasis: "sizes";
|
|
299
|
+
readonly fontFamily: "fonts";
|
|
300
|
+
readonly fontSize: "font-sizes";
|
|
301
|
+
readonly fontWeight: "font-weights";
|
|
302
|
+
readonly gap: "space-gap";
|
|
303
|
+
readonly gridColumnGap: "space-gap";
|
|
304
|
+
readonly gridGap: "space-gap";
|
|
305
|
+
readonly gridRowGap: "space-gap";
|
|
306
|
+
readonly gridTemplateColumns: "sizes";
|
|
307
|
+
readonly gridTemplateRows: "sizes";
|
|
308
|
+
readonly height: "sizes";
|
|
309
|
+
readonly inlineSize: "sizes";
|
|
310
|
+
readonly inset: "space-inset";
|
|
311
|
+
readonly insetBlock: "space-inset";
|
|
312
|
+
readonly insetBlockEnd: "space-inset";
|
|
313
|
+
readonly insetBlockStart: "space-inset";
|
|
314
|
+
readonly insetInline: "space-inset";
|
|
315
|
+
readonly insetInlineEnd: "space-inset";
|
|
316
|
+
readonly insetInlineStart: "space-inset";
|
|
317
|
+
readonly left: "space";
|
|
318
|
+
readonly letterSpacing: "letter-spacings";
|
|
319
|
+
readonly lineHeight: "line-heights";
|
|
320
|
+
readonly margin: "space-offset";
|
|
321
|
+
readonly marginBlock: "space-offset";
|
|
322
|
+
readonly marginBlockEnd: "space-offset";
|
|
323
|
+
readonly marginBlockStart: "space-offset";
|
|
324
|
+
readonly marginBottom: "space-offset";
|
|
325
|
+
readonly marginInline: "space-offset";
|
|
326
|
+
readonly marginInlineEnd: "space-offset";
|
|
327
|
+
readonly marginInlineStart: "space-offset";
|
|
328
|
+
readonly marginLeft: "space-offset";
|
|
329
|
+
readonly marginRight: "space-offset";
|
|
330
|
+
readonly marginTop: "space-offset";
|
|
331
|
+
readonly maxBlockSize: "sizes";
|
|
332
|
+
readonly maxHeight: "sizes";
|
|
333
|
+
readonly maxInlineSize: "sizes";
|
|
334
|
+
readonly maxWidth: "sizes";
|
|
335
|
+
readonly minBlockSize: "sizes";
|
|
336
|
+
readonly minHeight: "sizes";
|
|
337
|
+
readonly minInlineSize: "sizes";
|
|
338
|
+
readonly minWidth: "sizes";
|
|
339
|
+
readonly outline: "colors";
|
|
340
|
+
readonly outlineColor: "colors";
|
|
341
|
+
readonly padding: "space-inset";
|
|
342
|
+
readonly paddingBlock: "space-inset";
|
|
343
|
+
readonly paddingBlockEnd: "space-inset";
|
|
344
|
+
readonly paddingBlockStart: "space-inset";
|
|
345
|
+
readonly paddingBottom: "space-inset";
|
|
346
|
+
readonly paddingInline: "space-inset";
|
|
347
|
+
readonly paddingInlineEnd: "space-inset";
|
|
348
|
+
readonly paddingInlineStart: "space-inset";
|
|
349
|
+
readonly paddingLeft: "space-inset";
|
|
350
|
+
readonly paddingRight: "space-inset";
|
|
351
|
+
readonly paddingTop: "space-inset";
|
|
352
|
+
readonly right: "space";
|
|
353
|
+
readonly rowGap: "space-gap";
|
|
354
|
+
readonly scrollMargin: "space-offset";
|
|
355
|
+
readonly scrollMarginBlock: "space-offset";
|
|
356
|
+
readonly scrollMarginBlockEnd: "space-offset";
|
|
357
|
+
readonly scrollMarginBlockStart: "space-offset";
|
|
358
|
+
readonly scrollMarginBottom: "space-offset";
|
|
359
|
+
readonly scrollMarginInline: "space-offset";
|
|
360
|
+
readonly scrollMarginInlineEnd: "space-offset";
|
|
361
|
+
readonly scrollMarginInlineStart: "space-offset";
|
|
362
|
+
readonly scrollMarginLeft: "space-offset";
|
|
363
|
+
readonly scrollMarginRight: "space-offset";
|
|
364
|
+
readonly scrollMarginTop: "space-offset";
|
|
365
|
+
readonly scrollPadding: "space-inset";
|
|
366
|
+
readonly scrollPaddingBlock: "space-inset";
|
|
367
|
+
readonly scrollPaddingBlockEnd: "space-inset";
|
|
368
|
+
readonly scrollPaddingBlockStart: "space-inset";
|
|
369
|
+
readonly scrollPaddingBottom: "space-inset";
|
|
370
|
+
readonly scrollPaddingInline: "space-inset";
|
|
371
|
+
readonly scrollPaddingInlineEnd: "space-inset";
|
|
372
|
+
readonly scrollPaddingInlineStart: "space-inset";
|
|
373
|
+
readonly scrollPaddingLeft: "space-inset";
|
|
374
|
+
readonly scrollPaddingRight: "space-inset";
|
|
375
|
+
readonly scrollPaddingTop: "space-inset";
|
|
376
|
+
readonly stroke: "colors";
|
|
377
|
+
readonly textDecorationColor: "colors";
|
|
378
|
+
readonly textShadow: "shadows";
|
|
379
|
+
readonly top: "space";
|
|
380
|
+
readonly transition: "transitions";
|
|
381
|
+
readonly width: "sizes";
|
|
382
|
+
readonly zIndex: "z-indices";
|
|
383
|
+
}, {
|
|
384
|
+
paddingX: (value: {
|
|
385
|
+
readonly [$$PropertyValue]: "padding";
|
|
386
|
+
}) => {
|
|
387
|
+
paddingLeft: {
|
|
388
|
+
readonly [$$PropertyValue]: "padding";
|
|
389
|
+
};
|
|
390
|
+
paddingRight: {
|
|
391
|
+
readonly [$$PropertyValue]: "padding";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
paddingY: (value: {
|
|
395
|
+
readonly [$$PropertyValue]: "padding";
|
|
396
|
+
}) => {
|
|
397
|
+
paddingTop: {
|
|
398
|
+
readonly [$$PropertyValue]: "padding";
|
|
399
|
+
};
|
|
400
|
+
paddingBottom: {
|
|
401
|
+
readonly [$$PropertyValue]: "padding";
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
marginX: (value: {
|
|
405
|
+
readonly [$$PropertyValue]: "margin";
|
|
406
|
+
}) => {
|
|
407
|
+
marginLeft: {
|
|
408
|
+
readonly [$$PropertyValue]: "margin";
|
|
409
|
+
};
|
|
410
|
+
marginRight: {
|
|
411
|
+
readonly [$$PropertyValue]: "margin";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
marginY: (value: {
|
|
415
|
+
readonly [$$PropertyValue]: "margin";
|
|
416
|
+
}) => {
|
|
417
|
+
marginTop: {
|
|
418
|
+
readonly [$$PropertyValue]: "margin";
|
|
419
|
+
};
|
|
420
|
+
marginBottom: {
|
|
421
|
+
readonly [$$PropertyValue]: "margin";
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
square: (value: {
|
|
425
|
+
readonly [$$PropertyValue]: "width";
|
|
426
|
+
}) => {
|
|
427
|
+
width: {
|
|
428
|
+
readonly [$$PropertyValue]: "width";
|
|
429
|
+
};
|
|
430
|
+
height: {
|
|
431
|
+
readonly [$$PropertyValue]: "width";
|
|
432
|
+
};
|
|
433
|
+
};
|
|
434
|
+
}>>> & _mirohq_design_system_stitches.CustomStylesProps, "color" | "translate" | "prefix" | "asChild" | "form" | "slot" | "title" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "required" | "size" | "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 | "variant" | "onCheckedChange"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>>, {
|
|
435
|
+
variant?: "solid-prominent" | "solid-subtle" | "ghost" | undefined;
|
|
436
|
+
size?: "small" | "large" | undefined;
|
|
437
|
+
}, {}>;
|
|
438
|
+
declare type StyledCheckboxProps = ComponentPropsWithRef<typeof StyledCheckbox>;
|
|
439
|
+
|
|
440
|
+
interface CheckboxProps extends StyledCheckboxProps {
|
|
441
|
+
/**
|
|
442
|
+
* The checked state of the checkbox when it is initially rendered. Use when
|
|
443
|
+
* you do not need to control its checked state.
|
|
444
|
+
*/
|
|
445
|
+
defaultChecked?: boolean;
|
|
446
|
+
/**
|
|
447
|
+
* The style of the checkbox.
|
|
448
|
+
*/
|
|
449
|
+
variant?: StyledCheckboxProps['variant'];
|
|
450
|
+
/**
|
|
451
|
+
* The size of the checkbox.
|
|
452
|
+
*/
|
|
453
|
+
size?: StyledCheckboxProps['size'];
|
|
454
|
+
/**
|
|
455
|
+
* The controlled checked state of the checkbox. Must be used in conjunction
|
|
456
|
+
* with onCheckedChange.
|
|
457
|
+
*/
|
|
458
|
+
checked?: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* When true, indicates that the user must check the checkbox before the
|
|
461
|
+
* owning form can be submitted.
|
|
462
|
+
*/
|
|
463
|
+
required?: boolean;
|
|
464
|
+
/**
|
|
465
|
+
* The name of the checkbox. Submitted with its owning form as part of a
|
|
466
|
+
* name/value pair.
|
|
467
|
+
*/
|
|
468
|
+
name?: string;
|
|
469
|
+
/**
|
|
470
|
+
* The value given as data when submitted with a name.
|
|
471
|
+
*/
|
|
472
|
+
value?: string;
|
|
473
|
+
/**
|
|
474
|
+
* When true, prevents the user from interacting with the checkbox.
|
|
475
|
+
*/
|
|
476
|
+
disabled?: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* Event handler called when the checked state of the checkbox changes.
|
|
479
|
+
*/
|
|
480
|
+
onCheckedChange?: (checked: boolean | 'indeterminate') => void;
|
|
481
|
+
/**
|
|
482
|
+
* When true, prevents the user from interacting with the checkbox but focus
|
|
483
|
+
* is still possible.
|
|
484
|
+
*/
|
|
485
|
+
'aria-disabled'?: boolean;
|
|
486
|
+
}
|
|
487
|
+
declare const Checkbox: react__default.ForwardRefExoticComponent<Pick<CheckboxProps, "color" | "translate" | "css" | "prefix" | "asChild" | "UNSAFE_style" | "form" | "slot" | "title" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "required" | "size" | "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" | "variant" | "onCheckedChange"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
488
|
+
|
|
489
|
+
export { Checkbox, CheckboxProps };
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mirohq/design-system-checkbox",
|
|
3
|
+
"version": "1.0.0-checkbox.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"author": "Miro",
|
|
6
|
+
"source": "src/index.ts",
|
|
7
|
+
"main": "dist/main.js",
|
|
8
|
+
"module": "dist/module.js",
|
|
9
|
+
"types": "dist/types.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"require": "./dist/main.js",
|
|
14
|
+
"import": "./dist/module.js",
|
|
15
|
+
"types": "./dist/types.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@stitches/react": "^1.2.8",
|
|
26
|
+
"react": "^16.14 || ^17"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@radix-ui/react-checkbox": "^1.0.0",
|
|
30
|
+
"@mirohq/design-system-icons": "^0.7.1-checkbox.0",
|
|
31
|
+
"@mirohq/design-system-primitive": "^1.0.4",
|
|
32
|
+
"@mirohq/design-system-stitches": "^2.1.0-checkbox.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@mirohq/design-system-flex": "^2.0.14-checkbox.0"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "rollup -c ../../../rollup.config.js",
|
|
39
|
+
"clean": "rm -rf dist",
|
|
40
|
+
"prebuild": "pnpm clean"
|
|
41
|
+
}
|
|
42
|
+
}
|