@hero-design/rn 8.67.0-alpha.1 → 8.67.0-alpha.3

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 (271) hide show
  1. package/es/index.js +38 -72
  2. package/lib/index.js +38 -72
  3. package/package.json +1 -1
  4. package/src/components/Chip/StyledChip.tsx +15 -45
  5. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +131 -472
  6. package/src/components/Chip/__tests__/index.spec.tsx +2 -31
  7. package/src/components/Chip/index.tsx +18 -33
  8. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  9. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +8 -6
  10. package/src/theme/components/chip.ts +8 -6
  11. package/src/theme/components/fab.ts +1 -1
  12. package/types/components/Accordion/AccordionItem.d.ts +0 -0
  13. package/types/components/Accordion/StyledAccordion.d.ts +0 -0
  14. package/types/components/Accordion/index.d.ts +0 -0
  15. package/types/components/Alert/StyledAlert.d.ts +0 -0
  16. package/types/components/Alert/index.d.ts +0 -0
  17. package/types/components/Attachment/StyledAttachment.d.ts +0 -0
  18. package/types/components/Attachment/index.d.ts +0 -0
  19. package/types/components/Avatar/Avatar.d.ts +0 -0
  20. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
  21. package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
  22. package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
  23. package/types/components/Avatar/StyledAvatar.d.ts +0 -0
  24. package/types/components/Avatar/index.d.ts +0 -0
  25. package/types/components/Badge/Status.d.ts +0 -0
  26. package/types/components/Badge/StyledBadge.d.ts +0 -0
  27. package/types/components/Badge/index.d.ts +0 -0
  28. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  29. package/types/components/BottomNavigation/index.d.ts +0 -0
  30. package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
  31. package/types/components/BottomSheet/Footer.d.ts +0 -0
  32. package/types/components/BottomSheet/Header.d.ts +0 -0
  33. package/types/components/BottomSheet/ScrollView.d.ts +0 -0
  34. package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
  35. package/types/components/BottomSheet/index.d.ts +0 -0
  36. package/types/components/Box/StyledBox.d.ts +0 -0
  37. package/types/components/Box/config.d.ts +0 -0
  38. package/types/components/Box/index.d.ts +0 -0
  39. package/types/components/Box/types.d.ts +0 -0
  40. package/types/components/Button/Button.d.ts +0 -0
  41. package/types/components/Button/IconButton.d.ts +0 -0
  42. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  43. package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
  44. package/types/components/Button/StyledButton.d.ts +0 -0
  45. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
  46. package/types/components/Button/UtilityButton/index.d.ts +0 -0
  47. package/types/components/Button/index.d.ts +0 -0
  48. package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
  49. package/types/components/Calendar/StyledCalendar.d.ts +0 -0
  50. package/types/components/Calendar/helpers.d.ts +0 -0
  51. package/types/components/Calendar/index.d.ts +0 -0
  52. package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
  53. package/types/components/Card/DataCard/index.d.ts +0 -0
  54. package/types/components/Card/StyledCard.d.ts +0 -0
  55. package/types/components/Card/index.d.ts +0 -0
  56. package/types/components/Carousel/CardCarousel.d.ts +0 -0
  57. package/types/components/Carousel/CarouselItem.d.ts +0 -0
  58. package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
  59. package/types/components/Carousel/StyledCarousel.d.ts +0 -0
  60. package/types/components/Carousel/contants.d.ts +0 -0
  61. package/types/components/Carousel/index.d.ts +0 -0
  62. package/types/components/Carousel/types.d.ts +0 -0
  63. package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
  64. package/types/components/Checkbox/index.d.ts +0 -0
  65. package/types/components/Chip/StyledChip.d.ts +1 -19
  66. package/types/components/Collapse/StyledCollapse.d.ts +0 -0
  67. package/types/components/Collapse/index.d.ts +0 -0
  68. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
  69. package/types/components/ContentNavigator/index.d.ts +0 -0
  70. package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
  71. package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
  72. package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
  73. package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
  74. package/types/components/DatePicker/index.d.ts +0 -0
  75. package/types/components/DatePicker/types.d.ts +0 -0
  76. package/types/components/Divider/StyledDivider.d.ts +0 -0
  77. package/types/components/Divider/index.d.ts +0 -0
  78. package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
  79. package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
  80. package/types/components/Drawer/StyledDrawer.d.ts +0 -0
  81. package/types/components/Drawer/index.d.ts +0 -0
  82. package/types/components/Empty/StyledEmpty.d.ts +0 -0
  83. package/types/components/Empty/index.d.ts +0 -0
  84. package/types/components/Error/StyledError.d.ts +0 -0
  85. package/types/components/Error/index.d.ts +0 -0
  86. package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  87. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  88. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  89. package/types/components/FAB/ActionGroup/index.d.ts +0 -0
  90. package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
  91. package/types/components/FAB/FAB.d.ts +0 -0
  92. package/types/components/FAB/StyledFAB.d.ts +0 -0
  93. package/types/components/FAB/index.d.ts +0 -0
  94. package/types/components/Icon/AnimatedIcon.d.ts +0 -0
  95. package/types/components/Icon/HeroIcon/index.d.ts +0 -0
  96. package/types/components/Icon/IconList.d.ts +0 -0
  97. package/types/components/Icon/index.d.ts +0 -0
  98. package/types/components/Icon/utils.d.ts +0 -0
  99. package/types/components/Image/index.d.ts +0 -0
  100. package/types/components/List/BasicListItem.d.ts +0 -0
  101. package/types/components/List/ListItem.d.ts +0 -0
  102. package/types/components/List/StyledBasicListItem.d.ts +0 -0
  103. package/types/components/List/StyledListItem.d.ts +0 -0
  104. package/types/components/List/index.d.ts +0 -0
  105. package/types/components/PageControl/StyledPageControl.d.ts +0 -0
  106. package/types/components/PageControl/index.d.ts +0 -0
  107. package/types/components/PinInput/PinCell.d.ts +0 -0
  108. package/types/components/PinInput/StyledPinInput.d.ts +0 -0
  109. package/types/components/PinInput/index.d.ts +0 -0
  110. package/types/components/Progress/ProgressBar.d.ts +0 -0
  111. package/types/components/Progress/ProgressCircle.d.ts +0 -0
  112. package/types/components/Progress/StyledProgressBar.d.ts +0 -0
  113. package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
  114. package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
  115. package/types/components/Progress/constants.d.ts +0 -0
  116. package/types/components/Progress/index.d.ts +0 -0
  117. package/types/components/Progress/types.d.ts +0 -0
  118. package/types/components/Radio/Radio.d.ts +0 -0
  119. package/types/components/Radio/RadioGroup.d.ts +0 -0
  120. package/types/components/Radio/StyledRadio.d.ts +0 -0
  121. package/types/components/Radio/index.d.ts +0 -0
  122. package/types/components/Radio/types.d.ts +0 -0
  123. package/types/components/RefreshControl/index.d.ts +0 -0
  124. package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
  125. package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
  126. package/types/components/RichTextEditor/MentionList.d.ts +0 -0
  127. package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
  128. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
  129. package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
  130. package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
  131. package/types/components/RichTextEditor/constants.d.ts +0 -0
  132. package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
  133. package/types/components/RichTextEditor/index.d.ts +0 -0
  134. package/types/components/RichTextEditor/types.d.ts +0 -0
  135. package/types/components/RichTextEditor/utils/events.d.ts +0 -0
  136. package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
  137. package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
  138. package/types/components/SectionHeading/index.d.ts +0 -0
  139. package/types/components/Select/BaseOptionList.d.ts +0 -0
  140. package/types/components/Select/Footer.d.ts +0 -0
  141. package/types/components/Select/MultiSelect/Option.d.ts +0 -0
  142. package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
  143. package/types/components/Select/MultiSelect/index.d.ts +0 -0
  144. package/types/components/Select/SingleSelect/Option.d.ts +0 -0
  145. package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
  146. package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
  147. package/types/components/Select/SingleSelect/index.d.ts +0 -0
  148. package/types/components/Select/StyledSelect.d.ts +0 -0
  149. package/types/components/Select/helpers.d.ts +0 -0
  150. package/types/components/Select/index.d.ts +0 -0
  151. package/types/components/Select/types.d.ts +0 -0
  152. package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
  153. package/types/components/Skeleton/index.d.ts +0 -0
  154. package/types/components/Slider/index.d.ts +0 -0
  155. package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
  156. package/types/components/Spinner/StyledSpinner.d.ts +0 -0
  157. package/types/components/Spinner/index.d.ts +0 -0
  158. package/types/components/Success/StyledSuccess.d.ts +0 -0
  159. package/types/components/Success/index.d.ts +0 -0
  160. package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
  161. package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
  162. package/types/components/Swipeable/index.d.ts +0 -0
  163. package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
  164. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
  165. package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
  166. package/types/components/Switch/StyledSwitch.d.ts +0 -0
  167. package/types/components/Switch/index.d.ts +0 -0
  168. package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
  169. package/types/components/Tabs/SceneView.d.ts +0 -0
  170. package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
  171. package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
  172. package/types/components/Tabs/StyledTabs.d.ts +0 -0
  173. package/types/components/Tabs/TabWithBadge.d.ts +0 -0
  174. package/types/components/Tabs/index.d.ts +0 -0
  175. package/types/components/Tabs/useIsFocused.d.ts +0 -0
  176. package/types/components/Tabs/utils.d.ts +0 -0
  177. package/types/components/Tag/StyledTag.d.ts +0 -0
  178. package/types/components/Tag/index.d.ts +0 -0
  179. package/types/components/TextInput/StyledTextInput.d.ts +0 -0
  180. package/types/components/TextInput/index.d.ts +0 -0
  181. package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
  182. package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
  183. package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
  184. package/types/components/TimePicker/index.d.ts +0 -0
  185. package/types/components/TimePicker/types.d.ts +0 -0
  186. package/types/components/Toast/StyledToast.d.ts +0 -0
  187. package/types/components/Toast/Toast.d.ts +0 -0
  188. package/types/components/Toast/ToastContainer.d.ts +0 -0
  189. package/types/components/Toast/ToastContext.d.ts +0 -0
  190. package/types/components/Toast/ToastProvider.d.ts +0 -0
  191. package/types/components/Toast/index.d.ts +0 -0
  192. package/types/components/Toast/types.d.ts +0 -0
  193. package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
  194. package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
  195. package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
  196. package/types/components/Toolbar/index.d.ts +0 -0
  197. package/types/components/Typography/Text/StyledText.d.ts +0 -0
  198. package/types/components/Typography/Text/index.d.ts +0 -0
  199. package/types/components/Typography/index.d.ts +0 -0
  200. package/types/index.d.ts +0 -0
  201. package/types/testHelpers/renderWithTheme.d.ts +0 -0
  202. package/types/theme/ThemeProvider.d.ts +0 -0
  203. package/types/theme/ThemeSwitcher.d.ts +0 -0
  204. package/types/theme/components/accordion.d.ts +0 -0
  205. package/types/theme/components/alert.d.ts +0 -0
  206. package/types/theme/components/attachment.d.ts +0 -0
  207. package/types/theme/components/avatar.d.ts +0 -0
  208. package/types/theme/components/badge.d.ts +0 -0
  209. package/types/theme/components/bottomNavigation.d.ts +0 -0
  210. package/types/theme/components/bottomSheet.d.ts +0 -0
  211. package/types/theme/components/button.d.ts +0 -0
  212. package/types/theme/components/calendar.d.ts +0 -0
  213. package/types/theme/components/card.d.ts +0 -0
  214. package/types/theme/components/cardCarousel.d.ts +0 -0
  215. package/types/theme/components/carousel.d.ts +0 -0
  216. package/types/theme/components/checkbox.d.ts +0 -0
  217. package/types/theme/components/chip.d.ts +7 -5
  218. package/types/theme/components/contentNavigator.d.ts +0 -0
  219. package/types/theme/components/datePicker.d.ts +0 -0
  220. package/types/theme/components/divider.d.ts +0 -0
  221. package/types/theme/components/drawer.d.ts +0 -0
  222. package/types/theme/components/empty.d.ts +0 -0
  223. package/types/theme/components/error.d.ts +0 -0
  224. package/types/theme/components/fab.d.ts +0 -0
  225. package/types/theme/components/icon.d.ts +0 -0
  226. package/types/theme/components/image.d.ts +0 -0
  227. package/types/theme/components/list.d.ts +0 -0
  228. package/types/theme/components/pageControl.d.ts +0 -0
  229. package/types/theme/components/pinInput.d.ts +0 -0
  230. package/types/theme/components/progress.d.ts +0 -0
  231. package/types/theme/components/radio.d.ts +0 -0
  232. package/types/theme/components/refreshControl.d.ts +0 -0
  233. package/types/theme/components/richTextEditor.d.ts +0 -0
  234. package/types/theme/components/sectionHeading.d.ts +0 -0
  235. package/types/theme/components/select.d.ts +0 -0
  236. package/types/theme/components/skeleton.d.ts +0 -0
  237. package/types/theme/components/slider.d.ts +0 -0
  238. package/types/theme/components/spinner.d.ts +0 -0
  239. package/types/theme/components/success.d.ts +0 -0
  240. package/types/theme/components/swipeable.d.ts +0 -0
  241. package/types/theme/components/switch.d.ts +0 -0
  242. package/types/theme/components/tabs.d.ts +0 -0
  243. package/types/theme/components/tag.d.ts +0 -0
  244. package/types/theme/components/textInput.d.ts +0 -0
  245. package/types/theme/components/timePicker.d.ts +0 -0
  246. package/types/theme/components/toast.d.ts +0 -0
  247. package/types/theme/components/toolbar.d.ts +0 -0
  248. package/types/theme/components/typography.d.ts +0 -0
  249. package/types/theme/getTheme.d.ts +0 -0
  250. package/types/theme/global/borders.d.ts +0 -0
  251. package/types/theme/global/colors/eBens.d.ts +0 -0
  252. package/types/theme/global/colors/global.d.ts +0 -0
  253. package/types/theme/global/colors/globalDark.d.ts +0 -0
  254. package/types/theme/global/colors/jobs.d.ts +0 -0
  255. package/types/theme/global/colors/swag.d.ts +0 -0
  256. package/types/theme/global/colors/swagDark.d.ts +0 -0
  257. package/types/theme/global/colors/types.d.ts +0 -0
  258. package/types/theme/global/colors/wallet.d.ts +0 -0
  259. package/types/theme/global/colors/work.d.ts +0 -0
  260. package/types/theme/global/index.d.ts +0 -0
  261. package/types/theme/global/scale.d.ts +0 -0
  262. package/types/theme/global/sizes.d.ts +0 -0
  263. package/types/theme/global/space.d.ts +0 -0
  264. package/types/theme/global/typography.d.ts +0 -0
  265. package/types/theme/index.d.ts +0 -0
  266. package/types/types.d.ts +0 -0
  267. package/types/utils/functions.d.ts +0 -0
  268. package/types/utils/helpers.d.ts +0 -0
  269. package/types/utils/hooks.d.ts +0 -0
  270. package/types/utils/scale.d.ts +0 -0
  271. package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -35
package/es/index.js CHANGED
@@ -2594,21 +2594,23 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
2594
2594
 
2595
2595
  var getChipTheme = function getChipTheme(theme) {
2596
2596
  var colors = {
2597
- primaryBackground: theme.colors.darkGlobalSurface,
2597
+ primaryBackground: 'transparent',
2598
2598
  secondaryBackground: theme.colors.highlightedSurface,
2599
2599
  filledBackground: theme.colors.defaultGlobalSurface,
2600
- outlinedBackground: 'transparent',
2601
- wrapperBorder: theme.colors.primaryOutline,
2600
+ outlinedDefaultBackground: 'transparent',
2602
2601
  wrapperSelectedBorder: 'transparent',
2603
- selectedPrimaryText: theme.colors.defaultGlobalSurface
2602
+ outlinedSelectedBorder: theme.colors.primaryOutline,
2603
+ outlinedDefaultBorder: theme.colors.disabledOnDefaultGlobalSurface
2604
2604
  };
2605
2605
  var space = {
2606
2606
  wrapperHorizontalPadding: theme.space.smallMedium,
2607
2607
  wrapperVerticalPadding: theme.space.small,
2608
- iconWrapperMarginRight: theme.space.small
2608
+ iconWrapperHorizontalMargin: theme.space.small,
2609
+ outlinedSelectedMarginTop: -theme.space.xxsmall
2609
2610
  };
2610
2611
  var sizes = {
2611
- wrapperBorder: theme.borderWidths.base
2612
+ outlinedDefaultBorder: theme.borderWidths.base,
2613
+ outlinedSelectedBorder: theme.borderWidths.medium
2612
2614
  };
2613
2615
  var radii = {
2614
2616
  wrapper: theme.radii.rounded
@@ -2788,7 +2790,7 @@ var getFABTheme = function getFABTheme(theme) {
2788
2790
  icon: theme.colors.onPrimary,
2789
2791
  actionItemBackground: theme.colors.overlayGlobalSurface,
2790
2792
  actionItemPressedBackground: theme.colors.overlayGlobalSurface,
2791
- backdropBackground: theme.colors.defaultSurface,
2793
+ backdropBackground: theme.colors.overlayGlobalSurface,
2792
2794
  titleText: theme.colors.onPrimary,
2793
2795
  actionItemText: theme.colors.onPrimary
2794
2796
  };
@@ -6968,7 +6970,7 @@ var Caption = function Caption(_ref) {
6968
6970
  }), children);
6969
6971
  };
6970
6972
 
6971
- var StyledLabel$1 = index$9(Text$1)(function (_ref) {
6973
+ var StyledLabel = index$9(Text$1)(function (_ref) {
6972
6974
  var themeIntent = _ref.themeIntent,
6973
6975
  theme = _ref.theme;
6974
6976
  return {
@@ -6987,7 +6989,7 @@ var Label = function Label(_ref) {
6987
6989
  _ref$allowFontScaling = _ref.allowFontScaling,
6988
6990
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
6989
6991
  nativeProps = _objectWithoutProperties(_ref, _excluded$B);
6990
- return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
6992
+ return /*#__PURE__*/React__default.createElement(StyledLabel, _extends$1({}, nativeProps, {
6991
6993
  themeIntent: intent,
6992
6994
  allowFontScaling: allowFontScaling
6993
6995
  }), children);
@@ -7795,7 +7797,7 @@ var IconContainer$1 = index$9(View)(function (_ref2) {
7795
7797
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7796
7798
  };
7797
7799
  });
7798
- var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7800
+ var StyledIcon$1 = index$9(Icon)(function (_ref3) {
7799
7801
  var theme = _ref3.theme,
7800
7802
  themeIntent = _ref3.themeIntent;
7801
7803
  return {
@@ -7854,7 +7856,7 @@ var AlertIcon = function AlertIcon(_ref) {
7854
7856
  intent = _ref.intent;
7855
7857
  return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
7856
7858
  testID: "alert-left-icon"
7857
- }, /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7859
+ }, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
7858
7860
  icon: icon,
7859
7861
  size: "small",
7860
7862
  themeIntent: intent
@@ -7895,7 +7897,7 @@ var Alert = function Alert(_ref2) {
7895
7897
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
7896
7898
  variant: "small-bold",
7897
7899
  themeIntent: intent
7898
- }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$2, {
7900
+ }, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$1, {
7899
7901
  icon: "cancel",
7900
7902
  size: "small",
7901
7903
  themeIntent: intent
@@ -8817,7 +8819,7 @@ var StyledFooter = index$9(View)(function (_ref4) {
8817
8819
  flexDirection: 'row'
8818
8820
  };
8819
8821
  });
8820
- var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
8822
+ var StyledIconWrapper$3 = index$9(View)(function (_ref5) {
8821
8823
  var theme = _ref5.theme;
8822
8824
  return {
8823
8825
  alignItems: 'center',
@@ -9335,7 +9337,7 @@ var Header = function Header(_ref) {
9335
9337
  style: {
9336
9338
  flex: 1
9337
9339
  }
9338
- }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9340
+ }, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
9339
9341
  icon: "cancel",
9340
9342
  onPress: onRequestClose,
9341
9343
  intent: "text",
@@ -12741,26 +12743,19 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12741
12743
  }
12742
12744
  };
12743
12745
  var getBorderStyles = function getBorderStyles() {
12744
- var commonStyle = {
12745
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12746
- };
12747
- if (themeSelected) {
12748
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12749
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12750
- });
12751
- }
12752
12746
  switch (themeVariant) {
12753
12747
  case 'outlined':
12754
12748
  {
12755
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12756
- borderColor: theme.__hd__.chip.colors.wrapperBorder
12757
- });
12749
+ return {
12750
+ borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
12751
+ borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
12752
+ };
12758
12753
  }
12759
12754
  case 'filled':
12760
12755
  {
12761
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12762
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12763
- });
12756
+ return {
12757
+ borderColor: themeSelected ? theme.__hd__.chip.colors.wrapperSelectedBorder : theme.__hd__.chip.colors.wrapperSelectedBorder
12758
+ };
12764
12759
  }
12765
12760
  }
12766
12761
  };
@@ -12783,7 +12778,7 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12783
12778
  case 'outlined':
12784
12779
  {
12785
12780
  return {
12786
- backgroundColor: theme.__hd__.chip.colors.outlinedBackground
12781
+ backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
12787
12782
  };
12788
12783
  }
12789
12784
  case 'filled':
@@ -12801,31 +12796,9 @@ var StyledChipWrapper = index$9(TouchableOpacity)(function (_ref) {
12801
12796
  borderRadius: theme.__hd__.chip.radii.wrapper,
12802
12797
  paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding,
12803
12798
  paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
12804
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12799
+ marginTop: themeSelected ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
12805
12800
  }, getShadowStyles()), getBorderStyles()), getBackgroundStyles());
12806
12801
  });
12807
- var StyledIconWrapper$3 = index$9(Box)(function (_ref2) {
12808
- var theme = _ref2.theme;
12809
- return {
12810
- marginRight: theme.__hd__.chip.space.iconWrapperMarginRight
12811
- };
12812
- });
12813
- var StyledLabel = index$9(Typography.Body)(function (_ref3) {
12814
- var themeSelected = _ref3.themeSelected,
12815
- themeVariant = _ref3.themeVariant,
12816
- theme = _ref3.theme;
12817
- return {
12818
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12819
- };
12820
- });
12821
- var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12822
- var themeSelected = _ref4.themeSelected,
12823
- themeVariant = _ref4.themeVariant,
12824
- theme = _ref4.theme;
12825
- return {
12826
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12827
- };
12828
- });
12829
12802
 
12830
12803
  var _excluded$k = ["label", "variant", "selected", "icon", "onPress"];
12831
12804
  var Chip = function Chip(_ref) {
@@ -12837,30 +12810,23 @@ var Chip = function Chip(_ref) {
12837
12810
  icon = _ref.icon,
12838
12811
  onPress = _ref.onPress,
12839
12812
  otherProps = _objectWithoutProperties(_ref, _excluded$k);
12840
- var internalIcon = React__default.useMemo(function () {
12841
- if (icon && variant === 'filled') {
12842
- return icon;
12843
- }
12844
- if (selected) {
12845
- return 'checkmark';
12846
- }
12847
- return undefined;
12848
- }, [icon, selected, variant]);
12849
12813
  return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
12850
12814
  onPress: onPress,
12851
12815
  themeVariant: variant,
12852
12816
  themeSelected: selected
12853
- }, otherProps), internalIcon && /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
12817
+ }, otherProps), icon && /*#__PURE__*/React__default.createElement(Box, {
12818
+ marginRight: "small"
12819
+ }, /*#__PURE__*/React__default.createElement(Icon, {
12854
12820
  size: "xsmall",
12855
- icon: internalIcon,
12856
- themeSelected: selected,
12857
- themeVariant: variant,
12858
- testID: "chip-icon-".concat(internalIcon)
12859
- })), /*#__PURE__*/React__default.createElement(StyledLabel, {
12860
- variant: "small",
12861
- themeVariant: variant,
12862
- themeSelected: selected
12863
- }, label));
12821
+ icon: icon,
12822
+ testID: "chip-icon-".concat(icon)
12823
+ })), /*#__PURE__*/React__default.createElement(Typography.Body, null, label), variant === 'outlined' && selected && /*#__PURE__*/React__default.createElement(Box, {
12824
+ marginLeft: "small"
12825
+ }, /*#__PURE__*/React__default.createElement(Icon, {
12826
+ size: "xsmall",
12827
+ icon: "cancel",
12828
+ testID: "selected-chip-icon-cancel"
12829
+ })));
12864
12830
  };
12865
12831
 
12866
12832
  var StyledWrapper$7 = index$9(TouchableOpacity)(function (_ref) {
@@ -14982,7 +14948,7 @@ var StyledBackdrop = index$9(AnimatedPressable)(function (_ref2) {
14982
14948
  right: 0,
14983
14949
  top: 0,
14984
14950
  bottom: 0,
14985
- opacity: 0.8,
14951
+ opacity: 0.25,
14986
14952
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
14987
14953
  };
14988
14954
  });
package/lib/index.js CHANGED
@@ -2621,21 +2621,23 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
2621
2621
 
2622
2622
  var getChipTheme = function getChipTheme(theme) {
2623
2623
  var colors = {
2624
- primaryBackground: theme.colors.darkGlobalSurface,
2624
+ primaryBackground: 'transparent',
2625
2625
  secondaryBackground: theme.colors.highlightedSurface,
2626
2626
  filledBackground: theme.colors.defaultGlobalSurface,
2627
- outlinedBackground: 'transparent',
2628
- wrapperBorder: theme.colors.primaryOutline,
2627
+ outlinedDefaultBackground: 'transparent',
2629
2628
  wrapperSelectedBorder: 'transparent',
2630
- selectedPrimaryText: theme.colors.defaultGlobalSurface
2629
+ outlinedSelectedBorder: theme.colors.primaryOutline,
2630
+ outlinedDefaultBorder: theme.colors.disabledOnDefaultGlobalSurface
2631
2631
  };
2632
2632
  var space = {
2633
2633
  wrapperHorizontalPadding: theme.space.smallMedium,
2634
2634
  wrapperVerticalPadding: theme.space.small,
2635
- iconWrapperMarginRight: theme.space.small
2635
+ iconWrapperHorizontalMargin: theme.space.small,
2636
+ outlinedSelectedMarginTop: -theme.space.xxsmall
2636
2637
  };
2637
2638
  var sizes = {
2638
- wrapperBorder: theme.borderWidths.base
2639
+ outlinedDefaultBorder: theme.borderWidths.base,
2640
+ outlinedSelectedBorder: theme.borderWidths.medium
2639
2641
  };
2640
2642
  var radii = {
2641
2643
  wrapper: theme.radii.rounded
@@ -2815,7 +2817,7 @@ var getFABTheme = function getFABTheme(theme) {
2815
2817
  icon: theme.colors.onPrimary,
2816
2818
  actionItemBackground: theme.colors.overlayGlobalSurface,
2817
2819
  actionItemPressedBackground: theme.colors.overlayGlobalSurface,
2818
- backdropBackground: theme.colors.defaultSurface,
2820
+ backdropBackground: theme.colors.overlayGlobalSurface,
2819
2821
  titleText: theme.colors.onPrimary,
2820
2822
  actionItemText: theme.colors.onPrimary
2821
2823
  };
@@ -6995,7 +6997,7 @@ var Caption = function Caption(_ref) {
6995
6997
  }), children);
6996
6998
  };
6997
6999
 
6998
- var StyledLabel$1 = index$9(reactNative.Text)(function (_ref) {
7000
+ var StyledLabel = index$9(reactNative.Text)(function (_ref) {
6999
7001
  var themeIntent = _ref.themeIntent,
7000
7002
  theme = _ref.theme;
7001
7003
  return {
@@ -7014,7 +7016,7 @@ var Label = function Label(_ref) {
7014
7016
  _ref$allowFontScaling = _ref.allowFontScaling,
7015
7017
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
7016
7018
  nativeProps = _objectWithoutProperties(_ref, _excluded$B);
7017
- return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
7019
+ return /*#__PURE__*/React__namespace.default.createElement(StyledLabel, _extends$1({}, nativeProps, {
7018
7020
  themeIntent: intent,
7019
7021
  allowFontScaling: allowFontScaling
7020
7022
  }), children);
@@ -7822,7 +7824,7 @@ var IconContainer$1 = index$9(reactNative.View)(function (_ref2) {
7822
7824
  paddingLeft: theme.__hd__.alert.space.iconLeftPadding
7823
7825
  };
7824
7826
  });
7825
- var StyledIcon$2 = index$9(Icon)(function (_ref3) {
7827
+ var StyledIcon$1 = index$9(Icon)(function (_ref3) {
7826
7828
  var theme = _ref3.theme,
7827
7829
  themeIntent = _ref3.themeIntent;
7828
7830
  return {
@@ -7881,7 +7883,7 @@ var AlertIcon = function AlertIcon(_ref) {
7881
7883
  intent = _ref.intent;
7882
7884
  return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer$1, {
7883
7885
  testID: "alert-left-icon"
7884
- }, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$2, {
7886
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
7885
7887
  icon: icon,
7886
7888
  size: "small",
7887
7889
  themeIntent: intent
@@ -7922,7 +7924,7 @@ var Alert = function Alert(_ref2) {
7922
7924
  }, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledBody, {
7923
7925
  variant: "small-bold",
7924
7926
  themeIntent: intent
7925
- }, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(StyledIcon$2, {
7927
+ }, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
7926
7928
  icon: "cancel",
7927
7929
  size: "small",
7928
7930
  themeIntent: intent
@@ -8844,7 +8846,7 @@ var StyledFooter = index$9(reactNative.View)(function (_ref4) {
8844
8846
  flexDirection: 'row'
8845
8847
  };
8846
8848
  });
8847
- var StyledIconWrapper$4 = index$9(reactNative.View)(function (_ref5) {
8849
+ var StyledIconWrapper$3 = index$9(reactNative.View)(function (_ref5) {
8848
8850
  var theme = _ref5.theme;
8849
8851
  return {
8850
8852
  alignItems: 'center',
@@ -9362,7 +9364,7 @@ var Header = function Header(_ref) {
9362
9364
  style: {
9363
9365
  flex: 1
9364
9366
  }
9365
- }, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
9367
+ }, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
9366
9368
  icon: "cancel",
9367
9369
  onPress: onRequestClose,
9368
9370
  intent: "text",
@@ -12768,26 +12770,19 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
12768
12770
  }
12769
12771
  };
12770
12772
  var getBorderStyles = function getBorderStyles() {
12771
- var commonStyle = {
12772
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12773
- };
12774
- if (themeSelected) {
12775
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12776
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12777
- });
12778
- }
12779
12773
  switch (themeVariant) {
12780
12774
  case 'outlined':
12781
12775
  {
12782
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12783
- borderColor: theme.__hd__.chip.colors.wrapperBorder
12784
- });
12776
+ return {
12777
+ borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
12778
+ borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
12779
+ };
12785
12780
  }
12786
12781
  case 'filled':
12787
12782
  {
12788
- return _objectSpread2(_objectSpread2({}, commonStyle), {}, {
12789
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder
12790
- });
12783
+ return {
12784
+ borderColor: themeSelected ? theme.__hd__.chip.colors.wrapperSelectedBorder : theme.__hd__.chip.colors.wrapperSelectedBorder
12785
+ };
12791
12786
  }
12792
12787
  }
12793
12788
  };
@@ -12810,7 +12805,7 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
12810
12805
  case 'outlined':
12811
12806
  {
12812
12807
  return {
12813
- backgroundColor: theme.__hd__.chip.colors.outlinedBackground
12808
+ backgroundColor: theme.__hd__.chip.colors.outlinedDefaultBackground
12814
12809
  };
12815
12810
  }
12816
12811
  case 'filled':
@@ -12828,31 +12823,9 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
12828
12823
  borderRadius: theme.__hd__.chip.radii.wrapper,
12829
12824
  paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding,
12830
12825
  paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
12831
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder
12826
+ marginTop: themeSelected ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
12832
12827
  }, getShadowStyles()), getBorderStyles()), getBackgroundStyles());
12833
12828
  });
12834
- var StyledIconWrapper$3 = index$9(Box)(function (_ref2) {
12835
- var theme = _ref2.theme;
12836
- return {
12837
- marginRight: theme.__hd__.chip.space.iconWrapperMarginRight
12838
- };
12839
- });
12840
- var StyledLabel = index$9(Typography.Body)(function (_ref3) {
12841
- var themeSelected = _ref3.themeSelected,
12842
- themeVariant = _ref3.themeVariant,
12843
- theme = _ref3.theme;
12844
- return {
12845
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12846
- };
12847
- });
12848
- var StyledIcon$1 = index$9(Icon)(function (_ref4) {
12849
- var themeSelected = _ref4.themeSelected,
12850
- themeVariant = _ref4.themeVariant,
12851
- theme = _ref4.theme;
12852
- return {
12853
- color: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.colors.selectedPrimaryText : undefined
12854
- };
12855
- });
12856
12829
 
12857
12830
  var _excluded$k = ["label", "variant", "selected", "icon", "onPress"];
12858
12831
  var Chip = function Chip(_ref) {
@@ -12864,30 +12837,23 @@ var Chip = function Chip(_ref) {
12864
12837
  icon = _ref.icon,
12865
12838
  onPress = _ref.onPress,
12866
12839
  otherProps = _objectWithoutProperties(_ref, _excluded$k);
12867
- var internalIcon = React__namespace.default.useMemo(function () {
12868
- if (icon && variant === 'filled') {
12869
- return icon;
12870
- }
12871
- if (selected) {
12872
- return 'checkmark';
12873
- }
12874
- return undefined;
12875
- }, [icon, selected, variant]);
12876
12840
  return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
12877
12841
  onPress: onPress,
12878
12842
  themeVariant: variant,
12879
12843
  themeSelected: selected
12880
- }, otherProps), internalIcon && /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
12844
+ }, otherProps), icon && /*#__PURE__*/React__namespace.default.createElement(Box, {
12845
+ marginRight: "small"
12846
+ }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
12881
12847
  size: "xsmall",
12882
- icon: internalIcon,
12883
- themeSelected: selected,
12884
- themeVariant: variant,
12885
- testID: "chip-icon-".concat(internalIcon)
12886
- })), /*#__PURE__*/React__namespace.default.createElement(StyledLabel, {
12887
- variant: "small",
12888
- themeVariant: variant,
12889
- themeSelected: selected
12890
- }, label));
12848
+ icon: icon,
12849
+ testID: "chip-icon-".concat(icon)
12850
+ })), /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, label), variant === 'outlined' && selected && /*#__PURE__*/React__namespace.default.createElement(Box, {
12851
+ marginLeft: "small"
12852
+ }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
12853
+ size: "xsmall",
12854
+ icon: "cancel",
12855
+ testID: "selected-chip-icon-cancel"
12856
+ })));
12891
12857
  };
12892
12858
 
12893
12859
  var StyledWrapper$7 = index$9(reactNative.TouchableOpacity)(function (_ref) {
@@ -15009,7 +14975,7 @@ var StyledBackdrop = index$9(AnimatedPressable)(function (_ref2) {
15009
14975
  right: 0,
15010
14976
  top: 0,
15011
14977
  bottom: 0,
15012
- opacity: 0.8,
14978
+ opacity: 0.25,
15013
14979
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
15014
14980
  };
15015
14981
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.67.0-alpha.1",
3
+ "version": "8.67.0-alpha.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,8 +1,5 @@
1
1
  import styled from '@emotion/native';
2
2
  import { TouchableOpacity } from 'react-native';
3
- import Box from '../Box';
4
- import Icon from '../Icon';
5
- import Typography from '../Typography';
6
3
 
7
4
  type StyledChipWrapperProps = {
8
5
  themeVariant?: 'outlined' | 'filled';
@@ -23,28 +20,22 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
23
20
  };
24
21
 
25
22
  const getBorderStyles = () => {
26
- const commonStyle = {
27
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder,
28
- };
29
-
30
- if (themeSelected) {
31
- return {
32
- ...commonStyle,
33
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder,
34
- };
35
- }
36
-
37
23
  switch (themeVariant) {
38
24
  case 'outlined': {
39
25
  return {
40
- ...commonStyle,
41
- borderColor: theme.__hd__.chip.colors.wrapperBorder,
26
+ borderColor: themeSelected
27
+ ? theme.__hd__.chip.colors.outlinedSelectedBorder
28
+ : theme.__hd__.chip.colors.outlinedDefaultBorder,
29
+ borderWidth: themeSelected
30
+ ? theme.__hd__.chip.sizes.outlinedSelectedBorder
31
+ : theme.__hd__.chip.sizes.outlinedDefaultBorder,
42
32
  };
43
33
  }
44
34
  case 'filled': {
45
35
  return {
46
- ...commonStyle,
47
- borderColor: theme.__hd__.chip.colors.wrapperSelectedBorder,
36
+ borderColor: themeSelected
37
+ ? theme.__hd__.chip.colors.wrapperSelectedBorder
38
+ : theme.__hd__.chip.colors.wrapperSelectedBorder,
48
39
  };
49
40
  }
50
41
  }
@@ -67,7 +58,8 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
67
58
  switch (themeVariant) {
68
59
  case 'outlined': {
69
60
  return {
70
- backgroundColor: theme.__hd__.chip.colors.outlinedBackground,
61
+ backgroundColor:
62
+ theme.__hd__.chip.colors.outlinedDefaultBackground,
71
63
  };
72
64
  }
73
65
  case 'filled':
@@ -86,7 +78,9 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
86
78
  borderRadius: theme.__hd__.chip.radii.wrapper,
87
79
  paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding,
88
80
  paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
89
- borderWidth: theme.__hd__.chip.sizes.wrapperBorder,
81
+ marginTop: themeSelected
82
+ ? theme.__hd__.chip.space.outlinedSelectedMarginTop
83
+ : undefined,
90
84
  ...getShadowStyles(),
91
85
  ...getBorderStyles(),
92
86
  ...getBackgroundStyles(),
@@ -94,28 +88,4 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
94
88
  }
95
89
  );
96
90
 
97
- const StyledIconWrapper = styled(Box)(({ theme }) => ({
98
- marginRight: theme.__hd__.chip.space.iconWrapperMarginRight,
99
- }));
100
-
101
- const StyledLabel = styled(Typography.Body)<{
102
- themeSelected?: boolean;
103
- themeVariant?: 'outlined' | 'filled';
104
- }>(({ themeSelected, themeVariant, theme }) => ({
105
- color:
106
- themeSelected && themeVariant === 'outlined'
107
- ? theme.__hd__.chip.colors.selectedPrimaryText
108
- : undefined,
109
- }));
110
-
111
- const StyledIcon = styled(Icon)<{
112
- themeSelected?: boolean;
113
- themeVariant?: 'outlined' | 'filled';
114
- }>(({ themeSelected, themeVariant, theme }) => ({
115
- color:
116
- themeSelected && themeVariant === 'outlined'
117
- ? theme.__hd__.chip.colors.selectedPrimaryText
118
- : undefined,
119
- }));
120
-
121
- export { StyledChipWrapper, StyledIcon, StyledIconWrapper, StyledLabel };
91
+ export { StyledChipWrapper };