@hero-design/rn 8.78.0 → 8.79.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 +2 -2
- package/CHANGELOG.md +12 -0
- package/es/index.js +28 -16
- package/lib/index.js +28 -16
- package/package.json +1 -1
- package/src/components/BottomSheet/index.tsx +14 -15
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1729 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +35 -0
- package/src/components/Select/MultiSelect/index.tsx +5 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1617 -0
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +33 -0
- package/src/components/Select/SingleSelect/index.tsx +5 -1
- package/src/components/Select/types.ts +8 -0
- package/stats/8.78.1/rn-stats.html +4842 -0
- package/stats/8.79.0/rn-stats.html +4844 -0
- package/types/components/BottomSheet/index.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { KeyboardAvoidingViewProps } from 'react-native';
|
|
4
|
-
interface BottomSheetProps {
|
|
4
|
+
export interface BottomSheetProps {
|
|
5
5
|
/**
|
|
6
6
|
* Bottom sheet open state.
|
|
7
7
|
*/
|
|
@@ -26,5 +26,5 @@ export interface MultiSelectProps<V, T extends OptionType<V> = OptionType<V>> ex
|
|
|
26
26
|
*/
|
|
27
27
|
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
28
28
|
}
|
|
29
|
-
declare function MultiSelect<V, T extends OptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, }: MultiSelectProps<V, T>): React.JSX.Element;
|
|
29
|
+
declare function MultiSelect<V, T extends OptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: MultiSelectProps<V, T>): React.JSX.Element;
|
|
30
30
|
export default MultiSelect;
|
|
@@ -19,5 +19,5 @@ export interface SingleSelectProps<V, T extends OptionType<V> = OptionType<V>> e
|
|
|
19
19
|
*/
|
|
20
20
|
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
21
21
|
}
|
|
22
|
-
declare const SingleSelect: <V, T extends OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, }: SingleSelectProps<V, T>) => React.JSX.Element;
|
|
22
|
+
declare const SingleSelect: <V, T extends OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: SingleSelectProps<V, T>) => React.JSX.Element;
|
|
23
23
|
export default SingleSelect;
|
|
@@ -2,7 +2,7 @@ import MultiSelect from './MultiSelect';
|
|
|
2
2
|
import type { MultiSelectProps } from './MultiSelect';
|
|
3
3
|
import type { SingleSelectProps } from './SingleSelect';
|
|
4
4
|
export type { MultiSelectProps, SingleSelectProps };
|
|
5
|
-
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, }: SingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
5
|
+
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: SingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
6
6
|
Multi: typeof MultiSelect;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { BottomSheetProps } from '../BottomSheet';
|
|
3
4
|
import type { TextInputProps } from '../TextInput';
|
|
4
5
|
export declare type OptionType<V> = {
|
|
5
6
|
value: V;
|
|
@@ -73,4 +74,11 @@ export interface SelectProps<V, T extends OptionType<V>> extends Pick<TextInputP
|
|
|
73
74
|
* Testing id of the component.
|
|
74
75
|
*/
|
|
75
76
|
testID?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Config for the bottom sheet.
|
|
79
|
+
*/
|
|
80
|
+
bottomSheetConfig?: {
|
|
81
|
+
variant?: BottomSheetProps['variant'];
|
|
82
|
+
header?: BottomSheetProps['header'];
|
|
83
|
+
};
|
|
76
84
|
}
|