@bikdotai/bik-component-library 0.0.358-beta-plans → 0.0.359-beta-plans

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.
@@ -3,6 +3,7 @@ import { NewSubscriptionPlanProps } from './NewSubscriptionPlan';
3
3
  type Props = {
4
4
  plans: NewSubscriptionPlanProps[];
5
5
  onPlanSelect: (code: string) => void;
6
+ onClickShowAllFeatures?: () => void;
6
7
  showTrialOptions?: boolean;
7
8
  staticWidth?: string;
8
9
  selectedTab?: 'monthly' | 'annually';
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("styled-components"),l=require("./NewSubscriptionPlan.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const i=s(n).default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("styled-components"),n=require("./NewSubscriptionPlan.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const i=s(l).default.div`
2
2
  display: flex;
3
3
  column-gap: 22px;
4
4
  align-items: stretch;
5
5
  overflow-x: auto;
6
- `;exports.SubscriptionPlansCollected=n=>{var s;const[o,r]=t.useState(null!==(s=n.selectedPlan)&&void 0!==s?s:"");return e.jsx(i,Object.assign({style:{padding:"28px 0px"}},{children:n.plans.map(((s,i)=>{var a,c;return e.jsx("div",Object.assign({style:{width:null!==(a=n.staticWidth)&&void 0!==a?a:308}},{children:t.createElement(l.NewSubscriptionPlan,Object.assign({},s,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==n.selectedTab)&&void 0!==c&&c,showTrialOptions:n.showTrialOptions||!1,onPlanSelect:e=>{n.onPlanSelect(e),r(e)},key:s.planName,isPlanSelected:o==s.code}))}),i)}))}))};
6
+ `;exports.SubscriptionPlansCollected=l=>{var s;const[o,r]=t.useState(null!==(s=l.selectedPlan)&&void 0!==s?s:"");return e.jsx(i,Object.assign({style:{padding:"28px 0px"}},{children:l.plans.map(((s,i)=>{var a,c;return e.jsx("div",Object.assign({style:{width:null!==(a=l.staticWidth)&&void 0!==a?a:308}},{children:t.createElement(n.NewSubscriptionPlan,Object.assign({},s,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==l.selectedTab)&&void 0!==c&&c,showTrialOptions:l.showTrialOptions||!1,onPlanSelect:e=>{l.onPlanSelect(e),r(e)},key:s.planName,isPlanSelected:o==s.code,onClickShowAllFeatures:l.onClickShowAllFeatures}))}),i)}))}))};
@@ -3,6 +3,7 @@ import { NewSubscriptionPlanProps } from './NewSubscriptionPlan';
3
3
  type Props = {
4
4
  plans: NewSubscriptionPlanProps[];
5
5
  onPlanSelect: (code: string) => void;
6
+ onClickShowAllFeatures?: () => void;
6
7
  showTrialOptions?: boolean;
7
8
  staticWidth?: string;
8
9
  selectedTab?: 'monthly' | 'annually';
@@ -1,6 +1,6 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useState as e,createElement as n}from"react";import o from"styled-components";import{NewSubscriptionPlan as l}from"./NewSubscriptionPlan.js";const i=o.div`
1
+ import{jsx as t}from"react/jsx-runtime";import{useState as e,createElement as l}from"react";import o from"styled-components";import{NewSubscriptionPlan as n}from"./NewSubscriptionPlan.js";const i=o.div`
2
2
  display: flex;
3
3
  column-gap: 22px;
4
4
  align-items: stretch;
5
5
  overflow-x: auto;
6
- `,s=o=>{var s;const[a,r]=e(null!==(s=o.selectedPlan)&&void 0!==s?s:"");return t(i,Object.assign({style:{padding:"28px 0px"}},{children:o.plans.map(((e,i)=>{var s,c;return t("div",Object.assign({style:{width:null!==(s=o.staticWidth)&&void 0!==s?s:308}},{children:n(l,Object.assign({},e,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==o.selectedTab)&&void 0!==c&&c,showTrialOptions:o.showTrialOptions||!1,onPlanSelect:t=>{o.onPlanSelect(t),r(t)},key:e.planName,isPlanSelected:a==e.code}))}),i)}))}))};export{s as SubscriptionPlansCollected};
6
+ `,s=o=>{var s;const[a,r]=e(null!==(s=o.selectedPlan)&&void 0!==s?s:"");return t(i,Object.assign({style:{padding:"28px 0px"}},{children:o.plans.map(((e,i)=>{var s,c;return t("div",Object.assign({style:{width:null!==(s=o.staticWidth)&&void 0!==s?s:308}},{children:l(n,Object.assign({},e,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==o.selectedTab)&&void 0!==c&&c,showTrialOptions:o.showTrialOptions||!1,onPlanSelect:t=>{o.onPlanSelect(t),r(t)},key:e.planName,isPlanSelected:a==e.code,onClickShowAllFeatures:o.onClickShowAllFeatures}))}),i)}))}))};export{s as SubscriptionPlansCollected};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.358-beta-plans",
3
+ "version": "0.0.359-beta-plans",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",