@tamagui/web 3.0.0-beta.1479.1 → 3.0.0-beta.1540.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/eventHandling.native.cjs +2 -2
- package/dist/cjs/eventHandling.native.js +2 -2
- package/dist/cjs/eventHandling.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.cjs +25 -1
- package/dist/cjs/helpers/expandStyle.native.cjs +25 -1
- package/dist/cjs/helpers/expandStyle.native.js +25 -1
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.native.cjs +16 -6
- package/dist/cjs/helpers/getSplitStyles.native.js +16 -6
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +47 -120
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +47 -120
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.cjs +2 -2
- package/dist/cjs/hooks/useThemeState.native.cjs +2 -2
- package/dist/cjs/hooks/useThemeState.native.js +2 -2
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/eventHandling.native.js +2 -2
- package/dist/esm/eventHandling.native.js.map +1 -1
- package/dist/esm/helpers/expandStyle.mjs +22 -1
- package/dist/esm/helpers/expandStyle.mjs.map +1 -1
- package/dist/esm/helpers/expandStyle.native.js +22 -1
- package/dist/esm/helpers/expandStyle.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +17 -7
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/mainThreadPressEvents.native.js +48 -121
- package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +2 -2
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +2 -2
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/package.json +16 -16
- package/src/eventHandling.native.ts +4 -4
- package/src/helpers/expandStyle.ts +26 -0
- package/src/helpers/getSplitStyles.tsx +18 -1
- package/src/helpers/mainThreadPressEvents.native.ts +66 -187
- package/src/hooks/useThemeState.ts +10 -2
- package/types/helpers/expandStyle.d.ts +1 -0
- package/types/helpers/expandStyle.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/mainThreadPressEvents.native.d.ts +0 -7
- package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts.map +1 -1
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
flushDirectStyles,
|
|
55
55
|
registerAtomicSlot,
|
|
56
56
|
} from './getCSSStylesAtomic'
|
|
57
|
-
import { expandStyle } from './expandStyle'
|
|
57
|
+
import { expandStyle, nativeShorthandLogicals } from './expandStyle'
|
|
58
58
|
import {
|
|
59
59
|
classifyBorderComponents,
|
|
60
60
|
splitComponents,
|
|
@@ -3612,6 +3612,23 @@ function emitValue(
|
|
|
3612
3612
|
: `${value} 0px`
|
|
3613
3613
|
}
|
|
3614
3614
|
|
|
3615
|
+
if (process.env.TAMAGUI_TARGET === 'native' && !cursor && !state.styleProps.noExpand) {
|
|
3616
|
+
const logicals = nativeShorthandLogicals[property]
|
|
3617
|
+
const slots = (state as DirectState).flatSlots
|
|
3618
|
+
if (logicals && slots) {
|
|
3619
|
+
for (let index = 0; index < logicals.length; index++) {
|
|
3620
|
+
const list = slots.get(logicals[index])
|
|
3621
|
+
if (!list) continue
|
|
3622
|
+
// only the unconditional records: a media or pseudo longhand still
|
|
3623
|
+
// wins while its clause is active, the same as on web
|
|
3624
|
+
for (let entry = list.length; entry--; ) {
|
|
3625
|
+
if (list[entry][3] === '') list.splice(entry, 1)
|
|
3626
|
+
}
|
|
3627
|
+
if (!list.length) clearDirectStyle(state, logicals[index])
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3615
3632
|
const expanded =
|
|
3616
3633
|
process.env.TAMAGUI_TARGET === 'native' && !state.styleProps.noExpand
|
|
3617
3634
|
? expandStyle(property, value, state.conf.settings.styleCompat || 'web')
|
|
@@ -1,37 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fallback press handling when RNGH is not available.
|
|
3
|
-
*
|
|
4
|
-
* Implements the responder-based press detection that usePressability provides,
|
|
5
|
-
* without the deep RN internal import. Supports pressIn/pressOut delays,
|
|
6
|
-
* long press, cancellation, and min press duration.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
1
|
import { unstable_hasExternalPressOwnership } from '@tamagui/native'
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
type
|
|
13
|
-
| 'idle'
|
|
14
|
-
| 'pressing' // responder granted, waiting for delay
|
|
15
|
-
| 'active' // pressIn fired
|
|
16
|
-
| 'longPressed' // long press detected
|
|
17
|
-
|
|
18
|
-
interface PressRef {
|
|
19
|
-
state: PressState
|
|
20
|
-
pressInTimer: ReturnType<typeof setTimeout> | null
|
|
21
|
-
pressOutTimer: ReturnType<typeof setTimeout> | null
|
|
22
|
-
longPressTimer: ReturnType<typeof setTimeout> | null
|
|
23
|
-
activateTime: number
|
|
24
|
-
blockedByExternalOwnership: boolean
|
|
25
|
-
// true from the instant onPressIn fires until exactly one onPressOut fires.
|
|
26
|
-
// A press clause is driven by this pair, so if they ever fall out of sync the
|
|
27
|
-
// component stays latched in its press look with no event left to clear it.
|
|
28
|
-
// Every responder exit path (release, terminate, a grant refused for external
|
|
29
|
-
// ownership) therefore routes through releasePressOut exactly once.
|
|
30
|
-
pressInOutstanding: boolean
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const DEFAULT_LONG_PRESS_DELAY = 500
|
|
34
|
-
const DEFAULT_MIN_PRESS_DURATION = 130
|
|
2
|
+
import { useRef } from 'react'
|
|
3
|
+
import type { GestureResponderEvent } from 'react-native'
|
|
4
|
+
import type usePressabilityType from 'react-native/Libraries/Pressability/usePressability'
|
|
35
5
|
|
|
36
6
|
export function useMainThreadPressEvents(
|
|
37
7
|
events: any,
|
|
@@ -39,184 +9,93 @@ export function useMainThreadPressEvents(
|
|
|
39
9
|
enabled = true,
|
|
40
10
|
debugName?: string | null
|
|
41
11
|
) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
12
|
+
// static config evaluation does not render; load native code at render time.
|
|
13
|
+
const usePressability: typeof usePressabilityType =
|
|
14
|
+
require('react-native/Libraries/Pressability/usePressability').default
|
|
15
|
+
const initialized = useRef(false)
|
|
16
|
+
const ownsResponder = useRef(false)
|
|
17
|
+
const pressActive = useRef(false)
|
|
18
|
+
const active = enabled && Boolean(events)
|
|
19
|
+
if (active) initialized.current = true
|
|
20
|
+
|
|
21
|
+
function endPress(e: GestureResponderEvent) {
|
|
22
|
+
if (!pressActive.current) return
|
|
23
|
+
pressActive.current = false
|
|
24
|
+
events?.onPressOut?.(e)
|
|
53
25
|
}
|
|
54
26
|
|
|
55
|
-
//
|
|
56
|
-
//
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
0,
|
|
76
|
-
events.minPressDuration ?? DEFAULT_MIN_PRESS_DURATION
|
|
27
|
+
// react native owns press geometry, timing and cancellation; initialize only
|
|
28
|
+
// for pressable components and remove callbacks when the responder path stops.
|
|
29
|
+
const handlers = usePressability(
|
|
30
|
+
initialized.current
|
|
31
|
+
? {
|
|
32
|
+
...(active ? events : {}),
|
|
33
|
+
disabled: !active || events?.disabled,
|
|
34
|
+
android_disableSound: true,
|
|
35
|
+
onPressIn: active
|
|
36
|
+
? (e: GestureResponderEvent) => {
|
|
37
|
+
endPress(e)
|
|
38
|
+
pressActive.current = true
|
|
39
|
+
events.onPressIn?.(e)
|
|
40
|
+
}
|
|
41
|
+
: undefined,
|
|
42
|
+
onPressOut: active ? endPress : undefined,
|
|
43
|
+
hitSlop: viewProps.hitSlop,
|
|
44
|
+
pressRectOffset: viewProps.pressRetentionOffset,
|
|
45
|
+
}
|
|
46
|
+
: null
|
|
77
47
|
)
|
|
48
|
+
if (!active || !handlers) return
|
|
78
49
|
|
|
79
|
-
function activate(e: any) {
|
|
80
|
-
if (ref.current.pressInOutstanding) return
|
|
81
|
-
ref.current.pressInOutstanding = true
|
|
82
|
-
ref.current.state = 'active'
|
|
83
|
-
ref.current.activateTime = Date.now()
|
|
84
|
-
events.onPressIn?.(e)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// clear the timers that could still *start* a press. A pending pressOut is a
|
|
88
|
-
// press that already started, so it is never cancelled here — it is either
|
|
89
|
-
// awaited or flushed by releasePressOut.
|
|
90
|
-
function clearStartTimers() {
|
|
91
|
-
if (ref.current.pressInTimer) clearTimeout(ref.current.pressInTimer)
|
|
92
|
-
if (ref.current.longPressTimer) clearTimeout(ref.current.longPressTimer)
|
|
93
|
-
ref.current.pressInTimer = null
|
|
94
|
-
ref.current.longPressTimer = null
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// the single exit that guarantees pressIn has a matching pressOut.
|
|
98
|
-
function releasePressOut(e: any) {
|
|
99
|
-
if (ref.current.pressOutTimer) {
|
|
100
|
-
clearTimeout(ref.current.pressOutTimer)
|
|
101
|
-
ref.current.pressOutTimer = null
|
|
102
|
-
}
|
|
103
|
-
if (!ref.current.pressInOutstanding) return
|
|
104
|
-
ref.current.pressInOutstanding = false
|
|
105
|
-
ref.current.state = 'idle'
|
|
106
|
-
events.onPressOut?.(e)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
function deactivate(e: any) {
|
|
110
|
-
if (!ref.current.pressInOutstanding) return
|
|
111
|
-
const pressDuration = Date.now() - ref.current.activateTime
|
|
112
|
-
const remaining = Math.max(minPressDuration - pressDuration, delayPressOut)
|
|
113
|
-
|
|
114
|
-
if (remaining > 0) {
|
|
115
|
-
if (!ref.current.pressOutTimer) {
|
|
116
|
-
ref.current.pressOutTimer = setTimeout(() => {
|
|
117
|
-
ref.current.pressOutTimer = null
|
|
118
|
-
releasePressOut(e)
|
|
119
|
-
}, remaining)
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
releasePressOut(e)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function resetPress(e: any) {
|
|
127
|
-
releasePressOut(e)
|
|
128
|
-
clearStartTimers()
|
|
129
|
-
ref.current.blockedByExternalOwnership = false
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// user-supplied responder props (the View's raw RN gesture API) must keep
|
|
133
|
-
// working: blindly overwriting them here silently killed any press-hold-drag
|
|
134
|
-
// gesture built on onResponderMove/onResponderRelease whenever the element
|
|
135
|
-
// also had hover/press events. compose instead — user handler first, then
|
|
136
|
-
// the press synthesis.
|
|
137
50
|
const userStartShouldSet = viewProps.onStartShouldSetResponder
|
|
138
51
|
const userGrant = viewProps.onResponderGrant
|
|
139
52
|
const userRelease = viewProps.onResponderRelease
|
|
140
53
|
const userTerminate = viewProps.onResponderTerminate
|
|
141
54
|
const userTerminationRequest = viewProps.onResponderTerminationRequest
|
|
142
55
|
const userMove = viewProps.onResponderMove
|
|
56
|
+
const userClick = viewProps.onClick
|
|
143
57
|
|
|
144
|
-
viewProps.onStartShouldSetResponder = (e:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
viewProps.onResponderGrant = (e: any) => {
|
|
150
|
-
// a new grant always ends any prior press first: its pressOut may still be
|
|
151
|
-
// sitting in the min-duration timer, and clearing that timer without
|
|
152
|
-
// firing it is how the previous press latches.
|
|
153
|
-
releasePressOut(e)
|
|
154
|
-
clearStartTimers()
|
|
155
|
-
|
|
156
|
-
if (unstable_hasExternalPressOwnership()) {
|
|
157
|
-
ref.current.state = 'idle'
|
|
158
|
-
ref.current.blockedByExternalOwnership = true
|
|
159
|
-
return
|
|
160
|
-
}
|
|
58
|
+
viewProps.onStartShouldSetResponder = (e: GestureResponderEvent) =>
|
|
59
|
+
userStartShouldSet?.(e) ||
|
|
60
|
+
(!unstable_hasExternalPressOwnership() && handlers.onStartShouldSetResponder())
|
|
161
61
|
|
|
62
|
+
viewProps.onResponderGrant = (e: GestureResponderEvent) => {
|
|
63
|
+
endPress(e)
|
|
64
|
+
if (unstable_hasExternalPressOwnership()) return
|
|
162
65
|
userGrant?.(e)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
if (delayPressIn > 0) {
|
|
167
|
-
ref.current.pressInTimer = setTimeout(() => activate(e), delayPressIn)
|
|
168
|
-
} else {
|
|
169
|
-
activate(e)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
if (events.onLongPress) {
|
|
173
|
-
ref.current.longPressTimer = setTimeout(() => {
|
|
174
|
-
if (ref.current.state === 'active') {
|
|
175
|
-
ref.current.state = 'longPressed'
|
|
176
|
-
events.onLongPress?.(e)
|
|
177
|
-
}
|
|
178
|
-
}, delayLongPress + delayPressIn)
|
|
179
|
-
}
|
|
66
|
+
ownsResponder.current = true
|
|
67
|
+
return handlers.onResponderGrant(e)
|
|
180
68
|
}
|
|
181
69
|
|
|
182
|
-
viewProps.onResponderRelease = (e:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
70
|
+
viewProps.onResponderRelease = (e: GestureResponderEvent) => {
|
|
71
|
+
if (!ownsResponder.current) return
|
|
72
|
+
ownsResponder.current = false
|
|
73
|
+
if (unstable_hasExternalPressOwnership()) {
|
|
74
|
+
handlers.onResponderTerminate(e)
|
|
75
|
+
endPress(e)
|
|
188
76
|
return
|
|
189
77
|
}
|
|
190
|
-
|
|
191
78
|
userRelease?.(e)
|
|
192
|
-
|
|
193
|
-
clearStartTimers()
|
|
194
|
-
|
|
195
|
-
// if pressIn hasn't fired yet (was in delay), fire it now then deactivate
|
|
196
|
-
if (ref.current.state === 'pressing') {
|
|
197
|
-
activate(e)
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
if (!wasLongPressed) {
|
|
201
|
-
events.onPress?.(e)
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
deactivate(e)
|
|
205
|
-
ref.current.blockedByExternalOwnership = false
|
|
79
|
+
handlers.onResponderRelease(e)
|
|
206
80
|
}
|
|
207
81
|
|
|
208
|
-
viewProps.onResponderTerminate = (e:
|
|
82
|
+
viewProps.onResponderTerminate = (e: GestureResponderEvent) => {
|
|
209
83
|
userTerminate?.(e)
|
|
210
|
-
|
|
84
|
+
if (ownsResponder.current) handlers.onResponderTerminate(e)
|
|
85
|
+
endPress(e)
|
|
86
|
+
ownsResponder.current = false
|
|
211
87
|
}
|
|
212
88
|
|
|
213
|
-
viewProps.onResponderTerminationRequest = (e:
|
|
214
|
-
|
|
215
|
-
return events.cancelable !== false
|
|
216
|
-
}
|
|
89
|
+
viewProps.onResponderTerminationRequest = (e: GestureResponderEvent) =>
|
|
90
|
+
userTerminationRequest?.(e) ?? handlers.onResponderTerminationRequest()
|
|
217
91
|
|
|
218
|
-
viewProps.onResponderMove = (e:
|
|
92
|
+
viewProps.onResponderMove = (e: GestureResponderEvent) => {
|
|
219
93
|
userMove?.(e)
|
|
220
|
-
|
|
94
|
+
if (ownsResponder.current) handlers.onResponderMove(e)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
viewProps.onClick = (e: GestureResponderEvent) => {
|
|
98
|
+
userClick?.(e)
|
|
99
|
+
if (!unstable_hasExternalPressOwnership()) handlers.onClick(e)
|
|
221
100
|
}
|
|
222
101
|
}
|
|
@@ -307,11 +307,17 @@ const getSnapshotImpl = (r: SnapshotRef): ThemeState => {
|
|
|
307
307
|
|
|
308
308
|
const canSkipForSchemeChange = Boolean(isSchemeOnlyChange && allKeysSchemeOptimized)
|
|
309
309
|
|
|
310
|
+
// forceClassName renders its resolved name as classes, so a nameless one that
|
|
311
|
+
// mirrors its parent still has to re-render when the parent's scheme flips
|
|
310
312
|
const needsUpdate = props.passThrough
|
|
311
313
|
? false
|
|
312
314
|
: optimizeForFirstRender
|
|
313
315
|
? true
|
|
314
|
-
: isRoot ||
|
|
316
|
+
: isRoot ||
|
|
317
|
+
props.forceClassName ||
|
|
318
|
+
props.name === 'light' ||
|
|
319
|
+
props.name === 'dark' ||
|
|
320
|
+
props.name === null
|
|
315
321
|
? true
|
|
316
322
|
: !HasRenderedOnce.get(keys)
|
|
317
323
|
? true
|
|
@@ -373,8 +379,10 @@ const getNextState = (
|
|
|
373
379
|
): [boolean, ThemeState] => {
|
|
374
380
|
const parentState = states.get(parentId)
|
|
375
381
|
|
|
382
|
+
// passThrough adds no theme of its own, so it mirrors the parent's current
|
|
383
|
+
// state. preferring lastState froze it, and every descendant, on its first theme
|
|
376
384
|
if (props.passThrough) {
|
|
377
|
-
return [false,
|
|
385
|
+
return [false, parentState || lastState || ({ name: '' } as any)]
|
|
378
386
|
}
|
|
379
387
|
|
|
380
388
|
themes ||= getConfig().themes
|
|
@@ -5,4 +5,5 @@
|
|
|
5
5
|
import { type StyleCompat } from '../config';
|
|
6
6
|
import type { PropMappedValue } from '../types';
|
|
7
7
|
export declare function expandStyle(key: string, value: any, styleCompat?: StyleCompat): PropMappedValue;
|
|
8
|
+
export declare const nativeShorthandLogicals: Record<string, string[]>;
|
|
8
9
|
//# sourceMappingURL=expandStyle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AA+D/C,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,WAAW,GAAE,WAA8B,GAC1C,eAAe,CAgIjB"}
|
|
1
|
+
{"version":3,"file":"expandStyle.d.ts","sourceRoot":"","sources":["../../src/helpers/expandStyle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AA+D/C,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,WAAW,GAAE,WAA8B,GAC1C,eAAe,CAgIjB;AAqJD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAkB5D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,gBAAgB,EAEhB,mBAAmB,EAEnB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,aAAa,EAGb,eAAe,EACf,YAAY,EAGZ,qBAAqB,EACrB,qBAAqB,EAErB,WAAW,EAGZ,MAAM,UAAU,CAAA;AAkBjB,OAAO,EAAE,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAKlF,OAAO,EAAE,oBAAoB,EAAE,CAAA;AAqB/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAe3D,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AACvF,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,o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6U1B,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAEhF;AA2rBD,eAAO,MAAM,cAAc,EAAE,aAwrB5B,CAAA;AAqYD,MAAM,MAAM,UAAU,GAAG,CACvB,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,gBAAgB,CAAC,EAAE,OAAO,EAC1B,aAAa,CAAC,EAAE,GAAG,KAChB,IAAI,CAAA;AAu4CT,KAAK,oBAAoB,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;AAgCnF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,oBAAoB,GAAG,IAAI,EACjC,QAAQ,SAAI,EACZ,WAAW,UAAQ,WA4OpB;AA6HD,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,EACV,QAAQ,EAAE,GAAG,EACb,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,OAAO,QAyBlB;AAID,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,qBAAqB,sBAgBtF;AAMD,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fallback press handling when RNGH is not available.
|
|
3
|
-
*
|
|
4
|
-
* Implements the responder-based press detection that usePressability provides,
|
|
5
|
-
* without the deep RN internal import. Supports pressIn/pressOut delays,
|
|
6
|
-
* long press, cancellation, and min press duration.
|
|
7
|
-
*/
|
|
8
1
|
export declare function useMainThreadPressEvents(events: any, viewProps: any, enabled?: boolean, debugName?: string | null): void;
|
|
9
2
|
//# sourceMappingURL=mainThreadPressEvents.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainThreadPressEvents.native.d.ts","sourceRoot":"","sources":["../../src/helpers/mainThreadPressEvents.native.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mainThreadPressEvents.native.d.ts","sourceRoot":"","sources":["../../src/helpers/mainThreadPressEvents.native.ts"],"names":[],"mappings":"AAKA,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,GAAG,EACX,SAAS,EAAE,GAAG,EACd,OAAO,UAAO,EACd,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,QA2F1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeState.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeState.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EAGV,UAAU,EACV,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAEnE,KAAK,EAAE,GAAG,MAAM,CAAA;AAEhB,eAAO,MAAM,iBAAiB,iCAAwB,CAAA;AAYtD,eAAO,MAAM,iBAAiB,YAK7B,CAAA;AAED,eAAO,MAAM,aAAa,OAAQ,EAAE,2BAAmB,CAAA;AAKvD,eAAO,MAAM,mBAAmB,OAAQ,EAAE,iCAA8B,CAAA;AACxE,eAAO,MAAM,sBAAsB,OAAQ,EAAE,uBAAiC,CAAA;AAE9E,eAAO,MAAM,0BAA0B;IACrC,MAAM;IACN,OAAO;CACP,CAAA;AAsBF,eAAO,MAAM,iBAAiB,yBAAuB,CAAA;AAMrD,eAAO,MAAM,aAAa,UACjB,sBAAsB,qCAEvB,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,eAC7B,gBAAgB,CAAC,GAAG,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