@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/web.js CHANGED
@@ -8228,11 +8228,16 @@ var isValidColor = function (color) {
8228
8228
  * @returns Boolean indicating if theme is valid
8229
8229
  */
8230
8230
  var validateTheme = function (theme) {
8231
- var requiredColors = ['accent', 'background', 'primary', 'surface', 'surfaceText', 'positive', 'negative', 'text'];
8231
+ var requiredColors = ['accent', 'background', 'primary', 'surface', 'surfaceText', 'text'];
8232
8232
  // fontFamily is optional - it has a default value in defaultTheme
8233
- return requiredColors.every(function (color) {
8234
- return theme[color] && isValidColor(theme[color]);
8233
+ // Log missing or invalid colors for debugging
8234
+ var missingOrInvalidColors = requiredColors.filter(function (color) {
8235
+ return !theme[color] || !isValidColor(theme[color]);
8235
8236
  });
8237
+ if (missingOrInvalidColors.length > 0) {
8238
+ console.warn('[WLL SDK] Missing or invalid required colors:', missingOrInvalidColors);
8239
+ }
8240
+ return missingOrInvalidColors.length === 0;
8236
8241
  };
8237
8242
  /**
8238
8243
  * Safely creates a Color instance with error handling
@@ -18915,10 +18920,11 @@ var Text = function (_a) {
18915
18920
  }
18916
18921
  };
18917
18922
  var variantStyle = getVariantStyle(variant);
18923
+ var baseTextStyle = {
18924
+ fontFamily: theme.fontFamily
18925
+ };
18918
18926
  return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
18919
- style: [variantStyle, style, {
18920
- fontFamily: theme.fontFamily
18921
- }]
18927
+ style: [baseTextStyle, variantStyle, style]
18922
18928
  }, props));
18923
18929
  };
18924
18930
 
@@ -20397,11 +20403,13 @@ var useSectionHeaderStyles = function () {
20397
20403
  fontSize: useResponsiveValue(theme.sizes.xxxl, theme.sizes.xl, isDesktop, isTablet),
20398
20404
  marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
20399
20405
  fontWeight: '700',
20400
- color: theme.text
20406
+ color: theme.text,
20407
+ fontFamily: theme.fontFamily
20401
20408
  },
20402
20409
  sectionDescription: {
20403
20410
  fontSize: useResponsiveValue(theme.sizes.xxl, theme.sizes.md, isDesktop, isTablet),
20404
- color: theme.alphaDerivedText[80]
20411
+ color: theme.alphaDerivedText[80],
20412
+ fontFamily: theme.fontFamily
20405
20413
  }
20406
20414
  });
20407
20415
  };