@worldresources/wri-design-systems 2.141.1 → 2.142.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
@@ -115,6 +115,20 @@ type MultiActionButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalet
115
115
 
116
116
  declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, disabled: isDisabledProp, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
117
117
 
118
+ type TooltipProps = {
119
+ children: React.ReactNode;
120
+ content: React.ReactNode;
121
+ showArrow?: boolean;
122
+ disabled?: boolean;
123
+ position?: 'top' | 'right' | 'bottom' | 'left';
124
+ variant?: 'pill' | 'text';
125
+ portalRef?: React.RefObject<HTMLElement | null>;
126
+ openDelay?: number;
127
+ closeDelay?: number;
128
+ };
129
+
130
+ declare const Tooltip: ({ children, content, showArrow, disabled, position, variant, portalRef, openDelay, closeDelay, }: TooltipProps) => string | number | boolean | Iterable<React$1.ReactNode> | _emotion_react_jsx_runtime.JSX.Element | null | undefined;
131
+
118
132
  type CheckboxProps = Omit<Checkbox$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'icon' | 'iconColor' | 'iconSize' | 'spacing' | 'invalid'> & {
119
133
  name?: string;
120
134
  value?: string;
@@ -773,4 +787,4 @@ type ToastProps = {
773
787
 
774
788
  declare const showToast: (props: ToastProps) => void;
775
789
 
776
- export { Badge, BaseMap, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, ExtendableCard, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerParameters, LegendItem, List, MapControl, MapControls, Menu, MobileTabBar, Modal, MultiActionButton, Navbar, NavigationRail, OptionCard, Pagination, Panel, Password, ProgressBar, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Select, Sheet, Slider, SliderInput, StepProgressIndicator, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };
790
+ export { Badge, BaseMap, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, ExtendableCard, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerParameters, LegendItem, List, MapControl, MapControls, Menu, MobileTabBar, Modal, MultiActionButton, Navbar, NavigationRail, OptionCard, Pagination, Panel, Password, ProgressBar, QualitativeAttribute, Radio, RadioGroup, RadioList, SSOButtons, ScaleBar, Select, Sheet, Slider, SliderInput, StepProgressIndicator, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, Tooltip, designSystemStyles, getThemedColor, showToast };