@planetaexo/design-system 0.59.0 → 0.59.1

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
@@ -2749,7 +2749,7 @@ function AdventureSection({
2749
2749
  cannotRemoveLastTravellerLabel,
2750
2750
  labels
2751
2751
  }) {
2752
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
2752
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
2753
2753
  const [detailsOpen, setDetailsOpen] = React31__namespace.useState(false);
2754
2754
  const handleCopyUrl = (url) => {
2755
2755
  if (onCopyFormLink) {
@@ -2884,10 +2884,36 @@ function AdventureSection({
2884
2884
  )) })
2885
2885
  ] })
2886
2886
  ] }),
2887
+ adventure.rooms && adventure.rooms.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t border-border px-5 lg:px-6 py-5 flex flex-col gap-3", children: [
2888
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_l = labels == null ? void 0 : labels.accommodationsHeading) != null ? _l : "ACCOMMODATIONS" }),
2889
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-3", children: adventure.rooms.map((room, i) => {
2890
+ var _a2, _b2;
2891
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
2892
+ room.imageUrl && // eslint-disable-next-line @next/next/no-img-element
2893
+ /* @__PURE__ */ jsxRuntime.jsx(
2894
+ "img",
2895
+ {
2896
+ src: room.imageUrl,
2897
+ alt: room.roomName,
2898
+ className: "w-20 h-15 object-cover rounded-md shrink-0",
2899
+ style: { width: "80px", height: "60px" }
2900
+ }
2901
+ ),
2902
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 min-w-0", children: [
2903
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground font-sans", children: `${room.qty}\xD7 ${room.roomName}` }),
2904
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 flex-wrap text-xs text-muted-foreground font-sans", children: [
2905
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: room.accommodationName }),
2906
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-1.5 py-0.5 text-[10px] font-semibold text-primary bg-primary/10 rounded uppercase tracking-wider", children: (_b2 = (_a2 = labels == null ? void 0 : labels.bedArrangementLabels) == null ? void 0 : _a2[room.bedArrangement]) != null ? _b2 : room.bedArrangement })
2907
+ ] }),
2908
+ room.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-foreground/80 font-sans mt-1 leading-snug", children: room.description })
2909
+ ] })
2910
+ ] }, i);
2911
+ }) })
2912
+ ] }),
2887
2913
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t border-border px-5 lg:px-6 py-5 flex flex-col gap-4", children: [
2888
2914
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3 flex-wrap", children: [
2889
2915
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
2890
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_l = labels == null ? void 0 : labels.travellersSection) != null ? _l : "Travellers" }),
2916
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-xs font-bold text-muted-foreground font-heading uppercase tracking-widest", children: (_m = labels == null ? void 0 : labels.travellersSection) != null ? _m : "Travellers" }),
2891
2917
  adventure.formName && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-xs font-semibold text-muted-foreground/50 font-heading tracking-wide", children: [
2892
2918
  "\xB7 ",
2893
2919
  adventure.formName
@@ -2908,8 +2934,8 @@ function AdventureSection({
2908
2934
  ),
2909
2935
  children: [
2910
2936
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserPlusIcon, { className: "w-3 h-3" }),
2911
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children: (_m = labels == null ? void 0 : labels.addContactAsTraveller) != null ? _m : "Add contact as traveller" }),
2912
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sm:hidden", children: (_n = labels == null ? void 0 : labels.addContactAsTravellerShort) != null ? _n : "Add contact" })
2937
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children: (_n = labels == null ? void 0 : labels.addContactAsTraveller) != null ? _n : "Add contact as traveller" }),
2938
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sm:hidden", children: (_o = labels == null ? void 0 : labels.addContactAsTravellerShort) != null ? _o : "Add contact" })
2913
2939
  ]
2914
2940
  }
2915
2941
  ),
@@ -2927,8 +2953,8 @@ function AdventureSection({
2927
2953
  className: "flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-xs font-ui text-primary hover:border-primary hover:bg-primary/5 transition-colors",
2928
2954
  children: [
2929
2955
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PlusIcon, { className: "w-3 h-3" }),
2930
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children: (_o = adventure.addTravellerLabel) != null ? _o : "More travellers" }),
2931
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sm:hidden", children: (_q = (_p = adventure.addTravellerShortLabel) != null ? _p : adventure.addTravellerLabel) != null ? _q : "Add" })
2956
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline", children: (_p = adventure.addTravellerLabel) != null ? _p : "More travellers" }),
2957
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sm:hidden", children: (_r = (_q = adventure.addTravellerShortLabel) != null ? _q : adventure.addTravellerLabel) != null ? _r : "Add" })
2932
2958
  ]
2933
2959
  }
2934
2960
  )
@@ -3120,7 +3146,7 @@ function AdventureSection({
3120
3146
  )) })
3121
3147
  ] });
3122
3148
  })(),
3123
- adventure.registrationNotRequired ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (_r = adventure.noRegistrationRequiredLabel) != null ? _r : "No registration required" }) }) : adventure.travellers.length > 0 && totalSlots > 0 && (() => {
3149
+ adventure.registrationNotRequired ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-ui text-muted-foreground", children: (_s = adventure.noRegistrationRequiredLabel) != null ? _s : "No registration required" }) }) : adventure.travellers.length > 0 && totalSlots > 0 && (() => {
3124
3150
  var _a2, _b2;
3125
3151
  const completed = adventure.travellers.filter((t) => t.status === "completed").length;
3126
3152
  const percent = Math.round(completed / totalSlots * 100);