@sikka/hawa 0.24.7-next → 0.24.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.
@@ -2449,8 +2449,10 @@ var Radio = ({
2449
2449
  width = "default",
2450
2450
  size = "default",
2451
2451
  orientation = "horizontal",
2452
+ name,
2452
2453
  labelProps,
2453
2454
  tabsContainerClassName,
2455
+ onChange,
2454
2456
  ...props
2455
2457
  }) => {
2456
2458
  var _a, _b, _c;
@@ -2484,6 +2486,14 @@ var Radio = ({
2484
2486
  setParentDirection(dir);
2485
2487
  }
2486
2488
  });
2489
+ const handleChange = (opt) => {
2490
+ setSelectedOption(opt.value);
2491
+ if (onChange) {
2492
+ onChange(opt.value);
2493
+ } else {
2494
+ console.log("onChange was not provided");
2495
+ }
2496
+ };
2487
2497
  switch (design) {
2488
2498
  case "tabs":
2489
2499
  return /* @__PURE__ */ React9.createElement(
@@ -2502,14 +2512,7 @@ var Radio = ({
2502
2512
  "li",
2503
2513
  {
2504
2514
  "aria-current": "page",
2505
- onClick: () => {
2506
- setSelectedOption(opt.value);
2507
- if (props.onChangeTab) {
2508
- props.onChangeTab(opt);
2509
- } else {
2510
- console.log("onChangeTab was not provided");
2511
- }
2512
- },
2515
+ onClick: () => handleChange(opt),
2513
2516
  className: cn(
2514
2517
  "hawa-w-full hawa-cursor-pointer ",
2515
2518
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -2548,7 +2551,8 @@ var Radio = ({
2548
2551
  id: opt.value.toString(),
2549
2552
  type: "radio",
2550
2553
  value: opt.value,
2551
- name: "bordered-radio"
2554
+ name,
2555
+ onChange: () => handleChange(opt)
2552
2556
  }
2553
2557
  ),
2554
2558
  /* @__PURE__ */ React9.createElement(
@@ -2565,12 +2569,12 @@ var Radio = ({
2565
2569
  )
2566
2570
  )));
2567
2571
  case "cards":
2568
- return /* @__PURE__ */ React9.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React9.createElement("li", { key: o }, /* @__PURE__ */ React9.createElement(
2572
+ return /* @__PURE__ */ React9.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React9.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React9.createElement(
2569
2573
  "input",
2570
2574
  {
2571
2575
  type: "radio",
2572
2576
  id: opt.value.toString(),
2573
- name: "cards-radio",
2577
+ name,
2574
2578
  value: opt.value.toString(),
2575
2579
  className: "hawa-peer hawa-hidden",
2576
2580
  required: true,
@@ -2604,15 +2608,8 @@ var Radio = ({
2604
2608
  id: opt.value.toString(),
2605
2609
  type: "radio",
2606
2610
  value: opt.value,
2607
- name: "default-radio",
2608
- onChange: () => {
2609
- setSelectedOption(opt.value);
2610
- if (props.onChangeTab) {
2611
- props.onChangeTab(opt);
2612
- } else {
2613
- console.log("onChangeTab was not provided");
2614
- }
2615
- }
2611
+ name,
2612
+ onChange: () => handleChange(opt)
2616
2613
  }
2617
2614
  ),
2618
2615
  /* @__PURE__ */ React9.createElement(
@@ -10,8 +10,10 @@ var Radio = ({
10
10
  width = "default",
11
11
  size = "default",
12
12
  orientation = "horizontal",
13
+ name,
13
14
  labelProps,
14
15
  tabsContainerClassName,
16
+ onChange,
15
17
  ...props
16
18
  }) => {
17
19
  var _a, _b, _c;
@@ -45,6 +47,14 @@ var Radio = ({
45
47
  setParentDirection(dir);
46
48
  }
47
49
  });
50
+ const handleChange = (opt) => {
51
+ setSelectedOption(opt.value);
52
+ if (onChange) {
53
+ onChange(opt.value);
54
+ } else {
55
+ console.log("onChange was not provided");
56
+ }
57
+ };
48
58
  switch (design) {
49
59
  case "tabs":
50
60
  return /* @__PURE__ */ React.createElement(
@@ -63,14 +73,7 @@ var Radio = ({
63
73
  "li",
64
74
  {
65
75
  "aria-current": "page",
66
- onClick: () => {
67
- setSelectedOption(opt.value);
68
- if (props.onChangeTab) {
69
- props.onChangeTab(opt);
70
- } else {
71
- console.log("onChangeTab was not provided");
72
- }
73
- },
76
+ onClick: () => handleChange(opt),
74
77
  className: cn(
75
78
  "hawa-w-full hawa-cursor-pointer ",
76
79
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -109,7 +112,8 @@ var Radio = ({
109
112
  id: opt.value.toString(),
110
113
  type: "radio",
111
114
  value: opt.value,
112
- name: "bordered-radio"
115
+ name,
116
+ onChange: () => handleChange(opt)
113
117
  }
114
118
  ),
115
119
  /* @__PURE__ */ React.createElement(
@@ -126,12 +130,12 @@ var Radio = ({
126
130
  )
127
131
  )));
128
132
  case "cards":
129
- return /* @__PURE__ */ React.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React.createElement("li", { key: o }, /* @__PURE__ */ React.createElement(
133
+ return /* @__PURE__ */ React.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React.createElement(
130
134
  "input",
131
135
  {
132
136
  type: "radio",
133
137
  id: opt.value.toString(),
134
- name: "cards-radio",
138
+ name,
135
139
  value: opt.value.toString(),
136
140
  className: "hawa-peer hawa-hidden",
137
141
  required: true,
@@ -165,15 +169,8 @@ var Radio = ({
165
169
  id: opt.value.toString(),
166
170
  type: "radio",
167
171
  value: opt.value,
168
- name: "default-radio",
169
- onChange: () => {
170
- setSelectedOption(opt.value);
171
- if (props.onChangeTab) {
172
- props.onChangeTab(opt);
173
- } else {
174
- console.log("onChangeTab was not provided");
175
- }
176
- }
172
+ name,
173
+ onChange: () => handleChange(opt)
177
174
  }
178
175
  ),
179
176
  /* @__PURE__ */ React.createElement(
@@ -12,8 +12,8 @@ import * as SheetPrimitive from '@radix-ui/react-dialog';
12
12
  import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
14
  import { RowData, ColumnDef } from '@tanstack/react-table';
15
- import { L as LabelProps } from '../Radio-5ZANA8Vh.mjs';
16
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-5ZANA8Vh.mjs';
15
+ import { L as LabelProps } from '../Radio-hsrLKNxE.mjs';
16
+ export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-hsrLKNxE.mjs';
17
17
  import * as TabsPrimitive from '@radix-ui/react-tabs';
18
18
  import * as PopoverPrimitive from '@radix-ui/react-popover';
19
19
  import * as SwitchPrimitives from '@radix-ui/react-switch';
@@ -12,8 +12,8 @@ import * as SheetPrimitive from '@radix-ui/react-dialog';
12
12
  import { DialogProps } from '@radix-ui/react-dialog';
13
13
  import { VariantProps } from 'class-variance-authority';
14
14
  import { RowData, ColumnDef } from '@tanstack/react-table';
15
- import { L as LabelProps } from '../Radio-2ZwcMDWt.js';
16
- export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-2ZwcMDWt.js';
15
+ import { L as LabelProps } from '../Radio-K1WGpnGA.js';
16
+ export { b as Label, a as Radio, R as RadioOptionsTypes, c as Select, S as SelectOptionProps } from '../Radio-K1WGpnGA.js';
17
17
  import * as TabsPrimitive from '@radix-ui/react-tabs';
18
18
  import * as PopoverPrimitive from '@radix-ui/react-popover';
19
19
  import * as SwitchPrimitives from '@radix-ui/react-switch';
@@ -2889,8 +2889,10 @@ var Radio = ({
2889
2889
  width = "default",
2890
2890
  size = "default",
2891
2891
  orientation = "horizontal",
2892
+ name,
2892
2893
  labelProps,
2893
2894
  tabsContainerClassName,
2895
+ onChange,
2894
2896
  ...props
2895
2897
  }) => {
2896
2898
  var _a, _b, _c;
@@ -2924,6 +2926,14 @@ var Radio = ({
2924
2926
  setParentDirection(dir);
2925
2927
  }
2926
2928
  });
2929
+ const handleChange = (opt) => {
2930
+ setSelectedOption(opt.value);
2931
+ if (onChange) {
2932
+ onChange(opt.value);
2933
+ } else {
2934
+ console.log("onChange was not provided");
2935
+ }
2936
+ };
2927
2937
  switch (design) {
2928
2938
  case "tabs":
2929
2939
  return /* @__PURE__ */ import_react11.default.createElement(
@@ -2942,14 +2952,7 @@ var Radio = ({
2942
2952
  "li",
2943
2953
  {
2944
2954
  "aria-current": "page",
2945
- onClick: () => {
2946
- setSelectedOption(opt.value);
2947
- if (props.onChangeTab) {
2948
- props.onChangeTab(opt);
2949
- } else {
2950
- console.log("onChangeTab was not provided");
2951
- }
2952
- },
2955
+ onClick: () => handleChange(opt),
2953
2956
  className: cn(
2954
2957
  "hawa-w-full hawa-cursor-pointer ",
2955
2958
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -2988,7 +2991,8 @@ var Radio = ({
2988
2991
  id: opt.value.toString(),
2989
2992
  type: "radio",
2990
2993
  value: opt.value,
2991
- name: "bordered-radio"
2994
+ name,
2995
+ onChange: () => handleChange(opt)
2992
2996
  }
2993
2997
  ),
2994
2998
  /* @__PURE__ */ import_react11.default.createElement(
@@ -3005,12 +3009,12 @@ var Radio = ({
3005
3009
  )
3006
3010
  )));
3007
3011
  case "cards":
3008
- return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o }, /* @__PURE__ */ import_react11.default.createElement(
3012
+ return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3009
3013
  "input",
3010
3014
  {
3011
3015
  type: "radio",
3012
3016
  id: opt.value.toString(),
3013
- name: "cards-radio",
3017
+ name,
3014
3018
  value: opt.value.toString(),
3015
3019
  className: "hawa-peer hawa-hidden",
3016
3020
  required: true,
@@ -3044,15 +3048,8 @@ var Radio = ({
3044
3048
  id: opt.value.toString(),
3045
3049
  type: "radio",
3046
3050
  value: opt.value,
3047
- name: "default-radio",
3048
- onChange: () => {
3049
- setSelectedOption(opt.value);
3050
- if (props.onChangeTab) {
3051
- props.onChangeTab(opt);
3052
- } else {
3053
- console.log("onChangeTab was not provided");
3054
- }
3055
- }
3051
+ name,
3052
+ onChange: () => handleChange(opt)
3056
3053
  }
3057
3054
  ),
3058
3055
  /* @__PURE__ */ import_react11.default.createElement(
@@ -7550,7 +7547,7 @@ var InterfaceSettings = ({
7550
7547
  {
7551
7548
  width,
7552
7549
  defaultValue: language,
7553
- onChangeTab: (e) => {
7550
+ onChange: (e) => {
7554
7551
  if (handleLanguage) {
7555
7552
  handleLanguage(e.value);
7556
7553
  }
@@ -7567,7 +7564,7 @@ var InterfaceSettings = ({
7567
7564
  {
7568
7565
  width,
7569
7566
  defaultValue: color,
7570
- onChangeTab: (e) => {
7567
+ onChange: (e) => {
7571
7568
  if (handleColorMode) {
7572
7569
  handleColorMode(e.value);
7573
7570
  }
@@ -28,7 +28,7 @@ import {
28
28
  TabsTrigger,
29
29
  Textarea,
30
30
  UncheckMark
31
- } from "../chunk-O4FANSN5.mjs";
31
+ } from "../chunk-2VDIM3CP.mjs";
32
32
  import {
33
33
  Sheet,
34
34
  SheetClose,
@@ -3167,7 +3167,7 @@ var InterfaceSettings = ({
3167
3167
  {
3168
3168
  width,
3169
3169
  defaultValue: language,
3170
- onChangeTab: (e) => {
3170
+ onChange: (e) => {
3171
3171
  if (handleLanguage) {
3172
3172
  handleLanguage(e.value);
3173
3173
  }
@@ -3184,7 +3184,7 @@ var InterfaceSettings = ({
3184
3184
  {
3185
3185
  width,
3186
3186
  defaultValue: color,
3187
- onChangeTab: (e) => {
3187
+ onChange: (e) => {
3188
3188
  if (handleColorMode) {
3189
3189
  handleColorMode(e.value);
3190
3190
  }
package/dist/index.d.mts CHANGED
@@ -480,8 +480,9 @@ type RadioTypes = {
480
480
  design?: "default" | "tabs" | "cards" | "bordered";
481
481
  width?: "default" | "full" | "none";
482
482
  size?: "default" | "lg" | "sm" | "xs";
483
+ name?: string;
483
484
  options: RadioOptionsTypes[];
484
- onChangeTab?: any;
485
+ onChange?: any;
485
486
  defaultValue?: any;
486
487
  direction?: DirectionType;
487
488
  helperText?: string;
package/dist/index.d.ts CHANGED
@@ -480,8 +480,9 @@ type RadioTypes = {
480
480
  design?: "default" | "tabs" | "cards" | "bordered";
481
481
  width?: "default" | "full" | "none";
482
482
  size?: "default" | "lg" | "sm" | "xs";
483
+ name?: string;
483
484
  options: RadioOptionsTypes[];
484
- onChangeTab?: any;
485
+ onChange?: any;
485
486
  defaultValue?: any;
486
487
  direction?: DirectionType;
487
488
  helperText?: string;
package/dist/index.js CHANGED
@@ -2955,8 +2955,10 @@ var Radio = ({
2955
2955
  width = "default",
2956
2956
  size = "default",
2957
2957
  orientation = "horizontal",
2958
+ name,
2958
2959
  labelProps,
2959
2960
  tabsContainerClassName,
2961
+ onChange,
2960
2962
  ...props
2961
2963
  }) => {
2962
2964
  var _a, _b, _c;
@@ -2990,6 +2992,14 @@ var Radio = ({
2990
2992
  setParentDirection(dir);
2991
2993
  }
2992
2994
  });
2995
+ const handleChange = (opt) => {
2996
+ setSelectedOption(opt.value);
2997
+ if (onChange) {
2998
+ onChange(opt.value);
2999
+ } else {
3000
+ console.log("onChange was not provided");
3001
+ }
3002
+ };
2993
3003
  switch (design) {
2994
3004
  case "tabs":
2995
3005
  return /* @__PURE__ */ import_react11.default.createElement(
@@ -3008,14 +3018,7 @@ var Radio = ({
3008
3018
  "li",
3009
3019
  {
3010
3020
  "aria-current": "page",
3011
- onClick: () => {
3012
- setSelectedOption(opt.value);
3013
- if (props.onChangeTab) {
3014
- props.onChangeTab(opt);
3015
- } else {
3016
- console.log("onChangeTab was not provided");
3017
- }
3018
- },
3021
+ onClick: () => handleChange(opt),
3019
3022
  className: cn(
3020
3023
  "hawa-w-full hawa-cursor-pointer ",
3021
3024
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -3054,7 +3057,8 @@ var Radio = ({
3054
3057
  id: opt.value.toString(),
3055
3058
  type: "radio",
3056
3059
  value: opt.value,
3057
- name: "bordered-radio"
3060
+ name,
3061
+ onChange: () => handleChange(opt)
3058
3062
  }
3059
3063
  ),
3060
3064
  /* @__PURE__ */ import_react11.default.createElement(
@@ -3071,12 +3075,12 @@ var Radio = ({
3071
3075
  )
3072
3076
  )));
3073
3077
  case "cards":
3074
- return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o }, /* @__PURE__ */ import_react11.default.createElement(
3078
+ return /* @__PURE__ */ import_react11.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react11.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react11.default.createElement(
3075
3079
  "input",
3076
3080
  {
3077
3081
  type: "radio",
3078
3082
  id: opt.value.toString(),
3079
- name: "cards-radio",
3083
+ name,
3080
3084
  value: opt.value.toString(),
3081
3085
  className: "hawa-peer hawa-hidden",
3082
3086
  required: true,
@@ -3110,15 +3114,8 @@ var Radio = ({
3110
3114
  id: opt.value.toString(),
3111
3115
  type: "radio",
3112
3116
  value: opt.value,
3113
- name: "default-radio",
3114
- onChange: () => {
3115
- setSelectedOption(opt.value);
3116
- if (props.onChangeTab) {
3117
- props.onChangeTab(opt);
3118
- } else {
3119
- console.log("onChangeTab was not provided");
3120
- }
3121
- }
3117
+ name,
3118
+ onChange: () => handleChange(opt)
3122
3119
  }
3123
3120
  ),
3124
3121
  /* @__PURE__ */ import_react11.default.createElement(
@@ -7706,7 +7703,7 @@ var InterfaceSettings = ({
7706
7703
  {
7707
7704
  width,
7708
7705
  defaultValue: language,
7709
- onChangeTab: (e) => {
7706
+ onChange: (e) => {
7710
7707
  if (handleLanguage) {
7711
7708
  handleLanguage(e.value);
7712
7709
  }
@@ -7723,7 +7720,7 @@ var InterfaceSettings = ({
7723
7720
  {
7724
7721
  width,
7725
7722
  defaultValue: color,
7726
- onChangeTab: (e) => {
7723
+ onChange: (e) => {
7727
7724
  if (handleColorMode) {
7728
7725
  handleColorMode(e.value);
7729
7726
  }
@@ -10279,7 +10276,7 @@ var UserReferralSource = ({
10279
10276
  orientation: "vertical",
10280
10277
  options: optionsWithOther,
10281
10278
  defaultValue: field.value,
10282
- onChangeTab: (e) => field.onChange(e.value),
10279
+ onChange: (e) => field.onChange(e.value),
10283
10280
  helperText: (_b2 = (_a2 = formState.errors.source) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()
10284
10281
  }
10285
10282
  );
@@ -11071,6 +11068,7 @@ var PricingCard = ({
11071
11068
  )
11072
11069
  },
11073
11070
  props.features && /* @__PURE__ */ import_react67.default.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
11071
+ var _a2;
11074
11072
  return /* @__PURE__ */ import_react67.default.createElement(
11075
11073
  "li",
11076
11074
  {
@@ -11097,7 +11095,14 @@ var PricingCard = ({
11097
11095
  clipRule: "evenodd"
11098
11096
  }
11099
11097
  )
11100
- ) : /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react67.default.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
11098
+ ) : /* @__PURE__ */ import_react67.default.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ import_react67.default.createElement("span", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap hawa-text-start hawa-font-normal hawa-leading-tight hawa-text-primary/70 " }, feature.text, " ", feature.soon && feature.included && /* @__PURE__ */ import_react67.default.createElement(
11099
+ Chip,
11100
+ {
11101
+ label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
11102
+ color: "oceanic",
11103
+ size: "small"
11104
+ }
11105
+ ))),
11101
11106
  feature.hint && /* @__PURE__ */ import_react67.default.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ import_react67.default.createElement(
11102
11107
  "svg",
11103
11108
  {
@@ -11264,7 +11269,7 @@ var PricingPlans = ({
11264
11269
  design: "tabs",
11265
11270
  defaultValue: props.currentCycle.value,
11266
11271
  options: props.billingCycles,
11267
- onChangeTab: (e) => {
11272
+ onChange: (e) => {
11268
11273
  if (props.onCycleChange) {
11269
11274
  props.onCycleChange(e);
11270
11275
  }
@@ -11276,7 +11281,7 @@ var PricingPlans = ({
11276
11281
  design: "tabs",
11277
11282
  defaultValue: props.currentCurrency.value,
11278
11283
  options: props.currencies,
11279
- onChangeTab: (e) => {
11284
+ onChange: (e) => {
11280
11285
  if (props.onCurrencyChange) {
11281
11286
  props.onCurrencyChange(e);
11282
11287
  }
@@ -11337,7 +11342,7 @@ var ComparingPlans = (props) => {
11337
11342
  design: "tabs",
11338
11343
  defaultValue: props.currentCycle.value,
11339
11344
  options: props.billingCycles,
11340
- onChangeTab: (e) => {
11345
+ onChange: (e) => {
11341
11346
  if (props.onCycleChange) {
11342
11347
  props.onCycleChange(e);
11343
11348
  }
@@ -11351,7 +11356,7 @@ var ComparingPlans = (props) => {
11351
11356
  design: "tabs",
11352
11357
  defaultValue: props.currentCurrency.value,
11353
11358
  options: props.currencies,
11354
- onChangeTab: (e) => {
11359
+ onChange: (e) => {
11355
11360
  if (props.onCurrencyChange) {
11356
11361
  props.onCurrencyChange(e);
11357
11362
  }