@alfadocs/ui-kit 1.30.0 → 1.31.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/{address-fields-CZ0pEdEI.js → address-fields-jFfjxOQR.js} +3 -3
- package/dist/_chunks/{appointment-card-Dzr3GeVz.js → appointment-card-CvUFFEdS.js} +8 -6
- package/dist/_chunks/{appointment-timeline-DhHwmHo1.js → appointment-timeline-DsMZY7U9.js} +2 -2
- package/dist/_chunks/{appointment-tray-4FUu_5NX.js → appointment-tray-Z2GaOIYQ.js} +2 -2
- package/dist/_chunks/{booking-AabCk7CI.js → booking-jGzRUETo.js} +2 -2
- package/dist/_chunks/{calendar-CI9MINcR.js → calendar-BNQKpxhE.js} +494 -438
- package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
- package/dist/_chunks/calendar-workspace-Dy1jHBvG.js +9392 -0
- package/dist/_chunks/{clinical-note-card-BBgFd2nB.js → clinical-note-card-yCTR9DB6.js} +185 -188
- package/dist/_chunks/{color-picker-CU303VjY.js → color-picker-Bl5f0iK1.js} +28 -25
- package/dist/_chunks/{combobox-D7_NLE2Z.js → combobox-DnSdYssy.js} +216 -215
- package/dist/_chunks/{country-select-DzbPFktV.js → country-select-CfDNFG5c.js} +2 -2
- package/dist/_chunks/{face-scheme-DA2vjqaM.js → face-scheme-l-CQyLs-.js} +2 -2
- package/dist/_chunks/notes-panel-am6e-Lwh.js +380 -0
- package/dist/_chunks/{patient-details-DYAmq76G.js → patient-details-CdfursHt.js} +3 -3
- package/dist/_chunks/{province-select-BBc7s7vR.js → province-select-BaUnkg4S.js} +2 -2
- package/dist/_chunks/{rich-text-editor-lSCiE0Zz.js → rich-text-editor-VJATL1Tk.js} +2 -2
- package/dist/_chunks/{timeline-r-8IUoBS.js → timeline-u-2t9t_M.js} +37 -35
- package/dist/agent-catalog.json +51 -10
- package/dist/agent-i18n/en.json +9 -7
- package/dist/components/_shared/get-error-message.d.ts +3 -0
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +26 -2
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +16 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.d.ts +5 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.d.ts +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +24 -5
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timeline/timeline.d.ts +2 -0
- package/dist/host-compat.css +7 -1
- package/dist/i18n/locales/ar.d.ts +50 -0
- package/dist/i18n/locales/ar.js +54 -4
- package/dist/i18n/locales/de.d.ts +60 -10
- package/dist/i18n/locales/de.js +64 -14
- package/dist/i18n/locales/el.d.ts +50 -0
- package/dist/i18n/locales/el.js +54 -4
- package/dist/i18n/locales/en.d.ts +50 -0
- package/dist/i18n/locales/en.js +54 -4
- package/dist/i18n/locales/es.d.ts +50 -0
- package/dist/i18n/locales/es.js +54 -4
- package/dist/i18n/locales/fr.d.ts +50 -0
- package/dist/i18n/locales/fr.js +53 -3
- package/dist/i18n/locales/hi.d.ts +50 -0
- package/dist/i18n/locales/hi.js +54 -4
- package/dist/i18n/locales/it.d.ts +60 -10
- package/dist/i18n/locales/it.js +64 -14
- package/dist/i18n/locales/ja.d.ts +50 -0
- package/dist/i18n/locales/ja.js +54 -4
- package/dist/i18n/locales/nl.d.ts +50 -0
- package/dist/i18n/locales/nl.js +54 -4
- package/dist/i18n/locales/pl.d.ts +50 -0
- package/dist/i18n/locales/pl.js +54 -4
- package/dist/i18n/locales/pt.d.ts +50 -0
- package/dist/i18n/locales/pt.js +54 -4
- package/dist/i18n/locales/ro.d.ts +50 -0
- package/dist/i18n/locales/ro.js +53 -3
- package/dist/i18n/locales/ru.d.ts +50 -0
- package/dist/i18n/locales/ru.js +54 -4
- package/dist/i18n/locales/sq.d.ts +50 -0
- package/dist/i18n/locales/sq.js +54 -4
- package/dist/i18n/locales/sv.d.ts +50 -0
- package/dist/i18n/locales/sv.js +54 -4
- package/dist/i18n/locales/tr.d.ts +50 -0
- package/dist/i18n/locales/tr.js +54 -4
- package/dist/i18n/locales/zh.d.ts +50 -0
- package/dist/i18n/locales/zh.js +54 -4
- package/dist/index.js +91 -90
- package/dist/locales/ar.json +54 -4
- package/dist/locales/de.json +64 -14
- package/dist/locales/el.json +54 -4
- package/dist/locales/en.json +54 -4
- package/dist/locales/es.json +54 -4
- package/dist/locales/fr.json +53 -3
- package/dist/locales/hi.json +54 -4
- package/dist/locales/it.json +64 -14
- package/dist/locales/ja.json +54 -4
- package/dist/locales/nl.json +54 -4
- package/dist/locales/pl.json +54 -4
- package/dist/locales/pt.json +54 -4
- package/dist/locales/ro.json +53 -3
- package/dist/locales/ru.json +54 -4
- package/dist/locales/sq.json +54 -4
- package/dist/locales/sv.json +54 -4
- package/dist/locales/tr.json +54 -4
- package/dist/locales/zh.json +54 -4
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +145 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +32 -0
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +59 -0
- package/dist/patterns/calendar/calendar-notes-tool.d.ts +14 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
- package/dist/patterns/calendar/calendar-series-scope-chooser.d.ts +18 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +26 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +8 -5
- package/dist/patterns/calendar/calendar.data.d.ts +66 -1
- package/dist/patterns/calendar/calendar.host.d.ts +2 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +42 -7
- package/dist/patterns/calendar/calendar.model.d.ts +54 -5
- package/dist/patterns/calendar/calendar.sheets.d.ts +68 -15
- package/dist/patterns/calendar/calendar.surface.d.ts +12 -2
- package/dist/patterns/calendar/calendar.types.d.ts +29 -1
- package/dist/patterns/calendar/index.d.ts +9 -6
- package/dist/patterns/calendar/index.js +15 -14
- package/dist/tokens.css +10 -2
- package/package.json +1 -1
- package/dist/_chunks/calendar-workspace-a84AHQwj.js +0 -7506
- package/dist/_chunks/notes-panel-CTNpsByN.js +0 -353
|
@@ -2,8 +2,8 @@ import { jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as _, useRef as j, useEffect as k, useCallback as E, useMemo as x } from "react";
|
|
3
3
|
import { c as L } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as N } from "react-i18next";
|
|
5
|
-
import { C as O } from "./country-select-
|
|
6
|
-
import { P as B } from "./province-select-
|
|
5
|
+
import { C as O } from "./country-select-CfDNFG5c.js";
|
|
6
|
+
import { P as B } from "./province-select-BaUnkg4S.js";
|
|
7
7
|
import { P as q } from "./postal-code-input-BznBxVxf.js";
|
|
8
8
|
import { C as H } from "./city-input-DaQc-Hbj.js";
|
|
9
9
|
import { T as K } from "./text-input-CUvCb6ST.js";
|
|
@@ -243,4 +243,4 @@ export {
|
|
|
243
243
|
Z as A,
|
|
244
244
|
Y as a
|
|
245
245
|
};
|
|
246
|
-
//# sourceMappingURL=address-fields-
|
|
246
|
+
//# sourceMappingURL=address-fields-jFfjxOQR.js.map
|
|
@@ -87,6 +87,8 @@ const ua = W(
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
), j = [
|
|
90
|
+
// Interactive elements need a box to remain keyboard-focusable in browsers.
|
|
91
|
+
"ds:inline-flex ds:min-w-0",
|
|
90
92
|
"ds:focus-visible:outline-none",
|
|
91
93
|
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-md)]",
|
|
92
94
|
"ds:after:pointer-events-auto",
|
|
@@ -110,7 +112,7 @@ const ua = W(
|
|
|
110
112
|
className: U,
|
|
111
113
|
...D
|
|
112
114
|
}, $) => {
|
|
113
|
-
var C, k,
|
|
115
|
+
var C, k, w, T, z, R, S, I, L, V, O, P, M;
|
|
114
116
|
const { t: s } = Y(), l = !!n, B = !!a.url && X(a.url), p = ((C = a.patient) == null ? void 0 : C.name) ?? s("appointmentCard.noPatient"), t = (k = a.operator) == null ? void 0 : k.name, m = s(`appointmentCard.state.${a.state}`), h = g === "md" ? "md" : "sm", G = fa[a.type], b = d ? p : t ?? s("appointmentCard.appointment"), y = d ? s("appointmentCard.itemLabel", {
|
|
115
117
|
patient: p,
|
|
116
118
|
state: m
|
|
@@ -121,7 +123,7 @@ const ua = W(
|
|
|
121
123
|
{
|
|
122
124
|
href: a.url,
|
|
123
125
|
"aria-label": y,
|
|
124
|
-
className: j
|
|
126
|
+
className: j,
|
|
125
127
|
onClick: (e) => {
|
|
126
128
|
e.defaultPrevented || e.metaKey || e.ctrlKey || e.shiftKey || n == null || n(a);
|
|
127
129
|
},
|
|
@@ -132,7 +134,7 @@ const ua = W(
|
|
|
132
134
|
{
|
|
133
135
|
type: "button",
|
|
134
136
|
"aria-label": y,
|
|
135
|
-
className: j + " ds:
|
|
137
|
+
className: j + " ds:bg-transparent ds:border-0 ds:p-0 ds:text-start",
|
|
136
138
|
onClick: () => n == null ? void 0 : n(a),
|
|
137
139
|
children: u
|
|
138
140
|
}
|
|
@@ -153,7 +155,7 @@ const ua = W(
|
|
|
153
155
|
},
|
|
154
156
|
`${e.careName}-${K}`
|
|
155
157
|
);
|
|
156
|
-
}), f = (
|
|
158
|
+
}), f = (w = a.bookingReason) == null ? void 0 : w.advanceAmountCents, N = typeof f == "number" && f > 0;
|
|
157
159
|
return /* @__PURE__ */ o(
|
|
158
160
|
"div",
|
|
159
161
|
{
|
|
@@ -194,7 +196,7 @@ const ua = W(
|
|
|
194
196
|
_,
|
|
195
197
|
{
|
|
196
198
|
name: t,
|
|
197
|
-
color: ra((
|
|
199
|
+
color: ra((T = a.operator) == null ? void 0 : T.colorId),
|
|
198
200
|
size: h,
|
|
199
201
|
"aria-hidden": "true",
|
|
200
202
|
role: "presentation",
|
|
@@ -291,4 +293,4 @@ ga.displayName = "AppointmentCard";
|
|
|
291
293
|
export {
|
|
292
294
|
ga as A
|
|
293
295
|
};
|
|
294
|
-
//# sourceMappingURL=appointment-card-
|
|
296
|
+
//# sourceMappingURL=appointment-card-CvUFFEdS.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as S, jsx as o, Fragment as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as be, useId as Te, useMemo as F, useRef as T, useState as Z, useCallback as x, useImperativeHandle as xe } from "react";
|
|
3
3
|
import { c as De } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as we } from "react-i18next";
|
|
5
|
-
import { A as Re } from "./appointment-card-
|
|
5
|
+
import { A as Re } from "./appointment-card-CvUFFEdS.js";
|
|
6
6
|
import { B as A } from "./button-nJaPh_HC.js";
|
|
7
7
|
import { B as Ie } from "./button-group-CaxRJsNG.js";
|
|
8
8
|
import { D as Se } from "./date-picker-B6NW_PS5.js";
|
|
@@ -400,4 +400,4 @@ export {
|
|
|
400
400
|
Ae as A,
|
|
401
401
|
_e as a
|
|
402
402
|
};
|
|
403
|
-
//# sourceMappingURL=appointment-timeline-
|
|
403
|
+
//# sourceMappingURL=appointment-timeline-DsMZY7U9.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as H } from "react-i18next";
|
|
|
5
5
|
import { I as M } from "./icon-button-DA2CAGHZ.js";
|
|
6
6
|
import { S as q } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as K } from "./empty-state-X0sVPfVo.js";
|
|
8
|
-
import { A as V } from "./appointment-card-
|
|
8
|
+
import { A as V } from "./appointment-card-CvUFFEdS.js";
|
|
9
9
|
import { u as _ } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { C as B } from "./calendar-days-BGWklvE-.js";
|
|
11
11
|
import { P as D } from "./plus-DzMQ_c6b.js";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
ae as a,
|
|
191
191
|
L as b
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=appointment-tray-
|
|
193
|
+
//# sourceMappingURL=appointment-tray-Z2GaOIYQ.js.map
|
|
@@ -17,7 +17,7 @@ import { S as ls } from "./spinner-hbwuKwMf.js";
|
|
|
17
17
|
import { B as Mt } from "./badge-sTusUqZD.js";
|
|
18
18
|
import { I as bt } from "./icon-button-DA2CAGHZ.js";
|
|
19
19
|
import { S as Je } from "./select-Bi8zril7.js";
|
|
20
|
-
import { C as ot } from "./combobox-
|
|
20
|
+
import { C as ot } from "./combobox-DnSdYssy.js";
|
|
21
21
|
import { M as dt } from "./multi-select-DYOvx2SJ.js";
|
|
22
22
|
import { S as Ge } from "./skeleton-CZbwyJAA.js";
|
|
23
23
|
import { E as Dt } from "./empty-state-X0sVPfVo.js";
|
|
@@ -2995,4 +2995,4 @@ export {
|
|
|
2995
2995
|
q as O,
|
|
2996
2996
|
Zs as b
|
|
2997
2997
|
};
|
|
2998
|
-
//# sourceMappingURL=booking-
|
|
2998
|
+
//# sourceMappingURL=booking-jGzRUETo.js.map
|