@vllnt/ui 0.2.1-canary.0aaaad2 → 0.2.1-canary.2fa0278
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/dist/components/content-intro/content-intro.js +1 -1
- package/dist/components/mdx-content/mdx-content.js +3 -3
- package/dist/components/tutorial-complete/tutorial-complete.js +1 -1
- package/dist/components/tutorial-intro-content/tutorial-intro-content.js +4 -4
- package/dist/components/tutorial-mdx/tutorial-mdx.js +4 -4
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@ function ContentIntroImpl({
|
|
|
41
41
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
42
|
/* @__PURE__ */ jsxs("div", { className: "animate-in fade-in-0 duration-500 pb-24", children: [
|
|
43
43
|
/* @__PURE__ */ jsxs("section", { className: "py-6", children: [
|
|
44
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-
|
|
44
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-semibold mb-6", children: title }),
|
|
45
45
|
/* @__PURE__ */ jsx("div", { className: cn("max-w-none", "[&_h2:first-of-type]:hidden"), children: renderIntroContent() })
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ jsxs("section", { className: "mt-8 py-6 border-t border-border", children: [
|
|
@@ -37,9 +37,9 @@ const MDXComponents = {
|
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
39
|
em: ({ children, ...props }) => /* @__PURE__ */ jsx("em", { className: "italic", ...props, children }),
|
|
40
|
-
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-
|
|
41
|
-
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-
|
|
42
|
-
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-
|
|
40
|
+
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold mt-8 mb-4", ...props, children }),
|
|
41
|
+
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mt-6 mb-3", ...props, children }),
|
|
42
|
+
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mt-4 mb-2", ...props, children }),
|
|
43
43
|
hr: ({ ...props }) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
44
44
|
li: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
45
45
|
"li",
|
|
@@ -41,7 +41,7 @@ function TutorialCompleteImpl({
|
|
|
41
41
|
)
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
|
-
/* @__PURE__ */ jsx("h2", { className: "text-3xl font-
|
|
44
|
+
/* @__PURE__ */ jsx("h2", { className: "text-3xl font-semibold mb-2", children: isFullyComplete ? labels.tutorialComplete : labels.tutorialFinished }),
|
|
45
45
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-6", children: isFullyComplete ? `${labels.youveCompletedAll} "${title}"` : `${labels.youveFinishedWith} "${title}" (${completionPercent}%)` }),
|
|
46
46
|
/* @__PURE__ */ jsxs(Button, { className: "gap-2", onClick: onRestart, variant: "outline", children: [
|
|
47
47
|
/* @__PURE__ */ jsx(RotateCcw, { className: "size-4" }),
|
|
@@ -47,15 +47,15 @@ const serverMarkdownComponents = {
|
|
|
47
47
|
h1: ({
|
|
48
48
|
children,
|
|
49
49
|
...props
|
|
50
|
-
}) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-
|
|
50
|
+
}) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold mt-8 mb-4", ...props, children }),
|
|
51
51
|
h2: ({
|
|
52
52
|
children,
|
|
53
53
|
...props
|
|
54
|
-
}) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-
|
|
54
|
+
}) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mt-6 mb-3", ...props, children }),
|
|
55
55
|
h3: ({
|
|
56
56
|
children,
|
|
57
57
|
...props
|
|
58
|
-
}) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-
|
|
58
|
+
}) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mt-4 mb-2", ...props, children }),
|
|
59
59
|
hr: (props) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
60
60
|
li: ({
|
|
61
61
|
children,
|
|
@@ -132,7 +132,7 @@ function TutorialIntroContent({
|
|
|
132
132
|
}) {
|
|
133
133
|
const markdownContent = stripMDXComponents(content);
|
|
134
134
|
return /* @__PURE__ */ jsxs("section", { className: cn("py-6", className), children: [
|
|
135
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-
|
|
135
|
+
/* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-semibold mb-6", children: title }),
|
|
136
136
|
/* @__PURE__ */ jsx("div", { className: "max-w-none [&_h2:first-of-type]:hidden", children: /* @__PURE__ */ jsx(ReactMarkdown, { components: serverMarkdownComponents, children: markdownContent }) })
|
|
137
137
|
] });
|
|
138
138
|
}
|
|
@@ -114,10 +114,10 @@ const markdownComponents = {
|
|
|
114
114
|
}
|
|
115
115
|
);
|
|
116
116
|
},
|
|
117
|
-
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-
|
|
118
|
-
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-
|
|
119
|
-
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-
|
|
120
|
-
h4: ({ children, ...props }) => /* @__PURE__ */ jsx("h4", { className: "text-base font-
|
|
117
|
+
h1: ({ children, ...props }) => /* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold mt-8 mb-4", ...props, children }),
|
|
118
|
+
h2: ({ children, ...props }) => /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold mt-6 mb-3", ...props, children }),
|
|
119
|
+
h3: ({ children, ...props }) => /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold mt-4 mb-2", ...props, children }),
|
|
120
|
+
h4: ({ children, ...props }) => /* @__PURE__ */ jsx("h4", { className: "text-base font-semibold mt-3 mb-2", ...props, children }),
|
|
121
121
|
hr: ({ ...props }) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
122
122
|
li: ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
123
123
|
"li",
|
package/package.json
CHANGED