@wix/form-elements 1.146.0 → 1.147.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 (111) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BG5-bIZU.js} +98 -98
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-8e8PqKsp.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-CtlnU8ws.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-CrivNlXM.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-DWDAjfqq.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-qAthWem2.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-BNyUDqlM.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-Tc39XLr7.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-CPNaPtFK.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-DEa78Tpf.js} +4 -4
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-BxBaMg29.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-CRRP03Qk.js} +7 -7
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-TOofMGl3.js} +1 -1
  14. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-CHMHr8Ry.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-Bc5yDvTL.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Ubtg5ncv.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-BksH9IoV.js} +1 -1
  18. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DDPEtMAm.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-DUlCvEdx.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-BikqNgUr.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-B4OEgM_8.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BfybzySV.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-CMHb33v1.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-C-qEqwO5.js} +1 -1
  25. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-DZ3J3LLm.js} +1 -1
  26. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-DeL5vuE7.js} +39 -39
  27. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-Di6TQvFf.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-BcdpTkjV.js} +107 -103
  29. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-Brne65gr.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-BtQfAxRp.js} +49 -49
  31. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-DM_HXiqV.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-WTVwhGG0.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BR5YwmLQ.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-DvDuRGYi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-C6RgbaVv.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-CWjSdcZx.js} +1 -1
  37. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D-C1gVTq.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-YKzZS2ZG.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-CFZlEH2a.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-DiH0wIIl.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-D0s-i0qO.js} +1 -1
  42. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-Br48OQQ5.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-6jG8gJ7i.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-FAJTCXuf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BoMP8sQB.js} +1 -1
  46. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-DNi4p-v5.js} +69 -69
  47. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-7SCC-xOC.js} +27 -27
  48. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CMzZh6J6.js} +8 -9
  49. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-qeugpHXY.js} +1 -1
  50. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-D8b_L5md.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-BnAuR9La.js} +5 -5
  52. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-CunXRyc5.js} +62 -62
  53. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DMjyIOkB.js} +17 -17
  54. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-BsuDPq2K.js} +8 -8
  55. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-E8WjFr_n.js} +6 -6
  56. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-BakLOu5E.js} +15 -15
  57. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-Clu_c--0.js} +43 -43
  58. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CzAXxsb-.js} +12 -12
  59. package/dist/component/{form-Bed4Kfz8.js → form-DHAKwnLt.js} +311 -305
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-CwmVpz3r.js} +4 -4
  63. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-ahkGRjSy.js} +1 -1
  64. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-BwxkkdUu.js} +17 -17
  65. package/dist/component/{index-qSZCe_WC.js → index-BFi_n6B7.js} +2 -2
  66. package/dist/component/{index-DZxHlvzt.js → index-BQf23zZi.js} +91 -91
  67. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-DHcMRYYH.js} +15 -15
  68. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-C6xaqNOk.js} +60 -60
  69. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-DF4TFuDx.js} +1 -1
  70. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-uVJ3SBv2.js} +27 -27
  71. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-D6ERhrSM.js} +1 -1
  72. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-CAiC0ZKl.js} +23 -23
  73. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-Bu25xvby.js} +26 -26
  74. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-32qUvCsC.js} +45 -45
  75. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-mNrpj30q.js} +1 -1
  76. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-zHdM9rHw.js} +53 -53
  77. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-BaSlT8w3.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-CqdBGknT.js → radio-button-module-classes-BdWjkBlX.js} +9 -9
  79. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-DI0UgTBr.js} +12 -12
  80. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-D2ESG8J4.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-BYT2XqOK.js} +26 -26
  82. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-D-5CmVAX.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-Dp9Advo9.js} +8 -8
  84. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-COEUwoXQ.js} +4 -4
  85. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-CQZLjBQ0.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BTtJVFv8.js} +44 -45
  87. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-hbY3g0Kb.js} +11 -11
  88. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-CTCNclwL.js} +67 -67
  89. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-kKGeVgsG.js} +25 -25
  90. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-CVf7oQr_.js} +35 -35
  91. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DiX1_nTT.js} +1 -1
  92. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-IhBNXiDl.js} +22 -22
  93. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-DHevCtFF.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-Da3_wTdh.js} +5 -5
  95. package/dist/component/{text-input-headless-BdPkEeK2.js → text-input-headless-DcZRRXCp.js} +9 -9
  96. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-564LIZ1_.js} +1 -1
  97. package/dist/component/{time-input-rac-BYoojlJ9.js → time-input-rac-p-Nnsxp_.js} +54 -54
  98. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-DjrcpRtm.js} +25 -25
  99. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-B3brpyop.js} +1 -1
  100. package/dist/component/use-dropdown-trigger-class-name-BWTT7ltv.js +117 -0
  101. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-CUZuhFvZ.js} +3 -3
  102. package/dist/component/{use-hoverable-input-class-name-BW3nCyhG.js → use-hoverable-input-class-name-ugX8-g4E.js} +6 -6
  103. package/dist/component/use-is-forced-open-dropdown-DUZMvWpk.js +48 -0
  104. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-hqO9Ev38.js} +6 -6
  105. package/dist/component/use-text-input-class-name-wp9dzpEy.js +6 -0
  106. package/dist/form.d.ts +5 -0
  107. package/package.json +2 -2
  108. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  109. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  110. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  111. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,15 +1,15 @@
1
1
  import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
2
- import { RadioGroup as H, RadioField as k, RadioButton as x, TextField as A, Input as G } from "react-aria-components";
3
- import { bn as g, bk as P, bx as D, bp as $ } from "./form-Bed4Kfz8.js";
2
+ import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
3
+ import { bo as g, bl as $, by as D, bq as x } from "./form-DHAKwnLt.js";
4
4
  import { f as d, a as v } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as M } from "./field-error-headless-CsYQCsiT.js";
6
- import { L as j } from "./field-label-headless-Yg_1PMSg.js";
5
+ import { D as U, E as M } from "./field-error-headless-E8WjFr_n.js";
6
+ import { L as j } from "./field-label-headless-BakLOu5E.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), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
9
9
  const l = t ? t.length + 2 : 0;
10
10
  return e.slice(l);
11
11
  }, i = ({ children: e, className: t }) => {
12
- const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = P(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
12
+ const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
13
13
  return /* @__PURE__ */ a.createElement(c, {
14
14
  fieldId: n,
15
15
  renderLabel: () => v(s, {
@@ -33,7 +33,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
33
33
  });
34
34
  }, K = ({ children: e, className: t }) => {
35
35
  const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
36
- return $(() => {
36
+ return x(() => {
37
37
  var o;
38
38
  (o = r.current) == null || o.focus();
39
39
  }, p), /* @__PURE__ */ a.createElement("div", {
@@ -59,7 +59,7 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
59
59
  className: t
60
60
  }, /* @__PURE__ */ a.createElement(k, {
61
61
  value: l
62
- }, /* @__PURE__ */ a.createElement(x, {
62
+ }, /* @__PURE__ */ a.createElement(A, {
63
63
  ref: f,
64
64
  className: C
65
65
  }, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
@@ -90,13 +90,13 @@ const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ??
90
90
  l,
91
91
  o
92
92
  ]);
93
- return /* @__PURE__ */ a.createElement(A, {
93
+ return /* @__PURE__ */ a.createElement(G, {
94
94
  "aria-label": o,
95
95
  value: h,
96
96
  onChange: I,
97
97
  isDisabled: f,
98
98
  isReadOnly: b
99
- }, /* @__PURE__ */ a.createElement(G, {
99
+ }, /* @__PURE__ */ a.createElement(P, {
100
100
  ref: r,
101
101
  className: e,
102
102
  placeholder: O,
@@ -1,21 +1,21 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { a, s, R as n } from "./radio-button-module-classes-CqdBGknT.js";
4
+ import { a, s, R as n } from "./radio-button-module-classes-BdWjkBlX.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as r } from "./field-rac.module-DfEb7pBp.js";
7
- import { R as i, $ as E, W as p, X as R, G as O, u as _, Y as I } from "./form-Bed4Kfz8.js";
7
+ import { S as i, a0 as E, X as p, Y as O, H as R, v as _, Z as I } from "./form-DHAKwnLt.js";
8
8
  import { o as L } from "./options-rac.module-_THNq6Qq.js";
9
- import { u } from "./use-element-state-class-name-oiKCauK-.js";
10
- import { u as N } from "./use-text-input-class-name-BhQFcXYH.js";
11
- const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
9
+ import { u as N } from "./use-element-state-class-name-CUZuhFvZ.js";
10
+ import { u } from "./use-text-input-class-name-wp9dzpEy.js";
11
+ const S = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
12
12
  content: o,
13
13
  locale: l
14
- }), G = () => {
15
- const o = u({
14
+ }), g = () => {
15
+ const o = N({
16
16
  globalClasses: I,
17
17
  moduleClasses: n
18
- }), l = N();
18
+ }), l = u();
19
19
  return /* @__PURE__ */ e.createElement(a, null, /* @__PURE__ */ e.createElement(a.Label, {
20
20
  className: t(i, r.label)
21
21
  }, /* @__PURE__ */ e.createElement(a.Label.Required, {
@@ -31,15 +31,15 @@ const D = ({ content: o, locale: l }) => /* @__PURE__ */ e.createElement(m, {
31
31
  }), /* @__PURE__ */ e.createElement(a.Option.Control, {
32
32
  className: o
33
33
  }), /* @__PURE__ */ e.createElement(a.Option.Label, {
34
- className: t(R, s.optionLabel)
34
+ className: t(O, s.optionLabel)
35
35
  }), /* @__PURE__ */ e.createElement(a.Option.OtherInput, {
36
36
  className: l
37
37
  }))), /* @__PURE__ */ e.createElement(a.Error, {
38
- className: t(O, r.error)
38
+ className: t(R, r.error)
39
39
  }, /* @__PURE__ */ e.createElement(c, null), /* @__PURE__ */ e.createElement(a.Error.Text, null)), /* @__PURE__ */ e.createElement(a.Description, {
40
40
  className: t(_, r.description)
41
- }, D));
41
+ }, S));
42
42
  };
43
43
  export {
44
- G as R
44
+ g as R
45
45
  };
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-w8fHpFKJ.js";
2
+ import { R as r } from "./radio-group-field-rac-DI0UgTBr.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,22 +1,22 @@
1
- import { RicosViewer as y } from "@wix/ricos/viewer";
1
+ import { RicosViewer as D } 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 { bn as I, bk as v, bx as T, R as H, $ as M, Z as w, G as B, u as P, _ as G } from "./form-Bed4Kfz8.js";
5
- import { RadioGroup as k, RadioField as q, RadioButton as x } from "react-aria-components";
4
+ import { bo as v, bl as I, by as H, S as T, a0 as M, _ as w, H as B, v as P, $ as q } from "./form-DHAKwnLt.js";
5
+ import { RadioGroup as G, 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 z } from "./field-error-headless-CsYQCsiT.js";
8
- import { L as Q } from "./field-label-headless-Yg_1PMSg.js";
7
+ import { D as z, E as Q } from "./field-error-headless-E8WjFr_n.js";
8
+ import { L as Z } from "./field-label-headless-BakLOu5E.js";
9
9
  import { E as $ } 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-oiKCauK-.js";
11
+ import { u as j } from "./use-element-state-class-name-CUZuhFvZ.js";
12
12
  const t = ({ children: a }) => {
13
- const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: R, FieldLayout: C } = I(), { labelId: _ } = v(), L = N((D) => i(Number(D)), [
13
+ const { id: n, value: r, onChange: i, disabled: l, readOnly: m, required: d, hasError: c, onBlur: o, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = I(), L = N((y) => i(Number(y)), [
14
14
  i
15
- ]), f = E(a, t.Label), s = E(a, t.Ratings), S = E(a, t.Description), h = E(a, t.Error);
16
- return /* @__PURE__ */ e.createElement(C, {
15
+ ]), S = E(a, t.Label), s = E(a, t.Ratings), f = E(a, t.Description), h = E(a, t.Error);
16
+ return /* @__PURE__ */ e.createElement(R, {
17
17
  fieldId: n,
18
- renderLabel: () => f,
19
- renderInput: () => /* @__PURE__ */ e.createElement(k, {
18
+ renderLabel: () => S,
19
+ renderInput: () => /* @__PURE__ */ e.createElement(G, {
20
20
  "aria-labelledby": _,
21
21
  value: r ? String(r) : void 0,
22
22
  onChange: L,
@@ -25,21 +25,21 @@ const t = ({ children: a }) => {
25
25
  isRequired: d,
26
26
  isInvalid: c,
27
27
  onBlur: o,
28
- onFocus: R,
28
+ onFocus: C,
29
29
  orientation: "horizontal"
30
30
  }, s),
31
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
31
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, f)
32
32
  });
33
33
  }, b = ({ children: a, className: n, getReactionLabel: r }) => {
34
- const { value: i, readOnly: l, hasError: m } = I(), { inputId: d, ariaDescribedBy: c } = v(), [o, R] = O(), C = A(null), _ = E(a, b.Rating), L = [
34
+ const { value: i, readOnly: l, hasError: m } = v(), { inputId: d, ariaDescribedBy: c } = I(), [o, C] = O(), R = A(null), _ = E(a, b.Rating), L = [
35
35
  "1",
36
36
  "2",
37
37
  "3",
38
38
  "4",
39
39
  "5"
40
- ], f = (s) => o && !l ? o >= s : !!i && i >= Number(s);
40
+ ], S = (s) => o && !l ? o >= s : !!i && i >= Number(s);
41
41
  return /* @__PURE__ */ e.createElement("div", {
42
- ref: C,
42
+ ref: R,
43
43
  id: d,
44
44
  "aria-describedby": c,
45
45
  className: n,
@@ -48,8 +48,8 @@ const t = ({ children: a }) => {
48
48
  }, L.map((s) => U(_, {
49
49
  key: s,
50
50
  value: s,
51
- isSelected: f(s),
52
- onHoverChange: (S) => R(S ? s : void 0),
51
+ isSelected: S(s),
52
+ onHoverChange: (f) => C(f ? s : void 0),
53
53
  label: r == null ? void 0 : r(Number(s))
54
54
  })));
55
55
  }, J = {
@@ -64,7 +64,7 @@ const t = ({ children: a }) => {
64
64
  whiteSpace: "nowrap"
65
65
  }, F = ({ className: a, children: n, ...r }) => {
66
66
  const { value: i, isSelected: l, onHoverChange: m, label: d } = r;
67
- return /* @__PURE__ */ e.createElement(q, {
67
+ return /* @__PURE__ */ e.createElement(k, {
68
68
  value: i
69
69
  }, /* @__PURE__ */ e.createElement(x, {
70
70
  className: ({ isHovered: c, isFocused: o }) => typeof a == "function" ? a({
@@ -83,11 +83,11 @@ const t = ({ children: a }) => {
83
83
  }, d) : null)));
84
84
  };
85
85
  b.Rating = F;
86
- t.Label = Q;
86
+ t.Label = Z;
87
87
  t.Ratings = b;
88
88
  t.Rating = F;
89
- t.Description = Z;
90
- t.Error = z;
89
+ t.Description = z;
90
+ t.Error = Q;
91
91
  const K = (a) => /* @__PURE__ */ e.createElement("svg", {
92
92
  viewBox: "0 0 32 32",
93
93
  width: 32,
@@ -103,7 +103,7 @@ const K = (a) => /* @__PURE__ */ e.createElement("svg", {
103
103
  rating: X,
104
104
  ratingSelected: Y,
105
105
  ratingHover: V
106
- }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
106
+ }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(D, {
107
107
  content: a,
108
108
  locale: n
109
109
  }), te = {
@@ -111,12 +111,12 @@ const K = (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: G,
114
+ const { t: a } = H(), n = j({
115
+ globalClasses: q,
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
121
  className: u(M, g.requiredMark)
122
122
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-BRc2PtqE.js";
2
+ import { R as e } from "./rating-input-field-rac-BYT2XqOK.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 { bn as a, bf as i, bx as T } from "./form-Bed4Kfz8.js";
2
+ import { bo as a, bg as i, by as T } from "./form-DHAKwnLt.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";
@@ -14,17 +14,17 @@ const O = ({ children: e }) => {
14
14
  }),
15
15
  renderDescription: () => null
16
16
  });
17
- }, f = "_toggleTruncate_5jt03_1", g = {
18
- toggleTruncate: f
17
+ }, g = "_toggleTruncate_5jt03_1", f = {
18
+ toggleTruncate: g
19
19
  }, p = ({ isTruncated: e, onClick: t }) => {
20
20
  const { t: n } = T(), o = n(e ? "field.rich-text.read-more-button.label" : "field.rich-text.read-less-button.label"), s = e ? r.TOGGLE_TRUNCATE_BUTTON_READ_MORE : r.TOGGLE_TRUNCATE_BUTTON_READ_LESS;
21
21
  return /* @__PURE__ */ c.createElement(d, {
22
22
  onPress: t,
23
- className: g.toggleTruncate,
23
+ className: f.toggleTruncate,
24
24
  "data-hook": s
25
25
  }, o);
26
26
  };
27
- function B(e, t) {
27
+ function y(e, t) {
28
28
  const [n, o] = u(!0);
29
29
  function s() {
30
30
  o((l) => !l);
@@ -38,12 +38,12 @@ function B(e, t) {
38
38
  toggleTruncate: s
39
39
  };
40
40
  }
41
- const C = "_richContent_1galb_1", D = {
41
+ const C = "_richContent_1galb_1", B = {
42
42
  richContent: C
43
43
  };
44
44
  export {
45
45
  O as R,
46
46
  p as T,
47
- D as s,
48
- B as u
47
+ B as s,
48
+ y as u
49
49
  };
@@ -1,13 +1,13 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { bn as i, aA as m, ai as u, a_ as R, b1 as T } from "./form-Bed4Kfz8.js";
4
- import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-Cv3ZmD00.js";
3
+ import { bo as m, aB as i, aj as u, a$ as R, b2 as T } from "./form-DHAKwnLt.js";
4
+ import { u as C, R as d, s as g, T as p } from "./rich-content-rac.module-Dp9Advo9.js";
5
5
  const h = {
6
6
  colorPalette: T(),
7
7
  customStyles: R()
8
8
  }, P = ({ truncate: t = !0 } = {}) => {
9
- const { content: a, maxShownParagraphs: s } = i(), { 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(m, {
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(i, {
11
11
  className: l(u, g.richContent),
12
12
  content: n,
13
13
  customTheme: h
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-BmWuIfA8.js";
2
+ import { R as t } from "./rich-text-field-rac-COEUwoXQ.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,17 +1,16 @@
1
1
  import t, { useRef as T, useMemo as _, useCallback as C, useEffect as b } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import E from "classnames";
4
- import { bj as P, bx as A, F as M, bn as y, bf as x, ap as V, R as H, $ as U, x as W, G as k, u as q } from "./form-Bed4Kfz8.js";
5
- import { u as B } from "./use-service-options-base-DXG60hA5.js";
6
- import { D as u } from "./dropdown-field-headless-C3OxMhLE.js";
7
- import { C as j } from "./chevron-down-icon-CcpVm6B-.js";
8
- import { E as G } from "./error-icon-hZxQ6DEy.js";
9
- import { H as Q } from "./custom-focus-class-_483Pkwp.js";
10
- import { s as a } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as Y } from "./use-dropdown-option-class-name-BEmvU-Gg.js";
12
- import { u as $ } from "./use-dropdown-trigger-class-name-qj9skLWZ.js";
13
- const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
14
- const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), i = T(!0), d = _(() => {
4
+ import { bk as P, by as A, F as y, bo as M, bg as H, aq as V, S as k, a0 as q, y as x, H as U, v as W } from "./form-DHAKwnLt.js";
5
+ import { u as B } from "./use-service-options-base-hqO9Ev38.js";
6
+ import { D as u } from "./dropdown-field-headless-7SCC-xOC.js";
7
+ import { C as Q } from "./chevron-down-icon-CcpVm6B-.js";
8
+ import { E as Y } from "./error-icon-hZxQ6DEy.js";
9
+ import { H as j } from "./custom-focus-class-_483Pkwp.js";
10
+ import { s as i } from "./field-rac.module-DfEb7pBp.js";
11
+ import { a as z, u as G } from "./use-dropdown-trigger-class-name-BWTT7ltv.js";
12
+ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
13
+ const { actions: o } = P(), { t: D } = A(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = T(!0), d = _(() => {
15
14
  var s;
16
15
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
16
  }, [
@@ -21,18 +20,18 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
21
20
  {
22
21
  value: c,
23
22
  label: c,
24
- id: z
23
+ id: J
25
24
  }
26
25
  ] : s, [
27
26
  n,
28
27
  c
29
- ]), { isLoading: f, options: l, isEmpty: h, shouldRender: I, setIsLoading: S, setOptions: R, setIsEmpty: g, processOptions: F } = B({
30
- fieldType: M.SERVICES_DROPDOWN,
28
+ ]), { isLoading: f, options: l, isEmpty: S, shouldRender: I, setIsLoading: h, setOptions: R, setIsEmpty: g, processOptions: F } = B({
29
+ fieldType: y.SERVICES_DROPDOWN,
31
30
  isEditor: e.isEditor,
32
31
  postProcessOptions: O
33
32
  }), L = C(async () => {
34
- if (i.current && (o != null && o.fetchServices) && d.length > 0) {
35
- i.current = !1, S(!0);
33
+ if (a.current && (o != null && o.fetchServices) && d.length > 0) {
34
+ a.current = !1, h(!0);
36
35
  let s;
37
36
  try {
38
37
  s = await o.fetchServices({
@@ -45,15 +44,15 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
45
44
  const m = F(s);
46
45
  g(!n && m.length === 0), R(m);
47
46
  } else
48
- i.current = !0;
49
- S(!1);
47
+ a.current = !0;
48
+ h(!1);
50
49
  }
51
50
  }, [
52
51
  o,
53
52
  d,
54
53
  F,
55
54
  n,
56
- S,
55
+ h,
57
56
  R,
58
57
  g
59
58
  ]);
@@ -68,14 +67,14 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
68
67
  g,
69
68
  e.isEditor
70
69
  ]);
71
- const N = C(() => {
72
- e.onFocus && e.onFocus(), i.current && L();
70
+ const v = C(() => {
71
+ e.onFocus && e.onFocus(), a.current && L();
73
72
  }, [
74
73
  L,
75
74
  e.onFocus
76
- ]), v = C(
75
+ ]), N = C(
77
76
  (s) => {
78
- e.onChange && e.onChange(s), i.current = !0;
77
+ e.onChange && e.onChange(s), a.current = !0;
79
78
  },
80
79
  // eslint-disable-next-line react-hooks/exhaustive-deps
81
80
  [
@@ -85,31 +84,31 @@ const z = "00000000-0000-0000-0000-000000000000", J = (e) => {
85
84
  return {
86
85
  isLoading: f,
87
86
  options: l,
88
- isEmpty: h,
89
- onFocus: N,
90
- onChange: v,
87
+ isEmpty: S,
88
+ onFocus: v,
89
+ onChange: N,
91
90
  shouldRender: I
92
91
  };
93
92
  }, r = ({ children: e }) => {
94
- const o = y(), { addOther: D } = o, n = x(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: i, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = J({
93
+ const o = M(), { addOther: D } = o, n = H(), p = o.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: d, onFocus: O, onChange: f, shouldRender: l } = K({
95
94
  ...o,
96
95
  isEditor: p
97
- }), h = _(() => ({
96
+ }), S = _(() => ({
98
97
  ...o,
99
- options: c ? [] : i,
98
+ options: c ? [] : a,
100
99
  isLoading: c,
101
100
  onFocus: O,
102
101
  onChange: f
103
102
  }), [
104
103
  o,
105
- i,
104
+ a,
106
105
  c,
107
106
  O,
108
107
  f
109
108
  ]);
110
109
  return !p && d && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
111
110
  value: {
112
- v2: h
111
+ v2: S
113
112
  }
114
113
  }, /* @__PURE__ */ t.createElement(u, null, e));
115
114
  };
@@ -118,29 +117,29 @@ r.Trigger = u.Trigger;
118
117
  r.Options = u.Options;
119
118
  r.Description = u.Description;
120
119
  r.Error = u.Error;
121
- const K = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
120
+ const X = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(w, {
122
121
  content: e,
123
122
  locale: o
124
- }), X = () => {
125
- const e = $(a.dropdownTrigger), o = Y(Q);
123
+ }), Z = () => {
124
+ const e = z(i.dropdownTrigger), o = G(j);
126
125
  return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.Label, {
127
- className: E(H, a.label)
126
+ className: E(k, i.label)
128
127
  }, /* @__PURE__ */ t.createElement(r.Label.Required, {
129
- className: E(U, a.requiredMark)
128
+ className: E(q, i.requiredMark)
130
129
  })), /* @__PURE__ */ t.createElement(r.Trigger, {
131
130
  className: e
132
- }, /* @__PURE__ */ t.createElement(j, {
133
- className: a.dropdownIcon
131
+ }, /* @__PURE__ */ t.createElement(Q, {
132
+ className: i.dropdownIcon
134
133
  })), /* @__PURE__ */ t.createElement(r.Options, {
135
- className: E(W, a.selectPopover, a.dropdownPopover)
134
+ className: E(x, i.selectPopover, i.dropdownPopover)
136
135
  }, /* @__PURE__ */ t.createElement(r.Options.Option, {
137
136
  className: o
138
137
  })), /* @__PURE__ */ t.createElement(r.Error, {
139
- className: E(k, a.error)
140
- }, /* @__PURE__ */ t.createElement(G, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
141
- className: E(q, a.description)
142
- }, K));
143
- }, ue = () => /* @__PURE__ */ t.createElement(X, null);
138
+ className: E(U, i.error)
139
+ }, /* @__PURE__ */ t.createElement(Y, null), /* @__PURE__ */ t.createElement(r.Error.Text, null)), /* @__PURE__ */ t.createElement(r.Description, {
140
+ className: E(W, i.description)
141
+ }, X));
142
+ }, me = () => /* @__PURE__ */ t.createElement(Z, null);
144
143
  export {
145
- ue as ServiceDropdownRAC
144
+ me as ServiceDropdownRAC
146
145
  };
@@ -1,19 +1,19 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
- import { RicosViewer as R } from "@wix/ricos/viewer";
2
+ import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as S, bn as d, ap as D, R as F, $ as N, o as f, q as h, G as b, u as M, p as A } from "./form-Bed4Kfz8.js";
5
- import { u as v } from "./use-service-options-base-DXG60hA5.js";
6
- import { C as i } from "./checkbox-group-field-headless-C809nB0Q.js";
4
+ import { F as R, bo as d, aq as D, S as F, a0 as N, o as f, q as h, H as b, v as M, p as A } from "./form-DHAKwnLt.js";
5
+ import { u as v } from "./use-service-options-base-hqO9Ev38.js";
6
+ import { C as i } from "./checkbox-group-field-headless-BxBaMg29.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-oiKCauK-.js";
12
- import { u as k } from "./use-text-input-class-name-BhQFcXYH.js";
11
+ import { u as T } from "./use-element-state-class-name-CUZuhFvZ.js";
12
+ import { u as k } from "./use-text-input-class-name-wp9dzpEy.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({
16
- fieldType: S.SERVICES_MULTI_CHOICE,
16
+ fieldType: R.SERVICES_MULTI_CHOICE,
17
17
  isEditor: s.isEditor
18
18
  }), u = (C = s.options) == null ? void 0 : C.every((O) => O.label && O.id);
19
19
  return I(() => {
@@ -53,10 +53,10 @@ t.Label = i.Label;
53
53
  t.Options = i.Options;
54
54
  t.Description = i.Description;
55
55
  t.Error = i.Error;
56
- const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(R, {
56
+ const B = ({ content: s, locale: o }) => /* @__PURE__ */ e.createElement(S, {
57
57
  content: s,
58
58
  locale: o
59
- }), G = () => {
59
+ }), H = () => {
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(R, {
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
- }, z = () => /* @__PURE__ */ e.createElement(G, null);
83
+ }, J = () => /* @__PURE__ */ e.createElement(H, null);
84
84
  export {
85
- z as ServicesMultiChoiceRAC
85
+ J as ServicesMultiChoiceRAC
86
86
  };