@movmo_app/react-common 0.18.0 → 0.19.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/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +1296 -1285
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -330,7 +330,9 @@ export declare interface ModalProps {
|
|
|
330
330
|
title: default_2.ReactNode;
|
|
331
331
|
children: default_2.ReactNode;
|
|
332
332
|
footer?: default_2.ReactNode;
|
|
333
|
+
/** Ignored when `placement="sheet"`. */
|
|
333
334
|
maxWidth?: string;
|
|
335
|
+
/** Ignored when `placement="sheet"`. */
|
|
334
336
|
maxWidthPx?: number;
|
|
335
337
|
footerHasBorder?: boolean;
|
|
336
338
|
/** Hides the X and disables backdrop click and Escape: the dialog can't be dismissed. */
|
|
@@ -342,6 +344,13 @@ export declare interface ModalProps {
|
|
|
342
344
|
* and the content supplies its own heading (the MOVMO-685 sign-in dialogs).
|
|
343
345
|
*/
|
|
344
346
|
header?: 'bar' | 'none';
|
|
347
|
+
/**
|
|
348
|
+
* `'center'` (default): a centered dialog. `'sheet'`: a right-hand side sheet
|
|
349
|
+
* from `md` up and a bottom sheet below it; the body scrolls and the footer
|
|
350
|
+
* stays pinned. It shares the open-stack, focus trap and Escape handling, and
|
|
351
|
+
* ignores `maxWidth`/`maxWidthPx`.
|
|
352
|
+
*/
|
|
353
|
+
placement?: 'center' | 'sheet';
|
|
345
354
|
}
|
|
346
355
|
|
|
347
356
|
/** Typed client for every Movmo sign-in and passkey-management call. */
|