@mirohq/design-system-switch 3.0.0-switch.0 → 3.0.0-switch.1

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 CHANGED
@@ -32,7 +32,7 @@ function _interopNamespace(e) {
32
32
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
33
33
  var RadixSwitch__namespace = /*#__PURE__*/_interopNamespace(RadixSwitch);
34
34
 
35
- const TRANSITION_TIME = "250ms";
35
+ const TRANSITION_TIME = "100ms";
36
36
  const nonDisabledSelector = '&:not([disabled]):not([aria-disabled="true"])';
37
37
  const StyledThumb = designSystemStitches.styled(RadixSwitch__namespace.Thumb, {
38
38
  display: "block",
@@ -45,7 +45,7 @@ const StyledThumbWrapper = designSystemStitches.styled(designSystemPrimitive.Pri
45
45
  display: "block",
46
46
  width: "50%",
47
47
  height: "100%",
48
- transition: `transform ${TRANSITION_TIME}, padding 100ms`,
48
+ transition: `transform ${TRANSITION_TIME}, padding ${TRANSITION_TIME}`,
49
49
  willChange: "transform",
50
50
  boxSizing: "border-box",
51
51
  padding: 1
@@ -84,6 +84,29 @@ const StyledSwitch = designSystemStitches.styled(RadixSwitch__namespace.Root, {
84
84
  background: "$background-neutrals-disabled"
85
85
  }
86
86
  },
87
+ "@media (forced-colors: active)": {
88
+ border: "1px solid ButtonText",
89
+ padding: 1,
90
+ backgroundColor: "ButtonFace",
91
+ [`& ${StyledThumb}`]: {
92
+ borderColor: "ButtonFace",
93
+ border: "1px solid ButtonText",
94
+ margin: -1
95
+ },
96
+ "&:hover": {
97
+ backgroundColor: "ButtonFace"
98
+ },
99
+ [`${nonDisabledSelector}[data-state="checked"]`]: {
100
+ backgroundColor: "Highlight",
101
+ borderColor: "Highlight",
102
+ "&:hover": {
103
+ backgroundColor: "Highlight"
104
+ },
105
+ [`& ${StyledThumb}`]: {
106
+ borderColor: "Highlight"
107
+ }
108
+ }
109
+ },
87
110
  variants: {
88
111
  size: {
89
112
  medium: {
package/dist/main.js.map CHANGED
@@ -1 +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'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nconst TRANSITION_TIME = '250ms'\nconst nonDisabledSelector = '&:not([disabled]):not([aria-disabled=\"true\"])'\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: '$background-neutrals',\n borderRadius: '$half',\n width: '100%',\n height: '100%',\n})\n\nexport const StyledThumbWrapper = styled(Primitive.span, {\n display: 'block',\n width: '50%',\n height: '100%',\n transition: `transform ${TRANSITION_TIME}, padding 100ms`,\n willChange: 'transform',\n boxSizing: 'border-box',\n padding: 1,\n})\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: '$background-neutrals-inactive',\n borderRadius: '$half',\n display: 'inline-flex',\n padding: 2,\n transition: `background ${TRANSITION_TIME}`,\n\n ...focus.css({\n boxShadow: '$focus-controls',\n }),\n '&:hover': {\n backgroundColor: '$background-neutrals-inactive-hover',\n\n [`${nonDisabledSelector} ${StyledThumbWrapper}`]: {\n padding: 0,\n },\n },\n '&[data-state=\"checked\"]': {\n background: '$background-primary-prominent-selected',\n\n [`${nonDisabledSelector}:hover`]: {\n background: '$background-primary-prominent-hover',\n },\n\n [`& ${StyledThumbWrapper}`]: {\n transform: 'translateX(100%)',\n },\n },\n '&[disabled], &[aria-disabled=\"true\"]': {\n cursor: 'default',\n background: '$background-neutrals-controls-disabled',\n\n [`& ${StyledThumb}`]: {\n background: '$background-neutrals-disabled',\n },\n },\n variants: {\n size: {\n medium: {\n width: '$7',\n height: '$4',\n },\n large: {\n width: '$9',\n height: '$5',\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch, StyledThumbWrapper } from './switch.styled'\n\nexport interface SwitchProps extends StyledSwitchProps {\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 * 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 * Event handler called when the checked state equals true.\n */\n onChecked?: () => void\n\n /**\n * Event handler called when the checked state equals false.\n */\n onUnchecked?: () => 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 /**\n * When true, prevents the user from interacting with the switch but focus\n * is still possible.\n */\n 'aria-disabled'?: Booleanish\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n disabled = false,\n required = false,\n 'aria-disabled': ariaDisabled,\n onChecked,\n onUnchecked,\n onClick,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n disabled={disabled}\n required={required}\n aria-disabled={ariaDisabled}\n onClick={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onClick?.(e)\n }\n }}\n onCheckedChange={value => {\n if (value) {\n onChecked?.()\n } else {\n onUnchecked?.()\n }\n }}\n >\n <StyledThumbWrapper>\n <StyledThumb />\n </StyledThumbWrapper>\n </StyledSwitch>\n )\n)\n"],"names":["styled","RadixSwitch","Primitive","focus","React","booleanify"],"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f,SAAS,CAAK,CAAA,KAAA;AACZ,MAAI,IAAAC,4BAAA,CAAW,YAAY,CAAG,EAAA;AAC5B,QAAA,CAAA,CAAE,cAAe,EAAA,CAAA;AAAA,OACZ,MAAA;AACL,QAAU,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACZ;AAAA,KACF;AAAA,IACA,iBAAiB,CAAS,KAAA,KAAA;AACxB,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,SAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,EAAA,CAAA;AAAA,OACK,MAAA;AACL,QAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,EAAA,CAAA;AAAA,OACF;AAAA,KACF;AAAA,GAAA,kBAECD,yBAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,IAAA,kBACEA,yBAAA,CAAA,aAAA,CAAA,WAAA,EAAA,IAAY,CACf,CACF,CAAA;AAEJ;;;;"}
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'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nconst TRANSITION_TIME = '100ms'\nconst nonDisabledSelector = '&:not([disabled]):not([aria-disabled=\"true\"])'\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: '$background-neutrals',\n borderRadius: '$half',\n width: '100%',\n height: '100%',\n})\n\nexport const StyledThumbWrapper = styled(Primitive.span, {\n display: 'block',\n width: '50%',\n height: '100%',\n transition: `transform ${TRANSITION_TIME}, padding ${TRANSITION_TIME}`,\n willChange: 'transform',\n boxSizing: 'border-box',\n padding: 1,\n})\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: '$background-neutrals-inactive',\n borderRadius: '$half',\n display: 'inline-flex',\n padding: 2,\n transition: `background ${TRANSITION_TIME}`,\n\n ...focus.css({\n boxShadow: '$focus-controls',\n }),\n '&:hover': {\n backgroundColor: '$background-neutrals-inactive-hover',\n\n [`${nonDisabledSelector} ${StyledThumbWrapper}`]: {\n padding: 0,\n },\n },\n '&[data-state=\"checked\"]': {\n background: '$background-primary-prominent-selected',\n\n [`${nonDisabledSelector}:hover`]: {\n background: '$background-primary-prominent-hover',\n },\n\n [`& ${StyledThumbWrapper}`]: {\n transform: 'translateX(100%)',\n },\n },\n '&[disabled], &[aria-disabled=\"true\"]': {\n cursor: 'default',\n background: '$background-neutrals-controls-disabled',\n\n [`& ${StyledThumb}`]: {\n background: '$background-neutrals-disabled',\n },\n },\n\n '@media (forced-colors: active)': {\n border: '1px solid ButtonText',\n padding: 1,\n backgroundColor: 'ButtonFace',\n\n [`& ${StyledThumb}`]: {\n borderColor: 'ButtonFace',\n border: '1px solid ButtonText',\n margin: -1,\n },\n\n '&:hover': {\n backgroundColor: 'ButtonFace',\n },\n\n [`${nonDisabledSelector}[data-state=\"checked\"]`]: {\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n\n '&:hover': {\n backgroundColor: 'Highlight',\n },\n\n [`& ${StyledThumb}`]: {\n borderColor: 'Highlight',\n },\n },\n },\n variants: {\n size: {\n medium: {\n width: '$7',\n height: '$4',\n },\n large: {\n width: '$9',\n height: '$5',\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch, StyledThumbWrapper } from './switch.styled'\n\nexport interface SwitchProps extends StyledSwitchProps {\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 * 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 * Event handler called when the checked state equals true.\n */\n onChecked?: () => void\n\n /**\n * Event handler called when the checked state equals false.\n */\n onUnchecked?: () => 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 /**\n * When true, prevents the user from interacting with the switch but focus\n * is still possible.\n */\n 'aria-disabled'?: Booleanish\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n disabled = false,\n required = false,\n 'aria-disabled': ariaDisabled,\n onChecked,\n onUnchecked,\n onClick,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n disabled={disabled}\n required={required}\n aria-disabled={ariaDisabled}\n onClick={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onClick?.(e)\n }\n }}\n onCheckedChange={value => {\n if (value) {\n onChecked?.()\n } else {\n onUnchecked?.()\n }\n }}\n >\n <StyledThumbWrapper>\n <StyledThumb />\n </StyledThumbWrapper>\n </StyledSwitch>\n )\n)\n"],"names":["styled","RadixSwitch","Primitive","focus","React","booleanify"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,eAAkB,GAAA,OAAA,CAAA;AACxB,MAAM,mBAAsB,GAAA,+CAAA,CAAA;AAEf,MAAA,WAAA,GAAcA,2BAAO,CAAAC,sBAAA,CAAY,KAAO,EAAA;AAAA,EACnD,OAAS,EAAA,OAAA;AAAA,EACT,eAAiB,EAAA,sBAAA;AAAA,EACjB,YAAc,EAAA,O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AAO,GAAA,QAAA;AAAA,IACP,QAAW,GAAA,KAAA;AAAA,IACX,QAAW,GAAA,KAAA;AAAA,IACX,eAAiB,EAAA,YAAA;AAAA,IACjB,SAAA;AAAA,IACA,WAAA;AAAA,IACA,OAAA;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,QAAA;AAAA,IACA,QAAA;AAAA,IACA,eAAe,EAAA,YAAA;AAAA,IACf,SAAS,CAAK,CAAA,KAAA;AACZ,MAAI,IAAAC,4BAAA,CAAW,YAAY,CAAG,EAAA;AAC5B,QAAA,CAAA,CAAE,cAAe,EAAA,CAAA;AAAA,OACZ,MAAA;AACL,QAAU,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACZ;AAAA,KACF;AAAA,IACA,iBAAiB,CAAS,KAAA,KAAA;AACxB,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,SAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,EAAA,CAAA;AAAA,OACK,MAAA;AACL,QAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,EAAA,CAAA;AAAA,OACF;AAAA,KACF;AAAA,GAAA,kBAECD,yBAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,IAAA,kBACEA,yBAAA,CAAA,aAAA,CAAA,WAAA,EAAA,IAAY,CACf,CACF,CAAA;AAEJ;;;;"}
package/dist/module.js CHANGED
@@ -5,7 +5,7 @@ import * as RadixSwitch from '@radix-ui/react-switch';
5
5
  import { focus } from '@mirohq/design-system-styles';
6
6
  import { Primitive } from '@mirohq/design-system-primitive';
7
7
 
8
- const TRANSITION_TIME = "250ms";
8
+ const TRANSITION_TIME = "100ms";
9
9
  const nonDisabledSelector = '&:not([disabled]):not([aria-disabled="true"])';
10
10
  const StyledThumb = styled(RadixSwitch.Thumb, {
11
11
  display: "block",
@@ -18,7 +18,7 @@ const StyledThumbWrapper = styled(Primitive.span, {
18
18
  display: "block",
19
19
  width: "50%",
20
20
  height: "100%",
21
- transition: `transform ${TRANSITION_TIME}, padding 100ms`,
21
+ transition: `transform ${TRANSITION_TIME}, padding ${TRANSITION_TIME}`,
22
22
  willChange: "transform",
23
23
  boxSizing: "border-box",
24
24
  padding: 1
@@ -57,6 +57,29 @@ const StyledSwitch = styled(RadixSwitch.Root, {
57
57
  background: "$background-neutrals-disabled"
58
58
  }
59
59
  },
60
+ "@media (forced-colors: active)": {
61
+ border: "1px solid ButtonText",
62
+ padding: 1,
63
+ backgroundColor: "ButtonFace",
64
+ [`& ${StyledThumb}`]: {
65
+ borderColor: "ButtonFace",
66
+ border: "1px solid ButtonText",
67
+ margin: -1
68
+ },
69
+ "&:hover": {
70
+ backgroundColor: "ButtonFace"
71
+ },
72
+ [`${nonDisabledSelector}[data-state="checked"]`]: {
73
+ backgroundColor: "Highlight",
74
+ borderColor: "Highlight",
75
+ "&:hover": {
76
+ backgroundColor: "Highlight"
77
+ },
78
+ [`& ${StyledThumb}`]: {
79
+ borderColor: "Highlight"
80
+ }
81
+ }
82
+ },
60
83
  variants: {
61
84
  size: {
62
85
  medium: {
@@ -1 +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'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nconst TRANSITION_TIME = '250ms'\nconst nonDisabledSelector = '&:not([disabled]):not([aria-disabled=\"true\"])'\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: '$background-neutrals',\n borderRadius: '$half',\n width: '100%',\n height: '100%',\n})\n\nexport const StyledThumbWrapper = styled(Primitive.span, {\n display: 'block',\n width: '50%',\n height: '100%',\n transition: `transform ${TRANSITION_TIME}, padding 100ms`,\n willChange: 'transform',\n boxSizing: 'border-box',\n padding: 1,\n})\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: '$background-neutrals-inactive',\n borderRadius: '$half',\n display: 'inline-flex',\n padding: 2,\n transition: `background ${TRANSITION_TIME}`,\n\n ...focus.css({\n boxShadow: '$focus-controls',\n }),\n '&:hover': {\n backgroundColor: '$background-neutrals-inactive-hover',\n\n [`${nonDisabledSelector} ${StyledThumbWrapper}`]: {\n padding: 0,\n },\n },\n '&[data-state=\"checked\"]': {\n background: '$background-primary-prominent-selected',\n\n [`${nonDisabledSelector}:hover`]: {\n background: '$background-primary-prominent-hover',\n },\n\n [`& ${StyledThumbWrapper}`]: {\n transform: 'translateX(100%)',\n },\n },\n '&[disabled], &[aria-disabled=\"true\"]': {\n cursor: 'default',\n background: '$background-neutrals-controls-disabled',\n\n [`& ${StyledThumb}`]: {\n background: '$background-neutrals-disabled',\n },\n },\n variants: {\n size: {\n medium: {\n width: '$7',\n height: '$4',\n },\n large: {\n width: '$9',\n height: '$5',\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch, StyledThumbWrapper } from './switch.styled'\n\nexport interface SwitchProps extends StyledSwitchProps {\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 * 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 * Event handler called when the checked state equals true.\n */\n onChecked?: () => void\n\n /**\n * Event handler called when the checked state equals false.\n */\n onUnchecked?: () => 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 /**\n * When true, prevents the user from interacting with the switch but focus\n * is still possible.\n */\n 'aria-disabled'?: Booleanish\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n disabled = false,\n required = false,\n 'aria-disabled': ariaDisabled,\n onChecked,\n onUnchecked,\n onClick,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n disabled={disabled}\n required={required}\n aria-disabled={ariaDisabled}\n onClick={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onClick?.(e)\n }\n }}\n onCheckedChange={value => {\n if (value) {\n onChecked?.()\n } else {\n onUnchecked?.()\n }\n }}\n >\n <StyledThumbWrapper>\n <StyledThumb />\n </StyledThumbWrapper>\n </StyledSwitch>\n )\n)\n"],"names":[],"mappings":";;;;;;;AAMA,MAAM,eAAkB,GAAA,OAAA,CAAA;AACxB,MAAM,mBAAsB,GAAA,+CAAA,CAAA;AAEf,MAAA,WAAA,GAAc,MAAO,CAAA,WAAA,CAAY,KAAO,EAAA;AAAA,EACnD,OAAS,EAAA,OAAA;AAAA,EACT,eAAiB,EAAA,sBAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,KAAO,EAAA,MAAA;AAAA,EACP,MAAQ,EAAA,MAAA;AACV,CAAC,CAAA,CAAA;AAEY,MAAA,kBAAA,GAAqB,MAAO,CAAA,SAAA,CAAU,IAAM,EAAA;AAAA,EACvD,OAAS,EAAA,OAAA;AAAA,EACT,KAAO,EAAA,KAAA;AAAA,EAC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EC,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA,IAAY,CACf,CACF,CAAA;AAEJ;;;;"}
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'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nconst TRANSITION_TIME = '100ms'\nconst nonDisabledSelector = '&:not([disabled]):not([aria-disabled=\"true\"])'\n\nexport const StyledThumb = styled(RadixSwitch.Thumb, {\n display: 'block',\n backgroundColor: '$background-neutrals',\n borderRadius: '$half',\n width: '100%',\n height: '100%',\n})\n\nexport const StyledThumbWrapper = styled(Primitive.span, {\n display: 'block',\n width: '50%',\n height: '100%',\n transition: `transform ${TRANSITION_TIME}, padding ${TRANSITION_TIME}`,\n willChange: 'transform',\n boxSizing: 'border-box',\n padding: 1,\n})\n\nexport const StyledSwitch = styled(RadixSwitch.Root, {\n all: 'unset',\n cursor: 'pointer',\n boxSizing: 'border-box',\n backgroundColor: '$background-neutrals-inactive',\n borderRadius: '$half',\n display: 'inline-flex',\n padding: 2,\n transition: `background ${TRANSITION_TIME}`,\n\n ...focus.css({\n boxShadow: '$focus-controls',\n }),\n '&:hover': {\n backgroundColor: '$background-neutrals-inactive-hover',\n\n [`${nonDisabledSelector} ${StyledThumbWrapper}`]: {\n padding: 0,\n },\n },\n '&[data-state=\"checked\"]': {\n background: '$background-primary-prominent-selected',\n\n [`${nonDisabledSelector}:hover`]: {\n background: '$background-primary-prominent-hover',\n },\n\n [`& ${StyledThumbWrapper}`]: {\n transform: 'translateX(100%)',\n },\n },\n '&[disabled], &[aria-disabled=\"true\"]': {\n cursor: 'default',\n background: '$background-neutrals-controls-disabled',\n\n [`& ${StyledThumb}`]: {\n background: '$background-neutrals-disabled',\n },\n },\n\n '@media (forced-colors: active)': {\n border: '1px solid ButtonText',\n padding: 1,\n backgroundColor: 'ButtonFace',\n\n [`& ${StyledThumb}`]: {\n borderColor: 'ButtonFace',\n border: '1px solid ButtonText',\n margin: -1,\n },\n\n '&:hover': {\n backgroundColor: 'ButtonFace',\n },\n\n [`${nonDisabledSelector}[data-state=\"checked\"]`]: {\n backgroundColor: 'Highlight',\n borderColor: 'Highlight',\n\n '&:hover': {\n backgroundColor: 'Highlight',\n },\n\n [`& ${StyledThumb}`]: {\n borderColor: 'Highlight',\n },\n },\n },\n variants: {\n size: {\n medium: {\n width: '$7',\n height: '$4',\n },\n large: {\n width: '$9',\n height: '$5',\n },\n },\n },\n})\n\nexport type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport type { StyledSwitchProps } from './switch.styled'\nimport { StyledThumb, StyledSwitch, StyledThumbWrapper } from './switch.styled'\n\nexport interface SwitchProps extends StyledSwitchProps {\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 * 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 * Event handler called when the checked state equals true.\n */\n onChecked?: () => void\n\n /**\n * Event handler called when the checked state equals false.\n */\n onUnchecked?: () => 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 /**\n * When true, prevents the user from interacting with the switch but focus\n * is still possible.\n */\n 'aria-disabled'?: Booleanish\n}\n\nexport const Switch = React.forwardRef<\n ElementRef<typeof StyledSwitch>,\n SwitchProps\n>(\n (\n {\n size = 'medium',\n disabled = false,\n required = false,\n 'aria-disabled': ariaDisabled,\n onChecked,\n onUnchecked,\n onClick,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledSwitch\n {...restProps}\n ref={forwardRef}\n size={size}\n disabled={disabled}\n required={required}\n aria-disabled={ariaDisabled}\n onClick={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onClick?.(e)\n }\n }}\n onCheckedChange={value => {\n if (value) {\n onChecked?.()\n } else {\n onUnchecked?.()\n }\n }}\n >\n <StyledThumbWrapper>\n <StyledThumb />\n </StyledThumbWrapper>\n </StyledSwitch>\n )\n)\n"],"names":[],"mappings":";;;;;;;AAMA,MAAM,eAAkB,GAAA,OAAA,CAAA;AACxB,MAAM,mBAAsB,GAAA,+CAAA,CAAA;AAEf,MAAA,WAAA,GAAc,MAAO,CAAA,WAAA,CAAY,KAAO,EAAA;AAAA,EACnD,OAAS,EAAA,OAAA;AAAA,EACT,eAAiB,EAAA,sBAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,KAAO,EAAA,MAAA;AAAA,EACP,MAAQ,EAAA,MAAA;AACV,CAAC,CAAA,CAAA;AAEY,MAAA,kBAAA,GAAqB,MAAO,CAAA,SAAA,CAAU,IAAM,EAAA;AAAA,EACvD,OAAS,EAAA,OAAA;AAAA,EACT,KAAO,EAAA,KAAA;AAAA,EACP,MAAQ,EAAA,MAAA;AAAA,EACR,UAAA,EAAY,aAAa,eAA4B,CAAA,UAAA,EAAA,eAAA,CAAA,CAAA;AAAA,EACrD,UAAY,EAAA,WAAA;AAAA,EACZ,SAAW,EAAA,YAAA;AAAA,EACX,OAAS,EAAA,CAAA;AACX,CAAC,CAAA,CAAA;AAEY,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,EAC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AAA;AAAA,OACZ;AAAA,KACF;AAAA,IACA,iBAAiB,CAAS,KAAA,KAAA;AACxB,MAAA,IAAI,KAAO,EAAA;AACT,QAAA,SAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,SAAA,EAAA,CAAA;AAAA,OACK,MAAA;AACL,QAAA,WAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,WAAA,EAAA,CAAA;AAAA,OACF;AAAA,KACF;AAAA,GAAA,kBAEC,KAAA,CAAA,aAAA,CAAA,kBAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA,IAAY,CACf,CACF,CAAA;AAEJ;;;;"}
package/dist/types.d.ts CHANGED
@@ -11,433 +11,438 @@ declare const StyledSwitch: react.ForwardRefExoticComponent<Pick<Omit<{
11
11
  size?: "medium" | "large" | undefined;
12
12
  }, "size"> & _stitches_react_types_styled_component.TransformProps<{
13
13
  size?: "medium" | "large" | undefined;
14
- }, {}> & _mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadixSwitch.SwitchProps & 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-focus-outer'?: any;
148
- readonly 'border-focus-middle'?: any;
149
- readonly 'border-focus-inner'?: any;
150
- readonly 'border-neutrals'?: any;
151
- readonly 'border-neutrals-hover'?: any;
152
- readonly 'border-neutrals-active'?: any;
153
- readonly 'border-neutrals-disabled'?: any;
154
- readonly 'border-neutrals-controls'?: any;
155
- readonly 'border-neutrals-controls-disabled'?: any;
156
- readonly 'border-neutrals-subtle'?: any;
157
- readonly 'border-neutrals-inverted'?: any;
158
- readonly 'border-primary'?: any;
159
- readonly 'border-primary-hover'?: any;
160
- readonly 'border-primary-active'?: any;
161
- readonly 'border-primary-inverted'?: any;
162
- readonly 'border-danger'?: any;
163
- readonly 'border-success'?: any;
164
- readonly 'border-warning'?: any;
165
- };
166
- 'font-sizes': {
167
- readonly 150: "0.75rem";
168
- readonly 175: "0.875rem";
169
- readonly 200: "1rem";
170
- readonly 225: "1.125rem";
171
- readonly 250: "1.25rem";
172
- readonly 300: "1.5rem";
173
- readonly 400: "2rem";
174
- readonly 500: "2.5rem";
175
- readonly 600: "3rem";
176
- readonly 800: "4rem";
177
- readonly 900: "4.5rem";
178
- };
179
- radii: {
180
- readonly none: 0;
181
- readonly half: "999em";
182
- readonly 25: "2px";
183
- readonly 50: "4px";
184
- readonly 75: "6px";
185
- readonly 100: "8px";
186
- readonly 200: "16px";
187
- };
188
- shadows: {
189
- readonly 50: "0 4px 16px #05003812";
190
- readonly 100: "0 8px 32px #05003808";
191
- readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
192
- readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
193
- readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
194
- };
195
- sizes: {
196
- readonly number: string;
197
- readonly 'icon-200': "16px";
198
- readonly 'icon-300': "24px";
199
- readonly 'icon-400': "32px";
200
- };
201
- space: {
202
- readonly none: 0;
203
- readonly 50: "4px";
204
- readonly 100: "8px";
205
- readonly 150: "12px";
206
- readonly 200: "16px";
207
- readonly 300: "24px";
208
- readonly 400: "32px";
209
- readonly 500: "64px";
210
- readonly 600: "48px";
211
- readonly 800: "64px";
212
- readonly 1200: "96px";
213
- readonly 1600: "128px";
214
- };
215
- 'space-gap': {
216
- readonly none: any;
217
- readonly 50: any;
218
- readonly 100: any;
219
- readonly 200: any;
220
- readonly 300: any;
221
- };
222
- 'space-inset': {
223
- readonly none: any;
224
- readonly 50: any;
225
- readonly 100: any;
226
- readonly 150: any;
227
- readonly 200: any;
228
- readonly 300: any;
229
- readonly 400: any;
230
- readonly 600: any;
231
- readonly 800: any;
232
- readonly 1200: any;
233
- readonly 1600: any;
234
- };
235
- 'space-offset': {
236
- readonly none: any;
237
- readonly 50: any;
238
- readonly 100: any;
239
- readonly 150: any;
240
- readonly 200: any;
241
- readonly 300: any;
242
- readonly 400: any;
243
- readonly 600: any;
244
- readonly 800: any;
245
- readonly 1200: any;
246
- readonly 1600: any;
247
- readonly 'stacking-none': any;
248
- readonly 'stacking-100': any;
249
- readonly 'stacking-200': any;
250
- readonly 'stacking-300': any;
251
- readonly 'stacking-400': any;
252
- readonly 'stacking-500': any;
253
- readonly 'stacking-800': any;
254
- };
255
- 'z-indices': {
256
- readonly dropdownMenu: 100;
257
- readonly popover: 200;
258
- readonly tooltip: 300;
259
- };
260
- }, {
261
- readonly background: "colors";
262
- readonly backgroundColor: "colors";
263
- readonly backgroundImage: "colors";
264
- readonly blockSize: "sizes";
265
- readonly border: "colors";
266
- readonly borderBlock: "colors";
267
- readonly borderBlockEnd: "colors";
268
- readonly borderBlockStart: "colors";
269
- readonly borderBottom: "colors";
270
- readonly borderBottomColor: "colors";
271
- readonly borderBottomLeftRadius: "radii";
272
- readonly borderBottomRightRadius: "radii";
273
- readonly borderBottomStyle: "border-styles";
274
- readonly borderBottomWidth: "border-widths";
275
- readonly borderColor: "colors";
276
- readonly borderImage: "colors";
277
- readonly borderInline: "colors";
278
- readonly borderInlineEnd: "colors";
279
- readonly borderInlineStart: "colors";
280
- readonly borderLeft: "colors";
281
- readonly borderLeftColor: "colors";
282
- readonly borderLeftStyle: "border-styles";
283
- readonly borderLeftWidth: "border-widths";
284
- readonly borderRadius: "radii";
285
- readonly borderRight: "colors";
286
- readonly borderRightColor: "colors";
287
- readonly borderRightStyle: "border-styles";
288
- readonly borderRightWidth: "border-widths";
289
- readonly borderStyle: "border-styles";
290
- readonly borderTop: "colors";
291
- readonly borderTopColor: "colors";
292
- readonly borderTopLeftRadius: "radii";
293
- readonly borderTopRightRadius: "radii";
294
- readonly borderTopStyle: "border-styles";
295
- readonly borderTopWidth: "border-widths";
296
- readonly borderWidth: "border-widths";
297
- readonly bottom: "space";
298
- readonly boxShadow: "shadows";
299
- readonly caretColor: "colors";
300
- readonly color: "colors";
301
- readonly columnGap: "space-gap";
302
- readonly columnRuleColor: "colors";
303
- readonly fill: "colors";
304
- readonly flexBasis: "sizes";
305
- readonly fontFamily: "fonts";
306
- readonly fontSize: "font-sizes";
307
- readonly fontWeight: "font-weights";
308
- readonly gap: "space-gap";
309
- readonly gridColumnGap: "space-gap";
310
- readonly gridGap: "space-gap";
311
- readonly gridRowGap: "space-gap";
312
- readonly gridTemplateColumns: "sizes";
313
- readonly gridTemplateRows: "sizes";
314
- readonly height: "sizes";
315
- readonly inlineSize: "sizes";
316
- readonly inset: "space-inset";
317
- readonly insetBlock: "space-inset";
318
- readonly insetBlockEnd: "space-inset";
319
- readonly insetBlockStart: "space-inset";
320
- readonly insetInline: "space-inset";
321
- readonly insetInlineEnd: "space-inset";
322
- readonly insetInlineStart: "space-inset";
323
- readonly left: "space";
324
- readonly letterSpacing: "letter-spacings";
325
- readonly lineHeight: "line-heights";
326
- readonly margin: "space-offset";
327
- readonly marginBlock: "space-offset";
328
- readonly marginBlockEnd: "space-offset";
329
- readonly marginBlockStart: "space-offset";
330
- readonly marginBottom: "space-offset";
331
- readonly marginInline: "space-offset";
332
- readonly marginInlineEnd: "space-offset";
333
- readonly marginInlineStart: "space-offset";
334
- readonly marginLeft: "space-offset";
335
- readonly marginRight: "space-offset";
336
- readonly marginTop: "space-offset";
337
- readonly maxBlockSize: "sizes";
338
- readonly maxHeight: "sizes";
339
- readonly maxInlineSize: "sizes";
340
- readonly maxWidth: "sizes";
341
- readonly minBlockSize: "sizes";
342
- readonly minHeight: "sizes";
343
- readonly minInlineSize: "sizes";
344
- readonly minWidth: "sizes";
345
- readonly outline: "colors";
346
- readonly outlineColor: "colors";
347
- readonly padding: "space-inset";
348
- readonly paddingBlock: "space-inset";
349
- readonly paddingBlockEnd: "space-inset";
350
- readonly paddingBlockStart: "space-inset";
351
- readonly paddingBottom: "space-inset";
352
- readonly paddingInline: "space-inset";
353
- readonly paddingInlineEnd: "space-inset";
354
- readonly paddingInlineStart: "space-inset";
355
- readonly paddingLeft: "space-inset";
356
- readonly paddingRight: "space-inset";
357
- readonly paddingTop: "space-inset";
358
- readonly right: "space";
359
- readonly rowGap: "space-gap";
360
- readonly scrollMargin: "space-offset";
361
- readonly scrollMarginBlock: "space-offset";
362
- readonly scrollMarginBlockEnd: "space-offset";
363
- readonly scrollMarginBlockStart: "space-offset";
364
- readonly scrollMarginBottom: "space-offset";
365
- readonly scrollMarginInline: "space-offset";
366
- readonly scrollMarginInlineEnd: "space-offset";
367
- readonly scrollMarginInlineStart: "space-offset";
368
- readonly scrollMarginLeft: "space-offset";
369
- readonly scrollMarginRight: "space-offset";
370
- readonly scrollMarginTop: "space-offset";
371
- readonly scrollPadding: "space-inset";
372
- readonly scrollPaddingBlock: "space-inset";
373
- readonly scrollPaddingBlockEnd: "space-inset";
374
- readonly scrollPaddingBlockStart: "space-inset";
375
- readonly scrollPaddingBottom: "space-inset";
376
- readonly scrollPaddingInline: "space-inset";
377
- readonly scrollPaddingInlineEnd: "space-inset";
378
- readonly scrollPaddingInlineStart: "space-inset";
379
- readonly scrollPaddingLeft: "space-inset";
380
- readonly scrollPaddingRight: "space-inset";
381
- readonly scrollPaddingTop: "space-inset";
382
- readonly stroke: "colors";
383
- readonly textDecorationColor: "colors";
384
- readonly textShadow: "shadows";
385
- readonly top: "space";
386
- readonly transition: "transitions";
387
- readonly width: "sizes";
388
- readonly zIndex: "z-indices";
389
- }, {
390
- paddingX: (value: {
391
- readonly [$$PropertyValue]: "padding";
392
- }) => {
393
- paddingLeft: {
394
- readonly [$$PropertyValue]: "padding";
14
+ }, {}> & _mirohq_design_system_stitches.SafeProps<Omit<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
15
+ css?: _stitches_react_types_css_util.CSS<{}, {
16
+ 'border-widths': {
17
+ readonly none: 0;
18
+ readonly sm: "1px";
19
+ readonly md: "2px";
20
+ readonly lg: "4px";
395
21
  };
396
- paddingRight: {
397
- readonly [$$PropertyValue]: "padding";
22
+ colors: {
23
+ readonly 'blue-100': any;
24
+ readonly 'blue-200': any;
25
+ readonly 'blue-300': any;
26
+ readonly 'blue-400': any;
27
+ readonly 'blue-500': any;
28
+ readonly 'blue-600': any;
29
+ readonly 'blue-700': any;
30
+ readonly 'blue-800': any;
31
+ readonly 'blue-900': any;
32
+ readonly 'blue-1000': any;
33
+ readonly 'gray-100': any;
34
+ readonly 'gray-200': any;
35
+ readonly 'gray-300': any;
36
+ readonly 'gray-400': any;
37
+ readonly 'gray-500': any;
38
+ readonly 'gray-600': any;
39
+ readonly 'gray-700': any;
40
+ readonly 'gray-800': any;
41
+ readonly 'gray-900': any;
42
+ readonly 'indigo-100': any;
43
+ readonly 'indigo-200': any;
44
+ readonly 'indigo-300': any;
45
+ readonly 'indigo-400': any;
46
+ readonly 'indigo-500': any;
47
+ readonly 'indigo-600': any;
48
+ readonly 'indigo-700': any;
49
+ readonly 'indigo-800': any;
50
+ readonly 'indigo-900': any;
51
+ readonly 'red-100': any;
52
+ readonly 'red-200': any;
53
+ readonly 'red-300': any;
54
+ readonly 'red-400': any;
55
+ readonly 'red-500': any;
56
+ readonly 'red-600': any;
57
+ readonly 'red-700': any;
58
+ readonly 'red-800': any;
59
+ readonly 'red-900': any;
60
+ readonly 'yellow-100': any;
61
+ readonly 'yellow-200': any;
62
+ readonly 'yellow-300': any;
63
+ readonly 'yellow-400': any;
64
+ readonly 'yellow-500': any;
65
+ readonly 'yellow-600': any;
66
+ readonly 'yellow-700': any;
67
+ readonly 'yellow-800': any;
68
+ readonly 'yellow-900': any;
69
+ readonly 'green-100': any;
70
+ readonly 'green-200': any;
71
+ readonly 'green-300': any;
72
+ readonly 'green-400': any;
73
+ readonly 'green-500': any;
74
+ readonly 'green-600': any;
75
+ readonly 'green-700': any;
76
+ readonly 'green-800': any;
77
+ readonly 'green-900': any;
78
+ readonly black: any;
79
+ readonly white: any;
80
+ readonly transparent: any;
81
+ readonly 'background-neutrals'?: any;
82
+ readonly 'background-neutrals-body'?: any;
83
+ readonly 'background-neutrals-container'?: any;
84
+ readonly 'background-neutrals-inverted'?: any;
85
+ readonly 'background-neutrals-inverted-subtle'?: any;
86
+ readonly 'background-neutrals-subtle'?: any;
87
+ readonly 'background-neutrals-subtle-hover'?: any;
88
+ readonly 'background-neutrals-subtle-active'?: any;
89
+ readonly 'background-neutrals-disabled'?: any;
90
+ readonly 'background-neutrals-controls-disabled'?: any;
91
+ readonly 'background-neutrals-scrolls'?: any;
92
+ readonly 'background-neutrals-inactive'?: any;
93
+ readonly 'background-neutrals-inactive-hover'?: any;
94
+ readonly 'background-primary-prominent'?: any;
95
+ readonly 'background-primary-prominent-hover'?: any;
96
+ readonly 'background-primary-prominent-active'?: any;
97
+ readonly 'background-primary-prominent-selected'?: any;
98
+ readonly 'background-primary-subtle'?: any;
99
+ readonly 'background-primary-subtle-hover'?: any;
100
+ readonly 'background-primary-subtle-active'?: any;
101
+ readonly 'background-primary-subtle-selected'?: any;
102
+ readonly 'background-danger-prominent'?: any;
103
+ readonly 'background-danger-prominent-hover'?: any;
104
+ readonly 'background-danger-prominent-active'?: any;
105
+ readonly 'background-danger'?: any;
106
+ readonly 'background-danger-hover'?: any;
107
+ readonly 'background-success'?: any;
108
+ readonly 'background-warning-subtle'?: any;
109
+ readonly 'background-warning-prominent'?: any;
110
+ readonly 'text-neutrals-inverted'?: any;
111
+ readonly 'text-neutrals'?: any;
112
+ readonly 'text-neutrals-subtle'?: any;
113
+ readonly 'text-neutrals-placeholder-only'?: any;
114
+ readonly 'text-neutrals-placeholder'?: any;
115
+ readonly 'text-neutrals-disabled'?: any;
116
+ readonly 'text-primary-inverted'?: any;
117
+ readonly 'text-primary'?: any;
118
+ readonly 'text-primary-hover'?: any;
119
+ readonly 'text-primary-active'?: any;
120
+ readonly 'text-primary-selected'?: any;
121
+ readonly 'text-primary-inverted-subtle'?: any;
122
+ readonly 'text-danger-inverted'?: any;
123
+ readonly 'text-danger'?: any;
124
+ readonly 'text-danger-hover'?: any;
125
+ readonly 'text-danger-active'?: any;
126
+ readonly 'text-success'?: any;
127
+ readonly 'text-warning'?: any;
128
+ readonly 'icon-neutrals-inverted'?: any;
129
+ readonly 'icon-neutrals'?: any;
130
+ readonly 'icon-neutrals-with-text'?: any;
131
+ readonly 'icon-neutrals-subtle'?: any;
132
+ readonly 'icon-neutrals-disabled'?: any;
133
+ readonly 'icon-neutrals-search'?: any;
134
+ readonly 'icon-neutrals-inactive'?: any;
135
+ readonly 'icon-neutrals-inactive-hover'?: any;
136
+ readonly 'icon-primary-inverted'?: any;
137
+ readonly 'icon-primary'?: any;
138
+ readonly 'icon-primary-hover'?: any;
139
+ readonly 'icon-primary-active'?: any;
140
+ readonly 'icon-primary-selected'?: any;
141
+ readonly 'icon-danger-inverted'?: any;
142
+ readonly 'icon-danger'?: any;
143
+ readonly 'icon-danger-hover'?: any;
144
+ readonly 'icon-danger-active'?: any;
145
+ readonly 'icon-success-inverted'?: any;
146
+ readonly 'icon-success'?: any;
147
+ readonly 'icon-warning'?: any;
148
+ readonly 'border-focus-outer'?: any;
149
+ readonly 'border-focus-middle'?: any;
150
+ readonly 'border-focus-inner'?: any;
151
+ readonly 'border-neutrals'?: any;
152
+ readonly 'border-neutrals-hover'?: any;
153
+ readonly 'border-neutrals-active'?: any;
154
+ readonly 'border-neutrals-disabled'?: any;
155
+ readonly 'border-neutrals-controls'?: any;
156
+ readonly 'border-neutrals-controls-disabled'?: any;
157
+ readonly 'border-neutrals-subtle'?: any;
158
+ readonly 'border-neutrals-inverted'?: any;
159
+ readonly 'border-primary'?: any;
160
+ readonly 'border-primary-hover'?: any;
161
+ readonly 'border-primary-active'?: any;
162
+ readonly 'border-primary-inverted'?: any;
163
+ readonly 'border-danger'?: any;
164
+ readonly 'border-success'?: any;
165
+ readonly 'border-warning'?: any;
398
166
  };
399
- };
400
- paddingY: (value: {
401
- readonly [$$PropertyValue]: "padding";
402
- }) => {
403
- paddingTop: {
404
- readonly [$$PropertyValue]: "padding";
167
+ 'font-sizes': {
168
+ readonly 150: "0.75rem";
169
+ readonly 175: "0.875rem";
170
+ readonly 200: "1rem";
171
+ readonly 225: "1.125rem";
172
+ readonly 250: "1.25rem";
173
+ readonly 300: "1.5rem";
174
+ readonly 400: "2rem";
175
+ readonly 500: "2.5rem";
176
+ readonly 600: "3rem";
177
+ readonly 800: "4rem";
178
+ readonly 900: "4.5rem";
405
179
  };
406
- paddingBottom: {
407
- readonly [$$PropertyValue]: "padding";
180
+ radii: {
181
+ readonly none: 0;
182
+ readonly half: "999em";
183
+ readonly 25: "2px";
184
+ readonly 50: "4px";
185
+ readonly 75: "6px";
186
+ readonly 100: "8px";
187
+ readonly 200: "16px";
408
188
  };
409
- };
410
- marginX: (value: {
411
- readonly [$$PropertyValue]: "margin";
412
- }) => {
413
- marginLeft: {
414
- readonly [$$PropertyValue]: "margin";
189
+ shadows: {
190
+ readonly 50: "0 4px 16px #05003812";
191
+ readonly 100: "0 8px 32px #05003808";
192
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
193
+ readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
194
+ readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
195
+ readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
415
196
  };
416
- marginRight: {
417
- readonly [$$PropertyValue]: "margin";
197
+ sizes: {
198
+ readonly number: string;
199
+ readonly 'icon-200': "16px";
200
+ readonly 'icon-300': "24px";
201
+ readonly 'icon-400': "32px";
418
202
  };
419
- };
420
- marginY: (value: {
421
- readonly [$$PropertyValue]: "margin";
422
- }) => {
423
- marginTop: {
424
- readonly [$$PropertyValue]: "margin";
203
+ space: {
204
+ readonly none: 0;
205
+ readonly 50: "4px";
206
+ readonly 100: "8px";
207
+ readonly 150: "12px";
208
+ readonly 200: "16px";
209
+ readonly 300: "24px";
210
+ readonly 400: "32px";
211
+ readonly 500: "64px";
212
+ readonly 600: "48px";
213
+ readonly 800: "64px";
214
+ readonly 1200: "96px";
215
+ readonly 1600: "128px";
216
+ };
217
+ 'space-gap': {
218
+ readonly none: any;
219
+ readonly 50: any;
220
+ readonly 100: any;
221
+ readonly 200: any;
222
+ readonly 300: any;
223
+ };
224
+ 'space-inset': {
225
+ readonly none: any;
226
+ readonly 50: any;
227
+ readonly 100: any;
228
+ readonly 150: any;
229
+ readonly 200: any;
230
+ readonly 300: any;
231
+ readonly 400: any;
232
+ readonly 600: any;
233
+ readonly 800: any;
234
+ readonly 1200: any;
235
+ readonly 1600: any;
425
236
  };
426
- marginBottom: {
237
+ 'space-offset': {
238
+ readonly none: any;
239
+ readonly 50: any;
240
+ readonly 100: any;
241
+ readonly 150: any;
242
+ readonly 200: any;
243
+ readonly 300: any;
244
+ readonly 400: any;
245
+ readonly 600: any;
246
+ readonly 800: any;
247
+ readonly 1200: any;
248
+ readonly 1600: any;
249
+ readonly 'stacking-none': any;
250
+ readonly 'stacking-100': any;
251
+ readonly 'stacking-200': any;
252
+ readonly 'stacking-300': any;
253
+ readonly 'stacking-400': any;
254
+ readonly 'stacking-500': any;
255
+ readonly 'stacking-800': any;
256
+ };
257
+ 'z-indices': {
258
+ readonly dropdownMenu: 100;
259
+ readonly popover: 200;
260
+ readonly tooltip: 300;
261
+ };
262
+ }, {
263
+ readonly background: "colors";
264
+ readonly backgroundColor: "colors";
265
+ readonly backgroundImage: "colors";
266
+ readonly blockSize: "sizes";
267
+ readonly border: "colors";
268
+ readonly borderBlock: "colors";
269
+ readonly borderBlockEnd: "colors";
270
+ readonly borderBlockStart: "colors";
271
+ readonly borderBottom: "colors";
272
+ readonly borderBottomColor: "colors";
273
+ readonly borderBottomLeftRadius: "radii";
274
+ readonly borderBottomRightRadius: "radii";
275
+ readonly borderBottomStyle: "border-styles";
276
+ readonly borderBottomWidth: "border-widths";
277
+ readonly borderColor: "colors";
278
+ readonly borderImage: "colors";
279
+ readonly borderInline: "colors";
280
+ readonly borderInlineEnd: "colors";
281
+ readonly borderInlineStart: "colors";
282
+ readonly borderLeft: "colors";
283
+ readonly borderLeftColor: "colors";
284
+ readonly borderLeftStyle: "border-styles";
285
+ readonly borderLeftWidth: "border-widths";
286
+ readonly borderRadius: "radii";
287
+ readonly borderRight: "colors";
288
+ readonly borderRightColor: "colors";
289
+ readonly borderRightStyle: "border-styles";
290
+ readonly borderRightWidth: "border-widths";
291
+ readonly borderStyle: "border-styles";
292
+ readonly borderTop: "colors";
293
+ readonly borderTopColor: "colors";
294
+ readonly borderTopLeftRadius: "radii";
295
+ readonly borderTopRightRadius: "radii";
296
+ readonly borderTopStyle: "border-styles";
297
+ readonly borderTopWidth: "border-widths";
298
+ readonly borderWidth: "border-widths";
299
+ readonly bottom: "space";
300
+ readonly boxShadow: "shadows";
301
+ readonly caretColor: "colors";
302
+ readonly color: "colors";
303
+ readonly columnGap: "space-gap";
304
+ readonly columnRuleColor: "colors";
305
+ readonly fill: "colors";
306
+ readonly flexBasis: "sizes";
307
+ readonly fontFamily: "fonts";
308
+ readonly fontSize: "font-sizes";
309
+ readonly fontWeight: "font-weights";
310
+ readonly gap: "space-gap";
311
+ readonly gridColumnGap: "space-gap";
312
+ readonly gridGap: "space-gap";
313
+ readonly gridRowGap: "space-gap";
314
+ readonly gridTemplateColumns: "sizes";
315
+ readonly gridTemplateRows: "sizes";
316
+ readonly height: "sizes";
317
+ readonly inlineSize: "sizes";
318
+ readonly inset: "space-inset";
319
+ readonly insetBlock: "space-inset";
320
+ readonly insetBlockEnd: "space-inset";
321
+ readonly insetBlockStart: "space-inset";
322
+ readonly insetInline: "space-inset";
323
+ readonly insetInlineEnd: "space-inset";
324
+ readonly insetInlineStart: "space-inset";
325
+ readonly left: "space";
326
+ readonly letterSpacing: "letter-spacings";
327
+ readonly lineHeight: "line-heights";
328
+ readonly margin: "space-offset";
329
+ readonly marginBlock: "space-offset";
330
+ readonly marginBlockEnd: "space-offset";
331
+ readonly marginBlockStart: "space-offset";
332
+ readonly marginBottom: "space-offset";
333
+ readonly marginInline: "space-offset";
334
+ readonly marginInlineEnd: "space-offset";
335
+ readonly marginInlineStart: "space-offset";
336
+ readonly marginLeft: "space-offset";
337
+ readonly marginRight: "space-offset";
338
+ readonly marginTop: "space-offset";
339
+ readonly maxBlockSize: "sizes";
340
+ readonly maxHeight: "sizes";
341
+ readonly maxInlineSize: "sizes";
342
+ readonly maxWidth: "sizes";
343
+ readonly minBlockSize: "sizes";
344
+ readonly minHeight: "sizes";
345
+ readonly minInlineSize: "sizes";
346
+ readonly minWidth: "sizes";
347
+ readonly outline: "colors";
348
+ readonly outlineColor: "colors";
349
+ readonly padding: "space-inset";
350
+ readonly paddingBlock: "space-inset";
351
+ readonly paddingBlockEnd: "space-inset";
352
+ readonly paddingBlockStart: "space-inset";
353
+ readonly paddingBottom: "space-inset";
354
+ readonly paddingInline: "space-inset";
355
+ readonly paddingInlineEnd: "space-inset";
356
+ readonly paddingInlineStart: "space-inset";
357
+ readonly paddingLeft: "space-inset";
358
+ readonly paddingRight: "space-inset";
359
+ readonly paddingTop: "space-inset";
360
+ readonly right: "space";
361
+ readonly rowGap: "space-gap";
362
+ readonly scrollMargin: "space-offset";
363
+ readonly scrollMarginBlock: "space-offset";
364
+ readonly scrollMarginBlockEnd: "space-offset";
365
+ readonly scrollMarginBlockStart: "space-offset";
366
+ readonly scrollMarginBottom: "space-offset";
367
+ readonly scrollMarginInline: "space-offset";
368
+ readonly scrollMarginInlineEnd: "space-offset";
369
+ readonly scrollMarginInlineStart: "space-offset";
370
+ readonly scrollMarginLeft: "space-offset";
371
+ readonly scrollMarginRight: "space-offset";
372
+ readonly scrollMarginTop: "space-offset";
373
+ readonly scrollPadding: "space-inset";
374
+ readonly scrollPaddingBlock: "space-inset";
375
+ readonly scrollPaddingBlockEnd: "space-inset";
376
+ readonly scrollPaddingBlockStart: "space-inset";
377
+ readonly scrollPaddingBottom: "space-inset";
378
+ readonly scrollPaddingInline: "space-inset";
379
+ readonly scrollPaddingInlineEnd: "space-inset";
380
+ readonly scrollPaddingInlineStart: "space-inset";
381
+ readonly scrollPaddingLeft: "space-inset";
382
+ readonly scrollPaddingRight: "space-inset";
383
+ readonly scrollPaddingTop: "space-inset";
384
+ readonly stroke: "colors";
385
+ readonly textDecorationColor: "colors";
386
+ readonly textShadow: "shadows";
387
+ readonly top: "space";
388
+ readonly transition: "transitions";
389
+ readonly width: "sizes";
390
+ readonly zIndex: "z-indices";
391
+ }, {
392
+ paddingX: (value: {
393
+ readonly [$$PropertyValue]: "padding";
394
+ }) => {
395
+ paddingLeft: {
396
+ readonly [$$PropertyValue]: "padding";
397
+ };
398
+ paddingRight: {
399
+ readonly [$$PropertyValue]: "padding";
400
+ };
401
+ };
402
+ paddingY: (value: {
403
+ readonly [$$PropertyValue]: "padding";
404
+ }) => {
405
+ paddingTop: {
406
+ readonly [$$PropertyValue]: "padding";
407
+ };
408
+ paddingBottom: {
409
+ readonly [$$PropertyValue]: "padding";
410
+ };
411
+ };
412
+ marginX: (value: {
427
413
  readonly [$$PropertyValue]: "margin";
414
+ }) => {
415
+ marginLeft: {
416
+ readonly [$$PropertyValue]: "margin";
417
+ };
418
+ marginRight: {
419
+ readonly [$$PropertyValue]: "margin";
420
+ };
428
421
  };
429
- };
430
- square: (value: {
431
- readonly [$$PropertyValue]: "width";
432
- }) => {
433
- width: {
434
- readonly [$$PropertyValue]: "width";
422
+ marginY: (value: {
423
+ readonly [$$PropertyValue]: "margin";
424
+ }) => {
425
+ marginTop: {
426
+ readonly [$$PropertyValue]: "margin";
427
+ };
428
+ marginBottom: {
429
+ readonly [$$PropertyValue]: "margin";
430
+ };
435
431
  };
436
- height: {
432
+ square: (value: {
437
433
  readonly [$$PropertyValue]: "width";
434
+ }) => {
435
+ width: {
436
+ readonly [$$PropertyValue]: "width";
437
+ };
438
+ height: {
439
+ readonly [$$PropertyValue]: "width";
440
+ };
438
441
  };
439
- };
440
- }>>> & _mirohq_design_system_stitches.CustomStylesProps, "form" | "slot" | "title" | "children" | "color" | "translate" | "hidden" | "size" | "prefix" | "asChild" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "required" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "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>>, {
442
+ }> | undefined;
443
+ }> & {
444
+ children?: react.ReactNode;
445
+ } & _mirohq_design_system_stitches.CustomStylesProps, "form" | "slot" | "title" | "children" | "color" | "translate" | "hidden" | "size" | "prefix" | "asChild" | "autoFocus" | "checked" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "placeholder" | "required" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "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" | "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>>, {
441
446
  size?: "medium" | "large" | undefined;
442
447
  }, {}>;
443
448
  declare type StyledSwitchProps = StrictComponentProps<typeof StyledSwitch>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-switch",
3
- "version": "3.0.0-switch.0",
3
+ "version": "3.0.0-switch.1",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@radix-ui/react-switch": "^1.0.0",
31
- "@mirohq/design-system-stitches": "^2.2.0",
32
- "@mirohq/design-system-styles": "^1.0.16",
33
- "@mirohq/design-system-types": "^0.4.0",
34
- "@mirohq/design-system-utils": "^0.13.0"
31
+ "@mirohq/design-system-stitches": "^2.2.4",
32
+ "@mirohq/design-system-types": "^0.4.1",
33
+ "@mirohq/design-system-utils": "^0.13.1",
34
+ "@mirohq/design-system-styles": "^1.0.20"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "rollup -c ../../../rollup.config.js",