@purpurds/accordion 5.20.0 → 5.21.0

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,24 +6,16 @@ export type AccordionProps = {
6
6
  children: ReactNode;
7
7
  className?: string;
8
8
  /**
9
- * Different accordion styling
9
+ * The values of the accordion items that should be open by default
10
10
  * */
11
+ defaultValue?: string[];
11
12
  negative?: boolean;
12
- /**
13
- * Title of the accordion
14
- * */
15
13
  title?: string;
16
- /**
17
- * This is the heading tag used for the accordion title. Defaults to h2.
18
- */
19
14
  titleTag?: HeadingTagType;
20
- /**
21
- * Different variant of sizing the title
22
- * */
23
15
  titleVariant?: TitleVariantType;
24
16
  };
25
17
  export declare const Accordion: {
26
- ({ ["data-testid"]: dataTestId, children, className, negative, title, titleTag, titleVariant, }: AccordionProps): React.JSX.Element;
18
+ ({ ["data-testid"]: dataTestId, children, className, negative, title, titleTag, titleVariant, ...props }: AccordionProps): React.JSX.Element;
27
19
  Item: React.ForwardRefExoticComponent<import('./accordion-item').AccordionItemProps & React.RefAttributes<HTMLButtonElement>>;
28
20
  displayName: string;
29
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../src/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKZ,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,EAAW,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAU9E,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;SAEK;IACL,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;SAEK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B;;SAEK;IAC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