@ornikar/kitt-universal 13.0.0 → 13.1.0

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.
@@ -1,5 +1,6 @@
1
1
  export declare const theme: {
2
2
  spacing: number;
3
+ getSpacing: (multiplier: number) => number;
3
4
  colors: {
4
5
  primary: string;
5
6
  primaryLight: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,KAAK;;6BAES,MAAM,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BzC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC"}
@@ -1425,6 +1425,9 @@ var breakpoints = {
1425
1425
  // TODO : seperate brand color usage definition from proper theme definition and add typings - https://ornikar.atlassian.net/browse/CME-156
1426
1426
  var theme = {
1427
1427
  spacing: spacing,
1428
+ getSpacing: function getSpacing(multiplier) {
1429
+ return spacing * multiplier;
1430
+ },
1428
1431
  colors: colors,
1429
1432
  palettes: {
1430
1433
  lateOcean: lateOceanColorPalette
@@ -6519,14 +6522,14 @@ function Message(_ref) {
6519
6522
  });
6520
6523
  }
6521
6524
 
6522
- var createKittSpaces = function (spacing) {
6525
+ var createKittSpaces = function (theme) {
6523
6526
  var sizes = {
6524
6527
  positive: {},
6525
6528
  negative: {}
6526
6529
  };
6527
6530
  for (var size = 1; size <= 64; size++) {
6528
- sizes.positive["kitt.".concat(size)] = size * spacing;
6529
- sizes.negative["-kitt.".concat(size)] = -size * spacing;
6531
+ sizes.positive["kitt.".concat(size)] = theme.getSpacing(size);
6532
+ sizes.negative["-kitt.".concat(size)] = -theme.getSpacing(size);
6530
6533
  }
6531
6534
  return sizes;
6532
6535
  };
@@ -6538,7 +6541,7 @@ var overridenNativeBaseSizeandSpaceScale = Object.fromEntries([1, 2, 3, 4, 5, 6,
6538
6541
  }));
6539
6542
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type -- let typescript infer types
6540
6543
  function createKittNativeBaseCustomTheme(theme, appTheme) {
6541
- var spaces = createKittSpaces(theme.spacing);
6544
+ var spaces = createKittSpaces(theme);
6542
6545
  var appBreakpoints = (appTheme === null || appTheme === void 0 ? void 0 : appTheme.breakpoints) || {};
6543
6546
  var extendedTheme = extendTheme({
6544
6547
  colors: {