@tangle-network/sandbox-ui 0.113.3 → 0.113.5

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.
@@ -0,0 +1,314 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-EI44GEQ5.js";
4
+
5
+ // src/primitives/index.ts
6
+ import {
7
+ ArtifactPane,
8
+ Avatar,
9
+ AvatarFallback,
10
+ AvatarImage,
11
+ Badge,
12
+ badgeVariants,
13
+ Button,
14
+ buttonVariants,
15
+ Card,
16
+ CardContent,
17
+ CardDescription,
18
+ CardFooter,
19
+ CardHeader,
20
+ CardTitle,
21
+ CodeBlock,
22
+ CopyButton,
23
+ Dialog,
24
+ DialogClose,
25
+ DialogContent,
26
+ DialogDescription,
27
+ DialogFooter,
28
+ DialogHeader,
29
+ DialogOverlay,
30
+ DialogPortal,
31
+ DialogTitle,
32
+ DialogTrigger,
33
+ DropdownMenu,
34
+ DropdownMenuCheckboxItem,
35
+ DropdownMenuContent,
36
+ DropdownMenuGroup,
37
+ DropdownMenuItem,
38
+ DropdownMenuLabel,
39
+ DropdownMenuPortal,
40
+ DropdownMenuRadioGroup,
41
+ DropdownMenuRadioItem,
42
+ DropdownMenuSeparator,
43
+ DropdownMenuShortcut,
44
+ DropdownMenuSub,
45
+ DropdownMenuSubContent,
46
+ DropdownMenuSubTrigger,
47
+ DropdownMenuTrigger,
48
+ DropZone,
49
+ EmptyState,
50
+ FilterField,
51
+ InlineCode,
52
+ Input,
53
+ Label,
54
+ Metric,
55
+ MetricStrip,
56
+ Progress,
57
+ SegmentedControl,
58
+ Select,
59
+ SelectContent,
60
+ SelectGroup,
61
+ SelectItem,
62
+ SelectLabel,
63
+ SelectScrollDownButton,
64
+ SelectScrollUpButton,
65
+ SelectSeparator,
66
+ SelectTrigger,
67
+ SelectValue,
68
+ SidebarDropZone,
69
+ Skeleton,
70
+ SkeletonCard,
71
+ SkeletonTable,
72
+ StatCard,
73
+ StatusPill,
74
+ Switch,
75
+ Table,
76
+ TableBody,
77
+ TableCaption,
78
+ TableCell,
79
+ TableFooter,
80
+ TableHead,
81
+ TableHeader,
82
+ TableRow,
83
+ Tabs,
84
+ TabsContent,
85
+ TabsList,
86
+ TabsTrigger,
87
+ TerminalCursor,
88
+ TerminalDisplay,
89
+ TerminalInput,
90
+ TerminalLine,
91
+ Textarea,
92
+ TextShimmer,
93
+ ThemeToggle,
94
+ ToastContainer,
95
+ ToastProvider,
96
+ Toolbar,
97
+ UploadProgress,
98
+ useTheme,
99
+ useToast
100
+ } from "@tangle-network/ui/primitives";
101
+
102
+ // src/primitives/logo.tsx
103
+ import { Logo as BrandLogo } from "@tangle-network/brand";
104
+ import { TangleKnot } from "@tangle-network/brand";
105
+ import { jsx } from "react/jsx-runtime";
106
+ function Logo({
107
+ variant = "sandbox",
108
+ size = "md",
109
+ className,
110
+ iconOnly = false
111
+ }) {
112
+ return /* @__PURE__ */ jsx(
113
+ BrandLogo,
114
+ {
115
+ size,
116
+ variant: iconOnly ? "icon" : "full",
117
+ suffix: variant === "sandbox" ? "Sandbox" : null,
118
+ className
119
+ }
120
+ );
121
+ }
122
+ Logo.displayName = "Logo";
123
+
124
+ // src/primitives/heading.tsx
125
+ import {
126
+ forwardRef
127
+ } from "react";
128
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
129
+ var VARIANT_CLASS = {
130
+ display: "font-display font-bold text-foreground text-[length:var(--font-size-display,3rem)] leading-[var(--line-height-display,1.05)] tracking-[var(--tracking-tight,-0.02em)]",
131
+ hero: "font-display font-bold text-foreground text-[length:var(--font-size-hero,2.5rem)] leading-[1.1] tracking-[var(--tracking-tight,-0.02em)]",
132
+ page: "font-display font-semibold text-foreground text-[length:var(--font-size-3xl,1.875rem)] leading-[var(--line-height-heading,1.15)] tracking-[var(--tracking-tight,-0.02em)]",
133
+ section: "font-display font-semibold text-foreground text-[length:var(--font-size-xl,1.25rem)] leading-[1.3] tracking-[var(--tracking-snug,-0.01em)]",
134
+ subsection: "font-semibold text-foreground text-[length:var(--font-size-lg,1rem)] leading-[1.4]",
135
+ eyebrow: "font-semibold uppercase text-muted-foreground text-[length:var(--font-size-sm,0.75rem)] leading-none tracking-[var(--tracking-wide,0.08em)]"
136
+ };
137
+ var DEFAULT_TAG = {
138
+ display: "h1",
139
+ hero: "h2",
140
+ page: "h1",
141
+ section: "h2",
142
+ subsection: "h3",
143
+ eyebrow: "p"
144
+ };
145
+ var Heading = forwardRef(function Heading2({ role, as, className, children, ...rest }, ref) {
146
+ const Tag = as ?? DEFAULT_TAG[role];
147
+ return /* @__PURE__ */ jsx2(Tag, { ref, className: cn(VARIANT_CLASS[role], className), ...rest, children });
148
+ });
149
+ function PageHeader({
150
+ title,
151
+ description,
152
+ eyebrow,
153
+ action,
154
+ className,
155
+ titleAs
156
+ }) {
157
+ return /* @__PURE__ */ jsxs(
158
+ "div",
159
+ {
160
+ className: cn(
161
+ "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
162
+ className
163
+ ),
164
+ children: [
165
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
166
+ eyebrow ? /* @__PURE__ */ jsx2(Heading, { role: "eyebrow", children: eyebrow }) : null,
167
+ /* @__PURE__ */ jsx2(Heading, { role: "page", as: titleAs, children: title }),
168
+ description ? /* @__PURE__ */ jsx2("p", { className: "max-w-2xl text-[length:var(--font-size-base,0.9375rem)] text-muted-foreground leading-relaxed", children: description }) : null
169
+ ] }),
170
+ action ? /* @__PURE__ */ jsx2("div", { className: "flex shrink-0 items-center gap-2", children: action }) : null
171
+ ]
172
+ }
173
+ );
174
+ }
175
+ function SectionTitle({
176
+ title,
177
+ description,
178
+ action,
179
+ className
180
+ }) {
181
+ return /* @__PURE__ */ jsxs(
182
+ "div",
183
+ {
184
+ className: cn(
185
+ "flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",
186
+ className
187
+ ),
188
+ children: [
189
+ /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
190
+ /* @__PURE__ */ jsx2(Heading, { role: "section", children: title }),
191
+ description ? /* @__PURE__ */ jsx2("p", { className: "max-w-xl text-[length:var(--font-size-sm,0.75rem)] text-muted-foreground", children: description }) : null
192
+ ] }),
193
+ action ? /* @__PURE__ */ jsx2("div", { className: "shrink-0", children: action }) : null
194
+ ]
195
+ }
196
+ );
197
+ }
198
+
199
+ // src/primitives/page-shell.tsx
200
+ import { jsx as jsx3 } from "react/jsx-runtime";
201
+ function PageShell({ children, className }) {
202
+ return /* @__PURE__ */ jsx3(
203
+ "div",
204
+ {
205
+ className: cn(
206
+ "mx-auto w-full max-w-6xl space-y-8 px-6 py-8 lg:px-8",
207
+ className
208
+ ),
209
+ children
210
+ }
211
+ );
212
+ }
213
+
214
+ export {
215
+ Logo,
216
+ TangleKnot,
217
+ Heading,
218
+ PageHeader,
219
+ SectionTitle,
220
+ PageShell,
221
+ ArtifactPane,
222
+ Avatar,
223
+ AvatarFallback,
224
+ AvatarImage,
225
+ Badge,
226
+ badgeVariants,
227
+ Button,
228
+ buttonVariants,
229
+ Card,
230
+ CardContent,
231
+ CardDescription,
232
+ CardFooter,
233
+ CardHeader,
234
+ CardTitle,
235
+ CodeBlock,
236
+ CopyButton,
237
+ Dialog,
238
+ DialogClose,
239
+ DialogContent,
240
+ DialogDescription,
241
+ DialogFooter,
242
+ DialogHeader,
243
+ DialogOverlay,
244
+ DialogPortal,
245
+ DialogTitle,
246
+ DialogTrigger,
247
+ DropdownMenu,
248
+ DropdownMenuCheckboxItem,
249
+ DropdownMenuContent,
250
+ DropdownMenuGroup,
251
+ DropdownMenuItem,
252
+ DropdownMenuLabel,
253
+ DropdownMenuPortal,
254
+ DropdownMenuRadioGroup,
255
+ DropdownMenuRadioItem,
256
+ DropdownMenuSeparator,
257
+ DropdownMenuShortcut,
258
+ DropdownMenuSub,
259
+ DropdownMenuSubContent,
260
+ DropdownMenuSubTrigger,
261
+ DropdownMenuTrigger,
262
+ DropZone,
263
+ EmptyState,
264
+ FilterField,
265
+ InlineCode,
266
+ Input,
267
+ Label,
268
+ Metric,
269
+ MetricStrip,
270
+ Progress,
271
+ SegmentedControl,
272
+ Select,
273
+ SelectContent,
274
+ SelectGroup,
275
+ SelectItem,
276
+ SelectLabel,
277
+ SelectScrollDownButton,
278
+ SelectScrollUpButton,
279
+ SelectSeparator,
280
+ SelectTrigger,
281
+ SelectValue,
282
+ SidebarDropZone,
283
+ Skeleton,
284
+ SkeletonCard,
285
+ SkeletonTable,
286
+ StatCard,
287
+ StatusPill,
288
+ Switch,
289
+ Table,
290
+ TableBody,
291
+ TableCaption,
292
+ TableCell,
293
+ TableFooter,
294
+ TableHead,
295
+ TableHeader,
296
+ TableRow,
297
+ Tabs,
298
+ TabsContent,
299
+ TabsList,
300
+ TabsTrigger,
301
+ TerminalCursor,
302
+ TerminalDisplay,
303
+ TerminalInput,
304
+ TerminalLine,
305
+ Textarea,
306
+ TextShimmer,
307
+ ThemeToggle,
308
+ ToastContainer,
309
+ ToastProvider,
310
+ Toolbar,
311
+ UploadProgress,
312
+ useTheme,
313
+ useToast
314
+ };