@wix/form-elements 1.158.0 → 1.160.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 (117) hide show
  1. package/dist/component/{appointment-rac-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
  2. package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
  3. package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
  5. package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
  8. package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
  12. package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
  14. package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
  15. package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
  17. package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
  22. package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
  25. package/dist/component/{date-availability-_A9DS6za.js → date-availability-Dach9aRC.js} +1 -1
  26. package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
  27. package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
  29. package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-D6cR0zH9.js} +1 -1
  30. package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
  31. package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
  37. package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
  39. package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-CcohoFQp.js} +1 -1
  40. package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
  41. package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
  42. package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
  46. package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
  47. package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
  48. package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
  49. package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
  51. package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
  52. package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
  53. package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
  54. package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
  55. package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
  56. package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
  57. package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
  58. package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
  59. package/dist/component/form.css +1 -1
  60. package/dist/component/form.js +1 -1
  61. package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
  62. package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
  63. package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
  64. package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
  65. package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
  66. package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
  67. package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
  68. package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
  69. package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
  70. package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
  71. package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
  72. package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
  73. package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
  74. package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
  75. package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
  76. package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
  77. package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
  78. package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
  79. package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
  80. package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
  81. package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
  82. package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
  83. package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
  84. package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
  85. package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
  86. package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
  87. package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
  88. package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
  89. package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
  90. package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
  91. package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
  92. package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
  93. package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
  94. package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
  95. package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
  96. package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
  97. package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
  98. package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
  99. package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
  100. package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
  101. package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
  102. package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
  103. package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
  104. package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
  105. package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
  106. package/dist/form.d.ts +8 -0
  107. package/package.json +2 -2
  108. package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
  109. package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
  110. package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
  111. package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
  112. package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
  113. package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
  114. package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
  115. package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
  116. package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
  117. package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
@@ -1,10 +1,10 @@
1
- import t, { useRef as V, useCallback as k } from "react";
1
+ import t, { useRef as V, useCallback as y } from "react";
2
2
  import X from "@wix/editor-react-components/AnimatedIcon";
3
3
  import p from "classnames";
4
- import { bo as B, bi as $, ai as j, ah as q, af as G, ae as J, an as K, am as Q, ag as Y, b as Z, ad as tt, al as et } from "./form-D7ulDPh1.js";
4
+ import { bz as B, bt as q, at as $, as as j, aq as G, ap as J, ay as K, ax as Q, ar as Y, b as Z, ao as tt, aw as et } from "./form-DSpx-AO8.js";
5
5
  import { ProgressBar as nt, Button as w } from "react-aria-components";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { u as x } from "./use-element-state-class-name-DY0UyIQg.js";
7
+ import { u as x } from "./use-element-state-class-name-rXM_lHug.js";
8
8
  function ot(e) {
9
9
  const s = "calc(50% - 2px)";
10
10
  return /* @__PURE__ */ t.createElement(nt, {
@@ -88,8 +88,8 @@ const r = ({ children: e }) => {
88
88
  isDisabled: c && !_,
89
89
  "aria-disabled": _ || void 0,
90
90
  "data-in-progress": m
91
- }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(y, null), I));
92
- }, y = ({ className: e }) => {
91
+ }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(k, null), I));
92
+ }, k = ({ className: e }) => {
93
93
  const { submitText: o } = B();
94
94
  return /* @__PURE__ */ t.createElement("span", {
95
95
  className: e
@@ -107,7 +107,7 @@ const r = ({ children: e }) => {
107
107
  }, R = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
108
108
  className: e
109
109
  }, /* @__PURE__ */ t.createElement(ot, null));
110
- b.Label = y;
110
+ b.Label = k;
111
111
  b.Icon = R;
112
112
  b.Loader = st;
113
113
  S.Label = D;
@@ -131,10 +131,10 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
131
131
  buttonHover: vt,
132
132
  progress: St
133
133
  }, P = () => {
134
- const e = V(null), o = k(() => {
134
+ const e = V(null), o = y(() => {
135
135
  var n;
136
136
  return (n = e.current) == null ? void 0 : n.runAnimationForward();
137
- }, []), s = k(() => {
137
+ }, []), s = y(() => {
138
138
  var n;
139
139
  return (n = e.current) == null ? void 0 : n.runAnimationBackward();
140
140
  }, []);
@@ -151,8 +151,8 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
151
151
  className: p(Z, s, a)
152
152
  }) : null;
153
153
  }, Et = () => {
154
- var A, h, F, U, M, z;
155
- const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = $(), m = (h = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : h.icon, C = (U = (F = c.nextButton) == null ? void 0 : F.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
154
+ var A, F, h, U, M, z;
155
+ const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = B(), v = !s && !(a || n), c = q(), m = (F = (A = c.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (U = (h = c.nextButton) == null ? void 0 : h.elementProps) == null ? void 0 : U.icon, f = (z = (M = c.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : z.icon, I = x({
156
156
  globalClasses: Y,
157
157
  moduleClasses: {
158
158
  base: p(u.navigationButton, u.previousButton),
@@ -187,11 +187,11 @@ const at = "_navigationContainer_i93zw_1", rt = "_rowSpacing_i93zw_6", ut = "_na
187
187
  onHoverStart: T.onHoverStart,
188
188
  onHoverEnd: T.onHoverEnd
189
189
  }, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
190
- className: j
190
+ className: $
191
191
  }), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
192
192
  icon: f,
193
193
  iconRef: T.iconRef,
194
- iconClassName: q
194
+ iconClassName: j
195
195
  }))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
196
196
  className: ({ isHovered: N }) => d({
197
197
  isSelected: !1,
@@ -1,45 +1,45 @@
1
- import { RicosViewer as w } from "@wix/ricos/viewer";
1
+ import { RicosViewer as B } from "@wix/ricos/viewer";
2
2
  import F from "classnames";
3
- import t, { useMemo as I, useState as z, useRef as q, useLayoutEffect as B, useCallback as N } from "react";
4
- import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
- import { bo as D, bl as M, by as S, bq as U, R as ee, a0 as te, aa as ae, H as ne, v as oe, ab as re } from "./form-D7ulDPh1.js";
6
- import { f as O, a as k } from "./find-child-C60k4CxG.js";
7
- import { E as x, D as H } from "./field-error-headless-vApyo-y9.js";
8
- import { L as W } from "./field-label-headless-C8-ShLxy.js";
3
+ import t, { useMemo as I, useState as J, useRef as N, useLayoutEffect as Q, useCallback as k } from "react";
4
+ import { CheckboxGroup as j, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
+ import { bz as D, bw as M, bJ as S, bB as U, V as ee, ab as te, al as ne, L as oe, z as ae, am as re } from "./form-DSpx-AO8.js";
6
+ import { f as O, a as x } from "./find-child-C60k4CxG.js";
7
+ import { E as W, D as H } from "./field-error-headless-XNWmDH3E.js";
8
+ import { L as $ } from "./field-label-headless-CORRAJGt.js";
9
9
  import { F as se } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as le } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as y } from "./field-rac.module-DP0lkkEv.js";
12
- import { u as ie } from "./use-element-state-class-name-DY0UyIQg.js";
13
- import { u as ce } from "./use-text-input-class-name-DFMQAg_E.js";
12
+ import { u as ie } from "./use-element-state-class-name-rXM_lHug.js";
13
+ import { u as ce } from "./use-text-input-class-name-DIKWvfkm.js";
14
14
  var ue = /* @__PURE__ */ (function(e) {
15
15
  return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
16
16
  })({});
17
- const v = "Other", de = (e, a) => {
18
- const i = a.length + 2;
19
- return (e.find((l) => l.startsWith(`${a}: `)) || "").slice(i);
20
- }, me = (e) => e.map((a) => a.value ?? a.label), $ = ({ className: e, ...a }) => {
21
- const { label: r } = a;
17
+ const v = "Other", de = (e, n) => {
18
+ const i = n.length + 2;
19
+ return (e.find((l) => l.startsWith(`${n}: `)) || "").slice(i);
20
+ }, me = (e) => e.map((n) => n.value ?? n.label), P = ({ className: e, ...n }) => {
21
+ const { label: r } = n;
22
22
  return /* @__PURE__ */ t.createElement("span", {
23
23
  className: e
24
24
  }, r);
25
- }, P = ({ className: e }) => {
26
- const { value: a, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), n = i || p("add-other.default-other-option-label") || v, b = I(() => de(a || [], n), [
27
- a,
28
- n
29
- ]), [c, L] = z(b), f = q(r);
30
- B(() => {
25
+ }, q = ({ className: e }) => {
26
+ const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
27
+ n,
28
+ o
29
+ ]), [c, L] = J(b), f = N(r);
30
+ Q(() => {
31
31
  f.current = r;
32
32
  });
33
- const g = N((h) => {
33
+ const g = k((h) => {
34
34
  L(h);
35
- const C = (a || []).filter((E) => !E.startsWith(`${n}:`) && E !== n), _ = h ? `${n}: ${h}` : n;
35
+ const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
36
36
  f.current([
37
37
  ...C,
38
38
  _
39
39
  ]);
40
40
  }, [
41
- a,
42
- n
41
+ n,
42
+ o
43
43
  ]);
44
44
  return /* @__PURE__ */ t.createElement(K, {
45
45
  value: c,
@@ -47,7 +47,7 @@ const v = "Other", de = (e, a) => {
47
47
  isDisabled: u,
48
48
  isReadOnly: m,
49
49
  isInvalid: d,
50
- "aria-label": n
50
+ "aria-label": o
51
51
  }, /* @__PURE__ */ t.createElement(X, {
52
52
  "data-hook": "tags-other-input",
53
53
  "data-filled": c ? !0 : void 0,
@@ -55,23 +55,23 @@ const v = "Other", de = (e, a) => {
55
55
  maxLength: l,
56
56
  className: e
57
57
  }));
58
- }, T = ({ children: e, className: a, ...r }) => {
59
- const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: n, disabled: b, readOnly: c, hasError: L } = D(), f = q(null);
58
+ }, T = ({ children: e, className: n, ...r }) => {
59
+ const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = N(null);
60
60
  U(() => {
61
61
  var E;
62
62
  u && ((E = f.current) == null || E.focus({
63
63
  preventScroll: !0
64
64
  }));
65
65
  }, m);
66
- const g = O(e, $), h = I(() => d || [], [
66
+ const g = O(e, P), h = I(() => d || [], [
67
67
  d
68
68
  ]), C = I(() => l ? h.find((E) => E === s || E.startsWith(`${s}: `)) || s : i, [
69
69
  l,
70
70
  h,
71
71
  s,
72
72
  i
73
- ]), _ = N((E) => {
74
- const G = me(n || []), A = h.filter((Q) => G.includes(Q));
73
+ ]), _ = k((E) => {
74
+ const z = me(o || []), A = h.filter((w) => z.includes(w));
75
75
  p(E ? [
76
76
  ...A,
77
77
  s
@@ -79,7 +79,7 @@ const v = "Other", de = (e, a) => {
79
79
  }, [
80
80
  s,
81
81
  p,
82
- n,
82
+ o,
83
83
  h
84
84
  ]);
85
85
  return /* @__PURE__ */ t.createElement(Y, {
@@ -90,60 +90,60 @@ const v = "Other", de = (e, a) => {
90
90
  isReadOnly: c,
91
91
  isInvalid: L
92
92
  }, /* @__PURE__ */ t.createElement(Z, {
93
- className: a,
93
+ className: n,
94
94
  "data-hook": `tags-${l ? v : i}`
95
- }, k(g, {
95
+ }, x(g, {
96
96
  value: i,
97
97
  label: s,
98
98
  isOther: l,
99
99
  isFirstOption: u
100
100
  })));
101
- }, V = ({ children: e, className: a }) => {
101
+ }, V = ({ children: e, className: n }) => {
102
102
  const { options: r, addOther: i, addOtherLabel: s, numberOfColumns: l = ue.FREE_FLOW } = D(), { t: u } = S(), m = s || u("add-other.default-other-option-label") || v, d = O(e, T), p = I(() => {
103
- const n = r || [];
103
+ const o = r || [];
104
104
  return i ? [
105
- ...n,
105
+ ...o,
106
106
  {
107
107
  label: m,
108
108
  value: m,
109
109
  isOther: !0
110
110
  }
111
- ] : n;
111
+ ] : o;
112
112
  }, [
113
113
  r,
114
114
  i,
115
115
  m
116
116
  ]);
117
117
  return p.length === 0 ? null : /* @__PURE__ */ t.createElement("div", {
118
- className: a,
118
+ className: n,
119
119
  "data-columns": l
120
- }, p.map((n, b) => {
121
- const c = n.value ?? n.label;
122
- return k(d, {
123
- key: n.isOther ? v : c,
120
+ }, p.map((o, b) => {
121
+ const c = o.value ?? o.label;
122
+ return x(d, {
123
+ key: o.isOther ? v : c,
124
124
  value: c,
125
- label: n.label,
126
- isOther: n.isOther,
125
+ label: o.label,
126
+ isOther: o.isOther,
127
127
  isFirstOption: b === 0
128
128
  });
129
129
  }));
130
- }, j = ({ children: e, className: a }) => {
131
- const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || v, p = O(e, V), n = O(e, P), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
130
+ }, G = ({ children: e, className: n }) => {
131
+ const { addOther: r, addOtherLabel: i, hasError: s, readOnly: l, value: u } = D(), { t: m } = S(), d = i || m("add-other.default-other-option-label") || v, p = O(e, V), o = O(e, q), b = I(() => !r || !u ? !1 : u.some((c) => c === d || c.startsWith(`${d}:`)), [
132
132
  r,
133
133
  u,
134
134
  d
135
135
  ]);
136
136
  return /* @__PURE__ */ t.createElement("div", {
137
- className: a,
137
+ className: n,
138
138
  "data-invalid": s,
139
139
  "data-readonly": l
140
- }, p, b && n);
141
- }, o = ({ children: e }) => {
142
- const { id: a, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: n } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
140
+ }, p, b && o);
141
+ }, a = ({ children: e }) => {
142
+ const { id: n, value: r, onChange: i, FieldLayout: s, required: l, disabled: u, readOnly: m, hasError: d, onBlur: p, onFocus: o } = D(), { inputId: b, labelId: c, ariaDescribedBy: L } = M(), f = I(() => r || [], [
143
143
  r
144
- ]), g = O(e, W), h = O(e, j), C = O(e, H), _ = O(e, x);
144
+ ]), g = O(e, $), h = O(e, G), C = O(e, H), _ = O(e, W);
145
145
  return /* @__PURE__ */ t.createElement(s, {
146
- fieldId: a,
146
+ fieldId: n,
147
147
  renderLabel: () => g,
148
148
  renderInput: () => /* @__PURE__ */ t.createElement(se, {
149
149
  id: b,
@@ -151,8 +151,8 @@ const v = "Other", de = (e, a) => {
151
151
  ariaDescribedBy: L,
152
152
  required: l,
153
153
  onBlur: p,
154
- onFocus: n
155
- }, /* @__PURE__ */ t.createElement(J, {
154
+ onFocus: o
155
+ }, /* @__PURE__ */ t.createElement(j, {
156
156
  "aria-labelledby": c,
157
157
  value: f,
158
158
  onChange: i,
@@ -165,49 +165,49 @@ const v = "Other", de = (e, a) => {
165
165
  });
166
166
  };
167
167
  V.Option = T;
168
- T.Label = $;
169
- o.Label = W;
170
- o.Control = j;
171
- o.Options = V;
172
- o.OtherInput = P;
173
- o.Description = H;
174
- o.Error = x;
175
- const pe = "_control_tjqha_1", he = "_options_tjqha_7", Ee = "_option_tjqha_7", be = "_optionHover_tjqha_74", Oe = "_optionSelected_tjqha_74", R = {
168
+ T.Label = P;
169
+ a.Label = $;
170
+ a.Control = G;
171
+ a.Options = V;
172
+ a.OtherInput = q;
173
+ a.Description = H;
174
+ a.Error = W;
175
+ const pe = "_control_18tbd_1", he = "_options_18tbd_7", Ee = "_option_18tbd_7", be = "_optionHover_18tbd_76", Oe = "_optionSelected_18tbd_76", R = {
176
176
  control: pe,
177
177
  options: he,
178
178
  option: Ee,
179
179
  optionHover: be,
180
180
  optionSelected: Oe
181
- }, fe = ({ content: e, locale: a }) => /* @__PURE__ */ t.createElement(w, {
181
+ }, fe = ({ content: e, locale: n }) => /* @__PURE__ */ t.createElement(B, {
182
182
  content: e,
183
- locale: a
183
+ locale: n
184
184
  }), Ie = {
185
185
  base: R.option,
186
186
  selected: R.optionSelected,
187
187
  hover: R.optionHover
188
- }, qe = () => {
188
+ }, Ne = () => {
189
189
  const e = ie({
190
190
  globalClasses: re,
191
191
  moduleClasses: Ie
192
- }), a = ce();
193
- return /* @__PURE__ */ t.createElement(o, null, /* @__PURE__ */ t.createElement(o.Label, {
192
+ }), n = ce();
193
+ return /* @__PURE__ */ t.createElement(a, null, /* @__PURE__ */ t.createElement(a.Label, {
194
194
  className: F(ee, y.label)
195
- }, /* @__PURE__ */ t.createElement(o.Label.Required, {
195
+ }, /* @__PURE__ */ t.createElement(a.Label.Required, {
196
196
  className: F(te, y.requiredMark)
197
- })), /* @__PURE__ */ t.createElement(o.Control, {
197
+ })), /* @__PURE__ */ t.createElement(a.Control, {
198
198
  className: R.control
199
- }, /* @__PURE__ */ t.createElement(o.Options, {
200
- className: F(ae, R.options)
201
- }, /* @__PURE__ */ t.createElement(o.Options.Option, {
199
+ }, /* @__PURE__ */ t.createElement(a.Options, {
200
+ className: F(ne, R.options)
201
+ }, /* @__PURE__ */ t.createElement(a.Options.Option, {
202
202
  className: e
203
- }, /* @__PURE__ */ t.createElement(o.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(o.OtherInput, {
204
- className: a
205
- })), /* @__PURE__ */ t.createElement(o.Error, {
206
- className: F(ne, y.error)
207
- }, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(o.Error.Text, null)), /* @__PURE__ */ t.createElement(o.Description, {
208
- className: F(oe, y.description)
203
+ }, /* @__PURE__ */ t.createElement(a.Options.Option.Label, null))), /* @__PURE__ */ t.createElement(a.OtherInput, {
204
+ className: n
205
+ })), /* @__PURE__ */ t.createElement(a.Error, {
206
+ className: F(oe, y.error)
207
+ }, /* @__PURE__ */ t.createElement(le, null), /* @__PURE__ */ t.createElement(a.Error.Text, null)), /* @__PURE__ */ t.createElement(a.Description, {
208
+ className: F(ae, y.description)
209
209
  }, fe));
210
210
  };
211
211
  export {
212
- qe as T
212
+ Ne as T
213
213
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-DaghCGJU.js";
2
+ import { T as r } from "./tags-field-rac-DWWkNKqc.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -2,24 +2,24 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import o from "classnames";
3
3
  import r, { useCallback as S, useRef as T } from "react";
4
4
  import { TextField as O, TextArea as y } from "react-aria-components";
5
- import { bo as p, bl as d, bq as x, R as v, a0 as g, H as h, v as q } from "./form-D7ulDPh1.js";
5
+ import { bz as p, bw as d, bB as x, V as g, ab as h, L as v, z as B } from "./form-DSpx-AO8.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as M, E as B } from "./field-error-headless-vApyo-y9.js";
8
- import { L as k } from "./field-label-headless-C8-ShLxy.js";
9
- import { E as P } from "./error-icon-hZxQ6DEy.js";
7
+ import { D as M, E as q } from "./field-error-headless-XNWmDH3E.js";
8
+ import { L as V } from "./field-label-headless-CORRAJGt.js";
9
+ import { E as k } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DP0lkkEv.js";
11
- import { u as V } from "./use-text-input-class-name-DFMQAg_E.js";
11
+ import { u as w } from "./use-text-input-class-name-DIKWvfkm.js";
12
12
  const e = ({ children: t }) => {
13
- const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: R } = d(), F = S((A) => {
13
+ const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: L } = d(), F = S((A) => {
14
14
  s(A);
15
15
  }, [
16
16
  s
17
- ]), L = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
17
+ ]), R = i(t, e.Label), D = i(t, e.Input), _ = i(t, e.Description), C = i(t, e.Error);
18
18
  return /* @__PURE__ */ r.createElement(I, {
19
19
  fieldId: a,
20
- renderLabel: () => L,
20
+ renderLabel: () => R,
21
21
  renderInput: () => /* @__PURE__ */ r.createElement(O, {
22
- "aria-labelledby": R,
22
+ "aria-labelledby": L,
23
23
  value: m ?? "",
24
24
  onChange: F,
25
25
  isDisabled: u,
@@ -31,7 +31,7 @@ const e = ({ children: t }) => {
31
31
  }, D),
32
32
  renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, C, _)
33
33
  });
34
- }, w = ({ className: t }) => {
34
+ }, z = ({ className: t }) => {
35
35
  const { inputId: a, ariaDescribedBy: m } = d(), { id: s, placeholder: u } = p(), n = T(null);
36
36
  return x(() => {
37
37
  var l;
@@ -46,27 +46,27 @@ const e = ({ children: t }) => {
46
46
  className: t
47
47
  });
48
48
  };
49
- e.Label = k;
50
- e.Input = w;
49
+ e.Label = V;
50
+ e.Input = z;
51
51
  e.Description = M;
52
- e.Error = B;
53
- const H = "_input_ug5v8_1", Q = {
54
- input: H
52
+ e.Error = q;
53
+ const P = "_input_ug5v8_1", Q = {
54
+ input: P
55
55
  }, U = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
56
56
  content: t,
57
57
  locale: a
58
58
  }), re = () => {
59
- const t = V(Q.input);
59
+ const t = w(Q.input);
60
60
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
61
- className: o(v, c.label)
61
+ className: o(g, c.label)
62
62
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
63
- className: o(g, c.requiredMark)
63
+ className: o(h, c.requiredMark)
64
64
  })), /* @__PURE__ */ r.createElement(e.Input, {
65
65
  className: t
66
66
  }), /* @__PURE__ */ r.createElement(e.Error, {
67
- className: o(h, c.error)
68
- }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
- className: o(q, c.description)
67
+ className: o(v, c.error)
68
+ }, /* @__PURE__ */ r.createElement(k, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
69
+ className: o(B, c.description)
70
70
  }, U));
71
71
  };
72
72
  export {
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-2-TYC5Lb.js";
2
+ import { T as r } from "./text-area-field-rac-DsIRYi0d.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,12 +1,12 @@
1
1
  import { RicosViewer as l } 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-DZ-Pjpm4.js";
4
+ import { T as r } from "./text-input-headless-5kQs2_Xu.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DP0lkkEv.js";
7
- import { R as n, a0 as c, H as E, v as i } from "./form-D7ulDPh1.js";
8
- import { u as p } from "./use-text-input-class-name-DFMQAg_E.js";
9
- const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
7
+ import { V as n, ab as c, L as E, z as i } from "./form-DSpx-AO8.js";
8
+ import { u as p } from "./use-text-input-class-name-DIKWvfkm.js";
9
+ const I = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
10
10
  content: s,
11
11
  locale: m
12
12
  }), C = () => {
@@ -21,7 +21,7 @@ const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
21
21
  className: t(E, a.error)
22
22
  }, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement(r.Error.Text, null)), /* @__PURE__ */ e.createElement(r.Description, {
23
23
  className: t(i, a.description)
24
- }, R));
24
+ }, I));
25
25
  };
26
26
  export {
27
27
  C as T
@@ -1,18 +1,18 @@
1
1
  import t, { useRef as v } from "react";
2
2
  import { TextField as C, Input as R } from "react-aria-components";
3
- import { bo as c, bl as d, bq as T } from "./form-D7ulDPh1.js";
4
- import { f as l } from "./find-child-C60k4CxG.js";
5
- import { D as g, E as h } from "./field-error-headless-vApyo-y9.js";
6
- import { L as q } from "./field-label-headless-C8-ShLxy.js";
3
+ import { bz as c, bw as d, bB as B } from "./form-DSpx-AO8.js";
4
+ import { f as s } from "./find-child-C60k4CxG.js";
5
+ import { D as T, E as g } from "./field-error-headless-XNWmDH3E.js";
6
+ import { L as h } from "./field-label-headless-CORRAJGt.js";
7
7
  const e = ({ children: r }) => {
8
- const { id: s, value: a, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = l(r, e.Label), y = l(r, e.Input), D = l(r, e.Description), L = l(r, e.Error);
8
+ const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = c(), { labelId: I } = d(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(E, {
10
- fieldId: s,
10
+ fieldId: a,
11
11
  renderLabel: () => F,
12
12
  renderInput: () => /* @__PURE__ */ t.createElement(C, {
13
13
  autoComplete: f,
14
14
  "aria-labelledby": I,
15
- value: a ?? "",
15
+ value: l ?? "",
16
16
  onChange: i,
17
17
  isDisabled: u,
18
18
  isReadOnly: n,
@@ -24,24 +24,24 @@ const e = ({ children: r }) => {
24
24
  renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
25
25
  });
26
26
  }, x = ({ className: r }) => {
27
- const { id: s, placeholder: a } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
28
- return T(() => {
27
+ const { id: a, placeholder: l } = c(), { inputId: i, ariaDescribedBy: u } = d(), n = v(null);
28
+ return B(() => {
29
29
  var o;
30
30
  (o = n.current) == null || o.focus({
31
31
  preventScroll: !0
32
32
  });
33
- }, s), /* @__PURE__ */ t.createElement(R, {
33
+ }, a), /* @__PURE__ */ t.createElement(R, {
34
34
  ref: n,
35
35
  id: i,
36
36
  "aria-describedby": u,
37
37
  className: r,
38
- placeholder: a
38
+ placeholder: l
39
39
  });
40
40
  };
41
- e.Label = q;
41
+ e.Label = h;
42
42
  e.Input = x;
43
- e.Description = g;
44
- e.Error = h;
43
+ e.Description = T;
44
+ e.Error = g;
45
45
  export {
46
46
  e as T
47
47
  };
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-Dyur2Wby.js";
2
+ import { T as e } from "./text-input-field-rac-BwIDZACz.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC