@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
|
@@ -145,6 +145,7 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
|
|
|
145
145
|
}
|
|
146
146
|
testID="input-label-asterisk"
|
|
147
147
|
themeIntent="body"
|
|
148
|
+
themeIsItalic={false}
|
|
148
149
|
themeState="filled"
|
|
149
150
|
themeTypeface="neutral"
|
|
150
151
|
themeVariant="regular"
|
|
@@ -168,6 +169,7 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
|
|
|
168
169
|
}
|
|
169
170
|
testID="input-label-text"
|
|
170
171
|
themeIntent="body"
|
|
172
|
+
themeIsItalic={false}
|
|
171
173
|
themeTypeface="neutral"
|
|
172
174
|
themeVariant="regular"
|
|
173
175
|
>
|
|
@@ -271,6 +273,7 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
|
|
|
271
273
|
}
|
|
272
274
|
themeFontWeight="regular"
|
|
273
275
|
themeIntent="body"
|
|
276
|
+
themeIsItalic={false}
|
|
274
277
|
>
|
|
275
278
|
This is helper text
|
|
276
279
|
</Text>
|
|
@@ -298,6 +301,7 @@ exports[`TextInput backgroundColor renders correctly 1`] = `
|
|
|
298
301
|
}
|
|
299
302
|
themeFontWeight="regular"
|
|
300
303
|
themeIntent="body"
|
|
304
|
+
themeIsItalic={false}
|
|
301
305
|
themeState="filled"
|
|
302
306
|
>
|
|
303
307
|
4
|
|
@@ -475,6 +479,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
475
479
|
}
|
|
476
480
|
testID="input-label-asterisk"
|
|
477
481
|
themeIntent="body"
|
|
482
|
+
themeIsItalic={false}
|
|
478
483
|
themeState="filled"
|
|
479
484
|
themeTypeface="neutral"
|
|
480
485
|
themeVariant="regular"
|
|
@@ -498,6 +503,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
498
503
|
}
|
|
499
504
|
testID="input-label-text"
|
|
500
505
|
themeIntent="body"
|
|
506
|
+
themeIsItalic={false}
|
|
501
507
|
themeTypeface="neutral"
|
|
502
508
|
themeVariant="regular"
|
|
503
509
|
>
|
|
@@ -600,6 +606,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
600
606
|
}
|
|
601
607
|
themeFontWeight="regular"
|
|
602
608
|
themeIntent="body"
|
|
609
|
+
themeIsItalic={false}
|
|
603
610
|
>
|
|
604
611
|
This is helper text
|
|
605
612
|
</Text>
|
|
@@ -627,6 +634,7 @@ exports[`TextInput defaultValue TextInput is idle renders correctly 1`] = `
|
|
|
627
634
|
}
|
|
628
635
|
themeFontWeight="regular"
|
|
629
636
|
themeIntent="body"
|
|
637
|
+
themeIsItalic={false}
|
|
630
638
|
themeState="filled"
|
|
631
639
|
>
|
|
632
640
|
4
|
|
@@ -804,6 +812,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
804
812
|
}
|
|
805
813
|
testID="input-label-asterisk"
|
|
806
814
|
themeIntent="body"
|
|
815
|
+
themeIsItalic={false}
|
|
807
816
|
themeState="filled"
|
|
808
817
|
themeTypeface="neutral"
|
|
809
818
|
themeVariant="regular"
|
|
@@ -827,6 +836,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
827
836
|
}
|
|
828
837
|
testID="input-label-text"
|
|
829
838
|
themeIntent="body"
|
|
839
|
+
themeIsItalic={false}
|
|
830
840
|
themeTypeface="neutral"
|
|
831
841
|
themeVariant="regular"
|
|
832
842
|
>
|
|
@@ -930,6 +940,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
930
940
|
}
|
|
931
941
|
themeFontWeight="regular"
|
|
932
942
|
themeIntent="body"
|
|
943
|
+
themeIsItalic={false}
|
|
933
944
|
>
|
|
934
945
|
This is helper text
|
|
935
946
|
</Text>
|
|
@@ -957,6 +968,7 @@ exports[`TextInput defaultValue default Value and Value renders correctly with 2
|
|
|
957
968
|
}
|
|
958
969
|
themeFontWeight="regular"
|
|
959
970
|
themeIntent="body"
|
|
971
|
+
themeIsItalic={false}
|
|
960
972
|
themeState="filled"
|
|
961
973
|
>
|
|
962
974
|
4
|
|
@@ -1119,6 +1131,7 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
1119
1131
|
}
|
|
1120
1132
|
testID="input-label-asterisk"
|
|
1121
1133
|
themeIntent="body"
|
|
1134
|
+
themeIsItalic={false}
|
|
1122
1135
|
themeState="disabled"
|
|
1123
1136
|
themeTypeface="neutral"
|
|
1124
1137
|
themeVariant="regular"
|
|
@@ -1142,6 +1155,7 @@ exports[`TextInput disabled renders correctly 1`] = `
|
|
|
1142
1155
|
}
|
|
1143
1156
|
testID="input-label-text-disabled-text-input"
|
|
1144
1157
|
themeIntent="body"
|
|
1158
|
+
themeIsItalic={false}
|
|
1145
1159
|
themeTypeface="neutral"
|
|
1146
1160
|
themeVariant="regular"
|
|
1147
1161
|
>
|
|
@@ -1397,6 +1411,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
1397
1411
|
}
|
|
1398
1412
|
testID="input-label-asterisk"
|
|
1399
1413
|
themeIntent="body"
|
|
1414
|
+
themeIsItalic={false}
|
|
1400
1415
|
themeState="error"
|
|
1401
1416
|
themeTypeface="neutral"
|
|
1402
1417
|
themeVariant="regular"
|
|
@@ -1420,6 +1435,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
1420
1435
|
}
|
|
1421
1436
|
testID="input-label-text"
|
|
1422
1437
|
themeIntent="body"
|
|
1438
|
+
themeIsItalic={false}
|
|
1423
1439
|
themeTypeface="neutral"
|
|
1424
1440
|
themeVariant="regular"
|
|
1425
1441
|
>
|
|
@@ -1556,6 +1572,7 @@ exports[`TextInput error renders correctly 1`] = `
|
|
|
1556
1572
|
testID="input-error-message"
|
|
1557
1573
|
themeFontWeight="regular"
|
|
1558
1574
|
themeIntent="body"
|
|
1575
|
+
themeIsItalic={false}
|
|
1559
1576
|
>
|
|
1560
1577
|
This field is required
|
|
1561
1578
|
</Text>
|
|
@@ -1725,6 +1742,7 @@ exports[`TextInput filled renders correctly 1`] = `
|
|
|
1725
1742
|
}
|
|
1726
1743
|
testID="input-label-text"
|
|
1727
1744
|
themeIntent="body"
|
|
1745
|
+
themeIsItalic={false}
|
|
1728
1746
|
themeTypeface="neutral"
|
|
1729
1747
|
themeVariant="regular"
|
|
1730
1748
|
>
|
|
@@ -1995,6 +2013,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
1995
2013
|
}
|
|
1996
2014
|
testID="input-label-asterisk"
|
|
1997
2015
|
themeIntent="body"
|
|
2016
|
+
themeIsItalic={false}
|
|
1998
2017
|
themeState="default"
|
|
1999
2018
|
themeTypeface="neutral"
|
|
2000
2019
|
themeVariant="regular"
|
|
@@ -2018,6 +2037,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
2018
2037
|
}
|
|
2019
2038
|
testID="input-label-text"
|
|
2020
2039
|
themeIntent="body"
|
|
2040
|
+
themeIsItalic={false}
|
|
2021
2041
|
themeTypeface="neutral"
|
|
2022
2042
|
themeVariant="regular"
|
|
2023
2043
|
>
|
|
@@ -2118,6 +2138,7 @@ exports[`TextInput helper text renders correctly 1`] = `
|
|
|
2118
2138
|
}
|
|
2119
2139
|
themeFontWeight="regular"
|
|
2120
2140
|
themeIntent="body"
|
|
2141
|
+
themeIsItalic={false}
|
|
2121
2142
|
>
|
|
2122
2143
|
This is helper text
|
|
2123
2144
|
</Text>
|
|
@@ -2289,6 +2310,7 @@ exports[`TextInput idle renders correctly 1`] = `
|
|
|
2289
2310
|
}
|
|
2290
2311
|
testID="input-label-text-idle-text-input"
|
|
2291
2312
|
themeIntent="body"
|
|
2313
|
+
themeIsItalic={false}
|
|
2292
2314
|
themeTypeface="neutral"
|
|
2293
2315
|
themeVariant="regular"
|
|
2294
2316
|
>
|
|
@@ -2558,6 +2580,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
2558
2580
|
}
|
|
2559
2581
|
testID="input-label-asterisk"
|
|
2560
2582
|
themeIntent="body"
|
|
2583
|
+
themeIsItalic={false}
|
|
2561
2584
|
themeState="default"
|
|
2562
2585
|
themeTypeface="neutral"
|
|
2563
2586
|
themeVariant="regular"
|
|
@@ -2581,6 +2604,7 @@ exports[`TextInput idle with suffix and prefix are React Element renders correct
|
|
|
2581
2604
|
}
|
|
2582
2605
|
testID="input-label-text"
|
|
2583
2606
|
themeIntent="body"
|
|
2607
|
+
themeIsItalic={false}
|
|
2584
2608
|
themeTypeface="neutral"
|
|
2585
2609
|
themeVariant="regular"
|
|
2586
2610
|
>
|
|
@@ -3050,6 +3074,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
3050
3074
|
}
|
|
3051
3075
|
testID="input-label-asterisk"
|
|
3052
3076
|
themeIntent="body"
|
|
3077
|
+
themeIsItalic={false}
|
|
3053
3078
|
themeState="error"
|
|
3054
3079
|
themeTypeface="neutral"
|
|
3055
3080
|
themeVariant="regular"
|
|
@@ -3073,6 +3098,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
3073
3098
|
}
|
|
3074
3099
|
testID="input-label-text"
|
|
3075
3100
|
themeIntent="body"
|
|
3101
|
+
themeIsItalic={false}
|
|
3076
3102
|
themeTypeface="neutral"
|
|
3077
3103
|
themeVariant="regular"
|
|
3078
3104
|
>
|
|
@@ -3211,6 +3237,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
3211
3237
|
testID="input-error-message"
|
|
3212
3238
|
themeFontWeight="regular"
|
|
3213
3239
|
themeIntent="body"
|
|
3240
|
+
themeIsItalic={false}
|
|
3214
3241
|
>
|
|
3215
3242
|
must not exceed character limit
|
|
3216
3243
|
</Text>
|
|
@@ -3239,6 +3266,7 @@ exports[`TextInput max length renders correctly 1`] = `
|
|
|
3239
3266
|
}
|
|
3240
3267
|
themeFontWeight="regular"
|
|
3241
3268
|
themeIntent="body"
|
|
3269
|
+
themeIsItalic={false}
|
|
3242
3270
|
themeState="error"
|
|
3243
3271
|
>
|
|
3244
3272
|
18
|
|
@@ -3400,6 +3428,7 @@ exports[`TextInput max length renders correctly with hide character count 1`] =
|
|
|
3400
3428
|
}
|
|
3401
3429
|
testID="input-label-asterisk"
|
|
3402
3430
|
themeIntent="body"
|
|
3431
|
+
themeIsItalic={false}
|
|
3403
3432
|
themeState="error"
|
|
3404
3433
|
themeTypeface="neutral"
|
|
3405
3434
|
themeVariant="regular"
|
|
@@ -3423,6 +3452,7 @@ exports[`TextInput max length renders correctly with hide character count 1`] =
|
|
|
3423
3452
|
}
|
|
3424
3453
|
testID="input-label-text"
|
|
3425
3454
|
themeIntent="body"
|
|
3455
|
+
themeIsItalic={false}
|
|
3426
3456
|
themeTypeface="neutral"
|
|
3427
3457
|
themeVariant="regular"
|
|
3428
3458
|
>
|
|
@@ -3561,6 +3591,7 @@ exports[`TextInput max length renders correctly with hide character count 1`] =
|
|
|
3561
3591
|
testID="input-error-message"
|
|
3562
3592
|
themeFontWeight="regular"
|
|
3563
3593
|
themeIntent="body"
|
|
3594
|
+
themeIsItalic={false}
|
|
3564
3595
|
>
|
|
3565
3596
|
must not exceed character limit
|
|
3566
3597
|
</Text>
|
|
@@ -3736,6 +3767,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
3736
3767
|
}
|
|
3737
3768
|
testID="input-label-asterisk"
|
|
3738
3769
|
themeIntent="body"
|
|
3770
|
+
themeIsItalic={false}
|
|
3739
3771
|
themeState="default"
|
|
3740
3772
|
themeTypeface="neutral"
|
|
3741
3773
|
themeVariant="regular"
|
|
@@ -3759,6 +3791,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
3759
3791
|
}
|
|
3760
3792
|
testID="input-label-text"
|
|
3761
3793
|
themeIntent="body"
|
|
3794
|
+
themeIsItalic={false}
|
|
3762
3795
|
themeTypeface="neutral"
|
|
3763
3796
|
themeVariant="regular"
|
|
3764
3797
|
>
|
|
@@ -3859,6 +3892,7 @@ exports[`TextInput placeholder TextInput is idle renders correctly 1`] = `
|
|
|
3859
3892
|
}
|
|
3860
3893
|
themeFontWeight="regular"
|
|
3861
3894
|
themeIntent="body"
|
|
3895
|
+
themeIsItalic={false}
|
|
3862
3896
|
>
|
|
3863
3897
|
This is helper text
|
|
3864
3898
|
</Text>
|
|
@@ -4033,6 +4067,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
4033
4067
|
}
|
|
4034
4068
|
testID="input-label-asterisk"
|
|
4035
4069
|
themeIntent="body"
|
|
4070
|
+
themeIsItalic={false}
|
|
4036
4071
|
themeState="readonly"
|
|
4037
4072
|
themeTypeface="neutral"
|
|
4038
4073
|
themeVariant="regular"
|
|
@@ -4056,6 +4091,7 @@ exports[`TextInput readonly renders correctly 1`] = `
|
|
|
4056
4091
|
}
|
|
4057
4092
|
testID="input-label-text"
|
|
4058
4093
|
themeIntent="body"
|
|
4094
|
+
themeIsItalic={false}
|
|
4059
4095
|
themeTypeface="neutral"
|
|
4060
4096
|
themeVariant="regular"
|
|
4061
4097
|
>
|
|
@@ -4304,6 +4340,7 @@ exports[`TextInput ref ref methods work correctly 1`] = `
|
|
|
4304
4340
|
}
|
|
4305
4341
|
testID="input-label-text"
|
|
4306
4342
|
themeIntent="body"
|
|
4343
|
+
themeIsItalic={false}
|
|
4307
4344
|
themeTypeface="neutral"
|
|
4308
4345
|
themeVariant="regular"
|
|
4309
4346
|
>
|
|
@@ -4559,6 +4596,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
4559
4596
|
}
|
|
4560
4597
|
testID="input-label-asterisk"
|
|
4561
4598
|
themeIntent="body"
|
|
4599
|
+
themeIsItalic={false}
|
|
4562
4600
|
themeState="default"
|
|
4563
4601
|
themeTypeface="neutral"
|
|
4564
4602
|
themeVariant="regular"
|
|
@@ -4582,6 +4620,7 @@ exports[`TextInput required renders correctly 1`] = `
|
|
|
4582
4620
|
}
|
|
4583
4621
|
testID="input-label-text"
|
|
4584
4622
|
themeIntent="body"
|
|
4623
|
+
themeIsItalic={false}
|
|
4585
4624
|
themeTypeface="neutral"
|
|
4586
4625
|
themeVariant="regular"
|
|
4587
4626
|
>
|
|
@@ -4829,6 +4868,7 @@ exports[`TextInput variants renders textarea variant correctly 1`] = `
|
|
|
4829
4868
|
}
|
|
4830
4869
|
testID="input-label-text"
|
|
4831
4870
|
themeIntent="body"
|
|
4871
|
+
themeIsItalic={false}
|
|
4832
4872
|
themeTypeface="neutral"
|
|
4833
4873
|
themeVariant="regular"
|
|
4834
4874
|
>
|
|
@@ -162,6 +162,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 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
|
>
|
|
@@ -263,6 +264,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
263
264
|
}
|
|
264
265
|
themeFontWeight="regular"
|
|
265
266
|
themeIntent="body"
|
|
267
|
+
themeIsItalic={false}
|
|
266
268
|
>
|
|
267
269
|
This is help text
|
|
268
270
|
</Text>
|
|
@@ -456,6 +458,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
456
458
|
}
|
|
457
459
|
testID="input-label-text"
|
|
458
460
|
themeIntent="body"
|
|
461
|
+
themeIsItalic={false}
|
|
459
462
|
themeTypeface="neutral"
|
|
460
463
|
themeVariant="regular"
|
|
461
464
|
>
|
|
@@ -162,6 +162,7 @@ exports[`TimePickerIOS renders correct with hide suffix 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
|
>
|
|
@@ -263,6 +264,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
263
264
|
}
|
|
264
265
|
themeFontWeight="regular"
|
|
265
266
|
themeIntent="body"
|
|
267
|
+
themeIsItalic={false}
|
|
266
268
|
>
|
|
267
269
|
This is help text
|
|
268
270
|
</Text>
|
|
@@ -456,6 +458,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
456
458
|
}
|
|
457
459
|
testID="input-label-text"
|
|
458
460
|
themeIntent="body"
|
|
461
|
+
themeIsItalic={false}
|
|
459
462
|
themeTypeface="neutral"
|
|
460
463
|
themeVariant="regular"
|
|
461
464
|
>
|
|
@@ -745,6 +748,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
745
748
|
]
|
|
746
749
|
}
|
|
747
750
|
themeIntent="body"
|
|
751
|
+
themeIsItalic={false}
|
|
748
752
|
themeTypeface="neutral"
|
|
749
753
|
themeVariant="regular-bold"
|
|
750
754
|
>
|
|
@@ -925,6 +929,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
925
929
|
themeButtonVariant="text-primary"
|
|
926
930
|
themeIntent="body"
|
|
927
931
|
themeIsCompact={false}
|
|
932
|
+
themeIsItalic={false}
|
|
928
933
|
themeIsPressed={false}
|
|
929
934
|
themeTypeface="neutral"
|
|
930
935
|
themeVariant="regular-bold"
|
|
@@ -114,6 +114,7 @@ exports[`Toast Icon render custom icon correctly 1`] = `
|
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
themeIntent="body"
|
|
117
|
+
themeIsItalic={false}
|
|
117
118
|
themeTypeface="neutral"
|
|
118
119
|
themeVariant="small"
|
|
119
120
|
>
|
|
@@ -259,6 +260,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
259
260
|
]
|
|
260
261
|
}
|
|
261
262
|
themeIntent="body"
|
|
263
|
+
themeIsItalic={false}
|
|
262
264
|
themeTypeface="neutral"
|
|
263
265
|
themeVariant="small"
|
|
264
266
|
>
|
|
@@ -323,6 +325,7 @@ exports[`Toast renders correctly when intent is error 1`] = `
|
|
|
323
325
|
]
|
|
324
326
|
}
|
|
325
327
|
themeIntent="body"
|
|
328
|
+
themeIsItalic={false}
|
|
326
329
|
themeTypeface="neutral"
|
|
327
330
|
themeVariant="small-bold"
|
|
328
331
|
>
|
|
@@ -467,6 +470,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
467
470
|
]
|
|
468
471
|
}
|
|
469
472
|
themeIntent="body"
|
|
473
|
+
themeIsItalic={false}
|
|
470
474
|
themeTypeface="neutral"
|
|
471
475
|
themeVariant="small"
|
|
472
476
|
>
|
|
@@ -531,6 +535,7 @@ exports[`Toast renders correctly when intent is info 1`] = `
|
|
|
531
535
|
]
|
|
532
536
|
}
|
|
533
537
|
themeIntent="body"
|
|
538
|
+
themeIsItalic={false}
|
|
534
539
|
themeTypeface="neutral"
|
|
535
540
|
themeVariant="small-bold"
|
|
536
541
|
>
|
|
@@ -643,6 +648,7 @@ exports[`Toast renders correctly when intent is notification 1`] = `
|
|
|
643
648
|
]
|
|
644
649
|
}
|
|
645
650
|
themeIntent="body"
|
|
651
|
+
themeIsItalic={false}
|
|
646
652
|
themeTypeface="neutral"
|
|
647
653
|
themeVariant="small"
|
|
648
654
|
>
|
|
@@ -707,6 +713,7 @@ exports[`Toast renders correctly when intent is notification 1`] = `
|
|
|
707
713
|
]
|
|
708
714
|
}
|
|
709
715
|
themeIntent="body"
|
|
716
|
+
themeIsItalic={false}
|
|
710
717
|
themeTypeface="neutral"
|
|
711
718
|
themeVariant="small-bold"
|
|
712
719
|
>
|
|
@@ -819,6 +826,7 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
|
819
826
|
]
|
|
820
827
|
}
|
|
821
828
|
themeIntent="body"
|
|
829
|
+
themeIsItalic={false}
|
|
822
830
|
themeTypeface="neutral"
|
|
823
831
|
themeVariant="small"
|
|
824
832
|
>
|
|
@@ -883,6 +891,7 @@ exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
|
883
891
|
]
|
|
884
892
|
}
|
|
885
893
|
themeIntent="body"
|
|
894
|
+
themeIsItalic={false}
|
|
886
895
|
themeTypeface="neutral"
|
|
887
896
|
themeVariant="small-bold"
|
|
888
897
|
>
|
|
@@ -1027,6 +1036,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
1027
1036
|
]
|
|
1028
1037
|
}
|
|
1029
1038
|
themeIntent="body"
|
|
1039
|
+
themeIsItalic={false}
|
|
1030
1040
|
themeTypeface="neutral"
|
|
1031
1041
|
themeVariant="small"
|
|
1032
1042
|
>
|
|
@@ -1091,6 +1101,7 @@ exports[`Toast renders correctly when intent is success 1`] = `
|
|
|
1091
1101
|
]
|
|
1092
1102
|
}
|
|
1093
1103
|
themeIntent="body"
|
|
1104
|
+
themeIsItalic={false}
|
|
1094
1105
|
themeTypeface="neutral"
|
|
1095
1106
|
themeVariant="small-bold"
|
|
1096
1107
|
>
|
|
@@ -1235,6 +1246,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
1235
1246
|
]
|
|
1236
1247
|
}
|
|
1237
1248
|
themeIntent="body"
|
|
1249
|
+
themeIsItalic={false}
|
|
1238
1250
|
themeTypeface="neutral"
|
|
1239
1251
|
themeVariant="small"
|
|
1240
1252
|
>
|
|
@@ -1299,6 +1311,7 @@ exports[`Toast renders correctly when intent is warning 1`] = `
|
|
|
1299
1311
|
]
|
|
1300
1312
|
}
|
|
1301
1313
|
themeIntent="body"
|
|
1314
|
+
themeIsItalic={false}
|
|
1302
1315
|
themeTypeface="neutral"
|
|
1303
1316
|
themeVariant="small-bold"
|
|
1304
1317
|
>
|
|
@@ -4,6 +4,13 @@ import ToolbarItem from './ToolbarItem';
|
|
|
4
4
|
import type { ToolbarItemProps } from './ToolbarItem';
|
|
5
5
|
import { useDeprecation } from '../../utils/hooks';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use 'right' instead.
|
|
9
|
+
*/
|
|
10
|
+
type DeprecatedAlign = 'left' | 'center';
|
|
11
|
+
|
|
12
|
+
type ValidAlign = 'right';
|
|
13
|
+
|
|
7
14
|
export interface ToolbarGroupProps {
|
|
8
15
|
/**
|
|
9
16
|
* List of action items in the toolbar group.
|
|
@@ -11,21 +18,28 @@ export interface ToolbarGroupProps {
|
|
|
11
18
|
items?: ToolbarItemProps[];
|
|
12
19
|
/**
|
|
13
20
|
* Alignment of the items in the group.
|
|
21
|
+
*
|
|
22
|
+
* ⚠️ 'left' | 'center' alignments are deprecated and will be removed in the next major release. Please use 'right' instead.
|
|
14
23
|
*/
|
|
24
|
+
align: ValidAlign | DeprecatedAlign;
|
|
15
25
|
/**
|
|
16
|
-
*
|
|
26
|
+
* If true, indicates that the ToolbarGroup is accessible to screen readers.
|
|
17
27
|
*/
|
|
18
|
-
|
|
28
|
+
accessible?: boolean;
|
|
19
29
|
}
|
|
20
30
|
|
|
21
|
-
const ToolbarGroup = ({
|
|
31
|
+
const ToolbarGroup = ({
|
|
32
|
+
align = 'right',
|
|
33
|
+
items = [],
|
|
34
|
+
accessible,
|
|
35
|
+
}: ToolbarGroupProps) => {
|
|
22
36
|
useDeprecation(
|
|
23
37
|
"Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.",
|
|
24
38
|
align !== 'right'
|
|
25
39
|
);
|
|
26
40
|
|
|
27
41
|
return (
|
|
28
|
-
<ToolbarGroupWrapper align={align}>
|
|
42
|
+
<ToolbarGroupWrapper align={align} accessible={accessible}>
|
|
29
43
|
{items.map(({ label, icon, onPress, disabled, intent }) => (
|
|
30
44
|
<ToolbarItem
|
|
31
45
|
key={`${label}-${icon}`}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
3
3
|
import ToolbarGroup from '../ToolbarGroup';
|
|
4
|
+
import * as DeprecationHook from '../../../utils/hooks';
|
|
4
5
|
|
|
5
6
|
describe('ToolbarGroup', () => {
|
|
6
7
|
it.each`
|
|
@@ -9,8 +10,9 @@ describe('ToolbarGroup', () => {
|
|
|
9
10
|
${'right'}
|
|
10
11
|
${'center'}
|
|
11
12
|
`('renders correctly with when align is $align', ({ align }) => {
|
|
12
|
-
const { toJSON } = renderWithTheme(
|
|
13
|
+
const { toJSON, getAllByText } = renderWithTheme(
|
|
13
14
|
<ToolbarGroup
|
|
15
|
+
accessible
|
|
14
16
|
align={align}
|
|
15
17
|
items={[
|
|
16
18
|
{
|
|
@@ -28,5 +30,36 @@ describe('ToolbarGroup', () => {
|
|
|
28
30
|
);
|
|
29
31
|
|
|
30
32
|
expect(toJSON()).toMatchSnapshot();
|
|
33
|
+
|
|
34
|
+
expect(getAllByText('Discard')).toHaveLength(1);
|
|
35
|
+
expect(getAllByText('Print')).toHaveLength(1);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
describe('Deprecation Warning', () => {
|
|
39
|
+
const deprecationSpy = jest.spyOn(DeprecationHook, 'useDeprecation');
|
|
40
|
+
|
|
41
|
+
it.each`
|
|
42
|
+
align | shouldWarn
|
|
43
|
+
${'left'} | ${true}
|
|
44
|
+
${'center'} | ${true}
|
|
45
|
+
${'right'} | ${false}
|
|
46
|
+
`(
|
|
47
|
+
'should show deprecation warning for align=$align is $shouldWarn',
|
|
48
|
+
({ align, shouldWarn }) => {
|
|
49
|
+
renderWithTheme(<ToolbarGroup align={align} items={[]} />);
|
|
50
|
+
|
|
51
|
+
if (shouldWarn) {
|
|
52
|
+
expect(deprecationSpy).toHaveBeenCalledWith(
|
|
53
|
+
"Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.",
|
|
54
|
+
true
|
|
55
|
+
);
|
|
56
|
+
} else {
|
|
57
|
+
expect(deprecationSpy).toHaveBeenCalledWith(
|
|
58
|
+
"Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.",
|
|
59
|
+
false
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
31
64
|
});
|
|
32
65
|
});
|
|
@@ -9,6 +9,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
9
9
|
}
|
|
10
10
|
>
|
|
11
11
|
<View
|
|
12
|
+
accessible={true}
|
|
12
13
|
align="center"
|
|
13
14
|
style={
|
|
14
15
|
[
|
|
@@ -112,6 +113,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
112
113
|
]
|
|
113
114
|
}
|
|
114
115
|
themeIntent="primary"
|
|
116
|
+
themeIsItalic={false}
|
|
115
117
|
themeTypeface="neutral"
|
|
116
118
|
themeVariant="regular-bold"
|
|
117
119
|
>
|
|
@@ -209,6 +211,7 @@ exports[`ToolbarGroup renders correctly with when align is center 1`] = `
|
|
|
209
211
|
]
|
|
210
212
|
}
|
|
211
213
|
themeIntent="primary"
|
|
214
|
+
themeIsItalic={false}
|
|
212
215
|
themeTypeface="neutral"
|
|
213
216
|
themeVariant="regular-bold"
|
|
214
217
|
>
|
|
@@ -249,6 +252,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
249
252
|
}
|
|
250
253
|
>
|
|
251
254
|
<View
|
|
255
|
+
accessible={true}
|
|
252
256
|
align="left"
|
|
253
257
|
style={
|
|
254
258
|
[
|
|
@@ -352,6 +356,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
352
356
|
]
|
|
353
357
|
}
|
|
354
358
|
themeIntent="primary"
|
|
359
|
+
themeIsItalic={false}
|
|
355
360
|
themeTypeface="neutral"
|
|
356
361
|
themeVariant="regular-bold"
|
|
357
362
|
>
|
|
@@ -449,6 +454,7 @@ exports[`ToolbarGroup renders correctly with when align is left 1`] = `
|
|
|
449
454
|
]
|
|
450
455
|
}
|
|
451
456
|
themeIntent="primary"
|
|
457
|
+
themeIsItalic={false}
|
|
452
458
|
themeTypeface="neutral"
|
|
453
459
|
themeVariant="regular-bold"
|
|
454
460
|
>
|
|
@@ -489,6 +495,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
489
495
|
}
|
|
490
496
|
>
|
|
491
497
|
<View
|
|
498
|
+
accessible={true}
|
|
492
499
|
align="right"
|
|
493
500
|
style={
|
|
494
501
|
[
|
|
@@ -592,6 +599,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
592
599
|
]
|
|
593
600
|
}
|
|
594
601
|
themeIntent="primary"
|
|
602
|
+
themeIsItalic={false}
|
|
595
603
|
themeTypeface="neutral"
|
|
596
604
|
themeVariant="regular-bold"
|
|
597
605
|
>
|
|
@@ -689,6 +697,7 @@ exports[`ToolbarGroup renders correctly with when align is right 1`] = `
|
|
|
689
697
|
]
|
|
690
698
|
}
|
|
691
699
|
themeIntent="primary"
|
|
700
|
+
themeIsItalic={false}
|
|
692
701
|
themeTypeface="neutral"
|
|
693
702
|
themeVariant="regular-bold"
|
|
694
703
|
>
|
|
@@ -98,6 +98,7 @@ exports[`ToolbarItems renders correctly when disabled 1`] = `
|
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
themeIntent="subdued"
|
|
101
|
+
themeIsItalic={false}
|
|
101
102
|
themeTypeface="neutral"
|
|
102
103
|
themeVariant="regular-bold"
|
|
103
104
|
>
|
|
@@ -196,6 +197,7 @@ exports[`ToolbarItems renders correctly when intent is danger, icon is undefined
|
|
|
196
197
|
]
|
|
197
198
|
}
|
|
198
199
|
themeIntent="danger"
|
|
200
|
+
themeIsItalic={false}
|
|
199
201
|
themeTypeface="neutral"
|
|
200
202
|
themeVariant="regular-bold"
|
|
201
203
|
>
|
|
@@ -293,6 +295,7 @@ exports[`ToolbarItems renders correctly when intent is info, icon is undefined,
|
|
|
293
295
|
]
|
|
294
296
|
}
|
|
295
297
|
themeIntent="info"
|
|
298
|
+
themeIsItalic={false}
|
|
296
299
|
themeTypeface="neutral"
|
|
297
300
|
themeVariant="regular-bold"
|
|
298
301
|
>
|
|
@@ -420,6 +423,7 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
|
|
|
420
423
|
]
|
|
421
424
|
}
|
|
422
425
|
themeIntent="primary"
|
|
426
|
+
themeIsItalic={false}
|
|
423
427
|
themeTypeface="neutral"
|
|
424
428
|
themeVariant="regular-bold"
|
|
425
429
|
>
|
|
@@ -548,6 +552,7 @@ exports[`ToolbarItems renders correctly when intent is primary, icon is ai-outli
|
|
|
548
552
|
]
|
|
549
553
|
}
|
|
550
554
|
themeIntent="subdued"
|
|
555
|
+
themeIsItalic={false}
|
|
551
556
|
themeTypeface="neutral"
|
|
552
557
|
themeVariant="regular-bold"
|
|
553
558
|
>
|
|
@@ -748,6 +753,7 @@ exports[`ToolbarItems renders correctly when intent is success, icon is undefine
|
|
|
748
753
|
]
|
|
749
754
|
}
|
|
750
755
|
themeIntent="success"
|
|
756
|
+
themeIsItalic={false}
|
|
751
757
|
themeTypeface="neutral"
|
|
752
758
|
themeVariant="regular-bold"
|
|
753
759
|
>
|
|
@@ -845,6 +851,7 @@ exports[`ToolbarItems renders correctly when intent is warning, icon is undefine
|
|
|
845
851
|
]
|
|
846
852
|
}
|
|
847
853
|
themeIntent="warning"
|
|
854
|
+
themeIsItalic={false}
|
|
848
855
|
themeTypeface="neutral"
|
|
849
856
|
themeVariant="regular-bold"
|
|
850
857
|
>
|