@purpurds/accordion 5.24.3 → 5.25.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,17 +6,24 @@ export type AccordionProps = {
6
6
  children: ReactNode;
7
7
  className?: string;
8
8
  /**
9
- * The values of the accordion items that should be open by default
9
+ * @deprecated
10
10
  * */
11
11
  defaultValue?: string[];
12
12
  negative?: boolean;
13
13
  title?: string;
14
14
  titleTag?: HeadingTagType;
15
15
  titleVariant?: TitleVariantType;
16
+ /**
17
+ * A schema enables external applications to parse the content in a structured manner.
18
+ * See more at schema.org . We use a JSON-LD based script-tag to add the schema to the DOM.
19
+ * Note that only one type of schema can be added per page
20
+ */
21
+ schema?: string;
16
22
  };
23
+ export declare const NegativeContext: React.Context<boolean>;
17
24
  export declare const Accordion: {
18
- ({ ["data-testid"]: dataTestId, children, className, negative, title, titleTag, titleVariant, ...props }: AccordionProps): React.JSX.Element;
19
- Item: React.ForwardRefExoticComponent<import('./accordion-item').AccordionItemProps & React.RefAttributes<HTMLButtonElement>>;
25
+ ({ ["data-testid"]: dataTestId, children, className, negative, title, titleTag, titleVariant, schema, ...props }: AccordionProps): React.JSX.Element;
26
+ Item: ({ children, className, title, titleTag, initialOpen, onClick, ...props }: import('./accordion-item').AccordionItemProps) => React.JSX.Element;
20
27
  displayName: string;
21
28
  };
22
29
  export type { AccordionItemOnClickEvent, AccordionItemProps } from './accordion-item';
@@ -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,CA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