@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.
- package/dist/cjs/components/molecules/Accordion/Accordion.types.d.ts +6 -0
- package/dist/cjs/components/molecules/FormField/FormField.types.d.ts +4 -0
- package/dist/cjs/components/molecules/FormField/useField.d.ts +1 -0
- package/dist/cjs/library.css +4393 -1589
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Accordion/Accordion.types.d.ts +6 -0
- package/dist/esm/components/molecules/FormField/FormField.types.d.ts +4 -0
- package/dist/esm/components/molecules/FormField/useField.d.ts +1 -0
- package/dist/esm/library.css +4393 -1589
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -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.
|