mainstack-design-system 0.4.3 → 0.4.5
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.
- package/build/mainstack-design-system.js +5787 -5781
- package/build/src/components/AccordionItem/index.d.ts +3 -7
- package/build/src/components/InputFields/Input.d.ts +3 -1
- package/build/src/stories/Accordion/Accordion.stories.d.ts +3 -4
- package/build/src/stories/InputFields/InputFields.stories.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,14 +6,10 @@ export interface IAccordionItem extends AccordionItemProps {
|
|
|
6
6
|
title: string;
|
|
7
7
|
subtitle?: React.ReactNode;
|
|
8
8
|
isDraggable?: boolean;
|
|
9
|
-
type: "has-toggle" | "has-delete" | "has-button" | "normal";
|
|
10
9
|
error?: boolean;
|
|
11
|
-
buttonLabel?: string;
|
|
12
|
-
handleDelete?: () => void;
|
|
13
|
-
handleToggle?: () => void;
|
|
14
|
-
handleButton?: () => void;
|
|
15
|
-
isToggleChecked?: boolean;
|
|
16
10
|
maxWidthTitle?: string;
|
|
11
|
+
actionButton?: React.ReactNode;
|
|
12
|
+
titleTag?: React.ReactNode;
|
|
17
13
|
}
|
|
18
|
-
declare const AccordionItem: ({ children, title, subtitle, isDraggable,
|
|
14
|
+
declare const AccordionItem: ({ children, title, subtitle, isDraggable, error, maxWidthTitle, actionButton, titleTag, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
|
|
19
15
|
export default AccordionItem;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @format */
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import { InputProps } from "@chakra-ui/react";
|
|
3
4
|
export interface IInput extends InputProps {
|
|
4
5
|
label: string;
|
|
@@ -17,6 +18,7 @@ export interface IInput extends InputProps {
|
|
|
17
18
|
width?: string;
|
|
18
19
|
disabled?: boolean;
|
|
19
20
|
fontFamily?: string;
|
|
21
|
+
leftElement?: JSX.Element | string;
|
|
20
22
|
}
|
|
21
|
-
declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, fontFamily, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, fontFamily, leftElement, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export default Input;
|
|
@@ -4,11 +4,10 @@ import AccordionWrapper from "./AccordionWrapper";
|
|
|
4
4
|
declare const meta: Meta<typeof AccordionWrapper>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof AccordionWrapper>;
|
|
7
|
-
export declare const DragToggleHeading: Story;
|
|
8
7
|
export declare const DragToggleHeading1Data: Story;
|
|
9
8
|
export declare const DragToggleHeading2Data: Story;
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const DraggableAccordion: Story;
|
|
11
10
|
export declare const NormalAccordion: Story;
|
|
12
|
-
export declare const
|
|
11
|
+
export declare const AccordionWithActionButton: Story;
|
|
13
12
|
export declare const NormalDelete1DataWithError: Story;
|
|
14
|
-
export declare const
|
|
13
|
+
export declare const AccordionWithTitleTag: Story;
|
|
@@ -7,4 +7,5 @@ type Story = StoryObj<typeof Input>;
|
|
|
7
7
|
export declare const SimpleInputField: Story;
|
|
8
8
|
export declare const SimpleInputPassword: Story;
|
|
9
9
|
export declare const SimpleInputSuccess: Story;
|
|
10
|
+
export declare const SimpleInputWithLeftElement: Story;
|
|
10
11
|
export declare const SimpleInputError: Story;
|