@delightui/components 0.1.102 → 0.1.104
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/List/List.types.d.ts +2 -2
- package/dist/cjs/components/molecules/List/ListExample.d.ts +1 -0
- package/dist/cjs/components/organisms/Form/Form.types.d.ts +1 -0
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/List/List.types.d.ts +2 -2
- package/dist/esm/components/molecules/List/ListExample.d.ts +1 -0
- package/dist/esm/components/organisms/Form/Form.types.d.ts +1 -0
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import { IconButtonProps } from '../../atoms';
|
|
3
3
|
/**
|
|
4
4
|
* Enum for the alignment of the list.
|
|
@@ -134,5 +134,5 @@ export type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListEle
|
|
|
134
134
|
* @param data
|
|
135
135
|
* @returns
|
|
136
136
|
*/
|
|
137
|
-
updateSortOrder?:
|
|
137
|
+
updateSortOrder?: (data: T[]) => void;
|
|
138
138
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ListExample: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -123,6 +123,7 @@ export type FormContextValues<T extends FormState = FormState> = {
|
|
|
123
123
|
onFormSubmit: React.FormEventHandler<HTMLFormElement>;
|
|
124
124
|
updateFieldValidators: (name: keyof T, validate?: FieldValidationFunction) => void;
|
|
125
125
|
updateRequiredFields: (name: keyof T, required?: boolean) => void;
|
|
126
|
+
resetForm: () => void;
|
|
126
127
|
};
|
|
127
128
|
export type FormProviderProps<T extends FormState = FormState> = {
|
|
128
129
|
formRef?: Ref<HTMLFormElement>;
|