@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.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 }) => {
|
|
@@ -60062,9 +60067,10 @@ var Control7 = ({ children, className }) => {
|
|
|
60062
60067
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
60063
60068
|
const hasCountryOptions2 = countries.length > 1;
|
|
60064
60069
|
const isForcedOpen = useIsForcedOpenDropdown(id6) && !!popoverElement && hasCountryOptions2;
|
|
60065
|
-
const controlClassName = typeof className === "function" ? ({ isHovered }) => className({
|
|
60070
|
+
const controlClassName = typeof className === "function" ? ({ isHovered, isFocusWithin }) => className({
|
|
60066
60071
|
hasCountryOptions: hasCountryOptions2,
|
|
60067
|
-
isHovered
|
|
60072
|
+
isHovered,
|
|
60073
|
+
isFocusWithin
|
|
60068
60074
|
}) : className;
|
|
60069
60075
|
const pickerProps = {
|
|
60070
60076
|
triggerRef: controlRef,
|
|
@@ -60288,7 +60294,7 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60288
60294
|
ref: checkboxRef,
|
|
60289
60295
|
className,
|
|
60290
60296
|
"data-hook": "product"
|
|
60291
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60297
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, imageElement ? applyInternalProps(imageElement, {
|
|
60292
60298
|
option: option2,
|
|
60293
60299
|
imageResize
|
|
60294
60300
|
}) : null, labelElement ? applyInternalProps(labelElement, {
|
|
@@ -60297,7 +60303,8 @@ var ProductOption = ({ children, className, ...internal }) => {
|
|
|
60297
60303
|
price
|
|
60298
60304
|
}) : null, applyInternalProps(inputElement, {
|
|
60299
60305
|
isSelected,
|
|
60300
|
-
isHovered
|
|
60306
|
+
isHovered,
|
|
60307
|
+
isFocused
|
|
60301
60308
|
}))));
|
|
60302
60309
|
};
|
|
60303
60310
|
var OptionImage2 = ({ className, ...internal }) => {
|
|
@@ -60460,15 +60467,17 @@ var Rating = ({ className, children, ...internal }) => {
|
|
|
60460
60467
|
return /* @__PURE__ */ React173.createElement(RadioField, {
|
|
60461
60468
|
value
|
|
60462
60469
|
}, /* @__PURE__ */ React173.createElement(RadioButton, {
|
|
60463
|
-
className: ({ isHovered }) => typeof className === "function" ? className({
|
|
60470
|
+
className: ({ isHovered, isFocused }) => typeof className === "function" ? className({
|
|
60464
60471
|
isSelected,
|
|
60465
|
-
isHovered
|
|
60472
|
+
isHovered,
|
|
60473
|
+
isFocused
|
|
60466
60474
|
}) : className ?? "",
|
|
60467
60475
|
"data-active": isSelected || void 0,
|
|
60468
60476
|
onHoverChange
|
|
60469
|
-
}, ({ isHovered }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, typeof children === "function" ? children({
|
|
60477
|
+
}, ({ isHovered, isFocused }) => /* @__PURE__ */ React173.createElement(React173.Fragment, null, typeof children === "function" ? children({
|
|
60470
60478
|
isSelected,
|
|
60471
|
-
isHovered
|
|
60479
|
+
isHovered,
|
|
60480
|
+
isFocused
|
|
60472
60481
|
}) : children, label ? /* @__PURE__ */ React173.createElement("span", {
|
|
60473
60482
|
style: visuallyHiddenStyle
|
|
60474
60483
|
}, label) : null)));
|
|
@@ -62214,7 +62223,7 @@ var UploadPreview = ({ className, imageAlt, ...internal }) => {
|
|
|
62214
62223
|
"data-hook": "signature-image"
|
|
62215
62224
|
}, value.displayName || imageAlt));
|
|
62216
62225
|
};
|
|
62217
|
-
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal }) => {
|
|
62226
|
+
var UploadButton = ({ children, className, onHoverStart, onHoverEnd, onFocusChange, ...internal }) => {
|
|
62218
62227
|
const { onSelectFiles, disabled, readOnly, onBlur, onFocus } = internal;
|
|
62219
62228
|
const { inputId, ariaDescribedBy, labelId } = useFieldAttributes();
|
|
62220
62229
|
const textId = useId2();
|
|
@@ -62241,7 +62250,8 @@ var UploadButton = ({ children, className, onHoverStart, onHoverEnd, ...internal
|
|
|
62241
62250
|
"data-hook": "signature-upload",
|
|
62242
62251
|
className,
|
|
62243
62252
|
onHoverStart,
|
|
62244
|
-
onHoverEnd
|
|
62253
|
+
onHoverEnd,
|
|
62254
|
+
onFocusChange
|
|
62245
62255
|
}, content));
|
|
62246
62256
|
};
|
|
62247
62257
|
var UploadButtonText = ({ children, className, ...internal }) => {
|