@alfadocs/ui-kit 0.30.1 → 0.30.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,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.30.1",
3
+ "packageVersion": "0.30.2",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -137,6 +137,22 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
137
137
  onSubmit: (payload: BookingSubmitPayload) => void | Promise<void>;
138
138
  loadingSlots?: boolean;
139
139
  submitting?: boolean;
140
+ /**
141
+ * @default 'flat'
142
+ * `'elevated'` wraps the kit-rendered surface in the equivalent of
143
+ * `Card variant="elevated"` (same tokens, same padding). Use to drop
144
+ * the consumer-side Card wrap.
145
+ */
146
+ surface?: 'flat' | 'elevated';
147
+ /**
148
+ * Fires whenever the displayed step changes — steps 1..7 from the
149
+ * cascade engine + step `8` when the success view mounts. Useful for
150
+ * analytics events that aren't already kit-internal, custom focus
151
+ * management, or page-title updates. The kit also auto-scrolls the
152
+ * success container into view on the 1..7 → 8 transition; consumers
153
+ * don't need to do that themselves.
154
+ */
155
+ onStepChange?: (step: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8) => void;
140
156
  /**
141
157
  * Surface a submit-failure message inside the form (Alert variant=destructive
142
158
  * above the submit button). The consumer owns the state — set it after an
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-Bw9eOU4k.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-CBaSujVP.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,4 +1,4 @@
1
- import { P as t, p as r } from "../../_chunks/patient-search-DuSoGG2t.js";
1
+ import { P as t, p as r } from "../../_chunks/patient-search-ZpHN-pgJ.js";
2
2
  export {
3
3
  t as PatientSearch,
4
4
  r as patientSearchAgent
@@ -1,4 +1,4 @@
1
- import { R as r, r as s } from "../../_chunks/reviews-panel-CFttsfuC.js";
1
+ import { R as r, r as s } from "../../_chunks/reviews-panel-D-zjPKFL.js";
2
2
  export {
3
3
  r as ReviewsPanel,
4
4
  s as reviewsPanelAgent
@@ -69,6 +69,14 @@ export interface ReviewsPanelProps extends Omit<ComponentPropsWithoutRef<'sectio
69
69
  * width or inside a narrow column. Defaults to false.
70
70
  */
71
71
  hideFilter?: boolean;
72
+ /**
73
+ * @default 'flat'
74
+ * `'elevated'` wraps the panel in the equivalent of `Card variant="elevated"`
75
+ * — same tokens (`--card`, `--card-border`, `--shadow-card`,
76
+ * `--radius-lg`), same padding. Use to drop the consumer-side
77
+ * `<Card><Card.Body>` wrap.
78
+ */
79
+ surface?: 'flat' | 'elevated';
72
80
  /** Render skeletons for the header and the list. */
73
81
  loading?: boolean;
74
82
  }
package/dist/index.js CHANGED
@@ -125,12 +125,12 @@ import { S as Sn, a as Tn } from "./_chunks/suggestion-chip-C4kxWUIs.js";
125
125
  import { s as bn } from "./_chunks/suggestion-chip.agent-6sNWFj7m.js";
126
126
  import { T as hn, t as Rn } from "./_chunks/transcript-panel-QUQ9XJmf.js";
127
127
  import { T as Fn } from "./_chunks/typing-indicator-DHeVN4ob.js";
128
- import { B as Ln, C as kn, O as Nn, b as Bn } from "./_chunks/booking-Bw9eOU4k.js";
128
+ import { B as Ln, C as kn, O as Nn, b as Bn } from "./_chunks/booking-CBaSujVP.js";
129
129
  import { C as yn, c as Dn, r as wn } from "./_chunks/calendar-WWNx448i.js";
130
- import { P as _n, p as vn } from "./_chunks/patient-search-DuSoGG2t.js";
130
+ import { P as _n, p as vn } from "./_chunks/patient-search-ZpHN-pgJ.js";
131
131
  import { P as Hn, f as Gn, p as Wn, a as Un, s as Kn, b as jn, c as Yn } from "./_chunks/payment-form-Ds3rxvad.js";
132
132
  import { P as qn, p as Qn } from "./_chunks/pdf-viewer-CIuaocnq.js";
133
- import { R as Xn, r as Zn } from "./_chunks/reviews-panel-CFttsfuC.js";
133
+ import { R as Xn, r as Zn } from "./_chunks/reviews-panel-D-zjPKFL.js";
134
134
  import { R as ap, e as ep, r as rp, t as op, a as tp, w as sp } from "./_chunks/rich-text-editor-J-wAz9eN.js";
135
135
  import { S as np, s as pp } from "./_chunks/signature-capture-DjMlFOzS.js";
136
136
  import { S as lp, f as fp, i as dp } from "./_chunks/slot-grid-B2zprPcv.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
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",