@wix/form-public 0.493.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.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -59733,20 +59733,21 @@ var visuallyHiddenStyle = {
|
|
|
59733
59733
|
};
|
|
59734
59734
|
var Rating = ({ className, children, ...internal }) => {
|
|
59735
59735
|
const { value, isSelected, onHoverChange, label } = internal;
|
|
59736
|
-
const resolvedClassName = typeof className === "function" ? className({
|
|
59737
|
-
isSelected
|
|
59738
|
-
}) : className;
|
|
59739
59736
|
return /* @__PURE__ */ React172__default.default.createElement(reactAriaComponents.RadioField, {
|
|
59740
59737
|
value
|
|
59741
59738
|
}, /* @__PURE__ */ React172__default.default.createElement(reactAriaComponents.RadioButton, {
|
|
59742
|
-
className:
|
|
59739
|
+
className: ({ isHovered }) => typeof className === "function" ? className({
|
|
59740
|
+
isSelected,
|
|
59741
|
+
isHovered
|
|
59742
|
+
}) : className ?? "",
|
|
59743
59743
|
"data-active": isSelected || void 0,
|
|
59744
59744
|
onHoverChange
|
|
59745
|
-
}, typeof children === "function" ? children({
|
|
59746
|
-
isSelected
|
|
59745
|
+
}, ({ isHovered }) => /* @__PURE__ */ React172__default.default.createElement(React172__default.default.Fragment, null, typeof children === "function" ? children({
|
|
59746
|
+
isSelected,
|
|
59747
|
+
isHovered
|
|
59747
59748
|
}) : children, label ? /* @__PURE__ */ React172__default.default.createElement("span", {
|
|
59748
59749
|
style: visuallyHiddenStyle
|
|
59749
|
-
}, label) : null));
|
|
59750
|
+
}, label) : null)));
|
|
59750
59751
|
};
|
|
59751
59752
|
Ratings.Rating = Rating;
|
|
59752
59753
|
RatingInput.Label = Label;
|