@ttoss/react-notifications 1.24.3 → 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 +5 -10
- package/dist/index.js +4 -9
- package/package.json +1 -1
- package/src/NotificationsModal.tsx +5 -9
package/dist/esm/index.js
CHANGED
|
@@ -144,8 +144,7 @@ var NotificationsBox = ({
|
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
// src/NotificationsModal.tsx
|
|
147
|
-
import {
|
|
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(
|
|
167
|
-
|
|
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: "
|
|
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.
|
|
212
|
-
|
|
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: "
|
|
218
|
+
direction: "column"
|
|
224
219
|
})]
|
|
225
220
|
});
|
|
226
221
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
<
|
|
23
|
-
|
|
24
|
-
style={{ alignSelf: 'flex-end' }}
|
|
21
|
+
<CloseButton
|
|
22
|
+
sx={{ alignSelf: 'flex-end' }}
|
|
25
23
|
onClick={() => {
|
|
26
24
|
setNotifications(undefined);
|
|
27
25
|
}}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</Button>
|
|
31
|
-
<NotificationsBox direction="row" />
|
|
26
|
+
/>
|
|
27
|
+
<NotificationsBox direction="column" />
|
|
32
28
|
</Modal>
|
|
33
29
|
);
|
|
34
30
|
};
|