@hero-design/rn 8.43.1 → 8.44.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 (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +10 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +366 -359
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +366 -359
  7. package/package.json +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
  9. package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
  10. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
  11. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
  12. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
  13. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
  14. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
  15. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
  16. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
  17. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
  18. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
  19. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
  20. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
  21. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
  22. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
  23. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
  24. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
  25. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
  26. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
  27. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
  28. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
  29. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
  30. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
  31. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
  32. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
  33. package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
  34. package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
  35. package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
  36. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
  37. package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
  38. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
  39. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
  40. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
  41. package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
  42. package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
  43. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
  45. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
  48. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
  49. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
  50. package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
  51. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
  52. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
  53. package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  54. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
  55. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
  56. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
  57. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
  58. package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
  59. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  60. package/src/components/Icon/IconList.ts +2 -0
  61. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
  62. package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
  63. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
  64. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
  65. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
  66. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
  67. package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
  68. package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
  69. package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
  70. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
  71. package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
  72. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
  73. package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
  74. package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
  75. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
  76. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
  77. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
  78. package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
  79. package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
  80. package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
  81. package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
  82. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
  83. package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
  84. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
  85. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
  86. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
  87. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
  88. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
  89. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
  90. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
  91. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
  92. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
  93. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
  94. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
  95. package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
  96. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
  97. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
  98. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
  99. package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
  100. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
  101. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
  102. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
  103. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
  104. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
  105. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
  106. package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
  107. package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
  108. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
  109. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
  110. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
  111. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
  112. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
  113. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
  114. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
  115. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
  116. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
  117. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
  118. package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
  119. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
  120. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
  121. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
  122. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
  123. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
  124. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
  125. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
  126. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
  127. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
  128. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
  129. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
  130. package/src/testHelpers/renderWithTheme.tsx +2 -2
  131. package/types/components/Icon/IconList.d.ts +1 -1
  132. package/types/components/Icon/index.d.ts +1 -1
  133. package/types/components/Icon/utils.d.ts +1 -1
@@ -2,76 +2,132 @@
2
2
 
3
3
  exports[`AnimatedFABIcon renders correctly when isActive is false 1`] = `
4
4
  <View
5
- collapsable={false}
6
5
  style={
7
6
  {
8
- "transform": [
9
- {
10
- "rotate": "0deg",
11
- },
12
- ],
7
+ "flex": 1,
13
8
  }
14
9
  }
15
10
  >
16
- <HeroIcon
17
- name="add"
11
+ <View
12
+ collapsable={false}
18
13
  style={
19
- [
20
- {
21
- "color": "#001f23",
22
- "fontSize": 16,
23
- },
24
- [
14
+ {
15
+ "transform": [
25
16
  {
26
- "color": "#ffffff",
27
- "lineHeight": 24,
28
- "textAlign": "center",
29
- "textAlignVertical": "center",
17
+ "rotate": "0deg",
30
18
  },
31
- {},
32
19
  ],
20
+ }
21
+ }
22
+ >
23
+ <HeroIcon
24
+ name="add"
25
+ style={
26
+ [
27
+ {
28
+ "color": "#001f23",
29
+ "fontSize": 16,
30
+ },
31
+ [
32
+ {
33
+ "color": "#ffffff",
34
+ "lineHeight": 24,
35
+ "textAlign": "center",
36
+ "textAlignVertical": "center",
37
+ },
38
+ {},
39
+ ],
40
+ ]
41
+ }
42
+ themeIntent="text"
43
+ themeSize="xsmall"
44
+ />
45
+ </View>
46
+ <View
47
+ pointerEvents="box-none"
48
+ position="bottom"
49
+ style={
50
+ [
51
+ {
52
+ "bottom": 0,
53
+ "elevation": 9999,
54
+ "flexDirection": "column-reverse",
55
+ "left": 0,
56
+ "paddingHorizontal": 24,
57
+ "paddingVertical": 16,
58
+ "position": "absolute",
59
+ "right": 0,
60
+ "top": 0,
61
+ },
62
+ undefined,
33
63
  ]
34
64
  }
35
- themeIntent="text"
36
- themeSize="xsmall"
37
65
  />
38
66
  </View>
39
67
  `;
40
68
 
41
69
  exports[`AnimatedFABIcon renders correctly when isActive is true 1`] = `
42
70
  <View
43
- collapsable={false}
44
71
  style={
45
72
  {
46
- "transform": [
47
- {
48
- "rotate": "-45deg",
49
- },
50
- ],
73
+ "flex": 1,
51
74
  }
52
75
  }
53
76
  >
54
- <HeroIcon
55
- name="add"
77
+ <View
78
+ collapsable={false}
56
79
  style={
57
- [
58
- {
59
- "color": "#001f23",
60
- "fontSize": 16,
61
- },
62
- [
80
+ {
81
+ "transform": [
63
82
  {
64
- "color": "#ffffff",
65
- "lineHeight": 24,
66
- "textAlign": "center",
67
- "textAlignVertical": "center",
83
+ "rotate": "-45deg",
68
84
  },
69
- {},
70
85
  ],
86
+ }
87
+ }
88
+ >
89
+ <HeroIcon
90
+ name="add"
91
+ style={
92
+ [
93
+ {
94
+ "color": "#001f23",
95
+ "fontSize": 16,
96
+ },
97
+ [
98
+ {
99
+ "color": "#ffffff",
100
+ "lineHeight": 24,
101
+ "textAlign": "center",
102
+ "textAlignVertical": "center",
103
+ },
104
+ {},
105
+ ],
106
+ ]
107
+ }
108
+ themeIntent="text"
109
+ themeSize="xsmall"
110
+ />
111
+ </View>
112
+ <View
113
+ pointerEvents="box-none"
114
+ position="bottom"
115
+ style={
116
+ [
117
+ {
118
+ "bottom": 0,
119
+ "elevation": 9999,
120
+ "flexDirection": "column-reverse",
121
+ "left": 0,
122
+ "paddingHorizontal": 24,
123
+ "paddingVertical": 16,
124
+ "position": "absolute",
125
+ "right": 0,
126
+ "top": 0,
127
+ },
128
+ undefined,
71
129
  ]
72
130
  }
73
- themeIntent="text"
74
- themeSize="xsmall"
75
131
  />
76
132
  </View>
77
133
  `;
@@ -2,155 +2,239 @@
2
2
 
3
3
  exports[`StyledFAB renders correctly 1`] = `
4
4
  <View
5
- accessibilityValue={
5
+ style={
6
6
  {
7
- "max": undefined,
8
- "min": undefined,
9
- "now": undefined,
10
- "text": undefined,
7
+ "flex": 1,
11
8
  }
12
9
  }
13
- accessible={true}
14
- focusable={false}
15
- onClick={[Function]}
16
- onResponderGrant={[Function]}
17
- onResponderMove={[Function]}
18
- onResponderRelease={[Function]}
19
- onResponderTerminate={[Function]}
20
- onResponderTerminationRequest={[Function]}
21
- onStartShouldSetResponder={[Function]}
22
- style={
23
- [
24
- {
25
- "alignItems": "center",
26
- "alignSelf": "flex-start",
27
- "backgroundColor": "#401960",
28
- "borderRadius": 999,
29
- "elevation": 3,
30
- "flexDirection": "row",
31
- "justifyContent": "center",
32
- "padding": 20,
33
- "shadowColor": "#001f23",
34
- "shadowOffset": {
35
- "height": 2,
36
- "width": 0,
37
- },
38
- "shadowOpacity": 0.12,
39
- "shadowRadius": 4,
40
- },
41
- undefined,
42
- ]
43
- }
44
10
  >
45
- <Text
46
- allowFontScaling={false}
11
+ <View
12
+ accessibilityValue={
13
+ {
14
+ "max": undefined,
15
+ "min": undefined,
16
+ "now": undefined,
17
+ "text": undefined,
18
+ }
19
+ }
20
+ accessible={true}
21
+ focusable={false}
22
+ onClick={[Function]}
23
+ onResponderGrant={[Function]}
24
+ onResponderMove={[Function]}
25
+ onResponderRelease={[Function]}
26
+ onResponderTerminate={[Function]}
27
+ onResponderTerminationRequest={[Function]}
28
+ onStartShouldSetResponder={[Function]}
47
29
  style={
48
30
  [
49
31
  {
50
- "color": "#001f23",
51
- "fontFamily": "BeVietnamPro-Regular",
52
- "fontSize": 14,
53
- "letterSpacing": 0.48,
54
- "lineHeight": 22,
32
+ "alignItems": "center",
33
+ "alignSelf": "flex-start",
34
+ "backgroundColor": "#401960",
35
+ "borderRadius": 999,
36
+ "elevation": 3,
37
+ "flexDirection": "row",
38
+ "justifyContent": "center",
39
+ "padding": 20,
40
+ "shadowColor": "#001f23",
41
+ "shadowOffset": {
42
+ "height": 2,
43
+ "width": 0,
44
+ },
45
+ "shadowOpacity": 0.12,
46
+ "shadowRadius": 4,
55
47
  },
56
48
  undefined,
57
49
  ]
58
50
  }
59
- themeIntent="body"
60
- themeTypeface="neutral"
61
- themeVariant="small"
62
51
  >
63
- button
64
- </Text>
52
+ <Text
53
+ allowFontScaling={false}
54
+ style={
55
+ [
56
+ {
57
+ "color": "#001f23",
58
+ "fontFamily": "BeVietnamPro-Regular",
59
+ "fontSize": 14,
60
+ "letterSpacing": 0.48,
61
+ "lineHeight": 22,
62
+ },
63
+ undefined,
64
+ ]
65
+ }
66
+ themeIntent="body"
67
+ themeTypeface="neutral"
68
+ themeVariant="small"
69
+ >
70
+ button
71
+ </Text>
72
+ </View>
73
+ <View
74
+ pointerEvents="box-none"
75
+ position="bottom"
76
+ style={
77
+ [
78
+ {
79
+ "bottom": 0,
80
+ "elevation": 9999,
81
+ "flexDirection": "column-reverse",
82
+ "left": 0,
83
+ "paddingHorizontal": 24,
84
+ "paddingVertical": 16,
85
+ "position": "absolute",
86
+ "right": 0,
87
+ "top": 0,
88
+ },
89
+ undefined,
90
+ ]
91
+ }
92
+ />
65
93
  </View>
66
94
  `;
67
95
 
68
96
  exports[`StyledFAB renders correctly 2`] = `
69
97
  <View
70
- accessibilityValue={
98
+ style={
71
99
  {
72
- "max": undefined,
73
- "min": undefined,
74
- "now": undefined,
75
- "text": undefined,
100
+ "flex": 1,
76
101
  }
77
102
  }
78
- accessible={true}
79
- focusable={false}
80
- onClick={[Function]}
81
- onResponderGrant={[Function]}
82
- onResponderMove={[Function]}
83
- onResponderRelease={[Function]}
84
- onResponderTerminate={[Function]}
85
- onResponderTerminationRequest={[Function]}
86
- onStartShouldSetResponder={[Function]}
87
- style={
88
- [
89
- {
90
- "alignItems": "center",
91
- "alignSelf": "flex-start",
92
- "backgroundColor": "#33144d",
93
- "borderRadius": 999,
94
- "elevation": 3,
95
- "flexDirection": "row",
96
- "justifyContent": "center",
97
- "padding": 20,
98
- "shadowColor": "#001f23",
99
- "shadowOffset": {
100
- "height": 2,
101
- "width": 0,
102
- },
103
- "shadowOpacity": 0.12,
104
- "shadowRadius": 4,
105
- },
106
- undefined,
107
- ]
108
- }
109
103
  >
110
- <Text
111
- allowFontScaling={false}
104
+ <View
105
+ accessibilityValue={
106
+ {
107
+ "max": undefined,
108
+ "min": undefined,
109
+ "now": undefined,
110
+ "text": undefined,
111
+ }
112
+ }
113
+ accessible={true}
114
+ focusable={false}
115
+ onClick={[Function]}
116
+ onResponderGrant={[Function]}
117
+ onResponderMove={[Function]}
118
+ onResponderRelease={[Function]}
119
+ onResponderTerminate={[Function]}
120
+ onResponderTerminationRequest={[Function]}
121
+ onStartShouldSetResponder={[Function]}
112
122
  style={
113
123
  [
114
124
  {
115
- "color": "#001f23",
116
- "fontFamily": "BeVietnamPro-Regular",
117
- "fontSize": 14,
118
- "letterSpacing": 0.48,
119
- "lineHeight": 22,
125
+ "alignItems": "center",
126
+ "alignSelf": "flex-start",
127
+ "backgroundColor": "#33144d",
128
+ "borderRadius": 999,
129
+ "elevation": 3,
130
+ "flexDirection": "row",
131
+ "justifyContent": "center",
132
+ "padding": 20,
133
+ "shadowColor": "#001f23",
134
+ "shadowOffset": {
135
+ "height": 2,
136
+ "width": 0,
137
+ },
138
+ "shadowOpacity": 0.12,
139
+ "shadowRadius": 4,
120
140
  },
121
141
  undefined,
122
142
  ]
123
143
  }
124
- themeIntent="body"
125
- themeTypeface="neutral"
126
- themeVariant="small"
127
144
  >
128
- button
129
- </Text>
145
+ <Text
146
+ allowFontScaling={false}
147
+ style={
148
+ [
149
+ {
150
+ "color": "#001f23",
151
+ "fontFamily": "BeVietnamPro-Regular",
152
+ "fontSize": 14,
153
+ "letterSpacing": 0.48,
154
+ "lineHeight": 22,
155
+ },
156
+ undefined,
157
+ ]
158
+ }
159
+ themeIntent="body"
160
+ themeTypeface="neutral"
161
+ themeVariant="small"
162
+ >
163
+ button
164
+ </Text>
165
+ </View>
166
+ <View
167
+ pointerEvents="box-none"
168
+ position="bottom"
169
+ style={
170
+ [
171
+ {
172
+ "bottom": 0,
173
+ "elevation": 9999,
174
+ "flexDirection": "column-reverse",
175
+ "left": 0,
176
+ "paddingHorizontal": 24,
177
+ "paddingVertical": 16,
178
+ "position": "absolute",
179
+ "right": 0,
180
+ "top": 0,
181
+ },
182
+ undefined,
183
+ ]
184
+ }
185
+ />
130
186
  </View>
131
187
  `;
132
188
 
133
189
  exports[`StyledFABIcon renders correctly 1`] = `
134
- <HeroIcon
135
- name="add"
190
+ <View
136
191
  style={
137
- [
138
- {
139
- "color": "#001f23",
140
- "fontSize": 24,
141
- },
192
+ {
193
+ "flex": 1,
194
+ }
195
+ }
196
+ >
197
+ <HeroIcon
198
+ name="add"
199
+ style={
200
+ [
201
+ {
202
+ "color": "#001f23",
203
+ "fontSize": 24,
204
+ },
205
+ [
206
+ {
207
+ "color": "#ffffff",
208
+ "lineHeight": 24,
209
+ "textAlign": "center",
210
+ "textAlignVertical": "center",
211
+ },
212
+ undefined,
213
+ ],
214
+ ]
215
+ }
216
+ themeIntent="text"
217
+ themeSize="medium"
218
+ />
219
+ <View
220
+ pointerEvents="box-none"
221
+ position="bottom"
222
+ style={
142
223
  [
143
224
  {
144
- "color": "#ffffff",
145
- "lineHeight": 24,
146
- "textAlign": "center",
147
- "textAlignVertical": "center",
225
+ "bottom": 0,
226
+ "elevation": 9999,
227
+ "flexDirection": "column-reverse",
228
+ "left": 0,
229
+ "paddingHorizontal": 24,
230
+ "paddingVertical": 16,
231
+ "position": "absolute",
232
+ "right": 0,
233
+ "top": 0,
148
234
  },
149
235
  undefined,
150
- ],
151
- ]
152
- }
153
- themeIntent="text"
154
- themeSize="medium"
155
- />
236
+ ]
237
+ }
238
+ />
239
+ </View>
156
240
  `;