@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.
@@ -3560,9 +3560,14 @@ var createKittSpaces = function (spacing) {
3560
3560
  }
3561
3561
 
3562
3562
  return sizes;
3563
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3563
+ }; // reset native-base to be able to set size / space as a number
3564
+ // https://docs.nativebase.io/next/default-theme#h2-size
3564
3565
 
3565
3566
 
3567
+ 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) {
3568
+ return [value, value];
3569
+ })); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3570
+
3566
3571
  var createKittNativeBaseCustomTheme = function (theme) {
3567
3572
  var spaces = createKittSpaces(theme.spacing);
3568
3573
  var extendedTheme = extendTheme({
@@ -3574,10 +3579,8 @@ var createKittNativeBaseCustomTheme = function (theme) {
3574
3579
  radii: {
3575
3580
  'kitt.borderRadius': theme.card.borderRadius
3576
3581
  },
3577
- 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) {
3578
- return [value, value];
3579
- }))),
3580
- space: spaces,
3582
+ sizes: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3583
+ space: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3581
3584
  breakpoints: {
3582
3585
  // kitt breakpoints
3583
3586
  base: KittBreakpoints.BASE,