@windstream/react-shared-components 0.1.44 → 0.1.46

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.
@@ -8,16 +8,29 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { Document } from '@contentful/rich-text-types';
9
9
  import { Options } from '@contentful/rich-text-react-renderer';
10
10
 
11
+ type AccordionItem = {
12
+ anchorId?: string;
13
+ title: string;
14
+ description: React__default.ReactNode;
15
+ };
11
16
  type AccordionProps = {
17
+ /** Section-level anchor ID applied to the outer <section> element */
18
+ anchorId?: string;
12
19
  title: string;
13
20
  enableHeading?: boolean;
14
- background?: "blue" | "green" | "navy" | "purple" | "white" | "yellow";
15
- items: {
16
- title: string;
17
- description: React__default.ReactNode;
18
- }[];
21
+ background?: ThemeKey$1;
22
+ items: AccordionItem[];
19
23
  maxWidth?: boolean;
24
+ /** Array of anchorIds that should be expanded on mount */
25
+ initialExpandedItems?: string[];
26
+ /** Enable URL hash auto-expand on mount */
27
+ hashAutoExpand?: boolean;
28
+ /** Max-width class for item descriptions (default: "max-w-[980px]") */
29
+ descriptionMaxWidth?: string;
30
+ /** Custom class for the accordion list wrapper */
31
+ itemContainerClassName?: string;
20
32
  };
33
+ type ThemeKey$1 = "blue" | "green" | "yellow" | "purple" | "white" | "navy" | "cream500";
21
34
 
22
35
  declare const Accordion: React__default.FC<AccordionProps>;
23
36