@wix/form-elements 1.216.0 → 1.218.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-obvkIxlW.js → appointment-rac-BHOy_R7-.js} +4 -4
- package/dist/component/{bookings-address-rac-CZa9a87G.js → bookings-address-rac-BCrQv66p.js} +1 -1
- package/dist/component/{bookings-email-rac-m6v3w8mr.js → bookings-email-rac-DmRfdxfb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Mofwr9rJ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
- package/dist/component/{bookings-header-rac-Do1DvJ7m.js → bookings-header-rac-CO6AOevd.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BlRF6uxD.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-dEw_cBua.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
- package/dist/component/{bookings-phone-rac-DSHi8EoI.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D1pEioKF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
- package/dist/component/{checkbox-field-rac-DB6OkQVn.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DaZpfrAT.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DQyoeeOu.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
- package/dist/component/{checkbox-group-rac-K1CohuW5.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
- package/dist/component/{checkbox-rac-CGPLFefU.js → checkbox-rac-CZtOcpN3.js} +1 -1
- package/dist/component/{contacts-address-rac-D_whIRtO.js → contacts-address-rac-CTcU_s2X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-yvBgsleM.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
- package/dist/component/{contacts-company-rac-dv-M3X8Q.js → contacts-company-rac-BFa1_U3K.js} +1 -1
- package/dist/component/{contacts-email-rac-CKFkxHeH.js → contacts-email-rac-DnAo-YRv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DH_mqqVL.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D1hViu7t.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
- package/dist/component/{contacts-phone-rac-D5lEUsgX.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
- package/dist/component/{contacts-position-rac-C5WN-obt.js → contacts-position-rac-CvMNYTKL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0TeOnX-.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-K4f8cUph.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
- package/dist/component/{date-availability-ta65eupL.js → date-availability-5zvsa_GI.js} +1 -1
- package/dist/component/{date-input-field-rac-Bqkxxe1x.js → date-input-field-rac-BQuCwFBz.js} +43 -43
- package/dist/component/{date-input-rac-DOrOad7M.js → date-input-rac-DKzwySbG.js} +1 -1
- package/dist/component/{date-picker-field-rac-dOXkkSun.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
- package/dist/component/{date-picker-rac-D8KBZ1cw.js → date-picker-rac-DjYsBhgo.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BCHUvKca.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
- package/dist/component/{date-time-input-rac-BDFKogee.js → date-time-input-rac-FbqGdzfB.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D5KPRINX.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x-lXF3ag.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-B5K5u_Ps.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iVMwamqD.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B44HQTxy.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
- package/dist/component/{dext-email-rac-B7QAR6VC.js → dext-email-rac-BY3bKE0q.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNa31Dkr.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
- package/dist/component/{dext-phone-rac-28tGCd-t.js → dext-phone-rac-LT9InJXw.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bl2Ge5R5.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BkH9oIi5.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
- package/dist/component/{dext-tags-rac-B5FVVp1v.js → dext-tags-rac-BcW2-hht.js} +2 -2
- package/dist/component/{dext-text-area-rac-DKm2CHff.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
- package/dist/component/{dext-text-input-rac-BC55g3Hi.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BhoiLcDo.js → dext-url-input-rac-DKPl-POV.js} +1 -1
- package/dist/component/{donation-rac-BKjG_IJW.js → donation-rac-B9w7zHLs.js} +50 -50
- package/dist/component/{dropdown-field-rac-B7Xh6cx8.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
- package/dist/component/{dropdown-rac-D8P7PqXg.js → dropdown-rac-D4zhCab8.js} +1 -1
- package/dist/component/{ecom-address-rac-pQw85I2u.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CtHEpz27.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
- package/dist/component/{email-input-field-rac-DJKj9_MB.js → email-input-field-rac-DX-z3AgN.js} +29 -29
- package/dist/component/{events-repeater-rac-ByGRYJRW.js → events-repeater-rac-XGxIXTW0.js} +29 -29
- package/dist/component/{events-rsvp-rac-CxCauRvS.js → events-rsvp-rac-CMEcer8W.js} +3 -3
- package/dist/component/{field-error-headless-Eh1lMElk.js → field-error-headless-fX6PeZaI.js} +1 -1
- package/dist/component/{field-label-headless-BqMxU6y-.js → field-label-headless-CoLjciGG.js} +5 -5
- package/dist/component/{file-upload-rac-C-3Xb3kq.js → file-upload-rac-N6_i0ky0.js} +88 -88
- package/dist/component/{fixed-payment-rac-XxysAIq7.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
- package/dist/component/{form-DQjFn9dy.js → form-cgY_BDTU.js} +1444 -1426
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9tk53e6.js → header-field-rac-CwNoeHks.js} +2 -2
- package/dist/component/{header-rac-CrgF_o1e.js → header-rac-DefKb4Vd.js} +1 -1
- package/dist/component/{image-choice-rac-N7NLy50u.js → image-choice-rac-CZFYVSzP.js} +25 -25
- package/dist/component/{index-CUqQt_K0.js → index-D1ybDmS5.js} +2 -2
- package/dist/component/{index-D539Cefk.js → index-DUVXPUGc.js} +513 -462
- package/dist/component/{isObjectLike-BXMsjR41.js → isObjectLike-93vxyYs1.js} +1 -1
- package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
- package/dist/component/{multiline-address-rac-C-8KYUEy.js → multiline-address-rac-CoF0BwJI.js} +1 -1
- package/dist/component/{number-input-field-rac-DrpgAvrT.js → number-input-field-rac-BVdfzTwW.js} +21 -21
- package/dist/component/{number-input-rac-hZ1UmeEv.js → number-input-rac-D-A2ybtN.js} +1 -1
- package/dist/component/{password-rac-DU5Zii-x.js → password-rac-CbUBNreW.js} +26 -26
- package/dist/component/{payment-input-rac-BzDtJSoa.js → payment-input-rac-BXdDXgXp.js} +46 -46
- package/dist/component/{phone-input-field-rac-CBviQ-on.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
- package/dist/component/{phone-rac-B4n-wlvj.js → phone-rac-D3g5Pi2p.js} +1 -1
- package/dist/component/{product-list-rac-CYxJDesp.js → product-list-rac-gJvJaUnQ.js} +35 -35
- package/dist/component/{quiz-radio-group-rac-BLGXjhrS.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
- package/dist/component/{radio-button-module-classes-D0gXibxL.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
- package/dist/component/{radio-group-field-rac-D3JvbED7.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
- package/dist/component/{radio-group-rac-CTk1SQPS.js → radio-group-rac-fYuYtO48.js} +1 -1
- package/dist/component/{rating-input-field-rac-hDcxRY-7.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
- package/dist/component/{rating-input-rac-CaEUM0ek.js → rating-input-rac-CiWqxkPO.js} +1 -1
- package/dist/component/{rich-content-rac.module-D11y-VmE.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
- package/dist/component/{rich-text-field-rac-BNB_Ek6y.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
- package/dist/component/{rich-text-rac-Jo_aEgLC.js → rich-text-rac-BngE_MAC.js} +1 -1
- package/dist/component/{service-dropdown-rac-CzSP8CC_.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
- package/dist/component/{services-multi-choice-rac-aS5N5-xK.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
- package/dist/component/{signature-rac-_tiY8h_q.js → signature-rac-BCNYIwad.js} +41 -41
- package/dist/component/{submit-button-rac-DKc6QhMf.js → submit-button-rac-CyyEQGsz.js} +10 -10
- package/dist/component/{tags-field-rac-BCO7fpBv.js → tags-field-rac-k3HHiR5C.js} +24 -24
- package/dist/component/{tags-rac-q3HNn7ue.js → tags-rac-nOXYrsHv.js} +1 -1
- package/dist/component/{text-area-field-rac-BtQ8MQSN.js → text-area-field-rac-CwpxShM0.js} +22 -22
- package/dist/component/{text-area-rac-Dc2q2Oxx.js → text-area-rac-CkKcWyW5.js} +1 -1
- package/dist/component/{text-input-field-rac-DO5PDRBN.js → text-input-field-rac-DvIwNwn3.js} +3 -3
- package/dist/component/{text-input-headless-BGSp91Fx.js → text-input-headless-vfGxjFpa.js} +9 -9
- package/dist/component/{text-input-rac-B2OO3yVY.js → text-input-rac-DoVI2HNp.js} +1 -1
- package/dist/component/{time-input-rac-BICb4Q3S.js → time-input-rac-DPbbdnl3.js} +16 -16
- package/dist/component/{url-input-field-rac-ptvkhiHT.js → url-input-field-rac-CiZi4oVe.js} +20 -20
- package/dist/component/{url-input-rac-DOLmuZEu.js → url-input-rac-C-IvLpA8.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CJmAINAg.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DA0MtxzO.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
- package/dist/component/{use-element-state-class-name-ByxBZ_3F.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-lKS_yzxr.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ByGtfX25.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
- package/dist/component/{use-service-options-base-CsY2G8DG.js → use-service-options-base-BGB82e2d.js} +4 -4
- package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-B3NKIdbr.js +0 -1664
- package/dist/component/use-text-input-class-name-CbJQlesN.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 { bN as u, bo as i, bn as C, bq as R, aY as T, aG as d } from "./form-cgY_BDTU.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-BjcbV5CK.js";
|
|
5
5
|
const f = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import e, { useRef as S, useMemo as G, useCallback as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useRef as S, useMemo as G, useCallback as P } from "react";
|
|
2
|
+
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bN as b, bK as x, bW as j, bP as B, bG as q, X as U, am as V, T as K, V as w, M as z, I as Q, U as W, f } from "./form-cgY_BDTU.js";
|
|
5
5
|
import { CheckboxGroup as X, CheckboxField as Y, CheckboxButton as $ } 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 ee, E as te } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as Z } from "./field-label-headless-CoLjciGG.js";
|
|
8
|
+
import { D as ee, E as te } from "./field-error-headless-fX6PeZaI.js";
|
|
9
9
|
import { F as oe } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as ae } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DcyJyi2B.js";
|
|
12
|
-
import { u as ne } from "./use-element-state-class-name-
|
|
12
|
+
import { u as ne } from "./use-element-state-class-name-DiZjY9WE.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
|
-
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: d, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: A } = x(),
|
|
15
|
-
j(
|
|
16
|
-
const D = m(t, o.Label),
|
|
14
|
+
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: d, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: A } = x(), R = S(null);
|
|
15
|
+
j(R);
|
|
16
|
+
const D = m(t, o.Label), h = m(t, o.Options), M = m(t, o.Description), v = m(t, o.Error), y = G(() => a || [], [
|
|
17
17
|
a
|
|
18
|
-
]), H =
|
|
18
|
+
]), H = P((T) => {
|
|
19
19
|
i == null || i(T);
|
|
20
20
|
}, [
|
|
21
21
|
i
|
|
@@ -31,7 +31,7 @@ const o = ({ children: t, className: n }) => {
|
|
|
31
31
|
onBlur: d,
|
|
32
32
|
onFocus: p
|
|
33
33
|
}, /* @__PURE__ */ e.createElement(X, {
|
|
34
|
-
ref:
|
|
34
|
+
ref: R,
|
|
35
35
|
className: n,
|
|
36
36
|
"aria-labelledby": _,
|
|
37
37
|
value: y,
|
|
@@ -40,11 +40,11 @@ const o = ({ children: t, className: n }) => {
|
|
|
40
40
|
isReadOnly: r,
|
|
41
41
|
isRequired: c,
|
|
42
42
|
isInvalid: C
|
|
43
|
-
},
|
|
44
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v,
|
|
43
|
+
}, h)),
|
|
44
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, M)
|
|
45
45
|
});
|
|
46
|
-
},
|
|
47
|
-
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t,
|
|
46
|
+
}, N = ({ children: t, className: n }) => {
|
|
47
|
+
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t, N.Option);
|
|
48
48
|
return /* @__PURE__ */ e.createElement("div", {
|
|
49
49
|
className: n,
|
|
50
50
|
"data-columns": i
|
|
@@ -108,9 +108,9 @@ const o = ({ children: t, className: n }) => {
|
|
|
108
108
|
u.Input = se;
|
|
109
109
|
u.Image = le;
|
|
110
110
|
u.Label = ie;
|
|
111
|
-
o.Label =
|
|
112
|
-
o.Options =
|
|
113
|
-
|
|
111
|
+
o.Label = J;
|
|
112
|
+
o.Options = N;
|
|
113
|
+
N.Option = u;
|
|
114
114
|
o.Description = ee;
|
|
115
115
|
o.Error = te;
|
|
116
116
|
const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno_1", pe = "_optionHover_j8uno_64", Ee = "_optionSelected_j8uno_64", ue = "_optionLabel_j8uno_104", de = "_optionImage_j8uno_144", E = {
|
|
@@ -121,7 +121,7 @@ const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno
|
|
|
121
121
|
optionSelected: Ee,
|
|
122
122
|
optionLabel: ue,
|
|
123
123
|
optionImage: de
|
|
124
|
-
}, Ie = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
124
|
+
}, Ie = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(k, {
|
|
125
125
|
content: t,
|
|
126
126
|
locale: n
|
|
127
127
|
}), _e = {
|
|
@@ -130,7 +130,7 @@ const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno
|
|
|
130
130
|
hover: E.optionHover
|
|
131
131
|
}, Oe = () => {
|
|
132
132
|
const t = ne({
|
|
133
|
-
globalClasses:
|
|
133
|
+
globalClasses: W,
|
|
134
134
|
moduleClasses: _e
|
|
135
135
|
}), n = q(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
|
|
136
136
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
@@ -138,21 +138,21 @@ const re = "_options_j8uno_1", ce = "_optionInput_j8uno_33", me = "_option_j8uno
|
|
|
138
138
|
}, /* @__PURE__ */ e.createElement(o.Label.Required, {
|
|
139
139
|
className: I(V, O.requiredMark)
|
|
140
140
|
})), /* @__PURE__ */ e.createElement(o.Options, {
|
|
141
|
-
className: I(
|
|
141
|
+
className: I(K, E.options)
|
|
142
142
|
}, /* @__PURE__ */ e.createElement(o.Options.Option, {
|
|
143
143
|
className: t
|
|
144
144
|
}, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
|
|
145
145
|
className: E.optionInput
|
|
146
146
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
|
|
147
|
-
className: I(
|
|
147
|
+
className: I(w, E.optionImage, n)
|
|
148
148
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
|
|
149
149
|
className: E.optionLabel
|
|
150
150
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
151
151
|
className: I(z, O.error)
|
|
152
152
|
}, /* @__PURE__ */ e.createElement(ae, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
153
|
-
className: I(
|
|
153
|
+
className: I(Q, O.description)
|
|
154
154
|
}, Ie));
|
|
155
|
-
},
|
|
155
|
+
}, Me = () => /* @__PURE__ */ e.createElement(Oe, null);
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
Me as ImageChoiceRAC
|
|
158
158
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bv as n } from "./form-
|
|
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-
|
|
1
|
+
import { bv as n } from "./form-cgY_BDTU.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-cgY_BDTU.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|