@wix/form-elements 1.63.0 → 1.64.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.
Files changed (111) hide show
  1. package/dist/component/{appointment-rac-B1VVk_Ui.js → appointment-rac-DojiZqx9.js} +35 -35
  2. package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-Bm_lQchD.js} +1 -1
  3. package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-vwuy0kW8.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-DVknNH29.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-DKi-VAXc.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-CYADRY54.js} +5 -5
  11. package/dist/component/checkbox-group-field-headless-BDAFpX5F.js +210 -0
  12. package/dist/component/checkbox-group-field-rac-2YUsOmDI.js +40 -0
  13. package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
  14. package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-Bjv8jZjs.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-BBTiEec9.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-B-fUQszu.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-DBtcCcsV.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-mkwU3706.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
  22. package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-B65H8PDu.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +13 -0
  24. package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
  25. package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-B8UwvTJa.js} +1 -1
  26. package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-RL2a0xoD.js} +33 -33
  27. package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-ak3G7V07.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-SL_Roltf.js} +31 -31
  29. package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-ByrM0YIX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-DOE7xcKi.js} +36 -36
  31. package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-BA-GyrAc.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
  37. package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-e-2_h3he.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-D6LACzWl.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-kUycy5Od.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-D6z69HuO.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-8rVVW5us.js} +1 -1
  46. package/dist/component/{donation-rac-gKeq72jg.js → donation-rac-BjmSBabc.js} +60 -60
  47. package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DReo519l.js} +16 -16
  48. package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
  49. package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-CS7oLTp_.js} +1 -1
  50. package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-EIb88J_6.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
  52. package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-BScZxYHw.js} +47 -47
  53. package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-Y0rH2Jli.js} +45 -45
  54. package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
  55. package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-DrnFrGun.js} +3 -3
  56. package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BIYf1BIh.js} +4 -4
  57. package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
  58. package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-br--tZLp.js} +73 -73
  59. package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-XEtrsaMy.js} +11 -11
  60. package/dist/component/{form-DzjdnO7t.js → form-9yjqDnxY.js} +1563 -1556
  61. package/dist/component/form-element-classes-KRzHUNLu.js +57 -0
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-CLELgzqY.js} +7 -7
  65. package/dist/component/{header-rac-6thQAvVF.js → header-rac-D8KGkVVp.js} +1 -1
  66. package/dist/component/{image-choice-rac-Dx1b-saW.js → image-choice-rac-Cl09CLP4.js} +14 -14
  67. package/dist/component/{index-DIP7KB8P.js → index-C4y71e1i.js} +2 -2
  68. package/dist/component/{index-Lnx0829a.js → index-PHkE0Ru4.js} +4 -4
  69. package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-srCDplej.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CsBLI9y-.js} +80 -80
  71. package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-DFDPFfXh.js} +1 -1
  72. package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-DZRR7gdt.js} +16 -16
  73. package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-BCS5lkff.js} +1 -1
  74. package/dist/component/{password-rac-B4XCP64b.js → password-rac-ClDGgR3E.js} +16 -16
  75. package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-COydWmUE.js} +28 -28
  76. package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DYCibqe1.js} +42 -42
  77. package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BS-dmWkJ.js} +1 -1
  78. package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-hxOhaA-r.js} +75 -75
  79. package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
  80. package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
  81. package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-BwUynK_5.js} +7 -7
  82. package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-DHURQZKK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-CZRdSVrf.js} +30 -30
  84. package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-BaH52DYm.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-ILBfxEmN.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-B58q8Is7.js} +5 -5
  87. package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-DGbZh1eX.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-DUiNIbdv.js} +45 -45
  89. package/dist/component/services-multi-choice-rac-B7y9s2l8.js +76 -0
  90. package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-CydpvQJZ.js} +25 -25
  91. package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-OO53h4H8.js} +6 -6
  92. package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-eX3d3JEH.js} +44 -44
  93. package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-CdIB_48Z.js} +1 -1
  94. package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-Bir5Q7gz.js} +17 -17
  95. package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-Ct1UNU04.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-onGUXC9J.js} +6 -6
  97. package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-Bs9m7QFg.js} +11 -11
  98. package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-DK4nEw4D.js} +1 -1
  99. package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-BCG9ktFa.js} +35 -35
  100. package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-mUkrVTcL.js} +24 -24
  101. package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-Cl7LFYlr.js} +1 -1
  102. package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-BYVuKRj2.js} +6 -6
  103. package/dist/form.d.ts +3 -1
  104. package/package.json +2 -2
  105. package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
  106. package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
  107. package/dist/component/contacts-subscribe-rac-Ci5OLk68.js +0 -13
  108. package/dist/component/field-rac.module-DtugsLiL.js +0 -21
  109. package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
  110. package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
  111. package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
@@ -1,204 +0,0 @@
1
- import d, { useMemo as x, useCallback as _, useRef as P, useState as w, useEffect as U } from "react";
2
- import { CheckboxGroup as W, CheckboxField as j, CheckboxButton as A, TextField as z, Input as J } from "react-aria-components";
3
- import { debounce as K } from "ts-debounce";
4
- import { ah as N, ae as Q, ar as X, ab as Y, aj as Z } from "./form-DzjdnO7t.js";
5
- import { f as L, a as y } from "./find-child-C60k4CxG.js";
6
- import { D as ee, E as te } from "./field-error-headless-DTKnr5Zx.js";
7
- import { L as ae } from "./field-label-headless-DV4aNd5Y.js";
8
- import { F as ne } from "./fieldset-headless-CD3fds9J.js";
9
- import { N as se } from "./options-layout-constants-DEfIEJWD.js";
10
- const R = "Other", le = (e, t) => e.some((o) => !t.includes(o)), B = (e, t) => e.length > 0 && le(e, t), oe = (e, t) => {
11
- const o = t == null ? void 0 : t("add-other.default-other-option-label");
12
- return e || o || R;
13
- }, T = (e, t) => {
14
- const n = t ? t.length + 2 : 0;
15
- return (e.find((r) => r.startsWith(`${t}: `)) || "").slice(n);
16
- }, k = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e }) => {
17
- const t = N(), { id: o, value: n, onChange: a, disabled: r, required: i, onBlur: E, onFocus: m, hasError: b, FieldLayout: c } = t, { inputId: p, labelId: u, ariaDescribedBy: l } = Q(), f = L(e, v.Label), h = L(e, v.Options), g = L(e, v.Description), C = L(e, v.Error), s = x(() => n || [], [
18
- n
19
- ]), O = _((V) => {
20
- a == null || a(V);
21
- }, [
22
- a
23
- ]);
24
- return /* @__PURE__ */ d.createElement(c, {
25
- fieldId: o,
26
- renderLabel: () => f,
27
- renderInput: () => /* @__PURE__ */ d.createElement(ne, {
28
- id: p,
29
- ariaLabelledBy: u,
30
- ariaDescribedBy: l,
31
- required: i,
32
- onBlur: E,
33
- onFocus: m
34
- }, /* @__PURE__ */ d.createElement(W, {
35
- "aria-labelledby": u,
36
- value: s,
37
- onChange: O,
38
- isDisabled: r,
39
- isRequired: i,
40
- isInvalid: b
41
- }, h)),
42
- renderDescription: () => /* @__PURE__ */ d.createElement(d.Fragment, null, C, g)
43
- });
44
- }, $ = ({ children: e, className: t }) => {
45
- const o = N(), { id: n, options: a, addOther: r, addOtherLabel: i, numberOfColumns: E } = o, { t: m } = X(), { isMobile: b } = Y(), c = L(e, $.Option), p = oe(i, m), u = b ? se.ONE : E;
46
- return /* @__PURE__ */ d.createElement("div", {
47
- className: t,
48
- "data-columns": u
49
- }, a == null ? void 0 : a.map((l, f) => {
50
- const h = l.value ?? l.label;
51
- return y(c, {
52
- key: l.id || l.label,
53
- value: h,
54
- label: l.label,
55
- isFirst: f === 0,
56
- fieldId: n
57
- });
58
- }), r && y(c, {
59
- key: R,
60
- value: R,
61
- label: p,
62
- isOther: !0
63
- }));
64
- }, re = ({ className: e }) => /* @__PURE__ */ d.createElement("div", {
65
- "aria-hidden": "true",
66
- className: e
67
- }), ce = ({ className: e, ...t }) => {
68
- const { label: o } = t;
69
- return /* @__PURE__ */ d.createElement("span", {
70
- className: e
71
- }, o);
72
- }, F = ({ children: e, className: t, ...o }) => {
73
- const { value: n, label: a, isFirst: r = !1, isOther: i = !1, fieldId: E } = o, m = N(), { value: b, onChange: c, disabled: p, readOnly: u, hasError: l, options: f } = m, h = P(null);
74
- Z(() => {
75
- var I;
76
- r && ((I = h.current) == null || I.focus({
77
- preventScroll: !0
78
- }));
79
- }, E);
80
- const g = L(e, F.Label), C = L(e, F.Input), s = x(() => b || [], [
81
- b
82
- ]), O = x(() => i ? s.find((I) => I === a || I.startsWith(`${a}: `)) || a : n, [
83
- i,
84
- s,
85
- a,
86
- n
87
- ]), V = _((I) => {
88
- if (!i)
89
- return;
90
- const S = k(f || []), D = s.filter((H) => S.includes(H)), G = I ? [
91
- ...D,
92
- a
93
- ] : D;
94
- c == null || c(G);
95
- }, [
96
- i,
97
- a,
98
- c,
99
- f,
100
- s
101
- ]);
102
- return /* @__PURE__ */ d.createElement(j, {
103
- value: O,
104
- onChange: i ? V : void 0,
105
- isDisabled: p,
106
- isReadOnly: u,
107
- isInvalid: l
108
- }, /* @__PURE__ */ d.createElement(A, {
109
- ref: h,
110
- className: t,
111
- "data-hook": `checkbox-${a}`
112
- }, C, y(g, {
113
- label: a
114
- })));
115
- };
116
- F.Label = ce;
117
- F.Input = re;
118
- const M = ({ children: e, ...t }) => {
119
- const { value: o, label: n, isFirst: a = !1, isOther: r = !1, fieldId: i } = t, E = N(), { value: m, onChange: b, options: c, addOtherPlaceholder: p, otherInputCharacterLimit: u, disabled: l, readOnly: f, hasError: h } = E, g = L(e, F), C = L(e, q), s = x(() => m || [], [
120
- m
121
- ]), O = x(() => {
122
- if (!r)
123
- return !1;
124
- const V = k(c || []);
125
- return B(s, V);
126
- }, [
127
- r,
128
- s,
129
- c
130
- ]);
131
- return /* @__PURE__ */ d.createElement(d.Fragment, null, y(g, {
132
- value: o,
133
- label: n,
134
- isFirst: a,
135
- isOther: r,
136
- fieldId: i
137
- }), r && O && y(C, {
138
- fieldValue: s,
139
- onChange: b,
140
- label: n,
141
- placeholder: p,
142
- maxLength: u,
143
- disabled: l,
144
- readOnly: f,
145
- hasError: h,
146
- ariaLabel: n,
147
- addOtherLabel: n,
148
- options: c
149
- }));
150
- }, q = ({ className: e, inputClassName: t, ...o }) => {
151
- const { fieldValue: n, onChange: a, label: r, placeholder: i, maxLength: E, disabled: m, readOnly: b, hasError: c, ariaLabel: p, addOtherLabel: u, options: l } = o, [f, h] = w(() => {
152
- const s = k(l || []);
153
- return B(n, s) ? T(n, u) : "";
154
- });
155
- U(() => {
156
- const s = k(l || []), O = B(n, s);
157
- h(O ? T(n, u) : "");
158
- }, [
159
- n,
160
- l,
161
- u
162
- ]);
163
- const g = x(() => K((s) => {
164
- const O = k(l || []), V = n.filter((D) => O.includes(D)), I = s ? `${u}: ${s}` : r, S = [
165
- ...V,
166
- I
167
- ];
168
- a(S);
169
- }, 500), [
170
- a,
171
- l,
172
- n,
173
- u,
174
- r
175
- ]), C = _((s) => {
176
- h(s), g(s);
177
- }, [
178
- g
179
- ]);
180
- return /* @__PURE__ */ d.createElement(z, {
181
- "aria-label": p,
182
- value: f,
183
- onChange: C,
184
- isDisabled: m,
185
- isReadOnly: b,
186
- isInvalid: c,
187
- className: e
188
- }, /* @__PURE__ */ d.createElement(J, {
189
- className: t,
190
- placeholder: i,
191
- maxLength: E,
192
- "aria-label": p
193
- }));
194
- };
195
- v.Label = ae;
196
- v.Options = $;
197
- $.Option = M;
198
- M.Checkbox = F;
199
- M.OtherInput = q;
200
- v.Description = ee;
201
- v.Error = te;
202
- export {
203
- v as C
204
- };
@@ -1,33 +0,0 @@
1
- import { RicosViewer as l } from "@wix/ricos/viewer";
2
- import r from "classnames";
3
- import e from "react";
4
- import { C as t } from "./checkbox-group-field-headless-Cvia4lL6.js";
5
- import { E as c } from "./error-icon-hZxQ6DEy.js";
6
- import { s as a } from "./field-rac.module-DtugsLiL.js";
7
- import { r as m, H as i, a as E, b as p, c as O, q as _, l as C, h as L } from "./form-element-classes-Bi-nNM8q.js";
8
- import { o } from "./options-rac.module-KM-VT_KY.js";
9
- const R = ({ content: s, locale: n }) => /* @__PURE__ */ e.createElement(l, {
10
- content: s,
11
- locale: n
12
- }), h = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
13
- className: r(m, a.label)
14
- }, /* @__PURE__ */ e.createElement(t.Label.Required, {
15
- className: r(i, a.requiredMark)
16
- })), /* @__PURE__ */ e.createElement(t.Options, {
17
- className: r(E, o.options)
18
- }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
19
- className: a.checkbox
20
- }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
21
- className: r(p, a.checkboxInput)
22
- }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
23
- className: r(O, o.optionLabel)
24
- })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
25
- inputClassName: r(_, a.input)
26
- }))), /* @__PURE__ */ e.createElement(t.Error, {
27
- className: r(C, a.error)
28
- }, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
29
- className: r(L, a.description)
30
- }, R));
31
- export {
32
- h as C
33
- };
@@ -1,13 +0,0 @@
1
- import C from "react";
2
- import { C as _ } from "./checkbox-field-rac-e-RAmupX.js";
3
- import { P as e, Q as o, O as r } from "./form-element-classes-Bi-nNM8q.js";
4
- const a = () => /* @__PURE__ */ C.createElement(_, {
5
- classes: {
6
- container: r,
7
- label: o,
8
- control: e
9
- }
10
- });
11
- export {
12
- a as ContactsSubscribeRAC
13
- };
@@ -1,21 +0,0 @@
1
- const o = "_label_11hck_1", c = "_requiredMark_11hck_11", n = "_input_11hck_16", t = "_inputGroup_11hck_17", e = "_innerInput_11hck_123", r = "_dropdownTrigger_11hck_166", _ = "_dropdownIcon_11hck_176", p = "_dropdownPopover_11hck_195", s = "_selectPopover_11hck_199", i = "_selectOption_11hck_226", u = "_selectOptionWithoutFocusRing_11hck_250", d = "_description_11hck_256", h = "_error_11hck_272", k = "_checkbox_11hck_291", l = "_checkboxInput_11hck_314", a = "_uploadButton_11hck_407", b = {
2
- label: o,
3
- requiredMark: c,
4
- input: n,
5
- inputGroup: t,
6
- innerInput: e,
7
- dropdownTrigger: r,
8
- dropdownIcon: _,
9
- dropdownPopover: p,
10
- selectPopover: s,
11
- selectOption: i,
12
- selectOptionWithoutFocusRing: u,
13
- description: d,
14
- error: h,
15
- checkbox: k,
16
- checkboxInput: l,
17
- uploadButton: a
18
- };
19
- export {
20
- b as s
21
- };
@@ -1,55 +0,0 @@
1
- const _ = "form-field-label", o = "form-field-required-indicator", s = "form-field-description", O = "form-field-error", S = "form-field-input", L = "form-field-upload-button", i = "form-field-popover", I = "form-field-suggestion", c = "form-field-option-label", C = "form-field-radio-group", t = "form-field-radio-group-option-label", r = "form-field-radio-group-radio-button", R = "form-field-quiz-radio-group", e = "form-field-quiz-radio-group-option-label", E = "form-field-quiz-radio-group-radio-button", f = "form-field-rsvp", F = "form-field-rsvp-option-label", n = "form-field-rsvp-radio-button", a = "form-field-checkbox-group", A = "form-field-checkbox-group-option-label", l = "form-field-checkbox-group-indicator", d = "form-field-services", D = "form-field-services-option-label", T = "form-field-services-indicator", m = "form-field-checkbox", M = "form-field-checkbox-label", b = "form-field-checkbox-indicator", B = "form-field-subscribe-checkbox", N = "form-field-subscribe-checkbox-label", u = "form-field-subscribe-checkbox-indicator", U = "form-field-ecom-subscription-checkbox", p = "form-field-ecom-subscription-checkbox-label", P = "form-field-ecom-subscription-checkbox-indicator", g = "form-field-guest-checkbox", G = "form-field-guest-checkbox-label", h = "form-field-guest-checkbox-indicator", x = "form-field-product-list", H = "form-field-product-list-product-name", k = "form-field-product-list-price", K = "form-field-product-list-indicator", X = "form-field-tags", v = "form-field-tags-option", V = "form-field-tags-option-selected", q = "form-field-choice-tag", Q = "form-field-info-banner", z = "form-field-day-option", Z = "form-field-rating-option", y = "form-field-link", Y = "form-rich-content", j = "form-submit-button", w = "form-next-button", J = "form-previous-button";
2
- export {
3
- e as A,
4
- E as B,
5
- C,
6
- t as D,
7
- r as E,
8
- m as F,
9
- Z as G,
10
- o as H,
11
- f as I,
12
- F as J,
13
- n as K,
14
- d as L,
15
- T as M,
16
- D as N,
17
- B as O,
18
- u as P,
19
- N as Q,
20
- I as R,
21
- X as S,
22
- v as T,
23
- V as U,
24
- L as V,
25
- w as W,
26
- J as X,
27
- Y,
28
- j as Z,
29
- a,
30
- l as b,
31
- A as c,
32
- b as d,
33
- M as e,
34
- q as f,
35
- z as g,
36
- s as h,
37
- U as i,
38
- P as j,
39
- p as k,
40
- O as l,
41
- g as m,
42
- h as n,
43
- G as o,
44
- Q as p,
45
- S as q,
46
- _ as r,
47
- y as s,
48
- c as t,
49
- i as u,
50
- x as v,
51
- K as w,
52
- k as x,
53
- H as y,
54
- R as z
55
- };
@@ -1,13 +0,0 @@
1
- import _ from "react";
2
- import { R } from "./radio-group-field-rac-Dt2pU0VV.js";
3
- import { B as o, A as r, z as O } from "./form-element-classes-Bi-nNM8q.js";
4
- const A = () => /* @__PURE__ */ _.createElement(R, {
5
- classes: {
6
- container: O,
7
- label: r,
8
- control: o
9
- }
10
- });
11
- export {
12
- A as QuizRadioGroupRAC
13
- };
@@ -1,76 +0,0 @@
1
- import e, { useEffect as _, useMemo as C } from "react";
2
- import { RicosViewer as I } from "@wix/ricos/viewer";
3
- import s from "classnames";
4
- import { F as R, ah as F, h as d } from "./form-DzjdnO7t.js";
5
- import { u as h } from "./use-service-options-base-Ci9gIluo.js";
6
- import { C as i } from "./checkbox-group-field-headless-Cvia4lL6.js";
7
- import { E as D } from "./error-icon-hZxQ6DEy.js";
8
- import { s as n } from "./field-rac.module-DtugsLiL.js";
9
- import { r as f, H as M, L as N, M as b, N as A, q as v, l as x, h as T } from "./form-element-classes-Bi-nNM8q.js";
10
- import { o as L } from "./options-rac.module-KM-VT_KY.js";
11
- const k = (o) => {
12
- var S;
13
- const { isLoading: r, options: a, isEmpty: c, shouldRender: E, setOptions: l, setIsEmpty: m, setHasInitialDataLoaded: p } = h({
14
- fieldType: R.SERVICES_MULTI_CHOICE,
15
- isEditor: o.isEditor
16
- }), u = (S = o.options) == null ? void 0 : S.every((O) => O.label && O.id);
17
- return _(() => {
18
- if (u && o.options) {
19
- l(o.options), m(o.options.length === 0), p(!0);
20
- return;
21
- }
22
- }, [
23
- u,
24
- o.options,
25
- l,
26
- m,
27
- p
28
- ]), {
29
- isLoading: r,
30
- options: a,
31
- isEmpty: c,
32
- shouldRender: E
33
- };
34
- }, t = ({ children: o }) => {
35
- const r = F(), { options: a, isEmpty: c, shouldRender: E } = k(r), l = C(() => ({
36
- ...r,
37
- options: a
38
- }), [
39
- r,
40
- a
41
- ]);
42
- return !r.isEditor && c || !E ? null : /* @__PURE__ */ e.createElement(d.Provider, {
43
- value: {
44
- v2: l
45
- }
46
- }, /* @__PURE__ */ e.createElement(i, null, o));
47
- };
48
- t.Label = i.Label;
49
- t.Options = i.Options;
50
- t.Description = i.Description;
51
- t.Error = i.Error;
52
- const P = ({ content: o, locale: r }) => /* @__PURE__ */ e.createElement(I, {
53
- content: o,
54
- locale: r
55
- }), y = () => /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
56
- className: s(f, n.label)
57
- }, /* @__PURE__ */ e.createElement(t.Label.Required, {
58
- className: s(M, n.requiredMark)
59
- })), /* @__PURE__ */ e.createElement(t.Options, {
60
- className: s(N, L.options)
61
- }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
62
- className: n.checkbox
63
- }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
64
- className: s(b, n.checkboxInput)
65
- }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
66
- className: s(A, L.optionLabel)
67
- })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
68
- inputClassName: s(v, n.input)
69
- }))), /* @__PURE__ */ e.createElement(t.Error, {
70
- className: s(x, n.error)
71
- }, /* @__PURE__ */ e.createElement(D, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
72
- className: s(T, n.description)
73
- }, P)), j = () => /* @__PURE__ */ e.createElement(y, null);
74
- export {
75
- j as ServicesMultiChoiceRAC
76
- };