@worldresources/wri-design-systems 2.191.0 → 2.191.2

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
@@ -1205,6 +1205,8 @@ interface AnalysisWidgetActionsProps {
1205
1205
 
1206
1206
  declare const AnalysisWidget: ({ children, header, footer, expanded, collapsible, actions, showFooterOnCollapsed, labels, }: AnalysisWidgetProps) => _emotion_react_jsx_runtime.JSX.Element;
1207
1207
 
1208
+ type SizeValue = number | string;
1209
+
1208
1210
  type ModalProps = {
1209
1211
  header: React.ReactNode;
1210
1212
  content: React.ReactNode;
@@ -1214,9 +1216,9 @@ type ModalProps = {
1214
1216
  blocking?: boolean;
1215
1217
  open: boolean;
1216
1218
  onClose?: () => void;
1217
- width?: string;
1218
- height?: string;
1219
- maxHeight?: string;
1219
+ width?: SizeValue;
1220
+ height?: SizeValue;
1221
+ maxHeight?: SizeValue;
1220
1222
  };
1221
1223
 
1222
1224
  declare const Modal: ({ header, content, footer, size, width, height, maxHeight, draggable, blocking, open, onClose, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
@@ -1225,7 +1227,7 @@ type PanelProps = {
1225
1227
  header?: React.ReactNode;
1226
1228
  content: React.ReactNode;
1227
1229
  footer?: React.ReactNode;
1228
- width?: string;
1230
+ width?: SizeValue;
1229
1231
  variant?: 'fixed' | 'floating';
1230
1232
  };
1231
1233
 
@@ -1267,7 +1269,7 @@ type FooterProps = {
1267
1269
  label?: string;
1268
1270
  fixed?: boolean;
1269
1271
  filled?: boolean;
1270
- maxWidth?: number;
1272
+ maxWidth?: SizeValue;
1271
1273
  additionalLogos?: React.ReactNode[];
1272
1274
  };
1273
1275
 
@@ -1314,7 +1316,7 @@ type NavbarProps = {
1314
1316
  size?: ButtonProps['size'];
1315
1317
  onClick?: ButtonProps['onClick'];
1316
1318
  }[];
1317
- maxWidth?: number;
1319
+ maxWidth?: SizeValue;
1318
1320
  fixed?: boolean;
1319
1321
  onNavbarHeightChange?: (height: number) => void;
1320
1322
  backgroundColor?: string;
@@ -1376,7 +1378,7 @@ type SearchProps = Omit<InputProps, 'variant' | 'colorPalette' | 'defaultChecked
1376
1378
  disabled?: boolean;
1377
1379
  size?: 'small' | 'default';
1378
1380
  options: ListItemProps[];
1379
- resultsMaxHeight?: string;
1381
+ resultsMaxHeight?: SizeValue;
1380
1382
  isLoading?: boolean;
1381
1383
  displayResults?: 'none' | 'text' | 'list' | 'custom';
1382
1384
  onSelect?: (selectedOption: ListItemProps) => void;