@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 +20 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -22
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -38741,16 +38741,6 @@ var EMPTY_VALUE = null;
|
|
|
38741
38741
|
// ../form-fields/dist/esm/constants/default-values.js
|
|
38742
38742
|
var NOW_VALUE = "$now";
|
|
38743
38743
|
|
|
38744
|
-
// ../form-fields/dist/esm/constants/experiments.js
|
|
38745
|
-
var EXPERIMENTS = {
|
|
38746
|
-
USE_FIELDS_V2: "specs.forms.UseFieldsV2",
|
|
38747
|
-
USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone",
|
|
38748
|
-
USE_FIELDS_V2_PP: "useFieldsV2PP",
|
|
38749
|
-
USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
|
|
38750
|
-
ENABLE_FORM_SCHEMA_V2_PRICING_PLANS: "enableFormSchemaV2PricingPlans",
|
|
38751
|
-
SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
|
|
38752
|
-
STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback"};
|
|
38753
|
-
|
|
38754
38744
|
// ../form-fields/dist/esm/constants/breakpoints.js
|
|
38755
38745
|
var Breakpoint = /* @__PURE__ */ (function(Breakpoint2) {
|
|
38756
38746
|
Breakpoint2["LARGE"] = "large";
|
|
@@ -43765,10 +43755,16 @@ function useTranslation2() {
|
|
|
43765
43755
|
return context;
|
|
43766
43756
|
}
|
|
43767
43757
|
|
|
43768
|
-
// ../form-
|
|
43758
|
+
// ../form-experiments/dist/esm/experiments.js
|
|
43759
|
+
var EXPERIMENTS = {
|
|
43760
|
+
ENABLE_FORM_SCHEMA_V2_PRICING_PLANS: "enableFormSchemaV2PricingPlans",
|
|
43761
|
+
STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback",
|
|
43762
|
+
SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
|
|
43763
|
+
USE_FIELDS_V2: "specs.forms.UseFieldsV2",
|
|
43764
|
+
USE_FIELDS_V2_PP: "useFieldsV2PP",
|
|
43765
|
+
USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
|
|
43766
|
+
USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone"};
|
|
43769
43767
|
var isExperimentEnabled = (experiments, spec) => experiments?.[spec] === true || experiments?.[spec] === "true" || experiments?.[spec] === "B";
|
|
43770
|
-
|
|
43771
|
-
// ../form-fields/dist/esm/contexts/experiments-context.js
|
|
43772
43768
|
var ExperimentsContext = createContext(void 0);
|
|
43773
43769
|
var useExperiments = () => {
|
|
43774
43770
|
const experiments = useContext(ExperimentsContext) || {};
|
|
@@ -54741,6 +54737,14 @@ function $e260d131964da0f9$var$isValidEvent(event, ref) {
|
|
|
54741
54737
|
return !event.composedPath().includes(ref.current);
|
|
54742
54738
|
}
|
|
54743
54739
|
|
|
54740
|
+
// ../form-fields/dist/esm/ui/date-field/birthday-auto-complete.js
|
|
54741
|
+
var BIRTHDAY_PART_AUTO_COMPLETE = {
|
|
54742
|
+
[SupportedDateParts.MONTH]: "bday-month",
|
|
54743
|
+
[SupportedDateParts.DAY]: "bday-day",
|
|
54744
|
+
[SupportedDateParts.YEAR]: "bday-year"
|
|
54745
|
+
};
|
|
54746
|
+
var autoCompleteForDatePart = (autoComplete, part) => autoComplete === "bday" ? BIRTHDAY_PART_AUTO_COMPLETE[part] : void 0;
|
|
54747
|
+
|
|
54744
54748
|
// ../form-fields/dist/esm/ui/date-picker/month-select/helpers.js
|
|
54745
54749
|
function getMonthList(locales) {
|
|
54746
54750
|
const formatter = new Intl.DateTimeFormat(locales, {
|
|
@@ -55023,12 +55027,6 @@ var VisibleRowsListBox = ({ isForcedOpen, ...props2 }) => {
|
|
|
55023
55027
|
};
|
|
55024
55028
|
|
|
55025
55029
|
// ../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
55030
|
var DateInput = ({ children, className }) => {
|
|
55033
55031
|
const { id: id6, required, onBlur, onFocus, FieldLayout } = useFieldPropsV2();
|
|
55034
55032
|
const { inputId, labelId, ariaDescribedBy } = useFieldAttributes();
|
|
@@ -55098,7 +55096,7 @@ var Month = ({ children, className }) => {
|
|
|
55098
55096
|
}), /* @__PURE__ */ React172.createElement($72abaeab4d80592f$export$78efe591171d7d45, {
|
|
55099
55097
|
getContainer: () => container
|
|
55100
55098
|
}, /* @__PURE__ */ React172.createElement(Select, {
|
|
55101
|
-
autoComplete:
|
|
55099
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.MONTH),
|
|
55102
55100
|
"aria-labelledby": showDateLabels ? labelId : void 0,
|
|
55103
55101
|
value: partValue || null,
|
|
55104
55102
|
onChange: handleMonthChange,
|
|
@@ -55213,7 +55211,7 @@ var DayInput = ({ className }) => {
|
|
|
55213
55211
|
id: inputId,
|
|
55214
55212
|
className,
|
|
55215
55213
|
placeholder,
|
|
55216
|
-
autoComplete:
|
|
55214
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.DAY),
|
|
55217
55215
|
maxLength: 2,
|
|
55218
55216
|
inputMode: "numeric",
|
|
55219
55217
|
"data-hook": SupportedDateParts.DAY
|
|
@@ -55264,7 +55262,7 @@ var YearInput = ({ className }) => {
|
|
|
55264
55262
|
id: inputId,
|
|
55265
55263
|
className,
|
|
55266
55264
|
placeholder,
|
|
55267
|
-
autoComplete:
|
|
55265
|
+
autoComplete: autoCompleteForDatePart(autoComplete, SupportedDateParts.YEAR),
|
|
55268
55266
|
maxLength: 4,
|
|
55269
55267
|
inputMode: "numeric",
|
|
55270
55268
|
"data-hook": SupportedDateParts.YEAR
|