indicator-ui 1.1.107 → 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 {};
@@ -0,0 +1 @@
1
+ export { default as ArrowSVG } from './arrow.svg';
@@ -1,3 +1,4 @@
1
1
  export { default as ShapeStyle } from './Shape.module.scss';
2
2
  export { default as WrapperStyle } from './Wrapper.module.scss';
3
3
  export { default as CloseButtonStyle } from './CloseButton.module.scss';
4
+ export { default as ArrowStyle } from './Arrow.module.scss';
@@ -1,11 +1,12 @@
1
1
  import { Description, TipContent } from './components/contentBlocks';
2
2
  import { TooltipBase } from './TooltipBase';
3
- import { Shape, CloseButton } from './components';
3
+ import { Shape, CloseButton, Arrow } from './components';
4
4
  type TooltipV2Type = typeof TooltipBase & {
5
5
  TipContent: typeof TipContent;
6
6
  Description: typeof Description;
7
7
  Shape: typeof Shape;
8
8
  CloseButton: typeof CloseButton;
9
+ Arrow: typeof Arrow;
9
10
  };
10
11
  export declare const TooltipV2: TooltipV2Type;
11
12
  export {};
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { PropsForWithInstanceRef } from '../../../../types';
3
+ type PropsType = PropsForWithInstanceRef<'svg', React.ComponentRef<'svg'>>;
4
+ export declare function Arrow(props: PropsType): React.JSX.Element;
5
+ export {};
@@ -1,3 +1,4 @@
1
1
  export * from './Wrapper';
2
2
  export * from './CloseButton';
3
3
  export * from './Shape';
4
+ export * from './Arrow';
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.107",
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
  }