@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
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as C, useState as c, useCallback as g } from "react";
|
|
3
|
-
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as N } from "react-i18next";
|
|
5
|
-
import { I as b } from "./icon-button-C4CGcYuz.js";
|
|
6
|
-
import { C as P } from "./check-DPdL_Sm7.js";
|
|
7
|
-
import { C as w } from "./copy-B00HK7tj.js";
|
|
8
|
-
const z = V("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
|
-
},
|
|
15
|
-
defaultVariants: {
|
|
16
|
-
layout: "horizontal"
|
|
17
|
-
}
|
|
18
|
-
}), T = C(
|
|
19
|
-
({
|
|
20
|
-
label: n,
|
|
21
|
-
value: o,
|
|
22
|
-
layout: r = "horizontal",
|
|
23
|
-
mono: d = !1,
|
|
24
|
-
copyable: m = !1,
|
|
25
|
-
copyText: p,
|
|
26
|
-
className: f,
|
|
27
|
-
...u
|
|
28
|
-
}, y) => {
|
|
29
|
-
const { t: s } = N(), [h, i] = c(!1), [k, e] = c(""), t = p ?? (typeof o == "string" ? o : void 0), v = g(async () => {
|
|
30
|
-
if (t)
|
|
31
|
-
try {
|
|
32
|
-
await navigator.clipboard.writeText(t), i(!0), e(s("keyValuePair.copied")), setTimeout(() => {
|
|
33
|
-
i(!1), e("");
|
|
34
|
-
}, 2e3);
|
|
35
|
-
} catch {
|
|
36
|
-
e(s("keyValuePair.notAvailable")), setTimeout(() => e(""), 3e3);
|
|
37
|
-
}
|
|
38
|
-
}, [t, s]), x = [
|
|
39
|
-
"type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
|
|
40
|
-
d ? "ds:font-[family-name:var(--font-mono)]" : ""
|
|
41
|
-
].filter(Boolean).join(" ");
|
|
42
|
-
return /* @__PURE__ */ l(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
ref: y,
|
|
46
|
-
className: z({ layout: r, className: f }),
|
|
47
|
-
"data-component": "key-value-pair",
|
|
48
|
-
...u,
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ l("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
51
|
-
n,
|
|
52
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ a("span", { className: x, children: o }),
|
|
55
|
-
m && /* @__PURE__ */ a(
|
|
56
|
-
b,
|
|
57
|
-
{
|
|
58
|
-
icon: h ? /* @__PURE__ */ a(P, {}) : /* @__PURE__ */ a(w, {}),
|
|
59
|
-
size: "sm",
|
|
60
|
-
"aria-label": s("keyValuePair.copy", { label: n }),
|
|
61
|
-
onClick: v,
|
|
62
|
-
intent: "ghost",
|
|
63
|
-
className: r === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: k })
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
T.displayName = "KeyValuePair";
|
|
73
|
-
export {
|
|
74
|
-
T as K
|
|
75
|
-
};
|
|
76
|
-
//# sourceMappingURL=key-value-pair-AbrRwesr.js.map
|