@tamagui/core 1.0.1-beta.57 → 1.0.1-beta.61
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/Pressability.js +28 -0
- package/dist/cjs/Pressability.js.map +7 -0
- package/dist/cjs/Pressability.native.js +28 -0
- package/dist/cjs/Pressability.native.js.map +7 -0
- package/dist/cjs/createComponent.js +38 -10
- package/dist/cjs/createComponent.js.map +2 -2
- package/dist/cjs/helpers/createTamaguiProvider.js +3 -3
- package/dist/cjs/helpers/createTamaguiProvider.js.map +2 -2
- package/dist/cjs/helpers/generateAtomicStyles.js +50 -99
- package/dist/cjs/helpers/generateAtomicStyles.js.map +2 -2
- package/dist/cjs/helpers/getSplitStyles.js +0 -1
- package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
- package/dist/cjs/helpers/getStylesAtomic.js +1 -1
- package/dist/cjs/helpers/getStylesAtomic.js.map +2 -2
- package/dist/cjs/helpers/isTamaguiComponent.js +38 -0
- package/dist/cjs/helpers/isTamaguiComponent.js.map +7 -0
- package/dist/cjs/helpers/isTamaguiElement.js +2 -8
- package/dist/cjs/helpers/isTamaguiElement.js.map +2 -2
- package/dist/cjs/hooks/useTheme.js +1 -1
- package/dist/cjs/hooks/useTheme.js.map +2 -2
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/types.js.map +1 -1
- package/dist/cjs/views/Slot.js +2 -1
- package/dist/cjs/views/Slot.js.map +2 -2
- package/dist/esm/Pressability.js +5 -0
- package/dist/esm/Pressability.js.map +7 -0
- package/dist/esm/Pressability.native.js +5 -0
- package/dist/esm/Pressability.native.js.map +7 -0
- package/dist/esm/createComponent.js +42 -12
- package/dist/esm/createComponent.js.map +2 -2
- package/dist/esm/helpers/createTamaguiProvider.js +2 -2
- package/dist/esm/helpers/createTamaguiProvider.js.map +2 -2
- package/dist/esm/helpers/generateAtomicStyles.js +36 -97
- package/dist/esm/helpers/generateAtomicStyles.js.map +2 -2
- package/dist/esm/helpers/getSplitStyles.js +0 -1
- package/dist/esm/helpers/getSplitStyles.js.map +2 -2
- package/dist/esm/helpers/getStylesAtomic.js +1 -1
- package/dist/esm/helpers/getStylesAtomic.js.map +2 -2
- package/dist/esm/helpers/isTamaguiComponent.js +16 -0
- package/dist/esm/helpers/isTamaguiComponent.js.map +7 -0
- package/dist/esm/helpers/isTamaguiElement.js +2 -8
- package/dist/esm/helpers/isTamaguiElement.js.map +2 -2
- package/dist/esm/hooks/useTheme.js +2 -2
- package/dist/esm/hooks/useTheme.js.map +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/views/Slot.js +2 -1
- package/dist/esm/views/Slot.js.map +2 -2
- package/dist/jsx/Pressability.js +4 -0
- package/dist/jsx/Pressability.native.js +4 -0
- package/dist/jsx/createComponent.js +42 -8
- package/dist/jsx/helpers/createTamaguiProvider.js +2 -2
- package/dist/jsx/helpers/generateAtomicStyles.js +36 -97
- package/dist/jsx/helpers/getSplitStyles.js +0 -1
- package/dist/jsx/helpers/getStylesAtomic.js +1 -1
- package/dist/jsx/helpers/isTamaguiComponent.js +15 -0
- package/dist/jsx/helpers/isTamaguiElement.js +2 -8
- package/dist/jsx/hooks/useTheme.js +2 -2
- package/dist/jsx/index.js +1 -0
- package/dist/jsx/views/Slot.js +2 -1
- package/package.json +5 -6
- package/types/Pressability.d.ts +2 -0
- package/types/Pressability.d.ts.map +1 -0
- package/types/Pressability.native.d.ts +2 -0
- package/types/Pressability.native.d.ts.map +1 -0
- package/types/createComponent.d.ts.map +1 -1
- package/types/helpers/createTamaguiProvider.d.ts +1 -1
- package/types/helpers/createTamaguiProvider.d.ts.map +1 -1
- package/types/helpers/generateAtomicStyles.d.ts +5 -6
- package/types/helpers/generateAtomicStyles.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/isTamaguiComponent.d.ts +5 -0
- package/types/helpers/isTamaguiComponent.d.ts.map +1 -0
- package/types/helpers/isTamaguiElement.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +1 -1
- package/types/types.d.ts.map +1 -1
- package/types/views/Slot.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import { stylePropsView, validStyles } from "@tamagui/helpers";
|
|
3
|
+
import { composeEventHandlers, stylePropsView, validStyles } from "@tamagui/helpers";
|
|
4
4
|
import { useForceUpdate } from "@tamagui/use-force-update";
|
|
5
5
|
import React, {
|
|
6
6
|
Children,
|
|
@@ -10,10 +10,11 @@ import React, {
|
|
|
10
10
|
memo,
|
|
11
11
|
useCallback,
|
|
12
12
|
useContext,
|
|
13
|
+
useMemo,
|
|
13
14
|
useRef,
|
|
14
15
|
useState
|
|
15
16
|
} from "react";
|
|
16
|
-
import { StyleSheet, Text,
|
|
17
|
+
import { StyleSheet, Text, View } from "react-native";
|
|
17
18
|
import { onConfiguredOnce } from "./conf";
|
|
18
19
|
import { stackDefaultStyles } from "./constants/constants";
|
|
19
20
|
import { isWeb, useIsomorphicLayoutEffect } from "./constants/platform";
|
|
@@ -29,6 +30,7 @@ import { useIsTouchDevice } from "./hooks/useIsTouchDevice";
|
|
|
29
30
|
import { mediaState } from "./hooks/useMedia";
|
|
30
31
|
import { usePressable } from "./hooks/usePressable";
|
|
31
32
|
import { getThemeManagerIfChanged, useTheme } from "./hooks/useTheme";
|
|
33
|
+
import { Pressability } from "./Pressability";
|
|
32
34
|
import { Slot, mergeEvent } from "./views/Slot";
|
|
33
35
|
import { TextAncestorContext } from "./views/TextAncestorContext";
|
|
34
36
|
React["keep"];
|
|
@@ -93,7 +95,7 @@ function createComponent(configIn, ParentComponent) {
|
|
|
93
95
|
}
|
|
94
96
|
__name(addPseudoToStyles, "addPseudoToStyles");
|
|
95
97
|
const component = forwardRef((propsIn, forwardedRef) => {
|
|
96
|
-
var _a, _b, _c;
|
|
98
|
+
var _a, _b, _c, _d, _e;
|
|
97
99
|
const props = tamaguiDefaultProps && !propsIn.asChild ? { ...tamaguiDefaultProps, ...propsIn } : propsIn;
|
|
98
100
|
const { Component, isText, isZStack } = staticConfig;
|
|
99
101
|
const componentName = props.componentName || staticConfig.componentName;
|
|
@@ -333,8 +335,10 @@ function createComponent(configIn, ParentComponent) {
|
|
|
333
335
|
}
|
|
334
336
|
internal.current.isMounted = true;
|
|
335
337
|
return () => {
|
|
338
|
+
var _a2;
|
|
336
339
|
mouseUps.delete(unPress);
|
|
337
340
|
internal.current.isMounted = false;
|
|
341
|
+
(_a2 = internal.current.unmountEffects) == null ? void 0 : _a2.forEach((cb) => cb());
|
|
338
342
|
};
|
|
339
343
|
}, [hasEnterStyle, props.animation]);
|
|
340
344
|
let styles;
|
|
@@ -390,7 +394,7 @@ function createComponent(configIn, ParentComponent) {
|
|
|
390
394
|
viewProps.style = styles;
|
|
391
395
|
}
|
|
392
396
|
const initialPseudos = initialSplitStyles.pseudos;
|
|
393
|
-
const attachPress = !!(pseudos
|
|
397
|
+
const attachPress = !!((pseudos == null ? void 0 : pseudos.pressStyle) || (initialPseudos == null ? void 0 : initialPseudos.pressStyle) || onPress || onPressOut || onPressIn || onClick);
|
|
394
398
|
const isTouch = useIsTouchDevice();
|
|
395
399
|
const isHoverable = isWeb && !isTouch;
|
|
396
400
|
const attachHover = isHoverable && !!(pseudos && pseudos.hoverStyle || onHoverIn || onHoverOut || onMouseEnter || onMouseLeave);
|
|
@@ -459,7 +463,17 @@ function createComponent(configIn, ParentComponent) {
|
|
|
459
463
|
unPress();
|
|
460
464
|
onClick == null ? void 0 : onClick(e);
|
|
461
465
|
onPress == null ? void 0 : onPress(e);
|
|
462
|
-
} : null
|
|
466
|
+
} : null,
|
|
467
|
+
...!isWeb && {
|
|
468
|
+
cancelable: !props.rejectResponderTermination,
|
|
469
|
+
disabled: props.disabled !== null ? props.disabled : (_b = props.accessibilityState) == null ? void 0 : _b.disabled,
|
|
470
|
+
hitSlop: props.hitSlop,
|
|
471
|
+
delayLongPress: props.delayLongPress,
|
|
472
|
+
delayPressIn: props.delayPressIn,
|
|
473
|
+
delayPressOut: props.delayPressOut,
|
|
474
|
+
focusable: (_c = viewProps.focusable) != null ? _c : true,
|
|
475
|
+
minPressDuration: 0
|
|
476
|
+
}
|
|
463
477
|
} : null;
|
|
464
478
|
let space = spaceProp;
|
|
465
479
|
if (features.enabled.mediaQuery) {
|
|
@@ -519,12 +533,32 @@ function createComponent(configIn, ParentComponent) {
|
|
|
519
533
|
});
|
|
520
534
|
}
|
|
521
535
|
}
|
|
522
|
-
|
|
536
|
+
const pressability = isWeb ? null : useMemo(() => {
|
|
537
|
+
if (attachPress && events) {
|
|
538
|
+
const pressability2 = new Pressability(events);
|
|
539
|
+
internal.current.unmountEffects = [
|
|
540
|
+
() => {
|
|
541
|
+
pressability2.reset();
|
|
542
|
+
}
|
|
543
|
+
];
|
|
544
|
+
return pressability2;
|
|
545
|
+
}
|
|
546
|
+
}, []);
|
|
523
547
|
if (process.env.TAMAGUI_TARGET === "native") {
|
|
524
548
|
if (attachPress && events) {
|
|
525
|
-
|
|
549
|
+
pressability.configure(events);
|
|
550
|
+
const eventHandlers = pressability.getEventHandlers();
|
|
551
|
+
for (const key in eventHandlers) {
|
|
552
|
+
if (key === "onBlur" || key === "onFocus") {
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
const og = props[key];
|
|
556
|
+
const val = eventHandlers[key];
|
|
557
|
+
viewProps[key] = og ? composeEventHandlers(og, val) : val;
|
|
558
|
+
}
|
|
526
559
|
}
|
|
527
560
|
}
|
|
561
|
+
content = createElement(elementType, viewProps, childEls);
|
|
528
562
|
if (isWeb && events && attachHover) {
|
|
529
563
|
content = <span className="tui_Hoverable" style={{
|
|
530
564
|
display: "contents"
|
|
@@ -532,7 +566,7 @@ function createComponent(configIn, ParentComponent) {
|
|
|
532
566
|
}
|
|
533
567
|
if (process.env.NODE_ENV === "development") {
|
|
534
568
|
if (props["debug"]) {
|
|
535
|
-
console.log(" \xBB ", { propsIn: { ...props }, propsOut: { ...viewProps }, state, splitStyles, animationStyles, isStringElement, classNamesIn: (
|
|
569
|
+
console.log(" \xBB ", { propsIn: { ...props }, propsOut: { ...viewProps }, state, splitStyles, animationStyles, isStringElement, classNamesIn: (_d = props.className) == null ? void 0 : _d.split(" "), classNamesOut: (_e = viewProps.className) == null ? void 0 : _e.split(" "), events, shouldAttach, ViewComponent: elementType, viewProps, styles, pseudos, content, childEls, shouldAvoidClasses, avoidClasses, animation: props.animation, style, defaultNativeStyle, initialSplitStyles, ...typeof window !== "undefined" ? { theme, themeClassName: theme.className, staticConfig, tamaguiConfig } : null });
|
|
536
570
|
}
|
|
537
571
|
}
|
|
538
572
|
if (features.elements.length) {
|
|
@@ -9,13 +9,13 @@ function createTamaguiProvider({
|
|
|
9
9
|
...themeProps
|
|
10
10
|
}) {
|
|
11
11
|
return /* @__PURE__ */ __name(function TamaguiProvider({
|
|
12
|
-
|
|
12
|
+
disableInjectCSS,
|
|
13
13
|
children,
|
|
14
14
|
...themePropsProvider
|
|
15
15
|
}) {
|
|
16
16
|
if (typeof document !== "undefined") {
|
|
17
17
|
React.useLayoutEffect(() => {
|
|
18
|
-
if (
|
|
18
|
+
if (disableInjectCSS)
|
|
19
19
|
return;
|
|
20
20
|
const style = document.createElement("style");
|
|
21
21
|
style.appendChild(document.createTextNode(getCSS()));
|
|
@@ -4,7 +4,6 @@ import { simpleHash } from "@tamagui/helpers";
|
|
|
4
4
|
import hyphenateStyleName from "hyphenate-style-name";
|
|
5
5
|
import normalizeCSSColor from "normalize-css-color";
|
|
6
6
|
import { isWeb } from "../constants/platform";
|
|
7
|
-
import { prefixInlineStyles, prefixStyles } from "./prefixStyles";
|
|
8
7
|
function expandStyles(style) {
|
|
9
8
|
const res = {};
|
|
10
9
|
for (const key in style) {
|
|
@@ -13,29 +12,16 @@ function expandStyles(style) {
|
|
|
13
12
|
return res;
|
|
14
13
|
}
|
|
15
14
|
__name(expandStyles, "expandStyles");
|
|
16
|
-
function
|
|
17
|
-
|
|
15
|
+
function updateReactDOMStyle(style, key, value) {
|
|
16
|
+
value = normalizeValueWithProperty(value, key);
|
|
17
|
+
const out = expandStyle(key, value);
|
|
18
|
+
if (out) {
|
|
19
|
+
Object.assign(style, Object.fromEntries(out));
|
|
20
|
+
} else {
|
|
21
|
+
style[key] = value;
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
|
-
__name(
|
|
20
|
-
const STYLE_SHORT_FORM_EXPANSIONS = {
|
|
21
|
-
borderColor: ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"],
|
|
22
|
-
borderRadius: [
|
|
23
|
-
"borderTopLeftRadius",
|
|
24
|
-
"borderTopRightRadius",
|
|
25
|
-
"borderBottomRightRadius",
|
|
26
|
-
"borderBottomLeftRadius"
|
|
27
|
-
],
|
|
28
|
-
borderStyle: ["borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle"],
|
|
29
|
-
borderWidth: ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"],
|
|
30
|
-
margin: ["marginTop", "marginRight", "marginBottom", "marginLeft"],
|
|
31
|
-
marginHorizontal: ["marginRight", "marginLeft"],
|
|
32
|
-
marginVertical: ["marginTop", "marginBottom"],
|
|
33
|
-
overflow: ["overflowX", "overflowY"],
|
|
34
|
-
overscrollBehavior: ["overscrollBehaviorX", "overscrollBehaviorY"],
|
|
35
|
-
padding: ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
|
|
36
|
-
paddingHorizontal: ["paddingRight", "paddingLeft"],
|
|
37
|
-
paddingVertical: ["paddingTop", "paddingBottom"]
|
|
38
|
-
};
|
|
24
|
+
__name(updateReactDOMStyle, "updateReactDOMStyle");
|
|
39
25
|
const generateAtomicStyles = /* @__PURE__ */ __name((style) => {
|
|
40
26
|
const res = expandStyles(style);
|
|
41
27
|
if (style.shadowColor != null || style.shadowOffset != null || style.shadowOpacity != null || style.shadowRadius != null) {
|
|
@@ -61,11 +47,11 @@ const generateAtomicStyles = /* @__PURE__ */ __name((style) => {
|
|
|
61
47
|
const { identifier } = cachedResult;
|
|
62
48
|
out[identifier] = cachedResult;
|
|
63
49
|
} else {
|
|
64
|
-
const identifier =
|
|
50
|
+
const identifier = simpleHash(key + value);
|
|
65
51
|
const rules = createAtomicRules(identifier, key, value);
|
|
66
52
|
const cachedResult2 = cache.set(key, valueString, {
|
|
67
53
|
property: key,
|
|
68
|
-
value:
|
|
54
|
+
value: valueString,
|
|
69
55
|
identifier,
|
|
70
56
|
rules
|
|
71
57
|
});
|
|
@@ -75,16 +61,6 @@ const generateAtomicStyles = /* @__PURE__ */ __name((style) => {
|
|
|
75
61
|
}
|
|
76
62
|
return out;
|
|
77
63
|
}, "generateAtomicStyles");
|
|
78
|
-
function updateReactDOMStyle(style, key, value) {
|
|
79
|
-
value = normalizeValueWithProperty(value, key);
|
|
80
|
-
const out = expandStyle(key, value);
|
|
81
|
-
if (out) {
|
|
82
|
-
Object.assign(style, Object.fromEntries(out));
|
|
83
|
-
} else {
|
|
84
|
-
style[key] = value;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
__name(updateReactDOMStyle, "updateReactDOMStyle");
|
|
88
64
|
function expandStyle(key, value) {
|
|
89
65
|
if (key === "flex") {
|
|
90
66
|
if (value <= -1) {
|
|
@@ -153,15 +129,9 @@ function createAtomicRules(identifier, property, value) {
|
|
|
153
129
|
const rules = [];
|
|
154
130
|
const selector = `.${identifier}`;
|
|
155
131
|
switch (property) {
|
|
156
|
-
case "animationKeyframes": {
|
|
157
|
-
const { animationNames, rules: keyframesRules } = processKeyframesValue(value);
|
|
158
|
-
const block = createDeclarationBlock({ animationName: animationNames.join(",") });
|
|
159
|
-
rules.push(`${selector}${block}`, ...keyframesRules);
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
132
|
case "placeholderTextColor": {
|
|
163
133
|
const block = createDeclarationBlock({ color: value, opacity: 1 });
|
|
164
|
-
rules.push(`${selector}
|
|
134
|
+
rules.push(`${selector}::placeholder${block}`);
|
|
165
135
|
break;
|
|
166
136
|
}
|
|
167
137
|
case "pointerEvents": {
|
|
@@ -200,58 +170,16 @@ function createAtomicRules(identifier, property, value) {
|
|
|
200
170
|
return rules;
|
|
201
171
|
}
|
|
202
172
|
__name(createAtomicRules, "createAtomicRules");
|
|
203
|
-
function processKeyframesValue(keyframesValue) {
|
|
204
|
-
if (typeof keyframesValue === "number") {
|
|
205
|
-
throw new Error(`Invalid CSS keyframes type: ${typeof keyframesValue}`);
|
|
206
|
-
}
|
|
207
|
-
const animationNames = [];
|
|
208
|
-
const rules = [];
|
|
209
|
-
const value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];
|
|
210
|
-
for (const keyframes of value) {
|
|
211
|
-
if (typeof keyframes === "string") {
|
|
212
|
-
animationNames.push(keyframes);
|
|
213
|
-
} else {
|
|
214
|
-
const { identifier, rules: keyframesRules } = createKeyframes(keyframes);
|
|
215
|
-
animationNames.push(identifier);
|
|
216
|
-
rules.push(...keyframesRules);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return { animationNames, rules };
|
|
220
|
-
}
|
|
221
|
-
__name(processKeyframesValue, "processKeyframesValue");
|
|
222
|
-
function createKeyframes(keyframes) {
|
|
223
|
-
const prefixes2 = ["-webkit-", ""];
|
|
224
|
-
const identifier = createIdentifier("r", "animation", keyframes);
|
|
225
|
-
const steps = "{" + Object.keys(keyframes).map((stepName) => {
|
|
226
|
-
const rule = keyframes[stepName];
|
|
227
|
-
const block = createDeclarationBlock(rule);
|
|
228
|
-
return `${stepName}${block}`;
|
|
229
|
-
}).join("") + "}";
|
|
230
|
-
const rules = prefixes2.map((prefix) => {
|
|
231
|
-
return `@${prefix}keyframes ${identifier}${steps}`;
|
|
232
|
-
});
|
|
233
|
-
return { identifier, rules };
|
|
234
|
-
}
|
|
235
|
-
__name(createKeyframes, "createKeyframes");
|
|
236
173
|
function createDeclarationBlock(style) {
|
|
237
|
-
const domStyle =
|
|
174
|
+
const domStyle = expandStyles(style);
|
|
238
175
|
const declarationsString = Object.keys(domStyle).map((property) => {
|
|
239
176
|
const value = domStyle[property];
|
|
240
177
|
const prop = hyphenateStyleName(property);
|
|
241
|
-
|
|
242
|
-
return value.map((v) => `${prop}:${v}`).join(";");
|
|
243
|
-
} else {
|
|
244
|
-
return `${prop}:${value}`;
|
|
245
|
-
}
|
|
178
|
+
return `${prop}:${value}`;
|
|
246
179
|
}).sort().join(";");
|
|
247
180
|
return `{${declarationsString};}`;
|
|
248
181
|
}
|
|
249
182
|
__name(createDeclarationBlock, "createDeclarationBlock");
|
|
250
|
-
function createIdentifier(prefix, name, value) {
|
|
251
|
-
const hashedString = simpleHash(name + stringifyValueWithProperty(value, name));
|
|
252
|
-
return `${prefix}-${hashedString}`;
|
|
253
|
-
}
|
|
254
|
-
__name(createIdentifier, "createIdentifier");
|
|
255
183
|
const cache = {
|
|
256
184
|
get(property, value) {
|
|
257
185
|
if (cache[property] != null && cache[property].hasOwnProperty(value) && cache[property][value] != null) {
|
|
@@ -381,15 +309,6 @@ const unitlessNumbers = {
|
|
|
381
309
|
scaleZ: true,
|
|
382
310
|
shadowOpacity: true
|
|
383
311
|
};
|
|
384
|
-
const prefixes = ["ms", "Moz", "O", "Webkit"];
|
|
385
|
-
const prefixKey = /* @__PURE__ */ __name((prefix, key) => {
|
|
386
|
-
return prefix + key.charAt(0).toUpperCase() + key.substring(1);
|
|
387
|
-
}, "prefixKey");
|
|
388
|
-
Object.keys(unitlessNumbers).forEach((prop) => {
|
|
389
|
-
prefixes.forEach((prefix) => {
|
|
390
|
-
unitlessNumbers[prefixKey(prefix, prop)] = unitlessNumbers[prop];
|
|
391
|
-
});
|
|
392
|
-
});
|
|
393
312
|
const resolveShadowValue = /* @__PURE__ */ __name((style) => {
|
|
394
313
|
const { shadowColor, shadowOffset, shadowOpacity, shadowRadius } = style;
|
|
395
314
|
const { height, width } = shadowOffset || defaultOffset;
|
|
@@ -423,9 +342,29 @@ function textShadowReducer(resolvedStyle, style) {
|
|
|
423
342
|
}
|
|
424
343
|
}
|
|
425
344
|
__name(textShadowReducer, "textShadowReducer");
|
|
345
|
+
const STYLE_SHORT_FORM_EXPANSIONS = {
|
|
346
|
+
borderColor: ["borderTopColor", "borderRightColor", "borderBottomColor", "borderLeftColor"],
|
|
347
|
+
borderRadius: [
|
|
348
|
+
"borderTopLeftRadius",
|
|
349
|
+
"borderTopRightRadius",
|
|
350
|
+
"borderBottomRightRadius",
|
|
351
|
+
"borderBottomLeftRadius"
|
|
352
|
+
],
|
|
353
|
+
borderStyle: ["borderTopStyle", "borderRightStyle", "borderBottomStyle", "borderLeftStyle"],
|
|
354
|
+
borderWidth: ["borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth"],
|
|
355
|
+
margin: ["marginTop", "marginRight", "marginBottom", "marginLeft"],
|
|
356
|
+
marginHorizontal: ["marginRight", "marginLeft"],
|
|
357
|
+
marginVertical: ["marginTop", "marginBottom"],
|
|
358
|
+
overscrollBehavior: ["overscrollBehaviorX", "overscrollBehaviorY"],
|
|
359
|
+
padding: ["paddingTop", "paddingRight", "paddingBottom", "paddingLeft"],
|
|
360
|
+
paddingHorizontal: ["paddingRight", "paddingLeft"],
|
|
361
|
+
paddingVertical: ["paddingTop", "paddingBottom"],
|
|
362
|
+
...isWeb && {
|
|
363
|
+
overflow: ["overflowX", "overflowY"]
|
|
364
|
+
}
|
|
365
|
+
};
|
|
426
366
|
export {
|
|
427
367
|
expandStyle,
|
|
428
368
|
expandStyles,
|
|
429
|
-
generateAtomicStyles
|
|
430
|
-
inline
|
|
369
|
+
generateAtomicStyles
|
|
431
370
|
};
|
|
@@ -77,7 +77,7 @@ function getAtomicStyle(style, pseudo, options) {
|
|
|
77
77
|
}
|
|
78
78
|
return Object.keys(atomicStyles).map((key) => {
|
|
79
79
|
const val = atomicStyles[key];
|
|
80
|
-
const
|
|
80
|
+
const hash = val.identifier;
|
|
81
81
|
const psuedoPrefix = pseudo ? `0${pseudo.name}-` : "";
|
|
82
82
|
if (!val.property) {
|
|
83
83
|
throw new Error(`no prop`);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
function isTamaguiComponent(comp, name) {
|
|
4
|
+
const config = comp && comp["staticConfig"];
|
|
5
|
+
if (!config || !config.parsed)
|
|
6
|
+
return false;
|
|
7
|
+
if (name) {
|
|
8
|
+
return name === config.componentName;
|
|
9
|
+
}
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
__name(isTamaguiComponent, "isTamaguiComponent");
|
|
13
|
+
export {
|
|
14
|
+
isTamaguiComponent
|
|
15
|
+
};
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { isValidElement } from "react";
|
|
4
|
+
import { isTamaguiComponent } from "./isTamaguiComponent";
|
|
4
5
|
const isTamaguiElement = /* @__PURE__ */ __name((child, name) => {
|
|
5
|
-
|
|
6
|
-
const isTamagui = isValidElement(child) && !!((_a = child.type["staticConfig"]) == null ? void 0 : _a.parsed);
|
|
7
|
-
if (!isTamagui)
|
|
8
|
-
return false;
|
|
9
|
-
if (name) {
|
|
10
|
-
return name === child.type["staticConfig"].componentName;
|
|
11
|
-
}
|
|
12
|
-
return true;
|
|
6
|
+
return isValidElement(child) && isTamaguiComponent(child.type, name);
|
|
13
7
|
}, "isTamaguiElement");
|
|
14
8
|
export {
|
|
15
9
|
isTamaguiElement
|
|
@@ -3,7 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
import { useForceUpdate } from "@tamagui/use-force-update";
|
|
4
4
|
import { useContext, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { getConfig } from "../conf";
|
|
6
|
-
import { useIsomorphicLayoutEffect } from "../constants/platform";
|
|
6
|
+
import { isWeb, useIsomorphicLayoutEffect } from "../constants/platform";
|
|
7
7
|
import { areEqualSets } from "../helpers/areEqualSets";
|
|
8
8
|
import { ThemeContext } from "../ThemeContext";
|
|
9
9
|
import { ThemeManager, ThemeManagerContext, emptyManager } from "../ThemeManager";
|
|
@@ -128,7 +128,7 @@ const useChangeThemeEffect = /* @__PURE__ */ __name((name, componentName, props,
|
|
|
128
128
|
return null;
|
|
129
129
|
return new ThemeManager(next.name, next.theme, parentManager, reset);
|
|
130
130
|
});
|
|
131
|
-
if (typeof document !== "undefined") {
|
|
131
|
+
if (!isWeb || typeof document !== "undefined") {
|
|
132
132
|
useLayoutEffect(() => {
|
|
133
133
|
if (!themeManager)
|
|
134
134
|
return;
|
package/dist/jsx/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./helpers/getStylesAtomic";
|
|
|
26
26
|
export * from "./helpers/getTextSize";
|
|
27
27
|
export * from "./helpers/isObj";
|
|
28
28
|
export * from "./helpers/isTamaguiElement";
|
|
29
|
+
export * from "./helpers/isTamaguiComponent";
|
|
29
30
|
export * from "./helpers/matchMedia";
|
|
30
31
|
export * from "./helpers/themeable";
|
|
31
32
|
export * from "./helpers/withStaticProperties";
|
package/dist/jsx/views/Slot.js
CHANGED
|
@@ -47,7 +47,7 @@ function mergeProps(child, slotProps) {
|
|
|
47
47
|
propName = pressMap[propName];
|
|
48
48
|
delete overrideProps[propName];
|
|
49
49
|
}
|
|
50
|
-
const isHandler =
|
|
50
|
+
const isHandler = handleRegex.test(propName);
|
|
51
51
|
if (isHandler) {
|
|
52
52
|
overrideProps[propName] = mergeEvent(childPropValue, slotPropValue);
|
|
53
53
|
} else if (propName === "style") {
|
|
@@ -59,6 +59,7 @@ function mergeProps(child, slotProps) {
|
|
|
59
59
|
return { ...slotProps, ...overrideProps };
|
|
60
60
|
}
|
|
61
61
|
__name(mergeProps, "mergeProps");
|
|
62
|
+
const handleRegex = /^on[A-Z]/;
|
|
62
63
|
function mergeEvent(a, b) {
|
|
63
64
|
return (...args) => {
|
|
64
65
|
a == null ? void 0 : a(...args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/core",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.61",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -21,13 +21,12 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@expo/match-media": "^0.3.0",
|
|
24
|
-
"@tamagui/helpers": "^1.0.1-beta.
|
|
24
|
+
"@tamagui/helpers": "^1.0.1-beta.61",
|
|
25
25
|
"@tamagui/ow": "^0.28.1",
|
|
26
|
-
"@tamagui/use-debounce": "^1.0.1-beta.
|
|
27
|
-
"@tamagui/use-force-update": "^1.0.1-beta.
|
|
26
|
+
"@tamagui/use-debounce": "^1.0.1-beta.61",
|
|
27
|
+
"@tamagui/use-force-update": "^1.0.1-beta.61",
|
|
28
28
|
"expo-screen-orientation": "^4.2.0",
|
|
29
29
|
"hyphenate-style-name": "^1.0.4",
|
|
30
|
-
"inline-style-prefixer": "^6.0.0",
|
|
31
30
|
"normalize-css-color": "^1.0.2",
|
|
32
31
|
"react": "*",
|
|
33
32
|
"react-dom": "*"
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
"react-native-web": "*"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
38
|
+
"@tamagui/build": "^1.0.1-beta.61",
|
|
40
39
|
"@types/react": "^17.0.35",
|
|
41
40
|
"csstype": "^3.0.10",
|
|
42
41
|
"esbuild": "^0.14.36",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressability.d.ts","sourceRoot":"","sources":["../src/Pressability.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressability.native.d.ts","sourceRoot":"","sources":["../src/Pressability.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAsE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"createComponent.d.ts","sourceRoot":"","sources":["../src/createComponent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAWN,MAAM,OAAO,CAAA;AAmBd,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAGhB,cAAc,EAGf,MAAM,SAAS,CAAA;AAgBhB,eAAO,MAAM,QAAQ,eAAsB,CAAA;AA0B3C,wBAAgB,eAAe,CAC7B,kBAAkB,SAAS,MAAM,GAAG,EAAE,EACtC,GAAG,GAAG,cAAc,EACpB,SAAS,GAAG,KAAK,EACjB,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,kBAAkB,EAAE,eAAe,CAAC,EAAE,iBAAiB,4DAy2B1F;AAGD,eAAO,MAAM,QAAQ;YAAW;QAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;KAAE;;CAEjD,CAAA;AAMD,aAAK,cAAc,GAAG,UAAU,GAAG,YAAY,CAAA;AAE/C,oBAAY,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG;IACjE,IAAI,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,cAAc,CAAA;CAC3B,CAAA;AACD,eAAO,MAAM,MAAM,0DA2CjB,CAAA;AAEF,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC5B,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,SAAS,EACT,SAAS,EACT,SAAS,GACV,EAAE,mBAAmB,OAsErB;AA2BD,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,eAkBtC;AA6BD,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,QA6K3F"}
|
|
@@ -3,5 +3,5 @@ import { TamaguiProviderProps } from '../types';
|
|
|
3
3
|
import { ThemeProviderProps } from '../views/ThemeProvider';
|
|
4
4
|
export declare function createTamaguiProvider({ getCSS, ...themeProps }: ThemeProviderProps & {
|
|
5
5
|
getCSS: () => string;
|
|
6
|
-
}): ({
|
|
6
|
+
}): ({ disableInjectCSS, children, ...themePropsProvider }: TamaguiProviderProps) => JSX.Element;
|
|
7
7
|
//# sourceMappingURL=createTamaguiProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTamaguiProvider.d.ts","sourceRoot":"","sources":["../../src/helpers/createTamaguiProvider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAiB,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE1E,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,GAAG,UAAU,EACd,EAAE,kBAAkB,GAAG;IACtB,MAAM,EAAE,MAAM,MAAM,CAAA;CACrB,
|
|
1
|
+
{"version":3,"file":"createTamaguiProvider.d.ts","sourceRoot":"","sources":["../../src/helpers/createTamaguiProvider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAiB,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE1E,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,GAAG,UAAU,EACd,EAAE,kBAAkB,GAAG;IACtB,MAAM,EAAE,MAAM,MAAM,CAAA;CACrB,2DAKI,oBAAoB,iBAwBxB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
2
|
+
declare type Value = Object | Array<any> | string | number;
|
|
3
|
+
export declare type Style = {
|
|
4
|
+
[key: string]: Value;
|
|
5
|
+
};
|
|
4
6
|
declare type Rule = string;
|
|
5
7
|
declare type Rules = Array<Rule>;
|
|
6
8
|
export declare type RulesData = {
|
|
@@ -12,10 +14,7 @@ export declare type RulesData = {
|
|
|
12
14
|
declare type CompilerOutput = {
|
|
13
15
|
[key: string]: RulesData;
|
|
14
16
|
};
|
|
15
|
-
declare
|
|
16
|
-
export declare type Style = {
|
|
17
|
-
[key: string]: Value;
|
|
18
|
-
};
|
|
17
|
+
export declare function expandStyles(style: any): {};
|
|
19
18
|
export declare const generateAtomicStyles: (style: ViewStyle & TextStyle) => CompilerOutput;
|
|
20
19
|
export declare function expandStyle(key: string, value: any): any;
|
|
21
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateAtomicStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/generateAtomicStyles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"generateAtomicStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/generateAtomicStyles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAInD,aAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,MAAM,CAAA;AAClD,oBAAY,KAAK,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;CAAE,CAAA;AAE5C,aAAK,IAAI,GAAG,MAAM,CAAA;AAClB,aAAK,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;AAExB,oBAAY,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,KAAK,CAAA;CACb,CAAA;AAED,aAAK,cAAc,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAElD,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,MAMtC;AAYD,eAAO,MAAM,oBAAoB,UAAW,SAAS,GAAG,SAAS,KAAG,cAmDnE,CAAA;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OA8ElD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSplitStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/getSplitStyles.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,OAAO,EACL,SAAS,EAET,YAAY,EAEZ,eAAe,EACf,UAAU,EACV,kBAAkB,EAElB,WAAW,EACZ,MAAM,UAAU,CAAA;AAYjB,oBAAY,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,oBAAY,gBAA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AAW,YACb,MAAM,gBACD,kBAAkB,SACzB,WAAW,SACX,GAAG,SACH,eAAe,sBACF,OAAO,KAC1B,SAeF,CAAA;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,QAI9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isTamaguiComponent.d.ts","sourceRoot":"","sources":["../../src/helpers/isTamaguiComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,UAAU,CAAA;AAE3D,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAC9C,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,IAAI,CAAC,GAAG;IACb,YAAY,EAAE,YAAY,CAAA;CAC3B,CAOA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isTamaguiElement.d.ts","sourceRoot":"","sources":["../../src/helpers/isTamaguiElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"isTamaguiElement.d.ts","sourceRoot":"","sources":["../../src/helpers/isTamaguiElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAI7C,eAAO,MAAM,gBAAgB,UAAW,GAAG,SAAS,MAAM,gFAEzD,CAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './helpers/getStylesAtomic';
|
|
|
26
26
|
export * from './helpers/getTextSize';
|
|
27
27
|
export * from './helpers/isObj';
|
|
28
28
|
export * from './helpers/isTamaguiElement';
|
|
29
|
+
export * from './helpers/isTamaguiComponent';
|
|
29
30
|
export * from './helpers/matchMedia';
|
|
30
31
|
export * from './helpers/themeable';
|
|
31
32
|
export * from './helpers/withStaticProperties';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","s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AAA;AACnC,cAAc,gCAAgC,CAAA;AAE9C,cAAc,sCAAsC,CAAA;AAEpD,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AAExC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAElC,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -286,7 +286,7 @@ declare type StaticComponentObject = {
|
|
|
286
286
|
extractable: <X>(a: X, opts?: Partial<StaticConfig>) => X;
|
|
287
287
|
};
|
|
288
288
|
export declare type TamaguiProviderProps = Partial<Omit<ThemeProviderProps, 'children'>> & {
|
|
289
|
-
|
|
289
|
+
disableInjectCSS?: boolean;
|
|
290
290
|
children?: React.ReactNode;
|
|
291
291
|
};
|
|
292
292
|
export declare type PropMapper = (key: string, value: any, theme: ThemeObject, props: Record<string, any>, state: Partial<SplitStyleState>, avoidDefaultProps?: boolean) => undefined | [string, any][];
|