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