@hero-design/rn 8.12.3 → 8.12.4

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 (85) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +47 -15
  3. package/lib/index.js +47 -15
  4. package/package.json +5 -5
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
  8. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  9. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +21 -4
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +189 -36
  11. package/src/components/Avatar/StyledAvatar.tsx +11 -4
  12. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +21 -4
  13. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +42 -8
  14. package/src/components/Badge/StyledBadge.tsx +4 -2
  15. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +132 -42
  16. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
  17. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  18. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  19. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  20. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +10 -0
  21. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
  22. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
  23. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
  24. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
  25. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
  26. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
  27. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
  28. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
  29. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  30. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -0
  31. package/src/components/Empty/StyledEmpty.tsx +14 -13
  32. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +76 -20
  33. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +56 -16
  34. package/src/components/FAB/StyledFAB.tsx +3 -2
  35. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
  36. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +22 -8
  37. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
  38. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +53 -8
  39. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
  40. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
  41. package/src/components/PinInput/StyledPinInput.tsx +6 -3
  42. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +93 -18
  43. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +73 -13
  44. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
  45. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
  46. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  48. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +23 -1
  49. package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +38 -0
  53. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -0
  56. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
  57. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  58. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
  59. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  60. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -7
  61. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +22 -7
  62. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +27 -7
  63. package/src/components/Tag/StyledTag.tsx +3 -2
  64. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +167 -62
  65. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
  66. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
  67. package/src/components/TextInput/index.tsx +2 -0
  68. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -0
  69. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -0
  70. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
  71. package/src/components/Typography/Text/index.tsx +2 -0
  72. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -0
  73. package/src/theme/components/avatar.ts +11 -1
  74. package/src/theme/components/badge.ts +5 -1
  75. package/src/theme/components/pinInput.ts +14 -1
  76. package/types/components/Avatar/StyledAvatar.d.ts +4 -5
  77. package/types/components/Badge/StyledBadge.d.ts +3 -5
  78. package/types/components/Empty/StyledEmpty.d.ts +5 -9
  79. package/types/components/FAB/StyledFAB.d.ts +3 -5
  80. package/types/components/PinInput/StyledPinInput.d.ts +5 -9
  81. package/types/components/Tag/StyledTag.d.ts +3 -5
  82. package/types/components/Typography/Text/index.d.ts +1 -1
  83. package/types/theme/components/avatar.d.ts +10 -0
  84. package/types/theme/components/badge.d.ts +3 -0
  85. package/types/theme/components/pinInput.d.ts +4 -0
@@ -1,9 +1,9 @@
1
- @hero-design/rn:build: cache hit, replaying output eea1c2ee08c7c3cf
1
+ @hero-design/rn:build: cache hit, replaying output c1ce0a6dbcd003d9
2
2
  @hero-design/rn:build: $ yarn build:js && yarn build:types
3
3
  @hero-design/rn:build: $ rollup -c
4
4
  @hero-design/rn:build: 
5
5
  @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
6
  @hero-design/rn:build: (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
7
7
  @hero-design/rn:build: (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
8
- @hero-design/rn:build: created lib/index.js, es/index.js in 31.1s
8
+ @hero-design/rn:build: created lib/index.js, es/index.js in 26.9s
9
9
  @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -1723,6 +1723,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1723
1723
  xxxxlarge: theme.space.xlarge * 1.5,
1724
1724
  xxxxxlarge: theme.space.xxlarge * 1.5
1725
1725
  };
1726
+ var lineHeights = {
1727
+ small: theme.lineHeights.large,
1728
+ medium: theme.lineHeights.xlarge,
1729
+ large: theme.lineHeights.xxlarge,
1730
+ xlarge: theme.lineHeights.xxxlarge,
1731
+ xxlarge: theme.lineHeights.medium * 2,
1732
+ xxxlarge: theme.lineHeights.large * 1.5,
1733
+ xxxxlarge: theme.lineHeights.xlarge * 1.5,
1734
+ xxxxxlarge: theme.lineHeights.xxlarge * 1.5
1735
+ };
1726
1736
  var radii = {
1727
1737
  rounded: theme.radii.rounded
1728
1738
  };
@@ -1731,7 +1741,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1731
1741
  sizes: sizes,
1732
1742
  radii: radii,
1733
1743
  fonts: fonts,
1734
- fontSizes: fontSizes
1744
+ fontSizes: fontSizes,
1745
+ lineHeights: lineHeights
1735
1746
  };
1736
1747
  };
1737
1748
 
@@ -1751,6 +1762,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1751
1762
  var fontSizes = {
1752
1763
  "default": theme.fontSizes.small
1753
1764
  };
1765
+ var lineHeights = {
1766
+ "default": theme.lineHeights.small
1767
+ };
1754
1768
  var sizes = {
1755
1769
  height: theme.fontSizes.small + theme.sizes.small,
1756
1770
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -1767,7 +1781,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1767
1781
  fonts: fonts,
1768
1782
  fontSizes: fontSizes,
1769
1783
  sizes: sizes,
1770
- space: space
1784
+ space: space,
1785
+ lineHeights: lineHeights
1771
1786
  };
1772
1787
  };
1773
1788
 
@@ -2337,6 +2352,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2337
2352
  cellText: theme.fontSizes.xxxxlarge,
2338
2353
  errorMessage: theme.fontSizes.small
2339
2354
  };
2355
+ var lineHeights = {
2356
+ cellText: theme.lineHeights.xxxxlarge,
2357
+ errorMessage: theme.fontSizes.small
2358
+ };
2340
2359
  var sizes = {
2341
2360
  cellWidth: theme.sizes.xxlarge,
2342
2361
  cellHeight: theme.sizes.xxxlarge,
@@ -2352,6 +2371,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2352
2371
  };
2353
2372
  return {
2354
2373
  borderWidths: borderWidths,
2374
+ lineHeights: lineHeights,
2355
2375
  colors: colors,
2356
2376
  fonts: fonts,
2357
2377
  fontSizes: fontSizes,
@@ -5958,7 +5978,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
5958
5978
  });
5959
5979
  });
5960
5980
 
5961
- var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
5981
+ var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
5962
5982
  var Text = function Text(_ref) {
5963
5983
  var children = _ref.children,
5964
5984
  _ref$fontSize = _ref.fontSize,
@@ -5969,12 +5989,15 @@ var Text = function Text(_ref) {
5969
5989
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5970
5990
  _ref$typeface = _ref.typeface,
5971
5991
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
5992
+ _ref$allowFontScaling = _ref.allowFontScaling,
5993
+ allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
5972
5994
  nativeProps = _objectWithoutProperties(_ref, _excluded$p);
5973
5995
  return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
5974
5996
  themeFontSize: fontSize,
5975
5997
  themeFontWeight: fontWeight,
5976
5998
  themeIntent: intent,
5977
- themeTypeface: typeface
5999
+ themeTypeface: typeface,
6000
+ allowFontScaling: allowFontScaling
5978
6001
  }), children);
5979
6002
  };
5980
6003
 
@@ -6808,12 +6831,15 @@ var StyledTextWrapper$1 = index$a(View)(function () {
6808
6831
  height: '100%'
6809
6832
  };
6810
6833
  });
6811
- var StyledText$2 = index$a(Text$1)(function (_ref2) {
6834
+ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
6812
6835
  var themeSize = _ref2.themeSize,
6813
6836
  theme = _ref2.theme;
6814
6837
  return {
6815
6838
  fontFamily: theme.__hd__.avatar.fonts["default"],
6816
6839
  fontSize: theme.__hd__.avatar.fontSizes[themeSize],
6840
+ lineHeight: 0,
6841
+ textAlignVertical: 'center',
6842
+ textAlign: 'center',
6817
6843
  color: theme.__hd__.avatar.colors.text,
6818
6844
  overflow: 'hidden'
6819
6845
  };
@@ -6962,11 +6988,12 @@ var StyledView$2 = index$a(Animated.View)(function (_ref) {
6962
6988
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
6963
6989
  };
6964
6990
  });
6965
- var StyledText$1 = index$a(Text$1)(function (_ref2) {
6991
+ var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
6966
6992
  var theme = _ref2.theme;
6967
6993
  return {
6968
6994
  fontFamily: theme.__hd__.badge.fonts["default"],
6969
6995
  fontSize: theme.__hd__.badge.fontSizes["default"],
6996
+ lineHeight: theme.__hd__.badge.lineHeights["default"],
6970
6997
  color: theme.__hd__.badge.colors.text,
6971
6998
  includeFontPadding: false,
6972
6999
  textAlignVertical: 'center',
@@ -11516,7 +11543,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
11516
11543
  };
11517
11544
  });
11518
11545
 
11519
- var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
11546
+ var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
11520
11547
  var getVariant$1 = function getVariant(_ref) {
11521
11548
  var disabled = _ref.disabled,
11522
11549
  error = _ref.error,
@@ -11562,6 +11589,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11562
11589
  value = _ref2.value,
11563
11590
  defaultValue = _ref2.defaultValue,
11564
11591
  renderInputValue = _ref2.renderInputValue,
11592
+ _ref2$allowFontScalin = _ref2.allowFontScaling,
11593
+ allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11565
11594
  nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
11566
11595
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11567
11596
  var isEmptyValue = displayText.length === 0;
@@ -11650,7 +11679,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
11650
11679
  },
11651
11680
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11652
11681
  // @ts-ignore
11653
- accessibilityLabelledBy: accessibilityLabelledBy
11682
+ accessibilityLabelledBy: accessibilityLabelledBy,
11683
+ allowFontScaling: allowFontScaling
11654
11684
  }, nativeProps), {}, {
11655
11685
  onFocus: function onFocus(event) {
11656
11686
  var _nativeProps$onFocus;
@@ -12187,7 +12217,7 @@ var StyledWrapper$5 = index$a(View)(function (_ref) {
12187
12217
  padding: theme.__hd__.empty.space.wrapperPadding
12188
12218
  };
12189
12219
  });
12190
- var StyledTitle = index$a(Text$1)(function (_ref2) {
12220
+ var StyledTitle = index$a(Typography.Text)(function (_ref2) {
12191
12221
  var theme = _ref2.theme,
12192
12222
  themeVariant = _ref2.themeVariant;
12193
12223
  return {
@@ -12198,7 +12228,7 @@ var StyledTitle = index$a(Text$1)(function (_ref2) {
12198
12228
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
12199
12229
  };
12200
12230
  });
12201
- var StyledDescription = index$a(Text$1)(function (_ref3) {
12231
+ var StyledDescription = index$a(Typography.Text)(function (_ref3) {
12202
12232
  var theme = _ref3.theme,
12203
12233
  themeVariant = _ref3.themeVariant;
12204
12234
  return {
@@ -12255,7 +12285,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
12255
12285
  textAlign: 'center'
12256
12286
  };
12257
12287
  });
12258
- var StyledFABText = index$a(Text$1)(function (_ref3) {
12288
+ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
12259
12289
  var theme = _ref3.theme;
12260
12290
  return {
12261
12291
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -12738,12 +12768,13 @@ var StyledCell = index$a(View)(function (_ref) {
12738
12768
  borderColor: theme.__hd__.pinInput.colors[themeState]
12739
12769
  };
12740
12770
  });
12741
- var StyledCellText = index$a(Text$1)(function (_ref2) {
12771
+ var StyledCellText = index$a(Typography.Text)(function (_ref2) {
12742
12772
  var theme = _ref2.theme,
12743
12773
  themeState = _ref2.themeState;
12744
12774
  return {
12745
12775
  fontFamily: theme.__hd__.pinInput.fonts.cellText,
12746
12776
  fontSize: theme.__hd__.pinInput.fontSizes.cellText,
12777
+ lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
12747
12778
  color: theme.__hd__.pinInput.colors[themeState]
12748
12779
  };
12749
12780
  });
@@ -12794,10 +12825,11 @@ var StyledErrorContainer = index$a(View)(function (_ref7) {
12794
12825
  var theme = _ref7.theme;
12795
12826
  return {
12796
12827
  flexDirection: 'row',
12797
- paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
12828
+ paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
12829
+ alignItems: 'center'
12798
12830
  };
12799
12831
  });
12800
- var StyledErrorMessage = index$a(Text$1)(function (_ref8) {
12832
+ var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
12801
12833
  var theme = _ref8.theme;
12802
12834
  return {
12803
12835
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -14806,7 +14838,7 @@ var StyledView = index$a(View)(function (_ref) {
14806
14838
  backgroundColor: backgroundColor
14807
14839
  };
14808
14840
  });
14809
- var StyledText = index$a(Text$1)(function (_ref3) {
14841
+ var StyledText = index$a(Typography.Text)(function (_ref3) {
14810
14842
  var themeIntent = _ref3.themeIntent,
14811
14843
  themeVariant = _ref3.themeVariant,
14812
14844
  theme = _ref3.theme;
package/lib/index.js CHANGED
@@ -1752,6 +1752,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1752
1752
  xxxxlarge: theme.space.xlarge * 1.5,
1753
1753
  xxxxxlarge: theme.space.xxlarge * 1.5
1754
1754
  };
1755
+ var lineHeights = {
1756
+ small: theme.lineHeights.large,
1757
+ medium: theme.lineHeights.xlarge,
1758
+ large: theme.lineHeights.xxlarge,
1759
+ xlarge: theme.lineHeights.xxxlarge,
1760
+ xxlarge: theme.lineHeights.medium * 2,
1761
+ xxxlarge: theme.lineHeights.large * 1.5,
1762
+ xxxxlarge: theme.lineHeights.xlarge * 1.5,
1763
+ xxxxxlarge: theme.lineHeights.xxlarge * 1.5
1764
+ };
1755
1765
  var radii = {
1756
1766
  rounded: theme.radii.rounded
1757
1767
  };
@@ -1760,7 +1770,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
1760
1770
  sizes: sizes,
1761
1771
  radii: radii,
1762
1772
  fonts: fonts,
1763
- fontSizes: fontSizes
1773
+ fontSizes: fontSizes,
1774
+ lineHeights: lineHeights
1764
1775
  };
1765
1776
  };
1766
1777
 
@@ -1780,6 +1791,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1780
1791
  var fontSizes = {
1781
1792
  "default": theme.fontSizes.small
1782
1793
  };
1794
+ var lineHeights = {
1795
+ "default": theme.lineHeights.small
1796
+ };
1783
1797
  var sizes = {
1784
1798
  height: theme.fontSizes.small + theme.sizes.small,
1785
1799
  minWidth: theme.fontSizes.small + theme.sizes.small,
@@ -1796,7 +1810,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
1796
1810
  fonts: fonts,
1797
1811
  fontSizes: fontSizes,
1798
1812
  sizes: sizes,
1799
- space: space
1813
+ space: space,
1814
+ lineHeights: lineHeights
1800
1815
  };
1801
1816
  };
1802
1817
 
@@ -2366,6 +2381,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2366
2381
  cellText: theme.fontSizes.xxxxlarge,
2367
2382
  errorMessage: theme.fontSizes.small
2368
2383
  };
2384
+ var lineHeights = {
2385
+ cellText: theme.lineHeights.xxxxlarge,
2386
+ errorMessage: theme.fontSizes.small
2387
+ };
2369
2388
  var sizes = {
2370
2389
  cellWidth: theme.sizes.xxlarge,
2371
2390
  cellHeight: theme.sizes.xxxlarge,
@@ -2381,6 +2400,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
2381
2400
  };
2382
2401
  return {
2383
2402
  borderWidths: borderWidths,
2403
+ lineHeights: lineHeights,
2384
2404
  colors: colors,
2385
2405
  fonts: fonts,
2386
2406
  fontSizes: fontSizes,
@@ -5987,7 +6007,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
5987
6007
  });
5988
6008
  });
5989
6009
 
5990
- var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
6010
+ var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
5991
6011
  var Text = function Text(_ref) {
5992
6012
  var children = _ref.children,
5993
6013
  _ref$fontSize = _ref.fontSize,
@@ -5998,12 +6018,15 @@ var Text = function Text(_ref) {
5998
6018
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
5999
6019
  _ref$typeface = _ref.typeface,
6000
6020
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
6021
+ _ref$allowFontScaling = _ref.allowFontScaling,
6022
+ allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6001
6023
  nativeProps = _objectWithoutProperties(_ref, _excluded$p);
6002
6024
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
6003
6025
  themeFontSize: fontSize,
6004
6026
  themeFontWeight: fontWeight,
6005
6027
  themeIntent: intent,
6006
- themeTypeface: typeface
6028
+ themeTypeface: typeface,
6029
+ allowFontScaling: allowFontScaling
6007
6030
  }), children);
6008
6031
  };
6009
6032
 
@@ -6837,12 +6860,15 @@ var StyledTextWrapper$1 = index$a(reactNative.View)(function () {
6837
6860
  height: '100%'
6838
6861
  };
6839
6862
  });
6840
- var StyledText$2 = index$a(reactNative.Text)(function (_ref2) {
6863
+ var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
6841
6864
  var themeSize = _ref2.themeSize,
6842
6865
  theme = _ref2.theme;
6843
6866
  return {
6844
6867
  fontFamily: theme.__hd__.avatar.fonts["default"],
6845
6868
  fontSize: theme.__hd__.avatar.fontSizes[themeSize],
6869
+ lineHeight: 0,
6870
+ textAlignVertical: 'center',
6871
+ textAlign: 'center',
6846
6872
  color: theme.__hd__.avatar.colors.text,
6847
6873
  overflow: 'hidden'
6848
6874
  };
@@ -6991,11 +7017,12 @@ var StyledView$2 = index$a(reactNative.Animated.View)(function (_ref) {
6991
7017
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
6992
7018
  };
6993
7019
  });
6994
- var StyledText$1 = index$a(reactNative.Text)(function (_ref2) {
7020
+ var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
6995
7021
  var theme = _ref2.theme;
6996
7022
  return {
6997
7023
  fontFamily: theme.__hd__.badge.fonts["default"],
6998
7024
  fontSize: theme.__hd__.badge.fontSizes["default"],
7025
+ lineHeight: theme.__hd__.badge.lineHeights["default"],
6999
7026
  color: theme.__hd__.badge.colors.text,
7000
7027
  includeFontPadding: false,
7001
7028
  textAlignVertical: 'center',
@@ -11545,7 +11572,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
11545
11572
  };
11546
11573
  });
11547
11574
 
11548
- var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
11575
+ var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
11549
11576
  var getVariant$1 = function getVariant(_ref) {
11550
11577
  var disabled = _ref.disabled,
11551
11578
  error = _ref.error,
@@ -11591,6 +11618,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11591
11618
  value = _ref2.value,
11592
11619
  defaultValue = _ref2.defaultValue,
11593
11620
  renderInputValue = _ref2.renderInputValue,
11621
+ _ref2$allowFontScalin = _ref2.allowFontScaling,
11622
+ allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
11594
11623
  nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
11595
11624
  var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
11596
11625
  var isEmptyValue = displayText.length === 0;
@@ -11679,7 +11708,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
11679
11708
  },
11680
11709
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11681
11710
  // @ts-ignore
11682
- accessibilityLabelledBy: accessibilityLabelledBy
11711
+ accessibilityLabelledBy: accessibilityLabelledBy,
11712
+ allowFontScaling: allowFontScaling
11683
11713
  }, nativeProps), {}, {
11684
11714
  onFocus: function onFocus(event) {
11685
11715
  var _nativeProps$onFocus;
@@ -12216,7 +12246,7 @@ var StyledWrapper$5 = index$a(reactNative.View)(function (_ref) {
12216
12246
  padding: theme.__hd__.empty.space.wrapperPadding
12217
12247
  };
12218
12248
  });
12219
- var StyledTitle = index$a(reactNative.Text)(function (_ref2) {
12249
+ var StyledTitle = index$a(Typography.Text)(function (_ref2) {
12220
12250
  var theme = _ref2.theme,
12221
12251
  themeVariant = _ref2.themeVariant;
12222
12252
  return {
@@ -12227,7 +12257,7 @@ var StyledTitle = index$a(reactNative.Text)(function (_ref2) {
12227
12257
  color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
12228
12258
  };
12229
12259
  });
12230
- var StyledDescription = index$a(reactNative.Text)(function (_ref3) {
12260
+ var StyledDescription = index$a(Typography.Text)(function (_ref3) {
12231
12261
  var theme = _ref3.theme,
12232
12262
  themeVariant = _ref3.themeVariant;
12233
12263
  return {
@@ -12284,7 +12314,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
12284
12314
  textAlign: 'center'
12285
12315
  };
12286
12316
  });
12287
- var StyledFABText = index$a(reactNative.Text)(function (_ref3) {
12317
+ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
12288
12318
  var theme = _ref3.theme;
12289
12319
  return {
12290
12320
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -12767,12 +12797,13 @@ var StyledCell = index$a(reactNative.View)(function (_ref) {
12767
12797
  borderColor: theme.__hd__.pinInput.colors[themeState]
12768
12798
  };
12769
12799
  });
12770
- var StyledCellText = index$a(reactNative.Text)(function (_ref2) {
12800
+ var StyledCellText = index$a(Typography.Text)(function (_ref2) {
12771
12801
  var theme = _ref2.theme,
12772
12802
  themeState = _ref2.themeState;
12773
12803
  return {
12774
12804
  fontFamily: theme.__hd__.pinInput.fonts.cellText,
12775
12805
  fontSize: theme.__hd__.pinInput.fontSizes.cellText,
12806
+ lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
12776
12807
  color: theme.__hd__.pinInput.colors[themeState]
12777
12808
  };
12778
12809
  });
@@ -12823,10 +12854,11 @@ var StyledErrorContainer = index$a(reactNative.View)(function (_ref7) {
12823
12854
  var theme = _ref7.theme;
12824
12855
  return {
12825
12856
  flexDirection: 'row',
12826
- paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
12857
+ paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
12858
+ alignItems: 'center'
12827
12859
  };
12828
12860
  });
12829
- var StyledErrorMessage = index$a(reactNative.Text)(function (_ref8) {
12861
+ var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
12830
12862
  var theme = _ref8.theme;
12831
12863
  return {
12832
12864
  fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
@@ -14835,7 +14867,7 @@ var StyledView = index$a(reactNative.View)(function (_ref) {
14835
14867
  backgroundColor: backgroundColor
14836
14868
  };
14837
14869
  });
14838
- var StyledText = index$a(reactNative.Text)(function (_ref3) {
14870
+ var StyledText = index$a(Typography.Text)(function (_ref3) {
14839
14871
  var themeIntent = _ref3.themeIntent,
14840
14872
  themeVariant = _ref3.themeVariant,
14841
14873
  theme = _ref3.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.12.3",
3
+ "version": "8.12.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.12.3",
24
+ "@hero-design/colors": "8.12.4",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21"
@@ -44,7 +44,7 @@
44
44
  "@babel/preset-typescript": "^7.17.12",
45
45
  "@babel/runtime": "^7.18.9",
46
46
  "@emotion/jest": "^11.9.3",
47
- "@hero-design/eslint-plugin": "8.12.3",
47
+ "@hero-design/eslint-plugin": "8.12.4",
48
48
  "@react-native-community/datetimepicker": "^3.5.2",
49
49
  "@react-native-community/slider": "4.1.12",
50
50
  "@rollup/plugin-babel": "^5.3.1",
@@ -60,9 +60,9 @@
60
60
  "@types/react-native": "^0.67.7",
61
61
  "@types/react-native-vector-icons": "^6.4.10",
62
62
  "babel-plugin-inline-import": "^3.0.0",
63
- "eslint-config-hd": "8.12.3",
63
+ "eslint-config-hd": "8.12.4",
64
64
  "jest": "^27.3.1",
65
- "prettier-config-hd": "8.12.3",
65
+ "prettier-config-hd": "8.12.4",
66
66
  "react": "18.0.0",
67
67
  "react-native": "0.69.7",
68
68
  "react-native-gesture-handler": "~2.1.0",
@@ -34,6 +34,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
34
34
  }
35
35
  >
36
36
  <Text
37
+ allowFontScaling={false}
37
38
  style={
38
39
  Array [
39
40
  Object {
@@ -107,6 +108,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
107
108
  }
108
109
  >
109
110
  <Text
111
+ allowFontScaling={false}
110
112
  style={
111
113
  Array [
112
114
  Object {
@@ -166,6 +168,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
166
168
  }
167
169
  >
168
170
  <Text
171
+ allowFontScaling={false}
169
172
  style={
170
173
  Array [
171
174
  Object {
@@ -239,6 +242,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
239
242
  }
240
243
  >
241
244
  <Text
245
+ allowFontScaling={false}
242
246
  style={
243
247
  Array [
244
248
  Object {
@@ -298,6 +302,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
298
302
  }
299
303
  >
300
304
  <Text
305
+ allowFontScaling={false}
301
306
  style={
302
307
  Array [
303
308
  Object {
@@ -371,6 +376,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
371
376
  }
372
377
  >
373
378
  <Text
379
+ allowFontScaling={false}
374
380
  style={
375
381
  Array [
376
382
  Object {
@@ -430,6 +436,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
430
436
  }
431
437
  >
432
438
  <Text
439
+ allowFontScaling={false}
433
440
  style={
434
441
  Array [
435
442
  Object {
@@ -503,6 +510,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
503
510
  }
504
511
  >
505
512
  <Text
513
+ allowFontScaling={false}
506
514
  style={
507
515
  Array [
508
516
  Object {
@@ -42,6 +42,7 @@ exports[`Accordion allows fully controlled 1`] = `
42
42
  }
43
43
  >
44
44
  <Text
45
+ allowFontScaling={false}
45
46
  style={
46
47
  Array [
47
48
  Object {
@@ -115,6 +116,7 @@ exports[`Accordion allows fully controlled 1`] = `
115
116
  }
116
117
  >
117
118
  <Text
119
+ allowFontScaling={false}
118
120
  style={
119
121
  Array [
120
122
  Object {
@@ -171,6 +173,7 @@ exports[`Accordion allows fully controlled 1`] = `
171
173
  }
172
174
  >
173
175
  <Text
176
+ allowFontScaling={false}
174
177
  style={
175
178
  Array [
176
179
  Object {
@@ -244,6 +247,7 @@ exports[`Accordion allows fully controlled 1`] = `
244
247
  }
245
248
  >
246
249
  <Text
250
+ allowFontScaling={false}
247
251
  style={
248
252
  Array [
249
253
  Object {
@@ -312,6 +316,7 @@ exports[`Accordion renders correctly 1`] = `
312
316
  }
313
317
  >
314
318
  <Text
319
+ allowFontScaling={false}
315
320
  style={
316
321
  Array [
317
322
  Object {
@@ -385,6 +390,7 @@ exports[`Accordion renders correctly 1`] = `
385
390
  }
386
391
  >
387
392
  <Text
393
+ allowFontScaling={false}
388
394
  style={
389
395
  Array [
390
396
  Object {
@@ -441,6 +447,7 @@ exports[`Accordion renders correctly 1`] = `
441
447
  }
442
448
  >
443
449
  <Text
450
+ allowFontScaling={false}
444
451
  style={
445
452
  Array [
446
453
  Object {
@@ -514,6 +521,7 @@ exports[`Accordion renders correctly 1`] = `
514
521
  }
515
522
  >
516
523
  <Text
524
+ allowFontScaling={false}
517
525
  style={
518
526
  Array [
519
527
  Object {
@@ -582,6 +590,7 @@ exports[`Accordion renders correctly when variant is card 1`] = `
582
590
  }
583
591
  >
584
592
  <Text
593
+ allowFontScaling={false}
585
594
  style={
586
595
  Array [
587
596
  Object {
@@ -655,6 +664,7 @@ exports[`Accordion renders correctly when variant is card 1`] = `
655
664
  }
656
665
  >
657
666
  <Text
667
+ allowFontScaling={false}
658
668
  style={
659
669
  Array [
660
670
  Object {
@@ -722,6 +732,7 @@ exports[`Accordion renders correctly when variant is card 1`] = `
722
732
  }
723
733
  >
724
734
  <Text
735
+ allowFontScaling={false}
725
736
  style={
726
737
  Array [
727
738
  Object {
@@ -795,6 +806,7 @@ exports[`Accordion renders correctly when variant is card 1`] = `
795
806
  }
796
807
  >
797
808
  <Text
809
+ allowFontScaling={false}
798
810
  style={
799
811
  Array [
800
812
  Object {