@wix/form-elements 1.62.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 (113) hide show
  1. package/dist/component/{appointment-rac-Dqib2upI.js → appointment-rac-DojiZqx9.js} +35 -35
  2. package/dist/component/{bookings-address-rac-E-qq4-KG.js → bookings-address-rac-Bm_lQchD.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DA_Hwn2j.js → bookings-email-rac-vwuy0kW8.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-o1n3lnRo.js → bookings-first-name-rac-BbWuLoeg.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DQ0YvhxZ.js → bookings-header-rac-DVknNH29.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BqL_84Sg.js → bookings-last-name-rac-BnT3Cq0b.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CAN7roRc.js → bookings-login-bar-rac-DKi-VAXc.js} +16 -16
  8. package/dist/component/{bookings-phone-rac-CCJVdvkd.js → bookings-phone-rac-Bfy8rheB.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CCklquEC.js → bookings-rich-text-rac-DGiBDcXw.js} +1 -1
  10. package/dist/component/checkbox-field-rac-CYADRY54.js +1312 -0
  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-DWPClKpf.js → checkbox-group-rac-CQf1C9H5.js} +1 -1
  14. package/dist/component/{checkbox-rac-CvbOws2U.js → checkbox-rac-Bjv8jZjs.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CWFHC5LT.js → contacts-address-rac-BBTiEec9.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DPmJPp8M.js → contacts-birthdate-rac-XReeFHVW.js} +1 -1
  17. package/dist/component/{contacts-company-rac-UWP9uDqI.js → contacts-company-rac-B-fUQszu.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BCkkWYhr.js → contacts-email-rac-DBtcCcsV.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-KNRf92yT.js → contacts-first-name-rac-mkwU3706.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C_EotEpo.js → contacts-last-name-rac-DY5N-AZx.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DJGEWLsl.js → contacts-phone-rac-Ce1rMz_z.js} +1 -1
  22. package/dist/component/{contacts-position-rac-s1pZ662O.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-3MUvKEqW.js → contacts-tax-id-rac-Jtt0ySK2.js} +1 -1
  25. package/dist/component/{date-availability-CRsSX5_d.js → date-availability-B8UwvTJa.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DPo7waqI.js → date-input-field-rac-RL2a0xoD.js} +23 -23
  27. package/dist/component/{date-input-rac-DsY8ehb1.js → date-input-rac-ak3G7V07.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BtzlxVDB.js → date-picker-field-rac-SL_Roltf.js} +31 -31
  29. package/dist/component/{date-picker-rac-C-Aw6W87.js → date-picker-rac-ByrM0YIX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-zre1vJ2m.js → date-time-input-field-rac-DOE7xcKi.js} +87 -87
  31. package/dist/component/{date-time-input-rac-CUvTUzbT.js → date-time-input-rac-BA-GyrAc.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-D4mhJU8E.js → dext-checkbox-group-rac-EwUnBO80.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BeYmKpAZ.js → dext-checkbox-rac-CIRKi4B5.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Mr0M3sNQ.js → dext-date-picker-rac-BYO_Q1zM.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-dgxfrHUw.js → dext-date-time-input-rac-BOahPeaH.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-CdZOoA5M.js → dext-dropdown-rac-sTD_r-0H.js} +1 -1
  37. package/dist/component/{dext-email-rac-TBiHlKjv.js → dext-email-rac-e-2_h3he.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-S78swyZ9.js → dext-number-input-rac-D6LACzWl.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BhIaSHez.js → dext-phone-rac-kUycy5Od.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-B4xG4N8A.js → dext-radio-group-rac-DPD2UkrV.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-Bp2Pi5cP.js → dext-rating-input-rac-DUsnrl9W.js} +1 -1
  42. package/dist/component/{dext-tags-rac-Bnjgmyk-.js → dext-tags-rac-D6z69HuO.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-f1nJTM_n.js → dext-text-area-rac-C-DVtFJ1.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B9m6oI-e.js → dext-text-input-rac-CIa2MdC6.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CfEUdRdY.js → dext-url-input-rac-8rVVW5us.js} +1 -1
  46. package/dist/component/{donation-rac-BqKbQD_H.js → donation-rac-BjmSBabc.js} +62 -62
  47. package/dist/component/{dropdown-field-headless-CzoD076g.js → dropdown-field-headless-DReo519l.js} +5 -5
  48. package/dist/component/{dropdown-field-rac-5kD98Ubc.js → dropdown-field-rac-DzrjA2O6.js} +7 -7
  49. package/dist/component/{dropdown-rac-C9NpsRYi.js → dropdown-rac-CS7oLTp_.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DdvJEnAO.js → ecom-address-rac-EIb88J_6.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-D7Lf1ETL.js → ecom-subscription-checkbox-rac-CE0Ks6qS.js} +5 -5
  52. package/dist/component/{email-input-field-rac-DUordV5X.js → email-input-field-rac-BScZxYHw.js} +47 -47
  53. package/dist/component/{events-repeater-rac-B1yDrnvJ.js → events-repeater-rac-Y0rH2Jli.js} +66 -66
  54. package/dist/component/{events-rsvp-rac-B65NtAMH.js → events-rsvp-rac-BiAYVv_b.js} +12 -12
  55. package/dist/component/{field-error-headless-DP4WSQU3.js → field-error-headless-DrnFrGun.js} +4 -4
  56. package/dist/component/{field-label-headless-BKmi7Fjg.js → field-label-headless-BIYf1BIh.js} +7 -7
  57. package/dist/component/field-rac.module-CWkwwhq4.js +21 -0
  58. package/dist/component/{file-upload-rac-DAg_G0_l.js → file-upload-rac-br--tZLp.js} +83 -83
  59. package/dist/component/{fixed-payment-rac-yO1w1gE2.js → fixed-payment-rac-XEtrsaMy.js} +15 -15
  60. package/dist/component/{form-D6A2hUbV.js → form-9yjqDnxY.js} +2719 -2709
  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-D3Bi6tTS.js → header-field-rac-CLELgzqY.js} +5 -5
  65. package/dist/component/{header-rac-Blv89pdS.js → header-rac-D8KGkVVp.js} +1 -1
  66. package/dist/component/{image-choice-rac-BLUZRNm0.js → image-choice-rac-Cl09CLP4.js} +30 -30
  67. package/dist/component/{index-BiYk1mJi.js → index-C4y71e1i.js} +2 -2
  68. package/dist/component/{index-Cv3_acT1.js → index-PHkE0Ru4.js} +4 -4
  69. package/dist/component/isObjectLike-srCDplej.js +86 -0
  70. package/dist/component/multiline-address-field-rac-CsBLI9y-.js +1613 -0
  71. package/dist/component/{multiline-address-rac-B9yHNebZ.js → multiline-address-rac-DFDPFfXh.js} +1 -1
  72. package/dist/component/{number-input-field-rac-SaC7jFUi.js → number-input-field-rac-DZRR7gdt.js} +19 -19
  73. package/dist/component/{number-input-rac-KYcJJPrs.js → number-input-rac-BCS5lkff.js} +1 -1
  74. package/dist/component/{password-rac-CD5bSL2g.js → password-rac-ClDGgR3E.js} +27 -27
  75. package/dist/component/{payment-input-rac-BlAscmFz.js → payment-input-rac-COydWmUE.js} +34 -34
  76. package/dist/component/{phone-input-field-rac-D-AosrgV.js → phone-input-field-rac-DYCibqe1.js} +54 -54
  77. package/dist/component/{phone-rac-DXLYlz5G.js → phone-rac-BS-dmWkJ.js} +1 -1
  78. package/dist/component/{product-list-rac-CGt4Gnj4.js → product-list-rac-hxOhaA-r.js} +84 -84
  79. package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +13 -0
  80. package/dist/component/{radio-group-field-rac-D8NS7qDq.js → radio-group-field-rac-DKqWnMBJ.js} +3 -3
  81. package/dist/component/{radio-group-field-rac.module-wK26tCZq.js → radio-group-field-rac.module-BwUynK_5.js} +9 -9
  82. package/dist/component/{radio-group-rac-HalDjwk1.js → radio-group-rac-DHURQZKK.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BBhMkSyL.js → rating-input-field-rac-CZRdSVrf.js} +37 -37
  84. package/dist/component/{rating-input-rac-BpgFnNoD.js → rating-input-rac-BaH52DYm.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-BgJ2fteu.js → rich-content-rac.module-ILBfxEmN.js} +4 -4
  86. package/dist/component/{rich-text-field-rac-BZfCgvHc.js → rich-text-field-rac-B58q8Is7.js} +7 -7
  87. package/dist/component/{rich-text-rac-CG3V04Gr.js → rich-text-rac-DGbZh1eX.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Bc_y-R5O.js → service-dropdown-rac-DUiNIbdv.js} +42 -42
  89. package/dist/component/{services-multi-choice-rac-BeBdZpRV.js → services-multi-choice-rac-B7y9s2l8.js} +29 -29
  90. package/dist/component/{signature-rac-DNdpHxFp.js → signature-rac-CydpvQJZ.js} +37 -37
  91. package/dist/component/{submit-button-rac-Bogk1xYc.js → submit-button-rac-OO53h4H8.js} +8 -8
  92. package/dist/component/{tags-field-rac-COJG3T_9.js → tags-field-rac-eX3d3JEH.js} +50 -50
  93. package/dist/component/{tags-rac-DsaUqJ4w.js → tags-rac-CdIB_48Z.js} +1 -1
  94. package/dist/component/{text-area-field-rac-BVq5p83p.js → text-area-field-rac-Bir5Q7gz.js} +22 -22
  95. package/dist/component/{text-area-rac-D-uiOy62.js → text-area-rac-Ct1UNU04.js} +1 -1
  96. package/dist/component/{text-input-field-rac-wYvY_eBR.js → text-input-field-rac-onGUXC9J.js} +6 -6
  97. package/dist/component/{text-input-headless-BsL6OYhp.js → text-input-headless-Bs9m7QFg.js} +10 -10
  98. package/dist/component/{text-input-rac-Bu8kXhrN.js → text-input-rac-DK4nEw4D.js} +1 -1
  99. package/dist/component/{time-input-rac-PWXUi1qL.js → time-input-rac-BCG9ktFa.js} +40 -40
  100. package/dist/component/{url-input-field-rac-B4qgrssx.js → url-input-field-rac-mUkrVTcL.js} +25 -25
  101. package/dist/component/{url-input-rac-Bo51kTsG.js → url-input-rac-Cl7LFYlr.js} +1 -1
  102. package/dist/component/{use-service-options-base-Du6B6AP9.js → use-service-options-base-BYVuKRj2.js} +8 -8
  103. package/dist/form.d.ts +3 -1
  104. package/package.json +2 -14
  105. package/dist/component/checkbox-field-rac-DhAEMdL9.js +0 -625
  106. package/dist/component/checkbox-group-field-headless-EGVW3vG0.js +0 -204
  107. package/dist/component/checkbox-group-field-rac-DUDWNOwV.js +0 -33
  108. package/dist/component/contacts-subscribe-rac-D_2wIX9p.js +0 -13
  109. package/dist/component/field-rac.module-DtugsLiL.js +0 -21
  110. package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
  111. package/dist/component/isObject-BAwJJxQ3.js +0 -34
  112. package/dist/component/multiline-address-field-rac-_Sb56AEM.js +0 -1574
  113. package/dist/component/quiz-radio-group-rac-DaStzNZZ.js +0 -13
@@ -0,0 +1,210 @@
1
+ import r, { useMemo as F, useCallback as _, useRef as H, useState as w, useEffect as U } from "react";
2
+ import { CheckboxGroup as W, CheckboxField as A, CheckboxButton as j, TextField as z, Input as J } from "react-aria-components";
3
+ import { debounce as K } from "ts-debounce";
4
+ import { ai as N, af as Q, as as X, ab as Y, ak as Z } from "./form-9yjqDnxY.js";
5
+ import { f as L, a as k } from "./find-child-C60k4CxG.js";
6
+ import { D as ee, E as te } from "./field-error-headless-DrnFrGun.js";
7
+ import { L as ne } from "./field-label-headless-BIYf1BIh.js";
8
+ import { F as ae } 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((l) => !t.includes(l)), B = (e, t) => e.length > 0 && le(e, t), oe = (e, t) => {
11
+ const l = t == null ? void 0 : t("add-other.default-other-option-label");
12
+ return e || l || R;
13
+ }, P = (e, t) => {
14
+ const a = t ? t.length + 2 : 0;
15
+ return (e.find((c) => c.startsWith(`${t}: `)) || "").slice(a);
16
+ }, D = (e) => e.map((t) => t.value ?? t.label), v = ({ children: e }) => {
17
+ const t = N(), { id: l, value: a, onChange: n, disabled: c, required: u, onBlur: I, onFocus: p, hasError: b, FieldLayout: i } = t, { inputId: f, labelId: d, ariaDescribedBy: o } = Q(), O = L(e, v.Label), h = L(e, v.Options), g = L(e, v.Description), C = L(e, v.Error), s = F(() => a || [], [
18
+ a
19
+ ]), E = _((V) => {
20
+ n == null || n(V);
21
+ }, [
22
+ n
23
+ ]);
24
+ return /* @__PURE__ */ r.createElement(i, {
25
+ fieldId: l,
26
+ renderLabel: () => O,
27
+ renderInput: () => /* @__PURE__ */ r.createElement(ae, {
28
+ id: f,
29
+ ariaLabelledBy: d,
30
+ ariaDescribedBy: o,
31
+ required: u,
32
+ onBlur: I,
33
+ onFocus: p
34
+ }, /* @__PURE__ */ r.createElement(W, {
35
+ "aria-labelledby": d,
36
+ value: s,
37
+ onChange: E,
38
+ isDisabled: c,
39
+ isRequired: u,
40
+ isInvalid: b
41
+ }, h)),
42
+ renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, g)
43
+ });
44
+ }, $ = ({ children: e, className: t }) => {
45
+ const l = N(), { id: a, options: n, addOther: c, addOtherLabel: u, numberOfColumns: I } = l, { t: p } = X(), { isMobile: b } = Y(), i = L(e, $.Option), f = oe(u, p), d = b ? se.ONE : I;
46
+ return /* @__PURE__ */ r.createElement("div", {
47
+ className: t,
48
+ "data-columns": d
49
+ }, n == null ? void 0 : n.map((o, O) => {
50
+ const h = o.value ?? o.label;
51
+ return k(i, {
52
+ key: o.id || o.label,
53
+ value: h,
54
+ label: o.label,
55
+ isFirst: O === 0,
56
+ fieldId: a
57
+ });
58
+ }), c && k(i, {
59
+ key: R,
60
+ value: R,
61
+ label: f,
62
+ isOther: !0
63
+ }));
64
+ }, re = ({ className: e, ...t }) => {
65
+ const l = t;
66
+ return /* @__PURE__ */ r.createElement("div", {
67
+ "aria-hidden": "true",
68
+ className: typeof e == "function" ? e(l) : e
69
+ });
70
+ }, ce = ({ className: e, ...t }) => {
71
+ const { label: l } = t;
72
+ return /* @__PURE__ */ r.createElement("span", {
73
+ className: e
74
+ }, l);
75
+ }, x = ({ children: e, className: t, ...l }) => {
76
+ const { value: a, label: n, isFirst: c = !1, isOther: u = !1, fieldId: I } = l, p = N(), { value: b, onChange: i, disabled: f, readOnly: d, hasError: o, options: O } = p, h = H(null);
77
+ Z(() => {
78
+ var m;
79
+ c && ((m = h.current) == null || m.focus({
80
+ preventScroll: !0
81
+ }));
82
+ }, I);
83
+ const g = L(e, x.Label), C = L(e, x.Input), s = F(() => b || [], [
84
+ b
85
+ ]), E = F(() => u ? s.find((m) => m === n || m.startsWith(`${n}: `)) || n : a, [
86
+ u,
87
+ s,
88
+ n,
89
+ a
90
+ ]), V = _((m) => {
91
+ if (!u)
92
+ return;
93
+ const y = D(O || []), S = s.filter((G) => y.includes(G)), q = m ? [
94
+ ...S,
95
+ n
96
+ ] : S;
97
+ i == null || i(q);
98
+ }, [
99
+ u,
100
+ n,
101
+ i,
102
+ O,
103
+ s
104
+ ]);
105
+ return /* @__PURE__ */ r.createElement(A, {
106
+ value: E,
107
+ onChange: u ? V : void 0,
108
+ isDisabled: f,
109
+ isReadOnly: d,
110
+ isInvalid: o
111
+ }, /* @__PURE__ */ r.createElement(j, {
112
+ ref: h,
113
+ className: t,
114
+ "data-hook": `checkbox-${n}`
115
+ }, ({ isSelected: m, isHovered: y }) => /* @__PURE__ */ r.createElement(r.Fragment, null, k(C, {
116
+ isSelected: m,
117
+ isHovered: y
118
+ }), k(g, {
119
+ label: n
120
+ }))));
121
+ };
122
+ x.Label = ce;
123
+ x.Input = re;
124
+ const M = ({ children: e, ...t }) => {
125
+ const { value: l, label: a, isFirst: n = !1, isOther: c = !1, fieldId: u } = t, I = N(), { value: p, onChange: b, options: i, addOtherPlaceholder: f, otherInputCharacterLimit: d, disabled: o, readOnly: O, hasError: h } = I, g = L(e, x), C = L(e, T), s = F(() => p || [], [
126
+ p
127
+ ]), E = F(() => {
128
+ if (!c)
129
+ return !1;
130
+ const V = D(i || []);
131
+ return B(s, V);
132
+ }, [
133
+ c,
134
+ s,
135
+ i
136
+ ]);
137
+ return /* @__PURE__ */ r.createElement(r.Fragment, null, k(g, {
138
+ value: l,
139
+ label: a,
140
+ isFirst: n,
141
+ isOther: c,
142
+ fieldId: u
143
+ }), c && E && k(C, {
144
+ fieldValue: s,
145
+ onChange: b,
146
+ label: a,
147
+ placeholder: f,
148
+ maxLength: d,
149
+ disabled: o,
150
+ readOnly: O,
151
+ hasError: h,
152
+ ariaLabel: a,
153
+ addOtherLabel: a,
154
+ options: i
155
+ }));
156
+ }, T = ({ className: e, inputClassName: t, ...l }) => {
157
+ const { fieldValue: a, onChange: n, label: c, placeholder: u, maxLength: I, disabled: p, readOnly: b, hasError: i, ariaLabel: f, addOtherLabel: d, options: o } = l, [O, h] = w(() => {
158
+ const s = D(o || []);
159
+ return B(a, s) ? P(a, d) : "";
160
+ });
161
+ U(() => {
162
+ const s = D(o || []), E = B(a, s);
163
+ h(E ? P(a, d) : "");
164
+ }, [
165
+ a,
166
+ o,
167
+ d
168
+ ]);
169
+ const g = F(() => K((s) => {
170
+ const E = D(o || []), V = a.filter((S) => E.includes(S)), m = s ? `${d}: ${s}` : c, y = [
171
+ ...V,
172
+ m
173
+ ];
174
+ n(y);
175
+ }, 500), [
176
+ n,
177
+ o,
178
+ a,
179
+ d,
180
+ c
181
+ ]), C = _((s) => {
182
+ h(s), g(s);
183
+ }, [
184
+ g
185
+ ]);
186
+ return /* @__PURE__ */ r.createElement(z, {
187
+ "aria-label": f,
188
+ value: O,
189
+ onChange: C,
190
+ isDisabled: p,
191
+ isReadOnly: b,
192
+ isInvalid: i,
193
+ className: e
194
+ }, /* @__PURE__ */ r.createElement(J, {
195
+ className: t,
196
+ placeholder: u,
197
+ maxLength: I,
198
+ "aria-label": f
199
+ }));
200
+ };
201
+ v.Label = ne;
202
+ v.Options = $;
203
+ $.Option = M;
204
+ M.Checkbox = x;
205
+ M.OtherInput = T;
206
+ v.Description = ee;
207
+ v.Error = te;
208
+ export {
209
+ v as C
210
+ };
@@ -0,0 +1,40 @@
1
+ import { RicosViewer as E } from "@wix/ricos/viewer";
2
+ import a from "classnames";
3
+ import e from "react";
4
+ import { ac as l } from "./form-9yjqDnxY.js";
5
+ import { C as t } from "./checkbox-group-field-headless-BDAFpX5F.js";
6
+ import { E as _ } from "./error-icon-hZxQ6DEy.js";
7
+ import { s as o } from "./field-rac.module-CWkwwhq4.js";
8
+ import { t as m, J as O, a as C, b as i, c as p, d as R, e as I, s as L, n as S, j as D } from "./form-element-classes-KRzHUNLu.js";
9
+ import { o as n } from "./options-rac.module-KM-VT_KY.js";
10
+ const F = "checkboxGroupIndicator", N = ({ content: r, locale: s }) => /* @__PURE__ */ e.createElement(E, {
11
+ content: r,
12
+ locale: s
13
+ }), k = () => {
14
+ const r = l(F);
15
+ return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
16
+ className: a(m, o.label)
17
+ }, /* @__PURE__ */ e.createElement(t.Label.Required, {
18
+ className: a(O, o.requiredMark)
19
+ })), /* @__PURE__ */ e.createElement(t.Options, {
20
+ className: a(C, n.options)
21
+ }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
22
+ className: o.checkbox
23
+ }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
24
+ className: ({ isSelected: s, isHovered: c }) => a(i, o.checkboxInput, r, {
25
+ [R]: s,
26
+ [p]: c
27
+ })
28
+ }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
29
+ className: a(I, n.optionLabel)
30
+ })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
31
+ inputClassName: a(L, o.input)
32
+ }))), /* @__PURE__ */ e.createElement(t.Error, {
33
+ className: a(S, o.error)
34
+ }, /* @__PURE__ */ e.createElement(_, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
35
+ className: a(D, o.description)
36
+ }, N));
37
+ };
38
+ export {
39
+ k as C
40
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-group-field-rac-DUDWNOwV.js";
2
+ import { C as o } from "./checkbox-group-field-rac-2YUsOmDI.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxGroupRAC
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { C as o } from "./checkbox-field-rac-DhAEMdL9.js";
2
+ import { C as o } from "./checkbox-field-rac-CYADRY54.js";
3
3
  const c = () => /* @__PURE__ */ e.createElement(o, null);
4
4
  export {
5
5
  c as CheckboxRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsAddressRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-DPo7waqI.js";
2
+ import { D as e } from "./date-input-field-rac-RL2a0xoD.js";
3
3
  const a = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  a as ContactsBirthdateRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsCompanyRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { E as e } from "./email-input-field-rac-DUordV5X.js";
2
+ import { E as e } from "./email-input-field-rac-BScZxYHw.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as ContactsEmailRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const m = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  m as ContactsFirstNameRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const a = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  a as ContactsLastNameRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { P as e } from "./phone-input-field-rac-D-AosrgV.js";
2
+ import { P as e } from "./phone-input-field-rac-DYCibqe1.js";
3
3
  const r = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  r as ContactsPhoneRAC
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsPositionRAC
@@ -0,0 +1,13 @@
1
+ import C from "react";
2
+ import { C as S } from "./checkbox-field-rac-CYADRY54.js";
3
+ import { R as _, S as e, Q as o } from "./form-element-classes-KRzHUNLu.js";
4
+ const R = () => /* @__PURE__ */ C.createElement(S, {
5
+ classes: {
6
+ container: o,
7
+ label: e,
8
+ control: _
9
+ }
10
+ });
11
+ export {
12
+ R as ContactsSubscribeRAC
13
+ };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-wYvY_eBR.js";
2
+ import { T as e } from "./text-input-field-rac-onGUXC9J.js";
3
3
  const n = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  n as ContactsTaxIdRAC
@@ -1,4 +1,4 @@
1
- import { D as r } from "./form-D6A2hUbV.js";
1
+ import { D as r } from "./form-9yjqDnxY.js";
2
2
  const o = {
3
3
  0: r.SUNDAY,
4
4
  1: r.MONDAY,
@@ -1,22 +1,22 @@
1
1
  import { RicosViewer as X } from "@wix/ricos/viewer";
2
2
  import E from "classnames";
3
3
  import t, { useMemo as g, useState as x, useCallback as w, useRef as B } from "react";
4
- import { ag as D, ad as U, aa as A, H as k, a0 as q, r as i, aq as P, w as Z, J as ee, a7 as te, ai as V } from "./form-D6A2hUbV.js";
4
+ import { ai as D, af as k, ab as A, J as U, a1 as $, r as i, as as P, x as Z, K as ee, a8 as te, ak as H } from "./form-9yjqDnxY.js";
5
5
  import { UNSAFE_PortalProvider as ae } from "react-aria";
6
- import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as $, SelectValue as se, Input as z } from "react-aria-components";
6
+ import { ListBoxItem as ne, ListBox as re, Select as oe, TextField as q, SelectValue as se, Input as z } from "react-aria-components";
7
7
  import { f as p, a as J } from "./find-child-C60k4CxG.js";
8
8
  import { g as le } from "./helpers-HmkkXrh2.js";
9
- import { D as ce, E as ie } from "./field-error-headless-DP4WSQU3.js";
10
- import { L as me } from "./field-label-headless-BKmi7Fjg.js";
9
+ import { D as ce, E as ie } from "./field-error-headless-DrnFrGun.js";
10
+ import { L as me } from "./field-label-headless-BIYf1BIh.js";
11
11
  import { F as de } from "./fieldset-headless-CD3fds9J.js";
12
12
  import { N as ue, S as pe } from "./non-modal-popover-DtIMXHbe.js";
13
13
  import { C as Ee } from "./chevron-down-icon-CcpVm6B-.js";
14
14
  import { E as be } from "./error-icon-hZxQ6DEy.js";
15
15
  import { H as fe } from "./custom-focus-class-_483Pkwp.js";
16
- import { s as u } from "./field-rac.module-DtugsLiL.js";
17
- import { r as R, H as he, q as H, u as Ie, l as De, h as ye } from "./form-element-classes-Bi-nNM8q.js";
16
+ import { s as u } from "./field-rac.module-CWkwwhq4.js";
17
+ import { t as R, J as he, s as j, w as Ie, n as De, j as ye } from "./form-element-classes-KRzHUNLu.js";
18
18
  const n = ({ children: e, className: a }) => {
19
- const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = U(), { regionalFormat: b } = A(), I = g(() => k(b).filter(q).map((v) => v.toUpperCase()), [
19
+ const { id: r, required: o, onBlur: s, onFocus: c, FieldLayout: l } = D(), { inputId: d, labelId: m, ariaDescribedBy: f } = k(), { regionalFormat: b } = A(), I = g(() => U(b).filter($).map((v) => v.toUpperCase()), [
20
20
  b
21
21
  ]), O = p(e, n.Label), T = p(e, n.Description), Y = p(e, n.Error), N = {
22
22
  [i.MONTH]: p(e, n.Month),
@@ -70,12 +70,12 @@ const n = ({ children: e, className: a }) => {
70
70
  isOpen: I,
71
71
  onOpenChange: K
72
72
  }, G, W)));
73
- }, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
73
+ }, _e = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
74
74
  datePart: i.MONTH,
75
75
  className: e
76
76
  }), ge = ({ children: e, className: a }) => {
77
77
  const { id: r, readOnly: o } = D(), { inputId: s } = _(i.MONTH), { partError: c, isFirstPart: l } = L(i.MONTH), d = B(null);
78
- return V(() => {
78
+ return H(() => {
79
79
  var m;
80
80
  l && ((m = d.current) == null || m.focus());
81
81
  }, r), /* @__PURE__ */ t.createElement(pe, {
@@ -116,7 +116,7 @@ const F = ({ children: e, className: a }) => {
116
116
  return /* @__PURE__ */ t.createElement("div", {
117
117
  className: a,
118
118
  "data-date-field": !0
119
- }, s && f, /* @__PURE__ */ t.createElement($, {
119
+ }, s && f, /* @__PURE__ */ t.createElement(q, {
120
120
  "aria-labelledby": s ? c : void 0,
121
121
  value: l,
122
122
  onChange: m,
@@ -124,12 +124,12 @@ const F = ({ children: e, className: a }) => {
124
124
  isReadOnly: o,
125
125
  isInvalid: d
126
126
  }, b));
127
- }, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
127
+ }, Oe = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
128
128
  datePart: i.DAY,
129
129
  className: e
130
130
  }), Ne = ({ className: e }) => {
131
131
  const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.DAY), { isFirstPart: s } = L(i.DAY), { t: c } = P(), l = B(null), d = r ? void 0 : c("field.date.placeholder.day");
132
- return V(() => {
132
+ return H(() => {
133
133
  var m;
134
134
  s && ((m = l.current) == null || m.focus());
135
135
  }, a), /* @__PURE__ */ t.createElement(z, {
@@ -149,7 +149,7 @@ const C = ({ children: e, className: a }) => {
149
149
  return /* @__PURE__ */ t.createElement("div", {
150
150
  className: a,
151
151
  "data-date-field": !0
152
- }, s && f, /* @__PURE__ */ t.createElement($, {
152
+ }, s && f, /* @__PURE__ */ t.createElement(q, {
153
153
  "aria-labelledby": s ? c : void 0,
154
154
  value: l,
155
155
  onChange: m,
@@ -157,12 +157,12 @@ const C = ({ children: e, className: a }) => {
157
157
  isReadOnly: o,
158
158
  isInvalid: d
159
159
  }, b));
160
- }, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(j, {
160
+ }, Fe = ({ className: e }) => /* @__PURE__ */ t.createElement(V, {
161
161
  datePart: i.YEAR,
162
162
  className: e
163
163
  }), Ce = ({ className: e }) => {
164
164
  const { id: a, hidePlaceholder: r } = D(), { inputId: o } = _(i.YEAR), { isFirstPart: s } = L(i.YEAR), { t: c } = P(), l = B(null), d = r ? void 0 : c("field.date.placeholder.year");
165
- return V(() => {
165
+ return H(() => {
166
166
  var m;
167
167
  s && ((m = l.current) == null || m.focus());
168
168
  }, a), /* @__PURE__ */ t.createElement(z, {
@@ -184,7 +184,7 @@ n.Year = C;
184
184
  n.Description = ce;
185
185
  n.Error = ie;
186
186
  function _(e) {
187
- const { inputId: a } = U();
187
+ const { inputId: a } = k();
188
188
  return g(() => {
189
189
  const r = e.toLowerCase();
190
190
  return {
@@ -209,7 +209,7 @@ function L(e) {
209
209
  r,
210
210
  c,
211
211
  e
212
- ]), f = g(() => k(s).filter(q).map((O) => O.toUpperCase())[0] === e, [
212
+ ]), f = g(() => U(s).filter($).map((O) => O.toUpperCase())[0] === e, [
213
213
  s,
214
214
  e
215
215
  ]);
@@ -220,7 +220,7 @@ function L(e) {
220
220
  isFirstPart: f
221
221
  };
222
222
  }
223
- function j({ datePart: e, className: a }) {
223
+ function V({ datePart: e, className: a }) {
224
224
  const { inputId: r, labelId: o } = _(e), { t: s } = P(), c = `field.date.label.${e.toLowerCase()}`, l = s(c);
225
225
  return /* @__PURE__ */ t.createElement("label", {
226
226
  id: o,
@@ -228,7 +228,7 @@ function j({ datePart: e, className: a }) {
228
228
  className: a
229
229
  }, l);
230
230
  }
231
- const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae = "_year_12ojb_11", Pe = "_mobile_12ojb_25", Te = "_dayInput_12ojb_37", Ye = "_yearInput_12ojb_38", ve = "_monthTrigger_12ojb_42", He = "_monthOption_12ojb_62", h = {
231
+ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae = "_year_12ojb_11", Pe = "_mobile_12ojb_25", Te = "_dayInput_12ojb_37", Ye = "_yearInput_12ojb_38", ve = "_monthTrigger_12ojb_42", je = "_monthOption_12ojb_62", h = {
232
232
  fields: Me,
233
233
  month: Re,
234
234
  day: Se,
@@ -237,7 +237,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
237
237
  dayInput: Te,
238
238
  yearInput: Ye,
239
239
  monthTrigger: ve,
240
- monthOption: He
240
+ monthOption: je
241
241
  }, we = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(X, {
242
242
  content: e,
243
243
  locale: a
@@ -256,7 +256,7 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
256
256
  }, /* @__PURE__ */ t.createElement(n.Month.Label, {
257
257
  className: E(R, u.label)
258
258
  }), /* @__PURE__ */ t.createElement(n.Month.Trigger, {
259
- className: E(H, u.input, h.monthTrigger)
259
+ className: E(j, u.input, h.monthTrigger)
260
260
  }, /* @__PURE__ */ t.createElement(Ee, {
261
261
  className: u.dropdownIcon
262
262
  })), /* @__PURE__ */ t.createElement(n.Month.Options, {
@@ -268,13 +268,13 @@ const Me = "_fields_12ojb_1", Re = "_month_12ojb_9", Se = "_day_12ojb_10", Ae =
268
268
  }, /* @__PURE__ */ t.createElement(n.Day.Label, {
269
269
  className: E(R, u.label)
270
270
  }), /* @__PURE__ */ t.createElement(n.Day.Input, {
271
- className: E(H, u.input, h.dayInput)
271
+ className: E(j, u.input, h.dayInput)
272
272
  })), /* @__PURE__ */ t.createElement(n.Year, {
273
273
  className: h.year
274
274
  }, /* @__PURE__ */ t.createElement(n.Year.Label, {
275
275
  className: E(R, u.label)
276
276
  }), /* @__PURE__ */ t.createElement(n.Year.Input, {
277
- className: E(H, u.input, h.yearInput)
277
+ className: E(j, u.input, h.yearInput)
278
278
  })), /* @__PURE__ */ t.createElement(n.Error, {
279
279
  className: E(De, u.error)
280
280
  }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(n.Error.Text, null)), /* @__PURE__ */ t.createElement(n.Description, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { D as e } from "./date-input-field-rac-DPo7waqI.js";
2
+ import { D as e } from "./date-input-field-rac-RL2a0xoD.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as DateInputRAC