@alfadocs/ui-kit 1.23.0 → 1.25.1-calendar.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/{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/{calendar-BQPyUUPP.js → calendar-CBqU-UIR.js} +241 -226
- package/dist/_chunks/calendar-workspace-tm_Xrkrn.js +7606 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +15 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/index.js +5 -5
- package/dist/patterns/calendar/calendar-workspace.d.ts +31 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +1 -3
- package/dist/patterns/calendar/calendar.model.d.ts +2 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +20 -3
- package/dist/patterns/calendar/calendar.surface.d.ts +3 -1
- package/dist/patterns/calendar/index.d.ts +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +3 -2
- package/dist/_chunks/calendar-workspace-ax7xmSAp.js +0 -7474
|
@@ -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
|