@worldresources/wri-design-systems 2.135.3 → 2.136.1

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
@@ -508,17 +508,20 @@ type ItemCountProps = {
508
508
 
509
509
  declare const ItemCount: ({ pageSize, currentPage, totalItems, onPageSizeChange, showItemCountText, }: ItemCountProps) => _emotion_react_jsx_runtime.JSX.Element;
510
510
 
511
- interface ListProps {
512
- items: ListEntry[];
513
- }
514
- interface ListEntry {
515
- id?: string | number;
511
+ type ListItemVariant = 'data' | 'navigation';
512
+ interface ListItemProps {
516
513
  label: string;
517
- data?: string;
518
514
  caption?: string;
519
515
  icon?: ReactElement;
520
- variant?: 'data' | 'navigation';
521
- onClick?: () => void;
516
+ value?: string;
517
+ variant?: ListItemVariant;
518
+ isExpanded?: boolean;
519
+ id?: string;
520
+ onItemClick?: () => void;
521
+ ariaLabel?: string;
522
+ }
523
+ interface ListProps {
524
+ items: ListItemProps[];
522
525
  }
523
526
 
524
527
  declare const List: ({ items }: ListProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -557,21 +560,17 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Table$1.RowProps & Rea
557
560
  declare const TableCell: React$1.ForwardRefExoticComponent<Table$1.CellProps & React$1.RefAttributes<HTMLTableCellElement>>;
558
561
 
559
562
  type ModalProps = {
560
- title: string;
563
+ header: React.ReactNode;
561
564
  content: React.ReactNode;
565
+ footer?: React.ReactNode;
562
566
  size?: 'small' | 'medium' | 'large' | 'xlarge';
563
567
  draggable?: boolean;
564
568
  blocking?: boolean;
565
569
  open: boolean;
566
570
  onClose?: () => void;
567
- showCancelButton?: boolean;
568
- cancelLabel?: string;
569
- showActionButton?: boolean;
570
- actionLabel?: string;
571
- onActionClick?: VoidFunction;
572
571
  };
573
572
 
574
- declare const Modal: ({ title, content, size, draggable, blocking, open, onClose, showCancelButton, cancelLabel, showActionButton, actionLabel, onActionClick, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
573
+ declare const Modal: ({ header, content, footer, size, draggable, blocking, open, onClose, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
575
574
 
576
575
  type PanelProps = {
577
576
  header?: React.ReactNode;