@sikka/hawa 0.15.6-next → 0.15.7-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.js CHANGED
@@ -3771,7 +3771,11 @@ var Radio = function(_param) {
3771
3771
  "aria-current": "page",
3772
3772
  onClick: function() {
3773
3773
  setSelectedOption(opt.value);
3774
- props.onChangeTab(opt.value);
3774
+ if (props.onChangeTab) {
3775
+ props.onChangeTab(opt.value);
3776
+ } else {
3777
+ console.log("onChangeTab was not provided");
3778
+ }
3775
3779
  },
3776
3780
  className: cn("hawa-w-full hawa-cursor-pointer ", orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r", orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l", orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b", "hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ", selectedOption === opt.value ? activeTabStyle : inactiveTabStyle),
3777
3781
  key: o
@@ -3841,7 +3845,11 @@ var Radio = function(_param) {
3841
3845
  name: "default-radio",
3842
3846
  onChange: function() {
3843
3847
  setSelectedOption(opt.value);
3844
- props.onChangeTab(opt.value);
3848
+ if (props.onChangeTab) {
3849
+ props.onChangeTab(opt.value);
3850
+ } else {
3851
+ console.log("onChangeTab was not provided");
3852
+ }
3845
3853
  }
3846
3854
  }), /* @__PURE__ */ import_react13.default.createElement("label", {
3847
3855
  htmlFor: opt.value.toString(),
package/dist/index.mjs CHANGED
@@ -3084,7 +3084,11 @@ var Radio = ({
3084
3084
  "aria-current": "page",
3085
3085
  onClick: () => {
3086
3086
  setSelectedOption(opt.value);
3087
- props.onChangeTab(opt.value);
3087
+ if (props.onChangeTab) {
3088
+ props.onChangeTab(opt.value);
3089
+ } else {
3090
+ console.log("onChangeTab was not provided");
3091
+ }
3088
3092
  },
3089
3093
  className: cn(
3090
3094
  "hawa-w-full hawa-cursor-pointer ",
@@ -3182,7 +3186,11 @@ var Radio = ({
3182
3186
  name: "default-radio",
3183
3187
  onChange: () => {
3184
3188
  setSelectedOption(opt.value);
3185
- props.onChangeTab(opt.value);
3189
+ if (props.onChangeTab) {
3190
+ props.onChangeTab(opt.value);
3191
+ } else {
3192
+ console.log("onChangeTab was not provided");
3193
+ }
3186
3194
  }
3187
3195
  }
3188
3196
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.15.6-next",
3
+ "version": "0.15.7-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {