@tamagui/switch 1.30.28 → 1.31.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 +33 -0
- package/types/Switch.d.ts.map +1 -0
- package/types/index.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/switch",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.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.31.0",
|
|
36
|
+
"@tamagui/core": "1.31.0",
|
|
37
|
+
"@tamagui/create-context": "1.31.0",
|
|
38
|
+
"@tamagui/focusable": "1.31.0",
|
|
39
|
+
"@tamagui/get-token": "1.31.0",
|
|
40
|
+
"@tamagui/label": "1.31.0",
|
|
41
|
+
"@tamagui/stacks": "1.31.0",
|
|
42
|
+
"@tamagui/use-controllable-state": "1.31.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.31.0",
|
|
50
50
|
"react": "^18.2.0",
|
|
51
51
|
"react-native": "^0.71.7"
|
|
52
52
|
},
|
package/types/Switch.d.ts
CHANGED
|
@@ -84,6 +84,30 @@ export declare const SwitchThumbFrame: import("@tamagui/core").TamaguiComponent<
|
|
|
84
84
|
readonly size?: SizeTokens | undefined;
|
|
85
85
|
}, {
|
|
86
86
|
displayName: string | undefined;
|
|
87
|
+
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
88
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties & import("react-native").ViewStyle>;
|
|
89
|
+
} & 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 & {
|
|
90
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties & import("react-native").ViewStyle>;
|
|
91
|
+
};
|
|
92
|
+
__variantProps: {
|
|
93
|
+
readonly fullscreen?: boolean | undefined;
|
|
94
|
+
readonly elevation?: SizeTokens | undefined;
|
|
95
|
+
} & {
|
|
96
|
+
readonly fullscreen?: boolean | undefined;
|
|
97
|
+
readonly elevation?: SizeTokens | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
readonly backgrounded?: boolean | undefined;
|
|
100
|
+
readonly radiused?: boolean | undefined;
|
|
101
|
+
readonly hoverTheme?: boolean | undefined;
|
|
102
|
+
readonly pressTheme?: boolean | undefined;
|
|
103
|
+
readonly focusTheme?: boolean | undefined;
|
|
104
|
+
readonly circular?: boolean | undefined;
|
|
105
|
+
readonly padded?: boolean | undefined;
|
|
106
|
+
readonly elevate?: boolean | undefined;
|
|
107
|
+
readonly bordered?: number | boolean | undefined;
|
|
108
|
+
readonly transparent?: boolean | undefined;
|
|
109
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
110
|
+
};
|
|
87
111
|
}>;
|
|
88
112
|
export type SwitchThumbProps = GetProps<typeof SwitchThumbFrame>;
|
|
89
113
|
export declare const SwitchThumb: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
@@ -181,6 +205,15 @@ export declare const SwitchFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
181
205
|
readonly size?: SizeTokens | undefined;
|
|
182
206
|
}, {
|
|
183
207
|
displayName: string | undefined;
|
|
208
|
+
__baseProps: Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "style"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
209
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties & import("react-native").ViewStyle>;
|
|
210
|
+
} & 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 & {
|
|
211
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties & import("react-native").ViewStyle>;
|
|
212
|
+
};
|
|
213
|
+
__variantProps: {
|
|
214
|
+
readonly fullscreen?: boolean | undefined;
|
|
215
|
+
readonly elevation?: SizeTokens | undefined;
|
|
216
|
+
};
|
|
184
217
|
}>;
|
|
185
218
|
type SwitchButtonProps = GetProps<typeof SwitchFrame>;
|
|
186
219
|
export type SwitchProps = SwitchButtonProps & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,UAAU,EAKX,MAAM,eAAe,CAAA;AAOtB,OAAO,KAA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