mainstack-design-system 0.6.6 → 0.6.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.
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/** @format */
|
|
2
2
|
import { BoxProps } from "@chakra-ui/react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
export interface TileProps extends BoxProps {
|
|
4
|
+
export interface TileProps extends Omit<BoxProps, "title"> {
|
|
5
5
|
isSelected?: boolean;
|
|
6
|
-
title
|
|
7
|
-
tag?: ReactNode;
|
|
6
|
+
title?: ReactNode;
|
|
8
7
|
image?: string;
|
|
9
8
|
subText?: ReactNode;
|
|
10
9
|
icon?: JSX.Element;
|
|
@@ -14,5 +13,5 @@ export interface TileProps extends BoxProps {
|
|
|
14
13
|
bottomComponent?: ReactNode;
|
|
15
14
|
onClick?: () => void;
|
|
16
15
|
}
|
|
17
|
-
declare const Tile: ({ icon, image, iconPosition, hasRadioButton, hasCheckBox, isSelected, title, subText, onClick, width, bottomComponent,
|
|
16
|
+
declare const Tile: ({ icon, image, iconPosition, hasRadioButton, hasCheckBox, isSelected, title, subText, onClick, width, bottomComponent, ...props }: TileProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export default Tile;
|
|
@@ -13,3 +13,4 @@ export declare const TileWithLeadingRadioIconAndSubtext: Story;
|
|
|
13
13
|
export declare const TileWithLeadingRadioBorderIconAndSubtext: Story;
|
|
14
14
|
export declare const TileWithBottomComponent: Story;
|
|
15
15
|
export declare const TileWithImageAndCheckbox: Story;
|
|
16
|
+
export declare const TileWithTitleAndTag: Story;
|