@tamagui/web
Advanced tools
Comparing version 1.91.2 to 1.91.3
@@ -477,3 +477,3 @@ var __defProp = Object.defineProperty; | ||
else { | ||
const isArray = Array.isArray(styleProp), len = isArray ? props.length : 1; | ||
const isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1; | ||
for (let i = 0; i < len; i++) { | ||
@@ -480,0 +480,0 @@ const style = isArray ? styleProp[i] : styleProp; |
@@ -525,3 +525,3 @@ "use strict"; | ||
else | ||
for (var isArray = Array.isArray(styleProp), len = isArray ? props.length : 1, i1 = 0; i1 < len; i1++) { | ||
for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) { | ||
var style1 = isArray ? styleProp[i1] : styleProp; | ||
@@ -536,2 +536,11 @@ if (style1) | ||
} | ||
var style2 = styleState.style; | ||
if (style2 != null && style2.fontFamily) { | ||
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face; | ||
if (faceInfo) { | ||
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val; | ||
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle); | ||
} | ||
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo); | ||
} | ||
var result = { | ||
@@ -549,12 +558,3 @@ space, | ||
mediaGroups | ||
}, style2 = styleState.style; | ||
if (style2 != null && style2.fontFamily) { | ||
var _getFont, faceInfo = (_getFont = (0, import_config.getFont)(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face; | ||
if (faceInfo) { | ||
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val; | ||
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle); | ||
} | ||
process.env.NODE_ENV === "development" && debug && debug !== "profile" && (0, import_log.log)("Found fontFamily native: ".concat(style2.fontFamily), faceInfo); | ||
} | ||
var asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web"; | ||
}, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web"; | ||
if (!asChildExceptStyleLike) { | ||
@@ -561,0 +561,0 @@ var style3 = styleState.style; |
@@ -502,3 +502,3 @@ import { | ||
else { | ||
const isArray = Array.isArray(styleProp), len = isArray ? props.length : 1; | ||
const isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1; | ||
for (let i = 0; i < len; i++) { | ||
@@ -505,0 +505,0 @@ const style = isArray ? styleProp[i] : styleProp; |
@@ -520,3 +520,3 @@ import { currentPlatform, isAndroid, isClient, isServer, isWeb, useIsomorphicLayoutEffect } from "@tamagui/constants"; | ||
else | ||
for (var isArray = Array.isArray(styleProp), len = isArray ? props.length : 1, i1 = 0; i1 < len; i1++) { | ||
for (var isArray = Array.isArray(styleProp), len = isArray ? styleProp.length : 1, i1 = 0; i1 < len; i1++) { | ||
var style1 = isArray ? styleProp[i1] : styleProp; | ||
@@ -531,2 +531,11 @@ if (style1) | ||
} | ||
var style2 = styleState.style; | ||
if (style2 != null && style2.fontFamily) { | ||
var _getFont, faceInfo = (_getFont = getFont(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face; | ||
if (faceInfo) { | ||
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val; | ||
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle); | ||
} | ||
process.env.NODE_ENV === "development" && debug && debug !== "profile" && log("Found fontFamily native: ".concat(style2.fontFamily), faceInfo); | ||
} | ||
var result = { | ||
@@ -544,12 +553,3 @@ space, | ||
mediaGroups | ||
}, style2 = styleState.style; | ||
if (style2 != null && style2.fontFamily) { | ||
var _getFont, faceInfo = (_getFont = getFont(style2.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face; | ||
if (faceInfo) { | ||
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight, overrideFace = (_faceInfo_style_fontWeight = faceInfo[style2.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 || (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style2.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val; | ||
overrideFace && (style2.fontFamily = overrideFace, styleState.fontFamily = overrideFace, delete style2.fontWeight, delete style2.fontStyle); | ||
} | ||
process.env.NODE_ENV === "development" && debug && debug !== "profile" && log("Found fontFamily native: ".concat(style2.fontFamily), faceInfo); | ||
} | ||
var asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web"; | ||
}, asChild = props.asChild, asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web"; | ||
if (!asChildExceptStyleLike) { | ||
@@ -556,0 +556,0 @@ var style3 = styleState.style; |
{ | ||
"name": "@tamagui/web", | ||
"version": "1.91.2", | ||
"version": "1.91.3", | ||
"source": "src/index.ts", | ||
@@ -30,11 +30,11 @@ "main": "dist/cjs", | ||
"dependencies": { | ||
"@tamagui/compose-refs": "1.91.2", | ||
"@tamagui/constants": "1.91.2", | ||
"@tamagui/helpers": "1.91.2", | ||
"@tamagui/normalize-css-color": "1.91.2", | ||
"@tamagui/timer": "1.91.2", | ||
"@tamagui/types": "1.91.2", | ||
"@tamagui/use-did-finish-ssr": "1.91.2", | ||
"@tamagui/use-event": "1.91.2", | ||
"@tamagui/use-force-update": "1.91.2", | ||
"@tamagui/compose-refs": "1.91.3", | ||
"@tamagui/constants": "1.91.3", | ||
"@tamagui/helpers": "1.91.3", | ||
"@tamagui/normalize-css-color": "1.91.3", | ||
"@tamagui/timer": "1.91.3", | ||
"@tamagui/types": "1.91.3", | ||
"@tamagui/use-did-finish-ssr": "1.91.3", | ||
"@tamagui/use-event": "1.91.3", | ||
"@tamagui/use-force-update": "1.91.3", | ||
"react": "^18.2.0", | ||
@@ -44,3 +44,3 @@ "react-dom": "^18.2.0" | ||
"devDependencies": { | ||
"@tamagui/build": "1.91.2", | ||
"@tamagui/build": "1.91.3", | ||
"@testing-library/react": "^14.0.0", | ||
@@ -47,0 +47,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
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
2543761
+ Added@tamagui/compose-refs@1.91.3(transitive)
+ Added@tamagui/constants@1.91.3(transitive)
+ Added@tamagui/helpers@1.91.3(transitive)
+ Added@tamagui/normalize-css-color@1.91.3(transitive)
+ Added@tamagui/simple-hash@1.91.3(transitive)
+ Added@tamagui/timer@1.91.3(transitive)
+ Added@tamagui/types@1.91.3(transitive)
+ Added@tamagui/use-did-finish-ssr@1.91.3(transitive)
+ Added@tamagui/use-event@1.91.3(transitive)
+ Added@tamagui/use-force-update@1.91.3(transitive)
- Removed@tamagui/compose-refs@1.91.2(transitive)
- Removed@tamagui/constants@1.91.2(transitive)
- Removed@tamagui/helpers@1.91.2(transitive)
- Removed@tamagui/normalize-css-color@1.91.2(transitive)
- Removed@tamagui/simple-hash@1.91.2(transitive)
- Removed@tamagui/timer@1.91.2(transitive)
- Removed@tamagui/types@1.91.2(transitive)
- Removed@tamagui/use-did-finish-ssr@1.91.2(transitive)
- Removed@tamagui/use-event@1.91.2(transitive)
- Removed@tamagui/use-force-update@1.91.2(transitive)
Updated@tamagui/compose-refs@1.91.3
Updated@tamagui/constants@1.91.3
Updated@tamagui/helpers@1.91.3
Updated@tamagui/timer@1.91.3
Updated@tamagui/types@1.91.3
Updated@tamagui/use-event@1.91.3