@alfadocs/ui-kit 1.77.1 → 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.1",
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
  /**
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.77.1",
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",