@sikka/hawa 0.0.210 → 0.0.211

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.210",
3
+ "version": "0.0.211",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -30,6 +30,7 @@ type PricingPlansTypes = {
30
30
  value: string
31
31
  }
32
32
  ]
33
+ onPlanClicked?: (e) => void
33
34
  onCycleChange?: (e) => void
34
35
  onCurrencyChange?: (e) => void
35
36
  direction?: "rtl" | "ltr"
@@ -67,6 +68,7 @@ export const PricingPlans: React.FunctionComponent<PricingPlansTypes> = (
67
68
  {props.plans.map((plan: any) => {
68
69
  return (
69
70
  <HawaPricingCard
71
+ onPlanClicked={() => props.onPlanClicked(plan)}
70
72
  {...plan}
71
73
  texts={{
72
74
  ...plan.texts,
@@ -16,6 +16,7 @@ type PricingCardTypes = {
16
16
  cycleText: string
17
17
  currencyText: string
18
18
  }
19
+ onPlanClicked?: () => void
19
20
  currentPlan?: boolean
20
21
  size: "small" | "medium" | "large"
21
22
  }
@@ -100,7 +101,12 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = ({
100
101
  >
101
102
  {props.texts.buttonText}
102
103
  </button> */}
103
- <HawaButton margins="none" disabled={currentPlan} width="full">
104
+ <HawaButton
105
+ onClick={props.onPlanClicked}
106
+ margins="none"
107
+ disabled={currentPlan}
108
+ width="full"
109
+ >
104
110
  {props.texts.buttonText}
105
111
  </HawaButton>
106
112
  </div>