@worldresources/wri-design-systems 2.202.0 → 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 +490 -316
- package/dist/index.d.ts +5 -7
- package/dist/index.esm.js +488 -314
- 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;
|