@wix/form-elements 1.63.0 → 1.65.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 (112) hide show
  1. package/dist/component/{appointment-rac-B1VVk_Ui.js → appointment-rac-0kUk8XQJ.js} +5 -5
  2. package/dist/component/{bookings-address-rac-IQeHFdHT.js → bookings-address-rac-BUM0wpw0.js} +1 -1
  3. package/dist/component/{bookings-email-rac-z26A790r.js → bookings-email-rac-BHlvupVS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-Djf0GPP4.js → bookings-first-name-rac-Bwn6xv1U.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CXOzAOpz.js → bookings-header-rac-BkRvQMi4.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CbB8alM9.js → bookings-last-name-rac-DRTj4VdX.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CXrLx7Pn.js → bookings-login-bar-rac-D-2Bt7Kx.js} +5 -5
  8. package/dist/component/{bookings-phone-rac-DGYx7h5g.js → bookings-phone-rac-CTcHHpDr.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-viJG57XF.js → bookings-rich-text-rac-n-w9iWII.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-e-RAmupX.js → checkbox-field-rac-BamOJv3P.js} +43 -43
  11. package/dist/component/checkbox-group-field-headless-BmKJbEi0.js +210 -0
  12. package/dist/component/checkbox-group-field-rac-CC8qfj0Y.js +40 -0
  13. package/dist/component/{checkbox-group-rac-CDfDTWqz.js → checkbox-group-rac-CsrP7zD5.js} +1 -1
  14. package/dist/component/{checkbox-rac-BRBKYD_5.js → checkbox-rac-X6E-fJ8k.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BtWWQi77.js → contacts-address-rac-oYnkIZ6m.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DaEUXJTf.js → contacts-birthdate-rac-B7p8LgYA.js} +1 -1
  17. package/dist/component/{contacts-company-rac-IgRyjtcM.js → contacts-company-rac-cjLRO5J-.js} +1 -1
  18. package/dist/component/{contacts-email-rac-BS1MDrMk.js → contacts-email-rac-BlJJSkGK.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BAvXypDF.js → contacts-first-name-rac-Nl-MDndn.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-C289RYPl.js → contacts-last-name-rac-DhxAobRI.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DIpyskam.js → contacts-phone-rac-CZLWlH0T.js} +1 -1
  22. package/dist/component/{contacts-position-rac-nPeh3lKU.js → contacts-position-rac-DlKC0lCU.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Ci5OLk68.js → contacts-subscribe-rac-POSKh1Ta.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-C4WB-SR0.js → contacts-tax-id-rac-uyBKxOJn.js} +1 -1
  25. package/dist/component/{date-availability-HHjPx4Uv.js → date-availability-DnFJD1aS.js} +1 -1
  26. package/dist/component/{date-input-field-rac-GFgFcpX2.js → date-input-field-rac-DojzGm-i.js} +22 -22
  27. package/dist/component/{date-input-rac-B9BUEIA-.js → date-input-rac-BaPKcAuU.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BfjYIIuY.js → date-picker-field-rac-C1rzJMV8.js} +24 -24
  29. package/dist/component/{date-picker-rac-Bd2UN0ZF.js → date-picker-rac-BHsOfkYn.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CAXnxLQP.js → date-time-input-field-rac-B4jAAxU8.js} +32 -32
  31. package/dist/component/{date-time-input-rac-BuJ3Awlh.js → date-time-input-rac-XyL5z_ma.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-DKp4cBVa.js → dext-checkbox-group-rac-DzpdOP3i.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BMu_k06A.js → dext-checkbox-rac-BUWkvW5s.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-L3sdldhT.js → dext-date-picker-rac-CR0PUoOn.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-UmabFzDN.js → dext-date-time-input-rac-D3WhLSKK.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-DbjgYaG-.js → dext-dropdown-rac-BJ1UfAIM.js} +1 -1
  37. package/dist/component/{dext-email-rac-rNudrOOK.js → dext-email-rac-xk_5C79-.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-hw1FTrJL.js → dext-number-input-rac-Cu1Sqoac.js} +1 -1
  39. package/dist/component/{dext-phone-rac-DrZ_Vwv2.js → dext-phone-rac-S34qxXwg.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DAt2ax-I.js → dext-radio-group-rac-DXnAk_eU.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BW2Ike11.js → dext-rating-input-rac-ewGpgB63.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DDzwlKrR.js → dext-tags-rac-BApZKGqP.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D0xf4z3z.js → dext-text-area-rac-DBtuaiwM.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Da04OLmq.js → dext-text-input-rac-qI8VECmA.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-B-g4xTqh.js → dext-url-input-rac-C6vzqNjn.js} +1 -1
  46. package/dist/component/donation-rac-BDVKvG4j.js +302 -0
  47. package/dist/component/{dropdown-field-headless-Js5TxdU4.js → dropdown-field-headless-DBl8vGed.js} +16 -16
  48. package/dist/component/{dropdown-field-rac-BDxcvX00.js → dropdown-field-rac-O6G7_kSn.js} +9 -9
  49. package/dist/component/{dropdown-rac-B5UHNzV-.js → dropdown-rac-BImZ5Jwe.js} +1 -1
  50. package/dist/component/{ecom-address-rac-0zm4bX37.js → ecom-address-rac-BU4XZ_Do.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DCXoI33l.js → ecom-subscription-checkbox-rac-DLzpoNYm.js} +3 -3
  52. package/dist/component/{email-input-field-rac-svf6hUHF.js → email-input-field-rac-Ui0p35z5.js} +45 -45
  53. package/dist/component/{events-repeater-rac-DMIqzuVK.js → events-repeater-rac-bPKOOOit.js} +49 -49
  54. package/dist/component/{events-rsvp-rac-B_YD4ckO.js → events-rsvp-rac-lsRBBfPQ.js} +3 -3
  55. package/dist/component/{field-error-headless-DTKnr5Zx.js → field-error-headless-D6iejMQP.js} +3 -3
  56. package/dist/component/{field-label-headless-DV4aNd5Y.js → field-label-headless-BWLfU3YB.js} +4 -4
  57. package/dist/component/field-rac.module-DnUIb9Oh.js +21 -0
  58. package/dist/component/{file-upload-rac-lGKJjG3m.js → file-upload-rac-DqKL8QQZ.js} +116 -116
  59. package/dist/component/{fixed-payment-rac-BVS6glii.js → fixed-payment-rac-BDtRB8w2.js} +14 -14
  60. package/dist/component/{form-DzjdnO7t.js → form-CtWkUmxc.js} +1563 -1556
  61. package/dist/component/form-element-classes-BSMjWijd.js +63 -0
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-tzBH-8Yh.js → header-field-rac-BLM8RCDY.js} +7 -7
  65. package/dist/component/{header-rac-6thQAvVF.js → header-rac-DViRwafg.js} +1 -1
  66. package/dist/component/image-choice-rac-D76t2y-b.js +141 -0
  67. package/dist/component/{index-Lnx0829a.js → index--iRBHLXJ.js} +4 -4
  68. package/dist/component/{index-DIP7KB8P.js → index-pEItT2oo.js} +2 -2
  69. package/dist/component/{isObjectLike-B_1KizZV.js → isObjectLike-968AHV2b.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-BY2SUp2d.js → multiline-address-field-rac-CObOc8KE.js} +82 -82
  71. package/dist/component/{multiline-address-rac-BL8Yp4F0.js → multiline-address-rac-1qVZkN41.js} +1 -1
  72. package/dist/component/{number-input-field-rac-x0yFmXbe.js → number-input-field-rac-CPQ3u0N7.js} +19 -19
  73. package/dist/component/{number-input-rac-pJXc2YsD.js → number-input-rac-Bq1UyUPZ.js} +1 -1
  74. package/dist/component/{password-rac-B4XCP64b.js → password-rac-BZPK1VkN.js} +15 -15
  75. package/dist/component/{payment-input-rac-CZdOAjK4.js → payment-input-rac-CQrV0WmN.js} +28 -28
  76. package/dist/component/{phone-input-field-rac-DO_V5Z_T.js → phone-input-field-rac-DzUE1-RF.js} +39 -39
  77. package/dist/component/{phone-rac-D16nLDjP.js → phone-rac-BovOZ7V5.js} +1 -1
  78. package/dist/component/{product-list-rac-DER8gVqy.js → product-list-rac-CeGm1_WN.js} +71 -71
  79. package/dist/component/quiz-radio-group-rac-Lw2thQqC.js +13 -0
  80. package/dist/component/{radio-group-field-rac-Dt2pU0VV.js → radio-group-field-rac-BSVmjEgZ.js} +8 -8
  81. package/dist/component/{radio-group-field-rac.module--sO0VqCA.js → radio-group-field-rac.module-Cb3mm0f2.js} +7 -7
  82. package/dist/component/{radio-group-rac-CqCmtkNQ.js → radio-group-rac-BHhOCSQ2.js} +1 -1
  83. package/dist/component/{rating-input-field-rac-xDrHHcL2.js → rating-input-field-rac-BvbBZZDO.js} +31 -31
  84. package/dist/component/{rating-input-rac-Bo5E9N87.js → rating-input-rac-DDe1EBpt.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-CJXbNca9.js → rich-content-rac.module-BacYkzEv.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-CkV0Z9F-.js → rich-text-field-rac-D1W0mUjr.js} +3 -3
  87. package/dist/component/{rich-text-rac-59DbKpXz.js → rich-text-rac-B-cOn0RU.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BLnflnUr.js → service-dropdown-rac-CebfMkGP.js} +41 -41
  89. package/dist/component/services-multi-choice-rac-C4bF1xhB.js +76 -0
  90. package/dist/component/{signature-rac-Bb5IaS28.js → signature-rac-DWWT65Ez.js} +48 -48
  91. package/dist/component/{submit-button-rac-Bjyi8sUA.js → submit-button-rac-_mgn4ChE.js} +6 -6
  92. package/dist/component/{tags-field-rac-C_VO3_69.js → tags-field-rac-7coCWj0y.js} +39 -39
  93. package/dist/component/{tags-rac-CKiutCWe.js → tags-rac-rgsn8Os0.js} +1 -1
  94. package/dist/component/{text-area-field-rac-Cg-vIhFe.js → text-area-field-rac-5lUQxnNM.js} +15 -15
  95. package/dist/component/{text-area-rac-tMFx38UD.js → text-area-rac-DpGOBzN3.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CgN_2hOD.js → text-input-field-rac-CgWadDfM.js} +6 -6
  97. package/dist/component/{text-input-headless-CkhvKrFp.js → text-input-headless-fhxuPytc.js} +11 -11
  98. package/dist/component/{text-input-rac-BsyBgd3b.js → text-input-rac-kgWS3UUV.js} +1 -1
  99. package/dist/component/{time-input-rac-BxRVJtHE.js → time-input-rac-CuLUJcBH.js} +34 -34
  100. package/dist/component/{url-input-field-rac-B_1yVniS.js → url-input-field-rac-CAGHb2na.js} +22 -22
  101. package/dist/component/{url-input-rac-D8VrKYVe.js → url-input-rac-s5_SVi0h.js} +1 -1
  102. package/dist/component/{use-service-options-base-Ci9gIluo.js → use-service-options-base-CYAEJ75H.js} +6 -6
  103. package/dist/form.d.ts +3 -1
  104. package/package.json +2 -2
  105. package/dist/component/checkbox-group-field-headless-Cvia4lL6.js +0 -204
  106. package/dist/component/checkbox-group-field-rac-BXxk90dk.js +0 -33
  107. package/dist/component/donation-rac-gKeq72jg.js +0 -305
  108. package/dist/component/field-rac.module-DtugsLiL.js +0 -21
  109. package/dist/component/form-element-classes-Bi-nNM8q.js +0 -55
  110. package/dist/component/image-choice-rac-Dx1b-saW.js +0 -141
  111. package/dist/component/quiz-radio-group-rac-BgTmHHi4.js +0 -13
  112. package/dist/component/services-multi-choice-rac-C-bFjwx8.js +0 -76
@@ -1,39 +1,39 @@
1
- import t, { useMemo as z, useCallback as T, useRef as B } from "react";
2
- import { RicosViewer as G } from "@wix/ricos/viewer";
3
- import f from "classnames";
1
+ import t, { useMemo as H, useCallback as x, useRef as B } from "react";
2
+ import { RicosViewer as $ } from "@wix/ricos/viewer";
3
+ import _ from "classnames";
4
4
  import { CheckboxField as K, CheckboxButton as j, NumberField as J, Group as W, Button as U, Input as X } from "react-aria-components";
5
- import { ah as M, ae as Y, ab as Q, ar as Z, aj as ee } from "./form-DzjdnO7t.js";
5
+ import { ai as M, af as Y, ab as w, as as Z, ak as ee } from "./form-CtWkUmxc.js";
6
6
  import { f as b, a as L } from "./find-child-C60k4CxG.js";
7
- import { L as te, g as ne } from "./field-label-headless-DV4aNd5Y.js";
7
+ import { L as te, g as ne } from "./field-label-headless-BWLfU3YB.js";
8
8
  import { f as ae } from "./format-currency-BwShJ9vM.js";
9
- import { D as oe, E as re } from "./field-error-headless-DTKnr5Zx.js";
10
- import { F as le } from "./fieldset-headless-CD3fds9J.js";
11
- import { g as ie } from "./payment-field-utils-DobiK5Xh.js";
9
+ import { D as oe, E as re } from "./field-error-headless-D6iejMQP.js";
10
+ import { F as ie } from "./fieldset-headless-CD3fds9J.js";
11
+ import { g as le } from "./payment-field-utils-DobiK5Xh.js";
12
12
  import { E as se } from "./error-icon-hZxQ6DEy.js";
13
- import { s as P } from "./field-rac.module-DtugsLiL.js";
14
- import { r as ce, H as ue, v as me, y as pe, x as de, w as Ee, q as ye, l as _e, h as fe } from "./form-element-classes-Bi-nNM8q.js";
15
- import { o as w } from "./options-rac.module-KM-VT_KY.js";
13
+ import { s as S } from "./field-rac.module-DnUIb9Oh.js";
14
+ import { z as ce, P as ue, D as me, H as pe, G as de, E as Ee, y as ye, q as fe, j as _e } from "./form-element-classes-BSMjWijd.js";
15
+ import { o as Q } from "./options-rac.module-KM-VT_KY.js";
16
16
  var be = /* @__PURE__ */ (function(e) {
17
17
  return e.crop = "CROP", e.fit = "FIT", e;
18
18
  })({}), k = /* @__PURE__ */ (function(e) {
19
19
  return e.oneByOne = "one-by-one", e.onlyOne = "only-one", e.many = "many", e;
20
20
  })({});
21
21
  function Ie({ maxItems: e, products: o } = {}) {
22
- return e === 1 ? k.onlyOne : o != null && o.length && o.every((l) => {
22
+ return e === 1 ? k.onlyOne : o != null && o.length && o.every((i) => {
23
23
  var n;
24
- return typeof ((n = l.quantityLimit) == null ? void 0 : n.maximum) > "u";
24
+ return typeof ((n = i.quantityLimit) == null ? void 0 : n.maximum) > "u";
25
25
  }) ? k.many : k.oneByOne;
26
26
  }
27
27
  const a = ({ children: e }) => {
28
28
  var D;
29
- const { id: o, value: l, onChange: n, disabled: r, readOnly: c, required: E, onBlur: I, onFocus: i, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: x, labelId: v, ariaDescribedBy: N } = Y(), y = b(e, a.Label), g = b(e, a.Options), A = b(e, a.Description), O = b(e, a.Error), s = z(() => l || [], [
30
- l
31
- ]), q = Ie((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = T((h, C) => {
32
- const _ = s.filter(($) => $.productId !== h.productId), H = C ? [
33
- ..._,
34
- h
35
- ] : _;
36
- n == null || n(H);
29
+ const { id: o, value: i, onChange: n, disabled: r, readOnly: c, required: E, onBlur: I, onFocus: l, hasError: u, validation: m, FieldLayout: p } = M(), { inputId: T, labelId: v, ariaDescribedBy: N } = Y(), y = b(e, a.Label), g = b(e, a.Options), A = b(e, a.Description), O = b(e, a.Error), s = H(() => i || [], [
30
+ i
31
+ ]), q = Ie((D = m == null ? void 0 : m.predefined) == null ? void 0 : D.paymentOptions) === k.many, F = x((P, C) => {
32
+ const f = s.filter((G) => G.productId !== P.productId), z = C ? [
33
+ ...f,
34
+ P
35
+ ] : f;
36
+ n == null || n(z);
37
37
  }, [
38
38
  s,
39
39
  n
@@ -41,13 +41,13 @@ const a = ({ children: e }) => {
41
41
  return /* @__PURE__ */ t.createElement(p, {
42
42
  fieldId: o,
43
43
  renderLabel: () => y,
44
- renderInput: () => /* @__PURE__ */ t.createElement(le, {
45
- id: x,
44
+ renderInput: () => /* @__PURE__ */ t.createElement(ie, {
45
+ id: T,
46
46
  ariaLabelledBy: v,
47
47
  ariaDescribedBy: N,
48
48
  required: E,
49
49
  onBlur: I,
50
- onFocus: i
50
+ onFocus: l
51
51
  }, g ? L(g, {
52
52
  allowMany: q,
53
53
  productValues: s,
@@ -58,13 +58,13 @@ const a = ({ children: e }) => {
58
58
  }) : null),
59
59
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, O, A)
60
60
  });
61
- }, V = ({ children: e, className: o, ...l }) => {
62
- const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError: i } = l, { options: u, validation: m, imageResize: p } = M(), { currency: x } = Q(), { t: v } = Z(), N = b(e, a.Option);
61
+ }, V = ({ children: e, className: o, ...i }) => {
62
+ const { allowMany: n, productValues: r, onProductChange: c, disabled: E, readOnly: I, hasError: l } = i, { options: u, validation: m, imageResize: p } = M(), { currency: T } = w(), { t: v } = Z(), N = b(e, a.Option);
63
63
  return /* @__PURE__ */ t.createElement("div", {
64
64
  className: o
65
65
  }, u == null ? void 0 : u.map((y, g) => {
66
- var R, q, F, D, h;
67
- const A = ((h = (D = (F = (q = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : q.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : h.price) || "0", O = ie(v, x), s = r.find((C) => C.productId === y.value);
66
+ var R, q, F, D, P;
67
+ const A = ((P = (D = (F = (q = (R = m == null ? void 0 : m.predefined) == null ? void 0 : R.paymentOptions) == null ? void 0 : q.products) == null ? void 0 : F.find((C) => C.id === y.value)) == null ? void 0 : D.fixedPriceOptions) == null ? void 0 : P.price) || "0", O = le(v, T), s = r.find((C) => C.productId === y.value);
68
68
  return L(N, {
69
69
  key: y.id || y.value || y.label,
70
70
  option: y,
@@ -75,41 +75,41 @@ const a = ({ children: e }) => {
75
75
  onProductChange: c,
76
76
  disabled: E,
77
77
  readOnly: I,
78
- hasError: i,
78
+ hasError: l,
79
79
  currencyAriaLabel: O,
80
80
  imageResize: p,
81
81
  isFirst: g === 0
82
82
  });
83
83
  }));
84
- }, d = ({ children: e, className: o, ...l }) => {
85
- const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange: i, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: x, imageResize: v, isFirst: N } = l, { id: y } = M(), g = B(null), A = B(null), O = b(e, d.Image), s = b(e, d.Label), R = b(e, d.Price), q = b(e, d.Input), F = b(e, d.Quantity);
84
+ }, d = ({ children: e, className: o, ...i }) => {
85
+ const { option: n, price: r, quantity: c = 0, isSelected: E, allowMany: I, onProductChange: l, disabled: u, readOnly: m, hasError: p, currencyAriaLabel: T, imageResize: v, isFirst: N } = i, { id: y } = M(), g = B(null), A = B(null), O = b(e, d.Image), s = b(e, d.Label), R = b(e, d.Price), q = b(e, d.Input), F = b(e, d.Quantity);
86
86
  ee(() => {
87
- var _;
88
- N && ((_ = g.current ?? A.current) == null || _.focus({
87
+ var f;
88
+ N && ((f = g.current ?? A.current) == null || f.focus({
89
89
  preventScroll: !0
90
90
  }));
91
91
  }, y);
92
- const D = T((_) => {
93
- i({
92
+ const D = x((f) => {
93
+ l({
94
94
  productId: n.value,
95
95
  price: r,
96
96
  quantity: 1
97
- }, _);
97
+ }, f);
98
98
  }, [
99
- i,
99
+ l,
100
100
  n.value,
101
101
  r
102
- ]), h = T((_) => {
103
- i({
102
+ ]), P = x((f) => {
103
+ l({
104
104
  productId: n.value,
105
105
  price: r,
106
- quantity: _
107
- }, _ > 0);
106
+ quantity: f
107
+ }, f > 0);
108
108
  }, [
109
- i,
109
+ l,
110
110
  n.value,
111
111
  r
112
- ]), C = `${n.label} ${x} ${r}`;
112
+ ]), C = `${n.label} ${T} ${r}`;
113
113
  return I ? /* @__PURE__ */ t.createElement("div", {
114
114
  className: o,
115
115
  "data-hook": "product"
@@ -122,7 +122,7 @@ const a = ({ children: e }) => {
122
122
  price: r
123
123
  }) : null, F ? L(F, {
124
124
  quantity: c,
125
- onQuantityChange: h,
125
+ onQuantityChange: P,
126
126
  disabled: u,
127
127
  readOnly: m,
128
128
  hasError: p,
@@ -148,14 +148,14 @@ const a = ({ children: e }) => {
148
148
  price: r
149
149
  }) : null, q));
150
150
  }, Le = ({ className: e, ...o }) => {
151
- var i;
152
- const { option: l, imageResize: n } = o, r = (i = l.media) == null ? void 0 : i.image;
151
+ var l;
152
+ const { option: i, imageResize: n } = o, r = (l = i.media) == null ? void 0 : l.image;
153
153
  if (!r)
154
154
  return null;
155
155
  const c = n === be.fit, E = ne(r, 96, 96, c ? "fit" : "fill");
156
156
  if (!E)
157
157
  return null;
158
- const I = r.altText || l.label || "";
158
+ const I = r.altText || i.label || "";
159
159
  return /* @__PURE__ */ t.createElement("img", {
160
160
  className: e,
161
161
  src: E,
@@ -164,14 +164,14 @@ const a = ({ children: e }) => {
164
164
  "data-hook": "product-image"
165
165
  });
166
166
  }, Oe = ({ className: e, ...o }) => {
167
- const { label: l } = o;
167
+ const { label: i } = o;
168
168
  return /* @__PURE__ */ t.createElement("span", {
169
169
  className: e,
170
170
  "data-hook": "product-label"
171
- }, l || "");
171
+ }, i || "");
172
172
  }, Re = ({ className: e, ...o }) => {
173
- const { price: l } = o, { currency: n, regionalFormat: r } = Q(), c = ae({
174
- amount: l,
173
+ const { price: i } = o, { currency: n, regionalFormat: r } = w(), c = ae({
174
+ amount: i,
175
175
  currency: n == null ? void 0 : n.code,
176
176
  locale: r
177
177
  });
@@ -183,17 +183,17 @@ const a = ({ children: e }) => {
183
183
  "aria-hidden": "true",
184
184
  className: e
185
185
  }), ge = ({ className: e, ...o }) => {
186
- const { quantity: l, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: I, inputRef: i } = o, u = T((p) => {
186
+ const { quantity: i, onQuantityChange: n, disabled: r, readOnly: c, hasError: E, ariaLabel: I, inputRef: l } = o, u = x((p) => {
187
187
  n(p < 0 ? 0 : p);
188
188
  }, [
189
189
  n
190
- ]), m = T((p) => {
190
+ ]), m = x((p) => {
191
191
  p.key === "Home" && (p.preventDefault(), u(0));
192
192
  }, [
193
193
  u
194
194
  ]);
195
195
  return /* @__PURE__ */ t.createElement(J, {
196
- value: l,
196
+ value: i,
197
197
  onChange: u,
198
198
  minValue: 0,
199
199
  step: 1,
@@ -208,7 +208,7 @@ const a = ({ children: e }) => {
208
208
  }, /* @__PURE__ */ t.createElement(U, {
209
209
  slot: "decrement"
210
210
  }, "-"), /* @__PURE__ */ t.createElement(X, {
211
- ref: i
211
+ ref: l
212
212
  }), /* @__PURE__ */ t.createElement(U, {
213
213
  slot: "increment"
214
214
  }, "+")));
@@ -224,39 +224,39 @@ a.Options = V;
224
224
  a.Option = d;
225
225
  a.Description = oe;
226
226
  a.Error = re;
227
- const Fe = "_options_11x4v_1", De = "_option_11x4v_1", he = "_optionInput_11x4v_21", Pe = "_optionImage_11x4v_32", Se = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", S = {
227
+ const Fe = "_options_11x4v_1", De = "_option_11x4v_1", Pe = "_optionInput_11x4v_21", Se = "_optionImage_11x4v_32", he = "_optionLabel_11x4v_66", ve = "_optionPrice_11x4v_73", Ne = "_quantity_11x4v_87", h = {
228
228
  options: Fe,
229
229
  option: De,
230
- optionInput: he,
231
- optionImage: Pe,
232
- optionLabel: Se,
230
+ optionInput: Pe,
231
+ optionImage: Se,
232
+ optionLabel: he,
233
233
  optionPrice: ve,
234
234
  quantity: Ne
235
- }, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement(G, {
235
+ }, Ae = ({ content: e, locale: o }) => /* @__PURE__ */ t.createElement($, {
236
236
  content: e,
237
237
  locale: o
238
238
  }), qe = () => /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
239
- className: f(ce, P.label)
239
+ className: _(ce, S.label)
240
240
  }, /* @__PURE__ */ t.createElement(a.Label.Required, {
241
- className: f(ue, P.requiredMark)
241
+ className: _(ue, S.requiredMark)
242
242
  })), /* @__PURE__ */ t.createElement(a.Options, {
243
- className: f(me, w.options, S.options)
243
+ className: _(me, Q.options, h.options)
244
244
  }, /* @__PURE__ */ t.createElement(a.Option, {
245
- className: f(P.checkbox, S.option)
245
+ className: _(S.checkbox, h.option)
246
246
  }, /* @__PURE__ */ t.createElement(a.Option.Image, {
247
- className: S.optionImage
247
+ className: h.optionImage
248
248
  }), /* @__PURE__ */ t.createElement(a.Option.Label, {
249
- className: f(pe, w.optionLabel, S.optionLabel)
249
+ className: _(pe, Q.optionLabel, h.optionLabel)
250
250
  }), /* @__PURE__ */ t.createElement(a.Option.Price, {
251
- className: f(de, S.optionPrice)
251
+ className: _(de, h.optionPrice)
252
252
  }), /* @__PURE__ */ t.createElement(a.Option.Input, {
253
- className: f(Ee, P.checkboxInput, S.optionInput)
253
+ className: _(Ee, S.checkboxInput, h.optionInput)
254
254
  }), /* @__PURE__ */ t.createElement(a.Option.Quantity, {
255
- className: f(ye, P.inputGroup, S.quantity)
255
+ className: _(ye, S.inputGroup, h.quantity)
256
256
  }))), /* @__PURE__ */ t.createElement(a.Error, {
257
- className: f(_e, P.error)
257
+ className: _(fe, S.error)
258
258
  }, /* @__PURE__ */ t.createElement(se, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
259
- className: f(fe, P.description)
259
+ className: _(_e, S.description)
260
260
  }, Ae)), Je = () => /* @__PURE__ */ t.createElement(qe, null);
261
261
  export {
262
262
  Je as ProductListRAC
@@ -0,0 +1,13 @@
1
+ import _ from "react";
2
+ import { R } from "./radio-group-field-rac-BSVmjEgZ.js";
3
+ import { K as o, J as r, I as O } from "./form-element-classes-BSMjWijd.js";
4
+ const t = () => /* @__PURE__ */ _.createElement(R, {
5
+ classes: {
6
+ container: O,
7
+ label: r,
8
+ control: o
9
+ }
10
+ });
11
+ export {
12
+ t as QuizRadioGroupRAC
13
+ };
@@ -1,14 +1,14 @@
1
1
  import { RicosViewer as s } from "@wix/ricos/viewer";
2
2
  import a from "classnames";
3
3
  import e from "react";
4
- import { R as t, s as r } from "./radio-group-field-rac.module--sO0VqCA.js";
4
+ import { R as t, s as r } from "./radio-group-field-rac.module-Cb3mm0f2.js";
5
5
  import { E as m } from "./error-icon-hZxQ6DEy.js";
6
- import { s as l } from "./field-rac.module-DtugsLiL.js";
7
- import { r as c, H as i, E, D as _, C as R, q as p, l as O, h as I } from "./form-element-classes-Bi-nNM8q.js";
8
- const L = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
6
+ import { s as l } from "./field-rac.module-DnUIb9Oh.js";
7
+ import { z as c, P as i, N as E, M as _, L as R, y as p, q as O, j as L } from "./form-element-classes-BSMjWijd.js";
8
+ const I = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
9
9
  content: o,
10
10
  locale: n
11
- }), b = ({ classes: o = {
11
+ }), M = ({ classes: o = {
12
12
  container: R,
13
13
  label: _,
14
14
  control: E
@@ -33,8 +33,8 @@ const L = ({ content: o, locale: n }) => /* @__PURE__ */ e.createElement(s, {
33
33
  }))), /* @__PURE__ */ e.createElement(t.Error, {
34
34
  className: a(O, l.error)
35
35
  }, /* @__PURE__ */ e.createElement(m, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
36
- className: a(I, l.description)
37
- }, L));
36
+ className: a(L, l.description)
37
+ }, I));
38
38
  export {
39
- b as R
39
+ M as R
40
40
  };
@@ -1,10 +1,10 @@
1
1
  import s, { useRef as y, useState as V, useEffect as S, useCallback as B } from "react";
2
2
  import { RadioGroup as T, RadioField as k, RadioButton as G, TextField as M, Input as P } from "react-aria-components";
3
- import { ah as C, ae as $, ar as F, ab as q, aj as x } from "./form-DzjdnO7t.js";
3
+ import { ai as C, af as $, as as F, ab as q, ak as x } from "./form-CtWkUmxc.js";
4
4
  import { f as d, a as g } from "./find-child-C60k4CxG.js";
5
- import { D as U, E as j } from "./field-error-headless-DTKnr5Zx.js";
6
- import { L as A } from "./field-label-headless-DV4aNd5Y.js";
7
- import { N as H } from "./options-layout-constants-DEfIEJWD.js";
5
+ import { D as U, E as A } from "./field-error-headless-D6iejMQP.js";
6
+ import { L as H } from "./field-label-headless-BWLfU3YB.js";
7
+ import { N as j } from "./options-layout-constants-DEfIEJWD.js";
8
8
  const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ?? o.label) === t), R = (e, t) => !!t && !w(e, t), z = (e, t) => {
9
9
  const a = t ? t.length + 2 : 0;
10
10
  return e.slice(a);
@@ -31,7 +31,7 @@ const L = "Other", w = (e, t) => e == null ? void 0 : e.find((o) => (o.value ??
31
31
  renderDescription: () => /* @__PURE__ */ s.createElement(s.Fragment, null, N, _)
32
32
  });
33
33
  }, J = ({ children: e, className: t }) => {
34
- const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ? H.ONE : f;
34
+ const { options: o, addOther: a, addOtherLabel: O, id: m, numberOfColumns: f, hasError: b } = C(), { t: E } = F(), { isMobile: v } = q(), l = d(e, i.Option), r = y(null), c = O || E("add-other.default-other-option-label") || L, I = v ? j.ONE : f;
35
35
  return x(() => {
36
36
  var n;
37
37
  (n = r.current) == null || n.focus();
@@ -105,11 +105,11 @@ p.Label = K;
105
105
  p.Input = Q;
106
106
  p.Control = W;
107
107
  p.OtherInput = X;
108
- i.Label = A;
108
+ i.Label = H;
109
109
  i.Options = J;
110
110
  i.Option = p;
111
111
  i.Description = U;
112
- i.Error = j;
112
+ i.Error = A;
113
113
  const Y = "_labelImage_45itv_1", Z = "_options_45itv_26", ee = "_option_45itv_26", te = "_optionInput_45itv_46", oe = "_optionControl_45itv_64", ne = "_optionLabel_45itv_142", de = {
114
114
  labelImage: Y,
115
115
  options: Z,
@@ -1,5 +1,5 @@
1
1
  import o from "react";
2
- import { R as r } from "./radio-group-field-rac-Dt2pU0VV.js";
2
+ import { R as r } from "./radio-group-field-rac-BSVmjEgZ.js";
3
3
  const R = () => /* @__PURE__ */ o.createElement(r, null);
4
4
  export {
5
5
  R as RadioGroupRAC
@@ -1,24 +1,24 @@
1
1
  import { RicosViewer as D } from "@wix/ricos/viewer";
2
2
  import d from "classnames";
3
3
  import e, { useCallback as N, useState as y, useRef as O } from "react";
4
- import { ah as v, ae as I, ar as A } from "./form-DzjdnO7t.js";
4
+ import { ai as v, af as I, as as A } from "./form-CtWkUmxc.js";
5
5
  import { RadioGroup as w, RadioField as M, RadioButton as B } from "react-aria-components";
6
6
  import { f as m, a as T } from "./find-child-C60k4CxG.js";
7
- import { D as H, E as P } from "./field-error-headless-DTKnr5Zx.js";
8
- import { L as q } from "./field-label-headless-DV4aNd5Y.js";
7
+ import { D as P, E as q } from "./field-error-headless-D6iejMQP.js";
8
+ import { L as H } from "./field-label-headless-BWLfU3YB.js";
9
9
  import { E as x } from "./error-icon-hZxQ6DEy.js";
10
- import { s as u } from "./field-rac.module-DtugsLiL.js";
11
- import { r as k, H as z, G, l as Q, h as U } from "./form-element-classes-Bi-nNM8q.js";
10
+ import { s as u } from "./field-rac.module-DnUIb9Oh.js";
11
+ import { z, P as k, O as G, q as j, j as Q } from "./form-element-classes-BSMjWijd.js";
12
12
  const t = ({ children: r }) => {
13
- const { id: n, value: o, onChange: s, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = v(), { labelId: p } = I(), R = N((F) => s(Number(F)), [
14
- s
15
- ]), g = m(r, t.Label), a = m(r, t.Ratings), f = m(r, t.Description), S = m(r, t.Error);
13
+ const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = v(), { labelId: p } = I(), R = N((F) => o(Number(F)), [
14
+ o
15
+ ]), f = m(r, t.Label), a = m(r, t.Ratings), g = m(r, t.Description), S = m(r, t.Error);
16
16
  return /* @__PURE__ */ e.createElement(E, {
17
17
  fieldId: n,
18
- renderLabel: () => g,
18
+ renderLabel: () => f,
19
19
  renderInput: () => /* @__PURE__ */ e.createElement(w, {
20
20
  "aria-labelledby": p,
21
- value: o ? String(o) : void 0,
21
+ value: s ? String(s) : void 0,
22
22
  onChange: R,
23
23
  isDisabled: l,
24
24
  isRequired: c,
@@ -27,16 +27,16 @@ const t = ({ children: r }) => {
27
27
  onFocus: L,
28
28
  orientation: "horizontal"
29
29
  }, a),
30
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, f)
30
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, g)
31
31
  });
32
- }, h = ({ children: r, className: n, getReactionLabel: o }) => {
33
- const { value: s, hasError: l } = v(), { inputId: c, ariaDescribedBy: i } = I(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
32
+ }, h = ({ children: r, className: n, getReactionLabel: s }) => {
33
+ const { value: o, hasError: l } = v(), { inputId: c, ariaDescribedBy: i } = I(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
34
34
  "1",
35
35
  "2",
36
36
  "3",
37
37
  "4",
38
38
  "5"
39
- ], g = (a) => C ? C >= a : !!s && s >= Number(a);
39
+ ], f = (a) => C ? C >= a : !!o && o >= Number(a);
40
40
  return /* @__PURE__ */ e.createElement("div", {
41
41
  ref: E,
42
42
  id: c,
@@ -46,11 +46,11 @@ const t = ({ children: r }) => {
46
46
  }, R.map((a) => T(p, {
47
47
  key: a,
48
48
  value: a,
49
- isSelected: g(a),
50
- onHoverChange: (f) => L(f ? a : void 0),
51
- label: o == null ? void 0 : o(Number(a))
49
+ isSelected: f(a),
50
+ onHoverChange: (g) => L(g ? a : void 0),
51
+ label: s == null ? void 0 : s(Number(a))
52
52
  })));
53
- }, Z = {
53
+ }, U = {
54
54
  border: 0,
55
55
  clipPath: "inset(50%)",
56
56
  height: 1,
@@ -60,10 +60,10 @@ const t = ({ children: r }) => {
60
60
  position: "absolute",
61
61
  width: 1,
62
62
  whiteSpace: "nowrap"
63
- }, _ = ({ className: r, children: n, ...o }) => {
64
- const { value: s, isSelected: l, onHoverChange: c, label: i } = o;
63
+ }, _ = ({ className: r, children: n, ...s }) => {
64
+ const { value: o, isSelected: l, onHoverChange: c, label: i } = s;
65
65
  return /* @__PURE__ */ e.createElement(M, {
66
- value: s
66
+ value: o
67
67
  }, /* @__PURE__ */ e.createElement(B, {
68
68
  className: r,
69
69
  "data-active": l || void 0,
@@ -71,16 +71,16 @@ const t = ({ children: r }) => {
71
71
  }, typeof n == "function" ? n({
72
72
  isSelected: l
73
73
  }) : n, i ? /* @__PURE__ */ e.createElement("span", {
74
- style: Z
74
+ style: U
75
75
  }, i) : null));
76
76
  };
77
77
  h.Rating = _;
78
- t.Label = q;
78
+ t.Label = H;
79
79
  t.Ratings = h;
80
80
  t.Rating = _;
81
- t.Description = H;
82
- t.Error = P;
83
- const j = (r) => /* @__PURE__ */ e.createElement("svg", {
81
+ t.Description = P;
82
+ t.Error = q;
83
+ const Z = (r) => /* @__PURE__ */ e.createElement("svg", {
84
84
  viewBox: "0 0 32 32",
85
85
  width: 32,
86
86
  height: 32,
@@ -109,9 +109,9 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
109
109
  }), i2 = () => {
110
110
  const { t: r } = A();
111
111
  return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
112
- className: d(k, u.label)
112
+ className: d(z, u.label)
113
113
  }, /* @__PURE__ */ e.createElement(t.Label.Required, {
114
- className: d(z, u.requiredMark)
114
+ className: d(k, u.requiredMark)
115
115
  })), /* @__PURE__ */ e.createElement(t.Ratings, {
116
116
  className: b.ratings,
117
117
  getReactionLabel: (n) => r("rating-input.a11y.reaction-label", {
@@ -119,10 +119,10 @@ const j = (r) => /* @__PURE__ */ e.createElement("svg", {
119
119
  })
120
120
  }, /* @__PURE__ */ e.createElement(t.Rating, {
121
121
  className: d(G, b.rating)
122
- }, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(j, null) : /* @__PURE__ */ e.createElement(J, null))), /* @__PURE__ */ e.createElement(t.Error, {
123
- className: d(Q, u.error)
122
+ }, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(Z, null) : /* @__PURE__ */ e.createElement(J, null))), /* @__PURE__ */ e.createElement(t.Error, {
123
+ className: d(j, u.error)
124
124
  }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
125
- className: d(U, u.description)
125
+ className: d(Q, u.description)
126
126
  }, X));
127
127
  };
128
128
  export {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { R as e } from "./rating-input-field-rac-xDrHHcL2.js";
2
+ import { R as e } from "./rating-input-field-rac-BvbBZZDO.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 { ah as a, ab as i, ar as T } from "./form-DzjdnO7t.js";
2
+ import { ai as a, ab as i, as as T } from "./form-CtWkUmxc.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 { ah as m, L as i, W as u, Z as R } from "./form-DzjdnO7t.js";
4
- import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-CJXbNca9.js";
5
- import { Y as g } from "./form-element-classes-Bi-nNM8q.js";
3
+ import { ai as m, L as i, W as u, Z as R } from "./form-CtWkUmxc.js";
4
+ import { u as T, R as C, s as d, T as p } from "./rich-content-rac.module-BacYkzEv.js";
5
+ import { a4 as g } from "./form-element-classes-BSMjWijd.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-CkV0Z9F-.js";
2
+ import { R as t } from "./rich-text-field-rac-D1W0mUjr.js";
3
3
  const R = () => /* @__PURE__ */ e.createElement(t, null);
4
4
  export {
5
5
  R as RichTextRAC