@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
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
3
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as b } from "react-i18next";
|
|
5
|
-
import { A as x } from "./avatar-
|
|
5
|
+
import { A as x } from "./avatar-BpFohgWG.js";
|
|
6
6
|
import { B as y } from "./badge-cLYVGlMh.js";
|
|
7
7
|
import { C as N } from "./chevron-right-BrpYejk0.js";
|
|
8
8
|
const C = h(
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
T as A,
|
|
139
139
|
w as i
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=agenda-card-
|
|
141
|
+
//# sourceMappingURL=agenda-card-BmpaUG1h.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as j } from "react-i18next";
|
|
|
5
5
|
import { I as _ } from "./icon-button-C4CGcYuz.js";
|
|
6
6
|
import { S as E } from "./skeleton-CZbwyJAA.js";
|
|
7
7
|
import { E as P } from "./empty-state-3CLJIXSj.js";
|
|
8
|
-
import { A as H } from "./agenda-card-
|
|
8
|
+
import { A as H } from "./agenda-card-BmpaUG1h.js";
|
|
9
9
|
import { u as K } from "./registry-C9nwlNyL.js";
|
|
10
10
|
import { c as L } from "./createLucideIcon-CrFbzy84.js";
|
|
11
11
|
import { P as V } from "./plus-CYKNmfuA.js";
|
|
@@ -178,4 +178,4 @@ export {
|
|
|
178
178
|
G as A,
|
|
179
179
|
D as a
|
|
180
180
|
};
|
|
181
|
-
//# sourceMappingURL=agenda-tray-
|
|
181
|
+
//# sourceMappingURL=agenda-tray-DiInnVqk.js.map
|
|
@@ -66,7 +66,20 @@ const U = F(
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
), h = "ds:shrink-0 ds:size-5", $ = `${h} ds:mt-0.5`, q = [
|
|
69
|
+
// Default (no title): the alert root uses `items-center` and the
|
|
70
|
+
// button centres in the cross-axis. A centred 16×16 glyph inside a
|
|
71
|
+
// 44×44 button aligns optically with a single-line description.
|
|
72
|
+
// With a title: the root flips to `items-start` so the button's top
|
|
73
|
+
// edge aligns with the title row top. A centred glyph would then
|
|
74
|
+
// land ~11 px below the title's optical centre (button height is
|
|
75
|
+
// --min-target-size, much taller than the title's line-height). The
|
|
76
|
+
// `[data-has-title=true]` variant below flips the button to
|
|
77
|
+
// `items-start` and adds a block-start padding that pulls the glyph
|
|
78
|
+
// up onto the title row — same cap-height compensation idea as the
|
|
79
|
+
// leading icon's `mt-0.5`.
|
|
69
80
|
"ds:ms-auto ds:shrink-0 ds:inline-flex ds:items-center ds:justify-center",
|
|
81
|
+
"ds:[[data-has-title=true]_&]:items-start",
|
|
82
|
+
"ds:[[data-has-title=true]_&]:pt-[var(--spacing-sm)]",
|
|
70
83
|
"ds:rounded-[var(--radius-sm)]",
|
|
71
84
|
"ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
|
|
72
85
|
"ds:-mt-[var(--spacing-xs)] ds:-me-[var(--spacing-xs)]",
|
|
@@ -213,4 +226,4 @@ const nt = Object.assign(w, {
|
|
|
213
226
|
export {
|
|
214
227
|
nt as A
|
|
215
228
|
};
|
|
216
|
-
//# sourceMappingURL=alert-
|
|
229
|
+
//# sourceMappingURL=alert-ywPR59NE.js.map
|
|
@@ -6,10 +6,10 @@ import { F as se } from "./floating-action-button-pojvb9gG.js";
|
|
|
6
6
|
import { I as B } from "./icon-button-C4CGcYuz.js";
|
|
7
7
|
import { S as E } from "./sheet-BT0izeoI.js";
|
|
8
8
|
import { X as ae } from "./x-CCcI3eJp.js";
|
|
9
|
-
import { A as C } from "./avatar-
|
|
9
|
+
import { A as C } from "./avatar-BpFohgWG.js";
|
|
10
10
|
import { B as D } from "./button-DD_0Xdmr.js";
|
|
11
11
|
import { C as de } from "./chat-container-izziXViv.js";
|
|
12
|
-
import { C as ie } from "./chat-message-
|
|
12
|
+
import { C as ie } from "./chat-message-W3k8rLOA.js";
|
|
13
13
|
import { C as re } from "./chat-input-B3XmFGDw.js";
|
|
14
14
|
import { S as le } from "./streaming-text-BgjCTVOw.js";
|
|
15
15
|
import { a as q, S as O } from "./suggestion-chip-C4kxWUIs.js";
|
|
@@ -756,4 +756,4 @@ export {
|
|
|
756
756
|
we as b,
|
|
757
757
|
Ie as c
|
|
758
758
|
};
|
|
759
|
-
//# sourceMappingURL=alia-sidebar-
|
|
759
|
+
//# sourceMappingURL=alia-sidebar-CUi2UCbY.js.map
|
|
@@ -6,7 +6,7 @@ import { B as G } from "./button-DD_0Xdmr.js";
|
|
|
6
6
|
import { I as N } from "./icon-button-C4CGcYuz.js";
|
|
7
7
|
import { S as ue } from "./select-C92AT_OZ.js";
|
|
8
8
|
import { A as pe } from "./audio-visualiser-I-T4Z7EU.js";
|
|
9
|
-
import { A as F } from "./alert-
|
|
9
|
+
import { A as F } from "./alert-ywPR59NE.js";
|
|
10
10
|
import { u as le } from "./registry-C9nwlNyL.js";
|
|
11
11
|
import { c as V } from "./createLucideIcon-CrFbzy84.js";
|
|
12
12
|
import { S as me } from "./square-CZoGU14v.js";
|
|
@@ -454,4 +454,4 @@ export {
|
|
|
454
454
|
Ne as A,
|
|
455
455
|
Re as a
|
|
456
456
|
};
|
|
457
|
-
//# sourceMappingURL=audio-recorder-
|
|
457
|
+
//# sourceMappingURL=audio-recorder-D4xM3H5i.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as C, jsx as
|
|
1
|
+
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y, useRef as j, useState as w, useEffect as A, useLayoutEffect as I } from "react";
|
|
3
3
|
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as E } from "react-i18next";
|
|
5
5
|
import { c as B } from "./compose-refs-C0k0tdqF.js";
|
|
6
6
|
function R(s) {
|
|
7
7
|
let e = 5381;
|
|
8
|
-
for (let
|
|
9
|
-
e = (e << 5) + e ^ s.charCodeAt(
|
|
8
|
+
for (let t = 0; t < s.length; t++)
|
|
9
|
+
e = (e << 5) + e ^ s.charCodeAt(t), e = e >>> 0;
|
|
10
10
|
return e;
|
|
11
11
|
}
|
|
12
12
|
const i = [
|
|
@@ -52,23 +52,31 @@ const T = N(
|
|
|
52
52
|
sm: "ds:size-8 ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
53
53
|
md: "ds:size-10 ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
54
54
|
lg: "ds:size-12 ds:text-[length:var(--font-size-sm)] ds:font-semibold ds:leading-none",
|
|
55
|
-
xl: "ds:size-16 ds:text-[length:var(--font-size-base)] ds:font-semibold ds:leading-none"
|
|
55
|
+
xl: "ds:size-16 ds:text-[length:var(--font-size-base)] ds:font-semibold ds:leading-none",
|
|
56
|
+
// 2xl / 3xl are hero / display crops (operator cards, practice-
|
|
57
|
+
// profile pages). They token-reference `--avatar-size-*` so
|
|
58
|
+
// consumer themes can override the dimensions per-context, and
|
|
59
|
+
// `--avatar-text-size-*` so initials scale proportionally to
|
|
60
|
+
// the circle (otherwise --font-size-base at 192px reads as a
|
|
61
|
+
// tiny letter in a vast disc).
|
|
62
|
+
"2xl": "ds:size-[var(--avatar-size-2xl)] ds:text-[length:var(--avatar-text-size-2xl)] ds:font-semibold ds:leading-none",
|
|
63
|
+
"3xl": "ds:size-[var(--avatar-size-3xl)] ds:text-[length:var(--avatar-text-size-3xl)] ds:font-semibold ds:leading-none"
|
|
56
64
|
}
|
|
57
65
|
},
|
|
58
66
|
defaultVariants: { size: "md" }
|
|
59
67
|
}
|
|
60
68
|
), U = y(
|
|
61
|
-
({ src: s, name: e, color:
|
|
62
|
-
const { t: g } = E(), l = j(null), u = B(
|
|
69
|
+
({ src: s, name: e, color: t, size: d, className: c, ...v }, f) => {
|
|
70
|
+
const { t: g } = E(), l = j(null), u = B(f, l), [b, n] = w(!1);
|
|
63
71
|
A(() => {
|
|
64
72
|
n(!1);
|
|
65
73
|
}, [s]), I(() => {
|
|
66
74
|
const a = l.current;
|
|
67
|
-
a && (
|
|
68
|
-
}, [
|
|
69
|
-
const
|
|
75
|
+
a && (t ? a.style.setProperty("--avatar-color-override", t) : a.style.removeProperty("--avatar-color-override"));
|
|
76
|
+
}, [t]);
|
|
77
|
+
const o = !!s && !b, m = !o && !!e, h = !o && !e, p = t ? "ds:bg-[var(--avatar-color-override)]" : e ? S(e) : "ds:bg-muted", x = T({
|
|
70
78
|
size: d,
|
|
71
|
-
className: [p,
|
|
79
|
+
className: [p, t || e ? "ds:text-[var(--primary-foreground)]" : "ds:text-muted-foreground", c].filter(Boolean).join(" ")
|
|
72
80
|
}), z = e ?? g("avatar.placeholder", "User avatar");
|
|
73
81
|
return /* @__PURE__ */ C(
|
|
74
82
|
"span",
|
|
@@ -78,19 +86,19 @@ const T = N(
|
|
|
78
86
|
"aria-label": z,
|
|
79
87
|
"data-component": "avatar",
|
|
80
88
|
className: x,
|
|
81
|
-
...
|
|
89
|
+
...v,
|
|
82
90
|
children: [
|
|
83
|
-
(m ||
|
|
84
|
-
h && /* @__PURE__ */
|
|
91
|
+
(m || o) && !!e && /* @__PURE__ */ r("span", { "aria-hidden": "true", children: L(e) }),
|
|
92
|
+
h && /* @__PURE__ */ r(
|
|
85
93
|
"svg",
|
|
86
94
|
{
|
|
87
95
|
"aria-hidden": "true",
|
|
88
96
|
viewBox: "0 0 24 24",
|
|
89
97
|
className: "ds:size-[58%] ds:fill-current",
|
|
90
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ r("path", { d: "M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z" })
|
|
91
99
|
}
|
|
92
100
|
),
|
|
93
|
-
|
|
101
|
+
o && /* @__PURE__ */ r(
|
|
94
102
|
"img",
|
|
95
103
|
{
|
|
96
104
|
src: s,
|
|
@@ -111,4 +119,4 @@ export {
|
|
|
111
119
|
L as g,
|
|
112
120
|
S as n
|
|
113
121
|
};
|
|
114
|
-
//# sourceMappingURL=avatar-
|
|
122
|
+
//# sourceMappingURL=avatar-BpFohgWG.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as C, useMemo as j, Fragment as g } from "react";
|
|
|
3
3
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as T } from "react-i18next";
|
|
5
5
|
import { B as z } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { A as M } from "./avatar-
|
|
6
|
+
import { A as M } from "./avatar-BpFohgWG.js";
|
|
7
7
|
import { T as I } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { s as A } from "./safe-image-src-DstKgCo7.js";
|
|
9
9
|
import { c as F } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -236,4 +236,4 @@ H.displayName = "ChatMessage";
|
|
|
236
236
|
export {
|
|
237
237
|
H as C
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=chat-message-
|
|
239
|
+
//# sourceMappingURL=chat-message-W3k8rLOA.js.map
|