@wix/form-elements 1.135.0 → 1.136.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-DsD7xLmb.js +1010 -0
  2. package/dist/component/{bookings-address-rac-BK-sU26E.js → bookings-address-rac-ByaFu51U.js} +1 -1
  3. package/dist/component/{bookings-email-rac-DZ3HVkyn.js → bookings-email-rac-CxuvkcYw.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Ci4PHqOr.js → bookings-first-name-rac-JXLJa_7E.js} +1 -1
  5. package/dist/component/{bookings-header-rac-C_MYNrDA.js → bookings-header-rac-CIQTbf9d.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CdNlwyjm.js → bookings-last-name-rac-_2Xt4BPe.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CP2JcaVr.js → bookings-login-bar-rac-BUjys5i9.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BV8sqxil.js → bookings-phone-rac-DlsdGmOt.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DQtcYRsh.js → bookings-rich-text-rac-BvRdhL7M.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-DPNqHTNc.js → checkbox-field-rac-Be6wicaA.js} +121 -121
  11. package/dist/component/{checkbox-group-field-headless-DhhynlgN.js → checkbox-group-field-headless-BJ0pGvXi.js} +19 -19
  12. package/dist/component/{checkbox-group-field-rac-B3zOW7qr.js → checkbox-group-field-rac-D7xqqVf6.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Qy03hO31.js → checkbox-group-rac-DtCS-gEH.js} +1 -1
  14. package/dist/component/{checkbox-rac-DYr3RaHj.js → checkbox-rac-ub7MFwY-.js} +1 -1
  15. package/dist/component/{contacts-address-rac-Bi-etpfX.js → contacts-address-rac-Bwsdpg11.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D2LLjX9P.js → contacts-birthdate-rac-D54hibhb.js} +1 -1
  17. package/dist/component/{contacts-company-rac-C9ImoG_i.js → contacts-company-rac-CKqzgKio.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DeGblC9V.js → contacts-email-rac-Dxm31wuY.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-Xk3m57jK.js → contacts-first-name-rac-CXHsx6Vy.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BKE-1IYB.js → contacts-last-name-rac-B0S268f3.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-CHmtTutD.js → contacts-phone-rac-DEbgIiEj.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BS3TySLG.js → contacts-position-rac-D31uoOlR.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac--fpczJiB.js → contacts-subscribe-rac-DJ8NtoxZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-CHkn8vkL.js → contacts-tax-id-rac-DTQffHAo.js} +1 -1
  25. package/dist/component/{date-availability-70Vb-dlb.js → date-availability-DmhJ9apH.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BlkYEYM_.js → date-input-field-rac-BwM_q4FW.js} +52 -52
  27. package/dist/component/{date-input-rac-JdNFk07Q.js → date-input-rac-C93pgocp.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-DHu11mY1.js → date-picker-field-rac-CtZL368W.js} +5 -5
  29. package/dist/component/{date-picker-rac-CZtWhFzM.js → date-picker-rac-4DNe6hOX.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-cHAALqS5.js → date-time-input-field-rac-MlCVy3Oz.js} +58 -58
  31. package/dist/component/{date-time-input-rac-Dz7GfoJO.js → date-time-input-rac-ByyBvFgo.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-ZNKzyWda.js → dext-checkbox-group-rac-BP76Xwiq.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-DfPFXrKu.js → dext-checkbox-rac-DGaKSh4Z.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-BPbl65qK.js → dext-date-picker-rac-UEXbMSlL.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-D5ywbLtW.js → dext-date-time-input-rac-CsJcGK4I.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BuVsPZOU.js → dext-dropdown-rac-BzbRzloh.js} +1 -1
  37. package/dist/component/{dext-email-rac-DRjt3lqT.js → dext-email-rac-DufFAnTi.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Bzrl87fo.js → dext-number-input-rac-D6xXi7B2.js} +1 -1
  39. package/dist/component/{dext-phone-rac-LibvQb8h.js → dext-phone-rac-svy9CDHW.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BTWnIvwW.js → dext-radio-group-rac-C4p9NuQS.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-DTlnOcC8.js → dext-rating-input-rac-wJ7-RFFN.js} +1 -1
  42. package/dist/component/{dext-tags-rac-YdeijviH.js → dext-tags-rac-D2myHrSZ.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-CdCzQYey.js → dext-text-area-rac-B4Fw_9mF.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-B28RTezm.js → dext-text-input-rac-DlZanFMT.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B0ZBPbAb.js → dext-url-input-rac-DYjl3wuk.js} +1 -1
  46. package/dist/component/{donation-rac-_0cwsIAq.js → donation-rac-B6LwJxik.js} +72 -72
  47. package/dist/component/{dropdown-field-headless-DVZnbZAM.js → dropdown-field-headless-BAt2RoAH.js} +8 -8
  48. package/dist/component/{dropdown-field-rac-DWCj_Grt.js → dropdown-field-rac-DFjn3ecV.js} +7 -7
  49. package/dist/component/{dropdown-rac-Bpo-F5sc.js → dropdown-rac-DQ6keNRI.js} +1 -1
  50. package/dist/component/{ecom-address-rac-vJ0ku_Ld.js → ecom-address-rac-j1T2zp0k.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DgVReM6c.js → ecom-subscription-checkbox-rac-viTaRZsk.js} +2 -2
  52. package/dist/component/{email-input-field-rac-BXJGOBg-.js → email-input-field-rac-5eb-1w7B.js} +46 -46
  53. package/dist/component/{events-repeater-rac-CrXE_ppd.js → events-repeater-rac-BtcoN_Ra.js} +23 -23
  54. package/dist/component/{events-rsvp-rac-BGg3P1CQ.js → events-rsvp-rac-DSzFEmty.js} +10 -10
  55. package/dist/component/{field-error-headless-C3eOy1_l.js → field-error-headless-Bpe041x2.js} +6 -6
  56. package/dist/component/{field-label-headless-BMmR_IeF.js → field-label-headless-BUuK1Ftv.js} +7 -7
  57. package/dist/component/{file-upload-rac-Umix6wXx.js → file-upload-rac-CfU8Ygwq.js} +50 -50
  58. package/dist/component/{fixed-payment-rac-CfIJCBjb.js → fixed-payment-rac-CYp7zNq8.js} +12 -12
  59. package/dist/component/{form-CYPNOMwk.js → form-C6lnbh2O.js} +831 -823
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-oxHUTKYV.js → header-field-rac-B7YfrhId.js} +4 -4
  63. package/dist/component/{header-rac-DTGV923r.js → header-rac-BtJKAKAz.js} +1 -1
  64. package/dist/component/{image-choice-rac-B9JGl_h7.js → image-choice-rac-Bmq7Pyg6.js} +32 -32
  65. package/dist/component/{index-BOKSOnDK.js → index-BjPSeVyh.js} +107 -107
  66. package/dist/component/{index-C_ktc-yO.js → index-CQdUOkIN.js} +5 -5
  67. package/dist/component/{isObjectLike-Di8V7txC.js → isObjectLike-CxNqKfU5.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-zgmTbXlg.js → multiline-address-field-rac-BeiUJWKd.js} +115 -115
  69. package/dist/component/{multiline-address-rac-Cyb3dvBf.js → multiline-address-rac-B2mocF6M.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DquqqRy_.js → number-input-field-rac-CQX7_S2O.js} +24 -24
  71. package/dist/component/{number-input-rac-G2DdTbk2.js → number-input-rac-BZri-E8P.js} +1 -1
  72. package/dist/component/{password-rac-DJCU0F38.js → password-rac-CdwrtDJU.js} +50 -50
  73. package/dist/component/{payment-input-rac-DlIYza6N.js → payment-input-rac-ClQiqmjm.js} +38 -38
  74. package/dist/component/{phone-input-field-rac-B10TInMa.js → phone-input-field-rac-BtG_Rado.js} +56 -56
  75. package/dist/component/{phone-rac-BuyttJpM.js → phone-rac-CdcAMa5E.js} +1 -1
  76. package/dist/component/{product-list-rac-WrSJwQ_g.js → product-list-rac-Dp_YK6mo.js} +61 -61
  77. package/dist/component/{quiz-radio-group-rac-CHxZ_pK_.js → quiz-radio-group-rac-CorojxKD.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DjJU-8ZB.js → radio-button-module-classes-ZX12Fyj4.js} +3 -3
  79. package/dist/component/{radio-group-field-rac-BImiqcKa.js → radio-group-field-rac-BifCDpE4.js} +10 -10
  80. package/dist/component/{radio-group-rac-CDkJeGpN.js → radio-group-rac-CJ2fzqnY.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-Dsr_S5qN.js → rating-input-field-rac-Dg1T0DZW.js} +28 -28
  82. package/dist/component/{rating-input-rac-BJUW8U93.js → rating-input-rac-Ba4YK13i.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-BfQJqA-x.js → rich-content-rac.module-BehwBL3L.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-DIuZbu_u.js → rich-text-field-rac-DtIWdB-S.js} +7 -7
  85. package/dist/component/{rich-text-rac-C39fpEiP.js → rich-text-rac-BX4eDDFw.js} +1 -1
  86. package/dist/component/service-dropdown-rac-68WLBlsa.js +146 -0
  87. package/dist/component/{services-multi-choice-rac-GVb4qA7g.js → services-multi-choice-rac-8yNdAHfS.js} +7 -7
  88. package/dist/component/{signature-rac-nC5pr6nB.js → signature-rac-DeVOyl5O.js} +73 -73
  89. package/dist/component/{submit-button-rac-eUjgrx9Q.js → submit-button-rac-IOr1g-G-.js} +12 -12
  90. package/dist/component/{tags-field-rac-zv30chSd.js → tags-field-rac-DaiMlAxt.js} +27 -27
  91. package/dist/component/{tags-rac-PnS2SxVP.js → tags-rac-BgrUkY0A.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DLeOMD4g.js → text-area-field-rac-CLPZEY93.js} +16 -16
  93. package/dist/component/{text-area-rac-jZ_mh45C.js → text-area-rac-C8PdPSzX.js} +1 -1
  94. package/dist/component/{text-input-field-rac-DifV7Erd.js → text-input-field-rac-Dm-xU8Rg.js} +5 -5
  95. package/dist/component/{text-input-headless-DhVEjorY.js → text-input-headless-BEmRjL8Z.js} +6 -6
  96. package/dist/component/{text-input-rac-Ce4qKN9M.js → text-input-rac-C-FnaOXT.js} +1 -1
  97. package/dist/component/{time-input-rac-1kW3aDIo.js → time-input-rac-VmTURkiK.js} +46 -46
  98. package/dist/component/{url-input-field-rac-D9xXAQCq.js → url-input-field-rac-CnnS0tVx.js} +23 -23
  99. package/dist/component/{url-input-rac-SaAybDdN.js → url-input-rac-6nd_ccoP.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-C_MO_0JS.js → use-dropdown-option-class-name-CcZl1qrj.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-D7EMiD-M.js → use-dropdown-trigger-class-name-BNc0mkdK.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-DZFi3Z42.js → use-element-state-class-name-BU6RXqBy.js} +1 -1
  103. package/dist/component/{use-hoverable-input-class-name-JAZ1mif0.js → use-hoverable-input-class-name-CkXPkbiP.js} +2 -2
  104. package/dist/component/{use-service-options-base-ZX4iaxzr.js → use-service-options-base-B5afDbnr.js} +4 -4
  105. package/dist/component/use-text-input-class-name-BB3V6Q0b.js +6 -0
  106. package/package.json +2 -2
  107. package/dist/component/appointment-rac-CYCddSl9.js +0 -1010
  108. package/dist/component/service-dropdown-rac-Bc9hEpx3.js +0 -146
  109. package/dist/component/use-text-input-class-name-XFjQX8q1.js +0 -6
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-BImiqcKa.js";
2
+ import { R as r } from "./radio-group-field-rac-BifCDpE4.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,22 +1,22 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import u from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { bh as I, be as v, br as T, I as H, U as M, S as w, v as B, p as P, T as q } from "./form-CYPNOMwk.js";
5
- import { RadioGroup as G, RadioField as k, RadioButton as x } from "react-aria-components";
4
+ import { bj as I, bg as v, bt as M, M as T, Y as H, W as w, G as B, u as P, X as G } from "./form-C6lnbh2O.js";
5
+ import { RadioGroup as q, RadioField as k, RadioButton as x } from "react-aria-components";
6
6
  import { f as E, a as U } from "./find-child-C60k4CxG.js";
7
- import { D as z, E as Q } from "./field-error-headless-C3eOy1_l.js";
8
- import { L as Z } from "./field-label-headless-BMmR_IeF.js";
9
- import { E as j } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as j, E as z } from "./field-error-headless-Bpe041x2.js";
8
+ import { L as Q } from "./field-label-headless-BUuK1Ftv.js";
9
+ import { E as W } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as J } from "./use-element-state-class-name-DZFi3Z42.js";
11
+ import { u as X } from "./use-element-state-class-name-BU6RXqBy.js";
12
12
  const t = ({ children: a }) => {
13
13
  const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
14
14
  i
15
- ]), S = E(a, t.Label), s = E(a, t.Ratings), f = E(a, t.Description), h = E(a, t.Error);
15
+ ]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), h = E(a, t.Error);
16
16
  return /* @__PURE__ */ e.createElement(R, {
17
17
  fieldId: n,
18
- renderLabel: () => S,
19
- renderInput: () => /* @__PURE__ */ e.createElement(G, {
18
+ renderLabel: () => f,
19
+ renderInput: () => /* @__PURE__ */ e.createElement(q, {
20
20
  "aria-labelledby": _,
21
21
  value: r ? String(r) : void 0,
22
22
  onChange: L,
@@ -28,7 +28,7 @@ const t = ({ children: a }) => {
28
28
  onFocus: C,
29
29
  orientation: "horizontal"
30
30
  }, s),
31
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
31
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
32
32
  });
33
33
  }, b = ({ children: a, className: n, getReactionLabel: r }) => {
34
34
  const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, C] = O(), R = A(null), _ = E(a, b.Rating), L = [
@@ -37,7 +37,7 @@ const t = ({ children: a }) => {
37
37
  "3",
38
38
  "4",
39
39
  "5"
40
- ], S = (s) => o && !l ? o >= s : !!i && i >= Number(s);
40
+ ], f = (s) => o && !l ? o >= s : !!i && i >= Number(s);
41
41
  return /* @__PURE__ */ e.createElement("div", {
42
42
  ref: R,
43
43
  id: d,
@@ -48,11 +48,11 @@ const t = ({ children: a }) => {
48
48
  }, L.map((s) => U(_, {
49
49
  key: s,
50
50
  value: s,
51
- isSelected: S(s),
52
- onHoverChange: (f) => C(f ? s : void 0),
51
+ isSelected: f(s),
52
+ onHoverChange: (S) => C(S ? s : void 0),
53
53
  label: r == null ? void 0 : r(Number(s))
54
54
  })));
55
- }, K = {
55
+ }, Y = {
56
56
  border: 0,
57
57
  clipPath: "inset(50%)",
58
58
  height: 1,
@@ -79,16 +79,16 @@ const t = ({ children: a }) => {
79
79
  isHovered: c,
80
80
  isFocused: o
81
81
  }) : n, d ? /* @__PURE__ */ e.createElement("span", {
82
- style: K
82
+ style: Y
83
83
  }, d) : null)));
84
84
  };
85
85
  b.Rating = F;
86
- t.Label = Z;
86
+ t.Label = Q;
87
87
  t.Ratings = b;
88
88
  t.Rating = F;
89
- t.Description = z;
90
- t.Error = Q;
91
- const W = (a) => /* @__PURE__ */ e.createElement("svg", {
89
+ t.Description = j;
90
+ t.Error = z;
91
+ const Z = (a) => /* @__PURE__ */ e.createElement("svg", {
92
92
  viewBox: "0 0 32 32",
93
93
  width: 32,
94
94
  height: 32,
@@ -98,9 +98,9 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
98
98
  }, /* @__PURE__ */ e.createElement("path", {
99
99
  fillRule: "evenodd",
100
100
  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"
101
- })), X = "_ratings_a5lgi_1", Y = "_rating_a5lgi_1", $ = "_ratingSelected_a5lgi_37", V = "_ratingHover_a5lgi_44", p = {
102
- ratings: X,
103
- rating: Y,
101
+ })), J = "_ratings_a5lgi_1", K = "_rating_a5lgi_1", $ = "_ratingSelected_a5lgi_37", V = "_ratingHover_a5lgi_44", p = {
102
+ ratings: J,
103
+ rating: K,
104
104
  ratingSelected: $,
105
105
  ratingHover: V
106
106
  }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
@@ -111,14 +111,14 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
111
111
  selected: p.ratingSelected,
112
112
  hover: p.ratingHover
113
113
  }, Ee = () => {
114
- const { t: a } = T(), n = J({
115
- globalClasses: q,
114
+ const { t: a } = M(), n = X({
115
+ globalClasses: G,
116
116
  moduleClasses: te
117
117
  });
118
118
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
119
- className: u(H, g.label)
119
+ className: u(T, g.label)
120
120
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
121
- className: u(M, g.requiredMark)
121
+ className: u(H, g.requiredMark)
122
122
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
123
123
  className: u(w, p.ratings),
124
124
  getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
@@ -126,9 +126,9 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
126
126
  })
127
127
  }, /* @__PURE__ */ e.createElement(t.Rating, {
128
128
  className: n
129
- }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
+ }, /* @__PURE__ */ e.createElement(Z, null))), /* @__PURE__ */ e.createElement(t.Error, {
130
130
  className: u(B, g.error)
131
- }, /* @__PURE__ */ e.createElement(j, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
+ }, /* @__PURE__ */ e.createElement(W, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
132
132
  className: u(P, g.description)
133
133
  }, ee));
134
134
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-Dsr_S5qN.js";
2
+ import { R as e } from "./rating-input-field-rac-Dg1T0DZW.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 { bh as a, b9 as i, br as T } from "./form-CYPNOMwk.js";
2
+ import { bj as a, bb as i, bt as T } from "./form-C6lnbh2O.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";
@@ -38,8 +38,8 @@ function B(e, t) {
38
38
  toggleTruncate: s
39
39
  };
40
40
  }
41
- const C = "_richContent_1galb_1", D = {
42
- richContent: C
41
+ const b = "_richContent_1galb_1", D = {
42
+ richContent: b
43
43
  };
44
44
  export {
45
45
  O as R,
@@ -1,17 +1,17 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { bh as m, au as u, ac as i, aU as R, aX as T } from "./form-CYPNOMwk.js";
4
- import { u as C, R as d, s as g, T as h } from "./rich-content-rac.module-BfQJqA-x.js";
5
- const p = {
3
+ import { bj as m, aw as i, ae as u, aW as R, aZ as T } from "./form-C6lnbh2O.js";
4
+ import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-BehwBL3L.js";
5
+ const h = {
6
6
  colorPalette: T(),
7
7
  customStyles: R()
8
8
  }, P = ({ truncate: t = !0 } = {}) => {
9
9
  const { content: a, maxShownParagraphs: s } = m(), { displayedContent: n, isTruncated: o, isTruncateButtonShown: r, toggleTruncate: c } = C(a, t ? s : void 0);
10
- return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(u, {
11
- className: l(i, g.richContent),
10
+ return /* @__PURE__ */ e.createElement(d, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(i, {
11
+ className: l(u, g.richContent),
12
12
  content: n,
13
- customTheme: p
14
- }), r && /* @__PURE__ */ e.createElement(h, {
13
+ customTheme: h
14
+ }), r && /* @__PURE__ */ e.createElement(p, {
15
15
  isTruncated: o,
16
16
  onClick: c
17
17
  })));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-DIuZbu_u.js";
2
+ import { R as t } from "./rich-text-field-rac-DtIWdB-S.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -0,0 +1,146 @@
1
+ import o, { useRef as b, useMemo as _, useCallback as C, useEffect as T } from "react";
2
+ import { RicosViewer as w } from "@wix/ricos/viewer";
3
+ import E from "classnames";
4
+ import { bf as P, bt as A, F as M, bj as y, bb as V, al as x, M as H, Y as U, O as k, G as q, u as B } from "./form-C6lnbh2O.js";
5
+ import { u as W } from "./use-service-options-base-B5afDbnr.js";
6
+ import { D as u } from "./dropdown-field-headless-BAt2RoAH.js";
7
+ import { C as Y } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as j } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as G } from "./custom-focus-class-_483Pkwp.js";
10
+ import { s as a } from "./field-rac.module-DfEb7pBp.js";
11
+ import { u as Q } from "./use-dropdown-option-class-name-CcZl1qrj.js";
12
+ import { u as z } from "./use-dropdown-trigger-class-name-BNc0mkdK.js";
13
+ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
+ const { actions: t } = P(), { t: h } = A(), { addOther: n, addOtherLabel: p } = e, c = p || h("add-other.default-other-option-label"), i = b(!0), d = _(() => {
15
+ var s;
16
+ return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
+ }, [
18
+ e.options
19
+ ]), O = C((s) => n ? [
20
+ ...s,
21
+ {
22
+ value: c,
23
+ label: c,
24
+ id: J
25
+ }
26
+ ] : s, [
27
+ n,
28
+ c
29
+ ]), { isLoading: f, options: l, isEmpty: S, shouldRender: I, setIsLoading: D, setOptions: F, setIsEmpty: g, processOptions: L } = W({
30
+ fieldType: M.SERVICES_DROPDOWN,
31
+ isEditor: e.isEditor,
32
+ postProcessOptions: O
33
+ }), R = C(async () => {
34
+ if (i.current && (t != null && t.fetchServices) && d.length > 0) {
35
+ i.current = !1, D(!0);
36
+ let s;
37
+ try {
38
+ s = await t.fetchServices({
39
+ serviceIds: d
40
+ });
41
+ } catch (m) {
42
+ console.error(m);
43
+ }
44
+ if (s) {
45
+ const m = L(s);
46
+ g(!n && m.length === 0), F(m);
47
+ } else
48
+ i.current = !0;
49
+ D(!1);
50
+ }
51
+ }, [
52
+ t,
53
+ d,
54
+ L,
55
+ n,
56
+ D,
57
+ F,
58
+ g
59
+ ]);
60
+ T(() => {
61
+ if (!e.isEditor && l.length > 0) {
62
+ const s = n ? l.length - 1 : l.length;
63
+ g(s === 0);
64
+ }
65
+ }, [
66
+ l,
67
+ n,
68
+ g,
69
+ e.isEditor
70
+ ]);
71
+ const v = C(() => {
72
+ e.onFocus && e.onFocus(), i.current && R();
73
+ }, [
74
+ R,
75
+ e.onFocus
76
+ ]), N = C(
77
+ (s) => {
78
+ e.onChange && e.onChange(s), i.current = !0;
79
+ },
80
+ // eslint-disable-next-line react-hooks/exhaustive-deps
81
+ [
82
+ e.onChange
83
+ ]
84
+ );
85
+ return {
86
+ isLoading: f,
87
+ options: l,
88
+ isEmpty: S,
89
+ onFocus: v,
90
+ onChange: N,
91
+ shouldRender: I
92
+ };
93
+ }, r = ({ children: e }) => {
94
+ const t = y(), { addOther: h } = t, n = V(), p = t.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: i, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
95
+ ...t,
96
+ isEditor: p
97
+ }), S = _(() => ({
98
+ ...t,
99
+ options: c ? [] : i,
100
+ isLoading: c,
101
+ onFocus: O,
102
+ onChange: f
103
+ }), [
104
+ t,
105
+ i,
106
+ c,
107
+ O,
108
+ f
109
+ ]);
110
+ return !p && d && !h || !l ? null : /* @__PURE__ */ o.createElement(x.Provider, {
111
+ value: {
112
+ v2: S
113
+ }
114
+ }, /* @__PURE__ */ o.createElement(u, null, e));
115
+ };
116
+ r.Label = u.Label;
117
+ r.Trigger = u.Trigger;
118
+ r.Options = u.Options;
119
+ r.Description = u.Description;
120
+ r.Error = u.Error;
121
+ const X = ({ content: e, locale: t }) => /* @__PURE__ */ o.createElement(w, {
122
+ content: e,
123
+ locale: t
124
+ }), Z = () => {
125
+ const e = z(a.dropdownTrigger), t = Q(G);
126
+ return /* @__PURE__ */ o.createElement(r, null, /* @__PURE__ */ o.createElement(r.Label, {
127
+ className: E(H, a.label)
128
+ }, /* @__PURE__ */ o.createElement(r.Label.Required, {
129
+ className: E(U, a.requiredMark)
130
+ })), /* @__PURE__ */ o.createElement(r.Trigger, {
131
+ className: e
132
+ }, /* @__PURE__ */ o.createElement(Y, {
133
+ className: a.dropdownIcon
134
+ })), /* @__PURE__ */ o.createElement(r.Options, {
135
+ className: E(k, a.selectPopover, a.dropdownPopover)
136
+ }, /* @__PURE__ */ o.createElement(r.Options.Option, {
137
+ className: t
138
+ })), /* @__PURE__ */ o.createElement(r.Error, {
139
+ className: E(q, a.error)
140
+ }, /* @__PURE__ */ o.createElement(j, null), /* @__PURE__ */ o.createElement(r.Error.Text, null)), /* @__PURE__ */ o.createElement(r.Description, {
141
+ className: E(B, a.description)
142
+ }, X));
143
+ }, ue = () => /* @__PURE__ */ o.createElement(Z, null);
144
+ export {
145
+ ue as ServiceDropdownRAC
146
+ };
@@ -1,15 +1,15 @@
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, bh as d, aj as D, I as F, U as N, i as f, k as h, v as b, p as M, j as A } from "./form-CYPNOMwk.js";
5
- import { u as v } from "./use-service-options-base-ZX4iaxzr.js";
6
- import { C as i } from "./checkbox-group-field-headless-DhhynlgN.js";
4
+ import { F as R, bj as d, al as D, M as F, Y as N, o as f, q as h, G as b, u as M, p as A } from "./form-C6lnbh2O.js";
5
+ import { u as v } from "./use-service-options-base-B5afDbnr.js";
6
+ import { C as i } from "./checkbox-group-field-headless-BJ0pGvXi.js";
7
7
  import { E as x } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as P } from "./checkbox-indicator-module-classes-6173wvuW.js";
9
9
  import { s as n } from "./field-rac.module-DfEb7pBp.js";
10
10
  import { o as _ } from "./options-rac.module-_THNq6Qq.js";
11
- import { u as T } from "./use-element-state-class-name-DZFi3Z42.js";
12
- import { u as k } from "./use-text-input-class-name-XFjQX8q1.js";
11
+ import { u as T } from "./use-element-state-class-name-BU6RXqBy.js";
12
+ import { u as k } from "./use-text-input-class-name-BB3V6Q0b.js";
13
13
  const y = (s) => {
14
14
  var C;
15
15
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: p } = v({
@@ -56,7 +56,7 @@ t.Error = i.Error;
56
56
  const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
57
57
  content: s,
58
58
  locale: o
59
- }), U = () => {
59
+ }), G = () => {
60
60
  const s = T({
61
61
  globalClasses: A,
62
62
  moduleClasses: P
@@ -80,7 +80,7 @@ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
80
80
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
81
81
  className: a(M, n.description)
82
82
  }, B));
83
- }, J = () => /* @__PURE__ */ e.createElement(U, null);
83
+ }, J = () => /* @__PURE__ */ e.createElement(G, null);
84
84
  export {
85
85
  J as ServicesMultiChoiceRAC
86
86
  };