@nexub/patterns 3.0.0 → 3.2.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.
@@ -13,6 +13,7 @@ var PlanCard = React.forwardRef(
13
13
  description,
14
14
  features,
15
15
  cta,
16
+ ctaHref,
16
17
  onSelect,
17
18
  highlighted = false,
18
19
  badge,
@@ -55,7 +56,8 @@ var PlanCard = React.forwardRef(
55
56
  variant: highlighted ? "primary" : "outline",
56
57
  className: "mt-auto w-full",
57
58
  onClick: onSelect,
58
- children: cta
59
+ asChild: Boolean(ctaHref),
60
+ children: ctaHref ? /* @__PURE__ */ jsx("a", { href: ctaHref, children: cta }) : cta
59
61
  }
60
62
  )
61
63
  ]
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  PlanCard
4
- } from "../../chunk-YB7G4YBU.js";
4
+ } from "../../chunk-LKN2CK6M.js";
5
5
  export {
6
6
  PlanCard
7
7
  };
package/dist/index.d.ts CHANGED
@@ -124,6 +124,8 @@ interface PlanCardProps extends React.HTMLAttributes<HTMLDivElement> {
124
124
  description?: string;
125
125
  features: string[];
126
126
  cta: string;
127
+ /** Makes the button a link. */
128
+ ctaHref?: string;
127
129
  onSelect?: () => void;
128
130
  highlighted?: boolean;
129
131
  badge?: string;
package/dist/index.js CHANGED
@@ -8,13 +8,13 @@ import {
8
8
  import {
9
9
  UserCard
10
10
  } from "./chunk-7NYGYETG.js";
11
- import "./chunk-RFCPEZGF.js";
12
11
  import {
13
12
  PaywallPage
14
13
  } from "./chunk-M3OHX4F4.js";
14
+ import "./chunk-RFCPEZGF.js";
15
15
  import {
16
16
  PlanCard
17
- } from "./chunk-YB7G4YBU.js";
17
+ } from "./chunk-LKN2CK6M.js";
18
18
  import {
19
19
  SettingsLayout,
20
20
  SettingsRow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/patterns",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Composite UI patterns for Nexub Design System — pre-built, production-ready layouts and widgets built on @nexub/react.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -39,9 +39,9 @@
39
39
  "peerDependencies": {
40
40
  "react": ">=18 <20",
41
41
  "react-dom": ">=18 <20",
42
- "@nexub/icons": "^3.0.0",
43
- "@nexub/react": "^3.0.0",
44
- "@nexub/tokens": "^3.0.0"
42
+ "@nexub/icons": "^3.2.0",
43
+ "@nexub/react": "^3.2.0",
44
+ "@nexub/tokens": "^3.2.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "@nexub/icons": {
@@ -64,9 +64,9 @@
64
64
  "typescript": "~6.0.3",
65
65
  "vite": "^8.3.5",
66
66
  "vitest": "^5.0.5",
67
- "@nexub/icons": "3.0.0",
68
- "@nexub/react": "3.0.0",
69
- "@nexub/tokens": "3.0.0"
67
+ "@nexub/icons": "3.2.0",
68
+ "@nexub/react": "3.2.0",
69
+ "@nexub/tokens": "3.2.0"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "tsup && tailwindcss -i src/styles.css -o dist/styles.css --minify",