@contractspec/example.learning-journey-ui-onboarding 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.
- package/.turbo/turbo-build.log +58 -62
- package/.turbo/turbo-prebuild.log +1 -0
- package/CHANGELOG.md +19 -0
- package/dist/OnboardingMiniApp.d.ts +4 -14
- package/dist/OnboardingMiniApp.d.ts.map +1 -1
- package/dist/OnboardingMiniApp.js +991 -59
- package/dist/browser/OnboardingMiniApp.js +994 -0
- package/dist/browser/components/CodeSnippet.js +65 -0
- package/dist/browser/components/JourneyMap.js +59 -0
- package/dist/browser/components/StepChecklist.js +97 -0
- package/dist/browser/components/index.js +219 -0
- package/dist/browser/docs/index.js +22 -0
- package/dist/browser/docs/learning-journey-ui-onboarding.docblock.js +22 -0
- package/dist/browser/example.js +32 -0
- package/dist/browser/index.js +1116 -0
- package/dist/browser/views/Overview.js +240 -0
- package/dist/browser/views/Progress.js +275 -0
- package/dist/browser/views/Steps.js +192 -0
- package/dist/browser/views/Timeline.js +213 -0
- package/dist/browser/views/index.js +915 -0
- package/dist/components/CodeSnippet.d.ts +5 -13
- package/dist/components/CodeSnippet.d.ts.map +1 -1
- package/dist/components/CodeSnippet.js +63 -47
- package/dist/components/JourneyMap.d.ts +6 -14
- package/dist/components/JourneyMap.d.ts.map +1 -1
- package/dist/components/JourneyMap.js +57 -46
- package/dist/components/StepChecklist.d.ts +10 -22
- package/dist/components/StepChecklist.d.ts.map +1 -1
- package/dist/components/StepChecklist.js +95 -77
- package/dist/components/index.d.ts +4 -4
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +219 -4
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +23 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.d.ts +2 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.d.ts.map +1 -0
- package/dist/docs/learning-journey-ui-onboarding.docblock.js +21 -18
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +31 -39
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1117 -14
- package/dist/node/OnboardingMiniApp.js +994 -0
- package/dist/node/components/CodeSnippet.js +65 -0
- package/dist/node/components/JourneyMap.js +59 -0
- package/dist/node/components/StepChecklist.js +97 -0
- package/dist/node/components/index.js +219 -0
- package/dist/node/docs/index.js +22 -0
- package/dist/node/docs/learning-journey-ui-onboarding.docblock.js +22 -0
- package/dist/node/example.js +32 -0
- package/dist/node/index.js +1116 -0
- package/dist/node/views/Overview.js +240 -0
- package/dist/node/views/Progress.js +275 -0
- package/dist/node/views/Steps.js +192 -0
- package/dist/node/views/Timeline.js +213 -0
- package/dist/node/views/index.js +915 -0
- package/dist/views/Overview.d.ts +4 -12
- package/dist/views/Overview.d.ts.map +1 -1
- package/dist/views/Overview.js +238 -177
- package/dist/views/Progress.d.ts +3 -10
- package/dist/views/Progress.d.ts.map +1 -1
- package/dist/views/Progress.js +273 -158
- package/dist/views/Steps.d.ts +2 -11
- package/dist/views/Steps.d.ts.map +1 -1
- package/dist/views/Steps.js +188 -87
- package/dist/views/Timeline.d.ts +2 -10
- package/dist/views/Timeline.d.ts.map +1 -1
- package/dist/views/Timeline.js +211 -95
- package/dist/views/index.d.ts +5 -5
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/index.js +915 -5
- package/package.json +155 -39
- package/tsdown.config.js +1 -2
- package/.turbo/turbo-build$colon$bundle.log +0 -59
- package/dist/OnboardingMiniApp.js.map +0 -1
- package/dist/components/CodeSnippet.js.map +0 -1
- package/dist/components/JourneyMap.js.map +0 -1
- package/dist/components/StepChecklist.js.map +0 -1
- package/dist/docs/learning-journey-ui-onboarding.docblock.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/views/Overview.js.map +0 -1
- package/dist/views/Progress.js.map +0 -1
- package/dist/views/Steps.js.map +0 -1
- package/dist/views/Timeline.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/dist/views/Overview.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { LearningViewProps } from
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/views/Overview.d.ts
|
|
1
|
+
import type { LearningViewProps } from '@contractspec/example.learning-journey-ui-shared';
|
|
5
2
|
interface OnboardingOverviewProps extends LearningViewProps {
|
|
6
|
-
|
|
3
|
+
onStart?: () => void;
|
|
7
4
|
}
|
|
8
|
-
declare function Overview({
|
|
9
|
-
|
|
10
|
-
progress,
|
|
11
|
-
onStart
|
|
12
|
-
}: OnboardingOverviewProps): react_jsx_runtime0.JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Overview };
|
|
5
|
+
export declare function Overview({ track, progress, onStart, }: OnboardingOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
15
7
|
//# sourceMappingURL=Overview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overview.d.ts","
|
|
1
|
+
{"version":3,"file":"Overview.d.ts","sourceRoot":"","sources":["../../src/views/Overview.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,UAAU,uBAAwB,SAAQ,iBAAiB;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,uBAAuB,2CAsLzB"}
|
package/dist/views/Overview.js
CHANGED
|
@@ -1,180 +1,241 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Card, CardContent, CardHeader, CardTitle } from "@contractspec/lib.ui-kit-web/ui/card";
|
|
4
|
-
import { XpBar } from "@contractspec/example.learning-journey-ui-shared";
|
|
1
|
+
// @bun
|
|
2
|
+
// src/views/Overview.tsx
|
|
5
3
|
import { Button } from "@contractspec/lib.design-system";
|
|
4
|
+
import {
|
|
5
|
+
Card,
|
|
6
|
+
CardContent,
|
|
7
|
+
CardHeader,
|
|
8
|
+
CardTitle
|
|
9
|
+
} from "@contractspec/lib.ui-kit-web/ui/card";
|
|
6
10
|
import { Progress } from "@contractspec/lib.ui-kit-web/ui/progress";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function Overview({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
11
|
+
import { XpBar } from "@contractspec/example.learning-journey-ui-shared";
|
|
12
|
+
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
13
|
+
"use client";
|
|
14
|
+
function Overview({
|
|
15
|
+
track,
|
|
16
|
+
progress,
|
|
17
|
+
onStart
|
|
18
|
+
}) {
|
|
19
|
+
const totalSteps = track.steps.length;
|
|
20
|
+
const completedSteps = progress.completedStepIds.length;
|
|
21
|
+
const percentComplete = totalSteps > 0 ? completedSteps / totalSteps * 100 : 0;
|
|
22
|
+
const isComplete = completedSteps === totalSteps;
|
|
23
|
+
const remainingSteps = totalSteps - completedSteps;
|
|
24
|
+
const estimatedMinutes = remainingSteps * 5;
|
|
25
|
+
const totalXp = track.totalXp ?? track.steps.reduce((sum, s) => sum + (s.xpReward ?? 0), 0) + (track.completionRewards?.xpBonus ?? 0);
|
|
26
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
27
|
+
className: "space-y-6",
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ jsxDEV(Card, {
|
|
30
|
+
className: "overflow-hidden bg-gradient-to-r from-blue-500/10 via-violet-500/10 to-purple-500/10",
|
|
31
|
+
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
32
|
+
className: "p-8",
|
|
33
|
+
children: /* @__PURE__ */ jsxDEV("div", {
|
|
34
|
+
className: "flex flex-col items-center gap-6 text-center md:flex-row md:text-left",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
37
|
+
className: "flex h-20 w-20 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-500 to-violet-600 text-4xl shadow-lg",
|
|
38
|
+
children: isComplete ? "\uD83C\uDF89" : "\uD83D\uDE80"
|
|
39
|
+
}, undefined, false, undefined, this),
|
|
40
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
41
|
+
className: "flex-1",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ jsxDEV("h1", {
|
|
44
|
+
className: "text-2xl font-bold",
|
|
45
|
+
children: track.name
|
|
46
|
+
}, undefined, false, undefined, this),
|
|
47
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
48
|
+
className: "text-muted-foreground mt-1 max-w-2xl",
|
|
49
|
+
children: track.description
|
|
50
|
+
}, undefined, false, undefined, this),
|
|
51
|
+
!isComplete && /* @__PURE__ */ jsxDEV("p", {
|
|
52
|
+
className: "text-muted-foreground mt-3 text-sm",
|
|
53
|
+
children: [
|
|
54
|
+
"\u23F1\uFE0F Estimated time:",
|
|
55
|
+
" ",
|
|
56
|
+
estimatedMinutes > 0 ? `~${estimatedMinutes} minutes` : "Less than a minute"
|
|
57
|
+
]
|
|
58
|
+
}, undefined, true, undefined, this)
|
|
59
|
+
]
|
|
60
|
+
}, undefined, true, undefined, this),
|
|
61
|
+
!isComplete && /* @__PURE__ */ jsxDEV(Button, {
|
|
62
|
+
size: "lg",
|
|
63
|
+
onClick: onStart,
|
|
64
|
+
children: completedSteps > 0 ? "Continue" : "Get Started"
|
|
65
|
+
}, undefined, false, undefined, this)
|
|
66
|
+
]
|
|
67
|
+
}, undefined, true, undefined, this)
|
|
68
|
+
}, undefined, false, undefined, this)
|
|
69
|
+
}, undefined, false, undefined, this),
|
|
70
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
71
|
+
className: "grid gap-4 md:grid-cols-3",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ jsxDEV(Card, {
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsxDEV(CardHeader, {
|
|
76
|
+
className: "pb-2",
|
|
77
|
+
children: /* @__PURE__ */ jsxDEV(CardTitle, {
|
|
78
|
+
className: "text-muted-foreground text-sm font-medium",
|
|
79
|
+
children: "Progress"
|
|
80
|
+
}, undefined, false, undefined, this)
|
|
81
|
+
}, undefined, false, undefined, this),
|
|
82
|
+
/* @__PURE__ */ jsxDEV(CardContent, {
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
85
|
+
className: "text-3xl font-bold",
|
|
86
|
+
children: [
|
|
87
|
+
Math.round(percentComplete),
|
|
88
|
+
"%"
|
|
89
|
+
]
|
|
90
|
+
}, undefined, true, undefined, this),
|
|
91
|
+
/* @__PURE__ */ jsxDEV(Progress, {
|
|
92
|
+
value: percentComplete,
|
|
93
|
+
className: "mt-2 h-2"
|
|
94
|
+
}, undefined, false, undefined, this),
|
|
95
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
96
|
+
className: "text-muted-foreground mt-2 text-sm",
|
|
97
|
+
children: [
|
|
98
|
+
completedSteps,
|
|
99
|
+
" of ",
|
|
100
|
+
totalSteps,
|
|
101
|
+
" steps completed"
|
|
102
|
+
]
|
|
103
|
+
}, undefined, true, undefined, this)
|
|
104
|
+
]
|
|
105
|
+
}, undefined, true, undefined, this)
|
|
106
|
+
]
|
|
107
|
+
}, undefined, true, undefined, this),
|
|
108
|
+
/* @__PURE__ */ jsxDEV(Card, {
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsxDEV(CardHeader, {
|
|
111
|
+
className: "pb-2",
|
|
112
|
+
children: /* @__PURE__ */ jsxDEV(CardTitle, {
|
|
113
|
+
className: "text-muted-foreground text-sm font-medium",
|
|
114
|
+
children: "XP Earned"
|
|
115
|
+
}, undefined, false, undefined, this)
|
|
116
|
+
}, undefined, false, undefined, this),
|
|
117
|
+
/* @__PURE__ */ jsxDEV(CardContent, {
|
|
118
|
+
children: [
|
|
119
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
120
|
+
className: "text-3xl font-bold text-blue-500",
|
|
121
|
+
children: progress.xpEarned
|
|
122
|
+
}, undefined, false, undefined, this),
|
|
123
|
+
/* @__PURE__ */ jsxDEV(XpBar, {
|
|
124
|
+
current: progress.xpEarned,
|
|
125
|
+
max: totalXp,
|
|
126
|
+
showLabel: false,
|
|
127
|
+
size: "sm"
|
|
128
|
+
}, undefined, false, undefined, this)
|
|
129
|
+
]
|
|
130
|
+
}, undefined, true, undefined, this)
|
|
131
|
+
]
|
|
132
|
+
}, undefined, true, undefined, this),
|
|
133
|
+
/* @__PURE__ */ jsxDEV(Card, {
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ jsxDEV(CardHeader, {
|
|
136
|
+
className: "pb-2",
|
|
137
|
+
children: /* @__PURE__ */ jsxDEV(CardTitle, {
|
|
138
|
+
className: "text-muted-foreground text-sm font-medium",
|
|
139
|
+
children: "Time Remaining"
|
|
140
|
+
}, undefined, false, undefined, this)
|
|
141
|
+
}, undefined, false, undefined, this),
|
|
142
|
+
/* @__PURE__ */ jsxDEV(CardContent, {
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
145
|
+
className: "text-3xl font-bold",
|
|
146
|
+
children: isComplete ? "\u2713" : `~${estimatedMinutes}m`
|
|
147
|
+
}, undefined, false, undefined, this),
|
|
148
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
149
|
+
className: "text-muted-foreground mt-2 text-sm",
|
|
150
|
+
children: isComplete ? "All done!" : `${remainingSteps} steps to go`
|
|
151
|
+
}, undefined, false, undefined, this)
|
|
152
|
+
]
|
|
153
|
+
}, undefined, true, undefined, this)
|
|
154
|
+
]
|
|
155
|
+
}, undefined, true, undefined, this)
|
|
156
|
+
]
|
|
157
|
+
}, undefined, true, undefined, this),
|
|
158
|
+
/* @__PURE__ */ jsxDEV(Card, {
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ jsxDEV(CardHeader, {
|
|
161
|
+
children: /* @__PURE__ */ jsxDEV(CardTitle, {
|
|
162
|
+
className: "flex items-center gap-2",
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
165
|
+
children: "\uD83D\uDCCB"
|
|
166
|
+
}, undefined, false, undefined, this),
|
|
167
|
+
/* @__PURE__ */ jsxDEV("span", {
|
|
168
|
+
children: "Your Journey"
|
|
169
|
+
}, undefined, false, undefined, this)
|
|
170
|
+
]
|
|
171
|
+
}, undefined, true, undefined, this)
|
|
172
|
+
}, undefined, false, undefined, this),
|
|
173
|
+
/* @__PURE__ */ jsxDEV(CardContent, {
|
|
174
|
+
children: /* @__PURE__ */ jsxDEV("div", {
|
|
175
|
+
className: "space-y-3",
|
|
176
|
+
children: track.steps.map((step, index) => {
|
|
177
|
+
const isStepCompleted = progress.completedStepIds.includes(step.id);
|
|
178
|
+
const isCurrent = !isStepCompleted && track.steps.slice(0, index).every((s) => progress.completedStepIds.includes(s.id));
|
|
179
|
+
return /* @__PURE__ */ jsxDEV("div", {
|
|
180
|
+
className: "flex items-center gap-4 rounded-lg border p-3",
|
|
181
|
+
children: [
|
|
182
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
183
|
+
className: `flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-sm font-semibold ${isStepCompleted ? "bg-green-500 text-white" : isCurrent ? "bg-blue-500 text-white" : "bg-muted text-muted-foreground"}`,
|
|
184
|
+
children: isStepCompleted ? "\u2713" : index + 1
|
|
185
|
+
}, undefined, false, undefined, this),
|
|
186
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
187
|
+
className: "min-w-0 flex-1",
|
|
188
|
+
children: /* @__PURE__ */ jsxDEV("p", {
|
|
189
|
+
className: `font-medium ${isStepCompleted ? "text-green-500" : isCurrent ? "text-foreground" : "text-muted-foreground"}`,
|
|
190
|
+
children: step.title
|
|
191
|
+
}, undefined, false, undefined, this)
|
|
192
|
+
}, undefined, false, undefined, this),
|
|
193
|
+
step.xpReward && /* @__PURE__ */ jsxDEV("span", {
|
|
194
|
+
className: "text-muted-foreground text-sm",
|
|
195
|
+
children: [
|
|
196
|
+
"+",
|
|
197
|
+
step.xpReward,
|
|
198
|
+
" XP"
|
|
199
|
+
]
|
|
200
|
+
}, undefined, true, undefined, this)
|
|
201
|
+
]
|
|
202
|
+
}, step.id, true, undefined, this);
|
|
203
|
+
})
|
|
204
|
+
}, undefined, false, undefined, this)
|
|
205
|
+
}, undefined, false, undefined, this)
|
|
206
|
+
]
|
|
207
|
+
}, undefined, true, undefined, this),
|
|
208
|
+
isComplete && /* @__PURE__ */ jsxDEV(Card, {
|
|
209
|
+
className: "border-green-500/50 bg-green-500/5",
|
|
210
|
+
children: /* @__PURE__ */ jsxDEV(CardContent, {
|
|
211
|
+
className: "flex items-center gap-4 p-6",
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
214
|
+
className: "text-4xl",
|
|
215
|
+
children: "\uD83C\uDF89"
|
|
216
|
+
}, undefined, false, undefined, this),
|
|
217
|
+
/* @__PURE__ */ jsxDEV("div", {
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ jsxDEV("h3", {
|
|
220
|
+
className: "text-lg font-semibold text-green-500",
|
|
221
|
+
children: "Onboarding Complete!"
|
|
222
|
+
}, undefined, false, undefined, this),
|
|
223
|
+
/* @__PURE__ */ jsxDEV("p", {
|
|
224
|
+
className: "text-muted-foreground",
|
|
225
|
+
children: [
|
|
226
|
+
"You've completed all ",
|
|
227
|
+
totalSteps,
|
|
228
|
+
" steps. Welcome aboard!"
|
|
229
|
+
]
|
|
230
|
+
}, undefined, true, undefined, this)
|
|
231
|
+
]
|
|
232
|
+
}, undefined, true, undefined, this)
|
|
233
|
+
]
|
|
234
|
+
}, undefined, true, undefined, this)
|
|
235
|
+
}, undefined, false, undefined, this)
|
|
236
|
+
]
|
|
237
|
+
}, undefined, true, undefined, this);
|
|
176
238
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
//# sourceMappingURL=Overview.js.map
|
|
239
|
+
export {
|
|
240
|
+
Overview
|
|
241
|
+
};
|
package/dist/views/Progress.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { LearningViewProps } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/views/Progress.d.ts
|
|
5
|
-
declare function ProgressView({
|
|
6
|
-
track,
|
|
7
|
-
progress
|
|
8
|
-
}: LearningViewProps): react_jsx_runtime0.JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ProgressView as Progress, ProgressView };
|
|
1
|
+
import type { LearningViewProps } from '@contractspec/example.learning-journey-ui-shared';
|
|
2
|
+
export declare function ProgressView({ track, progress }: LearningViewProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ProgressView as Progress };
|
|
11
4
|
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../src/views/Progress.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAE1F,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAuKlE;AAGD,OAAO,EAAE,YAAY,IAAI,QAAQ,EAAE,CAAC"}
|