@sikka/hawa 0.7.11 → 0.7.12-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
@@ -1200,36 +1200,31 @@ type TNoPermission = {
1200
1200
  declare const NoPermission: FC<TNoPermission>;
1201
1201
 
1202
1202
  type PricingPlansTypes = {
1203
- plans: [
1204
- {
1205
- direction: "rtl" | "ltr";
1206
- features: [{
1207
- included: boolean;
1208
- text: string;
1209
- }];
1210
- price: number;
1211
- texts: {
1212
- title: string;
1213
- subtitle: string;
1214
- buttonText: string;
1215
- cycleText: string;
1216
- currencyText: string;
1217
- };
1218
- size: "small" | "medium" | "large";
1219
- }
1220
- ];
1221
- currencies: [
1222
- {
1223
- label: string;
1224
- value: string;
1225
- }
1226
- ];
1227
- billingCycles: [
1228
- {
1229
- label: string;
1230
- value: string;
1231
- }
1232
- ];
1203
+ plans: {
1204
+ id: any;
1205
+ direction: "rtl" | "ltr";
1206
+ features: [{
1207
+ included: boolean;
1208
+ text: string;
1209
+ }];
1210
+ price: number;
1211
+ size: "small" | "medium" | "large";
1212
+ texts: {
1213
+ title: string;
1214
+ subtitle: string;
1215
+ buttonText: string;
1216
+ cycleText: string;
1217
+ currencyText: string;
1218
+ };
1219
+ }[];
1220
+ currencies: {
1221
+ label: string;
1222
+ value: string;
1223
+ }[];
1224
+ billingCycles: {
1225
+ label: string;
1226
+ value: string;
1227
+ }[];
1233
1228
  onPlanClicked?: (e: any) => void;
1234
1229
  currentCycle: {
1235
1230
  label: string;
package/dist/index.d.ts CHANGED
@@ -1200,36 +1200,31 @@ type TNoPermission = {
1200
1200
  declare const NoPermission: FC<TNoPermission>;
1201
1201
 
1202
1202
  type PricingPlansTypes = {
1203
- plans: [
1204
- {
1205
- direction: "rtl" | "ltr";
1206
- features: [{
1207
- included: boolean;
1208
- text: string;
1209
- }];
1210
- price: number;
1211
- texts: {
1212
- title: string;
1213
- subtitle: string;
1214
- buttonText: string;
1215
- cycleText: string;
1216
- currencyText: string;
1217
- };
1218
- size: "small" | "medium" | "large";
1219
- }
1220
- ];
1221
- currencies: [
1222
- {
1223
- label: string;
1224
- value: string;
1225
- }
1226
- ];
1227
- billingCycles: [
1228
- {
1229
- label: string;
1230
- value: string;
1231
- }
1232
- ];
1203
+ plans: {
1204
+ id: any;
1205
+ direction: "rtl" | "ltr";
1206
+ features: [{
1207
+ included: boolean;
1208
+ text: string;
1209
+ }];
1210
+ price: number;
1211
+ size: "small" | "medium" | "large";
1212
+ texts: {
1213
+ title: string;
1214
+ subtitle: string;
1215
+ buttonText: string;
1216
+ cycleText: string;
1217
+ currencyText: string;
1218
+ };
1219
+ }[];
1220
+ currencies: {
1221
+ label: string;
1222
+ value: string;
1223
+ }[];
1224
+ billingCycles: {
1225
+ label: string;
1226
+ value: string;
1227
+ }[];
1233
1228
  onPlanClicked?: (e: any) => void;
1234
1229
  currentCycle: {
1235
1230
  label: string;
package/dist/index.js CHANGED
@@ -8101,7 +8101,12 @@ var PricingPlans = function(props) {
8101
8101
  key: index,
8102
8102
  onPlanClicked: function() {
8103
8103
  if (props.onPlanClicked) {
8104
- props.onPlanClicked(plan);
8104
+ var clickedData = {
8105
+ plan: plan.id,
8106
+ currency: props.currentCurrency,
8107
+ cycle: props.currentCycle
8108
+ };
8109
+ props.onPlanClicked(clickedData);
8105
8110
  }
8106
8111
  }
8107
8112
  }, plan), {
package/dist/index.mjs CHANGED
@@ -7924,7 +7924,12 @@ var PricingPlans = (props) => {
7924
7924
  key: index,
7925
7925
  onPlanClicked: () => {
7926
7926
  if (props.onPlanClicked) {
7927
- props.onPlanClicked(plan);
7927
+ let clickedData = {
7928
+ plan: plan.id,
7929
+ currency: props.currentCurrency,
7930
+ cycle: props.currentCycle
7931
+ };
7932
+ props.onPlanClicked(clickedData);
7928
7933
  }
7929
7934
  },
7930
7935
  ...plan,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.7.11",
3
+ "version": "0.7.12-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -83,4 +83,4 @@
83
83
  "tailwindcss-animate": "^1.0.7",
84
84
  "tsup": "^7.2.0"
85
85
  }
86
- }
86
+ }