@jeromefitz/design-system 4.1.5 → 4.1.7
Sign up to get free protection for your applications and to get access to all the features.
- package/Accordion-2fc6cca7.d.ts +505 -0
- package/Alert-d01e69ba.d.ts +297 -0
- package/{AlertDialog-7967fb73.d.ts → AlertDialog-ee362b59.d.ts} +0 -0
- package/{Announce-f95e763b.d.ts → Announce-94b08fcf.d.ts} +0 -0
- package/AppBar-70930f32.d.ts +324 -0
- package/Avatar-840f24ab.d.ts +395 -0
- package/Badge-3a6b6459.d.ts +357 -0
- package/Banner-78d9e930.d.ts +303 -0
- package/{Blockquote-34128060.d.ts → Blockquote-c154ceba.d.ts} +0 -0
- package/Box-7ec1f514.d.ts +251 -0
- package/BoxGrab-b64a04f7.d.ts +251 -0
- package/BoxLink-3c2ff9e5.d.ts +251 -0
- package/ButtonDemo-a5d1e7b7.d.ts +1512 -0
- package/{Callout-5c413ba3.d.ts → Callout-a91a41d8.d.ts} +0 -0
- package/{Caption-71fee953.d.ts → Caption-5bdd1afc.d.ts} +0 -0
- package/Card-44490af0.d.ts +344 -0
- package/Carousel-f81083b2.d.ts +256 -0
- package/Checkbox-0e4d444d.d.ts +376 -0
- package/Code-1425e777.d.ts +260 -0
- package/CommandMenu-bb0d6311.d.ts +3226 -0
- package/Container-b8b6e81c.d.ts +287 -0
- package/ContextMenu-7ae22435.d.ts +1492 -0
- package/ControlGroup-d06f4b62.d.ts +251 -0
- package/{Dialog-70ba5b69.d.ts → Dialog-12f5f63b.d.ts} +0 -0
- package/DropdownMenu-4c8b0fa0.d.ts +2717 -0
- package/{EmojiParser-5356b7d1.d.ts → EmojiParser-36ff1262.d.ts} +0 -0
- package/Flex-497e7617.d.ts +347 -0
- package/FocusArea-63e74682.d.ts +256 -0
- package/Grid-6c8e8ecf.d.ts +411 -0
- package/{Heading-b0b8205b.d.ts → Heading-acb5c14a.d.ts} +1 -1
- package/{Icon-d48f2f08.d.ts → Icon-464faa80.d.ts} +1 -1
- package/Icon.types-48a13108.d.ts +377 -0
- package/IconButton-f8ef5575.d.ts +382 -0
- package/Image-cb60725d.d.ts +251 -0
- package/Kbd-b8d2683e.d.ts +312 -0
- package/LICENSE +1 -1
- package/Label-2f40709b.d.ts +631 -0
- package/{Link-9d116ca4.d.ts → Link-bf26a1c6.d.ts} +89 -267
- package/LoadingDots-22b6de1b.d.ts +302 -0
- package/Menu-0f6ade87.d.ts +1490 -0
- package/NavigationMenu-51086c89.d.ts +4122 -0
- package/{Note-98a3e810.d.ts → Note-d2764283.d.ts} +0 -0
- package/Overlay.styles-6a4dd3e8.d.ts +497 -0
- package/{PageHeading-9c87c946.d.ts → PageHeading-c0cd9afd.d.ts} +1 -1
- package/Panel.styles-491728d4.d.ts +497 -0
- package/{Paragraph-83414284.d.ts → Paragraph-5fda2152.d.ts} +1 -1
- package/{Paragraph.types-fa0c04ae.d.ts → Paragraph.types-e041945f.d.ts} +1 -1
- package/{Popover-0dff553f.d.ts → Popover-ef09b48e.d.ts} +1 -1
- package/ProgressBar-1a395fe3.d.ts +305 -0
- package/Radio-5b3425e5.d.ts +564 -0
- package/RadioCard-9a968b1a.d.ts +262 -0
- package/RadioGrid-0c70db77.d.ts +498 -0
- package/{ScrollArea-92343052.d.ts → ScrollArea-14b2feb8.d.ts} +0 -0
- package/Section-67cd986f.d.ts +278 -0
- package/Select-b2d8960c.d.ts +2218 -0
- package/Separator-37db30e4.d.ts +328 -0
- package/Sheet-9edd474c.d.ts +812 -0
- package/Skeleton-5eaa4deb.d.ts +321 -0
- package/Slider-5b835ecd.d.ts +260 -0
- package/{Spacer-180a9f56.d.ts → Spacer-94122963.d.ts} +0 -0
- package/Spotify-c2a68dcf.d.ts +3765 -0
- package/Status-ae56d1a8.d.ts +287 -0
- package/Sub-56bbbc86.d.ts +251 -0
- package/Sup-a3e3aed8.d.ts +251 -0
- package/SwitchIcon-bad5e1f8.d.ts +324 -0
- package/TabLink-70d91718.d.ts +290 -0
- package/Table-221e70b2.d.ts +2043 -0
- package/Tabs.styles-0af0d84b.d.ts +752 -0
- package/Text-b4dbb448.d.ts +381 -0
- package/TextArea-c7fb6f33.d.ts +347 -0
- package/TextField-80821346.d.ts +381 -0
- package/Toaster-1976c1c0.d.ts +1561 -0
- package/Toggle-ac0f0a19.d.ts +312 -0
- package/ToggleGroup-0ae0974e.d.ts +498 -0
- package/Toolbar-bd80eb25.d.ts +1478 -0
- package/{Tooltip-8f61f203.d.ts → Tooltip-0d809b6c.d.ts} +0 -0
- package/TreeItem-7179ad4b.d.ts +274 -0
- package/VerifiedBadge-8a8364f4.d.ts +607 -0
- package/{VisuallyHidden-1c35e2d2.d.ts → VisuallyHidden-25ba8420.d.ts} +0 -0
- package/components/Accordion/index.d.ts +1 -1
- package/components/Alert/index.d.ts +1 -1
- package/components/AlertDialog/index.d.ts +1 -1
- package/components/Announce/index.d.ts +1 -1
- package/components/AppBar/index.d.ts +1 -1
- package/components/Avatar/index.d.ts +4 -5
- package/components/Badge/index.d.ts +1 -1
- package/components/Banner/index.d.ts +1 -1
- package/components/Blockquote/index.d.ts +1 -1
- package/components/Box/index.d.ts +1 -1
- package/components/BoxGrab/index.d.ts +1 -1
- package/components/BoxLink/index.d.ts +1 -1
- package/components/Button/index.d.ts +1 -1
- package/components/Callout/index.d.ts +1 -1
- package/components/Caption/index.d.ts +1 -1
- package/components/Card/index.d.ts +1 -1
- package/components/Carousel/index.d.ts +1 -1
- package/components/Checkbox/index.d.ts +3 -4
- package/components/Code/index.d.ts +1 -1
- package/components/CommandMenu/index.d.ts +1 -1
- package/components/Container/index.d.ts +1 -1
- package/components/ContextMenu/index.d.ts +1 -2
- package/components/ControlGroup/index.d.ts +1 -1
- package/components/Dialog/index.d.ts +1 -1
- package/components/DropdownMenu/index.d.ts +1 -2
- package/components/Flex/index.d.ts +1 -1
- package/components/FocusArea/index.d.ts +1 -1
- package/components/Grid/index.d.ts +1 -1
- package/components/Heading/index.d.ts +4 -5
- package/components/Icon/index.d.ts +4 -5
- package/components/IconButton/index.d.ts +1 -1
- package/components/Image/index.d.ts +1 -1
- package/components/Kbd/index.d.ts +1 -1
- package/components/Label/index.d.ts +1 -1
- package/components/Link/index.d.ts +1 -1
- package/components/LoadingDots/index.d.ts +1 -1
- package/components/Menu/index.d.ts +1 -2
- package/components/NavigationMenu/index.d.ts +4 -5
- package/components/Note/index.d.ts +1 -1
- package/components/Overlay/index.d.ts +1 -1
- package/components/PageHeading/index.d.ts +5 -6
- package/components/Panel/index.d.ts +1 -1
- package/components/Paragraph/index.d.ts +5 -6
- package/components/Popover/index.d.ts +2 -4
- package/components/ProgressBar/index.d.ts +1 -2
- package/components/Radio/index.d.ts +3 -4
- package/components/RadioCard/index.d.ts +1 -2
- package/components/RadioGrid/index.d.ts +1 -1
- package/components/ScrollArea/index.d.ts +1 -1
- package/components/Section/index.d.ts +1 -1
- package/components/Select/index.d.ts +1 -1
- package/components/Separator/index.d.ts +1 -1
- package/components/Sheet/index.d.ts +3 -4
- package/components/Skeleton/index.d.ts +1 -1
- package/components/Slider/index.d.ts +1 -2
- package/components/Spacer/index.d.ts +1 -1
- package/components/Status/index.d.ts +1 -1
- package/components/Sub/index.d.ts +1 -1
- package/components/Sup/index.d.ts +1 -1
- package/components/Switch/index.d.ts +3 -4
- package/components/TabLink/index.d.ts +1 -1
- package/components/Table/index.d.ts +1 -1
- package/components/Tabs/index.d.ts +3 -4
- package/components/Text/index.d.ts +1 -1
- package/components/TextArea/index.d.ts +1 -1
- package/components/TextField/index.d.ts +1 -1
- package/components/Toast/index.d.ts +1 -1
- package/components/Toggle/index.d.ts +1 -1
- package/components/ToggleGroup/index.d.ts +1 -1
- package/components/Toolbar/index.d.ts +1 -1
- package/components/Tooltip/index.d.ts +1 -1
- package/components/TreeItem/index.d.ts +1 -1
- package/components/VerifiedBadge/index.d.ts +1 -2
- package/components/VisuallyHidden/index.d.ts +1 -1
- package/components/index.d.ts +76 -77
- package/custom/Card/index.d.ts +1 -1
- package/custom/Emoji/index.d.ts +1 -1
- package/custom/Tooltip/index.d.ts +256 -612
- package/custom/index.d.ts +2 -2
- package/index.d.ts +78 -79
- package/lib/stitches.config.d.ts +1099 -2145
- package/package.json +23 -23
- package/Accordion-07ffdde8.d.ts +0 -861
- package/Alert-2d248f02.d.ts +0 -475
- package/AppBar-45d359b4.d.ts +0 -502
- package/Avatar-9592d3fc.d.ts +0 -573
- package/Badge-85f0a03c.d.ts +0 -535
- package/Banner-8bdcae08.d.ts +0 -481
- package/Box-0145a25b.d.ts +0 -429
- package/BoxGrab-f2016450.d.ts +0 -429
- package/BoxLink-01e0e0e1.d.ts +0 -429
- package/ButtonDemo-1e0e6216.d.ts +0 -2224
- package/Card-12bdd1c0.d.ts +0 -522
- package/Carousel-9d6beddc.d.ts +0 -434
- package/Checkbox-891cb9bb.d.ts +0 -554
- package/Code-918ddbd0.d.ts +0 -438
- package/CommandMenu-f09be95e.d.ts +0 -5540
- package/Container-c9493c19.d.ts +0 -465
- package/ContextMenu-59566c09.d.ts +0 -2560
- package/ControlGroup-598bde73.d.ts +0 -429
- package/DropdownMenu-fc93debb.d.ts +0 -4675
- package/Flex-28440ec4.d.ts +0 -525
- package/FocusArea-bd1379f7.d.ts +0 -434
- package/Grid-2a6c3e8b.d.ts +0 -589
- package/Icon.types-cf2e7181.d.ts +0 -555
- package/IconButton-61b70df5.d.ts +0 -560
- package/Image-7a9c2ac8.d.ts +0 -429
- package/Kbd-ee11e8ee.d.ts +0 -490
- package/Label-62941c9d.d.ts +0 -987
- package/LoadingDots-b37f3f06.d.ts +0 -480
- package/Menu-6ad1af6d.d.ts +0 -2558
- package/NavigationMenu-d55c47b7.d.ts +0 -6970
- package/Overlay.styles-150e1ce9.d.ts +0 -853
- package/Panel.styles-9141abd2.d.ts +0 -853
- package/ProgressBar-049c4e95.d.ts +0 -483
- package/Radio-a6652eb7.d.ts +0 -920
- package/RadioCard-0e8131d2.d.ts +0 -440
- package/RadioGrid-734a21f7.d.ts +0 -854
- package/Section-38d29a05.d.ts +0 -456
- package/Select-a9a6f30f.d.ts +0 -3820
- package/Separator-190f52e3.d.ts +0 -506
- package/Sheet-147a6bea.d.ts +0 -1346
- package/Skeleton-b7ef8d20.d.ts +0 -499
- package/Slider-0f202bd6.d.ts +0 -438
- package/Spotify-cac6fde2.d.ts +0 -6257
- package/Status-d976a923.d.ts +0 -465
- package/Sub-cd08549a.d.ts +0 -429
- package/Sup-51406ef7.d.ts +0 -429
- package/SwitchIcon-fff8c972.d.ts +0 -502
- package/TabLink-f14dc0e4.d.ts +0 -468
- package/Table-feea8caf.d.ts +0 -3467
- package/Tabs.styles-4ab28890.d.ts +0 -1286
- package/Text-2b3df7ba.d.ts +0 -559
- package/TextArea-0a415aa1.d.ts +0 -525
- package/TextField-a4255bc3.d.ts +0 -559
- package/Toaster-f1d90e57.d.ts +0 -2629
- package/Toggle-021765b2.d.ts +0 -490
- package/ToggleGroup-5d3e8fc9.d.ts +0 -854
- package/Toolbar-0f13fcab.d.ts +0 -2546
- package/TreeItem-7624f862.d.ts +0 -452
- package/VerifiedBadge-956bf1f9.d.ts +0 -963
package/SwitchIcon-fff8c972.d.ts
DELETED
@@ -1,502 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
3
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
4
|
-
import { CSS } from './lib/stitches.config.js';
|
5
|
-
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
6
|
-
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
7
|
-
import * as _stitches_react_types_config from '@stitches/react/types/config';
|
8
|
-
import { VariantProps } from '@stitches/react';
|
9
|
-
|
10
|
-
declare const StyledSwitch: _stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<SwitchPrimitive.SwitchProps & react.RefAttributes<HTMLButtonElement>>, _stitches_react_types_styled_component.StyledComponentProps<[{
|
11
|
-
all: string;
|
12
|
-
boxSizing: string;
|
13
|
-
userSelect: string;
|
14
|
-
'&::before': {
|
15
|
-
boxSizing: string;
|
16
|
-
};
|
17
|
-
'&::after': {
|
18
|
-
boxSizing: string;
|
19
|
-
};
|
20
|
-
alignItems: string;
|
21
|
-
display: string;
|
22
|
-
justifyContent: string;
|
23
|
-
lineHeight: string;
|
24
|
-
margin: string;
|
25
|
-
outline: string;
|
26
|
-
WebkitTapHighlightColor: string;
|
27
|
-
backgroundColor: string;
|
28
|
-
borderRadius: string;
|
29
|
-
cursor: string;
|
30
|
-
position: string;
|
31
|
-
'&:focus': {
|
32
|
-
boxShadow: string;
|
33
|
-
};
|
34
|
-
'&[data-state="checked"]': {
|
35
|
-
backgroundColor: string;
|
36
|
-
'&:focus': {
|
37
|
-
boxShadow: string;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
variants: {
|
41
|
-
size: {
|
42
|
-
'1': {
|
43
|
-
width: string;
|
44
|
-
height: string;
|
45
|
-
};
|
46
|
-
'2': {
|
47
|
-
[x: string]: string | {
|
48
|
-
width: number;
|
49
|
-
height: number;
|
50
|
-
transform: string;
|
51
|
-
'&[data-state="checked"]': {
|
52
|
-
transform: string;
|
53
|
-
};
|
54
|
-
};
|
55
|
-
width: string;
|
56
|
-
height: string;
|
57
|
-
};
|
58
|
-
};
|
59
|
-
};
|
60
|
-
defaultVariants: {
|
61
|
-
size: "1";
|
62
|
-
};
|
63
|
-
}]>, {
|
64
|
-
bp1: string;
|
65
|
-
bp2: string;
|
66
|
-
bp3: string;
|
67
|
-
bp4: string;
|
68
|
-
motion: string;
|
69
|
-
hover: string;
|
70
|
-
dark: string;
|
71
|
-
light: string;
|
72
|
-
}, _stitches_react_types_css_util.CSS<{
|
73
|
-
bp1: string;
|
74
|
-
bp2: string;
|
75
|
-
bp3: string;
|
76
|
-
bp4: string;
|
77
|
-
motion: string;
|
78
|
-
hover: string;
|
79
|
-
dark: string;
|
80
|
-
light: string;
|
81
|
-
}, {
|
82
|
-
borderWidths: unknown;
|
83
|
-
borderStyles: unknown;
|
84
|
-
colors: unknown;
|
85
|
-
fonts: {
|
86
|
-
'fallback-mono': string;
|
87
|
-
'fallback-sans': string;
|
88
|
-
'fallback-serif': string;
|
89
|
-
mono: string;
|
90
|
-
sans: string;
|
91
|
-
serif: string;
|
92
|
-
};
|
93
|
-
fontSizes: {
|
94
|
-
1: string;
|
95
|
-
2: string;
|
96
|
-
3: string;
|
97
|
-
4: string;
|
98
|
-
5: string;
|
99
|
-
6: string;
|
100
|
-
7: string;
|
101
|
-
8: string;
|
102
|
-
9: string;
|
103
|
-
};
|
104
|
-
fontWeights: {
|
105
|
-
1: string;
|
106
|
-
2: string;
|
107
|
-
3: string;
|
108
|
-
4: string;
|
109
|
-
5: string;
|
110
|
-
6: string;
|
111
|
-
7: string;
|
112
|
-
8: string;
|
113
|
-
9: string;
|
114
|
-
};
|
115
|
-
letterSpacings: unknown;
|
116
|
-
lineHeights: unknown;
|
117
|
-
radii: {
|
118
|
-
0: string;
|
119
|
-
1: string;
|
120
|
-
2: string;
|
121
|
-
3: string;
|
122
|
-
4: string;
|
123
|
-
pill: string;
|
124
|
-
round: string;
|
125
|
-
};
|
126
|
-
shadows: {
|
127
|
-
0: string;
|
128
|
-
1: string;
|
129
|
-
2: string;
|
130
|
-
3: string;
|
131
|
-
toast: string;
|
132
|
-
};
|
133
|
-
sizes: {
|
134
|
-
0: string;
|
135
|
-
1: string;
|
136
|
-
2: string;
|
137
|
-
3: string;
|
138
|
-
4: string;
|
139
|
-
5: string;
|
140
|
-
6: string;
|
141
|
-
7: string;
|
142
|
-
8: string;
|
143
|
-
9: string;
|
144
|
-
};
|
145
|
-
space: {
|
146
|
-
0: string;
|
147
|
-
1: string;
|
148
|
-
2: string;
|
149
|
-
3: string;
|
150
|
-
4: string;
|
151
|
-
5: string;
|
152
|
-
6: string;
|
153
|
-
7: string;
|
154
|
-
8: string;
|
155
|
-
9: string;
|
156
|
-
10: string;
|
157
|
-
11: string;
|
158
|
-
12: string;
|
159
|
-
13: string;
|
160
|
-
14: string;
|
161
|
-
15: string;
|
162
|
-
16: string;
|
163
|
-
};
|
164
|
-
transitions: unknown;
|
165
|
-
zIndices: {
|
166
|
-
0: string;
|
167
|
-
1: string;
|
168
|
-
2: string;
|
169
|
-
3: string;
|
170
|
-
4: string;
|
171
|
-
max: string;
|
172
|
-
toast: string;
|
173
|
-
};
|
174
|
-
foo: {
|
175
|
-
bar: string;
|
176
|
-
};
|
177
|
-
}, _stitches_react_types_config.DefaultThemeMap, {
|
178
|
-
p: (value: string | number | {
|
179
|
-
readonly [$$ScaleValue]: "padding";
|
180
|
-
}) => {
|
181
|
-
padding: string | number | {
|
182
|
-
readonly [$$ScaleValue]: "padding";
|
183
|
-
};
|
184
|
-
};
|
185
|
-
pt: (value: string | number | {
|
186
|
-
readonly [$$ScaleValue]: "paddingTop";
|
187
|
-
}) => {
|
188
|
-
paddingTop: string | number | {
|
189
|
-
readonly [$$ScaleValue]: "paddingTop";
|
190
|
-
};
|
191
|
-
};
|
192
|
-
pr: (value: string | number | {
|
193
|
-
readonly [$$ScaleValue]: "paddingRight";
|
194
|
-
}) => {
|
195
|
-
paddingRight: string | number | {
|
196
|
-
readonly [$$ScaleValue]: "paddingRight";
|
197
|
-
};
|
198
|
-
};
|
199
|
-
pb: (value: string | number | {
|
200
|
-
readonly [$$ScaleValue]: "paddingBottom";
|
201
|
-
}) => {
|
202
|
-
paddingBottom: string | number | {
|
203
|
-
readonly [$$ScaleValue]: "paddingBottom";
|
204
|
-
};
|
205
|
-
};
|
206
|
-
pl: (value: string | number | {
|
207
|
-
readonly [$$ScaleValue]: "paddingLeft";
|
208
|
-
}) => {
|
209
|
-
paddingLeft: string | number | {
|
210
|
-
readonly [$$ScaleValue]: "paddingLeft";
|
211
|
-
};
|
212
|
-
};
|
213
|
-
px: (value: string | number | {
|
214
|
-
readonly [$$ScaleValue]: "paddingLeft";
|
215
|
-
}) => {
|
216
|
-
paddingLeft: string | number | {
|
217
|
-
readonly [$$ScaleValue]: "paddingLeft";
|
218
|
-
};
|
219
|
-
paddingRight: string | number | {
|
220
|
-
readonly [$$ScaleValue]: "paddingLeft";
|
221
|
-
};
|
222
|
-
};
|
223
|
-
py: (value: string | number | {
|
224
|
-
readonly [$$ScaleValue]: "paddingTop";
|
225
|
-
}) => {
|
226
|
-
paddingTop: string | number | {
|
227
|
-
readonly [$$ScaleValue]: "paddingTop";
|
228
|
-
};
|
229
|
-
paddingBottom: string | number | {
|
230
|
-
readonly [$$ScaleValue]: "paddingTop";
|
231
|
-
};
|
232
|
-
};
|
233
|
-
m: (value: string | number | {
|
234
|
-
readonly [$$ScaleValue]: "margin";
|
235
|
-
}) => {
|
236
|
-
margin: string | number | {
|
237
|
-
readonly [$$ScaleValue]: "margin";
|
238
|
-
};
|
239
|
-
};
|
240
|
-
mt: (value: string | number | {
|
241
|
-
readonly [$$ScaleValue]: "marginTop";
|
242
|
-
}) => {
|
243
|
-
marginTop: string | number | {
|
244
|
-
readonly [$$ScaleValue]: "marginTop";
|
245
|
-
};
|
246
|
-
};
|
247
|
-
mr: (value: string | number | {
|
248
|
-
readonly [$$ScaleValue]: "marginRight";
|
249
|
-
}) => {
|
250
|
-
marginRight: string | number | {
|
251
|
-
readonly [$$ScaleValue]: "marginRight";
|
252
|
-
};
|
253
|
-
};
|
254
|
-
mb: (value: string | number | {
|
255
|
-
readonly [$$ScaleValue]: "marginBottom";
|
256
|
-
}) => {
|
257
|
-
marginBottom: string | number | {
|
258
|
-
readonly [$$ScaleValue]: "marginBottom";
|
259
|
-
};
|
260
|
-
};
|
261
|
-
ml: (value: string | number | {
|
262
|
-
readonly [$$ScaleValue]: "marginLeft";
|
263
|
-
}) => {
|
264
|
-
marginLeft: string | number | {
|
265
|
-
readonly [$$ScaleValue]: "marginLeft";
|
266
|
-
};
|
267
|
-
};
|
268
|
-
mx: (value: string | number | {
|
269
|
-
readonly [$$ScaleValue]: "marginLeft";
|
270
|
-
}) => {
|
271
|
-
marginLeft: string | number | {
|
272
|
-
readonly [$$ScaleValue]: "marginLeft";
|
273
|
-
};
|
274
|
-
marginRight: string | number | {
|
275
|
-
readonly [$$ScaleValue]: "marginLeft";
|
276
|
-
};
|
277
|
-
};
|
278
|
-
my: (value: string | number | {
|
279
|
-
readonly [$$ScaleValue]: "marginTop";
|
280
|
-
}) => {
|
281
|
-
marginTop: string | number | {
|
282
|
-
readonly [$$ScaleValue]: "marginTop";
|
283
|
-
};
|
284
|
-
marginBottom: string | number | {
|
285
|
-
readonly [$$ScaleValue]: "marginTop";
|
286
|
-
};
|
287
|
-
};
|
288
|
-
ta: (value: string | number | {
|
289
|
-
readonly [$$ScaleValue]: "textAlign";
|
290
|
-
}) => {
|
291
|
-
textAlign: string | number | {
|
292
|
-
readonly [$$ScaleValue]: "textAlign";
|
293
|
-
};
|
294
|
-
};
|
295
|
-
fd: (value: string | number | {
|
296
|
-
readonly [$$ScaleValue]: "flexDirection";
|
297
|
-
}) => {
|
298
|
-
flexDirection: string | number | {
|
299
|
-
readonly [$$ScaleValue]: "flexDirection";
|
300
|
-
};
|
301
|
-
};
|
302
|
-
fw: (value: string | number | {
|
303
|
-
readonly [$$ScaleValue]: "flexWrap";
|
304
|
-
}) => {
|
305
|
-
flexWrap: string | number | {
|
306
|
-
readonly [$$ScaleValue]: "flexWrap";
|
307
|
-
};
|
308
|
-
};
|
309
|
-
ai: (value: string | number | {
|
310
|
-
readonly [$$ScaleValue]: "alignItems";
|
311
|
-
}) => {
|
312
|
-
alignItems: string | number | {
|
313
|
-
readonly [$$ScaleValue]: "alignItems";
|
314
|
-
};
|
315
|
-
};
|
316
|
-
ac: (value: string | number | {
|
317
|
-
readonly [$$ScaleValue]: "alignContent";
|
318
|
-
}) => {
|
319
|
-
alignContent: string | number | {
|
320
|
-
readonly [$$ScaleValue]: "alignContent";
|
321
|
-
};
|
322
|
-
};
|
323
|
-
jc: (value: string | number | {
|
324
|
-
readonly [$$ScaleValue]: "justifyContent";
|
325
|
-
}) => {
|
326
|
-
justifyContent: string | number | {
|
327
|
-
readonly [$$ScaleValue]: "justifyContent";
|
328
|
-
};
|
329
|
-
};
|
330
|
-
as: (value: string | number | {
|
331
|
-
readonly [$$ScaleValue]: "alignSelf";
|
332
|
-
}) => {
|
333
|
-
alignSelf: string | number | {
|
334
|
-
readonly [$$ScaleValue]: "alignSelf";
|
335
|
-
};
|
336
|
-
};
|
337
|
-
fg: (value: string | number | {
|
338
|
-
readonly [$$ScaleValue]: "flexGrow";
|
339
|
-
}) => {
|
340
|
-
flexGrow: string | number | {
|
341
|
-
readonly [$$ScaleValue]: "flexGrow";
|
342
|
-
};
|
343
|
-
};
|
344
|
-
fs: (value: string | number | {
|
345
|
-
readonly [$$ScaleValue]: "flexShrink";
|
346
|
-
}) => {
|
347
|
-
flexShrink: string | number | {
|
348
|
-
readonly [$$ScaleValue]: "flexShrink";
|
349
|
-
};
|
350
|
-
};
|
351
|
-
fb: (value: string | number | {
|
352
|
-
readonly [$$ScaleValue]: "flexBasis";
|
353
|
-
}) => {
|
354
|
-
flexBasis: string | number | {
|
355
|
-
readonly [$$ScaleValue]: "flexBasis";
|
356
|
-
};
|
357
|
-
};
|
358
|
-
bc: (value: string | number | {
|
359
|
-
readonly [$$ScaleValue]: "backgroundColor";
|
360
|
-
}) => {
|
361
|
-
backgroundColor: string | number | {
|
362
|
-
readonly [$$ScaleValue]: "backgroundColor";
|
363
|
-
};
|
364
|
-
};
|
365
|
-
br: (value: string | number | {
|
366
|
-
readonly [$$ScaleValue]: "borderRadius";
|
367
|
-
}) => {
|
368
|
-
borderRadius: string | number | {
|
369
|
-
readonly [$$ScaleValue]: "borderRadius";
|
370
|
-
};
|
371
|
-
};
|
372
|
-
btrr: (value: string | number | {
|
373
|
-
readonly [$$ScaleValue]: "borderTopRightRadius";
|
374
|
-
}) => {
|
375
|
-
borderTopRightRadius: string | number | {
|
376
|
-
readonly [$$ScaleValue]: "borderTopRightRadius";
|
377
|
-
};
|
378
|
-
};
|
379
|
-
bbrr: (value: string | number | {
|
380
|
-
readonly [$$ScaleValue]: "borderBottomRightRadius";
|
381
|
-
}) => {
|
382
|
-
borderBottomRightRadius: string | number | {
|
383
|
-
readonly [$$ScaleValue]: "borderBottomRightRadius";
|
384
|
-
};
|
385
|
-
};
|
386
|
-
bblr: (value: string | number | {
|
387
|
-
readonly [$$ScaleValue]: "borderBottomLeftRadius";
|
388
|
-
}) => {
|
389
|
-
borderBottomLeftRadius: string | number | {
|
390
|
-
readonly [$$ScaleValue]: "borderBottomLeftRadius";
|
391
|
-
};
|
392
|
-
};
|
393
|
-
btlr: (value: string | number | {
|
394
|
-
readonly [$$ScaleValue]: "borderTopLeftRadius";
|
395
|
-
}) => {
|
396
|
-
borderTopLeftRadius: string | number | {
|
397
|
-
readonly [$$ScaleValue]: "borderTopLeftRadius";
|
398
|
-
};
|
399
|
-
};
|
400
|
-
bs: (value: string | number | {
|
401
|
-
readonly [$$ScaleValue]: "boxShadow";
|
402
|
-
}) => {
|
403
|
-
boxShadow: string | number | {
|
404
|
-
readonly [$$ScaleValue]: "boxShadow";
|
405
|
-
};
|
406
|
-
};
|
407
|
-
lh: (value: string | number | {
|
408
|
-
readonly [$$ScaleValue]: "lineHeight";
|
409
|
-
}) => {
|
410
|
-
lineHeight: string | number | {
|
411
|
-
readonly [$$ScaleValue]: "lineHeight";
|
412
|
-
};
|
413
|
-
};
|
414
|
-
ox: (value: string | number | {
|
415
|
-
readonly [$$ScaleValue]: "overflowX";
|
416
|
-
}) => {
|
417
|
-
overflowX: string | number | {
|
418
|
-
readonly [$$ScaleValue]: "overflowX";
|
419
|
-
};
|
420
|
-
};
|
421
|
-
oy: (value: string | number | {
|
422
|
-
readonly [$$ScaleValue]: "overflowY";
|
423
|
-
}) => {
|
424
|
-
overflowY: string | number | {
|
425
|
-
readonly [$$ScaleValue]: "overflowY";
|
426
|
-
};
|
427
|
-
};
|
428
|
-
pe: (value: string | number | {
|
429
|
-
readonly [$$ScaleValue]: "pointerEvents";
|
430
|
-
}) => {
|
431
|
-
pointerEvents: string | number | {
|
432
|
-
readonly [$$ScaleValue]: "pointerEvents";
|
433
|
-
};
|
434
|
-
};
|
435
|
-
us: (value: string | number | {
|
436
|
-
readonly [$$ScaleValue]: "userSelect";
|
437
|
-
}) => {
|
438
|
-
WebkitUserSelect: string | number | {
|
439
|
-
readonly [$$ScaleValue]: "userSelect";
|
440
|
-
};
|
441
|
-
userSelect: string | number | {
|
442
|
-
readonly [$$ScaleValue]: "userSelect";
|
443
|
-
};
|
444
|
-
};
|
445
|
-
userSelect: (value: string | number | {
|
446
|
-
readonly [$$ScaleValue]: "userSelect";
|
447
|
-
}) => {
|
448
|
-
WebkitUserSelect: string | number | {
|
449
|
-
readonly [$$ScaleValue]: "userSelect";
|
450
|
-
};
|
451
|
-
userSelect: string | number | {
|
452
|
-
readonly [$$ScaleValue]: "userSelect";
|
453
|
-
};
|
454
|
-
};
|
455
|
-
size: (value: string | number | {
|
456
|
-
readonly [$$ScaleValue]: "width";
|
457
|
-
}) => {
|
458
|
-
width: string | number | {
|
459
|
-
readonly [$$ScaleValue]: "width";
|
460
|
-
};
|
461
|
-
height: string | number | {
|
462
|
-
readonly [$$ScaleValue]: "width";
|
463
|
-
};
|
464
|
-
};
|
465
|
-
appearance: (value: string | number | {
|
466
|
-
readonly [$$ScaleValue]: "appearance";
|
467
|
-
}) => {
|
468
|
-
WebkitAppearance: string | number | {
|
469
|
-
readonly [$$ScaleValue]: "appearance";
|
470
|
-
};
|
471
|
-
appearance: string | number | {
|
472
|
-
readonly [$$ScaleValue]: "appearance";
|
473
|
-
};
|
474
|
-
};
|
475
|
-
backgroundClip: (value: string | number | {
|
476
|
-
readonly [$$ScaleValue]: "backgroundClip";
|
477
|
-
}) => {
|
478
|
-
WebkitBackgroundClip: string | number | {
|
479
|
-
readonly [$$ScaleValue]: "backgroundClip";
|
480
|
-
};
|
481
|
-
backgroundClip: string | number | {
|
482
|
-
readonly [$$ScaleValue]: "backgroundClip";
|
483
|
-
};
|
484
|
-
};
|
485
|
-
}>>;
|
486
|
-
|
487
|
-
declare type SwitchVariants = VariantProps<typeof StyledSwitch>;
|
488
|
-
declare type SwitchPrimitiveProps = ComponentProps<typeof SwitchPrimitive.Root>;
|
489
|
-
declare type SwitchProps = SwitchPrimitiveProps & SwitchVariants & {
|
490
|
-
css?: CSS;
|
491
|
-
};
|
492
|
-
|
493
|
-
declare const Switch: react.ForwardRefExoticComponent<Pick<SwitchProps, "size" | "color" | "translate" | "hidden" | "css" | "prefix" | "form" | "slot" | "style" | "title" | "className" | "id" | "lang" | "name" | "type" | "role" | "tabIndex" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "asChild" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "required" | "onCheckedChange"> & react.RefAttributes<HTMLButtonElement>>;
|
494
|
-
|
495
|
-
interface SwitchIconProps extends SwitchProps {
|
496
|
-
icon?: ReactNode;
|
497
|
-
iconOff?: ReactNode;
|
498
|
-
iconOn?: ReactNode;
|
499
|
-
}
|
500
|
-
declare const SwitchIcon: react.ForwardRefExoticComponent<Pick<SwitchIconProps, "size" | "color" | "translate" | "hidden" | "css" | "prefix" | "form" | "slot" | "style" | "title" | "icon" | "className" | "id" | "lang" | "name" | "type" | "role" | "tabIndex" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "value" | "asChild" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "required" | "onCheckedChange" | "iconOff" | "iconOn"> & react.RefAttributes<HTMLButtonElement>>;
|
501
|
-
|
502
|
-
export { Switch as S, SwitchIcon as a };
|