@worldresources/wri-design-systems 2.200.0 → 2.201.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
@@ -5,6 +5,7 @@ import * as React$1 from 'react';
5
5
  import React__default, { ReactNode, ReactElement, Ref } from 'react';
6
6
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
7
7
  import { Placement } from '@floating-ui/react';
8
+ import { MaybeElement } from '@zag-js/types';
8
9
 
9
10
  type ColorVariant = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'accessible';
10
11
  type FontSizeToken = 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 | 1100;
@@ -1485,9 +1486,15 @@ type ModalProps = {
1485
1486
  height?: SizeValue;
1486
1487
  maxHeight?: SizeValue;
1487
1488
  labels?: Partial<ModalLabels>;
1489
+ lazyMount?: boolean;
1490
+ unmountOnExit?: boolean;
1491
+ restoreFocus?: boolean;
1492
+ modal?: boolean;
1493
+ initialFocusEl?: () => MaybeElement;
1494
+ finalFocusEl?: () => MaybeElement;
1488
1495
  };
1489
1496
 
1490
- declare const Modal: ({ header, content, footer, size, width, height, maxHeight, draggable, blocking, open, onClose, labels, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
1497
+ declare const Modal: ({ header, content, footer, size, width, height, maxHeight, draggable, blocking, open, onClose, labels, lazyMount, unmountOnExit, restoreFocus, modal, initialFocusEl, finalFocusEl, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
1491
1498
 
1492
1499
  type PanelProps = {
1493
1500
  header?: React.ReactNode;