@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.
@@ -1,4 +1,4 @@
1
- import type { Dispatch, HTMLAttributes, SetStateAction } from 'react';
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?: Dispatch<SetStateAction<T[]>>;
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>;