@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
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, ReactNode, MouseEvent, FormHTMLAttributes, Ref, InputHTMLAttributes, TextareaHTMLAttributes,
|
|
3
|
+
import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, ReactNode, MouseEvent, FormHTMLAttributes, Ref, InputHTMLAttributes, TextareaHTMLAttributes, LiHTMLAttributes, CSSProperties, RefObject, TableHTMLAttributes, TdHTMLAttributes } from 'react';
|
|
4
4
|
import { LinkProps } from 'react-router-dom';
|
|
5
5
|
import { Plugin } from 'flatpickr/dist/types/options';
|
|
6
6
|
import FlatPickr from 'react-flatpickr';
|
|
@@ -302,6 +302,7 @@ type FormContextValues<T extends FormState = FormState> = {
|
|
|
302
302
|
onFormSubmit: React__default.FormEventHandler<HTMLFormElement>;
|
|
303
303
|
updateFieldValidators: (name: keyof T, validate?: FieldValidationFunction) => void;
|
|
304
304
|
updateRequiredFields: (name: keyof T, required?: boolean) => void;
|
|
305
|
+
resetForm: () => void;
|
|
305
306
|
};
|
|
306
307
|
type FormProviderProps<T extends FormState = FormState> = {
|
|
307
308
|
formRef?: Ref<HTMLFormElement>;
|
|
@@ -1243,7 +1244,7 @@ type ListProps<T extends ListItemType> = Omit<HTMLAttributes<HTMLUListElement>,
|
|
|
1243
1244
|
* @param data
|
|
1244
1245
|
* @returns
|
|
1245
1246
|
*/
|
|
1246
|
-
updateSortOrder?:
|
|
1247
|
+
updateSortOrder?: (data: T[]) => void;
|
|
1247
1248
|
};
|
|
1248
1249
|
|
|
1249
1250
|
/**
|