@hero-design/rn 8.2.0 → 8.2.1
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 +9 -9
- package/es/index.js +4174 -4058
- package/lib/index.js +4174 -4058
- package/package.json +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/PinInput/index.tsx +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/TextInput/StyledTextInput.tsx +2 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +6 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/textInput.ts +6 -1
- package/types/theme/components/textInput.d.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.2.
|
|
24
|
+
"@hero-design/colors": "8.2.1",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
|
-
"hero-editor": "^1.9.
|
|
27
|
+
"hero-editor": "^1.9.21"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/preset-typescript": "^7.17.12",
|
|
45
45
|
"@babel/runtime": "^7.18.9",
|
|
46
46
|
"@emotion/jest": "^11.9.3",
|
|
47
|
-
"@hero-design/eslint-plugin": "8.2.
|
|
47
|
+
"@hero-design/eslint-plugin": "8.2.1",
|
|
48
48
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
49
49
|
"@react-native-community/slider": "4.1.12",
|
|
50
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@types/react-native": "^0.67.7",
|
|
61
61
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
62
62
|
"babel-plugin-inline-import": "^3.0.0",
|
|
63
|
-
"eslint-config-hd": "8.2.
|
|
63
|
+
"eslint-config-hd": "8.2.1",
|
|
64
64
|
"jest": "^27.3.1",
|
|
65
|
-
"prettier-config-hd": "8.2.
|
|
65
|
+
"prettier-config-hd": "8.2.1",
|
|
66
66
|
"react": "18.0.0",
|
|
67
67
|
"react-native": "0.69.7",
|
|
68
68
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -204,6 +204,7 @@ exports[`rendering renders correctly 1`] = `
|
|
|
204
204
|
onBlur={[Function]}
|
|
205
205
|
onChangeText={[Function]}
|
|
206
206
|
onFocus={[Function]}
|
|
207
|
+
pointerEvents="box-only"
|
|
207
208
|
secureTextEntry={true}
|
|
208
209
|
style={
|
|
209
210
|
Array [
|
|
@@ -429,6 +430,7 @@ exports[`rendering renders correctly when disabled 1`] = `
|
|
|
429
430
|
onBlur={[Function]}
|
|
430
431
|
onChangeText={[Function]}
|
|
431
432
|
onFocus={[Function]}
|
|
433
|
+
pointerEvents="box-only"
|
|
432
434
|
secureTextEntry={true}
|
|
433
435
|
style={
|
|
434
436
|
Array [
|
|
@@ -739,6 +741,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
739
741
|
onBlur={[Function]}
|
|
740
742
|
onChangeText={[Function]}
|
|
741
743
|
onFocus={[Function]}
|
|
744
|
+
pointerEvents="box-only"
|
|
742
745
|
secureTextEntry={false}
|
|
743
746
|
style={
|
|
744
747
|
Array [
|
|
@@ -1006,6 +1009,7 @@ exports[`rendering renders correctly when there is error 1`] = `
|
|
|
1006
1009
|
onBlur={[Function]}
|
|
1007
1010
|
onChangeText={[Function]}
|
|
1008
1011
|
onFocus={[Function]}
|
|
1012
|
+
pointerEvents="box-only"
|
|
1009
1013
|
secureTextEntry={true}
|
|
1010
1014
|
style={
|
|
1011
1015
|
Array [
|
|
@@ -91,6 +91,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
91
91
|
"alignItems": "center",
|
|
92
92
|
"color": "#001f23",
|
|
93
93
|
"fontSize": 14,
|
|
94
|
+
"lineHeight": 18,
|
|
94
95
|
"textAlignVertical": "center",
|
|
95
96
|
},
|
|
96
97
|
undefined,
|
|
@@ -354,6 +355,7 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
354
355
|
"alignItems": "center",
|
|
355
356
|
"color": "#001f23",
|
|
356
357
|
"fontSize": 14,
|
|
358
|
+
"lineHeight": 18,
|
|
357
359
|
"textAlignVertical": "center",
|
|
358
360
|
},
|
|
359
361
|
undefined,
|
|
@@ -116,6 +116,7 @@ Array [
|
|
|
116
116
|
"alignItems": "center",
|
|
117
117
|
"color": "#001f23",
|
|
118
118
|
"fontSize": 14,
|
|
119
|
+
"lineHeight": 18,
|
|
119
120
|
"textAlignVertical": "center",
|
|
120
121
|
},
|
|
121
122
|
undefined,
|
|
@@ -151,6 +152,7 @@ Array [
|
|
|
151
152
|
"alignSelf": "stretch",
|
|
152
153
|
"flexGrow": 2,
|
|
153
154
|
"fontSize": 14,
|
|
155
|
+
"lineHeight": 18,
|
|
154
156
|
"marginHorizontal": 8,
|
|
155
157
|
"paddingVertical": 0,
|
|
156
158
|
"textAlignVertical": "center",
|
|
@@ -1529,6 +1531,7 @@ Array [
|
|
|
1529
1531
|
"alignSelf": "stretch",
|
|
1530
1532
|
"flexGrow": 2,
|
|
1531
1533
|
"fontSize": 14,
|
|
1534
|
+
"lineHeight": 18,
|
|
1532
1535
|
"marginHorizontal": 8,
|
|
1533
1536
|
"paddingVertical": 0,
|
|
1534
1537
|
"textAlignVertical": "center",
|
|
@@ -1739,6 +1742,7 @@ Array [
|
|
|
1739
1742
|
"alignSelf": "stretch",
|
|
1740
1743
|
"flexGrow": 2,
|
|
1741
1744
|
"fontSize": 14,
|
|
1745
|
+
"lineHeight": 18,
|
|
1742
1746
|
"marginHorizontal": 8,
|
|
1743
1747
|
"paddingVertical": 0,
|
|
1744
1748
|
"textAlignVertical": "center",
|
|
@@ -3294,6 +3298,7 @@ Array [
|
|
|
3294
3298
|
"alignSelf": "stretch",
|
|
3295
3299
|
"flexGrow": 2,
|
|
3296
3300
|
"fontSize": 14,
|
|
3301
|
+
"lineHeight": 18,
|
|
3297
3302
|
"marginHorizontal": 8,
|
|
3298
3303
|
"paddingVertical": 0,
|
|
3299
3304
|
"textAlignVertical": "center",
|
|
@@ -3517,6 +3522,7 @@ Array [
|
|
|
3517
3522
|
"alignSelf": "stretch",
|
|
3518
3523
|
"flexGrow": 2,
|
|
3519
3524
|
"fontSize": 14,
|
|
3525
|
+
"lineHeight": 18,
|
|
3520
3526
|
"marginHorizontal": 8,
|
|
3521
3527
|
"paddingVertical": 0,
|
|
3522
3528
|
"textAlignVertical": "center",
|
|
@@ -116,6 +116,7 @@ Array [
|
|
|
116
116
|
"alignItems": "center",
|
|
117
117
|
"color": "#001f23",
|
|
118
118
|
"fontSize": 14,
|
|
119
|
+
"lineHeight": 18,
|
|
119
120
|
"textAlignVertical": "center",
|
|
120
121
|
},
|
|
121
122
|
undefined,
|
|
@@ -151,6 +152,7 @@ Array [
|
|
|
151
152
|
"alignSelf": "stretch",
|
|
152
153
|
"flexGrow": 2,
|
|
153
154
|
"fontSize": 14,
|
|
155
|
+
"lineHeight": 18,
|
|
154
156
|
"marginHorizontal": 8,
|
|
155
157
|
"paddingVertical": 0,
|
|
156
158
|
"textAlignVertical": "center",
|
|
@@ -1437,6 +1439,7 @@ Array [
|
|
|
1437
1439
|
"alignSelf": "stretch",
|
|
1438
1440
|
"flexGrow": 2,
|
|
1439
1441
|
"fontSize": 14,
|
|
1442
|
+
"lineHeight": 18,
|
|
1440
1443
|
"marginHorizontal": 8,
|
|
1441
1444
|
"paddingVertical": 0,
|
|
1442
1445
|
"textAlignVertical": "center",
|
|
@@ -1647,6 +1650,7 @@ Array [
|
|
|
1647
1650
|
"alignSelf": "stretch",
|
|
1648
1651
|
"flexGrow": 2,
|
|
1649
1652
|
"fontSize": 14,
|
|
1653
|
+
"lineHeight": 18,
|
|
1650
1654
|
"marginHorizontal": 8,
|
|
1651
1655
|
"paddingVertical": 0,
|
|
1652
1656
|
"textAlignVertical": "center",
|
|
@@ -3057,6 +3061,7 @@ Array [
|
|
|
3057
3061
|
"alignSelf": "stretch",
|
|
3058
3062
|
"flexGrow": 2,
|
|
3059
3063
|
"fontSize": 14,
|
|
3064
|
+
"lineHeight": 18,
|
|
3060
3065
|
"marginHorizontal": 8,
|
|
3061
3066
|
"paddingVertical": 0,
|
|
3062
3067
|
"textAlignVertical": "center",
|
|
@@ -3280,6 +3285,7 @@ Array [
|
|
|
3280
3285
|
"alignSelf": "stretch",
|
|
3281
3286
|
"flexGrow": 2,
|
|
3282
3287
|
"fontSize": 14,
|
|
3288
|
+
"lineHeight": 18,
|
|
3283
3289
|
"marginHorizontal": 8,
|
|
3284
3290
|
"paddingVertical": 0,
|
|
3285
3291
|
"textAlignVertical": "center",
|
|
@@ -43,6 +43,7 @@ const StyledLabelInsideTextInput = styled(Typography.Text)<{
|
|
|
43
43
|
textAlignVertical: 'center',
|
|
44
44
|
alignContent: 'center',
|
|
45
45
|
fontSize: theme.__hd__.textInput.fontSizes.labelInsideTextInput,
|
|
46
|
+
lineHeight: theme.__hd__.textInput.lineHeights.labelInsideTextInput,
|
|
46
47
|
alignItems: 'center',
|
|
47
48
|
color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant],
|
|
48
49
|
}));
|
|
@@ -86,6 +87,7 @@ const StyledHelperText = styled(Typography.Text)(({ theme }) => ({
|
|
|
86
87
|
const StyledTextInput = styled(TextInput)(({ theme }) => ({
|
|
87
88
|
textAlignVertical: 'center',
|
|
88
89
|
fontSize: theme.__hd__.textInput.fontSizes.text,
|
|
90
|
+
lineHeight: theme.__hd__.textInput.lineHeights.text,
|
|
89
91
|
alignSelf: 'stretch',
|
|
90
92
|
flexGrow: 2,
|
|
91
93
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin,
|
|
@@ -181,6 +181,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant default 1`] =
|
|
|
181
181
|
"alignItems": "center",
|
|
182
182
|
"color": "#001f23",
|
|
183
183
|
"fontSize": 14,
|
|
184
|
+
"lineHeight": 18,
|
|
184
185
|
"textAlignVertical": "center",
|
|
185
186
|
},
|
|
186
187
|
undefined,
|
|
@@ -214,6 +215,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant disabled 1`] =
|
|
|
214
215
|
"alignItems": "center",
|
|
215
216
|
"color": "#bfc1c5",
|
|
216
217
|
"fontSize": 14,
|
|
218
|
+
"lineHeight": 18,
|
|
217
219
|
"textAlignVertical": "center",
|
|
218
220
|
},
|
|
219
221
|
undefined,
|
|
@@ -247,6 +249,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant error 1`] = `
|
|
|
247
249
|
"alignItems": "center",
|
|
248
250
|
"color": "#001f23",
|
|
249
251
|
"fontSize": 14,
|
|
252
|
+
"lineHeight": 18,
|
|
250
253
|
"textAlignVertical": "center",
|
|
251
254
|
},
|
|
252
255
|
undefined,
|
|
@@ -280,6 +283,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant filled 1`] = `
|
|
|
280
283
|
"alignItems": "center",
|
|
281
284
|
"color": "#001f23",
|
|
282
285
|
"fontSize": 14,
|
|
286
|
+
"lineHeight": 18,
|
|
283
287
|
"textAlignVertical": "center",
|
|
284
288
|
},
|
|
285
289
|
undefined,
|
|
@@ -313,6 +317,7 @@ exports[`LabelInsideTextInput renders correctly with themeVariant readonly 1`] =
|
|
|
313
317
|
"alignItems": "center",
|
|
314
318
|
"color": "#808f91",
|
|
315
319
|
"fontSize": 14,
|
|
320
|
+
"lineHeight": 18,
|
|
316
321
|
"textAlignVertical": "center",
|
|
317
322
|
},
|
|
318
323
|
undefined,
|
|
@@ -870,6 +875,7 @@ exports[`StyledTextInput renders correctly 1`] = `
|
|
|
870
875
|
"alignSelf": "stretch",
|
|
871
876
|
"flexGrow": 2,
|
|
872
877
|
"fontSize": 14,
|
|
878
|
+
"lineHeight": 18,
|
|
873
879
|
"marginHorizontal": 8,
|
|
874
880
|
"paddingVertical": 0,
|
|
875
881
|
"textAlignVertical": "center",
|
|
@@ -163,6 +163,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
163
163
|
"alignSelf": "stretch",
|
|
164
164
|
"flexGrow": 2,
|
|
165
165
|
"fontSize": 14,
|
|
166
|
+
"lineHeight": 18,
|
|
166
167
|
"marginHorizontal": 8,
|
|
167
168
|
"paddingVertical": 0,
|
|
168
169
|
"textAlignVertical": "center",
|
|
@@ -424,6 +425,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
424
425
|
"alignSelf": "stretch",
|
|
425
426
|
"flexGrow": 2,
|
|
426
427
|
"fontSize": 14,
|
|
428
|
+
"lineHeight": 18,
|
|
427
429
|
"marginHorizontal": 8,
|
|
428
430
|
"paddingVertical": 0,
|
|
429
431
|
"textAlignVertical": "center",
|
|
@@ -670,6 +672,7 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
670
672
|
"alignSelf": "stretch",
|
|
671
673
|
"flexGrow": 2,
|
|
672
674
|
"fontSize": 14,
|
|
675
|
+
"lineHeight": 18,
|
|
673
676
|
"marginHorizontal": 8,
|
|
674
677
|
"paddingVertical": 0,
|
|
675
678
|
"textAlignVertical": "center",
|
|
@@ -843,6 +846,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
843
846
|
"alignItems": "center",
|
|
844
847
|
"color": "#001f23",
|
|
845
848
|
"fontSize": 14,
|
|
849
|
+
"lineHeight": 18,
|
|
846
850
|
"textAlignVertical": "center",
|
|
847
851
|
},
|
|
848
852
|
undefined,
|
|
@@ -876,6 +880,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
876
880
|
"alignSelf": "stretch",
|
|
877
881
|
"flexGrow": 2,
|
|
878
882
|
"fontSize": 14,
|
|
883
|
+
"lineHeight": 18,
|
|
879
884
|
"marginHorizontal": 8,
|
|
880
885
|
"paddingVertical": 0,
|
|
881
886
|
"textAlignVertical": "center",
|
|
@@ -1108,6 +1113,7 @@ exports[`TextInput filled renders correctly 1`] = `
|
|
|
1108
1113
|
"alignSelf": "stretch",
|
|
1109
1114
|
"flexGrow": 2,
|
|
1110
1115
|
"fontSize": 14,
|
|
1116
|
+
"lineHeight": 18,
|
|
1111
1117
|
"marginHorizontal": 8,
|
|
1112
1118
|
"paddingVertical": 0,
|
|
1113
1119
|
"textAlignVertical": "center",
|
|
@@ -1296,6 +1302,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1296
1302
|
"alignItems": "center",
|
|
1297
1303
|
"color": "#001f23",
|
|
1298
1304
|
"fontSize": 14,
|
|
1305
|
+
"lineHeight": 18,
|
|
1299
1306
|
"textAlignVertical": "center",
|
|
1300
1307
|
},
|
|
1301
1308
|
undefined,
|
|
@@ -1329,6 +1336,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1329
1336
|
"alignSelf": "stretch",
|
|
1330
1337
|
"flexGrow": 2,
|
|
1331
1338
|
"fontSize": 14,
|
|
1339
|
+
"lineHeight": 18,
|
|
1332
1340
|
"marginHorizontal": 8,
|
|
1333
1341
|
"paddingVertical": 0,
|
|
1334
1342
|
"textAlignVertical": "center",
|
|
@@ -1502,6 +1510,7 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
1502
1510
|
"alignItems": "center",
|
|
1503
1511
|
"color": "#001f23",
|
|
1504
1512
|
"fontSize": 14,
|
|
1513
|
+
"lineHeight": 18,
|
|
1505
1514
|
"textAlignVertical": "center",
|
|
1506
1515
|
},
|
|
1507
1516
|
undefined,
|
|
@@ -1535,6 +1544,7 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
1535
1544
|
"alignSelf": "stretch",
|
|
1536
1545
|
"flexGrow": 2,
|
|
1537
1546
|
"fontSize": 14,
|
|
1547
|
+
"lineHeight": 18,
|
|
1538
1548
|
"marginHorizontal": 8,
|
|
1539
1549
|
"paddingVertical": 0,
|
|
1540
1550
|
"textAlignVertical": "center",
|
|
@@ -1722,6 +1732,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1722
1732
|
"alignItems": "center",
|
|
1723
1733
|
"color": "#001f23",
|
|
1724
1734
|
"fontSize": 14,
|
|
1735
|
+
"lineHeight": 18,
|
|
1725
1736
|
"textAlignVertical": "center",
|
|
1726
1737
|
},
|
|
1727
1738
|
undefined,
|
|
@@ -1755,6 +1766,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
1755
1766
|
"alignSelf": "stretch",
|
|
1756
1767
|
"flexGrow": 2,
|
|
1757
1768
|
"fontSize": 14,
|
|
1769
|
+
"lineHeight": 18,
|
|
1758
1770
|
"marginHorizontal": 8,
|
|
1759
1771
|
"paddingVertical": 0,
|
|
1760
1772
|
"textAlignVertical": "center",
|
|
@@ -1900,6 +1912,7 @@ exports[`TextInput loading renders correctly 1`] = `
|
|
|
1900
1912
|
"alignSelf": "stretch",
|
|
1901
1913
|
"flexGrow": 2,
|
|
1902
1914
|
"fontSize": 14,
|
|
1915
|
+
"lineHeight": 18,
|
|
1903
1916
|
"marginHorizontal": 8,
|
|
1904
1917
|
"paddingVertical": 0,
|
|
1905
1918
|
"textAlignVertical": "center",
|
|
@@ -2114,6 +2127,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
2114
2127
|
"alignSelf": "stretch",
|
|
2115
2128
|
"flexGrow": 2,
|
|
2116
2129
|
"fontSize": 14,
|
|
2130
|
+
"lineHeight": 18,
|
|
2117
2131
|
"marginHorizontal": 8,
|
|
2118
2132
|
"paddingVertical": 0,
|
|
2119
2133
|
"textAlignVertical": "center",
|
|
@@ -2380,6 +2394,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2380
2394
|
"alignItems": "center",
|
|
2381
2395
|
"color": "#001f23",
|
|
2382
2396
|
"fontSize": 14,
|
|
2397
|
+
"lineHeight": 18,
|
|
2383
2398
|
"textAlignVertical": "center",
|
|
2384
2399
|
},
|
|
2385
2400
|
undefined,
|
|
@@ -2413,6 +2428,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
2413
2428
|
"alignSelf": "stretch",
|
|
2414
2429
|
"flexGrow": 2,
|
|
2415
2430
|
"fontSize": 14,
|
|
2431
|
+
"lineHeight": 18,
|
|
2416
2432
|
"marginHorizontal": 8,
|
|
2417
2433
|
"paddingVertical": 0,
|
|
2418
2434
|
"textAlignVertical": "center",
|
|
@@ -2637,6 +2653,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
2637
2653
|
"alignSelf": "stretch",
|
|
2638
2654
|
"flexGrow": 2,
|
|
2639
2655
|
"fontSize": 14,
|
|
2656
|
+
"lineHeight": 18,
|
|
2640
2657
|
"marginHorizontal": 8,
|
|
2641
2658
|
"paddingVertical": 0,
|
|
2642
2659
|
"textAlignVertical": "center",
|
|
@@ -2825,6 +2842,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2825
2842
|
"alignItems": "center",
|
|
2826
2843
|
"color": "#001f23",
|
|
2827
2844
|
"fontSize": 14,
|
|
2845
|
+
"lineHeight": 18,
|
|
2828
2846
|
"textAlignVertical": "center",
|
|
2829
2847
|
},
|
|
2830
2848
|
undefined,
|
|
@@ -2858,6 +2876,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
2858
2876
|
"alignSelf": "stretch",
|
|
2859
2877
|
"flexGrow": 2,
|
|
2860
2878
|
"fontSize": 14,
|
|
2879
|
+
"lineHeight": 18,
|
|
2861
2880
|
"marginHorizontal": 8,
|
|
2862
2881
|
"paddingVertical": 0,
|
|
2863
2882
|
"textAlignVertical": "center",
|
|
@@ -146,6 +146,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
146
146
|
"alignSelf": "stretch",
|
|
147
147
|
"flexGrow": 2,
|
|
148
148
|
"fontSize": 14,
|
|
149
|
+
"lineHeight": 18,
|
|
149
150
|
"marginHorizontal": 8,
|
|
150
151
|
"paddingVertical": 0,
|
|
151
152
|
"textAlignVertical": "center",
|
|
@@ -358,6 +359,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
358
359
|
"alignSelf": "stretch",
|
|
359
360
|
"flexGrow": 2,
|
|
360
361
|
"fontSize": 14,
|
|
362
|
+
"lineHeight": 18,
|
|
361
363
|
"marginHorizontal": 8,
|
|
362
364
|
"paddingVertical": 0,
|
|
363
365
|
"textAlignVertical": "center",
|
|
@@ -146,6 +146,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
146
146
|
"alignSelf": "stretch",
|
|
147
147
|
"flexGrow": 2,
|
|
148
148
|
"fontSize": 14,
|
|
149
|
+
"lineHeight": 18,
|
|
149
150
|
"marginHorizontal": 8,
|
|
150
151
|
"paddingVertical": 0,
|
|
151
152
|
"textAlignVertical": "center",
|
|
@@ -358,6 +359,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
358
359
|
"alignSelf": "stretch",
|
|
359
360
|
"flexGrow": 2,
|
|
360
361
|
"fontSize": 14,
|
|
362
|
+
"lineHeight": 18,
|
|
361
363
|
"marginHorizontal": 8,
|
|
362
364
|
"paddingVertical": 0,
|
|
363
365
|
"textAlignVertical": "center",
|
|
@@ -64,6 +64,11 @@ const getTextInputTheme = (theme: GlobalTheme) => {
|
|
|
64
64
|
asteriskLabel: theme.fontSizes.medium,
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
const lineHeights = {
|
|
68
|
+
text: theme.lineHeights.xsmall,
|
|
69
|
+
labelInsideTextInput: theme.lineHeights.xsmall,
|
|
70
|
+
};
|
|
71
|
+
|
|
67
72
|
const borderWidths = {
|
|
68
73
|
container: {
|
|
69
74
|
normal: theme.borderWidths.base,
|
|
@@ -75,7 +80,7 @@ const getTextInputTheme = (theme: GlobalTheme) => {
|
|
|
75
80
|
container: theme.radii.medium,
|
|
76
81
|
};
|
|
77
82
|
|
|
78
|
-
return { colors, space, fontSizes, borderWidths, radii };
|
|
83
|
+
return { colors, space, fontSizes, borderWidths, radii, lineHeights };
|
|
79
84
|
};
|
|
80
85
|
|
|
81
86
|
export default getTextInputTheme;
|