analytica-frontend-lib 1.2.18 → 1.2.19

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.
@@ -2327,10 +2327,13 @@ var ProfileMenuHeader = (0, import_react10.forwardRef)(({ className, name, email
2327
2327
  {
2328
2328
  ref,
2329
2329
  "data-component": "ProfileMenuHeader",
2330
- className: cn("flex flex-row gap-4 items-center", className),
2330
+ className: cn(
2331
+ "flex flex-row gap-4 items-center min-w-[280px]",
2332
+ className
2333
+ ),
2331
2334
  ...props,
2332
2335
  children: [
2333
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden", children: photoUrl ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2336
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center overflow-hidden flex-shrink-0", children: photoUrl ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2334
2337
  "img",
2335
2338
  {
2336
2339
  src: photoUrl,
@@ -2338,15 +2341,56 @@ var ProfileMenuHeader = (0, import_react10.forwardRef)(({ className, name, email
2338
2341
  className: "w-full h-full object-cover"
2339
2342
  }
2340
2343
  ) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_phosphor_react8.User, { size: 34, className: "text-primary-800" }) }),
2341
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col ", children: [
2342
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
2343
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "md", color: "text-text-600", children: email })
2344
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col min-w-0", children: [
2345
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2346
+ Text_default,
2347
+ {
2348
+ size: "xl",
2349
+ weight: "bold",
2350
+ color: "text-text-950",
2351
+ className: "truncate",
2352
+ children: name
2353
+ }
2354
+ ),
2355
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "md", color: "text-text-600", className: "truncate", children: email })
2344
2356
  ] })
2345
2357
  ]
2346
2358
  }
2347
2359
  );
2348
2360
  });
2349
2361
  ProfileMenuHeader.displayName = "ProfileMenuHeader";
2362
+ var ProfileMenuInfo = (0, import_react10.forwardRef)(
2363
+ ({
2364
+ className,
2365
+ schoolName,
2366
+ classYearName,
2367
+ schoolYearName,
2368
+ store: _store,
2369
+ ...props
2370
+ }, ref) => {
2371
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2372
+ "div",
2373
+ {
2374
+ ref,
2375
+ "data-component": "ProfileMenuInfo",
2376
+ className: cn("flex flex-row gap-4 items-center", className),
2377
+ ...props,
2378
+ children: [
2379
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "w-16 h-16" }),
2380
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-col ", children: [
2381
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolName }),
2382
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "flex flex-row items-center gap-2", children: [
2383
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "md", color: "text-text-600", children: classYearName }),
2384
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-text-600 text-xs align-middle", children: "\u25CF" }),
2385
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text_default, { size: "md", color: "text-text-600", children: schoolYearName })
2386
+ ] })
2387
+ ] })
2388
+ ]
2389
+ }
2390
+ );
2391
+ }
2392
+ );
2393
+ ProfileMenuInfo.displayName = "ProfileMenuInfo";
2350
2394
  var ProfileToggleTheme = ({
2351
2395
  store: externalStore,
2352
2396
  ...props