@dloizides/ui-layout 1.37.0 → 1.38.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.mts CHANGED
@@ -140,9 +140,11 @@ interface PageFrameProps {
140
140
  children: React.ReactNode;
141
141
  pageSize?: PageSize;
142
142
  testID?: string;
143
+ /** When true, a press or Enter on the preview opens the page at full size in an overlay. */
144
+ enlargeable?: boolean;
143
145
  }
144
146
  /** Lays children out at a fixed page size and scales the page down to the container width, never up. */
145
- declare const PageFrame: ({ children, pageSize, testID, }: PageFrameProps) => React.ReactElement;
147
+ declare const PageFrame: ({ children, pageSize, testID, enlargeable, }: PageFrameProps) => React.ReactElement;
146
148
 
147
149
  /**
148
150
  * SegmentedControl — a single rounded pill *track* holding N mutually-exclusive segments
@@ -437,8 +439,9 @@ declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, s
437
439
  * - `sm` — compact confirmations / short forms.
438
440
  * - `md` (default) — the general dialog.
439
441
  * - `lg` — wide editors.
442
+ * - `xl` — a full document page (an A4 sheet at scale 1).
440
443
  */
441
- type ModalSize = 'sm' | 'md' | 'lg';
444
+ type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
442
445
 
443
446
  /**
444
447
  * Modal — a themed, CENTERED dialog overlay for RN + RN-web.
@@ -925,6 +928,9 @@ declare const LAYOUT_I18N: {
925
928
  readonly closeHeading: "close";
926
929
  /** `Modal`: accessible name + web tooltip of the top-right ✕ close button. */
927
930
  readonly dialogClose: "common.close";
931
+ /** `PageFrame` (`enlargeable`): accessible name + hint of the preview that opens the full-size page. */
932
+ readonly pageEnlarge: "common.pageEnlarge";
933
+ readonly pageEnlargeHint: "common.pageEnlargeHint";
928
934
  /** `ConfirmDialog`: default Confirm button label (overridable via `confirmLabel`) + its hint. */
929
935
  readonly confirm: "common.confirm";
930
936
  readonly confirmHint: "common.confirmHint";
package/dist/index.d.ts CHANGED
@@ -140,9 +140,11 @@ interface PageFrameProps {
140
140
  children: React.ReactNode;
141
141
  pageSize?: PageSize;
142
142
  testID?: string;
143
+ /** When true, a press or Enter on the preview opens the page at full size in an overlay. */
144
+ enlargeable?: boolean;
143
145
  }
144
146
  /** Lays children out at a fixed page size and scales the page down to the container width, never up. */
145
- declare const PageFrame: ({ children, pageSize, testID, }: PageFrameProps) => React.ReactElement;
147
+ declare const PageFrame: ({ children, pageSize, testID, enlargeable, }: PageFrameProps) => React.ReactElement;
146
148
 
147
149
  /**
148
150
  * SegmentedControl — a single rounded pill *track* holding N mutually-exclusive segments
@@ -437,8 +439,9 @@ declare const ModalShell: ({ visible, onCancel, title, children, contentStyle, s
437
439
  * - `sm` — compact confirmations / short forms.
438
440
  * - `md` (default) — the general dialog.
439
441
  * - `lg` — wide editors.
442
+ * - `xl` — a full document page (an A4 sheet at scale 1).
440
443
  */
441
- type ModalSize = 'sm' | 'md' | 'lg';
444
+ type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
442
445
 
443
446
  /**
444
447
  * Modal — a themed, CENTERED dialog overlay for RN + RN-web.
@@ -925,6 +928,9 @@ declare const LAYOUT_I18N: {
925
928
  readonly closeHeading: "close";
926
929
  /** `Modal`: accessible name + web tooltip of the top-right ✕ close button. */
927
930
  readonly dialogClose: "common.close";
931
+ /** `PageFrame` (`enlargeable`): accessible name + hint of the preview that opens the full-size page. */
932
+ readonly pageEnlarge: "common.pageEnlarge";
933
+ readonly pageEnlargeHint: "common.pageEnlargeHint";
928
934
  /** `ConfirmDialog`: default Confirm button label (overridable via `confirmLabel`) + its hint. */
929
935
  readonly confirm: "common.confirm";
930
936
  readonly confirmHint: "common.confirmHint";