forstok-ui-lib 4.0.2 → 4.1.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,6 @@
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "react-router-dom": "^7.1.1",
44
- "react-tooltip": "^4.5.1",
45
44
  "rollup-plugin-dts": "^6.1.1",
46
45
  "rollup-plugin-peer-deps-external": "^2.2.4",
47
46
  "rollup-plugin-postcss": "^4.0.2",
@@ -1,15 +1,10 @@
1
1
  import { useEffect, useRef, isValidElement } from 'react';
2
- import ReactTooltip from 'react-tooltip';
3
2
  import ReactPortalComponent from '../portal/react_portal';
4
3
  import { DropDownContainer, DropDownTitle, DropDownSubTitle, DropDownWrapper, DropDownOverlayWrapper, DropDownControl, DropDownBody, DropDownAction, DropdownControlWrapper, DropdownPortalContainer } from './dropdown.styles';
5
4
  import type { TMouseEvent } from '../../typeds/base.typed';
6
5
  import type { TDropdown } from './dropdown.typed';
7
6
 
8
7
  const DropDownComponent = ({ children, title, subTitle, $externalWidth, $externalMinWidth, $internalWidth, $area, $openPosition, $placement, $top, onClick, $alias, type, portalId, $bottom, ...props }: TDropdown) => {
9
- useEffect(() => {
10
- ReactTooltip.rebuild() ;
11
- }, [])
12
-
13
8
  const buttonRef = useRef<HTMLElement>(null);
14
9
 
15
10
  const evScrollDropdown = () => {
@@ -1,5 +1,4 @@
1
1
  import { type ReactNode, isValidElement, useEffect, useRef, useCallback } from 'react';
2
- import ReactTooltip from 'react-tooltip';
3
2
  import { useStateWithCallbackLazy } from 'use-state-with-callback';
4
3
  import ButtonComponent from '../button/button';
5
4
  import IconComponent from '../icon/icon';
@@ -16,7 +15,6 @@ const PopupComponent = ({ children, body, mode, height, width, isOpen, evToogleP
16
15
  const [isOpenWrapper, setOpenWrapper] = useStateWithCallbackLazy<boolean>(false);
17
16
 
18
17
  const popupContainerRef = useRef<HTMLElement | null>(null);
19
- useEffect(() => { ReactTooltip.rebuild(); }, [])
20
18
 
21
19
  const evOpen = useCallback((isOpen: boolean) => {
22
20
  timerHandle = setTimeout(() => {