mainstack-design-system 0.1.8 → 0.1.9

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.
@@ -0,0 +1,8 @@
1
+ /** @format */
2
+ interface ILoader {
3
+ width?: string;
4
+ height?: string;
5
+ color?: string;
6
+ }
7
+ declare const Loader: ({ width, height, color }: ILoader) => import("react/jsx-runtime").JSX.Element;
8
+ export default Loader;
@@ -16,11 +16,12 @@ export interface IButtonProps extends ButtonProps {
16
16
  textColor?: string;
17
17
  variant: "primary" | "secondary" | "tertiary" | "outline" | "link";
18
18
  disabled?: boolean;
19
+ isLoading?: boolean;
19
20
  }
20
21
  interface IButtonPropsWithIcons extends IButtonProps {
21
22
  hasIcons: true;
22
23
  icon: React.ReactNode;
23
24
  iconType: "leading" | "trailing";
24
25
  }
25
- declare const Button: ({ label, size, bgColor, variant, disabled, textColor, onClick, ...props }: IButtonProps | IButtonPropsWithIcons) => import("react/jsx-runtime").JSX.Element;
26
+ declare const Button: ({ label, size, bgColor, variant, disabled, textColor, isLoading, onClick, ...props }: IButtonProps | IButtonPropsWithIcons) => import("react/jsx-runtime").JSX.Element;
26
27
  export default Button;
@@ -1,9 +1,11 @@
1
1
  /** @format */
2
+ /// <reference types="react" />
2
3
  import { FlexProps } from "@chakra-ui/react";
3
4
  export interface StepperProps extends FlexProps {
4
5
  steps: {
5
6
  name: string;
6
7
  id: number;
8
+ rightElement?: JSX.Element;
7
9
  }[];
8
10
  page: number;
9
11
  }
@@ -30,3 +30,4 @@ export { default as Paragraph } from "./Typography/Paragraph";
30
30
  export { default as Subtitle } from "./Typography/Subtitle";
31
31
  export { default as FileUploader } from "./Uploader/FileUploader";
32
32
  export { default as ImageUploader } from "./Uploader/ImageUploader";
33
+ export { default as Loader } from "./Animations/Loader";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",