mainstack-design-system 0.6.2 → 0.6.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.
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react" />
3
3
  import { InputProps } from "@chakra-ui/react";
4
4
  export interface IInput extends InputProps {
5
- label: string;
5
+ label?: string;
6
6
  name: string;
7
7
  value?: any;
8
8
  id: string;
@@ -5,12 +5,14 @@ export interface TileProps extends BoxProps {
5
5
  isSelected?: boolean;
6
6
  title: string;
7
7
  tag?: ReactNode;
8
- subText?: string;
8
+ image?: string;
9
+ subText?: ReactNode;
9
10
  icon?: JSX.Element;
10
11
  iconPosition?: "leading" | "trailing" | "top";
11
12
  hasRadioButton?: boolean;
13
+ hasCheckBox?: boolean;
12
14
  bottomComponent?: ReactNode;
13
15
  onClick?: () => void;
14
16
  }
15
- declare const Tile: ({ icon, iconPosition, hasRadioButton, isSelected, title, subText, onClick, width, bottomComponent, tag, ...props }: TileProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const Tile: ({ icon, image, iconPosition, hasRadioButton, hasCheckBox, isSelected, title, subText, onClick, width, bottomComponent, tag, ...props }: TileProps) => import("react/jsx-runtime").JSX.Element;
16
18
  export default Tile;
@@ -1,7 +1,7 @@
1
1
  /** @format */
2
2
  /// <reference types="react" />
3
3
  interface Props {
4
- variant: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "gradient";
4
+ variant: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "gradient" | "gray";
5
5
  onProceed: () => void;
6
6
  message: React.ReactNode;
7
7
  buttonText?: string;
@@ -4,6 +4,7 @@ export interface ITag {
4
4
  status: "Successful" | "Pending" | "Failed" | "Default";
5
5
  label?: string;
6
6
  icon?: ReactNode;
7
+ allCaps?: boolean;
7
8
  }
8
- declare const Tag: ({ status, icon, label }: ITag) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Tag: ({ status, icon, label, allCaps }: ITag) => import("react/jsx-runtime").JSX.Element;
9
10
  export default Tag;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const ApartmentIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default ApartmentIcon;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const HourGlassTopIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default HourGlassTopIcon;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const IdCardIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default IdCardIcon;
@@ -0,0 +1,4 @@
1
+ /** @format */
2
+ import { IconProps } from "@chakra-ui/icons";
3
+ declare const PersonFilledIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default PersonFilledIcon;
@@ -324,3 +324,7 @@ export { default as PersonBookIcon } from "./PersonBookIcon";
324
324
  export { default as PersonBookFilledIcon } from "./PersonBookFilledIcon";
325
325
  export { default as CourseIcon } from "./CourseIcon";
326
326
  export { default as CourseFilledIcon } from "./CourseFilledIcon";
327
+ export { default as PersonFilledIcon } from "./PersonFilledIcon";
328
+ export { default as IdCardIcon } from "./IdCardIcon";
329
+ export { default as ApartmentIcon } from "./ApartmentIcon";
330
+ export { default as HourGlassTopIcon } from "./HourGlassTopIcon";
@@ -12,3 +12,4 @@ export declare const TileWithSubtext: Story;
12
12
  export declare const TileWithLeadingRadioIconAndSubtext: Story;
13
13
  export declare const TileWithLeadingRadioBorderIconAndSubtext: Story;
14
14
  export declare const TileWithBottomComponent: Story;
15
+ export declare const TileWithImageAndCheckbox: Story;
@@ -324,5 +324,9 @@ declare const IconsObject: {
324
324
  PersonBookFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
325
325
  CourseIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
326
326
  CourseFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
327
+ ApartmentIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
328
+ IdCardIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
329
+ PersonFilledIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
330
+ HourGlassTopIcon: (props: import("@chakra-ui/icon/dist/icon").IconProps) => import("react/jsx-runtime").JSX.Element;
327
331
  };
328
332
  export default IconsObject;
@@ -11,3 +11,4 @@ export declare const yellow: Story;
11
11
  export declare const purple: Story;
12
12
  export declare const orange: Story;
13
13
  export declare const gradient: Story;
14
+ export declare const gray: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",