@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
@@ -820,7 +820,8 @@ const datePicker = {
820
820
  };
821
821
 
822
822
  const calcLineHeight = (fontSize, lineHeightMultiplier) => Math.round(fontSize * lineHeightMultiplier);
823
- const createTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
823
+ /** @deprecated legacy typography type config is deprecated. */
824
+ const createLegacyTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSmallFontSize, mediumAndWideFontSize = baseAndSmallFontSize, lineHeightMultiplierMediumAndWide = lineHeightMultiplierBaseAndSmall) => ({
824
825
  baseAndSmall: {
825
826
  fontSize: baseAndSmallFontSize,
826
827
  lineHeight: calcLineHeight(baseAndSmallFontSize, lineHeightMultiplierBaseAndSmall)
@@ -830,6 +831,16 @@ const createTypographyTypeConfig = (lineHeightMultiplierBaseAndSmall, baseAndSma
830
831
  lineHeight: calcLineHeight(mediumAndWideFontSize, lineHeightMultiplierMediumAndWide)
831
832
  }
832
833
  });
834
+ const createTypographyConfig = (fontSize, lineHeightMultiplier) => {
835
+ const config = {
836
+ fontSize,
837
+ lineHeight: calcLineHeight(fontSize, lineHeightMultiplier)
838
+ };
839
+ return {
840
+ baseAndSmall: config,
841
+ mediumAndWide: config
842
+ };
843
+ };
833
844
  const typography = {
834
845
  colors: {
835
846
  black: colors.black,
@@ -846,7 +857,10 @@ const typography = {
846
857
  warning: colors.warning
847
858
  },
848
859
  types: {
849
- headers: {
860
+ get header() {
861
+ throw new Error('typography.types.header is deprecated, use typography.type.headings instead');
862
+ },
863
+ headings: {
850
864
  fontFamily: {
851
865
  native: {
852
866
  regular: 'Moderat-Black',
@@ -863,19 +877,26 @@ const typography = {
863
877
  },
864
878
  fontStyle: 'normal',
865
879
  configs: {
866
- // also known as xxlarge
867
- header1: createTypographyTypeConfig(1.1, 40, 56),
868
- // also known as xlarge
869
- header2: createTypographyTypeConfig(1.2, 32, 48, 1.1),
870
- // also known as medium
871
- header3: createTypographyTypeConfig(1.2, 24, 40, 1.1),
872
- // also known as xsmall
873
- header4: createTypographyTypeConfig(1.3, 18, 24, 1.2),
874
- // also known as xxsmall
875
- header5: createTypographyTypeConfig(1.3, 18, 18)
880
+ /* legacy */
881
+ header1: createLegacyTypographyTypeConfig(1.1, 40, 56),
882
+ header2: createLegacyTypographyTypeConfig(1.2, 32, 48, 1.1),
883
+ header3: createLegacyTypographyTypeConfig(1.2, 24, 40, 1.1),
884
+ header4: createLegacyTypographyTypeConfig(1.3, 18, 24, 1.2),
885
+ header5: createLegacyTypographyTypeConfig(1.3, 18, 18),
886
+ /* latest */
887
+ 'heading-xxl': createTypographyConfig(56, 1.1),
888
+ 'heading-xl': createTypographyConfig(48, 1.1),
889
+ 'heading-l': createTypographyConfig(40, 1.1),
890
+ 'heading-m': createTypographyConfig(32, 1.2),
891
+ 'heading-s': createTypographyConfig(24, 1.2),
892
+ 'heading-xs': createTypographyConfig(18, 1.3),
893
+ 'heading-xxs': createTypographyConfig(16, 1.3)
876
894
  }
877
895
  },
878
- 'headers-impact': {
896
+ get 'headers-impact'() {
897
+ throw new Error('typography.types.headers-impact is deprecated, use typography.type.headings-impact instead');
898
+ },
899
+ 'headings-impact': {
879
900
  fontFamily: {
880
901
  native: {
881
902
  regular: 'Transducer-Black',
@@ -889,14 +910,24 @@ const typography = {
889
910
  fontWeight: 900,
890
911
  fontStyle: 'normal',
891
912
  configs: {
892
- 'header-impact-xxl': createTypographyTypeConfig(1.2, 56, 56),
893
- 'header-impact-xl': createTypographyTypeConfig(1.2, 48, 48),
894
- 'header-impact-l': createTypographyTypeConfig(1.2, 40, 40),
895
- 'header-impact-m': createTypographyTypeConfig(1.2, 32, 32),
896
- 'header-impact-s': createTypographyTypeConfig(1.2, 24, 24),
897
- 'header-impact-xs': createTypographyTypeConfig(1.2, 18, 18),
898
- 'header-impact-xxs': createTypographyTypeConfig(1.2, 16, 16),
899
- 'header-impact-xxxs': createTypographyTypeConfig(1.2, 14, 14)
913
+ /* legacy */
914
+ 'header-impact-xxl': createLegacyTypographyTypeConfig(1.2, 56, 56),
915
+ 'header-impact-xl': createLegacyTypographyTypeConfig(1.2, 48, 48),
916
+ 'header-impact-l': createLegacyTypographyTypeConfig(1.2, 40, 40),
917
+ 'header-impact-m': createLegacyTypographyTypeConfig(1.2, 32, 32),
918
+ 'header-impact-s': createLegacyTypographyTypeConfig(1.2, 24, 24),
919
+ 'header-impact-xs': createLegacyTypographyTypeConfig(1.2, 18, 18),
920
+ 'header-impact-xxs': createLegacyTypographyTypeConfig(1.2, 16, 16),
921
+ 'header-impact-xxxs': createLegacyTypographyTypeConfig(1.2, 14, 14),
922
+ /* latest */
923
+ 'heading-impact-xxl': createTypographyConfig(56, 1.2),
924
+ 'heading-impact-xl': createTypographyConfig(48, 1.2),
925
+ 'heading-impact-l': createTypographyConfig(40, 1.2),
926
+ 'heading-impact-m': createTypographyConfig(32, 1.2),
927
+ 'heading-impact-s': createTypographyConfig(24, 1.2),
928
+ 'heading-impact-xs': createTypographyConfig(18, 1.2),
929
+ 'heading-impact-xxs': createTypographyConfig(16, 1.2),
930
+ 'heading-impact-xxxs': createTypographyConfig(14, 1.2)
900
931
  }
901
932
  },
902
933
  bodies: {
@@ -919,11 +950,18 @@ const typography = {
919
950
  bold: 'normal'
920
951
  },
921
952
  configs: {
922
- 'body-large': createTypographyTypeConfig(1.4, 18, 24),
923
- 'body-medium': createTypographyTypeConfig(1.4, 18, 18),
924
- body: createTypographyTypeConfig(1.4, 16, 16),
925
- 'body-small': createTypographyTypeConfig(1.4, 14, 14),
926
- 'body-xsmall': createTypographyTypeConfig(1.4, 12, 12)
953
+ /* legacy */
954
+ 'body-large': createLegacyTypographyTypeConfig(1.4, 18, 24),
955
+ 'body-medium': createLegacyTypographyTypeConfig(1.4, 18, 18),
956
+ body: createLegacyTypographyTypeConfig(1.4, 16, 16),
957
+ 'body-small': createLegacyTypographyTypeConfig(1.4, 14, 14),
958
+ 'body-xsmall': createLegacyTypographyTypeConfig(1.4, 12, 12),
959
+ /* latest */
960
+ 'body-xl': createTypographyConfig(24, 1.4),
961
+ 'body-l': createTypographyConfig(18, 1.4),
962
+ 'body-m': createTypographyConfig(16, 1.4),
963
+ 'body-s': createTypographyConfig(14, 1.4),
964
+ 'body-xs': createTypographyConfig(12, 1.4)
927
965
  }
928
966
  }
929
967
  },
@@ -1883,11 +1921,11 @@ function getTypographyColorValue(colorName) {
1883
1921
  return colorName;
1884
1922
  }
1885
1923
 
1886
- const isTypeHeader = type => type.startsWith('header');
1887
- const isTypeHeaderImpact = type => type.startsWith('header-impact');
1924
+ const isTypeHeadings = type => type.startsWith('header') || type.startsWith('heading');
1925
+ const isTypeHeadingsImpact = type => type.startsWith('heading-impact') || type.startsWith('header-impact');
1888
1926
  const getTypographyFamily = type => {
1889
- if (isTypeHeaderImpact(type)) return 'headers-impact';
1890
- if (isTypeHeader(type)) return 'headers';
1927
+ if (isTypeHeadingsImpact(type)) return 'headings-impact';
1928
+ if (isTypeHeadings(type)) return 'headings';
1891
1929
  return 'bodies';
1892
1930
  };
1893
1931
  const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) => {
@@ -1953,8 +1991,8 @@ function Typography({
1953
1991
  const baseOrDefaultToBody = hasTypographyAncestor ? type.base : type.base ?? 'body';
1954
1992
  const typographyFamily = getTypographyFamilyWithAncestorValue(baseOrDefaultToBody, typographyFamilyInContext);
1955
1993
 
1956
- // force bold for headers, default to regular for bodies
1957
- const nonNullableVariant = variant ?? (typographyFamily === 'headers' || typographyFamily === 'headers-impact' ? 'bold' : 'regular');
1994
+ // force bold for headings, default to regular for bodies
1995
+ const nonNullableVariant = variant ?? (typographyFamily === 'headings' || typographyFamily === 'headings-impact' ? 'bold' : 'regular');
1958
1996
  const fontSizeForNativeBase = createNativeBaseFontSize({
1959
1997
  ...type,
1960
1998
  base: baseOrDefaultToBody
@@ -7349,96 +7387,184 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7349
7387
  },
7350
7388
  fontSizes: {
7351
7389
  baseAndSmall: {
7352
- header1: `${theme.typography.types.headers.configs.header1.baseAndSmall.fontSize}px`,
7353
- header2: `${theme.typography.types.headers.configs.header2.baseAndSmall.fontSize}px`,
7354
- header3: `${theme.typography.types.headers.configs.header3.baseAndSmall.fontSize}px`,
7355
- header4: `${theme.typography.types.headers.configs.header4.baseAndSmall.fontSize}px`,
7356
- header5: `${theme.typography.types.headers.configs.header5.baseAndSmall.fontSize}px`,
7390
+ /* legacy */
7391
+ header1: `${theme.typography.types.headings.configs.header1.baseAndSmall.fontSize}px`,
7392
+ header2: `${theme.typography.types.headings.configs.header2.baseAndSmall.fontSize}px`,
7393
+ header3: `${theme.typography.types.headings.configs.header3.baseAndSmall.fontSize}px`,
7394
+ header4: `${theme.typography.types.headings.configs.header4.baseAndSmall.fontSize}px`,
7395
+ header5: `${theme.typography.types.headings.configs.header5.baseAndSmall.fontSize}px`,
7357
7396
  'body-large': `${theme.typography.types.bodies.configs['body-large'].baseAndSmall.fontSize}px`,
7358
7397
  'body-medium': `${theme.typography.types.bodies.configs['body-medium'].baseAndSmall.fontSize}px`,
7359
7398
  body: `${theme.typography.types.bodies.configs.body.baseAndSmall.fontSize}px`,
7360
7399
  'body-small': `${theme.typography.types.bodies.configs['body-small'].baseAndSmall.fontSize}px`,
7361
7400
  'body-xsmall': `${theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.fontSize}px`,
7362
- 'header-impact-xxl': `${theme.typography.types['headers-impact'].configs['header-impact-xxl'].baseAndSmall.fontSize}px`,
7363
- 'header-impact-xl': `${theme.typography.types['headers-impact'].configs['header-impact-xl'].baseAndSmall.fontSize}px`,
7364
- 'header-impact-l': `${theme.typography.types['headers-impact'].configs['header-impact-l'].baseAndSmall.fontSize}px`,
7365
- 'header-impact-m': `${theme.typography.types['headers-impact'].configs['header-impact-m'].baseAndSmall.fontSize}px`,
7366
- 'header-impact-s': `${theme.typography.types['headers-impact'].configs['header-impact-s'].baseAndSmall.fontSize}px`,
7367
- 'header-impact-xs': `${theme.typography.types['headers-impact'].configs['header-impact-xs'].baseAndSmall.fontSize}px`,
7368
- 'header-impact-xxs': `${theme.typography.types['headers-impact'].configs['header-impact-xxs'].baseAndSmall.fontSize}px`,
7369
- 'header-impact-xxxs': `${theme.typography.types['headers-impact'].configs['header-impact-xxxs'].baseAndSmall.fontSize}px`
7401
+ 'header-impact-xxl': `${theme.typography.types['headings-impact'].configs['header-impact-xxl'].baseAndSmall.fontSize}px`,
7402
+ 'header-impact-xl': `${theme.typography.types['headings-impact'].configs['header-impact-xl'].baseAndSmall.fontSize}px`,
7403
+ 'header-impact-l': `${theme.typography.types['headings-impact'].configs['header-impact-l'].baseAndSmall.fontSize}px`,
7404
+ 'header-impact-m': `${theme.typography.types['headings-impact'].configs['header-impact-m'].baseAndSmall.fontSize}px`,
7405
+ 'header-impact-s': `${theme.typography.types['headings-impact'].configs['header-impact-s'].baseAndSmall.fontSize}px`,
7406
+ 'header-impact-xs': `${theme.typography.types['headings-impact'].configs['header-impact-xs'].baseAndSmall.fontSize}px`,
7407
+ 'header-impact-xxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxs'].baseAndSmall.fontSize}px`,
7408
+ 'header-impact-xxxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxxs'].baseAndSmall.fontSize}px`,
7409
+ /* latest */
7410
+ 'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.fontSize}px`,
7411
+ 'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.fontSize}px`,
7412
+ 'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.fontSize}px`,
7413
+ 'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.fontSize}px`,
7414
+ 'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.fontSize}px`,
7415
+ 'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.fontSize}px`,
7416
+ 'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.fontSize}px`,
7417
+ 'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.fontSize}px`,
7418
+ 'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.fontSize}px`,
7419
+ 'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.fontSize}px`,
7420
+ 'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.fontSize}px`,
7421
+ 'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.fontSize}px`,
7422
+ 'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.fontSize}px`,
7423
+ 'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.fontSize}px`,
7424
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.fontSize}px`,
7425
+ 'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.fontSize}px`,
7426
+ 'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.fontSize}px`,
7427
+ 'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.fontSize}px`,
7428
+ 'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.fontSize}px`,
7429
+ 'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.fontSize}px`
7370
7430
  },
7371
7431
  mediumAndWide: {
7372
- header1: `${theme.typography.types.headers.configs.header1.mediumAndWide.fontSize}px`,
7373
- header2: `${theme.typography.types.headers.configs.header2.mediumAndWide.fontSize}px`,
7374
- header3: `${theme.typography.types.headers.configs.header3.mediumAndWide.fontSize}px`,
7375
- header4: `${theme.typography.types.headers.configs.header4.mediumAndWide.fontSize}px`,
7376
- header5: `${theme.typography.types.headers.configs.header5.mediumAndWide.fontSize}px`,
7432
+ /* legacy */
7433
+ header1: `${theme.typography.types.headings.configs.header1.mediumAndWide.fontSize}px`,
7434
+ header2: `${theme.typography.types.headings.configs.header2.mediumAndWide.fontSize}px`,
7435
+ header3: `${theme.typography.types.headings.configs.header3.mediumAndWide.fontSize}px`,
7436
+ header4: `${theme.typography.types.headings.configs.header4.mediumAndWide.fontSize}px`,
7437
+ header5: `${theme.typography.types.headings.configs.header5.mediumAndWide.fontSize}px`,
7377
7438
  'body-large': `${theme.typography.types.bodies.configs['body-large'].mediumAndWide.fontSize}px`,
7378
7439
  'body-medium': `${theme.typography.types.bodies.configs['body-medium'].mediumAndWide.fontSize}px`,
7379
7440
  body: `${theme.typography.types.bodies.configs.body.mediumAndWide.fontSize}px`,
7380
7441
  'body-small': `${theme.typography.types.bodies.configs['body-small'].mediumAndWide.fontSize}px`,
7381
7442
  'body-xsmall': `${theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.fontSize}px`,
7382
- 'header-impact-xxl': `${theme.typography.types['headers-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize}px`,
7383
- 'header-impact-xl': `${theme.typography.types['headers-impact'].configs['header-impact-xl'].mediumAndWide.fontSize}px`,
7384
- 'header-impact-l': `${theme.typography.types['headers-impact'].configs['header-impact-l'].mediumAndWide.fontSize}px`,
7385
- 'header-impact-m': `${theme.typography.types['headers-impact'].configs['header-impact-m'].mediumAndWide.fontSize}px`,
7386
- 'header-impact-s': `${theme.typography.types['headers-impact'].configs['header-impact-s'].mediumAndWide.fontSize}px`,
7387
- 'header-impact-xs': `${theme.typography.types['headers-impact'].configs['header-impact-xs'].mediumAndWide.fontSize}px`,
7388
- 'header-impact-xxs': `${theme.typography.types['headers-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize}px`,
7389
- 'header-impact-xxxs': `${theme.typography.types['headers-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize}px`
7443
+ 'header-impact-xxl': `${theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.fontSize}px`,
7444
+ 'header-impact-xl': `${theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.fontSize}px`,
7445
+ 'header-impact-l': `${theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.fontSize}px`,
7446
+ 'header-impact-m': `${theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.fontSize}px`,
7447
+ 'header-impact-s': `${theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.fontSize}px`,
7448
+ 'header-impact-xs': `${theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.fontSize}px`,
7449
+ 'header-impact-xxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.fontSize}px`,
7450
+ 'header-impact-xxxs': `${theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.fontSize}px`,
7451
+ /* latest */
7452
+ 'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.fontSize}px`,
7453
+ 'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.fontSize}px`,
7454
+ 'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.fontSize}px`,
7455
+ 'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.fontSize}px`,
7456
+ 'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.fontSize}px`,
7457
+ 'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.fontSize}px`,
7458
+ 'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.fontSize}px`,
7459
+ 'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.fontSize}px`,
7460
+ 'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.fontSize}px`,
7461
+ 'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.fontSize}px`,
7462
+ 'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.fontSize}px`,
7463
+ 'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.fontSize}px`,
7464
+ 'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.fontSize}px`,
7465
+ 'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.fontSize}px`,
7466
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.fontSize}px`,
7467
+ 'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.fontSize}px`,
7468
+ 'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.fontSize}px`,
7469
+ 'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.fontSize}px`,
7470
+ 'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.fontSize}px`,
7471
+ 'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.fontSize}px`
7390
7472
  }
7391
7473
  },
7392
7474
  lineHeights: {
7393
7475
  baseAndSmall: {
7394
- header1: theme.typography.types.headers.configs.header1.baseAndSmall.lineHeight,
7395
- header2: theme.typography.types.headers.configs.header2.baseAndSmall.lineHeight,
7396
- header3: theme.typography.types.headers.configs.header3.baseAndSmall.lineHeight,
7397
- header4: theme.typography.types.headers.configs.header4.baseAndSmall.lineHeight,
7398
- header5: theme.typography.types.headers.configs.header5.baseAndSmall.lineHeight,
7476
+ /* legacy */
7477
+ header1: theme.typography.types.headings.configs.header1.baseAndSmall.lineHeight,
7478
+ header2: theme.typography.types.headings.configs.header2.baseAndSmall.lineHeight,
7479
+ header3: theme.typography.types.headings.configs.header3.baseAndSmall.lineHeight,
7480
+ header4: theme.typography.types.headings.configs.header4.baseAndSmall.lineHeight,
7481
+ header5: theme.typography.types.headings.configs.header5.baseAndSmall.lineHeight,
7399
7482
  'body-large': theme.typography.types.bodies.configs['body-large'].baseAndSmall.lineHeight,
7400
7483
  'body-medium': theme.typography.types.bodies.configs['body-medium'].baseAndSmall.lineHeight,
7401
7484
  body: theme.typography.types.bodies.configs.body.baseAndSmall.lineHeight,
7402
7485
  'body-small': theme.typography.types.bodies.configs['body-small'].baseAndSmall.lineHeight,
7403
7486
  'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].baseAndSmall.lineHeight,
7404
- 'header-impact-xxl': theme.typography.types['headers-impact'].configs['header-impact-xxl'].baseAndSmall.lineHeight,
7405
- 'header-impact-xl': theme.typography.types['headers-impact'].configs['header-impact-xl'].baseAndSmall.lineHeight,
7406
- 'header-impact-l': theme.typography.types['headers-impact'].configs['header-impact-l'].baseAndSmall.lineHeight,
7407
- 'header-impact-m': theme.typography.types['headers-impact'].configs['header-impact-m'].baseAndSmall.lineHeight,
7408
- 'header-impact-s': theme.typography.types['headers-impact'].configs['header-impact-s'].baseAndSmall.lineHeight,
7409
- 'header-impact-xs': theme.typography.types['headers-impact'].configs['header-impact-xs'].baseAndSmall.lineHeight,
7410
- 'header-impact-xxs': theme.typography.types['headers-impact'].configs['header-impact-xxs'].baseAndSmall.lineHeight,
7411
- 'header-impact-xxxs': theme.typography.types['headers-impact'].configs['header-impact-xxxs'].baseAndSmall.lineHeight
7487
+ 'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].baseAndSmall.lineHeight,
7488
+ 'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].baseAndSmall.lineHeight,
7489
+ 'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].baseAndSmall.lineHeight,
7490
+ 'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].baseAndSmall.lineHeight,
7491
+ 'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].baseAndSmall.lineHeight,
7492
+ 'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].baseAndSmall.lineHeight,
7493
+ 'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].baseAndSmall.lineHeight,
7494
+ 'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].baseAndSmall.lineHeight,
7495
+ /* latest */
7496
+ 'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].baseAndSmall.lineHeight}px`,
7497
+ 'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].baseAndSmall.lineHeight}px`,
7498
+ 'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].baseAndSmall.lineHeight}px`,
7499
+ 'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].baseAndSmall.lineHeight}px`,
7500
+ 'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].baseAndSmall.lineHeight}px`,
7501
+ 'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].baseAndSmall.lineHeight}px`,
7502
+ 'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].baseAndSmall.lineHeight}px`,
7503
+ 'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].baseAndSmall.lineHeight}px`,
7504
+ 'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].baseAndSmall.lineHeight}px`,
7505
+ 'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].baseAndSmall.lineHeight}px`,
7506
+ 'heading-l': `${theme.typography.types.headings.configs['heading-l'].baseAndSmall.lineHeight}px`,
7507
+ 'heading-m': `${theme.typography.types.headings.configs['heading-m'].baseAndSmall.lineHeight}px`,
7508
+ 'heading-s': `${theme.typography.types.headings.configs['heading-s'].baseAndSmall.lineHeight}px`,
7509
+ 'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].baseAndSmall.lineHeight}px`,
7510
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].baseAndSmall.lineHeight}px`,
7511
+ 'body-xl': `${theme.typography.types.bodies.configs['body-xl'].baseAndSmall.lineHeight}px`,
7512
+ 'body-l': `${theme.typography.types.bodies.configs['body-l'].baseAndSmall.lineHeight}px`,
7513
+ 'body-m': `${theme.typography.types.bodies.configs['body-m'].baseAndSmall.lineHeight}px`,
7514
+ 'body-s': `${theme.typography.types.bodies.configs['body-s'].baseAndSmall.lineHeight}px`,
7515
+ 'body-xs': `${theme.typography.types.bodies.configs['body-xs'].baseAndSmall.lineHeight}px`
7412
7516
  },
7413
7517
  mediumAndWide: {
7414
- header1: theme.typography.types.headers.configs.header1.mediumAndWide.lineHeight,
7415
- header2: theme.typography.types.headers.configs.header2.mediumAndWide.lineHeight,
7416
- header3: theme.typography.types.headers.configs.header3.mediumAndWide.lineHeight,
7417
- header4: theme.typography.types.headers.configs.header4.mediumAndWide.lineHeight,
7418
- header5: theme.typography.types.headers.configs.header5.mediumAndWide.lineHeight,
7518
+ /* legacy */
7519
+ header1: theme.typography.types.headings.configs.header1.mediumAndWide.lineHeight,
7520
+ header2: theme.typography.types.headings.configs.header2.mediumAndWide.lineHeight,
7521
+ header3: theme.typography.types.headings.configs.header3.mediumAndWide.lineHeight,
7522
+ header4: theme.typography.types.headings.configs.header4.mediumAndWide.lineHeight,
7523
+ header5: theme.typography.types.headings.configs.header5.mediumAndWide.lineHeight,
7419
7524
  'body-large': theme.typography.types.bodies.configs['body-large'].mediumAndWide.lineHeight,
7420
7525
  'body-medium': theme.typography.types.bodies.configs['body-medium'].mediumAndWide.lineHeight,
7421
7526
  body: theme.typography.types.bodies.configs.body.mediumAndWide.lineHeight,
7422
7527
  'body-small': theme.typography.types.bodies.configs['body-small'].mediumAndWide.lineHeight,
7423
7528
  'body-xsmall': theme.typography.types.bodies.configs['body-xsmall'].mediumAndWide.lineHeight,
7424
- 'header-impact-xxl': theme.typography.types['headers-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
7425
- 'header-impact-xl': theme.typography.types['headers-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
7426
- 'header-impact-l': theme.typography.types['headers-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
7427
- 'header-impact-m': theme.typography.types['headers-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
7428
- 'header-impact-s': theme.typography.types['headers-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
7429
- 'header-impact-xs': theme.typography.types['headers-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
7430
- 'header-impact-xxs': theme.typography.types['headers-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
7431
- 'header-impact-xxxs': theme.typography.types['headers-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight
7529
+ 'header-impact-xxl': theme.typography.types['headings-impact'].configs['header-impact-xxl'].mediumAndWide.lineHeight,
7530
+ 'header-impact-xl': theme.typography.types['headings-impact'].configs['header-impact-xl'].mediumAndWide.lineHeight,
7531
+ 'header-impact-l': theme.typography.types['headings-impact'].configs['header-impact-l'].mediumAndWide.lineHeight,
7532
+ 'header-impact-m': theme.typography.types['headings-impact'].configs['header-impact-m'].mediumAndWide.lineHeight,
7533
+ 'header-impact-s': theme.typography.types['headings-impact'].configs['header-impact-s'].mediumAndWide.lineHeight,
7534
+ 'header-impact-xs': theme.typography.types['headings-impact'].configs['header-impact-xs'].mediumAndWide.lineHeight,
7535
+ 'header-impact-xxs': theme.typography.types['headings-impact'].configs['header-impact-xxs'].mediumAndWide.lineHeight,
7536
+ 'header-impact-xxxs': theme.typography.types['headings-impact'].configs['header-impact-xxxs'].mediumAndWide.lineHeight,
7537
+ /* latest */
7538
+ 'heading-impact-xxl': `${theme.typography.types['headings-impact'].configs['heading-impact-xxl'].mediumAndWide.lineHeight}px`,
7539
+ 'heading-impact-xl': `${theme.typography.types['headings-impact'].configs['heading-impact-xl'].mediumAndWide.lineHeight}px`,
7540
+ 'heading-impact-l': `${theme.typography.types['headings-impact'].configs['heading-impact-l'].mediumAndWide.lineHeight}px`,
7541
+ 'heading-impact-m': `${theme.typography.types['headings-impact'].configs['heading-impact-m'].mediumAndWide.lineHeight}px`,
7542
+ 'heading-impact-s': `${theme.typography.types['headings-impact'].configs['heading-impact-s'].mediumAndWide.lineHeight}px`,
7543
+ 'heading-impact-xs': `${theme.typography.types['headings-impact'].configs['heading-impact-xs'].mediumAndWide.lineHeight}px`,
7544
+ 'heading-impact-xxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxs'].mediumAndWide.lineHeight}px`,
7545
+ 'heading-impact-xxxs': `${theme.typography.types['headings-impact'].configs['heading-impact-xxxs'].mediumAndWide.lineHeight}px`,
7546
+ 'heading-xxl': `${theme.typography.types.headings.configs['heading-xxl'].mediumAndWide.lineHeight}px`,
7547
+ 'heading-xl': `${theme.typography.types.headings.configs['heading-xl'].mediumAndWide.lineHeight}px`,
7548
+ 'heading-l': `${theme.typography.types.headings.configs['heading-l'].mediumAndWide.lineHeight}px`,
7549
+ 'heading-m': `${theme.typography.types.headings.configs['heading-m'].mediumAndWide.lineHeight}px`,
7550
+ 'heading-s': `${theme.typography.types.headings.configs['heading-s'].mediumAndWide.lineHeight}px`,
7551
+ 'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].mediumAndWide.lineHeight}px`,
7552
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].mediumAndWide.lineHeight}px`,
7553
+ 'body-xl': `${theme.typography.types.bodies.configs['body-xl'].mediumAndWide.lineHeight}px`,
7554
+ 'body-l': `${theme.typography.types.bodies.configs['body-l'].mediumAndWide.lineHeight}px`,
7555
+ 'body-m': `${theme.typography.types.bodies.configs['body-m'].mediumAndWide.lineHeight}px`,
7556
+ 'body-s': `${theme.typography.types.bodies.configs['body-s'].mediumAndWide.lineHeight}px`,
7557
+ 'body-xs': `${theme.typography.types.bodies.configs['body-xs'].mediumAndWide.lineHeight}px`
7432
7558
  }
7433
7559
  },
7434
7560
  fontWeights: {
7435
- headers: {
7436
- regular: theme.typography.types.headers.fontWeight.regular,
7437
- bold: theme.typography.types.headers.fontWeight.bold
7561
+ headings: {
7562
+ regular: theme.typography.types.headings.fontWeight.regular,
7563
+ bold: theme.typography.types.headings.fontWeight.bold
7438
7564
  },
7439
- 'headers-impact': {
7440
- regular: theme.typography.types['headers-impact'].fontWeight,
7441
- bold: theme.typography.types['headers-impact'].fontWeight
7565
+ 'headings-impact': {
7566
+ regular: theme.typography.types['headings-impact'].fontWeight,
7567
+ bold: theme.typography.types['headings-impact'].fontWeight
7442
7568
  },
7443
7569
  bodies: {
7444
7570
  regular: theme.typography.types.bodies.fontWeight.regular,
@@ -7447,8 +7573,8 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
7447
7573
  }
7448
7574
  },
7449
7575
  fonts: {
7450
- headers: theme.typography.types.headers.fontFamily.web,
7451
- 'headers-impact': theme.typography.types['headers-impact'].fontFamily.web,
7576
+ headings: theme.typography.types.headings.fontFamily.web,
7577
+ 'headings-impact': theme.typography.types['headings-impact'].fontFamily.web,
7452
7578
  bodies: theme.typography.types.bodies.fontFamily.web
7453
7579
  },
7454
7580
  shadows: {