@wix/form-public 0.562.0 → 0.563.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 +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -54741,6 +54741,14 @@ function $e260d131964da0f9$var$isValidEvent(event, ref) {
|
|
|
54741
54741
|
return !event.composedPath().includes(ref.current);
|
|
54742
54742
|
}
|
|
54743
54743
|
|
|
54744
|
+
// ../form-fields/dist/esm/ui/date-field/birthday-auto-complete.js
|
|
54745
|
+
var BIRTHDAY_PART_AUTO_COMPLETE = {
|
|
54746
|
+
[SupportedDateParts.MONTH]: "bday-month",
|
|
54747
|
+
[SupportedDateParts.DAY]: "bday-day",
|
|
54748
|
+
[SupportedDateParts.YEAR]: "bday-year"
|
|
54749
|
+
};
|
|
54750
|
+
var autoCompleteForDatePart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
|
|
54751
|
+
|
|
54744
54752
|
// ../form-fields/dist/esm/ui/date-picker/month-select/helpers.js
|
|
54745
54753
|
function getMonthList(locales) {
|
|
54746
54754
|
const formatter = new Intl.DateTimeFormat(locales, {
|
|
@@ -55023,12 +55031,6 @@ var VisibleRowsListBox = ({ isForcedOpen, ...props2 }) => {
|
|
|
55023
55031
|
};
|
|
55024
55032
|
|
|
55025
55033
|
// ../form-fields/dist/esm/ui/date-input-field/date-input-field-headless.js
|
|
55026
|
-
var BIRTHDAY_PART_AUTO_COMPLETE = {
|
|
55027
|
-
[SupportedDateParts.MONTH]: "bday-month",
|
|
55028
|
-
[SupportedDateParts.DAY]: "bday-day",
|
|
55029
|
-
[SupportedDateParts.YEAR]: "bday-year"
|
|
55030
|
-
};
|
|
55031
|
-
var autoCompleteForPart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
|
|
55032
55034
|
var DateInput = ({ children, className }) => {
|
|
55033
55035
|
const { id: id6, required, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
|
|
55034
55036
|
const { inputId, labelId, ariaDescribedBy } = useFieldAttributes();
|
|
@@ -55098,7 +55100,7 @@ var Month = ({ children, className }) => {
|
|
|
55098
55100
|
}), /* @__PURE__ */ React172.createElement($72abaeab4d80592f$export$78efe591171d7d45, {
|
|
55099
55101
|
getContainer: () => container
|
|
55100
55102
|
}, /* @__PURE__ */ React172.createElement(Select, {
|
|
55101
|
-
autoComplete:
|
|
55103
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.MONTH),
|
|
55102
55104
|
"aria-labelledby": showDateLabels ? labelId : void 0,
|
|
55103
55105
|
value: partValue || null,
|
|
55104
55106
|
onChange: handleMonthChange,
|
|
@@ -55213,7 +55215,7 @@ var DayInput = ({ className }) => {
|
|
|
55213
55215
|
id: inputId,
|
|
55214
55216
|
className,
|
|
55215
55217
|
placeholder,
|
|
55216
|
-
autoComplete:
|
|
55218
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.DAY),
|
|
55217
55219
|
maxLength: 2,
|
|
55218
55220
|
inputMode: "numeric",
|
|
55219
55221
|
"data-hook": SupportedDateParts.DAY
|
|
@@ -55264,7 +55266,7 @@ var YearInput = ({ className }) => {
|
|
|
55264
55266
|
id: inputId,
|
|
55265
55267
|
className,
|
|
55266
55268
|
placeholder,
|
|
55267
|
-
autoComplete:
|
|
55269
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.YEAR),
|
|
55268
55270
|
maxLength: 4,
|
|
55269
55271
|
inputMode: "numeric",
|
|
55270
55272
|
"data-hook": SupportedDateParts.YEAR
|