@hero-design/rn 7.8.0 → 7.9.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 (224) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +10 -6
  3. package/lib/index.js +10 -6
  4. package/package.json +2 -2
  5. package/src/components/Card/DataCard/StyledDataCard.tsx +1 -3
  6. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -1
  7. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
  8. package/src/components/Card/StyledCard.tsx +1 -3
  9. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
  10. package/src/components/Icon/HeroIcon/index.tsx +3 -1
  11. package/src/components/Icon/index.tsx +2 -1
  12. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  13. package/src/theme/components/card.ts +5 -1
  14. package/src/theme/components/icon.ts +1 -0
  15. package/types/components/Alert/StyledAlert.d.ts +0 -0
  16. package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
  17. package/types/components/Alert/index.d.ts +0 -0
  18. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  19. package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
  20. package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
  21. package/types/components/Avatar/index.d.ts +0 -0
  22. package/types/components/Badge/Status.d.ts +0 -0
  23. package/types/components/Badge/StyledBadge.d.ts +0 -0
  24. package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  25. package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
  26. package/types/components/Badge/index.d.ts +0 -0
  27. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  28. package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  29. package/types/components/BottomNavigation/index.d.ts +0 -0
  30. package/types/components/BottomSheet/Footer.d.ts +0 -0
  31. package/types/components/BottomSheet/Header.d.ts +0 -0
  32. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  33. package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
  34. package/types/components/BottomSheet/index.d.ts +0 -0
  35. package/types/components/Button/Button.d.ts +0 -0
  36. package/types/components/Button/IconButton.d.ts +0 -0
  37. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  38. package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  39. package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  40. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  41. package/types/components/Button/StyledButton.d.ts +0 -0
  42. package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
  43. package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  44. package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  45. package/types/components/Button/index.d.ts +0 -0
  46. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  47. package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -0
  48. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -0
  49. package/types/components/Card/DataCard/index.d.ts +0 -0
  50. package/types/components/Card/StyledCard.d.ts +0 -0
  51. package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  52. package/types/components/Card/__tests__/index.spec.d.ts +0 -0
  53. package/types/components/Card/index.d.ts +0 -0
  54. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  55. package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
  56. package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
  57. package/types/components/Checkbox/index.d.ts +0 -0
  58. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  59. package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
  60. package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
  61. package/types/components/Collapse/index.d.ts +0 -0
  62. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  63. package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
  64. package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
  65. package/types/components/ContentNavigator/index.d.ts +0 -0
  66. package/types/components/Divider/StyledDivider.d.ts +0 -0
  67. package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  68. package/types/components/Divider/index.d.ts +0 -0
  69. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  70. package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
  71. package/types/components/Drawer/index.d.ts +0 -0
  72. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  73. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  74. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  75. package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  76. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  77. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  78. package/types/components/FAB/FAB.d.ts +0 -0
  79. package/types/components/FAB/StyledFAB.d.ts +0 -0
  80. package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  81. package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  82. package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
  83. package/types/components/FAB/index.d.ts +0 -0
  84. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  85. package/types/components/Icon/IconList.d.ts +0 -0
  86. package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
  87. package/types/components/Icon/index.d.ts +1 -1
  88. package/types/components/Icon/utils.d.ts +0 -0
  89. package/types/components/List/BasicListItem.d.ts +0 -0
  90. package/types/components/List/ListItem.d.ts +0 -0
  91. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  92. package/types/components/List/StyledListItem.d.ts +0 -0
  93. package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -0
  94. package/types/components/List/__tests__/ListItem.spec.d.ts +0 -0
  95. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -0
  96. package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -0
  97. package/types/components/List/index.d.ts +0 -0
  98. package/types/components/Progress/ProgressBar.d.ts +0 -0
  99. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  100. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  101. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  102. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  103. package/types/components/Progress/index.d.ts +0 -0
  104. package/types/components/Progress/types.d.ts +0 -0
  105. package/types/components/Radio/Radio.d.ts +0 -0
  106. package/types/components/Radio/RadioGroup.d.ts +0 -0
  107. package/types/components/Radio/StyledRadio.d.ts +0 -0
  108. package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
  109. package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
  110. package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
  111. package/types/components/Radio/index.d.ts +0 -0
  112. package/types/components/Radio/types.d.ts +0 -0
  113. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  114. package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
  115. package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
  116. package/types/components/SectionHeading/index.d.ts +0 -0
  117. package/types/components/Select/Footer.d.ts +0 -0
  118. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  119. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  120. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -0
  121. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -0
  122. package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
  123. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  124. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  125. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  126. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -0
  127. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -0
  128. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -0
  129. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  130. package/types/components/Select/StyledSelect.d.ts +0 -0
  131. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -0
  132. package/types/components/Select/helpers.d.ts +0 -0
  133. package/types/components/Select/index.d.ts +0 -0
  134. package/types/components/Select/types.d.ts +0 -0
  135. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  136. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  137. package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
  138. package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
  139. package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
  140. package/types/components/Spinner/index.d.ts +0 -0
  141. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  142. package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
  143. package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
  144. package/types/components/Switch/index.d.ts +0 -0
  145. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  146. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  147. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  148. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  149. package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
  150. package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
  151. package/types/components/Tabs/index.d.ts +0 -0
  152. package/types/components/Tabs/utils.d.ts +0 -0
  153. package/types/components/Tag/StyledTag.d.ts +0 -0
  154. package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
  155. package/types/components/Tag/index.d.ts +0 -0
  156. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  157. package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
  158. package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
  159. package/types/components/TextInput/index.d.ts +0 -0
  160. package/types/components/Toast/StyledToast.d.ts +0 -0
  161. package/types/components/Toast/Toast.d.ts +0 -0
  162. package/types/components/Toast/ToastContainer.d.ts +0 -0
  163. package/types/components/Toast/ToastContext.d.ts +0 -0
  164. package/types/components/Toast/ToastProvider.d.ts +0 -0
  165. package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
  166. package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
  167. package/types/components/Toast/index.d.ts +0 -0
  168. package/types/components/Toast/types.d.ts +0 -0
  169. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  170. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  171. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  172. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -0
  173. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -0
  174. package/types/components/Toolbar/index.d.ts +0 -0
  175. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  176. package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  177. package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  178. package/types/components/Typography/Text/index.d.ts +0 -0
  179. package/types/components/Typography/index.d.ts +0 -0
  180. package/types/index.d.ts +0 -0
  181. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  182. package/types/theme/__tests__/index.spec.d.ts +0 -0
  183. package/types/theme/components/alert.d.ts +0 -0
  184. package/types/theme/components/avatar.d.ts +0 -0
  185. package/types/theme/components/badge.d.ts +0 -0
  186. package/types/theme/components/bottomNavigation.d.ts +0 -0
  187. package/types/theme/components/bottomSheet.d.ts +0 -0
  188. package/types/theme/components/button.d.ts +0 -0
  189. package/types/theme/components/card.d.ts +3 -0
  190. package/types/theme/components/checkbox.d.ts +0 -0
  191. package/types/theme/components/contentNavigator.d.ts +0 -0
  192. package/types/theme/components/divider.d.ts +0 -0
  193. package/types/theme/components/drawer.d.ts +0 -0
  194. package/types/theme/components/fab.d.ts +0 -0
  195. package/types/theme/components/icon.d.ts +1 -0
  196. package/types/theme/components/list.d.ts +0 -0
  197. package/types/theme/components/progress.d.ts +0 -0
  198. package/types/theme/components/radio.d.ts +0 -0
  199. package/types/theme/components/sectionHeading.d.ts +0 -0
  200. package/types/theme/components/select.d.ts +0 -0
  201. package/types/theme/components/spinner.d.ts +0 -0
  202. package/types/theme/components/switch.d.ts +0 -0
  203. package/types/theme/components/tabs.d.ts +0 -0
  204. package/types/theme/components/tag.d.ts +0 -0
  205. package/types/theme/components/textInput.d.ts +0 -0
  206. package/types/theme/components/toast.d.ts +0 -0
  207. package/types/theme/components/toolbar.d.ts +0 -0
  208. package/types/theme/components/typography.d.ts +0 -0
  209. package/types/theme/global/borders.d.ts +0 -0
  210. package/types/theme/global/colors.d.ts +0 -0
  211. package/types/theme/global/index.d.ts +0 -0
  212. package/types/theme/global/scale.d.ts +0 -0
  213. package/types/theme/global/space.d.ts +0 -0
  214. package/types/theme/global/typography.d.ts +0 -0
  215. package/types/theme/index.d.ts +0 -0
  216. package/types/types.d.ts +0 -0
  217. package/types/utils/__tests__/scale.spec.d.ts +0 -0
  218. package/types/utils/helpers.d.ts +0 -0
  219. package/types/utils/hooks.d.ts +0 -0
  220. package/types/utils/scale.d.ts +0 -0
  221. package/types/components/Select/MultiSelect/Footer.d.ts +0 -5
  222. package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -26
  223. package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -1
  224. package/types/components/Select/MultiSelect/types.d.ts +0 -5
@@ -1,8 +1,8 @@
1
- @hero-design/rn:build: cache hit, replaying output 12464e58d4dc494f
1
+ @hero-design/rn:build: cache hit, replaying output e062770c8d58771a
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
- @hero-design/rn:build: created lib/index.js, es/index.js in 7.5s
7
+ @hero-design/rn:build: created lib/index.js, es/index.js in 7.1s
8
8
  @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly
package/es/index.js CHANGED
@@ -2975,11 +2975,15 @@ var getCardTheme = function getCardTheme(theme) {
2975
2975
  danger: theme.colors.dangerMediumLight
2976
2976
  }
2977
2977
  };
2978
+ var sizes = {
2979
+ indicatorWidth: theme.space.medium
2980
+ };
2978
2981
  var radii = {
2979
2982
  "default": theme.radii.large
2980
2983
  };
2981
2984
  return {
2982
2985
  colors: colors,
2986
+ sizes: sizes,
2983
2987
  radii: radii
2984
2988
  };
2985
2989
  };
@@ -3135,7 +3139,8 @@ var getIconTheme = function getIconTheme(theme) {
3135
3139
  danger: theme.colors.danger,
3136
3140
  success: theme.colors.success,
3137
3141
  warning: theme.colors.warning,
3138
- disabledText: theme.colors.disabledText
3142
+ disabledText: theme.colors.disabledText,
3143
+ invertedText: theme.colors.invertedText
3139
3144
  };
3140
3145
  var sizes = {
3141
3146
  xsmall: theme.fontSizes.large,
@@ -15399,7 +15404,8 @@ var COLOR_INTENTS = {
15399
15404
  danger: 'danger',
15400
15405
  success: 'success',
15401
15406
  warning: 'warning',
15402
- 'disabled-text': 'disabledText'
15407
+ 'disabled-text': 'disabledText',
15408
+ 'text-inverted': 'invertedText'
15403
15409
  };
15404
15410
  var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
15405
15411
  var themeIntent = _ref.themeIntent,
@@ -16640,7 +16646,6 @@ var StyledDataCard = index$5(View)(function (_ref) {
16640
16646
  return {
16641
16647
  borderRadius: theme.__hd__.card.radii["default"],
16642
16648
  overflow: 'hidden',
16643
- flex: 1,
16644
16649
  flexDirection: 'row'
16645
16650
  };
16646
16651
  });
@@ -16649,7 +16654,7 @@ var Indicator = index$5(View)(function (_ref2) {
16649
16654
  themeIntent = _ref2.themeIntent;
16650
16655
  return {
16651
16656
  backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16652
- width: scale(16),
16657
+ width: theme.__hd__.card.sizes.indicatorWidth,
16653
16658
  height: '100%'
16654
16659
  };
16655
16660
  });
@@ -16676,7 +16681,6 @@ var StyledCard = index$5(View)(function (_ref) {
16676
16681
  overflow: 'hidden'
16677
16682
  };
16678
16683
  var dataStyles = {
16679
- flex: 1,
16680
16684
  flexDirection: 'row'
16681
16685
  };
16682
16686
 
@@ -16692,7 +16696,7 @@ var LeftDataCard = index$5(View)(function (_ref2) {
16692
16696
  var theme = _ref2.theme;
16693
16697
  return {
16694
16698
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
16695
- width: scale(16),
16699
+ width: theme.__hd__.card.sizes.indicatorWidth,
16696
16700
  height: '100%'
16697
16701
  };
16698
16702
  });
package/lib/index.js CHANGED
@@ -3002,11 +3002,15 @@ var getCardTheme = function getCardTheme(theme) {
3002
3002
  danger: theme.colors.dangerMediumLight
3003
3003
  }
3004
3004
  };
3005
+ var sizes = {
3006
+ indicatorWidth: theme.space.medium
3007
+ };
3005
3008
  var radii = {
3006
3009
  "default": theme.radii.large
3007
3010
  };
3008
3011
  return {
3009
3012
  colors: colors,
3013
+ sizes: sizes,
3010
3014
  radii: radii
3011
3015
  };
3012
3016
  };
@@ -3162,7 +3166,8 @@ var getIconTheme = function getIconTheme(theme) {
3162
3166
  danger: theme.colors.danger,
3163
3167
  success: theme.colors.success,
3164
3168
  warning: theme.colors.warning,
3165
- disabledText: theme.colors.disabledText
3169
+ disabledText: theme.colors.disabledText,
3170
+ invertedText: theme.colors.invertedText
3166
3171
  };
3167
3172
  var sizes = {
3168
3173
  xsmall: theme.fontSizes.large,
@@ -15426,7 +15431,8 @@ var COLOR_INTENTS = {
15426
15431
  danger: 'danger',
15427
15432
  success: 'success',
15428
15433
  warning: 'warning',
15429
- 'disabled-text': 'disabledText'
15434
+ 'disabled-text': 'disabledText',
15435
+ 'text-inverted': 'invertedText'
15430
15436
  };
15431
15437
  var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
15432
15438
  var themeIntent = _ref.themeIntent,
@@ -16667,7 +16673,6 @@ var StyledDataCard = index$5(ReactNative.View)(function (_ref) {
16667
16673
  return {
16668
16674
  borderRadius: theme.__hd__.card.radii["default"],
16669
16675
  overflow: 'hidden',
16670
- flex: 1,
16671
16676
  flexDirection: 'row'
16672
16677
  };
16673
16678
  });
@@ -16676,7 +16681,7 @@ var Indicator = index$5(ReactNative.View)(function (_ref2) {
16676
16681
  themeIntent = _ref2.themeIntent;
16677
16682
  return {
16678
16683
  backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16679
- width: scale(16),
16684
+ width: theme.__hd__.card.sizes.indicatorWidth,
16680
16685
  height: '100%'
16681
16686
  };
16682
16687
  });
@@ -16703,7 +16708,6 @@ var StyledCard = index$5(ReactNative.View)(function (_ref) {
16703
16708
  overflow: 'hidden'
16704
16709
  };
16705
16710
  var dataStyles = {
16706
- flex: 1,
16707
16711
  flexDirection: 'row'
16708
16712
  };
16709
16713
 
@@ -16719,7 +16723,7 @@ var LeftDataCard = index$5(ReactNative.View)(function (_ref2) {
16719
16723
  var theme = _ref2.theme;
16720
16724
  return {
16721
16725
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
16722
- width: scale(16),
16726
+ width: theme.__hd__.card.sizes.indicatorWidth,
16723
16727
  height: '100%'
16724
16728
  };
16725
16729
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.8.0",
3
+ "version": "7.9.0",
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": "7.8.0"
24
+ "@hero-design/colors": "7.9.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "17.0.2",
@@ -1,11 +1,9 @@
1
1
  import { View } from 'react-native';
2
2
  import styled from '@emotion/native';
3
- import { scale } from '../../../utils/scale';
4
3
 
5
4
  const StyledDataCard = styled(View)(({ theme }) => ({
6
5
  borderRadius: theme.__hd__.card.radii.default,
7
6
  overflow: 'hidden',
8
- flex: 1,
9
7
  flexDirection: 'row',
10
8
  }));
11
9
 
@@ -13,7 +11,7 @@ const Indicator = styled(View)<{
13
11
  themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
14
12
  }>(({ theme, themeIntent }) => ({
15
13
  backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16
- width: scale(16),
14
+ width: theme.__hd__.card.sizes.indicatorWidth,
17
15
  height: '100%',
18
16
  }));
19
17
 
@@ -86,7 +86,6 @@ exports[`StyledDataCard renders correctly 1`] = `
86
86
  Array [
87
87
  Object {
88
88
  "borderRadius": 12,
89
- "flex": 1,
90
89
  "flexDirection": "row",
91
90
  "overflow": "hidden",
92
91
  },
@@ -6,7 +6,6 @@ exports[`DataCard renders correctly when intent is archived 1`] = `
6
6
  Array [
7
7
  Object {
8
8
  "borderRadius": 12,
9
- "flex": 1,
10
9
  "flexDirection": "row",
11
10
  "overflow": "hidden",
12
11
  },
@@ -37,7 +36,6 @@ exports[`DataCard renders correctly when intent is danger 1`] = `
37
36
  Array [
38
37
  Object {
39
38
  "borderRadius": 12,
40
- "flex": 1,
41
39
  "flexDirection": "row",
42
40
  "overflow": "hidden",
43
41
  },
@@ -68,7 +66,6 @@ exports[`DataCard renders correctly when intent is info 1`] = `
68
66
  Array [
69
67
  Object {
70
68
  "borderRadius": 12,
71
- "flex": 1,
72
69
  "flexDirection": "row",
73
70
  "overflow": "hidden",
74
71
  },
@@ -99,7 +96,6 @@ exports[`DataCard renders correctly when intent is success 1`] = `
99
96
  Array [
100
97
  Object {
101
98
  "borderRadius": 12,
102
- "flex": 1,
103
99
  "flexDirection": "row",
104
100
  "overflow": "hidden",
105
101
  },
@@ -130,7 +126,6 @@ exports[`DataCard renders correctly when intent is warning 1`] = `
130
126
  Array [
131
127
  Object {
132
128
  "borderRadius": 12,
133
- "flex": 1,
134
129
  "flexDirection": "row",
135
130
  "overflow": "hidden",
136
131
  },
@@ -1,6 +1,5 @@
1
1
  import { View } from 'react-native';
2
2
  import styled from '@emotion/native';
3
- import { scale } from '../../utils/scale';
4
3
 
5
4
  const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
6
5
  ({ themeVariant, theme }) => {
@@ -10,7 +9,6 @@ const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
10
9
  } as const;
11
10
 
12
11
  const dataStyles = {
13
- flex: 1,
14
12
  flexDirection: 'row',
15
13
  };
16
14
 
@@ -25,7 +23,7 @@ const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
25
23
 
26
24
  const LeftDataCard = styled(View)(({ theme }) => ({
27
25
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
28
- width: scale(16),
26
+ width: theme.__hd__.card.sizes.indicatorWidth,
29
27
  height: '100%',
30
28
  }));
31
29
 
@@ -36,7 +36,6 @@ exports[`StyledCard renders correct data style 1`] = `
36
36
  Array [
37
37
  Object {
38
38
  "borderRadius": 12,
39
- "flex": 1,
40
39
  "flexDirection": "row",
41
40
  "overflow": "hidden",
42
41
  },
@@ -10,7 +10,8 @@ type ThemeIntent =
10
10
  | 'danger'
11
11
  | 'success'
12
12
  | 'warning'
13
- | 'disabled-text';
13
+ | 'disabled-text'
14
+ | 'text-inverted';
14
15
 
15
16
  const HeroIcon = createIconSetFromIcoMoon(
16
17
  heroIconConfig,
@@ -26,6 +27,7 @@ const COLOR_INTENTS = {
26
27
  success: 'success',
27
28
  warning: 'warning',
28
29
  'disabled-text': 'disabledText',
30
+ 'text-inverted': 'invertedText',
29
31
  } as const;
30
32
 
31
33
  const StyledHeroIcon = styled(HeroIcon)<{
@@ -20,7 +20,8 @@ export interface IconProps {
20
20
  | 'danger'
21
21
  | 'success'
22
22
  | 'warning'
23
- | 'disabled-text';
23
+ | 'disabled-text'
24
+ | 'text-inverted';
24
25
  /**
25
26
  * Size of the Icon.
26
27
  */
@@ -180,6 +180,9 @@ Object {
180
180
  "radii": Object {
181
181
  "default": 12,
182
182
  },
183
+ "sizes": Object {
184
+ "indicatorWidth": 16,
185
+ },
183
186
  },
184
187
  "checkbox": Object {
185
188
  "borderWidths": Object {
@@ -293,6 +296,7 @@ Object {
293
296
  "danger": "#de350b",
294
297
  "disabledText": "#8b8d92",
295
298
  "info": "#4568fb",
299
+ "invertedText": "#ffffff",
296
300
  "primary": "#7622d7",
297
301
  "success": "#01b39c",
298
302
  "text": "#292a2b",
@@ -12,11 +12,15 @@ const getCardTheme = (theme: GlobalTheme) => {
12
12
  },
13
13
  };
14
14
 
15
+ const sizes = {
16
+ indicatorWidth: theme.space.medium,
17
+ };
18
+
15
19
  const radii = {
16
20
  default: theme.radii.large,
17
21
  };
18
22
 
19
- return { colors, radii };
23
+ return { colors, sizes, radii };
20
24
  };
21
25
 
22
26
  export default getCardTheme;
@@ -9,6 +9,7 @@ const getIconTheme = (theme: GlobalTheme) => {
9
9
  success: theme.colors.success,
10
10
  warning: theme.colors.warning,
11
11
  disabledText: theme.colors.disabledText,
12
+ invertedText: theme.colors.invertedText,
12
13
  };
13
14
 
14
15
  const sizes = {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2
- declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
2
+ declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
3
3
  declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
File without changes
File without changes
@@ -9,7 +9,7 @@ export interface IconProps {
9
9
  /**
10
10
  * Intent of the Icon.
11
11
  */
12
- intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
12
+ intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
13
13
  /**
14
14
  * Size of the Icon.
15
15
  */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes