@ornikar/kitt-universal 9.3.0 → 9.3.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.
@@ -3291,9 +3291,14 @@ var createKittSpaces = function (spacing) {
3291
3291
  }
3292
3292
 
3293
3293
  return sizes;
3294
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3294
+ }; // reset native-base to be able to set size / space as a number
3295
+ // https://docs.nativebase.io/next/default-theme#h2-size
3295
3296
 
3296
3297
 
3298
+ var overridenNativeBaseSizeandSpaceScale = Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
3299
+ return [value, value];
3300
+ })); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3301
+
3297
3302
  var createKittNativeBaseCustomTheme = function (theme) {
3298
3303
  var spaces = createKittSpaces(theme.spacing);
3299
3304
  var extendedTheme = extendTheme({
@@ -3305,10 +3310,8 @@ var createKittNativeBaseCustomTheme = function (theme) {
3305
3310
  radii: {
3306
3311
  'kitt.borderRadius': theme.card.borderRadius
3307
3312
  },
3308
- sizes: _objectSpread(_objectSpread({}, spaces), Object.fromEntries([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64, 78, 80, 96, 0.5, 1.5, 2.5, 3.5].map(function (value) {
3309
- return [value, value];
3310
- }))),
3311
- space: spaces,
3313
+ sizes: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3314
+ space: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3312
3315
  breakpoints: {
3313
3316
  // kitt breakpoints
3314
3317
  base: KittBreakpoints.BASE,