@sikka/hawa 0.19.9-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;
1675
+ direction?: DirectionType;
1676
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;
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;
1675
+ direction?: DirectionType;
1676
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;
package/dist/index.js CHANGED
@@ -10944,16 +10944,18 @@ 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
10956
  // plan: plan.id,
10955
- currency: props.currentCurrency,
10956
- cycle: props.currentCycle,
10957
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10958
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10957
10959
  ...plan
10958
10960
  };
10959
10961
  props.onPlanClicked(clickedData);
@@ -10962,8 +10964,8 @@ var PricingPlans = (props) => {
10962
10964
  ...plan,
10963
10965
  texts: {
10964
10966
  ...plan.texts,
10965
- currencyText: props.currentCurrency,
10966
- cycleText: props.currentCycle
10967
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10968
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10967
10969
  }
10968
10970
  }
10969
10971
  );
package/dist/index.mjs CHANGED
@@ -10728,16 +10728,18 @@ 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
10740
  // plan: plan.id,
10739
- currency: props.currentCurrency,
10740
- cycle: props.currentCycle,
10741
+ currency: (_a2 = props.currentCurrency) == null ? void 0 : _a2.value,
10742
+ cycle: (_b2 = props.currentCycle) == null ? void 0 : _b2.value,
10741
10743
  ...plan
10742
10744
  };
10743
10745
  props.onPlanClicked(clickedData);
@@ -10746,8 +10748,8 @@ var PricingPlans = (props) => {
10746
10748
  ...plan,
10747
10749
  texts: {
10748
10750
  ...plan.texts,
10749
- currencyText: props.currentCurrency,
10750
- cycleText: props.currentCycle
10751
+ currencyText: (_a = props.currentCurrency) == null ? void 0 : _a.label,
10752
+ cycleText: (_b = props.currentCycle) == null ? void 0 : _b.label
10751
10753
  }
10752
10754
  }
10753
10755
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.19.9-next",
3
+ "version": "0.19.10-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",