@wix/form-elements 1.105.0 → 1.107.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-DaBg4fM3.js → appointment-rac-D2F4vgf1.js} +5 -5
  2. package/dist/component/{bookings-address-rac-CkCIr0yY.js → bookings-address-rac-_5S8J8_i.js} +1 -1
  3. package/dist/component/{bookings-email-rac--o2G6bDi.js → bookings-email-rac-6vmDR9nS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-KilnnzGd.js → bookings-first-name-rac-DtTJ4T2K.js} +1 -1
  5. package/dist/component/{bookings-header-rac-D9PwyQVM.js → bookings-header-rac-B3dsEwzR.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-qWHHoFsL.js → bookings-last-name-rac-B3idkbi8.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CA9lwDip.js → bookings-login-bar-rac-CrRBcQwT.js} +4 -4
  8. package/dist/component/{bookings-phone-rac-CJwbY3yf.js → bookings-phone-rac-BE0yWNnj.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-B-7cedEB.js → bookings-rich-text-rac-CYo1l0-6.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-D5YjimAI.js → checkbox-field-rac-boTtXVEt.js} +16 -20
  11. package/dist/component/{checkbox-group-field-headless-BJl8C2Lz.js → checkbox-group-field-headless-DnkUvDm8.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-CLDKYOsh.js → checkbox-group-field-rac-DrDTgHMg.js} +11 -11
  13. package/dist/component/{checkbox-group-rac-DfOsQWr7.js → checkbox-group-rac-v3ozUBpo.js} +1 -1
  14. package/dist/component/{checkbox-rac-DMDIZxxN.js → checkbox-rac-YSLE-RnG.js} +1 -1
  15. package/dist/component/{contacts-address-rac-CrpSPX3x.js → contacts-address-rac-C653yaHZ.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-B3vrz3B5.js → contacts-birthdate-rac-BeAQ6shx.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Nd4-07pv.js → contacts-company-rac-BglKOoTG.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DlKJXGue.js → contacts-email-rac-D6m7ynfc.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CgfaCG0O.js → contacts-first-name-rac-Dgxn0tUJ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-DmSqTPzC.js → contacts-last-name-rac-1UyIuRKH.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-C9X_5axq.js → contacts-phone-rac-BQ77BlW4.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DeJrqxtm.js → contacts-position-rac-BUDUv7lv.js} +1 -1
  23. package/dist/component/contacts-subscribe-rac-DdtA0qKW.js +6 -0
  24. package/dist/component/{contacts-tax-id-rac-6pMwtJyC.js → contacts-tax-id-rac-WUaKcNl0.js} +1 -1
  25. package/dist/component/{date-availability-DfL_xDci.js → date-availability-XjBFq8jt.js} +1 -1
  26. package/dist/component/{date-input-field-rac-DvlY0Ffu.js → date-input-field-rac-aY2zuuKs.js} +13 -13
  27. package/dist/component/{date-input-rac-Dr_MtbFO.js → date-input-rac-DRiP2_97.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-D42hJF0j.js → date-picker-field-rac-Bzl-d3Uj.js} +27 -27
  29. package/dist/component/{date-picker-rac-CtoqWMPa.js → date-picker-rac-DHHUh8vn.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-C1rf0_aD.js → date-time-input-field-rac-DP_StuLr.js} +26 -26
  31. package/dist/component/{date-time-input-rac-gFwBZVcJ.js → date-time-input-rac-B11KIxsf.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B0dh55yz.js → dext-checkbox-group-rac-BHZBqyWv.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-RQ7hpkFn.js → dext-checkbox-rac-BIlAqEvV.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-sJEfD5E6.js → dext-date-picker-rac-CHBXNrZi.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BxPE1oVN.js → dext-date-time-input-rac-BYtliKry.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-BimIan_Z.js → dext-dropdown-rac-C2VPSFV5.js} +1 -1
  37. package/dist/component/{dext-email-rac-CjrC85Va.js → dext-email-rac-Fnb0Ggcs.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-CkMRmcJQ.js → dext-number-input-rac-DopfSyFi.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DO3qV3WL.js → dext-phone-rac-Rn4i_2rc.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-CUaqRQSf.js → dext-radio-group-rac-bNaskJpK.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CIRU2af7.js → dext-rating-input-rac-DL6ZZd7d.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DHqXtqOo.js → dext-tags-rac-TsUPoImO.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-yBONPzSt.js → dext-text-area-rac-BIuY7LTd.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CdhAUC2i.js → dext-text-input-rac-CSYPW0Qi.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B4IQEsp2.js → dext-url-input-rac-_g0lqGfW.js} +1 -1
  46. package/dist/component/{donation-rac-D-rWK7OY.js → donation-rac-BYKFtsyR.js} +55 -55
  47. package/dist/component/{dropdown-field-headless-CeDAK-PU.js → dropdown-field-headless-CBaqlNZi.js} +4 -4
  48. package/dist/component/{dropdown-field-rac-BzqUmKJ1.js → dropdown-field-rac-CCAGSMm3.js} +5 -5
  49. package/dist/component/{dropdown-rac-CHO-8WoH.js → dropdown-rac-C_EqUsZ1.js} +1 -1
  50. package/dist/component/{ecom-address-rac-BZVqOncl.js → ecom-address-rac-Bw9eH0iF.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-BpILYYtb.js → ecom-subscription-checkbox-rac-B5PVOO2a.js} +10 -17
  52. package/dist/component/{email-input-field-rac-Cb6ECUnT.js → email-input-field-rac-B2kqQ6yo.js} +12 -12
  53. package/dist/component/{events-repeater-rac-BaYgjHjJ.js → events-repeater-rac--4OnUxWE.js} +53 -53
  54. package/dist/component/{events-rsvp-rac-CK0hpQKD.js → events-rsvp-rac-CczCoo3T.js} +12 -12
  55. package/dist/component/{field-error-headless-CN2-F78X.js → field-error-headless-D3-1L5sf.js} +1 -1
  56. package/dist/component/{field-label-headless-Ca6NcX2l.js → field-label-headless-Du4ckIVy.js} +1 -1
  57. package/dist/component/{file-upload-rac-C0DqDLp2.js → file-upload-rac-DbdkUbWM.js} +79 -79
  58. package/dist/component/{fixed-payment-rac-C5qNAT_7.js → fixed-payment-rac-f9-01iDN.js} +7 -7
  59. package/dist/component/{form-D1xJH87b.js → form-DQauhsho.js} +69 -69
  60. package/dist/component/form-element-classes-bLFmhsKw.js +137 -0
  61. package/dist/component/form.js +1 -1
  62. package/dist/component/{header-field-rac-BN-Ib7VY.js → header-field-rac-DamDk5BR.js} +3 -3
  63. package/dist/component/{header-rac-CE0NjfoF.js → header-rac-CR9T3Pnu.js} +1 -1
  64. package/dist/component/{image-choice-rac-D6dIXR_x.js → image-choice-rac-DJ_8v467.js} +12 -12
  65. package/dist/component/{index-CcsZgBFf.js → index-BB7d_9Dv.js} +4 -4
  66. package/dist/component/{index-DOd4eW8z.js → index-CcUTIUWM.js} +2 -2
  67. package/dist/component/{isObjectLike-DfUDKPeo.js → isObjectLike-xvPa_08X.js} +1 -1
  68. package/dist/component/{multiline-address-field-rac-jJ5HMakk.js → multiline-address-field-rac-CyaFOloE.js} +79 -79
  69. package/dist/component/{multiline-address-rac-GQF9HaNq.js → multiline-address-rac-CaHGUN_f.js} +1 -1
  70. package/dist/component/{number-input-field-rac-DRgq3Ll0.js → number-input-field-rac-BuYUzDWV.js} +14 -14
  71. package/dist/component/{number-input-rac-C2VoBZeq.js → number-input-rac-DMKX6nhk.js} +1 -1
  72. package/dist/component/{password-rac-DP8d_92z.js → password-rac-0RUXPAn6.js} +37 -37
  73. package/dist/component/{payment-input-rac-BycHF-zC.js → payment-input-rac-CHSZ3-Lt.js} +16 -16
  74. package/dist/component/{phone-input-field-rac-C3_-Dc35.js → phone-input-field-rac-JmIFcP1e.js} +28 -28
  75. package/dist/component/{phone-rac-DAxScWRl.js → phone-rac-BLRnAPXP.js} +1 -1
  76. package/dist/component/{product-list-rac-Bxdu4NFP.js → product-list-rac-BkF5tDwt.js} +9 -9
  77. package/dist/component/quiz-radio-group-rac-32cCMTUS.js +6 -0
  78. package/dist/component/{radio-button-module-classes-D71u96Y9.js → radio-button-module-classes-IOulhuSH.js} +3 -3
  79. package/dist/component/radio-group-field-rac-CJwku6e0.js +46 -0
  80. package/dist/component/{radio-group-rac-DqdjCYmd.js → radio-group-rac-BiW-9Abj.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-C4Ztlh1u.js → rating-input-field-rac-B9cwaROK.js} +29 -29
  82. package/dist/component/{rating-input-rac-B4lF_LX7.js → rating-input-rac-BpwlNvzQ.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-CmW7FwmQ.js → rich-content-rac.module-B1uyPmtK.js} +1 -1
  84. package/dist/component/{rich-text-field-rac-MwKpKbvj.js → rich-text-field-rac-C_qE7Ykg.js} +3 -3
  85. package/dist/component/{rich-text-rac-DcMBqEFb.js → rich-text-rac-VfeZxS27.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-CZWVFnR8.js → service-dropdown-rac-BCfs8IhW.js} +17 -17
  87. package/dist/component/{services-multi-choice-rac-DvHcWQHS.js → services-multi-choice-rac-CCqdF_7P.js} +6 -6
  88. package/dist/component/{signature-rac-CMTAWkaY.js → signature-rac-DOyMo3u0.js} +72 -72
  89. package/dist/component/{submit-button-rac-HnfWQ8wg.js → submit-button-rac-C2uA5DeE.js} +11 -11
  90. package/dist/component/{tags-field-rac-BuqOeG7-.js → tags-field-rac-C_uIw2by.js} +35 -35
  91. package/dist/component/{tags-rac-FbHwPPKs.js → tags-rac-1pQ-fpe_.js} +1 -1
  92. package/dist/component/{text-area-field-rac-Bq224M1o.js → text-area-field-rac-DqlOkm7e.js} +22 -22
  93. package/dist/component/{text-area-rac-COcGlAYk.js → text-area-rac-DPdkrFcH.js} +1 -1
  94. package/dist/component/{text-input-field-rac-CTS4jFhC.js → text-input-field-rac-CmXm6r1w.js} +5 -5
  95. package/dist/component/{text-input-headless-QVLKSgJE.js → text-input-headless-DD__2DFf.js} +3 -3
  96. package/dist/component/{text-input-rac-BCCkVVG9.js → text-input-rac-DRHyQEH7.js} +1 -1
  97. package/dist/component/{time-input-rac-7n8d5ppJ.js → time-input-rac-BJPIymQY.js} +21 -21
  98. package/dist/component/{url-input-field-rac-ChPfhq6I.js → url-input-field-rac-CFDYkZ6I.js} +14 -14
  99. package/dist/component/{url-input-rac-cFZ8HC3U.js → url-input-rac-C0ChQUzq.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-Cf2B9xAE.js → use-dropdown-option-class-name-3L5ZmNLK.js} +2 -2
  101. package/dist/component/{use-element-state-class-name-DF2VZawA.js → use-element-state-class-name-BatTc2bw.js} +1 -1
  102. package/dist/component/{use-is-forced-open-dropdown-B_knxuKJ.js → use-is-forced-open-dropdown-B0jiPTmS.js} +1 -1
  103. package/dist/component/{use-service-options-base-Clx3S0du.js → use-service-options-base-oeE7xszw.js} +1 -1
  104. package/dist/component/{use-text-input-class-name-MbmOF6tH.js → use-text-input-class-name-LQ5S-NLh.js} +3 -3
  105. package/package.json +2 -2
  106. package/dist/component/contacts-subscribe-rac-Dv-QNZZc.js +0 -13
  107. package/dist/component/form-element-classes-BtKlobUX.js +0 -192
  108. package/dist/component/quiz-radio-group-rac-mAn0MuPW.js +0 -13
  109. package/dist/component/radio-group-field-rac-eij4o0_R.js +0 -50
@@ -1,25 +1,25 @@
1
1
  import { RicosViewer as y } from "@wix/ricos/viewer";
2
2
  import m from "classnames";
3
3
  import e, { useCallback as N, useState as O, useRef as A } from "react";
4
- import { ak as b, ah as v, au as T } from "./form-D1xJH87b.js";
5
- import { RadioGroup as H, RadioField as M, RadioButton as w } from "react-aria-components";
4
+ import { ak as v, ah as b, au as H } from "./form-DQauhsho.js";
5
+ import { RadioGroup as T, RadioField as M, RadioButton as w } from "react-aria-components";
6
6
  import { f as u, a as B } from "./find-child-C60k4CxG.js";
7
- import { D as P, E as k } from "./field-error-headless-CN2-F78X.js";
8
- import { L as q } from "./field-label-headless-Ca6NcX2l.js";
7
+ import { D as P, E as k } from "./field-error-headless-D3-1L5sf.js";
8
+ import { L as q } from "./field-label-headless-Du4ckIVy.js";
9
9
  import { E as G } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as g } from "./field-rac.module-B4l_0KRU.js";
11
- import { C as x, S as Q, Q as U, r as j, j as z, R as Z } from "./form-element-classes-BtKlobUX.js";
12
- import { u as J } from "./use-element-state-class-name-DF2VZawA.js";
11
+ import { v as x, J as U, H as j, o as z, j as J, I as Q } from "./form-element-classes-bLFmhsKw.js";
12
+ import { u as Z } from "./use-element-state-class-name-BatTc2bw.js";
13
13
  const t = ({ children: a }) => {
14
- const { id: r, value: n, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = b(), { labelId: _ } = v(), L = N((D) => l(Number(D)), [
14
+ const { id: n, value: r, onChange: l, disabled: o, readOnly: d, required: c, hasError: i, onBlur: E, onFocus: C, FieldLayout: R } = v(), { labelId: _ } = b(), L = N((D) => l(Number(D)), [
15
15
  l
16
16
  ]), f = u(a, t.Label), s = u(a, t.Ratings), S = u(a, t.Description), h = u(a, t.Error);
17
17
  return /* @__PURE__ */ e.createElement(R, {
18
- fieldId: r,
18
+ fieldId: n,
19
19
  renderLabel: () => f,
20
- renderInput: () => /* @__PURE__ */ e.createElement(H, {
20
+ renderInput: () => /* @__PURE__ */ e.createElement(T, {
21
21
  "aria-labelledby": _,
22
- value: n ? String(n) : void 0,
22
+ value: r ? String(r) : void 0,
23
23
  onChange: L,
24
24
  isDisabled: o,
25
25
  isReadOnly: d,
@@ -31,8 +31,8 @@ const t = ({ children: a }) => {
31
31
  }, s),
32
32
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, h, S)
33
33
  });
34
- }, I = ({ children: a, className: r, getReactionLabel: n }) => {
35
- const { value: l, readOnly: o, hasError: d } = b(), { inputId: c, ariaDescribedBy: i } = v(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
34
+ }, I = ({ children: a, className: n, getReactionLabel: r }) => {
35
+ const { value: l, readOnly: o, hasError: d } = v(), { inputId: c, ariaDescribedBy: i } = b(), [E, C] = O(), R = A(null), _ = u(a, I.Rating), L = [
36
36
  "1",
37
37
  "2",
38
38
  "3",
@@ -43,7 +43,7 @@ const t = ({ children: a }) => {
43
43
  ref: R,
44
44
  id: c,
45
45
  "aria-describedby": i,
46
- className: r,
46
+ className: n,
47
47
  "data-invalid": d,
48
48
  "data-readonly": o
49
49
  }, L.map((s) => B(_, {
@@ -51,7 +51,7 @@ const t = ({ children: a }) => {
51
51
  value: s,
52
52
  isSelected: f(s),
53
53
  onHoverChange: (S) => C(S ? s : void 0),
54
- label: n == null ? void 0 : n(Number(s))
54
+ label: r == null ? void 0 : r(Number(s))
55
55
  })));
56
56
  }, K = {
57
57
  border: 0,
@@ -63,8 +63,8 @@ const t = ({ children: a }) => {
63
63
  position: "absolute",
64
64
  width: 1,
65
65
  whiteSpace: "nowrap"
66
- }, F = ({ className: a, children: r, ...n }) => {
67
- const { value: l, isSelected: o, onHoverChange: d, label: c } = n;
66
+ }, F = ({ className: a, children: n, ...r }) => {
67
+ const { value: l, isSelected: o, onHoverChange: d, label: c } = r;
68
68
  return /* @__PURE__ */ e.createElement(M, {
69
69
  value: l
70
70
  }, /* @__PURE__ */ e.createElement(w, {
@@ -74,10 +74,10 @@ const t = ({ children: a }) => {
74
74
  }) : a ?? "",
75
75
  "data-active": o || void 0,
76
76
  onHoverChange: d
77
- }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof r == "function" ? r({
77
+ }, ({ isHovered: i }) => /* @__PURE__ */ e.createElement(e.Fragment, null, typeof n == "function" ? n({
78
78
  isSelected: o,
79
79
  isHovered: i
80
- }) : r, c ? /* @__PURE__ */ e.createElement("span", {
80
+ }) : n, c ? /* @__PURE__ */ e.createElement("span", {
81
81
  style: K
82
82
  }, c) : null)));
83
83
  };
@@ -102,33 +102,33 @@ const W = (a) => /* @__PURE__ */ e.createElement("svg", {
102
102
  rating: Y,
103
103
  ratingSelected: $,
104
104
  ratingHover: V
105
- }, ee = ({ content: a, locale: r }) => /* @__PURE__ */ e.createElement(y, {
105
+ }, ee = ({ content: a, locale: n }) => /* @__PURE__ */ e.createElement(y, {
106
106
  content: a,
107
- locale: r
107
+ locale: n
108
108
  }), te = {
109
109
  base: p.rating,
110
110
  selected: p.ratingSelected,
111
111
  hover: p.ratingHover
112
112
  }, ge = () => {
113
- const { t: a } = T(), r = J({
114
- globalClasses: Z,
113
+ const { t: a } = H(), n = Z({
114
+ globalClasses: Q,
115
115
  moduleClasses: te
116
116
  });
117
117
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
118
118
  className: m(x, g.label)
119
119
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
120
- className: m(Q, g.requiredMark)
120
+ className: m(U, g.requiredMark)
121
121
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
122
- className: m(U, p.ratings),
123
- getReactionLabel: (n) => a("rating-input.a11y.reaction-label", {
124
- count: n
122
+ className: m(j, p.ratings),
123
+ getReactionLabel: (r) => a("rating-input.a11y.reaction-label", {
124
+ count: r
125
125
  })
126
126
  }, /* @__PURE__ */ e.createElement(t.Rating, {
127
- className: r
127
+ className: n
128
128
  }, /* @__PURE__ */ e.createElement(W, null))), /* @__PURE__ */ e.createElement(t.Error, {
129
- className: m(j, g.error)
129
+ className: m(z, g.error)
130
130
  }, /* @__PURE__ */ e.createElement(G, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
131
- className: m(z, g.description)
131
+ className: m(J, g.description)
132
132
  }, ee));
133
133
  };
134
134
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-C4Ztlh1u.js";
2
+ import { R as e } from "./rating-input-field-rac-B9cwaROK.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC
@@ -1,5 +1,5 @@
1
1
  import c, { useState as l } from "react";
2
- import { ak as a, ac as i, au as T } from "./form-D1xJH87b.js";
2
+ import { ak as a, ac as i, au as T } from "./form-DQauhsho.js";
3
3
  import { Button as d } from "react-aria-components";
4
4
  import { D as r } from "./data-hooks-Dkw1pbRj.js";
5
5
  import { truncateRichContent as _ } from "@wix/ricos/content";
@@ -1,8 +1,8 @@
1
1
  import l from "classnames";
2
2
  import e from "react";
3
- import { ak as m, L as i, X as u, _ as R } from "./form-D1xJH87b.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-CmW7FwmQ.js";
5
- import { a6 as g } from "./form-element-classes-BtKlobUX.js";
3
+ import { ak as m, L as i, X as u, _ as R } from "./form-DQauhsho.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-B1uyPmtK.js";
5
+ import { T as g } from "./form-element-classes-bLFmhsKw.js";
6
6
  const h = {
7
7
  colorPalette: R(),
8
8
  customStyles: u()
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { R as t } from "./rich-text-field-rac-MwKpKbvj.js";
2
+ import { R as t } from "./rich-text-field-rac-C_qE7Ykg.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC
@@ -1,17 +1,17 @@
1
1
  import t, { useRef as P, useMemo as L, useCallback as h, useEffect as T } from "react";
2
2
  import { RicosViewer as w } from "@wix/ricos/viewer";
3
3
  import u from "classnames";
4
- import { ag as A, au as b, F as M, ak as y, ac as V, h as k } from "./form-D1xJH87b.js";
5
- import { u as x } from "./use-service-options-base-Clx3S0du.js";
6
- import { D as d } from "./dropdown-field-headless-CeDAK-PU.js";
4
+ import { ag as A, au as b, F as M, ak as y, ac as x, h as V } from "./form-DQauhsho.js";
5
+ import { u as k } from "./use-service-options-base-oeE7xszw.js";
6
+ import { D as d } from "./dropdown-field-headless-CBaqlNZi.js";
7
7
  import { C as H } from "./chevron-down-icon-CcpVm6B-.js";
8
8
  import { E as U } from "./error-icon-hZxQ6DEy.js";
9
9
  import { H as W } from "./custom-focus-class-_483Pkwp.js";
10
10
  import { s as i } from "./field-rac.module-B4l_0KRU.js";
11
- import { C as q, S as B, n as G, E as j, r as Q, j as Y } from "./form-element-classes-BtKlobUX.js";
12
- import { u as z } from "./use-dropdown-option-class-name-Cf2B9xAE.js";
13
- const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
- const { actions: r } = A(), { t: C } = b(), { addOther: n, addOtherLabel: p } = e, c = p || C("add-other.default-other-option-label"), a = P(!0), E = L(() => {
11
+ import { v as q, J as B, n as G, x as j, o as J, j as Q } from "./form-element-classes-bLFmhsKw.js";
12
+ import { u as Y } from "./use-dropdown-option-class-name-3L5ZmNLK.js";
13
+ const z = "00000000-0000-0000-0000-000000000000", K = (e) => {
14
+ const { actions: r } = A(), { t: D } = b(), { addOther: n, addOtherLabel: p } = e, c = p || D("add-other.default-other-option-label"), a = P(!0), E = L(() => {
15
15
  var s;
16
16
  return ((s = e.options) == null ? void 0 : s.map((m) => m.id ?? "")) ?? [];
17
17
  }, [
@@ -21,12 +21,12 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
21
21
  {
22
22
  value: c,
23
23
  label: c,
24
- id: J
24
+ id: z
25
25
  }
26
26
  ] : s, [
27
27
  n,
28
28
  c
29
- ]), { isLoading: f, options: l, isEmpty: D, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = x({
29
+ ]), { isLoading: f, options: l, isEmpty: C, shouldRender: I, setIsLoading: R, setOptions: _, setIsEmpty: S, processOptions: g } = k({
30
30
  fieldType: M.SERVICES_DROPDOWN,
31
31
  isEditor: e.isEditor,
32
32
  postProcessOptions: O
@@ -85,16 +85,16 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
85
85
  return {
86
86
  isLoading: f,
87
87
  options: l,
88
- isEmpty: D,
88
+ isEmpty: C,
89
89
  onFocus: v,
90
90
  onChange: N,
91
91
  shouldRender: I
92
92
  };
93
93
  }, o = ({ children: e }) => {
94
- const r = y(), { addOther: C } = r, n = V(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
94
+ const r = y(), { addOther: D } = r, n = x(), p = r.isEditor || n.isEditor || n.isComposer, { isLoading: c, options: a, isEmpty: E, onFocus: O, onChange: f, shouldRender: l } = K({
95
95
  ...r,
96
96
  isEditor: p
97
- }), D = L(() => ({
97
+ }), C = L(() => ({
98
98
  ...r,
99
99
  options: c ? [] : a,
100
100
  isLoading: c,
@@ -107,9 +107,9 @@ const J = "00000000-0000-0000-0000-000000000000", K = (e) => {
107
107
  O,
108
108
  f
109
109
  ]);
110
- return !p && E && !C || !l ? null : /* @__PURE__ */ t.createElement(k.Provider, {
110
+ return !p && E && !D || !l ? null : /* @__PURE__ */ t.createElement(V.Provider, {
111
111
  value: {
112
- v2: D
112
+ v2: C
113
113
  }
114
114
  }, /* @__PURE__ */ t.createElement(d, null, e));
115
115
  };
@@ -122,7 +122,7 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
122
122
  content: e,
123
123
  locale: r
124
124
  }), Z = () => {
125
- const e = z(W);
125
+ const e = Y(W);
126
126
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
127
127
  className: u(q, i.label)
128
128
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
@@ -136,9 +136,9 @@ const X = ({ content: e, locale: r }) => /* @__PURE__ */ t.createElement(w, {
136
136
  }, /* @__PURE__ */ t.createElement(o.Options.Option, {
137
137
  className: e
138
138
  })), /* @__PURE__ */ t.createElement(o.Error, {
139
- className: u(Q, i.error)
139
+ className: u(J, i.error)
140
140
  }, /* @__PURE__ */ t.createElement(U, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
141
- className: u(Y, i.description)
141
+ className: u(Q, i.description)
142
142
  }, X));
143
143
  }, ue = () => /* @__PURE__ */ t.createElement(Z, null);
144
144
  export {
@@ -1,16 +1,16 @@
1
1
  import e, { useEffect as I, useMemo as L } from "react";
2
2
  import { RicosViewer as S } from "@wix/ricos/viewer";
3
3
  import a from "classnames";
4
- import { F as R, ak as d, h as D } from "./form-D1xJH87b.js";
5
- import { u as N } from "./use-service-options-base-Clx3S0du.js";
6
- import { C as n } from "./checkbox-group-field-headless-BJl8C2Lz.js";
4
+ import { F as R, ak as d, h as D } from "./form-DQauhsho.js";
5
+ import { u as N } from "./use-service-options-base-oeE7xszw.js";
6
+ import { C as n } from "./checkbox-group-field-headless-DnkUvDm8.js";
7
7
  import { E as f } from "./error-icon-hZxQ6DEy.js";
8
8
  import { C as F } from "./checkbox-indicator-module-classes-BpeSpGsW.js";
9
9
  import { s as i } from "./field-rac.module-B4l_0KRU.js";
10
- import { C as h, S as b, c as M, e as A, r as v, j as x, d as P } from "./form-element-classes-BtKlobUX.js";
10
+ import { v as h, J as b, c as M, e as A, o as v, j as x, d as P } from "./form-element-classes-bLFmhsKw.js";
11
11
  import { o as p } from "./options-rac.module-CTDdATiz.js";
12
- import { u as T } from "./use-element-state-class-name-DF2VZawA.js";
13
- import { u as k } from "./use-text-input-class-name-MbmOF6tH.js";
12
+ import { u as T } from "./use-element-state-class-name-BatTc2bw.js";
13
+ import { u as k } from "./use-text-input-class-name-LQ5S-NLh.js";
14
14
  const y = (s) => {
15
15
  var O;
16
16
  const { isLoading: o, options: r, isEmpty: l, shouldRender: E, setOptions: c, setIsEmpty: m, setHasInitialDataLoaded: u } = N({