@wix/form-elements 1.104.0 → 1.106.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-D2F4vgf1.js +1011 -0
- package/dist/component/{bookings-address-rac-bOPrbrFn.js → bookings-address-rac-_5S8J8_i.js} +1 -1
- package/dist/component/{bookings-email-rac-DSpy4yfX.js → bookings-email-rac-6vmDR9nS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Dw0U4kHG.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
- package/dist/component/{bookings-header-rac-Czrqn8yy.js → bookings-header-rac-B3dsEwzR.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CVxRqG5b.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-s_2BlBcX.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
- package/dist/component/{bookings-phone-rac-B2SgZsIb.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-b3K__6c9.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
- package/dist/component/{checkbox-field-rac-Gt2JioDC.js → checkbox-field-rac-boTtXVEt.js} +18 -22
- package/dist/component/{checkbox-group-field-headless-cKefepGi.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-B14obB-6.js → checkbox-group-field-rac-DrDTgHMg.js} +13 -13
- package/dist/component/{checkbox-group-rac-B6cixM2X.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
- package/dist/component/{checkbox-rac-COwblKlm.js → checkbox-rac-YSLE-RnG.js} +1 -1
- package/dist/component/{contacts-address-rac-BJrwGPo4.js → contacts-address-rac-C653yaHZ.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BaotTtEN.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
- package/dist/component/{contacts-company-rac-BjTc-e_S.js → contacts-company-rac-BglKOoTG.js} +1 -1
- package/dist/component/{contacts-email-rac-DVFF485m.js → contacts-email-rac-D6m7ynfc.js} +1 -1
- package/dist/component/{contacts-first-name-rac-C4Fht3FS.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BTbOJedX.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
- package/dist/component/{contacts-phone-rac-GePv5BT7.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
- package/dist/component/{contacts-position-rac-BZ1ASqF_.js → contacts-position-rac-BUDUv7lv.js} +1 -1
- package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
- package/dist/component/{contacts-tax-id-rac-A2tdbIvB.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
- package/dist/component/{date-availability-b1h4CrSQ.js → date-availability-XjBFq8jt.js} +1 -1
- package/dist/component/{date-input-field-rac-moOjGzUv.js → date-input-field-rac-aY2zuuKs.js} +14 -14
- package/dist/component/{date-input-rac-DTqZCOqB.js → date-input-rac-DRiP2_97.js} +1 -1
- package/dist/component/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js} +70 -70
- package/dist/component/{date-picker-rac-B2fqOP6H.js → date-picker-rac-DHHUh8vn.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtLGRGf5.js → date-time-input-field-rac-DP_StuLr.js} +27 -27
- package/dist/component/{date-time-input-rac-CRfUmOim.js → date-time-input-rac-B11KIxsf.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BC6EGH5R.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DyydPJyC.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-DhssYv6t.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Bn0C1Ry8.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
- package/dist/component/{dext-email-rac-DKhk_v_w.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
- package/dist/component/{dext-number-input-rac-u92WD8VD.js → dext-number-input-rac-DopfSyFi.js} +1 -1
- package/dist/component/{dext-phone-rac-DTzdQAe9.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
- package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DPdyJsCZ.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
- package/dist/component/{dext-tags-rac-Bh3pQ-Ck.js → dext-tags-rac-TsUPoImO.js} +2 -2
- package/dist/component/{dext-text-area-rac-Cefsz8ct.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
- package/dist/component/{dext-text-input-rac-Bj_pAChP.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bk_kwZzM.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
- package/dist/component/{donation-rac-wRWkCjYg.js → donation-rac-BYKFtsyR.js} +55 -55
- package/dist/component/{dropdown-field-headless-CedOXKAH.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
- package/dist/component/{dropdown-field-rac-CENh9Khw.js → dropdown-field-rac-CCAGSMm3.js} +6 -6
- package/dist/component/{dropdown-rac-CeCNULzS.js → dropdown-rac-C_EqUsZ1.js} +1 -1
- package/dist/component/{ecom-address-rac-BLJ0UHrV.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-xJDzCasS.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
- package/dist/component/{email-input-field-rac-CeTVUWeX.js → email-input-field-rac-B2kqQ6yo.js} +14 -14
- package/dist/component/{events-repeater-rac-CT9LAF22.js → events-repeater-rac--4OnUxWE.js} +55 -55
- package/dist/component/{events-rsvp-rac-Bu8tqcVi.js → events-rsvp-rac-CczCoo3T.js} +13 -13
- package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js} +1 -1
- package/dist/component/{field-label-headless-yc46NPmu.js → field-label-headless-Du4ckIVy.js} +1 -1
- package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
- package/dist/component/{file-upload-rac-LkVTFtZb.js → file-upload-rac-DbdkUbWM.js} +80 -80
- package/dist/component/{fixed-payment-rac-DEbV0w-8.js → fixed-payment-rac-f9-01iDN.js} +8 -8
- package/dist/component/{form-DV231fmJ.js → form-DQauhsho.js} +69 -69
- package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BzB5dm6C.js → header-field-rac-DamDk5BR.js} +3 -3
- package/dist/component/{header-rac-BzS5HfUt.js → header-rac-CR9T3Pnu.js} +1 -1
- package/dist/component/{image-choice-rac-8YqUqetS.js → image-choice-rac-DJ_8v467.js} +13 -13
- package/dist/component/{index-CMtf-So7.js → index-BB7d_9Dv.js} +4 -4
- package/dist/component/{index-BzRG28bH.js → index-CcUTIUWM.js} +2 -2
- package/dist/component/{isObjectLike--gPCPyGa.js → isObjectLike-xvPa_08X.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CJWdu5LV.js → multiline-address-field-rac-CyaFOloE.js} +80 -80
- package/dist/component/{multiline-address-rac-Cw5VweB0.js → multiline-address-rac-CaHGUN_f.js} +1 -1
- package/dist/component/{number-input-field-rac-D8NRpCCM.js → number-input-field-rac-BuYUzDWV.js} +15 -15
- package/dist/component/{number-input-rac-CM_CQHE_.js → number-input-rac-DMKX6nhk.js} +1 -1
- package/dist/component/{password-rac-I6vynKG4.js → password-rac-0RUXPAn6.js} +38 -38
- package/dist/component/{payment-input-rac-B4rXCs7V.js → payment-input-rac-CHSZ3-Lt.js} +17 -17
- package/dist/component/{phone-input-field-rac-B-k2e0Np.js → phone-input-field-rac-JmIFcP1e.js} +29 -29
- package/dist/component/{phone-rac-D443psAx.js → phone-rac-BLRnAPXP.js} +1 -1
- package/dist/component/{product-list-rac-B6qUWxkz.js → product-list-rac-BkF5tDwt.js} +11 -11
- package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
- package/dist/component/{radio-button-module-classes--on7xGzb.js → radio-button-module-classes-IOulhuSH.js} +28 -28
- package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
- package/dist/component/{radio-group-rac-CjbSQydw.js → radio-group-rac-BiW-9Abj.js} +1 -1
- package/dist/component/{rating-input-field-rac-yVgqxBKi.js → rating-input-field-rac-B9cwaROK.js} +30 -30
- package/dist/component/{rating-input-rac-D6BKC4oS.js → rating-input-rac-BpwlNvzQ.js} +1 -1
- package/dist/component/{rich-content-rac.module-Ca4LYv7k.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
- package/dist/component/{rich-text-field-rac-DIeBS-ux.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
- package/dist/component/{rich-text-rac-BgjP0ngh.js → rich-text-rac-VfeZxS27.js} +1 -1
- package/dist/component/{service-dropdown-rac-DjOMT7dx.js → service-dropdown-rac-BCfs8IhW.js} +18 -18
- package/dist/component/{services-multi-choice-rac-C0Rp9Sng.js → services-multi-choice-rac-CCqdF_7P.js} +8 -8
- package/dist/component/{signature-rac-CFT-Fni_.js → signature-rac-DOyMo3u0.js} +73 -73
- package/dist/component/{submit-button-rac-BOluGZI0.js → submit-button-rac-C2uA5DeE.js} +11 -11
- package/dist/component/{tags-field-rac-CP0RS4SG.js → tags-field-rac-C_uIw2by.js} +36 -36
- package/dist/component/{tags-rac-Dtp3VCKk.js → tags-rac-1pQ-fpe_.js} +1 -1
- package/dist/component/{text-area-field-rac-DUKg8kgN.js → text-area-field-rac-DqlOkm7e.js} +23 -23
- package/dist/component/{text-area-rac-Clh7zMTL.js → text-area-rac-DPdkrFcH.js} +1 -1
- package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js} +6 -6
- package/dist/component/{text-input-headless-BBv0nukI.js → text-input-headless-DD__2DFf.js} +3 -3
- package/dist/component/{text-input-rac-FVD6iJ1i.js → text-input-rac-DRHyQEH7.js} +1 -1
- package/dist/component/{time-input-rac-DsctZB28.js → time-input-rac-BJPIymQY.js} +22 -22
- package/dist/component/{url-input-field-rac-Du4HlhH3.js → url-input-field-rac-CFDYkZ6I.js} +15 -15
- package/dist/component/{url-input-rac-3QPdK0xz.js → url-input-rac-C0ChQUzq.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-Bze6ghRl.js → use-dropdown-option-class-name-3L5ZmNLK.js} +3 -3
- package/dist/component/{use-element-state-class-name-4CDAF1S-.js → use-element-state-class-name-BatTc2bw.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown--w4f5dWP.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
- package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js} +1 -1
- package/dist/component/{use-text-input-class-name-Ch91llI_.js → use-text-input-class-name-LQ5S-NLh.js} +4 -4
- package/package.json +5 -5
- package/dist/component/appointment-rac-CCciYQ_h.js +0 -1012
- package/dist/component/contacts-subscribe-rac-CmyBcsLP.js +0 -13
- package/dist/component/field-rac.module-DobpyqOd.js +0 -26
- package/dist/component/form-element-classes-BtKlobUX.js +0 -192
- package/dist/component/quiz-radio-group-rac-DdPJQmV5.js +0 -13
- package/dist/component/radio-group-field-rac-CjiGr1rO.js +0 -50
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
|
-
import
|
|
3
|
-
import r, { useCallback as
|
|
4
|
-
import { TextField as
|
|
5
|
-
import { ak as p, ah as d, am as x } from "./form-
|
|
2
|
+
import l from "classnames";
|
|
3
|
+
import r, { useCallback as T, useRef as O } from "react";
|
|
4
|
+
import { TextField as S, TextArea as y } from "react-aria-components";
|
|
5
|
+
import { ak as p, ah as d, am as x } from "./form-DQauhsho.js";
|
|
6
6
|
import { f as i } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as h, E as g } from "./field-error-headless-
|
|
8
|
-
import { L as v } from "./field-label-headless-
|
|
7
|
+
import { D as h, E as g } from "./field-error-headless-D3-1L5sf.js";
|
|
8
|
+
import { L as v } from "./field-label-headless-Du4ckIVy.js";
|
|
9
9
|
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
10
|
-
import { s as c } from "./field-rac.module-
|
|
11
|
-
import {
|
|
12
|
-
import { u as V } from "./use-text-input-class-name-
|
|
10
|
+
import { s as c } from "./field-rac.module-B4l_0KRU.js";
|
|
11
|
+
import { v as q, J as B, o as k, j as P } from "./form-element-classes-bLFmhsKw.js";
|
|
12
|
+
import { u as V } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
13
13
|
const e = ({ children: t }) => {
|
|
14
|
-
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly:
|
|
14
|
+
const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: o, onBlur: E, onFocus: f, FieldLayout: I, hasError: b } = p(), { labelId: F } = d(), L = T((A) => {
|
|
15
15
|
s(A);
|
|
16
16
|
}, [
|
|
17
17
|
s
|
|
@@ -19,12 +19,12 @@ const e = ({ children: t }) => {
|
|
|
19
19
|
return /* @__PURE__ */ r.createElement(I, {
|
|
20
20
|
fieldId: a,
|
|
21
21
|
renderLabel: () => R,
|
|
22
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
22
|
+
renderInput: () => /* @__PURE__ */ r.createElement(S, {
|
|
23
23
|
"aria-labelledby": F,
|
|
24
24
|
value: m ?? "",
|
|
25
25
|
onChange: L,
|
|
26
26
|
isDisabled: u,
|
|
27
|
-
isReadOnly:
|
|
27
|
+
isReadOnly: o,
|
|
28
28
|
isRequired: n,
|
|
29
29
|
isInvalid: b,
|
|
30
30
|
onBlur: E,
|
|
@@ -33,10 +33,10 @@ const e = ({ children: t }) => {
|
|
|
33
33
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
34
34
|
});
|
|
35
35
|
}, j = ({ className: t }) => {
|
|
36
|
-
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n =
|
|
36
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = O(null);
|
|
37
37
|
return x(() => {
|
|
38
|
-
var
|
|
39
|
-
(
|
|
38
|
+
var o;
|
|
39
|
+
(o = n.current) == null || o.focus();
|
|
40
40
|
}, s), /* @__PURE__ */ r.createElement(y, {
|
|
41
41
|
ref: n,
|
|
42
42
|
id: a,
|
|
@@ -49,24 +49,24 @@ e.Label = v;
|
|
|
49
49
|
e.Input = j;
|
|
50
50
|
e.Description = h;
|
|
51
51
|
e.Error = g;
|
|
52
|
-
const w = "_input_ug5v8_1",
|
|
52
|
+
const w = "_input_ug5v8_1", J = {
|
|
53
53
|
input: w
|
|
54
|
-
},
|
|
54
|
+
}, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
|
|
55
55
|
content: t,
|
|
56
56
|
locale: a
|
|
57
57
|
}), te = () => {
|
|
58
|
-
const t = V(
|
|
58
|
+
const t = V(J.input);
|
|
59
59
|
return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
60
|
-
className:
|
|
60
|
+
className: l(q, c.label)
|
|
61
61
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
62
|
-
className:
|
|
62
|
+
className: l(B, c.requiredMark)
|
|
63
63
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
64
64
|
className: t
|
|
65
65
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
66
|
-
className:
|
|
66
|
+
className: l(k, c.error)
|
|
67
67
|
}, /* @__PURE__ */ r.createElement(M, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
68
|
-
className:
|
|
69
|
-
},
|
|
68
|
+
className: l(P, c.description)
|
|
69
|
+
}, Q));
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
72
|
te as T
|
package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { RicosViewer as l } from "@wix/ricos/viewer";
|
|
2
2
|
import t from "classnames";
|
|
3
3
|
import e from "react";
|
|
4
|
-
import { T as r } from "./text-input-headless-
|
|
4
|
+
import { T as r } from "./text-input-headless-DD__2DFf.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
|
-
import { s as a } from "./field-rac.module-
|
|
7
|
-
import {
|
|
8
|
-
import { u as p } from "./use-text-input-class-name-
|
|
6
|
+
import { s as a } from "./field-rac.module-B4l_0KRU.js";
|
|
7
|
+
import { v as n, J as c, o as E, j as i } from "./form-element-classes-bLFmhsKw.js";
|
|
8
|
+
import { u as p } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
9
9
|
const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
10
10
|
content: s,
|
|
11
11
|
locale: m
|
|
12
|
-
}),
|
|
12
|
+
}), C = () => {
|
|
13
13
|
const s = p();
|
|
14
14
|
return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
|
|
15
15
|
className: t(n, a.label)
|
|
@@ -24,5 +24,5 @@ const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
|
|
|
24
24
|
}, I));
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
C as T
|
|
28
28
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
2
|
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
-
import { ak as d, ah as c, am as v } from "./form-
|
|
3
|
+
import { ak as d, ah as c, am as v } from "./form-DQauhsho.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as g } from "./field-error-headless-
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-D3-1L5sf.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-Du4ckIVy.js";
|
|
7
7
|
const e = ({ children: r }) => {
|
|
8
8
|
const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
|
|
9
9
|
return /* @__PURE__ */ t.createElement(f, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import e, { useCallback as V, useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useCallback as V, useRef as v, useContext as x } from "react";
|
|
2
|
+
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import c from "classnames";
|
|
4
|
-
import { parseTime as
|
|
4
|
+
import { parseTime as q } from "@internationalized/date";
|
|
5
5
|
import { TimeField as B, DateInput as U, DateSegment as _, TimeFieldStateContext as j } from "react-aria-components";
|
|
6
|
-
import { ak as p, ah as w, au as
|
|
6
|
+
import { ak as p, ah as w, au as S, am as J } from "./form-DQauhsho.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { L as
|
|
8
|
+
import { D as Q, E as z } from "./field-error-headless-D3-1L5sf.js";
|
|
9
|
+
import { L as G } from "./field-label-headless-Du4ckIVy.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { H as
|
|
12
|
-
import { s as f } from "./field-rac.module-
|
|
13
|
-
import {
|
|
14
|
-
import { u as $ } from "./use-text-input-class-name-
|
|
11
|
+
import { H as T } from "./custom-focus-class-_483Pkwp.js";
|
|
12
|
+
import { s as f } from "./field-rac.module-B4l_0KRU.js";
|
|
13
|
+
import { v as W, J as X, o as Y, j as Z } from "./form-element-classes-bLFmhsKw.js";
|
|
14
|
+
import { u as $ } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
15
15
|
const r = ({ children: t }) => {
|
|
16
16
|
const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: E, use24HourFormat: C, FieldLayout: g, hasError: I } = p(), { inputId: D, ariaDescribedBy: L, labelId: R } = w(), b = V((M) => {
|
|
17
17
|
const H = ae(M);
|
|
@@ -66,8 +66,8 @@ const r = ({ children: t }) => {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}, ee = ({ className: t, ...n }) => {
|
|
69
|
-
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } =
|
|
70
|
-
|
|
69
|
+
const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = S(), a = v(null);
|
|
70
|
+
J(() => {
|
|
71
71
|
var E;
|
|
72
72
|
(E = a.current) == null || E.focus();
|
|
73
73
|
}, l);
|
|
@@ -81,7 +81,7 @@ const r = ({ children: t }) => {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}, te = ({ className: t, ...n }) => {
|
|
84
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
84
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = l ? void 0 : i("field.date.placeholder.minute");
|
|
85
85
|
return /* @__PURE__ */ e.createElement(_, {
|
|
86
86
|
segment: o,
|
|
87
87
|
className: t,
|
|
@@ -90,7 +90,7 @@ const r = ({ children: t }) => {
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}, re = ({ className: t, ...n }) => {
|
|
93
|
-
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } =
|
|
93
|
+
const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = S(), s = x(j), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
|
|
94
94
|
return /* @__PURE__ */ e.createElement(_, {
|
|
95
95
|
segment: o,
|
|
96
96
|
className: t,
|
|
@@ -103,15 +103,15 @@ const r = ({ children: t }) => {
|
|
|
103
103
|
u.Hour = ee;
|
|
104
104
|
u.Minute = te;
|
|
105
105
|
u.Period = re;
|
|
106
|
-
r.Label =
|
|
106
|
+
r.Label = G;
|
|
107
107
|
r.Time = u;
|
|
108
|
-
r.Description =
|
|
109
|
-
r.Error =
|
|
108
|
+
r.Description = Q;
|
|
109
|
+
r.Error = z;
|
|
110
110
|
function ne(t) {
|
|
111
111
|
if (!t)
|
|
112
112
|
return null;
|
|
113
113
|
try {
|
|
114
|
-
return
|
|
114
|
+
return q(t);
|
|
115
115
|
} catch {
|
|
116
116
|
return null;
|
|
117
117
|
}
|
|
@@ -131,7 +131,7 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
131
131
|
hour: se,
|
|
132
132
|
minute: le,
|
|
133
133
|
period: ie
|
|
134
|
-
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(
|
|
134
|
+
}, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(k, {
|
|
135
135
|
content: t,
|
|
136
136
|
locale: n
|
|
137
137
|
}), me = () => {
|
|
@@ -143,11 +143,11 @@ const oe = "_time_10p0h_1", se = "_hour_10p0h_14", le = "_minute_10p0h_15", ie =
|
|
|
143
143
|
})), /* @__PURE__ */ e.createElement(r.Time, {
|
|
144
144
|
className: t
|
|
145
145
|
}, /* @__PURE__ */ e.createElement(r.Time.Hour, {
|
|
146
|
-
className: c(h.hour,
|
|
146
|
+
className: c(h.hour, T)
|
|
147
147
|
}), /* @__PURE__ */ e.createElement(r.Time.Minute, {
|
|
148
|
-
className: c(h.minute,
|
|
148
|
+
className: c(h.minute, T)
|
|
149
149
|
}), /* @__PURE__ */ e.createElement(r.Time.Period, {
|
|
150
|
-
className: c(h.period,
|
|
150
|
+
className: c(h.period, T)
|
|
151
151
|
})), /* @__PURE__ */ e.createElement(r.Error, {
|
|
152
152
|
className: c(Y, f.error)
|
|
153
153
|
}, /* @__PURE__ */ e.createElement(K, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as N } from "@wix/ricos/viewer";
|
|
2
2
|
import i from "classnames";
|
|
3
|
-
import r, { useCallback as
|
|
3
|
+
import r, { useCallback as S, useRef as O } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import { ak as d, ah as E, am as k } from "./form-
|
|
5
|
+
import { ak as d, ah as E, am as k } from "./form-DQauhsho.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as
|
|
8
|
-
import { L as
|
|
9
|
-
import { u as
|
|
7
|
+
import { D as v, E as B } from "./field-error-headless-D3-1L5sf.js";
|
|
8
|
+
import { L as T } from "./field-label-headless-Du4ckIVy.js";
|
|
9
|
+
import { u as g } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
10
|
import { E as M } from "./error-icon-hZxQ6DEy.js";
|
|
11
|
-
import { s as u } from "./field-rac.module-
|
|
12
|
-
import {
|
|
13
|
-
import { u as w } from "./use-text-input-class-name-
|
|
11
|
+
import { s as u } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
+
import { v as P, J as q, o as x, j as U } from "./form-element-classes-bLFmhsKw.js";
|
|
13
|
+
import { u as w } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
14
14
|
const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
15
|
-
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p =
|
|
15
|
+
const { id: o, value: a, onChange: s, disabled: m, readOnly: n, required: l, hasError: I, onBlur: f, onFocus: b, FieldLayout: R } = d(), { labelId: F } = E(), p = g(f), L = c(t, e.Label), D = c(t, e.Input), C = c(t, e.Description), _ = c(t, e.Error), h = S(() => {
|
|
16
16
|
s(V(a)), p();
|
|
17
17
|
}, [
|
|
18
18
|
p,
|
|
@@ -30,7 +30,7 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
30
30
|
isReadOnly: n,
|
|
31
31
|
isRequired: l,
|
|
32
32
|
isInvalid: I,
|
|
33
|
-
onBlur:
|
|
33
|
+
onBlur: h,
|
|
34
34
|
onFocus: b
|
|
35
35
|
}, D),
|
|
36
36
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, C)
|
|
@@ -49,11 +49,11 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
49
49
|
placeholder: a
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
|
-
e.Label =
|
|
52
|
+
e.Label = T;
|
|
53
53
|
e.Input = W;
|
|
54
|
-
e.Description =
|
|
55
|
-
e.Error =
|
|
56
|
-
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(
|
|
54
|
+
e.Description = v;
|
|
55
|
+
e.Error = B;
|
|
56
|
+
const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(N, {
|
|
57
57
|
content: t,
|
|
58
58
|
locale: o
|
|
59
59
|
}), oe = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "classnames";
|
|
2
|
-
import { s as o } from "./field-rac.module-
|
|
3
|
-
import { m as r } from "./form-element-classes-
|
|
4
|
-
import { u as l } from "./use-element-state-class-name-
|
|
2
|
+
import { s as o } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
+
import { m as r } from "./form-element-classes-bLFmhsKw.js";
|
|
4
|
+
import { u as l } from "./use-element-state-class-name-BatTc2bw.js";
|
|
5
5
|
const m = {
|
|
6
6
|
base: o.selectOption,
|
|
7
7
|
selected: o.selectOptionSelected,
|
package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import { aj as v } from "./form-
|
|
2
|
+
import { aj as v } from "./form-DQauhsho.js";
|
|
3
3
|
const j = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ak as l } from "./form-
|
|
2
|
-
import { s } from "./field-rac.module-
|
|
3
|
-
import {
|
|
4
|
-
import { u as i } from "./use-element-state-class-name-
|
|
1
|
+
import { ak as l } from "./form-DQauhsho.js";
|
|
2
|
+
import { s } from "./field-rac.module-B4l_0KRU.js";
|
|
3
|
+
import { O as m } from "./form-element-classes-bLFmhsKw.js";
|
|
4
|
+
import { u as i } from "./use-element-state-class-name-BatTc2bw.js";
|
|
5
5
|
const c = (...e) => {
|
|
6
6
|
const { disabled: a, readOnly: t } = l(), o = i({
|
|
7
7
|
globalClasses: m,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.106.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"test": "vitest",
|
|
26
|
-
"build": "yarn generate-translation-keys && yarn typecheck && NODE_OPTIONS=--max-old-space-size=8192 wix build &&
|
|
26
|
+
"build": "yarn generate-translation-keys && yarn typecheck && NODE_OPTIONS=--max-old-space-size=8192 wix build && yarn build:types",
|
|
27
27
|
"build:component": "NODE_OPTIONS=--max-old-space-size=8192 vite build --config vite.component.config.ts",
|
|
28
28
|
"build:types": "tsc -p tsconfig.types.json && rollup -c rollup.types.config.mjs",
|
|
29
29
|
"dev": "yarn generate-translation-keys && NODE_OPTIONS=--max-old-space-size=8192 wix dev",
|
|
@@ -40,8 +40,7 @@
|
|
|
40
40
|
"builder-sandbox": "builder-sandbox",
|
|
41
41
|
"storybook": "storybook dev -p 6006",
|
|
42
42
|
"storybook:build": "storybook build",
|
|
43
|
-
"generate-translation-keys": "babel-cli"
|
|
44
|
-
"generate-preset-thumbnails": "node scripts/generate-preset-thumbnails.mts"
|
|
43
|
+
"generate-translation-keys": "babel-cli"
|
|
45
44
|
},
|
|
46
45
|
"dependencies": {
|
|
47
46
|
"@babel/runtime": "^7.28.4",
|
|
@@ -108,6 +107,7 @@
|
|
|
108
107
|
"@wix/fed-cli-plugin": "^1.0.1",
|
|
109
108
|
"@wix/fed-cli-sled": "^1.0.39",
|
|
110
109
|
"@wix/fed-cli-vitest": "^1.0.18",
|
|
110
|
+
"@wix/form-fields": "^3.0.0",
|
|
111
111
|
"@wix/form-viewer": "^3.0.0",
|
|
112
112
|
"@wix/react-component-schema": "^1.10.0",
|
|
113
113
|
"@wix/react-component-utils": "^1.14.0",
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "4dda8adc6b1e6b6c2843c62201566779244ac2e0462b68c11d5d50ef"
|
|
160
160
|
}
|