@mirohq/design-system-switch 3.0.35 → 3.0.37

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +4 -491
  2. package/package.json +6 -6
package/dist/types.d.ts CHANGED
@@ -1,501 +1,14 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { Booleanish } from '@mirohq/design-system-types';
4
+ import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
4
5
  import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
5
6
  import { StrictComponentProps } from '@mirohq/design-system-stitches';
6
- import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
7
- import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
8
7
  import * as RadixSwitch from '@radix-ui/react-switch';
9
8
 
10
- declare const StyledSwitch: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
11
- 'border-widths': {
12
- readonly none: 0;
13
- readonly sm: "1px";
14
- readonly md: "2px";
15
- readonly lg: "4px";
16
- };
17
- colors: {
18
- readonly black: any;
19
- readonly 'blue-50': any;
20
- readonly 'blue-100': any;
21
- readonly 'blue-150': any;
22
- readonly 'blue-200': any;
23
- readonly 'blue-250': any;
24
- readonly 'blue-300': any;
25
- readonly 'blue-350': any;
26
- readonly 'blue-400': any;
27
- readonly 'blue-450': any;
28
- readonly 'blue-500': any;
29
- readonly 'blue-550': any;
30
- readonly 'blue-600': any;
31
- readonly 'blue-650': any;
32
- readonly 'blue-700': any;
33
- readonly 'blue-750': any;
34
- readonly 'blue-800': any;
35
- readonly 'blue-850': any;
36
- readonly 'blue-900': any;
37
- readonly 'blue-950': any;
38
- readonly 'gray-50': any;
39
- readonly 'gray-100': any;
40
- readonly 'gray-150': any;
41
- readonly 'gray-200': any;
42
- readonly 'gray-250': any;
43
- readonly 'gray-300': any;
44
- readonly 'gray-350': any;
45
- readonly 'gray-400': any;
46
- readonly 'gray-450': any;
47
- readonly 'gray-500': any;
48
- readonly 'gray-550': any;
49
- readonly 'gray-600': any;
50
- readonly 'gray-650': any;
51
- readonly 'gray-700': any;
52
- readonly 'gray-750': any;
53
- readonly 'gray-800': any;
54
- readonly 'gray-850': any;
55
- readonly 'gray-900': any;
56
- readonly 'gray-950': any;
57
- readonly 'green-50': any;
58
- readonly 'green-100': any;
59
- readonly 'green-150': any;
60
- readonly 'green-200': any;
61
- readonly 'green-250': any;
62
- readonly 'green-300': any;
63
- readonly 'green-350': any;
64
- readonly 'green-400': any;
65
- readonly 'green-450': any;
66
- readonly 'green-500': any;
67
- readonly 'green-550': any;
68
- readonly 'green-600': any;
69
- readonly 'green-650': any;
70
- readonly 'green-700': any;
71
- readonly 'green-750': any;
72
- readonly 'green-800': any;
73
- readonly 'green-850': any;
74
- readonly 'green-900': any;
75
- readonly 'green-950': any;
76
- readonly 'red-50': any;
77
- readonly 'red-100': any;
78
- readonly 'red-150': any;
79
- readonly 'red-200': any;
80
- readonly 'red-250': any;
81
- readonly 'red-300': any;
82
- readonly 'red-350': any;
83
- readonly 'red-400': any;
84
- readonly 'red-450': any;
85
- readonly 'red-500': any;
86
- readonly 'red-550': any;
87
- readonly 'red-600': any;
88
- readonly 'red-650': any;
89
- readonly 'red-700': any;
90
- readonly 'red-750': any;
91
- readonly 'red-800': any;
92
- readonly 'red-850': any;
93
- readonly 'red-900': any;
94
- readonly 'red-950': any;
95
- readonly transparent: any;
96
- readonly white: any;
97
- readonly 'yellow-50': any;
98
- readonly 'yellow-100': any;
99
- readonly 'yellow-150': any;
100
- readonly 'yellow-200': any;
101
- readonly 'yellow-250': any;
102
- readonly 'yellow-300': any;
103
- readonly 'yellow-350': any;
104
- readonly 'yellow-400': any;
105
- readonly 'yellow-450': any;
106
- readonly 'yellow-500': any;
107
- readonly 'yellow-550': any;
108
- readonly 'yellow-600': any;
109
- readonly 'yellow-650': any;
110
- readonly 'yellow-700': any;
111
- readonly 'yellow-750': any;
112
- readonly 'yellow-800': any;
113
- readonly 'yellow-850': any;
114
- readonly 'yellow-900': any;
115
- readonly 'yellow-950': any;
116
- "background-alpha-active"?: any;
117
- "background-alpha-hover"?: any;
118
- "background-danger-prominent"?: any;
119
- "background-danger-prominent-active"?: any;
120
- "background-danger-prominent-hover"?: any;
121
- "background-danger-subtle"?: any;
122
- "background-danger-subtle-active"?: any;
123
- "background-danger-subtle-hover"?: any;
124
- "background-neutrals"?: any;
125
- "background-neutrals-active"?: any;
126
- "background-neutrals-container"?: any;
127
- "background-neutrals-controls-disabled"?: any;
128
- "background-neutrals-disabled"?: any;
129
- "background-neutrals-hover"?: any;
130
- "background-neutrals-inactive"?: any;
131
- "background-neutrals-inactive-hover"?: any;
132
- "background-neutrals-inverted"?: any;
133
- "background-neutrals-inverted-subtle"?: any;
134
- "background-neutrals-page"?: any;
135
- "background-neutrals-page-subtle"?: any;
136
- "background-neutrals-scrollbar"?: any;
137
- "background-neutrals-scrollbar-active"?: any;
138
- "background-neutrals-scrollbar-hover"?: any;
139
- "background-neutrals-subtle"?: any;
140
- "background-neutrals-subtle-active"?: any;
141
- "background-neutrals-subtle-hover"?: any;
142
- "background-primary-prominent"?: any;
143
- "background-primary-prominent-active"?: any;
144
- "background-primary-prominent-hover"?: any;
145
- "background-primary-prominent-selected"?: any;
146
- "background-primary-subtle"?: any;
147
- "background-primary-subtle-active"?: any;
148
- "background-primary-subtle-hover"?: any;
149
- "background-primary-subtle-selected"?: any;
150
- "background-success"?: any;
151
- "background-success-prominent"?: any;
152
- "background-success-prominent-active"?: any;
153
- "background-success-prominent-hover"?: any;
154
- "background-warning-prominent"?: any;
155
- "background-warning-subtle"?: any;
156
- "border-danger"?: any;
157
- "border-danger-active"?: any;
158
- "border-danger-hover"?: any;
159
- "border-focus-error-inner"?: any;
160
- "border-focus-error-middle"?: any;
161
- "border-focus-error-outer"?: any;
162
- "border-focus-inner"?: any;
163
- "border-focus-middle"?: any;
164
- "border-focus-outer"?: any;
165
- "border-focus-success-inner"?: any;
166
- "border-focus-success-middle"?: any;
167
- "border-focus-success-outer"?: any;
168
- "border-neutrals"?: any;
169
- "border-neutrals-active"?: any;
170
- "border-neutrals-controls"?: any;
171
- "border-neutrals-controls-disabled"?: any;
172
- "border-neutrals-disabled"?: any;
173
- "border-neutrals-hover"?: any;
174
- "border-neutrals-inverted"?: any;
175
- "border-neutrals-subtle"?: any;
176
- "border-neutrals-text"?: any;
177
- "border-neutrals-text-active"?: any;
178
- "border-neutrals-text-hover"?: any;
179
- "border-neutrals-text-subtle"?: any;
180
- "border-neutrals-text-subtle-active"?: any;
181
- "border-neutrals-text-subtle-hover"?: any;
182
- "border-neutrals-transparent"?: any;
183
- "border-primary"?: any;
184
- "border-primary-active"?: any;
185
- "border-primary-hover"?: any;
186
- "border-primary-inverted"?: any;
187
- "border-success"?: any;
188
- "border-success-active"?: any;
189
- "border-success-hover"?: any;
190
- "border-warning"?: any;
191
- "icon-danger"?: any;
192
- "icon-danger-active"?: any;
193
- "icon-danger-hover"?: any;
194
- "icon-danger-inverted"?: any;
195
- "icon-neutrals"?: any;
196
- "icon-neutrals-disabled"?: any;
197
- "icon-neutrals-inactive"?: any;
198
- "icon-neutrals-inactive-hover"?: any;
199
- "icon-neutrals-inverted"?: any;
200
- "icon-neutrals-search"?: any;
201
- "icon-neutrals-subtle"?: any;
202
- "icon-neutrals-text"?: any;
203
- "icon-primary"?: any;
204
- "icon-primary-active"?: any;
205
- "icon-primary-hover"?: any;
206
- "icon-primary-inverted"?: any;
207
- "icon-primary-selected"?: any;
208
- "icon-success"?: any;
209
- "icon-success-active"?: any;
210
- "icon-success-hover"?: any;
211
- "icon-success-inverted"?: any;
212
- "icon-warning"?: any;
213
- "icon-warning-prominent"?: any;
214
- "icon-warning-subtle"?: any;
215
- "text-danger"?: any;
216
- "text-danger-active"?: any;
217
- "text-danger-hover"?: any;
218
- "text-danger-inverted"?: any;
219
- "text-neutrals"?: any;
220
- "text-neutrals-active"?: any;
221
- "text-neutrals-disabled"?: any;
222
- "text-neutrals-hover"?: any;
223
- "text-neutrals-inverted"?: any;
224
- "text-neutrals-placeholder"?: any;
225
- "text-neutrals-placeholder-only"?: any;
226
- "text-neutrals-subtle"?: any;
227
- "text-neutrals-subtle-active"?: any;
228
- "text-neutrals-subtle-hover"?: any;
229
- "text-primary"?: any;
230
- "text-primary-active"?: any;
231
- "text-primary-hover"?: any;
232
- "text-primary-inverted"?: any;
233
- "text-primary-inverted-subtle"?: any;
234
- "text-primary-selected"?: any;
235
- "text-success"?: any;
236
- "text-success-active"?: any;
237
- "text-success-hover"?: any;
238
- "text-success-inverted"?: any;
239
- "text-warning"?: any;
240
- "text-warning-subtle"?: any;
241
- };
242
- 'font-sizes': {
243
- readonly 125: "0.625rem";
244
- readonly 150: "0.75rem";
245
- readonly 175: "0.875rem";
246
- readonly 200: "1rem";
247
- readonly 225: "1.125rem";
248
- readonly 250: "1.25rem";
249
- readonly 300: "1.5rem";
250
- readonly 400: "2rem";
251
- readonly 500: "2.5rem";
252
- readonly 600: "3rem";
253
- readonly 800: "4rem";
254
- readonly 900: "4.5rem";
255
- };
256
- fonts: {
257
- readonly heading: "Roobert, sans-serif";
258
- readonly body: "Open Sans, sans-serif";
259
- };
260
- radii: {
261
- readonly 0: "0px";
262
- readonly 25: "2px";
263
- readonly 50: "4px";
264
- readonly 75: "6px";
265
- readonly 100: "8px";
266
- readonly 200: "16px";
267
- readonly round: "999px";
268
- };
269
- shadows: {
270
- 100: any;
271
- 50: any;
272
- "focus-small": any;
273
- "focus-small-outline": any;
274
- "focus-large": any;
275
- "focus-controls": any;
276
- "focus-controls-error": any;
277
- "focus-controls-error-small": any;
278
- "focus-controls-success": any;
279
- };
280
- sizes: {
281
- readonly number: string;
282
- readonly 'icon-200': "16px";
283
- readonly 'icon-300': "24px";
284
- readonly 'icon-400': "32px";
285
- };
286
- space: {
287
- readonly 0: "0px";
288
- readonly 25: "2px";
289
- readonly 50: "4px";
290
- readonly 100: "8px";
291
- readonly 150: "12px";
292
- readonly 200: "16px";
293
- readonly 300: "24px";
294
- readonly 400: "32px";
295
- readonly 500: "40px";
296
- readonly 600: "48px";
297
- readonly 700: "56px";
298
- readonly 800: "64px";
299
- readonly 1200: "96px";
300
- readonly 1600: "128px";
301
- };
302
- 'stroke-width': {
303
- readonly thin: "1.5px";
304
- readonly normal: "2px";
305
- readonly bold: "4px";
306
- };
307
- 'z-indices': {
308
- readonly dropdownMenu: 100;
309
- readonly select: 200;
310
- readonly popover: 300;
311
- readonly tooltip: 400;
312
- };
313
- }, {
314
- readonly background: "colors";
315
- readonly backgroundColor: "colors";
316
- readonly backgroundImage: "colors";
317
- readonly blockSize: "sizes";
318
- readonly border: "colors";
319
- readonly borderBlock: "colors";
320
- readonly borderBlockEnd: "colors";
321
- readonly borderBlockStart: "colors";
322
- readonly borderBottom: "colors";
323
- readonly borderBottomColor: "colors";
324
- readonly borderBottomLeftRadius: "radii";
325
- readonly borderBottomRightRadius: "radii";
326
- readonly borderBottomStyle: "border-styles";
327
- readonly borderBottomWidth: "border-widths";
328
- readonly borderColor: "colors";
329
- readonly borderImage: "colors";
330
- readonly borderInline: "colors";
331
- readonly borderInlineEnd: "colors";
332
- readonly borderInlineStart: "colors";
333
- readonly borderLeft: "colors";
334
- readonly borderLeftColor: "colors";
335
- readonly borderLeftStyle: "border-styles";
336
- readonly borderLeftWidth: "border-widths";
337
- readonly borderRadius: "radii";
338
- readonly borderRight: "colors";
339
- readonly borderRightColor: "colors";
340
- readonly borderRightStyle: "border-styles";
341
- readonly borderRightWidth: "border-widths";
342
- readonly borderSpacing: "space";
343
- readonly borderStyle: "border-styles";
344
- readonly borderTop: "colors";
345
- readonly borderTopColor: "colors";
346
- readonly borderTopLeftRadius: "radii";
347
- readonly borderTopRightRadius: "radii";
348
- readonly borderTopStyle: "border-styles";
349
- readonly borderTopWidth: "border-widths";
350
- readonly borderWidth: "border-widths";
351
- readonly bottom: "space";
352
- readonly boxShadow: "shadows";
353
- readonly caretColor: "colors";
354
- readonly color: "colors";
355
- readonly columnGap: "space";
356
- readonly columnRuleColor: "colors";
357
- readonly fill: "colors";
358
- readonly flexBasis: "sizes";
359
- readonly fontFamily: "fonts";
360
- readonly fontSize: "font-sizes";
361
- readonly fontWeight: "font-weights";
362
- readonly gap: "space";
363
- readonly gridColumnGap: "space";
364
- readonly gridGap: "space";
365
- readonly gridRowGap: "space";
366
- readonly gridTemplateColumns: "sizes";
367
- readonly gridTemplateRows: "sizes";
368
- readonly height: "sizes";
369
- readonly inlineSize: "sizes";
370
- readonly inset: "space";
371
- readonly insetBlock: "space";
372
- readonly insetBlockEnd: "space";
373
- readonly insetBlockStart: "space";
374
- readonly insetInline: "space";
375
- readonly insetInlineEnd: "space";
376
- readonly insetInlineStart: "space";
377
- readonly left: "space";
378
- readonly letterSpacing: "letter-spacings";
379
- readonly lineHeight: "line-heights";
380
- readonly margin: "space";
381
- readonly marginBlock: "space";
382
- readonly marginBlockEnd: "space";
383
- readonly marginBlockStart: "space";
384
- readonly marginBottom: "space";
385
- readonly marginInline: "space";
386
- readonly marginInlineEnd: "space";
387
- readonly marginInlineStart: "space";
388
- readonly marginLeft: "space";
389
- readonly marginRight: "space";
390
- readonly marginTop: "space";
391
- readonly maxBlockSize: "sizes";
392
- readonly maxHeight: "sizes";
393
- readonly maxInlineSize: "sizes";
394
- readonly maxWidth: "sizes";
395
- readonly minBlockSize: "sizes";
396
- readonly minHeight: "sizes";
397
- readonly minInlineSize: "sizes";
398
- readonly minWidth: "sizes";
399
- readonly outline: "colors";
400
- readonly outlineColor: "colors";
401
- readonly padding: "space";
402
- readonly paddingBlock: "space";
403
- readonly paddingBlockEnd: "space";
404
- readonly paddingBlockStart: "space";
405
- readonly paddingBottom: "space";
406
- readonly paddingInline: "space";
407
- readonly paddingInlineEnd: "space";
408
- readonly paddingInlineStart: "space";
409
- readonly paddingLeft: "space";
410
- readonly paddingRight: "space";
411
- readonly paddingTop: "space";
412
- readonly right: "space";
413
- readonly rowGap: "space";
414
- readonly scrollMargin: "space";
415
- readonly scrollMarginBlock: "space";
416
- readonly scrollMarginBlockEnd: "space";
417
- readonly scrollMarginBlockStart: "space";
418
- readonly scrollMarginBottom: "space";
419
- readonly scrollMarginInline: "space";
420
- readonly scrollMarginInlineEnd: "space";
421
- readonly scrollMarginInlineStart: "space";
422
- readonly scrollMarginLeft: "space";
423
- readonly scrollMarginRight: "space";
424
- readonly scrollMarginTop: "space";
425
- readonly scrollPadding: "space";
426
- readonly scrollPaddingBlock: "space";
427
- readonly scrollPaddingBlockEnd: "space";
428
- readonly scrollPaddingBlockStart: "space";
429
- readonly scrollPaddingBottom: "space";
430
- readonly scrollPaddingInline: "space";
431
- readonly scrollPaddingInlineEnd: "space";
432
- readonly scrollPaddingInlineStart: "space";
433
- readonly scrollPaddingLeft: "space";
434
- readonly scrollPaddingRight: "space";
435
- readonly scrollPaddingTop: "space";
436
- readonly stroke: "colors";
437
- readonly strokeWidth: "stroke-width";
438
- readonly textDecorationColor: "colors";
439
- readonly textShadow: "shadows";
440
- readonly top: "space";
441
- readonly transition: "transitions";
442
- readonly width: "sizes";
443
- readonly zIndex: "z-indices";
444
- }, {
445
- paddingX: (value: {
446
- readonly [$$PropertyValue]: "padding";
447
- }) => {
448
- paddingLeft: {
449
- readonly [$$PropertyValue]: "padding";
450
- };
451
- paddingRight: {
452
- readonly [$$PropertyValue]: "padding";
453
- };
454
- };
455
- paddingY: (value: {
456
- readonly [$$PropertyValue]: "padding";
457
- }) => {
458
- paddingTop: {
459
- readonly [$$PropertyValue]: "padding";
460
- };
461
- paddingBottom: {
462
- readonly [$$PropertyValue]: "padding";
463
- };
464
- };
465
- marginX: (value: {
466
- readonly [$$PropertyValue]: "margin";
467
- }) => {
468
- marginLeft: {
469
- readonly [$$PropertyValue]: "margin";
470
- };
471
- marginRight: {
472
- readonly [$$PropertyValue]: "margin";
473
- };
474
- };
475
- marginY: (value: {
476
- readonly [$$PropertyValue]: "margin";
477
- }) => {
478
- marginTop: {
479
- readonly [$$PropertyValue]: "margin";
480
- };
481
- marginBottom: {
482
- readonly [$$PropertyValue]: "margin";
483
- };
484
- };
485
- square: (value: {
486
- readonly [$$PropertyValue]: "width";
487
- }) => {
488
- width: {
489
- readonly [$$PropertyValue]: "width";
490
- };
491
- height: {
492
- readonly [$$PropertyValue]: "width";
493
- };
494
- };
495
- _hover: (css: _stitches_react_types_css_util.CSSProperties) => {
496
- '&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
497
- };
498
- }>>>, "size"> & _stitches_react_types_styled_component.TransformProps<{
9
+ declare const StyledSwitch: react.ForwardRefExoticComponent<Omit<Omit<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>, _mirohq_design_system_stitches.ForbiddenProps> & {
10
+ children?: react.ReactNode;
11
+ } & _stitches_react_types_styled_component.TransformProps<{
499
12
  size?: "medium" | "large" | undefined;
500
13
  }, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<RadixSwitch.SwitchProps & react.RefAttributes<HTMLButtonElement>>, {
501
14
  size?: "medium" | "large" | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-switch",
3
- "version": "3.0.35",
3
+ "version": "3.0.37",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@radix-ui/react-switch": "^1.0.0",
31
- "@mirohq/design-system-base-switch": "^0.1.25",
32
- "@mirohq/design-system-stitches": "^2.6.5",
33
- "@mirohq/design-system-styles": "^1.2.4",
34
- "@mirohq/design-system-types": "^0.7.0",
35
- "@mirohq/design-system-utils": "^0.15.1"
31
+ "@mirohq/design-system-stitches": "^2.6.7",
32
+ "@mirohq/design-system-styles": "^1.2.6",
33
+ "@mirohq/design-system-types": "^0.8.0",
34
+ "@mirohq/design-system-utils": "^0.15.2",
35
+ "@mirohq/design-system-base-switch": "^0.1.27"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "rollup -c ../../../rollup.config.js",