mainstack-design-system 0.5.2 → 0.5.4

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,16 @@
1
+ /** @format */
2
+ /// <reference types="react" />
3
+ interface IBigCard {
4
+ title: string;
5
+ description: string;
6
+ variant: "inline" | "block";
7
+ icon?: React.ReactNode;
8
+ tag?: React.ReactNode;
9
+ hasActionButton: boolean;
10
+ actionButtonText?: string;
11
+ onActionButtonClick?: () => void;
12
+ rightElement?: React.ReactNode;
13
+ fontFamily?: string;
14
+ }
15
+ declare const MultipurposeCard: ({ title, description, variant, icon, hasActionButton, rightElement, actionButtonText, onActionButtonClick, tag, fontFamily, }: IBigCard) => import("react/jsx-runtime").JSX.Element;
16
+ export default MultipurposeCard;
@@ -0,0 +1,11 @@
1
+ /** @format */
2
+ /// <reference types="react" />
3
+ interface ISmallCard {
4
+ title: string;
5
+ description: string;
6
+ icon?: React.ReactNode;
7
+ tag?: React.ReactNode;
8
+ fontFamily?: string;
9
+ }
10
+ declare const SimpleCard: ({ title, description, icon, tag, fontFamily, }: ISmallCard) => import("react/jsx-runtime").JSX.Element;
11
+ export default SimpleCard;
@@ -33,5 +33,5 @@ export { default as FileUploader } from "./Uploader/FileUploader";
33
33
  export { default as ImageUploader } from "./Uploader/ImageUploader";
34
34
  export { default as Loader } from "./Animations/Loader";
35
35
  export { default as UrlInput } from "./InputFields/UrlInput";
36
- export { default as TagsUpdate } from "./notifications/TagsUpdate";
36
+ export { default as Tag } from "./notifications/Tag";
37
37
  export { customSnackbar, CustomSnackbarContainer, SnackbarType, } from "./notifications/Snackbar";
@@ -1,5 +1,5 @@
1
1
  /** @format */
2
- import { TypeOptions } from "react-toastify";
2
+ import { ToastOptions, TypeOptions } from "react-toastify";
3
3
  declare enum SnackbarType {
4
4
  info = "info",
5
5
  success = "success",
@@ -8,5 +8,5 @@ declare enum SnackbarType {
8
8
  default = "default"
9
9
  }
10
10
  declare const CustomSnackbarContainer: () => import("react/jsx-runtime").JSX.Element;
11
- declare function customSnackbar(title: string, type: TypeOptions, subtext?: string, showUndoButton?: boolean, handleUndo?: () => void): void;
11
+ declare function customSnackbar(title: string, type: TypeOptions, subtext?: string, showUndoButton?: boolean, handleUndo?: () => void, toastOptions?: ToastOptions<object>): void;
12
12
  export { customSnackbar, CustomSnackbarContainer, SnackbarType };
@@ -0,0 +1,9 @@
1
+ /** @format */
2
+ import { ReactNode } from "react";
3
+ export interface ITag {
4
+ status: "Successful" | "Pending" | "Failed" | "Default";
5
+ label?: string;
6
+ icon?: ReactNode;
7
+ }
8
+ declare const Tag: ({ status, icon, label }: ITag) => import("react/jsx-runtime").JSX.Element;
9
+ export default Tag;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const Book5FilledIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default Book5FilledIcon;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const PaidFilledIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default PaidFilledIcon;
@@ -47,6 +47,7 @@ export { default as BlockIcon } from "./BlockIcon";
47
47
  export { default as BoltFilledIcon } from "./BoltFilledIcon";
48
48
  export { default as BoltIcon } from "./BoltIcon";
49
49
  export { default as BookOnlineIcon } from "./BookOnlineIcon";
50
+ export { default as Book5FilledIcon } from "./Book5FilledIcon";
50
51
  export { default as BugReportIcon } from "./BugReportIcon";
51
52
  export { default as BusinessCenterFilledIcon } from "./BusinessCenterFilledIcon";
52
53
  export { default as BusinessCenterIcon } from "./BusinessCenterIcon";
@@ -211,6 +212,7 @@ export { default as OpenInNewIcon } from "./OpenInNewIcon";
211
212
  export { default as OthersIcon } from "./OthersIcon";
212
213
  export { default as PageViewIcon } from "./PageViewIcon";
213
214
  export { default as PaidIcon } from "./PaidIcon";
215
+ export { default as PaidFilledIcon } from "./PaidFilledIcon";
214
216
  export { default as PaletteFilledIcon } from "./PaletteFilledIcon";
215
217
  export { default as PaletteIcon } from "./PaletteIcon";
216
218
  export { default as PauseIcon } from "./PauseIcon";
@@ -10,4 +10,5 @@ export declare const TileWithTopIconAndSubtext: Story;
10
10
  export declare const TileWithTopIcon: Story;
11
11
  export declare const TileWithSubtext: Story;
12
12
  export declare const TileWithLeadingRadioIconAndSubtext: Story;
13
+ export declare const TileWithLeadingRadioBorderIconAndSubtext: Story;
13
14
  export declare const TileWithBottomComponent: Story;
@@ -0,0 +1,9 @@
1
+ /** @format */
2
+ import MultipurposeCard from "components/cards/MultipurposeCard";
3
+ import type { Meta } from "@storybook/react";
4
+ declare const meta: Meta<typeof MultipurposeCard>;
5
+ export default meta;
6
+ type Story = typeof meta;
7
+ export declare const Default: Story;
8
+ export declare const HasActionButton: Story;
9
+ export declare const HasRightElement: Story;
@@ -0,0 +1,8 @@
1
+ /** @format */
2
+ import SimpleCard from "components/cards/SimpleCard";
3
+ import type { Meta } from "@storybook/react";
4
+ declare const meta: Meta<typeof SimpleCard>;
5
+ export default meta;
6
+ type Story = typeof meta;
7
+ export declare const Default: Story;
8
+ export declare const HasTag: Story;
@@ -47,6 +47,7 @@ declare const IconsObject: {
47
47
  BoltFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
48
48
  BoltIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
49
49
  BookOnlineIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
50
+ Book5FilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
50
51
  BugReportIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
51
52
  BarChartFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
52
53
  BusinessCenterFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -210,6 +211,7 @@ declare const IconsObject: {
210
211
  OpenInNewIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
211
212
  OthersIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
212
213
  PageViewIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
214
+ PaidFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
213
215
  PaidIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
214
216
  PaletteFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
215
217
  PaletteIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /** @format */
2
- import { TagsUpdate } from "components";
2
+ import { Tag } from "components";
3
3
  import type { Meta } from "@storybook/react";
4
- declare const meta: Meta<typeof TagsUpdate>;
4
+ declare const meta: Meta<typeof Tag>;
5
5
  export default meta;
6
6
  type Story = typeof meta;
7
7
  export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",
@@ -1,9 +0,0 @@
1
- /** @format */
2
- import { ReactNode } from "react";
3
- export interface ITagsUpdate {
4
- status: "Successful" | "Pending" | "Failed" | "Default";
5
- label?: string;
6
- icon?: ReactNode;
7
- }
8
- declare const TagsUpdate: ({ status, icon, label }: ITagsUpdate) => import("react/jsx-runtime").JSX.Element;
9
- export default TagsUpdate;