indicator-ui 1.1.108 → 1.1.109

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.
@@ -0,0 +1 @@
1
+ export * from './useTooltipModal';
@@ -0,0 +1,26 @@
1
+ import { CSSProperties } from 'react';
2
+ import { UseFloatingOptions } from '@floating-ui/react';
3
+ type Side = 'top' | 'bottom' | 'left' | 'right';
4
+ type PropsType = Pick<UseFloatingOptions, 'middleware' | 'placement' | 'strategy'> & {
5
+ shiftPadding?: number;
6
+ offset?: number;
7
+ arrowPadding?: number;
8
+ arrowOffset?: number;
9
+ arrow?: number;
10
+ arrowheadDirection?: Side;
11
+ };
12
+ export declare function useTooltipModal(props: PropsType): {
13
+ refs: {
14
+ reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
15
+ floating: React.MutableRefObject<HTMLElement | null>;
16
+ setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
17
+ setFloating: (node: HTMLElement | null) => void;
18
+ } & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
19
+ open: boolean;
20
+ setArrowRef: import('react').Dispatch<import('react').SetStateAction<Element | null>>;
21
+ floatingStyles: CSSProperties;
22
+ arrowStyle: CSSProperties;
23
+ getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
24
+ getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
25
+ };
26
+ export {};
@@ -28,3 +28,4 @@ export * from './utils';
28
28
  export * from './elementsRefsAdapteers';
29
29
  export * from './feed';
30
30
  export * from './elementsCommunication';
31
+ export * from './floatingUIUtils';
@@ -0,0 +1,3 @@
1
+ type PropsType = {};
2
+ export declare function useAnchorModalControllerFloating(props: PropsType): {};
3
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
- type PropsType = React.ComponentPropsWithoutRef<'svg'>;
2
+ import { PropsForWithInstanceRef } from '../../../../types';
3
+ type PropsType = PropsForWithInstanceRef<'svg', React.ComponentRef<'svg'>>;
3
4
  export declare function Arrow(props: PropsType): React.JSX.Element;
4
5
  export {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.108",
14
+ "version": "1.1.109",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",
@@ -80,6 +80,7 @@
80
80
  "react-dom": ">=18.0.0"
81
81
  },
82
82
  "dependencies": {
83
+ "@floating-ui/react": "^0.27.20",
83
84
  "lodash": "^4.18.1"
84
85
  }
85
86
  }