@alfadocs/ui-kit 1.25.0 → 1.25.1-calendar.7
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-WXKbA69C.js → booking-B8C7jMrn.js} +2 -2
- package/dist/_chunks/{calendar-CI9MINcR.js → calendar-CBqU-UIR.js} +4 -2
- package/dist/_chunks/calendar-workspace-CDhW8tPy.js +7881 -0
- 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-CTNpsByN.js → notes-panel-D4S2VwDx.js} +2 -2
- 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/agent-catalog.json +6 -3
- package/dist/agent-i18n/en.json +2 -2
- 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/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.js +1 -1
- 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/index.js +15 -15
- package/dist/patterns/calendar/calendar-editor-hydration.d.ts +36 -0
- package/dist/patterns/calendar/calendar-patient-picker.d.ts +11 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +21 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +1 -3
- package/dist/patterns/calendar/calendar.data.d.ts +17 -0
- package/dist/patterns/calendar/calendar.journey.d.ts +3 -1
- package/dist/patterns/calendar/calendar.model.d.ts +9 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +12 -4
- package/dist/patterns/calendar/calendar.surface.d.ts +3 -1
- package/dist/patterns/calendar/index.d.ts +3 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +3 -2
- package/dist/_chunks/calendar-workspace-Dy4ZKtW0.js +0 -7506
|
@@ -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 ds } from "./spinner-hbwuKwMf.js";
|
|
|
17
17
|
import { B as Ct } from "./badge-sTusUqZD.js";
|
|
18
18
|
import { I as vt } from "./icon-button-DA2CAGHZ.js";
|
|
19
19
|
import { S as He } from "./select-Bi8zril7.js";
|
|
20
|
-
import { C as rt } from "./combobox-
|
|
20
|
+
import { C as rt } from "./combobox-DnSdYssy.js";
|
|
21
21
|
import { M as ot } from "./multi-select-DYOvx2SJ.js";
|
|
22
22
|
import { S as qe } from "./skeleton-CZbwyJAA.js";
|
|
23
23
|
import { E as Mt } from "./empty-state-X0sVPfVo.js";
|
|
@@ -2921,4 +2921,4 @@ export {
|
|
|
2921
2921
|
W as O,
|
|
2922
2922
|
Ws as b
|
|
2923
2923
|
};
|
|
2924
|
-
//# sourceMappingURL=booking-
|
|
2924
|
+
//# sourceMappingURL=booking-B8C7jMrn.js.map
|
|
@@ -630,7 +630,9 @@ const Fe = Le(
|
|
|
630
630
|
IS how they pick the slot, so it stays editable even on a
|
|
631
631
|
read-only calendar. The consumer's own `editable` still wins. */
|
|
632
632
|
...e.isDraft ? { editable: !0 } : {},
|
|
633
|
-
|
|
633
|
+
/* Scheduler separately falls back to the global editable option
|
|
634
|
+
for resource moves. A pinned event must refuse those too. */
|
|
635
|
+
...e.editable !== void 0 ? { editable: e.editable, resourceEditable: e.editable } : {},
|
|
634
636
|
...e.startEditable !== void 0 ? { startEditable: e.startEditable } : {},
|
|
635
637
|
extendedProps: {
|
|
636
638
|
status: e.status,
|
|
@@ -1262,4 +1264,4 @@ export {
|
|
|
1262
1264
|
lr as c,
|
|
1263
1265
|
pe as r
|
|
1264
1266
|
};
|
|
1265
|
-
//# sourceMappingURL=calendar-
|
|
1267
|
+
//# sourceMappingURL=calendar-CBqU-UIR.js.map
|