@alfadocs/ui-kit 1.90.2 → 1.91.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.
- package/dist/_chunks/{agenda-card-BDuvreCe.js → agenda-card-BhY342MA.js} +2 -2
- package/dist/_chunks/{agenda-tray-D-jvptdo.js → agenda-tray-BmxBGEci.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CsTRAxC8.js → alia-sidebar-ovRX_oti.js} +3 -3
- package/dist/_chunks/{appointment-card-5JMWi9_f.js → appointment-card-Bstc1p7a.js} +2 -2
- package/dist/_chunks/{appointment-peek-39BwVMUf.js → appointment-peek-C0kKqnFk.js} +2 -2
- package/dist/_chunks/{appointment-timeline-1-Za2miy.js → appointment-timeline-rbt9AwHO.js} +2 -2
- package/dist/_chunks/{appointment-tray-Dwc8MSIQ.js → appointment-tray-6zd8RLIL.js} +2 -2
- package/dist/_chunks/{avatar-BPiPL7ND.js → avatar-a6042Ox2.js} +52 -52
- package/dist/_chunks/{balance-badge-cell-D9VhFp0L.js → balance-badge-cell-BtJvre1-.js} +2 -2
- package/dist/_chunks/booking-opt_h7Uc.js +4590 -0
- package/dist/_chunks/{calendar-ClB-jWH1.js → calendar-CmiMS4FJ.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-CiAGAX2t.js → calendar-appointment-editor-dialog-sJKLoVJ2.js} +7 -7
- package/dist/_chunks/{care-plan-card-BYCPNDvA.js → care-plan-card-DD9rEWYN.js} +2 -2
- package/dist/_chunks/{care-plan-header-BzsAg6oY.js → care-plan-header-CXUJQt8Q.js} +2 -2
- package/dist/_chunks/{chat-message-CmFJdEre.js → chat-message-LRO_6Ee3.js} +2 -2
- package/dist/_chunks/{clinical-note-card-Caidqcwa.js → clinical-note-card-Cut2lNmu.js} +3 -3
- package/dist/_chunks/{contact-card-Czu60UvU.js → contact-card-ClvEDM9e.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Da1vmJQI.js → contact-profile-card-CX45mZA3.js} +106 -95
- package/dist/_chunks/{dependent-selector-C4kOgO8b.js → dependent-selector-CyNi7M_f.js} +2 -2
- package/dist/_chunks/{entity-summary-BLxzSSXK.js → entity-summary-B_bOloqP.js} +3 -3
- package/dist/_chunks/error-page-B0fGNTRB.js +419 -0
- package/dist/_chunks/{languages-CZqBaPwI.js → languages-CGLX6Qpe.js} +3 -15
- package/dist/_chunks/link-DtCfnLnF.js +332 -0
- package/dist/_chunks/{link-cell-renderer-CnCgudvq.js → link-cell-renderer-BS3V4LA6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CmZx0Oam.js → marketplace-app-shell-CJQtx3sv.js} +2 -2
- package/dist/_chunks/{message-card-CvCnCssc.js → message-card-B6SduXJv.js} +2 -2
- package/dist/_chunks/{message-tray-IJYvy6Cf.js → message-tray-Cllf-v0G.js} +2 -2
- package/dist/_chunks/{nav-grid-Oc4aCPrg.js → nav-grid-D2xVcHTO.js} +2 -2
- package/dist/_chunks/{note-attachment-DIlIQ7JF.js → note-attachment-cnj2JRrg.js} +2 -2
- package/dist/_chunks/{note-timeline-KzL52MmB.js → note-timeline-BrjHBQfx.js} +2 -2
- package/dist/_chunks/{notes-panel-Dywo6R55.js → notes-panel-ib7I3aNf.js} +2 -2
- package/dist/_chunks/{operator-hero-6aAIQaFZ.js → operator-hero-C_5B-8Qp.js} +43 -41
- package/dist/_chunks/{patient-details-BUr7Oemx.js → patient-details-BjcUpD9S.js} +3 -3
- package/dist/_chunks/{patient-field-row-bJk8Q_qr.js → patient-field-row-B0tdiaWi.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CCQZ8X37.js → patient-summary-card-Cvv6_Ugk.js} +4 -4
- package/dist/_chunks/{payment-request-card-MndSlVoK.js → payment-request-card-BfGauFY0.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-qfrsFQI_.js → practice-profile-hero-ClzE-4CB.js} +76 -73
- package/dist/_chunks/{practice-results-DQuOfqej.js → practice-results-CQ_KvEXK.js} +517 -514
- package/dist/_chunks/{product-hub-panel-Blag8t8f.js → product-hub-panel-bHi7lkVD.js} +2 -2
- package/dist/_chunks/public-footer-IoRWoAMz.js +596 -0
- package/dist/_chunks/{signature-request-DjY-X62H.js → signature-request-DvhyrRpn.js} +3 -3
- package/dist/_chunks/{signed-out-frame-G-3ATOdu.js → signed-out-frame-CgRXOUzi.js} +2 -2
- package/dist/_chunks/{slot-grid-DrwynKeN.js → slot-grid-B-IAFX3C.js} +180 -169
- package/dist/_chunks/{timeline-wUuTDFY_.js → timeline-BcYHdP56.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BytPq3Ux.js → use-appointment-details-read-D8vDg0sg.js} +5 -5
- package/dist/agent-catalog.json +2 -2
- package/dist/components/_shared/social-brand-icons.d.ts +29 -0
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/booking/booking-types.d.ts +26 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/slot-load-state.d.ts +11 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +10 -1
- package/dist/components/link/social-url.d.ts +71 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +6 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +6 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +8 -2
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +13 -1
- package/dist/components/public-footer/socials.d.ts +6 -5
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/slot-grid/slot-grid.d.ts +2 -0
- package/dist/components/timeline/index.js +1 -1
- package/dist/i18n/config.js +224 -96
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/ar.js +4 -1
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/de.js +4 -1
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/el.js +4 -1
- package/dist/i18n/locales/en.d.ts +3 -0
- package/dist/i18n/locales/en.js +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/es.js +4 -1
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/fr.js +4 -1
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hi.js +4 -1
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/it.js +4 -1
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ja.js +4 -1
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/nl.js +4 -1
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pl.js +4 -1
- package/dist/i18n/locales/pt.d.ts +3 -0
- package/dist/i18n/locales/pt.js +4 -1
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ro.js +4 -1
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/ru.js +4 -1
- package/dist/i18n/locales/sq.d.ts +3 -0
- package/dist/i18n/locales/sq.js +4 -1
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/sv.js +4 -1
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/tr.js +4 -1
- package/dist/i18n/locales/zh.d.ts +3 -0
- package/dist/i18n/locales/zh.js +4 -1
- package/dist/index.js +42 -42
- package/dist/locales/ar.json +4 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/el.json +4 -1
- package/dist/locales/en.json +3 -0
- package/dist/locales/es.json +4 -1
- package/dist/locales/fr.json +4 -1
- package/dist/locales/hi.json +4 -1
- package/dist/locales/it.json +4 -1
- package/dist/locales/ja.json +4 -1
- package/dist/locales/nl.json +4 -1
- package/dist/locales/pl.json +4 -1
- package/dist/locales/pt.json +4 -1
- package/dist/locales/ro.json +4 -1
- package/dist/locales/ru.json +4 -1
- package/dist/locales/sq.json +4 -1
- package/dist/locales/sv.json +4 -1
- package/dist/locales/tr.json +4 -1
- package/dist/locales/zh.json +4 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/error-page-english.d.ts +71 -0
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/booking-CcE_oviI.js +0 -4373
- package/dist/_chunks/error-page-Bhai-spN.js +0 -344
- package/dist/_chunks/link-N5_YpLtm.js +0 -138
- package/dist/_chunks/public-footer-CXOrdAaS.js +0 -568
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { B as
|
|
6
|
-
import { I as
|
|
7
|
-
import { E as
|
|
8
|
-
import { S as
|
|
9
|
-
import { u as
|
|
10
|
-
import { d as
|
|
11
|
-
import { p as
|
|
12
|
-
const
|
|
1
|
+
import { jsx as r, jsxs as v, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ye, useId as ge, useState as ve, useCallback as M, useRef as be, useEffect as we, useMemo as xe } from "react";
|
|
3
|
+
import { c as g } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as Se } from "react-i18next";
|
|
5
|
+
import { B as q } from "./button-DohK_Ak_.js";
|
|
6
|
+
import { I as W } from "./icon-button-S8_weU3g.js";
|
|
7
|
+
import { E as ke } from "./empty-state-DwJ5YNzz.js";
|
|
8
|
+
import { S as X } from "./skeleton-tTWJpvAq.js";
|
|
9
|
+
import { u as De } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { d as Ie, f as Ge } from "./format--x5jypvH.js";
|
|
11
|
+
import { p as Ne } from "./parseISO-DZZ5a-zK.js";
|
|
12
|
+
const Ke = {
|
|
13
13
|
id: "slot-grid",
|
|
14
14
|
// pick → `select_slot` + the `selectedSlotId` state slot.
|
|
15
15
|
// range_navigate → `next_days` / `previous_days` + `hasNext` / `hasPrevious`.
|
|
@@ -185,7 +185,7 @@ const Ge = {
|
|
|
185
185
|
description: "Per-slot button identifier sourced from each `SlotGridSlot.id` — an availability id, never a patient id. DOM-driving agents activate a slot via native click on the matching button."
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
},
|
|
188
|
+
}, Me = g(
|
|
189
189
|
[
|
|
190
190
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
191
191
|
"ds:text-[var(--foreground)]",
|
|
@@ -201,9 +201,9 @@ const Ge = {
|
|
|
201
201
|
},
|
|
202
202
|
defaultVariants: { size: "md" }
|
|
203
203
|
}
|
|
204
|
-
),
|
|
204
|
+
), ze = g(
|
|
205
205
|
"ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full"
|
|
206
|
-
),
|
|
206
|
+
), Ce = 12, Re = g(
|
|
207
207
|
"ds:grid ds:gap-[var(--spacing-sm)] ds:w-full ds:auto-rows-min ds:items-start",
|
|
208
208
|
{
|
|
209
209
|
variants: {
|
|
@@ -225,10 +225,10 @@ const Ge = {
|
|
|
225
225
|
defaultVariants: { cols: 1 }
|
|
226
226
|
}
|
|
227
227
|
);
|
|
228
|
-
function
|
|
229
|
-
return Math.max(1, Math.min(e,
|
|
228
|
+
function Le(e) {
|
|
229
|
+
return Math.max(1, Math.min(e, Ce));
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const J = g(
|
|
232
232
|
[
|
|
233
233
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
234
234
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -237,7 +237,7 @@ const X = y(
|
|
|
237
237
|
"ds:bg-[var(--card)]",
|
|
238
238
|
"ds:min-w-0"
|
|
239
239
|
].join(" ")
|
|
240
|
-
),
|
|
240
|
+
), Be = g(
|
|
241
241
|
[
|
|
242
242
|
"ds:font-[var(--font-weight-semibold)]",
|
|
243
243
|
"ds:text-[var(--foreground)]",
|
|
@@ -254,9 +254,9 @@ const X = y(
|
|
|
254
254
|
},
|
|
255
255
|
defaultVariants: { size: "md" }
|
|
256
256
|
}
|
|
257
|
-
),
|
|
257
|
+
), Q = g(
|
|
258
258
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full ds:m-0 ds:p-0 ds:list-none"
|
|
259
|
-
),
|
|
259
|
+
), Ee = g(
|
|
260
260
|
[
|
|
261
261
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
262
262
|
"ds:w-full",
|
|
@@ -290,30 +290,30 @@ const X = y(
|
|
|
290
290
|
}
|
|
291
291
|
);
|
|
292
292
|
function h(e) {
|
|
293
|
-
return e instanceof Date ? e :
|
|
293
|
+
return e instanceof Date ? e : Ne(e);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function z(e, a) {
|
|
296
296
|
return `${h(e.date).toISOString()}-${a}`;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
return
|
|
298
|
+
function k(e) {
|
|
299
|
+
return Ge(h(e.date), "yyyy-MM-dd");
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
301
|
+
function Ye(e, a) {
|
|
302
|
+
return Ie(h(e), h(a));
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Ze(e) {
|
|
305
305
|
for (const a of e) {
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
306
|
+
const o = a.slots.find((i) => i.available !== !1);
|
|
307
|
+
if (o) return { day: a, slot: o };
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function U(e, a, o) {
|
|
311
311
|
try {
|
|
312
312
|
return new Intl.DateTimeFormat(a, {
|
|
313
313
|
weekday: "short",
|
|
314
314
|
month: "short",
|
|
315
315
|
day: "numeric",
|
|
316
|
-
timeZone:
|
|
316
|
+
timeZone: o
|
|
317
317
|
}).format(e);
|
|
318
318
|
} catch {
|
|
319
319
|
return new Intl.DateTimeFormat("en", {
|
|
@@ -323,35 +323,35 @@ function Q(e, a, i) {
|
|
|
323
323
|
}).format(e);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Y(e, a, o) {
|
|
327
327
|
if (e.label !== void 0) return e.label;
|
|
328
|
-
const
|
|
328
|
+
const i = h(e.start);
|
|
329
329
|
try {
|
|
330
330
|
const c = new Intl.DateTimeFormat(a, {
|
|
331
331
|
hour: "numeric",
|
|
332
332
|
minute: "2-digit",
|
|
333
|
-
timeZone:
|
|
333
|
+
timeZone: o
|
|
334
334
|
});
|
|
335
335
|
if (e.end) {
|
|
336
|
-
const
|
|
336
|
+
const y = h(e.end);
|
|
337
337
|
if (typeof c.formatRange == "function")
|
|
338
338
|
try {
|
|
339
|
-
return c.formatRange(
|
|
339
|
+
return c.formatRange(i, y);
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
|
-
return `${c.format(
|
|
342
|
+
return `${c.format(i)} – ${c.format(y)}`;
|
|
343
343
|
}
|
|
344
|
-
return c.format(
|
|
344
|
+
return c.format(i);
|
|
345
345
|
} catch {
|
|
346
|
-
return
|
|
346
|
+
return i.toISOString();
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Ve(e, a, o, i, c) {
|
|
350
350
|
if (e.ariaLabel !== void 0) return e.ariaLabel;
|
|
351
|
-
const
|
|
352
|
-
return c({ time:
|
|
351
|
+
const y = Y(e, o, i), D = a.label !== void 0 ? a.label : U(h(a.date), o, i);
|
|
352
|
+
return c({ time: y, day: D });
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function je() {
|
|
355
355
|
return /* @__PURE__ */ r(
|
|
356
356
|
"svg",
|
|
357
357
|
{
|
|
@@ -367,7 +367,7 @@ function Ee() {
|
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Te() {
|
|
371
371
|
return /* @__PURE__ */ r(
|
|
372
372
|
"svg",
|
|
373
373
|
{
|
|
@@ -383,189 +383,200 @@ function Ve() {
|
|
|
383
383
|
}
|
|
384
384
|
);
|
|
385
385
|
}
|
|
386
|
-
const
|
|
386
|
+
const Pe = ye(
|
|
387
387
|
({
|
|
388
388
|
days: e,
|
|
389
389
|
state: a = "default",
|
|
390
|
+
emptyDescription: o,
|
|
390
391
|
size: i = "md",
|
|
391
|
-
selectedSlotId:
|
|
392
|
-
maxInitialSlotsPerDay:
|
|
393
|
-
locale:
|
|
394
|
-
timeZone:
|
|
395
|
-
hasPrevious:
|
|
396
|
-
hasNext:
|
|
397
|
-
showNextAvailable:
|
|
398
|
-
ariaLabel:
|
|
392
|
+
selectedSlotId: c,
|
|
393
|
+
maxInitialSlotsPerDay: y = 6,
|
|
394
|
+
locale: D,
|
|
395
|
+
timeZone: I,
|
|
396
|
+
hasPrevious: C = !1,
|
|
397
|
+
hasNext: R = !1,
|
|
398
|
+
showNextAvailable: Z = !1,
|
|
399
|
+
ariaLabel: ee,
|
|
399
400
|
onSlotSelect: b,
|
|
400
|
-
onPreviousDays:
|
|
401
|
-
onNextDays:
|
|
401
|
+
onPreviousDays: L,
|
|
402
|
+
onNextDays: B,
|
|
402
403
|
onShowMore: w,
|
|
403
|
-
onJumpToNextAvailable:
|
|
404
|
-
className:
|
|
405
|
-
id:
|
|
406
|
-
...
|
|
407
|
-
},
|
|
408
|
-
const { t: p, i18n:
|
|
404
|
+
onJumpToNextAvailable: te,
|
|
405
|
+
className: se,
|
|
406
|
+
id: G,
|
|
407
|
+
...ae
|
|
408
|
+
}, re) => {
|
|
409
|
+
const { t: p, i18n: ie } = Se("ui"), N = D ?? ie.language ?? "en", ne = ge(), [E, oe] = ve({}), V = a === "loading", j = a === "disabled", m = V || j, de = a === "empty" || e.length === 0 || e.every((t) => t.slots.length === 0), le = ee ?? p("slotGrid.ariaLabel"), x = M(
|
|
409
410
|
(t, s) => {
|
|
410
|
-
|
|
411
|
+
m || t.available !== !1 && (b == null || b(t, s));
|
|
411
412
|
},
|
|
412
|
-
[
|
|
413
|
-
),
|
|
413
|
+
[m, b]
|
|
414
|
+
), T = M(
|
|
414
415
|
(t, s) => {
|
|
415
|
-
|
|
416
|
+
oe((n) => ({ ...n, [s]: !0 })), w == null || w(t);
|
|
416
417
|
},
|
|
417
418
|
[w]
|
|
418
|
-
),
|
|
419
|
+
), ce = M(
|
|
419
420
|
(t, s, n) => {
|
|
420
421
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), x(s, n));
|
|
421
422
|
},
|
|
422
423
|
[x]
|
|
423
|
-
),
|
|
424
|
+
), P = {
|
|
424
425
|
days: e,
|
|
425
|
-
selectedSlotId:
|
|
426
|
-
hasPrevious:
|
|
427
|
-
hasNext:
|
|
426
|
+
selectedSlotId: c,
|
|
427
|
+
hasPrevious: C,
|
|
428
|
+
hasNext: R,
|
|
428
429
|
state: a,
|
|
429
|
-
expanded:
|
|
430
|
-
isInteractionSuppressed:
|
|
431
|
-
onPreviousDays:
|
|
432
|
-
onNextDays:
|
|
430
|
+
expanded: E,
|
|
431
|
+
isInteractionSuppressed: m,
|
|
432
|
+
onPreviousDays: L,
|
|
433
|
+
onNextDays: B,
|
|
433
434
|
handleSlotClick: x,
|
|
434
|
-
handleShowMore:
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
|
|
435
|
+
handleShowMore: T
|
|
436
|
+
}, d = be(P);
|
|
437
|
+
we(() => {
|
|
438
|
+
d.current = P;
|
|
438
439
|
});
|
|
439
|
-
const
|
|
440
|
+
const ue = xe(
|
|
440
441
|
() => ({
|
|
441
|
-
getStatus: () =>
|
|
442
|
-
getSelectedSlotId: () =>
|
|
443
|
-
getVisibleDays: () =>
|
|
442
|
+
getStatus: () => d.current.state,
|
|
443
|
+
getSelectedSlotId: () => d.current.selectedSlotId ?? null,
|
|
444
|
+
getVisibleDays: () => d.current.days.map(k),
|
|
444
445
|
getSlotsByDay: () => {
|
|
445
446
|
const t = {};
|
|
446
|
-
for (const s of
|
|
447
|
-
const n =
|
|
448
|
-
t[n] = t[n] ? [...t[n], ...
|
|
447
|
+
for (const s of d.current.days) {
|
|
448
|
+
const n = k(s), l = s.slots.filter((u) => u.available !== !1).map((u) => u.id);
|
|
449
|
+
t[n] = t[n] ? [...t[n], ...l] : l;
|
|
449
450
|
}
|
|
450
451
|
return t;
|
|
451
452
|
},
|
|
452
|
-
getExpandedDays: () =>
|
|
453
|
-
(t, s) =>
|
|
454
|
-
).map(
|
|
455
|
-
getHasPrevious: () =>
|
|
456
|
-
getHasNext: () =>
|
|
453
|
+
getExpandedDays: () => d.current.days.filter(
|
|
454
|
+
(t, s) => d.current.expanded[z(t, s)] === !0
|
|
455
|
+
).map(k),
|
|
456
|
+
getHasPrevious: () => d.current.hasPrevious,
|
|
457
|
+
getHasNext: () => d.current.hasNext,
|
|
457
458
|
selectSlot: (t) => {
|
|
458
|
-
const s =
|
|
459
|
+
const s = d.current;
|
|
459
460
|
if (s.isInteractionSuppressed) return !1;
|
|
460
461
|
for (const n of s.days) {
|
|
461
|
-
const
|
|
462
|
-
if (
|
|
463
|
-
return
|
|
462
|
+
const l = n.slots.find((u) => u.id === t);
|
|
463
|
+
if (l)
|
|
464
|
+
return l.available === !1 ? !1 : (s.handleSlotClick(l, n), !0);
|
|
464
465
|
}
|
|
465
466
|
return !1;
|
|
466
467
|
},
|
|
467
468
|
nextDays: () => {
|
|
468
|
-
const t =
|
|
469
|
+
const t = d.current;
|
|
469
470
|
return !t.hasNext || t.isInteractionSuppressed || !t.onNextDays ? !1 : (t.onNextDays(), !0);
|
|
470
471
|
},
|
|
471
472
|
previousDays: () => {
|
|
472
|
-
const t =
|
|
473
|
+
const t = d.current;
|
|
473
474
|
return !t.hasPrevious || t.isInteractionSuppressed || !t.onPreviousDays ? !1 : (t.onPreviousDays(), !0);
|
|
474
475
|
},
|
|
475
476
|
showMoreDay: (t) => {
|
|
476
|
-
const s =
|
|
477
|
+
const s = d.current;
|
|
477
478
|
if (s.isInteractionSuppressed) return !1;
|
|
478
479
|
const n = s.days.findIndex(
|
|
479
|
-
(u) =>
|
|
480
|
+
(u) => k(u) === t
|
|
480
481
|
);
|
|
481
482
|
if (n < 0) return !1;
|
|
482
|
-
const
|
|
483
|
-
return s.handleShowMore(
|
|
483
|
+
const l = s.days[n];
|
|
484
|
+
return s.handleShowMore(l, z(l, n)), !0;
|
|
484
485
|
}
|
|
485
486
|
}),
|
|
486
487
|
[]
|
|
487
488
|
);
|
|
488
|
-
|
|
489
|
-
const
|
|
489
|
+
De(Ke, ue, G);
|
|
490
|
+
const _ = Le(e.length || 1), A = Re({ cols: _ });
|
|
490
491
|
let S;
|
|
491
|
-
return
|
|
492
|
+
return V ? S = /* @__PURE__ */ r(
|
|
492
493
|
"div",
|
|
493
494
|
{
|
|
494
|
-
className:
|
|
495
|
+
className: A,
|
|
495
496
|
"data-state": "loading",
|
|
496
497
|
role: "status",
|
|
497
498
|
"aria-live": "polite",
|
|
498
499
|
"aria-label": p("common.loading"),
|
|
499
|
-
children: Array.from({ length:
|
|
500
|
-
/* @__PURE__ */ r(
|
|
501
|
-
/* @__PURE__ */ r("div", { className:
|
|
502
|
-
{ length: Math.min(
|
|
503
|
-
(n,
|
|
504
|
-
|
|
500
|
+
children: Array.from({ length: _ }, (t, s) => /* @__PURE__ */ v("div", { className: J(), children: [
|
|
501
|
+
/* @__PURE__ */ r(X, { variant: "text", size: i, width: "60%" }),
|
|
502
|
+
/* @__PURE__ */ r("div", { className: Q(), children: Array.from(
|
|
503
|
+
{ length: Math.min(y, 4) },
|
|
504
|
+
(n, l) => /* @__PURE__ */ r(
|
|
505
|
+
X,
|
|
505
506
|
{
|
|
506
507
|
variant: "rounded",
|
|
507
508
|
size: i,
|
|
508
509
|
height: "40px"
|
|
509
510
|
},
|
|
510
|
-
`loading-slot-${s}-${
|
|
511
|
+
`loading-slot-${s}-${l}`
|
|
511
512
|
)
|
|
512
513
|
) })
|
|
513
514
|
] }, `loading-col-${s}`))
|
|
514
515
|
}
|
|
515
|
-
) :
|
|
516
|
+
) : de ? S = /* @__PURE__ */ r("div", { "data-state": "empty", children: /* @__PURE__ */ r(
|
|
517
|
+
ke,
|
|
518
|
+
{
|
|
519
|
+
variant: "no-results",
|
|
520
|
+
title: p("slotGrid.noSlots"),
|
|
521
|
+
description: o
|
|
522
|
+
}
|
|
523
|
+
) }) : S = /* @__PURE__ */ r(
|
|
516
524
|
"div",
|
|
517
525
|
{
|
|
518
|
-
className:
|
|
519
|
-
"data-state":
|
|
526
|
+
className: A,
|
|
527
|
+
"data-state": j ? "disabled" : "default",
|
|
520
528
|
children: e.map((t, s) => {
|
|
521
|
-
const n =
|
|
529
|
+
const n = z(t, s), l = t.label ?? U(h(t.date), N, I), u = `${ne}-day-${s}-header`, $ = E[n] ?? !1 ? t.slots : t.slots.slice(0, y), H = t.slots.length - $.length, O = t.slots.length === 0;
|
|
522
530
|
return (
|
|
523
531
|
// Use a plain <div role="group"> rather than <section> — a
|
|
524
532
|
// <section> with aria-labelledby is a landmark, and nesting many
|
|
525
533
|
// landmarks inside the outer slot-grid landmark fails axe's
|
|
526
534
|
// landmark-unique rule.
|
|
527
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ v(
|
|
528
536
|
"div",
|
|
529
537
|
{
|
|
530
538
|
role: "group",
|
|
531
|
-
className:
|
|
539
|
+
className: J(),
|
|
532
540
|
"aria-labelledby": u,
|
|
533
|
-
"data-empty":
|
|
541
|
+
"data-empty": O || void 0,
|
|
534
542
|
children: [
|
|
535
|
-
/* @__PURE__ */ r("h3", { id: u, className:
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
543
|
+
/* @__PURE__ */ r("h3", { id: u, className: Be({ size: i }), children: l }),
|
|
544
|
+
O ? /* @__PURE__ */ v(he, { children: [
|
|
545
|
+
/* @__PURE__ */ r("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: p("slotGrid.noSlots") }),
|
|
546
|
+
o ? /* @__PURE__ */ r("p", { className: "type-body-sm ds:text-[var(--muted-foreground)] ds:m-0", children: o }) : null
|
|
547
|
+
] }) : null,
|
|
548
|
+
/* @__PURE__ */ r("ul", { className: Q(), children: $.map((f) => {
|
|
549
|
+
const pe = Ve(
|
|
550
|
+
f,
|
|
540
551
|
t,
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
({ time:
|
|
544
|
-
),
|
|
552
|
+
N,
|
|
553
|
+
I,
|
|
554
|
+
({ time: K, day: fe }) => p("slotGrid.slotLabel", { time: K, day: fe })
|
|
555
|
+
), me = c === f.id, F = f.available === !1 || m;
|
|
545
556
|
return /* @__PURE__ */ r("li", { children: /* @__PURE__ */ r(
|
|
546
557
|
"button",
|
|
547
558
|
{
|
|
548
559
|
type: "button",
|
|
549
|
-
className:
|
|
550
|
-
"aria-label":
|
|
551
|
-
"aria-pressed":
|
|
552
|
-
disabled:
|
|
553
|
-
"aria-disabled":
|
|
554
|
-
"data-slot-id":
|
|
555
|
-
onClick: () => x(
|
|
556
|
-
onKeyDown: (
|
|
557
|
-
children:
|
|
560
|
+
className: Ee({ size: i }),
|
|
561
|
+
"aria-label": pe,
|
|
562
|
+
"aria-pressed": me,
|
|
563
|
+
disabled: F,
|
|
564
|
+
"aria-disabled": F || void 0,
|
|
565
|
+
"data-slot-id": f.id,
|
|
566
|
+
onClick: () => x(f, t),
|
|
567
|
+
onKeyDown: (K) => ce(K, f, t),
|
|
568
|
+
children: Y(f, N, I)
|
|
558
569
|
}
|
|
559
|
-
) },
|
|
570
|
+
) }, f.id);
|
|
560
571
|
}) }),
|
|
561
|
-
|
|
562
|
-
|
|
572
|
+
H > 0 ? /* @__PURE__ */ r(
|
|
573
|
+
q,
|
|
563
574
|
{
|
|
564
575
|
intent: "ghost",
|
|
565
576
|
size: i === "lg" ? "md" : "sm",
|
|
566
|
-
onClick: () =>
|
|
567
|
-
disabled:
|
|
568
|
-
children: p("slotGrid.showMore", { count:
|
|
577
|
+
onClick: () => T(t, n),
|
|
578
|
+
disabled: m,
|
|
579
|
+
children: p("slotGrid.showMore", { count: H })
|
|
569
580
|
}
|
|
570
581
|
) : null
|
|
571
582
|
]
|
|
@@ -575,54 +586,54 @@ const je = me(
|
|
|
575
586
|
);
|
|
576
587
|
})
|
|
577
588
|
}
|
|
578
|
-
), /* @__PURE__ */
|
|
589
|
+
), /* @__PURE__ */ v(
|
|
579
590
|
"div",
|
|
580
591
|
{
|
|
581
|
-
ref:
|
|
582
|
-
id:
|
|
592
|
+
ref: re,
|
|
593
|
+
id: G,
|
|
583
594
|
role: "region",
|
|
584
|
-
"aria-label":
|
|
585
|
-
className:
|
|
595
|
+
"aria-label": le,
|
|
596
|
+
className: Me({ size: i, className: se }),
|
|
586
597
|
"data-component": "slot-grid",
|
|
587
|
-
"data-component-id":
|
|
598
|
+
"data-component-id": G,
|
|
588
599
|
"data-state": a,
|
|
589
|
-
...
|
|
600
|
+
...ae,
|
|
590
601
|
children: [
|
|
591
|
-
/* @__PURE__ */
|
|
602
|
+
/* @__PURE__ */ v("div", { className: ze(), children: [
|
|
592
603
|
/* @__PURE__ */ r(
|
|
593
|
-
|
|
604
|
+
W,
|
|
594
605
|
{
|
|
595
|
-
icon: /* @__PURE__ */ r(
|
|
606
|
+
icon: /* @__PURE__ */ r(je, {}),
|
|
596
607
|
"aria-label": p("slotGrid.previousDays"),
|
|
597
608
|
className: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)]",
|
|
598
609
|
size: i === "lg" ? "md" : "sm",
|
|
599
610
|
intent: "ghost",
|
|
600
611
|
flipIconInRtl: !0,
|
|
601
|
-
disabled: !
|
|
602
|
-
onClick:
|
|
612
|
+
disabled: !C || m,
|
|
613
|
+
onClick: L
|
|
603
614
|
}
|
|
604
615
|
),
|
|
605
|
-
|
|
606
|
-
|
|
616
|
+
Z ? /* @__PURE__ */ r(
|
|
617
|
+
q,
|
|
607
618
|
{
|
|
608
619
|
intent: "secondary",
|
|
609
620
|
size: i === "lg" ? "md" : "sm",
|
|
610
|
-
disabled:
|
|
611
|
-
onClick:
|
|
621
|
+
disabled: m,
|
|
622
|
+
onClick: te,
|
|
612
623
|
children: p("slotGrid.nextAvailable")
|
|
613
624
|
}
|
|
614
625
|
) : /* @__PURE__ */ r("span", { "aria-hidden": "true" }),
|
|
615
626
|
/* @__PURE__ */ r(
|
|
616
|
-
|
|
627
|
+
W,
|
|
617
628
|
{
|
|
618
|
-
icon: /* @__PURE__ */ r(
|
|
629
|
+
icon: /* @__PURE__ */ r(Te, {}),
|
|
619
630
|
"aria-label": p("slotGrid.nextDays"),
|
|
620
631
|
className: "ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)] ds:sm:min-h-[var(--min-target-size)]",
|
|
621
632
|
size: i === "lg" ? "md" : "sm",
|
|
622
633
|
intent: "ghost",
|
|
623
634
|
flipIconInRtl: !0,
|
|
624
|
-
disabled: !
|
|
625
|
-
onClick:
|
|
635
|
+
disabled: !R || m,
|
|
636
|
+
onClick: B
|
|
626
637
|
}
|
|
627
638
|
)
|
|
628
639
|
] }),
|
|
@@ -632,11 +643,11 @@ const je = me(
|
|
|
632
643
|
);
|
|
633
644
|
}
|
|
634
645
|
);
|
|
635
|
-
|
|
646
|
+
Pe.displayName = "SlotGrid";
|
|
636
647
|
export {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
648
|
+
Pe as S,
|
|
649
|
+
Ze as f,
|
|
650
|
+
Ye as i,
|
|
651
|
+
Ke as s
|
|
641
652
|
};
|
|
642
|
-
//# sourceMappingURL=slot-grid-
|
|
653
|
+
//# sourceMappingURL=slot-grid-B-IAFX3C.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as m, useMemo as p, useRef as w, useState as V, useCallback as I, useImperativeHandle as O, useContext as v, createContext as C } from "react";
|
|
3
3
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as A } from "react-i18next";
|
|
5
|
-
import { A as P } from "./avatar-
|
|
5
|
+
import { A as P } from "./avatar-a6042Ox2.js";
|
|
6
6
|
import { C as N } from "./card-BA4Ig_kn.js";
|
|
7
7
|
import { T as q } from "./timestamp-DPLDWdxA.js";
|
|
8
8
|
import { u as B } from "./registry-DvAUVLHh.js";
|
|
@@ -293,4 +293,4 @@ export {
|
|
|
293
293
|
le as T,
|
|
294
294
|
K as t
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=timeline-
|
|
296
|
+
//# sourceMappingURL=timeline-BcYHdP56.js.map
|
|
@@ -13,10 +13,10 @@ import { I as Lt } from "./icon-button-S8_weU3g.js";
|
|
|
13
13
|
import { B as tn } from "./button-group-ZVb1Q-w4.js";
|
|
14
14
|
import { D as Oe } from "./dropdown-menu-D1we7oAY.js";
|
|
15
15
|
import { E as zt } from "./editable-description-KU56SP4P.js";
|
|
16
|
-
import { N as Xe } from "./note-timeline-
|
|
16
|
+
import { N as Xe } from "./note-timeline-BrjHBQfx.js";
|
|
17
17
|
import { P as Ot } from "./panel-header-CbtlTe85.js";
|
|
18
18
|
import { P as Ge } from "./panel-subview-DCyvn-49.js";
|
|
19
|
-
import { P as _t } from "./patient-summary-card-
|
|
19
|
+
import { P as _t } from "./patient-summary-card-Cvv6_Ugk.js";
|
|
20
20
|
import { S as ne } from "./section-card-D5nWiTcK.js";
|
|
21
21
|
import { C as nn, S as ue } from "./skeleton-tTWJpvAq.js";
|
|
22
22
|
import { T as an } from "./text-area-COMVJ1yE.js";
|
|
@@ -26,7 +26,7 @@ import { a as Nt } from "./whatsapp-button-DV9JFmtq.js";
|
|
|
26
26
|
import { a as Ft, W as on } from "./workflow-status-Dc_CyEz5.js";
|
|
27
27
|
import { u as ot, a as At, i as rn } from "./appointment-workflow-status-DMjuIK90.js";
|
|
28
28
|
import { E as dn } from "./empty-state-DwJ5YNzz.js";
|
|
29
|
-
import { T as Ae } from "./timeline-
|
|
29
|
+
import { T as Ae } from "./timeline-BcYHdP56.js";
|
|
30
30
|
import { C as rt } from "./calendar-clock-hbObjfGY.js";
|
|
31
31
|
import { T as $t } from "./trash-2-uumy3fy1.js";
|
|
32
32
|
import { A as Ve } from "./entity-card-fpm-KUKc.js";
|
|
@@ -35,7 +35,7 @@ import { P as me } from "./pencil-B1sKKyuT.js";
|
|
|
35
35
|
import { C as Je } from "./clock-Drd4Wtis.js";
|
|
36
36
|
import { c as Fe } from "./createLucideIcon-DhHxpK9K.js";
|
|
37
37
|
import { A as cn } from "./arrow-right-KsIrLdt0.js";
|
|
38
|
-
import { A as Ze } from "./avatar-
|
|
38
|
+
import { A as Ze } from "./avatar-a6042Ox2.js";
|
|
39
39
|
import { B as $e } from "./badge-BUk4RjTS.js";
|
|
40
40
|
import { H as dt } from "./heart-pulse-BCppJyN2.js";
|
|
41
41
|
import { G as un } from "./globe-sHBW1JN5.js";
|
|
@@ -2195,4 +2195,4 @@ export {
|
|
|
2195
2195
|
Kn as s,
|
|
2196
2196
|
_s as u
|
|
2197
2197
|
};
|
|
2198
|
-
//# sourceMappingURL=use-appointment-details-read-
|
|
2198
|
+
//# sourceMappingURL=use-appointment-details-read-D8vDg0sg.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.91.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -7454,7 +7454,7 @@
|
|
|
7454
7454
|
"root": {
|
|
7455
7455
|
"attr": "data-component",
|
|
7456
7456
|
"value": "link",
|
|
7457
|
-
"description": "Marks the element as a kit Link. The destination URL is the native `href` attribute on the anchor; agents read it directly from the DOM."
|
|
7457
|
+
"description": "Marks the element as a kit Link. The destination URL is the native `href` attribute on the anchor; agents read it directly from the DOM. Also carries `data-variant` (`default` or `social`) and, for recognised social links, `data-social-network` (for example `instagram`); both are structural, with no patient data."
|
|
7458
7458
|
}
|
|
7459
7459
|
}
|
|
7460
7460
|
},
|