@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.js
CHANGED
|
@@ -52075,9 +52075,10 @@ var CheckboxContainer = ({ children, className }) => {
|
|
|
52075
52075
|
}, /* @__PURE__ */ React173.createElement(CheckboxButton, {
|
|
52076
52076
|
ref,
|
|
52077
52077
|
className
|
|
52078
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
52078
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
52079
52079
|
isSelected,
|
|
52080
|
-
isHovered
|
|
52080
|
+
isHovered,
|
|
52081
|
+
isFocused
|
|
52081
52082
|
}), labelElement)));
|
|
52082
52083
|
};
|
|
52083
52084
|
CheckboxContainer.RichTextLabel = RichTextLabel;
|
|
@@ -52265,9 +52266,10 @@ var Checkbox2 = ({ children, className, ...internal }) => {
|
|
|
52265
52266
|
ref: checkboxRef,
|
|
52266
52267
|
className,
|
|
52267
52268
|
"data-hook": `checkbox-${label}`
|
|
52268
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
52269
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
52269
52270
|
isSelected,
|
|
52270
|
-
isHovered
|
|
52271
|
+
isHovered,
|
|
52272
|
+
isFocused
|
|
52271
52273
|
}), applyInternalProps(labelElement, {
|
|
52272
52274
|
label
|
|
52273
52275
|
}))));
|
|
@@ -55944,9 +55946,10 @@ var GuestToggle = ({ children, className, ...internal }) => {
|
|
|
55944
55946
|
onFocus
|
|
55945
55947
|
}, /* @__PURE__ */ React173.createElement(CheckboxButton, {
|
|
55946
55948
|
className
|
|
55947
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
55949
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(inputElement, {
|
|
55948
55950
|
isSelected,
|
|
55949
|
-
isHovered
|
|
55951
|
+
isHovered,
|
|
55952
|
+
isFocused
|
|
55950
55953
|
}), applyInternalProps(labelElement, {
|
|
55951
55954
|
label
|
|
55952
55955
|
}))));
|
|
@@ -56103,9 +56106,10 @@ var Option4 = ({ children, className, ...internal }) => {
|
|
|
56103
56106
|
}, /* @__PURE__ */ React173.createElement(RadioButton, {
|
|
56104
56107
|
ref: radioRef,
|
|
56105
56108
|
className: radioClassName
|
|
56106
|
-
}, ({ isSelected, isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(controlElement, {
|
|
56109
|
+
}, ({ isSelected, isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, applyInternalProps(controlElement, {
|
|
56107
56110
|
isSelected,
|
|
56108
|
-
isHovered
|
|
56111
|
+
isHovered,
|
|
56112
|
+
isFocused
|
|
56109
56113
|
}), applyInternalProps(labelElement, {
|
|
56110
56114
|
label
|
|
56111
56115
|
})))), isOther && isThisOptionSelected && otherInputElement);
|
|
@@ -56446,7 +56450,7 @@ var DropZoneSubtitle = ({ className, children }) => {
|
|
|
56446
56450
|
limitReached
|
|
56447
56451
|
}));
|
|
56448
56452
|
};
|
|
56449
|
-
var DropZoneButton = ({ className, children, "aria-roledescription": roleDescription, onHoverStart, onHoverEnd }) => {
|
|
56453
|
+
var DropZoneButton = ({ className, children, "aria-roledescription": roleDescription, onHoverStart, onHoverEnd, onFocusChange }) => {
|
|
56450
56454
|
const { ariaDescribedBy, inputId, labelId, errorId } = useFieldAttributes();
|
|
56451
56455
|
const { disabled, required, onFocus, hasError, errorMessage } = useFieldPropsV2();
|
|
56452
56456
|
const { handleFileChange, accept, multiple, buttonRef, handleBlur, limitError, files } = useFileUploadContext();
|
|
@@ -56482,7 +56486,8 @@ var DropZoneButton = ({ className, children, "aria-roledescription": roleDescrip
|
|
|
56482
56486
|
onFocus,
|
|
56483
56487
|
onBlur: handleBlur,
|
|
56484
56488
|
onHoverStart,
|
|
56485
|
-
onHoverEnd
|
|
56489
|
+
onHoverEnd,
|
|
56490
|
+
onFocusChange
|
|
56486
56491
|
}, children));
|
|
56487
56492
|
};
|
|
56488
56493
|
var DropZoneButtonText = ({ className }) => {
|
|
@@ -59896,8 +59901,11 @@ var CountryOptionsModal = ({ children, className, overlayClassName, "aria-label"
|
|
|
59896
59901
|
selectedKeys: selectedCountryCode ? [
|
|
59897
59902
|
selectedCountryCode
|
|
59898
59903
|
] : [],
|
|
59899
|
-
|
|
59900
|
-
|
|
59904
|
+
onSelectionChange: (keys3) => {
|
|
59905
|
+
const [key] = keys3 === "all" ? [] : keys3;
|
|
59906
|
+
if (key) {
|
|
59907
|
+
handleCountryCodeChange(key);
|
|
59908
|
+
}
|
|
59901
59909
|
overlayState?.close();
|
|
59902
59910
|
}
|
|
59903
59911
|
}
|
|
@@ -60059,9 +60067,10 @@ var Control7 = ({ children, className }) => {
|
|
|
60059
60067
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
60060
60068
|
const hasCountryOptions2 = countries.length > 1;
|
|
60061
60069
|
const isForcedOpen = useIsForcedOpenDropdown(id6) && !!popoverElement && hasCountryOptions2;
|
|
60062
|
-
const controlClassName = typeof className === "function" ? ({ isHovered }) => className({
|
|
60070
|
+
const controlClassName = typeof className === "function" ? ({ isHovered, isFocusWithin }) => className({
|
|
60063
60071
|
hasCountryOptions: hasCountryOptions2,
|
|
60064
|
-
isHovered
|
|
60072
|
+
isHovered,
|
|
60073
|
+
isFocusWithin
|
|
60065
60074
|
}) : className;
|
|
60066
60075
|
const pickerProps = {
|
|
60067
60076
|
triggerRef: controlRef,
|
|
@@ -60285,7 +60294,7 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60285
60294
|
ref: checkboxRef,
|
|
60286
60295
|
className,
|
|
60287
60296
|
"data-hook": "product"
|
|
60288
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60297
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60289
60298
|
option: option2,
|
|
60290
60299
|
imageResize
|
|
60291
60300
|
}) : null, labelElement ? applyInternalProps(labelElement, {
|
|
@@ -60294,7 +60303,8 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60294
60303
|
price
|
|
60295
60304
|
}) : null, applyInternalProps(inputElement, {
|
|
60296
60305
|
isSelected,
|
|
60297
|
-
isHovered
|
|
60306
|
+
isHovered,
|
|
60307
|
+
isFocused
|
|
60298
60308
|
}))));
|
|
60299
60309
|
};
|
|
60300
60310
|
var OptionImage2 = ({ className, ...internal }) => {
|
|
@@ -60457,15 +60467,17 @@ var Rating = ({ className, children, ...internal }) => {
|
|
|
60457
60467
|
return /* @__PURE__ */ React173.createElement(RadioField, {
|
|
60458
60468
|
value
|
|
60459
60469
|
}, /* @__PURE__ */ React173.createElement(RadioButton, {
|
|
60460
|
-
className: ({ isHovered }) => typeof className === "function" ? className({
|
|
60470
|
+
className: ({ isHovered, isFocused }) => typeof className === "function" ? className({
|
|
60461
60471
|
isSelected,
|
|
60462
|
-
isHovered
|
|
60472
|
+
isHovered,
|
|
60473
|
+
isFocused
|
|
60463
60474
|
}) : className ?? "",
|
|
60464
60475
|
"data-active": isSelected || void 0,
|
|
60465
60476
|
onHoverChange
|
|
60466
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, typeof children === "function" ? children({
|
|
60477
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, typeof children === "function" ? children({
|
|
60467
60478
|
isSelected,
|
|
60468
|
-
isHovered
|
|
60479
|
+
isHovered,
|
|
60480
|
+
isFocused
|
|
60469
60481
|
}) : children, label ? /* @__PURE__ */ React173.createElement("span", {
|
|
60470
60482
|
style: visuallyHiddenStyle
|
|
60471
60483
|
}, label) : null)));
|
|
@@ -62211,7 +62223,7 @@ var UploadPreview = ({ className, imageAlt, ...internal }) => {
|
|
|
62211
62223
|
"data-hook": "signature-image"
|
|
62212
62224
|
}, value.displayName || imageAlt));
|
|
62213
62225
|
};
|
|
62214
|
-
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal }) => {
|
|
62226
|
+
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, onFocusChange, ...internal }) => {
|
|
62215
62227
|
const { onSelectFiles, disabled, readOnly, onBlur, onFocus } = internal;
|
|
62216
62228
|
const { inputId, ariaDescribedBy, labelId } = useFieldAttributes();
|
|
62217
62229
|
const textId = useId2();
|
|
@@ -62238,7 +62250,8 @@ var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal
|
|
|
62238
62250
|
"data-hook": "signature-upload",
|
|
62239
62251
|
className,
|
|
62240
62252
|
onHoverStart,
|
|
62241
|
-
onHoverEnd
|
|
62253
|
+
onHoverEnd,
|
|
62254
|
+
onFocusChange
|
|
62242
62255
|
}, content));
|
|
62243
62256
|
};
|
|
62244
62257
|
var UploadButtonText = ({ children, className, ...internal }) => {
|