@wix/editor-react-components 1.2673.0 → 1.2675.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
|
-
import { a as Fieldset, T as Tooltip,
|
|
4
|
+
import { a as Fieldset, T as Tooltip, c as InfoCircle_default, d as CheckboxGroup_CheckboxGroup_CheckboxGroup, e as Checkbox } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
6
|
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
@@ -186,64 +186,70 @@ function CheckboxGroupComponent(props) {
|
|
|
186
186
|
dir: direction,
|
|
187
187
|
lang: environmentService.language,
|
|
188
188
|
"data-testid": TestIds.root,
|
|
189
|
-
children: /* @__PURE__ */ jsxs(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
children: /* @__PURE__ */ jsxs(
|
|
190
|
+
Fieldset.Root,
|
|
191
|
+
{
|
|
192
|
+
className: styles.fieldset,
|
|
193
|
+
render: /* @__PURE__ */ jsx(
|
|
194
|
+
CheckboxGroup_CheckboxGroup_CheckboxGroup,
|
|
193
195
|
{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
...valueProps,
|
|
197
|
+
onValueChange: handleValueChange,
|
|
198
|
+
allValues,
|
|
199
|
+
disabled,
|
|
200
|
+
"aria-required": required || void 0,
|
|
201
|
+
"aria-invalid": isInvalid || void 0,
|
|
202
|
+
"aria-describedby": showErrorMessage ? errorId : void 0,
|
|
203
|
+
"aria-label": ariaLabel,
|
|
204
|
+
"aria-labelledby": ariaLabel ? void 0 : legendId,
|
|
205
|
+
render: /* @__PURE__ */ jsx("fieldset", {}),
|
|
206
|
+
"data-testid": TestIds.group,
|
|
207
|
+
onFocus,
|
|
208
|
+
onBlur: handleBlur
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
children: [
|
|
212
|
+
showLabelRow && /* @__PURE__ */ jsxs("div", { className: styles.labelRow, children: [
|
|
213
|
+
hasLegend && /* @__PURE__ */ jsxs(
|
|
214
|
+
Fieldset.Legend,
|
|
215
|
+
{
|
|
216
|
+
id: legendId,
|
|
217
|
+
className: clsx(
|
|
218
|
+
styles.groupLabel,
|
|
219
|
+
selectors.groupLabel,
|
|
220
|
+
formatClassNames(semanticClassNames.groupLabel),
|
|
221
|
+
(_b = elementProps == null ? void 0 : elementProps.groupLabel) == null ? void 0 : _b.className
|
|
222
|
+
),
|
|
223
|
+
"data-testid": TestIds.legend,
|
|
224
|
+
children: [
|
|
225
|
+
label2,
|
|
226
|
+
required && /* @__PURE__ */ jsx(
|
|
227
|
+
RequiredIndicator,
|
|
228
|
+
{
|
|
229
|
+
className: formatClassNames(
|
|
230
|
+
semanticClassNames.requiredIndicator
|
|
231
|
+
),
|
|
232
|
+
"data-testid": TestIds.requiredIndicator
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
]
|
|
236
|
+
}
|
|
200
237
|
),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
required && /* @__PURE__ */ jsx(
|
|
205
|
-
RequiredIndicator,
|
|
238
|
+
tooltip2 && /* @__PURE__ */ jsx(Tooltip.Provider, { delay: 0, children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [
|
|
239
|
+
/* @__PURE__ */ jsx(
|
|
240
|
+
Tooltip.Trigger,
|
|
206
241
|
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"
|
|
242
|
+
type: "button",
|
|
243
|
+
className: styles.tooltipButton,
|
|
244
|
+
"data-testid": TestIds.tooltipButton,
|
|
245
|
+
"aria-label": tooltip2,
|
|
246
|
+
children: /* @__PURE__ */ jsx(InfoCircleSmall_default, { "aria-hidden": "true" })
|
|
211
247
|
}
|
|
212
|
-
)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/* @__PURE__ */ jsx(
|
|
218
|
-
Tooltip.Trigger,
|
|
219
|
-
{
|
|
220
|
-
type: "button",
|
|
221
|
-
className: styles.tooltipButton,
|
|
222
|
-
"data-testid": TestIds.tooltipButton,
|
|
223
|
-
"aria-label": tooltip2,
|
|
224
|
-
children: /* @__PURE__ */ jsx(InfoCircleSmall_default, { "aria-hidden": "true" })
|
|
225
|
-
}
|
|
226
|
-
),
|
|
227
|
-
/* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { sideOffset: 6, children: /* @__PURE__ */ jsx(Tooltip.Popup, { className: styles.tooltip, children: tooltip2 }) }) })
|
|
228
|
-
] }) })
|
|
229
|
-
] }),
|
|
230
|
-
/* @__PURE__ */ jsx(
|
|
231
|
-
CheckboxGroup_CheckboxGroup_CheckboxGroup,
|
|
232
|
-
{
|
|
233
|
-
...valueProps,
|
|
234
|
-
onValueChange: handleValueChange,
|
|
235
|
-
allValues,
|
|
236
|
-
disabled,
|
|
237
|
-
"aria-required": required || void 0,
|
|
238
|
-
"aria-invalid": isInvalid || void 0,
|
|
239
|
-
"aria-describedby": showErrorMessage ? errorId : void 0,
|
|
240
|
-
"aria-label": ariaLabel,
|
|
241
|
-
"aria-labelledby": ariaLabel ? void 0 : legendId,
|
|
242
|
-
className: styles.group,
|
|
243
|
-
"data-testid": TestIds.group,
|
|
244
|
-
onFocus,
|
|
245
|
-
onBlur: handleBlur,
|
|
246
|
-
children: /* @__PURE__ */ jsxs("div", { role: "list", className: styles.list, children: [
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { sideOffset: 6, children: /* @__PURE__ */ jsx(Tooltip.Popup, { className: styles.tooltip, children: tooltip2 }) }) })
|
|
250
|
+
] }) })
|
|
251
|
+
] }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { className: styles.group, children: /* @__PURE__ */ jsxs("div", { role: "list", className: styles.list, children: [
|
|
247
253
|
selectAll && /* @__PURE__ */ jsxs(
|
|
248
254
|
"label",
|
|
249
255
|
{
|
|
@@ -301,25 +307,25 @@ function CheckboxGroupComponent(props) {
|
|
|
301
307
|
},
|
|
302
308
|
option2.value || index
|
|
303
309
|
))
|
|
304
|
-
] })
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
310
|
+
] }) }),
|
|
311
|
+
showErrorMessage && /* @__PURE__ */ jsxs(
|
|
312
|
+
"div",
|
|
313
|
+
{
|
|
314
|
+
id: errorId,
|
|
315
|
+
className: clsx(
|
|
316
|
+
styles.errorMessage,
|
|
317
|
+
formatClassNames(semanticClassNames.errorMessage)
|
|
318
|
+
),
|
|
319
|
+
"data-testid": TestIds.errorMessage,
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ jsx(InfoCircle_default, { "aria-hidden": "true" }),
|
|
322
|
+
validity.validationMessage
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
)
|
|
326
|
+
]
|
|
327
|
+
}
|
|
328
|
+
)
|
|
323
329
|
}
|
|
324
330
|
) });
|
|
325
331
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/editor-react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2675.0",
|
|
4
4
|
"description": "React components for the Wix Editor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@wix/site-service-configuration": "^1.0.1",
|
|
86
86
|
"@wix/site-service-experiments": "^1.0.4",
|
|
87
87
|
"@wix/site-service-rendering-context": "^1.0.1",
|
|
88
|
-
"@wix/site-ui": "1.
|
|
88
|
+
"@wix/site-ui": "1.275.0",
|
|
89
89
|
"@wix/video": "^1.106.0",
|
|
90
90
|
"@wix/viewer-service-consent-policy": "^1.0.103",
|
|
91
91
|
"@wix/web-bi-logger": "^2.1.29",
|
|
@@ -200,5 +200,5 @@
|
|
|
200
200
|
"registry": "https://registry.npmjs.org/",
|
|
201
201
|
"access": "public"
|
|
202
202
|
},
|
|
203
|
-
"falconPackageHash": "
|
|
203
|
+
"falconPackageHash": "ddb8d4da01198df5b807e1070f80979ea9707cb919c4b4c4d6fab4bc"
|
|
204
204
|
}
|