@worldresources/wri-design-systems 2.138.3 → 2.138.4

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,24 +1,24 @@
1
1
  import * as _chakra_ui_react 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
- import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
4
- import React$1, { ReactElement } from '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';
3
+ import * as React$1 from 'react';
4
+ import React__default, { ReactElement } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
+ import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
6
7
 
7
8
  declare const designSystemStyles: _chakra_ui_react.SystemContext;
8
9
  declare const getThemedColor: (variant: "neutral" | "primary" | "secondary" | "success" | "warning" | "error" | "accessible", index: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "text-on-primary-mids" | "text-on-secondary-mids" | "controls-on-neutral-lights" | "controls-on-neutral-darks") => string;
9
10
 
10
- type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
11
+ /** @jsxImportSource @emotion/react */
12
+ declare const Button: React$1.ForwardRefExoticComponent<Omit<_chakra_ui_react.ButtonProps, "size" | "variant" | "colorPalette" | "children"> & {
11
13
  label?: string;
12
14
  loading?: boolean;
13
- variant?: 'primary' | 'secondary' | 'borderless' | 'outline';
14
- size?: 'default' | 'small';
15
+ variant?: "primary" | "secondary" | "borderless" | "outline";
16
+ size?: "default" | "small";
15
17
  disabled?: boolean;
16
- leftIcon?: React$1.ReactNode;
17
- rightIcon?: React$1.ReactNode;
18
- children?: React$1.ReactNode;
19
- };
20
-
21
- declare const Button: ({ label, loading, variant, size, disabled, leftIcon, rightIcon, children, ...rest }: ButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
18
+ leftIcon?: React.ReactNode;
19
+ rightIcon?: React.ReactNode;
20
+ children?: React.ReactNode;
21
+ } & React$1.RefAttributes<HTMLButtonElement>>;
22
22
 
23
23
  type GenericSSOButtonsProps = {
24
24
  ariaLabel?: string;
@@ -32,14 +32,14 @@ declare const SSOButtons: {
32
32
  Microsoft: ({ ariaLabel, size, onClick, }: GenericSSOButtonsProps) => react_jsx_runtime.JSX.Element;
33
33
  };
34
34
 
35
- type CloseButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
35
+ type CloseButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
36
36
  disabled?: boolean;
37
37
  };
38
38
 
39
39
  declare const CloseButton: ({ disabled, ...rest }: CloseButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
40
40
 
41
- type IconButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
42
- icon: React$1.ReactNode;
41
+ type IconButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
42
+ icon: React__default.ReactNode;
43
43
  disabled?: boolean;
44
44
  };
45
45
 
@@ -100,13 +100,13 @@ type MenuProps = {
100
100
 
101
101
  declare const Menu: ({ label, items, groups, onSelect, customTrigger }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
102
102
 
103
- type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
103
+ type MultiActionButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children'> & {
104
104
  variant?: 'primary' | 'secondary';
105
105
  size?: 'default' | 'small';
106
106
  mainActionLabel: string;
107
107
  mainActionOnClick: VoidFunction;
108
108
  otherActions: {
109
- label: React$1.ReactNode;
109
+ label: React__default.ReactNode;
110
110
  value: string;
111
111
  onClick: VoidFunction;
112
112
  }[];
@@ -184,14 +184,14 @@ declare const RadioGroup: ({ children, horizontal, name, defaultValue, onChange,
184
184
 
185
185
  /** @jsxImportSource @emotion/react */
186
186
 
187
- declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.RootProps, "size" | "variant" | "colorPalette" | "label" | "defaultChecked" | "defaultValue" | "origin" | "thumbAlignment" | "thumbSize"> & {
187
+ declare const Slider: React__default.ForwardRefExoticComponent<Omit<Slider$1.RootProps, "size" | "variant" | "colorPalette" | "label" | "defaultChecked" | "defaultValue" | "origin" | "thumbAlignment" | "thumbSize"> & {
188
188
  width?: string;
189
189
  min?: number;
190
190
  max?: number;
191
191
  value?: number[];
192
192
  marks?: Array<number | {
193
193
  value: number;
194
- label: React$1.ReactNode;
194
+ label: React__default.ReactNode;
195
195
  }>;
196
196
  step?: number;
197
197
  disabled?: boolean;
@@ -202,7 +202,7 @@ declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.RootProps,
202
202
  value: number[];
203
203
  }) => void;
204
204
  isCentred?: boolean;
205
- } & React$1.RefAttributes<HTMLDivElement>>;
205
+ } & React__default.RefAttributes<HTMLDivElement>>;
206
206
 
207
207
  type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'invalid' | 'onCheckedChange' | 'onChange'> & {
208
208
  name: string;
@@ -557,8 +557,8 @@ type TableProps = {
557
557
 
558
558
  declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
559
559
 
560
- declare const TableRow: React$1.ForwardRefExoticComponent<Table$1.RowProps & React$1.RefAttributes<HTMLTableRowElement>>;
561
- declare const TableCell: React$1.ForwardRefExoticComponent<Table$1.CellProps & React$1.RefAttributes<HTMLTableCellElement>>;
560
+ declare const TableRow: React__default.ForwardRefExoticComponent<Table$1.RowProps & React__default.RefAttributes<HTMLTableRowElement>>;
561
+ declare const TableCell: React__default.ForwardRefExoticComponent<Table$1.CellProps & React__default.RefAttributes<HTMLTableCellElement>>;
562
562
 
563
563
  type ModalProps = {
564
564
  header: React.ReactNode;
@@ -725,7 +725,7 @@ declare const StepProgressIndicator: ({ steps, currentStep, }: StepProgressIndic
725
725
 
726
726
  /** @jsxImportSource @emotion/react */
727
727
 
728
- declare const Toast: React$1.FC;
728
+ declare const Toast: React__default.FC;
729
729
 
730
730
  type ToastProps = {
731
731
  label: string;