@bunnyapp/components 1.7.0-beta.44 → 1.7.0-beta.45

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.
Files changed (37) hide show
  1. package/dist/cjs/index.js +206 -213
  2. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  3. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -17
  4. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -3
  5. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  6. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  7. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  8. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +0 -4
  9. package/dist/cjs/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
  10. package/dist/cjs/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  11. package/dist/cjs/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  12. package/dist/cjs/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  13. package/dist/cjs/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  14. package/dist/cjs/types/src/utils/priceListUtils/getPrice.d.ts +2 -2
  15. package/dist/cjs/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  16. package/dist/cjs/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  17. package/dist/esm/index.js +206 -213
  18. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/featureAddons/FeatureAddonRow.d.ts +0 -3
  19. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/priceListCardDesktop/PriceListCardDesktop.d.ts +1 -17
  20. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerMobile/PriceListCardMobile.d.ts +1 -3
  21. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/BillingPeriodDescription.d.ts +12 -0
  22. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/PriceListCardPriceDescription.d.ts +13 -6
  23. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  24. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/priceListCardUtils.d.ts +0 -4
  25. package/dist/esm/types/src/components/priceListPricing/PricingTooltip.d.ts +6 -5
  26. package/dist/esm/types/src/components/priceListPricing/components/ChargePriceTiers.d.ts +2 -1
  27. package/dist/esm/types/src/components/priceListPricing/components/PriceTierPrice.d.ts +10 -3
  28. package/dist/esm/types/src/utils/priceListChargeUtils/priceListChargePriceDescription.d.ts +13 -0
  29. package/dist/esm/types/src/utils/priceListUtils/getActiveCharges.d.ts +10 -0
  30. package/dist/esm/types/src/utils/priceListUtils/getPrice.d.ts +2 -2
  31. package/dist/esm/types/src/utils/priceListUtils/getPricingUnit.d.ts +16 -0
  32. package/dist/esm/types/src/utils/priceListUtils/priceDescription.d.ts +11 -4
  33. package/package.json +1 -1
  34. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  35. package/dist/cjs/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
  36. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/priceListCard/PriceDescription/utils/hasMultipleRecurringCharges.d.ts +0 -12
  37. package/dist/esm/types/src/utils/priceListUtils/doesPriceListHaveFlatFeeCharges.d.ts +0 -12
@@ -6,9 +6,6 @@ export declare const FeatureAddonRow_PriceListFragment: import("gql.tada").TadaD
6
6
  id: string;
7
7
  name: string;
8
8
  }[] | null;
9
- [$tada.fragmentRefs]: {
10
- PricingTooltip_PriceListFragment: "PriceList";
11
- };
12
9
  }, {}, {
13
10
  fragment: "FeatureAddonRow_PriceListFragment";
14
11
  on: "PriceList";
@@ -1,4 +1,3 @@
1
- import Feature from '@/types/Feature';
2
1
  import DeprecatedPriceList from '@/types/PriceList';
3
2
  import Subscription from '@/types/Subscription';
4
3
  import { FragmentOf } from 'gql.tada';
@@ -11,24 +10,10 @@ export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").
11
10
  contactUsUrl: string | null;
12
11
  name: string;
13
12
  } | null;
14
- charges: {
15
- id: string;
16
- featureAddon: boolean | null;
17
- priceListChargeTiers: {
18
- starts: number | null;
19
- price: number | null;
20
- }[] | null;
21
- [$tada.fragmentRefs]: {
22
- PricingTooltip_PriceListChargeFragment: "PriceListCharge";
23
- };
24
- }[] | null;
25
- currencyId: string;
26
13
  [$tada.fragmentRefs]: {
27
14
  PriceListCardButton_PriceListFragment: "PriceList";
28
15
  } & {
29
16
  PriceListHasPriceTiers_PriceListFragment: "PriceList";
30
- } & {
31
- PricingTooltip_PriceListFragment: "PriceList";
32
17
  } & {
33
18
  PriceListCardPrice_PriceListFragment: "PriceList";
34
19
  } & {
@@ -39,11 +24,10 @@ export declare const PriceListCardDesktop_PriceListFragment: import("gql.tada").
39
24
  on: "PriceList";
40
25
  masked: true;
41
26
  }>;
42
- declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
27
+ declare const PriceListCardDesktop: ({ hideButton, description, disableSelectCurrentPlan, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, noBorder, onClickPriceListCard, }: {
43
28
  hideButton?: boolean;
44
29
  description: string;
45
30
  disableSelectCurrentPlan: boolean;
46
- feature?: Feature;
47
31
  isPriceListCurrentSubscription: boolean;
48
32
  isSelected: boolean;
49
33
  priceList: FragmentOf<typeof PriceListCardDesktop_PriceListFragment>;
@@ -1,4 +1,3 @@
1
- import Feature from '@/types/Feature';
2
1
  import PriceList from '@/types/PriceList';
3
2
  import Subscription from '@/types/Subscription';
4
3
  import { FragmentOf } from 'gql.tada';
@@ -18,9 +17,8 @@ export declare const PriceListCardMobile_PriceListFragment: import("gql.tada").T
18
17
  on: "PriceList";
19
18
  masked: true;
20
19
  }>;
21
- declare const PriceListCardMobile: ({ description, feature, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
20
+ declare const PriceListCardMobile: ({ description, isPriceListCurrentSubscription, isSelected, priceList: maskedPriceList, subscriptionPlan, trialRemainingDays, disableOnClickPriceListCard, onClickPriceListCard, }: {
22
21
  description: string;
23
- feature?: Feature;
24
22
  isPriceListCurrentSubscription: boolean;
25
23
  isSelected: boolean;
26
24
  priceList: FragmentOf<typeof PriceListCardMobile_PriceListFragment>;
@@ -0,0 +1,12 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const BillingPeriodDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ periodMonths: number | null;
4
+ }, {}, {
5
+ fragment: "BillingPeriodDescription_PriceListFragment";
6
+ on: "PriceList";
7
+ masked: true;
8
+ }>;
9
+ declare const BillingPeriodDescription: ({ priceList: maskedPriceList, }: {
10
+ priceList: FragmentOf<typeof BillingPeriodDescription_PriceListFragment>;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ export default BillingPeriodDescription;
@@ -1,23 +1,30 @@
1
- import Feature from '@/types/Feature';
2
1
  import { FragmentOf } from 'gql.tada';
3
2
  export declare const PriceListCardPriceDescription_PriceListFragment: import("gql.tada").TadaDocumentNode<{
4
3
  plan: {
5
4
  pricingDescription: string | null;
6
5
  } | null;
7
- showPriceAsMonthly: boolean | null;
6
+ charges: {
7
+ [$tada.fragmentRefs]: {
8
+ GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
9
+ } & {
10
+ PricingTooltip_PriceListChargeFragment: "PriceListCharge";
11
+ };
12
+ }[] | null;
13
+ currencyId: string;
8
14
  periodMonths: number | null;
9
15
  [$tada.fragmentRefs]: {
10
- DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
16
+ priceDescriptionString_PriceListFragment: "PriceList";
11
17
  } & {
12
- HasMultipleRecurringCharges_PriceListFragment: "PriceList";
18
+ BillingPeriodDescription_PriceListFragment: "PriceList";
19
+ } & {
20
+ PriceListHasPriceTiers_PriceListFragment: "PriceList";
13
21
  };
14
22
  }, {}, {
15
23
  fragment: "PriceListCardPriceDescription_PriceListFragment";
16
24
  on: "PriceList";
17
25
  masked: true;
18
26
  }>;
19
- declare const PriceListCardPriceDescription: ({ feature, priceList: maskedPriceList, }: {
20
- feature?: Feature;
27
+ declare const PriceListCardPriceDescription: ({ priceList: maskedPriceList, }: {
21
28
  priceList: FragmentOf<typeof PriceListCardPriceDescription_PriceListFragment>;
22
29
  }) => import("react/jsx-runtime").JSX.Element | null;
23
30
  export default PriceListCardPriceDescription;
@@ -26,5 +26,5 @@ declare const PriceListCard: ({ hideButton, isSelected, priceList: maskedPriceLi
26
26
  noBorder?: boolean;
27
27
  onClickPriceListCard?: (priceList: DeprecatedPriceList) => void;
28
28
  disableCurrentPlan?: boolean;
29
- }) => import("react/jsx-runtime").JSX.Element | null;
29
+ }) => import("react/jsx-runtime").JSX.Element;
30
30
  export default PriceListCard;
@@ -1,10 +1,6 @@
1
1
  import PriceList from '@/types/PriceList';
2
- import { PriceListCharge } from '@/types/PriceListCharge';
3
2
  import Subscription from '@/types/Subscription';
4
3
  export declare const createPlanDescription: (planDescription: string) => string;
5
- export declare const getActivePlanPriceData: (priceList?: PriceList, selectedPriceList?: PriceList) => {
6
- activeCharge: PriceListCharge | undefined;
7
- } | undefined;
8
4
  export declare const isPriceListDisabled: ({ priceList, upgradingSubscription, }: {
9
5
  priceList?: PriceList;
10
6
  upgradingSubscription: Subscription | undefined;
@@ -12,9 +12,13 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
12
12
  basePrice: number;
13
13
  name: string;
14
14
  [$tada.fragmentRefs]: {
15
+ priceListChargePriceDescription_PriceListChargeFragment: "PriceListCharge";
16
+ } & {
15
17
  ChargeHasPriceTiers_PriceListChargeFragment: "PriceListCharge";
16
18
  } & {
17
19
  ChargePriceTiers_PriceListChargeFragment: "PriceListCharge";
20
+ } & {
21
+ GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
18
22
  };
19
23
  }, {}, {
20
24
  fragment: "PricingTooltip_PriceListChargeFragment";
@@ -22,22 +26,19 @@ export declare const PricingTooltip_PriceListChargeFragment: import("gql.tada").
22
26
  masked: true;
23
27
  }>;
24
28
  export declare const PricingTooltip_PriceListFragment: import("gql.tada").TadaDocumentNode<{
25
- showPriceAsMonthly: boolean | null;
26
- periodMonths: number | null;
27
29
  currencyId: string;
28
30
  monthlyBasePrice: number | null;
29
31
  basePrice: number | null;
30
32
  [$tada.fragmentRefs]: {
31
- DoesPriceListHaveFlatFeeCharges_PriceListFragment: "PriceList";
33
+ priceDescriptionString_PriceListFragment: "PriceList";
32
34
  };
33
35
  }, {}, {
34
36
  fragment: "PricingTooltip_PriceListFragment";
35
37
  on: "PriceList";
36
38
  masked: true;
37
39
  }>;
38
- export declare const PricingTooltip: ({ className, priceListCharges: maskedPriceListCharges, currencyId, priceList: maskedPriceList, }: {
40
+ export declare const PricingTooltip: ({ className, priceListCharges: maskedPriceListCharges, currencyId, }: {
39
41
  className?: string;
40
42
  priceListCharges: FragmentOf<typeof PricingTooltip_PriceListChargeFragment>[];
41
43
  currencyId: string;
42
- priceList: FragmentOf<typeof PricingTooltip_PriceListFragment>;
43
44
  }) => import("react/jsx-runtime").JSX.Element;
@@ -6,9 +6,10 @@ export declare const ChargePriceTiers_PriceListChargeFragment: import("gql.tada"
6
6
  priceDecimals: number | null;
7
7
  priceListChargeTiers: {
8
8
  starts: number | null;
9
- price: number | null;
10
9
  [$tada.fragmentRefs]: {
11
10
  PriceTierRow_PriceTierFragment: "PriceListChargeTier";
11
+ } & {
12
+ PriceTierPrice_PriceTierFragment: "PriceListChargeTier";
12
13
  };
13
14
  }[] | null;
14
15
  }, {}, {
@@ -1,7 +1,14 @@
1
- import { PriceTier } from '../types/PriceTier';
2
- declare const PriceTierPrice: ({ currencyId, priceDecimals, tier, }: {
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const PriceTierPrice_PriceTierFragment: import("gql.tada").TadaDocumentNode<{
3
+ price: number | null;
4
+ }, {}, {
5
+ fragment: "PriceTierPrice_PriceTierFragment";
6
+ on: "PriceListChargeTier";
7
+ masked: true;
8
+ }>;
9
+ declare const PriceTierPrice: ({ currencyId, priceDecimals, tier: maskedTier, }: {
3
10
  currencyId: string;
4
11
  priceDecimals: number;
5
- tier: PriceTier;
12
+ tier: FragmentOf<typeof PriceTierPrice_PriceTierFragment>;
6
13
  }) => import("react/jsx-runtime").JSX.Element;
7
14
  export default PriceTierPrice;
@@ -0,0 +1,13 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const priceListChargePriceDescription_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ showPriceAsMonthly: boolean | null;
4
+ billingPeriod: "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | "ONCE" | null;
5
+ feature: {
6
+ unitName: string | null;
7
+ } | null;
8
+ }, {}, {
9
+ fragment: "priceListChargePriceDescription_PriceListChargeFragment";
10
+ on: "PriceListCharge";
11
+ masked: true;
12
+ }>;
13
+ export declare function priceListChargePriceDescription(maskedPriceListCharge: FragmentOf<typeof priceListChargePriceDescription_PriceListChargeFragment>): string;
@@ -0,0 +1,10 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const GetActiveCharges_PriceListChargeFragment: import("gql.tada").TadaDocumentNode<{
3
+ deprecated: boolean | null;
4
+ featureAddon: boolean | null;
5
+ }, {}, {
6
+ fragment: "GetActiveCharges_PriceListChargeFragment";
7
+ on: "PriceListCharge";
8
+ masked: true;
9
+ }>;
10
+ export declare function getActiveCharges<T extends FragmentOf<typeof GetActiveCharges_PriceListChargeFragment>>(charges: T[]): T[];
@@ -6,10 +6,10 @@ export declare const GetPrice_PriceListFragment: import("gql.tada").TadaDocument
6
6
  charges: {
7
7
  basePrice: number;
8
8
  chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
9
- featureAddon: boolean | null;
10
- deprecated: boolean | null;
11
9
  [$tada.fragmentRefs]: {
12
10
  filterDeprecatedCharges_PriceListChargeFragment: "PriceListCharge";
11
+ } & {
12
+ GetActiveCharges_PriceListChargeFragment: "PriceListCharge";
13
13
  };
14
14
  }[] | null;
15
15
  }, {}, {
@@ -0,0 +1,16 @@
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const getPriceListUnitName_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
+ charges: {
4
+ chargeType: "ONE_TIME" | "RECURRING" | "USAGE" | null;
5
+ featureAddon: boolean | null;
6
+ deprecated: boolean | null;
7
+ feature: {
8
+ unitName: string | null;
9
+ } | null;
10
+ }[] | null;
11
+ }, {}, {
12
+ fragment: "getPriceListUnitName_PriceListFragment";
13
+ on: "PriceList";
14
+ masked: true;
15
+ }>;
16
+ export declare function getPriceListUnitName(maskedPriceList: FragmentOf<typeof getPriceListUnitName_PriceListFragment>): string | null | undefined;
@@ -1,6 +1,13 @@
1
- export declare function priceDescriptionString({ unitName, showPriceAsMonthly, periodMonths, priceListHasFlatFeeCharges, }: {
2
- unitName?: string | null;
1
+ import { FragmentOf } from 'gql.tada';
2
+ export declare const priceDescriptionString_PriceListFragment: import("gql.tada").TadaDocumentNode<{
3
3
  showPriceAsMonthly: boolean | null;
4
4
  periodMonths: number | null;
5
- priceListHasFlatFeeCharges: boolean;
6
- }): string;
5
+ [$tada.fragmentRefs]: {
6
+ getPriceListUnitName_PriceListFragment: "PriceList";
7
+ };
8
+ }, {}, {
9
+ fragment: "priceDescriptionString_PriceListFragment";
10
+ on: "PriceList";
11
+ masked: true;
12
+ }>;
13
+ export declare function priceDescriptionString(maskedPriceList: FragmentOf<typeof priceDescriptionString_PriceListFragment>): string;