@wix/form-elements 1.62.0 → 1.63.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-Dqib2upI.js → appointment-rac-B1VVk_Ui.js} +3 -3
- package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-IQeHFdHT.js} +1 -1
- package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-z26A790r.js} +1 -1
- package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-Djf0GPP4.js} +1 -1
- package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-CXOzAOpz.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-CbB8alM9.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-CXrLx7Pn.js} +16 -16
- package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-DGYx7h5g.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-viJG57XF.js} +1 -1
- package/dist/component/checkbox-field-rac-e-RAmupX.js +1312 -0
- package/dist/component/{checkbox-group-field-headless-EGVW3vG0.js → checkbox-group-field-headless-Cvia4lL6.js} +30 -30
- package/dist/component/{checkbox-group-field-rac-DUDWNOwV.js → checkbox-group-field-rac-BXxk90dk.js} +1 -1
- package/dist/component/{checkbox-group-rac-DWPClKpf.js → checkbox-group-rac-CDfDTWqz.js} +1 -1
- package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-BRBKYD_5.js} +1 -1
- package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BtWWQi77.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-DaEUXJTf.js} +1 -1
- package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-IgRyjtcM.js} +1 -1
- package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-BS1MDrMk.js} +1 -1
- package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-BAvXypDF.js} +1 -1
- package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-C289RYPl.js} +1 -1
- package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-DIpyskam.js} +1 -1
- package/dist/component/{contacts-position-rac-s1pZ662O.js → contacts-position-rac-nPeh3lKU.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-D_2wIX9p.js → contacts-subscribe-rac-Ci5OLk68.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-3MUvKEqW.js → contacts-tax-id-rac-C4WB-SR0.js} +1 -1
- package/dist/component/{date-availability-CRsSX5_d.js → date-availability-HHjPx4Uv.js} +1 -1
- package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-GFgFcpX2.js} +17 -17
- package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-B9BUEIA-.js} +1 -1
- package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-BfjYIIuY.js} +4 -4
- package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-Bd2UN0ZF.js} +1 -1
- package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-CAXnxLQP.js} +78 -78
- package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BuJ3Awlh.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-DKp4cBVa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-BMu_k06A.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-L3sdldhT.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-UmabFzDN.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-DbjgYaG-.js} +1 -1
- package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-rNudrOOK.js} +1 -1
- package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-hw1FTrJL.js} +1 -1
- package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-DrZ_Vwv2.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DAt2ax-I.js} +2 -2
- package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-BW2Ike11.js} +1 -1
- package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-DDzwlKrR.js} +2 -2
- package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-D0xf4z3z.js} +1 -1
- package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-Da04OLmq.js} +1 -1
- package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-B-g4xTqh.js} +1 -1
- package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-gKeq72jg.js} +10 -10
- package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-Js5TxdU4.js} +14 -14
- package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-BDxcvX00.js} +1 -1
- package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-B5UHNzV-.js} +1 -1
- package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-0zm4bX37.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-DCXoI33l.js} +2 -2
- package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-svf6hUHF.js} +2 -2
- package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-DMIqzuVK.js} +29 -29
- package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-B_YD4ckO.js} +1 -1
- package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DTKnr5Zx.js} +6 -6
- package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-DV4aNd5Y.js} +5 -5
- package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-lGKJjG3m.js} +49 -49
- package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-BVS6glii.js} +13 -13
- package/dist/component/{form-D6A2hUbV.js → form-DzjdnO7t.js} +2262 -2259
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-D3Bi6tTS.js → header-field-rac-tzBH-8Yh.js} +5 -5
- package/dist/component/{header-rac-Blv89pdS.js → header-rac-6thQAvVF.js} +1 -1
- package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Dx1b-saW.js} +23 -23
- package/dist/component/{index-BiYk1mJi.js → index-DIP7KB8P.js} +2 -2
- package/dist/component/{index-Cv3_acT1.js → index-Lnx0829a.js} +4 -4
- package/dist/component/isObjectLike-B_1KizZV.js +86 -0
- package/dist/component/multiline-address-field-rac-BY2SUp2d.js +1613 -0
- package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-BL8Yp4F0.js} +1 -1
- package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-x0yFmXbe.js} +14 -14
- package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-pJXc2YsD.js} +1 -1
- package/dist/component/{password-rac-CD5bSL2g.js → password-rac-B4XCP64b.js} +19 -19
- package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-CZdOAjK4.js} +12 -12
- package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DO_V5Z_T.js} +19 -19
- package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-D16nLDjP.js} +1 -1
- package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-DER8gVqy.js} +44 -44
- package/dist/component/{quiz-radio-group-rac-DaStzNZZ.js → quiz-radio-group-rac-BgTmHHi4.js} +1 -1
- package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-Dt2pU0VV.js} +1 -1
- package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module--sO0VqCA.js} +12 -12
- package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-CqCmtkNQ.js} +1 -1
- package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-xDrHHcL2.js} +10 -10
- package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-Bo5E9N87.js} +1 -1
- package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-CJXbNca9.js} +4 -4
- package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-CkV0Z9F-.js} +5 -5
- package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-59DbKpXz.js} +1 -1
- package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-BLnflnUr.js} +25 -25
- package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-C-bFjwx8.js} +6 -6
- package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-Bb5IaS28.js} +15 -15
- package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-Bjyi8sUA.js} +12 -12
- package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-C_VO3_69.js} +12 -12
- package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CKiutCWe.js} +1 -1
- package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Cg-vIhFe.js} +12 -12
- package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-tMFx38UD.js} +1 -1
- package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-CgN_2hOD.js} +1 -1
- package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-CkhvKrFp.js} +6 -6
- package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-BsyBgd3b.js} +1 -1
- package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BxRVJtHE.js} +12 -12
- package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-B_1yVniS.js} +12 -12
- package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-D8VrKYVe.js} +1 -1
- package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-Ci9gIluo.js} +7 -7
- package/package.json +2 -14
- package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
- package/dist/component/isObject-BAwJJxQ3.js +0 -34
- package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
|
@@ -2,15 +2,15 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
|
|
|
2
2
|
import n from "classnames";
|
|
3
3
|
import r, { useCallback as O, useRef as T } from "react";
|
|
4
4
|
import { TextField as N, TextArea as y } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { ah as E, ae as d, aj as h } from "./form-DzjdnO7t.js";
|
|
6
6
|
import { f as c } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as x, E as
|
|
8
|
-
import { L as
|
|
7
|
+
import { D as x, E as M } from "./field-error-headless-DTKnr5Zx.js";
|
|
8
|
+
import { L as g } from "./field-label-headless-DV4aNd5Y.js";
|
|
9
9
|
import { E as q } from "./error-icon-hZxQ6DEy.js";
|
|
10
10
|
import { s } from "./field-rac.module-DtugsLiL.js";
|
|
11
11
|
import { r as v, H as B, q as P, l as k, h as U } from "./form-element-classes-Bi-nNM8q.js";
|
|
12
12
|
const e = ({ children: t }) => {
|
|
13
|
-
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: I, FieldLayout: f, hasError: F } =
|
|
13
|
+
const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: I, FieldLayout: f, hasError: F } = E(), { labelId: L } = d(), R = O((C) => {
|
|
14
14
|
l(C);
|
|
15
15
|
}, [
|
|
16
16
|
l
|
|
@@ -32,7 +32,7 @@ const e = ({ children: t }) => {
|
|
|
32
32
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, D)
|
|
33
33
|
});
|
|
34
34
|
}, V = ({ className: t }) => {
|
|
35
|
-
const { inputId: a, ariaDescribedBy: m } =
|
|
35
|
+
const { inputId: a, ariaDescribedBy: m } = d(), { id: l, placeholder: u } = E(), o = T(null);
|
|
36
36
|
return h(() => {
|
|
37
37
|
var i;
|
|
38
38
|
(i = o.current) == null || i.focus();
|
|
@@ -44,13 +44,13 @@ const e = ({ children: t }) => {
|
|
|
44
44
|
className: t
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
e.Label =
|
|
47
|
+
e.Label = g;
|
|
48
48
|
e.Input = V;
|
|
49
49
|
e.Description = x;
|
|
50
|
-
e.Error =
|
|
51
|
-
const
|
|
52
|
-
input:
|
|
53
|
-
},
|
|
50
|
+
e.Error = M;
|
|
51
|
+
const j = "_input_ug5v8_1", w = {
|
|
52
|
+
input: j
|
|
53
|
+
}, H = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(S, {
|
|
54
54
|
content: t,
|
|
55
55
|
locale: a
|
|
56
56
|
}), re = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
@@ -58,12 +58,12 @@ const w = "_input_ug5v8_1", H = {
|
|
|
58
58
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
59
59
|
className: n(B, s.requiredMark)
|
|
60
60
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
61
|
-
className: n(P, s.input,
|
|
61
|
+
className: n(P, s.input, w.input)
|
|
62
62
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
63
63
|
className: n(k, s.error)
|
|
64
64
|
}, /* @__PURE__ */ r.createElement(q, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
65
65
|
className: n(U, s.description)
|
|
66
|
-
},
|
|
66
|
+
}, H));
|
|
67
67
|
export {
|
|
68
68
|
re as T
|
|
69
69
|
};
|
package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-CgN_2hOD.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RicosViewer as m } 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-CkhvKrFp.js";
|
|
5
5
|
import { E as o } from "./error-icon-hZxQ6DEy.js";
|
|
6
6
|
import { s as a } from "./field-rac.module-DtugsLiL.js";
|
|
7
7
|
import { r as n, H as c, q as E, l as i, h as R } from "./form-element-classes-Bi-nNM8q.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import t, { useRef as L } from "react";
|
|
2
|
-
import { TextField as R, Input as
|
|
3
|
-
import {
|
|
2
|
+
import { TextField as R, Input as h } from "react-aria-components";
|
|
3
|
+
import { ah as d, ae as c, aj as v } from "./form-DzjdnO7t.js";
|
|
4
4
|
import { f as a } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as T, E as
|
|
6
|
-
import { L as x } from "./field-label-headless-
|
|
5
|
+
import { D as T, E as g } from "./field-error-headless-DTKnr5Zx.js";
|
|
6
|
+
import { L as x } from "./field-label-headless-DV4aNd5Y.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, {
|
|
@@ -27,7 +27,7 @@ const e = ({ children: r }) => {
|
|
|
27
27
|
return v(() => {
|
|
28
28
|
var o;
|
|
29
29
|
(o = n.current) == null || o.focus();
|
|
30
|
-
}, s), /* @__PURE__ */ t.createElement(
|
|
30
|
+
}, s), /* @__PURE__ */ t.createElement(h, {
|
|
31
31
|
ref: n,
|
|
32
32
|
id: l,
|
|
33
33
|
"aria-describedby": u,
|
|
@@ -38,7 +38,7 @@ const e = ({ children: r }) => {
|
|
|
38
38
|
e.Label = x;
|
|
39
39
|
e.Input = B;
|
|
40
40
|
e.Description = T;
|
|
41
|
-
e.Error =
|
|
41
|
+
e.Error = g;
|
|
42
42
|
export {
|
|
43
43
|
e as T
|
|
44
44
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import e, { useCallback as H, useRef as
|
|
1
|
+
import e, { useCallback as H, useRef as V, useContext as q } from "react";
|
|
2
2
|
import { RicosViewer as v } from "@wix/ricos/viewer";
|
|
3
3
|
import c from "classnames";
|
|
4
4
|
import { parseTime as x } from "@internationalized/date";
|
|
5
5
|
import { TimeField as B, DateInput as U, DateSegment as h, TimeFieldStateContext as k } from "react-aria-components";
|
|
6
|
-
import {
|
|
6
|
+
import { ah as p, ae as j, ar as T, aj as Q } from "./form-DzjdnO7t.js";
|
|
7
7
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
8
|
-
import { D as z, E as G } from "./field-error-headless-
|
|
9
|
-
import { L as J } from "./field-label-headless-
|
|
8
|
+
import { D as z, E as G } from "./field-error-headless-DTKnr5Zx.js";
|
|
9
|
+
import { L as J } from "./field-label-headless-DV4aNd5Y.js";
|
|
10
10
|
import { E as K } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { H as S } from "./custom-focus-class-_483Pkwp.js";
|
|
12
12
|
import { s as E } from "./field-rac.module-DtugsLiL.js";
|
|
13
13
|
import { r as W, H as X, q as Y, l as Z, h as $ } from "./form-element-classes-Bi-nNM8q.js";
|
|
14
14
|
const r = ({ children: t }) => {
|
|
15
|
-
const { id: n, value: s, onChange: o, disabled: i, readOnly: l, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError:
|
|
15
|
+
const { id: n, value: s, onChange: o, disabled: i, readOnly: l, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: g, labelId: D } = j(), R = H((M) => {
|
|
16
16
|
const w = ae(M);
|
|
17
17
|
o(w);
|
|
18
18
|
}, [
|
|
@@ -23,13 +23,13 @@ const r = ({ children: t }) => {
|
|
|
23
23
|
renderLabel: () => N,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(B, {
|
|
25
25
|
"aria-labelledby": D,
|
|
26
|
-
id:
|
|
27
|
-
"aria-describedby":
|
|
26
|
+
id: L,
|
|
27
|
+
"aria-describedby": g,
|
|
28
28
|
value: O,
|
|
29
29
|
onChange: R,
|
|
30
30
|
isDisabled: i,
|
|
31
31
|
isReadOnly: l,
|
|
32
|
-
isInvalid:
|
|
32
|
+
isInvalid: C,
|
|
33
33
|
isRequired: a,
|
|
34
34
|
onBlur: d,
|
|
35
35
|
onFocus: f,
|
|
@@ -65,7 +65,7 @@ const r = ({ children: t }) => {
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
}, ee = ({ className: t, ...n }) => {
|
|
68
|
-
const { id: s, hidePlaceholder: o } = p(), { segment: i } = n, { t: l } = T(), a =
|
|
68
|
+
const { id: s, hidePlaceholder: o } = p(), { segment: i } = n, { t: l } = T(), a = V(null);
|
|
69
69
|
Q(() => {
|
|
70
70
|
var f;
|
|
71
71
|
(f = a.current) == null || f.focus();
|
|
@@ -89,7 +89,7 @@ const r = ({ children: t }) => {
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}, re = ({ className: t, ...n }) => {
|
|
92
|
-
const { hidePlaceholder: s } = p(), { segment: o } = n, { t: i } = T(), l =
|
|
92
|
+
const { hidePlaceholder: s } = p(), { segment: o } = n, { t: i } = T(), l = q(k), a = s ? void 0 : i("field.date.placeholder.period"), d = () => l == null ? void 0 : l.increment("dayPeriod");
|
|
93
93
|
return /* @__PURE__ */ e.createElement(h, {
|
|
94
94
|
segment: o,
|
|
95
95
|
className: t,
|
|
@@ -149,7 +149,7 @@ const oe = "_time_1wbmw_1", le = "_hour_1wbmw_14", se = "_minute_1wbmw_15", ie =
|
|
|
149
149
|
className: c(Z, E.error)
|
|
150
150
|
}, /* @__PURE__ */ e.createElement(K, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
|
|
151
151
|
className: c($, E.description)
|
|
152
|
-
}, ce)),
|
|
152
|
+
}, ce)), Le = () => /* @__PURE__ */ e.createElement(me, null);
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
Le as TimeInputRAC
|
|
155
155
|
};
|
|
@@ -2,16 +2,16 @@ import { RicosViewer as h } from "@wix/ricos/viewer";
|
|
|
2
2
|
import l from "classnames";
|
|
3
3
|
import r, { useCallback as O, useRef as N } from "react";
|
|
4
4
|
import { TextField as y, Input as A } from "react-aria-components";
|
|
5
|
-
import {
|
|
5
|
+
import { ah as E, ae as d, aj as B } from "./form-DzjdnO7t.js";
|
|
6
6
|
import { f as u } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { D as M, E as P } from "./field-error-headless-
|
|
8
|
-
import { L as T } from "./field-label-headless-
|
|
9
|
-
import { u as
|
|
10
|
-
import { E as
|
|
7
|
+
import { D as M, E as P } from "./field-error-headless-DTKnr5Zx.js";
|
|
8
|
+
import { L as T } from "./field-label-headless-DV4aNd5Y.js";
|
|
9
|
+
import { u as k } from "./use-invoke-callback-UH73A_J3.js";
|
|
10
|
+
import { E as q } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s } from "./field-rac.module-DtugsLiL.js";
|
|
12
|
-
import { r as
|
|
12
|
+
import { r as v, H as U, q as g, l as x, h as w } from "./form-element-classes-Bi-nNM8q.js";
|
|
13
13
|
const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
|
|
14
|
-
const { id: o, value: n, onChange: a, disabled: m, readOnly: i, required: c, hasError: I, onBlur: f, onFocus: F, FieldLayout: L } =
|
|
14
|
+
const { id: o, value: n, onChange: a, disabled: m, readOnly: i, required: c, hasError: I, onBlur: f, onFocus: F, FieldLayout: L } = E(), { labelId: R } = d(), p = k(f), b = u(t, e.Label), D = u(t, e.Input), _ = u(t, e.Description), C = u(t, e.Error), S = O(() => {
|
|
15
15
|
a(H(n)), p();
|
|
16
16
|
}, [
|
|
17
17
|
p,
|
|
@@ -35,7 +35,7 @@ const H = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
|
|
|
35
35
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
|
|
36
36
|
});
|
|
37
37
|
}, V = ({ className: t }) => {
|
|
38
|
-
const { id: o, placeholder: n } =
|
|
38
|
+
const { id: o, placeholder: n } = E(), { inputId: a, ariaDescribedBy: m } = d(), i = N(null);
|
|
39
39
|
return B(() => {
|
|
40
40
|
var c;
|
|
41
41
|
(c = i.current) == null || c.focus();
|
|
@@ -56,14 +56,14 @@ const W = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(h, {
|
|
|
56
56
|
content: t,
|
|
57
57
|
locale: o
|
|
58
58
|
}), te = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
|
|
59
|
-
className: l(
|
|
59
|
+
className: l(v, s.label)
|
|
60
60
|
}, /* @__PURE__ */ r.createElement(e.Label.Required, {
|
|
61
|
-
className: l(
|
|
61
|
+
className: l(U, s.requiredMark)
|
|
62
62
|
})), /* @__PURE__ */ r.createElement(e.Input, {
|
|
63
|
-
className: l(
|
|
63
|
+
className: l(g, s.input)
|
|
64
64
|
}), /* @__PURE__ */ r.createElement(e.Error, {
|
|
65
65
|
className: l(x, s.error)
|
|
66
|
-
}, /* @__PURE__ */ r.createElement(
|
|
66
|
+
}, /* @__PURE__ */ r.createElement(q, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
|
|
67
67
|
className: l(w, s.description)
|
|
68
68
|
}, W));
|
|
69
69
|
export {
|
package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-Ci9gIluo.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ag as v } from "./form-DzjdnO7t.js";
|
|
3
3
|
const k = (I) => {
|
|
4
|
-
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O,
|
|
4
|
+
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = I, [O, g] = o(!1), [h, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = D((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
|
6
6
|
value: l.id ?? "",
|
|
7
7
|
label: l.name ?? "",
|
|
@@ -14,7 +14,7 @@ const k = (I) => {
|
|
|
14
14
|
m(() => {
|
|
15
15
|
if (s != null && s.services) {
|
|
16
16
|
const e = r(s.services);
|
|
17
|
-
p(e),
|
|
17
|
+
p(e), u(e.length === 0), f(!0), n && n(e);
|
|
18
18
|
}
|
|
19
19
|
}, [
|
|
20
20
|
s,
|
|
@@ -32,14 +32,14 @@ const k = (I) => {
|
|
|
32
32
|
]);
|
|
33
33
|
return {
|
|
34
34
|
isLoading: O,
|
|
35
|
-
options:
|
|
35
|
+
options: h,
|
|
36
36
|
isEmpty: E,
|
|
37
37
|
hasInitialDataLoaded: c,
|
|
38
38
|
shouldRender: y,
|
|
39
|
-
setIsLoading:
|
|
39
|
+
setIsLoading: g,
|
|
40
40
|
setOptions: p,
|
|
41
|
-
setIsEmpty:
|
|
42
|
-
setHasInitialDataLoaded:
|
|
41
|
+
setIsEmpty: u,
|
|
42
|
+
setHasInitialDataLoaded: f,
|
|
43
43
|
processOptions: r
|
|
44
44
|
};
|
|
45
45
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.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": [
|
|
@@ -10,13 +10,6 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
|
-
"imports": {
|
|
14
|
-
"#prebuilt-form": {
|
|
15
|
-
"types": "./src/extensions/form/form.tsx",
|
|
16
|
-
"default": "./dist/component/form.js"
|
|
17
|
-
},
|
|
18
|
-
"#prebuilt-form/style.css": "./dist/component/form.css"
|
|
19
|
-
},
|
|
20
13
|
"exports": {
|
|
21
14
|
"./Form": {
|
|
22
15
|
"types": "./dist/form.d.ts",
|
|
@@ -87,8 +80,6 @@
|
|
|
87
80
|
},
|
|
88
81
|
"devDependencies": {
|
|
89
82
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
90
|
-
"@babel/core": "^7.29.0",
|
|
91
|
-
"@babel/types": "^7.29.0",
|
|
92
83
|
"@size-limit/file": "^14.0.0",
|
|
93
84
|
"@storybook/react-vite": "^10.6.0",
|
|
94
85
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -119,7 +110,6 @@
|
|
|
119
110
|
"@wix/sdk-types": "^1.17.12",
|
|
120
111
|
"@wix/services-manager-react": "^1.0.8",
|
|
121
112
|
"@wix/sled-playwright": "^1.394.0",
|
|
122
|
-
"esbuild": "^0.25.0",
|
|
123
113
|
"oxfmt": "^0.62.0",
|
|
124
114
|
"oxlint": "^1.77.0",
|
|
125
115
|
"publint": "^0.3.24",
|
|
@@ -131,9 +121,7 @@
|
|
|
131
121
|
"size-limit": "^14.0.0",
|
|
132
122
|
"storybook": "^10.6.0",
|
|
133
123
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
134
|
-
"unplugin": "^3.0.0",
|
|
135
124
|
"vite": "^6.4.3",
|
|
136
|
-
"vite-plugin-dynamic-import": "^1.6.0",
|
|
137
125
|
"vitest": "^4.1.11"
|
|
138
126
|
},
|
|
139
127
|
"peerDependencies": {
|
|
@@ -163,5 +151,5 @@
|
|
|
163
151
|
]
|
|
164
152
|
}
|
|
165
153
|
},
|
|
166
|
-
"falconPackageHash": "
|
|
154
|
+
"falconPackageHash": "ceca4ba400e894c9f62e0f27ba30b756661135d9a581458098ac5453"
|
|
167
155
|
}
|