@ttoss/react-notifications 1.23.1 → 1.24.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/README.md +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +5 -4
- package/src/NotificationsModal.tsx +2 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This module handles notifications in your applications and other ttoss modules.
|
|
|
9
9
|
### Install
|
|
10
10
|
|
|
11
11
|
```shell
|
|
12
|
-
pnpm add @ttoss/notifications @ttoss/ui @emotion/react
|
|
12
|
+
pnpm add @ttoss/notifications @ttoss/ui @ttoss/react-icons @emotion/react
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Usage
|
package/dist/esm/index.js
CHANGED
|
@@ -144,7 +144,8 @@ var NotificationsBox = ({
|
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
// src/NotificationsModal.tsx
|
|
147
|
-
import { Button as Button2
|
|
147
|
+
import { Button as Button2 } from "@ttoss/ui";
|
|
148
|
+
import { Icon } from "@ttoss/react-icons";
|
|
148
149
|
import { Modal } from "@ttoss/components";
|
|
149
150
|
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
150
151
|
var NotificationsModal = () => {
|
package/dist/index.js
CHANGED
|
@@ -190,6 +190,7 @@ var NotificationsBox = ({
|
|
|
190
190
|
|
|
191
191
|
// src/NotificationsModal.tsx
|
|
192
192
|
var import_ui3 = require("@ttoss/ui");
|
|
193
|
+
var import_react_icons = require("@ttoss/react-icons");
|
|
193
194
|
var import_components = require("@ttoss/components");
|
|
194
195
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
195
196
|
var NotificationsModal = () => {
|
|
@@ -215,7 +216,7 @@ var NotificationsModal = () => {
|
|
|
215
216
|
onClick: () => {
|
|
216
217
|
setNotifications(void 0);
|
|
217
218
|
},
|
|
218
|
-
children: /* @__PURE__ */(0, import_jsx_runtime3.jsx)(
|
|
219
|
+
children: /* @__PURE__ */(0, import_jsx_runtime3.jsx)(import_react_icons.Icon, {
|
|
219
220
|
icon: "close"
|
|
220
221
|
})
|
|
221
222
|
}), /* @__PURE__ */(0, import_jsx_runtime3.jsx)(NotificationsBox, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-notifications",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"description": "ttoss notifications module for React apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -22,15 +22,16 @@
|
|
|
22
22
|
"typings": "dist/index.d.ts",
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.8.0",
|
|
25
|
-
"@ttoss/components": "^1.29.
|
|
26
|
-
"@ttoss/
|
|
25
|
+
"@ttoss/components": "^1.29.10",
|
|
26
|
+
"@ttoss/react-icons": "^0.1.0",
|
|
27
|
+
"@ttoss/ui": "^3.1.0"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@types/react": "^18.2.12",
|
|
30
31
|
"jest": "^29.6.1",
|
|
31
32
|
"react": "^18.2.0",
|
|
32
33
|
"tsup": "^7.1.0",
|
|
33
|
-
"@ttoss/components": "^1.29.
|
|
34
|
+
"@ttoss/components": "^1.29.10",
|
|
34
35
|
"@ttoss/config": "^1.30.5",
|
|
35
36
|
"@ttoss/test-utils": "^1.23.6"
|
|
36
37
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from '@ttoss/ui';
|
|
2
|
+
import { Icon } from '@ttoss/react-icons';
|
|
2
3
|
import { Modal } from '@ttoss/components';
|
|
3
4
|
import { NotificationsBox } from './NotificationsBox';
|
|
4
5
|
import { useNotifications } from './Provider';
|