@hero-design/rn 8.33.1 → 8.33.2
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 +1 -1
- package/es/index.js +187 -208
- package/lib/index.js +187 -208
- package/package.json +7 -7
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
|
@@ -355,10 +355,9 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
355
355
|
undefined,
|
|
356
356
|
]
|
|
357
357
|
}
|
|
358
|
-
themeFontSize="large"
|
|
359
|
-
themeFontWeight="regular"
|
|
360
358
|
themeIntent="body"
|
|
361
359
|
themeTypeface="neutral"
|
|
360
|
+
themeVariant="regular"
|
|
362
361
|
>
|
|
363
362
|
175
|
|
364
363
|
</Text>
|
|
@@ -646,10 +645,9 @@ exports[`Progress.Circle renders correctly 1`] = `
|
|
|
646
645
|
undefined,
|
|
647
646
|
]
|
|
648
647
|
}
|
|
649
|
-
themeFontSize="large"
|
|
650
|
-
themeFontWeight="regular"
|
|
651
648
|
themeIntent="body"
|
|
652
649
|
themeTypeface="neutral"
|
|
650
|
+
themeVariant="regular"
|
|
653
651
|
>
|
|
654
652
|
25%
|
|
655
653
|
</Text>
|
|
@@ -937,10 +935,9 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
937
935
|
undefined,
|
|
938
936
|
]
|
|
939
937
|
}
|
|
940
|
-
themeFontSize="large"
|
|
941
|
-
themeFontWeight="regular"
|
|
942
938
|
themeIntent="body"
|
|
943
939
|
themeTypeface="neutral"
|
|
940
|
+
themeVariant="regular"
|
|
944
941
|
>
|
|
945
942
|
75%
|
|
946
943
|
</Text>
|
|
@@ -54,10 +54,9 @@ exports[`rendering renders correctly when checked 1`] = `
|
|
|
54
54
|
undefined,
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
|
-
themeFontSize="large"
|
|
58
|
-
themeFontWeight="regular"
|
|
59
57
|
themeIntent="body"
|
|
60
58
|
themeTypeface="neutral"
|
|
59
|
+
themeVariant="regular"
|
|
61
60
|
>
|
|
62
61
|
Option A
|
|
63
62
|
</Text>
|
|
@@ -161,10 +160,9 @@ exports[`rendering renders correctly when not checked 1`] = `
|
|
|
161
160
|
undefined,
|
|
162
161
|
]
|
|
163
162
|
}
|
|
164
|
-
themeFontSize="large"
|
|
165
|
-
themeFontWeight="regular"
|
|
166
163
|
themeIntent="body"
|
|
167
164
|
themeTypeface="neutral"
|
|
165
|
+
themeVariant="regular"
|
|
168
166
|
>
|
|
169
167
|
Option A
|
|
170
168
|
</Text>
|
|
@@ -55,10 +55,9 @@ exports[`rendering renders correctly 1`] = `
|
|
|
55
55
|
undefined,
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
|
-
themeFontSize="large"
|
|
59
|
-
themeFontWeight="regular"
|
|
60
58
|
themeIntent="body"
|
|
61
59
|
themeTypeface="neutral"
|
|
60
|
+
themeVariant="regular"
|
|
62
61
|
>
|
|
63
62
|
Everything
|
|
64
63
|
</Text>
|
|
@@ -154,10 +153,9 @@ exports[`rendering renders correctly 1`] = `
|
|
|
154
153
|
undefined,
|
|
155
154
|
]
|
|
156
155
|
}
|
|
157
|
-
themeFontSize="large"
|
|
158
|
-
themeFontWeight="regular"
|
|
159
156
|
themeIntent="body"
|
|
160
157
|
themeTypeface="neutral"
|
|
158
|
+
themeVariant="regular"
|
|
161
159
|
>
|
|
162
160
|
Direct mentions only
|
|
163
161
|
</Text>
|
|
@@ -253,10 +251,9 @@ exports[`rendering renders correctly 1`] = `
|
|
|
253
251
|
undefined,
|
|
254
252
|
]
|
|
255
253
|
}
|
|
256
|
-
themeFontSize="large"
|
|
257
|
-
themeFontWeight="regular"
|
|
258
254
|
themeIntent="body"
|
|
259
255
|
themeTypeface="neutral"
|
|
256
|
+
themeVariant="regular"
|
|
260
257
|
>
|
|
261
258
|
Nothing
|
|
262
259
|
</Text>
|
|
@@ -312,16 +312,10 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
312
312
|
{(isFocused || (label && !isEmptyValue)) && (
|
|
313
313
|
<StyledLabelContainer pointerEvents="none">
|
|
314
314
|
{required && (
|
|
315
|
-
<StyledAsteriskLabel themeState={state}
|
|
316
|
-
*
|
|
317
|
-
</StyledAsteriskLabel>
|
|
315
|
+
<StyledAsteriskLabel themeState={state}>*</StyledAsteriskLabel>
|
|
318
316
|
)}
|
|
319
317
|
{!!label && (
|
|
320
|
-
<StyledLabel
|
|
321
|
-
testID="input-label"
|
|
322
|
-
fontSize="small"
|
|
323
|
-
themeState={state}
|
|
324
|
-
>
|
|
318
|
+
<StyledLabel testID="input-label" themeState={state}>
|
|
325
319
|
{label}
|
|
326
320
|
</StyledLabel>
|
|
327
321
|
)}
|
|
@@ -341,7 +335,6 @@ const RichTextEditor: ComponentType<RichTextEditorProps> = ({
|
|
|
341
335
|
{!!label && (
|
|
342
336
|
<StyledLabelInsideTextInput
|
|
343
337
|
testID="input-label"
|
|
344
|
-
fontSize="medium"
|
|
345
338
|
themeState={state}
|
|
346
339
|
>
|
|
347
340
|
{label}
|
|
@@ -85,16 +85,15 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
85
85
|
Object {
|
|
86
86
|
"color": "#001f23",
|
|
87
87
|
"fontFamily": "BeVietnamPro-Regular",
|
|
88
|
-
"fontSize":
|
|
89
|
-
"letterSpacing": 0.
|
|
90
|
-
"lineHeight":
|
|
88
|
+
"fontSize": 16,
|
|
89
|
+
"letterSpacing": 0.48,
|
|
90
|
+
"lineHeight": 24,
|
|
91
91
|
},
|
|
92
92
|
Array [
|
|
93
93
|
Object {
|
|
94
94
|
"alignContent": "center",
|
|
95
95
|
"alignItems": "center",
|
|
96
96
|
"color": "#001f23",
|
|
97
|
-
"fontSize": 16,
|
|
98
97
|
"marginTop": -2,
|
|
99
98
|
"textAlignVertical": "center",
|
|
100
99
|
},
|
|
@@ -103,11 +102,10 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
103
102
|
]
|
|
104
103
|
}
|
|
105
104
|
testID="input-label"
|
|
106
|
-
themeFontSize="medium"
|
|
107
|
-
themeFontWeight="regular"
|
|
108
105
|
themeIntent="body"
|
|
109
106
|
themeState="error"
|
|
110
107
|
themeTypeface="neutral"
|
|
108
|
+
themeVariant="regular"
|
|
111
109
|
>
|
|
112
110
|
Rich Text Editor
|
|
113
111
|
</Text>
|
|
@@ -191,6 +189,7 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
191
189
|
Object {
|
|
192
190
|
"minHeight": 16,
|
|
193
191
|
"paddingLeft": 16,
|
|
192
|
+
"paddingTop": 2,
|
|
194
193
|
},
|
|
195
194
|
undefined,
|
|
196
195
|
]
|
|
@@ -243,14 +242,13 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
243
242
|
Object {
|
|
244
243
|
"color": "#001f23",
|
|
245
244
|
"fontFamily": "BeVietnamPro-Regular",
|
|
246
|
-
"fontSize":
|
|
247
|
-
"letterSpacing": 0.
|
|
248
|
-
"lineHeight":
|
|
245
|
+
"fontSize": 12,
|
|
246
|
+
"letterSpacing": 0.48,
|
|
247
|
+
"lineHeight": 16,
|
|
249
248
|
},
|
|
250
249
|
Array [
|
|
251
250
|
Object {
|
|
252
251
|
"color": "#de350b",
|
|
253
|
-
"fontSize": 12,
|
|
254
252
|
"marginLeft": 4,
|
|
255
253
|
},
|
|
256
254
|
undefined,
|
|
@@ -258,10 +256,8 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
258
256
|
]
|
|
259
257
|
}
|
|
260
258
|
testID="input-error-message"
|
|
261
|
-
themeFontSize="medium"
|
|
262
259
|
themeFontWeight="regular"
|
|
263
260
|
themeIntent="body"
|
|
264
|
-
themeTypeface="neutral"
|
|
265
261
|
>
|
|
266
262
|
this is error
|
|
267
263
|
</Text>
|
|
@@ -356,16 +352,15 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
356
352
|
Object {
|
|
357
353
|
"color": "#001f23",
|
|
358
354
|
"fontFamily": "BeVietnamPro-Regular",
|
|
359
|
-
"fontSize":
|
|
360
|
-
"letterSpacing": 0.
|
|
361
|
-
"lineHeight":
|
|
355
|
+
"fontSize": 16,
|
|
356
|
+
"letterSpacing": 0.48,
|
|
357
|
+
"lineHeight": 24,
|
|
362
358
|
},
|
|
363
359
|
Array [
|
|
364
360
|
Object {
|
|
365
361
|
"alignContent": "center",
|
|
366
362
|
"alignItems": "center",
|
|
367
363
|
"color": "#001f23",
|
|
368
|
-
"fontSize": 16,
|
|
369
364
|
"marginTop": -2,
|
|
370
365
|
"textAlignVertical": "center",
|
|
371
366
|
},
|
|
@@ -374,11 +369,10 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
374
369
|
]
|
|
375
370
|
}
|
|
376
371
|
testID="input-label"
|
|
377
|
-
themeFontSize="medium"
|
|
378
|
-
themeFontWeight="regular"
|
|
379
372
|
themeIntent="body"
|
|
380
373
|
themeState="error"
|
|
381
374
|
themeTypeface="neutral"
|
|
375
|
+
themeVariant="regular"
|
|
382
376
|
>
|
|
383
377
|
Rich Text Editor
|
|
384
378
|
</Text>
|
|
@@ -461,6 +455,7 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
461
455
|
Object {
|
|
462
456
|
"minHeight": 16,
|
|
463
457
|
"paddingLeft": 16,
|
|
458
|
+
"paddingTop": 2,
|
|
464
459
|
},
|
|
465
460
|
undefined,
|
|
466
461
|
]
|
|
@@ -513,14 +508,13 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
513
508
|
Object {
|
|
514
509
|
"color": "#001f23",
|
|
515
510
|
"fontFamily": "BeVietnamPro-Regular",
|
|
516
|
-
"fontSize":
|
|
517
|
-
"letterSpacing": 0.
|
|
518
|
-
"lineHeight":
|
|
511
|
+
"fontSize": 12,
|
|
512
|
+
"letterSpacing": 0.48,
|
|
513
|
+
"lineHeight": 16,
|
|
519
514
|
},
|
|
520
515
|
Array [
|
|
521
516
|
Object {
|
|
522
517
|
"color": "#de350b",
|
|
523
|
-
"fontSize": 12,
|
|
524
518
|
"marginLeft": 4,
|
|
525
519
|
},
|
|
526
520
|
undefined,
|
|
@@ -528,10 +522,8 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
528
522
|
]
|
|
529
523
|
}
|
|
530
524
|
testID="input-error-message"
|
|
531
|
-
themeFontSize="medium"
|
|
532
525
|
themeFontWeight="regular"
|
|
533
526
|
themeIntent="body"
|
|
534
|
-
themeTypeface="neutral"
|
|
535
527
|
>
|
|
536
528
|
this is error
|
|
537
529
|
</Text>
|
|
@@ -229,16 +229,15 @@ exports[`SectionHeading render right children correctly 1`] = `
|
|
|
229
229
|
"color": "#001f23",
|
|
230
230
|
"fontFamily": "BeVietnamPro-Regular",
|
|
231
231
|
"fontSize": 14,
|
|
232
|
-
"letterSpacing": 0.
|
|
232
|
+
"letterSpacing": 0.48,
|
|
233
233
|
"lineHeight": 22,
|
|
234
234
|
},
|
|
235
235
|
undefined,
|
|
236
236
|
]
|
|
237
237
|
}
|
|
238
|
-
themeFontSize="medium"
|
|
239
|
-
themeFontWeight="regular"
|
|
240
238
|
themeIntent="body"
|
|
241
239
|
themeTypeface="neutral"
|
|
240
|
+
themeVariant="small"
|
|
242
241
|
>
|
|
243
242
|
right children
|
|
244
243
|
</Text>
|
|
@@ -31,7 +31,9 @@ describe('SectionHeading', () => {
|
|
|
31
31
|
<SectionHeading
|
|
32
32
|
testID="sectionHeading"
|
|
33
33
|
text="test demo"
|
|
34
|
-
rightChildren={
|
|
34
|
+
rightChildren={
|
|
35
|
+
<Typography.Body variant="small">right children</Typography.Body>
|
|
36
|
+
}
|
|
35
37
|
/>
|
|
36
38
|
);
|
|
37
39
|
|
|
@@ -240,10 +240,9 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
240
240
|
undefined,
|
|
241
241
|
]
|
|
242
242
|
}
|
|
243
|
-
themeFontSize="large"
|
|
244
|
-
themeFontWeight="regular"
|
|
245
243
|
themeIntent="body"
|
|
246
244
|
themeTypeface="neutral"
|
|
245
|
+
themeVariant="regular"
|
|
247
246
|
>
|
|
248
247
|
A1
|
|
249
248
|
</Text>
|
|
@@ -495,10 +494,9 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
495
494
|
undefined,
|
|
496
495
|
]
|
|
497
496
|
}
|
|
498
|
-
themeFontSize="large"
|
|
499
|
-
themeFontWeight="regular"
|
|
500
497
|
themeIntent="body"
|
|
501
498
|
themeTypeface="neutral"
|
|
499
|
+
themeVariant="regular"
|
|
502
500
|
>
|
|
503
501
|
B1
|
|
504
502
|
</Text>
|
|
@@ -613,10 +611,9 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
613
611
|
undefined,
|
|
614
612
|
]
|
|
615
613
|
}
|
|
616
|
-
themeFontSize="large"
|
|
617
|
-
themeFontWeight="regular"
|
|
618
614
|
themeIntent="body"
|
|
619
615
|
themeTypeface="neutral"
|
|
616
|
+
themeVariant="regular"
|
|
620
617
|
>
|
|
621
618
|
B2
|
|
622
619
|
</Text>
|
|
@@ -1056,10 +1053,9 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1056
1053
|
undefined,
|
|
1057
1054
|
]
|
|
1058
1055
|
}
|
|
1059
|
-
themeFontSize="large"
|
|
1060
|
-
themeFontWeight="regular"
|
|
1061
1056
|
themeIntent="body"
|
|
1062
1057
|
themeTypeface="neutral"
|
|
1058
|
+
themeVariant="regular"
|
|
1063
1059
|
>
|
|
1064
1060
|
A1
|
|
1065
1061
|
</Text>
|
|
@@ -1311,10 +1307,9 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1311
1307
|
undefined,
|
|
1312
1308
|
]
|
|
1313
1309
|
}
|
|
1314
|
-
themeFontSize="large"
|
|
1315
|
-
themeFontWeight="regular"
|
|
1316
1310
|
themeIntent="body"
|
|
1317
1311
|
themeTypeface="neutral"
|
|
1312
|
+
themeVariant="regular"
|
|
1318
1313
|
>
|
|
1319
1314
|
B1
|
|
1320
1315
|
</Text>
|
|
@@ -1429,10 +1424,9 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1429
1424
|
undefined,
|
|
1430
1425
|
]
|
|
1431
1426
|
}
|
|
1432
|
-
themeFontSize="large"
|
|
1433
|
-
themeFontWeight="regular"
|
|
1434
1427
|
themeIntent="body"
|
|
1435
1428
|
themeTypeface="neutral"
|
|
1429
|
+
themeVariant="regular"
|
|
1436
1430
|
>
|
|
1437
1431
|
B2
|
|
1438
1432
|
</Text>
|
|
@@ -1719,10 +1713,9 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
|
|
|
1719
1713
|
undefined,
|
|
1720
1714
|
]
|
|
1721
1715
|
}
|
|
1722
|
-
themeFontSize="large"
|
|
1723
|
-
themeFontWeight="regular"
|
|
1724
1716
|
themeIntent="body"
|
|
1725
1717
|
themeTypeface="neutral"
|
|
1718
|
+
themeVariant="regular"
|
|
1726
1719
|
>
|
|
1727
1720
|
A1
|
|
1728
1721
|
</Text>
|
|
@@ -1974,10 +1967,9 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
|
|
|
1974
1967
|
undefined,
|
|
1975
1968
|
]
|
|
1976
1969
|
}
|
|
1977
|
-
themeFontSize="large"
|
|
1978
|
-
themeFontWeight="regular"
|
|
1979
1970
|
themeIntent="body"
|
|
1980
1971
|
themeTypeface="neutral"
|
|
1972
|
+
themeVariant="regular"
|
|
1981
1973
|
>
|
|
1982
1974
|
B1
|
|
1983
1975
|
</Text>
|
|
@@ -2120,10 +2112,9 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
|
|
|
2120
2112
|
undefined,
|
|
2121
2113
|
]
|
|
2122
2114
|
}
|
|
2123
|
-
themeFontSize="large"
|
|
2124
|
-
themeFontWeight="regular"
|
|
2125
2115
|
themeIntent="body"
|
|
2126
2116
|
themeTypeface="neutral"
|
|
2117
|
+
themeVariant="regular"
|
|
2127
2118
|
>
|
|
2128
2119
|
B2
|
|
2129
2120
|
</Text>
|
|
@@ -2410,10 +2401,9 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
|
|
|
2410
2401
|
undefined,
|
|
2411
2402
|
]
|
|
2412
2403
|
}
|
|
2413
|
-
themeFontSize="large"
|
|
2414
|
-
themeFontWeight="regular"
|
|
2415
2404
|
themeIntent="body"
|
|
2416
2405
|
themeTypeface="neutral"
|
|
2406
|
+
themeVariant="regular"
|
|
2417
2407
|
>
|
|
2418
2408
|
A1
|
|
2419
2409
|
</Text>
|
|
@@ -2665,10 +2655,9 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
|
|
|
2665
2655
|
undefined,
|
|
2666
2656
|
]
|
|
2667
2657
|
}
|
|
2668
|
-
themeFontSize="large"
|
|
2669
|
-
themeFontWeight="regular"
|
|
2670
2658
|
themeIntent="body"
|
|
2671
2659
|
themeTypeface="neutral"
|
|
2660
|
+
themeVariant="regular"
|
|
2672
2661
|
>
|
|
2673
2662
|
B1
|
|
2674
2663
|
</Text>
|
|
@@ -2783,10 +2772,9 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
|
|
|
2783
2772
|
undefined,
|
|
2784
2773
|
]
|
|
2785
2774
|
}
|
|
2786
|
-
themeFontSize="large"
|
|
2787
|
-
themeFontWeight="regular"
|
|
2788
2775
|
themeIntent="body"
|
|
2789
2776
|
themeTypeface="neutral"
|
|
2777
|
+
themeVariant="regular"
|
|
2790
2778
|
>
|
|
2791
2779
|
B2
|
|
2792
2780
|
</Text>
|