@jamadd/react-native-template-ui 0.14.1 → 0.14.2
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { use as reactUse } from 'react';
|
|
4
4
|
import { getWindowDimensionsHeight } from "../style/func.js";
|
|
5
|
-
import { ActionSheetContext, ActionSheetExpandableHeightRatio, actionSheetMaxHeightRatio, AlertContext } from "./const.js";
|
|
5
|
+
import { ActionSheetContext, ActionSheetExpandableHeightRatio, actionSheetMaxHeightRatio, AlertContext, AlertWrapContext } from "./const.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Hook to access the Alert context.
|
|
@@ -18,6 +18,9 @@ import { ActionSheetContext, ActionSheetExpandableHeightRatio, actionSheetMaxHei
|
|
|
18
18
|
export function getAlertContext() {
|
|
19
19
|
return reactUse(AlertContext);
|
|
20
20
|
}
|
|
21
|
+
export function getAlertWrapContext() {
|
|
22
|
+
return reactUse(AlertWrapContext);
|
|
23
|
+
}
|
|
21
24
|
function getActionSheetExpandableHeightByRatio(ratio) {
|
|
22
25
|
return getWindowDimensionsHeight() * ratio;
|
|
23
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["use","reactUse","getWindowDimensionsHeight","ActionSheetContext","ActionSheetExpandableHeightRatio","actionSheetMaxHeightRatio","AlertContext","getAlertContext","getActionSheetExpandableHeightByRatio","ratio","getActionSheetMaxHeight","expandable","Top","getActionSheetHeight","height","Math","min","getActionSheetExpandableHeight","getActionSheetExpandableInitHeight","Middle","getActionSheetDismiss","currentHeight","getActionSheetExpandableDismiss","currentHight","Bottom","getActionSheetSnapHeight","forceDismiss","getActionSheetExpandableSnapHeight","topHeight","middleHeight","bottomHeight","getActionSheetContext"],"sourceRoot":"../../../../src","sources":["utils/overlay/func.ts"],"mappings":";;AAAA,SAASA,GAAG,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,yBAAyB,QAAQ,kBAAe;AACzD,SACEC,kBAAkB,EAClBC,gCAAgC,EAChCC,yBAAyB,EACzBC,YAAY,
|
|
1
|
+
{"version":3,"names":["use","reactUse","getWindowDimensionsHeight","ActionSheetContext","ActionSheetExpandableHeightRatio","actionSheetMaxHeightRatio","AlertContext","AlertWrapContext","getAlertContext","getAlertWrapContext","getActionSheetExpandableHeightByRatio","ratio","getActionSheetMaxHeight","expandable","Top","getActionSheetHeight","height","Math","min","getActionSheetExpandableHeight","getActionSheetExpandableInitHeight","Middle","getActionSheetDismiss","currentHeight","getActionSheetExpandableDismiss","currentHight","Bottom","getActionSheetSnapHeight","forceDismiss","getActionSheetExpandableSnapHeight","topHeight","middleHeight","bottomHeight","getActionSheetContext"],"sourceRoot":"../../../../src","sources":["utils/overlay/func.ts"],"mappings":";;AAAA,SAASA,GAAG,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,yBAAyB,QAAQ,kBAAe;AACzD,SACEC,kBAAkB,EAClBC,gCAAgC,EAChCC,yBAAyB,EACzBC,YAAY,EACZC,gBAAgB,QACX,YAAS;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChC,OAAOP,QAAQ,CAACK,YAAY,CAAC;AAC/B;AAEA,OAAO,SAASG,mBAAmBA,CAAA,EAAG;EACpC,OAAOR,QAAQ,CAACM,gBAAgB,CAAC;AACnC;AAEA,SAASG,qCAAqCA,CAC5CC,KAAuC,EACvC;EACA,OAAOT,yBAAyB,CAAC,CAAC,GAAGS,KAAK;AAC5C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACC,UAAmB,GAAG,KAAK,EAAE;EACnE,OAAOA,UAAU,GACbH,qCAAqC,CACnCN,gCAAgC,CAACU,GACnC,CAAC,GACDZ,yBAAyB,CAAC,CAAC,GAAGG,yB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M4B,SAAS,GAAGpB,qCAAqC,CACrDN,gCAAgC,CAACU,GACnC,CAAC;EACD,MAAMiB,YAAY,GAAGrB,qCAAqC,CACxDN,gCAAgC,CAACiB,MACnC,CAAC;EACD,MAAMW,YAAY,GAAGtB,qCAAqC,CACxDN,gCAAgC,CAACsB,MACnC,CAAC;EACD,IAAID,YAAY,GAAGM,YAAY,EAAE;IAC/B,OAAON,YAAY,GAChBT,MAAM,IACJZ,gCAAgC,CAACU,GAAG,GACnCV,gCAAgC,CAACiB,MAAM,CAAC,GAC1C,CAAC,GACDS,SAAS,GACTC,YAAY;EAClB,CAAC,MAAM,IAAIN,YAAY,GAAGO,YAAY,EAAE;IACtC,OAAOP,YAAY,GAChBT,MAAM,IACJZ,gCAAgC,CAACiB,MAAM,GACtCjB,gCAAgC,CAACsB,MAAM,CAAC,GAC1C,CAAC,GACDK,YAAY,GACZC,YAAY;EAClB,CAAC,MAAM;IACL,OAAOA,YAAY;EACrB;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACtC,OAAOhC,QAAQ,CAACE,kBAAkB,CAAC;AACrC","ignoreList":[]}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export declare function getAlertContext(): Partial<Pick<import("../../index.js").AlertProps, "buttonProps"> & {
|
|
13
13
|
onDismiss: (result?: Partial<import("../../index.js").OverlayDismissAlertResult>) => void;
|
|
14
14
|
}>;
|
|
15
|
+
export declare function getAlertWrapContext(): import("../../index.js").AlertWrapContextVal;
|
|
15
16
|
/**
|
|
16
17
|
* Calculates the maximum height for an action sheet.
|
|
17
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/func.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe;sBAgKM,CAAC;GA9JrC;AAED,wBAAgB,mBAAmB,iDAElC;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,GAAE,OAAe,UAMlE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,UAElD;AAED;;;;;;;;;GASG;AACH,wBAAgB,8BAA8B,WAE7C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kCAAkC,WAIjD;AAgBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,OAAO,UAKtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kCAAkC,CAChD,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,OAAO,UAmCtB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,4DAEpC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamadd/react-native-template-ui",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "React Native Template UI is a collection of UI components designed by JaMa Design & Development.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|