@worldresources/wri-design-systems 2.141.0 → 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;
@@ -643,7 +657,7 @@ type MobileTabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
643
657
  type MobileTabBarProps = {
644
658
  defaultValue?: string;
645
659
  tabs: MobileTabBarItemProps[];
646
- onTabClick?: (tabLabel: string) => void;
660
+ onTabClick?: (tabValue: string) => void;
647
661
  };
648
662
 
649
663
  declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -710,7 +724,7 @@ type TabBarProps = {
710
724
  variant?: 'panel' | 'view';
711
725
  defaultValue?: string;
712
726
  tabs: TabBarItemProps[];
713
- onTabClick?: (tabLabel: string) => void;
727
+ onTabClick?: (tabValue: string) => void;
714
728
  };
715
729
 
716
730
  declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -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 };