@tamagui/switch 1.43.17 → 1.44.0
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 +10 -10
- package/types/Switch.d.ts +5 -81
- package/types/Switch.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/switch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -32,21 +32,21 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-use-previous": "^1.0.0",
|
|
35
|
-
"@tamagui/compose-refs": "1.
|
|
36
|
-
"@tamagui/core": "1.
|
|
37
|
-
"@tamagui/create-context": "1.
|
|
38
|
-
"@tamagui/focusable": "1.
|
|
39
|
-
"@tamagui/get-token": "1.
|
|
40
|
-
"@tamagui/label": "1.
|
|
41
|
-
"@tamagui/stacks": "1.
|
|
42
|
-
"@tamagui/use-controllable-state": "1.
|
|
35
|
+
"@tamagui/compose-refs": "1.44.0",
|
|
36
|
+
"@tamagui/core": "1.44.0",
|
|
37
|
+
"@tamagui/create-context": "1.44.0",
|
|
38
|
+
"@tamagui/focusable": "1.44.0",
|
|
39
|
+
"@tamagui/get-token": "1.44.0",
|
|
40
|
+
"@tamagui/label": "1.44.0",
|
|
41
|
+
"@tamagui/stacks": "1.44.0",
|
|
42
|
+
"@tamagui/use-controllable-state": "1.44.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "*",
|
|
46
46
|
"react-native": "*"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@tamagui/build": "1.
|
|
49
|
+
"@tamagui/build": "1.44.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-native": "^0.72.1"
|
|
52
52
|
},
|
package/types/Switch.d.ts
CHANGED
|
@@ -62,27 +62,7 @@ export declare const SwitchThumbFrame: import("@tamagui/core").TamaguiComponent<
|
|
|
62
62
|
}, "size" | "unstyled"> & {
|
|
63
63
|
readonly unstyled?: boolean | undefined;
|
|
64
64
|
readonly size?: SizeTokens | undefined;
|
|
65
|
-
}
|
|
66
|
-
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
67
|
-
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
68
|
-
readonly fullscreen?: boolean | undefined;
|
|
69
|
-
readonly elevation?: SizeTokens | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
readonly backgrounded?: boolean | undefined;
|
|
72
|
-
readonly radiused?: boolean | undefined;
|
|
73
|
-
readonly hoverTheme?: boolean | undefined;
|
|
74
|
-
readonly pressTheme?: boolean | undefined;
|
|
75
|
-
readonly focusTheme?: boolean | undefined;
|
|
76
|
-
readonly circular?: boolean | undefined;
|
|
77
|
-
readonly padded?: boolean | undefined;
|
|
78
|
-
readonly elevate?: boolean | undefined;
|
|
79
|
-
readonly bordered?: number | boolean | undefined;
|
|
80
|
-
readonly transparent?: boolean | undefined;
|
|
81
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
82
|
-
}, "size" | "unstyled"> & {
|
|
83
|
-
readonly unstyled?: boolean | undefined;
|
|
84
|
-
readonly size?: SizeTokens | undefined;
|
|
85
|
-
}>>>>, 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").TamaguiComponentPropsBase & {
|
|
65
|
+
}>>, 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").TamaguiComponentPropsBase & {
|
|
86
66
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
87
67
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
88
68
|
readonly fullscreen?: boolean | undefined;
|
|
@@ -190,27 +170,7 @@ export declare const SwitchThumb: React.ForwardRefExoticComponent<Omit<import("r
|
|
|
190
170
|
}, "size" | "unstyled"> & {
|
|
191
171
|
readonly unstyled?: boolean | undefined;
|
|
192
172
|
readonly size?: SizeTokens | undefined;
|
|
193
|
-
} &
|
|
194
|
-
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
195
|
-
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
196
|
-
readonly fullscreen?: boolean | undefined;
|
|
197
|
-
readonly elevation?: SizeTokens | undefined;
|
|
198
|
-
} & {
|
|
199
|
-
readonly backgrounded?: boolean | undefined;
|
|
200
|
-
readonly radiused?: boolean | undefined;
|
|
201
|
-
readonly hoverTheme?: boolean | undefined;
|
|
202
|
-
readonly pressTheme?: boolean | undefined;
|
|
203
|
-
readonly focusTheme?: boolean | undefined;
|
|
204
|
-
readonly circular?: boolean | undefined;
|
|
205
|
-
readonly padded?: boolean | undefined;
|
|
206
|
-
readonly elevate?: boolean | undefined;
|
|
207
|
-
readonly bordered?: number | boolean | undefined;
|
|
208
|
-
readonly transparent?: boolean | undefined;
|
|
209
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
210
|
-
}, "size" | "unstyled"> & {
|
|
211
|
-
readonly unstyled?: boolean | undefined;
|
|
212
|
-
readonly size?: SizeTokens | undefined;
|
|
213
|
-
}>>>> & React.RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
173
|
+
}>> & React.RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
214
174
|
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").TamaguiComponentPropsBase & {
|
|
215
175
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
216
176
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
@@ -235,15 +195,7 @@ export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
235
195
|
}, "size" | "unstyled"> & {
|
|
236
196
|
readonly unstyled?: boolean | undefined;
|
|
237
197
|
readonly size?: SizeTokens | undefined;
|
|
238
|
-
}
|
|
239
|
-
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
240
|
-
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
241
|
-
readonly fullscreen?: boolean | undefined;
|
|
242
|
-
readonly elevation?: SizeTokens | undefined;
|
|
243
|
-
}, "size" | "unstyled"> & {
|
|
244
|
-
readonly unstyled?: boolean | undefined;
|
|
245
|
-
readonly size?: SizeTokens | undefined;
|
|
246
|
-
}>>>>, 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").TamaguiComponentPropsBase & {
|
|
198
|
+
}>>, 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").TamaguiComponentPropsBase & {
|
|
247
199
|
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
248
200
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
249
201
|
readonly fullscreen?: boolean | undefined;
|
|
@@ -299,15 +251,7 @@ export declare const Switch: React.ForwardRefExoticComponent<Omit<import("react-
|
|
|
299
251
|
}, "size" | "unstyled"> & {
|
|
300
252
|
readonly unstyled?: boolean | undefined;
|
|
301
253
|
readonly size?: SizeTokens | undefined;
|
|
302
|
-
} &
|
|
303
|
-
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
304
|
-
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
305
|
-
readonly fullscreen?: boolean | undefined;
|
|
306
|
-
readonly elevation?: SizeTokens | undefined;
|
|
307
|
-
}, "size" | "unstyled"> & {
|
|
308
|
-
readonly unstyled?: boolean | undefined;
|
|
309
|
-
readonly size?: SizeTokens | undefined;
|
|
310
|
-
}>>>> & {
|
|
254
|
+
}>> & {
|
|
311
255
|
labeledBy?: string | undefined;
|
|
312
256
|
name?: string | undefined;
|
|
313
257
|
value?: string | undefined;
|
|
@@ -378,27 +322,7 @@ export declare const Switch: React.ForwardRefExoticComponent<Omit<import("react-
|
|
|
378
322
|
}, "size" | "unstyled"> & {
|
|
379
323
|
readonly unstyled?: boolean | undefined;
|
|
380
324
|
readonly size?: SizeTokens | undefined;
|
|
381
|
-
} &
|
|
382
|
-
style?: import("@tamagui/core").StyleProp<import("react-native").ViewStyle | React.CSSProperties | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
383
|
-
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
384
|
-
readonly fullscreen?: boolean | undefined;
|
|
385
|
-
readonly elevation?: SizeTokens | undefined;
|
|
386
|
-
} & {
|
|
387
|
-
readonly backgrounded?: boolean | undefined;
|
|
388
|
-
readonly radiused?: boolean | undefined;
|
|
389
|
-
readonly hoverTheme?: boolean | undefined;
|
|
390
|
-
readonly pressTheme?: boolean | undefined;
|
|
391
|
-
readonly focusTheme?: boolean | undefined;
|
|
392
|
-
readonly circular?: boolean | undefined;
|
|
393
|
-
readonly padded?: boolean | undefined;
|
|
394
|
-
readonly elevate?: boolean | undefined;
|
|
395
|
-
readonly bordered?: number | boolean | undefined;
|
|
396
|
-
readonly transparent?: boolean | undefined;
|
|
397
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
398
|
-
}, "size" | "unstyled"> & {
|
|
399
|
-
readonly unstyled?: boolean | undefined;
|
|
400
|
-
readonly size?: SizeTokens | undefined;
|
|
401
|
-
}>>>> & React.RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
325
|
+
}>> & React.RefAttributes<import("@tamagui/core").TamaguiElement>>;
|
|
402
326
|
};
|
|
403
327
|
export {};
|
|
404
328
|
//# 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":"AAKA,OAAO,EACL,QAAQ,EAER,WAAW,EACX,UAAU,EAKX,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAEhC,IAAI,EACL,MAAM,cAAc,CAAA;AAWrB,eAAO,MAAM,iBAAiB,+CAAmB,CAAA;AAejD,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EAER,WAAW,EACX,UAAU,EAKX,MAAM,eAAe,CAAA;AAOtB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAEL,WAAW,IAAI,iBAAiB,EAEhC,IAAI,EACL,MAAM,cAAc,CAAA;AAWrB,eAAO,MAAM,iBAAiB,+CAAmB,CAAA;AAejD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B3B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEhE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEA8BvB,CAAA;AAMD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCtB,CAAA;AAEF,KAAK,iBAAiB,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAErD,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG;IAC5C,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;AA6HD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA9HS,OAAO,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgIxC,CAAA"}
|