@hero-design/rn 7.17.0 → 7.17.1

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 (84) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +107 -99
  3. package/lib/index.js +107 -99
  4. package/package.json +2 -2
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  10. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
  11. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
  12. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  13. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  15. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  16. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  17. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
  18. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +67 -67
  19. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
  20. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  21. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  22. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  23. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
  24. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  25. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +5 -5
  26. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -12
  27. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
  28. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  29. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  30. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  31. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  32. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  33. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  34. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  35. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
  36. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
  37. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
  38. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
  39. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  40. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  41. package/src/components/Progress/ProgressCircle.tsx +25 -22
  42. package/src/components/Progress/StyledProgressCircle.tsx +33 -28
  43. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
  44. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
  45. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
  46. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
  48. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
  49. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  50. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
  53. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +121 -121
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +94 -94
  57. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
  58. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  59. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
  60. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  61. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  62. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  63. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
  64. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  65. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +8 -8
  66. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
  67. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +87 -87
  68. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -5
  69. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -12
  70. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
  71. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  72. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
  73. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
  74. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +142 -143
  75. package/src/theme/components/alert.ts +3 -3
  76. package/src/theme/components/badge.ts +1 -1
  77. package/src/theme/components/card.ts +4 -4
  78. package/src/theme/components/list.ts +4 -4
  79. package/src/theme/components/pinInput.ts +2 -2
  80. package/src/theme/components/progress.ts +5 -5
  81. package/src/theme/components/toast.ts +3 -3
  82. package/src/theme/global/colors.ts +40 -39
  83. package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
  84. package/types/theme/components/progress.d.ts +1 -2
package/lib/index.js CHANGED
@@ -2388,7 +2388,7 @@ var blue$1 = colorScales.blue,
2388
2388
  smalt = colorScales.smalt,
2389
2389
  violet$1 = colorScales.violet,
2390
2390
  yellow$1 = colorScales.yellow;
2391
- var palette$6 = {
2391
+ ({
2392
2392
  black: '#000000',
2393
2393
  white: '#ffffff',
2394
2394
  blue: blue$1.base,
@@ -2473,7 +2473,7 @@ var palette$6 = {
2473
2473
  yellowDark75: yellow$1.darken75,
2474
2474
  yellowLight60: yellow$1.lighten60,
2475
2475
  yellowLight90: yellow$1.lighten90
2476
- };
2476
+ });
2477
2477
  var maasstrichtBlue = colorScales.maasstrichtBlue,
2478
2478
  grey$1 = colorScales.grey,
2479
2479
  pastelRed$1 = colorScales.pastelRed,
@@ -2563,7 +2563,7 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2563
2563
  var scarletGum = colorScales.scarletGum,
2564
2564
  violet1 = colorScales.violet1;
2565
2565
 
2566
- _objectSpread2(_objectSpread2({}, palette$5), {}, {
2566
+ var palette$2 = _objectSpread2(_objectSpread2({}, palette$5), {}, {
2567
2567
  scarletGumLight30: scarletGum.lighten30,
2568
2568
  scarletGumLight50: scarletGum.lighten50,
2569
2569
  scarletGumLight80: scarletGum.lighten80,
@@ -2601,46 +2601,47 @@ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2601
2601
  });
2602
2602
 
2603
2603
  var systemPalette = {
2604
- primary: palette$6.violet,
2605
- primaryLight: palette$6.violetLight60,
2606
- primaryDark: palette$6.purpleDark15,
2607
- primaryBackground: palette$6.violetLight90,
2604
+ primary: palette$2.violet,
2605
+ primaryLight: palette$2.violetLight50,
2606
+ primaryDark: palette$2.scarletGumLight30,
2607
+ primaryBackground: palette$2.violetLight90,
2608
2608
  primaryBackgroundDark: palette$5.maasstrichtBlueLight30,
2609
- secondary: palette$6.dodgerBlue,
2610
- secondaryLight: palette$6.dodgerBlueLight75,
2611
- secondaryBackground: palette$6.dodgerBlueLight90,
2612
- info: palette$6.dodgerBlue,
2609
+ secondary: palette$2.ultramarineBlue,
2610
+ secondaryLight: palette$2.vodka,
2611
+ secondaryBackground: palette$2.aliceBlue,
2612
+ info: palette$5.ultramarineBlue,
2613
2613
  infoMediumLight: palette$5.vodka,
2614
- infoLight: palette$6.dodgerBlueLight75,
2615
- infoBackground: palette$6.dodgerBlueLight90,
2616
- success: palette$6.green,
2614
+ infoLight: palette$5.vodka,
2615
+ infoBackground: palette$5.aliceBlue,
2616
+ success: palette$5.emerald,
2617
2617
  successLight: palette$5.emerald,
2618
- successDark: palette$6.greenDark30,
2619
- successBackground: palette$6.grotesqueGreenLight90,
2620
- danger: palette$6.red,
2618
+ successDark: palette$5.pineGreen,
2619
+ successBackground: palette$5.honeydew,
2620
+ danger: palette$5.vermilion,
2621
2621
  dangerMediumLight: palette$5.apple,
2622
- dangerLight: palette$6.redLight60,
2623
- dangerBackground: palette$6.redLight90,
2624
- warning: palette$6.orange,
2622
+ dangerLight: palette$5.pastelRed,
2623
+ dangerBackground: palette$5.linen,
2624
+ warning: palette$5.mellowApricot,
2625
2625
  warningLight: palette$5.mellowApricot,
2626
- warningDark: palette$6.orangeDark15,
2627
- warningBackground: palette$6.orangeLight90,
2628
- platformBackground: palette$6.white,
2629
- backgroundLight: palette$6.greyLight95,
2630
- backgroundDark: palette$6.greyDark75,
2631
- text: palette$6.greyDark75,
2632
- subduedText: palette$6.greyDark30,
2633
- disabledText: palette$6.greyDark15,
2634
- disabledLightText: palette$6.greyLight45,
2635
- invertedText: palette$6.white,
2636
- outline: palette$6.greyLight60,
2637
- archived: palette$6.greyLight45,
2626
+ warningDark: palette$5.deepSaffron,
2627
+ warningBackground: palette$5.seashell,
2628
+ platformBackground: palette$5.white,
2629
+ backgroundLight: palette$5.greyLight90,
2630
+ backgroundDark: palette$5.maasstrichtBlue,
2631
+ text: palette$5.maasstrichtBlue,
2632
+ subduedText: palette$5.maasstrichtBlueLight30,
2633
+ disabledText: palette$5.maasstrichtBlueLight50,
2634
+ disabledLightText: palette$5.greyLight30,
2635
+ invertedText: palette$5.white,
2636
+ outline: palette$5.greyLight75,
2637
+ archived: palette$5.greyLight45,
2638
2638
  archivedLight: palette$5.greyLight30,
2639
2639
  archivedDark: palette$5.sonicSilver,
2640
2640
  archivedBackground: palette$5.antiFlashWhite,
2641
- black: palette$6.black,
2642
- inactiveBackground: palette$6.greyDark30,
2643
- shadow: palette$6.greyLight60
2641
+ black: palette$5.black,
2642
+ inactiveBackground: palette$5.maasstrichtBlueLight50,
2643
+ shadow: palette$5.greyLight45 // waiting for new color
2644
+
2644
2645
  };
2645
2646
 
2646
2647
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -2786,9 +2787,9 @@ var getAlertTheme = function getAlertTheme(theme) {
2786
2787
  var colors = {
2787
2788
  success: theme.colors.success,
2788
2789
  warning: theme.colors.warning,
2789
- error: theme.colors.danger,
2790
- info: theme.colors.infoMediumLight,
2791
- divider: theme.colors.backgroundLight
2790
+ error: theme.colors.dangerLight,
2791
+ info: theme.colors.infoLight,
2792
+ divider: theme.colors.outline
2792
2793
  };
2793
2794
  var sizes = {
2794
2795
  height: scale(48)
@@ -2858,7 +2859,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
2858
2859
  info: theme.colors.info,
2859
2860
  success: theme.colors.successDark,
2860
2861
  warning: theme.colors.warningDark,
2861
- archived: theme.colors.archived,
2862
+ archived: theme.colors.archivedDark,
2862
2863
  text: theme.colors.invertedText
2863
2864
  };
2864
2865
  var fonts = {
@@ -3052,12 +3053,12 @@ var getCalendarTheme = function getCalendarTheme(theme) {
3052
3053
 
3053
3054
  var getCardTheme = function getCardTheme(theme) {
3054
3055
  var colors = {
3055
- dataCardIndicator: theme.colors.primaryDark,
3056
+ dataCardIndicator: theme.colors.primary,
3056
3057
  indicator: {
3057
3058
  archived: theme.colors.archivedLight,
3058
- info: theme.colors.infoMediumLight,
3059
- success: theme.colors.successLight,
3060
- warning: theme.colors.warningLight,
3059
+ info: theme.colors.infoLight,
3060
+ success: theme.colors.success,
3061
+ warning: theme.colors.warning,
3061
3062
  danger: theme.colors.dangerMediumLight
3062
3063
  }
3063
3064
  };
@@ -3292,11 +3293,11 @@ var getListTheme = function getListTheme(theme) {
3292
3293
  highlightedListItemContainerBackground: theme.colors.primaryBackground,
3293
3294
  listItemContainerBackground: theme.colors.platformBackground,
3294
3295
  leadingStatus: {
3295
- danger: theme.colors.danger,
3296
+ danger: theme.colors.dangerMediumLight,
3296
3297
  info: theme.colors.infoLight,
3297
- success: theme.colors.successDark,
3298
- warning: theme.colors.warningLight,
3299
- archived: theme.colors.archived
3298
+ success: theme.colors.success,
3299
+ warning: theme.colors.warning,
3300
+ archived: theme.colors.archivedLight
3300
3301
  }
3301
3302
  };
3302
3303
  var space = {
@@ -3381,16 +3382,15 @@ var getProgressTheme = function getProgressTheme(theme) {
3381
3382
  var colors = {
3382
3383
  primary: theme.colors.primary,
3383
3384
  success: theme.colors.success,
3384
- warning: theme.colors.warning,
3385
+ warning: theme.colors.warningDark,
3385
3386
  danger: theme.colors.danger,
3386
3387
  info: theme.colors.info,
3387
3388
  background: theme.colors.outline,
3388
3389
  innerBackground: theme.colors.platformBackground
3389
3390
  };
3390
3391
  var sizes = {
3391
- radius: theme.space.xxxlarge,
3392
- strokeWidth: theme.space.small,
3393
- barHeight: theme.space.xsmall
3392
+ circleWidth: scale(76),
3393
+ barHeight: scale(4)
3394
3394
  };
3395
3395
  var radii = {
3396
3396
  "default": theme.radii.rounded
@@ -3741,9 +3741,9 @@ var getToastTheme = function getToastTheme(theme) {
3741
3741
  var colors = {
3742
3742
  success: theme.colors.success,
3743
3743
  warning: theme.colors.warning,
3744
- error: theme.colors.danger,
3745
- info: theme.colors.infoMediumLight,
3746
- divider: theme.colors.backgroundLight
3744
+ error: theme.colors.dangerLight,
3745
+ info: theme.colors.infoLight,
3746
+ divider: theme.colors.outline
3747
3747
  };
3748
3748
  var sizes = {
3749
3749
  height: scale(48)
@@ -18358,7 +18358,7 @@ function ContentNavigator(_ref) {
18358
18358
  }));
18359
18359
  }
18360
18360
 
18361
- var StyledContainer$3 = index$6(reactNative.View)(function (_ref) {
18361
+ var StyledContainer$4 = index$6(reactNative.View)(function (_ref) {
18362
18362
  var theme = _ref.theme;
18363
18363
  return {
18364
18364
  backgroundColor: theme.__hd__.calendar.colors.background
@@ -18547,7 +18547,7 @@ var Calendar = function Calendar(_ref) {
18547
18547
  var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
18548
18548
  return date !== undefined;
18549
18549
  }) || maxDate <= lastDateOfMonth;
18550
- return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, null, /*#__PURE__*/React__default["default"].createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default["default"].createElement(ContentNavigator, {
18550
+ return /*#__PURE__*/React__default["default"].createElement(StyledContainer$4, null, /*#__PURE__*/React__default["default"].createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default["default"].createElement(ContentNavigator, {
18551
18551
  value: formatTime('MMMM yyyy', visibleDate),
18552
18552
  onPreviousPress: onPreviousPress,
18553
18553
  onNextPress: onNextPress,
@@ -18722,7 +18722,7 @@ var CheckBox = function CheckBox(_ref) {
18722
18722
  }));
18723
18723
  };
18724
18724
 
18725
- var StyledContainer$2 = index$6(reactNative.View)(function (_ref) {
18725
+ var StyledContainer$3 = index$6(reactNative.View)(function (_ref) {
18726
18726
  var theme = _ref.theme;
18727
18727
  return {
18728
18728
  width: '100%',
@@ -18944,7 +18944,7 @@ var TextInput = function TextInput(_ref2) {
18944
18944
  });
18945
18945
  var shouldShowMaxLength = maxLength !== undefined;
18946
18946
  var theme = useTheme();
18947
- return /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
18947
+ return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
18948
18948
  style: style,
18949
18949
  pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
18950
18950
  testID: testID
@@ -19182,7 +19182,7 @@ var DatePicker = function DatePicker(props) {
19182
19182
  };
19183
19183
 
19184
19184
  var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
19185
- var StyledContainer$1 = index$6(reactNative.View)(function (_ref) {
19185
+ var StyledContainer$2 = index$6(reactNative.View)(function (_ref) {
19186
19186
  var theme = _ref.theme,
19187
19187
  enableShadow = _ref.enableShadow;
19188
19188
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -19247,7 +19247,7 @@ var Drawer = function Drawer(_ref) {
19247
19247
  return animation.stop();
19248
19248
  };
19249
19249
  }, [visible]);
19250
- return /*#__PURE__*/React__default["default"].createElement(StyledContainer$1, {
19250
+ return /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
19251
19251
  testID: testID,
19252
19252
  enableShadow: enableShadow,
19253
19253
  pointerEvents: "box-none"
@@ -19498,7 +19498,7 @@ var ActionItem = function ActionItem(_ref) {
19498
19498
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
19499
19499
  };
19500
19500
 
19501
- var StyledContainer = index$6(reactNative.View)({
19501
+ var StyledContainer$1 = index$6(reactNative.View)({
19502
19502
  position: 'absolute',
19503
19503
  left: 0,
19504
19504
  right: 0,
@@ -19586,7 +19586,7 @@ var ActionGroup = function ActionGroup(_ref2) {
19586
19586
  inputRange: [0, 1],
19587
19587
  outputRange: [0, 1]
19588
19588
  });
19589
- return /*#__PURE__*/React__default["default"].createElement(StyledContainer, {
19589
+ return /*#__PURE__*/React__default["default"].createElement(StyledContainer$1, {
19590
19590
  testID: testID,
19591
19591
  pointerEvents: "box-none",
19592
19592
  style: style
@@ -20036,41 +20036,52 @@ function PinInput(_ref2) {
20036
20036
  }));
20037
20037
  }
20038
20038
 
20039
- var HalfCircleWrapper = index$6(reactNative.View)(function (_ref) {
20039
+ var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
20040
+
20041
+ var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
20042
+
20043
+ var StyledContainer = index$6(reactNative.View)(function (_ref) {
20040
20044
  var theme = _ref.theme;
20041
20045
  return {
20042
- width: theme.__hd__.progress.sizes.radius,
20043
- height: theme.__hd__.progress.sizes.radius * 2,
20046
+ flexDirection: 'row',
20047
+ borderRadius: theme.__hd__.progress.radii["default"]
20048
+ };
20049
+ });
20050
+ var StyledHalfCircleWrapper = index$6(reactNative.View)(function (_ref2) {
20051
+ var theme = _ref2.theme;
20052
+ return {
20053
+ width: theme.__hd__.progress.sizes.circleWidth / 2,
20054
+ height: theme.__hd__.progress.sizes.circleWidth,
20044
20055
  overflow: 'hidden'
20045
20056
  };
20046
20057
  });
20047
- var HalfCircleInnerFG = index$6(reactNative.View)(function (_ref2) {
20048
- var theme = _ref2.theme,
20049
- themeIntent = _ref2.themeIntent;
20058
+ var StyledHalfCircleInnerFG = index$6(reactNative.View)(function (_ref3) {
20059
+ var theme = _ref3.theme,
20060
+ themeIntent = _ref3.themeIntent;
20050
20061
  return {
20051
- width: theme.__hd__.progress.sizes.radius * 2,
20052
- height: theme.__hd__.progress.sizes.radius * 2,
20062
+ width: theme.__hd__.progress.sizes.circleWidth,
20063
+ height: theme.__hd__.progress.sizes.circleWidth,
20053
20064
  backgroundColor: theme.__hd__.progress.colors[themeIntent],
20054
20065
  borderRadius: theme.__hd__.progress.radii["default"]
20055
20066
  };
20056
20067
  });
20057
- var HalfCircleInnerBG = index$6(reactNative.View)(function (_ref3) {
20058
- var theme = _ref3.theme;
20068
+ var StyledHalfCircleInnerBG = index$6(reactNative.View)(function (_ref4) {
20069
+ var theme = _ref4.theme;
20059
20070
  return {
20060
- width: theme.__hd__.progress.sizes.radius * 2,
20061
- height: theme.__hd__.progress.sizes.radius * 2,
20071
+ width: theme.__hd__.progress.sizes.circleWidth,
20072
+ height: theme.__hd__.progress.sizes.circleWidth,
20062
20073
  backgroundColor: theme.__hd__.progress.colors.background,
20063
20074
  borderRadius: theme.__hd__.progress.radii["default"]
20064
20075
  };
20065
20076
  });
20066
- var DonutCircle = index$6(reactNative.View)(function (_ref4) {
20067
- var theme = _ref4.theme;
20077
+ var StyledDonutCircle = index$6(reactNative.View)(function (_ref5) {
20078
+ var theme = _ref5.theme;
20068
20079
  return {
20069
20080
  position: 'absolute',
20070
- top: theme.__hd__.progress.sizes.strokeWidth,
20071
- left: theme.__hd__.progress.sizes.strokeWidth,
20072
- width: theme.__hd__.progress.sizes.radius * 2 - theme.__hd__.progress.sizes.strokeWidth * 2,
20073
- height: theme.__hd__.progress.sizes.radius * 2 - theme.__hd__.progress.sizes.strokeWidth * 2,
20081
+ top: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
20082
+ left: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
20083
+ width: theme.__hd__.progress.sizes.circleWidth * INNER_CIRCLE_PERCENTAGE,
20084
+ height: theme.__hd__.progress.sizes.circleWidth * INNER_CIRCLE_PERCENTAGE,
20074
20085
  zIndex: 3,
20075
20086
  backgroundColor: theme.__hd__.progress.colors.innerBackground,
20076
20087
  borderRadius: theme.__hd__.progress.radii["default"],
@@ -20078,15 +20089,15 @@ var DonutCircle = index$6(reactNative.View)(function (_ref4) {
20078
20089
  justifyContent: 'center'
20079
20090
  };
20080
20091
  });
20081
- var StrokeEnd = index$6(reactNative.View)(function (_ref5) {
20082
- var theme = _ref5.theme,
20083
- themeIntent = _ref5.themeIntent;
20092
+ var StyledStrokeEnd = index$6(reactNative.View)(function (_ref6) {
20093
+ var theme = _ref6.theme,
20094
+ themeIntent = _ref6.themeIntent;
20084
20095
  return {
20085
20096
  position: 'absolute',
20086
20097
  top: 0,
20087
- left: theme.__hd__.progress.sizes.radius - theme.__hd__.progress.sizes.strokeWidth / 2,
20088
- width: theme.__hd__.progress.sizes.strokeWidth,
20089
- height: theme.__hd__.progress.sizes.strokeWidth,
20098
+ left: theme.__hd__.progress.sizes.circleWidth / 2 - theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE / 2,
20099
+ width: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
20100
+ height: theme.__hd__.progress.sizes.circleWidth * STROKE_WIDTH_PERCENTAGE,
20090
20101
  borderRadius: theme.__hd__.progress.radii["default"],
20091
20102
  backgroundColor: theme.__hd__.progress.colors[themeIntent],
20092
20103
  zIndex: 2
@@ -20099,7 +20110,7 @@ var HalfCircle = function HalfCircle(_ref) {
20099
20110
  var type = _ref.type,
20100
20111
  _ref$themeIntent = _ref.themeIntent,
20101
20112
  themeIntent = _ref$themeIntent === void 0 ? 'primary' : _ref$themeIntent;
20102
- return /*#__PURE__*/React__default["default"].createElement(HalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__default["default"].createElement(HalfCircleInnerBG, null) : /*#__PURE__*/React__default["default"].createElement(HalfCircleInnerFG, {
20113
+ return /*#__PURE__*/React__default["default"].createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__default["default"].createElement(StyledHalfCircleInnerBG, null) : /*#__PURE__*/React__default["default"].createElement(StyledHalfCircleInnerFG, {
20103
20114
  themeIntent: themeIntent
20104
20115
  }));
20105
20116
  };
@@ -20113,7 +20124,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20113
20124
  nativeProps = _objectWithoutProperties(_ref2, _excluded$3);
20114
20125
 
20115
20126
  var theme = useTheme$1();
20116
- var radius = theme.__hd__.progress.sizes.radius;
20127
+ var radius = theme.__hd__.progress.sizes.circleWidth / 2;
20117
20128
  var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
20118
20129
  React.useEffect(function () {
20119
20130
  var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
@@ -20151,11 +20162,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20151
20162
  return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
20152
20163
  testID: testID,
20153
20164
  style: style
20154
- }), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
20155
- style: {
20156
- flexDirection: 'row'
20157
- }
20158
- }, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
20165
+ }), /*#__PURE__*/React__default["default"].createElement(StyledContainer, null, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
20159
20166
  type: "foreground",
20160
20167
  themeIntent: intent
20161
20168
  }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
@@ -20175,7 +20182,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20175
20182
  transform: [{
20176
20183
  rotate: '180deg'
20177
20184
  }],
20178
- zIndex: 1
20185
+ zIndex: 1,
20186
+ marginLeft: -0.1
20179
20187
  }
20180
20188
  }, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
20181
20189
  type: "foreground",
@@ -20193,7 +20201,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20193
20201
  })
20194
20202
  }, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
20195
20203
  type: "background"
20196
- }))), /*#__PURE__*/React__default["default"].createElement(StrokeEnd, {
20204
+ }))), /*#__PURE__*/React__default["default"].createElement(StyledStrokeEnd, {
20197
20205
  themeIntent: intent
20198
20206
  }), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
20199
20207
  style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -20202,10 +20210,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
20202
20210
  rotate: interpolateDotRotate
20203
20211
  }]
20204
20212
  })
20205
- }, /*#__PURE__*/React__default["default"].createElement(StrokeEnd, {
20213
+ }, /*#__PURE__*/React__default["default"].createElement(StyledStrokeEnd, {
20206
20214
  themeIntent: intent
20207
- })), /*#__PURE__*/React__default["default"].createElement(DonutCircle, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
20208
- fontSize: "xlarge"
20215
+ })), /*#__PURE__*/React__default["default"].createElement(StyledDonutCircle, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
20216
+ fontSize: "large"
20209
20217
  }, "".concat(value, "%")))));
20210
20218
  };
20211
20219
 
@@ -40383,7 +40391,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
40383
40391
  break;
40384
40392
  }
40385
40393
  }, []);
40386
- return /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
40394
+ return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
40387
40395
  style: style,
40388
40396
  testID: testID
40389
40397
  }, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.17.0",
3
+ "version": "7.17.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/native": "^11.9.3",
22
22
  "@emotion/react": "^11.9.3",
23
- "@hero-design/colors": "7.17.0",
23
+ "@hero-design/colors": "7.17.1",
24
24
  "date-fns": "^2.16.1",
25
25
  "events": "^3.2.0",
26
26
  "hero-editor": "^1.9.9"
@@ -38,7 +38,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
38
38
  style={
39
39
  Array [
40
40
  Object {
41
- "color": "#292a2b",
41
+ "color": "#001f23",
42
42
  "fontFamily": "BeVietnamPro-Regular",
43
43
  "fontSize": 14,
44
44
  "letterSpacing": 0.42,
@@ -58,7 +58,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
58
58
  style={
59
59
  Array [
60
60
  Object {
61
- "color": "#7622d7",
61
+ "color": "#8505a2",
62
62
  "fontSize": 20,
63
63
  },
64
64
  undefined,
@@ -111,7 +111,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
111
111
  style={
112
112
  Array [
113
113
  Object {
114
- "color": "#292a2b",
114
+ "color": "#001f23",
115
115
  "fontFamily": "BeVietnamPro-Regular",
116
116
  "fontSize": 14,
117
117
  "letterSpacing": 0.42,
@@ -170,7 +170,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
170
170
  style={
171
171
  Array [
172
172
  Object {
173
- "color": "#292a2b",
173
+ "color": "#001f23",
174
174
  "fontFamily": "BeVietnamPro-SemiBold",
175
175
  "fontSize": 16,
176
176
  "letterSpacing": 0.48,
@@ -190,7 +190,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
190
190
  style={
191
191
  Array [
192
192
  Object {
193
- "color": "#7622d7",
193
+ "color": "#8505a2",
194
194
  "fontSize": 20,
195
195
  },
196
196
  undefined,
@@ -243,7 +243,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
243
243
  style={
244
244
  Array [
245
245
  Object {
246
- "color": "#292a2b",
246
+ "color": "#001f23",
247
247
  "fontFamily": "BeVietnamPro-Regular",
248
248
  "fontSize": 14,
249
249
  "letterSpacing": 0.42,
@@ -302,7 +302,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
302
302
  style={
303
303
  Array [
304
304
  Object {
305
- "color": "#292a2b",
305
+ "color": "#001f23",
306
306
  "fontFamily": "BeVietnamPro-SemiBold",
307
307
  "fontSize": 16,
308
308
  "letterSpacing": 0.48,
@@ -322,7 +322,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
322
322
  style={
323
323
  Array [
324
324
  Object {
325
- "color": "#7622d7",
325
+ "color": "#8505a2",
326
326
  "fontSize": 20,
327
327
  },
328
328
  undefined,
@@ -375,7 +375,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
375
375
  style={
376
376
  Array [
377
377
  Object {
378
- "color": "#292a2b",
378
+ "color": "#001f23",
379
379
  "fontFamily": "BeVietnamPro-Regular",
380
380
  "fontSize": 14,
381
381
  "letterSpacing": 0.42,
@@ -434,7 +434,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
434
434
  style={
435
435
  Array [
436
436
  Object {
437
- "color": "#292a2b",
437
+ "color": "#001f23",
438
438
  "fontFamily": "BeVietnamPro-SemiBold",
439
439
  "fontSize": 16,
440
440
  "letterSpacing": 0.48,
@@ -454,7 +454,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
454
454
  style={
455
455
  Array [
456
456
  Object {
457
- "color": "#7622d7",
457
+ "color": "#8505a2",
458
458
  "fontSize": 20,
459
459
  },
460
460
  undefined,
@@ -507,7 +507,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
507
507
  style={
508
508
  Array [
509
509
  Object {
510
- "color": "#292a2b",
510
+ "color": "#001f23",
511
511
  "fontFamily": "BeVietnamPro-Regular",
512
512
  "fontSize": 14,
513
513
  "letterSpacing": 0.42,