mainstack-design-system 0.4.4 → 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.
@@ -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, type, error, buttonLabel, handleDelete, handleToggle, handleButton, isToggleChecked, maxWidthTitle, ...props }: IAccordionItem) => import("react/jsx-runtime").JSX.Element;
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;
@@ -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 DragDeleteHeading: Story;
9
+ export declare const DraggableAccordion: Story;
11
10
  export declare const NormalAccordion: Story;
12
- export declare const NormalDelete1Data: Story;
11
+ export declare const AccordionWithActionButton: Story;
13
12
  export declare const NormalDelete1DataWithError: Story;
14
- export declare const AccordionWithButton: Story;
13
+ export declare const AccordionWithTitleTag: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",
@@ -109,4 +109,4 @@
109
109
  "url": "https://github.com/The-Mainstack/mainstack-design-system/issues"
110
110
  },
111
111
  "homepage": "https://github.com/The-Mainstack/mainstack-design-system#readme"
112
- }
112
+ }