@hero-design/rn 8.80.0-alpha.1 → 8.80.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 (40) hide show
  1. package/.turbo/turbo-build.log +7 -0
  2. package/CHANGELOG.md +8 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +146 -143
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +146 -143
  7. package/package.json +2 -3
  8. package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +72 -6
  9. package/src/components/FAB/ActionGroup/ActionItem.tsx +1 -3
  10. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
  11. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +2 -2
  12. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +148 -75
  13. package/src/components/FAB/FAB.tsx +1 -1
  14. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +24 -2
  15. package/src/components/FAB/StyledFAB.tsx +2 -3
  16. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +24 -2
  17. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  18. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  19. package/src/components/Icon/IconList.ts +1 -0
  20. package/src/components/PinInput/__tests__/index.spec.tsx +4 -0
  21. package/src/components/PinInput/index.tsx +7 -3
  22. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +6 -6
  23. package/src/theme/components/fab.ts +6 -6
  24. package/stats/8.80.0/rn-stats.html +2 -0
  25. package/stats/8.80.1/rn-stats.html +4842 -0
  26. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  27. package/types/components/FAB/StyledFAB.d.ts +2 -3
  28. package/types/components/Icon/IconList.d.ts +1 -1
  29. package/types/components/Icon/index.d.ts +1 -1
  30. package/types/components/Icon/utils.d.ts +1 -1
  31. package/types/components/Search/utils.d.ts +2 -2
  32. package/types/components/TextInput/index.d.ts +3 -3
  33. package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +0 -31
  34. package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +0 -60
  35. package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +0 -40
  36. package/types/components/CompoundSearch/index.d.ts +0 -8
  37. package/types/components/CompoundSearch/utils.d.ts +0 -8
  38. package/types/components/FloatingIsland/SingleLine/StyledSingleLine.d.ts +0 -15
  39. package/types/components/FloatingIsland/SingleLine/index.d.ts +0 -24
  40. package/types/theme/components/compoundSearch.d.ts +0 -36
@@ -772,6 +772,15 @@ 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
+ }
775
784
  accessibilityValue={
776
785
  {
777
786
  "max": undefined,
@@ -781,6 +790,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
781
790
  }
782
791
  }
783
792
  accessible={true}
793
+ collapsable={false}
784
794
  focusable={false}
785
795
  onClick={[Function]}
786
796
  onLayout={[Function]}
@@ -794,7 +804,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
794
804
  {
795
805
  "alignItems": "center",
796
806
  "alignSelf": "flex-end",
797
- "backgroundColor": "#401960",
807
+ "backgroundColor": "#000000",
798
808
  "borderRadius": 999,
799
809
  "bottom": undefined,
800
810
  "elevation": 3,
@@ -803,6 +813,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
803
813
  "justifyContent": "center",
804
814
  "marginRight": 24,
805
815
  "marginTop": 24,
816
+ "opacity": 1,
806
817
  "padding": 20,
807
818
  "shadowColor": "#001f23",
808
819
  "shadowOffset": {
@@ -1675,6 +1686,15 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1675
1686
  </View>
1676
1687
  </RCTScrollView>
1677
1688
  <View
1689
+ accessibilityState={
1690
+ {
1691
+ "busy": undefined,
1692
+ "checked": undefined,
1693
+ "disabled": undefined,
1694
+ "expanded": undefined,
1695
+ "selected": undefined,
1696
+ }
1697
+ }
1678
1698
  accessibilityValue={
1679
1699
  {
1680
1700
  "max": undefined,
@@ -1684,6 +1704,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1684
1704
  }
1685
1705
  }
1686
1706
  accessible={true}
1707
+ collapsable={false}
1687
1708
  focusable={false}
1688
1709
  onClick={[Function]}
1689
1710
  onLayout={[Function]}
@@ -1697,13 +1718,14 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
1697
1718
  {
1698
1719
  "alignItems": "center",
1699
1720
  "alignSelf": "flex-start",
1700
- "backgroundColor": "#401960",
1721
+ "backgroundColor": "#000000",
1701
1722
  "borderRadius": 999,
1702
1723
  "bottom": undefined,
1703
1724
  "elevation": 3,
1704
1725
  "flexDirection": "row",
1705
1726
  "height": 64,
1706
1727
  "justifyContent": "center",
1728
+ "opacity": 1,
1707
1729
  "padding": 20,
1708
1730
  "shadowColor": "#001f23",
1709
1731
  "shadowOffset": {
@@ -1934,6 +1956,15 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1934
1956
  style={{}}
1935
1957
  >
1936
1958
  <View
1959
+ accessibilityState={
1960
+ {
1961
+ "busy": undefined,
1962
+ "checked": undefined,
1963
+ "disabled": undefined,
1964
+ "expanded": undefined,
1965
+ "selected": undefined,
1966
+ }
1967
+ }
1937
1968
  accessibilityValue={
1938
1969
  {
1939
1970
  "max": undefined,
@@ -1943,6 +1974,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1943
1974
  }
1944
1975
  }
1945
1976
  accessible={true}
1977
+ collapsable={false}
1946
1978
  focusable={false}
1947
1979
  onClick={[Function]}
1948
1980
  onLayout={[Function]}
@@ -1956,7 +1988,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1956
1988
  {
1957
1989
  "alignItems": "center",
1958
1990
  "alignSelf": "flex-end",
1959
- "backgroundColor": "#401960",
1991
+ "backgroundColor": "#000000",
1960
1992
  "borderRadius": 999,
1961
1993
  "bottom": undefined,
1962
1994
  "elevation": 3,
@@ -1965,6 +1997,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
1965
1997
  "justifyContent": "center",
1966
1998
  "marginRight": 24,
1967
1999
  "marginTop": 24,
2000
+ "opacity": 1,
1968
2001
  "padding": 20,
1969
2002
  "shadowColor": "#001f23",
1970
2003
  "shadowOffset": {
@@ -2177,6 +2210,15 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2177
2210
  </View>
2178
2211
  </RCTScrollView>
2179
2212
  <View
2213
+ accessibilityState={
2214
+ {
2215
+ "busy": undefined,
2216
+ "checked": undefined,
2217
+ "disabled": undefined,
2218
+ "expanded": undefined,
2219
+ "selected": undefined,
2220
+ }
2221
+ }
2180
2222
  accessibilityValue={
2181
2223
  {
2182
2224
  "max": undefined,
@@ -2186,6 +2228,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2186
2228
  }
2187
2229
  }
2188
2230
  accessible={true}
2231
+ collapsable={false}
2189
2232
  focusable={false}
2190
2233
  onClick={[Function]}
2191
2234
  onLayout={[Function]}
@@ -2199,13 +2242,14 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
2199
2242
  {
2200
2243
  "alignItems": "center",
2201
2244
  "alignSelf": "flex-start",
2202
- "backgroundColor": "#401960",
2245
+ "backgroundColor": "#000000",
2203
2246
  "borderRadius": 999,
2204
2247
  "bottom": undefined,
2205
2248
  "elevation": 3,
2206
2249
  "flexDirection": "row",
2207
2250
  "height": 64,
2208
2251
  "justifyContent": "center",
2252
+ "opacity": 1,
2209
2253
  "padding": 20,
2210
2254
  "shadowColor": "#001f23",
2211
2255
  "shadowOffset": {
@@ -2743,6 +2787,15 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2743
2787
  style={{}}
2744
2788
  >
2745
2789
  <View
2790
+ accessibilityState={
2791
+ {
2792
+ "busy": undefined,
2793
+ "checked": undefined,
2794
+ "disabled": undefined,
2795
+ "expanded": undefined,
2796
+ "selected": undefined,
2797
+ }
2798
+ }
2746
2799
  accessibilityValue={
2747
2800
  {
2748
2801
  "max": undefined,
@@ -2752,6 +2805,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2752
2805
  }
2753
2806
  }
2754
2807
  accessible={true}
2808
+ collapsable={false}
2755
2809
  focusable={false}
2756
2810
  onClick={[Function]}
2757
2811
  onLayout={[Function]}
@@ -2765,7 +2819,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2765
2819
  {
2766
2820
  "alignItems": "center",
2767
2821
  "alignSelf": "flex-end",
2768
- "backgroundColor": "#401960",
2822
+ "backgroundColor": "#000000",
2769
2823
  "borderRadius": 999,
2770
2824
  "bottom": undefined,
2771
2825
  "elevation": 3,
@@ -2774,6 +2828,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
2774
2828
  "justifyContent": "center",
2775
2829
  "marginRight": 24,
2776
2830
  "marginTop": 24,
2831
+ "opacity": 1,
2777
2832
  "padding": 20,
2778
2833
  "shadowColor": "#001f23",
2779
2834
  "shadowOffset": {
@@ -3293,6 +3348,15 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3293
3348
  </View>
3294
3349
  </RCTScrollView>
3295
3350
  <View
3351
+ accessibilityState={
3352
+ {
3353
+ "busy": undefined,
3354
+ "checked": undefined,
3355
+ "disabled": undefined,
3356
+ "expanded": undefined,
3357
+ "selected": undefined,
3358
+ }
3359
+ }
3296
3360
  accessibilityValue={
3297
3361
  {
3298
3362
  "max": undefined,
@@ -3302,6 +3366,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3302
3366
  }
3303
3367
  }
3304
3368
  accessible={true}
3369
+ collapsable={false}
3305
3370
  focusable={false}
3306
3371
  onClick={[Function]}
3307
3372
  onLayout={[Function]}
@@ -3315,13 +3380,14 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
3315
3380
  {
3316
3381
  "alignItems": "center",
3317
3382
  "alignSelf": "flex-start",
3318
- "backgroundColor": "#401960",
3383
+ "backgroundColor": "#000000",
3319
3384
  "borderRadius": 999,
3320
3385
  "bottom": undefined,
3321
3386
  "elevation": 3,
3322
3387
  "flexDirection": "row",
3323
3388
  "height": 64,
3324
3389
  "justifyContent": "center",
3390
+ "opacity": 1,
3325
3391
  "padding": 20,
3326
3392
  "shadowColor": "#001f23",
3327
3393
  "shadowOffset": {
@@ -12,7 +12,6 @@ import {
12
12
  StyledActionItemText,
13
13
  StyledIcon,
14
14
  } from './StyledActionItem';
15
- import { useTheme } from '../../../theme';
16
15
  import { StyledIconContainer } from '../StyledFAB';
17
16
 
18
17
  export interface ActionItemProps {
@@ -38,7 +37,6 @@ const ActionItem = ({
38
37
  index,
39
38
  active = false,
40
39
  }: AnimatedActionItemProps) => {
41
- const theme = useTheme();
42
40
  const animatedValue = React.useRef(new Animated.Value(0));
43
41
 
44
42
  const translateY = animatedValue.current.interpolate({
@@ -59,7 +57,7 @@ const ActionItem = ({
59
57
  return (
60
58
  <Animated.View style={{ transform: [{ translateY }] }}>
61
59
  <StyledActionItem
62
- underlayColor={theme.__hd__.fab.colors.actionItemPressedBackground}
60
+ activeOpacity={0.8}
63
61
  style={style}
64
62
  onPress={onPress}
65
63
  testID={testID}
@@ -45,7 +45,7 @@ const StyledBackdrop = styled(AnimatedPressable)(({ theme }) => ({
45
45
  right: 0,
46
46
  top: 0,
47
47
  bottom: 0,
48
- opacity: 0.25,
48
+ opacity: 0.8,
49
49
  backgroundColor: theme.__hd__.fab.colors.backdropBackground,
50
50
  }));
51
51
 
@@ -1,11 +1,11 @@
1
- import { TouchableHighlight } from 'react-native';
1
+ import { TouchableOpacity } from 'react-native';
2
2
  import styled from '@emotion/native';
3
3
  import type { TouchableOpacityProps } from 'react-native';
4
4
  import Typography from '../../Typography';
5
5
  import Icon from '../../Icon';
6
6
  import type { IconProps } from '../../Icon';
7
7
 
8
- const StyledActionItem = styled(TouchableHighlight)(({ theme }) => ({
8
+ const StyledActionItem = styled(TouchableOpacity)(({ theme }) => ({
9
9
  padding: theme.__hd__.fab.space.actionItemPadding,
10
10
  margin: theme.__hd__.fab.space.actionItemMargin,
11
11
  marginRight: theme.__hd__.fab.space.actionItemMarginRight,