@appcorp/kismaa-web-ui 0.2.70 → 0.2.72
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.
|
@@ -115,7 +115,7 @@ var LoggedInUserAvatar = function (_a) {
|
|
|
115
115
|
react_2.default.createElement("span", { className: "bg-primary relative inline-flex size-3 rounded-full" }))),
|
|
116
116
|
react_2.default.createElement(BellIcon_1.default, { className: "stroke-primary size-7 h-full" })))))),
|
|
117
117
|
react_2.default.createElement(react_1.PopoverPanel, __assign({ transition: true, className: "absolute left-1/2 z-10 mt-2 flex w-screen max-w-min -translate-x-1/2 bg-transparent px-4 transition data-closed:translate-y-1 data-closed:opacity-0 data-enter:duration-200 data-enter:ease-out data-leave:duration-150 data-leave:ease-in", ref: setNotificationDropdown, style: notificationStyles.popper }, notificationAttributes.popper),
|
|
118
|
-
react_2.default.createElement("div", { className: "w-86 shrink rounded-xl bg-white p-4 text-sm/6 font-semibold text-gray-900 shadow-lg outline-1 outline-gray-900/5 dark:bg-gray-800 dark:text-white dark:shadow-none dark:outline dark:-outline-offset-1 dark:outline-white/10" },
|
|
118
|
+
react_2.default.createElement("div", { className: "max-h-80 w-86 shrink overflow-y-scroll rounded-xl bg-white p-4 text-sm/6 font-semibold text-gray-900 shadow-lg outline-1 outline-gray-900/5 dark:bg-gray-800 dark:text-white dark:shadow-none dark:outline dark:-outline-offset-1 dark:outline-white/10" },
|
|
119
119
|
notificationItems.length === 0 && (react_2.default.createElement("p", { className: "" }, "No new notifications")),
|
|
120
120
|
react_2.default.createElement("div", { className: "divider-y-gray-300 flex flex-col items-center justify-center" }, unReadNotifications &&
|
|
121
121
|
unReadNotifications.length > 0 &&
|
|
@@ -13,9 +13,11 @@ var NotificationItem = function (_a) {
|
|
|
13
13
|
var formatter = function (value, unit) { return (react_1.default.createElement("p", { className: "text-xs font-normal text-gray-500" }, "".concat(value).concat(unit.charAt(0)))); };
|
|
14
14
|
return (react_1.default.createElement("div", null,
|
|
15
15
|
react_1.default.createElement("div", { className: "flex w-full flex-row items-center justify-between gap-2 p-2" },
|
|
16
|
-
react_1.default.createElement(
|
|
17
|
-
|
|
18
|
-
react_1.default.createElement("div",
|
|
16
|
+
react_1.default.createElement("div", { className: "basis-1/6" },
|
|
17
|
+
react_1.default.createElement(image_1.default, { alt: "avatar", className: avatarClassName, height: 40, src: misc_1.referenceAvatar, width: 40 })),
|
|
18
|
+
react_1.default.createElement("div", { className: "basis-4/6" },
|
|
19
|
+
react_1.default.createElement("p", { className: "text-xs font-normal text-gray-500 dark:text-gray-400" }, message)),
|
|
20
|
+
react_1.default.createElement("div", { className: "basis-1/6" },
|
|
19
21
|
react_1.default.createElement(react_timeago_1.default, { date: time, formatter: formatter })))));
|
|
20
22
|
};
|
|
21
23
|
exports.NotificationItem = NotificationItem;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.navbarData = void 0;
|
|
4
4
|
var props_1 = require("../mega-menu/props");
|
|
5
5
|
var molecules_1 = require("../../molecules");
|
|
6
|
+
var user_1 = require("@appcorp/kismaa-utils/api/type/user");
|
|
6
7
|
exports.navbarData = {
|
|
7
8
|
homeLink: '/',
|
|
8
9
|
navLinks: [
|
|
@@ -67,6 +68,114 @@ exports.navbarData = {
|
|
|
67
68
|
isRead: true,
|
|
68
69
|
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
69
70
|
},
|
|
71
|
+
{
|
|
72
|
+
id: '1',
|
|
73
|
+
message: 'Missed chat opportunity with John Doe',
|
|
74
|
+
isRead: false,
|
|
75
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: '2',
|
|
79
|
+
message: 'Missed chat opportunity with John Doe',
|
|
80
|
+
isRead: true,
|
|
81
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: '3',
|
|
85
|
+
message: 'Missed chat opportunity with John Doe',
|
|
86
|
+
isRead: true,
|
|
87
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: '1',
|
|
91
|
+
message: 'Missed chat opportunity with John Doe',
|
|
92
|
+
isRead: false,
|
|
93
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: '2',
|
|
97
|
+
message: 'Missed chat opportunity with John Doe',
|
|
98
|
+
isRead: true,
|
|
99
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: '3',
|
|
103
|
+
message: 'Missed chat opportunity with John Doe',
|
|
104
|
+
isRead: true,
|
|
105
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: '1',
|
|
109
|
+
message: 'Missed chat opportunity with John Doe',
|
|
110
|
+
isRead: false,
|
|
111
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: '2',
|
|
115
|
+
message: 'Missed chat opportunity with John Doe',
|
|
116
|
+
isRead: true,
|
|
117
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: '3',
|
|
121
|
+
message: 'Missed chat opportunity with John Doe',
|
|
122
|
+
isRead: true,
|
|
123
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: '1',
|
|
127
|
+
message: 'Missed chat opportunity with John Doe',
|
|
128
|
+
isRead: false,
|
|
129
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
id: '2',
|
|
133
|
+
message: 'Missed chat opportunity with John Doe',
|
|
134
|
+
isRead: true,
|
|
135
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: '3',
|
|
139
|
+
message: 'Missed chat opportunity with John Doe',
|
|
140
|
+
isRead: true,
|
|
141
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: '1',
|
|
145
|
+
message: 'Missed chat opportunity with John Doe',
|
|
146
|
+
isRead: false,
|
|
147
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
id: '2',
|
|
151
|
+
message: 'Missed chat opportunity with John Doe',
|
|
152
|
+
isRead: true,
|
|
153
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: '3',
|
|
157
|
+
message: 'Missed chat opportunity with John Doe',
|
|
158
|
+
isRead: true,
|
|
159
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: '1',
|
|
163
|
+
message: 'Missed chat opportunity with John Doe',
|
|
164
|
+
isRead: false,
|
|
165
|
+
time: new Date('2025-10-01T10:00:00Z').toLocaleDateString(),
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: '2',
|
|
169
|
+
message: 'Missed chat opportunity with John Doe',
|
|
170
|
+
isRead: true,
|
|
171
|
+
time: new Date('2025-05-01T10:00:00Z').toLocaleDateString(),
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: '3',
|
|
175
|
+
message: 'Missed chat opportunity with John Doe',
|
|
176
|
+
isRead: true,
|
|
177
|
+
time: new Date('2024-10-01T10:00:00Z').toLocaleDateString(),
|
|
178
|
+
},
|
|
70
179
|
],
|
|
71
180
|
handleMegaMenuToggle: function () { return void 0; },
|
|
72
181
|
handleSearch: function () { return void 0; },
|
|
@@ -76,6 +185,7 @@ exports.navbarData = {
|
|
|
76
185
|
firstName: 'Taimoor Khan',
|
|
77
186
|
avatarUrl: '',
|
|
78
187
|
route: '',
|
|
188
|
+
userType: user_1.USER_TYPE.PSYCHIC,
|
|
79
189
|
menuItems: [
|
|
80
190
|
{
|
|
81
191
|
label: 'Menu Item 1',
|