@prediktif/ui 0.1.10 → 0.1.12

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 CHANGED
@@ -17,11 +17,11 @@ interface OrganizationItem {
17
17
  plan?: string;
18
18
  }
19
19
  interface AppSidebarProps {
20
- name: string;
21
- email: string;
22
- orgRole: string;
23
- brand: string;
24
- href: string;
20
+ name?: string | null;
21
+ email?: string | null;
22
+ orgRole?: string | null;
23
+ brand?: string;
24
+ href?: string;
25
25
  confirmDialog?: boolean;
26
26
  headerDropdown?: boolean;
27
27
  image?: string | null;
package/dist/index.d.ts CHANGED
@@ -17,11 +17,11 @@ interface OrganizationItem {
17
17
  plan?: string;
18
18
  }
19
19
  interface AppSidebarProps {
20
- name: string;
21
- email: string;
22
- orgRole: string;
23
- brand: string;
24
- href: string;
20
+ name?: string | null;
21
+ email?: string | null;
22
+ orgRole?: string | null;
23
+ brand?: string;
24
+ href?: string;
25
25
  confirmDialog?: boolean;
26
26
  headerDropdown?: boolean;
27
27
  image?: string | null;
package/dist/index.js CHANGED
@@ -1249,11 +1249,11 @@ function isRouteActive(url, pathname) {
1249
1249
  return pathname === url || pathname.startsWith(rootPrefix);
1250
1250
  }
1251
1251
  var AppSidebar = (0, import_react.memo)(function AppSidebar2({
1252
- name,
1253
- email,
1254
- orgRole,
1252
+ name = "",
1253
+ email = "",
1254
+ orgRole = "",
1255
1255
  brand = "Prediktif",
1256
- href,
1256
+ href = "#",
1257
1257
  confirmDialog = false,
1258
1258
  headerDropdown = false,
1259
1259
  image,
@@ -1284,7 +1284,7 @@ var AppSidebar = (0, import_react.memo)(function AppSidebar2({
1284
1284
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Command, { className: "size-4" }) }),
1285
1285
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
1286
1286
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate font-medium", children: (activeOrg == null ? void 0 : activeOrg.name) || brand }),
1287
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate text-xs", children: (activeOrg == null ? void 0 : activeOrg.plan) || orgRole })
1287
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate text-xs capitalize", children: (activeOrg == null ? void 0 : activeOrg.plan) || orgRole })
1288
1288
  ] }),
1289
1289
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.ChevronsUpDown, { className: "ml-auto" })
1290
1290
  ]
@@ -1322,7 +1322,7 @@ var AppSidebar = (0, import_react.memo)(function AppSidebar2({
1322
1322
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Command, { className: "size-4" }) }),
1323
1323
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
1324
1324
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate font-medium", children: brand }),
1325
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate text-xs", children: orgRole })
1325
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "truncate text-xs capitalize", children: orgRole })
1326
1326
  ] })
1327
1327
  ] }) }) }) }),
1328
1328
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(SidebarContent, { children: [
package/dist/index.mjs CHANGED
@@ -1215,11 +1215,11 @@ function isRouteActive(url, pathname) {
1215
1215
  return pathname === url || pathname.startsWith(rootPrefix);
1216
1216
  }
1217
1217
  var AppSidebar = memo(function AppSidebar2({
1218
- name,
1219
- email,
1220
- orgRole,
1218
+ name = "",
1219
+ email = "",
1220
+ orgRole = "",
1221
1221
  brand = "Prediktif",
1222
- href,
1222
+ href = "#",
1223
1223
  confirmDialog = false,
1224
1224
  headerDropdown = false,
1225
1225
  image,
@@ -1250,7 +1250,7 @@ var AppSidebar = memo(function AppSidebar2({
1250
1250
  /* @__PURE__ */ jsx12("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ jsx12(Command, { className: "size-4" }) }),
1251
1251
  /* @__PURE__ */ jsxs7("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
1252
1252
  /* @__PURE__ */ jsx12("span", { className: "truncate font-medium", children: (activeOrg == null ? void 0 : activeOrg.name) || brand }),
1253
- /* @__PURE__ */ jsx12("span", { className: "truncate text-xs", children: (activeOrg == null ? void 0 : activeOrg.plan) || orgRole })
1253
+ /* @__PURE__ */ jsx12("span", { className: "truncate text-xs capitalize", children: (activeOrg == null ? void 0 : activeOrg.plan) || orgRole })
1254
1254
  ] }),
1255
1255
  /* @__PURE__ */ jsx12(ChevronsUpDown, { className: "ml-auto" })
1256
1256
  ]
@@ -1288,7 +1288,7 @@ var AppSidebar = memo(function AppSidebar2({
1288
1288
  /* @__PURE__ */ jsx12("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ jsx12(Command, { className: "size-4" }) }),
1289
1289
  /* @__PURE__ */ jsxs7("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [
1290
1290
  /* @__PURE__ */ jsx12("span", { className: "truncate font-medium", children: brand }),
1291
- /* @__PURE__ */ jsx12("span", { className: "truncate text-xs", children: orgRole })
1291
+ /* @__PURE__ */ jsx12("span", { className: "truncate text-xs capitalize", children: orgRole })
1292
1292
  ] })
1293
1293
  ] }) }) }) }),
1294
1294
  /* @__PURE__ */ jsxs7(SidebarContent, { children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prediktif/ui",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,8 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.mjs",
16
16
  "require": "./dist/index.js"
17
- }
17
+ },
18
+ "./package.json": "./package.json"
18
19
  },
19
20
  "files": [
20
21
  "dist",