@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.
Files changed (34) hide show
  1. package/dist/_chunks/{agenda-card-CsCm7hQv.js → agenda-card-BmpaUG1h.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-B8QZ3wEp.js → agenda-tray-DiInnVqk.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-Bof6TlFx.js → alia-sidebar-CUi2UCbY.js} +3 -3
  4. package/dist/_chunks/{avatar-I10iCDs8.js → avatar-BpFohgWG.js} +24 -16
  5. package/dist/_chunks/{chat-message-ChOnwqf_.js → chat-message-W3k8rLOA.js} +2 -2
  6. package/dist/_chunks/{editable-currency-cell-renderer-Dn3-ANF5.js → editable-currency-cell-renderer-1t42gENX.js} +757 -717
  7. package/dist/_chunks/key-value-pair-DBuOCtIc.js +98 -0
  8. package/dist/_chunks/{message-card-c6R0-qXq.js → message-card-i61k1TGc.js} +2 -2
  9. package/dist/_chunks/{message-tray-BNAS8al4.js → message-tray-DrV7G-wR.js} +2 -2
  10. package/dist/_chunks/{timeline-rmls7dIh.js → timeline-Czeqr3HF.js} +2 -2
  11. package/dist/_chunks/{whatsapp-button-Bj5FIhpC.js → whatsapp-button-CtlLwM3M.js} +14 -3
  12. package/dist/_chunks/{workflow-map-BkLglexk.js → workflow-map-712GL-8u.js} +2 -2
  13. package/dist/agent-catalog.json +1 -1
  14. package/dist/components/agenda-card/index.js +1 -1
  15. package/dist/components/agenda-tray/index.js +1 -1
  16. package/dist/components/avatar/avatar.d.ts +1 -1
  17. package/dist/components/avatar/index.js +1 -1
  18. package/dist/components/chat-message/index.js +1 -1
  19. package/dist/components/data-table/filters/date-range-filter.d.ts +7 -4
  20. package/dist/components/data-table/filters/select-filter.d.ts +9 -15
  21. package/dist/components/data-table/filters/typeahead-filter.d.ts +7 -4
  22. package/dist/components/data-table/index.js +1 -1
  23. package/dist/components/key-value-pair/index.js +1 -1
  24. package/dist/components/key-value-pair/key-value-pair.d.ts +19 -1
  25. package/dist/components/message-card/index.js +1 -1
  26. package/dist/components/message-tray/index.js +1 -1
  27. package/dist/components/timeline/index.js +1 -1
  28. package/dist/components/whatsapp-button/index.js +1 -1
  29. package/dist/components/workflow/index.js +1 -1
  30. package/dist/index.js +12 -12
  31. package/dist/patterns/alia-assistant/index.js +1 -1
  32. package/dist/tokens.css +2 -2
  33. package/package.json +1 -1
  34. package/dist/_chunks/key-value-pair-AbrRwesr.js +0 -76
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",
@@ -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