@trafilea/afrodita-components 4.0.2-beta.0 → 4.0.2-beta.1

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/build/index.js CHANGED
@@ -3295,6 +3295,7 @@ var CardBody = function (_a) {
3295
3295
  };
3296
3296
  var templateObject_1$_;
3297
3297
 
3298
+ var IGNORED_KEYS = ['typography', 'fonts'];
3298
3299
  var applyVariablesIntoTheme = function (theme) {
3299
3300
  var variables = {};
3300
3301
  var pending = {};
@@ -3307,6 +3308,11 @@ var applyVariablesIntoTheme = function (theme) {
3307
3308
  }
3308
3309
  variables[key] = variables[valueKey];
3309
3310
  }
3311
+ for (var _i = 0, IGNORED_KEYS_1 = IGNORED_KEYS; _i < IGNORED_KEYS_1.length; _i++) {
3312
+ var key = IGNORED_KEYS_1[_i];
3313
+ // @ts-ignore
3314
+ variables[key] = theme[key];
3315
+ }
3310
3316
  return variablesToObject(variables, {});
3311
3317
  };
3312
3318
  var variablesToObject = function (variables, theme) {
@@ -3334,6 +3340,9 @@ var transformToVariables = function (prefix, variables, theme, pending) {
3334
3340
  /* istanbul ignore next */
3335
3341
  var fullKey = key === '$root' ? prefix : "".concat(prefix, "-").concat(key);
3336
3342
  var value = theme[key];
3343
+ if (IGNORED_KEYS.includes(key)) {
3344
+ continue;
3345
+ }
3337
3346
  if (value == null) {
3338
3347
  continue;
3339
3348
  }