@wix/form-elements 1.74.0 → 1.76.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 (116) hide show
  1. package/dist/component/appointment-rac-BQsFMmBg.js +1016 -0
  2. package/dist/component/{bookings-address-rac-BcrkXf63.js → bookings-address-rac-AJNyTdok.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DYq5RxOP.js → bookings-email-rac-BHZ0MFgI.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-ZJ_sQ-01.js → bookings-first-name-rac-Bw5FuWNX.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Cv8kl01f.js → bookings-header-rac-C1M2Pg1f.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BmnulSZ6.js → bookings-last-name-rac-DKkPY0CO.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-Bdi4xs9y.js → bookings-login-bar-rac-P6pziSl1.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-C8DjSzUY.js → bookings-phone-rac-CiOZWKHz.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DYu011oy.js → bookings-rich-text-rac-D9ZComtY.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-BH3yEE5j.js → checkbox-field-rac-4zG3Sf1c.js} +328 -320
  11. package/dist/component/checkbox-group-field-headless-DN2aNw9g.js +205 -0
  12. package/dist/component/checkbox-group-field-rac-B1qhet83.js +41 -0
  13. package/dist/component/{checkbox-group-rac-CgW0DnhX.js → checkbox-group-rac-DGsE7xGu.js} +1 -1
  14. package/dist/component/checkbox-indicator-module-classes-BcScu147.js +17 -0
  15. package/dist/component/{checkbox-rac-DOAYMMsi.js → checkbox-rac-CFWQW9_K.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DXJa4J_k.js → contacts-address-rac-G5ZH3Odo.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-CVsuRq3B.js → contacts-birthdate-rac-C7TDUfT0.js} +1 -1
  18. package/dist/component/{contacts-company-rac-b2bwHSNC.js → contacts-company-rac-8queUhWT.js} +1 -1
  19. package/dist/component/{contacts-email-rac-DMPcpQ1c.js → contacts-email-rac-CYOs5N_I.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-CL2BsHuJ.js → contacts-first-name-rac-D8Goc_Ym.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-hdBsWaqb.js → contacts-last-name-rac-lBmtuEnr.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-DQF6aV9B.js → contacts-phone-rac-DSUWUNBX.js} +1 -1
  23. package/dist/component/{contacts-position-rac-CVX-WCfx.js → contacts-position-rac-wA-aw5Id.js} +1 -1
  24. package/dist/component/contacts-subscribe-rac-CAbBbFxZ.js +13 -0
  25. package/dist/component/{contacts-tax-id-rac-0KTXvF81.js → contacts-tax-id-rac-BpjVM1Ye.js} +1 -1
  26. package/dist/component/{date-availability-DBljhBgO.js → date-availability-CeiMjrtD.js} +1 -1
  27. package/dist/component/{date-input-field-rac-CfflD2Ar.js → date-input-field-rac-CVaajAFM.js} +30 -30
  28. package/dist/component/{date-input-rac-fQclCKoa.js → date-input-rac-DhEzawuM.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-BSmFOaH-.js → date-picker-field-rac-1Q6yyNmK.js} +35 -35
  30. package/dist/component/{date-picker-rac-D7I3ramu.js → date-picker-rac-BCGtmXMJ.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-vjZDQ_Fp.js → date-time-input-field-rac-Dd-HNgKP.js} +35 -35
  32. package/dist/component/{date-time-input-rac-CDbS0VZR.js → date-time-input-rac-CsCWEsH5.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BBiPt6_a.js → dext-checkbox-group-rac-CauN5uuV.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-Cqp--0SO.js → dext-checkbox-rac-q-g9gDnw.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-5Wft0w9m.js → dext-date-picker-rac-CZT3dTLv.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-Bbs7bgtn.js → dext-date-time-input-rac-DVUoZZbX.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-CSvhtqbc.js → dext-dropdown-rac-GRltutt5.js} +1 -1
  38. package/dist/component/{dext-email-rac-BoLeXqyI.js → dext-email-rac-74Y8S9GA.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-DzaJYTSz.js → dext-number-input-rac-CF9d_GTl.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BagPg_CT.js → dext-phone-rac-DObx_gOd.js} +1 -1
  41. package/dist/component/{dext-radio-group-rac-B5HSQt7a.js → dext-radio-group-rac-CzU9KX5_.js} +2 -2
  42. package/dist/component/{dext-rating-input-rac-DrtaAf-E.js → dext-rating-input-rac-BjRwwgXr.js} +1 -1
  43. package/dist/component/{dext-tags-rac-Cg4jJ4jr.js → dext-tags-rac-Vif4x1yF.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-C_t-W7lk.js → dext-text-area-rac-DmZwl_ax.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-ChvV21Jf.js → dext-text-input-rac-B6FVbjUM.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-DclbSYTr.js → dext-url-input-rac-17Dj3ICM.js} +1 -1
  47. package/dist/component/donation-rac-bgHep0Xi.js +307 -0
  48. package/dist/component/{dropdown-field-headless-CTZ-zGqZ.js → dropdown-field-headless-BGfJ1FyZ.js} +3 -3
  49. package/dist/component/{dropdown-field-rac-C1KVtxwv.js → dropdown-field-rac-DGiysJQY.js} +7 -7
  50. package/dist/component/{dropdown-rac-CkkDEDje.js → dropdown-rac-FHjz8fKp.js} +1 -1
  51. package/dist/component/{ecom-address-rac-BOuugSxX.js → ecom-address-rac-DSbpf4z8.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-IZeMlljb.js → ecom-subscription-checkbox-rac-DiZWNwnt.js} +6 -6
  53. package/dist/component/{email-input-field-rac-CNzmm1j7.js → email-input-field-rac-BQKK2O7L.js} +44 -44
  54. package/dist/component/events-repeater-rac-Dudnyhal.js +255 -0
  55. package/dist/component/{events-rsvp-rac-BmjboAco.js → events-rsvp-rac-008H5Ska.js} +3 -3
  56. package/dist/component/{field-error-headless-DQZ5XAdn.js → field-error-headless-C5ZsFUKv.js} +1 -1
  57. package/dist/component/{field-label-headless-DoxfHHaj.js → field-label-headless-CS5OYsiI.js} +1 -1
  58. package/dist/component/field-rac.module-DjmaTYkc.js +23 -0
  59. package/dist/component/{file-upload-rac-YEQ7uXhm.js → file-upload-rac-bQ2QOO8Q.js} +48 -48
  60. package/dist/component/{fixed-payment-rac-DDufIQBT.js → fixed-payment-rac-B6FvXoCU.js} +17 -17
  61. package/dist/component/{form-C6WwBcGP.js → form-BpHElSwH.js} +69 -69
  62. package/dist/component/form-element-classes-BXNs5k3q.js +119 -0
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-DGfjrjQC.js → header-field-rac-D4UYcmok.js} +3 -3
  66. package/dist/component/{header-rac-C_JE2cTg.js → header-rac-KavPiBdn.js} +1 -1
  67. package/dist/component/{image-choice-rac-LDLPQwrN.js → image-choice-rac-BJQqBhBD.js} +35 -36
  68. package/dist/component/{index-CIOoaQ8Z.js → index-RSEYrQef.js} +2 -2
  69. package/dist/component/{index-C2srcuHD.js → index-Y8iTxLat.js} +4 -4
  70. package/dist/component/{isObjectLike-E5QfEa1u.js → isObjectLike-jwHec4Ap.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-Biyj2tIN.js → multiline-address-field-rac-D4Ibno80.js} +110 -110
  72. package/dist/component/{multiline-address-rac-BCqCvG7a.js → multiline-address-rac-CrTSjzBN.js} +1 -1
  73. package/dist/component/{number-input-field-rac-CwUoIbM8.js → number-input-field-rac-DW1SjB-Z.js} +16 -16
  74. package/dist/component/{number-input-rac-CdYdTDem.js → number-input-rac-CdE_hRbA.js} +1 -1
  75. package/dist/component/{password-rac-D62npVHY.js → password-rac-BCxl5mMQ.js} +20 -20
  76. package/dist/component/{payment-input-rac-D4u-3vcW.js → payment-input-rac-DmO4s4ue.js} +9 -9
  77. package/dist/component/{phone-input-field-rac-uHxR3ozd.js → phone-input-field-rac-BYAnwk5h.js} +25 -25
  78. package/dist/component/{phone-rac-Bf99_BGi.js → phone-rac-gS4k9Yn8.js} +1 -1
  79. package/dist/component/product-list-rac-CO0o3yOg.js +271 -0
  80. package/dist/component/{quiz-radio-group-rac-CPGS0LEb.js → quiz-radio-group-rac-Dhk7nkzb.js} +2 -2
  81. package/dist/component/{radio-group-field-rac-BWpTNAbO.js → radio-group-field-rac-DdlyQ3m6.js} +3 -3
  82. package/dist/component/{radio-group-field-rac.module-WxU5zxvM.js → radio-group-field-rac.module-emin6sSc.js} +3 -3
  83. package/dist/component/{radio-group-rac-dA4WZ1Vj.js → radio-group-rac-B-9q91fJ.js} +1 -1
  84. package/dist/component/{rating-input-field-rac-CJnFsBvH.js → rating-input-field-rac-VDaJKq-n.js} +27 -28
  85. package/dist/component/{rating-input-rac-DXVYozFV.js → rating-input-rac-BVO62LmE.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-DkKwzJS7.js → rich-content-rac.module-CdiaAjxG.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-8FWCRrpb.js → rich-text-field-rac-C4RrbyEX.js} +3 -3
  88. package/dist/component/{rich-text-rac-OeM_mPRy.js → rich-text-rac-BG376ww9.js} +1 -1
  89. package/dist/component/{service-dropdown-rac-mvUMpcS_.js → service-dropdown-rac-Dy6-OpVR.js} +18 -18
  90. package/dist/component/services-multi-choice-rac-BKW9MP_b.js +84 -0
  91. package/dist/component/{signature-rac-D44U9Uyp.js → signature-rac-Cxgixp4o.js} +56 -56
  92. package/dist/component/{submit-button-rac-BqtcgVAn.js → submit-button-rac-BqPJ7WPI.js} +2 -2
  93. package/dist/component/{tags-field-rac-CemsTKWz.js → tags-field-rac-wwqpztG7.js} +36 -37
  94. package/dist/component/{tags-rac-fVjCf6qo.js → tags-rac-DUxITYxU.js} +1 -1
  95. package/dist/component/{text-area-field-rac-BPciZlZb.js → text-area-field-rac-Cen6O33S.js} +16 -16
  96. package/dist/component/{text-area-rac-CRTORdZM.js → text-area-rac-CRlO56GA.js} +1 -1
  97. package/dist/component/{text-input-field-rac-CvFoWlRN.js → text-input-field-rac-CbnKn03g.js} +6 -6
  98. package/dist/component/{text-input-headless-BQ3TWU9G.js → text-input-headless-C_NTJmLe.js} +3 -3
  99. package/dist/component/{text-input-rac-DSFkEmob.js → text-input-rac-DvwV7Igm.js} +1 -1
  100. package/dist/component/{time-input-rac-CGgs7ncp.js → time-input-rac-TSEXiODs.js} +15 -15
  101. package/dist/component/{url-input-field-rac-CqvgTc-F.js → url-input-field-rac-Cxgh9T8s.js} +20 -20
  102. package/dist/component/{url-input-rac-C45KOwnr.js → url-input-rac-DNw-Jg1U.js} +1 -1
  103. package/dist/component/use-element-state-class-name-CC65g9mT.js +15 -0
  104. package/dist/component/{use-service-options-base-D4Zl-iGW.js → use-service-options-base-EFrxTpGm.js} +1 -1
  105. package/package.json +2 -2
  106. package/dist/component/appointment-rac-Bze1s2XD.js +0 -1005
  107. package/dist/component/checkbox-group-field-headless-D_GG5LHM.js +0 -210
  108. package/dist/component/checkbox-group-field-rac-Cj7Erubs.js +0 -41
  109. package/dist/component/contacts-subscribe-rac-Dl1ot9qw.js +0 -13
  110. package/dist/component/donation-rac-FYQIMm5m.js +0 -308
  111. package/dist/component/events-repeater-rac-CMV0Lmwz.js +0 -247
  112. package/dist/component/field-rac.module-Cac83bU5.js +0 -21
  113. package/dist/component/form-element-classes-DDKCTFQj.js +0 -65
  114. package/dist/component/form-element-keys-D0sEdpFo.js +0 -8
  115. package/dist/component/product-list-rac-iRf6Ra7i.js +0 -263
  116. package/dist/component/services-multi-choice-rac-DrgUrn_N.js +0 -76
@@ -1,10 +1,10 @@
1
1
  import { RicosViewer as s } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { R as t, s as r } from "./radio-group-field-rac.module-WxU5zxvM.js";
4
+ import { R as t, s as r } from "./radio-group-field-rac.module-emin6sSc.js";
5
5
  import { E as m } from "./error-icon-hZxQ6DEy.js";
6
- import { s as l } from "./field-rac.module-Cac83bU5.js";
7
- import { z as c, R as i, N as E, M as _, L as R, y as p, q as O, j as L } from "./form-element-classes-DDKCTFQj.js";
6
+ import { s as l } from "./field-rac.module-DjmaTYkc.js";
7
+ import { z as c, Q as i, M as E, L as _, K as R, y as p, p as O, i as L } from "./form-element-classes-BXNs5k3q.js";
8
8
  const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
9
9
  content: o,
10
10
  locale: n
@@ -1,9 +1,9 @@
1
1
  import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
2
2
  import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
3
- import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-C6WwBcGP.js";
3
+ import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-BpHElSwH.js";
4
4
  import { f as d, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as A } from "./field-error-headless-DQZ5XAdn.js";
6
- import { L as H } from "./field-label-headless-DoxfHHaj.js";
5
+ import { D as U, E as A } from "./field-error-headless-C5ZsFUKv.js";
6
+ import { L as H } from "./field-label-headless-CS5OYsiI.js";
7
7
  import { N as j } from "./options-layout-constants-DEfIEJWD.js";
8
8
  const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
9
9
  const a = t ? t.length + 2 : 0;
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BWpTNAbO.js";
2
+ import { R as r } from "./radio-group-field-rac-DdlyQ3m6.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,17 +1,16 @@
1
- import { RicosViewer as O } from "@wix/ricos/viewer";
1
+ import { RicosViewer as D } from "@wix/ricos/viewer";
2
2
  import c from "classnames";
3
3
  import e, { useCallback as h, useState as y, useRef as A } from "react";
4
- import { ai as b, af as F, as as T, ac as M } from "./form-C6WwBcGP.js";
4
+ import { ai as F, af as N, as as T, ac as M } from "./form-BpHElSwH.js";
5
5
  import { RadioGroup as P, RadioField as w, RadioButton as B } from "react-aria-components";
6
- import { f as E, a as q } from "./find-child-C60k4CxG.js";
7
- import { D as x, E as G } from "./field-error-headless-DQZ5XAdn.js";
8
- import { L as H } from "./field-label-headless-DoxfHHaj.js";
6
+ import { f as E, a as G } from "./find-child-C60k4CxG.js";
7
+ import { D as H, E as q } from "./field-error-headless-C5ZsFUKv.js";
8
+ import { L as z } from "./field-label-headless-CS5OYsiI.js";
9
9
  import { E as k } from "./error-icon-hZxQ6DEy.js";
10
- import { s as p } from "./field-rac.module-Cac83bU5.js";
11
- import { z, R as Q, O as j, P as K, Q as U, q as Y, j as Z } from "./form-element-classes-DDKCTFQj.js";
12
- import { R as J } from "./form-element-keys-D0sEdpFo.js";
10
+ import { s as p } from "./field-rac.module-DjmaTYkc.js";
11
+ import { z as x, Q, N as K, O as U, P as Y, p as Z, i as j, F as J } from "./form-element-classes-BXNs5k3q.js";
13
12
  const t = ({ children: a }) => {
14
- const { id: r, value: n, onChange: i, disabled: o, readOnly: d, required: l, hasError: m, onBlur: u, onFocus: R, FieldLayout: C } = b(), { labelId: L } = F(), _ = h((D) => i(Number(D)), [
13
+ const { id: r, value: n, onChange: i, disabled: o, readOnly: d, required: l, hasError: m, onBlur: u, onFocus: R, FieldLayout: C } = F(), { labelId: L } = N(), _ = h((O) => i(Number(O)), [
15
14
  i
16
15
  ]), f = E(a, t.Label), s = E(a, t.Ratings), g = E(a, t.Description), v = E(a, t.Error);
17
16
  return /* @__PURE__ */ e.createElement(C, {
@@ -32,7 +31,7 @@ const t = ({ children: a }) => {
32
31
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, v, g)
33
32
  });
34
33
  }, I = ({ children: a, className: r, getReactionLabel: n }) => {
35
- const { value: i, readOnly: o, hasError: d } = b(), { inputId: l, ariaDescribedBy: m } = F(), [u, R] = y(), C = A(null), L = E(a, I.Rating), _ = [
34
+ const { value: i, readOnly: o, hasError: d } = F(), { inputId: l, ariaDescribedBy: m } = N(), [u, R] = y(), C = A(null), L = E(a, I.Rating), _ = [
36
35
  "1",
37
36
  "2",
38
37
  "3",
@@ -46,7 +45,7 @@ const t = ({ children: a }) => {
46
45
  className: r,
47
46
  "data-invalid": d,
48
47
  "data-readonly": o
49
- }, _.map((s) => q(L, {
48
+ }, _.map((s) => G(L, {
50
49
  key: s,
51
50
  value: s,
52
51
  isSelected: f(s),
@@ -63,7 +62,7 @@ const t = ({ children: a }) => {
63
62
  position: "absolute",
64
63
  width: 1,
65
64
  whiteSpace: "nowrap"
66
- }, N = ({ className: a, children: r, ...n }) => {
65
+ }, b = ({ className: a, children: r, ...n }) => {
67
66
  const { value: i, isSelected: o, onHoverChange: d, label: l } = n, m = typeof a == "function" ? a({
68
67
  isSelected: o
69
68
  }) : a;
@@ -79,12 +78,12 @@ const t = ({ children: a }) => {
79
78
  style: W
80
79
  }, l) : null));
81
80
  };
82
- I.Rating = N;
83
- t.Label = H;
81
+ I.Rating = b;
82
+ t.Label = z;
84
83
  t.Ratings = I;
85
- t.Rating = N;
86
- t.Description = x;
87
- t.Error = G;
84
+ t.Rating = b;
85
+ t.Description = H;
86
+ t.Error = q;
88
87
  const X = (a) => /* @__PURE__ */ e.createElement("svg", {
89
88
  viewBox: "0 0 32 32",
90
89
  width: 32,
@@ -95,33 +94,33 @@ const X = (a) => /* @__PURE__ */ e.createElement("svg", {
95
94
  }, /* @__PURE__ */ e.createElement("path", {
96
95
  fillRule: "evenodd",
97
96
  d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
98
- })), $ = "_ratings_1n24x_1", V = "_rating_1n24x_1", S = {
97
+ })), $ = "_ratings_1mvz3_1", V = "_rating_1mvz3_1", S = {
99
98
  ratings: $,
100
99
  rating: V
101
- }, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(O, {
100
+ }, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(D, {
102
101
  content: a,
103
102
  locale: r
104
- }), ue = () => {
105
- const { t: a } = T(), r = M(J);
103
+ }), Ee = () => {
104
+ const { t: a } = T(), r = M(J.RATING_OPTION);
106
105
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
107
- className: c(z, p.label)
106
+ className: c(x, p.label)
108
107
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
109
108
  className: c(Q, p.requiredMark)
110
109
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
111
- className: c(j, S.ratings),
110
+ className: c(K, S.ratings),
112
111
  getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
113
112
  count: n
114
113
  })
115
114
  }, /* @__PURE__ */ e.createElement(t.Rating, {
116
- className: ({ isSelected: n }) => c(K, r, S.rating, {
117
- [U]: n
115
+ className: ({ isSelected: n }) => c(U, r, S.rating, {
116
+ [Y]: n
118
117
  })
119
118
  }, /* @__PURE__ */ e.createElement(X, null))), /* @__PURE__ */ e.createElement(t.Error, {
120
- className: c(Y, p.error)
119
+ className: c(Z, p.error)
121
120
  }, /* @__PURE__ */ e.createElement(k, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
122
- className: c(Z, p.description)
121
+ className: c(j, p.description)
123
122
  }, ee));
124
123
  };
125
124
  export {
126
- ue as R
125
+ Ee as R
127
126
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-CJnFsBvH.js";
2
+ import { R as e } from "./rating-input-field-rac-VDaJKq-n.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 u } from "react";
2
- import { ai as a, ab as i, as as T } from "./form-C6WwBcGP.js";
2
+ import { ai as a, ab as i, as as T } from "./form-BpHElSwH.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 { ai as m, L as i, W as u, Z as R } from "./form-C6WwBcGP.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-DkKwzJS7.js";
5
- import { a6 as g } from "./form-element-classes-DDKCTFQj.js";
3
+ import { ai as m, L as i, W as u, Z as R } from "./form-BpHElSwH.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-CdiaAjxG.js";
5
+ import { a7 as g } from "./form-element-classes-BXNs5k3q.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-8FWCRrpb.js";
2
+ import { R as t } from "./rich-text-field-rac-C4RrbyEX.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,14 +1,14 @@
1
1
  import t, { useRef as P, useMemo as g, useCallback as h, useEffect as T } from "react";
2
2
  import { RicosViewer as A } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
- import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-C6WwBcGP.js";
5
- import { u as q } from "./use-service-options-base-D4Zl-iGW.js";
6
- import { D as d } from "./dropdown-field-headless-CTZ-zGqZ.js";
7
- import { C as x } from "./chevron-down-icon-CcpVm6B-.js";
4
+ import { ae as w, as as b, F as M, ai as y, ab as U, h as V } from "./form-BpHElSwH.js";
5
+ import { u as x } from "./use-service-options-base-EFrxTpGm.js";
6
+ import { D as d } from "./dropdown-field-headless-BGfJ1FyZ.js";
7
+ import { C as B } from "./chevron-down-icon-CcpVm6B-.js";
8
8
  import { E as H } from "./error-icon-hZxQ6DEy.js";
9
9
  import { H as k } from "./custom-focus-class-_483Pkwp.js";
10
- import { s as n } from "./field-rac.module-Cac83bU5.js";
11
- import { z as B, R as W, y as j, C as z, q as Q, j as Y } from "./form-element-classes-DDKCTFQj.js";
10
+ import { s as n } from "./field-rac.module-DjmaTYkc.js";
11
+ import { z as q, Q, y as W, B as z, p as Y, i as j } from "./form-element-classes-BXNs5k3q.js";
12
12
  const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
13
13
  const { actions: r } = w(), { t: C } = b(), { addOther: i, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = g(() => {
14
14
  var s;
@@ -25,11 +25,11 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
25
25
  ] : s, [
26
26
  i,
27
27
  c
28
- ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: R } = q({
28
+ ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: F, setOptions: L, setIsEmpty: S, processOptions: _ } = x({
29
29
  fieldType: M.SERVICES_DROPDOWN,
30
30
  isEditor: e.isEditor,
31
31
  postProcessOptions: O
32
- }), _ = h(async () => {
32
+ }), R = h(async () => {
33
33
  if (a.current && (r != null && r.fetchServices) && E.length > 0) {
34
34
  a.current = !1, F(!0);
35
35
  let s;
@@ -41,7 +41,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
41
41
  console.error(u);
42
42
  }
43
43
  if (s) {
44
- const u = R(s);
44
+ const u = _(s);
45
45
  S(!i && u.length === 0), L(u);
46
46
  } else
47
47
  a.current = !0;
@@ -50,7 +50,7 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
50
50
  }, [
51
51
  r,
52
52
  E,
53
- R,
53
+ _,
54
54
  i,
55
55
  F,
56
56
  L,
@@ -68,9 +68,9 @@ const G = "00000000-0000-0000-0000-000000000000", J = (e) => {
68
68
  e.isEditor
69
69
  ]);
70
70
  const v = h(() => {
71
- e.onFocus && e.onFocus(), a.current && _();
71
+ e.onFocus && e.onFocus(), a.current && R();
72
72
  }, [
73
- _,
73
+ R,
74
74
  e.onFocus
75
75
  ]), N = h(
76
76
  (s) => {
@@ -121,21 +121,21 @@ const K = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(A, {
121
121
  content: e,
122
122
  locale: r
123
123
  }), X = () => /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
124
- className: m(B, n.label)
124
+ className: m(q, n.label)
125
125
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
126
- className: m(W, n.requiredMark)
126
+ className: m(Q, n.requiredMark)
127
127
  })), /* @__PURE__ */ t.createElement(o.Trigger, {
128
- className: m(j, n.input, n.dropdownTrigger)
129
- }, /* @__PURE__ */ t.createElement(x, {
128
+ className: m(W, n.input, n.dropdownTrigger)
129
+ }, /* @__PURE__ */ t.createElement(B, {
130
130
  className: n.dropdownIcon
131
131
  })), /* @__PURE__ */ t.createElement(o.Options, {
132
132
  className: m(z, n.selectPopover, n.dropdownPopover)
133
133
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
134
134
  className: m(n.selectOption, k)
135
135
  })), /* @__PURE__ */ t.createElement(o.Error, {
136
- className: m(Q, n.error)
136
+ className: m(Y, n.error)
137
137
  }, /* @__PURE__ */ t.createElement(H, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
138
- className: m(Y, n.description)
138
+ className: m(j, n.description)
139
139
  }, K)), le = () => /* @__PURE__ */ t.createElement(X, null);
140
140
  export {
141
141
  le as ServiceDropdownRAC
@@ -0,0 +1,84 @@
1
+ import e, { useEffect as _, useMemo as I } from "react";
2
+ import { RicosViewer as L } from "@wix/ricos/viewer";
3
+ import r from "classnames";
4
+ import { F as R, ai as d, h as D } from "./form-BpHElSwH.js";
5
+ import { u as F } from "./use-service-options-base-EFrxTpGm.js";
6
+ import { C as a } from "./checkbox-group-field-headless-DN2aNw9g.js";
7
+ import { E as f } from "./error-icon-hZxQ6DEy.js";
8
+ import { C as N } from "./checkbox-indicator-module-classes-BcScu147.js";
9
+ import { s as i } from "./field-rac.module-DjmaTYkc.js";
10
+ import { z as h, Q as M, U as b, W as A, y as v, p as T, i as x, V as y } from "./form-element-classes-BXNs5k3q.js";
11
+ import { o as O } from "./options-rac.module-KM-VT_KY.js";
12
+ import { u as P } from "./use-element-state-class-name-CC65g9mT.js";
13
+ const k = (s) => {
14
+ var C;
15
+ const { isLoading: o, options: n, isEmpty: c, shouldRender: m, setOptions: l, setIsEmpty: E, setHasInitialDataLoaded: p } = F({
16
+ fieldType: R.SERVICES_MULTI_CHOICE,
17
+ isEditor: s.isEditor
18
+ }), u = (C = s.options) == null ? void 0 : C.every((S) => S.label && S.id);
19
+ return _(() => {
20
+ if (u && s.options) {
21
+ l(s.options), E(s.options.length === 0), p(!0);
22
+ return;
23
+ }
24
+ }, [
25
+ u,
26
+ s.options,
27
+ l,
28
+ E,
29
+ p
30
+ ]), {
31
+ isLoading: o,
32
+ options: n,
33
+ isEmpty: c,
34
+ shouldRender: m
35
+ };
36
+ }, t = ({ children: s }) => {
37
+ const o = d(), { options: n, isEmpty: c, shouldRender: m } = k(o), l = I(() => ({
38
+ ...o,
39
+ options: n
40
+ }), [
41
+ o,
42
+ n
43
+ ]);
44
+ return !o.isEditor && c || !m ? null : /* @__PURE__ */ e.createElement(D.Provider, {
45
+ value: {
46
+ v2: l
47
+ }
48
+ }, /* @__PURE__ */ e.createElement(a, null, s));
49
+ };
50
+ t.Label = a.Label;
51
+ t.Options = a.Options;
52
+ t.Description = a.Description;
53
+ t.Error = a.Error;
54
+ const V = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(L, {
55
+ content: s,
56
+ locale: o
57
+ }), U = () => {
58
+ const s = P({
59
+ globalClasses: y,
60
+ moduleClasses: N
61
+ });
62
+ return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
63
+ className: r(h, i.label)
64
+ }, /* @__PURE__ */ e.createElement(t.Label.Required, {
65
+ className: r(M, i.requiredMark)
66
+ })), /* @__PURE__ */ e.createElement(t.Options, {
67
+ className: r(b, O.options)
68
+ }, /* @__PURE__ */ e.createElement(t.Options.Option, null, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox, {
69
+ className: i.checkbox
70
+ }, /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Input, {
71
+ className: s
72
+ }), /* @__PURE__ */ e.createElement(t.Options.Option.Checkbox.Label, {
73
+ className: r(A, O.optionLabel)
74
+ })), /* @__PURE__ */ e.createElement(t.Options.Option.OtherInput, {
75
+ inputClassName: r(v, i.input)
76
+ }))), /* @__PURE__ */ e.createElement(t.Error, {
77
+ className: r(T, i.error)
78
+ }, /* @__PURE__ */ e.createElement(f, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
79
+ className: r(x, i.description)
80
+ }, V));
81
+ }, j = () => /* @__PURE__ */ e.createElement(U, null);
82
+ export {
83
+ j as ServicesMultiChoiceRAC
84
+ };