@wix/form-elements 1.146.0 → 1.148.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 (118) hide show
  1. package/dist/component/{appointment-rac-scUix9QX.js → appointment-rac-BNqXl3dq.js} +168 -164
  2. package/dist/component/{bookings-address-rac-CKemkJOO.js → bookings-address-rac-DzLf588z.js} +1 -1
  3. package/dist/component/{bookings-email-rac-CDqdhPAB.js → bookings-email-rac-BCNWH7ss.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DEy_7Hjb.js → bookings-first-name-rac-D36aHUOJ.js} +1 -1
  5. package/dist/component/{bookings-header-rac-Bl4xy9lB.js → bookings-header-rac-CNr2y2ES.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CsL9xQ1W.js → bookings-last-name-rac-yHE6ZIxr.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DkHYQ4No.js → bookings-login-bar-rac-C3weOc1i.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-BoBiFwbV.js → bookings-phone-rac-CIo_ApRf.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-DZZnPKWA.js → bookings-rich-text-rac-rgKnvt57.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-UgLmJxB-.js → checkbox-field-rac-CMaVxLNe.js} +9 -7
  11. package/dist/component/{checkbox-group-field-headless-C809nB0Q.js → checkbox-group-field-headless-XPtqS8Km.js} +68 -68
  12. package/dist/component/{checkbox-group-field-rac-u4i4wG21.js → checkbox-group-field-rac-C_58XfQt.js} +9 -9
  13. package/dist/component/{checkbox-group-rac-DBAQhSo3.js → checkbox-group-rac-FQrWViSh.js} +1 -1
  14. package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
  15. package/dist/component/{checkbox-rac-FDQVsI5-.js → checkbox-rac-C5Lj2b1N.js} +1 -1
  16. package/dist/component/{contacts-address-rac-DnArylPa.js → contacts-address-rac-OhpLzD0X.js} +1 -1
  17. package/dist/component/{contacts-birthdate-rac-C19jhGEO.js → contacts-birthdate-rac-Dnqq84ct.js} +1 -1
  18. package/dist/component/{contacts-company-rac-Dxs0hs_i.js → contacts-company-rac-DMnTF55t.js} +1 -1
  19. package/dist/component/{contacts-email-rac-D-H43L8r.js → contacts-email-rac-DmZhScW2.js} +1 -1
  20. package/dist/component/{contacts-first-name-rac-DwV5NESk.js → contacts-first-name-rac-B6A4fuzK.js} +1 -1
  21. package/dist/component/{contacts-last-name-rac-C5v2xurf.js → contacts-last-name-rac-DVz97lew.js} +1 -1
  22. package/dist/component/{contacts-phone-rac-D9a5x-xl.js → contacts-phone-rac-DV8aO0uS.js} +1 -1
  23. package/dist/component/{contacts-position-rac-DfsgOv-k.js → contacts-position-rac-BP_yBIE4.js} +1 -1
  24. package/dist/component/{contacts-subscribe-rac-B-Hho0Kb.js → contacts-subscribe-rac-wmTprtLf.js} +1 -1
  25. package/dist/component/{contacts-tax-id-rac-q6TQkB4b.js → contacts-tax-id-rac-CUEPBQye.js} +1 -1
  26. package/dist/component/{date-availability-CMDvf5VU.js → date-availability-BK_0gLRv.js} +1 -1
  27. package/dist/component/{date-input-field-rac-C1WLUct3.js → date-input-field-rac-BfWPvRnd.js} +84 -78
  28. package/dist/component/{date-input-rac-cNQ-nr4D.js → date-input-rac-B7vAMRBX.js} +1 -1
  29. package/dist/component/{date-picker-field-rac-mx11z-MO.js → date-picker-field-rac-CpDY4EkU.js} +111 -105
  30. package/dist/component/{date-picker-rac-DeTz17zC.js → date-picker-rac-BCswaZB1.js} +1 -1
  31. package/dist/component/{date-time-input-field-rac-feQ2E1eU.js → date-time-input-field-rac-D9w4eEa0.js} +135 -129
  32. package/dist/component/{date-time-input-rac-G0s0xP4v.js → date-time-input-rac-_im8-JRC.js} +1 -1
  33. package/dist/component/{dext-checkbox-group-rac-BcTN1nJb.js → dext-checkbox-group-rac-Di7B1Wzv.js} +2 -2
  34. package/dist/component/{dext-checkbox-rac-DX0TOrCO.js → dext-checkbox-rac-BPendOsP.js} +1 -1
  35. package/dist/component/{dext-date-picker-rac-CpDp11oa.js → dext-date-picker-rac-_-Ig9Qn6.js} +1 -1
  36. package/dist/component/{dext-date-time-input-rac-BRvO8izU.js → dext-date-time-input-rac-dKFW87yu.js} +1 -1
  37. package/dist/component/{dext-dropdown-rac-DGZ4Yi_X.js → dext-dropdown-rac-Cpdpps7P.js} +1 -1
  38. package/dist/component/{dext-email-rac-B9YCFHB4.js → dext-email-rac-D4UmYH5m.js} +1 -1
  39. package/dist/component/{dext-number-input-rac-D890dBZf.js → dext-number-input-rac-DUetGnYJ.js} +1 -1
  40. package/dist/component/{dext-phone-rac-BAQftbXo.js → dext-phone-rac-Bsz_DAT9.js} +1 -1
  41. package/dist/component/dext-radio-group-rac-B_soj2FD.js +18 -0
  42. package/dist/component/{dext-rating-input-rac-BqQKVaHo.js → dext-rating-input-rac-cm40qt4O.js} +1 -1
  43. package/dist/component/{dext-tags-rac-zxxKcNUe.js → dext-tags-rac-D1ULx6t1.js} +2 -2
  44. package/dist/component/{dext-text-area-rac-Ctp9SwPg.js → dext-text-area-rac-IkL67rHB.js} +1 -1
  45. package/dist/component/{dext-text-input-rac-c_QMlyjr.js → dext-text-input-rac-DsYSTEL2.js} +1 -1
  46. package/dist/component/{dext-url-input-rac-96pv15aC.js → dext-url-input-rac-BKvEkpYu.js} +1 -1
  47. package/dist/component/{donation-rac-GEWKSLJY.js → donation-rac-CaCXMa-H.js} +87 -85
  48. package/dist/component/{dropdown-field-headless-C3OxMhLE.js → dropdown-field-headless-DcrQK8mL.js} +36 -34
  49. package/dist/component/{dropdown-field-rac-CCXfBmSc.js → dropdown-field-rac-CuGoz_6I.js} +9 -10
  50. package/dist/component/{dropdown-rac-CR7hswXE.js → dropdown-rac-rIe6ZqaZ.js} +1 -1
  51. package/dist/component/{ecom-address-rac-khMuxEFD.js → ecom-address-rac-DT0rzvvp.js} +1 -1
  52. package/dist/component/{ecom-subscription-checkbox-rac-CAi_AHpb.js → ecom-subscription-checkbox-rac-ZfbiME6e.js} +5 -5
  53. package/dist/component/{email-input-field-rac-B83mY2lg.js → email-input-field-rac-8Qn3yskh.js} +62 -62
  54. package/dist/component/{events-repeater-rac-ClEwXgmb.js → events-repeater-rac-DyHrMd3y.js} +25 -21
  55. package/dist/component/{events-rsvp-rac-BJ5q2SVR.js → events-rsvp-rac-CoL-euuc.js} +9 -9
  56. package/dist/component/{field-error-headless-CsYQCsiT.js → field-error-headless-RylIeqXr.js} +6 -6
  57. package/dist/component/{field-label-headless-Yg_1PMSg.js → field-label-headless-d3hZxIEc.js} +15 -15
  58. package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
  59. package/dist/component/{file-upload-rac-DJsuI_lR.js → file-upload-rac-rXbabrgc.js} +172 -168
  60. package/dist/component/{fixed-payment-rac-BMFe9wxU.js → fixed-payment-rac-CaR7pXXA.js} +13 -13
  61. package/dist/component/{form-Bed4Kfz8.js → form-DhIEC3nB.js} +2309 -2308
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +2 -2
  64. package/dist/component/{header-field-rac-DPQTrOSZ.js → header-field-rac-nELbyGjP.js} +4 -4
  65. package/dist/component/{header-rac-CzXsuLmE.js → header-rac-q80EQNmM.js} +1 -1
  66. package/dist/component/{image-choice-rac-R_4pbOSr.js → image-choice-rac-CLMiTQK0.js} +42 -42
  67. package/dist/component/{index-DZxHlvzt.js → index-C-jVrv9Y.js} +91 -91
  68. package/dist/component/{index-qSZCe_WC.js → index-DnLJzPM-.js} +2 -2
  69. package/dist/component/{isObjectLike-B-a5uaU-.js → isObjectLike-Bf577MHV.js} +15 -15
  70. package/dist/component/{multiline-address-field-rac-rv4IZZy_.js → multiline-address-field-rac-BVAv1w9F.js} +155 -137
  71. package/dist/component/{multiline-address-rac-DZ7cYtgn.js → multiline-address-rac-qMuUHA9U.js} +1 -1
  72. package/dist/component/{number-input-field-rac-CL9iXKIf.js → number-input-field-rac-B_vnBWFG.js} +24 -22
  73. package/dist/component/{number-input-rac-BeGn6qJR.js → number-input-rac-BPCIW8Fz.js} +1 -1
  74. package/dist/component/{password-rac-DfvhdsKG.js → password-rac-D72HG72u.js} +28 -26
  75. package/dist/component/{payment-input-rac-BmMfi5rf.js → payment-input-rac-DthVgsAi.js} +32 -30
  76. package/dist/component/{phone-input-field-rac-DW0a1pXs.js → phone-input-field-rac-XIPkH8Fb.js} +46 -46
  77. package/dist/component/{phone-rac-quZjJ08H.js → phone-rac-U94fCfer.js} +1 -1
  78. package/dist/component/{product-list-rac-Ci0KB7sN.js → product-list-rac-BRMGPyhr.js} +78 -78
  79. package/dist/component/{quiz-radio-group-rac--UUtGx2t.js → quiz-radio-group-rac-DafNzzgX.js} +1 -1
  80. package/dist/component/radio-button-module-classes-DtFlHID_.js +134 -0
  81. package/dist/component/{radio-group-field-rac-w8fHpFKJ.js → radio-group-field-rac-BXrYWjew.js} +13 -13
  82. package/dist/component/{radio-group-rac-jO8aghii.js → radio-group-rac-BNyFfQYV.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-BRc2PtqE.js → rating-input-field-rac-KbkiVCZ7.js} +27 -27
  84. package/dist/component/{rating-input-rac-D9zs06xR.js → rating-input-rac-zT4vPkwP.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-Cv3ZmD00.js → rich-content-rac.module-C0OQetct.js} +8 -8
  86. package/dist/component/{rich-text-field-rac-BmWuIfA8.js → rich-text-field-rac-T4NoShC0.js} +4 -4
  87. package/dist/component/{rich-text-rac-BnqnrvB1.js → rich-text-rac-m6VRCRZu.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-Cl81KfJU.js → service-dropdown-rac-BFwKhL1l.js} +44 -45
  89. package/dist/component/{services-multi-choice-rac-sQ1NF9hY.js → services-multi-choice-rac-DjzcuRWv.js} +13 -13
  90. package/dist/component/{signature-rac-Huairu7V.js → signature-rac-B1LPKnIw.js} +281 -279
  91. package/dist/component/{submit-button-rac-Dpg7N0TG.js → submit-button-rac-Cz3PVtW4.js} +25 -25
  92. package/dist/component/{tags-field-rac-BQ8TEqXH.js → tags-field-rac-DzSoL__s.js} +82 -82
  93. package/dist/component/{tags-rac-CFOmyCCc.js → tags-rac-DMYJDrm-.js} +1 -1
  94. package/dist/component/{text-area-field-rac-DNiMa7d3.js → text-area-field-rac-SuMzBm-Q.js} +30 -28
  95. package/dist/component/{text-area-rac-kLFe-KbZ.js → text-area-rac-C-zmnJgt.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CqENSUUX.js → text-input-field-rac-BmQlXTK9.js} +6 -6
  97. package/dist/component/text-input-headless-BsrjGTK4.js +47 -0
  98. package/dist/component/{text-input-rac-uYQEfOtE.js → text-input-rac-DhQFKG4h.js} +1 -1
  99. package/dist/component/time-input-rac-CRZZdbTI.js +161 -0
  100. package/dist/component/{url-input-field-rac-BioH7kuz.js → url-input-field-rac-D617Pvsf.js} +30 -28
  101. package/dist/component/{url-input-rac-D2VSSyqW.js → url-input-rac-CLvxaWZz.js} +1 -1
  102. package/dist/component/use-dropdown-trigger-class-name-C4uqTKFP.js +117 -0
  103. package/dist/component/{use-element-state-class-name-oiKCauK-.js → use-element-state-class-name-DJx-T0zf.js} +3 -3
  104. package/dist/component/use-hoverable-input-class-name-pwVZXwrY.js +25 -0
  105. package/dist/component/use-is-forced-open-dropdown-DBpm1D-o.js +48 -0
  106. package/dist/component/{use-service-options-base-DXG60hA5.js → use-service-options-base-xHeVTve3.js} +6 -6
  107. package/dist/component/use-text-input-class-name-CrEjJ2Z8.js +6 -0
  108. package/dist/form.d.ts +5 -0
  109. package/package.json +2 -2
  110. package/dist/component/dext-radio-group-rac-CtEjnu_X.js +0 -18
  111. package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
  112. package/dist/component/radio-button-module-classes-CqdBGknT.js +0 -132
  113. package/dist/component/text-input-headless-BdPkEeK2.js +0 -45
  114. package/dist/component/time-input-rac-BYoojlJ9.js +0 -159
  115. package/dist/component/use-dropdown-option-class-name-BEmvU-Gg.js +0 -115
  116. package/dist/component/use-dropdown-trigger-class-name-qj9skLWZ.js +0 -40
  117. package/dist/component/use-hoverable-input-class-name-BW3nCyhG.js +0 -25
  118. package/dist/component/use-text-input-class-name-BhQFcXYH.js +0 -6
@@ -1,37 +1,37 @@
1
- import t, { useMemo as H, useCallback as M, useRef as U } from "react";
2
- import { RicosViewer as K } from "@wix/ricos/viewer";
3
- import _ from "classnames";
4
- import { CheckboxField as z, CheckboxButton as X, NumberField as j, Group as J, Button as Q, Input as W } from "react-aria-components";
5
- import { bn as x, bk as Y, bf as w, bx as Z, bp as ee, R as te, $ as ne, S as ae, V as oe, U as re, Q as se, G as le, u as ie, T as ce } from "./form-Bed4Kfz8.js";
6
- import { f as I, a as b } from "./find-child-C60k4CxG.js";
7
- import { L as ue, g as me } from "./field-label-headless-Yg_1PMSg.js";
1
+ import t, { useMemo as K, useCallback as M, useRef as x } from "react";
2
+ import { RicosViewer as $ } from "@wix/ricos/viewer";
3
+ import b from "classnames";
4
+ import { CheckboxField as z, CheckboxButton as G, NumberField as W, Group as X, Button as j, Input as J } from "react-aria-components";
5
+ import { bo as U, bl as Y, bg as V, by as Z, bq as ee, S as te, a0 as ne, T as ae, W as oe, V as re, R as le, H as se, v as ie, U as ce } from "./form-DhIEC3nB.js";
6
+ import { f as I, a as f } from "./find-child-C60k4CxG.js";
7
+ import { L as ue, g as me } from "./field-label-headless-d3hZxIEc.js";
8
8
  import { f as pe } from "./format-currency-BwShJ9vM.js";
9
- import { D as de, E as Ee } from "./field-error-headless-CsYQCsiT.js";
9
+ import { D as de, E as Ee } from "./field-error-headless-RylIeqXr.js";
10
10
  import { F as ye } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as fe } from "./payment-field-utils-DobiK5Xh.js";
12
- import { S as _e } from "./selection-indicator-XQ8MYHUQ.js";
13
- import { E as be } from "./error-icon-hZxQ6DEy.js";
14
- import { C as Ie } from "./checkbox-indicator-module-classes-6173wvuW.js";
15
- import { s as q } from "./field-rac.module-DfEb7pBp.js";
16
- import { o as V } from "./options-rac.module-_THNq6Qq.js";
17
- import { u as Oe } from "./use-element-state-class-name-oiKCauK-.js";
11
+ import { g as _e } from "./payment-field-utils-DobiK5Xh.js";
12
+ import { S as be } from "./selection-indicator-XQ8MYHUQ.js";
13
+ import { E as fe } from "./error-icon-hZxQ6DEy.js";
14
+ import { C as Ie } from "./checkbox-indicator-module-classes-akWZsZNn.js";
15
+ import { s as q } from "./field-rac.module-DP0lkkEv.js";
16
+ import { o as Q } from "./options-rac.module-_THNq6Qq.js";
17
+ import { u as Oe } from "./use-element-state-class-name-DJx-T0zf.js";
18
18
  var Le = /* @__PURE__ */ (function(e) {
19
19
  return e.crop = "CROP", e.fit = "FIT", e;
20
20
  })({}), k = /* @__PURE__ */ (function(e) {
21
21
  return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
22
22
  })({});
23
23
  function Ce({ maxItems: e, products: a } = {}) {
24
- return e === 1 ? k.onlyOne : a != null && a.length && a.every((s) => {
24
+ return e === 1 ? k.onlyOne : a != null && a.length && a.every((l) => {
25
25
  var n;
26
- return typeof ((n = s.quantityLimit) == null ? void 0 : n.maximum) > "u";
26
+ return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
27
27
  }) ? k.many : k.oneByOne;
28
28
  }
29
29
  const o = ({ children: e }) => {
30
30
  var D;
31
- const { id: a, value: s, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: l, hasError: u, validation: m, FieldLayout: p } = x(), { inputId: v, labelId: N, ariaDescribedBy: h } = Y(), f = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = H(() => s || [], [
32
- s
31
+ const { id: a, value: l, onChange: n, disabled: r, readOnly: c, required: y, onBlur: O, onFocus: s, hasError: u, validation: m, FieldLayout: p } = U(), { inputId: v, labelId: N, ariaDescribedBy: h } = Y(), _ = I(e, o.Label), g = I(e, o.Options), A = I(e, o.Description), L = I(e, o.Error), i = K(() => l || [], [
32
+ l
33
33
  ]), T = Ce((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = M((S, R) => {
34
- const d = i.filter((G) => G.productId !== S.productId), B = R ? [
34
+ const d = i.filter((H) => H.productId !== S.productId), B = R ? [
35
35
  ...d,
36
36
  S
37
37
  ] : d;
@@ -42,15 +42,15 @@ const o = ({ children: e }) => {
42
42
  ]);
43
43
  return /* @__PURE__ */ t.createElement(p, {
44
44
  fieldId: a,
45
- renderLabel: () => f,
45
+ renderLabel: () => _,
46
46
  renderInput: () => /* @__PURE__ */ t.createElement(ye, {
47
47
  id: v,
48
48
  ariaLabelledBy: N,
49
49
  ariaDescribedBy: h,
50
50
  required: y,
51
51
  onBlur: O,
52
- onFocus: l
53
- }, g ? b(g, {
52
+ onFocus: s
53
+ }, g ? f(g, {
54
54
  allowMany: T,
55
55
  productValues: i,
56
56
  onProductChange: F,
@@ -60,16 +60,16 @@ const o = ({ children: e }) => {
60
60
  }) : null),
61
61
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, A)
62
62
  });
63
- }, $ = ({ children: e, className: a, ...s }) => {
64
- const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: l } = s, { options: u, validation: m, imageResize: p } = x(), { currency: v } = w(), { t: N } = Z(), h = I(e, o.Option);
63
+ }, w = ({ children: e, className: a, ...l }) => {
64
+ const { allowMany: n, productValues: r, onProductChange: c, disabled: y, readOnly: O, hasError: s } = l, { options: u, validation: m, imageResize: p } = U(), { currency: v } = V(), { t: N } = Z(), h = I(e, o.Option);
65
65
  return /* @__PURE__ */ t.createElement("div", {
66
66
  className: a
67
- }, u == null ? void 0 : u.map((f, g) => {
67
+ }, u == null ? void 0 : u.map((_, g) => {
68
68
  var C, T, F, D, S;
69
- const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === f.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = fe(N, v), i = r.find((R) => R.productId === f.value);
70
- return b(h, {
71
- key: f.id || f.value || f.label,
72
- option: f,
69
+ const A = ((S = (D = (F = (T = (C = m == null ? void 0 : m.predefined) == null ? void 0 : C.paymentOptions) == null ? void 0 : T.products) == null ? void 0 : F.find((R) => R.id === _.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : S.price) || "0", L = _e(N, v), i = r.find((R) => R.productId === _.value);
70
+ return f(h, {
71
+ key: _.id || _.value || _.label,
72
+ option: _,
73
73
  price: A,
74
74
  quantity: i == null ? void 0 : i.quantity,
75
75
  isSelected: !!i,
@@ -77,52 +77,52 @@ const o = ({ children: e }) => {
77
77
  onProductChange: c,
78
78
  disabled: y,
79
79
  readOnly: O,
80
- hasError: l,
80
+ hasError: s,
81
81
  currencyAriaLabel: L,
82
82
  imageResize: p,
83
83
  isFirst: g === 0
84
84
  });
85
85
  }));
86
- }, E = ({ children: e, className: a, ...s }) => {
87
- const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = s, { id: f } = x(), g = U(null), A = U(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = I(e, E.Input), F = I(e, E.Quantity);
86
+ }, E = ({ children: e, className: a, ...l }) => {
87
+ const { option: n, price: r, quantity: c = 0, isSelected: y, allowMany: O, onProductChange: s, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: v, imageResize: N, isFirst: h } = l, { id: _ } = U(), g = x(null), A = x(null), L = I(e, E.Image), i = I(e, E.Label), C = I(e, E.Price), T = I(e, E.Input), F = I(e, E.Quantity);
88
88
  ee(() => {
89
89
  var d;
90
90
  h && ((d = g.current ?? A.current) == null || d.focus({
91
91
  preventScroll: !0
92
92
  }));
93
- }, f);
93
+ }, _);
94
94
  const D = M((d) => {
95
- l({
95
+ s({
96
96
  productId: n.value,
97
97
  price: r,
98
98
  quantity: 1
99
99
  }, d);
100
100
  }, [
101
- l,
101
+ s,
102
102
  n.value,
103
103
  r
104
104
  ]), S = M((d) => {
105
- l({
105
+ s({
106
106
  productId: n.value,
107
107
  price: r,
108
108
  quantity: d
109
109
  }, d > 0);
110
110
  }, [
111
- l,
111
+ s,
112
112
  n.value,
113
113
  r
114
114
  ]), R = `${n.label} ${v} ${r}`;
115
115
  return O ? /* @__PURE__ */ t.createElement("div", {
116
116
  className: a,
117
117
  "data-hook": "product"
118
- }, L ? b(L, {
118
+ }, L ? f(L, {
119
119
  option: n,
120
120
  imageResize: N
121
- }) : null, i ? b(i, {
121
+ }) : null, i ? f(i, {
122
122
  label: n.label
123
- }) : null, C ? b(C, {
123
+ }) : null, C ? f(C, {
124
124
  price: r
125
- }) : null, F ? b(F, {
125
+ }) : null, F ? f(F, {
126
126
  quantity: c,
127
127
  onQuantityChange: S,
128
128
  disabled: u,
@@ -137,31 +137,31 @@ const o = ({ children: e }) => {
137
137
  isReadOnly: m,
138
138
  isInvalid: p,
139
139
  "aria-label": R
140
- }, /* @__PURE__ */ t.createElement(X, {
140
+ }, /* @__PURE__ */ t.createElement(G, {
141
141
  ref: g,
142
142
  className: a,
143
143
  "data-hook": "product"
144
- }, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? b(L, {
144
+ }, ({ isHovered: d, isFocused: B }) => /* @__PURE__ */ t.createElement(t.Fragment, null, L ? f(L, {
145
145
  option: n,
146
146
  imageResize: N
147
- }) : null, i ? b(i, {
147
+ }) : null, i ? f(i, {
148
148
  label: n.label
149
- }) : null, C ? b(C, {
149
+ }) : null, C ? f(C, {
150
150
  price: r
151
- }) : null, b(T, {
151
+ }) : null, f(T, {
152
152
  isSelected: y,
153
153
  isHovered: d,
154
154
  isFocused: B
155
155
  }))));
156
156
  }, Re = ({ className: e, ...a }) => {
157
- var l;
158
- const { option: s, imageResize: n } = a, r = (l = s.media) == null ? void 0 : l.image;
157
+ var s;
158
+ const { option: l, imageResize: n } = a, r = (s = l.media) == null ? void 0 : s.image;
159
159
  if (!r)
160
160
  return null;
161
161
  const c = n === Le.fit, y = me(r, 96, 96, c ? "fit" : "fill");
162
162
  if (!y)
163
163
  return null;
164
- const O = r.altText || s.label || "";
164
+ const O = r.altText || l.label || "";
165
165
  return /* @__PURE__ */ t.createElement("img", {
166
166
  className: e,
167
167
  src: y,
@@ -170,14 +170,14 @@ const o = ({ children: e }) => {
170
170
  "data-hook": "product-image"
171
171
  });
172
172
  }, ge = ({ className: e, ...a }) => {
173
- const { label: s } = a;
173
+ const { label: l } = a;
174
174
  return /* @__PURE__ */ t.createElement("span", {
175
175
  className: e,
176
176
  "data-hook": "product-label"
177
- }, s || "");
177
+ }, l || "");
178
178
  }, Fe = ({ className: e, ...a }) => {
179
- const { price: s } = a, { currency: n, regionalFormat: r } = w(), c = pe({
180
- amount: s,
179
+ const { price: l } = a, { currency: n, regionalFormat: r } = V(), c = pe({
180
+ amount: l,
181
181
  currency: n == null ? void 0 : n.code,
182
182
  locale: r
183
183
  });
@@ -186,7 +186,7 @@ const o = ({ children: e }) => {
186
186
  "data-hook": "product-price"
187
187
  }, c);
188
188
  }, De = ({ className: e, ...a }) => {
189
- const { quantity: s, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: l } = a, u = M((p) => {
189
+ const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: y, ariaLabel: O, inputRef: s } = a, u = M((p) => {
190
190
  n(p < 0 ? 0 : p);
191
191
  }, [
192
192
  n
@@ -195,8 +195,8 @@ const o = ({ children: e }) => {
195
195
  }, [
196
196
  u
197
197
  ]);
198
- return /* @__PURE__ */ t.createElement(j, {
199
- value: s,
198
+ return /* @__PURE__ */ t.createElement(W, {
199
+ value: l,
200
200
  onChange: u,
201
201
  minValue: 0,
202
202
  step: 1,
@@ -206,28 +206,28 @@ const o = ({ children: e }) => {
206
206
  "aria-label": O,
207
207
  className: e,
208
208
  "data-hook": "product-quantity"
209
- }, /* @__PURE__ */ t.createElement(J, {
209
+ }, /* @__PURE__ */ t.createElement(X, {
210
210
  onKeyDown: m
211
- }, /* @__PURE__ */ t.createElement(Q, {
211
+ }, /* @__PURE__ */ t.createElement(j, {
212
212
  slot: "decrement"
213
- }, "-"), /* @__PURE__ */ t.createElement(W, {
214
- ref: l
215
- }), /* @__PURE__ */ t.createElement(Q, {
213
+ }, "-"), /* @__PURE__ */ t.createElement(J, {
214
+ ref: s
215
+ }), /* @__PURE__ */ t.createElement(j, {
216
216
  slot: "increment"
217
217
  }, "+")));
218
218
  };
219
219
  E.Image = Re;
220
220
  E.Label = ge;
221
221
  E.Price = Fe;
222
- E.Input = _e;
222
+ E.Input = be;
223
223
  E.Quantity = De;
224
- $.Option = E;
224
+ w.Option = E;
225
225
  o.Label = ue;
226
- o.Options = $;
226
+ o.Options = w;
227
227
  o.Option = E;
228
228
  o.Description = de;
229
229
  o.Error = Ee;
230
- const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_21", he = "_optionImage_519is_32", Ae = "_optionLabel_519is_66", Te = "_optionPrice_519is_73", qe = "_quantity_519is_87", P = {
230
+ const Se = "_options_1jnru_1", Pe = "_option_1jnru_1", Ne = "_optionInput_1jnru_21", he = "_optionImage_1jnru_32", Ae = "_optionLabel_1jnru_66", Te = "_optionPrice_1jnru_73", qe = "_quantity_1jnru_87", P = {
231
231
  options: Se,
232
232
  option: Pe,
233
233
  optionInput: Ne,
@@ -235,7 +235,7 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
235
235
  optionLabel: Ae,
236
236
  optionPrice: Te,
237
237
  quantity: qe
238
- }, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(K, {
238
+ }, ve = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement($, {
239
239
  content: e,
240
240
  locale: a
241
241
  }), Me = () => {
@@ -244,27 +244,27 @@ const Se = "_options_519is_1", Pe = "_option_519is_1", Ne = "_optionInput_519is_
244
244
  moduleClasses: Ie
245
245
  });
246
246
  return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
247
- className: _(te, q.label)
247
+ className: b(te, q.label)
248
248
  }, /* @__PURE__ */ t.createElement(o.Label.Required, {
249
- className: _(ne, q.requiredMark)
249
+ className: b(ne, q.requiredMark)
250
250
  })), /* @__PURE__ */ t.createElement(o.Options, {
251
- className: _(ae, V.options, P.options)
251
+ className: b(ae, Q.options, P.options)
252
252
  }, /* @__PURE__ */ t.createElement(o.Option, {
253
- className: _(q.checkbox, P.option)
253
+ className: b(q.checkbox, P.option)
254
254
  }, /* @__PURE__ */ t.createElement(o.Option.Image, {
255
255
  className: P.optionImage
256
256
  }), /* @__PURE__ */ t.createElement(o.Option.Label, {
257
- className: _(oe, V.optionLabel, P.optionLabel)
257
+ className: b(oe, Q.optionLabel, P.optionLabel)
258
258
  }), /* @__PURE__ */ t.createElement(o.Option.Price, {
259
- className: _(re, P.optionPrice)
259
+ className: b(re, P.optionPrice)
260
260
  }), /* @__PURE__ */ t.createElement(o.Option.Input, {
261
- className: (a) => _(e(a), P.optionInput)
261
+ className: (a) => b(e(a), P.optionInput)
262
262
  }), /* @__PURE__ */ t.createElement(o.Option.Quantity, {
263
- className: _(se, q.inputGroup, P.quantity)
263
+ className: b(le, q.inputGroup, P.quantity)
264
264
  }))), /* @__PURE__ */ t.createElement(o.Error, {
265
- className: _(le, q.error)
266
- }, /* @__PURE__ */ t.createElement(be, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
- className: _(ie, q.description)
265
+ className: b(se, q.error)
266
+ }, /* @__PURE__ */ t.createElement(fe, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
267
+ className: b(ie, q.description)
268
268
  }, ve));
269
269
  }, Ze = () => /* @__PURE__ */ t.createElement(Me, null);
270
270
  export {
@@ -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-BXrYWjew.js";
3
3
  const i = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  i as QuizRadioGroupRAC
@@ -0,0 +1,134 @@
1
+ import a, { useRef as F, useState as T, useEffect as B, useCallback as H } from "react";
2
+ import { RadioGroup as k, RadioField as q, 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-DhIEC3nB.js";
4
+ import { f as u, a as L } from "./find-child-C60k4CxG.js";
5
+ import { D as U, E as M } from "./field-error-headless-RylIeqXr.js";
6
+ import { L as j } from "./field-label-headless-d3hZxIEc.js";
7
+ import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
8
+ const v = "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
+ const l = t ? t.length + 2 : 0;
10
+ return e.slice(l);
11
+ }, i = ({ children: e, className: t }) => {
12
+ const { id: n, value: l, onChange: h, disabled: p, readOnly: O, required: m, onBlur: E, onFocus: b, hasError: r, FieldLayout: c, options: o } = g(), { inputId: f, labelId: C, ariaDescribedBy: I } = $(), s = u(e, i.Label), _ = u(e, i.Options), R = u(e, i.Description), N = u(e, i.Error), V = S(o, l) ? v : l || null;
13
+ return /* @__PURE__ */ a.createElement(c, {
14
+ fieldId: n,
15
+ renderLabel: () => L(s, {
16
+ as: "div"
17
+ }),
18
+ renderInput: () => /* @__PURE__ */ a.createElement(k, {
19
+ id: f,
20
+ className: t,
21
+ "aria-labelledby": C,
22
+ "aria-describedby": I,
23
+ value: V,
24
+ onChange: h,
25
+ isDisabled: p,
26
+ isReadOnly: O,
27
+ isRequired: m,
28
+ isInvalid: r,
29
+ onBlur: E,
30
+ onFocus: b
31
+ }, _),
32
+ renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, N, R)
33
+ });
34
+ }, K = ({ children: e, className: t }) => {
35
+ const { options: n, addOther: l, addOtherLabel: h, id: p, numberOfColumns: O, hasError: m } = g(), { t: E } = D(), b = u(e, i.Option), r = F(null), c = h || E("add-other.default-other-option-label") || v;
36
+ return x(() => {
37
+ var o;
38
+ (o = r.current) == null || o.focus({
39
+ preventScroll: !0
40
+ });
41
+ }, p), /* @__PURE__ */ a.createElement("div", {
42
+ className: t,
43
+ "data-columns": O,
44
+ "data-invalid": m
45
+ }, n.map((o, f) => L(b, {
46
+ key: o.value ?? o.label,
47
+ value: o.value ?? o.label,
48
+ label: o.label,
49
+ index: f,
50
+ radioRef: f === 0 ? r : void 0
51
+ })), l && L(b, {
52
+ key: v,
53
+ value: v,
54
+ label: c,
55
+ isOther: !0
56
+ }));
57
+ }, d = ({ children: e, className: t, ...n }) => {
58
+ var I;
59
+ const { value: l, label: h, isOther: p = !1, radioRef: O } = n, { value: m, options: E } = g(), b = u(e, d.Label), r = u(e, d.Input), c = u(e, d.Control), o = u(e, d.OtherInput), f = p ? S(E, m) : m === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
60
+ return /* @__PURE__ */ a.createElement("div", {
61
+ className: t
62
+ }, /* @__PURE__ */ a.createElement(q, {
63
+ value: l
64
+ }, /* @__PURE__ */ a.createElement(A, {
65
+ ref: O,
66
+ className: C
67
+ }, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, L(c, {
68
+ isSelected: s,
69
+ isHovered: _,
70
+ isFocused: R
71
+ }), L(b, {
72
+ label: h
73
+ })))), p && f && o);
74
+ }, Q = ({ className: e, ...t }) => {
75
+ const { label: n } = t;
76
+ return /* @__PURE__ */ a.createElement("span", {
77
+ className: e
78
+ }, n);
79
+ }, W = (e) => null, X = ({ className: e }) => {
80
+ const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: h, otherInputCharacterLimit: p, disabled: O, readOnly: m, options: E } = g(), { t: b } = D(), r = F(null), c = S(E, t), o = l || b("add-other.default-other-option-label") || v, [f, C] = T(c && t ? J(t, l) : "");
81
+ B(() => {
82
+ var s;
83
+ c && r.current && ((s = r.current) == null || s.focus());
84
+ }, [
85
+ c
86
+ ]);
87
+ const I = H((s) => {
88
+ let _;
89
+ s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
90
+ }, [
91
+ n,
92
+ l,
93
+ o
94
+ ]);
95
+ return /* @__PURE__ */ a.createElement(G, {
96
+ "aria-label": o,
97
+ value: f,
98
+ onChange: I,
99
+ isDisabled: O,
100
+ isReadOnly: m
101
+ }, /* @__PURE__ */ a.createElement(P, {
102
+ ref: r,
103
+ className: e,
104
+ placeholder: h,
105
+ maxLength: p
106
+ }));
107
+ };
108
+ d.Label = Q;
109
+ d.Input = W;
110
+ d.Control = w;
111
+ d.OtherInput = X;
112
+ i.Label = j;
113
+ i.Options = K;
114
+ i.Option = d;
115
+ i.Description = U;
116
+ i.Error = M;
117
+ const Y = "_labelImage_1u9f2_1", Z = "_option_1u9f2_26", ee = "_optionInput_1u9f2_32", te = "_optionControl_1u9f2_50", oe = "_optionControlHover_1u9f2_72", ne = "_optionControlSelected_1u9f2_90", le = "_optionLabel_1u9f2_137", y = {
118
+ labelImage: Y,
119
+ option: Z,
120
+ optionInput: ee,
121
+ optionControl: te,
122
+ optionControlHover: oe,
123
+ optionControlSelected: ne,
124
+ optionLabel: le
125
+ }, pe = {
126
+ base: y.optionControl,
127
+ selected: y.optionControlSelected,
128
+ hover: y.optionControlHover
129
+ };
130
+ export {
131
+ pe as R,
132
+ i as a,
133
+ y as s
134
+ };
@@ -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-DtFlHID_.js";
5
5
  import { E as c } from "./error-icon-hZxQ6DEy.js";
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";
6
+ import { s as r } from "./field-rac.module-DP0lkkEv.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-DhIEC3nB.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-DJx-T0zf.js";
10
+ import { u } from "./use-text-input-class-name-CrEjJ2Z8.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-BXrYWjew.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-DhIEC3nB.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-RylIeqXr.js";
8
+ import { L as Z } from "./field-label-headless-d3hZxIEc.js";
9
9
  import { E as $ } from "./error-icon-hZxQ6DEy.js";
10
- import { s as g } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as j } from "./use-element-state-class-name-oiKCauK-.js";
10
+ import { s as g } from "./field-rac.module-DP0lkkEv.js";
11
+ import { u as j } from "./use-element-state-class-name-DJx-T0zf.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-KbkiVCZ7.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as RatingInputRAC