@hero-design/rn 8.91.1 → 8.91.4
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/es/index.js +170 -77
- package/lib/index.js +170 -77
- package/package.json +1 -1
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +12 -12
- 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/Checkbox/StyledCheckbox.tsx +3 -3
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
- package/src/components/Checkbox/index.tsx +11 -2
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -18
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -1
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/FAB/StyledFAB.tsx +1 -5
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +4 -4
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +2 -1
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
- package/src/components/Search/SearchOneLine.tsx +3 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -47
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -38
- package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/StyledSwitch.tsx +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +7 -3
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
- package/src/components/TextInput/index.tsx +7 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -10
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +52 -29
- package/src/theme/components/bottomSheet.ts +2 -9
- package/src/theme/components/checkbox.ts +7 -0
- package/src/theme/components/fab.ts +5 -9
- package/src/theme/components/switch.ts +5 -5
- package/src/theme/components/textInput.ts +1 -0
- 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 +6 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +5 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +6 -3
- 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/ehWorkDark.ts +1 -0
- package/src/theme/global/colors/global.ts +3 -0
- package/src/theme/global/colors/swagLight.ts +1 -0
- package/src/theme/global/colors/swagLightGlobal.ts +3 -3
- package/src/theme/global/colors/swagLightJobs.ts +3 -1
- package/src/theme/global/colors/types.ts +2 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
- package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
- package/src/theme/global/shadows/ehWorkDark.ts +37 -0
- package/src/theme/global/shadows/index.ts +23 -0
- package/src/theme/global/shadows/swagLight.ts +37 -0
- package/src/theme/global/shadows/swagLightJobs.ts +37 -0
- package/src/theme/global/shadows/types.ts +16 -0
- package/stats/8.91.2/rn-stats.html +4842 -0
- package/stats/8.91.3/rn-stats.html +4844 -0
- package/stats/8.91.4/rn-stats.html +4842 -0
- package/types/components/Calendar/helpers.d.ts +5 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/TextInput/index.d.ts +3 -1
- package/types/theme/components/bottomSheet.d.ts +1 -10
- package/types/theme/components/checkbox.d.ts +7 -0
- package/types/theme/components/chip.d.ts +1 -10
- package/types/theme/components/fab.d.ts +2 -9
- package/types/theme/components/floatingIsland.d.ts +1 -10
- package/types/theme/components/slider.d.ts +1 -10
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +2 -12
- package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
- package/types/theme/global/shadows/index.d.ts +5 -0
- package/types/theme/global/shadows/swagLight.d.ts +3 -0
- package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
- package/types/theme/global/shadows/types.d.ts +15 -0
- package/src/theme/global/shadows.ts +0 -19
- package/types/theme/global/shadows.d.ts +0 -16
|
@@ -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,
|
|
@@ -3,7 +3,7 @@ import { TouchableOpacity, View } from 'react-native';
|
|
|
3
3
|
import HeroIcon from '../Icon';
|
|
4
4
|
import Typography from '../Typography';
|
|
5
5
|
|
|
6
|
-
type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
|
|
6
|
+
type CheckboxThemeState = 'default' | 'checked' | 'disabled' | 'readonly';
|
|
7
7
|
|
|
8
8
|
export const StyledWrapper = styled(TouchableOpacity)<{
|
|
9
9
|
themeState: CheckboxThemeState;
|
|
@@ -32,7 +32,7 @@ export const StyledCheckbox = styled(View)<{
|
|
|
32
32
|
flex: 1,
|
|
33
33
|
borderRadius: theme.__hd__.checkbox.radii.icon,
|
|
34
34
|
borderWidth: theme.__hd__.checkbox.borderWidths.icon,
|
|
35
|
-
borderColor: theme.__hd__.checkbox.colors.
|
|
35
|
+
borderColor: theme.__hd__.checkbox.colors.checkboxBorder[themeState],
|
|
36
36
|
}));
|
|
37
37
|
|
|
38
38
|
export const StyledCheckMark = styled(HeroIcon)<{
|
|
@@ -40,5 +40,5 @@ export const StyledCheckMark = styled(HeroIcon)<{
|
|
|
40
40
|
}>(({ theme, themeState }) => ({
|
|
41
41
|
position: 'absolute',
|
|
42
42
|
top: theme.__hd__.checkbox.space.iconTop,
|
|
43
|
-
color: theme.__hd__.checkbox.colors.
|
|
43
|
+
color: theme.__hd__.checkbox.colors.checkboxBorder[themeState],
|
|
44
44
|
}));
|
|
@@ -167,7 +167,7 @@ exports[`Checkbox renders correctly when checked is true and there is no descrip
|
|
|
167
167
|
},
|
|
168
168
|
[
|
|
169
169
|
{
|
|
170
|
-
"color": "#
|
|
170
|
+
"color": "#401960",
|
|
171
171
|
"position": "absolute",
|
|
172
172
|
"top": 0,
|
|
173
173
|
},
|
|
@@ -183,7 +183,7 @@ exports[`Checkbox renders correctly when checked is true and there is no descrip
|
|
|
183
183
|
style={
|
|
184
184
|
[
|
|
185
185
|
{
|
|
186
|
-
"borderColor": "#
|
|
186
|
+
"borderColor": "#401960",
|
|
187
187
|
"borderRadius": 4,
|
|
188
188
|
"borderWidth": 2,
|
|
189
189
|
"flex": 1,
|
|
@@ -191,7 +191,7 @@ exports[`Checkbox renders correctly when checked is true and there is no descrip
|
|
|
191
191
|
undefined,
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
|
-
themeState="
|
|
194
|
+
themeState="checked"
|
|
195
195
|
/>
|
|
196
196
|
</View>
|
|
197
197
|
</View>
|
|
@@ -431,7 +431,7 @@ exports[`Checkbox renders correctly when disabled is false and readonly is true
|
|
|
431
431
|
style={
|
|
432
432
|
[
|
|
433
433
|
{
|
|
434
|
-
"borderColor": "#
|
|
434
|
+
"borderColor": "#4d6265",
|
|
435
435
|
"borderRadius": 4,
|
|
436
436
|
"borderWidth": 2,
|
|
437
437
|
"flex": 1,
|
|
@@ -6,15 +6,19 @@ import Checkbox, { getThemeState } from '..';
|
|
|
6
6
|
|
|
7
7
|
describe('getThemeState', () => {
|
|
8
8
|
it.each`
|
|
9
|
-
disabled | readonly | expected
|
|
10
|
-
${false} | ${false} | ${'default'}
|
|
11
|
-
${false} | ${true} | ${'
|
|
12
|
-
${true} | ${false} | ${'
|
|
13
|
-
${true} | ${true} | ${'
|
|
9
|
+
disabled | readonly | checked | expected
|
|
10
|
+
${false} | ${false} | ${false} | ${'default'}
|
|
11
|
+
${false} | ${false} | ${true} | ${'checked'}
|
|
12
|
+
${false} | ${true} | ${false} | ${'readonly'}
|
|
13
|
+
${false} | ${true} | ${true} | ${'readonly'}
|
|
14
|
+
${true} | ${false} | ${false} | ${'disabled'}
|
|
15
|
+
${true} | ${false} | ${true} | ${'disabled'}
|
|
16
|
+
${true} | ${true} | ${false} | ${'disabled'}
|
|
17
|
+
${true} | ${true} | ${true} | ${'disabled'}
|
|
14
18
|
`(
|
|
15
19
|
`should return correctly if disabled is $disabled and readonly is $readonly`,
|
|
16
|
-
({ disabled, readonly, expected }) => {
|
|
17
|
-
expect(getThemeState({ disabled, readonly })).toBe(expected);
|
|
20
|
+
({ disabled, readonly, checked, expected }) => {
|
|
21
|
+
expect(getThemeState({ disabled, readonly, checked })).toBe(expected);
|
|
18
22
|
}
|
|
19
23
|
);
|
|
20
24
|
});
|
|
@@ -48,9 +48,14 @@ export interface CheckboxProps {
|
|
|
48
48
|
type getStateType = {
|
|
49
49
|
disabled: boolean;
|
|
50
50
|
readonly: boolean;
|
|
51
|
+
checked?: boolean;
|
|
51
52
|
};
|
|
52
53
|
|
|
53
|
-
export const getThemeState = ({
|
|
54
|
+
export const getThemeState = ({
|
|
55
|
+
disabled,
|
|
56
|
+
readonly,
|
|
57
|
+
checked,
|
|
58
|
+
}: getStateType) => {
|
|
54
59
|
if (disabled) {
|
|
55
60
|
return 'disabled';
|
|
56
61
|
}
|
|
@@ -59,6 +64,10 @@ export const getThemeState = ({ disabled, readonly }: getStateType) => {
|
|
|
59
64
|
return 'readonly';
|
|
60
65
|
}
|
|
61
66
|
|
|
67
|
+
if (checked) {
|
|
68
|
+
return 'checked';
|
|
69
|
+
}
|
|
70
|
+
|
|
62
71
|
return 'default';
|
|
63
72
|
};
|
|
64
73
|
|
|
@@ -77,7 +86,7 @@ const Checkbox = ({
|
|
|
77
86
|
withBorder === true
|
|
78
87
|
);
|
|
79
88
|
|
|
80
|
-
const themeState = getThemeState({ disabled, readonly });
|
|
89
|
+
const themeState = getThemeState({ disabled, readonly, checked });
|
|
81
90
|
|
|
82
91
|
return (
|
|
83
92
|
<StyledWrapper
|
|
@@ -369,7 +369,7 @@ exports[`Chip renders correctly with custom icon 1`] = `
|
|
|
369
369
|
"opacity": 1,
|
|
370
370
|
"paddingHorizontal": 12,
|
|
371
371
|
"paddingVertical": 8,
|
|
372
|
-
"shadowColor": "#
|
|
372
|
+
"shadowColor": "#121214",
|
|
373
373
|
"shadowOffset": {
|
|
374
374
|
"height": 2,
|
|
375
375
|
"width": 0,
|
|
@@ -505,7 +505,7 @@ exports[`Chip renders correctly with custom icon 2`] = `
|
|
|
505
505
|
"opacity": 1,
|
|
506
506
|
"paddingHorizontal": 12,
|
|
507
507
|
"paddingVertical": 8,
|
|
508
|
-
"shadowColor": "#
|
|
508
|
+
"shadowColor": "#121214",
|
|
509
509
|
"shadowOffset": {
|
|
510
510
|
"height": 2,
|
|
511
511
|
"width": 0,
|
|
@@ -867,7 +867,7 @@ exports[`Chip renders correctly with variant compact and selected false 1`] = `
|
|
|
867
867
|
"opacity": 1,
|
|
868
868
|
"paddingHorizontal": 8,
|
|
869
869
|
"paddingVertical": 4,
|
|
870
|
-
"shadowColor": "#
|
|
870
|
+
"shadowColor": "#121214",
|
|
871
871
|
"shadowOffset": {
|
|
872
872
|
"height": 2,
|
|
873
873
|
"width": 0,
|
|
@@ -971,7 +971,7 @@ exports[`Chip renders correctly with variant compact and selected true 1`] = `
|
|
|
971
971
|
"opacity": 1,
|
|
972
972
|
"paddingHorizontal": 8,
|
|
973
973
|
"paddingVertical": 4,
|
|
974
|
-
"shadowColor": "#
|
|
974
|
+
"shadowColor": "#121214",
|
|
975
975
|
"shadowOffset": {
|
|
976
976
|
"height": 2,
|
|
977
977
|
"width": 0,
|
|
@@ -1301,7 +1301,7 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
|
|
|
1301
1301
|
"opacity": 1,
|
|
1302
1302
|
"paddingHorizontal": 12,
|
|
1303
1303
|
"paddingVertical": 8,
|
|
1304
|
-
"shadowColor": "#
|
|
1304
|
+
"shadowColor": "#121214",
|
|
1305
1305
|
"shadowOffset": {
|
|
1306
1306
|
"height": 2,
|
|
1307
1307
|
"width": 0,
|
|
@@ -1405,7 +1405,7 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
|
|
|
1405
1405
|
"opacity": 1,
|
|
1406
1406
|
"paddingHorizontal": 12,
|
|
1407
1407
|
"paddingVertical": 8,
|
|
1408
|
-
"shadowColor": "#
|
|
1408
|
+
"shadowColor": "#121214",
|
|
1409
1409
|
"shadowOffset": {
|
|
1410
1410
|
"height": 2,
|
|
1411
1411
|
"width": 0,
|
|
@@ -1509,7 +1509,7 @@ exports[`Chip renders correctly with variant filter and selected false 1`] = `
|
|
|
1509
1509
|
"opacity": 1,
|
|
1510
1510
|
"paddingHorizontal": 12,
|
|
1511
1511
|
"paddingVertical": 8,
|
|
1512
|
-
"shadowColor": "#
|
|
1512
|
+
"shadowColor": "#121214",
|
|
1513
1513
|
"shadowOffset": {
|
|
1514
1514
|
"height": 2,
|
|
1515
1515
|
"width": 0,
|
|
@@ -1613,7 +1613,7 @@ exports[`Chip renders correctly with variant filter and selected true 1`] = `
|
|
|
1613
1613
|
"opacity": 1,
|
|
1614
1614
|
"paddingHorizontal": 12,
|
|
1615
1615
|
"paddingVertical": 8,
|
|
1616
|
-
"shadowColor": "#
|
|
1616
|
+
"shadowColor": "#121214",
|
|
1617
1617
|
"shadowOffset": {
|
|
1618
1618
|
"height": 2,
|
|
1619
1619
|
"width": 0,
|
|
@@ -162,7 +162,26 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -191,6 +210,7 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
|
|
|
191
210
|
onChangeText={[Function]}
|
|
192
211
|
onFocus={[Function]}
|
|
193
212
|
placeholder=" "
|
|
213
|
+
placeholderTextColor="#4d6265"
|
|
194
214
|
style={
|
|
195
215
|
[
|
|
196
216
|
{
|
|
@@ -444,7 +464,26 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
|
|
|
444
464
|
themeTypeface="neutral"
|
|
445
465
|
themeVariant="regular"
|
|
446
466
|
>
|
|
447
|
-
|
|
467
|
+
<Text
|
|
468
|
+
allowFontScaling={false}
|
|
469
|
+
style={
|
|
470
|
+
[
|
|
471
|
+
{
|
|
472
|
+
"color": "#001f23",
|
|
473
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
474
|
+
"fontSize": 16,
|
|
475
|
+
"letterSpacing": 0.48,
|
|
476
|
+
"lineHeight": 24,
|
|
477
|
+
},
|
|
478
|
+
undefined,
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
themeIntent="body"
|
|
482
|
+
themeTypeface="neutral"
|
|
483
|
+
themeVariant="regular"
|
|
484
|
+
>
|
|
485
|
+
Start date
|
|
486
|
+
</Text>
|
|
448
487
|
</Text>
|
|
449
488
|
</View>
|
|
450
489
|
<View
|
|
@@ -473,6 +512,7 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
|
|
|
473
512
|
onChangeText={[Function]}
|
|
474
513
|
onFocus={[Function]}
|
|
475
514
|
placeholder=" "
|
|
515
|
+
placeholderTextColor="#4d6265"
|
|
476
516
|
style={
|
|
477
517
|
[
|
|
478
518
|
{
|
|
@@ -726,7 +766,26 @@ exports[`DatePicker renders variant Calendar 1`] = `
|
|
|
726
766
|
themeTypeface="neutral"
|
|
727
767
|
themeVariant="regular"
|
|
728
768
|
>
|
|
729
|
-
|
|
769
|
+
<Text
|
|
770
|
+
allowFontScaling={false}
|
|
771
|
+
style={
|
|
772
|
+
[
|
|
773
|
+
{
|
|
774
|
+
"color": "#001f23",
|
|
775
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
776
|
+
"fontSize": 16,
|
|
777
|
+
"letterSpacing": 0.48,
|
|
778
|
+
"lineHeight": 24,
|
|
779
|
+
},
|
|
780
|
+
undefined,
|
|
781
|
+
]
|
|
782
|
+
}
|
|
783
|
+
themeIntent="body"
|
|
784
|
+
themeTypeface="neutral"
|
|
785
|
+
themeVariant="regular"
|
|
786
|
+
>
|
|
787
|
+
Start date
|
|
788
|
+
</Text>
|
|
730
789
|
</Text>
|
|
731
790
|
</View>
|
|
732
791
|
<View
|
|
@@ -755,6 +814,7 @@ exports[`DatePicker renders variant Calendar 1`] = `
|
|
|
755
814
|
onChangeText={[Function]}
|
|
756
815
|
onFocus={[Function]}
|
|
757
816
|
placeholder=" "
|
|
817
|
+
placeholderTextColor="#4d6265"
|
|
758
818
|
style={
|
|
759
819
|
[
|
|
760
820
|
{
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -191,6 +210,7 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
191
210
|
onChangeText={[Function]}
|
|
192
211
|
onFocus={[Function]}
|
|
193
212
|
placeholder=" "
|
|
213
|
+
placeholderTextColor="#4d6265"
|
|
194
214
|
style={
|
|
195
215
|
[
|
|
196
216
|
{
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerCalendar renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -191,6 +210,7 @@ exports[`DatePickerCalendar renders correctly 1`] = `
|
|
|
191
210
|
onChangeText={[Function]}
|
|
192
211
|
onFocus={[Function]}
|
|
193
212
|
placeholder=" "
|
|
213
|
+
placeholderTextColor="#4d6265"
|
|
194
214
|
style={
|
|
195
215
|
[
|
|
196
216
|
{
|
|
@@ -162,7 +162,26 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
162
162
|
themeTypeface="neutral"
|
|
163
163
|
themeVariant="regular"
|
|
164
164
|
>
|
|
165
|
-
|
|
165
|
+
<Text
|
|
166
|
+
allowFontScaling={false}
|
|
167
|
+
style={
|
|
168
|
+
[
|
|
169
|
+
{
|
|
170
|
+
"color": "#001f23",
|
|
171
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
172
|
+
"fontSize": 16,
|
|
173
|
+
"letterSpacing": 0.48,
|
|
174
|
+
"lineHeight": 24,
|
|
175
|
+
},
|
|
176
|
+
undefined,
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
themeIntent="body"
|
|
180
|
+
themeTypeface="neutral"
|
|
181
|
+
themeVariant="regular"
|
|
182
|
+
>
|
|
183
|
+
Start date
|
|
184
|
+
</Text>
|
|
166
185
|
</Text>
|
|
167
186
|
</View>
|
|
168
187
|
<View
|
|
@@ -191,6 +210,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
191
210
|
onChangeText={[Function]}
|
|
192
211
|
onFocus={[Function]}
|
|
193
212
|
placeholder=" "
|
|
213
|
+
placeholderTextColor="#4d6265"
|
|
194
214
|
style={
|
|
195
215
|
[
|
|
196
216
|
{
|
|
@@ -393,15 +413,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
393
413
|
"backgroundColor": "#ffffff",
|
|
394
414
|
"borderTopLeftRadius": 16,
|
|
395
415
|
"borderTopRightRadius": 16,
|
|
396
|
-
"elevation": 10,
|
|
397
416
|
"maxHeight": "94%",
|
|
398
|
-
"shadowColor": "#001f23",
|
|
399
|
-
"shadowOffset": {
|
|
400
|
-
"height": 3,
|
|
401
|
-
"width": 0,
|
|
402
|
-
},
|
|
403
|
-
"shadowOpacity": 0.4,
|
|
404
|
-
"shadowRadius": 16,
|
|
405
417
|
"transform": [
|
|
406
418
|
{
|
|
407
419
|
"scaleY": 1,
|
|
@@ -831,7 +843,26 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
831
843
|
themeTypeface="neutral"
|
|
832
844
|
themeVariant="regular"
|
|
833
845
|
>
|
|
834
|
-
|
|
846
|
+
<Text
|
|
847
|
+
allowFontScaling={false}
|
|
848
|
+
style={
|
|
849
|
+
[
|
|
850
|
+
{
|
|
851
|
+
"color": "#001f23",
|
|
852
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
853
|
+
"fontSize": 16,
|
|
854
|
+
"letterSpacing": 0.48,
|
|
855
|
+
"lineHeight": 24,
|
|
856
|
+
},
|
|
857
|
+
undefined,
|
|
858
|
+
]
|
|
859
|
+
}
|
|
860
|
+
themeIntent="body"
|
|
861
|
+
themeTypeface="neutral"
|
|
862
|
+
themeVariant="regular"
|
|
863
|
+
>
|
|
864
|
+
Start date
|
|
865
|
+
</Text>
|
|
835
866
|
</Text>
|
|
836
867
|
</View>
|
|
837
868
|
<View
|
|
@@ -860,6 +891,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
860
891
|
onChangeText={[Function]}
|
|
861
892
|
onFocus={[Function]}
|
|
862
893
|
placeholder=" "
|
|
894
|
+
placeholderTextColor="#4d6265"
|
|
863
895
|
style={
|
|
864
896
|
[
|
|
865
897
|
{
|
|
@@ -1062,15 +1094,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
1062
1094
|
"backgroundColor": "#ffffff",
|
|
1063
1095
|
"borderTopLeftRadius": 16,
|
|
1064
1096
|
"borderTopRightRadius": 16,
|
|
1065
|
-
"elevation": 10,
|
|
1066
1097
|
"maxHeight": "94%",
|
|
1067
|
-
"shadowColor": "#001f23",
|
|
1068
|
-
"shadowOffset": {
|
|
1069
|
-
"height": 3,
|
|
1070
|
-
"width": 0,
|
|
1071
|
-
},
|
|
1072
|
-
"shadowOpacity": 0.4,
|
|
1073
|
-
"shadowRadius": 16,
|
|
1074
1098
|
"transform": [
|
|
1075
1099
|
{
|
|
1076
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",
|
|
@@ -79,7 +79,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
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",
|
|
@@ -272,7 +272,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
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",
|
|
@@ -1094,7 +1094,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
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,
|