@hero-design/rn 8.110.0 → 8.110.1
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 +6 -0
- package/es/index.js +27 -13
- package/lib/index.js +27 -13
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +40 -24
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +60 -36
- package/src/components/Accordion/index.tsx +6 -1
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +121 -97
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +18 -18
- package/src/components/Chip/index.tsx +6 -0
- 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/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +13 -9
- package/src/components/PinInput/index.tsx +6 -1
- package/src/components/Radio/RadioGroup.tsx +6 -1
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +84 -48
- package/src/components/Search/SearchOneLine.tsx +6 -0
- package/src/components/Search/SearchTwoLine.tsx +6 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +6 -3
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -6
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +210 -138
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +98 -62
- package/src/components/Toolbar/ToolbarGroup.tsx +10 -2
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +34 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
- package/stats/8.110.1/rn-stats.html +4844 -0
- package/types/components/Accordion/index.d.ts +5 -1
- package/types/components/Chip/index.d.ts +5 -1
- 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/Toolbar/ToolbarGroup.d.ts +5 -1
- package/types/components/Toolbar/index.d.ts +1 -1
|
@@ -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;
|
|
@@ -29,6 +29,10 @@ export interface ChipProps extends ViewProps {
|
|
|
29
29
|
* Whether to show the selected icon when using outlined variant.
|
|
30
30
|
*/
|
|
31
31
|
showSelectedIcon?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, indicates that the Chip is accessible to screen readers.
|
|
34
|
+
*/
|
|
35
|
+
accessible?: boolean;
|
|
32
36
|
}
|
|
33
|
-
declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
37
|
+
declare const Chip: ({ label, variant, selected, icon, onPress, showSelectedIcon, accessible, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
34
38
|
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;
|
|
@@ -12,6 +12,10 @@ export interface ToolbarGroupProps {
|
|
|
12
12
|
* align['left' | 'center'] - @deprecated Use align['right'] instead.
|
|
13
13
|
*/
|
|
14
14
|
align: 'left' | 'center' | 'right';
|
|
15
|
+
/**
|
|
16
|
+
* If true, indicates that the ToolbarGroup is accessible to screen readers.
|
|
17
|
+
*/
|
|
18
|
+
accessible?: boolean;
|
|
15
19
|
}
|
|
16
|
-
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
|
|
20
|
+
declare const ToolbarGroup: ({ align, items, accessible, }: ToolbarGroupProps) => React.JSX.Element;
|
|
17
21
|
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;
|