@nexub/patterns 3.0.0 → 3.1.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
|
-
|
|
59
|
+
asChild: Boolean(ctaHref),
|
|
60
|
+
children: ctaHref ? /* @__PURE__ */ jsx("a", { href: ctaHref, children: cta }) : cta
|
|
59
61
|
}
|
|
60
62
|
)
|
|
61
63
|
]
|
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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
StepIndicator
|
|
4
|
-
} from "./chunk-L456OB3Q.js";
|
|
5
2
|
import {
|
|
6
3
|
TransactionDetailPage
|
|
7
4
|
} from "./chunk-CJBHDX2U.js";
|
|
5
|
+
import {
|
|
6
|
+
StepIndicator
|
|
7
|
+
} from "./chunk-L456OB3Q.js";
|
|
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-
|
|
17
|
+
} from "./chunk-LKN2CK6M.js";
|
|
18
18
|
import {
|
|
19
19
|
SettingsLayout,
|
|
20
20
|
SettingsRow
|
|
@@ -41,12 +41,12 @@ import {
|
|
|
41
41
|
ErrorSummary,
|
|
42
42
|
useFormErrors
|
|
43
43
|
} from "./chunk-RWPFCNMJ.js";
|
|
44
|
-
import {
|
|
45
|
-
FilterBar
|
|
46
|
-
} from "./chunk-Z6VMCMSW.js";
|
|
47
44
|
import {
|
|
48
45
|
InfoList
|
|
49
46
|
} from "./chunk-WPNT5JOU.js";
|
|
47
|
+
import {
|
|
48
|
+
FilterBar
|
|
49
|
+
} from "./chunk-Z6VMCMSW.js";
|
|
50
50
|
import {
|
|
51
51
|
ListDetail
|
|
52
52
|
} from "./chunk-5JU6HUVJ.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexub/patterns",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.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.
|
|
43
|
-
"@nexub/react": "^3.
|
|
44
|
-
"@nexub/tokens": "^3.
|
|
42
|
+
"@nexub/icons": "^3.1.0",
|
|
43
|
+
"@nexub/react": "^3.1.0",
|
|
44
|
+
"@nexub/tokens": "^3.1.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.
|
|
68
|
-
"@nexub/react": "3.
|
|
69
|
-
"@nexub/tokens": "3.
|
|
67
|
+
"@nexub/icons": "3.1.0",
|
|
68
|
+
"@nexub/react": "3.1.0",
|
|
69
|
+
"@nexub/tokens": "3.1.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsup && tailwindcss -i src/styles.css -o dist/styles.css --minify",
|