@bigbinary/neetoui-rn 3.1.3 → 3.1.4
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.
|
@@ -19,10 +19,11 @@ export type BottomSheetMenuProps = {
|
|
|
19
19
|
header?: ReactNode;
|
|
20
20
|
title?: string;
|
|
21
21
|
cancelLabel?: string;
|
|
22
|
+
maxHeightRatio?: number;
|
|
22
23
|
};
|
|
23
24
|
/**
|
|
24
25
|
* Action-menu sheet (promoted from neeto-commons-rn, 10 call sites).
|
|
25
26
|
* Same props; rows render as the sheet's footer content.
|
|
26
27
|
*/
|
|
27
|
-
export declare const BottomSheetMenu: ({ isVisible, onClose, items, onItemPress, header, title, cancelLabel, }: BottomSheetMenuProps) => import("react").JSX.Element;
|
|
28
|
+
export declare const BottomSheetMenu: ({ isVisible, onClose, items, onItemPress, header, title, cancelLabel, maxHeightRatio, }: BottomSheetMenuProps) => import("react").JSX.Element;
|
|
28
29
|
//# sourceMappingURL=BottomSheetMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheetMenu/BottomSheetMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ3D,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACxD,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAA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AAe,GAAI,yFAS7B,oBAAoB,gCA8DtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ export type BottomSheetMenuProps = {
|
|
|
24
24
|
header?: ReactNode;
|
|
25
25
|
title?: string;
|
|
26
26
|
cancelLabel?: string;
|
|
27
|
+
maxHeightRatio?: number;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -38,6 +39,7 @@ export const BottomSheetMenu = ({
|
|
|
38
39
|
header,
|
|
39
40
|
title,
|
|
40
41
|
cancelLabel = "Cancel",
|
|
42
|
+
maxHeightRatio,
|
|
41
43
|
}: BottomSheetMenuProps) => {
|
|
42
44
|
const { theme } = useUnistyles();
|
|
43
45
|
|
|
@@ -46,6 +48,7 @@ export const BottomSheetMenu = ({
|
|
|
46
48
|
data={[]}
|
|
47
49
|
hide={onClose}
|
|
48
50
|
isVisible={isVisible}
|
|
51
|
+
maxHeightRatio={maxHeightRatio}
|
|
49
52
|
shouldShowItemSeparator={false}
|
|
50
53
|
style={styles.sheetContent}
|
|
51
54
|
onBackdropPress={onClose}
|