@versaur/react 1.0.7 → 1.0.8

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/dist/blocks.d.ts CHANGED
@@ -39,6 +39,38 @@ import { TableCellVariant } from '@versaur/core/blocks';
39
39
  import { TdHTMLAttributes } from 'react';
40
40
  import { ThHTMLAttributes } from 'react';
41
41
 
42
+ export declare const Accordion: AccordionComponent;
43
+
44
+ /**
45
+ * Accordion Component - Compound component with Summary sub-component
46
+ */
47
+ declare interface AccordionComponent extends React.ForwardRefExoticComponent<AccordionRootProps & React.RefAttributes<HTMLDetailsElement>> {
48
+ Summary: typeof AccordionSummary;
49
+ }
50
+
51
+ export declare interface AccordionRootProps extends Omit<HTMLAttributes<HTMLDetailsElement>, "onToggle"> {
52
+ summary: ReactNode;
53
+ open?: boolean;
54
+ onOpenChange?: (open: boolean) => void;
55
+ children?: ReactNode;
56
+ className?: string;
57
+ }
58
+
59
+ /**
60
+ * Accordion Summary - The clickable trigger for the accordion
61
+ *
62
+ * Wraps the native <summary> element with a chevron icon and click prevention.
63
+ * Supports right-aligned content and text line clamping.
64
+ */
65
+ declare const AccordionSummary: ForwardRefExoticComponent<AccordionSummaryProps & RefAttributes<HTMLElement>>;
66
+
67
+ export declare interface AccordionSummaryProps extends HTMLAttributes<HTMLElement> {
68
+ children?: ReactNode;
69
+ right?: ReactNode;
70
+ clamp?: number;
71
+ className?: string;
72
+ }
73
+
42
74
  export declare const AppLayout: AppLayoutType;
43
75
 
44
76
  declare interface AppLayoutBodyProps {