@alfadocs/ui-kit 1.54.0 → 1.54.2

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.
@@ -1,6 +1,22 @@
1
- import { jsx as r, jsxs as t, Fragment as a } from "react/jsx-runtime";
2
- import { useRef as w, useState as N, useEffect as $ } from "react";
3
- import { M as s, A as x, P as l, C as W } from "./mark-pieces-m_rn1mAc.js";
1
+ import { jsx as r, jsxs as t, Fragment as i } from "react/jsx-runtime";
2
+ import { useRef as L, useState as N, useEffect as $ } from "react";
3
+ import { M as s, A as x, P as l, C as E } from "./mark-pieces-m_rn1mAc.js";
4
+ const rr = [
5
+ "jumbled",
6
+ "locked",
7
+ "roped",
8
+ "lost",
9
+ "wrong-way",
10
+ "vanished",
11
+ "asleep",
12
+ "patched",
13
+ "melt",
14
+ "unplugged",
15
+ "rebuild",
16
+ "snail",
17
+ "adrift",
18
+ "puzzled"
19
+ ];
4
20
  function h({ name: n }) {
5
21
  return /* @__PURE__ */ r(
6
22
  l,
@@ -27,24 +43,24 @@ function c({ cx: n = 74, rx: e = 46 }) {
27
43
  }
28
44
  );
29
45
  }
30
- const E = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-drip_calc(var(--animation-duration)*15)_ease-in-out_1]", O = "ds:motion-safe:animate-[error-page-drop_calc(var(--animation-duration)*12)_ease-in_2]", y = "ds:[transform-box:fill-box] ds:origin-bottom ds:motion-safe:animate-[error-page-rock_calc(var(--animation-duration)*20)_ease-in-out_1]", b = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-bob_calc(var(--animation-duration)*14)_ease-in-out_1]", v = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-swing_calc(var(--animation-duration)*18)_ease-in-out_1]", R = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-wiggle_calc(var(--animation-duration)*10)_ease-in-out_2]", _ = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-rise_calc(var(--animation-duration)*16)_ease-out_1]", M = "ds:motion-safe:animate-[error-page-flicker_calc(var(--animation-duration)*6)_steps(1)_4]", P = "ds:motion-safe:animate-[error-page-crawl_calc(var(--animation-duration)*24)_ease-in-out_1]", A = "ds:motion-safe:animate-[error-page-bump_calc(var(--animation-duration)*12)_ease-in-out_2]", L = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-breathe_calc(var(--animation-duration)*20)_ease-in-out_1]", u = "ds:[animation-delay:calc(var(--animation-duration)*5)]", m = "ds:[animation-delay:calc(var(--animation-duration)*9)]", j = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-pop_calc(var(--animation-duration)*3)_ease-out_1]";
31
- function I() {
46
+ const O = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-drip_calc(var(--animation-duration)*15)_ease-in-out_1]", W = "ds:motion-safe:animate-[error-page-drop_calc(var(--animation-duration)*12)_ease-in_2]", y = "ds:[transform-box:fill-box] ds:origin-bottom ds:motion-safe:animate-[error-page-rock_calc(var(--animation-duration)*20)_ease-in-out_1]", b = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-bob_calc(var(--animation-duration)*14)_ease-in-out_1]", v = "ds:[transform-box:fill-box] ds:origin-top ds:motion-safe:animate-[error-page-swing_calc(var(--animation-duration)*18)_ease-in-out_1]", R = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-wiggle_calc(var(--animation-duration)*10)_ease-in-out_2]", _ = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-rise_calc(var(--animation-duration)*16)_ease-out_1]", M = "ds:motion-safe:animate-[error-page-flicker_calc(var(--animation-duration)*6)_steps(1)_4]", P = "ds:motion-safe:animate-[error-page-crawl_calc(var(--animation-duration)*24)_ease-in-out_1]", A = "ds:motion-safe:animate-[error-page-bump_calc(var(--animation-duration)*12)_ease-in-out_2]", w = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-breathe_calc(var(--animation-duration)*20)_ease-in-out_1]", u = "ds:[animation-delay:calc(var(--animation-duration)*5)]", m = "ds:[animation-delay:calc(var(--animation-duration)*9)]", j = "ds:[transform-box:fill-box] ds:origin-center ds:motion-safe:animate-[error-page-pop_calc(var(--animation-duration)*3)_ease-out_1]";
47
+ function S() {
32
48
  const n = {
33
49
  top: 75,
34
50
  right: -60,
35
51
  left: 40,
36
52
  bottom: -95
37
53
  };
38
- return /* @__PURE__ */ t(a, { children: [
39
- x.map((e, o) => {
40
- const [i, d] = W[e];
41
- return /* @__PURE__ */ r("g", { transform: `rotate(${n[e]} ${i} ${d})`, children: /* @__PURE__ */ r("g", { className: `${R} ${o % 2 ? u : ""}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
54
+ return /* @__PURE__ */ t(i, { children: [
55
+ x.map((e, a) => {
56
+ const [o, d] = E[e];
57
+ return /* @__PURE__ */ r("g", { transform: `rotate(${n[e]} ${o} ${d})`, children: /* @__PURE__ */ r("g", { className: `${R} ${a % 2 ? u : ""}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
42
58
  }),
43
59
  /* @__PURE__ */ r(c, {})
44
60
  ] });
45
61
  }
46
- function S() {
47
- return /* @__PURE__ */ t(a, { children: [
62
+ function D() {
63
+ return /* @__PURE__ */ t(i, { children: [
48
64
  /* @__PURE__ */ r(s, {}),
49
65
  /* @__PURE__ */ t("g", { className: v, children: [
50
66
  /* @__PURE__ */ r(
@@ -84,13 +100,13 @@ function S() {
84
100
  /* @__PURE__ */ r(c, {})
85
101
  ] });
86
102
  }
87
- function T() {
103
+ function I() {
88
104
  const n = (e) => /* @__PURE__ */ t("g", { fill: "var(--muted-foreground)", children: [
89
105
  /* @__PURE__ */ r("rect", { x: e - 3, y: "158", width: "6", height: "48", rx: "3" }),
90
106
  /* @__PURE__ */ r("circle", { cx: e, cy: "157", r: "6" }),
91
107
  /* @__PURE__ */ r("rect", { x: e - 11, y: "202", width: "22", height: "5", rx: "2.5" })
92
108
  ] });
93
- return /* @__PURE__ */ t(a, { children: [
109
+ return /* @__PURE__ */ t(i, { children: [
94
110
  /* @__PURE__ */ r(s, {}),
95
111
  n(8),
96
112
  n(140),
@@ -106,8 +122,8 @@ function T() {
106
122
  ) })
107
123
  ] });
108
124
  }
109
- function D() {
110
- return /* @__PURE__ */ t(a, { children: [
125
+ function T() {
126
+ return /* @__PURE__ */ t(i, { children: [
111
127
  /* @__PURE__ */ r(s, { except: ["right"] }),
112
128
  /* @__PURE__ */ r(h, { name: "right" }),
113
129
  /* @__PURE__ */ r(c, { cx: 150, rx: 28 }),
@@ -125,7 +141,7 @@ function D() {
125
141
  ] });
126
142
  }
127
143
  function B() {
128
- return /* @__PURE__ */ t(a, { children: [
144
+ return /* @__PURE__ */ t(i, { children: [
129
145
  /* @__PURE__ */ r(s, { except: ["right"] }),
130
146
  /* @__PURE__ */ r(h, { name: "right" }),
131
147
  /* @__PURE__ */ r("g", { className: A, children: /* @__PURE__ */ r("g", { transform: "translate(40 0) rotate(90 121 70)", children: /* @__PURE__ */ r(l, { name: "right" }) }) }),
@@ -140,28 +156,28 @@ function C() {
140
156
  [62, 118, u],
141
157
  [20, 96, m]
142
158
  ];
143
- return /* @__PURE__ */ t(a, { children: [
159
+ return /* @__PURE__ */ t(i, { children: [
144
160
  x.map((e) => /* @__PURE__ */ r(h, { name: e }, e)),
145
- n.map(([e, o, i]) => /* @__PURE__ */ r(
161
+ n.map(([e, a, o]) => /* @__PURE__ */ r(
146
162
  "rect",
147
163
  {
148
164
  x: e,
149
- y: o,
165
+ y: a,
150
166
  width: "6",
151
167
  height: "6",
152
168
  rx: "1.5",
153
- className: `${_} ${i}`
169
+ className: `${_} ${o}`
154
170
  },
155
- `${e}-${o}`
171
+ `${e}-${a}`
156
172
  )),
157
173
  /* @__PURE__ */ r(c, {})
158
174
  ] });
159
175
  }
160
176
  function F() {
161
- const n = (e, o, i, d) => /* @__PURE__ */ r(
177
+ const n = (e, a, o, d) => /* @__PURE__ */ r(
162
178
  "path",
163
179
  {
164
- d: `M${e} ${o} h${i} l-${i} ${i} h${i}`,
180
+ d: `M${e} ${a} h${o} l-${o} ${o} h${o}`,
165
181
  fill: "none",
166
182
  stroke: "var(--muted-foreground)",
167
183
  strokeWidth: "3",
@@ -170,8 +186,8 @@ function F() {
170
186
  className: `${_} ${d}`
171
187
  }
172
188
  );
173
- return /* @__PURE__ */ t(a, { children: [
174
- /* @__PURE__ */ r("g", { transform: "rotate(14 74 74)", children: /* @__PURE__ */ r("g", { className: L, children: /* @__PURE__ */ r(s, {}) }) }),
189
+ return /* @__PURE__ */ t(i, { children: [
190
+ /* @__PURE__ */ r("g", { transform: "rotate(14 74 74)", children: /* @__PURE__ */ r("g", { className: w, children: /* @__PURE__ */ r(s, {}) }) }),
175
191
  n(122, 22, 10, ""),
176
192
  n(140, 2, 13, u),
177
193
  n(160, -16, 16, m),
@@ -179,8 +195,8 @@ function F() {
179
195
  ] });
180
196
  }
181
197
  function G() {
182
- return /* @__PURE__ */ t(a, { children: [
183
- /* @__PURE__ */ t("g", { className: L, children: [
198
+ return /* @__PURE__ */ t(i, { children: [
199
+ /* @__PURE__ */ t("g", { className: w, children: [
184
200
  /* @__PURE__ */ r(s, {}),
185
201
  /* @__PURE__ */ r(
186
202
  "polyline",
@@ -232,27 +248,27 @@ function G() {
232
248
  function p({
233
249
  cx: n,
234
250
  top: e,
235
- length: o,
236
- className: i = ""
251
+ length: a,
252
+ className: o = ""
237
253
  }) {
238
- return /* @__PURE__ */ t("g", { className: `${E} ${i}`, children: [
239
- /* @__PURE__ */ r("rect", { x: n - 3.5, y: e, width: "7", height: o, rx: "3.5" }),
240
- /* @__PURE__ */ r("circle", { cx: n, cy: e + o, r: "4.2" })
254
+ return /* @__PURE__ */ t("g", { className: `${O} ${o}`, children: [
255
+ /* @__PURE__ */ r("rect", { x: n - 3.5, y: e, width: "7", height: a, rx: "3.5" }),
256
+ /* @__PURE__ */ r("circle", { cx: n, cy: e + a, r: "4.2" })
241
257
  ] });
242
258
  }
243
- function Q() {
244
- return /* @__PURE__ */ t(a, { children: [
259
+ function z() {
260
+ return /* @__PURE__ */ t(i, { children: [
245
261
  /* @__PURE__ */ r(s, {}),
246
262
  /* @__PURE__ */ r("path", { d: "M67 139 L99 131 L101 138 Q92 151 80 152 Q70 153 68 143 Z" }),
247
263
  /* @__PURE__ */ r(p, { cx: 75, top: 144, length: 20, className: u }),
248
264
  /* @__PURE__ */ r(p, { cx: 85.5, top: 141, length: 32 }),
249
265
  /* @__PURE__ */ r(p, { cx: 96, top: 137, length: 13, className: m }),
250
- /* @__PURE__ */ r("circle", { cx: "85.5", cy: "179", r: "3.2", className: O }),
266
+ /* @__PURE__ */ r("circle", { cx: "85.5", cy: "179", r: "3.2", className: W }),
251
267
  /* @__PURE__ */ r("ellipse", { cx: "86", cy: "204", rx: "30", ry: "5.5", fillOpacity: "0.3" })
252
268
  ] });
253
269
  }
254
- function z() {
255
- return /* @__PURE__ */ t(a, { children: [
270
+ function Q() {
271
+ return /* @__PURE__ */ t(i, { children: [
256
272
  /* @__PURE__ */ t("g", { transform: "translate(-12 -8)", children: [
257
273
  /* @__PURE__ */ r(l, { name: "top" }),
258
274
  /* @__PURE__ */ r(l, { name: "left" })
@@ -277,7 +293,7 @@ function z() {
277
293
  ] });
278
294
  }
279
295
  function K() {
280
- return /* @__PURE__ */ t(a, { children: [
296
+ return /* @__PURE__ */ t(i, { children: [
281
297
  /* @__PURE__ */ r(s, { except: ["right"] }),
282
298
  /* @__PURE__ */ r(h, { name: "right" }),
283
299
  /* @__PURE__ */ t("g", { className: v, children: [
@@ -309,7 +325,7 @@ function K() {
309
325
  ] });
310
326
  }
311
327
  function U() {
312
- return /* @__PURE__ */ t(a, { children: [
328
+ return /* @__PURE__ */ t(i, { children: [
313
329
  /* @__PURE__ */ r(s, { except: ["right"] }),
314
330
  /* @__PURE__ */ r(h, { name: "right" }),
315
331
  /* @__PURE__ */ r(c, { cx: 140, rx: 34 }),
@@ -373,16 +389,16 @@ function H() {
373
389
  left: [-14, 0, m],
374
390
  bottom: [0, 14, u]
375
391
  };
376
- return /* @__PURE__ */ t(a, { children: [
392
+ return /* @__PURE__ */ t(i, { children: [
377
393
  /* @__PURE__ */ r(c, {}),
378
394
  x.map((e) => {
379
- const [o, i, d] = n[e];
380
- return /* @__PURE__ */ r("g", { transform: `translate(${o} ${i})`, children: /* @__PURE__ */ r("g", { className: `${b} ${d}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
395
+ const [a, o, d] = n[e];
396
+ return /* @__PURE__ */ r("g", { transform: `translate(${a} ${o})`, children: /* @__PURE__ */ r("g", { className: `${b} ${d}`, children: /* @__PURE__ */ r(l, { name: e }) }) }, e);
381
397
  })
382
398
  ] });
383
399
  }
384
400
  function J() {
385
- return /* @__PURE__ */ t(a, { children: [
401
+ return /* @__PURE__ */ t(i, { children: [
386
402
  /* @__PURE__ */ r("g", { className: y, children: /* @__PURE__ */ r(s, {}) }),
387
403
  /* @__PURE__ */ t("g", { className: b, children: [
388
404
  /* @__PURE__ */ r(
@@ -402,31 +418,31 @@ function J() {
402
418
  ] });
403
419
  }
404
420
  const V = {
405
- jumbled: I,
406
- locked: S,
407
- roped: T,
408
- lost: D,
421
+ jumbled: S,
422
+ locked: D,
423
+ roped: I,
424
+ lost: T,
409
425
  "wrong-way": B,
410
426
  vanished: C,
411
427
  asleep: F,
412
428
  patched: G,
413
- melt: Q,
414
- unplugged: z,
429
+ melt: z,
430
+ unplugged: Q,
415
431
  rebuild: K,
416
432
  snail: U,
417
433
  adrift: H,
418
434
  puzzled: J
419
435
  }, X = 3e3;
420
- function rr({
436
+ function er({
421
437
  mood: n
422
438
  }) {
423
- const e = w(null), [o, i] = N(!1);
439
+ const e = L(null), [a, o] = N(!1);
424
440
  $(() => {
425
441
  const f = e.current;
426
442
  if (!f) return;
427
443
  let g;
428
444
  const k = () => {
429
- i(!0), clearTimeout(g), g = setTimeout(() => i(!1), X);
445
+ o(!0), clearTimeout(g), g = setTimeout(() => o(!1), X);
430
446
  };
431
447
  return f.addEventListener("click", k), () => {
432
448
  f.removeEventListener("click", k), clearTimeout(g);
@@ -438,7 +454,7 @@ function rr({
438
454
  {
439
455
  ref: e,
440
456
  "aria-hidden": "true",
441
- "data-mood": o ? "fixed" : n,
457
+ "data-mood": a ? "fixed" : n,
442
458
  className: "ds:w-48 ds:select-none",
443
459
  children: /* @__PURE__ */ r(
444
460
  "svg",
@@ -447,13 +463,14 @@ function rr({
447
463
  viewBox: "-20 -24 200 240",
448
464
  fill: "var(--primary)",
449
465
  className: "ds:block ds:w-full ds:h-auto ds:overflow-visible",
450
- children: o ? /* @__PURE__ */ r("g", { className: j, children: /* @__PURE__ */ r(s, {}) }) : /* @__PURE__ */ r(d, {})
466
+ children: a ? /* @__PURE__ */ r("g", { className: j, children: /* @__PURE__ */ r(s, {}) }) : /* @__PURE__ */ r(d, {})
451
467
  }
452
468
  )
453
469
  }
454
470
  );
455
471
  }
456
472
  export {
457
- rr as E
473
+ rr as E,
474
+ er as a
458
475
  };
459
- //# sourceMappingURL=error-page-illustration-QGJAvuFB.js.map
476
+ //# sourceMappingURL=error-page-illustration-bFti0VEc.js.map
@@ -11,7 +11,7 @@ import { i as rs } from "./safe-href-5dbsfbQn.js";
11
11
  import { u as ws, a as xs, A as Fs, b as bs, E as Ns, d as ys, c as Es } from "./auth-form-parts-Celi-TLV.js";
12
12
  import { u as Is } from "./use-registration-submit-DxCWic5_.js";
13
13
  import { M as Rs } from "./matrix-rain-sDOUUwZp.js";
14
- import { E as Ls } from "./error-page-illustration-QGJAvuFB.js";
14
+ import { a as Ls } from "./error-page-illustration-bFti0VEc.js";
15
15
  const Cs = ["email", "password"], Bs = z(
16
16
  "ds:flex ds:w-full ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-lg)] ds:text-start ds:text-[var(--foreground)] ds:lg:flex-row ds:lg:items-stretch"
17
17
  ), V = z("ds:w-full ds:max-w-[400px]"), As = (t) => Object.values(t).some(Boolean), ss = (t) => Cs.find((i) => t[i]) ?? (t.form ? "password" : void 0), qs = es(
@@ -272,4 +272,4 @@ export {
272
272
  Ms as a,
273
273
  qs as b
274
274
  };
275
- //# sourceMappingURL=login-dev-card-C7wo-Hv1.js.map
275
+ //# sourceMappingURL=login-dev-card-q7iTojvV.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.54.0",
3
+ "packageVersion": "1.54.2",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -19019,6 +19019,10 @@
19019
19019
  {
19020
19020
  "component": "button",
19021
19021
  "as": "support"
19022
+ },
19023
+ {
19024
+ "component": "button",
19025
+ "as": "custom"
19022
19026
  }
19023
19027
  ],
19024
19028
  "workflows": [
@@ -71,7 +71,9 @@ export interface BookingService {
71
71
  * Pre-formatted price label (e.g. "€ 80", "da € 60"). When present, the
72
72
  * service picker shows the price INSTEAD of the duration — durations vary
73
73
  * case by case and set the wrong expectation, while price is what patients
74
- * compare. `durationMin` keeps driving slot fetching either way. Currency
74
+ * compare. With no price the picker falls back to the duration, unless
75
+ * Booking's `showServiceDuration` is false. `durationMin` keeps driving
76
+ * slot fetching either way. Currency
75
77
  * and number formatting are the consumer's domain — the kit renders the
76
78
  * string verbatim. Added in 1.6.0.
77
79
  */
@@ -429,7 +431,7 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
429
431
  *
430
432
  * - `'cards'`: visual card grid (the long-standing `ServiceCardGroup`
431
433
  * used by inline-list). Card layout, one row per service with icon,
432
- * label, and duration.
434
+ * label, and price or duration.
433
435
  * - `'select'`: compact `<Select>` dropdown (default for the chrome-
434
436
  * denser variants — calendar / flexible / accordion / progress).
435
437
  * - `'combobox'`: single-select `<Combobox>` with type-ahead search.
@@ -438,6 +440,16 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
438
440
  * filtered by ANY of the selected services. Added in 0.34.0.
439
441
  */
440
442
  servicePickerStyle?: 'select' | 'combobox' | 'multi-select' | 'cards';
443
+ /**
444
+ * @default true
445
+ * Whether the service picker shows a service's duration. A service with
446
+ * no price shows its minutes in place of one; set this to false and it
447
+ * shows its name only, in every `servicePickerStyle`, and its accessible
448
+ * name does not mention minutes either. Priced services are unchanged:
449
+ * they never show a duration. `durationMin` stays required and keeps
450
+ * driving slot fetching. Added in 1.54.1.
451
+ */
452
+ showServiceDuration?: boolean;
441
453
  /**
442
454
  * @default 'select'
443
455
  * UI rendered for the Operator step. Independent of layout `variant`.
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-CPUjwxj0.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BN7TXe27.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,4 +1,4 @@
1
- import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-h0QX4_5B.js";
1
+ import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-B-HzocbB.js";
2
2
  export {
3
3
  _ as CONTACT_PROFILE_CARD_ROW_ICONS,
4
4
  O as CONTACT_PROFILE_CARD_ROW_KEYS,