@tamagui/select 1.0.1-beta.158 → 1.0.1-beta.161
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/dist/cjs/Select.js +7 -17
- package/dist/cjs/Select.js.map +2 -2
- package/dist/cjs/SelectContent.js +2 -2
- package/dist/cjs/SelectContent.js.map +2 -2
- package/dist/cjs/SelectViewport.js +2 -2
- package/dist/cjs/SelectViewport.js.map +2 -2
- package/dist/cjs/useSelectBreakpointActive.js +39 -0
- package/dist/cjs/useSelectBreakpointActive.js.map +7 -0
- package/dist/esm/Select.js +4 -12
- package/dist/esm/Select.js.map +2 -2
- package/dist/esm/SelectContent.js +1 -1
- package/dist/esm/SelectContent.js.map +2 -2
- package/dist/esm/SelectViewport.js +1 -1
- package/dist/esm/SelectViewport.js.map +2 -2
- package/dist/esm/useSelectBreakpointActive.js +14 -0
- package/dist/esm/useSelectBreakpointActive.js.map +7 -0
- package/dist/jsx/Select.js +4 -13
- package/dist/jsx/Select.js.map +2 -2
- package/dist/jsx/SelectContent.js +1 -1
- package/dist/jsx/SelectContent.js.map +2 -2
- package/dist/jsx/SelectViewport.js +1 -1
- package/dist/jsx/SelectViewport.js.map +2 -2
- package/dist/jsx/useSelectBreakpointActive.js +14 -0
- package/dist/jsx/useSelectBreakpointActive.js.map +7 -0
- package/package.json +14 -14
- package/src/Select.tsx +4 -14
- package/src/SelectContent.tsx +1 -1
- package/src/SelectViewport.tsx +2 -2
- package/src/useSelectBreakpointActive.tsx +15 -0
- package/types/Select.d.ts +239 -241
- package/types/SelectViewport.d.ts +88 -88
- package/types/useSelectBreakpointActive.d.ts +4 -0
|
@@ -4,123 +4,123 @@ export declare const SelectViewportFrame: import("@tamagui/core").TamaguiCompone
|
|
|
4
4
|
readonly fullscreen?: boolean | undefined;
|
|
5
5
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
6
6
|
} & {
|
|
7
|
-
fontFamily?: unknown;
|
|
8
|
-
backgrounded?: boolean | undefined;
|
|
9
|
-
radiused?: boolean | undefined;
|
|
10
|
-
hoverTheme?: boolean | undefined;
|
|
11
|
-
pressTheme?: boolean | undefined;
|
|
12
|
-
focusTheme?: boolean | undefined;
|
|
13
|
-
circular?: boolean | undefined;
|
|
14
|
-
padded?: boolean | undefined;
|
|
15
|
-
elevate?: boolean | undefined;
|
|
16
|
-
bordered?: number | boolean | undefined;
|
|
17
|
-
transparent?: boolean | undefined;
|
|
18
|
-
chromeless?: boolean | "all" | undefined;
|
|
7
|
+
readonly fontFamily?: unknown;
|
|
8
|
+
readonly backgrounded?: boolean | undefined;
|
|
9
|
+
readonly radiused?: boolean | undefined;
|
|
10
|
+
readonly hoverTheme?: boolean | undefined;
|
|
11
|
+
readonly pressTheme?: boolean | undefined;
|
|
12
|
+
readonly focusTheme?: boolean | undefined;
|
|
13
|
+
readonly circular?: boolean | undefined;
|
|
14
|
+
readonly padded?: boolean | undefined;
|
|
15
|
+
readonly elevate?: boolean | undefined;
|
|
16
|
+
readonly bordered?: number | boolean | undefined;
|
|
17
|
+
readonly transparent?: boolean | undefined;
|
|
18
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
19
19
|
}, "size"> & {
|
|
20
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
20
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
21
21
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
22
22
|
readonly fullscreen?: boolean | undefined;
|
|
23
23
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
24
24
|
} & {
|
|
25
|
-
fontFamily?: unknown;
|
|
26
|
-
backgrounded?: boolean | undefined;
|
|
27
|
-
radiused?: boolean | undefined;
|
|
28
|
-
hoverTheme?: boolean | undefined;
|
|
29
|
-
pressTheme?: boolean | undefined;
|
|
30
|
-
focusTheme?: boolean | undefined;
|
|
31
|
-
circular?: boolean | undefined;
|
|
32
|
-
padded?: boolean | undefined;
|
|
33
|
-
elevate?: boolean | undefined;
|
|
34
|
-
bordered?: number | boolean | undefined;
|
|
35
|
-
transparent?: boolean | undefined;
|
|
36
|
-
chromeless?: boolean | "all" | undefined;
|
|
25
|
+
readonly fontFamily?: unknown;
|
|
26
|
+
readonly backgrounded?: boolean | undefined;
|
|
27
|
+
readonly radiused?: boolean | undefined;
|
|
28
|
+
readonly hoverTheme?: boolean | undefined;
|
|
29
|
+
readonly pressTheme?: boolean | undefined;
|
|
30
|
+
readonly focusTheme?: boolean | undefined;
|
|
31
|
+
readonly circular?: boolean | undefined;
|
|
32
|
+
readonly padded?: boolean | undefined;
|
|
33
|
+
readonly elevate?: boolean | undefined;
|
|
34
|
+
readonly bordered?: number | boolean | undefined;
|
|
35
|
+
readonly transparent?: boolean | undefined;
|
|
36
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
37
37
|
}, "size"> & {
|
|
38
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
38
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
39
39
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
40
40
|
readonly fullscreen?: boolean | undefined;
|
|
41
41
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
42
42
|
} & {
|
|
43
|
-
fontFamily?: unknown;
|
|
44
|
-
backgrounded?: boolean | undefined;
|
|
45
|
-
radiused?: boolean | undefined;
|
|
46
|
-
hoverTheme?: boolean | undefined;
|
|
47
|
-
pressTheme?: boolean | undefined;
|
|
48
|
-
focusTheme?: boolean | undefined;
|
|
49
|
-
circular?: boolean | undefined;
|
|
50
|
-
padded?: boolean | undefined;
|
|
51
|
-
elevate?: boolean | undefined;
|
|
52
|
-
bordered?: number | boolean | undefined;
|
|
53
|
-
transparent?: boolean | undefined;
|
|
54
|
-
chromeless?: boolean | "all" | undefined;
|
|
43
|
+
readonly fontFamily?: unknown;
|
|
44
|
+
readonly backgrounded?: boolean | undefined;
|
|
45
|
+
readonly radiused?: boolean | undefined;
|
|
46
|
+
readonly hoverTheme?: boolean | undefined;
|
|
47
|
+
readonly pressTheme?: boolean | undefined;
|
|
48
|
+
readonly focusTheme?: boolean | undefined;
|
|
49
|
+
readonly circular?: boolean | undefined;
|
|
50
|
+
readonly padded?: boolean | undefined;
|
|
51
|
+
readonly elevate?: boolean | undefined;
|
|
52
|
+
readonly bordered?: number | boolean | undefined;
|
|
53
|
+
readonly transparent?: boolean | undefined;
|
|
54
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
55
55
|
}, "size"> & {
|
|
56
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
56
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
57
57
|
}>>, TamaguiElement, import("@tamagui/core").StackPropsBase, {
|
|
58
58
|
readonly fullscreen?: boolean | undefined;
|
|
59
59
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
60
60
|
} & {
|
|
61
|
-
fontFamily?: unknown;
|
|
62
|
-
backgrounded?: boolean | undefined;
|
|
63
|
-
radiused?: boolean | undefined;
|
|
64
|
-
hoverTheme?: boolean | undefined;
|
|
65
|
-
pressTheme?: boolean | undefined;
|
|
66
|
-
focusTheme?: boolean | undefined;
|
|
67
|
-
circular?: boolean | undefined;
|
|
68
|
-
padded?: boolean | undefined;
|
|
69
|
-
elevate?: boolean | undefined;
|
|
70
|
-
bordered?: number | boolean | undefined;
|
|
71
|
-
transparent?: boolean | undefined;
|
|
72
|
-
chromeless?: boolean | "all" | undefined;
|
|
61
|
+
readonly fontFamily?: unknown;
|
|
62
|
+
readonly backgrounded?: boolean | undefined;
|
|
63
|
+
readonly radiused?: boolean | undefined;
|
|
64
|
+
readonly hoverTheme?: boolean | undefined;
|
|
65
|
+
readonly pressTheme?: boolean | undefined;
|
|
66
|
+
readonly focusTheme?: boolean | undefined;
|
|
67
|
+
readonly circular?: boolean | undefined;
|
|
68
|
+
readonly padded?: boolean | undefined;
|
|
69
|
+
readonly elevate?: boolean | undefined;
|
|
70
|
+
readonly bordered?: number | boolean | undefined;
|
|
71
|
+
readonly transparent?: boolean | undefined;
|
|
72
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
73
73
|
} & {
|
|
74
|
-
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
74
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
export declare const SelectViewport: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
77
77
|
readonly fullscreen?: boolean | undefined;
|
|
78
78
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
79
79
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
80
|
-
fontFamily?: unknown;
|
|
81
|
-
backgrounded?: boolean | undefined;
|
|
82
|
-
radiused?: boolean | undefined;
|
|
83
|
-
hoverTheme?: boolean | undefined;
|
|
84
|
-
pressTheme?: boolean | undefined;
|
|
85
|
-
focusTheme?: boolean | undefined;
|
|
86
|
-
circular?: boolean | undefined;
|
|
87
|
-
padded?: boolean | undefined;
|
|
88
|
-
elevate?: boolean | undefined;
|
|
89
|
-
bordered?: number | boolean | undefined;
|
|
90
|
-
transparent?: boolean | undefined;
|
|
91
|
-
chromeless?: boolean | "all" | undefined;
|
|
80
|
+
readonly fontFamily?: unknown;
|
|
81
|
+
readonly backgrounded?: boolean | undefined;
|
|
82
|
+
readonly radiused?: boolean | undefined;
|
|
83
|
+
readonly hoverTheme?: boolean | undefined;
|
|
84
|
+
readonly pressTheme?: boolean | undefined;
|
|
85
|
+
readonly focusTheme?: boolean | undefined;
|
|
86
|
+
readonly circular?: boolean | undefined;
|
|
87
|
+
readonly padded?: boolean | undefined;
|
|
88
|
+
readonly elevate?: boolean | undefined;
|
|
89
|
+
readonly bordered?: number | boolean | undefined;
|
|
90
|
+
readonly transparent?: boolean | undefined;
|
|
91
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
92
92
|
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
93
93
|
readonly fullscreen?: boolean | undefined;
|
|
94
94
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
95
95
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
96
|
-
fontFamily?: unknown;
|
|
97
|
-
backgrounded?: boolean | undefined;
|
|
98
|
-
radiused?: boolean | undefined;
|
|
99
|
-
hoverTheme?: boolean | undefined;
|
|
100
|
-
pressTheme?: boolean | undefined;
|
|
101
|
-
focusTheme?: boolean | undefined;
|
|
102
|
-
circular?: boolean | undefined;
|
|
103
|
-
padded?: boolean | undefined;
|
|
104
|
-
elevate?: boolean | undefined;
|
|
105
|
-
bordered?: number | boolean | undefined;
|
|
106
|
-
transparent?: boolean | undefined;
|
|
107
|
-
chromeless?: boolean | "all" | undefined;
|
|
96
|
+
readonly fontFamily?: unknown;
|
|
97
|
+
readonly backgrounded?: boolean | undefined;
|
|
98
|
+
readonly radiused?: boolean | undefined;
|
|
99
|
+
readonly hoverTheme?: boolean | undefined;
|
|
100
|
+
readonly pressTheme?: boolean | undefined;
|
|
101
|
+
readonly focusTheme?: boolean | undefined;
|
|
102
|
+
readonly circular?: boolean | undefined;
|
|
103
|
+
readonly padded?: boolean | undefined;
|
|
104
|
+
readonly elevate?: boolean | undefined;
|
|
105
|
+
readonly bordered?: number | boolean | undefined;
|
|
106
|
+
readonly transparent?: boolean | undefined;
|
|
107
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
108
108
|
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "display"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
109
109
|
readonly fullscreen?: boolean | undefined;
|
|
110
110
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
111
111
|
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
112
|
-
fontFamily?: unknown;
|
|
113
|
-
backgrounded?: boolean | undefined;
|
|
114
|
-
radiused?: boolean | undefined;
|
|
115
|
-
hoverTheme?: boolean | undefined;
|
|
116
|
-
pressTheme?: boolean | undefined;
|
|
117
|
-
focusTheme?: boolean | undefined;
|
|
118
|
-
circular?: boolean | undefined;
|
|
119
|
-
padded?: boolean | undefined;
|
|
120
|
-
elevate?: boolean | undefined;
|
|
121
|
-
bordered?: number | boolean | undefined;
|
|
122
|
-
transparent?: boolean | undefined;
|
|
123
|
-
chromeless?: boolean | "all" | undefined;
|
|
112
|
+
readonly fontFamily?: unknown;
|
|
113
|
+
readonly backgrounded?: boolean | undefined;
|
|
114
|
+
readonly radiused?: boolean | undefined;
|
|
115
|
+
readonly hoverTheme?: boolean | undefined;
|
|
116
|
+
readonly pressTheme?: boolean | undefined;
|
|
117
|
+
readonly focusTheme?: boolean | undefined;
|
|
118
|
+
readonly circular?: boolean | undefined;
|
|
119
|
+
readonly padded?: boolean | undefined;
|
|
120
|
+
readonly elevate?: boolean | undefined;
|
|
121
|
+
readonly bordered?: number | boolean | undefined;
|
|
122
|
+
readonly transparent?: boolean | undefined;
|
|
123
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
124
124
|
}>> & {
|
|
125
125
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
126
126
|
} & React.RefAttributes<TamaguiElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SelectContextValue } from './types';
|
|
2
|
+
export declare const useSelectBreakpointActive: (sheetBreakpoint: SelectContextValue['sheetBreakpoint']) => boolean;
|
|
3
|
+
export declare const useShowSelectSheet: (context: SelectContextValue) => boolean;
|
|
4
|
+
//# sourceMappingURL=useSelectBreakpointActive.d.ts.map
|