@alfadocs/ui-kit 1.102.0 → 1.103.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-bRQ4j6U6.js → agenda-card-B8hV3dZV.js} +2 -2
- package/dist/_chunks/{agenda-tray-CzE3E8GU.js → agenda-tray-Bu46s3dI.js} +2 -2
- package/dist/_chunks/{alia-sidebar-B5mu44g2.js → alia-sidebar-CKkg3gc8.js} +3 -3
- package/dist/_chunks/{appointment-card-zPr0brha.js → appointment-card-FKOnH1uJ.js} +2 -2
- package/dist/_chunks/{appointment-peek-xFTBany4.js → appointment-peek-DWfcpoGy.js} +2 -2
- package/dist/_chunks/{appointment-timeline-AKkVx9AN.js → appointment-timeline-eOi-y8m3.js} +2 -2
- package/dist/_chunks/{appointment-tray-B8qQBW65.js → appointment-tray-C6oBvsG5.js} +2 -2
- package/dist/_chunks/{avatar-BoqdWsNe.js → avatar-Dp5apm1d.js} +61 -47
- package/dist/_chunks/{balance-badge-cell-C-Rz616n.js → balance-badge-cell-DGFm2jfP.js} +2 -2
- package/dist/_chunks/{calendar-DVe5eArk.js → calendar-_sgjuH3L.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-EYyVorFR.js → calendar-appointment-editor-dialog-DL6V6xfj.js} +8 -8
- package/dist/_chunks/{care-plan-header-lROoTjYn.js → care-plan-header-F4l0st2X.js} +2 -2
- package/dist/_chunks/{chat-message-CkBCAcwn.js → chat-message-CfIyXrxA.js} +2 -2
- package/dist/_chunks/{clinical-note-card--juv_ELr.js → clinical-note-card-BVkxGiGl.js} +2 -2
- package/dist/_chunks/{contact-profile-card-D0KqxoE5.js → contact-profile-card-LXbmhx48.js} +126 -128
- package/dist/_chunks/{dependent-selector-DRN0P0Kr.js → dependent-selector-D6y4Kjg5.js} +2 -2
- package/dist/_chunks/{entity-summary-B4p8zP1J.js → entity-summary-BKfR4Vws.js} +2 -2
- package/dist/_chunks/key-value-pair-Cg7gjL7J.js +287 -0
- package/dist/_chunks/{link-cell-renderer-DKMgD-2v.js → link-cell-renderer-BRek9kz7.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-D2qgIuXX.js → marketplace-app-shell-BsctSegT.js} +2 -2
- package/dist/_chunks/{message-card-BzJEITml.js → message-card-BG3_3nN1.js} +2 -2
- package/dist/_chunks/{message-tray-DiPgJbOb.js → message-tray-BjZv0Fsk.js} +2 -2
- package/dist/_chunks/{notes-panel-BbNLYcdv.js → notes-panel-BjTpaz8d.js} +2 -2
- package/dist/_chunks/{operator-hero-BcuPTzS_.js → operator-hero-BELhrv9o.js} +37 -35
- package/dist/_chunks/{patient-details-DoIOWP6j.js → patient-details-BXM3dRKb.js} +2 -2
- package/dist/_chunks/{patient-summary-card-B1jvxdY8.js → patient-summary-card-B4Ijw_ig.js} +3 -3
- package/dist/_chunks/{payment-request-card-DPN5yklX.js → payment-request-card-CrXhB5H-.js} +2 -2
- package/dist/_chunks/{periodontal-chart-X4_4WPK8.js → periodontal-chart-JmsaYYb7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-BzL3YkEW.js → periodontal-chart-card-TxZBO6kb.js} +2 -2
- package/dist/_chunks/{practice-profile-hero-B8vykoci.js → practice-profile-hero-BAvGdQmt.js} +24 -20
- package/dist/_chunks/{practice-results-U-5kpnJa.js → practice-results-ChBP9x2r.js} +8 -4
- package/dist/_chunks/{public-footer-t6gx6sjn.js → public-footer-3Jy1zHSs.js} +248 -204
- package/dist/_chunks/{signature-request-CQ0torGq.js → signature-request-DB6kePIm.js} +2 -2
- package/dist/_chunks/{signed-out-frame-BcQE00H1.js → signed-out-frame-Bs_LSPWe.js} +2 -2
- package/dist/_chunks/{timeline-tn5QQJdS.js → timeline-CKUaBZOx.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-BNtTap_B.js → use-appointment-details-read-DawTb1SQ.js} +4 -4
- package/dist/_chunks/{workflow-map-Dm27iPKB.js → workflow-map-D_pyYK1B.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/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +10 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +9 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/key-value-pair/index.d.ts +1 -1
- package/dist/components/key-value-pair/index.js +3 -2
- package/dist/components/key-value-pair/key-value-pair.d.ts +20 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/public-footer/index.d.ts +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +29 -0
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/index.js +865 -864
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/key-value-pair-CB37UXsz.js +0 -210
package/package.json
CHANGED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as r, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as h, useState as y, useCallback as K } from "react";
|
|
3
|
-
import { c as v } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as T } from "react-i18next";
|
|
5
|
-
import { I as j } from "./icon-button-S8_weU3g.js";
|
|
6
|
-
import { C as _ } from "./check-DrFSN__t.js";
|
|
7
|
-
import { C as A } from "./copy-vRpqqHtY.js";
|
|
8
|
-
const B = v(
|
|
9
|
-
"type-body ds:text-foreground ds:min-w-0 ds:[unicode-bidi:isolate]",
|
|
10
|
-
{
|
|
11
|
-
variants: {
|
|
12
|
-
layout: {
|
|
13
|
-
horizontal: "",
|
|
14
|
-
vertical: "ds:shrink"
|
|
15
|
-
},
|
|
16
|
-
alignValue: {
|
|
17
|
-
start: "",
|
|
18
|
-
end: ""
|
|
19
|
-
},
|
|
20
|
-
mono: {
|
|
21
|
-
true: "ds:font-[family-name:var(--font-mono)]",
|
|
22
|
-
false: ""
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
compoundVariants: [
|
|
26
|
-
// `flex-1` lets the value absorb the remaining inline space when
|
|
27
|
-
// the KVP root flexes icon / label / value as direct siblings.
|
|
28
|
-
// Without it the value shrinks to its content width and the row
|
|
29
|
-
// leaves inline-end whitespace.
|
|
30
|
-
{
|
|
31
|
-
layout: "horizontal",
|
|
32
|
-
alignValue: "start",
|
|
33
|
-
class: "ds:flex-1 ds:shrink"
|
|
34
|
-
},
|
|
35
|
-
// Pinned: drop `flex-1` so the cell is content-width, then let an
|
|
36
|
-
// auto inline-start margin eat the slack. `ms-*` is the logical
|
|
37
|
-
// spelling, so this flips correctly in a right-to-left locale.
|
|
38
|
-
{
|
|
39
|
-
layout: "horizontal",
|
|
40
|
-
alignValue: "end",
|
|
41
|
-
class: "ds:ms-auto ds:shrink-0"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
layout: "horizontal",
|
|
46
|
-
alignValue: "start",
|
|
47
|
-
mono: !1
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
), L = v("ds:flex", {
|
|
51
|
-
variants: {
|
|
52
|
-
layout: {
|
|
53
|
-
horizontal: "",
|
|
54
|
-
vertical: ""
|
|
55
|
-
},
|
|
56
|
-
/** Internal — flips the root to a horizontal flex when an icon
|
|
57
|
-
is present so the icon can sit at the leading edge of both
|
|
58
|
-
horizontal and vertical inner stacks. `items-start` keeps the
|
|
59
|
-
icon anchored to the label row even when the value wraps. */
|
|
60
|
-
hasIcon: {
|
|
61
|
-
true: "ds:flex-row ds:items-start ds:gap-[var(--spacing-sm)]",
|
|
62
|
-
false: ""
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
// Direction and gap are set once per combination: a vertical row with an
|
|
66
|
-
// icon used to carry both `gap-xs` and `gap-sm`, and CSS order picked the
|
|
67
|
-
// 4px one, so its label sat closer to the icon than intended.
|
|
68
|
-
compoundVariants: [
|
|
69
|
-
{
|
|
70
|
-
layout: "horizontal",
|
|
71
|
-
hasIcon: !1,
|
|
72
|
-
class: "ds:flex-row ds:items-center ds:gap-[var(--spacing-sm)]"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
layout: "vertical",
|
|
76
|
-
hasIcon: !1,
|
|
77
|
-
class: "ds:flex-col ds:gap-[var(--spacing-xs)]"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
defaultVariants: {
|
|
81
|
-
layout: "horizontal",
|
|
82
|
-
hasIcon: !1
|
|
83
|
-
}
|
|
84
|
-
}), S = h(
|
|
85
|
-
({
|
|
86
|
-
label: t,
|
|
87
|
-
labelNode: i,
|
|
88
|
-
value: e,
|
|
89
|
-
layout: s = "horizontal",
|
|
90
|
-
alignValue: o = "start",
|
|
91
|
-
mono: g = !1,
|
|
92
|
-
copyable: k = !1,
|
|
93
|
-
copyText: x,
|
|
94
|
-
icon: d,
|
|
95
|
-
className: V,
|
|
96
|
-
...z
|
|
97
|
-
}, C) => {
|
|
98
|
-
const { t: n } = T("ui"), [N, u] = y(!1), [b, l] = y(""), c = x ?? (typeof e == "string" ? e : void 0), w = K(async () => {
|
|
99
|
-
if (c)
|
|
100
|
-
try {
|
|
101
|
-
await navigator.clipboard.writeText(c), u(!0), l(n("keyValuePair.copied")), setTimeout(() => {
|
|
102
|
-
u(!1), l("");
|
|
103
|
-
}, 2e3);
|
|
104
|
-
} catch {
|
|
105
|
-
l(n("keyValuePair.notAvailable")), setTimeout(() => l(""), 3e3);
|
|
106
|
-
}
|
|
107
|
-
}, [c, n]), I = B({
|
|
108
|
-
layout: s,
|
|
109
|
-
alignValue: o,
|
|
110
|
-
mono: g
|
|
111
|
-
}), m = d != null, P = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", p = /* @__PURE__ */ r(f, { children: [
|
|
112
|
-
/* @__PURE__ */ r("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
|
|
113
|
-
i ?? t,
|
|
114
|
-
/* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
|
|
115
|
-
] }),
|
|
116
|
-
/* @__PURE__ */ a("span", { className: I, children: e }),
|
|
117
|
-
k && /* @__PURE__ */ a(
|
|
118
|
-
j,
|
|
119
|
-
{
|
|
120
|
-
icon: N ? /* @__PURE__ */ a(_, {}) : /* @__PURE__ */ a(A, {}),
|
|
121
|
-
size: "sm",
|
|
122
|
-
"aria-label": n("keyValuePair.copy", { label: t }),
|
|
123
|
-
onClick: w,
|
|
124
|
-
intent: "ghost",
|
|
125
|
-
className: s === "horizontal" ? (
|
|
126
|
-
// Only one element on the row may claim the slack. When
|
|
127
|
-
// the value is pinned it has already taken it with its
|
|
128
|
-
// own `ms-auto`; a second auto margin here would split
|
|
129
|
-
// the free space between them and strand the value in
|
|
130
|
-
// the middle of the row instead of at its end.
|
|
131
|
-
o === "end" ? "ds:shrink-0" : "ds:ms-auto ds:shrink-0"
|
|
132
|
-
) : "ds:self-start"
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
] });
|
|
136
|
-
return /* @__PURE__ */ r(
|
|
137
|
-
"div",
|
|
138
|
-
{
|
|
139
|
-
ref: C,
|
|
140
|
-
className: L({ layout: s, hasIcon: m, className: V }),
|
|
141
|
-
"data-component": "key-value-pair",
|
|
142
|
-
"data-has-icon": m ? "" : void 0,
|
|
143
|
-
...z,
|
|
144
|
-
children: [
|
|
145
|
-
m ? /* @__PURE__ */ r(f, { children: [
|
|
146
|
-
/* @__PURE__ */ a(
|
|
147
|
-
"span",
|
|
148
|
-
{
|
|
149
|
-
"aria-hidden": "true",
|
|
150
|
-
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",
|
|
151
|
-
children: d
|
|
152
|
-
}
|
|
153
|
-
),
|
|
154
|
-
s === "horizontal" ? p : /* @__PURE__ */ a("div", { className: P, children: p })
|
|
155
|
-
] }) : p,
|
|
156
|
-
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: b })
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
);
|
|
162
|
-
S.displayName = "KeyValuePair";
|
|
163
|
-
const F = {
|
|
164
|
-
sm: "ds:gap-y-[var(--spacing-sm)]",
|
|
165
|
-
md: "ds:gap-y-[var(--spacing-md)]",
|
|
166
|
-
lg: "ds:gap-y-[var(--spacing-lg)]"
|
|
167
|
-
}, G = h(
|
|
168
|
-
({ children: t, className: i, rowGap: e = "md", ...s }, o) => /* @__PURE__ */ a(
|
|
169
|
-
"div",
|
|
170
|
-
{
|
|
171
|
-
ref: o,
|
|
172
|
-
"data-component": "key-value-list",
|
|
173
|
-
className: [
|
|
174
|
-
// The label track reads a custom property, and an icon list only
|
|
175
|
-
// sets that property: it never re-declares the template, so a
|
|
176
|
-
// host's own column layout (PatientSummaryCard's two fields per
|
|
177
|
-
// row from 672px) still wins exactly as before.
|
|
178
|
-
"ds:grid ds:grid-cols-[auto_var(--kvl-label-track,auto)_minmax(0,1fr)]",
|
|
179
|
-
"ds:has-[>[data-has-icon]]:[--kvl-label-track:fit-content(40%)]",
|
|
180
|
-
"ds:gap-x-[var(--spacing-md)]",
|
|
181
|
-
F[e],
|
|
182
|
-
// Each direct `data-component="key-value-pair"` child becomes
|
|
183
|
-
// a subgrid row spanning all three columns. The KVP's own
|
|
184
|
-
// flex layout still works inside the cell (icon shrinks-0,
|
|
185
|
-
// label shrinks-0, value flexes) — subgrid just aligns the
|
|
186
|
-
// boundaries between siblings.
|
|
187
|
-
'ds:[&>[data-component="key-value-pair"]]:grid',
|
|
188
|
-
'ds:[&>[data-component="key-value-pair"]]:grid-cols-subgrid',
|
|
189
|
-
'ds:[&>[data-component="key-value-pair"]]:col-span-3',
|
|
190
|
-
'ds:[&>[data-component="key-value-pair"]]:items-baseline',
|
|
191
|
-
// Unset the KVP's intra-row `gap-sm` so the subgrid inherits
|
|
192
|
-
// the parent KeyValueList's `gap-x-md` for every track gap
|
|
193
|
-
// (icon→label and label→value). `gap-0` here would override
|
|
194
|
-
// the parent's gap and crowd the icon against the label;
|
|
195
|
-
// `[gap:normal]` is the subgrid-spec way to defer to the
|
|
196
|
-
// parent.
|
|
197
|
-
'ds:[&>[data-component="key-value-pair"]]:[gap:normal]',
|
|
198
|
-
i
|
|
199
|
-
].filter(Boolean).join(" "),
|
|
200
|
-
...s,
|
|
201
|
-
children: t
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
);
|
|
205
|
-
G.displayName = "KeyValueList";
|
|
206
|
-
export {
|
|
207
|
-
G as K,
|
|
208
|
-
S as a
|
|
209
|
-
};
|
|
210
|
-
//# sourceMappingURL=key-value-pair-CB37UXsz.js.map
|