@wix/editor-react-components 1.2865.0 → 1.2866.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.
@@ -243,9 +243,10 @@ const TextInput = (props) => {
243
243
  );
244
244
  const ariaLabel = a11y == null ? void 0 : a11y.ariaLabel;
245
245
  const ariaInvalid = inErrorState ? true : (a11y == null ? void 0 : a11y.ariaInvalid) ?? false;
246
+ const inputId = `${id}-input`;
246
247
  const customAccessibleNameId = label2 && ariaLabel ? `${id}-accessible-name` : void 0;
247
- const helperTextId = helperText2 ? `helper_${id}` : void 0;
248
- const errorMessageId = inErrorState ? `error_${id}` : void 0;
248
+ const helperTextId = helperText2 ? `${id}-helper-text` : void 0;
249
+ const errorMessageId = inErrorState ? `${id}-error-message` : void 0;
249
250
  const inputClasses = clsx(
250
251
  style.input,
251
252
  componentClassNames.input,
@@ -277,7 +278,7 @@ const TextInput = (props) => {
277
278
  tabIndex: a11y == null ? void 0 : a11y.tabIndex,
278
279
  placeholder,
279
280
  className: inputClasses,
280
- id: `input_${id}`,
281
+ id: inputId,
281
282
  onKeyDown,
282
283
  onKeyUp,
283
284
  onInput,
@@ -314,7 +315,7 @@ const TextInput = (props) => {
314
315
  children: ariaLabel
315
316
  }
316
317
  ),
317
- label2 && /* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: labelClasses, htmlFor: `input_${id}`, children: label2 }),
318
+ label2 && /* @__PURE__ */ jsx($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: labelClasses, htmlFor: inputId, children: label2 }),
318
319
  /* @__PURE__ */ jsx("div", { className: style.inputWrapper, children: /* @__PURE__ */ jsx($3985021b0ad6602f$export$f5b8910cec6cf069, { ...inputProps }) }),
319
320
  helperText2 && /* @__PURE__ */ jsx(
320
321
  "p",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2865.0",
3
+ "version": "1.2866.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -228,5 +228,5 @@
228
228
  "registry": "https://registry.npmjs.org/",
229
229
  "access": "public"
230
230
  },
231
- "falconPackageHash": "a19a70fec0e8cc1c08133b05ee1030d9a63c7712266967da10b22bee"
231
+ "falconPackageHash": "97a5ec17ae15591c9687a9f96d36190c1f6faa8dd10e503df32fe7fc"
232
232
  }