@alfadocs/ui-kit 1.10.1 → 1.12.4

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 (118) hide show
  1. package/dist/_chunks/{actions-cell-renderer-xfSYiTXQ.js → actions-cell-renderer-BCEjn3-f.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-d44s_whc.js → anamnesis-summary-rows-BfhxWPO3.js} +1421 -1418
  3. package/dist/_chunks/appointment-timeline-DCn0Jx55.js +403 -0
  4. package/dist/_chunks/{balance-badge-cell-C_Qz76x7.js → balance-badge-cell-BrlikHfT.js} +317 -290
  5. package/dist/_chunks/booking-CBHKdsZl.js +2906 -0
  6. package/dist/_chunks/{chart-Bkr1Sh4o.js → chart-C6eHTxkO.js} +2 -2
  7. package/dist/_chunks/{contact-profile-card-CE9OJKcl.js → contact-profile-card-BMIBr5s9.js} +104 -125
  8. package/dist/_chunks/{control-room-rail-Cj2iX9h_.js → control-room-rail-iO_BCaq1.js} +2 -2
  9. package/dist/_chunks/{editable-currency-cell-renderer-zLf_bXvL.js → editable-currency-cell-renderer-B7TVZ5ZJ.js} +2 -2
  10. package/dist/_chunks/{face-scheme-BfDi4YkW.js → face-scheme-CZaKm6fG.js} +2 -2
  11. package/dist/_chunks/{file-manager-Df6hyUYg.js → file-manager-Moc7sUFj.js} +3 -3
  12. package/dist/_chunks/format-price-DNqXPa_q.js +61 -0
  13. package/dist/_chunks/{header-settings-CVC_davE.js → header-settings-J-ZCAfir.js} +2 -2
  14. package/dist/_chunks/{icon-button-group-D6SVMteH.js → icon-button-group-VCCod3Hz.js} +154 -145
  15. package/dist/_chunks/{link-cell-renderer-Cp2MSlJl.js → link-cell-renderer-CenJx-_7.js} +197 -181
  16. package/dist/_chunks/{marketplace-app-shell-Chfdia7m.js → marketplace-app-shell-DDQXQ8hX.js} +2 -2
  17. package/dist/_chunks/{notes-panel-e9cJWVRg.js → notes-panel-CymneXtl.js} +93 -91
  18. package/dist/_chunks/{practice-results-BEsAdW-B.js → practice-results-D7ygCj_W.js} +333 -291
  19. package/dist/_chunks/{signature-request-CW30B77U.js → signature-request-DVDTKLjM.js} +2 -2
  20. package/dist/_chunks/{stepper-accordion-BeVMZPuG.js → stepper-accordion-DmVykr5F.js} +91 -88
  21. package/dist/_chunks/{theme-toggle-DuMhQNFS.js → theme-toggle-uEwoKjl3.js} +2 -2
  22. package/dist/_chunks/{tool-rail-CHyUmulN.js → tool-rail-8Scslq3X.js} +2 -2
  23. package/dist/_chunks/{whatsapp-button-Ca9towA4.js → whatsapp-button-CuFIHJzG.js} +27 -19
  24. package/dist/agent-catalog.json +12 -5
  25. package/dist/agent-i18n/en.json +4 -3
  26. package/dist/components/_shared/format-price.d.ts +21 -0
  27. package/dist/components/_shared/index.d.ts +1 -0
  28. package/dist/components/_shared/stepper.d.ts +28 -2
  29. package/dist/components/appointment-card/appointment-card.d.ts +1 -1
  30. package/dist/components/appointment-timeline/appointment-timeline.d.ts +8 -0
  31. package/dist/components/appointment-timeline/index.js +1 -1
  32. package/dist/components/booking/booking-types.d.ts +15 -2
  33. package/dist/components/booking/index.js +1 -1
  34. package/dist/components/chart/index.js +1 -1
  35. package/dist/components/contact-profile-card/index.js +1 -1
  36. package/dist/components/control-room-rail/index.js +1 -1
  37. package/dist/components/data-table/filters/date-range-filter.d.ts +22 -0
  38. package/dist/components/data-table/index.js +3 -3
  39. package/dist/components/face-scheme/index.js +1 -1
  40. package/dist/components/file-manager/index.js +1 -1
  41. package/dist/components/header-settings/index.js +1 -1
  42. package/dist/components/icon-button-group/index.js +1 -1
  43. package/dist/components/notes-panel/index.js +1 -1
  44. package/dist/components/notes-panel/notes-panel.d.ts +6 -0
  45. package/dist/components/patient-table/index.js +1 -1
  46. package/dist/components/practice-results/index.js +1 -1
  47. package/dist/components/practice-results/practice-results.d.ts +18 -0
  48. package/dist/components/stepper-accordion/index.js +1 -1
  49. package/dist/components/theme-toggle/index.js +1 -1
  50. package/dist/components/tool-rail/index.js +1 -1
  51. package/dist/components/tool-rail/tool-rail.d.ts +1 -1
  52. package/dist/components/whatsapp-button/index.js +1 -1
  53. package/dist/host-compat.css +7 -1
  54. package/dist/i18n/locales/ar.d.ts +4 -0
  55. package/dist/i18n/locales/ar.js +5 -1
  56. package/dist/i18n/locales/de.d.ts +5 -1
  57. package/dist/i18n/locales/de.js +6 -2
  58. package/dist/i18n/locales/el.d.ts +4 -0
  59. package/dist/i18n/locales/el.js +5 -1
  60. package/dist/i18n/locales/en.d.ts +4 -0
  61. package/dist/i18n/locales/en.js +5 -1
  62. package/dist/i18n/locales/es.d.ts +5 -1
  63. package/dist/i18n/locales/es.js +6 -2
  64. package/dist/i18n/locales/fr.d.ts +5 -1
  65. package/dist/i18n/locales/fr.js +6 -2
  66. package/dist/i18n/locales/hi.d.ts +4 -0
  67. package/dist/i18n/locales/hi.js +5 -1
  68. package/dist/i18n/locales/it.d.ts +4 -0
  69. package/dist/i18n/locales/it.js +5 -1
  70. package/dist/i18n/locales/ja.d.ts +4 -0
  71. package/dist/i18n/locales/ja.js +5 -1
  72. package/dist/i18n/locales/nl.d.ts +5 -1
  73. package/dist/i18n/locales/nl.js +6 -2
  74. package/dist/i18n/locales/pl.d.ts +4 -0
  75. package/dist/i18n/locales/pl.js +5 -1
  76. package/dist/i18n/locales/pt.d.ts +5 -1
  77. package/dist/i18n/locales/pt.js +6 -2
  78. package/dist/i18n/locales/ro.d.ts +4 -0
  79. package/dist/i18n/locales/ro.js +5 -1
  80. package/dist/i18n/locales/ru.d.ts +4 -0
  81. package/dist/i18n/locales/ru.js +5 -1
  82. package/dist/i18n/locales/sq.d.ts +4 -0
  83. package/dist/i18n/locales/sq.js +5 -1
  84. package/dist/i18n/locales/sv.d.ts +4 -0
  85. package/dist/i18n/locales/sv.js +5 -1
  86. package/dist/i18n/locales/tr.d.ts +4 -0
  87. package/dist/i18n/locales/tr.js +5 -1
  88. package/dist/i18n/locales/zh.d.ts +4 -0
  89. package/dist/i18n/locales/zh.js +5 -1
  90. package/dist/index.js +20 -20
  91. package/dist/locales/ar.json +5 -1
  92. package/dist/locales/de.json +6 -2
  93. package/dist/locales/el.json +5 -1
  94. package/dist/locales/en.json +5 -1
  95. package/dist/locales/es.json +6 -2
  96. package/dist/locales/fr.json +6 -2
  97. package/dist/locales/hi.json +5 -1
  98. package/dist/locales/it.json +5 -1
  99. package/dist/locales/ja.json +5 -1
  100. package/dist/locales/nl.json +6 -2
  101. package/dist/locales/pl.json +5 -1
  102. package/dist/locales/pt.json +6 -2
  103. package/dist/locales/ro.json +5 -1
  104. package/dist/locales/ru.json +5 -1
  105. package/dist/locales/sq.json +5 -1
  106. package/dist/locales/sv.json +5 -1
  107. package/dist/locales/tr.json +5 -1
  108. package/dist/locales/zh.json +5 -1
  109. package/dist/patterns/anamnesis/anamnesis-config.d.ts +18 -7
  110. package/dist/patterns/anamnesis/anamnesis-types.d.ts +8 -0
  111. package/dist/patterns/anamnesis/index.js +1 -1
  112. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  113. package/dist/patterns/signature-request/index.js +1 -1
  114. package/dist/tokens.css +1 -1
  115. package/package.json +1 -1
  116. package/dist/_chunks/appointment-timeline-0mwtpErq.js +0 -388
  117. package/dist/_chunks/booking-DHkKcUIl.js +0 -2713
  118. package/dist/_chunks/languages-CGLX6Qpe.js +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.10.1",
3
+ "version": "1.12.4",
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,388 +0,0 @@
1
- import { jsxs as C, jsx as o, Fragment as ve } from "react/jsx-runtime";
2
- import { forwardRef as ke, useId as be, useMemo as M, useRef as T, useState as X, useCallback as x, useImperativeHandle as Te } from "react";
3
- import { c as xe } from "./index-D2ZczOXr.js";
4
- import { useTranslation as De } from "react-i18next";
5
- import { A as we } from "./appointment-card-Dzr3GeVz.js";
6
- import { B as K } from "./button-nJaPh_HC.js";
7
- import { B as Re } from "./button-group-CaxRJsNG.js";
8
- import { D as Ie } from "./date-picker-CepI_oI2.js";
9
- import { P as Se } from "./panel-header-D313n_9-.js";
10
- import { S as je } from "./skeleton-CZbwyJAA.js";
11
- import { E as Ce } from "./empty-state-X0sVPfVo.js";
12
- import { u as Z } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
13
- import { u as He } from "./use-prefers-reduced-motion-BMwIQRjB.js";
14
- import { u as Fe } from "./registry-DvAUVLHh.js";
15
- import { C as Me } from "./calendar-days-BGWklvE-.js";
16
- const Ne = {
17
- id: "appointment-timeline",
18
- // 'pick' backs select_item (non-persisting activation through
19
- // onOpenAppointment); 'scroll' backs jump_to_today, which re-anchors the
20
- // scroll viewport (mirrors practice-results' scroll_to_result).
21
- capabilities: ["scroll", "pick"],
22
- state: {
23
- items: {
24
- type: "Array<{ id: string; state: string }>",
25
- descriptionKey: "ui.agent.appointmentTimeline.state.items",
26
- description: "Currently-rendered appointments. Ids + lifecycle state only — never patient identity.",
27
- read: (n) => n.getItems()
28
- }
29
- },
30
- actions: {
31
- select_item: {
32
- safety: "read",
33
- argsType: "{ id: string }",
34
- argsSchema: {
35
- type: "object",
36
- properties: { id: { type: "string" } },
37
- required: ["id"]
38
- },
39
- idempotent: !0,
40
- descriptionKey: "ui.agent.appointmentTimeline.actions.selectItem",
41
- description: "Activate the appointment with the given id.",
42
- invoke: (n, i) => {
43
- n.selectItem(i.id);
44
- }
45
- },
46
- jump_to_today: {
47
- safety: "read",
48
- idempotent: !0,
49
- descriptionKey: "ui.agent.appointmentTimeline.actions.jumpToToday",
50
- description: "Re-anchor the timeline scroll on today's appointments.",
51
- invoke: (n) => {
52
- n.jumpToToday();
53
- }
54
- }
55
- },
56
- domHooks: {
57
- root: {
58
- attr: "data-component",
59
- value: "appointment-timeline",
60
- description: "Marks the AppointmentTimeline wrapper."
61
- },
62
- instanceId: {
63
- attr: "data-component-id",
64
- sourceProp: "id",
65
- description: "Sourced from the id prop. Required to address a specific timeline from the agent."
66
- },
67
- item: {
68
- attr: "data-appointment-id",
69
- description: "Stable appointment id emitted on each rendered AppointmentCard inside the timeline."
70
- }
71
- }
72
- }, O = 96, _e = xe(
73
- [
74
- "ds:flex ds:flex-col ds:h-full ds:min-h-0",
75
- "ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
76
- ].join(" "),
77
- { variants: { size: { sm: "", md: "" } }, defaultVariants: { size: "sm" } }
78
- ), ze = [
79
- "ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
80
- "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
81
- "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
82
- "ds:[--atl-mask-top:black] ds:[--atl-mask-bottom:black]",
83
- "ds:data-[fade-top=true]:[--atl-mask-top:transparent]",
84
- "ds:data-[fade-bottom=true]:[--atl-mask-bottom:transparent]",
85
- "ds:[mask-image:linear-gradient(to_bottom,var(--atl-mask-top)_0,black_var(--atl-fade-distance,var(--spacing-lg)),black_calc(100%-var(--atl-fade-distance,var(--spacing-lg))),var(--atl-mask-bottom)_100%)]",
86
- "ds:motion-reduce:[mask-image:none]",
87
- "ds:[.theme-accessible_&]:[mask-image:none]",
88
- "ds:forced-colors:[mask-image:none]",
89
- "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
90
- "ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
91
- "ds:forced-colors:focus-visible:outline-[CanvasText]"
92
- ].join(" ");
93
- function f(n) {
94
- const i = `${n.getMonth() + 1}`.padStart(2, "0"), l = `${n.getDate()}`.padStart(2, "0");
95
- return `${n.getFullYear()}-${i}-${l}`;
96
- }
97
- function Be(n) {
98
- const i = [...n].sort(
99
- (p, m) => +new Date(p.startIso) - +new Date(m.startIso)
100
- ), l = /* @__PURE__ */ new Map();
101
- for (const p of i) {
102
- const m = new Date(p.startIso), g = f(m);
103
- let c = l.get(g);
104
- c || (c = {
105
- key: g,
106
- date: new Date(m.getFullYear(), m.getMonth(), m.getDate()),
107
- items: []
108
- }, l.set(g, c)), c.items.push(p);
109
- }
110
- return [...l.values()];
111
- }
112
- const Ke = ke(
113
- ({
114
- id: n,
115
- items: i,
116
- nowIso: l,
117
- title: p,
118
- locale: m,
119
- currency: g,
120
- size: c = "sm",
121
- onOpenAppointment: h,
122
- onLoadEarlier: y,
123
- onLoadLater: v,
124
- hasMoreEarlier: D,
125
- hasMoreLater: k,
126
- loadingEarlier: w = !1,
127
- loadingLater: H = !1,
128
- showFilters: L = !0,
129
- onJumpToDate: F,
130
- emptyTitle: J,
131
- emptyDescription: ee,
132
- className: te,
133
- "aria-label": se,
134
- ...ne
135
- }, ie) => {
136
- const { t: a, i18n: oe } = De(), A = be(), P = He(), Y = m ?? oe.language, $ = p ?? a("appointmentTimeline.title"), r = M(
137
- () => l ? new Date(l) : /* @__PURE__ */ new Date(),
138
- [l]
139
- ), u = M(() => Be(i), [i]), E = D ?? !!y, q = k ?? !!v, N = M(() => {
140
- if (u.length === 0) return;
141
- const e = f(r), t = u.map((s) => s.key);
142
- return t.includes(e) ? e : t.find((s) => s >= e) ?? t[t.length - 1];
143
- }, [u, r]), R = T(null), I = T(/* @__PURE__ */ new Map()), G = T(!1), _ = T(void 0), V = T(0), [ae, re] = X(!1), [le, ce] = X(!1), S = x(() => {
144
- const e = R.current;
145
- if (!e) return;
146
- const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
147
- re(t > 1), ce(t + d < s - 1);
148
- }, []), j = x(
149
- (e, t) => {
150
- const s = R.current;
151
- if (!s) return;
152
- let d = I.current.get(e);
153
- if (!d) {
154
- const B = [...I.current.keys()].sort(), U = B.find((ye) => ye >= e) ?? B[B.length - 1];
155
- d = U ? I.current.get(U) : void 0;
156
- }
157
- if (!d) return;
158
- const he = d.getBoundingClientRect().top - s.getBoundingClientRect().top;
159
- s.scrollTo({
160
- top: s.scrollTop + he,
161
- behavior: t && !P ? "smooth" : "auto"
162
- });
163
- },
164
- [P]
165
- );
166
- Z(() => {
167
- var s;
168
- const e = R.current;
169
- if (!e) return;
170
- const t = (s = u[0]) == null ? void 0 : s.key;
171
- if (!G.current)
172
- u.length > 0 && N && (j(N, !1), G.current = !0);
173
- else if (_.current && t && t < _.current) {
174
- const d = e.scrollHeight - V.current;
175
- d > 0 && (e.scrollTop += d);
176
- }
177
- _.current = t, V.current = e.scrollHeight, S();
178
- }, [u, N, j, S]), Z(() => {
179
- const e = R.current;
180
- if (!e || typeof ResizeObserver > "u") return;
181
- const t = new ResizeObserver(S);
182
- return t.observe(e), () => t.disconnect();
183
- }, [S]);
184
- const de = x(() => {
185
- S();
186
- const e = R.current;
187
- if (!e) return;
188
- const { scrollTop: t, scrollHeight: s, clientHeight: d } = e;
189
- y && E && !w && t <= O && y(), v && q && !H && s - t - d <= O && v();
190
- }, [
191
- S,
192
- y,
193
- v,
194
- E,
195
- q,
196
- w,
197
- H
198
- ]), b = x(
199
- (e) => {
200
- const t = f(e), s = I.current.has(t);
201
- j(t, !0), s || F == null || F(e.toISOString());
202
- },
203
- [j, F]
204
- ), me = x(() => b(r), [b, r]), pe = x(() => {
205
- const e = new Date(r), t = (e.getDay() + 6) % 7;
206
- e.setDate(e.getDate() - t), b(e);
207
- }, [b, r]), ue = x(() => {
208
- b(new Date(r.getFullYear(), r.getMonth(), 1));
209
- }, [b, r]), z = T(i);
210
- z.current = i;
211
- const W = T(null);
212
- Te(ie, () => W.current, []);
213
- const fe = M(
214
- () => ({
215
- getItems: () => z.current.map((e) => ({ id: e.id, state: e.state })),
216
- selectItem: (e) => {
217
- const t = z.current.find((s) => s.id === e);
218
- t && (h == null || h(t));
219
- },
220
- jumpToToday: () => j(f(r), !0)
221
- }),
222
- [h, j, r]
223
- );
224
- Fe(Ne, fe, n);
225
- const ge = u.length === 0 && !w && !H, Q = (e) => /* @__PURE__ */ o(
226
- "div",
227
- {
228
- "aria-hidden": "true",
229
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-xs)]",
230
- children: /* @__PURE__ */ o(je, { variant: "rectangular", height: "3.5rem" })
231
- },
232
- e
233
- );
234
- return /* @__PURE__ */ C(
235
- "section",
236
- {
237
- ref: W,
238
- "data-component": "appointment-timeline",
239
- "data-component-id": n,
240
- "aria-label": se ?? $,
241
- className: _e({ size: c, className: te }),
242
- ...ne,
243
- children: [
244
- /* @__PURE__ */ o(
245
- Se,
246
- {
247
- icon: /* @__PURE__ */ o(Me, {}),
248
- title: $,
249
- filters: L ? /* @__PURE__ */ C(ve, { children: [
250
- /* @__PURE__ */ C(Re, { label: a("appointmentTimeline.filtersLabel"), children: [
251
- /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: me, children: a("appointmentTimeline.today") }),
252
- /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: pe, children: a("appointmentTimeline.thisWeek") }),
253
- /* @__PURE__ */ o(K, { intent: "outline", size: "sm", onClick: ue, children: a("appointmentTimeline.thisMonth") })
254
- ] }),
255
- /* @__PURE__ */ o("label", { htmlFor: A, className: "ds:sr-only", children: a("appointmentTimeline.jumpToDate") }),
256
- /* @__PURE__ */ o(
257
- Ie,
258
- {
259
- id: A,
260
- size: "sm",
261
- placeholder: a("appointmentTimeline.jumpToDate"),
262
- onChange: (e) => {
263
- e && b(e);
264
- }
265
- }
266
- )
267
- ] }) : void 0
268
- }
269
- ),
270
- ge ? /* @__PURE__ */ o("div", { className: "ds:flex-1 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ o(
271
- Ce,
272
- {
273
- variant: "first-use",
274
- size: "sm",
275
- title: J ?? a("appointmentTimeline.empty.title"),
276
- description: ee ?? a("appointmentTimeline.empty.description")
277
- }
278
- ) }) : /* @__PURE__ */ C(
279
- "div",
280
- {
281
- ref: R,
282
- tabIndex: 0,
283
- onScroll: de,
284
- "data-fade-top": ae ? "true" : void 0,
285
- "data-fade-bottom": le ? "true" : void 0,
286
- className: ze,
287
- children: [
288
- w ? Q("loading-earlier") : null,
289
- /* @__PURE__ */ o("ol", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0", children: u.map((e) => /* @__PURE__ */ C(
290
- "li",
291
- {
292
- ref: (t) => {
293
- t ? I.current.set(e.key, t) : I.current.delete(e.key);
294
- },
295
- className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
296
- children: [
297
- /* @__PURE__ */ o(
298
- Ae,
299
- {
300
- date: e.date,
301
- now: r,
302
- locale: Y,
303
- todayLabel: a("appointmentTimeline.today"),
304
- tomorrowLabel: a("appointmentTimeline.tomorrow"),
305
- yesterdayLabel: a("appointmentTimeline.yesterday")
306
- }
307
- ),
308
- /* @__PURE__ */ o("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: e.items.map((t) => /* @__PURE__ */ o(
309
- we,
310
- {
311
- item: t,
312
- size: c,
313
- surface: "elevated",
314
- showPatient: !1,
315
- locale: Y,
316
- currency: g,
317
- onActivate: h,
318
- "data-appointment-id": t.id
319
- },
320
- t.id
321
- )) })
322
- ]
323
- },
324
- e.key
325
- )) }),
326
- H ? Q("loading-later") : null
327
- ]
328
- }
329
- )
330
- ]
331
- }
332
- );
333
- }
334
- );
335
- Ke.displayName = "AppointmentTimeline";
336
- function Ae({
337
- date: n,
338
- now: i,
339
- locale: l,
340
- todayLabel: p,
341
- tomorrowLabel: m,
342
- yesterdayLabel: g
343
- }) {
344
- const c = f(n), h = f(i), y = new Date(i);
345
- y.setDate(i.getDate() + 1);
346
- const v = new Date(i);
347
- v.setDate(i.getDate() - 1);
348
- const D = c === h;
349
- let k;
350
- if (D) k = p;
351
- else if (c === f(y)) k = m;
352
- else if (c === f(v)) k = g;
353
- else {
354
- const w = n.getFullYear() === i.getFullYear();
355
- k = new Intl.DateTimeFormat(l, {
356
- weekday: "short",
357
- day: "numeric",
358
- month: "short",
359
- ...w ? {} : { year: "numeric" }
360
- }).format(n);
361
- }
362
- return /* @__PURE__ */ C(
363
- "div",
364
- {
365
- "data-today": D ? "true" : void 0,
366
- className: [
367
- "ds:sticky ds:top-0 ds:z-[1] ds:bg-[color:var(--card)] ds:py-[var(--spacing-2xs)]",
368
- "ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] type-eyebrow",
369
- D ? "ds:text-[color:var(--primary)] ds:font-semibold" : "ds:text-[color:var(--muted-foreground)]"
370
- ].join(" "),
371
- children: [
372
- D ? /* @__PURE__ */ o(
373
- "span",
374
- {
375
- "aria-hidden": "true",
376
- className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
377
- }
378
- ) : null,
379
- k
380
- ]
381
- }
382
- );
383
- }
384
- export {
385
- Ke as A,
386
- Ne as a
387
- };
388
- //# sourceMappingURL=appointment-timeline-0mwtpErq.js.map