@wix/editor-react-components 1.2864.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.
|
@@ -49,6 +49,7 @@ const MultiStateBox = (props) => {
|
|
|
49
49
|
states = [],
|
|
50
50
|
activeStateIndex,
|
|
51
51
|
activeStateName,
|
|
52
|
+
keepMounted = false,
|
|
52
53
|
onChange,
|
|
53
54
|
onClick,
|
|
54
55
|
onDblClick,
|
|
@@ -95,7 +96,7 @@ const MultiStateBox = (props) => {
|
|
|
95
96
|
className: clsx(selectors.root, styles.root, className),
|
|
96
97
|
children: states.map((state2, index) => {
|
|
97
98
|
const isActive = index === activeIndex;
|
|
98
|
-
if (!isActive && !visitedKeys.has(stateKeys[index])) {
|
|
99
|
+
if (!keepMounted && !isActive && !visitedKeys.has(stateKeys[index])) {
|
|
99
100
|
return null;
|
|
100
101
|
}
|
|
101
102
|
return /* @__PURE__ */ jsx(
|
|
@@ -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 ?
|
|
248
|
-
const errorMessageId = inErrorState ?
|
|
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:
|
|
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:
|
|
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.
|
|
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": "
|
|
231
|
+
"falconPackageHash": "97a5ec17ae15591c9687a9f96d36190c1f6faa8dd10e503df32fe7fc"
|
|
232
232
|
}
|