@contractspec/example.learning-journey-ui-coaching 1.57.0 → 1.58.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 (87) hide show
  1. package/.turbo/turbo-build.log +58 -59
  2. package/.turbo/turbo-prebuild.log +1 -0
  3. package/CHANGELOG.md +18 -0
  4. package/dist/CoachingMiniApp.d.ts +4 -14
  5. package/dist/CoachingMiniApp.d.ts.map +1 -1
  6. package/dist/CoachingMiniApp.js +1056 -59
  7. package/dist/browser/CoachingMiniApp.js +1059 -0
  8. package/dist/browser/components/EngagementMeter.js +143 -0
  9. package/dist/browser/components/TipCard.js +89 -0
  10. package/dist/browser/components/TipFeed.js +90 -0
  11. package/dist/browser/components/index.js +320 -0
  12. package/dist/browser/docs/index.js +22 -0
  13. package/dist/browser/docs/learning-journey-ui-coaching.docblock.js +22 -0
  14. package/dist/browser/example.js +32 -0
  15. package/dist/browser/index.js +1118 -0
  16. package/dist/browser/views/Overview.js +303 -0
  17. package/dist/browser/views/Progress.js +344 -0
  18. package/dist/browser/views/Steps.js +159 -0
  19. package/dist/browser/views/Timeline.js +266 -0
  20. package/dist/browser/views/index.js +980 -0
  21. package/dist/components/EngagementMeter.d.ts +6 -15
  22. package/dist/components/EngagementMeter.d.ts.map +1 -1
  23. package/dist/components/EngagementMeter.js +143 -107
  24. package/dist/components/TipCard.d.ts +8 -18
  25. package/dist/components/TipCard.d.ts.map +1 -1
  26. package/dist/components/TipCard.js +86 -72
  27. package/dist/components/TipFeed.d.ts +7 -13
  28. package/dist/components/TipFeed.d.ts.map +1 -1
  29. package/dist/components/TipFeed.js +87 -62
  30. package/dist/components/index.d.ts +4 -4
  31. package/dist/components/index.d.ts.map +1 -0
  32. package/dist/components/index.js +320 -4
  33. package/dist/docs/index.d.ts +2 -1
  34. package/dist/docs/index.d.ts.map +1 -0
  35. package/dist/docs/index.js +23 -1
  36. package/dist/docs/learning-journey-ui-coaching.docblock.d.ts +2 -1
  37. package/dist/docs/learning-journey-ui-coaching.docblock.d.ts.map +1 -0
  38. package/dist/docs/learning-journey-ui-coaching.docblock.js +21 -18
  39. package/dist/example.d.ts +2 -6
  40. package/dist/example.d.ts.map +1 -1
  41. package/dist/example.js +31 -39
  42. package/dist/index.d.ts +6 -12
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +1119 -14
  45. package/dist/node/CoachingMiniApp.js +1059 -0
  46. package/dist/node/components/EngagementMeter.js +143 -0
  47. package/dist/node/components/TipCard.js +89 -0
  48. package/dist/node/components/TipFeed.js +90 -0
  49. package/dist/node/components/index.js +320 -0
  50. package/dist/node/docs/index.js +22 -0
  51. package/dist/node/docs/learning-journey-ui-coaching.docblock.js +22 -0
  52. package/dist/node/example.js +32 -0
  53. package/dist/node/index.js +1118 -0
  54. package/dist/node/views/Overview.js +303 -0
  55. package/dist/node/views/Progress.js +344 -0
  56. package/dist/node/views/Steps.js +159 -0
  57. package/dist/node/views/Timeline.js +266 -0
  58. package/dist/node/views/index.js +980 -0
  59. package/dist/views/Overview.d.ts +4 -13
  60. package/dist/views/Overview.d.ts.map +1 -1
  61. package/dist/views/Overview.js +301 -148
  62. package/dist/views/Progress.d.ts +3 -10
  63. package/dist/views/Progress.d.ts.map +1 -1
  64. package/dist/views/Progress.js +342 -112
  65. package/dist/views/Steps.d.ts +2 -11
  66. package/dist/views/Steps.d.ts.map +1 -1
  67. package/dist/views/Steps.js +157 -66
  68. package/dist/views/Timeline.d.ts +2 -10
  69. package/dist/views/Timeline.d.ts.map +1 -1
  70. package/dist/views/Timeline.js +264 -110
  71. package/dist/views/index.d.ts +5 -5
  72. package/dist/views/index.d.ts.map +1 -0
  73. package/dist/views/index.js +980 -5
  74. package/package.json +154 -38
  75. package/tsdown.config.js +1 -2
  76. package/.turbo/turbo-build$colon$bundle.log +0 -62
  77. package/dist/CoachingMiniApp.js.map +0 -1
  78. package/dist/components/EngagementMeter.js.map +0 -1
  79. package/dist/components/TipCard.js.map +0 -1
  80. package/dist/components/TipFeed.js.map +0 -1
  81. package/dist/docs/learning-journey-ui-coaching.docblock.js.map +0 -1
  82. package/dist/example.js.map +0 -1
  83. package/dist/views/Overview.js.map +0 -1
  84. package/dist/views/Progress.js.map +0 -1
  85. package/dist/views/Steps.js.map +0 -1
  86. package/dist/views/Timeline.js.map +0 -1
  87. package/tsconfig.tsbuildinfo +0 -1
@@ -1,6 +1,981 @@
1
- import { Overview } from "./Overview.js";
2
- import { Steps } from "./Steps.js";
3
- import { Progress as ProgressView } from "./Progress.js";
4
- import { Timeline } from "./Timeline.js";
1
+ // @bun
2
+ // src/components/TipCard.tsx
3
+ import { Button } from "@contractspec/lib.design-system";
4
+ import { Card, CardContent } from "@contractspec/lib.ui-kit-web/ui/card";
5
+ import { cn } from "@contractspec/lib.ui-kit-web/ui/utils";
6
+ import { jsxDEV } from "react/jsx-dev-runtime";
7
+ "use client";
8
+ var TIP_ICONS = {
9
+ cash_buffer_too_high: "\uD83D\uDCB0",
10
+ no_savings_goal: "\uD83C\uDFAF",
11
+ irregular_savings: "\uD83D\uDCC5",
12
+ noise_late_evening: "\uD83D\uDD07",
13
+ guest_frequency_high: "\uD83D\uDC65",
14
+ shared_space_conflicts: "\uD83C\uDFE0",
15
+ default: "\uD83D\uDCA1"
16
+ };
17
+ function TipCard({
18
+ step,
19
+ isCompleted,
20
+ isCurrent,
21
+ onComplete,
22
+ onDismiss
23
+ }) {
24
+ const tipId = step.metadata?.tipId ?? "default";
25
+ const icon = TIP_ICONS[tipId] ?? TIP_ICONS.default;
26
+ return /* @__PURE__ */ jsxDEV(Card, {
27
+ className: cn("transition-all", isCompleted && "opacity-60", isCurrent && "ring-2 ring-amber-500"),
28
+ children: /* @__PURE__ */ jsxDEV(CardContent, {
29
+ className: "p-4",
30
+ children: /* @__PURE__ */ jsxDEV("div", {
31
+ className: "flex gap-4",
32
+ children: [
33
+ /* @__PURE__ */ jsxDEV("div", {
34
+ className: cn("flex h-12 w-12 shrink-0 items-center justify-center rounded-xl text-2xl", isCompleted ? "bg-green-500/10" : isCurrent ? "bg-amber-500/10" : "bg-muted"),
35
+ children: isCompleted ? "\u2713" : icon
36
+ }, undefined, false, undefined, this),
37
+ /* @__PURE__ */ jsxDEV("div", {
38
+ className: "min-w-0 flex-1",
39
+ children: [
40
+ /* @__PURE__ */ jsxDEV("div", {
41
+ className: "flex items-start justify-between gap-2",
42
+ children: [
43
+ /* @__PURE__ */ jsxDEV("h4", {
44
+ className: "font-semibold",
45
+ children: step.title
46
+ }, undefined, false, undefined, this),
47
+ step.xpReward && /* @__PURE__ */ jsxDEV("span", {
48
+ className: cn("shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold", isCompleted ? "bg-green-500/10 text-green-500" : "bg-amber-500/10 text-amber-500"),
49
+ children: [
50
+ "+",
51
+ step.xpReward,
52
+ " XP"
53
+ ]
54
+ }, undefined, true, undefined, this)
55
+ ]
56
+ }, undefined, true, undefined, this),
57
+ /* @__PURE__ */ jsxDEV("p", {
58
+ className: "text-muted-foreground mt-1 text-sm",
59
+ children: step.description
60
+ }, undefined, false, undefined, this),
61
+ !isCompleted && /* @__PURE__ */ jsxDEV("div", {
62
+ className: "mt-3 flex flex-wrap gap-2",
63
+ children: [
64
+ /* @__PURE__ */ jsxDEV(Button, {
65
+ size: "sm",
66
+ onClick: onComplete,
67
+ children: "Take Action"
68
+ }, undefined, false, undefined, this),
69
+ /* @__PURE__ */ jsxDEV(Button, {
70
+ variant: "outline",
71
+ size: "sm",
72
+ onClick: onDismiss,
73
+ children: "Dismiss"
74
+ }, undefined, false, undefined, this)
75
+ ]
76
+ }, undefined, true, undefined, this),
77
+ isCompleted && /* @__PURE__ */ jsxDEV("p", {
78
+ className: "mt-2 text-sm text-green-500",
79
+ children: "\u2713 Tip acknowledged"
80
+ }, undefined, false, undefined, this)
81
+ ]
82
+ }, undefined, true, undefined, this)
83
+ ]
84
+ }, undefined, true, undefined, this)
85
+ }, undefined, false, undefined, this)
86
+ }, undefined, false, undefined, this);
87
+ }
5
88
 
6
- export { Overview, ProgressView as Progress, Steps, Timeline };
89
+ // src/views/Overview.tsx
90
+ import { Button as Button2 } from "@contractspec/lib.design-system";
91
+ import {
92
+ Card as Card2,
93
+ CardContent as CardContent2,
94
+ CardHeader,
95
+ CardTitle
96
+ } from "@contractspec/lib.ui-kit-web/ui/card";
97
+ import {
98
+ XpBar,
99
+ StreakCounter
100
+ } from "@contractspec/example.learning-journey-ui-shared";
101
+ import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
102
+ "use client";
103
+ function Overview({
104
+ track,
105
+ progress,
106
+ onStepComplete,
107
+ onStart
108
+ }) {
109
+ const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0);
110
+ const completedSteps = progress.completedStepIds.length;
111
+ const totalSteps = track.steps.length;
112
+ const pendingSteps = totalSteps - completedSteps;
113
+ const activeTips = track.steps.filter((s) => !progress.completedStepIds.includes(s.id)).slice(0, 3);
114
+ return /* @__PURE__ */ jsxDEV2("div", {
115
+ className: "space-y-6",
116
+ children: [
117
+ /* @__PURE__ */ jsxDEV2(Card2, {
118
+ className: "overflow-hidden bg-gradient-to-br from-amber-500/10 via-orange-500/10 to-red-500/10",
119
+ children: /* @__PURE__ */ jsxDEV2(CardContent2, {
120
+ className: "p-6",
121
+ children: /* @__PURE__ */ jsxDEV2("div", {
122
+ className: "flex flex-col items-center gap-4 text-center md:flex-row md:text-left",
123
+ children: [
124
+ /* @__PURE__ */ jsxDEV2("div", {
125
+ className: "flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-amber-500 to-orange-600 text-3xl shadow-lg",
126
+ children: "\uD83D\uDCA1"
127
+ }, undefined, false, undefined, this),
128
+ /* @__PURE__ */ jsxDEV2("div", {
129
+ className: "flex-1",
130
+ children: [
131
+ /* @__PURE__ */ jsxDEV2("h1", {
132
+ className: "text-2xl font-bold",
133
+ children: track.name
134
+ }, undefined, false, undefined, this),
135
+ /* @__PURE__ */ jsxDEV2("p", {
136
+ className: "text-muted-foreground mt-1",
137
+ children: track.description
138
+ }, undefined, false, undefined, this)
139
+ ]
140
+ }, undefined, true, undefined, this),
141
+ /* @__PURE__ */ jsxDEV2("div", {
142
+ className: "flex items-center gap-4",
143
+ children: /* @__PURE__ */ jsxDEV2(StreakCounter, {
144
+ days: progress.streakDays,
145
+ size: "lg"
146
+ }, undefined, false, undefined, this)
147
+ }, undefined, false, undefined, this)
148
+ ]
149
+ }, undefined, true, undefined, this)
150
+ }, undefined, false, undefined, this)
151
+ }, undefined, false, undefined, this),
152
+ /* @__PURE__ */ jsxDEV2("div", {
153
+ className: "grid gap-4 md:grid-cols-3",
154
+ children: [
155
+ /* @__PURE__ */ jsxDEV2(Card2, {
156
+ children: [
157
+ /* @__PURE__ */ jsxDEV2(CardHeader, {
158
+ className: "pb-2",
159
+ children: /* @__PURE__ */ jsxDEV2(CardTitle, {
160
+ className: "text-muted-foreground text-sm font-medium",
161
+ children: "Active Tips"
162
+ }, undefined, false, undefined, this)
163
+ }, undefined, false, undefined, this),
164
+ /* @__PURE__ */ jsxDEV2(CardContent2, {
165
+ children: [
166
+ /* @__PURE__ */ jsxDEV2("div", {
167
+ className: "text-3xl font-bold text-amber-500",
168
+ children: pendingSteps
169
+ }, undefined, false, undefined, this),
170
+ /* @__PURE__ */ jsxDEV2("p", {
171
+ className: "text-muted-foreground text-sm",
172
+ children: "tips for you today"
173
+ }, undefined, false, undefined, this)
174
+ ]
175
+ }, undefined, true, undefined, this)
176
+ ]
177
+ }, undefined, true, undefined, this),
178
+ /* @__PURE__ */ jsxDEV2(Card2, {
179
+ children: [
180
+ /* @__PURE__ */ jsxDEV2(CardHeader, {
181
+ className: "pb-2",
182
+ children: /* @__PURE__ */ jsxDEV2(CardTitle, {
183
+ className: "text-muted-foreground text-sm font-medium",
184
+ children: "Tips Actioned"
185
+ }, undefined, false, undefined, this)
186
+ }, undefined, false, undefined, this),
187
+ /* @__PURE__ */ jsxDEV2(CardContent2, {
188
+ children: [
189
+ /* @__PURE__ */ jsxDEV2("div", {
190
+ className: "text-3xl font-bold text-green-500",
191
+ children: completedSteps
192
+ }, undefined, false, undefined, this),
193
+ /* @__PURE__ */ jsxDEV2("p", {
194
+ className: "text-muted-foreground text-sm",
195
+ children: [
196
+ "out of ",
197
+ totalSteps,
198
+ " total"
199
+ ]
200
+ }, undefined, true, undefined, this)
201
+ ]
202
+ }, undefined, true, undefined, this)
203
+ ]
204
+ }, undefined, true, undefined, this),
205
+ /* @__PURE__ */ jsxDEV2(Card2, {
206
+ children: [
207
+ /* @__PURE__ */ jsxDEV2(CardHeader, {
208
+ className: "pb-2",
209
+ children: /* @__PURE__ */ jsxDEV2(CardTitle, {
210
+ className: "text-muted-foreground text-sm font-medium",
211
+ children: "XP Earned"
212
+ }, undefined, false, undefined, this)
213
+ }, undefined, false, undefined, this),
214
+ /* @__PURE__ */ jsxDEV2(CardContent2, {
215
+ children: [
216
+ /* @__PURE__ */ jsxDEV2("div", {
217
+ className: "text-3xl font-bold text-orange-500",
218
+ children: progress.xpEarned
219
+ }, undefined, false, undefined, this),
220
+ /* @__PURE__ */ jsxDEV2(XpBar, {
221
+ current: progress.xpEarned,
222
+ max: totalXp,
223
+ showLabel: false,
224
+ size: "sm"
225
+ }, undefined, false, undefined, this)
226
+ ]
227
+ }, undefined, true, undefined, this)
228
+ ]
229
+ }, undefined, true, undefined, this)
230
+ ]
231
+ }, undefined, true, undefined, this),
232
+ activeTips.length > 0 && /* @__PURE__ */ jsxDEV2(Card2, {
233
+ children: [
234
+ /* @__PURE__ */ jsxDEV2(CardHeader, {
235
+ className: "flex flex-row items-center justify-between",
236
+ children: [
237
+ /* @__PURE__ */ jsxDEV2(CardTitle, {
238
+ className: "flex items-center gap-2",
239
+ children: [
240
+ /* @__PURE__ */ jsxDEV2("span", {
241
+ children: "\uD83D\uDCA1"
242
+ }, undefined, false, undefined, this),
243
+ /* @__PURE__ */ jsxDEV2("span", {
244
+ children: "Tips for You"
245
+ }, undefined, false, undefined, this)
246
+ ]
247
+ }, undefined, true, undefined, this),
248
+ activeTips.length < pendingSteps && /* @__PURE__ */ jsxDEV2(Button2, {
249
+ variant: "outline",
250
+ size: "sm",
251
+ onClick: onStart,
252
+ children: [
253
+ "View All (",
254
+ pendingSteps,
255
+ ")"
256
+ ]
257
+ }, undefined, true, undefined, this)
258
+ ]
259
+ }, undefined, true, undefined, this),
260
+ /* @__PURE__ */ jsxDEV2(CardContent2, {
261
+ className: "space-y-3",
262
+ children: activeTips.map((step) => /* @__PURE__ */ jsxDEV2(TipCard, {
263
+ step,
264
+ isCompleted: false,
265
+ isCurrent: step.id === activeTips[0]?.id,
266
+ onComplete: () => onStepComplete?.(step.id)
267
+ }, step.id, false, undefined, this))
268
+ }, undefined, false, undefined, this)
269
+ ]
270
+ }, undefined, true, undefined, this),
271
+ pendingSteps === 0 && /* @__PURE__ */ jsxDEV2(Card2, {
272
+ className: "border-green-500/50 bg-green-500/5",
273
+ children: /* @__PURE__ */ jsxDEV2(CardContent2, {
274
+ className: "flex items-center gap-4 p-6",
275
+ children: [
276
+ /* @__PURE__ */ jsxDEV2("div", {
277
+ className: "text-4xl",
278
+ children: "\uD83C\uDF89"
279
+ }, undefined, false, undefined, this),
280
+ /* @__PURE__ */ jsxDEV2("div", {
281
+ children: [
282
+ /* @__PURE__ */ jsxDEV2("h3", {
283
+ className: "text-lg font-semibold text-green-500",
284
+ children: "All Tips Actioned!"
285
+ }, undefined, false, undefined, this),
286
+ /* @__PURE__ */ jsxDEV2("p", {
287
+ className: "text-muted-foreground",
288
+ children: [
289
+ "Great job! You've addressed all ",
290
+ totalSteps,
291
+ " coaching tips."
292
+ ]
293
+ }, undefined, true, undefined, this)
294
+ ]
295
+ }, undefined, true, undefined, this)
296
+ ]
297
+ }, undefined, true, undefined, this)
298
+ }, undefined, false, undefined, this)
299
+ ]
300
+ }, undefined, true, undefined, this);
301
+ }
302
+
303
+ // src/views/Steps.tsx
304
+ import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
305
+ "use client";
306
+ function Steps({ track, progress, onStepComplete }) {
307
+ const completedSteps = progress.completedStepIds.length;
308
+ const totalSteps = track.steps.length;
309
+ const sortedSteps = [...track.steps].sort((a, b) => {
310
+ const aCompleted = progress.completedStepIds.includes(a.id);
311
+ const bCompleted = progress.completedStepIds.includes(b.id);
312
+ if (aCompleted === bCompleted)
313
+ return 0;
314
+ return aCompleted ? 1 : -1;
315
+ });
316
+ const currentStepId = track.steps.find((s) => !progress.completedStepIds.includes(s.id))?.id;
317
+ return /* @__PURE__ */ jsxDEV3("div", {
318
+ className: "space-y-6",
319
+ children: [
320
+ /* @__PURE__ */ jsxDEV3("div", {
321
+ className: "text-center",
322
+ children: [
323
+ /* @__PURE__ */ jsxDEV3("h2", {
324
+ className: "text-xl font-bold",
325
+ children: "Coaching Tips"
326
+ }, undefined, false, undefined, this),
327
+ /* @__PURE__ */ jsxDEV3("p", {
328
+ className: "text-muted-foreground",
329
+ children: "Review and take action on personalized tips"
330
+ }, undefined, false, undefined, this),
331
+ /* @__PURE__ */ jsxDEV3("p", {
332
+ className: "text-muted-foreground mt-2 text-sm",
333
+ children: [
334
+ completedSteps,
335
+ " of ",
336
+ totalSteps,
337
+ " tips actioned"
338
+ ]
339
+ }, undefined, true, undefined, this)
340
+ ]
341
+ }, undefined, true, undefined, this),
342
+ /* @__PURE__ */ jsxDEV3("div", {
343
+ className: "space-y-3",
344
+ children: sortedSteps.map((step) => {
345
+ const isCompleted = progress.completedStepIds.includes(step.id);
346
+ const isCurrent = step.id === currentStepId;
347
+ return /* @__PURE__ */ jsxDEV3(TipCard, {
348
+ step,
349
+ isCompleted,
350
+ isCurrent,
351
+ onComplete: () => onStepComplete?.(step.id),
352
+ onDismiss: () => onStepComplete?.(step.id)
353
+ }, step.id, false, undefined, this);
354
+ })
355
+ }, undefined, false, undefined, this),
356
+ completedSteps === totalSteps && /* @__PURE__ */ jsxDEV3("div", {
357
+ className: "text-muted-foreground text-center",
358
+ children: [
359
+ /* @__PURE__ */ jsxDEV3("span", {
360
+ className: "text-2xl",
361
+ children: "\u2728"
362
+ }, undefined, false, undefined, this),
363
+ /* @__PURE__ */ jsxDEV3("p", {
364
+ className: "mt-2",
365
+ children: "All tips have been addressed!"
366
+ }, undefined, false, undefined, this)
367
+ ]
368
+ }, undefined, true, undefined, this)
369
+ ]
370
+ }, undefined, true, undefined, this);
371
+ }
372
+
373
+ // src/components/EngagementMeter.tsx
374
+ import { jsxDEV as jsxDEV4 } from "react/jsx-dev-runtime";
375
+ "use client";
376
+ function EngagementMeter({
377
+ acknowledged,
378
+ actioned,
379
+ pending,
380
+ streak = 0
381
+ }) {
382
+ const total = acknowledged + actioned + pending;
383
+ const actionedPercent = total > 0 ? actioned / total * 100 : 0;
384
+ const acknowledgedPercent = total > 0 ? acknowledged / total * 100 : 0;
385
+ return /* @__PURE__ */ jsxDEV4("div", {
386
+ className: "space-y-4",
387
+ children: [
388
+ /* @__PURE__ */ jsxDEV4("div", {
389
+ className: "flex items-center justify-center",
390
+ children: /* @__PURE__ */ jsxDEV4("div", {
391
+ className: "relative h-32 w-32",
392
+ children: [
393
+ /* @__PURE__ */ jsxDEV4("svg", {
394
+ className: "h-full w-full -rotate-90",
395
+ viewBox: "0 0 100 100",
396
+ children: [
397
+ /* @__PURE__ */ jsxDEV4("circle", {
398
+ cx: "50",
399
+ cy: "50",
400
+ r: "40",
401
+ fill: "none",
402
+ strokeWidth: "12",
403
+ className: "stroke-muted"
404
+ }, undefined, false, undefined, this),
405
+ /* @__PURE__ */ jsxDEV4("circle", {
406
+ cx: "50",
407
+ cy: "50",
408
+ r: "40",
409
+ fill: "none",
410
+ strokeWidth: "12",
411
+ strokeLinecap: "round",
412
+ strokeDasharray: `${actionedPercent * 2.51} 251`,
413
+ className: "stroke-green-500 transition-all duration-500"
414
+ }, undefined, false, undefined, this),
415
+ /* @__PURE__ */ jsxDEV4("circle", {
416
+ cx: "50",
417
+ cy: "50",
418
+ r: "40",
419
+ fill: "none",
420
+ strokeWidth: "12",
421
+ strokeLinecap: "round",
422
+ strokeDasharray: `${acknowledgedPercent * 2.51} 251`,
423
+ strokeDashoffset: `${-actionedPercent * 2.51}`,
424
+ className: "stroke-amber-500 transition-all duration-500"
425
+ }, undefined, false, undefined, this)
426
+ ]
427
+ }, undefined, true, undefined, this),
428
+ /* @__PURE__ */ jsxDEV4("div", {
429
+ className: "absolute inset-0 flex flex-col items-center justify-center",
430
+ children: [
431
+ /* @__PURE__ */ jsxDEV4("span", {
432
+ className: "text-2xl font-bold",
433
+ children: total
434
+ }, undefined, false, undefined, this),
435
+ /* @__PURE__ */ jsxDEV4("span", {
436
+ className: "text-muted-foreground text-xs",
437
+ children: "tips"
438
+ }, undefined, false, undefined, this)
439
+ ]
440
+ }, undefined, true, undefined, this)
441
+ ]
442
+ }, undefined, true, undefined, this)
443
+ }, undefined, false, undefined, this),
444
+ /* @__PURE__ */ jsxDEV4("div", {
445
+ className: "flex justify-center gap-4 text-sm",
446
+ children: [
447
+ /* @__PURE__ */ jsxDEV4("div", {
448
+ className: "flex items-center gap-1.5",
449
+ children: [
450
+ /* @__PURE__ */ jsxDEV4("div", {
451
+ className: "h-3 w-3 rounded-full bg-green-500"
452
+ }, undefined, false, undefined, this),
453
+ /* @__PURE__ */ jsxDEV4("span", {
454
+ children: [
455
+ "Actioned (",
456
+ actioned,
457
+ ")"
458
+ ]
459
+ }, undefined, true, undefined, this)
460
+ ]
461
+ }, undefined, true, undefined, this),
462
+ /* @__PURE__ */ jsxDEV4("div", {
463
+ className: "flex items-center gap-1.5",
464
+ children: [
465
+ /* @__PURE__ */ jsxDEV4("div", {
466
+ className: "h-3 w-3 rounded-full bg-amber-500"
467
+ }, undefined, false, undefined, this),
468
+ /* @__PURE__ */ jsxDEV4("span", {
469
+ children: [
470
+ "Acknowledged (",
471
+ acknowledged,
472
+ ")"
473
+ ]
474
+ }, undefined, true, undefined, this)
475
+ ]
476
+ }, undefined, true, undefined, this),
477
+ /* @__PURE__ */ jsxDEV4("div", {
478
+ className: "flex items-center gap-1.5",
479
+ children: [
480
+ /* @__PURE__ */ jsxDEV4("div", {
481
+ className: "bg-muted h-3 w-3 rounded-full"
482
+ }, undefined, false, undefined, this),
483
+ /* @__PURE__ */ jsxDEV4("span", {
484
+ children: [
485
+ "Pending (",
486
+ pending,
487
+ ")"
488
+ ]
489
+ }, undefined, true, undefined, this)
490
+ ]
491
+ }, undefined, true, undefined, this)
492
+ ]
493
+ }, undefined, true, undefined, this),
494
+ streak > 0 && /* @__PURE__ */ jsxDEV4("div", {
495
+ className: "flex items-center justify-center gap-2 rounded-lg bg-orange-500/10 px-4 py-2",
496
+ children: [
497
+ /* @__PURE__ */ jsxDEV4("span", {
498
+ className: "text-xl",
499
+ children: "\uD83D\uDD25"
500
+ }, undefined, false, undefined, this),
501
+ /* @__PURE__ */ jsxDEV4("span", {
502
+ className: "font-semibold text-orange-500",
503
+ children: [
504
+ streak,
505
+ " day engagement streak!"
506
+ ]
507
+ }, undefined, true, undefined, this)
508
+ ]
509
+ }, undefined, true, undefined, this)
510
+ ]
511
+ }, undefined, true, undefined, this);
512
+ }
513
+
514
+ // src/views/Progress.tsx
515
+ import {
516
+ Card as Card3,
517
+ CardContent as CardContent3,
518
+ CardHeader as CardHeader2,
519
+ CardTitle as CardTitle2
520
+ } from "@contractspec/lib.ui-kit-web/ui/card";
521
+ import {
522
+ XpBar as XpBar2,
523
+ BadgeDisplay,
524
+ StreakCounter as StreakCounter2
525
+ } from "@contractspec/example.learning-journey-ui-shared";
526
+ import { jsxDEV as jsxDEV5 } from "react/jsx-dev-runtime";
527
+ "use client";
528
+ function ProgressView({ track, progress }) {
529
+ const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0);
530
+ const completedSteps = progress.completedStepIds.length;
531
+ const totalSteps = track.steps.length;
532
+ const pendingSteps = totalSteps - completedSteps;
533
+ const actioned = Math.floor(completedSteps * 0.7);
534
+ const acknowledged = completedSteps - actioned;
535
+ return /* @__PURE__ */ jsxDEV5("div", {
536
+ className: "space-y-6",
537
+ children: [
538
+ /* @__PURE__ */ jsxDEV5(Card3, {
539
+ children: [
540
+ /* @__PURE__ */ jsxDEV5(CardHeader2, {
541
+ children: /* @__PURE__ */ jsxDEV5(CardTitle2, {
542
+ className: "flex items-center gap-2",
543
+ children: [
544
+ /* @__PURE__ */ jsxDEV5("span", {
545
+ children: "\uD83D\uDCCA"
546
+ }, undefined, false, undefined, this),
547
+ /* @__PURE__ */ jsxDEV5("span", {
548
+ children: "Engagement Overview"
549
+ }, undefined, false, undefined, this)
550
+ ]
551
+ }, undefined, true, undefined, this)
552
+ }, undefined, false, undefined, this),
553
+ /* @__PURE__ */ jsxDEV5(CardContent3, {
554
+ children: /* @__PURE__ */ jsxDEV5(EngagementMeter, {
555
+ actioned,
556
+ acknowledged,
557
+ pending: pendingSteps,
558
+ streak: progress.streakDays
559
+ }, undefined, false, undefined, this)
560
+ }, undefined, false, undefined, this)
561
+ ]
562
+ }, undefined, true, undefined, this),
563
+ /* @__PURE__ */ jsxDEV5("div", {
564
+ className: "grid gap-4 md:grid-cols-2",
565
+ children: [
566
+ /* @__PURE__ */ jsxDEV5(Card3, {
567
+ children: [
568
+ /* @__PURE__ */ jsxDEV5(CardHeader2, {
569
+ className: "pb-2",
570
+ children: /* @__PURE__ */ jsxDEV5(CardTitle2, {
571
+ className: "text-muted-foreground text-sm font-medium",
572
+ children: "XP Earned"
573
+ }, undefined, false, undefined, this)
574
+ }, undefined, false, undefined, this),
575
+ /* @__PURE__ */ jsxDEV5(CardContent3, {
576
+ className: "space-y-3",
577
+ children: [
578
+ /* @__PURE__ */ jsxDEV5("div", {
579
+ className: "flex items-baseline gap-2",
580
+ children: [
581
+ /* @__PURE__ */ jsxDEV5("span", {
582
+ className: "text-3xl font-bold text-orange-500",
583
+ children: progress.xpEarned
584
+ }, undefined, false, undefined, this),
585
+ /* @__PURE__ */ jsxDEV5("span", {
586
+ className: "text-muted-foreground",
587
+ children: [
588
+ "/ ",
589
+ totalXp,
590
+ " XP"
591
+ ]
592
+ }, undefined, true, undefined, this)
593
+ ]
594
+ }, undefined, true, undefined, this),
595
+ /* @__PURE__ */ jsxDEV5(XpBar2, {
596
+ current: progress.xpEarned,
597
+ max: totalXp,
598
+ showLabel: false,
599
+ size: "lg"
600
+ }, undefined, false, undefined, this)
601
+ ]
602
+ }, undefined, true, undefined, this)
603
+ ]
604
+ }, undefined, true, undefined, this),
605
+ /* @__PURE__ */ jsxDEV5(Card3, {
606
+ children: [
607
+ /* @__PURE__ */ jsxDEV5(CardHeader2, {
608
+ className: "pb-2",
609
+ children: /* @__PURE__ */ jsxDEV5(CardTitle2, {
610
+ className: "text-muted-foreground text-sm font-medium",
611
+ children: "Engagement Streak"
612
+ }, undefined, false, undefined, this)
613
+ }, undefined, false, undefined, this),
614
+ /* @__PURE__ */ jsxDEV5(CardContent3, {
615
+ children: /* @__PURE__ */ jsxDEV5("div", {
616
+ className: "flex items-center gap-4",
617
+ children: [
618
+ /* @__PURE__ */ jsxDEV5(StreakCounter2, {
619
+ days: progress.streakDays,
620
+ size: "lg"
621
+ }, undefined, false, undefined, this),
622
+ /* @__PURE__ */ jsxDEV5("div", {
623
+ className: "text-muted-foreground text-sm",
624
+ children: progress.streakDays > 0 ? "Keep going!" : "Start your streak today!"
625
+ }, undefined, false, undefined, this)
626
+ ]
627
+ }, undefined, true, undefined, this)
628
+ }, undefined, false, undefined, this)
629
+ ]
630
+ }, undefined, true, undefined, this)
631
+ ]
632
+ }, undefined, true, undefined, this),
633
+ /* @__PURE__ */ jsxDEV5(Card3, {
634
+ children: [
635
+ /* @__PURE__ */ jsxDEV5(CardHeader2, {
636
+ children: /* @__PURE__ */ jsxDEV5(CardTitle2, {
637
+ className: "flex items-center gap-2",
638
+ children: [
639
+ /* @__PURE__ */ jsxDEV5("span", {
640
+ children: "\uD83C\uDFC5"
641
+ }, undefined, false, undefined, this),
642
+ /* @__PURE__ */ jsxDEV5("span", {
643
+ children: "Achievements"
644
+ }, undefined, false, undefined, this)
645
+ ]
646
+ }, undefined, true, undefined, this)
647
+ }, undefined, false, undefined, this),
648
+ /* @__PURE__ */ jsxDEV5(CardContent3, {
649
+ children: [
650
+ /* @__PURE__ */ jsxDEV5(BadgeDisplay, {
651
+ badges: progress.badges,
652
+ size: "lg",
653
+ maxVisible: 10
654
+ }, undefined, false, undefined, this),
655
+ progress.badges.length === 0 && /* @__PURE__ */ jsxDEV5("p", {
656
+ className: "text-muted-foreground text-sm",
657
+ children: "Action tips to unlock achievements!"
658
+ }, undefined, false, undefined, this)
659
+ ]
660
+ }, undefined, true, undefined, this)
661
+ ]
662
+ }, undefined, true, undefined, this),
663
+ /* @__PURE__ */ jsxDEV5(Card3, {
664
+ children: [
665
+ /* @__PURE__ */ jsxDEV5(CardHeader2, {
666
+ children: /* @__PURE__ */ jsxDEV5(CardTitle2, {
667
+ className: "flex items-center gap-2",
668
+ children: [
669
+ /* @__PURE__ */ jsxDEV5("span", {
670
+ children: "\uD83D\uDCA1"
671
+ }, undefined, false, undefined, this),
672
+ /* @__PURE__ */ jsxDEV5("span", {
673
+ children: "Tip Status"
674
+ }, undefined, false, undefined, this)
675
+ ]
676
+ }, undefined, true, undefined, this)
677
+ }, undefined, false, undefined, this),
678
+ /* @__PURE__ */ jsxDEV5(CardContent3, {
679
+ children: /* @__PURE__ */ jsxDEV5("div", {
680
+ className: "space-y-3",
681
+ children: track.steps.map((step) => {
682
+ const isCompleted = progress.completedStepIds.includes(step.id);
683
+ return /* @__PURE__ */ jsxDEV5("div", {
684
+ className: "flex items-center justify-between rounded-lg border p-3",
685
+ children: [
686
+ /* @__PURE__ */ jsxDEV5("div", {
687
+ className: "flex items-center gap-3",
688
+ children: [
689
+ /* @__PURE__ */ jsxDEV5("span", {
690
+ className: isCompleted ? "text-green-500" : "text-amber-500",
691
+ children: isCompleted ? "\u2713" : "\u25CB"
692
+ }, undefined, false, undefined, this),
693
+ /* @__PURE__ */ jsxDEV5("span", {
694
+ className: isCompleted ? "text-muted-foreground" : "text-foreground",
695
+ children: step.title
696
+ }, undefined, false, undefined, this)
697
+ ]
698
+ }, undefined, true, undefined, this),
699
+ /* @__PURE__ */ jsxDEV5("span", {
700
+ className: `text-sm ${isCompleted ? "text-green-500" : "text-muted-foreground"}`,
701
+ children: isCompleted ? "Actioned" : "Pending"
702
+ }, undefined, false, undefined, this)
703
+ ]
704
+ }, step.id, true, undefined, this);
705
+ })
706
+ }, undefined, false, undefined, this)
707
+ }, undefined, false, undefined, this)
708
+ ]
709
+ }, undefined, true, undefined, this)
710
+ ]
711
+ }, undefined, true, undefined, this);
712
+ }
713
+ // src/components/TipFeed.tsx
714
+ import { cn as cn2 } from "@contractspec/lib.ui-kit-web/ui/utils";
715
+ import { jsxDEV as jsxDEV6 } from "react/jsx-dev-runtime";
716
+ "use client";
717
+ var TIP_ICONS2 = {
718
+ cash_buffer_too_high: "\uD83D\uDCB0",
719
+ no_savings_goal: "\uD83C\uDFAF",
720
+ irregular_savings: "\uD83D\uDCC5",
721
+ noise_late_evening: "\uD83D\uDD07",
722
+ guest_frequency_high: "\uD83D\uDC65",
723
+ shared_space_conflicts: "\uD83C\uDFE0",
724
+ default: "\uD83D\uDCA1"
725
+ };
726
+ function TipFeed({ items }) {
727
+ if (items.length === 0) {
728
+ return /* @__PURE__ */ jsxDEV6("div", {
729
+ className: "text-muted-foreground py-8 text-center",
730
+ children: "No tips yet. Start engaging with coaching tips!"
731
+ }, undefined, false, undefined, this);
732
+ }
733
+ return /* @__PURE__ */ jsxDEV6("div", {
734
+ className: "relative",
735
+ children: [
736
+ /* @__PURE__ */ jsxDEV6("div", {
737
+ className: "bg-border absolute top-0 left-4 h-full w-0.5"
738
+ }, undefined, false, undefined, this),
739
+ /* @__PURE__ */ jsxDEV6("div", {
740
+ className: "space-y-4",
741
+ children: items.map((item) => {
742
+ const tipId = item.step.metadata?.tipId ?? "default";
743
+ const icon = TIP_ICONS2[tipId] ?? TIP_ICONS2.default;
744
+ return /* @__PURE__ */ jsxDEV6("div", {
745
+ className: "relative flex gap-4 pl-2",
746
+ children: [
747
+ /* @__PURE__ */ jsxDEV6("div", {
748
+ className: cn2("relative z-10 flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm", item.isCompleted ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"),
749
+ children: item.isCompleted ? "\u2713" : icon
750
+ }, undefined, false, undefined, this),
751
+ /* @__PURE__ */ jsxDEV6("div", {
752
+ className: "bg-card flex-1 rounded-lg border p-3",
753
+ children: [
754
+ /* @__PURE__ */ jsxDEV6("div", {
755
+ className: "flex items-start justify-between gap-2",
756
+ children: [
757
+ /* @__PURE__ */ jsxDEV6("div", {
758
+ children: [
759
+ /* @__PURE__ */ jsxDEV6("p", {
760
+ className: "font-medium",
761
+ children: item.step.title
762
+ }, undefined, false, undefined, this),
763
+ /* @__PURE__ */ jsxDEV6("p", {
764
+ className: "text-muted-foreground mt-0.5 text-sm",
765
+ children: item.step.description
766
+ }, undefined, false, undefined, this)
767
+ ]
768
+ }, undefined, true, undefined, this),
769
+ item.step.xpReward && /* @__PURE__ */ jsxDEV6("span", {
770
+ className: cn2("shrink-0 text-xs font-medium", item.isCompleted ? "text-green-500" : "text-muted-foreground"),
771
+ children: [
772
+ "+",
773
+ item.step.xpReward,
774
+ " XP"
775
+ ]
776
+ }, undefined, true, undefined, this)
777
+ ]
778
+ }, undefined, true, undefined, this),
779
+ /* @__PURE__ */ jsxDEV6("div", {
780
+ className: "text-muted-foreground mt-2 flex items-center gap-2 text-xs",
781
+ children: item.isCompleted ? /* @__PURE__ */ jsxDEV6("span", {
782
+ className: "text-green-500",
783
+ children: [
784
+ "\u2713 Completed",
785
+ item.completedAt && ` \u2022 ${item.completedAt}`
786
+ ]
787
+ }, undefined, true, undefined, this) : /* @__PURE__ */ jsxDEV6("span", {
788
+ children: "Pending action"
789
+ }, undefined, false, undefined, this)
790
+ }, undefined, false, undefined, this)
791
+ ]
792
+ }, undefined, true, undefined, this)
793
+ ]
794
+ }, item.step.id, true, undefined, this);
795
+ })
796
+ }, undefined, false, undefined, this)
797
+ ]
798
+ }, undefined, true, undefined, this);
799
+ }
800
+
801
+ // src/views/Timeline.tsx
802
+ import {
803
+ Card as Card4,
804
+ CardContent as CardContent4,
805
+ CardHeader as CardHeader3,
806
+ CardTitle as CardTitle3
807
+ } from "@contractspec/lib.ui-kit-web/ui/card";
808
+ import { jsxDEV as jsxDEV7 } from "react/jsx-dev-runtime";
809
+ "use client";
810
+ function Timeline({ track, progress }) {
811
+ const feedItems = track.steps.map((step) => ({
812
+ step,
813
+ isCompleted: progress.completedStepIds.includes(step.id),
814
+ completedAt: progress.completedStepIds.includes(step.id) ? "Recently" : undefined
815
+ })).sort((a, b) => {
816
+ if (a.isCompleted && !b.isCompleted)
817
+ return -1;
818
+ if (!a.isCompleted && b.isCompleted)
819
+ return 1;
820
+ return 0;
821
+ });
822
+ const completedCount = feedItems.filter((f) => f.isCompleted).length;
823
+ const pendingCount = feedItems.length - completedCount;
824
+ return /* @__PURE__ */ jsxDEV7("div", {
825
+ className: "space-y-6",
826
+ children: [
827
+ /* @__PURE__ */ jsxDEV7("div", {
828
+ className: "text-center",
829
+ children: [
830
+ /* @__PURE__ */ jsxDEV7("h2", {
831
+ className: "text-xl font-bold",
832
+ children: "Activity Timeline"
833
+ }, undefined, false, undefined, this),
834
+ /* @__PURE__ */ jsxDEV7("p", {
835
+ className: "text-muted-foreground",
836
+ children: "Your coaching journey and tip history"
837
+ }, undefined, false, undefined, this)
838
+ ]
839
+ }, undefined, true, undefined, this),
840
+ /* @__PURE__ */ jsxDEV7("div", {
841
+ className: "grid grid-cols-2 gap-4",
842
+ children: [
843
+ /* @__PURE__ */ jsxDEV7(Card4, {
844
+ children: /* @__PURE__ */ jsxDEV7(CardContent4, {
845
+ className: "p-4 text-center",
846
+ children: [
847
+ /* @__PURE__ */ jsxDEV7("div", {
848
+ className: "text-2xl font-bold text-green-500",
849
+ children: completedCount
850
+ }, undefined, false, undefined, this),
851
+ /* @__PURE__ */ jsxDEV7("div", {
852
+ className: "text-muted-foreground text-sm",
853
+ children: "Tips Actioned"
854
+ }, undefined, false, undefined, this)
855
+ ]
856
+ }, undefined, true, undefined, this)
857
+ }, undefined, false, undefined, this),
858
+ /* @__PURE__ */ jsxDEV7(Card4, {
859
+ children: /* @__PURE__ */ jsxDEV7(CardContent4, {
860
+ className: "p-4 text-center",
861
+ children: [
862
+ /* @__PURE__ */ jsxDEV7("div", {
863
+ className: "text-2xl font-bold text-amber-500",
864
+ children: pendingCount
865
+ }, undefined, false, undefined, this),
866
+ /* @__PURE__ */ jsxDEV7("div", {
867
+ className: "text-muted-foreground text-sm",
868
+ children: "Tips Pending"
869
+ }, undefined, false, undefined, this)
870
+ ]
871
+ }, undefined, true, undefined, this)
872
+ }, undefined, false, undefined, this)
873
+ ]
874
+ }, undefined, true, undefined, this),
875
+ /* @__PURE__ */ jsxDEV7(Card4, {
876
+ children: [
877
+ /* @__PURE__ */ jsxDEV7(CardHeader3, {
878
+ children: /* @__PURE__ */ jsxDEV7(CardTitle3, {
879
+ className: "flex items-center gap-2",
880
+ children: [
881
+ /* @__PURE__ */ jsxDEV7("span", {
882
+ children: "\uD83D\uDCDD"
883
+ }, undefined, false, undefined, this),
884
+ /* @__PURE__ */ jsxDEV7("span", {
885
+ children: "Coaching Feed"
886
+ }, undefined, false, undefined, this)
887
+ ]
888
+ }, undefined, true, undefined, this)
889
+ }, undefined, false, undefined, this),
890
+ /* @__PURE__ */ jsxDEV7(CardContent4, {
891
+ children: /* @__PURE__ */ jsxDEV7(TipFeed, {
892
+ items: feedItems
893
+ }, undefined, false, undefined, this)
894
+ }, undefined, false, undefined, this)
895
+ ]
896
+ }, undefined, true, undefined, this),
897
+ /* @__PURE__ */ jsxDEV7(Card4, {
898
+ children: [
899
+ /* @__PURE__ */ jsxDEV7(CardHeader3, {
900
+ children: /* @__PURE__ */ jsxDEV7(CardTitle3, {
901
+ className: "flex items-center gap-2",
902
+ children: [
903
+ /* @__PURE__ */ jsxDEV7("span", {
904
+ children: "\uD83D\uDCC8"
905
+ }, undefined, false, undefined, this),
906
+ /* @__PURE__ */ jsxDEV7("span", {
907
+ children: "Journey Stats"
908
+ }, undefined, false, undefined, this)
909
+ ]
910
+ }, undefined, true, undefined, this)
911
+ }, undefined, false, undefined, this),
912
+ /* @__PURE__ */ jsxDEV7(CardContent4, {
913
+ children: /* @__PURE__ */ jsxDEV7("div", {
914
+ className: "space-y-4",
915
+ children: [
916
+ /* @__PURE__ */ jsxDEV7("div", {
917
+ className: "flex items-center justify-between",
918
+ children: [
919
+ /* @__PURE__ */ jsxDEV7("span", {
920
+ className: "text-muted-foreground",
921
+ children: "Total Tips"
922
+ }, undefined, false, undefined, this),
923
+ /* @__PURE__ */ jsxDEV7("span", {
924
+ className: "font-semibold",
925
+ children: track.steps.length
926
+ }, undefined, false, undefined, this)
927
+ ]
928
+ }, undefined, true, undefined, this),
929
+ /* @__PURE__ */ jsxDEV7("div", {
930
+ className: "flex items-center justify-between",
931
+ children: [
932
+ /* @__PURE__ */ jsxDEV7("span", {
933
+ className: "text-muted-foreground",
934
+ children: "Completed"
935
+ }, undefined, false, undefined, this),
936
+ /* @__PURE__ */ jsxDEV7("span", {
937
+ className: "font-semibold text-green-500",
938
+ children: completedCount
939
+ }, undefined, false, undefined, this)
940
+ ]
941
+ }, undefined, true, undefined, this),
942
+ /* @__PURE__ */ jsxDEV7("div", {
943
+ className: "flex items-center justify-between",
944
+ children: [
945
+ /* @__PURE__ */ jsxDEV7("span", {
946
+ className: "text-muted-foreground",
947
+ children: "XP Earned"
948
+ }, undefined, false, undefined, this),
949
+ /* @__PURE__ */ jsxDEV7("span", {
950
+ className: "font-semibold text-orange-500",
951
+ children: progress.xpEarned
952
+ }, undefined, false, undefined, this)
953
+ ]
954
+ }, undefined, true, undefined, this),
955
+ /* @__PURE__ */ jsxDEV7("div", {
956
+ className: "flex items-center justify-between",
957
+ children: [
958
+ /* @__PURE__ */ jsxDEV7("span", {
959
+ className: "text-muted-foreground",
960
+ children: "Current Streak"
961
+ }, undefined, false, undefined, this),
962
+ /* @__PURE__ */ jsxDEV7("span", {
963
+ className: "font-semibold",
964
+ children: progress.streakDays > 0 ? `\uD83D\uDD25 ${progress.streakDays} days` : "Start today!"
965
+ }, undefined, false, undefined, this)
966
+ ]
967
+ }, undefined, true, undefined, this)
968
+ ]
969
+ }, undefined, true, undefined, this)
970
+ }, undefined, false, undefined, this)
971
+ ]
972
+ }, undefined, true, undefined, this)
973
+ ]
974
+ }, undefined, true, undefined, this);
975
+ }
976
+ export {
977
+ Timeline,
978
+ Steps,
979
+ ProgressView as Progress,
980
+ Overview
981
+ };