@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.
@@ -3507,9 +3507,14 @@ var createKittSpaces = function (spacing) {
3507
3507
  }
3508
3508
 
3509
3509
  return sizes;
3510
- }; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3510
+ }; // reset native-base to be able to set size / space as a number
3511
+ // https://docs.nativebase.io/next/default-theme#h2-size
3511
3512
 
3512
3513
 
3514
+ 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) {
3515
+ return [value, value];
3516
+ })); // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
3517
+
3513
3518
  var createKittNativeBaseCustomTheme = function (theme) {
3514
3519
  var spaces = createKittSpaces(theme.spacing);
3515
3520
  var extendedTheme = extendTheme({
@@ -3521,10 +3526,8 @@ var createKittNativeBaseCustomTheme = function (theme) {
3521
3526
  radii: {
3522
3527
  'kitt.borderRadius': theme.card.borderRadius
3523
3528
  },
3524
- 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) {
3525
- return [value, value];
3526
- }))),
3527
- space: spaces,
3529
+ sizes: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3530
+ space: _objectSpread(_objectSpread({}, spaces), overridenNativeBaseSizeandSpaceScale),
3528
3531
  breakpoints: {
3529
3532
  // kitt breakpoints
3530
3533
  base: KittBreakpoints.BASE,