@wix/form-elements 1.187.0 → 1.189.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/component/{appointment-rac-DiGTD4hn.js → appointment-rac-Biwj0bKe.js} +78 -78
- package/dist/component/{bookings-address-rac-Bczo07PP.js → bookings-address-rac-B_o25LOI.js} +1 -1
- package/dist/component/{bookings-email-rac-D0cw7HFH.js → bookings-email-rac-BBcusxbS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DqxVpKqV.js → bookings-first-name-rac-CNTGannm.js} +1 -1
- package/dist/component/{bookings-header-rac-BxlD5Wje.js → bookings-header-rac-BTvG2vnk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CraNB_ut.js → bookings-last-name-rac-BQumGsz9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BMGnVYXE.js → bookings-login-bar-rac-Cl_rwWhO.js} +8 -8
- package/dist/component/{bookings-phone-rac-CnSlSyLi.js → bookings-phone-rac-B_gXe9Fa.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CWWvRRRi.js → bookings-rich-text-rac-CbMuPVCB.js} +1 -1
- package/dist/component/{checkbox-field-rac-C2LLGbbS.js → checkbox-field-rac-QwFSqEgs.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-B2hKVuJD.js → checkbox-group-field-headless-CTDMO0TM.js} +38 -38
- package/dist/component/{checkbox-group-field-rac-Bqo7LRpI.js → checkbox-group-field-rac-DFUST9Th.js} +4 -4
- package/dist/component/{checkbox-group-rac-CHAnQW7L.js → checkbox-group-rac-CBAE-o1Q.js} +1 -1
- package/dist/component/{checkbox-rac-D09xnf-F.js → checkbox-rac-DkYPhGTU.js} +1 -1
- package/dist/component/{contacts-address-rac-CY_ff8gq.js → contacts-address-rac-DKf42iJk.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BkPpyiCP.js → contacts-birthdate-rac-ffPSb2YW.js} +1 -1
- package/dist/component/{contacts-company-rac-2I05yC97.js → contacts-company-rac-DLVdNbYz.js} +1 -1
- package/dist/component/{contacts-email-rac-B5vwkBUk.js → contacts-email-rac-CW8SdcYX.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CVxn7EaP.js → contacts-first-name-rac-CGdzgpkw.js} +1 -1
- package/dist/component/{contacts-last-name-rac-DIu7T_QU.js → contacts-last-name-rac-DNQj7UcW.js} +1 -1
- package/dist/component/{contacts-phone-rac-B_9KO997.js → contacts-phone-rac-zAMIceti.js} +1 -1
- package/dist/component/{contacts-position-rac-Dll7FDN5.js → contacts-position-rac-DLwn9B2T.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DvZ0S_7T.js → contacts-subscribe-rac-Cy5rxTkC.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BmYWQGbm.js → contacts-tax-id-rac-CEfU6N6C.js} +1 -1
- package/dist/component/{date-availability-C2IYlnG_.js → date-availability-C9EOQUiy.js} +1 -1
- package/dist/component/{date-input-field-rac-TwaBKY7l.js → date-input-field-rac-F4QQeEtO.js} +57 -57
- package/dist/component/{date-input-rac-CusCOLnm.js → date-input-rac-CJeOgyF5.js} +1 -1
- package/dist/component/{date-picker-field-rac-ufxxlmpA.js → date-picker-field-rac-33ARKAxQ.js} +35 -35
- package/dist/component/{date-picker-rac-IGr_hLjg.js → date-picker-rac-Beaqh84V.js} +1 -1
- package/dist/component/{date-time-input-field-rac-B6ZQo4Tk.js → date-time-input-field-rac-CB8FfYUM.js} +44 -44
- package/dist/component/{date-time-input-rac-X1GCfhSl.js → date-time-input-rac-DQ9P6IVp.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D9UmRqnt.js → dext-checkbox-group-rac-Cho-hueW.js} +2 -2
- package/dist/component/{dext-checkbox-rac-DrMbQCX3.js → dext-checkbox-rac-BIwIwy-y.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Barwg8La.js → dext-date-picker-rac-C03HJdvX.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-ChIUfDk4.js → dext-date-time-input-rac-Bo4XfnRA.js} +1 -1
- package/dist/component/{dext-dropdown-rac-BCrEGvfc.js → dext-dropdown-rac-CadT1tMH.js} +1 -1
- package/dist/component/{dext-email-rac-D7l9fah1.js → dext-email-rac-DbiEws8H.js} +1 -1
- package/dist/component/{dext-number-input-rac-CrI6ChK9.js → dext-number-input-rac-XoW8CLvX.js} +1 -1
- package/dist/component/{dext-phone-rac-B_ObVduc.js → dext-phone-rac-9rFyUD8e.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DOBaXXjq.js → dext-radio-group-rac-U6BNL7IT.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D4LxflR7.js → dext-rating-input-rac-BDGUv8jU.js} +1 -1
- package/dist/component/{dext-tags-rac-nTSiW-H7.js → dext-tags-rac-CAFGVcIi.js} +2 -2
- package/dist/component/{dext-text-area-rac-DYV_gO7a.js → dext-text-area-rac-DXyzm9oe.js} +1 -1
- package/dist/component/{dext-text-input-rac-Zjq6PsXg.js → dext-text-input-rac-C27gdfyG.js} +1 -1
- package/dist/component/{dext-url-input-rac-BM7jm0Tn.js → dext-url-input-rac-DovYH3_G.js} +1 -1
- package/dist/component/{donation-rac-CGjEtI7s.js → donation-rac-DV2aRsDt.js} +60 -60
- package/dist/component/{dropdown-field-rac-c-Owb2hL.js → dropdown-field-rac-D58C7YZG.js} +3 -3
- package/dist/component/{dropdown-rac-Bp9hWnJS.js → dropdown-rac-57yZf_yZ.js} +1 -1
- package/dist/component/{ecom-address-rac-C1YRffNH.js → ecom-address-rac-Co3WhA7m.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5uCvEqP.js → ecom-subscription-checkbox-rac-CYjsuRA9.js} +2 -2
- package/dist/component/{email-input-field-rac-BDQYfj6b.js → email-input-field-rac-C5G3pVkR.js} +14 -14
- package/dist/component/{events-repeater-rac-DoZBb6e0.js → events-repeater-rac-D5PXSDIH.js} +72 -70
- package/dist/component/{events-rsvp-rac-OyYogsL5.js → events-rsvp-rac-BfyQNZh6.js} +3 -3
- package/dist/component/{field-error-headless-B41KJxbD.js → field-error-headless-RTyrenpC.js} +8 -8
- package/dist/component/{field-label-headless-DHt_Wm_S.js → field-label-headless-Bd00Hl2z.js} +4 -4
- package/dist/component/{file-upload-rac-Bed5vOYu.js → file-upload-rac-D5pTnsHO.js} +61 -61
- package/dist/component/{fixed-payment-rac-_HtF4gSw.js → fixed-payment-rac-ByxSjPu5.js} +9 -9
- package/dist/component/{form-DAUDnpk6.js → form-BG5UjjLA.js} +3276 -3217
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BwlXDMt4.js → header-field-rac-Bql6VoAi.js} +2 -2
- package/dist/component/{header-rac-CdFpA8bi.js → header-rac-DWAIn4eY.js} +1 -1
- package/dist/component/{image-choice-rac-Bfs7ixsZ.js → image-choice-rac-D5dSQ4Xd.js} +11 -11
- package/dist/component/{index-B5HfcvO_.js → index-37eV-JEp.js} +5 -5
- package/dist/component/{index-BQctPc9k.js → index-DlcCtz4h.js} +4 -4
- package/dist/component/{isObjectLike-CKRIZUUL.js → isObjectLike-ClPDcTiq.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Gs6BGlnz.js → multiline-address-field-rac-CpvwzmpC.js} +345 -345
- package/dist/component/{multiline-address-rac-6tsDZK20.js → multiline-address-rac-ENim2Bn6.js} +1 -1
- package/dist/component/{number-input-field-rac-D2vzcEDT.js → number-input-field-rac-DTRnmRDk.js} +21 -21
- package/dist/component/{number-input-rac-DJA2sjJ2.js → number-input-rac-QROlEpkx.js} +1 -1
- package/dist/component/{password-rac-DS9j5AEn.js → password-rac-jMoyzIP2.js} +47 -47
- package/dist/component/{payment-input-rac-t15HwuyR.js → payment-input-rac-DOOV4P4b.js} +31 -31
- package/dist/component/{phone-input-field-rac-DCEMaJjP.js → phone-input-field-rac-BA_mTcND.js} +47 -47
- package/dist/component/{phone-rac-R2KIpq9Y.js → phone-rac-DXcbIqHK.js} +1 -1
- package/dist/component/{product-list-rac-BCaz8EbJ.js → product-list-rac-CsxR7Ut6.js} +63 -63
- package/dist/component/{quiz-radio-group-rac-Czjt8SZW.js → quiz-radio-group-rac-IQgqvqjs.js} +1 -1
- package/dist/component/{radio-button-module-classes-B2cY0daS.js → radio-button-module-classes-DIFYfYiH.js} +36 -36
- package/dist/component/{radio-group-field-rac-BdCqn6Uq.js → radio-group-field-rac-Ca2RlxOl.js} +4 -4
- package/dist/component/{radio-group-rac-CdKWOA6d.js → radio-group-rac-DDervEEb.js} +1 -1
- package/dist/component/{rating-input-field-rac-qllcIC5u.js → rating-input-field-rac-0kyPo9cU.js} +12 -12
- package/dist/component/{rating-input-rac-Cno0IibX.js → rating-input-rac-DqPsqUKR.js} +1 -1
- package/dist/component/{rich-content-rac.module-Bj8zO5BD.js → rich-content-rac.module-2T_-7jvb.js} +5 -5
- package/dist/component/{rich-text-field-rac-CJOPMgvk.js → rich-text-field-rac-W-eKzhuC.js} +4 -4
- package/dist/component/{rich-text-rac-qJLSQUfk.js → rich-text-rac-CzJfbAyx.js} +1 -1
- package/dist/component/{service-dropdown-rac-CrrqMt0I.js → service-dropdown-rac-BMJy2pZ5.js} +25 -25
- package/dist/component/{services-multi-choice-rac-DHpIgQT8.js → services-multi-choice-rac-BBAWlI7U.js} +7 -7
- package/dist/component/{signature-rac-vHDz7aO9.js → signature-rac-Y1GLswrp.js} +22 -22
- package/dist/component/{submit-button-rac-CdSXP5MY.js → submit-button-rac-CSKbrgQ3.js} +17 -17
- package/dist/component/{tags-field-rac-BE5q3Yzp.js → tags-field-rac-D3zOYcC5.js} +19 -19
- package/dist/component/{tags-rac-DPH9Jekq.js → tags-rac-Cs77Abgs.js} +1 -1
- package/dist/component/text-area-field-rac-DZZW7rAX.js +74 -0
- package/dist/component/{text-area-rac-BWI_FwJ_.js → text-area-rac-BRPp0HnX.js} +1 -1
- package/dist/component/{text-input-field-rac-SljlZsKs.js → text-input-field-rac-tPDZmLdU.js} +3 -3
- package/dist/component/text-input-headless-tkwEZWs7.js +47 -0
- package/dist/component/{text-input-rac-OP8CxA5d.js → text-input-rac-DnHt4vkM.js} +1 -1
- package/dist/component/{time-input-rac-Dc0pojpK.js → time-input-rac-Dbg4Nqb5.js} +18 -18
- package/dist/component/url-input-field-rac-3ODFXFRP.js +77 -0
- package/dist/component/{url-input-rac-DW245AQ3.js → url-input-rac-CPb5o8Of.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CohYBaie.js → use-dropdown-option-class-name-Dd4ncVaY.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-CcyW9dW5.js → use-dropdown-trigger-class-name-zVniRqM7.js} +29 -29
- package/dist/component/{use-element-state-class-name-ByWbyT81.js → use-element-state-class-name-C8jFeDrq.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-CmYpz2Os.js → use-hoverable-input-class-name-B9diy0Mr.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-D4-XPkUN.js → use-is-forced-open-dropdown-BR1U1l5w.js} +6 -6
- package/dist/component/{use-service-options-base-DGHhZKVh.js → use-service-options-base-yM4rJlq1.js} +3 -3
- package/dist/component/use-text-input-class-name-D6AnBbJx.js +6 -0
- package/package.json +2 -2
- package/dist/component/text-area-field-rac-CUSpvF_P.js +0 -74
- package/dist/component/text-input-headless-BWFcuwI4.js +0 -47
- package/dist/component/url-input-field-rac-CcUeuaJX.js +0 -77
- package/dist/component/use-text-input-class-name-VJ-nzeqS.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-
|
|
3
|
+
import { bM as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-BG5UjjLA.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-2T_-7jvb.js";
|
|
5
5
|
const f = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { CheckboxGroup as
|
|
4
|
+
import { bM as b, bJ as x, bO as P, bF as j, X as B, am as q, T as U, V, M as w, I as z, U as J, f } from "./form-BG5UjjLA.js";
|
|
5
|
+
import { CheckboxGroup as K, CheckboxField as Q, CheckboxButton as X } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { D as W, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as Y, g as $ } from "./field-label-headless-Bd00Hl2z.js";
|
|
8
|
+
import { D as W, E as Z } from "./field-error-headless-RTyrenpC.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-C8jFeDrq.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
14
|
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), M = m(t, o.Error), h = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -28,7 +28,7 @@ const o = ({ children: t, className: n }) => {
|
|
|
28
28
|
required: c,
|
|
29
29
|
onBlur: u,
|
|
30
30
|
onFocus: p
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(K, {
|
|
32
32
|
className: n,
|
|
33
33
|
"aria-labelledby": _,
|
|
34
34
|
value: h,
|
|
@@ -56,7 +56,7 @@ const o = ({ children: t, className: n }) => {
|
|
|
56
56
|
className: t
|
|
57
57
|
}), ne = ({ className: t, ...n }) => {
|
|
58
58
|
var u, p;
|
|
59
|
-
const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = s.media) == null ? void 0 : u.image, r = l &&
|
|
59
|
+
const { option: s } = n, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = s.media) == null ? void 0 : u.image, r = l && $(l, l.width, l.height);
|
|
60
60
|
if (!l || !r)
|
|
61
61
|
return /* @__PURE__ */ e.createElement("div", {
|
|
62
62
|
className: t,
|
|
@@ -86,12 +86,12 @@ const o = ({ children: t, className: n }) => {
|
|
|
86
86
|
}));
|
|
87
87
|
}, l);
|
|
88
88
|
const C = m(t, d.Input), L = m(t, d.Image), g = m(t, d.Label);
|
|
89
|
-
return /* @__PURE__ */ e.createElement(
|
|
89
|
+
return /* @__PURE__ */ e.createElement(Q, {
|
|
90
90
|
value: a.label,
|
|
91
91
|
isDisabled: r,
|
|
92
92
|
isReadOnly: c,
|
|
93
93
|
isInvalid: u
|
|
94
|
-
}, /* @__PURE__ */ e.createElement(
|
|
94
|
+
}, /* @__PURE__ */ e.createElement(X, {
|
|
95
95
|
ref: p,
|
|
96
96
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
97
97
|
className: n,
|
|
@@ -105,7 +105,7 @@ const o = ({ children: t, className: n }) => {
|
|
|
105
105
|
d.Input = ae;
|
|
106
106
|
d.Image = ne;
|
|
107
107
|
d.Label = se;
|
|
108
|
-
o.Label =
|
|
108
|
+
o.Label = Y;
|
|
109
109
|
o.Options = N;
|
|
110
110
|
N.Option = d;
|
|
111
111
|
o.Description = W;
|
|
@@ -127,7 +127,7 @@ const le = "_options_j8uno_1", ie = "_optionInput_j8uno_33", re = "_option_j8uno
|
|
|
127
127
|
hover: E.optionHover
|
|
128
128
|
}, Ie = () => {
|
|
129
129
|
const t = oe({
|
|
130
|
-
globalClasses:
|
|
130
|
+
globalClasses: J,
|
|
131
131
|
moduleClasses: ue
|
|
132
132
|
}), n = j(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
|
|
133
133
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as S, a as
|
|
1
|
+
import { bv as n } from "./form-BG5UjjLA.js";
|
|
2
|
+
import { A as S, a as g, C as p, aZ as N, bf as q, bg as D, bx as L } from "./form-BG5UjjLA.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -53,9 +53,9 @@ function m(e, r) {
|
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
55
|
S as ADDRESS_FORM_IDS,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
g as ADDRESS_FORM_ID_BY_COUNTRY,
|
|
57
|
+
p as COUNTRY_CODES,
|
|
58
|
+
N as MultilineAddressToolkit,
|
|
59
59
|
m as formatMultilineAddress,
|
|
60
60
|
q as getCountryField,
|
|
61
61
|
D as getCountryFieldLayout,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R,
|
|
2
|
-
import {
|
|
1
|
+
import { e as R, b5 as _, bk as fe, b6 as O, aM as Ge, B as Be, a_ as qe, aT as He, aS as A, b0 as le, b9 as re, b3 as Ce, c as B, aU as M, bw as Ee, aW as je, aV as Te, aX as q } from "./form-BG5UjjLA.js";
|
|
2
|
+
import { br as Sn } from "./form-BG5UjjLA.js";
|
|
3
3
|
import Xe from "ajv";
|
|
4
4
|
import ke from "ajv-errors";
|
|
5
5
|
import We from "ajv-formats";
|
|
6
6
|
import Ke from "fast-deep-equal";
|
|
7
7
|
import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
|
|
8
8
|
import Je from "libphonenumber-js/metadata.max.json";
|
|
9
|
-
import { p as Qe, i as et } from "./date-availability-
|
|
10
|
-
import { a as Cn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-C9EOQUiy.js";
|
|
10
|
+
import { a as Cn } from "./date-availability-C9EOQUiy.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|