@wix/form-public 0.551.0 → 0.552.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
@@ -61042,7 +61042,7 @@ ProductList.Description = Description;
61042
61042
  ProductList.Error = Error2;
61043
61043
  var RatingInput = ({ children }) => {
61044
61044
  const { id: id6, value, onChange, disabled, readOnly, required, hasError, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
61045
- const { labelId } = useFieldAttributes();
61045
+ const { labelId, ariaDescribedBy } = useFieldAttributes();
61046
61046
  const handleChange = useCallback((selectedValue) => onChange(Number(selectedValue)), [
61047
61047
  onChange
61048
61048
  ]);
@@ -61055,6 +61055,7 @@ var RatingInput = ({ children }) => {
61055
61055
  renderLabel: () => labelElement,
61056
61056
  renderInput: () => /* @__PURE__ */ React172.createElement(RadioGroup$1, {
61057
61057
  "aria-labelledby": labelId,
61058
+ "aria-describedby": ariaDescribedBy,
61058
61059
  value: value ? String(value) : void 0,
61059
61060
  onChange: handleChange,
61060
61061
  isDisabled: disabled,
@@ -61070,7 +61071,7 @@ var RatingInput = ({ children }) => {
61070
61071
  };
61071
61072
  var Ratings = ({ children, className, getReactionLabel }) => {
61072
61073
  const { value, readOnly, hasError } = useFieldPropsV2();
61073
- const { inputId, ariaDescribedBy } = useFieldAttributes();
61074
+ const { inputId } = useFieldAttributes();
61074
61075
  const [hovered, setHovered] = useState();
61075
61076
  const containerRef = useRef(null);
61076
61077
  const ratingElement = findChildOfType(children, Ratings.Rating);
@@ -61085,7 +61086,6 @@ var Ratings = ({ children, className, getReactionLabel }) => {
61085
61086
  return /* @__PURE__ */ React172.createElement("div", {
61086
61087
  ref: containerRef,
61087
61088
  id: inputId,
61088
- "aria-describedby": ariaDescribedBy,
61089
61089
  className,
61090
61090
  "data-invalid": hasError,
61091
61091
  "data-readonly": readOnly