mainstack-design-system 0.2.5 → 0.2.7
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/build/index.css +1 -1
- package/build/mainstack-design-system.js +858 -817
- package/build/src/components/AccordionItem/index.d.ts +4 -2
- package/build/src/components/Avatars/index.d.ts +1 -1
- package/build/src/components/Button/index.d.ts +6 -1
- package/build/src/components/controls/Stepper.d.ts +2 -1
- package/build/src/components/styleGuide/Colors.d.ts +1 -0
- package/build/src/stories/Accordion/Accordion.stories.d.ts +1 -0
- package/build/src/stories/Buttons/Button.stories.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,10 +6,12 @@ export interface IAccordionItem extends AccordionItemProps {
|
|
|
6
6
|
title: string;
|
|
7
7
|
subtitle?: React.ReactNode;
|
|
8
8
|
isDraggable?: boolean;
|
|
9
|
-
type: "has-toggle" | "has-delete" | "normal";
|
|
9
|
+
type: "has-toggle" | "has-delete" | "has-button" | "normal";
|
|
10
10
|
error?: boolean;
|
|
11
|
+
buttonLabel?: string;
|
|
11
12
|
handleDelete?: () => void;
|
|
12
13
|
handleToggle?: () => void;
|
|
14
|
+
handleButton?: () => void;
|
|
13
15
|
}
|
|
14
|
-
declare const AccordionItem: ({ children, title, subtitle, isDraggable, type, error, handleDelete, handleToggle, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const AccordionItem: ({ children, title, subtitle, isDraggable, type, error, buttonLabel, handleDelete, handleToggle, handleButton, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default AccordionItem;
|
|
@@ -7,6 +7,11 @@ export type ButtonVariantType = {
|
|
|
7
7
|
hoverColor: string;
|
|
8
8
|
activeBorderColor: string;
|
|
9
9
|
border?: string;
|
|
10
|
+
fontSizes?: {
|
|
11
|
+
large: string;
|
|
12
|
+
medium: string;
|
|
13
|
+
small: string;
|
|
14
|
+
};
|
|
10
15
|
};
|
|
11
16
|
export declare const ButtonVariant: Record<string, ButtonVariantType>;
|
|
12
17
|
export interface IButtonProps extends ButtonProps {
|
|
@@ -14,7 +19,7 @@ export interface IButtonProps extends ButtonProps {
|
|
|
14
19
|
size: "small" | "medium" | "large";
|
|
15
20
|
bgColor?: string;
|
|
16
21
|
textColor?: string;
|
|
17
|
-
variant: "primary" | "secondary" | "tertiary" | "outline" | "link";
|
|
22
|
+
variant: "primary" | "secondary" | "tertiary" | "outline" | "link" | "text";
|
|
18
23
|
disabled?: boolean;
|
|
19
24
|
isLoading?: boolean;
|
|
20
25
|
}
|
|
@@ -8,6 +8,7 @@ export interface StepperProps extends FlexProps {
|
|
|
8
8
|
rightElement?: JSX.Element;
|
|
9
9
|
}[];
|
|
10
10
|
page: number;
|
|
11
|
+
handleStepClick?: (id: number) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const Stepper: ({ steps, page, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const Stepper: ({ steps, page, handleStepClick, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default Stepper;
|
|
@@ -9,6 +9,8 @@ export declare const Secondary: Story;
|
|
|
9
9
|
export declare const Tertiary: Story;
|
|
10
10
|
export declare const Outline: Story;
|
|
11
11
|
export declare const Link: Story;
|
|
12
|
+
export declare const Text: Story;
|
|
13
|
+
export declare const MediumTextVariant: Story;
|
|
12
14
|
export declare const MediumSize: Story;
|
|
13
15
|
export declare const LargeSize: Story;
|
|
14
16
|
export declare const ButtonWithLeadingIcon: Story;
|