@alfadocs/ui-kit 0.20.1 → 0.23.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/i18n/config.d.ts +1 -1
- package/dist/i18n/config.js +18356 -2114
- package/dist/i18n/locales/ar.d.ts +1081 -0
- package/dist/i18n/locales/de.d.ts +1081 -0
- package/dist/i18n/locales/el.d.ts +1078 -0
- package/dist/i18n/locales/es.d.ts +1078 -0
- package/dist/i18n/locales/fr.d.ts +1078 -0
- package/dist/i18n/locales/hi.d.ts +1078 -0
- package/dist/i18n/locales/ja.d.ts +1078 -0
- package/dist/i18n/locales/nl.d.ts +1078 -0
- package/dist/i18n/locales/pl.d.ts +1078 -0
- package/dist/i18n/locales/pt.d.ts +1079 -0
- package/dist/i18n/locales/ro.d.ts +1078 -0
- package/dist/i18n/locales/ru.d.ts +1078 -0
- package/dist/i18n/locales/sq.d.ts +1078 -0
- package/dist/i18n/locales/sv.d.ts +1078 -0
- package/dist/i18n/locales/tr.d.ts +1078 -0
- package/dist/i18n/locales/zh.d.ts +1078 -0
- package/dist/i18n/resources.d.ts +48 -1034
- package/dist/index.js +12 -12
- package/dist/locales/ar.json +1073 -1
- package/dist/locales/de.json +58 -8
- package/dist/locales/el.json +1073 -0
- package/dist/locales/es.json +1073 -0
- package/dist/locales/fr.json +1073 -0
- package/dist/locales/hi.json +1073 -0
- package/dist/locales/it.json +31 -0
- package/dist/locales/ja.json +1073 -0
- package/dist/locales/nl.json +1073 -0
- package/dist/locales/pl.json +1073 -0
- package/dist/locales/pt.json +1073 -0
- package/dist/locales/ro.json +1073 -0
- package/dist/locales/ru.json +1073 -0
- package/dist/locales/sq.json +1073 -0
- package/dist/locales/sv.json +1073 -0
- package/dist/locales/tr.json +1073 -0
- package/dist/locales/zh.json +1073 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +4 -1
- 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.
|
|
3
|
+
"version": "0.23.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",
|
|
@@ -522,6 +522,9 @@
|
|
|
522
522
|
"stylelint": "stylelint \"src/**/*.css\"",
|
|
523
523
|
"check:data-component": "node scripts/check-data-component-coverage.mjs",
|
|
524
524
|
"check:i18n": "node scripts/check-no-namespaced-i18n.mjs",
|
|
525
|
+
"check:i18n-parity": "node --experimental-strip-types scripts/check-i18n-parity.ts",
|
|
526
|
+
"check:i18n-coverage": "node --experimental-strip-types scripts/check-i18n-coverage.ts",
|
|
527
|
+
"seed:i18n-coverage": "node --experimental-strip-types scripts/seed-i18n-coverage.ts",
|
|
525
528
|
"chromatic": "chromatic --exit-zero-on-changes"
|
|
526
529
|
},
|
|
527
530
|
"peerDependencies": {
|
|
@@ -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
|