@worldresources/wri-design-systems 2.139.0 → 2.141.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
@@ -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
 
@@ -560,6 +560,14 @@ declare const Table: ({ columns, data, renderRow, striped, stickyHeader, paginat
560
560
  declare const TableRow: React__default.ForwardRefExoticComponent<Table$1.RowProps & React__default.RefAttributes<HTMLTableRowElement>>;
561
561
  declare const TableCell: React__default.ForwardRefExoticComponent<Table$1.CellProps & React__default.RefAttributes<HTMLTableCellElement>>;
562
562
 
563
+ interface ExtendableCardProps {
564
+ children: React__default.ReactNode;
565
+ header: React__default.ReactNode;
566
+ footer?: React__default.ReactNode;
567
+ }
568
+
569
+ declare const ExtendableCard: ({ children, header, footer }: ExtendableCardProps) => _emotion_react_jsx_runtime.JSX.Element;
570
+
563
571
  type ModalProps = {
564
572
  header: React.ReactNode;
565
573
  content: React.ReactNode;
@@ -623,6 +631,23 @@ type FooterProps = {
623
631
 
624
632
  declare const Footer: ({ children, label, fixed, filled, maxWidth, }: FooterProps) => _emotion_react_jsx_runtime.JSX.Element;
625
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?: (tabLabel: string) => void;
647
+ };
648
+
649
+ declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
650
+
626
651
  type NavbarNavigationItemsProps = {
627
652
  label: string;
628
653
  link?: string;
@@ -679,6 +704,7 @@ type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
679
704
  value: string;
680
705
  icon?: React.ReactNode;
681
706
  disabled?: boolean;
707
+ ref?: Ref<HTMLButtonElement>;
682
708
  };
683
709
  type TabBarProps = {
684
710
  variant?: 'panel' | 'view';
@@ -747,4 +773,4 @@ type ToastProps = {
747
773
 
748
774
  declare const showToast: (props: ToastProps) => void;
749
775
 
750
- export { Badge, BaseMap, Breadcrumb, Button, Checkbox, CheckboxList, CheckboxOptionCard, CloseButton, 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 };