@wlloyalty/wll-react-sdk 1.0.96 → 1.0.97
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 +12 -10
- package/dist/native.js.map +1 -1
- package/dist/web.js +16 -8
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/native.js
CHANGED
|
@@ -1678,12 +1678,15 @@ var validateTheme = function (theme) {
|
|
|
1678
1678
|
'primary',
|
|
1679
1679
|
'surface',
|
|
1680
1680
|
'surfaceText',
|
|
1681
|
-
'positive',
|
|
1682
|
-
'negative',
|
|
1683
1681
|
'text',
|
|
1684
1682
|
];
|
|
1685
1683
|
// fontFamily is optional - it has a default value in defaultTheme
|
|
1686
|
-
|
|
1684
|
+
// Log missing or invalid colors for debugging
|
|
1685
|
+
var missingOrInvalidColors = requiredColors.filter(function (color) { return !theme[color] || !isValidColor(theme[color]); });
|
|
1686
|
+
if (missingOrInvalidColors.length > 0) {
|
|
1687
|
+
console.warn('[WLL SDK] Missing or invalid required colors:', missingOrInvalidColors);
|
|
1688
|
+
}
|
|
1689
|
+
return missingOrInvalidColors.length === 0;
|
|
1687
1690
|
};
|
|
1688
1691
|
/**
|
|
1689
1692
|
* Safely creates a Color instance with error handling
|
|
@@ -2315,13 +2318,10 @@ var Text = function (_a) {
|
|
|
2315
2318
|
}
|
|
2316
2319
|
};
|
|
2317
2320
|
var variantStyle = getVariantStyle(variant);
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
fontFamily: theme.fontFamily,
|
|
2323
|
-
},
|
|
2324
|
-
] }, props)));
|
|
2321
|
+
var baseTextStyle = {
|
|
2322
|
+
fontFamily: theme.fontFamily,
|
|
2323
|
+
};
|
|
2324
|
+
return jsxRuntimeExports.jsx(reactNative.Text, __assign({ style: [baseTextStyle, variantStyle, style] }, props));
|
|
2325
2325
|
};
|
|
2326
2326
|
|
|
2327
2327
|
var MAX_WIDTH = 1080;
|
|
@@ -3527,10 +3527,12 @@ var useSectionHeaderStyles = function () {
|
|
|
3527
3527
|
marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
|
|
3528
3528
|
fontWeight: '700',
|
|
3529
3529
|
color: theme.text,
|
|
3530
|
+
fontFamily: theme.fontFamily,
|
|
3530
3531
|
},
|
|
3531
3532
|
sectionDescription: {
|
|
3532
3533
|
fontSize: useResponsiveValue(theme.sizes.xxl, theme.sizes.md, isDesktop, isTablet),
|
|
3533
3534
|
color: theme.alphaDerivedText[80],
|
|
3535
|
+
fontFamily: theme.fontFamily,
|
|
3534
3536
|
},
|
|
3535
3537
|
});
|
|
3536
3538
|
};
|