@hero-design/rn 8.91.1 → 8.91.3
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 +16 -0
- package/es/index.js +155 -35
- package/lib/index.js +155 -35
- package/package.json +1 -1
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +6 -6
- 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 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +3 -2
- 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 -7
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -6
- 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 +8 -4
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +4 -2
- 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 -2
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +42 -14
- package/src/theme/components/checkbox.ts +7 -0
- package/src/theme/components/switch.ts +5 -5
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +4 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +3 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +4 -3
- package/src/theme/global/colors/ehWorkDark.ts +1 -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/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/checkbox.d.ts +7 -0
- package/types/theme/components/chip.d.ts +1 -10
- 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
package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap
CHANGED
|
@@ -815,7 +815,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders ActionGr
|
|
|
815
815
|
"marginTop": 24,
|
|
816
816
|
"opacity": 1,
|
|
817
817
|
"padding": 20,
|
|
818
|
-
"shadowColor": "#
|
|
818
|
+
"shadowColor": "#121214",
|
|
819
819
|
"shadowOffset": {
|
|
820
820
|
"height": 2,
|
|
821
821
|
"width": 0,
|
|
@@ -1727,7 +1727,7 @@ exports[`Scrollables With FAB [Function ExampleFlatListWithFAB] renders FAB corr
|
|
|
1727
1727
|
"justifyContent": "center",
|
|
1728
1728
|
"opacity": 1,
|
|
1729
1729
|
"padding": 20,
|
|
1730
|
-
"shadowColor": "#
|
|
1730
|
+
"shadowColor": "#121214",
|
|
1731
1731
|
"shadowOffset": {
|
|
1732
1732
|
"height": 2,
|
|
1733
1733
|
"width": 0,
|
|
@@ -1999,7 +1999,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders Action
|
|
|
1999
1999
|
"marginTop": 24,
|
|
2000
2000
|
"opacity": 1,
|
|
2001
2001
|
"padding": 20,
|
|
2002
|
-
"shadowColor": "#
|
|
2002
|
+
"shadowColor": "#121214",
|
|
2003
2003
|
"shadowOffset": {
|
|
2004
2004
|
"height": 2,
|
|
2005
2005
|
"width": 0,
|
|
@@ -2251,7 +2251,7 @@ exports[`Scrollables With FAB [Function ExampleScrollViewWithFAB] renders FAB co
|
|
|
2251
2251
|
"justifyContent": "center",
|
|
2252
2252
|
"opacity": 1,
|
|
2253
2253
|
"padding": 20,
|
|
2254
|
-
"shadowColor": "#
|
|
2254
|
+
"shadowColor": "#121214",
|
|
2255
2255
|
"shadowOffset": {
|
|
2256
2256
|
"height": 2,
|
|
2257
2257
|
"width": 0,
|
|
@@ -2830,7 +2830,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders Actio
|
|
|
2830
2830
|
"marginTop": 24,
|
|
2831
2831
|
"opacity": 1,
|
|
2832
2832
|
"padding": 20,
|
|
2833
|
-
"shadowColor": "#
|
|
2833
|
+
"shadowColor": "#121214",
|
|
2834
2834
|
"shadowOffset": {
|
|
2835
2835
|
"height": 2,
|
|
2836
2836
|
"width": 0,
|
|
@@ -3389,7 +3389,7 @@ exports[`Scrollables With FAB [Function ExampleSectionListWithFAB] renders FAB c
|
|
|
3389
3389
|
"justifyContent": "center",
|
|
3390
3390
|
"opacity": 1,
|
|
3391
3391
|
"padding": 20,
|
|
3392
|
-
"shadowColor": "#
|
|
3392
|
+
"shadowColor": "#121214",
|
|
3393
3393
|
"shadowOffset": {
|
|
3394
3394
|
"height": 2,
|
|
3395
3395
|
"width": 0,
|
|
@@ -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
|
{
|
|
@@ -831,7 +851,26 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
831
851
|
themeTypeface="neutral"
|
|
832
852
|
themeVariant="regular"
|
|
833
853
|
>
|
|
834
|
-
|
|
854
|
+
<Text
|
|
855
|
+
allowFontScaling={false}
|
|
856
|
+
style={
|
|
857
|
+
[
|
|
858
|
+
{
|
|
859
|
+
"color": "#001f23",
|
|
860
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
861
|
+
"fontSize": 16,
|
|
862
|
+
"letterSpacing": 0.48,
|
|
863
|
+
"lineHeight": 24,
|
|
864
|
+
},
|
|
865
|
+
undefined,
|
|
866
|
+
]
|
|
867
|
+
}
|
|
868
|
+
themeIntent="body"
|
|
869
|
+
themeTypeface="neutral"
|
|
870
|
+
themeVariant="regular"
|
|
871
|
+
>
|
|
872
|
+
Start date
|
|
873
|
+
</Text>
|
|
835
874
|
</Text>
|
|
836
875
|
</View>
|
|
837
876
|
<View
|
|
@@ -860,6 +899,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
860
899
|
onChangeText={[Function]}
|
|
861
900
|
onFocus={[Function]}
|
|
862
901
|
placeholder=" "
|
|
902
|
+
placeholderTextColor="#4d6265"
|
|
863
903
|
style={
|
|
864
904
|
[
|
|
865
905
|
{
|
|
@@ -73,7 +73,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
73
73
|
"marginTop": 24,
|
|
74
74
|
"opacity": 1,
|
|
75
75
|
"padding": 20,
|
|
76
|
-
"shadowColor": "#
|
|
76
|
+
"shadowColor": "#121214",
|
|
77
77
|
"shadowOffset": {
|
|
78
78
|
"height": 2,
|
|
79
79
|
"width": 0,
|
|
@@ -266,7 +266,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
266
266
|
"marginTop": 24,
|
|
267
267
|
"opacity": 1,
|
|
268
268
|
"padding": 20,
|
|
269
|
-
"shadowColor": "#
|
|
269
|
+
"shadowColor": "#121214",
|
|
270
270
|
"shadowOffset": {
|
|
271
271
|
"height": 2,
|
|
272
272
|
"width": 0,
|
|
@@ -1088,7 +1088,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1088
1088
|
"marginTop": 24,
|
|
1089
1089
|
"opacity": 1,
|
|
1090
1090
|
"padding": 20,
|
|
1091
|
-
"shadowColor": "#
|
|
1091
|
+
"shadowColor": "#121214",
|
|
1092
1092
|
"shadowOffset": {
|
|
1093
1093
|
"height": 2,
|
|
1094
1094
|
"width": 0,
|
|
@@ -66,7 +66,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
66
66
|
"marginRight": 8,
|
|
67
67
|
"opacity": 1,
|
|
68
68
|
"padding": 20,
|
|
69
|
-
"shadowColor": "#
|
|
69
|
+
"shadowColor": "#121214",
|
|
70
70
|
"shadowOffset": {
|
|
71
71
|
"height": 2,
|
|
72
72
|
"width": 0,
|
|
@@ -177,7 +177,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
177
177
|
"marginRight": undefined,
|
|
178
178
|
"opacity": 1,
|
|
179
179
|
"padding": 20,
|
|
180
|
-
"shadowColor": "#
|
|
180
|
+
"shadowColor": "#121214",
|
|
181
181
|
"shadowOffset": {
|
|
182
182
|
"height": 2,
|
|
183
183
|
"width": 0,
|
|
@@ -48,7 +48,7 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
48
48
|
"justifyContent": "center",
|
|
49
49
|
"opacity": 1,
|
|
50
50
|
"padding": 20,
|
|
51
|
-
"shadowColor": "#
|
|
51
|
+
"shadowColor": "#121214",
|
|
52
52
|
"shadowOffset": {
|
|
53
53
|
"height": 2,
|
|
54
54
|
"width": 0,
|
|
@@ -150,7 +150,7 @@ exports[`StyledFAB renders correctly 2`] = `
|
|
|
150
150
|
"justifyContent": "center",
|
|
151
151
|
"opacity": 1,
|
|
152
152
|
"padding": 20,
|
|
153
|
-
"shadowColor": "#
|
|
153
|
+
"shadowColor": "#121214",
|
|
154
154
|
"shadowOffset": {
|
|
155
155
|
"height": 2,
|
|
156
156
|
"width": 0,
|
|
@@ -50,7 +50,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
|
|
|
50
50
|
"justifyContent": "center",
|
|
51
51
|
"opacity": 1,
|
|
52
52
|
"padding": 20,
|
|
53
|
-
"shadowColor": "#
|
|
53
|
+
"shadowColor": "#121214",
|
|
54
54
|
"shadowOffset": {
|
|
55
55
|
"height": 2,
|
|
56
56
|
"width": 0,
|
|
@@ -189,7 +189,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
|
|
|
189
189
|
"justifyContent": "center",
|
|
190
190
|
"opacity": 1,
|
|
191
191
|
"padding": 20,
|
|
192
|
-
"shadowColor": "#
|
|
192
|
+
"shadowColor": "#121214",
|
|
193
193
|
"shadowOffset": {
|
|
194
194
|
"height": 2,
|
|
195
195
|
"width": 0,
|
|
@@ -341,7 +341,7 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
341
341
|
"justifyContent": "center",
|
|
342
342
|
"opacity": 1,
|
|
343
343
|
"padding": 20,
|
|
344
|
-
"shadowColor": "#
|
|
344
|
+
"shadowColor": "#121214",
|
|
345
345
|
"shadowOffset": {
|
|
346
346
|
"height": 2,
|
|
347
347
|
"width": 0,
|
|
@@ -50,7 +50,7 @@ exports[`FloatingIsland renders correctly 1`] = `
|
|
|
50
50
|
"opacity": 1,
|
|
51
51
|
"padding": 8,
|
|
52
52
|
"position": "absolute",
|
|
53
|
-
"shadowColor": "#
|
|
53
|
+
"shadowColor": "#121214",
|
|
54
54
|
"shadowOffset": {
|
|
55
55
|
"height": 2,
|
|
56
56
|
"width": 0,
|
|
@@ -156,7 +156,7 @@ exports[`FloatingIsland renders icons as prefix and suffix correctly 1`] = `
|
|
|
156
156
|
"opacity": 1,
|
|
157
157
|
"padding": 8,
|
|
158
158
|
"position": "absolute",
|
|
159
|
-
"shadowColor": "#
|
|
159
|
+
"shadowColor": "#121214",
|
|
160
160
|
"shadowOffset": {
|
|
161
161
|
"height": 2,
|
|
162
162
|
"width": 0,
|
|
@@ -330,7 +330,7 @@ exports[`FloatingIsland renders prefix correctly 1`] = `
|
|
|
330
330
|
"opacity": 1,
|
|
331
331
|
"padding": 8,
|
|
332
332
|
"position": "absolute",
|
|
333
|
-
"shadowColor": "#
|
|
333
|
+
"shadowColor": "#121214",
|
|
334
334
|
"shadowOffset": {
|
|
335
335
|
"height": 2,
|
|
336
336
|
"width": 0,
|
|
@@ -470,7 +470,7 @@ exports[`FloatingIsland renders suffix correctly 1`] = `
|
|
|
470
470
|
"opacity": 1,
|
|
471
471
|
"padding": 8,
|
|
472
472
|
"position": "absolute",
|
|
473
|
-
"shadowColor": "#
|
|
473
|
+
"shadowColor": "#121214",
|
|
474
474
|
"shadowOffset": {
|
|
475
475
|
"height": 2,
|
|
476
476
|
"width": 0,
|
|
@@ -945,11 +945,12 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
945
945
|
style={
|
|
946
946
|
[
|
|
947
947
|
{
|
|
948
|
-
"backgroundColor": "#
|
|
948
|
+
"backgroundColor": "#33144d",
|
|
949
949
|
"borderRadius": 999,
|
|
950
950
|
"display": "flex",
|
|
951
951
|
"height": 24,
|
|
952
952
|
"justifyContent": "center",
|
|
953
|
+
"opacity": 1,
|
|
953
954
|
"paddingHorizontal": 4,
|
|
954
955
|
"width": 48,
|
|
955
956
|
},
|
|
@@ -963,7 +964,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
963
964
|
collapsable={false}
|
|
964
965
|
style={
|
|
965
966
|
{
|
|
966
|
-
"backgroundColor":
|
|
967
|
+
"backgroundColor": undefined,
|
|
967
968
|
"borderRadius": 999,
|
|
968
969
|
"height": 16,
|
|
969
970
|
"left": 24,
|