@mirohq/design-system-switch 2.0.8

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 ADDED
@@ -0,0 +1,118 @@
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 RadixSwitch = require('@radix-ui/react-switch');
8
+ var designSystemStyles = require('@mirohq/design-system-styles');
9
+
10
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
+
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
22
+ });
23
+ }
24
+ });
25
+ }
26
+ n["default"] = e;
27
+ return Object.freeze(n);
28
+ }
29
+
30
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
31
+ var RadixSwitch__namespace = /*#__PURE__*/_interopNamespace(RadixSwitch);
32
+
33
+ const TRANSITION_TIME = "250ms";
34
+ const StyledSwitch = designSystemStitches.styled(RadixSwitch__namespace.Root, {
35
+ all: "unset",
36
+ cursor: "pointer",
37
+ boxSizing: "border-box",
38
+ backgroundColor: "rgba(205, 204, 215, 1)",
39
+ borderRadius: "$half",
40
+ position: "relative",
41
+ display: "inline-flex",
42
+ verticalAlign: "middle",
43
+ padding: 2,
44
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
45
+ transition: `background ${TRANSITION_TIME}`,
46
+ ...designSystemStyles.focus.defaults,
47
+ "&:hover": {
48
+ background: "rgba(147, 145, 166, 1)"
49
+ },
50
+ '&[data-state="checked"]': {
51
+ background: "rgba(66, 98, 255, 1)",
52
+ "&:hover": {
53
+ background: "rgba(69, 91, 237, 1)"
54
+ }
55
+ },
56
+ "&[data-disabled]": {
57
+ background: "rgba(235, 235, 239, 1)",
58
+ '&[data-state="checked"]': {
59
+ background: "rgba(217, 224, 255, 1)"
60
+ }
61
+ },
62
+ variants: {
63
+ size: {
64
+ medium: {
65
+ width: 28,
66
+ height: 16
67
+ },
68
+ large: {
69
+ width: 36,
70
+ height: 20
71
+ }
72
+ }
73
+ }
74
+ });
75
+ const StyledThumb = designSystemStitches.styled(RadixSwitch__namespace.Thumb, {
76
+ display: "block",
77
+ backgroundColor: "white",
78
+ borderRadius: "$half",
79
+ transition: `transform ${TRANSITION_TIME}`,
80
+ willChange: "transform",
81
+ '&[data-state="checked"]': { transform: "translateX(100%)" },
82
+ variants: {
83
+ size: {
84
+ medium: {
85
+ width: 12,
86
+ height: 12
87
+ },
88
+ large: {
89
+ width: 16,
90
+ height: 16
91
+ }
92
+ }
93
+ }
94
+ });
95
+
96
+ const Switch = React__default["default"].forwardRef(
97
+ ({
98
+ size = "medium",
99
+ checked = false,
100
+ disabled = false,
101
+ required = false,
102
+ onChange,
103
+ ...restProps
104
+ }, forwardRef) => /* @__PURE__ */ React__default["default"].createElement(StyledSwitch, {
105
+ ...restProps,
106
+ ref: forwardRef,
107
+ size,
108
+ checked,
109
+ disabled,
110
+ required,
111
+ onCheckedChange: onChange
112
+ }, /* @__PURE__ */ React__default["default"].createElement(StyledThumb, {
113
+ size
114
+ }))
115
+ );
116
+
117
+ exports.Switch = Switch;
118
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sources":["../src/switch.styled.ts","../src/switch.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixSwitch from '@radix-ui/react-switch'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst TRANSITION_TIME = '250ms'\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n borderRadius: '$half',\n position: 'relative',\n display: 'inline-flex',\n verticalAlign: 'middle',\n padding: 2,\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n transition: `background ${TRANSITION_TIME}`,\n ...focus.defaults,\n '&:hover': {\n background: 'rgba(147, 145, 166, 1)',\n },\n '&[data-state=\"checked\"]': {\n background: 'rgba(66, 98, 255, 1)',\n '&:hover': {\n background: 'rgba(69, 91, 237, 1)',\n },\n },\n '&[data-disabled]': {\n background: 'rgba(235, 235, 239, 1)',\n '&[data-state=\"checked\"]': {\n background: 'rgba(217, 224, 255, 1)',\n },\n },\n variants: {\n size: {\n medium: {\n width: 28,\n height: 16,\n },\n large: {\n width: 36,\n height: 20,\n },\n },\n },\n})\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: 'white',\n borderRadius: '$half',\n transition: `transform ${TRANSITION_TIME}`,\n willChange: 'transform',\n '&[data-state=\"checked\"]': { transform: 'translateX(100%)' },\n variants: {\n size: {\n medium: {\n width: 12,\n height: 12,\n },\n large: {\n width: 16,\n height: 16,\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch } from './switch.styled'\n\nexport interface SwitchProps extends Omit<StyledSwitchProps, 'onChange'> {\n /**\n * Change the size of the switch\n */\n size?: StyledSwitchProps['size']\n\n /**\n * The state of the switch\n */\n checked: boolean\n\n /**\n * Event handler called when the state of the switch changes\n */\n onChange: (checked: boolean) => void\n\n /**\n * Prevents the user from interacting with the switch\n */\n disabled?: boolean\n\n /**\n * Indicates that the user must check the switch\n */\n required?: boolean\n\n /**\n * The name of the switch used in the form\n */\n name?: string\n\n /**\n * The data when accessing the switch by its name in the form\n */\n value: string\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n checked = false,\n disabled = false,\n required = false,\n onChange,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n checked={checked}\n disabled={disabled}\n required={required}\n onCheckedChange={onChange}\n >\n <StyledThumb size={size} />\n </StyledSwitch>\n )\n)\n"],"names":["styled","RadixSwitch","focus","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,eAAkB,GAAA,OAAA,CAAA;AAEX,MAAA,YAAA,GAAeA,2BAAO,CAAAC,sBAAA,CAAY,IAAM,EAAA;AAAA,EACnD,GAAK,EAAA,OAAA;AAAA,EACL,MAAQ,EAAA,SAAA;AAAA,EACR,SAAW,EAAA,YAAA;AAAA,EACX,eAAiB,EAAA,wBAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,aAAA;AAAA,EACT,aAAe,EAAA,QAAA;AAAA,EACf,OAAS,EAAA,CAAA;AAAA,EACT,uBAAyB,EAAA,kBAAA;AAAA,EACzB,YAAY,CAAc,WAAA,EAAA,eAAA,CAAA,CAAA;AAAA,EAC1B,GAAGC,wBAAM,CAAA,QAAA;AAAA,EACT,SAAW,EAAA;AAAA,IACT,UAAY,EAAA,wBAAA;AAAA,GACd;AAAA,EACA,yBAA2B,EAAA;AAAA,IACzB,UAAY,EAAA,sBAAA;AAAA,IACZ,SAAW,EAAA;AAAA,MACT,UAAY,EAAA,sBAAA;AAAA,KACd;AAAA,GACF;AAAA,EACA,kBAAoB,EAAA;AAAA,IAClB,UAAY,EAAA,wBAAA;AAAA,IACZ,yBAA2B,EAAA;AAAA,MACzB,UAAY,EAAA,wBAAA;AAAA,KACd;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AAEY,MAAA,WAAA,GAAcF,2BAAO,CAAAC,sBAAA,CAAY,KAAO,EAAA;AAAA,EACnD,OAAS,EAAA,OAAA;AAAA,EACT,eAAiB,EAAA,OAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,YAAY,CAAa,UAAA,EAAA,eAAA,CAAA,CAAA;AAAA,EACzB,UAAY,EAAA,WAAA;AAAA,EACZ,yBAAA,EAA2B,EAAE,SAAA,EAAW,kBAAmB,EAAA;AAAA,EAC3D,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;ACzBM,MAAM,SAASE,yBAAM,CAAA,UAAA;AAAA,EAI1B,CACE;AAAA,IACE,IAAO,GAAA,QAAA;AAAA,IACP,OAAU,GAAA,KAAA;AAAA,IACV,QAAW,GAAA,KAAA;AAAA,IACX,QAAW,GAAA,KAAA;AAAA,IACX,QAAA;AAAA,IACG,GAAA,SAAA;AAAA,GACL,EACA,+BAECA,yBAAA,CAAA,aAAA,CAAA,YAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,GAAK,EAAA,UAAA;AAAA,IACL,IAAA;AAAA,IACA,OAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA,eAAiB,EAAA,QAAA;AAAA,GAAA,kBAEhBA,yBAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,IAAY,IAAA;AAAA,GAAY,CAC3B,CAAA;AAEJ;;;;"}
package/dist/module.js ADDED
@@ -0,0 +1,91 @@
1
+ import React from 'react';
2
+ import { styled } from '@mirohq/design-system-stitches';
3
+ import * as RadixSwitch from '@radix-ui/react-switch';
4
+ import { focus } from '@mirohq/design-system-styles';
5
+
6
+ const TRANSITION_TIME = "250ms";
7
+ const StyledSwitch = styled(RadixSwitch.Root, {
8
+ all: "unset",
9
+ cursor: "pointer",
10
+ boxSizing: "border-box",
11
+ backgroundColor: "rgba(205, 204, 215, 1)",
12
+ borderRadius: "$half",
13
+ position: "relative",
14
+ display: "inline-flex",
15
+ verticalAlign: "middle",
16
+ padding: 2,
17
+ WebkitTapHighlightColor: "rgba(0, 0, 0, 0)",
18
+ transition: `background ${TRANSITION_TIME}`,
19
+ ...focus.defaults,
20
+ "&:hover": {
21
+ background: "rgba(147, 145, 166, 1)"
22
+ },
23
+ '&[data-state="checked"]': {
24
+ background: "rgba(66, 98, 255, 1)",
25
+ "&:hover": {
26
+ background: "rgba(69, 91, 237, 1)"
27
+ }
28
+ },
29
+ "&[data-disabled]": {
30
+ background: "rgba(235, 235, 239, 1)",
31
+ '&[data-state="checked"]': {
32
+ background: "rgba(217, 224, 255, 1)"
33
+ }
34
+ },
35
+ variants: {
36
+ size: {
37
+ medium: {
38
+ width: 28,
39
+ height: 16
40
+ },
41
+ large: {
42
+ width: 36,
43
+ height: 20
44
+ }
45
+ }
46
+ }
47
+ });
48
+ const StyledThumb = styled(RadixSwitch.Thumb, {
49
+ display: "block",
50
+ backgroundColor: "white",
51
+ borderRadius: "$half",
52
+ transition: `transform ${TRANSITION_TIME}`,
53
+ willChange: "transform",
54
+ '&[data-state="checked"]': { transform: "translateX(100%)" },
55
+ variants: {
56
+ size: {
57
+ medium: {
58
+ width: 12,
59
+ height: 12
60
+ },
61
+ large: {
62
+ width: 16,
63
+ height: 16
64
+ }
65
+ }
66
+ }
67
+ });
68
+
69
+ const Switch = React.forwardRef(
70
+ ({
71
+ size = "medium",
72
+ checked = false,
73
+ disabled = false,
74
+ required = false,
75
+ onChange,
76
+ ...restProps
77
+ }, forwardRef) => /* @__PURE__ */ React.createElement(StyledSwitch, {
78
+ ...restProps,
79
+ ref: forwardRef,
80
+ size,
81
+ checked,
82
+ disabled,
83
+ required,
84
+ onCheckedChange: onChange
85
+ }, /* @__PURE__ */ React.createElement(StyledThumb, {
86
+ size
87
+ }))
88
+ );
89
+
90
+ export { Switch };
91
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sources":["../src/switch.styled.ts","../src/switch.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixSwitch from '@radix-ui/react-switch'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst TRANSITION_TIME = '250ms'\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n borderRadius: '$half',\n position: 'relative',\n display: 'inline-flex',\n verticalAlign: 'middle',\n padding: 2,\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n transition: `background ${TRANSITION_TIME}`,\n ...focus.defaults,\n '&:hover': {\n background: 'rgba(147, 145, 166, 1)',\n },\n '&[data-state=\"checked\"]': {\n background: 'rgba(66, 98, 255, 1)',\n '&:hover': {\n background: 'rgba(69, 91, 237, 1)',\n },\n },\n '&[data-disabled]': {\n background: 'rgba(235, 235, 239, 1)',\n '&[data-state=\"checked\"]': {\n background: 'rgba(217, 224, 255, 1)',\n },\n },\n variants: {\n size: {\n medium: {\n width: 28,\n height: 16,\n },\n large: {\n width: 36,\n height: 20,\n },\n },\n },\n})\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: 'white',\n borderRadius: '$half',\n transition: `transform ${TRANSITION_TIME}`,\n willChange: 'transform',\n '&[data-state=\"checked\"]': { transform: 'translateX(100%)' },\n variants: {\n size: {\n medium: {\n width: 12,\n height: 12,\n },\n large: {\n width: 16,\n height: 16,\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch } from './switch.styled'\n\nexport interface SwitchProps extends Omit<StyledSwitchProps, 'onChange'> {\n /**\n * Change the size of the switch\n */\n size?: StyledSwitchProps['size']\n\n /**\n * The state of the switch\n */\n checked: boolean\n\n /**\n * Event handler called when the state of the switch changes\n */\n onChange: (checked: boolean) => void\n\n /**\n * Prevents the user from interacting with the switch\n */\n disabled?: boolean\n\n /**\n * Indicates that the user must check the switch\n */\n required?: boolean\n\n /**\n * The name of the switch used in the form\n */\n name?: string\n\n /**\n * The data when accessing the switch by its name in the form\n */\n value: string\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n checked = false,\n disabled = false,\n required = false,\n onChange,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n checked={checked}\n disabled={disabled}\n required={required}\n onCheckedChange={onChange}\n >\n <StyledThumb size={size} />\n </StyledSwitch>\n )\n)\n"],"names":[],"mappings":";;;;;AAKA,MAAM,eAAkB,GAAA,OAAA,CAAA;AAEX,MAAA,YAAA,GAAe,MAAO,CAAA,WAAA,CAAY,IAAM,EAAA;AAAA,EACnD,GAAK,EAAA,OAAA;AAAA,EACL,MAAQ,EAAA,SAAA;AAAA,EACR,SAAW,EAAA,YAAA;AAAA,EACX,eAAiB,EAAA,wBAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,aAAA;AAAA,EACT,aAAe,EAAA,QAAA;AAAA,EACf,OAAS,EAAA,CAAA;AAAA,EACT,uBAAyB,EAAA,kBAAA;AAAA,EACzB,YAAY,CAAc,WAAA,EAAA,eAAA,CAAA,CAAA;AAAA,EAC1B,GAAG,KAAM,CAAA,QAAA;AAAA,EACT,SAAW,EAAA;AAAA,IACT,UAAY,EAAA,wBAAA;AAAA,GACd;AAAA,EACA,yBAA2B,EAAA;AAAA,IACzB,UAAY,EAAA,sBAAA;AAAA,IACZ,SAAW,EAAA;AAAA,MACT,UAAY,EAAA,sBAAA;AAAA,KACd;AAAA,GACF;AAAA,EACA,kBAAoB,EAAA;AAAA,IAClB,UAAY,EAAA,wBAAA;AAAA,IACZ,yBAA2B,EAAA;AAAA,MACzB,UAAY,EAAA,wBAAA;AAAA,KACd;AAAA,GACF;AAAA,EACA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA,CAAA;AAEY,MAAA,WAAA,GAAc,MAAO,CAAA,WAAA,CAAY,KAAO,EAAA;AAAA,EACnD,OAAS,EAAA,OAAA;AAAA,EACT,eAAiB,EAAA,OAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,YAAY,CAAa,UAAA,EAAA,eAAA,CAAA,CAAA;AAAA,EACzB,UAAY,EAAA,WAAA;AAAA,EACZ,yBAAA,EAA2B,EAAE,SAAA,EAAW,kBAAmB,EAAA;AAAA,EAC3D,QAAU,EAAA;AAAA,IACR,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,MACA,KAAO,EAAA;AAAA,QACL,KAAO,EAAA,EAAA;AAAA,QACP,MAAQ,EAAA,EAAA;AAAA,OACV;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;ACzBM,MAAM,SAAS,KAAM,CAAA,UAAA;AAAA,EAI1B,CACE;AAAA,IACE,IAAO,GAAA,QAAA;AAAA,IACP,OAAU,GAAA,KAAA;AAAA,IACV,QAAW,GAAA,KAAA;AAAA,IACX,QAAW,GAAA,KAAA;AAAA,IACX,QAAA;AAAA,IACG,GAAA,SAAA;AAAA,GACL,EACA,+BAEC,KAAA,CAAA,aAAA,CAAA,YAAA,EAAA;AAAA,IACE,GAAG,SAAA;AAAA,IACJ,GAAK,EAAA,UAAA;AAAA,IACL,IAAA;AAAA,IACA,OAAA;AAAA,IACA,QAAA;AAAA,IACA,QAAA;AAAA,IACA,eAAiB,EAAA,QAAA;AAAA,GAAA,kBAEhB,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,IAAY,IAAA;AAAA,GAAY,CAC3B,CAAA;AAEJ;;;;"}
@@ -0,0 +1,392 @@
1
+ import * as react from 'react';
2
+ import react__default from 'react';
3
+ import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
4
+ import { StrictComponentProps } 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
+ import * as RadixSwitch from '@radix-ui/react-switch';
8
+
9
+ declare const StyledSwitch: react.ForwardRefExoticComponent<Pick<Omit<{
10
+ size?: "medium" | "large" | undefined;
11
+ }, "size"> & _stitches_react_types_styled_component.TransformProps<{
12
+ size?: "medium" | "large" | undefined;
13
+ }, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
14
+ 'border-widths': {
15
+ readonly none: 0;
16
+ readonly sm: "1px";
17
+ readonly md: "2px";
18
+ readonly lg: "4px";
19
+ };
20
+ colors: {
21
+ readonly black: any;
22
+ readonly 'blue-10': any;
23
+ readonly 'blue-20': any;
24
+ readonly 'blue-50': any;
25
+ readonly 'blue-60': any;
26
+ readonly 'blue-70': any;
27
+ readonly 'blue-80': any;
28
+ readonly 'gray-20': any;
29
+ readonly 'gray-30': any;
30
+ readonly 'green-70': any;
31
+ readonly 'indigo-20': any;
32
+ readonly 'indigo-30': any;
33
+ readonly 'indigo-50': any;
34
+ readonly 'indigo-70': any;
35
+ readonly 'indigo-90': any;
36
+ readonly 'pink-20': any;
37
+ readonly 'pink-50': any;
38
+ readonly 'red-10': any;
39
+ readonly 'red-20': any;
40
+ readonly 'red-30': any;
41
+ readonly 'red-50': any;
42
+ readonly 'red-60': any;
43
+ readonly transparent: any;
44
+ readonly white: any;
45
+ readonly 'yellow-20': any;
46
+ readonly 'yellow-60': any;
47
+ readonly 'background-cta-active'?: any;
48
+ readonly 'background-cta-disabled'?: any;
49
+ readonly 'background-cta-hover'?: any;
50
+ readonly 'background-cta-idle'?: any;
51
+ readonly 'background-danger-active'?: any;
52
+ readonly 'background-danger-hover'?: any;
53
+ readonly 'background-danger-idle'?: any;
54
+ readonly 'background-default-active'?: any;
55
+ readonly 'background-default-disabled'?: any;
56
+ readonly 'background-default-hover'?: any;
57
+ readonly 'background-default-idle'?: any;
58
+ readonly 'background-default-selected'?: any;
59
+ readonly 'background-default-selected-active'?: any;
60
+ readonly 'background-info-idle'?: any;
61
+ readonly 'background-primary'?: any;
62
+ readonly 'background-secondary'?: any;
63
+ readonly 'background-success-idle'?: any;
64
+ readonly 'background-warning-idle'?: any;
65
+ readonly 'border-cta-idle'?: any;
66
+ readonly 'border-default-active'?: any;
67
+ readonly 'border-default-error'?: any;
68
+ readonly 'border-default-hover'?: any;
69
+ readonly 'border-default-idle'?: any;
70
+ readonly 'border-default-selected'?: any;
71
+ readonly 'canvas-primary'?: any;
72
+ readonly 'divider-default'?: any;
73
+ readonly 'focus-ring-default'?: any;
74
+ readonly 'font-cta-idle'?: any;
75
+ readonly 'font-default-active'?: any;
76
+ readonly 'font-default-disabled'?: any;
77
+ readonly 'font-default-error'?: any;
78
+ readonly 'font-default-hover'?: any;
79
+ readonly 'font-default-idle'?: any;
80
+ readonly 'font-default-selected'?: any;
81
+ readonly 'font-default-visited'?: any;
82
+ readonly 'font-primary'?: any;
83
+ readonly 'font-secondary'?: any;
84
+ readonly 'font-tertiary'?: any;
85
+ readonly 'icon-cta-idle'?: any;
86
+ readonly 'icon-default'?: any;
87
+ readonly 'icon-default-active'?: any;
88
+ readonly 'icon-default-disabled'?: any;
89
+ readonly 'icon-default-error'?: any;
90
+ readonly 'icon-default-hover'?: any;
91
+ readonly 'icon-default-idle'?: any;
92
+ readonly 'icon-default-selected'?: any;
93
+ };
94
+ 'font-sizes': {
95
+ readonly 150: "0.75rem";
96
+ readonly 175: "0.875rem";
97
+ readonly 200: "1rem";
98
+ readonly 225: "1.125rem";
99
+ readonly 250: "1.25rem";
100
+ readonly 300: "1.5rem";
101
+ readonly 400: "2rem";
102
+ readonly 500: "2.5rem";
103
+ readonly 600: "3rem";
104
+ readonly 800: "4rem";
105
+ readonly 900: "4.5rem";
106
+ };
107
+ radii: {
108
+ readonly none: 0;
109
+ readonly half: "999em";
110
+ readonly 25: "2px";
111
+ readonly 50: "4px";
112
+ readonly 75: "6px";
113
+ readonly 100: "8px";
114
+ readonly 200: "16px";
115
+ };
116
+ shadows: {
117
+ readonly 50: "0 4px 16px #05003812";
118
+ readonly 100: "0 8px 32px #05003808";
119
+ };
120
+ sizes: {
121
+ readonly number: string;
122
+ readonly 'icon-200': "16px";
123
+ readonly 'icon-300': "24px";
124
+ readonly 'icon-400': "32px";
125
+ };
126
+ space: {
127
+ readonly none: 0;
128
+ readonly 50: "4px";
129
+ readonly 100: "8px";
130
+ readonly 150: "12px";
131
+ readonly 200: "16px";
132
+ readonly 300: "24px";
133
+ readonly 400: "32px";
134
+ readonly 500: "64px";
135
+ readonly 600: "48px";
136
+ readonly 800: "64px";
137
+ readonly 1200: "96px";
138
+ readonly 1600: "128px";
139
+ };
140
+ 'space-gap': {
141
+ readonly none: any;
142
+ readonly 50: any;
143
+ readonly 100: any;
144
+ readonly 200: any;
145
+ readonly 300: any;
146
+ };
147
+ 'space-inset': {
148
+ readonly none: any;
149
+ readonly 50: any;
150
+ readonly 100: any;
151
+ readonly 150: any;
152
+ readonly 200: any;
153
+ readonly 300: any;
154
+ readonly 400: any;
155
+ readonly 600: any;
156
+ readonly 800: any;
157
+ readonly 1200: any;
158
+ readonly 1600: any;
159
+ };
160
+ 'space-offset': {
161
+ readonly none: any;
162
+ readonly 50: any;
163
+ readonly 100: any;
164
+ readonly 150: any;
165
+ readonly 200: any;
166
+ readonly 300: any;
167
+ readonly 400: any;
168
+ readonly 600: any;
169
+ readonly 800: any;
170
+ readonly 1200: any;
171
+ readonly 1600: any;
172
+ readonly 'stacking-none': any;
173
+ readonly 'stacking-100': any;
174
+ readonly 'stacking-200': any;
175
+ readonly 'stacking-300': any;
176
+ readonly 'stacking-400': any;
177
+ readonly 'stacking-500': any;
178
+ readonly 'stacking-800': any;
179
+ };
180
+ 'z-indices': {
181
+ readonly dropdownMenu: 100;
182
+ readonly popover: 200;
183
+ readonly tooltip: 300;
184
+ };
185
+ }, {
186
+ readonly background: "colors";
187
+ readonly backgroundColor: "colors";
188
+ readonly backgroundImage: "colors";
189
+ readonly blockSize: "sizes";
190
+ readonly border: "colors";
191
+ readonly borderBlock: "colors";
192
+ readonly borderBlockEnd: "colors";
193
+ readonly borderBlockStart: "colors";
194
+ readonly borderBottom: "colors";
195
+ readonly borderBottomColor: "colors";
196
+ readonly borderBottomLeftRadius: "radii";
197
+ readonly borderBottomRightRadius: "radii";
198
+ readonly borderBottomStyle: "border-styles";
199
+ readonly borderBottomWidth: "border-widths";
200
+ readonly borderColor: "colors";
201
+ readonly borderImage: "colors";
202
+ readonly borderInline: "colors";
203
+ readonly borderInlineEnd: "colors";
204
+ readonly borderInlineStart: "colors";
205
+ readonly borderLeft: "colors";
206
+ readonly borderLeftColor: "colors";
207
+ readonly borderLeftStyle: "border-styles";
208
+ readonly borderLeftWidth: "border-widths";
209
+ readonly borderRadius: "radii";
210
+ readonly borderRight: "colors";
211
+ readonly borderRightColor: "colors";
212
+ readonly borderRightStyle: "border-styles";
213
+ readonly borderRightWidth: "border-widths";
214
+ readonly borderStyle: "border-styles";
215
+ readonly borderTop: "colors";
216
+ readonly borderTopColor: "colors";
217
+ readonly borderTopLeftRadius: "radii";
218
+ readonly borderTopRightRadius: "radii";
219
+ readonly borderTopStyle: "border-styles";
220
+ readonly borderTopWidth: "border-widths";
221
+ readonly borderWidth: "border-widths";
222
+ readonly bottom: "space";
223
+ readonly boxShadow: "shadows";
224
+ readonly caretColor: "colors";
225
+ readonly color: "colors";
226
+ readonly columnGap: "space-gap";
227
+ readonly columnRuleColor: "colors";
228
+ readonly fill: "colors";
229
+ readonly flexBasis: "sizes";
230
+ readonly fontFamily: "fonts";
231
+ readonly fontSize: "font-sizes";
232
+ readonly fontWeight: "font-weights";
233
+ readonly gap: "space-gap";
234
+ readonly gridColumnGap: "space-gap";
235
+ readonly gridGap: "space-gap";
236
+ readonly gridRowGap: "space-gap";
237
+ readonly gridTemplateColumns: "sizes";
238
+ readonly gridTemplateRows: "sizes";
239
+ readonly height: "sizes";
240
+ readonly inlineSize: "sizes";
241
+ readonly inset: "space-inset";
242
+ readonly insetBlock: "space-inset";
243
+ readonly insetBlockEnd: "space-inset";
244
+ readonly insetBlockStart: "space-inset";
245
+ readonly insetInline: "space-inset";
246
+ readonly insetInlineEnd: "space-inset";
247
+ readonly insetInlineStart: "space-inset";
248
+ readonly left: "space";
249
+ readonly letterSpacing: "letter-spacings";
250
+ readonly lineHeight: "line-heights";
251
+ readonly margin: "space-offset";
252
+ readonly marginBlock: "space-offset";
253
+ readonly marginBlockEnd: "space-offset";
254
+ readonly marginBlockStart: "space-offset";
255
+ readonly marginBottom: "space-offset";
256
+ readonly marginInline: "space-offset";
257
+ readonly marginInlineEnd: "space-offset";
258
+ readonly marginInlineStart: "space-offset";
259
+ readonly marginLeft: "space-offset";
260
+ readonly marginRight: "space-offset";
261
+ readonly marginTop: "space-offset";
262
+ readonly maxBlockSize: "sizes";
263
+ readonly maxHeight: "sizes";
264
+ readonly maxInlineSize: "sizes";
265
+ readonly maxWidth: "sizes";
266
+ readonly minBlockSize: "sizes";
267
+ readonly minHeight: "sizes";
268
+ readonly minInlineSize: "sizes";
269
+ readonly minWidth: "sizes";
270
+ readonly outline: "colors";
271
+ readonly outlineColor: "colors";
272
+ readonly padding: "space-inset";
273
+ readonly paddingBlock: "space-inset";
274
+ readonly paddingBlockEnd: "space-inset";
275
+ readonly paddingBlockStart: "space-inset";
276
+ readonly paddingBottom: "space-inset";
277
+ readonly paddingInline: "space-inset";
278
+ readonly paddingInlineEnd: "space-inset";
279
+ readonly paddingInlineStart: "space-inset";
280
+ readonly paddingLeft: "space-inset";
281
+ readonly paddingRight: "space-inset";
282
+ readonly paddingTop: "space-inset";
283
+ readonly right: "space";
284
+ readonly rowGap: "space-gap";
285
+ readonly scrollMargin: "space-offset";
286
+ readonly scrollMarginBlock: "space-offset";
287
+ readonly scrollMarginBlockEnd: "space-offset";
288
+ readonly scrollMarginBlockStart: "space-offset";
289
+ readonly scrollMarginBottom: "space-offset";
290
+ readonly scrollMarginInline: "space-offset";
291
+ readonly scrollMarginInlineEnd: "space-offset";
292
+ readonly scrollMarginInlineStart: "space-offset";
293
+ readonly scrollMarginLeft: "space-offset";
294
+ readonly scrollMarginRight: "space-offset";
295
+ readonly scrollMarginTop: "space-offset";
296
+ readonly scrollPadding: "space-inset";
297
+ readonly scrollPaddingBlock: "space-inset";
298
+ readonly scrollPaddingBlockEnd: "space-inset";
299
+ readonly scrollPaddingBlockStart: "space-inset";
300
+ readonly scrollPaddingBottom: "space-inset";
301
+ readonly scrollPaddingInline: "space-inset";
302
+ readonly scrollPaddingInlineEnd: "space-inset";
303
+ readonly scrollPaddingInlineStart: "space-inset";
304
+ readonly scrollPaddingLeft: "space-inset";
305
+ readonly scrollPaddingRight: "space-inset";
306
+ readonly scrollPaddingTop: "space-inset";
307
+ readonly stroke: "colors";
308
+ readonly textDecorationColor: "colors";
309
+ readonly textShadow: "shadows";
310
+ readonly top: "space";
311
+ readonly transition: "transitions";
312
+ readonly width: "sizes";
313
+ readonly zIndex: "z-indices";
314
+ }, {
315
+ paddingX: (value: {
316
+ readonly [$$PropertyValue]: "padding";
317
+ }) => {
318
+ paddingLeft: {
319
+ readonly [$$PropertyValue]: "padding";
320
+ };
321
+ paddingRight: {
322
+ readonly [$$PropertyValue]: "padding";
323
+ };
324
+ };
325
+ paddingY: (value: {
326
+ readonly [$$PropertyValue]: "padding";
327
+ }) => {
328
+ paddingTop: {
329
+ readonly [$$PropertyValue]: "padding";
330
+ };
331
+ paddingBottom: {
332
+ readonly [$$PropertyValue]: "padding";
333
+ };
334
+ };
335
+ marginX: (value: {
336
+ readonly [$$PropertyValue]: "margin";
337
+ }) => {
338
+ marginLeft: {
339
+ readonly [$$PropertyValue]: "margin";
340
+ };
341
+ marginRight: {
342
+ readonly [$$PropertyValue]: "margin";
343
+ };
344
+ };
345
+ marginY: (value: {
346
+ readonly [$$PropertyValue]: "margin";
347
+ }) => {
348
+ marginTop: {
349
+ readonly [$$PropertyValue]: "margin";
350
+ };
351
+ marginBottom: {
352
+ readonly [$$PropertyValue]: "margin";
353
+ };
354
+ };
355
+ }>>> & _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 | "onCheckedChange"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>>, {
356
+ size?: "medium" | "large" | undefined;
357
+ }, {}>;
358
+ declare type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>;
359
+
360
+ interface SwitchProps extends Omit<StyledSwitchProps, 'onChange'> {
361
+ /**
362
+ * Change the size of the switch
363
+ */
364
+ size?: StyledSwitchProps['size'];
365
+ /**
366
+ * The state of the switch
367
+ */
368
+ checked: boolean;
369
+ /**
370
+ * Event handler called when the state of the switch changes
371
+ */
372
+ onChange: (checked: boolean) => void;
373
+ /**
374
+ * Prevents the user from interacting with the switch
375
+ */
376
+ disabled?: boolean;
377
+ /**
378
+ * Indicates that the user must check the switch
379
+ */
380
+ required?: boolean;
381
+ /**
382
+ * The name of the switch used in the form
383
+ */
384
+ name?: string;
385
+ /**
386
+ * The data when accessing the switch by its name in the form
387
+ */
388
+ value: string;
389
+ }
390
+ declare const Switch: react__default.ForwardRefExoticComponent<Pick<SwitchProps, "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"> & react__default.RefAttributes<HTMLButtonElement>>;
391
+
392
+ export { Switch, SwitchProps };
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@mirohq/design-system-switch",
3
+ "version": "2.0.8",
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
+ "react-dom": "^16.14 || ^17"
28
+ },
29
+ "dependencies": {
30
+ "@radix-ui/react-switch": "^1.0.0",
31
+ "@mirohq/design-system-stitches": "^2.0.8",
32
+ "@mirohq/design-system-types": "^0.2.0",
33
+ "@mirohq/design-system-styles": "^1.0.8",
34
+ "@mirohq/design-system-utils": "^0.10.0"
35
+ },
36
+ "scripts": {
37
+ "build": "rollup -c ../../../rollup.config.js",
38
+ "clean": "rm -rf dist",
39
+ "prebuild": "pnpm clean"
40
+ }
41
+ }