@worldresources/wri-design-systems 2.140.0 → 2.141.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
@@ -1,7 +1,7 @@
1
1
  import * as _chakra_ui_react from '@chakra-ui/react';
2
2
  import { ButtonProps, Checkbox as Checkbox$1, RadioCardRootProps, RadioGroup as RadioGroup$1, Slider as Slider$1, Switch as Switch$1, SelectRootProps, SliderRootProps, TextareaProps as TextareaProps$1, InputProps, Tag as Tag$1, Accordion, Table as Table$1, Tabs } from '@chakra-ui/react';
3
3
  import * as React$1 from 'react';
4
- import React__default, { ReactElement } from 'react';
4
+ import React__default, { ReactElement, Ref } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
7
7
 
@@ -631,6 +631,23 @@ type FooterProps = {
631
631
 
632
632
  declare const Footer: ({ children, label, fixed, filled, maxWidth, }: FooterProps) => _emotion_react_jsx_runtime.JSX.Element;
633
633
 
634
+ type MobileTabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
635
+ label: string;
636
+ value: string;
637
+ icon: React.ReactNode;
638
+ bagdeCount?: number;
639
+ disabled?: boolean;
640
+ ref?: Ref<HTMLButtonElement>;
641
+ hideLabel?: boolean;
642
+ };
643
+ type MobileTabBarProps = {
644
+ defaultValue?: string;
645
+ tabs: MobileTabBarItemProps[];
646
+ onTabClick?: (tabValue: string) => void;
647
+ };
648
+
649
+ declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
650
+
634
651
  type NavbarNavigationItemsProps = {
635
652
  label: string;
636
653
  link?: string;
@@ -687,12 +704,13 @@ type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
687
704
  value: string;
688
705
  icon?: React.ReactNode;
689
706
  disabled?: boolean;
707
+ ref?: Ref<HTMLButtonElement>;
690
708
  };
691
709
  type TabBarProps = {
692
710
  variant?: 'panel' | 'view';
693
711
  defaultValue?: string;
694
712
  tabs: TabBarItemProps[];
695
- onTabClick?: (tabLabel: string) => void;
713
+ onTabClick?: (tabValue: string) => void;
696
714
  };
697
715
 
698
716
  declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
@@ -755,4 +773,4 @@ type ToastProps = {
755
773
 
756
774
  declare const showToast: (props: ToastProps) => void;
757
775
 
758
- 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, 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 };
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 };