@ttoss/react-notifications 1.24.2 → 1.24.4

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/dist/esm/index.js CHANGED
@@ -144,8 +144,7 @@ var NotificationsBox = ({
144
144
  };
145
145
 
146
146
  // src/NotificationsModal.tsx
147
- import { Button as Button2 } from "@ttoss/ui";
148
- import { Icon } from "@ttoss/react-icons";
147
+ import { CloseButton } from "@ttoss/ui";
149
148
  import { Modal } from "@ttoss/components";
150
149
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
151
150
  var NotificationsModal = () => {
@@ -163,19 +162,15 @@ var NotificationsModal = () => {
163
162
  alignItems: "center"
164
163
  }
165
164
  },
166
- children: [/* @__PURE__ */jsx3(Button2, {
167
- placeholder: "Close",
168
- style: {
165
+ children: [/* @__PURE__ */jsx3(CloseButton, {
166
+ sx: {
169
167
  alignSelf: "flex-end"
170
168
  },
171
169
  onClick: () => {
172
170
  setNotifications(void 0);
173
- },
174
- children: /* @__PURE__ */jsx3(Icon, {
175
- icon: "close"
176
- })
171
+ }
177
172
  }), /* @__PURE__ */jsx3(NotificationsBox, {
178
- direction: "row"
173
+ direction: "column"
179
174
  })]
180
175
  });
181
176
  };
package/dist/index.js CHANGED
@@ -190,7 +190,6 @@ 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");
194
193
  var import_components = require("@ttoss/components");
195
194
  var import_jsx_runtime3 = require("react/jsx-runtime");
196
195
  var NotificationsModal = () => {
@@ -208,19 +207,15 @@ var NotificationsModal = () => {
208
207
  alignItems: "center"
209
208
  }
210
209
  },
211
- children: [/* @__PURE__ */(0, import_jsx_runtime3.jsx)(import_ui3.Button, {
212
- placeholder: "Close",
213
- style: {
210
+ children: [/* @__PURE__ */(0, import_jsx_runtime3.jsx)(import_ui3.CloseButton, {
211
+ sx: {
214
212
  alignSelf: "flex-end"
215
213
  },
216
214
  onClick: () => {
217
215
  setNotifications(void 0);
218
- },
219
- children: /* @__PURE__ */(0, import_jsx_runtime3.jsx)(import_react_icons.Icon, {
220
- icon: "close"
221
- })
216
+ }
222
217
  }), /* @__PURE__ */(0, import_jsx_runtime3.jsx)(NotificationsBox, {
223
- direction: "row"
218
+ direction: "column"
224
219
  })]
225
220
  });
226
221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-notifications",
3
- "version": "1.24.2",
3
+ "version": "1.24.4",
4
4
  "description": "ttoss notifications module for React apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -22,7 +22,7 @@
22
22
  "typings": "dist/index.d.ts",
23
23
  "peerDependencies": {
24
24
  "react": ">=16.8.0",
25
- "@ttoss/components": "^1.29.12",
25
+ "@ttoss/components": "^1.29.13",
26
26
  "@ttoss/react-icons": "^0.1.1",
27
27
  "@ttoss/ui": "^3.1.1"
28
28
  },
@@ -31,7 +31,7 @@
31
31
  "jest": "^29.6.2",
32
32
  "react": "^18.2.0",
33
33
  "tsup": "^7.1.0",
34
- "@ttoss/components": "^1.29.12",
34
+ "@ttoss/components": "^1.29.13",
35
35
  "@ttoss/config": "^1.30.6",
36
36
  "@ttoss/test-utils": "^1.23.7"
37
37
  },
@@ -1,5 +1,4 @@
1
- import { Button } from '@ttoss/ui';
2
- import { Icon } from '@ttoss/react-icons';
1
+ import { CloseButton } from '@ttoss/ui';
3
2
  import { Modal } from '@ttoss/components';
4
3
  import { NotificationsBox } from './NotificationsBox';
5
4
  import { useNotifications } from './Provider';
@@ -19,16 +18,13 @@ export const NotificationsModal = () => {
19
18
  },
20
19
  }}
21
20
  >
22
- <Button
23
- placeholder="Close"
24
- style={{ alignSelf: 'flex-end' }}
21
+ <CloseButton
22
+ sx={{ alignSelf: 'flex-end' }}
25
23
  onClick={() => {
26
24
  setNotifications(undefined);
27
25
  }}
28
- >
29
- <Icon icon={'close'}></Icon>
30
- </Button>
31
- <NotificationsBox direction="row" />
26
+ />
27
+ <NotificationsBox direction="column" />
32
28
  </Modal>
33
29
  );
34
30
  };