@tamagui/web 1.88.4 → 1.88.5
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/createComponent.js.map +1 -1
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.js +22 -3
- package/dist/cjs/helpers/getSplitStyles.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/interfaces/KeyTypes.js +14 -0
- package/dist/cjs/interfaces/KeyTypes.js.map +6 -0
- package/dist/cjs/interfaces/KeyTypes.native.js +15 -0
- package/dist/cjs/interfaces/KeyTypes.native.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentEvents.js +14 -0
- package/dist/cjs/interfaces/TamaguiComponentEvents.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js +15 -0
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js +14 -0
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js +15 -0
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentState.js +14 -0
- package/dist/cjs/interfaces/TamaguiComponentState.js.map +6 -0
- package/dist/cjs/interfaces/TamaguiComponentState.native.js +15 -0
- package/dist/cjs/interfaces/TamaguiComponentState.native.js.map +6 -0
- package/dist/cjs/interfaces/WebOnlyPressEvents.js +14 -0
- package/dist/cjs/interfaces/WebOnlyPressEvents.js.map +6 -0
- package/dist/cjs/interfaces/WebOnlyPressEvents.native.js +15 -0
- package/dist/cjs/interfaces/WebOnlyPressEvents.native.js.map +6 -0
- package/dist/cjs/internalWithTheme.js +1 -1
- package/dist/cjs/internalWithTheme.js.map +1 -1
- package/dist/cjs/internalWithTheme.native.js +1 -1
- package/dist/cjs/internalWithTheme.native.js.map +1 -1
- package/dist/cjs/types.js +3 -1
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/types.native.js +8 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/View.js.map +1 -1
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/createComponent.js.map +1 -1
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.js +22 -3
- package/dist/esm/helpers/getSplitStyles.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/interfaces/KeyTypes.js +1 -0
- package/dist/esm/interfaces/KeyTypes.js.map +6 -0
- package/dist/esm/interfaces/KeyTypes.native.js +15 -0
- package/dist/esm/interfaces/KeyTypes.native.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentEvents.js +1 -0
- package/dist/esm/interfaces/TamaguiComponentEvents.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js +15 -0
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js +1 -0
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js +15 -0
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentState.js +1 -0
- package/dist/esm/interfaces/TamaguiComponentState.js.map +6 -0
- package/dist/esm/interfaces/TamaguiComponentState.native.js +15 -0
- package/dist/esm/interfaces/TamaguiComponentState.native.js.map +6 -0
- package/dist/esm/interfaces/WebOnlyPressEvents.js +1 -0
- package/dist/esm/interfaces/WebOnlyPressEvents.js.map +6 -0
- package/dist/esm/interfaces/WebOnlyPressEvents.native.js +15 -0
- package/dist/esm/interfaces/WebOnlyPressEvents.native.js.map +6 -0
- package/dist/esm/internalWithTheme.js +1 -1
- package/dist/esm/internalWithTheme.js.map +1 -1
- package/dist/esm/internalWithTheme.native.js +1 -1
- package/dist/esm/internalWithTheme.native.js.map +1 -1
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +2 -2
- package/dist/esm/types.native.js +8 -1
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/View.js.map +1 -1
- package/dist/esm/views/View.native.js.map +1 -1
- package/package.json +10 -10
- package/src/createComponent.tsx +3 -6
- package/src/defaultComponentState.tsx +1 -1
- package/src/helpers/getSplitStyles.tsx +29 -6
- package/src/hooks/useProps.tsx +2 -2
- package/src/interfaces/KeyTypes.tsx +79 -0
- package/src/interfaces/TamaguiComponentEvents.tsx +18 -0
- package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +202 -0
- package/src/interfaces/TamaguiComponentState.tsx +15 -0
- package/src/interfaces/WebOnlyPressEvents.tsx +17 -0
- package/src/internalWithTheme.tsx +4 -8
- package/src/setupHooks.ts +2 -2
- package/src/types.tsx +17 -346
- package/src/views/Stack.tsx +2 -2
- package/src/views/View.tsx +4 -2
- package/types/createComponent.d.ts.map +1 -1
- package/types/defaultComponentState.d.ts +1 -1
- package/types/defaultComponentState.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +2 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/hooks/useProps.d.ts +2 -2
- package/types/hooks/useProps.d.ts.map +1 -1
- package/types/interfaces/KeyTypes.d.ts +4 -0
- package/types/interfaces/KeyTypes.d.ts.map +1 -0
- package/types/interfaces/TamaguiComponentEvents.d.ts +19 -0
- package/types/interfaces/TamaguiComponentEvents.d.ts.map +1 -0
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +81 -0
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -0
- package/types/interfaces/TamaguiComponentState.d.ts +14 -0
- package/types/interfaces/TamaguiComponentState.d.ts.map +1 -0
- package/types/interfaces/WebOnlyPressEvents.d.ts +17 -0
- package/types/interfaces/WebOnlyPressEvents.d.ts.map +1 -0
- package/types/internalWithTheme.d.ts.map +1 -1
- package/types/setupHooks.d.ts +3 -1
- package/types/setupHooks.d.ts.map +1 -1
- package/types/types.d.ts +17 -140
- package/types/types.d.ts.map +1 -1
- package/types/views/Stack.d.ts +2 -2
- package/types/views/Stack.d.ts.map +1 -1
- package/types/views/View.d.ts +4 -3
- package/types/views/View.d.ts.map +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PressableProps } from 'react-native'
|
|
2
|
+
import { DivAttributes } from '../types'
|
|
3
|
+
|
|
4
|
+
export interface WebOnlyPressEvents {
|
|
5
|
+
onPress?: PressableProps['onPress']
|
|
6
|
+
onLongPress?: PressableProps['onLongPress']
|
|
7
|
+
onPressIn?: PressableProps['onPress']
|
|
8
|
+
onPressOut?: PressableProps['onPress']
|
|
9
|
+
onHoverIn?: DivAttributes['onMouseEnter']
|
|
10
|
+
onHoverOut?: DivAttributes['onMouseLeave']
|
|
11
|
+
onMouseEnter?: DivAttributes['onMouseEnter']
|
|
12
|
+
onMouseLeave?: DivAttributes['onMouseLeave']
|
|
13
|
+
onMouseDown?: DivAttributes['onMouseDown']
|
|
14
|
+
onMouseUp?: DivAttributes['onMouseUp']
|
|
15
|
+
onFocus?: DivAttributes['onFocus']
|
|
16
|
+
onBlur?: DivAttributes['onBlur']
|
|
17
|
+
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { useMemo } from 'react'
|
|
2
|
-
|
|
3
1
|
import { useTheme } from './hooks/useTheme'
|
|
4
2
|
|
|
5
3
|
/** internal: this is for tamagui babel plugin usage only */
|
|
6
4
|
|
|
7
|
-
export const internalWithTheme = (Component: any, styleProvider: any) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return <Component style={styleProvider(theme, props.expressions)} {...rest} />
|
|
12
|
-
}
|
|
5
|
+
export const internalWithTheme = (Component: any, styleProvider: any) => (props) => {
|
|
6
|
+
const { expressions, ...rest } = props
|
|
7
|
+
const theme = useTheme()
|
|
8
|
+
return <Component style={styleProvider(theme, expressions)} {...rest} />
|
|
13
9
|
}
|
package/src/setupHooks.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { RefObject } from 'react'
|
|
|
3
3
|
import {
|
|
4
4
|
GetStyleResult,
|
|
5
5
|
StaticConfig,
|
|
6
|
-
TamaguiComponentEvents,
|
|
7
|
-
TamaguiComponentState,
|
|
8
6
|
TamaguiComponentStateRef,
|
|
9
7
|
TamaguiElement,
|
|
10
8
|
} from './types'
|
|
9
|
+
import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
10
|
+
import { TamaguiComponentEvents } from './interfaces/TamaguiComponentEvents'
|
|
11
11
|
|
|
12
12
|
export const hooks: InternalHooks = {}
|
|
13
13
|
|
package/src/types.tsx
CHANGED
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
RefObject,
|
|
11
11
|
} from 'react'
|
|
12
12
|
import type {
|
|
13
|
-
PressableProps,
|
|
14
13
|
Text as RNText,
|
|
15
14
|
TextProps as ReactTextProps,
|
|
16
15
|
TextStyle,
|
|
@@ -23,9 +22,15 @@ import type { Variable } from './createVariable'
|
|
|
23
22
|
import { StyledContext } from './helpers/createStyledContext'
|
|
24
23
|
import { CSSColorNames } from './interfaces/CSSColorNames'
|
|
25
24
|
import { RNOnlyProps } from './interfaces/RNExclusiveTypes'
|
|
26
|
-
import { Role } from './interfaces/Role'
|
|
27
25
|
import type { LanguageContextType } from './views/FontLanguage.types'
|
|
28
26
|
import type { ThemeProviderProps } from './views/ThemeProvider'
|
|
27
|
+
import { TamaguiComponentState } from './interfaces/TamaguiComponentState'
|
|
28
|
+
import { WebOnlyPressEvents } from './interfaces/WebOnlyPressEvents'
|
|
29
|
+
import { TamaguiComponentPropsBaseBase } from './interfaces/TamaguiComponentPropsBaseBase'
|
|
30
|
+
import { SizeKeys, SpaceKeys, ColorKeys } from './interfaces/KeyTypes'
|
|
31
|
+
|
|
32
|
+
export * from './interfaces/KeyTypes'
|
|
33
|
+
export * from './interfaces/TamaguiComponentState'
|
|
29
34
|
|
|
30
35
|
export type { MediaStyleObject, StyleObject } from '@tamagui/helpers'
|
|
31
36
|
|
|
@@ -40,221 +45,6 @@ export type TamaguiTextElement = HTMLElement | RNText
|
|
|
40
45
|
|
|
41
46
|
export type DebugProp = boolean | 'break' | 'verbose' | 'visualize' | 'profile'
|
|
42
47
|
|
|
43
|
-
export type TamaguiComponentPropsBaseBase = {
|
|
44
|
-
target?: string
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* When truthy passes through all props to a single child element, and avoids rendering its own element.
|
|
48
|
-
* Must pass just one child React element that will receive all the props.
|
|
49
|
-
*
|
|
50
|
-
* The option "except-style" will avoid passing any style related props.
|
|
51
|
-
*
|
|
52
|
-
* The option "web" will map all React Native style props to web props (onPress becomes onClick).
|
|
53
|
-
*
|
|
54
|
-
* The option "except-style-web" combines the except-style and web options.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
asChild?: boolean | 'except-style' | 'except-style-web' | 'web'
|
|
58
|
-
|
|
59
|
-
dangerouslySetInnerHTML?: { __html: string }
|
|
60
|
-
children?: any | any[]
|
|
61
|
-
|
|
62
|
-
debug?: DebugProp
|
|
63
|
-
|
|
64
|
-
disabled?: boolean
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Same as the web className property, useful for applying styles from CSS on web only
|
|
68
|
-
*/
|
|
69
|
-
className?: string
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* If given a theme it will only apply to this element, instead of passing down to children
|
|
73
|
-
*/
|
|
74
|
-
themeShallow?: boolean
|
|
75
|
-
|
|
76
|
-
themeInverse?: boolean
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Same as the web id property for setting a uid on an element
|
|
80
|
-
*/
|
|
81
|
-
id?: string
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Controls the output tag on web
|
|
85
|
-
* {@see https://developer.mozilla.org/en-US/docs/Web/HTML/Element}
|
|
86
|
-
*/
|
|
87
|
-
tag?:
|
|
88
|
-
| (string & {})
|
|
89
|
-
| 'address'
|
|
90
|
-
| 'article'
|
|
91
|
-
| 'aside'
|
|
92
|
-
| 'footer'
|
|
93
|
-
| 'header'
|
|
94
|
-
| 'h1'
|
|
95
|
-
| 'h2'
|
|
96
|
-
| 'h3'
|
|
97
|
-
| 'h4'
|
|
98
|
-
| 'h5'
|
|
99
|
-
| 'h6'
|
|
100
|
-
| 'main'
|
|
101
|
-
| 'nav'
|
|
102
|
-
| 'section'
|
|
103
|
-
| 'search'
|
|
104
|
-
| 'blockquote'
|
|
105
|
-
| 'dd'
|
|
106
|
-
| 'div'
|
|
107
|
-
| 'dl'
|
|
108
|
-
| 'dt'
|
|
109
|
-
| 'figcaption'
|
|
110
|
-
| 'figure'
|
|
111
|
-
| 'hr'
|
|
112
|
-
| 'li'
|
|
113
|
-
| 'ol'
|
|
114
|
-
| 'ul'
|
|
115
|
-
| 'p'
|
|
116
|
-
| 'pre'
|
|
117
|
-
| 'a'
|
|
118
|
-
| 'abbr'
|
|
119
|
-
| 'p'
|
|
120
|
-
| 'b'
|
|
121
|
-
| 'abbr'
|
|
122
|
-
| 'bdi'
|
|
123
|
-
| 'bdo'
|
|
124
|
-
| 'br'
|
|
125
|
-
| 'cite'
|
|
126
|
-
| 'code'
|
|
127
|
-
| 'data'
|
|
128
|
-
| 'dfn'
|
|
129
|
-
| 'em'
|
|
130
|
-
| 'i'
|
|
131
|
-
| 'kbd'
|
|
132
|
-
| 'mark'
|
|
133
|
-
| 'q'
|
|
134
|
-
| 'rp'
|
|
135
|
-
| 'rt'
|
|
136
|
-
| 'rtc'
|
|
137
|
-
| 'ruby'
|
|
138
|
-
| 's'
|
|
139
|
-
| 'samp'
|
|
140
|
-
| 'small'
|
|
141
|
-
| 'span'
|
|
142
|
-
| 'strong'
|
|
143
|
-
| 'sub'
|
|
144
|
-
| 'sup'
|
|
145
|
-
| 'time'
|
|
146
|
-
| 'u'
|
|
147
|
-
| 'var'
|
|
148
|
-
| 'wbr'
|
|
149
|
-
| 'area'
|
|
150
|
-
| 'audio'
|
|
151
|
-
| 'img'
|
|
152
|
-
| 'map'
|
|
153
|
-
| 'track'
|
|
154
|
-
| 'video'
|
|
155
|
-
| 'embed'
|
|
156
|
-
| 'object'
|
|
157
|
-
| 'param'
|
|
158
|
-
| 'picture'
|
|
159
|
-
| 'source'
|
|
160
|
-
| 'canvas'
|
|
161
|
-
| 'noscript'
|
|
162
|
-
| 'script'
|
|
163
|
-
| 'del'
|
|
164
|
-
| 'ins'
|
|
165
|
-
| 'caption'
|
|
166
|
-
| 'col'
|
|
167
|
-
| 'colgroup'
|
|
168
|
-
| 'table'
|
|
169
|
-
| 'thead'
|
|
170
|
-
| 'tbody'
|
|
171
|
-
| 'td'
|
|
172
|
-
| 'th'
|
|
173
|
-
| 'tr'
|
|
174
|
-
| 'button'
|
|
175
|
-
| 'datalist'
|
|
176
|
-
| 'fieldset'
|
|
177
|
-
| 'form'
|
|
178
|
-
| 'input'
|
|
179
|
-
| 'label'
|
|
180
|
-
| 'legend'
|
|
181
|
-
| 'meter'
|
|
182
|
-
| 'optgroup'
|
|
183
|
-
| 'option'
|
|
184
|
-
| 'output'
|
|
185
|
-
| 'progress'
|
|
186
|
-
| 'select'
|
|
187
|
-
| 'textarea'
|
|
188
|
-
| 'details'
|
|
189
|
-
| 'dialog'
|
|
190
|
-
| 'menu'
|
|
191
|
-
| 'summary'
|
|
192
|
-
| 'template'
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Applies a theme to this element
|
|
196
|
-
*/
|
|
197
|
-
theme?: ThemeName | null
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Marks this component as a group for use in styling children based on parents named group
|
|
201
|
-
* See: https://tamagui.dev/docs/intro/props
|
|
202
|
-
*/
|
|
203
|
-
group?: GroupNames
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Works only alongside group, when children of the group are using container based sizing on native you can hide them until parent is measured.
|
|
207
|
-
* See: https://tamagui.dev/docs/intro/props
|
|
208
|
-
*/
|
|
209
|
-
untilMeasured?: 'hide' | 'show'
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Equivalent to "name" property on styled() for automatically applying a theme
|
|
213
|
-
*/
|
|
214
|
-
componentName?: string
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Used for controlling the order of focus with keyboard or assistive device enavigation
|
|
218
|
-
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
219
|
-
*/
|
|
220
|
-
tabIndex?: string | number
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Equivalent to role="" attribute on web for accessibility
|
|
224
|
-
*/
|
|
225
|
-
role?: Role
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Disable all compiler optimization
|
|
229
|
-
*/
|
|
230
|
-
disableOptimization?: boolean
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Forces the pseudo style state to be on
|
|
234
|
-
*/
|
|
235
|
-
forceStyle?: 'hover' | 'press' | 'focus'
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Disables className output of styles, instead using only inline styles
|
|
239
|
-
*/
|
|
240
|
-
disableClassName?: boolean
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface WebOnlyPressEvents {
|
|
244
|
-
onPress?: PressableProps['onPress']
|
|
245
|
-
onLongPress?: PressableProps['onLongPress']
|
|
246
|
-
onPressIn?: PressableProps['onPress']
|
|
247
|
-
onPressOut?: PressableProps['onPress']
|
|
248
|
-
onHoverIn?: DivAttributes['onMouseEnter']
|
|
249
|
-
onHoverOut?: DivAttributes['onMouseLeave']
|
|
250
|
-
onMouseEnter?: DivAttributes['onMouseEnter']
|
|
251
|
-
onMouseLeave?: DivAttributes['onMouseLeave']
|
|
252
|
-
onMouseDown?: DivAttributes['onMouseDown']
|
|
253
|
-
onMouseUp?: DivAttributes['onMouseUp']
|
|
254
|
-
onFocus?: DivAttributes['onFocus']
|
|
255
|
-
onBlur?: DivAttributes['onBlur']
|
|
256
|
-
}
|
|
257
|
-
|
|
258
48
|
export interface TamaguiComponentPropsBase
|
|
259
49
|
extends TamaguiComponentPropsBaseBase,
|
|
260
50
|
WebOnlyPressEvents {}
|
|
@@ -285,7 +75,7 @@ export type TamaguiProjectInfo = {
|
|
|
285
75
|
|
|
286
76
|
// base props that are accepted by createComponent (additional to react-native-web)
|
|
287
77
|
|
|
288
|
-
type DivAttributes = HTMLAttributes<HTMLDivElement>
|
|
78
|
+
export type DivAttributes = HTMLAttributes<HTMLDivElement>
|
|
289
79
|
|
|
290
80
|
export type ReactComponentWithRef<Props, Ref> = ForwardRefExoticComponent<
|
|
291
81
|
Props & RefAttributes<Ref>
|
|
@@ -660,7 +450,7 @@ export type SpacerUniqueProps = {
|
|
|
660
450
|
}
|
|
661
451
|
|
|
662
452
|
export interface SpacerStyleProps
|
|
663
|
-
extends Omit<
|
|
453
|
+
extends Omit<StackStyleBase, keyof SpacerUniqueProps>,
|
|
664
454
|
SpacerUniqueProps {}
|
|
665
455
|
|
|
666
456
|
export type SpacerProps = WithThemeShorthandsPseudosMedia<SpacerStyleProps>
|
|
@@ -770,7 +560,7 @@ export type TamaguiSettings = TamaguiConfig['settings']
|
|
|
770
560
|
export type BaseStyleProps = {
|
|
771
561
|
[Key in keyof TextStylePropsBase]?: TextStyleProps[Key] | GetThemeValueForKey<Key>
|
|
772
562
|
} & {
|
|
773
|
-
[Key in keyof
|
|
563
|
+
[Key in keyof StackStyleBase]?: StackStyle[Key] | GetThemeValueForKey<Key>
|
|
774
564
|
}
|
|
775
565
|
|
|
776
566
|
export type CreateTamaguiProps = {
|
|
@@ -1458,7 +1248,7 @@ interface OverrideNonStyledProps
|
|
|
1458
1248
|
display?: 'inherit' | 'none' | 'inline' | 'block' | 'contents' | 'flex' | 'inline-flex'
|
|
1459
1249
|
}
|
|
1460
1250
|
|
|
1461
|
-
export interface
|
|
1251
|
+
export interface StackStyleBase
|
|
1462
1252
|
extends Omit<ViewStyle, keyof OverrideNonStyledProps | 'elevation'>,
|
|
1463
1253
|
TransformStyleProps,
|
|
1464
1254
|
ExtraStyleProps,
|
|
@@ -1499,9 +1289,9 @@ export interface StackNonStyleProps
|
|
|
1499
1289
|
style?: StyleProp<LooseCombinedObjects<React.CSSProperties, ViewStyle>>
|
|
1500
1290
|
}
|
|
1501
1291
|
|
|
1502
|
-
export type
|
|
1292
|
+
export type StackStyle = WithThemeShorthandsPseudosMedia<StackStyleBase>
|
|
1503
1293
|
|
|
1504
|
-
export type StackProps = StackNonStyleProps &
|
|
1294
|
+
export type StackProps = StackNonStyleProps & StackStyle
|
|
1505
1295
|
|
|
1506
1296
|
//
|
|
1507
1297
|
// Text props
|
|
@@ -1596,12 +1386,6 @@ export type TamaguiComponent<
|
|
|
1596
1386
|
__tama: [Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties]
|
|
1597
1387
|
}
|
|
1598
1388
|
|
|
1599
|
-
export type GetStyledProps<A extends StylableComponent> = A extends {
|
|
1600
|
-
__tama: [any, any, any, infer BaseStyles, infer VariantProps, any]
|
|
1601
|
-
}
|
|
1602
|
-
? BaseStyles & VariantProps
|
|
1603
|
-
: GetProps<A>
|
|
1604
|
-
|
|
1605
1389
|
export type InferGenericComponentProps<A> = A extends ComponentType<infer Props>
|
|
1606
1390
|
? Props
|
|
1607
1391
|
: A extends new (
|
|
@@ -1646,7 +1430,7 @@ export type GetBaseStyles<A, B> = A extends {
|
|
|
1646
1430
|
? C
|
|
1647
1431
|
: B extends { isText: true }
|
|
1648
1432
|
? TextStylePropsBase
|
|
1649
|
-
:
|
|
1433
|
+
: StackStyleBase
|
|
1650
1434
|
|
|
1651
1435
|
export type GetStyledVariants<A> = A extends {
|
|
1652
1436
|
__tama: [any, any, any, any, infer B, any]
|
|
@@ -1690,7 +1474,7 @@ export type StaticComponentObject<
|
|
|
1690
1474
|
export type TamaguiComponentExpectingVariants<
|
|
1691
1475
|
Props = {},
|
|
1692
1476
|
Variants extends Object = {},
|
|
1693
|
-
> = TamaguiComponent<Props, any, any, Variants>
|
|
1477
|
+
> = TamaguiComponent<Props, any, any, any, Variants>
|
|
1694
1478
|
|
|
1695
1479
|
export type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>> & {
|
|
1696
1480
|
config: TamaguiInternalConfig
|
|
@@ -1897,7 +1681,7 @@ export type GetStyleableProps<
|
|
|
1897
1681
|
? GetFinalProps<{}, BaseStyles & VariantProps>
|
|
1898
1682
|
: Props
|
|
1899
1683
|
: WithThemeShorthandsPseudosMedia<
|
|
1900
|
-
IsText extends true ? TextStylePropsBase :
|
|
1684
|
+
IsText extends true ? TextStylePropsBase : StackStyleBase
|
|
1901
1685
|
>
|
|
1902
1686
|
|
|
1903
1687
|
export type VariantDefinitionFromProps<MyProps, Val> = MyProps extends Object
|
|
@@ -2027,100 +1811,6 @@ export type ThemeVariantSpreadFunction<A extends PropLike> = VariantSpreadFuncti
|
|
|
2027
1811
|
* --------------------------------------------
|
|
2028
1812
|
*/
|
|
2029
1813
|
|
|
2030
|
-
export type SizeKeys =
|
|
2031
|
-
| 'width'
|
|
2032
|
-
| 'height'
|
|
2033
|
-
| 'minWidth'
|
|
2034
|
-
| 'minHeight'
|
|
2035
|
-
| 'maxWidth'
|
|
2036
|
-
| 'maxHeight'
|
|
2037
|
-
| 'shadowRadius'
|
|
2038
|
-
|
|
2039
|
-
export type ColorKeys =
|
|
2040
|
-
| 'color'
|
|
2041
|
-
| 'backgroundColor'
|
|
2042
|
-
| 'borderColor'
|
|
2043
|
-
| 'borderBottomColor'
|
|
2044
|
-
| 'borderTopColor'
|
|
2045
|
-
| 'borderLeftColor'
|
|
2046
|
-
| 'borderRightColor'
|
|
2047
|
-
| 'shadowColor'
|
|
2048
|
-
| 'outlineColor'
|
|
2049
|
-
| 'textShadowColor'
|
|
2050
|
-
| 'borderBlockColor'
|
|
2051
|
-
| 'borderBlockEndColor'
|
|
2052
|
-
| 'borderBlockStartColor'
|
|
2053
|
-
|
|
2054
|
-
export type SpaceKeys =
|
|
2055
|
-
| 'space'
|
|
2056
|
-
| 'padding'
|
|
2057
|
-
| 'paddingHorizontal'
|
|
2058
|
-
| 'paddingVertical'
|
|
2059
|
-
| 'paddingLeft'
|
|
2060
|
-
| 'paddingTop'
|
|
2061
|
-
| 'paddingBottom'
|
|
2062
|
-
| 'paddingLeft'
|
|
2063
|
-
| 'paddingRight'
|
|
2064
|
-
| 'paddingEnd'
|
|
2065
|
-
| 'paddingStart'
|
|
2066
|
-
| 'margin'
|
|
2067
|
-
| 'marginHorizontal'
|
|
2068
|
-
| 'marginVertical'
|
|
2069
|
-
| 'marginLeft'
|
|
2070
|
-
| 'marginTop'
|
|
2071
|
-
| 'marginBottom'
|
|
2072
|
-
| 'marginLeft'
|
|
2073
|
-
| 'marginRight'
|
|
2074
|
-
| 'marginEnd'
|
|
2075
|
-
| 'marginStart'
|
|
2076
|
-
| 'x'
|
|
2077
|
-
| 'y'
|
|
2078
|
-
| 'gap'
|
|
2079
|
-
| 'rowGap'
|
|
2080
|
-
| 'columnGap'
|
|
2081
|
-
| 'scale'
|
|
2082
|
-
| 'scaleX'
|
|
2083
|
-
| 'scaleY'
|
|
2084
|
-
| 'borderTopEndRadius'
|
|
2085
|
-
| 'borderTopLeftRadius'
|
|
2086
|
-
| 'borderTopRightRadius'
|
|
2087
|
-
| 'borderTopStartRadius'
|
|
2088
|
-
| 'borderBottomEndRadius'
|
|
2089
|
-
| 'borderBottomLeftRadius'
|
|
2090
|
-
| 'borderBottomRightRadius'
|
|
2091
|
-
| 'borderBottomStartRadius'
|
|
2092
|
-
| 'borderBottomWidth'
|
|
2093
|
-
| 'borderLeftWidth'
|
|
2094
|
-
| 'borderRadius'
|
|
2095
|
-
| 'borderRightWidth'
|
|
2096
|
-
| 'borderTopEndRadius'
|
|
2097
|
-
| 'borderTopLeftRadius'
|
|
2098
|
-
| 'borderTopRightRadius'
|
|
2099
|
-
| 'borderEndWidth'
|
|
2100
|
-
| 'borderStartWidth'
|
|
2101
|
-
| 'borderTopStartRadius'
|
|
2102
|
-
| 'borderTopWidth'
|
|
2103
|
-
| 'borderWidth'
|
|
2104
|
-
| 'left'
|
|
2105
|
-
| 'top'
|
|
2106
|
-
| 'right'
|
|
2107
|
-
| 'bottom'
|
|
2108
|
-
| 'shadowOffset'
|
|
2109
|
-
|
|
2110
|
-
export type TamaguiComponentState = {
|
|
2111
|
-
hover: boolean
|
|
2112
|
-
press: boolean
|
|
2113
|
-
pressIn: boolean
|
|
2114
|
-
focus: boolean
|
|
2115
|
-
unmounted: boolean | 'should-enter'
|
|
2116
|
-
animation?: null | {
|
|
2117
|
-
style?: any
|
|
2118
|
-
avoidClasses?: boolean
|
|
2119
|
-
}
|
|
2120
|
-
// for groups:
|
|
2121
|
-
group?: Record<string, GroupState>
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
1814
|
export type ResolveVariableAs = 'auto' | 'value' | 'variable' | 'none' | 'web'
|
|
2125
1815
|
|
|
2126
1816
|
export type SplitStyleProps = {
|
|
@@ -2246,7 +1936,7 @@ export type UseAnimationHook = (props: {
|
|
|
2246
1936
|
onDidAnimate?: any
|
|
2247
1937
|
delay?: number
|
|
2248
1938
|
}) => null | {
|
|
2249
|
-
style?:
|
|
1939
|
+
style?: StackStyleBase | StackStyleBase[]
|
|
2250
1940
|
}
|
|
2251
1941
|
|
|
2252
1942
|
export type GestureReponderEvent = Exclude<
|
|
@@ -2274,25 +1964,6 @@ export type GetStyleResult = {
|
|
|
2274
1964
|
|
|
2275
1965
|
export type ClassNamesObject = Record<string, string>
|
|
2276
1966
|
|
|
2277
|
-
export type TamaguiComponentEvents = {
|
|
2278
|
-
cancelable?: boolean | undefined
|
|
2279
|
-
disabled?: any
|
|
2280
|
-
hitSlop?: any
|
|
2281
|
-
delayLongPress?: any
|
|
2282
|
-
delayPressIn?: any
|
|
2283
|
-
delayPressOut?: any
|
|
2284
|
-
focusable?: any
|
|
2285
|
-
minPressDuration?: number | undefined
|
|
2286
|
-
onPressIn: ((e: any) => void) | undefined
|
|
2287
|
-
onPress: ((e: any) => void) | undefined
|
|
2288
|
-
onLongPress?: ((e: any) => void) | undefined
|
|
2289
|
-
onMouseEnter?: ((e: any) => void) | undefined
|
|
2290
|
-
onMouseLeave?: ((e: any) => void) | undefined
|
|
2291
|
-
onPressOut: ((e: any) => void) | undefined
|
|
2292
|
-
onFocus?: ((e: any) => void) | undefined
|
|
2293
|
-
onBlur?: ((e: any) => void) | undefined
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
1967
|
export type ModifyTamaguiComponentStyleProps<
|
|
2297
1968
|
Comp extends TamaguiComponent,
|
|
2298
1969
|
ChangedProps extends Object,
|
package/src/views/Stack.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent } from '../createComponent'
|
|
|
5
5
|
import type {
|
|
6
6
|
StackNonStyleProps,
|
|
7
7
|
StackProps,
|
|
8
|
-
|
|
8
|
+
StackStyleBase,
|
|
9
9
|
TamaguiElement,
|
|
10
10
|
} from '../types'
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ export const Stack = createComponent<
|
|
|
15
15
|
StackProps,
|
|
16
16
|
Stack,
|
|
17
17
|
StackNonStyleProps,
|
|
18
|
-
|
|
18
|
+
StackStyleBase
|
|
19
19
|
>({
|
|
20
20
|
acceptsClassName: true,
|
|
21
21
|
defaultProps: stackDefaultStyles,
|
package/src/views/View.tsx
CHANGED
|
@@ -5,14 +5,16 @@ import { createComponent } from '../createComponent'
|
|
|
5
5
|
import type {
|
|
6
6
|
StackNonStyleProps,
|
|
7
7
|
StackProps,
|
|
8
|
-
|
|
8
|
+
StackStyle,
|
|
9
|
+
StackStyleBase,
|
|
9
10
|
TamaguiElement,
|
|
10
11
|
} from '../types'
|
|
11
12
|
|
|
12
13
|
export type View = TamaguiElement
|
|
13
14
|
export type ViewProps = StackProps
|
|
14
15
|
export type ViewNonStyleProps = StackNonStyleProps
|
|
15
|
-
export type ViewStylePropsBase =
|
|
16
|
+
export type ViewStylePropsBase = StackStyleBase
|
|
17
|
+
export type ViewStyle = StackStyle
|
|
16
18
|
|
|
17
19
|
export const View = createComponent<
|
|
18
20
|
StackProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,EAEL,SAAS,EAMT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,YAAY,EAEZ,gBAAgB,
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAYN,MAAM,OAAO,CAAA;AAuBd,OAAO,EAEL,SAAS,EAMT,cAAc,EACd,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAElB,YAAY,EAEZ,gBAAgB,EAEhB,cAAc,EAMf,MAAM,SAAS,CAAA;AAiBhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AA6D3C,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE,EACnD,GAAG,SAAS,cAAc,GAAG,cAAc,EAC3C,SAAS,GAAG,KAAK,EACjB,UAAU,SAAS,MAAM,GAAG,KAAK,EACjC,YAAY,EAAE,YAAY,0EAirC3B;AAsBD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE,OAEjD;yBAFe,QAAQ;;;AAkBxB,eAAO,MAAM,MAAM,2FA0CjB,CAAA;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,mBAiGxD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TamaguiComponentState } from './
|
|
1
|
+
import { TamaguiComponentState } from './interfaces/TamaguiComponentState';
|
|
2
2
|
export declare const defaultComponentState: TamaguiComponentState;
|
|
3
3
|
export declare const defaultComponentStateMounted: TamaguiComponentState;
|
|
4
4
|
export declare const defaultComponentStateShouldEnter: TamaguiComponentState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaultComponentState.d.ts","sourceRoot":"","sources":["../src/defaultComponentState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"defaultComponentState.d.ts","sourceRoot":"","sources":["../src/defaultComponentState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAA;AAE1E,eAAO,MAAM,qBAAqB,EAAE,qBAMnC,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,qBAG1C,CAAA;AAED,eAAO,MAAM,gCAAgC,EAAE,qBAG9C,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { ComponentContextI, DebugProp, GetStyleResult, GetStyleState, SplitStyleProps, StaticConfig,
|
|
1
|
+
import type { ComponentContextI, DebugProp, GetStyleResult, GetStyleState, SplitStyleProps, StaticConfig, TextStyleProps, ThemeParsed } from '../types';
|
|
2
|
+
import type { TamaguiComponentState } from '../interfaces/TamaguiComponentState';
|
|
2
3
|
export type SplitStyles = ReturnType<typeof getSplitStyles>;
|
|
3
4
|
export type SplitStyleResult = ReturnType<typeof getSplitStyles>;
|
|
4
5
|
type StyleSplitter = (props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAEV,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,aAAa,EAOb,eAAe,EACf,YAAY,
|
|
1
|
+
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAEV,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,aAAa,EAOb,eAAe,EACf,YAAY,EAGZ,cAAc,EACd,WAAW,EAEZ,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AA4BhF,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAE3D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAMhE,KAAK,aAAa,GAAG,CACnB,KAAK,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC7B,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,qBAAqB,EACrC,UAAU,EAAE,eAAe,EAC3B,iBAAiB,CAAC,EAAE,cAAc,GAAG,IAAI,EACzC,OAAO,CAAC,EAAE,iBAAiB,EAE3B,WAAW,CAAC,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,SAAS,KACd,cAAc,CAAA;AAEnB,eAAO,MAAM,UAAU,MAAM,CAAA;AA+B7B,eAAO,MAAM,cAAc,EAAE,aAooC5B,CAAA;AA2DD,eAAO,MAAM,WAAW,eACV,aAAa,UACjB,MAAM,WACL,MAAM,wBACO,OAAO,KAC5B,cA2BF,CAAA;AAqBD,eAAO,MAAM,cAAc,EAAE,aAQ5B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SplitStyleProps,
|
|
1
|
+
import { SplitStyleProps, StackStyle, StaticConfig, ThemeParsed, UseMediaState } from '../types';
|
|
2
2
|
type UsePropsOptions = Pick<SplitStyleProps, 'noExpand' | 'noNormalize' | 'noClassNames' | 'resolveValues'> & {
|
|
3
3
|
disableExpandShorthands?: boolean;
|
|
4
4
|
forComponent?: {
|
|
@@ -8,7 +8,7 @@ type UsePropsOptions = Pick<SplitStyleProps, 'noExpand' | 'noNormalize' | 'noCla
|
|
|
8
8
|
export type PropsWithoutMediaStyles<A> = {
|
|
9
9
|
[Key in keyof A extends `$${string}` ? never : keyof A]?: A[Key];
|
|
10
10
|
};
|
|
11
|
-
type StyleLikeObject = (
|
|
11
|
+
type StyleLikeObject = (StackStyle & Record<string, any>) | Object;
|
|
12
12
|
/**
|
|
13
13
|
* Returns props and style as a single object, expanding and merging shorthands and media queries.
|
|
14
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProps.d.ts","sourceRoot":"","sources":["../../src/hooks/useProps.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"useProps.d.ts","sourceRoot":"","sources":["../../src/hooks/useProps.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,UAAU,CAAA;AAKjB,KAAK,eAAe,GAAG,IAAI,CACzB,eAAe,EACf,UAAU,GAAG,aAAa,GAAG,cAAc,GAAG,eAAe,CAC9D,GAAG;IACF,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,YAAY,CAAC,EAAE;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAA;CAC9C,CAAA;AAED,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI;KAEtC,GAAG,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,EAAE,GAAG,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC;CACjE,CAAA;AAED,KAAK,eAAe,GAAG,CAAC,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,MAAM,CAAA;AAElE;;;;;KAKK;AACL,wBAAgB,QAAQ,CAAC,CAAC,SAAS,eAAe,EAChD,KAAK,EAAE,CAAC,EACR,IAAI,CAAC,EAAE,eAAe,GACrB,uBAAuB,CAAC,CAAC,CAAC,CAW5B;AAED;;;;;KAKK;AACL,wBAAgB,QAAQ,CAAC,CAAC,SAAS,eAAe,EAChD,KAAK,EAAE,CAAC,EACR,IAAI,CAAC,EAAE,eAAe,GACrB,uBAAuB,CAAC,CAAC,CAAC,CAE5B;AAED;;;;;KAKK;AACL,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,eAAe,EACxD,KAAK,EAAE,CAAC,EACR,IAAI,CAAC,EAAE,eAAe,GACrB,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,CAyBtF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type SizeKeys = 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'shadowRadius';
|
|
2
|
+
export type ColorKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderTopColor' | 'borderLeftColor' | 'borderRightColor' | 'shadowColor' | 'outlineColor' | 'textShadowColor' | 'borderBlockColor' | 'borderBlockEndColor' | 'borderBlockStartColor';
|
|
3
|
+
export type SpaceKeys = 'space' | 'padding' | 'paddingHorizontal' | 'paddingVertical' | 'paddingLeft' | 'paddingTop' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingEnd' | 'paddingStart' | 'margin' | 'marginHorizontal' | 'marginVertical' | 'marginLeft' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginEnd' | 'marginStart' | 'x' | 'y' | 'gap' | 'rowGap' | 'columnGap' | 'scale' | 'scaleX' | 'scaleY' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderTopStartRadius' | 'borderBottomEndRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderBottomStartRadius' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderRadius' | 'borderRightWidth' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderEndWidth' | 'borderStartWidth' | 'borderTopStartRadius' | 'borderTopWidth' | 'borderWidth' | 'left' | 'top' | 'right' | 'bottom' | 'shadowOffset';
|
|
4
|
+
//# sourceMappingURL=KeyTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyTypes.d.ts","sourceRoot":"","sources":["../../src/interfaces/KeyTypes.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,cAAc,CAAA;AAElB,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,CAAA;AAE3B,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,aAAa,GACb,YAAY,GACZ,eAAe,GACf,aAAa,GACb,cAAc,GACd,YAAY,GACZ,cAAc,GACd,QAAQ,GACR,kBAAkB,GAClB,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,cAAc,GACd,YAAY,GACZ,aAAa,GACb,WAAW,GACX,aAAa,GACb,GAAG,GACH,GAAG,GACH,KAAK,GACL,QAAQ,GACR,WAAW,GACX,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,sBAAsB,GACtB,uBAAuB,GACvB,wBAAwB,GACxB,yBAAyB,GACzB,yBAAyB,GACzB,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,kBAAkB,GAClB,oBAAoB,GACpB,qBAAqB,GACrB,sBAAsB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,sBAAsB,GACtB,gBAAgB,GAChB,aAAa,GACb,MAAM,GACN,KAAK,GACL,OAAO,GACP,QAAQ,GACR,cAAc,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type TamaguiComponentEvents = {
|
|
2
|
+
cancelable?: boolean | undefined;
|
|
3
|
+
disabled?: any;
|
|
4
|
+
hitSlop?: any;
|
|
5
|
+
delayLongPress?: any;
|
|
6
|
+
delayPressIn?: any;
|
|
7
|
+
delayPressOut?: any;
|
|
8
|
+
focusable?: any;
|
|
9
|
+
minPressDuration?: number | undefined;
|
|
10
|
+
onPressIn: ((e: any) => void) | undefined;
|
|
11
|
+
onPress: ((e: any) => void) | undefined;
|
|
12
|
+
onLongPress?: ((e: any) => void) | undefined;
|
|
13
|
+
onMouseEnter?: ((e: any) => void) | undefined;
|
|
14
|
+
onMouseLeave?: ((e: any) => void) | undefined;
|
|
15
|
+
onPressOut: ((e: any) => void) | undefined;
|
|
16
|
+
onFocus?: ((e: any) => void) | undefined;
|
|
17
|
+
onBlur?: ((e: any) => void) | undefined;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=TamaguiComponentEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TamaguiComponentEvents.d.ts","sourceRoot":"","sources":["../../src/interfaces/TamaguiComponentEvents.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,OAAO,CAAC,EAAE,GAAG,CAAA;IACb,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB,YAAY,CAAC,EAAE,GAAG,CAAA;IAClB,aAAa,CAAC,EAAE,GAAG,CAAA;IACnB,SAAS,CAAC,EAAE,GAAG,CAAA;IACf,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACzC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACvC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5C,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC7C,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC7C,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IACxC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CACxC,CAAA"}
|