@tamagui/switch 1.73.0 → 1.73.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/package.json +11 -11
- package/types/Switch.d.ts +321 -21
- package/types/Switch.d.ts.map +1 -1
- package/types/createSwitch.d.ts +26 -1
- package/types/createSwitch.d.ts.map +1 -1
- package/types/index.d.ts +78 -3
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/switch",
|
|
3
|
-
"version": "1.73.
|
|
3
|
+
"version": "1.73.1",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/compose-refs": "1.73.
|
|
35
|
-
"@tamagui/core": "1.73.
|
|
36
|
-
"@tamagui/create-context": "1.73.
|
|
37
|
-
"@tamagui/focusable": "1.73.
|
|
38
|
-
"@tamagui/get-token": "1.73.
|
|
39
|
-
"@tamagui/label": "1.73.
|
|
40
|
-
"@tamagui/stacks": "1.73.
|
|
41
|
-
"@tamagui/use-controllable-state": "1.73.
|
|
42
|
-
"@tamagui/use-previous": "1.73.
|
|
34
|
+
"@tamagui/compose-refs": "1.73.1",
|
|
35
|
+
"@tamagui/core": "1.73.1",
|
|
36
|
+
"@tamagui/create-context": "1.73.1",
|
|
37
|
+
"@tamagui/focusable": "1.73.1",
|
|
38
|
+
"@tamagui/get-token": "1.73.1",
|
|
39
|
+
"@tamagui/label": "1.73.1",
|
|
40
|
+
"@tamagui/stacks": "1.73.1",
|
|
41
|
+
"@tamagui/use-controllable-state": "1.73.1",
|
|
42
|
+
"@tamagui/use-previous": "1.73.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "*",
|
|
46
46
|
"react-native": "*"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@tamagui/build": "1.73.
|
|
49
|
+
"@tamagui/build": "1.73.1",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-native": "^0.72.1"
|
|
52
52
|
},
|
package/types/Switch.d.ts
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SizeTokens } from '@tamagui/core';
|
|
3
|
-
export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
3
|
+
export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
4
|
+
target?: string | undefined;
|
|
5
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
6
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
7
|
+
dangerouslySetInnerHTML?: {
|
|
8
|
+
__html: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
children?: any;
|
|
11
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
themeShallow?: boolean | undefined;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
tag?: string | undefined;
|
|
17
|
+
theme?: string | null | undefined;
|
|
18
|
+
group?: undefined;
|
|
19
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
20
|
+
componentName?: string | undefined;
|
|
21
|
+
tabIndex?: string | number | undefined;
|
|
22
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
23
|
+
disableOptimization?: boolean | undefined;
|
|
24
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
25
|
+
disableClassName?: boolean | undefined;
|
|
26
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
27
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
28
|
+
} & {
|
|
4
29
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
5
30
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
6
31
|
readonly fullscreen?: boolean | undefined;
|
|
7
|
-
readonly elevation?: SizeTokens | undefined;
|
|
32
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
8
33
|
} & {
|
|
9
34
|
readonly backgrounded?: boolean | undefined;
|
|
10
35
|
readonly radiused?: boolean | undefined;
|
|
@@ -21,11 +46,36 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
21
46
|
readonly unstyled?: boolean | undefined;
|
|
22
47
|
readonly checked?: boolean | undefined;
|
|
23
48
|
readonly size?: SizeTokens | undefined;
|
|
24
|
-
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
49
|
+
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
50
|
+
target?: string | undefined;
|
|
51
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
52
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
53
|
+
dangerouslySetInnerHTML?: {
|
|
54
|
+
__html: string;
|
|
55
|
+
} | undefined;
|
|
56
|
+
children?: any;
|
|
57
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
58
|
+
disabled?: boolean | undefined;
|
|
59
|
+
className?: string | undefined;
|
|
60
|
+
themeShallow?: boolean | undefined;
|
|
61
|
+
id?: string | undefined;
|
|
62
|
+
tag?: string | undefined;
|
|
63
|
+
theme?: string | null | undefined;
|
|
64
|
+
group?: undefined;
|
|
65
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
66
|
+
componentName?: string | undefined;
|
|
67
|
+
tabIndex?: string | number | undefined;
|
|
68
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
69
|
+
disableOptimization?: boolean | undefined;
|
|
70
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
71
|
+
disableClassName?: boolean | undefined;
|
|
72
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
73
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
74
|
+
} & {
|
|
25
75
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
26
76
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
27
77
|
readonly fullscreen?: boolean | undefined;
|
|
28
|
-
readonly elevation?: SizeTokens | undefined;
|
|
78
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
29
79
|
} & {
|
|
30
80
|
readonly backgrounded?: boolean | undefined;
|
|
31
81
|
readonly radiused?: boolean | undefined;
|
|
@@ -42,11 +92,36 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
42
92
|
readonly unstyled?: boolean | undefined;
|
|
43
93
|
readonly checked?: boolean | undefined;
|
|
44
94
|
readonly size?: SizeTokens | undefined;
|
|
45
|
-
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
95
|
+
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
96
|
+
target?: string | undefined;
|
|
97
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
98
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
99
|
+
dangerouslySetInnerHTML?: {
|
|
100
|
+
__html: string;
|
|
101
|
+
} | undefined;
|
|
102
|
+
children?: any;
|
|
103
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
104
|
+
disabled?: boolean | undefined;
|
|
105
|
+
className?: string | undefined;
|
|
106
|
+
themeShallow?: boolean | undefined;
|
|
107
|
+
id?: string | undefined;
|
|
108
|
+
tag?: string | undefined;
|
|
109
|
+
theme?: string | null | undefined;
|
|
110
|
+
group?: undefined;
|
|
111
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
112
|
+
componentName?: string | undefined;
|
|
113
|
+
tabIndex?: string | number | undefined;
|
|
114
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
115
|
+
disableOptimization?: boolean | undefined;
|
|
116
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
117
|
+
disableClassName?: boolean | undefined;
|
|
118
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
119
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
120
|
+
} & {
|
|
46
121
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
47
122
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
48
123
|
readonly fullscreen?: boolean | undefined;
|
|
49
|
-
readonly elevation?: SizeTokens | undefined;
|
|
124
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
50
125
|
} & {
|
|
51
126
|
readonly backgrounded?: boolean | undefined;
|
|
52
127
|
readonly radiused?: boolean | undefined;
|
|
@@ -63,11 +138,36 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
63
138
|
readonly unstyled?: boolean | undefined;
|
|
64
139
|
readonly checked?: boolean | undefined;
|
|
65
140
|
readonly size?: SizeTokens | undefined;
|
|
66
|
-
}>>, import("@tamagui/core").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
141
|
+
}>>, import("@tamagui/core").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
142
|
+
target?: string | undefined;
|
|
143
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
144
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
145
|
+
dangerouslySetInnerHTML?: {
|
|
146
|
+
__html: string;
|
|
147
|
+
} | undefined;
|
|
148
|
+
children?: any;
|
|
149
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
150
|
+
disabled?: boolean | undefined;
|
|
151
|
+
className?: string | undefined;
|
|
152
|
+
themeShallow?: boolean | undefined;
|
|
153
|
+
id?: string | undefined;
|
|
154
|
+
tag?: string | undefined;
|
|
155
|
+
theme?: string | null | undefined;
|
|
156
|
+
group?: undefined;
|
|
157
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
158
|
+
componentName?: string | undefined;
|
|
159
|
+
tabIndex?: string | number | undefined;
|
|
160
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
161
|
+
disableOptimization?: boolean | undefined;
|
|
162
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
163
|
+
disableClassName?: boolean | undefined;
|
|
164
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
165
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
166
|
+
} & {
|
|
67
167
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
68
168
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps, {
|
|
69
169
|
readonly fullscreen?: boolean | undefined;
|
|
70
|
-
readonly elevation?: SizeTokens | undefined;
|
|
170
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
71
171
|
} & {
|
|
72
172
|
readonly backgrounded?: boolean | undefined;
|
|
73
173
|
readonly radiused?: boolean | undefined;
|
|
@@ -86,17 +186,67 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
86
186
|
readonly size?: SizeTokens | undefined;
|
|
87
187
|
}, {
|
|
88
188
|
displayName: string | undefined;
|
|
89
|
-
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
189
|
+
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
190
|
+
target?: string | undefined;
|
|
191
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
192
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
193
|
+
dangerouslySetInnerHTML?: {
|
|
194
|
+
__html: string;
|
|
195
|
+
} | undefined;
|
|
196
|
+
children?: any;
|
|
197
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
198
|
+
disabled?: boolean | undefined;
|
|
199
|
+
className?: string | undefined;
|
|
200
|
+
themeShallow?: boolean | undefined;
|
|
201
|
+
id?: string | undefined;
|
|
202
|
+
tag?: string | undefined;
|
|
203
|
+
theme?: string | null | undefined;
|
|
204
|
+
group?: undefined;
|
|
205
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
206
|
+
componentName?: string | undefined;
|
|
207
|
+
tabIndex?: string | number | undefined;
|
|
208
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
209
|
+
disableOptimization?: boolean | undefined;
|
|
210
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
211
|
+
disableClassName?: boolean | undefined;
|
|
212
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
213
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
214
|
+
} & {
|
|
90
215
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
91
216
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & {
|
|
217
|
+
target?: string | undefined;
|
|
218
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
219
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
220
|
+
dangerouslySetInnerHTML?: {
|
|
221
|
+
__html: string;
|
|
222
|
+
} | undefined;
|
|
223
|
+
children?: any;
|
|
224
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
225
|
+
disabled?: boolean | undefined;
|
|
226
|
+
className?: string | undefined;
|
|
227
|
+
themeShallow?: boolean | undefined;
|
|
228
|
+
id?: string | undefined;
|
|
229
|
+
tag?: string | undefined;
|
|
230
|
+
theme?: string | null | undefined;
|
|
231
|
+
group?: undefined;
|
|
232
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
233
|
+
componentName?: string | undefined;
|
|
234
|
+
tabIndex?: string | number | undefined;
|
|
235
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
236
|
+
disableOptimization?: boolean | undefined;
|
|
237
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
238
|
+
disableClassName?: boolean | undefined;
|
|
239
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
240
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
241
|
+
} & {
|
|
92
242
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
93
243
|
};
|
|
94
244
|
__variantProps: {
|
|
95
245
|
readonly fullscreen?: boolean | undefined;
|
|
96
|
-
readonly elevation?: SizeTokens | undefined;
|
|
246
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
97
247
|
} & {
|
|
98
248
|
readonly fullscreen?: boolean | undefined;
|
|
99
|
-
readonly elevation?: SizeTokens | undefined;
|
|
249
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
100
250
|
} & {
|
|
101
251
|
readonly backgrounded?: boolean | undefined;
|
|
102
252
|
readonly radiused?: boolean | undefined;
|
|
@@ -111,41 +261,141 @@ export declare const SwitchThumb: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
111
261
|
readonly chromeless?: boolean | "all" | undefined;
|
|
112
262
|
};
|
|
113
263
|
}>;
|
|
114
|
-
export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
264
|
+
export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
265
|
+
target?: string | undefined;
|
|
266
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
267
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
268
|
+
dangerouslySetInnerHTML?: {
|
|
269
|
+
__html: string;
|
|
270
|
+
} | undefined;
|
|
271
|
+
children?: any;
|
|
272
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
273
|
+
disabled?: boolean | undefined;
|
|
274
|
+
className?: string | undefined;
|
|
275
|
+
themeShallow?: boolean | undefined;
|
|
276
|
+
id?: string | undefined;
|
|
277
|
+
tag?: string | undefined;
|
|
278
|
+
theme?: string | null | undefined;
|
|
279
|
+
group?: undefined;
|
|
280
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
281
|
+
componentName?: string | undefined;
|
|
282
|
+
tabIndex?: string | number | undefined;
|
|
283
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
284
|
+
disableOptimization?: boolean | undefined;
|
|
285
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
286
|
+
disableClassName?: boolean | undefined;
|
|
287
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
288
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
289
|
+
} & {
|
|
115
290
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
116
291
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
117
292
|
readonly fullscreen?: boolean | undefined;
|
|
118
|
-
readonly elevation?: SizeTokens | undefined;
|
|
293
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
119
294
|
}, "size" | "checked" | "frameWidth" | "unstyled"> & {
|
|
120
295
|
readonly unstyled?: boolean | undefined;
|
|
121
296
|
readonly checked?: boolean | undefined;
|
|
122
297
|
readonly frameWidth?: number | undefined;
|
|
123
298
|
readonly size?: SizeTokens | undefined;
|
|
124
|
-
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
299
|
+
} & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
300
|
+
target?: string | undefined;
|
|
301
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
302
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
303
|
+
dangerouslySetInnerHTML?: {
|
|
304
|
+
__html: string;
|
|
305
|
+
} | undefined;
|
|
306
|
+
children?: any;
|
|
307
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
308
|
+
disabled?: boolean | undefined;
|
|
309
|
+
className?: string | undefined;
|
|
310
|
+
themeShallow?: boolean | undefined;
|
|
311
|
+
id?: string | undefined;
|
|
312
|
+
tag?: string | undefined;
|
|
313
|
+
theme?: string | null | undefined;
|
|
314
|
+
group?: undefined;
|
|
315
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
316
|
+
componentName?: string | undefined;
|
|
317
|
+
tabIndex?: string | number | undefined;
|
|
318
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
319
|
+
disableOptimization?: boolean | undefined;
|
|
320
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
321
|
+
disableClassName?: boolean | undefined;
|
|
322
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
323
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
324
|
+
} & {
|
|
125
325
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
126
326
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
127
327
|
readonly fullscreen?: boolean | undefined;
|
|
128
|
-
readonly elevation?: SizeTokens | undefined;
|
|
328
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
129
329
|
}, "size" | "checked" | "frameWidth" | "unstyled"> & {
|
|
130
330
|
readonly unstyled?: boolean | undefined;
|
|
131
331
|
readonly checked?: boolean | undefined;
|
|
132
332
|
readonly frameWidth?: number | undefined;
|
|
133
333
|
readonly size?: SizeTokens | undefined;
|
|
134
|
-
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
334
|
+
}>> & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
335
|
+
target?: string | undefined;
|
|
336
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
337
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
338
|
+
dangerouslySetInnerHTML?: {
|
|
339
|
+
__html: string;
|
|
340
|
+
} | undefined;
|
|
341
|
+
children?: any;
|
|
342
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
343
|
+
disabled?: boolean | undefined;
|
|
344
|
+
className?: string | undefined;
|
|
345
|
+
themeShallow?: boolean | undefined;
|
|
346
|
+
id?: string | undefined;
|
|
347
|
+
tag?: string | undefined;
|
|
348
|
+
theme?: string | null | undefined;
|
|
349
|
+
group?: undefined;
|
|
350
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
351
|
+
componentName?: string | undefined;
|
|
352
|
+
tabIndex?: string | number | undefined;
|
|
353
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
354
|
+
disableOptimization?: boolean | undefined;
|
|
355
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
356
|
+
disableClassName?: boolean | undefined;
|
|
357
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
358
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
359
|
+
} & {
|
|
135
360
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
136
361
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & Omit<{
|
|
137
362
|
readonly fullscreen?: boolean | undefined;
|
|
138
|
-
readonly elevation?: SizeTokens | undefined;
|
|
363
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
139
364
|
}, "size" | "checked" | "frameWidth" | "unstyled"> & {
|
|
140
365
|
readonly unstyled?: boolean | undefined;
|
|
141
366
|
readonly checked?: boolean | undefined;
|
|
142
367
|
readonly frameWidth?: number | undefined;
|
|
143
368
|
readonly size?: SizeTokens | undefined;
|
|
144
|
-
}>>, import("@tamagui/core").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
369
|
+
}>>, import("@tamagui/core").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
370
|
+
target?: string | undefined;
|
|
371
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
372
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
373
|
+
dangerouslySetInnerHTML?: {
|
|
374
|
+
__html: string;
|
|
375
|
+
} | undefined;
|
|
376
|
+
children?: any;
|
|
377
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
378
|
+
disabled?: boolean | undefined;
|
|
379
|
+
className?: string | undefined;
|
|
380
|
+
themeShallow?: boolean | undefined;
|
|
381
|
+
id?: string | undefined;
|
|
382
|
+
tag?: string | undefined;
|
|
383
|
+
theme?: string | null | undefined;
|
|
384
|
+
group?: undefined;
|
|
385
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
386
|
+
componentName?: string | undefined;
|
|
387
|
+
tabIndex?: string | number | undefined;
|
|
388
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
389
|
+
disableOptimization?: boolean | undefined;
|
|
390
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
391
|
+
disableClassName?: boolean | undefined;
|
|
392
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
393
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
394
|
+
} & {
|
|
145
395
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
146
396
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps, {
|
|
147
397
|
readonly fullscreen?: boolean | undefined;
|
|
148
|
-
readonly elevation?: SizeTokens | undefined;
|
|
398
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
149
399
|
} & {
|
|
150
400
|
readonly unstyled?: boolean | undefined;
|
|
151
401
|
readonly checked?: boolean | undefined;
|
|
@@ -153,14 +403,64 @@ export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
153
403
|
readonly size?: SizeTokens | undefined;
|
|
154
404
|
}, {
|
|
155
405
|
displayName: string | undefined;
|
|
156
|
-
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
406
|
+
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
407
|
+
target?: string | undefined;
|
|
408
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
409
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
410
|
+
dangerouslySetInnerHTML?: {
|
|
411
|
+
__html: string;
|
|
412
|
+
} | undefined;
|
|
413
|
+
children?: any;
|
|
414
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
415
|
+
disabled?: boolean | undefined;
|
|
416
|
+
className?: string | undefined;
|
|
417
|
+
themeShallow?: boolean | undefined;
|
|
418
|
+
id?: string | undefined;
|
|
419
|
+
tag?: string | undefined;
|
|
420
|
+
theme?: string | null | undefined;
|
|
421
|
+
group?: undefined;
|
|
422
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
423
|
+
componentName?: string | undefined;
|
|
424
|
+
tabIndex?: string | number | undefined;
|
|
425
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
426
|
+
disableOptimization?: boolean | undefined;
|
|
427
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
428
|
+
disableClassName?: boolean | undefined;
|
|
429
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
430
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
431
|
+
} & {
|
|
157
432
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
158
433
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").RNViewProps & {
|
|
434
|
+
target?: string | undefined;
|
|
435
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
436
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
437
|
+
dangerouslySetInnerHTML?: {
|
|
438
|
+
__html: string;
|
|
439
|
+
} | undefined;
|
|
440
|
+
children?: any;
|
|
441
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
442
|
+
disabled?: boolean | undefined;
|
|
443
|
+
className?: string | undefined;
|
|
444
|
+
themeShallow?: boolean | undefined;
|
|
445
|
+
id?: string | undefined;
|
|
446
|
+
tag?: string | undefined;
|
|
447
|
+
theme?: string | null | undefined;
|
|
448
|
+
group?: undefined;
|
|
449
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
450
|
+
componentName?: string | undefined;
|
|
451
|
+
tabIndex?: string | number | undefined;
|
|
452
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
453
|
+
disableOptimization?: boolean | undefined;
|
|
454
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
455
|
+
disableClassName?: boolean | undefined;
|
|
456
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
457
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
458
|
+
} & {
|
|
159
459
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
160
460
|
};
|
|
161
461
|
__variantProps: {
|
|
162
462
|
readonly fullscreen?: boolean | undefined;
|
|
163
|
-
readonly elevation?: SizeTokens | undefined;
|
|
463
|
+
readonly elevation?: number | SizeTokens | undefined;
|
|
164
464
|
};
|
|
165
465
|
}>;
|
|
166
466
|
//# sourceMappingURL=Switch.d.ts.map
|
package/types/Switch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,eAAe,CAAA;AAMpE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,eAAe,CAAA;AAMpE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,CAAA;AAOF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtB,CAAA"}
|
package/types/createSwitch.d.ts
CHANGED
|
@@ -26,7 +26,32 @@ export declare function createSwitch<F extends SwitchComponent, T extends Switch
|
|
|
26
26
|
disableActiveTheme?: boolean;
|
|
27
27
|
Frame?: F;
|
|
28
28
|
Thumb?: T;
|
|
29
|
-
}): React.ForwardRefExoticComponent<Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").
|
|
29
|
+
}): React.ForwardRefExoticComponent<Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").WebOnlyPressEvents & {
|
|
30
|
+
target?: string | undefined;
|
|
31
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
32
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
33
|
+
dangerouslySetInnerHTML?: {
|
|
34
|
+
__html: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
children?: any;
|
|
37
|
+
debug?: import("@tamagui/core").DebugProp | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
className?: string | undefined;
|
|
40
|
+
themeShallow?: boolean | undefined;
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
tag?: string | undefined;
|
|
43
|
+
theme?: string | null | undefined;
|
|
44
|
+
group?: undefined;
|
|
45
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
46
|
+
componentName?: string | undefined;
|
|
47
|
+
tabIndex?: string | number | undefined;
|
|
48
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
49
|
+
disableOptimization?: boolean | undefined;
|
|
50
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
51
|
+
disableClassName?: boolean | undefined;
|
|
52
|
+
onFocus?: ((event: React.FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
53
|
+
onScroll?: ((event: React.UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
54
|
+
} & {
|
|
30
55
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
31
56
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>> & import("@tamagui/core").MediaProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core").PseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>>>> & SwitchSharedProps & SwitchExtraProps, "children"> & {
|
|
32
57
|
children?: React.ReactNode | ((checked: boolean) => React.ReactNode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSwitch.d.ts","sourceRoot":"","sources":["../src/createSwitch.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,UAAU,EACV,UAAU,EACV,iCAAiC,EACjC,cAAc,EAMf,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAEjC,MAAM,cAAc,CAAA;AAKrB,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,KAAK,eAAe,GAAG,UAAU,GAAG,iBAAiB,CAAA;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC,CAAA;IAClD,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,eAAe,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,GAAG,gBAAgB,EAAE,UAAU,CAAC,GAAG;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACrE,CAAA;AAED,KAAK,eAAe,GAAG,iCAAiC,CACtD,WAAW,EACX,iBAAiB,GAAG,gBAAgB,CACrC,CAAA;AAED,KAAK,oBAAoB,GAAG,iCAAiC,CAC3D,eAAe,EACf,iBAAiB,CAClB,CAAA;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,oBAAoB,EAAE,EACtF,kBAAkB,EAClB,KAAiC,EACjC,KAA0B,GAC3B,EAAE;IACD,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,KAAK,CAAC,EAAE,CAAC,CAAA;CACV
|
|
1
|
+
{"version":3,"file":"createSwitch.d.ts","sourceRoot":"","sources":["../src/createSwitch.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,UAAU,EACV,UAAU,EACV,iCAAiC,EACjC,cAAc,EAMf,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAEjC,MAAM,cAAc,CAAA;AAKrB,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,KAAK,eAAe,GAAG,UAAU,GAAG,iBAAiB,CAAA;AAErD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC,CAAA;IAClD,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,eAAe,CAAC,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,GAAG,gBAAgB,EAAE,UAAU,CAAC,GAAG;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;CACrE,CAAA;AAED,KAAK,eAAe,GAAG,iCAAiC,CACtD,WAAW,EACX,iBAAiB,GAAG,gBAAgB,CACrC,CAAA;AAED,KAAK,oBAAoB,GAAG,iCAAiC,CAC3D,eAAe,EACf,iBAAiB,CAClB,CAAA;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EAAE,CAAC,SAAS,oBAAoB,EAAE,EACtF,kBAAkB,EAClB,KAAiC,EACjC,KAA0B,GAC3B,EAAE;IACD,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,KAAK,CAAC,EAAE,CAAC,CAAA;CACV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6QA"}
|
package/types/index.d.ts
CHANGED
|
@@ -2,7 +2,32 @@
|
|
|
2
2
|
export * from './Switch';
|
|
3
3
|
export * from './SwitchContext';
|
|
4
4
|
export * from './createSwitch';
|
|
5
|
-
export declare const Switch: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").
|
|
5
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").WebOnlyPressEvents & {
|
|
6
|
+
target?: string | undefined;
|
|
7
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
8
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
9
|
+
dangerouslySetInnerHTML?: {
|
|
10
|
+
__html: string;
|
|
11
|
+
} | undefined;
|
|
12
|
+
children?: any;
|
|
13
|
+
debug?: import("@tamagui/web").DebugProp | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
themeShallow?: boolean | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
tag?: string | undefined;
|
|
19
|
+
theme?: string | null | undefined;
|
|
20
|
+
group?: undefined;
|
|
21
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
22
|
+
componentName?: string | undefined;
|
|
23
|
+
tabIndex?: string | number | undefined;
|
|
24
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
25
|
+
disableOptimization?: boolean | undefined;
|
|
26
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
27
|
+
disableClassName?: boolean | undefined;
|
|
28
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
29
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
30
|
+
} & {
|
|
6
31
|
style?: import("@tamagui/web").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
7
32
|
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>> & import("@tamagui/web").MediaProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>>> & {
|
|
8
33
|
size?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
@@ -10,14 +35,64 @@ export declare const Switch: import("react").ForwardRefExoticComponent<Omit<Omit
|
|
|
10
35
|
} & import("./createSwitch").SwitchExtraProps, "children"> & {
|
|
11
36
|
children?: import("react").ReactNode | ((checked: boolean) => import("react").ReactNode);
|
|
12
37
|
} & import("react").RefAttributes<import("@tamagui/web").TamaguiElement>> & {
|
|
13
|
-
Thumb: import("@tamagui/web").ReactComponentWithRef<Object & Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").
|
|
38
|
+
Thumb: import("@tamagui/web").ReactComponentWithRef<Object & Omit<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").WebOnlyPressEvents & {
|
|
39
|
+
target?: string | undefined;
|
|
40
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
41
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
42
|
+
dangerouslySetInnerHTML?: {
|
|
43
|
+
__html: string;
|
|
44
|
+
} | undefined;
|
|
45
|
+
children?: any;
|
|
46
|
+
debug?: import("@tamagui/web").DebugProp | undefined;
|
|
47
|
+
disabled?: boolean | undefined;
|
|
48
|
+
className?: string | undefined;
|
|
49
|
+
themeShallow?: boolean | undefined;
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
tag?: string | undefined;
|
|
52
|
+
theme?: string | null | undefined;
|
|
53
|
+
group?: undefined;
|
|
54
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
55
|
+
componentName?: string | undefined;
|
|
56
|
+
tabIndex?: string | number | undefined;
|
|
57
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
58
|
+
disableOptimization?: boolean | undefined;
|
|
59
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
60
|
+
disableClassName?: boolean | undefined;
|
|
61
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
62
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
63
|
+
} & {
|
|
14
64
|
style?: import("@tamagui/web").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
15
65
|
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>> & import("@tamagui/web").MediaProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>>> & {
|
|
16
66
|
size?: number | import("@tamagui/web").SizeTokens | undefined;
|
|
17
67
|
unstyled?: boolean | undefined;
|
|
18
68
|
}, keyof Object>, any> & {
|
|
19
69
|
staticConfig: import("@tamagui/web").StaticConfig;
|
|
20
|
-
styleable: import("@tamagui/web").Styleable<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").
|
|
70
|
+
styleable: import("@tamagui/web").Styleable<Omit<import("react-native").ViewProps, "display" | "children" | "style" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").WebOnlyPressEvents & {
|
|
71
|
+
target?: string | undefined;
|
|
72
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
73
|
+
asChild?: boolean | "web" | "except-style" | "except-style-web" | undefined;
|
|
74
|
+
dangerouslySetInnerHTML?: {
|
|
75
|
+
__html: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
children?: any;
|
|
78
|
+
debug?: import("@tamagui/web").DebugProp | undefined;
|
|
79
|
+
disabled?: boolean | undefined;
|
|
80
|
+
className?: string | undefined;
|
|
81
|
+
themeShallow?: boolean | undefined;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
tag?: string | undefined;
|
|
84
|
+
theme?: string | null | undefined;
|
|
85
|
+
group?: undefined;
|
|
86
|
+
untilMeasured?: "hide" | "show" | undefined;
|
|
87
|
+
componentName?: string | undefined;
|
|
88
|
+
tabIndex?: string | number | undefined;
|
|
89
|
+
role?: import("@tamagui/web/types/interfaces/Role").Role | undefined;
|
|
90
|
+
disableOptimization?: boolean | undefined;
|
|
91
|
+
forceStyle?: "hover" | "press" | "focus" | undefined;
|
|
92
|
+
disableClassName?: boolean | undefined;
|
|
93
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
94
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
95
|
+
} & {
|
|
21
96
|
style?: import("@tamagui/web").StyleProp<import("react-native").ViewStyle | import("react").CSSProperties | (import("react").CSSProperties & import("react-native").ViewStyle)>;
|
|
22
97
|
} & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>> & import("@tamagui/web").MediaProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/web").PseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>>>> & {
|
|
23
98
|
size?: number | import("@tamagui/web").SizeTokens | undefined;
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAE9B,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAE9B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAA"}
|