@wix/form-elements 1.71.0 → 1.73.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-CrzIERuK.js → appointment-rac-Bze1s2XD.js} +5 -5
  2. package/dist/component/{bookings-address-rac-Dfkpd7m-.js → bookings-address-rac-BcrkXf63.js} +1 -1
  3. package/dist/component/{bookings-email-rac-qQ7bgngn.js → bookings-email-rac-DYq5RxOP.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-plgTTOzk.js → bookings-first-name-rac-ZJ_sQ-01.js} +1 -1
  5. package/dist/component/{bookings-header-rac-B3LjHXJs.js → bookings-header-rac-Cv8kl01f.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DwDrEmTT.js → bookings-last-name-rac-BmnulSZ6.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-EGRy_-2H.js → bookings-login-bar-rac-Bdi4xs9y.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-BgViVOU-.js → bookings-phone-rac-C8DjSzUY.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CDwCdPHa.js → bookings-rich-text-rac-DYu011oy.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-wF2nX9PW.js → checkbox-field-rac-BH3yEE5j.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-jNzvn7tN.js → checkbox-group-field-headless-D_GG5LHM.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-6PaMjzeg.js → checkbox-group-field-rac-Cj7Erubs.js} +20 -19
  13. package/dist/component/{checkbox-group-rac-BV9-hfo0.js → checkbox-group-rac-CgW0DnhX.js} +1 -1
  14. package/dist/component/{checkbox-rac-BbKD6UEX.js → checkbox-rac-DOAYMMsi.js} +1 -1
  15. package/dist/component/{contacts-address-rac-pDLwXVYR.js → contacts-address-rac-DXJa4J_k.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BJx3BjlB.js → contacts-birthdate-rac-CVsuRq3B.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DyKNlrhE.js → contacts-company-rac-b2bwHSNC.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DmYj37_A.js → contacts-email-rac-DMPcpQ1c.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DeyEyMG0.js → contacts-first-name-rac-CL2BsHuJ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-SwBI_L_7.js → contacts-last-name-rac-hdBsWaqb.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BRDIz_ya.js → contacts-phone-rac-DQF6aV9B.js} +1 -1
  22. package/dist/component/{contacts-position-rac-DDfta8r4.js → contacts-position-rac-CVX-WCfx.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Bx6b16b3.js → contacts-subscribe-rac-Dl1ot9qw.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-DICtcCkJ.js → contacts-tax-id-rac-0KTXvF81.js} +1 -1
  25. package/dist/component/{date-availability-DM6KcDU2.js → date-availability-DBljhBgO.js} +1 -1
  26. package/dist/component/{date-input-field-rac-F_DfMOXT.js → date-input-field-rac-CfflD2Ar.js} +5 -5
  27. package/dist/component/{date-input-rac-Ho7shG41.js → date-input-rac-fQclCKoa.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BEXQ7hyT.js → date-picker-field-rac-BSmFOaH-.js} +6 -6
  29. package/dist/component/{date-picker-rac-C32DD1bT.js → date-picker-rac-D7I3ramu.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-BVbgkFtL.js → date-time-input-field-rac-vjZDQ_Fp.js} +5 -5
  31. package/dist/component/{date-time-input-rac-DB4xpq5h.js → date-time-input-rac-CDbS0VZR.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-C2s4IBgt.js → dext-checkbox-group-rac-BBiPt6_a.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-NyBGiLzP.js → dext-checkbox-rac-Cqp--0SO.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-JKcEE1fQ.js → dext-date-picker-rac-5Wft0w9m.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-DtamPz-x.js → dext-date-time-input-rac-Bbs7bgtn.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-194Qq0or.js → dext-dropdown-rac-CSvhtqbc.js} +1 -1
  37. package/dist/component/{dext-email-rac-Chwg6ePI.js → dext-email-rac-BoLeXqyI.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DORye-Si.js → dext-number-input-rac-DzaJYTSz.js} +1 -1
  39. package/dist/component/{dext-phone-rac-jykmsttk.js → dext-phone-rac-BagPg_CT.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-MvkExS4d.js → dext-radio-group-rac-B5HSQt7a.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-DUsqZg7A.js → dext-rating-input-rac-DrtaAf-E.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DnMlv2wO.js → dext-tags-rac-Cg4jJ4jr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-DGMWNaah.js → dext-text-area-rac-C_t-W7lk.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-Cv0NkJrp.js → dext-text-input-rac-ChvV21Jf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-DpMC8935.js → dext-url-input-rac-DclbSYTr.js} +1 -1
  46. package/dist/component/donation-rac-FYQIMm5m.js +308 -0
  47. package/dist/component/{dropdown-field-headless-C_-tm9VD.js → dropdown-field-headless-CTZ-zGqZ.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-DRKVFHE1.js → dropdown-field-rac-C1KVtxwv.js} +5 -5
  49. package/dist/component/{dropdown-rac-BLqlMGTK.js → dropdown-rac-CkkDEDje.js} +1 -1
  50. package/dist/component/{ecom-address-rac-BdlTO9SW.js → ecom-address-rac-BOuugSxX.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-CcF5V54K.js → ecom-subscription-checkbox-rac-IZeMlljb.js} +3 -3
  52. package/dist/component/{email-input-field-rac-C-lfW9Ua.js → email-input-field-rac-CNzmm1j7.js} +27 -27
  53. package/dist/component/{events-repeater-rac-sHbYZ-WY.js → events-repeater-rac-CMV0Lmwz.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-Bx_xn-K0.js → events-rsvp-rac-BmjboAco.js} +3 -3
  55. package/dist/component/{field-error-headless-DWbRjy6q.js → field-error-headless-DQZ5XAdn.js} +1 -1
  56. package/dist/component/{field-label-headless-DUWK0CI-.js → field-label-headless-DoxfHHaj.js} +1 -1
  57. package/dist/component/field-rac.module-Cac83bU5.js +21 -0
  58. package/dist/component/{file-upload-rac-D9NdbrRq.js → file-upload-rac-YEQ7uXhm.js} +47 -47
  59. package/dist/component/{fixed-payment-rac-i_hkRpLX.js → fixed-payment-rac-DDufIQBT.js} +5 -5
  60. package/dist/component/{form-Pr0rklwH.js → form-C6WwBcGP.js} +69 -69
  61. package/dist/component/{form-element-classes-BSMjWijd.js → form-element-classes-DDKCTFQj.js} +24 -22
  62. package/dist/component/form-element-keys-D0sEdpFo.js +8 -0
  63. package/dist/component/form.css +1 -1
  64. package/dist/component/form.js +1 -1
  65. package/dist/component/{header-field-rac-C22TlZYz.js → header-field-rac-DGfjrjQC.js} +3 -3
  66. package/dist/component/{header-rac-CRBMp0xN.js → header-rac-C_JE2cTg.js} +1 -1
  67. package/dist/component/image-choice-rac-LDLPQwrN.js +147 -0
  68. package/dist/component/{index-FZEaJpsD.js → index-C2srcuHD.js} +4 -4
  69. package/dist/component/{index-BJ-kFqI7.js → index-CIOoaQ8Z.js} +2 -2
  70. package/dist/component/{isObjectLike-DnLDLZFA.js → isObjectLike-E5QfEa1u.js} +1 -1
  71. package/dist/component/{multiline-address-field-rac-c1vN8M4W.js → multiline-address-field-rac-Biyj2tIN.js} +6 -6
  72. package/dist/component/{multiline-address-rac-BVd_JUMw.js → multiline-address-rac-BCqCvG7a.js} +1 -1
  73. package/dist/component/{number-input-field-rac-DXfWTZkC.js → number-input-field-rac-CwUoIbM8.js} +5 -5
  74. package/dist/component/{number-input-rac-uUl9e8AI.js → number-input-rac-CdYdTDem.js} +1 -1
  75. package/dist/component/{password-rac-BDJ6HPYo.js → password-rac-D62npVHY.js} +10 -10
  76. package/dist/component/{payment-input-rac-XRcefuRt.js → payment-input-rac-D4u-3vcW.js} +7 -7
  77. package/dist/component/{phone-input-field-rac-DHgA6BeE.js → phone-input-field-rac-uHxR3ozd.js} +15 -15
  78. package/dist/component/{phone-rac-CMtVXoft.js → phone-rac-Bf99_BGi.js} +1 -1
  79. package/dist/component/{product-list-rac-CBLHOwHX.js → product-list-rac-iRf6Ra7i.js} +5 -5
  80. package/dist/component/{quiz-radio-group-rac-CAmXql2m.js → quiz-radio-group-rac-CPGS0LEb.js} +2 -2
  81. package/dist/component/{radio-group-field-rac-DBjgd4cD.js → radio-group-field-rac-BWpTNAbO.js} +3 -3
  82. package/dist/component/{radio-group-field-rac.module-CqOyiO2g.js → radio-group-field-rac.module-WxU5zxvM.js} +3 -3
  83. package/dist/component/{radio-group-rac-CrEtErkv.js → radio-group-rac-dA4WZ1Vj.js} +1 -1
  84. package/dist/component/rating-input-field-rac-CJnFsBvH.js +127 -0
  85. package/dist/component/{rating-input-rac-CtidC0z2.js → rating-input-rac-DXVYozFV.js} +1 -1
  86. package/dist/component/{rich-content-rac.module-DX2Jd5w6.js → rich-content-rac.module-DkKwzJS7.js} +1 -1
  87. package/dist/component/{rich-text-field-rac-CusODU1H.js → rich-text-field-rac-8FWCRrpb.js} +3 -3
  88. package/dist/component/{rich-text-rac-wq_vA-qU.js → rich-text-rac-OeM_mPRy.js} +1 -1
  89. package/dist/component/{service-dropdown-rac--YcOnGmq.js → service-dropdown-rac-mvUMpcS_.js} +15 -15
  90. package/dist/component/{services-multi-choice-rac-D_kSdluR.js → services-multi-choice-rac-DrgUrn_N.js} +10 -10
  91. package/dist/component/{signature-rac-DBAg8bEo.js → signature-rac-D44U9Uyp.js} +53 -53
  92. package/dist/component/{submit-button-rac-BW3P99jM.js → submit-button-rac-BqtcgVAn.js} +2 -2
  93. package/dist/component/tags-field-rac-CemsTKWz.js +207 -0
  94. package/dist/component/{tags-rac-Bqo0dqEU.js → tags-rac-fVjCf6qo.js} +1 -1
  95. package/dist/component/{text-area-field-rac-DaWfCdVq.js → text-area-field-rac-BPciZlZb.js} +7 -7
  96. package/dist/component/{text-area-rac-BVnA5cPV.js → text-area-rac-CRTORdZM.js} +1 -1
  97. package/dist/component/{text-input-field-rac-Dm6a4jOn.js → text-input-field-rac-CvFoWlRN.js} +3 -3
  98. package/dist/component/{text-input-headless-fTooOIqx.js → text-input-headless-BQ3TWU9G.js} +3 -3
  99. package/dist/component/{text-input-rac-DA0we6AY.js → text-input-rac-DSFkEmob.js} +1 -1
  100. package/dist/component/{time-input-rac-DQ9raFL_.js → time-input-rac-CGgs7ncp.js} +9 -9
  101. package/dist/component/{url-input-field-rac-BEpbWAVe.js → url-input-field-rac-CqvgTc-F.js} +13 -13
  102. package/dist/component/{url-input-rac-Du6EqRQX.js → url-input-rac-C45KOwnr.js} +1 -1
  103. package/dist/component/{use-service-options-base-OMXZXAVb.js → use-service-options-base-D4Zl-iGW.js} +1 -1
  104. package/package.json +2 -2
  105. package/dist/component/donation-rac-DeBx8D9a.js +0 -302
  106. package/dist/component/field-rac.module-DnUIb9Oh.js +0 -21
  107. package/dist/component/image-choice-rac-cjylrvfO.js +0 -141
  108. package/dist/component/rating-input-field-rac-BWn0usVp.js +0 -130
  109. package/dist/component/tags-field-rac-DSdwley7.js +0 -201
@@ -1,19 +1,19 @@
1
- import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as we } from "react";
2
- import { RicosViewer as Re } from "@wix/ricos/viewer";
1
+ import s, { useRef as W, useCallback as I, useState as K, useEffect as Q, useMemo as De, isValidElement as Re } from "react";
2
+ import { RicosViewer as we } from "@wix/ricos/viewer";
3
3
  import v from "classnames";
4
4
  import { useHover as ve, useFocusRing as xe, mergeProps as Se } from "react-aria";
5
- import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as Pe, RadioField as _e, RadioButton as Ne } from "react-aria-components";
5
+ import { RadioGroup as Fe, Button as fe, TextField as Ae, Input as _e, RadioField as Pe, RadioButton as Ne } from "react-aria-components";
6
6
  import he from "signature_pad";
7
- import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as q, ai as A, af as H, ak as Ee, as as Me } from "./form-Pr0rklwH.js";
7
+ import { z as Ue, ae as Oe, ab as Be, aq as ge, E as ce, e as q, ai as A, af as H, ak as Ee, as as Me } from "./form-C6WwBcGP.js";
8
8
  import { f as T, a as F } from "./find-child-C60k4CxG.js";
9
- import { D as We, E as He } from "./field-error-headless-DWbRjy6q.js";
10
- import { L as Ye } from "./field-label-headless-DUWK0CI-.js";
9
+ import { D as We, E as He } from "./field-error-headless-DQZ5XAdn.js";
10
+ import { L as Ye } from "./field-label-headless-DoxfHHaj.js";
11
11
  import { D as ke } from "./data-hooks-Dkw1pbRj.js";
12
12
  import { E as $e } from "./error-icon-hZxQ6DEy.js";
13
- import { s as z } from "./field-rac.module-DnUIb9Oh.js";
14
- import { z as ue, P as ze, y as B, a1 as Ve, q as Ze, j as Xe } from "./form-element-classes-BSMjWijd.js";
13
+ import { s as z } from "./field-rac.module-Cac83bU5.js";
14
+ import { z as ue, R as ze, y as B, a3 as Ve, q as Ze, j as Xe } from "./form-element-classes-DDKCTFQj.js";
15
15
  const qe = typeof s.useId == "function" ? s.useId : () => W(Ue()).current;
16
- var w = /* @__PURE__ */ (function(e) {
16
+ var R = /* @__PURE__ */ (function(e) {
17
17
  return e.TEXT = "text/plain", e.POINTS = "points/json", e;
18
18
  })({}), b = /* @__PURE__ */ (function(e) {
19
19
  return e.DRAW = "draw", e.TYPE = "type", e.UPLOAD = "upload", e;
@@ -103,10 +103,10 @@ function me(e, t) {
103
103
  }
104
104
  const M = 480, et = (e) => Ce({
105
105
  data: JSON.stringify(e),
106
- mimeType: w.POINTS
106
+ mimeType: R.POINTS
107
107
  }), Le = (e) => {
108
108
  const t = N(e);
109
- if ((t == null ? void 0 : t.mimeType) === w.POINTS)
109
+ if ((t == null ? void 0 : t.mimeType) === R.POINTS)
110
110
  try {
111
111
  return JSON.parse(t.data);
112
112
  } catch {
@@ -186,13 +186,13 @@ async function ot(e, t) {
186
186
  if (!a)
187
187
  return e;
188
188
  const n = a.mimeType;
189
- if (n === w.TEXT) {
189
+ if (n === R.TEXT) {
190
190
  const r = V(M * 20, M, 1);
191
191
  nt(r, a.data, "black", t, "white");
192
192
  const o = J(r, "white");
193
193
  return (o == null ? void 0 : o.toDataURL("image/jpeg", 0.7)) ?? null;
194
194
  }
195
- if (n === w.POINTS) {
195
+ if (n === R.POINTS) {
196
196
  const r = Le(e);
197
197
  if (!r)
198
198
  return null;
@@ -275,9 +275,9 @@ const it = ({ value: e, onChange: t, target: a }) => {
275
275
  if (o == null)
276
276
  return b.DRAW;
277
277
  switch (i == null ? void 0 : i.mimeType) {
278
- case w.POINTS:
278
+ case R.POINTS:
279
279
  return b.DRAW;
280
- case w.TEXT:
280
+ case R.TEXT:
281
281
  return b.TYPE;
282
282
  default:
283
283
  return b.UPLOAD;
@@ -320,16 +320,16 @@ const it = ({ value: e, onChange: t, target: a }) => {
320
320
  handleClear: f
321
321
  };
322
322
  }, ct = {
323
- [b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === w.POINTS,
324
- [b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === w.TEXT,
325
- [b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== w.POINTS && (e == null ? void 0 : e.mimeType) !== w.TEXT
323
+ [b.DRAW]: (e) => (e == null ? void 0 : e.mimeType) === R.POINTS,
324
+ [b.TYPE]: (e) => (e == null ? void 0 : e.mimeType) === R.TEXT,
325
+ [b.UPLOAD]: (e) => (e == null ? void 0 : e.mimeType) !== R.POINTS && (e == null ? void 0 : e.mimeType) !== R.TEXT
326
326
  };
327
327
  function ut(e, t, a) {
328
328
  return t && ct[e](a) ? t : void 0;
329
329
  }
330
330
  const dt = (e) => {
331
331
  const t = e.url ? N(e.url) : void 0;
332
- return t ? t.mimeType !== w.POINTS && t.mimeType !== w.TEXT : !0;
332
+ return t ? t.mimeType !== R.POINTS && t.mimeType !== R.TEXT : !0;
333
333
  }, te = () => {
334
334
  const { hoverProps: e, isHovered: t } = ve({}), { focusProps: a, isFocused: n, isFocusVisible: r } = xe({
335
335
  within: !0
@@ -375,15 +375,15 @@ const dt = (e) => {
375
375
  }), o && F(d, {
376
376
  handleClear: i
377
377
  }));
378
- }, P = ({ children: e, className: t, ...a }) => {
378
+ }, _ = ({ children: e, className: t, ...a }) => {
379
379
  const { signatureMode: n, setSignatureMode: r, uploadEnabled: o } = a, { disabled: i } = A(), { labelId: l, inputId: c } = H(), d = I((h) => {
380
380
  r(h);
381
381
  }, [
382
382
  r
383
383
  ]), u = {
384
- [b.DRAW]: T(e, P.Draw),
385
- [b.TYPE]: T(e, P.Type),
386
- [b.UPLOAD]: o ? T(e, P.Upload) : null
384
+ [b.DRAW]: T(e, _.Draw),
385
+ [b.TYPE]: T(e, _.Type),
386
+ [b.UPLOAD]: o ? T(e, _.Upload) : null
387
387
  }, f = u[n], m = mt(f) ? f.props.description : void 0;
388
388
  return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
389
389
  role: "status",
@@ -404,7 +404,7 @@ const dt = (e) => {
404
404
  "data-hook": ke.SIGNATURE_FIELD_MODE_SELECT,
405
405
  className: t
406
406
  }, u[b.DRAW], u[b.TYPE], u[b.UPLOAD]));
407
- }, mt = (e) => /* @__PURE__ */ we(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(_e, {
407
+ }, mt = (e) => /* @__PURE__ */ Re(e), ne = ({ mode: e, children: t, className: a, "aria-label": n }) => /* @__PURE__ */ s.createElement(Pe, {
408
408
  value: e,
409
409
  "aria-label": n
410
410
  }, /* @__PURE__ */ s.createElement(Ne, {
@@ -429,8 +429,8 @@ const dt = (e) => {
429
429
  "data-hook": `clear-${i}`,
430
430
  className: t
431
431
  }, e);
432
- }, _ = ({ children: e, className: t, ...a }) => {
433
- const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, _.Canvas), h = T(e, _.Type), E = T(e, _.Upload);
432
+ }, P = ({ children: e, className: t, ...a }) => {
433
+ const { signatureView: n, signatureValueForView: r, handleChange: o, handleBeforeChange: i } = a, { disabled: l, readOnly: c, onBlur: d, onFocus: u, hasError: f } = A(), m = T(e, P.Canvas), h = T(e, P.Type), E = T(e, P.Upload);
434
434
  return /* @__PURE__ */ s.createElement("div", {
435
435
  className: t,
436
436
  "data-hook": "signature-input",
@@ -468,7 +468,7 @@ const dt = (e) => {
468
468
  var D;
469
469
  (D = L.current) == null || D.focus();
470
470
  }, f);
471
- const R = De(() => ({
471
+ const w = De(() => ({
472
472
  throttle: 0,
473
473
  dotSize: 2,
474
474
  minWidth: 1,
@@ -495,7 +495,7 @@ const dt = (e) => {
495
495
  var k, $, se, ie;
496
496
  if (D != null) {
497
497
  if (L.current = D, p.current = new he(D, {
498
- ...R,
498
+ ...w,
499
499
  penColor: getComputedStyle(D).color || void 0
500
500
  }), me(L.current, p.current), x) {
501
501
  const le = Le(x);
@@ -508,7 +508,7 @@ const dt = (e) => {
508
508
  } else
509
509
  ($ = y.current) == null || $.disconnect(), (se = p.current) == null || se.removeEventListener("endStroke", G), (ie = p.current) == null || ie.removeEventListener("beginStroke", j);
510
510
  }, [
511
- R,
511
+ w,
512
512
  x,
513
513
  j,
514
514
  G
@@ -538,23 +538,23 @@ const dt = (e) => {
538
538
  data: ""
539
539
  };
540
540
  Ee(() => {
541
- const R = document.getElementById(h);
542
- R == null || R.focus({
541
+ const w = document.getElementById(h);
542
+ w == null || w.focus({
543
543
  preventScroll: !0
544
544
  });
545
545
  }, u), Q(() => {
546
546
  if (!n) {
547
- const R = document.getElementById(h);
548
- R && (R.value = "");
547
+ const w = document.getElementById(h);
548
+ w && (w.value = "");
549
549
  }
550
550
  }, [
551
551
  n,
552
552
  h
553
553
  ]);
554
- const U = I((R) => {
555
- o == null || o(), R.trim() ? r(ee(Ce({
556
- data: R,
557
- mimeType: w.TEXT
554
+ const U = I((w) => {
555
+ o == null || o(), w.trim() ? r(ee(Ce({
556
+ data: w,
557
+ mimeType: R.TEXT
558
558
  }))) : r(null);
559
559
  }, [
560
560
  o,
@@ -580,7 +580,7 @@ const dt = (e) => {
580
580
  })));
581
581
  }, Lt = ({ className: e, placeholder: t, ...a }) => {
582
582
  const { inputId: n, ariaDescribedBy: r } = a;
583
- return /* @__PURE__ */ s.createElement(Pe, {
583
+ return /* @__PURE__ */ s.createElement(_e, {
584
584
  id: n,
585
585
  "data-hook": "signature-text",
586
586
  "aria-describedby": r,
@@ -657,15 +657,15 @@ g.Input = Z;
657
657
  g.Description = We;
658
658
  g.Error = He;
659
659
  Z.Header = X;
660
- Z.Value = _;
661
- X.Tabs = P;
660
+ Z.Value = P;
661
+ X.Tabs = _;
662
662
  X.Clear = gt;
663
- P.Draw = pt;
664
- P.Type = ft;
665
- P.Upload = ht;
666
- _.Canvas = Et;
667
- _.Type = ae;
668
- _.Upload = re;
663
+ _.Draw = pt;
664
+ _.Type = ft;
665
+ _.Upload = ht;
666
+ P.Canvas = Et;
667
+ P.Type = ae;
668
+ P.Upload = re;
669
669
  ae.Value = Lt;
670
670
  re.Button = yt;
671
671
  const Tt = () => {
@@ -714,7 +714,7 @@ const Tt = () => {
714
714
  }, /* @__PURE__ */ s.createElement("path", {
715
715
  fillRule: "evenodd",
716
716
  d: "M18.8525,7.543 L17.7515,8.644 L15.3565,6.248 L16.4575,5.147 C16.5555,5.05 16.6835,5.001 16.8105,5.001 C16.9385,5.001 17.0665,5.05 17.1645,5.147 L18.8525,6.835 C19.0475,7.03 19.0475,7.348 18.8525,7.543 L18.8525,7.543 Z M8.1895,18.206 C8.1185,18.276 8.0275,18.324 7.9295,18.344 L5.1275,18.873 L5.6575,16.07 C5.6755,15.972 5.7225,15.882 5.7945,15.811 L14.6495,6.955 L17.0445,9.351 L8.1895,18.206 Z M19.5595,6.128 L17.8715,4.44 C17.2865,3.856 16.3355,3.856 15.7505,4.44 L5.0875,15.103 C4.8735,15.317 4.7295,15.588 4.6745,15.886 L4.0085,19.407 C3.9775,19.569 4.0295,19.736 4.1465,19.854 C4.2415,19.948 4.3685,20 4.4995,20 C4.5305,20 4.5615,19.997 4.5925,19.991 L8.1165,19.326 C8.4145,19.269 8.6855,19.125 8.8965,18.912 L19.5595,8.25 C20.1445,7.665 20.1445,6.713 19.5595,6.128 L19.5595,6.128 Z"
717
- })), wt = (e) => /* @__PURE__ */ s.createElement("svg", {
717
+ })), Rt = (e) => /* @__PURE__ */ s.createElement("svg", {
718
718
  viewBox: "0 0 20 20",
719
719
  width: 24,
720
720
  height: 24,
@@ -724,17 +724,17 @@ const Tt = () => {
724
724
  }, /* @__PURE__ */ s.createElement("path", {
725
725
  fillRule: "evenodd",
726
726
  d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z"
727
- })), Rt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", Pt = "_box_15ti0_118", _t = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
728
- header: Rt,
727
+ })), wt = "_header_15ti0_1", vt = "_tabs_15ti0_8", xt = "_tab_15ti0_8", St = "_tabIcon_15ti0_74", Ft = "_clear_15ti0_81", At = "_value_15ti0_113", _t = "_box_15ti0_118", Pt = "_uploadBox_15ti0_119", Nt = "_typeInput_15ti0_230", C = {
728
+ header: wt,
729
729
  tabs: vt,
730
730
  tab: xt,
731
731
  tabIcon: St,
732
732
  clear: Ft,
733
733
  value: At,
734
- box: Pt,
735
- uploadBox: _t,
734
+ box: _t,
735
+ uploadBox: Pt,
736
736
  typeInput: Nt
737
- }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(Re, {
737
+ }, Ut = ({ content: e, locale: t }) => /* @__PURE__ */ s.createElement(we, {
738
738
  content: e,
739
739
  locale: t
740
740
  }), Ot = () => {
@@ -757,7 +757,7 @@ const Tt = () => {
757
757
  className: v(B, C.tab),
758
758
  "aria-label": e.typeLabel,
759
759
  description: e.typeDescription
760
- }, /* @__PURE__ */ s.createElement(wt, {
760
+ }, /* @__PURE__ */ s.createElement(Rt, {
761
761
  className: C.tabIcon
762
762
  })), /* @__PURE__ */ s.createElement(g.Input.Header.Tabs.Upload, {
763
763
  className: v(B, C.tab),
@@ -1,9 +1,9 @@
1
1
  import t from "react";
2
2
  import l from "classnames";
3
- import { ai as c } from "./form-Pr0rklwH.js";
3
+ import { ai as c } from "./form-C6WwBcGP.js";
4
4
  import { ProgressBar as g, Button as b } from "react-aria-components";
5
5
  import { f as i } from "./find-child-C60k4CxG.js";
6
- import { a3 as v, a2 as N, a5 as f } from "./form-element-classes-BSMjWijd.js";
6
+ import { a5 as v, a4 as N, a7 as f } from "./form-element-classes-DDKCTFQj.js";
7
7
  function C(e) {
8
8
  const s = "calc(50% - 2px)";
9
9
  return /* @__PURE__ */ t.createElement(g, {
@@ -0,0 +1,207 @@
1
+ import { RicosViewer as H } from "@wix/ricos/viewer";
2
+ import _ from "classnames";
3
+ import e, { useMemo as I, useState as j, useRef as V, useLayoutEffect as z, useCallback as k } from "react";
4
+ import { ai as g, af as K, as as T, ab as Q, ak as Y, ac as J } from "./form-C6WwBcGP.js";
5
+ import { CheckboxGroup as X, TextField as Z, Input as ee, CheckboxField as te, CheckboxButton as ae } from "react-aria-components";
6
+ import { f, a as x } from "./find-child-C60k4CxG.js";
7
+ import { E as B, D as P } from "./field-error-headless-DQZ5XAdn.js";
8
+ import { L as $ } from "./field-label-headless-DoxfHHaj.js";
9
+ import { F as ne } from "./fieldset-headless-CD3fds9J.js";
10
+ import { N as D } from "./options-layout-constants-DEfIEJWD.js";
11
+ import { E as se } from "./error-icon-hZxQ6DEy.js";
12
+ import { s as S } from "./field-rac.module-Cac83bU5.js";
13
+ import { z as oe, R as re, a0 as le, a1 as ie, a2 as ce, y as ue, q as de, j as me } from "./form-element-classes-DDKCTFQj.js";
14
+ import { T as pe } from "./form-element-keys-D0sEdpFo.js";
15
+ import { o as Ee } from "./options-rac.module-KM-VT_KY.js";
16
+ const N = "Other", he = (a, t) => {
17
+ const c = t.length + 2;
18
+ return (a.find((s) => s.startsWith(`${t}: `)) || "").slice(c);
19
+ }, Oe = (a) => a.map((t) => t.value ?? t.label), q = ({ className: a, ...t }) => {
20
+ const { label: l } = t;
21
+ return /* @__PURE__ */ e.createElement("span", {
22
+ className: a
23
+ }, l);
24
+ }, W = ({ className: a }) => {
25
+ const { value: t, onChange: l, addOtherLabel: c, addOtherPlaceholder: i, otherInputCharacterLimit: s, disabled: u, readOnly: b, hasError: d } = g(), { t: m } = T(), o = c || m("add-other.default-other-option-label") || N, p = I(() => he(t || [], o), [
26
+ t,
27
+ o
28
+ ]), [n, L] = j(p), E = V(l);
29
+ z(() => {
30
+ E.current = l;
31
+ });
32
+ const F = k((h) => {
33
+ L(h);
34
+ const C = (t || []).filter((O) => !O.startsWith(`${o}:`) && O !== o), R = h ? `${o}: ${h}` : o;
35
+ E.current([
36
+ ...C,
37
+ R
38
+ ]);
39
+ }, [
40
+ t,
41
+ o
42
+ ]);
43
+ return /* @__PURE__ */ e.createElement(Z, {
44
+ value: n,
45
+ onChange: F,
46
+ isDisabled: u,
47
+ isReadOnly: b,
48
+ isInvalid: d,
49
+ "aria-label": o
50
+ }, /* @__PURE__ */ e.createElement(ee, {
51
+ "data-hook": "tags-other-input",
52
+ "data-filled": n ? !0 : void 0,
53
+ placeholder: i,
54
+ maxLength: s,
55
+ className: a
56
+ }));
57
+ }, v = ({ children: a, className: t, ...l }) => {
58
+ const { value: c, label: i, isOther: s, isFirstOption: u } = l, { id: b, value: d, onChange: m, options: o, disabled: p, readOnly: n, hasError: L } = g(), E = V(null);
59
+ Y(() => {
60
+ var O;
61
+ u && ((O = E.current) == null || O.focus({
62
+ preventScroll: !0
63
+ }));
64
+ }, b);
65
+ const F = f(a, q), h = I(() => d || [], [
66
+ d
67
+ ]), C = I(() => s ? h.find((O) => O === i || O.startsWith(`${i}: `)) || i : c, [
68
+ s,
69
+ h,
70
+ i,
71
+ c
72
+ ]), R = k((O) => {
73
+ const U = Oe(o || []), M = h.filter((w) => U.includes(w));
74
+ m(O ? [
75
+ ...M,
76
+ i
77
+ ] : M);
78
+ }, [
79
+ i,
80
+ m,
81
+ o,
82
+ h
83
+ ]);
84
+ return /* @__PURE__ */ e.createElement(te, {
85
+ inputRef: E,
86
+ value: C,
87
+ onChange: s ? R : void 0,
88
+ isDisabled: p,
89
+ isReadOnly: n,
90
+ isInvalid: L
91
+ }, /* @__PURE__ */ e.createElement(ae, {
92
+ className: t,
93
+ "data-hook": `tags-${s ? N : c}`
94
+ }, x(F, {
95
+ value: c,
96
+ label: i,
97
+ isOther: s,
98
+ isFirstOption: u
99
+ })));
100
+ }, A = ({ children: a, className: t }) => {
101
+ const { options: l, addOther: c, addOtherLabel: i, numberOfColumns: s = D.FREE_FLOW } = g(), { isMobile: u } = Q(), { t: b } = T(), d = u && s !== D.FREE_FLOW ? D.ONE : s, m = i || b("add-other.default-other-option-label") || N, o = f(a, v), p = I(() => {
102
+ const n = l || [];
103
+ return c ? [
104
+ ...n,
105
+ {
106
+ label: m,
107
+ value: m,
108
+ isOther: !0
109
+ }
110
+ ] : n;
111
+ }, [
112
+ l,
113
+ c,
114
+ m
115
+ ]);
116
+ return p.length === 0 ? null : /* @__PURE__ */ e.createElement("div", {
117
+ className: t,
118
+ "data-columns": d
119
+ }, p.map((n, L) => {
120
+ const E = n.value ?? n.label;
121
+ return x(o, {
122
+ key: n.isOther ? N : E,
123
+ value: E,
124
+ label: n.label,
125
+ isOther: n.isOther,
126
+ isFirstOption: L === 0
127
+ });
128
+ }));
129
+ }, G = ({ children: a, className: t }) => {
130
+ const { addOther: l, addOtherLabel: c, hasError: i, readOnly: s, value: u } = g(), { t: b } = T(), d = c || b("add-other.default-other-option-label") || N, m = f(a, A), o = f(a, W), p = I(() => !l || !u ? !1 : u.some((n) => n === d || n.startsWith(`${d}:`)), [
131
+ l,
132
+ u,
133
+ d
134
+ ]);
135
+ return /* @__PURE__ */ e.createElement("div", {
136
+ className: t,
137
+ "data-invalid": i,
138
+ "data-readonly": s
139
+ }, m, p && o);
140
+ }, r = ({ children: a }) => {
141
+ const { id: t, value: l, onChange: c, FieldLayout: i, required: s, disabled: u, readOnly: b, hasError: d, onBlur: m, onFocus: o } = g(), { inputId: p, labelId: n, ariaDescribedBy: L } = K(), E = I(() => l || [], [
142
+ l
143
+ ]), F = f(a, $), h = f(a, G), C = f(a, P), R = f(a, B);
144
+ return /* @__PURE__ */ e.createElement(i, {
145
+ fieldId: t,
146
+ renderLabel: () => F,
147
+ renderInput: () => /* @__PURE__ */ e.createElement(ne, {
148
+ id: p,
149
+ ariaLabelledBy: n,
150
+ ariaDescribedBy: L,
151
+ required: s,
152
+ onBlur: m,
153
+ onFocus: o
154
+ }, /* @__PURE__ */ e.createElement(X, {
155
+ "aria-labelledby": n,
156
+ value: E,
157
+ onChange: c,
158
+ isDisabled: u,
159
+ isReadOnly: b,
160
+ isRequired: s,
161
+ isInvalid: d
162
+ }, h)),
163
+ renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, R, C)
164
+ });
165
+ };
166
+ A.Option = v;
167
+ v.Label = q;
168
+ r.Label = $;
169
+ r.Control = G;
170
+ r.Options = A;
171
+ r.OtherInput = W;
172
+ r.Description = P;
173
+ r.Error = B;
174
+ const be = "_control_1kvnw_1", fe = "_options_1kvnw_7", Le = "_option_1kvnw_7", y = {
175
+ control: be,
176
+ options: fe,
177
+ option: Le
178
+ }, _e = ({ content: a, locale: t }) => /* @__PURE__ */ e.createElement(H, {
179
+ content: a,
180
+ locale: t
181
+ }), xe = () => {
182
+ const a = J(pe);
183
+ return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(r.Label, {
184
+ className: _(oe, S.label)
185
+ }, /* @__PURE__ */ e.createElement(r.Label.Required, {
186
+ className: _(re, S.requiredMark)
187
+ })), /* @__PURE__ */ e.createElement(r.Control, {
188
+ className: y.control
189
+ }, /* @__PURE__ */ e.createElement(r.Options, {
190
+ className: _(le, y.options)
191
+ }, /* @__PURE__ */ e.createElement(r.Options.Option, {
192
+ className: ({ isSelected: t }) => _(ie, y.option, a, {
193
+ [ce]: t
194
+ })
195
+ }, /* @__PURE__ */ e.createElement(r.Options.Option.Label, {
196
+ className: Ee.optionLabel
197
+ }))), /* @__PURE__ */ e.createElement(r.OtherInput, {
198
+ className: _(ue, S.input)
199
+ })), /* @__PURE__ */ e.createElement(r.Error, {
200
+ className: _(de, S.error)
201
+ }, /* @__PURE__ */ e.createElement(se, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
202
+ className: _(me, S.description)
203
+ }, _e));
204
+ };
205
+ export {
206
+ xe as T
207
+ };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-DSdwley7.js";
2
+ import { T as r } from "./tags-field-rac-CemsTKWz.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -2,13 +2,13 @@ import { RicosViewer as S } from "@wix/ricos/viewer";
2
2
  import n from "classnames";
3
3
  import r, { useCallback as O, useRef as T } from "react";
4
4
  import { TextField as y, TextArea as N } from "react-aria-components";
5
- import { ai as E, af as d, ak as x } from "./form-Pr0rklwH.js";
5
+ import { ai as E, af as d, ak as x } from "./form-C6WwBcGP.js";
6
6
  import { f as c } from "./find-child-C60k4CxG.js";
7
- import { D as h, E as M } from "./field-error-headless-DWbRjy6q.js";
8
- import { L as g } from "./field-label-headless-DUWK0CI-.js";
7
+ import { D as h, E as M } from "./field-error-headless-DQZ5XAdn.js";
8
+ import { L as g } from "./field-label-headless-DoxfHHaj.js";
9
9
  import { E as q } from "./error-icon-hZxQ6DEy.js";
10
- import { s } from "./field-rac.module-DnUIb9Oh.js";
11
- import { z as v, P as B, y as P, q as k, j as U } from "./form-element-classes-BSMjWijd.js";
10
+ import { s } from "./field-rac.module-Cac83bU5.js";
11
+ import { z as v, R as B, y as k, q as P, j as U } from "./form-element-classes-DDKCTFQj.js";
12
12
  const e = ({ children: t }) => {
13
13
  const { id: a, value: m, onChange: l, disabled: u, required: o, readOnly: i, onBlur: p, onFocus: f, FieldLayout: I, hasError: F } = E(), { labelId: L } = d(), R = O((C) => {
14
14
  l(C);
@@ -58,9 +58,9 @@ const j = "_input_ug5v8_1", w = {
58
58
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
59
59
  className: n(B, s.requiredMark)
60
60
  })), /* @__PURE__ */ r.createElement(e.Input, {
61
- className: n(P, s.input, w.input)
61
+ className: n(k, s.input, w.input)
62
62
  }), /* @__PURE__ */ r.createElement(e.Error, {
63
- className: n(k, s.error)
63
+ className: n(P, s.error)
64
64
  }, /* @__PURE__ */ r.createElement(q, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
65
65
  className: n(U, s.description)
66
66
  }, z));
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-DaWfCdVq.js";
2
+ import { T as r } from "./text-area-field-rac-BPciZlZb.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,10 +1,10 @@
1
1
  import { RicosViewer as m } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { T as r } from "./text-input-headless-fTooOIqx.js";
4
+ import { T as r } from "./text-input-headless-BQ3TWU9G.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
- import { s as a } from "./field-rac.module-DnUIb9Oh.js";
7
- import { z as n, P as c, y as E, q as i, j as R } from "./form-element-classes-BSMjWijd.js";
6
+ import { s as a } from "./field-rac.module-Cac83bU5.js";
7
+ import { z as n, R as c, y as E, q as i, j as R } from "./form-element-classes-DDKCTFQj.js";
8
8
  const _ = ({ content: s, locale: l }) => /* @__PURE__ */ e.createElement(m, {
9
9
  content: s,
10
10
  locale: l
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
2
  import { TextField as R, Input as v } from "react-aria-components";
3
- import { ai as d, af as c, ak as T } from "./form-Pr0rklwH.js";
3
+ import { ai as d, af as c, ak as T } from "./form-C6WwBcGP.js";
4
4
  import { f as a } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-DWbRjy6q.js";
6
- import { L as x } from "./field-label-headless-DUWK0CI-.js";
5
+ import { D as g, E as h } from "./field-error-headless-DQZ5XAdn.js";
6
+ import { L as x } from "./field-label-headless-DoxfHHaj.js";
7
7
  const e = ({ children: r }) => {
8
8
  const { id: s, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: f, FieldLayout: b } = d(), { labelId: E } = c(), I = a(r, e.Label), F = a(r, e.Input), y = a(r, e.Description), D = a(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(b, {
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-Dm6a4jOn.js";
2
+ import { T as e } from "./text-input-field-rac-CvFoWlRN.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -3,16 +3,16 @@ import { RicosViewer as k } from "@wix/ricos/viewer";
3
3
  import c from "classnames";
4
4
  import { parseTime as v } from "@internationalized/date";
5
5
  import { TimeField as x, DateInput as B, DateSegment as h, TimeFieldStateContext as U } from "react-aria-components";
6
- import { ai as p, af as j, as as T, ak as z } from "./form-Pr0rklwH.js";
6
+ import { ai as p, af as j, as as T, ak as z } from "./form-C6WwBcGP.js";
7
7
  import { f as m, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as Q, E as G } from "./field-error-headless-DWbRjy6q.js";
9
- import { L as J } from "./field-label-headless-DUWK0CI-.js";
8
+ import { D as Q, E as G } from "./field-error-headless-DQZ5XAdn.js";
9
+ import { L as J } from "./field-label-headless-DoxfHHaj.js";
10
10
  import { E as K } from "./error-icon-hZxQ6DEy.js";
11
11
  import { H as S } from "./custom-focus-class-_483Pkwp.js";
12
- import { s as E } from "./field-rac.module-DnUIb9Oh.js";
13
- import { z as W, P as X, y as Y, q as Z, j as $ } from "./form-element-classes-BSMjWijd.js";
12
+ import { s as E } from "./field-rac.module-Cac83bU5.js";
13
+ import { z as W, R as X, y as Y, q as Z, j as $ } from "./form-element-classes-DDKCTFQj.js";
14
14
  const r = ({ children: t }) => {
15
- const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: g, labelId: D } = j(), R = H((M) => {
15
+ const { id: n, value: l, onChange: o, disabled: i, readOnly: s, required: a, onBlur: d, onFocus: f, use24HourFormat: b, FieldLayout: I, hasError: C } = p(), { inputId: L, ariaDescribedBy: R, labelId: g } = j(), D = H((M) => {
16
16
  const w = ae(M);
17
17
  o(w);
18
18
  }, [
@@ -22,11 +22,11 @@ const r = ({ children: t }) => {
22
22
  fieldId: n,
23
23
  renderLabel: () => y,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(x, {
25
- "aria-labelledby": D,
25
+ "aria-labelledby": g,
26
26
  id: L,
27
- "aria-describedby": g,
27
+ "aria-describedby": R,
28
28
  value: O,
29
- onChange: R,
29
+ onChange: D,
30
30
  isDisabled: i,
31
31
  isReadOnly: s,
32
32
  isInvalid: C,