velloo 0.5.0 → 0.6.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/canvas/assets/index-CnyI3aig.js +29 -0
- package/canvas/assets/index-GNLd0pCG.css +2 -0
- package/canvas/assets/lucide-all-CH8LmVh0.js +1 -0
- package/canvas/index.html +2 -2
- package/{chunk-j7tzbt3d.js → chunk-08mjtg1e.js} +1 -1
- package/{chunk-afe25dpr.js → chunk-1gkeepkm.js} +1 -1
- package/{chunk-5ma8zbty.js → chunk-1td6z6ey.js} +1 -1
- package/{chunk-wkqrb2tz.js → chunk-2ba6edh8.js} +1 -1
- package/chunk-2q561dec.js +2 -0
- package/chunk-2web93qz.js +2 -0
- package/{chunk-6ytv1v2r.js → chunk-3trkmgfr.js} +1 -1
- package/chunk-52m26hh4.js +3 -0
- package/{chunk-3ffs39e8.js → chunk-56vfy0db.js} +1 -1
- package/{chunk-qpv28z8d.js → chunk-56z5xd5b.js} +1 -1
- package/{chunk-d4r0myxr.js → chunk-63y5gdzw.js} +1 -1
- package/{chunk-5y9hem1j.js → chunk-6813v926.js} +257 -3
- package/{chunk-hr3gbak5.js → chunk-69qb8p8s.js} +1 -1
- package/chunk-74yxy75r.js +3 -0
- package/{chunk-4pkw6d9n.js → chunk-8cj4swpr.js} +5 -5
- package/chunk-8grzf8q1.js +2 -0
- package/chunk-8vam2893.js +3 -0
- package/{chunk-675tr675.js → chunk-8vgpffn7.js} +1 -1
- package/{chunk-z78c1kf8.js → chunk-96qhpth5.js} +1 -1
- package/{chunk-tw4kw4ps.js → chunk-ab8fga32.js} +1 -1
- package/{chunk-asvdqkdp.js → chunk-azeqkms7.js} +1 -1
- package/{chunk-df557bn4.js → chunk-bc7pkjcn.js} +1 -1
- package/{chunk-1h3gqy7w.js → chunk-c4spp880.js} +1 -1
- package/{chunk-ngbqd7kb.js → chunk-chtv0yj6.js} +184 -103
- package/{chunk-xzkczmgg.js → chunk-dar6wbf2.js} +1 -1
- package/{chunk-ryga3ny1.js → chunk-e2btp1wd.js} +1 -1
- package/{chunk-rd65xm6r.js → chunk-eqjtq673.js} +1 -1
- package/{chunk-vrvkvb0v.js → chunk-esb7n55g.js} +3 -3
- package/chunk-ey65err5.js +5 -0
- package/{chunk-cqt1dpxd.js → chunk-ff0jfn0v.js} +1 -1
- package/chunk-ff2vt7cz.js +12 -0
- package/{chunk-f45p6kcb.js → chunk-g185gx8a.js} +1 -1
- package/{chunk-d9kx7v12.js → chunk-h85hv05d.js} +1 -1
- package/{chunk-vryadew3.js → chunk-hf4adxe0.js} +2 -2
- package/{chunk-edgwx026.js → chunk-hjc5eg5c.js} +1 -1
- package/{chunk-gn9wcc1b.js → chunk-hsfpbjpc.js} +1 -1
- package/{chunk-4sjvdakg.js → chunk-jsvkqae2.js} +1 -1
- package/{chunk-b3x80jc1.js → chunk-k423dkjz.js} +1 -1
- package/{chunk-0wqxb8r9.js → chunk-mfch0b0t.js} +1 -1
- package/{chunk-cdqah1hy.js → chunk-nx09zqgs.js} +1 -1
- package/chunk-p93x4pn2.js +3 -0
- package/{chunk-ahm4zd56.js → chunk-pxaxgkaq.js} +1 -1
- package/{chunk-5f0xv80x.js → chunk-qwccndcd.js} +1 -1
- package/{chunk-33t0csxs.js → chunk-rjjc9vam.js} +1 -1
- package/{chunk-0wafc9aw.js → chunk-rk238m15.js} +1 -1
- package/chunk-t2x3mztc.js +2 -0
- package/{chunk-42bj6r30.js → chunk-t6qr2ay9.js} +1 -1
- package/chunk-ta84ehgg.js +2 -0
- package/chunk-tac2wvc7.js +2 -0
- package/chunk-tbd6wn3q.js +6 -0
- package/chunk-w2naqxqt.js +2 -0
- package/chunk-wfhv9jg4.js +2 -0
- package/chunk-wnj432fw.js +3 -0
- package/chunk-x02z2ccm.js +2 -0
- package/{chunk-a16mz9zf.js → chunk-xtwx2p9g.js} +1 -1
- package/chunk-yfvc8d2g.js +716 -0
- package/chunk-z73q4dq9.js +2 -0
- package/{chunk-ycrddh47.js → chunk-ztsckexy.js} +2 -2
- package/cli.js +1 -1
- package/package.json +1 -1
- package/pkgs/helpers/src/descriptors.ts +1 -0
- package/pkgs/helpers/src/index.ts +7 -4
- package/pkgs/helpers/src/lowering.ts +0 -24
- package/pkgs/helpers/src/primitive-classes.tsx +43 -0
- package/pkgs/provider-antd/src/intro.ts +3 -3
- package/pkgs/provider-antd/src/manifest.ts +478 -57
- package/pkgs/provider-antd/src/registry.ts +8 -5
- package/pkgs/provider-antd/src/render-pass.ts +10 -4
- package/pkgs/provider-antd/src/reset-css.d.ts +5 -0
- package/pkgs/provider-antd/src/theme.ts +54 -11
- package/pkgs/provider-chakra/src/manifest.ts +5 -1
- package/pkgs/provider-mui/src/index.ts +4 -2
- package/pkgs/provider-mui/src/manifest.ts +10 -1
- package/pkgs/provider-mui/src/render-pass.ts +15 -1
- package/pkgs/provider-mui/src/theme.ts +10 -4
- package/pkgs/provider-none/src/components.tsx +15 -50
- package/pkgs/provider-none/src/manifest.ts +1 -0
- package/pkgs/schema/src/annotation.ts +6 -3
- package/pkgs/schema/src/comment.ts +10 -1
- package/pkgs/schema/src/index.ts +13 -1
- package/pkgs/schema/src/node-identity.ts +92 -0
- package/pkgs/schema/src/node.ts +13 -4
- package/pkgs/schema/src/theme.ts +6 -1
- package/pkgs/schema/src/typeset.ts +24 -17
- package/pkgs/shadcn-snapshot/dist/manifest.json +1 -0
- package/pkgs/shadcn-snapshot/src/components/ui/alert.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/aspect-ratio.tsx +2 -3
- package/pkgs/shadcn-snapshot/src/components/ui/attachment.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/avatar.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/badge.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/breadcrumb.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/bubble.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/button-group.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/button.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/card.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/carousel.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/chart.tsx +1 -1
- package/pkgs/shadcn-snapshot/src/components/ui/direction.tsx +2 -3
- package/pkgs/shadcn-snapshot/src/components/ui/empty.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/field.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/input-group.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/item.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/kbd.tsx +2 -3
- package/pkgs/shadcn-snapshot/src/components/ui/label.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/marker.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/message.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/native-select.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/navigation-menu.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/pagination.tsx +3 -4
- package/pkgs/shadcn-snapshot/src/components/ui/progress.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/radio-group.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/scroll-area.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/separator.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/skeleton.tsx +2 -3
- package/pkgs/shadcn-snapshot/src/components/ui/spinner.tsx +2 -3
- package/pkgs/shadcn-snapshot/src/components/ui/table.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/tabs.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/components/ui/toggle.tsx +2 -4
- package/pkgs/shadcn-snapshot/src/shadcn-tailwind.css +1 -1
- package/pkgs/shadcn-snapshot/src/tailwind-entry.css +1 -1
- package/canvas/assets/index-BDBBHdHH.css +0 -2
- package/canvas/assets/index-QdsLJNY9.js +0 -29
- package/canvas/assets/lucide-all-R8DUyY-B.js +0 -1
- package/chunk-0rdf6trc.js +0 -2
- package/chunk-10hap8kc.js +0 -6
- package/chunk-18eqh3s1.js +0 -2
- package/chunk-19xyzep8.js +0 -2
- package/chunk-49w26e94.js +0 -5
- package/chunk-66qgm91k.js +0 -708
- package/chunk-6cgvzwec.js +0 -3
- package/chunk-75sc3adm.js +0 -2
- package/chunk-7cexzg71.js +0 -2
- package/chunk-98rann8t.js +0 -2
- package/chunk-emv1j50t.js +0 -2
- package/chunk-ewgdcgrk.js +0 -2
- package/chunk-mm8wv3bg.js +0 -3
- package/chunk-nkqtnwzz.js +0 -2
- package/chunk-q3kf8243.js +0 -3
- package/chunk-sb5h27w9.js +0 -3
- package/chunk-vgx47anc.js +0 -3
- package/chunk-w6f40y2x.js +0 -11
- package/chunk-we8hvy6e.js +0 -2
|
@@ -287,24 +287,31 @@ export function typesetUtilityClasses(): string[] {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* The scale as
|
|
291
|
-
* paired leading and tracking
|
|
292
|
-
*
|
|
293
|
-
*
|
|
290
|
+
* The scale as Tailwind v3 `theme.extend` maps. `fontSize` carries each role's
|
|
291
|
+
* paired leading and tracking (so `text-h1` alone sets all three), and
|
|
292
|
+
* `lineHeight` / `letterSpacing` make the standalone `leading-<role>` /
|
|
293
|
+
* `tracking-<role>` utilities exist — v3 derives no utility from a fontSize
|
|
294
|
+
* tuple's extras, and `TYPESET_CLASSES` spells all three. Every value is a
|
|
295
|
+
* `var()` into the typeset sheet, so a v3 app re-derives inside a
|
|
296
|
+
* `.typeset-<preset>` region exactly like a v4 one.
|
|
294
297
|
*/
|
|
295
|
-
export function
|
|
296
|
-
string,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
298
|
+
export function typesetV3Theme(): {
|
|
299
|
+
fontSize: Record<string, [string, { lineHeight: string; letterSpacing: string }]>;
|
|
300
|
+
lineHeight: Record<string, string>;
|
|
301
|
+
letterSpacing: Record<string, string>;
|
|
302
|
+
} {
|
|
303
|
+
const fontSize: Record<string, [string, { lineHeight: string; letterSpacing: string }]> = {};
|
|
304
|
+
const lineHeight: Record<string, string> = {};
|
|
305
|
+
const letterSpacing: Record<string, string> = {};
|
|
306
|
+
for (const role of TYPESET_SCALE_NAMES) {
|
|
307
|
+
fontSize[role] = [
|
|
308
|
+
`var(--text-${role})`,
|
|
309
|
+
{ lineHeight: `var(--leading-${role})`, letterSpacing: `var(--tracking-${role})` },
|
|
310
|
+
];
|
|
311
|
+
lineHeight[role] = `var(--leading-${role})`;
|
|
312
|
+
letterSpacing[role] = `var(--tracking-${role})`;
|
|
313
|
+
}
|
|
314
|
+
return { fontSize, lineHeight, letterSpacing };
|
|
308
315
|
}
|
|
309
316
|
|
|
310
317
|
/**
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/alert).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import type * as React from "react";
|
|
8
|
-
|
|
9
7
|
import { cn } from "../../lib/utils.ts";
|
|
10
8
|
|
|
11
9
|
const alertVariants = cva(
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/aspect-ratio).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { AspectRatio as AspectRatioPrimitive } from "radix-ui";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/attachment).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
9
|
+
|
|
11
10
|
import { Button } from "./button.tsx";
|
|
12
11
|
|
|
13
12
|
const attachmentVariants = cva(
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/avatar).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { Avatar as AvatarPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function Avatar({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/badge).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
const badgeVariants = cva(
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/breadcrumb).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/bubble).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function BubbleGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/button-group).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
6
5
|
import { Slot } from "radix-ui";
|
|
7
|
-
|
|
8
6
|
import { cn } from "../../lib/utils.ts";
|
|
7
|
+
|
|
9
8
|
import { Separator } from "./separator.tsx";
|
|
10
9
|
|
|
11
10
|
const buttonGroupVariants = cva(
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/button).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
const buttonVariants = cva(
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/card).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import type * as React from "react";
|
|
6
|
-
|
|
7
5
|
import { cn } from "../../lib/utils.ts";
|
|
8
6
|
|
|
9
7
|
function Card({
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/carousel).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
8
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
|
|
9
8
|
import * as React from "react";
|
|
10
|
-
|
|
11
9
|
import { cn } from "../../lib/utils.ts";
|
|
10
|
+
|
|
12
11
|
import { Button } from "./button.tsx";
|
|
13
12
|
|
|
14
13
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Velloo-flavored Chart. shadcn's `chart` is a recharts wrapper that needs a
|
|
1
|
+
// Canvas-safe: Velloo-flavored Chart. shadcn's `chart` is a recharts wrapper that needs a
|
|
2
2
|
// measured DOM (ResponsiveContainer), so it renders nothing under the
|
|
3
3
|
// renderer's static SSR. We render a realistic preview server-side via
|
|
4
4
|
// echarts' headless SSR-to-SVG mode (see chart-option.ts) — bar/line/area/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/direction).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { Direction } from "radix-ui";
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/empty).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
6
|
-
|
|
7
5
|
import { cn } from "../../lib/utils.ts";
|
|
8
6
|
|
|
9
7
|
function Empty({ className, ...props }: React.ComponentProps<"div">) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/field).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
8
7
|
import { useMemo } from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
9
|
+
|
|
11
10
|
import { Label } from "./label.tsx";
|
|
12
11
|
import { Separator } from "./separator.tsx";
|
|
13
12
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/input-group).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
9
|
+
|
|
11
10
|
import { Button } from "./button.tsx";
|
|
12
11
|
import { Input } from "./input.tsx";
|
|
13
12
|
import { Textarea } from "./textarea.tsx";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/item).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
9
|
+
|
|
11
10
|
import { Separator } from "./separator.tsx";
|
|
12
11
|
|
|
13
12
|
function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/kbd).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import { cn } from "../../lib/utils.ts";
|
|
6
5
|
|
|
7
6
|
function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/label).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/marker).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
7
6
|
import { Slot } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
const markerVariants = cva(
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/message).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import type * as React from "react";
|
|
6
|
-
|
|
7
5
|
import { cn } from "../../lib/utils.ts";
|
|
8
6
|
|
|
9
7
|
function MessageGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/native-select).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { ChevronDownIcon } from "lucide-react";
|
|
7
6
|
import type * as React from "react";
|
|
8
|
-
|
|
9
7
|
import { cn } from "../../lib/utils.ts";
|
|
10
8
|
|
|
11
9
|
type NativeSelectProps = Omit<React.ComponentProps<"select">, "size"> & {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/navigation-menu).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { cva } from "class-variance-authority";
|
|
7
6
|
import { ChevronDownIcon } from "lucide-react";
|
|
8
7
|
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
|
|
9
8
|
import type * as React from "react";
|
|
10
|
-
|
|
11
9
|
import { cn } from "../../lib/utils.ts";
|
|
12
10
|
|
|
13
11
|
function NavigationMenu({
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/pagination).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
7
6
|
import type * as React from "react";
|
|
8
|
-
|
|
9
7
|
import { cn } from "../../lib/utils.ts";
|
|
8
|
+
|
|
10
9
|
import { Button } from "./button.tsx";
|
|
11
10
|
|
|
12
11
|
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/progress).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function Progress({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/radio-group).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function RadioGroup({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/scroll-area).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function ScrollArea({
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/separator).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
8
7
|
import type * as React from "react";
|
|
9
|
-
|
|
10
8
|
import { cn } from "../../lib/utils.ts";
|
|
11
9
|
|
|
12
10
|
function Separator({
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/skeleton).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
import { cn } from "../../lib/utils.ts";
|
|
6
5
|
|
|
7
6
|
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/spinner).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
|
|
6
5
|
import { Loader2Icon } from "lucide-react";
|
|
7
6
|
import { cn } from "../../lib/utils.ts";
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/table).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import type * as React from "react";
|
|
8
|
-
|
|
9
7
|
import { cn } from "../../lib/utils.ts";
|
|
10
8
|
|
|
11
9
|
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/tabs).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
8
7
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
9
8
|
import type * as React from "react";
|
|
10
|
-
|
|
11
9
|
import { cn } from "../../lib/utils.ts";
|
|
12
10
|
|
|
13
11
|
function Tabs({
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// Vendored from shadcn-ui (https://ui.shadcn.com/docs/components/radix/toggle).
|
|
2
|
-
//
|
|
3
|
-
// Regenerate with `bun run vendor` —
|
|
4
|
-
// canvas adaptation, in which case add the id to vendor.ts's ADAPTED set.
|
|
2
|
+
// Design-mode fork for the Velloo canvas — not the shadcn the IDE chrome renders.
|
|
3
|
+
// Regenerate with `bun run vendor` — the pipeline is scripts/vendor-shadcn/.
|
|
5
4
|
"use client";
|
|
6
5
|
|
|
7
6
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
8
7
|
import { Toggle as TogglePrimitive } from "radix-ui";
|
|
9
8
|
import type * as React from "react";
|
|
10
|
-
|
|
11
9
|
import { cn } from "../../lib/utils.ts";
|
|
12
10
|
|
|
13
11
|
const toggleVariants = cva(
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
* Classes upstream *emits* but does not *distribute*: they live in the
|
|
84
84
|
* shadcn.com app's own globals.css, so a registry pull references them without
|
|
85
85
|
* ever defining them (the same leak that puts `IconPlaceholder` in the source
|
|
86
|
-
* — see vendor
|
|
86
|
+
* — see scripts/vendor-shadcn/). Defined here to upstream's intent so the components that
|
|
87
87
|
* reference them aren't silently inert.
|
|
88
88
|
*/
|
|
89
89
|
@utility cn-rtl-flip {
|