Skip to content

Commit e5a1cb0

Browse files
committed
fix: solve some ui bugs
1 parent 9fd0e84 commit e5a1cb0

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "doom-react-notifications",
33
"private": false,
4-
"version": "0.1.5",
4+
"version": "0.1.10",
55
"description": "A simple react notification system",
66
"author": "camilodavila",
77
"license": "MIT",

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
15
:root {
26
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
37
line-height: 1.5;

src/lib/components/Notification.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const NotificationBox: FC<NotificationType> = ({
1111
const Icon = checkIcon(type);
1212
return (
1313
<div
14-
className={`notification animated flex gap-2 content-center items-center notification-${type}`}
14+
className={`notification animated notification-${type}`}
1515
onClick={onClick}
1616
id={`${id}`}
1717
>

src/lib/components/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
export * from "./icons/SuccesSvg";
2+
export * from "./icons/ErrorSvg";
3+
export * from "./icons/WarningSvg";
4+
export * from "./icons/InfoSvg";
15
export * from "./Notification";

src/lib/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ export {
66
NotificationConsumer,
77
} from "./core";
88
export { useNotification } from "./hooks";
9-
export { Notification } from "./components";
9+
export {
10+
Notification,
11+
SuccesSvg,
12+
ErrorSvg,
13+
WarningSvg,
14+
InfoSvg,
15+
} from "./components";

src/lib/styles.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
4-
51
.notification {
6-
@apply m-2 p-2 border border-neutral-500 rounded w-72 hover:cursor-pointer transition-colors;
2+
@apply m-2 py-2 px-2 border border-neutral-500 rounded w-72 hover:cursor-pointer transition-colors flex gap-2 content-center items-center;
73
}
84

95
.notification.animated {

0 commit comments

Comments
 (0)