@zuplo/zudoku-plugin-monetization 0.0.36 → 0.0.37

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.
@@ -486,7 +486,7 @@ const PricingTable = ({ plans, showYearlyPrice = true, units, renderAction, rend
486
486
  const firstPlan = plans[0];
487
487
  const taxLegendSentence = showTaxLegend && firstPlan ? taxBehaviorLegendSentence(collectDefaultTaxBehaviors(firstPlan)) : void 0;
488
488
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
489
- className: cn("w-full grid grid-cols-1 sm:grid-cols-[repeat(auto-fit,minmax(300px,max-content))] justify-center gap-6", className),
489
+ className: cn("w-full grid grid-cols-1 sm:grid-cols-[repeat(auto-fit,minmax(200px,1fr))] justify-center gap-2", className),
490
490
  children: plans.map((plan) => {
491
491
  const popular = isPopular(plan);
492
492
  const defaultCard = /* @__PURE__ */ jsx(PricingCard, {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as formatDuration, a as subscriptionTaxLegendSentence, c as getPriceFromPlan, f as categorizeRateCards, g as formatPrice, h as formatMinorCurrencyAmount, i as planHasDefaultTaxBehavior, l as PlanEntitlements, m as formatStaticEntitlementConfig, p as formatTieredPriceBreakdown, t as PricingTable, v as formatDurationAdjective, y as formatDurationInterval } from "./PricingTable-BW6uq2El.mjs";
1
+ import { _ as formatDuration, a as subscriptionTaxLegendSentence, c as getPriceFromPlan, f as categorizeRateCards, g as formatPrice, h as formatMinorCurrencyAmount, i as planHasDefaultTaxBehavior, l as PlanEntitlements, m as formatStaticEntitlementConfig, p as formatTieredPriceBreakdown, t as PricingTable, v as formatDurationAdjective, y as formatDurationInterval } from "./PricingTable-Dsbd3E2Q.mjs";
2
2
  import { Suspense, createContext, use, useEffect, useMemo, useState } from "react";
3
3
  import { cn, createPlugin, joinUrl, throwIfProblemJson } from "zudoku";
4
4
  import { AlertTriangleIcon, ArrowDownIcon, ArrowLeftRightIcon, ArrowUpIcon, CalendarIcon, CheckCheckIcon, CheckIcon, CircleSlashIcon, ClockIcon, CreditCardIcon, Grid2x2XIcon, InfoIcon, Loader2Icon, LockIcon, MoreVerticalIcon, RefreshCcw, RefreshCwIcon, Settings, ShieldIcon, StarsIcon, Trash2Icon, XIcon } from "zudoku/icons";
@@ -517,26 +517,23 @@ const PricingPageSkeleton = () => /* @__PURE__ */ jsxs("div", {
517
517
  className: "text-center space-y-4 mb-12",
518
518
  children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48 mx-auto" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-96 mx-auto" })]
519
519
  }), /* @__PURE__ */ jsx("div", {
520
- className: "w-full grid grid-cols-1 sm:grid-cols-[repeat(auto-fit,minmax(300px,max-content))] justify-center gap-6",
520
+ className: "w-full grid grid-cols-1 sm:grid-cols-[repeat(auto-fit,minmax(200px,1fr))] justify-center gap-2",
521
521
  children: [
522
522
  1,
523
523
  2,
524
524
  3
525
- ].map((i) => /* @__PURE__ */ jsxs(Card, {
526
- className: "w-[300px]",
527
- children: [/* @__PURE__ */ jsxs(CardHeader, {
528
- className: "space-y-3",
529
- children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" })]
530
- }), /* @__PURE__ */ jsxs(CardContent, {
531
- className: "space-y-3",
532
- children: [
533
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
534
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
535
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
536
- /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full mt-4" })
537
- ]
538
- })]
539
- }, i))
525
+ ].map((i) => /* @__PURE__ */ jsxs(Card, { children: [/* @__PURE__ */ jsxs(CardHeader, {
526
+ className: "space-y-3",
527
+ children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-24" }), /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32" })]
528
+ }), /* @__PURE__ */ jsxs(CardContent, {
529
+ className: "space-y-3",
530
+ children: [
531
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
532
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }),
533
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" }),
534
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full mt-4" })
535
+ ]
536
+ })] }, i))
540
537
  })]
541
538
  });
542
539
  //#endregion
@@ -1,2 +1,2 @@
1
- import { _ as formatDuration, a as subscriptionTaxLegendSentence, c as getPriceFromPlan, d as FeatureItem, f as categorizeRateCards, g as formatPrice, h as formatMinorCurrencyAmount, i as planHasDefaultTaxBehavior, l as PlanEntitlements, m as formatStaticEntitlementConfig, n as PricingCard, o as taxBehaviorLegendSentence, p as formatTieredPriceBreakdown, r as collectDefaultTaxBehaviors, s as derivePriceFromPlan, t as PricingTable, u as QuotaItem, v as formatDurationAdjective, y as formatDurationInterval } from "./PricingTable-BW6uq2El.mjs";
1
+ import { _ as formatDuration, a as subscriptionTaxLegendSentence, c as getPriceFromPlan, d as FeatureItem, f as categorizeRateCards, g as formatPrice, h as formatMinorCurrencyAmount, i as planHasDefaultTaxBehavior, l as PlanEntitlements, m as formatStaticEntitlementConfig, n as PricingCard, o as taxBehaviorLegendSentence, p as formatTieredPriceBreakdown, r as collectDefaultTaxBehaviors, s as derivePriceFromPlan, t as PricingTable, u as QuotaItem, v as formatDurationAdjective, y as formatDurationInterval } from "./PricingTable-Dsbd3E2Q.mjs";
2
2
  export { FeatureItem, PlanEntitlements, PricingCard, PricingTable, QuotaItem, categorizeRateCards, collectDefaultTaxBehaviors, derivePriceFromPlan, formatDuration, formatDurationAdjective, formatDurationInterval, formatMinorCurrencyAmount, formatPrice, formatStaticEntitlementConfig, formatTieredPriceBreakdown, getPriceFromPlan, planHasDefaultTaxBehavior, subscriptionTaxLegendSentence, taxBehaviorLegendSentence };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/zudoku-plugin-monetization",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zuplo/zudoku",
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "clsx": "2.1.1",
27
- "tailwind-merge": "3.5.0",
27
+ "tailwind-merge": "3.6.0",
28
28
  "tinyduration": "3.4.1"
29
29
  },
30
30
  "devDependencies": {