@alfadocs/ui-kit 0.20.1 → 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/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
- 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-Dn3-ANF5.js → editable-currency-cell-renderer-1t42gENX.js} +757 -717
- 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/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
- package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
- package/dist/_chunks/{workflow-map-BkLglexk.js → workflow-map-712GL-8u.js} +2 -2
- 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/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/filters/date-range-filter.d.ts +7 -4
- package/dist/components/data-table/filters/select-filter.d.ts +9 -15
- package/dist/components/data-table/filters/typeahead-filter.d.ts +7 -4
- package/dist/components/data-table/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/timeline/index.js +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/index.js +12 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +1 -1
- 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
|
|
@@ -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
|
|
@@ -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
|