indicator-ui 1.1.25 → 1.1.27

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.
@@ -9,6 +9,7 @@ export declare function useDrawer<W extends HTMLElement, C extends HTMLElement>(
9
9
  open: () => void;
10
10
  close: () => void;
11
11
  toggle: () => void;
12
+ resize: (height: number) => void;
12
13
  getContentInitStyle: () => import('react').CSSProperties;
13
14
  getWrapperInitStyle: () => import('react').CSSProperties;
14
15
  };
@@ -1,14 +1,14 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { useDrawerAnimation } from './useDrawerAnimation';
3
- import { useDrawerRefs } from './useDrawerRefs';
4
3
  export type DrawerState = 'open' | 'close';
5
- type PropsType = Pick<ReturnType<typeof useDrawerRefs>, 'contentRef'> & Pick<ReturnType<typeof useDrawerAnimation>, 'resizeAnim' | 'openAnim' | 'closeAnim'> & {
4
+ type PropsType = Pick<ReturnType<typeof useDrawerAnimation>, 'resizeAnim' | 'openAnim' | 'closeAnim'> & {
6
5
  initElState: DrawerState;
7
6
  };
8
7
  export declare function useDrawerActions(props: PropsType): {
9
8
  toggle: () => void;
10
9
  open: () => void;
11
10
  close: () => void;
11
+ resize: (height: number) => void;
12
12
  elState: DrawerState;
13
13
  getElState: () => DrawerState;
14
14
  getWrapperInitStyle: () => CSSProperties;
@@ -3,6 +3,6 @@ type PropsType<W extends HTMLElement, C extends HTMLElement> = Pick<ReturnType<t
3
3
  export declare function useDrawerAnimation<W extends HTMLElement, C extends HTMLElement>(props: PropsType<W, C>): {
4
4
  openAnim: () => void;
5
5
  closeAnim: () => void;
6
- resizeAnim: () => void;
6
+ resizeAnim: (height: number) => void;
7
7
  };
8
8
  export {};
@@ -20,6 +20,7 @@ export declare function useDrawerProvider<W extends ElementType, C extends Eleme
20
20
  open: () => void;
21
21
  close: () => void;
22
22
  toggle: () => void;
23
+ resize: (height: number) => void;
23
24
  getContentInitStyle: () => CSSProperties;
24
25
  getWrapperInitStyle: () => CSSProperties;
25
26
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.25",
14
+ "version": "1.1.27",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",