@alfadocs/ui-kit 1.49.2 → 1.50.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-peek-Dk11UOVW.js +123 -0
- package/dist/_chunks/calendar-event-card-DplPh1wv.js +600 -0
- package/dist/_chunks/{calendar-workspace-iwyXajja.js → calendar-workspace-CWRH4x15.js} +3937 -3829
- package/dist/_chunks/{calendar-Bt44KMNO.js → calendar-zpE9qTM4.js} +437 -399
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/appointment-peek/appointment-peek.d.ts +2 -0
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/calendar/calendar.d.ts +15 -0
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +46 -4
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +12 -0
- package/dist/i18n/locales/ar.js +12 -0
- package/dist/i18n/locales/de.d.ts +12 -0
- package/dist/i18n/locales/de.js +12 -0
- package/dist/i18n/locales/el.d.ts +12 -0
- package/dist/i18n/locales/el.js +12 -0
- package/dist/i18n/locales/en.d.ts +12 -0
- package/dist/i18n/locales/en.js +12 -0
- package/dist/i18n/locales/es.d.ts +12 -0
- package/dist/i18n/locales/es.js +12 -0
- package/dist/i18n/locales/fr.d.ts +12 -0
- package/dist/i18n/locales/fr.js +12 -0
- package/dist/i18n/locales/hi.d.ts +12 -0
- package/dist/i18n/locales/hi.js +12 -0
- package/dist/i18n/locales/it.d.ts +12 -0
- package/dist/i18n/locales/it.js +12 -0
- package/dist/i18n/locales/ja.d.ts +12 -0
- package/dist/i18n/locales/ja.js +12 -0
- package/dist/i18n/locales/nl.d.ts +12 -0
- package/dist/i18n/locales/nl.js +12 -0
- package/dist/i18n/locales/pl.d.ts +12 -0
- package/dist/i18n/locales/pl.js +12 -0
- package/dist/i18n/locales/pt.d.ts +12 -0
- package/dist/i18n/locales/pt.js +12 -0
- package/dist/i18n/locales/ro.d.ts +12 -0
- package/dist/i18n/locales/ro.js +12 -0
- package/dist/i18n/locales/ru.d.ts +12 -0
- package/dist/i18n/locales/ru.js +12 -0
- package/dist/i18n/locales/sq.d.ts +12 -0
- package/dist/i18n/locales/sq.js +12 -0
- package/dist/i18n/locales/sv.d.ts +12 -0
- package/dist/i18n/locales/sv.js +12 -0
- package/dist/i18n/locales/tr.d.ts +12 -0
- package/dist/i18n/locales/tr.js +12 -0
- package/dist/i18n/locales/zh.d.ts +12 -0
- package/dist/i18n/locales/zh.js +12 -0
- package/dist/index.js +4 -4
- package/dist/locales/ar.json +12 -0
- package/dist/locales/de.json +12 -0
- package/dist/locales/el.json +12 -0
- package/dist/locales/en.json +12 -0
- package/dist/locales/es.json +12 -0
- package/dist/locales/fr.json +12 -0
- package/dist/locales/hi.json +12 -0
- package/dist/locales/it.json +12 -0
- package/dist/locales/ja.json +12 -0
- package/dist/locales/nl.json +12 -0
- package/dist/locales/pl.json +12 -0
- package/dist/locales/pt.json +12 -0
- package/dist/locales/ro.json +12 -0
- package/dist/locales/ru.json +12 -0
- package/dist/locales/sq.json +12 -0
- package/dist/locales/sv.json +12 -0
- package/dist/locales/tr.json +12 -0
- package/dist/locales/zh.json +12 -0
- package/dist/patterns/calendar/calendar.model.d.ts +7 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +45 -42
- package/package.json +1 -1
- package/dist/_chunks/appointment-peek-BDiCIBb-.js +0 -115
- package/dist/_chunks/calendar-event-card-BUbKBPv_.js +0 -403
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, isValidElement as D } from "react";
|
|
3
|
+
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as y } from "react-i18next";
|
|
5
|
+
import { A as z } from "./avatar-BVvjKNTp.js";
|
|
6
|
+
import { D as l } from "./description-list-1A2DEbE6.js";
|
|
7
|
+
import { H as E } from "./hover-card-BplP5SzQ.js";
|
|
8
|
+
import { a as H } from "./workflow-status-ClHfz4Kr.js";
|
|
9
|
+
import { C as I } from "./clock-Drd4Wtis.js";
|
|
10
|
+
import { V as S } from "./video-BheNGvsu.js";
|
|
11
|
+
import { A as W } from "./armchair-BaLDW6Hz.js";
|
|
12
|
+
import { E as j } from "./eye-off-C_4xkbRP.js";
|
|
13
|
+
import { a as L } from "./entity-card-D1Yrh9wf.js";
|
|
14
|
+
const R = V(
|
|
15
|
+
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
16
|
+
), T = P(
|
|
17
|
+
({
|
|
18
|
+
name: t,
|
|
19
|
+
avatarSrc: h,
|
|
20
|
+
time: u,
|
|
21
|
+
location: m,
|
|
22
|
+
telehealth: x = !1,
|
|
23
|
+
status: s,
|
|
24
|
+
statusLabel: k,
|
|
25
|
+
details: d,
|
|
26
|
+
treatment: p,
|
|
27
|
+
flags: f,
|
|
28
|
+
privacy: r = !1,
|
|
29
|
+
className: N,
|
|
30
|
+
...g
|
|
31
|
+
}, w) => {
|
|
32
|
+
const { t: i } = y(), n = s ? L(s) : null, v = n == null ? void 0 : n.Icon, b = x ? S : W, c = !r, A = [
|
|
33
|
+
{ icon: /* @__PURE__ */ e(I, {}), label: i("appointmentPeek.time"), value: u },
|
|
34
|
+
...m ? [
|
|
35
|
+
{
|
|
36
|
+
icon: /* @__PURE__ */ e(b, {}),
|
|
37
|
+
label: i("appointmentPeek.location"),
|
|
38
|
+
value: m
|
|
39
|
+
}
|
|
40
|
+
] : [],
|
|
41
|
+
...c && p ? [
|
|
42
|
+
{
|
|
43
|
+
icon: null,
|
|
44
|
+
label: i("calendarWorkspace.details.care"),
|
|
45
|
+
value: p
|
|
46
|
+
}
|
|
47
|
+
] : [],
|
|
48
|
+
...c && d ? d.map((a) => ({
|
|
49
|
+
icon: D(a.icon) ? a.icon : null,
|
|
50
|
+
label: a.label,
|
|
51
|
+
value: a.value
|
|
52
|
+
})) : []
|
|
53
|
+
];
|
|
54
|
+
return /* @__PURE__ */ o(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
ref: w,
|
|
58
|
+
"data-component": "appointment-peek",
|
|
59
|
+
"data-status": s,
|
|
60
|
+
className: R({ className: N }),
|
|
61
|
+
...g,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
64
|
+
r ? null : /* @__PURE__ */ e(
|
|
65
|
+
z,
|
|
66
|
+
{
|
|
67
|
+
size: "sm",
|
|
68
|
+
name: t,
|
|
69
|
+
src: h,
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
className: "ds:shrink-0"
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
75
|
+
/* @__PURE__ */ e(E.Heading, { className: "ds:min-w-0", children: r ? /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
76
|
+
/* @__PURE__ */ e(
|
|
77
|
+
j,
|
|
78
|
+
{
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: "ds:size-4 ds:shrink-0"
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
i("appointmentPeek.hiddenName")
|
|
84
|
+
] }) : t }),
|
|
85
|
+
c && f ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
86
|
+
] })
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ e(
|
|
89
|
+
l,
|
|
90
|
+
{
|
|
91
|
+
layout: "inline",
|
|
92
|
+
density: "compact",
|
|
93
|
+
divider: "none",
|
|
94
|
+
className: "ds:[--description-list-icon-color:var(--accent)]",
|
|
95
|
+
children: A.map((a, C) => /* @__PURE__ */ o(l.Row, { icon: a.icon, children: [
|
|
96
|
+
/* @__PURE__ */ e(l.Term, { children: a.label }),
|
|
97
|
+
/* @__PURE__ */ e(l.Detail, { children: a.value })
|
|
98
|
+
] }, C))
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
s && n && v ? /* @__PURE__ */ e("div", { "data-slot": "workflow", children: /* @__PURE__ */ e(
|
|
102
|
+
H,
|
|
103
|
+
{
|
|
104
|
+
size: "sm",
|
|
105
|
+
value: s,
|
|
106
|
+
option: {
|
|
107
|
+
value: s,
|
|
108
|
+
label: k ?? i(`appointmentCard.state.${s}`),
|
|
109
|
+
icon: /* @__PURE__ */ e(v, { "aria-hidden": "true" }),
|
|
110
|
+
tone: n.tone
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
) }) : null
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
T.displayName = "AppointmentPeek";
|
|
120
|
+
export {
|
|
121
|
+
T as A
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=appointment-peek-Dk11UOVW.js.map
|