tamagui 1.5.19 → 1.5.21

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.
@@ -1,5 +1,9 @@
1
1
  import { GetProps, TamaguiElement } from '@tamagui/core';
2
+ import { Scope } from '@tamagui/create-context';
2
3
  import React from 'react';
4
+ type ScopedProps<P> = P & {
5
+ __scopeGroup?: Scope;
6
+ };
3
7
  export declare const GroupFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
4
8
  readonly fullscreen?: boolean | undefined;
5
9
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -15,7 +19,8 @@ export declare const GroupFrame: import("@tamagui/core").TamaguiComponent<Omit<i
15
19
  readonly bordered?: number | boolean | undefined;
16
20
  readonly transparent?: boolean | undefined;
17
21
  readonly chromeless?: boolean | "all" | undefined;
18
- }, "size"> & {
22
+ }, "size" | "unstyled"> & {
23
+ readonly unstyled?: boolean | undefined;
19
24
  readonly size?: any;
20
25
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
21
26
  readonly fullscreen?: boolean | undefined;
@@ -32,7 +37,8 @@ export declare const GroupFrame: import("@tamagui/core").TamaguiComponent<Omit<i
32
37
  readonly bordered?: number | boolean | undefined;
33
38
  readonly transparent?: boolean | undefined;
34
39
  readonly chromeless?: boolean | "all" | undefined;
35
- }, "size"> & {
40
+ }, "size" | "unstyled"> & {
41
+ readonly unstyled?: boolean | undefined;
36
42
  readonly size?: any;
37
43
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
38
44
  readonly fullscreen?: boolean | undefined;
@@ -49,7 +55,8 @@ export declare const GroupFrame: import("@tamagui/core").TamaguiComponent<Omit<i
49
55
  readonly bordered?: number | boolean | undefined;
50
56
  readonly transparent?: boolean | undefined;
51
57
  readonly chromeless?: boolean | "all" | undefined;
52
- }, "size"> & {
58
+ }, "size" | "unstyled"> & {
59
+ readonly unstyled?: boolean | undefined;
53
60
  readonly size?: any;
54
61
  }>>, TamaguiElement, Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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, {
55
62
  readonly fullscreen?: boolean | undefined;
@@ -67,17 +74,96 @@ export declare const GroupFrame: import("@tamagui/core").TamaguiComponent<Omit<i
67
74
  readonly transparent?: boolean | undefined;
68
75
  readonly chromeless?: boolean | "all" | undefined;
69
76
  } & {
77
+ readonly unstyled?: boolean | undefined;
70
78
  readonly size?: any;
71
79
  }>;
72
80
  export type GroupProps = GetProps<typeof GroupFrame> & {
81
+ axis?: 'horizontal' | 'vertical';
73
82
  scrollable?: boolean;
74
83
  /**
75
84
  * @default false
76
85
  */
77
86
  showScrollIndicator?: boolean;
78
87
  disabled?: boolean;
79
- vertical?: boolean;
80
88
  disablePassBorderRadius?: boolean;
89
+ /**
90
+ * forces the group to use the Group.Item API
91
+ */
92
+ forceUseItem?: boolean;
93
+ };
94
+ export declare const Group: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
95
+ readonly fullscreen?: boolean | undefined;
96
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
97
+ } & {
98
+ readonly backgrounded?: boolean | undefined;
99
+ readonly radiused?: boolean | undefined;
100
+ readonly hoverTheme?: boolean | undefined;
101
+ readonly pressTheme?: boolean | undefined;
102
+ readonly focusTheme?: boolean | undefined;
103
+ readonly circular?: boolean | undefined;
104
+ readonly padded?: boolean | undefined;
105
+ readonly elevate?: boolean | undefined;
106
+ readonly bordered?: number | boolean | undefined;
107
+ readonly transparent?: boolean | undefined;
108
+ readonly chromeless?: boolean | "all" | undefined;
109
+ }, "size" | "unstyled"> & {
110
+ readonly unstyled?: boolean | undefined;
111
+ readonly size?: any;
112
+ } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
113
+ readonly fullscreen?: boolean | undefined;
114
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
115
+ } & {
116
+ readonly backgrounded?: boolean | undefined;
117
+ readonly radiused?: boolean | undefined;
118
+ readonly hoverTheme?: boolean | undefined;
119
+ readonly pressTheme?: boolean | undefined;
120
+ readonly focusTheme?: boolean | undefined;
121
+ readonly circular?: boolean | undefined;
122
+ readonly padded?: boolean | undefined;
123
+ readonly elevate?: boolean | undefined;
124
+ readonly bordered?: number | boolean | undefined;
125
+ readonly transparent?: boolean | undefined;
126
+ readonly chromeless?: boolean | "all" | undefined;
127
+ }, "size" | "unstyled"> & {
128
+ readonly unstyled?: boolean | undefined;
129
+ readonly size?: any;
130
+ }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
131
+ readonly fullscreen?: boolean | undefined;
132
+ readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
133
+ } & {
134
+ readonly backgrounded?: boolean | undefined;
135
+ readonly radiused?: boolean | undefined;
136
+ readonly hoverTheme?: boolean | undefined;
137
+ readonly pressTheme?: boolean | undefined;
138
+ readonly focusTheme?: boolean | undefined;
139
+ readonly circular?: boolean | undefined;
140
+ readonly padded?: boolean | undefined;
141
+ readonly elevate?: boolean | undefined;
142
+ readonly bordered?: number | boolean | undefined;
143
+ readonly transparent?: boolean | undefined;
144
+ readonly chromeless?: boolean | "all" | undefined;
145
+ }, "size" | "unstyled"> & {
146
+ readonly unstyled?: boolean | undefined;
147
+ readonly size?: any;
148
+ }>> & {
149
+ axis?: "vertical" | "horizontal" | undefined;
150
+ scrollable?: boolean | undefined;
151
+ /**
152
+ * @default false
153
+ */
154
+ showScrollIndicator?: boolean | undefined;
155
+ disabled?: boolean | undefined;
156
+ disablePassBorderRadius?: boolean | undefined;
157
+ /**
158
+ * forces the group to use the Group.Item API
159
+ */
160
+ forceUseItem?: boolean | undefined;
161
+ } & {
162
+ __scopeGroup?: Scope;
163
+ } & React.RefAttributes<TamaguiElement>> & {
164
+ Item: (props: ScopedProps<{
165
+ children: React.ReactNode;
166
+ }>) => any;
81
167
  };
82
168
  export declare const YGroup: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
83
169
  readonly fullscreen?: boolean | undefined;
@@ -94,7 +180,8 @@ export declare const YGroup: React.ForwardRefExoticComponent<Omit<import("react-
94
180
  readonly bordered?: number | boolean | undefined;
95
181
  readonly transparent?: boolean | undefined;
96
182
  readonly chromeless?: boolean | "all" | undefined;
97
- }, "size"> & {
183
+ }, "size" | "unstyled"> & {
184
+ readonly unstyled?: boolean | undefined;
98
185
  readonly size?: any;
99
186
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
100
187
  readonly fullscreen?: boolean | undefined;
@@ -111,7 +198,8 @@ export declare const YGroup: React.ForwardRefExoticComponent<Omit<import("react-
111
198
  readonly bordered?: number | boolean | undefined;
112
199
  readonly transparent?: boolean | undefined;
113
200
  readonly chromeless?: boolean | "all" | undefined;
114
- }, "size"> & {
201
+ }, "size" | "unstyled"> & {
202
+ readonly unstyled?: boolean | undefined;
115
203
  readonly size?: any;
116
204
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
117
205
  readonly fullscreen?: boolean | undefined;
@@ -128,18 +216,29 @@ export declare const YGroup: React.ForwardRefExoticComponent<Omit<import("react-
128
216
  readonly bordered?: number | boolean | undefined;
129
217
  readonly transparent?: boolean | undefined;
130
218
  readonly chromeless?: boolean | "all" | undefined;
131
- }, "size"> & {
219
+ }, "size" | "unstyled"> & {
220
+ readonly unstyled?: boolean | undefined;
132
221
  readonly size?: any;
133
222
  }>> & {
223
+ axis?: "vertical" | "horizontal" | undefined;
134
224
  scrollable?: boolean | undefined;
135
225
  /**
136
226
  * @default false
137
227
  */
138
228
  showScrollIndicator?: boolean | undefined;
139
229
  disabled?: boolean | undefined;
140
- vertical?: boolean | undefined;
141
230
  disablePassBorderRadius?: boolean | undefined;
142
- } & React.RefAttributes<TamaguiElement>>;
231
+ /**
232
+ * forces the group to use the Group.Item API
233
+ */
234
+ forceUseItem?: boolean | undefined;
235
+ } & {
236
+ __scopeGroup?: Scope;
237
+ } & React.RefAttributes<TamaguiElement>> & {
238
+ Item: (props: ScopedProps<{
239
+ children: React.ReactNode;
240
+ }>) => any;
241
+ };
143
242
  export declare const XGroup: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
144
243
  readonly fullscreen?: boolean | undefined;
145
244
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
@@ -155,7 +254,8 @@ export declare const XGroup: React.ForwardRefExoticComponent<Omit<import("react-
155
254
  readonly bordered?: number | boolean | undefined;
156
255
  readonly transparent?: boolean | undefined;
157
256
  readonly chromeless?: boolean | "all" | undefined;
158
- }, "size"> & {
257
+ }, "size" | "unstyled"> & {
258
+ readonly unstyled?: boolean | undefined;
159
259
  readonly size?: any;
160
260
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
161
261
  readonly fullscreen?: boolean | undefined;
@@ -172,7 +272,8 @@ export declare const XGroup: React.ForwardRefExoticComponent<Omit<import("react-
172
272
  readonly bordered?: number | boolean | undefined;
173
273
  readonly transparent?: boolean | undefined;
174
274
  readonly chromeless?: boolean | "all" | undefined;
175
- }, "size"> & {
275
+ }, "size" | "unstyled"> & {
276
+ readonly unstyled?: boolean | undefined;
176
277
  readonly size?: any;
177
278
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers | "display"> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & 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<{
178
279
  readonly fullscreen?: boolean | undefined;
@@ -189,16 +290,28 @@ export declare const XGroup: React.ForwardRefExoticComponent<Omit<import("react-
189
290
  readonly bordered?: number | boolean | undefined;
190
291
  readonly transparent?: boolean | undefined;
191
292
  readonly chromeless?: boolean | "all" | undefined;
192
- }, "size"> & {
293
+ }, "size" | "unstyled"> & {
294
+ readonly unstyled?: boolean | undefined;
193
295
  readonly size?: any;
194
296
  }>> & {
297
+ axis?: "vertical" | "horizontal" | undefined;
195
298
  scrollable?: boolean | undefined;
196
299
  /**
197
300
  * @default false
198
301
  */
199
302
  showScrollIndicator?: boolean | undefined;
200
303
  disabled?: boolean | undefined;
201
- vertical?: boolean | undefined;
202
304
  disablePassBorderRadius?: boolean | undefined;
203
- } & React.RefAttributes<TamaguiElement>>;
305
+ /**
306
+ * forces the group to use the Group.Item API
307
+ */
308
+ forceUseItem?: boolean | undefined;
309
+ } & {
310
+ __scopeGroup?: Scope;
311
+ } & React.RefAttributes<TamaguiElement>> & {
312
+ Item: (props: ScopedProps<{
313
+ children: React.ReactNode;
314
+ }>) => any;
315
+ };
316
+ export {};
204
317
  //# sourceMappingURL=Group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../src/views/Group.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAUf,MAAM,eAAe,CAAA;AA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