@alfadocs/ui-kit 0.31.3 → 0.31.6
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-UJA6Arbs.js → agenda-card-DtGlQde1.js} +2 -2
- package/dist/_chunks/{agenda-tray-1fAxNOMz.js → agenda-tray-CXmlwt2K.js} +2 -2
- package/dist/_chunks/{badge-CptERaHx.js → badge-B9Cr6iEB.js} +30 -21
- package/dist/_chunks/{benefit-card-CLPNpiQE.js → benefit-card-B86DH-PE.js} +14 -10
- package/dist/_chunks/{card-DKTMLVrw.js → card-CNri9ssR.js} +43 -37
- package/dist/_chunks/{contact-card-DYbp--s-.js → contact-card-Dos7Tley.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-BpicmolK.js → editable-currency-cell-renderer-YvTwkFrD.js} +2 -2
- package/dist/_chunks/key-value-pair-CYE7NSpM.js +134 -0
- package/dist/_chunks/message-circle-C23eicgb.js +20 -0
- package/dist/_chunks/operator-hero-BsjE-kJF.js +171 -0
- package/dist/_chunks/{patient-search-hFiYbqcl.js → patient-search-CSDru7QW.js} +2 -2
- package/dist/_chunks/practice-profile-card-C2_2ZH_G.js +297 -0
- package/dist/_chunks/{practice-results-RPL64j8E.js → practice-results-VqbCUO1b.js} +378 -405
- package/dist/_chunks/{reviews-panel-yanuBZs-.js → reviews-panel-Cjys8G8K.js} +2 -2
- package/dist/_chunks/shield-check-BhHyReu8.js +52 -0
- package/dist/_chunks/{timeline-D0Wo7v_o.js → timeline-BZC7qGdy.js} +2 -2
- package/dist/_chunks/{workflow-map-BSvQS3be.js → workflow-map-DfpjDZHK.js} +93 -107
- package/dist/agent-catalog.json +55 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.d.ts +2 -2
- package/dist/components/key-value-pair/index.js +3 -2
- package/dist/components/key-value-pair/key-value-pair.d.ts +10 -0
- package/dist/components/operator-hero/index.d.ts +4 -0
- package/dist/components/operator-hero/index.js +6 -0
- package/dist/components/operator-hero/operator-hero.agent.d.ts +4 -0
- package/dist/components/operator-hero/operator-hero.d.ts +64 -0
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/practice-profile-card/index.d.ts +4 -0
- package/dist/components/practice-profile-card/index.js +8 -0
- package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +4 -0
- package/dist/components/practice-profile-card/practice-profile-card.d.ts +115 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +19 -0
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +23 -0
- package/dist/i18n/locales/ar.js +23 -0
- package/dist/i18n/locales/de.d.ts +23 -0
- package/dist/i18n/locales/de.js +23 -0
- package/dist/i18n/locales/el.d.ts +23 -0
- package/dist/i18n/locales/el.js +23 -0
- package/dist/i18n/locales/en.d.ts +23 -0
- package/dist/i18n/locales/en.js +23 -0
- package/dist/i18n/locales/es.d.ts +23 -0
- package/dist/i18n/locales/es.js +23 -0
- package/dist/i18n/locales/fr.d.ts +23 -0
- package/dist/i18n/locales/fr.js +23 -0
- package/dist/i18n/locales/hi.d.ts +23 -0
- package/dist/i18n/locales/hi.js +23 -0
- package/dist/i18n/locales/it.d.ts +23 -0
- package/dist/i18n/locales/it.js +23 -0
- package/dist/i18n/locales/ja.d.ts +23 -0
- package/dist/i18n/locales/ja.js +23 -0
- package/dist/i18n/locales/nl.d.ts +23 -0
- package/dist/i18n/locales/nl.js +23 -0
- package/dist/i18n/locales/pl.d.ts +23 -0
- package/dist/i18n/locales/pl.js +23 -0
- package/dist/i18n/locales/pt.d.ts +23 -0
- package/dist/i18n/locales/pt.js +23 -0
- package/dist/i18n/locales/ro.d.ts +23 -0
- package/dist/i18n/locales/ro.js +23 -0
- package/dist/i18n/locales/ru.d.ts +23 -0
- package/dist/i18n/locales/ru.js +23 -0
- package/dist/i18n/locales/sq.d.ts +23 -0
- package/dist/i18n/locales/sq.js +23 -0
- package/dist/i18n/locales/sv.d.ts +23 -0
- package/dist/i18n/locales/sv.js +23 -0
- package/dist/i18n/locales/tr.d.ts +23 -0
- package/dist/i18n/locales/tr.js +23 -0
- package/dist/i18n/locales/zh.d.ts +23 -0
- package/dist/i18n/locales/zh.js +23 -0
- package/dist/index.js +400 -391
- package/dist/locales/ar.json +23 -0
- package/dist/locales/de.json +23 -0
- package/dist/locales/el.json +23 -0
- package/dist/locales/en.json +23 -0
- package/dist/locales/es.json +23 -0
- package/dist/locales/fr.json +23 -0
- package/dist/locales/hi.json +23 -0
- package/dist/locales/it.json +23 -0
- package/dist/locales/ja.json +23 -0
- package/dist/locales/nl.json +23 -0
- package/dist/locales/pl.json +23 -0
- package/dist/locales/pt.json +23 -0
- package/dist/locales/ro.json +23 -0
- package/dist/locales/ru.json +23 -0
- package/dist/locales/sq.json +23 -0
- package/dist/locales/sv.json +23 -0
- package/dist/locales/tr.json +23 -0
- package/dist/locales/zh.json +23 -0
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/key-value-pair-C8DaR3Xs.js +0 -98
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.6",
|
|
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",
|
|
@@ -295,6 +295,10 @@
|
|
|
295
295
|
"types": "./dist/components/number-input/index.d.ts",
|
|
296
296
|
"import": "./dist/components/number-input/index.js"
|
|
297
297
|
},
|
|
298
|
+
"./operator-hero": {
|
|
299
|
+
"types": "./dist/components/operator-hero/index.d.ts",
|
|
300
|
+
"import": "./dist/components/operator-hero/index.js"
|
|
301
|
+
},
|
|
298
302
|
"./otp-input": {
|
|
299
303
|
"types": "./dist/components/otp-input/index.d.ts",
|
|
300
304
|
"import": "./dist/components/otp-input/index.js"
|
|
@@ -311,6 +315,10 @@
|
|
|
311
315
|
"types": "./dist/components/patient-search/index.d.ts",
|
|
312
316
|
"import": "./dist/components/patient-search/index.js"
|
|
313
317
|
},
|
|
318
|
+
"./practice-profile-card": {
|
|
319
|
+
"types": "./dist/components/practice-profile-card/index.d.ts",
|
|
320
|
+
"import": "./dist/components/practice-profile-card/index.js"
|
|
321
|
+
},
|
|
314
322
|
"./practice-results": {
|
|
315
323
|
"types": "./dist/components/practice-results/index.d.ts",
|
|
316
324
|
"import": "./dist/components/practice-results/index.js"
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as p, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as z, useState as f, useCallback as b } from "react";
|
|
3
|
-
import { c as P } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as I } from "react-i18next";
|
|
5
|
-
import { I as T } from "./icon-button-CKEOrN37.js";
|
|
6
|
-
import { C as j } from "./check-DPdL_Sm7.js";
|
|
7
|
-
import { C as K } from "./copy-B00HK7tj.js";
|
|
8
|
-
const A = P("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
|
-
/** Internal — flips the root to a horizontal flex when an icon
|
|
15
|
-
is present so the icon can sit at the leading edge of both
|
|
16
|
-
horizontal and vertical inner stacks. `items-start` keeps the
|
|
17
|
-
icon anchored to the label row even when the value wraps. */
|
|
18
|
-
hasIcon: {
|
|
19
|
-
true: "ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
20
|
-
false: ""
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
layout: "horizontal",
|
|
25
|
-
hasIcon: !1
|
|
26
|
-
}
|
|
27
|
-
}), B = z(
|
|
28
|
-
({
|
|
29
|
-
label: l,
|
|
30
|
-
value: o,
|
|
31
|
-
layout: n = "horizontal",
|
|
32
|
-
mono: u = !1,
|
|
33
|
-
copyable: h = !1,
|
|
34
|
-
copyText: y,
|
|
35
|
-
icon: r,
|
|
36
|
-
className: x,
|
|
37
|
-
...v
|
|
38
|
-
}, g) => {
|
|
39
|
-
const { t: a } = I(), [k, d] = f(!1), [C, e] = f(""), i = y ?? (typeof o == "string" ? o : void 0), w = b(async () => {
|
|
40
|
-
if (i)
|
|
41
|
-
try {
|
|
42
|
-
await navigator.clipboard.writeText(i), d(!0), e(a("keyValuePair.copied")), setTimeout(() => {
|
|
43
|
-
d(!1), e("");
|
|
44
|
-
}, 2e3);
|
|
45
|
-
} catch {
|
|
46
|
-
e(a("keyValuePair.notAvailable")), setTimeout(() => e(""), 3e3);
|
|
47
|
-
}
|
|
48
|
-
}, [i, a]), N = [
|
|
49
|
-
"type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
|
|
50
|
-
u ? "ds:font-[family-name:var(--font-mono)]" : ""
|
|
51
|
-
].filter(Boolean).join(" "), c = r != null, V = n === "horizontal" ? "ds:flex ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)] ds:min-w-0 ds:flex-1" : "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", m = /* @__PURE__ */ t(p, { children: [
|
|
52
|
-
/* @__PURE__ */ t("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
53
|
-
l,
|
|
54
|
-
/* @__PURE__ */ s("span", { className: "ds:sr-only", children: ": " })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ s("span", { className: N, children: o }),
|
|
57
|
-
h && /* @__PURE__ */ s(
|
|
58
|
-
T,
|
|
59
|
-
{
|
|
60
|
-
icon: k ? /* @__PURE__ */ s(j, {}) : /* @__PURE__ */ s(K, {}),
|
|
61
|
-
size: "sm",
|
|
62
|
-
"aria-label": a("keyValuePair.copy", { label: l }),
|
|
63
|
-
onClick: w,
|
|
64
|
-
intent: "ghost",
|
|
65
|
-
className: n === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
] });
|
|
69
|
-
return /* @__PURE__ */ t(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
ref: g,
|
|
73
|
-
className: A({ layout: n, hasIcon: c, className: x }),
|
|
74
|
-
"data-component": "key-value-pair",
|
|
75
|
-
...v,
|
|
76
|
-
children: [
|
|
77
|
-
c ? /* @__PURE__ */ t(p, { children: [
|
|
78
|
-
/* @__PURE__ */ s(
|
|
79
|
-
"span",
|
|
80
|
-
{
|
|
81
|
-
"aria-hidden": "true",
|
|
82
|
-
className: "ds:inline-flex ds:shrink-0 ds:mt-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
|
|
83
|
-
children: r
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ s("div", { className: V, children: m })
|
|
87
|
-
] }) : m,
|
|
88
|
-
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: C })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
B.displayName = "KeyValuePair";
|
|
95
|
-
export {
|
|
96
|
-
B as K
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=key-value-pair-C8DaR3Xs.js.map
|