@wix/form-public 0.525.0 → 0.527.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 +35 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -4
- package/dist/index.css.map +1 -1
- package/dist/index.js +35 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -52085,9 +52085,10 @@ var CheckboxContainer = ({ children, className }) => {
|
|
|
52085
52085
|
}, /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.CheckboxButton, {
|
|
52086
52086
|
ref,
|
|
52087
52087
|
className
|
|
52088
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
52088
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
52089
52089
|
isSelected,
|
|
52090
|
-
isHovered
|
|
52090
|
+
isHovered,
|
|
52091
|
+
isFocused
|
|
52091
52092
|
}), labelElement)));
|
|
52092
52093
|
};
|
|
52093
52094
|
CheckboxContainer.RichTextLabel = RichTextLabel;
|
|
@@ -52275,9 +52276,10 @@ var Checkbox2 = ({ children, className, ...internal }) => {
|
|
|
52275
52276
|
ref: checkboxRef,
|
|
52276
52277
|
className,
|
|
52277
52278
|
"data-hook": `checkbox-${label}`
|
|
52278
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
52279
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
52279
52280
|
isSelected,
|
|
52280
|
-
isHovered
|
|
52281
|
+
isHovered,
|
|
52282
|
+
isFocused
|
|
52281
52283
|
}), applyInternalProps(labelElement, {
|
|
52282
52284
|
label
|
|
52283
52285
|
}))));
|
|
@@ -55954,9 +55956,10 @@ var GuestToggle = ({ children, className, ...internal }) => {
|
|
|
55954
55956
|
onFocus
|
|
55955
55957
|
}, /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.CheckboxButton, {
|
|
55956
55958
|
className
|
|
55957
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
55959
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(inputElement, {
|
|
55958
55960
|
isSelected,
|
|
55959
|
-
isHovered
|
|
55961
|
+
isHovered,
|
|
55962
|
+
isFocused
|
|
55960
55963
|
}), applyInternalProps(labelElement, {
|
|
55961
55964
|
label
|
|
55962
55965
|
}))));
|
|
@@ -56113,9 +56116,10 @@ var Option4 = ({ children, className, ...internal }) => {
|
|
|
56113
56116
|
}, /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.RadioButton, {
|
|
56114
56117
|
ref: radioRef,
|
|
56115
56118
|
className: radioClassName
|
|
56116
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(controlElement, {
|
|
56119
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, applyInternalProps(controlElement, {
|
|
56117
56120
|
isSelected,
|
|
56118
|
-
isHovered
|
|
56121
|
+
isHovered,
|
|
56122
|
+
isFocused
|
|
56119
56123
|
}), applyInternalProps(labelElement, {
|
|
56120
56124
|
label
|
|
56121
56125
|
})))), isOther && isThisOptionSelected && otherInputElement);
|
|
@@ -56456,7 +56460,7 @@ var DropZoneSubtitle = ({ className, children }) => {
|
|
|
56456
56460
|
limitReached
|
|
56457
56461
|
}));
|
|
56458
56462
|
};
|
|
56459
|
-
var DropZoneButton = ({ className, children, "aria-roledescription": roleDescription, onHoverStart, onHoverEnd }) => {
|
|
56463
|
+
var DropZoneButton = ({ className, children, "aria-roledescription": roleDescription, onHoverStart, onHoverEnd, onFocusChange }) => {
|
|
56460
56464
|
const { ariaDescribedBy, inputId, labelId, errorId } = useFieldAttributes();
|
|
56461
56465
|
const { disabled, required, onFocus, hasError, errorMessage } = useFieldPropsV2();
|
|
56462
56466
|
const { handleFileChange, accept, multiple, buttonRef, handleBlur, limitError, files } = useFileUploadContext();
|
|
@@ -56492,7 +56496,8 @@ var DropZoneButton = ({ className, children, "aria-roledescription": roleDescrip
|
|
|
56492
56496
|
onFocus,
|
|
56493
56497
|
onBlur: handleBlur,
|
|
56494
56498
|
onHoverStart,
|
|
56495
|
-
onHoverEnd
|
|
56499
|
+
onHoverEnd,
|
|
56500
|
+
onFocusChange
|
|
56496
56501
|
}, children));
|
|
56497
56502
|
};
|
|
56498
56503
|
var DropZoneButtonText = ({ className }) => {
|
|
@@ -59906,8 +59911,11 @@ var CountryOptionsModal = ({ children, className, overlayClassName, "aria-label"
|
|
|
59906
59911
|
selectedKeys: selectedCountryCode ? [
|
|
59907
59912
|
selectedCountryCode
|
|
59908
59913
|
] : [],
|
|
59909
|
-
|
|
59910
|
-
|
|
59914
|
+
onSelectionChange: (keys3) => {
|
|
59915
|
+
const [key] = keys3 === "all" ? [] : keys3;
|
|
59916
|
+
if (key) {
|
|
59917
|
+
handleCountryCodeChange(key);
|
|
59918
|
+
}
|
|
59911
59919
|
overlayState?.close();
|
|
59912
59920
|
}
|
|
59913
59921
|
}
|
|
@@ -60069,9 +60077,10 @@ var Control7 = ({ children, className }) => {
|
|
|
60069
60077
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
60070
60078
|
const hasCountryOptions2 = countries.length > 1;
|
|
60071
60079
|
const isForcedOpen = useIsForcedOpenDropdown(id6) && !!popoverElement && hasCountryOptions2;
|
|
60072
|
-
const controlClassName = typeof className === "function" ? ({ isHovered }) => className({
|
|
60080
|
+
const controlClassName = typeof className === "function" ? ({ isHovered, isFocusWithin }) => className({
|
|
60073
60081
|
hasCountryOptions: hasCountryOptions2,
|
|
60074
|
-
isHovered
|
|
60082
|
+
isHovered,
|
|
60083
|
+
isFocusWithin
|
|
60075
60084
|
}) : className;
|
|
60076
60085
|
const pickerProps = {
|
|
60077
60086
|
triggerRef: controlRef,
|
|
@@ -60295,7 +60304,7 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60295
60304
|
ref: checkboxRef,
|
|
60296
60305
|
className,
|
|
60297
60306
|
"data-hook": "product"
|
|
60298
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60307
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60299
60308
|
option: option2,
|
|
60300
60309
|
imageResize
|
|
60301
60310
|
}) : null, labelElement ? applyInternalProps(labelElement, {
|
|
@@ -60304,7 +60313,8 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60304
60313
|
price
|
|
60305
60314
|
}) : null, applyInternalProps(inputElement, {
|
|
60306
60315
|
isSelected,
|
|
60307
|
-
isHovered
|
|
60316
|
+
isHovered,
|
|
60317
|
+
isFocused
|
|
60308
60318
|
}))));
|
|
60309
60319
|
};
|
|
60310
60320
|
var OptionImage2 = ({ className, ...internal }) => {
|
|
@@ -60467,15 +60477,17 @@ var Rating = ({ className, children, ...internal }) => {
|
|
|
60467
60477
|
return /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.RadioField, {
|
|
60468
60478
|
value
|
|
60469
60479
|
}, /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.RadioButton, {
|
|
60470
|
-
className: ({ isHovered }) => typeof className === "function" ? className({
|
|
60480
|
+
className: ({ isHovered, isFocused }) => typeof className === "function" ? className({
|
|
60471
60481
|
isSelected,
|
|
60472
|
-
isHovered
|
|
60482
|
+
isHovered,
|
|
60483
|
+
isFocused
|
|
60473
60484
|
}) : className ?? "",
|
|
60474
60485
|
"data-active": isSelected || void 0,
|
|
60475
60486
|
onHoverChange
|
|
60476
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, typeof children === "function" ? children({
|
|
60487
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173__default.default.createElement(React173__default.default.Fragment, null, typeof children === "function" ? children({
|
|
60477
60488
|
isSelected,
|
|
60478
|
-
isHovered
|
|
60489
|
+
isHovered,
|
|
60490
|
+
isFocused
|
|
60479
60491
|
}) : children, label ? /* @__PURE__ */ React173__default.default.createElement("span", {
|
|
60480
60492
|
style: visuallyHiddenStyle
|
|
60481
60493
|
}, label) : null)));
|
|
@@ -62221,7 +62233,7 @@ var UploadPreview = ({ className, imageAlt, ...internal }) => {
|
|
|
62221
62233
|
"data-hook": "signature-image"
|
|
62222
62234
|
}, value.displayName || imageAlt));
|
|
62223
62235
|
};
|
|
62224
|
-
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal }) => {
|
|
62236
|
+
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, onFocusChange, ...internal }) => {
|
|
62225
62237
|
const { onSelectFiles, disabled, readOnly, onBlur, onFocus } = internal;
|
|
62226
62238
|
const { inputId, ariaDescribedBy, labelId } = useFieldAttributes();
|
|
62227
62239
|
const textId = useId2();
|
|
@@ -62248,7 +62260,8 @@ var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal
|
|
|
62248
62260
|
"data-hook": "signature-upload",
|
|
62249
62261
|
className,
|
|
62250
62262
|
onHoverStart,
|
|
62251
|
-
onHoverEnd
|
|
62263
|
+
onHoverEnd,
|
|
62264
|
+
onFocusChange
|
|
62252
62265
|
}, content));
|
|
62253
62266
|
};
|
|
62254
62267
|
var UploadButtonText = ({ children, className, ...internal }) => {
|