@alfadocs/ui-kit 1.147.2 → 1.148.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.
Files changed (43) hide show
  1. package/dist/_chunks/{appointment-timeline-D5qbZ7in.js → appointment-timeline-CuZW-CGT.js} +2 -2
  2. package/dist/_chunks/{bill-line-table-DnkFqMnM.js → bill-line-table-B8Cc2pTH.js} +2 -2
  3. package/dist/_chunks/button-group-CHQD8GJ0.js +449 -0
  4. package/dist/_chunks/{calendar-appointment-editor-dialog-CoIFwj9g.js → calendar-appointment-editor-dialog-Cz8F2H4M.js} +6 -6
  5. package/dist/_chunks/{calendar-waiting-list-panel-DuALuqLD.js → calendar-waiting-list-panel-C4T85b4q.js} +3 -3
  6. package/dist/_chunks/{calendar.sheets-CueyPkTT.js → calendar.sheets-DsgPdycU.js} +2 -2
  7. package/dist/_chunks/{data-grid-CujX-2tF.js → data-grid-CkzbCZSo.js} +486 -476
  8. package/dist/_chunks/{default-tabs-CqP1uWdx.js → default-tabs-C45FVzsG.js} +3 -3
  9. package/dist/_chunks/{face-scheme-ByYeboH9.js → face-scheme-BC2whb1S.js} +2 -2
  10. package/dist/_chunks/{invoice-upload-list-srvWy5_d.js → invoice-upload-list-BReimsvV.js} +3 -3
  11. package/dist/_chunks/prescription-history-CQuJmd4H.js +1846 -0
  12. package/dist/_chunks/{tasks-panel-DsjfS_k5.js → tasks-panel-DufAoAxG.js} +2 -2
  13. package/dist/_chunks/{toolbar-z_6tE7zG.js → toolbar-B9oh9XY9.js} +2 -2
  14. package/dist/_chunks/{use-appointment-details-read-CC74Y-r5.js → use-appointment-details-read-kYp-gfhb.js} +2 -2
  15. package/dist/agent-catalog.json +1 -1
  16. package/dist/appointment-editor-panel/index.js +1 -1
  17. package/dist/browser-support.js +1 -1
  18. package/dist/calendar-action-buttons/index.js +1 -1
  19. package/dist/components/appointment-details-panel/index.js +1 -1
  20. package/dist/components/appointment-timeline/index.js +1 -1
  21. package/dist/components/bill-line-table/index.js +1 -1
  22. package/dist/components/bill-table/index.js +1 -1
  23. package/dist/components/button-group/button-group.d.ts +2 -1
  24. package/dist/components/button-group/index.js +1 -1
  25. package/dist/components/data-grid/data-grid.variants.d.ts +7 -1
  26. package/dist/components/data-grid/index.js +2 -2
  27. package/dist/components/face-scheme/index.js +1 -1
  28. package/dist/components/invoice-upload-list/index.js +1 -1
  29. package/dist/components/tasks-panel/index.js +1 -1
  30. package/dist/core.css +1 -1
  31. package/dist/find-free-slots-panel/index.js +1 -1
  32. package/dist/host-compat.css +7 -1
  33. package/dist/index.js +13 -13
  34. package/dist/online-bookings-panel/index.js +1 -1
  35. package/dist/patterns/calendar/index.js +2 -2
  36. package/dist/patterns/prescription/index.d.ts +1 -1
  37. package/dist/patterns/prescription/index.js +1 -1
  38. package/dist/patterns/prescription/prescription-history.d.ts +28 -0
  39. package/dist/tokens.css +1 -1
  40. package/dist/waiting-list-panel/index.js +2 -2
  41. package/package.json +1 -1
  42. package/dist/_chunks/button-group-N60L3HMa.js +0 -408
  43. package/dist/_chunks/prescription-history-CFs3JMIE.js +0 -1773
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { useMemo as v, useRef as s, useEffect as S } from "react";
3
3
  import { a as F } from "../_chunks/tooltip-uEBdD1-5.js";
4
4
  import { C as x } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
5
- import { S as O, F as C } from "../_chunks/calendar.sheets-CueyPkTT.js";
5
+ import { S as O, F as C } from "../_chunks/calendar.sheets-DsgPdycU.js";
6
6
  const y = { open: () => {
7
7
  }, close: () => {
8
8
  } };
@@ -214,7 +214,7 @@
214
214
 
215
215
  /* ───────────────────────────────────────────────────────────────────────
216
216
  SECTION B — non-token declarations. ORIGINAL LAYER PRESERVED.
217
- 191 declarations across 187 rules.
217
+ 193 declarations across 189 rules.
218
218
 
219
219
  Kit-authored arbitrary-value utilities (`ds:w-[20rem]`) and the
220
220
  vendored AG Grid rules. These set real properties on real elements,
@@ -331,6 +331,9 @@
331
331
  .ds\:min-h-\[24rem\] {
332
332
  min-height:384px;
333
333
  }
334
+ .ds\:min-h-\[28rem\] {
335
+ min-height:448px;
336
+ }
334
337
  .ds\:min-h-\[30rem\] {
335
338
  min-height:480px;
336
339
  }
@@ -631,6 +634,9 @@
631
634
  .ds\:\[inline-size\:18rem\] {
632
635
  inline-size:288px;
633
636
  }
637
+ .ds\:\[inline-size\:20rem\] {
638
+ inline-size:320px;
639
+ }
634
640
  .ds\:\[inline-size\:22\.5rem\] {
635
641
  inline-size:360px;
636
642
  }
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import { u as M } from "./_chunks/use-prism-DBOiELx7.js";
11
11
  import { B } from "./_chunks/button-Dp4j9ygh.js";
12
12
  import { I as G } from "./_chunks/icon-button-u9VMQn3x.js";
13
13
  import { b as U } from "./_chunks/button.agent-BuGZBktn.js";
14
- import { B as W } from "./_chunks/button-group-N60L3HMa.js";
14
+ import { B as W } from "./_chunks/button-group-CHQD8GJ0.js";
15
15
  import { D as w } from "./_chunks/dev-bypass-button-BzfYGPuf.js";
16
16
  import { d as Y } from "./_chunks/dev-bypass-button.agent-BJqFSTqE.js";
17
17
  import { F as q } from "./_chunks/floating-action-button-BesoUmO_.js";
@@ -92,8 +92,8 @@ import { A as Mo, M as yo, m as Bo } from "./_chunks/annotation-marker-D-M7y4R1.
92
92
  import { A as Go, g as vo, n as Uo } from "./_chunks/avatar-Dp5apm1d.js";
93
93
  import { B as Wo } from "./_chunks/badge-BUk4RjTS.js";
94
94
  import { B as wo } from "./_chunks/benefit-card-BcPtRHgM.js";
95
- import { B as Yo, a as Xo, b as qo, c as jo, d as Qo, e as zo, f as Zo, g as Jo, h as $o, i as at, j as et, k as st, l as rt, m as ot, n as tt, o as nt, p as it, q as pt, r as mt, s as lt, t as At, u as dt, v as St } from "./_chunks/bill-line-table-DnkFqMnM.js";
96
- import { B as ft, a as gt, b as Tt, c as Ct, d as It, e as xt, f as Pt, g as Et, h as ut, i as _t, j as Rt, k as Lt, l as Dt, m as Nt, u as bt } from "./_chunks/default-tabs-CqP1uWdx.js";
95
+ import { B as Yo, a as Xo, b as qo, c as jo, d as Qo, e as zo, f as Zo, g as Jo, h as $o, i as at, j as et, k as st, l as rt, m as ot, n as tt, o as nt, p as it, q as pt, r as mt, s as lt, t as At, u as dt, v as St } from "./_chunks/bill-line-table-B8Cc2pTH.js";
96
+ import { B as ft, a as gt, b as Tt, c as Ct, d as It, e as xt, f as Pt, g as Et, h as ut, i as _t, j as Rt, k as Lt, l as Dt, m as Nt, u as bt } from "./_chunks/default-tabs-C45FVzsG.js";
97
97
  import { B as ht } from "./_chunks/bmi-calculator-FmXBHbot.js";
98
98
  import { b as Mt, a as yt, c as Bt, d as kt, e as Gt, f as vt, i as Ut, k as Ht, l as Wt } from "./_chunks/bmi-BxD-tFzU.js";
99
99
  import { C as wt } from "./_chunks/calculator-dialog-BWizCwN5.js";
@@ -103,8 +103,8 @@ import { C as Zt, c as Jt } from "./_chunks/carousel.agent-CN78qTiR.js";
103
103
  import { C as an, c as en } from "./_chunks/connection-status-Bi6KPTlh.js";
104
104
  import { C as rn } from "./_chunks/contact-card-BSY2YpLZ.js";
105
105
  import { C as tn } from "./_chunks/counter-WsvRuum1.js";
106
- import { D as pn, a as mn, b as ln, c as An, d as dn, e as Sn, f as cn } from "./_chunks/data-grid-CujX-2tF.js";
107
- import { D as gn, a as Tn } from "./_chunks/toolbar-z_6tE7zG.js";
106
+ import { D as pn, a as mn, b as ln, c as An, d as dn, e as Sn, f as cn } from "./_chunks/data-grid-CkzbCZSo.js";
107
+ import { D as gn, a as Tn } from "./_chunks/toolbar-B9oh9XY9.js";
108
108
  import { D as In, a as xn, b as Pn, d as En } from "./_chunks/data-grid-tabs-3NIWrciW.js";
109
109
  import { D as _n, E as Rn, T as Ln, a as Dn, b as Nn, c as bn, d as On, e as hn, f as Fn, i as Mn, g as yn } from "./_chunks/data-table-DFAYYsSc.js";
110
110
  import { B as kn, C as Gn, a as vn, E as Un, b as Hn, R as Wn, T as Vn, c as wn, r as Kn, u as Yn, w as Xn } from "./_chunks/editable-currency-cell-renderer-DXJI0fnU.js";
@@ -169,9 +169,9 @@ import { A as LA } from "./_chunks/appointment-card-HOZrABrQ.js";
169
169
  import { A as NA, a as bA, b as OA } from "./_chunks/appointment-tray-CFCxukwq.js";
170
170
  import { A as FA } from "./_chunks/appointment-peek-B3raO90X.js";
171
171
  import { a as yA } from "./_chunks/appointment-peek.agent-C539tNFM.js";
172
- import { A as kA, D as GA, a as vA, u as UA } from "./_chunks/use-appointment-details-read-CC74Y-r5.js";
172
+ import { A as kA, D as GA, a as vA, u as UA } from "./_chunks/use-appointment-details-read-kYp-gfhb.js";
173
173
  import { p as WA } from "./_chunks/appointment-details-panel.identity--_j07UG1.js";
174
- import { A as wA, a as KA } from "./_chunks/appointment-timeline-D5qbZ7in.js";
174
+ import { A as wA, a as KA } from "./_chunks/appointment-timeline-CuZW-CGT.js";
175
175
  import { D as XA, d as qA } from "./_chunks/dialog-239Geb7Z.js";
176
176
  import { D as QA } from "./_chunks/dialog-container-DHR0byah.js";
177
177
  import { D as ZA, d as JA } from "./_chunks/dropdown-menu-Bm1KALnk.js";
@@ -180,7 +180,7 @@ import { E as sd } from "./_chunks/error-summary-DxNhwf_G.js";
180
180
  import { F as od } from "./_chunks/finished-terminal-YrhOLYbx.js";
181
181
  import { H as nd, h as id, u as pd } from "./_chunks/hover-card-CS8ulBf9.js";
182
182
  import { I as ld, i as Ad } from "./_chunks/info-tip-cCppV1fD.js";
183
- import { I as Sd, a as cd, b as fd, c as gd, d as Td, i as Cd } from "./_chunks/invoice-upload-list-srvWy5_d.js";
183
+ import { I as Sd, a as cd, b as fd, c as gd, d as Td, i as Cd } from "./_chunks/invoice-upload-list-BReimsvV.js";
184
184
  import { L as xd } from "./_chunks/live-region-C41SO3cA.js";
185
185
  import { M as Ed } from "./_chunks/matrix-rain-sDOUUwZp.js";
186
186
  import { M as _d, a as Rd, m as Ld } from "./_chunks/medication-line-DFa5oFhf.js";
@@ -211,7 +211,7 @@ import { S as XS } from "./_chunks/spinner-CoflYlEx.js";
211
211
  import { T as jS, i as QS } from "./_chunks/task-card-BNbkwIYM.js";
212
212
  import { t as ZS } from "./_chunks/task-card.agent-CF2N_uu4.js";
213
213
  import { T as $S, t as ac } from "./_chunks/task-tray-CxxcGGgx.js";
214
- import { T as sc, t as rc } from "./_chunks/tasks-panel-DsjfS_k5.js";
214
+ import { T as sc, t as rc } from "./_chunks/tasks-panel-DufAoAxG.js";
215
215
  import { T as tc, t as nc, a as ic, b as pc, c as mc, d as lc } from "./_chunks/toast-Cgmh1cvj.js";
216
216
  import { t as dc } from "./_chunks/toast.agent-DNQ0JYGv.js";
217
217
  import { T as cc, a as fc } from "./_chunks/tooltip-uEBdD1-5.js";
@@ -284,7 +284,7 @@ import { S as VI, e as wI, s as KI } from "./_chunks/signature-status-chip-DS9hH
284
284
  import { S as XI, s as qI } from "./_chunks/sign-document-BUhWw-7S.js";
285
285
  import { S as QI, f as zI, i as ZI, s as JI } from "./_chunks/slot-grid-khIpy8Gx.js";
286
286
  import { T as ax, t as ex } from "./_chunks/task-editor-B9YpfwcW.js";
287
- import { A as rx, F as ox, a as tx, b as nx, c as ix, d as px, e as mx, I as lx, f as Ax, g as dx, h as Sx, i as cx, j as fx, k as gx, l as Tx, m as Cx, n as Ix, o as xx, p as Px, q as Ex, r as ux, s as _x, t as Rx, u as Lx } from "./_chunks/face-scheme-ByYeboH9.js";
287
+ import { A as rx, F as ox, a as tx, b as nx, c as ix, d as px, e as mx, I as lx, f as Ax, g as dx, h as Sx, i as cx, j as fx, k as gx, l as Tx, m as Cx, n as Ix, o as xx, p as Px, q as Ex, r as ux, s as _x, t as Rx, u as Lx } from "./_chunks/face-scheme-BC2whb1S.js";
288
288
  import { T as Nx, t as bx, r as Ox } from "./_chunks/tooth-scheme-C7xJEzaK.js";
289
289
  import { C as Fx, a as Mx, b as yx, c as Bx, d as kx, e as Gx, F as vx, f as Ux, g as Hx, h as Wx, I as Vx, P as wx, i as Kx, S as Yx, j as Xx, k as qx, l as jx, m as Qx, n as zx, T as Zx, o as Jx, p as $x, q as aP, r as eP, s as sP, t as rP, u as oP, v as tP, w as nP, x as iP, y as pP, z as mP, A as lP, B as AP, D as dP, E as SP, G as cP, H as fP, J as gP, K as TP, L as CP, M as IP, N as xP, O as PP, Q as EP, R as uP, U as _P, V as RP, W as LP, X as DP, Y as NP, Z as bP, _ as OP, $ as hP } from "./_chunks/tooth-data-DR8Kdnup.js";
290
290
  import { C as MP, D as yP, T as BP, t as kP, a as GP } from "./_chunks/tooth-finding-palette-DNQ3G2Tz.js";
@@ -296,10 +296,10 @@ import { C as $P, W as aE, a as eE, b as sE, c as rE, i as oE, l as tE, m as nE,
296
296
  import { AliaAsteroidIcon as SE } from "./alia-asteroid-icon/index.js";
297
297
  import { A as fE, a as gE, b as TE, c as CE } from "./_chunks/alia-sidebar-Bjuxk8mU.js";
298
298
  import { A as xE, a as PE, L as EE, P as uE, S as _E, T as RE, b as LE, c as DE, d as NE, e as bE, f as OE, g as hE, h as FE, i as ME, j as yE, k as BE, l as kE, m as GE, n as vE, o as UE, p as HE, r as WE, q as VE, s as wE, t as KE, u as YE } from "./_chunks/anamnesis-summary-rows-QCv6zW-J.js";
299
- import { A as qE, C as jE, i as QE } from "./_chunks/calendar-appointment-editor-dialog-CoIFwj9g.js";
299
+ import { A as qE, C as jE, i as QE } from "./_chunks/calendar-appointment-editor-dialog-Cz8F2H4M.js";
300
300
  import { C as ZE, a as JE, b as $E } from "./_chunks/calendar-editor-discard-host-DWS_kM-a.js";
301
301
  import { C as eu, u as su } from "./_chunks/calendar-editor-guard-9fShhNIA.js";
302
- import { C as ou, S as tu, u as nu } from "./_chunks/calendar.sheets-CueyPkTT.js";
302
+ import { C as ou, S as tu, u as nu } from "./_chunks/calendar.sheets-DsgPdycU.js";
303
303
  import { C as pu, D as mu, a as lu, V as Au, W as du, b as Su, m as cu, r as fu, u as gu } from "./_chunks/calendar-workspace.model-4zmA3BFE.js";
304
304
  import { C as Cu } from "./_chunks/check-in-documents-v1jFfDE1.js";
305
305
  import { E as xu, a as Pu, b as Eu, e as uu, r as _u } from "./_chunks/error-page-CdNGIezW.js";
@@ -315,7 +315,7 @@ import { P as m_, a as l_, b as A_ } from "./_chunks/portal-details-CKF4yFHs.js"
315
315
  import { P as S_, a as c_, b as f_, c as g_, d as T_ } from "./_chunks/patient-sign-in-pin-da7C8DOd.js";
316
316
  import { P as I_, a as x_, b as P_, c as E_, d as u_ } from "./_chunks/patient-sign-in-steps-kS2ktytw.js";
317
317
  import { P as R_ } from "./_chunks/payment-automation-upsell-N1A_IIw0.js";
318
- import { E as D_, P as N_, a as b_, b as O_, c as h_, i as F_, d as M_, n as y_, v as B_ } from "./_chunks/prescription-history-CFs3JMIE.js";
318
+ import { E as D_, P as N_, a as b_, b as O_, c as h_, i as F_, d as M_, n as y_, v as B_ } from "./_chunks/prescription-history-CQuJmd4H.js";
319
319
  import { R as G_, a as v_ } from "./_chunks/registration-form-AtRCt8n5.js";
320
320
  import { R as H_, a as W_ } from "./_chunks/reset-password-form-AMUxqdAS.js";
321
321
  import { S as w_, a as K_ } from "./_chunks/send-registration-link-form-D1lPdOPC.js";
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
2
2
  import { useState as h, useMemo as g } from "react";
3
3
  import { a as k } from "../_chunks/tooltip-uEBdD1-5.js";
4
4
  import { C as v } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
5
- import { S as B, B as O } from "../_chunks/calendar.sheets-CueyPkTT.js";
5
+ import { S as B, B as O } from "../_chunks/calendar.sheets-DsgPdycU.js";
6
6
  import { c as P, o as S } from "../_chunks/calendar-workspace.model-4zmA3BFE.js";
7
7
  function A({
8
8
  rows: e,
@@ -1,7 +1,7 @@
1
- import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-CoIFwj9g.js";
1
+ import { A as r, C as s, i as o } from "../../_chunks/calendar-appointment-editor-dialog-Cz8F2H4M.js";
2
2
  import { C, a as S, b as E } from "../../_chunks/calendar-editor-discard-host-DWS_kM-a.js";
3
3
  import { C as i, u as A } from "../../_chunks/calendar-editor-guard-9fShhNIA.js";
4
- import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-CueyPkTT.js";
4
+ import { C as d, S as p, u as D } from "../../_chunks/calendar.sheets-DsgPdycU.js";
5
5
  import { C as _, D as m, a as O, V as f, W as L, b as R, m as W, r as c, u as I } from "../../_chunks/calendar-workspace.model-4zmA3BFE.js";
6
6
  export {
7
7
  r as AppointmentEditorDialog,
@@ -3,7 +3,7 @@ export type { PrescriptionComposerProps, PrescriptionComposerHandle, } from './p
3
3
  export { PrescriptionSheet } from './prescription-sheet';
4
4
  export type { PrescriptionSheetProps, PrescriptionSheetHandle, PrescriptionSheetAction, } from './prescription-sheet';
5
5
  export { PrescriptionHistory } from './prescription-history';
6
- export type { PrescriptionHistoryProps } from './prescription-history';
6
+ export type { PrescriptionHistoryProps, PrescriptionHistoryNewAction, } from './prescription-history';
7
7
  export { validatePrescriptionDraft, isPrescriptionDraftValid, normalisePrescriptionDraft, isBlankPrescriptionItem, } from './prescription-validation';
8
8
  export type { PrescriptionDraftErrors, PrescriptionItemErrors, PrescriptionFieldError, PrescriptionValidationOptions, } from './prescription-validation';
9
9
  export { createEmptyPrescriptionDraft, EMPTY_PRESCRIPTION_ITEM, } from './prescription-types';
@@ -1,4 +1,4 @@
1
- import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-CFs3JMIE.js";
1
+ import { E as s, P as a, a as t, b as e, c as o, i as P, d as n, n as p, v as c } from "../../_chunks/prescription-history-CQuJmd4H.js";
2
2
  export {
3
3
  s as EMPTY_PRESCRIPTION_ITEM,
4
4
  a as PrescriptionComposer,
@@ -11,6 +11,12 @@
11
11
  */
12
12
  import { type HTMLAttributes } from 'react';
13
13
  import type { PrescriptionRecord } from './prescription-types';
14
+ /** The list's main action, drawn as the first button of the tools group. */
15
+ export interface PrescriptionHistoryNewAction {
16
+ /** The host's label. It is the button's tooltip and accessible name. */
17
+ label: string;
18
+ onClick: () => void;
19
+ }
14
20
  export interface PrescriptionHistoryProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
15
21
  /** Saved prescriptions, in any order. Shown newest first until the user sorts. */
16
22
  records: readonly PrescriptionRecord[];
@@ -42,6 +48,28 @@ export interface PrescriptionHistoryProps extends Omit<HTMLAttributes<HTMLDivEle
42
48
  * record has a `sendStatus`, so a host that sends nothing sees neither.
43
49
  */
44
50
  showSendStatus?: boolean;
51
+ /**
52
+ * The title. When given and non-empty (an empty string counts as not
53
+ * given), the history draws the page-header split of the
54
+ * kit's index pages: the heading on the inline-start, the quick search and
55
+ * the tools group on the inline-end, all on the page background, and the
56
+ * grid gets no toolbar of its own. The host supplies the text.
57
+ */
58
+ heading?: string;
59
+ /**
60
+ * 1 is the page's own title: an h1 in the page-title type. 2 is a section
61
+ * of a page: an h2 in the section-title type. Only matters with `heading`.
62
+ * Default 2.
63
+ */
64
+ headingLevel?: 1 | 2;
65
+ /** One line under the heading, in the muted colour. Only with `heading`. */
66
+ description?: string;
67
+ /**
68
+ * The list's main action, drawn as the first button of the tools group: a
69
+ * primary icon button with a Plus icon, `label` as its tooltip and
70
+ * accessible name, and `data-action="new"`. The host supplies the label.
71
+ */
72
+ newAction?: PrescriptionHistoryNewAction;
45
73
  id?: string;
46
74
  }
47
75
  export declare const PrescriptionHistory: import("react").ForwardRefExoticComponent<PrescriptionHistoryProps & import("react").RefAttributes<HTMLDivElement>>;