@tamagui/select 1.39.9 → 1.40.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/dist/cjs/Select.js +10 -193
- package/dist/cjs/Select.js.map +2 -2
- package/dist/cjs/SelectContent.js +8 -2
- package/dist/cjs/SelectContent.js.map +1 -1
- package/dist/cjs/SelectImpl.js +2 -2
- package/dist/cjs/SelectImpl.js.map +1 -1
- package/dist/cjs/SelectItem.js +181 -0
- package/dist/cjs/SelectItem.js.map +6 -0
- package/dist/cjs/SelectTrigger.js +98 -0
- package/dist/cjs/SelectTrigger.js.map +6 -0
- package/dist/cjs/SelectViewport.js +23 -31
- package/dist/cjs/SelectViewport.js.map +2 -2
- package/dist/cjs/useSelectItemContext.js +180 -0
- package/dist/cjs/useSelectItemContext.js.map +6 -0
- package/dist/esm/Select.js +5 -187
- package/dist/esm/Select.js.map +2 -2
- package/dist/esm/SelectContent.js +8 -2
- package/dist/esm/SelectContent.js.map +1 -1
- package/dist/esm/SelectImpl.js +2 -2
- package/dist/esm/SelectImpl.js.map +1 -1
- package/dist/esm/SelectItem.js +149 -0
- package/dist/esm/SelectItem.js.map +6 -0
- package/dist/esm/SelectTrigger.js +64 -0
- package/dist/esm/SelectTrigger.js.map +6 -0
- package/dist/esm/SelectViewport.js +23 -21
- package/dist/esm/SelectViewport.js.map +2 -2
- package/dist/esm/useSelectItemContext.js +146 -0
- package/dist/esm/useSelectItemContext.js.map +6 -0
- package/dist/jsx/Select.js +5 -186
- package/dist/jsx/Select.js.map +2 -2
- package/dist/jsx/Select.mjs +5 -186
- package/dist/jsx/Select.mjs.map +2 -2
- package/dist/jsx/SelectContent.js +4 -2
- package/dist/jsx/SelectContent.js.map +1 -1
- package/dist/jsx/SelectContent.mjs +4 -2
- package/dist/jsx/SelectContent.mjs.map +1 -1
- package/dist/jsx/SelectImpl.js +2 -2
- package/dist/jsx/SelectImpl.js.map +1 -1
- package/dist/jsx/SelectImpl.mjs +2 -2
- package/dist/jsx/SelectImpl.mjs.map +1 -1
- package/dist/jsx/SelectItem.js +140 -0
- package/dist/jsx/SelectItem.js.map +6 -0
- package/dist/jsx/SelectItem.mjs +140 -0
- package/dist/jsx/SelectItem.mjs.map +6 -0
- package/dist/jsx/SelectTrigger.js +58 -0
- package/dist/jsx/SelectTrigger.js.map +6 -0
- package/dist/jsx/SelectTrigger.mjs +58 -0
- package/dist/jsx/SelectTrigger.mjs.map +6 -0
- package/dist/jsx/SelectViewport.js +25 -20
- package/dist/jsx/SelectViewport.js.map +2 -2
- package/dist/jsx/SelectViewport.mjs +25 -20
- package/dist/jsx/SelectViewport.mjs.map +2 -2
- package/dist/jsx/useSelectItemContext.js +137 -0
- package/dist/jsx/useSelectItemContext.js.map +6 -0
- package/dist/jsx/useSelectItemContext.mjs +137 -0
- package/dist/jsx/useSelectItemContext.mjs.map +6 -0
- package/package.json +19 -18
- package/src/Select.tsx +6 -245
- package/src/SelectContent.tsx +10 -10
- package/src/SelectImpl.tsx +2 -2
- package/src/SelectItem.tsx +188 -0
- package/src/SelectTrigger.tsx +74 -0
- package/src/SelectViewport.tsx +40 -32
- package/src/types.tsx +1 -0
- package/types/Select.d.ts +169 -100
- package/types/Select.d.ts.map +1 -1
- package/types/SelectContent.d.ts.map +1 -1
- package/types/SelectItem.d.ts +27 -0
- package/types/SelectItem.d.ts.map +1 -0
- package/types/SelectTrigger.d.ts +87 -0
- package/types/SelectTrigger.d.ts.map +1 -0
- package/types/SelectViewport.d.ts +168 -5
- package/types/SelectViewport.d.ts.map +1 -1
- package/types/types.d.ts +1 -0
- package/types/types.d.ts.map +1 -1
- package/types/useSelectItemContext.d.ts +145 -0
- package/types/useSelectItemContext.d.ts.map +1 -0
package/src/SelectViewport.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FloatingFocusManager } from '@floating-ui/react'
|
|
2
|
+
import { AnimatePresence } from '@tamagui/animate-presence'
|
|
2
3
|
import {
|
|
3
4
|
TamaguiElement,
|
|
4
5
|
composeRefs,
|
|
@@ -21,13 +22,19 @@ import { useSelectBreakpointActive } from './useSelectBreakpointActive'
|
|
|
21
22
|
|
|
22
23
|
export const SelectViewportFrame = styled(ThemeableStack, {
|
|
23
24
|
name: VIEWPORT_NAME,
|
|
24
|
-
backgroundColor: '$background',
|
|
25
|
-
elevate: true,
|
|
26
|
-
bordered: true,
|
|
27
|
-
userSelect: 'none',
|
|
28
|
-
outlineWidth: 0,
|
|
29
25
|
|
|
30
26
|
variants: {
|
|
27
|
+
unstyled: {
|
|
28
|
+
false: {
|
|
29
|
+
size: '$2',
|
|
30
|
+
backgroundColor: '$background',
|
|
31
|
+
elevate: true,
|
|
32
|
+
bordered: true,
|
|
33
|
+
userSelect: 'none',
|
|
34
|
+
outlineWidth: 0,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
|
|
31
38
|
size: {
|
|
32
39
|
'...size': (val, { tokens }) => {
|
|
33
40
|
return {
|
|
@@ -38,12 +45,12 @@ export const SelectViewportFrame = styled(ThemeableStack, {
|
|
|
38
45
|
} as const,
|
|
39
46
|
|
|
40
47
|
defaultVariants: {
|
|
41
|
-
|
|
48
|
+
unstyled: false,
|
|
42
49
|
},
|
|
43
50
|
})
|
|
44
51
|
|
|
45
|
-
export const SelectViewport =
|
|
46
|
-
(props: ScopedProps<SelectViewportProps>, forwardedRef)
|
|
52
|
+
export const SelectViewport = SelectViewportFrame.styleable<SelectViewportProps>(
|
|
53
|
+
function SelectViewport(props: ScopedProps<SelectViewportProps>, forwardedRef) {
|
|
47
54
|
const { __scopeSelect, children, disableScroll, ...viewportProps } = props
|
|
48
55
|
const context = useSelectContext(VIEWPORT_NAME, __scopeSelect)
|
|
49
56
|
const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint)
|
|
@@ -58,6 +65,7 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
|
|
|
58
65
|
forwardedRef,
|
|
59
66
|
context.floatingContext?.refs.setFloating
|
|
60
67
|
)
|
|
68
|
+
|
|
61
69
|
if (context.shouldRenderWebNative) {
|
|
62
70
|
return <>{children}</>
|
|
63
71
|
}
|
|
@@ -70,14 +78,6 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
|
|
|
70
78
|
)
|
|
71
79
|
}
|
|
72
80
|
|
|
73
|
-
if (!context.floatingContext) {
|
|
74
|
-
return null
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if (!context.open) {
|
|
78
|
-
return <>{children}</>
|
|
79
|
-
}
|
|
80
|
-
|
|
81
81
|
const {
|
|
82
82
|
style: { scrollbarWidth, listStyleType, overflow, ...restStyle },
|
|
83
83
|
...floatingProps
|
|
@@ -85,34 +85,42 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
|
|
|
85
85
|
|
|
86
86
|
return (
|
|
87
87
|
<>
|
|
88
|
-
{!disableScroll && (
|
|
88
|
+
{!disableScroll && !props.unstyled && (
|
|
89
89
|
<style
|
|
90
90
|
dangerouslySetInnerHTML={{
|
|
91
91
|
__html: selectViewportCSS,
|
|
92
92
|
}}
|
|
93
93
|
/>
|
|
94
94
|
)}
|
|
95
|
-
<FloatingFocusManager context={context.floatingContext}>
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
<FloatingFocusManager context={context.floatingContext!}>
|
|
96
|
+
<AnimatePresence>
|
|
97
|
+
{context.open ? (
|
|
98
|
+
<SelectViewportFrame
|
|
99
|
+
key="select-viewport"
|
|
100
|
+
size={context.size}
|
|
101
|
+
// @ts-ignore
|
|
102
|
+
role="presentation"
|
|
103
|
+
{...viewportProps}
|
|
104
|
+
ref={composedRefs}
|
|
105
|
+
{...floatingProps}
|
|
106
|
+
{...restStyle}
|
|
107
|
+
{...(!props.unstyled && {
|
|
108
|
+
overflow: disableScroll ? undefined : overflow ?? 'scroll',
|
|
109
|
+
})}
|
|
110
|
+
>
|
|
111
|
+
{children}
|
|
112
|
+
</SelectViewportFrame>
|
|
113
|
+
) : null}
|
|
114
|
+
</AnimatePresence>
|
|
108
115
|
</FloatingFocusManager>
|
|
116
|
+
|
|
117
|
+
{/* keep in dom to allow for portal to the trigger... very hacky! we should fix */}
|
|
118
|
+
{!context.open && <div style={{ display: 'none' }}>{props.children}</div>}
|
|
109
119
|
</>
|
|
110
120
|
)
|
|
111
121
|
}
|
|
112
122
|
)
|
|
113
123
|
|
|
114
|
-
SelectViewport.displayName = VIEWPORT_NAME
|
|
115
|
-
|
|
116
124
|
const selectViewportCSS = `
|
|
117
125
|
.is_SelectViewport {
|
|
118
126
|
scrollbar-width: none;
|
package/src/types.tsx
CHANGED
package/types/Select.d.ts
CHANGED
|
@@ -2,89 +2,6 @@ import { FontSizeTokens, GetProps, TamaguiElement, TamaguiTextElement } from '@t
|
|
|
2
2
|
import { ListItemProps } from '@tamagui/list-item';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ScopedProps, SelectProps } from './types';
|
|
5
|
-
export type SelectTriggerProps = ListItemProps;
|
|
6
|
-
export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import("@tamagui/text").TextParentStyles, "TextComponent" | "noTextWrap"> & Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
7
|
-
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
8
|
-
} & 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<{
|
|
9
|
-
readonly fullscreen?: boolean | undefined;
|
|
10
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
11
|
-
} & {
|
|
12
|
-
readonly backgrounded?: boolean | undefined;
|
|
13
|
-
readonly radiused?: boolean | undefined;
|
|
14
|
-
readonly hoverTheme?: boolean | undefined;
|
|
15
|
-
readonly pressTheme?: boolean | undefined;
|
|
16
|
-
readonly focusTheme?: boolean | undefined;
|
|
17
|
-
readonly circular?: boolean | undefined;
|
|
18
|
-
readonly padded?: boolean | undefined;
|
|
19
|
-
readonly elevate?: boolean | undefined;
|
|
20
|
-
readonly bordered?: number | boolean | undefined;
|
|
21
|
-
readonly transparent?: boolean | undefined;
|
|
22
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
23
|
-
}, "disabled" | "size" | "active" | "unstyled"> & {
|
|
24
|
-
readonly unstyled?: boolean | undefined;
|
|
25
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
26
|
-
readonly active?: boolean | undefined;
|
|
27
|
-
readonly disabled?: boolean | undefined;
|
|
28
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
29
|
-
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
30
|
-
} & 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<{
|
|
31
|
-
readonly fullscreen?: boolean | undefined;
|
|
32
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
33
|
-
} & {
|
|
34
|
-
readonly backgrounded?: boolean | undefined;
|
|
35
|
-
readonly radiused?: boolean | undefined;
|
|
36
|
-
readonly hoverTheme?: boolean | undefined;
|
|
37
|
-
readonly pressTheme?: boolean | undefined;
|
|
38
|
-
readonly focusTheme?: boolean | undefined;
|
|
39
|
-
readonly circular?: boolean | undefined;
|
|
40
|
-
readonly padded?: boolean | undefined;
|
|
41
|
-
readonly elevate?: boolean | undefined;
|
|
42
|
-
readonly bordered?: number | boolean | undefined;
|
|
43
|
-
readonly transparent?: boolean | undefined;
|
|
44
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
45
|
-
}, "disabled" | "size" | "active" | "unstyled"> & {
|
|
46
|
-
readonly unstyled?: boolean | undefined;
|
|
47
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
48
|
-
readonly active?: boolean | undefined;
|
|
49
|
-
readonly disabled?: boolean | undefined;
|
|
50
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
51
|
-
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
52
|
-
} & 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<{
|
|
53
|
-
readonly fullscreen?: boolean | undefined;
|
|
54
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
readonly backgrounded?: boolean | undefined;
|
|
57
|
-
readonly radiused?: boolean | undefined;
|
|
58
|
-
readonly hoverTheme?: boolean | undefined;
|
|
59
|
-
readonly pressTheme?: boolean | undefined;
|
|
60
|
-
readonly focusTheme?: boolean | undefined;
|
|
61
|
-
readonly circular?: boolean | undefined;
|
|
62
|
-
readonly padded?: boolean | undefined;
|
|
63
|
-
readonly elevate?: boolean | undefined;
|
|
64
|
-
readonly bordered?: number | boolean | undefined;
|
|
65
|
-
readonly transparent?: boolean | undefined;
|
|
66
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
67
|
-
}, "disabled" | "size" | "active" | "unstyled"> & {
|
|
68
|
-
readonly unstyled?: boolean | undefined;
|
|
69
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
70
|
-
readonly active?: boolean | undefined;
|
|
71
|
-
readonly disabled?: boolean | undefined;
|
|
72
|
-
}>> & import("@tamagui/core").ThemeableProps & {
|
|
73
|
-
icon?: (JSX.Element | React.FunctionComponent<{
|
|
74
|
-
color?: string | undefined;
|
|
75
|
-
size?: number | undefined;
|
|
76
|
-
}> | null) | undefined;
|
|
77
|
-
iconAfter?: (JSX.Element | React.FunctionComponent<{
|
|
78
|
-
color?: string | undefined;
|
|
79
|
-
size?: number | undefined;
|
|
80
|
-
}> | null) | undefined;
|
|
81
|
-
scaleIcon?: number | undefined;
|
|
82
|
-
spaceFlex?: number | boolean | undefined;
|
|
83
|
-
scaleSpace?: number | undefined;
|
|
84
|
-
title?: React.ReactNode;
|
|
85
|
-
subTitle?: React.ReactNode;
|
|
86
|
-
noTextWrap?: boolean | "all" | undefined;
|
|
87
|
-
} & React.RefAttributes<TamaguiElement>>;
|
|
88
5
|
declare const SelectValueFrame: import("@tamagui/core").TamaguiComponent<(Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
89
6
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").TextStyle | (React.CSSProperties & import("react-native").TextStyle)>;
|
|
90
7
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size" | "unstyled"> & {
|
|
@@ -200,13 +117,6 @@ export declare const SelectIcon: import("@tamagui/core").TamaguiComponent<(Omit<
|
|
|
200
117
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
201
118
|
};
|
|
202
119
|
}>;
|
|
203
|
-
export interface SelectItemProps extends ListItemProps {
|
|
204
|
-
value: string;
|
|
205
|
-
index: number;
|
|
206
|
-
disabled?: boolean;
|
|
207
|
-
textValue?: string;
|
|
208
|
-
}
|
|
209
|
-
export declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<TamaguiElement>>;
|
|
210
120
|
export declare const SelectItemTextFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").TextProps, "style" | "children" | ("onLayout" | keyof import("react-native").GestureResponderHandlers)> & import("@tamagui/core").ExtendBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
211
121
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").TextStyle | (React.CSSProperties & import("react-native").TextStyle)>;
|
|
212
122
|
} & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
@@ -459,7 +369,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
459
369
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
460
370
|
};
|
|
461
371
|
}>;
|
|
462
|
-
Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<TamaguiElement>>;
|
|
372
|
+
Item: React.ForwardRefExoticComponent<import("./SelectItem").SelectItemProps & React.RefAttributes<TamaguiElement>>;
|
|
463
373
|
ItemIndicator: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
464
374
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
465
375
|
} & 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<{}, "elevation" | "fullscreen"> & {
|
|
@@ -536,7 +446,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
536
446
|
readonly bordered?: number | boolean | undefined;
|
|
537
447
|
readonly transparent?: boolean | undefined;
|
|
538
448
|
readonly chromeless?: boolean | "all" | undefined;
|
|
539
|
-
}, "disabled" | "size" | "
|
|
449
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
540
450
|
readonly unstyled?: boolean | undefined;
|
|
541
451
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
542
452
|
readonly active?: boolean | undefined;
|
|
@@ -558,7 +468,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
558
468
|
readonly bordered?: number | boolean | undefined;
|
|
559
469
|
readonly transparent?: boolean | undefined;
|
|
560
470
|
readonly chromeless?: boolean | "all" | undefined;
|
|
561
|
-
}, "disabled" | "size" | "
|
|
471
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
562
472
|
readonly unstyled?: boolean | undefined;
|
|
563
473
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
564
474
|
readonly active?: boolean | undefined;
|
|
@@ -580,7 +490,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
580
490
|
readonly bordered?: number | boolean | undefined;
|
|
581
491
|
readonly transparent?: boolean | undefined;
|
|
582
492
|
readonly chromeless?: boolean | "all" | undefined;
|
|
583
|
-
}, "disabled" | "size" | "
|
|
493
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
584
494
|
readonly unstyled?: boolean | undefined;
|
|
585
495
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
586
496
|
readonly active?: boolean | undefined;
|
|
@@ -620,7 +530,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
620
530
|
readonly bordered?: number | boolean | undefined;
|
|
621
531
|
readonly transparent?: boolean | undefined;
|
|
622
532
|
readonly chromeless?: boolean | "all" | undefined;
|
|
623
|
-
}, "disabled" | "size" | "
|
|
533
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
624
534
|
readonly unstyled?: boolean | undefined;
|
|
625
535
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
626
536
|
readonly active?: boolean | undefined;
|
|
@@ -642,7 +552,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
642
552
|
readonly bordered?: number | boolean | undefined;
|
|
643
553
|
readonly transparent?: boolean | undefined;
|
|
644
554
|
readonly chromeless?: boolean | "all" | undefined;
|
|
645
|
-
}, "disabled" | "size" | "
|
|
555
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
646
556
|
readonly unstyled?: boolean | undefined;
|
|
647
557
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
648
558
|
readonly active?: boolean | undefined;
|
|
@@ -664,7 +574,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
664
574
|
readonly bordered?: number | boolean | undefined;
|
|
665
575
|
readonly transparent?: boolean | undefined;
|
|
666
576
|
readonly chromeless?: boolean | "all" | undefined;
|
|
667
|
-
}, "disabled" | "size" | "
|
|
577
|
+
}, "disabled" | "size" | "unstyled" | "active"> & {
|
|
668
578
|
readonly unstyled?: boolean | undefined;
|
|
669
579
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
670
580
|
readonly active?: boolean | undefined;
|
|
@@ -721,7 +631,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
721
631
|
readonly size?: FontSizeTokens | undefined;
|
|
722
632
|
}, string | number> & {
|
|
723
633
|
[x: string]: undefined;
|
|
724
|
-
}>>), "style" | "ellipse" | "disabled" | "size" | "className" | "id" | "placeholder" | "tabIndex" | "role" | "color" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onFocus" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onScroll" | "space" | "zIndex" | `$${string}` | `$${number}` | "x" | "y" | "display" | "hitSlop" | "pointerEvents" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "importantForAccessibility" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "gap" | "columnGap" | "rowGap" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "userSelect" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "scaleX" | "scaleY" | "translateX" | "translateY" | "perspective" | "scale" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "theme" | "fontFamily" | "fontSize" | "textShadowColor" | "lineHeight" | "fontWeight" | "letterSpacing" | "target" | "asChild" | "debug" | "themeShallow" | "tag" | "componentName" | "disableOptimization" | "forceStyle" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "textAlign" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "minimumFontScale" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | "textDecorationDistance" | "textOverflow" | "whiteSpace" | "wordWrap" | "
|
|
634
|
+
}>>), "style" | "ellipse" | "disabled" | "size" | "className" | "id" | "placeholder" | "tabIndex" | "role" | "color" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onFocus" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp" | "onScroll" | "space" | "zIndex" | `$${string}` | `$${number}` | "x" | "y" | "display" | "hitSlop" | "pointerEvents" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "importantForAccessibility" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "gap" | "columnGap" | "rowGap" | "contain" | "cursor" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "userSelect" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "scaleX" | "scaleY" | "translateX" | "translateY" | "perspective" | "scale" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "theme" | "fontFamily" | "fontSize" | "textShadowColor" | "lineHeight" | "fontWeight" | "letterSpacing" | "target" | "asChild" | "debug" | "themeShallow" | "tag" | "componentName" | "disableOptimization" | "forceStyle" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "fontStyle" | "textAlign" | "unstyled" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onTextLayout" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "dynamicTypeRamp" | "minimumFontScale" | "suppressHighlighting" | "lineBreakStrategyIOS" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "android_hyphenationFrequency" | "textDecorationDistance" | "textOverflow" | "whiteSpace" | "wordWrap" | "textDecorationLine" | "textDecorationStyle" | "textDecorationColor" | "textShadowOffset" | "textShadowRadius" | "textTransform" | "fontVariant" | "writingDirection" | "textAlignVertical" | "verticalAlign" | "includeFontPadding">, TamaguiTextElement> & {
|
|
725
635
|
staticConfig: import("@tamagui/core").StaticConfigParsed;
|
|
726
636
|
styleable: import("@tamagui/core").Styleable<(Omit<import("react-native").TextProps, "style" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
727
637
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").TextStyle | (React.CSSProperties & import("react-native").TextStyle)>;
|
|
@@ -761,7 +671,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
761
671
|
[x: string]: undefined;
|
|
762
672
|
}>>), TamaguiTextElement>;
|
|
763
673
|
};
|
|
764
|
-
Viewport:
|
|
674
|
+
Viewport: import("@tamagui/core").ReactComponentWithRef<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
765
675
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
766
676
|
} & 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<{
|
|
767
677
|
readonly fullscreen?: boolean | undefined;
|
|
@@ -815,7 +725,166 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
|
|
|
815
725
|
}>> & {
|
|
816
726
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
817
727
|
disableScroll?: boolean | undefined;
|
|
818
|
-
|
|
728
|
+
unstyled?: boolean | undefined;
|
|
729
|
+
} & Omit<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
730
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
731
|
+
} & 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<{
|
|
732
|
+
readonly fullscreen?: boolean | undefined;
|
|
733
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
734
|
+
} & {
|
|
735
|
+
readonly backgrounded?: boolean | undefined;
|
|
736
|
+
readonly radiused?: boolean | undefined;
|
|
737
|
+
readonly hoverTheme?: boolean | undefined;
|
|
738
|
+
readonly pressTheme?: boolean | undefined;
|
|
739
|
+
readonly focusTheme?: boolean | undefined;
|
|
740
|
+
readonly circular?: boolean | undefined;
|
|
741
|
+
readonly padded?: boolean | undefined;
|
|
742
|
+
readonly elevate?: boolean | undefined;
|
|
743
|
+
readonly bordered?: number | boolean | undefined;
|
|
744
|
+
readonly transparent?: boolean | undefined;
|
|
745
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
746
|
+
}, "size" | "unstyled"> & {
|
|
747
|
+
readonly unstyled?: boolean | undefined;
|
|
748
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
749
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
750
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
751
|
+
} & 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<{
|
|
752
|
+
readonly fullscreen?: boolean | undefined;
|
|
753
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
754
|
+
} & {
|
|
755
|
+
readonly backgrounded?: boolean | undefined;
|
|
756
|
+
readonly radiused?: boolean | undefined;
|
|
757
|
+
readonly hoverTheme?: boolean | undefined;
|
|
758
|
+
readonly pressTheme?: boolean | undefined;
|
|
759
|
+
readonly focusTheme?: boolean | undefined;
|
|
760
|
+
readonly circular?: boolean | undefined;
|
|
761
|
+
readonly padded?: boolean | undefined;
|
|
762
|
+
readonly elevate?: boolean | undefined;
|
|
763
|
+
readonly bordered?: number | boolean | undefined;
|
|
764
|
+
readonly transparent?: boolean | undefined;
|
|
765
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
766
|
+
}, "size" | "unstyled"> & {
|
|
767
|
+
readonly unstyled?: boolean | undefined;
|
|
768
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
769
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
770
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
771
|
+
} & 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<{
|
|
772
|
+
readonly fullscreen?: boolean | undefined;
|
|
773
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
774
|
+
} & {
|
|
775
|
+
readonly backgrounded?: boolean | undefined;
|
|
776
|
+
readonly radiused?: boolean | undefined;
|
|
777
|
+
readonly hoverTheme?: boolean | undefined;
|
|
778
|
+
readonly pressTheme?: boolean | undefined;
|
|
779
|
+
readonly focusTheme?: boolean | undefined;
|
|
780
|
+
readonly circular?: boolean | undefined;
|
|
781
|
+
readonly padded?: boolean | undefined;
|
|
782
|
+
readonly elevate?: boolean | undefined;
|
|
783
|
+
readonly bordered?: number | boolean | undefined;
|
|
784
|
+
readonly transparent?: boolean | undefined;
|
|
785
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
786
|
+
}, "size" | "unstyled"> & {
|
|
787
|
+
readonly unstyled?: boolean | undefined;
|
|
788
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
789
|
+
}>>, "style" | "size" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-hidden" | "aria-label" | "aria-labelledby" | "aria-live" | "aria-modal" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onTouchCancel" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchStart" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "zIndex" | `$${string}` | `$${number}` | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "importantForAccessibility" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "elevation" | keyof {
|
|
790
|
+
columnGap?: import("@tamagui/core").SpaceValue | undefined;
|
|
791
|
+
contain?: import("csstype").Property.Contain | undefined;
|
|
792
|
+
cursor?: import("csstype").Property.Cursor | undefined;
|
|
793
|
+
display?: "inherit" | "flex" | "none" | "inline" | "block" | "contents" | "inline-flex" | undefined;
|
|
794
|
+
gap?: import("@tamagui/core").SpaceValue | undefined;
|
|
795
|
+
outlineColor?: import("csstype").Property.OutlineColor | undefined;
|
|
796
|
+
outlineOffset?: import("@tamagui/core").SpaceValue | undefined;
|
|
797
|
+
outlineStyle?: import("csstype").Property.OutlineStyle | undefined;
|
|
798
|
+
outlineWidth?: import("@tamagui/core").SpaceValue | undefined;
|
|
799
|
+
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
|
|
800
|
+
rowGap?: import("@tamagui/core").SpaceValue | undefined;
|
|
801
|
+
space?: import("@tamagui/core").SpaceValue | undefined;
|
|
802
|
+
spaceDirection?: import("@tamagui/core").SpaceDirection | undefined;
|
|
803
|
+
separator?: React.ReactNode;
|
|
804
|
+
animation?: import("@tamagui/core").AnimationProp | null | undefined;
|
|
805
|
+
animateOnly?: string[] | undefined;
|
|
806
|
+
userSelect?: import("csstype").Property.UserSelect | undefined;
|
|
807
|
+
} | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "direction" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "transparent" | "circular" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "backgrounded" | "radiused" | "padded" | "chromeless" | "fullscreen" | keyof import("@tamagui/core").TransformStyleProps | keyof import("@tamagui/core").TamaguiComponentPropsBase | keyof import("@tamagui/core/types/reactNativeTypes").RNViewProps | keyof import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
808
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
809
|
+
} & 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<{
|
|
810
|
+
readonly fullscreen?: boolean | undefined;
|
|
811
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
812
|
+
}, "transparent" | "circular" | "hoverTheme" | "pressTheme" | "focusTheme" | "elevate" | "bordered" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
813
|
+
readonly backgrounded?: boolean | undefined;
|
|
814
|
+
readonly radiused?: boolean | undefined;
|
|
815
|
+
readonly hoverTheme?: boolean | undefined;
|
|
816
|
+
readonly pressTheme?: boolean | undefined;
|
|
817
|
+
readonly focusTheme?: boolean | undefined;
|
|
818
|
+
readonly circular?: boolean | undefined;
|
|
819
|
+
readonly padded?: boolean | undefined;
|
|
820
|
+
readonly elevate?: boolean | undefined;
|
|
821
|
+
readonly bordered?: number | boolean | undefined;
|
|
822
|
+
readonly transparent?: boolean | undefined;
|
|
823
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
824
|
+
}>> | "unstyled" | "disableScroll">, TamaguiElement> & {
|
|
825
|
+
staticConfig: import("@tamagui/core").StaticConfigParsed;
|
|
826
|
+
styleable: import("@tamagui/core").Styleable<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
827
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
828
|
+
} & 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<{
|
|
829
|
+
readonly fullscreen?: boolean | undefined;
|
|
830
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
831
|
+
} & {
|
|
832
|
+
readonly backgrounded?: boolean | undefined;
|
|
833
|
+
readonly radiused?: boolean | undefined;
|
|
834
|
+
readonly hoverTheme?: boolean | undefined;
|
|
835
|
+
readonly pressTheme?: boolean | undefined;
|
|
836
|
+
readonly focusTheme?: boolean | undefined;
|
|
837
|
+
readonly circular?: boolean | undefined;
|
|
838
|
+
readonly padded?: boolean | undefined;
|
|
839
|
+
readonly elevate?: boolean | undefined;
|
|
840
|
+
readonly bordered?: number | boolean | undefined;
|
|
841
|
+
readonly transparent?: boolean | undefined;
|
|
842
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
843
|
+
}, "size" | "unstyled"> & {
|
|
844
|
+
readonly unstyled?: boolean | undefined;
|
|
845
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
846
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
847
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
848
|
+
} & 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<{
|
|
849
|
+
readonly fullscreen?: boolean | undefined;
|
|
850
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
851
|
+
} & {
|
|
852
|
+
readonly backgrounded?: boolean | undefined;
|
|
853
|
+
readonly radiused?: boolean | undefined;
|
|
854
|
+
readonly hoverTheme?: boolean | undefined;
|
|
855
|
+
readonly pressTheme?: boolean | undefined;
|
|
856
|
+
readonly focusTheme?: boolean | undefined;
|
|
857
|
+
readonly circular?: boolean | undefined;
|
|
858
|
+
readonly padded?: boolean | undefined;
|
|
859
|
+
readonly elevate?: boolean | undefined;
|
|
860
|
+
readonly bordered?: number | boolean | undefined;
|
|
861
|
+
readonly transparent?: boolean | undefined;
|
|
862
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
863
|
+
}, "size" | "unstyled"> & {
|
|
864
|
+
readonly unstyled?: boolean | undefined;
|
|
865
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
866
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
867
|
+
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
|
868
|
+
} & 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<{
|
|
869
|
+
readonly fullscreen?: boolean | undefined;
|
|
870
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
871
|
+
} & {
|
|
872
|
+
readonly backgrounded?: boolean | undefined;
|
|
873
|
+
readonly radiused?: boolean | undefined;
|
|
874
|
+
readonly hoverTheme?: boolean | undefined;
|
|
875
|
+
readonly pressTheme?: boolean | undefined;
|
|
876
|
+
readonly focusTheme?: boolean | undefined;
|
|
877
|
+
readonly circular?: boolean | undefined;
|
|
878
|
+
readonly padded?: boolean | undefined;
|
|
879
|
+
readonly elevate?: boolean | undefined;
|
|
880
|
+
readonly bordered?: number | boolean | undefined;
|
|
881
|
+
readonly transparent?: boolean | undefined;
|
|
882
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
883
|
+
}, "size" | "unstyled"> & {
|
|
884
|
+
readonly unstyled?: boolean | undefined;
|
|
885
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
886
|
+
}>>, TamaguiElement>;
|
|
887
|
+
};
|
|
819
888
|
Sheet: React.FunctionComponent<Omit<import("@tamagui/sheet").SheetProps, "open" | "onOpenChange"> & React.RefAttributes<import("react-native").View>> & {
|
|
820
889
|
Frame: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "style" | "children" | "display" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & {
|
|
821
890
|
style?: import("@tamagui/core").StyleProp<React.CSSProperties | import("react-native").ViewStyle | (React.CSSProperties & import("react-native").ViewStyle)>;
|
package/types/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,QAAQ,EACR,cAAc,EACd,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,QAAQ,EACR,cAAc,EACd,kBAAkB,EAOnB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAO5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,OAAO,EAAE,WAAW,EAAmB,WAAW,EAAE,MAAM,SAAS,CAAA;AAYnE,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpB,CAAA;AAEF,KAAK,gBAAgB,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAC1D,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC9B,CAAA;AAkDD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AAQF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe9B,CAAA;AAkGF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAA;AAuGF,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAA;AAgC5C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE1B,CAAA;AAoCF,eAAO,MAAM,MAAM,WACT,YAAY,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8HjC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAGlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAS5C,eAAO,MAAM,aAAa,4DAKvB,kBAAkB,GAAG,eAAe,uBAoCtC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { TamaguiElement } from '@tamagui/core';
|
|
2
|
+
import { ListItemProps } from '@tamagui/list-item';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
type SelectItemContextValue = {
|
|
5
|
+
value: string;
|
|
6
|
+
textId: string;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const SelectItemContextProvider: {
|
|
10
|
+
(props: SelectItemContextValue & {
|
|
11
|
+
scope: import("@tamagui/create-context").Scope<SelectItemContextValue>;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}, useSelectItemContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<SelectItemContextValue | undefined>, options?: {
|
|
16
|
+
warn?: boolean | undefined;
|
|
17
|
+
fallback?: Partial<SelectItemContextValue> | undefined;
|
|
18
|
+
} | undefined) => SelectItemContextValue;
|
|
19
|
+
export interface SelectItemProps extends ListItemProps {
|
|
20
|
+
value: string;
|
|
21
|
+
index: number;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
textValue?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<TamaguiElement>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=SelectItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectItem.d.ts","sourceRoot":"","sources":["../src/SelectItem.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EAIf,MAAM,eAAe,CAAA;AACtB,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,eAAO,MAAO,yBAAyB;;;;;;GAAE,oBAAoB;;;wCACL,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,wFAsJtB,CAAA"}
|