@wix/form-elements 1.104.0 → 1.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/dist/component/appointment-rac-D2F4vgf1.js +1011 -0
  2. package/dist/component/{bookings-address-rac-bOPrbrFn.js → bookings-address-rac-_5S8J8_i.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DSpy4yfX.js → bookings-email-rac-6vmDR9nS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Dw0U4kHG.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Czrqn8yy.js → bookings-header-rac-B3dsEwzR.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CVxRqG5b.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-s_2BlBcX.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-B2SgZsIb.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-b3K__6c9.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-Gt2JioDC.js → checkbox-field-rac-boTtXVEt.js} +18 -22
  11. package/dist/component/{checkbox-group-field-headless-cKefepGi.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-B14obB-6.js → checkbox-group-field-rac-DrDTgHMg.js} +13 -13
  13. package/dist/component/{checkbox-group-rac-B6cixM2X.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-DhbNznSB.js → checkbox-indicator-module-classes-BpeSpGsW.js} +1 -1
  15. package/dist/component/{checkbox-rac-COwblKlm.js → checkbox-rac-YSLE-RnG.js} +1 -1
  16. package/dist/component/{contacts-address-rac-BJrwGPo4.js → contacts-address-rac-C653yaHZ.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-BaotTtEN.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
  18. package/dist/component/{contacts-company-rac-BjTc-e_S.js → contacts-company-rac-BglKOoTG.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DVFF485m.js → contacts-email-rac-D6m7ynfc.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-C4Fht3FS.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-BTbOJedX.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-GePv5BT7.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
  23. package/dist/component/{contacts-position-rac-BZ1ASqF_.js → contacts-position-rac-BUDUv7lv.js} +1 -1
  24. package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
  25. package/dist/component/{contacts-tax-id-rac-A2tdbIvB.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
  26. package/dist/component/{date-availability-b1h4CrSQ.js → date-availability-XjBFq8jt.js} +1 -1
  27. package/dist/component/{date-input-field-rac-moOjGzUv.js → date-input-field-rac-aY2zuuKs.js} +14 -14
  28. package/dist/component/{date-input-rac-DTqZCOqB.js → date-input-rac-DRiP2_97.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-flB4Hw18.js → date-picker-field-rac-Bzl-d3Uj.js} +70 -70
  30. package/dist/component/{date-picker-rac-B2fqOP6H.js → date-picker-rac-DHHUh8vn.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-BtLGRGf5.js → date-time-input-field-rac-DP_StuLr.js} +27 -27
  32. package/dist/component/{date-time-input-rac-CRfUmOim.js → date-time-input-rac-B11KIxsf.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-Ds4t475J.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-BC6EGH5R.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-DyydPJyC.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-DhssYv6t.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-Bn0C1Ry8.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
  38. package/dist/component/{dext-email-rac-DKhk_v_w.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-u92WD8VD.js → dext-number-input-rac-DopfSyFi.js} +1 -1
  40. package/dist/component/{dext-phone-rac-DTzdQAe9.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-CoOYhInI.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DPdyJsCZ.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Bh3pQ-Ck.js → dext-tags-rac-TsUPoImO.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Cefsz8ct.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-Bj_pAChP.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-Bk_kwZzM.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
  47. package/dist/component/{donation-rac-wRWkCjYg.js → donation-rac-BYKFtsyR.js} +55 -55
  48. package/dist/component/{dropdown-field-headless-CedOXKAH.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
  49. package/dist/component/{dropdown-field-rac-CENh9Khw.js → dropdown-field-rac-CCAGSMm3.js} +6 -6
  50. package/dist/component/{dropdown-rac-CeCNULzS.js → dropdown-rac-C_EqUsZ1.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BLJ0UHrV.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-xJDzCasS.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
  53. package/dist/component/{email-input-field-rac-CeTVUWeX.js → email-input-field-rac-B2kqQ6yo.js} +14 -14
  54. package/dist/component/{events-repeater-rac-CT9LAF22.js → events-repeater-rac--4OnUxWE.js} +55 -55
  55. package/dist/component/{events-rsvp-rac-Bu8tqcVi.js → events-rsvp-rac-CczCoo3T.js} +13 -13
  56. package/dist/component/{field-error-headless-gLZVlnQV.js → field-error-headless-D3-1L5sf.js} +1 -1
  57. package/dist/component/{field-label-headless-yc46NPmu.js → field-label-headless-Du4ckIVy.js} +1 -1
  58. package/dist/component/field-rac.module-B4l_0KRU.js +26 -0
  59. package/dist/component/{file-upload-rac-LkVTFtZb.js → file-upload-rac-DbdkUbWM.js} +80 -80
  60. package/dist/component/{fixed-payment-rac-DEbV0w-8.js → fixed-payment-rac-f9-01iDN.js} +8 -8
  61. package/dist/component/{form-DV231fmJ.js → form-DQauhsho.js} +69 -69
  62. package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-BzB5dm6C.js → header-field-rac-DamDk5BR.js} +3 -3
  66. package/dist/component/{header-rac-BzS5HfUt.js → header-rac-CR9T3Pnu.js} +1 -1
  67. package/dist/component/{image-choice-rac-8YqUqetS.js → image-choice-rac-DJ_8v467.js} +13 -13
  68. package/dist/component/{index-CMtf-So7.js → index-BB7d_9Dv.js} +4 -4
  69. package/dist/component/{index-BzRG28bH.js → index-CcUTIUWM.js} +2 -2
  70. package/dist/component/{isObjectLike--gPCPyGa.js → isObjectLike-xvPa_08X.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-CJWdu5LV.js → multiline-address-field-rac-CyaFOloE.js} +80 -80
  72. package/dist/component/{multiline-address-rac-Cw5VweB0.js → multiline-address-rac-CaHGUN_f.js} +1 -1
  73. package/dist/component/{number-input-field-rac-D8NRpCCM.js → number-input-field-rac-BuYUzDWV.js} +15 -15
  74. package/dist/component/{number-input-rac-CM_CQHE_.js → number-input-rac-DMKX6nhk.js} +1 -1
  75. package/dist/component/{password-rac-I6vynKG4.js → password-rac-0RUXPAn6.js} +38 -38
  76. package/dist/component/{payment-input-rac-B4rXCs7V.js → payment-input-rac-CHSZ3-Lt.js} +17 -17
  77. package/dist/component/{phone-input-field-rac-B-k2e0Np.js → phone-input-field-rac-JmIFcP1e.js} +29 -29
  78. package/dist/component/{phone-rac-D443psAx.js → phone-rac-BLRnAPXP.js} +1 -1
  79. package/dist/component/{product-list-rac-B6qUWxkz.js → product-list-rac-BkF5tDwt.js} +11 -11
  80. package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
  81. package/dist/component/{radio-button-module-classes--on7xGzb.js → radio-button-module-classes-IOulhuSH.js} +28 -28
  82. package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
  83. package/dist/component/{radio-group-rac-CjbSQydw.js → radio-group-rac-BiW-9Abj.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-yVgqxBKi.js → rating-input-field-rac-B9cwaROK.js} +30 -30
  85. package/dist/component/{rating-input-rac-D6BKC4oS.js → rating-input-rac-BpwlNvzQ.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-Ca4LYv7k.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-DIeBS-ux.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
  88. package/dist/component/{rich-text-rac-BgjP0ngh.js → rich-text-rac-VfeZxS27.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-DjOMT7dx.js → service-dropdown-rac-BCfs8IhW.js} +18 -18
  90. package/dist/component/{services-multi-choice-rac-C0Rp9Sng.js → services-multi-choice-rac-CCqdF_7P.js} +8 -8
  91. package/dist/component/{signature-rac-CFT-Fni_.js → signature-rac-DOyMo3u0.js} +73 -73
  92. package/dist/component/{submit-button-rac-BOluGZI0.js → submit-button-rac-C2uA5DeE.js} +11 -11
  93. package/dist/component/{tags-field-rac-CP0RS4SG.js → tags-field-rac-C_uIw2by.js} +36 -36
  94. package/dist/component/{tags-rac-Dtp3VCKk.js → tags-rac-1pQ-fpe_.js} +1 -1
  95. package/dist/component/{text-area-field-rac-DUKg8kgN.js → text-area-field-rac-DqlOkm7e.js} +23 -23
  96. package/dist/component/{text-area-rac-Clh7zMTL.js → text-area-rac-DPdkrFcH.js} +1 -1
  97. package/dist/component/{text-input-field-rac-DY60Q6da.js → text-input-field-rac-CmXm6r1w.js} +6 -6
  98. package/dist/component/{text-input-headless-BBv0nukI.js → text-input-headless-DD__2DFf.js} +3 -3
  99. package/dist/component/{text-input-rac-FVD6iJ1i.js → text-input-rac-DRHyQEH7.js} +1 -1
  100. package/dist/component/{time-input-rac-DsctZB28.js → time-input-rac-BJPIymQY.js} +22 -22
  101. package/dist/component/{url-input-field-rac-Du4HlhH3.js → url-input-field-rac-CFDYkZ6I.js} +15 -15
  102. package/dist/component/{url-input-rac-3QPdK0xz.js → url-input-rac-C0ChQUzq.js} +1 -1
  103. package/dist/component/{use-dropdown-option-class-name-Bze6ghRl.js → use-dropdown-option-class-name-3L5ZmNLK.js} +3 -3
  104. package/dist/component/{use-element-state-class-name-4CDAF1S-.js → use-element-state-class-name-BatTc2bw.js} +1 -1
  105. package/dist/component/{use-is-forced-open-dropdown--w4f5dWP.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
  106. package/dist/component/{use-service-options-base-9vUuIThY.js → use-service-options-base-oeE7xszw.js} +1 -1
  107. package/dist/component/{use-text-input-class-name-Ch91llI_.js → use-text-input-class-name-LQ5S-NLh.js} +4 -4
  108. package/package.json +5 -5
  109. package/dist/component/appointment-rac-CCciYQ_h.js +0 -1012
  110. package/dist/component/contacts-subscribe-rac-CmyBcsLP.js +0 -13
  111. package/dist/component/field-rac.module-DobpyqOd.js +0 -26
  112. package/dist/component/form-element-classes-BtKlobUX.js +0 -192
  113. package/dist/component/quiz-radio-group-rac-DdPJQmV5.js +0 -13
  114. package/dist/component/radio-group-field-rac-CjiGr1rO.js +0 -50
@@ -1,52 +1,52 @@
1
- import l, { useRef as S, useState as T, useEffect as B, useCallback as H } from "react";
2
- import { RadioGroup as k, RadioField as A, RadioButton as G, TextField as P, Input as $ } from "react-aria-components";
3
- import { ak as v, ah as q, au as F, am as x } from "./form-DV231fmJ.js";
1
+ import l, { useRef as S, useState as V, useEffect as T, useCallback as B } from "react";
2
+ import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
+ import { ak as v, ah as $, au as F, am as x } from "./form-DQauhsho.js";
4
4
  import { f as u, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-gLZVlnQV.js";
6
- import { L as j } from "./field-label-headless-yc46NPmu.js";
5
+ import { D as U, E as M } from "./field-error-headless-D3-1L5sf.js";
6
+ import { L as j } from "./field-label-headless-Du4ckIVy.js";
7
7
  import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
8
  const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), y = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
9
  const a = t ? t.length + 2 : 0;
10
10
  return e.slice(a);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: a, onChange: O, disabled: d, readOnly: _, required: b, onBlur: f, onFocus: m, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = q(), s = u(e, i.Label), E = u(e, i.Options), D = u(e, i.Description), N = u(e, i.Error), V = y(o, a) ? L : a || null;
12
+ const { id: n, value: a, onChange: O, disabled: d, readOnly: _, required: m, onBlur: f, onFocus: b, hasError: r, FieldLayout: c, options: o } = v(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), E = u(e, i.Options), q = u(e, i.Description), D = u(e, i.Error), N = y(o, a) ? L : a || null;
13
13
  return /* @__PURE__ */ l.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => g(s, {
16
16
  as: "div"
17
17
  }),
18
- renderInput: () => /* @__PURE__ */ l.createElement(k, {
18
+ renderInput: () => /* @__PURE__ */ l.createElement(H, {
19
19
  id: h,
20
20
  className: t,
21
21
  "aria-labelledby": C,
22
22
  "aria-describedby": I,
23
- value: V,
23
+ value: N,
24
24
  onChange: O,
25
25
  isDisabled: d,
26
26
  isReadOnly: _,
27
- isRequired: b,
27
+ isRequired: m,
28
28
  isInvalid: r,
29
29
  onBlur: f,
30
- onFocus: m
30
+ onFocus: b
31
31
  }, E),
32
- renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, N, D)
32
+ renderDescription: () => /* @__PURE__ */ l.createElement(l.Fragment, null, D, q)
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
- const { options: n, addOther: a, addOtherLabel: O, id: d, numberOfColumns: _, hasError: b } = v(), { t: f } = F(), m = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
35
+ const { options: n, addOther: a, addOtherLabel: O, id: d, numberOfColumns: _, hasError: m } = v(), { t: f } = F(), b = u(e, i.Option), r = S(null), c = O || f("add-other.default-other-option-label") || L;
36
36
  return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
39
  }, d), /* @__PURE__ */ l.createElement("div", {
40
40
  className: t,
41
41
  "data-columns": _,
42
- "data-invalid": b
43
- }, n.map((o, h) => g(m, {
42
+ "data-invalid": m
43
+ }, n.map((o, h) => g(b, {
44
44
  key: o.value ?? o.label,
45
45
  value: o.value ?? o.label,
46
46
  label: o.label,
47
47
  index: h,
48
48
  radioRef: h === 0 ? r : void 0
49
- })), a && g(m, {
49
+ })), a && g(b, {
50
50
  key: L,
51
51
  value: L,
52
52
  label: c,
@@ -54,18 +54,18 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
54
54
  }));
55
55
  }, p = ({ children: e, className: t, ...n }) => {
56
56
  var I;
57
- const { value: a, label: O, isOther: d = !1, radioRef: _ } = n, { value: b, options: f } = v(), m = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, b) : b === a, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
57
+ const { value: a, label: O, isOther: d = !1, radioRef: _ } = n, { value: m, options: f } = v(), b = u(e, p.Label), r = u(e, p.Input), c = u(e, p.Control), o = u(e, p.OtherInput), h = d ? y(f, m) : m === a, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
58
58
  return /* @__PURE__ */ l.createElement("div", {
59
59
  className: t
60
- }, /* @__PURE__ */ l.createElement(A, {
60
+ }, /* @__PURE__ */ l.createElement(k, {
61
61
  value: a
62
- }, /* @__PURE__ */ l.createElement(G, {
62
+ }, /* @__PURE__ */ l.createElement(A, {
63
63
  ref: _,
64
64
  className: C
65
65
  }, ({ isSelected: s, isHovered: E }) => /* @__PURE__ */ l.createElement(l.Fragment, null, g(c, {
66
66
  isSelected: s,
67
67
  isHovered: E
68
- }), g(m, {
68
+ }), g(b, {
69
69
  label: O
70
70
  })))), d && h && o);
71
71
  }, Q = ({ className: e, ...t }) => {
@@ -74,14 +74,14 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
74
74
  className: e
75
75
  }, n);
76
76
  }, W = (e) => null, X = ({ className: e }) => {
77
- const { value: t, onChange: n, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: b, options: f } = v(), { t: m } = F(), r = S(null), c = y(f, t), o = a || m("add-other.default-other-option-label") || L, [h, C] = T(c && t ? J(t, a) : "");
78
- B(() => {
77
+ const { value: t, onChange: n, addOtherLabel: a, addOtherPlaceholder: O, otherInputCharacterLimit: d, disabled: _, readOnly: m, options: f } = v(), { t: b } = F(), r = S(null), c = y(f, t), o = a || b("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, a) : "");
78
+ T(() => {
79
79
  var s;
80
80
  c && r.current && ((s = r.current) == null || s.focus());
81
81
  }, [
82
82
  c
83
83
  ]);
84
- const I = H((s) => {
84
+ const I = B((s) => {
85
85
  let E;
86
86
  s ? E = `${a}: ${s}` : E = o, n(E), C(s);
87
87
  }, [
@@ -89,13 +89,13 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
89
89
  a,
90
90
  o
91
91
  ]);
92
- return /* @__PURE__ */ l.createElement(P, {
92
+ return /* @__PURE__ */ l.createElement(G, {
93
93
  "aria-label": o,
94
94
  value: h,
95
95
  onChange: I,
96
96
  isDisabled: _,
97
- isReadOnly: b
98
- }, /* @__PURE__ */ l.createElement($, {
97
+ isReadOnly: m
98
+ }, /* @__PURE__ */ l.createElement(P, {
99
99
  ref: r,
100
100
  className: e,
101
101
  placeholder: O,
@@ -111,7 +111,7 @@ i.Options = K;
111
111
  i.Option = p;
112
112
  i.Description = U;
113
113
  i.Error = M;
114
- const Y = "_labelImage_5198b_1", Z = "_group_5198b_26", ee = "_options_5198b_30", te = "_option_5198b_30", oe = "_optionInput_5198b_57", ne = "_optionControl_5198b_75", ae = "_optionControlHover_5198b_97", le = "_optionControlSelected_5198b_115", re = "_optionLabel_5198b_150", R = {
114
+ const Y = "_labelImage_t7q71_1", Z = "_group_t7q71_26", ee = "_options_t7q71_30", te = "_option_t7q71_30", oe = "_optionInput_t7q71_57", ne = "_optionControl_t7q71_75", ae = "_optionControlHover_t7q71_97", le = "_optionControlSelected_t7q71_115", re = "_optionLabel_t7q71_150", R = {
115
115
  labelImage: Y,
116
116
  group: Z,
117
117
  options: ee,
@@ -121,13 +121,13 @@ const Y = "_labelImage_5198b_1", Z = "_group_5198b_26", ee = "_options_5198b_30"
121
121
  optionControlHover: ae,
122
122
  optionControlSelected: le,
123
123
  optionLabel: re
124
- }, me = {
124
+ }, be = {
125
125
  base: R.optionControl,
126
126
  selected: R.optionControlSelected,
127
127
  hover: R.optionControlHover
128
128
  };
129
129
  export {
130
- me as R,
130
+ be as R,
131
131
  i as a,
132
132
  R as s
133
133
  };
@@ -0,0 +1,46 @@
1
+ import { RicosViewer as m } from "@wix/ricos/viewer";
2
+ import t from "classnames";
3
+ import e from "react";
4
+ import { a, s, R as n } from "./radio-button-module-classes-IOulhuSH.js";
5
+ import { E as c } from "./error-icon-hZxQ6DEy.js";
6
+ import { s as r } from "./field-rac.module-B4l_0KRU.js";
7
+ import { v as E, J as i, D as p, E as O, o as R, j as _, G as I } from "./form-element-classes-bLFmhsKw.js";
8
+ import { u as L } from "./use-element-state-class-name-BatTc2bw.js";
9
+ import { u as N } from "./use-text-input-class-name-LQ5S-NLh.js";
10
+ const u = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
11
+ content: o,
12
+ locale: l
13
+ }), b = () => {
14
+ const o = L({
15
+ globalClasses: I,
16
+ moduleClasses: n
17
+ }), l = N();
18
+ return /* @__PURE__ */ e.createElement(a, {
19
+ className: s.group
20
+ }, /* @__PURE__ */ e.createElement(a.Label, {
21
+ className: t(E, r.label)
22
+ }, /* @__PURE__ */ e.createElement(a.Label.Required, {
23
+ className: t(i, r.requiredMark)
24
+ }), /* @__PURE__ */ e.createElement(a.Label.Image, {
25
+ className: s.labelImage
26
+ })), /* @__PURE__ */ e.createElement(a.Options, {
27
+ className: t(p, s.options)
28
+ }, /* @__PURE__ */ e.createElement(a.Option, {
29
+ className: s.option
30
+ }, /* @__PURE__ */ e.createElement(a.Option.Input, {
31
+ className: s.optionInput
32
+ }), /* @__PURE__ */ e.createElement(a.Option.Control, {
33
+ className: o
34
+ }), /* @__PURE__ */ e.createElement(a.Option.Label, {
35
+ className: t(O, s.optionLabel)
36
+ }), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
37
+ className: l
38
+ }))), /* @__PURE__ */ e.createElement(a.Error, {
39
+ className: t(R, r.error)
40
+ }, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
41
+ className: t(_, r.description)
42
+ }, u));
43
+ };
44
+ export {
45
+ b as R
46
+ };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-CjiGr1rO.js";
2
+ import { R as r } from "./radio-group-field-rac-CJwku6e0.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,25 +1,25 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { ak as b, ah as v, au as T } from "./form-DV231fmJ.js";
5
- import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
4
+ import { ak as v, ah as b, au as H } from "./form-DQauhsho.js";
5
+ import { RadioGroup as T, RadioField as M, RadioButton as w } from "react-aria-components";
6
6
  import { f as u, a as B } from "./find-child-C60k4CxG.js";
7
- import { D as P, E as k } from "./field-error-headless-gLZVlnQV.js";
8
- import { L as q } from "./field-label-headless-yc46NPmu.js";
7
+ import { D as P, E as k } from "./field-error-headless-D3-1L5sf.js";
8
+ import { L as q } from "./field-label-headless-Du4ckIVy.js";
9
9
  import { E as G } from "./error-icon-hZxQ6DEy.js";
10
- import { s as g } from "./field-rac.module-DobpyqOd.js";
11
- import { C as x, S as Q, Q as U, r as j, j as z, R as Z } from "./form-element-classes-BtKlobUX.js";
12
- import { u as J } from "./use-element-state-class-name-4CDAF1S-.js";
10
+ import { s as g } from "./field-rac.module-B4l_0KRU.js";
11
+ import { v as x, J as U, H as j, o as z, j as J, I as Q } from "./form-element-classes-bLFmhsKw.js";
12
+ import { u as Z } from "./use-element-state-class-name-BatTc2bw.js";
13
13
  const t = ({ children: a }) => {
14
- const { id: r, value: n, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = N((D) => l(Number(D)), [
14
+ const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = b(), L = N((D) => l(Number(D)), [
15
15
  l
16
16
  ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
17
17
  return /* @__PURE__ */ e.createElement(R, {
18
- fieldId: r,
18
+ fieldId: n,
19
19
  renderLabel: () => f,
20
- renderInput: () => /* @__PURE__ */ e.createElement(H, {
20
+ renderInput: () => /* @__PURE__ */ e.createElement(T, {
21
21
  "aria-labelledby": _,
22
- value: n ? String(n) : void 0,
22
+ value: r ? String(r) : void 0,
23
23
  onChange: L,
24
24
  isDisabled: o,
25
25
  isReadOnly: d,
@@ -31,8 +31,8 @@ const t = ({ children: a }) => {
31
31
  }, s),
32
32
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
33
33
  });
34
- }, I = ({ children: a, className: r, getReactionLabel: n }) => {
35
- const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
34
+ }, I = ({ children: a, className: n, getReactionLabel: r }) => {
35
+ const { value: l, readOnly: o, hasError: d } = v(), { inputId: c, ariaDescribedBy: i } = b(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
36
36
  "1",
37
37
  "2",
38
38
  "3",
@@ -43,7 +43,7 @@ const t = ({ children: a }) => {
43
43
  ref: R,
44
44
  id: c,
45
45
  "aria-describedby": i,
46
- className: r,
46
+ className: n,
47
47
  "data-invalid": d,
48
48
  "data-readonly": o
49
49
  }, L.map((s) => B(_, {
@@ -51,7 +51,7 @@ const t = ({ children: a }) => {
51
51
  value: s,
52
52
  isSelected: f(s),
53
53
  onHoverChange: (S) => C(S ? s : void 0),
54
- label: n == null ? void 0 : n(Number(s))
54
+ label: r == null ? void 0 : r(Number(s))
55
55
  })));
56
56
  }, K = {
57
57
  border: 0,
@@ -63,8 +63,8 @@ const t = ({ children: a }) => {
63
63
  position: "absolute",
64
64
  width: 1,
65
65
  whiteSpace: "nowrap"
66
- }, F = ({ className: a, children: r, ...n }) => {
67
- const { value: l, isSelected: o, onHoverChange: d, label: c } = n;
66
+ }, F = ({ className: a, children: n, ...r }) => {
67
+ const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
68
68
  return /* @__PURE__ */ e.createElement(M, {
69
69
  value: l
70
70
  }, /* @__PURE__ */ e.createElement(w, {
@@ -74,10 +74,10 @@ const t = ({ children: a }) => {
74
74
  }) : a ?? "",
75
75
  "data-active": o || void 0,
76
76
  onHoverChange: d
77
- }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof r == "function" ? r({
77
+ }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
78
78
  isSelected: o,
79
79
  isHovered: i
80
- }) : r, c ? /* @__PURE__ */ e.createElement("span", {
80
+ }) : n, c ? /* @__PURE__ */ e.createElement("span", {
81
81
  style: K
82
82
  }, c) : null)));
83
83
  };
@@ -102,33 +102,33 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
102
102
  rating: Y,
103
103
  ratingSelected: $,
104
104
  ratingHover: V
105
- }, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(y, {
105
+ }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
106
106
  content: a,
107
- locale: r
107
+ locale: n
108
108
  }), te = {
109
109
  base: p.rating,
110
110
  selected: p.ratingSelected,
111
111
  hover: p.ratingHover
112
112
  }, ge = () => {
113
- const { t: a } = T(), r = J({
114
- globalClasses: Z,
113
+ const { t: a } = H(), n = Z({
114
+ globalClasses: Q,
115
115
  moduleClasses: te
116
116
  });
117
117
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
118
118
  className: m(x, g.label)
119
119
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
120
- className: m(Q, g.requiredMark)
120
+ className: m(U, g.requiredMark)
121
121
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
122
- className: m(U, p.ratings),
123
- getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
124
- count: n
122
+ className: m(j, p.ratings),
123
+ getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
124
+ count: r
125
125
  })
126
126
  }, /* @__PURE__ */ e.createElement(t.Rating, {
127
- className: r
127
+ className: n
128
128
  }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
- className: m(j, g.error)
129
+ className: m(z, g.error)
130
130
  }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
- className: m(z, g.description)
131
+ className: m(J, g.description)
132
132
  }, ee));
133
133
  };
134
134
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-yVgqxBKi.js";
2
+ import { R as e } from "./rating-input-field-rac-B9cwaROK.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
1
  import c, { useState as l } from "react";
2
- import { ak as a, ac as i, au as T } from "./form-DV231fmJ.js";
2
+ import { ak as a, ac as i, au as T } from "./form-DQauhsho.js";
3
3
  import { Button as d } from "react-aria-components";
4
4
  import { D as r } from "./data-hooks-Dkw1pbRj.js";
5
5
  import { truncateRichContent as _ } from "@wix/ricos/content";
@@ -1,8 +1,8 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { ak as m, L as i, X as u, _ as R } from "./form-DV231fmJ.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-Ca4LYv7k.js";
5
- import { a6 as g } from "./form-element-classes-BtKlobUX.js";
3
+ import { ak as m, L as i, X as u, _ as R } from "./form-DQauhsho.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-B1uyPmtK.js";
5
+ import { T as g } from "./form-element-classes-bLFmhsKw.js";
6
6
  const h = {
7
7
  colorPalette: R(),
8
8
  customStyles: u()
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-DIeBS-ux.js";
2
+ import { R as t } from "./rich-text-field-rac-C_qE7Ykg.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,17 +1,17 @@
1
1
  import t, { useRef as P, useMemo as L, useCallback as h, useEffect as T } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-DV231fmJ.js";
5
- import { u as x } from "./use-service-options-base-9vUuIThY.js";
6
- import { D as d } from "./dropdown-field-headless-CedOXKAH.js";
4
+ import { ag as A, au as b, F as M, ak as y, ac as x, h as V } from "./form-DQauhsho.js";
5
+ import { u as k } from "./use-service-options-base-oeE7xszw.js";
6
+ import { D as d } from "./dropdown-field-headless-CBaqlNZi.js";
7
7
  import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
8
8
  import { E as U } from "./error-icon-hZxQ6DEy.js";
9
9
  import { H as W } from "./custom-focus-class-_483Pkwp.js";
10
- import { s as i } from "./field-rac.module-DobpyqOd.js";
11
- import { C as q, S as B, n as G, E as j, r as Q, j as Y } from "./form-element-classes-BtKlobUX.js";
12
- import { u as z } from "./use-dropdown-option-class-name-Bze6ghRl.js";
13
- const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
- const { actions: r } = A(), { t: C } = b(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = L(() => {
10
+ import { s as i } from "./field-rac.module-B4l_0KRU.js";
11
+ import { v as q, J as B, n as G, x as j, o as J, j as Q } from "./form-element-classes-bLFmhsKw.js";
12
+ import { u as Y } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
13
+ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
+ const { actions: r } = A(), { t: D } = b(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = P(!0), E = L(() => {
15
15
  var s;
16
16
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
17
  }, [
@@ -21,12 +21,12 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
21
21
  {
22
22
  value: c,
23
23
  label: c,
24
- id: J
24
+ id: z
25
25
  }
26
26
  ] : s, [
27
27
  n,
28
28
  c
29
- ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = x({
29
+ ]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = k({
30
30
  fieldType: M.SERVICES_DROPDOWN,
31
31
  isEditor: e.isEditor,
32
32
  postProcessOptions: O
@@ -85,16 +85,16 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
85
85
  return {
86
86
  isLoading: f,
87
87
  options: l,
88
- isEmpty: D,
88
+ isEmpty: C,
89
89
  onFocus: v,
90
90
  onChange: N,
91
91
  shouldRender: I
92
92
  };
93
93
  }, o = ({ children: e }) => {
94
- const r = y(), { addOther: C } = r, n = V(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
94
+ const r = y(), { addOther: D } = r, n = x(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
95
95
  ...r,
96
96
  isEditor: p
97
- }), D = L(() => ({
97
+ }), C = L(() => ({
98
98
  ...r,
99
99
  options: c ? [] : a,
100
100
  isLoading: c,
@@ -107,9 +107,9 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
107
107
  O,
108
108
  f
109
109
  ]);
110
- return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(k.Provider, {
110
+ return !p && E && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
111
111
  value: {
112
- v2: D
112
+ v2: C
113
113
  }
114
114
  }, /* @__PURE__ */ t.createElement(d, null, e));
115
115
  };
@@ -122,7 +122,7 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
122
122
  content: e,
123
123
  locale: r
124
124
  }), Z = () => {
125
- const e = z(W);
125
+ const e = Y(W);
126
126
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
127
127
  className: u(q, i.label)
128
128
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
@@ -136,9 +136,9 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
136
136
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
137
137
  className: e
138
138
  })), /* @__PURE__ */ t.createElement(o.Error, {
139
- className: u(Q, i.error)
139
+ className: u(J, i.error)
140
140
  }, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
141
- className: u(Y, i.description)
141
+ className: u(Q, i.description)
142
142
  }, X));
143
143
  }, ue = () => /* @__PURE__ */ t.createElement(Z, null);
144
144
  export {
@@ -1,16 +1,16 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
2
  import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as R, ak as d, h as D } from "./form-DV231fmJ.js";
5
- import { u as N } from "./use-service-options-base-9vUuIThY.js";
6
- import { C as n } from "./checkbox-group-field-headless-cKefepGi.js";
4
+ import { F as R, ak as d, h as D } from "./form-DQauhsho.js";
5
+ import { u as N } from "./use-service-options-base-oeE7xszw.js";
6
+ import { C as n } from "./checkbox-group-field-headless-DnkUvDm8.js";
7
7
  import { E as f } from "./error-icon-hZxQ6DEy.js";
8
- import { C as F } from "./checkbox-indicator-module-classes-DhbNznSB.js";
9
- import { s as i } from "./field-rac.module-DobpyqOd.js";
10
- import { C as h, S as b, c as M, e as A, r as v, j as x, d as P } from "./form-element-classes-BtKlobUX.js";
8
+ import { C as F } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
9
+ import { s as i } from "./field-rac.module-B4l_0KRU.js";
10
+ import { v as h, J as b, c as M, e as A, o as v, j as x, d as P } from "./form-element-classes-bLFmhsKw.js";
11
11
  import { o as p } from "./options-rac.module-CTDdATiz.js";
12
- import { u as T } from "./use-element-state-class-name-4CDAF1S-.js";
13
- import { u as k } from "./use-text-input-class-name-Ch91llI_.js";
12
+ import { u as T } from "./use-element-state-class-name-BatTc2bw.js";
13
+ import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
14
14
  const y = (s) => {
15
15
  var O;
16
16
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = N({