@secondstaxorg/sscomp 1.6.94 → 1.6.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondstaxorg/sscomp",
3
- "version": "1.6.94",
3
+ "version": "1.6.95",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
@@ -0,0 +1,2 @@
1
+ export declare const AccordionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const AccordionItem: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ export interface AccordionProps {
3
+ /**
4
+ * Array of object containing the label and content for each accordion and then specify if it can be deleted
5
+ * */
6
+ accordions: AccordionsType[];
7
+ /**
8
+ * Optional. Function that returns information about the expanded accordion with the corresponding array index
9
+ * */
10
+ expandedPanel?: (a: {
11
+ index: number;
12
+ label: string;
13
+ }) => void;
14
+ /**
15
+ * Optional, specify the array index (counting from 0) for which accordion to have expanded on page load
16
+ * */
17
+ defaultExpanded?: number;
18
+ }
19
+ export declare type AccordionsType = {
20
+ label: string;
21
+ content: React.ReactNode;
22
+ canDelete?: boolean;
23
+ onDelete?: ({}: {}) => void;
24
+ };