@wix/form-elements 1.64.0 → 1.65.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 (109) hide show
  1. package/dist/component/{appointment-rac-DojiZqx9.js → appointment-rac-0kUk8XQJ.js} +35 -35
  2. package/dist/component/{bookings-address-rac-Bm_lQchD.js → bookings-address-rac-BUM0wpw0.js} +1 -1
  3. package/dist/component/{bookings-email-rac-vwuy0kW8.js → bookings-email-rac-BHlvupVS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BbWuLoeg.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
  5. package/dist/component/{bookings-header-rac-DVknNH29.js → bookings-header-rac-BkRvQMi4.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BnT3Cq0b.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DKi-VAXc.js → bookings-login-bar-rac-D-2Bt7Kx.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-Bfy8rheB.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DGiBDcXw.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CYADRY54.js → checkbox-field-rac-BamOJv3P.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-BDAFpX5F.js → checkbox-group-field-headless-BmKJbEi0.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-2YUsOmDI.js → checkbox-group-field-rac-CC8qfj0Y.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-CQf1C9H5.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
  14. package/dist/component/{checkbox-rac-Bjv8jZjs.js → checkbox-rac-X6E-fJ8k.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BBTiEec9.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-XReeFHVW.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
  17. package/dist/component/{contacts-company-rac-B-fUQszu.js → contacts-company-rac-cjLRO5J-.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DBtcCcsV.js → contacts-email-rac-BlJJSkGK.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-mkwU3706.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DY5N-AZx.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-Ce1rMz_z.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B65H8PDu.js → contacts-position-rac-DlKC0lCU.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-POSKh1Ta.js +13 -0
  24. package/dist/component/{contacts-tax-id-rac-Jtt0ySK2.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
  25. package/dist/component/{date-availability-B8UwvTJa.js → date-availability-DnFJD1aS.js} +1 -1
  26. package/dist/component/{date-input-field-rac-RL2a0xoD.js → date-input-field-rac-DojzGm-i.js} +30 -30
  27. package/dist/component/{date-input-rac-ak3G7V07.js → date-input-rac-BaPKcAuU.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-SL_Roltf.js → date-picker-field-rac-C1rzJMV8.js} +16 -16
  29. package/dist/component/{date-picker-rac-ByrM0YIX.js → date-picker-rac-BHsOfkYn.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-DOE7xcKi.js → date-time-input-field-rac-B4jAAxU8.js} +15 -15
  31. package/dist/component/{date-time-input-rac-BA-GyrAc.js → date-time-input-rac-XyL5z_ma.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-EwUnBO80.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CIRKi4B5.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BYO_Q1zM.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BOahPeaH.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-sTD_r-0H.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
  37. package/dist/component/{dext-email-rac-e-2_h3he.js → dext-email-rac-xk_5C79-.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D6LACzWl.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
  39. package/dist/component/{dext-phone-rac-kUycy5Od.js → dext-phone-rac-S34qxXwg.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DPD2UkrV.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DUsnrl9W.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
  42. package/dist/component/{dext-tags-rac-D6z69HuO.js → dext-tags-rac-BApZKGqP.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-C-DVtFJ1.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CIa2MdC6.js → dext-text-input-rac-qI8VECmA.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-8rVVW5us.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
  46. package/dist/component/donation-rac-BDVKvG4j.js +302 -0
  47. package/dist/component/{dropdown-field-headless-DReo519l.js → dropdown-field-headless-DBl8vGed.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-DzrjA2O6.js → dropdown-field-rac-O6G7_kSn.js} +7 -7
  49. package/dist/component/{dropdown-rac-CS7oLTp_.js → dropdown-rac-BImZ5Jwe.js} +1 -1
  50. package/dist/component/{ecom-address-rac-EIb88J_6.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CE0Ks6qS.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +5 -5
  52. package/dist/component/{email-input-field-rac-BScZxYHw.js → email-input-field-rac-Ui0p35z5.js} +59 -59
  53. package/dist/component/{events-repeater-rac-Y0rH2Jli.js → events-repeater-rac-bPKOOOit.js} +8 -8
  54. package/dist/component/{events-rsvp-rac-BiAYVv_b.js → events-rsvp-rac-lsRBBfPQ.js} +12 -12
  55. package/dist/component/{field-error-headless-DrnFrGun.js → field-error-headless-D6iejMQP.js} +1 -1
  56. package/dist/component/{field-label-headless-BIYf1BIh.js → field-label-headless-BWLfU3YB.js} +1 -1
  57. package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
  58. package/dist/component/{file-upload-rac-br--tZLp.js → file-upload-rac-DqKL8QQZ.js} +87 -87
  59. package/dist/component/{fixed-payment-rac-XEtrsaMy.js → fixed-payment-rac-BDtRB8w2.js} +9 -9
  60. package/dist/component/{form-9yjqDnxY.js → form-CtWkUmxc.js} +69 -69
  61. package/dist/component/form-element-classes-BSMjWijd.js +63 -0
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-CLELgzqY.js → header-field-rac-BLM8RCDY.js} +3 -3
  65. package/dist/component/{header-rac-D8KGkVVp.js → header-rac-DViRwafg.js} +1 -1
  66. package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
  67. package/dist/component/{index-PHkE0Ru4.js → index--iRBHLXJ.js} +4 -4
  68. package/dist/component/{index-C4y71e1i.js → index-pEItT2oo.js} +2 -2
  69. package/dist/component/{isObjectLike-srCDplej.js → isObjectLike-968AHV2b.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-CsBLI9y-.js → multiline-address-field-rac-CObOc8KE.js} +98 -98
  71. package/dist/component/{multiline-address-rac-DFDPFfXh.js → multiline-address-rac-1qVZkN41.js} +1 -1
  72. package/dist/component/{number-input-field-rac-DZRR7gdt.js → number-input-field-rac-CPQ3u0N7.js} +20 -20
  73. package/dist/component/{number-input-rac-BCS5lkff.js → number-input-rac-Bq1UyUPZ.js} +1 -1
  74. package/dist/component/{password-rac-ClDGgR3E.js → password-rac-BZPK1VkN.js} +9 -9
  75. package/dist/component/{payment-input-rac-COydWmUE.js → payment-input-rac-CQrV0WmN.js} +11 -11
  76. package/dist/component/{phone-input-field-rac-DYCibqe1.js → phone-input-field-rac-DzUE1-RF.js} +56 -56
  77. package/dist/component/{phone-rac-BS-dmWkJ.js → phone-rac-BovOZ7V5.js} +1 -1
  78. package/dist/component/{product-list-rac-hxOhaA-r.js → product-list-rac-CeGm1_WN.js} +22 -22
  79. package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
  80. package/dist/component/{radio-group-field-rac-DKqWnMBJ.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
  81. package/dist/component/{radio-group-field-rac.module-BwUynK_5.js → radio-group-field-rac.module-Cb3mm0f2.js} +3 -3
  82. package/dist/component/{radio-group-rac-DHURQZKK.js → radio-group-rac-BHhOCSQ2.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-CZRdSVrf.js → rating-input-field-rac-BvbBZZDO.js} +21 -21
  84. package/dist/component/{rating-input-rac-BaH52DYm.js → rating-input-rac-DDe1EBpt.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-ILBfxEmN.js → rich-content-rac.module-BacYkzEv.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-B58q8Is7.js → rich-text-field-rac-D1W0mUjr.js} +5 -5
  87. package/dist/component/{rich-text-rac-DGbZh1eX.js → rich-text-rac-B-cOn0RU.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-DUiNIbdv.js → service-dropdown-rac-CebfMkGP.js} +22 -22
  89. package/dist/component/{services-multi-choice-rac-B7y9s2l8.js → services-multi-choice-rac-C4bF1xhB.js} +29 -29
  90. package/dist/component/{signature-rac-CydpvQJZ.js → signature-rac-DWWT65Ez.js} +46 -46
  91. package/dist/component/{submit-button-rac-OO53h4H8.js → submit-button-rac-_mgn4ChE.js} +2 -2
  92. package/dist/component/{tags-field-rac-eX3d3JEH.js → tags-field-rac-7coCWj0y.js} +59 -59
  93. package/dist/component/{tags-rac-CdIB_48Z.js → tags-rac-rgsn8Os0.js} +1 -1
  94. package/dist/component/{text-area-field-rac-Bir5Q7gz.js → text-area-field-rac-5lUQxnNM.js} +15 -15
  95. package/dist/component/{text-area-rac-Ct1UNU04.js → text-area-rac-DpGOBzN3.js} +1 -1
  96. package/dist/component/{text-input-field-rac-onGUXC9J.js → text-input-field-rac-CgWadDfM.js} +3 -3
  97. package/dist/component/{text-input-headless-Bs9m7QFg.js → text-input-headless-fhxuPytc.js} +3 -3
  98. package/dist/component/{text-input-rac-DK4nEw4D.js → text-input-rac-kgWS3UUV.js} +1 -1
  99. package/dist/component/{time-input-rac-BCG9ktFa.js → time-input-rac-CuLUJcBH.js} +15 -15
  100. package/dist/component/{url-input-field-rac-mUkrVTcL.js → url-input-field-rac-CAGHb2na.js} +18 -18
  101. package/dist/component/{url-input-rac-Cl7LFYlr.js → url-input-rac-s5_SVi0h.js} +1 -1
  102. package/dist/component/{use-service-options-base-BYVuKRj2.js → use-service-options-base-CYAEJ75H.js} +1 -1
  103. package/package.json +2 -2
  104. package/dist/component/contacts-subscribe-rac-BxO8rIyL.js +0 -13
  105. package/dist/component/donation-rac-BjmSBabc.js +0 -305
  106. package/dist/component/field-rac.module-CWkwwhq4.js +0 -21
  107. package/dist/component/form-element-classes-KRzHUNLu.js +0 -57
  108. package/dist/component/image-choice-rac-Cl09CLP4.js +0 -141
  109. package/dist/component/quiz-radio-group-rac-BT-YZO2Q.js +0 -13
@@ -1,75 +1,75 @@
1
- import { RicosViewer as j } from "@wix/ricos/viewer";
1
+ import { RicosViewer as H } from "@wix/ricos/viewer";
2
2
  import _ from "classnames";
3
- import e, { useMemo as F, useState as J, useRef as M, useLayoutEffect as Q, useCallback as k } from "react";
4
- import { CheckboxGroup as w, TextField as z, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
5
- import { ai as y, af as Z, as as v, ab as ee, ak as te } from "./form-9yjqDnxY.js";
6
- import { f, a as q } from "./find-child-C60k4CxG.js";
7
- import { E as x, D as B } from "./field-error-headless-DrnFrGun.js";
8
- import { L as P } from "./field-label-headless-BIYf1BIh.js";
3
+ import e, { useMemo as F, useState as j, useRef as k, useLayoutEffect as z, useCallback as M } from "react";
4
+ import { CheckboxGroup as Q, TextField as J, Input as K, CheckboxField as X, CheckboxButton as Y } from "react-aria-components";
5
+ import { ai as D, af as Z, as as v, ab as ee, ak as te } from "./form-CtWkUmxc.js";
6
+ import { f, a as x } from "./find-child-C60k4CxG.js";
7
+ import { E as B, D as P } from "./field-error-headless-D6iejMQP.js";
8
+ import { L as $ } from "./field-label-headless-BWLfU3YB.js";
9
9
  import { F as ae } from "./fieldset-headless-CD3fds9J.js";
10
- import { N as D } from "./options-layout-constants-DEfIEJWD.js";
10
+ import { N } from "./options-layout-constants-DEfIEJWD.js";
11
11
  import { E as ne } from "./error-icon-hZxQ6DEy.js";
12
- import { s as S } from "./field-rac.module-CWkwwhq4.js";
13
- import { t as oe, J as re, U as se, V as le, W as ie, s as ce, n as ue, j as de } from "./form-element-classes-KRzHUNLu.js";
12
+ import { s as S } from "./field-rac.module-DnUIb9Oh.js";
13
+ import { z as re, P as oe, _ as se, $ as le, a0 as ie, y as ce, q as ue, j as de } from "./form-element-classes-BSMjWijd.js";
14
14
  import { o as me } from "./options-rac.module-KM-VT_KY.js";
15
15
  const g = "Other", pe = (t, a) => {
16
16
  const c = a.length + 2;
17
- return (t.find((o) => o.startsWith(`${a}: `)) || "").slice(c);
18
- }, he = (t) => t.map((a) => a.value ?? a.label), W = ({ className: t, ...a }) => {
17
+ return (t.find((r) => r.startsWith(`${a}: `)) || "").slice(c);
18
+ }, he = (t) => t.map((a) => a.value ?? a.label), q = ({ className: t, ...a }) => {
19
19
  const { label: l } = a;
20
20
  return /* @__PURE__ */ e.createElement("span", {
21
21
  className: t
22
22
  }, l);
23
- }, $ = ({ className: t }) => {
24
- const { value: a, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: o, disabled: u, readOnly: b, hasError: d } = y(), { t: m } = v(), r = c || m("add-other.default-other-option-label") || g, p = F(() => pe(a || [], r), [
23
+ }, W = ({ className: t }) => {
24
+ const { value: a, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: r, disabled: u, readOnly: b, hasError: d } = D(), { t: m } = v(), o = c || m("add-other.default-other-option-label") || g, p = F(() => pe(a || [], o), [
25
25
  a,
26
- r
27
- ]), [n, L] = J(p), h = M(l);
28
- Q(() => {
26
+ o
27
+ ]), [n, L] = j(p), h = k(l);
28
+ z(() => {
29
29
  h.current = l;
30
30
  });
31
- const I = k((E) => {
31
+ const I = M((E) => {
32
32
  L(E);
33
- const C = (a || []).filter((O) => !O.startsWith(`${r}:`) && O !== r), R = E ? `${r}: ${E}` : r;
33
+ const C = (a || []).filter((O) => !O.startsWith(`${o}:`) && O !== o), R = E ? `${o}: ${E}` : o;
34
34
  h.current([
35
35
  ...C,
36
36
  R
37
37
  ]);
38
38
  }, [
39
39
  a,
40
- r
40
+ o
41
41
  ]);
42
- return /* @__PURE__ */ e.createElement(z, {
42
+ return /* @__PURE__ */ e.createElement(J, {
43
43
  value: n,
44
44
  onChange: I,
45
45
  isDisabled: u,
46
46
  isReadOnly: b,
47
47
  isInvalid: d,
48
- "aria-label": r
48
+ "aria-label": o
49
49
  }, /* @__PURE__ */ e.createElement(K, {
50
50
  "data-hook": "tags-other-input",
51
51
  "data-filled": n ? !0 : void 0,
52
52
  placeholder: i,
53
- maxLength: o,
53
+ maxLength: r,
54
54
  className: t
55
55
  }));
56
56
  }, T = ({ children: t, className: a, ...l }) => {
57
- const { value: c, label: i, isOther: o, isFirstOption: u } = l, { id: b, value: d, onChange: m, options: r, disabled: p, readOnly: n, hasError: L } = y(), h = M(null);
57
+ const { value: c, label: i, isOther: r, isFirstOption: u } = l, { id: b, value: d, onChange: m, options: o, disabled: p, readOnly: n, hasError: L } = D(), h = k(null);
58
58
  te(() => {
59
59
  var O;
60
60
  u && ((O = h.current) == null || O.focus({
61
61
  preventScroll: !0
62
62
  }));
63
63
  }, b);
64
- const I = f(t, W), E = F(() => d || [], [
64
+ const I = f(t, q), E = F(() => d || [], [
65
65
  d
66
- ]), C = F(() => o ? E.find((O) => O === i || O.startsWith(`${i}: `)) || i : c, [
67
- o,
66
+ ]), C = F(() => r ? E.find((O) => O === i || O.startsWith(`${i}: `)) || i : c, [
67
+ r,
68
68
  E,
69
69
  i,
70
70
  c
71
- ]), R = k((O) => {
72
- const G = he(r || []), V = E.filter((H) => G.includes(H));
71
+ ]), R = M((O) => {
72
+ const U = he(o || []), V = E.filter((w) => U.includes(w));
73
73
  m(O ? [
74
74
  ...V,
75
75
  i
@@ -77,27 +77,27 @@ const g = "Other", pe = (t, a) => {
77
77
  }, [
78
78
  i,
79
79
  m,
80
- r,
80
+ o,
81
81
  E
82
82
  ]);
83
83
  return /* @__PURE__ */ e.createElement(X, {
84
84
  inputRef: h,
85
85
  value: C,
86
- onChange: o ? R : void 0,
86
+ onChange: r ? R : void 0,
87
87
  isDisabled: p,
88
88
  isReadOnly: n,
89
89
  isInvalid: L
90
90
  }, /* @__PURE__ */ e.createElement(Y, {
91
91
  className: a,
92
- "data-hook": `tags-${o ? g : c}`
93
- }, q(I, {
92
+ "data-hook": `tags-${r ? g : c}`
93
+ }, x(I, {
94
94
  value: c,
95
95
  label: i,
96
- isOther: o,
96
+ isOther: r,
97
97
  isFirstOption: u
98
98
  })));
99
99
  }, A = ({ children: t, className: a }) => {
100
- const { options: l, addOther: c, addOtherLabel: i, numberOfColumns: o = D.FREE_FLOW } = y(), { isMobile: u } = ee(), { t: b } = v(), d = u && o !== D.FREE_FLOW ? D.ONE : o, m = i || b("add-other.default-other-option-label") || g, r = f(t, T), p = F(() => {
100
+ const { options: l, addOther: c, addOtherLabel: i, numberOfColumns: r = N.FREE_FLOW } = D(), { isMobile: u } = ee(), { t: b } = v(), d = u && r !== N.FREE_FLOW ? N.ONE : r, m = i || b("add-other.default-other-option-label") || g, o = f(t, T), p = F(() => {
101
101
  const n = l || [];
102
102
  return c ? [
103
103
  ...n,
@@ -117,7 +117,7 @@ const g = "Other", pe = (t, a) => {
117
117
  "data-columns": d
118
118
  }, p.map((n, L) => {
119
119
  const h = n.value ?? n.label;
120
- return q(r, {
120
+ return x(o, {
121
121
  key: n.isOther ? g : h,
122
122
  value: h,
123
123
  label: n.label,
@@ -125,8 +125,8 @@ const g = "Other", pe = (t, a) => {
125
125
  isFirstOption: L === 0
126
126
  });
127
127
  }));
128
- }, U = ({ children: t, className: a }) => {
129
- const { addOther: l, addOtherLabel: c, hasError: i, readOnly: o, value: u } = y(), { t: b } = v(), d = c || b("add-other.default-other-option-label") || g, m = f(t, A), r = f(t, $), p = F(() => !l || !u ? !1 : u.some((n) => n === d || n.startsWith(`${d}:`)), [
128
+ }, G = ({ children: t, className: a }) => {
129
+ const { addOther: l, addOtherLabel: c, hasError: i, readOnly: r, value: u } = D(), { t: b } = v(), d = c || b("add-other.default-other-option-label") || g, m = f(t, A), o = f(t, W), p = F(() => !l || !u ? !1 : u.some((n) => n === d || n.startsWith(`${d}:`)), [
130
130
  l,
131
131
  u,
132
132
  d
@@ -134,12 +134,12 @@ const g = "Other", pe = (t, a) => {
134
134
  return /* @__PURE__ */ e.createElement("div", {
135
135
  className: a,
136
136
  "data-invalid": i,
137
- "data-readonly": o
138
- }, m, p && r);
137
+ "data-readonly": r
138
+ }, m, p && o);
139
139
  }, s = ({ children: t }) => {
140
- const { id: a, value: l, onChange: c, FieldLayout: i, required: o, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: r } = y(), { inputId: p, labelId: n, ariaDescribedBy: L } = Z(), h = F(() => l || [], [
140
+ const { id: a, value: l, onChange: c, FieldLayout: i, required: r, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: o } = D(), { inputId: p, labelId: n, ariaDescribedBy: L } = Z(), h = F(() => l || [], [
141
141
  l
142
- ]), I = f(t, P), E = f(t, U), C = f(t, B), R = f(t, x);
142
+ ]), I = f(t, $), E = f(t, G), C = f(t, P), R = f(t, B);
143
143
  return /* @__PURE__ */ e.createElement(i, {
144
144
  fieldId: a,
145
145
  renderLabel: () => I,
@@ -147,46 +147,46 @@ const g = "Other", pe = (t, a) => {
147
147
  id: p,
148
148
  ariaLabelledBy: n,
149
149
  ariaDescribedBy: L,
150
- required: o,
150
+ required: r,
151
151
  onBlur: m,
152
- onFocus: r
153
- }, /* @__PURE__ */ e.createElement(w, {
152
+ onFocus: o
153
+ }, /* @__PURE__ */ e.createElement(Q, {
154
154
  "aria-labelledby": n,
155
155
  value: h,
156
156
  onChange: c,
157
157
  isDisabled: u,
158
158
  isReadOnly: b,
159
- isRequired: o,
159
+ isRequired: r,
160
160
  isInvalid: d
161
161
  }, E)),
162
162
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, R, C)
163
163
  });
164
164
  };
165
165
  A.Option = T;
166
- T.Label = W;
167
- s.Label = P;
168
- s.Control = U;
166
+ T.Label = q;
167
+ s.Label = $;
168
+ s.Control = G;
169
169
  s.Options = A;
170
- s.OtherInput = $;
171
- s.Description = B;
172
- s.Error = x;
173
- const Ee = "_control_lyoqm_1", Oe = "_options_lyoqm_7", be = "_option_lyoqm_7", N = {
170
+ s.OtherInput = W;
171
+ s.Description = P;
172
+ s.Error = B;
173
+ const Ee = "_control_1kvnw_1", Oe = "_options_1kvnw_7", be = "_option_1kvnw_7", y = {
174
174
  control: Ee,
175
175
  options: Oe,
176
176
  option: be
177
- }, fe = ({ content: t, locale: a }) => /* @__PURE__ */ e.createElement(j, {
177
+ }, fe = ({ content: t, locale: a }) => /* @__PURE__ */ e.createElement(H, {
178
178
  content: t,
179
179
  locale: a
180
180
  }), Ve = () => /* @__PURE__ */ e.createElement(s, null, /* @__PURE__ */ e.createElement(s.Label, {
181
- className: _(oe, S.label)
181
+ className: _(re, S.label)
182
182
  }, /* @__PURE__ */ e.createElement(s.Label.Required, {
183
- className: _(re, S.requiredMark)
183
+ className: _(oe, S.requiredMark)
184
184
  })), /* @__PURE__ */ e.createElement(s.Control, {
185
- className: N.control
185
+ className: y.control
186
186
  }, /* @__PURE__ */ e.createElement(s.Options, {
187
- className: _(se, N.options)
187
+ className: _(se, y.options)
188
188
  }, /* @__PURE__ */ e.createElement(s.Options.Option, {
189
- className: ({ isSelected: t }) => _(le, t && ie, N.option)
189
+ className: ({ isSelected: t }) => _(le, t && ie, y.option)
190
190
  }, /* @__PURE__ */ e.createElement(s.Options.Option.Label, {
191
191
  className: me.optionLabel
192
192
  }))), /* @__PURE__ */ e.createElement(s.OtherInput, {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-eX3d3JEH.js";
2
+ import { T as r } from "./tags-field-rac-7coCWj0y.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -1,14 +1,14 @@
1
1
  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
- import { TextField as N, TextArea as y } from "react-aria-components";
5
- import { ai as E, af as d, ak as x } from "./form-9yjqDnxY.js";
4
+ import { TextField as y, TextArea as N } from "react-aria-components";
5
+ import { ai as E, af as d, ak as x } from "./form-CtWkUmxc.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as h, E as M } from "./field-error-headless-DrnFrGun.js";
8
- import { L as g } from "./field-label-headless-BIYf1BIh.js";
9
- import { E as v } from "./error-icon-hZxQ6DEy.js";
10
- import { s } from "./field-rac.module-CWkwwhq4.js";
11
- import { t as q, J as B, s as k, n as P, j as U } from "./form-element-classes-KRzHUNLu.js";
7
+ import { D as h, E as M } from "./field-error-headless-D6iejMQP.js";
8
+ import { L as g } from "./field-label-headless-BWLfU3YB.js";
9
+ import { E as q } from "./error-icon-hZxQ6DEy.js";
10
+ import { s } from "./field-rac.module-DnUIb9Oh.js";
11
+ import { z as v, P as B, y as P, q as k, j as U } from "./form-element-classes-BSMjWijd.js";
12
12
  const e = ({ children: t }) => {
13
13
  const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: f, FieldLayout: I, hasError: F } = E(), { labelId: L } = d(), R = O((C) => {
14
14
  l(C);
@@ -18,7 +18,7 @@ const e = ({ children: t }) => {
18
18
  return /* @__PURE__ */ r.createElement(I, {
19
19
  fieldId: a,
20
20
  renderLabel: () => _,
21
- renderInput: () => /* @__PURE__ */ r.createElement(N, {
21
+ renderInput: () => /* @__PURE__ */ r.createElement(y, {
22
22
  "aria-labelledby": L,
23
23
  value: m ?? "",
24
24
  onChange: R,
@@ -36,7 +36,7 @@ const e = ({ children: t }) => {
36
36
  return x(() => {
37
37
  var i;
38
38
  (i = o.current) == null || i.focus();
39
- }, l), /* @__PURE__ */ r.createElement(y, {
39
+ }, l), /* @__PURE__ */ r.createElement(N, {
40
40
  ref: o,
41
41
  id: a,
42
42
  "aria-describedby": m,
@@ -50,20 +50,20 @@ e.Description = h;
50
50
  e.Error = M;
51
51
  const j = "_input_ug5v8_1", w = {
52
52
  input: j
53
- }, J = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(S, {
53
+ }, z = ({ 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, {
57
- className: n(q, s.label)
57
+ className: n(v, s.label)
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(k, s.input, w.input)
61
+ className: n(P, s.input, w.input)
62
62
  }), /* @__PURE__ */ r.createElement(e.Error, {
63
- className: n(P, s.error)
64
- }, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
63
+ className: n(k, s.error)
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
- }, J));
66
+ }, z));
67
67
  export {
68
68
  re as T
69
69
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-Bir5Q7gz.js";
2
+ import { T as r } from "./text-area-field-rac-5lUQxnNM.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,10 +1,10 @@
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-Bs9m7QFg.js";
4
+ import { T as r } from "./text-input-headless-fhxuPytc.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
- import { s as a } from "./field-rac.module-CWkwwhq4.js";
7
- import { t as n, J as c, s as E, n as i, j as R } from "./form-element-classes-KRzHUNLu.js";
6
+ import { s as a } from "./field-rac.module-DnUIb9Oh.js";
7
+ import { z as n, P as c, y as E, q as i, j as R } from "./form-element-classes-BSMjWijd.js";
8
8
  const _ = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
9
9
  content: s,
10
10
  locale: l
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
2
  import { TextField as R, Input as v } from "react-aria-components";
3
- import { ai as d, af as c, ak as T } from "./form-9yjqDnxY.js";
3
+ import { ai as d, af as c, ak as T } from "./form-CtWkUmxc.js";
4
4
  import { f as a } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-DrnFrGun.js";
6
- import { L as x } from "./field-label-headless-BIYf1BIh.js";
5
+ import { D as g, E as h } from "./field-error-headless-D6iejMQP.js";
6
+ import { L as x } from "./field-label-headless-BWLfU3YB.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: f, FieldLayout: b } = 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(b, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-onGUXC9J.js";
2
+ import { T as e } from "./text-input-field-rac-CgWadDfM.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,26 +1,26 @@
1
- import e, { useCallback as H, useRef as V, useContext as k } from "react";
2
- import { RicosViewer as q } from "@wix/ricos/viewer";
1
+ import e, { useCallback as H, useRef as V, useContext as q } from "react";
2
+ import { RicosViewer as k } from "@wix/ricos/viewer";
3
3
  import c from "classnames";
4
4
  import { parseTime as v } from "@internationalized/date";
5
5
  import { TimeField as x, DateInput as B, DateSegment as h, TimeFieldStateContext as U } from "react-aria-components";
6
- import { ai as p, af as j, as as T, ak as J } from "./form-9yjqDnxY.js";
6
+ import { ai as p, af as j, as as T, ak as z } from "./form-CtWkUmxc.js";
7
7
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as Q, E as z } from "./field-error-headless-DrnFrGun.js";
9
- import { L as G } from "./field-label-headless-BIYf1BIh.js";
8
+ import { D as Q, E as G } from "./field-error-headless-D6iejMQP.js";
9
+ import { L as J } from "./field-label-headless-BWLfU3YB.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
- import { s as E } from "./field-rac.module-CWkwwhq4.js";
13
- import { t as W, J as X, s as Y, n as Z, j as $ } from "./form-element-classes-KRzHUNLu.js";
12
+ import { s as E } from "./field-rac.module-DnUIb9Oh.js";
13
+ import { z as W, P as X, y as Y, q as Z, j as $ } from "./form-element-classes-BSMjWijd.js";
14
14
  const r = ({ children: t }) => {
15
15
  const { id: n, value: l, onChange: o, disabled: i, readOnly: s, 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
  }, [
19
19
  o
20
- ]), N = m(t, r.Label), y = m(t, r.Time), P = m(t, r.Description), A = m(t, r.Error), O = ne(l);
20
+ ]), y = m(t, r.Label), N = m(t, r.Time), P = m(t, r.Description), A = m(t, r.Error), O = ne(l);
21
21
  return /* @__PURE__ */ e.createElement(I, {
22
22
  fieldId: n,
23
- renderLabel: () => N,
23
+ renderLabel: () => y,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(x, {
25
25
  "aria-labelledby": D,
26
26
  id: L,
@@ -34,7 +34,7 @@ const r = ({ children: t }) => {
34
34
  onBlur: d,
35
35
  onFocus: f,
36
36
  hourCycle: b ? 24 : 12
37
- }, y),
37
+ }, N),
38
38
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
39
  });
40
40
  }, u = ({ children: t, className: n }) => {
@@ -66,7 +66,7 @@ const r = ({ children: t }) => {
66
66
  });
67
67
  }, ee = ({ className: t, ...n }) => {
68
68
  const { id: l, hidePlaceholder: o } = p(), { segment: i } = n, { t: s } = T(), a = V(null);
69
- J(() => {
69
+ z(() => {
70
70
  var f;
71
71
  (f = a.current) == null || f.focus();
72
72
  }, l);
@@ -89,7 +89,7 @@ const r = ({ children: t }) => {
89
89
  }
90
90
  });
91
91
  }, re = ({ className: t, ...n }) => {
92
- const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = T(), s = k(U), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
92
+ const { hidePlaceholder: l } = p(), { segment: o } = n, { t: i } = T(), s = q(U), a = l ? void 0 : i("field.date.placeholder.period"), d = () => s == null ? void 0 : s.increment("dayPeriod");
93
93
  return /* @__PURE__ */ e.createElement(h, {
94
94
  segment: o,
95
95
  className: t,
@@ -102,10 +102,10 @@ const r = ({ children: t }) => {
102
102
  u.Hour = ee;
103
103
  u.Minute = te;
104
104
  u.Period = re;
105
- r.Label = G;
105
+ r.Label = J;
106
106
  r.Time = u;
107
107
  r.Description = Q;
108
- r.Error = z;
108
+ r.Error = G;
109
109
  function ne(t) {
110
110
  if (!t)
111
111
  return null;
@@ -130,7 +130,7 @@ const oe = "_time_1wbmw_1", se = "_hour_1wbmw_14", le = "_minute_1wbmw_15", ie =
130
130
  hour: se,
131
131
  minute: le,
132
132
  period: ie
133
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(q, {
133
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(k, {
134
134
  content: t,
135
135
  locale: n
136
136
  }), me = () => /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
@@ -1,15 +1,15 @@
1
1
  import { RicosViewer as O } from "@wix/ricos/viewer";
2
2
  import l from "classnames";
3
- import r, { useCallback as h, useRef as N } from "react";
4
- import { TextField as y, Input as A } from "react-aria-components";
5
- import { ai as E, af as d, ak as k } from "./form-9yjqDnxY.js";
3
+ import r, { useCallback as h, useRef as y } from "react";
4
+ import { TextField as N, Input as A } from "react-aria-components";
5
+ import { ai as E, af as d, ak as P } from "./form-CtWkUmxc.js";
6
6
  import { f as u } from "./find-child-C60k4CxG.js";
7
- import { D as B, E as M } from "./field-error-headless-DrnFrGun.js";
8
- import { L as P } from "./field-label-headless-BIYf1BIh.js";
7
+ import { D as k, E as B } from "./field-error-headless-D6iejMQP.js";
8
+ import { L as M } from "./field-label-headless-BWLfU3YB.js";
9
9
  import { u as T } from "./use-invoke-callback-UH73A_J3.js";
10
- import { E as v } from "./error-icon-hZxQ6DEy.js";
11
- import { s } from "./field-rac.module-CWkwwhq4.js";
12
- import { t as U, J as g, s as q, n as x, j as w } from "./form-element-classes-KRzHUNLu.js";
10
+ import { E as q } from "./error-icon-hZxQ6DEy.js";
11
+ import { s } from "./field-rac.module-DnUIb9Oh.js";
12
+ import { z as v, P as U, y as g, q as x, j as w } from "./form-element-classes-BSMjWijd.js";
13
13
  const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e = ({ children: t }) => {
14
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 = T(f), b = u(t, e.Label), D = u(t, e.Input), _ = u(t, e.Description), C = u(t, e.Error), S = h(() => {
15
15
  a(V(n)), p();
@@ -21,7 +21,7 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
21
21
  return /* @__PURE__ */ r.createElement(L, {
22
22
  fieldId: o,
23
23
  renderLabel: () => b,
24
- renderInput: () => /* @__PURE__ */ r.createElement(y, {
24
+ renderInput: () => /* @__PURE__ */ r.createElement(N, {
25
25
  "aria-labelledby": R,
26
26
  value: n ?? "",
27
27
  onChange: a,
@@ -35,8 +35,8 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
35
35
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
36
36
  });
37
37
  }, W = ({ className: t }) => {
38
- const { id: o, placeholder: n } = E(), { inputId: a, ariaDescribedBy: m } = d(), i = N(null);
39
- return k(() => {
38
+ const { id: o, placeholder: n } = E(), { inputId: a, ariaDescribedBy: m } = d(), i = y(null);
39
+ return P(() => {
40
40
  var c;
41
41
  (c = i.current) == null || c.focus();
42
42
  }, o), /* @__PURE__ */ r.createElement(A, {
@@ -48,22 +48,22 @@ const V = (t) => t ? `https://${String(t).replace(/^https?:\/\//, "")}` : "", e
48
48
  placeholder: n
49
49
  });
50
50
  };
51
- e.Label = P;
51
+ e.Label = M;
52
52
  e.Input = W;
53
- e.Description = B;
54
- e.Error = M;
53
+ e.Description = k;
54
+ e.Error = B;
55
55
  const $ = ({ content: t, locale: o }) => /* @__PURE__ */ r.createElement(O, {
56
56
  content: t,
57
57
  locale: o
58
58
  }), te = () => /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
59
- className: l(U, s.label)
59
+ className: l(v, s.label)
60
60
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
61
- className: l(g, s.requiredMark)
61
+ className: l(U, s.requiredMark)
62
62
  })), /* @__PURE__ */ r.createElement(e.Input, {
63
- className: l(q, s.input)
63
+ className: l(g, s.input)
64
64
  }), /* @__PURE__ */ r.createElement(e.Error, {
65
65
  className: l(x, s.error)
66
- }, /* @__PURE__ */ r.createElement(v, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
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
  }, $));
69
69
  export {
@@ -1,5 +1,5 @@
1
1
  import r from "react";
2
- import { U as t } from "./url-input-field-rac-mUkrVTcL.js";
2
+ import { U as t } from "./url-input-field-rac-CAGHb2na.js";
3
3
  const n = () => /* @__PURE__ */ r.createElement(t, null);
4
4
  export {
5
5
  n as UrlInputRAC
@@ -1,5 +1,5 @@
1
1
  import { useState as o, useCallback as D, useEffect as m, useMemo as b } from "react";
2
- import { ah as v } from "./form-9yjqDnxY.js";
2
+ import { ah as v } from "./form-CtWkUmxc.js";
3
3
  const k = (h) => {
4
4
  const { fieldType: I, isEditor: t = !1, postProcessOptions: i, customFetchLogic: a, onInitialDataLoaded: n } = h, [L, O] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(I), r = D((e) => {
5
5
  let d = e.map((l) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/form-elements",
3
- "version": "1.64.0",
3
+ "version": "1.65.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": [
@@ -151,5 +151,5 @@
151
151
  ]
152
152
  }
153
153
  },
154
- "falconPackageHash": "098a9a84be69ae07ff11774bc84010816990bb2013beab3e8ba5018d"
154
+ "falconPackageHash": "5dd02e9327f855cfffcfcc5bf111aff3a56a31f8be69e2f99476d77d"
155
155
  }
@@ -1,13 +0,0 @@
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
- };