@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.
@@ -3445,9 +3445,12 @@ const createKittSpaces = spacing => {
3445
3445
  }
3446
3446
 
3447
3447
  return sizes;
3448
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3448
+ }; // reset native-base to be able to set size / space as a number
3449
+ // https://docs.nativebase.io/next/default-theme#h2-size
3449
3450
 
3450
3451
 
3452
+ const 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(value => [value, value])); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3453
+
3451
3454
  const createKittNativeBaseCustomTheme = theme => {
3452
3455
  const spaces = createKittSpaces(theme.spacing);
3453
3456
  const extendedTheme = nativeBase.extendTheme({
@@ -3460,11 +3463,11 @@ const createKittNativeBaseCustomTheme = theme => {
3460
3463
  'kitt.borderRadius': theme.card.borderRadius
3461
3464
  },
3462
3465
  sizes: { ...spaces,
3463
- // reset native-base to be able to set size as number
3464
- // https://docs.nativebase.io/next/default-theme#h2-size
3465
- ...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(value => [value, value]))
3466
+ ...overridenNativeBaseSizeandSpaceScale
3467
+ },
3468
+ space: { ...spaces,
3469
+ ...overridenNativeBaseSizeandSpaceScale
3466
3470
  },
3467
- space: spaces,
3468
3471
  breakpoints: {
3469
3472
  // kitt breakpoints
3470
3473
  base: KittBreakpoints.BASE,