@hero-design/rn 8.110.0 → 8.111.0
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 +3 -3
- package/CHANGELOG.md +18 -0
- package/assets/fonts/BeVietnamPro-BoldItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-LightItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-RegularItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-SemiBoldItalic.ttf +0 -0
- package/assets/fonts/Saiga-LightItalic.otf +0 -0
- package/assets/fonts/Saiga-MediumItalic.otf +0 -0
- package/assets/fonts/Saiga-RegularItalic.otf +0 -0
- package/es/index.js +86 -40
- package/lib/index.js +86 -40
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +48 -24
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +72 -36
- package/src/components/Accordion/index.tsx +6 -1
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Alert/index.tsx +10 -2
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +70 -0
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +121 -97
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +31 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +8 -0
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +8 -3
- package/src/components/Button/Button.tsx +10 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +51 -18
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +13 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRangeConnector.spec.tsx.snap +5 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +16 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +20 -0
- package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +49 -0
- package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +60 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +62 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +2 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +2 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +12 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +36 -0
- package/src/components/Checkbox/__tests__/__snapshots__/DefaultCheckBox.spec.tsx.snap +4 -0
- package/src/components/Checkbox/__tests__/__snapshots__/InlineCheckBox.spec.tsx.snap +6 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
- package/src/components/Chip/index.tsx +15 -8
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +8 -5
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +20 -12
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +6 -0
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +13 -9
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/FilterTrigger/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/PinInput/index.tsx +6 -1
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
- package/src/components/Radio/RadioGroup.tsx +6 -1
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +4 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +10 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +84 -48
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
- package/src/components/Search/SearchOneLine.tsx +6 -0
- package/src/components/Search/SearchTwoLine.tsx +6 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +2 -0
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +1 -0
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +1 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +57 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +45 -3
- package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -6
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +219 -138
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +102 -62
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +18 -0
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +3 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +18 -4
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +34 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +9 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -0
- package/src/components/Typography/Body/StyledBody.tsx +24 -19
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +229 -0
- package/src/components/Typography/Body/__tests__/index.spec.tsx +19 -0
- package/src/components/Typography/Body/index.tsx +8 -2
- package/src/components/Typography/Caption/StyledCaption.tsx +15 -8
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +219 -0
- package/src/components/Typography/Caption/__tests__/index.spec.tsx +19 -0
- package/src/components/Typography/Caption/index.tsx +18 -10
- package/src/components/Typography/Label/StyledLabel.tsx +16 -6
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +126 -0
- package/src/components/Typography/Label/__tests__/index.spec.tsx +12 -0
- package/src/components/Typography/Label/index.tsx +17 -9
- package/src/components/Typography/Title/StyledTitle.tsx +22 -8
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +441 -0
- package/src/components/Typography/Title/__tests__/index.spec.tsx +23 -0
- package/src/components/Typography/Title/index.tsx +8 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +24 -10
- package/src/theme/components/typography.ts +12 -10
- package/src/theme/global/typography.ts +9 -0
- package/stats/8.110.1/rn-stats.html +4844 -0
- package/stats/8.111.0/rn-stats.html +4844 -0
- package/types/components/Accordion/index.d.ts +5 -1
- package/types/components/Alert/index.d.ts +8 -2
- package/types/components/Button/Button.d.ts +8 -4
- package/types/components/Chip/index.d.ts +12 -3
- package/types/components/PinInput/index.d.ts +4 -0
- package/types/components/Radio/RadioGroup.d.ts +5 -1
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +4 -0
- package/types/components/Search/SearchTwoLine.d.ts +4 -0
- package/types/components/TextInput/StyledTextInput.d.ts +1 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +11 -3
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Body/StyledBody.d.ts +1 -0
- package/types/components/Typography/Body/index.d.ts +6 -2
- package/types/components/Typography/Caption/StyledCaption.d.ts +1 -0
- package/types/components/Typography/Caption/index.d.ts +5 -1
- package/types/components/Typography/Label/StyledLabel.d.ts +1 -0
- package/types/components/Typography/Label/index.d.ts +5 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -0
- package/types/components/Typography/Title/index.d.ts +6 -2
- package/types/theme/components/typography.d.ts +12 -10
- package/types/theme/global/typography.d.ts +3 -0
|
@@ -162,6 +162,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
162
162
|
}
|
|
163
163
|
testID="input-label-text"
|
|
164
164
|
themeIntent="body"
|
|
165
|
+
themeIsItalic={false}
|
|
165
166
|
themeTypeface="neutral"
|
|
166
167
|
themeVariant="regular"
|
|
167
168
|
>
|
|
@@ -451,6 +452,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
451
452
|
]
|
|
452
453
|
}
|
|
453
454
|
themeIntent="body"
|
|
455
|
+
themeIsItalic={false}
|
|
454
456
|
themeTypeface="neutral"
|
|
455
457
|
themeVariant="regular-bold"
|
|
456
458
|
>
|
|
@@ -632,6 +634,7 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
632
634
|
themeButtonVariant="text-primary"
|
|
633
635
|
themeIntent="body"
|
|
634
636
|
themeIsCompact={false}
|
|
637
|
+
themeIsItalic={false}
|
|
635
638
|
themeIsPressed={false}
|
|
636
639
|
themeTypeface="neutral"
|
|
637
640
|
themeVariant="regular-bold"
|
|
@@ -834,6 +837,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
834
837
|
}
|
|
835
838
|
testID="input-label-text"
|
|
836
839
|
themeIntent="body"
|
|
840
|
+
themeIsItalic={false}
|
|
837
841
|
themeTypeface="neutral"
|
|
838
842
|
themeVariant="regular"
|
|
839
843
|
>
|
|
@@ -1123,6 +1127,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
1123
1127
|
]
|
|
1124
1128
|
}
|
|
1125
1129
|
themeIntent="body"
|
|
1130
|
+
themeIsItalic={false}
|
|
1126
1131
|
themeTypeface="neutral"
|
|
1127
1132
|
themeVariant="regular-bold"
|
|
1128
1133
|
>
|
|
@@ -1304,6 +1309,7 @@ exports[`DatePickerIOS renders correctly with custom locale 1`] = `
|
|
|
1304
1309
|
themeButtonVariant="text-primary"
|
|
1305
1310
|
themeIntent="body"
|
|
1306
1311
|
themeIsCompact={false}
|
|
1312
|
+
themeIsItalic={false}
|
|
1307
1313
|
themeIsPressed={false}
|
|
1308
1314
|
themeTypeface="neutral"
|
|
1309
1315
|
themeVariant="regular-bold"
|
|
@@ -316,15 +316,19 @@ exports[`Drawer renders correctly with no backdrop 1`] = `
|
|
|
316
316
|
onStartShouldSetResponder={[Function]}
|
|
317
317
|
pointerEvents="box-none"
|
|
318
318
|
style={
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
319
|
+
[
|
|
320
|
+
{
|
|
321
|
+
"backgroundColor": "#000000",
|
|
322
|
+
"bottom": 0,
|
|
323
|
+
"left": 0,
|
|
324
|
+
"position": "absolute",
|
|
325
|
+
"right": 0,
|
|
326
|
+
"top": 0,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"opacity": 0,
|
|
330
|
+
},
|
|
331
|
+
]
|
|
328
332
|
}
|
|
329
333
|
testID="undefined-backdrop"
|
|
330
334
|
/>
|
|
@@ -160,6 +160,7 @@ exports[`ActionGroup has active false 1`] = `
|
|
|
160
160
|
]
|
|
161
161
|
}
|
|
162
162
|
themeIntent="body"
|
|
163
|
+
themeIsItalic={false}
|
|
163
164
|
themeTypeface="neutral"
|
|
164
165
|
themeVariant="regular"
|
|
165
166
|
>
|
|
@@ -555,6 +556,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
555
556
|
]
|
|
556
557
|
}
|
|
557
558
|
themeIntent="body"
|
|
559
|
+
themeIsItalic={false}
|
|
558
560
|
themeTypeface="neutral"
|
|
559
561
|
themeVariant="regular"
|
|
560
562
|
>
|
|
@@ -674,6 +676,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
674
676
|
]
|
|
675
677
|
}
|
|
676
678
|
themeIntent="body"
|
|
679
|
+
themeIsItalic={false}
|
|
677
680
|
themeTypeface="neutral"
|
|
678
681
|
themeVariant="regular"
|
|
679
682
|
>
|
|
@@ -793,6 +796,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
793
796
|
]
|
|
794
797
|
}
|
|
795
798
|
themeIntent="body"
|
|
799
|
+
themeIsItalic={false}
|
|
796
800
|
themeTypeface="neutral"
|
|
797
801
|
themeVariant="regular"
|
|
798
802
|
>
|
|
@@ -912,6 +916,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
912
916
|
]
|
|
913
917
|
}
|
|
914
918
|
themeIntent="body"
|
|
919
|
+
themeIsItalic={false}
|
|
915
920
|
themeTypeface="neutral"
|
|
916
921
|
themeVariant="regular"
|
|
917
922
|
>
|
|
@@ -1031,6 +1036,7 @@ exports[`ActionGroup has active true 1`] = `
|
|
|
1031
1036
|
]
|
|
1032
1037
|
}
|
|
1033
1038
|
themeIntent="body"
|
|
1039
|
+
themeIsItalic={false}
|
|
1034
1040
|
themeTypeface="neutral"
|
|
1035
1041
|
themeVariant="regular"
|
|
1036
1042
|
>
|
|
@@ -73,6 +73,7 @@ exports[`StyledFAB renders correctly 1`] = `
|
|
|
73
73
|
]
|
|
74
74
|
}
|
|
75
75
|
themeIntent="body"
|
|
76
|
+
themeIsItalic={false}
|
|
76
77
|
themeTypeface="neutral"
|
|
77
78
|
themeVariant="small"
|
|
78
79
|
>
|
|
@@ -175,6 +176,7 @@ exports[`StyledFAB renders correctly 2`] = `
|
|
|
175
176
|
]
|
|
176
177
|
}
|
|
177
178
|
themeIntent="body"
|
|
179
|
+
themeIsItalic={false}
|
|
178
180
|
themeTypeface="neutral"
|
|
179
181
|
themeVariant="small"
|
|
180
182
|
>
|
|
@@ -77,6 +77,7 @@ exports[`FilterTrigger Rendering should render correctly when active is false 1`
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
themeIntent="body"
|
|
80
|
+
themeIsItalic={false}
|
|
80
81
|
themeTypeface="neutral"
|
|
81
82
|
themeVariant="small-bold"
|
|
82
83
|
>
|
|
@@ -183,6 +184,7 @@ exports[`FilterTrigger Rendering should render correctly when active is true 1`]
|
|
|
183
184
|
]
|
|
184
185
|
}
|
|
185
186
|
themeIntent="body"
|
|
187
|
+
themeIsItalic={false}
|
|
186
188
|
themeTypeface="neutral"
|
|
187
189
|
themeVariant="small-bold"
|
|
188
190
|
>
|
|
@@ -289,6 +291,7 @@ exports[`FilterTrigger Rendering should render correctly with basic props 1`] =
|
|
|
289
291
|
]
|
|
290
292
|
}
|
|
291
293
|
themeIntent="body"
|
|
294
|
+
themeIsItalic={false}
|
|
292
295
|
themeTypeface="neutral"
|
|
293
296
|
themeVariant="small"
|
|
294
297
|
>
|
|
@@ -395,6 +398,7 @@ exports[`FilterTrigger Rendering should render filled variant correctly 1`] = `
|
|
|
395
398
|
]
|
|
396
399
|
}
|
|
397
400
|
themeIntent="body"
|
|
401
|
+
themeIsItalic={false}
|
|
398
402
|
themeTypeface="neutral"
|
|
399
403
|
themeVariant="small"
|
|
400
404
|
>
|
|
@@ -501,6 +505,7 @@ exports[`FilterTrigger Rendering should render ghost variant correctly 1`] = `
|
|
|
501
505
|
]
|
|
502
506
|
}
|
|
503
507
|
themeIntent="body"
|
|
508
|
+
themeIsItalic={false}
|
|
504
509
|
themeTypeface="neutral"
|
|
505
510
|
themeVariant="small"
|
|
506
511
|
>
|
|
@@ -607,6 +612,7 @@ exports[`FilterTrigger Rendering should render outlined variant correctly 1`] =
|
|
|
607
612
|
]
|
|
608
613
|
}
|
|
609
614
|
themeIntent="body"
|
|
615
|
+
themeIsItalic={false}
|
|
610
616
|
themeTypeface="neutral"
|
|
611
617
|
themeVariant="small"
|
|
612
618
|
>
|
|
@@ -77,6 +77,7 @@ exports[`FloatingIsland renders correctly 1`] = `
|
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
themeIntent="body"
|
|
80
|
+
themeIsItalic={false}
|
|
80
81
|
themeTypeface="neutral"
|
|
81
82
|
themeVariant="regular"
|
|
82
83
|
>
|
|
@@ -217,6 +218,7 @@ exports[`FloatingIsland renders icons as prefix and suffix correctly 1`] = `
|
|
|
217
218
|
]
|
|
218
219
|
}
|
|
219
220
|
themeIntent="body"
|
|
221
|
+
themeIsItalic={false}
|
|
220
222
|
themeTypeface="neutral"
|
|
221
223
|
themeVariant="regular"
|
|
222
224
|
>
|
|
@@ -370,6 +372,7 @@ exports[`FloatingIsland renders prefix correctly 1`] = `
|
|
|
370
372
|
]
|
|
371
373
|
}
|
|
372
374
|
themeIntent="body"
|
|
375
|
+
themeIsItalic={false}
|
|
373
376
|
themeTypeface="neutral"
|
|
374
377
|
themeVariant="regular"
|
|
375
378
|
>
|
|
@@ -391,6 +394,7 @@ exports[`FloatingIsland renders prefix correctly 1`] = `
|
|
|
391
394
|
]
|
|
392
395
|
}
|
|
393
396
|
themeIntent="body"
|
|
397
|
+
themeIsItalic={false}
|
|
394
398
|
themeTypeface="neutral"
|
|
395
399
|
themeVariant="regular"
|
|
396
400
|
>
|
|
@@ -497,6 +501,7 @@ exports[`FloatingIsland renders suffix correctly 1`] = `
|
|
|
497
501
|
]
|
|
498
502
|
}
|
|
499
503
|
themeIntent="body"
|
|
504
|
+
themeIsItalic={false}
|
|
500
505
|
themeTypeface="neutral"
|
|
501
506
|
themeVariant="regular"
|
|
502
507
|
>
|
|
@@ -530,6 +535,7 @@ exports[`FloatingIsland renders suffix correctly 1`] = `
|
|
|
530
535
|
]
|
|
531
536
|
}
|
|
532
537
|
themeIntent="body"
|
|
538
|
+
themeIsItalic={false}
|
|
533
539
|
themeTypeface="neutral"
|
|
534
540
|
themeVariant="regular"
|
|
535
541
|
>
|
|
@@ -96,6 +96,7 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
themeIntent="body"
|
|
99
|
+
themeIsItalic={false}
|
|
99
100
|
themeTypeface="neutral"
|
|
100
101
|
themeVariant="regular"
|
|
101
102
|
>
|
|
@@ -117,6 +118,7 @@ exports[`BasicListItem when suffix and prefix are icon name renders correctly 1`
|
|
|
117
118
|
}
|
|
118
119
|
themeFontWeight="regular"
|
|
119
120
|
themeIntent="subdued"
|
|
121
|
+
themeIsItalic={false}
|
|
120
122
|
>
|
|
121
123
|
subtitle
|
|
122
124
|
</Text>
|
|
@@ -267,6 +269,7 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
267
269
|
]
|
|
268
270
|
}
|
|
269
271
|
themeIntent="body"
|
|
272
|
+
themeIsItalic={false}
|
|
270
273
|
themeTypeface="neutral"
|
|
271
274
|
themeVariant="regular"
|
|
272
275
|
>
|
|
@@ -288,6 +291,7 @@ exports[`BasicListItem when suffix and prefix are react element renders correctl
|
|
|
288
291
|
}
|
|
289
292
|
themeFontWeight="regular"
|
|
290
293
|
themeIntent="subdued"
|
|
294
|
+
themeIsItalic={false}
|
|
291
295
|
>
|
|
292
296
|
subtitle
|
|
293
297
|
</Text>
|
|
@@ -151,6 +151,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
151
151
|
]
|
|
152
152
|
}
|
|
153
153
|
themeIntent="body"
|
|
154
|
+
themeIsItalic={false}
|
|
154
155
|
themeSize="small"
|
|
155
156
|
themeTypeface="neutral"
|
|
156
157
|
themeVariant="regular"
|
|
@@ -185,6 +186,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
185
186
|
]
|
|
186
187
|
}
|
|
187
188
|
themeIntent="body"
|
|
189
|
+
themeIsItalic={false}
|
|
188
190
|
themeTypeface="neutral"
|
|
189
191
|
themeVariant="regular"
|
|
190
192
|
>
|
|
@@ -206,6 +208,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
206
208
|
}
|
|
207
209
|
themeFontWeight="regular"
|
|
208
210
|
themeIntent="subdued"
|
|
211
|
+
themeIsItalic={false}
|
|
209
212
|
>
|
|
210
213
|
Got a common question?
|
|
211
214
|
</Text>
|
|
@@ -273,6 +276,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
273
276
|
]
|
|
274
277
|
}
|
|
275
278
|
themeIntent="body"
|
|
279
|
+
themeIsItalic={false}
|
|
276
280
|
themeTypeface="neutral"
|
|
277
281
|
themeVariant="regular"
|
|
278
282
|
>
|
|
@@ -293,6 +297,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
293
297
|
]
|
|
294
298
|
}
|
|
295
299
|
themeIntent="body"
|
|
300
|
+
themeIsItalic={false}
|
|
296
301
|
themeTypeface="neutral"
|
|
297
302
|
themeVariant="regular"
|
|
298
303
|
>
|
|
@@ -323,6 +328,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
323
328
|
]
|
|
324
329
|
}
|
|
325
330
|
themeIntent="body"
|
|
331
|
+
themeIsItalic={false}
|
|
326
332
|
themeTypeface="neutral"
|
|
327
333
|
themeVariant="regular"
|
|
328
334
|
>
|
|
@@ -343,6 +349,7 @@ exports[`ListItem renders correctly ListItem with children 1`] = `
|
|
|
343
349
|
]
|
|
344
350
|
}
|
|
345
351
|
themeIntent="body"
|
|
352
|
+
themeIsItalic={false}
|
|
346
353
|
themeTypeface="neutral"
|
|
347
354
|
themeVariant="regular"
|
|
348
355
|
>
|
|
@@ -464,6 +471,7 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
464
471
|
]
|
|
465
472
|
}
|
|
466
473
|
themeIntent="body"
|
|
474
|
+
themeIsItalic={false}
|
|
467
475
|
themeTypeface="neutral"
|
|
468
476
|
themeVariant="regular"
|
|
469
477
|
>
|
|
@@ -485,6 +493,7 @@ exports[`ListItem renders correctly ListItem with icon 1`] = `
|
|
|
485
493
|
}
|
|
486
494
|
themeFontWeight="regular"
|
|
487
495
|
themeIntent="subdued"
|
|
496
|
+
themeIsItalic={false}
|
|
488
497
|
>
|
|
489
498
|
subtitle
|
|
490
499
|
</Text>
|
|
@@ -643,6 +652,7 @@ exports[`ListItem renders correctly ListItem with leading status 1`] = `
|
|
|
643
652
|
]
|
|
644
653
|
}
|
|
645
654
|
themeIntent="body"
|
|
655
|
+
themeIsItalic={false}
|
|
646
656
|
themeTypeface="neutral"
|
|
647
657
|
themeVariant="regular"
|
|
648
658
|
>
|
|
@@ -852,6 +862,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
852
862
|
]
|
|
853
863
|
}
|
|
854
864
|
themeIntent="body"
|
|
865
|
+
themeIsItalic={false}
|
|
855
866
|
themeSize="small"
|
|
856
867
|
themeTypeface="neutral"
|
|
857
868
|
themeVariant="regular"
|
|
@@ -886,6 +897,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
886
897
|
]
|
|
887
898
|
}
|
|
888
899
|
themeIntent="body"
|
|
900
|
+
themeIsItalic={false}
|
|
889
901
|
themeTypeface="neutral"
|
|
890
902
|
themeVariant="regular"
|
|
891
903
|
>
|
|
@@ -907,6 +919,7 @@ exports[`ListItem renders correctly ListItem with prefix suffix is React.Element
|
|
|
907
919
|
}
|
|
908
920
|
themeFontWeight="regular"
|
|
909
921
|
themeIntent="subdued"
|
|
922
|
+
themeIsItalic={false}
|
|
910
923
|
>
|
|
911
924
|
subtitle
|
|
912
925
|
</Text>
|
|
@@ -55,6 +55,7 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
themeIntent="body"
|
|
58
|
+
themeIsItalic={false}
|
|
58
59
|
themeTypeface="neutral"
|
|
59
60
|
themeVariant="small"
|
|
60
61
|
>
|
|
@@ -139,6 +140,7 @@ exports[`StyledListItemContainer renders correctly themeSelected false themeDisa
|
|
|
139
140
|
]
|
|
140
141
|
}
|
|
141
142
|
themeIntent="body"
|
|
143
|
+
themeIsItalic={false}
|
|
142
144
|
themeTypeface="neutral"
|
|
143
145
|
themeVariant="small"
|
|
144
146
|
>
|
|
@@ -223,6 +225,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
223
225
|
]
|
|
224
226
|
}
|
|
225
227
|
themeIntent="body"
|
|
228
|
+
themeIsItalic={false}
|
|
226
229
|
themeTypeface="neutral"
|
|
227
230
|
themeVariant="small"
|
|
228
231
|
>
|
|
@@ -307,6 +310,7 @@ exports[`StyledListItemContainer renders correctly themeSelected true themeDisab
|
|
|
307
310
|
]
|
|
308
311
|
}
|
|
309
312
|
themeIntent="body"
|
|
313
|
+
themeIsItalic={false}
|
|
310
314
|
themeTypeface="neutral"
|
|
311
315
|
themeVariant="small"
|
|
312
316
|
>
|
|
@@ -287,6 +287,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant ca
|
|
|
287
287
|
]
|
|
288
288
|
}
|
|
289
289
|
themeIntent="body"
|
|
290
|
+
themeIsItalic={false}
|
|
290
291
|
themeTypeface="neutral"
|
|
291
292
|
themeVariant="small"
|
|
292
293
|
>
|
|
@@ -369,6 +370,7 @@ exports[`ListItemContainer renders correctly themeSelected false themeVariant fu
|
|
|
369
370
|
]
|
|
370
371
|
}
|
|
371
372
|
themeIntent="body"
|
|
373
|
+
themeIsItalic={false}
|
|
372
374
|
themeTypeface="neutral"
|
|
373
375
|
themeVariant="small"
|
|
374
376
|
>
|
|
@@ -460,6 +462,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant car
|
|
|
460
462
|
]
|
|
461
463
|
}
|
|
462
464
|
themeIntent="body"
|
|
465
|
+
themeIsItalic={false}
|
|
463
466
|
themeTypeface="neutral"
|
|
464
467
|
themeVariant="small"
|
|
465
468
|
>
|
|
@@ -542,6 +545,7 @@ exports[`ListItemContainer renders correctly themeSelected true themeVariant ful
|
|
|
542
545
|
]
|
|
543
546
|
}
|
|
544
547
|
themeIntent="body"
|
|
548
|
+
themeIsItalic={false}
|
|
545
549
|
themeTypeface="neutral"
|
|
546
550
|
themeVariant="small"
|
|
547
551
|
>
|
|
@@ -55,6 +55,7 @@ exports[`Modal renders correctly 1`] = `
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
themeIntent="body"
|
|
58
|
+
themeIsItalic={false}
|
|
58
59
|
themeTypeface="neutral"
|
|
59
60
|
themeVariant="regular"
|
|
60
61
|
>
|
|
@@ -139,6 +140,7 @@ exports[`Modal renders correctly with transparent 1`] = `
|
|
|
139
140
|
]
|
|
140
141
|
}
|
|
141
142
|
themeIntent="body"
|
|
143
|
+
themeIsItalic={false}
|
|
142
144
|
themeTypeface="neutral"
|
|
143
145
|
themeVariant="regular"
|
|
144
146
|
>
|
|
@@ -52,6 +52,7 @@ exports[`PinCell renders correctly when focused is false, state is default 1`] =
|
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
themeIntent="body"
|
|
55
|
+
themeIsItalic={false}
|
|
55
56
|
themeLevel="h3"
|
|
56
57
|
themeState="default"
|
|
57
58
|
themeTypeface="neutral"
|
|
@@ -134,6 +135,7 @@ exports[`PinCell renders correctly when focused is false, state is disabled 1`]
|
|
|
134
135
|
]
|
|
135
136
|
}
|
|
136
137
|
themeIntent="body"
|
|
138
|
+
themeIsItalic={false}
|
|
137
139
|
themeLevel="h3"
|
|
138
140
|
themeState="disabled"
|
|
139
141
|
themeTypeface="neutral"
|
|
@@ -216,6 +218,7 @@ exports[`PinCell renders correctly when focused is false, state is error 1`] = `
|
|
|
216
218
|
]
|
|
217
219
|
}
|
|
218
220
|
themeIntent="body"
|
|
221
|
+
themeIsItalic={false}
|
|
219
222
|
themeLevel="h3"
|
|
220
223
|
themeState="error"
|
|
221
224
|
themeTypeface="neutral"
|
|
@@ -298,6 +301,7 @@ exports[`PinCell renders correctly when focused is true, state is default 1`] =
|
|
|
298
301
|
]
|
|
299
302
|
}
|
|
300
303
|
themeIntent="body"
|
|
304
|
+
themeIsItalic={false}
|
|
301
305
|
themeLevel="h3"
|
|
302
306
|
themeState="default"
|
|
303
307
|
themeTypeface="neutral"
|
|
@@ -380,6 +384,7 @@ exports[`PinCell renders correctly when focused is true, state is error 1`] = `
|
|
|
380
384
|
]
|
|
381
385
|
}
|
|
382
386
|
themeIntent="body"
|
|
387
|
+
themeIsItalic={false}
|
|
383
388
|
themeLevel="h3"
|
|
384
389
|
themeState="error"
|
|
385
390
|
themeTypeface="neutral"
|
|
@@ -730,6 +730,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
730
730
|
]
|
|
731
731
|
}
|
|
732
732
|
themeIntent="body"
|
|
733
|
+
themeIsItalic={false}
|
|
733
734
|
themeLevel="h3"
|
|
734
735
|
themeState="default"
|
|
735
736
|
themeTypeface="neutral"
|
|
@@ -791,6 +792,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
791
792
|
]
|
|
792
793
|
}
|
|
793
794
|
themeIntent="body"
|
|
795
|
+
themeIsItalic={false}
|
|
794
796
|
themeLevel="h3"
|
|
795
797
|
themeState="default"
|
|
796
798
|
themeTypeface="neutral"
|
|
@@ -852,6 +854,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
852
854
|
]
|
|
853
855
|
}
|
|
854
856
|
themeIntent="body"
|
|
857
|
+
themeIsItalic={false}
|
|
855
858
|
themeLevel="h3"
|
|
856
859
|
themeState="default"
|
|
857
860
|
themeTypeface="neutral"
|
|
@@ -1376,6 +1379,7 @@ exports[`rendering renders correctly when there is error 1`] = `
|
|
|
1376
1379
|
}
|
|
1377
1380
|
themeFontWeight="regular"
|
|
1378
1381
|
themeIntent="body"
|
|
1382
|
+
themeIsItalic={false}
|
|
1379
1383
|
>
|
|
1380
1384
|
PIN is not correct
|
|
1381
1385
|
</Text>
|
|
@@ -72,6 +72,10 @@ interface PinInputProps {
|
|
|
72
72
|
* The autofill type of the input.
|
|
73
73
|
*/
|
|
74
74
|
autoComplete?: ComponentProps<typeof TextInput>['autoComplete'];
|
|
75
|
+
/**
|
|
76
|
+
* If true, indicates that the PinInput is accessible to screen readers.
|
|
77
|
+
*/
|
|
78
|
+
accessible?: boolean;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
export function getState({
|
|
@@ -120,6 +124,7 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
120
124
|
testID,
|
|
121
125
|
textContentType,
|
|
122
126
|
autoComplete,
|
|
127
|
+
accessible,
|
|
123
128
|
},
|
|
124
129
|
ref
|
|
125
130
|
) => {
|
|
@@ -191,7 +196,7 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
191
196
|
);
|
|
192
197
|
|
|
193
198
|
return (
|
|
194
|
-
<StyledWrapper style={style} testID={testID}>
|
|
199
|
+
<StyledWrapper style={style} testID={testID} accessible={accessible}>
|
|
195
200
|
<StyledPinWrapper
|
|
196
201
|
onPress={focus}
|
|
197
202
|
disabled={disabled}
|
|
@@ -305,6 +305,7 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
305
305
|
]
|
|
306
306
|
}
|
|
307
307
|
themeIntent="body"
|
|
308
|
+
themeIsItalic={false}
|
|
308
309
|
themeTypeface="neutral"
|
|
309
310
|
themeVariant="regular"
|
|
310
311
|
>
|
|
@@ -507,6 +508,7 @@ exports[`Progress.Circle renders correctly 1`] = `
|
|
|
507
508
|
]
|
|
508
509
|
}
|
|
509
510
|
themeIntent="body"
|
|
511
|
+
themeIsItalic={false}
|
|
510
512
|
themeTypeface="neutral"
|
|
511
513
|
themeVariant="regular"
|
|
512
514
|
>
|
|
@@ -709,6 +711,7 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
709
711
|
]
|
|
710
712
|
}
|
|
711
713
|
themeIntent="body"
|
|
714
|
+
themeIsItalic={false}
|
|
712
715
|
themeTypeface="neutral"
|
|
713
716
|
themeVariant="regular"
|
|
714
717
|
>
|
|
@@ -32,6 +32,10 @@ export interface RadioGroupProps<T> {
|
|
|
32
32
|
* Testing id of the component.
|
|
33
33
|
*/
|
|
34
34
|
testID?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element.
|
|
37
|
+
*/
|
|
38
|
+
accessible?: boolean;
|
|
35
39
|
/**
|
|
36
40
|
* Idle background color of the Radio.
|
|
37
41
|
*/
|
|
@@ -62,9 +66,10 @@ const RadioGroup = <T,>({
|
|
|
62
66
|
keyExtractor,
|
|
63
67
|
style,
|
|
64
68
|
testID,
|
|
69
|
+
accessible,
|
|
65
70
|
inactiveIntent = 'light',
|
|
66
71
|
}: RadioGroupProps<T>): ReactElement => (
|
|
67
|
-
<View style={style} testID={testID}>
|
|
72
|
+
<View style={style} testID={testID} accessible={accessible}>
|
|
68
73
|
{options.map((option, index) => (
|
|
69
74
|
<React.Fragment key={getKey(option, index, keyExtractor)}>
|
|
70
75
|
{index !== 0 && <Spacer themeIntent={inactiveIntent} />}
|
|
@@ -93,6 +93,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=dark 1`] =
|
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
themeIntent="body"
|
|
96
|
+
themeIsItalic={false}
|
|
96
97
|
themeTypeface="neutral"
|
|
97
98
|
themeVariant="regular"
|
|
98
99
|
>
|
|
@@ -260,6 +261,7 @@ exports[`rendering renders correctly when checked with inactiveIntent=light 1`]
|
|
|
260
261
|
]
|
|
261
262
|
}
|
|
262
263
|
themeIntent="body"
|
|
264
|
+
themeIsItalic={false}
|
|
263
265
|
themeTypeface="neutral"
|
|
264
266
|
themeVariant="regular"
|
|
265
267
|
>
|
|
@@ -427,6 +429,7 @@ exports[`rendering renders correctly when not checked with inactiveIntent=dark 1
|
|
|
427
429
|
]
|
|
428
430
|
}
|
|
429
431
|
themeIntent="body"
|
|
432
|
+
themeIsItalic={false}
|
|
430
433
|
themeTypeface="neutral"
|
|
431
434
|
themeVariant="regular"
|
|
432
435
|
>
|
|
@@ -579,6 +582,7 @@ exports[`rendering renders correctly when not checked with inactiveIntent=light
|
|
|
579
582
|
]
|
|
580
583
|
}
|
|
581
584
|
themeIntent="body"
|
|
585
|
+
themeIsItalic={false}
|
|
582
586
|
themeTypeface="neutral"
|
|
583
587
|
themeVariant="regular"
|
|
584
588
|
>
|