@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
|
@@ -59,7 +59,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
59
59
|
"backgroundColor": "#000000",
|
|
60
60
|
"borderRadius": 999,
|
|
61
61
|
"bottom": undefined,
|
|
62
|
-
"elevation":
|
|
62
|
+
"elevation": 6,
|
|
63
63
|
"flexDirection": "row",
|
|
64
64
|
"height": 48,
|
|
65
65
|
"justifyContent": "center",
|
|
@@ -72,7 +72,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
72
72
|
"width": 0,
|
|
73
73
|
},
|
|
74
74
|
"shadowOpacity": 0.12,
|
|
75
|
-
"shadowRadius":
|
|
75
|
+
"shadowRadius": 2,
|
|
76
76
|
"transform": [
|
|
77
77
|
{
|
|
78
78
|
"translateY": 0,
|
|
@@ -170,7 +170,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
170
170
|
"backgroundColor": "#000000",
|
|
171
171
|
"borderRadius": 999,
|
|
172
172
|
"bottom": undefined,
|
|
173
|
-
"elevation":
|
|
173
|
+
"elevation": 6,
|
|
174
174
|
"flexDirection": "row",
|
|
175
175
|
"height": 48,
|
|
176
176
|
"justifyContent": "center",
|
|
@@ -183,7 +183,7 @@ exports[`FABPair renders correctly 1`] = `
|
|
|
183
183
|
"width": 0,
|
|
184
184
|
},
|
|
185
185
|
"shadowOpacity": 0.12,
|
|
186
|
-
"shadowRadius":
|
|
186
|
+
"shadowRadius": 2,
|
|
187
187
|
"transform": [
|
|
188
188
|
{
|
|
189
189
|
"translateY": 0,
|
|
@@ -20,12 +20,8 @@ const StyledFAB = styled(AnimatedTouchableHighlight)<{
|
|
|
20
20
|
alignSelf: 'flex-start',
|
|
21
21
|
padding: theme.__hd__.fab.space.containerPadding,
|
|
22
22
|
flexDirection: 'row',
|
|
23
|
-
elevation: theme.__hd__.fab.shadows.elevation,
|
|
24
|
-
shadowColor: theme.__hd__.fab.shadows.color,
|
|
25
|
-
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
26
|
-
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
27
|
-
shadowOpacity: theme.__hd__.fab.shadows.opacity,
|
|
28
23
|
height: theme.__hd__.fab.sizes.height,
|
|
24
|
+
...theme.__hd__.fab.shadows.default,
|
|
29
25
|
}));
|
|
30
26
|
|
|
31
27
|
const StyledFABIcon = styled(Icon)<IconProps>(({ theme }) => ({
|
|
@@ -42,7 +42,7 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
42
42
|
"alignSelf": "flex-start",
|
|
43
43
|
"backgroundColor": "#000000",
|
|
44
44
|
"borderRadius": 999,
|
|
45
|
-
"elevation":
|
|
45
|
+
"elevation": 6,
|
|
46
46
|
"flexDirection": "row",
|
|
47
47
|
"height": 64,
|
|
48
48
|
"justifyContent": "center",
|
|
@@ -54,7 +54,7 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
54
54
|
"width": 0,
|
|
55
55
|
},
|
|
56
56
|
"shadowOpacity": 0.12,
|
|
57
|
-
"shadowRadius":
|
|
57
|
+
"shadowRadius": 2,
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
>
|
|
@@ -144,7 +144,7 @@ exports[`StyledFAB renders correctly 2`] = `
|
|
|
144
144
|
"alignSelf": "flex-start",
|
|
145
145
|
"backgroundColor": "#000000",
|
|
146
146
|
"borderRadius": 999,
|
|
147
|
-
"elevation":
|
|
147
|
+
"elevation": 6,
|
|
148
148
|
"flexDirection": "row",
|
|
149
149
|
"height": 64,
|
|
150
150
|
"justifyContent": "center",
|
|
@@ -156,7 +156,7 @@ exports[`StyledFAB renders correctly 2`] = `
|
|
|
156
156
|
"width": 0,
|
|
157
157
|
},
|
|
158
158
|
"shadowOpacity": 0.12,
|
|
159
|
-
"shadowRadius":
|
|
159
|
+
"shadowRadius": 2,
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
>
|
|
@@ -44,7 +44,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
|
|
|
44
44
|
"backgroundColor": "#001f23",
|
|
45
45
|
"borderRadius": 999,
|
|
46
46
|
"bottom": undefined,
|
|
47
|
-
"elevation":
|
|
47
|
+
"elevation": 6,
|
|
48
48
|
"flexDirection": "row",
|
|
49
49
|
"height": 64,
|
|
50
50
|
"justifyContent": "center",
|
|
@@ -56,7 +56,7 @@ exports[`FAB when animated is false renders StyledFABIcon 1`] = `
|
|
|
56
56
|
"width": 0,
|
|
57
57
|
},
|
|
58
58
|
"shadowOpacity": 0.12,
|
|
59
|
-
"shadowRadius":
|
|
59
|
+
"shadowRadius": 2,
|
|
60
60
|
"transform": [
|
|
61
61
|
{
|
|
62
62
|
"translateY": 0,
|
|
@@ -183,7 +183,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
|
|
|
183
183
|
"backgroundColor": "#001f23",
|
|
184
184
|
"borderRadius": 999,
|
|
185
185
|
"bottom": undefined,
|
|
186
|
-
"elevation":
|
|
186
|
+
"elevation": 6,
|
|
187
187
|
"flexDirection": "row",
|
|
188
188
|
"height": 64,
|
|
189
189
|
"justifyContent": "center",
|
|
@@ -195,7 +195,7 @@ exports[`FAB when animated is true renders animatedFABIcon 1`] = `
|
|
|
195
195
|
"width": 0,
|
|
196
196
|
},
|
|
197
197
|
"shadowOpacity": 0.12,
|
|
198
|
-
"shadowRadius":
|
|
198
|
+
"shadowRadius": 2,
|
|
199
199
|
"transform": [
|
|
200
200
|
{
|
|
201
201
|
"translateY": 0,
|
|
@@ -335,7 +335,7 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
335
335
|
"backgroundColor": "#001f23",
|
|
336
336
|
"borderRadius": 999,
|
|
337
337
|
"bottom": undefined,
|
|
338
|
-
"elevation":
|
|
338
|
+
"elevation": 6,
|
|
339
339
|
"flexDirection": "row",
|
|
340
340
|
"height": 64,
|
|
341
341
|
"justifyContent": "center",
|
|
@@ -347,7 +347,7 @@ exports[`FAB when title has value renders correctly 1`] = `
|
|
|
347
347
|
"width": 0,
|
|
348
348
|
},
|
|
349
349
|
"shadowOpacity": 0.12,
|
|
350
|
-
"shadowRadius":
|
|
350
|
+
"shadowRadius": 2,
|
|
351
351
|
"transform": [
|
|
352
352
|
{
|
|
353
353
|
"translateY": 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
|
},
|
|
@@ -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
|
{
|