dune-react 0.0.30 → 0.0.31
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/faq-sections/props.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +7 -7
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +2 -2
- package/dist/components/puck-block/hero-sections/props.d.ts +1 -1
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -4
- package/dist/components/puck-block/pricing-sections/props.d.ts +1 -1
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -4
- package/dist/components/puck-block/team-sections/props.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-grid/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-two-column/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +5 -5
- package/package.json +2 -2
|
@@ -20,18 +20,18 @@ const StackedStaticFaq = (props) => {
|
|
|
20
20
|
style: sectionStyle,
|
|
21
21
|
css,
|
|
22
22
|
textAlign = "center",
|
|
23
|
-
gridColumns = 1,
|
|
23
|
+
gridColumns = "1",
|
|
24
24
|
hasFooter = true
|
|
25
25
|
} = styles ?? {};
|
|
26
26
|
const isCenter = textAlign === "center";
|
|
27
|
-
const isInline = gridColumns === 1 && textAlign === "left";
|
|
27
|
+
const isInline = gridColumns === "1" && textAlign === "left";
|
|
28
28
|
const gridClass = cn("grid gap-x-12 gap-y-10 md:gap-y-12", {
|
|
29
|
-
"grid-cols-1": gridColumns === 1 && !isInline,
|
|
30
|
-
"grid-cols-1 md:grid-cols-2": gridColumns === 2,
|
|
31
|
-
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3": gridColumns === 3,
|
|
29
|
+
"grid-cols-1": gridColumns === "1" && !isInline,
|
|
30
|
+
"grid-cols-1 md:grid-cols-2": gridColumns === "2",
|
|
31
|
+
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3": gridColumns === "3",
|
|
32
32
|
"md:grid-cols-[0.75fr_1fr]": isInline
|
|
33
33
|
});
|
|
34
|
-
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: cn("container", { "w-full max-w-lg": gridColumns === 1 && isCenter }), children: [
|
|
34
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: cn("container", { "w-full max-w-lg": gridColumns === "1" && isCenter }), children: [
|
|
35
35
|
/* @__PURE__ */ jsxs("div", { className: cn("rb-12 mb-12 md:mb-18 lg:mb-20", { "text-center": isCenter }), children: [
|
|
36
36
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
37
37
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -62,7 +62,7 @@ const StackedStaticFaqDefaults = {
|
|
|
62
62
|
button: { label: "Contact", variant: "secondary" },
|
|
63
63
|
styles: {
|
|
64
64
|
textAlign: "center",
|
|
65
|
-
gridColumns: 1,
|
|
65
|
+
gridColumns: "1",
|
|
66
66
|
hasFooter: true
|
|
67
67
|
}
|
|
68
68
|
};
|
package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js
CHANGED
|
@@ -19,7 +19,7 @@ const OverlappingImageHero = (props) => {
|
|
|
19
19
|
const { className: sectionClassName, style: sectionStyle, css, textPosition, imageCount, overlapStyle } = rawStyles ?? {};
|
|
20
20
|
const renderButtons = () => /* @__PURE__ */ jsx("div", { className: "mt-6 flex gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
|
|
21
21
|
const renderOverlappingImages = () => {
|
|
22
|
-
if (imageCount === 3) {
|
|
22
|
+
if (imageCount === "3") {
|
|
23
23
|
if (overlapStyle === "side-by-side") {
|
|
24
24
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex", children: [
|
|
25
25
|
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 w-[30%]", children: /* @__PURE__ */ jsx(
|
|
@@ -211,7 +211,7 @@ const OverlappingImageHeroDefaults = {
|
|
|
211
211
|
},
|
|
212
212
|
styles: {
|
|
213
213
|
textPosition: "left",
|
|
214
|
-
imageCount: 2,
|
|
214
|
+
imageCount: "2",
|
|
215
215
|
overlapStyle: "default"
|
|
216
216
|
}
|
|
217
217
|
};
|
|
@@ -18,7 +18,7 @@ export interface HeroSectionStyles {
|
|
|
18
18
|
mediaType?: "image" | "video" | "play";
|
|
19
19
|
formType?: "none" | "email" | "search";
|
|
20
20
|
bordered?: boolean;
|
|
21
|
-
imageCount?: 1 | 2 | 3;
|
|
21
|
+
imageCount?: "1" | "2" | "3";
|
|
22
22
|
imageGridRatio?: string;
|
|
23
23
|
overlapStyle?: "default" | "square" | "side-by-side";
|
|
24
24
|
variant?: "centered" | "parallax-bg";
|
|
@@ -8,9 +8,9 @@ const PricingCardGrid = (props) => {
|
|
|
8
8
|
...PricingCardGridDefaults,
|
|
9
9
|
...props
|
|
10
10
|
};
|
|
11
|
-
const { className: sectionClassName, style: sectionStyle, css, columns = 2 } = styles ?? {};
|
|
12
|
-
const gridColsClass = columns === 3 ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
13
|
-
const containerMaxW = columns === 3 ? "" : "max-w-xl";
|
|
11
|
+
const { className: sectionClassName, style: sectionStyle, css, columns = "2" } = styles ?? {};
|
|
12
|
+
const gridColsClass = columns === "3" ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
13
|
+
const containerMaxW = columns === "3" ? "" : "max-w-xl";
|
|
14
14
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: `container ${containerMaxW}`, children: [
|
|
15
15
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
16
16
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
@@ -61,7 +61,7 @@ const PricingCardGridDefaults = {
|
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
63
|
styles: {
|
|
64
|
-
columns: 2,
|
|
64
|
+
columns: "2",
|
|
65
65
|
cardLayout: "center-price"
|
|
66
66
|
}
|
|
67
67
|
};
|
|
@@ -12,7 +12,7 @@ export interface PricingSectionStyles {
|
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
css?: string;
|
|
14
14
|
cardLayout?: "center-price" | "icon-corner" | "name-desc-divider" | "icon-name-inline";
|
|
15
|
-
columns?: 2 | 3;
|
|
15
|
+
columns?: "2" | "3";
|
|
16
16
|
tabSwitching?: boolean;
|
|
17
17
|
tableStyle?: "border-separated" | "zebra-striped";
|
|
18
18
|
bottomButtons?: boolean;
|
|
@@ -13,10 +13,10 @@ const TabPricingGrid = (props) => {
|
|
|
13
13
|
className: sectionClassName,
|
|
14
14
|
style: sectionStyle,
|
|
15
15
|
css,
|
|
16
|
-
columns = 2
|
|
16
|
+
columns = "2"
|
|
17
17
|
} = styles ?? {};
|
|
18
|
-
const gridColsClass = columns === 3 ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
19
|
-
const containerMaxW = columns === 3 ? "" : "max-w-xl";
|
|
18
|
+
const gridColsClass = columns === "3" ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
19
|
+
const containerMaxW = columns === "3" ? "" : "max-w-xl";
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
21
21
|
SectionWrapper,
|
|
22
22
|
{
|
|
@@ -127,7 +127,7 @@ const TabPricingGridDefaults = {
|
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
129
|
styles: {
|
|
130
|
-
columns: 2,
|
|
130
|
+
columns: "2",
|
|
131
131
|
cardLayout: "center-price"
|
|
132
132
|
}
|
|
133
133
|
};
|
|
@@ -12,11 +12,11 @@ export interface TeamSectionStyles {
|
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
css?: string;
|
|
14
14
|
textAlign?: "left" | "center";
|
|
15
|
-
gridColumns?: 2 | 3 | 4;
|
|
15
|
+
gridColumns?: "2" | "3" | "4";
|
|
16
16
|
imageShape?: "circle" | "square";
|
|
17
17
|
hasFooter?: boolean;
|
|
18
18
|
cardLayout?: "vertical" | "horizontal";
|
|
19
|
-
memberGridColumns?: 1 | 2;
|
|
19
|
+
memberGridColumns?: "1" | "2";
|
|
20
20
|
}
|
|
21
21
|
export interface TeamSectionBaseProps {
|
|
22
22
|
tagline: string;
|
|
@@ -14,10 +14,10 @@ const TeamGrid = (props) => {
|
|
|
14
14
|
css,
|
|
15
15
|
textAlign = "center",
|
|
16
16
|
imageShape = "circle",
|
|
17
|
-
gridColumns = 4,
|
|
17
|
+
gridColumns = "4",
|
|
18
18
|
hasFooter = true
|
|
19
19
|
} = styles ?? {};
|
|
20
|
-
const gridColsClass = gridColumns === 2 ? "md:grid-cols-2" : gridColumns === 3 ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2 lg:grid-cols-4";
|
|
20
|
+
const gridColsClass = gridColumns === "2" ? "md:grid-cols-2" : gridColumns === "3" ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2 lg:grid-cols-4";
|
|
21
21
|
const imageClass = imageShape === "circle" ? "size-20 min-h-20 min-w-20 rounded-full object-cover" : "aspect-[3/2] w-full object-cover";
|
|
22
22
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
23
23
|
/* @__PURE__ */ jsxs("div", { className: `mx-auto mb-12 max-w-lg md:mb-18 lg:mb-20 ${textAlign === "center" ? "text-center" : "text-left"}`, children: [
|
|
@@ -60,7 +60,7 @@ const TeamGridDefaults = {
|
|
|
60
60
|
styles: {
|
|
61
61
|
textAlign: "center",
|
|
62
62
|
imageShape: "circle",
|
|
63
|
-
gridColumns: 4,
|
|
63
|
+
gridColumns: "4",
|
|
64
64
|
hasFooter: true
|
|
65
65
|
}
|
|
66
66
|
};
|
|
@@ -14,10 +14,10 @@ const TeamTwoColumn = (props) => {
|
|
|
14
14
|
css,
|
|
15
15
|
imageShape = "circle",
|
|
16
16
|
cardLayout = "horizontal",
|
|
17
|
-
memberGridColumns = 1
|
|
17
|
+
memberGridColumns = "1"
|
|
18
18
|
} = styles ?? {};
|
|
19
19
|
const imageClass = imageShape === "circle" ? "size-20 min-h-20 min-w-20 rounded-full object-cover" : "aspect-[3/2] w-full object-cover";
|
|
20
|
-
const memberGridClass = memberGridColumns === 2 ? "grid grid-cols-1 gap-y-12 md:grid-cols-2 md:gap-x-8 md:gap-y-16 lg:gap-x-12" : "grid grid-cols-1 gap-y-12 md:gap-x-8 md:gap-y-16 lg:gap-x-12";
|
|
20
|
+
const memberGridClass = memberGridColumns === "2" ? "grid grid-cols-1 gap-y-12 md:grid-cols-2 md:gap-x-8 md:gap-y-16 lg:gap-x-12" : "grid grid-cols-1 gap-y-12 md:gap-x-8 md:gap-y-16 lg:gap-x-12";
|
|
21
21
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container grid grid-cols-1 items-start md:grid-flow-row md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
|
|
22
22
|
/* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 max-w-lg md:mb-18 lg:mb-20", children: [
|
|
23
23
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
@@ -28,9 +28,9 @@ const TeamTwoColumn = (props) => {
|
|
|
28
28
|
/* @__PURE__ */ jsx("div", { className: memberGridClass, children: teamMembers.map((member, index) => /* @__PURE__ */ jsxs(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className: cardLayout === "horizontal" && memberGridColumns === 1 ? "grid auto-cols-fr grid-cols-1 items-start gap-5 sm:grid-cols-[max-content_1fr] sm:gap-x-8 sm:gap-y-4" : "flex flex-col",
|
|
31
|
+
className: cardLayout === "horizontal" && memberGridColumns === "1" ? "grid auto-cols-fr grid-cols-1 items-start gap-5 sm:grid-cols-[max-content_1fr] sm:gap-x-8 sm:gap-y-4" : "flex flex-col",
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ jsx("div", { className: cardLayout === "vertical" || memberGridColumns === 2 ? "mb-5 md:mb-6" : "", children: /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt, className: imageClass }) }),
|
|
33
|
+
/* @__PURE__ */ jsx("div", { className: cardLayout === "vertical" || memberGridColumns === "2" ? "mb-5 md:mb-6" : "", children: /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt, className: imageClass }) }),
|
|
34
34
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center", children: [
|
|
35
35
|
/* @__PURE__ */ jsxs("div", { className: "mb-3 md:mb-4", children: [
|
|
36
36
|
/* @__PURE__ */ jsx("h5", { className: "text-md font-semibold md:text-lg", children: member.name }),
|
|
@@ -60,7 +60,7 @@ const TeamTwoColumnDefaults = {
|
|
|
60
60
|
styles: {
|
|
61
61
|
imageShape: "circle",
|
|
62
62
|
cardLayout: "horizontal",
|
|
63
|
-
memberGridColumns: 1
|
|
63
|
+
memberGridColumns: "1"
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
export {
|
|
@@ -17,9 +17,9 @@ const MasonryTestimonial = (props) => {
|
|
|
17
17
|
className: sectionClassName,
|
|
18
18
|
style: sectionStyle,
|
|
19
19
|
css,
|
|
20
|
-
masonryColumns = 3
|
|
20
|
+
masonryColumns = "3"
|
|
21
21
|
} = styles ?? {};
|
|
22
|
-
const columnsClass = masonryColumns === 2 ? "md:columns-2" : "md:columns-2 lg:columns-3";
|
|
22
|
+
const columnsClass = masonryColumns === "2" ? "md:columns-2" : "md:columns-2 lg:columns-3";
|
|
23
23
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
24
24
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 w-full max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
25
25
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -69,7 +69,7 @@ const MasonryTestimonialDefaults = {
|
|
|
69
69
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
70
70
|
testimonials: [testimonial, testimonial, testimonial, testimonial, testimonial, testimonial],
|
|
71
71
|
styles: {
|
|
72
|
-
masonryColumns: 3
|
|
72
|
+
masonryColumns: "3"
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
@@ -14,9 +14,9 @@ export interface TestimonialSectionStyles {
|
|
|
14
14
|
ratingType?: "logo" | "stars";
|
|
15
15
|
attributionLayout?: "stacked" | "inline";
|
|
16
16
|
textAlign?: "left" | "center";
|
|
17
|
-
gridColumns?: 2 | 3;
|
|
18
|
-
carouselColumns?: 1 | 2 | 3;
|
|
19
|
-
masonryColumns?: 2 | 3;
|
|
17
|
+
gridColumns?: "2" | "3";
|
|
18
|
+
carouselColumns?: "1" | "2" | "3";
|
|
19
|
+
masonryColumns?: "2" | "3";
|
|
20
20
|
bordered?: boolean;
|
|
21
21
|
hasHeading?: boolean;
|
|
22
22
|
hasButton?: boolean;
|
|
@@ -19,12 +19,12 @@ const TestimonialCardGrid = (props) => {
|
|
|
19
19
|
style: sectionStyle,
|
|
20
20
|
css,
|
|
21
21
|
textAlign = "center",
|
|
22
|
-
gridColumns = 2,
|
|
22
|
+
gridColumns = "2",
|
|
23
23
|
ratingType = "logo",
|
|
24
24
|
bordered = false,
|
|
25
25
|
hasButton = false
|
|
26
26
|
} = styles ?? {};
|
|
27
|
-
const gridColsClass = gridColumns === 3 ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
27
|
+
const gridColsClass = gridColumns === "3" ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
28
28
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
29
29
|
/* @__PURE__ */ jsxs("div", { className: `mx-auto mb-12 w-full max-w-lg md:mb-18 lg:mb-20 ${textAlign === "center" ? "text-center" : "text-left"}`, children: [
|
|
30
30
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -83,7 +83,7 @@ const TestimonialCardGridDefaults = {
|
|
|
83
83
|
],
|
|
84
84
|
styles: {
|
|
85
85
|
textAlign: "center",
|
|
86
|
-
gridColumns: 2,
|
|
86
|
+
gridColumns: "2",
|
|
87
87
|
ratingType: "logo",
|
|
88
88
|
bordered: false,
|
|
89
89
|
hasButton: false
|
|
@@ -24,7 +24,7 @@ const TestimonialCarousel = (props) => {
|
|
|
24
24
|
ratingType = "logo",
|
|
25
25
|
hasHeading = false,
|
|
26
26
|
textAlign = "center",
|
|
27
|
-
carouselColumns = 1,
|
|
27
|
+
carouselColumns = "1",
|
|
28
28
|
bordered = false,
|
|
29
29
|
hasButton = false
|
|
30
30
|
} = styles ?? {};
|
|
@@ -37,7 +37,7 @@ const TestimonialCarousel = (props) => {
|
|
|
37
37
|
setCurrent(api.selectedScrollSnap() + 1);
|
|
38
38
|
});
|
|
39
39
|
}, [api]);
|
|
40
|
-
const basisClass = carouselColumns === 3 ? "md:basis-1/2 lg:basis-1/3" : carouselColumns === 2 ? "md:basis-1/2" : "md:basis-full";
|
|
40
|
+
const basisClass = carouselColumns === "3" ? "md:basis-1/2 lg:basis-1/3" : carouselColumns === "2" ? "md:basis-1/2" : "md:basis-full";
|
|
41
41
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("overflow-hidden px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
42
42
|
hasHeading && /* @__PURE__ */ jsxs("div", { className: `mb-12 w-full max-w-lg md:mb-18 lg:mb-20 ${textAlign === "center" ? "mx-auto text-center" : ""}`, children: [
|
|
43
43
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -54,11 +54,11 @@ const TestimonialCarousel = (props) => {
|
|
|
54
54
|
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0 md:mx-3", children: testimonials.map((testimonial2, index) => /* @__PURE__ */ jsx(
|
|
55
55
|
CarouselItem,
|
|
56
56
|
{
|
|
57
|
-
className: `pl-0 ${carouselColumns === 1 ? "md:px-16" : "pr-6 md:pr-8"} ${basisClass}`,
|
|
57
|
+
className: `pl-0 ${carouselColumns === "1" ? "md:px-16" : "pr-6 md:pr-8"} ${basisClass}`,
|
|
58
58
|
children: /* @__PURE__ */ jsxs("div", { className: `mx-auto flex w-full max-w-lg flex-col items-center text-center ${bordered ? "border border-border-primary p-6 md:p-8" : ""}`, children: [
|
|
59
59
|
ratingType === "logo" && testimonial2.logo && /* @__PURE__ */ jsx("div", { className: "mb-6 md:mb-8", children: /* @__PURE__ */ jsx(CompoundImage, { src: testimonial2.logo.src, alt: testimonial2.logo.alt, className: "max-h-14" }) }),
|
|
60
60
|
ratingType === "stars" && /* @__PURE__ */ jsx("div", { className: "mb-5 flex md:mb-6", children: Array(testimonial2.numberOfStars).fill(null).map((_, starIndex) => /* @__PURE__ */ jsx(BiSolidStar, { className: "mr-1 size-6" }, starIndex)) }),
|
|
61
|
-
/* @__PURE__ */ jsx("blockquote", { className: `font-bold ${carouselColumns === 1 ? "text-xl md:text-2xl" : "text-md leading-[1.4] md:text-xl"}`, children: testimonial2.quote }),
|
|
61
|
+
/* @__PURE__ */ jsx("blockquote", { className: `font-bold ${carouselColumns === "1" ? "text-xl md:text-2xl" : "text-md leading-[1.4] md:text-xl"}`, children: testimonial2.quote }),
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-col items-center justify-center md:mt-8", children: [
|
|
63
63
|
/* @__PURE__ */ jsx("div", { className: "mb-3 md:mb-4", children: /* @__PURE__ */ jsx(
|
|
64
64
|
CompoundImage,
|
|
@@ -111,7 +111,7 @@ const TestimonialCarouselDefaults = {
|
|
|
111
111
|
ratingType: "logo",
|
|
112
112
|
hasHeading: false,
|
|
113
113
|
textAlign: "center",
|
|
114
|
-
carouselColumns: 1,
|
|
114
|
+
carouselColumns: "1",
|
|
115
115
|
bordered: false,
|
|
116
116
|
hasButton: false
|
|
117
117
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dune-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.31",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"gen:meta": "node --import ./scripts/register-mocks.mjs --import tsx/esm scripts/generate-component-meta.ts",
|
|
9
|
-
"build": "pnpm gen:meta && vite build && tsc --project tsconfig.build.json
|
|
9
|
+
"build": "pnpm gen:meta && vite build && tsc --project tsconfig.build.json",
|
|
10
10
|
"watch": "vite build --watch & tsc --project tsconfig.build.json --watch --preserveWatchOutput &",
|
|
11
11
|
"build:sync": "pnpm build && cd ../magent && pnpm sync:dune && cd ../canvas-editor && pnpm sync:dune",
|
|
12
12
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|