@delightui/components 0.1.42 → 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;
@@ -1,16 +1,16 @@
1
1
  import type { HTMLAttributes, ReactNode } from "react";
2
2
  /**
3
3
  * Defines the type of modal footer layout.
4
- * @default "1 button"
4
+ * @default "1Button"
5
5
  */
6
- export type ModalFooterTypeEnum = "1 button" | "2 buttons";
6
+ export type ModalFooterTypeEnum = "1Button" | "2Buttons";
7
7
  /**
8
8
  * Props for the ModalFooter component.
9
9
  */
10
10
  export type ModalFooterProps = Omit<HTMLAttributes<HTMLDivElement>, 'style'> & {
11
11
  /**
12
12
  * Determines whether the footer contains one or two buttons.
13
- * @default "1 button"
13
+ * @default "1Button"
14
14
  */
15
15
  type?: ModalFooterTypeEnum;
16
16
  /**