@ornikar/kitt-universal 19.0.2 → 20.0.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +84 -4
  3. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  4. package/dist/definitions/themes/default.d.ts +24 -2
  5. package/dist/definitions/themes/default.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/typography.d.ts +27 -3
  7. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  8. package/dist/definitions/typography/Typography.d.ts +14 -4
  9. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  10. package/dist/definitions/typography/utils/getTypographyFamily.d.ts +1 -1
  11. package/dist/definitions/typography/utils/getTypographyFamily.d.ts.map +1 -1
  12. package/dist/index-node-18.18.cjs.js +239 -113
  13. package/dist/index-node-18.18.cjs.js.map +1 -1
  14. package/dist/index-node-18.18.cjs.web.js +218 -92
  15. package/dist/index-node-18.18.cjs.web.js.map +1 -1
  16. package/dist/index-node-18.18.es.mjs +239 -113
  17. package/dist/index-node-18.18.es.mjs.map +1 -1
  18. package/dist/index-node-18.18.es.web.mjs +218 -92
  19. package/dist/index-node-18.18.es.web.mjs.map +1 -1
  20. package/dist/index.es.android.js +241 -115
  21. package/dist/index.es.android.js.map +1 -1
  22. package/dist/index.es.ios.js +241 -115
  23. package/dist/index.es.ios.js.map +1 -1
  24. package/dist/index.es.js +241 -115
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +220 -94
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/linaria-themes-node-18.18.cjs.js +64 -26
  29. package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
  30. package/dist/linaria-themes-node-18.18.cjs.web.js +64 -26
  31. package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
  32. package/dist/linaria-themes-node-18.18.es.mjs +64 -26
  33. package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
  34. package/dist/linaria-themes-node-18.18.es.web.mjs +64 -26
  35. package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
  36. package/dist/linaria-themes.es.android.js +64 -26
  37. package/dist/linaria-themes.es.android.js.map +1 -1
  38. package/dist/linaria-themes.es.ios.js +64 -26
  39. package/dist/linaria-themes.es.ios.js.map +1 -1
  40. package/dist/linaria-themes.es.js +64 -26
  41. package/dist/linaria-themes.es.js.map +1 -1
  42. package/dist/linaria-themes.es.web.js +64 -26
  43. package/dist/linaria-themes.es.web.js.map +1 -1
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +2 -2
@@ -828,7 +828,8 @@ var datePicker = {
828
828
  var calcLineHeight = function (fontSize, lineHeightMultiplier) {
829
829
  return Math.round(fontSize * lineHeightMultiplier);
830
830
  };
831
- var createTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
831
+ /** @deprecated legacy typography type config is deprecated. */
832
+ var createLegacyTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize) {
832
833
  var mediumAndWideFontSize = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : baseAndSmallFontSize;
833
834
  var lineHeightMultiplierMediumAndWide = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : lineHeightMultiplierBaseAndSmall;
834
835
  return {
@@ -842,6 +843,16 @@ var createTypographyTypeConfig = function (lineHeightMultiplierBaseAndSmall, bas
842
843
  }
843
844
  };
844
845
  };
846
+ var createTypographyConfig = function (fontSize, lineHeightMultiplier) {
847
+ var config = {
848
+ fontSize: fontSize,
849
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
850
+ };
851
+ return {
852
+ baseAndSmall: config,
853
+ mediumAndWide: config
854
+ };
855
+ };
845
856
  var typography = {
846
857
  colors: {
847
858
  black: colors.black,
@@ -858,7 +869,10 @@ var typography = {
858
869
  warning: colors.warning
859
870
  },
860
871
  types: {
861
- headers: {
872
+ get header() {
873
+ throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
874
+ },
875
+ headings: {
862
876
  fontFamily: {
863
877
  "native": {
864
878
  regular: 'Moderat-Black',
@@ -875,19 +889,26 @@ var typography = {
875
889
  },
876
890
  fontStyle: 'normal',
877
891
  configs: {
878
- // also known as xxlarge
879
- header1: createTypographyTypeConfig(1.1, 40, 56),
880
- // also known as xlarge
881
- header2: createTypographyTypeConfig(1.2, 32, 48, 1.1),
882
- // also known as medium
883
- header3: createTypographyTypeConfig(1.2, 24, 40, 1.1),
884
- // also known as xsmall
885
- header4: createTypographyTypeConfig(1.3, 18, 24, 1.2),
886
- // also known as xxsmall
887
- header5: createTypographyTypeConfig(1.3, 18, 18)
892
+ /* legacy */
893
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
894
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
895
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
896
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
897
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
898
+ /* latest */
899
+ 'heading-xxl': createTypographyConfig(56, 1.1),
900
+ 'heading-xl': createTypographyConfig(48, 1.1),
901
+ 'heading-l': createTypographyConfig(40, 1.1),
902
+ 'heading-m': createTypographyConfig(32, 1.2),
903
+ 'heading-s': createTypographyConfig(24, 1.2),
904
+ 'heading-xs': createTypographyConfig(18, 1.3),
905
+ 'heading-xxs': createTypographyConfig(16, 1.3)
888
906
  }
889
907
  },
890
- 'headers-impact': {
908
+ get 'headers-impact'() {
909
+ throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
910
+ },
911
+ 'headings-impact': {
891
912
  fontFamily: {
892
913
  "native": {
893
914
  regular: 'Transducer-Black',
@@ -901,14 +922,24 @@ var typography = {
901
922
  fontWeight: 900,
902
923
  fontStyle: 'normal',
903
924
  configs: {
904
- 'header-impact-xxl': createTypographyTypeConfig(1.2, 56, 56),
905
- 'header-impact-xl': createTypographyTypeConfig(1.2, 48, 48),
906
- 'header-impact-l': createTypographyTypeConfig(1.2, 40, 40),
907
- 'header-impact-m': createTypographyTypeConfig(1.2, 32, 32),
908
- 'header-impact-s': createTypographyTypeConfig(1.2, 24, 24),
909
- 'header-impact-xs': createTypographyTypeConfig(1.2, 18, 18),
910
- 'header-impact-xxs': createTypographyTypeConfig(1.2, 16, 16),
911
- 'header-impact-xxxs': createTypographyTypeConfig(1.2, 14, 14)
925
+ /* legacy */
926
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
927
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
928
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
929
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
930
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
931
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
932
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
933
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
934
+ /* latest */
935
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
936
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
937
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
938
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
939
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
940
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
941
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
942
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
912
943
  }
913
944
  },
914
945
  bodies: {
@@ -931,11 +962,18 @@ var typography = {
931
962
  bold: 'normal'
932
963
  },
933
964
  configs: {
934
- 'body-large': createTypographyTypeConfig(1.4, 18, 24),
935
- 'body-medium': createTypographyTypeConfig(1.4, 18, 18),
936
- body: createTypographyTypeConfig(1.4, 16, 16),
937
- 'body-small': createTypographyTypeConfig(1.4, 14, 14),
938
- 'body-xsmall': createTypographyTypeConfig(1.4, 12, 12)
965
+ /* legacy */
966
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
967
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
968
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
969
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
970
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
971
+ /* latest */
972
+ 'body-xl': createTypographyConfig(24, 1.4),
973
+ 'body-l': createTypographyConfig(18, 1.4),
974
+ 'body-m': createTypographyConfig(16, 1.4),
975
+ 'body-s': createTypographyConfig(14, 1.4),
976
+ 'body-xs': createTypographyConfig(12, 1.4)
939
977
  }
940
978
  }
941
979
  },
@@ -1900,15 +1938,15 @@ function getTypographyColorValue(colorName) {
1900
1938
  return colorName;
1901
1939
  }
1902
1940
 
1903
- var isTypeHeader = function (type) {
1904
- return type.startsWith('header');
1941
+ var isTypeHeadings = function (type) {
1942
+ return type.startsWith('header') || type.startsWith('heading');
1905
1943
  };
1906
- var isTypeHeaderImpact = function (type) {
1907
- return type.startsWith('header-impact');
1944
+ var isTypeHeadingsImpact = function (type) {
1945
+ return type.startsWith('heading-impact') || type.startsWith('header-impact');
1908
1946
  };
1909
1947
  var getTypographyFamily = function (type) {
1910
- if (isTypeHeaderImpact(type)) return 'headers-impact';
1911
- if (isTypeHeader(type)) return 'headers';
1948
+ if (isTypeHeadingsImpact(type)) return 'headings-impact';
1949
+ if (isTypeHeadings(type)) return 'headings';
1912
1950
  return 'bodies';
1913
1951
  };
1914
1952
  var getTypographyFamilyWithAncestorValue = function (type, typographyFamilyInContext) {
@@ -1975,8 +2013,8 @@ function Typography(_ref) {
1975
2013
  var baseOrDefaultToBody = hasTypographyAncestor ? type.base : (_type$base = type.base) !== null && _type$base !== void 0 ? _type$base : 'body';
1976
2014
  var typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
1977
2015
 
1978
- // force bold for headers, default to regular for bodies
1979
- var nonNullableVariant = variant !== null && variant !== void 0 ? variant : typographyFamily === 'headers' || typographyFamily === 'headers-impact' ? 'bold' : 'regular';
2016
+ // force bold for headings, default to regular for bodies
2017
+ var nonNullableVariant = variant !== null && variant !== void 0 ? variant : typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular';
1980
2018
  var fontSizeForNativeBase = createNativeBaseFontSize(_objectSpread(_objectSpread({}, type), {}, {
1981
2019
  base: baseOrDefaultToBody
1982
2020
  }));
@@ -7462,96 +7500,184 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7462
7500
  }, appBreakpoints),
7463
7501
  fontSizes: {
7464
7502
  baseAndSmall: {
7465
- header1: "".concat(theme.typography.types.headers.configs.header1.baseAndSmall.fontSize, "px"),
7466
- header2: "".concat(theme.typography.types.headers.configs.header2.baseAndSmall.fontSize, "px"),
7467
- header3: "".concat(theme.typography.types.headers.configs.header3.baseAndSmall.fontSize, "px"),
7468
- header4: "".concat(theme.typography.types.headers.configs.header4.baseAndSmall.fontSize, "px"),
7469
- header5: "".concat(theme.typography.types.headers.configs.header5.baseAndSmall.fontSize, "px"),
7503
+ /* legacy */
7504
+ header1: "".concat(theme.typography.types.headings.configs.header1.baseAndSmall.fontSize, "px"),
7505
+ header2: "".concat(theme.typography.types.headings.configs.header2.baseAndSmall.fontSize, "px"),
7506
+ header3: "".concat(theme.typography.types.headings.configs.header3.baseAndSmall.fontSize, "px"),
7507
+ header4: "".concat(theme.typography.types.headings.configs.header4.baseAndSmall.fontSize, "px"),
7508
+ header5: "".concat(theme.typography.types.headings.configs.header5.baseAndSmall.fontSize, "px"),
7470
7509
  'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize, "px"),
7471
7510
  'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize, "px"),
7472
7511
  body: "".concat(theme.typography.types.bodies.configs.body.baseAndSmall.fontSize, "px"),
7473
7512
  'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize, "px"),
7474
7513
  'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize, "px"),
7475
- 'header-impact-xxl': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxl'].baseAndSmall.fontSize, "px"),
7476
- 'header-impact-xl': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xl'].baseAndSmall.fontSize, "px"),
7477
- 'header-impact-l': "".concat(theme.typography.types['headers-impact'].configs['header-impact-l'].baseAndSmall.fontSize, "px"),
7478
- 'header-impact-m': "".concat(theme.typography.types['headers-impact'].configs['header-impact-m'].baseAndSmall.fontSize, "px"),
7479
- 'header-impact-s': "".concat(theme.typography.types['headers-impact'].configs['header-impact-s'].baseAndSmall.fontSize, "px"),
7480
- 'header-impact-xs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xs'].baseAndSmall.fontSize, "px"),
7481
- 'header-impact-xxs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxs'].baseAndSmall.fontSize, "px"),
7482
- 'header-impact-xxxs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxxs'].baseAndSmall.fontSize, "px")
7514
+ 'header-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxl'].baseAndSmall.fontSize, "px"),
7515
+ 'header-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xl'].baseAndSmall.fontSize, "px"),
7516
+ 'header-impact-l': "".concat(theme.typography.types['headings-impact'].configs['header-impact-l'].baseAndSmall.fontSize, "px"),
7517
+ 'header-impact-m': "".concat(theme.typography.types['headings-impact'].configs['header-impact-m'].baseAndSmall.fontSize, "px"),
7518
+ 'header-impact-s': "".concat(theme.typography.types['headings-impact'].configs['header-impact-s'].baseAndSmall.fontSize, "px"),
7519
+ 'header-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xs'].baseAndSmall.fontSize, "px"),
7520
+ 'header-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxs'].baseAndSmall.fontSize, "px"),
7521
+ 'header-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxxs'].baseAndSmall.fontSize, "px"),
7522
+ /* latest */
7523
+ 'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize, "px"),
7524
+ 'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize, "px"),
7525
+ 'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize, "px"),
7526
+ 'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize, "px"),
7527
+ 'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize, "px"),
7528
+ 'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize, "px"),
7529
+ 'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize, "px"),
7530
+ 'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize, "px"),
7531
+ 'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize, "px"),
7532
+ 'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize, "px"),
7533
+ 'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize, "px"),
7534
+ 'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize, "px"),
7535
+ 'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize, "px"),
7536
+ 'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize, "px"),
7537
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize, "px"),
7538
+ 'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize, "px"),
7539
+ 'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize, "px"),
7540
+ 'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize, "px"),
7541
+ 'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize, "px"),
7542
+ 'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize, "px")
7483
7543
  },
7484
7544
  mediumAndWide: {
7485
- header1: "".concat(theme.typography.types.headers.configs.header1.mediumAndWide.fontSize, "px"),
7486
- header2: "".concat(theme.typography.types.headers.configs.header2.mediumAndWide.fontSize, "px"),
7487
- header3: "".concat(theme.typography.types.headers.configs.header3.mediumAndWide.fontSize, "px"),
7488
- header4: "".concat(theme.typography.types.headers.configs.header4.mediumAndWide.fontSize, "px"),
7489
- header5: "".concat(theme.typography.types.headers.configs.header5.mediumAndWide.fontSize, "px"),
7545
+ /* legacy */
7546
+ header1: "".concat(theme.typography.types.headings.configs.header1.mediumAndWide.fontSize, "px"),
7547
+ header2: "".concat(theme.typography.types.headings.configs.header2.mediumAndWide.fontSize, "px"),
7548
+ header3: "".concat(theme.typography.types.headings.configs.header3.mediumAndWide.fontSize, "px"),
7549
+ header4: "".concat(theme.typography.types.headings.configs.header4.mediumAndWide.fontSize, "px"),
7550
+ header5: "".concat(theme.typography.types.headings.configs.header5.mediumAndWide.fontSize, "px"),
7490
7551
  'body-large': "".concat(theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize, "px"),
7491
7552
  'body-medium': "".concat(theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize, "px"),
7492
7553
  body: "".concat(theme.typography.types.bodies.configs.body.mediumAndWide.fontSize, "px"),
7493
7554
  'body-small': "".concat(theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize, "px"),
7494
7555
  'body-xsmall': "".concat(theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize, "px"),
7495
- 'header-impact-xxl': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize, "px"),
7496
- 'header-impact-xl': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xl'].mediumAndWide.fontSize, "px"),
7497
- 'header-impact-l': "".concat(theme.typography.types['headers-impact'].configs['header-impact-l'].mediumAndWide.fontSize, "px"),
7498
- 'header-impact-m': "".concat(theme.typography.types['headers-impact'].configs['header-impact-m'].mediumAndWide.fontSize, "px"),
7499
- 'header-impact-s': "".concat(theme.typography.types['headers-impact'].configs['header-impact-s'].mediumAndWide.fontSize, "px"),
7500
- 'header-impact-xs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xs'].mediumAndWide.fontSize, "px"),
7501
- 'header-impact-xxs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize, "px"),
7502
- 'header-impact-xxxs': "".concat(theme.typography.types['headers-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize, "px")
7556
+ 'header-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize, "px"),
7557
+ 'header-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize, "px"),
7558
+ 'header-impact-l': "".concat(theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize, "px"),
7559
+ 'header-impact-m': "".concat(theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize, "px"),
7560
+ 'header-impact-s': "".concat(theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize, "px"),
7561
+ 'header-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize, "px"),
7562
+ 'header-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize, "px"),
7563
+ 'header-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize, "px"),
7564
+ /* latest */
7565
+ 'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize, "px"),
7566
+ 'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize, "px"),
7567
+ 'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize, "px"),
7568
+ 'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize, "px"),
7569
+ 'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize, "px"),
7570
+ 'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize, "px"),
7571
+ 'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize, "px"),
7572
+ 'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize, "px"),
7573
+ 'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize, "px"),
7574
+ 'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize, "px"),
7575
+ 'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize, "px"),
7576
+ 'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize, "px"),
7577
+ 'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize, "px"),
7578
+ 'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize, "px"),
7579
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize, "px"),
7580
+ 'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize, "px"),
7581
+ 'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize, "px"),
7582
+ 'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize, "px"),
7583
+ 'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize, "px"),
7584
+ 'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize, "px")
7503
7585
  }
7504
7586
  },
7505
7587
  lineHeights: {
7506
7588
  baseAndSmall: {
7507
- header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
7508
- header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
7509
- header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
7510
- header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
7511
- header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
7589
+ /* legacy */
7590
+ header1: theme.typography.types.headings.configs.header1.baseAndSmall.lineHeight,
7591
+ header2: theme.typography.types.headings.configs.header2.baseAndSmall.lineHeight,
7592
+ header3: theme.typography.types.headings.configs.header3.baseAndSmall.lineHeight,
7593
+ header4: theme.typography.types.headings.configs.header4.baseAndSmall.lineHeight,
7594
+ header5: theme.typography.types.headings.configs.header5.baseAndSmall.lineHeight,
7512
7595
  'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
7513
7596
  'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
7514
7597
  body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
7515
7598
  'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
7516
7599
  'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight,
7517
- 'header-impact-xxl': theme.typography.types['headers-impact'].configs['header-impact-xxl'].baseAndSmall.lineHeight,
7518
- 'header-impact-xl': theme.typography.types['headers-impact'].configs['header-impact-xl'].baseAndSmall.lineHeight,
7519
- 'header-impact-l': theme.typography.types['headers-impact'].configs['header-impact-l'].baseAndSmall.lineHeight,
7520
- 'header-impact-m': theme.typography.types['headers-impact'].configs['header-impact-m'].baseAndSmall.lineHeight,
7521
- 'header-impact-s': theme.typography.types['headers-impact'].configs['header-impact-s'].baseAndSmall.lineHeight,
7522
- 'header-impact-xs': theme.typography.types['headers-impact'].configs['header-impact-xs'].baseAndSmall.lineHeight,
7523
- 'header-impact-xxs': theme.typography.types['headers-impact'].configs['header-impact-xxs'].baseAndSmall.lineHeight,
7524
- 'header-impact-xxxs': theme.typography.types['headers-impact'].configs['header-impact-xxxs'].baseAndSmall.lineHeight
7600
+ 'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].baseAndSmall.lineHeight,
7601
+ 'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].baseAndSmall.lineHeight,
7602
+ 'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].baseAndSmall.lineHeight,
7603
+ 'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].baseAndSmall.lineHeight,
7604
+ 'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].baseAndSmall.lineHeight,
7605
+ 'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].baseAndSmall.lineHeight,
7606
+ 'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].baseAndSmall.lineHeight,
7607
+ 'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].baseAndSmall.lineHeight,
7608
+ /* latest */
7609
+ 'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight, "px"),
7610
+ 'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight, "px"),
7611
+ 'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight, "px"),
7612
+ 'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight, "px"),
7613
+ 'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight, "px"),
7614
+ 'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight, "px"),
7615
+ 'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight, "px"),
7616
+ 'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight, "px"),
7617
+ 'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight, "px"),
7618
+ 'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight, "px"),
7619
+ 'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight, "px"),
7620
+ 'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight, "px"),
7621
+ 'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight, "px"),
7622
+ 'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight, "px"),
7623
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight, "px"),
7624
+ 'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight, "px"),
7625
+ 'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight, "px"),
7626
+ 'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight, "px"),
7627
+ 'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight, "px"),
7628
+ 'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight, "px")
7525
7629
  },
7526
7630
  mediumAndWide: {
7527
- header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
7528
- header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
7529
- header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
7530
- header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
7531
- header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
7631
+ /* legacy */
7632
+ header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
7633
+ header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
7634
+ header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
7635
+ header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
7636
+ header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
7532
7637
  'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
7533
7638
  'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
7534
7639
  body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
7535
7640
  'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
7536
7641
  'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
7537
- 'header-impact-xxl': theme.typography.types['headers-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
7538
- 'header-impact-xl': theme.typography.types['headers-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
7539
- 'header-impact-l': theme.typography.types['headers-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
7540
- 'header-impact-m': theme.typography.types['headers-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
7541
- 'header-impact-s': theme.typography.types['headers-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
7542
- 'header-impact-xs': theme.typography.types['headers-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
7543
- 'header-impact-xxs': theme.typography.types['headers-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
7544
- 'header-impact-xxxs': theme.typography.types['headers-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight
7642
+ 'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
7643
+ 'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
7644
+ 'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
7645
+ 'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
7646
+ 'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
7647
+ 'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
7648
+ 'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
7649
+ 'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
7650
+ /* latest */
7651
+ 'heading-impact-xxl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight, "px"),
7652
+ 'heading-impact-xl': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight, "px"),
7653
+ 'heading-impact-l': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight, "px"),
7654
+ 'heading-impact-m': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight, "px"),
7655
+ 'heading-impact-s': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight, "px"),
7656
+ 'heading-impact-xs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight, "px"),
7657
+ 'heading-impact-xxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight, "px"),
7658
+ 'heading-impact-xxxs': "".concat(theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight, "px"),
7659
+ 'heading-xxl': "".concat(theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight, "px"),
7660
+ 'heading-xl': "".concat(theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight, "px"),
7661
+ 'heading-l': "".concat(theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight, "px"),
7662
+ 'heading-m': "".concat(theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight, "px"),
7663
+ 'heading-s': "".concat(theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight, "px"),
7664
+ 'heading-xs': "".concat(theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight, "px"),
7665
+ 'heading-xxs': "".concat(theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight, "px"),
7666
+ 'body-xl': "".concat(theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight, "px"),
7667
+ 'body-l': "".concat(theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight, "px"),
7668
+ 'body-m': "".concat(theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight, "px"),
7669
+ 'body-s': "".concat(theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight, "px"),
7670
+ 'body-xs': "".concat(theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight, "px")
7545
7671
  }
7546
7672
  },
7547
7673
  fontWeights: {
7548
- headers: {
7549
- regular: theme.typography.types.headers.fontWeight.regular,
7550
- bold: theme.typography.types.headers.fontWeight.bold
7674
+ headings: {
7675
+ regular: theme.typography.types.headings.fontWeight.regular,
7676
+ bold: theme.typography.types.headings.fontWeight.bold
7551
7677
  },
7552
- 'headers-impact': {
7553
- regular: theme.typography.types['headers-impact'].fontWeight,
7554
- bold: theme.typography.types['headers-impact'].fontWeight
7678
+ 'headings-impact': {
7679
+ regular: theme.typography.types['headings-impact'].fontWeight,
7680
+ bold: theme.typography.types['headings-impact'].fontWeight
7555
7681
  },
7556
7682
  bodies: {
7557
7683
  regular: theme.typography.types.bodies.fontWeight.regular,
@@ -7560,8 +7686,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7560
7686
  }
7561
7687
  },
7562
7688
  fonts: {
7563
- headers: theme.typography.types.headers.fontFamily.web,
7564
- 'headers-impact': theme.typography.types['headers-impact'].fontFamily.web,
7689
+ headings: theme.typography.types.headings.fontFamily.web,
7690
+ 'headings-impact': theme.typography.types['headings-impact'].fontFamily.web,
7565
7691
  bodies: theme.typography.types.bodies.fontFamily.web
7566
7692
  },
7567
7693
  shadows: {