@sikka/hawa 0.19.8-next → 0.19.10-next

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/dist/index.d.mts CHANGED
@@ -1672,13 +1672,13 @@ declare const NoPermission: FC<NoPermissionProps>;
1672
1672
  type PricingPlansTypes = {
1673
1673
  plans: {
1674
1674
  id: any;
1675
- direction: DirectionType;
1676
- features: [{
1675
+ direction?: DirectionType;
1676
+ features: {
1677
1677
  included: boolean;
1678
1678
  text: string;
1679
- }];
1679
+ }[];
1680
1680
  price: number;
1681
- size: "small" | "medium" | "large";
1681
+ size?: "small" | "medium" | "large";
1682
1682
  texts: {
1683
1683
  title: string;
1684
1684
  subtitle: string;
@@ -1695,7 +1695,6 @@ type PricingPlansTypes = {
1695
1695
  label: string;
1696
1696
  value: string;
1697
1697
  }[];
1698
- onPlanClicked?: (e: any) => void;
1699
1698
  currentCycle: {
1700
1699
  label: string;
1701
1700
  value: string;
@@ -1704,6 +1703,7 @@ type PricingPlansTypes = {
1704
1703
  label: string;
1705
1704
  value: string;
1706
1705
  };
1706
+ onPlanClicked?: (e: any) => void;
1707
1707
  onCycleChange?: (e: any) => void;
1708
1708
  onCurrencyChange?: (e: any) => void;
1709
1709
  direction?: DirectionType;
package/dist/index.d.ts CHANGED
@@ -1672,13 +1672,13 @@ declare const NoPermission: FC<NoPermissionProps>;
1672
1672
  type PricingPlansTypes = {
1673
1673
  plans: {
1674
1674
  id: any;
1675
- direction: DirectionType;
1676
- features: [{
1675
+ direction?: DirectionType;
1676
+ features: {
1677
1677
  included: boolean;
1678
1678
  text: string;
1679
- }];
1679
+ }[];
1680
1680
  price: number;
1681
- size: "small" | "medium" | "large";
1681
+ size?: "small" | "medium" | "large";
1682
1682
  texts: {
1683
1683
  title: string;
1684
1684
  subtitle: string;
@@ -1695,7 +1695,6 @@ type PricingPlansTypes = {
1695
1695
  label: string;
1696
1696
  value: string;
1697
1697
  }[];
1698
- onPlanClicked?: (e: any) => void;
1699
1698
  currentCycle: {
1700
1699
  label: string;
1701
1700
  value: string;
@@ -1704,6 +1703,7 @@ type PricingPlansTypes = {
1704
1703
  label: string;
1705
1704
  value: string;
1706
1705
  };
1706
+ onPlanClicked?: (e: any) => void;
1707
1707
  onCycleChange?: (e: any) => void;
1708
1708
  onCurrencyChange?: (e: any) => void;
1709
1709
  direction?: DirectionType;
package/dist/index.js CHANGED
@@ -10944,16 +10944,19 @@ var PricingPlans = (props) => {
10944
10944
  }
10945
10945
  }
10946
10946
  )), /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10947
+ var _a, _b;
10947
10948
  return /* @__PURE__ */ import_react67.default.createElement(
10948
10949
  PricingCard,
10949
10950
  {
10950
10951
  key: index,
10951
10952
  onPlanClicked: () => {
10953
+ var _a2, _b2;
10952
10954
  if (props.onPlanClicked) {
10953
10955
  let clickedData = {
10954
- plan: plan.id,
10955
- currency: props.currentCurrency,
10956
- cycle: props.currentCycle
10956
+ // plan: plan.id,
10957
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10958
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10959
+ ...plan
10957
10960
  };
10958
10961
  props.onPlanClicked(clickedData);
10959
10962
  }
@@ -10961,8 +10964,8 @@ var PricingPlans = (props) => {
10961
10964
  ...plan,
10962
10965
  texts: {
10963
10966
  ...plan.texts,
10964
- currencyText: props.currentCurrency,
10965
- cycleText: props.currentCycle
10967
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10968
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10966
10969
  }
10967
10970
  }
10968
10971
  );
package/dist/index.mjs CHANGED
@@ -10728,16 +10728,19 @@ var PricingPlans = (props) => {
10728
10728
  }
10729
10729
  }
10730
10730
  )), /* @__PURE__ */ React94.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, props.plans.map((plan, index) => {
10731
+ var _a, _b;
10731
10732
  return /* @__PURE__ */ React94.createElement(
10732
10733
  PricingCard,
10733
10734
  {
10734
10735
  key: index,
10735
10736
  onPlanClicked: () => {
10737
+ var _a2, _b2;
10736
10738
  if (props.onPlanClicked) {
10737
10739
  let clickedData = {
10738
- plan: plan.id,
10739
- currency: props.currentCurrency,
10740
- cycle: props.currentCycle
10740
+ // plan: plan.id,
10741
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10742
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10743
+ ...plan
10741
10744
  };
10742
10745
  props.onPlanClicked(clickedData);
10743
10746
  }
@@ -10745,8 +10748,8 @@ var PricingPlans = (props) => {
10745
10748
  ...plan,
10746
10749
  texts: {
10747
10750
  ...plan.texts,
10748
- currencyText: props.currentCurrency,
10749
- cycleText: props.currentCycle
10751
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10752
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10750
10753
  }
10751
10754
  }
10752
10755
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.8-next",
3
+ "version": "0.19.10-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",