@worldresources/wri-design-systems 2.138.2 → 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.cjs.js +283 -270
- package/dist/index.d.ts +24 -24
- package/dist/index.esm.js +803 -790
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
2
|
-
import { ButtonProps
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
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
|
-
|
|
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?:
|
|
14
|
-
size?:
|
|
15
|
+
variant?: "primary" | "secondary" | "borderless" | "outline";
|
|
16
|
+
size?: "default" | "small";
|
|
15
17
|
disabled?: boolean;
|
|
16
|
-
leftIcon?: React
|
|
17
|
-
rightIcon?: React
|
|
18
|
-
children?: React
|
|
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
|
|
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
|
|
42
|
-
icon:
|
|
41
|
+
type IconButtonProps = Omit<ButtonProps, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
|
|
42
|
+
icon: React__default.ReactNode;
|
|
43
43
|
disabled?: boolean;
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -100,20 +100,20 @@ 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
|
|
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:
|
|
109
|
+
label: React__default.ReactNode;
|
|
110
110
|
value: string;
|
|
111
111
|
onClick: VoidFunction;
|
|
112
112
|
}[];
|
|
113
113
|
disabled?: boolean;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
116
|
+
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, disabled: isDisabledProp, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
117
117
|
|
|
118
118
|
type CheckboxProps = Omit<Checkbox$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'icon' | 'iconColor' | 'iconSize' | 'spacing' | 'invalid'> & {
|
|
119
119
|
name?: string;
|
|
@@ -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:
|
|
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:
|
|
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
|
-
} &
|
|
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:
|
|
561
|
-
declare const TableCell:
|
|
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:
|
|
728
|
+
declare const Toast: React__default.FC;
|
|
729
729
|
|
|
730
730
|
type ToastProps = {
|
|
731
731
|
label: string;
|