@alfadocs/ui-kit 0.78.0 → 0.80.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/{alia-sidebar-w6B0TEx7.js → alia-sidebar-DzNz1gDf.js} +2 -2
- package/dist/_chunks/calendar-4dXTvsCz.js +1136 -0
- package/dist/_chunks/calendar-event-card-C6qGtywL.js +257 -0
- package/dist/_chunks/{chat-input-BTCDqUDX.js → chat-input-QpHxBEnN.js} +32 -31
- package/dist/_chunks/{fiscal-code-input-DWA6C8x8.js → fiscal-code-input-QP9gkyDE.js} +2 -2
- package/dist/_chunks/{patient-details-zy76MRh7.js → patient-details-COvYWp2e.js} +2 -2
- package/dist/_chunks/signature-request-CEOrCDyk.js +341 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/contrast-warning.d.ts +46 -0
- package/dist/components/calendar/calendar.d.ts +284 -7
- package/dist/components/calendar/index.d.ts +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +103 -0
- package/dist/components/calendar-event-card/index.d.ts +3 -0
- package/dist/components/calendar-event-card/index.js +5 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/index.js +252 -250
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/signature-request.d.ts +7 -0
- package/dist/tokens.css +8 -5
- package/package.json +5 -1
- package/dist/_chunks/calendar-DeAlFPsF.js +0 -1050
- package/dist/_chunks/signature-request-C-mskXwi.js +0 -318
- package/dist/components/calendar/contrast-warning.d.ts +0 -20
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H } from "react";
|
|
3
|
+
import { useTranslation as T } from "react-i18next";
|
|
4
|
+
import { c as h } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { c as d } from "./createLucideIcon-DhHxpK9K.js";
|
|
6
|
+
import { C as V } from "./check-DrFSN__t.js";
|
|
7
|
+
import { S as $ } from "./stethoscope-sZXGC43m.js";
|
|
8
|
+
import { C as O } from "./clock-Drd4Wtis.js";
|
|
9
|
+
import { G as C } from "./globe-sHBW1JN5.js";
|
|
10
|
+
import { T as U } from "./triangle-alert-CBnO6nq_.js";
|
|
11
|
+
import { H as q } from "./heart-pulse-BCppJyN2.js";
|
|
12
|
+
import { V as B } from "./video-BheNGvsu.js";
|
|
13
|
+
/**
|
|
14
|
+
* @license lucide-react v1.22.0 - ISC
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the ISC license.
|
|
17
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/
|
|
19
|
+
const G = [
|
|
20
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
21
|
+
["path", { d: "M4.929 4.929 19.07 19.071", key: "196cmz" }]
|
|
22
|
+
], Z = d("ban", G);
|
|
23
|
+
/**
|
|
24
|
+
* @license lucide-react v1.22.0 - ISC
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the ISC license.
|
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/
|
|
29
|
+
const K = [
|
|
30
|
+
["path", { d: "M4 10h12", key: "1y6xl8" }],
|
|
31
|
+
["path", { d: "M4 14h9", key: "1loblj" }],
|
|
32
|
+
[
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M19 6a7.7 7.7 0 0 0-5.2-2A7.9 7.9 0 0 0 6 12c0 4.4 3.5 8 7.8 8 2 0 3.8-.8 5.2-2",
|
|
36
|
+
key: "1j6lzo"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
], P = d("euro", K);
|
|
40
|
+
/**
|
|
41
|
+
* @license lucide-react v1.22.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/
|
|
46
|
+
const R = [
|
|
47
|
+
[
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
d: "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",
|
|
51
|
+
key: "emmmcr"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
["path", { d: "M7 10v12", key: "1qc93n" }]
|
|
55
|
+
], W = d("thumbs-up", R);
|
|
56
|
+
/**
|
|
57
|
+
* @license lucide-react v1.22.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/
|
|
62
|
+
const Y = [
|
|
63
|
+
[
|
|
64
|
+
"path",
|
|
65
|
+
{
|
|
66
|
+
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
67
|
+
key: "1xq2db"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
], D = d("zap", Y);
|
|
71
|
+
function F(t) {
|
|
72
|
+
if (typeof t != "string") return null;
|
|
73
|
+
const n = t.trim();
|
|
74
|
+
if (!n.startsWith("#")) return null;
|
|
75
|
+
const e = n.slice(1);
|
|
76
|
+
let s, o, a;
|
|
77
|
+
if (e.length === 3) {
|
|
78
|
+
if (!/^[0-9a-f]{3}$/i.test(e)) return null;
|
|
79
|
+
s = parseInt(e[0] + e[0], 16), o = parseInt(e[1] + e[1], 16), a = parseInt(e[2] + e[2], 16);
|
|
80
|
+
} else if (e.length === 6) {
|
|
81
|
+
if (!/^[0-9a-f]{6}$/i.test(e)) return null;
|
|
82
|
+
s = parseInt(e.slice(0, 2), 16), o = parseInt(e.slice(2, 4), 16), a = parseInt(e.slice(4, 6), 16);
|
|
83
|
+
} else
|
|
84
|
+
return null;
|
|
85
|
+
return [s / 255, o / 255, a / 255];
|
|
86
|
+
}
|
|
87
|
+
function J([t, n, e]) {
|
|
88
|
+
const s = (o) => o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
|
|
89
|
+
return 0.2126 * s(t) + 0.7152 * s(n) + 0.0722 * s(e);
|
|
90
|
+
}
|
|
91
|
+
function ge(t, n, e) {
|
|
92
|
+
}
|
|
93
|
+
function Q(t) {
|
|
94
|
+
const n = F(t);
|
|
95
|
+
return n ? J(n) > 0.1791 ? "on-light" : "on-dark" : null;
|
|
96
|
+
}
|
|
97
|
+
const X = {
|
|
98
|
+
confirmed: W,
|
|
99
|
+
waiting: O,
|
|
100
|
+
in_care: $,
|
|
101
|
+
done: V,
|
|
102
|
+
cancelled: Z,
|
|
103
|
+
absent: D
|
|
104
|
+
}, ee = {
|
|
105
|
+
confirmed: "calendar.status.confirmed",
|
|
106
|
+
waiting: "calendar.status.waiting",
|
|
107
|
+
in_care: "calendar.status.inCare",
|
|
108
|
+
done: "calendar.status.done",
|
|
109
|
+
cancelled: "calendar.status.cancelled",
|
|
110
|
+
absent: "calendar.status.absent"
|
|
111
|
+
}, ae = h(
|
|
112
|
+
[
|
|
113
|
+
// layout — verbatim from the Calendar's former eventCardVariants base,
|
|
114
|
+
// plus ds:relative for the accent bar's positioning context
|
|
115
|
+
"ds:relative ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]",
|
|
116
|
+
"ds:w-full ds:h-full",
|
|
117
|
+
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
118
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
119
|
+
"ds:text-[length:var(--font-size-sm)]",
|
|
120
|
+
"ds:font-[var(--font-weight-medium)]",
|
|
121
|
+
"ds:overflow-hidden",
|
|
122
|
+
// kept verbatim from the former base (inert on a non-focusable div
|
|
123
|
+
// inside FC; harmless)
|
|
124
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)]",
|
|
125
|
+
"ds:focus-visible:outline-[var(--ring)]",
|
|
126
|
+
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
127
|
+
// SINGLE PAINTED SURFACE — always present, never conditional. One
|
|
128
|
+
// declaration per paint channel; value chain = "caller custom prop,
|
|
129
|
+
// else token". This structurally eliminates the CVA-vs-override
|
|
130
|
+
// specificity race (the old double-paint bug) — stylesheet order
|
|
131
|
+
// becomes irrelevant.
|
|
132
|
+
"ds:[background-color:var(--calendar-event-bg,var(--primary))]",
|
|
133
|
+
"ds:[color:var(--calendar-event-text,var(--primary-foreground))]",
|
|
134
|
+
"ds:border ds:[border-color:var(--calendar-event-border,transparent)]"
|
|
135
|
+
].join(" "),
|
|
136
|
+
{
|
|
137
|
+
variants: {
|
|
138
|
+
// Do not add colour classes to this axis — status is icon + accent
|
|
139
|
+
// + aria only; a unit test asserts identical computed background
|
|
140
|
+
// across all six statuses.
|
|
141
|
+
status: {
|
|
142
|
+
none: "",
|
|
143
|
+
confirmed: "",
|
|
144
|
+
waiting: "",
|
|
145
|
+
in_care: "",
|
|
146
|
+
done: "",
|
|
147
|
+
cancelled: "ds:line-through",
|
|
148
|
+
absent: ""
|
|
149
|
+
},
|
|
150
|
+
bookedOnline: {
|
|
151
|
+
// class name kept as a stable inert DOM hook; the stripe paint
|
|
152
|
+
// lives here (moved from fullcalendar-theme.css) so it works in
|
|
153
|
+
// the card's own stories, outside .fc-theme-alfadocs.
|
|
154
|
+
// currentcolor = resolved ink, so stripes stay visible over any
|
|
155
|
+
// picker colour.
|
|
156
|
+
true: "event-booked-online ds:bg-[image:repeating-linear-gradient(45deg,transparent,transparent_4px,color-mix(in_srgb,currentcolor_10%,transparent)_4px,color-mix(in_srgb,currentcolor_10%,transparent)_8px)]",
|
|
157
|
+
false: ""
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
defaultVariants: { status: "none", bookedOnline: !1 }
|
|
161
|
+
}
|
|
162
|
+
), ne = h(
|
|
163
|
+
"ds:absolute ds:inset-y-0 ds:start-0 ds:w-[3px]",
|
|
164
|
+
{
|
|
165
|
+
variants: {
|
|
166
|
+
status: {
|
|
167
|
+
confirmed: "ds:[background-color:var(--success)]",
|
|
168
|
+
waiting: "ds:[background-color:var(--info)]",
|
|
169
|
+
in_care: "ds:[background-color:var(--primary)]",
|
|
170
|
+
done: "ds:[background-color:var(--success)]",
|
|
171
|
+
cancelled: "ds:[background-color:var(--destructive)]",
|
|
172
|
+
absent: "ds:[background-color:var(--warning)]"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
), te = H(
|
|
177
|
+
({
|
|
178
|
+
title: t,
|
|
179
|
+
suffix: n,
|
|
180
|
+
rangeText: e,
|
|
181
|
+
showTime: s = !0,
|
|
182
|
+
allDay: o = !1,
|
|
183
|
+
status: a,
|
|
184
|
+
statusAccent: b = !0,
|
|
185
|
+
backgroundColor: i,
|
|
186
|
+
textColor: l,
|
|
187
|
+
borderColor: c,
|
|
188
|
+
isBookedOnline: f = !1,
|
|
189
|
+
hasUnassignedPatient: x,
|
|
190
|
+
hasHighlightedAnamnesis: k,
|
|
191
|
+
hasBillableAmount: _,
|
|
192
|
+
isTelehealth: y,
|
|
193
|
+
resourceLabel: w,
|
|
194
|
+
eventId: z,
|
|
195
|
+
className: N,
|
|
196
|
+
style: m,
|
|
197
|
+
"aria-label": I,
|
|
198
|
+
...A
|
|
199
|
+
}, L) => {
|
|
200
|
+
const { t: S } = T(), p = a ? X[a] : null, M = a ? S(ee[a]) : void 0, j = I ?? [t, e, w, M].filter(Boolean).join(", "), u = !l && i ? Q(i) : null, v = i || l || c ? {
|
|
201
|
+
...i ? { "--calendar-event-bg": i } : {},
|
|
202
|
+
...l ? { "--calendar-event-text": l } : u === "on-light" ? { "--calendar-event-text": "var(--event-ink-on-light)" } : u === "on-dark" ? { "--calendar-event-text": "var(--event-ink-on-dark)" } : {},
|
|
203
|
+
...c ? { "--calendar-event-border": c } : {}
|
|
204
|
+
} : void 0, E = m || v ? { ...m, ...v } : void 0;
|
|
205
|
+
return /* @__PURE__ */ g(
|
|
206
|
+
"div",
|
|
207
|
+
{
|
|
208
|
+
ref: L,
|
|
209
|
+
...A,
|
|
210
|
+
className: ae({
|
|
211
|
+
status: a ?? "none",
|
|
212
|
+
bookedOnline: f,
|
|
213
|
+
className: N
|
|
214
|
+
}),
|
|
215
|
+
style: E,
|
|
216
|
+
"aria-label": j,
|
|
217
|
+
"data-component": "calendar-event-card",
|
|
218
|
+
"data-event-id": z,
|
|
219
|
+
"data-status": a ?? "none",
|
|
220
|
+
"data-contrast": l ? "custom" : u ?? "default",
|
|
221
|
+
children: [
|
|
222
|
+
a && b ? /* @__PURE__ */ r(
|
|
223
|
+
"span",
|
|
224
|
+
{
|
|
225
|
+
"aria-hidden": "true",
|
|
226
|
+
"data-slot": "status-accent",
|
|
227
|
+
className: ne({ status: a })
|
|
228
|
+
}
|
|
229
|
+
) : null,
|
|
230
|
+
/* @__PURE__ */ g("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:self-end", children: [
|
|
231
|
+
p ? /* @__PURE__ */ r(p, { size: 14, "aria-hidden": "true" }) : null,
|
|
232
|
+
f ? /* @__PURE__ */ r(C, { size: 12, "aria-hidden": "true" }) : null,
|
|
233
|
+
x ? /* @__PURE__ */ r(U, { size: 12, "aria-hidden": "true" }) : null,
|
|
234
|
+
k ? /* @__PURE__ */ r(q, { size: 12, "aria-hidden": "true" }) : null,
|
|
235
|
+
_ ? /* @__PURE__ */ r(P, { size: 12, "aria-hidden": "true" }) : null,
|
|
236
|
+
y ? /* @__PURE__ */ r(B, { size: 12, "aria-hidden": "true" }) : null
|
|
237
|
+
] }),
|
|
238
|
+
s && !o && e ? (
|
|
239
|
+
// No opacity here — composing 70% over saturated bgs drops
|
|
240
|
+
// effective contrast below WCAG AA. The smaller font-size-xs vs
|
|
241
|
+
// the title's font-weight-semibold provides sufficient visual
|
|
242
|
+
// hierarchy.
|
|
243
|
+
/* @__PURE__ */ r("span", { className: "ds:text-[length:var(--font-size-xs)]", children: e })
|
|
244
|
+
) : null,
|
|
245
|
+
/* @__PURE__ */ r("span", { className: "ds:font-[var(--font-weight-semibold)] ds:truncate ds:text-start", children: t }),
|
|
246
|
+
n ? /* @__PURE__ */ r("span", { className: "ds:truncate ds:text-start ds:text-[length:var(--font-size-xs)]", children: n }) : null
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
te.displayName = "CalendarEventCard";
|
|
253
|
+
export {
|
|
254
|
+
te as C,
|
|
255
|
+
ge as w
|
|
256
|
+
};
|
|
257
|
+
//# sourceMappingURL=calendar-event-card-C6qGtywL.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, jsx as i, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as ve, useId as ye, useRef as
|
|
2
|
+
import { forwardRef as ve, useId as ye, useRef as w, useCallback as W, useImperativeHandle as be, useMemo as xe } from "react";
|
|
3
3
|
import { c as Ie } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ke } from "react-i18next";
|
|
5
5
|
import { I as q } from "./icon-button-C_kbcd7I.js";
|
|
@@ -132,9 +132,9 @@ function Me(t, n) {
|
|
|
132
132
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
133
133
|
try {
|
|
134
134
|
const l = new Intl.Segmenter(n, { granularity: "grapheme" });
|
|
135
|
-
let
|
|
136
|
-
for (const y of l.segment(t))
|
|
137
|
-
return
|
|
135
|
+
let r = 0;
|
|
136
|
+
for (const y of l.segment(t)) r += 1;
|
|
137
|
+
return r;
|
|
138
138
|
} catch {
|
|
139
139
|
}
|
|
140
140
|
return Array.from(t).length;
|
|
@@ -149,15 +149,15 @@ function Fe(t, n, l) {
|
|
|
149
149
|
return d.length === t.length ? t : d;
|
|
150
150
|
} catch {
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
return
|
|
152
|
+
const r = Array.from(t);
|
|
153
|
+
return r.length <= n ? t : r.slice(0, n).join("");
|
|
154
154
|
}
|
|
155
155
|
const Ke = ve(
|
|
156
156
|
({
|
|
157
157
|
size: t = "md",
|
|
158
158
|
value: n,
|
|
159
159
|
defaultValue: l,
|
|
160
|
-
maxLength:
|
|
160
|
+
maxLength: r,
|
|
161
161
|
submitOnEnter: y = !1,
|
|
162
162
|
minRows: o = 1,
|
|
163
163
|
maxRows: d = 8,
|
|
@@ -169,22 +169,22 @@ const Ke = ve(
|
|
|
169
169
|
label: T,
|
|
170
170
|
placeholder: U,
|
|
171
171
|
className: Y,
|
|
172
|
-
onChange:
|
|
173
|
-
onKeyDown:
|
|
174
|
-
onCompositionStart:
|
|
175
|
-
onCompositionEnd:
|
|
176
|
-
id:
|
|
172
|
+
onChange: C,
|
|
173
|
+
onKeyDown: N,
|
|
174
|
+
onCompositionStart: V,
|
|
175
|
+
onCompositionEnd: j,
|
|
176
|
+
id: z,
|
|
177
177
|
...J
|
|
178
178
|
}, L) => {
|
|
179
|
-
const { t: c, i18n: E } = ke(), O = ye(), p =
|
|
180
|
-
|
|
179
|
+
const { t: c, i18n: E } = ke(), O = ye(), p = w(!1), M = w(null), I = w(null), Q = W((e) => {
|
|
180
|
+
I.current = e;
|
|
181
181
|
}, []), [X, m] = we({
|
|
182
182
|
value: n === void 0 ? void 0 : String(n),
|
|
183
183
|
defaultValue: String(l ?? "")
|
|
184
|
-
}), a = X ?? "", H = Me(a, E.language), f = typeof
|
|
185
|
-
const e =
|
|
184
|
+
}), a = X ?? "", H = Me(a, E.language), f = typeof r == "number" && r > 0, Z = f ? Math.max(0, r - H) : 0, D = f && H > r * 0.9, h = f && H >= r, F = W(() => {
|
|
185
|
+
const e = I.current;
|
|
186
186
|
if (!e) return;
|
|
187
|
-
const
|
|
187
|
+
const s = window.getComputedStyle(e), k = parseFloat(s.lineHeight) || 24, de = parseFloat(s.paddingTop) || 0, ue = parseFloat(s.paddingBottom) || 0, pe = parseFloat(s.borderTopWidth) || 0, me = parseFloat(s.borderBottomWidth) || 0, _ = de + ue + pe + me, fe = k * o + _, $ = k * d + _;
|
|
188
188
|
e.style.height = "auto";
|
|
189
189
|
const he = Math.max(fe, Math.min(e.scrollHeight, $));
|
|
190
190
|
e.style.height = `${he}px`, e.style.overflowY = e.scrollHeight > $ ? "auto" : "hidden";
|
|
@@ -193,15 +193,16 @@ const Ke = ve(
|
|
|
193
193
|
F();
|
|
194
194
|
}, [F, a]);
|
|
195
195
|
const ee = (e) => {
|
|
196
|
-
let
|
|
197
|
-
f && !p.current && (
|
|
196
|
+
let s = e.target.value;
|
|
197
|
+
f && !p.current && (s = Fe(s, r, E.language)), m(s), !p.current && (C == null || C(e));
|
|
198
198
|
}, te = (e) => {
|
|
199
|
-
p.current = !0,
|
|
199
|
+
p.current = !0, V == null || V(e);
|
|
200
200
|
}, se = (e) => {
|
|
201
|
-
p.current = !1,
|
|
201
|
+
p.current = !1, j == null || j(e);
|
|
202
202
|
}, re = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || p.current, S = () => {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
var s;
|
|
204
|
+
!a.trim() || x || h || (u == null || u(a), m(""), (s = I.current) == null || s.focus());
|
|
205
|
+
}, K = w(null);
|
|
205
206
|
be(L, () => K.current, []);
|
|
206
207
|
const ne = xe(
|
|
207
208
|
() => ({
|
|
@@ -218,7 +219,7 @@ const Ke = ve(
|
|
|
218
219
|
},
|
|
219
220
|
focus: () => {
|
|
220
221
|
var e;
|
|
221
|
-
(e =
|
|
222
|
+
(e = I.current) == null || e.focus();
|
|
222
223
|
}
|
|
223
224
|
}),
|
|
224
225
|
// `submit` is a local closure that always sees the latest currentValue
|
|
@@ -227,24 +228,24 @@ const Ke = ve(
|
|
|
227
228
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
228
229
|
[a, m]
|
|
229
230
|
);
|
|
230
|
-
Ne(Te, ne,
|
|
231
|
+
Ne(Te, ne, z);
|
|
231
232
|
const ae = (e) => {
|
|
232
|
-
if (
|
|
233
|
-
const
|
|
234
|
-
(
|
|
233
|
+
if (N == null || N(e), !e.defaultPrevented && !re(e) && e.key === "Enter") {
|
|
234
|
+
const s = e.metaKey || e.ctrlKey, k = y && !e.shiftKey;
|
|
235
|
+
(s || k) && (e.preventDefault(), S());
|
|
235
236
|
}
|
|
236
237
|
}, ie = () => {
|
|
237
238
|
var e;
|
|
238
239
|
(e = M.current) == null || e.click();
|
|
239
240
|
}, oe = (e) => {
|
|
240
241
|
e.target.files && e.target.files.length > 0 && (b == null || b(e.target.files)), e.target.value = "";
|
|
241
|
-
}, g =
|
|
242
|
+
}, g = z ?? O, R = `${g}-label`, B = f ? `${g}-counter` : void 0, P = `${g}-hint`, ce = U ?? c("chat.input.placeholder"), le = T ?? c("chat.prompt");
|
|
242
243
|
return /* @__PURE__ */ v(
|
|
243
244
|
"div",
|
|
244
245
|
{
|
|
245
246
|
ref: K,
|
|
246
247
|
"data-component": "chat-input",
|
|
247
|
-
"data-component-id":
|
|
248
|
+
"data-component-id": z,
|
|
248
249
|
className: Ee({ size: t, className: Y }),
|
|
249
250
|
children: [
|
|
250
251
|
/* @__PURE__ */ i(
|
|
@@ -365,4 +366,4 @@ export {
|
|
|
365
366
|
Se as P,
|
|
366
367
|
Te as c
|
|
367
368
|
};
|
|
368
|
-
//# sourceMappingURL=chat-input-
|
|
369
|
+
//# sourceMappingURL=chat-input-QpHxBEnN.js.map
|
|
@@ -212,7 +212,7 @@ const pe = /* @__PURE__ */ new Set(["A", "E", "I", "O", "U"]), ft = [
|
|
|
212
212
|
"T"
|
|
213
213
|
];
|
|
214
214
|
function me(e) {
|
|
215
|
-
return e.normalize("NFD").replace(/[
|
|
215
|
+
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().replace(/[^A-Z]/g, "");
|
|
216
216
|
}
|
|
217
217
|
function he(e) {
|
|
218
218
|
return [...e].filter((t) => !pe.has(t)).join("");
|
|
@@ -550,4 +550,4 @@ export {
|
|
|
550
550
|
Ut as i,
|
|
551
551
|
vt as w
|
|
552
552
|
};
|
|
553
|
-
//# sourceMappingURL=fiscal-code-input-
|
|
553
|
+
//# sourceMappingURL=fiscal-code-input-QP9gkyDE.js.map
|
|
@@ -9,7 +9,7 @@ import { C as ne, b as le, a as oe } from "./collapsible-BrnRiCC6.js";
|
|
|
9
9
|
import { D as de } from "./date-picker-DzQS8mvt.js";
|
|
10
10
|
import { D as S } from "./description-list-ClNLdRMy.js";
|
|
11
11
|
import { E as ce } from "./email-input-Dpe63k0K.js";
|
|
12
|
-
import { F as pe } from "./fiscal-code-input-
|
|
12
|
+
import { F as pe } from "./fiscal-code-input-QP9gkyDE.js";
|
|
13
13
|
import { N as ue } from "./number-input-DjWzmlEY.js";
|
|
14
14
|
import { P as me } from "./panel-header-D313n_9-.js";
|
|
15
15
|
import { P as fe } from "./phone-input-D00ZBAm-.js";
|
|
@@ -775,4 +775,4 @@ export {
|
|
|
775
775
|
Ae as P,
|
|
776
776
|
je as p
|
|
777
777
|
};
|
|
778
|
-
//# sourceMappingURL=patient-details-
|
|
778
|
+
//# sourceMappingURL=patient-details-COvYWp2e.js.map
|