@wix/form-public 0.526.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 +30 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +30 -20
- 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 }) => {
|
|
@@ -60072,9 +60077,10 @@ var Control7 = ({ children, className }) => {
|
|
|
60072
60077
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
60073
60078
|
const hasCountryOptions2 = countries.length > 1;
|
|
60074
60079
|
const isForcedOpen = useIsForcedOpenDropdown(id6) && !!popoverElement && hasCountryOptions2;
|
|
60075
|
-
const controlClassName = typeof className === "function" ? ({ isHovered }) => className({
|
|
60080
|
+
const controlClassName = typeof className === "function" ? ({ isHovered, isFocusWithin }) => className({
|
|
60076
60081
|
hasCountryOptions: hasCountryOptions2,
|
|
60077
|
-
isHovered
|
|
60082
|
+
isHovered,
|
|
60083
|
+
isFocusWithin
|
|
60078
60084
|
}) : className;
|
|
60079
60085
|
const pickerProps = {
|
|
60080
60086
|
triggerRef: controlRef,
|
|
@@ -60298,7 +60304,7 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60298
60304
|
ref: checkboxRef,
|
|
60299
60305
|
className,
|
|
60300
60306
|
"data-hook": "product"
|
|
60301
|
-
}, ({ 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, {
|
|
60302
60308
|
option: option2,
|
|
60303
60309
|
imageResize
|
|
60304
60310
|
}) : null, labelElement ? applyInternalProps(labelElement, {
|
|
@@ -60307,7 +60313,8 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60307
60313
|
price
|
|
60308
60314
|
}) : null, applyInternalProps(inputElement, {
|
|
60309
60315
|
isSelected,
|
|
60310
|
-
isHovered
|
|
60316
|
+
isHovered,
|
|
60317
|
+
isFocused
|
|
60311
60318
|
}))));
|
|
60312
60319
|
};
|
|
60313
60320
|
var OptionImage2 = ({ className, ...internal }) => {
|
|
@@ -60470,15 +60477,17 @@ var Rating = ({ className, children, ...internal }) => {
|
|
|
60470
60477
|
return /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.RadioField, {
|
|
60471
60478
|
value
|
|
60472
60479
|
}, /* @__PURE__ */ React173__default.default.createElement(reactAriaComponents.RadioButton, {
|
|
60473
|
-
className: ({ isHovered }) => typeof className === "function" ? className({
|
|
60480
|
+
className: ({ isHovered, isFocused }) => typeof className === "function" ? className({
|
|
60474
60481
|
isSelected,
|
|
60475
|
-
isHovered
|
|
60482
|
+
isHovered,
|
|
60483
|
+
isFocused
|
|
60476
60484
|
}) : className ?? "",
|
|
60477
60485
|
"data-active": isSelected || void 0,
|
|
60478
60486
|
onHoverChange
|
|
60479
|
-
}, ({ 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({
|
|
60480
60488
|
isSelected,
|
|
60481
|
-
isHovered
|
|
60489
|
+
isHovered,
|
|
60490
|
+
isFocused
|
|
60482
60491
|
}) : children, label ? /* @__PURE__ */ React173__default.default.createElement("span", {
|
|
60483
60492
|
style: visuallyHiddenStyle
|
|
60484
60493
|
}, label) : null)));
|
|
@@ -62224,7 +62233,7 @@ var UploadPreview = ({ className, imageAlt, ...internal }) => {
|
|
|
62224
62233
|
"data-hook": "signature-image"
|
|
62225
62234
|
}, value.displayName || imageAlt));
|
|
62226
62235
|
};
|
|
62227
|
-
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal }) => {
|
|
62236
|
+
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, onFocusChange, ...internal }) => {
|
|
62228
62237
|
const { onSelectFiles, disabled, readOnly, onBlur, onFocus } = internal;
|
|
62229
62238
|
const { inputId, ariaDescribedBy, labelId } = useFieldAttributes();
|
|
62230
62239
|
const textId = useId2();
|
|
@@ -62251,7 +62260,8 @@ var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal
|
|
|
62251
62260
|
"data-hook": "signature-upload",
|
|
62252
62261
|
className,
|
|
62253
62262
|
onHoverStart,
|
|
62254
|
-
onHoverEnd
|
|
62263
|
+
onHoverEnd,
|
|
62264
|
+
onFocusChange
|
|
62255
62265
|
}, content));
|
|
62256
62266
|
};
|
|
62257
62267
|
var UploadButtonText = ({ children, className, ...internal }) => {
|