@cupcodev/ui 3.0.2 → 3.2.0

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/README.md CHANGED
@@ -106,18 +106,29 @@ Todos os componentes Cupcode e shadcn/ui base são reexportados de `@cupcodev/ui
106
106
 
107
107
  ### MainNavbar sem router obrigatório
108
108
 
109
- `MainNavbar` não depende de `react-router-dom`. Para integração SPA, passe `pathname` e `onNavigate`:
109
+ `MainNavbar` não depende de `react-router-dom`. Para integração SPA, passe `pathname` e `onNavigate`.
110
+ Para evitar branding fixo no pacote, passe também `logo` com o visual do seu app:
110
111
 
111
112
  ```tsx
112
- import { MainNavbar } from "@cupcodev/ui";
113
+ import { MainNavbar, TelescupImage } from "@cupcodev/ui";
113
114
  import { useLocation, useNavigate } from "react-router-dom";
114
115
 
115
116
  export function Header() {
116
117
  const location = useLocation();
117
118
  const navigate = useNavigate();
119
+ const appLogo = (
120
+ <TelescupImage
121
+ apiId="SEU-LOGO-ID"
122
+ imageWidth={120}
123
+ imageHeight={32}
124
+ alt="Meu app"
125
+ className="h-8 w-auto"
126
+ />
127
+ );
118
128
 
119
129
  return (
120
130
  <MainNavbar
131
+ logo={appLogo}
121
132
  pathname={location.pathname}
122
133
  onNavigate={(href) => navigate(href)}
123
134
  />
package/dist/index.cjs CHANGED
@@ -3056,7 +3056,7 @@ var NavbarCupcode = ({
3056
3056
  {
3057
3057
  ref: navRef,
3058
3058
  className: cn(
3059
- "fixed left-2 right-2 top-[max(env(safe-area-inset-top),0.75rem)] z-[200] overflow-hidden rounded-2xl",
3059
+ "fixed left-2 right-2 top-[calc(max(env(safe-area-inset-top),0px)+var(--cc-navbar-top-offset,8px))] z-[200] overflow-hidden rounded-2xl",
3060
3060
  "glass border-border/70 shadow-[var(--elevation-3)] md:left-4 md:right-4",
3061
3061
  className
3062
3062
  ),
@@ -3198,47 +3198,6 @@ var NavbarCupcode_default = NavbarCupcode;
3198
3198
  // src/components/cupcode/MainNavbar.tsx
3199
3199
  var import_react19 = require("react");
3200
3200
 
3201
- // src/components/cupcode/TelescupImage.tsx
3202
- var import_jsx_runtime22 = require("react/jsx-runtime");
3203
- var TelescupImage = ({
3204
- apiId,
3205
- imageWidth,
3206
- imageHeight,
3207
- fit = "cover",
3208
- format = "avif",
3209
- quality = 60,
3210
- lang = "pt-BR",
3211
- alt,
3212
- title,
3213
- loading = "lazy",
3214
- className,
3215
- ...props
3216
- }) => {
3217
- const { url, meta } = useTelescupImage(
3218
- {
3219
- id: apiId,
3220
- width: imageWidth,
3221
- height: imageHeight,
3222
- fit,
3223
- format,
3224
- quality
3225
- },
3226
- lang
3227
- );
3228
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3229
- "img",
3230
- {
3231
- src: url,
3232
- "data-api-id": apiId,
3233
- alt: alt || meta.alt || "",
3234
- title: title || meta.title,
3235
- loading,
3236
- className,
3237
- ...props
3238
- }
3239
- );
3240
- };
3241
-
3242
3201
  // src/components/cupcode/UserMenuCupcode.tsx
3243
3202
  var DialogPrimitive3 = __toESM(require("@radix-ui/react-dialog"), 1);
3244
3203
  var import_lucide_react10 = require("lucide-react");
@@ -3248,11 +3207,11 @@ var import_react18 = require("react");
3248
3207
  var React10 = __toESM(require("react"), 1);
3249
3208
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
3250
3209
  var import_lucide_react6 = require("lucide-react");
3251
- var import_jsx_runtime23 = require("react/jsx-runtime");
3210
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3252
3211
  var Select = SelectPrimitive.Root;
3253
3212
  var SelectGroup = SelectPrimitive.Group;
3254
3213
  var SelectValue = SelectPrimitive.Value;
3255
- var SelectTrigger = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
3214
+ var SelectTrigger = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3256
3215
  SelectPrimitive.Trigger,
3257
3216
  {
3258
3217
  ref,
@@ -3263,32 +3222,32 @@ var SelectTrigger = React10.forwardRef(({ className, children, ...props }, ref)
3263
3222
  ...props,
3264
3223
  children: [
3265
3224
  children,
3266
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
3225
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
3267
3226
  ]
3268
3227
  }
3269
3228
  ));
3270
3229
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
3271
- var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3230
+ var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3272
3231
  SelectPrimitive.ScrollUpButton,
3273
3232
  {
3274
3233
  ref,
3275
3234
  className: cn("flex cursor-default items-center justify-center py-1", className),
3276
3235
  ...props,
3277
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.ChevronUp, { className: "h-4 w-4" })
3236
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronUp, { className: "h-4 w-4" })
3278
3237
  }
3279
3238
  ));
3280
3239
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
3281
- var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3240
+ var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3282
3241
  SelectPrimitive.ScrollDownButton,
3283
3242
  {
3284
3243
  ref,
3285
3244
  className: cn("flex cursor-default items-center justify-center py-1", className),
3286
3245
  ...props,
3287
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4" })
3246
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.ChevronDown, { className: "h-4 w-4" })
3288
3247
  }
3289
3248
  ));
3290
3249
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
3291
- var SelectContent = React10.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
3250
+ var SelectContent = React10.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3292
3251
  SelectPrimitive.Content,
3293
3252
  {
3294
3253
  ref,
@@ -3300,8 +3259,8 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
3300
3259
  position,
3301
3260
  ...props,
3302
3261
  children: [
3303
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollUpButton, {}),
3304
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3262
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollUpButton, {}),
3263
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3305
3264
  SelectPrimitive.Viewport,
3306
3265
  {
3307
3266
  className: cn(
@@ -3311,14 +3270,14 @@ var SelectContent = React10.forwardRef(({ className, children, position = "poppe
3311
3270
  children
3312
3271
  }
3313
3272
  ),
3314
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollDownButton, {})
3273
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollDownButton, {})
3315
3274
  ]
3316
3275
  }
3317
3276
  ) }));
3318
3277
  SelectContent.displayName = SelectPrimitive.Content.displayName;
3319
- var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
3278
+ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
3320
3279
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
3321
- var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
3280
+ var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3322
3281
  SelectPrimitive.Item,
3323
3282
  {
3324
3283
  ref,
@@ -3328,20 +3287,20 @@ var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) =>
3328
3287
  ),
3329
3288
  ...props,
3330
3289
  children: [
3331
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" }) }) }),
3332
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemText, { children })
3290
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.Check, { className: "h-4 w-4" }) }) }),
3291
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.ItemText, { children })
3333
3292
  ]
3334
3293
  }
3335
3294
  ));
3336
3295
  SelectItem.displayName = SelectPrimitive.Item.displayName;
3337
- var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
3296
+ var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
3338
3297
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
3339
3298
 
3340
3299
  // src/components/ui/avatar.tsx
3341
3300
  var React11 = __toESM(require("react"), 1);
3342
3301
  var AvatarPrimitive2 = __toESM(require("@radix-ui/react-avatar"), 1);
3343
- var import_jsx_runtime24 = require("react/jsx-runtime");
3344
- var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3302
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3303
+ var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3345
3304
  AvatarPrimitive2.Root,
3346
3305
  {
3347
3306
  ref,
@@ -3350,7 +3309,7 @@ var Avatar2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3350
3309
  }
3351
3310
  ));
3352
3311
  Avatar2.displayName = AvatarPrimitive2.Root.displayName;
3353
- var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3312
+ var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3354
3313
  AvatarPrimitive2.Image,
3355
3314
  {
3356
3315
  ref,
@@ -3359,7 +3318,7 @@ var AvatarImage2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PU
3359
3318
  }
3360
3319
  ));
3361
3320
  AvatarImage2.displayName = AvatarPrimitive2.Image.displayName;
3362
- var AvatarFallback2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3321
+ var AvatarFallback2 = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3363
3322
  AvatarPrimitive2.Fallback,
3364
3323
  {
3365
3324
  ref,
@@ -3373,14 +3332,14 @@ AvatarFallback2.displayName = AvatarPrimitive2.Fallback.displayName;
3373
3332
  var React12 = __toESM(require("react"), 1);
3374
3333
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
3375
3334
  var import_lucide_react7 = require("lucide-react");
3376
- var import_jsx_runtime25 = require("react/jsx-runtime");
3335
+ var import_jsx_runtime24 = require("react/jsx-runtime");
3377
3336
  var DropdownMenu = DropdownMenuPrimitive.Root;
3378
3337
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
3379
3338
  var DropdownMenuGroup = DropdownMenuPrimitive.Group;
3380
3339
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
3381
3340
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
3382
3341
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
3383
- var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3342
+ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3384
3343
  DropdownMenuPrimitive.SubTrigger,
3385
3344
  {
3386
3345
  ref,
@@ -3392,12 +3351,12 @@ var DropdownMenuSubTrigger = React12.forwardRef(({ className, inset, children, .
3392
3351
  ...props,
3393
3352
  children: [
3394
3353
  children,
3395
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.ChevronRight, { className: "ml-auto h-4 w-4" })
3354
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.ChevronRight, { className: "ml-auto h-4 w-4" })
3396
3355
  ]
3397
3356
  }
3398
3357
  ));
3399
3358
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
3400
- var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3359
+ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3401
3360
  DropdownMenuPrimitive.SubContent,
3402
3361
  {
3403
3362
  ref,
@@ -3409,7 +3368,7 @@ var DropdownMenuSubContent = React12.forwardRef(({ className, ...props }, ref) =
3409
3368
  }
3410
3369
  ));
3411
3370
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
3412
- var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3371
+ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3413
3372
  DropdownMenuPrimitive.Content,
3414
3373
  {
3415
3374
  ref,
@@ -3422,7 +3381,7 @@ var DropdownMenuContent = React12.forwardRef(({ className, sideOffset = 4, ...pr
3422
3381
  }
3423
3382
  ) }));
3424
3383
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
3425
- var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3384
+ var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3426
3385
  DropdownMenuPrimitive.Item,
3427
3386
  {
3428
3387
  ref,
@@ -3435,7 +3394,7 @@ var DropdownMenuItem = React12.forwardRef(({ className, inset, ...props }, ref)
3435
3394
  }
3436
3395
  ));
3437
3396
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
3438
- var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3397
+ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3439
3398
  DropdownMenuPrimitive.CheckboxItem,
3440
3399
  {
3441
3400
  ref,
@@ -3446,13 +3405,13 @@ var DropdownMenuCheckboxItem = React12.forwardRef(({ className, children, checke
3446
3405
  checked,
3447
3406
  ...props,
3448
3407
  children: [
3449
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
3408
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.Check, { className: "h-4 w-4" }) }) }),
3450
3409
  children
3451
3410
  ]
3452
3411
  }
3453
3412
  ));
3454
3413
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
3455
- var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3414
+ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
3456
3415
  DropdownMenuPrimitive.RadioItem,
3457
3416
  {
3458
3417
  ref,
@@ -3462,13 +3421,13 @@ var DropdownMenuRadioItem = React12.forwardRef(({ className, children, ...props
3462
3421
  ),
3463
3422
  ...props,
3464
3423
  children: [
3465
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_lucide_react7.Circle, { className: "h-2 w-2 fill-current" }) }) }),
3424
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_lucide_react7.Circle, { className: "h-2 w-2 fill-current" }) }) }),
3466
3425
  children
3467
3426
  ]
3468
3427
  }
3469
3428
  ));
3470
3429
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
3471
- var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
3430
+ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
3472
3431
  DropdownMenuPrimitive.Label,
3473
3432
  {
3474
3433
  ref,
@@ -3477,10 +3436,10 @@ var DropdownMenuLabel = React12.forwardRef(({ className, inset, ...props }, ref)
3477
3436
  }
3478
3437
  ));
3479
3438
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
3480
- var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
3439
+ var DropdownMenuSeparator = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DropdownMenuPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
3481
3440
  DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
3482
3441
  var DropdownMenuShortcut = ({ className, ...props }) => {
3483
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
3442
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: cn("ml-auto text-xs tracking-widest opacity-60", className), ...props });
3484
3443
  };
3485
3444
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
3486
3445
 
@@ -3492,7 +3451,7 @@ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
3492
3451
  var React13 = __toESM(require("react"), 1);
3493
3452
  var import_react_slot = require("@radix-ui/react-slot");
3494
3453
  var import_class_variance_authority = require("class-variance-authority");
3495
- var import_jsx_runtime26 = require("react/jsx-runtime");
3454
+ var import_jsx_runtime25 = require("react/jsx-runtime");
3496
3455
  var buttonVariants = (0, import_class_variance_authority.cva)(
3497
3456
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
3498
3457
  {
@@ -3521,17 +3480,17 @@ var buttonVariants = (0, import_class_variance_authority.cva)(
3521
3480
  var Button = React13.forwardRef(
3522
3481
  ({ className, variant, size, asChild = false, ...props }, ref) => {
3523
3482
  const Comp = asChild ? import_react_slot.Slot : "button";
3524
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
3483
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Comp, { className: cn(buttonVariants({ variant, size, className })), ref, ...props });
3525
3484
  }
3526
3485
  );
3527
3486
  Button.displayName = "Button";
3528
3487
 
3529
3488
  // src/components/ui/alert-dialog.tsx
3530
- var import_jsx_runtime27 = require("react/jsx-runtime");
3489
+ var import_jsx_runtime26 = require("react/jsx-runtime");
3531
3490
  var AlertDialog = AlertDialogPrimitive.Root;
3532
3491
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
3533
3492
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
3534
- var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3493
+ var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3535
3494
  AlertDialogPrimitive.Overlay,
3536
3495
  {
3537
3496
  className: cn(
@@ -3543,9 +3502,9 @@ var AlertDialogOverlay = React14.forwardRef(({ className, ...props }, ref) => /*
3543
3502
  }
3544
3503
  ));
3545
3504
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
3546
- var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(AlertDialogPortal, { children: [
3547
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AlertDialogOverlay, {}),
3548
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3505
+ var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AlertDialogPortal, { children: [
3506
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AlertDialogOverlay, {}),
3507
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3549
3508
  AlertDialogPrimitive.Content,
3550
3509
  {
3551
3510
  ref,
@@ -3558,17 +3517,17 @@ var AlertDialogContent = React14.forwardRef(({ className, ...props }, ref) => /*
3558
3517
  )
3559
3518
  ] }));
3560
3519
  AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
3561
- var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
3520
+ var AlertDialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props });
3562
3521
  AlertDialogHeader.displayName = "AlertDialogHeader";
3563
- var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
3522
+ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
3564
3523
  AlertDialogFooter.displayName = "AlertDialogFooter";
3565
- var AlertDialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
3524
+ var AlertDialogTitle = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AlertDialogPrimitive.Title, { ref, className: cn("text-lg font-semibold", className), ...props }));
3566
3525
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
3567
- var AlertDialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
3526
+ var AlertDialogDescription = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AlertDialogPrimitive.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
3568
3527
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
3569
- var AlertDialogAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
3528
+ var AlertDialogAction = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(AlertDialogPrimitive.Action, { ref, className: cn(buttonVariants(), className), ...props }));
3570
3529
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
3571
- var AlertDialogCancel = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3530
+ var AlertDialogCancel = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3572
3531
  AlertDialogPrimitive.Cancel,
3573
3532
  {
3574
3533
  ref,
@@ -3582,12 +3541,12 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
3582
3541
  var React15 = __toESM(require("react"), 1);
3583
3542
  var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
3584
3543
  var import_lucide_react8 = require("lucide-react");
3585
- var import_jsx_runtime28 = require("react/jsx-runtime");
3544
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3586
3545
  var Dialog = DialogPrimitive2.Root;
3587
3546
  var DialogTrigger = DialogPrimitive2.Trigger;
3588
3547
  var DialogPortal = DialogPrimitive2.Portal;
3589
3548
  var DialogClose = DialogPrimitive2.Close;
3590
- var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3549
+ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3591
3550
  DialogPrimitive2.Overlay,
3592
3551
  {
3593
3552
  ref,
@@ -3599,9 +3558,9 @@ var DialogOverlay = React15.forwardRef(({ className, ...props }, ref) => /* @__P
3599
3558
  }
3600
3559
  ));
3601
3560
  DialogOverlay.displayName = DialogPrimitive2.Overlay.displayName;
3602
- var DialogContent = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogPortal, { children: [
3603
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogOverlay, {}),
3604
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3561
+ var DialogContent = React15.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogPortal, { children: [
3562
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogOverlay, {}),
3563
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3605
3564
  DialogPrimitive2.Content,
3606
3565
  {
3607
3566
  ref,
@@ -3612,20 +3571,20 @@ var DialogContent = React15.forwardRef(({ className, children, ...props }, ref)
3612
3571
  ...props,
3613
3572
  children: [
3614
3573
  children,
3615
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
3616
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react8.X, { className: "h-4 w-4" }),
3617
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: "Close" })
3574
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogPrimitive2.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
3575
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react8.X, { className: "h-4 w-4" }),
3576
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "sr-only", children: "Close" })
3618
3577
  ] })
3619
3578
  ]
3620
3579
  }
3621
3580
  )
3622
3581
  ] }));
3623
3582
  DialogContent.displayName = DialogPrimitive2.Content.displayName;
3624
- var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
3583
+ var DialogHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
3625
3584
  DialogHeader.displayName = "DialogHeader";
3626
- var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
3585
+ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
3627
3586
  DialogFooter.displayName = "DialogFooter";
3628
- var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3587
+ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3629
3588
  DialogPrimitive2.Title,
3630
3589
  {
3631
3590
  ref,
@@ -3634,14 +3593,14 @@ var DialogTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
3634
3593
  }
3635
3594
  ));
3636
3595
  DialogTitle.displayName = DialogPrimitive2.Title.displayName;
3637
- var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogPrimitive2.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
3596
+ var DialogDescription = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogPrimitive2.Description, { ref, className: cn("text-sm text-muted-foreground", className), ...props }));
3638
3597
  DialogDescription.displayName = DialogPrimitive2.Description.displayName;
3639
3598
 
3640
3599
  // src/components/ui/switch.tsx
3641
3600
  var React16 = __toESM(require("react"), 1);
3642
3601
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
3643
- var import_jsx_runtime29 = require("react/jsx-runtime");
3644
- var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3602
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3603
+ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3645
3604
  SwitchPrimitives.Root,
3646
3605
  {
3647
3606
  className: cn(
@@ -3650,7 +3609,7 @@ var Switch = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
3650
3609
  ),
3651
3610
  ...props,
3652
3611
  ref,
3653
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3612
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3654
3613
  SwitchPrimitives.Thumb,
3655
3614
  {
3656
3615
  className: cn(
@@ -5324,6 +5283,47 @@ function useTelescupAssets(options) {
5324
5283
  };
5325
5284
  }
5326
5285
 
5286
+ // src/components/cupcode/TelescupImage.tsx
5287
+ var import_jsx_runtime29 = require("react/jsx-runtime");
5288
+ var TelescupImage = ({
5289
+ apiId,
5290
+ imageWidth,
5291
+ imageHeight,
5292
+ fit = "cover",
5293
+ format = "avif",
5294
+ quality = 60,
5295
+ lang = "pt-BR",
5296
+ alt,
5297
+ title,
5298
+ loading = "lazy",
5299
+ className,
5300
+ ...props
5301
+ }) => {
5302
+ const { url, meta } = useTelescupImage(
5303
+ {
5304
+ id: apiId,
5305
+ width: imageWidth,
5306
+ height: imageHeight,
5307
+ fit,
5308
+ format,
5309
+ quality
5310
+ },
5311
+ lang
5312
+ );
5313
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
5314
+ "img",
5315
+ {
5316
+ src: url,
5317
+ "data-api-id": apiId,
5318
+ alt: alt || meta.alt || "",
5319
+ title: title || meta.title,
5320
+ loading,
5321
+ className,
5322
+ ...props
5323
+ }
5324
+ );
5325
+ };
5326
+
5327
5327
  // src/components/cupcode/TelescupVideo.tsx
5328
5328
  var import_jsx_runtime30 = require("react/jsx-runtime");
5329
5329
  var TelescupVideo = ({
@@ -23037,6 +23037,16 @@ var PRESENCE_STATUS_LABELS = {
23037
23037
  designing: "Designing",
23038
23038
  offline: "Off-line"
23039
23039
  };
23040
+ var LAST_SEEN_MINUTE_MS = 6e4;
23041
+ var LAST_SEEN_HOUR_MS = 60 * LAST_SEEN_MINUTE_MS;
23042
+ var LAST_SEEN_DAY_MS = 24 * LAST_SEEN_HOUR_MS;
23043
+ var TIME_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", { hour: "2-digit", minute: "2-digit" });
23044
+ var DATE_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", { day: "2-digit", month: "2-digit" });
23045
+ var DATE_WITH_YEAR_PT_BR_FORMATTER = new Intl.DateTimeFormat("pt-BR", {
23046
+ day: "2-digit",
23047
+ month: "2-digit",
23048
+ year: "numeric"
23049
+ });
23040
23050
  var CHAT_FEATURE_FLAGS_STORAGE_KEY = "cc_chat_feature_flags";
23041
23051
  var getDefaultChatFeatureFlags = () => ({
23042
23052
  hasReadAt: true,
@@ -23153,6 +23163,41 @@ var toTimestampMs = (value) => {
23153
23163
  const parsed = new Date(trimmed).getTime();
23154
23164
  return Number.isNaN(parsed) ? void 0 : parsed;
23155
23165
  };
23166
+ var isSameCalendarDay = (left, right) => {
23167
+ return left.getFullYear() === right.getFullYear() && left.getMonth() === right.getMonth() && left.getDate() === right.getDate();
23168
+ };
23169
+ var isYesterday = (value, nowDate) => {
23170
+ const yesterday = new Date(nowDate);
23171
+ yesterday.setHours(0, 0, 0, 0);
23172
+ yesterday.setDate(yesterday.getDate() - 1);
23173
+ return isSameCalendarDay(value, yesterday);
23174
+ };
23175
+ var formatPresenceLastSeenLabel = (lastActiveAtMs, now = Date.now()) => {
23176
+ const diffMs = Math.max(0, now - lastActiveAtMs);
23177
+ if (diffMs < LAST_SEEN_HOUR_MS) {
23178
+ const diffMinutes = Math.max(1, Math.floor(diffMs / LAST_SEEN_MINUTE_MS));
23179
+ return `Visto por \xFAltimo h\xE1 ${diffMinutes} ${diffMinutes === 1 ? "minuto" : "minutos"}`;
23180
+ }
23181
+ if (diffMs < LAST_SEEN_DAY_MS) {
23182
+ const diffHours = Math.max(1, Math.floor(diffMs / LAST_SEEN_HOUR_MS));
23183
+ return `Visto por \xFAltimo h\xE1 ${diffHours} ${diffHours === 1 ? "hora" : "horas"}`;
23184
+ }
23185
+ const nowDate = new Date(now);
23186
+ const lastActiveDate = new Date(lastActiveAtMs);
23187
+ const timeLabel = TIME_PT_BR_FORMATTER.format(lastActiveDate);
23188
+ if (isSameCalendarDay(lastActiveDate, nowDate)) {
23189
+ return `Visto por \xFAltimo hoje \xE0s ${timeLabel}`;
23190
+ }
23191
+ if (isYesterday(lastActiveDate, nowDate)) {
23192
+ return `Visto por \xFAltimo ontem \xE0s ${timeLabel}`;
23193
+ }
23194
+ if (lastActiveDate.getFullYear() === nowDate.getFullYear()) {
23195
+ const dateLabel = DATE_PT_BR_FORMATTER.format(lastActiveDate);
23196
+ return `Visto por \xFAltimo em ${dateLabel} \xE0s ${timeLabel}`;
23197
+ }
23198
+ const dateWithYearLabel = DATE_WITH_YEAR_PT_BR_FORMATTER.format(lastActiveDate);
23199
+ return `Visto por \xFAltimo em ${dateWithYearLabel} \xE0s ${timeLabel}`;
23200
+ };
23156
23201
  var resolveEffectivePresenceStatus = (snapshot, now = Date.now()) => {
23157
23202
  if (snapshot.status === "offline") {
23158
23203
  return "offline";
@@ -23178,8 +23223,7 @@ var resolvePresenceStatusLabel = (snapshot, effectiveStatus, now = Date.now()) =
23178
23223
  }
23179
23224
  const lastActiveAtMs = snapshot.lastActiveAtMs;
23180
23225
  if ((effectiveStatus === "away" || effectiveStatus === "offline") && typeof lastActiveAtMs === "number" && Number.isFinite(lastActiveAtMs) && now >= lastActiveAtMs) {
23181
- const diffMinutes = Math.max(1, Math.floor((now - lastActiveAtMs) / 6e4));
23182
- return `On-line h\xE1 ${diffMinutes} min`;
23226
+ return formatPresenceLastSeenLabel(lastActiveAtMs, now);
23183
23227
  }
23184
23228
  return PRESENCE_STATUS_LABELS[effectiveStatus];
23185
23229
  };
@@ -23481,6 +23525,7 @@ var MainNavbar = ({
23481
23525
  ctaLabel = "Entrar",
23482
23526
  ctaHref = "/login",
23483
23527
  pathname,
23528
+ logo,
23484
23529
  onNavigate,
23485
23530
  authStatus,
23486
23531
  authUser,
@@ -24790,6 +24835,10 @@ var MainNavbar = ({
24790
24835
  };
24791
24836
  });
24792
24837
  }, [currentPathname, onNavigate]);
24838
+ const resolvedLogo = (0, import_react19.useMemo)(() => {
24839
+ if (logo) return logo;
24840
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "inline-flex items-center text-base font-semibold tracking-wide text-foreground", children: "Cupcode" });
24841
+ }, [logo]);
24793
24842
  const handleCtaClick = () => {
24794
24843
  if (onNavigate) {
24795
24844
  onNavigate(ctaHref);
@@ -25015,30 +25064,7 @@ var MainNavbar = ({
25015
25064
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
25016
25065
  NavbarCupcode,
25017
25066
  {
25018
- logo: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-[15px]", children: [
25019
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
25020
- TelescupImage,
25021
- {
25022
- apiId: "be574751-cf1b-499a-8473-360b4115b447",
25023
- imageWidth: 40,
25024
- imageHeight: 40,
25025
- alt: "Design System Cupcode",
25026
- loading: "eager",
25027
- className: "h-10 w-auto"
25028
- }
25029
- ),
25030
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
25031
- TelescupImage,
25032
- {
25033
- apiId: "3b913721-2eda-48fd-8d76-1a53055a337f",
25034
- imageWidth: 120,
25035
- imageHeight: 32,
25036
- alt: "Cupcode",
25037
- loading: "eager",
25038
- className: "h-8 w-auto"
25039
- }
25040
- )
25041
- ] }),
25067
+ logo: resolvedLogo,
25042
25068
  items,
25043
25069
  actions: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
25044
25070
  UserMenuCupcode,
package/dist/index.d.cts CHANGED
@@ -458,6 +458,7 @@ type MainNavbarProps = {
458
458
  ctaLabel?: string;
459
459
  ctaHref?: string;
460
460
  pathname?: string;
461
+ logo?: React.ReactNode;
461
462
  onNavigate?: (href: string) => void;
462
463
  authStatus?: MainNavbarAuthStatus;
463
464
  authUser?: MainNavbarAuthUser | null;
package/dist/index.d.ts CHANGED
@@ -458,6 +458,7 @@ type MainNavbarProps = {
458
458
  ctaLabel?: string;
459
459
  ctaHref?: string;
460
460
  pathname?: string;
461
+ logo?: React.ReactNode;
461
462
  onNavigate?: (href: string) => void;
462
463
  authStatus?: MainNavbarAuthStatus;
463
464
  authUser?: MainNavbarAuthUser | null;