@tamagui/core 2.0.0-rc.30 → 2.0.0-rc.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/core",
3
- "version": "2.0.0-rc.30",
3
+ "version": "2.0.0-rc.32",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -79,17 +79,17 @@
79
79
  "clean:build": "tamagui-build clean:build"
80
80
  },
81
81
  "dependencies": {
82
- "@tamagui/helpers": "2.0.0-rc.30",
83
- "@tamagui/react-native-media-driver": "2.0.0-rc.30",
84
- "@tamagui/react-native-use-pressable": "2.0.0-rc.30",
85
- "@tamagui/use-element-layout": "2.0.0-rc.30",
86
- "@tamagui/use-event": "2.0.0-rc.30",
87
- "@tamagui/web": "2.0.0-rc.30"
82
+ "@tamagui/helpers": "2.0.0-rc.32",
83
+ "@tamagui/react-native-media-driver": "2.0.0-rc.32",
84
+ "@tamagui/react-native-use-pressable": "2.0.0-rc.32",
85
+ "@tamagui/use-element-layout": "2.0.0-rc.32",
86
+ "@tamagui/use-event": "2.0.0-rc.32",
87
+ "@tamagui/web": "2.0.0-rc.32"
88
88
  },
89
89
  "devDependencies": {
90
- "@tamagui/build": "2.0.0-rc.30",
91
- "@tamagui/native-bundle": "2.0.0-rc.30",
92
- "@tamagui/react-native-web-lite": "2.0.0-rc.30",
90
+ "@tamagui/build": "2.0.0-rc.32",
91
+ "@tamagui/native-bundle": "2.0.0-rc.32",
92
+ "@tamagui/react-native-web-lite": "2.0.0-rc.32",
93
93
  "@testing-library/react": "^16.1.0",
94
94
  "csstype": "^3.0.10",
95
95
  "react": ">=19",
package/dist/cjs/index.js DELETED
@@ -1,100 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- },
18
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
19
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
20
- value: !0
21
- }), mod);
22
- var index_exports = {};
23
- __export(index_exports, {
24
- LayoutMeasurementController: () => import_use_element_layout2.LayoutMeasurementController,
25
- TamaguiProvider: () => TamaguiProvider,
26
- Text: () => Text,
27
- View: () => View,
28
- createTamagui: () => createTamagui,
29
- registerLayoutNode: () => import_use_element_layout2.registerLayoutNode,
30
- setOnLayoutStrategy: () => import_use_element_layout2.setOnLayoutStrategy
31
- });
32
- module.exports = __toCommonJS(index_exports);
33
- __reExport(index_exports, require("@tamagui/web"), module.exports);
34
- var import_react_native_media_driver = require("@tamagui/react-native-media-driver"),
35
- import_use_element_layout = require("@tamagui/use-element-layout"),
36
- import_web = require("@tamagui/web"),
37
- import_createOptimizedView = require("./createOptimizedView.cjs"),
38
- import_getBaseViews = require("./getBaseViews.cjs"),
39
- import_use_element_layout2 = require("@tamagui/use-element-layout");
40
- __reExport(index_exports, require("./reactNativeTypes.cjs"), module.exports);
41
- var import_jsx_runtime = require("react/jsx-runtime");
42
- const TamaguiProvider = props => ((0, import_web.useIsomorphicLayoutEffect)(() => {
43
- (0, import_use_element_layout.enable)();
44
- }, []), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_web.TamaguiProvider, {
45
- ...props
46
- })),
47
- createTamagui = conf => (0, import_web.createTamagui)(conf),
48
- baseViews = (0, import_getBaseViews.getBaseViews)();
49
- (0, import_web.setupHooks)({
50
- getBaseViews: import_getBaseViews.getBaseViews,
51
- setElementProps: node => {
52
- node && !node.measure && (node.measure ||= (0, import_use_element_layout.createMeasure)(node), node.measureInWindow ||= (0, import_use_element_layout.createMeasureInWindow)(node), node.measureLayout ||= (0, import_use_element_layout.createMeasureLayout)(node));
53
- },
54
- usePropsTransform(elementType, propsIn, stateRef, willHydrate) {
55
- {
56
- const isDOM = typeof elementType == "string",
57
- {
58
- // remove event props handles by useResponderEvents
59
- onMoveShouldSetResponder,
60
- onMoveShouldSetResponderCapture,
61
- onResponderEnd,
62
- onResponderGrant,
63
- onResponderMove,
64
- onResponderReject,
65
- onResponderRelease,
66
- onResponderStart,
67
- onResponderTerminate,
68
- onResponderTerminationRequest,
69
- onScrollShouldSetResponder,
70
- onScrollShouldSetResponderCapture,
71
- onSelectionChangeShouldSetResponder,
72
- onSelectionChangeShouldSetResponderCapture,
73
- onStartShouldSetResponder,
74
- onStartShouldSetResponderCapture,
75
- // android
76
- collapsable,
77
- focusable,
78
- // deprecated,
79
- accessible,
80
- accessibilityDisabled,
81
- onLayout,
82
- hrefAttrs,
83
- ...plainDOMProps
84
- } = propsIn;
85
- if ((willHydrate || isDOM) && (0, import_use_element_layout.useElementLayout)(stateRef, isDOM ? onLayout : void 0), isDOM) {
86
- if (plainDOMProps.href && hrefAttrs) {
87
- const {
88
- download,
89
- rel,
90
- target
91
- } = hrefAttrs;
92
- download != null && (plainDOMProps.download = download), rel && (plainDOMProps.rel = rel), typeof target == "string" && (plainDOMProps.target = target.charAt(0) !== "_" ? `_${target}` : target);
93
- }
94
- return plainDOMProps;
95
- }
96
- }
97
- }
98
- });
99
- const View = import_web.View,
100
- Text = import_web.Text;
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AA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CAAC,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,QAErE;AACA,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAgBF,CAAC;AAIM,MAAM,OAAO,WAAAC,MACP,OAAO,WAAAC;",
5
- "names": ["import_use_element_layout", "WebTamaguiProvider", "createTamaguiWeb", "WebView", "WebText"]
6
- }
@@ -1,28 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
- get: () => from[key],
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- return to;
17
- };
18
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
20
- }), mod);
21
- var Pressability_exports = {};
22
- __export(Pressability_exports, {
23
- Pressability: () => Pressability,
24
- usePressability: () => usePressability
25
- });
26
- module.exports = __toCommonJS(Pressability_exports);
27
- const Pressability = {},
28
- usePressability = e => ({});
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
- get: () => from[key],
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
22
- }), mod);
23
- var Pressability_native_exports = {};
24
- __export(Pressability_native_exports, {
25
- Pressability: () => Pressability,
26
- usePressability: () => usePressability
27
- });
28
- module.exports = __toCommonJS(Pressability_native_exports);
29
- var Pressability = require("react-native/Libraries/Pressability/Pressability").default,
30
- usePressability = require("react-native/Libraries/Pressability/usePressability").default;
31
- //# sourceMappingURL=Pressability.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Pressability_native_exports","__export","Pressability","usePressability","module","exports","__toCommonJS","require","default"],"sources":["../../../src/vendor/Pressability.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,2BAAA;AAAAC,QAAA,CAAAD,2BAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA,YAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAN,2BAAA;AAAO,IAAIE,YAAA,GAAeK,OAAA,CAAQ,kDAAkD,EAAEC,OAAA;EAC3EL,eAAA,GAAkBI,OAAA,CAAQ,qDAAqD,EAAEC,OAAA","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- const Pressability = {},
2
- usePressability = e => ({});
3
- export { Pressability, usePressability };
4
- //# sourceMappingURL=Pressability.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Pressability","usePressability","e"],"sources":["../../../src/vendor/Pressability.tsx"],"sourcesContent":[null],"mappings":"AAAO,MAAMA,YAAA,GAAe,CAAC;EAChBC,eAAA,GAAmBC,CAAA,KAAY,CAAC","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- var Pressability = require("react-native/Libraries/Pressability/Pressability").default,
2
- usePressability = require("react-native/Libraries/Pressability/usePressability").default;
3
- export { Pressability, usePressability };
4
- //# sourceMappingURL=Pressability.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Pressability","require","default","usePressability"],"sources":["../../../src/vendor/Pressability.native.tsx"],"sourcesContent":[null],"mappings":"AAAO,IAAIA,YAAA,GAAeC,OAAA,CAAQ,kDAAkD,EAAEC,OAAA;EAC3EC,eAAA,GAAkBF,OAAA,CAAQ,qDAAqD,EAAEC,OAAA","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- export const Pressability =
2
- require('react-native/Libraries/Pressability/Pressability').default
3
- export const usePressability =
4
- require('react-native/Libraries/Pressability/usePressability').default
@@ -1,2 +0,0 @@
1
- export const Pressability = {} as any
2
- export const usePressability = (e: any) => ({})
@@ -1,3 +0,0 @@
1
- export declare const Pressability: any;
2
- export declare const usePressability: (e: any) => {};
3
- //# sourceMappingURL=Pressability.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pressability.d.ts","sourceRoot":"","sources":["../../src/vendor/Pressability.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAS,GAAG,CAAA;AACrC,eAAO,MAAM,eAAe,GAAI,GAAG,GAAG,OAAS,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const Pressability: any;
2
- export declare const usePressability: any;
3
- //# sourceMappingURL=Pressability.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pressability.native.d.ts","sourceRoot":"","sources":["../../src/vendor/Pressability.native.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAC4C,CAAA;AACrE,eAAO,MAAM,eAAe,KAC4C,CAAA"}