indicator-ui 0.1.109 → 0.1.110

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.
@@ -2,3 +2,4 @@ export * from './useControlInput';
2
2
  export * from './useKeyboardInput';
3
3
  export * from './useKeyboardPressing';
4
4
  export * from './useTouchpadInput';
5
+ export * from './useDrag';
@@ -0,0 +1,16 @@
1
+ import { useSimpleRefElementWork } from "../../hooks";
2
+ type DragStateType = {
3
+ fromX: number;
4
+ fromY: number;
5
+ toX: number;
6
+ toY: number;
7
+ status: 'start' | 'moving' | 'end';
8
+ };
9
+ type PropsType = [
10
+ ref: Parameters<typeof useSimpleRefElementWork>[number],
11
+ callback: (data: DragStateType) => void
12
+ ];
13
+ export declare function useDrag(...args: PropsType): {
14
+ isDrag: boolean;
15
+ };
16
+ export {};
@@ -0,0 +1 @@
1
+ export declare function UseDragPage(): JSX.Element;
@@ -26,3 +26,4 @@ export * from './UiAnimationsPage';
26
26
  export * from './FormPage';
27
27
  export * from './SelectFieldPage';
28
28
  export * from './BreadcrumbsPage';
29
+ export * from './UseDragPage';
@@ -28,7 +28,7 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
28
28
  canSearch: boolean;
29
29
  canPaginate: boolean;
30
30
  isLoading: boolean;
31
- fieldState: "view" | "search";
31
+ fieldState: "search" | "view";
32
32
  setIsFocus: React.Dispatch<React.SetStateAction<boolean>>;
33
33
  isShow: boolean;
34
34
  getIsShow: () => boolean;
@@ -40,18 +40,18 @@ export declare function useFormPaginatedSelectField<D, M extends boolean = false
40
40
  modalRef: React.MutableRefObject<HTMLDivElement | null>;
41
41
  targetRef: React.MutableRefObject<HTMLDivElement | null>;
42
42
  otherProps: {
43
- ref?: React.LegacyRef<HTMLDivElement> | undefined;
44
- slot?: string | undefined | undefined;
45
- style?: React.CSSProperties | undefined;
46
- title?: string | undefined | undefined;
47
43
  id?: string | undefined | undefined;
44
+ ref?: React.LegacyRef<HTMLDivElement> | undefined;
48
45
  color?: string | undefined | undefined;
49
46
  content?: string | undefined | undefined;
50
47
  translate?: "yes" | "no" | undefined | undefined;
51
48
  hidden?: boolean | undefined | undefined;
52
- key?: React.Key | null | undefined;
49
+ slot?: string | undefined | undefined;
50
+ style?: React.CSSProperties | undefined;
51
+ title?: string | undefined | undefined;
53
52
  onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
54
53
  onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
54
+ key?: React.Key | null | undefined;
55
55
  defaultChecked?: boolean | undefined | undefined;
56
56
  defaultValue?: string | number | readonly string[] | undefined;
57
57
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -1,4 +1,4 @@
1
1
  export declare function useSelectFieldState(): {
2
- fieldState: "view" | "search";
2
+ fieldState: "search" | "view";
3
3
  setIsFocus: import("react").Dispatch<import("react").SetStateAction<boolean>>;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indicator-ui",
3
- "version": "0.1.109",
3
+ "version": "0.1.110",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/ts/src/index.d.ts",
6
6
  "style": "dist/index.css",