@movmo_app/react-common 0.18.0 → 0.20.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.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,19 @@ 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';
354
+ /** `id` of the `role="dialog"` element, for an opener's `aria-controls`. */
355
+ id?: string;
356
+ /** Replaces the body wrapper's default `p-6` (scroll and sheet flex classes are kept). */
357
+ bodyClassName?: string;
358
+ /** Replaces the footer wrapper's default `p-6`. */
359
+ footerClassName?: string;
345
360
  }
346
361
 
347
362
  /** Typed client for every Movmo sign-in and passkey-management call. */