@tamagui/web
Advanced tools
Comparing version 1.101.7 to 1.102.0
@@ -140,2 +140,6 @@ "use strict"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _unsupported_iterable_to_array(o, minLen) { | ||
@@ -344,3 +348,3 @@ if (o) { | ||
delay: 800 | ||
}, typeof devVisualizerConfig == "object" ? devVisualizerConfig : {}); | ||
}, (typeof devVisualizerConfig > "u" ? "undefined" : _type_of(devVisualizerConfig)) === "object" ? devVisualizerConfig : {}); | ||
document.addEventListener("blur", function() { | ||
@@ -1048,3 +1052,3 @@ clearTimeout(tm); | ||
var val = style[k]; | ||
return val && typeof val == "object" && "_animation" in val; | ||
return val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object" && "_animation" in val; | ||
}); | ||
@@ -1051,0 +1055,0 @@ } |
@@ -31,2 +31,6 @@ "use strict"; | ||
var import_constants = require("@tamagui/constants"), import_helpers = require("@tamagui/helpers"), import_config = require("./config"); | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function constructCSSVariableName(name) { | ||
@@ -52,3 +56,3 @@ return "var(--".concat(process.env.TAMAGUI_CSS_VARIABLE_PREFIX || "").concat(name, ")"); | ||
function isVariable(v) { | ||
return v && typeof v == "object" && "isVar" in v; | ||
return v && (typeof v > "u" ? "undefined" : _type_of(v)) === "object" && "isVar" in v; | ||
} | ||
@@ -55,0 +59,0 @@ function getVariable(nameOrVariable) { |
@@ -21,3 +21,8 @@ "use strict"; | ||
module.exports = __toCommonJS(createVariables_exports); | ||
var import_helpers = require("@tamagui/helpers"), import_createVariable = require("./createVariable"), cache = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) { | ||
var import_helpers = require("@tamagui/helpers"), import_createVariable = require("./createVariable"); | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var cache = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) { | ||
var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", isFont = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; | ||
@@ -34,3 +39,3 @@ if (cache.has(tokens)) return tokens; | ||
var niceKey = (0, import_helpers.simpleHash)(key), name = isFont ? niceKey.slice(0, 2) : i; | ||
if (name = parentPath ? "".concat(parentPath, "-").concat(name) : niceKey, val && typeof val == "object") { | ||
if (name = parentPath ? "".concat(parentPath, "-").concat(name) : niceKey, val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object") { | ||
res[key] = createVariables(tokens[key], name, !1); | ||
@@ -37,0 +42,0 @@ continue; |
@@ -148,3 +148,3 @@ "use strict"; | ||
var accepted = accept[keyInit]; | ||
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") { | ||
if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of(valInit)) === "object") { | ||
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames); | ||
@@ -332,3 +332,3 @@ continue; | ||
var hasSpace = val.space, mediaKeyShort = key.slice(1); | ||
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia != "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform") { | ||
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform") { | ||
var platform = key.slice(10); | ||
@@ -335,0 +335,0 @@ if ( |
@@ -21,4 +21,8 @@ "use strict"; | ||
module.exports = __toCommonJS(isObj_exports); | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var isObj = function(x) { | ||
return x && !Array.isArray(x) && typeof x == "object"; | ||
return x && !Array.isArray(x) && (typeof x > "u" ? "undefined" : _type_of(x)) === "object"; | ||
}; | ||
@@ -25,0 +29,0 @@ // Annotate the CommonJS export names for ESM import in node: |
@@ -57,2 +57,6 @@ "use strict"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var stylePropsAllPlusTransforms = _object_spread_props(_object_spread({}, import_helpers.stylePropsAll), { | ||
@@ -67,3 +71,3 @@ translateX: !0, | ||
var res = value; | ||
return value && typeof value == "object" ? value : (typeof value == "number" ? res = "".concat(value, "px") : property && (res = "".concat(res)), res); | ||
return value && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" ? value : (typeof value == "number" ? res = "".concat(value, "px") : property && (res = "".concat(res)), res); | ||
} | ||
@@ -70,0 +74,0 @@ var rcache = {}; |
@@ -106,2 +106,6 @@ "use strict"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _unsupported_iterable_to_array(o, minLen) { | ||
@@ -178,3 +182,3 @@ if (o) { | ||
var keyString = key[0] === "$" ? key.slice(1) : key, val = theme[keyString]; | ||
if (val && typeof val == "object") | ||
if (val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object") | ||
return new Proxy(val, { | ||
@@ -181,0 +185,0 @@ // when they touch the actual value we only track it |
@@ -129,2 +129,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _unsupported_iterable_to_array(o, minLen) { | ||
@@ -333,3 +337,3 @@ if (o) { | ||
delay: 800 | ||
}, typeof devVisualizerConfig == "object" ? devVisualizerConfig : {}); | ||
}, (typeof devVisualizerConfig > "u" ? "undefined" : _type_of(devVisualizerConfig)) === "object" ? devVisualizerConfig : {}); | ||
document.addEventListener("blur", function() { | ||
@@ -1037,3 +1041,3 @@ clearTimeout(tm); | ||
var val = style[k]; | ||
return val && typeof val == "object" && "_animation" in val; | ||
return val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object" && "_animation" in val; | ||
}); | ||
@@ -1040,0 +1044,0 @@ } |
import { isWeb } from "@tamagui/constants"; | ||
import { simpleHash } from "@tamagui/helpers"; | ||
import { getConfig } from "./config"; | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function constructCSSVariableName(name) { | ||
@@ -24,3 +28,3 @@ return "var(--".concat(process.env.TAMAGUI_CSS_VARIABLE_PREFIX || "").concat(name, ")"); | ||
function isVariable(v) { | ||
return v && typeof v == "object" && "isVar" in v; | ||
return v && (typeof v > "u" ? "undefined" : _type_of(v)) === "object" && "isVar" in v; | ||
} | ||
@@ -27,0 +31,0 @@ function getVariable(nameOrVariable) { |
import { simpleHash } from "@tamagui/helpers"; | ||
import { createVariable, isVariable } from "./createVariable"; | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var cache = /* @__PURE__ */ new WeakMap(), createVariables = function(tokens) { | ||
@@ -15,3 +19,3 @@ var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", isFont = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1; | ||
var niceKey = simpleHash(key), name = isFont ? niceKey.slice(0, 2) : i; | ||
if (name = parentPath ? "".concat(parentPath, "-").concat(name) : niceKey, val && typeof val == "object") { | ||
if (name = parentPath ? "".concat(parentPath, "-").concat(name) : niceKey, val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object") { | ||
res[key] = createVariables(tokens[key], name, !1); | ||
@@ -18,0 +22,0 @@ continue; |
@@ -143,3 +143,3 @@ import { currentPlatform, isAndroid, isClient, isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
var accepted = accept[keyInit]; | ||
if ((accepted === "style" || accepted === "textStyle") && valInit && typeof valInit == "object") { | ||
if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit > "u" ? "undefined" : _type_of(valInit)) === "object") { | ||
viewProps[keyInit] = getSubStyle(styleState, keyInit, valInit, styleProps.noClassNames); | ||
@@ -327,3 +327,3 @@ continue; | ||
var hasSpace = val.space, mediaKeyShort = key.slice(1); | ||
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && (typeof hasMedia != "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform") { | ||
if (hasMedia || (hasMedia = !0), (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) && ((typeof hasMedia > "u" ? "undefined" : _type_of(hasMedia)) !== "object" && (hasMedia = {}), hasMedia[mediaKeyShort] = !0), isMedia === "platform") { | ||
var platform = key.slice(10); | ||
@@ -330,0 +330,0 @@ if ( |
@@ -0,3 +1,7 @@ | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var isObj = function(x) { | ||
return x && !Array.isArray(x) && typeof x == "object"; | ||
return x && !Array.isArray(x) && (typeof x > "u" ? "undefined" : _type_of(x)) === "object"; | ||
}; | ||
@@ -4,0 +8,0 @@ export { |
@@ -38,2 +38,6 @@ import { isWeb } from "@tamagui/constants"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
var stylePropsAllPlusTransforms = _object_spread_props(_object_spread({}, stylePropsAll), { | ||
@@ -48,3 +52,3 @@ translateX: !0, | ||
var res = value; | ||
return value && typeof value == "object" ? value : (typeof value == "number" ? res = "".concat(value, "px") : property && (res = "".concat(res)), res); | ||
return value && (typeof value > "u" ? "undefined" : _type_of(value)) === "object" ? value : (typeof value == "number" ? res = "".concat(value, "px") : property && (res = "".concat(res)), res); | ||
} | ||
@@ -51,0 +55,0 @@ var rcache = {}; |
@@ -87,2 +87,6 @@ import { isClient, isIos, isServer, isWeb } from "@tamagui/constants"; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _unsupported_iterable_to_array(o, minLen) { | ||
@@ -159,3 +163,3 @@ if (o) { | ||
var keyString = key[0] === "$" ? key.slice(1) : key, val = theme[keyString]; | ||
if (val && typeof val == "object") | ||
if (val && (typeof val > "u" ? "undefined" : _type_of(val)) === "object") | ||
return new Proxy(val, { | ||
@@ -162,0 +166,0 @@ // when they touch the actual value we only track it |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.101.7", | ||
"version": "1.102.0", | ||
"source": "src/index.ts", | ||
@@ -30,14 +30,14 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.101.7", | ||
"@tamagui/constants": "1.101.7", | ||
"@tamagui/helpers": "1.101.7", | ||
"@tamagui/normalize-css-color": "1.101.7", | ||
"@tamagui/timer": "1.101.7", | ||
"@tamagui/types": "1.101.7", | ||
"@tamagui/use-did-finish-ssr": "1.101.7", | ||
"@tamagui/use-event": "1.101.7", | ||
"@tamagui/use-force-update": "1.101.7" | ||
"@tamagui/compose-refs": "1.102.0", | ||
"@tamagui/constants": "1.102.0", | ||
"@tamagui/helpers": "1.102.0", | ||
"@tamagui/normalize-css-color": "1.102.0", | ||
"@tamagui/timer": "1.102.0", | ||
"@tamagui/types": "1.102.0", | ||
"@tamagui/use-did-finish-ssr": "1.102.0", | ||
"@tamagui/use-event": "1.102.0", | ||
"@tamagui/use-force-update": "1.102.0" | ||
}, | ||
"devDependencies": { | ||
"@tamagui/build": "1.101.7", | ||
"@tamagui/build": "1.102.0", | ||
"@testing-library/react": "^14.0.0", | ||
@@ -44,0 +44,0 @@ "csstype": "^3.0.10", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2683466
46186
+ Added@tamagui/compose-refs@1.102.0(transitive)
+ Added@tamagui/constants@1.102.0(transitive)
+ Added@tamagui/helpers@1.102.0(transitive)
+ Added@tamagui/normalize-css-color@1.102.0(transitive)
+ Added@tamagui/simple-hash@1.102.0(transitive)
+ Added@tamagui/timer@1.102.0(transitive)
+ Added@tamagui/types@1.102.0(transitive)
+ Added@tamagui/use-did-finish-ssr@1.102.0(transitive)
+ Added@tamagui/use-event@1.102.0(transitive)
+ Added@tamagui/use-force-update@1.102.0(transitive)
- Removed@tamagui/compose-refs@1.101.7(transitive)
- Removed@tamagui/constants@1.101.7(transitive)
- Removed@tamagui/helpers@1.101.7(transitive)
- Removed@tamagui/normalize-css-color@1.101.7(transitive)
- Removed@tamagui/simple-hash@1.101.7(transitive)
- Removed@tamagui/timer@1.101.7(transitive)
- Removed@tamagui/types@1.101.7(transitive)
- Removed@tamagui/use-did-finish-ssr@1.101.7(transitive)
- Removed@tamagui/use-event@1.101.7(transitive)
- Removed@tamagui/use-force-update@1.101.7(transitive)
Updated@tamagui/constants@1.102.0
Updated@tamagui/helpers@1.102.0
Updated@tamagui/timer@1.102.0
Updated@tamagui/types@1.102.0
Updated@tamagui/use-event@1.102.0