@worldresources/wri-design-systems 2.156.2 → 2.158.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,5 +1,5 @@
1
1
  import * as _chakra_ui_react from '@chakra-ui/react';
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';
2
+ import { ButtonProps as ButtonProps$1, 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
4
  import React__default, { ReactElement, Ref } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -34,13 +34,13 @@ declare const SSOButtons: {
34
34
  Microsoft: ({ ariaLabel, size, onClick, }: GenericSSOButtonsProps) => react_jsx_runtime.JSX.Element;
35
35
  };
36
36
 
37
- type CloseButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
37
+ type CloseButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
38
38
  disabled?: boolean;
39
39
  };
40
40
 
41
41
  declare const CloseButton: ({ disabled, ...rest }: CloseButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
42
42
 
43
- type IconButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
43
+ type IconButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
44
44
  icon: React__default.ReactNode;
45
45
  disabled?: boolean;
46
46
  };
@@ -108,7 +108,7 @@ type MenuProps = {
108
108
 
109
109
  declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
110
110
 
111
- type MultiActionButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children'> & {
111
+ type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
112
112
  variant?: 'primary' | 'secondary';
113
113
  size?: 'default' | 'small';
114
114
  mainActionLabel: string;
@@ -593,7 +593,7 @@ type TableProps = {
593
593
  label: string;
594
594
  sortable?: boolean;
595
595
  }[];
596
- data: any;
596
+ data?: any;
597
597
  renderRow: any;
598
598
  striped?: boolean;
599
599
  stickyHeader?: boolean;
@@ -614,9 +614,10 @@ type TableProps = {
614
614
  onPageSizeChange?: (pageSize: number) => void;
615
615
  onPageChange?: (page: number) => void;
616
616
  onAllItemsSelected?: (checked: boolean) => void;
617
+ loading?: boolean;
617
618
  };
618
619
 
619
- declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, variant, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
620
+ declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, variant, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, loading, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
620
621
 
621
622
  declare const TableRow: React__default.ForwardRefExoticComponent<Table$1.RowProps & React__default.RefAttributes<HTMLTableRowElement>>;
622
623
  declare const TableCell: React__default.ForwardRefExoticComponent<Table$1.CellProps & React__default.RefAttributes<HTMLTableCellElement>>;
@@ -727,6 +728,17 @@ type MobileTabBarProps = {
727
728
 
728
729
  declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, hideLabels, activationMode, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
729
730
 
731
+ type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
732
+ label?: string;
733
+ loading?: boolean;
734
+ variant?: 'primary' | 'secondary' | 'borderless' | 'outline';
735
+ size?: 'default' | 'small';
736
+ disabled?: boolean;
737
+ leftIcon?: React__default.ReactNode;
738
+ rightIcon?: React__default.ReactNode;
739
+ children?: React__default.ReactNode;
740
+ };
741
+
730
742
  type NavbarNavigationItemsProps = {
731
743
  label: string;
732
744
  link?: string;
@@ -742,15 +754,19 @@ type NavbarProps = {
742
754
  navigationSection?: NavbarNavigationItemsProps[];
743
755
  utilitySection?: React.ReactNode[];
744
756
  actionsSection?: {
745
- label: string;
746
- onClick?: () => void;
757
+ ariaLabel: ButtonProps['aria-label'];
758
+ children?: ButtonProps['children'];
759
+ variant?: ButtonProps['variant'];
760
+ size?: ButtonProps['size'];
761
+ onClick?: ButtonProps['onClick'];
747
762
  }[];
748
763
  maxWidth?: number;
749
764
  fixed?: boolean;
750
765
  onNavbarHeightChange?: (height: number) => void;
766
+ backgroundColor?: string;
751
767
  };
752
768
 
753
- declare const Navbar: ({ logo, linkRouter, pathname, navigationSection, utilitySection, actionsSection, maxWidth, fixed, onNavbarHeightChange, }: NavbarProps) => _emotion_react_jsx_runtime.JSX.Element;
769
+ declare const Navbar: ({ logo, linkRouter, pathname, navigationSection, utilitySection, actionsSection, maxWidth, fixed, onNavbarHeightChange, backgroundColor, }: NavbarProps) => _emotion_react_jsx_runtime.JSX.Element;
754
770
 
755
771
  type NavigationRailTabProps = Omit<Tabs.TriggerProps, 'asChild'> & {
756
772
  label: string;