dune-react 0.0.33 → 0.0.35
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/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.d.ts +1 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +6 -30
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +17 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +14 -1
- package/dist/components/puck-block/registry.generated.d.ts +17 -0
- package/dist/components/puck-core/core/props/index.js +0 -7
- package/package.json +9 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BiCheck } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
2
|
import { Button } from "../../../shadcn/button.js";
|
|
4
3
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "../../../shadcn/tabs.js";
|
|
5
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -90,7 +89,7 @@ const PricingComparisonTable = (props) => {
|
|
|
90
89
|
"border-l": itemIndex > 0
|
|
91
90
|
}
|
|
92
91
|
),
|
|
93
|
-
|
|
92
|
+
dangerouslySetInnerHTML: { __html: item }
|
|
94
93
|
},
|
|
95
94
|
itemIndex
|
|
96
95
|
))
|
|
@@ -176,38 +175,15 @@ const defaultPlans = [
|
|
|
176
175
|
button: { label: "Get started" }
|
|
177
176
|
}
|
|
178
177
|
];
|
|
178
|
+
const checkIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>';
|
|
179
179
|
const defaultFeatureCategory = {
|
|
180
180
|
title: "Feature Category",
|
|
181
181
|
features: [
|
|
182
182
|
{ text: "Feature text goes here", items: ["10", "25", "Unlimited"] },
|
|
183
|
-
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" }),
|
|
188
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" })
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
text: "Feature text goes here",
|
|
193
|
-
items: [
|
|
194
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" }),
|
|
195
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" }),
|
|
196
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" })
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
text: "Feature text goes here",
|
|
201
|
-
items: [
|
|
202
|
-
"",
|
|
203
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" }),
|
|
204
|
-
/* @__PURE__ */ jsx(BiCheck, { className: "size-6" })
|
|
205
|
-
]
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
text: "Feature text goes here",
|
|
209
|
-
items: ["", "", /* @__PURE__ */ jsx(BiCheck, { className: "size-6" })]
|
|
210
|
-
}
|
|
183
|
+
{ text: "Feature text goes here", items: [checkIcon, checkIcon, checkIcon] },
|
|
184
|
+
{ text: "Feature text goes here", items: [checkIcon, checkIcon, checkIcon] },
|
|
185
|
+
{ text: "Feature text goes here", items: ["", checkIcon, checkIcon] },
|
|
186
|
+
{ text: "Feature text goes here", items: ["", "", checkIcon] }
|
|
211
187
|
]
|
|
212
188
|
};
|
|
213
189
|
const PricingComparisonTableDefaults = {
|
|
@@ -41,6 +41,23 @@ declare const conf: {
|
|
|
41
41
|
title: {
|
|
42
42
|
type: string;
|
|
43
43
|
};
|
|
44
|
+
features: {
|
|
45
|
+
type: string;
|
|
46
|
+
getItemSummary: (item: {
|
|
47
|
+
text?: string;
|
|
48
|
+
}, index?: number) => string;
|
|
49
|
+
arrayFields: {
|
|
50
|
+
text: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
items: {
|
|
54
|
+
type: string;
|
|
55
|
+
ai: {
|
|
56
|
+
instructions: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
44
61
|
};
|
|
45
62
|
};
|
|
46
63
|
defaultTabValue: {
|
|
@@ -20,7 +20,20 @@ const conf = {
|
|
|
20
20
|
type: "array",
|
|
21
21
|
getItemSummary: (item, index = 0) => item.title || `Category ${index + 1}`,
|
|
22
22
|
arrayFields: {
|
|
23
|
-
title: { type: "text" }
|
|
23
|
+
title: { type: "text" },
|
|
24
|
+
features: {
|
|
25
|
+
type: "array",
|
|
26
|
+
getItemSummary: (item, index = 0) => item.text || `Feature ${index + 1}`,
|
|
27
|
+
arrayFields: {
|
|
28
|
+
text: { type: "text" },
|
|
29
|
+
items: {
|
|
30
|
+
type: "array",
|
|
31
|
+
ai: {
|
|
32
|
+
instructions: "Array of HTML strings, one per pricing plan column. Use plain text like '10' or 'Unlimited', an inline SVG check icon for supported features, or empty string '' for unsupported."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
24
37
|
}
|
|
25
38
|
},
|
|
26
39
|
defaultTabValue: {
|
|
@@ -10324,6 +10324,23 @@ declare const confMap: {
|
|
|
10324
10324
|
title: {
|
|
10325
10325
|
type: string;
|
|
10326
10326
|
};
|
|
10327
|
+
features: {
|
|
10328
|
+
type: string;
|
|
10329
|
+
getItemSummary: (item: {
|
|
10330
|
+
text?: string;
|
|
10331
|
+
}, index?: number) => string;
|
|
10332
|
+
arrayFields: {
|
|
10333
|
+
text: {
|
|
10334
|
+
type: string;
|
|
10335
|
+
};
|
|
10336
|
+
items: {
|
|
10337
|
+
type: string;
|
|
10338
|
+
ai: {
|
|
10339
|
+
instructions: string;
|
|
10340
|
+
};
|
|
10341
|
+
};
|
|
10342
|
+
};
|
|
10343
|
+
};
|
|
10327
10344
|
};
|
|
10328
10345
|
};
|
|
10329
10346
|
defaultTabValue: {
|
|
@@ -2,7 +2,6 @@ import { buttonsField, badgeField } from "./interactive.js";
|
|
|
2
2
|
import { actionDefaults, actionField, buttonDefaults, buttonField, iconField, resolveActionUrl } from "./interactive.js";
|
|
3
3
|
import { descriptionField, headingField, featuresField } from "./content.js";
|
|
4
4
|
import { cardField, cardsField } from "./content.js";
|
|
5
|
-
import { getPlaceholderMediaUrl, media16x9Placeholder, media1x1Placeholder, media9x16Placeholder, mediaField, mediasField } from "./media.js";
|
|
6
5
|
const contentFields = {
|
|
7
6
|
heading: headingField,
|
|
8
7
|
description: descriptionField,
|
|
@@ -29,13 +28,7 @@ export {
|
|
|
29
28
|
contentFieldsWithFeatures,
|
|
30
29
|
descriptionField,
|
|
31
30
|
featuresField,
|
|
32
|
-
getPlaceholderMediaUrl,
|
|
33
31
|
headingField,
|
|
34
32
|
iconField,
|
|
35
|
-
media16x9Placeholder,
|
|
36
|
-
media1x1Placeholder,
|
|
37
|
-
media9x16Placeholder,
|
|
38
|
-
mediaField,
|
|
39
|
-
mediasField,
|
|
40
33
|
resolveActionUrl
|
|
41
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dune-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -26,10 +26,9 @@
|
|
|
26
26
|
],
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js",
|
|
31
|
+
"default": "./dist/index.js"
|
|
33
32
|
},
|
|
34
33
|
"./styles.css": "./dist/style.css",
|
|
35
34
|
"./puck-block/*": {
|
|
@@ -43,6 +42,11 @@
|
|
|
43
42
|
"types": "./dist/components/puck-base/core/fields.d.ts",
|
|
44
43
|
"default": "./dist/components/puck-base/core/fields.js"
|
|
45
44
|
}
|
|
45
|
+
},
|
|
46
|
+
"./ai": {
|
|
47
|
+
"types": "./dist/components/puck-core/core/puck-fields-to-zod.d.ts",
|
|
48
|
+
"import": "./dist/components/puck-core/core/puck-fields-to-zod.js",
|
|
49
|
+
"default": "./dist/components/puck-core/core/puck-fields-to-zod.js"
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
"devDependencies": {
|