@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
|
@@ -34,6 +34,10 @@ export interface AccordionProps<K extends Key> {
|
|
|
34
34
|
* Testing id of the component.
|
|
35
35
|
*/
|
|
36
36
|
testID?: string;
|
|
37
|
+
/**
|
|
38
|
+
* If true, indicates that the Accordion is accessible to screen readers.
|
|
39
|
+
*/
|
|
40
|
+
accessible?: boolean;
|
|
37
41
|
}
|
|
38
|
-
declare const Accordion: <K extends Key>({ items, activeItemKey, onItemPress, variant, style, testID, }: AccordionProps<K>) => React.JSX.Element;
|
|
42
|
+
declare const Accordion: <K extends Key>({ items, activeItemKey, onItemPress, variant, style, testID, accessible, }: AccordionProps<K>) => React.JSX.Element;
|
|
39
43
|
export default Accordion;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../Icon';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use 'success' | 'info' | 'warning' | 'error' instead.
|
|
6
|
+
*/
|
|
7
|
+
type DeprecatedIntent = 'notification';
|
|
8
|
+
type ValidIntent = 'success' | 'info' | 'warning' | 'error';
|
|
4
9
|
interface BasicAlertProps {
|
|
5
10
|
/**
|
|
6
11
|
* Alert title.
|
|
@@ -20,9 +25,10 @@ interface BasicAlertProps {
|
|
|
20
25
|
/**
|
|
21
26
|
* Visual intent color to apply to alert.
|
|
22
27
|
*
|
|
23
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* ⚠️ 'notification' intent is deprecated and will be removed in the next major release. Please use other intents instead.
|
|
24
30
|
*/
|
|
25
|
-
intent?:
|
|
31
|
+
intent?: ValidIntent | DeprecatedIntent;
|
|
26
32
|
/**
|
|
27
33
|
* Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
|
|
28
34
|
* - undefined: no action button.
|
|
@@ -2,6 +2,11 @@ import type { ReactChild, ReactNode } from 'react';
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../Icon';
|
|
4
4
|
import type { Intent, ThemeVariant } from './StyledButton';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
|
|
7
|
+
*/
|
|
8
|
+
type DeprecatedIntent = 'white';
|
|
9
|
+
type ValidIntent = 'primary' | 'secondary' | 'danger' | 'inverted';
|
|
5
10
|
export interface ButtonProps {
|
|
6
11
|
/**
|
|
7
12
|
* Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
|
|
@@ -21,9 +26,10 @@ export interface ButtonProps {
|
|
|
21
26
|
icon?: IconName | ReactNode;
|
|
22
27
|
/**
|
|
23
28
|
* Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
|
|
24
|
-
*
|
|
29
|
+
*
|
|
30
|
+
* ⚠️ 'white' intent is deprecated and will be removed in the next major release. Please use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
|
|
25
31
|
*/
|
|
26
|
-
intent?:
|
|
32
|
+
intent?: ValidIntent | DeprecatedIntent;
|
|
27
33
|
/**
|
|
28
34
|
* Loading state of button.
|
|
29
35
|
*/
|
|
@@ -50,8 +56,6 @@ export interface ButtonProps {
|
|
|
50
56
|
text?: ReactChild;
|
|
51
57
|
/**
|
|
52
58
|
* Button type.
|
|
53
|
-
*
|
|
54
|
-
* variant['filled-secondary' | 'filled-danger' | 'outlined-secondary' | 'outlined-danger'] - @deprecated
|
|
55
59
|
*/
|
|
56
60
|
variant?: 'filled' | 'outlined' | 'text' | 'inline-text' | 'filled-medium' | 'outlined-medium' | 'text-medium' | 'filled-compact' | 'outlined-compact' | 'text-compact' | 'inline-text-compact';
|
|
57
61
|
}
|
|
@@ -2,6 +2,11 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { ViewProps } from 'react-native';
|
|
4
4
|
import type { IconName } from '../Icon';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
|
|
7
|
+
*/
|
|
8
|
+
type DeprecatedVariant = 'outlined' | 'filled';
|
|
9
|
+
type ValidVariant = 'selection' | 'filter' | 'compact' | 'compact-outlined';
|
|
5
10
|
export interface ChipProps extends ViewProps {
|
|
6
11
|
/**
|
|
7
12
|
* The label of the chip.
|
|
@@ -10,9 +15,9 @@ export interface ChipProps extends ViewProps {
|
|
|
10
15
|
/**
|
|
11
16
|
* Variant of the chip.
|
|
12
17
|
*
|
|
13
|
-
*
|
|
18
|
+
* ⚠️ 'outlined' | 'filled' variants are deprecated and will be removed in the next major release. Please use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
|
|
14
19
|
*/
|
|
15
|
-
variant?:
|
|
20
|
+
variant?: ValidVariant | DeprecatedVariant;
|
|
16
21
|
/**
|
|
17
22
|
* Whether the chip is selected.
|
|
18
23
|
*/
|
|
@@ -29,6 +34,10 @@ export interface ChipProps extends ViewProps {
|
|
|
29
34
|
* Whether to show the selected icon when using outlined variant.
|
|
30
35
|
*/
|
|
31
36
|
showSelectedIcon?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* If true, indicates that the Chip is accessible to screen readers.
|
|
39
|
+
*/
|
|
40
|
+
accessible?: boolean;
|
|
32
41
|
}
|
|
33
|
-
declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
42
|
+
declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, accessible, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
34
43
|
export default Chip;
|
|
@@ -49,6 +49,10 @@ interface PinInputProps {
|
|
|
49
49
|
* The autofill type of the input.
|
|
50
50
|
*/
|
|
51
51
|
autoComplete?: ComponentProps<typeof TextInput>['autoComplete'];
|
|
52
|
+
/**
|
|
53
|
+
* If true, indicates that the PinInput is accessible to screen readers.
|
|
54
|
+
*/
|
|
55
|
+
accessible?: boolean;
|
|
52
56
|
}
|
|
53
57
|
export declare function getState({ disabled, error, }: {
|
|
54
58
|
disabled?: boolean;
|
|
@@ -27,10 +27,14 @@ export interface RadioGroupProps<T> {
|
|
|
27
27
|
* Testing id of the component.
|
|
28
28
|
*/
|
|
29
29
|
testID?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Overrides the text that's read by the screen reader when the user interacts with the element.
|
|
32
|
+
*/
|
|
33
|
+
accessible?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Idle background color of the Radio.
|
|
32
36
|
*/
|
|
33
37
|
inactiveIntent?: 'light' | 'dark';
|
|
34
38
|
}
|
|
35
|
-
declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, inactiveIntent, }: RadioGroupProps<T>) => ReactElement;
|
|
39
|
+
declare const RadioGroup: <T>({ value, onPress, options, keyExtractor, style, testID, accessible, inactiveIntent, }: RadioGroupProps<T>) => ReactElement;
|
|
36
40
|
export default RadioGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const CompoundRadio: {
|
|
2
|
-
readonly Group: <T>({ value, onPress, options, keyExtractor, style, testID, inactiveIntent, }: import("./RadioGroup").RadioGroupProps<T>) => import("react").ReactElement;
|
|
2
|
+
readonly Group: <T>({ value, onPress, options, keyExtractor, style, testID, accessible, inactiveIntent, }: import("./RadioGroup").RadioGroupProps<T>) => import("react").ReactElement;
|
|
3
3
|
};
|
|
4
4
|
export default CompoundRadio;
|
|
@@ -58,6 +58,10 @@ interface SearchOneLineProps extends NativeTextInputProps {
|
|
|
58
58
|
* Clearable input.
|
|
59
59
|
*/
|
|
60
60
|
clearable?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* If true, indicates that the SearchOneLine is accessible to screen readers.
|
|
63
|
+
*/
|
|
64
|
+
accessible?: boolean;
|
|
61
65
|
}
|
|
62
66
|
export declare const getState: ({ disabled, editable, isEmptyValue, }: {
|
|
63
67
|
disabled?: boolean;
|
|
@@ -31,6 +31,10 @@ interface SearchTwoLineProps {
|
|
|
31
31
|
* @default 'basic'
|
|
32
32
|
*/
|
|
33
33
|
variant?: 'basic' | 'reversed';
|
|
34
|
+
/**
|
|
35
|
+
* If true, indicates that the SearchTwoLine is accessible to screen readers.
|
|
36
|
+
*/
|
|
37
|
+
accessible?: boolean;
|
|
34
38
|
}
|
|
35
39
|
declare const SearchTwoLine: (props: SearchTwoLineProps) => React.JSX.Element;
|
|
36
40
|
export default SearchTwoLine;
|
|
@@ -44,7 +44,7 @@ declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<
|
|
|
44
44
|
} & {
|
|
45
45
|
themeState: State;
|
|
46
46
|
}, {}, {}>;
|
|
47
|
-
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../..").CaptionProps) => import("react").JSX.Element;
|
|
47
|
+
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, fontStyle, ...nativeProps }: import("../..").CaptionProps) => import("react").JSX.Element;
|
|
48
48
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
49
49
|
theme?: import("@emotion/react").Theme;
|
|
50
50
|
as?: React.ElementType;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToolbarItemProps } from './ToolbarItem';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use 'right' instead.
|
|
5
|
+
*/
|
|
6
|
+
type DeprecatedAlign = 'left' | 'center';
|
|
7
|
+
type ValidAlign = 'right';
|
|
3
8
|
export interface ToolbarGroupProps {
|
|
4
9
|
/**
|
|
5
10
|
* List of action items in the toolbar group.
|
|
@@ -7,11 +12,14 @@ export interface ToolbarGroupProps {
|
|
|
7
12
|
items?: ToolbarItemProps[];
|
|
8
13
|
/**
|
|
9
14
|
* Alignment of the items in the group.
|
|
15
|
+
*
|
|
16
|
+
* ⚠️ 'left' | 'center' alignments are deprecated and will be removed in the next major release. Please use 'right' instead.
|
|
10
17
|
*/
|
|
18
|
+
align: ValidAlign | DeprecatedAlign;
|
|
11
19
|
/**
|
|
12
|
-
*
|
|
20
|
+
* If true, indicates that the ToolbarGroup is accessible to screen readers.
|
|
13
21
|
*/
|
|
14
|
-
|
|
22
|
+
accessible?: boolean;
|
|
15
23
|
}
|
|
16
|
-
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
|
|
24
|
+
declare const ToolbarGroup: ({ align, items, accessible, }: ToolbarGroupProps) => React.JSX.Element;
|
|
17
25
|
export default ToolbarGroup;
|
|
@@ -8,7 +8,7 @@ export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: (({ children, ...rest }: ToolbarProps) => React.JSX.Element) & {
|
|
11
|
-
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
|
|
11
|
+
Group: ({ align, items, accessible, }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
|
|
12
12
|
Message: React.ForwardRefExoticComponent<Omit<import("./ToolbarMessage").ToolbarMessageProps, "ref"> & React.RefAttributes<import("./ToolbarMessage").ToolbarMessageHandles>>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -8,6 +8,7 @@ declare const StyledBody: import("@emotion/native").StyledComponent<import("reac
|
|
|
8
8
|
themeIntent: TypographyIntent;
|
|
9
9
|
themeTypeface: "neutral" | "playful";
|
|
10
10
|
themeVariant: ThemeVariant;
|
|
11
|
+
themeIsItalic?: boolean;
|
|
11
12
|
}, {}, {
|
|
12
13
|
ref?: import("react").Ref<Text> | undefined;
|
|
13
14
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
4
|
import type { TypographyIntent } from '../types';
|
|
5
5
|
export interface BodyProps extends NativeTextProps {
|
|
@@ -29,6 +29,10 @@ export interface BodyProps extends NativeTextProps {
|
|
|
29
29
|
* size variant of the text.
|
|
30
30
|
* */
|
|
31
31
|
variant?: 'regular' | 'regular-bold' | 'small' | 'small-bold';
|
|
32
|
+
/**
|
|
33
|
+
* Font style to apply to the text.
|
|
34
|
+
*/
|
|
35
|
+
fontStyle?: 'normal' | 'italic';
|
|
32
36
|
}
|
|
33
|
-
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => React.JSX.Element;
|
|
37
|
+
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, fontStyle, ...nativeProps }: BodyProps) => React.JSX.Element;
|
|
34
38
|
export default Body;
|
|
@@ -23,6 +23,10 @@ export interface CaptionProps extends NativeTextProps {
|
|
|
23
23
|
* Testing id of the component.
|
|
24
24
|
*/
|
|
25
25
|
testID?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Font style to apply to the text.
|
|
28
|
+
*/
|
|
29
|
+
fontStyle?: 'normal' | 'italic';
|
|
26
30
|
}
|
|
27
|
-
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => React.JSX.Element;
|
|
31
|
+
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, fontStyle, ...nativeProps }: CaptionProps) => React.JSX.Element;
|
|
28
32
|
export default Caption;
|
|
@@ -19,6 +19,10 @@ export interface LabelProps extends NativeTextProps {
|
|
|
19
19
|
* Testing id of the component.
|
|
20
20
|
*/
|
|
21
21
|
testID?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Font style to apply to the text.
|
|
24
|
+
*/
|
|
25
|
+
fontStyle?: 'normal' | 'italic';
|
|
22
26
|
}
|
|
23
|
-
declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => React.JSX.Element;
|
|
27
|
+
declare const Label: ({ children, intent, allowFontScaling, fontStyle, ...nativeProps }: LabelProps) => React.JSX.Element;
|
|
24
28
|
export default Label;
|
|
@@ -8,6 +8,7 @@ declare const StyledTitle: import("@emotion/native").StyledComponent<import("rea
|
|
|
8
8
|
themeIntent: TypographyIntent;
|
|
9
9
|
themeLevel: ThemeLevel;
|
|
10
10
|
themeTypeface: "neutral" | "playful";
|
|
11
|
+
themeIsItalic?: boolean;
|
|
11
12
|
}, {}, {
|
|
12
13
|
ref?: import("react").Ref<Text> | undefined;
|
|
13
14
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
4
4
|
import type { TypographyIntent } from '../types';
|
|
5
5
|
export interface TitleProps extends NativeTextProps {
|
|
@@ -29,6 +29,10 @@ export interface TitleProps extends NativeTextProps {
|
|
|
29
29
|
* The level of Title including h1, h2, h3, h4, h5 and h6.
|
|
30
30
|
*/
|
|
31
31
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
32
|
+
/**
|
|
33
|
+
* Font style to apply to the text.
|
|
34
|
+
*/
|
|
35
|
+
fontStyle?: 'normal' | 'italic';
|
|
32
36
|
}
|
|
33
|
-
declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => React.JSX.Element;
|
|
37
|
+
declare const Title: ({ children, intent, allowFontScaling, level, typeface, fontStyle, ...nativeProps }: TitleProps) => React.JSX.Element;
|
|
34
38
|
export default Title;
|
|
@@ -136,29 +136,31 @@ declare const getTypographyTheme: (theme: GlobalTheme) => {
|
|
|
136
136
|
titles: {
|
|
137
137
|
neutral: {
|
|
138
138
|
h1: string;
|
|
139
|
+
h1Italic: string;
|
|
139
140
|
h2: string;
|
|
141
|
+
h2Italic: string;
|
|
140
142
|
h3: string;
|
|
143
|
+
h3Italic: string;
|
|
141
144
|
h4: string;
|
|
145
|
+
h4Italic: string;
|
|
142
146
|
h5: string;
|
|
147
|
+
h5Italic: string;
|
|
143
148
|
h6: string;
|
|
149
|
+
h6Italic: string;
|
|
144
150
|
};
|
|
145
151
|
playful: {
|
|
146
152
|
h1: string;
|
|
153
|
+
h1Italic: string;
|
|
147
154
|
h2: string;
|
|
155
|
+
h2Italic: string;
|
|
148
156
|
h3: string;
|
|
157
|
+
h3Italic: string;
|
|
149
158
|
h4: string;
|
|
159
|
+
h4Italic: string;
|
|
150
160
|
h5: string;
|
|
161
|
+
h5Italic: string;
|
|
151
162
|
h6: string;
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
body: {
|
|
155
|
-
neutral: {
|
|
156
|
-
semiBold: string;
|
|
157
|
-
regular: string;
|
|
158
|
-
};
|
|
159
|
-
playful: {
|
|
160
|
-
semiBold: string;
|
|
161
|
-
regular: string;
|
|
163
|
+
h6Italic: string;
|
|
162
164
|
};
|
|
163
165
|
};
|
|
164
166
|
};
|