@wix/form-public 0.561.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 CHANGED
@@ -54751,6 +54751,14 @@ function $e260d131964da0f9$var$isValidEvent(event, ref) {
54751
54751
  return !event.composedPath().includes(ref.current);
54752
54752
  }
54753
54753
 
54754
+ // ../form-fields/dist/esm/ui/date-field/birthday-auto-complete.js
54755
+ var BIRTHDAY_PART_AUTO_COMPLETE = {
54756
+ [SupportedDateParts.MONTH]: "bday-month",
54757
+ [SupportedDateParts.DAY]: "bday-day",
54758
+ [SupportedDateParts.YEAR]: "bday-year"
54759
+ };
54760
+ var autoCompleteForDatePart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
54761
+
54754
54762
  // ../form-fields/dist/esm/ui/date-picker/month-select/helpers.js
54755
54763
  function getMonthList(locales) {
54756
54764
  const formatter = new Intl.DateTimeFormat(locales, {
@@ -55033,12 +55041,6 @@ var VisibleRowsListBox = ({ isForcedOpen, ...props2 }) => {
55033
55041
  };
55034
55042
 
55035
55043
  // ../form-fields/dist/esm/ui/date-input-field/date-input-field-headless.js
55036
- var BIRTHDAY_PART_AUTO_COMPLETE = {
55037
- [SupportedDateParts.MONTH]: "bday-month",
55038
- [SupportedDateParts.DAY]: "bday-day",
55039
- [SupportedDateParts.YEAR]: "bday-year"
55040
- };
55041
- var autoCompleteForPart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
55042
55044
  var DateInput = ({ children, className }) => {
55043
55045
  const { id: id6, required, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
55044
55046
  const { inputId, labelId, ariaDescribedBy } = useFieldAttributes();
@@ -55108,7 +55110,7 @@ var Month = ({ children, className }) => {
55108
55110
  }), /* @__PURE__ */ React172__default.default.createElement($72abaeab4d80592f$export$78efe591171d7d45, {
55109
55111
  getContainer: () => container
55110
55112
  }, /* @__PURE__ */ React172__default.default.createElement(reactAriaComponents.Select, {
55111
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.MONTH),
55113
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.MONTH),
55112
55114
  "aria-labelledby": showDateLabels ? labelId : void 0,
55113
55115
  value: partValue || null,
55114
55116
  onChange: handleMonthChange,
@@ -55223,7 +55225,7 @@ var DayInput = ({ className }) => {
55223
55225
  id: inputId,
55224
55226
  className,
55225
55227
  placeholder,
55226
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.DAY),
55228
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.DAY),
55227
55229
  maxLength: 2,
55228
55230
  inputMode: "numeric",
55229
55231
  "data-hook": SupportedDateParts.DAY
@@ -55274,7 +55276,7 @@ var YearInput = ({ className }) => {
55274
55276
  id: inputId,
55275
55277
  className,
55276
55278
  placeholder,
55277
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.YEAR),
55279
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.YEAR),
55278
55280
  maxLength: 4,
55279
55281
  inputMode: "numeric",
55280
55282
  "data-hook": SupportedDateParts.YEAR