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