@wix/form-public 0.494.0 → 0.495.0

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
@@ -59723,20 +59723,21 @@ var visuallyHiddenStyle = {
59723
59723
  };
59724
59724
  var Rating = ({ className, children, ...internal }) => {
59725
59725
  const { value, isSelected, onHoverChange, label } = internal;
59726
- const resolvedClassName = typeof className === "function" ? className({
59727
- isSelected
59728
- }) : className;
59729
59726
  return /* @__PURE__ */ React172.createElement(RadioField, {
59730
59727
  value
59731
59728
  }, /* @__PURE__ */ React172.createElement(RadioButton, {
59732
- className: resolvedClassName,
59729
+ className: ({ isHovered }) => typeof className === "function" ? className({
59730
+ isSelected,
59731
+ isHovered
59732
+ }) : className ?? "",
59733
59733
  "data-active": isSelected || void 0,
59734
59734
  onHoverChange
59735
- }, typeof children === "function" ? children({
59736
- isSelected
59735
+ }, ({ isHovered }) => /* @__PURE__ */ React172.createElement(React172.Fragment, null, typeof children === "function" ? children({
59736
+ isSelected,
59737
+ isHovered
59737
59738
  }) : children, label ? /* @__PURE__ */ React172.createElement("span", {
59738
59739
  style: visuallyHiddenStyle
59739
- }, label) : null));
59740
+ }, label) : null)));
59740
59741
  };
59741
59742
  Ratings.Rating = Rating;
59742
59743
  RatingInput.Label = Label;