ui-mathilde-web 0.3.8 → 0.4.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,6 +6,37 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
6
6
  import * as React_2 from 'react';
7
7
  import { RefAttributes } from 'react';
8
8
 
9
+ export declare const Accordion: default_2.FC<AccordionProps>;
10
+
11
+ export declare const AccordionGroup: default_2.FC<AccordionGroupProps>;
12
+
13
+ declare interface AccordionGroupProps {
14
+ items: AccordionItem[];
15
+ mode?: "multi" | "single";
16
+ defaultOpen?: string[];
17
+ className?: string;
18
+ }
19
+
20
+ declare interface AccordionItem {
21
+ id: string;
22
+ title: default_2.ReactNode;
23
+ content: default_2.ReactNode;
24
+ icon?: default_2.ReactNode;
25
+ iconPosition?: "left" | "right";
26
+ variant?: "minimal" | "bordered" | "shadow" | "ghost";
27
+ }
28
+
29
+ declare interface AccordionProps {
30
+ id: string;
31
+ title: default_2.ReactNode;
32
+ children: default_2.ReactNode;
33
+ isOpen: boolean;
34
+ onToggle?: () => void;
35
+ variant?: "minimal" | "bordered" | "shadow" | "ghost";
36
+ icon?: default_2.ReactNode;
37
+ iconPosition?: "left" | "right";
38
+ }
39
+
9
40
  export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
10
41
 
11
42
  declare interface ButtonFormatProps {
@@ -283,12 +314,12 @@ declare interface RadioButtonOption {
283
314
  value: string;
284
315
  checked?: boolean;
285
316
  name: string;
317
+ disabled?: boolean;
286
318
  }
287
319
 
288
320
  declare interface RadioButtonProps {
289
321
  label?: string;
290
322
  options: RadioButtonOption[];
291
- disabled?: boolean;
292
323
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
293
324
  classNameRadio?: string;
294
325
  classNameLabel?: string;