@getmicdrop/venue-calendar 4.3.7 → 4.3.9

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.
Files changed (99) hide show
  1. package/dist/{ArrowLeftIcon-DvOokN4u.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
  2. package/dist/{Badge-Gg5PWs7f.js → Badge-DsuBHDo4.js} +1 -2
  3. package/dist/{BlockPlaceholder-C2PUGPNA.js → BlockPlaceholder-BvArmbbO.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
  5. package/dist/{Calendar-BnqBcrZv.js → Calendar-Dei3Ahdk.js} +113 -105
  6. package/dist/{CalendarFoundryView-L97Allfg.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
  7. package/dist/{CalendarIcon-DvhQ-GaL.js → CalendarIcon-DJh5V_U9.js} +1 -1
  8. package/dist/CartView-DPzvlZwV.js +2245 -0
  9. package/dist/Checkout-CZGmzTDh.js +983 -0
  10. package/dist/{Checkout-DQWeMchu.js → Checkout-CaamQTXi.js} +368 -368
  11. package/dist/{CheckoutTimer-8tVmatUn.js → CheckoutTimer-BubF7ziC.js} +15 -15
  12. package/dist/{ChevronDownIcon-DyNmV5XZ.js → ChevronDownIcon-MTzda9yz.js} +1 -1
  13. package/dist/{ClockIcon-dOWVO61o.js → ClockIcon-Dit8R1GZ.js} +1 -1
  14. package/dist/{CloseIcon-a3S2RgbP.js → CloseIcon-XqvbBmiA.js} +1 -1
  15. package/dist/{CollectionView-CAMsmrmW.js → CollectionView-B_rrXaQH.js} +17 -17
  16. package/dist/CropImage-mVbYhD9Y.js +527 -0
  17. package/dist/{Event-BQgaaFkh.js → Event-WtVZMQfA.js} +585 -585
  18. package/dist/EventPage-B14U0-Hm.js +1147 -0
  19. package/dist/{Heading-cKAx0Ogl.js → Heading-PKl9dm72.js} +3 -4
  20. package/dist/{Image-CNZLcePz.js → Image-BWo4QBld.js} +12 -13
  21. package/dist/{Input-D1FpSX5Q.js → Input-Bl1wqeUH.js} +2 -2
  22. package/dist/{MailIcon-CR_eGi6n.js → MailIcon-DQTusrr4.js} +1 -1
  23. package/dist/{Modal-LkN8lh_m.js → Modal-CDIhIlu-.js} +2 -2
  24. package/dist/ModalFooter-DwkZn9ls.js +471 -0
  25. package/dist/ModalHeader-BSsyLaXY.js +18 -0
  26. package/dist/{PasswordInput-Bt6tvpzi.js → PasswordInput-CnjRiZJ7.js} +2 -2
  27. package/dist/{ScarcityBadge-g0dRh6K7.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
  28. package/dist/{SeriesPage-CNRwP2W0.js → SeriesPage-DszQMCy9.js} +5 -5
  29. package/dist/{Spinner-LroI7eOC.js → Spinner-BRgBJYJn.js} +2 -2
  30. package/dist/{Success--2NRdG0V.js → Success-BYVtvNeO.js} +106 -106
  31. package/dist/{TagIcon-BhLrURo_.js → TagIcon-BAZxGlbC.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-CvuMdTA7.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
  33. package/dist/{WarningCircleIcon-BxBY0OMQ.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
  34. package/dist/{WarningTriIcon-QVzQiEM4.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-B0_APtpt.js → __SKIP_PATHS__-B3-kZeYN.js} +1 -1
  36. package/dist/api/api.cjs +1 -1
  37. package/dist/api/api.mjs +239 -237
  38. package/dist/{colors-BsP3TRan.js → api-CTiZ6rza.js} +243 -244
  39. package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
  40. package/dist/{constants-PBNG9ikv.js → constants-rFRS1lF-.js} +1 -1
  41. package/dist/{copyToClipboard-B2F5d6Cj.js → copyToClipboard-C5D-wCS_.js} +1 -1
  42. package/dist/{defaultLabels-BigaGqKj.js → defaultLabels-CpurXn7c.js} +337 -361
  43. package/dist/{event-rtg4-kWS.js → event-d06xVg2P.js} +1 -1
  44. package/dist/{event-transform-J7U1JmeK.js → event-transform-BjPTqPq1.js} +31 -31
  45. package/dist/{eventStatusStream-CJVT_9Gu.js → eventStatusStream-BhQUTdOZ.js} +2 -2
  46. package/dist/{href-Dx7B6ZiQ.js → href-DMLDnIDe.js} +3 -3
  47. package/dist/{i18n-sO8wTASy.js → i18n--3wPB7-n.js} +2 -2
  48. package/dist/{i18n-C0aOwSpF.js → i18n-CASpRf85.js} +135 -135
  49. package/dist/imageOptimizer-D8g9XVns.js +141 -0
  50. package/dist/{labels-BBFJnXep.js → labels-IV_I9087.js} +14 -14
  51. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  52. package/dist/{order-totals-DR-oXumr.js → order-totals-Buq9HeZa.js} +33 -33
  53. package/dist/{orders-CFF0Hb2x.js → orders-BK47iONR.js} +2 -2
  54. package/dist/{phoneUtils-C2GGZYvA.js → phoneUtils-YjT5IJ25.js} +1 -1
  55. package/dist/{pixels-M4FTi1Of.js → pixels-DjK-0XYz.js} +3 -3
  56. package/dist/{promo--p3GbP64.js → promo-DkM9sLly.js} +1 -1
  57. package/dist/{serverTotals-Dbi69SIr.js → serverTotals-CvJBYArq.js} +1 -1
  58. package/dist/{shareCopyFeedback.svelte-Cb2Mdn0z.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
  59. package/dist/{showcase-state-options-BZGCm4wo.js → showcase-state-options-x_9iSBsd.js} +1 -1
  60. package/dist/{to-event-card-props-dIhKdERf.js → to-event-card-props-9y7sVBi_.js} +49 -49
  61. package/dist/types/index.d.ts +39 -0
  62. package/dist/{utils-CbacksjX.js → utils-D80jLqKH.js} +3 -3
  63. package/dist/venue-calendar.css +1 -1
  64. package/dist/venue-calendar.es.js +1515 -1506
  65. package/dist/venue-calendar.iife.js +54 -54
  66. package/dist/venue-calendar.umd.js +54 -54
  67. package/package.json +2 -2
  68. package/dist/CartView-D57bwixz.js +0 -2245
  69. package/dist/Checkout-wUH2YI1N.js +0 -980
  70. package/dist/CropImage-CxLcNArr.js +0 -445
  71. package/dist/EventPage-B9shaVEP.js +0 -1146
  72. package/dist/ModalFooter-B_8f1Z5p.js +0 -301
  73. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  74. package/dist/modalManager.svelte-B9mhX1cG.js +0 -53
  75. package/dist/portal-DqxEuE-7.js +0 -166
  76. /package/dist/locales/{4.3.7 → 4.3.9}/flow/de.js +0 -0
  77. /package/dist/locales/{4.3.7 → 4.3.9}/flow/es.js +0 -0
  78. /package/dist/locales/{4.3.7 → 4.3.9}/flow/fr.js +0 -0
  79. /package/dist/locales/{4.3.7 → 4.3.9}/flow/id.js +0 -0
  80. /package/dist/locales/{4.3.7 → 4.3.9}/flow/it.js +0 -0
  81. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ja.js +0 -0
  82. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ko.js +0 -0
  83. /package/dist/locales/{4.3.7 → 4.3.9}/flow/nl.js +0 -0
  84. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pl.js +0 -0
  85. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pt-br.js +0 -0
  86. /package/dist/locales/{4.3.7 → 4.3.9}/flow/tr.js +0 -0
  87. /package/dist/locales/{4.3.7 → 4.3.9}/flow/zh.js +0 -0
  88. /package/dist/locales/{4.3.7 → 4.3.9}/main/de.js +0 -0
  89. /package/dist/locales/{4.3.7 → 4.3.9}/main/es.js +0 -0
  90. /package/dist/locales/{4.3.7 → 4.3.9}/main/fr.js +0 -0
  91. /package/dist/locales/{4.3.7 → 4.3.9}/main/id.js +0 -0
  92. /package/dist/locales/{4.3.7 → 4.3.9}/main/it.js +0 -0
  93. /package/dist/locales/{4.3.7 → 4.3.9}/main/ja.js +0 -0
  94. /package/dist/locales/{4.3.7 → 4.3.9}/main/ko.js +0 -0
  95. /package/dist/locales/{4.3.7 → 4.3.9}/main/nl.js +0 -0
  96. /package/dist/locales/{4.3.7 → 4.3.9}/main/pl.js +0 -0
  97. /package/dist/locales/{4.3.7 → 4.3.9}/main/pt-br.js +0 -0
  98. /package/dist/locales/{4.3.7 → 4.3.9}/main/tr.js +0 -0
  99. /package/dist/locales/{4.3.7 → 4.3.9}/main/zh.js +0 -0
@@ -1,7 +1,7 @@
1
- import { _ as e } from "./Button-Cm6xkipe.js";
2
- import { D as t, b as n, h as r, i, t as a, v as o } from "./defaultLabels-BigaGqKj.js";
3
- import { a as s, i as c, r as l, u } from "./constants-PBNG9ikv.js";
4
- import { t as d } from "./Badge-Gg5PWs7f.js";
1
+ import { _ as e } from "./Button-CxQO7vwF.js";
2
+ import { a as t, i as n, r, u as i } from "./constants-rFRS1lF-.js";
3
+ import { t as a } from "./Badge-DsuBHDo4.js";
4
+ import { D as o, b as s, h as c, i as l, t as u, v as d } from "./defaultLabels-CpurXn7c.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as f from "svelte/internal/client";
7
7
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
@@ -146,7 +146,7 @@ function S() {
146
146
  var C = f.from_html("<div class=\"event-card__poster w-full aspect-video bg-muted shrink-0 overflow-hidden svelte-18ndok6\"><!></div>"), w = f.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), T = f.from_html("<span> </span>"), E = f.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), D = f.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), O = f.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden flex flex-col svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></h3></header> <!> <!> <!></div></article>");
147
147
  function k(t, n) {
148
148
  f.push(n, !0);
149
- let r = f.prop(n, "layout", 3, "vertical"), a = f.prop(n, "density", 3, "standard"), o = f.prop(n, "imageUrl", 3, ""), s = f.prop(n, "placeholderImage", 3, ""), c = f.prop(n, "hidePoster", 3, !1), l = f.prop(n, "dateLabel", 3, ""), u = f.prop(n, "description", 3, ""), p = f.prop(n, "badge", 3, null), m = f.prop(n, "pills", 19, () => []), h = f.prop(n, "pillVariant", 3, "alternative"), _ = f.prop(n, "showDescription", 3, !1), v = f.prop(n, "hideDate", 3, !1), y = f.derived(() => b[a()]), x = `event-card-title-${S()}`, k = f.derived(() => _() && !!u() && (a() === "standard" || a() === "featured")), A = f.derived(() => !v() && a() !== "micro" && !!l());
149
+ let r = f.prop(n, "layout", 3, "vertical"), i = f.prop(n, "density", 3, "standard"), o = f.prop(n, "imageUrl", 3, ""), s = f.prop(n, "placeholderImage", 3, ""), c = f.prop(n, "hidePoster", 3, !1), u = f.prop(n, "dateLabel", 3, ""), d = f.prop(n, "description", 3, ""), p = f.prop(n, "badge", 3, null), m = f.prop(n, "pills", 19, () => []), h = f.prop(n, "pillVariant", 3, "alternative"), _ = f.prop(n, "showDescription", 3, !1), v = f.prop(n, "hideDate", 3, !1), y = f.derived(() => b[i()]), x = `event-card-title-${S()}`, k = f.derived(() => _() && !!d() && (i() === "standard" || i() === "featured")), A = f.derived(() => !v() && i() !== "micro" && !!u());
150
150
  function j(e, t) {
151
151
  t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || n.onpillclick && (t.preventDefault(), t.stopPropagation(), n.onpillclick(e));
152
152
  }
@@ -170,7 +170,7 @@ function k(t, n) {
170
170
  });
171
171
  var I = f.sibling(P, 2), L = f.child(I), R = f.child(L), z = f.child(R), B = (e) => {
172
172
  var t = w(), n = f.child(t);
173
- d(n, {
173
+ a(n, {
174
174
  get variant() {
175
175
  return p().variant;
176
176
  },
@@ -193,7 +193,7 @@ function k(t, n) {
193
193
  var U = f.sibling(L, 2), W = (t) => {
194
194
  var n = T(), r = f.child(n, !0);
195
195
  f.reset(n), f.template_effect(() => {
196
- f.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r, l());
196
+ f.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r, u());
197
197
  }), f.append(t, n);
198
198
  };
199
199
  f.if(U, (e) => {
@@ -203,8 +203,8 @@ function k(t, n) {
203
203
  var t = E();
204
204
  f.each(t, 21, m, f.index, (e, t, n) => {
205
205
  {
206
- let r = f.derived(() => h() === "primary" ? "default" : "alternative"), a = f.derived(() => f.get(t).ariaLabel ?? f.get(t).timeLabel);
207
- i(e, {
206
+ let r = f.derived(() => h() === "primary" ? "default" : "alternative"), i = f.derived(() => f.get(t).ariaLabel ?? f.get(t).timeLabel);
207
+ l(e, {
208
208
  get href() {
209
209
  return f.get(t).href;
210
210
  },
@@ -216,7 +216,7 @@ function k(t, n) {
216
216
  },
217
217
  onclick: (e) => j(n, e),
218
218
  get "aria-label"() {
219
- return f.get(a);
219
+ return f.get(i);
220
220
  },
221
221
  children: (e, n) => {
222
222
  f.next();
@@ -233,12 +233,12 @@ function k(t, n) {
233
233
  });
234
234
  var q = f.sibling(G, 2), J = (e) => {
235
235
  var t = D(), n = f.child(t, !0);
236
- f.reset(t), f.template_effect(() => f.set_text(n, u())), f.append(e, t);
236
+ f.reset(t), f.template_effect(() => f.set_text(n, d())), f.append(e, t);
237
237
  };
238
238
  f.if(q, (e) => {
239
239
  f.get(k) && e(J);
240
240
  }), f.reset(I), f.reset(N), f.template_effect(() => {
241
- f.set_attribute(N, "data-layout", r()), f.set_attribute(N, "data-density", a()), f.set_attribute(N, "data-hide-poster", c()), f.set_attribute(N, "aria-labelledby", x), f.set_class(R, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), f.set_attribute(R, "id", x), f.set_attribute(V, "href", n.href), f.set_attribute(V, "aria-label", n.ariaLabel ?? n.title), f.set_text(H, n.title);
241
+ f.set_attribute(N, "data-layout", r()), f.set_attribute(N, "data-density", i()), f.set_attribute(N, "data-hide-poster", c()), f.set_attribute(N, "aria-labelledby", x), f.set_class(R, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), f.set_attribute(R, "id", x), f.set_attribute(V, "href", n.href), f.set_attribute(V, "aria-label", n.ariaLabel ?? n.title), f.set_text(H, n.title);
242
242
  }), f.delegated("click", V, M), f.append(t, N), f.pop();
243
243
  }
244
244
  f.delegate(["click"]);
@@ -301,54 +301,54 @@ function I(e) {
301
301
  }
302
302
  function L(e) {
303
303
  if (I(e.status) !== "onsale" || e.ticketsRemaining == null || e.ticketsTotal == null || e.ticketsTotal === 0 || e.ticketsRemaining <= 0) return !1;
304
- let t = l(e.ticketsRemaining, e.ticketsTotal);
304
+ let t = r(e.ticketsRemaining, e.ticketsTotal);
305
305
  return t === "low" || t === "urgent";
306
306
  }
307
- function R(e, i) {
307
+ function R(e, t) {
308
308
  if (!e) return null;
309
- let a = I(e.status ?? "");
310
- for (let o of F) switch (o) {
309
+ let n = I(e.status ?? "");
310
+ for (let r of F) switch (r) {
311
311
  case "cancelled":
312
- if (a === "cancelled" || a === "canceled") return {
313
- text: i?.statusCancelled || "Cancelled",
312
+ if (n === "cancelled" || n === "canceled") return {
313
+ text: t?.statusCancelled || "Cancelled",
314
314
  type: "cancelled"
315
315
  };
316
316
  break;
317
317
  case "postponed":
318
- if (a === "postponed") return {
319
- text: i?.statusPostponed || "Postponed",
318
+ if (n === "postponed") return {
319
+ text: t?.statusPostponed || "Postponed",
320
320
  type: "postponed"
321
321
  };
322
322
  break;
323
323
  case "past":
324
324
  if (e.startDateTime) {
325
- let a = n(e.endDateTime || e.startDateTime);
326
- if (a && r(a, t()) < 0) return {
327
- text: i?.statusPastEvent || "Past event",
325
+ let n = s(e.endDateTime || e.startDateTime);
326
+ if (n && c(n, o()) < 0) return {
327
+ text: t?.statusPastEvent || "Past event",
328
328
  type: "past"
329
329
  };
330
330
  }
331
331
  break;
332
332
  case "sold_out":
333
- if (a === "soldout" || e.ticketsRemaining != null && e.ticketsRemaining <= 0 && e.ticketsTotal != null && e.ticketsTotal > 0) return {
334
- text: i?.statusSoldOut || "Sold out",
333
+ if (n === "soldout" || e.ticketsRemaining != null && e.ticketsRemaining <= 0 && e.ticketsTotal != null && e.ticketsTotal > 0) return {
334
+ text: t?.statusSoldOut || "Sold out",
335
335
  type: "sold_out"
336
336
  };
337
337
  break;
338
338
  case "sales_ended":
339
- if (a === "salesended") return {
340
- text: i?.statusSalesEnded || "Sales ended",
339
+ if (n === "salesended") return {
340
+ text: t?.statusSalesEnded || "Sales ended",
341
341
  type: "sales_ended"
342
342
  };
343
343
  break;
344
344
  case "coming_soon":
345
- if (a === "comingsoon") return {
346
- text: i?.statusComingSoon || "Coming soon",
345
+ if (n === "comingsoon") return {
346
+ text: t?.statusComingSoon || "Coming soon",
347
347
  type: "coming_soon"
348
348
  };
349
349
  break;
350
350
  case "scarcity": if (L(e)) return {
351
- text: i?.statusSellingFast || "Selling fast",
351
+ text: t?.statusSellingFast || "Selling fast",
352
352
  type: "scarcity"
353
353
  };
354
354
  }
@@ -400,11 +400,11 @@ function V(e) {
400
400
  }
401
401
  }
402
402
  function H(e) {
403
- let t = o();
403
+ let n = d();
404
404
  return e.filter((e) => {
405
405
  if (I(e.status ?? "") === "postponed") return !0;
406
- let n = s(t, e.timeZone);
407
- return e.date >= n;
406
+ let r = t(n, e.timeZone);
407
+ return e.date >= r;
408
408
  }).sort((e, t) => e.date.localeCompare(t.date));
409
409
  }
410
410
  //#endregion
@@ -420,29 +420,29 @@ function W(e, t) {
420
420
  variant: "warning"
421
421
  } : null;
422
422
  }
423
- function G(e, t = a, n, r = null) {
424
- let i = e.event, o = e.isSeries ? z(e.instances, t) : R(i, t), s = o && o.type !== "past" ? {
425
- text: o.text,
426
- variant: V(o.type)
423
+ function G(e, t = u, r, a = null) {
424
+ let o = e.event, s = e.isSeries ? z(e.instances, t) : R(o, t), c = s && s.type !== "past" ? {
425
+ text: s.text,
426
+ variant: V(s.type)
427
427
  } : null;
428
- !s && !e.isSeries && (s = W(i, t));
429
- let l = N(i), d = i.startDateTime && r?.date !== !1 ? c(i.startDateTime, i.timeZone, n) : "", f = e.isSeries ? e.instances : i.startDateTime ? [i] : [], p = f.map((e) => {
430
- let r = u(e.startDateTime, e.timeZone, n), a = R(e, t)?.type === "sold_out";
428
+ !c && !e.isSeries && (c = W(o, t));
429
+ let l = N(o), d = o.startDateTime && a?.date !== !1 ? n(o.startDateTime, o.timeZone, r) : "", f = e.isSeries ? e.instances : o.startDateTime ? [o] : [], p = f.map((e) => {
430
+ let n = i(e.startDateTime, e.timeZone, r), a = R(e, t)?.type === "sold_out";
431
431
  return {
432
- timeLabel: r,
432
+ timeLabel: n,
433
433
  href: N(e),
434
- ariaLabel: `${i.name} at ${r}${a ? ", sold out" : ""}`
434
+ ariaLabel: `${o.name} at ${n}${a ? ", sold out" : ""}`
435
435
  };
436
- }), m = [i.name];
437
- return i.startDateTime && m.push(`on ${c(i.startDateTime, i.timeZone, n)}`), e.isSeries ? m.push(`${e.instances.length} showtimes available`) : i.startDateTime && m.push(`at ${u(i.startDateTime, i.timeZone, n)}`), o && m.push(o.text), {
438
- title: i.name,
436
+ }), m = [o.name];
437
+ return o.startDateTime && m.push(`on ${n(o.startDateTime, o.timeZone, r)}`), e.isSeries ? m.push(`${e.instances.length} showtimes available`) : o.startDateTime && m.push(`at ${i(o.startDateTime, o.timeZone, r)}`), s && m.push(s.text), {
438
+ title: o.name,
439
439
  href: l,
440
- imageUrl: i.imageUrl ?? "",
440
+ imageUrl: o.imageUrl ?? "",
441
441
  dateLabel: d,
442
- description: r?.description === !1 ? "" : i.description ?? "",
442
+ description: a?.description === !1 ? "" : o.description ?? "",
443
443
  ariaLabel: m.join(", "),
444
- hidePoster: r?.poster === !1,
445
- badge: s,
444
+ hidePoster: a?.poster === !1,
445
+ badge: c,
446
446
  pills: p,
447
447
  pillEvents: f
448
448
  };
@@ -177,6 +177,11 @@ export interface CalendarProps extends BaseInitOptions {
177
177
  * own onEventClick to take over click handling entirely.
178
178
  */
179
179
  inlineEntityViews?: boolean;
180
+ /**
181
+ * The host's brand scheme, applied on the widget's root so every calendar
182
+ * surface — time buttons included — wears it. null = the default palette.
183
+ */
184
+ colors?: ColorSchemeColors | null;
180
185
  }
181
186
 
182
187
  /**
@@ -402,6 +407,40 @@ export function applyTheme(
402
407
  */
403
408
  export function generateThemeCSS(_theme: Partial<ThemeColors>): string;
404
409
 
410
+ // ============================================================================
411
+ // Brand scheme → calendar CSS variables
412
+ // ============================================================================
413
+
414
+ /**
415
+ * The builder's saved colour scheme: token name → hex string. Partial schemes
416
+ * are fine — a missing or invalid token is left to the stylesheet's default.
417
+ */
418
+ export type ColorSchemeColors = Record<string, string>;
419
+
420
+ /**
421
+ * Map a scheme to venue-calendar's CSS variables (`--brand-primary` …) as
422
+ * wrapper-less HSL strings ("209 99% 50%").
423
+ */
424
+ export function schemeColorsToCSSVars(
425
+ _colors: ColorSchemeColors | null | undefined
426
+ ): Record<string, string>;
427
+
428
+ /**
429
+ * Write a scheme onto an element as inline custom properties. Pass the
430
+ * widget's own root: the stylesheet declares the default palette on that root,
431
+ * so a variable set on an ancestor never reaches it. Returns the names written.
432
+ */
433
+ export function applySchemeColors(
434
+ _colors: ColorSchemeColors | null | undefined,
435
+ _container: HTMLElement
436
+ ): string[];
437
+
438
+ /** Remove what applySchemeColors wrote. */
439
+ export function clearSchemeColors(
440
+ _container: HTMLElement,
441
+ _names: string[]
442
+ ): void;
443
+
405
444
  // ============================================================================
406
445
  // Scarcity Canon
407
446
  // ============================================================================
@@ -1,6 +1,6 @@
1
- import { x as e } from "./Button-Cm6xkipe.js";
2
- import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-CFF0Hb2x.js";
3
- import "./event-transform-J7U1JmeK.js";
1
+ import { x as e } from "./Button-CxQO7vwF.js";
2
+ import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-BK47iONR.js";
3
+ import "./event-transform-BjPTqPq1.js";
4
4
  //#region node_modules/js-cookie/dist/js.cookie.mjs
5
5
  function l(e) {
6
6
  for (var t = 1; t < arguments.length; t++) {