@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.
@@ -3124,9 +3124,12 @@ const createKittSpaces = spacing => {
3124
3124
  }
3125
3125
 
3126
3126
  return sizes;
3127
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3127
+ }; // reset native-base to be able to set size / space as a number
3128
+ // https://docs.nativebase.io/next/default-theme#h2-size
3128
3129
 
3129
3130
 
3131
+ 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
3132
+
3130
3133
  const createKittNativeBaseCustomTheme = theme => {
3131
3134
  const spaces = createKittSpaces(theme.spacing);
3132
3135
  const extendedTheme = nativeBase.extendTheme({
@@ -3139,11 +3142,11 @@ const createKittNativeBaseCustomTheme = theme => {
3139
3142
  'kitt.borderRadius': theme.card.borderRadius
3140
3143
  },
3141
3144
  sizes: { ...spaces,
3142
- // reset native-base to be able to set size as number
3143
- // https://docs.nativebase.io/next/default-theme#h2-size
3144
- ...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]))
3145
+ ...overridenNativeBaseSizeandSpaceScale
3146
+ },
3147
+ space: { ...spaces,
3148
+ ...overridenNativeBaseSizeandSpaceScale
3145
3149
  },
3146
- space: spaces,
3147
3150
  breakpoints: {
3148
3151
  // kitt breakpoints
3149
3152
  base: KittBreakpoints.BASE,