@vllnt/ui 0.2.1-canary.c0afef4 → 0.2.1-canary.cacf57f
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/ai-chat-input/ai-chat-input.js +1 -1
- package/dist/components/chat-dock-section/chat-dock-section.js +1 -1
- package/dist/components/chronological-timeline/chronological-timeline.js +2 -2
- package/dist/components/content-intro/content-intro.js +2 -2
- package/dist/components/context-menu/context-menu.js +1 -1
- package/dist/components/data-list/data-list.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/components/mdx-content/mdx-content.js +3 -3
- package/dist/components/menubar/menubar.js +1 -1
- package/dist/components/parallel-timeline/parallel-timeline.js +1 -1
- package/dist/components/scope-selector/scope-selector.js +3 -3
- package/dist/components/select/select.js +1 -1
- package/dist/components/slideshow/slideshow.js +1 -1
- package/dist/components/subscription-card/subscription-card.js +1 -1
- package/dist/components/ticker-tape/ticker-tape.js +1 -1
- 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/dist/components/wallet-card/wallet-card.js +1 -1
- package/package.json +1 -1
|
@@ -72,7 +72,7 @@ const AIChatInput = forwardRef(
|
|
|
72
72
|
/* @__PURE__ */ jsx(
|
|
73
73
|
Textarea,
|
|
74
74
|
{
|
|
75
|
-
className: "min-h-[120px] resize-none rounded-xl border-0 bg-transparent
|
|
75
|
+
className: "min-h-[120px] resize-none rounded-xl border-0 bg-transparent p-1 shadow-none focus-visible:ring-0 focus-visible:ring-offset-0",
|
|
76
76
|
disabled,
|
|
77
77
|
onChange: (event) => {
|
|
78
78
|
textareaProps?.onChange?.(event);
|
|
@@ -45,7 +45,7 @@ const ChatDockSection = forwardRef(
|
|
|
45
45
|
},
|
|
46
46
|
message.id
|
|
47
47
|
)) }),
|
|
48
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-dashed border-border/80 bg-background/70
|
|
48
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-xl border border-dashed border-border/80 bg-background/70 p-3 text-sm text-muted-foreground", children: composerPlaceholder })
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
)
|
|
@@ -57,7 +57,7 @@ function VideoMedia({ media }) {
|
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
59
|
function AudioMedia({ media }) {
|
|
60
|
-
return /* @__PURE__ */ jsxs("figure", { className: "overflow-hidden rounded-xl border bg-muted
|
|
60
|
+
return /* @__PURE__ */ jsxs("figure", { className: "overflow-hidden rounded-xl border bg-muted p-3", children: [
|
|
61
61
|
/* @__PURE__ */ jsx(
|
|
62
62
|
"audio",
|
|
63
63
|
{
|
|
@@ -309,7 +309,7 @@ const ChronologicalTimeline = forwardRef((props, ref) => {
|
|
|
309
309
|
...rest,
|
|
310
310
|
children: [
|
|
311
311
|
/* @__PURE__ */ jsx(ProgressStrip, { activeId, ids, label: progressLabel }),
|
|
312
|
-
title ? /* @__PURE__ */ jsx("header", { className: "
|
|
312
|
+
title ? /* @__PURE__ */ jsx("header", { className: "p-6", children: /* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold tracking-tight", id: titleId, children: title }) }) : null,
|
|
313
313
|
/* @__PURE__ */ jsx(EventList, { activeId, children })
|
|
314
314
|
]
|
|
315
315
|
}
|
|
@@ -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: [
|
|
@@ -103,7 +103,7 @@ function ContentIntroImpl({
|
|
|
103
103
|
] }),
|
|
104
104
|
additionalContent
|
|
105
105
|
] }),
|
|
106
|
-
/* @__PURE__ */ jsx("div", { className: "fixed bottom-0 left-0 right-0 z-50 border-t border-border bg-background/80 backdrop-blur-sm safe-bottom", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-3xl
|
|
106
|
+
/* @__PURE__ */ jsx("div", { className: "fixed bottom-0 left-0 right-0 z-50 border-t border-border bg-background/80 backdrop-blur-sm safe-bottom", children: /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-3xl p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
107
107
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground hidden sm:block", children: hasProgress ? `${completedSections.size}/${sections.length} completed` : `${sections.length} sections \xB7 ${estimatedTime}` }),
|
|
108
108
|
/* @__PURE__ */ jsxs(
|
|
109
109
|
Button,
|
|
@@ -113,7 +113,7 @@ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
|
113
113
|
const ContextMenuSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
114
114
|
ContextMenuPrimitive.Separator,
|
|
115
115
|
{
|
|
116
|
-
className: cn("-
|
|
116
|
+
className: cn("-m-1 h-px bg-border", className),
|
|
117
117
|
ref,
|
|
118
118
|
...props
|
|
119
119
|
}
|
|
@@ -18,7 +18,7 @@ const dataListVariants = cva(
|
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
const dataListItemVariants = cva(
|
|
21
|
-
"grid gap-1
|
|
21
|
+
"grid gap-1 p-4 sm:grid-cols-[minmax(0,12rem)_1fr] sm:gap-4 sm:px-5",
|
|
22
22
|
{
|
|
23
23
|
defaultVariants: {
|
|
24
24
|
density: "default"
|
|
@@ -113,7 +113,7 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
|
113
113
|
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, reference) => /* @__PURE__ */ jsx(
|
|
114
114
|
DropdownMenuPrimitive.Separator,
|
|
115
115
|
{
|
|
116
|
-
className: cn("-
|
|
116
|
+
className: cn("-m-1 h-px bg-muted", className),
|
|
117
117
|
ref: reference,
|
|
118
118
|
...props
|
|
119
119
|
}
|
|
@@ -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",
|
|
@@ -141,7 +141,7 @@ MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
|
141
141
|
const MenubarSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
142
142
|
MenubarPrimitive.Separator,
|
|
143
143
|
{
|
|
144
|
-
className: cn("-
|
|
144
|
+
className: cn("-m-1 h-px bg-muted", className),
|
|
145
145
|
ref,
|
|
146
146
|
...props
|
|
147
147
|
}
|
|
@@ -159,7 +159,7 @@ function TrackRow({ endYear, startYear, track }) {
|
|
|
159
159
|
const color = track.color ?? "neutral";
|
|
160
160
|
const palette = COLOR_CLASSES[color];
|
|
161
161
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex items-stretch gap-3 border-t border-border first:border-t-0", children: [
|
|
162
|
-
/* @__PURE__ */ jsxs("div", { className: "flex w-32 shrink-0 flex-col gap-1 border-r border-border bg-muted/20
|
|
162
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-32 shrink-0 flex-col gap-1 border-r border-border bg-muted/20 p-3", children: [
|
|
163
163
|
/* @__PURE__ */ jsx(
|
|
164
164
|
"span",
|
|
165
165
|
{
|
|
@@ -57,7 +57,7 @@ function ScopeOptionButton({
|
|
|
57
57
|
"button",
|
|
58
58
|
{
|
|
59
59
|
className: cn(
|
|
60
|
-
"flex w-full items-start justify-between rounded-md border
|
|
60
|
+
"flex w-full items-start justify-between rounded-md border p-3 text-left transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
61
61
|
selectedValue === node.id && "border-primary bg-accent",
|
|
62
62
|
node.disabled && "cursor-not-allowed opacity-50"
|
|
63
63
|
),
|
|
@@ -91,7 +91,7 @@ function ScopeSearchResults({
|
|
|
91
91
|
results,
|
|
92
92
|
selectedValue
|
|
93
93
|
}) {
|
|
94
|
-
return /* @__PURE__ */ jsx("div", { className: "space-y-2
|
|
94
|
+
return /* @__PURE__ */ jsx("div", { className: "space-y-2 p-1", children: results.map(({ node, path }) => /* @__PURE__ */ jsx(
|
|
95
95
|
ScopeOptionButton,
|
|
96
96
|
{
|
|
97
97
|
node,
|
|
@@ -111,7 +111,7 @@ function ScopeCurrentLevel({
|
|
|
111
111
|
onSelect,
|
|
112
112
|
selectedValue
|
|
113
113
|
}) {
|
|
114
|
-
return /* @__PURE__ */ jsx("div", { className: "space-y-2
|
|
114
|
+
return /* @__PURE__ */ jsx("div", { className: "space-y-2 p-1", children: nodes.map((node) => /* @__PURE__ */ jsx(
|
|
115
115
|
ScopeOptionButton,
|
|
116
116
|
{
|
|
117
117
|
node,
|
|
@@ -105,7 +105,7 @@ SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
|
105
105
|
const SelectSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
106
106
|
SelectPrimitive.Separator,
|
|
107
107
|
{
|
|
108
|
-
className: cn("-
|
|
108
|
+
className: cn("-m-1 h-px bg-muted", className),
|
|
109
109
|
ref,
|
|
110
110
|
...props
|
|
111
111
|
}
|
|
@@ -356,7 +356,7 @@ function SlideshowImpl({
|
|
|
356
356
|
}
|
|
357
357
|
) }) })
|
|
358
358
|
] }),
|
|
359
|
-
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex items-center justify-between
|
|
359
|
+
/* @__PURE__ */ jsxs("div", { className: "relative z-20 flex items-center justify-between p-4 border-t border-border bg-background", children: [
|
|
360
360
|
/* @__PURE__ */ jsxs(
|
|
361
361
|
"button",
|
|
362
362
|
{
|
|
@@ -64,7 +64,7 @@ function SubscriptionDetails({
|
|
|
64
64
|
/* @__PURE__ */ jsx("p", { className: "text-xs uppercase tracking-[0.18em] text-muted-foreground", children: "Monthly total" }),
|
|
65
65
|
/* @__PURE__ */ jsx("p", { className: "mt-2 text-3xl font-semibold tracking-tight", children: priceLabel })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-3 rounded-lg border border-border/70 bg-muted/20
|
|
67
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-3 rounded-lg border border-border/70 bg-muted/20 p-4", children: [
|
|
68
68
|
/* @__PURE__ */ jsx(DetailRow, { label: "Renewal", value: renewalLabel }),
|
|
69
69
|
seatsLabel ? /* @__PURE__ */ jsx(DetailRow, { label: "Seats", value: seatsLabel }) : null,
|
|
70
70
|
usageLabel ? /* @__PURE__ */ jsx(DetailRow, { label: "Usage", value: usageLabel }) : null
|
|
@@ -22,7 +22,7 @@ function formatChange(change) {
|
|
|
22
22
|
return `${sign}${change.toFixed(2)}%`;
|
|
23
23
|
}
|
|
24
24
|
function TickerTapeRow({ items }) {
|
|
25
|
-
return /* @__PURE__ */ jsx("div", { className: "flex min-w-max items-center gap-3
|
|
25
|
+
return /* @__PURE__ */ jsx("div", { className: "flex min-w-max items-center gap-3 p-3", children: items.map((item) => {
|
|
26
26
|
const isPositive = item.change >= 0;
|
|
27
27
|
const TrendIcon = isPositive ? ArrowUpRight : ArrowDownRight;
|
|
28
28
|
return /* @__PURE__ */ jsxs(
|
|
@@ -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",
|
|
@@ -31,7 +31,7 @@ function WalletDetails({
|
|
|
31
31
|
/* @__PURE__ */ jsx("p", { className: "text-xs uppercase tracking-[0.18em] text-muted-foreground", children: "Current balance" }),
|
|
32
32
|
/* @__PURE__ */ jsx("p", { className: "mt-2 text-3xl font-semibold tracking-tight", children: balanceLabel })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-3 rounded-lg border border-border/70 bg-muted/20
|
|
34
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-3 rounded-lg border border-border/70 bg-muted/20 p-4", children: [
|
|
35
35
|
availableLabel ? /* @__PURE__ */ jsx(DetailRow, { label: "Available now", value: availableLabel }) : null,
|
|
36
36
|
pendingLabel ? /* @__PURE__ */ jsx(DetailRow, { label: "Pending", value: pendingLabel }) : null,
|
|
37
37
|
renewsLabel ? /* @__PURE__ */ jsx(DetailRow, { label: "Refresh", value: renewsLabel }) : null
|
package/package.json
CHANGED