@alfadocs/ui-kit 0.20.0 → 0.21.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/{agenda-card-CsCm7hQv.js → agenda-card-BmpaUG1h.js} +2 -2
- package/dist/_chunks/{agenda-tray-B8QZ3wEp.js → agenda-tray-DiInnVqk.js} +2 -2
- package/dist/_chunks/{alert-DBnawbmf.js → alert-ywPR59NE.js} +14 -1
- package/dist/_chunks/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
- package/dist/_chunks/{audio-recorder-DNkQLW1G.js → audio-recorder-D4xM3H5i.js} +2 -2
- package/dist/_chunks/{avatar-I10iCDs8.js → avatar-BpFohgWG.js} +24 -16
- package/dist/_chunks/{chat-message-ChOnwqf_.js → chat-message-W3k8rLOA.js} +2 -2
- package/dist/_chunks/editable-currency-cell-renderer-1t42gENX.js +1972 -0
- package/dist/_chunks/{freemium-paywall-DXc7XlGE.js → freemium-paywall-CM6V1zNf.js} +2 -2
- package/dist/_chunks/grip-vertical-Dlg0_k5C.js +19 -0
- package/dist/_chunks/key-value-pair-DBuOCtIc.js +98 -0
- package/dist/_chunks/{message-card-c6R0-qXq.js → message-card-i61k1TGc.js} +2 -2
- package/dist/_chunks/{message-tray-BNAS8al4.js → message-tray-DrV7G-wR.js} +2 -2
- package/dist/_chunks/{patient-shell-Dr64lBp_.js → patient-shell-DavGODt9.js} +2 -2
- package/dist/_chunks/{payment-form-BjkuQeqR.js → payment-form-F7uh0Rqr.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BG_nsFT5.js → pdf-viewer-CuYaVR1I.js} +2 -2
- package/dist/_chunks/{sidebar-BqzlRBvC.js → sidebar-DkyC6GvS.js} +167 -180
- package/dist/_chunks/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
- package/dist/_chunks/{warning-stack-CDH9TudY.js → warning-stack-bDicCvxs.js} +2 -2
- package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
- package/dist/_chunks/{workflow-map-BeKe23uw.js → workflow-map-712GL-8u.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/data-table/cell-renderers/balance-cell-renderer.d.ts +37 -0
- package/dist/components/data-table/filters/date-range-filter.d.ts +12 -1
- package/dist/components/data-table/filters/select-filter.d.ts +58 -0
- package/dist/components/data-table/filters/typeahead-filter.d.ts +52 -0
- package/dist/components/data-table/index.d.ts +5 -1
- package/dist/components/data-table/index.js +23 -18
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/key-value-pair/key-value-pair.d.ts +19 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/config.js +34 -4
- package/dist/i18n/resources.d.ts +30 -0
- package/dist/index.js +399 -394
- package/dist/locales/de.json +10 -0
- package/dist/locales/en.json +10 -0
- package/dist/locales/it.json +10 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +1 -1
- package/dist/_chunks/editable-currency-cell-renderer-CqMs0Y8L.js +0 -1590
- package/dist/_chunks/key-value-pair-AbrRwesr.js +0 -76
|
@@ -8,7 +8,7 @@ import { u as X } from "./use-controllable-state-BiY4xTzM.js";
|
|
|
8
8
|
import { u as Y } from "./registry-C9nwlNyL.js";
|
|
9
9
|
import { B as R } from "./button-DD_0Xdmr.js";
|
|
10
10
|
import { P as Z } from "./progress-B-PSO5OS.js";
|
|
11
|
-
import { f as $ } from "./payment-form-
|
|
11
|
+
import { f as $ } from "./payment-form-F7uh0Rqr.js";
|
|
12
12
|
import { T as ee } from "./triangle-alert-CBPUIzQo.js";
|
|
13
13
|
import { C as se } from "./check-DPdL_Sm7.js";
|
|
14
14
|
const ae = {
|
|
@@ -265,4 +265,4 @@ export {
|
|
|
265
265
|
te as F,
|
|
266
266
|
ae as f
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=freemium-paywall-
|
|
268
|
+
//# sourceMappingURL=freemium-paywall-CM6V1zNf.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const e = [
|
|
9
|
+
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
10
|
+
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
11
|
+
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
12
|
+
["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
|
|
13
|
+
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
14
|
+
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
15
|
+
], i = c("grip-vertical", e);
|
|
16
|
+
export {
|
|
17
|
+
i as G
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=grip-vertical-Dlg0_k5C.js.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs as t, Fragment as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as z, useState as f, useCallback as b } from "react";
|
|
3
|
+
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as I } from "react-i18next";
|
|
5
|
+
import { I as T } from "./icon-button-C4CGcYuz.js";
|
|
6
|
+
import { C as j } from "./check-DPdL_Sm7.js";
|
|
7
|
+
import { C as K } from "./copy-B00HK7tj.js";
|
|
8
|
+
const A = P("ds:flex", {
|
|
9
|
+
variants: {
|
|
10
|
+
layout: {
|
|
11
|
+
horizontal: "ds:flex-row ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
12
|
+
vertical: "ds:flex-col ds:gap-[var(--spacing-xs)]"
|
|
13
|
+
},
|
|
14
|
+
/** Internal — flips the root to a horizontal flex when an icon
|
|
15
|
+
is present so the icon can sit at the leading edge of both
|
|
16
|
+
horizontal and vertical inner stacks. `items-start` keeps the
|
|
17
|
+
icon anchored to the label row even when the value wraps. */
|
|
18
|
+
hasIcon: {
|
|
19
|
+
true: "ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
20
|
+
false: ""
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
layout: "horizontal",
|
|
25
|
+
hasIcon: !1
|
|
26
|
+
}
|
|
27
|
+
}), B = z(
|
|
28
|
+
({
|
|
29
|
+
label: l,
|
|
30
|
+
value: o,
|
|
31
|
+
layout: n = "horizontal",
|
|
32
|
+
mono: u = !1,
|
|
33
|
+
copyable: h = !1,
|
|
34
|
+
copyText: y,
|
|
35
|
+
icon: r,
|
|
36
|
+
className: x,
|
|
37
|
+
...v
|
|
38
|
+
}, g) => {
|
|
39
|
+
const { t: a } = I(), [k, d] = f(!1), [C, e] = f(""), i = y ?? (typeof o == "string" ? o : void 0), w = b(async () => {
|
|
40
|
+
if (i)
|
|
41
|
+
try {
|
|
42
|
+
await navigator.clipboard.writeText(i), d(!0), e(a("keyValuePair.copied")), setTimeout(() => {
|
|
43
|
+
d(!1), e("");
|
|
44
|
+
}, 2e3);
|
|
45
|
+
} catch {
|
|
46
|
+
e(a("keyValuePair.notAvailable")), setTimeout(() => e(""), 3e3);
|
|
47
|
+
}
|
|
48
|
+
}, [i, a]), N = [
|
|
49
|
+
"type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
|
|
50
|
+
u ? "ds:font-[family-name:var(--font-mono)]" : ""
|
|
51
|
+
].filter(Boolean).join(" "), c = r != null, V = n === "horizontal" ? "ds:flex ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)] ds:min-w-0 ds:flex-1" : "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", m = /* @__PURE__ */ t(p, { children: [
|
|
52
|
+
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
53
|
+
l,
|
|
54
|
+
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: ": " })
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ s("span", { className: N, children: o }),
|
|
57
|
+
h && /* @__PURE__ */ s(
|
|
58
|
+
T,
|
|
59
|
+
{
|
|
60
|
+
icon: k ? /* @__PURE__ */ s(j, {}) : /* @__PURE__ */ s(K, {}),
|
|
61
|
+
size: "sm",
|
|
62
|
+
"aria-label": a("keyValuePair.copy", { label: l }),
|
|
63
|
+
onClick: w,
|
|
64
|
+
intent: "ghost",
|
|
65
|
+
className: n === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
return /* @__PURE__ */ t(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
ref: g,
|
|
73
|
+
className: A({ layout: n, hasIcon: c, className: x }),
|
|
74
|
+
"data-component": "key-value-pair",
|
|
75
|
+
...v,
|
|
76
|
+
children: [
|
|
77
|
+
c ? /* @__PURE__ */ t(p, { children: [
|
|
78
|
+
/* @__PURE__ */ s(
|
|
79
|
+
"span",
|
|
80
|
+
{
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
className: "ds:inline-flex ds:shrink-0 ds:mt-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
|
|
83
|
+
children: r
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ s("div", { className: V, children: m })
|
|
87
|
+
] }) : m,
|
|
88
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: C })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
B.displayName = "KeyValuePair";
|
|
95
|
+
export {
|
|
96
|
+
B as K
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=key-value-pair-DBuOCtIc.js.map
|
|
@@ -4,7 +4,7 @@ import { c as D } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
5
|
import { I as H } from "./icon-button-C4CGcYuz.js";
|
|
6
6
|
import { B as k } from "./button-DD_0Xdmr.js";
|
|
7
|
-
import { A as X } from "./avatar-
|
|
7
|
+
import { A as X } from "./avatar-BpFohgWG.js";
|
|
8
8
|
import { T as q } from "./timestamp-BV2lC-wV.js";
|
|
9
9
|
import { X as G } from "./x-CCcI3eJp.js";
|
|
10
10
|
const J = D(
|
|
@@ -277,4 +277,4 @@ export {
|
|
|
277
277
|
Q as M,
|
|
278
278
|
O as i
|
|
279
279
|
};
|
|
280
|
-
//# sourceMappingURL=message-card-
|
|
280
|
+
//# sourceMappingURL=message-card-i61k1TGc.js.map
|
|
@@ -8,7 +8,7 @@ import { I as me } from "./icon-button-C4CGcYuz.js";
|
|
|
8
8
|
import { B as E } from "./button-DD_0Xdmr.js";
|
|
9
9
|
import { S as L } from "./separator-CYU_bGFn.js";
|
|
10
10
|
import { S as f } from "./skeleton-CZbwyJAA.js";
|
|
11
|
-
import { M as pe } from "./message-card-
|
|
11
|
+
import { M as pe } from "./message-card-i61k1TGc.js";
|
|
12
12
|
import { u as ue } from "./registry-C9nwlNyL.js";
|
|
13
13
|
import { M as F } from "./mail-C8irm52s.js";
|
|
14
14
|
const ge = {
|
|
@@ -411,4 +411,4 @@ export {
|
|
|
411
411
|
be as M,
|
|
412
412
|
ge as m
|
|
413
413
|
};
|
|
414
|
-
//# sourceMappingURL=message-tray-
|
|
414
|
+
//# sourceMappingURL=message-tray-DrV7G-wR.js.map
|
|
@@ -6,7 +6,7 @@ import { I } from "./icon-button-C4CGcYuz.js";
|
|
|
6
6
|
import { D as n } from "./dropdown-menu-DZxwF23X.js";
|
|
7
7
|
import { H as L, g as A, f as H, e as x, a as C, c as M, d as B } from "./header-DqmKROIY.js";
|
|
8
8
|
import { L as N } from "./logo-_Z-jLq80.js";
|
|
9
|
-
import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-
|
|
9
|
+
import { S as T, a as _, h as O, j as P, k as W, i as j } from "./sidebar-DkyC6GvS.js";
|
|
10
10
|
import { T as z } from "./theme-root-BOO73p5t.js";
|
|
11
11
|
import { a as R } from "./tooltip-DHik5yRI.js";
|
|
12
12
|
import { u as D } from "./use-theme-B1cwAXJR.js";
|
|
@@ -185,4 +185,4 @@ V.displayName = "PatientShell";
|
|
|
185
185
|
export {
|
|
186
186
|
V as P
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=patient-shell-
|
|
188
|
+
//# sourceMappingURL=patient-shell-DavGODt9.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as se, useState as E, useEffect as R, useRef as V, useMemo a
|
|
|
3
3
|
import { c as z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import { S as J } from "./spinner-DirtWZNG.js";
|
|
6
|
-
import { A as W } from "./alert-
|
|
6
|
+
import { A as W } from "./alert-ywPR59NE.js";
|
|
7
7
|
import { loadStripe as de } from "@stripe/stripe-js";
|
|
8
8
|
import { Elements as ce, useStripe as le, useElements as me, PaymentElement as ue, AddressElement as pe } from "@stripe/react-stripe-js";
|
|
9
9
|
import { u as fe } from "./registry-C9nwlNyL.js";
|
|
@@ -587,4 +587,4 @@ export {
|
|
|
587
587
|
ye as p,
|
|
588
588
|
ee as s
|
|
589
589
|
};
|
|
590
|
-
//# sourceMappingURL=payment-form-
|
|
590
|
+
//# sourceMappingURL=payment-form-F7uh0Rqr.js.map
|
|
@@ -6,7 +6,7 @@ import { useTranslation as pe } from "react-i18next";
|
|
|
6
6
|
import * as ee from "@radix-ui/react-popover";
|
|
7
7
|
import Me from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
|
8
8
|
import { S as Le } from "./spinner-DirtWZNG.js";
|
|
9
|
-
import { A as we } from "./alert-
|
|
9
|
+
import { A as we } from "./alert-ywPR59NE.js";
|
|
10
10
|
import { u as Ze } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { X as Be } from "./x-CCcI3eJp.js";
|
|
12
12
|
import { C as Ke } from "./chevron-left-CX1jqD2M.js";
|
|
@@ -917,4 +917,4 @@ export {
|
|
|
917
917
|
nt as P,
|
|
918
918
|
Xe as p
|
|
919
919
|
};
|
|
920
|
-
//# sourceMappingURL=pdf-viewer-
|
|
920
|
+
//# sourceMappingURL=pdf-viewer-CuYaVR1I.js.map
|