@tamagui/core 2.7.7 → 3.0.0-beta.637.1
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/createOptimizedView.cjs +15 -18
- package/dist/cjs/createOptimizedView.native.cjs +179 -0
- package/dist/cjs/createOptimizedView.native.js +159 -258
- package/dist/cjs/createOptimizedView.native.js.map +1 -1
- package/dist/cjs/dom.cjs +19 -0
- package/dist/cjs/dom.native.cjs +21 -0
- package/dist/cjs/dom.native.js +23 -0
- package/dist/cjs/dom.native.js.map +1 -0
- package/dist/cjs/getBaseViews.cjs +16 -19
- package/dist/cjs/getBaseViews.native.cjs +44 -0
- package/dist/cjs/getBaseViews.native.js +31 -26
- package/dist/cjs/getBaseViews.native.js.map +1 -1
- package/dist/cjs/index.cjs +32 -98
- package/dist/cjs/index.native.cjs +51 -0
- package/dist/cjs/index.native.js +32 -70
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/inject-styles.cjs +25 -31
- package/dist/cjs/inject-styles.native.cjs +39 -0
- package/dist/cjs/inject-styles.native.js +26 -31
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +34 -0
- package/dist/cjs/internal-runtime.native.cjs +36 -0
- package/dist/cjs/internal-runtime.native.js +38 -0
- package/dist/cjs/internal-runtime.native.js.map +1 -0
- package/dist/cjs/reactNativeTypes.cjs +10 -11
- package/dist/cjs/reactNativeTypes.native.cjs +19 -0
- package/dist/cjs/reactNativeTypes.native.js +10 -10
- package/dist/cjs/reactNativeTypes.native.js.map +1 -1
- package/dist/cjs/runtime.cjs +72 -0
- package/dist/cjs/runtime.native.cjs +77 -0
- package/dist/cjs/runtime.native.js +79 -0
- package/dist/cjs/runtime.native.js.map +1 -0
- package/dist/cjs/setupMedia.cjs +27 -0
- package/dist/cjs/setupMedia.native.cjs +32 -0
- package/dist/cjs/setupMedia.native.js +34 -0
- package/dist/cjs/setupMedia.native.js.map +1 -0
- package/dist/esm/createOptimizedView.mjs +2 -1
- package/dist/esm/createOptimizedView.mjs.map +1 -1
- package/dist/esm/createOptimizedView.native.js +142 -234
- package/dist/esm/createOptimizedView.native.js.map +1 -1
- package/dist/esm/dom.mjs +1 -0
- package/dist/esm/dom.native.js +1 -0
- package/dist/esm/getBaseViews.mjs +2 -1
- package/dist/esm/getBaseViews.mjs.map +1 -1
- package/dist/esm/getBaseViews.native.js +12 -9
- package/dist/esm/getBaseViews.native.js.map +1 -1
- package/dist/esm/index.js +12 -78
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +12 -78
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +12 -52
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/inject-styles.mjs +11 -13
- package/dist/esm/inject-styles.mjs.map +1 -1
- package/dist/esm/inject-styles.native.js +12 -14
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/esm/internal-runtime.mjs +4 -0
- package/dist/esm/internal-runtime.native.js +4 -0
- package/dist/esm/reactNativeTypes.mjs +0 -2
- package/dist/esm/reactNativeTypes.native.js +0 -2
- package/dist/esm/runtime.mjs +47 -0
- package/dist/esm/runtime.mjs.map +1 -0
- package/dist/esm/runtime.native.js +52 -0
- package/dist/esm/runtime.native.js.map +1 -0
- package/dist/esm/setupMedia.mjs +6 -0
- package/dist/esm/setupMedia.mjs.map +1 -0
- package/dist/esm/setupMedia.native.js +10 -0
- package/dist/esm/setupMedia.native.js.map +1 -0
- package/dist/native.cjs +18641 -15870
- package/dist/test.native.cjs +9286 -4476
- package/internal-runtime/index.cjs +2 -0
- package/internal-runtime/index.js +4 -0
- package/internal-runtime/index.native.js +2 -0
- package/package.json +55 -13
- package/reset.css +1 -9
- package/src/createOptimizedView.native.tsx +8 -6
- package/src/createOptimizedView.tsx +2 -1
- package/src/dom.native.ts +2 -0
- package/src/dom.ts +9 -0
- package/src/getBaseViews.native.ts +13 -6
- package/src/index.tsx +16 -260
- package/src/internal-runtime.tsx +32 -0
- package/src/runtime.tsx +197 -0
- package/src/setupMedia.native.ts +7 -0
- package/src/setupMedia.ts +3 -0
- package/types/createOptimizedView.d.ts +1 -1
- package/types/createOptimizedView.d.ts.map +1 -1
- package/types/createOptimizedView.native.d.ts +2 -2
- package/types/createOptimizedView.native.d.ts.map +1 -1
- package/types/dom.d.ts +9 -0
- package/types/dom.d.ts.map +1 -0
- package/types/dom.native.d.ts +3 -0
- package/types/dom.native.d.ts.map +1 -0
- package/types/getBaseViews.native.d.ts.map +1 -1
- package/types/index.d.ts +5 -4
- package/types/index.d.ts.map +1 -1
- package/types/inject-styles.d.ts.map +1 -1
- package/types/internal-runtime.d.ts +4 -0
- package/types/internal-runtime.d.ts.map +1 -0
- package/types/runtime.d.ts +4 -0
- package/types/runtime.d.ts.map +1 -0
- package/types/setupMedia.d.ts +2 -0
- package/types/setupMedia.d.ts.map +1 -0
- package/types/setupMedia.native.d.ts +2 -0
- package/types/setupMedia.native.d.ts.map +1 -0
- package/.turbo/turbo-build.log +0 -4
- package/bundle-native.mjs +0 -22
- package/dist/esm/reactNativeTypes.mjs.map +0 -1
- package/dist/esm/reactNativeTypes.native.js.map +0 -1
- package/tsconfig.json +0 -30
package/src/runtime.tsx
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one platform setup path for `@tamagui/core`: native base views, the element
|
|
3
|
+
* layout/measure hooks, the react-native media driver, and the provider wrapper
|
|
4
|
+
* that enables layout measurement.
|
|
5
|
+
*
|
|
6
|
+
* Importing this module runs `setupHooks` as a side effect. Both the regular root
|
|
7
|
+
* (`@tamagui/core`) and the private `@tamagui/core/internal-runtime` entry import
|
|
8
|
+
* it, so setup happens exactly once and import order never selects behavior.
|
|
9
|
+
*
|
|
10
|
+
* It reaches the shared runtime through `@tamagui/web/internal-runtime` rather than
|
|
11
|
+
* the `@tamagui/web` root, so a frontend package that only needs setup does not also
|
|
12
|
+
* pull in the regular inline-style frontend's public bindings.
|
|
13
|
+
*/
|
|
14
|
+
import { isWeb, useIsomorphicLayoutEffect } from '@tamagui/constants'
|
|
15
|
+
import { useContext } from 'react'
|
|
16
|
+
import {
|
|
17
|
+
createMeasure,
|
|
18
|
+
createMeasureInWindow,
|
|
19
|
+
createMeasureLayout,
|
|
20
|
+
enable,
|
|
21
|
+
useElementLayout,
|
|
22
|
+
} from '@tamagui/use-element-layout'
|
|
23
|
+
import type {
|
|
24
|
+
TamaguiProviderProps,
|
|
25
|
+
createTamagui as createTamaguiWebType,
|
|
26
|
+
} from '@tamagui/web'
|
|
27
|
+
import {
|
|
28
|
+
TamaguiProvider as WebTamaguiProvider,
|
|
29
|
+
createTamagui as createTamaguiWeb,
|
|
30
|
+
setupHooks,
|
|
31
|
+
} from '@tamagui/web/internal-runtime'
|
|
32
|
+
import { createOptimizedView } from './createOptimizedView'
|
|
33
|
+
import { getBaseViews } from './getBaseViews'
|
|
34
|
+
import { setupMedia } from './setupMedia'
|
|
35
|
+
|
|
36
|
+
type GestureEnabledFreezeState = {
|
|
37
|
+
frozen: boolean
|
|
38
|
+
enabled: boolean
|
|
39
|
+
warned: boolean
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const GESTURE_STATE_KEY = '__tamagui_gesture__'
|
|
43
|
+
const GESTURE_ENABLED_FREEZE_KEY = '__tamagui_gesture_enabled_freeze__'
|
|
44
|
+
|
|
45
|
+
function freezeGestureHandlerEnabledMode() {
|
|
46
|
+
const g = globalThis as typeof globalThis & {
|
|
47
|
+
[GESTURE_STATE_KEY]?: { enabled?: boolean }
|
|
48
|
+
[GESTURE_ENABLED_FREEZE_KEY]?: GestureEnabledFreezeState
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const freezeState = (g[GESTURE_ENABLED_FREEZE_KEY] ??= {
|
|
52
|
+
frozen: false,
|
|
53
|
+
enabled: false,
|
|
54
|
+
warned: false,
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
if (freezeState.frozen) {
|
|
58
|
+
return
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
freezeState.frozen = true
|
|
62
|
+
freezeState.enabled = Boolean(g[GESTURE_STATE_KEY]?.enabled)
|
|
63
|
+
freezeState.warned = false
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// adds useElementLayout enable
|
|
67
|
+
export const TamaguiProvider = (props: TamaguiProviderProps) => {
|
|
68
|
+
if (process.env.TAMAGUI_TARGET === 'native') {
|
|
69
|
+
freezeGestureHandlerEnabledMode()
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
useIsomorphicLayoutEffect(() => {
|
|
73
|
+
enable()
|
|
74
|
+
}, [])
|
|
75
|
+
|
|
76
|
+
return <WebTamaguiProvider {...props} />
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// automate using the react native media driver
|
|
80
|
+
export const createTamagui: typeof createTamaguiWebType = (conf) => {
|
|
81
|
+
if (conf.media) {
|
|
82
|
+
conf.media = setupMedia(conf.media)
|
|
83
|
+
}
|
|
84
|
+
return createTamaguiWeb(conf)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const baseViews = getBaseViews()
|
|
88
|
+
|
|
89
|
+
// setup internal hooks:
|
|
90
|
+
|
|
91
|
+
setupHooks({
|
|
92
|
+
getBaseViews,
|
|
93
|
+
|
|
94
|
+
setElementProps: (node) => {
|
|
95
|
+
if (process.env.TAMAGUI_TARGET === 'web') {
|
|
96
|
+
// web only
|
|
97
|
+
if (node && !node['measure']) {
|
|
98
|
+
node.measure ||= createMeasure(node)
|
|
99
|
+
node.measureInWindow ||= createMeasureInWindow(node)
|
|
100
|
+
node.measureLayout ||= createMeasureLayout(node)
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
|
|
106
|
+
if (process.env.TAMAGUI_TARGET === 'web') {
|
|
107
|
+
const isDOM = typeof elementType === 'string'
|
|
108
|
+
|
|
109
|
+
// replicate react-native-web functionality
|
|
110
|
+
const {
|
|
111
|
+
// remove event props handles by useResponderEvents
|
|
112
|
+
onMoveShouldSetResponder,
|
|
113
|
+
onMoveShouldSetResponderCapture,
|
|
114
|
+
onResponderEnd,
|
|
115
|
+
onResponderGrant,
|
|
116
|
+
onResponderMove,
|
|
117
|
+
onResponderReject,
|
|
118
|
+
onResponderRelease,
|
|
119
|
+
onResponderStart,
|
|
120
|
+
onResponderTerminate,
|
|
121
|
+
onResponderTerminationRequest,
|
|
122
|
+
onScrollShouldSetResponder,
|
|
123
|
+
onScrollShouldSetResponderCapture,
|
|
124
|
+
onSelectionChangeShouldSetResponder,
|
|
125
|
+
onSelectionChangeShouldSetResponderCapture,
|
|
126
|
+
onStartShouldSetResponder,
|
|
127
|
+
onStartShouldSetResponderCapture,
|
|
128
|
+
|
|
129
|
+
// android
|
|
130
|
+
collapsable,
|
|
131
|
+
focusable,
|
|
132
|
+
|
|
133
|
+
// deprecated,
|
|
134
|
+
accessible,
|
|
135
|
+
accessibilityDisabled,
|
|
136
|
+
|
|
137
|
+
onLayout,
|
|
138
|
+
hrefAttrs,
|
|
139
|
+
|
|
140
|
+
...plainDOMProps
|
|
141
|
+
} = propsIn
|
|
142
|
+
|
|
143
|
+
if (willHydrate || isDOM) {
|
|
144
|
+
useElementLayout(stateRef, !isDOM ? undefined : (onLayout as any))
|
|
145
|
+
// responder events removed for web - use native pointer/touch events instead
|
|
146
|
+
// the onResponder* props are stripped above and not passed to DOM
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (isDOM) {
|
|
150
|
+
// TODO move into getSplitStyles
|
|
151
|
+
if (plainDOMProps.href && hrefAttrs) {
|
|
152
|
+
const { download, rel, target } = hrefAttrs
|
|
153
|
+
if (download != null) {
|
|
154
|
+
plainDOMProps.download = download
|
|
155
|
+
}
|
|
156
|
+
if (rel) {
|
|
157
|
+
plainDOMProps.rel = rel
|
|
158
|
+
}
|
|
159
|
+
if (typeof target === 'string') {
|
|
160
|
+
plainDOMProps.target = target.charAt(0) !== '_' ? `_${target}` : target
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return plainDOMProps
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
// attempt at properly fixing RN input, but <Pressable><TextInput /> just doesnt work on RN
|
|
169
|
+
...(process.env.TAMAGUI_TARGET === 'native' && {
|
|
170
|
+
useChildren(elementType, children, viewProps, isPassthrough) {
|
|
171
|
+
// hook: read TextAncestor before ANY per-render branch — elementType and
|
|
172
|
+
// isPassthrough change between renders (Adapt/Popover toggle passThrough)
|
|
173
|
+
// and must not change the hook count. baseViews resolves once at module
|
|
174
|
+
// load, so the TextAncestor presence branch is constant for the app's
|
|
175
|
+
// lifetime (rules-of-hooks safe, same pattern as the isAndroid-gated
|
|
176
|
+
// NativeMenuContext read in createComponent).
|
|
177
|
+
const isInText = baseViews.TextAncestor
|
|
178
|
+
? // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
179
|
+
Boolean(useContext(baseViews.TextAncestor))
|
|
180
|
+
: false
|
|
181
|
+
|
|
182
|
+
if (process.env.NODE_ENV === 'test') {
|
|
183
|
+
// test mode - just use regular views since optimizations cause weirdness
|
|
184
|
+
return
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (isPassthrough) {
|
|
188
|
+
return
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (elementType === baseViews.View && baseViews.TextAncestor) {
|
|
192
|
+
// optimize view
|
|
193
|
+
return createOptimizedView(children, viewProps, baseViews, isInText)
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
}),
|
|
197
|
+
})
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function createOptimizedView(children: any, viewProps: Record<string, any>, baseViews: any): void;
|
|
1
|
+
export declare function createOptimizedView(children: any, viewProps: Record<string, any>, baseViews: any, isInText: boolean): void;
|
|
2
2
|
//# sourceMappingURL=createOptimizedView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOptimizedView.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.tsx"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"createOptimizedView.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.tsx"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE,GAAG,EACd,QAAQ,EAAE,OAAO,QACf"}
|
|
@@ -10,6 +10,6 @@ import React, { Context } from 'react';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function createOptimizedView(children: any, viewProps: Record<string, any>, baseViews: {
|
|
12
12
|
TextAncestor: Context<any>;
|
|
13
|
-
}): React.DOMElement<Record<string, any>, Element> | React.FunctionComponentElement<React.ProviderProps<any>>;
|
|
14
|
-
export declare function getAccessibilityRoleFromRole(role: any): "alert" | "button" | "checkbox" | "combobox" | "grid" | "header" | "image" | "link" | "list" | "menu" | "menubar" | "menuitem" | "none" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "search" | "
|
|
13
|
+
}, isInText: boolean): React.DOMElement<Record<string, any>, Element> | React.FunctionComponentElement<React.ProviderProps<any>>;
|
|
14
|
+
export declare function getAccessibilityRoleFromRole(role: any): "adjustable" | "alert" | "button" | "checkbox" | "combobox" | "grid" | "header" | "image" | "link" | "list" | "menu" | "menubar" | "menuitem" | "none" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "search" | "spinbutton" | "summary" | "switch" | "tab" | "tablist" | "timer" | "toolbar" | undefined;
|
|
15
15
|
//# sourceMappingURL=createOptimizedView.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOptimizedView.native.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;;GAQG;AAEH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE;IAAE,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"createOptimizedView.native.d.ts","sourceRoot":"","sources":["../src/createOptimizedView.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;;GAQG;AAEH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9B,SAAS,EAAE;IAAE,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,CAAA;CAAE,EAGzC,QAAQ,EAAE,OAAO,6GA+HlB;AAED,wBAAgB,4BAA4B,CAAC,IAAI,KAAA,wTAuIhD"}
|
package/types/dom.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@tamagui/core/dom` — standalone Tamagui DOM.
|
|
3
|
+
*
|
|
4
|
+
* `html.*`, `style()`, and on native the DOM primitives the compiler injects.
|
|
5
|
+
* The entry is compile-only on both platforms; see `standalone.ts` in
|
|
6
|
+
* `@tamagui/web` for what that means and why.
|
|
7
|
+
*/
|
|
8
|
+
export * from '@tamagui/web/dom';
|
|
9
|
+
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../src/dom.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.native.d.ts","sourceRoot":"","sources":["../src/dom.native.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,cAAc,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBaseViews.native.d.ts","sourceRoot":"","sources":["../src/getBaseViews.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBaseViews.native.d.ts","sourceRoot":"","sources":["../src/getBaseViews.native.ts"],"names":[],"mappings":"AAOA,wBAAgB,YAAY;IAIxB,IAAI;IACJ,IAAI;IACJ,YAAY;IACZ,UAAU;IACV,SAAS;EAEZ"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from '@tamagui/web';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export { SizeContext, createSizeContext, createSizeTable, defaultTokenSizePolicy, resolveSizeToken, resolveTokenSize, } from '@tamagui/size';
|
|
3
|
+
export type * from '@tamagui/size';
|
|
4
|
+
export { createRefComponent, type RefProp } from '@tamagui/compose-refs';
|
|
5
|
+
import type { StackNonStyleProps, StackStyleBase, TamaDefer, TamaguiComponent, TamaguiElement, TamaguiTextElement, TextNonStyleProps, TextProps, TextStylePropsBase } from '@tamagui/web';
|
|
4
6
|
import type { RNTextProps, RNViewProps } from './reactNativeTypes';
|
|
5
7
|
export { LayoutMeasurementController, registerLayoutNode, setOnLayoutStrategy, type LayoutEvent, } from '@tamagui/use-element-layout';
|
|
6
8
|
type RNExclusiveViewProps = Omit<RNViewProps, keyof StackNonStyleProps>;
|
|
@@ -12,8 +14,7 @@ export interface RNTamaguiTextNonStyleProps extends TextNonStyleProps, RNExclusi
|
|
|
12
14
|
}
|
|
13
15
|
type RNTamaguiText = TamaguiComponent<TamaDefer, TamaguiTextElement, RNTamaguiTextNonStyleProps, TextStylePropsBase, {}>;
|
|
14
16
|
export * from './reactNativeTypes';
|
|
15
|
-
export
|
|
16
|
-
export declare const createTamagui: typeof createTamaguiWeb;
|
|
17
|
+
export { TamaguiProvider, createTamagui } from './runtime';
|
|
17
18
|
export declare const View: RNTamaguiView;
|
|
18
19
|
export declare const Text: RNTamaguiText;
|
|
19
20
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,eAAe,CAAA;AACtB,mBAAmB,eAAe,CAAA;AAClC,OAAO,EAAE,kBAAkB,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAExE,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAErB,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAGlE,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,WAAW,GACjB,MAAM,6BAA6B,CAAA;AAIpC,KAAK,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,kBAAkB,CAAC,CAAA;AACvE,MAAM,WAAW,0BACf,SAAQ,kBAAkB,EAAE,oBAAoB;CAAG;AAErD,KAAK,aAAa,GAAG,gBAAgB,CACnC,SAAS,EACT,cAAc,EACd,0BAA0B,EAC1B,cAAc,EACd,EAAE,CACH,CAAA;AAED,KAAK,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,SAAS,CAAC,CAAA;AAC9D,MAAM,WAAW,0BACf,SAAQ,iBAAiB,EAAE,oBAAoB;CAAG;AAEpD,KAAK,aAAa,GAAG,gBAAgB,CACnC,SAAS,EACT,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,EAAE,CACH,CAAA;AAID,cAAc,oBAAoB,CAAA;AAGlC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAI1D,eAAO,MAAM,IAAI,EAAqB,aAAa,CAAA;AACnD,eAAO,MAAM,IAAI,EAAqB,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-styles.d.ts","sourceRoot":"","sources":["../src/inject-styles.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"inject-styles.d.ts","sourceRoot":"","sources":["../src/inject-styles.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,eAAO,MAAM,YAAY,sBAAuB,mBAAmB,SAUlE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { STYLE_FRONTEND_PASSTHROUGH_PREFIX, STYLE_FRONTEND_PREPROCESSED, createFrontendProgram, createFrontendStyled, createFrontendViews, plainValueToPayload, regularStyleFrontend, } from '@tamagui/web/internal-runtime';
|
|
2
|
+
export type { FrontendProgramValue } from '@tamagui/web/internal-runtime';
|
|
3
|
+
export type { FrontendComponent, FrontendStaticConfig, StyleFrontend, StyleFrontendConfig, } from '@tamagui/web/internal-runtime';
|
|
4
|
+
//# sourceMappingURL=internal-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-runtime.d.ts","sourceRoot":"","sources":["../src/internal-runtime.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,+BAA+B,CAAA;AACtC,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,GACpB,MAAM,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TamaguiProviderProps, createTamagui as createTamaguiWebType } from '@tamagui/web';
|
|
2
|
+
export declare const TamaguiProvider: (props: TamaguiProviderProps) => import("react").JSX.Element;
|
|
3
|
+
export declare const createTamagui: typeof createTamaguiWebType;
|
|
4
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,IAAI,oBAAoB,EACtC,MAAM,cAAc,CAAA;AAyCrB,eAAO,MAAM,eAAe,UAAW,oBAAoB,gCAU1D,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,OAAO,oBAKlC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupMedia.d.ts","sourceRoot":"","sources":["../src/setupMedia.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAEjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupMedia.native.d.ts","sourceRoot":"","sources":["../src/setupMedia.native.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAGjF"}
|
package/.turbo/turbo-build.log
DELETED
package/bundle-native.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { bundleNative } from '@tamagui/native-bundle'
|
|
4
|
-
|
|
5
|
-
// Bundle for production (native.cjs)
|
|
6
|
-
await bundleNative({
|
|
7
|
-
entry: 'src/index.tsx',
|
|
8
|
-
outDir: 'dist',
|
|
9
|
-
fileName: 'native.cjs',
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
// Bundle for tests (test.native.cjs)
|
|
13
|
-
// Externalizes react-native so it can be mocked at runtime by vitest-react-native
|
|
14
|
-
await bundleNative({
|
|
15
|
-
entry: 'src/index.tsx',
|
|
16
|
-
outDir: 'dist',
|
|
17
|
-
fileName: 'test.native.cjs',
|
|
18
|
-
isTest: true,
|
|
19
|
-
define: {
|
|
20
|
-
'process.env.NODE_ENV': JSON.stringify('test'),
|
|
21
|
-
},
|
|
22
|
-
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
|
package/tsconfig.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"composite": true,
|
|
5
|
-
"strict": true
|
|
6
|
-
},
|
|
7
|
-
"exclude": [
|
|
8
|
-
"./native.d.ts",
|
|
9
|
-
"./native-test.d.ts",
|
|
10
|
-
"./types",
|
|
11
|
-
"types",
|
|
12
|
-
"dist",
|
|
13
|
-
"**/__tests__",
|
|
14
|
-
"vite.bundle.config.ts"
|
|
15
|
-
],
|
|
16
|
-
"references": [
|
|
17
|
-
{
|
|
18
|
-
"path": "../react-native-use-pressable"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "../react-native-use-responder-events"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"path": "../use-event"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "../web"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|