@hero-design/rn 8.91.0 → 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 +23 -0
- package/es/index.js +157 -37
- package/lib/index.js +157 -37
- 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/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- 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 +44 -16
- package/src/theme/components/attachment.ts +1 -1
- package/src/theme/components/checkbox.ts +7 -0
- package/src/theme/components/success.ts +1 -1
- 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.1/rn-stats.html +4842 -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/attachment.d.ts +1 -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
|
@@ -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,
|
|
@@ -260,7 +260,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
|
|
|
260
260
|
"elevation": 3,
|
|
261
261
|
"flexDirection": "row",
|
|
262
262
|
"padding": 16,
|
|
263
|
-
"shadowColor": "#
|
|
263
|
+
"shadowColor": "#121214",
|
|
264
264
|
"shadowOffset": {
|
|
265
265
|
"height": 2,
|
|
266
266
|
"width": 0,
|
|
@@ -433,7 +433,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
|
|
|
433
433
|
"elevation": 3,
|
|
434
434
|
"flexDirection": "row",
|
|
435
435
|
"padding": 16,
|
|
436
|
-
"shadowColor": "#
|
|
436
|
+
"shadowColor": "#121214",
|
|
437
437
|
"shadowOffset": {
|
|
438
438
|
"height": 2,
|
|
439
439
|
"width": 0,
|
|
@@ -36,7 +36,7 @@ exports[`MapPin renders applied state correctly 1`] = `
|
|
|
36
36
|
"elevation": 3,
|
|
37
37
|
"height": 42,
|
|
38
38
|
"justifyContent": "center",
|
|
39
|
-
"shadowColor": "#
|
|
39
|
+
"shadowColor": "#121214",
|
|
40
40
|
"shadowOffset": {
|
|
41
41
|
"height": 2,
|
|
42
42
|
"width": 0,
|
|
@@ -177,7 +177,7 @@ exports[`MapPin renders icon correctly 1`] = `
|
|
|
177
177
|
"elevation": 3,
|
|
178
178
|
"height": 42,
|
|
179
179
|
"justifyContent": "center",
|
|
180
|
-
"shadowColor": "#
|
|
180
|
+
"shadowColor": "#121214",
|
|
181
181
|
"shadowOffset": {
|
|
182
182
|
"height": 2,
|
|
183
183
|
"width": 0,
|
|
@@ -267,7 +267,7 @@ exports[`MapPin renders image correctly 1`] = `
|
|
|
267
267
|
"elevation": 3,
|
|
268
268
|
"height": 42,
|
|
269
269
|
"justifyContent": "center",
|
|
270
|
-
"shadowColor": "#
|
|
270
|
+
"shadowColor": "#121214",
|
|
271
271
|
"shadowOffset": {
|
|
272
272
|
"height": 2,
|
|
273
273
|
"width": 0,
|
|
@@ -360,7 +360,7 @@ exports[`MapPin renders selected state correctly 1`] = `
|
|
|
360
360
|
"elevation": 3,
|
|
361
361
|
"height": 42,
|
|
362
362
|
"justifyContent": "center",
|
|
363
|
-
"shadowColor": "#
|
|
363
|
+
"shadowColor": "#121214",
|
|
364
364
|
"shadowOffset": {
|
|
365
365
|
"height": 2,
|
|
366
366
|
"width": 0,
|
|
@@ -39,6 +39,7 @@ import { postMessage, requestBlurEditor } from './utils/rnWebView';
|
|
|
39
39
|
import type { WebViewEventMessage } from './utils/rnWebView';
|
|
40
40
|
import { LABEL_ANIMATION_DURATION } from '../TextInput';
|
|
41
41
|
import { TextUnit } from './types';
|
|
42
|
+
import Typography from '../Typography';
|
|
42
43
|
|
|
43
44
|
export interface RichTextEditorRef {
|
|
44
45
|
requestBlur: VoidFunction;
|
|
@@ -408,7 +409,7 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
408
409
|
*
|
|
409
410
|
</StyledAsteriskLabelInsideTextInput>
|
|
410
411
|
)}
|
|
411
|
-
{label}
|
|
412
|
+
<Typography.Body>{label}</Typography.Body>
|
|
412
413
|
</StyledLabelInsideTextInput>
|
|
413
414
|
)}
|
|
414
415
|
</StyledLabelContainerInsideTextInput>
|
|
@@ -83,7 +83,26 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
83
83
|
themeTypeface="neutral"
|
|
84
84
|
themeVariant="regular"
|
|
85
85
|
>
|
|
86
|
-
|
|
86
|
+
<Text
|
|
87
|
+
allowFontScaling={false}
|
|
88
|
+
style={
|
|
89
|
+
[
|
|
90
|
+
{
|
|
91
|
+
"color": "#001f23",
|
|
92
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
93
|
+
"fontSize": 16,
|
|
94
|
+
"letterSpacing": 0.48,
|
|
95
|
+
"lineHeight": 24,
|
|
96
|
+
},
|
|
97
|
+
undefined,
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
themeIntent="body"
|
|
101
|
+
themeTypeface="neutral"
|
|
102
|
+
themeVariant="regular"
|
|
103
|
+
>
|
|
104
|
+
Rich Text Editor
|
|
105
|
+
</Text>
|
|
87
106
|
</Text>
|
|
88
107
|
</View>
|
|
89
108
|
<View
|
|
@@ -405,7 +424,26 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
405
424
|
themeTypeface="neutral"
|
|
406
425
|
themeVariant="regular"
|
|
407
426
|
>
|
|
408
|
-
|
|
427
|
+
<Text
|
|
428
|
+
allowFontScaling={false}
|
|
429
|
+
style={
|
|
430
|
+
[
|
|
431
|
+
{
|
|
432
|
+
"color": "#001f23",
|
|
433
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
434
|
+
"fontSize": 16,
|
|
435
|
+
"letterSpacing": 0.48,
|
|
436
|
+
"lineHeight": 24,
|
|
437
|
+
},
|
|
438
|
+
undefined,
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
themeIntent="body"
|
|
442
|
+
themeTypeface="neutral"
|
|
443
|
+
themeVariant="regular"
|
|
444
|
+
>
|
|
445
|
+
Rich Text Editor
|
|
446
|
+
</Text>
|
|
409
447
|
</Text>
|
|
410
448
|
</View>
|
|
411
449
|
<View
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import { IconName } from '../Icon';
|
|
17
17
|
import { renderPrefix, renderSuffix } from './utils';
|
|
18
18
|
import Button from '../Button';
|
|
19
|
+
import { useTheme } from '../../theme';
|
|
19
20
|
|
|
20
21
|
export type SearchOneLineHandles = Pick<
|
|
21
22
|
RNTextInput,
|
|
@@ -132,7 +133,7 @@ const SearchOneLine = forwardRef<SearchOneLineHandles, SearchOneLineProps>(
|
|
|
132
133
|
} = props;
|
|
133
134
|
|
|
134
135
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
135
|
-
|
|
136
|
+
const theme = useTheme();
|
|
136
137
|
const displayText = (value !== undefined ? value : defaultValue) ?? '';
|
|
137
138
|
const isEmptyValue = displayText.length === 0;
|
|
138
139
|
|
|
@@ -215,6 +216,7 @@ const SearchOneLine = forwardRef<SearchOneLineHandles, SearchOneLineProps>(
|
|
|
215
216
|
value,
|
|
216
217
|
defaultValue,
|
|
217
218
|
placeholder,
|
|
219
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder,
|
|
218
220
|
},
|
|
219
221
|
ref: (rnTextInputRef) => {
|
|
220
222
|
innerTextInput.current = rnTextInputRef;
|
|
@@ -76,6 +76,7 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
76
76
|
onBlur={[Function]}
|
|
77
77
|
onFocus={[Function]}
|
|
78
78
|
placeholder="Search"
|
|
79
|
+
placeholderTextColor="#4d6265"
|
|
79
80
|
style={
|
|
80
81
|
[
|
|
81
82
|
{
|
|
@@ -213,6 +214,7 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
|
|
|
213
214
|
onBlur={[Function]}
|
|
214
215
|
onFocus={[Function]}
|
|
215
216
|
placeholder="Search"
|
|
217
|
+
placeholderTextColor="#4d6265"
|
|
216
218
|
style={
|
|
217
219
|
[
|
|
218
220
|
{
|
|
@@ -357,6 +359,7 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
357
359
|
onBlur={[Function]}
|
|
358
360
|
onFocus={[Function]}
|
|
359
361
|
placeholder="Search"
|
|
362
|
+
placeholderTextColor="#4d6265"
|
|
360
363
|
style={
|
|
361
364
|
[
|
|
362
365
|
{
|
|
@@ -502,6 +505,7 @@ exports[`filled disabled renders correctly 1`] = `
|
|
|
502
505
|
onChangeText={[MockFunction]}
|
|
503
506
|
onFocus={[Function]}
|
|
504
507
|
placeholder="Search"
|
|
508
|
+
placeholderTextColor="#4d6265"
|
|
505
509
|
style={
|
|
506
510
|
[
|
|
507
511
|
{
|
|
@@ -648,6 +652,7 @@ exports[`filled readonly renders correctly 1`] = `
|
|
|
648
652
|
onChangeText={[MockFunction]}
|
|
649
653
|
onFocus={[Function]}
|
|
650
654
|
placeholder="Search"
|
|
655
|
+
placeholderTextColor="#4d6265"
|
|
651
656
|
style={
|
|
652
657
|
[
|
|
653
658
|
{
|
|
@@ -793,6 +798,7 @@ exports[`filled renders clearable input correctly 1`] = `
|
|
|
793
798
|
onBlur={[Function]}
|
|
794
799
|
onFocus={[Function]}
|
|
795
800
|
placeholder="Search"
|
|
801
|
+
placeholderTextColor="#4d6265"
|
|
796
802
|
style={
|
|
797
803
|
[
|
|
798
804
|
{
|
|
@@ -973,6 +979,7 @@ exports[`filled renders correctly 1`] = `
|
|
|
973
979
|
onBlur={[Function]}
|
|
974
980
|
onFocus={[Function]}
|
|
975
981
|
placeholder="Search"
|
|
982
|
+
placeholderTextColor="#4d6265"
|
|
976
983
|
style={
|
|
977
984
|
[
|
|
978
985
|
{
|