@evlop/commons 1.0.245 → 1.0.246

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,10 @@ export interface AppModal {
7
7
  props: any;
8
8
  closeable: boolean;
9
9
  zIndex?: number;
10
+ /**
11
+ * @description: Only used for mobile apps.
12
+ */
13
+ presentationStyle?: 'pageSheet' | 'formSheet' | 'fullScreen' | 'overFullScreen' | 'bottomSheet';
10
14
  }
11
15
  export declare const showModal: (options: Partial<AppModal>) => {
12
16
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAkBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAoBC"}
1
+ {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa,CAAC;CACnG;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAmBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAoBC"}
@@ -7,7 +7,7 @@ exports.UPDATE_MODAL = 'modal/update';
7
7
  exports.CLOSE_MODAL = 'modal/close';
8
8
  // export const showModal = (component, props = {})=>({
9
9
  const showModal = (options) => {
10
- const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true, zIndex = 0 } = options;
10
+ const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true, zIndex = 0, presentationStyle = 'bottomSheet' } = options;
11
11
  if (!component) {
12
12
  throw new Error('Modal component is required');
13
13
  }
@@ -17,6 +17,7 @@ const showModal = (options) => {
17
17
  props,
18
18
  closeable,
19
19
  zIndex,
20
+ presentationStyle,
20
21
  };
21
22
  return {
22
23
  type: exports.SHOW_MODAL,
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":";;;AAAA,mCAAgD;AAEnC,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,WAAW,GAAG,aAAa,CAAC;AAUzC,uDAAuD;AAChD,MAAM,SAAS,GAAG,CAAC,OAA0B,EAAC,EAAE;IACnD,MAAM,EAAC,EAAE,GAAG,eAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAA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op/commons",
3
- "version": "1.0.245",
3
+ "version": "1.0.246",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {