@alfadocs/ui-kit 1.77.0 → 1.78.0

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.77.0",
3
+ "packageVersion": "1.78.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,4 +1,4 @@
1
- import { P as t, p as r } from "../../_chunks/patient-search-DuBdxv1w.js";
1
+ import { P as t, p as r } from "../../_chunks/patient-search-CxqNcth4.js";
2
2
  export {
3
3
  t as PatientSearch,
4
4
  r as patientSearchAgent
@@ -11,9 +11,9 @@ export interface PatientSearchObject {
11
11
  /** Opaque consumer payload — used in `onObjectSelect` to route. */
12
12
  __payload?: unknown;
13
13
  }
14
- /** Result from `loadPlaces` — a Google-Places-style place prediction. */
14
+ /** Selected place, geolocation result, or opted-in typed address. */
15
15
  export interface PatientSearchPlace {
16
- /** Place ID or stable text. */
16
+ /** Provider value, `geo:<lat>,<lng>`, or `text:<trimmed address>` with `allowTypedPlace`. */
17
17
  value: string;
18
18
  /** Display label, e.g. `"Milano, Italia"`. */
19
19
  label: string;
@@ -92,6 +92,13 @@ export interface PatientSearchProps extends Omit<ComponentPropsWithoutRef<'div'>
92
92
  onChange: (next: SearchValue) => void;
93
93
  onSubmit: (value: SearchValue) => void | Promise<void>;
94
94
  submitting?: boolean;
95
+ /**
96
+ * Record unselected, trimmed WHERE text in `value.place` as
97
+ * `{ value: 'text:' + typed, label: typed }`, without coordinates.
98
+ * Empty text clears the place. Applies to every variant.
99
+ * @default false
100
+ */
101
+ allowTypedPlace?: boolean;
95
102
  /** Custom CTA label override; defaults to `ui.patientSearch.submit.cta`. */
96
103
  submitLabel?: string;
97
104
  /**
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-By2BZFCz.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-BnY2EkzI.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
package/dist/index.js CHANGED
@@ -227,7 +227,7 @@ import { C as Dc, c as Oc } from "./_chunks/care-plan-header-BzsAg6oY.js";
227
227
  import { O as Lc, o as hc } from "./_chunks/operator-hero-6aAIQaFZ.js";
228
228
  import { P as yc, p as kc } from "./_chunks/practice-profile-hero-qfrsFQI_.js";
229
229
  import { P as Gc, p as vc } from "./_chunks/patient-details-B-I9Xkh9.js";
230
- import { P as Wc, p as wc } from "./_chunks/patient-search-DuBdxv1w.js";
230
+ import { P as Wc, p as wc } from "./_chunks/patient-search-CxqNcth4.js";
231
231
  import { P as Vc, p as Kc } from "./_chunks/patient-summary-card-bhDo0gVX.js";
232
232
  import { A as Xc, a as qc } from "./_chunks/anamnesis-summary-card-DQ3iE1gD.js";
233
233
  import { B as jc, C as Qc, N as Zc, P as Jc, a as $c, T as aS, b as eS, g as sS, u as rS } from "./_chunks/balance-badge-cell-Dzd-Z_5W.js";
@@ -236,7 +236,7 @@ import { P as _S, a as bS, p as NS } from "./_chunks/periodontal-chart-card-Bx6P
236
236
  import { D as OS, P as FS, a as LS, b as hS, c as MS, S as yS, e as kS, i as BS, p as GS } from "./_chunks/periodontal-diagnosis-B9YmmVmM.js";
237
237
  import { P as HS, a as WS, c as wS, p as US, r as VS } from "./_chunks/periodontal-risk-chart-B7S9OmPC.js";
238
238
  import { C as YS, a as XS, b as qS, c as zS } from "./_chunks/contact-profile-card-DKk94l-d.js";
239
- import { P as QS, p as ZS } from "./_chunks/practice-results-By2BZFCz.js";
239
+ import { P as QS, p as ZS } from "./_chunks/practice-results-BnY2EkzI.js";
240
240
  import { P as $S, a as ag, p as eg, b as sg } from "./_chunks/payment-request-card-MndSlVoK.js";
241
241
  import { P as og, f as tg, p as ng, a as ig, s as pg, b as mg, c as lg } from "./_chunks/payment-form-PBuh8PIa.js";
242
242
  import { P as Ag, p as fg } from "./_chunks/pdf-viewer-gAsNUsA8.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.77.0",
3
+ "version": "1.78.0",
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",