@hero-design/rn 8.91.3 → 8.91.5
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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +27 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +433 -450
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +433 -450
- package/package.json +1 -1
- package/src/components/Alert/StyledAlert.tsx +1 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +56 -0
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +18 -18
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +8 -10
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +116 -145
- package/src/components/Avatar/StyledAvatar.tsx +1 -1
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -5
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -10
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +3 -5
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +6 -4
- package/src/components/BottomSheet/StyledBottomSheet.tsx +0 -10
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
- package/src/components/Calendar/CalendarRange.tsx +5 -1
- package/src/components/Calendar/__tests__/helper.spec.ts +20 -8
- package/src/components/Calendar/helpers.ts +6 -2
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +0 -16
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/FAB/StyledFAB.tsx +1 -5
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +6 -6
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/List/StyledListItem.tsx +1 -5
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +9 -11
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
- package/src/components/MapPin/StyledMapPin.tsx +14 -3
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +58 -65
- package/src/components/MapPin/index.tsx +7 -8
- package/src/components/Search/StyledSearch.tsx +1 -4
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +3 -2
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +3 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -40
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -32
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +0 -8
- package/src/components/Toast/StyledToast.tsx +1 -5
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +21 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +72 -50
- package/src/theme/components/alert.ts +5 -1
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/bottomNavigation.ts +7 -5
- package/src/theme/components/bottomSheet.ts +2 -9
- package/src/theme/components/chip.ts +2 -2
- package/src/theme/components/fab.ts +5 -9
- package/src/theme/components/floatingIsland.ts +1 -1
- package/src/theme/components/list.ts +1 -7
- package/src/theme/components/mapPin.ts +6 -2
- package/src/theme/components/search.ts +1 -5
- package/src/theme/components/toast.ts +1 -5
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +2 -0
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +2 -0
- package/src/theme/global/colors/eBens.ts +3 -0
- package/src/theme/global/colors/global.ts +3 -0
- package/src/theme/global/colors/jobs.ts +3 -0
- package/src/theme/global/colors/swag.ts +3 -0
- package/src/theme/global/colors/swagDark.ts +3 -0
- package/src/theme/global/colors/wallet.ts +3 -0
- package/src/theme/global/colors/work.ts +3 -0
- package/stats/8.91.4/rn-stats.html +4842 -0
- package/stats/8.91.5/rn-stats.html +4842 -0
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Calendar/helpers.d.ts +5 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/MapPin/StyledMapPin.d.ts +12 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/theme/components/alert.d.ts +3 -0
- package/types/theme/components/avatar.d.ts +1 -1
- package/types/theme/components/bottomNavigation.d.ts +5 -7
- package/types/theme/components/bottomSheet.d.ts +1 -10
- package/types/theme/components/chip.d.ts +1 -1
- package/types/theme/components/fab.d.ts +2 -9
- package/types/theme/components/list.d.ts +1 -10
- package/types/theme/components/mapPin.d.ts +6 -2
- package/types/theme/components/search.d.ts +1 -8
- package/types/theme/components/toast.d.ts +1 -8
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
|
@@ -133,9 +133,9 @@ exports[`StyledText renders correct style 1`] = `
|
|
|
133
133
|
{
|
|
134
134
|
"color": "#001f23",
|
|
135
135
|
"fontFamily": "BeVietnamPro-Regular",
|
|
136
|
-
"fontSize":
|
|
137
|
-
"letterSpacing": 0.
|
|
138
|
-
"lineHeight":
|
|
136
|
+
"fontSize": 16,
|
|
137
|
+
"letterSpacing": 0.48,
|
|
138
|
+
"lineHeight": 24,
|
|
139
139
|
},
|
|
140
140
|
[
|
|
141
141
|
{
|
|
@@ -151,11 +151,10 @@ exports[`StyledText renders correct style 1`] = `
|
|
|
151
151
|
],
|
|
152
152
|
]
|
|
153
153
|
}
|
|
154
|
-
themeFontSize="medium"
|
|
155
|
-
themeFontWeight="regular"
|
|
156
154
|
themeIntent="body"
|
|
157
155
|
themeSize="small"
|
|
158
156
|
themeTypeface="neutral"
|
|
157
|
+
themeVariant="regular"
|
|
159
158
|
>
|
|
160
159
|
MD
|
|
161
160
|
</Text>
|
|
@@ -67,9 +67,9 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
|
|
|
67
67
|
{
|
|
68
68
|
"color": "#001f23",
|
|
69
69
|
"fontFamily": "BeVietnamPro-Regular",
|
|
70
|
-
"fontSize":
|
|
71
|
-
"letterSpacing": 0.
|
|
72
|
-
"lineHeight":
|
|
70
|
+
"fontSize": 16,
|
|
71
|
+
"letterSpacing": 0.48,
|
|
72
|
+
"lineHeight": 24,
|
|
73
73
|
},
|
|
74
74
|
[
|
|
75
75
|
{
|
|
@@ -85,11 +85,10 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
|
|
|
85
85
|
],
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
|
-
themeFontSize="medium"
|
|
89
|
-
themeFontWeight="regular"
|
|
90
88
|
themeIntent="body"
|
|
91
89
|
themeSize="small"
|
|
92
90
|
themeTypeface="neutral"
|
|
91
|
+
themeVariant="regular"
|
|
93
92
|
>
|
|
94
93
|
TT
|
|
95
94
|
</Text>
|
|
@@ -300,9 +299,9 @@ exports[`Avatar shows title when there is no source 1`] = `
|
|
|
300
299
|
{
|
|
301
300
|
"color": "#001f23",
|
|
302
301
|
"fontFamily": "BeVietnamPro-Regular",
|
|
303
|
-
"fontSize":
|
|
304
|
-
"letterSpacing": 0.
|
|
305
|
-
"lineHeight":
|
|
302
|
+
"fontSize": 16,
|
|
303
|
+
"letterSpacing": 0.48,
|
|
304
|
+
"lineHeight": 24,
|
|
306
305
|
},
|
|
307
306
|
[
|
|
308
307
|
{
|
|
@@ -318,11 +317,10 @@ exports[`Avatar shows title when there is no source 1`] = `
|
|
|
318
317
|
],
|
|
319
318
|
]
|
|
320
319
|
}
|
|
321
|
-
themeFontSize="medium"
|
|
322
|
-
themeFontWeight="regular"
|
|
323
320
|
themeIntent="body"
|
|
324
321
|
themeSize="small"
|
|
325
322
|
themeTypeface="neutral"
|
|
323
|
+
themeVariant="regular"
|
|
326
324
|
>
|
|
327
325
|
TT
|
|
328
326
|
</Text>
|
|
@@ -26,11 +26,9 @@ const BottomBarWrapper = styled(View)<{
|
|
|
26
26
|
paddingLeft: Math.max(themeInsets.left, themeInsets.right),
|
|
27
27
|
paddingRight: Math.max(themeInsets.left, themeInsets.right),
|
|
28
28
|
backgroundColor: theme.__hd__.bottomNavigation.colors.background,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
|
|
33
|
-
elevation: theme.__hd__.bottomNavigation.shadows.elevation,
|
|
29
|
+
borderTopColor: theme.__hd__.bottomNavigation.colors.borderTop,
|
|
30
|
+
borderTopWidth: theme.__hd__.bottomNavigation.borderWidths.borderTop,
|
|
31
|
+
...theme.__hd__.bottomNavigation.shadows.wrapper,
|
|
34
32
|
}));
|
|
35
33
|
|
|
36
34
|
const BottomBar = styled(View)({
|
|
@@ -67,18 +67,20 @@ exports[`BottomNavigation renders correctly 1`] = `
|
|
|
67
67
|
[
|
|
68
68
|
{
|
|
69
69
|
"backgroundColor": "#ffffff",
|
|
70
|
+
"borderTopColor": "#e8e9ea",
|
|
71
|
+
"borderTopWidth": 1,
|
|
70
72
|
"elevation": 10,
|
|
71
73
|
"height": 72,
|
|
72
74
|
"paddingBottom": 0,
|
|
73
75
|
"paddingLeft": 0,
|
|
74
76
|
"paddingRight": 0,
|
|
75
|
-
"shadowColor": "#
|
|
77
|
+
"shadowColor": "#001f23",
|
|
76
78
|
"shadowOffset": {
|
|
77
|
-
"height":
|
|
79
|
+
"height": -4,
|
|
78
80
|
"width": 0,
|
|
79
81
|
},
|
|
80
|
-
"shadowOpacity": 0.
|
|
81
|
-
"shadowRadius":
|
|
82
|
+
"shadowOpacity": 0.04,
|
|
83
|
+
"shadowRadius": 6,
|
|
82
84
|
},
|
|
83
85
|
undefined,
|
|
84
86
|
]
|
|
@@ -33,11 +33,6 @@ const StyledFloatingWrapper = styled(AnimatedSafeAreaView)(({ theme }) => ({
|
|
|
33
33
|
|
|
34
34
|
const StyledFloatingBottomSheet = styled(Animated.View)(({ theme }) => ({
|
|
35
35
|
width: '100%',
|
|
36
|
-
shadowColor: theme.__hd__.bottomSheet.colors.shadow,
|
|
37
|
-
shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
|
|
38
|
-
shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
|
|
39
|
-
shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
|
|
40
|
-
elevation: theme.__hd__.bottomSheet.shadows.elevation,
|
|
41
36
|
backgroundColor: theme.__hd__.bottomSheet.colors.background,
|
|
42
37
|
borderRadius: theme.__hd__.bottomSheet.radii.floating,
|
|
43
38
|
maxHeight: '100%',
|
|
@@ -51,11 +46,6 @@ const StyledBottomSheet = styled(AnimatedSafeAreaView)<
|
|
|
51
46
|
borderTopRightRadius: theme.__hd__.bottomSheet.radii.default,
|
|
52
47
|
backgroundColor: theme.__hd__.bottomSheet.colors.background,
|
|
53
48
|
width: '100%',
|
|
54
|
-
shadowColor: theme.__hd__.bottomSheet.colors.shadow,
|
|
55
|
-
shadowOffset: theme.__hd__.bottomSheet.shadows.offset,
|
|
56
|
-
shadowOpacity: theme.__hd__.bottomSheet.shadows.opacity,
|
|
57
|
-
shadowRadius: theme.__hd__.bottomSheet.shadows.radius,
|
|
58
|
-
elevation: theme.__hd__.bottomSheet.shadows.elevation,
|
|
59
49
|
maxHeight: '94%',
|
|
60
50
|
}));
|
|
61
51
|
|
|
@@ -163,15 +163,7 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
163
163
|
"backgroundColor": "#ffffff",
|
|
164
164
|
"borderTopLeftRadius": 16,
|
|
165
165
|
"borderTopRightRadius": 16,
|
|
166
|
-
"elevation": 10,
|
|
167
166
|
"maxHeight": "94%",
|
|
168
|
-
"shadowColor": "#001f23",
|
|
169
|
-
"shadowOffset": {
|
|
170
|
-
"height": 3,
|
|
171
|
-
"width": 0,
|
|
172
|
-
},
|
|
173
|
-
"shadowOpacity": 0.4,
|
|
174
|
-
"shadowRadius": 16,
|
|
175
167
|
"transform": [
|
|
176
168
|
{
|
|
177
169
|
"scaleY": 1,
|
|
@@ -507,16 +499,8 @@ exports[`BottomSheet renders floating BottomSheet correctly 1`] = `
|
|
|
507
499
|
{
|
|
508
500
|
"backgroundColor": "#ffffff",
|
|
509
501
|
"borderRadius": 32,
|
|
510
|
-
"elevation": 10,
|
|
511
502
|
"maxHeight": "100%",
|
|
512
503
|
"padding": 8,
|
|
513
|
-
"shadowColor": "#001f23",
|
|
514
|
-
"shadowOffset": {
|
|
515
|
-
"height": 3,
|
|
516
|
-
"width": 0,
|
|
517
|
-
},
|
|
518
|
-
"shadowOpacity": 0.4,
|
|
519
|
-
"shadowRadius": 16,
|
|
520
504
|
"transform": [
|
|
521
505
|
{
|
|
522
506
|
"scaleY": 1,
|
|
@@ -191,7 +191,11 @@ const CalendarRange = ({
|
|
|
191
191
|
return (
|
|
192
192
|
<SelectedDate
|
|
193
193
|
isStart={isEqDate(date, value?.startDate)}
|
|
194
|
-
showConnector={
|
|
194
|
+
showConnector={
|
|
195
|
+
!!value?.startDate &&
|
|
196
|
+
!!value?.endDate &&
|
|
197
|
+
!isEqDate(value.startDate, value.endDate)
|
|
198
|
+
}
|
|
195
199
|
key={date.toDateString()}
|
|
196
200
|
date={date}
|
|
197
201
|
onPress={() => onDateChange(date)}
|
|
@@ -73,8 +73,8 @@ describe('isDateInRange', () => {
|
|
|
73
73
|
});
|
|
74
74
|
|
|
75
75
|
describe('setStartOrEndDate', () => {
|
|
76
|
-
// Test case 1:
|
|
77
|
-
it('should not change dates when selecting same date as start date', () => {
|
|
76
|
+
// Test case 1: Prevent selecting same date when both dates are set
|
|
77
|
+
it('should not change dates when selecting same date as start date and both dates are set', () => {
|
|
78
78
|
const date = new Date('2024-03-15');
|
|
79
79
|
const startDate = new Date('2024-03-15');
|
|
80
80
|
const endDate = new Date('2024-03-20');
|
|
@@ -83,7 +83,19 @@ describe('setStartOrEndDate', () => {
|
|
|
83
83
|
expect(result).toEqual({ startDate, endDate });
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
// Test case 2:
|
|
86
|
+
// Test case 2: Allow selecting same date as start date when only start date is set
|
|
87
|
+
it('should allow selecting same date as start date when only start date is set', () => {
|
|
88
|
+
const date = new Date('2024-03-15');
|
|
89
|
+
const startDate = new Date('2024-03-15');
|
|
90
|
+
|
|
91
|
+
const result = setStartOrEndDate({ date, startDate });
|
|
92
|
+
expect(result).toEqual({
|
|
93
|
+
startDate: new Date('2024-03-15'),
|
|
94
|
+
endDate: new Date('2024-03-15'),
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
// Test case 3: Initial selection (no start date)
|
|
87
99
|
it('should set start date when no dates are selected', () => {
|
|
88
100
|
const date = new Date('2024-03-15');
|
|
89
101
|
|
|
@@ -94,7 +106,7 @@ describe('setStartOrEndDate', () => {
|
|
|
94
106
|
});
|
|
95
107
|
});
|
|
96
108
|
|
|
97
|
-
// Test case
|
|
109
|
+
// Test case 4: Setting end date after start date
|
|
98
110
|
it('should set end date when start date exists and selected date is after', () => {
|
|
99
111
|
const date = new Date('2024-03-20');
|
|
100
112
|
const startDate = new Date('2024-03-15');
|
|
@@ -106,7 +118,7 @@ describe('setStartOrEndDate', () => {
|
|
|
106
118
|
});
|
|
107
119
|
});
|
|
108
120
|
|
|
109
|
-
// Test case
|
|
121
|
+
// Test case 5: Setting end date before start date (should reorder)
|
|
110
122
|
it('should reorder dates when end date is selected before start date', () => {
|
|
111
123
|
const date = new Date('2024-03-10');
|
|
112
124
|
const startDate = new Date('2024-03-15');
|
|
@@ -118,7 +130,7 @@ describe('setStartOrEndDate', () => {
|
|
|
118
130
|
});
|
|
119
131
|
});
|
|
120
132
|
|
|
121
|
-
// Test case
|
|
133
|
+
// Test case 6: Clicking within existing range
|
|
122
134
|
it('should start new selection when clicking within existing range', () => {
|
|
123
135
|
const date = new Date('2024-03-17');
|
|
124
136
|
const startDate = new Date('2024-03-15');
|
|
@@ -131,7 +143,7 @@ describe('setStartOrEndDate', () => {
|
|
|
131
143
|
});
|
|
132
144
|
});
|
|
133
145
|
|
|
134
|
-
// Test case
|
|
146
|
+
// Test case 7: Extending range before start date
|
|
135
147
|
it('should extend range when clicking before start date', () => {
|
|
136
148
|
const date = new Date('2024-03-10');
|
|
137
149
|
const startDate = new Date('2024-03-15');
|
|
@@ -144,7 +156,7 @@ describe('setStartOrEndDate', () => {
|
|
|
144
156
|
});
|
|
145
157
|
});
|
|
146
158
|
|
|
147
|
-
// Test case
|
|
159
|
+
// Test case 8: Extending range after end date
|
|
148
160
|
it('should extend range when clicking after end date', () => {
|
|
149
161
|
const date = new Date('2024-03-25');
|
|
150
162
|
const startDate = new Date('2024-03-15');
|
|
@@ -54,8 +54,12 @@ export const setStartOrEndDate = ({
|
|
|
54
54
|
startDate?: Date;
|
|
55
55
|
endDate?: Date;
|
|
56
56
|
}) => {
|
|
57
|
-
// Prevent selecting same date
|
|
58
|
-
if (
|
|
57
|
+
// Prevent selecting same date when both dates are set
|
|
58
|
+
if (
|
|
59
|
+
startDate &&
|
|
60
|
+
endDate &&
|
|
61
|
+
(isEqDate(date, startDate) || isEqDate(date, endDate))
|
|
62
|
+
) {
|
|
59
63
|
return {
|
|
60
64
|
startDate,
|
|
61
65
|
endDate,
|
|
@@ -363,19 +363,19 @@ exports[`Chip renders correctly with custom icon 1`] = `
|
|
|
363
363
|
"backgroundColor": "#ffffff",
|
|
364
364
|
"borderColor": "transparent",
|
|
365
365
|
"borderRadius": 999,
|
|
366
|
-
"elevation":
|
|
366
|
+
"elevation": 6,
|
|
367
367
|
"flexDirection": "row",
|
|
368
368
|
"justifyContent": "center",
|
|
369
369
|
"opacity": 1,
|
|
370
370
|
"paddingHorizontal": 12,
|
|
371
371
|
"paddingVertical": 8,
|
|
372
|
-
"shadowColor": "#
|
|
372
|
+
"shadowColor": "#001f23",
|
|
373
373
|
"shadowOffset": {
|
|
374
374
|
"height": 2,
|
|
375
375
|
"width": 0,
|
|
376
376
|
},
|
|
377
377
|
"shadowOpacity": 0.12,
|
|
378
|
-
"shadowRadius":
|
|
378
|
+
"shadowRadius": 2,
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
testID="chip"
|
|
@@ -496,22 +496,22 @@ exports[`Chip renders correctly with custom icon 2`] = `
|
|
|
496
496
|
{
|
|
497
497
|
"alignItems": "center",
|
|
498
498
|
"alignSelf": "flex-start",
|
|
499
|
-
"backgroundColor":
|
|
499
|
+
"backgroundColor": undefined,
|
|
500
500
|
"borderColor": "transparent",
|
|
501
501
|
"borderRadius": 999,
|
|
502
|
-
"elevation":
|
|
502
|
+
"elevation": 6,
|
|
503
503
|
"flexDirection": "row",
|
|
504
504
|
"justifyContent": "center",
|
|
505
505
|
"opacity": 1,
|
|
506
506
|
"paddingHorizontal": 12,
|
|
507
507
|
"paddingVertical": 8,
|
|
508
|
-
"shadowColor": "#
|
|
508
|
+
"shadowColor": "#001f23",
|
|
509
509
|
"shadowOffset": {
|
|
510
510
|
"height": 2,
|
|
511
511
|
"width": 0,
|
|
512
512
|
},
|
|
513
513
|
"shadowOpacity": 0.12,
|
|
514
|
-
"shadowRadius":
|
|
514
|
+
"shadowRadius": 2,
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
testID="chip"
|
|
@@ -861,19 +861,19 @@ exports[`Chip renders correctly with variant compact and selected false 1`] = `
|
|
|
861
861
|
"backgroundColor": "#ffffff",
|
|
862
862
|
"borderColor": "transparent",
|
|
863
863
|
"borderRadius": 999,
|
|
864
|
-
"elevation":
|
|
864
|
+
"elevation": 6,
|
|
865
865
|
"flexDirection": "row",
|
|
866
866
|
"justifyContent": "center",
|
|
867
867
|
"opacity": 1,
|
|
868
868
|
"paddingHorizontal": 8,
|
|
869
869
|
"paddingVertical": 4,
|
|
870
|
-
"shadowColor": "#
|
|
870
|
+
"shadowColor": "#001f23",
|
|
871
871
|
"shadowOffset": {
|
|
872
872
|
"height": 2,
|
|
873
873
|
"width": 0,
|
|
874
874
|
},
|
|
875
875
|
"shadowOpacity": 0.12,
|
|
876
|
-
"shadowRadius":
|
|
876
|
+
"shadowRadius": 2,
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
testID="chip"
|
|
@@ -962,22 +962,22 @@ exports[`Chip renders correctly with variant compact and selected true 1`] = `
|
|
|
962
962
|
{
|
|
963
963
|
"alignItems": "center",
|
|
964
964
|
"alignSelf": "flex-start",
|
|
965
|
-
"backgroundColor":
|
|
965
|
+
"backgroundColor": undefined,
|
|
966
966
|
"borderColor": "transparent",
|
|
967
967
|
"borderRadius": 999,
|
|
968
|
-
"elevation":
|
|
968
|
+
"elevation": 6,
|
|
969
969
|
"flexDirection": "row",
|
|
970
970
|
"justifyContent": "center",
|
|
971
971
|
"opacity": 1,
|
|
972
972
|
"paddingHorizontal": 8,
|
|
973
973
|
"paddingVertical": 4,
|
|
974
|
-
"shadowColor": "#
|
|
974
|
+
"shadowColor": "#001f23",
|
|
975
975
|
"shadowOffset": {
|
|
976
976
|
"height": 2,
|
|
977
977
|
"width": 0,
|
|
978
978
|
},
|
|
979
979
|
"shadowOpacity": 0.12,
|
|
980
|
-
"shadowRadius":
|
|
980
|
+
"shadowRadius": 2,
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
testID="chip"
|
|
@@ -1295,19 +1295,19 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
|
|
|
1295
1295
|
"backgroundColor": "#ffffff",
|
|
1296
1296
|
"borderColor": "transparent",
|
|
1297
1297
|
"borderRadius": 999,
|
|
1298
|
-
"elevation":
|
|
1298
|
+
"elevation": 6,
|
|
1299
1299
|
"flexDirection": "row",
|
|
1300
1300
|
"justifyContent": "center",
|
|
1301
1301
|
"opacity": 1,
|
|
1302
1302
|
"paddingHorizontal": 12,
|
|
1303
1303
|
"paddingVertical": 8,
|
|
1304
|
-
"shadowColor": "#
|
|
1304
|
+
"shadowColor": "#001f23",
|
|
1305
1305
|
"shadowOffset": {
|
|
1306
1306
|
"height": 2,
|
|
1307
1307
|
"width": 0,
|
|
1308
1308
|
},
|
|
1309
1309
|
"shadowOpacity": 0.12,
|
|
1310
|
-
"shadowRadius":
|
|
1310
|
+
"shadowRadius": 2,
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
testID="chip"
|
|
@@ -1396,22 +1396,22 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
|
|
|
1396
1396
|
{
|
|
1397
1397
|
"alignItems": "center",
|
|
1398
1398
|
"alignSelf": "flex-start",
|
|
1399
|
-
"backgroundColor":
|
|
1399
|
+
"backgroundColor": undefined,
|
|
1400
1400
|
"borderColor": "transparent",
|
|
1401
1401
|
"borderRadius": 999,
|
|
1402
|
-
"elevation":
|
|
1402
|
+
"elevation": 6,
|
|
1403
1403
|
"flexDirection": "row",
|
|
1404
1404
|
"justifyContent": "center",
|
|
1405
1405
|
"opacity": 1,
|
|
1406
1406
|
"paddingHorizontal": 12,
|
|
1407
1407
|
"paddingVertical": 8,
|
|
1408
|
-
"shadowColor": "#
|
|
1408
|
+
"shadowColor": "#001f23",
|
|
1409
1409
|
"shadowOffset": {
|
|
1410
1410
|
"height": 2,
|
|
1411
1411
|
"width": 0,
|
|
1412
1412
|
},
|
|
1413
1413
|
"shadowOpacity": 0.12,
|
|
1414
|
-
"shadowRadius":
|
|
1414
|
+
"shadowRadius": 2,
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
testID="chip"
|
|
@@ -1503,19 +1503,19 @@ exports[`Chip renders correctly with variant filter and selected false 1`] = `
|
|
|
1503
1503
|
"backgroundColor": "#ffffff",
|
|
1504
1504
|
"borderColor": "transparent",
|
|
1505
1505
|
"borderRadius": 999,
|
|
1506
|
-
"elevation":
|
|
1506
|
+
"elevation": 6,
|
|
1507
1507
|
"flexDirection": "row",
|
|
1508
1508
|
"justifyContent": "center",
|
|
1509
1509
|
"opacity": 1,
|
|
1510
1510
|
"paddingHorizontal": 12,
|
|
1511
1511
|
"paddingVertical": 8,
|
|
1512
|
-
"shadowColor": "#
|
|
1512
|
+
"shadowColor": "#001f23",
|
|
1513
1513
|
"shadowOffset": {
|
|
1514
1514
|
"height": 2,
|
|
1515
1515
|
"width": 0,
|
|
1516
1516
|
},
|
|
1517
1517
|
"shadowOpacity": 0.12,
|
|
1518
|
-
"shadowRadius":
|
|
1518
|
+
"shadowRadius": 2,
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
1521
|
testID="chip"
|
|
@@ -1604,22 +1604,22 @@ exports[`Chip renders correctly with variant filter and selected true 1`] = `
|
|
|
1604
1604
|
{
|
|
1605
1605
|
"alignItems": "center",
|
|
1606
1606
|
"alignSelf": "flex-start",
|
|
1607
|
-
"backgroundColor":
|
|
1607
|
+
"backgroundColor": undefined,
|
|
1608
1608
|
"borderColor": "transparent",
|
|
1609
1609
|
"borderRadius": 999,
|
|
1610
|
-
"elevation":
|
|
1610
|
+
"elevation": 6,
|
|
1611
1611
|
"flexDirection": "row",
|
|
1612
1612
|
"justifyContent": "center",
|
|
1613
1613
|
"opacity": 1,
|
|
1614
1614
|
"paddingHorizontal": 12,
|
|
1615
1615
|
"paddingVertical": 8,
|
|
1616
|
-
"shadowColor": "#
|
|
1616
|
+
"shadowColor": "#001f23",
|
|
1617
1617
|
"shadowOffset": {
|
|
1618
1618
|
"height": 2,
|
|
1619
1619
|
"width": 0,
|
|
1620
1620
|
},
|
|
1621
1621
|
"shadowOpacity": 0.12,
|
|
1622
|
-
"shadowRadius":
|
|
1622
|
+
"shadowRadius": 2,
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
testID="chip"
|
|
@@ -413,15 +413,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
413
413
|
"backgroundColor": "#ffffff",
|
|
414
414
|
"borderTopLeftRadius": 16,
|
|
415
415
|
"borderTopRightRadius": 16,
|
|
416
|
-
"elevation": 10,
|
|
417
416
|
"maxHeight": "94%",
|
|
418
|
-
"shadowColor": "#001f23",
|
|
419
|
-
"shadowOffset": {
|
|
420
|
-
"height": 3,
|
|
421
|
-
"width": 0,
|
|
422
|
-
},
|
|
423
|
-
"shadowOpacity": 0.4,
|
|
424
|
-
"shadowRadius": 16,
|
|
425
417
|
"transform": [
|
|
426
418
|
{
|
|
427
419
|
"scaleY": 1,
|
|
@@ -1102,15 +1094,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
1102
1094
|
"backgroundColor": "#ffffff",
|
|
1103
1095
|
"borderTopLeftRadius": 16,
|
|
1104
1096
|
"borderTopRightRadius": 16,
|
|
1105
|
-
"elevation": 10,
|
|
1106
1097
|
"maxHeight": "94%",
|
|
1107
|
-
"shadowColor": "#001f23",
|
|
1108
|
-
"shadowOffset": {
|
|
1109
|
-
"height": 3,
|
|
1110
|
-
"width": 0,
|
|
1111
|
-
},
|
|
1112
|
-
"shadowOpacity": 0.4,
|
|
1113
|
-
"shadowRadius": 16,
|
|
1114
1098
|
"transform": [
|
|
1115
1099
|
{
|
|
1116
1100
|
"scaleY": 1,
|
|
@@ -65,7 +65,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
65
65
|
"backgroundColor": "#000000",
|
|
66
66
|
"borderRadius": 999,
|
|
67
67
|
"bottom": undefined,
|
|
68
|
-
"elevation":
|
|
68
|
+
"elevation": 6,
|
|
69
69
|
"flexDirection": "row",
|
|
70
70
|
"height": 64,
|
|
71
71
|
"justifyContent": "center",
|
|
@@ -73,13 +73,13 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
73
73
|
"marginTop": 24,
|
|
74
74
|
"opacity": 1,
|
|
75
75
|
"padding": 20,
|
|
76
|
-
"shadowColor": "#
|
|
76
|
+
"shadowColor": "#001f23",
|
|
77
77
|
"shadowOffset": {
|
|
78
78
|
"height": 2,
|
|
79
79
|
"width": 0,
|
|
80
80
|
},
|
|
81
81
|
"shadowOpacity": 0.12,
|
|
82
|
-
"shadowRadius":
|
|
82
|
+
"shadowRadius": 2,
|
|
83
83
|
"transform": [
|
|
84
84
|
{
|
|
85
85
|
"translateY": 0,
|
|
@@ -258,7 +258,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
258
258
|
"backgroundColor": "#000000",
|
|
259
259
|
"borderRadius": 999,
|
|
260
260
|
"bottom": undefined,
|
|
261
|
-
"elevation":
|
|
261
|
+
"elevation": 6,
|
|
262
262
|
"flexDirection": "row",
|
|
263
263
|
"height": 64,
|
|
264
264
|
"justifyContent": "center",
|
|
@@ -266,13 +266,13 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
266
266
|
"marginTop": 24,
|
|
267
267
|
"opacity": 1,
|
|
268
268
|
"padding": 20,
|
|
269
|
-
"shadowColor": "#
|
|
269
|
+
"shadowColor": "#001f23",
|
|
270
270
|
"shadowOffset": {
|
|
271
271
|
"height": 2,
|
|
272
272
|
"width": 0,
|
|
273
273
|
},
|
|
274
274
|
"shadowOpacity": 0.12,
|
|
275
|
-
"shadowRadius":
|
|
275
|
+
"shadowRadius": 2,
|
|
276
276
|
"transform": [
|
|
277
277
|
{
|
|
278
278
|
"translateY": 0,
|
|
@@ -409,10 +409,10 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
409
409
|
onStartShouldSetResponder={[Function]}
|
|
410
410
|
style={
|
|
411
411
|
{
|
|
412
|
-
"backgroundColor": "#
|
|
412
|
+
"backgroundColor": "#000000",
|
|
413
413
|
"bottom": 0,
|
|
414
414
|
"left": 0,
|
|
415
|
-
"opacity": 0.
|
|
415
|
+
"opacity": 0.4,
|
|
416
416
|
"position": "absolute",
|
|
417
417
|
"right": 0,
|
|
418
418
|
"top": 0,
|
|
@@ -1079,7 +1079,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1079
1079
|
"backgroundColor": "#000000",
|
|
1080
1080
|
"borderRadius": 999,
|
|
1081
1081
|
"bottom": undefined,
|
|
1082
|
-
"elevation":
|
|
1082
|
+
"elevation": 6,
|
|
1083
1083
|
"flexDirection": "row",
|
|
1084
1084
|
"height": 64,
|
|
1085
1085
|
"justifyContent": "center",
|
|
@@ -1088,13 +1088,13 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1088
1088
|
"marginTop": 24,
|
|
1089
1089
|
"opacity": 1,
|
|
1090
1090
|
"padding": 20,
|
|
1091
|
-
"shadowColor": "#
|
|
1091
|
+
"shadowColor": "#001f23",
|
|
1092
1092
|
"shadowOffset": {
|
|
1093
1093
|
"height": 2,
|
|
1094
1094
|
"width": 0,
|
|
1095
1095
|
},
|
|
1096
1096
|
"shadowOpacity": 0.12,
|
|
1097
|
-
"shadowRadius":
|
|
1097
|
+
"shadowRadius": 2,
|
|
1098
1098
|
"transform": [
|
|
1099
1099
|
{
|
|
1100
1100
|
"translateY": 0,
|