@tamagui/core 1.114.3 → 1.115.0
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/createOptimizedView.cjs +26 -0
- package/dist/cjs/createOptimizedView.native.cjs +245 -0
- package/dist/cjs/createOptimizedView.native.cjs.map +6 -0
- package/dist/cjs/getBaseViews.cjs +28 -0
- package/dist/cjs/getBaseViews.native.cjs +36 -0
- package/dist/cjs/getBaseViews.native.cjs.map +6 -0
- package/dist/cjs/helpers/getBoundingClientRect.cjs +28 -0
- package/dist/cjs/helpers/getRect.cjs +44 -0
- package/dist/cjs/hooks/useElementLayout.cjs +132 -0
- package/dist/cjs/index.cjs +105 -0
- package/dist/cjs/inject-styles.cjs +37 -0
- package/dist/cjs/reactNativeTypes.cjs +16 -0
- package/dist/cjs/vendor/Pressability.cjs +28 -0
- package/dist/cjs/vendor/Pressability.native.cjs +28 -0
- package/dist/cjs/vendor/Pressability.native.cjs.map +6 -0
- package/dist/native.js.map +3 -3
- package/dist/test.native.js.map +3 -3
- package/package.json +16 -11
- package/dist/cjs/createOptimizedView.js +0 -22
- package/dist/cjs/getBaseViews.js +0 -23
- package/dist/cjs/helpers/getBoundingClientRect.js +0 -24
- package/dist/cjs/helpers/getRect.js +0 -27
- package/dist/cjs/hooks/useElementLayout.js +0 -100
- package/dist/cjs/index.js +0 -79
- package/dist/cjs/inject-styles.js +0 -28
- package/dist/cjs/reactNativeTypes.js +0 -14
- package/dist/cjs/vendor/Pressability.js +0 -22
- /package/dist/cjs/{createOptimizedView.js.map → createOptimizedView.cjs.map} +0 -0
- /package/dist/cjs/{getBaseViews.js.map → getBaseViews.cjs.map} +0 -0
- /package/dist/cjs/helpers/{getBoundingClientRect.js.map → getBoundingClientRect.cjs.map} +0 -0
- /package/dist/cjs/helpers/{getRect.js.map → getRect.cjs.map} +0 -0
- /package/dist/cjs/hooks/{useElementLayout.js.map → useElementLayout.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{inject-styles.js.map → inject-styles.cjs.map} +0 -0
- /package/dist/cjs/{reactNativeTypes.js.map → reactNativeTypes.cjs.map} +0 -0
- /package/dist/cjs/vendor/{Pressability.js.map → Pressability.cjs.map} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
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 inject_styles_exports = {};
|
|
22
|
+
__export(inject_styles_exports, {
|
|
23
|
+
injectStyles: () => injectStyles
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(inject_styles_exports);
|
|
26
|
+
const stylesheets = {},
|
|
27
|
+
injectStyles = ({
|
|
28
|
+
filePath,
|
|
29
|
+
css
|
|
30
|
+
}) => {
|
|
31
|
+
let stylesheet = stylesheets[filePath];
|
|
32
|
+
if (!stylesheet) {
|
|
33
|
+
const styleEl = document.createElement("style");
|
|
34
|
+
styleEl.setAttribute("data-file", filePath), styleEl.setAttribute("type", "text/css"), stylesheet = stylesheets[filePath] = styleEl, document.head.appendChild(styleEl);
|
|
35
|
+
}
|
|
36
|
+
stylesheet.innerHTML = css;
|
|
37
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
7
|
+
get: () => from[key],
|
|
8
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
9
|
+
});
|
|
10
|
+
return to;
|
|
11
|
+
};
|
|
12
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
13
|
+
value: !0
|
|
14
|
+
}), mod);
|
|
15
|
+
var reactNativeTypes_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(reactNativeTypes_exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
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 => ({});
|
|
@@ -0,0 +1,28 @@
|
|
|
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_native_exports = {};
|
|
22
|
+
__export(Pressability_native_exports, {
|
|
23
|
+
Pressability: () => Pressability,
|
|
24
|
+
usePressability: () => usePressability
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Pressability_native_exports);
|
|
27
|
+
const Pressability = require("react-native/Libraries/Pressability/Pressability").default,
|
|
28
|
+
usePressability = require("react-native/Libraries/Pressability/usePressability").default;
|