@bikdotai/bik-component-library 0.0.356 → 0.0.357

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 (41) hide show
  1. package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  2. package/dist/cjs/components/button/Button.styled.js +1 -1
  3. package/dist/cjs/components/button/model.d.ts +1 -1
  4. package/dist/cjs/components/button/themes.d.ts +3 -2
  5. package/dist/cjs/components/button/themes.js +1 -1
  6. package/dist/cjs/components/plans/SubscriptionPlan.d.ts +2 -2
  7. package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
  8. package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +0 -7
  9. package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
  10. package/dist/cjs/components/plans/index.d.ts +0 -2
  11. package/dist/cjs/constants/Theme.d.ts +6 -0
  12. package/dist/cjs/constants/Theme.js +1 -1
  13. package/dist/cjs/index.js +1 -1
  14. package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
  15. package/dist/esm/components/button/Button.styled.js +1 -1
  16. package/dist/esm/components/button/model.d.ts +1 -1
  17. package/dist/esm/components/button/themes.d.ts +3 -2
  18. package/dist/esm/components/button/themes.js +1 -1
  19. package/dist/esm/components/plans/SubscriptionPlan.d.ts +2 -2
  20. package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
  21. package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +0 -7
  22. package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
  23. package/dist/esm/components/plans/index.d.ts +0 -2
  24. package/dist/esm/constants/Theme.d.ts +6 -0
  25. package/dist/esm/constants/Theme.js +1 -1
  26. package/dist/esm/index.js +1 -1
  27. package/package.json +1 -1
  28. package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +0 -1
  29. package/dist/cjs/assets/icons/checkCircle.svg.js +0 -1
  30. package/dist/cjs/assets/icons/quotes.svg.js +0 -1
  31. package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +0 -16
  32. package/dist/cjs/components/plans/NewSubscriptionPlan.js +0 -1
  33. package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +0 -13
  34. package/dist/cjs/components/plans/SubscriptionPlansCollected.js +0 -6
  35. package/dist/esm/assets/icons/WhiteStarFilled.svg.js +0 -1
  36. package/dist/esm/assets/icons/checkCircle.svg.js +0 -1
  37. package/dist/esm/assets/icons/quotes.svg.js +0 -1
  38. package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +0 -16
  39. package/dist/esm/components/plans/NewSubscriptionPlan.js +0 -1
  40. package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +0 -13
  41. package/dist/esm/components/plans/SubscriptionPlansCollected.js +0 -6
@@ -1,16 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { SubscriptionPlanProps } from './SubscriptionPlan';
3
- export interface NewSubscriptionPlanProps extends SubscriptionPlanProps {
4
- popularTestimony?: string;
5
- skipRadioSelection?: boolean;
6
- includeText?: string;
7
- height?: string;
8
- showFeaturesButton?: boolean;
9
- businessDescription?: string[];
10
- yearlyCode?: string;
11
- isPlanSelected?: boolean;
12
- onClickShowAllFeatures?: () => void;
13
- }
14
- type Props = NewSubscriptionPlanProps;
15
- export declare const NewSubscriptionPlan: FunctionComponent<Props>;
16
- export {};
@@ -1 +0,0 @@
1
- import{jsxs as e,jsx as t,Fragment as s}from"react/jsx-runtime";import i from"../../assets/icons/check.svg.js";import a from"../../assets/icons/checkCircle.svg.js";import n from"../../assets/icons/quotes.svg.js";import o from"../../assets/icons/WhiteStarFilled.svg.js";import{Button as r}from"../button/Button.js";import{NewSubscriptionStyled as c}from"./SubscriptionPlanStyled.js";import{Caption as l,TitleRegular as d,BodyCaption as m,TitleLarge as h,BodyPrimary as p,BodySecondary as g,TitleSmall as b}from"../TypographyStyle.js";import{useCurrency as u}from"../../hooks/useCurreny.js";import{COLORS as y}from"../../constants/Theme.js";const j=j=>{var O;const{formatCurrency:v}=u(),f=j.showMonthlyOptions?j.features:j.annualFeatures||[],N=j.showMonthlyOptions?j.monthlyPlan:j.yearlyPlan,T=!j.isDisabled&&j.isMostPopular,x=j.showMonthlyOptions?j.code:null!==(O=j.yearlyCode)&&void 0!==O?O:j.code,P=e=>0==e?"$0":v(e,"USD"),{planName:k,isSelected:S=!1,isDisabled:w=!1,onPlanSelect:C,oldPrice:M,hideMonthYearTag:D,planDescription:L,planDescriptionDiscount:z,showTrialOptions:B,freeTrialMessages:F,extraBlockMessage:W,isLoading:$,buttonText:_,bottomDescription:H,showMonthlyOptions:I,popularTestimony:q,skipRadioSelection:A=!1,includeText:R,height:U,showFeaturesButton:Y,businessDescription:E,isPlanSelected:G=!1,onClickShowAllFeatures:J}=j;return e(c,Object.assign({height:U,showMostPopularChip:T||!1,onClick:()=>C(x)},{children:[T&&e("div",Object.assign({className:"most-popular-chip"},{children:[t(l,Object.assign({className:"popular-text"},{children:"Most popular "})),t(o,{height:12,width:12})]})),e("div",Object.assign({className:`box ${w?"disabled":""} \n\t\t\t\t`},{children:[e("div",Object.assign({className:"radio-flex"},{children:[!A&&t("input",{type:"radio",id:"html",name:"fav_language",value:"HTML",disabled:null!=w&&w,onChange:()=>C(x),className:"radio-button",checked:G}),t(d,Object.assign({style:{color:y.content.secondary,marginBottom:4}},{children:k}))]})),e("div",Object.assign({className:"price-block"},{children:[M?t(m,Object.assign({className:"old--price"},{children:P(N.price)})):t(s,{}),t(h,Object.assign({style:{color:y.content.primary}},{children:P(M||N.price)})),t(p,Object.assign({style:{color:y.content.secondary,marginLeft:4}},{children:D?"":"/ "+(I?"month":"year")}))]})),L&&e("div",Object.assign({className:"per-message-price"},{children:[t(m,Object.assign({style:{color:y.content.secondary}},{children:L})),z&&t(m,Object.assign({style:{color:y.background.positive.vibrant,marginLeft:4}},{children:z}))]})),E&&E.length&&t("div",Object.assign({style:{marginTop:4}},{children:E.map(((e,s)=>t(g,{style:{color:y.content.secondary},dangerouslySetInnerHTML:{__html:e}},s)))})),B&&e(l,Object.assign({className:"trial "+(S?"selected":"")},{children:["7 day free trial with ",F," messages"]})),W&&t(l,Object.assign({className:"trial "+(S?"selected":"")},{children:W})),R&&t(b,Object.assign({className:"extra-include-margin"},{children:R})),t("div",Object.assign({className:"features"},{children:f.map(((s,i)=>e("div",Object.assign({className:"feature"},{children:[t("div",{children:t(a,{height:20,width:20,color:y.content.primary})}),t(g,Object.assign({className:"feature-text"},{children:s.detail}),i)]}),s.detail)))})),Y&&t(r,{isLoading:!1,buttonType:"tertiary",buttonText:"See all features",size:"small",onClick:e=>{e.stopPropagation(),J&&J()}}),A&&t("div",Object.assign({className:"button-box"},{children:$?t(r,{isLoading:!0,buttonType:"primary",buttonText:"Choose plan",size:"medium",matchParentWidth:!0}):e(s,{children:[S&&t(r,{disabled:w,LeadingIcon:i,buttonType:"tertiary",size:"medium",matchParentWidth:!0,buttonText:_||"Selected Plan"}),!S&&!w&&t(r,{buttonType:"primary",size:"medium",onClick:e=>{e.stopPropagation(),C(x)},matchParentWidth:!0,buttonText:_||"Choose plan"})]})})),q&&e("div",Object.assign({className:"popular-testimony"},{children:[t(n,{height:26,width:70}),t("div",Object.assign({className:"testimony-text"},{children:q}))]}))]})),H&&t("div",Object.assign({className:`plan-bottom-information\n\t\t\t\t\t${w?"disabled":""}\n\t\t\t\t\t${S?"selected":""}\n\t\t\t\t`},{children:t(l,Object.assign({className:"text",style:{color:y.background.inverse}},{children:H}))}))]}))};export{j as NewSubscriptionPlan};
@@ -1,13 +0,0 @@
1
- import { FunctionComponent } from 'react';
2
- import { NewSubscriptionPlanProps } from './NewSubscriptionPlan';
3
- type Props = {
4
- plans: NewSubscriptionPlanProps[];
5
- onPlanSelect: (code: string) => void;
6
- onClickShowAllFeatures?: () => void;
7
- showTrialOptions?: boolean;
8
- staticWidth?: string;
9
- selectedTab?: 'monthly' | 'annually';
10
- selectedPlan?: string;
11
- };
12
- export declare const SubscriptionPlansCollected: FunctionComponent<Props>;
13
- export {};
@@ -1,6 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{useState as t,createElement as l}from"react";import o from"styled-components";import{NewSubscriptionPlan as n}from"./NewSubscriptionPlan.js";const s=o.div`
2
- display: flex;
3
- column-gap: 22px;
4
- align-items: stretch;
5
- overflow-x: auto;
6
- `,i=o=>{var i;const[a,r]=t(null!==(i=o.selectedPlan)&&void 0!==i?i:"");return e(s,Object.assign({style:{padding:"28px 0px"}},{children:o.plans.map(((t,s)=>{var i,c;return e("div",Object.assign({style:{width:null!==(i=o.staticWidth)&&void 0!==i?i:308}},{children:l(n,Object.assign({},t,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==o.selectedTab)&&void 0!==c&&c,showTrialOptions:o.showTrialOptions||!1,onPlanSelect:e=>{o.onPlanSelect(e),r(e)},key:t.planName,isPlanSelected:a==("monthly"==o.selectedTab?t.code:t.yearlyCode),onClickShowAllFeatures:o.onClickShowAllFeatures}))}),s)}))}))};export{i as SubscriptionPlansCollected};