@wlloyalty/wll-react-sdk 1.0.99 → 1.0.100
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/native.js +27 -5
- package/dist/native.js.map +1 -1
- package/dist/web.js +20 -5
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/web.js
CHANGED
|
@@ -18915,12 +18915,27 @@ var Text = function (_a) {
|
|
|
18915
18915
|
}
|
|
18916
18916
|
};
|
|
18917
18917
|
var variantStyle = getVariantStyle(variant);
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
//
|
|
18918
|
+
// NOTE: React Native Web has different style resolution rules compared to CSS.
|
|
18919
|
+
// 1. We create styles using StyleSheet.create for better performance
|
|
18920
|
+
// 2. Base styles set the initial fontFamily
|
|
18921
|
+
// 3. variantStyle contains responsive fontSize and other variant-specific styles
|
|
18922
|
+
// 4. webOverrides ensures fontFamily is correctly applied on web platform
|
|
18923
|
+
// (prevents system font stack from being incorrectly applied)
|
|
18924
|
+
// 5. custom style prop has highest precedence
|
|
18925
|
+
// The order matters because RN Web resolves styles by specific properties
|
|
18926
|
+
// rather than last-declaration-wins like in CSS
|
|
18927
|
+
// https://necolas.github.io/react-native-web/docs/styling/#how-it-works
|
|
18928
|
+
var styles = StyleSheet$1.create({
|
|
18929
|
+
base: {
|
|
18930
|
+
fontFamily: theme.fontFamily
|
|
18931
|
+
},
|
|
18932
|
+
webOverrides: IS_WEB ? {
|
|
18933
|
+
fontFamily: theme.fontFamily
|
|
18934
|
+
} : {}
|
|
18935
|
+
});
|
|
18936
|
+
var combinedStyles = [styles.base, variantStyle, styles.webOverrides, style];
|
|
18922
18937
|
return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
|
|
18923
|
-
style:
|
|
18938
|
+
style: combinedStyles
|
|
18924
18939
|
}, props));
|
|
18925
18940
|
};
|
|
18926
18941
|
|