@hero-design/rn 8.97.0 → 8.98.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.
@@ -643,6 +643,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
643
643
  }
644
644
  themeButtonVariant="text-primary"
645
645
  themeIntent="body"
646
+ themeIsCompact={false}
646
647
  themeIsPressed={false}
647
648
  themeTypeface="neutral"
648
649
  themeVariant="regular-bold"
@@ -1326,6 +1327,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
1326
1327
  }
1327
1328
  themeButtonVariant="text-primary"
1328
1329
  themeIntent="body"
1330
+ themeIsCompact={false}
1329
1331
  themeIsPressed={false}
1330
1332
  themeTypeface="neutral"
1331
1333
  themeVariant="regular-bold"
@@ -1516,6 +1516,7 @@ exports[`rendering allows custom renderer 1`] = `
1516
1516
  }
1517
1517
  themeButtonVariant="text-primary"
1518
1518
  themeIntent="body"
1519
+ themeIsCompact={false}
1519
1520
  themeIsPressed={false}
1520
1521
  themeTypeface="neutral"
1521
1522
  themeVariant="regular-bold"
@@ -3259,6 +3260,7 @@ exports[`rendering renders correct floating bottom sheet variant 1`] = `
3259
3260
  }
3260
3261
  themeButtonVariant="text-primary"
3261
3262
  themeIntent="body"
3263
+ themeIsCompact={false}
3262
3264
  themeIsPressed={false}
3263
3265
  themeTypeface="neutral"
3264
3266
  themeVariant="regular-bold"
@@ -5325,6 +5327,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
5325
5327
  }
5326
5328
  themeButtonVariant="text-primary"
5327
5329
  themeIntent="body"
5330
+ themeIsCompact={false}
5328
5331
  themeIsPressed={false}
5329
5332
  themeTypeface="neutral"
5330
5333
  themeVariant="regular-bold"
@@ -6983,6 +6986,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
6983
6986
  }
6984
6987
  themeButtonVariant="text-primary"
6985
6988
  themeIntent="body"
6989
+ themeIsCompact={false}
6986
6990
  themeIsPressed={false}
6987
6991
  themeTypeface="neutral"
6988
6992
  themeVariant="regular-bold"
@@ -8293,6 +8297,7 @@ exports[`rendering renders correctly when receives sections 2`] = `
8293
8297
  }
8294
8298
  themeButtonVariant="text-primary"
8295
8299
  themeIntent="body"
8300
+ themeIsCompact={false}
8296
8301
  themeIsPressed={false}
8297
8302
  themeTypeface="neutral"
8298
8303
  themeVariant="regular-bold"
@@ -949,6 +949,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
949
949
  }
950
950
  themeButtonVariant="text-primary"
951
951
  themeIntent="body"
952
+ themeIsCompact={false}
952
953
  themeIsPressed={false}
953
954
  themeTypeface="neutral"
954
955
  themeVariant="regular-bold"
@@ -309,7 +309,10 @@ exports[`theme returns correct theme object 1`] = `
309
309
  "lineHeights": {
310
310
  "buttonText": undefined,
311
311
  "compactButtonText": undefined,
312
- "titleOfTextVariant": 22,
312
+ "titleOfTextVariant": {
313
+ "compact": 16,
314
+ "default": 22,
315
+ },
313
316
  "utilityButtonText": undefined,
314
317
  },
315
318
  "radii": {
@@ -79,7 +79,10 @@ const getButtonTheme = (theme: GlobalTheme) => {
79
79
  };
80
80
 
81
81
  const lineHeights = {
82
- titleOfTextVariant: theme.lineHeights.medium,
82
+ titleOfTextVariant: {
83
+ default: theme.lineHeights.medium,
84
+ compact: theme.lineHeights.small,
85
+ },
83
86
  buttonText: Platform.select({
84
87
  android: theme.lineHeights.medium + theme.space.xxsmall,
85
88
  }),