mainstack-design-system 0.1.7 → 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;
@@ -5,7 +5,7 @@ export interface IInput extends InputProps {
5
5
  name: string;
6
6
  value?: any;
7
7
  id: string;
8
- onChange?: () => void;
8
+ onChange?: (e?: any) => void;
9
9
  defaultValue?: any;
10
10
  placeholder?: string;
11
11
  type: "text" | "number" | "password";
@@ -5,7 +5,7 @@ interface ITextArea extends TextareaProps {
5
5
  name: string;
6
6
  value?: any;
7
7
  id: string;
8
- onChange?: () => void;
8
+ onChange?: (e?: any) => void;
9
9
  defaultValue?: any;
10
10
  placeholder?: any;
11
11
  error?: boolean;
@@ -5,7 +5,7 @@ interface IInput extends InputProps {
5
5
  name: string;
6
6
  value?: any;
7
7
  id: string;
8
- onChange?: () => void;
8
+ onChange?: (e?: any) => void;
9
9
  defaultValue?: any;
10
10
  placeholder?: any;
11
11
  type?: "text";
@@ -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";
@@ -6,5 +6,5 @@ export interface ICustomTooltip {
6
6
  label: string;
7
7
  hasSpecialArrow?: boolean;
8
8
  }
9
- declare const CickTooltip: ({ label, body, hasSpecialArrow, triggerComponent, ...props }: ICustomTooltip) => import("react/jsx-runtime").JSX.Element;
10
- export default CickTooltip;
9
+ declare const ClickTooltip: ({ label, body, hasSpecialArrow, triggerComponent, ...props }: ICustomTooltip) => import("react/jsx-runtime").JSX.Element;
10
+ export default ClickTooltip;
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.1.7",
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",
7
7
  "files": [
8
- "build"
8
+ "build",
9
+ "!/storybook-static",
10
+ "!/stories"
9
11
  ],
10
12
  "scripts": {
11
13
  "dev": "vite",