@wix/form-public 0.562.0 → 0.564.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
@@ -38751,16 +38751,6 @@ var EMPTY_VALUE = null;
38751
38751
  // ../form-fields/dist/esm/constants/default-values.js
38752
38752
  var NOW_VALUE = "$now";
38753
38753
 
38754
- // ../form-fields/dist/esm/constants/experiments.js
38755
- var EXPERIMENTS = {
38756
- USE_FIELDS_V2: "specs.forms.UseFieldsV2",
38757
- USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone",
38758
- USE_FIELDS_V2_PP: "useFieldsV2PP",
38759
- USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
38760
- ENABLE_FORM_SCHEMA_V2_PRICING_PLANS: "enableFormSchemaV2PricingPlans",
38761
- SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
38762
- STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback"};
38763
-
38764
38754
  // ../form-fields/dist/esm/constants/breakpoints.js
38765
38755
  var Breakpoint = /* @__PURE__ */ (function(Breakpoint2) {
38766
38756
  Breakpoint2["LARGE"] = "large";
@@ -43775,10 +43765,16 @@ function useTranslation2() {
43775
43765
  return context;
43776
43766
  }
43777
43767
 
43778
- // ../form-fields/dist/esm/services/is-experiment-enabled.js
43768
+ // ../form-experiments/dist/esm/experiments.js
43769
+ var EXPERIMENTS = {
43770
+ ENABLE_FORM_SCHEMA_V2_PRICING_PLANS: "enableFormSchemaV2PricingPlans",
43771
+ STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback",
43772
+ SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
43773
+ USE_FIELDS_V2: "specs.forms.UseFieldsV2",
43774
+ USE_FIELDS_V2_PP: "useFieldsV2PP",
43775
+ USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
43776
+ USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone"};
43779
43777
  var isExperimentEnabled = (experiments, spec) => experiments?.[spec] === true || experiments?.[spec] === "true" || experiments?.[spec] === "B";
43780
-
43781
- // ../form-fields/dist/esm/contexts/experiments-context.js
43782
43778
  var ExperimentsContext = React172.createContext(void 0);
43783
43779
  var useExperiments = () => {
43784
43780
  const experiments = React172.useContext(ExperimentsContext) || {};
@@ -54751,6 +54747,14 @@ function $e260d131964da0f9$var$isValidEvent(event, ref) {
54751
54747
  return !event.composedPath().includes(ref.current);
54752
54748
  }
54753
54749
 
54750
+ // ../form-fields/dist/esm/ui/date-field/birthday-auto-complete.js
54751
+ var BIRTHDAY_PART_AUTO_COMPLETE = {
54752
+ [SupportedDateParts.MONTH]: "bday-month",
54753
+ [SupportedDateParts.DAY]: "bday-day",
54754
+ [SupportedDateParts.YEAR]: "bday-year"
54755
+ };
54756
+ var autoCompleteForDatePart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
54757
+
54754
54758
  // ../form-fields/dist/esm/ui/date-picker/month-select/helpers.js
54755
54759
  function getMonthList(locales) {
54756
54760
  const formatter = new Intl.DateTimeFormat(locales, {
@@ -55033,12 +55037,6 @@ var VisibleRowsListBox = ({ isForcedOpen, ...props2 }) => {
55033
55037
  };
55034
55038
 
55035
55039
  // ../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
55040
  var DateInput = ({ children, className }) => {
55043
55041
  const { id: id6, required, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
55044
55042
  const { inputId, labelId, ariaDescribedBy } = useFieldAttributes();
@@ -55108,7 +55106,7 @@ var Month = ({ children, className }) => {
55108
55106
  }), /* @__PURE__ */ React172__default.default.createElement($72abaeab4d80592f$export$78efe591171d7d45, {
55109
55107
  getContainer: () => container
55110
55108
  }, /* @__PURE__ */ React172__default.default.createElement(reactAriaComponents.Select, {
55111
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.MONTH),
55109
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.MONTH),
55112
55110
  "aria-labelledby": showDateLabels ? labelId : void 0,
55113
55111
  value: partValue || null,
55114
55112
  onChange: handleMonthChange,
@@ -55223,7 +55221,7 @@ var DayInput = ({ className }) => {
55223
55221
  id: inputId,
55224
55222
  className,
55225
55223
  placeholder,
55226
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.DAY),
55224
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.DAY),
55227
55225
  maxLength: 2,
55228
55226
  inputMode: "numeric",
55229
55227
  "data-hook": SupportedDateParts.DAY
@@ -55274,7 +55272,7 @@ var YearInput = ({ className }) => {
55274
55272
  id: inputId,
55275
55273
  className,
55276
55274
  placeholder,
55277
- autoComplete: autoCompleteForPart(autoComplete, SupportedDateParts.YEAR),
55275
+ autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.YEAR),
55278
55276
  maxLength: 4,
55279
55277
  inputMode: "numeric",
55280
55278
  "data-hook": SupportedDateParts.YEAR