@alfadocs/ui-kit 0.31.7 → 0.32.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-DtGlQde1.js → agenda-card-CFyWSX7Z.js} +2 -2
- package/dist/_chunks/{agenda-tray-CXmlwt2K.js → agenda-tray-By_asPN9.js} +2 -2
- package/dist/_chunks/{badge-B9Cr6iEB.js → badge-zsf5i5bH.js} +9 -2
- package/dist/_chunks/{benefit-card-B86DH-PE.js → benefit-card-_Sc-MGha.js} +18 -8
- package/dist/_chunks/{booking-A4o9xI2n.js → booking-h_kBZM6M.js} +24 -26
- package/dist/_chunks/{card-CNri9ssR.js → card-DPmk26CL.js} +2 -2
- package/dist/_chunks/{contact-card-Dos7Tley.js → contact-card-Cf8Ktyt3.js} +2 -2
- package/dist/_chunks/contact-profile-card-Ce-LIDU8.js +342 -0
- package/dist/_chunks/{editable-currency-cell-renderer-YvTwkFrD.js → editable-currency-cell-renderer-B9VRSV_S.js} +2 -2
- package/dist/_chunks/{key-value-pair-CYE7NSpM.js → key-value-pair-CkQIb9EG.js} +42 -32
- package/dist/_chunks/{map-view-WEWqXzof.js → map-view-knHSNLoe.js} +140 -128
- package/dist/_chunks/{operator-hero-BsjE-kJF.js → operator-hero-7LiiP7zi.js} +4 -4
- package/dist/_chunks/{patient-search-CSDru7QW.js → patient-search-CBq62kmL.js} +2 -2
- package/dist/_chunks/{practice-results-CIkAdwRm.js → practice-results-Bw5fJTYF.js} +4 -4
- package/dist/_chunks/{reviews-panel-Cjys8G8K.js → reviews-panel-B-18RBSn.js} +39 -36
- package/dist/_chunks/{timeline-BZC7qGdy.js → timeline-DQa5Tyz4.js} +2 -2
- package/dist/_chunks/{workflow-map-DfpjDZHK.js → workflow-map-uSiHbOWQ.js} +4 -4
- package/dist/agent-catalog.json +28 -28
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.agent.d.ts +4 -0
- package/dist/components/{practice-profile-card/practice-profile-card.d.ts → contact-profile-card/contact-profile-card.d.ts} +29 -9
- package/dist/components/contact-profile-card/index.d.ts +4 -0
- package/dist/components/contact-profile-card/index.js +8 -0
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- 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 +4 -1
- package/dist/i18n/locales/ar.js +5 -2
- package/dist/i18n/locales/de.d.ts +4 -1
- package/dist/i18n/locales/de.js +5 -2
- package/dist/i18n/locales/el.d.ts +4 -1
- package/dist/i18n/locales/el.js +5 -2
- package/dist/i18n/locales/en.d.ts +4 -1
- package/dist/i18n/locales/en.js +5 -2
- package/dist/i18n/locales/es.d.ts +4 -1
- package/dist/i18n/locales/es.js +5 -2
- package/dist/i18n/locales/fr.d.ts +4 -1
- package/dist/i18n/locales/fr.js +5 -2
- package/dist/i18n/locales/hi.d.ts +4 -1
- package/dist/i18n/locales/hi.js +5 -2
- package/dist/i18n/locales/it.d.ts +4 -1
- package/dist/i18n/locales/it.js +5 -2
- package/dist/i18n/locales/ja.d.ts +4 -1
- package/dist/i18n/locales/ja.js +5 -2
- package/dist/i18n/locales/nl.d.ts +4 -1
- package/dist/i18n/locales/nl.js +5 -2
- package/dist/i18n/locales/pl.d.ts +4 -1
- package/dist/i18n/locales/pl.js +5 -2
- package/dist/i18n/locales/pt.d.ts +4 -1
- package/dist/i18n/locales/pt.js +5 -2
- package/dist/i18n/locales/ro.d.ts +4 -1
- package/dist/i18n/locales/ro.js +5 -2
- package/dist/i18n/locales/ru.d.ts +4 -1
- package/dist/i18n/locales/ru.js +5 -2
- package/dist/i18n/locales/sq.d.ts +4 -1
- package/dist/i18n/locales/sq.js +5 -2
- package/dist/i18n/locales/sv.d.ts +4 -1
- package/dist/i18n/locales/sv.js +5 -2
- package/dist/i18n/locales/tr.d.ts +4 -1
- package/dist/i18n/locales/tr.js +5 -2
- package/dist/i18n/locales/zh.d.ts +4 -1
- package/dist/i18n/locales/zh.js +5 -2
- package/dist/index.js +112 -112
- package/dist/locales/ar.json +4 -1
- package/dist/locales/de.json +4 -1
- package/dist/locales/el.json +4 -1
- package/dist/locales/en.json +4 -1
- package/dist/locales/es.json +4 -1
- package/dist/locales/fr.json +4 -1
- package/dist/locales/hi.json +4 -1
- package/dist/locales/it.json +4 -1
- package/dist/locales/ja.json +4 -1
- package/dist/locales/nl.json +4 -1
- package/dist/locales/pl.json +4 -1
- package/dist/locales/pt.json +4 -1
- package/dist/locales/ro.json +4 -1
- package/dist/locales/ru.json +4 -1
- package/dist/locales/sq.json +4 -1
- package/dist/locales/sv.json +4 -1
- package/dist/locales/tr.json +4 -1
- package/dist/locales/zh.json +4 -1
- package/dist/tokens.css +1 -1
- package/package.json +4 -4
- package/dist/_chunks/practice-profile-card-DwZo7ggW.js +0 -305
- package/dist/components/practice-profile-card/index.d.ts +0 -4
- package/dist/components/practice-profile-card/index.js +0 -8
- package/dist/components/practice-profile-card/practice-profile-card.agent.d.ts +0 -4
|
@@ -26,65 +26,72 @@ const B = P("ds:flex", {
|
|
|
26
26
|
}
|
|
27
27
|
}), _ = g(
|
|
28
28
|
({
|
|
29
|
-
label:
|
|
30
|
-
value:
|
|
31
|
-
layout:
|
|
29
|
+
label: o,
|
|
30
|
+
value: e,
|
|
31
|
+
layout: s = "horizontal",
|
|
32
32
|
mono: r = !1,
|
|
33
33
|
copyable: l = !1,
|
|
34
34
|
copyText: v,
|
|
35
35
|
icon: d,
|
|
36
36
|
className: h,
|
|
37
|
-
...
|
|
38
|
-
},
|
|
39
|
-
const { t:
|
|
37
|
+
...k
|
|
38
|
+
}, x) => {
|
|
39
|
+
const { t: n } = I(), [C, m] = y(!1), [N, t] = y(""), c = v ?? (typeof e == "string" ? e : void 0), V = z(async () => {
|
|
40
40
|
if (c)
|
|
41
41
|
try {
|
|
42
|
-
await navigator.clipboard.writeText(c),
|
|
43
|
-
|
|
42
|
+
await navigator.clipboard.writeText(c), m(!0), t(n("keyValuePair.copied")), setTimeout(() => {
|
|
43
|
+
m(!1), t("");
|
|
44
44
|
}, 2e3);
|
|
45
45
|
} catch {
|
|
46
|
-
n(
|
|
46
|
+
t(n("keyValuePair.notAvailable")), setTimeout(() => t(""), 3e3);
|
|
47
47
|
}
|
|
48
|
-
}, [c,
|
|
48
|
+
}, [c, n]), b = [
|
|
49
49
|
"type-body ds:text-foreground ds:min-w-0 ds:shrink ds:[unicode-bidi:isolate]",
|
|
50
|
+
// `flex-1` lets the value absorb the remaining inline space
|
|
51
|
+
// when the KVP root flexes the icon / label / value as direct
|
|
52
|
+
// siblings (`hasIcon && layout === 'horizontal'`). Without it,
|
|
53
|
+
// the value would shrink to its content width and the row
|
|
54
|
+
// would leave inline-end whitespace. Vertical layout doesn't
|
|
55
|
+
// need it because the value is below the label, not beside it.
|
|
56
|
+
s === "horizontal" ? "ds:flex-1" : "",
|
|
50
57
|
r ? "ds:font-[family-name:var(--font-mono)]" : ""
|
|
51
|
-
].filter(Boolean).join(" "),
|
|
58
|
+
].filter(Boolean).join(" "), u = d != null, w = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", p = /* @__PURE__ */ i(f, { children: [
|
|
52
59
|
/* @__PURE__ */ i("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
53
|
-
|
|
60
|
+
o,
|
|
54
61
|
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
|
|
55
62
|
] }),
|
|
56
|
-
/* @__PURE__ */ a("span", { className:
|
|
63
|
+
/* @__PURE__ */ a("span", { className: b, children: e }),
|
|
57
64
|
l && /* @__PURE__ */ a(
|
|
58
65
|
K,
|
|
59
66
|
{
|
|
60
67
|
icon: C ? /* @__PURE__ */ a(T, {}) : /* @__PURE__ */ a(j, {}),
|
|
61
68
|
size: "sm",
|
|
62
|
-
"aria-label":
|
|
63
|
-
onClick:
|
|
69
|
+
"aria-label": n("keyValuePair.copy", { label: o }),
|
|
70
|
+
onClick: V,
|
|
64
71
|
intent: "ghost",
|
|
65
|
-
className:
|
|
72
|
+
className: s === "horizontal" ? "ds:ms-auto ds:shrink-0" : "ds:self-start"
|
|
66
73
|
}
|
|
67
74
|
)
|
|
68
75
|
] });
|
|
69
76
|
return /* @__PURE__ */ i(
|
|
70
77
|
"div",
|
|
71
78
|
{
|
|
72
|
-
ref:
|
|
73
|
-
className: B({ layout:
|
|
79
|
+
ref: x,
|
|
80
|
+
className: B({ layout: s, hasIcon: u, className: h }),
|
|
74
81
|
"data-component": "key-value-pair",
|
|
75
|
-
...
|
|
82
|
+
...k,
|
|
76
83
|
children: [
|
|
77
|
-
|
|
84
|
+
u ? /* @__PURE__ */ i(f, { children: [
|
|
78
85
|
/* @__PURE__ */ a(
|
|
79
86
|
"span",
|
|
80
87
|
{
|
|
81
88
|
"aria-hidden": "true",
|
|
82
|
-
className: "ds:inline-flex ds:shrink-0 ds:
|
|
89
|
+
className: "ds:inline-flex ds:shrink-0 ds:translate-y-0.5 ds:text-[color:var(--key-value-pair-icon-color)] ds:[&_svg]:size-4",
|
|
83
90
|
children: d
|
|
84
91
|
}
|
|
85
92
|
),
|
|
86
|
-
/* @__PURE__ */ a("div", { className:
|
|
87
|
-
] }) :
|
|
93
|
+
s === "horizontal" ? p : /* @__PURE__ */ a("div", { className: w, children: p })
|
|
94
|
+
] }) : p,
|
|
88
95
|
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: N })
|
|
89
96
|
]
|
|
90
97
|
}
|
|
@@ -97,7 +104,7 @@ const A = {
|
|
|
97
104
|
md: "ds:gap-y-[var(--spacing-md)]",
|
|
98
105
|
lg: "ds:gap-y-[var(--spacing-lg)]"
|
|
99
106
|
}, L = g(
|
|
100
|
-
({ children:
|
|
107
|
+
({ children: o, className: e, rowGap: s = "md", ...r }, l) => /* @__PURE__ */ a(
|
|
101
108
|
"div",
|
|
102
109
|
{
|
|
103
110
|
ref: l,
|
|
@@ -105,7 +112,7 @@ const A = {
|
|
|
105
112
|
className: [
|
|
106
113
|
"ds:grid ds:grid-cols-[auto_auto_minmax(0,1fr)]",
|
|
107
114
|
"ds:gap-x-[var(--spacing-md)]",
|
|
108
|
-
A[
|
|
115
|
+
A[s],
|
|
109
116
|
// Each direct `data-component="key-value-pair"` child becomes
|
|
110
117
|
// a subgrid row spanning all three columns. The KVP's own
|
|
111
118
|
// flex layout still works inside the cell (icon shrinks-0,
|
|
@@ -115,14 +122,17 @@ const A = {
|
|
|
115
122
|
'ds:[&>[data-component="key-value-pair"]]:grid-cols-subgrid',
|
|
116
123
|
'ds:[&>[data-component="key-value-pair"]]:col-span-3',
|
|
117
124
|
'ds:[&>[data-component="key-value-pair"]]:items-baseline',
|
|
118
|
-
//
|
|
119
|
-
//
|
|
120
|
-
//
|
|
121
|
-
'
|
|
122
|
-
|
|
125
|
+
// Unset the KVP's intra-row `gap-sm` so the subgrid inherits
|
|
126
|
+
// the parent KeyValueList's `gap-x-md` for every track gap
|
|
127
|
+
// (icon→label and label→value). `gap-0` here would override
|
|
128
|
+
// the parent's gap and crowd the icon against the label;
|
|
129
|
+
// `[gap:normal]` is the subgrid-spec way to defer to the
|
|
130
|
+
// parent.
|
|
131
|
+
'ds:[&>[data-component="key-value-pair"]]:[gap:normal]',
|
|
132
|
+
e
|
|
123
133
|
].filter(Boolean).join(" "),
|
|
124
134
|
...r,
|
|
125
|
-
children:
|
|
135
|
+
children: o
|
|
126
136
|
}
|
|
127
137
|
)
|
|
128
138
|
);
|
|
@@ -131,4 +141,4 @@ export {
|
|
|
131
141
|
L as K,
|
|
132
142
|
_ as a
|
|
133
143
|
};
|
|
134
|
-
//# sourceMappingURL=key-value-pair-
|
|
144
|
+
//# sourceMappingURL=key-value-pair-CkQIb9EG.js.map
|