@alfalab/core-components-notification 6.1.19 → 6.1.20

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/Component.d.ts CHANGED
@@ -47,7 +47,7 @@ declare const Notification: React.ForwardRefExoticComponent<React.HTMLAttributes
47
47
  actionSectionClassName?: string | undefined;
48
48
  children?: React.ReactNode;
49
49
  title?: React.ReactNode;
50
- badge?: "positive" | "attention" | "negative" | undefined;
50
+ badge?: "attention" | "positive" | "negative" | undefined;
51
51
  leftAddons?: React.ReactNode;
52
52
  actionButton?: React.ReactNode;
53
53
  dataTestId?: string | undefined;
package/Component.js CHANGED
@@ -20,7 +20,7 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
20
20
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
21
21
  var elementClosest__default = /*#__PURE__*/_interopDefaultCompat(elementClosest);
22
22
 
23
- var styles = {"notificationComponent":"notification__notificationComponent_6hin1","isVisible":"notification__isVisible_6hin1","isClosing":"notification__isClosing_6hin1","toastContent":"notification__toastContent_6hin1","actionSection":"notification__actionSection_6hin1"};
23
+ var styles = {"notificationComponent":"notification__notificationComponent_h3jaj","isVisible":"notification__isVisible_h3jaj","isClosing":"notification__isClosing_h3jaj","toastContent":"notification__toastContent_h3jaj","actionSection":"notification__actionSection_h3jaj"};
24
24
  require('./index.css')
25
25
 
26
26
  var notificationClassNameSelector = ".".concat(styles.notificationComponent);
@@ -47,7 +47,7 @@ declare const Notification: React.ForwardRefExoticComponent<React.HTMLAttributes
47
47
  actionSectionClassName?: string | undefined;
48
48
  children?: React.ReactNode;
49
49
  title?: React.ReactNode;
50
- badge?: "positive" | "attention" | "negative" | undefined;
50
+ badge?: "attention" | "positive" | "negative" | undefined;
51
51
  leftAddons?: React.ReactNode;
52
52
  actionButton?: React.ReactNode;
53
53
  dataTestId?: string | undefined;
@@ -47,7 +47,7 @@ declare const Notification: React.ForwardRefExoticComponent<React.HTMLAttributes
47
47
  actionSectionClassName?: string | undefined;
48
48
  children?: React.ReactNode;
49
49
  title?: React.ReactNode;
50
- badge?: "positive" | "attention" | "negative" | undefined;
50
+ badge?: "attention" | "positive" | "negative" | undefined;
51
51
  leftAddons?: React.ReactNode;
52
52
  actionButton?: React.ReactNode;
53
53
  dataTestId?: string | undefined;
package/esm/Component.js CHANGED
@@ -9,7 +9,7 @@ import { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';
9
9
  import { ToastPlate } from '@alfalab/core-components-toast-plate/esm';
10
10
  import { useClickOutside } from './utils/index.js';
11
11
 
12
- var styles = {"notificationComponent":"notification__notificationComponent_6hin1","isVisible":"notification__isVisible_6hin1","isClosing":"notification__isClosing_6hin1","toastContent":"notification__toastContent_6hin1","actionSection":"notification__actionSection_6hin1"};
12
+ var styles = {"notificationComponent":"notification__notificationComponent_h3jaj","isVisible":"notification__isVisible_h3jaj","isClosing":"notification__isClosing_h3jaj","toastContent":"notification__toastContent_h3jaj","actionSection":"notification__actionSection_h3jaj"};
13
13
  require('./index.css')
14
14
 
15
15
  var notificationClassNameSelector = ".".concat(styles.notificationComponent);
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 67yms */
1
+ /* hash: nnh9f */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  --notification-desktop-content-width: 278px;
24
- } .notification__notificationComponent_6hin1 {
24
+ } .notification__notificationComponent_h3jaj {
25
25
  visibility: hidden;
26
26
  position: fixed;
27
27
  right: var(--gap-s);
@@ -32,24 +32,24 @@
32
32
  -webkit-user-select: none;
33
33
  user-select: none;
34
34
  transition: transform 0.4s ease-out
35
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1 {
35
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj {
36
36
  right: var(--gap-4xl);
37
37
  width: auto;
38
38
  transform: translate(calc(100% + var(--gap-4xl)), 0)
39
39
  }
40
- } .notification__notificationComponent_6hin1.notification__isVisible_6hin1 {
40
+ } .notification__notificationComponent_h3jaj.notification__isVisible_h3jaj {
41
41
  visibility: visible;
42
42
  transform: translate(0, 0);
43
- } .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
43
+ } .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
44
44
  transition: transform 0.1s ease-out;
45
45
  transform: translate(100vw, 0)
46
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
46
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
47
47
  transform: translate(calc(100% + var(--gap-4xl)), 0)
48
48
  }
49
- } @media screen and (min-width: 600px) { .notification__toastContent_6hin1 {
49
+ } @media screen and (min-width: 600px) { .notification__toastContent_h3jaj {
50
50
  width: var(--notification-desktop-content-width)
51
51
  }
52
- } .notification__actionSection_6hin1 {
52
+ } .notification__actionSection_h3jaj {
53
53
  min-width: 104px;
54
54
  min-height: 48px;
55
55
  padding: 0 var(--gap-xs);
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 67yms */
1
+ /* hash: nnh9f */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  --notification-desktop-content-width: 278px;
24
- } .notification__notificationComponent_6hin1 {
24
+ } .notification__notificationComponent_h3jaj {
25
25
  visibility: hidden;
26
26
  position: fixed;
27
27
  right: var(--gap-s);
@@ -32,24 +32,24 @@
32
32
  -webkit-user-select: none;
33
33
  user-select: none;
34
34
  transition: transform 0.4s ease-out
35
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1 {
35
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj {
36
36
  right: var(--gap-4xl);
37
37
  width: auto;
38
38
  transform: translate(calc(100% + var(--gap-4xl)), 0)
39
39
  }
40
- } .notification__notificationComponent_6hin1.notification__isVisible_6hin1 {
40
+ } .notification__notificationComponent_h3jaj.notification__isVisible_h3jaj {
41
41
  visibility: visible;
42
42
  transform: translate(0, 0);
43
- } .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
43
+ } .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
44
44
  transition: transform 0.1s ease-out;
45
45
  transform: translate(100vw, 0)
46
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
46
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
47
47
  transform: translate(calc(100% + var(--gap-4xl)), 0)
48
48
  }
49
- } @media screen and (min-width: 600px) { .notification__toastContent_6hin1 {
49
+ } @media screen and (min-width: 600px) { .notification__toastContent_h3jaj {
50
50
  width: var(--notification-desktop-content-width)
51
51
  }
52
- } .notification__actionSection_6hin1 {
52
+ } .notification__actionSection_h3jaj {
53
53
  min-width: 104px;
54
54
  min-height: 48px;
55
55
  padding: 0 var(--gap-xs);
@@ -47,7 +47,7 @@ declare const Notification: React.ForwardRefExoticComponent<React.HTMLAttributes
47
47
  actionSectionClassName?: string | undefined;
48
48
  children?: React.ReactNode;
49
49
  title?: React.ReactNode;
50
- badge?: "positive" | "attention" | "negative" | undefined;
50
+ badge?: "attention" | "positive" | "negative" | undefined;
51
51
  leftAddons?: React.ReactNode;
52
52
  actionButton?: React.ReactNode;
53
53
  dataTestId?: string | undefined;
@@ -8,7 +8,7 @@ import { Stack, stackingOrder } from '@alfalab/core-components-stack/modern';
8
8
  import { ToastPlate } from '@alfalab/core-components-toast-plate/modern';
9
9
  import { useClickOutside } from './utils/index.js';
10
10
 
11
- const styles = {"notificationComponent":"notification__notificationComponent_6hin1","isVisible":"notification__isVisible_6hin1","isClosing":"notification__isClosing_6hin1","toastContent":"notification__toastContent_6hin1","actionSection":"notification__actionSection_6hin1"};
11
+ const styles = {"notificationComponent":"notification__notificationComponent_h3jaj","isVisible":"notification__isVisible_h3jaj","isClosing":"notification__isClosing_h3jaj","toastContent":"notification__toastContent_h3jaj","actionSection":"notification__actionSection_h3jaj"};
12
12
  require('./index.css')
13
13
 
14
14
  const notificationClassNameSelector = `.${styles.notificationComponent}`;
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 67yms */
1
+ /* hash: nnh9f */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -21,7 +21,7 @@
21
21
  } :root {
22
22
  } :root {
23
23
  --notification-desktop-content-width: 278px;
24
- } .notification__notificationComponent_6hin1 {
24
+ } .notification__notificationComponent_h3jaj {
25
25
  visibility: hidden;
26
26
  position: fixed;
27
27
  right: var(--gap-s);
@@ -32,24 +32,24 @@
32
32
  -webkit-user-select: none;
33
33
  user-select: none;
34
34
  transition: transform 0.4s ease-out
35
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1 {
35
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj {
36
36
  right: var(--gap-4xl);
37
37
  width: auto;
38
38
  transform: translate(calc(100% + var(--gap-4xl)), 0)
39
39
  }
40
- } .notification__notificationComponent_6hin1.notification__isVisible_6hin1 {
40
+ } .notification__notificationComponent_h3jaj.notification__isVisible_h3jaj {
41
41
  visibility: visible;
42
42
  transform: translate(0, 0);
43
- } .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
43
+ } .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
44
44
  transition: transform 0.1s ease-out;
45
45
  transform: translate(100vw, 0)
46
- } @media screen and (min-width: 600px) { .notification__notificationComponent_6hin1.notification__isClosing_6hin1 {
46
+ } @media screen and (min-width: 600px) { .notification__notificationComponent_h3jaj.notification__isClosing_h3jaj {
47
47
  transform: translate(calc(100% + var(--gap-4xl)), 0)
48
48
  }
49
- } @media screen and (min-width: 600px) { .notification__toastContent_6hin1 {
49
+ } @media screen and (min-width: 600px) { .notification__toastContent_h3jaj {
50
50
  width: var(--notification-desktop-content-width)
51
51
  }
52
- } .notification__actionSection_6hin1 {
52
+ } .notification__actionSection_h3jaj {
53
53
  min-width: 104px;
54
54
  min-height: 48px;
55
55
  padding: 0 var(--gap-xs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-notification",
3
- "version": "6.1.19",
3
+ "version": "6.1.20",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@alfalab/core-components-portal": "^3.1.4",
21
21
  "@alfalab/core-components-stack": "^4.0.4",
22
- "@alfalab/core-components-toast-plate": "^5.1.16",
22
+ "@alfalab/core-components-toast-plate": "^5.1.17",
23
23
  "classnames": "^2.3.1",
24
24
  "element-closest": "^3.0.2",
25
25
  "react-merge-refs": "^1.1.0",