@worldresources/wri-design-systems 2.190.0 → 2.191.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
@@ -909,6 +909,26 @@ type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'de
909
909
 
910
910
  declare const TextInput: ({ label, caption, placeholder, errorMessage, required, disabled, size, noMarginBottom, defaultValue, onChange, labels, ...rest }: TextInputProps) => _emotion_react_jsx_runtime.JSX.Element;
911
911
 
912
+ type ComboboxProps = {
913
+ initialItems?: {
914
+ label: string;
915
+ value: string;
916
+ }[];
917
+ label?: string;
918
+ required?: boolean;
919
+ caption?: string;
920
+ errorMessage?: string;
921
+ size?: 'small' | 'default';
922
+ disabled?: boolean;
923
+ placeholder?: string;
924
+ labels?: Partial<TextInputLabels>;
925
+ noMarginBottom?: boolean;
926
+ multiple?: boolean;
927
+ showSelectedItems?: boolean;
928
+ };
929
+
930
+ declare const Combobox: ({ label, required, caption, errorMessage, size, disabled, placeholder, labels, noMarginBottom, initialItems, multiple, showSelectedItems, }: ComboboxProps) => _emotion_react_jsx_runtime.JSX.Element;
931
+
912
932
  type TagProps = Omit<Tag$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'children'> & {
913
933
  label: string;
914
934
  variant: 'info-white' | 'info-grey' | 'success' | 'warning' | 'error';
@@ -1242,12 +1262,14 @@ type BreadcrumbProps = {
1242
1262
 
1243
1263
  declare const Breadcrumb: ({ links, separator, maxItems, linkRouter, size, }: BreadcrumbProps) => _emotion_react_jsx_runtime.JSX.Element;
1244
1264
 
1265
+ type SizeValue = number | string;
1266
+
1245
1267
  type FooterProps = {
1246
1268
  children: React.ReactNode;
1247
1269
  label?: string;
1248
1270
  fixed?: boolean;
1249
1271
  filled?: boolean;
1250
- maxWidth?: number;
1272
+ maxWidth?: SizeValue;
1251
1273
  additionalLogos?: React.ReactNode[];
1252
1274
  };
1253
1275
 
@@ -1294,7 +1316,7 @@ type NavbarProps = {
1294
1316
  size?: ButtonProps['size'];
1295
1317
  onClick?: ButtonProps['onClick'];
1296
1318
  }[];
1297
- maxWidth?: number;
1319
+ maxWidth?: SizeValue;
1298
1320
  fixed?: boolean;
1299
1321
  onNavbarHeightChange?: (height: number) => void;
1300
1322
  backgroundColor?: string;
@@ -1356,7 +1378,7 @@ type SearchProps = Omit<InputProps, 'variant' | 'colorPalette' | 'defaultChecked
1356
1378
  disabled?: boolean;
1357
1379
  size?: 'small' | 'default';
1358
1380
  options: ListItemProps[];
1359
- resultsMaxHeight?: string;
1381
+ resultsMaxHeight?: SizeValue;
1360
1382
  isLoading?: boolean;
1361
1383
  displayResults?: 'none' | 'text' | 'list' | 'custom';
1362
1384
  onSelect?: (selectedOption: ListItemProps) => void;
@@ -1468,4 +1490,4 @@ declare const Toast: React__default.FC<ToastComponentProps>;
1468
1490
 
1469
1491
  declare const showToast: (props: ToastProps) => void;
1470
1492
 
1471
- export { AlertBanner, AnalysisWidget, type AnalysisWidgetLabels, Avatar, Badge, BaseMap, type BaseMapLabels, Breadcrumb, Button, type ButtonLabels, Checkbox, CheckboxList, type CheckboxListLabels, CheckboxOptionCard, CloseButton, type CloseButtonLabels, ClusterPoint, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, Footer, FormContainer, IconButton, InlineMessage, type InlineMessageLabels, InputWithUnits, ItemCount, type ItemCountLabels, LayerGroup, LayerGroupContainer, type LayerGroupLabels, LayerItem, LayerParameters, LegendItem, type LegendItemLabels, List, MapControlsToolbar, type MapControlsToolbarLabels, MapMarker, MapMarkers, MapPopUp, type MapPopUpLabels, Menu, MobileTabBar, Modal, MultiActionButton, Navbar, type NavbarLabels, NavigationRail, type NavigationRailLabels, type OpacityControlLabels, OptionCard, Pagination, type PaginationLabels, Panel, Password, type PasswordLabels, ProgressBar, QualitativeAttribute, type QualitativeAttributeLabels, Radio, RadioGroup, RadioList, type RadioListLabels, SSOButtons, ScaleBar, Search, type SearchLabels, Select, type SelectLabels, Sheet, SimpleMapPin, Slider, SliderInput, StepProgressIndicator, type StepProgressIndicatorLabels, Switch, TabBar, Table, TableCell, type TableLabels, TableRow, Tag, TextInput, type TextInputLabels, Textarea, type TextareaLabels, Toast, type ToastLabels, Toolbar, type ToolbarLabels, Tooltip, designSystemStyles, designSystemStylesForTailwind, getThemedColor, showToast };
1493
+ export { AlertBanner, AnalysisWidget, type AnalysisWidgetLabels, Avatar, Badge, BaseMap, type BaseMapLabels, Breadcrumb, Button, type ButtonLabels, Checkbox, CheckboxList, type CheckboxListLabels, CheckboxOptionCard, CloseButton, type CloseButtonLabels, ClusterPoint, Combobox, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, Footer, FormContainer, IconButton, InlineMessage, type InlineMessageLabels, InputWithUnits, ItemCount, type ItemCountLabels, LayerGroup, LayerGroupContainer, type LayerGroupLabels, LayerItem, LayerParameters, LegendItem, type LegendItemLabels, List, MapControlsToolbar, type MapControlsToolbarLabels, MapMarker, MapMarkers, MapPopUp, type MapPopUpLabels, Menu, MobileTabBar, Modal, MultiActionButton, Navbar, type NavbarLabels, NavigationRail, type NavigationRailLabels, type OpacityControlLabels, OptionCard, Pagination, type PaginationLabels, Panel, Password, type PasswordLabels, ProgressBar, QualitativeAttribute, type QualitativeAttributeLabels, Radio, RadioGroup, RadioList, type RadioListLabels, SSOButtons, ScaleBar, Search, type SearchLabels, Select, type SelectLabels, Sheet, SimpleMapPin, Slider, SliderInput, StepProgressIndicator, type StepProgressIndicatorLabels, Switch, TabBar, Table, TableCell, type TableLabels, TableRow, Tag, TextInput, type TextInputLabels, Textarea, type TextareaLabels, Toast, type ToastLabels, Toolbar, type ToolbarLabels, Tooltip, designSystemStyles, designSystemStylesForTailwind, getThemedColor, showToast };