@burdenoff/website-sdk 2026.516.4 → 2026.516.6
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/pricing.js +101 -84
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +101 -84
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/index.js +101 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -84
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1434,6 +1434,10 @@ function formatInterval(duration, billingIntervals) {
|
|
|
1434
1434
|
const intervals = billingIntervals || defaultIntervals;
|
|
1435
1435
|
return intervals[duration] || `/${duration}`;
|
|
1436
1436
|
}
|
|
1437
|
+
function isEnterprisePlan(planName) {
|
|
1438
|
+
const name = planName.toLowerCase();
|
|
1439
|
+
return name.includes("team") || name.includes("business") || name.includes("enterprise");
|
|
1440
|
+
}
|
|
1437
1441
|
function detectPlanTier(planName) {
|
|
1438
1442
|
const name = planName.toLowerCase();
|
|
1439
1443
|
if (name.includes("free") || name.includes("basic") || name.includes("starter") || name.includes("hobby")) {
|
|
@@ -1614,25 +1618,27 @@ function PricingSection(props) {
|
|
|
1614
1618
|
cancelled = true;
|
|
1615
1619
|
};
|
|
1616
1620
|
}, [client, resolvedProductId]);
|
|
1617
|
-
const
|
|
1621
|
+
const individualAllPlans = allPlans.filter(
|
|
1622
|
+
(p) => !isEnterprisePlan(p.name)
|
|
1623
|
+
);
|
|
1624
|
+
const enterpriseApiPlans = allPlans.filter((p) => isEnterprisePlan(p.name));
|
|
1625
|
+
const individualPlans = individualAllPlans.filter(
|
|
1618
1626
|
(plan) => billingCycle === "monthly" ? plan.duration === "monthly" : plan.duration === "yearly"
|
|
1619
1627
|
);
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
});
|
|
1635
|
-
}
|
|
1628
|
+
const enterpriseCards = enterpriseApiPlans.map((p) => {
|
|
1629
|
+
if (p.priceRaw === 0 && p.name.toLowerCase().includes("enterprise")) {
|
|
1630
|
+
return {
|
|
1631
|
+
...p,
|
|
1632
|
+
price: "Custom",
|
|
1633
|
+
interval: "",
|
|
1634
|
+
ctaText: "Contact Sales",
|
|
1635
|
+
ctaLink: props.contactUrl || "/contact"
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
return p;
|
|
1639
|
+
});
|
|
1640
|
+
const hasApiEnterprisePlans = enterpriseCards.length > 0;
|
|
1641
|
+
const plans = props.showAudienceTabs && audience === "enterprise" ? [] : individualPlans;
|
|
1636
1642
|
if (loading) {
|
|
1637
1643
|
return /* @__PURE__ */ jsx("section", { id, className: `py-12 sm:py-16 md:py-20 ${className}`, children: /* @__PURE__ */ jsxs("div", { className: "container mx-auto px-4 sm:px-6", children: [
|
|
1638
1644
|
/* @__PURE__ */ jsxs("div", { className: "text-center mb-8 sm:mb-12", children: [
|
|
@@ -1711,74 +1717,85 @@ function PricingSection(props) {
|
|
|
1711
1717
|
/* @__PURE__ */ jsx("h3", { className: "text-xl sm:text-2xl font-bold text-foreground", children: props.enterpriseHeading || "Enterprise Solutions" }),
|
|
1712
1718
|
/* @__PURE__ */ jsx("p", { className: "mt-3 text-muted-foreground", children: props.enterpriseSubtitle || "Built for teams, agencies, and organizations that need advanced collaboration, security, support, and scale." })
|
|
1713
1719
|
] }),
|
|
1714
|
-
/* @__PURE__ */ jsx("div", { className: "grid md:grid-cols-3 gap-6 sm:gap-8 max-w-6xl mx-auto items-stretch", children: props.showAudienceTabs && audience === "enterprise" && props.enterprisePlans ? (
|
|
1715
|
-
/* Enterprise static
|
|
1716
|
-
props.enterprisePlans.map((ep) =>
|
|
1717
|
-
"
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1720
|
+
/* @__PURE__ */ jsx("div", { className: "grid md:grid-cols-3 gap-6 sm:gap-8 max-w-6xl mx-auto items-stretch", children: props.showAudienceTabs && audience === "enterprise" && (hasApiEnterprisePlans || props.enterprisePlans) ? (
|
|
1721
|
+
/* Enterprise cards — from API if available, otherwise from static prop */
|
|
1722
|
+
(hasApiEnterprisePlans ? enterpriseCards : props.enterprisePlans || []).map((ep) => {
|
|
1723
|
+
const subtitle = ep.subtitle || ep.description || "";
|
|
1724
|
+
const btnText = ep.button || ep.ctaText || "Get Started";
|
|
1725
|
+
const btnLink = ep.buttonLink || ep.ctaLink || props.appLoginUrl;
|
|
1726
|
+
const period = ep.period || ep.interval || "";
|
|
1727
|
+
const note = ep.note || "";
|
|
1728
|
+
const badge = ep.badge || "";
|
|
1729
|
+
const isPopular = ep.popular;
|
|
1730
|
+
const features = ep.features || [];
|
|
1731
|
+
const price = String(ep.price);
|
|
1732
|
+
return /* @__PURE__ */ jsxs(
|
|
1733
|
+
"div",
|
|
1734
|
+
{
|
|
1735
|
+
className: `bg-card rounded-xl p-6 sm:p-8 transition-all duration-300 flex flex-col ${isPopular ? "border-2 border-primary shadow-xl ring-1 ring-primary/20" : "border hover:shadow-lg hover:border-primary/50"}`,
|
|
1736
|
+
children: [
|
|
1737
|
+
/* @__PURE__ */ jsxs("div", { className: "text-center mb-6", children: [
|
|
1738
|
+
isPopular && badge && /* @__PURE__ */ jsx("span", { className: "inline-block bg-primary text-primary-foreground px-4 py-1 rounded-full text-xs font-semibold mb-3", children: badge }),
|
|
1739
|
+
/* @__PURE__ */ jsx("h3", { className: "text-xl sm:text-2xl font-bold mb-2", children: ep.name }),
|
|
1740
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: subtitle })
|
|
1730
1741
|
] }),
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
className: "text-sm
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
"
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
"
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1742
|
+
/* @__PURE__ */ jsxs("div", { className: "text-center mb-2", children: [
|
|
1743
|
+
price === "Custom" ? /* @__PURE__ */ jsx("span", { className: "text-3xl sm:text-4xl font-bold", children: "Custom" }) : /* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-center gap-1", children: [
|
|
1744
|
+
/* @__PURE__ */ jsx("span", { className: "text-4xl sm:text-5xl font-extrabold", children: price }),
|
|
1745
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-lg", children: period })
|
|
1746
|
+
] }),
|
|
1747
|
+
note && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm font-medium text-primary", children: note })
|
|
1748
|
+
] }),
|
|
1749
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-3 mb-8 mt-6 flex-1", children: features.map((feature) => /* @__PURE__ */ jsxs(
|
|
1750
|
+
"li",
|
|
1751
|
+
{
|
|
1752
|
+
className: "text-sm flex items-start gap-2",
|
|
1753
|
+
children: [
|
|
1754
|
+
/* @__PURE__ */ jsx("span", { className: "text-primary mt-0.5 flex-shrink-0", children: "\u2713" }),
|
|
1755
|
+
/* @__PURE__ */ jsx("span", { children: feature })
|
|
1756
|
+
]
|
|
1757
|
+
},
|
|
1758
|
+
feature
|
|
1759
|
+
)) }),
|
|
1760
|
+
btnLink.startsWith("/") ? /* @__PURE__ */ jsx(
|
|
1761
|
+
Button,
|
|
1762
|
+
{
|
|
1763
|
+
className: "w-full h-11",
|
|
1764
|
+
variant: isPopular ? "default" : "outline",
|
|
1765
|
+
size: "lg",
|
|
1766
|
+
asChild: true,
|
|
1767
|
+
children: /* @__PURE__ */ jsx(
|
|
1768
|
+
"a",
|
|
1769
|
+
{
|
|
1770
|
+
href: btnLink,
|
|
1771
|
+
onClick: () => window.scrollTo({ top: 0, behavior: "smooth" }),
|
|
1772
|
+
children: btnText
|
|
1773
|
+
}
|
|
1774
|
+
)
|
|
1775
|
+
}
|
|
1776
|
+
) : /* @__PURE__ */ jsx(
|
|
1777
|
+
Button,
|
|
1778
|
+
{
|
|
1779
|
+
className: "w-full h-11",
|
|
1780
|
+
variant: isPopular ? "default" : "outline",
|
|
1781
|
+
size: "lg",
|
|
1782
|
+
asChild: true,
|
|
1783
|
+
children: /* @__PURE__ */ jsx(
|
|
1784
|
+
"a",
|
|
1785
|
+
{
|
|
1786
|
+
href: btnLink,
|
|
1787
|
+
target: "_blank",
|
|
1788
|
+
rel: "noopener noreferrer",
|
|
1789
|
+
children: btnText
|
|
1790
|
+
}
|
|
1791
|
+
)
|
|
1792
|
+
}
|
|
1793
|
+
)
|
|
1794
|
+
]
|
|
1795
|
+
},
|
|
1796
|
+
ep.name
|
|
1797
|
+
);
|
|
1798
|
+
})
|
|
1782
1799
|
) : (
|
|
1783
1800
|
/* Individual API-fetched cards */
|
|
1784
1801
|
plans.map((plan) => /* @__PURE__ */ jsxs(
|