@ohhwells/bridge 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -484,18 +484,21 @@ function ScheduleView({ schedule, dates, selectedIdx, onSelectDate, onOpenModal
484
484
  const booked = getBookingsOnDate(cls, selectedDate);
485
485
  const available = cls.maxParticipants - booked;
486
486
  const isFull = available <= 0;
487
+ const isPrivate = cls.maxParticipants === 1;
487
488
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
488
489
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex gap-4 py-4 sm:items-center sm:gap-[60px] box-border", children: [
489
490
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex flex-col gap-2 shrink-0 sm:contents", children: [
490
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "sm:w-[120px] sm:shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block", children: formatClassTime(cls) }) }),
491
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
492
- "span",
493
- {
494
- className: "inline-flex items-center px-2 py-0.5 rounded-full border text-xs font-medium sm:hidden",
495
- style: { borderColor: "#0885FE", color: "#0885FE" },
496
- children: "GROUP"
497
- }
498
- ),
491
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex flex-col gap-2 sm:w-[120px] sm:shrink-0", children: [
492
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-base font-bold text-(--color-dark,#200C02) block", children: formatClassTime(cls) }),
493
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
494
+ "span",
495
+ {
496
+ className: "inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium w-fit",
497
+ style: isPrivate ? { background: "#DDFBE3", color: "#199130", border: "1px solid #199130", fontWeight: 500 } : { background: "#EEEDFF", color: "#5953FF", border: "1px solid #5953FF", fontWeight: 500 },
498
+ children: isPrivate ? "PRIVATE" : "GROUP"
499
+ }
500
+ )
501
+ ] }),
499
502
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "sm:hidden flex flex-col gap-px", children: isFull ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: "Full" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
500
503
  /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "font-body text-sm text-(--color-dark,#200C02) opacity-80", children: [
501
504
  available,