@worldresources/wri-design-systems 2.201.3 → 2.202.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.cjs.js +491 -317
- package/dist/index.d.ts +7 -8
- package/dist/index.esm.js +489 -315
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ type RadiusToken = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
|
15
15
|
type BorderWidthToken = 100 | 200 | 300 | 400;
|
|
16
16
|
declare const designSystemStylesForTailwind: Record<string, string>;
|
|
17
17
|
declare const designSystemStyles: _chakra_ui_react.SystemContext;
|
|
18
|
-
declare const getThemedColor: (variant: ColorVariant, 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;
|
|
18
|
+
declare const getThemedColor: (variant: ColorVariant, 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" | "text-on-negative-mids") => string;
|
|
19
19
|
declare const getThemedFontSize: (token: FontSizeToken) => string;
|
|
20
20
|
declare const getThemedSpacing: (token: SpacingToken) => string;
|
|
21
21
|
declare const getThemedLineHeight: (token: LineHeightToken) => string;
|
|
@@ -689,7 +689,7 @@ declare const RichTextEditor: ({ defaultValue, disabled, ariaLabel, placeholder,
|
|
|
689
689
|
type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
|
690
690
|
label?: string;
|
|
691
691
|
loading?: boolean;
|
|
692
|
-
variant?: 'primary' | 'secondary' | 'borderless' | 'outline';
|
|
692
|
+
variant?: 'primary' | 'secondary' | 'borderless' | 'outline' | 'negative';
|
|
693
693
|
size?: 'default' | 'small';
|
|
694
694
|
disabled?: boolean;
|
|
695
695
|
leftIcon?: React__default.ReactNode;
|
|
@@ -703,7 +703,7 @@ type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'ch
|
|
|
703
703
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<_chakra_ui_react.ButtonProps, "children" | "colorPalette" | "size" | "variant"> & {
|
|
704
704
|
label?: string;
|
|
705
705
|
loading?: boolean;
|
|
706
|
-
variant?: "primary" | "secondary" | "borderless" | "outline";
|
|
706
|
+
variant?: "primary" | "secondary" | "borderless" | "outline" | "negative";
|
|
707
707
|
size?: "default" | "small";
|
|
708
708
|
disabled?: boolean;
|
|
709
709
|
leftIcon?: React.ReactNode;
|
|
@@ -825,9 +825,7 @@ type MenuProps = {
|
|
|
825
825
|
|
|
826
826
|
declare const Menu: ({ theme, label, hideArrow, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, menuWidth, labels, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
827
827
|
|
|
828
|
-
type MultiActionButtonProps = Omit<ButtonProps
|
|
829
|
-
variant?: 'primary' | 'secondary';
|
|
830
|
-
size?: 'default' | 'small';
|
|
828
|
+
type MultiActionButtonProps = Omit<ButtonProps, 'label' | 'leftIcon' | 'rightIcon' | 'onClick' | 'children' | 'css'> & {
|
|
831
829
|
mainActionLeftIcon?: React__default.ReactNode;
|
|
832
830
|
mainActionRightIcon?: React__default.ReactNode;
|
|
833
831
|
mainActionLabel: string;
|
|
@@ -836,8 +834,8 @@ type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPal
|
|
|
836
834
|
label: React__default.ReactNode;
|
|
837
835
|
value: string;
|
|
838
836
|
onClick: VoidFunction;
|
|
837
|
+
disabled?: boolean;
|
|
839
838
|
}[];
|
|
840
|
-
disabled?: boolean;
|
|
841
839
|
};
|
|
842
840
|
|
|
843
841
|
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, disabled: isDisabledProp, mainActionLeftIcon, mainActionRightIcon, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -1747,11 +1745,12 @@ declare const AlertBanner: React$1.ForwardRefExoticComponent<AlertProps & React$
|
|
|
1747
1745
|
|
|
1748
1746
|
type ProgressBarProps = {
|
|
1749
1747
|
progress: number;
|
|
1748
|
+
color?: string;
|
|
1750
1749
|
/** Override internal UI labels for internationalization support. */
|
|
1751
1750
|
labels?: Partial<ProgressBarLabels>;
|
|
1752
1751
|
};
|
|
1753
1752
|
|
|
1754
|
-
declare const ProgressBar: ({ progress, labels }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1753
|
+
declare const ProgressBar: ({ progress, labels, color }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1755
1754
|
|
|
1756
1755
|
type StepProgressIndicatorProps = {
|
|
1757
1756
|
steps: {
|