@vvedantb/ui 0.65.0 → 0.66.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/README.md CHANGED
@@ -1531,7 +1531,7 @@ import { AppWordmark, Button, Card, Tabs, TabsList, TabsTrigger, cn, createTheme
1531
1531
  The root's exports, without:
1532
1532
 
1533
1533
  - the artifact viewers (`src/artifacts`: `ArtifactFrame`, `ArtifactViewer`, ...), which import `@vvedantb/server`;
1534
- - `ConvexClerkProvider`, `useStableAuth`, `createUseStableAuth`, `resetStableAuthSession` and `useEnsureUser`, which import `convex` or `@clerk/clerk-react`.
1534
+ - `ConvexClerkProvider`, `useStableAuth`, `createUseStableAuth`, `resetStableAuthSession` and `useEnsureUser`, which import `convex` or `@clerk/react`.
1535
1535
 
1536
1536
  Every other name is the same binding as in the root. `src/client-exports.test.ts` keeps the two in step, and `app/tests-node/client-graph.test.mjs` checks that the entry's module graph has no `@vvedantb/server`, convex, Clerk or `node:` import. The root is unchanged.
1537
1537
 
@@ -1928,6 +1928,6 @@ A fixture that renders the main components against sample light and dark RGB var
1928
1928
 
1929
1929
  The components that came from the app (loaders, `ListRow`, `Surface`, `BorderBeam`, `Avatar`, `StatusDot`, kanban and the sortable list, activity, agent trace, agent plan, test results, the model picker and markdown) render on plain `tokens.css` in light and dark in `tokens/examples/tokens-moved/`.
1930
1930
 
1931
- `@clerk/clerk-react`, `convex`, `@tanstack/react-hotkeys`, `motion`, `zod` and `@vvedantb/server` (0.13.0) are optional peers (`peerDependenciesMeta`), so the package manager does not install or warn about them. The root still imports each of them statically from some module (`useStableAuth` and `ConvexClerkProvider` import Clerk; `ConvexClerkProvider` and `useEnsureUser` import `convex/react`; the artifact viewers import `@vvedantb/server`; the motion presets, `ConfirmSkipHint` and others import the rest). So an app that imports `@vvedantb/ui` must have all six resolvable, even if it uses none of those exports: a bundler resolves every import before it tree-shakes. `app/tests-node/convex-esm.test.mjs` pins which root modules import `convex` and Clerk, and `app/tests-node/artifacts-esm.test.mjs` which import `@vvedantb/server`.
1931
+ `@clerk/react`, `convex`, `@tanstack/react-hotkeys`, `motion`, `zod` and `@vvedantb/server` (0.13.0) are optional peers (`peerDependenciesMeta`), so the package manager does not install or warn about them. The root still imports each of them statically from some module (`useStableAuth` and `ConvexClerkProvider` import Clerk; `ConvexClerkProvider` and `useEnsureUser` import `convex/react`; the artifact viewers import `@vvedantb/server`; the motion presets, `ConfirmSkipHint` and others import the rest). So an app that imports `@vvedantb/ui` must have all six resolvable, even if it uses none of those exports: a bundler resolves every import before it tree-shakes. `app/tests-node/convex-esm.test.mjs` pins which root modules import `convex` and Clerk, and `app/tests-node/artifacts-esm.test.mjs` which import `@vvedantb/server`.
1932
1932
 
1933
1933
  Full documentation: the repository `README.md`. Upgrading from `@vvedantb/tokens`, `@vvedantb/shell` or `@vvedantb/app-kit`: `MIGRATION.md`.
@@ -1,4 +1,4 @@
1
- import { useAuth } from "@clerk/clerk-react";
1
+ import { useAuth } from "@clerk/react";
2
2
  import { useEffect, useState } from "react";
3
3
 
4
4
  /** The two Clerk `useAuth` fields the hook reads. */
@@ -64,6 +64,6 @@ export function createUseStableAuth<T extends ClerkAuthSlice>(
64
64
  };
65
65
  }
66
66
 
67
- /** `useAuth` from `@clerk/clerk-react` with the 2000 ms debounce. */
67
+ /** `useAuth` from `@clerk/react` with the 2000 ms debounce. */
68
68
  export const useStableAuth: () => ReturnType<typeof useAuth> =
69
69
  createUseStableAuth(useAuth);
@@ -1,4 +1,4 @@
1
- import { useAuth as useClerkAuth } from "@clerk/clerk-react";
1
+ import { useAuth as useClerkAuth } from "@clerk/react";
2
2
  import { ConvexProvider, type ConvexReactClient } from "convex/react";
3
3
  import { ConvexProviderWithClerk } from "convex/react-clerk";
4
4
  import type { ComponentProps, ReactNode } from "react";
@@ -9,7 +9,7 @@ export type ConvexClerkUseAuth = ComponentProps<typeof ConvexProviderWithClerk>[
9
9
  export type ConvexClerkProviderProps = {
10
10
  /** No client (for example no Convex URL configured): children render without a provider. */
11
11
  client: ConvexReactClient | null | undefined;
12
- /** Default: `useAuth` from `@clerk/clerk-react`. */
12
+ /** Default: `useAuth` from `@clerk/react`. */
13
13
  useAuth?: ConvexClerkUseAuth;
14
14
  /** `false` renders a plain `ConvexProvider` (no Clerk auth). Default `true`. */
15
15
  clerk?: boolean;
@@ -1,4 +1,4 @@
1
- import { useAuth } from "@clerk/clerk-react";
1
+ import { useAuth } from "@clerk/react";
2
2
  import { useEffect, useState } from "react";
3
3
 
4
4
  /** The two Clerk `useAuth` fields the hook reads. */
@@ -50,5 +50,5 @@ export function createUseStableAuth(useAuthHook, options = {}) {
50
50
  };
51
51
  }
52
52
 
53
- /** `useAuth` from `@clerk/clerk-react` with the 2000 ms debounce. */
53
+ /** `useAuth` from `@clerk/react` with the 2000 ms debounce. */
54
54
  export const useStableAuth = createUseStableAuth(useAuth);
@@ -1,4 +1,4 @@
1
- import { useAuth as useClerkAuth } from "@clerk/clerk-react";
1
+ import { useAuth as useClerkAuth } from "@clerk/react";
2
2
  import { ConvexProvider } from "convex/react";
3
3
  import { ConvexProviderWithClerk } from "convex/react-clerk";
4
4
 
@@ -13,6 +13,7 @@ export const Image = t0 => {
13
13
  base64: t4,
14
14
  uint8Array: _uint8Array,
15
15
  mediaType: t5,
16
+ providerMetadata: _providerMetadata,
16
17
  ...props
17
18
  } = t0;
18
19
  base64 = t4;
@@ -47,7 +47,7 @@ export function AnimatedCounter(t0) {
47
47
  } else {
48
48
  t6 = $[2];
49
49
  }
50
- const springValue = useSpring(0, t6);
50
+ const springValue = useSpring(animateOnView ? 0 : value, t6);
51
51
  let t7;
52
52
  if ($[3] !== formatValue) {
53
53
  t7 = v => formatValue(v);
package/dist/src/index.js CHANGED
@@ -202,6 +202,7 @@ export { ProductHero } from "./marketing/ProductHero.js";
202
202
  export { ProductHeroOrbit } from "./marketing/ProductHeroOrbit.js";
203
203
  export { PROJECT_V_HOME_URL } from "./marketing/projectV.js";
204
204
  export { PricingModal, V_PRO_APP_BENEFITS } from "./marketing/PricingModal.js";
205
+ export { VProPricingModal } from "./marketing/VProPricingModal.js";
205
206
  // App helpers: confirm skip, update watcher, settings chrome, stable auth, Convex provider, VITE env and ensure-user.
206
207
  export * from "../app/src/index.js";
207
208
 
@@ -0,0 +1,83 @@
1
+ import { c as _c } from "react/compiler-runtime";
2
+ import { Show } from "@clerk/react";
3
+ import { CheckoutButton } from "@clerk/react/experimental";
4
+ import { PricingModal } from "./PricingModal.js";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ /** V Pro upgrade dialog: `PricingModal` with Clerk checkout on the Pro plan card. */
7
+ export function VProPricingModal(t0) {
8
+ const $ = _c(16);
9
+ let planId;
10
+ let props;
11
+ let renderCheckout;
12
+ let t1;
13
+ let t2;
14
+ let t3;
15
+ if ($[0] !== t0) {
16
+ ({
17
+ planId,
18
+ proPlanId: t1,
19
+ checkoutEnabled: t2,
20
+ signedInOnly: t3,
21
+ renderCheckout,
22
+ ...props
23
+ } = t0);
24
+ $[0] = t0;
25
+ $[1] = planId;
26
+ $[2] = props;
27
+ $[3] = renderCheckout;
28
+ $[4] = t1;
29
+ $[5] = t2;
30
+ $[6] = t3;
31
+ } else {
32
+ planId = $[1];
33
+ props = $[2];
34
+ renderCheckout = $[3];
35
+ t1 = $[4];
36
+ t2 = $[5];
37
+ t3 = $[6];
38
+ }
39
+ const proPlanId = t1 === undefined ? "pro" : t1;
40
+ const checkoutEnabled = t2 === undefined ? true : t2;
41
+ const signedInOnly = t3 === undefined ? true : t3;
42
+ let t4;
43
+ if ($[7] !== checkoutEnabled || $[8] !== planId || $[9] !== proPlanId || $[10] !== renderCheckout || $[11] !== signedInOnly) {
44
+ t4 = (button, plan, period) => {
45
+ if (!checkoutEnabled || plan.id !== proPlanId) {
46
+ return button;
47
+ }
48
+ if (renderCheckout) {
49
+ return renderCheckout(button, plan, period);
50
+ }
51
+ const checkout = /*#__PURE__*/_jsx(CheckoutButton, {
52
+ planId: planId,
53
+ planPeriod: period === "year" ? "annual" : "month",
54
+ children: button
55
+ });
56
+ return signedInOnly ? /*#__PURE__*/_jsx(Show, {
57
+ when: "signed-in",
58
+ children: checkout
59
+ }) : checkout;
60
+ };
61
+ $[7] = checkoutEnabled;
62
+ $[8] = planId;
63
+ $[9] = proPlanId;
64
+ $[10] = renderCheckout;
65
+ $[11] = signedInOnly;
66
+ $[12] = t4;
67
+ } else {
68
+ t4 = $[12];
69
+ }
70
+ let t5;
71
+ if ($[13] !== props || $[14] !== t4) {
72
+ t5 = /*#__PURE__*/_jsx(PricingModal, {
73
+ ...props,
74
+ renderCheckout: t4
75
+ });
76
+ $[13] = props;
77
+ $[14] = t4;
78
+ $[15] = t5;
79
+ } else {
80
+ t5 = $[15];
81
+ }
82
+ return t5;
83
+ }
@@ -8,7 +8,7 @@ import { extendTailwindMerge } from "tailwind-merge";
8
8
  const twMerge = extendTailwindMerge({
9
9
  extend: {
10
10
  theme: {
11
- borderRadius: ["field", "surface", "menu", "menu-item", "control"]
11
+ radius: ["field", "surface", "menu", "menu-item", "control"]
12
12
  }
13
13
  }
14
14
  });
package/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@vvedantb/ui",
3
- "version": "0.65.0",
3
+ "version": "0.66.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared React 19 UI for web apps: one main JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
6
6
  "type": "module",
7
7
  "publishConfig": {
8
- "access": "public",
9
- "provenance": true
8
+ "access": "public"
10
9
  },
11
10
  "repository": {
12
11
  "type": "git",
13
- "url": "git+https://github.com/vvedantb/packages.git",
12
+ "url": "git+https://github.com/vvedantb/v.git",
14
13
  "directory": "packages/ui"
15
14
  },
16
15
  "exports": {
@@ -101,13 +100,13 @@
101
100
  "@dnd-kit/sortable": "^10.0.0",
102
101
  "@dnd-kit/utilities": "^3.2.2",
103
102
  "@web-kits/motion-blur": "^0.1.0",
104
- "dayjs": "^1.11.13",
103
+ "dayjs": "^1.11.23",
105
104
  "katex": "^0.16.45",
106
105
  "media-chrome": "^4.14.0",
107
106
  "react-day-picker": "^9.14.0"
108
107
  },
109
108
  "peerDependencies": {
110
- "@clerk/clerk-react": ">=5",
109
+ "@clerk/react": ">=6",
111
110
  "@json-render/core": ">=0.21.0",
112
111
  "@json-render/react": ">=0.21.0",
113
112
  "@radix-ui/react-accordion": "^1.2.12",
@@ -131,93 +130,93 @@
131
130
  "@radix-ui/react-use-controllable-state": "^1.2.2",
132
131
  "@radix-ui/react-visually-hidden": "^1.2.3",
133
132
  "@streamdown/cjk": "*",
134
- "@streamdown/code": "*",
133
+ "@streamdown/code": "^2",
135
134
  "@streamdown/math": "*",
136
135
  "@streamdown/mermaid": "*",
137
- "@tabler/icons-react": "^3.35.0",
138
- "@tanstack/react-hotkeys": "*",
139
- "@vvedantb/server": ">=0.17.1",
140
- "ai": ">=5.0.0",
136
+ "@tabler/icons-react": "^3.52.0",
137
+ "@tanstack/react-hotkeys": "^0.27.0",
138
+ "@vvedantb/server": ">=0.18.0",
139
+ "ai": "^7",
141
140
  "class-variance-authority": "^0.7.1",
142
141
  "clsx": "^2.1.1",
143
142
  "cmdk": "^1.1.1",
144
143
  "convex": "^1.24.0",
145
144
  "embla-carousel-react": "^8.6.0",
146
- "motion": ">=12.0.0",
145
+ "motion": "^13",
147
146
  "nanoid": "^5.1.0",
148
147
  "radix-ui": "^1.4.0",
149
148
  "react": ">=19.0.0",
150
149
  "react-dom": ">=19.0.0",
151
- "shiki": "^3.0.0",
150
+ "shiki": "^4",
152
151
  "sonner": "^2.0.3",
153
152
  "streamdown": "^2.3.0",
154
- "tailwind-merge": "^2.6.0",
153
+ "tailwind-merge": "^3",
155
154
  "use-stick-to-bottom": "^1.1.0",
156
155
  "vaul": "^1.1.0",
157
- "zod": "^3.25.0 || ^4.0.0"
156
+ "zod": "^4.0.0"
158
157
  },
159
158
  "devDependencies": {
160
- "@clerk/clerk-react": "^5.0.0",
159
+ "@clerk/react": "6.19.4",
161
160
  "@json-render/core": "0.21.0",
162
161
  "@json-render/react": "0.21.0",
163
- "@radix-ui/react-accordion": "^1.2.12",
164
- "@radix-ui/react-checkbox": "^1.3.3",
165
- "@radix-ui/react-collapsible": "^1.1.12",
166
- "@radix-ui/react-context-menu": "^2.2.15",
167
- "@radix-ui/react-dialog": "^1.1.15",
168
- "@radix-ui/react-dropdown-menu": "^2.1.16",
169
- "@radix-ui/react-hover-card": "^1.1.15",
170
- "@radix-ui/react-label": "^2.1.8",
171
- "@radix-ui/react-popover": "^1.1.15",
172
- "@radix-ui/react-progress": "^1.1.8",
173
- "@radix-ui/react-scroll-area": "^1.2.10",
174
- "@radix-ui/react-select": "^2.2.6",
175
- "@radix-ui/react-separator": "^1.1.8",
176
- "@radix-ui/react-slider": "^1.4.7",
177
- "@radix-ui/react-slot": "^1.2.4",
178
- "@radix-ui/react-switch": "^1.1.7",
179
- "@radix-ui/react-tabs": "^1.1.13",
180
- "@radix-ui/react-tooltip": "^1.2.8",
181
- "@radix-ui/react-use-controllable-state": "^1.2.2",
182
- "@radix-ui/react-visually-hidden": "^1.2.3",
183
- "@streamdown/cjk": "*",
184
- "@streamdown/code": "*",
185
- "@streamdown/math": "*",
186
- "@streamdown/mermaid": "*",
187
- "@tabler/icons-react": "^3.35.0",
188
- "@tailwindcss/node": "4.3.3",
189
- "@tanstack/react-hotkeys": "^0.13.0",
190
- "@types/react": "^19.1.0",
191
- "@types/react-dom": "^19.1.0",
192
- "ai": "^5.0.0",
162
+ "@radix-ui/react-accordion": "1.2.20",
163
+ "@radix-ui/react-checkbox": "1.3.11",
164
+ "@radix-ui/react-collapsible": "1.1.20",
165
+ "@radix-ui/react-context-menu": "2.3.7",
166
+ "@radix-ui/react-dialog": "1.1.23",
167
+ "@radix-ui/react-dropdown-menu": "2.1.24",
168
+ "@radix-ui/react-hover-card": "1.1.23",
169
+ "@radix-ui/react-label": "2.1.15",
170
+ "@radix-ui/react-popover": "1.1.23",
171
+ "@radix-ui/react-progress": "1.1.16",
172
+ "@radix-ui/react-scroll-area": "1.2.18",
173
+ "@radix-ui/react-select": "2.3.7",
174
+ "@radix-ui/react-separator": "1.1.15",
175
+ "@radix-ui/react-slider": "1.4.7",
176
+ "@radix-ui/react-slot": "1.3.3",
177
+ "@radix-ui/react-switch": "1.3.7",
178
+ "@radix-ui/react-tabs": "1.1.21",
179
+ "@radix-ui/react-tooltip": "1.2.16",
180
+ "@radix-ui/react-use-controllable-state": "1.2.6",
181
+ "@radix-ui/react-visually-hidden": "1.2.11",
182
+ "@streamdown/cjk": "^1.0.4",
183
+ "@streamdown/code": "2.0.1",
184
+ "@streamdown/math": "^1.0.3",
185
+ "@streamdown/mermaid": "^1.0.3",
186
+ "@tabler/icons-react": "^3.52.0",
187
+ "@tailwindcss/node": "4.3.5",
188
+ "@tanstack/react-hotkeys": "0.27.2",
189
+ "@types/node": "22.20.5",
190
+ "@types/react": "19.3.0",
191
+ "@types/react-dom": "19.3.0",
192
+ "ai": "7.0.179",
193
193
  "class-variance-authority": "^0.7.1",
194
194
  "clsx": "^2.1.1",
195
195
  "cmdk": "^1.1.1",
196
- "convex": "^1.47.0",
196
+ "convex": "1.48.0",
197
197
  "embla-carousel-react": "^8.6.0",
198
198
  "esbuild": "0.28.2",
199
- "happy-dom": "^18.0.0",
200
- "motion": "^12.0.0",
201
- "nanoid": "^5.1.0",
202
- "next-themes": "0.4.6",
203
- "radix-ui": "^1.4.0",
204
- "react": "^19.1.0",
205
- "react-dom": "^19.1.0",
206
- "shiki": "^3.0.0",
207
- "sonner": "^2.0.3",
208
- "streamdown": "^2.7.1",
209
- "tailwind-merge": "^2.6.0",
210
- "tailwindcss": "4.3.3",
199
+ "happy-dom": "21.0.4",
200
+ "motion": "13.5.1",
201
+ "nanoid": "^5.1.16",
202
+ "next-themes": "^0.4.6",
203
+ "radix-ui": "^1.6.7",
204
+ "react": "19.3.0",
205
+ "react-dom": "19.3.0",
206
+ "shiki": "4.6.0",
207
+ "sonner": "^2.0.8",
208
+ "streamdown": "2.7.1",
209
+ "tailwind-merge": "3.7.1",
210
+ "tailwindcss": "4.3.5",
211
211
  "typescript": "7.0.2",
212
- "use-stick-to-bottom": "^1.1.0",
213
- "vaul": "^1.1.0",
214
- "vitest": "^3.2.0",
215
- "zod": "^4.0.0",
216
- "zod3": "npm:zod@^3.25.76",
217
- "@vvedantb/server": "0.17.1"
212
+ "use-stick-to-bottom": "^1.1.6",
213
+ "vaul": "^1.1.2",
214
+ "vitest": "5.1.1",
215
+ "zod": "4.6.6",
216
+ "@vvedantb/server": "0.18.0"
218
217
  },
219
218
  "peerDependenciesMeta": {
220
- "@clerk/clerk-react": {
219
+ "@clerk/react": {
221
220
  "optional": true
222
221
  },
223
222
  "convex": {
@@ -1,8 +1,8 @@
1
- import type { Experimental_GeneratedImage } from "ai";
1
+ import type { GeneratedFile } from "ai";
2
2
 
3
3
  import { cn } from "../utils/cn";
4
4
 
5
- export type ImageProps = Experimental_GeneratedImage & {
5
+ export type ImageProps = GeneratedFile & {
6
6
  className?: string;
7
7
  alt?: string;
8
8
  };
@@ -11,6 +11,7 @@ export const Image = ({
11
11
  base64,
12
12
  uint8Array: _uint8Array,
13
13
  mediaType,
14
+ providerMetadata: _providerMetadata,
14
15
  ...props
15
16
  }: ImageProps) => (
16
17
  <img
@@ -30,7 +30,8 @@ export function AnimatedCounter({
30
30
  }: AnimatedCounterProps) {
31
31
  const ref = useRef<HTMLSpanElement>(null);
32
32
  const isInView = useInView(ref, { once: true, margin: "-50px" });
33
- const springValue = useSpring(0, { stiffness: 100 / duration, damping: 30, restDelta: 0.01 });
33
+ // Start at `value` when not waiting for view, so remounts do not flash zeros.
34
+ const springValue = useSpring(animateOnView ? 0 : value, { stiffness: 100 / duration, damping: 30, restDelta: 0.01 });
34
35
  const displayValue = useTransform(springValue, (v) => formatValue(v));
35
36
 
36
37
  useEffect(() => {
package/src/index.ts CHANGED
@@ -383,6 +383,8 @@ export type {
383
383
  PricingPlanAppBenefit,
384
384
  PricingPlanBenefit,
385
385
  } from "./marketing/PricingModal";
386
+ export { VProPricingModal } from "./marketing/VProPricingModal";
387
+ export type { VProPricingModalProps } from "./marketing/VProPricingModal";
386
388
 
387
389
  // App helpers: confirm skip, update watcher, settings chrome, stable auth, Convex provider, VITE env and ensure-user.
388
390
  export * from "../app/src/index";
@@ -0,0 +1,48 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import { Show } from "@clerk/react";
3
+ import { CheckoutButton } from "@clerk/react/experimental";
4
+ import {
5
+ PricingModal,
6
+ type PricingModalMultiProps,
7
+ type PricingModalPeriod,
8
+ type PricingPlan,
9
+ } from "./PricingModal";
10
+
11
+ export type VProPricingModalProps = Omit<PricingModalMultiProps, "renderCheckout"> & {
12
+ /** Clerk Billing plan id passed to `CheckoutButton`. */
13
+ planId: string;
14
+ /** Id of the plan card that gets checkout. Default `"pro"`. */
15
+ proPlanId?: string;
16
+ /** Set `false` to return the bare button, for example when Clerk is not configured. Default `true`. */
17
+ checkoutEnabled?: boolean;
18
+ /** Wrap checkout in Clerk `<Show when="signed-in">`. Default `true`. */
19
+ signedInOnly?: boolean;
20
+ /** Replaces the default `CheckoutButton` wiring, for apps with their own auth flow. */
21
+ renderCheckout?: (button: ReactElement, plan: PricingPlan, period: PricingModalPeriod) => ReactNode;
22
+ };
23
+
24
+ /** V Pro upgrade dialog: `PricingModal` with Clerk checkout on the Pro plan card. */
25
+ export function VProPricingModal({
26
+ planId,
27
+ proPlanId = "pro",
28
+ checkoutEnabled = true,
29
+ signedInOnly = true,
30
+ renderCheckout,
31
+ ...props
32
+ }: VProPricingModalProps) {
33
+ return (
34
+ <PricingModal
35
+ {...props}
36
+ renderCheckout={(button: ReactElement, plan: PricingPlan, period: PricingModalPeriod) => {
37
+ if (!checkoutEnabled || plan.id !== proPlanId) return button;
38
+ if (renderCheckout) return renderCheckout(button, plan, period);
39
+ const checkout = (
40
+ <CheckoutButton planId={planId} planPeriod={period === "year" ? "annual" : "month"}>
41
+ {button}
42
+ </CheckoutButton>
43
+ );
44
+ return signedInOnly ? <Show when="signed-in">{checkout}</Show> : checkout;
45
+ }}
46
+ />
47
+ );
48
+ }
package/src/ui/tabs.tsx CHANGED
@@ -3,8 +3,8 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
3
  import { cva, type VariantProps } from "class-variance-authority";
4
4
  import { assignRef } from "../utils/ref";
5
5
  import { syncTabsPill, type TabsPillMotion } from "./tabsSliding";
6
- import { useCn, useUiConfig } from "./ui-config";
7
6
  import type { TabsTransitionVariant } from "./tabs-transition";
7
+ import { useCn, useUiConfig } from "./ui-config";
8
8
 
9
9
  const Tabs = TabsPrimitive.Root;
10
10
 
package/src/utils/cn.ts CHANGED
@@ -8,7 +8,7 @@ import { extendTailwindMerge } from "tailwind-merge";
8
8
  const twMerge = extendTailwindMerge({
9
9
  extend: {
10
10
  theme: {
11
- borderRadius: ["field", "surface", "menu", "menu-item", "control"],
11
+ radius: ["field", "surface", "menu", "menu-item", "control"],
12
12
  },
13
13
  },
14
14
  });
@@ -7,8 +7,8 @@
7
7
  "build": "vite build"
8
8
  },
9
9
  "devDependencies": {
10
- "@tailwindcss/vite": "4.3.3",
11
- "tailwindcss": "4.3.3",
10
+ "@tailwindcss/vite": "4.3.5",
11
+ "tailwindcss": "4.3.5",
12
12
  "vite": "^7.0.0"
13
13
  }
14
14
  }
@@ -7,8 +7,8 @@
7
7
  "build": "vite build"
8
8
  },
9
9
  "devDependencies": {
10
- "@tailwindcss/vite": "4.3.3",
11
- "tailwindcss": "4.3.3",
10
+ "@tailwindcss/vite": "4.3.5",
11
+ "tailwindcss": "4.3.5",
12
12
  "vite": "^7.0.0"
13
13
  }
14
14
  }
@@ -7,8 +7,8 @@
7
7
  "build": "vite build"
8
8
  },
9
9
  "devDependencies": {
10
- "@tailwindcss/vite": "4.3.3",
11
- "tailwindcss": "4.3.3",
10
+ "@tailwindcss/vite": "4.3.5",
11
+ "tailwindcss": "4.3.5",
12
12
  "vite": "^7.0.0"
13
13
  }
14
14
  }