baaz-custom-components 3.1.8 → 3.1.9
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/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
|
|
3
|
+
type NavbarData = NavbarEntry[];
|
|
4
|
+
interface NavbarEntry {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
routes: RouteTree;
|
|
8
|
+
}
|
|
3
9
|
type RouteTree = {
|
|
4
10
|
[key: string]: string | RouteTree;
|
|
5
11
|
};
|
|
@@ -18,12 +24,6 @@ interface NotificationDataTypes {
|
|
|
18
24
|
otp: number;
|
|
19
25
|
topic: string;
|
|
20
26
|
}
|
|
21
|
-
interface NavbarEntry {
|
|
22
|
-
name: string;
|
|
23
|
-
url: string;
|
|
24
|
-
routes: RouteTree;
|
|
25
|
-
}
|
|
26
|
-
type NavbarData = NavbarEntry[];
|
|
27
27
|
interface NavbarProps {
|
|
28
28
|
navbarData: NavbarEntry[];
|
|
29
29
|
userData: UserData;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
|
|
3
|
+
type NavbarData = NavbarEntry[];
|
|
4
|
+
interface NavbarEntry {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
routes: RouteTree;
|
|
8
|
+
}
|
|
3
9
|
type RouteTree = {
|
|
4
10
|
[key: string]: string | RouteTree;
|
|
5
11
|
};
|
|
@@ -18,12 +24,6 @@ interface NotificationDataTypes {
|
|
|
18
24
|
otp: number;
|
|
19
25
|
topic: string;
|
|
20
26
|
}
|
|
21
|
-
interface NavbarEntry {
|
|
22
|
-
name: string;
|
|
23
|
-
url: string;
|
|
24
|
-
routes: RouteTree;
|
|
25
|
-
}
|
|
26
|
-
type NavbarData = NavbarEntry[];
|
|
27
27
|
interface NavbarProps {
|
|
28
28
|
navbarData: NavbarEntry[];
|
|
29
29
|
userData: UserData;
|
package/dist/index.js
CHANGED
|
@@ -722,19 +722,19 @@ var Notifications = ({
|
|
|
722
722
|
{
|
|
723
723
|
className: "w-96 h-96 bg-card-foreground",
|
|
724
724
|
align: "start",
|
|
725
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ScrollArea, { className: "w-full h-full", children: notificationData.length == 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData.map((data, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
|
|
725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ScrollArea, { className: "w-full h-full", children: (notificationData == null ? void 0 : notificationData.length) == 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData == null ? void 0 : notificationData.map((data, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
|
|
726
726
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex py-4 px-5 gap-6", children: [
|
|
727
727
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "w-3 h-3 mt-2 bg-accent rounded-full flex-shrink-0" }),
|
|
728
728
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: " flex gap-2 flex-col", children: [
|
|
729
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "font-bold", children: data.topic }),
|
|
730
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "font-semibold", children: data.heading }),
|
|
731
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "text-sm", children: data.trail }),
|
|
732
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { className: " bg-background rounded-sm p-3 text-sm font-semibold", children: data.body }),
|
|
733
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data.otp }),
|
|
734
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h4", { className: "text-xs", children: formatDateAndTime(data.time) })
|
|
729
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "font-bold", children: data == null ? void 0 : data.topic }),
|
|
730
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "font-semibold", children: data == null ? void 0 : data.heading }),
|
|
731
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h2", { className: "text-sm", children: data == null ? void 0 : data.trail }),
|
|
732
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { className: " bg-background rounded-sm p-3 text-sm font-semibold", children: data == null ? void 0 : data.body }),
|
|
733
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data == null ? void 0 : data.otp }),
|
|
734
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h4", { className: "text-xs", children: formatDateAndTime(data == null ? void 0 : data.time) })
|
|
735
735
|
] })
|
|
736
736
|
] }),
|
|
737
|
-
index < notificationData.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Separator2, { className: "my-2" })
|
|
737
|
+
index < (notificationData == null ? void 0 : notificationData.length) - 1 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Separator2, { className: "my-2" })
|
|
738
738
|
] }, data.otp)) })
|
|
739
739
|
}
|
|
740
740
|
)
|
package/dist/index.mjs
CHANGED
|
@@ -684,19 +684,19 @@ var Notifications = ({
|
|
|
684
684
|
{
|
|
685
685
|
className: "w-96 h-96 bg-card-foreground",
|
|
686
686
|
align: "start",
|
|
687
|
-
children: /* @__PURE__ */ jsx10(ScrollArea, { className: "w-full h-full", children: notificationData.length == 0 ? /* @__PURE__ */ jsx10("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData.map((data, index) => /* @__PURE__ */ jsxs8("div", { children: [
|
|
687
|
+
children: /* @__PURE__ */ jsx10(ScrollArea, { className: "w-full h-full", children: (notificationData == null ? void 0 : notificationData.length) == 0 ? /* @__PURE__ */ jsx10("h1", { className: "text-center flex items-center justify-center h-80 w-full", children: "No Notifications" }) : notificationData == null ? void 0 : notificationData.map((data, index) => /* @__PURE__ */ jsxs8("div", { children: [
|
|
688
688
|
/* @__PURE__ */ jsxs8("div", { className: "flex py-4 px-5 gap-6", children: [
|
|
689
689
|
/* @__PURE__ */ jsx10("div", { className: "w-3 h-3 mt-2 bg-accent rounded-full flex-shrink-0" }),
|
|
690
690
|
/* @__PURE__ */ jsxs8("div", { className: " flex gap-2 flex-col", children: [
|
|
691
|
-
/* @__PURE__ */ jsx10("h2", { className: "font-bold", children: data.topic }),
|
|
692
|
-
/* @__PURE__ */ jsx10("h2", { className: "font-semibold", children: data.heading }),
|
|
693
|
-
/* @__PURE__ */ jsx10("h2", { className: "text-sm", children: data.trail }),
|
|
694
|
-
/* @__PURE__ */ jsx10("h1", { className: " bg-background rounded-sm p-3 text-sm font-semibold", children: data.body }),
|
|
695
|
-
/* @__PURE__ */ jsx10("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data.otp }),
|
|
696
|
-
/* @__PURE__ */ jsx10("h4", { className: "text-xs", children: formatDateAndTime(data.time) })
|
|
691
|
+
/* @__PURE__ */ jsx10("h2", { className: "font-bold", children: data == null ? void 0 : data.topic }),
|
|
692
|
+
/* @__PURE__ */ jsx10("h2", { className: "font-semibold", children: data == null ? void 0 : data.heading }),
|
|
693
|
+
/* @__PURE__ */ jsx10("h2", { className: "text-sm", children: data == null ? void 0 : data.trail }),
|
|
694
|
+
/* @__PURE__ */ jsx10("h1", { className: " bg-background rounded-sm p-3 text-sm font-semibold", children: data == null ? void 0 : data.body }),
|
|
695
|
+
/* @__PURE__ */ jsx10("h3", { className: "bg-white/10 rounded-sm p-1 px-3 w-fit text-md font-semibold text-accent tracking-[0.25rem]", children: data == null ? void 0 : data.otp }),
|
|
696
|
+
/* @__PURE__ */ jsx10("h4", { className: "text-xs", children: formatDateAndTime(data == null ? void 0 : data.time) })
|
|
697
697
|
] })
|
|
698
698
|
] }),
|
|
699
|
-
index < notificationData.length - 1 && /* @__PURE__ */ jsx10(Separator2, { className: "my-2" })
|
|
699
|
+
index < (notificationData == null ? void 0 : notificationData.length) - 1 && /* @__PURE__ */ jsx10(Separator2, { className: "my-2" })
|
|
700
700
|
] }, data.otp)) })
|
|
701
701
|
}
|
|
702
702
|
)
|