@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.
package/dist/index.mjs CHANGED
@@ -2722,8 +2722,10 @@ var Radio = ({
2722
2722
  width = "default",
2723
2723
  size = "default",
2724
2724
  orientation = "horizontal",
2725
+ name,
2725
2726
  labelProps,
2726
2727
  tabsContainerClassName,
2728
+ onChange,
2727
2729
  ...props
2728
2730
  }) => {
2729
2731
  var _a, _b, _c;
@@ -2757,6 +2759,14 @@ var Radio = ({
2757
2759
  setParentDirection(dir);
2758
2760
  }
2759
2761
  });
2762
+ const handleChange = (opt) => {
2763
+ setSelectedOption(opt.value);
2764
+ if (onChange) {
2765
+ onChange(opt.value);
2766
+ } else {
2767
+ console.log("onChange was not provided");
2768
+ }
2769
+ };
2760
2770
  switch (design) {
2761
2771
  case "tabs":
2762
2772
  return /* @__PURE__ */ React24.createElement(
@@ -2775,14 +2785,7 @@ var Radio = ({
2775
2785
  "li",
2776
2786
  {
2777
2787
  "aria-current": "page",
2778
- onClick: () => {
2779
- setSelectedOption(opt.value);
2780
- if (props.onChangeTab) {
2781
- props.onChangeTab(opt);
2782
- } else {
2783
- console.log("onChangeTab was not provided");
2784
- }
2785
- },
2788
+ onClick: () => handleChange(opt),
2786
2789
  className: cn(
2787
2790
  "hawa-w-full hawa-cursor-pointer ",
2788
2791
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -2821,7 +2824,8 @@ var Radio = ({
2821
2824
  id: opt.value.toString(),
2822
2825
  type: "radio",
2823
2826
  value: opt.value,
2824
- name: "bordered-radio"
2827
+ name,
2828
+ onChange: () => handleChange(opt)
2825
2829
  }
2826
2830
  ),
2827
2831
  /* @__PURE__ */ React24.createElement(
@@ -2838,12 +2842,12 @@ var Radio = ({
2838
2842
  )
2839
2843
  )));
2840
2844
  case "cards":
2841
- return /* @__PURE__ */ React24.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React24.createElement("li", { key: o }, /* @__PURE__ */ React24.createElement(
2845
+ return /* @__PURE__ */ React24.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React24.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React24.createElement(
2842
2846
  "input",
2843
2847
  {
2844
2848
  type: "radio",
2845
2849
  id: opt.value.toString(),
2846
- name: "cards-radio",
2850
+ name,
2847
2851
  value: opt.value.toString(),
2848
2852
  className: "hawa-peer hawa-hidden",
2849
2853
  required: true,
@@ -2877,15 +2881,8 @@ var Radio = ({
2877
2881
  id: opt.value.toString(),
2878
2882
  type: "radio",
2879
2883
  value: opt.value,
2880
- name: "default-radio",
2881
- onChange: () => {
2882
- setSelectedOption(opt.value);
2883
- if (props.onChangeTab) {
2884
- props.onChangeTab(opt);
2885
- } else {
2886
- console.log("onChangeTab was not provided");
2887
- }
2888
- }
2884
+ name,
2885
+ onChange: () => handleChange(opt)
2889
2886
  }
2890
2887
  ),
2891
2888
  /* @__PURE__ */ React24.createElement(
@@ -7480,7 +7477,7 @@ var InterfaceSettings = ({
7480
7477
  {
7481
7478
  width,
7482
7479
  defaultValue: language,
7483
- onChangeTab: (e) => {
7480
+ onChange: (e) => {
7484
7481
  if (handleLanguage) {
7485
7482
  handleLanguage(e.value);
7486
7483
  }
@@ -7497,7 +7494,7 @@ var InterfaceSettings = ({
7497
7494
  {
7498
7495
  width,
7499
7496
  defaultValue: color,
7500
- onChangeTab: (e) => {
7497
+ onChange: (e) => {
7501
7498
  if (handleColorMode) {
7502
7499
  handleColorMode(e.value);
7503
7500
  }
@@ -10053,7 +10050,7 @@ var UserReferralSource = ({
10053
10050
  orientation: "vertical",
10054
10051
  options: optionsWithOther,
10055
10052
  defaultValue: field.value,
10056
- onChangeTab: (e) => field.onChange(e.value),
10053
+ onChange: (e) => field.onChange(e.value),
10057
10054
  helperText: (_b2 = (_a2 = formState.errors.source) == null ? void 0 : _a2.message) == null ? void 0 : _b2.toString()
10058
10055
  }
10059
10056
  );
@@ -10845,6 +10842,7 @@ var PricingCard = ({
10845
10842
  )
10846
10843
  },
10847
10844
  props.features && /* @__PURE__ */ React95.createElement("ul", { role: "list", className: "hawa-space-y-0 hawa-overflow-x-auto" }, (_h = props.features) == null ? void 0 : _h.map((feature, o) => {
10845
+ var _a2;
10848
10846
  return /* @__PURE__ */ React95.createElement(
10849
10847
  "li",
10850
10848
  {
@@ -10871,7 +10869,14 @@ var PricingCard = ({
10871
10869
  clipRule: "evenodd"
10872
10870
  }
10873
10871
  )
10874
- ) : /* @__PURE__ */ React95.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React95.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__ */ React95.createElement(Chip, { label: "soon", color: "oceanic", size: "small" }))),
10872
+ ) : /* @__PURE__ */ React95.createElement("div", { className: "hawa-m-2 hawa-mx-2.5 hawa-h-4 hawa-w-4 hawa-rounded-full hawa-bg-primary/10" }), /* @__PURE__ */ React95.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__ */ React95.createElement(
10873
+ Chip,
10874
+ {
10875
+ label: ((_a2 = props.texts) == null ? void 0 : _a2.soon) || "",
10876
+ color: "oceanic",
10877
+ size: "small"
10878
+ }
10879
+ ))),
10875
10880
  feature.hint && /* @__PURE__ */ React95.createElement(Tooltip, { content: feature.hint, side: feature.hintSide }, /* @__PURE__ */ React95.createElement(
10876
10881
  "svg",
10877
10882
  {
@@ -11038,7 +11043,7 @@ var PricingPlans = ({
11038
11043
  design: "tabs",
11039
11044
  defaultValue: props.currentCycle.value,
11040
11045
  options: props.billingCycles,
11041
- onChangeTab: (e) => {
11046
+ onChange: (e) => {
11042
11047
  if (props.onCycleChange) {
11043
11048
  props.onCycleChange(e);
11044
11049
  }
@@ -11050,7 +11055,7 @@ var PricingPlans = ({
11050
11055
  design: "tabs",
11051
11056
  defaultValue: props.currentCurrency.value,
11052
11057
  options: props.currencies,
11053
- onChangeTab: (e) => {
11058
+ onChange: (e) => {
11054
11059
  if (props.onCurrencyChange) {
11055
11060
  props.onCurrencyChange(e);
11056
11061
  }
@@ -11111,7 +11116,7 @@ var ComparingPlans = (props) => {
11111
11116
  design: "tabs",
11112
11117
  defaultValue: props.currentCycle.value,
11113
11118
  options: props.billingCycles,
11114
- onChangeTab: (e) => {
11119
+ onChange: (e) => {
11115
11120
  if (props.onCycleChange) {
11116
11121
  props.onCycleChange(e);
11117
11122
  }
@@ -11125,7 +11130,7 @@ var ComparingPlans = (props) => {
11125
11130
  design: "tabs",
11126
11131
  defaultValue: props.currentCurrency.value,
11127
11132
  options: props.currencies,
11128
- onChangeTab: (e) => {
11133
+ onChange: (e) => {
11129
11134
  if (props.onCurrencyChange) {
11130
11135
  props.onCurrencyChange(e);
11131
11136
  }
@@ -138,8 +138,10 @@ var Radio = ({
138
138
  width = "default",
139
139
  size = "default",
140
140
  orientation = "horizontal",
141
+ name,
141
142
  labelProps,
142
143
  tabsContainerClassName,
144
+ onChange,
143
145
  ...props
144
146
  }) => {
145
147
  var _a, _b, _c;
@@ -173,6 +175,14 @@ var Radio = ({
173
175
  setParentDirection(dir);
174
176
  }
175
177
  });
178
+ const handleChange = (opt) => {
179
+ setSelectedOption(opt.value);
180
+ if (onChange) {
181
+ onChange(opt.value);
182
+ } else {
183
+ console.log("onChange was not provided");
184
+ }
185
+ };
176
186
  switch (design) {
177
187
  case "tabs":
178
188
  return /* @__PURE__ */ import_react2.default.createElement(
@@ -191,14 +201,7 @@ var Radio = ({
191
201
  "li",
192
202
  {
193
203
  "aria-current": "page",
194
- onClick: () => {
195
- setSelectedOption(opt.value);
196
- if (props.onChangeTab) {
197
- props.onChangeTab(opt);
198
- } else {
199
- console.log("onChangeTab was not provided");
200
- }
201
- },
204
+ onClick: () => handleChange(opt),
202
205
  className: cn(
203
206
  "hawa-w-full hawa-cursor-pointer ",
204
207
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -237,7 +240,8 @@ var Radio = ({
237
240
  id: opt.value.toString(),
238
241
  type: "radio",
239
242
  value: opt.value,
240
- name: "bordered-radio"
243
+ name,
244
+ onChange: () => handleChange(opt)
241
245
  }
242
246
  ),
243
247
  /* @__PURE__ */ import_react2.default.createElement(
@@ -254,12 +258,12 @@ var Radio = ({
254
258
  )
255
259
  )));
256
260
  case "cards":
257
- return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o }, /* @__PURE__ */ import_react2.default.createElement(
261
+ return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react2.default.createElement(
258
262
  "input",
259
263
  {
260
264
  type: "radio",
261
265
  id: opt.value.toString(),
262
- name: "cards-radio",
266
+ name,
263
267
  value: opt.value.toString(),
264
268
  className: "hawa-peer hawa-hidden",
265
269
  required: true,
@@ -293,15 +297,8 @@ var Radio = ({
293
297
  id: opt.value.toString(),
294
298
  type: "radio",
295
299
  value: opt.value,
296
- name: "default-radio",
297
- onChange: () => {
298
- setSelectedOption(opt.value);
299
- if (props.onChangeTab) {
300
- props.onChangeTab(opt);
301
- } else {
302
- console.log("onChangeTab was not provided");
303
- }
304
- }
300
+ name,
301
+ onChange: () => handleChange(opt)
305
302
  }
306
303
  ),
307
304
  /* @__PURE__ */ import_react2.default.createElement(
@@ -347,7 +344,7 @@ var InterfaceSettings = ({
347
344
  {
348
345
  width,
349
346
  defaultValue: language,
350
- onChangeTab: (e) => {
347
+ onChange: (e) => {
351
348
  if (handleLanguage) {
352
349
  handleLanguage(e.value);
353
350
  }
@@ -364,7 +361,7 @@ var InterfaceSettings = ({
364
361
  {
365
362
  width,
366
363
  defaultValue: color,
367
- onChangeTab: (e) => {
364
+ onChange: (e) => {
368
365
  if (handleColorMode) {
369
366
  handleColorMode(e.value);
370
367
  }
@@ -13,8 +13,10 @@ var Radio = ({
13
13
  width = "default",
14
14
  size = "default",
15
15
  orientation = "horizontal",
16
+ name,
16
17
  labelProps,
17
18
  tabsContainerClassName,
19
+ onChange,
18
20
  ...props
19
21
  }) => {
20
22
  var _a, _b, _c;
@@ -48,6 +50,14 @@ var Radio = ({
48
50
  setParentDirection(dir);
49
51
  }
50
52
  });
53
+ const handleChange = (opt) => {
54
+ setSelectedOption(opt.value);
55
+ if (onChange) {
56
+ onChange(opt.value);
57
+ } else {
58
+ console.log("onChange was not provided");
59
+ }
60
+ };
51
61
  switch (design) {
52
62
  case "tabs":
53
63
  return /* @__PURE__ */ React.createElement(
@@ -66,14 +76,7 @@ var Radio = ({
66
76
  "li",
67
77
  {
68
78
  "aria-current": "page",
69
- onClick: () => {
70
- setSelectedOption(opt.value);
71
- if (props.onChangeTab) {
72
- props.onChangeTab(opt);
73
- } else {
74
- console.log("onChangeTab was not provided");
75
- }
76
- },
79
+ onClick: () => handleChange(opt),
77
80
  className: cn(
78
81
  "hawa-w-full hawa-cursor-pointer ",
79
82
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -112,7 +115,8 @@ var Radio = ({
112
115
  id: opt.value.toString(),
113
116
  type: "radio",
114
117
  value: opt.value,
115
- name: "bordered-radio"
118
+ name,
119
+ onChange: () => handleChange(opt)
116
120
  }
117
121
  ),
118
122
  /* @__PURE__ */ React.createElement(
@@ -129,12 +133,12 @@ var Radio = ({
129
133
  )
130
134
  )));
131
135
  case "cards":
132
- 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(
136
+ 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(
133
137
  "input",
134
138
  {
135
139
  type: "radio",
136
140
  id: opt.value.toString(),
137
- name: "cards-radio",
141
+ name,
138
142
  value: opt.value.toString(),
139
143
  className: "hawa-peer hawa-hidden",
140
144
  required: true,
@@ -168,15 +172,8 @@ var Radio = ({
168
172
  id: opt.value.toString(),
169
173
  type: "radio",
170
174
  value: opt.value,
171
- name: "default-radio",
172
- onChange: () => {
173
- setSelectedOption(opt.value);
174
- if (props.onChangeTab) {
175
- props.onChangeTab(opt);
176
- } else {
177
- console.log("onChangeTab was not provided");
178
- }
179
- }
175
+ name,
176
+ onChange: () => handleChange(opt)
180
177
  }
181
178
  ),
182
179
  /* @__PURE__ */ React.createElement(
@@ -222,7 +219,7 @@ var InterfaceSettings = ({
222
219
  {
223
220
  width,
224
221
  defaultValue: language,
225
- onChangeTab: (e) => {
222
+ onChange: (e) => {
226
223
  if (handleLanguage) {
227
224
  handleLanguage(e.value);
228
225
  }
@@ -239,7 +236,7 @@ var InterfaceSettings = ({
239
236
  {
240
237
  width,
241
238
  defaultValue: color,
242
- onChangeTab: (e) => {
239
+ onChange: (e) => {
243
240
  if (handleColorMode) {
244
241
  handleColorMode(e.value);
245
242
  }
@@ -21,8 +21,9 @@ type RadioTypes = {
21
21
  design?: "default" | "tabs" | "cards" | "bordered";
22
22
  width?: "default" | "full" | "none";
23
23
  size?: "default" | "lg" | "sm" | "xs";
24
+ name?: string;
24
25
  options: RadioOptionsTypes[];
25
- onChangeTab?: any;
26
+ onChange?: any;
26
27
  defaultValue?: any;
27
28
  direction?: DirectionType;
28
29
  helperText?: string;
@@ -21,8 +21,9 @@ type RadioTypes = {
21
21
  design?: "default" | "tabs" | "cards" | "bordered";
22
22
  width?: "default" | "full" | "none";
23
23
  size?: "default" | "lg" | "sm" | "xs";
24
+ name?: string;
24
25
  options: RadioOptionsTypes[];
25
- onChangeTab?: any;
26
+ onChange?: any;
26
27
  defaultValue?: any;
27
28
  direction?: DirectionType;
28
29
  helperText?: string;
@@ -135,8 +135,10 @@ var Radio = ({
135
135
  width = "default",
136
136
  size = "default",
137
137
  orientation = "horizontal",
138
+ name,
138
139
  labelProps,
139
140
  tabsContainerClassName,
141
+ onChange,
140
142
  ...props
141
143
  }) => {
142
144
  var _a, _b, _c;
@@ -170,6 +172,14 @@ var Radio = ({
170
172
  setParentDirection(dir);
171
173
  }
172
174
  });
175
+ const handleChange = (opt) => {
176
+ setSelectedOption(opt.value);
177
+ if (onChange) {
178
+ onChange(opt.value);
179
+ } else {
180
+ console.log("onChange was not provided");
181
+ }
182
+ };
173
183
  switch (design) {
174
184
  case "tabs":
175
185
  return /* @__PURE__ */ import_react2.default.createElement(
@@ -188,14 +198,7 @@ var Radio = ({
188
198
  "li",
189
199
  {
190
200
  "aria-current": "page",
191
- onClick: () => {
192
- setSelectedOption(opt.value);
193
- if (props.onChangeTab) {
194
- props.onChangeTab(opt);
195
- } else {
196
- console.log("onChangeTab was not provided");
197
- }
198
- },
201
+ onClick: () => handleChange(opt),
199
202
  className: cn(
200
203
  "hawa-w-full hawa-cursor-pointer ",
201
204
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -234,7 +237,8 @@ var Radio = ({
234
237
  id: opt.value.toString(),
235
238
  type: "radio",
236
239
  value: opt.value,
237
- name: "bordered-radio"
240
+ name,
241
+ onChange: () => handleChange(opt)
238
242
  }
239
243
  ),
240
244
  /* @__PURE__ */ import_react2.default.createElement(
@@ -251,12 +255,12 @@ var Radio = ({
251
255
  )
252
256
  )));
253
257
  case "cards":
254
- return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o }, /* @__PURE__ */ import_react2.default.createElement(
258
+ return /* @__PURE__ */ import_react2.default.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ import_react2.default.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ import_react2.default.createElement(
255
259
  "input",
256
260
  {
257
261
  type: "radio",
258
262
  id: opt.value.toString(),
259
- name: "cards-radio",
263
+ name,
260
264
  value: opt.value.toString(),
261
265
  className: "hawa-peer hawa-hidden",
262
266
  required: true,
@@ -290,15 +294,8 @@ var Radio = ({
290
294
  id: opt.value.toString(),
291
295
  type: "radio",
292
296
  value: opt.value,
293
- name: "default-radio",
294
- onChange: () => {
295
- setSelectedOption(opt.value);
296
- if (props.onChangeTab) {
297
- props.onChangeTab(opt);
298
- } else {
299
- console.log("onChangeTab was not provided");
300
- }
301
- }
297
+ name,
298
+ onChange: () => handleChange(opt)
302
299
  }
303
300
  ),
304
301
  /* @__PURE__ */ import_react2.default.createElement(
@@ -96,8 +96,10 @@ var Radio = ({
96
96
  width = "default",
97
97
  size = "default",
98
98
  orientation = "horizontal",
99
+ name,
99
100
  labelProps,
100
101
  tabsContainerClassName,
102
+ onChange,
101
103
  ...props
102
104
  }) => {
103
105
  var _a, _b, _c;
@@ -131,6 +133,14 @@ var Radio = ({
131
133
  setParentDirection(dir);
132
134
  }
133
135
  });
136
+ const handleChange = (opt) => {
137
+ setSelectedOption(opt.value);
138
+ if (onChange) {
139
+ onChange(opt.value);
140
+ } else {
141
+ console.log("onChange was not provided");
142
+ }
143
+ };
134
144
  switch (design) {
135
145
  case "tabs":
136
146
  return /* @__PURE__ */ React3.createElement(
@@ -149,14 +159,7 @@ var Radio = ({
149
159
  "li",
150
160
  {
151
161
  "aria-current": "page",
152
- onClick: () => {
153
- setSelectedOption(opt.value);
154
- if (props.onChangeTab) {
155
- props.onChangeTab(opt);
156
- } else {
157
- console.log("onChangeTab was not provided");
158
- }
159
- },
162
+ onClick: () => handleChange(opt),
160
163
  className: cn(
161
164
  "hawa-w-full hawa-cursor-pointer ",
162
165
  orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
@@ -195,7 +198,8 @@ var Radio = ({
195
198
  id: opt.value.toString(),
196
199
  type: "radio",
197
200
  value: opt.value,
198
- name: "bordered-radio"
201
+ name,
202
+ onChange: () => handleChange(opt)
199
203
  }
200
204
  ),
201
205
  /* @__PURE__ */ React3.createElement(
@@ -212,12 +216,12 @@ var Radio = ({
212
216
  )
213
217
  )));
214
218
  case "cards":
215
- return /* @__PURE__ */ React3.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React3.createElement("li", { key: o }, /* @__PURE__ */ React3.createElement(
219
+ return /* @__PURE__ */ React3.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React3.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React3.createElement(
216
220
  "input",
217
221
  {
218
222
  type: "radio",
219
223
  id: opt.value.toString(),
220
- name: "cards-radio",
224
+ name,
221
225
  value: opt.value.toString(),
222
226
  className: "hawa-peer hawa-hidden",
223
227
  required: true,
@@ -251,15 +255,8 @@ var Radio = ({
251
255
  id: opt.value.toString(),
252
256
  type: "radio",
253
257
  value: opt.value,
254
- name: "default-radio",
255
- onChange: () => {
256
- setSelectedOption(opt.value);
257
- if (props.onChangeTab) {
258
- props.onChangeTab(opt);
259
- } else {
260
- console.log("onChangeTab was not provided");
261
- }
262
- }
258
+ name,
259
+ onChange: () => handleChange(opt)
263
260
  }
264
261
  ),
265
262
  /* @__PURE__ */ React3.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.24.7-next",
3
+ "version": "0.24.10-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",