@alfadocs/ui-kit 1.72.0 → 1.73.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.72.0",
3
+ "packageVersion": "1.73.1",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -355,6 +355,14 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
355
355
  * available).
356
356
  */
357
357
  defaultConfirmationChannels?: ConfirmationChannel[];
358
+ /**
359
+ * The patient picks exactly one channel (a radio group) instead of any
360
+ * number (checkboxes), and the link goes only there. The default is the
361
+ * first channel of `defaultConfirmationChannels` the practice enabled,
362
+ * else the first enabled channel. Use it when the channel matters to the
363
+ * host: a link sent only by SMS proves the patient holds the phone.
364
+ */
365
+ singleConfirmationChannel?: boolean;
358
366
  value: BookingValue;
359
367
  onChange: (next: BookingValue) => void;
360
368
  onSubmit: (payload: BookingSubmitPayload) => void | BookingSubmitResult | Promise<void | BookingSubmitResult>;
@@ -49,6 +49,8 @@ export interface BookingDetailsFormProps {
49
49
  confirmationChannels?: ConfirmationChannel[];
50
50
  /** Pre-checked channels override; falls back to a smart default. */
51
51
  defaultConfirmationChannels?: ConfirmationChannel[];
52
+ /** One channel only, picked with radios. See `BookingProps`. */
53
+ singleConfirmationChannel?: boolean;
52
54
  /**
53
55
  * Render an error Alert above the submit button. Set after an
54
56
  * `onSubmit` rejection, clear before retrying. The kit doesn't
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-DNJO0tnU.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-BjpiXvpY.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ import { V as rf, v as of } from "./_chunks/voice-control-panel-DQJwe6_Q.js";
217
217
  import { A as nf } from "./_chunks/anamnesis-card-BcadMmEM.js";
218
218
  import { D as mf, F as lf, a as df, M as Af, b as ff, e as cf, f as Sf, g as gf, c as Cf, m as xf, r as Tf, v as uf } from "./_chunks/muscle-scheme-C66WlCxG.js";
219
219
  import { A as Ef, a as If, b as Rf, c as _f, d as bf, e as Nf, C as Df, f as Of, g as Ff, D as hf, h as Lf, E as Mf, L as yf, O as kf, P as Bf, i as vf, j as Gf, k as Hf, l as Wf, R as wf, S as Uf, m as Vf, n as Kf, o as Yf, p as Xf, q as qf, r as zf, s as jf, t as Qf, u as Zf, v as Jf, w as $f, x as ac, y as ec, z as sc, B as rc, F as oc } from "./_chunks/optical-prescription-CMM1Y6Xg.js";
220
- import { B as nc, C as ic, O as pc, b as mc } from "./_chunks/booking-DNJO0tnU.js";
220
+ import { B as nc, C as ic, O as pc, b as mc } from "./_chunks/booking-BjpiXvpY.js";
221
221
  import { C as dc, c as Ac, r as fc } from "./_chunks/calendar-ClB-jWH1.js";
222
222
  import { C as Sc } from "./_chunks/calendar-event-card-DXAYWH6k.js";
223
223
  import { R as Cc, a as xc } from "./_chunks/resource-chip-DB5jDwUO.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.72.0",
3
+ "version": "1.73.1",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",