@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/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, Dispatch, SetStateAction, LiHTMLAttributes, CSSProperties, RefObject, TableHTMLAttributes, TdHTMLAttributes } from 'react';
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?: Dispatch<SetStateAction<T[]>>;
1247
+ updateSortOrder?: (data: T[]) => void;
1247
1248
  };
1248
1249
 
1249
1250
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.102",
3
+ "version": "0.1.104",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",