@salutejs/plasma-core 1.234.0-next-sbcom.0 → 1.235.0-dev.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.
@@ -71,7 +71,7 @@ const fadeOut = (0, _styledcomponents.keyframes)([
71
71
  ]);
72
72
  const StyledFade = (0, _styledcomponents.default)(_Fade.Fade).withConfig({
73
73
  displayName: "ToastController__StyledFade",
74
- componentId: "sc-339da759-0"
74
+ componentId: "sc-9bae1dfe-0"
75
75
  })([
76
76
  ``,
77
77
  `;`
@@ -81,7 +81,7 @@ const StyledFade = (0, _styledcomponents.default)(_Fade.Fade).withConfig({
81
81
  ], isVisible ? fadeIn : fadeOut));
82
82
  const StyledRoot = _styledcomponents.default.div.withConfig({
83
83
  displayName: "ToastController__StyledRoot",
84
- componentId: "sc-339da759-1"
84
+ componentId: "sc-9bae1dfe-1"
85
85
  })([
86
86
  `position:fixed;left:50%;z-index:1000;transform:translateX(-50%);`,
87
87
  `;display:flex;width:0;`,
@@ -107,7 +107,7 @@ const ToastController = ({ role, text, contentLeft, position, timeout, fade, off
107
107
  if (isVisible) {
108
108
  hideTimeout.current = setTimeout(()=>{
109
109
  setIsVisible(false);
110
- }, timeout);
110
+ }, timeout || 0);
111
111
  }
112
112
  // eslint-disable-next-line react-hooks/exhaustive-deps
113
113
  }, [
@@ -20,7 +20,7 @@ const fadeOut = keyframes([
20
20
  ]);
21
21
  const StyledFade = styled(Fade).withConfig({
22
22
  displayName: "ToastController__StyledFade",
23
- componentId: "sc-339da759-0"
23
+ componentId: "sc-9bae1dfe-0"
24
24
  })([
25
25
  ``,
26
26
  `;`
@@ -30,7 +30,7 @@ const StyledFade = styled(Fade).withConfig({
30
30
  ], isVisible ? fadeIn : fadeOut));
31
31
  const StyledRoot = styled.div.withConfig({
32
32
  displayName: "ToastController__StyledRoot",
33
- componentId: "sc-339da759-1"
33
+ componentId: "sc-9bae1dfe-1"
34
34
  })([
35
35
  `position:fixed;left:50%;z-index:1000;transform:translateX(-50%);`,
36
36
  `;display:flex;width:0;`,
@@ -59,7 +59,7 @@ const StyledRoot = styled.div.withConfig({
59
59
  if (isVisible) {
60
60
  hideTimeout.current = setTimeout(()=>{
61
61
  setIsVisible(false);
62
- }, timeout);
62
+ }, timeout || 0);
63
63
  }
64
64
  // eslint-disable-next-line react-hooks/exhaustive-deps
65
65
  }, [
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-core",
3
- "version": "1.234.0-next-sbcom.0",
3
+ "version": "1.235.0-dev.0",
4
4
  "description": "Core library for Plasma: Salute Design System.",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/salute-developers/plasma.git",
13
+ "directory": "packages/plasma-core"
14
+ },
10
15
  "main": "index.js",
11
16
  "module": "es/index.js",
12
17
  "types": "index.d.ts",
@@ -17,7 +22,7 @@
17
22
  },
18
23
  "dependencies": {
19
24
  "@popperjs/core": "2.9.2",
20
- "@salutejs/plasma-typo": "0.46.0-next-sbcom.0",
25
+ "@salutejs/plasma-typo": "0.48.0-dev.0",
21
26
  "focus-visible": "5.2.0",
22
27
  "lodash.throttle": "4.1.1",
23
28
  "react-draggable": "4.4.3",
@@ -31,7 +36,7 @@
31
36
  "@babel/preset-env": "7.24.4",
32
37
  "@babel/preset-react": "7.24.1",
33
38
  "@babel/preset-typescript": "7.24.1",
34
- "@salutejs/plasma-cy-utils": "0.164.0-next-sbcom.0",
39
+ "@salutejs/plasma-cy-utils": "0.165.0-dev.0",
35
40
  "@types/jest": "27.0.1",
36
41
  "@types/lodash.throttle": "4.1.6",
37
42
  "@types/node": "15.14.9",
@@ -75,5 +80,5 @@
75
80
  "salute.developers@gmail.com"
76
81
  ],
77
82
  "sideEffects": false,
78
- "gitHead": "e3fdc1d1ec835c185f57201ef48ba11fdc04140d"
83
+ "gitHead": "f47f14d572251d01146ea257b4f87e906537a1e2"
79
84
  }