@fluid-app/portal-sdk 0.1.526 → 0.1.527

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.
@@ -4352,7 +4352,7 @@ function ProfilePhoto({ conversation, user, size, className, onClick, showStatus
4352
4352
  const recipientStatus = conversation.recipients?.find((r) => r.id === user.id)?.status;
4353
4353
  const resolvedStatus = directStatus || recipientStatus;
4354
4354
  const showDot = showStatusDot && size !== "xxl" && (resolvedStatus === "online" || resolvedStatus === "away");
4355
- const imageClassName = clsx$1("origin-top-left rounded-full border border-gray-50 object-cover", size === "xxl" && "h-[120px] w-[120px]", size === "xl" && "size-12", size === "lg" && "size-8", size === "md" && "size-6", size === "sm" && "size-5", size === "xs" && "size-4");
4355
+ const imageClassName = clsx$1("origin-top-left rounded-full border border-[color:var(--messaging-border,var(--color-gray-50))] object-cover", size === "xxl" && "h-[120px] w-[120px]", size === "xl" && "size-12", size === "lg" && "size-8", size === "md" && "size-6", size === "sm" && "size-5", size === "xs" && "size-4");
4356
4356
  return /* @__PURE__ */ jsxs("div", {
4357
4357
  className: cn("relative shrink-0 select-none", onClick && "cursor-pointer", className),
4358
4358
  onClick,
@@ -4371,10 +4371,10 @@ function ProfilePhoto({ conversation, user, size, className, onClick, showStatus
4371
4371
  height: 120,
4372
4372
  className: imageClassName
4373
4373
  }) : /* @__PURE__ */ jsx("div", {
4374
- className: clsx$1("grid origin-top-left place-items-center rounded-full border border-white bg-blue-800 font-medium tracking-tighter text-white uppercase", size === "xxl" && "text-messaging-1 h-[120px] w-[120px] text-4xl", size === "xl" && "text-messaging-1 size-12", size === "lg" && "text-messaging-4 size-8", size === "md" && "text-messaging-6 size-6", size === "sm" && "text-messaging-7 size-5", size === "xs" && "text-messaging-7 size-4"),
4374
+ className: clsx$1("grid origin-top-left place-items-center rounded-full border border-[color:var(--messaging-border,var(--color-white))] bg-[color:var(--messaging-primary,var(--color-blue-800))] font-medium tracking-tighter text-[color:var(--messaging-primary-foreground,var(--color-white))] uppercase", size === "xxl" && "text-messaging-1 h-[120px] w-[120px] text-4xl", size === "xl" && "text-messaging-1 size-12", size === "lg" && "text-messaging-4 size-8", size === "md" && "text-messaging-6 size-6", size === "sm" && "text-messaging-7 size-5", size === "xs" && "text-messaging-7 size-4"),
4375
4375
  style: { background: `linear-gradient(135deg, hsl(from ${baseColor} h 100 80) 0%, hsl(from ${baseColor} calc(h + 45) 90 50) 100%)` },
4376
4376
  children: initials
4377
- }), showDot && /* @__PURE__ */ jsx("div", { className: cn("absolute right-0 bottom-0 size-2 rounded-full border border-white", resolvedStatus === "online" && "bg-green-400", resolvedStatus === "away" && "bg-yellow-400", size === "xl" && "size-4", size === "lg" && "size-3", size === "xs" && "size-3") })]
4377
+ }), showDot && /* @__PURE__ */ jsx("div", { className: cn("absolute right-0 bottom-0 size-2 rounded-full border border-[color:var(--messaging-border,var(--color-white))]", resolvedStatus === "online" && "bg-green-400", resolvedStatus === "away" && "bg-yellow-400", size === "xl" && "size-4", size === "lg" && "size-3", size === "xs" && "size-3") })]
4378
4378
  });
4379
4379
  }
4380
4380
  //#endregion
@@ -4391,7 +4391,7 @@ function GroupAvatars({ conversation, currentUserId, groupSize = GROUP_MAX, rend
4391
4391
  size: "md",
4392
4392
  renderImage
4393
4393
  }, recipient.id)), users.length > displaySize && /* @__PURE__ */ jsxs("div", {
4394
- className: "text-messaging-7 messaging-gradient z-10 flex size-6 items-center justify-center rounded-full border border-gray-200 bg-gray-200 text-white",
4394
+ className: "text-messaging-7 messaging-gradient z-10 flex size-6 items-center justify-center rounded-full border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-200))] text-white",
4395
4395
  children: ["+", users.length - displaySize]
4396
4396
  })]
4397
4397
  });
@@ -4435,13 +4435,13 @@ function MessagesHeaderActions({ conversation, currentUser, navigation, renderIm
4435
4435
  renderImage
4436
4436
  }),
4437
4437
  /* @__PURE__ */ jsxs("div", {
4438
- className: clsx$1("flex size-6 items-center justify-center rounded-sm border empty:hidden", messageType === "public-channel" && "border-blue-200 bg-blue-50", messageType === "sms" && "border-green-200 bg-green-50", messageType === "email" && "border-pink-200 bg-pink-50", messageType === "private-channel" && "border-purple-200 bg-purple-50", messageType === "broadcast" && "border-gray-200 bg-gray-50"),
4438
+ className: clsx$1("flex size-6 items-center justify-center rounded-sm border empty:hidden", messageType === "public-channel" && "border-[color:var(--messaging-primary-border,var(--color-blue-200))] bg-[color:var(--messaging-primary-tint,var(--color-blue-50))]", messageType === "sms" && "border-green-200 bg-green-50", messageType === "email" && "border-pink-200 bg-pink-50", messageType === "private-channel" && "border-purple-200 bg-purple-50", messageType === "broadcast" && "border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))]"),
4439
4439
  children: [
4440
- messageType === "public-channel" && /* @__PURE__ */ jsx(Eye, { className: "size-3 text-blue-700" }),
4440
+ messageType === "public-channel" && /* @__PURE__ */ jsx(Eye, { className: "size-3 text-[color:var(--messaging-primary,var(--color-blue-700))]" }),
4441
4441
  messageType === "sms" && /* @__PURE__ */ jsx(Phone, { className: "size-3 text-green-700" }),
4442
4442
  messageType === "email" && /* @__PURE__ */ jsx(Mail, { className: "size-3 text-pink-600" }),
4443
4443
  messageType === "private-channel" && /* @__PURE__ */ jsx(Lock, { className: "size-2.5 text-purple-700" }),
4444
- messageType === "broadcast" && /* @__PURE__ */ jsx(Megaphone, { className: "size-3 text-gray-700" })
4444
+ messageType === "broadcast" && /* @__PURE__ */ jsx(Megaphone, { className: "size-3 text-[color:var(--messaging-foreground,var(--color-gray-700))]" })
4445
4445
  ]
4446
4446
  }),
4447
4447
  isMobile ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(IconButton, {
@@ -4499,37 +4499,37 @@ function MessagesHeaderActions({ conversation, currentUser, navigation, renderIm
4499
4499
  align: "end",
4500
4500
  className: "w-60 p-0",
4501
4501
  children: [/* @__PURE__ */ jsx(DropdownMenuLabel, {
4502
- className: "border-b border-gray-200 px-4 py-3 text-sm font-semibold text-slate-700",
4502
+ className: "border-b border-[color:var(--messaging-border,var(--color-gray-200))] px-4 py-3 text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4503
4503
  children: t("header_channel_options")
4504
4504
  }), /* @__PURE__ */ jsxs("div", {
4505
4505
  className: "px-0 py-1",
4506
4506
  children: [
4507
4507
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
4508
4508
  disabled: true,
4509
- className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4510
- children: [/* @__PURE__ */ jsx(User, { className: "size-4 text-gray-500" }), t("header_channel_details")]
4509
+ className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4510
+ children: [/* @__PURE__ */ jsx(User, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("header_channel_details")]
4511
4511
  }),
4512
4512
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
4513
4513
  disabled: true,
4514
- className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4515
- children: [/* @__PURE__ */ jsx(Settings, { className: "size-4 text-gray-500" }), t("header_channel_settings")]
4514
+ className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4515
+ children: [/* @__PURE__ */ jsx(Settings, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("header_channel_settings")]
4516
4516
  }),
4517
4517
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
4518
4518
  disabled: true,
4519
- className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4520
- children: [/* @__PURE__ */ jsx(BellOff, { className: "size-4 text-gray-500" }), t("header_mute_channel")]
4519
+ className: "mx-1.5 my-0 gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4520
+ children: [/* @__PURE__ */ jsx(BellOff, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("header_mute_channel")]
4521
4521
  }),
4522
4522
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
4523
4523
  onSelect: () => navigation.navigate({
4524
4524
  view: "pins",
4525
4525
  conversationId
4526
4526
  }),
4527
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4527
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4528
4528
  children: [
4529
- /* @__PURE__ */ jsx(Pin, { className: "size-4 text-gray-500" }),
4529
+ /* @__PURE__ */ jsx(Pin, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }),
4530
4530
  t("header_pinned_messages"),
4531
4531
  (conversation.pinned_messages_count ?? 0) > 0 && /* @__PURE__ */ jsx("span", {
4532
- className: "ml-auto text-xs text-gray-500",
4532
+ className: "ml-auto text-xs text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
4533
4533
  children: conversation.pinned_messages_count ?? 0
4534
4534
  })
4535
4535
  ]
@@ -4645,7 +4645,7 @@ function MessagingLayoutSidebarFooter({ showAdminFeatures, renderNewChannelSideb
4645
4645
  className: clsx$1("sticky bottom-0 mt-auto md:-mx-4", !showAdminFeatures && "max-md:hidden"),
4646
4646
  ref: menuRef,
4647
4647
  children: [/* @__PURE__ */ jsxs("div", {
4648
- className: clsx$1("absolute bottom-full left-0 -z-10 grid w-full gap-2 border-t border-gray-200 bg-white p-4 text-sm font-medium text-gray-700 transition-transform", createChatOpen ? "" : "hidden"),
4648
+ className: clsx$1("absolute bottom-full left-0 -z-10 grid w-full gap-2 border-t border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-4 text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] transition-transform", createChatOpen ? "" : "hidden"),
4649
4649
  inert: !createChatOpen,
4650
4650
  "aria-hidden": !createChatOpen,
4651
4651
  children: [/* @__PURE__ */ jsxs("button", {
@@ -4653,21 +4653,21 @@ function MessagingLayoutSidebarFooter({ showAdminFeatures, renderNewChannelSideb
4653
4653
  setCreateChatOpen(false);
4654
4654
  navigation.navigate({ view: "new" });
4655
4655
  },
4656
- className: "flex items-center justify-between rounded-md p-2 hover:bg-gray-50 active:bg-gray-100",
4656
+ className: "flex items-center justify-between rounded-md p-2 hover:bg-[color:var(--messaging-muted,var(--color-gray-50))] active:bg-[color:var(--messaging-muted,var(--color-gray-100))]",
4657
4657
  children: [t("sidebar_new_message"), /* @__PURE__ */ jsx(ArrowRight, { className: "size-4" })]
4658
4658
  }), showAdminFeatures && renderNewChannelSidebar?.({
4659
4659
  trigger: /* @__PURE__ */ jsxs("button", {
4660
4660
  onClick: () => setCreateChatOpen(false),
4661
- className: "flex items-center justify-between rounded-md p-2 hover:bg-gray-50 active:bg-gray-100",
4661
+ className: "flex items-center justify-between rounded-md p-2 hover:bg-[color:var(--messaging-muted,var(--color-gray-50))] active:bg-[color:var(--messaging-muted,var(--color-gray-100))]",
4662
4662
  children: [t("sidebar_new_channel"), /* @__PURE__ */ jsx(ArrowRight, { className: "size-4" })]
4663
4663
  }),
4664
4664
  open: channelSidebarOpen,
4665
4665
  onOpenChange: setChannelSidebarOpen
4666
4666
  })]
4667
4667
  }), /* @__PURE__ */ jsxs("div", {
4668
- className: "flex gap-2 border-t border-t-gray-200 bg-gray-50 p-4",
4668
+ className: "flex gap-2 border-t border-t-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] p-4",
4669
4669
  children: [showAdminFeatures && (isMobile ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
4670
- className: "size-9 items-center justify-center text-gray-700",
4670
+ className: "size-9 items-center justify-center text-[color:var(--messaging-foreground,var(--color-gray-700))]",
4671
4671
  onClick: () => setIsNavigationOpen(true),
4672
4672
  "aria-label": t("header_more_options"),
4673
4673
  children: /* @__PURE__ */ jsx(Menu, { className: "size-4" })
@@ -4687,7 +4687,7 @@ function MessagingLayoutSidebarFooter({ showAdminFeatures, renderNewChannelSideb
4687
4687
  })] }) : /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
4688
4688
  asChild: true,
4689
4689
  children: /* @__PURE__ */ jsx(Button, {
4690
- className: "size-9 items-center justify-center text-gray-700",
4690
+ className: "size-9 items-center justify-center text-[color:var(--messaging-foreground,var(--color-gray-700))]",
4691
4691
  children: /* @__PURE__ */ jsx(Menu, { className: "size-4" })
4692
4692
  })
4693
4693
  }), /* @__PURE__ */ jsx(DropdownMenuContent, {
@@ -4700,18 +4700,18 @@ function MessagingLayoutSidebarFooter({ showAdminFeatures, renderNewChannelSideb
4700
4700
  onClick: () => {
4701
4701
  navigation.navigate({ view: "index" });
4702
4702
  },
4703
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4704
- children: [/* @__PURE__ */ jsx(BookUser, { className: "size-4 text-gray-500" }), t("sidebar_contacts")]
4703
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4704
+ children: [/* @__PURE__ */ jsx(BookUser, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("sidebar_contacts")]
4705
4705
  }), /* @__PURE__ */ jsxs(DropdownMenuItem, {
4706
4706
  onClick: () => {
4707
4707
  navigation.navigate({ view: "scheduled" });
4708
4708
  },
4709
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
4710
- children: [/* @__PURE__ */ jsx(CalendarClock, { className: "size-4 text-gray-500" }), t("sidebar_scheduled_messages")]
4709
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
4710
+ children: [/* @__PURE__ */ jsx(CalendarClock, { className: "size-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("sidebar_scheduled_messages")]
4711
4711
  })]
4712
4712
  })
4713
4713
  })] })), /* @__PURE__ */ jsxs(Button, {
4714
- className: "h-9 grow items-center justify-center gap-2 text-gray-900",
4714
+ className: "h-9 grow items-center justify-center gap-2 text-[color:var(--messaging-foreground,var(--color-gray-900))]",
4715
4715
  onClick: () => setCreateChatOpen((p) => !p),
4716
4716
  children: [createChatOpen ? t("sidebar_new_button_close") : t("sidebar_new_button_open"), createChatOpen ? /* @__PURE__ */ jsx(X, { className: "size-4" }) : /* @__PURE__ */ jsx(SquarePen, { className: "size-4" })]
4717
4717
  })]
@@ -4787,12 +4787,12 @@ const TooltipWithArrow = ({ title, content, children, className, side, align, si
4787
4787
  side,
4788
4788
  align,
4789
4789
  sideOffset,
4790
- className: twMerge(`group relative max-w-80 overflow-visible rounded-lg bg-gray-900 px-3 py-2 text-white`, className),
4790
+ className: twMerge(`group relative max-w-80 overflow-visible rounded-lg bg-[color:var(--messaging-muted,var(--color-gray-900))] px-3 py-2 text-white`, className),
4791
4791
  children: [/* @__PURE__ */ jsx("div", {
4792
4792
  className: "text-xs font-semibold text-white",
4793
4793
  children: title
4794
4794
  }), content && /* @__PURE__ */ jsx("div", {
4795
- className: "mt-1 text-xs font-medium text-gray-300",
4795
+ className: "mt-1 text-xs font-medium text-[color:var(--messaging-muted-foreground,var(--color-gray-300))]",
4796
4796
  children: content
4797
4797
  })]
4798
4798
  })]
@@ -4837,7 +4837,7 @@ function SidebarGroup({ children, label, icon, loadState, description }) {
4837
4837
  children: /* @__PURE__ */ jsx("button", {
4838
4838
  type: "button",
4839
4839
  onClick: () => loadState.load(),
4840
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-2.5 py-0.5 text-[10px] font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
4840
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-2.5 py-0.5 text-[10px] font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
4841
4841
  children: t("sidebar_load_more")
4842
4842
  })
4843
4843
  }, "load-more")
@@ -4861,8 +4861,8 @@ function SidebarGroup({ children, label, icon, loadState, description }) {
4861
4861
  className: "group/summary text-muted-foreground hover:bg-accent mx-3 mb-1 flex min-h-10 touch-manipulation items-center gap-2 rounded-lg px-1 text-xs font-semibold tracking-wide uppercase group-last/details:mb-0 group-open/details:mb-1 md:mx-0 md:min-h-0 md:tracking-normal md:normal-case",
4862
4862
  children: [
4863
4863
  /* @__PURE__ */ jsxs("div", {
4864
- className: "group/icon grid size-5 place-items-center rounded-sm hover:bg-gray-300",
4865
- children: [/* @__PURE__ */ jsx(Icon, { className: "col-start-1 row-start-1 size-3.5 text-gray-500 transition-opacity group-hover/summary:opacity-0" }), /* @__PURE__ */ jsx(ChevronDown, { className: "col-start-1 row-start-1 size-3.5 -rotate-90 text-gray-400 opacity-0 transition-all group-open/details:rotate-0 group-hover/icon:text-gray-500 group-hover/summary:opacity-100 group-active/icon:text-gray-600" })]
4864
+ className: "group/icon grid size-5 place-items-center rounded-sm hover:bg-[color:var(--messaging-muted,var(--color-gray-300))]",
4865
+ children: [/* @__PURE__ */ jsx(Icon, { className: "col-start-1 row-start-1 size-3.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] transition-opacity group-hover/summary:opacity-0" }), /* @__PURE__ */ jsx(ChevronDown, { className: "col-start-1 row-start-1 size-3.5 -rotate-90 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] opacity-0 transition-all group-open/details:rotate-0 group-hover/icon:text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] group-hover/summary:opacity-100 group-active/icon:text-[color:var(--messaging-muted-foreground,var(--color-gray-600))]" })]
4866
4866
  }),
4867
4867
  label,
4868
4868
  /* @__PURE__ */ jsx(TooltipWithArrow, {
@@ -4870,7 +4870,7 @@ function SidebarGroup({ children, label, icon, loadState, description }) {
4870
4870
  content: description,
4871
4871
  side: "right",
4872
4872
  sideOffset: 10,
4873
- children: /* @__PURE__ */ jsx(CircleHelp, { className: "invisible ml-auto size-4 rounded-sm p-1 group-hover/summary:visible hover:bg-gray-300 hover:text-gray-500" })
4873
+ children: /* @__PURE__ */ jsx(CircleHelp, { className: "invisible ml-auto size-4 rounded-sm p-1 group-hover/summary:visible hover:bg-[color:var(--messaging-muted,var(--color-gray-300))] hover:text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" })
4874
4874
  })
4875
4875
  ]
4876
4876
  }),
@@ -4880,7 +4880,7 @@ function SidebarGroup({ children, label, icon, loadState, description }) {
4880
4880
  role: "region",
4881
4881
  "aria-label": `View all ${label} conversations`,
4882
4882
  children: [/* @__PURE__ */ jsxs("summary", {
4883
- className: "list-none p-1 text-xs font-medium text-gray-500 hover:text-gray-700",
4883
+ className: "list-none p-1 text-xs font-medium text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] hover:text-[color:var(--messaging-foreground,var(--color-gray-700))]",
4884
4884
  children: [/* @__PURE__ */ jsx("div", {
4885
4885
  className: "group-open/nested:hidden",
4886
4886
  children: t("sidebar_show_all")
@@ -5343,7 +5343,7 @@ function MessagingLayout({ children, topBar, renderLockedDownlineItem, renderNew
5343
5343
  children: initialLoadInProgress ? /* @__PURE__ */ jsx(MessagingLoadingSkeleton, { label: t("loading_messaging") }) : userWithoutChannels ? /* @__PURE__ */ jsx("div", {
5344
5344
  className: "flex h-full min-h-[30vh] w-full items-center justify-center",
5345
5345
  children: /* @__PURE__ */ jsx("p", {
5346
- className: "text-gray-500",
5346
+ className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
5347
5347
  children: t("no_conversations")
5348
5348
  })
5349
5349
  }) : /* @__PURE__ */ jsx(ScrollerContext.Provider, {
@@ -5366,7 +5366,7 @@ function ChannelHeader({ conversation, renderImage, onToast }) {
5366
5366
  children: [/* @__PURE__ */ jsxs("div", {
5367
5367
  className: "flex flex-col items-center gap-2",
5368
5368
  children: [currentEmoji ? /* @__PURE__ */ jsx("div", {
5369
- className: "grid size-12 place-items-center rounded-sm bg-gray-100 text-2xl",
5369
+ className: "grid size-12 place-items-center rounded-sm bg-[color:var(--messaging-muted,var(--color-gray-100))] text-2xl",
5370
5370
  children: currentEmoji
5371
5371
  }) : conversation.image_url ? renderImage({
5372
5372
  src: conversation.image_url,
@@ -5380,7 +5380,7 @@ function ChannelHeader({ conversation, renderImage, onToast }) {
5380
5380
  className: "text-xl font-medium",
5381
5381
  children: ["#", formatMessageChannelName(nameWithoutEmojiText)]
5382
5382
  }), conversation.description && /* @__PURE__ */ jsx("p", {
5383
- className: "text-xs text-gray-900",
5383
+ className: "text-xs text-[color:var(--messaging-foreground,var(--color-gray-900))]",
5384
5384
  children: conversation.description
5385
5385
  })]
5386
5386
  })]
@@ -5433,13 +5433,13 @@ function DirectMessageHeader({ conversation, renderImage, renderUserProfile }) {
5433
5433
  }), /* @__PURE__ */ jsxs("div", {
5434
5434
  className: "text-center",
5435
5435
  children: [/* @__PURE__ */ jsx("h2", {
5436
- className: "text-xl font-medium text-gray-900",
5436
+ className: "text-xl font-medium text-[color:var(--messaging-foreground,var(--color-gray-900))]",
5437
5437
  children: conversation.type === "GroupConversation" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children: groupName.displayName }), /* @__PURE__ */ jsxs("span", {
5438
- className: "text-gray-500",
5438
+ className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
5439
5439
  children: [" ", groupName.remainder]
5440
5440
  })] }) : conversation.name
5441
5441
  }), /* @__PURE__ */ jsx("p", {
5442
- className: "text-xs text-gray-500",
5442
+ className: "text-xs text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
5443
5443
  children: conversation.type === "SmsConversation" ? t("header_sms_message") : conversation.type === "EmailConversation" ? t("header_email_message") : conversation.type === "GroupConversation" ? t("header_group_message") : conversation.type === "DownlineConversation" ? t("header_downline_message") : t("header_direct_message")
5444
5444
  })]
5445
5445
  })]
@@ -5498,18 +5498,18 @@ function DatePickerDialog({ open, onOpenChange, onApply }) {
5498
5498
  /* @__PURE__ */ jsx("button", {
5499
5499
  type: "button",
5500
5500
  "aria-label": t("date_picker_previous_month"),
5501
- className: "size-8 rounded-md hover:bg-gray-100 active:bg-gray-200",
5501
+ className: "size-8 rounded-md hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
5502
5502
  onClick: () => setCurrentMonth((m) => subMonths(m, 1)),
5503
5503
  children: /* @__PURE__ */ jsx(ChevronLeft, {})
5504
5504
  }),
5505
5505
  /* @__PURE__ */ jsx("div", {
5506
- className: "text-base font-semibold text-gray-700",
5506
+ className: "text-base font-semibold text-[color:var(--messaging-foreground,var(--color-gray-700))]",
5507
5507
  children: format$1(currentMonth, "MMMM yyyy")
5508
5508
  }),
5509
5509
  /* @__PURE__ */ jsx("button", {
5510
5510
  type: "button",
5511
5511
  "aria-label": t("date_picker_next_month"),
5512
- className: "size-8 rounded-md hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed disabled:opacity-30",
5512
+ className: "size-8 rounded-md hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))] disabled:cursor-not-allowed disabled:opacity-30",
5513
5513
  onClick: () => setCurrentMonth((m) => addMonths(m, 1)),
5514
5514
  disabled: !canGoNext,
5515
5515
  children: /* @__PURE__ */ jsx(ChevronRight, {})
@@ -5528,7 +5528,7 @@ function DatePickerDialog({ open, onOpenChange, onApply }) {
5528
5528
  setCurrentMonth(new Date(value));
5529
5529
  },
5530
5530
  max: format$1(now, "yyyy-MM-dd"),
5531
- className: clsx$1("hide-date-picker border border-gray-300")
5531
+ className: clsx$1("hide-date-picker border border-[color:var(--messaging-border,var(--color-gray-300))]")
5532
5532
  }), /* @__PURE__ */ jsx(Button, {
5533
5533
  type: "button",
5534
5534
  onClick: () => {
@@ -5556,16 +5556,16 @@ function DatePickerDialog({ open, onOpenChange, onApply }) {
5556
5556
  caption: clsx$1("hidden"),
5557
5557
  head_cell: clsx$1("flex size-10 items-center justify-center text-sm font-medium"),
5558
5558
  cell: clsx$1("flex size-10 items-center justify-center"),
5559
- day: clsx$1("size-10 rounded-full text-sm font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200"),
5560
- day_selected: clsx$1("bg-blue-600! text-white!"),
5561
- day_outside: clsx$1("text-gray-500!"),
5562
- day_disabled: clsx$1("pointer-events-none text-gray-500 opacity-50")
5559
+ day: clsx$1("size-10 rounded-full text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]"),
5560
+ day_selected: clsx$1("bg-[color:var(--messaging-primary,var(--color-blue-600))]! text-[color:var(--messaging-primary-foreground,var(--color-white))]!"),
5561
+ day_outside: clsx$1("text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]!"),
5562
+ day_disabled: clsx$1("pointer-events-none text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] opacity-50")
5563
5563
  },
5564
5564
  initialFocus: true
5565
5565
  })
5566
5566
  ]
5567
5567
  }), /* @__PURE__ */ jsxs("div", {
5568
- className: "flex w-full items-center gap-3 border-t border-gray-200 pt-4",
5568
+ className: "flex w-full items-center gap-3 border-t border-[color:var(--messaging-border,var(--color-gray-200))] pt-4",
5569
5569
  children: [/* @__PURE__ */ jsx(Button, {
5570
5570
  variant: "default",
5571
5571
  onClick: () => onOpenChange(false),
@@ -5589,11 +5589,11 @@ function UnreadDivider() {
5589
5589
  children: [/* @__PURE__ */ jsx("div", {
5590
5590
  className: "absolute inset-0 flex items-center",
5591
5591
  "aria-hidden": "true",
5592
- children: /* @__PURE__ */ jsx("div", { className: "h-5 w-full -translate-y-1/2 border-b border-slate-300 bg-white" })
5592
+ children: /* @__PURE__ */ jsx("div", { className: "h-5 w-full -translate-y-1/2 border-b border-[color:var(--messaging-border,var(--color-slate-300))] bg-[color:var(--messaging-background,var(--color-white))]" })
5593
5593
  }), /* @__PURE__ */ jsx("div", {
5594
5594
  className: "relative z-10 flex justify-center",
5595
5595
  children: /* @__PURE__ */ jsx("span", {
5596
- className: "rounded-2xl border border-indigo-800 bg-white px-2 py-0.5 text-xs font-medium text-indigo-900",
5596
+ className: "rounded-2xl border border-indigo-800 bg-[color:var(--messaging-background,var(--color-white))] px-2 py-0.5 text-xs font-medium text-indigo-900",
5597
5597
  children: t("message_new")
5598
5598
  })
5599
5599
  })]
@@ -5621,13 +5621,13 @@ function DayDivider({ date, conversationId, onJumpToDate }) {
5621
5621
  /* @__PURE__ */ jsx("div", {
5622
5622
  className: "absolute inset-0 flex items-center",
5623
5623
  "aria-hidden": "true",
5624
- children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-gray-200" })
5624
+ children: /* @__PURE__ */ jsx("div", { className: "w-full border-t border-[color:var(--messaging-border,var(--color-gray-200))]" })
5625
5625
  }),
5626
5626
  /* @__PURE__ */ jsx("div", {
5627
5627
  className: "relative flex justify-center",
5628
5628
  children: isMobile ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("button", {
5629
5629
  type: "button",
5630
- className: cn("flex items-center gap-1.5 rounded-2xl border border-gray-200 bg-gray-50 py-0.5 pr-2.5 pl-3 text-xs font-medium text-gray-700", conversationId ? "cursor-pointer hover:bg-gray-100" : "cursor-default"),
5630
+ className: cn("flex items-center gap-1.5 rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] py-0.5 pr-2.5 pl-3 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]", conversationId ? "cursor-pointer hover:bg-[color:var(--messaging-muted,var(--color-gray-100))]" : "cursor-default"),
5631
5631
  "aria-label": conversationId ? t("divider_jump_to") : void 0,
5632
5632
  disabled: !conversationId,
5633
5633
  onClick: () => setDateMenuOpen(true),
@@ -5675,7 +5675,7 @@ function DayDivider({ date, conversationId, onJumpToDate }) {
5675
5675
  asChild: true,
5676
5676
  children: /* @__PURE__ */ jsxs("button", {
5677
5677
  type: "button",
5678
- className: cn("flex items-center gap-1.5 rounded-2xl border border-gray-200 bg-gray-50 py-0.5 pr-2.5 pl-3 text-xs font-medium text-gray-700", conversationId ? "cursor-pointer hover:bg-gray-100" : "cursor-default"),
5678
+ className: cn("flex items-center gap-1.5 rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] py-0.5 pr-2.5 pl-3 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]", conversationId ? "cursor-pointer hover:bg-[color:var(--messaging-muted,var(--color-gray-100))]" : "cursor-default"),
5679
5679
  "aria-label": conversationId ? t("divider_jump_to") : void 0,
5680
5680
  disabled: !conversationId,
5681
5681
  children: [label, /* @__PURE__ */ jsx(ChevronDown, { className: clsx$1("transition-transform duration-200", dateMenuOpen ? "rotate-180" : "") })]
@@ -5684,39 +5684,39 @@ function DayDivider({ date, conversationId, onJumpToDate }) {
5684
5684
  align: "center",
5685
5685
  className: "w-60 p-0",
5686
5686
  children: [/* @__PURE__ */ jsx(DropdownMenuLabel, {
5687
- className: "border-b border-gray-200 px-4 py-3 text-sm font-semibold text-slate-700",
5687
+ className: "border-b border-[color:var(--messaging-border,var(--color-gray-200))] px-4 py-3 text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5688
5688
  children: t("divider_jump_to")
5689
5689
  }), /* @__PURE__ */ jsxs("div", {
5690
5690
  className: "px-0 py-1",
5691
5691
  children: [
5692
5692
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5693
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5693
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5694
5694
  onSelect: () => jumpToDate(startOfDay(/* @__PURE__ */ new Date())),
5695
5695
  children: t("divider_today")
5696
5696
  }),
5697
5697
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5698
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5698
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5699
5699
  onSelect: () => jumpToDate(startOfDay(subDays(/* @__PURE__ */ new Date(), 1))),
5700
5700
  children: t("divider_yesterday")
5701
5701
  }),
5702
5702
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5703
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5703
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5704
5704
  onSelect: () => jumpToDate(startOfDay(subDays(/* @__PURE__ */ new Date(), 7))),
5705
5705
  children: t("divider_last_week")
5706
5706
  }),
5707
5707
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5708
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5708
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5709
5709
  onSelect: () => jumpToDate(startOfDay(subDays(/* @__PURE__ */ new Date(), 30))),
5710
5710
  children: t("divider_last_month")
5711
5711
  }),
5712
5712
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5713
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5713
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5714
5714
  onSelect: () => jumpToDate("start"),
5715
5715
  children: t("divider_very_beginning")
5716
5716
  }),
5717
5717
  /* @__PURE__ */ jsx(DropdownMenuSeparator, { className: "mx-0 my-1" }),
5718
5718
  /* @__PURE__ */ jsx(DropdownMenuItem, {
5719
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
5719
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
5720
5720
  onSelect: onSelectSpecificDate,
5721
5721
  children: t("divider_specific_date")
5722
5722
  })
@@ -5754,16 +5754,16 @@ function ErrorState({ title, message, onRetry }) {
5754
5754
  /* @__PURE__ */ jsxs("div", {
5755
5755
  className: "flex flex-col items-center gap-2 text-center",
5756
5756
  children: [/* @__PURE__ */ jsx("h3", {
5757
- className: "text-base leading-tight font-semibold text-slate-900",
5757
+ className: "text-base leading-tight font-semibold text-[color:var(--messaging-foreground,var(--color-slate-900))]",
5758
5758
  children: effectiveTitle
5759
5759
  }), /* @__PURE__ */ jsx("p", {
5760
- className: "text-sm leading-tight text-slate-600",
5760
+ className: "text-sm leading-tight text-[color:var(--messaging-muted-foreground,var(--color-slate-600))]",
5761
5761
  children: effectiveMessage
5762
5762
  })]
5763
5763
  }),
5764
5764
  onRetry && /* @__PURE__ */ jsx("button", {
5765
5765
  onClick: onRetry,
5766
- className: "rounded-md bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:outline-none",
5766
+ className: "rounded-md bg-[color:var(--messaging-primary,var(--color-blue-600))] px-4 py-2 text-sm font-medium text-[color:var(--messaging-primary-foreground,var(--color-white))] hover:bg-[color:var(--messaging-primary,var(--color-blue-700))] focus:ring-2 focus:ring-[color:var(--messaging-primary,var(--color-blue-500))] focus:ring-offset-2 focus:outline-none",
5767
5767
  children: t("error_retry")
5768
5768
  })
5769
5769
  ]
@@ -5864,7 +5864,7 @@ function EmojiPickerFooter({ className, ...props }) {
5864
5864
  children: "Select an emoji…"
5865
5865
  }) }), /* @__PURE__ */ jsx(at.SkinToneSelector, {
5866
5866
  emoji: "👋",
5867
- className: "ml-auto aspect-square h-full rounded-sm hover:bg-gray-100 active:bg-gray-200"
5867
+ className: "ml-auto aspect-square h-full rounded-sm hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]"
5868
5868
  })]
5869
5869
  });
5870
5870
  }
@@ -5978,18 +5978,18 @@ function AttachmentDisplay({ attachment: { url, image_url, thumbnail_url, filena
5978
5978
  const showAsImage = metadata && thumbnail_url && !showAsVideo;
5979
5979
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
5980
5980
  !showAsVideo && !showAsImage && /* @__PURE__ */ jsxs("div", {
5981
- className: "group/file max-w-96 overflow-clip rounded-xl border border-gray-200 bg-gray-50",
5981
+ className: "group/file max-w-96 overflow-clip rounded-xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))]",
5982
5982
  children: [/* @__PURE__ */ jsxs("div", {
5983
5983
  className: "flex items-center gap-2 p-2",
5984
5984
  children: [/* @__PURE__ */ jsxs("button", {
5985
5985
  type: "button",
5986
5986
  onClick: () => window.open(url, "_blank"),
5987
- className: "-m-1 flex items-center gap-2 rounded-lg p-1 text-left hover:bg-gray-100 active:bg-gray-200",
5987
+ className: "-m-1 flex items-center gap-2 rounded-lg p-1 text-left hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
5988
5988
  children: [/* @__PURE__ */ jsxs("div", {
5989
- className: clsx$1("isolate flex size-8 shrink-0 flex-col rounded-sm border border-white bg-gradient-to-b from-white to-zinc-100 ring-1 ring-gray-300"),
5989
+ className: clsx$1("isolate flex size-8 shrink-0 flex-col rounded-sm border border-[color:var(--messaging-border,var(--color-white))] bg-gradient-to-b from-[color:var(--messaging-background,var(--color-white))] to-zinc-100 ring-1 ring-[color:var(--messaging-border,var(--color-gray-300))]"),
5990
5990
  children: [/* @__PURE__ */ jsx("div", {
5991
- className: "mx-0.5 mt-0.5 grid grow place-items-center rounded-tl-[0.1875rem] rounded-tr-[0.1875rem] bg-gradient-to-b from-gray-100 to-gray-50",
5992
- children: /* @__PURE__ */ jsx(FileIcon, { className: "-mb-1.5 size-2.5 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-gray-300" })
5991
+ className: "mx-0.5 mt-0.5 grid grow place-items-center rounded-tl-[0.1875rem] rounded-tr-[0.1875rem] bg-gradient-to-b from-[color:var(--messaging-muted,var(--color-gray-100))] to-[color:var(--messaging-background,var(--color-gray-50))]",
5992
+ children: /* @__PURE__ */ jsx(FileIcon, { className: "-mb-1.5 size-2.5 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-[color:var(--messaging-muted-foreground,var(--color-gray-300))]" })
5993
5993
  }), /* @__PURE__ */ jsx("div", {
5994
5994
  className: clsx$1("text-messaging-6 z-10 m-px mt-0 flex h-4 items-center justify-center rounded-[0.25rem] border text-center text-white uppercase text-shadow-2xs", config.borderColor),
5995
5995
  style: { background: config.bgColor },
@@ -5998,15 +5998,15 @@ function AttachmentDisplay({ attachment: { url, image_url, thumbnail_url, filena
5998
5998
  }), /* @__PURE__ */ jsxs("div", {
5999
5999
  className: "mr-3 grid gap-1.5",
6000
6000
  children: [/* @__PURE__ */ jsx("div", {
6001
- className: "text-messaging-2 capsize -my-1 truncate py-1 text-gray-900",
6001
+ className: "text-messaging-2 capsize -my-1 truncate py-1 text-[color:var(--messaging-foreground,var(--color-gray-900))]",
6002
6002
  children: filename
6003
6003
  }), /* @__PURE__ */ jsx("div", {
6004
- className: "text-messaging-6 capsize text-gray-500",
6004
+ className: "text-messaging-6 capsize text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
6005
6005
  children: content_size ? formatFileSize(content_size) : t("attachment_unknown_size")
6006
6006
  })]
6007
6007
  })]
6008
6008
  }), /* @__PURE__ */ jsx("div", {
6009
- className: "ml-auto flex gap-1 rounded-lg border border-gray-200 bg-white p-1 opacity-0 transition-opacity group-hover/file:opacity-100",
6009
+ className: "ml-auto flex gap-1 rounded-lg border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-1 opacity-0 transition-opacity group-hover/file:opacity-100",
6010
6010
  children: /* @__PURE__ */ jsx(IconButton, {
6011
6011
  size: "icon-xs",
6012
6012
  icon: Download,
@@ -6023,7 +6023,7 @@ function AttachmentDisplay({ attachment: { url, image_url, thumbnail_url, filena
6023
6023
  children: /* @__PURE__ */ jsx("img", {
6024
6024
  src: image_url,
6025
6025
  alt: filename,
6026
- className: "h-40 w-80 min-w-full border-t border-gray-200 object-cover object-top"
6026
+ className: "h-40 w-80 min-w-full border-t border-[color:var(--messaging-border,var(--color-gray-200))] object-cover object-top"
6027
6027
  })
6028
6028
  })]
6029
6029
  }),
@@ -6038,7 +6038,7 @@ function AttachmentDisplay({ attachment: { url, image_url, thumbnail_url, filena
6038
6038
  alt: filename,
6039
6039
  width: metadata?.width,
6040
6040
  height: metadata?.height,
6041
- className: "h-svh max-h-full w-svw max-w-full rounded-lg bg-gray-100 object-cover"
6041
+ className: "h-svh max-h-full w-svw max-w-full rounded-lg bg-[color:var(--messaging-muted,var(--color-gray-100))] object-cover"
6042
6042
  })
6043
6043
  }),
6044
6044
  showAsVideo && /* @__PURE__ */ jsx("video", {
@@ -27423,7 +27423,7 @@ const UserMentionChip = ({ userId }) => {
27423
27423
  const { t } = useMessagingTranslation();
27424
27424
  const thisUser = (users ?? []).find((user) => user.id.toString() === userId);
27425
27425
  return /* @__PURE__ */ jsxs("span", {
27426
- className: "font-medium text-blue-600 not-italic",
27426
+ className: "font-medium text-[color:var(--messaging-primary,var(--color-blue-600))] not-italic",
27427
27427
  children: ["@", [thisUser?.first_name, thisUser?.last_name].filter(Boolean).join(" ") || t("unknown")]
27428
27428
  });
27429
27429
  };
@@ -27494,7 +27494,7 @@ const markdownComponents = {
27494
27494
  },
27495
27495
  blockquote: ({ children }) => {
27496
27496
  return /* @__PURE__ */ jsx("blockquote", {
27497
- className: "border-l-2 border-gray-400 bg-black/5 p-2",
27497
+ className: "border-l-2 border-[color:var(--messaging-border,var(--color-gray-400))] bg-[color:var(--messaging-foreground,var(--color-black))]/5 p-2",
27498
27498
  children: processChildren(children)
27499
27499
  });
27500
27500
  },
@@ -27506,13 +27506,13 @@ const markdownComponents = {
27506
27506
  },
27507
27507
  code: ({ children }) => {
27508
27508
  return /* @__PURE__ */ jsx("code", {
27509
- className: "my-0.5 inline-block rounded-xs bg-gray-800/5 px-1",
27509
+ className: "my-0.5 inline-block rounded-xs bg-[color:var(--messaging-muted,var(--color-gray-800))]/5 px-1",
27510
27510
  children: processChildren(children)
27511
27511
  });
27512
27512
  },
27513
27513
  a: ({ href, children }) => {
27514
27514
  return /* @__PURE__ */ jsx("a", {
27515
- className: "text-blue-600 visited:text-purple-600 hover:underline",
27515
+ className: "text-[color:var(--messaging-primary,var(--color-blue-600))] visited:text-purple-600 hover:underline",
27516
27516
  href,
27517
27517
  target: "_blank",
27518
27518
  rel: "noopener noreferrer",
@@ -27527,13 +27527,13 @@ const markdownComponents = {
27527
27527
  },
27528
27528
  td: ({ children }) => {
27529
27529
  return /* @__PURE__ */ jsx("td", {
27530
- className: "border border-gray-300 px-3 py-1.5",
27530
+ className: "border border-[color:var(--messaging-border,var(--color-gray-300))] px-3 py-1.5",
27531
27531
  children: processChildren(children)
27532
27532
  });
27533
27533
  },
27534
27534
  th: ({ children }) => {
27535
27535
  return /* @__PURE__ */ jsx("th", {
27536
- className: "border border-gray-300 px-3 py-1.5",
27536
+ className: "border border-[color:var(--messaging-border,var(--color-gray-300))] px-3 py-1.5",
27537
27537
  children: processChildren(children)
27538
27538
  });
27539
27539
  },
@@ -27554,7 +27554,7 @@ const markdownComponents = {
27554
27554
  },
27555
27555
  img: (props) => /* @__PURE__ */ jsx(ProcessedImage, { ...props }),
27556
27556
  hr: () => {
27557
- return /* @__PURE__ */ jsx("hr", { className: "my-2 border-gray-300" });
27557
+ return /* @__PURE__ */ jsx("hr", { className: "my-2 border-[color:var(--messaging-border,var(--color-gray-300))]" });
27558
27558
  },
27559
27559
  br: () => {
27560
27560
  return /* @__PURE__ */ jsx("br", { className: "[&+&+&+&+&]:hidden" });
@@ -37734,7 +37734,7 @@ function MessageReactions({ reactions: rawReactions, my_reaction, onUnreact, onR
37734
37734
  initial: prefersReducedMotion ? false : { opacity: 0 },
37735
37735
  animate: prefersReducedMotion ? void 0 : { opacity: 1 },
37736
37736
  exit: prefersReducedMotion ? void 0 : { opacity: 0 },
37737
- className: twMerge("relative z-10 flex h-6 items-center gap-1.5 overflow-clip rounded-md border", splitEmojis(my_reaction).includes(clickedEmoji) ? "border-gray-200 bg-gray-100 px-1.5 text-gray-400 hover:bg-gray-200 active:border-gray-300 active:bg-gray-300" : "border-gray-200 bg-white px-1.5 text-gray-400 hover:bg-gray-200 active:border-gray-300 active:bg-gray-300"),
37737
+ className: twMerge("relative z-10 flex h-6 items-center gap-1.5 overflow-clip rounded-md border", splitEmojis(my_reaction).includes(clickedEmoji) ? "border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-100))] px-1.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:border-[color:var(--messaging-border,var(--color-gray-300))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]" : "border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] px-1.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:border-[color:var(--messaging-border,var(--color-gray-300))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]"),
37738
37738
  style: { "--emoji": `"${clickedEmoji}"` },
37739
37739
  onClick: () => {
37740
37740
  const currentReactionEmojis = splitEmojis(my_reaction);
@@ -37759,7 +37759,7 @@ function MessageReactions({ reactions: rawReactions, my_reaction, onUnreact, onR
37759
37759
  open: emojiPickerOpen,
37760
37760
  onOpenChange: setEmojiPickerOpen,
37761
37761
  children: [/* @__PURE__ */ jsx(PopoverTrigger, {
37762
- className: "grid size-6 place-items-center rounded-md bg-white text-gray-400 hover:bg-gray-200 active:border-gray-300 active:bg-gray-300",
37762
+ className: "grid size-6 place-items-center rounded-md bg-[color:var(--messaging-background,var(--color-white))] text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:border-[color:var(--messaging-border,var(--color-gray-300))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]",
37763
37763
  children: /* @__PURE__ */ jsx(Plus, { className: "size-4" })
37764
37764
  }), /* @__PURE__ */ jsx(PopoverContent, {
37765
37765
  align: "center",
@@ -37897,12 +37897,12 @@ function Timestamp({ children: timestamp, className = "", displayMode = "auto" }
37897
37897
  className: "capsize grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1 pr-2 pb-1",
37898
37898
  children: [
37899
37899
  /* @__PURE__ */ jsx("div", {
37900
- className: "rounded-sm bg-gray-700 px-1 py-0.5",
37900
+ className: "rounded-sm bg-[color:var(--messaging-muted,var(--color-gray-700))] px-1 py-0.5",
37901
37901
  children: userTimezoneFormatted.timezone
37902
37902
  }),
37903
37903
  /* @__PURE__ */ jsx("div", { children: userTimezoneFormatted.dateTime }),
37904
37904
  /* @__PURE__ */ jsx("div", {
37905
- className: "rounded-sm bg-gray-700 px-1 py-0.5",
37905
+ className: "rounded-sm bg-[color:var(--messaging-muted,var(--color-gray-700))] px-1 py-0.5",
37906
37906
  children: utcFormatted.timezone
37907
37907
  }),
37908
37908
  /* @__PURE__ */ jsx("div", { children: utcFormatted.dateTime })
@@ -37985,7 +37985,7 @@ function Message({ conversation, message, isGrouped, highlightType = "auto", ren
37985
37985
  className: cn("group/message children-pointer-events-auto content-auto pointer-events-none relative px-3 py-1.5 pt-6 select-text hover:z-10 md:px-4 md:pt-[1.375rem]", isGrouped ? "mt-1" : "-mt-3", message.status === "queued" ? "opacity-50" : "transition-opacity duration-1000", emojiPickerOpen && "z-20", optionsOpen && "z-20"),
37986
37986
  children: [
37987
37987
  pinned && highlightType !== "never" && /* @__PURE__ */ jsxs("div", {
37988
- className: clsx$1("text-messaging-6 mb-2 ml-10.5 flex items-center gap-1.5", pinned && highlightType === "auto" && "text-orange-600", highlightType === "search" && "text-blue-600"),
37988
+ className: clsx$1("text-messaging-6 mb-2 ml-10.5 flex items-center gap-1.5", pinned && highlightType === "auto" && "text-orange-600", highlightType === "search" && "text-[color:var(--messaging-primary,var(--color-blue-600))]"),
37989
37989
  children: [/* @__PURE__ */ jsx(Pin, {
37990
37990
  className: "h-2!",
37991
37991
  fill: "currentColor"
@@ -37997,7 +37997,7 @@ function Message({ conversation, message, isGrouped, highlightType = "auto", ren
37997
37997
  /* @__PURE__ */ jsxs("div", {
37998
37998
  className: "flex gap-2.5",
37999
37999
  children: [
38000
- /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 top-4 -z-10 group-hover/message:bg-gray-50", pinned && highlightType === "auto" && "bg-amber-50 group-hover/message:bg-amber-100/75", highlightType === "search" && "bg-blue-50 group-hover/message:bg-blue-100/75") }),
38000
+ /* @__PURE__ */ jsx("div", { className: cn("absolute inset-0 top-4 -z-10 group-hover/message:bg-[color:var(--messaging-muted,var(--color-gray-50))]", pinned && highlightType === "auto" && "bg-amber-50 group-hover/message:bg-amber-100/75", highlightType === "search" && "bg-[color:var(--messaging-primary-tint,var(--color-blue-50))] group-hover/message:bg-[color:var(--messaging-primary-tint,var(--color-blue-100))]/75") }),
38001
38001
  /* @__PURE__ */ jsxs("div", {
38002
38002
  className: cn("text-muted-foreground md:border-border md:bg-background visible absolute top-2 right-2 flex items-center gap-1 rounded-full bg-transparent p-0 md:invisible md:top-0 md:right-4 md:rounded-md md:border md:p-1 md:shadow-lg md:group-hover/message:visible", emojiPickerOpen && "visible", optionsOpen && "visible"),
38003
38003
  children: [conversation.type !== "SmsConversation" && conversation.type !== "EmailConversation" && /* @__PURE__ */ jsxs(Popover, {
@@ -38061,12 +38061,12 @@ function Message({ conversation, message, isGrouped, highlightType = "auto", ren
38061
38061
  setPin(!pinned);
38062
38062
  setOptionsOpen(false);
38063
38063
  },
38064
- className: "cursor-pointer text-sm font-medium text-gray-700",
38065
- children: [/* @__PURE__ */ jsx(Pin, { className: "text-gray-500" }), pinned ? t("message_unpin") : t("message_pin")]
38064
+ className: "cursor-pointer text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]",
38065
+ children: [/* @__PURE__ */ jsx(Pin, { className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), pinned ? t("message_unpin") : t("message_pin")]
38066
38066
  }), /* @__PURE__ */ jsxs(DropdownMenuItem, {
38067
38067
  onSelect: copyMessageLink,
38068
- className: "cursor-pointer text-sm font-medium text-gray-700",
38069
- children: [/* @__PURE__ */ jsx(Link, { className: "text-gray-500" }), t("message_copy_link")]
38068
+ className: "cursor-pointer text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]",
38069
+ children: [/* @__PURE__ */ jsx(Link, { className: "text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("message_copy_link")]
38070
38070
  })]
38071
38071
  })]
38072
38072
  })]
@@ -38258,7 +38258,7 @@ function SystemMessage({ message, conversation, fallbackText, renderProfileTrigg
38258
38258
  children: [/* @__PURE__ */ jsxs("div", {
38259
38259
  className: "flex gap-2.5",
38260
38260
  children: [
38261
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 top-4 -z-10 group-hover/message:bg-gray-50" }),
38261
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 top-4 -z-10 group-hover/message:bg-[color:var(--messaging-muted,var(--color-gray-50))]" }),
38262
38262
  profileTrigger(message.sender_recipient.id, /* @__PURE__ */ jsx(ProfilePhoto, {
38263
38263
  size: "lg",
38264
38264
  conversation,
@@ -38271,7 +38271,7 @@ function SystemMessage({ message, conversation, fallbackText, renderProfileTrigg
38271
38271
  children: [/* @__PURE__ */ jsxs("div", {
38272
38272
  className: "mb-1 flex h-4 items-center gap-1.5",
38273
38273
  children: [profileTrigger(message.sender_recipient.id, /* @__PURE__ */ jsxs("div", {
38274
- className: "text-messaging-2 capsize cursor-pointer text-gray-900 hover:underline",
38274
+ className: "text-messaging-2 capsize cursor-pointer text-[color:var(--messaging-foreground,var(--color-gray-900))] hover:underline",
38275
38275
  children: [
38276
38276
  message.sender_recipient.first_name,
38277
38277
  " ",
@@ -38279,11 +38279,11 @@ function SystemMessage({ message, conversation, fallbackText, renderProfileTrigg
38279
38279
  !message.sender_recipient.first_name && !message.sender_recipient.last_name && /* @__PURE__ */ jsx(Fragment$1, { children: message.sender_recipient.phone || message.sender_recipient.email || t("message_unknown_sender") })
38280
38280
  ]
38281
38281
  })), /* @__PURE__ */ jsx(Timestamp, {
38282
- className: "text-messaging-6 capsize text-gray-400",
38282
+ className: "text-messaging-6 capsize text-[color:var(--messaging-muted-foreground,var(--color-gray-400))]",
38283
38283
  children: message.sent_at || message.created_at
38284
38284
  })]
38285
38285
  }), /* @__PURE__ */ jsx("div", {
38286
- className: "text-messaging-3 capsize text-gray-400",
38286
+ className: "text-messaging-3 capsize text-[color:var(--messaging-muted-foreground,var(--color-gray-400))]",
38287
38287
  children: getSystemMessageText()
38288
38288
  })]
38289
38289
  })
@@ -49865,16 +49865,16 @@ function AttachmentDropzone({ props, isDragOver }) {
49865
49865
  onDragEnter: void 0,
49866
49866
  onDragOver: void 0
49867
49867
  }), /* @__PURE__ */ jsx("div", {
49868
- className: "absolute inset-0 z-10 rounded-lg border border-gray-200 bg-white shadow-sm",
49868
+ className: "absolute inset-0 z-10 rounded-lg border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] shadow-sm",
49869
49869
  ...props,
49870
49870
  children: /* @__PURE__ */ jsx("div", {
49871
49871
  className: "flex h-full flex-col",
49872
49872
  children: /* @__PURE__ */ jsx("div", {
49873
- className: cn("flex h-full flex-1 cursor-pointer items-center justify-center rounded-lg border-2 border-dashed transition-colors", isDragOver ? "border-blue-500 bg-blue-100" : "border-gray-300 bg-gray-50"),
49873
+ className: cn("flex h-full flex-1 cursor-pointer items-center justify-center rounded-lg border-2 border-dashed transition-colors", isDragOver ? "border-[color:var(--messaging-primary,var(--color-blue-500))] bg-[color:var(--messaging-primary-tint,var(--color-blue-100))]" : "border-[color:var(--messaging-border,var(--color-gray-300))] bg-[color:var(--messaging-muted,var(--color-gray-50))]"),
49874
49874
  children: /* @__PURE__ */ jsxs("div", {
49875
49875
  className: "flex items-center gap-2 text-center",
49876
- children: [/* @__PURE__ */ jsx(Upload, { className: "h-8 w-8 text-blue-500" }), /* @__PURE__ */ jsx("p", {
49877
- className: "font-medium text-blue-600",
49876
+ children: [/* @__PURE__ */ jsx(Upload, { className: "h-8 w-8 text-[color:var(--messaging-primary,var(--color-blue-500))]" }), /* @__PURE__ */ jsx("p", {
49877
+ className: "font-medium text-[color:var(--messaging-primary,var(--color-blue-600))]",
49878
49878
  children: t("dropzone_upload")
49879
49879
  })]
49880
49880
  })
@@ -50921,10 +50921,10 @@ const MentionList = forwardRef((props, ref) => {
50921
50921
  return false;
50922
50922
  } }));
50923
50923
  return /* @__PURE__ */ jsx("div", {
50924
- className: "group/mentions grid min-w-64 rounded-lg border border-gray-200 bg-white p-1 shadow-lg",
50924
+ className: "group/mentions grid min-w-64 rounded-lg border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-1 shadow-lg",
50925
50925
  children: props.items.length > 0 ? props.items.map((item, index) => /* @__PURE__ */ jsxs("button", {
50926
50926
  type: "button",
50927
- className: cn("text-messaging-3 flex items-center gap-2 rounded-md p-1 pr-2 hover:bg-gray-200 active:bg-gray-300", index === selectedIndex ? "bg-gray-200 group-has-[button:hover]/mentions:not-hover:bg-white" : ""),
50927
+ className: cn("text-messaging-3 flex items-center gap-2 rounded-md p-1 pr-2 hover:bg-[color:var(--messaging-muted,var(--color-gray-200))] active:bg-[color:var(--messaging-muted,var(--color-gray-300))]", index === selectedIndex ? "bg-[color:var(--messaging-muted,var(--color-gray-200))] group-has-[button:hover]/mentions:not-hover:bg-[color:var(--messaging-background,var(--color-white))]" : ""),
50928
50928
  onClick: () => selectItem(index),
50929
50929
  children: [/* @__PURE__ */ jsx(ProfilePhoto, {
50930
50930
  user: item.userDetails,
@@ -50933,7 +50933,7 @@ const MentionList = forwardRef((props, ref) => {
50933
50933
  renderImage: props.renderImage
50934
50934
  }), item.label]
50935
50935
  }, item.id)) : /* @__PURE__ */ jsx("div", {
50936
- className: "text-messaging-4 px-2.5 py-1.5 text-gray-500",
50936
+ className: "text-messaging-4 px-2.5 py-1.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
50937
50937
  children: "No results"
50938
50938
  })
50939
50939
  });
@@ -51026,7 +51026,7 @@ function AttachmentPreview({ file, onRemove }) {
51026
51026
  const [previewLoaded, setPreviewLoaded] = useState(false);
51027
51027
  if (!canShowPreview && previewLoaded) setPreviewLoaded(false);
51028
51028
  return /* @__PURE__ */ jsxs("div", {
51029
- className: clsx$1("group/file relative flex max-w-80 items-center gap-2 rounded-xl border border-gray-200 bg-gray-50", previewLoaded ? "" : "min-w-48 p-2 pr-6", file.status === "failed" && "border-red-200 bg-red-50"),
51029
+ className: clsx$1("group/file relative flex max-w-80 items-center gap-2 rounded-xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))]", previewLoaded ? "" : "min-w-48 p-2 pr-6", file.status === "failed" && "border-red-200 bg-red-50"),
51030
51030
  children: [
51031
51031
  canShowPreview && /* @__PURE__ */ jsxs("div", {
51032
51032
  className: clsx$1("overlapping-children size-16 shrink-0 place-items-center overflow-clip rounded-[0.8125rem]", previewLoaded ? "" : "hidden"),
@@ -51048,10 +51048,10 @@ function AttachmentPreview({ file, onRemove }) {
51048
51048
  })] })]
51049
51049
  }),
51050
51050
  /* @__PURE__ */ jsxs("div", {
51051
- className: clsx$1("flex size-12 shrink-0 flex-col rounded-md border border-white bg-gradient-to-b from-white to-zinc-100 ring-1 ring-gray-300", previewLoaded && "hidden"),
51051
+ className: clsx$1("flex size-12 shrink-0 flex-col rounded-md border border-[color:var(--messaging-border,var(--color-white))] bg-gradient-to-b from-[color:var(--messaging-background,var(--color-white))] to-zinc-100 ring-1 ring-[color:var(--messaging-border,var(--color-gray-300))]", previewLoaded && "hidden"),
51052
51052
  children: [/* @__PURE__ */ jsx("div", {
51053
- className: "mx-1 mt-1 grid grow place-items-center rounded-tl-sm rounded-tr-sm bg-gradient-to-b from-gray-100 to-gray-50",
51054
- children: /* @__PURE__ */ jsx(FileIcon, { className: "size-4 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-gray-300" })
51053
+ className: "mx-1 mt-1 grid grow place-items-center rounded-tl-sm rounded-tr-sm bg-gradient-to-b from-[color:var(--messaging-muted,var(--color-gray-100))] to-[color:var(--messaging-background,var(--color-gray-50))]",
51054
+ children: /* @__PURE__ */ jsx(FileIcon, { className: "size-4 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-[color:var(--messaging-muted-foreground,var(--color-gray-300))]" })
51055
51055
  }), /* @__PURE__ */ jsx("div", {
51056
51056
  className: clsx$1("text-messaging-6 m-1 mt-0 flex h-4 items-center justify-center rounded-sm border text-center text-white uppercase text-shadow-2xs", config.borderColor),
51057
51057
  style: { background: config.bgColor },
@@ -51061,23 +51061,23 @@ function AttachmentPreview({ file, onRemove }) {
51061
51061
  /* @__PURE__ */ jsxs("div", {
51062
51062
  className: clsx$1("grid gap-1.5", previewLoaded && "hidden"),
51063
51063
  children: [/* @__PURE__ */ jsx("div", {
51064
- className: "text-messaging-2 capsize -my-1 truncate py-1 text-gray-900",
51064
+ className: "text-messaging-2 capsize -my-1 truncate py-1 text-[color:var(--messaging-foreground,var(--color-gray-900))]",
51065
51065
  children: file.filename
51066
51066
  }), /* @__PURE__ */ jsx("div", {
51067
- className: "text-messaging-6 capsize text-gray-500",
51067
+ className: "text-messaging-6 capsize text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
51068
51068
  children: file.status === "completed" ? file.content_size ? formatFileSize(file.content_size) : t("attachment_unknown_size") : file.status === "uploading" ? file.progress === 0 ? t("attachment_starting_upload") : `${file.progress}%` : file.error
51069
51069
  })]
51070
51070
  }),
51071
51071
  onRemove && /* @__PURE__ */ jsx(IconButton, {
51072
51072
  onClick: onRemove,
51073
- className: "absolute -top-2 -right-2 border border-gray-200 opacity-0 shadow-xs group-hover/file:opacity-100",
51073
+ className: "absolute -top-2 -right-2 border border-[color:var(--messaging-border,var(--color-gray-200))] opacity-0 shadow-xs group-hover/file:opacity-100",
51074
51074
  title: t("attachment_remove"),
51075
51075
  size: "icon-xs",
51076
51076
  icon: X
51077
51077
  }),
51078
51078
  file.status === "uploading" && /* @__PURE__ */ jsxs("div", {
51079
- className: clsx$1("overlapping-children absolute -top-2 -right-2 grid size-5 place-items-center rounded-sm border border-gray-200 bg-white", "group-hover/file:hidden"),
51080
- children: [/* @__PURE__ */ jsx(Circle, { className: "size-2.5 text-gray-300" }), /* @__PURE__ */ jsx(Loader2, { className: "size-2.5 animate-spin text-blue-600" })]
51079
+ className: clsx$1("overlapping-children absolute -top-2 -right-2 grid size-5 place-items-center rounded-sm border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))]", "group-hover/file:hidden"),
51080
+ children: [/* @__PURE__ */ jsx(Circle, { className: "size-2.5 text-[color:var(--messaging-muted-foreground,var(--color-gray-300))]" }), /* @__PURE__ */ jsx(Loader2, { className: "size-2.5 animate-spin text-[color:var(--messaging-primary,var(--color-blue-600))]" })]
51081
51081
  })
51082
51082
  ]
51083
51083
  });
@@ -51144,18 +51144,18 @@ function ScheduleMessageDialog({ open, onOpenChange, onApply, initialDate = null
51144
51144
  /* @__PURE__ */ jsx("button", {
51145
51145
  type: "button",
51146
51146
  "aria-label": t("schedule_dialog_previous_month"),
51147
- className: "size-8 rounded-md hover:bg-gray-100 active:bg-gray-200",
51147
+ className: "size-8 rounded-md hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
51148
51148
  onClick: () => setCurrentMonth((m) => subMonths(m, 1)),
51149
51149
  children: /* @__PURE__ */ jsx(ChevronLeft, {})
51150
51150
  }),
51151
51151
  /* @__PURE__ */ jsx("div", {
51152
- className: "text-base font-semibold text-gray-700",
51152
+ className: "text-base font-semibold text-[color:var(--messaging-foreground,var(--color-gray-700))]",
51153
51153
  children: format$1(currentMonth, "MMMM yyyy")
51154
51154
  }),
51155
51155
  /* @__PURE__ */ jsx("button", {
51156
51156
  type: "button",
51157
51157
  "aria-label": t("schedule_dialog_next_month"),
51158
- className: "size-8 rounded-md hover:bg-gray-100 active:bg-gray-200",
51158
+ className: "size-8 rounded-md hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
51159
51159
  onClick: () => setCurrentMonth((m) => addMonths(m, 1)),
51160
51160
  children: /* @__PURE__ */ jsx(ChevronRight, {})
51161
51161
  })
@@ -51174,7 +51174,7 @@ function ScheduleMessageDialog({ open, onOpenChange, onApply, initialDate = null
51174
51174
  setCurrentMonth(d);
51175
51175
  },
51176
51176
  min: format$1(minDay, "yyyy-MM-dd"),
51177
- className: clsx$1("hide-date-picker border border-gray-300")
51177
+ className: clsx$1("hide-date-picker border border-[color:var(--messaging-border,var(--color-gray-300))]")
51178
51178
  }), /* @__PURE__ */ jsx(Input, {
51179
51179
  name: "time",
51180
51180
  type: "time",
@@ -51182,7 +51182,7 @@ function ScheduleMessageDialog({ open, onOpenChange, onApply, initialDate = null
51182
51182
  value: timeHM,
51183
51183
  min: minTimeForSelectedDay,
51184
51184
  onChange: (e) => setTimeHM(e.target.value),
51185
- className: clsx$1("border border-gray-300")
51185
+ className: clsx$1("border border-[color:var(--messaging-border,var(--color-gray-300))]")
51186
51186
  })]
51187
51187
  }),
51188
51188
  /* @__PURE__ */ jsx(Calendar$1, {
@@ -51201,16 +51201,16 @@ function ScheduleMessageDialog({ open, onOpenChange, onApply, initialDate = null
51201
51201
  caption: clsx$1("hidden"),
51202
51202
  head_cell: clsx$1("flex size-10 items-center justify-center text-sm font-medium"),
51203
51203
  cell: clsx$1("flex size-10 items-center justify-center"),
51204
- day: clsx$1("size-10 rounded-full text-sm font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200"),
51205
- day_selected: clsx$1("bg-blue-600! text-white!"),
51206
- day_outside: clsx$1("text-gray-500!"),
51207
- day_disabled: clsx$1("pointer-events-none text-gray-500 opacity-50")
51204
+ day: clsx$1("size-10 rounded-full text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]"),
51205
+ day_selected: clsx$1("bg-[color:var(--messaging-primary,var(--color-blue-600))]! text-[color:var(--messaging-primary-foreground,var(--color-white))]!"),
51206
+ day_outside: clsx$1("text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]!"),
51207
+ day_disabled: clsx$1("pointer-events-none text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] opacity-50")
51208
51208
  },
51209
51209
  initialFocus: true
51210
51210
  })
51211
51211
  ]
51212
51212
  }), /* @__PURE__ */ jsxs("div", {
51213
- className: "flex w-full items-center gap-3 border-t border-gray-200 pt-4",
51213
+ className: "flex w-full items-center gap-3 border-t border-[color:var(--messaging-border,var(--color-gray-200))] pt-4",
51214
51214
  children: [/* @__PURE__ */ jsx(Button, {
51215
51215
  variant: "default",
51216
51216
  onClick: () => onOpenChange(false),
@@ -51317,12 +51317,12 @@ function ComposerActions({ editor, onAttachment, onSend, onSchedule, canSendMess
51317
51317
  }) : /* @__PURE__ */ jsx("div", { className: "mr-auto" }),
51318
51318
  messageHasContent && mode === "normal" && /* @__PURE__ */ jsx("button", {
51319
51319
  type: "button",
51320
- className: "overlapping-children items-center justify-end rounded-sm px-2 hover:bg-gray-100 active:bg-gray-200",
51320
+ className: "overlapping-children items-center justify-end rounded-sm px-2 hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
51321
51321
  onClick: () => {
51322
51322
  setSendWithEnter(!sendWithEnter);
51323
51323
  },
51324
51324
  children: /* @__PURE__ */ jsx("div", {
51325
- className: "text-messaging-6 text-gray-400",
51325
+ className: "text-messaging-6 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))]",
51326
51326
  children: sendWithEnter ? /* @__PURE__ */ jsx(Fragment$1, { children: t("composer_enter_to_send") }) : /* @__PURE__ */ jsx(Fragment$1, { children: t("composer_shift_enter_to_send") })
51327
51327
  })
51328
51328
  }),
@@ -51364,19 +51364,19 @@ function ComposerActions({ editor, onAttachment, onSend, onSchedule, canSendMess
51364
51364
  align: "end",
51365
51365
  className: "w-60 p-0",
51366
51366
  children: [/* @__PURE__ */ jsx(DropdownMenuLabel, {
51367
- className: "border-b border-gray-200 px-4 py-3 text-sm font-semibold text-slate-700",
51367
+ className: "border-b border-[color:var(--messaging-border,var(--color-gray-200))] px-4 py-3 text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-slate-700))]",
51368
51368
  children: t("composer_schedule_send")
51369
51369
  }), /* @__PURE__ */ jsxs("div", {
51370
51370
  className: "px-0 py-1",
51371
51371
  children: [
51372
51372
  quickScheduleOptions.map((dt, idx) => /* @__PURE__ */ jsx(DropdownMenuItem, {
51373
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
51373
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
51374
51374
  onSelect: () => onSchedule(dt),
51375
51375
  children: formatOptionLabel(dt)
51376
51376
  }, idx)),
51377
51377
  /* @__PURE__ */ jsx(DropdownMenuSeparator, { className: "mx-0 my-1" }),
51378
51378
  /* @__PURE__ */ jsx(DropdownMenuItem, {
51379
- className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
51379
+ className: "mx-1.5 my-0 cursor-pointer rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
51380
51380
  onSelect: () => setCustomDialogOpen(true),
51381
51381
  children: t("composer_custom_date_time")
51382
51382
  })
@@ -51453,7 +51453,7 @@ function ComposerToolbar({ editor, isSaving, renderLinkModal }) {
51453
51453
  initialText: linkInitialState.text,
51454
51454
  initialUrl: linkInitialState.url
51455
51455
  }), /* @__PURE__ */ jsxs("div", {
51456
- className: cn("flex items-center gap-1.5 border-b border-gray-200 px-2 py-1.5", "-mt-[calc(2.25rem+1px)] transition-all group-has-[.ProseMirror-focused,[data-toolbar]:focus-within]/composer:mt-0"),
51456
+ className: cn("flex items-center gap-1.5 border-b border-[color:var(--messaging-border,var(--color-gray-200))] px-2 py-1.5", "-mt-[calc(2.25rem+1px)] transition-all group-has-[.ProseMirror-focused,[data-toolbar]:focus-within]/composer:mt-0"),
51457
51457
  children: [
51458
51458
  /* @__PURE__ */ jsx(IconToggle, {
51459
51459
  size: "icon-xs",
@@ -51476,7 +51476,7 @@ function ComposerToolbar({ editor, isSaving, renderLinkModal }) {
51476
51476
  icon: Strikethrough,
51477
51477
  pressed: editor.isActive("strike")
51478
51478
  }),
51479
- /* @__PURE__ */ jsx("div", { className: "mx-0.5 h-4 w-px rounded-full bg-gray-300" }),
51479
+ /* @__PURE__ */ jsx("div", { className: "mx-0.5 h-4 w-px rounded-full bg-[color:var(--messaging-muted,var(--color-gray-300))]" }),
51480
51480
  /* @__PURE__ */ jsx(IconToggle, {
51481
51481
  size: "icon-xs",
51482
51482
  onPressedChange: () => openLinkModal(),
@@ -51499,7 +51499,7 @@ function ComposerToolbar({ editor, isSaving, renderLinkModal }) {
51499
51499
  pressed: editor.isActive("orderedList")
51500
51500
  }),
51501
51501
  /* @__PURE__ */ jsx("div", {
51502
- className: clsx$1("text-messaging-6 mr-1 ml-auto text-gray-300 transition-[opacity,transform]", isSaving ? "opacity-100" : "opacity-0", "translate-y-7 group-has-[.ProseMirror-focused,[data-toolbar]:focus-within]/composer:translate-y-0"),
51502
+ className: clsx$1("text-messaging-6 mr-1 ml-auto text-[color:var(--messaging-muted-foreground,var(--color-gray-300))] transition-[opacity,transform]", isSaving ? "opacity-100" : "opacity-0", "translate-y-7 group-has-[.ProseMirror-focused,[data-toolbar]:focus-within]/composer:translate-y-0"),
51503
51503
  children: t("composer_saving")
51504
51504
  })
51505
51505
  ]
@@ -51709,14 +51709,14 @@ function MessageComposer({ onSend, onScheduleSuccess, onSaveScheduledEdit, place
51709
51709
  }),
51710
51710
  Placeholder.configure({
51711
51711
  placeholder,
51712
- emptyEditorClass: cn("before:text-messaging-3 before:absolute before:text-gray-400 before:content-[attr(data-placeholder)]")
51712
+ emptyEditorClass: cn("before:text-messaging-3 before:absolute before:text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] before:content-[attr(data-placeholder)]")
51713
51713
  }),
51714
51714
  Link$1.configure({
51715
51715
  openOnClick: false,
51716
51716
  autolink: true,
51717
51717
  linkOnPaste: true,
51718
51718
  HTMLAttributes: {
51719
- class: "text-blue-600 underline",
51719
+ class: "text-[color:var(--messaging-primary,var(--color-blue-600))] underline",
51720
51720
  target: "_blank",
51721
51721
  rel: "noopener noreferrer nofollow"
51722
51722
  }
@@ -51726,7 +51726,7 @@ function MessageComposer({ onSend, onScheduleSuccess, onSaveScheduledEdit, place
51726
51726
  bulletListMarker: "-"
51727
51727
  }),
51728
51728
  CustomMention.configure({
51729
- HTMLAttributes: { class: "text-blue-600 font-medium not-italic rounded-sm bg-blue-100 px-1 py-0.5" },
51729
+ HTMLAttributes: { class: "text-[color:var(--messaging-primary,var(--color-blue-600))] font-medium not-italic rounded-sm bg-[color:var(--messaging-primary-tint,var(--color-blue-100))] px-1 py-0.5" },
51730
51730
  suggestion: createMentionSuggestion(mentionableUsers ?? [], { renderImage })
51731
51731
  })
51732
51732
  ],
@@ -51817,7 +51817,7 @@ function MessageComposer({ onSend, onScheduleSuccess, onSaveScheduledEdit, place
51817
51817
  }),
51818
51818
  conversationType !== "SmsConversation" && conversationType !== "EmailConversation" && /* @__PURE__ */ jsx("div", {
51819
51819
  "data-toolbar": true,
51820
- className: "sticky top-0 z-10 bg-white",
51820
+ className: "sticky top-0 z-10 bg-[color:var(--messaging-background,var(--color-white))]",
51821
51821
  children: /* @__PURE__ */ jsx(ComposerToolbar, {
51822
51822
  editor,
51823
51823
  isSaving,
@@ -51886,7 +51886,7 @@ function MessagesViewComposer({ conversationId, conversationMetadata, uploader,
51886
51886
  if (conversationMetadata?.["messaging_enabled?"] === false || !isLoading && !user) return /* @__PURE__ */ jsxs("div", {
51887
51887
  className: "p-4",
51888
51888
  children: [/* @__PURE__ */ jsx("p", {
51889
- className: "text-messaging-4 flex h-9 items-center rounded-md border border-gray-200 bg-white p-2 shadow-sm ring-4 ring-gray-500/10",
51889
+ className: "text-messaging-4 flex h-9 items-center rounded-md border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-2 shadow-sm ring-4 ring-[color:var(--messaging-border,var(--color-gray-500))]/10",
51890
51890
  children: conversationMetadata?.["messaging_enabled?"] === false ? t("send_permission_denied") : t("send_account_loading")
51891
51891
  }), /* @__PURE__ */ jsx("div", {
51892
51892
  className: "hidden",
@@ -52290,7 +52290,7 @@ function MessagesView({ conversationId, messageId, saveDrafts, noDateResults, re
52290
52290
  if (noDateResults || elements.length === 0 && isDateView) elements.push(/* @__PURE__ */ jsx("div", {
52291
52291
  className: "flex justify-center py-2",
52292
52292
  children: /* @__PURE__ */ jsx("span", {
52293
- className: "rounded-2xl border border-gray-200 bg-yellow-50 px-3 py-0.5 text-xs font-medium text-yellow-800",
52293
+ className: "rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-yellow-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-yellow-800))]",
52294
52294
  children: t("error_no_messages_on_date")
52295
52295
  })
52296
52296
  }, "no-messages"));
@@ -52298,7 +52298,7 @@ function MessagesView({ conversationId, messageId, saveDrafts, noDateResults, re
52298
52298
  if ((conversationMetadata.creator?.id ?? null) !== (user?.recipient_id ?? null)) elements.push(/* @__PURE__ */ jsx("div", {
52299
52299
  className: "flex justify-center py-2",
52300
52300
  children: /* @__PURE__ */ jsx("span", {
52301
- className: "rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700",
52301
+ className: "rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))]",
52302
52302
  children: t("error_joined_channel")
52303
52303
  })
52304
52304
  }, "joined-fallback"));
@@ -52452,7 +52452,7 @@ function MessagesView({ conversationId, messageId, saveDrafts, noDateResults, re
52452
52452
  fetchInProgressRef.current = true;
52453
52453
  fetchNextPage();
52454
52454
  },
52455
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
52455
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
52456
52456
  children: t("message_load_more")
52457
52457
  })
52458
52458
  }, "watcher-top"),
@@ -52487,7 +52487,7 @@ function MessagesView({ conversationId, messageId, saveDrafts, noDateResults, re
52487
52487
  fetchInProgressRef.current = true;
52488
52488
  fetchPreviousPage();
52489
52489
  },
52490
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
52490
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
52491
52491
  children: t("message_load_more")
52492
52492
  })
52493
52493
  }, "watcher-bottom")
@@ -52509,7 +52509,7 @@ function MessagesView({ conversationId, messageId, saveDrafts, noDateResults, re
52509
52509
  scrollToBottomNow();
52510
52510
  setHasNewMessages(false);
52511
52511
  },
52512
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
52512
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
52513
52513
  children: [/* @__PURE__ */ jsx(ArrowDown, { className: "mr-1 h-3 w-3" }), t("message_new_messages")]
52514
52514
  })
52515
52515
  }),
@@ -52590,7 +52590,7 @@ function PinnedMessagesView({ conversationId, onToast, renderProfileContent, get
52590
52590
  const messageElements = useMemo(() => {
52591
52591
  if (!conversationMetadata) return [];
52592
52592
  return messages.map((message) => /* @__PURE__ */ jsx("div", {
52593
- className: "relative isolate w-full rounded-xl border border-gray-200 bg-gray-50 py-2.5",
52593
+ className: "relative isolate w-full rounded-xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] py-2.5",
52594
52594
  onClick: (event) => {
52595
52595
  if (event.target.closest("a,button,[role=button],[tabindex]") === null) navigate({
52596
52596
  view: "message",
@@ -52621,18 +52621,18 @@ function PinnedMessagesView({ conversationId, onToast, renderProfileContent, get
52621
52621
  return /* @__PURE__ */ jsx("div", {
52622
52622
  className: "flex h-full items-center justify-center",
52623
52623
  children: /* @__PURE__ */ jsx("div", {
52624
- className: "rounded-md border border-gray-200 bg-white p-4 text-center text-gray-600 shadow-sm",
52624
+ className: "rounded-md border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] p-4 text-center text-[color:var(--messaging-muted-foreground,var(--color-gray-600))] shadow-sm",
52625
52625
  children: errorWithStatus.success && errorWithStatus.data.status === 404 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("p", {
52626
- className: "text-sm font-medium text-gray-900",
52626
+ className: "text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-900))]",
52627
52627
  children: t("pinned_conversation_not_found")
52628
52628
  }), /* @__PURE__ */ jsx("p", {
52629
- className: "mt-1 text-xs text-gray-500",
52629
+ className: "mt-1 text-xs text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52630
52630
  children: t("pinned_conversation_deleted")
52631
52631
  })] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("p", {
52632
- className: "text-sm font-medium text-gray-900",
52632
+ className: "text-sm font-medium text-[color:var(--messaging-foreground,var(--color-gray-900))]",
52633
52633
  children: t("pinned_error")
52634
52634
  }), /* @__PURE__ */ jsx("p", {
52635
- className: "mt-1 text-xs text-gray-500",
52635
+ className: "mt-1 text-xs text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52636
52636
  children: t("pinned_error_try_again")
52637
52637
  })] })
52638
52638
  })
@@ -52641,8 +52641,8 @@ function PinnedMessagesView({ conversationId, onToast, renderProfileContent, get
52641
52641
  if (messages.length === 0) return /* @__PURE__ */ jsx("div", {
52642
52642
  className: "flex min-h-[60vh] items-center justify-center",
52643
52643
  children: /* @__PURE__ */ jsxs("div", {
52644
- className: "text-center text-gray-500",
52645
- children: [/* @__PURE__ */ jsx(Pin, { className: "mb-2 size-8 text-gray-400" }), /* @__PURE__ */ jsx("p", {
52644
+ className: "text-center text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52645
+ children: [/* @__PURE__ */ jsx(Pin, { className: "mb-2 size-8 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))]" }), /* @__PURE__ */ jsx("p", {
52646
52646
  className: "text-sm",
52647
52647
  children: t("pinned_no_messages")
52648
52648
  })]
@@ -52667,7 +52667,7 @@ function PinnedMessagesView({ conversationId, onToast, renderProfileContent, get
52667
52667
  children: /* @__PURE__ */ jsx("button", {
52668
52668
  type: "button",
52669
52669
  onClick: () => fetchNextPage(),
52670
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
52670
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
52671
52671
  children: "Load more"
52672
52672
  })
52673
52673
  }),
@@ -52734,7 +52734,7 @@ function TagOptionAvatar({ option: opt, context = "dropdown", renderImage }) {
52734
52734
  const { emoji } = extractEmoji$1(opt.conversationName || opt.label);
52735
52735
  const fallback = opt.userData?.image_url ? renderImageElement(renderImage, opt.userData.image_url, opt.label, 20, 20, "h-full w-full object-cover") : "#";
52736
52736
  return /* @__PURE__ */ jsx("div", {
52737
- className: clsx$1("grid shrink-0 place-items-center overflow-clip rounded bg-neutral-100", context === "dropdown" ? "size-6 text-sm" : "size-4 text-xs"),
52737
+ className: clsx$1("grid shrink-0 place-items-center overflow-clip rounded bg-[color:var(--messaging-muted,var(--color-neutral-100))]", context === "dropdown" ? "size-6 text-sm" : "size-4 text-xs"),
52738
52738
  children: emoji || fallback
52739
52739
  });
52740
52740
  }
@@ -52749,7 +52749,7 @@ function TagOptionAvatar({ option: opt, context = "dropdown", renderImage }) {
52749
52749
  function TagMultiSelectDropdown({ options, selectedOptions, highlight, isLoading, isError, query, dropdownRef, onHighlight, onToggle, renderImage }) {
52750
52750
  const { t } = useMessagingTranslation();
52751
52751
  return /* @__PURE__ */ jsx("div", {
52752
- className: "absolute top-full right-0 left-0 z-[9999] max-h-80 translate-y-1 overflow-auto rounded-lg border border-gray-200 bg-white shadow-[0px_12px_16px_-4px_rgba(16,24,40,0.08)]",
52752
+ className: "absolute top-full right-0 left-0 z-[9999] max-h-80 translate-y-1 overflow-auto rounded-lg border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-background,var(--color-white))] shadow-[0px_12px_16px_-4px_rgba(16,24,40,0.08)]",
52753
52753
  children: /* @__PURE__ */ jsxs("div", {
52754
52754
  ref: dropdownRef,
52755
52755
  className: "flex flex-1 flex-col items-start justify-start py-1",
@@ -52765,7 +52765,7 @@ function TagMultiSelectDropdown({ options, selectedOptions, highlight, isLoading
52765
52765
  className: "flex flex-1 items-center justify-start gap-2 rounded-md py-2.5 pr-2.5 pl-2",
52766
52766
  children: /* @__PURE__ */ jsxs("div", {
52767
52767
  className: "flex flex-1 items-center justify-start gap-2",
52768
- children: [/* @__PURE__ */ jsx("div", { className: "h-4 w-4 animate-pulse rounded-full bg-gray-200" }), /* @__PURE__ */ jsx("div", { className: "h-4 w-24 animate-pulse rounded bg-gray-200" })]
52768
+ children: [/* @__PURE__ */ jsx("div", { className: "h-4 w-4 animate-pulse rounded-full bg-[color:var(--messaging-muted,var(--color-gray-200))]" }), /* @__PURE__ */ jsx("div", { className: "h-4 w-24 animate-pulse rounded bg-[color:var(--messaging-muted,var(--color-gray-200))]" })]
52769
52769
  })
52770
52770
  })
52771
52771
  }, i)) }),
@@ -52774,7 +52774,7 @@ function TagMultiSelectDropdown({ options, selectedOptions, highlight, isLoading
52774
52774
  children: t("wizard_error_loading_results")
52775
52775
  }),
52776
52776
  !isLoading && !isError && options.length === 0 && query.trim() !== "" && /* @__PURE__ */ jsx("div", {
52777
- className: "p-2 text-sm text-gray-500",
52777
+ className: "p-2 text-sm text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52778
52778
  children: t("wizard_no_results")
52779
52779
  }),
52780
52780
  options.map((opt, idx) => {
@@ -52785,7 +52785,7 @@ function TagMultiSelectDropdown({ options, selectedOptions, highlight, isLoading
52785
52785
  onMouseEnter: () => onHighlight(idx),
52786
52786
  onClick: () => onToggle(opt),
52787
52787
  children: /* @__PURE__ */ jsxs("div", {
52788
- className: `flex flex-1 items-center justify-start gap-2 rounded-md py-2.5 pr-2.5 pl-2 transition-colors duration-150 ${highlight === idx ? "border border-blue-200 bg-blue-50" : isSelected ? "bg-gray-50" : "hover:bg-gray-50 active:bg-gray-100"}`,
52788
+ className: `flex flex-1 items-center justify-start gap-2 rounded-md py-2.5 pr-2.5 pl-2 transition-colors duration-150 ${highlight === idx ? "border border-[color:var(--messaging-primary-border,var(--color-blue-200))] bg-[color:var(--messaging-primary-tint,var(--color-blue-50))]" : isSelected ? "bg-[color:var(--messaging-muted,var(--color-gray-50))]" : "hover:bg-[color:var(--messaging-muted,var(--color-gray-50))] active:bg-[color:var(--messaging-muted,var(--color-gray-100))]"}`,
52789
52789
  children: [/* @__PURE__ */ jsxs("div", {
52790
52790
  className: "flex flex-1 items-center justify-start gap-2",
52791
52791
  children: [/* @__PURE__ */ jsx(TagOptionAvatar, {
@@ -52793,25 +52793,25 @@ function TagMultiSelectDropdown({ options, selectedOptions, highlight, isLoading
52793
52793
  context: "dropdown",
52794
52794
  renderImage
52795
52795
  }), /* @__PURE__ */ jsxs("div", {
52796
- className: "flex flex-wrap items-center justify-start gap-1 text-left text-sm leading-tight font-medium text-gray-900",
52796
+ className: "flex flex-wrap items-center justify-start gap-1 text-left text-sm leading-tight font-medium text-[color:var(--messaging-foreground,var(--color-gray-900))]",
52797
52797
  children: [
52798
52798
  /* @__PURE__ */ jsx("span", {
52799
52799
  className: "mr-1",
52800
52800
  children: opt.label
52801
52801
  }),
52802
52802
  opt.userData?.phone && opt.label !== opt.userData.phone && /* @__PURE__ */ jsx("span", {
52803
- className: "font-normal text-gray-500",
52803
+ className: "font-normal text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52804
52804
  children: opt.userData.phone
52805
52805
  }),
52806
52806
  opt.userData?.email && !opt.userData?.phone && opt.label !== opt.userData.email && /* @__PURE__ */ jsx("span", {
52807
- className: "font-normal text-gray-500",
52807
+ className: "font-normal text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52808
52808
  children: opt.userData.email
52809
52809
  })
52810
52810
  ]
52811
52811
  })]
52812
52812
  }), isSelected && /* @__PURE__ */ jsx("div", {
52813
52813
  className: "relative h-4 w-5 overflow-hidden",
52814
- children: /* @__PURE__ */ jsx(Check, { className: "absolute top-0 left-[3px] h-4 w-4 text-black" })
52814
+ children: /* @__PURE__ */ jsx(Check, { className: "absolute top-0 left-[3px] h-4 w-4 text-[color:var(--messaging-foreground,var(--color-black))]" })
52815
52815
  })]
52816
52816
  })
52817
52817
  }, opt.id);
@@ -52930,7 +52930,7 @@ function TagMultiSelect({ getOptions, selectedOptions, onSelectionChange, placeh
52930
52930
  children: [/* @__PURE__ */ jsxs("div", {
52931
52931
  className: "flex flex-1 flex-wrap gap-1",
52932
52932
  children: [selectedOptions.map((opt) => /* @__PURE__ */ jsxs("div", {
52933
- className: "inline-flex min-h-6 items-center justify-center gap-[3px] rounded-md border border-gray-300 bg-white py-0.5 pr-1 pl-[5px]",
52933
+ className: "inline-flex min-h-6 items-center justify-center gap-[3px] rounded-md border border-[color:var(--messaging-border,var(--color-gray-300))] bg-[color:var(--messaging-background,var(--color-white))] py-0.5 pr-1 pl-[5px]",
52934
52934
  children: [/* @__PURE__ */ jsxs("div", {
52935
52935
  className: "flex items-center justify-start gap-[5px]",
52936
52936
  children: [/* @__PURE__ */ jsx(TagOptionAvatar, {
@@ -52938,18 +52938,18 @@ function TagMultiSelect({ getOptions, selectedOptions, onSelectionChange, placeh
52938
52938
  context: "chip",
52939
52939
  renderImage
52940
52940
  }), /* @__PURE__ */ jsxs("div", {
52941
- className: "flex flex-wrap items-center justify-start gap-1 text-left text-sm/tight leading-tight font-medium text-slate-700",
52941
+ className: "flex flex-wrap items-center justify-start gap-1 text-left text-sm/tight leading-tight font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
52942
52942
  children: [
52943
52943
  /* @__PURE__ */ jsx("span", {
52944
52944
  className: "mr-1",
52945
52945
  children: opt.label
52946
52946
  }),
52947
52947
  opt.userData?.phone && opt.label !== opt.userData.phone && /* @__PURE__ */ jsx("span", {
52948
- className: "font-normal text-gray-500",
52948
+ className: "font-normal text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52949
52949
  children: opt.userData.phone
52950
52950
  }),
52951
52951
  opt.userData?.email && !opt.userData?.phone && opt.label !== opt.userData.email && /* @__PURE__ */ jsx("span", {
52952
- className: "font-normal text-gray-500",
52952
+ className: "font-normal text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
52953
52953
  children: opt.userData.email
52954
52954
  })
52955
52955
  ]
@@ -52960,8 +52960,8 @@ function TagMultiSelect({ getOptions, selectedOptions, onSelectionChange, placeh
52960
52960
  e.stopPropagation();
52961
52961
  onSelectionChange(selectedOptions.filter((selected) => selected.id !== opt.id));
52962
52962
  },
52963
- className: "inline-flex flex-col items-start justify-start overflow-hidden rounded-sm p-0.5 hover:bg-gray-100 active:bg-gray-200",
52964
- children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3 text-gray-900" })
52963
+ className: "inline-flex flex-col items-start justify-start overflow-hidden rounded-sm p-0.5 hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
52964
+ children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3 text-[color:var(--messaging-foreground,var(--color-gray-900))]" })
52965
52965
  })]
52966
52966
  }, opt.id)), /* @__PURE__ */ jsx("input", {
52967
52967
  ref: inputRef,
@@ -52974,7 +52974,7 @@ function TagMultiSelect({ getOptions, selectedOptions, onSelectionChange, placeh
52974
52974
  onKeyDown: handleKeyDown,
52975
52975
  onFocus: openDropdown,
52976
52976
  placeholder,
52977
- className: "m-0 h-6 w-full min-w-48 flex-1 border-none bg-transparent px-0 py-0 text-sm leading-6 text-gray-900 outline-none placeholder:text-gray-500 focus:ring-0 focus:outline-none",
52977
+ className: "m-0 h-6 w-full min-w-48 flex-1 border-none bg-transparent px-0 py-0 text-sm leading-6 text-[color:var(--messaging-foreground,var(--color-gray-900))] outline-none placeholder:text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] focus:ring-0 focus:outline-none",
52978
52978
  style: {
52979
52979
  height: "24px",
52980
52980
  lineHeight: "24px"
@@ -52982,7 +52982,7 @@ function TagMultiSelect({ getOptions, selectedOptions, onSelectionChange, placeh
52982
52982
  })]
52983
52983
  }), showChevron && /* @__PURE__ */ jsx("div", {
52984
52984
  className: "flex flex-shrink-0 items-center justify-center",
52985
- children: /* @__PURE__ */ jsx(ChevronDown, { className: `h-3 w-3 text-gray-400 transition-transform duration-200 ${open ? "rotate-180" : ""}` })
52985
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: `h-3 w-3 text-[color:var(--messaging-muted-foreground,var(--color-gray-400))] transition-transform duration-200 ${open ? "rotate-180" : ""}` })
52986
52986
  })]
52987
52987
  }), open && (query.trim() !== "" || options.length > 0) && /* @__PURE__ */ jsx(TagMultiSelectDropdown, {
52988
52988
  options,
@@ -53170,9 +53170,9 @@ function RecipientConfigBar({ selectedRecipients, onRecipientsChange, searchUser
53170
53170
  };
53171
53171
  }
53172
53172
  return /* @__PURE__ */ jsxs("div", {
53173
- className: "flex min-h-14 items-center justify-start gap-2 self-stretch border-b border-gray-200 bg-gray-50 px-6 py-3",
53173
+ className: "flex min-h-14 items-center justify-start gap-2 self-stretch border-b border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-6 py-3",
53174
53174
  children: [/* @__PURE__ */ jsx("div", {
53175
- className: "justify-start text-xs leading-tight font-normal text-slate-600",
53175
+ className: "justify-start text-xs leading-tight font-normal text-[color:var(--messaging-muted-foreground,var(--color-slate-600))]",
53176
53176
  children: t("recipient_to")
53177
53177
  }), /* @__PURE__ */ jsx("div", {
53178
53178
  className: "relative flex-1",
@@ -53233,7 +53233,7 @@ function ScheduledMessageConfirmDialog({ open, onOpenChange, title, description,
53233
53233
  children: [/* @__PURE__ */ jsxs("div", {
53234
53234
  className: "grid gap-3",
53235
53235
  children: [content, description && /* @__PURE__ */ jsx("div", {
53236
- className: "text-sm text-gray-600",
53236
+ className: "text-sm text-[color:var(--messaging-muted-foreground,var(--color-gray-600))]",
53237
53237
  children: description
53238
53238
  })]
53239
53239
  }), /* @__PURE__ */ jsxs("div", {
@@ -53266,16 +53266,16 @@ function MessageTypeBadge({ messageKind, messageType }) {
53266
53266
  children: /* @__PURE__ */ jsx(Mail, { className: "h-3 w-3 text-pink-600" })
53267
53267
  });
53268
53268
  if (messageKind === "public-channel" || messageType === "ChannelMessage") return /* @__PURE__ */ jsx("div", {
53269
- className: cn("inline-flex items-center justify-center rounded-md border px-1.5 py-1", "border-blue-200 bg-blue-50"),
53270
- children: /* @__PURE__ */ jsx(Eye, { className: "h-3 w-3 text-blue-700" })
53269
+ className: cn("inline-flex items-center justify-center rounded-md border px-1.5 py-1", "border-[color:var(--messaging-primary-border,var(--color-blue-200))] bg-[color:var(--messaging-primary-tint,var(--color-blue-50))]"),
53270
+ children: /* @__PURE__ */ jsx(Eye, { className: "h-3 w-3 text-[color:var(--messaging-primary,var(--color-blue-700))]" })
53271
53271
  });
53272
53272
  if (messageKind === "private-channel") return /* @__PURE__ */ jsx("div", {
53273
53273
  className: "inline-flex items-center justify-center rounded-md border border-purple-200 bg-purple-50 px-1.5 py-1",
53274
53274
  children: /* @__PURE__ */ jsx(Lock, { className: "h-3 w-3 text-purple-700" })
53275
53275
  });
53276
53276
  if (messageKind === "broadcast") return /* @__PURE__ */ jsx("div", {
53277
- className: "inline-flex items-center justify-center rounded-md border border-gray-200 bg-gray-50 px-1.5 py-1",
53278
- children: /* @__PURE__ */ jsx(Megaphone, { className: "h-3 w-3 text-gray-700" })
53277
+ className: "inline-flex items-center justify-center rounded-md border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-1.5 py-1",
53278
+ children: /* @__PURE__ */ jsx(Megaphone, { className: "h-3 w-3 text-[color:var(--messaging-foreground,var(--color-gray-700))]" })
53279
53279
  });
53280
53280
  return null;
53281
53281
  }
@@ -53300,7 +53300,7 @@ function OverdueBadge({ scheduledAt }) {
53300
53300
  //#region ../../messaging/ui/src/components/ScheduledMessageConversationAvatar.tsx
53301
53301
  function ScheduledMessageConversationAvatar({ size, fullConversation, effectiveConversation: _effectiveConversation, otherUsers, channelEmoji, renderImage }) {
53302
53302
  if (!fullConversation) return /* @__PURE__ */ jsx("div", {
53303
- className: cn("grid shrink-0 place-items-center overflow-clip rounded-sm bg-[#F5F6F9] text-base leading-5 ring-1 ring-gray-200 ring-inset", size === "lg" ? "h-8 w-8" : "h-6 w-6"),
53303
+ className: cn("grid shrink-0 place-items-center overflow-clip rounded-sm bg-[#F5F6F9] text-base leading-5 ring-1 ring-[color:var(--messaging-border,var(--color-gray-200))] ring-inset", size === "lg" ? "h-8 w-8" : "h-6 w-6"),
53304
53304
  children: channelEmoji
53305
53305
  });
53306
53306
  const { isChannel } = getMessageType(fullConversation);
@@ -53318,7 +53318,7 @@ function ScheduledMessageConversationAvatar({ size, fullConversation, effectiveC
53318
53318
  className: "h-full w-full object-cover"
53319
53319
  }) : "#";
53320
53320
  return /* @__PURE__ */ jsx("div", {
53321
- className: cn("grid shrink-0 place-items-center overflow-clip rounded-sm bg-gray-50 text-base leading-5 ring-1 ring-gray-200 ring-inset", size === "lg" ? "h-8 w-8" : "h-6 w-6"),
53321
+ className: cn("grid shrink-0 place-items-center overflow-clip rounded-sm bg-[color:var(--messaging-muted,var(--color-gray-50))] text-base leading-5 ring-1 ring-[color:var(--messaging-border,var(--color-gray-200))] ring-inset", size === "lg" ? "h-8 w-8" : "h-6 w-6"),
53322
53322
  children: emoji || fullConversation.avatar_emoji || fallback
53323
53323
  });
53324
53324
  }
@@ -53345,12 +53345,12 @@ function ScheduledMessageTinyAttachment({ attachment }) {
53345
53345
  if (isImage || isVideo) {
53346
53346
  const thumb = attachment.thumbnail_url || attachment.image_url || void 0;
53347
53347
  return /* @__PURE__ */ jsxs("div", {
53348
- className: "relative size-8 overflow-hidden rounded-md border border-gray-200",
53348
+ className: "relative size-8 overflow-hidden rounded-md border border-[color:var(--messaging-border,var(--color-gray-200))]",
53349
53349
  children: [thumb ? /* @__PURE__ */ jsx("img", {
53350
53350
  src: thumb,
53351
53351
  alt: attachment.filename,
53352
53352
  className: "size-full object-cover"
53353
- }) : /* @__PURE__ */ jsx("div", { className: "size-full bg-gray-100" }), isVideo && /* @__PURE__ */ jsx(Play, {
53353
+ }) : /* @__PURE__ */ jsx("div", { className: "size-full bg-[color:var(--messaging-muted,var(--color-gray-100))]" }), isVideo && /* @__PURE__ */ jsx(Play, {
53354
53354
  className: "absolute [inset:0] top-0 left-0 m-auto grid size-4 place-items-center text-white drop-shadow",
53355
53355
  fill: "currentColor"
53356
53356
  })]
@@ -53360,10 +53360,10 @@ function ScheduledMessageTinyAttachment({ attachment }) {
53360
53360
  const FileIcon = fileConfig.icon;
53361
53361
  const ext = getFileExtensionFromFilename(attachment.filename).slice(0, 4).toUpperCase();
53362
53362
  return /* @__PURE__ */ jsxs("div", {
53363
- className: "isolate flex size-8 shrink-0 flex-col rounded-md border border-white bg-gradient-to-b from-white to-zinc-100 ring-1 ring-gray-300",
53363
+ className: "isolate flex size-8 shrink-0 flex-col rounded-md border border-[color:var(--messaging-border,var(--color-white))] bg-gradient-to-b from-[color:var(--messaging-background,var(--color-white))] to-zinc-100 ring-1 ring-[color:var(--messaging-border,var(--color-gray-300))]",
53364
53364
  children: [/* @__PURE__ */ jsx("div", {
53365
- className: "mx-0.5 mt-0.5 grid grow place-items-center rounded-t-[0.1875rem] bg-gradient-to-b from-gray-100 to-gray-50",
53366
- children: /* @__PURE__ */ jsx(FileIcon, { className: "-mb-1.5 size-3 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-gray-300" })
53365
+ className: "mx-0.5 mt-0.5 grid grow place-items-center rounded-t-[0.1875rem] bg-gradient-to-b from-[color:var(--messaging-muted,var(--color-gray-100))] to-[color:var(--messaging-background,var(--color-gray-50))]",
53366
+ children: /* @__PURE__ */ jsx(FileIcon, { className: "-mb-1.5 size-3 mask-t-from-0% mask-t-to-black/30 mask-t-to-100% text-[color:var(--messaging-muted-foreground,var(--color-gray-300))]" })
53367
53367
  }), /* @__PURE__ */ jsx("div", {
53368
53368
  className: cn("z-10 m-px mt-0 flex h-3 items-center justify-center rounded-[0.25rem] border text-center text-[9px] leading-3 font-bold text-white text-shadow-2xs", fileConfig.borderColor),
53369
53369
  style: { background: fileConfig.bgColor },
@@ -53380,7 +53380,7 @@ function ScheduledMessageActionsMenu({ onNavigateConversation, onNavigateEdit, o
53380
53380
  if (isMobile) return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
53381
53381
  type: "button",
53382
53382
  "aria-label": t("scheduled_action_more_options"),
53383
- className: "grid h-6 w-6 place-items-center rounded-md text-gray-500 hover:bg-gray-100 active:bg-gray-200",
53383
+ className: "grid h-6 w-6 place-items-center rounded-md text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
53384
53384
  onClick: (event) => {
53385
53385
  event.stopPropagation();
53386
53386
  setOpen(true);
@@ -53424,7 +53424,7 @@ function ScheduledMessageActionsMenu({ onNavigateConversation, onNavigateEdit, o
53424
53424
  children: /* @__PURE__ */ jsx("button", {
53425
53425
  type: "button",
53426
53426
  "aria-label": t("scheduled_action_more_options"),
53427
- className: "grid h-6 w-6 place-items-center rounded-md text-gray-500 hover:bg-gray-100 active:bg-gray-200",
53427
+ className: "grid h-6 w-6 place-items-center rounded-md text-[color:var(--messaging-muted-foreground,var(--color-gray-500))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
53428
53428
  onClick: (e) => e.stopPropagation(),
53429
53429
  children: /* @__PURE__ */ jsx(EllipsisVertical, { className: "h-4 w-4" })
53430
53430
  })
@@ -53435,36 +53435,36 @@ function ScheduledMessageActionsMenu({ onNavigateConversation, onNavigateEdit, o
53435
53435
  className: "px-0 py-1",
53436
53436
  children: [
53437
53437
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
53438
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
53438
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
53439
53439
  onSelect: (event) => {
53440
53440
  event.preventDefault();
53441
53441
  onNavigateConversation();
53442
53442
  },
53443
- children: [/* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 text-gray-500" }), t("scheduled_action_go_to_conversation")]
53443
+ children: [/* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("scheduled_action_go_to_conversation")]
53444
53444
  }),
53445
53445
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
53446
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
53446
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
53447
53447
  onSelect: (event) => {
53448
53448
  event.preventDefault();
53449
53449
  onNavigateEdit();
53450
53450
  },
53451
- children: [/* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4 text-gray-500" }), t("scheduled_action_edit_message")]
53451
+ children: [/* @__PURE__ */ jsx(Pencil, { className: "h-4 w-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("scheduled_action_edit_message")]
53452
53452
  }),
53453
53453
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
53454
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
53454
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
53455
53455
  onSelect: (event) => {
53456
53456
  event.preventDefault();
53457
53457
  onReschedule();
53458
53458
  },
53459
- children: [/* @__PURE__ */ jsx(CalendarClock, { className: "h-4 w-4 text-gray-500" }), t("scheduled_action_reschedule")]
53459
+ children: [/* @__PURE__ */ jsx(CalendarClock, { className: "h-4 w-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("scheduled_action_reschedule")]
53460
53460
  }),
53461
53461
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
53462
- className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-slate-700",
53462
+ className: "mx-1.5 my-0 cursor-pointer gap-2 rounded-md px-2.5 py-[9px] text-sm font-medium text-[color:var(--messaging-foreground,var(--color-slate-700))]",
53463
53463
  onSelect: (event) => {
53464
53464
  event.preventDefault();
53465
53465
  onSendNow();
53466
53466
  },
53467
- children: [/* @__PURE__ */ jsx(Send, { className: "h-4 w-4 text-gray-500" }), t("scheduled_action_send_now")]
53467
+ children: [/* @__PURE__ */ jsx(Send, { className: "h-4 w-4 text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]" }), t("scheduled_action_send_now")]
53468
53468
  }),
53469
53469
  /* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
53470
53470
  /* @__PURE__ */ jsxs(DropdownMenuItem, {
@@ -53607,10 +53607,10 @@ function ScheduledMessageRow({ message, onToast }) {
53607
53607
  }), /* @__PURE__ */ jsxs("div", {
53608
53608
  className: "flex min-w-0 flex-col justify-center",
53609
53609
  children: [/* @__PURE__ */ jsx("div", {
53610
- className: "text-messaging-2 capsize mb-2 text-gray-900",
53610
+ className: "text-messaging-2 capsize mb-2 text-[color:var(--messaging-foreground,var(--color-gray-900))]",
53611
53611
  children: channelName
53612
53612
  }), message.body && /* @__PURE__ */ jsx("div", {
53613
- className: "-my-1 line-clamp-1 py-1 text-xs leading-4 text-gray-900",
53613
+ className: "-my-1 line-clamp-1 py-1 text-xs leading-4 text-[color:var(--messaging-foreground,var(--color-gray-900))]",
53614
53614
  children: /* @__PURE__ */ jsx(MessageBody, {
53615
53615
  mentions: message.mentioned_recipients,
53616
53616
  children: message.body
@@ -53622,7 +53622,7 @@ function ScheduledMessageRow({ message, onToast }) {
53622
53622
  children: [
53623
53623
  /* @__PURE__ */ jsx(OverdueBadge, { scheduledAt }),
53624
53624
  scheduledAt && /* @__PURE__ */ jsx("div", {
53625
- className: "text-[9px] leading-3 font-medium text-gray-400",
53625
+ className: "text-[9px] leading-3 font-medium text-[color:var(--messaging-muted-foreground,var(--color-gray-400))]",
53626
53626
  children: formatScheduledShort(scheduledAt)
53627
53627
  }),
53628
53628
  /* @__PURE__ */ jsx(MessageTypeBadge, {
@@ -53663,7 +53663,7 @@ function ScheduledMessageRow({ message, onToast }) {
53663
53663
  content: /* @__PURE__ */ jsxs("div", {
53664
53664
  className: "flex items-center gap-2",
53665
53665
  children: [/* @__PURE__ */ jsx("div", {
53666
- className: "text-sm font-semibold text-black",
53666
+ className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-black))]",
53667
53667
  children: t("scheduled_send_message_to")
53668
53668
  }), /* @__PURE__ */ jsxs("div", {
53669
53669
  className: "inline-flex items-center gap-2",
@@ -53671,7 +53671,7 @@ function ScheduledMessageRow({ message, onToast }) {
53671
53671
  size: "sm",
53672
53672
  ...avatarProps
53673
53673
  }), /* @__PURE__ */ jsx("div", {
53674
- className: "text-sm font-semibold text-gray-900",
53674
+ className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]",
53675
53675
  children: channelName
53676
53676
  })]
53677
53677
  })]
@@ -53701,7 +53701,7 @@ function ScheduledMessageRow({ message, onToast }) {
53701
53701
  content: /* @__PURE__ */ jsxs("div", {
53702
53702
  className: "flex items-center gap-2",
53703
53703
  children: [/* @__PURE__ */ jsx("div", {
53704
- className: "text-sm font-semibold text-black",
53704
+ className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-black))]",
53705
53705
  children: t("scheduled_delete_message_to")
53706
53706
  }), /* @__PURE__ */ jsxs("div", {
53707
53707
  className: "inline-flex items-center gap-2",
@@ -53709,7 +53709,7 @@ function ScheduledMessageRow({ message, onToast }) {
53709
53709
  size: "sm",
53710
53710
  ...avatarProps
53711
53711
  }), /* @__PURE__ */ jsx("div", {
53712
- className: "text-sm font-semibold text-gray-900",
53712
+ className: "text-sm font-semibold text-[color:var(--messaging-foreground,var(--color-gray-900))]",
53713
53713
  children: channelName
53714
53714
  })]
53715
53715
  })]
@@ -53739,7 +53739,7 @@ function ScheduledMessagesView({ onToast }) {
53739
53739
  if (messages.length === 0) return /* @__PURE__ */ jsx("div", {
53740
53740
  className: "flex min-h-[60vh] items-center justify-center",
53741
53741
  children: /* @__PURE__ */ jsx("div", {
53742
- className: "text-center text-gray-500",
53742
+ className: "text-center text-[color:var(--messaging-muted-foreground,var(--color-gray-500))]",
53743
53743
  children: t("scheduled_no_messages")
53744
53744
  })
53745
53745
  });
@@ -53749,7 +53749,7 @@ function ScheduledMessagesView({ onToast }) {
53749
53749
  className: "flex flex-col gap-2",
53750
53750
  children: [
53751
53751
  messages.map((message) => /* @__PURE__ */ jsx("div", {
53752
- className: "relative isolate w-full rounded-xl border border-gray-200 bg-gray-50 p-4",
53752
+ className: "relative isolate w-full rounded-xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] p-4",
53753
53753
  children: /* @__PURE__ */ jsx(ScheduledMessageRow, {
53754
53754
  message,
53755
53755
  onToast
@@ -53768,7 +53768,7 @@ function ScheduledMessagesView({ onToast }) {
53768
53768
  children: /* @__PURE__ */ jsx("button", {
53769
53769
  type: "button",
53770
53770
  onClick: () => fetchNextPage(),
53771
- className: "inline-flex items-center rounded-2xl border border-gray-200 bg-gray-50 px-3 py-0.5 text-xs font-medium text-gray-700 hover:bg-gray-100 active:bg-gray-200",
53771
+ className: "inline-flex items-center rounded-2xl border border-[color:var(--messaging-border,var(--color-gray-200))] bg-[color:var(--messaging-muted,var(--color-gray-50))] px-3 py-0.5 text-xs font-medium text-[color:var(--messaging-foreground,var(--color-gray-700))] hover:bg-[color:var(--messaging-muted,var(--color-gray-100))] active:bg-[color:var(--messaging-muted,var(--color-gray-200))]",
53772
53772
  children: "Load more"
53773
53773
  })
53774
53774
  }),
@@ -54091,4 +54091,4 @@ const messagingScreenPropertySchema = {
54091
54091
  //#endregion
54092
54092
  export { BottomNavVisibilityProvider as a, useMessagingAuth as i, messagingScreenPropertySchema as n, useBottomNavHidden as o, useMessagingConfig as r, MessagingScreen as t };
54093
54093
 
54094
- //# sourceMappingURL=MessagingScreen-DwU7sqzj.mjs.map
54094
+ //# sourceMappingURL=MessagingScreen-CNCV4tG2.mjs.map