@hero-design/rn 8.76.1-alpha.0 → 8.77.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 (79) hide show
  1. package/.turbo/turbo-build.log +14 -3
  2. package/CHANGELOG.md +6 -8
  3. package/es/index.js +14 -14
  4. package/lib/index.js +14 -14
  5. package/package.json +2 -2
  6. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +18 -84
  7. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -2
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -1
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  10. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  11. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  12. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  13. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  14. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -4
  15. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +3 -3
  16. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +2 -2
  17. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +30 -30
  18. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  19. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -1
  20. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  21. package/src/components/FAB/ActionGroup/ActionItem.tsx +3 -1
  22. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  23. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +2 -2
  24. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +89 -162
  25. package/src/components/FAB/FAB.tsx +1 -1
  26. package/src/components/FAB/StyledFAB.tsx +3 -2
  27. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  28. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -25
  29. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  30. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -2
  31. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +6 -6
  32. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +2 -2
  33. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
  34. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  35. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -5
  36. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +10 -10
  37. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +14 -14
  38. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
  39. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  40. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  41. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  42. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +14 -14
  43. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -14
  44. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -1
  45. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -8
  46. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  47. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  48. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  49. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +32 -32
  50. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  51. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  52. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  53. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  54. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +2 -2
  55. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
  56. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +5 -5
  57. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  58. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +5 -5
  59. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -1
  60. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +18 -18
  61. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -7
  62. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
  63. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  64. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
  65. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  66. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
  67. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  68. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  69. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1 -1
  70. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  71. package/src/theme/ThemeSwitcher.tsx +2 -2
  72. package/src/theme/components/fab.ts +6 -6
  73. package/src/theme/getTheme.ts +2 -2
  74. package/stats/8.76.1/rn-stats.html +4844 -0
  75. package/stats/8.77.0/rn-stats.html +4842 -0
  76. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  77. package/types/components/FAB/StyledFAB.d.ts +3 -2
  78. package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +2 -2
  79. package/types/theme/ThemeSwitcher.d.ts +1 -1
@@ -1,8 +1,19 @@
1
- (node:6144) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
1
+ (node:6900) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
- (node:6144) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
3
+ (node:6900) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
4
4
  
5
5
  src/index.ts → lib/index.js, es/index.js...
6
6
  (!) [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
+ (!) [plugin typescript] src/components/PinInput/__tests__/index.spec.tsx (23:9): @rollup/plugin-typescript TS2322: Type '"one-time-code"' is not assignable to type '"name" | "off" | "tel" | "email" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "postal-code" | "street-address" | "username" | "tel-country-code" | "tel-national" | ... 23 more ... | undefined'.
8
+ /Volumes/Data/Projects/hero-design/packages/rn/src/components/PinInput/__tests__/index.spec.tsx:23:9
9
+ 
10
+ 23 autoComplete="one-time-code"
11
+    ~~~~~~~~~~~~
12
+
13
+ src/components/PinInput/index.tsx:74:3
14
+ 74 autoComplete?: ComponentProps<typeof TextInput>['autoComplete'];
15
+    ~~~~~~~~~~~~
16
+ The expected type comes from property 'autoComplete' which is declared here on type 'IntrinsicAttributes & PinInputProps & RefAttributes<PinInputHandler>'
17
+ 
7
18
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/Volumes/Data/Projects/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
8
- created lib/index.js, es/index.js in 34s
19
+ created lib/index.js, es/index.js in 35.9s
package/CHANGELOG.md CHANGED
@@ -1,18 +1,16 @@
1
1
  # @hero-design/rn
2
2
 
3
- ## 8.76.1-alpha.0
3
+ ## 8.77.0
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
6
 
7
- - [#3392](https://github.com/Thinkei/hero-design/pull/3392) [`e4e7617d654929c059e7dc28b752ad8f192893e2`](https://github.com/Thinkei/hero-design/commit/e4e7617d654929c059e7dc28b752ad8f192893e2) Thanks [@ttkien](https://github.com/ttkien)! - - Set theme swag light as default
7
+ - [#3476](https://github.com/Thinkei/hero-design/pull/3476) [`988c1ad81a6f9551a80237a6962ddd5ebf4ad04c`](https://github.com/Thinkei/hero-design/commit/988c1ad81a6f9551a80237a6962ddd5ebf4ad04c) Thanks [@ttkien](https://github.com/ttkien)! - support swagLight for ThemeSwitcher
8
8
 
9
- - Update Swag light colors
10
- - Update alert and FAB components
9
+ ## 8.76.1
11
10
 
12
- - [#3464](https://github.com/Thinkei/hero-design/pull/3464) [`a4d255c31603bbeb7731fe6e2ad6281219d5405d`](https://github.com/Thinkei/hero-design/commit/a4d255c31603bbeb7731fe6e2ad6281219d5405d) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Icon] Add thumb-down-outlined, handshake-outlined, box-1-outlined, play-arrow-filled, thumb-down icons
11
+ ### Patch Changes
13
12
 
14
- - Updated dependencies [[`e4e7617d654929c059e7dc28b752ad8f192893e2`](https://github.com/Thinkei/hero-design/commit/e4e7617d654929c059e7dc28b752ad8f192893e2)]:
15
- - @hero-design/colors@8.45.2-alpha.0
13
+ - [#3464](https://github.com/Thinkei/hero-design/pull/3464) [`a4d255c31603bbeb7731fe6e2ad6281219d5405d`](https://github.com/Thinkei/hero-design/commit/a4d255c31603bbeb7731fe6e2ad6281219d5405d) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Icon] Add thumb-down-outlined, handshake-outlined, box-1-outlined, play-arrow-filled, thumb-down icons
16
14
 
17
15
  ## 8.76.0
18
16
 
package/es/index.js CHANGED
@@ -1354,7 +1354,6 @@ var BASE_COLORS = {
1354
1354
  vermilion: '#de350b',
1355
1355
  violet1: '#8505a2',
1356
1356
  violet: '#7622d7',
1357
- darkViolet: '#460078',
1358
1357
  vodka: '#b5c3fd',
1359
1358
  theatreGold: '#a56822',
1360
1359
  uniformGreen: '#4d4628',
@@ -2829,13 +2828,13 @@ var getErrorTheme = function getErrorTheme(theme) {
2829
2828
 
2830
2829
  var getFABTheme = function getFABTheme(theme) {
2831
2830
  var colors = {
2832
- buttonBackground: theme.colors.overlayGlobalSurface,
2833
- buttonPressedBackground: theme.colors.overlayGlobalSurface,
2834
- buttonActiveBackground: theme.colors.overlayGlobalSurface,
2831
+ buttonBackground: theme.colors.primary,
2832
+ buttonPressedBackground: theme.colors.pressedSurface,
2833
+ buttonActiveBackground: theme.colors.pressedSurface,
2835
2834
  icon: theme.colors.onPrimary,
2836
- actionItemBackground: theme.colors.overlayGlobalSurface,
2837
- actionItemPressedBackground: theme.colors.overlayGlobalSurface,
2838
- backdropBackground: theme.colors.defaultSurface,
2835
+ actionItemBackground: theme.colors.secondary,
2836
+ actionItemPressedBackground: theme.colors.pressedSurface,
2837
+ backdropBackground: theme.colors.overlayGlobalSurface,
2839
2838
  titleText: theme.colors.onPrimary,
2840
2839
  actionItemText: theme.colors.onPrimary
2841
2840
  };
@@ -4003,7 +4002,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4003
4002
 
4004
4003
  var getTheme$1 = function getTheme() {
4005
4004
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
4006
- var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette;
4005
+ var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
4007
4006
  var globalTheme = getGlobalTheme(scale, systemPallete);
4008
4007
  return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
4009
4008
  __hd__: {
@@ -5225,7 +5224,7 @@ var useTheme = useTheme$1;
5225
5224
 
5226
5225
  var ThemeSwitcher = function ThemeSwitcher(_ref) {
5227
5226
  var _ref$name = _ref.name,
5228
- name = _ref$name === void 0 ? 'swagLight' : _ref$name,
5227
+ name = _ref$name === void 0 ? 'swag' : _ref$name,
5229
5228
  children = _ref.children;
5230
5229
  var theme = useMemo(function () {
5231
5230
  switch (name) {
@@ -14960,7 +14959,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
14960
14959
  }, nativeProps));
14961
14960
  };
14962
14961
 
14963
- var StyledActionItem = index$a(TouchableOpacity)(function (_ref) {
14962
+ var StyledActionItem = index$a(TouchableHighlight)(function (_ref) {
14964
14963
  var theme = _ref.theme;
14965
14964
  return {
14966
14965
  padding: theme.__hd__.fab.space.actionItemPadding,
@@ -14987,7 +14986,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref3) {
14987
14986
  };
14988
14987
  });
14989
14988
 
14990
- var AnimatedTouchableHighlight = Animated.createAnimatedComponent(TouchableOpacity);
14989
+ var AnimatedTouchableHighlight = Animated.createAnimatedComponent(TouchableHighlight);
14991
14990
  var StyledFAB$2 = index$a(AnimatedTouchableHighlight)(function (_ref) {
14992
14991
  var theme = _ref.theme,
14993
14992
  themeActive = _ref.themeActive;
@@ -15044,6 +15043,7 @@ var ActionItem = function ActionItem(_ref) {
15044
15043
  index = _ref.index,
15045
15044
  _ref$active = _ref.active,
15046
15045
  active = _ref$active === void 0 ? false : _ref$active;
15046
+ var theme = useTheme();
15047
15047
  var animatedValue = React__default.useRef(new Animated.Value(0));
15048
15048
  var translateY = animatedValue.current.interpolate({
15049
15049
  inputRange: [0, 1],
@@ -15065,7 +15065,7 @@ var ActionItem = function ActionItem(_ref) {
15065
15065
  }]
15066
15066
  }
15067
15067
  }, /*#__PURE__*/React__default.createElement(StyledActionItem, {
15068
- activeOpacity: 0.8,
15068
+ underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
15069
15069
  style: style,
15070
15070
  onPress: onPress,
15071
15071
  testID: testID
@@ -15229,7 +15229,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
15229
15229
  onLayout: function onLayout(event) {
15230
15230
  return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
15231
15231
  },
15232
- activeOpacity: 0.8,
15232
+ underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
15233
15233
  onPress: onPress,
15234
15234
  style: [style, {
15235
15235
  bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = StyleSheet$1.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom,
@@ -15301,7 +15301,7 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
15301
15301
  right: 0,
15302
15302
  top: 0,
15303
15303
  bottom: 0,
15304
- opacity: 0.8,
15304
+ opacity: 0.25,
15305
15305
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
15306
15306
  };
15307
15307
  });
package/lib/index.js CHANGED
@@ -1381,7 +1381,6 @@ var BASE_COLORS = {
1381
1381
  vermilion: '#de350b',
1382
1382
  violet1: '#8505a2',
1383
1383
  violet: '#7622d7',
1384
- darkViolet: '#460078',
1385
1384
  vodka: '#b5c3fd',
1386
1385
  theatreGold: '#a56822',
1387
1386
  uniformGreen: '#4d4628',
@@ -2856,13 +2855,13 @@ var getErrorTheme = function getErrorTheme(theme) {
2856
2855
 
2857
2856
  var getFABTheme = function getFABTheme(theme) {
2858
2857
  var colors = {
2859
- buttonBackground: theme.colors.overlayGlobalSurface,
2860
- buttonPressedBackground: theme.colors.overlayGlobalSurface,
2861
- buttonActiveBackground: theme.colors.overlayGlobalSurface,
2858
+ buttonBackground: theme.colors.primary,
2859
+ buttonPressedBackground: theme.colors.pressedSurface,
2860
+ buttonActiveBackground: theme.colors.pressedSurface,
2862
2861
  icon: theme.colors.onPrimary,
2863
- actionItemBackground: theme.colors.overlayGlobalSurface,
2864
- actionItemPressedBackground: theme.colors.overlayGlobalSurface,
2865
- backdropBackground: theme.colors.defaultSurface,
2862
+ actionItemBackground: theme.colors.secondary,
2863
+ actionItemPressedBackground: theme.colors.pressedSurface,
2864
+ backdropBackground: theme.colors.overlayGlobalSurface,
2866
2865
  titleText: theme.colors.onPrimary,
2867
2866
  actionItemText: theme.colors.onPrimary
2868
2867
  };
@@ -4030,7 +4029,7 @@ var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
4030
4029
 
4031
4030
  var getTheme$1 = function getTheme() {
4032
4031
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
4033
- var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette;
4032
+ var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
4034
4033
  var globalTheme = getGlobalTheme(scale, systemPallete);
4035
4034
  return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
4036
4035
  __hd__: {
@@ -5252,7 +5251,7 @@ var useTheme = useTheme$1;
5252
5251
 
5253
5252
  var ThemeSwitcher = function ThemeSwitcher(_ref) {
5254
5253
  var _ref$name = _ref.name,
5255
- name = _ref$name === void 0 ? 'swagLight' : _ref$name,
5254
+ name = _ref$name === void 0 ? 'swag' : _ref$name,
5256
5255
  children = _ref.children;
5257
5256
  var theme = React.useMemo(function () {
5258
5257
  switch (name) {
@@ -14987,7 +14986,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
14987
14986
  }, nativeProps));
14988
14987
  };
14989
14988
 
14990
- var StyledActionItem = index$a(reactNative.TouchableOpacity)(function (_ref) {
14989
+ var StyledActionItem = index$a(reactNative.TouchableHighlight)(function (_ref) {
14991
14990
  var theme = _ref.theme;
14992
14991
  return {
14993
14992
  padding: theme.__hd__.fab.space.actionItemPadding,
@@ -15014,7 +15013,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref3) {
15014
15013
  };
15015
15014
  });
15016
15015
 
15017
- var AnimatedTouchableHighlight = reactNative.Animated.createAnimatedComponent(reactNative.TouchableOpacity);
15016
+ var AnimatedTouchableHighlight = reactNative.Animated.createAnimatedComponent(reactNative.TouchableHighlight);
15018
15017
  var StyledFAB$2 = index$a(AnimatedTouchableHighlight)(function (_ref) {
15019
15018
  var theme = _ref.theme,
15020
15019
  themeActive = _ref.themeActive;
@@ -15071,6 +15070,7 @@ var ActionItem = function ActionItem(_ref) {
15071
15070
  index = _ref.index,
15072
15071
  _ref$active = _ref.active,
15073
15072
  active = _ref$active === void 0 ? false : _ref$active;
15073
+ var theme = useTheme();
15074
15074
  var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(0));
15075
15075
  var translateY = animatedValue.current.interpolate({
15076
15076
  inputRange: [0, 1],
@@ -15092,7 +15092,7 @@ var ActionItem = function ActionItem(_ref) {
15092
15092
  }]
15093
15093
  }
15094
15094
  }, /*#__PURE__*/React__namespace.default.createElement(StyledActionItem, {
15095
- activeOpacity: 0.8,
15095
+ underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
15096
15096
  style: style,
15097
15097
  onPress: onPress,
15098
15098
  testID: testID
@@ -15256,7 +15256,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
15256
15256
  onLayout: function onLayout(event) {
15257
15257
  return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
15258
15258
  },
15259
- activeOpacity: 0.8,
15259
+ underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
15260
15260
  onPress: onPress,
15261
15261
  style: [style, {
15262
15262
  bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom,
@@ -15328,7 +15328,7 @@ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
15328
15328
  right: 0,
15329
15329
  top: 0,
15330
15330
  bottom: 0,
15331
- opacity: 0.8,
15331
+ opacity: 0.25,
15332
15332
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
15333
15333
  };
15334
15334
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.76.1-alpha.0",
3
+ "version": "8.77.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -22,7 +22,7 @@
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/primitives-core": "11.0.0",
24
24
  "@emotion/react": "^11.9.3",
25
- "@hero-design/colors": "8.45.2-alpha.0",
25
+ "@hero-design/colors": "8.45.1",
26
26
  "date-fns": "^2.16.1",
27
27
  "hero-editor": "^1.9.21",
28
28
  "nanoid": "^4.0.2"
@@ -772,15 +772,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
772
772
  style={{}}
773
773
  >
774
774
  <View
775
- accessibilityState={
776
- {
777
- "busy": undefined,
778
- "checked": undefined,
779
- "disabled": undefined,
780
- "expanded": undefined,
781
- "selected": undefined,
782
- }
783
- }
784
775
  accessibilityValue={
785
776
  {
786
777
  "max": undefined,
@@ -790,7 +781,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
790
781
  }
791
782
  }
792
783
  accessible={true}
793
- collapsable={false}
794
784
  focusable={false}
795
785
  onClick={[Function]}
796
786
  onLayout={[Function]}
@@ -804,7 +794,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
804
794
  {
805
795
  "alignItems": "center",
806
796
  "alignSelf": "flex-end",
807
- "backgroundColor": "#000000",
797
+ "backgroundColor": "#401960",
808
798
  "borderRadius": 999,
809
799
  "bottom": undefined,
810
800
  "elevation": 3,
@@ -813,7 +803,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
813
803
  "justifyContent": "center",
814
804
  "marginRight": 24,
815
805
  "marginTop": 24,
816
- "opacity": 1,
817
806
  "padding": 20,
818
807
  "shadowColor": "#001f23",
819
808
  "shadowOffset": {
@@ -866,7 +855,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
866
855
  },
867
856
  [
868
857
  {
869
- "color": "#FDFBFF",
858
+ "color": "#ffffff",
870
859
  "lineHeight": 24,
871
860
  "textAlign": "center",
872
861
  "textAlignVertical": "center",
@@ -893,7 +882,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
893
882
  },
894
883
  [
895
884
  {
896
- "color": "#FDFBFF",
885
+ "color": "#ffffff",
897
886
  "marginHorizontal": 8,
898
887
  "textAlign": "center",
899
888
  "textAlignVertical": "center",
@@ -1686,15 +1675,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1686
1675
  </View>
1687
1676
  </RCTScrollView>
1688
1677
  <View
1689
- accessibilityState={
1690
- {
1691
- "busy": undefined,
1692
- "checked": undefined,
1693
- "disabled": undefined,
1694
- "expanded": undefined,
1695
- "selected": undefined,
1696
- }
1697
- }
1698
1678
  accessibilityValue={
1699
1679
  {
1700
1680
  "max": undefined,
@@ -1704,7 +1684,6 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1704
1684
  }
1705
1685
  }
1706
1686
  accessible={true}
1707
- collapsable={false}
1708
1687
  focusable={false}
1709
1688
  onClick={[Function]}
1710
1689
  onLayout={[Function]}
@@ -1718,14 +1697,13 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1718
1697
  {
1719
1698
  "alignItems": "center",
1720
1699
  "alignSelf": "flex-start",
1721
- "backgroundColor": "#000000",
1700
+ "backgroundColor": "#401960",
1722
1701
  "borderRadius": 999,
1723
1702
  "bottom": undefined,
1724
1703
  "elevation": 3,
1725
1704
  "flexDirection": "row",
1726
1705
  "height": 64,
1727
1706
  "justifyContent": "center",
1728
- "opacity": 1,
1729
1707
  "padding": 20,
1730
1708
  "shadowColor": "#001f23",
1731
1709
  "shadowOffset": {
@@ -1777,7 +1755,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1777
1755
  },
1778
1756
  [
1779
1757
  {
1780
- "color": "#FDFBFF",
1758
+ "color": "#ffffff",
1781
1759
  "lineHeight": 24,
1782
1760
  "textAlign": "center",
1783
1761
  "textAlignVertical": "center",
@@ -1804,7 +1782,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1804
1782
  },
1805
1783
  [
1806
1784
  {
1807
- "color": "#FDFBFF",
1785
+ "color": "#ffffff",
1808
1786
  "marginHorizontal": 8,
1809
1787
  "textAlign": "center",
1810
1788
  "textAlignVertical": "center",
@@ -1956,15 +1934,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1956
1934
  style={{}}
1957
1935
  >
1958
1936
  <View
1959
- accessibilityState={
1960
- {
1961
- "busy": undefined,
1962
- "checked": undefined,
1963
- "disabled": undefined,
1964
- "expanded": undefined,
1965
- "selected": undefined,
1966
- }
1967
- }
1968
1937
  accessibilityValue={
1969
1938
  {
1970
1939
  "max": undefined,
@@ -1974,7 +1943,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1974
1943
  }
1975
1944
  }
1976
1945
  accessible={true}
1977
- collapsable={false}
1978
1946
  focusable={false}
1979
1947
  onClick={[Function]}
1980
1948
  onLayout={[Function]}
@@ -1988,7 +1956,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1988
1956
  {
1989
1957
  "alignItems": "center",
1990
1958
  "alignSelf": "flex-end",
1991
- "backgroundColor": "#000000",
1959
+ "backgroundColor": "#401960",
1992
1960
  "borderRadius": 999,
1993
1961
  "bottom": undefined,
1994
1962
  "elevation": 3,
@@ -1997,7 +1965,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1997
1965
  "justifyContent": "center",
1998
1966
  "marginRight": 24,
1999
1967
  "marginTop": 24,
2000
- "opacity": 1,
2001
1968
  "padding": 20,
2002
1969
  "shadowColor": "#001f23",
2003
1970
  "shadowOffset": {
@@ -2050,7 +2017,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
2050
2017
  },
2051
2018
  [
2052
2019
  {
2053
- "color": "#FDFBFF",
2020
+ "color": "#ffffff",
2054
2021
  "lineHeight": 24,
2055
2022
  "textAlign": "center",
2056
2023
  "textAlignVertical": "center",
@@ -2077,7 +2044,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
2077
2044
  },
2078
2045
  [
2079
2046
  {
2080
- "color": "#FDFBFF",
2047
+ "color": "#ffffff",
2081
2048
  "marginHorizontal": 8,
2082
2049
  "textAlign": "center",
2083
2050
  "textAlignVertical": "center",
@@ -2210,15 +2177,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2210
2177
  </View>
2211
2178
  </RCTScrollView>
2212
2179
  <View
2213
- accessibilityState={
2214
- {
2215
- "busy": undefined,
2216
- "checked": undefined,
2217
- "disabled": undefined,
2218
- "expanded": undefined,
2219
- "selected": undefined,
2220
- }
2221
- }
2222
2180
  accessibilityValue={
2223
2181
  {
2224
2182
  "max": undefined,
@@ -2228,7 +2186,6 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2228
2186
  }
2229
2187
  }
2230
2188
  accessible={true}
2231
- collapsable={false}
2232
2189
  focusable={false}
2233
2190
  onClick={[Function]}
2234
2191
  onLayout={[Function]}
@@ -2242,14 +2199,13 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2242
2199
  {
2243
2200
  "alignItems": "center",
2244
2201
  "alignSelf": "flex-start",
2245
- "backgroundColor": "#000000",
2202
+ "backgroundColor": "#401960",
2246
2203
  "borderRadius": 999,
2247
2204
  "bottom": undefined,
2248
2205
  "elevation": 3,
2249
2206
  "flexDirection": "row",
2250
2207
  "height": 64,
2251
2208
  "justifyContent": "center",
2252
- "opacity": 1,
2253
2209
  "padding": 20,
2254
2210
  "shadowColor": "#001f23",
2255
2211
  "shadowOffset": {
@@ -2301,7 +2257,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2301
2257
  },
2302
2258
  [
2303
2259
  {
2304
- "color": "#FDFBFF",
2260
+ "color": "#ffffff",
2305
2261
  "lineHeight": 24,
2306
2262
  "textAlign": "center",
2307
2263
  "textAlignVertical": "center",
@@ -2328,7 +2284,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2328
2284
  },
2329
2285
  [
2330
2286
  {
2331
- "color": "#FDFBFF",
2287
+ "color": "#ffffff",
2332
2288
  "marginHorizontal": 8,
2333
2289
  "textAlign": "center",
2334
2290
  "textAlignVertical": "center",
@@ -2787,15 +2743,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2787
2743
  style={{}}
2788
2744
  >
2789
2745
  <View
2790
- accessibilityState={
2791
- {
2792
- "busy": undefined,
2793
- "checked": undefined,
2794
- "disabled": undefined,
2795
- "expanded": undefined,
2796
- "selected": undefined,
2797
- }
2798
- }
2799
2746
  accessibilityValue={
2800
2747
  {
2801
2748
  "max": undefined,
@@ -2805,7 +2752,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2805
2752
  }
2806
2753
  }
2807
2754
  accessible={true}
2808
- collapsable={false}
2809
2755
  focusable={false}
2810
2756
  onClick={[Function]}
2811
2757
  onLayout={[Function]}
@@ -2819,7 +2765,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2819
2765
  {
2820
2766
  "alignItems": "center",
2821
2767
  "alignSelf": "flex-end",
2822
- "backgroundColor": "#000000",
2768
+ "backgroundColor": "#401960",
2823
2769
  "borderRadius": 999,
2824
2770
  "bottom": undefined,
2825
2771
  "elevation": 3,
@@ -2828,7 +2774,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2828
2774
  "justifyContent": "center",
2829
2775
  "marginRight": 24,
2830
2776
  "marginTop": 24,
2831
- "opacity": 1,
2832
2777
  "padding": 20,
2833
2778
  "shadowColor": "#001f23",
2834
2779
  "shadowOffset": {
@@ -2881,7 +2826,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2881
2826
  },
2882
2827
  [
2883
2828
  {
2884
- "color": "#FDFBFF",
2829
+ "color": "#ffffff",
2885
2830
  "lineHeight": 24,
2886
2831
  "textAlign": "center",
2887
2832
  "textAlignVertical": "center",
@@ -2908,7 +2853,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2908
2853
  },
2909
2854
  [
2910
2855
  {
2911
- "color": "#FDFBFF",
2856
+ "color": "#ffffff",
2912
2857
  "marginHorizontal": 8,
2913
2858
  "textAlign": "center",
2914
2859
  "textAlignVertical": "center",
@@ -3348,15 +3293,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3348
3293
  </View>
3349
3294
  </RCTScrollView>
3350
3295
  <View
3351
- accessibilityState={
3352
- {
3353
- "busy": undefined,
3354
- "checked": undefined,
3355
- "disabled": undefined,
3356
- "expanded": undefined,
3357
- "selected": undefined,
3358
- }
3359
- }
3360
3296
  accessibilityValue={
3361
3297
  {
3362
3298
  "max": undefined,
@@ -3366,7 +3302,6 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3366
3302
  }
3367
3303
  }
3368
3304
  accessible={true}
3369
- collapsable={false}
3370
3305
  focusable={false}
3371
3306
  onClick={[Function]}
3372
3307
  onLayout={[Function]}
@@ -3380,14 +3315,13 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3380
3315
  {
3381
3316
  "alignItems": "center",
3382
3317
  "alignSelf": "flex-start",
3383
- "backgroundColor": "#000000",
3318
+ "backgroundColor": "#401960",
3384
3319
  "borderRadius": 999,
3385
3320
  "bottom": undefined,
3386
3321
  "elevation": 3,
3387
3322
  "flexDirection": "row",
3388
3323
  "height": 64,
3389
3324
  "justifyContent": "center",
3390
- "opacity": 1,
3391
3325
  "padding": 20,
3392
3326
  "shadowColor": "#001f23",
3393
3327
  "shadowOffset": {
@@ -3439,7 +3373,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3439
3373
  },
3440
3374
  [
3441
3375
  {
3442
- "color": "#FDFBFF",
3376
+ "color": "#ffffff",
3443
3377
  "lineHeight": 24,
3444
3378
  "textAlign": "center",
3445
3379
  "textAlignVertical": "center",
@@ -3466,7 +3400,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3466
3400
  },
3467
3401
  [
3468
3402
  {
3469
- "color": "#FDFBFF",
3403
+ "color": "#ffffff",
3470
3404
  "marginHorizontal": 8,
3471
3405
  "textAlign": "center",
3472
3406
  "textAlignVertical": "center",
@@ -38,7 +38,7 @@ exports[`StyledAvatar renders correctly with $variant 1`] = `
38
38
  onStartShouldSetResponder={[Function]}
39
39
  style={
40
40
  {
41
- "backgroundColor": "#460078",
41
+ "backgroundColor": "#401960",
42
42
  "borderRadius": 999,
43
43
  "height": 40,
44
44
  "left": 56,
@@ -160,7 +160,7 @@ exports[`StyledAvatar renders correctly with $variant 2`] = `
160
160
  onStartShouldSetResponder={[Function]}
161
161
  style={
162
162
  {
163
- "backgroundColor": "#460078",
163
+ "backgroundColor": "#401960",
164
164
  "borderRadius": 999,
165
165
  "height": 40,
166
166
  "left": undefined,
@@ -86,7 +86,7 @@ exports[`StyledPressable renders correct style 1`] = `
86
86
  onStartShouldSetResponder={[Function]}
87
87
  style={
88
88
  {
89
- "backgroundColor": "#460078",
89
+ "backgroundColor": "#401960",
90
90
  "borderRadius": 999,
91
91
  "height": 32,
92
92
  "opacity": 1,
@@ -38,7 +38,7 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
38
38
  onStartShouldSetResponder={[Function]}
39
39
  style={
40
40
  {
41
- "backgroundColor": "#460078",
41
+ "backgroundColor": "#401960",
42
42
  "borderRadius": 999,
43
43
  "height": 32,
44
44
  "opacity": 1,
@@ -177,7 +177,7 @@ exports[`Avatar prioritizes source over title 1`] = `
177
177
  onStartShouldSetResponder={[Function]}
178
178
  style={
179
179
  {
180
- "backgroundColor": "#460078",
180
+ "backgroundColor": "#401960",
181
181
  "borderRadius": 999,
182
182
  "height": 32,
183
183
  "opacity": 1,
@@ -270,7 +270,7 @@ exports[`Avatar shows title when there is no source 1`] = `
270
270
  onStartShouldSetResponder={[Function]}
271
271
  style={
272
272
  {
273
- "backgroundColor": "#460078",
273
+ "backgroundColor": "#401960",
274
274
  "borderRadius": 999,
275
275
  "height": 32,
276
276
  "opacity": 1,