@tamagui/helpers 1.89.25 → 1.89.27-1708112217600
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/clamp.native.js +49 -1
- package/dist/cjs/clamp.native.js.map +3 -3
- package/dist/cjs/composeEventHandlers.native.js +3 -2
- package/dist/cjs/composeEventHandlers.native.js.map +3 -3
- package/dist/cjs/concatClassName.native.js +29 -35
- package/dist/cjs/concatClassName.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/shouldRenderNativePlatform.native.js +25 -7
- package/dist/cjs/shouldRenderNativePlatform.native.js.map +3 -3
- package/dist/cjs/types.native.js.map +2 -2
- package/dist/cjs/validStyleProps.native.js +48 -27
- package/dist/cjs/validStyleProps.native.js.map +3 -3
- package/dist/cjs/withStaticProperties.native.js +45 -9
- package/dist/cjs/withStaticProperties.native.js.map +3 -3
- package/dist/esm/clamp.native.js +49 -1
- package/dist/esm/clamp.native.js.map +3 -3
- package/dist/esm/composeEventHandlers.native.js +3 -2
- package/dist/esm/composeEventHandlers.native.js.map +3 -3
- package/dist/esm/concatClassName.native.js +29 -35
- package/dist/esm/concatClassName.native.js.map +3 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/shouldRenderNativePlatform.native.js +25 -6
- package/dist/esm/shouldRenderNativePlatform.native.js.map +3 -3
- package/dist/esm/validStyleProps.native.js +48 -27
- package/dist/esm/validStyleProps.native.js.map +3 -3
- package/dist/esm/withStaticProperties.native.js +45 -9
- package/dist/esm/withStaticProperties.native.js.map +3 -3
- package/package.json +4 -4
package/dist/cjs/clamp.native.js
CHANGED
|
@@ -18,7 +18,55 @@ __export(clamp_exports, {
|
|
|
18
18
|
clamp: () => clamp
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(clamp_exports);
|
|
21
|
-
function
|
|
21
|
+
function _array_like_to_array(arr, len) {
|
|
22
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
23
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
24
|
+
arr2[i] = arr[i];
|
|
25
|
+
return arr2;
|
|
26
|
+
}
|
|
27
|
+
function _array_with_holes(arr) {
|
|
28
|
+
if (Array.isArray(arr))
|
|
29
|
+
return arr;
|
|
30
|
+
}
|
|
31
|
+
function _iterable_to_array_limit(arr, i) {
|
|
32
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
33
|
+
if (_i != null) {
|
|
34
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
35
|
+
try {
|
|
36
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
37
|
+
;
|
|
38
|
+
} catch (err) {
|
|
39
|
+
_d = !0, _e = err;
|
|
40
|
+
} finally {
|
|
41
|
+
try {
|
|
42
|
+
!_n && _i.return != null && _i.return();
|
|
43
|
+
} finally {
|
|
44
|
+
if (_d)
|
|
45
|
+
throw _e;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return _arr;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function _non_iterable_rest() {
|
|
52
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
53
|
+
}
|
|
54
|
+
function _sliced_to_array(arr, i) {
|
|
55
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
56
|
+
}
|
|
57
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
58
|
+
if (o) {
|
|
59
|
+
if (typeof o == "string")
|
|
60
|
+
return _array_like_to_array(o, minLen);
|
|
61
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
62
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
63
|
+
return Array.from(n);
|
|
64
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
65
|
+
return _array_like_to_array(o, minLen);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function clamp(value, param) {
|
|
69
|
+
var _param = _sliced_to_array(param, 2), min = _param[0], max = _param[1];
|
|
22
70
|
return Math.min(max, Math.max(min, value));
|
|
23
71
|
}
|
|
24
72
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/clamp.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/clamp.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA,MAAMC,OAAe,OAA4B;MAA5B,SAAA,iBAAA,OAAA,CAAA,GAACC,MAAD,OAAA,CAAA,GAAMC,MAAN,OAAA,CAAA;AACnC,SAAOC,KAAKF,IAAIC,KAAKC,KAAKD,IAAID,KAAKD,KAAAA,CAAAA;AACrC;",
|
|
5
|
+
"names": ["clamp", "value", "min", "max", "Math"]
|
|
6
6
|
}
|
|
@@ -18,8 +18,9 @@ __export(composeEventHandlers_exports, {
|
|
|
18
18
|
composeEventHandlers: () => composeEventHandlers
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(composeEventHandlers_exports);
|
|
21
|
-
function composeEventHandlers(og, next
|
|
22
|
-
|
|
21
|
+
function composeEventHandlers(og, next) {
|
|
22
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ref_checkDefaultPrevented = _ref.checkDefaultPrevented, checkDefaultPrevented = _ref_checkDefaultPrevented === void 0 ? !0 : _ref_checkDefaultPrevented;
|
|
23
|
+
return !og || !next ? next || og || void 0 : function(event) {
|
|
23
24
|
if (og == null || og(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
24
25
|
"defaultPrevented" in event && !event.defaultPrevented)
|
|
25
26
|
return next == null ? void 0 : next(event);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/composeEventHandlers.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/composeEventHandlers.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA;;;;;AAAO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,OAAA,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAmC,CAAC,GAAA,6BAApC,KAAEC,uBAAAA,wBAAAA,+BAAAA,SAAwB,KAAA;AAE1B,SAAI,CAACF,MAAM,CAACC,OACHA,QAAQD,MAAMG,SAEhB,SAACC,OAAAA;AAEN,QADAJ,MAAAA,QAAAA,GAAKI,KAAAA,GAEH,CAACA,SACD,EAAEF,yBAAyB,sBAAsBE;IAEhD,sBAAsBA,SAAS,CAACA,MAAMC;AAEvC,aAAOJ,QAAAA,OAAAA,SAAAA,KAAOG,KAAAA;EAElB;AACF;",
|
|
5
|
+
"names": ["composeEventHandlers", "og", "next", "checkDefaultPrevented", "undefined", "event", "defaultPrevented"]
|
|
6
6
|
}
|
|
@@ -19,49 +19,43 @@ __export(concatClassName_exports, {
|
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(concatClassName_exports);
|
|
21
21
|
function concatClassName(_cn) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let propObjects = null;
|
|
26
|
-
for (let x = len; x >= 0; x--) {
|
|
27
|
-
const cns = args[x];
|
|
28
|
-
if (!cns)
|
|
29
|
-
continue;
|
|
30
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
31
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
const names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
35
|
-
for (let i = numNames - 1; i >= 0; i--) {
|
|
36
|
-
const name = names[i];
|
|
22
|
+
for (var _loop = function(x2) {
|
|
23
|
+
var _loop2 = function(i2) {
|
|
24
|
+
var name = names[i2];
|
|
37
25
|
if (!name || name === " ")
|
|
38
|
-
continue;
|
|
39
|
-
if (name[0] !== "_")
|
|
40
|
-
final = name + " " + final;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
final = name + " " + final;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
const isMediaQuery = name[splitIndex + 1] === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
26
|
+
return "continue";
|
|
27
|
+
if (name[0] !== "_")
|
|
28
|
+
return final = name + " " + final, "continue";
|
|
29
|
+
var splitIndex = name.indexOf("-");
|
|
30
|
+
if (splitIndex < 1)
|
|
31
|
+
return final = name + " " + final, "continue";
|
|
32
|
+
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
49
33
|
if (usedPrefixes.indexOf(uid) > -1)
|
|
50
|
-
continue;
|
|
34
|
+
return "continue";
|
|
51
35
|
usedPrefixes.push(uid);
|
|
52
|
-
|
|
53
|
-
propName && propObjects && propObjects.some((po)
|
|
36
|
+
var propName = styleKey;
|
|
37
|
+
if (propName && propObjects && propObjects.some(function(po) {
|
|
54
38
|
if (mediaKey) {
|
|
55
|
-
|
|
39
|
+
var propKey = pseudoInvert[mediaKey];
|
|
56
40
|
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
57
41
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
var res = po && propName in po && po[propName] !== null;
|
|
43
|
+
return res;
|
|
44
|
+
}))
|
|
45
|
+
return "continue";
|
|
46
|
+
final = name + " " + final;
|
|
47
|
+
}, cns = args[x2];
|
|
48
|
+
if (!cns)
|
|
49
|
+
return "continue";
|
|
50
|
+
if (!Array.isArray(cns) && typeof cns != "string")
|
|
51
|
+
return propObjects = propObjects || [], propObjects.push(cns), "continue";
|
|
52
|
+
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--)
|
|
53
|
+
_loop2(i);
|
|
54
|
+
}, args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--)
|
|
55
|
+
_loop(x);
|
|
62
56
|
return final;
|
|
63
57
|
}
|
|
64
|
-
|
|
58
|
+
var pseudoInvert = {
|
|
65
59
|
hover: "hoverStyle",
|
|
66
60
|
focus: "focusStyle",
|
|
67
61
|
press: "pressStyle"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/concatClassName.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;AAUO,SAASA,gBAAgBC,KAA2C;AAOzE;;AAcI,UAAMC,OAAOC,MAAMC,EAAAA;AAEnB,UAAI,CAACF,QAAQA,SAAS;AAAK,eAAA;AAC3B,UAAIA,KAAK,CAAA,MAAO;AAEdG,uBAAQH,OAAO,MAAMG,OACrB;AAGF,UAAMC,aAAaJ,KA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AAK,GAAGA;AAAAA,UAAAA,CAAAA;AAwE1B,SAAOrB;AACT;AAEA,IAAMiB,eAAe;EACnBY,OAAO;EACPC,OAAO;EACPC,OAAO;AACT;",
|
|
5
|
+
"names": ["concatClassName", "_cn", "name", "names", "i", "final", "splitIndex", "indexOf", "nextChar", "isMediaQuery", "styleKey", "slice", "lastIndexOf", "mediaKey", "uid", "usedPrefixes", "push", "propName", "propObjects", "some", "po", "propKey", "pseudoInvert", "res", "cns", "args", "x", "Array", "isArray", "split", "numNames", "length", "arguments", "len", "hover", "focus", "press"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;AAAA
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/index.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;AAAA;;wBAAc,iCAAd;AACA,wBAAc,oBADd;AAEA,wBAAc,mCAFd;AAGA,wBAAc,8BAHd;AAIA,wBAAc,oBAJd;AAKA,wBAAc,yCALd;AAMA,wBAAc,8BANd;AAOA,wBAAc,mCAPd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -18,19 +18,37 @@ __export(shouldRenderNativePlatform_exports, {
|
|
|
18
18
|
shouldRenderNativePlatform: () => shouldRenderNativePlatform
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(shouldRenderNativePlatform_exports);
|
|
21
|
-
var import_constants = require("@tamagui/constants")
|
|
22
|
-
|
|
21
|
+
var import_constants = require("@tamagui/constants"), ALL_PLATFORMS = [
|
|
22
|
+
"web",
|
|
23
|
+
"android",
|
|
24
|
+
"ios"
|
|
25
|
+
];
|
|
23
26
|
function shouldRenderNativePlatform(nativeProp) {
|
|
24
27
|
if (!nativeProp)
|
|
25
28
|
return null;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
var userRequestedPlatforms = resolvePlatformNames(nativeProp), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
30
|
+
try {
|
|
31
|
+
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
32
|
+
var platform = _step.value;
|
|
33
|
+
if (platform === import_constants.currentPlatform && userRequestedPlatforms.has(platform))
|
|
34
|
+
return platform;
|
|
35
|
+
}
|
|
36
|
+
} catch (err) {
|
|
37
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
38
|
+
} finally {
|
|
39
|
+
try {
|
|
40
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
41
|
+
} finally {
|
|
42
|
+
if (_didIteratorError)
|
|
43
|
+
throw _iteratorError;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
30
46
|
return null;
|
|
31
47
|
}
|
|
32
48
|
function resolvePlatformNames(nativeProp) {
|
|
33
|
-
|
|
49
|
+
var platforms = nativeProp === !0 ? ALL_PLATFORMS : nativeProp === !1 ? [] : Array.isArray(nativeProp) ? nativeProp : [
|
|
50
|
+
nativeProp
|
|
51
|
+
], set = new Set(platforms);
|
|
34
52
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
35
53
|
}
|
|
36
54
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/shouldRenderNativePlatform.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/shouldRenderNativePlatform.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;uBAAgC,+BAuB1BA,gBAA0C;EAAC;EAAO;EAAW;;AAa5D,SAASC,2BAA2BC,YAAwB;AACjE,MAAI,CAACA;AACH,WAAO;AAET,MAAMC,yBAAyBC,qBAAqBF,UAAAA,GAE/C,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAkBF,cAAAA,OAAAA,QAAAA,EAAAA,GAAlB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAiC;AAAjC,UAAMK,WAAN,MAAA;AACH,UAAIA,aAAaC,oCAAmBH,uBAAuBI,IAAIF,QAAAA;AAC7D,eAAOA;IAEX;;AAJK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,SAAO;AACT;AAEA,SAASD,qBAAqBF,YAAuB;AACnD,MAAMM,YACJN,eAAe,KACXF,gBACAE,eAAe,KACb,CAAA,IACAO,MAAMC,QAAQR,UAAAA,IACZA,aACA;IAACA;KACLS,MAAM,IAAIC,IAAIJ,SAAAA;AAEpB,SAAIG,IAAIJ,IAAI,QAAA,MAEVI,IAAIE,IAAI,SAAA,GACRF,IAAIE,IAAI,KAAA,GACRF,IAAIG,OAAO,QAAA,IAENH;AACT;",
|
|
5
|
+
"names": ["ALL_PLATFORMS", "shouldRenderNativePlatform", "nativeProp", "userRequestedPlatforms", "resolvePlatformNames", "platform", "currentPlatform", "has", "platforms", "Array", "isArray", "set", "Set", "add", "delete"]
|
|
6
6
|
}
|
|
@@ -28,7 +28,41 @@ __export(validStyleProps_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(validStyleProps_exports);
|
|
30
30
|
var import_constants = require("@tamagui/constants");
|
|
31
|
-
|
|
31
|
+
function _define_property(obj, key, value) {
|
|
32
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
33
|
+
value,
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
configurable: !0,
|
|
36
|
+
writable: !0
|
|
37
|
+
}) : obj[key] = value, obj;
|
|
38
|
+
}
|
|
39
|
+
function _object_spread(target) {
|
|
40
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
41
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
42
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
43
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44
|
+
}))), ownKeys2.forEach(function(key) {
|
|
45
|
+
_define_property(target, key, source[key]);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
}
|
|
50
|
+
function ownKeys(object, enumerableOnly) {
|
|
51
|
+
var keys = Object.keys(object);
|
|
52
|
+
if (Object.getOwnPropertySymbols) {
|
|
53
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
54
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
+
})), keys.push.apply(keys, symbols);
|
|
57
|
+
}
|
|
58
|
+
return keys;
|
|
59
|
+
}
|
|
60
|
+
function _object_spread_props(target, source) {
|
|
61
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
62
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
63
|
+
}), target;
|
|
64
|
+
}
|
|
65
|
+
var textColors = {
|
|
32
66
|
color: !0,
|
|
33
67
|
textDecorationColor: !0,
|
|
34
68
|
textShadowColor: !0
|
|
@@ -56,7 +90,7 @@ const textColors = {
|
|
|
56
90
|
zIndex: {
|
|
57
91
|
zIndex: !0
|
|
58
92
|
},
|
|
59
|
-
color: {
|
|
93
|
+
color: _object_spread({
|
|
60
94
|
backgroundColor: !0,
|
|
61
95
|
borderColor: !0,
|
|
62
96
|
borderBlockStartColor: !0,
|
|
@@ -68,9 +102,8 @@ const textColors = {
|
|
|
68
102
|
borderRightColor: !0,
|
|
69
103
|
borderEndColor: !0,
|
|
70
104
|
borderStartColor: !0,
|
|
71
|
-
shadowColor: !0
|
|
72
|
-
|
|
73
|
-
}
|
|
105
|
+
shadowColor: !0
|
|
106
|
+
}, textColors, !1)
|
|
74
107
|
}, stylePropsUnitless = {
|
|
75
108
|
WebkitLineClamp: !0,
|
|
76
109
|
animationIterationCount: !0,
|
|
@@ -121,7 +154,7 @@ const textColors = {
|
|
|
121
154
|
rotateY: !0,
|
|
122
155
|
rotateX: !0,
|
|
123
156
|
rotateZ: !0
|
|
124
|
-
}, stylePropsView = {
|
|
157
|
+
}, stylePropsView = _object_spread({
|
|
125
158
|
backfaceVisibility: !0,
|
|
126
159
|
borderBottomEndRadius: !0,
|
|
127
160
|
borderBottomStartRadius: !0,
|
|
@@ -186,15 +219,10 @@ const textColors = {
|
|
|
186
219
|
top: !0,
|
|
187
220
|
direction: !0,
|
|
188
221
|
shadowOffset: !0,
|
|
189
|
-
shadowRadius: !0
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
...tokenCategories.radius,
|
|
194
|
-
...stylePropsTransform,
|
|
195
|
-
...stylePropsUnitless,
|
|
196
|
-
...import_constants.isAndroid ? { elevationAndroid: !0 } : {}
|
|
197
|
-
}, stylePropsFont = {
|
|
222
|
+
shadowRadius: !0
|
|
223
|
+
}, tokenCategories.color, tokenCategories.radius, tokenCategories.size, tokenCategories.radius, stylePropsTransform, stylePropsUnitless, !1, import_constants.isAndroid ? {
|
|
224
|
+
elevationAndroid: !0
|
|
225
|
+
} : {}), stylePropsFont = {
|
|
198
226
|
fontFamily: !0,
|
|
199
227
|
fontSize: !0,
|
|
200
228
|
fontStyle: !0,
|
|
@@ -202,27 +230,20 @@ const textColors = {
|
|
|
202
230
|
letterSpacing: !0,
|
|
203
231
|
lineHeight: !0,
|
|
204
232
|
textTransform: !0
|
|
205
|
-
}, stylePropsTextOnly = {
|
|
206
|
-
...stylePropsFont,
|
|
233
|
+
}, stylePropsTextOnly = _object_spread(_object_spread_props(_object_spread(_object_spread_props(_object_spread({}, stylePropsFont), {
|
|
207
234
|
textAlign: !0,
|
|
208
235
|
textDecorationLine: !0,
|
|
209
|
-
textDecorationStyle: !0
|
|
210
|
-
|
|
236
|
+
textDecorationStyle: !0
|
|
237
|
+
}), textColors), {
|
|
211
238
|
textShadowOffset: !0,
|
|
212
239
|
textShadowRadius: !0
|
|
213
|
-
}, stylePropsText = {
|
|
214
|
-
...stylePropsView,
|
|
215
|
-
...stylePropsTextOnly
|
|
216
|
-
}, stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
240
|
+
}), !1), stylePropsText = _object_spread({}, stylePropsView, stylePropsTextOnly), stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
217
241
|
enterStyle: !0,
|
|
218
242
|
exitStyle: !0,
|
|
219
243
|
hoverStyle: !0,
|
|
220
244
|
pressStyle: !0,
|
|
221
245
|
focusStyle: !0
|
|
222
|
-
}, validStyles = {
|
|
223
|
-
...validPseudoKeys,
|
|
224
|
-
...stylePropsView
|
|
225
|
-
};
|
|
246
|
+
}, validStyles = _object_spread({}, validPseudoKeys, stylePropsView);
|
|
226
247
|
// Annotate the CommonJS export names for ESM import in node:
|
|
227
248
|
0 && (module.exports = {
|
|
228
249
|
stylePropsAll,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/validStyleProps.ts"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/validStyleProps.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjC,IAAMA,aAAa;EACjBC,OAAO;EACPC,qBAAqB;EACrBC,iBAAiB;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B;IAClBhK,UAAAA,GAAAA;EACHiK,kBAAkB;EAClBC,kBAAkB;IAGd/H,EAUJ,GAGWgI,iBAAiB,eAAA,CAAA,GACzBjF,gBACA2E,kBAAAA,GAGQO,gBAAgBD,gBAEhBE,kBAAkB;EAC7BC,YAAY;EACZC,WAAW;EACXC,YAAY;EACZC,YAAY;EACZC,YAAY;AACd,GAEaC,cAAc,eAAA,CAAA,GACtBN,iBACAnF,cAAAA;",
|
|
5
|
+
"names": ["textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "process", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "lineClamp", "opacity", "order", "orphans", "tabSize", "widows", "zoom", "scale", "scaleX", "scaleY", "scaleZ", "shadowOpacity", "stylePropsTransform", "x", "y", "perspective", "skewX", "skewY", "matrix", "rotate", "rotateY", "rotateX", "rotateZ", "stylePropsView", "backfaceVisibility", "borderBottomEndRadius", "borderBottomStartRadius", "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderStyle", "borderTopEndRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "transform", "transformOrigin", "alignContent", "alignItems", "alignSelf", "borderEndWidth", "borderStartWidth", "bottom", "display", "end", "flexBasis", "flexDirection", "flexWrap", "gap", "columnGap", "rowGap", "justifyContent", "left", "margin", "marginBlockEnd", "marginBlockStart", "marginInlineEnd", "marginInline", "marginInlineStart", "marginBottom", "marginEnd", "marginHorizontal", "marginLeft", "marginRight", "marginStart", "marginTop", "marginVertical", "overflow", "padding", "paddingBottom", "paddingInline", "paddingBlock", "paddingBlockStart", "paddingInlineEnd", "paddingInlineStart", "paddingEnd", "paddingHorizontal", "paddingLeft", "paddingRight", "paddingStart", "paddingTop", "paddingVertical", "position", "right", "start", "top", "direction", "shadowOffset", "shadowRadius", "isAndroid", "elevationAndroid", "stylePropsFont", "fontFamily", "fontSize", "fontStyle", "letterSpacing", "lineHeight", "textTransform", "stylePropsTextOnly", "textAlign", "textDecorationLine", "textDecorationStyle", "textShadowOffset", "textShadowRadius", "stylePropsText", "stylePropsAll", "validPseudoKeys", "enterStyle", "exitStyle", "hoverStyle", "pressStyle", "focusStyle", "validStyles"]
|
|
6
6
|
}
|
|
@@ -19,19 +19,55 @@ __export(withStaticProperties_exports, {
|
|
|
19
19
|
});
|
|
20
20
|
module.exports = __toCommonJS(withStaticProperties_exports);
|
|
21
21
|
var import_react = require("react");
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
function _define_property(obj, key, value) {
|
|
23
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
24
|
+
value,
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
configurable: !0,
|
|
27
|
+
writable: !0
|
|
28
|
+
}) : obj[key] = value, obj;
|
|
29
|
+
}
|
|
30
|
+
function _object_spread(target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
33
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
34
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
35
|
+
}))), ownKeys2.forEach(function(key) {
|
|
36
|
+
_define_property(target, key, source[key]);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
}
|
|
41
|
+
function ownKeys(object, enumerableOnly) {
|
|
42
|
+
var keys = Object.keys(object);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
45
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
46
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
47
|
+
})), keys.push.apply(keys, symbols);
|
|
48
|
+
}
|
|
49
|
+
return keys;
|
|
50
|
+
}
|
|
51
|
+
function _object_spread_props(target, source) {
|
|
52
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
53
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
54
|
+
}), target;
|
|
55
|
+
}
|
|
56
|
+
var Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
|
|
57
|
+
var next = function() {
|
|
24
58
|
if (component[Decorated]) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
59
|
+
var _ = /* @__PURE__ */ (0, import_react.forwardRef)(function(props, ref) {
|
|
60
|
+
return /* @__PURE__ */ (0, import_react.createElement)(component, _object_spread_props(_object_spread({}, props), {
|
|
61
|
+
ref
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
for (var key in component) {
|
|
65
|
+
var v = component[key];
|
|
66
|
+
_[key] = v && typeof v == "object" ? _object_spread({}, v) : v;
|
|
31
67
|
}
|
|
32
68
|
}
|
|
33
69
|
return component;
|
|
34
|
-
}
|
|
70
|
+
}();
|
|
35
71
|
return Object.assign(next, staticProps), next[Decorated] = !0, next;
|
|
36
72
|
};
|
|
37
73
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/withStaticProperties.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/withStaticProperties.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,mBAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,IAAMA,YAAYC,OAAAA,GAILC,uBAAuB,SAClCC,WACAC,aAAAA;AAGA,MAAMC,OAAQ,WAAA;AACZ,QAAIF,UAAUH,SAAAA,GAAY;AACxB,UAAMM,IAAIC,6CAAW,SAACC,OAAOC,KAAAA;eAC3BC,gDAAcP,WAAkB,qBAAA,eAAA,CAAA,GAAKK,KAAAA,GAAAA;UAAOC;;;AAG9C,eAAWE,OAAOR,WAAW;AAC3B,YAAMS,IAAIT,UAAUQ,GAAAA;AAEpBL,UAAEK,GAAAA,IAAOC,KAAK,OAAOA,KAAM,WAAW,eAAA,CAAA,GAAKA,CAAAA,IAAMA;MACnD;IACF;AACA,WAAOT;EACT,EAAA;AAGAU,gBAAOC,OAAOT,MAAMD,WAAAA,GACpBC,KAAKL,SAAAA,IAAa,IAEXK;AACT;",
|
|
5
|
+
"names": ["Decorated", "Symbol", "withStaticProperties", "component", "staticProps", "next", "_", "forwardRef", "props", "ref", "createElement", "key", "v", "Object", "assign"]
|
|
6
6
|
}
|
package/dist/esm/clamp.native.js
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _array_like_to_array(arr, len) {
|
|
2
|
+
(len == null || len > arr.length) && (len = arr.length);
|
|
3
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
4
|
+
arr2[i] = arr[i];
|
|
5
|
+
return arr2;
|
|
6
|
+
}
|
|
7
|
+
function _array_with_holes(arr) {
|
|
8
|
+
if (Array.isArray(arr))
|
|
9
|
+
return arr;
|
|
10
|
+
}
|
|
11
|
+
function _iterable_to_array_limit(arr, i) {
|
|
12
|
+
var _i = arr == null ? null : typeof Symbol < "u" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13
|
+
if (_i != null) {
|
|
14
|
+
var _arr = [], _n = !0, _d = !1, _s, _e;
|
|
15
|
+
try {
|
|
16
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done) && (_arr.push(_s.value), !(i && _arr.length === i)); _n = !0)
|
|
17
|
+
;
|
|
18
|
+
} catch (err) {
|
|
19
|
+
_d = !0, _e = err;
|
|
20
|
+
} finally {
|
|
21
|
+
try {
|
|
22
|
+
!_n && _i.return != null && _i.return();
|
|
23
|
+
} finally {
|
|
24
|
+
if (_d)
|
|
25
|
+
throw _e;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return _arr;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _non_iterable_rest() {
|
|
32
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
|
+
}
|
|
34
|
+
function _sliced_to_array(arr, i) {
|
|
35
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
36
|
+
}
|
|
37
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
38
|
+
if (o) {
|
|
39
|
+
if (typeof o == "string")
|
|
40
|
+
return _array_like_to_array(o, minLen);
|
|
41
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
42
|
+
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set")
|
|
43
|
+
return Array.from(n);
|
|
44
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
45
|
+
return _array_like_to_array(o, minLen);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function clamp(value, param) {
|
|
49
|
+
var _param = _sliced_to_array(param, 2), min = _param[0], max = _param[1];
|
|
2
50
|
return Math.min(max, Math.max(min, value));
|
|
3
51
|
}
|
|
4
52
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/clamp.ts"],
|
|
4
|
-
"mappings": "AAAO,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/clamp.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA,MAAMC,OAAe,OAA4B;MAA5B,SAAA,iBAAA,OAAA,CAAA,GAACC,MAAD,OAAA,CAAA,GAAMC,MAAN,OAAA,CAAA;AACnC,SAAOC,KAAKF,IAAIC,KAAKC,KAAKD,IAAID,KAAKD,KAAAA,CAAAA;AACrC;",
|
|
5
|
+
"names": ["clamp", "value", "min", "max", "Math"]
|
|
6
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
function composeEventHandlers(og, next
|
|
2
|
-
|
|
1
|
+
function composeEventHandlers(og, next) {
|
|
2
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, _ref_checkDefaultPrevented = _ref.checkDefaultPrevented, checkDefaultPrevented = _ref_checkDefaultPrevented === void 0 ? !0 : _ref_checkDefaultPrevented;
|
|
3
|
+
return !og || !next ? next || og || void 0 : function(event) {
|
|
3
4
|
if (og == null || og(event), !event || !(checkDefaultPrevented && "defaultPrevented" in event) || // @ts-ignore
|
|
4
5
|
"defaultPrevented" in event && !event.defaultPrevented)
|
|
5
6
|
return next == null ? void 0 : next(event);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/composeEventHandlers.ts"],
|
|
4
|
-
"mappings": "AAIO,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/composeEventHandlers.ts"],
|
|
4
|
+
"mappings": "AAIO,SAASA,qBACdC,IACAC,MAA6B;MAC7B,OAAA,UAAA,SAAA,KAAA,UAAA,CAAA,MAAA,SAAA,UAAA,CAAA,IAAmC,CAAC,GAAA,6BAApC,KAAEC,uBAAAA,wBAAAA,+BAAAA,SAAwB,KAAA;AAE1B,SAAI,CAACF,MAAM,CAACC,OACHA,QAAQD,MAAMG,SAEhB,SAACC,OAAAA;AAEN,QADAJ,MAAAA,QAAAA,GAAKI,KAAAA,GAEH,CAACA,SACD,EAAEF,yBAAyB,sBAAsBE;IAEhD,sBAAsBA,SAAS,CAACA,MAAMC;AAEvC,aAAOJ,QAAAA,OAAAA,SAAAA,KAAOG,KAAAA;EAElB;AACF;",
|
|
5
|
+
"names": ["composeEventHandlers", "og", "next", "checkDefaultPrevented", "undefined", "event", "defaultPrevented"]
|
|
6
6
|
}
|
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
function concatClassName(_cn) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let propObjects = null;
|
|
6
|
-
for (let x = len; x >= 0; x--) {
|
|
7
|
-
const cns = args[x];
|
|
8
|
-
if (!cns)
|
|
9
|
-
continue;
|
|
10
|
-
if (!Array.isArray(cns) && typeof cns != "string") {
|
|
11
|
-
propObjects = propObjects || [], propObjects.push(cns);
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
const names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length;
|
|
15
|
-
for (let i = numNames - 1; i >= 0; i--) {
|
|
16
|
-
const name = names[i];
|
|
2
|
+
for (var _loop = function(x2) {
|
|
3
|
+
var _loop2 = function(i2) {
|
|
4
|
+
var name = names[i2];
|
|
17
5
|
if (!name || name === " ")
|
|
18
|
-
continue;
|
|
19
|
-
if (name[0] !== "_")
|
|
20
|
-
final = name + " " + final;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
final = name + " " + final;
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
const isMediaQuery = name[splitIndex + 1] === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
6
|
+
return "continue";
|
|
7
|
+
if (name[0] !== "_")
|
|
8
|
+
return final = name + " " + final, "continue";
|
|
9
|
+
var splitIndex = name.indexOf("-");
|
|
10
|
+
if (splitIndex < 1)
|
|
11
|
+
return final = name + " " + final, "continue";
|
|
12
|
+
var nextChar = name[splitIndex + 1], isMediaQuery = nextChar === "_", styleKey = name.slice(1, name.lastIndexOf("-")), mediaKey = isMediaQuery ? name.slice(splitIndex + 2, splitIndex + 7) : null, uid = mediaKey ? styleKey + mediaKey : styleKey;
|
|
29
13
|
if (usedPrefixes.indexOf(uid) > -1)
|
|
30
|
-
continue;
|
|
14
|
+
return "continue";
|
|
31
15
|
usedPrefixes.push(uid);
|
|
32
|
-
|
|
33
|
-
propName && propObjects && propObjects.some((po)
|
|
16
|
+
var propName = styleKey;
|
|
17
|
+
if (propName && propObjects && propObjects.some(function(po) {
|
|
34
18
|
if (mediaKey) {
|
|
35
|
-
|
|
19
|
+
var propKey = pseudoInvert[mediaKey];
|
|
36
20
|
return po && po[propKey] && propName in po[propKey] && po[propKey] !== null;
|
|
37
21
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
var res = po && propName in po && po[propName] !== null;
|
|
23
|
+
return res;
|
|
24
|
+
}))
|
|
25
|
+
return "continue";
|
|
26
|
+
final = name + " " + final;
|
|
27
|
+
}, cns = args[x2];
|
|
28
|
+
if (!cns)
|
|
29
|
+
return "continue";
|
|
30
|
+
if (!Array.isArray(cns) && typeof cns != "string")
|
|
31
|
+
return propObjects = propObjects || [], propObjects.push(cns), "continue";
|
|
32
|
+
for (var names = Array.isArray(cns) ? cns : cns.split(" "), numNames = names.length, i = numNames - 1; i >= 0; i--)
|
|
33
|
+
_loop2(i);
|
|
34
|
+
}, args = arguments, usedPrefixes = [], final = "", len = args.length, propObjects = null, x = len; x >= 0; x--)
|
|
35
|
+
_loop(x);
|
|
42
36
|
return final;
|
|
43
37
|
}
|
|
44
|
-
|
|
38
|
+
var pseudoInvert = {
|
|
45
39
|
hover: "hoverStyle",
|
|
46
40
|
focus: "focusStyle",
|
|
47
41
|
press: "pressStyle"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/concatClassName.ts"],
|
|
4
|
-
"mappings": "AAUO,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/concatClassName.ts"],
|
|
4
|
+
"mappings": "AAUO,SAASA,gBAAgBC,KAA2C;AAOzE;;AAcI,UAAMC,OAAOC,MAAMC,EAAAA;AAEnB,UAAI,CAACF,QAAQA,SAAS;AAAK,eAAA;AAC3B,UAAIA,KAAK,CAAA,MAAO;AAEdG,uBAAQH,OAAO,MAAMG,OACrB;AAGF,UAAMC,aAAaJ,KAAKK,QAAQ,GAAA;AAChC,UAAID,aAAa;AACfD,uBAAQH,OAAO,MAAMG,OAErB;AAGF,UAAMG,WAAWN,KAAKI,aAAa,CAAA,GAG7BG,eAAeD,aAAa,KAK5BE,WAAWR,KAAKS,MAAM,GAAGT,KAAKU,YAAY,GAAA,CAAA,GAE1CC,WAAWJ,eAAeP,KAAKS,MAAML,aAAa,GAAGA,aAAa,CAAA,IAAK,MACvEQ,MAAMD,WAAWH,WAAWG,WAAWH;AAG7C,UAAIK,aAAaR,QAAQO,GAAAA,IAAO;AAE9B,eAAA;AAEFC,mBAAaC,KAAKF,GAAAA;AAGlB,UAAMG,WAAWP;AACjB,UAAIO,YAAYC,eAEZA,YAAYC,KAAK,SAACC,IAAAA;AAChB,YAAIP,UAAU;AACZ,cAAMQ,UAAUC,aAAaT,QAAAA;AAC7B,iBAAOO,MAAMA,GAAGC,OAAAA,KAAYJ,YAAYG,GAAGC,OAAAA,KAAYD,GAAGC,OAAAA,MAAa;QACzE;AACA,YAAME,MAAMH,MAAMH,YAAYG,MAAMA,GAAGH,QAAAA,MAAc;AACrD,eAAOM;MACT,CAAA;AAGA,eAAA;AAIJlB,cAAQH,OAAO,MAAMG;IACvB,GApEMmB,MAAMC,KAAKC,EAAAA;AAEjB,QAAI,CAACF;AAAK,aAAA;AACV,QAAI,CAACG,MAAMC,QAAQJ,GAAAA,KAAQ,OAAOA,OAAQ;AAExCN,2BAAcA,eAAe,CAAA,GAC7BA,YAAYF,KAAKQ,GAAAA,GACjB;AAKF,aAFMrB,QAAQwB,MAAMC,QAAQJ,GAAAA,IAAOA,MAAMA,IAAIK,MAAM,GAAA,GAC7CC,WAAW3B,MAAM4B,QACd3B,IAAI0B,WAAW,GAAG1B,KAAK,GAAGA;AAAAA,MAAAA,OAAAA,CAAAA;EAyDrC,GA5EMqB,OAAOO,WACPjB,eAAyB,CAAA,GAC3BV,QAAQ,IAEN4B,MAAMR,KAAKM,QACbb,cAAmB,MACdQ,IAAIO,KAAKP,KAAK,GAAGA;AAAAA,UAAAA,CAAAA;AAwE1B,SAAOrB;AACT;AAEA,IAAMiB,eAAe;EACnBY,OAAO;EACPC,OAAO;EACPC,OAAO;AACT;",
|
|
5
|
+
"names": ["concatClassName", "_cn", "name", "names", "i", "final", "splitIndex", "indexOf", "nextChar", "isMediaQuery", "styleKey", "slice", "lastIndexOf", "mediaKey", "uid", "usedPrefixes", "push", "propName", "propObjects", "some", "po", "propKey", "pseudoInvert", "res", "cns", "args", "x", "Array", "isArray", "split", "numNames", "length", "arguments", "len", "hover", "focus", "press"]
|
|
6
6
|
}
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import { currentPlatform } from "@tamagui/constants";
|
|
2
|
-
|
|
2
|
+
var ALL_PLATFORMS = [
|
|
3
|
+
"web",
|
|
4
|
+
"android",
|
|
5
|
+
"ios"
|
|
6
|
+
];
|
|
3
7
|
function shouldRenderNativePlatform(nativeProp) {
|
|
4
8
|
if (!nativeProp)
|
|
5
9
|
return null;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
var userRequestedPlatforms = resolvePlatformNames(nativeProp), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
11
|
+
try {
|
|
12
|
+
for (var _iterator = ALL_PLATFORMS[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
13
|
+
var platform = _step.value;
|
|
14
|
+
if (platform === currentPlatform && userRequestedPlatforms.has(platform))
|
|
15
|
+
return platform;
|
|
16
|
+
}
|
|
17
|
+
} catch (err) {
|
|
18
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
19
|
+
} finally {
|
|
20
|
+
try {
|
|
21
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
22
|
+
} finally {
|
|
23
|
+
if (_didIteratorError)
|
|
24
|
+
throw _iteratorError;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
10
27
|
return null;
|
|
11
28
|
}
|
|
12
29
|
function resolvePlatformNames(nativeProp) {
|
|
13
|
-
|
|
30
|
+
var platforms = nativeProp === !0 ? ALL_PLATFORMS : nativeProp === !1 ? [] : Array.isArray(nativeProp) ? nativeProp : [
|
|
31
|
+
nativeProp
|
|
32
|
+
], set = new Set(platforms);
|
|
14
33
|
return set.has("mobile") && (set.add("android"), set.add("ios"), set.delete("mobile")), set;
|
|
15
34
|
}
|
|
16
35
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/shouldRenderNativePlatform.ts"],
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/shouldRenderNativePlatform.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,uBAAuB;AAuBhC,IAAMC,gBAA0C;EAAC;EAAO;EAAW;;AAa5D,SAASC,2BAA2BC,YAAwB;AACjE,MAAI,CAACA;AACH,WAAO;AAET,MAAMC,yBAAyBC,qBAAqBF,UAAAA,GAE/C,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAkBF,cAAAA,OAAAA,QAAAA,EAAAA,GAAlB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAiC;AAAjC,UAAMK,WAAN,MAAA;AACH,UAAIA,aAAaN,mBAAmBI,uBAAuBG,IAAID,QAAAA;AAC7D,eAAOA;IAEX;;AAJK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,SAAO;AACT;AAEA,SAASD,qBAAqBF,YAAuB;AACnD,MAAMK,YACJL,eAAe,KACXF,gBACAE,eAAe,KACb,CAAA,IACAM,MAAMC,QAAQP,UAAAA,IACZA,aACA;IAACA;KACLQ,MAAM,IAAIC,IAAIJ,SAAAA;AAEpB,SAAIG,IAAIJ,IAAI,QAAA,MAEVI,IAAIE,IAAI,SAAA,GACRF,IAAIE,IAAI,KAAA,GACRF,IAAIG,OAAO,QAAA,IAENH;AACT;",
|
|
5
|
+
"names": ["currentPlatform", "ALL_PLATFORMS", "shouldRenderNativePlatform", "nativeProp", "userRequestedPlatforms", "resolvePlatformNames", "platform", "has", "platforms", "Array", "isArray", "set", "Set", "add", "delete"]
|
|
6
6
|
}
|
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
import { isAndroid } from "@tamagui/constants";
|
|
2
|
-
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
4
|
+
value,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : obj[key] = value, obj;
|
|
9
|
+
}
|
|
10
|
+
function _object_spread(target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15
|
+
}))), ownKeys2.forEach(function(key) {
|
|
16
|
+
_define_property(target, key, source[key]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
21
|
+
function ownKeys(object, enumerableOnly) {
|
|
22
|
+
var keys = Object.keys(object);
|
|
23
|
+
if (Object.getOwnPropertySymbols) {
|
|
24
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
26
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27
|
+
})), keys.push.apply(keys, symbols);
|
|
28
|
+
}
|
|
29
|
+
return keys;
|
|
30
|
+
}
|
|
31
|
+
function _object_spread_props(target, source) {
|
|
32
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
33
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34
|
+
}), target;
|
|
35
|
+
}
|
|
36
|
+
var textColors = {
|
|
3
37
|
color: !0,
|
|
4
38
|
textDecorationColor: !0,
|
|
5
39
|
textShadowColor: !0
|
|
@@ -27,7 +61,7 @@ const textColors = {
|
|
|
27
61
|
zIndex: {
|
|
28
62
|
zIndex: !0
|
|
29
63
|
},
|
|
30
|
-
color: {
|
|
64
|
+
color: _object_spread({
|
|
31
65
|
backgroundColor: !0,
|
|
32
66
|
borderColor: !0,
|
|
33
67
|
borderBlockStartColor: !0,
|
|
@@ -39,9 +73,8 @@ const textColors = {
|
|
|
39
73
|
borderRightColor: !0,
|
|
40
74
|
borderEndColor: !0,
|
|
41
75
|
borderStartColor: !0,
|
|
42
|
-
shadowColor: !0
|
|
43
|
-
|
|
44
|
-
}
|
|
76
|
+
shadowColor: !0
|
|
77
|
+
}, textColors, !1)
|
|
45
78
|
}, stylePropsUnitless = {
|
|
46
79
|
WebkitLineClamp: !0,
|
|
47
80
|
animationIterationCount: !0,
|
|
@@ -92,7 +125,7 @@ const textColors = {
|
|
|
92
125
|
rotateY: !0,
|
|
93
126
|
rotateX: !0,
|
|
94
127
|
rotateZ: !0
|
|
95
|
-
}, stylePropsView = {
|
|
128
|
+
}, stylePropsView = _object_spread({
|
|
96
129
|
backfaceVisibility: !0,
|
|
97
130
|
borderBottomEndRadius: !0,
|
|
98
131
|
borderBottomStartRadius: !0,
|
|
@@ -157,15 +190,10 @@ const textColors = {
|
|
|
157
190
|
top: !0,
|
|
158
191
|
direction: !0,
|
|
159
192
|
shadowOffset: !0,
|
|
160
|
-
shadowRadius: !0
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
...tokenCategories.radius,
|
|
165
|
-
...stylePropsTransform,
|
|
166
|
-
...stylePropsUnitless,
|
|
167
|
-
...isAndroid ? { elevationAndroid: !0 } : {}
|
|
168
|
-
}, stylePropsFont = {
|
|
193
|
+
shadowRadius: !0
|
|
194
|
+
}, tokenCategories.color, tokenCategories.radius, tokenCategories.size, tokenCategories.radius, stylePropsTransform, stylePropsUnitless, !1, isAndroid ? {
|
|
195
|
+
elevationAndroid: !0
|
|
196
|
+
} : {}), stylePropsFont = {
|
|
169
197
|
fontFamily: !0,
|
|
170
198
|
fontSize: !0,
|
|
171
199
|
fontStyle: !0,
|
|
@@ -173,27 +201,20 @@ const textColors = {
|
|
|
173
201
|
letterSpacing: !0,
|
|
174
202
|
lineHeight: !0,
|
|
175
203
|
textTransform: !0
|
|
176
|
-
}, stylePropsTextOnly = {
|
|
177
|
-
...stylePropsFont,
|
|
204
|
+
}, stylePropsTextOnly = _object_spread(_object_spread_props(_object_spread(_object_spread_props(_object_spread({}, stylePropsFont), {
|
|
178
205
|
textAlign: !0,
|
|
179
206
|
textDecorationLine: !0,
|
|
180
|
-
textDecorationStyle: !0
|
|
181
|
-
|
|
207
|
+
textDecorationStyle: !0
|
|
208
|
+
}), textColors), {
|
|
182
209
|
textShadowOffset: !0,
|
|
183
210
|
textShadowRadius: !0
|
|
184
|
-
}, stylePropsText = {
|
|
185
|
-
...stylePropsView,
|
|
186
|
-
...stylePropsTextOnly
|
|
187
|
-
}, stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
211
|
+
}), !1), stylePropsText = _object_spread({}, stylePropsView, stylePropsTextOnly), stylePropsAll = stylePropsText, validPseudoKeys = {
|
|
188
212
|
enterStyle: !0,
|
|
189
213
|
exitStyle: !0,
|
|
190
214
|
hoverStyle: !0,
|
|
191
215
|
pressStyle: !0,
|
|
192
216
|
focusStyle: !0
|
|
193
|
-
}, validStyles = {
|
|
194
|
-
...validPseudoKeys,
|
|
195
|
-
...stylePropsView
|
|
196
|
-
};
|
|
217
|
+
}, validStyles = _object_spread({}, validPseudoKeys, stylePropsView);
|
|
197
218
|
export {
|
|
198
219
|
stylePropsAll,
|
|
199
220
|
stylePropsFont,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/validStyleProps.ts"],
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/validStyleProps.ts"],
|
|
4
|
+
"mappings": "AAAA,SAASA,iBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIjC,IAAMC,aAAa;EACjBC,OAAO;EACPC,qBAAqB;EACrB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pBC,qBAAqB;IAClB/J,UAAAA,GAAAA;EACHgK,kBAAkB;EAClBC,kBAAkB;IAGd9H,EAUJ,GAGW+H,iBAAiB,eAAA,CAAA,GACzBhF,gBACA0E,kBAAAA,GAGQO,gBAAgBD,gBAEhBE,kBAAkB;EAC7BC,YAAY;EACZC,WAAW;EACXC,YAAY;EACZC,YAAY;EACZC,YAAY;AACd,GAEaC,cAAc,eAAA,CAAA,GACtBN,iBACAlF,cAAAA;",
|
|
5
|
+
"names": ["isAndroid", "textColors", "color", "textDecorationColor", "textShadowColor", "tokenCategories", "radius", "borderRadius", "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius", "borderStartStartRadius", "borderStartEndRadius", "borderEndStartRadius", "borderEndEndRadius", "size", "width", "height", "minWidth", "minHeight", "maxWidth", "maxHeight", "zIndex", "backgroundColor", "borderColor", "borderBlockStartColor", "borderBlockEndColor", "borderBlockColor", "borderBottomColor", "borderTopColor", "borderLeftColor", "borderRightColor", "borderEndColor", "borderStartColor", "shadowColor", "process", "stylePropsUnitless", "WebkitLineClamp", "animationIterationCount", "aspectRatio", "borderImageOutset", "borderImageSlice", "borderImageWidth", "columnCount", "flex", "flexGrow", "flexOrder", "flexPositive", "flexShrink", "flexNegative", "fontWeight", "gridRow", "gridRowEnd", "gridRowGap", "gridRowStart", "gridColumn", "gridColumnEnd", "gridColumnGap", "gridColumnStart", "lineClamp", "opacity", "order", "orphans", "tabSize", "widows", "zoom", "scale", "scaleX", "scaleY", "scaleZ", "shadowOpacity", "stylePropsTransform", "x", "y", "perspective", "skewX", "skewY", "matrix", "rotate", "rotateY", "rotateX", "rotateZ", "stylePropsView", "backfaceVisibility", "borderBottomEndRadius", "borderBottomStartRadius", "borderBottomWidth", "borderLeftWidth", "borderRightWidth", "borderStyle", "borderTopEndRadius", "borderTopStartRadius", "borderTopWidth", "borderWidth", "transform", "transformOrigin", "alignContent", "alignItems", "alignSelf", "borderEndWidth", "borderStartWidth", "bottom", "display", "end", "flexBasis", "flexDirection", "flexWrap", "gap", "columnGap", "rowGap", "justifyContent", "left", "margin", "marginBlockEnd", "marginBlockStart", "marginInlineEnd", "marginInline", "marginInlineStart", "marginBottom", "marginEnd", "marginHorizontal", "marginLeft", "marginRight", "marginStart", "marginTop", "marginVertical", "overflow", "padding", "paddingBottom", "paddingInline", "paddingBlock", "paddingBlockStart", "paddingInlineEnd", "paddingInlineStart", "paddingEnd", "paddingHorizontal", "paddingLeft", "paddingRight", "paddingStart", "paddingTop", "paddingVertical", "position", "right", "start", "top", "direction", "shadowOffset", "shadowRadius", "elevationAndroid", "stylePropsFont", "fontFamily", "fontSize", "fontStyle", "letterSpacing", "lineHeight", "textTransform", "stylePropsTextOnly", "textAlign", "textDecorationLine", "textDecorationStyle", "textShadowOffset", "textShadowRadius", "stylePropsText", "stylePropsAll", "validPseudoKeys", "enterStyle", "exitStyle", "hoverStyle", "pressStyle", "focusStyle", "validStyles"]
|
|
6
6
|
}
|
|
@@ -1,17 +1,53 @@
|
|
|
1
1
|
import { createElement, forwardRef } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
function _define_property(obj, key, value) {
|
|
3
|
+
return key in obj ? Object.defineProperty(obj, key, {
|
|
4
|
+
value,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : obj[key] = value, obj;
|
|
9
|
+
}
|
|
10
|
+
function _object_spread(target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
|
|
13
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
14
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
15
|
+
}))), ownKeys2.forEach(function(key) {
|
|
16
|
+
_define_property(target, key, source[key]);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return target;
|
|
20
|
+
}
|
|
21
|
+
function ownKeys(object, enumerableOnly) {
|
|
22
|
+
var keys = Object.keys(object);
|
|
23
|
+
if (Object.getOwnPropertySymbols) {
|
|
24
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
25
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
26
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
27
|
+
})), keys.push.apply(keys, symbols);
|
|
28
|
+
}
|
|
29
|
+
return keys;
|
|
30
|
+
}
|
|
31
|
+
function _object_spread_props(target, source) {
|
|
32
|
+
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
33
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
34
|
+
}), target;
|
|
35
|
+
}
|
|
36
|
+
var Decorated = Symbol(), withStaticProperties = function(component, staticProps) {
|
|
37
|
+
var next = function() {
|
|
4
38
|
if (component[Decorated]) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
39
|
+
var _ = /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
40
|
+
return /* @__PURE__ */ createElement(component, _object_spread_props(_object_spread({}, props), {
|
|
41
|
+
ref
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
for (var key in component) {
|
|
45
|
+
var v = component[key];
|
|
46
|
+
_[key] = v && typeof v == "object" ? _object_spread({}, v) : v;
|
|
11
47
|
}
|
|
12
48
|
}
|
|
13
49
|
return component;
|
|
14
|
-
}
|
|
50
|
+
}();
|
|
15
51
|
return Object.assign(next, staticProps), next[Decorated] = !0, next;
|
|
16
52
|
};
|
|
17
53
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/withStaticProperties.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/packages/helpers/src/withStaticProperties.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAASA,eAAeC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,IAAMC,YAAYC,OAAAA,GAILC,uBAAuB,SAClCC,WACAC,aAAAA;AAGA,MAAMC,OAAQ,WAAA;AACZ,QAAIF,UAAUH,SAAAA,GAAY;AACxB,UAAMM,IAAIP,2BAAW,SAACQ,OAAOC,KAAAA;eAC3BV,8BAAcK,WAAkB,qBAAA,eAAA,CAAA,GAAKI,KAAAA,GAAAA;UAAOC;;;AAG9C,eAAWC,OAAON,WAAW;AAC3B,YAAMO,IAAIP,UAAUM,GAAAA;AAEpBH,UAAEG,GAAAA,IAAOC,KAAK,OAAOA,KAAM,WAAW,eAAA,CAAA,GAAKA,CAAAA,IAAMA;MACnD;IACF;AACA,WAAOP;EACT,EAAA;AAGAQ,gBAAOC,OAAOP,MAAMD,WAAAA,GACpBC,KAAKL,SAAAA,IAAa,IAEXK;AACT;",
|
|
5
|
+
"names": ["createElement", "forwardRef", "Decorated", "Symbol", "withStaticProperties", "component", "staticProps", "next", "_", "props", "ref", "key", "v", "Object", "assign"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/helpers",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.27-1708112217600",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"clean:build": "tamagui-build clean:build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@tamagui/constants": "1.89.
|
|
23
|
-
"@tamagui/simple-hash": "1.89.
|
|
22
|
+
"@tamagui/constants": "1.89.27-1708112217600",
|
|
23
|
+
"@tamagui/simple-hash": "1.89.27-1708112217600"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@tamagui/build": "1.89.
|
|
26
|
+
"@tamagui/build": "1.89.27-1708112217600"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|