forstok-ui-lib 4.0.1 → 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.1",
3
+ "version": "4.1.0",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -37,12 +37,10 @@
37
37
  "@types/html-to-text": "^9.0.4",
38
38
  "@types/react": "^19.0.2",
39
39
  "@types/react-dom": "^19.0.2",
40
- "crypto-js": "^4.2.0",
41
40
  "html-to-text": "^9.0.5",
42
41
  "react": "^19.0.0",
43
42
  "react-dom": "^19.0.0",
44
43
  "react-router-dom": "^7.1.1",
45
- "react-tooltip": "^4.5.1",
46
44
  "rollup-plugin-dts": "^6.1.1",
47
45
  "rollup-plugin-peer-deps-external": "^2.2.4",
48
46
  "rollup-plugin-postcss": "^4.0.2",
package/rollup.config.js CHANGED
@@ -4,7 +4,7 @@ import commonjs from '@rollup/plugin-commonjs';
4
4
  import terser from '@rollup/plugin-terser';
5
5
  import postcss from 'rollup-plugin-postcss';
6
6
  import dts from 'rollup-plugin-dts';
7
- import typescript from "@rollup/plugin-typescript";
7
+ import typescript from '@rollup/plugin-typescript';
8
8
  import url from '@rollup/plugin-url';
9
9
  import svgr from '@svgr/rollup';
10
10
  import image from '@rollup/plugin-image';
@@ -20,21 +20,21 @@ export default [
20
20
  file: packageJson.main,
21
21
  format: 'cjs',
22
22
  sourcemap: true,
23
- interop: "auto",
23
+ interop: 'auto',
24
24
  },
25
25
  {
26
26
  file: packageJson.module,
27
27
  format: 'esm',
28
28
  sourcemap: true,
29
- interop: "auto",
29
+ interop: 'auto',
30
30
  },
31
31
  ],
32
32
  plugins: [
33
33
  PeerDepsExternalPlugin(),
34
- resolve(),
34
+ resolve({exportConditions: ['node']}),
35
35
  commonjs(),
36
36
  typescript({
37
- tsconfig: "./tsconfig.json",
37
+ tsconfig: './tsconfig.json',
38
38
  transformers: [
39
39
  (program) => ({
40
40
  before: [createStyledComponentsTransformer(program, {
@@ -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(() => {
package/tsconfig.json CHANGED
@@ -18,12 +18,7 @@
18
18
  "moduleResolution": "node",
19
19
  "resolveJsonModule": true,
20
20
  "isolatedModules": true,
21
- "jsx": "react-jsx",
22
- "paths": {
23
- "crypto": [
24
- "./node_modules/crypto-js"
25
- ]
26
- }
21
+ "jsx": "react-jsx"
27
22
  },
28
23
  "include": [
29
24
  "src",