@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.
Files changed (197) hide show
  1. package/dist/cjs/createComponent.js +11 -6
  2. package/dist/cjs/createComponent.js.map +2 -2
  3. package/dist/cjs/helpers/getSplitStyles.js +3 -2
  4. package/dist/cjs/helpers/getSplitStyles.js.map +2 -2
  5. package/dist/cjs/views/Text.js +2 -1
  6. package/dist/cjs/views/Text.js.map +2 -2
  7. package/dist/esm/createComponent.js +11 -6
  8. package/dist/esm/createComponent.js.map +2 -2
  9. package/dist/esm/helpers/getSplitStyles.js +3 -2
  10. package/dist/esm/helpers/getSplitStyles.js.map +2 -2
  11. package/dist/esm/views/Text.js +2 -1
  12. package/dist/esm/views/Text.js.map +2 -2
  13. package/dist/jsx/createComponent.js +11 -6
  14. package/dist/jsx/helpers/getSplitStyles.js +3 -2
  15. package/dist/jsx/views/Text.js +2 -1
  16. package/package.json +6 -6
  17. package/reset.css +0 -1
  18. package/types/Pressability.d.ts +0 -0
  19. package/types/Pressability.d.ts.map +0 -0
  20. package/types/Pressability.native.d.ts +0 -0
  21. package/types/Pressability.native.d.ts.map +0 -0
  22. package/types/Tamagui.d.ts +0 -0
  23. package/types/Tamagui.d.ts.map +0 -0
  24. package/types/ThemeContext.d.ts +0 -0
  25. package/types/ThemeContext.d.ts.map +0 -0
  26. package/types/ThemeManager.d.ts +0 -0
  27. package/types/ThemeManager.d.ts.map +0 -0
  28. package/types/conf.d.ts +0 -0
  29. package/types/conf.d.ts.map +0 -0
  30. package/types/constants/constants.d.ts +0 -0
  31. package/types/constants/constants.d.ts.map +0 -0
  32. package/types/constants/platform.d.ts +0 -0
  33. package/types/constants/platform.d.ts.map +0 -0
  34. package/types/constants/rnw.d.ts +0 -0
  35. package/types/constants/rnw.d.ts.map +0 -0
  36. package/types/contexts/ButtonInsideButtonContext.d.ts +0 -0
  37. package/types/contexts/ButtonInsideButtonContext.d.ts.map +0 -0
  38. package/types/createComponent.d.ts +0 -0
  39. package/types/createComponent.d.ts.map +1 -1
  40. package/types/createFont.d.ts +0 -0
  41. package/types/createFont.d.ts.map +0 -0
  42. package/types/createShorthands.d.ts +0 -0
  43. package/types/createShorthands.d.ts.map +0 -0
  44. package/types/createTamagui.d.ts +0 -0
  45. package/types/createTamagui.d.ts.map +0 -0
  46. package/types/createTheme.d.ts +0 -0
  47. package/types/createTheme.d.ts.map +0 -0
  48. package/types/createTokens.d.ts +0 -0
  49. package/types/createTokens.d.ts.map +0 -0
  50. package/types/createVariable.d.ts +0 -0
  51. package/types/createVariable.d.ts.map +0 -0
  52. package/types/createVariables.d.ts +0 -0
  53. package/types/createVariables.d.ts.map +0 -0
  54. package/types/defaultComponentState.d.ts +0 -0
  55. package/types/defaultComponentState.d.ts.map +0 -0
  56. package/types/helpers/RNComponents.d.ts +0 -0
  57. package/types/helpers/RNComponents.d.ts.map +0 -0
  58. package/types/helpers/areEqualSets.d.ts +0 -0
  59. package/types/helpers/areEqualSets.d.ts.map +0 -0
  60. package/types/helpers/calc.d.ts +0 -0
  61. package/types/helpers/calc.d.ts.map +0 -0
  62. package/types/helpers/createMediaStyle.d.ts +0 -0
  63. package/types/helpers/createMediaStyle.d.ts.map +0 -0
  64. package/types/helpers/createPropMapper.d.ts +0 -0
  65. package/types/helpers/createPropMapper.d.ts.map +0 -0
  66. package/types/helpers/createShallowUpdate.d.ts +0 -0
  67. package/types/helpers/createShallowUpdate.d.ts.map +0 -0
  68. package/types/helpers/createTamaguiProvider.d.ts +0 -0
  69. package/types/helpers/createTamaguiProvider.d.ts.map +0 -0
  70. package/types/helpers/extendStaticConfig.d.ts +0 -0
  71. package/types/helpers/extendStaticConfig.d.ts.map +0 -0
  72. package/types/helpers/fixNativeShadow.d.ts +0 -0
  73. package/types/helpers/fixNativeShadow.d.ts.map +0 -0
  74. package/types/helpers/fixNativeShadow.native.d.ts +0 -0
  75. package/types/helpers/fixNativeShadow.native.d.ts.map +0 -0
  76. package/types/helpers/generateAtomicStyles.d.ts +0 -0
  77. package/types/helpers/generateAtomicStyles.d.ts.map +0 -0
  78. package/types/helpers/getExpandedShorthands.d.ts +0 -0
  79. package/types/helpers/getExpandedShorthands.d.ts.map +0 -0
  80. package/types/helpers/getSize.d.ts +0 -0
  81. package/types/helpers/getSize.d.ts.map +0 -0
  82. package/types/helpers/getSplitStyles.d.ts +0 -0
  83. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  84. package/types/helpers/getStackSize.d.ts +0 -0
  85. package/types/helpers/getStackSize.d.ts.map +0 -0
  86. package/types/helpers/getStylesAtomic.d.ts +0 -0
  87. package/types/helpers/getStylesAtomic.d.ts.map +0 -0
  88. package/types/helpers/getStylesAtomic.native.d.ts +0 -0
  89. package/types/helpers/getStylesAtomic.native.d.ts.map +0 -0
  90. package/types/helpers/getTextSize.d.ts +0 -0
  91. package/types/helpers/getTextSize.d.ts.map +0 -0
  92. package/types/helpers/getVariantExtras.d.ts +0 -0
  93. package/types/helpers/getVariantExtras.d.ts.map +0 -0
  94. package/types/helpers/insertStyleRule.d.ts +0 -0
  95. package/types/helpers/insertStyleRule.d.ts.map +0 -0
  96. package/types/helpers/isObj.d.ts +0 -0
  97. package/types/helpers/isObj.d.ts.map +0 -0
  98. package/types/helpers/isTamaguiComponent.d.ts +0 -0
  99. package/types/helpers/isTamaguiComponent.d.ts.map +0 -0
  100. package/types/helpers/isTamaguiElement.d.ts +0 -0
  101. package/types/helpers/isTamaguiElement.d.ts.map +0 -0
  102. package/types/helpers/matchMedia.d.ts +0 -0
  103. package/types/helpers/matchMedia.d.ts.map +0 -0
  104. package/types/helpers/matchMedia.native.d.ts +0 -0
  105. package/types/helpers/matchMedia.native.d.ts.map +0 -0
  106. package/types/helpers/mergeProps.d.ts +0 -0
  107. package/types/helpers/mergeProps.d.ts.map +0 -0
  108. package/types/helpers/mergeTransform.d.ts +0 -0
  109. package/types/helpers/mergeTransform.d.ts.map +0 -0
  110. package/types/helpers/nativeGestureHandler.native.d.ts +0 -0
  111. package/types/helpers/nativeGestureHandler.native.d.ts.map +0 -0
  112. package/types/helpers/proxyThemeVariables.d.ts +0 -0
  113. package/types/helpers/proxyThemeVariables.d.ts.map +0 -0
  114. package/types/helpers/pseudos.d.ts +0 -0
  115. package/types/helpers/pseudos.d.ts.map +0 -0
  116. package/types/helpers/registerCSSVariable.d.ts +0 -0
  117. package/types/helpers/registerCSSVariable.d.ts.map +0 -0
  118. package/types/helpers/themeable.d.ts +0 -0
  119. package/types/helpers/themeable.d.ts.map +0 -0
  120. package/types/helpers/validate.d.ts +0 -0
  121. package/types/helpers/validate.d.ts.map +0 -0
  122. package/types/helpers/withStaticProperties.d.ts +0 -0
  123. package/types/helpers/withStaticProperties.d.ts.map +0 -0
  124. package/types/helpers/wrapThemeManagerContext.d.ts +0 -0
  125. package/types/helpers/wrapThemeManagerContext.d.ts.map +0 -0
  126. package/types/hooks/useConstant.d.ts +0 -0
  127. package/types/hooks/useConstant.d.ts.map +0 -0
  128. package/types/hooks/useFeatures.d.ts +0 -0
  129. package/types/hooks/useFeatures.d.ts.map +0 -0
  130. package/types/hooks/useId.d.ts +0 -0
  131. package/types/hooks/useId.d.ts.map +0 -0
  132. package/types/hooks/useIsMounted.d.ts +0 -0
  133. package/types/hooks/useIsMounted.d.ts.map +0 -0
  134. package/types/hooks/useIsTouchDevice.d.ts +0 -0
  135. package/types/hooks/useIsTouchDevice.d.ts.map +0 -0
  136. package/types/hooks/useMedia.d.ts +0 -0
  137. package/types/hooks/useMedia.d.ts.map +0 -0
  138. package/types/hooks/usePressable.d.ts +0 -0
  139. package/types/hooks/usePressable.d.ts.map +0 -0
  140. package/types/hooks/usePrevious.d.ts +0 -0
  141. package/types/hooks/usePrevious.d.ts.map +0 -0
  142. package/types/hooks/useTheme.d.ts +0 -0
  143. package/types/hooks/useTheme.d.ts.map +0 -0
  144. package/types/hooks/useUnmountEffect.d.ts +0 -0
  145. package/types/hooks/useUnmountEffect.d.ts.map +0 -0
  146. package/types/index.d.ts +0 -0
  147. package/types/index.d.ts.map +0 -0
  148. package/types/insertFont.d.ts +0 -0
  149. package/types/insertFont.d.ts.map +0 -0
  150. package/types/static.d.ts +0 -0
  151. package/types/static.d.ts.map +0 -0
  152. package/types/styled.d.ts +0 -0
  153. package/types/styled.d.ts.map +0 -0
  154. package/types/types-rnw.d.ts +0 -0
  155. package/types/types-rnw.d.ts.map +0 -0
  156. package/types/types.d.ts +0 -0
  157. package/types/types.d.ts.map +0 -0
  158. package/types/views/Slot.d.ts +0 -0
  159. package/types/views/Slot.d.ts.map +0 -0
  160. package/types/views/Stack.d.ts +0 -0
  161. package/types/views/Stack.d.ts.map +0 -0
  162. package/types/views/Text.d.ts +0 -0
  163. package/types/views/Text.d.ts.map +1 -1
  164. package/types/views/TextAncestorContext.d.ts +0 -0
  165. package/types/views/TextAncestorContext.d.ts.map +0 -0
  166. package/types/views/Theme.d.ts +0 -0
  167. package/types/views/Theme.d.ts.map +0 -0
  168. package/types/views/ThemeInverse.d.ts +0 -0
  169. package/types/views/ThemeInverse.d.ts.map +0 -0
  170. package/types/views/ThemeProvider.d.ts +0 -0
  171. package/types/views/ThemeProvider.d.ts.map +0 -0
  172. package/types/views/ThemeReset.d.ts +0 -0
  173. package/types/views/ThemeReset.d.ts.map +0 -0
  174. package/dist/cjs/helpers/nativeGestureHandler.js +0 -29
  175. package/dist/cjs/helpers/nativeGestureHandler.js.map +0 -7
  176. package/dist/cjs/helpers/prefixStyles.js +0 -192
  177. package/dist/cjs/helpers/prefixStyles.js.map +0 -7
  178. package/dist/cjs/nativeGestureHandler.native.js +0 -18
  179. package/dist/cjs/nativeGestureHandler.native.js.map +0 -7
  180. package/dist/cjs/registerCSSVariable.js +0 -41
  181. package/dist/cjs/registerCSSVariable.js.map +0 -7
  182. package/dist/esm/helpers/nativeGestureHandler.js +0 -7
  183. package/dist/esm/helpers/nativeGestureHandler.js.map +0 -7
  184. package/dist/esm/helpers/prefixStyles.js +0 -166
  185. package/dist/esm/helpers/prefixStyles.js.map +0 -7
  186. package/dist/esm/nativeGestureHandler.native.js +0 -2
  187. package/dist/esm/nativeGestureHandler.native.js.map +0 -7
  188. package/dist/esm/registerCSSVariable.js +0 -17
  189. package/dist/esm/registerCSSVariable.js.map +0 -7
  190. package/dist/jsx/helpers/nativeGestureHandler.js +0 -6
  191. package/dist/jsx/helpers/prefixStyles.js +0 -165
  192. package/dist/jsx/nativeGestureHandler.native.js +0 -1
  193. package/dist/jsx/registerCSSVariable.js +0 -16
  194. package/types/helpers/prefixStyles.d.ts +0 -5
  195. package/types/helpers/prefixStyles.d.ts.map +0 -1
  196. package/types/registerCSSVariable.d.ts +0 -5
  197. 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,5 +0,0 @@
1
- declare type StyleModifier = (style: Object) => Object;
2
- export declare const prefixInlineStyles: StyleModifier;
3
- export declare const prefixStyles: StyleModifier;
4
- export {};
5
- //# sourceMappingURL=prefixStyles.d.ts.map
@@ -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"}