@alfadocs/ui-kit 1.103.0 → 1.104.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 (31) hide show
  1. package/dist/_chunks/{calendar-appointment-editor-dialog-DL6V6xfj.js → calendar-appointment-editor-dialog-DqyATSh3.js} +3 -3
  2. package/dist/_chunks/{care-plan-header-F4l0st2X.js → care-plan-header-k8FslxsU.js} +2 -2
  3. package/dist/_chunks/{contact-profile-card-LXbmhx48.js → contact-profile-card-uExd3pKC.js} +13 -13
  4. package/dist/_chunks/{key-value-pair-Cg7gjL7J.js → key-value-pair-DOTl68_U.js} +63 -63
  5. package/dist/_chunks/{patient-summary-card-B4Ijw_ig.js → patient-summary-card-DB7fv-Tr.js} +2 -2
  6. package/dist/_chunks/{payment-request-card-CrXhB5H-.js → payment-request-card-IR83TJax.js} +2 -2
  7. package/dist/_chunks/{periodontal-chart-JmsaYYb7.js → periodontal-chart-DqdUEFxK.js} +2 -2
  8. package/dist/_chunks/{periodontal-chart-card-TxZBO6kb.js → periodontal-chart-card-CCkzStlm.js} +2 -2
  9. package/dist/_chunks/stat-group-DSNnzkbW.js +107 -0
  10. package/dist/_chunks/{use-appointment-details-read-DawTb1SQ.js → use-appointment-details-read-CmqGGYCy.js} +2 -2
  11. package/dist/_chunks/{workflow-map-D_pyYK1B.js → workflow-map-B1jf6QaB.js} +2 -2
  12. package/dist/agent-catalog.json +1 -1
  13. package/dist/components/appointment-details-panel/index.js +1 -1
  14. package/dist/components/care-plan-header/index.js +1 -1
  15. package/dist/components/contact-profile-card/index.js +1 -1
  16. package/dist/components/index.d.ts +1 -0
  17. package/dist/components/key-value-pair/index.js +1 -1
  18. package/dist/components/patient-summary-card/index.js +1 -1
  19. package/dist/components/payment-card/index.js +1 -1
  20. package/dist/components/periodontal-chart/index.js +1 -1
  21. package/dist/components/periodontal-chart-card/index.js +1 -1
  22. package/dist/components/stat-group/index.d.ts +3 -0
  23. package/dist/components/stat-group/index.js +8 -0
  24. package/dist/components/stat-group/stat-group.d.ts +23 -0
  25. package/dist/components/workflow/index.js +1 -1
  26. package/dist/core.css +1 -1
  27. package/dist/host-compat.css +4 -1
  28. package/dist/index.js +880 -875
  29. package/dist/patterns/calendar/index.js +1 -1
  30. package/dist/tokens.css +1 -1
  31. package/package.json +5 -1
@@ -16,12 +16,12 @@ import { d as vt, c as qs, b as ra } from "./toast-BNoN8Qjh.js";
16
16
  import { T as Ga, a as Si } from "./tooltip-uEBdD1-5.js";
17
17
  import { A as he } from "./alert-9kEwDza3.js";
18
18
  import { B as ge } from "./button-DohK_Ak_.js";
19
- import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-DawTb1SQ.js";
19
+ import { f as ft, b as ja, c as _o, d as $o, e as zo, A as wi, u as Fo, R as wr, g as Ho, D as Ti, M as Vo, C as js, h as Uo, i as Ko, j as Go, k as qo, l as wa, I as jo, s as Yo } from "./use-appointment-details-read-CmqGGYCy.js";
20
20
  import { V as va } from "./visually-hidden-BHxEUGyT.js";
21
21
  import { C as Xo } from "./calendar-_sgjuH3L.js";
22
22
  import { C as lr } from "./card-C85_Ndhb.js";
23
23
  import { C as zn } from "./checkbox-a7Sh-dXb.js";
24
- import { a as Ua } from "./key-value-pair-Cg7gjL7J.js";
24
+ import { a as Ua } from "./key-value-pair-DOTl68_U.js";
25
25
  import { K as Jo } from "./kbd-Bx7eQv9f.js";
26
26
  import { R as Zo } from "./resource-chip-DB5jDwUO.js";
27
27
  import { T as ur } from "./tag-DOZGz0fT.js";
@@ -10983,4 +10983,4 @@ export {
10983
10983
  hp as r,
10984
10984
  Vn as u
10985
10985
  };
10986
- //# sourceMappingURL=calendar-appointment-editor-dialog-DL6V6xfj.js.map
10986
+ //# sourceMappingURL=calendar-appointment-editor-dialog-DqyATSh3.js.map
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as n, Fragment as N } from "react/jsx-runtime";
2
2
  import { forwardRef as F, useId as M } from "react";
3
3
  import { useTranslation as U } from "react-i18next";
4
4
  import { B as P } from "./badge-BUk4RjTS.js";
5
- import { a as G } from "./key-value-pair-Cg7gjL7J.js";
5
+ import { a as G } from "./key-value-pair-DOTl68_U.js";
6
6
  import { L as O } from "./link-DtCfnLnF.js";
7
7
  import { S as $ } from "./separator-Bdc9bqoJ.js";
8
8
  import { T as A } from "./timestamp-DPLDWdxA.js";
@@ -195,4 +195,4 @@ export {
195
195
  ee as C,
196
196
  X as c
197
197
  };
198
- //# sourceMappingURL=care-plan-header-F4l0st2X.js.map
198
+ //# sourceMappingURL=care-plan-header-k8FslxsU.js.map
@@ -4,14 +4,14 @@ import { c as me } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as he } from "react-i18next";
5
5
  import { B as k } from "./badge-BUk4RjTS.js";
6
6
  import { C as O } from "./card-C85_Ndhb.js";
7
- import { K as ge, a as V, S as ye } from "./key-value-pair-Cg7gjL7J.js";
7
+ import { K as ge, a as V, S as ye } from "./key-value-pair-DOTl68_U.js";
8
8
  import { L as d } from "./link-DtCfnLnF.js";
9
9
  import { S as ve } from "./specialty-list-BzalHR8_.js";
10
10
  import { b as be } from "./format-price-BcFBa-WP.js";
11
- import { u as Ce } from "./registry-DvAUVLHh.js";
11
+ import { u as xe } from "./registry-DvAUVLHh.js";
12
12
  import { S as w } from "./stethoscope-sZXGC43m.js";
13
13
  import { H as z } from "./heart--qCA4ffe.js";
14
- import { c as xe } from "./createLucideIcon-DhHxpK9K.js";
14
+ import { c as Ce } from "./createLucideIcon-DhHxpK9K.js";
15
15
  import { S as E } from "./shield-check-DCJALLVh.js";
16
16
  import { L } from "./languages-CGLX6Qpe.js";
17
17
  import { G as U } from "./globe-sHBW1JN5.js";
@@ -29,7 +29,7 @@ const Pe = [
29
29
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "2", key: "9lu3g6" }],
30
30
  ["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }],
31
31
  ["path", { d: "M6 12h.01M18 12h.01", key: "113zkx" }]
32
- ], W = xe("banknote", Pe), ke = {
32
+ ], W = Ce("banknote", Pe), ke = {
33
33
  id: "contact-profile-card",
34
34
  // Passive presentation surface — only exposes the rendered profession for
35
35
  // introspection. No interactive capability is backed by the handle.
@@ -131,8 +131,8 @@ const Ie = pe(
131
131
  insurances: v,
132
132
  firstVisitPriceCents: b,
133
133
  currencyCode: S = "EUR",
134
- profession: C,
135
- specialties: x,
134
+ profession: x,
135
+ specialties: C,
136
136
  specializedInFearPatients: D,
137
137
  googleMapsApiKey: M,
138
138
  mapZoom: Y = 14,
@@ -254,16 +254,16 @@ const Ie = pe(
254
254
  label: r("contactProfileCard.label.expertForAnxiousPatients"),
255
255
  value: r("contactProfileCard.value.yesShort")
256
256
  });
257
- const f = x && x.length > 0 ? x : void 0;
258
- C && !f && o.push({
257
+ const f = C && C.length > 0 ? C : void 0;
258
+ x && !f && o.push({
259
259
  key: "profession",
260
260
  icon: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
261
261
  label: r("contactProfileCard.label.profession"),
262
- value: C
263
- }), Ce(
262
+ value: x
263
+ }), xe(
264
264
  ke,
265
265
  {
266
- getProfession: () => C,
266
+ getProfession: () => x,
267
267
  getSpecialtyKeys: () => (f ?? []).map((n) => n.key)
268
268
  },
269
269
  P
@@ -295,7 +295,7 @@ const Ie = pe(
295
295
  V,
296
296
  {
297
297
  layout: "vertical",
298
- className: "ds:!gap-[var(--spacing-md)]",
298
+ className: "ds:!gap-x-[var(--spacing-md)]",
299
299
  icon: /* @__PURE__ */ e(w, { "aria-hidden": "true" }),
300
300
  label: r("contactProfileCard.label.profession"),
301
301
  value: /* @__PURE__ */ e(ve, { items: f })
@@ -366,4 +366,4 @@ export {
366
366
  Ie as b,
367
367
  ke as c
368
368
  };
369
- //# sourceMappingURL=contact-profile-card-LXbmhx48.js.map
369
+ //# sourceMappingURL=contact-profile-card-uExd3pKC.js.map
@@ -1,11 +1,11 @@
1
- import { jsx as a, jsxs as e, Fragment as p } from "react/jsx-runtime";
2
- import { forwardRef as B, useState as K, useCallback as E, useContext as F, createContext as M } from "react";
1
+ import { jsx as s, jsxs as e, Fragment as p } from "react/jsx-runtime";
2
+ import { forwardRef as B, useState as L, useCallback as F, useContext as M, createContext as q } from "react";
3
3
  import { c as R } from "./index-D2ZczOXr.js";
4
- import { useTranslation as q } from "react-i18next";
5
- import { I as L } from "./icon-button-S8_weU3g.js";
6
- import { C as T } from "./check-DrFSN__t.js";
7
- import { C as _ } from "./copy-vRpqqHtY.js";
8
- const D = R(
4
+ import { useTranslation as D } from "react-i18next";
5
+ import { I as T } from "./icon-button-S8_weU3g.js";
6
+ import { C as _ } from "./check-DrFSN__t.js";
7
+ import { C as $ } from "./copy-vRpqqHtY.js";
8
+ const H = R(
9
9
  "type-body ds:text-foreground ds:min-w-0 ds:[unicode-bidi:isolate]",
10
10
  {
11
11
  variants: {
@@ -81,89 +81,89 @@ const D = R(
81
81
  layout: "horizontal",
82
82
  hasIcon: !1
83
83
  }
84
- }), f = M(!1), ea = ({
84
+ }), g = q(!1), ns = ({
85
85
  children: n,
86
- className: l
87
- }) => /* @__PURE__ */ a(f.Provider, { value: !0, children: /* @__PURE__ */ a("dl", { className: `ds:m-0 ${l ?? ""}`.trim(), children: n }) }), H = B(
86
+ className: o
87
+ }) => /* @__PURE__ */ s(g.Provider, { value: !0, children: /* @__PURE__ */ s("dl", { className: `ds:m-0 ${o ?? ""}`.trim(), children: n }) }), J = B(
88
88
  ({
89
89
  label: n,
90
- labelNode: l,
91
- value: o,
92
- layout: s = "horizontal",
93
- alignValue: i = "start",
90
+ labelNode: o,
91
+ value: i,
92
+ layout: a = "horizontal",
93
+ alignValue: l = "start",
94
94
  mono: u = !1,
95
95
  copyable: r = !1,
96
96
  copyText: A,
97
97
  icon: c,
98
- className: y,
99
- ...g
98
+ className: h,
99
+ ...y
100
100
  }, k) => {
101
- const { t: d } = q("ui"), [x, N] = K(!1), [V, m] = K(""), h = A ?? (typeof o == "string" ? o : void 0), C = E(async () => {
102
- if (h)
101
+ const { t: d } = D("ui"), [x, N] = L(!1), [V, m] = L(""), v = A ?? (typeof i == "string" ? i : void 0), C = F(async () => {
102
+ if (v)
103
103
  try {
104
- await navigator.clipboard.writeText(h), N(!0), m(d("keyValuePair.copied")), setTimeout(() => {
104
+ await navigator.clipboard.writeText(v), N(!0), m(d("keyValuePair.copied")), setTimeout(() => {
105
105
  N(!1), m("");
106
106
  }, 2e3);
107
107
  } catch {
108
108
  m(d("keyValuePair.notAvailable")), setTimeout(() => m(""), 3e3);
109
109
  }
110
- }, [h, d]), z = D({
111
- layout: s,
112
- alignValue: i,
110
+ }, [v, d]), z = H({
111
+ layout: a,
112
+ alignValue: l,
113
113
  mono: u
114
- }), t = c != null, G = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", v = /* @__PURE__ */ e(p, { children: [
114
+ }), t = c != null, G = "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-0 ds:flex-1", f = /* @__PURE__ */ e(p, { children: [
115
115
  /* @__PURE__ */ e("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: [
116
- l ?? n,
117
- /* @__PURE__ */ a("span", { className: "ds:sr-only", children: ": " })
116
+ o ?? n,
117
+ /* @__PURE__ */ s("span", { className: "ds:sr-only", children: ": " })
118
118
  ] }),
119
- /* @__PURE__ */ a("span", { className: z, children: o }),
120
- r && /* @__PURE__ */ a(
121
- L,
119
+ /* @__PURE__ */ s("span", { className: z, children: i }),
120
+ r && /* @__PURE__ */ s(
121
+ T,
122
122
  {
123
- icon: x ? /* @__PURE__ */ a(T, {}) : /* @__PURE__ */ a(_, {}),
123
+ icon: x ? /* @__PURE__ */ s(_, {}) : /* @__PURE__ */ s($, {}),
124
124
  size: "sm",
125
125
  "aria-label": d("keyValuePair.copy", { label: n }),
126
126
  onClick: C,
127
127
  intent: "ghost",
128
- className: s === "horizontal" ? (
128
+ className: a === "horizontal" ? (
129
129
  // Only one element on the row may claim the slack. When
130
130
  // the value is pinned it has already taken it with its
131
131
  // own `ms-auto`; a second auto margin here would split
132
132
  // the free space between them and strand the value in
133
133
  // the middle of the row instead of at its end.
134
- i === "end" ? "ds:shrink-0" : "ds:ms-auto ds:shrink-0"
134
+ l === "end" ? "ds:shrink-0" : "ds:ms-auto ds:shrink-0"
135
135
  ) : "ds:self-start"
136
136
  }
137
137
  )
138
138
  ] });
139
- if (F(f)) {
140
- const P = r ? /* @__PURE__ */ a(
141
- L,
139
+ if (M(g)) {
140
+ const P = r ? /* @__PURE__ */ s(
141
+ T,
142
142
  {
143
- icon: x ? /* @__PURE__ */ a(T, {}) : /* @__PURE__ */ a(_, {}),
143
+ icon: x ? /* @__PURE__ */ s(_, {}) : /* @__PURE__ */ s($, {}),
144
144
  size: "sm",
145
145
  "aria-label": d("keyValuePair.copy", { label: n }),
146
146
  onClick: C,
147
147
  intent: "ghost",
148
- className: s === "horizontal" ? i === "end" ? "ds:shrink-0" : "ds:ms-auto ds:shrink-0" : "ds:self-start"
148
+ className: a === "horizontal" ? l === "end" ? "ds:shrink-0" : "ds:ms-auto ds:shrink-0" : "ds:self-start"
149
149
  }
150
- ) : null, b = r ? /* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: V }) : null, w = t ? /* @__PURE__ */ a(
150
+ ) : null, b = r ? /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: V }) : null, w = t ? /* @__PURE__ */ s(
151
151
  "span",
152
152
  {
153
153
  "aria-hidden": "true",
154
154
  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",
155
155
  children: c
156
156
  }
157
- ) : null, I = /* @__PURE__ */ a("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: l ?? n }), S = /* @__PURE__ */ a("span", { className: z, children: o }), $ = s === "vertical";
158
- return /* @__PURE__ */ a(
157
+ ) : null, I = /* @__PURE__ */ s("span", { className: "type-label ds:text-muted-foreground ds:shrink-0", children: o ?? n }), S = /* @__PURE__ */ s("span", { className: z, children: i }), K = a === "vertical", E = K ? `ds:grid ${t ? "ds:grid-cols-[1rem_minmax(0,1fr)] ds:gap-x-[var(--spacing-sm)]" : "ds:grid-cols-1"} ${h ?? ""}` : j({ layout: a, hasIcon: t, className: h });
158
+ return /* @__PURE__ */ s(
159
159
  "div",
160
160
  {
161
161
  ref: k,
162
- className: j({ layout: s, hasIcon: t, className: y }),
162
+ className: E,
163
163
  "data-component": "key-value-pair",
164
164
  "data-has-icon": t ? "" : void 0,
165
- ...g,
166
- children: $ ? (
165
+ ...y,
166
+ children: K ? (
167
167
  // A stacked pair needs real boxes: the dd sits under the dt,
168
168
  // in the label column.
169
169
  /* @__PURE__ */ e(p, { children: [
@@ -207,13 +207,13 @@ const D = R(
207
207
  "div",
208
208
  {
209
209
  ref: k,
210
- className: j({ layout: s, hasIcon: t, className: y }),
210
+ className: j({ layout: a, hasIcon: t, className: h }),
211
211
  "data-component": "key-value-pair",
212
212
  "data-has-icon": t ? "" : void 0,
213
- ...g,
213
+ ...y,
214
214
  children: [
215
215
  t ? /* @__PURE__ */ e(p, { children: [
216
- /* @__PURE__ */ a(
216
+ /* @__PURE__ */ s(
217
217
  "span",
218
218
  {
219
219
  "aria-hidden": "true",
@@ -221,23 +221,23 @@ const D = R(
221
221
  children: c
222
222
  }
223
223
  ),
224
- s === "horizontal" ? v : /* @__PURE__ */ a("div", { className: G, children: v })
225
- ] }) : v,
226
- /* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: V })
224
+ a === "horizontal" ? f : /* @__PURE__ */ s("div", { className: G, children: f })
225
+ ] }) : f,
226
+ /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: V })
227
227
  ]
228
228
  }
229
229
  );
230
230
  }
231
231
  );
232
- H.displayName = "KeyValuePair";
233
- const J = {
232
+ J.displayName = "KeyValuePair";
233
+ const O = {
234
234
  sm: "ds:gap-y-[var(--spacing-sm)]",
235
235
  md: "ds:gap-y-[var(--spacing-md)]",
236
236
  lg: "ds:gap-y-[var(--spacing-lg)]"
237
- }, O = B(
238
- ({ children: n, className: l, rowGap: o = "md", semantic: s = !1, ...i }, u) => {
239
- const r = s ? "dl" : "div";
240
- return /* @__PURE__ */ a(f.Provider, { value: s, children: /* @__PURE__ */ a(
237
+ }, Q = B(
238
+ ({ children: n, className: o, rowGap: i = "md", semantic: a = !1, ...l }, u) => {
239
+ const r = a ? "dl" : "div";
240
+ return /* @__PURE__ */ s(g.Provider, { value: a, children: /* @__PURE__ */ s(
241
241
  r,
242
242
  {
243
243
  ref: u,
@@ -250,7 +250,7 @@ const J = {
250
250
  "ds:grid ds:grid-cols-[auto_var(--kvl-label-track,auto)_minmax(0,1fr)]",
251
251
  "ds:has-[>[data-has-icon]]:[--kvl-label-track:fit-content(40%)]",
252
252
  "ds:gap-x-[var(--spacing-md)]",
253
- J[o],
253
+ O[i],
254
254
  // Each direct `data-component="key-value-pair"` child becomes
255
255
  // a subgrid row spanning all three columns. The KVP's own
256
256
  // flex layout still works inside the cell (icon shrinks-0,
@@ -269,19 +269,19 @@ const J = {
269
269
  'ds:[&>[data-component="key-value-pair"]]:[gap:normal]',
270
270
  // A `dl` has the browser's default margin reset by the kit's base
271
271
  // layer, but say it: the list must not move when it turns semantic.
272
- s ? "ds:m-0" : "",
273
- l
272
+ a ? "ds:m-0" : "",
273
+ o
274
274
  ].filter(Boolean).join(" "),
275
- ...i,
275
+ ...l,
276
276
  children: n
277
277
  }
278
278
  ) });
279
279
  }
280
280
  );
281
- O.displayName = "KeyValueList";
281
+ Q.displayName = "KeyValueList";
282
282
  export {
283
- O as K,
284
- ea as S,
285
- H as a
283
+ Q as K,
284
+ ns as S,
285
+ J as a
286
286
  };
287
- //# sourceMappingURL=key-value-pair-Cg7gjL7J.js.map
287
+ //# sourceMappingURL=key-value-pair-DOTl68_U.js.map
@@ -6,7 +6,7 @@ import { A as re } from "./avatar-Dp5apm1d.js";
6
6
  import { B as D } from "./badge-BUk4RjTS.js";
7
7
  import { I as Ue } from "./icon-button-S8_weU3g.js";
8
8
  import { C as le } from "./card-C85_Ndhb.js";
9
- import { K as Be, a as Re } from "./key-value-pair-Cg7gjL7J.js";
9
+ import { K as Be, a as Re } from "./key-value-pair-DOTl68_U.js";
10
10
  import { L as V } from "./link-DtCfnLnF.js";
11
11
  import { S as k } from "./skeleton-tTWJpvAq.js";
12
12
  import { T as oe } from "./tag-DOZGz0fT.js";
@@ -548,4 +548,4 @@ export {
548
548
  Ca as P,
549
549
  ma as p
550
550
  };
551
- //# sourceMappingURL=patient-summary-card-B4Ijw_ig.js.map
551
+ //# sourceMappingURL=patient-summary-card-DB7fv-Tr.js.map
@@ -5,7 +5,7 @@ import { useTranslation as M } from "react-i18next";
5
5
  import { B as O } from "./badge-BUk4RjTS.js";
6
6
  import { C as D } from "./card-C85_Ndhb.js";
7
7
  import { D as d } from "./description-list-BxzDN9o2.js";
8
- import { K as Y, a as H } from "./key-value-pair-Cg7gjL7J.js";
8
+ import { K as Y, a as H } from "./key-value-pair-DOTl68_U.js";
9
9
  import { T as j, A as ae } from "./transaction-chip-CohY6sTA.js";
10
10
  import { u as W } from "./registry-DvAUVLHh.js";
11
11
  import { H as te } from "./hash-CSQ9SChR.js";
@@ -439,4 +439,4 @@ export {
439
439
  Ce as b,
440
440
  me as p
441
441
  };
442
- //# sourceMappingURL=payment-request-card-CrXhB5H-.js.map
442
+ //# sourceMappingURL=payment-request-card-IR83TJax.js.map
@@ -5,7 +5,7 @@ import { useTranslation as gt } from "react-i18next";
5
5
  import { u as ft } from "./registry-DvAUVLHh.js";
6
6
  import { o as bt } from "./floating-clearance-nIx9fFLy.js";
7
7
  import { P as Se, i as Te, h as vt, g as yt, f as xt, Y as Nt } from "./tooth-data-DR8Kdnup.js";
8
- import { P as Ye } from "./periodontal-chart-card-TxZBO6kb.js";
8
+ import { P as Ye } from "./periodontal-chart-card-CCkzStlm.js";
9
9
  const j = {
10
10
  type: "string",
11
11
  description: "FDI tooth id ('11'–'48' permanent, '51'–'85' primary)."
@@ -1410,4 +1410,4 @@ export {
1410
1410
  ze as s,
1411
1411
  sr as t
1412
1412
  };
1413
- //# sourceMappingURL=periodontal-chart-JmsaYYb7.js.map
1413
+ //# sourceMappingURL=periodontal-chart-DqdUEFxK.js.map
@@ -4,7 +4,7 @@ import { c as R } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
5
  import { B as re } from "./badge-BUk4RjTS.js";
6
6
  import { C as S } from "./card-C85_Ndhb.js";
7
- import { K as ne, a as se } from "./key-value-pair-Cg7gjL7J.js";
7
+ import { K as ne, a as se } from "./key-value-pair-DOTl68_U.js";
8
8
  import { u as oe } from "./registry-DvAUVLHh.js";
9
9
  const de = {
10
10
  id: "periodontal-chart-card",
@@ -452,4 +452,4 @@ export {
452
452
  he as a,
453
453
  de as p
454
454
  };
455
- //# sourceMappingURL=periodontal-chart-card-TxZBO6kb.js.map
455
+ //# sourceMappingURL=periodontal-chart-card-CCkzStlm.js.map
@@ -0,0 +1,107 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as S, Children as j } from "react";
3
+ import { c as e } from "./index-D2ZczOXr.js";
4
+ const a = 6;
5
+ function w(s, o) {
6
+ const t = Math.max(1, Math.min(o, a));
7
+ if (s <= t) return Math.max(1, s);
8
+ const n = Math.ceil(s / t), r = Math.ceil(s / n);
9
+ for (let l = r; l >= 2; l -= 1)
10
+ if (s % l !== 1) return l;
11
+ return r;
12
+ }
13
+ function N(s, o) {
14
+ return o > 1 && s > o && s % o === 1;
15
+ }
16
+ const b = {
17
+ 2: {
18
+ 1: "ds:@[400px]:grid-cols-1",
19
+ 2: "ds:@[400px]:grid-cols-2",
20
+ 3: "ds:@[400px]:grid-cols-3",
21
+ 4: "ds:@[400px]:grid-cols-4",
22
+ 5: "ds:@[400px]:grid-cols-5",
23
+ 6: "ds:@[400px]:grid-cols-6"
24
+ },
25
+ 3: {
26
+ 1: "ds:@[608px]:grid-cols-1",
27
+ 2: "ds:@[608px]:grid-cols-2",
28
+ 3: "ds:@[608px]:grid-cols-3",
29
+ 4: "ds:@[608px]:grid-cols-4",
30
+ 5: "ds:@[608px]:grid-cols-5",
31
+ 6: "ds:@[608px]:grid-cols-6"
32
+ },
33
+ 4: {
34
+ 1: "ds:@[816px]:grid-cols-1",
35
+ 2: "ds:@[816px]:grid-cols-2",
36
+ 3: "ds:@[816px]:grid-cols-3",
37
+ 4: "ds:@[816px]:grid-cols-4",
38
+ 5: "ds:@[816px]:grid-cols-5",
39
+ 6: "ds:@[816px]:grid-cols-6"
40
+ },
41
+ 5: {
42
+ 1: "ds:@[1024px]:grid-cols-1",
43
+ 2: "ds:@[1024px]:grid-cols-2",
44
+ 3: "ds:@[1024px]:grid-cols-3",
45
+ 4: "ds:@[1024px]:grid-cols-4",
46
+ 5: "ds:@[1024px]:grid-cols-5",
47
+ 6: "ds:@[1024px]:grid-cols-6"
48
+ },
49
+ 6: {
50
+ 1: "ds:@[1232px]:grid-cols-1",
51
+ 2: "ds:@[1232px]:grid-cols-2",
52
+ 3: "ds:@[1232px]:grid-cols-3",
53
+ 4: "ds:@[1232px]:grid-cols-4",
54
+ 5: "ds:@[1232px]:grid-cols-5",
55
+ 6: "ds:@[1232px]:grid-cols-6"
56
+ }
57
+ }, G = {
58
+ 2: { full: "ds:@[400px]:col-span-full", one: "ds:@[400px]:col-span-1" },
59
+ 3: { full: "ds:@[608px]:col-span-full", one: "ds:@[608px]:col-span-1" },
60
+ 4: { full: "ds:@[816px]:col-span-full", one: "ds:@[816px]:col-span-1" },
61
+ 5: { full: "ds:@[1024px]:col-span-full", one: "ds:@[1024px]:col-span-1" },
62
+ 6: { full: "ds:@[1232px]:col-span-full", one: "ds:@[1232px]:col-span-1" }
63
+ }, A = e("ds:@container ds:block ds:w-full ds:min-w-0"), C = e(
64
+ [
65
+ "ds:grid ds:list-none ds:m-0 ds:p-0 ds:grid-cols-1",
66
+ "ds:gap-[var(--spacing-md)] ds:items-stretch"
67
+ ].join(" ")
68
+ ), O = e("ds:flex ds:min-w-0 ds:[&>*]:w-full ds:[&>*]:min-w-0"), v = S(
69
+ function({ children: o, maxColumns: t = a, className: n, ...r }, l) {
70
+ const x = j.toArray(o), c = x.length, m = Math.min(t, a), g = [], u = {};
71
+ for (let d = 2; d <= a; d += 1) {
72
+ const i = w(c, Math.min(d, m));
73
+ g.push(b[d][i]), u[d] = N(c, i);
74
+ }
75
+ return /* @__PURE__ */ p(
76
+ "div",
77
+ {
78
+ ref: l,
79
+ "data-component": "stat-group",
80
+ "data-count": c,
81
+ role: r["aria-label"] ? "group" : void 0,
82
+ className: [A(), n].filter(Boolean).join(" "),
83
+ ...r,
84
+ children: /* @__PURE__ */ p("ul", { className: [C(), ...g].join(" "), children: x.map((d, i) => {
85
+ const h = i === c - 1 ? Object.entries(G).map(([M, f]) => u[Number(M)] ? f.full : f.one).join(" ") : "";
86
+ return /* @__PURE__ */ p(
87
+ "li",
88
+ {
89
+ "data-stat-group-item": "",
90
+ className: [O(), h].filter(Boolean).join(" "),
91
+ children: d
92
+ },
93
+ i
94
+ );
95
+ }) })
96
+ }
97
+ );
98
+ }
99
+ );
100
+ v.displayName = "StatGroup";
101
+ export {
102
+ a as S,
103
+ v as a,
104
+ N as b,
105
+ w as s
106
+ };
107
+ //# sourceMappingURL=stat-group-DSNnzkbW.js.map
@@ -16,7 +16,7 @@ import { E as zt } from "./editable-description-KU56SP4P.js";
16
16
  import { N as Xe } from "./note-timeline-BrjHBQfx.js";
17
17
  import { P as Ot } from "./panel-header-CbtlTe85.js";
18
18
  import { P as Ge } from "./panel-subview-DCyvn-49.js";
19
- import { P as _t } from "./patient-summary-card-B4Ijw_ig.js";
19
+ import { P as _t } from "./patient-summary-card-DB7fv-Tr.js";
20
20
  import { S as ne } from "./section-card-D1sV4Voz.js";
21
21
  import { C as nn, S as ue } from "./skeleton-tTWJpvAq.js";
22
22
  import { T as an } from "./text-area-COMVJ1yE.js";
@@ -2195,4 +2195,4 @@ export {
2195
2195
  Kn as s,
2196
2196
  _s as u
2197
2197
  };
2198
- //# sourceMappingURL=use-appointment-details-read-DawTb1SQ.js.map
2198
+ //# sourceMappingURL=use-appointment-details-read-CmqGGYCy.js.map
@@ -4,7 +4,7 @@ import { c as j } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as M } from "react-i18next";
5
5
  import { C } from "./card-C85_Ndhb.js";
6
6
  import { B as ye } from "./badge-BUk4RjTS.js";
7
- import { a as Z } from "./key-value-pair-Cg7gjL7J.js";
7
+ import { a as Z } from "./key-value-pair-DOTl68_U.js";
8
8
  import { T as xe } from "./timestamp-DPLDWdxA.js";
9
9
  import { I as S } from "./icon-button-S8_weU3g.js";
10
10
  import { P as $ } from "./pencil-B1sKKyuT.js";
@@ -1321,4 +1321,4 @@ export {
1321
1321
  ee as r,
1322
1322
  D as w
1323
1323
  };
1324
- //# sourceMappingURL=workflow-map-D_pyYK1B.js.map
1324
+ //# sourceMappingURL=workflow-map-B1jf6QaB.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.103.0",
3
+ "packageVersion": "1.104.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,4 +1,4 @@
1
- import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-DawTb1SQ.js";
1
+ import { A as e, a as n, p, u as s } from "../../_chunks/use-appointment-details-read-CmqGGYCy.js";
2
2
  export {
3
3
  e as AppointmentDetailsPanel,
4
4
  n as appointmentDetailsPanelAgent,
@@ -1,4 +1,4 @@
1
- import { C as r, c as n } from "../../_chunks/care-plan-header-F4l0st2X.js";
1
+ import { C as r, c as n } from "../../_chunks/care-plan-header-k8FslxsU.js";
2
2
  export {
3
3
  r as CarePlanHeader,
4
4
  n as carePlanHeaderAgent
@@ -1,4 +1,4 @@
1
- import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-LXbmhx48.js";
1
+ import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-uExd3pKC.js";
2
2
  export {
3
3
  _ as CONTACT_PROFILE_CARD_ROW_ICONS,
4
4
  O as CONTACT_PROFILE_CARD_ROW_KEYS,
@@ -95,6 +95,7 @@ export * from './skeleton';
95
95
  export * from './smart-date';
96
96
  export * from './sparkline';
97
97
  export * from './stat';
98
+ export * from './stat-group';
98
99
  export * from './tag';
99
100
  export * from './timeline';
100
101
  export * from './timestamp';
@@ -1,4 +1,4 @@
1
- import { K as r, a as s, S as u } from "../../_chunks/key-value-pair-Cg7gjL7J.js";
1
+ import { K as r, a as s, S as u } from "../../_chunks/key-value-pair-DOTl68_U.js";
2
2
  export {
3
3
  r as KeyValueList,
4
4
  s as KeyValuePair,
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-B4Ijw_ig.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-DB7fv-Tr.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-CrXhB5H-.js";
1
+ import { P as t, a as n, p as r, b as s } from "../../_chunks/payment-request-card-IR83TJax.js";
2
2
  export {
3
3
  t as PaymentCard,
4
4
  n as PaymentRequestCard,
@@ -1,4 +1,4 @@
1
- import { B as t, M as s, P as e, a as i, b as E, c as r, d as P, S as _, e as n, f as A, g as d, h as l, p as T, i as p, j as C, k as L, s as N, t as O, l as R } from "../../_chunks/periodontal-chart-JmsaYYb7.js";
1
+ import { B as t, M as s, P as e, a as i, b as E, c as r, d as P, S as _, e as n, f as A, g as d, h as l, p as T, i as p, j as C, k as L, s as N, t as O, l as R } from "../../_chunks/periodontal-chart-DqdUEFxK.js";
2
2
  export {
3
3
  t as BLEEDING_WARN_PERCENT,
4
4
  s as MODERATE_POCKET_MM,
@@ -1,4 +1,4 @@
1
- import { P as o, a as t, p as d } from "../../_chunks/periodontal-chart-card-TxZBO6kb.js";
1
+ import { P as o, a as t, p as d } from "../../_chunks/periodontal-chart-card-CCkzStlm.js";
2
2
  export {
3
3
  o as PERIODONTAL_SITE_ORDER,
4
4
  t as PeriodontalChartCard,
@@ -0,0 +1,3 @@
1
+ export { StatGroup, statGroupColumns, statGroupHasOrphan, STAT_GROUP_MAX_COLUMNS, } from './stat-group';
2
+ export type { StatGroupProps, StatGroupColumns } from './stat-group';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { S as t, a as o, s as r, b as p } from "../../_chunks/stat-group-DSNnzkbW.js";
2
+ export {
3
+ t as STAT_GROUP_MAX_COLUMNS,
4
+ o as StatGroup,
5
+ r as statGroupColumns,
6
+ p as statGroupHasOrphan
7
+ };
8
+ //# sourceMappingURL=index.js.map