@delightui/components 0.1.43 → 0.1.44

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.
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from "react";
2
+ export type AccordionSizeEnum = 'Small' | 'Medium' | 'Large';
2
3
  export type AccordionSummaryProps = {
3
4
  children: ReactNode;
4
5
  className?: string;
@@ -21,6 +22,11 @@ export type AccordionDetailsProps = {
21
22
  export type AccordionProps = {
22
23
  children: ReactNode;
23
24
  className?: string;
25
+ /**
26
+ * The size of the accordion.
27
+ * @default 'Medium'
28
+ */
29
+ size?: AccordionSizeEnum;
24
30
  /**
25
31
  * Whether the accordion is expanded by default.
26
32
  * @default false
@@ -56,6 +56,10 @@ export type FormFieldContextValues<T extends FieldValue = FieldValue> = {
56
56
  * id to use as htmlFor for label and id for input elements
57
57
  */
58
58
  formFieldId: string;
59
+ /**
60
+ * name of the form field
61
+ */
62
+ name?: string;
59
63
  };
60
64
  /**
61
65
  * Props for the FormFieldProvider component.
@@ -7,5 +7,6 @@ declare const useField: <T extends FieldValue = FieldValue>(props: UseFieldProps
7
7
  requiredField: boolean | undefined;
8
8
  invalidField: boolean | undefined;
9
9
  formFieldId: string | undefined;
10
+ name: string | undefined;
10
11
  };
11
12
  export default useField;