@tamagui/core 1.0.1-beta.70 → 1.0.1-beta.71
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 +11 -6
- package/dist/cjs/createComponent.js.map +2 -2
- package/dist/cjs/helpers/getSplitStyles.js +3 -2
- package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
- package/dist/cjs/views/Text.js +2 -1
- package/dist/cjs/views/Text.js.map +2 -2
- package/dist/esm/createComponent.js +11 -6
- package/dist/esm/createComponent.js.map +2 -2
- package/dist/esm/helpers/getSplitStyles.js +3 -2
- package/dist/esm/helpers/getSplitStyles.js.map +2 -2
- package/dist/esm/views/Text.js +2 -1
- package/dist/esm/views/Text.js.map +2 -2
- package/dist/jsx/createComponent.js +11 -6
- package/dist/jsx/helpers/getSplitStyles.js +3 -2
- package/dist/jsx/views/Text.js +2 -1
- package/package.json +6 -6
- package/reset.css +0 -1
- package/types/Pressability.d.ts +0 -0
- package/types/Pressability.d.ts.map +0 -0
- package/types/Pressability.native.d.ts +0 -0
- package/types/Pressability.native.d.ts.map +0 -0
- package/types/Tamagui.d.ts +0 -0
- package/types/Tamagui.d.ts.map +0 -0
- package/types/ThemeContext.d.ts +0 -0
- package/types/ThemeContext.d.ts.map +0 -0
- package/types/ThemeManager.d.ts +0 -0
- package/types/ThemeManager.d.ts.map +0 -0
- package/types/conf.d.ts +0 -0
- package/types/conf.d.ts.map +0 -0
- package/types/constants/constants.d.ts +0 -0
- package/types/constants/constants.d.ts.map +0 -0
- package/types/constants/platform.d.ts +0 -0
- package/types/constants/platform.d.ts.map +0 -0
- package/types/constants/rnw.d.ts +0 -0
- package/types/constants/rnw.d.ts.map +0 -0
- package/types/contexts/ButtonInsideButtonContext.d.ts +0 -0
- package/types/contexts/ButtonInsideButtonContext.d.ts.map +0 -0
- package/types/createComponent.d.ts +0 -0
- package/types/createComponent.d.ts.map +1 -1
- package/types/createFont.d.ts +0 -0
- package/types/createFont.d.ts.map +0 -0
- package/types/createShorthands.d.ts +0 -0
- package/types/createShorthands.d.ts.map +0 -0
- package/types/createTamagui.d.ts +0 -0
- package/types/createTamagui.d.ts.map +0 -0
- package/types/createTheme.d.ts +0 -0
- package/types/createTheme.d.ts.map +0 -0
- package/types/createTokens.d.ts +0 -0
- package/types/createTokens.d.ts.map +0 -0
- package/types/createVariable.d.ts +0 -0
- package/types/createVariable.d.ts.map +0 -0
- package/types/createVariables.d.ts +0 -0
- package/types/createVariables.d.ts.map +0 -0
- package/types/defaultComponentState.d.ts +0 -0
- package/types/defaultComponentState.d.ts.map +0 -0
- package/types/helpers/RNComponents.d.ts +0 -0
- package/types/helpers/RNComponents.d.ts.map +0 -0
- package/types/helpers/areEqualSets.d.ts +0 -0
- package/types/helpers/areEqualSets.d.ts.map +0 -0
- package/types/helpers/calc.d.ts +0 -0
- package/types/helpers/calc.d.ts.map +0 -0
- package/types/helpers/createMediaStyle.d.ts +0 -0
- package/types/helpers/createMediaStyle.d.ts.map +0 -0
- package/types/helpers/createPropMapper.d.ts +0 -0
- package/types/helpers/createPropMapper.d.ts.map +0 -0
- package/types/helpers/createShallowUpdate.d.ts +0 -0
- package/types/helpers/createShallowUpdate.d.ts.map +0 -0
- package/types/helpers/createTamaguiProvider.d.ts +0 -0
- package/types/helpers/createTamaguiProvider.d.ts.map +0 -0
- package/types/helpers/extendStaticConfig.d.ts +0 -0
- package/types/helpers/extendStaticConfig.d.ts.map +0 -0
- package/types/helpers/fixNativeShadow.d.ts +0 -0
- package/types/helpers/fixNativeShadow.d.ts.map +0 -0
- package/types/helpers/fixNativeShadow.native.d.ts +0 -0
- package/types/helpers/fixNativeShadow.native.d.ts.map +0 -0
- package/types/helpers/generateAtomicStyles.d.ts +0 -0
- package/types/helpers/generateAtomicStyles.d.ts.map +0 -0
- package/types/helpers/getExpandedShorthands.d.ts +0 -0
- package/types/helpers/getExpandedShorthands.d.ts.map +0 -0
- package/types/helpers/getSize.d.ts +0 -0
- package/types/helpers/getSize.d.ts.map +0 -0
- package/types/helpers/getSplitStyles.d.ts +0 -0
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/getStackSize.d.ts +0 -0
- package/types/helpers/getStackSize.d.ts.map +0 -0
- package/types/helpers/getStylesAtomic.d.ts +0 -0
- package/types/helpers/getStylesAtomic.d.ts.map +0 -0
- package/types/helpers/getStylesAtomic.native.d.ts +0 -0
- package/types/helpers/getStylesAtomic.native.d.ts.map +0 -0
- package/types/helpers/getTextSize.d.ts +0 -0
- package/types/helpers/getTextSize.d.ts.map +0 -0
- package/types/helpers/getVariantExtras.d.ts +0 -0
- package/types/helpers/getVariantExtras.d.ts.map +0 -0
- package/types/helpers/insertStyleRule.d.ts +0 -0
- package/types/helpers/insertStyleRule.d.ts.map +0 -0
- package/types/helpers/isObj.d.ts +0 -0
- package/types/helpers/isObj.d.ts.map +0 -0
- package/types/helpers/isTamaguiComponent.d.ts +0 -0
- package/types/helpers/isTamaguiComponent.d.ts.map +0 -0
- package/types/helpers/isTamaguiElement.d.ts +0 -0
- package/types/helpers/isTamaguiElement.d.ts.map +0 -0
- package/types/helpers/matchMedia.d.ts +0 -0
- package/types/helpers/matchMedia.d.ts.map +0 -0
- package/types/helpers/matchMedia.native.d.ts +0 -0
- package/types/helpers/matchMedia.native.d.ts.map +0 -0
- package/types/helpers/mergeProps.d.ts +0 -0
- package/types/helpers/mergeProps.d.ts.map +0 -0
- package/types/helpers/mergeTransform.d.ts +0 -0
- package/types/helpers/mergeTransform.d.ts.map +0 -0
- package/types/helpers/nativeGestureHandler.native.d.ts +0 -0
- package/types/helpers/nativeGestureHandler.native.d.ts.map +0 -0
- package/types/helpers/proxyThemeVariables.d.ts +0 -0
- package/types/helpers/proxyThemeVariables.d.ts.map +0 -0
- package/types/helpers/pseudos.d.ts +0 -0
- package/types/helpers/pseudos.d.ts.map +0 -0
- package/types/helpers/registerCSSVariable.d.ts +0 -0
- package/types/helpers/registerCSSVariable.d.ts.map +0 -0
- package/types/helpers/themeable.d.ts +0 -0
- package/types/helpers/themeable.d.ts.map +0 -0
- package/types/helpers/validate.d.ts +0 -0
- package/types/helpers/validate.d.ts.map +0 -0
- package/types/helpers/withStaticProperties.d.ts +0 -0
- package/types/helpers/withStaticProperties.d.ts.map +0 -0
- package/types/helpers/wrapThemeManagerContext.d.ts +0 -0
- package/types/helpers/wrapThemeManagerContext.d.ts.map +0 -0
- package/types/hooks/useConstant.d.ts +0 -0
- package/types/hooks/useConstant.d.ts.map +0 -0
- package/types/hooks/useFeatures.d.ts +0 -0
- package/types/hooks/useFeatures.d.ts.map +0 -0
- package/types/hooks/useId.d.ts +0 -0
- package/types/hooks/useId.d.ts.map +0 -0
- package/types/hooks/useIsMounted.d.ts +0 -0
- package/types/hooks/useIsMounted.d.ts.map +0 -0
- package/types/hooks/useIsTouchDevice.d.ts +0 -0
- package/types/hooks/useIsTouchDevice.d.ts.map +0 -0
- package/types/hooks/useMedia.d.ts +0 -0
- package/types/hooks/useMedia.d.ts.map +0 -0
- package/types/hooks/usePressable.d.ts +0 -0
- package/types/hooks/usePressable.d.ts.map +0 -0
- package/types/hooks/usePrevious.d.ts +0 -0
- package/types/hooks/usePrevious.d.ts.map +0 -0
- package/types/hooks/useTheme.d.ts +0 -0
- package/types/hooks/useTheme.d.ts.map +0 -0
- package/types/hooks/useUnmountEffect.d.ts +0 -0
- package/types/hooks/useUnmountEffect.d.ts.map +0 -0
- package/types/index.d.ts +0 -0
- package/types/index.d.ts.map +0 -0
- package/types/insertFont.d.ts +0 -0
- package/types/insertFont.d.ts.map +0 -0
- package/types/static.d.ts +0 -0
- package/types/static.d.ts.map +0 -0
- package/types/styled.d.ts +0 -0
- package/types/styled.d.ts.map +0 -0
- package/types/types-rnw.d.ts +0 -0
- package/types/types-rnw.d.ts.map +0 -0
- package/types/types.d.ts +0 -0
- package/types/types.d.ts.map +0 -0
- package/types/views/Slot.d.ts +0 -0
- package/types/views/Slot.d.ts.map +0 -0
- package/types/views/Stack.d.ts +0 -0
- package/types/views/Stack.d.ts.map +0 -0
- package/types/views/Text.d.ts +0 -0
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/TextAncestorContext.d.ts +0 -0
- package/types/views/TextAncestorContext.d.ts.map +0 -0
- package/types/views/Theme.d.ts +0 -0
- package/types/views/Theme.d.ts.map +0 -0
- package/types/views/ThemeInverse.d.ts +0 -0
- package/types/views/ThemeInverse.d.ts.map +0 -0
- package/types/views/ThemeProvider.d.ts +0 -0
- package/types/views/ThemeProvider.d.ts.map +0 -0
- package/types/views/ThemeReset.d.ts +0 -0
- package/types/views/ThemeReset.d.ts.map +0 -0
- package/dist/cjs/helpers/nativeGestureHandler.js +0 -29
- package/dist/cjs/helpers/nativeGestureHandler.js.map +0 -7
- package/dist/cjs/helpers/prefixStyles.js +0 -192
- package/dist/cjs/helpers/prefixStyles.js.map +0 -7
- package/dist/cjs/nativeGestureHandler.native.js +0 -18
- package/dist/cjs/nativeGestureHandler.native.js.map +0 -7
- package/dist/cjs/registerCSSVariable.js +0 -41
- package/dist/cjs/registerCSSVariable.js.map +0 -7
- package/dist/esm/helpers/nativeGestureHandler.js +0 -7
- package/dist/esm/helpers/nativeGestureHandler.js.map +0 -7
- package/dist/esm/helpers/prefixStyles.js +0 -166
- package/dist/esm/helpers/prefixStyles.js.map +0 -7
- package/dist/esm/nativeGestureHandler.native.js +0 -2
- package/dist/esm/nativeGestureHandler.native.js.map +0 -7
- package/dist/esm/registerCSSVariable.js +0 -17
- package/dist/esm/registerCSSVariable.js.map +0 -7
- package/dist/jsx/helpers/nativeGestureHandler.js +0 -6
- package/dist/jsx/helpers/prefixStyles.js +0 -165
- package/dist/jsx/nativeGestureHandler.native.js +0 -1
- package/dist/jsx/registerCSSVariable.js +0 -16
- package/types/helpers/prefixStyles.d.ts +0 -5
- package/types/helpers/prefixStyles.d.ts.map +0 -1
- package/types/registerCSSVariable.d.ts +0 -5
- package/types/registerCSSVariable.d.ts.map +0 -1
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import createPrefixer from "inline-style-prefixer/lib/createPrefixer";
|
|
4
|
-
import backgroundClip from "inline-style-prefixer/lib/plugins/backgroundClip";
|
|
5
|
-
import crossFade from "inline-style-prefixer/lib/plugins/crossFade";
|
|
6
|
-
import cursor from "inline-style-prefixer/lib/plugins/cursor";
|
|
7
|
-
import filter from "inline-style-prefixer/lib/plugins/filter";
|
|
8
|
-
import flex from "inline-style-prefixer/lib/plugins/flex";
|
|
9
|
-
import flexboxIE from "inline-style-prefixer/lib/plugins/flexboxIE";
|
|
10
|
-
import flexboxOld from "inline-style-prefixer/lib/plugins/flexboxOld";
|
|
11
|
-
import gradient from "inline-style-prefixer/lib/plugins/gradient";
|
|
12
|
-
import grid from "inline-style-prefixer/lib/plugins/grid";
|
|
13
|
-
import imageSet from "inline-style-prefixer/lib/plugins/imageSet";
|
|
14
|
-
import logical from "inline-style-prefixer/lib/plugins/logical";
|
|
15
|
-
import position from "inline-style-prefixer/lib/plugins/position";
|
|
16
|
-
import sizing from "inline-style-prefixer/lib/plugins/sizing";
|
|
17
|
-
import transition from "inline-style-prefixer/lib/plugins/transition";
|
|
18
|
-
const prefixInlineStyles = /* @__PURE__ */ __name((style) => {
|
|
19
|
-
const prefixedStyles = prefixStyles(style);
|
|
20
|
-
Object.keys(prefixedStyles).forEach((prop) => {
|
|
21
|
-
const value = prefixedStyles[prop];
|
|
22
|
-
if (Array.isArray(value)) {
|
|
23
|
-
prefixedStyles[prop] = value[value.length - 1];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
return prefixedStyles;
|
|
27
|
-
}, "prefixInlineStyles");
|
|
28
|
-
const w = ["Webkit"];
|
|
29
|
-
const m = ["Moz"];
|
|
30
|
-
const ms = ["ms"];
|
|
31
|
-
const wm = ["Webkit", "Moz"];
|
|
32
|
-
const wms = ["Webkit", "ms"];
|
|
33
|
-
const wmms = ["Webkit", "Moz", "ms"];
|
|
34
|
-
const staticData = {
|
|
35
|
-
plugins: [
|
|
36
|
-
backgroundClip,
|
|
37
|
-
crossFade,
|
|
38
|
-
cursor,
|
|
39
|
-
filter,
|
|
40
|
-
flex,
|
|
41
|
-
flexboxIE,
|
|
42
|
-
flexboxOld,
|
|
43
|
-
gradient,
|
|
44
|
-
grid,
|
|
45
|
-
imageSet,
|
|
46
|
-
logical,
|
|
47
|
-
position,
|
|
48
|
-
sizing,
|
|
49
|
-
transition
|
|
50
|
-
],
|
|
51
|
-
prefixMap: {
|
|
52
|
-
animation: w,
|
|
53
|
-
animationDelay: w,
|
|
54
|
-
animationDirection: w,
|
|
55
|
-
animationFillMode: w,
|
|
56
|
-
animationDuration: w,
|
|
57
|
-
animationIterationCount: w,
|
|
58
|
-
animationName: w,
|
|
59
|
-
animationPlayState: w,
|
|
60
|
-
animationTimingFunction: w,
|
|
61
|
-
appearance: wm,
|
|
62
|
-
userSelect: wmms,
|
|
63
|
-
textEmphasisPosition: w,
|
|
64
|
-
textEmphasis: w,
|
|
65
|
-
textEmphasisStyle: w,
|
|
66
|
-
textEmphasisColor: w,
|
|
67
|
-
boxDecorationBreak: w,
|
|
68
|
-
clipPath: w,
|
|
69
|
-
maskImage: w,
|
|
70
|
-
maskMode: w,
|
|
71
|
-
maskRepeat: w,
|
|
72
|
-
maskPosition: w,
|
|
73
|
-
maskClip: w,
|
|
74
|
-
maskOrigin: w,
|
|
75
|
-
maskSize: w,
|
|
76
|
-
maskComposite: w,
|
|
77
|
-
mask: w,
|
|
78
|
-
maskBorderSource: w,
|
|
79
|
-
maskBorderMode: w,
|
|
80
|
-
maskBorderSlice: w,
|
|
81
|
-
maskBorderWidth: w,
|
|
82
|
-
maskBorderOutset: w,
|
|
83
|
-
maskBorderRepeat: w,
|
|
84
|
-
maskBorder: w,
|
|
85
|
-
maskType: w,
|
|
86
|
-
textDecorationStyle: w,
|
|
87
|
-
textDecorationSkip: w,
|
|
88
|
-
textDecorationLine: w,
|
|
89
|
-
textDecorationColor: w,
|
|
90
|
-
filter: w,
|
|
91
|
-
fontFeatureSettings: w,
|
|
92
|
-
breakAfter: wmms,
|
|
93
|
-
breakBefore: wmms,
|
|
94
|
-
breakInside: wmms,
|
|
95
|
-
columnCount: wm,
|
|
96
|
-
columnFill: wm,
|
|
97
|
-
columnGap: wm,
|
|
98
|
-
columnRule: wm,
|
|
99
|
-
columnRuleColor: wm,
|
|
100
|
-
columnRuleStyle: wm,
|
|
101
|
-
columnRuleWidth: wm,
|
|
102
|
-
columns: wm,
|
|
103
|
-
columnSpan: wm,
|
|
104
|
-
columnWidth: wm,
|
|
105
|
-
writingMode: wms,
|
|
106
|
-
flex: wms,
|
|
107
|
-
flexBasis: w,
|
|
108
|
-
flexDirection: wms,
|
|
109
|
-
flexGrow: w,
|
|
110
|
-
flexFlow: wms,
|
|
111
|
-
flexShrink: w,
|
|
112
|
-
flexWrap: wms,
|
|
113
|
-
alignContent: w,
|
|
114
|
-
alignItems: w,
|
|
115
|
-
alignSelf: w,
|
|
116
|
-
justifyContent: w,
|
|
117
|
-
order: w,
|
|
118
|
-
transform: w,
|
|
119
|
-
transformOrigin: w,
|
|
120
|
-
transformOriginX: w,
|
|
121
|
-
transformOriginY: w,
|
|
122
|
-
backfaceVisibility: w,
|
|
123
|
-
perspective: w,
|
|
124
|
-
perspectiveOrigin: w,
|
|
125
|
-
transformStyle: w,
|
|
126
|
-
transformOriginZ: w,
|
|
127
|
-
backdropFilter: w,
|
|
128
|
-
fontKerning: w,
|
|
129
|
-
scrollSnapType: wms,
|
|
130
|
-
scrollSnapPointsX: wms,
|
|
131
|
-
scrollSnapPointsY: wms,
|
|
132
|
-
scrollSnapDestination: wms,
|
|
133
|
-
scrollSnapCoordinate: wms,
|
|
134
|
-
shapeImageThreshold: w,
|
|
135
|
-
shapeImageMargin: w,
|
|
136
|
-
shapeImageOutside: w,
|
|
137
|
-
hyphens: wmms,
|
|
138
|
-
flowInto: wms,
|
|
139
|
-
flowFrom: wms,
|
|
140
|
-
regionFragment: wms,
|
|
141
|
-
textOrientation: w,
|
|
142
|
-
textAlignLast: m,
|
|
143
|
-
tabSize: m,
|
|
144
|
-
wrapFlow: ms,
|
|
145
|
-
wrapThrough: ms,
|
|
146
|
-
wrapMargin: ms,
|
|
147
|
-
touchAction: ms,
|
|
148
|
-
textSizeAdjust: ["ms", "Webkit"],
|
|
149
|
-
borderImage: w,
|
|
150
|
-
borderImageOutset: w,
|
|
151
|
-
borderImageRepeat: w,
|
|
152
|
-
borderImageSlice: w,
|
|
153
|
-
borderImageSource: w,
|
|
154
|
-
borderImageWidth: w,
|
|
155
|
-
transitionDelay: w,
|
|
156
|
-
transitionDuration: w,
|
|
157
|
-
transitionProperty: w,
|
|
158
|
-
transitionTimingFunction: w
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
const prefixStyles = createPrefixer(staticData);
|
|
162
|
-
export {
|
|
163
|
-
prefixInlineStyles,
|
|
164
|
-
prefixStyles
|
|
165
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "react-native-gesture-handler";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
import { createCSSVariable } from "./createVariable";
|
|
4
|
-
const registerCSSVariable = /* @__PURE__ */ __name((v) => {
|
|
5
|
-
tokensValueToVariable.set(v.val, v);
|
|
6
|
-
const val = `--${createCSSVariable(v.name, false)}:${typeof v.val === "number" ? `${v.val}px` : v.val}`;
|
|
7
|
-
tokenRules.add(val);
|
|
8
|
-
return val;
|
|
9
|
-
}, "registerCSSVariable");
|
|
10
|
-
const tokensValueToVariable = /* @__PURE__ */ new Map();
|
|
11
|
-
const tokenRules = /* @__PURE__ */ new Set();
|
|
12
|
-
export {
|
|
13
|
-
registerCSSVariable,
|
|
14
|
-
tokenRules,
|
|
15
|
-
tokensValueToVariable
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefixStyles.d.ts","sourceRoot":"","sources":["../../src/helpers/prefixStyles.ts"],"names":[],"mappings":"AAgBA,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAE9C,eAAO,MAAM,kBAAkB,EAAE,aAahC,CAAA;AAwID,eAAO,MAAM,YAAY,EAAE,aAA0C,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Variable } from './createVariable';
|
|
2
|
-
export declare const registerCSSVariable: (v: Variable) => string;
|
|
3
|
-
export declare const tokensValueToVariable: Map<string, Variable<any>>;
|
|
4
|
-
export declare const tokenRules: Set<string>;
|
|
5
|
-
//# sourceMappingURL=registerCSSVariable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registerCSSVariable.d.ts","sourceRoot":"","sources":["../src/registerCSSVariable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,kBAAkB,CAAA;AAE9D,eAAO,MAAM,mBAAmB,MAAO,QAAQ,WAO9C,CAAA;AAED,eAAO,MAAM,qBAAqB,4BAA8B,CAAA;AAChE,eAAO,MAAM,UAAU,aAAoB,CAAA"}
|