@tamagui/select 1.0.1-beta.113 → 1.0.1-beta.114
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 +50 -558
- package/dist/cjs/Select.js.map +2 -2
- package/dist/cjs/SelectContent.js +53 -0
- package/dist/cjs/SelectContent.js.map +7 -0
- package/dist/cjs/SelectContent.native.js +31 -0
- package/dist/cjs/SelectContent.native.js.map +7 -0
- package/dist/cjs/SelectImpl.js +393 -0
- package/dist/cjs/SelectImpl.js.map +7 -0
- package/dist/cjs/SelectScrollButton.js +128 -0
- package/dist/cjs/SelectScrollButton.js.map +7 -0
- package/dist/cjs/SelectScrollButton.native.js +32 -0
- package/dist/cjs/SelectScrollButton.native.js.map +7 -0
- package/dist/cjs/SelectViewport.js +96 -0
- package/dist/cjs/SelectViewport.js.map +7 -0
- package/dist/cjs/SelectViewport.native.js +43 -0
- package/dist/cjs/SelectViewport.native.js.map +7 -0
- package/dist/cjs/constants.js +47 -0
- package/dist/cjs/constants.js.map +7 -0
- package/dist/cjs/context.js +38 -0
- package/dist/cjs/context.js.map +7 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/types.js +17 -0
- package/dist/cjs/types.js.map +7 -0
- package/dist/esm/Select.js +33 -565
- package/dist/esm/Select.js.map +2 -2
- package/dist/esm/SelectContent.js +26 -0
- package/dist/esm/SelectContent.js.map +7 -0
- package/dist/esm/SelectContent.native.js +7 -0
- package/dist/esm/SelectContent.native.js.map +7 -0
- package/dist/esm/SelectImpl.js +378 -0
- package/dist/esm/SelectImpl.js.map +7 -0
- package/dist/esm/SelectScrollButton.js +100 -0
- package/dist/esm/SelectScrollButton.js.map +7 -0
- package/dist/esm/SelectScrollButton.native.js +7 -0
- package/dist/esm/SelectScrollButton.native.js.map +7 -0
- package/dist/esm/SelectViewport.js +68 -0
- package/dist/esm/SelectViewport.js.map +7 -0
- package/dist/esm/SelectViewport.native.js +16 -0
- package/dist/esm/SelectViewport.native.js.map +7 -0
- package/dist/esm/constants.js +17 -0
- package/dist/esm/constants.js.map +7 -0
- package/dist/esm/context.js +11 -0
- package/dist/esm/context.js.map +7 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/types.js +1 -0
- package/dist/esm/types.js.map +7 -0
- package/dist/jsx/Select.js +32 -515
- package/dist/jsx/Select.js.map +2 -2
- package/dist/jsx/SelectContent.js +19 -0
- package/dist/jsx/SelectContent.js.map +7 -0
- package/dist/jsx/SelectContent.native.js +7 -0
- package/dist/jsx/SelectContent.native.js.map +7 -0
- package/dist/jsx/SelectImpl.js +366 -0
- package/dist/jsx/SelectImpl.js.map +7 -0
- package/dist/jsx/SelectScrollButton.js +78 -0
- package/dist/jsx/SelectScrollButton.js.map +7 -0
- package/dist/jsx/SelectScrollButton.native.js +7 -0
- package/dist/jsx/SelectScrollButton.native.js.map +7 -0
- package/dist/jsx/SelectViewport.js +57 -0
- package/dist/jsx/SelectViewport.js.map +7 -0
- package/dist/jsx/SelectViewport.native.js +14 -0
- package/dist/jsx/SelectViewport.native.js.map +7 -0
- package/dist/jsx/constants.js +17 -0
- package/dist/jsx/constants.js.map +7 -0
- package/dist/jsx/context.js +11 -0
- package/dist/jsx/context.js.map +7 -0
- package/dist/jsx/index.js +13 -0
- package/dist/jsx/index.js.map +2 -2
- package/dist/jsx/types.js +1 -0
- package/dist/jsx/types.js.map +7 -0
- package/package.json +12 -12
- package/src/Select.tsx +57 -881
- package/src/SelectContent.native.tsx +5 -0
- package/src/SelectContent.tsx +34 -0
- package/src/SelectImpl.tsx +511 -0
- package/src/SelectScrollButton.native.tsx +7 -0
- package/src/SelectScrollButton.tsx +150 -0
- package/src/SelectViewport.native.tsx +17 -0
- package/src/SelectViewport.tsx +86 -0
- package/src/constants.tsx +7 -0
- package/src/context.tsx +9 -0
- package/src/index.tsx +7 -0
- package/src/types.tsx +83 -0
- package/types/Select.d.ts +140 -298
- package/types/Select.d.ts.map +1 -1
- package/types/SelectContent.d.ts +4 -0
- package/types/SelectContent.d.ts.map +1 -0
- package/types/SelectContent.native.d.ts +4 -0
- package/types/SelectContent.native.d.ts.map +1 -0
- package/types/SelectImpl.d.ts +9 -0
- package/types/SelectImpl.d.ts.map +1 -0
- package/types/SelectScrollButton.d.ts +6 -0
- package/types/SelectScrollButton.d.ts.map +1 -0
- package/types/SelectScrollButton.native.d.ts +4 -0
- package/types/SelectScrollButton.native.d.ts.map +1 -0
- package/types/SelectViewport.d.ts +127 -0
- package/types/SelectViewport.d.ts.map +1 -0
- package/types/SelectViewport.native.d.ts +54 -0
- package/types/SelectViewport.native.d.ts.map +1 -0
- package/types/constants.d.ts +8 -0
- package/types/constants.d.ts.map +1 -0
- package/types/context.d.ts +17 -0
- package/types/context.d.ts.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +74 -0
- package/types/types.d.ts.map +1 -0
package/types/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAmB,MAAM,eAAe,CAAA;AAGzE,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAI5D,OAAO,EAAkB,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAG7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAItE,eAAO,MAAM,SAAS,SAA8C,CAAA;AACpE,wBAAgB,kBAAkB,WAEjC;AAQD,oBAAY,kBAAkB,GAAG,aAAa,CAAA;AAE9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAnalB,MAAM,SAAS;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAmZwB,YAAY,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HrE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAQ5C,eAAO,MAAM,aAAa,gCAAiC,kBAAkB,gBAmB5E,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectContent.native.d.ts","sourceRoot":"","sources":["../src/SelectContent.native.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,aAAa,iBAAkB,kBAAkB,8BAE7D,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ScopedProps, SelectProps } from './types';
|
|
3
|
+
export declare type SelectImplProps = ScopedProps<SelectProps> & {
|
|
4
|
+
activeIndexRef: any;
|
|
5
|
+
selectedIndexRef: any;
|
|
6
|
+
listContentRef: any;
|
|
7
|
+
};
|
|
8
|
+
export declare const SelectInlineImpl: (props: SelectImplProps) => JSX.Element;
|
|
9
|
+
//# sourceMappingURL=SelectImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectImpl.d.ts","sourceRoot":"","sources":["../src/SelectImpl.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAElD,oBAAY,eAAe,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IACvD,cAAc,EAAE,GAAG,CAAA;IACnB,gBAAgB,EAAE,GAAG,CAAA;IACrB,cAAc,EAAE,GAAG,CAAA;CACpB,CAAA;AAGD,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBAketD,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TamaguiElement } from '@tamagui/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { SelectScrollButtonProps } from './types';
|
|
4
|
+
export declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollButtonProps & React.RefAttributes<TamaguiElement>>;
|
|
5
|
+
export declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollButtonProps & React.RefAttributes<TamaguiElement>>;
|
|
6
|
+
//# sourceMappingURL=SelectScrollButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectScrollButton.d.ts","sourceRoot":"","sources":["../src/SelectScrollButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAA4C,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAQ3F,eAAO,MAAM,oBAAoB,gGAWhC,CAAA;AAUD,eAAO,MAAM,sBAAsB,gGAWlC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScopedProps, SelectScrollButtonProps } from './types';
|
|
2
|
+
export declare const SelectScrollUpButton: (_: ScopedProps<SelectScrollButtonProps>) => null;
|
|
3
|
+
export declare const SelectScrollDownButton: (_: ScopedProps<SelectScrollButtonProps>) => null;
|
|
4
|
+
//# sourceMappingURL=SelectScrollButton.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectScrollButton.native.d.ts","sourceRoot":"","sources":["../src/SelectScrollButton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAG9D,eAAO,MAAM,oBAAoB,MAAO,YAAY,uBAAuB,CAAC,SAAS,CAAA;AAGrF,eAAO,MAAM,sBAAsB,MAAO,YAAY,uBAAuB,CAAC,SAAS,CAAA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { TamaguiElement } from '@tamagui/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare const SelectViewportFrame: import("@tamagui/core").TamaguiComponent<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<{
|
|
4
|
+
readonly fullscreen?: boolean | undefined;
|
|
5
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
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 | undefined;
|
|
19
|
+
}, "size"> & {
|
|
20
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
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
|
+
readonly fullscreen?: boolean | undefined;
|
|
23
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
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 | undefined;
|
|
37
|
+
}, "size"> & {
|
|
38
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
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
|
+
readonly fullscreen?: boolean | undefined;
|
|
41
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
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 | undefined;
|
|
55
|
+
}, "size"> & {
|
|
56
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
57
|
+
}>>, any, import("@tamagui/core").StackPropsBase, {
|
|
58
|
+
readonly fullscreen?: boolean | undefined;
|
|
59
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
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 | undefined;
|
|
73
|
+
} & {
|
|
74
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
75
|
+
}>;
|
|
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
|
+
readonly fullscreen?: boolean | undefined;
|
|
78
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
79
|
+
}, "transparent" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "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 | undefined;
|
|
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
|
+
readonly fullscreen?: boolean | undefined;
|
|
94
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
95
|
+
}, "transparent" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "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 | undefined;
|
|
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
|
+
readonly fullscreen?: boolean | undefined;
|
|
110
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
111
|
+
}, "transparent" | "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "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 | undefined;
|
|
124
|
+
}>> & {
|
|
125
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
126
|
+
} & React.RefAttributes<TamaguiElement>>;
|
|
127
|
+
//# sourceMappingURL=SelectViewport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectViewport.d.ts","sourceRoot":"","sources":["../src/SelectViewport.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAS,MAAM,eAAe,CAAA;AAIrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4C1B,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TamaguiElement } from '@tamagui/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
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<{
|
|
4
|
+
readonly fullscreen?: boolean | undefined;
|
|
5
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
6
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
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 | undefined;
|
|
19
|
+
} & 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<{
|
|
20
|
+
readonly fullscreen?: boolean | undefined;
|
|
21
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
22
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
23
|
+
fontFamily?: unknown;
|
|
24
|
+
backgrounded?: boolean | undefined;
|
|
25
|
+
radiused?: boolean | undefined;
|
|
26
|
+
hoverTheme?: boolean | undefined;
|
|
27
|
+
pressTheme?: boolean | undefined;
|
|
28
|
+
focusTheme?: boolean | undefined;
|
|
29
|
+
circular?: boolean | undefined;
|
|
30
|
+
padded?: boolean | undefined;
|
|
31
|
+
elevate?: boolean | undefined;
|
|
32
|
+
bordered?: number | boolean | undefined;
|
|
33
|
+
transparent?: boolean | undefined;
|
|
34
|
+
chromeless?: boolean | undefined;
|
|
35
|
+
}>> & 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<{
|
|
36
|
+
readonly fullscreen?: boolean | undefined;
|
|
37
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
38
|
+
}, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
|
|
39
|
+
fontFamily?: unknown;
|
|
40
|
+
backgrounded?: boolean | undefined;
|
|
41
|
+
radiused?: boolean | undefined;
|
|
42
|
+
hoverTheme?: boolean | undefined;
|
|
43
|
+
pressTheme?: boolean | undefined;
|
|
44
|
+
focusTheme?: boolean | undefined;
|
|
45
|
+
circular?: boolean | undefined;
|
|
46
|
+
padded?: boolean | undefined;
|
|
47
|
+
elevate?: boolean | undefined;
|
|
48
|
+
bordered?: number | boolean | undefined;
|
|
49
|
+
transparent?: boolean | undefined;
|
|
50
|
+
chromeless?: boolean | undefined;
|
|
51
|
+
}>> & {
|
|
52
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
53
|
+
} & React.RefAttributes<TamaguiElement>>;
|
|
54
|
+
//# sourceMappingURL=SelectViewport.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectViewport.native.d.ts","sourceRoot":"","sources":["../src/SelectViewport.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAM1B,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const SELECT_NAME = "Select";
|
|
2
|
+
export declare const WINDOW_PADDING = 8;
|
|
3
|
+
export declare const SCROLL_ARROW_VELOCITY = 8;
|
|
4
|
+
export declare const SCROLL_ARROW_THRESHOLD = 8;
|
|
5
|
+
export declare const MIN_HEIGHT = 80;
|
|
6
|
+
export declare const FALLBACK_THRESHOLD = 16;
|
|
7
|
+
export declare const VIEWPORT_NAME = "SelectViewport";
|
|
8
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,WAAW,CAAA;AACnC,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B,eAAO,MAAM,qBAAqB,IAAI,CAAA;AACtC,eAAO,MAAM,sBAAsB,IAAI,CAAA;AACvC,eAAO,MAAM,UAAU,KAAK,CAAA;AAC5B,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,eAAO,MAAM,aAAa,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectContextValue } from './types';
|
|
3
|
+
export declare const createSelectContext: <ContextValueType extends object | null>(rootComponentName: string, defaultContext?: ContextValueType | undefined) => readonly [{
|
|
4
|
+
(props: ContextValueType & {
|
|
5
|
+
scope: import("@tamagui/create-context").Scope<ContextValueType>;
|
|
6
|
+
children: import("react").ReactNode;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
}, (consumerName: string, scope: import("@tamagui/create-context").Scope<ContextValueType | undefined>) => ContextValueType], createSelectScope: import("@tamagui/create-context").CreateScope;
|
|
10
|
+
export declare const SelectProvider: {
|
|
11
|
+
(props: SelectContextValue & {
|
|
12
|
+
scope: import("@tamagui/create-context").Scope<SelectContextValue>;
|
|
13
|
+
children: import("react").ReactNode;
|
|
14
|
+
}): JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
}, useSelectContext: (consumerName: string, scope: import("@tamagui/create-context").Scope<SelectContextValue | undefined>) => SelectContextValue;
|
|
17
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAO,mBAAmB;;;;;;8HAAE,iBAAiB,+CAAmC,CAAA;AAEvF,eAAO,MAAO,cAAc;;;;;;GAAE,gBAAgB,8HACQ,CAAA"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,SAAS,CAAA;AAChB,cAAc,WAAW,CAAA"}
|
package/types/types.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ContextData, FloatingContext, ReferenceType } from '@floating-ui/react-dom-interactions';
|
|
2
|
+
import type { MediaPropKeys, SizeTokens } from '@tamagui/core';
|
|
3
|
+
import type { Scope } from '@tamagui/create-context';
|
|
4
|
+
import type { ThemeableStackProps, YStackProps } from '@tamagui/stacks';
|
|
5
|
+
import type { DispatchWithoutAction, HTMLProps, MutableRefObject, ReactNode } from 'react';
|
|
6
|
+
export declare type Direction = 'ltr' | 'rtl';
|
|
7
|
+
export declare type ScopedProps<P> = P & {
|
|
8
|
+
__scopeSelect?: Scope;
|
|
9
|
+
};
|
|
10
|
+
export interface SelectProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
value?: string;
|
|
14
|
+
defaultValue?: string;
|
|
15
|
+
onValueChange?(value: string): void;
|
|
16
|
+
open?: boolean;
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
onOpenChange?(open: boolean): void;
|
|
19
|
+
dir?: Direction;
|
|
20
|
+
name?: string;
|
|
21
|
+
autoComplete?: string;
|
|
22
|
+
size?: SizeTokens;
|
|
23
|
+
sheetBreakpoint?: MediaPropKeys | false;
|
|
24
|
+
}
|
|
25
|
+
declare type NonNull<A> = Exclude<A, void | null>;
|
|
26
|
+
export interface SelectContextValue {
|
|
27
|
+
dir?: Direction;
|
|
28
|
+
scopeKey: string;
|
|
29
|
+
sheetBreakpoint: NonNull<SelectProps['sheetBreakpoint']>;
|
|
30
|
+
size?: SizeTokens;
|
|
31
|
+
value: any;
|
|
32
|
+
selectedItem: ReactNode;
|
|
33
|
+
setSelectedItem: (item: ReactNode) => void;
|
|
34
|
+
selectedIndex: number;
|
|
35
|
+
setSelectedIndex: (index: number) => void;
|
|
36
|
+
activeIndex: number | null;
|
|
37
|
+
setActiveIndex: (index: number | null) => void;
|
|
38
|
+
setValueAtIndex: (index: number, value: string) => void;
|
|
39
|
+
open: boolean;
|
|
40
|
+
setOpen: (open: boolean) => void;
|
|
41
|
+
onChange: (value: string) => void;
|
|
42
|
+
valueNode: Element | null;
|
|
43
|
+
onValueNodeChange(node: HTMLElement): void;
|
|
44
|
+
valueNodeHasChildren: boolean;
|
|
45
|
+
onValueNodeHasChildrenChange(hasChildren: boolean): void;
|
|
46
|
+
forceUpdate: DispatchWithoutAction;
|
|
47
|
+
dataRef?: MutableRefObject<ContextData>;
|
|
48
|
+
controlledScrolling?: boolean;
|
|
49
|
+
listRef?: MutableRefObject<Array<HTMLElement | null>>;
|
|
50
|
+
floatingRef?: MutableRefObject<HTMLElement | null>;
|
|
51
|
+
canScrollUp?: boolean;
|
|
52
|
+
canScrollDown?: boolean;
|
|
53
|
+
floatingContext?: FloatingContext<ReferenceType>;
|
|
54
|
+
increaseHeight?: (floating: HTMLElement, amount?: any) => number | undefined;
|
|
55
|
+
interactions?: {
|
|
56
|
+
getReferenceProps: (userProps?: HTMLProps<Element> | undefined) => any;
|
|
57
|
+
getFloatingProps: (userProps?: HTMLProps<HTMLElement> | undefined) => any;
|
|
58
|
+
getItemProps: (userProps?: HTMLProps<HTMLElement> | undefined) => any;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export declare type SelectViewportProps = ThemeableStackProps & {
|
|
62
|
+
size?: SizeTokens;
|
|
63
|
+
};
|
|
64
|
+
export declare type SelectContentProps = ScopedProps<{
|
|
65
|
+
children?: React.ReactNode;
|
|
66
|
+
}>;
|
|
67
|
+
export interface SelectScrollButtonImplProps extends YStackProps {
|
|
68
|
+
dir: 'up' | 'down';
|
|
69
|
+
componentName: string;
|
|
70
|
+
}
|
|
71
|
+
export interface SelectScrollButtonProps extends Omit<SelectScrollButtonImplProps, 'dir' | 'componentName'> {
|
|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